diff --git a/server/public/1234.0175203b1807da01.js b/server/public/1234.0175203b1807da01.js new file mode 100644 index 000000000..db93c2465 --- /dev/null +++ b/server/public/1234.0175203b1807da01.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1234],{3640:(j,M,e)=>{e.d(M,{k:()=>V});var P=e(1635),f=e(9995),C=e(9145),s=e(9894),T=e(4412),m=e(1413),u=e(9199),d=e(3294),O=e(7048),I=e(5245),p=e(5964),v=e(6354),D=e(152),x=e(3993),c=e(4608),t=e(3953),g=e(177),E=e(9417),z=e(6389),R=e(5703),y=e(5103),i=e(9247),b=e(5699),h=e(5154),N=e(7391),B=e(1997),L=e(1852),W=e(1405),U=e(435),K=e(3245),G=e(3296),$=e(9129),S=e(3431),F=e(2923),Y=e(6911),X=e(3100),H=e(1774),w=e(9023);const Q=o=>({height:o}),J=()=>[],Z=()=>({x:"680px",y:"800px"}),k=()=>({text:"None",value:!0}),q=o=>[o],tt=(o,_,n,r,a)=>({id:o,name:_,link:n,deprecated:r,flagged:a});function nt(o,_){}function et(o,_){if(1&o&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,nt,0,0,"ng-template",7),t.k0s(),t.bVm()),2&o){t.XpG();const n=t.sdS(4),r=t.sdS(6),a=t.sdS(8);t.R7$(),t.Y8G("nzTitle",r)("nzExtra",a),t.R7$(),t.Y8G("ngTemplateOutlet",n)}}function at(o,_){}function _t(o,_){if(1&o&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,at,0,0,"ng-template",7),t.k0s()()),2&o){const n=t.XpG(),r=t.sdS(4),a=t.sdS(6),l=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,Q,n.cvcHeight)),t.R7$(),t.Y8G("nzTitle",a)("nzExtra",l),t.R7$(),t.Y8G("ngTemplateOutlet",r)}}function ot(o,_){if(1&o&&(t.j41(0,"tr",29)(1,"td",22),t.nrm(2,"cvc-variant-tag",30),t.k0s(),t.j41(3,"td",22)(4,"span",31),t.EFF(5),t.nI1(6,"titlecase"),t.k0s()(),t.j41(7,"td"),t.nrm(8,"cvc-feature-tag",32),t.k0s(),t.j41(9,"td"),t.nrm(10,"cvc-plain-tag-overflow",33),t.nI1(11,"pluck"),t.k0s(),t.j41(12,"td"),t.nrm(13,"cvc-tag-overflow",34),t.k0s(),t.j41(14,"td"),t.nrm(15,"cvc-tag-overflow",35),t.k0s(),t.j41(16,"td"),t.nrm(17,"cvc-tag-overflow",36),t.k0s()()),2&o){const n=_.$implicit,r=t.XpG(2);t.R7$(2),t.Y8G("variant",n)("truncateLongName",!0),t.R7$(3),t.SpI(" ",t.bMT(6,17,n.category)," "),t.R7$(3),t.Y8G("feature",t.s1E(22,tt,n.featureId,n.featureName,n.featureLink,n.featureDeprecated,n.featureFlagged))("truncateLongName",!0),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",t.i5U(11,19,n.aliases,"name"))("matchingText",r.variantAliasInput),t.R7$(3),t.Y8G("tags",n.variantTypes)("maxDisplayCount",1)("matchingText",r.variantTypeNameInput),t.R7$(2),t.Y8G("tags",n.diseases)("maxDisplayCount",1)("matchingText",r.diseaseNameInput),t.R7$(2),t.Y8G("tags",n.therapies)("maxDisplayCount",1)("matchingText",r.therapyNameInput)}}function rt(o,_){if(1&o){const n=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(a){t.eBV(n);const l=t.XpG();return t.Njj(l.scrollEvent$.next(a))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(a){t.eBV(n);const l=t.XpG();return t.Njj(l.sortChange$.next(a))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Variant "),t.k0s(),t.j41(10,"th",14),t.nrm(11,"i",15),t.EFF(12," Type "),t.k0s(),t.j41(13,"th",16),t.EFF(14," Feature "),t.k0s(),t.j41(15,"th",17),t.EFF(16,"Variant Aliases"),t.k0s(),t.j41(17,"th",18),t.bIt("nzFilterChange",function(a){t.eBV(n);const l=t.XpG();return t.Njj(l.onHasNoVariantTypeInputChange(a))}),t.EFF(18," Variant Types "),t.k0s(),t.j41(19,"th",19),t.EFF(20,"Diseases"),t.k0s(),t.j41(21,"th",20),t.EFF(22,"Therapies"),t.k0s()(),t.j41(23,"tr",21)(24,"th",22)(25,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantNameInput,a)||(l.variantNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(26,"th",22)(27,"nz-select",24),t.bIt("ngModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.mxI("ngModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantCategoryInput,a)||(l.variantCategoryInput=a),t.Njj(a)}),t.nrm(28,"nz-option",25)(29,"nz-option",26)(30,"nz-option",27),t.k0s()(),t.j41(31,"th")(32,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.featureNameInput,a)||(l.featureNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(33,"th")(34,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantAliasInput,a)||(l.variantAliasInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(35,"th")(36,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantTypeNameInput,a)||(l.variantTypeNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(37,"th")(38,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.diseaseNameInput,a)||(l.diseaseNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(39,"th")(40,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.therapyNameInput,a)||(l.therapyNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()()()(),t.j41(41,"tbody"),t.DNE(42,ot,18,28,"ng-template",28),t.k0s()()}if(2&o){const n=t.XpG();t.Y8G("nzData",t.bMT(2,28,n.row$)||t.lJ4(36,J))("nzLoading",!t.bMT(3,30,n.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",n.queryRef)("cvcTableScrollPageInfo",t.bMT(4,32,n.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,34,n.scrollIndex$))("nzVirtualForTrackBy",n.trackByIndex)("nzScroll",t.lJ4(37,Z))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",n.sortColumns.VariantName)("nzSortFn",!0),t.R7$(5),t.Y8G("nzColumnKey",n.sortColumns.FeatureName)("nzSortFn",!0),t.R7$(4),t.Y8G("nzFilters",t.eq3(39,q,t.lJ4(38,k)))("nzFilterFn",!0),t.R7$(8),t.R50("inputModel",n.variantNameInput),t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",n.variantCategoryInput),t.R7$(),t.Y8G("nzValue",n.variantCategories.Gene),t.R7$(),t.Y8G("nzValue",n.variantCategories.Factor),t.R7$(),t.Y8G("nzValue",n.variantCategories.Fusion),t.R7$(2),t.R50("inputModel",n.featureNameInput),t.R7$(2),t.R50("inputModel",n.variantAliasInput),t.R7$(2),t.R50("inputModel",n.variantTypeNameInput),t.R7$(2),t.R50("inputModel",n.diseaseNameInput),t.R7$(2),t.R50("inputModel",n.therapyNameInput)}}function lt(o,_){}function it(o,_){if(1&o&&(t.qex(0),t.DNE(1,lt,0,0,"ng-template",7),t.bVm()),2&o){const n=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",n.cvcTitleTemplate)}}function st(o,_){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.cvcTitle," ")}}function ct(o,_){if(1&o&&(t.DNE(0,it,2,1,"ng-container",37)(1,st,2,1,"ng-container",37),t.j41(2,"span",38),t.nrm(3,"cvc-table-counts",39),t.k0s()),2&o){const n=t.XpG();t.Y8G("ngIf",n.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",n.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",n.connection$)}}function pt(o,_){1&o&&(t.j41(0,"nz-tag",42),t.nrm(1,"i",43),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function gt(o,_){if(1&o&&(t.DNE(0,pt,4,0,"nz-tag",40),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",41),t.nI1(3,"ngrxPush")),2&o){const n=t.XpG();t.Y8G("ngIf",t.bMT(1,2,n.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,n.noMoreRows$))}}let V=class A{set initialUserFilters(_){_&&Object.assign(this,_)}constructor(_,n){this.gql=_,this.cdr=n,this.initialPageSize=35,this.isScrolling=!1,this.hasNoVariantTypeInput=!1,this.variantCategories=C.ypY,this.sortColumns=C.wOP,this.noMoreRows$=new T.t(!1),this.scrollEvent$=new T.t("stop"),this.sortChange$=new m.B,this.filterChange$=new m.B,this.scrollIndex$=new m.B}ngOnInit(){this.initialQueryArgs={first:this.initialPageSize,variantTypeId:this.variantTypeId,variantGroupId:this.variantGroupId,hasNoVariantType:this.hasNoVariantTypeInput,variantCategory:this.variantCategoryInput},this.queryRef=this.gql.watch(this.initialQueryArgs),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,c.E)("loading"),(0,d.F)(),(0,O.v)(_=>!1!==_,!0)),this.moreLoading$=this.result$.pipe((0,c.E)("loading"),(0,d.F)(),(0,I.i)(2)),this.connection$=this.result$.pipe((0,c.E)("data","browseVariants"),(0,p.p)(u.kP)),this.row$=this.connection$.pipe((0,c.E)("edges"),(0,p.p)(u.kP),(0,v.T)(_=>_.map(n=>n.node))),this.pageInfo$=this.connection$.pipe((0,c.E)("pageInfo"),(0,p.p)(u.kP)),this.sortChange$.pipe((0,s.s)(this)).subscribe(_=>{this.queryRef.refetch({sortBy:(0,f.X)(_)})}),this.filterChange$.pipe((0,D.B)(500),(0,s.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,v.T)(_=>"stop"!==_),(0,d.F)(),(0,s.s)(this)).subscribe(_=>{this.isScrolling=_,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,p.p)(_=>"bottom"===_),(0,x.E)(this.pageInfo$),(0,v.T)(([_,n])=>n),(0,s.s)(this)).subscribe(_=>{_.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({diseaseName:this.diseaseNameInput,therapyName:this.therapyNameInput,variantName:this.variantNameInput?this.variantNameInput:void 0,variantAlias:this.variantAliasInput?this.variantAliasInput:void 0,featureName:this.featureNameInput,variantTypeName:this.variantTypeNameInput?this.variantTypeNameInput:void 0,hasNoVariantType:this.hasNoVariantTypeInput,variantCategory:this.variantCategoryInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(_,n){return n?.id}onHasNoVariantTypeInputChange(_){this.hasNoVariantTypeInput=_[0],this.filterChange$.next()}static#t=this.\u0275fac=function(n){return new(n||A)(t.rXU(C.Pw8),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:A,selectors:[["cvc-variants-table"]],inputs:{cvcHeight:"cvcHeight",variantTypeId:"variantTypeId",variantGroupId:"variantGroupId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["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,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzLeft","","nzWidth","70px","nz-tooltip","","nzTooltipTitle","Feature Type"],["nz-icon","","nzType","civic-feature"],["nzWidth","100px",3,"nzColumnKey","nzSortFn"],["nzWidth","170px"],["nzWidth","180px",3,"nzFilterChange","nzFilters","nzFilterFn"],["nzWidth","200px"],["nzWidth","180px"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","All",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","Gene",3,"nzValue"],["nzLabel","Factor",3,"nzValue"],["nzLabel","Fusion",3,"nzValue"],["nz-virtual-scroll",""],[1,"data-row"],[3,"variant","truncateLongName"],["nz-typography","","nzType","secondary"],[3,"feature","truncateLongName"],[3,"maxDisplayCount","tags","matchingText"],["tagType","variant-type",3,"tags","maxDisplayCount","matchingText"],["tagType","disease",3,"tags","maxDisplayCount","matchingText"],["tagType","therapy",3,"tags","maxDisplayCount","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(n,r){if(1&n&&t.DNE(0,et,3,3,"ng-container",5)(1,_t,3,6,"ng-template",null,0,t.C5r)(3,rt,43,41,"ng-template",null,1,t.C5r)(5,ct,4,3,"ng-template",null,2,t.C5r)(7,gt,4,6,"ng-template",null,3,t.C5r),2&n){const a=t.sdS(2);t.Y8G("ngIf",!r.cvcHeight)("ngIfElse",a)}},dependencies:[g.bT,g.T3,g.B3,E.BC,E.vS,z.c,R.cK,y.Dn,i.CP,i.Cc,i.SO,i._4,i.IL,i.aj,i.kt,i.CC,i.OL,b.s,h.LH,N.Di,B.ld,B.WI,L.M,W.s,U.n,K._,G.M,$.s,S.y,F.f,Y.U,X.V,g.PV,H.L9,w.y],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=(0,P.Cg)([(0,s.d)()],V)},9271:(j,M,e)=>{e.d(M,{l:()=>b});var P=e(177),f=e(6912),C=e(7874),s=e(9214),T=e(5724),m=e(4998),u=e(9374),d=e(4917),O=e(4256),I=e(4450),p=e(8252),v=e(513),D=e(5703),x=e(5103),c=e(9247),t=e(5699),g=e(5154),E=e(7391),z=e(7051),R=e(1997),y=e(9417),i=e(3953);let b=(()=>{class h{static#t=this.\u0275fac=function(L){return new(L||h)};static#n=this.\u0275mod=i.$C({type:h});static#e=this.\u0275inj=i.G2t({imports:[P.MD,y.YN,v.Zw,D.Ti,x.Y3,c.$G,t.T,g.Qt,E.kT,R.DH,O.t,I.B,C.E,f.l,s.y,d.i,T.T,m.B,p.A,u.r,z.U]})}return h})()}}]); \ No newline at end of file diff --git a/server/public/1234.a5bc84469342b6bc.js b/server/public/1234.a5bc84469342b6bc.js deleted file mode 100644 index 75874d3a5..000000000 --- a/server/public/1234.a5bc84469342b6bc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1234],{3640:(j,M,e)=>{e.d(M,{k:()=>V});var P=e(1635),f=e(9995),C=e(9145),s=e(9894),v=e(4412),m=e(1413),u=e(9199),d=e(3294),O=e(7048),I=e(5245),p=e(5964),T=e(6354),D=e(152),x=e(3993),c=e(4608),t=e(3953),g=e(177),E=e(9417),z=e(6389),R=e(5703),y=e(5103),i=e(9247),b=e(5699),h=e(5154),N=e(7391),B=e(1997),L=e(1852),W=e(1405),U=e(435),K=e(3245),G=e(3296),$=e(9129),S=e(3431),F=e(2923),X=e(6911),Y=e(3100),H=e(1774),w=e(9023);const Q=o=>({height:o}),J=()=>[],Z=()=>({x:"680px",y:"800px"}),k=()=>({text:"None",value:!0}),q=o=>[o],tt=(o,_,n,r,a)=>({id:o,name:_,link:n,deprecated:r,flagged:a});function nt(o,_){}function et(o,_){if(1&o&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,nt,0,0,"ng-template",7),t.k0s(),t.bVm()),2&o){t.XpG();const n=t.sdS(4),r=t.sdS(6),a=t.sdS(8);t.R7$(),t.Y8G("nzTitle",r)("nzExtra",a),t.R7$(),t.Y8G("ngTemplateOutlet",n)}}function at(o,_){}function _t(o,_){if(1&o&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,at,0,0,"ng-template",7),t.k0s()()),2&o){const n=t.XpG(),r=t.sdS(4),a=t.sdS(6),l=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,Q,n.cvcHeight)),t.R7$(),t.Y8G("nzTitle",a)("nzExtra",l),t.R7$(),t.Y8G("ngTemplateOutlet",r)}}function ot(o,_){if(1&o&&(t.j41(0,"tr",28)(1,"td",22),t.nrm(2,"cvc-variant-tag",29),t.k0s(),t.j41(3,"td",22)(4,"span",30),t.EFF(5),t.nI1(6,"titlecase"),t.k0s()(),t.j41(7,"td"),t.nrm(8,"cvc-feature-tag",31),t.k0s(),t.j41(9,"td"),t.nrm(10,"cvc-plain-tag-overflow",32),t.nI1(11,"pluck"),t.k0s(),t.j41(12,"td"),t.nrm(13,"cvc-tag-overflow",33),t.k0s(),t.j41(14,"td"),t.nrm(15,"cvc-tag-overflow",34),t.k0s(),t.j41(16,"td"),t.nrm(17,"cvc-tag-overflow",35),t.k0s()()),2&o){const n=_.$implicit,r=t.XpG(2);t.R7$(2),t.Y8G("variant",n)("truncateLongName",!0),t.R7$(3),t.SpI(" ",t.bMT(6,17,n.category)," "),t.R7$(3),t.Y8G("feature",t.s1E(22,tt,n.featureId,n.featureName,n.featureLink,n.featureDeprecated,n.featureFlagged))("truncateLongName",!0),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",t.i5U(11,19,n.aliases,"name"))("matchingText",r.variantAliasInput),t.R7$(3),t.Y8G("tags",n.variantTypes)("maxDisplayCount",1)("matchingText",r.variantTypeNameInput),t.R7$(2),t.Y8G("tags",n.diseases)("maxDisplayCount",1)("matchingText",r.diseaseNameInput),t.R7$(2),t.Y8G("tags",n.therapies)("maxDisplayCount",1)("matchingText",r.therapyNameInput)}}function rt(o,_){if(1&o){const n=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(a){t.eBV(n);const l=t.XpG();return t.Njj(l.scrollEvent$.next(a))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(a){t.eBV(n);const l=t.XpG();return t.Njj(l.sortChange$.next(a))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Variant "),t.k0s(),t.j41(10,"th",14),t.nrm(11,"i",15),t.EFF(12," Type "),t.k0s(),t.j41(13,"th",16),t.EFF(14," Feature "),t.k0s(),t.j41(15,"th",17),t.EFF(16,"Variant Aliases"),t.k0s(),t.j41(17,"th",18),t.bIt("nzFilterChange",function(a){t.eBV(n);const l=t.XpG();return t.Njj(l.onHasNoVariantTypeInputChange(a))}),t.EFF(18," Variant Types "),t.k0s(),t.j41(19,"th",19),t.EFF(20,"Diseases"),t.k0s(),t.j41(21,"th",20),t.EFF(22,"Therapies"),t.k0s()(),t.j41(23,"tr",21)(24,"th",22)(25,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantNameInput,a)||(l.variantNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(26,"th",22)(27,"nz-select",24),t.bIt("ngModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.mxI("ngModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantCategoryInput,a)||(l.variantCategoryInput=a),t.Njj(a)}),t.nrm(28,"nz-option",25)(29,"nz-option",26),t.k0s()(),t.j41(30,"th")(31,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.featureNameInput,a)||(l.featureNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(32,"th")(33,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantAliasInput,a)||(l.variantAliasInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(34,"th")(35,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.variantTypeNameInput,a)||(l.variantTypeNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(36,"th")(37,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.diseaseNameInput,a)||(l.diseaseNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(38,"th")(39,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(a){t.eBV(n);const l=t.XpG();return t.DH7(l.therapyNameInput,a)||(l.therapyNameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()()()(),t.j41(40,"tbody"),t.DNE(41,ot,18,28,"ng-template",27),t.k0s()()}if(2&o){const n=t.XpG();t.Y8G("nzData",t.bMT(2,27,n.row$)||t.lJ4(35,J))("nzLoading",!t.bMT(3,29,n.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",n.queryRef)("cvcTableScrollPageInfo",t.bMT(4,31,n.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,33,n.scrollIndex$))("nzVirtualForTrackBy",n.trackByIndex)("nzScroll",t.lJ4(36,Z))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",n.sortColumns.VariantName)("nzSortFn",!0),t.R7$(5),t.Y8G("nzColumnKey",n.sortColumns.FeatureName)("nzSortFn",!0),t.R7$(4),t.Y8G("nzFilters",t.eq3(38,q,t.lJ4(37,k)))("nzFilterFn",!0),t.R7$(8),t.R50("inputModel",n.variantNameInput),t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",n.variantCategoryInput),t.R7$(),t.Y8G("nzValue",n.variantCategories.Gene),t.R7$(),t.Y8G("nzValue",n.variantCategories.Factor),t.R7$(2),t.R50("inputModel",n.featureNameInput),t.R7$(2),t.R50("inputModel",n.variantAliasInput),t.R7$(2),t.R50("inputModel",n.variantTypeNameInput),t.R7$(2),t.R50("inputModel",n.diseaseNameInput),t.R7$(2),t.R50("inputModel",n.therapyNameInput)}}function lt(o,_){}function it(o,_){if(1&o&&(t.qex(0),t.DNE(1,lt,0,0,"ng-template",7),t.bVm()),2&o){const n=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",n.cvcTitleTemplate)}}function st(o,_){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.cvcTitle," ")}}function ct(o,_){if(1&o&&(t.DNE(0,it,2,1,"ng-container",36)(1,st,2,1,"ng-container",36),t.j41(2,"span",37),t.nrm(3,"cvc-table-counts",38),t.k0s()),2&o){const n=t.XpG();t.Y8G("ngIf",n.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",n.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",n.connection$)}}function pt(o,_){1&o&&(t.j41(0,"nz-tag",41),t.nrm(1,"i",42),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function gt(o,_){if(1&o&&(t.DNE(0,pt,4,0,"nz-tag",39),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",40),t.nI1(3,"ngrxPush")),2&o){const n=t.XpG();t.Y8G("ngIf",t.bMT(1,2,n.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,n.noMoreRows$))}}let V=class A{set initialUserFilters(_){_&&Object.assign(this,_)}constructor(_,n){this.gql=_,this.cdr=n,this.initialPageSize=35,this.isScrolling=!1,this.hasNoVariantTypeInput=!1,this.variantCategories=C.ypY,this.sortColumns=C.wOP,this.noMoreRows$=new v.t(!1),this.scrollEvent$=new v.t("stop"),this.sortChange$=new m.B,this.filterChange$=new m.B,this.scrollIndex$=new m.B}ngOnInit(){this.initialQueryArgs={first:this.initialPageSize,variantTypeId:this.variantTypeId,variantGroupId:this.variantGroupId,hasNoVariantType:this.hasNoVariantTypeInput,variantCategory:this.variantCategoryInput},this.queryRef=this.gql.watch(this.initialQueryArgs),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,c.E)("loading"),(0,d.F)(),(0,O.v)(_=>!1!==_,!0)),this.moreLoading$=this.result$.pipe((0,c.E)("loading"),(0,d.F)(),(0,I.i)(2)),this.connection$=this.result$.pipe((0,c.E)("data","browseVariants"),(0,p.p)(u.kP)),this.row$=this.connection$.pipe((0,c.E)("edges"),(0,p.p)(u.kP),(0,T.T)(_=>_.map(n=>n.node))),this.pageInfo$=this.connection$.pipe((0,c.E)("pageInfo"),(0,p.p)(u.kP)),this.sortChange$.pipe((0,s.s)(this)).subscribe(_=>{this.queryRef.refetch({sortBy:(0,f.X)(_)})}),this.filterChange$.pipe((0,D.B)(500),(0,s.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,T.T)(_=>"stop"!==_),(0,d.F)(),(0,s.s)(this)).subscribe(_=>{this.isScrolling=_,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,p.p)(_=>"bottom"===_),(0,x.E)(this.pageInfo$),(0,T.T)(([_,n])=>n),(0,s.s)(this)).subscribe(_=>{_.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({diseaseName:this.diseaseNameInput,therapyName:this.therapyNameInput,variantName:this.variantNameInput?this.variantNameInput:void 0,variantAlias:this.variantAliasInput?this.variantAliasInput:void 0,featureName:this.featureNameInput,variantTypeName:this.variantTypeNameInput?this.variantTypeNameInput:void 0,hasNoVariantType:this.hasNoVariantTypeInput,variantCategory:this.variantCategoryInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(_,n){return n?.id}onHasNoVariantTypeInputChange(_){this.hasNoVariantTypeInput=_[0],this.filterChange$.next()}static#t=this.\u0275fac=function(n){return new(n||A)(t.rXU(C.Pw8),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:A,selectors:[["cvc-variants-table"]],inputs:{cvcHeight:"cvcHeight",variantTypeId:"variantTypeId",variantGroupId:"variantGroupId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["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,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzLeft","","nzWidth","70px","nz-tooltip","","nzTooltipTitle","Feature Type"],["nz-icon","","nzType","civic-feature"],["nzWidth","100px",3,"nzColumnKey","nzSortFn"],["nzWidth","170px"],["nzWidth","180px",3,"nzFilterChange","nzFilters","nzFilterFn"],["nzWidth","200px"],["nzWidth","180px"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","All",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","Gene",3,"nzValue"],["nzLabel","Factor",3,"nzValue"],["nz-virtual-scroll",""],[1,"data-row"],[3,"variant","truncateLongName"],["nz-typography","","nzType","secondary"],[3,"feature","truncateLongName"],[3,"maxDisplayCount","tags","matchingText"],["tagType","variant-type",3,"tags","maxDisplayCount","matchingText"],["tagType","disease",3,"tags","maxDisplayCount","matchingText"],["tagType","therapy",3,"tags","maxDisplayCount","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(n,r){if(1&n&&t.DNE(0,et,3,3,"ng-container",5)(1,_t,3,6,"ng-template",null,0,t.C5r)(3,rt,42,40,"ng-template",null,1,t.C5r)(5,ct,4,3,"ng-template",null,2,t.C5r)(7,gt,4,6,"ng-template",null,3,t.C5r),2&n){const a=t.sdS(2);t.Y8G("ngIf",!r.cvcHeight)("ngIfElse",a)}},dependencies:[g.bT,g.T3,g.B3,E.BC,E.vS,z.c,R.cK,y.Dn,i.CP,i.Cc,i.SO,i._4,i.IL,i.aj,i.kt,i.CC,i.OL,b.s,h.LH,N.Di,B.ld,B.WI,L.M,W.s,U.n,K._,G.M,$.s,S.y,F.f,X.U,Y.V,g.PV,H.L9,w.y],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=(0,P.Cg)([(0,s.d)()],V)},9271:(j,M,e)=>{e.d(M,{l:()=>b});var P=e(177),f=e(6912),C=e(7874),s=e(9214),v=e(5724),m=e(4998),u=e(9374),d=e(4917),O=e(4256),I=e(4450),p=e(8252),T=e(513),D=e(5703),x=e(5103),c=e(9247),t=e(5699),g=e(5154),E=e(7391),z=e(7051),R=e(1997),y=e(9417),i=e(3953);let b=(()=>{class h{static#t=this.\u0275fac=function(L){return new(L||h)};static#n=this.\u0275mod=i.$C({type:h});static#e=this.\u0275inj=i.G2t({imports:[P.MD,y.YN,T.Zw,D.Ti,x.Y3,c.$G,t.T,g.Qt,E.kT,R.DH,O.t,I.B,C.E,f.l,s.y,d.i,v.T,m.B,p.A,u.r,z.U]})}return h})()}}]); \ No newline at end of file diff --git a/server/public/13.1c95157fcb863e15.js b/server/public/13.1c95157fcb863e15.js deleted file mode 100644 index fc1f3d385..000000000 --- a/server/public/13.1c95157fcb863e15.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[13],{8542:(D,f,a)=>{a.d(f,{d:()=>at});var n=a(4412),t=a(3953),g=a(177),S=a(9417),d=a(513),p=a(6389),C=a(5930),E=a(5703),R=a(2269),O=a(5103),x=a(7529),P=a(1236),z=a(7481),h=a(1774);let G=(()=>{class e{transform(c){const _=+c%10;return c+["th","st","nd","rd"][10==+c%100-_||_>3?0:_]}static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275pipe=t.EJ8({name:"ordinal",type:e,pure:!0})}return e})();var T=a(3075);const I=["*","*","*","*"],y=(e,s)=>({$implicit:e,title:"Comments",iconTpl:s}),M=(e,s)=>({$implicit:e,title:"Revisions",iconTpl:s}),$=(e,s)=>({$implicit:e,title:"Submissions",iconTpl:s}),Y=(e,s)=>({$implicit:e,title:"Moderations",iconTpl:s}),b=()=>[8,8];function A(e,s){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"ordinal"),t.bVm()),2&e){const c=t.XpG(2).$implicit;t.R7$(),t.SpI(" (",t.bMT(2,1,c.rank),") ")}}function w(e,s){if(1&e&&(t.EFF(0),t.DNE(1,A,3,3,"ng-container",18)),2&e){const c=t.XpG(),_=c.$implicit;t.SpI(" ",c.title," "),t.R7$(),t.Y8G("ngIf",_)}}function L(e,s){if(1&e&&(t.nrm(0,"nz-statistic",17),t.nI1(1,"number"),t.DNE(2,w,2,2,"ng-template",null,6,t.C5r)),2&e){const c=s.$implicit,_=s.iconTpl,m=t.sdS(3);t.Y8G("nzTitle",m)("nzValue",c&&t.bMT(1,3,c.actionCount)||0)("nzPrefix",_)}}function B(e,s){1&e&&t.SdG(0,0,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.commentsRank,\n title: 'Comments',\n iconTpl: commentIcon\n }\n "])}function V(e,s){1&e&&(t.nrm(0,"i",19),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Comment"))}function U(e,s){1&e&&t.SdG(0,1,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.revisionsRank,\n title: 'Revisions',\n iconTpl: revisionIcon\n }\n "])}function K(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Revision"))}function o(e,s){1&e&&t.SdG(0,2,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.submissionsRank,\n title: 'Submissions',\n iconTpl: submissionsIcon\n }\n "])}function r(e,s){1&e&&(t.nrm(0,"i",21),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Curator"))}function i(e,s){1&e&&t.SdG(0,3,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.moderationRank,\n title: 'Moderations',\n iconTpl: moderationIcon\n }\n "])}function l(e,s){1&e&&(t.nrm(0,"i",22),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Editor"))}function u(e,s){if(1&e){const c=t.RV6();t.EFF(0," Include Child Org Counts "),t.j41(1,"nz-switch",24),t.mxI("ngModelChange",function(m){t.eBV(c);const v=t.XpG(2);return t.DH7(v.showSubGroupStats,m)||(v.showSubGroupStats=m),t.Njj(m)}),t.k0s()}if(2&e){const c=t.XpG(2);t.R7$(),t.R50("ngModel",c.showSubGroupStats)}}function k(e,s){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"EvidenceItem")),t.R7$(2),t.xc7("color",t.bMT(3,5,"EvidenceItem")))}function H(e,s){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"EvidenceItem")),t.R7$(2),t.xc7("color",t.bMT(3,5,"EvidenceItem")))}function J(e,s){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Assertion")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Assertion")))}function Q(e,s){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Assertion")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Assertion")))}function Z(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Revision")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Revision")))}function q(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Revision")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Revision")))}function tt(e,s){1&e&&(t.nrm(0,"i",19),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Comment"))}function nt(e,s){1&e&&(t.nrm(0,"i",39),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Source"))}function et(e,s){if(1&e&&(t.qex(0),t.j41(1,"nz-row",25)(2,"nz-col",26),t.nrm(3,"nz-statistic",27),t.nI1(4,"number"),t.k0s(),t.j41(5,"nz-col",26),t.nrm(6,"nz-statistic",28),t.nI1(7,"number"),t.k0s(),t.DNE(8,k,4,7,"ng-template",null,8,t.C5r)(10,H,4,7,"ng-template",null,9,t.C5r),t.j41(12,"nz-col",26),t.nrm(13,"nz-statistic",29),t.nI1(14,"number"),t.k0s(),t.j41(15,"nz-col",26),t.nrm(16,"nz-statistic",30),t.nI1(17,"number"),t.k0s(),t.DNE(18,J,4,7,"ng-template",null,10,t.C5r)(20,Q,4,7,"ng-template",null,11,t.C5r),t.j41(22,"nz-col",26),t.nrm(23,"nz-statistic",31),t.nI1(24,"number"),t.k0s(),t.j41(25,"nz-col",26),t.nrm(26,"nz-statistic",32),t.nI1(27,"number"),t.k0s(),t.DNE(28,Z,4,7,"ng-template",null,12,t.C5r)(30,q,4,7,"ng-template",null,13,t.C5r),t.j41(32,"nz-col",26),t.nrm(33,"nz-statistic",33),t.nI1(34,"number"),t.DNE(35,tt,2,3,"ng-template",null,1,t.C5r),t.k0s(),t.j41(37,"nz-col",26),t.nrm(38,"nz-statistic",34),t.nI1(39,"number"),t.k0s(),t.DNE(40,nt,2,3,"ng-template",null,14,t.C5r),t.k0s(),t.bVm()),2&e){const c=s.ngIf,_=t.sdS(9),m=t.sdS(11),v=t.sdS(19),N=t.sdS(21),W=t.sdS(29),F=t.sdS(31),j=t.sdS(36),X=t.sdS(41);t.R7$(),t.Y8G("nzGutter",t.lJ4(41,b)),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(4,25,c.submittedEvidenceItems))("nzPrefix",_),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(7,27,c.acceptedEvidenceItems))("nzPrefix",m),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(14,29,c.submittedAssertions))("nzPrefix",v),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(17,31,c.acceptedAssertions))("nzPrefix",N),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(24,33,c.revisions))("nzPrefix",W),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(27,35,c.appliedRevisions))("nzPrefix",F),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(34,37,c.comments))("nzPrefix",j),t.R7$(4),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(39,39,c.suggestedSources))("nzPrefix",X)}}function ot(e,s){if(1&e&&(t.j41(0,"nz-card",23),t.DNE(1,u,2,1,"ng-template",null,7,t.C5r)(3,et,42,42,"ng-container",18),t.nI1(4,"ngrxPush"),t.k0s()),2&e){const c=t.sdS(2),_=t.XpG();t.Y8G("nzBorderless",!0)("nzExtra",_.cvcSubGroupStats?c:void 0),t.R7$(3),t.Y8G("ngIf",t.bMT(4,3,_.stat$))}}let at=(()=>{class e{get showSubGroupStats(){return this.showSubGroupStat$.value}set showSubGroupStats(c){this.updateModel(c)}constructor(){this.stat$=new n.t(void 0),this.showSubGroupStat$=new n.t(!0)}updateModel(c){!0===c&&void 0!==this.cvcSubGroupStats?(this.showSubGroupStat$.next(!0),this.stat$.next(this.cvcSubGroupStats)):(this.showSubGroupStat$.next(!1),this.stat$.next(this.cvcStats))}ngOnInit(){this.updateModel(void 0!==this.cvcSubGroupStats)}static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-stats-card"]],inputs:{cvcStats:"cvcStats",cvcRanks:"cvcRanks",cvcSubGroupStats:"cvcSubGroupStats"},ngContentSelectors:I,decls:18,vars:21,consts:[["rankedActivity",""],["commentIcon",""],["revisionIcon",""],["submissionsIcon",""],["moderationIcon",""],["activityDetails",""],["activityTitle",""],["subGroupsSwitch",""],["evidenceSubmitPrefix",""],["evidenceAcceptPrefix",""],["assertionSubmitPrefix",""],["assertionAcceptPrefix",""],["revisionSubmitPrefix",""],["revisionAcceptPrefix",""],["sourceIcon",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzBlock","","nzSize","small","nz-popover","","nzPopoverTrigger","hover",2,"margin-top","8px",3,"nzPopoverContent"],[3,"nzTitle","nzValue","nzPrefix"],[4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-editor",3,"nzTwotoneColor"],["nzSize","small","nzTitle","Activity Details",3,"nzBorderless","nzExtra"],["nzSize","small",3,"ngModelChange","ngModel"],[2,"max-width","25em",3,"nzGutter"],[3,"nzSpan"],["nzTitle","Evidence Submitted",3,"nzValue","nzPrefix"],["nzTitle","Evidence Accepted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Submitted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Accepted",3,"nzValue","nzPrefix"],["nzTitle","Revisions Suggested",3,"nzValue","nzPrefix"],["nzTitle","Revisions Applied",3,"nzValue","nzPrefix"],["nzTitle","Comments",3,"nzValue","nzPrefix"],["nzTitle","Sources Suggested",3,"nzValue","nzPrefix"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","outline","nzType","plus"],["nz-icon","","nzTheme","outline","nzType","check"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"]],template:function(_,m){if(1&_&&(t.NAR(I),t.DNE(0,L,4,5,"ng-template",null,0,t.C5r)(2,B,1,0,"ng-content",15)(3,V,2,3,"ng-template",null,1,t.C5r)(5,U,1,0,"ng-content",15)(6,K,2,3,"ng-template",null,2,t.C5r)(8,o,1,0,"ng-content",15)(9,r,2,3,"ng-template",null,3,t.C5r)(11,i,1,0,"ng-content",15)(12,l,2,3,"ng-template",null,4,t.C5r),t.j41(14,"button",16),t.EFF(15," Activity Details\n"),t.k0s(),t.DNE(16,ot,5,5,"ng-template",null,5,t.C5r)),2&_){const v=t.sdS(1),N=t.sdS(4),W=t.sdS(7),F=t.sdS(10),j=t.sdS(13),X=t.sdS(17);t.R7$(2),t.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",t.l_i(9,y,m.cvcRanks.commentsRank,N)),t.R7$(3),t.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",t.l_i(12,M,m.cvcRanks.revisionsRank,W)),t.R7$(3),t.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",t.l_i(15,$,m.cvcRanks.submissionsRank,F)),t.R7$(3),t.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",t.l_i(18,Y,m.cvcRanks.moderationRank,j)),t.R7$(3),t.Y8G("nzPopoverContent",X)}},dependencies:[g.bT,g.T3,S.BC,S.vS,d.aO,p.c,C.p,E.cK,R.IV,O.Dn,x.Uq,x.e,P.L_,z.u,g.QX,h.L9,G,T.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-statistic .ant-statistic-title{padding-top:.25em}[_nghost-%COMP%] nz-statistic .ant-statistic-content{border-bottom:1px solid #f0f0f0;padding-bottom:.15em} .ant-popover .ant-popover-inner-content{padding:0}h5[_ngcontent-%COMP%]{font-weight:400}"],changeDetection:0})}return e})()},6208:(D,f,a)=>{a.d(f,{K:()=>G});var n=a(177),t=a(9417),g=a(4917),S=a(3146),d=a(513),p=a(5703),C=a(7529),E=a(5103),R=a(1236),O=a(2269),x=a(7481),P=a(5154),z=a(7391),h=a(3953);let G=(()=>{class T{static#t=this.\u0275fac=function(M){return new(M||T)};static#n=this.\u0275mod=h.$C({type:T});static#e=this.\u0275inj=h.G2t({imports:[n.MD,t.YN,d.Zw,p.Ti,O.Fw,z.kT,E.Y3,C.f3,S.W2,P.Qt,R.MC,x.$,g.i]})}return T})()},6911:(D,f,a)=>{a.d(f,{U:()=>K});var n=a(3953),t=a(177),g=a(5699),S=a(1236),d=a(7855),p=a(9563),C=a(9861),E=a(6440),R=a(3245),O=a(3100),x=a(6073),P=a(959);const z=o=>({"matched-tag":o}),h=(o,r)=>({tagType:o,tag:r});function G(o,r){if(1&o&&(n.j41(0,"div",4),n.eu8(1,6),n.k0s()),2&o){const i=r.$implicit,l=n.XpG(),u=n.sdS(7);n.Y8G("ngClass",n.eq3(3,z,l.matchingText&&i.matchText.toLowerCase().includes(l.matchingText))),n.R7$(),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.l_i(5,h,l.tagType,i))}}function T(o,r){if(1&o&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&o){const i=n.XpG(2);n.R7$(),n.SpI(" ",i.matchedHiddenCount," of ")}}function I(o,r){if(1&o&&(n.j41(0,"nz-tag",7),n.EFF(1," +"),n.DNE(2,T,2,1,"span",8),n.EFF(3),n.k0s()),2&o){const i=n.XpG(),l=n.sdS(5);n.Y8G("nzPopoverContent",l),n.R7$(2),n.Y8G("ngIf",i.matchedHiddenCount>0),n.R7$(),n.SpI("",i.hiddenCount," ")}}function y(o,r){if(1&o&&(n.j41(0,"div",4),n.qex(1,10),n.eu8(2,6),n.bVm(),n.k0s()),2&o){const i=r.$implicit,l=n.XpG(2),u=n.sdS(7);n.Y8G("ngClass",n.eq3(4,z,l.matchingText&&i.matchText.toLowerCase().includes(l.matchingText))),n.R7$(),n.Y8G("ngSwitch",l.tagType),n.R7$(),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.l_i(6,h,l.tagType,i))}}function M(o,r){if(1&o&&(n.j41(0,"div",9)(1,"cvc-tag-list",2),n.DNE(2,y,3,9,"div",3),n.k0s()()),2&o){const i=n.XpG();n.R7$(2),n.Y8G("ngForOf",i.hiddenTags)}}function $(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",12),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("therapy",i)("truncateLongName",!0)}}function Y(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-disease-tag",13),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("disease",i)("truncateLongName",!0)}}function b(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-feature-tag",14),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("feature",i)("truncateLongName",!0)}}function A(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-organization-tag",15),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("org",i)}}function w(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-variant-tag",16),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("variant",i)}}function L(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-variant-type-tag",17),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("variantType",i)}}function B(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-feature-variant-tag",18),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("truncateLongName",!0)("variant",i)}}function V(o,r){1&o&&(n.qex(0,10),n.DNE(1,$,2,2,"ng-container",11)(2,Y,2,2,"ng-container",11)(3,b,2,2,"ng-container",11)(4,A,2,1,"ng-container",11)(5,w,2,1,"ng-container",11)(6,L,2,1,"ng-container",11)(7,B,2,2,"ng-container",11),n.bVm()),2&o&&(n.Y8G("ngSwitch",r.tagType),n.R7$(),n.Y8G("ngSwitchCase","therapy"),n.R7$(),n.Y8G("ngSwitchCase","disease"),n.R7$(),n.Y8G("ngSwitchCase","feature"),n.R7$(),n.Y8G("ngSwitchCase","organization"),n.R7$(),n.Y8G("ngSwitchCase","variant"),n.R7$(),n.Y8G("ngSwitchCase","variant-type"),n.R7$(),n.Y8G("ngSwitchCase","variant-feature"))}function U(o){return o?.map(r=>r.matchText?r:{...r,matchText:r.name})}let K=(()=>{class o{constructor(i){this.cdr=i,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(i){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 i=this.matchingText.toLowerCase();this.hiddenTags.forEach(l=>{l.matchText.toLowerCase().includes(i)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(l){return new(l||o)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",U],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.GFd,n.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[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,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(l,u){1&l&&(n.j41(0,"cvc-tag-list",2),n.DNE(1,G,2,8,"div",3),n.j41(2,"div",4),n.DNE(3,I,4,3,"nz-tag",5),n.k0s(),n.DNE(4,M,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(6,V,8,8,"ng-template",null,1,n.C5r)),2&l&&(n.R7$(),n.Y8G("ngForOf",u.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,z,u.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",u.hiddenCount&&u.hiddenCount>0))},dependencies:[t.YU,t.Sq,t.bT,t.T3,t.ux,t.e1,g.s,S.L_,d.M,p.R,C.Y,E.r,R._,O.V,x.h,P.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return o})()},1845:(D,f,a)=>{a.d(f,{f:()=>t});var n=a(3953);let t=(()=>{class g{transform(d){if(d){let C=d.toLowerCase().replace(/_/g," ").split(" ");for(var p=0;p{a.d(f,{d:()=>at});var n=a(4412),t=a(3953),d=a(177),T=a(9417),h=a(513),S=a(6389),x=a(5930),R=a(5703),E=a(2269),G=a(5103),z=a(7529),O=a(1236),v=a(7481),u=a(1774);let P=(()=>{class e{transform(c){const _=+c%10;return c+["th","st","nd","rd"][10==+c%100-_||_>3?0:_]}static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275pipe=t.EJ8({name:"ordinal",type:e,pure:!0})}return e})();var C=a(3075);const I=["*","*","*","*"],y=(e,s)=>({$implicit:e,title:"Comments",iconTpl:s}),M=(e,s)=>({$implicit:e,title:"Revisions",iconTpl:s}),D=(e,s)=>({$implicit:e,title:"Submissions",iconTpl:s}),$=(e,s)=>({$implicit:e,title:"Moderations",iconTpl:s}),Y=()=>[8,8];function b(e,s){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"ordinal"),t.bVm()),2&e){const c=t.XpG(2).$implicit;t.R7$(),t.SpI(" (",t.bMT(2,1,c.rank),") ")}}function A(e,s){if(1&e&&(t.EFF(0),t.DNE(1,b,3,3,"ng-container",18)),2&e){const c=t.XpG(),_=c.$implicit;t.SpI(" ",c.title," "),t.R7$(),t.Y8G("ngIf",_)}}function w(e,s){if(1&e&&(t.nrm(0,"nz-statistic",17),t.nI1(1,"number"),t.DNE(2,A,2,2,"ng-template",null,6,t.C5r)),2&e){const c=s.$implicit,_=s.iconTpl,m=t.sdS(3);t.Y8G("nzTitle",m)("nzValue",c&&t.bMT(1,3,c.actionCount)||0)("nzPrefix",_)}}function L(e,s){1&e&&t.SdG(0,0,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.commentsRank,\n title: 'Comments',\n iconTpl: commentIcon\n }\n "])}function V(e,s){1&e&&(t.nrm(0,"i",19),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Comment"))}function B(e,s){1&e&&t.SdG(0,1,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.revisionsRank,\n title: 'Revisions',\n iconTpl: revisionIcon\n }\n "])}function U(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Revision"))}function o(e,s){1&e&&t.SdG(0,2,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.submissionsRank,\n title: 'Submissions',\n iconTpl: submissionsIcon\n }\n "])}function r(e,s){1&e&&(t.nrm(0,"i",21),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Curator"))}function i(e,s){1&e&&t.SdG(0,3,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.moderationRank,\n title: 'Moderations',\n iconTpl: moderationIcon\n }\n "])}function l(e,s){1&e&&(t.nrm(0,"i",22),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Editor"))}function p(e,s){if(1&e){const c=t.RV6();t.EFF(0," Include Child Org Counts "),t.j41(1,"nz-switch",24),t.mxI("ngModelChange",function(m){t.eBV(c);const g=t.XpG(2);return t.DH7(g.showSubGroupStats,m)||(g.showSubGroupStats=m),t.Njj(m)}),t.k0s()}if(2&e){const c=t.XpG(2);t.R7$(),t.R50("ngModel",c.showSubGroupStats)}}function k(e,s){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"EvidenceItem")),t.R7$(2),t.xc7("color",t.bMT(3,5,"EvidenceItem")))}function H(e,s){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"EvidenceItem")),t.R7$(2),t.xc7("color",t.bMT(3,5,"EvidenceItem")))}function J(e,s){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Assertion")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Assertion")))}function Q(e,s){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Assertion")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Assertion")))}function Z(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Revision")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Revision")))}function q(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Revision")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Revision")))}function tt(e,s){1&e&&(t.nrm(0,"i",19),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Comment"))}function nt(e,s){1&e&&(t.nrm(0,"i",39),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Source"))}function et(e,s){if(1&e&&(t.qex(0),t.j41(1,"nz-row",25)(2,"nz-col",26),t.nrm(3,"nz-statistic",27),t.nI1(4,"number"),t.k0s(),t.j41(5,"nz-col",26),t.nrm(6,"nz-statistic",28),t.nI1(7,"number"),t.k0s(),t.DNE(8,k,4,7,"ng-template",null,8,t.C5r)(10,H,4,7,"ng-template",null,9,t.C5r),t.j41(12,"nz-col",26),t.nrm(13,"nz-statistic",29),t.nI1(14,"number"),t.k0s(),t.j41(15,"nz-col",26),t.nrm(16,"nz-statistic",30),t.nI1(17,"number"),t.k0s(),t.DNE(18,J,4,7,"ng-template",null,10,t.C5r)(20,Q,4,7,"ng-template",null,11,t.C5r),t.j41(22,"nz-col",26),t.nrm(23,"nz-statistic",31),t.nI1(24,"number"),t.k0s(),t.j41(25,"nz-col",26),t.nrm(26,"nz-statistic",32),t.nI1(27,"number"),t.k0s(),t.DNE(28,Z,4,7,"ng-template",null,12,t.C5r)(30,q,4,7,"ng-template",null,13,t.C5r),t.j41(32,"nz-col",26),t.nrm(33,"nz-statistic",33),t.nI1(34,"number"),t.DNE(35,tt,2,3,"ng-template",null,1,t.C5r),t.k0s(),t.j41(37,"nz-col",26),t.nrm(38,"nz-statistic",34),t.nI1(39,"number"),t.k0s(),t.DNE(40,nt,2,3,"ng-template",null,14,t.C5r),t.k0s(),t.bVm()),2&e){const c=s.ngIf,_=t.sdS(9),m=t.sdS(11),g=t.sdS(19),K=t.sdS(21),N=t.sdS(29),W=t.sdS(31),F=t.sdS(36),j=t.sdS(41);t.R7$(),t.Y8G("nzGutter",t.lJ4(41,Y)),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(4,25,c.submittedEvidenceItems))("nzPrefix",_),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(7,27,c.acceptedEvidenceItems))("nzPrefix",m),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(14,29,c.submittedAssertions))("nzPrefix",g),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(17,31,c.acceptedAssertions))("nzPrefix",K),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(24,33,c.revisions))("nzPrefix",N),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(27,35,c.appliedRevisions))("nzPrefix",W),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(34,37,c.comments))("nzPrefix",F),t.R7$(4),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(39,39,c.suggestedSources))("nzPrefix",j)}}function ot(e,s){if(1&e&&(t.j41(0,"nz-card",23),t.DNE(1,p,2,1,"ng-template",null,7,t.C5r)(3,et,42,42,"ng-container",18),t.nI1(4,"ngrxPush"),t.k0s()),2&e){const c=t.sdS(2),_=t.XpG();t.Y8G("nzBorderless",!0)("nzExtra",_.cvcSubGroupStats?c:void 0),t.R7$(3),t.Y8G("ngIf",t.bMT(4,3,_.stat$))}}let at=(()=>{class e{get showSubGroupStats(){return this.showSubGroupStat$.value}set showSubGroupStats(c){this.updateModel(c)}constructor(){this.stat$=new n.t(void 0),this.showSubGroupStat$=new n.t(!0)}updateModel(c){!0===c&&void 0!==this.cvcSubGroupStats?(this.showSubGroupStat$.next(!0),this.stat$.next(this.cvcSubGroupStats)):(this.showSubGroupStat$.next(!1),this.stat$.next(this.cvcStats))}ngOnInit(){this.updateModel(void 0!==this.cvcSubGroupStats)}static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-stats-card"]],inputs:{cvcStats:"cvcStats",cvcRanks:"cvcRanks",cvcSubGroupStats:"cvcSubGroupStats"},ngContentSelectors:I,decls:18,vars:21,consts:[["rankedActivity",""],["commentIcon",""],["revisionIcon",""],["submissionsIcon",""],["moderationIcon",""],["activityDetails",""],["activityTitle",""],["subGroupsSwitch",""],["evidenceSubmitPrefix",""],["evidenceAcceptPrefix",""],["assertionSubmitPrefix",""],["assertionAcceptPrefix",""],["revisionSubmitPrefix",""],["revisionAcceptPrefix",""],["sourceIcon",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzBlock","","nzSize","small","nz-popover","","nzPopoverTrigger","hover",2,"margin-top","8px",3,"nzPopoverContent"],[3,"nzTitle","nzValue","nzPrefix"],[4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-editor",3,"nzTwotoneColor"],["nzSize","small","nzTitle","Activity Details",3,"nzBorderless","nzExtra"],["nzSize","small",3,"ngModelChange","ngModel"],[2,"max-width","25em",3,"nzGutter"],[3,"nzSpan"],["nzTitle","Evidence Submitted",3,"nzValue","nzPrefix"],["nzTitle","Evidence Accepted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Submitted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Accepted",3,"nzValue","nzPrefix"],["nzTitle","Revisions Suggested",3,"nzValue","nzPrefix"],["nzTitle","Revisions Applied",3,"nzValue","nzPrefix"],["nzTitle","Comments",3,"nzValue","nzPrefix"],["nzTitle","Sources Suggested",3,"nzValue","nzPrefix"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","outline","nzType","plus"],["nz-icon","","nzTheme","outline","nzType","check"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"]],template:function(_,m){if(1&_&&(t.NAR(I),t.DNE(0,w,4,5,"ng-template",null,0,t.C5r)(2,L,1,0,"ng-content",15)(3,V,2,3,"ng-template",null,1,t.C5r)(5,B,1,0,"ng-content",15)(6,U,2,3,"ng-template",null,2,t.C5r)(8,o,1,0,"ng-content",15)(9,r,2,3,"ng-template",null,3,t.C5r)(11,i,1,0,"ng-content",15)(12,l,2,3,"ng-template",null,4,t.C5r),t.j41(14,"button",16),t.EFF(15," Activity Details\n"),t.k0s(),t.DNE(16,ot,5,5,"ng-template",null,5,t.C5r)),2&_){const g=t.sdS(1),K=t.sdS(4),N=t.sdS(7),W=t.sdS(10),F=t.sdS(13),j=t.sdS(17);t.R7$(2),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(9,y,m.cvcRanks.commentsRank,K)),t.R7$(3),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(12,M,m.cvcRanks.revisionsRank,N)),t.R7$(3),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(15,D,m.cvcRanks.submissionsRank,W)),t.R7$(3),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(18,$,m.cvcRanks.moderationRank,F)),t.R7$(3),t.Y8G("nzPopoverContent",j)}},dependencies:[d.bT,d.T3,T.BC,T.vS,h.aO,S.c,x.p,R.cK,E.IV,G.Dn,z.Uq,z.e,O.L_,v.u,d.QX,u.L9,P,C.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-statistic .ant-statistic-title{padding-top:.25em}[_nghost-%COMP%] nz-statistic .ant-statistic-content{border-bottom:1px solid #f0f0f0;padding-bottom:.15em} .ant-popover .ant-popover-inner-content{padding:0}h5[_ngcontent-%COMP%]{font-weight:400}"],changeDetection:0})}return e})()},6208:(X,f,a)=>{a.d(f,{K:()=>P});var n=a(177),t=a(9417),d=a(4917),T=a(3146),h=a(513),S=a(5703),x=a(7529),R=a(5103),E=a(1236),G=a(2269),z=a(7481),O=a(5154),v=a(7391),u=a(3953);let P=(()=>{class C{static#t=this.\u0275fac=function(M){return new(M||C)};static#n=this.\u0275mod=u.$C({type:C});static#e=this.\u0275inj=u.G2t({imports:[n.MD,t.YN,h.Zw,S.Ti,G.Fw,v.kT,R.Y3,x.f3,T.W2,O.Qt,E.MC,z.$,d.i]})}return C})()},6911:(X,f,a)=>{a.d(f,{U:()=>U});var n=a(3953),t=a(177),d=a(5699),T=a(1236),h=a(7855),S=a(9563),x=a(9861),R=a(6440),E=a(3245),G=a(3100),z=a(6073),O=a(959);const v=o=>({"matched-tag":o}),u=(o,r)=>({tagType:o,tag:r});function P(o,r){if(1&o&&(n.j41(0,"div",4),n.eu8(1,6),n.k0s()),2&o){const i=r.$implicit,l=n.XpG(),p=n.sdS(7);n.Y8G("ngClass",n.eq3(3,v,l.matchingText&&i.matchText.toLowerCase().includes(l.matchingText))),n.R7$(),n.Y8G("ngTemplateOutlet",p)("ngTemplateOutletContext",n.l_i(5,u,l.tagType,i))}}function C(o,r){if(1&o&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&o){const i=n.XpG(2);n.R7$(),n.SpI(" ",i.matchedHiddenCount," of ")}}function I(o,r){if(1&o&&(n.j41(0,"nz-tag",7),n.EFF(1," +"),n.DNE(2,C,2,1,"span",8),n.EFF(3),n.k0s()),2&o){const i=n.XpG(),l=n.sdS(5);n.Y8G("nzPopoverContent",l),n.R7$(2),n.Y8G("ngIf",i.matchedHiddenCount>0),n.R7$(),n.SpI("",i.hiddenCount," ")}}function y(o,r){if(1&o&&(n.j41(0,"div",4),n.qex(1,10),n.eu8(2,6),n.bVm(),n.k0s()),2&o){const i=r.$implicit,l=n.XpG(2),p=n.sdS(7);n.Y8G("ngClass",n.eq3(4,v,l.matchingText&&i.matchText.toLowerCase().includes(l.matchingText))),n.R7$(),n.Y8G("ngSwitch",l.tagType),n.R7$(),n.Y8G("ngTemplateOutlet",p)("ngTemplateOutletContext",n.l_i(6,u,l.tagType,i))}}function M(o,r){if(1&o&&(n.j41(0,"div",9)(1,"cvc-tag-list",2),n.DNE(2,y,3,9,"div",3),n.k0s()()),2&o){const i=n.XpG();n.R7$(2),n.Y8G("ngForOf",i.hiddenTags)}}function D(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",12),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("therapy",i)("truncateLongName",!0)}}function $(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-disease-tag",13),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("disease",i)("truncateLongName",!0)}}function Y(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-feature-tag",14),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("feature",i)("truncateLongName",!0)}}function b(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-organization-tag",15),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("org",i)}}function A(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-variant-tag",16),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("variant",i)}}function w(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-variant-type-tag",17),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("variantType",i)}}function L(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-feature-variant-tag",18),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("truncateLongName",!0)("variant",i)}}function V(o,r){1&o&&(n.qex(0,10),n.DNE(1,D,2,2,"ng-container",11)(2,$,2,2,"ng-container",11)(3,Y,2,2,"ng-container",11)(4,b,2,1,"ng-container",11)(5,A,2,1,"ng-container",11)(6,w,2,1,"ng-container",11)(7,L,2,2,"ng-container",11),n.bVm()),2&o&&(n.Y8G("ngSwitch",r.tagType),n.R7$(),n.Y8G("ngSwitchCase","therapy"),n.R7$(),n.Y8G("ngSwitchCase","disease"),n.R7$(),n.Y8G("ngSwitchCase","feature"),n.R7$(),n.Y8G("ngSwitchCase","organization"),n.R7$(),n.Y8G("ngSwitchCase","variant"),n.R7$(),n.Y8G("ngSwitchCase","variant-type"),n.R7$(),n.Y8G("ngSwitchCase","variant-feature"))}function B(o){return o?.map(r=>r.matchText?r:{...r,matchText:r.name})}let U=(()=>{class o{constructor(i){this.cdr=i,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(i){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 i=this.matchingText.toLowerCase();this.hiddenTags.forEach(l=>{l.matchText.toLowerCase().includes(i)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(l){return new(l||o)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",B],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.GFd,n.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[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,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(l,p){1&l&&(n.j41(0,"cvc-tag-list",2),n.DNE(1,P,2,8,"div",3),n.j41(2,"div",4),n.DNE(3,I,4,3,"nz-tag",5),n.k0s(),n.DNE(4,M,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(6,V,8,8,"ng-template",null,1,n.C5r)),2&l&&(n.R7$(),n.Y8G("ngForOf",p.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,v,p.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",p.hiddenCount&&p.hiddenCount>0))},dependencies:[t.YU,t.Sq,t.bT,t.T3,t.ux,t.e1,d.s,T.L_,h.M,S.R,x.Y,R.r,E._,G.V,z.h,O.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return o})()}}]); \ No newline at end of file diff --git a/server/public/2613.5189fb0b37846b42.js b/server/public/2613.5189fb0b37846b42.js deleted file mode 100644 index a514cd009..000000000 --- a/server/public/2613.5189fb0b37846b42.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2613],{7480:(z,m,i)=>{function l(f,v){const u=(t,o)=>{let d;for(let c of t)if(c.fieldGroup)d=u(c.fieldGroup,o);else if(c.key===o){d=c;break}return d},p=(t,o)=>{for(let d of Object.keys(o))if(o[d]instanceof Object&&!Array.isArray(o[d]))p(t,o[d]);else{const c=u(t,d);c&&(c.defaultValue=o[d])}return t};return p(f,v)}i.d(m,{A:()=>l})},2613:(z,m,i)=>{i.r(m),i.d(m,{VariantsReviseModule:()=>ht});var l=i(177),f=i(1188),v=i(9172),u=i(6354),p=i(4608),t=i(3953),o=i(9145),d=i(1305),c=i(3062),C=i(5103),R=i(9765),T=i(2261),y=i(7529),M=i(3075),G=i(1774);function _(e,r){1&e&&(t.j41(0,"span"),t.EFF(1,",\xa0"),t.k0s())}function S(e,r){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.DNE(2,_,2,0,"span",1),t.k0s()),2&e){const n=r.$implicit,a=r.last;t.R7$(),t.SpI(" ",n,""),t.R7$(),t.Y8G("ngIf",!a)}}function P(e,r){if(1&e&&(t.j41(0,"nz-page-header-subtitle"),t.DNE(1,S,3,2,"span",8),t.k0s()),2&e){const n=t.XpG().ngIf;t.R7$(),t.Y8G("ngForOf",n.variantAliases)}}function E(e,r){1&e&&(t.j41(0,"div"),t.nrm(1,"router-outlet"),t.k0s())}function O(e,r){1&e&&(t.j41(0,"nz-row",9)(1,"div",10),t.nrm(2,"cvc-login-prompt"),t.k0s()())}function $(e,r){if(1&e&&(t.qex(0),t.nrm(1,"cvc-section-navigation",2),t.j41(2,"nz-page-header",3)(3,"nz-page-header-title",4),t.EFF(4," REVISE "),t.nrm(5,"i",5),t.nI1(6,"entityColor"),t.EFF(7),t.k0s(),t.DNE(8,P,2,1,"nz-page-header-subtitle",1),t.j41(9,"nz-page-header-content")(10,"div",6),t.DNE(11,E,2,0,"div",7),t.nI1(12,"ngrxPush"),t.DNE(13,O,3,0,"ng-template",null,0,t.C5r),t.k0s()()(),t.bVm()),2&e){const n=r.ngIf,a=t.sdS(14),s=t.XpG();t.R7$(),t.Y8G("displayName",n.name),t.R7$(4),t.Y8G("nzTwotoneColor",t.bMT(6,6,"Variant")),t.R7$(2),t.SpI(" ",n.name," "),t.R7$(),t.Y8G("ngIf",n.variantAliases.length>0),t.R7$(3),t.Y8G("ngIf",t.bMT(12,8,s.isSignedIn$))("ngIfElse",a)}}let j=(()=>{class e{constructor(n,a,s){this.gql=n,this.route=a,this.viewerService=s,this.routeSub=this.route.params.subscribe(g=>{let F=this.gql.watch({variantId:+g.variantId}).valueChanges;this.loading$=F.pipe((0,p.E)("loading"),(0,v.Z)(!0)),this.variant$=F.pipe((0,p.E)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,p.E)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,p.E)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,p.E)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,u.T)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||e)(t.rXU(o.N47),t.rXU(f.nX),t.rXU(d.q))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[["notSignedIn",""],[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(a,s){1&a&&(t.DNE(0,$,15,10,"ng-container",1),t.nI1(1,"async")),2&a&&t.Y8G("ngIf",t.bMT(1,1,s.variant$))},dependencies:[l.Sq,l.bT,f.n3,c.WB,c.k9,c.CO,c.zR,C.Dn,R.n,T.h,y.Uq,y.e,l.Jj,M.R,G.L9],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}"]})}return e})();var w=i(6404),x=i(8927),D=i(513),X=i(2229),N=i(776),Y=i(5316);let U=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[l.MD,x.PQ,D.Zw,X.m,Y.P,N.s]})}return e})(),A=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[l.MD,w.v,U]})}return e})();var L=i(2276),B=i(1635),h=i(9417),b=i(9894),J=i(1226);const k=(0,i(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Variant"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,md:12,lg:8},{xs:24,md:12,lg:8},{xs:24,lg:8}]}},fieldGroup:[{key:"featureId",type:"feature-select",props:{description:"Enter a Factor for this Variant",required:!0,featureType:o.Xiu.Factor,canChangeFeatureType:!1}},{key:"name",type:"base-input",props:{placeholder:"Enter a name for this Variant",description:"Enter the name of the Variant according to the Variant Curation SOP",label:"Name",required:!0,rows:1}},{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Variant",placeholder:"Enter Alias and hit return"}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,lg:12,xl:6,xxl:8},{xs:24,lg:12,xl:6,xxl:8},{xs:24,xl:12,xxl:8}]}},fieldGroup:[{key:"variantTypeIds",type:"variant-type-multi-select"},{key:"ncitId",type:"base-input",props:{placeholder:"NCI Thesaurus Code",description:"Enter the NCI Thesaurus Code for this Factor Variant",label:"NCI Thesaurus Code",required:!1}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{name:void 0,aliases:void 0,variantTypeIds:void 0,featureId:void 0,ncitId:void 0},comment:void 0,organizationId:void 0});var H=i(5741),tt=i(4222),et=i(8524),nt=i(8721);const at=()=>({});function it(e,r){if(1&e&&(t.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),t.j41(1,"a",4),t.EFF(2,"here."),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.FS9("href",n.url,t.B4B)}}function rt(e,r){if(1&e){const n=t.RV6();t.j41(0,"form",5),t.bIt("ngSubmit",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.onSubmit(s.model))}),t.j41(1,"formly-form",6),t.bIt("modelChange",function(s){t.eBV(n);const g=t.XpG();return t.Njj(g.model=s)}),t.k0s()()}if(2&e){const n=t.XpG();t.Y8G("formGroup",n.form),t.R7$(),t.Y8G("form",n.form)("fields",n.fields)("model",n.model)("options",t.lJ4(5,at))}}function st(e,r){1&e&&t.EFF(0," Loading Variant... ")}let I=class V{constructor(r,n,a,s){this.revisableFieldsGQL=r,this.submitRevisionsGQL=n,this.networkErrorService=a,this.cdr=s,this.form=new h.J3({}),this.fields=k,this.reviseVariantMutator=new J.E(a)}ngOnInit(){this.url=`/variants/${this.variantId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).pipe((0,b.s)(this)).subscribe({next:({data:{variant:r}})=>{var e;r&&"FactorVariant"==r.__typename&&(this.model={id:r.id,fields:(e=r,{name:e.name,aliases:e.variantAliases,variantTypeIds:e.variantTypes.map(r=>r.id),featureId:e.feature.id,ncitId:e.ncitId})},this.cdr.detectChanges())},error:r=>{console.error("Error retrieving Variant."),console.error(r)},complete:()=>{}})}onSubmit(r){if(!this.variantId)return;let n=function q(e,r){const n=r.fields;if(r.comment&&n.name&&n.featureId)return{id:e,fields:{name:n.name,aliases:n.aliases||[],variantTypeIds:n.variantTypeIds||[],featureId:n.featureId,ncitId:H.q2(n.ncitId)},organizationId:r.organizationId,comment:r.comment}}(this.variantId,r);n&&(this.mutationState=this.reviseVariantMutator.mutate(this.submitRevisionsGQL,{input:n}))}static#t=this.\u0275fac=function(n){return new(n||V)(t.rXU(o.JTF),t.rXU(o.Ye0),t.rXU(tt.N),t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:V,selectors:[["cvc-factor-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Variant",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(n,a){if(1&n&&(t.j41(0,"cvc-form-submission-status-display",2),t.DNE(1,it,3,1,"ng-template",null,0,t.C5r)(3,rt,2,6,"form",3)(4,st,1,0,"ng-template",null,1,t.C5r),t.k0s()),2&n){const s=t.sdS(2),g=t.sdS(5);t.Y8G("redirectUrl",a.url)("mutationState",a.mutationState)("successMessage",s),t.R7$(3),t.Y8G("ngIf",a.model)("ngIfElse",g)}},dependencies:[l.bT,x.CA,h.qT,h.cb,h.j4,et.aF,nt.G],encapsulation:2,changeDetection:0})};function ot(e,r){if(1&e&&t.nrm(0,"cvc-gene-variant-revise-form",2),2&e){const n=t.XpG(2);t.Y8G("variantId",n.variantId)}}function ct(e,r){if(1&e&&t.nrm(0,"cvc-factor-variant-revise-form",2),2&e){const n=t.XpG(2);t.Y8G("variantId",n.variantId)}}function dt(e,r){if(1&e&&(t.qex(0),t.DNE(1,ot,1,1,"cvc-gene-variant-revise-form",2)(2,ct,1,1,"cvc-factor-variant-revise-form",2),t.bVm()),2&e){let n;const a=t.XpG();t.R7$(),t.vxM("GeneVariant"===(n=a.variantType)?1:"FactorVariant"===n?2:-1)}}function lt(e,r){1&e&&t.EFF(0,"Loading Variant...")}I=(0,B.Cg)([(0,b.d)()],I);const pt=[{path:"",component:j,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class e{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(a=>{this.variantId=+a.variantId}),this.queryParams$=this.route.queryParamMap.subscribe(a=>{a.has("variantType")&&(this.variantType=a.get("variantType"))})}ngOnDestroy(){this.routeParams$.unsubscribe(),this.queryParams$.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||e)(t.rXU(f.nX))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[["loadingVariant",""],[4,"ngIf","ngIfElse"],[3,"variantId"]],template:function(a,s){if(1&a&&t.DNE(0,dt,3,1,"ng-container",1)(1,lt,1,0,"ng-template",null,0,t.C5r),2&a){const g=t.sdS(2);t.Y8G("ngIf",s.variantId&&s.variantType)("ngIfElse",g)}},dependencies:[l.bT,L.v,I],encapsulation:2})}return e})(),data:{breadcrumb:"Suggest Revision"}}]}];let ft=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[f.iI.forChild(pt),A,f.iI]})}return e})();var gt=i(4124),mt=i(3688),ut=i(4917);let ht=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[l.MD,ft,c.ZJ,C.Y3,ut.i,gt.C,mt.A,y.f3]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/2849.a8b9bc216e845c4a.js b/server/public/2849.a8b9bc216e845c4a.js deleted file mode 100644 index dfde4511a..000000000 --- a/server/public/2849.a8b9bc216e845c4a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2849],{6936:(B,D,n)=>{n.d(D,{G:()=>P});var r=n(177),t=n(1188),m=n(5699),o=n(1236),v=n(5103),h=n(4666),E=n(4917),e=n(3146),C=n(4994),s=n(3953);let P=(()=>{class _{static#t=this.\u0275fac=function(G){return new(G||_)};static#n=this.\u0275mod=s.$C({type:_});static#o=this.\u0275inj=s.G2t({imports:[r.MD,t.iI,e.W2,m.T,o.MC,v.Y3,h.v,E.i,C.a]})}return _})()},9354:(B,D,n)=>{n.d(D,{e:()=>x});var r=n(177),t=n(2142),m=n(5703),o=n(2e3),v=n(7529),h=n(9541),E=n(5699),e=n(3953),C=n(7855);function s(l,T){if(1&l&&(e.j41(0,"nz-descriptions-item",9),e.EFF(1),e.k0s()),2&l){const d=T.$implicit;e.Y8G("nzTitle",d.source)("nzSpan",1),e.R7$(),e.SpI(" ",d.definition," ")}}function P(l,T){if(1&l&&(e.j41(0,"nz-descriptions",5),e.Z7z(1,s,2,3,"nz-descriptions-item",9,e.Vm6),e.k0s()),2&l){const d=e.XpG(2);e.Y8G("nzBordered",!0)("nzColumn",1),e.R7$(),e.Dyx(d.ncitDetails.definitions)}}function _(l,T){1&l&&(e.j41(0,"span",6),e.EFF(1," None "),e.k0s())}function g(l,T){if(1&l&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&l){const d=T.$implicit;e.R7$(),e.JRh(d)}}function O(l,T){if(1&l&&(e.j41(0,"nz-descriptions-item",9)(1,"cvc-tag-list"),e.Z7z(2,g,2,1,"nz-tag",null,e.Vm6),e.k0s()()),2&l){const d=T.$implicit,I=e.XpG(3);e.Y8G("nzTitle",d)("nzSpan",2),e.R7$(2),e.Dyx(I.synonymsBySource.get(d))}}function G(l,T){if(1&l&&(e.j41(0,"nz-descriptions",8),e.Z7z(1,O,4,2,"nz-descriptions-item",9,e.Vm6),e.k0s()),2&l){const d=e.XpG(2);e.Y8G("nzBordered",!0)("nzColumn",2),e.R7$(),e.Dyx(d.synonymsBySource.keys())}}function f(l,T){1&l&&(e.j41(0,"span",6),e.EFF(1," None "),e.k0s())}function L(l,T){if(1&l&&(e.j41(0,"nz-card",1)(1,"nz-col",2)(2,"nz-tabset",3)(3,"nz-tab",4),e.DNE(4,P,3,2,"nz-descriptions",5)(5,_,2,0,"span",6),e.k0s(),e.j41(6,"nz-tab",7),e.DNE(7,G,3,2,"nz-descriptions",8)(8,f,2,0,"span",6),e.k0s()()()()),2&l){const d=e.XpG();e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzAnimated",!1),e.R7$(2),e.vxM(d.ncitDetails.definitions.length>0?4:5),e.R7$(3),e.vxM(d.ncitDetails.synonyms.length>0?7:8)}}function R(l,T){1&l&&(e.j41(0,"span",6),e.EFF(1," Not Found "),e.k0s())}let x=(()=>{class l{constructor(){this.synonymsBySource=new Map}ngOnInit(){this.ncitDetails&&this.ncitDetails.synonyms.forEach(d=>{this.synonymsBySource.has(d.name)||this.synonymsBySource.set(d.name,[]),this.synonymsBySource.get(d.name)?.push(d.source)})}static#t=this.\u0275fac=function(I){return new(I||l)};static#n=this.\u0275cmp=e.VBU({type:l,selectors:[["cvc-ncit-details"]],inputs:{ncitDetails:"ncitDetails"},standalone:!0,features:[e.aNF],decls:3,vars:1,consts:[["noValue",""],["nzTitle","NCI Thesaurus"],[3,"nzSpan"],[3,"nzAnimated"],["nzTitle","Definitions"],["nzSize","small","nzLayout","vertical",3,"nzBordered","nzColumn"],["nz-typography","","nzType","secondary"],["nzTitle","Synonyms"],["nzSize","small",3,"nzBordered","nzColumn"],[3,"nzTitle","nzSpan"]],template:function(I,p){1&I&&e.DNE(0,L,9,4,"nz-card",1)(1,R,2,0,"ng-template",null,0,e.C5r),2&I&&e.vxM(p.ncitDetails?0:-1)},dependencies:[r.MD,o.WF,o.xA,o.gr,m.Ti,m.cK,E.T,E.s,v.f3,v.Uq,h.hM,h.JZ,h.rE,t.x,C.M],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}"]})}return l})()},6719:(B,D,n)=>{n.d(D,{Q:()=>C});var r=n(3953),t=n(177),m=n(1672),o=n(5103);function v(s,P){if(1&s&&(r.j41(0,"span",5),r.EFF(1),r.k0s()),2&s){const _=r.XpG(2);r.R7$(),r.JRh(_.notification)}}function h(s,P){1&s&&r.EFF(0," Not specified ")}function E(s,P){if(1&s&&r.DNE(0,v,2,1,"span",4)(1,h,1,0,"ng-template",null,2,r.C5r),2&s){const _=r.sdS(2),g=r.XpG();r.Y8G("ngIf",g.notification)("ngIfElse",_)}}function e(s,P){1&s&&r.nrm(0,"i",6)}let C=(()=>{class s{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(g){return new(g||s)};static#n=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(g,O){if(1&g&&(r.nrm(0,"nz-empty",3),r.DNE(1,E,3,2,"ng-template",null,0,r.C5r)(3,e,1,0,"ng-template",null,1,r.C5r)),2&g){const G=r.sdS(2),f=r.sdS(4);r.Y8G("nzNotFoundContent",G)("nzNotFoundImage",f)}},dependencies:[t.bT,m.RW,o.Dn],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%}"]})}return s})()},8254:(B,D,n)=>{n.d(D,{V:()=>v});var r=n(177),t=n(1672),m=n(5103),o=n(3953);let v=(()=>{class h{static#t=this.\u0275fac=function(C){return new(C||h)};static#n=this.\u0275mod=o.$C({type:h});static#o=this.\u0275inj=o.G2t({imports:[r.MD,t._v,m.Y3]})}return h})()},8238:(B,D,n)=>{n.d(D,{S:()=>Y});var r=n(505),t=n(3953),m=n(177),o=n(1188),v=n(1236),h=n(5699),E=n(5103),e=n(9199),C=n(6354),s=n(5964),P=n(9145),_=n(5703),g=n(2e3),O=n(9062),G=n(959),f=n(7855),L=n(1774),R=n(3075);function x(i,z){if(1&i&&(t.nrm(0,"i",7),t.nI1(1,"entityColor"),t.EFF(2)),2&i){const a=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"VariantGroup")),t.R7$(2),t.SpI(" ",a.name," ")}}function l(i,z){if(1&i&&t.nrm(0,"cvc-feature-variant-tag",10),2&i){const a=z.$implicit;t.Y8G("enablePopover",!1)("variant",a.node)}}function T(i,z){if(1&i&&(t.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),t.DNE(2,l,1,2,"cvc-feature-variant-tag",9),t.k0s()()),2&i){const a=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",a.variants.edges)}}function d(i,z){if(1&i&&t.nrm(0,"cvc-source-tag",13),2&i){const a=z.$implicit;t.Y8G("enablePopover",!1)("source",a)}}function I(i,z){if(1&i&&(t.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),t.DNE(2,d,1,2,"cvc-source-tag",12),t.k0s()()),2&i){const a=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",a.sources)}}function p(i,z){if(1&i&&(t.qex(0),t.j41(1,"nz-card",3),t.DNE(2,x,3,4,"ng-template",null,0,t.C5r),t.EFF(4),t.j41(5,"nz-descriptions",4),t.DNE(6,T,3,1,"nz-descriptions-item",5)(7,I,3,1,"nz-descriptions-item",6),t.k0s()(),t.bVm()),2&i){const a=z.ngIf,y=t.sdS(3);t.R7$(),t.Y8G("nzTitle",y),t.R7$(3),t.SpI(" ",a.description," "),t.R7$(),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("ngIf",a.variants.edges.length>0),t.R7$(),t.Y8G("ngIf",a.sources.length>0)}}let U=(()=>{class i{constructor(a){this.gql=a}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,C.T)(({data:a})=>a?.variantGroup),(0,s.p)(e.kP))}static#t=this.\u0275fac=function(y){return new(y||i)(t.rXU(P.gwr))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(y,N){1&y&&(t.j41(0,"div",1),t.DNE(1,p,8,5,"ng-container",2),t.nI1(2,"ngrxPush"),t.k0s()),2&y&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,N.variantGroup$)))},dependencies:[m.Sq,m.bT,_.cK,g.xA,g.gr,E.Dn,O.D,G.j,f.M,L.L9,R.R],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}"]})}return i})();var c=n(2387);function u(i,z){}function M(i,z){if(1&i&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,u,0,0,"ng-template",6),t.k0s(),t.bVm()),2&i){const a=t.XpG(),y=t.sdS(2);t.R7$(),t.Y8G("routerLink",a.variantgroup.link),t.R7$(),t.Y8G("ngTemplateOutlet",y)}}function F(i,z){}function S(i,z){if(1&i&&t.nrm(0,"cvc-variant-group-popover",9),2&i){const a=t.XpG(3);t.Y8G("variantGroupId",a.variantgroup.id)}}function V(i,z){if(1&i&&t.DNE(0,S,1,1,"cvc-variant-group-popover",8),2&i){const a=t.XpG(2);t.Y8G("ngIf",a.enablePopover)}}function A(i,z){if(1&i&&(t.j41(0,"nz-tag",7),t.DNE(1,F,0,0,"ng-template",6),t.k0s(),t.DNE(2,V,1,1,"ng-template",null,3,t.C5r)),2&i){const a=t.sdS(3),y=t.XpG(),N=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",a)("nzPopoverTrigger",y.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",N)}}function $(i,z){}function W(i,z){if(1&i&&t.DNE(0,$,0,0,"ng-template",6),2&i){t.XpG();const a=t.sdS(2);t.Y8G("ngTemplateOutlet",a)}}function K(i,z){if(1&i&&(t.j41(0,"cvc-icon-badges",10),t.nrm(1,"i",11),t.nI1(2,"entityColor"),t.k0s(),t.EFF(3)),2&i){const a=t.XpG();t.Y8G("flagged",a.variantgroup.flagged)("entityColor",a.iconColor),t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(2,4,"VariantGroup")),t.R7$(2),t.SpI(" ",a.variantgroup.name,"\n")}}let Y=(()=>{class i{set variantgroup(a){if(!a)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=a}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,r.P)("VariantGroup")}static#t=this.\u0275fac=function(y){return new(y||i)};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(y,N){if(1&y&&t.DNE(0,M,3,2,"ng-container",4)(1,A,4,4,"ng-template",null,0,t.C5r)(3,W,1,1,"ng-template",null,1,t.C5r)(5,K,4,6,"ng-template",null,2,t.C5r),2&y){const j=t.sdS(4);t.Y8G("ngIf",N.linked)("ngIfElse",j)}},dependencies:[m.bT,m.T3,o.Wk,v.L_,h.s,E.Dn,U,c.N,R.R],encapsulation:2,changeDetection:0})}return i})()},8134:(B,D,n)=>{n.d(D,{l:()=>G});var r=n(177),t=n(1188),m=n(1236),o=n(5699),v=n(5103),h=n(7086),E=n(2142),e=n(1209),C=n(4917),s=n(5703),P=n(2e3),_=n(3953);let g=(()=>{class f{static#t=this.\u0275fac=function(x){return new(x||f)};static#n=this.\u0275mod=_.$C({type:f});static#o=this.\u0275inj=_.G2t({imports:[r.MD,s.Ti,P.WF,v.Y3,e.k,h.C,E.x,C.i]})}return f})();var O=n(4994);let G=(()=>{class f{static#t=this.\u0275fac=function(x){return new(x||f)};static#n=this.\u0275mod=_.$C({type:f});static#o=this.\u0275inj=_.G2t({imports:[r.MD,t.iI,m.MC,o.T,v.Y3,g,C.i,O.a]})}return f})()},5128:(B,D,n)=>{n.d(D,{K:()=>C});var r=n(177),t=n(8524),m=n(3953),o=n(9417),v=n(1011);const E={name:"comment-textarea",component:(()=>{class s extends t.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(_,g)=>`Comments must be at least ${g.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let _;return function(O){return(_||(_=m.xGo(s)))(O||s)}})();static#n=this.\u0275cmp=m.VBU({type:s,selectors:[["comment-textarea-type"]],features:[m.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(g,O){1&g&&m.nrm(0,"textarea",0),2&g&&m.Y8G("formControl",O.formControl)("formlyAttributes",O.field)},dependencies:[o.me,o.BC,o.l_,t.ch,v.Sy],encapsulation:2,changeDetection:0})}return s})(),wrappers:["form-field"]};var e=n(8927);let C=(()=>{class s{static#t=this.\u0275fac=function(g){return new(g||s)};static#n=this.\u0275mod=m.$C({type:s});static#o=this.\u0275inj=m.G2t({imports:[r.MD,o.X1,t.qy.forChild({types:[E]}),e.PQ,v.j]})}return s})()},7481:(B,D,n)=>{n.d(D,{$:()=>I,u:()=>d});var r=n(4707),t=n(7336),m=n(177),o=n(3953),v=n(9417),h=n(1413),E=n(3726),e=n(6977),C=n(6042),s=n(7806),P=n(5930),_=n(5103),g=n(851),O=n(8203);const G=["switchElement"];function f(p,U){1&p&&o.nrm(0,"span",8)}function L(p,U){if(1&p&&(o.qex(0),o.EFF(1),o.bVm()),2&p){const c=o.XpG(2);o.R7$(),o.JRh(c.nzCheckedChildren)}}function R(p,U){if(1&p&&(o.qex(0),o.DNE(1,L,2,1,"ng-container",9),o.bVm()),2&p){const c=o.XpG();o.R7$(),o.Y8G("nzStringTemplateOutlet",c.nzCheckedChildren)}}function x(p,U){if(1&p&&(o.qex(0),o.EFF(1),o.bVm()),2&p){const c=o.XpG(2);o.R7$(),o.JRh(c.nzUnCheckedChildren)}}function l(p,U){if(1&p&&o.DNE(0,x,2,1,"ng-container",9),2&p){const c=o.XpG();o.Y8G("nzStringTemplateOutlet",c.nzUnCheckedChildren)}}let d=(()=>{class p{updateValue(c){this.isChecked!==c&&(this.isChecked=c,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(c,u,M,F,S,V){this.nzConfigService=c,this.host=u,this.ngZone=M,this.cdr=F,this.focusMonitor=S,this.directionality=V,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 h.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,e.Q)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,E.R)(this.host.nativeElement,"click").pipe((0,e.Q)(this.destroy$)).subscribe(c=>{c.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,E.R)(this.switchElement.nativeElement,"keydown").pipe((0,e.Q)(this.destroy$)).subscribe(c=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:u}=c;u!==t.UQ&&u!==t.LE&&u!==t.t6&&u!==t.Fm||(c.preventDefault(),this.ngZone.run(()=>{u===t.UQ?this.updateValue(!1):u===t.LE?this.updateValue(!0):(u===t.t6||u===t.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,e.Q)(this.destroy$)).subscribe(c=>{c||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(c){this.isChecked=c,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(u){return new(u||p)(o.rXU(C.yx),o.rXU(o.aKT),o.rXU(o.SKi),o.rXU(o.gRc),o.rXU(g.FN),o.rXU(O.dS,8))};static#n=this.\u0275cmp=o.VBU({type:p,selectors:[["nz-switch"]],viewQuery:function(u,M){if(1&u&&o.GBs(G,7),2&u){let F;o.mGM(F=o.lsd())&&(M.switchElement=F.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",o.L39],nzDisabled:[2,"nzDisabled","nzDisabled",o.L39],nzControl:[2,"nzControl","nzControl",o.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[o.Jv_([{provide:v.kq,useExisting:(0,o.Rfq)(()=>p),multi:!0}]),o.GFd,o.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(u,M){if(1&u&&(o.j41(0,"button",2,0)(2,"span",3),o.DNE(3,f,1,0,"span",4),o.k0s(),o.j41(4,"span",5),o.DNE(5,R,2,1,"ng-container",6)(6,l,1,1,"ng-template",null,1,o.C5r),o.k0s(),o.nrm(8,"div",7),o.k0s()),2&u){const F=o.sdS(7);o.AVh("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),o.Y8G("disabled",M.nzDisabled)("nzWaveExtraNode",!0),o.BMQ("id",M.nzId),o.R7$(3),o.Y8G("ngIf",M.nzLoading),o.R7$(2),o.Y8G("ngIf",M.isChecked)("ngIfElse",F)}},dependencies:[P.o7,P.p,_.Y3,_.Dn,m.bT,s.C,s.m],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,C.H4)()],p.prototype,"nzSize",void 0),p})(),I=(()=>{class p{static#t=this.\u0275fac=function(u){return new(u||p)};static#n=this.\u0275mod=o.$C({type:p});static#o=this.\u0275inj=o.G2t({imports:[d]})}return p})()}}]); \ No newline at end of file diff --git a/server/public/2971.c181025f2ccc41e8.js b/server/public/2971.c61f992b790e48cb.js similarity index 91% rename from server/public/2971.c181025f2ccc41e8.js rename to server/public/2971.c61f992b790e48cb.js index 25fc49191..70261cc49 100644 --- a/server/public/2971.c181025f2ccc41e8.js +++ b/server/public/2971.c61f992b790e48cb.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2971],{959:(P,g,n)=>{n.d(g,{j:()=>p});var r=n(3953),c=n(3100),t=n(3245),m=n(4247);let p=(()=>{class s{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(d,i){1&d&&(r.j41(0,"cvc-tag-group"),r.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),r.k0s()),2&d&&(r.R7$(),r.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),r.R7$(),r.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,t._,m.L],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})}return s})()},3889:(P,g,n)=>{n.r(g),n.d(g,{VariantsModule:()=>A});var r=n(177),c=n(1188),t=n(3953);let m=(()=>{class a{constructor(){}static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["app-variants"]],decls:1,vars:0,template:function(o,H){1&o&&t.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return a})();var p=n(4124),s=n(3062),v=n(7529),h=n(5103),d=n(9271),i=n(7391),z=n(513),f=n(7685),C=n(2242),u=n(1236),M=n(7380),y=n(4917);let V=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[r.MD,c.iI,s.ZJ,v.f3,h.Y3,i.kT,z.Zw,f.pc,u.MC,y.i,p.C,d.l,C.i,p.C,M.s]})}return a})();var b=n(1305),x=n(1774),O=n(6389),T=n(5930),E=n(9765),D=n(3640),F=n(574),L=n(3075);function N(a,l){1&a&&(t.j41(0,"div",20),t.nrm(1,"cvc-variant-submit-form"),t.k0s())}function R(a,l){if(1&a&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Submit New Variant "),t.DNE(3,N,2,0,"ng-template",null,1,t.C5r),t.k0s()),2&a){const e=t.sdS(4);t.Y8G("nzPopoverContent",e)}}function j(a,l){if(1&a&&(t.qex(0),t.DNE(1,R,5,1,"button",17),t.bVm()),2&a){const e=l.ngrxLet;t.R7$(),t.Y8G("ngIf",e.isEditor)}}function I(a,l){if(1&a&&t.DNE(0,j,2,1,"ng-container",16),2&a){const e=t.XpG();t.Y8G("ngrxLet",e.viewer$)}}function S(a,l){1&a&&(t.j41(0,"a",21),t.nrm(1,"i",22),t.EFF(2," View Variant Model Docs "),t.k0s())}function B(a,l){1&a&&(t.j41(0,"a",23),t.nrm(1,"i",22),t.EFF(2," View Variant Curation Docs "),t.k0s())}const G=[{path:"",component:m,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class a{constructor(e){this.viewerService=e,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(o){return new(o||a)(t.rXU(b.q))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["variants-home"]],decls:22,vars:6,consts:[["variantActions",""],["addVariantForm",""],[3,"actionsTpl"],[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"],[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(o,H){if(1&o&&(t.nrm(0,"cvc-section-navigation",2),t.DNE(1,I,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",3)(4,"nz-page-header-content")(5,"nz-row",4)(6,"nz-col",5),t.nrm(7,"i",6),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",7)(10,"h2"),t.EFF(11,"Variants"),t.k0s(),t.j41(12,"p",8),t.EFF(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.k0s()(),t.j41(14,"nz-col",9)(15,"nz-space",10),t.DNE(16,S,3,0,"a",11)(17,B,3,0,"a",12),t.k0s()()(),t.j41(18,"nz-row")(19,"nz-col",13)(20,"div",14),t.nrm(21,"cvc-variants-table",15),t.k0s()()()()()),2&o){const Y=t.sdS(2);t.Y8G("actionsTpl",Y),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Variant")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[r.bT,c.Wk,x.Nj,s.WB,s.zR,v.Uq,v.e,h.Dn,i.Di,z.aO,O.c,T.p,f.U5,f.Dq,u.L_,E.n,D.k,F.m,L.R],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}"]})}return a})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(3967),n.e(1110),n.e(6508),n.e(6161),n.e(326),n.e(262),n.e(5384),n.e(2849),n.e(5076),n.e(2076),n.e(5861)]).then(n.bind(n,3153)).then(a=>a.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(8997),n.e(2076),n.e(2613)]).then(n.bind(n,2613)).then(a=>a.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let $=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[c.iI.forChild(G),V,c.iI]})}return a})(),A=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[r.MD,$]})}return a})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2971],{959:(P,g,n)=>{n.d(g,{j:()=>p});var r=n(3953),c=n(3100),t=n(3245),m=n(4247);let p=(()=>{class s{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(d,i){1&d&&(r.j41(0,"cvc-tag-group"),r.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),r.k0s()),2&d&&(r.R7$(),r.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),r.R7$(),r.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,t._,m.L],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})}return s})()},3889:(P,g,n)=>{n.r(g),n.d(g,{VariantsModule:()=>A});var r=n(177),c=n(1188),t=n(3953);let m=(()=>{class a{constructor(){}static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["app-variants"]],decls:1,vars:0,template:function(o,H){1&o&&t.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return a})();var p=n(4124),s=n(3062),v=n(7529),h=n(5103),d=n(9271),i=n(7391),z=n(513),f=n(7685),C=n(2242),u=n(1236),M=n(7380),y=n(4917);let b=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[r.MD,c.iI,s.ZJ,v.f3,h.Y3,i.kT,z.Zw,f.pc,u.MC,y.i,p.C,d.l,C.i,p.C,M.s]})}return a})();var V=n(1305),x=n(1774),O=n(6389),T=n(5930),E=n(9765),D=n(3640),F=n(574),L=n(3075);function N(a,l){1&a&&(t.j41(0,"div",20),t.nrm(1,"cvc-variant-submit-form"),t.k0s())}function R(a,l){if(1&a&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Submit New Variant "),t.DNE(3,N,2,0,"ng-template",null,1,t.C5r),t.k0s()),2&a){const e=t.sdS(4);t.Y8G("nzPopoverContent",e)}}function j(a,l){if(1&a&&(t.qex(0),t.DNE(1,R,5,1,"button",17),t.bVm()),2&a){const e=l.ngrxLet;t.R7$(),t.Y8G("ngIf",e.isEditor)}}function I(a,l){if(1&a&&t.DNE(0,j,2,1,"ng-container",16),2&a){const e=t.XpG();t.Y8G("ngrxLet",e.viewer$)}}function S(a,l){1&a&&(t.j41(0,"a",21),t.nrm(1,"i",22),t.EFF(2," View Variant Model Docs "),t.k0s())}function B(a,l){1&a&&(t.j41(0,"a",23),t.nrm(1,"i",22),t.EFF(2," View Variant Curation Docs "),t.k0s())}const G=[{path:"",component:m,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class a{constructor(e){this.viewerService=e,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(o){return new(o||a)(t.rXU(V.q))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["variants-home"]],decls:22,vars:6,consts:[["variantActions",""],["addVariantForm",""],[3,"actionsTpl"],[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"],[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(o,H){if(1&o&&(t.nrm(0,"cvc-section-navigation",2),t.DNE(1,I,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",3)(4,"nz-page-header-content")(5,"nz-row",4)(6,"nz-col",5),t.nrm(7,"i",6),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",7)(10,"h2"),t.EFF(11,"Variants"),t.k0s(),t.j41(12,"p",8),t.EFF(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.k0s()(),t.j41(14,"nz-col",9)(15,"nz-space",10),t.DNE(16,S,3,0,"a",11)(17,B,3,0,"a",12),t.k0s()()(),t.j41(18,"nz-row")(19,"nz-col",13)(20,"div",14),t.nrm(21,"cvc-variants-table",15),t.k0s()()()()()),2&o){const Y=t.sdS(2);t.Y8G("actionsTpl",Y),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Variant")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[r.bT,c.Wk,x.Nj,s.WB,s.zR,v.Uq,v.e,h.Dn,i.Di,z.aO,O.c,T.p,f.U5,f.Dq,u.L_,E.n,D.k,F.m,L.R],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}"]})}return a})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(3967),n.e(1110),n.e(6508),n.e(6161),n.e(326),n.e(262),n.e(5384),n.e(5958),n.e(7038),n.e(5076),n.e(4334)]).then(n.bind(n,5202)).then(a=>a.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(2076),n.e(5716)]).then(n.bind(n,5716)).then(a=>a.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let $=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[c.iI.forChild(G),b,c.iI]})}return a})(),A=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[r.MD,$]})}return a})()}}]); \ No newline at end of file diff --git a/server/public/3197.83d467cd90147705.js b/server/public/3197.83d467cd90147705.js deleted file mode 100644 index 9baad165d..000000000 --- a/server/public/3197.83d467cd90147705.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3197],{7292:(me,I,i)=>{i.d(I,{H:()=>u});var R=i(3953);let u=(()=>{class d{transform(v,g="display-string"){return void 0===v?"":"display-string"===g?function l(d){switch(d){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return d}}(v):`civic-${v.replace(/_/g,"").toLowerCase()}`}static#e=this.\u0275fac=function(g){return new(g||d)};static#n=this.\u0275pipe=R.EJ8({name:"therapyInteractionEnumDisplay",type:d,pure:!0})}return d})()},6200:(me,I,i)=>{i.r(I),i.d(I,{MolecularProfilesDetailModule:()=>fa});var l=i(177),R=i(4124),u=i(7685),d=i(1896),y=i(3062),v=i(513),g=i(5103),fe=i(1532),m=i(7529),ue=i(8103),ge=i(5736),p=i(1188),_e=i(4873),e=i(3953);let de=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,_e.A]})}return n})();var _=i(9145),ve=i(664);let ze=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.molecularProfileId,entityType:_.T31.MolecularProfile}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-comment-list",0),2&a&&e.Y8G("commentable",r.commentable)},dependencies:[ve.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var B=i(9172),S=i(6977),T=i(4608),k=i(1413),Q=i(4412),J=i(1305),G=i(1774),W=i(6389),H=i(5930),b=i(3617),K=i(1236),he=i(6269),Ce=i(9945),Pe=i(8821),ye=i(7428),Me=i(9765),Te=i(5269),V=i(959),Ge=i(4126),xe=i(1635),Ie=i(1226),Z=i(6354),q=i(9894),be=i(4222),C=i(9417),F=i(8927),ee=i(2983),z=i(5703),ne=i(5154),Y=i(1997),Fe=i(1939),$e=i(5566);function De(n,o){1&n&&e.nrm(0,"nz-alert",18)}function Ee(n,o){1&n&&(e.qex(0),e.DNE(1,De,1,0,"nz-alert",17),e.bVm())}function Re(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ee,2,0,"ng-container",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t)}}function Se(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",19),e.bIt("nzOnClose",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onSuccessBannerClose())}),e.k0s()}}function Ve(n,o){if(1&n&&e.nrm(0,"nz-alert",20),2&n){e.XpG();const t=e.sdS(8);e.Y8G("nzDescription",t)}}function Ye(n,o){if(1&n&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function je(n,o){if(1&n&&(e.j41(0,"ul"),e.DNE(1,Ye,2,1,"li",21),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.errorMessages)}}function Ne(n,o){}function Oe(n,o){1&n&&e.DNE(0,Ne,0,0,"ng-template")}function Xe(n,o){if(1&n&&(e.qex(0),e.DNE(1,Oe,1,0,null,23),e.bVm()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Le(n,o){}function Ae(n,o){1&n&&e.DNE(0,Le,0,0,"ng-template")}function we(n,o){if(1&n&&(e.j41(0,"span",24),e.DNE(1,Ae,1,0,null,23),e.k0s()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Ue(n,o){if(1&n&&(e.j41(0,"button",25),e.EFF(1," Deprecate Molecular Profile "),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG();e.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10&&t.signedIn&&t.isEditor&&a.reason))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}function Be(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-form-buttons"),e.DNE(2,Xe,2,1,"ng-container",22)(3,we,2,1,"ng-template",null,1,e.C5r)(5,Ue,2,3,"ng-template",null,2,e.C5r),e.k0s(),e.bVm()),2&n){const t=o.ngrxLet,a=e.sdS(4);e.R7$(2),e.Y8G("ngIf",t.signedIn&&t.isEditor)("ngIfElse",a)}}let j=class U{constructor(o,t,a,r,f,c){this.deprecateComplexMolecularProfileGQL=o,this.molecularProfileDetailGQL=t,this.evidenceCountsForMolecularProfileGQL=a,this.networkErrorService=r,this.route=f,this.viewerService=c,this.destroy$=new k.B,this.success=!1,this.errorMessages=[],this.mutationLoading$=new Q.t(!1),this.comment="",this.deprecateComplexMolecularProfileMutator=new Ie.E(r),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,q.s)(this)).subscribe(t=>{this.selectedOrg=t.mostRecentOrg}),void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile id into deprecate complex molecular profile component");let o=this.evidenceCountsForMolecularProfileGQL.fetch({molecularProfileId:this.molecularProfileId});this.hasEvidence$=o.pipe((0,Z.T)(({data:t})=>t.molecularProfile.evidenceCountsByStatus.submittedCount+t.molecularProfile.evidenceCountsByStatus.acceptedCount>0)),this.isLoading$=o.pipe((0,Z.T)(({loading:t})=>t))}deprecateMolecularProfile(){if(this.errorMessages=[],this.reason&&this.comment&&this.molecularProfileId){let o={deprecationReason:this.reason,comment:this.comment,molecularProfileId:this.molecularProfileId,organizationId:this.selectedOrg?.id};this.mutationLoading$.next(!0);let t=this.deprecateComplexMolecularProfileMutator.mutate(this.deprecateComplexMolecularProfileGQL,o,{refetchQueries:[{query:this.molecularProfileDetailGQL.document,variables:{molecularProfileId:this.molecularProfileId}}]});t.submitSuccess$.pipe((0,S.Q)(this.destroy$)).subscribe(a=>{a&&(this.success=!0,this.comment="",this.mutationLoading$.next(!1))}),t.submitError$.pipe((0,S.Q)(this.destroy$)).subscribe(a=>{a.length>0&&(this.errorMessages=a,this.mutationLoading$.next(!1))})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(t){return new(t||U)(e.rXU(_.HLX),e.rXU(_.Tj8),e.rXU(_.WAS),e.rXU(be.N),e.rXU(p.nX),e.rXU(J.q))};static#n=this.\u0275cmp=e.VBU({type:U,selectors:[["cvc-complex-molecular-profile-deprecate-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:21,vars:12,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate Molecular Profile."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(t,a){if(1&t){const r=e.RV6();e.j41(0,"nz-spin",3),e.nI1(1,"ngrxPush"),e.j41(2,"nz-space",4),e.DNE(3,Re,2,1,"ng-container",5),e.k0s()(),e.j41(4,"nz-card",6),e.DNE(5,Se,1,0,"nz-alert",7)(6,Ve,1,1,"nz-alert",8)(7,je,2,1,"ng-template",null,0,e.C5r),e.j41(9,"nz-form-item")(10,"nz-select",9),e.mxI("ngModelChange",function(c){return e.eBV(r),e.DH7(a.reason,c)||(a.reason=c),e.Njj(c)}),e.nrm(11,"nz-option",10)(12,"nz-option",11)(13,"nz-option",12),e.k0s()(),e.j41(14,"form",13),e.bIt("ngSubmit",function(){return e.eBV(r),e.Njj(a.deprecateMolecularProfile())}),e.j41(15,"cvc-comment-input-form",14),e.mxI("commentChange",function(c){return e.eBV(r),e.DH7(a.comment,c)||(a.comment=c),e.Njj(c)}),e.k0s(),e.j41(16,"nz-spin",15),e.nI1(17,"ngrxPush"),e.j41(18,"nz-form-item")(19,"nz-form-control"),e.DNE(20,Be,7,2,"ng-container",5),e.k0s()()()()()}2&t&&(e.Y8G("nzSpinning",e.bMT(1,8,a.isLoading$)),e.R7$(3),e.Y8G("ngrxLet",a.hasEvidence$),e.R7$(2),e.Y8G("ngIf",a.success),e.R7$(),e.Y8G("ngIf",a.errorMessages.length>0),e.R7$(4),e.R50("ngModel",a.reason),e.R7$(5),e.R50("comment",a.comment),e.R7$(),e.Y8G("nzSpinning",e.bMT(17,10,a.mutationLoading$)),e.R7$(4),e.Y8G("ngrxLet",a.viewer$))},dependencies:[l.Sq,l.bT,l.T3,C.qT,C.BC,C.cb,C.vS,C.cV,G.Nj,m.Uq,m.e,F.CA,F.Ls,F.zS,b.Y,v.aO,W.c,H.p,ee.a,z.cK,u.U5,u.Dq,ne.LH,Y.ld,Y.WI,Fe.l,$e.K,G.L9],encapsulation:2,changeDetection:0})};j=(0,xe.Cg)([(0,q.d)()],j);var ke=i(1845);const Qe=n=>({flagged:n}),Je=n=>({molecularProfileId:n}),We=n=>["/molecular-profiles",n,"revise"],He=()=>[];function Ke(n,o){if(1&n&&(e.j41(0,"button",17),e.nrm(1,"i",18),e.EFF(2," Add Evidence For This Molecular Profile "),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,Je,t.id))}}function Ze(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ke,3,3,"button",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function qe(n,o){if(1&n&&e.DNE(0,Ze,2,1,"ng-container",12),2&n){const t=e.XpG(2);e.Y8G("ngrxLet",t.viewer$)}}function en(n,o){1&n&&(e.j41(0,"span"),e.EFF(1,",\xa0"),e.k0s())}function nn(n,o){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.DNE(2,en,2,0,"span",6),e.k0s()),2&n){const t=o.$implicit,a=o.last;e.R7$(),e.SpI(" ",t,""),e.R7$(),e.Y8G("ngIf",!a)}}function tn(n,o){if(1&n&&(e.j41(0,"nz-page-header-subtitle"),e.DNE(1,nn,3,2,"span",19),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function an(n,o){if(1&n&&(e.j41(0,"button",24,3),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),a=e.XpG(4).ngIf;e.Y8G("routerLink",e.eq3(2,We,a.id))("nzType",t.isActive?"primary":"default")}}function on(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,an,3,4,"button",23),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function rn(n,o){if(1&n&&(e.j41(0,"button",26,3),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function ln(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,rn,3,1,"button",25),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function cn(n,o){if(1&n&&(e.j41(0,"div",29),e.nrm(1,"cvc-complex-molecular-profile-deprecate-form",30),e.k0s()),2&n){const t=e.XpG(5).ngIf;e.R7$(),e.Y8G("molecularProfileId",t.id)}}function sn(n,o){if(1&n&&(e.j41(0,"button",28),e.EFF(1," Deprecate "),e.DNE(2,cn,2,1,"ng-template",null,4,e.C5r),e.k0s()),2&n){const t=e.sdS(3),a=e.XpG(4).ngIf;e.Y8G("disabled",a.deprecated||1==a.variants.length)("nzPopoverContent",t)}}function pn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,sn,4,2,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.isEditor)}}function mn(n,o){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,a=e.XpG(3);e.Y8G("viewer",t)("subscribableId",a.subscribable.id)}}function fn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,mn,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.signedIn&&a.subscribable)}}function un(n,o){1&n&&(e.j41(0,"nz-space",21),e.DNE(1,on,2,1,"span",22)(2,ln,2,1,"span",22)(3,pn,2,1,"span",22)(4,fn,2,1,"span",22),e.k0s())}function gn(n,o){if(1&n&&(e.j41(0,"nz-page-header-extra"),e.DNE(1,un,5,0,"nz-space",20),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngrxLet",t.viewer$)}}function _n(n,o){if(1&n&&e.nrm(0,"nz-alert",33),2&n){e.XpG();const t=e.sdS(15);e.Y8G("nzMessage",t)}}function dn(n,o){if(1&n&&e.nrm(0,"cvc-comment-body",37),2&n){const t=e.XpG().$implicit;e.Y8G("commentBodySegments",t.deprecationActivity.parsedNote)}}function vn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"br")(2,"cvc-feature-variant-tag",35),e.EFF(3),e.nI1(4,"enumToTitle"),e.DNE(5,dn,1,1,"cvc-comment-body",36),e.bVm()),2&n){const t=o.$implicit;e.R7$(2),e.Y8G("variant",t),e.R7$(),e.SpI(" ",e.bMT(4,3,t.deprecationReason),". "),e.R7$(2),e.Y8G("ngIf",t.deprecationActivity)}}function zn(n,o){if(1&n&&(e.qex(0),e.EFF(1," This Molecular Profile has been deprecated because one or more of its underlying variants are deprecated "),e.DNE(2,vn,6,5,"ng-container",19),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.Y8G("ngForOf",t.deprecatedVariants)}}function hn(n,o){if(1&n&&(e.EFF(0),e.nI1(1,"enumToTitle"),e.nrm(2,"cvc-comment-body",37)),2&n){const t=e.XpG(2).ngIf;e.SpI(" This Molecular Profile has been deprecated for reason: ",e.bMT(1,2,t.deprecationReason),". "),e.R7$(2),e.Y8G("commentBodySegments",(null==t.complexMolecularProfileDeprecationActivity?null:t.complexMolecularProfileDeprecationActivity.parsedNote)||e.lJ4(4,He))}}function Cn(n,o){if(1&n&&e.DNE(0,zn,3,1,"ng-container",34)(1,hn,3,5,"ng-template",null,5,e.C5r),2&n){const t=e.sdS(2),a=e.XpG().ngIf;e.Y8G("ngIf","VARIANT_DEPRECATED"==a.deprecationReason)("ngIfElse",t)}}function Pn(n,o){if(1&n&&(e.j41(0,"nz-col",38),e.nrm(1,"cvc-contributor-avatars",39),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function yn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",7),e.DNE(2,qe,1,1,"ng-template",null,0,e.C5r),e.j41(4,"div",8),e.nI1(5,"ngrxPush"),e.j41(6,"nz-page-header",9)(7,"nz-page-header-title",10),e.nrm(8,"i",11),e.EFF(9),e.k0s(),e.DNE(10,tn,2,1,"nz-page-header-subtitle",6)(11,gn,2,1,"nz-page-header-extra",12),e.j41(12,"nz-page-header-content"),e.DNE(13,_n,1,1,"nz-alert",13)(14,Cn,3,2,"ng-template",null,1,e.C5r),e.j41(16,"cvc-tab-navigation",14),e.nI1(17,"ngrxPush"),e.DNE(18,Pn,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.j41(20,"div",15),e.nrm(21,"router-outlet"),e.k0s()()()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(3),r=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("actionsTpl",a),e.R7$(3),e.Y8G("flags",e.bMT(5,9,r.flagsTotal$)),e.R7$(3),e.Y8G("ngClass",e.eq3(13,Qe,t.flags.totalCount>0)),e.R7$(2),e.SpI(" ",t.name," "),e.R7$(),e.Y8G("ngIf",t.molecularProfileAliases.length>0),e.R7$(),e.Y8G("ngrxLet",r.viewer$),e.R7$(2),e.Y8G("ngIf",t.deprecated),e.R7$(3),e.Y8G("tabs",e.bMT(17,11,r.tabs$))}}let Mn=(()=>{class n{constructor(t,a,r){this.gql=t,this.viewerService=a,this.route=r,this.destroy$=new k.B,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.t(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,T.E)("loading"),(0,B.Z)(!0)),this.molecularProfile$=c.pipe((0,T.E)("data","molecularProfile")),this.flagsTotal$=this.molecularProfile$.pipe((0,T.E)("flags","totalCount")),this.molecularProfile$.pipe((0,S.Q)(this.destroy$)).subscribe({next:x=>{this.tabs$.next(this.defaultTabs.map(s=>"Revisions"===s.tabLabel?{badgeCount:x?.revisions.totalCount,...s}:"Flags"===s.tabLabel?{badgeCount:x?.flags.totalCount,...s}:"Comments"===s.tabLabel?{badgeCount:x?.comments.totalCount,badgeColor:"#cccccc",...s}:s))}}),this.subscribable={id:+f.molecularProfileId,entityType:_.V9U.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(_.Tj8),e.rXU(J.q),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["molecular-profiles-detail"]],decls:2,vars:3,consts:[["mpActions",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateMolecularProfileForm",""],["directDeprecationTemplate",""],[4,"ngIf"],[3,"displayName","actionsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:molecularprofile"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[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"],["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 Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateMolecularProfile"],[3,"molecularProfileId"],["typename","MolecularProfile",3,"viewer","subscribableId",4,"ngIf"],["typename","MolecularProfile",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[4,"ngIf","ngIfElse"],[3,"variant"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,r){1&a&&(e.DNE(0,yn,22,15,"ng-container",6),e.nI1(1,"ngrxPush")),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.YU,l.Sq,l.bT,p.n3,p.Wk,p.wQ,G.Nj,v.aO,W.c,H.p,g.Dn,y.WB,y.k9,y.CO,y.zR,y.ov,u.U5,u.Dq,m.Uq,b.Y,K.L_,he.f,Ce.N,Pe.H,ye.v,Me.n,Te.o,V.j,Ge.p,j,G.L9,ke.f],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}"]})}return n})();var Tn=i(326);let Gn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Tn.p]})}return n})();var xn=i(9543);let In=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.molecularProfileId,entityType:_.V9U.MolecularProfile}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-event-feed",0),2&a&&e.Y8G("subscribable",r.subscribable)},dependencies:[xn.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var bn=i(7268),Fn=i(1912);let $n=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,m.f3,z.Ti,u.pc,Fn.i3,g.Y3,bn.G]})}return n})();var Dn=i(4097);let En=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:_.lD4.MolecularProfile,id:+this.route.snapshot.params.molecularProfileId}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-flag-list-and-filter",0),2&a&&e.Y8G("flaggable",r.flaggable)},dependencies:[Dn.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Rn=i(6371);let Sn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Rn.O]})}return n})();var Vn=i(4055);let Yn=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.molecularProfileId=+a.molecularProfileId,this.entityType=_.BlQ.MolecularProfile})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(a,r){1&a&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&e.Y8G("id",r.molecularProfileId)("entityType",r.entityType)},dependencies:[Vn.B],encapsulation:2})}return n})();var $=i(2142),jn=i(1209),h=i(2e3),N=i(5493),O=i(7054),X=i(8254),Nn=i(4531),On=i(7660),P=i(7391),D=i(4917),Xn=i(2839),M=i(5699),Ln=i(1448),An=i(7556),te=i(7051),L=i(996),E=i(4696),ae=i(7513),oe=i(6912),A=i(7086);let wn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,M.T,g.Y3,m.f3,h.WF,P.kT,z.Ti,E.GB,u.pc,D.i,te.U,oe.l,X.V,$.x,N.G,O.L,$.x,L.o,ae.m,A.C]})}return n})();var Un=i(9354),ie=i(3075),re=i(6719),w=i(7855),le=i(6073),ce=i(5473);const Bn=()=>[8,16],kn=()=>[8,8];function Qn(n,o){if(1&n&&(e.nrm(0,"i",15),e.nI1(1,"entityColor"),e.j41(2,"span",16),e.EFF(3),e.k0s(),e.j41(4,"span",17),e.EFF(5),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,3,"Variant")),e.R7$(3),e.SpI(" ",t.variant.feature.name," "),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function Jn(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Wn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Jn,2,1,"nz-tag",18),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Hn(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function Kn(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",20),2&n&&e.Y8G("variantType",o.$implicit)}function Zn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Kn,1,1,"cvc-variant-type-tag",19),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function qn(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function et(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",23),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function nt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",24),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function tt(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",21)(1,"cvc-tag-list"),e.DNE(2,et,2,2,"ng-container",18)(3,nt,3,3,"ng-container",22),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function at(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-ncit-details",25),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ncitDetails",t.variant.ncitDetails)}}function ot(n,o){1&n&&(e.j41(0,"nz-col",6)(1,"nz-card",26),e.nrm(2,"cvc-empty-revisable",27),e.k0s()()),2&n&&e.Y8G("nzSpan",24)}function it(n,o){if(1&n&&(e.j41(0,"nz-card",4),e.DNE(1,Qn,6,5,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",5)(4,"nz-col",6)(5,"nz-row",5)(6,"nz-col",7)(7,"nz-descriptions",8)(8,"nz-descriptions-item",9),e.nrm(9,"cvc-feature-variant-tag",10),e.k0s(),e.j41(10,"nz-descriptions-item",11),e.DNE(11,Wn,3,1,"ng-container",12)(12,Hn,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",13),e.DNE(15,Zn,3,1,"ng-container",12)(16,qn,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(18,tt,4,3,"nz-descriptions-item",14),e.k0s()()()(),e.j41(19,"nz-col",6),e.DNE(20,at,2,1,"ng-container",12)(21,ot,3,1,"ng-template",null,3,e.C5r),e.k0s()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),f=e.sdS(22),c=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(18,Bn)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(19,kn)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",c.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",c.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",c.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",c.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",c.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("ngIf",c.variant.ncitId)("ngIfElse",f)}}let se=(()=>{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");if("FactorVariant"!==this.variant.__typename)throw new Error("This card is for FactorVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-factor-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noNcit",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Factor Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography","","nzType","secondary"],["nz-typography",""],[4,"ngFor","ngForOf"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(a,r){1&a&&e.DNE(0,it,23,20,"nz-card",4),2&a&&e.vxM("FactorVariant"==r.variant.__typename?0:-1)},dependencies:[l.MD,l.Sq,l.bT,p.iI,p.Wk,M.T,M.s,g.Y3,g.Dn,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,P.kT,P.Di,z.Ti,z.cK,E.GB,u.pc,D.i,ie.R,te.U,oe.l,X.V,re.Q,$.x,w.M,N.G,le.h,O.L,L.o,ce.z,ae.m,A.C,V.j,Un.e],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})(),rt=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,u.pc,m.f3,h.WF,z.Ti,P.kT,g.Y3,M.T,An.F,D.i,Nn.C,On.u,$.x,Xn.m,jn.k,N.G,O.L,X.V,Ln.B,wn,se]})}return n})();var lt=i(2033),ct=i(8199),st=i(4441),pt=i(6408),mt=i(9062),ft=i(9973),ut=i(7679),gt=i(9481);const _t=()=>[8,16],dt=()=>[8,8];function vt(n,o){if(1&n&&(e.nrm(0,"i",23),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function zt(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function ht(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,zt,2,1,"nz-tag",24),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Ct(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function Pt(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",27),2&n&&e.Y8G("variantType",o.$implicit)}function yt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Pt,1,1,"cvc-variant-type-tag",26),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function Mt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function Tt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",28),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html"),e.R7$(),e.SpI(" ",t.variant.alleleRegistryId," ")}}function Gt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function xt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",29),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+t),e.R7$(),e.SpI(" ",t," ")}}function It(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,xt,3,2,"ng-container",24),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.variant.clinvarIds)}}function bt(n,o){if(1&n&&(e.qex(0),e.DNE(1,It,2,1,"cvc-tag-list",15),e.bVm()),2&n){e.XpG();const t=e.sdS(25),a=e.XpG();e.R7$(),e.Y8G("ngIf","N/A"!==a.variant.clinvarIds[0])("ngIfElse",t)}}function Ft(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"N/A"),e.k0s())}function $t(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function Dt(n,o){if(1&n&&(e.j41(0,"cvc-link-tag",30),e.EFF(1," Variant Report "),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.variant.openCravatUrl)}}function Et(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"Allele Registry ID required."),e.k0s())}function Rt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",33),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function St(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",34),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function Vt(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",31)(1,"cvc-tag-list"),e.DNE(2,Rt,2,2,"ng-container",24)(3,St,3,3,"ng-container",32),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function Yt(n,o){if(1&n&&(e.j41(0,"nz-card",7),e.DNE(1,vt,3,4,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",8)(4,"nz-col",9)(5,"nz-row",8)(6,"nz-col",10)(7,"nz-descriptions",11)(8,"nz-descriptions-item",12),e.nrm(9,"cvc-feature-variant-tag",13),e.k0s(),e.j41(10,"nz-descriptions-item",14),e.DNE(11,ht,3,1,"ng-container",15)(12,Ct,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",16),e.DNE(15,yt,3,1,"ng-container",15)(16,Mt,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(18,"nz-descriptions-item",17),e.DNE(19,Tt,3,2,"ng-container",15)(20,Gt,2,0,"ng-template",null,3,e.C5r),e.k0s(),e.j41(22,"nz-descriptions-item",16),e.DNE(23,bt,2,2,"ng-container",15)(24,Ft,2,0,"ng-template",null,4,e.C5r)(26,$t,2,0,"ng-template",null,5,e.C5r),e.k0s(),e.j41(28,"nz-descriptions-item",18),e.DNE(29,Dt,2,1,"cvc-link-tag",19)(30,Et,2,0,"ng-template",null,6,e.C5r),e.k0s(),e.DNE(32,Vt,4,3,"nz-descriptions-item",20),e.k0s()(),e.j41(33,"nz-col",9)(34,"nz-collapse")(35,"nz-collapse-panel",21),e.nrm(36,"cvc-coordinates-card",22),e.k0s()()()()()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),f=e.sdS(21),c=e.sdS(27),x=e.sdS(31),s=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(28,_t)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(29,dt)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",s.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",s.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",s.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",s.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",s.variant.alleleRegistryId)("ngIfElse",f),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",s.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),e.R7$(),e.Y8G("ngIf",s.variant.clinvarIds.length>0)("ngIfElse",c),e.R7$(5),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",s.variant.openCravatUrl)("ngIfElse",x),e.R7$(3),e.Y8G("ngIf",s.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("displayTitle",!1)("cvcCoordinates",s.variant)}}let jt=(()=>{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");if("GeneVariant"!==this.variant.__typename)throw new Error("This card is for GeneVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-gene-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noCravat",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Gene Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Allele Registry ID",3,"nzSpan"],["nzTitle","OpenCRAVAT",3,"nzSpan"],["tooltip","View on OpenCRAVAT",3,"href",4,"ngIf","ngIfElse"],["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(a,r){1&a&&e.DNE(0,Yt,37,30,"nz-card",7),2&a&&e.vxM("GeneVariant"==r.variant.__typename?0:-1)},dependencies:[l.Sq,l.bT,p.Wk,M.s,g.Dn,m.Uq,m.e,h.xA,h.gr,P.Di,z.cK,E.Vz,E.pc,w.M,le.h,ut.a,ce.z,gt.W,V.j,ie.R],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})();var Nt=i(8139);const Ot=()=>[8,16],pe=()=>[8,8];function Xt(n,o){if(1&n&&(e.EFF(0," Created "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileCreationActivity.createdAt),") ")}}function Lt(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,Xt,4,3,"ng-template",null,3,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileCreationActivity.user)}}function At(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileDeprecationActivity.createdAt),") ")}}function wt(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,At,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileDeprecationActivity.user)}}function Ut(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.variantDeprecationActivity.createdAt),") ")}}function Bt(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,Ut,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.variantDeprecationActivity.user)}}function kt(n,o){if(1&n&&(e.j41(0,"p",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG().ngIf;e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," ")}}function Qt(n,o){1&n&&e.nrm(0,"cvc-empty-revisable",27)}function Jt(n,o){1&n&&e.nrm(0,"cvc-source-tag",29),2&n&&e.Y8G("source",o.$implicit)}function Wt(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,Jt,1,1,"cvc-source-tag",28),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.sources)}}function Ht(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Kt(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,Ht,2,1,"nz-tag",30),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function Zt(n,o){if(1&n&&e.nrm(0,"cvc-mp-gene-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function qt(n,o){if(1&n&&e.nrm(0,"cvc-mp-factor-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function ea(n,o){if(1&n&&(e.j41(0,"nz-col",18),e.DNE(1,Zt,1,2,"cvc-mp-gene-variant-card",31)(2,qt,1,2,"cvc-mp-factor-variant-card",31),e.k0s()),2&n){let t;const a=o.$implicit;e.R7$(),e.vxM("GeneVariant"===(t=a.__typename)?1:"FactorVariant"===t?2:-1)}}function na(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-row",6)(4,"nz-col",7)(5,"nz-descriptions",8)(6,"nz-descriptions-item",9),e.nrm(7,"cvc-mp-tag-name",10),e.k0s(),e.DNE(8,Lt,6,2,"ng-container",5)(9,wt,6,2,"ng-container",5)(10,Bt,6,2,"ng-container",5),e.k0s()(),e.j41(11,"nz-col",7)(12,"nz-descriptions",8)(13,"nz-descriptions-item",11),e.DNE(14,kt,2,2,"p",12)(15,Qt,1,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(17,"nz-descriptions-item",13),e.DNE(18,Wt,2,1,"cvc-tag-list",14),e.k0s(),e.j41(19,"nz-descriptions-item",15)(20,"span",16),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"nz-descriptions-item",17),e.DNE(24,Kt,2,1,"cvc-tag-list",14),e.k0s()()()()(),e.j41(25,"nz-col",18)(26,"nz-card",19)(27,"nz-row",6),e.DNE(28,ea,3,1,"nz-col",20),e.k0s()()(),e.j41(29,"nz-col",18),e.nrm(30,"cvc-evidence-table",21),e.k0s(),e.j41(31,"nz-col",18),e.nrm(32,"cvc-assertions-table",22),e.k0s()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(16);e.XpG();const r=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(27,Ot)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(28,pe)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",3),e.R7$(2),e.Y8G("nameSegments",t.parsedName),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileCreationActivity),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileDeprecationActivity),e.R7$(),e.Y8G("ngIf",t.variantDeprecationActivity),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",t.description)("ngIfElse",a),e.R7$(4),e.Y8G("ngIf",t.sources.length>0)("ngIfElse",r),e.R7$(3),e.JRh(e.bMT(22,25,t.molecularProfileScore)),e.R7$(3),e.Y8G("ngIf",t.molecularProfileAliases.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzGutter",e.lJ4(29,pe)),e.R7$(),e.Y8G("ngForOf",t.variants),e.R7$(2),e.Y8G("molecularProfileId",t.id)("displayMolecularProfile",!1),e.R7$(2),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("molecularProfileId",t.id)}}function ta(n,o){1&n&&e.nrm(0,"cvc-empty-value",32)}function aa(n,o){1&n&&e.nrm(0,"cvc-empty-value",33)}const oa=[{path:"",component:Mn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(t,a){var r;if(this.gql=t,this.route=a,null==(r=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:r});let f=this.queryRef.valueChanges;this.loading$=f.pipe((0,T.E)("loading"),(0,B.Z)(!0)),this.molecularProfile$=f.pipe((0,T.E)("data","molecularProfile")),this.subscribable={entityType:_.V9U.MolecularProfile,id:r}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(_.SPr),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-summary"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["noDescription",""],["createdTitle",""],["deprecatedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small","nzBordered","true","nzLayout","vertical",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["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"],[3,"nzTitle"],[3,"user"],["nz-typography","","nzType","secondary"],["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(a,r){1&a&&(e.DNE(0,na,33,30,"ng-container",5),e.nI1(1,"ngrxPush"),e.DNE(2,ta,1,0,"ng-template",null,0,e.C5r)(4,aa,1,0,"ng-template",null,1,e.C5r)),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.Sq,l.bT,m.Uq,m.e,h.xA,h.gr,z.cK,P.Di,M.s,lt.o,ct.N,st.z,w.M,pt.r,mt.D,re.Q,ft.G,jt,se,l.QX,G.L9,Nt.N],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%}"]})}return n})(),data:{breadcrumb:"Summary"}},{path:"comments",component:ze,data:{breadcrumb:"Comments"}},{path:"revisions",component:Yn,data:{breadcrumb:"Revisions"}},{path:"flags",component:En,data:{breadcrumb:"Flags"}},{path:"events",component:In,data:{breadcrumb:"Events"}}]}];let ia=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[p.iI.forChild(oa),rt,Sn,de,$n,Gn,p.iI]})}return n})();var ra=i(7169),la=i(4308),ca=i(3842),sa=i(8492),pa=i(8692);let ma=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,C.YN,C.X1,F.PQ,b.$,m.f3,v.Zw,ee.V,z.Ti,u.pc,P.kT,ne.Qt,Y.DH,sa.M,ca.k,pa.j,la.I,L.o]})}return n})(),fa=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,ia,v.Zw,g.Y3,y.ZJ,u.pc,m.f3,b.$,K.MC,ue.m,fe.W,d.Y,R.C,ge.V,A.C,D.i,ra.W,ma]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/3232.fdb5ba754cbd3bcc.js b/server/public/3232.48f4d793b40ba3aa.js similarity index 99% rename from server/public/3232.fdb5ba754cbd3bcc.js rename to server/public/3232.48f4d793b40ba3aa.js index 8148bc2b6..b2d3f6390 100644 --- a/server/public/3232.fdb5ba754cbd3bcc.js +++ b/server/public/3232.48f4d793b40ba3aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3232],{3232:(k,f,n)=>{n.r(f),n.d(f,{VariantGroupsAddModule:()=>H});var p=n(177),y=n(3688),b=n(4124),G=n(4917),u=n(7529),h=n(5103),d=n(3062),s=n(1188),V=n(6354),t=n(3953),C=n(1305),z=n(2261),S=n(9765),M=n(1774),x=n(3075);function F(e,o){1&e&&(t.j41(0,"div"),t.nrm(1,"router-outlet"),t.k0s())}function P(e,o){1&e&&(t.j41(0,"nz-row",7)(1,"div",8),t.nrm(2,"cvc-login-prompt"),t.k0s()())}let w=(()=>{class e{constructor(a){this.viewerService=a}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,V.T)(a=>a.signedIn))}static#t=this.\u0275fac=function(r){return new(r||e)(t.rXU(C.q))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variant-groups-add-view"]],decls:12,vars:7,consts:[["notSignedIn",""],["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,i){if(1&r&&(t.nrm(0,"cvc-section-navigation",1),t.j41(1,"nz-page-header",2)(2,"nz-page-header-title",3),t.nrm(3,"i",4),t.nI1(4,"entityColor"),t.EFF(5," Add New Variant Group "),t.k0s(),t.j41(6,"nz-page-header-content")(7,"div",5),t.DNE(8,F,2,0,"div",6),t.nI1(9,"ngrxPush"),t.DNE(10,P,3,0,"ng-template",null,0,t.C5r),t.k0s()()()),2&r){const l=t.sdS(11);t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(4,3,"VariantGroup")),t.R7$(5),t.Y8G("ngIf",t.bMT(9,5,i.isSignedIn$))("ngIfElse",l)}},dependencies:[p.bT,s.n3,u.Uq,u.e,h.Dn,d.WB,d.k9,d.zR,z.h,S.n,M.L9,x.R],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}"]})}return e})();var v=n(8927),I=n(513),O=n(2229),T=n(776),j=n(5316);let $=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[p.MD,s.iI,v.PQ,I.Zw,O.m,T.s,j.P]})}return e})(),U=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[p.MD,$]})}return e})();var E=n(1635),c=n(9417),N=n(1226),A=n(3038),R=n(9894);const D=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Submit Variant Group"}},fieldGroup:[{key:"name",type:"base-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,requireFeature:!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 Y=n(9145),B=n(4222),L=n(8524),X=n(8721);const J=e=>["/variant-groups",e];function Q(e,o){if(1&e&&(t.EFF(0," View your Variant Group "),t.j41(1,"a",4),t.EFF(2,"here"),t.k0s(),t.EFF(3,". You will be redirected shortly. ")),2&e){const a=t.XpG();t.R7$(),t.Y8G("routerLink",t.eq3(1,J,a.newVariantGroupId))}}let m=class g{constructor(o,a,r){this.submitVariantGroupGQL=o,this.networkErrorService=a,this.cdr=r,this.form=new c.J3({}),this.model={fields:{}},this.fields=D,this.submitVariantGroupMutator=new N.E(a)}onSubmit(o){const a=(0,A.bI)(o);a&&(this.mutationState=this.submitVariantGroupMutator.mutate(this.submitVariantGroupGQL,{input:a},void 0,r=>{this.newVariantGroupId=r.submitVariantGroup?.variantGroup.id,this.newVariantGroupUrl=`/variant-groups/${this.newVariantGroupId}`}))}static#t=this.\u0275fac=function(a){return new(a||g)(t.rXU(Y.$qW),t.rXU(B.N),t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:g,selectors:[["cvc-variantgroup-submit-form"]],decls:5,vars:7,consts:[["success",""],["entityType","Variant Group",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model"],[3,"routerLink"]],template:function(a,r){if(1&a){const i=t.RV6();t.j41(0,"cvc-form-submission-status-display",1),t.DNE(1,Q,4,3,"ng-template",null,0,t.C5r),t.j41(3,"form",2),t.bIt("ngSubmit",function(){return t.eBV(i),t.Njj(r.onSubmit(r.model))}),t.j41(4,"formly-form",3),t.bIt("modelChange",function(K){return t.eBV(i),t.Njj(r.model=K)}),t.k0s()()()}if(2&a){const i=t.sdS(2);t.Y8G("mutationState",r.mutationState)("redirectUrl",r.newVariantGroupUrl)("successMessage",i),t.R7$(3),t.Y8G("formGroup",r.form),t.R7$(),t.Y8G("form",r.form)("fields",r.fields)("model",r.model)}},dependencies:[s.Wk,v.CA,c.qT,c.cb,c.j4,L.aF,X.G]})};m=(0,E.Cg)([(0,R.d)()],m);const W=[{path:"",component:w,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variant-groups-submit-page"]],decls:1,vars:0,template:function(r,i){1&r&&t.nrm(0,"cvc-variantgroup-submit-form")},dependencies:[m],encapsulation:2})}return e})(),data:{breadcrumb:"Submit New Variant Groups"}}]}];let Z=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[s.iI.forChild(W),U,s.iI]})}return e})(),H=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[p.MD,Z,u.f3,h.Y3,d.ZJ,y.A,G.i,b.C]})}return e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3232],{3232:(k,f,n)=>{n.r(f),n.d(f,{VariantGroupsAddModule:()=>H});var p=n(177),y=n(3688),b=n(4124),G=n(4917),u=n(7529),h=n(5103),d=n(3062),s=n(1188),V=n(6354),t=n(3953),C=n(1305),z=n(2261),S=n(9765),M=n(1774),x=n(3075);function F(e,o){1&e&&(t.j41(0,"div"),t.nrm(1,"router-outlet"),t.k0s())}function P(e,o){1&e&&(t.j41(0,"nz-row",7)(1,"div",8),t.nrm(2,"cvc-login-prompt"),t.k0s()())}let w=(()=>{class e{constructor(a){this.viewerService=a}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,V.T)(a=>a.signedIn))}static#t=this.\u0275fac=function(r){return new(r||e)(t.rXU(C.q))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variant-groups-add-view"]],decls:12,vars:7,consts:[["notSignedIn",""],["displayName","New"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,i){if(1&r&&(t.nrm(0,"cvc-section-navigation",1),t.j41(1,"nz-page-header",2)(2,"nz-page-header-title",3),t.nrm(3,"i",4),t.nI1(4,"entityColor"),t.EFF(5," Add New Variant Group "),t.k0s(),t.j41(6,"nz-page-header-content")(7,"div",5),t.DNE(8,F,2,0,"div",6),t.nI1(9,"ngrxPush"),t.DNE(10,P,3,0,"ng-template",null,0,t.C5r),t.k0s()()()),2&r){const l=t.sdS(11);t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(4,3,"VariantGroup")),t.R7$(5),t.Y8G("ngIf",t.bMT(9,5,i.isSignedIn$))("ngIfElse",l)}},dependencies:[p.bT,s.n3,u.Uq,u.e,h.Dn,d.WB,d.k9,d.zR,z.h,S.n,M.L9,x.R],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}"]})}return e})();var v=n(8927),I=n(513),O=n(8168),T=n(776),j=n(5316);let $=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[p.MD,s.iI,v.PQ,I.Zw,O.m,T.s,j.P]})}return e})(),U=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[p.MD,$]})}return e})();var E=n(1635),c=n(9417),N=n(1226),A=n(3038),R=n(9894);const D=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Submit Variant Group"}},fieldGroup:[{key:"name",type:"base-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,requireFeature:!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 Y=n(9145),B=n(4222),L=n(8524),X=n(8721);const J=e=>["/variant-groups",e];function Q(e,o){if(1&e&&(t.EFF(0," View your Variant Group "),t.j41(1,"a",4),t.EFF(2,"here"),t.k0s(),t.EFF(3,". You will be redirected shortly. ")),2&e){const a=t.XpG();t.R7$(),t.Y8G("routerLink",t.eq3(1,J,a.newVariantGroupId))}}let m=class g{constructor(o,a,r){this.submitVariantGroupGQL=o,this.networkErrorService=a,this.cdr=r,this.form=new c.J3({}),this.model={fields:{}},this.fields=D,this.submitVariantGroupMutator=new N.E(a)}onSubmit(o){const a=(0,A.bI)(o);a&&(this.mutationState=this.submitVariantGroupMutator.mutate(this.submitVariantGroupGQL,{input:a},void 0,r=>{this.newVariantGroupId=r.submitVariantGroup?.variantGroup.id,this.newVariantGroupUrl=`/variant-groups/${this.newVariantGroupId}`}))}static#t=this.\u0275fac=function(a){return new(a||g)(t.rXU(Y.$qW),t.rXU(B.N),t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:g,selectors:[["cvc-variantgroup-submit-form"]],decls:5,vars:7,consts:[["success",""],["entityType","Variant Group",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model"],[3,"routerLink"]],template:function(a,r){if(1&a){const i=t.RV6();t.j41(0,"cvc-form-submission-status-display",1),t.DNE(1,Q,4,3,"ng-template",null,0,t.C5r),t.j41(3,"form",2),t.bIt("ngSubmit",function(){return t.eBV(i),t.Njj(r.onSubmit(r.model))}),t.j41(4,"formly-form",3),t.bIt("modelChange",function(K){return t.eBV(i),t.Njj(r.model=K)}),t.k0s()()()}if(2&a){const i=t.sdS(2);t.Y8G("mutationState",r.mutationState)("redirectUrl",r.newVariantGroupUrl)("successMessage",i),t.R7$(3),t.Y8G("formGroup",r.form),t.R7$(),t.Y8G("form",r.form)("fields",r.fields)("model",r.model)}},dependencies:[s.Wk,v.CA,c.qT,c.cb,c.j4,L.aF,X.G]})};m=(0,E.Cg)([(0,R.d)()],m);const W=[{path:"",component:w,children:[{path:"",redirectTo:"submit",pathMatch:"full"},{path:"submit",component:(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variant-groups-submit-page"]],decls:1,vars:0,template:function(r,i){1&r&&t.nrm(0,"cvc-variantgroup-submit-form")},dependencies:[m],encapsulation:2})}return e})(),data:{breadcrumb:"Submit New Variant Groups"}}]}];let Z=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[s.iI.forChild(W),U,s.iI]})}return e})(),H=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[p.MD,Z,u.f3,h.Y3,d.ZJ,y.A,G.i,b.C]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/3428.cdb600b9282e6049.js b/server/public/3428.eeb00a3f80b3d9a5.js similarity index 99% rename from server/public/3428.cdb600b9282e6049.js rename to server/public/3428.eeb00a3f80b3d9a5.js index 8f2e01db6..2030a945c 100644 --- a/server/public/3428.cdb600b9282e6049.js +++ b/server/public/3428.eeb00a3f80b3d9a5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3428],{6440:(V,b,i)=>{i.d(b,{r:()=>B});var e=i(3953),u=i(177),t=i(1188),h=i(5699),z=i(5103),y=i(1236),O=i(9199),v=i(6354),j=i(5964),x=i(9145),G=i(5703),F=i(7529),E=i(2e3),L=i(7679),T=i(9162),w=i(1774);const g=(s,d)=>({displayName:s,profileImagePath:d});function S(s,d){if(1&s&&(e.nrm(0,"cvc-user-avatar",12),e.j41(1,"span",13),e.EFF(2),e.k0s()),2&s){const c=e.XpG().ngIf;e.Y8G("user",e.l_i(2,g,c.name,c.profileImagePath)),e.R7$(2),e.JRh(c.name)}}function l(s,d){if(1&s&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&s){const c=d.ngIf;e.R7$(),e.JRh(c)}}function f(s,d){if(1&s&&(e.qex(0),e.j41(1,"cvc-link-tag",14),e.EFF(2),e.k0s(),e.bVm()),2&s){const c=e.XpG().ngIf;e.R7$(),e.Y8G("href",c.url),e.R7$(),e.SpI(" ",c.name," ")}}function _(s,d){if(1&s&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,S,3,5,"ng-template",null,2,e.C5r),e.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),e.DNE(8,l,2,1,"span",9),e.k0s()()()(),e.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),e.DNE(11,f,3,2,"ng-container",9),e.k0s()()(),e.bVm()),2&s){const c=d.ngIf,m=e.sdS(3);e.XpG();const I=e.sdS(4),$=e.sdS(6);e.R7$(),e.Y8G("nzTitle",m),e.R7$(7),e.Y8G("ngIf",c.description)("ngIfElse",I),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",c.url)("ngIfElse",$)}}function M(s,d){1&s&&e.EFF(0," Organization has not provided a description.\n")}function D(s,d){1&s&&e.EFF(0," -- ")}let U=(()=>{class s{constructor(c){this.gql=c}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,v.T)(({data:c})=>c?.organization),(0,j.p)(O.kP))}static#t=this.\u0275fac=function(m){return new(m||s)(e.rXU(x.I8L))};static#e=this.\u0275cmp=e.VBU({type:s,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(m,I){1&m&&(e.j41(0,"div",3),e.DNE(1,_,12,6,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,M,1,0,"ng-template",null,0,e.C5r)(5,D,1,0,"ng-template",null,1,e.C5r)),2&m&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,I.org$)))},dependencies:[u.bT,G.cK,F.Uq,F.e,E.xA,E.gr,L.a,T.G,w.L9],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}"]})}return s})();function H(s,d){}function W(s,d){if(1&s&&(e.qex(0),e.j41(1,"a",5),e.DNE(2,H,0,0,"ng-template",6),e.k0s(),e.bVm()),2&s){const c=e.XpG(),m=e.sdS(2);e.R7$(),e.Mz_("routerLink","/organizations/",c.org.id,""),e.R7$(),e.Y8G("ngTemplateOutlet",m)}}function K(s,d){}function Q(s,d){if(1&s&&e.nrm(0,"cvc-organization-popover",9),2&s){const c=e.XpG(3);e.Y8G("orgId",c.org.id)}}function N(s,d){if(1&s&&e.DNE(0,Q,1,1,"cvc-organization-popover",8),2&s){const c=e.XpG(2);e.Y8G("ngIf",c.enablePopover)}}function k(s,d){if(1&s&&(e.j41(0,"nz-tag",7),e.DNE(1,K,0,0,"ng-template",6),e.k0s(),e.DNE(2,N,1,1,"ng-template",null,3,e.C5r)),2&s){const c=e.sdS(3);e.XpG();const m=e.sdS(6);e.Y8G("nzPopoverContent",c),e.R7$(),e.Y8G("ngTemplateOutlet",m)}}function J(s,d){}function A(s,d){if(1&s&&e.DNE(0,J,0,0,"ng-template",6),2&s){e.XpG();const c=e.sdS(2);e.Y8G("ngTemplateOutlet",c)}}function Z(s,d){if(1&s&&(e.nrm(0,"i",10),e.EFF(1)),2&s){const c=e.XpG();e.R7$(),e.SpI(" ",c.org.name,"\n")}}let B=(()=>{class s{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.")}static#t=this.\u0275fac=function(m){return new(m||s)};static#e=this.\u0275cmp=e.VBU({type:s,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(m,I){if(1&m&&e.DNE(0,W,3,3,"ng-container",4)(1,k,4,2,"ng-template",null,0,e.C5r)(3,A,1,1,"ng-template",null,1,e.C5r)(5,Z,2,1,"ng-template",null,2,e.C5r),2&m){const $=e.sdS(4);e.Y8G("ngIf",I.linked)("ngIfElse",$)}},dependencies:[u.bT,u.T3,t.Wk,h.s,z.Dn,y.L_,U],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return s})()},9365:(V,b,i)=>{i.d(b,{T:()=>w});var e=i(3953),u=i(177),t=i(5703),h=i(2617),z=i(5103),y=i(513),O=i(6389),v=i(5930);const j=["itemTemplate"],x=g=>({$implicit:g});function G(g,S){if(1&g){const l=e.RV6();e.j41(0,"nz-list-item",5),e.bIt("click",function(){e.eBV(l);const _=e.XpG().$implicit,M=e.XpG(2);return e.Njj(M.onParticipantSelected(_))}),e.eu8(1,6),e.k0s()}if(2&g){const l=e.XpG().$implicit,f=e.XpG(2);e.AVh("selected-participant",l.id==(null==f.selectedItem?null:f.selectedItem.id)),e.R7$(),e.Y8G("ngTemplateOutlet",f.itemTemplateRef||null)("ngTemplateOutletContext",e.eq3(4,x,l))}}function F(g,S){if(1&g&&(e.qex(0),e.DNE(1,G,2,6,"nz-list-item",4),e.bVm()),2&g){const l=S.index,f=e.XpG(2);e.R7$(),e.Y8G("ngIf",l+1<=f.defaultListSize)}}function E(g,S){if(1&g){const l=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(l);const _=e.XpG(2);return e.Njj(_.onExpandClicked())}),e.nrm(1,"i",8),e.EFF(2," Expand "),e.k0s()}}function L(g,S){if(1&g){const l=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(l);const _=e.XpG(2);return e.Njj(_.onCollapseClicked())}),e.nrm(1,"i",9),e.EFF(2," Collapse "),e.k0s()}}function T(g,S){if(1&g&&(e.qex(0),e.j41(1,"nz-card",1)(2,"nz-list"),e.DNE(3,F,2,1,"ng-container",2),e.k0s(),e.DNE(4,E,3,0,"button",3)(5,L,3,0,"button",3),e.k0s(),e.bVm()),2&g){const l=e.XpG();e.R7$(),e.Y8G("nzTitle",l.listTitle),e.R7$(2),e.Y8G("ngForOf",l.participantList),e.R7$(),e.Y8G("ngIf",l.participantList.length>l.defaultListSize),e.R7$(),e.Y8G("ngIf",l.isExpanded)}}let w=(()=>{class g{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.bkB,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(l){this.selectedItem=l.id==this.selectedItem?.id?void 0:l,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)}static#t=this.\u0275fac=function(f){return new(f||g)};static#e=this.\u0275cmp=e.VBU({type:g,selectors:[["cvc-participant-list"]],contentQueries:function(f,_,M){if(1&f&&e.wni(M,j,5),2&f){let D;e.mGM(D=e.lsd())&&(_.itemTemplateRef=D.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,_){1&f&&e.DNE(0,T,6,4,"ng-container",0),2&f&&e.Y8G("ngIf",_.participantList&&_.participantList.length>0)},dependencies:[u.Sq,u.bT,u.T3,t.cK,h.eE,h.lQ,z.Dn,y.aO,O.c,v.p],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}"]})}return g})()},2968:(V,b,i)=>{i.d(b,{K:()=>O});var e=i(177),u=i(5703),t=i(2617),h=i(5103),z=i(513),y=i(3953);let O=(()=>{class v{static#t=this.\u0275fac=function(G){return new(G||v)};static#e=this.\u0275mod=y.$C({type:v});static#n=this.\u0275inj=y.G2t({imports:[e.MD,u.Ti,t.rD,h.Y3,z.Zw]})}return v})()},1162:(V,b,i)=>{i.r(b),i.d(b,{SourcesModule:()=>de});var e=i(177),u=i(1188),t=i(3953),h=i(3062),z=i(5103),y=i(9765),O=i(1635),v=i(9417),j=i(1226),x=i(9894);const F=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{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 E=i(6354),T=i(9145),w=i(4222),g=i(8927),S=i(3617),l=i(8524),f=i(8721),_=i(1774);function M(n,r){if(1&n&&t.nrm(0,"nz-alert",7),2&n){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function D(n,r){1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(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.k0s()())}function U(n,r){if(1&n&&(t.qex(0),t.DNE(1,M,1,1,"nz-alert",6)(2,D,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&n){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function H(n,r){if(1&n&&t.nrm(0,"nz-alert",7),2&n){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function W(n,r){1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(2," This Source has already been Suggested. Please double check that you still wish to submit a new Suggestion for it. "),t.k0s()())}function K(n,r){if(1&n&&(t.qex(0),t.DNE(1,H,1,1,"nz-alert",6)(2,W,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&n){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function Q(n,r){if(1&n&&(t.EFF(0," You will be redirected shortly or you may view your Source Suggestion "),t.j41(1,"a",8),t.EFF(2,"here"),t.k0s(),t.EFF(3,". ")),2&n){const o=t.XpG();t.R7$(),t.Y8G("href",o.url,t.B4B)}}let N=class ot{constructor(r,o,a){this.submitSourceGQL=r,this.sourceChecksGQL=o,this.form=new v.J3({}),this.model={fields:{}},this.fields=F,this.submitSourceMutator=new j.E(a)}ngOnInit(){this.url="/curation/queues/pending-sources",this.suggestionChecksQueryRef=this.sourceChecksGQL.watch({sourceId:0}),this.fullyCuratedSource$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,E.T)(r=>r.data?.source?.fullyCurated),(0,x.s)(this)),this.existingSourceSuggestion$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,E.T)(r=>{const o=r.data?.sourceSuggestions?.filteredCount;return!!o&&o>0}),(0,x.s)(this))}onModelChange(r){r.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=r.fields.sourceId,this.suggestionChecksQueryRef?.refetch(this.selectedSourceId?{sourceId:this.selectedSourceId}:{sourceId:0}))}onSubmit(r){const o=function L(n){const r=n.fields;if(![n.comment,r.sourceId].find(a=>void 0===a))return{sourceId:r.sourceId,molecularProfileId:r.molecularProfileId,diseaseId:r.diseaseId,organizationId:n.organizationId,comment:n.comment}}(r);o&&(this.mutationState=this.submitSourceMutator.mutate(this.submitSourceGQL,{input:o},void 0,a=>{this.newSourceId=a.suggestSource?.sourceSuggestion.id}))}static#t=this.\u0275fac=function(o){return new(o||ot)(t.rXU(T.gtA),t.rXU(T.bOY),t.rXU(w.N))};static#e=this.\u0275cmp=t.VBU({type:ot,selectors:[["cvc-source-submit-form"]],decls:9,vars:13,consts:[["success",""],["fullyCuratedAlert",""],[4,"ngIf"],["entityType","Source",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model"],["nzType","warning",3,"nzMessage",4,"ngIf"],["nzType","warning",3,"nzMessage"],[3,"href"]],template:function(o,a){if(1&o){const p=t.RV6();t.DNE(0,U,5,1,"ng-container",2),t.nI1(1,"ngrxPush"),t.DNE(2,K,5,1,"ng-container",2),t.nI1(3,"ngrxPush"),t.j41(4,"cvc-form-submission-status-display",3),t.DNE(5,Q,4,1,"ng-template",null,0,t.C5r),t.j41(7,"form",4),t.bIt("ngSubmit",function(){return t.eBV(p),t.Njj(a.onSubmit(a.model))}),t.j41(8,"formly-form",5),t.bIt("modelChange",function(P){return t.eBV(p),a.model=P,t.Njj(a.onModelChange(P))}),t.k0s()()()}if(2&o){const p=t.sdS(6);t.Y8G("ngIf",t.bMT(1,9,a.fullyCuratedSource$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,11,a.existingSourceSuggestion$)),t.R7$(2),t.Y8G("mutationState",a.mutationState)("redirectUrl",a.url)("successMessage",p),t.R7$(3),t.Y8G("formGroup",a.form),t.R7$(),t.Y8G("form",a.form)("fields",a.fields)("model",a.model)}},dependencies:[e.bT,g.CA,S.Y,v.qT,v.cb,v.j4,l.aF,f.G,_.L9]})};N=(0,O.Cg)([(0,x.d)()],N);var k=i(3075);let J=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.VBU({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(a,p){1&a&&(t.nrm(0,"cvc-section-navigation",0),t.j41(1,"nz-page-header",1)(2,"nz-page-header-title"),t.nrm(3,"i",2),t.nI1(4,"entityColor"),t.EFF(5," Add a Source Suggestion "),t.k0s(),t.j41(6,"nz-page-header-subtitle"),t.EFF(7," Submit a promising source for curation "),t.k0s(),t.j41(8,"nz-page-header-content")(9,"div",3),t.nrm(10,"cvc-source-submit-form"),t.k0s()()()),2&a&&(t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(4,1,"Assertion")))},dependencies:[h.WB,h.k9,h.CO,h.zR,z.Dn,y.n,N,k.R],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}"]})}return n})();var A=i(1413),Z=i(4412),B=i(9172),s=i(6977),d=i(4608),c=i(1305),m=i(513),I=i(6389),$=i(5930),it=i(5699),at=i(7679),ct=i(9945);function lt(n,r){1&n&&(t.j41(0,"button",11),t.nrm(1,"i",12),t.EFF(2," Suggest a New Source "),t.k0s())}function pt(n,r){if(1&n&&(t.qex(0),t.DNE(1,lt,3,0,"button",10),t.bVm()),2&n){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function gt(n,r){if(1&n&&t.DNE(0,pt,2,1,"ng-container",9),2&n){const o=t.XpG(2);t.Y8G("ngrxLet",o.viewer$)}}function dt(n,r){1&n&&(t.j41(0,"nz-tag",13),t.EFF(1," Fully Curated "),t.k0s())}function ut(n,r){if(1&n&&(t.j41(0,"cvc-link-tag",14),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function mt(n,r){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",2),t.DNE(2,gt,1,1,"ng-template",null,0,t.C5r),t.j41(4,"nz-page-header",3)(5,"nz-page-header-title"),t.nrm(6,"i",4),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.j41(9,"nz-page-header-extra"),t.DNE(10,dt,2,0,"nz-tag",5)(11,ut,2,3,"cvc-link-tag",6),t.k0s(),t.j41(12,"nz-page-header-content"),t.nrm(13,"cvc-tab-navigation",7),t.nI1(14,"ngrxPush"),t.j41(15,"div",8),t.nrm(16,"router-outlet"),t.k0s()()(),t.bVm()),2&n){const o=r.ngIf,a=t.sdS(3),p=t.XpG();t.R7$(),t.Y8G("displayName",o.citation)("actionsTpl",a),t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(7,7,"Source")),t.R7$(2),t.SpI(" ",o.citation," "),t.R7$(2),t.Y8G("ngIf",o.fullyCurated),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(2),t.Y8G("tabs",t.bMT(14,9,p.tabs$))}}let ht=(()=>{class n{constructor(o,a,p){this.viewerService=o,this.route=a,this.gql=p,this.destroy$=new A.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}],this.tabs$=new Z.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(C=>{this.sourceId=+C.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let P=this.queryRef.valueChanges;this.loading$=P.pipe((0,d.E)("loading"),(0,B.Z)(!0)),this.source$=P.pipe((0,d.E)("data","source")),this.source$.pipe((0,s.Q)(this.destroy$)).subscribe({next:ue=>{this.tabs$.next(this.defaultTabs.map(nt=>"Comments"===nt.tabLabel?{badgeCount:ue?.comments.totalCount,badgeColor:"#cccccc",...nt}:nt))}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(c.q),t.rXU(u.nX),t.rXU(T.Psd))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[["sourcesActions",""],[4,"ngIf"],[3,"displayName","actionsTpl"],[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(a,p){1&a&&(t.DNE(0,mt,17,11,"ng-container",1),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,p.source$))},dependencies:[e.bT,u.n3,u.Wk,_.Nj,h.WB,h.k9,h.zR,h.ov,m.aO,I.c,$.p,z.Dn,it.s,y.n,at.a,ct.N,_.L9,k.R],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}"]})}return n})();var R=i(7529),X=i(7391),Y=i(7685),ft=i(4644);function _t(n,r){1&n&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Suggest a New Source "),t.k0s())}function zt(n,r){if(1&n&&(t.qex(0),t.DNE(1,_t,3,0,"button",17),t.bVm()),2&n){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function vt(n,r){if(1&n&&t.DNE(0,zt,2,1,"ng-container",16),2&n){const o=t.XpG();t.Y8G("ngrxLet",o.viewer$)}}function Ct(n,r){1&n&&(t.j41(0,"a",20),t.nrm(1,"i",21),t.EFF(2," View Source Docs "),t.k0s())}function yt(n,r){1&n&&(t.j41(0,"a",22),t.nrm(1,"i",21),t.EFF(2," View Source Curation Docs "),t.k0s())}let St=(()=>{class n{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(c.q))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["sources-home"]],decls:22,vars:6,consts:[["sourcesActions",""],[3,"actionsTpl"],[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(a,p){if(1&a&&(t.nrm(0,"cvc-section-navigation",1),t.DNE(1,vt,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t.nrm(7,"i",5),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",6)(10,"h2"),t.EFF(11,"Sources"),t.k0s(),t.j41(12,"p",7),t.EFF(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.k0s()(),t.j41(14,"nz-col",8)(15,"nz-space",9),t.DNE(16,Ct,3,0,"a",10)(17,yt,3,0,"a",11),t.k0s()()(),t.j41(18,"div",12)(19,"div",13)(20,"div",14),t.nrm(21,"cvc-sources-table",15),t.k0s()()()()()),2&a){const C=t.sdS(2);t.Y8G("actionsTpl",C),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Source")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[e.bT,u.Wk,_.Nj,h.WB,h.zR,z.Dn,R.Uq,R.e,m.aO,I.c,$.p,X.Di,Y.U5,Y.Dq,y.n,ft.y,k.R],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}"]})}return n})();var rt=i(5154),q=i(2e3),Tt=i(3386);let bt=(()=>{class n{set cvcAutoHeightDiv(o){const a=parseInt(o,0);!isNaN(a)&&a>=0&&(this._offset=a)}set cvcAutoHeightTarget(o){this._target=o}get cvcAutoHeightTarget(){return this._target}constructor(o,a,p){this.el=o,this.zone=a,this.cdr=p,this._offset=0,this._target="parent",this.divTop=0,this.onResized$=new A.B,this.resizeObserver=new ResizeObserver(C=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,Tt.c)(10)).subscribe(C=>{this.resizeToFitContent()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}ngAfterViewInit(){Promise.resolve().then(()=>{this.resizeToFitContent()})}resizeToFitContent(){const o=this.el.nativeElement,a=o.parentElement.getBoundingClientRect().height;o&&o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o&&("parent"===this._target?o.style.height=a:"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)}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc))};static#e=this.\u0275dir=t.FsC({type:n,selectors:[["","cvcAutoHeightDiv",""]],inputs:{cvcAutoHeightDiv:"cvcAutoHeightDiv",cvcAutoHeightTarget:"cvcAutoHeightTarget"}})}return n})();var xt=i(8199),It=i(3340),Pt=i(6726),Ot=i(2143);const Et=()=>[8,16];function Mt(n,r){if(1&n&&(t.j41(0,"cvc-link-tag",25),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function Rt(n,r){if(1&n&&t.nrm(0,"cvc-retraction-status-tag",26),2&n){const o=t.XpG().ngIf;t.Y8G("retractionNature",o.retractionNature)("retractionDate",o.retractionDate)("retractionReasons",o.retractionReasons)}}function Gt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",27),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.R7$(),t.SpI(" ",o.ascoAbstractId," ")}}function Ft(n,r){if(1&n&&(t.qex(0),t.j41(1,"cvc-link-tag",28),t.EFF(2),t.k0s(),t.bVm()),2&n){const o=t.XpG().ngIf;t.R7$(),t.Mz_("href","https://www.ncbi.nlm.nih.gov/pmc/articles/",o.pmcId,""),t.R7$(),t.SpI(" ",o.pmcId," ")}}function Dt(n,r){}function $t(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",33),t.DNE(1,Dt,0,0,"ng-template",34),t.k0s()),2&n){t.XpG(2);const o=t.sdS(31);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function Yt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",33),t.nrm(1,"cvc-clinical-trial-tag",35),t.k0s()),2&n){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("clinicalTrial",o.clinicalTrials[0])}}function jt(n,r){if(1&n&&(t.qex(0),t.j41(1,"nz-space"),t.nrm(2,"cvc-clinical-trial-tag",35),t.k0s(),t.bVm()),2&n){const o=r.$implicit;t.R7$(2),t.Y8G("clinicalTrial",o)}}function Lt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",36),t.DNE(1,jt,3,1,"ng-container",37),t.k0s()),2&n){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngForOf",o.clinicalTrials)}}function wt(n,r){if(1&n&&(t.qex(0,29),t.DNE(1,$t,2,1,"ng-template",30)(2,Yt,2,1,"ng-template",31)(3,Lt,2,1,"ng-template",32),t.bVm()),2&n){const o=t.XpG().ngIf;t.Y8G("ngPlural",o.clinicalTrials.length)}}function Nt(n,r){1&n&&(t.j41(0,"span",38),t.EFF(1," Not available "),t.k0s())}function kt(n,r){if(1&n&&t.EFF(0),2&n){const o=t.XpG().ngIf;t.SpI(" Evidence for ",o.citation," ")}}function At(n,r){if(1&n&&t.EFF(0),2&n){const o=t.XpG().ngIf;t.SpI(" Source Suggestions for ",o.citation," ")}}function Bt(n,r){if(1&n&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-descriptions",6)(4,"nz-descriptions-item",7)(5,"i"),t.EFF(6),t.k0s()(),t.j41(7,"nz-descriptions-item",8),t.EFF(8),t.k0s()()(),t.j41(9,"nz-col",5)(10,"nz-descriptions",6)(11,"nz-descriptions-item",9)(12,"p",10),t.EFF(13),t.k0s()()()(),t.j41(14,"nz-col",5)(15,"nz-descriptions",11)(16,"nz-descriptions-item",12),t.EFF(17),t.k0s(),t.j41(18,"nz-descriptions-item",13),t.DNE(19,Mt,2,3,"cvc-link-tag",14)(20,Rt,1,3,"cvc-retraction-status-tag",15),t.k0s(),t.DNE(21,Gt,2,1,"nz-descriptions-item",16),t.j41(22,"nz-descriptions-item",17),t.EFF(23),t.k0s(),t.j41(24,"nz-descriptions-item",18),t.DNE(25,Ft,3,3,"ng-container",19),t.k0s(),t.j41(26,"nz-descriptions-item",20)(27,"span",21),t.nrm(28,"span",22),t.k0s()(),t.DNE(29,wt,4,1,"ng-container",23),t.k0s(),t.DNE(30,Nt,2,0,"ng-template",null,0,t.C5r),t.k0s(),t.j41(32,"nz-col",5),t.nrm(33,"cvc-evidence-table",24),t.DNE(34,kt,1,1,"ng-template",null,1,t.C5r),t.k0s(),t.j41(36,"nz-col",5),t.nrm(37,"cvc-source-suggestions-table",24),t.DNE(38,At,1,1,"ng-template",null,2,t.C5r),t.k0s()(),t.bVm()),2&n){const o=r.ngIf,a=t.sdS(31),p=t.sdS(35),C=t.sdS(39),P=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(29,Et)),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("nzColumn",1),t.R7$(3),t.JRh(o.title),t.R7$(2),t.SpI(" ",o.authorString," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("nzEllipsisRows",6),t.R7$(),t.SpI(" ",o.abstract," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.JRh(o.publicationDate),t.R7$(),t.Mz_("nzTitle","",o.displayType," ID"),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(),t.Y8G("ngIf",o.retractionNature&&o.retractionDate&&o.retractionReasons),t.R7$(),t.Y8G("ngIf","ASCO"==o.displayType),t.R7$(2),t.SpI("",o.fullJournalTitle," "),t.R7$(2),t.Y8G("ngIf",o.pmcId)("ngIfElse",a),t.R7$(2),t.Y8G("nzTooltipTitle",o.pmcId?"Open":"Closed"),t.R7$(),t.Y8G("nzType",o.pmcId?"unlock":"lock"),t.R7$(),t.Y8G("ngIf",o.clinicalTrials),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",P.sourceId)("cvcTitleTemplate",p),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",P.sourceId)("cvcTitleTemplate",C)}}let Xt=(()=>{class n{constructor(o,a){this.route=o,this.gql=a,this.routeSub=this.route.params.subscribe(p=>{this.sourceId=+p.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let C=this.queryRef.valueChanges;this.loading$=C.pipe((0,d.E)("loading"),(0,B.Z)(!0)),this.source$=C.pipe((0,d.E)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(u.nX),t.rXU(T.s91))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[["notAvailable",""],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[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"],[3,"retractionNature","retractionDate","retractionReasons",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"],["cvcHeight","400",3,"sourceId","cvcTitleTemplate"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons"],["nzTitle","ASCO Abstract ID"],["tooltip","View on PubMed Central",3,"href"],[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(a,p){1&a&&(t.DNE(0,Bt,40,30,"ng-container",3),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,p.source$))},dependencies:[e.Sq,e.bT,e.T3,e.IJ,e.WO,R.Uq,R.e,Y.U5,X.Di,z.Dn,rt.LH,q.xA,q.gr,at.a,bt,xt.N,It.E,Pt.X,Ot.n,_.L9],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}"]})}return n})(),Vt=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-sources"]],decls:1,vars:0,template:function(a,p){1&a&&t.nrm(0,"router-outlet")},dependencies:[u.n3],encapsulation:2})}return n})();var Ut=i(664);const Ht=[{path:"",component:Vt,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:St,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},runGuardsAndResolvers:"always",component:J},{path:":sourceId",component:ht,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Xt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class n{constructor(o){this.route=o,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:T.T31.Source}}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(u.nX))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,p){1&a&&t.nrm(0,"cvc-comment-list",0),2&a&&t.Y8G("commentable",p.commentable)},dependencies:[Ut.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Comments"}}]}]}];let Wt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[u.iI.forChild(Ht),u.iI]})}return n})();var Kt=i(5443),tt=i(4124),et=i(4917);let Qt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,h.ZJ,z.Y3,R.f3,m.Zw,X.kT,Y.pc,tt.C,Kt.n,et.i]})}return n})();var st=i(7054),Jt=i(1532);let Zt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,h.ZJ,m.Zw,z.Y3,it.T,tt.C,st.L,Jt.W,et.i]})}return n})();var qt=i(9619),te=i(4531),ee=i(5594),ne=i(2242),oe=i(174);let ie=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,R.f3,Y.pc,R.f3,Y.pc,X.kT,z.Y3,rt.Qt,q.WF,st.L,ne.i,te.C,ee.b,qt.u,oe.u]})}return n})();var ae=i(2229),re=i(776),se=i(5316);let ce=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,g.PQ,m.Zw,S.$,ae.m,se.P,re.s]})}return n})(),le=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,h.ZJ,z.Y3,et.i,tt.C,ce]})}return n})();var pe=i(4873);let ge=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,pe.A]})}return n})(),de=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,Wt,Qt,Zt,ie,le,ge]})}return n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3428],{6440:(V,b,i)=>{i.d(b,{r:()=>B});var e=i(3953),u=i(177),t=i(1188),h=i(5699),z=i(5103),y=i(1236),O=i(9199),v=i(6354),j=i(5964),x=i(9145),G=i(5703),F=i(7529),E=i(2e3),L=i(7679),T=i(9162),w=i(1774);const g=(s,d)=>({displayName:s,profileImagePath:d});function S(s,d){if(1&s&&(e.nrm(0,"cvc-user-avatar",12),e.j41(1,"span",13),e.EFF(2),e.k0s()),2&s){const c=e.XpG().ngIf;e.Y8G("user",e.l_i(2,g,c.name,c.profileImagePath)),e.R7$(2),e.JRh(c.name)}}function l(s,d){if(1&s&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&s){const c=d.ngIf;e.R7$(),e.JRh(c)}}function f(s,d){if(1&s&&(e.qex(0),e.j41(1,"cvc-link-tag",14),e.EFF(2),e.k0s(),e.bVm()),2&s){const c=e.XpG().ngIf;e.R7$(),e.Y8G("href",c.url),e.R7$(),e.SpI(" ",c.name," ")}}function _(s,d){if(1&s&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,S,3,5,"ng-template",null,2,e.C5r),e.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),e.DNE(8,l,2,1,"span",9),e.k0s()()()(),e.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),e.DNE(11,f,3,2,"ng-container",9),e.k0s()()(),e.bVm()),2&s){const c=d.ngIf,m=e.sdS(3);e.XpG();const I=e.sdS(4),$=e.sdS(6);e.R7$(),e.Y8G("nzTitle",m),e.R7$(7),e.Y8G("ngIf",c.description)("ngIfElse",I),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",c.url)("ngIfElse",$)}}function M(s,d){1&s&&e.EFF(0," Organization has not provided a description.\n")}function D(s,d){1&s&&e.EFF(0," -- ")}let U=(()=>{class s{constructor(c){this.gql=c}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,v.T)(({data:c})=>c?.organization),(0,j.p)(O.kP))}static#t=this.\u0275fac=function(m){return new(m||s)(e.rXU(x.I8L))};static#e=this.\u0275cmp=e.VBU({type:s,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(m,I){1&m&&(e.j41(0,"div",3),e.DNE(1,_,12,6,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,M,1,0,"ng-template",null,0,e.C5r)(5,D,1,0,"ng-template",null,1,e.C5r)),2&m&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,I.org$)))},dependencies:[u.bT,G.cK,F.Uq,F.e,E.xA,E.gr,L.a,T.G,w.L9],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}"]})}return s})();function H(s,d){}function W(s,d){if(1&s&&(e.qex(0),e.j41(1,"a",5),e.DNE(2,H,0,0,"ng-template",6),e.k0s(),e.bVm()),2&s){const c=e.XpG(),m=e.sdS(2);e.R7$(),e.Mz_("routerLink","/organizations/",c.org.id,""),e.R7$(),e.Y8G("ngTemplateOutlet",m)}}function K(s,d){}function Q(s,d){if(1&s&&e.nrm(0,"cvc-organization-popover",9),2&s){const c=e.XpG(3);e.Y8G("orgId",c.org.id)}}function N(s,d){if(1&s&&e.DNE(0,Q,1,1,"cvc-organization-popover",8),2&s){const c=e.XpG(2);e.Y8G("ngIf",c.enablePopover)}}function k(s,d){if(1&s&&(e.j41(0,"nz-tag",7),e.DNE(1,K,0,0,"ng-template",6),e.k0s(),e.DNE(2,N,1,1,"ng-template",null,3,e.C5r)),2&s){const c=e.sdS(3);e.XpG();const m=e.sdS(6);e.Y8G("nzPopoverContent",c),e.R7$(),e.Y8G("ngTemplateOutlet",m)}}function J(s,d){}function A(s,d){if(1&s&&e.DNE(0,J,0,0,"ng-template",6),2&s){e.XpG();const c=e.sdS(2);e.Y8G("ngTemplateOutlet",c)}}function Z(s,d){if(1&s&&(e.nrm(0,"i",10),e.EFF(1)),2&s){const c=e.XpG();e.R7$(),e.SpI(" ",c.org.name,"\n")}}let B=(()=>{class s{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.")}static#t=this.\u0275fac=function(m){return new(m||s)};static#e=this.\u0275cmp=e.VBU({type:s,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(m,I){if(1&m&&e.DNE(0,W,3,3,"ng-container",4)(1,k,4,2,"ng-template",null,0,e.C5r)(3,A,1,1,"ng-template",null,1,e.C5r)(5,Z,2,1,"ng-template",null,2,e.C5r),2&m){const $=e.sdS(4);e.Y8G("ngIf",I.linked)("ngIfElse",$)}},dependencies:[u.bT,u.T3,t.Wk,h.s,z.Dn,y.L_,U],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return s})()},9365:(V,b,i)=>{i.d(b,{T:()=>w});var e=i(3953),u=i(177),t=i(5703),h=i(2617),z=i(5103),y=i(513),O=i(6389),v=i(5930);const j=["itemTemplate"],x=g=>({$implicit:g});function G(g,S){if(1&g){const l=e.RV6();e.j41(0,"nz-list-item",5),e.bIt("click",function(){e.eBV(l);const _=e.XpG().$implicit,M=e.XpG(2);return e.Njj(M.onParticipantSelected(_))}),e.eu8(1,6),e.k0s()}if(2&g){const l=e.XpG().$implicit,f=e.XpG(2);e.AVh("selected-participant",l.id==(null==f.selectedItem?null:f.selectedItem.id)),e.R7$(),e.Y8G("ngTemplateOutlet",f.itemTemplateRef||null)("ngTemplateOutletContext",e.eq3(4,x,l))}}function F(g,S){if(1&g&&(e.qex(0),e.DNE(1,G,2,6,"nz-list-item",4),e.bVm()),2&g){const l=S.index,f=e.XpG(2);e.R7$(),e.Y8G("ngIf",l+1<=f.defaultListSize)}}function E(g,S){if(1&g){const l=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(l);const _=e.XpG(2);return e.Njj(_.onExpandClicked())}),e.nrm(1,"i",8),e.EFF(2," Expand "),e.k0s()}}function L(g,S){if(1&g){const l=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(l);const _=e.XpG(2);return e.Njj(_.onCollapseClicked())}),e.nrm(1,"i",9),e.EFF(2," Collapse "),e.k0s()}}function T(g,S){if(1&g&&(e.qex(0),e.j41(1,"nz-card",1)(2,"nz-list"),e.DNE(3,F,2,1,"ng-container",2),e.k0s(),e.DNE(4,E,3,0,"button",3)(5,L,3,0,"button",3),e.k0s(),e.bVm()),2&g){const l=e.XpG();e.R7$(),e.Y8G("nzTitle",l.listTitle),e.R7$(2),e.Y8G("ngForOf",l.participantList),e.R7$(),e.Y8G("ngIf",l.participantList.length>l.defaultListSize),e.R7$(),e.Y8G("ngIf",l.isExpanded)}}let w=(()=>{class g{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.bkB,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(l){this.selectedItem=l.id==this.selectedItem?.id?void 0:l,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)}static#t=this.\u0275fac=function(f){return new(f||g)};static#e=this.\u0275cmp=e.VBU({type:g,selectors:[["cvc-participant-list"]],contentQueries:function(f,_,M){if(1&f&&e.wni(M,j,5),2&f){let D;e.mGM(D=e.lsd())&&(_.itemTemplateRef=D.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,_){1&f&&e.DNE(0,T,6,4,"ng-container",0),2&f&&e.Y8G("ngIf",_.participantList&&_.participantList.length>0)},dependencies:[u.Sq,u.bT,u.T3,t.cK,h.eE,h.lQ,z.Dn,y.aO,O.c,v.p],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}"]})}return g})()},2968:(V,b,i)=>{i.d(b,{K:()=>O});var e=i(177),u=i(5703),t=i(2617),h=i(5103),z=i(513),y=i(3953);let O=(()=>{class v{static#t=this.\u0275fac=function(G){return new(G||v)};static#e=this.\u0275mod=y.$C({type:v});static#n=this.\u0275inj=y.G2t({imports:[e.MD,u.Ti,t.rD,h.Y3,z.Zw]})}return v})()},1162:(V,b,i)=>{i.r(b),i.d(b,{SourcesModule:()=>de});var e=i(177),u=i(1188),t=i(3953),h=i(3062),z=i(5103),y=i(9765),O=i(1635),v=i(9417),j=i(1226),x=i(9894);const F=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{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 E=i(6354),T=i(9145),w=i(4222),g=i(8927),S=i(3617),l=i(8524),f=i(8721),_=i(1774);function M(n,r){if(1&n&&t.nrm(0,"nz-alert",7),2&n){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function D(n,r){1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(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.k0s()())}function U(n,r){if(1&n&&(t.qex(0),t.DNE(1,M,1,1,"nz-alert",6)(2,D,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&n){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function H(n,r){if(1&n&&t.nrm(0,"nz-alert",7),2&n){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function W(n,r){1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(2," This Source has already been Suggested. Please double check that you still wish to submit a new Suggestion for it. "),t.k0s()())}function K(n,r){if(1&n&&(t.qex(0),t.DNE(1,H,1,1,"nz-alert",6)(2,W,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&n){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function Q(n,r){if(1&n&&(t.EFF(0," You will be redirected shortly or you may view your Source Suggestion "),t.j41(1,"a",8),t.EFF(2,"here"),t.k0s(),t.EFF(3,". ")),2&n){const o=t.XpG();t.R7$(),t.Y8G("href",o.url,t.B4B)}}let N=class ot{constructor(r,o,a){this.submitSourceGQL=r,this.sourceChecksGQL=o,this.form=new v.J3({}),this.model={fields:{}},this.fields=F,this.submitSourceMutator=new j.E(a)}ngOnInit(){this.url="/curation/queues/pending-sources",this.suggestionChecksQueryRef=this.sourceChecksGQL.watch({sourceId:0}),this.fullyCuratedSource$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,E.T)(r=>r.data?.source?.fullyCurated),(0,x.s)(this)),this.existingSourceSuggestion$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,E.T)(r=>{const o=r.data?.sourceSuggestions?.filteredCount;return!!o&&o>0}),(0,x.s)(this))}onModelChange(r){r.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=r.fields.sourceId,this.suggestionChecksQueryRef?.refetch(this.selectedSourceId?{sourceId:this.selectedSourceId}:{sourceId:0}))}onSubmit(r){const o=function L(n){const r=n.fields;if(![n.comment,r.sourceId].find(a=>void 0===a))return{sourceId:r.sourceId,molecularProfileId:r.molecularProfileId,diseaseId:r.diseaseId,organizationId:n.organizationId,comment:n.comment}}(r);o&&(this.mutationState=this.submitSourceMutator.mutate(this.submitSourceGQL,{input:o},void 0,a=>{this.newSourceId=a.suggestSource?.sourceSuggestion.id}))}static#t=this.\u0275fac=function(o){return new(o||ot)(t.rXU(T.gtA),t.rXU(T.bOY),t.rXU(w.N))};static#e=this.\u0275cmp=t.VBU({type:ot,selectors:[["cvc-source-submit-form"]],decls:9,vars:13,consts:[["success",""],["fullyCuratedAlert",""],[4,"ngIf"],["entityType","Source",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model"],["nzType","warning",3,"nzMessage",4,"ngIf"],["nzType","warning",3,"nzMessage"],[3,"href"]],template:function(o,a){if(1&o){const p=t.RV6();t.DNE(0,U,5,1,"ng-container",2),t.nI1(1,"ngrxPush"),t.DNE(2,K,5,1,"ng-container",2),t.nI1(3,"ngrxPush"),t.j41(4,"cvc-form-submission-status-display",3),t.DNE(5,Q,4,1,"ng-template",null,0,t.C5r),t.j41(7,"form",4),t.bIt("ngSubmit",function(){return t.eBV(p),t.Njj(a.onSubmit(a.model))}),t.j41(8,"formly-form",5),t.bIt("modelChange",function(P){return t.eBV(p),a.model=P,t.Njj(a.onModelChange(P))}),t.k0s()()()}if(2&o){const p=t.sdS(6);t.Y8G("ngIf",t.bMT(1,9,a.fullyCuratedSource$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,11,a.existingSourceSuggestion$)),t.R7$(2),t.Y8G("mutationState",a.mutationState)("redirectUrl",a.url)("successMessage",p),t.R7$(3),t.Y8G("formGroup",a.form),t.R7$(),t.Y8G("form",a.form)("fields",a.fields)("model",a.model)}},dependencies:[e.bT,g.CA,S.Y,v.qT,v.cb,v.j4,l.aF,f.G,_.L9]})};N=(0,O.Cg)([(0,x.d)()],N);var k=i(3075);let J=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.VBU({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(a,p){1&a&&(t.nrm(0,"cvc-section-navigation",0),t.j41(1,"nz-page-header",1)(2,"nz-page-header-title"),t.nrm(3,"i",2),t.nI1(4,"entityColor"),t.EFF(5," Add a Source Suggestion "),t.k0s(),t.j41(6,"nz-page-header-subtitle"),t.EFF(7," Submit a promising source for curation "),t.k0s(),t.j41(8,"nz-page-header-content")(9,"div",3),t.nrm(10,"cvc-source-submit-form"),t.k0s()()()),2&a&&(t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(4,1,"Assertion")))},dependencies:[h.WB,h.k9,h.CO,h.zR,z.Dn,y.n,N,k.R],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}"]})}return n})();var A=i(1413),Z=i(4412),B=i(9172),s=i(6977),d=i(4608),c=i(1305),m=i(513),I=i(6389),$=i(5930),it=i(5699),at=i(7679),ct=i(9945);function lt(n,r){1&n&&(t.j41(0,"button",11),t.nrm(1,"i",12),t.EFF(2," Suggest a New Source "),t.k0s())}function pt(n,r){if(1&n&&(t.qex(0),t.DNE(1,lt,3,0,"button",10),t.bVm()),2&n){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function gt(n,r){if(1&n&&t.DNE(0,pt,2,1,"ng-container",9),2&n){const o=t.XpG(2);t.Y8G("ngrxLet",o.viewer$)}}function dt(n,r){1&n&&(t.j41(0,"nz-tag",13),t.EFF(1," Fully Curated "),t.k0s())}function ut(n,r){if(1&n&&(t.j41(0,"cvc-link-tag",14),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function mt(n,r){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",2),t.DNE(2,gt,1,1,"ng-template",null,0,t.C5r),t.j41(4,"nz-page-header",3)(5,"nz-page-header-title"),t.nrm(6,"i",4),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.j41(9,"nz-page-header-extra"),t.DNE(10,dt,2,0,"nz-tag",5)(11,ut,2,3,"cvc-link-tag",6),t.k0s(),t.j41(12,"nz-page-header-content"),t.nrm(13,"cvc-tab-navigation",7),t.nI1(14,"ngrxPush"),t.j41(15,"div",8),t.nrm(16,"router-outlet"),t.k0s()()(),t.bVm()),2&n){const o=r.ngIf,a=t.sdS(3),p=t.XpG();t.R7$(),t.Y8G("displayName",o.citation)("actionsTpl",a),t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(7,7,"Source")),t.R7$(2),t.SpI(" ",o.citation," "),t.R7$(2),t.Y8G("ngIf",o.fullyCurated),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(2),t.Y8G("tabs",t.bMT(14,9,p.tabs$))}}let ht=(()=>{class n{constructor(o,a,p){this.viewerService=o,this.route=a,this.gql=p,this.destroy$=new A.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}],this.tabs$=new Z.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(C=>{this.sourceId=+C.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let P=this.queryRef.valueChanges;this.loading$=P.pipe((0,d.E)("loading"),(0,B.Z)(!0)),this.source$=P.pipe((0,d.E)("data","source")),this.source$.pipe((0,s.Q)(this.destroy$)).subscribe({next:ue=>{this.tabs$.next(this.defaultTabs.map(nt=>"Comments"===nt.tabLabel?{badgeCount:ue?.comments.totalCount,badgeColor:"#cccccc",...nt}:nt))}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(c.q),t.rXU(u.nX),t.rXU(T.Psd))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[["sourcesActions",""],[4,"ngIf"],[3,"displayName","actionsTpl"],[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(a,p){1&a&&(t.DNE(0,mt,17,11,"ng-container",1),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,p.source$))},dependencies:[e.bT,u.n3,u.Wk,_.Nj,h.WB,h.k9,h.zR,h.ov,m.aO,I.c,$.p,z.Dn,it.s,y.n,at.a,ct.N,_.L9,k.R],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}"]})}return n})();var R=i(7529),X=i(7391),Y=i(7685),ft=i(4644);function _t(n,r){1&n&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Suggest a New Source "),t.k0s())}function zt(n,r){if(1&n&&(t.qex(0),t.DNE(1,_t,3,0,"button",17),t.bVm()),2&n){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function vt(n,r){if(1&n&&t.DNE(0,zt,2,1,"ng-container",16),2&n){const o=t.XpG();t.Y8G("ngrxLet",o.viewer$)}}function Ct(n,r){1&n&&(t.j41(0,"a",20),t.nrm(1,"i",21),t.EFF(2," View Source Docs "),t.k0s())}function yt(n,r){1&n&&(t.j41(0,"a",22),t.nrm(1,"i",21),t.EFF(2," View Source Curation Docs "),t.k0s())}let St=(()=>{class n{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(c.q))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["sources-home"]],decls:22,vars:6,consts:[["sourcesActions",""],[3,"actionsTpl"],[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(a,p){if(1&a&&(t.nrm(0,"cvc-section-navigation",1),t.DNE(1,vt,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t.nrm(7,"i",5),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",6)(10,"h2"),t.EFF(11,"Sources"),t.k0s(),t.j41(12,"p",7),t.EFF(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.k0s()(),t.j41(14,"nz-col",8)(15,"nz-space",9),t.DNE(16,Ct,3,0,"a",10)(17,yt,3,0,"a",11),t.k0s()()(),t.j41(18,"div",12)(19,"div",13)(20,"div",14),t.nrm(21,"cvc-sources-table",15),t.k0s()()()()()),2&a){const C=t.sdS(2);t.Y8G("actionsTpl",C),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Source")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[e.bT,u.Wk,_.Nj,h.WB,h.zR,z.Dn,R.Uq,R.e,m.aO,I.c,$.p,X.Di,Y.U5,Y.Dq,y.n,ft.y,k.R],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}"]})}return n})();var rt=i(5154),q=i(2e3),Tt=i(3386);let bt=(()=>{class n{set cvcAutoHeightDiv(o){const a=parseInt(o,0);!isNaN(a)&&a>=0&&(this._offset=a)}set cvcAutoHeightTarget(o){this._target=o}get cvcAutoHeightTarget(){return this._target}constructor(o,a,p){this.el=o,this.zone=a,this.cdr=p,this._offset=0,this._target="parent",this.divTop=0,this.onResized$=new A.B,this.resizeObserver=new ResizeObserver(C=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,Tt.c)(10)).subscribe(C=>{this.resizeToFitContent()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}ngAfterViewInit(){Promise.resolve().then(()=>{this.resizeToFitContent()})}resizeToFitContent(){const o=this.el.nativeElement,a=o.parentElement.getBoundingClientRect().height;o&&o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o&&("parent"===this._target?o.style.height=a:"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)}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc))};static#e=this.\u0275dir=t.FsC({type:n,selectors:[["","cvcAutoHeightDiv",""]],inputs:{cvcAutoHeightDiv:"cvcAutoHeightDiv",cvcAutoHeightTarget:"cvcAutoHeightTarget"}})}return n})();var xt=i(8199),It=i(3340),Pt=i(6726),Ot=i(2143);const Et=()=>[8,16];function Mt(n,r){if(1&n&&(t.j41(0,"cvc-link-tag",25),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function Rt(n,r){if(1&n&&t.nrm(0,"cvc-retraction-status-tag",26),2&n){const o=t.XpG().ngIf;t.Y8G("retractionNature",o.retractionNature)("retractionDate",o.retractionDate)("retractionReasons",o.retractionReasons)}}function Gt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",27),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.R7$(),t.SpI(" ",o.ascoAbstractId," ")}}function Ft(n,r){if(1&n&&(t.qex(0),t.j41(1,"cvc-link-tag",28),t.EFF(2),t.k0s(),t.bVm()),2&n){const o=t.XpG().ngIf;t.R7$(),t.Mz_("href","https://www.ncbi.nlm.nih.gov/pmc/articles/",o.pmcId,""),t.R7$(),t.SpI(" ",o.pmcId," ")}}function Dt(n,r){}function $t(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",33),t.DNE(1,Dt,0,0,"ng-template",34),t.k0s()),2&n){t.XpG(2);const o=t.sdS(31);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function Yt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",33),t.nrm(1,"cvc-clinical-trial-tag",35),t.k0s()),2&n){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("clinicalTrial",o.clinicalTrials[0])}}function jt(n,r){if(1&n&&(t.qex(0),t.j41(1,"nz-space"),t.nrm(2,"cvc-clinical-trial-tag",35),t.k0s(),t.bVm()),2&n){const o=r.$implicit;t.R7$(2),t.Y8G("clinicalTrial",o)}}function Lt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",36),t.DNE(1,jt,3,1,"ng-container",37),t.k0s()),2&n){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngForOf",o.clinicalTrials)}}function wt(n,r){if(1&n&&(t.qex(0,29),t.DNE(1,$t,2,1,"ng-template",30)(2,Yt,2,1,"ng-template",31)(3,Lt,2,1,"ng-template",32),t.bVm()),2&n){const o=t.XpG().ngIf;t.Y8G("ngPlural",o.clinicalTrials.length)}}function Nt(n,r){1&n&&(t.j41(0,"span",38),t.EFF(1," Not available "),t.k0s())}function kt(n,r){if(1&n&&t.EFF(0),2&n){const o=t.XpG().ngIf;t.SpI(" Evidence for ",o.citation," ")}}function At(n,r){if(1&n&&t.EFF(0),2&n){const o=t.XpG().ngIf;t.SpI(" Source Suggestions for ",o.citation," ")}}function Bt(n,r){if(1&n&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-descriptions",6)(4,"nz-descriptions-item",7)(5,"i"),t.EFF(6),t.k0s()(),t.j41(7,"nz-descriptions-item",8),t.EFF(8),t.k0s()()(),t.j41(9,"nz-col",5)(10,"nz-descriptions",6)(11,"nz-descriptions-item",9)(12,"p",10),t.EFF(13),t.k0s()()()(),t.j41(14,"nz-col",5)(15,"nz-descriptions",11)(16,"nz-descriptions-item",12),t.EFF(17),t.k0s(),t.j41(18,"nz-descriptions-item",13),t.DNE(19,Mt,2,3,"cvc-link-tag",14)(20,Rt,1,3,"cvc-retraction-status-tag",15),t.k0s(),t.DNE(21,Gt,2,1,"nz-descriptions-item",16),t.j41(22,"nz-descriptions-item",17),t.EFF(23),t.k0s(),t.j41(24,"nz-descriptions-item",18),t.DNE(25,Ft,3,3,"ng-container",19),t.k0s(),t.j41(26,"nz-descriptions-item",20)(27,"span",21),t.nrm(28,"span",22),t.k0s()(),t.DNE(29,wt,4,1,"ng-container",23),t.k0s(),t.DNE(30,Nt,2,0,"ng-template",null,0,t.C5r),t.k0s(),t.j41(32,"nz-col",5),t.nrm(33,"cvc-evidence-table",24),t.DNE(34,kt,1,1,"ng-template",null,1,t.C5r),t.k0s(),t.j41(36,"nz-col",5),t.nrm(37,"cvc-source-suggestions-table",24),t.DNE(38,At,1,1,"ng-template",null,2,t.C5r),t.k0s()(),t.bVm()),2&n){const o=r.ngIf,a=t.sdS(31),p=t.sdS(35),C=t.sdS(39),P=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(29,Et)),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("nzColumn",1),t.R7$(3),t.JRh(o.title),t.R7$(2),t.SpI(" ",o.authorString," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("nzEllipsisRows",6),t.R7$(),t.SpI(" ",o.abstract," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.JRh(o.publicationDate),t.R7$(),t.Mz_("nzTitle","",o.displayType," ID"),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(),t.Y8G("ngIf",o.retractionNature&&o.retractionDate&&o.retractionReasons),t.R7$(),t.Y8G("ngIf","ASCO"==o.displayType),t.R7$(2),t.SpI("",o.fullJournalTitle," "),t.R7$(2),t.Y8G("ngIf",o.pmcId)("ngIfElse",a),t.R7$(2),t.Y8G("nzTooltipTitle",o.pmcId?"Open":"Closed"),t.R7$(),t.Y8G("nzType",o.pmcId?"unlock":"lock"),t.R7$(),t.Y8G("ngIf",o.clinicalTrials),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",P.sourceId)("cvcTitleTemplate",p),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",P.sourceId)("cvcTitleTemplate",C)}}let Xt=(()=>{class n{constructor(o,a){this.route=o,this.gql=a,this.routeSub=this.route.params.subscribe(p=>{this.sourceId=+p.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let C=this.queryRef.valueChanges;this.loading$=C.pipe((0,d.E)("loading"),(0,B.Z)(!0)),this.source$=C.pipe((0,d.E)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(u.nX),t.rXU(T.s91))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[["notAvailable",""],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[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"],[3,"retractionNature","retractionDate","retractionReasons",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"],["cvcHeight","400",3,"sourceId","cvcTitleTemplate"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons"],["nzTitle","ASCO Abstract ID"],["tooltip","View on PubMed Central",3,"href"],[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(a,p){1&a&&(t.DNE(0,Bt,40,30,"ng-container",3),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,p.source$))},dependencies:[e.Sq,e.bT,e.T3,e.IJ,e.WO,R.Uq,R.e,Y.U5,X.Di,z.Dn,rt.LH,q.xA,q.gr,at.a,bt,xt.N,It.E,Pt.X,Ot.n,_.L9],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}"]})}return n})(),Vt=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-sources"]],decls:1,vars:0,template:function(a,p){1&a&&t.nrm(0,"router-outlet")},dependencies:[u.n3],encapsulation:2})}return n})();var Ut=i(664);const Ht=[{path:"",component:Vt,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:St,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},runGuardsAndResolvers:"always",component:J},{path:":sourceId",component:ht,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Xt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class n{constructor(o){this.route=o,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:T.T31.Source}}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(u.nX))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,p){1&a&&t.nrm(0,"cvc-comment-list",0),2&a&&t.Y8G("commentable",p.commentable)},dependencies:[Ut.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Comments"}}]}]}];let Wt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[u.iI.forChild(Ht),u.iI]})}return n})();var Kt=i(5443),tt=i(4124),et=i(4917);let Qt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,h.ZJ,z.Y3,R.f3,m.Zw,X.kT,Y.pc,tt.C,Kt.n,et.i]})}return n})();var st=i(7054),Jt=i(1532);let Zt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,h.ZJ,m.Zw,z.Y3,it.T,tt.C,st.L,Jt.W,et.i]})}return n})();var qt=i(9619),te=i(4531),ee=i(5594),ne=i(2242),oe=i(174);let ie=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,R.f3,Y.pc,R.f3,Y.pc,X.kT,z.Y3,rt.Qt,q.WF,st.L,ne.i,te.C,ee.b,qt.u,oe.u]})}return n})();var ae=i(8168),re=i(776),se=i(5316);let ce=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,g.PQ,m.Zw,S.$,ae.m,se.P,re.s]})}return n})(),le=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,h.ZJ,z.Y3,et.i,tt.C,ce]})}return n})();var pe=i(4873);let ge=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,pe.A]})}return n})(),de=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,Wt,Qt,Zt,ie,le,ge]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/4009.0491870acf12d3e0.js b/server/public/4009.eea4f50908983d43.js similarity index 99% rename from server/public/4009.0491870acf12d3e0.js rename to server/public/4009.eea4f50908983d43.js index 54bce6e33..fe70a69c3 100644 --- a/server/public/4009.0491870acf12d3e0.js +++ b/server/public/4009.eea4f50908983d43.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4009],{6936:(E,u,e)=>{e.d(u,{G:()=>g});var s=e(177),d=e(1188),c=e(5699),r=e(1236),o=e(5103),t=e(4666),i=e(4917),p=e(3146),_=e(4994),f=e(3953);let g=(()=>{class n{static#e=this.\u0275fac=function(D){return new(D||n)};static#t=this.\u0275mod=f.$C({type:n});static#n=this.\u0275inj=f.G2t({imports:[s.MD,d.iI,p.W2,c.T,r.MC,o.Y3,t.v,i.i,_.a]})}return n})()},8920:(E,u,e)=>{e.d(u,{U:()=>m});var s=e(177),d=e(1188),c=e(5699),r=e(5103),o=e(7529),t=e(7054),i=e(2e3),p=e(5703),_=e(3357),f=e(3953);let g=(()=>{class l{static#e=this.\u0275fac=function(M){return new(M||l)};static#t=this.\u0275mod=f.$C({type:l});static#n=this.\u0275inj=f.G2t({imports:[s.MD,p.Ti,o.f3,i.WF,t.L,_.P]})}return l})();var n=e(1236);let m=(()=>{class l{static#e=this.\u0275fac=function(M){return new(M||l)};static#t=this.\u0275mod=f.$C({type:l});static#n=this.\u0275inj=f.G2t({imports:[s.MD,d.iI,c.T,r.Y3,n.MC,g]})}return l})()},9374:(E,u,e)=>{e.d(u,{r:()=>m});var s=e(177),d=e(2142),c=e(5699),r=e(1236),o=e(9192),t=e(8920),i=e(7051),p=e(9802),_=e(5493),f=e(6912),g=e(7086),n=e(3953);let m=(()=>{class l{static#e=this.\u0275fac=function(M){return new(M||l)};static#t=this.\u0275mod=n.$C({type:l});static#n=this.\u0275inj=n.G2t({imports:[s.MD,c.T,r.MC,d.x,p._,o.J,t.U,f.l,i.U,_.G,g.C]})}return l})()},5493:(E,u,e)=>{e.d(u,{G:()=>n});var s=e(177),d=e(1188),c=e(5699),r=e(5703),o=e(7054),t=e(2e3),i=e(5103),p=e(4917),_=e(3953);let f=(()=>{class m{static#e=this.\u0275fac=function(y){return new(y||m)};static#t=this.\u0275mod=_.$C({type:m});static#n=this.\u0275inj=_.G2t({imports:[s.MD,i.Y3,r.Ti,t.WF,p.i,o.L]})}return m})();var g=e(1236);let n=(()=>{class m{static#e=this.\u0275fac=function(y){return new(y||m)};static#t=this.\u0275mod=_.$C({type:m});static#n=this.\u0275inj=_.G2t({imports:[s.MD,d.iI,i.Y3,c.T,g.MC,f]})}return m})()},7292:(E,u,e)=>{e.d(u,{H:()=>c});var d=e(3953);let c=(()=>{class r{transform(t,i="display-string"){return void 0===t?"":"display-string"===i?function s(r){switch(r){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return r}}(t):`civic-${t.replace(/_/g,"").toLowerCase()}`}static#e=this.\u0275fac=function(i){return new(i||r)};static#t=this.\u0275pipe=d.EJ8({name:"therapyInteractionEnumDisplay",type:r,pure:!0})}return r})()},5847:(E,u,e)=>{e.d(u,{Z:()=>T});var s=e(1635),d=e(9417),c=e(1226),r=e(7593),o=e(9894);const f=(0,e(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Assertion"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,watchVariantMolecularProfileId:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{key:"assertionType",type:"type-select",props:{required:!0}},{key:"assertionDirection",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:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"ampLevel",type:"amp-category-select",props:{}},{key:"acmgCodeIds",type:"acmg-code-multi-select",props:{}},{key:"clingenCodeIds",type:"clingen-code-multi-select",props:{}},{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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24},{md:24,lg:8},{md:24,lg:16}]}},fieldGroup:[{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0}},{key:"summary",type:"base-textarea",props:{tooltip:"A short, one sentence summary of the Assertion",placeholder:"Enter an Assertion Summary",label:"Assertion Summary",required:!0}},{key:"description",type:"base-textarea",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}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Revisions",align:"right"}}]}]}],{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 g=e(1653),n=e(3953),m=e(9145),l=e(4222),D=e(177),y=e(8927),M=e(8524),R=e(8721);function A(C,v){if(1&C&&(n.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),n.j41(1,"a",4),n.EFF(2,"here."),n.k0s()),2&C){const a=n.XpG();n.R7$(),n.FS9("href",a.url,n.B4B)}}function L(C,v){if(1&C){const a=n.RV6();n.j41(0,"form",5),n.bIt("ngSubmit",function(){n.eBV(a);const h=n.XpG();return n.Njj(h.onSubmit(h.model))}),n.j41(1,"formly-form",6),n.bIt("modelChange",function(h){n.eBV(a);const O=n.XpG();return n.Njj(O.model=h)}),n.k0s()()}if(2&C){const a=n.XpG();n.Y8G("formGroup",a.form),n.R7$(),n.Y8G("form",a.form)("fields",a.fields)("model",a.model)("options",a.options)}}function G(C,v){1&C&&n.EFF(0," Loading Assertion... ")}let T=class P{constructor(v,a,I,h){this.revisableFieldsGQL=v,this.submitRevisionsGQL=a,this.networkErrorService=I,this.cdr=h,this.form=new d.J3({}),this.fields=f,this.state=new r.o,this.state.formMode="revise",this.options={formState:this.state},this.reviseAssertionMutator=new c.E(I)}onSubmit(v){if(!this.assertionId)return;let a=(0,g.$h)(this.assertionId,v);a&&(this.mutationState=this.reviseAssertionMutator.mutate(this.submitRevisionsGQL,{input:a}))}ngOnInit(){this.url=`/assertions/${this.assertionId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).pipe((0,o.s)(this)).subscribe({next:({data:{assertion:v}})=>{v&&(this.model={id:v.id,fields:(0,g.Mw)(v)},this.cdr.detectChanges())},error:v=>{console.log("Error retrieving Assertion"),console.log(v)},complete:()=>{this.state.formReady$.next(!0)}})}ngOnDestroy(){this.options.formState.onDestroy()}static#e=this.\u0275fac=function(a){return new(a||P)(n.rXU(m.VV8),n.rXU(m.wkS),n.rXU(l.N),n.rXU(n.gRc))};static#t=this.\u0275cmp=n.VBU({type:P,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(a,I){if(1&a&&(n.j41(0,"cvc-form-submission-status-display",2),n.DNE(1,A,3,1,"ng-template",null,0,n.C5r)(3,L,2,5,"form",3)(4,G,1,0,"ng-template",null,1,n.C5r),n.k0s()),2&a){const h=n.sdS(2),O=n.sdS(5);n.Y8G("mutationState",I.mutationState)("successMessage",h)("redirectUrl",I.url),n.R7$(3),n.Y8G("ngIf",I.model)("ngIfElse",O)}},dependencies:[D.bT,y.CA,d.qT,d.cb,d.j4,M.aF,R.G],encapsulation:2,changeDetection:0})};T=(0,s.Cg)([(0,o.d)()],T)},2090:(E,u,e)=>{e.d(u,{B:()=>i});var s=e(177),d=e(8927),c=e(513),r=e(2229),o=e(5316),t=e(3953);let i=(()=>{class p{static#e=this.\u0275fac=function(g){return new(g||p)};static#t=this.\u0275mod=t.$C({type:p});static#n=this.\u0275inj=t.G2t({imports:[s.MD,d.PQ,c.Zw,r.m,o.P]})}return p})()},1653:(E,u,e)=>{e.d(u,{$h:()=>r,Mw:()=>d,fR:()=>c});var s=e(5741);function d(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 c(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.pz(t.ampLevel),assertionDirection:t.assertionDirection,assertionType:t.assertionType,clingenCodeIds:t.clingenCodeIds||[],significance:t.significance,description:s.q2(t.description),diseaseId:s.pz(t.diseaseId),therapyIds:t.therapyIds||[],therapyInteractionType:s.pz(t.therapyInteractionType),evidenceItemIds:t.evidenceItemIds||[],fdaCompanionTest:s.pz(t.fdaCompanionTest),fdaRegulatoryApproval:s.pz(t.fdaRegulatoryApproval),molecularProfileId:t.molecularProfileId,nccnGuidelineId:s.pz(t.nccnGuidelineId),nccnGuidelineVersion:s.q2(t.nccnGuidelineVersion),phenotypeIds:t.phenotypeIds||[],summary:s.q2(t.summary),variantOrigin:t.variantOrigin},organizationId:o.organizationId,comment:o.comment}}function r(o,t){let i=c(t);if(i)return{id:o,comment:i.comment,organizationId:i.organizationId,fields:i.fields}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4009],{6936:(E,u,e)=>{e.d(u,{G:()=>g});var s=e(177),d=e(1188),c=e(5699),r=e(1236),o=e(5103),t=e(4666),i=e(4917),p=e(3146),_=e(4994),f=e(3953);let g=(()=>{class n{static#e=this.\u0275fac=function(D){return new(D||n)};static#t=this.\u0275mod=f.$C({type:n});static#n=this.\u0275inj=f.G2t({imports:[s.MD,d.iI,p.W2,c.T,r.MC,o.Y3,t.v,i.i,_.a]})}return n})()},8920:(E,u,e)=>{e.d(u,{U:()=>m});var s=e(177),d=e(1188),c=e(5699),r=e(5103),o=e(7529),t=e(7054),i=e(2e3),p=e(5703),_=e(3357),f=e(3953);let g=(()=>{class l{static#e=this.\u0275fac=function(M){return new(M||l)};static#t=this.\u0275mod=f.$C({type:l});static#n=this.\u0275inj=f.G2t({imports:[s.MD,p.Ti,o.f3,i.WF,t.L,_.P]})}return l})();var n=e(1236);let m=(()=>{class l{static#e=this.\u0275fac=function(M){return new(M||l)};static#t=this.\u0275mod=f.$C({type:l});static#n=this.\u0275inj=f.G2t({imports:[s.MD,d.iI,c.T,r.Y3,n.MC,g]})}return l})()},9374:(E,u,e)=>{e.d(u,{r:()=>m});var s=e(177),d=e(2142),c=e(5699),r=e(1236),o=e(9192),t=e(8920),i=e(7051),p=e(9802),_=e(5493),f=e(6912),g=e(7086),n=e(3953);let m=(()=>{class l{static#e=this.\u0275fac=function(M){return new(M||l)};static#t=this.\u0275mod=n.$C({type:l});static#n=this.\u0275inj=n.G2t({imports:[s.MD,c.T,r.MC,d.x,p._,o.J,t.U,f.l,i.U,_.G,g.C]})}return l})()},5493:(E,u,e)=>{e.d(u,{G:()=>n});var s=e(177),d=e(1188),c=e(5699),r=e(5703),o=e(7054),t=e(2e3),i=e(5103),p=e(4917),_=e(3953);let f=(()=>{class m{static#e=this.\u0275fac=function(y){return new(y||m)};static#t=this.\u0275mod=_.$C({type:m});static#n=this.\u0275inj=_.G2t({imports:[s.MD,i.Y3,r.Ti,t.WF,p.i,o.L]})}return m})();var g=e(1236);let n=(()=>{class m{static#e=this.\u0275fac=function(y){return new(y||m)};static#t=this.\u0275mod=_.$C({type:m});static#n=this.\u0275inj=_.G2t({imports:[s.MD,d.iI,i.Y3,c.T,g.MC,f]})}return m})()},7292:(E,u,e)=>{e.d(u,{H:()=>c});var d=e(3953);let c=(()=>{class r{transform(t,i="display-string"){return void 0===t?"":"display-string"===i?function s(r){switch(r){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return r}}(t):`civic-${t.replace(/_/g,"").toLowerCase()}`}static#e=this.\u0275fac=function(i){return new(i||r)};static#t=this.\u0275pipe=d.EJ8({name:"therapyInteractionEnumDisplay",type:r,pure:!0})}return r})()},5847:(E,u,e)=>{e.d(u,{Z:()=>T});var s=e(1635),d=e(9417),c=e(1226),r=e(7593),o=e(9894);const f=(0,e(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Assertion"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,watchVariantMolecularProfileId:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{key:"assertionType",type:"type-select",props:{required:!0}},{key:"assertionDirection",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:"variantOrigin",type:"origin-select",props:{required:!0}},{key:"phenotypeIds",type:"phenotype-multi-select",props:{}},{key:"ampLevel",type:"amp-category-select",props:{}},{key:"acmgCodeIds",type:"acmg-code-multi-select",props:{}},{key:"clingenCodeIds",type:"clingen-code-multi-select",props:{}},{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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24},{md:24,lg:8},{md:24,lg:16}]}},fieldGroup:[{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0}},{key:"summary",type:"base-textarea",props:{tooltip:"A short, one sentence summary of the Assertion",placeholder:"Enter an Assertion Summary",label:"Assertion Summary",required:!0}},{key:"description",type:"base-textarea",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}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Revisions",align:"right"}}]}]}],{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 g=e(1653),n=e(3953),m=e(9145),l=e(4222),D=e(177),y=e(8927),M=e(8524),R=e(8721);function A(C,v){if(1&C&&(n.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),n.j41(1,"a",4),n.EFF(2,"here."),n.k0s()),2&C){const a=n.XpG();n.R7$(),n.FS9("href",a.url,n.B4B)}}function L(C,v){if(1&C){const a=n.RV6();n.j41(0,"form",5),n.bIt("ngSubmit",function(){n.eBV(a);const h=n.XpG();return n.Njj(h.onSubmit(h.model))}),n.j41(1,"formly-form",6),n.bIt("modelChange",function(h){n.eBV(a);const O=n.XpG();return n.Njj(O.model=h)}),n.k0s()()}if(2&C){const a=n.XpG();n.Y8G("formGroup",a.form),n.R7$(),n.Y8G("form",a.form)("fields",a.fields)("model",a.model)("options",a.options)}}function G(C,v){1&C&&n.EFF(0," Loading Assertion... ")}let T=class P{constructor(v,a,I,h){this.revisableFieldsGQL=v,this.submitRevisionsGQL=a,this.networkErrorService=I,this.cdr=h,this.form=new d.J3({}),this.fields=f,this.state=new r.o,this.state.formMode="revise",this.options={formState:this.state},this.reviseAssertionMutator=new c.E(I)}onSubmit(v){if(!this.assertionId)return;let a=(0,g.$h)(this.assertionId,v);a&&(this.mutationState=this.reviseAssertionMutator.mutate(this.submitRevisionsGQL,{input:a}))}ngOnInit(){this.url=`/assertions/${this.assertionId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({assertionId:this.assertionId}).pipe((0,o.s)(this)).subscribe({next:({data:{assertion:v}})=>{v&&(this.model={id:v.id,fields:(0,g.Mw)(v)},this.cdr.detectChanges())},error:v=>{console.log("Error retrieving Assertion"),console.log(v)},complete:()=>{this.state.formReady$.next(!0)}})}ngOnDestroy(){this.options.formState.onDestroy()}static#e=this.\u0275fac=function(a){return new(a||P)(n.rXU(m.VV8),n.rXU(m.wkS),n.rXU(l.N),n.rXU(n.gRc))};static#t=this.\u0275cmp=n.VBU({type:P,selectors:[["cvc-assertion-revise-form"]],inputs:{assertionId:"assertionId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(a,I){if(1&a&&(n.j41(0,"cvc-form-submission-status-display",2),n.DNE(1,A,3,1,"ng-template",null,0,n.C5r)(3,L,2,5,"form",3)(4,G,1,0,"ng-template",null,1,n.C5r),n.k0s()),2&a){const h=n.sdS(2),O=n.sdS(5);n.Y8G("mutationState",I.mutationState)("successMessage",h)("redirectUrl",I.url),n.R7$(3),n.Y8G("ngIf",I.model)("ngIfElse",O)}},dependencies:[D.bT,y.CA,d.qT,d.cb,d.j4,M.aF,R.G],encapsulation:2,changeDetection:0})};T=(0,s.Cg)([(0,o.d)()],T)},2090:(E,u,e)=>{e.d(u,{B:()=>i});var s=e(177),d=e(8927),c=e(513),r=e(8168),o=e(5316),t=e(3953);let i=(()=>{class p{static#e=this.\u0275fac=function(g){return new(g||p)};static#t=this.\u0275mod=t.$C({type:p});static#n=this.\u0275inj=t.G2t({imports:[s.MD,d.PQ,c.Zw,r.m,o.P]})}return p})()},1653:(E,u,e)=>{e.d(u,{$h:()=>r,Mw:()=>d,fR:()=>c});var s=e(5741);function d(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 c(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.pz(t.ampLevel),assertionDirection:t.assertionDirection,assertionType:t.assertionType,clingenCodeIds:t.clingenCodeIds||[],significance:t.significance,description:s.q2(t.description),diseaseId:s.pz(t.diseaseId),therapyIds:t.therapyIds||[],therapyInteractionType:s.pz(t.therapyInteractionType),evidenceItemIds:t.evidenceItemIds||[],fdaCompanionTest:s.pz(t.fdaCompanionTest),fdaRegulatoryApproval:s.pz(t.fdaRegulatoryApproval),molecularProfileId:t.molecularProfileId,nccnGuidelineId:s.pz(t.nccnGuidelineId),nccnGuidelineVersion:s.q2(t.nccnGuidelineVersion),phenotypeIds:t.phenotypeIds||[],summary:s.q2(t.summary),variantOrigin:t.variantOrigin},organizationId:o.organizationId,comment:o.comment}}function r(o,t){let i=c(t);if(i)return{id:o,comment:i.comment,organizationId:i.organizationId,fields:i.fields}}}}]); \ No newline at end of file diff --git a/server/public/4178.54cf940d01f8fd98.js b/server/public/4178.66d6bc4365e46b51.js similarity index 70% rename from server/public/4178.54cf940d01f8fd98.js rename to server/public/4178.66d6bc4365e46b51.js index aaeeb4a71..ef2114a43 100644 --- a/server/public/4178.54cf940d01f8fd98.js +++ b/server/public/4178.66d6bc4365e46b51.js @@ -12,8 +12,8 @@ molecularProfileAliases } } - `};let V;try{V=this.apollo.client.readFragment(F)}catch(D){console.error(D)}if(V)return V;console.error("MpFinderForm could not resolve its Variant from the cache")}static#n=this.\u0275fac=function(F){return new(F||c)(e.rXU(C.Ic))};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["cvc-variant-submit-form"]],outputs:{onVariantSelected:"onVariantSelected"},decls:4,vars:4,consts:[["variantCreated",""],["successMessage",""],["variantLink",""],["existsMessage",""],[4,"ngIf","ngIfElse"],["nz-form","",3,"nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"],[4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"],[3,"routerLink"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(F,V){if(1&F&&(e.DNE(0,S,3,6,"ng-container",4),e.nI1(1,"ngrxPush"),e.DNE(2,z,2,3,"ng-template",null,0,e.C5r)),2&F){const D=e.sdS(3);e.Y8G("ngIf",!e.bMT(1,2,V.newVariant$))("ngIfElse",D)}},dependencies:[g.bT,I.CA,p.Y,y.Wk,m.qT,m.cb,m.j4,r.aF,M.L9],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return c})()},7380:(x,O,t)=>{t.d(O,{s:()=>r});var e=t(177),m=t(8927),n=t(513),C=t(2229),g=t(5316),I=t(1188),p=t(3617),y=t(3953);let r=(()=>{class M{static#n=this.\u0275fac=function(G){return new(G||M)};static#t=this.\u0275mod=y.$C({type:M});static#e=this.\u0275inj=y.G2t({imports:[e.MD,m.PQ,n.Zw,p.$,I.iI,C.m,g.P]})}return M})()},4178:(x,O,t)=>{t.r(O),t.d(O,{LayoutModule:()=>St});var e=t(177),m=t(1188),n=t(3953),C=t(1305),g=t(5103),I=t(7529),p=t(1413),y=t(6977),r=t(1025),M=t(317),T=t(1868),S=t(6860),G=t(8203);const j=["*"],$=["nz-sider-trigger",""];function v(o,d){}function L(o,d){if(1&o&&n.DNE(0,v,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(5);n.Y8G("ngTemplateOutlet",i.nzZeroTrigger||s)}}function h(o,d){}function z(o,d){if(1&o&&n.DNE(0,h,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(3);n.Y8G("ngTemplateOutlet",i.nzTrigger||s)}}function f(o,d){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"left":"right")}}function c(o,d){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"right":"left")}}function R(o,d){if(1&o&&n.DNE(0,f,1,1,"span",3)(1,c,1,1,"span",3),2&o){const i=n.XpG();n.vxM(i.nzReverseArrow?0:1)}}function l(o,d){1&o&&n.nrm(0,"span",4)}function F(o,d){if(1&o){const i=n.RV6();n.j41(0,"div",2),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.setCollapsed(!a.nzCollapsed))}),n.k0s()}if(2&o){const i=n.XpG();n.Y8G("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 V=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-content"]],exportAs:["nzContent"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),u=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-header"]],exportAs:["nzHeader"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),A=(()=>{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()}static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(s,a){2&s&&(n.xc7("width",a.isNormalTrigger?a.siderWidth:null),n.AVh("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"],standalone:!0,features:[n.OA$,n.aNF],attrs:$,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(s,a){1&s&&n.DNE(0,L,1,1,null,2)(1,z,1,1,null,2)(2,R,2,1,"ng-template",null,0,n.C5r)(4,l,1,0,"ng-template",null,1,n.C5r),2&s&&(n.vxM(a.isZeroTrigger?0:-1),n.R7$(),n.vxM(a.isNormalTrigger?1:-1))},dependencies:[e.T3,g.Y3,g.Dn],encapsulation:2,changeDetection:0})}return o})(),_=(()=>{class o{updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,M.j3)(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,s,a){this.platform=i,this.cdr=s,this.breakpointService=a,this.destroy$=new p.B,this.nzMenuDirective=null,this.nzCollapsedChange=new n.bkB,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(r.yY,!0).pipe((0,y.Q)(this.destroy$)).subscribe(i=>{const s=this.nzBreakpoint;s&&(0,M.ij)().subscribe(()=>{this.matchBreakPoint=!i[s],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(i){const{nzCollapsed:s,nzCollapsedWidth:a,nzWidth:P}=i;(s||a||P)&&this.updateStyleMap(),s&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(S.OD),n.rXU(n.gRc),n.rXU(r.jp))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-sider"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,T.jS,5),2&s){let E;n.mGM(E=n.lsd())&&(a.nzMenuDirective=E.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(s,a){2&s&&(n.xc7("flex",a.flexSetting)("max-width",a.widthSetting)("min-width",a.widthSetting)("width",a.widthSetting),n.AVh("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:[2,"nzReverseArrow","nzReverseArrow",n.L39],nzCollapsible:[2,"nzCollapsible","nzCollapsible",n.L39],nzCollapsed:[2,"nzCollapsed","nzCollapsed",n.L39]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],standalone:!0,features:[n.GFd,n.OA$,n.aNF],ngContentSelectors:j,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"],["nz-sider-trigger","",3,"click","matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"]],template:function(s,a){1&s&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s(),n.DNE(2,F,1,8,"div",1)),2&s&&(n.R7$(2),n.vxM(a.nzCollapsible&&null!==a.nzTrigger?2:-1))},dependencies:[A],encapsulation:2,changeDetection:0})}return o})(),cn=(()=>{class o{constructor(i){this.directionality=i,this.dir="ltr",this.destroy$=new p.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,y.Q)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(G.dS,8))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-layout"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,_,4),2&s){let E;n.mGM(E=n.lsd())&&(a.listOfNzSiderComponent=E)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(s,a){2&s&&n.AVh("ant-layout-rtl","rtl"===a.dir)("ant-layout-has-sider",a.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),dn=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[_,A]})}return o})();var W=t(5154),pn=t(7670),nn=t(1661),mn=t(5312),K=t(5964),gn=t(4412),tn=t(9172),un=t(3993),en=t(4608),X=t(9199),U=t(9145),Z=t(1774),Q=t(2602),on=t(513),hn=t(6389),zn=t(5930),w=t(7685),an=t(3146),sn=t(2096),Y=t(7391),rn=t(9438),Cn=t(9162),fn=t(1202),vn=t(7074),Tn=t(574);const Mn=o=>["/users",o],En=()=>({backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}),yn=o=>({"update-coi":o});function On(o,d){if(1&o&&(n.j41(0,"button",28),n.EFF(1," Add "),n.nrm(2,"i",29),n.k0s()),2&o){n.XpG(2);const i=n.sdS(16);n.Y8G("nzDropdownMenu",i)}}function In(o,d){if(1&o&&(n.j41(0,"nz-badge",30)(1,"button",31),n.nrm(2,"i",32),n.k0s()()),2&o){const i=n.XpG().ngrxLet,s=n.XpG().ngIf;n.Y8G("nzCount",i)("nzOverflowCount",999)("nzStyle",n.lJ4(5,En)),n.R7$(),n.Mz_("routerLink","/users/",s.id,"/notifications")}}function Pn(o,d){if(1&o&&n.nrm(0,"cvc-user-avatar",37),2&o){const i=n.XpG(3).ngIf;n.Y8G("user",i)("size",22)("ngClass",n.eq3(3,yn,i.invalidCoi))}}function Dn(o,d){if(1&o&&(n.j41(0,"div",39),n.EFF(1),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.SpI(" ",i.username," ")}}function Sn(o,d){1&o&&(n.qex(0),n.DNE(1,Dn,2,1,"div",38),n.bVm())}function Rn(o,d){1&o&&(n.j41(0,"span",42),n.EFF(1," for "),n.k0s())}function Fn(o,d){if(1&o&&(n.j41(0,"span"),n.nrm(1,"cvc-organization-avatar",43),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.Y8G("size",18)("organization",i.mostRecentOrg)}}function Vn(o,d){1&o&&(n.qex(0),n.DNE(1,Rn,2,0,"span",40)(2,Fn,2,2,"span",41),n.bVm())}function Bn(o,d){1&o&&n.nrm(0,"i",29)}function xn(o,d){if(1&o&&(n.j41(0,"button",33)(1,"nz-space",34),n.DNE(2,Pn,1,5,"cvc-user-avatar",35)(3,Sn,2,0,"ng-container",7)(4,Vn,3,0,"ng-container",7)(5,Bn,1,0,"i",36),n.k0s()()),2&o){const i=n.XpG(2).ngIf,s=n.sdS(3),a=n.XpG();n.Y8G("nzDropdownMenu",s),n.R7$(3),n.Y8G("ngIf",!a.cvcCollapsed),n.R7$(),n.Y8G("ngIf",i.mostRecentOrg)}}function Gn(o,d){1&o&&(n.j41(0,"nz-space",24),n.DNE(1,On,3,1,"button",25)(2,In,3,6,"nz-badge",26)(3,xn,6,3,"button",27),n.k0s())}function jn(o,d){1&o&&(n.j41(0,"span",47),n.nrm(1,"i",48),n.EFF(2," Conflict of Interest Invalid "),n.k0s())}function An(o,d){if(1&o){const i=n.RV6();n.j41(0,"button",49),n.bIt("click",function(){n.eBV(i);const a=n.XpG(3);return n.Njj(a.coiUpdateModalVisible=!0)}),n.EFF(1," Please Update COI statement "),n.k0s()}}function Un(o,d){if(1&o&&(n.j41(0,"li",44),n.DNE(1,jn,3,0,"ng-template",null,6,n.C5r),n.j41(3,"ul")(4,"li",45),n.DNE(5,An,2,0,"button",46),n.k0s()()()),2&o){const i=n.sdS(2),s=n.XpG().ngIf;n.Y8G("nzTitle",i),n.R7$(5),n.Y8G("ngIf",s.invalidCoi)}}function $n(o,d){if(1&o){const i=n.RV6();n.j41(0,"li",52),n.bIt("click",function(){const a=n.eBV(i).$implicit,P=n.XpG(3);return n.Njj(P.menuSelection$.next(a.id))}),n.nrm(1,"nz-avatar",53),n.j41(2,"span",54),n.EFF(3),n.k0s()()}if(2&o){const i=d.$implicit,s=n.XpG(2).ngIf;n.Y8G("nzSelected",(null==s.mostRecentOrg?null:s.mostRecentOrg.id)===i.id),n.R7$(),n.Y8G("nzSrc",null==i?null:i.profileImagePath)("nzSize",14)("nzShape","square"),n.R7$(2),n.JRh(i.name)}}function Ln(o,d){if(1&o&&(n.j41(0,"li",50)(1,"ul"),n.DNE(2,$n,4,5,"li",51),n.k0s()()),2&o){const i=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",i.organizations)}}function _n(o,d){1&o&&(n.j41(0,"li",55)(1,"ul")(2,"li",56)(3,"a",57),n.EFF(4," Admin Console "),n.k0s()(),n.j41(5,"li",58)(6,"a",59),n.EFF(7," Error Monitoring "),n.k0s()(),n.j41(8,"li",60)(9,"a",61),n.EFF(10," Background Workers "),n.k0s()()()())}function Nn(o,d){if(1&o){const i=n.RV6();n.j41(0,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG(2);return n.Njj(a.addVariantModalVisible$.next(!0))}),n.EFF(1," Variant "),n.k0s()}}function Wn(o,d){if(1&o){const i=n.RV6();n.qex(0),n.DNE(1,Gn,4,0,"nz-space",10),n.j41(2,"nz-dropdown-menu",null,4)(4,"ul",11),n.DNE(5,Un,6,2,"li",12),n.j41(6,"li",13)(7,"ul")(8,"li",14),n.EFF(9," View Profile "),n.k0s(),n.DNE(10,Ln,3,1,"li",15),n.k0s()(),n.DNE(11,_n,11,0,"li",16),n.nrm(12,"li",17),n.j41(13,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.signOut())}),n.EFF(14," Sign Out "),n.k0s()()(),n.j41(15,"nz-dropdown-menu",null,5)(17,"ul",11)(18,"li",19),n.EFF(19," Evidence Item "),n.k0s(),n.j41(20,"li",20),n.EFF(21," Assertion "),n.k0s(),n.j41(22,"li",21),n.EFF(23," Source Suggestion "),n.k0s(),n.DNE(24,Nn,2,0,"li",22),n.j41(25,"li",23),n.EFF(26," Variant Group "),n.k0s()()(),n.bVm()}if(2&o){const i=d.ngIf,s=n.XpG();n.R7$(),n.Y8G("ngrxLet",s.unreadCount$),n.R7$(4),n.Y8G("ngIf",i.invalidCoi),n.R7$(3),n.Y8G("routerLink",n.eq3(6,Mn,i.id)),n.R7$(2),n.Y8G("ngIf",i.organizations.length>1),n.R7$(),n.Y8G("ngIf",i.isAdmin),n.R7$(13),n.Y8G("ngIf",i.isEditor)}}function Yn(o,d){1&o&&(n.j41(0,"span"),n.EFF(1,"Update your Conflict of Interest Statement"),n.k0s())}function bn(o,d){if(1&o){const i=n.RV6();n.j41(0,"cvc-user-coi-form",62),n.bIt("coiUpdatedEvent",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.coiUpdated())}),n.k0s()}}function Kn(o,d){1&o&&(n.j41(0,"span"),n.EFF(1,"Add New Variant"),n.k0s())}function Xn(o,d){1&o&&n.nrm(0,"cvc-variant-submit-form")}let Qn=(()=>{class o{constructor(i,s,a){this.queryService=i,this.unreadCountGql=s,this.apollo=a,this.cvcCollapsed=!1,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.menuSelection$=new p.B,this.unreadCount$=mn.c.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)),this.addVariantModalVisible$=new gn.t(!1)}ngOnInit(){this.menuSelection$.pipe((0,un.E)(this.viewer$)).subscribe(([i,s])=>{const a={id:`User:${s.id}`,fragment:nn.J1` + `};let V;try{V=this.apollo.client.readFragment(F)}catch(D){console.error(D)}if(V)return V;console.error("Variant submit form could not resolve its Variant from the cache")}static#n=this.\u0275fac=function(F){return new(F||c)(e.rXU(C.Ic))};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["cvc-variant-submit-form"]],outputs:{onVariantSelected:"onVariantSelected"},decls:4,vars:4,consts:[["variantCreated",""],["successMessage",""],["variantLink",""],["existsMessage",""],[4,"ngIf","ngIfElse"],["nz-form","",3,"nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"],[4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"],[3,"routerLink"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(F,V){if(1&F&&(e.DNE(0,S,3,6,"ng-container",4),e.nI1(1,"ngrxPush"),e.DNE(2,z,2,3,"ng-template",null,0,e.C5r)),2&F){const D=e.sdS(3);e.Y8G("ngIf",!e.bMT(1,2,V.newVariant$))("ngIfElse",D)}},dependencies:[g.bT,I.CA,p.Y,y.Wk,m.qT,m.cb,m.j4,r.aF,M.L9],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return c})()},7380:(x,O,t)=>{t.d(O,{s:()=>r});var e=t(177),m=t(8927),n=t(513),C=t(8168),g=t(5316),I=t(1188),p=t(3617),y=t(3953);let r=(()=>{class M{static#n=this.\u0275fac=function(G){return new(G||M)};static#t=this.\u0275mod=y.$C({type:M});static#e=this.\u0275inj=y.G2t({imports:[e.MD,m.PQ,n.Zw,p.$,I.iI,C.m,g.P]})}return M})()},4178:(x,O,t)=>{t.r(O),t.d(O,{LayoutModule:()=>St});var e=t(177),m=t(1188),n=t(3953),C=t(1305),g=t(5103),I=t(7529),p=t(1413),y=t(6977),r=t(1025),M=t(317),T=t(1868),S=t(6860),G=t(8203);const j=["*"],$=["nz-sider-trigger",""];function v(o,d){}function L(o,d){if(1&o&&n.DNE(0,v,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(5);n.Y8G("ngTemplateOutlet",i.nzZeroTrigger||s)}}function h(o,d){}function z(o,d){if(1&o&&n.DNE(0,h,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(3);n.Y8G("ngTemplateOutlet",i.nzTrigger||s)}}function f(o,d){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"left":"right")}}function c(o,d){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"right":"left")}}function R(o,d){if(1&o&&n.DNE(0,f,1,1,"span",3)(1,c,1,1,"span",3),2&o){const i=n.XpG();n.vxM(i.nzReverseArrow?0:1)}}function l(o,d){1&o&&n.nrm(0,"span",4)}function F(o,d){if(1&o){const i=n.RV6();n.j41(0,"div",2),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.setCollapsed(!a.nzCollapsed))}),n.k0s()}if(2&o){const i=n.XpG();n.Y8G("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 V=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-content"]],exportAs:["nzContent"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),u=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-header"]],exportAs:["nzHeader"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),A=(()=>{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()}static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(s,a){2&s&&(n.xc7("width",a.isNormalTrigger?a.siderWidth:null),n.AVh("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"],standalone:!0,features:[n.OA$,n.aNF],attrs:$,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(s,a){1&s&&n.DNE(0,L,1,1,null,2)(1,z,1,1,null,2)(2,R,2,1,"ng-template",null,0,n.C5r)(4,l,1,0,"ng-template",null,1,n.C5r),2&s&&(n.vxM(a.isZeroTrigger?0:-1),n.R7$(),n.vxM(a.isNormalTrigger?1:-1))},dependencies:[e.T3,g.Y3,g.Dn],encapsulation:2,changeDetection:0})}return o})(),_=(()=>{class o{updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,M.j3)(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,s,a){this.platform=i,this.cdr=s,this.breakpointService=a,this.destroy$=new p.B,this.nzMenuDirective=null,this.nzCollapsedChange=new n.bkB,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(r.yY,!0).pipe((0,y.Q)(this.destroy$)).subscribe(i=>{const s=this.nzBreakpoint;s&&(0,M.ij)().subscribe(()=>{this.matchBreakPoint=!i[s],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(i){const{nzCollapsed:s,nzCollapsedWidth:a,nzWidth:P}=i;(s||a||P)&&this.updateStyleMap(),s&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(S.OD),n.rXU(n.gRc),n.rXU(r.jp))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-sider"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,T.jS,5),2&s){let E;n.mGM(E=n.lsd())&&(a.nzMenuDirective=E.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(s,a){2&s&&(n.xc7("flex",a.flexSetting)("max-width",a.widthSetting)("min-width",a.widthSetting)("width",a.widthSetting),n.AVh("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:[2,"nzReverseArrow","nzReverseArrow",n.L39],nzCollapsible:[2,"nzCollapsible","nzCollapsible",n.L39],nzCollapsed:[2,"nzCollapsed","nzCollapsed",n.L39]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],standalone:!0,features:[n.GFd,n.OA$,n.aNF],ngContentSelectors:j,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"],["nz-sider-trigger","",3,"click","matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"]],template:function(s,a){1&s&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s(),n.DNE(2,F,1,8,"div",1)),2&s&&(n.R7$(2),n.vxM(a.nzCollapsible&&null!==a.nzTrigger?2:-1))},dependencies:[A],encapsulation:2,changeDetection:0})}return o})(),cn=(()=>{class o{constructor(i){this.directionality=i,this.dir="ltr",this.destroy$=new p.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,y.Q)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(G.dS,8))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-layout"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,_,4),2&s){let E;n.mGM(E=n.lsd())&&(a.listOfNzSiderComponent=E)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(s,a){2&s&&n.AVh("ant-layout-rtl","rtl"===a.dir)("ant-layout-has-sider",a.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),dn=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[_,A]})}return o})();var W=t(5154),pn=t(7670),nn=t(1661),mn=t(5312),K=t(5964),gn=t(4412),tn=t(9172),un=t(3993),en=t(4608),X=t(9199),U=t(9145),Z=t(1774),Q=t(2602),on=t(513),hn=t(6389),zn=t(5930),w=t(7685),an=t(3146),sn=t(2096),Y=t(7391),rn=t(9438),Cn=t(9162),fn=t(1202),vn=t(7074),Tn=t(574);const Mn=o=>["/users",o],En=()=>({backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}),yn=o=>({"update-coi":o});function On(o,d){if(1&o&&(n.j41(0,"button",28),n.EFF(1," Add "),n.nrm(2,"i",29),n.k0s()),2&o){n.XpG(2);const i=n.sdS(16);n.Y8G("nzDropdownMenu",i)}}function In(o,d){if(1&o&&(n.j41(0,"nz-badge",30)(1,"button",31),n.nrm(2,"i",32),n.k0s()()),2&o){const i=n.XpG().ngrxLet,s=n.XpG().ngIf;n.Y8G("nzCount",i)("nzOverflowCount",999)("nzStyle",n.lJ4(5,En)),n.R7$(),n.Mz_("routerLink","/users/",s.id,"/notifications")}}function Pn(o,d){if(1&o&&n.nrm(0,"cvc-user-avatar",37),2&o){const i=n.XpG(3).ngIf;n.Y8G("user",i)("size",22)("ngClass",n.eq3(3,yn,i.invalidCoi))}}function Dn(o,d){if(1&o&&(n.j41(0,"div",39),n.EFF(1),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.SpI(" ",i.username," ")}}function Sn(o,d){1&o&&(n.qex(0),n.DNE(1,Dn,2,1,"div",38),n.bVm())}function Rn(o,d){1&o&&(n.j41(0,"span",42),n.EFF(1," for "),n.k0s())}function Fn(o,d){if(1&o&&(n.j41(0,"span"),n.nrm(1,"cvc-organization-avatar",43),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.Y8G("size",18)("organization",i.mostRecentOrg)}}function Vn(o,d){1&o&&(n.qex(0),n.DNE(1,Rn,2,0,"span",40)(2,Fn,2,2,"span",41),n.bVm())}function Bn(o,d){1&o&&n.nrm(0,"i",29)}function xn(o,d){if(1&o&&(n.j41(0,"button",33)(1,"nz-space",34),n.DNE(2,Pn,1,5,"cvc-user-avatar",35)(3,Sn,2,0,"ng-container",7)(4,Vn,3,0,"ng-container",7)(5,Bn,1,0,"i",36),n.k0s()()),2&o){const i=n.XpG(2).ngIf,s=n.sdS(3),a=n.XpG();n.Y8G("nzDropdownMenu",s),n.R7$(3),n.Y8G("ngIf",!a.cvcCollapsed),n.R7$(),n.Y8G("ngIf",i.mostRecentOrg)}}function Gn(o,d){1&o&&(n.j41(0,"nz-space",24),n.DNE(1,On,3,1,"button",25)(2,In,3,6,"nz-badge",26)(3,xn,6,3,"button",27),n.k0s())}function jn(o,d){1&o&&(n.j41(0,"span",47),n.nrm(1,"i",48),n.EFF(2," Conflict of Interest Invalid "),n.k0s())}function An(o,d){if(1&o){const i=n.RV6();n.j41(0,"button",49),n.bIt("click",function(){n.eBV(i);const a=n.XpG(3);return n.Njj(a.coiUpdateModalVisible=!0)}),n.EFF(1," Please Update COI statement "),n.k0s()}}function Un(o,d){if(1&o&&(n.j41(0,"li",44),n.DNE(1,jn,3,0,"ng-template",null,6,n.C5r),n.j41(3,"ul")(4,"li",45),n.DNE(5,An,2,0,"button",46),n.k0s()()()),2&o){const i=n.sdS(2),s=n.XpG().ngIf;n.Y8G("nzTitle",i),n.R7$(5),n.Y8G("ngIf",s.invalidCoi)}}function $n(o,d){if(1&o){const i=n.RV6();n.j41(0,"li",52),n.bIt("click",function(){const a=n.eBV(i).$implicit,P=n.XpG(3);return n.Njj(P.menuSelection$.next(a.id))}),n.nrm(1,"nz-avatar",53),n.j41(2,"span",54),n.EFF(3),n.k0s()()}if(2&o){const i=d.$implicit,s=n.XpG(2).ngIf;n.Y8G("nzSelected",(null==s.mostRecentOrg?null:s.mostRecentOrg.id)===i.id),n.R7$(),n.Y8G("nzSrc",null==i?null:i.profileImagePath)("nzSize",14)("nzShape","square"),n.R7$(2),n.JRh(i.name)}}function Ln(o,d){if(1&o&&(n.j41(0,"li",50)(1,"ul"),n.DNE(2,$n,4,5,"li",51),n.k0s()()),2&o){const i=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",i.organizations)}}function _n(o,d){1&o&&(n.j41(0,"li",55)(1,"ul")(2,"li",56)(3,"a",57),n.EFF(4," Admin Console "),n.k0s()(),n.j41(5,"li",58)(6,"a",59),n.EFF(7," Error Monitoring "),n.k0s()(),n.j41(8,"li",60)(9,"a",61),n.EFF(10," Background Workers "),n.k0s()()()())}function Nn(o,d){if(1&o){const i=n.RV6();n.j41(0,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG(2);return n.Njj(a.addVariantModalVisible$.next(!0))}),n.EFF(1," Variant "),n.k0s()}}function Wn(o,d){if(1&o){const i=n.RV6();n.qex(0),n.DNE(1,Gn,4,0,"nz-space",10),n.j41(2,"nz-dropdown-menu",null,4)(4,"ul",11),n.DNE(5,Un,6,2,"li",12),n.j41(6,"li",13)(7,"ul")(8,"li",14),n.EFF(9," View Profile "),n.k0s(),n.DNE(10,Ln,3,1,"li",15),n.k0s()(),n.DNE(11,_n,11,0,"li",16),n.nrm(12,"li",17),n.j41(13,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.signOut())}),n.EFF(14," Sign Out "),n.k0s()()(),n.j41(15,"nz-dropdown-menu",null,5)(17,"ul",11)(18,"li",19),n.EFF(19," Evidence Item "),n.k0s(),n.j41(20,"li",20),n.EFF(21," Assertion "),n.k0s(),n.j41(22,"li",21),n.EFF(23," Source Suggestion "),n.k0s(),n.DNE(24,Nn,2,0,"li",22),n.j41(25,"li",23),n.EFF(26," Variant Group "),n.k0s()()(),n.bVm()}if(2&o){const i=d.ngIf,s=n.XpG();n.R7$(),n.Y8G("ngrxLet",s.unreadCount$),n.R7$(4),n.Y8G("ngIf",i.invalidCoi),n.R7$(3),n.Y8G("routerLink",n.eq3(6,Mn,i.id)),n.R7$(2),n.Y8G("ngIf",i.organizations.length>1),n.R7$(),n.Y8G("ngIf",i.isAdmin),n.R7$(13),n.Y8G("ngIf",i.isEditor)}}function Yn(o,d){1&o&&(n.j41(0,"span"),n.EFF(1,"Update your Conflict of Interest Statement"),n.k0s())}function bn(o,d){if(1&o){const i=n.RV6();n.j41(0,"cvc-user-coi-form",62),n.bIt("coiUpdatedEvent",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.coiUpdated())}),n.k0s()}}function Kn(o,d){1&o&&(n.j41(0,"span"),n.EFF(1,"Add New Variant"),n.k0s())}function Xn(o,d){1&o&&n.nrm(0,"cvc-variant-submit-form")}let Qn=(()=>{class o{constructor(i,s,a){this.queryService=i,this.unreadCountGql=s,this.apollo=a,this.cvcCollapsed=!1,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.menuSelection$=new p.B,this.unreadCount$=mn.c.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)),this.addVariantModalVisible$=new gn.t(!1)}ngOnInit(){this.menuSelection$.pipe((0,un.E)(this.viewer$)).subscribe(([i,s])=>{const a={id:`User:${s.id}`,fragment:nn.J1` fragment UserMostRecentOrgId on User { mostRecentOrganizationId } - `,data:{mostRecentOrganizationId:i}};this.apollo.client.writeFragment(a)})}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q),n.rXU(U.pi3),n.rXU(nn.Ic))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-viewer-button"]],inputs:{cvcCollapsed:"cvcCollapsed"},decls:13,vars:13,consts:[["coiModalTitle",""],["coiModalContent",""],["variantModalTitle",""],["variantModalContent",""],["userMenu","nzDropdownMenu"],["addMenu","nzDropdownMenu"],["coiGroupTitle",""],[4,"ngIf"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],[3,"nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["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"],["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"],["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,"click","nzSelected"],[3,"nzSrc","nzSize","nzShape"],[1,"org-name"],["nz-menu-group","","nzTitle","Administration"],["nz-menu-item","","href","/admin"],["href","/admin"],["nz-menu-item","","href","/errors"],["href","/errors"],["nz-menu-item","","href","/jobs"],["href","/jobs"],[3,"coiUpdatedEvent"]],template:function(s,a){if(1&s){const P=n.RV6();n.DNE(0,Wn,27,8,"ng-container",7),n.nI1(1,"ngrxPush"),n.j41(2,"nz-modal",8),n.mxI("nzVisibleChange",function(B){return n.eBV(P),n.DH7(a.coiUpdateModalVisible,B)||(a.coiUpdateModalVisible=B),n.Njj(B)}),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.handleCoiModalCancel())}),n.DNE(3,Yn,2,0,"ng-template",null,0,n.C5r)(5,bn,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(7,"nz-modal",9),n.nI1(8,"ngrxPush"),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.addVariantModalVisible$.next(!1))}),n.DNE(9,Kn,2,0,"ng-template",null,2,n.C5r)(11,Xn,1,0,"ng-template",null,3,n.C5r),n.k0s()}if(2&s){const P=n.sdS(4),E=n.sdS(6),B=n.sdS(10),N=n.sdS(12);n.Y8G("ngIf",n.bMT(1,9,a.viewer$)),n.R7$(2),n.R50("nzVisible",a.coiUpdateModalVisible),n.Y8G("nzContent",E)("nzTitle",P)("nzFooter",null),n.R7$(5),n.Y8G("nzVisible",n.bMT(8,11,a.addVariantModalVisible$))("nzContent",N)("nzTitle",B)("nzFooter",null)}},dependencies:[e.YU,e.Sq,e.bT,Z.Nj,T.jS,T.CU,T.sD,T.WQ,Q.j3,Q.wQ,Q.h4,m.Wk,on.aO,hn.c,zn.p,w.U5,w.Dq,g.Dn,an.dz,sn.F2,Y.Di,rn.PM,Cn.G,fn.j,vn.w,Tn.m,Z.L9],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})}return o})();function Hn(o){return o.toLowerCase().split("_").map(d=>d[0].toUpperCase()+d.substring(1)).join("")}var H=t(1997),Zn=t(3236),wn=t(3226),ln=t(9030),Jn=t(2806),kn=t(5245),qn=t(3386),nt=t(5558),J=t(6354),tt=t(3294),k=t(9417),q=t(2986),et=t(4493),ot=t(3075);function it(o,d){if(1&o&&(n.j41(0,"span",8),n.EFF(1," \u2014 "),n.nrm(2,"span",6),n.k0s()),2&o){const i=n.XpG().$implicit;n.R7$(2),n.FS9("innerHTML",i.result.matchingText,n.npT)}}function at(o,d){if(1&o&&(n.j41(0,"nz-option",4),n.nrm(1,"i",5),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.nrm(4,"span",6),n.DNE(5,it,3,1,"span",7),n.k0s()),2&o){const i=d.$implicit,s=n.XpG();n.Y8G("nzValue",i.result),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,s.converter(i.result.resultType)))("nzType",n.bMT(3,7,i.result.resultType)),n.R7$(3),n.FS9("innerHTML",i.result.name,n.npT),n.R7$(),n.Y8G("ngIf",i.result.matchingText)}}function st(o,d){1&o&&(n.j41(0,"nz-option",9),n.nrm(1,"i",10),n.EFF(2," Loading Data... "),n.k0s())}function rt(o,d){if(1&o&&(n.j41(0,"label",13),n.nrm(1,"i",14),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.k0s()),2&o){const i=d.$implicit,s=n.XpG(2);n.Y8G("nzValue",i)("nzTooltipTitle",i)("ngModel",s.isSelected(i)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,i))("nzType",n.bMT(3,7,i))}}function lt(o,d){if(1&o){const i=n.RV6();n.nrm(0,"hr"),n.j41(1,"nz-checkbox-wrapper",11),n.bIt("nzOnChange",function(a){n.eBV(i);const P=n.XpG();return n.Njj(P.selectedEntitiesChanged(a))}),n.j41(2,"div",12),n.Z7z(3,rt,4,9,"label",13,n.fX1),n.k0s()()}if(2&o){const i=n.XpG();n.R7$(3),n.Dyx(i.searchableEntities)}}let ct=(()=>{class o{set selectedOpt(i){this._selectedOpt=i}get selectedOpt(){return this._selectedOpt}constructor(i,s){this.gql=i,this.router=s,this.selectedEntities=Object.values(U.cO8),this.searchableEntities=Object.keys(U.cO8),this.converter=Hn,this.onSearch$=new p.B,this.onSelect$=new p.B,this.response$=this.onSearch$.pipe((0,kn.i)(1),(0,qn.c)(300,Zn.E,{leading:!1,trailing:!0}),(0,nt.n)(E=>{this.currentSearchTerm=E;let B=this.selectedEntities;return(0,wn.T)(()=>void 0===this.queryRef,(0,ln.v)(()=>a(E,B)),(0,ln.v)(()=>P(E,B)))})),this.isLoading$=this.response$.pipe((0,J.T)(E=>E.loading),(0,K.p)(X.kP),(0,tt.F)()),this.result$=this.response$.pipe((0,J.T)(E=>E.data?.search),(0,K.p)(X.kP)),this.option$=this.result$.pipe((0,J.T)(E=>{const B=[];return E.forEach(N=>{N&&B.push({text:N.name,value:N.id.toString(),result:N})}),B})),this.onSelect$.subscribe(()=>{this.selectedOpt&&this.router.navigateByUrl(this.urlForResult(this.selectedOpt)),this.selectNode.writeValue(void 0)});const a=(E,B)=>(this.queryRef=this.gql.watch({query:E,highlightMatches:!0,types:B}),this.queryRef.valueChanges),P=(E,B)=>(0,Jn.H)(this.queryRef.refetch({query:E,types:B}))}urlForResult(i){let s;switch(i.resultType){case U.cO8.VariantGroup:s="variant-groups";break;case U.cO8.EvidenceItem:s="evidence";break;case U.cO8.MolecularProfile:s="molecular-profiles";break;case U.cO8.Therapy:s="therapies";break;default:s=`${i.resultType.toLowerCase()}s`}return`/${s}/${i.id}/summary`}selectedEntitiesChanged(i){this.selectedEntities=i.map(s=>U.cO8[s]),this.currentSearchTerm&&this.onSearch$.next(this.currentSearchTerm)}isSelected(i){return this.selectedEntities.includes(U.cO8[i])}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(U.kHr),n.rXU(m.Ix))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-quicksearch"]],viewQuery:function(s,a){if(1&s&&n.GBs(H.WI,7),2&s){let P;n.mGM(P=n.lsd())&&(a.selectNode=P.first)}},decls:7,vars:11,consts:[["searchEntities",""],["nzShowSearch","","nzServerSearch","","nzAllowClear","","nzPlaceHolder","Search CIViC",3,"ngModelChange","nzOnSearch","ngModel","nzOptionHeightPx","nzShowArrow","nzDropdownRender","nzDropdownMatchSelectWidth"],["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"],[3,"nzOnChange"],[1,"entity-select"],["nz-checkbox","","nz-tooltip","",3,"nzValue","nzTooltipTitle","ngModel"],["nz-icon","","nzTheme","twotone","nzTool","",3,"nzTwotoneColor","nzType"]],template:function(s,a){if(1&s){const P=n.RV6();n.j41(0,"nz-select",1),n.mxI("ngModelChange",function(B){return n.eBV(P),n.DH7(a.selectedOpt,B)||(a.selectedOpt=B),n.Njj(B)}),n.bIt("ngModelChange",function(B){return n.eBV(P),n.Njj(a.onSelect$.next(B))})("nzOnSearch",function(B){return n.eBV(P),n.Njj(a.onSearch$.next(B))}),n.DNE(1,at,6,9,"nz-option",2),n.nI1(2,"ngrxPush"),n.DNE(3,st,3,0,"nz-option",3),n.nI1(4,"ngrxPush"),n.k0s(),n.DNE(5,lt,5,0,"ng-template",null,0,n.C5r)}if(2&s){const P=n.sdS(6);n.R50("ngModel",a.selectedOpt),n.Y8G("nzOptionHeightPx",28)("nzShowArrow",!1)("nzDropdownRender",P)("nzDropdownMatchSelectWidth",!1),n.R7$(),n.Y8G("ngForOf",n.bMT(2,7,a.option$)),n.R7$(2),n.Y8G("ngIf",n.bMT(4,9,a.isLoading$))}},dependencies:[e.Sq,e.bT,k.BC,k.vS,Y.Di,H.ld,H.WI,g.Dn,q.$g,q.wG,W.LH,Z.L9,et.g,ot.R],styles:[":[_nghost-%COMP%]{display:block}nz-select[_ngcontent-%COMP%]{width:100%}hr[_ngcontent-%COMP%]{border-color:#6666}.entity-select[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]})}return o})();const b=o=>({"is-collapsed":o});function dt(o,d){1&o&&n.nrm(0,"img",65)}function pt(o,d){1&o&&n.nrm(0,"img",66)}function mt(o,d){1&o&&n.nrm(0,"cvc-login-button")}function gt(o,d){if(1&o&&n.nrm(0,"cvc-viewer-button",67),2&o){const i=n.XpG();n.Y8G("cvcCollapsed",i.isCollapsed)}}const 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$}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-layout"]],decls:133,vars:53,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzCollapsedChange","nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger"],["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","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-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-feature"],["routerLink","/features"],["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(s,a){1&s&&(n.j41(0,"nz-layout",0)(1,"nz-sider",1),n.mxI("nzCollapsedChange",function(E){return n.DH7(a.isCollapsed,E)||(a.isCollapsed=E),E}),n.j41(2,"a",2)(3,"div",3),n.DNE(4,dt,1,0,"img",4)(5,pt,1,0,"img",5),n.k0s()(),n.j41(6,"ul",6)(7,"li",7)(8,"ul")(9,"li",8),n.nrm(10,"i",9),n.j41(11,"a",10)(12,"span"),n.EFF(13,"Assertions"),n.k0s()()(),n.j41(14,"li",8),n.nrm(15,"i",11),n.j41(16,"a",12)(17,"span"),n.EFF(18,"Evidence"),n.k0s()()(),n.j41(19,"li",8),n.nrm(20,"i",13),n.j41(21,"a",14)(22,"span"),n.EFF(23,"Molecular Profiles"),n.k0s()()(),n.j41(24,"li",15),n.nrm(25,"i",16),n.j41(26,"a",17)(27,"span"),n.EFF(28,"Features"),n.k0s()()(),n.j41(29,"li",15),n.nrm(30,"i",18),n.j41(31,"a",19)(32,"span"),n.EFF(33,"Variants"),n.k0s()()(),n.j41(34,"li",15),n.nrm(35,"i",20),n.j41(36,"a",21)(37,"span"),n.EFF(38,"Variant Groups"),n.k0s()()()()(),n.j41(39,"li",8),n.nrm(40,"i",22),n.j41(41,"a",23)(42,"span"),n.EFF(43,"Clinical Trials"),n.k0s()()(),n.j41(44,"li",8),n.nrm(45,"i",24),n.j41(46,"a",25)(47,"span"),n.EFF(48,"Diseases"),n.k0s()()(),n.j41(49,"li",8),n.nrm(50,"i",26),n.j41(51,"a",27)(52,"span"),n.EFF(53,"Therapies"),n.k0s()()(),n.j41(54,"li",8),n.nrm(55,"i",28),n.j41(56,"a",29)(57,"span"),n.EFF(58,"Phenotypes"),n.k0s()()(),n.j41(59,"li",15),n.nrm(60,"i",30),n.j41(61,"a",31)(62,"span"),n.EFF(63,"Sources"),n.k0s()()(),n.j41(64,"li",8),n.nrm(65,"i",32),n.j41(66,"a",33)(67,"span"),n.EFF(68,"Variant Types"),n.k0s()()(),n.j41(69,"li",7)(70,"ul")(71,"li",8),n.nrm(72,"i",34),n.j41(73,"a",35)(74,"span"),n.EFF(75,"Activity"),n.k0s()()(),n.j41(76,"li",8),n.nrm(77,"i",36),n.j41(78,"a",37)(79,"span"),n.EFF(80,"Queues"),n.k0s()()()()(),n.j41(81,"li",7)(82,"ul")(83,"li",8),n.nrm(84,"i",38),n.j41(85,"a",39)(86,"span"),n.EFF(87,"Contributors"),n.k0s()()(),n.j41(88,"li",8),n.nrm(89,"i",40),n.j41(90,"a",41)(91,"span"),n.EFF(92,"Organizations"),n.k0s()()()()(),n.j41(93,"li",7)(94,"ul")(95,"li",8),n.nrm(96,"i",42),n.j41(97,"a",43)(98,"span"),n.EFF(99,"Data Releases"),n.k0s()()()()()(),n.j41(100,"div",44),n.nrm(101,"img",45)(102,"img",46),n.k0s()(),n.j41(103,"nz-layout",47)(104,"nz-header",48)(105,"div",49)(106,"div",50)(107,"span",51),n.bIt("click",function(){return a.isCollapsed=!a.isCollapsed}),n.nrm(108,"i",52),n.k0s()(),n.j41(109,"div",53),n.nrm(110,"cvc-quicksearch"),n.k0s(),n.j41(111,"div",54)(112,"ul",55)(113,"li",56)(114,"a",57),n.EFF(115,"Home"),n.k0s()(),n.j41(116,"li",56)(117,"a",58),n.EFF(118),n.k0s()(),n.j41(119,"li",56)(120,"a",59),n.EFF(121,"Help"),n.k0s()(),n.j41(122,"li",56)(123,"a",60),n.EFF(124),n.nrm(125,"i",61),n.k0s()()()(),n.j41(126,"div",62),n.DNE(127,mt,1,0,"cvc-login-button",63),n.nI1(128,"async"),n.DNE(129,gt,1,1,"cvc-viewer-button",64),n.nI1(130,"async"),n.k0s()()(),n.j41(131,"nz-content"),n.nrm(132,"router-outlet"),n.k0s()()()),2&s&&(n.R7$(),n.Y8G("nzWidth",170)("nzCollapsedWidth",80),n.R50("nzCollapsed",a.isCollapsed),n.Y8G("nzTrigger",null),n.R7$(2),n.Y8G("ngClass",n.eq3(43,b,a.isCollapsed)),n.R7$(),n.Y8G("ngIf",!a.isCollapsed),n.R7$(),n.Y8G("ngIf",a.isCollapsed),n.R7$(),n.Y8G("ngClass",n.eq3(45,b,a.isCollapsed))("nzInlineCollapsed",a.isCollapsed),n.R7$(),n.Y8G("nzTitle",a.isCollapsed?"KNOW":"KNOWLEDGEBASE"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Assertions":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Evidence":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Molecular Profiles":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Features":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variants":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Groups":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Clinical Trials":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Diseases":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Therapies":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Phenotypes":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Sources":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Types":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"CURATE":"CURATION"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Activity":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Pending Queues":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"COMM":"COMMUNITY"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Users":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Organizations":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"RES":"RESOURCES"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Data Releases":""),n.R7$(5),n.Y8G("ngClass",n.eq3(47,b,a.isCollapsed)),n.R7$(3),n.Y8G("ngClass",n.eq3(49,b,a.isCollapsed)),n.R7$(),n.Y8G("ngClass",n.eq3(51,b,a.isCollapsed)),n.R7$(4),n.Y8G("nzType",a.isCollapsed?"menu-unfold":"menu-fold"),n.R7$(),n.Y8G("nzFlex",a.isCollapsed?"90px":"150px"),n.R7$(9),n.JRh(a.isCollapsed?"About":"About CIViC"),n.R7$(6),n.SpI(" ",a.isCollapsed?"Docs":"Documentation"," "),n.R7$(3),n.Y8G("ngIf",n.bMT(128,39,a.signedOut$)),n.R7$(2),n.Y8G("ngIf",n.bMT(130,41,a.signedIn$)))},dependencies:[e.YU,e.bT,m.n3,m.Wk,g.Dn,I.Uq,I.e,cn,u,V,_,T.jS,T.CU,T.WQ,W.LH,pn.z,Qn,ct,e.Jj],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-title-content .anticon{margin-right:4px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-title-content a span{display:none}.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})}return o})(),children:[{path:"assertions",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(3236),t.e(4009),t.e(2076),t.e(6618)]).then(t.bind(t,5629)).then(o=>o.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"molecular-profiles",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(5076),t.e(8584)]).then(t.bind(t,7502)).then(o=>o.MolecularProfilesModule),data:{breadcrumb:"Molecular Profiles"}},{path:"clinical-trials",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5892),t.e(1778)]).then(t.bind(t,8799)).then(o=>o.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(4514),t.e(3236),t.e(8696)]).then(t.bind(t,9754)).then(o=>o.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"therapies",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(8191)]).then(t.bind(t,3178)).then(o=>o.TherapiesModule),data:{breadcrumb:"Therapies"}},{path:"evidence",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5627)]).then(t.bind(t,4414)).then(o=>o.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",redirectTo:"features",data:{breadcrumb:"Features"}},{path:"features",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(5528)]).then(t.bind(t,5528)).then(o=>o.FeaturesModule),data:{breadcrumb:"Features"}},{path:"organizations",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(3236),t.e(326),t.e(1136),t.e(8733),t.e(13),t.e(2076),t.e(1781)]).then(t.bind(t,1781)).then(o=>o.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(863)]).then(t.bind(t,8366)).then(o=>o.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(262),t.e(1136),t.e(5892),t.e(3428)]).then(t.bind(t,1162)).then(o=>o.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(3236),t.e(1136),t.e(4021)]).then(t.bind(t,2670)).then(o=>o.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(3236),t.e(326),t.e(1136),t.e(8733),t.e(13),t.e(4391)]).then(t.bind(t,4391)).then(o=>o.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(9034)]).then(t.bind(t,9034)).then(o=>o.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(2971)]).then(t.bind(t,3889)).then(o=>o.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(9452)]).then(t.bind(t,430)).then(o=>o.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([t.e(3967),t.e(1110),t.e(6508),t.e(8733),t.e(5439)]).then(t.bind(t,3824)).then(o=>o.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([t.e(5231),t.e(7732)]).then(t.bind(t,7732)).then(o=>o.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>t.e(5514).then(t.bind(t,5514)).then(o=>o.PagesModule),data:{breadcrumb:"Pages"}},{path:"forms",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5615),t.e(4009),t.e(8997),t.e(2076),t.e(6148)]).then(t.bind(t,2317)).then(o=>o.TestPagesModule),data:{breadcrumb:"Forms Dev"}}]}];let ht=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[m.iI.forChild(ut),m.iI]})}return o})();var zt=t(776),Ct=t(1011),ft=t(8927),vt=t(8928),Tt=t(4917);let Mt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,k.YN,m.iI,Tt.i,Y.kT,H.DH,Ct.j,ft.PQ,g.Y3,vt.jl,q.IJ,W.Qt]})}return o})();var Et=t(400),yt=t(3357),Ot=t(1232),It=t(7380),Pt=t(5285);let Dt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,Q.Cu,m.iI,on.Zw,w.pc,g.Y3,an.W2,W.Qt,sn.U6,Y.kT,rn.Yb,yt.P,Ot.N,Pt.T,It.s]})}return o})(),St=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,ht,g.Y3,I.f3,dn,T.GP,W.Qt,Y.kT,zt.s,Et.a,Dt,Mt]})}return o})()}}]); \ No newline at end of file + `,data:{mostRecentOrganizationId:i}};this.apollo.client.writeFragment(a)})}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q),n.rXU(U.pi3),n.rXU(nn.Ic))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-viewer-button"]],inputs:{cvcCollapsed:"cvcCollapsed"},decls:13,vars:13,consts:[["coiModalTitle",""],["coiModalContent",""],["variantModalTitle",""],["variantModalContent",""],["userMenu","nzDropdownMenu"],["addMenu","nzDropdownMenu"],["coiGroupTitle",""],[4,"ngIf"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],[3,"nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["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"],["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"],["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,"click","nzSelected"],[3,"nzSrc","nzSize","nzShape"],[1,"org-name"],["nz-menu-group","","nzTitle","Administration"],["nz-menu-item","","href","/admin"],["href","/admin"],["nz-menu-item","","href","/errors"],["href","/errors"],["nz-menu-item","","href","/jobs"],["href","/jobs"],[3,"coiUpdatedEvent"]],template:function(s,a){if(1&s){const P=n.RV6();n.DNE(0,Wn,27,8,"ng-container",7),n.nI1(1,"ngrxPush"),n.j41(2,"nz-modal",8),n.mxI("nzVisibleChange",function(B){return n.eBV(P),n.DH7(a.coiUpdateModalVisible,B)||(a.coiUpdateModalVisible=B),n.Njj(B)}),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.handleCoiModalCancel())}),n.DNE(3,Yn,2,0,"ng-template",null,0,n.C5r)(5,bn,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(7,"nz-modal",9),n.nI1(8,"ngrxPush"),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.addVariantModalVisible$.next(!1))}),n.DNE(9,Kn,2,0,"ng-template",null,2,n.C5r)(11,Xn,1,0,"ng-template",null,3,n.C5r),n.k0s()}if(2&s){const P=n.sdS(4),E=n.sdS(6),B=n.sdS(10),N=n.sdS(12);n.Y8G("ngIf",n.bMT(1,9,a.viewer$)),n.R7$(2),n.R50("nzVisible",a.coiUpdateModalVisible),n.Y8G("nzContent",E)("nzTitle",P)("nzFooter",null),n.R7$(5),n.Y8G("nzVisible",n.bMT(8,11,a.addVariantModalVisible$))("nzContent",N)("nzTitle",B)("nzFooter",null)}},dependencies:[e.YU,e.Sq,e.bT,Z.Nj,T.jS,T.CU,T.sD,T.WQ,Q.j3,Q.wQ,Q.h4,m.Wk,on.aO,hn.c,zn.p,w.U5,w.Dq,g.Dn,an.dz,sn.F2,Y.Di,rn.PM,Cn.G,fn.j,vn.w,Tn.m,Z.L9],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})}return o})();function Hn(o){return o.toLowerCase().split("_").map(d=>d[0].toUpperCase()+d.substring(1)).join("")}var H=t(1997),Zn=t(3236),wn=t(3226),ln=t(9030),Jn=t(2806),kn=t(5245),qn=t(3386),nt=t(5558),J=t(6354),tt=t(3294),k=t(9417),q=t(2986),et=t(4493),ot=t(3075);function it(o,d){if(1&o&&(n.j41(0,"span",8),n.EFF(1," \u2014 "),n.nrm(2,"span",6),n.k0s()),2&o){const i=n.XpG().$implicit;n.R7$(2),n.FS9("innerHTML",i.result.matchingText,n.npT)}}function at(o,d){if(1&o&&(n.j41(0,"nz-option",4),n.nrm(1,"i",5),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.nrm(4,"span",6),n.DNE(5,it,3,1,"span",7),n.k0s()),2&o){const i=d.$implicit,s=n.XpG();n.Y8G("nzValue",i.result),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,s.converter(i.result.resultType)))("nzType",n.bMT(3,7,i.result.resultType)),n.R7$(3),n.FS9("innerHTML",i.result.name,n.npT),n.R7$(),n.Y8G("ngIf",i.result.matchingText)}}function st(o,d){1&o&&(n.j41(0,"nz-option",9),n.nrm(1,"i",10),n.EFF(2," Loading Data... "),n.k0s())}function rt(o,d){if(1&o&&(n.j41(0,"label",13),n.nrm(1,"i",14),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.k0s()),2&o){const i=d.$implicit,s=n.XpG(2);n.Y8G("nzValue",i)("nzTooltipTitle",i)("ngModel",s.isSelected(i)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,i))("nzType",n.bMT(3,7,i))}}function lt(o,d){if(1&o){const i=n.RV6();n.nrm(0,"hr"),n.j41(1,"nz-checkbox-wrapper",11),n.bIt("nzOnChange",function(a){n.eBV(i);const P=n.XpG();return n.Njj(P.selectedEntitiesChanged(a))}),n.j41(2,"div",12),n.Z7z(3,rt,4,9,"label",13,n.fX1),n.k0s()()}if(2&o){const i=n.XpG();n.R7$(3),n.Dyx(i.searchableEntities)}}let ct=(()=>{class o{set selectedOpt(i){this._selectedOpt=i}get selectedOpt(){return this._selectedOpt}constructor(i,s){this.gql=i,this.router=s,this.selectedEntities=Object.values(U.cO8),this.searchableEntities=Object.keys(U.cO8),this.converter=Hn,this.onSearch$=new p.B,this.onSelect$=new p.B,this.response$=this.onSearch$.pipe((0,kn.i)(1),(0,qn.c)(300,Zn.E,{leading:!1,trailing:!0}),(0,nt.n)(E=>{this.currentSearchTerm=E;let B=this.selectedEntities;return(0,wn.T)(()=>void 0===this.queryRef,(0,ln.v)(()=>a(E,B)),(0,ln.v)(()=>P(E,B)))})),this.isLoading$=this.response$.pipe((0,J.T)(E=>E.loading),(0,K.p)(X.kP),(0,tt.F)()),this.result$=this.response$.pipe((0,J.T)(E=>E.data?.search),(0,K.p)(X.kP)),this.option$=this.result$.pipe((0,J.T)(E=>{const B=[];return E.forEach(N=>{N&&B.push({text:N.name,value:N.id.toString(),result:N})}),B})),this.onSelect$.subscribe(()=>{this.selectedOpt&&this.router.navigateByUrl(this.urlForResult(this.selectedOpt)),this.selectNode.writeValue(void 0)});const a=(E,B)=>(this.queryRef=this.gql.watch({query:E,highlightMatches:!0,types:B}),this.queryRef.valueChanges),P=(E,B)=>(0,Jn.H)(this.queryRef.refetch({query:E,types:B}))}urlForResult(i){let s;switch(i.resultType){case U.cO8.VariantGroup:s="variant-groups";break;case U.cO8.EvidenceItem:s="evidence";break;case U.cO8.MolecularProfile:s="molecular-profiles";break;case U.cO8.Therapy:s="therapies";break;default:s=`${i.resultType.toLowerCase()}s`}return`/${s}/${i.id}/summary`}selectedEntitiesChanged(i){this.selectedEntities=i.map(s=>U.cO8[s]),this.currentSearchTerm&&this.onSearch$.next(this.currentSearchTerm)}isSelected(i){return this.selectedEntities.includes(U.cO8[i])}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(U.kHr),n.rXU(m.Ix))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-quicksearch"]],viewQuery:function(s,a){if(1&s&&n.GBs(H.WI,7),2&s){let P;n.mGM(P=n.lsd())&&(a.selectNode=P.first)}},decls:7,vars:11,consts:[["searchEntities",""],["nzShowSearch","","nzServerSearch","","nzAllowClear","","nzPlaceHolder","Search CIViC",3,"ngModelChange","nzOnSearch","ngModel","nzOptionHeightPx","nzShowArrow","nzDropdownRender","nzDropdownMatchSelectWidth"],["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"],[3,"nzOnChange"],[1,"entity-select"],["nz-checkbox","","nz-tooltip","",3,"nzValue","nzTooltipTitle","ngModel"],["nz-icon","","nzTheme","twotone","nzTool","",3,"nzTwotoneColor","nzType"]],template:function(s,a){if(1&s){const P=n.RV6();n.j41(0,"nz-select",1),n.mxI("ngModelChange",function(B){return n.eBV(P),n.DH7(a.selectedOpt,B)||(a.selectedOpt=B),n.Njj(B)}),n.bIt("ngModelChange",function(B){return n.eBV(P),n.Njj(a.onSelect$.next(B))})("nzOnSearch",function(B){return n.eBV(P),n.Njj(a.onSearch$.next(B))}),n.DNE(1,at,6,9,"nz-option",2),n.nI1(2,"ngrxPush"),n.DNE(3,st,3,0,"nz-option",3),n.nI1(4,"ngrxPush"),n.k0s(),n.DNE(5,lt,5,0,"ng-template",null,0,n.C5r)}if(2&s){const P=n.sdS(6);n.R50("ngModel",a.selectedOpt),n.Y8G("nzOptionHeightPx",28)("nzShowArrow",!1)("nzDropdownRender",P)("nzDropdownMatchSelectWidth",!1),n.R7$(),n.Y8G("ngForOf",n.bMT(2,7,a.option$)),n.R7$(2),n.Y8G("ngIf",n.bMT(4,9,a.isLoading$))}},dependencies:[e.Sq,e.bT,k.BC,k.vS,Y.Di,H.ld,H.WI,g.Dn,q.$g,q.wG,W.LH,Z.L9,et.g,ot.R],styles:[":[_nghost-%COMP%]{display:block}nz-select[_ngcontent-%COMP%]{width:100%}hr[_ngcontent-%COMP%]{border-color:#6666}.entity-select[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]})}return o})();const b=o=>({"is-collapsed":o});function dt(o,d){1&o&&n.nrm(0,"img",65)}function pt(o,d){1&o&&n.nrm(0,"img",66)}function mt(o,d){1&o&&n.nrm(0,"cvc-login-button")}function gt(o,d){if(1&o&&n.nrm(0,"cvc-viewer-button",67),2&o){const i=n.XpG();n.Y8G("cvcCollapsed",i.isCollapsed)}}const 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$}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-layout"]],decls:133,vars:53,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzCollapsedChange","nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger"],["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","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-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-feature"],["routerLink","/features"],["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(s,a){1&s&&(n.j41(0,"nz-layout",0)(1,"nz-sider",1),n.mxI("nzCollapsedChange",function(E){return n.DH7(a.isCollapsed,E)||(a.isCollapsed=E),E}),n.j41(2,"a",2)(3,"div",3),n.DNE(4,dt,1,0,"img",4)(5,pt,1,0,"img",5),n.k0s()(),n.j41(6,"ul",6)(7,"li",7)(8,"ul")(9,"li",8),n.nrm(10,"i",9),n.j41(11,"a",10)(12,"span"),n.EFF(13,"Assertions"),n.k0s()()(),n.j41(14,"li",8),n.nrm(15,"i",11),n.j41(16,"a",12)(17,"span"),n.EFF(18,"Evidence"),n.k0s()()(),n.j41(19,"li",8),n.nrm(20,"i",13),n.j41(21,"a",14)(22,"span"),n.EFF(23,"Molecular Profiles"),n.k0s()()(),n.j41(24,"li",15),n.nrm(25,"i",16),n.j41(26,"a",17)(27,"span"),n.EFF(28,"Features"),n.k0s()()(),n.j41(29,"li",15),n.nrm(30,"i",18),n.j41(31,"a",19)(32,"span"),n.EFF(33,"Variants"),n.k0s()()(),n.j41(34,"li",15),n.nrm(35,"i",20),n.j41(36,"a",21)(37,"span"),n.EFF(38,"Variant Groups"),n.k0s()()()()(),n.j41(39,"li",8),n.nrm(40,"i",22),n.j41(41,"a",23)(42,"span"),n.EFF(43,"Clinical Trials"),n.k0s()()(),n.j41(44,"li",8),n.nrm(45,"i",24),n.j41(46,"a",25)(47,"span"),n.EFF(48,"Diseases"),n.k0s()()(),n.j41(49,"li",8),n.nrm(50,"i",26),n.j41(51,"a",27)(52,"span"),n.EFF(53,"Therapies"),n.k0s()()(),n.j41(54,"li",8),n.nrm(55,"i",28),n.j41(56,"a",29)(57,"span"),n.EFF(58,"Phenotypes"),n.k0s()()(),n.j41(59,"li",15),n.nrm(60,"i",30),n.j41(61,"a",31)(62,"span"),n.EFF(63,"Sources"),n.k0s()()(),n.j41(64,"li",8),n.nrm(65,"i",32),n.j41(66,"a",33)(67,"span"),n.EFF(68,"Variant Types"),n.k0s()()(),n.j41(69,"li",7)(70,"ul")(71,"li",8),n.nrm(72,"i",34),n.j41(73,"a",35)(74,"span"),n.EFF(75,"Activity"),n.k0s()()(),n.j41(76,"li",8),n.nrm(77,"i",36),n.j41(78,"a",37)(79,"span"),n.EFF(80,"Queues"),n.k0s()()()()(),n.j41(81,"li",7)(82,"ul")(83,"li",8),n.nrm(84,"i",38),n.j41(85,"a",39)(86,"span"),n.EFF(87,"Contributors"),n.k0s()()(),n.j41(88,"li",8),n.nrm(89,"i",40),n.j41(90,"a",41)(91,"span"),n.EFF(92,"Organizations"),n.k0s()()()()(),n.j41(93,"li",7)(94,"ul")(95,"li",8),n.nrm(96,"i",42),n.j41(97,"a",43)(98,"span"),n.EFF(99,"Data Releases"),n.k0s()()()()()(),n.j41(100,"div",44),n.nrm(101,"img",45)(102,"img",46),n.k0s()(),n.j41(103,"nz-layout",47)(104,"nz-header",48)(105,"div",49)(106,"div",50)(107,"span",51),n.bIt("click",function(){return a.isCollapsed=!a.isCollapsed}),n.nrm(108,"i",52),n.k0s()(),n.j41(109,"div",53),n.nrm(110,"cvc-quicksearch"),n.k0s(),n.j41(111,"div",54)(112,"ul",55)(113,"li",56)(114,"a",57),n.EFF(115,"Home"),n.k0s()(),n.j41(116,"li",56)(117,"a",58),n.EFF(118),n.k0s()(),n.j41(119,"li",56)(120,"a",59),n.EFF(121,"Help"),n.k0s()(),n.j41(122,"li",56)(123,"a",60),n.EFF(124),n.nrm(125,"i",61),n.k0s()()()(),n.j41(126,"div",62),n.DNE(127,mt,1,0,"cvc-login-button",63),n.nI1(128,"async"),n.DNE(129,gt,1,1,"cvc-viewer-button",64),n.nI1(130,"async"),n.k0s()()(),n.j41(131,"nz-content"),n.nrm(132,"router-outlet"),n.k0s()()()),2&s&&(n.R7$(),n.Y8G("nzWidth",170)("nzCollapsedWidth",80),n.R50("nzCollapsed",a.isCollapsed),n.Y8G("nzTrigger",null),n.R7$(2),n.Y8G("ngClass",n.eq3(43,b,a.isCollapsed)),n.R7$(),n.Y8G("ngIf",!a.isCollapsed),n.R7$(),n.Y8G("ngIf",a.isCollapsed),n.R7$(),n.Y8G("ngClass",n.eq3(45,b,a.isCollapsed))("nzInlineCollapsed",a.isCollapsed),n.R7$(),n.Y8G("nzTitle",a.isCollapsed?"KNOW":"KNOWLEDGEBASE"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Assertions":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Evidence":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Molecular Profiles":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Features":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variants":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Groups":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Clinical Trials":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Diseases":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Therapies":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Phenotypes":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Sources":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Types":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"CURATE":"CURATION"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Activity":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Pending Queues":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"COMM":"COMMUNITY"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Users":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Organizations":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"RES":"RESOURCES"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Data Releases":""),n.R7$(5),n.Y8G("ngClass",n.eq3(47,b,a.isCollapsed)),n.R7$(3),n.Y8G("ngClass",n.eq3(49,b,a.isCollapsed)),n.R7$(),n.Y8G("ngClass",n.eq3(51,b,a.isCollapsed)),n.R7$(4),n.Y8G("nzType",a.isCollapsed?"menu-unfold":"menu-fold"),n.R7$(),n.Y8G("nzFlex",a.isCollapsed?"90px":"150px"),n.R7$(9),n.JRh(a.isCollapsed?"About":"About CIViC"),n.R7$(6),n.SpI(" ",a.isCollapsed?"Docs":"Documentation"," "),n.R7$(3),n.Y8G("ngIf",n.bMT(128,39,a.signedOut$)),n.R7$(2),n.Y8G("ngIf",n.bMT(130,41,a.signedIn$)))},dependencies:[e.YU,e.bT,m.n3,m.Wk,g.Dn,I.Uq,I.e,cn,u,V,_,T.jS,T.CU,T.WQ,W.LH,pn.z,Qn,ct,e.Jj],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-title-content .anticon{margin-right:4px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-title-content a span{display:none}.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})}return o})(),children:[{path:"assertions",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(3236),t.e(4009),t.e(2076),t.e(6618)]).then(t.bind(t,5629)).then(o=>o.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"molecular-profiles",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(5076),t.e(8584)]).then(t.bind(t,7502)).then(o=>o.MolecularProfilesModule),data:{breadcrumb:"Molecular Profiles"}},{path:"clinical-trials",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5892),t.e(1778)]).then(t.bind(t,8799)).then(o=>o.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(4514),t.e(3236),t.e(8696)]).then(t.bind(t,9754)).then(o=>o.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"therapies",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(8191)]).then(t.bind(t,3178)).then(o=>o.TherapiesModule),data:{breadcrumb:"Therapies"}},{path:"evidence",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5627)]).then(t.bind(t,4414)).then(o=>o.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",redirectTo:"features",data:{breadcrumb:"Features"}},{path:"features",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(5528)]).then(t.bind(t,5528)).then(o=>o.FeaturesModule),data:{breadcrumb:"Features"}},{path:"organizations",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(3236),t.e(326),t.e(1136),t.e(8733),t.e(2553),t.e(2076),t.e(1781)]).then(t.bind(t,1781)).then(o=>o.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(863)]).then(t.bind(t,8366)).then(o=>o.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(262),t.e(1136),t.e(5892),t.e(3428)]).then(t.bind(t,1162)).then(o=>o.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(3236),t.e(1136),t.e(4021)]).then(t.bind(t,2670)).then(o=>o.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(3236),t.e(326),t.e(1136),t.e(8733),t.e(2553),t.e(4391)]).then(t.bind(t,4391)).then(o=>o.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(9034)]).then(t.bind(t,9034)).then(o=>o.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(2971)]).then(t.bind(t,3889)).then(o=>o.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(9452)]).then(t.bind(t,430)).then(o=>o.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([t.e(3967),t.e(1110),t.e(6508),t.e(8733),t.e(5439)]).then(t.bind(t,3824)).then(o=>o.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([t.e(5231),t.e(7732)]).then(t.bind(t,7732)).then(o=>o.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>t.e(5514).then(t.bind(t,5514)).then(o=>o.PagesModule),data:{breadcrumb:"Pages"}},{path:"forms",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5615),t.e(4009),t.e(2076),t.e(6148)]).then(t.bind(t,2317)).then(o=>o.TestPagesModule),data:{breadcrumb:"Forms Dev"}}]}];let ht=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[m.iI.forChild(ut),m.iI]})}return o})();var zt=t(776),Ct=t(1011),ft=t(8927),vt=t(8928),Tt=t(4917);let Mt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,k.YN,m.iI,Tt.i,Y.kT,H.DH,Ct.j,ft.PQ,g.Y3,vt.jl,q.IJ,W.Qt]})}return o})();var Et=t(400),yt=t(3357),Ot=t(1232),It=t(7380),Pt=t(5285);let Dt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,Q.Cu,m.iI,on.Zw,w.pc,g.Y3,an.W2,W.Qt,sn.U6,Y.kT,rn.Yb,yt.P,Ot.N,Pt.T,It.s]})}return o})(),St=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,ht,g.Y3,I.f3,dn,T.GP,W.Qt,Y.kT,zt.s,Et.a,Dt,Mt]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/424.acb6891de8df93dd.js b/server/public/424.acb6891de8df93dd.js new file mode 100644 index 000000000..4abca32d1 --- /dev/null +++ b/server/public/424.acb6891de8df93dd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[424],{7480:(X,y,i)=>{function d(m,M){const g=(p,c)=>{let a;for(let l of p)if(l.fieldGroup)a=g(l.fieldGroup,c);else if(l.key===c){a=l;break}return a},F=(p,c)=>{for(let a of Object.keys(c))if(c[a]instanceof Object&&!Array.isArray(c[a]))F(p,c[a]);else{const l=g(p,a);l&&(l.defaultValue=c[a])}return p};return F(m,M)}i.d(y,{A:()=>d})},424:(X,y,i)=>{i.r(y),i.d(y,{FeaturesReviseModule:()=>Re});var d=i(177),m=i(1188),M=i(3688),g=i(4124),F=i(4917),p=i(7529),c=i(5103),a=i(3062),l=i(9172),D=i(6354),h=i(4608),e=i(3953),v=i(9145),U=i(1305),L=i(2261),V=i(9765),Y=i(1774),A=i(3075);function B(n,r){1&n&&(e.j41(0,"div"),e.nrm(1,"router-outlet"),e.k0s())}function k(n,r){1&n&&(e.j41(0,"nz-row",8)(1,"div",9),e.nrm(2,"cvc-login-prompt"),e.k0s()())}function Q(n,r){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",2),e.j41(2,"nz-page-header",3)(3,"nz-page-header-title",4),e.EFF(4," REVISE "),e.nrm(5,"i",5),e.nI1(6,"entityColor"),e.EFF(7),e.k0s(),e.j41(8,"nz-page-header-subtitle"),e.EFF(9),e.k0s(),e.j41(10,"nz-page-header-content")(11,"div",6),e.DNE(12,B,2,0,"div",7),e.nI1(13,"ngrxPush"),e.DNE(14,k,3,0,"ng-template",null,0,e.C5r),e.k0s()()(),e.bVm()),2&n){const t=r.ngIf,s=e.sdS(15),o=e.XpG();e.R7$(),e.Y8G("displayName",t.name),e.R7$(4),e.Y8G("nzTwotoneColor",e.bMT(6,6,"Feature")),e.R7$(2),e.SpI(" ",t.name," "),e.R7$(2),e.SpI(" ",t.fullName," "),e.R7$(3),e.Y8G("ngIf",e.bMT(13,8,o.isSignedIn$))("ngIfElse",s)}}let J=(()=>{class n{constructor(t,s,o){this.gql=t,this.route=s,this.viewerService=o,this.routeSub=this.route.params.subscribe(f=>{let N=this.gql.watch({featureId:+f.featureId}).valueChanges;this.loading$=N.pipe((0,h.E)("loading"),(0,l.Z)(!0)),this.feature$=N.pipe((0,h.E)("data","feature")),this.commentsTotal$=this.feature$.pipe((0,h.E)("comments","totalCount")),this.flagsTotal$=this.feature$.pipe((0,h.E)("flags","totalCount")),this.revisionsTotal$=this.feature$.pipe((0,h.E)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,D.T)(t=>t.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)(e.rXU(v.gUZ),e.rXU(m.nX),e.rXU(U.q))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["features-revise"]],decls:2,vars:3,consts:[["notSignedIn",""],[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(s,o){1&s&&(e.DNE(0,Q,16,10,"ng-container",1),e.nI1(1,"async")),2&s&&e.Y8G("ngIf",e.bMT(1,1,o.feature$))},dependencies:[d.bT,m.n3,a.WB,a.k9,a.CO,a.zR,c.Dn,p.Uq,p.e,L.h,V.n,d.Jj,Y.L9,A.R],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}"]})}return n})();var Z=i(7685),W=i(1912),H=i(5703),K=i(432),P=i(1635),u=i(9417),b=i(9894),G=i(1226),C=i(5741),S=i(7480);const re=(0,S.A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Factor"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"name",type:"base-input",props:{placeholder:"Enter a name for this Factor",description:"Enter the name of the Factor",label:"Name",required:!0}},{key:"fullName",type:"base-input",props:{placeholder:"Enter a full name for this Factor",description:"Enter a full or long-form name of the Factor if applicable",label:"Full Name",required:!1}},{key:"ncitId",type:"base-input",props:{placeholder:"NCI Thesaurus Code",description:"Enter the NCI Thesaurus Code for this Factor",label:"NCI Thesaurus Code",required:!1}},{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Factor",placeholder:"Enter Alias and hit return"}},{key:"description",type:"base-textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Factor.",placeholder:"Enter a Factor Summary",label:"Summary",required:!1,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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 Factor Revisions",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0},comment:void 0,organizationId:void 0});var I=i(8927),O=i(513),T=i(8168),E=i(5316),w=i(4222),$=i(8524),j=i(8721);const se=()=>({});function ie(n,r){if(1&n&&(e.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),e.j41(1,"a",4),e.EFF(2,"here."),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.FS9("href",t.url,e.B4B)}}function oe(n,r){if(1&n){const t=e.RV6();e.j41(0,"form",5),e.bIt("ngSubmit",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onSubmit(o.model))}),e.j41(1,"formly-form",6),e.bIt("modelChange",function(o){e.eBV(t);const f=e.XpG();return e.Njj(f.model=o)}),e.k0s()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.form),e.R7$(),e.Y8G("form",t.form)("fields",t.fields)("model",t.model)("options",e.lJ4(5,se))}}function ae(n,r){1&n&&e.EFF(0," Loading Factor... ")}let x=class R{constructor(r,t,s,o){this.revisableFieldsGQL=r,this.submitRevisionsGQL=t,this.networkErrorService=s,this.cdr=o,this.form=new u.J3({}),this.fields=re,this.reviseFactorMutator=new G.E(s)}ngOnInit(){this.url=`/features/${this.featureId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({featureId:this.featureId}).pipe((0,b.s)(this)).subscribe({next:({data:{feature:r}})=>{if(r){let t=function q(n){if("Factor"===n.featureInstance.__typename)return{description:n.description,name:n.name,fullName:n.fullName,sourceIds:n.sources.map(r=>r.id),aliases:n.featureAliases,ncitId:n.featureInstance.ncitId}}(r);t&&(this.model={id:r.id,fields:t},this.cdr.detectChanges())}},error:r=>{console.error("Error retrieving Factor."),console.error(r)},complete:()=>{}})}onSubmit(r){if(!this.featureId)return;let t=function ee(n,r){const t=r.fields;if(r.comment&&t.name)return{id:n,fields:{description:C.q2(t.description),fullName:C.q2(t.fullName),name:t.name,sourceIds:t.sourceIds||[],aliases:t.aliases||[],ncitId:C.q2(t.ncitId)},organizationId:r.organizationId,comment:r.comment}}(this.featureId,r);t&&(this.mutationState=this.reviseFactorMutator.mutate(this.submitRevisionsGQL,{input:t}))}static#e=this.\u0275fac=function(t){return new(t||R)(e.rXU(v.aZy),e.rXU(v.lEz),e.rXU(w.N),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:R,selectors:[["cvc-factor-revise-form"]],inputs:{featureId:"featureId"},standalone:!0,features:[e.aNF],decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Feature",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(t,s){if(1&t&&(e.j41(0,"cvc-form-submission-status-display",2),e.DNE(1,ie,3,1,"ng-template",null,0,e.C5r)(3,oe,2,6,"form",3)(4,ae,1,0,"ng-template",null,1,e.C5r),e.k0s()),2&t){const o=e.sdS(2),f=e.sdS(5);e.Y8G("redirectUrl",s.url)("mutationState",s.mutationState)("successMessage",o),e.R7$(3),e.Y8G("ngIf",s.model)("ngIfElse",f)}},dependencies:[d.MD,d.bT,I.PQ,I.CA,O.Zw,T.m,u.qT,u.cb,u.j4,$.aF,E.P,j.G],encapsulation:2,changeDetection:0})};x=(0,P.Cg)([(0,b.d)()],x);const le=(0,S.A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Fusion"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Fusion",placeholder:"Enter Alias and hit return"}},{key:"description",type:"base-textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Fusion.",placeholder:"Enter a Fusion Summary",label:"Summary",required:!1,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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 Fusion Revisions",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0},comment:void 0,organizationId:void 0}),ue=()=>({});function me(n,r){if(1&n&&(e.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),e.j41(1,"a",4),e.EFF(2,"here."),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.FS9("href",t.url,e.B4B)}}function ge(n,r){if(1&n){const t=e.RV6();e.j41(0,"form",5),e.bIt("ngSubmit",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onSubmit(o.model))}),e.j41(1,"formly-form",6),e.bIt("modelChange",function(o){e.eBV(t);const f=e.XpG();return e.Njj(f.model=o)}),e.k0s()()}if(2&n){const t=e.XpG();e.Y8G("formGroup",t.form),e.R7$(),e.Y8G("form",t.form)("fields",t.fields)("model",t.model)("options",e.lJ4(5,ue))}}function he(n,r){1&n&&e.EFF(0," Loading Factor... ")}let z=class _{constructor(r,t,s,o){this.revisableFieldsGQL=r,this.submitRevisionsGQL=t,this.networkErrorService=s,this.cdr=o,this.form=new u.J3({}),this.fields=le,this.reviseFusionMutator=new G.E(s)}ngOnInit(){this.url=`/features/${this.featureId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({featureId:this.featureId}).pipe((0,b.s)(this)).subscribe({next:({data:{feature:r}})=>{if(r){let t=function de(n){if("Fusion"===n.featureInstance.__typename)return{description:n.description,sourceIds:n.sources.map(r=>r.id),aliases:n.featureAliases}}(r);t&&(this.model={id:r.id,fields:t},this.cdr.detectChanges())}},error:r=>{console.error("Error retrieving Fusion."),console.error(r)},complete:()=>{}})}onSubmit(r){if(!this.featureId)return;let t=function ce(n,r){const t=r.fields;if(r.comment)return{id:n,fields:{description:C.q2(t.description),sourceIds:t.sourceIds||[],aliases:t.aliases||[]},organizationId:r.organizationId,comment:r.comment}}(this.featureId,r);t&&(this.mutationState=this.reviseFusionMutator.mutate(this.submitRevisionsGQL,{input:t}))}static#e=this.\u0275fac=function(t){return new(t||_)(e.rXU(v.dYH),e.rXU(v.a4s),e.rXU(w.N),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:_,selectors:[["cvc-fusion-revise-form"]],inputs:{featureId:"featureId"},standalone:!0,features:[e.aNF],decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Feature",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(t,s){if(1&t&&(e.j41(0,"cvc-form-submission-status-display",2),e.DNE(1,me,3,1,"ng-template",null,0,e.C5r)(3,ge,2,6,"form",3)(4,he,1,0,"ng-template",null,1,e.C5r),e.k0s()),2&t){const o=e.sdS(2),f=e.sdS(5);e.Y8G("redirectUrl",s.url)("mutationState",s.mutationState)("successMessage",o),e.R7$(3),e.Y8G("ngIf",s.model)("ngIfElse",f)}},dependencies:[d.MD,d.bT,I.PQ,I.CA,O.Zw,T.m,u.qT,u.cb,u.j4,$.aF,E.P,j.G],encapsulation:2,changeDetection:0})};z=(0,P.Cg)([(0,b.d)()],z);let ve=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[d.MD,H.Ti,p.f3,Z.pc,W.i3,a.ZJ,K.Q,g.C,x,z]})}return n})();var ye=i(958);function Fe(n,r){if(1&n&&(e.j41(0,"span"),e.nrm(1,"cvc-gene-revise-form",2),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("featureId",t.featureId)}}function be(n,r){if(1&n&&e.nrm(0,"cvc-factor-revise-form",2),2&n){const t=e.XpG(2);e.Y8G("featureId",t.featureId)}}function Ce(n,r){if(1&n&&e.nrm(0,"cvc-fusion-revise-form",2),2&n){const t=e.XpG(2);e.Y8G("featureId",t.featureId)}}function Ie(n,r){if(1&n&&(e.qex(0),e.DNE(1,Fe,2,1,"span")(2,be,1,1,"cvc-factor-revise-form",2)(3,Ce,1,1,"cvc-fusion-revise-form",2),e.bVm()),2&n){let t;const s=e.XpG();e.R7$(),e.vxM("Gene"===(t=s.featureType)?1:"Factor"===t?2:"Fusion"===t?3:-1)}}function xe(n,r){1&n&&e.EFF(0,"Loading Feature...")}const ze=[{path:"",component:J,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class n{constructor(t){this.route=t,this.routeParams$=this.route.params.subscribe(s=>{this.featureId=+s.featureId}),this.queryParams$=this.route.queryParamMap.subscribe(s=>{s.has("featureType")&&(this.featureType=s.get("featureType"))})}ngOnDestroy(){this.routeParams$.unsubscribe(),this.queryParams$.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)(e.rXU(m.nX))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-features-suggest"]],decls:3,vars:2,consts:[["loadingFeature",""],[4,"ngIf","ngIfElse"],[3,"featureId"]],template:function(s,o){if(1&s&&e.DNE(0,Ie,4,1,"ng-container",1)(1,xe,1,0,"ng-template",null,0,e.C5r),2&s){const f=e.sdS(2);e.Y8G("ngIf",o.featureId&&o.featureType)("ngIfElse",f)}},dependencies:[d.bT,ye.m,x,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}"]})}return n})(),data:{breadcrumb:"Suggest Revision"}}]}];let Me=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[m.iI.forChild(ze),ve]})}return n})(),Re=(()=>{class n{static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[d.MD,m.iI,Me,a.ZJ,c.Y3,p.f3,M.A,g.C,F.i]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/4334.357a0ca21f42d9e5.js b/server/public/4334.357a0ca21f42d9e5.js new file mode 100644 index 000000000..08fe7ef29 --- /dev/null +++ b/server/public/4334.357a0ca21f42d9e5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4334],{9045:(Pn,P,o)=>{o.d(P,{J:()=>j});var _=o(6514),L=o(505),c=o(3953),M=o(177),w=o(1188),U=o(5699),B=o(1236),q=o(5103),F=o(8011),I=o(2387),v=o(3075);const J=(s,z,p)=>({rejected:s,submitted:z,accepted:p});function H(s,z){}function W(s,z){if(1&s&&(c.qex(0),c.j41(1,"a",5),c.DNE(2,H,0,0,"ng-template",6),c.k0s(),c.bVm()),2&s){const p=c.XpG(),f=c.sdS(2);c.R7$(),c.Y8G("routerLink",p.evidence.link),c.R7$(),c.Y8G("ngTemplateOutlet",f)}}function Q(s,z){}function K(s,z){if(1&s&&c.nrm(0,"cvc-evidence-popover",9),2&s){const p=c.XpG(3);c.Y8G("evidenceId",p.evidence.id)}}function V(s,z){if(1&s&&c.DNE(0,K,1,1,"cvc-evidence-popover",8),2&s){const p=c.XpG(2);c.Y8G("ngIf",p.enablePopover)}}function T(s,z){if(1&s&&(c.j41(0,"nz-tag",7),c.DNE(1,Q,0,0,"ng-template",6),c.k0s(),c.DNE(2,V,1,1,"ng-template",null,3,c.C5r)),2&s){const p=c.sdS(3),f=c.XpG(),n=c.sdS(6);c.Y8G("ngClass",c.sMw(5,J,"REJECTED"===f.evidence.status,"SUBMITTED"===f.evidence.status,"ACCEPTED"===f.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p)("nzPopoverTrigger",f.enablePopover?"hover":null),c.R7$(),c.Y8G("ngTemplateOutlet",n)}}function C(s,z){}function x(s,z){if(1&s&&c.DNE(0,C,0,0,"ng-template",6),2&s){c.XpG();const p=c.sdS(2);c.Y8G("ngTemplateOutlet",p)}}function m(s,z){if(1&s&&(c.j41(0,"cvc-icon-badges",10),c.nrm(1,"i",11),c.nI1(2,"entityColor"),c.nI1(3,"entityColor"),c.k0s(),c.EFF(4)),2&s){const p=c.XpG();c.Y8G("flagged",p.evidence.flagged)("entityColor",p.iconColor),c.R7$(),c.Y8G("nzTwotoneColor","REJECTED"===p.evidence.status?c.bMT(2,4,"Rejected"):c.bMT(3,6,"EvidenceItem")),c.R7$(3),c.SpI(" ",p.evidence.name,"\n")}}let j=(()=>{class s extends _.s{set evidence(p){if(!p)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=p}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,L.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275cmp=c.VBU({type:s,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(f,n){if(1&f&&c.DNE(0,W,3,2,"ng-container",4)(1,T,4,9,"ng-template",null,0,c.C5r)(3,x,1,1,"ng-template",null,1,c.C5r)(5,m,5,8,"ng-template",null,2,c.C5r),2&f){const Z=c.sdS(4);c.Y8G("ngIf",n.linked)("ngIfElse",Z)}},dependencies:[M.YU,M.bT,M.T3,w.Wk,U.s,B.L_,q.Dn,F.S,I.N,v.R],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}"]})}return s})()},5202:(Pn,P,o)=>{o.r(P),o.d(P,{VariantsDetailModule:()=>po});var _=o(177),L=o(7169),c=o(6912),M=o(1896),w=o(8103),U=o(5736),B=o(4124),q=o(1532),F=o(4917),I=o(9417),v=o(1188),J=o(996),H=o(4308),W=o(3842),Q=o(8492),K=o(8692),V=o(3617),T=o(513),C=o(5703),x=o(8927),m=o(7529),j=o(1997),s=o(7685),z=o(2983),p=o(5154),f=o(7391),n=o(3953);let Z=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,v.iI,I.YN,I.X1,x.PQ,V.$,m.f3,T.Zw,z.V,C.Ti,s.pc,f.kT,p.Qt,j.DH,Q.M,W.k,K.j,H.I,J.o]})}return t})();var nn=o(5103),R=o(3062),un=o(1236),u=o(9145),Cn=o(9172),O=o(6977),$=o(4608),zn=o(1413),In=o(4412),hn=o(1305),N=o(1774),yn=o(6389),Fn=o(5930),On=o(6269),Xn=o(9945),An=o(8821),Ln=o(7428),X=o(3245),wn=o(9765),Un=o(5269),Bn=o(4126),qn=o(1635),Jn=o(1226),b=o(6354),S=o(5964),D=o(9199),En=o(9894),Hn=o(4222),Wn=o(1939),Qn=o(5566),Kn=o(5473);function Zn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function nt(t,a){if(1&t&&n.DNE(0,Zn,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function tt(t,a){if(1&t&&(n.j41(0,"nz-alert",20),n.DNE(1,nt,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function et(t,a){1&t&&(n.qex(0),n.DNE(1,tt,3,1,"nz-alert",19),n.bVm())}function at(t,a){if(1&t&&(n.qex(0),n.DNE(1,et,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function it(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function ot(t,a){if(1&t&&n.DNE(0,it,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function rt(t,a){if(1&t&&(n.j41(0,"nz-alert",24),n.DNE(1,ot,1,1,"ng-template",null,2,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function ct(t,a){1&t&&(n.qex(0),n.DNE(1,rt,3,1,"nz-alert",23),n.bVm())}function st(t,a){if(1&t&&(n.qex(0),n.DNE(1,ct,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function _t(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",25),n.bIt("nzOnClose",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.onSuccessBannerClose())}),n.k0s()}}function lt(t,a){if(1&t&&n.nrm(0,"nz-alert",26),2&t){n.XpG();const e=n.sdS(9);n.Y8G("nzDescription",e)}}function pt(t,a){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function gt(t,a){if(1&t&&(n.j41(0,"ul"),n.DNE(1,pt,2,1,"li",21),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.errorMessages)}}function mt(t,a){}function ft(t,a){1&t&&n.DNE(0,mt,0,0,"ng-template")}function dt(t,a){if(1&t&&(n.qex(0),n.DNE(1,ft,1,0,null,28),n.bVm()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function vt(t,a){}function ut(t,a){1&t&&n.DNE(0,vt,0,0,"ng-template")}function Ct(t,a){if(1&t&&(n.j41(0,"span",29),n.DNE(1,ut,1,0,null,28),n.k0s()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function zt(t,a){if(1&t&&(n.j41(0,"button",30),n.EFF(1," Deprecate Variant "),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG();n.Y8G("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 It(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-form-buttons"),n.DNE(2,dt,2,1,"ng-container",27)(3,Ct,2,1,"ng-template",null,3,n.C5r)(5,zt,2,3,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&t){const e=a.ngrxLet,i=n.sdS(4);n.R7$(2),n.Y8G("ngIf",e.signedIn&&e.isEditor)("ngIfElse",i)}}let tn=class vn{constructor(a,e,i,r,g,l){this.deprecateVariantGQL=a,this.variantDetailGQL=e,this.mpsForVariantGQL=i,this.networkErrorService=r,this.route=g,this.viewerService=l,this.destroy$=new zn.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateVariantMutator=new Jn.E(r),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,En.s)(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,b.T)(({data:e})=>e.molecularProfiles.nodes),(0,S.p)(D.kP),(0,b.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount==0))),this.mpsWithEvidence$=a.pipe((0,b.T)(({data:e})=>e.molecularProfiles.nodes),(0,S.p)(D.kP),(0,b.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount>0))),this.mpListLoading$=a.pipe((0,b.T)(({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,O.Q)(this.destroy$)).subscribe(i=>{i&&(this.success=!0,this.comment="")}),e.submitError$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{i.length>0&&(this.errorMessages=i)}),e.isSubmitting$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{this.loading=i})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(e){return new(e||vn)(n.rXU(u.FP9),n.rXU(u.N47),n.rXU(u.pCs),n.rXU(Hn.N),n.rXU(v.nX),n.rXU(hn.q))};static#t=this.\u0275cmp=n.VBU({type:vn,selectors:[["cvc-variant-deprecate-form"]],inputs:{variantId:"variantId"},decls:21,vars:11,consts:[["errorContents",""],["mpsToDeprecateTpl",""],["mpsWithEvidenceTpl",""],["notSignedIn",""],["submitButton",""],[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"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["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"],[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"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription"],[4,"ngIf","ngIfElse"],[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(e,i){if(1&e){const r=n.RV6();n.j41(0,"nz-spin",5),n.nI1(1,"ngrxPush"),n.j41(2,"nz-space",6),n.DNE(3,at,2,1,"ng-container",7)(4,st,2,1,"ng-container",7),n.k0s()(),n.j41(5,"nz-card",8),n.DNE(6,_t,1,0,"nz-alert",9)(7,lt,1,1,"nz-alert",10)(8,gt,2,1,"ng-template",null,0,n.C5r),n.j41(10,"nz-form-item")(11,"nz-select",11),n.mxI("ngModelChange",function(l){return n.eBV(r),n.DH7(i.reason,l)||(i.reason=l),n.Njj(l)}),n.nrm(12,"nz-option",12)(13,"nz-option",13)(14,"nz-option",14),n.k0s()(),n.j41(15,"form",15),n.bIt("ngSubmit",function(){return n.eBV(r),n.Njj(i.deprecateVariant())}),n.j41(16,"cvc-comment-input-form",16),n.mxI("commentChange",function(l){return n.eBV(r),n.DH7(i.comment,l)||(i.comment=l),n.Njj(l)}),n.k0s(),n.j41(17,"nz-spin",17)(18,"nz-form-item")(19,"nz-form-control"),n.DNE(20,It,7,2,"ng-container",7),n.k0s()()()()()}2&e&&(n.Y8G("nzSpinning",n.bMT(1,9,i.mpListLoading$)),n.R7$(3),n.Y8G("ngrxLet",i.mpsToDeprecate$),n.R7$(),n.Y8G("ngrxLet",i.mpsWithEvidence$),n.R7$(2),n.Y8G("ngIf",i.success),n.R7$(),n.Y8G("ngIf",i.errorMessages.length>0),n.R7$(4),n.R50("ngModel",i.reason),n.R7$(5),n.R50("comment",i.comment),n.R7$(),n.Y8G("nzSpinning",i.loading),n.R7$(3),n.Y8G("ngrxLet",i.viewer$))},dependencies:[_.Sq,_.bT,_.T3,I.qT,I.BC,I.cb,I.vS,I.cV,N.Nj,m.Uq,m.e,x.CA,x.Ls,x.zS,V.Y,T.aO,yn.c,Fn.p,z.a,C.cK,s.U5,s.Dq,p.LH,j.ld,j.WI,Wn.l,Qn.K,Kn.z,N.L9],encapsulation:2,changeDetection:0})};tn=(0,qn.Cg)([(0,En.d)()],tn);var Gn=o(1845),ht=o(3075);const yt=t=>({flagged:t}),Ft=t=>["/variants",t,"revise"],Et=t=>({variantType:t}),Gt=()=>[];function Vt(t,a){if(1&t&&(n.j41(0,"span",19)(1,"strong"),n.EFF(2),n.k0s(),n.EFF(3," Parent:"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.JRh(e.name)}}function Tt(t,a){if(1&t&&(n.j41(0,"span",20)(1,"a",21),n.nrm(2,"cvc-feature-tag",22),n.k0s()()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Mz_("routerLink","/features/",e.feature.id,""),n.R7$(),n.Y8G("feature",e.feature)}}function xt(t,a){1&t&&(n.j41(0,"nz-space",16),n.DNE(1,Vt,4,1,"span",17)(2,Tt,3,3,"span",18),n.k0s())}function Rt(t,a){1&t&&(n.j41(0,"span"),n.EFF(1,",\xa0"),n.k0s())}function $t(t,a){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.DNE(2,Rt,2,0,"span",5),n.k0s()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function bt(t,a){if(1&t&&(n.j41(0,"nz-page-header-subtitle"),n.DNE(1,$t,3,2,"span",23),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.variantAliases)}}function St(t,a){if(1&t&&(n.j41(0,"button",28,3),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),i=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,Ft,i.id))("queryParams",n.eq3(5,Et,i.__typename))("nzType",e.isActive?"primary":"default")}}function Dt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,St,3,7,"button",27),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",null==e?null:e.signedIn)}}function Yt(t,a){if(1&t&&(n.j41(0,"button",30,3),n.EFF(2," Flag "),n.k0s()),2&t){const e=n.sdS(1);n.Y8G("nzType",e.isActive?"primary":"default")}}function Mt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Yt,3,1,"button",29),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function jt(t,a){if(1&t&&(n.j41(0,"div",33),n.nrm(1,"cvc-variant-deprecate-form",34),n.k0s()),2&t){const e=n.XpG(5).ngIf;n.R7$(),n.Y8G("variantId",e.id)}}function Nt(t,a){if(1&t&&(n.j41(0,"button",32),n.EFF(1," Deprecate "),n.DNE(2,jt,2,1,"ng-template",null,4,n.C5r),n.k0s()),2&t){const e=n.sdS(3),i=n.XpG(4).ngIf;n.Y8G("disabled",i.deprecated)("nzPopoverContent",e)}}function kt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Nt,4,2,"button",31),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.isEditor)}}function Pt(t,a){if(1&t&&n.nrm(0,"cvc-entity-subscription-button",36),2&t){const e=n.XpG(2).ngrxLet,i=n.XpG(3);n.Y8G("viewer",e)("subscribableId",i.subscribable.id)}}function Ot(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Pt,1,2,"cvc-entity-subscription-button",35),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG(3);n.R7$(),n.Y8G("ngIf",e.signedIn&&i.subscribable)}}function Xt(t,a){1&t&&(n.j41(0,"nz-space",25),n.DNE(1,Dt,2,1,"span",26)(2,Mt,2,1,"span",26)(3,kt,2,1,"span",26)(4,Ot,2,1,"span",26),n.k0s())}function At(t,a){if(1&t&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,Xt,5,0,"nz-space",24),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",e.viewer$)}}function Lt(t,a){if(1&t&&n.nrm(0,"nz-alert",37),2&t){n.XpG();const e=n.sdS(18);n.Y8G("nzMessage",e)}}function wt(t,a){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",38)),2&t){const e=n.XpG().ngIf;n.SpI(" This Variant has been deprecated for reason: ",n.bMT(1,2,e.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==e.deprecationActivity?null:e.deprecationActivity.parsedNote)||n.lJ4(4,Gt))}}function Ut(t,a){if(1&t&&(n.j41(0,"nz-col",39),n.nrm(1,"cvc-contributor-avatars",40),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function Bt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",6),n.DNE(2,xt,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",7),n.nI1(5,"ngrxPush"),n.j41(6,"nz-page-header",8)(7,"nz-page-header-title",9),n.nrm(8,"i",10),n.nI1(9,"entityColor"),n.j41(10,"span",11),n.EFF(11),n.k0s(),n.EFF(12),n.k0s(),n.DNE(13,bt,2,1,"nz-page-header-subtitle",5)(14,At,2,1,"nz-page-header-extra",12),n.j41(15,"nz-page-header-content"),n.DNE(16,Lt,1,1,"nz-alert",13)(17,wt,3,5,"ng-template",null,1,n.C5r),n.j41(19,"cvc-tab-navigation",14),n.nI1(20,"ngrxPush"),n.DNE(21,Ut,2,1,"ng-template",null,2,n.C5r),n.k0s(),n.j41(23,"div",15),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&t){const e=a.ngIf,i=n.sdS(3),r=n.XpG();n.R7$(),n.Y8G("displayName",e.feature.name+" "+e.name)("relationsTpl",i),n.R7$(3),n.Y8G("flags",n.bMT(5,11,r.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(17,yt,e.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(9,13,"Variant")),n.R7$(3),n.SpI(" ",e.feature.name," "),n.R7$(),n.SpI(" ",e.name," "),n.R7$(),n.Y8G("ngIf",e.variantAliases.length>0),n.R7$(),n.Y8G("ngrxLet",r.viewer$),n.R7$(2),n.Y8G("ngIf",e.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,15,r.tabs$))}}let qt=(()=>{class t{constructor(e,i,r){this.gql=e,this.viewerService=i,this.route=r,this.destroy$=new zn.B,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.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(g=>{this.queryRef=this.gql.watch({variantId:+g.variantId});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,$.E)("loading"),(0,Cn.Z)(!0)),this.variant$=l.pipe((0,$.E)("data","variant")),this.flagsTotal$=this.variant$.pipe((0,$.E)("flags","totalCount")),this.variant$.pipe((0,O.Q)(this.destroy$)).subscribe({next:k=>{this.tabs$.next(this.defaultTabs.map(y=>"Revisions"===y.tabLabel?{badgeCount:k?.openRevisionCount,...y}:"Flags"===y.tabLabel?{badgeCount:k?.flags.totalCount,...y}:"Comments"===y.tabLabel?{badgeCount:k?.comments.totalCount,badgeColor:"#cccccc",...y}:y))}}),this.subscribable={id:+g.variantId,entityType:u.V9U.Variant}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.N47),n.rXU(hn.q),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[["variantRelations",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateVariantForm",""],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-typography","",2,"color","#bbb"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"feature"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["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"],[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(i,r){1&i&&(n.DNE(0,Bt,25,19,"ng-container",5),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,r.variant$))},dependencies:[_.YU,_.Sq,_.bT,v.n3,v.Wk,v.wQ,N.Nj,T.aO,yn.c,Fn.p,nn.Dn,R.WB,R.k9,R.CO,R.zR,R.ov,s.U5,s.Dq,m.Uq,V.Y,un.L_,f.Di,On.f,Xn.N,An.H,Ln.v,X._,wn.n,Un.o,Bn.p,tn,N.L9,Gn.f,ht.R],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}"]})}return t})();var Jt=o(4873);let Ht=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,Jt.A]})}return t})();var Wt=o(664);let Qt=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.variantId,entityType:u.T31.Variant}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(i,r){1&i&&n.nrm(0,"cvc-comment-list",0),2&i&&n.Y8G("commentable",r.commentable)},dependencies:[Wt.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Kt=o(7268),Zt=o(1912);let ne=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,m.f3,C.Ti,s.pc,Zt.i3,nn.Y3,Kt.G]})}return t})();var te=o(4097);let ee=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:u.lD4.Variant,id:+this.route.snapshot.params.variantId}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,r){1&i&&n.nrm(0,"cvc-flag-list-and-filter",0),2&i&&n.Y8G("flaggable",r.flaggable)},dependencies:[te.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ae=o(6371),E=o(9541),Vn=o(3146);let ie=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,E.hM,Vn.W2,ae.O]})}return t})();var oe=o(4055);const re=(t,a)=>a.name,ce=()=>({transform:"scale(0.75, 0.75) translate(0, -2px)",backgroundColor:"#ff4d4f"});function se(t,a){if(1&t&&n.nrm(0,"nz-badge",5),2&t){const e=n.XpG(2).$implicit;n.Y8G("nzCount",e.openCount)("nzStyle",n.lJ4(2,ce))}}function _e(t,a){if(1&t&&(n.EFF(0),n.DNE(1,se,1,3,"nz-badge",5)),2&t){const e=n.XpG().$implicit;n.SpI(" ",e.name," "),n.R7$(),n.vxM(e.openCount>0?1:-1)}}function le(t,a){if(1&t&&(n.j41(0,"nz-tab",2)(1,"nz-template",3),n.nrm(2,"cvc-revisions-list-and-filter",4),n.k0s()(),n.DNE(3,_e,2,2,"ng-template",null,0,n.C5r)),2&t){const e=a.$implicit,i=n.sdS(4);n.Y8G("nzTitle",i),n.R7$(2),n.Y8G("moderated",e.moderated)}}let pe=(()=>{class t{constructor(e,i){this.gql=e,this.route=i,this.tabs=(0,n.vPA)([])}ngOnInit(){this.routeSub=this.route.params.pipe((0,S.p)(D.kP),(0,b.T)(e=>+e.variantId),(0,S.p)(D.kP)).subscribe(e=>{this.tabs.set([{name:"Variant Fields",openCount:0,moderated:{id:e,entityType:u.BlQ.Variant}}]),this.coordsSub=this.gql.fetch({variantId:e},{fetchPolicy:"no-cache"}).pipe((0,S.p)(D.kP),(0,$.E)("data","variant"),(0,S.p)(D.kP)).subscribe(i=>{this.updateTabs(i)})})}updateTabs(e){let i=this.tabs();if("GeneVariant"==e.__typename&&e.coordinates)i[0].openCount=e.openRevisionCount-e.coordinates.openRevisionCount,i.push({name:"Variant Coordinates",openCount:e.coordinates.openRevisionCount,moderated:{id:e.coordinates.id,entityType:u.BlQ.VariantCoordinates}});else if("FusionVariant"==e.__typename){let r=e.openRevisionCount;e.fivePrimeEndExonCoordinates&&(r-=e.fivePrimeEndExonCoordinates.openRevisionCount,i.push({name:"5' Exon End Coordinates",openCount:e.fivePrimeEndExonCoordinates.openRevisionCount,moderated:{id:e.fivePrimeEndExonCoordinates.id,entityType:u.BlQ.ExonCoordinates}})),e.threePrimeStartExonCoordinates&&(r-=e.threePrimeStartExonCoordinates.openRevisionCount,i.push({name:"3' Exon Start Coordinates",openCount:e.threePrimeStartExonCoordinates.openRevisionCount,moderated:{id:e.threePrimeStartExonCoordinates.id,entityType:u.BlQ.ExonCoordinates}})),i[0].openCount=r}this.tabs.set(i)}ngOnDestroy(){this.routeSub?.unsubscribe(),this.coordsSub?.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.Jmn),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-revisions"]],decls:3,vars:1,consts:[["tabTitle",""],[3,"nzAnimated"],[3,"nzTitle"],["nz-tab",""],[3,"moderated"],["nzStandalone","",3,"nzCount","nzStyle"]],template:function(i,r){1&i&&(n.j41(0,"nz-tabset",1),n.Z7z(1,le,5,2,null,null,re),n.k0s()),2&i&&(n.Y8G("nzAnimated",!1),n.R7$(),n.Dyx(r.tabs()))},dependencies:[E.JZ,E.rE,E.Tl,Vn.dz,oe.B],encapsulation:2,changeDetection:0})}return t})();var en=o(2142),h=o(2e3),Y=o(5699),an=o(5493),on=o(7513),A=o(7054),rn=o(8254),cn=o(9972),G=o(9247);let sn=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,E.hM,G.$G,C.Ti,A.L,m.f3,F.i]})}return t})();var _n=o(2839),Tn=o(6719),ln=o(7855),pn=o(6073),xn=o(9481),gn=o(7679),mn=o(6408),fn=o(8097),ge=o(1596);const Rn=()=>["."];function me(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function fe(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",21),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",e.variantInfo.dbsnpRsid,""),n.R7$(),n.SpI(" ",e.variantInfo.dbsnpRsid," ")}}function de(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",22),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",e.variantInfo.cosmicId.replace("COSM",""),""),n.R7$(),n.SpI(" ",e.variantInfo.cosmicId," ")}}function ve(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ue(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ve,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ce(t,a){if(1&t&&(n.qex(0),n.DNE(1,ue,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpEffect)}}function ze(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ie(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ze,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function he(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ie,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpImpact)}}function ye(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," MyVariant.info ID: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.j41(7,"strong",18),n.EFF(8,"ClinVar ID:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,me,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," dbSNP RSID: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,fe,3,3,"ng-container",19),n.j41(16,"strong",18),n.EFF(17,"COSMIC ID (v68):"),n.k0s(),n.EFF(18,"\xa0 "),n.DNE(19,de,3,3,"ng-container",19),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," SNPEff Effect: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,Ce,2,1,"ng-container",19),n.k0s()(),n.j41(25,"div",15)(26,"div",16),n.EFF(27," SNPEff Impact: "),n.k0s(),n.j41(28,"div",17),n.DNE(29,he,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",e.variantInfo.myVariantInfoId," "),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.cosmicId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",i)}}function Fe(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function Ee(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",24),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://omim.org/entry/",e.variantInfo.clinvarOmim.split(".")[0],""),n.R7$(),n.SpI(" ",e.variantInfo.clinvarOmim," ")}}function Ge(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ve(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ge,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Te(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ve,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarClinicalSignificance)}}function xe(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Re(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,xe,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function $e(t,a){if(1&t&&(n.qex(0),n.DNE(1,Re,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsCoding)}}function be(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Se(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,be,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function De(t,a){if(1&t&&(n.qex(0),n.DNE(1,Se,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsGenomic)}}function Ye(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Me(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ye,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function je(t,a){if(1&t&&(n.qex(0),n.DNE(1,Me,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsNonCoding)}}function Ne(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function ke(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ne,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Pe(t,a){if(1&t&&(n.qex(0),n.DNE(1,ke,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsProtein)}}function Oe(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," ClinVar ID: "),n.k0s(),n.j41(5,"div",17),n.DNE(6,Fe,3,3,"ng-container",19),n.j41(7,"strong",18),n.EFF(8,"OMIM:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,Ee,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," ClinVar Clinical Significance: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,Te,2,1,"ng-container",19),n.k0s()(),n.j41(16,"div",15)(17,"div",16),n.EFF(18," HGVS Coding: "),n.k0s(),n.j41(19,"div",17),n.DNE(20,$e,2,1,"ng-container",19),n.k0s()(),n.j41(21,"div",15)(22,"div",16),n.EFF(23," HGVS Genomic: "),n.k0s(),n.j41(24,"div",17),n.DNE(25,De,2,1,"ng-container",19),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," HGVS Non-Coding: "),n.k0s(),n.j41(29,"div",17),n.DNE(30,je,2,1,"ng-container",19),n.k0s()(),n.j41(31,"div",15)(32,"div",16),n.EFF(33," HGVS Protein: "),n.k0s(),n.j41(34,"div",17),n.DNE(35,Pe,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarOmim)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",i)}}function Xe(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",27),n.EFF(1," View this variant in the gnomAD browser "),n.k0s()),2&t){const e=n.XpG(3);n.Mz_("href","https://gnomad.broadinstitute.org/variant/",e.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}function Ae(t,a){if(1&t&&(n.qex(0),n.DNE(1,Xe,2,2,"cvc-link-tag",25),n.j41(2,"nz-table",26,1)(4,"thead")(5,"tr")(6,"th"),n.EFF(7,"Type"),n.k0s(),n.j41(8,"th"),n.EFF(9,"Allele Frequency"),n.k0s(),n.j41(10,"th"),n.EFF(11,"Allele Count"),n.k0s(),n.j41(12,"th"),n.EFF(13,"Allele Number"),n.k0s(),n.j41(14,"th"),n.EFF(15,"Filter"),n.k0s()()(),n.j41(16,"tbody")(17,"tr")(18,"td"),n.EFF(19,"Total Exome"),n.k0s(),n.j41(20,"td"),n.EFF(21),n.nI1(22,"ifEmpty"),n.k0s(),n.j41(23,"td"),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s(),n.j41(26,"td"),n.EFF(27),n.nI1(28,"ifEmpty"),n.k0s(),n.j41(29,"td"),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Total Genome"),n.k0s(),n.j41(35,"td"),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s(),n.j41(38,"td"),n.EFF(39),n.nI1(40,"ifEmpty"),n.k0s(),n.j41(41,"td"),n.EFF(42),n.nI1(43,"ifEmpty"),n.k0s(),n.j41(44,"td"),n.EFF(45),n.nI1(46,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid),n.R7$(),n.Y8G("nzData",n.lJ4(36,Rn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(19),n.SpI(" ",n.i5U(22,12,e.variantInfo.gnomadExomeAlleleFrequency,"--")," "),n.R7$(3),n.JRh(n.i5U(25,15,e.variantInfo.gnomadExomeAlleleCount,"--")),n.R7$(3),n.SpI(" ",n.i5U(28,18,e.variantInfo.gnomadExomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(31,21,e.variantInfo.gnomadExomeFilter,"--")),n.R7$(6),n.SpI(" ",n.i5U(37,24,e.variantInfo.gnomadGenomeAlleleFrequency,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(40,27,e.variantInfo.gnomadGenomeAlleleCount,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(43,30,e.variantInfo.gnomadGenomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(46,33,e.variantInfo.gnomadGenomeFilter,"--"))}}function Le(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," Allele Count: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Allele Number: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Adjusted Allele Frequency: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,12,e.variantInfo.exacAlleleCount,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,15,e.variantInfo.exacAlleleNumber,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,18,e.variantInfo.exacAlleleFrequency,"--")," ")}}function we(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," phyloP100way: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," phyloP30way: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," phastCons100way: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," phastCons30way: "),n.k0s(),n.j41(23,"div",17),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," GERP++: "),n.k0s(),n.j41(29,"div",17),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"div",15)(33,"div",16),n.EFF(34," SiPhy: "),n.k0s(),n.j41(35,"div",17),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,24,e.variantInfo.phyloP100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,27,e.variantInfo.phyloP30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,30,e.variantInfo.phastcons100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(25,33,e.variantInfo.phastcons30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(31,36,e.variantInfo.gerp,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(37,39,e.variantInfo.siphy,"--")," ")}}function Ue(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Be(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ue,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function qe(t,a){if(1&t&&(n.qex(0),n.DNE(1,Be,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.eglHgvs)}}function Je(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," EGL Class: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Protein Variant Name: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Transcript Variant Name: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," HGVS: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,qe,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,17,e.variantInfo.eglClass,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,20,e.variantInfo.eglProtein,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,23,e.variantInfo.eglTranscript,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.eglHgvs.length>0)("ngIfElse",i)}}function He(t,a){if(1&t&&(n.j41(0,"td"),n.EFF(1),n.nI1(2,"ifEmpty"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(n.i5U(2,1,e.variantInfo.revelScore.join(", "),"--"))}}function We(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Qe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,We,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ke(t,a){if(1&t&&(n.qex(0),n.DNE(1,Qe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftPrediction)}}function Ze(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function na(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ze,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ta(t,a){if(1&t&&(n.qex(0),n.DNE(1,na,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftScore)}}function ea(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function aa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ea,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ia(t,a){if(1&t&&(n.qex(0),n.DNE(1,aa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivPrediction)}}function oa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ra(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,oa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ca(t,a){if(1&t&&(n.qex(0),n.DNE(1,ra,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivScore)}}function sa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function _a(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,sa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function la(t,a){if(1&t&&(n.qex(0),n.DNE(1,_a,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarPrediction)}}function pa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ga(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,pa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ma(t,a){if(1&t&&(n.qex(0),n.DNE(1,ga,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarScore)}}function fa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function da(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,fa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function va(t,a){if(1&t&&(n.qex(0),n.DNE(1,da,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterPrediction)}}function ua(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ca(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ua,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function za(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ca,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterScore)}}function Ia(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ha(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ia,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ya(t,a){if(1&t&&(n.qex(0),n.DNE(1,ha,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorPrediction)}}function Fa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ea(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Fa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ga(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ea,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorScore)}}function Va(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ta(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Va,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function xa(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ta,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmPrediction)}}function Ra(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function $a(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ra,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ba(t,a){if(1&t&&(n.qex(0),n.DNE(1,$a,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmScore)}}function Sa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Da(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Sa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ya(t,a){if(1&t&&(n.qex(0),n.DNE(1,Da,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanPrediction)}}function Ma(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ja(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ma,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Na(t,a){if(1&t&&(n.qex(0),n.DNE(1,ja,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanScore)}}function ka(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Pa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ka,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Oa(t,a){if(1&t&&(n.qex(0),n.DNE(1,Pa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddConsequence)}}function Xa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Aa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Xa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function La(t,a){if(1&t&&(n.qex(0),n.DNE(1,Aa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddDetail)}}function wa(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-table",26,1)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Predictor"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Prediction"),n.k0s(),n.j41(9,"th"),n.EFF(10,"Score"),n.k0s()()(),n.j41(11,"tbody")(12,"tr")(13,"td"),n.EFF(14,"REVEL"),n.k0s(),n.j41(15,"td"),n.EFF(16,"N/A"),n.k0s(),n.DNE(17,He,3,4,"td",2),n.k0s(),n.j41(18,"tr")(19,"td"),n.EFF(20,"SIFT"),n.k0s(),n.j41(21,"td"),n.DNE(22,Ke,2,1,"ng-container",19),n.k0s(),n.j41(23,"td"),n.DNE(24,ta,2,1,"ng-container",19),n.k0s()(),n.j41(25,"tr")(26,"td"),n.EFF(27,"Polyphen2 HDIV"),n.k0s(),n.j41(28,"td"),n.DNE(29,ia,2,1,"ng-container",19),n.k0s(),n.j41(30,"td"),n.DNE(31,ca,2,1,"ng-container",19),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Polyphen2 HVAR"),n.k0s(),n.j41(35,"td"),n.DNE(36,la,2,1,"ng-container",19),n.k0s(),n.j41(37,"td"),n.DNE(38,ma,2,1,"ng-container",19),n.k0s()(),n.j41(39,"tr")(40,"td"),n.EFF(41,"LRT"),n.k0s(),n.j41(42,"td"),n.EFF(43),n.nI1(44,"ifEmpty"),n.k0s(),n.j41(45,"td"),n.EFF(46),n.nI1(47,"ifEmpty"),n.k0s()(),n.j41(48,"tr")(49,"td"),n.EFF(50,"MutationTaster"),n.k0s(),n.j41(51,"td"),n.DNE(52,va,2,1,"ng-container",19),n.k0s(),n.j41(53,"td"),n.DNE(54,za,2,1,"ng-container",19),n.k0s()(),n.j41(55,"tr")(56,"td"),n.EFF(57,"MutationAssessor"),n.k0s(),n.j41(58,"td"),n.DNE(59,ya,2,1,"ng-container",19),n.k0s(),n.j41(60,"td"),n.DNE(61,Ga,2,1,"ng-container",19),n.k0s()(),n.j41(62,"tr")(63,"td"),n.EFF(64,"FATHMM"),n.k0s(),n.j41(65,"td"),n.DNE(66,xa,2,1,"ng-container",19),n.k0s(),n.j41(67,"td"),n.DNE(68,ba,2,1,"ng-container",19),n.k0s()(),n.j41(69,"tr")(70,"td"),n.EFF(71,"PROVEAN"),n.k0s(),n.j41(72,"td"),n.DNE(73,Ya,2,1,"ng-container",19),n.k0s(),n.j41(74,"td"),n.DNE(75,Na,2,1,"ng-container",19),n.k0s()(),n.j41(76,"tr")(77,"td"),n.EFF(78,"MetaSVM"),n.k0s(),n.j41(79,"td"),n.EFF(80),n.nI1(81,"ifEmpty"),n.k0s(),n.j41(82,"td"),n.EFF(83),n.nI1(84,"ifEmpty"),n.k0s()(),n.j41(85,"tr")(86,"td"),n.EFF(87,"MetaLR"),n.k0s(),n.j41(88,"td"),n.EFF(89),n.nI1(90,"ifEmpty"),n.k0s(),n.j41(91,"td"),n.EFF(92),n.nI1(93,"ifEmpty"),n.k0s()(),n.j41(94,"tr")(95,"td"),n.EFF(96,"CADD"),n.k0s(),n.j41(97,"td"),n.EFF(98," Consequence: "),n.DNE(99,Oa,2,1,"ng-container",19),n.nrm(100,"br"),n.EFF(101," Consequence Detail: "),n.DNE(102,La,2,1,"ng-container",19),n.k0s(),n.j41(103,"td"),n.EFF(104),n.nI1(105,"ifEmpty"),n.nrm(106,"br"),n.EFF(107),n.nI1(108,"ifEmpty"),n.k0s()(),n.j41(109,"tr")(110,"td"),n.EFF(111,"FATHMM-MKL"),n.k0s(),n.j41(112,"td"),n.EFF(113),n.nI1(114,"ifEmpty"),n.k0s(),n.j41(115,"td"),n.EFF(116),n.nI1(117,"ifEmpty"),n.k0s()(),n.j41(118,"tr")(119,"td"),n.EFF(120,"fitCons"),n.k0s(),n.j41(121,"td"),n.EFF(122,"N/A"),n.k0s(),n.j41(123,"td"),n.EFF(124),n.nI1(125,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(),n.Y8G("nzData",n.lJ4(80,Rn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(16),n.Y8G("ngIf",e.variantInfo.revelScore),n.R7$(5),n.Y8G("ngIf",e.variantInfo.siftPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.siftScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(44,47,e.variantInfo.lrtPrediction,"--")),n.R7$(3),n.JRh(n.i5U(47,50,e.variantInfo.lrtScore,"--")),n.R7$(6),n.Y8G("ngIf",e.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationtasterScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationassessorScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.fathmmPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.fathmmScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.proveanPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.proveanScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(81,53,e.variantInfo.metasvmPrediction,"--")),n.R7$(3),n.JRh(n.i5U(84,56,e.variantInfo.metasvmScore,"--")),n.R7$(6),n.JRh(n.i5U(90,59,e.variantInfo.metalrPrediction,"--")),n.R7$(3),n.JRh(n.i5U(93,62,e.variantInfo.metalrScore,"--")),n.R7$(7),n.Y8G("ngIf",e.variantInfo.caddConsequence.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("ngIf",e.variantInfo.caddDetail.length>0)("ngIfElse",i),n.R7$(2),n.SpI(" ",n.i5U(105,65,e.variantInfo.caddScore,"--")," (raw) "),n.R7$(3),n.SpI(" ",n.i5U(108,68,e.variantInfo.caddPhred,"--")," (PHRED) "),n.R7$(6),n.JRh(n.i5U(114,71,e.variantInfo.fathmmMklPrediction,"--")),n.R7$(3),n.JRh(n.i5U(117,74,e.variantInfo.fathmmMklScore,"--")),n.R7$(8),n.JRh(n.i5U(125,77,e.variantInfo.fitconsScore,"--"))}}function Ua(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"nz-card",3)(2,"nz-card-tab")(3,"nz-tabset",4)(4,"nz-tab",5),n.bIt("nzClick",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.tabIndex.next(0))}),n.k0s(),n.j41(5,"nz-tab",6),n.bIt("nzClick",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.tabIndex.next(1))}),n.k0s(),n.j41(6,"nz-tab",7),n.bIt("nzClick",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.tabIndex.next(2))}),n.k0s(),n.j41(7,"nz-tab",8),n.bIt("nzClick",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.tabIndex.next(3))}),n.k0s(),n.j41(8,"nz-tab",9),n.bIt("nzClick",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.tabIndex.next(4))}),n.k0s(),n.j41(9,"nz-tab",10),n.bIt("nzClick",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.tabIndex.next(5))}),n.k0s(),n.j41(10,"nz-tab",11),n.bIt("nzClick",function(){n.eBV(e);const r=n.XpG();return n.Njj(r.tabIndex.next(6))}),n.k0s()()(),n.qex(11,12),n.nI1(12,"async"),n.DNE(13,ye,30,23,"ng-container",13)(14,Oe,36,32,"ng-container",13)(15,Ae,47,37,"ng-container",13)(16,Le,20,21,"ng-container",13)(17,we,38,42,"ng-container",13)(18,Je,25,26,"ng-container",13)(19,wa,126,81,"ng-container",13),n.bVm(),n.k0s(),n.bVm()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(8),n.Y8G("ngSwitch",n.bMT(12,9,e.tabIndex)),n.R7$(2),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3),n.R7$(),n.Y8G("ngSwitchCase",4),n.R7$(),n.Y8G("ngSwitchCase",5),n.R7$(),n.Y8G("ngSwitchCase",6)}}function Ba(t,a){1&t&&n.EFF(0,"--")}let qa=(()=>{class t{constructor(){this.tabIndex=new In.t(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[["noValue",""],["gnomadTable",""],[4,"ngIf"],["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"],[3,"href"]],template:function(i,r){1&i&&n.DNE(0,Ua,20,11,"ng-container",2)(1,Ba,1,0,"ng-template",null,0,n.C5r),2&i&&n.Y8G("ngIf",r.variantInfo)},dependencies:[_.Sq,_.bT,_.ux,_.e1,E.JZ,E.rE,G.CP,G.SO,G._4,G.IL,G.aj,G.kt,C.cK,C.RO,gn.a,m.Uq,m.e,_.Jj,ge.r],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}"]})}return t})();var dn=o(8139);const Ja=()=>[8,16],$n=()=>[8,8],bn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Ha(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Wa(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ha,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function Qa(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Ka(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",31),2&t&&n.Y8G("variantType",a.$implicit)}function Za(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ka,1,1,"cvc-variant-type-tag",30),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function ni(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function ti(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function ei(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,ti,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.hgvsDescriptions)}}function ai(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function ii(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list")(2,"nz-tag"),n.EFF(3),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(3),n.JRh(e.variant.maneSelectTranscript)}}function oi(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None found"),n.k0s())}function ri(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function ci(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,ri,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function si(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function _i(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,si,4,3,"ng-template",null,9,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function li(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",33),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("href","https://reg.genome.network/allele/"+e.variant.alleleRegistryId+".html"),n.R7$(),n.SpI(" ",e.variant.alleleRegistryId," ")}}function pi(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"Unregistered"),n.k0s())}function gi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",34),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+e),n.R7$(),n.SpI(" ",e," ")}}function mi(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,gi,3,2,"ng-container",28),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variant.clinvarIds)}}function fi(t,a){if(1&t&&(n.qex(0),n.DNE(1,mi,2,1,"cvc-tag-list",15),n.bVm()),2&t){n.XpG();const e=n.sdS(40),i=n.XpG();n.R7$(),n.Y8G("ngIf","N/A"!==i.variant.clinvarIds[0]&&"NONE FOUND"!==i.variant.clinvarIds[0])("ngIfElse",e)}}function di(t,a){if(1&t&&(n.j41(0,"span",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.variant.clinvarIds[0])}}function vi(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None provided"),n.k0s())}function ui(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",35)(1,"cvc-link-tag",36),n.EFF(2," Variant Report "),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("href",e.variant.openCravatUrl)}}function Ci(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",11),n.nrm(2,"cvc-my-variant-info",37),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("variantInfo",e.variant.myVariantInfo)}}function zi(t,a){1&t&&(n.j41(0,"nz-col",11)(1,"nz-card",38),n.nrm(2,"cvc-empty-revisable",39),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function Ii(t,a){if(1&t&&(n.j41(0,"nz-row",10)(1,"nz-col",11)(2,"nz-row",10)(3,"nz-col",12)(4,"nz-descriptions",13)(5,"nz-descriptions-item",14),n.DNE(6,Wa,3,1,"ng-container",15)(7,Qa,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",16),n.DNE(10,Za,3,1,"ng-container",15)(11,ni,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(13,"nz-descriptions-item",16),n.DNE(14,ei,3,1,"ng-container",15)(15,ai,2,0,"ng-template",null,2,n.C5r),n.k0s(),n.j41(17,"nz-descriptions-item",17),n.DNE(18,ii,4,1,"ng-container",15)(19,oi,2,0,"ng-template",null,3,n.C5r),n.k0s()()(),n.j41(21,"nz-col",11),n.nrm(22,"cvc-coordinates-card",18),n.k0s()()(),n.j41(23,"nz-col",19)(24,"nz-row",10)(25,"nz-col",11)(26,"nz-descriptions",20),n.DNE(27,ci,6,2,"ng-container",21)(28,_i,6,2,"ng-container",21),n.k0s()(),n.j41(29,"nz-col",11)(30,"nz-descriptions",13)(31,"nz-descriptions-item",22),n.nrm(32,"cvc-feature-tag",23),n.k0s(),n.j41(33,"nz-descriptions-item",24),n.DNE(34,li,2,2,"cvc-link-tag",25)(35,pi,2,0,"ng-template",null,4,n.C5r),n.k0s(),n.j41(37,"nz-descriptions-item",16),n.DNE(38,fi,2,2,"ng-container",15)(39,di,2,1,"ng-template",null,5,n.C5r)(41,vi,2,0,"ng-template",null,6,n.C5r),n.k0s(),n.DNE(43,ui,3,1,"nz-descriptions-item",26),n.k0s()(),n.DNE(44,Ci,3,2,"ng-container",15)(45,zi,3,1,"ng-template",null,7,n.C5r),n.k0s()(),n.j41(47,"nz-col",12),n.nrm(48,"cvc-molecular-profiles-table",27),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),r=n.sdS(16),g=n.sdS(20),l=n.sdS(36),k=n.sdS(42),y=n.sdS(46),d=n.XpG();n.Y8G("nzGutter",n.lJ4(35,Ja)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(36,$n)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",d.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",d.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",d.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("nzTitle",d.variant.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.R7$(),n.Y8G("ngIf",d.variant.hgvsDescriptions.length>0)("ngIfElse",r),n.R7$(4),n.Y8G("ngIf",d.variant.maneSelectTranscript)("ngIfElse",g),n.R7$(3),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("cvcCoordinates",d.variant),n.R7$(2),n.Y8G("nzGutter",n.lJ4(37,$n)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(38,bn)),n.R7$(),n.Y8G("ngIf",d.variant.creationActivity),n.R7$(),n.Y8G("ngIf",d.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(39,bn)),n.R7$(2),n.Y8G("feature",d.variant.feature),n.R7$(2),n.Y8G("ngIf",d.variant.alleleRegistryId&&"unregistered"!=d.variant.alleleRegistryId)("ngIfElse",l),n.R7$(3),n.Y8G("nzTitle",d.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.R7$(),n.Y8G("ngIf",d.variant.clinvarIds.length>0)("ngIfElse",k),n.R7$(5),n.Y8G("ngIf",d.variant.openCravatUrl),n.R7$(),n.Y8G("ngIf",d.variant.myVariantInfo)("ngIfElse",y),n.R7$(4),n.Mz_("cvcTitle","",d.variant.name," Molecular Profiles"),n.Y8G("variantId",d.variant.id)}}let Sn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass GeneVariant into GeneVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-gene-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noDescriptions",""],["noMane",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noVariantInfo",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzTitle","MANE Select Transcript"],[3,"cvcCoordinates"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Gene"],[3,"feature"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["nzTitle","OpenCRAVAT",4,"ngIf"],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["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(i,r){1&i&&n.DNE(0,Ii,49,40,"nz-row",10),2&i&&n.vxM("GeneVariant"==r.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,C.cK,rn.V,Tn.Q,en.x,ln.M,an.G,pn.h,on.m,xn.W,A.L,gn.a,_n.m,mn.r,c.l,X._,cn.V,fn.I,sn,qa,F.i,dn.N],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%}"]})}return t})();var hi=o(9354);const yi=()=>[8,16],Dn=()=>[8,8],Yn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Fi(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Ei(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Fi,2,1,"nz-tag",19),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function Gi(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function Vi(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",22),2&t&&n.Y8G("variantType",a.$implicit)}function Ti(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Vi,1,1,"cvc-variant-type-tag",21),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function xi(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function Ri(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function $i(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,Ri,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function bi(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function Si(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,bi,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function Di(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+e.variant.ncitId)("tooltip","View "+e.variant.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",e.variant.ncitId," ")}}function Yi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",6),n.nrm(2,"cvc-ncit-details",26),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("ncitDetails",e.variant.ncitDetails)}}function Mi(t,a){1&t&&(n.j41(0,"nz-col",6)(1,"nz-card",27),n.nrm(2,"cvc-empty-revisable",28),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function ji(t,a){if(1&t&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,Ei,3,1,"ng-container",10)(7,Gi,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",11),n.DNE(10,Ti,3,1,"ng-container",10)(11,xi,2,0,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(13,"nz-col",12)(14,"nz-row",5)(15,"nz-col",6)(16,"nz-descriptions",13),n.DNE(17,$i,6,2,"ng-container",14)(18,Si,6,2,"ng-container",14),n.k0s()(),n.j41(19,"nz-col",6)(20,"nz-descriptions",8)(21,"nz-descriptions-item",15),n.nrm(22,"cvc-feature-tag",16),n.k0s(),n.DNE(23,Di,4,3,"nz-descriptions-item",17),n.k0s()(),n.DNE(24,Yi,3,2,"ng-container",10)(25,Mi,3,1,"ng-template",null,2,n.C5r),n.k0s()(),n.j41(27,"nz-col",7),n.nrm(28,"cvc-molecular-profiles-table",18),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),r=n.sdS(26),g=n.XpG();n.Y8G("nzGutter",n.lJ4(21,yi)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(22,Dn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",g.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",g.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",g.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(4),n.Y8G("nzGutter",n.lJ4(23,Dn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(24,Yn)),n.R7$(),n.Y8G("ngIf",g.variant.creationActivity),n.R7$(),n.Y8G("ngIf",g.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(25,Yn)),n.R7$(2),n.Y8G("feature",g.variant.feature),n.R7$(),n.Y8G("ngIf",g.variant.ncitId),n.R7$(),n.Y8G("ngIf",g.variant.ncitId)("ngIfElse",r),n.R7$(4),n.Y8G("variantId",g.variant.id)}}let Mn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass FactorVariant into FactorVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-factor-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noNcit",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Factor"],[3,"feature"],["nzTitle","Resources",4,"ngIf"],["cvcHeight","300px","cvcTitle","Molecular Profiles",3,"variantId"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(i,r){1&i&&n.DNE(0,ji,29,26,"nz-row",5),2&i&&n.vxM("FactorVariant"==r.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,C.cK,f.kT,f.Di,rn.V,Tn.Q,en.x,ln.M,an.G,pn.h,on.m,A.L,gn.a,_n.m,mn.r,c.l,X._,cn.V,fn.I,sn,F.i,dn.N,hi.e],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%}"]})}return t})();const Ni=()=>[8,16],jn=()=>[8,8],Nn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function ki(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Pi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,ki,2,1,"nz-tag",24),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function Oi(t,a){1&t&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Xi(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",27),2&t&&n.Y8G("variantType",a.$implicit)}function Ai(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Xi,1,1,"cvc-variant-type-tag",26),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Li(t,a){1&t&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function wi(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function Ui(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",12),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,wi,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function Bi(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function qi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",12),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Bi,4,3,"ng-template",null,5,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function Ji(t,a){if(1&t&&n.nrm(0,"cvc-feature-tag",18),2&t){const e=n.XpG(2);n.Y8G("feature",e.variant.fusion.fivePrimeGene)}}function Hi(t,a){if(1&t&&n.nrm(0,"cvc-feature-tag",18),2&t){const e=n.XpG(2);n.Y8G("feature",e.variant.fusion.threePrimeGene)}}function Wi(t,a){if(1&t&&(n.j41(0,"span",25),n.EFF(1),n.nI1(2,"enumToTitle"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(n.bMT(2,1,e.variant.fusion.fivePrimePartnerStatus))}}function Qi(t,a){if(1&t&&(n.j41(0,"span",25),n.EFF(1),n.nI1(2,"enumToTitle"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(n.bMT(2,1,e.variant.fusion.threePrimePartnerStatus))}}function Ki(t,a){if(1&t&&(n.j41(0,"nz-row",6)(1,"nz-col",7)(2,"nz-row",6)(3,"nz-col",8)(4,"nz-descriptions",9)(5,"nz-descriptions-item",10),n.DNE(6,Pi,3,1,"ng-container",11)(7,Oi,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",12),n.DNE(10,Ai,3,1,"ng-container",11)(11,Li,2,0,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(13,"nz-col",13)(14,"nz-row",6)(15,"nz-col",7)(16,"nz-descriptions",14),n.DNE(17,Ui,6,2,"ng-container",15)(18,qi,6,2,"ng-container",15),n.k0s()(),n.j41(19,"nz-col",7)(20,"nz-descriptions",9)(21,"nz-descriptions-item",16),n.EFF(22),n.k0s(),n.j41(23,"nz-descriptions-item",17),n.nrm(24,"cvc-feature-tag",18),n.k0s(),n.j41(25,"nz-descriptions-item",19),n.DNE(26,Ji,1,1,"cvc-feature-tag",20),n.k0s(),n.j41(27,"nz-descriptions-item",21),n.DNE(28,Hi,1,1,"cvc-feature-tag",20),n.k0s(),n.DNE(29,Wi,3,3,"ng-template",null,2,n.C5r)(31,Qi,3,3,"ng-template",null,3,n.C5r),n.k0s()()()(),n.j41(33,"nz-col",8),n.nrm(34,"cvc-coordinates-card",22),n.k0s(),n.j41(35,"nz-col",8),n.nrm(36,"cvc-molecular-profiles-table",23),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),r=n.sdS(30),g=n.sdS(32),l=n.XpG();n.Y8G("nzGutter",n.lJ4(26,Ni)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(27,jn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",l.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",l.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",l.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(4),n.Y8G("nzGutter",n.lJ4(28,jn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(29,Nn)),n.R7$(),n.Y8G("ngIf",l.variant.creationActivity),n.R7$(),n.Y8G("ngIf",l.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(30,Nn)),n.R7$(2),n.SpI(" ",l.variant.viccCompliantName," "),n.R7$(2),n.Y8G("feature",l.variant.feature),n.R7$(2),n.Y8G("ngIf",l.variant.fusion.fivePrimeGene)("ngIfElse",r),n.R7$(2),n.Y8G("ngIf",l.variant.fusion.threePrimeGene)("ngIfElse",g),n.R7$(6),n.Y8G("cvcCoordinates",l.variant),n.R7$(2),n.Mz_("cvcTitle","",l.variant.name," Molecular Profiles"),n.Y8G("variantId",l.variant.id)}}let kn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass FusionVariant into FusionVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-fusion-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["no5Partner",""],["no3Partner",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","VICC Compliant Name","nzSpan","2"],["nzTitle","Fusion","nzSpan","2"],[3,"feature"],["nzTitle","5' Partner"],[3,"feature",4,"ngIf","ngIfElse"],["nzTitle","3' Partner"],[3,"cvcCoordinates"],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"]],template:function(i,r){1&i&&n.DNE(0,Ki,37,31,"nz-row",6),2&i&&n.vxM("FusionVariant"==r.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,f.kT,f.Di,rn.V,en.x,ln.M,an.G,pn.h,on.m,xn.W,A.L,_n.m,mn.r,c.l,X._,cn.V,fn.I,sn,F.i,Gn.f,dn.N],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%}"]})}return t})(),Zi=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,Sn,Mn,kn]})}return t})();function no(t,a){if(1&t&&n.nrm(0,"cvc-gene-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function to(t,a){if(1&t&&n.nrm(0,"cvc-factor-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function eo(t,a){if(1&t&&n.nrm(0,"cvc-fusion-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function ao(t,a){if(1&t&&(n.qex(0),n.DNE(1,no,1,1,"cvc-gene-variant-summary",1)(2,to,1,1,"cvc-factor-variant-summary",1)(3,eo,1,1,"cvc-fusion-variant-summary",1),n.bVm()),2&t){let e;const i=a.ngIf;n.R7$(),n.vxM("GeneVariant"===(e=i.__typename)?1:"FactorVariant"===e?2:"FusionVariant"===e?3:-1)}}let io=(()=>{class t{constructor(e,i){var r;if(this.gql=e,this.route=i,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 g=this.queryRef.valueChanges;this.loading$=g.pipe((0,$.E)("loading"),(0,Cn.Z)(!0)),this.variant$=g.pipe((0,$.E)("data","variant")),this.subscribable={entityType:u.V9U.Variant,id:r}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.yLZ),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"variant"]],template:function(i,r){1&i&&(n.DNE(0,ao,4,1,"ng-container",0),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,r.variant$))},dependencies:[_.bT,Sn,Mn,kn,N.L9],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%}"]})}return t})();var oo=o(9543);let ro=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.variantId,entityType:u.V9U.Variant}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(i,r){1&i&&n.nrm(0,"cvc-event-feed",0),2&i&&n.Y8G("subscribable",r.subscribable)},dependencies:[oo.e],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var co=o(326);let so=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,co.p]})}return t})();const _o=[{path:"",component:qt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:io,data:{breadcrumb:"Summary"}},{path:"comments",component:Qt,data:{breadcrumb:"Comments"}},{path:"revisions",component:pe,data:{breadcrumb:"Revisions"}},{path:"flags",component:ee,data:{breadcrumb:"Flags"}},{path:"events",component:ro,data:{breadcrumb:"Events"}}]}];let lo=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[v.iI.forChild(_o),Zi,Ht,ie,ne,so,v.iI]})}return t})(),po=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,lo,T.Zw,nn.Y3,R.ZJ,s.pc,m.f3,V.$,un.MC,f.kT,w.m,q.W,M.Y,c.l,B.C,U.V,F.i,L.W,Z]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/445.0c27ca3df1eab994.js b/server/public/445.0c27ca3df1eab994.js new file mode 100644 index 000000000..29eddbca9 --- /dev/null +++ b/server/public/445.0c27ca3df1eab994.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[445],{9045:(Ln,K,r)=>{r.d(K,{J:()=>k});var l=r(6514),Z=r(505),c=r(3953),A=r(177),an=r(1188),on=r(5699),rn=r(1236),$=r(5103),G=r(8011),p=r(2387),P=r(3075);const V=(_,y,m)=>({rejected:_,submitted:y,accepted:m});function C(_,y){}function d(_,y){if(1&_&&(c.qex(0),c.j41(1,"a",5),c.DNE(2,C,0,0,"ng-template",6),c.k0s(),c.bVm()),2&_){const m=c.XpG(),v=c.sdS(2);c.R7$(),c.Y8G("routerLink",m.evidence.link),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function M(_,y){}function sn(_,y){if(1&_&&c.nrm(0,"cvc-evidence-popover",9),2&_){const m=c.XpG(3);c.Y8G("evidenceId",m.evidence.id)}}function n(_,y){if(1&_&&c.DNE(0,sn,1,1,"cvc-evidence-popover",8),2&_){const m=c.XpG(2);c.Y8G("ngIf",m.enablePopover)}}function cn(_,y){if(1&_&&(c.j41(0,"nz-tag",7),c.DNE(1,M,0,0,"ng-template",6),c.k0s(),c.DNE(2,n,1,1,"ng-template",null,3,c.C5r)),2&_){const m=c.sdS(3),v=c.XpG(),X=c.sdS(6);c.Y8G("ngClass",c.sMw(5,V,"REJECTED"===v.evidence.status,"SUBMITTED"===v.evidence.status,"ACCEPTED"===v.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",v.enablePopover?"hover":null),c.R7$(),c.Y8G("ngTemplateOutlet",X)}}function u(_,y){}function ln(_,y){if(1&_&&c.DNE(0,u,0,0,"ng-template",6),2&_){c.XpG();const m=c.sdS(2);c.Y8G("ngTemplateOutlet",m)}}function pn(_,y){if(1&_&&(c.j41(0,"cvc-icon-badges",10),c.nrm(1,"i",11),c.nI1(2,"entityColor"),c.nI1(3,"entityColor"),c.k0s(),c.EFF(4)),2&_){const m=c.XpG();c.Y8G("flagged",m.evidence.flagged)("entityColor",m.iconColor),c.R7$(),c.Y8G("nzTwotoneColor","REJECTED"===m.evidence.status?c.bMT(2,4,"Rejected"):c.bMT(3,6,"EvidenceItem")),c.R7$(3),c.SpI(" ",m.evidence.name,"\n")}}let k=(()=>{class _ extends l.s{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,Z.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(v){return new(v||_)};static#e=this.\u0275cmp=c.VBU({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(v,X){if(1&v&&c.DNE(0,d,3,2,"ng-container",4)(1,cn,4,9,"ng-template",null,0,c.C5r)(3,ln,1,1,"ng-template",null,1,c.C5r)(5,pn,5,8,"ng-template",null,2,c.C5r),2&v){const S=c.sdS(4);c.Y8G("ngIf",X.linked)("ngIfElse",S)}},dependencies:[A.YU,A.bT,A.T3,an.Wk,on.s,rn.L_,$.Dn,G.S,p.N,P.R],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}"]})}return _})()},4817:(Ln,K,r)=>{r.r(K),r.d(K,{FeaturesDetailModule:()=>yi});var l=r(177),Z=r(326),c=r(1896),A=r(8103),an=r(5736),on=r(4124),rn=r(1532),$=r(4917),G=r(513),p=r(7529),P=r(5103),V=r(3062),C=r(7685),d=r(7391),M=r(1188),sn=r(4873),n=r(3953);let cn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,sn.A]})}return e})();var u=r(9145),ln=r(664);let pn=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.featureId,entityType:u.T31.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-comment-list",0),2&a&&n.Y8G("commentable",o.commentable)},dependencies:[ln.D],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var k=r(1413),_=r(4412),y=r(9172),m=r(6977),v=r(4608),X=r(1305),S=r(1774),U=r(6389),Q=r(5930),q=r(3617),Fn=r(1236),Bn=r(9945),An=r(8821),Un=r(7428),Qn=r(6269),Wn=r(9765),Jn=r(5269),Hn=r(4126),nn=r(1635),Kn=r(1226),z=r(6354),I=r(5964),b=r(9199),L=r(9894),g=r(9417),T=r(8927),Y=r(2983),F=r(5703),Mn=r(5154),E=r(1997),Zn=r(8492),qn=r(3842),ne=r(8692),ee=r(4308),In=r(7051),te=r(4222),ae=r(1939),ie=r(5566),bn=r(3100);function oe(e,i){if(1&e&&(n.qex(0),n.nrm(1,"cvc-variant-tag",21),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("variant",t)}}function re(e,i){if(1&e&&n.DNE(0,oe,2,1,"ng-container",20),2&e){const t=n.XpG(3).ngrxLet;n.Y8G("ngForOf",t)}}function se(e,i){if(1&e&&(n.j41(0,"nz-alert",19),n.DNE(1,re,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&e){const t=n.sdS(2);n.Y8G("nzDescription",t)}}function ce(e,i){1&e&&(n.qex(0),n.DNE(1,se,3,1,"nz-alert",18),n.bVm())}function le(e,i){if(1&e&&(n.qex(0),n.DNE(1,ce,2,0,"ng-container",17),n.bVm()),2&e){const t=i.ngrxLet;n.R7$(),n.Y8G("ngIf",t&&t.length>0)}}function pe(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-alert",22),n.bIt("nzOnClose",function(){n.eBV(t);const o=n.XpG();return n.Njj(o.onSuccessBannerClose())}),n.k0s()}}function _e(e,i){if(1&e&&n.nrm(0,"nz-alert",23),2&e){n.XpG();const t=n.sdS(8);n.Y8G("nzDescription",t)}}function me(e,i){if(1&e&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function ue(e,i){if(1&e&&(n.j41(0,"ul"),n.DNE(1,me,2,1,"li",20),n.k0s()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.errorMessages)}}function ge(e,i){}function fe(e,i){1&e&&n.DNE(0,ge,0,0,"ng-template")}function de(e,i){if(1&e&&(n.qex(0),n.DNE(1,fe,1,0,null,25),n.bVm()),2&e){n.XpG();const t=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",t)}}function ze(e,i){}function he(e,i){1&e&&n.DNE(0,ze,0,0,"ng-template")}function ve(e,i){if(1&e&&(n.j41(0,"span",26),n.DNE(1,he,1,0,null,25),n.k0s()),2&e){n.XpG();const t=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",t)}}function Ce(e,i){if(1&e&&(n.j41(0,"button",27),n.EFF(1," Deprecate Variant "),n.k0s()),2&e){const t=n.XpG().ngrxLet,a=n.XpG();n.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10&&t.signedIn&&t.isEditor&&a.reason))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}function ye(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-form-buttons"),n.DNE(2,de,2,1,"ng-container",24)(3,ve,2,1,"ng-template",null,2,n.C5r)(5,Ce,2,3,"ng-template",null,3,n.C5r),n.k0s(),n.bVm()),2&e){const t=i.ngrxLet,a=n.sdS(4);n.R7$(2),n.Y8G("ngIf",t.signedIn&&t.isEditor)("ngIfElse",a)}}let en=class vn{constructor(i,t,a,o,s){this.deprecateFeatureGQL=i,this.featureDetailGQL=t,this.variantsForFeatureGQL=a,this.networkErrorService=o,this.viewerService=s,this.destroy$=new k.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateFeatureMutator=new Kn.E(o),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,L.s)(this)).subscribe(t=>{this.selectedOrg=t.mostRecentOrg}),void 0===this.featureId)throw new Error("Must pass a feature id into deprecate feature component");let i=this.variantsForFeatureGQL.fetch({featureId:this.featureId});this.undeprecatedVariants$=i.pipe((0,z.T)(({data:t})=>t.variants.nodes),(0,I.p)(b.kP),(0,z.T)(t=>t.filter(a=>!a.deprecated))),this.variantListLoading$=i.pipe((0,z.T)(({loading:t})=>t))}deprecateFeature(){if(this.errorMessages=[],this.reason&&this.comment&&this.featureId){let t=this.deprecateFeatureMutator.mutate(this.deprecateFeatureGQL,{deprecationReason:this.reason,comment:this.comment,featureId:this.featureId,organizationId:this.selectedOrg?.id},{refetchQueries:[{query:this.featureDetailGQL.document,variables:{featureId:this.featureId}}]});t.submitSuccess$.pipe((0,m.Q)(this.destroy$)).subscribe(a=>{a&&(this.success=!0,this.comment="")}),t.submitError$.pipe((0,m.Q)(this.destroy$)).subscribe(a=>{a.length>0&&(this.errorMessages=a)}),t.isSubmitting$.pipe((0,m.Q)(this.destroy$)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(t){return new(t||vn)(n.rXU(u.yR6),n.rXU(u.ULh),n.rXU(u.M5K),n.rXU(te.N),n.rXU(X.q))};static#e=this.\u0275cmp=n.VBU({type:vn,selectors:[["cvc-feature-deprecate-form"]],inputs:{featureId:"featureId"},standalone:!0,features:[n.aNF],decls:20,vars:10,consts:[["errorContents",""],["variantsToDeprecateTpl",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Feature deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Feature",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","warning","nzMessage","This action will also attempt to deprecate the following Variants and their Molecular Profiles:",3,"nzDescription",4,"nzSpaceItem"],["nzType","warning","nzMessage","This action will also attempt to deprecate the following Variants and their Molecular Profiles:",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"variant"],["nzBanner","","nzMessage","Feature deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Feature",3,"nzDescription"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate Features."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(t,a){if(1&t){const o=n.RV6();n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.j41(2,"nz-space",5),n.DNE(3,le,2,1,"ng-container",6),n.k0s()(),n.j41(4,"nz-card",7),n.DNE(5,pe,1,0,"nz-alert",8)(6,_e,1,1,"nz-alert",9)(7,ue,2,1,"ng-template",null,0,n.C5r),n.j41(9,"nz-form-item")(10,"nz-select",10),n.mxI("ngModelChange",function(h){return n.eBV(o),n.DH7(a.reason,h)||(a.reason=h),n.Njj(h)}),n.nrm(11,"nz-option",11)(12,"nz-option",12)(13,"nz-option",13),n.k0s()(),n.j41(14,"form",14),n.bIt("ngSubmit",function(){return n.eBV(o),n.Njj(a.deprecateFeature())}),n.j41(15,"cvc-comment-input-form",15),n.mxI("commentChange",function(h){return n.eBV(o),n.DH7(a.comment,h)||(a.comment=h),n.Njj(h)}),n.k0s(),n.j41(16,"nz-spin",16)(17,"nz-form-item")(18,"nz-form-control"),n.DNE(19,ye,7,2,"ng-container",6),n.k0s()()()()()}2&t&&(n.Y8G("nzSpinning",n.bMT(1,8,a.variantListLoading$)),n.R7$(3),n.Y8G("ngrxLet",a.undeprecatedVariants$),n.R7$(2),n.Y8G("ngIf",a.success),n.R7$(),n.Y8G("ngIf",a.errorMessages.length>0),n.R7$(4),n.R50("ngModel",a.reason),n.R7$(5),n.R50("comment",a.comment),n.R7$(),n.Y8G("nzSpinning",a.loading),n.R7$(3),n.Y8G("ngrxLet",a.viewer$))},dependencies:[l.MD,l.Sq,l.bT,l.T3,M.iI,g.YN,g.qT,g.BC,g.cb,g.vS,g.cV,g.X1,S.Nj,S.L9,T.PQ,p.Uq,p.e,T.CA,T.Ls,T.zS,q.$,q.Y,p.f3,G.Zw,G.aO,U.c,Q.p,Y.V,Y.a,F.Ti,F.cK,C.pc,C.U5,C.Dq,d.kT,Mn.Qt,Mn.LH,E.DH,E.ld,E.WI,Zn.M,qn.k,ae.l,ne.j,ee.I,ie.K,In.U,bn.V],encapsulation:2,changeDetection:0})};en=(0,nn.Cg)([(0,L.d)()],en);var xn=r(1845),Te=r(3075);const Fe=e=>({flagged:e}),Me=e=>["/features",e,"revise"],Ie=e=>({featureType:e}),be=()=>[];function xe(e,i){if(1&e&&(n.qex(0),n.EFF(1),n.bVm()),2&e){const t=n.XpG().ngIf;n.R7$(),n.SpI(" ",t.fullName," ")}}function Ge(e,i){if(1&e&&(n.j41(0,"button",19,2),n.EFF(2," Revise "),n.k0s()),2&e){const t=n.sdS(1),a=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,Me,a.id))("queryParams",n.eq3(5,Ie,a.featureInstance.__typename))("nzType",t.isActive?"primary":"default")}}function Ee(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ge,3,7,"button",18),n.k0s()),2&e){const t=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",t.signedIn)}}function Se(e,i){if(1&e&&(n.j41(0,"button",21,2),n.EFF(2," Flag "),n.k0s()),2&e){const t=n.sdS(1);n.Y8G("nzType",t.isActive?"primary":"default")}}function $e(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Se,3,1,"button",20),n.k0s()),2&e){const t=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",t.signedIn)}}function Pe(e,i){if(1&e&&(n.j41(0,"div",24),n.nrm(1,"cvc-feature-deprecate-form",25),n.k0s()),2&e){const t=n.XpG(6).ngIf;n.R7$(),n.Y8G("featureId",t.id)}}function De(e,i){if(1&e&&(n.j41(0,"button",23),n.EFF(1," Deprecate "),n.DNE(2,Pe,2,1,"ng-template",null,3,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG(5).ngIf;n.Y8G("disabled",a.deprecated)("nzPopoverContent",t)}}function Re(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,De,4,2,"button",22),n.k0s()),2&e){const t=n.XpG(2).ngrxLet;n.R7$(),n.Y8G("ngIf",t.isEditor)}}function je(e,i){1&e&&(n.qex(0),n.DNE(1,Re,2,1,"span",17),n.bVm())}function Ve(e,i){if(1&e&&n.nrm(0,"cvc-entity-subscription-button",27),2&e){const t=n.XpG(2).ngrxLet,a=n.XpG(3);n.Y8G("viewer",t)("subscribableId",a.subscribable.id)}}function Ye(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ve,1,2,"cvc-entity-subscription-button",26),n.k0s()),2&e){const t=n.XpG().ngrxLet,a=n.XpG(3);n.R7$(),n.Y8G("ngIf",t.signedIn&&a.subscribable)}}function Ne(e,i){if(1&e&&(n.j41(0,"nz-space",16),n.DNE(1,Ee,2,1,"span",17)(2,$e,2,1,"span",17)(3,je,2,0,"ng-container",4)(4,Ye,2,1,"span",17),n.k0s()),2&e){const t=n.XpG(2).ngIf;n.R7$(3),n.Y8G("ngIf","Gene"!=t.featureInstance.__typename)}}function Oe(e,i){if(1&e&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,Ne,5,1,"nz-space",15),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",t.viewer$)}}function we(e,i){if(1&e&&n.nrm(0,"nz-alert",28),2&e){n.XpG();const t=n.sdS(18);n.Y8G("nzMessage",t)}}function ke(e,i){if(1&e&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",29)),2&e){const t=n.XpG().ngIf;n.SpI(" This Feature has been deprecated for reason: ",n.bMT(1,2,t.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==t.deprecationActivity?null:t.deprecationActivity.parsedNote)||n.lJ4(4,be))}}function Xe(e,i){if(1&e&&(n.j41(0,"nz-col",30),n.nrm(1,"cvc-contributor-avatars",31),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("subscribable",t.subscribable)}}function Le(e,i){if(1&e&&(n.qex(0),n.nrm(1,"cvc-section-navigation",5),n.j41(2,"div",6),n.nI1(3,"ngrxPush"),n.j41(4,"nz-page-header",7)(5,"nz-page-header-title",8)(6,"span",9),n.EFF(7),n.nI1(8,"uppercase"),n.k0s(),n.nrm(9,"i",10),n.nI1(10,"entityColor"),n.EFF(11),n.k0s(),n.j41(12,"nz-page-header-subtitle"),n.DNE(13,xe,2,1,"ng-container",4),n.k0s(),n.DNE(14,Oe,2,1,"nz-page-header-extra",11),n.j41(15,"nz-page-header-content"),n.DNE(16,we,1,1,"nz-alert",12)(17,ke,3,5,"ng-template",null,0,n.C5r),n.j41(19,"cvc-tab-navigation",13),n.nI1(20,"ngrxPush"),n.DNE(21,Xe,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(23,"div",14),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&e){const t=i.ngIf,a=n.XpG();n.R7$(),n.Y8G("displayName",t.name),n.R7$(),n.Y8G("flags",n.bMT(3,10,a.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(18,Fe,t.flags.totalCount>0)),n.R7$(2),n.JRh(n.bMT(8,12,t.featureInstance.__typename)),n.R7$(2),n.Y8G("nzTwotoneColor",n.bMT(10,14,"Feature")),n.R7$(2),n.SpI(" ",t.name," "),n.R7$(2),n.Y8G("ngIf",t.fullName),n.R7$(),n.Y8G("ngrxLet",a.viewer$),n.R7$(2),n.Y8G("ngIf",t.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,16,a.tabs$))}}let Be=(()=>{class e{constructor(t,a,o){this.gql=t,this.viewerService=a,this.route=o,this.destroy$=new k.B,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=s=>"curator"==s.role,this.filterEditors=s=>"editor"==s.role||"admin"==s.role,this.tabs$=new _.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(s=>{let h=this.gql.watch({featureId:+s.featureId}).valueChanges;this.loading$=h.pipe((0,v.E)("loading"),(0,y.Z)(!0)),this.feature$=h.pipe((0,v.E)("data","feature")),this.flagsTotal$=this.feature$.pipe((0,v.E)("flags","totalCount")),this.feature$.pipe((0,m.Q)(this.destroy$)).subscribe({next:f=>{this.tabs$.next(this.defaultTabs.map(w=>"Revisions"===w.tabLabel?{badgeCount:f?.revisions.totalCount,...w}:"Flags"===w.tabLabel?{badgeCount:f?.flags.totalCount,...w}:"Comments"===w.tabLabel?{badgeCount:f?.comments.totalCount,badgeColor:"#cccccc",...w}:w))}}),this.subscribable={id:+s.featureId,entityType:u.V9U.Feature}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(u.ULh),n.rXU(X.q),n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["features-detail"]],decls:2,vars:3,consts:[["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateFeatureForm",""],[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-typography","",2,"color","#bbb"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["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 Feature","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Feature","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateFeature"],[3,"featureId"],["typename","Gene",3,"viewer","subscribableId",4,"ngIf"],["typename","Gene",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,o){1&a&&(n.DNE(0,Le,25,20,"ng-container",4),n.nI1(1,"async")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.YU,l.bT,M.n3,M.Wk,M.wQ,S.Nj,G.aO,U.c,Q.p,P.Dn,V.WB,V.k9,V.CO,V.zR,V.ov,C.U5,C.Dq,d.Di,p.Uq,q.Y,Fn.L_,Bn.N,An.H,Un.v,Qn.f,Wn.n,Jn.o,Hn.p,en,l.Jj,l.Pc,S.L9,xn.f,Te.R],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}.deprecateFeature[_ngcontent-%COMP%]{width:700px}"]})}return e})(),Ae=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,Z.p]})}return e})();var Ue=r(9543);let Qe=(()=>{class e{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-event-feed",0),2&a&&n.Y8G("subscribable",o.subscribable)},dependencies:[Ue.e],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var We=r(1912),Je=r(7268);let He=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,F.Ti,C.pc,We.i3,Je.G]})}return e})();var Ke=r(4097);let Ze=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:u.lD4.Feature,id:+this.route.snapshot.params.featureId}}ngOnInit(){}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-flag-list-and-filter",0),2&a&&n.Y8G("flaggable",o.flaggable)},dependencies:[Ke.b],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var qe=r(2617),D=r(5699),nt=r(2968),et=r(9438),tt=r(869),at=r(6371);let it=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,qe.rD,F.Ti,C.pc,D.T,d.kT,et.Yb,nt.K,tt.S,at.O]})}return e})();var ot=r(4055);let rt=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.subject={id:+a.featureId,entityType:u.BlQ.Feature}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(a,o){1&a&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&n.Y8G("moderated",o.subject)},dependencies:[ot.B],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var x=r(2e3),W=r(8254),N=r(2142),J=r(7054),H=r(1209),R=r(1011),st=r(5493),Gn=r(2986),_n=r(6912);let En=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,G.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,d.kT,Gn.IJ,Y.V,$.i,In.U,N.x,st.G,_n.l]})}return e})();var O=r(9541),j=r(9247);let Sn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,F.Ti,O.hM,j.$G,p.f3,j.$G,d.kT,x.WF]})}return e})();var $n=r(9590),tn=r(2839),ct=r(996);let Pn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,G.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,Y.V,d.kT,$.i,ct.o,N.x]})}return e})();var mn=r(6719),B=r(7855),un=r(9062),Dn=r(7679);const lt=()=>[8,8];function pt(e,i){if(1&e&&(n.j41(0,"p",15),n.EFF(1),n.k0s()),2&e){const t=n.XpG(2);n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.gene.description," ")}}function _t(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",16)}function mt(e,i){1&e&&n.nrm(0,"cvc-source-tag",18),2&e&&n.Y8G("source",i.$implicit)}function ut(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,mt,1,1,"cvc-source-tag",17),n.k0s(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",t.gene.sources)}}function gt(e,i){1&e&&(n.j41(0,"span",19),n.EFF(1,"None specified"),n.k0s())}function ft(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function dt(e,i){if(1&e&&(n.j41(0,"nz-descriptions-item",20),n.DNE(1,ft,2,1,"nz-tag",21),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("ngForOf",t.gene.featureAliases)}}function zt(e,i){1&e&&(n.j41(0,"span",19),n.EFF(1,"None specified"),n.k0s())}function ht(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-descriptions",6)(4,"nz-descriptions-item",7),n.DNE(5,pt,2,2,"p",8)(6,_t,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(8,"nz-col",5)(9,"nz-descriptions",9)(10,"nz-descriptions-item",10),n.DNE(11,ut,3,1,"ng-container",11)(12,gt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(14,dt,2,1,"nz-descriptions-item",12)(15,zt,2,0,"ng-template",null,2,n.C5r),n.j41(17,"nz-descriptions-item",13)(18,"cvc-tag-list")(19,"cvc-link-tag",14),n.EFF(20," DGIdb "),n.k0s(),n.j41(21,"cvc-link-tag",14),n.EFF(22," ProteinPaint "),n.k0s()()()()()(),n.bVm()),2&e){const t=n.sdS(7),a=n.sdS(13),o=n.sdS(16),s=n.XpG();n.R7$(),n.Y8G("nzGutter",n.lJ4(13,lt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",s.gene.description)("ngIfElse",t),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",s.gene.sources.length>0)("ngIfElse",a),n.R7$(3),n.Y8G("ngIf",s.gene.featureAliases.length>0)("ngIfElse",o),n.R7$(5),n.Y8G("href","https://dgidb.org/results?searchType=gene&searchTerms="+s.gene.name)("tooltip","View "+s.gene.name+" on DGIdb"),n.R7$(2),n.Y8G("href","https://pecan.stjude.cloud/variants/protein-paint/?gene="+s.gene.name)("tooltip","View "+s.gene.name+" on ProteinPaint")}}let gn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-gene-base-summary"]],inputs:{gene:"gene"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noDescription",""],["noSources",""],["noAliases",""],[4,"ngIf"],[3,"nzGutter"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases",4,"ngIf","ngIfElse"],["nzTitle","Resources"],[3,"href","tooltip"],["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(a,o){1&a&&n.DNE(0,ht,23,14,"ng-container",3),2&a&&n.Y8G("ngIf",o.gene)},dependencies:[l.MD,l.Sq,l.bT,p.f3,p.Uq,p.e,x.WF,x.xA,x.gr,d.kT,d.Di,C.pc,D.T,D.s,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,Dn.a,$.i]})}return e})(),vt=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,x.WF,d.kT,C.pc,D.T,O.hM,W.V,N.x,J.L,H.k,$n.R,tn.m,En,Sn,Pn,gn]})}return e})();var Ct=r(9354),Rn=r(8139),jn=r(6408);const yt=()=>[8,16],Tt=()=>[8,8],Ft=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Mt(e,i){if(1&e&&(n.j41(0,"p",18),n.EFF(1),n.k0s()),2&e){const t=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.factor.description," ")}}function It(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",19)}function bt(e,i){1&e&&n.nrm(0,"cvc-source-tag",21),2&e&&n.Y8G("source",i.$implicit)}function xt(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,bt,1,1,"cvc-source-tag",20),n.k0s(),n.bVm()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("ngForOf",t.factor.sources)}}function Gt(e,i){1&e&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Et(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function St(e,i){if(1&e&&(n.qex(0),n.DNE(1,Et,2,1,"nz-tag",23),n.bVm()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.factor.featureAliases)}}function $t(e,i){1&e&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Pt(e,i){if(1&e&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+t.factor.ncitId)("tooltip","View "+t.factor.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",t.factor.ncitId," ")}}function Dt(e,i){if(1&e&&(n.EFF(0," Created "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.factor.creationActivity.createdAt),") ")}}function Rt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,Dt,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.factor.creationActivity.user)}}function jt(e,i){if(1&e&&(n.EFF(0," Deprecated "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.factor.deprecationActivity.createdAt),") ")}}function Vt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,jt,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.factor.deprecationActivity.user)}}let Vn=(()=>{class e{ngOnInit(){if(null==this.factor)throw new Error("Must pass a Factor into factor summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-factor-summary"]],inputs:{factor:"factor",featureId:"featureId"},standalone:!0,features:[n.aNF],decls:26,vars:18,consts:[["noDescription",""],["noSources",""],["noAliases",""],["createdTitle",""],["deprecatedTitle",""],[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"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases"],["nzTitle","Resources",4,"ngIf"],[4,"ngIf"],[3,"ncitDetails"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"nzTitle"],[3,"user"]],template:function(a,o){if(1&a&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,Mt,2,2,"p",10)(7,It,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",7)(10,"nz-descriptions",11)(11,"nz-descriptions-item",12),n.DNE(12,xt,3,1,"ng-container",13)(13,Gt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"nz-descriptions-item",14),n.DNE(16,St,2,1,"ng-container",13),n.k0s(),n.DNE(17,$t,2,0,"ng-template",null,2,n.C5r)(19,Pt,4,3,"nz-descriptions-item",15),n.k0s()()()(),n.j41(20,"nz-col",6)(21,"nz-descriptions",8),n.DNE(22,Rt,6,2,"ng-container",16)(23,Vt,6,2,"ng-container",16),n.k0s(),n.nrm(24,"br")(25,"cvc-ncit-details",17),n.k0s()()),2&a){const s=n.sdS(8),h=n.sdS(14),f=n.sdS(18);n.Y8G("nzGutter",n.lJ4(15,yt)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(16,Tt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.description)("ngIfElse",s),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.sources.length>0)("ngIfElse",h),n.R7$(4),n.Y8G("ngIf",o.factor.featureAliases.length>0)("ngIfElse",f),n.R7$(3),n.Y8G("ngIf",o.factor.ncitId),n.R7$(2),n.Y8G("nzColumn",n.lJ4(17,Ft)),n.R7$(),n.Y8G("ngIf",o.factor.creationActivity),n.R7$(),n.Y8G("ngIf",o.factor.deprecationActivity),n.R7$(2),n.Y8G("ncitDetails",o.factor.ncitDetails)}},dependencies:[l.MD,l.Sq,l.bT,p.f3,p.Uq,p.e,x.WF,x.xA,x.gr,d.kT,d.Di,C.pc,D.T,D.s,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,Dn.a,Ct.e,$.i,Rn.N,tn.m,jn.r],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%}"]})}return e})();var fn=r(3245);const Yn=()=>[8,16],Yt=()=>[8,8],Nt=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1}),Nn=e=>({$implicit:e});function Ot(e,i){if(1&e&&(n.j41(0,"p",21),n.EFF(1),n.k0s()),2&e){const t=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.fusion.description," ")}}function wt(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",22)}function kt(e,i){1&e&&n.nrm(0,"cvc-source-tag",24),2&e&&n.Y8G("source",i.$implicit)}function Xt(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,kt,1,1,"cvc-source-tag",23),n.k0s(),n.bVm()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("ngForOf",t.fusion.sources)}}function Lt(e,i){1&e&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Bt(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function At(e,i){if(1&e&&(n.qex(0),n.DNE(1,Bt,2,1,"nz-tag",26),n.bVm()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.fusion.featureAliases)}}function Ut(e,i){1&e&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Qt(e,i){if(1&e&&(n.EFF(0," Created "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.fusion.creationActivity.createdAt),") ")}}function Wt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",27),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Qt,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.fusion.creationActivity.user)}}function Jt(e,i){if(1&e&&(n.EFF(0," Deprecated "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.fusion.deprecationActivity.createdAt),") ")}}function Ht(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",27),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Jt,4,3,"ng-template",null,5,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.fusion.deprecationActivity.user)}}function Kt(e,i){if(1&e&&n.nrm(0,"cvc-gene-base-summary",31),2&e){const t=n.XpG(2);n.Y8G("gene",t.fusion.fivePrimeGene)}}function Zt(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",32),2&e){const t=n.XpG(2);n.Y8G("feature",t.fusion.fivePrimeGene)}}function qt(e,i){if(1&e&&(n.j41(0,"nz-card",29),n.DNE(1,Kt,1,1,"cvc-gene-base-summary",30)(2,Zt,1,1,"ng-template",null,6,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG();n.Y8G("nzExtra",t),n.R7$(),n.Y8G("ngIf",a.fusion.fivePrimeGene)}}function na(e,i){1&e&&n.eu8(0)}function ea(e,i){if(1&e&&(n.j41(0,"nz-card",29),n.nI1(1,"enumToTitle"),n.DNE(2,na,1,0,"ng-container",33),n.k0s()),2&e){const t=n.XpG(),a=n.sdS(32);n.Y8G("nzExtra",n.bMT(1,3,t.fusion.fivePrimePartnerStatus)),n.R7$(2),n.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",n.eq3(5,Nn,t.fusion.fivePrimePartnerStatus))}}function ta(e,i){if(1&e&&n.nrm(0,"cvc-gene-base-summary",31),2&e){const t=n.XpG(2);n.Y8G("gene",t.fusion.threePrimeGene)}}function aa(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",32),2&e){const t=n.XpG(2);n.Y8G("feature",t.fusion.threePrimeGene)}}function ia(e,i){if(1&e&&(n.j41(0,"nz-card",34),n.DNE(1,ta,1,1,"cvc-gene-base-summary",30)(2,aa,1,1,"ng-template",null,7,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG();n.Y8G("nzExtra",t),n.R7$(),n.Y8G("ngIf",a.fusion.threePrimeGene)}}function oa(e,i){1&e&&n.eu8(0)}function ra(e,i){if(1&e&&(n.j41(0,"nz-card",34),n.nI1(1,"enumToTitle"),n.DNE(2,oa,1,0,"ng-container",33),n.k0s()),2&e){const t=n.XpG(),a=n.sdS(32);n.Y8G("nzExtra",n.bMT(1,3,t.fusion.threePrimePartnerStatus)),n.R7$(2),n.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",n.eq3(5,Nn,t.fusion.threePrimePartnerStatus))}}function sa(e,i){1&e&&n.EFF(0," There are Multiple possible fusion partners. ")}function ca(e,i){1&e&&n.EFF(0," The fusion partner is unknown. ")}function la(e,i){if(1&e&&n.DNE(0,sa,1,0)(1,ca,1,0),2&e){let t;n.vxM("MULTIPLE"===(t=i.$implicit)?0:"UNKNOWN"===t?1:-1)}}let On=(()=>{class e{ngOnInit(){if(null==this.fusion)throw new Error("Must pass a Fusion into fusion summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into fusion summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-fusion-summary"]],inputs:{fusion:"fusion",featureId:"featureId"},standalone:!0,features:[n.aNF],decls:33,vars:22,consts:[["noDescription",""],["noSources",""],["noAliases",""],["partnerStatusDescription",""],["createdTitle",""],["deprecatedTitle",""],["fivePrimeExtra",""],["threePrimeExtra",""],[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"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases"],[4,"ngIf"],["nzTitle","5' Partner",3,"nzExtra",4,"ngIf"],["nzTitle","3' Partner",3,"nzExtra",4,"ngIf"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"nzTitle"],[3,"user"],["nzTitle","5' Partner",3,"nzExtra"],[3,"gene",4,"ngIf"],[3,"gene"],[3,"feature"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzTitle","3' Partner",3,"nzExtra"]],template:function(a,o){if(1&a&&(n.j41(0,"nz-row",8)(1,"nz-col",9)(2,"nz-row",8)(3,"nz-col",10)(4,"nz-descriptions",11)(5,"nz-descriptions-item",12),n.DNE(6,Ot,2,2,"p",13)(7,wt,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",10)(10,"nz-descriptions",14)(11,"nz-descriptions-item",15),n.DNE(12,Xt,3,1,"ng-container",16)(13,Lt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"nz-descriptions-item",17),n.DNE(16,At,2,1,"ng-container",16),n.k0s(),n.DNE(17,Ut,2,0,"ng-template",null,2,n.C5r),n.k0s()()()(),n.j41(19,"nz-col",9)(20,"nz-descriptions",11),n.DNE(21,Wt,6,2,"ng-container",18)(22,Ht,6,2,"ng-container",18),n.k0s(),n.nrm(23,"br"),n.k0s()(),n.j41(24,"nz-row",8)(25,"nz-col",9),n.DNE(26,qt,4,2,"nz-card",19)(27,ea,3,7,"nz-card",19),n.k0s(),n.j41(28,"nz-col",9),n.DNE(29,ia,4,2,"nz-card",20)(30,ra,3,7,"nz-card",20)(31,la,2,1,"ng-template",null,3,n.C5r),n.k0s()()),2&a){const s=n.sdS(8),h=n.sdS(14),f=n.sdS(18);n.Y8G("nzGutter",n.lJ4(18,Yn)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(19,Yt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.fusion.description)("ngIfElse",s),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.fusion.sources.length>0)("ngIfElse",h),n.R7$(4),n.Y8G("ngIf",o.fusion.featureAliases.length>0)("ngIfElse",f),n.R7$(4),n.Y8G("nzColumn",n.lJ4(20,Nt)),n.R7$(),n.Y8G("ngIf",o.fusion.creationActivity),n.R7$(),n.Y8G("ngIf",o.fusion.deprecationActivity),n.R7$(2),n.Y8G("nzGutter",n.lJ4(21,Yn)),n.R7$(2),n.Y8G("ngIf",o.fusion.fivePrimeGene),n.R7$(),n.Y8G("ngIf",!o.fusion.fivePrimeGene),n.R7$(2),n.Y8G("ngIf",o.fusion.threePrimeGene),n.R7$(),n.Y8G("ngIf",!o.fusion.threePrimeGene)}},dependencies:[l.MD,l.Sq,l.bT,l.T3,p.f3,p.Uq,p.e,x.WF,x.xA,x.gr,d.kT,d.Di,C.pc,D.T,D.s,F.Ti,F.cK,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,$.i,xn.f,Rn.N,tn.m,jn.r,gn,_n.l,fn._],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%}"]})}return e})(),pa=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,G.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,Y.V,d.kT,$.i,_n.l,N.x]})}return e})(),_a=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,x.WF,d.kT,C.pc,D.T,O.hM,W.V,N.x,J.L,H.k,$n.R,tn.m,En,Sn,Pn,vt,Vn,On,pa]})}return e})();var wn=r(152),ma=r(505);function ua(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",13),2&e){const t=n.XpG(4);n.Y8G("feature",t.feature)}}function ga(e,i){if(1&e&&(n.j41(0,"span",10),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function fa(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",10),n.EFF(2),n.k0s(),n.j41(3,"span",10),n.EFF(4," \xa0 "),n.DNE(5,ua,1,1,"cvc-feature-tag",11),n.EFF(6," Variants "),n.k0s(),n.DNE(7,ga,2,1,"span",12),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf,o=n.XpG();n.R7$(2),n.SpI(" ",t," Total "),n.R7$(3),n.Y8G("ngIf",o.feature),n.R7$(2),n.Y8G("ngIf",t>a.length)}}function da(e,i){if(1&e&&(n.DNE(0,fa,8,3,"ng-container",5),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalVariants$))}}function za(e,i){if(1&e){const t=n.RV6();n.j41(0,"i",23),n.bIt("click",function(){n.eBV(t);const o=n.XpG(4);return o.variantNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function ha(e,i){if(1&e&&n.DNE(0,za,1,0,"i",22),2&e){const t=n.XpG(3);n.Y8G("ngIf",t.variantNameFilter)}}function va(e,i){if(1&e&&n.nrm(0,"nz-option",26),2&e){const t=i.$implicit;n.Y8G("nzLabel",t.name)("nzValue",t)}}function Ca(e,i){if(1&e&&(n.j41(0,"div",27),n.nrm(1,"i",28),n.EFF(2),n.k0s()),2&e){const t=i.$implicit,a=n.XpG(4);n.R7$(),n.Y8G("nzTwotoneColor",a.iconColor),n.R7$(),n.SpI(" ",t.nzLabel," ")}}function ya(e,i){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"nz-select",24),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.variantTypeFilter,o)||(s.variantTypeFilter=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(3);return n.Njj(o.onModelUpdated())}),n.DNE(2,va,1,2,"nz-option",25),n.k0s(),n.DNE(3,Ca,3,2,"ng-template",null,3,n.C5r),n.bVm()}if(2&e){const t=i.ngIf,a=n.sdS(4),o=n.XpG(3);n.R7$(),n.Y8G("nzDropdownMatchSelectWidth",!1),n.R50("ngModel",o.variantTypeFilter),n.Y8G("nzCustomTemplate",a),n.R7$(),n.Y8G("ngForOf",t)}}function Ta(e,i){if(1&e){const t=n.RV6();n.j41(0,"form",14)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Name Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",15)(6,"input",16),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.variantNameFilter,o)||(s.variantNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,ha,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Variant Type"),n.k0s(),n.j41(12,"nz-form-control"),n.DNE(13,ya,5,4,"ng-container",5),n.nI1(14,"ngrxPush"),n.k0s()(),n.j41(15,"nz-form-item")(16,"nz-form-label"),n.EFF(17," No Variant Type "),n.k0s(),n.j41(18,"nz-form-control")(19,"label",17),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.hasNoVariantType,o)||(s.hasNoVariantType=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.k0s()()(),n.j41(20,"nz-form-item")(21,"nz-form-label"),n.EFF(22,"Order By"),n.k0s(),n.j41(23,"nz-form-control")(24,"nz-select",18),n.bIt("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.Njj(s.onVariantSortOrderChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.sortBy,o)||(s.sortBy=o),n.Njj(o)}),n.nrm(25,"nz-option",19)(26,"nz-option",20)(27,"nz-option",21),n.k0s()()()()}if(2&e){const t=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",t)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.variantNameFilter),n.R7$(7),n.Y8G("ngIf",n.bMT(14,6,a.menuVariantTypes$)),n.R7$(6),n.R50("ngModel",a.hasNoVariantType),n.R7$(5),n.R50("ngModel",a.sortBy)}}function Fa(e,i){if(1&e&&n.nrm(0,"cvc-variant-tag",30),2&e){const t=n.XpG().$implicit;n.Y8G("variant",t)}}function Ma(e,i){if(1&e&&(n.qex(0),n.DNE(1,Fa,1,1,"cvc-variant-tag",29),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function Ia(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",32)(1,"button",33),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2," Load More "),n.k0s(),n.j41(3,"nz-select",34),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",35)(5,"nz-option",36)(6,"nz-option",37),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function ba(e,i){if(1&e&&(n.qex(0),n.DNE(1,Ia,7,4,"nz-row",31),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function xa(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",6),n.DNE(2,da,2,3,"ng-template",null,0,n.C5r)(4,Ta,28,8,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",7)(8,"cvc-tag-list",8),n.DNE(9,Ma,2,1,"ng-container",9),n.k0s()()(),n.DNE(10,ba,2,1,"ng-container",5),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.sdS(5),s=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,s.pageInfo$))}}let dn=class Cn{constructor(i,t){this.gql=i,this.variantTypeGql=t,this.sortBy=u.GUs.Name,this.variantTypeFilter=[],this.hasNoVariantType=!1,this.debouncedQuery=new k.B,this.pageSize=50,this.iconColor=(0,ma.P)("VariantType")}ngOnInit(){if(void 0===this.feature)throw new Error("Must pass a feature into variant menu component.");this.featureId=this.feature.id,this.initialQueryVars={featureId:this.featureId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:t,loading:a})=>a&&!t),(0,I.p)(b.kP),(0,y.Z)(!0));const i=this.result$.pipe((0,z.T)(t=>t.data?.variants),(0,I.p)(b.kP));this.pageInfo$=i.pipe((0,z.T)(t=>t.pageInfo),(0,I.p)(b.kP)),this.menuVariants$=i.pipe((0,z.T)(t=>t.edges.map(a=>a.node),(0,I.p)(b.kP))),this.totalVariants$=i.pipe((0,z.T)(t=>t.totalCount)),this.debouncedQuery.pipe((0,wn.B)(500),(0,L.s)(this)).subscribe(t=>this.refresh()),this.menuVariantTypes$=this.variantTypeGql.watch({featureId:this.featureId}).valueChanges.pipe((0,z.T)(t=>t.data?.variantTypes.edges?.map(a=>a.node)),(0,I.p)(b.kP))}onModelUpdated(){this.debouncedQuery.next()}onVariantSortOrderChanged(i){this.queryRef$.refetch({first:this.pageSize,sortBy:{column:i,direction:i==u.GUs.CoordinateEnd?u.UEL.Desc:u.UEL.Asc}})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into variant menu component.");this.queryRef$.refetch({featureId:this.featureId,variantName:this.variantNameFilter,hasNoVariantType:this.hasNoVariantType,variantTypeIds:this.variantTypeFilter?.map(i=>i.id),first:this.pageSize,sortBy:{column:this.sortBy,direction:u.UEL.Asc}})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||Cn)(n.rXU(u.krZ),n.rXU(u.kBo))};static#e=this.\u0275cmp=n.VBU({type:Cn,selectors:[["cvc-variant-menu"]],inputs:{feature:"feature"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],["variantTypeTemplate",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"feature",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"feature"],["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,"ngModelChange","ngModel"],["nz-checkbox","","name","noVt",3,"ngModelChange","ngModel"],["nzSize","small","id","variant-sort-order","name","sortBy",2,"width","115px",3,"ngModelChange","ngModel"],["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,"ngModelChange","nzDropdownMatchSelectWidth","ngModel","nzCustomTemplate"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[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,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.DNE(2,xa,12,6,"ng-container",5),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuVariants$)))},dependencies:[l.Sq,l.bT,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,G.aO,U.c,Q.p,p.Uq,p.e,F.cK,P.Dn,T.CA,T.Ls,T.Mo,T.zS,R.Sy,R.tg,R.vN,E.ld,E.WI,d.Di,Gn.$g,Y.a,bn.V,B.M,fn._,S.L9],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}"]})};dn=(0,nn.Cg)([(0,L.d)()],dn);var Ga=r(5473);function Ea(e,i){if(1&e&&(n.j41(0,"span",9),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function Sa(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",9),n.EFF(2),n.k0s(),n.DNE(3,Ea,2,1,"span",10),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf;n.R7$(2),n.SpI("",t," Total"),n.R7$(),n.Y8G("ngIf",t>a.length)}}function $a(e,i){if(1&e&&(n.DNE(0,Sa,4,2,"ng-container",4),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalMolecularProfiles$))}}function Pa(e,i){if(1&e){const t=n.RV6();n.j41(0,"i",20),n.bIt("click",function(){n.eBV(t);const o=n.XpG(4);return o.mpNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function Da(e,i){if(1&e&&n.DNE(0,Pa,1,0,"i",19),2&e){const t=n.XpG(3);n.Y8G("ngIf",t.mpNameFilter)}}function Ra(e,i){if(1&e){const t=n.RV6();n.j41(0,"form",11)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",12)(6,"input",13),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.mpNameFilter,o)||(s.mpNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,Da,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Show"),n.k0s(),n.j41(12,"nz-form-control")(13,"nz-select",14),n.bIt("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.Njj(s.onMolecularProfileStatusFilterChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.statusFilter,o)||(s.statusFilter=o),n.Njj(o)}),n.nrm(14,"nz-option",15)(15,"nz-option",16)(16,"nz-option",17)(17,"nz-option",18),n.k0s()()()()}if(2&e){const t=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",t)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.mpNameFilter),n.R7$(7),n.R50("ngModel",a.statusFilter)}}function ja(e,i){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",22),2&e){const t=n.XpG().$implicit;n.Y8G("molecularProfile",t)}}function Va(e,i){if(1&e&&(n.qex(0),n.DNE(1,ja,1,1,"cvc-molecular-profile-tag",21),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function Ya(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",24)(1,"button",25),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2,"Load More "),n.k0s(),n.j41(3,"nz-select",26),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",27)(5,"nz-option",28)(6,"nz-option",29),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function Na(e,i){if(1&e&&(n.qex(0),n.DNE(1,Ya,7,4,"nz-row",23),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function Oa(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",5),n.DNE(2,$a,2,3,"ng-template",null,0,n.C5r)(4,Ra,18,4,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",6)(8,"cvc-tag-list",7),n.DNE(9,Va,2,1,"ng-container",8),n.k0s()()(),n.DNE(10,Na,2,1,"ng-container",4),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.sdS(5),s=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,s.pageInfo$))}}let zn=class yn{constructor(i){this.gql=i,this.statusFilter=u.oGI.All,this.debouncedQuery=new k.B,this.pageSize=50}ngOnInit(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.initialQueryVars={featureId:this.featureId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:i,loading:t})=>t&&!i),(0,I.p)(b.kP),(0,y.Z)(!0)),this.connection$=this.result$.pipe((0,z.T)(i=>i.data?.molecularProfiles),(0,I.p)(b.kP)),this.pageInfo$=this.connection$.pipe((0,z.T)(i=>i.pageInfo),(0,I.p)(b.kP)),this.menuMolecularProfiles$=this.connection$.pipe((0,z.T)(i=>i.edges.map(t=>t.node),(0,I.p)(b.kP))),this.totalMolecularProfiles$=this.connection$.pipe((0,z.T)(i=>i.totalCount)),this.debouncedQuery.pipe((0,wn.B)(500),(0,L.s)(this)).subscribe(i=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onMolecularProfileStatusFilterChanged(i){this.queryRef$.refetch({first:this.pageSize,evidenceStatusFilter:i})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.queryRef$.refetch({featureId:this.featureId,mpName:this.mpNameFilter,first:this.pageSize})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||yn)(n.rXU(u.J9f))};static#e=this.\u0275cmp=n.VBU({type:yn,selectors:[["cvc-molecular-profile-menu"]],inputs:{featureId:"featureId"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["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,"ngModelChange","ngModel"],["nzSize","small","id","status-filter","name","statusFilter",2,"width","320px",3,"ngModelChange","ngModel"],["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,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",3),n.nI1(1,"ngrxPush"),n.DNE(2,Oa,12,6,"ng-container",4),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuMolecularProfiles$)))},dependencies:[l.Sq,l.bT,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,G.aO,U.c,Q.p,p.Uq,p.e,F.cK,P.Dn,T.CA,T.Ls,T.Mo,T.zS,R.Sy,R.tg,R.vN,E.ld,E.WI,Y.a,d.Di,Ga.z,B.M,S.L9],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}"]})};zn=(0,nn.Cg)([(0,L.d)()],zn);let wa=(()=>{class e{constructor(){}parse(t){const a={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/",wikipathways:"http://wikipathways.org/index.php/Pathway:",pid:null,netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},o=t.pathway||[],s=[];let h;return Object.keys(o).forEach(function(f){Array.isArray(o[f])||(o[f]=[o[f]]),o[f].forEach(function(w,Xn){h=a[f]+o[f][Xn].id,null===a[f]&&(h=null),s.push({name:o[f][Xn].name,link:h,src:f})})}),t.pathway=s,t.pathwayList=s.map(f=>f.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(f=>f.desc),t}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275prov=n.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ka=()=>({xxl:2,xl:2,lg:2,md:1,sm:1,xs:1}),Xa=()=>({xxl:4,xl:4,lg:2,md:2,sm:1,xs:1}),kn=()=>({x:"100%",y:"200px"});function La(e,i){if(1&e&&(n.qex(0),n.j41(1,"div",9)(2,"nz-descriptions",10)(3,"nz-descriptions-item",11),n.EFF(4),n.k0s(),n.j41(5,"nz-descriptions-item",12),n.EFF(6),n.k0s()(),n.j41(7,"nz-descriptions",10)(8,"nz-descriptions-item",13),n.EFF(9),n.k0s(),n.j41(10,"nz-descriptions-item",14),n.EFF(11),n.k0s(),n.j41(12,"nz-descriptions-item",15),n.EFF(13),n.k0s(),n.j41(14,"nz-descriptions-item",16),n.EFF(15),n.k0s()(),n.j41(16,"nz-descriptions",17)(17,"nz-descriptions-item",18),n.EFF(18),n.k0s(),n.j41(19,"nz-descriptions-item",19)(20,"p",20),n.EFF(21),n.k0s()(),n.j41(22,"nz-descriptions-item",21)(23,"p",20),n.EFF(24),n.k0s()()()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("nzColumn",n.lJ4(15,ka)),n.R7$(2),n.Lme(" ",t.info.symbol," (ID: ",t.info._id,") "),n.R7$(2),n.SpI(" ",t.info.uniprot["Swiss-Prot"]," "),n.R7$(),n.Y8G("nzColumn",n.lJ4(16,Xa)),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.chr," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.strand," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.start," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.end," "),n.R7$(),n.Y8G("nzColumn",1),n.R7$(2),n.SpI(" ",t.info.alias.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",t.info.interproList.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",t.info.pathwayList.join(", ")," ")}}function Ba(e,i){if(1&e&&(n.qex(0),n.j41(1,"div",9)(2,"p",20),n.EFF(3),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("nzEllipsisRows",12),n.R7$(),n.SpI(" ",t.info.summary," ")}}function Aa(e,i){if(1&e&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.EFF(4),n.k0s(),n.j41(5,"td"),n.EFF(6),n.k0s()()),2&e){const t=i.$implicit;n.R7$(2),n.SpI(" ",t.short_desc," "),n.R7$(2),n.SpI(" ",t.desc," "),n.R7$(2),n.SpI(" ",t.id," ")}}function Ua(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-table",22,0)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Name"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Description"),n.k0s(),n.j41(9,"th"),n.EFF(10,"ID"),n.k0s()()(),n.j41(11,"tbody"),n.DNE(12,Aa,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("nzData",t.info.interpro)("nzScroll",n.lJ4(4,kn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Qa(e,i){if(1&e&&(n.j41(0,"a",28),n.EFF(1),n.k0s()),2&e){const t=n.XpG().$implicit;n.FS9("href",null==t?null:t.link,n.B4B),n.R7$(),n.SpI(" ",t.src," ")}}function Wa(e,i){if(1&e&&n.EFF(0),2&e){const t=n.XpG().$implicit;n.SpI(" ",t.src," ")}}function Ja(e,i){if(1&e&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td",26),n.DNE(4,Qa,2,2,"a",27)(5,Wa,1,1,"ng-template",null,2,n.C5r),n.k0s()()),2&e){const t=i.$implicit,a=n.sdS(6);n.R7$(2),n.SpI(" ",t.name," "),n.R7$(2),n.Y8G("ngIf",null==t?null:t.link)("ngIfElse",a)}}function Ha(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-table",22,1)(3,"colgroup"),n.nrm(4,"col",24)(5,"col",25),n.k0s(),n.j41(6,"thead")(7,"tr")(8,"th"),n.EFF(9,"Name"),n.k0s(),n.j41(10,"th",26),n.EFF(11,"Source"),n.k0s()()(),n.j41(12,"tbody"),n.DNE(13,Ja,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("nzData",t.info.pathway)("nzScroll",n.lJ4(4,kn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Ka(e,i){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"nz-card",4)(2,"nz-card-tab")(3,"nz-tabset",5),n.bIt("nzSelectChange",function(o){n.eBV(t);const s=n.XpG();return n.Njj(s.tabChange(o))}),n.nrm(4,"nz-tab",6)(5,"nz-tab",6)(6,"nz-tab",6)(7,"nz-tab",6),n.k0s()(),n.qex(8,7),n.DNE(9,La,25,17,"ng-container",8)(10,Ba,4,2,"ng-container",8)(11,Ua,13,5,"ng-container",8)(12,Ha,14,5,"ng-container",8),n.bVm(),n.k0s(),n.bVm()}if(2&e){const t=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(),n.Y8G("nzTitle","Overview"),n.R7$(),n.Y8G("nzTitle","Summary"),n.R7$(),n.Y8G("nzTitle","Protein Domains ("+t.info.interproList.length+")"),n.R7$(),n.Y8G("nzTitle","Pathways ("+t.info.pathway.length+")"),n.R7$(),n.Y8G("ngSwitch",t.tabIndex),n.R7$(),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3)}}let Za=(()=>{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}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(wa))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.OA$],decls:1,vars:1,consts:[["proteinDomainsTable",""],["pathwaysTable",""],["noPathwayLink",""],[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzSelectChange","nzAnimated"],[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"],["nz-virtual-scroll",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(a,o){1&a&&n.DNE(0,Ka,13,10,"ng-container",3),2&a&&n.Y8G("ngIf",o.info)},dependencies:[l.bT,l.ux,l.e1,F.cK,F.RO,O.JZ,O.rE,j.CP,j.SO,j._4,j.IL,j.aj,j.kt,j.CC,d.Di,x.xA,x.gr],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}"]})}return e})();const qa=()=>[8,16];let ni=(()=>{class e{ngOnInit(){if(null==this.gene)throw new Error("Must pass a Gene into gene summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-genes-summary"]],inputs:{gene:"gene",featureId:"featureId"},decls:5,vars:4,consts:[[3,"nzGutter"],["nzSpan","12"],[3,"gene"],[3,"geneInfo"]],template:function(a,o){1&a&&(n.j41(0,"nz-row",0)(1,"nz-col",1),n.nrm(2,"cvc-gene-base-summary",2),n.k0s(),n.j41(3,"nz-col",1),n.nrm(4,"cvc-my-gene-info",3),n.k0s()()),2&a&&(n.Y8G("nzGutter",n.lJ4(3,qa)),n.R7$(2),n.Y8G("gene",o.gene),n.R7$(2),n.Y8G("geneInfo",o.gene.myGeneInfoDetails))},dependencies:[p.Uq,p.e,Za,gn],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%}"]})}return e})();function ei(e,i){if(1&e&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function ti(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",7),n.EFF(2),n.k0s(),n.DNE(3,ei,2,1,"span",8),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf;n.R7$(2),n.SpI("",t," Total"),n.R7$(),n.Y8G("ngIf",t>a.length)}}function ai(e,i){if(1&e&&(n.DNE(0,ti,4,2,"ng-container",2),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalFusions$))}}function ii(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",10),2&e){const t=n.XpG().$implicit;n.Y8G("feature",t)}}function oi(e,i){if(1&e&&(n.qex(0),n.DNE(1,ii,1,1,"cvc-feature-tag",9),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function ri(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",12)(1,"button",13),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2," Load More "),n.k0s(),n.j41(3,"nz-select",14),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",15)(5,"nz-option",16)(6,"nz-option",17),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function si(e,i){if(1&e&&(n.qex(0),n.DNE(1,ri,7,4,"nz-row",11),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function ci(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",3),n.DNE(2,ai,2,3,"ng-template",null,0,n.C5r),n.j41(4,"nz-row")(5,"nz-col",4)(6,"cvc-tag-list",5),n.DNE(7,oi,2,1,"ng-container",6),n.k0s()()(),n.DNE(8,si,2,1,"ng-container",2),n.nI1(9,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.XpG();n.R7$(),n.Y8G("nzTitle",a),n.R7$(6),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(9,3,o.pageInfo$))}}let hn=class Tn{constructor(i){this.gql=i,this.debouncedQuery=new k.B,this.pageSize=50}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into fusion menu component.");this.initialQueryVars={genePartnerId:this.geneId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:i,loading:t})=>t&&!i),(0,I.p)(b.kP),(0,y.Z)(!0)),this.connection$=this.result$.pipe((0,z.T)(i=>i.data?.fusions),(0,I.p)(b.kP)),this.pageInfo$=this.connection$.pipe((0,z.T)(i=>i.pageInfo),(0,I.p)(b.kP)),this.menuFusions$=this.connection$.pipe((0,z.T)(i=>i.edges.map(t=>t.node),(0,I.p)(b.kP))),this.totalFusions$=this.connection$.pipe((0,z.T)(i=>i.totalCount))}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||Tn)(n.rXU(u.QcR))};static#e=this.\u0275cmp=n.VBU({type:Tn,selectors:[["cvc-fusions-menu"]],inputs:{geneId:"geneId"},decls:4,vars:6,consts:[["cardTitle",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"feature",4,"ngIf"],[3,"feature"],["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,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",1),n.nI1(1,"ngrxPush"),n.DNE(2,ci,10,5,"ng-container",2),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuFusions$)))},dependencies:[l.Sq,l.bT,g.BC,g.vS,G.aO,U.c,Q.p,p.Uq,p.e,F.cK,E.ld,E.WI,Y.a,d.Di,fn._,B.M,S.L9],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}"]})};hn=(0,nn.Cg)([(0,L.d)()],hn);const li=()=>[8,16];function pi(e,i){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-genes-summary",9),n.k0s()),2&e){const t=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",t.id)("gene",t.featureInstance)}}function _i(e,i){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-factor-summary",10),n.k0s()),2&e){const t=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",t.id)("factor",t.featureInstance)}}function mi(e,i){if(1&e&&n.nrm(0,"cvc-fusion-summary",2),2&e){const t=n.XpG().ngIf;n.Y8G("featureId",t.id)("fusion",t.featureInstance)}}function ui(e,i){if(1&e&&n.nrm(0,"cvc-molecular-profile-menu",11),2&e){const t=n.XpG().ngIf;n.Y8G("featureId",t.id)}}function gi(e,i){if(1&e&&n.nrm(0,"cvc-variant-menu",12),2&e){const t=n.XpG().ngIf;n.Y8G("feature",t)}}function fi(e,i){if(1&e&&n.nrm(0,"cvc-fusions-menu",13),2&e){const t=n.XpG(2).ngIf;n.Y8G("geneId",t.id)}}function di(e,i){1&e&&(n.j41(0,"nz-tab",8),n.DNE(1,fi,1,1,"ng-template",6),n.k0s())}function zi(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-row",1),n.DNE(2,pi,2,2,"span")(3,_i,2,2,"span")(4,mi,1,2,"cvc-fusion-summary",2),n.j41(5,"nz-col",3)(6,"nz-tabset",4)(7,"nz-tab",5),n.DNE(8,ui,1,1,"ng-template",6),n.k0s(),n.j41(9,"nz-tab",7),n.DNE(10,gi,1,1,"ng-template",6),n.k0s(),n.DNE(11,di,2,0,"nz-tab",8),n.k0s()()(),n.bVm()),2&e){let t;const a=i.ngIf;n.R7$(),n.Y8G("nzGutter",n.lJ4(4,li)),n.R7$(),n.vxM("Gene"===(t=a.featureInstance.__typename)?2:"Factor"===t?3:"Fusion"===t?4:-1),n.R7$(3),n.Y8G("nzSpan",24),n.R7$(6),n.vxM("Gene"==a.featureInstance.__typename?11:-1)}}const hi=[{path:"",component:Be,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(t,a,o){this.gql=t,this.viewerService=a,this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.viewer$=this.viewerService.viewer$;let f=this.gql.watch({featureId:+s.featureId}).valueChanges;this.feature$=f.pipe((0,v.E)("data","feature")),this.loading$=f.pipe((0,v.E)("loading"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(u.gUZ),n.rXU(X.q),n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"featureId","fusion"],[3,"nzSpan"],["nzType","card"],["nzTitle","Molecular Profiles"],["nz-tab",""],["nzTitle","Variants"],["nzTitle","Fusions"],[3,"featureId","gene"],[3,"featureId","factor"],[3,"featureId"],[3,"feature"],[3,"geneId"]],template:function(a,o){1&a&&(n.DNE(0,zi,12,5,"ng-container",0),n.nI1(1,"ngrxPush")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.bT,p.Uq,p.e,O.JZ,O.rE,O.Tl,dn,zn,ni,Vn,On,hn,S.L9],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%}"]})}return e})(),data:{breadcrumb:"Summary"}},{path:"comments",component:pn,data:{breadcrumb:"Comments"}},{path:"revisions",component:rt,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ze,data:{breadcrumb:"Summary"}},{path:"events",component:Qe,data:{breadcrumb:"Events"}}]}];let vi=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[M.iI.forChild(hi),_a,cn,it,He,Ae,M.iI]})}return e})();var Ci=r(7169);let yi=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,vi,G.Zw,P.Y3,V.ZJ,C.pc,d.kT,p.f3,q.$,Fn.MC,$.i,rn.W,c.Y,A.m,on.C,an.V,Z.p,Ci.W,en]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/4623.90254fe308f3807e.js b/server/public/4623.90254fe308f3807e.js deleted file mode 100644 index 6da100301..000000000 --- a/server/public/4623.90254fe308f3807e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4623],{7480:(O,m,a)=>{function c(l,F){const h=(p,d)=>{let i;for(let f of p)if(f.fieldGroup)i=h(f.fieldGroup,d);else if(f.key===d){i=f;break}return i},v=(p,d)=>{for(let i of Object.keys(d))if(d[i]instanceof Object&&!Array.isArray(d[i]))v(p,d[i]);else{const f=h(p,i);f&&(f.defaultValue=d[i])}return p};return v(l,F)}a.d(m,{A:()=>c})},4623:(O,m,a)=>{a.r(m),a.d(m,{FeaturesReviseModule:()=>he});var c=a(177),l=a(1188),F=a(3688),h=a(4124),v=a(4917),p=a(7529),d=a(5103),i=a(3062),f=a(9172),R=a(6354),u=a(4608),e=a(3953),C=a(9145),T=a(1305),S=a(2261),G=a(9765),E=a(1774),$=a(3075);function w(t,s){1&t&&(e.j41(0,"div"),e.nrm(1,"router-outlet"),e.k0s())}function N(t,s){1&t&&(e.j41(0,"nz-row",8)(1,"div",9),e.nrm(2,"cvc-login-prompt"),e.k0s()())}function j(t,s){if(1&t&&(e.qex(0),e.nrm(1,"cvc-section-navigation",2),e.j41(2,"nz-page-header",3)(3,"nz-page-header-title",4),e.EFF(4," REVISE "),e.nrm(5,"i",5),e.nI1(6,"entityColor"),e.EFF(7),e.k0s(),e.j41(8,"nz-page-header-subtitle"),e.EFF(9),e.k0s(),e.j41(10,"nz-page-header-content")(11,"div",6),e.DNE(12,w,2,0,"div",7),e.nI1(13,"ngrxPush"),e.DNE(14,N,3,0,"ng-template",null,0,e.C5r),e.k0s()()(),e.bVm()),2&t){const n=s.ngIf,r=e.sdS(15),o=e.XpG();e.R7$(),e.Y8G("displayName",n.name),e.R7$(4),e.Y8G("nzTwotoneColor",e.bMT(6,6,"Feature")),e.R7$(2),e.SpI(" ",n.name," "),e.R7$(2),e.SpI(" ",n.fullName," "),e.R7$(3),e.Y8G("ngIf",e.bMT(13,8,o.isSignedIn$))("ngIfElse",r)}}let _=(()=>{class t{constructor(n,r,o){this.gql=n,this.route=r,this.viewerService=o,this.routeSub=this.route.params.subscribe(g=>{let P=this.gql.watch({featureId:+g.featureId}).valueChanges;this.loading$=P.pipe((0,u.E)("loading"),(0,f.Z)(!0)),this.feature$=P.pipe((0,u.E)("data","feature")),this.commentsTotal$=this.feature$.pipe((0,u.E)("comments","totalCount")),this.flagsTotal$=this.feature$.pipe((0,u.E)("flags","totalCount")),this.revisionsTotal$=this.feature$.pipe((0,u.E)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,R.T)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(C.gUZ),e.rXU(l.nX),e.rXU(T.q))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["features-revise"]],decls:2,vars:3,consts:[["notSignedIn",""],[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,o){1&r&&(e.DNE(0,j,16,10,"ng-container",1),e.nI1(1,"async")),2&r&&e.Y8G("ngIf",e.bMT(1,1,o.feature$))},dependencies:[c.bT,l.n3,i.WB,i.k9,i.CO,i.zR,d.Dn,p.Uq,p.e,S.h,G.n,c.Jj,E.L9,$.R],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}"]})}return t})();var D=a(7685),X=a(1912),V=a(5703),U=a(432),Y=a(1635),y=a(9417),I=a(9894),L=a(1226),z=a(5741);const k=(0,a(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Factor"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"name",type:"base-input",props:{placeholder:"Enter a name for this Factor",description:"Enter the name of the Factor",label:"Name",required:!0}},{key:"fullName",type:"base-input",props:{placeholder:"Enter a full name for this Factor",description:"Enter a full or long-form name of the Factor if applicable",label:"Full Name",required:!1}},{key:"ncitId",type:"base-input",props:{placeholder:"NCI Thesaurus Code",description:"Enter the NCI Thesaurus Code for this Factor",label:"NCI Thesaurus Code",required:!1}},{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Factor",placeholder:"Enter Alias and hit return"}},{key:"description",type:"base-textarea",wrappers:["form-field"],props:{tooltip:"User-defined summary of the clinical relevance of this Factor.",placeholder:"Enter a Factor Summary",label:"Summary",required:!1,rows:5}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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 Factor Revisions",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0},comment:void 0,organizationId:void 0});var M=a(8927),W=a(513),H=a(2229),K=a(5316),q=a(4222),ee=a(8524),te=a(8721);const ne=()=>({});function ae(t,s){if(1&t&&(e.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),e.j41(1,"a",4),e.EFF(2,"here."),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.FS9("href",n.url,e.B4B)}}function re(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",5),e.bIt("ngSubmit",function(){e.eBV(n);const o=e.XpG();return e.Njj(o.onSubmit(o.model))}),e.j41(1,"formly-form",6),e.bIt("modelChange",function(o){e.eBV(n);const g=e.XpG();return e.Njj(g.model=o)}),e.k0s()()}if(2&t){const n=e.XpG();e.Y8G("formGroup",n.form),e.R7$(),e.Y8G("form",n.form)("fields",n.fields)("model",n.model)("options",e.lJ4(5,ne))}}function se(t,s){1&t&&e.EFF(0," Loading Factor... ")}let b=class x{constructor(s,n,r,o){this.revisableFieldsGQL=s,this.submitRevisionsGQL=n,this.networkErrorService=r,this.cdr=o,this.form=new y.J3({}),this.fields=k,this.reviseFactorMutator=new L.E(r)}ngOnInit(){this.url=`/features/${this.featureId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({featureId:this.featureId}).pipe((0,I.s)(this)).subscribe({next:({data:{feature:s}})=>{if(s){let n=function A(t){if("Factor"===t.featureInstance.__typename)return{description:t.description,name:t.name,fullName:t.fullName,sourceIds:t.sources.map(s=>s.id),aliases:t.featureAliases,ncitId:t.featureInstance.ncitId}}(s);n&&(this.model={id:s.id,fields:n},this.cdr.detectChanges())}},error:s=>{console.error("Error retrieving Factor."),console.error(s)},complete:()=>{}})}onSubmit(s){if(!this.featureId)return;let n=function B(t,s){const n=s.fields;if(s.comment&&n.name)return{id:t,fields:{description:z.q2(n.description),fullName:z.q2(n.fullName),name:n.name,sourceIds:n.sourceIds||[],aliases:n.aliases||[],ncitId:z.q2(n.ncitId)},organizationId:s.organizationId,comment:s.comment}}(this.featureId,s);n&&(this.mutationState=this.reviseFactorMutator.mutate(this.submitRevisionsGQL,{input:n}))}static#e=this.\u0275fac=function(n){return new(n||x)(e.rXU(C.aZy),e.rXU(C.lEz),e.rXU(q.N),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:x,selectors:[["cvc-factor-revise-form"]],inputs:{featureId:"featureId"},standalone:!0,features:[e.aNF],decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Gene",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(n,r){if(1&n&&(e.j41(0,"cvc-form-submission-status-display",2),e.DNE(1,ae,3,1,"ng-template",null,0,e.C5r)(3,re,2,6,"form",3)(4,se,1,0,"ng-template",null,1,e.C5r),e.k0s()),2&n){const o=e.sdS(2),g=e.sdS(5);e.Y8G("redirectUrl",r.url)("mutationState",r.mutationState)("successMessage",o),e.R7$(3),e.Y8G("ngIf",r.model)("ngIfElse",g)}},dependencies:[c.MD,c.bT,M.PQ,M.CA,W.Zw,H.m,y.qT,y.cb,y.j4,ee.aF,K.P,te.G],encapsulation:2,changeDetection:0})};b=(0,Y.Cg)([(0,I.d)()],b);let oe=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[c.MD,V.Ti,p.f3,D.pc,X.i3,i.ZJ,U.Q,h.C,b]})}return t})();var ie=a(958);function de(t,s){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-gene-revise-form",2),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("featureId",n.featureId)}}function pe(t,s){if(1&t&&e.nrm(0,"cvc-factor-revise-form",2),2&t){const n=e.XpG(2);e.Y8G("featureId",n.featureId)}}function ce(t,s){if(1&t&&(e.qex(0),e.DNE(1,de,2,1,"span")(2,pe,1,1,"cvc-factor-revise-form",2),e.bVm()),2&t){let n;const r=e.XpG();e.R7$(),e.vxM("Gene"===(n=r.featureType)?1:"Factor"===n?2:-1)}}function fe(t,s){1&t&&e.EFF(0,"Loading Feature...")}const le=[{path:"",component:_,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(r=>{this.featureId=+r.featureId}),this.queryParams$=this.route.queryParamMap.subscribe(r=>{r.has("featureType")&&(this.featureType=r.get("featureType"))})}ngOnDestroy(){this.routeParams$.unsubscribe(),this.queryParams$.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(l.nX))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-features-suggest"]],decls:3,vars:2,consts:[["loadingFeature",""],[4,"ngIf","ngIfElse"],[3,"featureId"]],template:function(r,o){if(1&r&&e.DNE(0,ce,3,1,"ng-container",1)(1,fe,1,0,"ng-template",null,0,e.C5r),2&r){const g=e.sdS(2);e.Y8G("ngIf",o.featureId&&o.featureType)("ngIfElse",g)}},dependencies:[c.bT,ie.m,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}"]})}return t})(),data:{breadcrumb:"Suggest Revision"}}]}];let ge=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[l.iI.forChild(le),oe]})}return t})(),he=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[c.MD,l.iI,ge,i.ZJ,d.Y3,p.f3,F.A,h.C,v.i]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/4705.38b079f6c98d8b64.js b/server/public/4705.38b079f6c98d8b64.js deleted file mode 100644 index 122cfbb75..000000000 --- a/server/public/4705.38b079f6c98d8b64.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4705],{4705:(fe,A,i)=>{i.r(A),i.d(A,{AssertionsDetailModule:()=>ue});var r=i(177),l=i(1188),u=i(7685),h=i(7391),f=i(3062),v=i(513),T=i(5699),y=i(5103),I=i(3617),g=i(7529),F=i(4124),D=i(1896),j=i(5736),M=i(590),V=i(78),N=i(1532),O=i(8103),p=i(9145),x=i(9172),X=i(6977),z=i(4608),U=i(1413),L=i(4412),n=i(3953),B=i(1305),b=i(1774),C=i(6389),w=i(5930),k=i(9765),J=i(8821),W=i(7428),Z=i(5269),Q=i(1263),H=i(8719),K=i(9945),q=i(6269),R=i(5473),nn=i(3075);const tn=t=>({flagged:t}),en=t=>["/assertions",t,"revise"];function sn(t,a){if(1&t&&(n.j41(0,"span",10),n.EFF(1,"Related to "),n.j41(2,"strong"),n.EFF(3),n.k0s(),n.EFF(4,":"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(3),n.JRh(e.name)}}function an(t,a){if(1&t&&(n.j41(0,"span",11),n.nrm(1,"cvc-molecular-profile-tag",12),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!1)}}function on(t,a){1&t&&(n.j41(0,"nz-space",7),n.DNE(1,sn,5,1,"span",8)(2,an,2,2,"span",9),n.k0s())}function rn(t,a){if(1&t&&(n.j41(0,"button",26,2),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),s=n.XpG(3).ngIf;n.Y8G("routerLink",n.eq3(2,en,s.id))("nzType",e.isActive?"primary":"default")}}function cn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,rn,3,4,"button",25),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function ln(t,a){if(1&t&&(n.j41(0,"span")(1,"button",27,2),n.EFF(3," Flag "),n.k0s()()),2&t){const e=n.sdS(2);n.R7$(),n.Y8G("nzType",e.isActive?"primary":"default")}}function pn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-entity-subscription-button",28),n.bVm()),2&t){const e=n.XpG(2).ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("viewer",e)("subscribableId",s.subscribable.id)}}function gn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,pn,2,2,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.signedIn&&s.subscribable)}}function mn(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"cvc-revert-entity-button",29),n.bIt("onReverted",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onRevertCompleted(o))}),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function _n(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,mn,2,1,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.canModerate&&"SUBMITTED"!=s.status)}}function dn(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",30),n.bIt("nzOnClose",function(){const o=n.eBV(e).$implicit,c=n.XpG(3);return n.Njj(c.onErrorBannerClose(o))}),n.k0s()}2&t&&n.Y8G("nzMessage",a.$implicit)}function un(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",31),n.bIt("nzOnClose",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onSuccessBannerClose())}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("nzMessage",e.successMessage)}}function fn(t,a){1&t&&n.nrm(0,"nz-alert",32)}function zn(t,a){1&t&&n.nrm(0,"nz-alert",33)}function hn(t,a){if(1&t&&(n.j41(0,"nz-col",34),n.nrm(1,"cvc-contributor-avatars",35),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function yn(t,a){if(1&t){const e=n.RV6();n.j41(0,"span")(1,"cvc-moderate-entity-buttons",37),n.bIt("onModerated",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onModerateCompleted(o))}),n.k0s()()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function vn(t,a){1&t&&n.nrm(0,"span")}function Tn(t,a){1&t&&(n.j41(0,"nz-space",36),n.DNE(1,yn,2,1,"span",17)(2,vn,1,0,"span",17),n.k0s())}function bn(t,a){if(1&t&&(n.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),n.nrm(2,"i",15),n.nI1(3,"entityColor"),n.EFF(4),n.k0s(),n.j41(5,"nz-page-header-extra")(6,"nz-space",16),n.DNE(7,cn,2,1,"span",17)(8,ln,4,1,"span",17)(9,gn,2,1,"span",17)(10,_n,2,1,"span",17),n.k0s()(),n.j41(11,"nz-page-header-content"),n.DNE(12,dn,1,1,"nz-alert",18)(13,un,1,1,"nz-alert",19)(14,fn,1,0,"nz-alert",20)(15,zn,1,0,"nz-alert",21),n.j41(16,"cvc-tab-navigation",22),n.nI1(17,"ngrxPush"),n.DNE(18,hn,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(20,Tn,3,0,"nz-space",23),n.j41(21,"div",24),n.nrm(22,"router-outlet"),n.k0s()()()),2&t){const e=a.ngrxLet,s=n.XpG().ngIf,o=n.XpG();n.R7$(),n.Y8G("ngClass",n.eq3(13,tn,s.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(3,9,"Assertion")),n.R7$(2),n.SpI(" ",s.name," "),n.R7$(8),n.Y8G("ngForOf",o.errors),n.R7$(),n.Y8G("ngIf",o.successMessage),n.R7$(),n.Y8G("ngIf","SUBMITTED"==s.status),n.R7$(),n.Y8G("ngIf","REJECTED"==s.status),n.R7$(),n.Y8G("tabs",n.bMT(17,11,o.tabs$)),n.R7$(4),n.Y8G("ngIf",(e.canModerate||e.signedIn&&e.id==(null==s.submissionEvent||null==s.submissionEvent.originatingUser?null:s.submissionEvent.originatingUser.id))&&"SUBMITTED"==s.status)}}function Gn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",4),n.DNE(2,on,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",5),n.nI1(5,"ngrxPush"),n.DNE(6,bn,23,15,"nz-page-header",6),n.k0s(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(3),o=n.XpG();n.R7$(),n.Y8G("displayName",e.name)("relationsTpl",s),n.R7$(3),n.Y8G("flags",n.bMT(5,4,o.flagsTotal$)),n.R7$(2),n.Y8G("ngrxLet",o.viewer$)}}let An=(()=>{class t{constructor(e,s,o){this.gql=e,this.viewerService=s,this.route=o,this.destroy$=new U.B,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 L.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.paramsSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({assertionId:+c.assertionId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=d.pipe((0,z.E)("data","assertion")),this.flagsTotal$=this.assertion$.pipe((0,z.E)("flags","totalCount")),this.assertion$.pipe((0,X.Q)(this.destroy$)).subscribe({next:m=>{this.tabs$.next(this.defaultTabs.map(_=>"Revisions"===_.tabLabel?{badgeCount:m?.revisions.totalCount,..._}:"Flags"===_.tabLabel?{badgeCount:m?.flags.totalCount,..._}:"Comments"===_.tabLabel?{badgeCount:m?.comments.totalCount,badgeColor:"#cccccc",..._}:_))}}),this.subscribable={id:+c.assertionId,entityType:p.V9U.Assertion}})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(e){!0===e?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",this.queryRef?.refetch()):(this.errors=e,this.successMessage=void 0)}onErrorBannerClose(e){this.errors=this.errors?.filter(s=>s!=e)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(e){Array.isArray(e)?(this.errors=e,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${e}.`,this.queryRef?.refetch())}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.kKs),n.rXU(B.q),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[["assertionRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["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"],["nzDirection","vertical",4,"ngIf"],[1,"content"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"onReverted","entityId"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["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,"onModerated","entityId"]],template:function(s,o){1&s&&(n.DNE(0,Gn,7,6,"ng-container",3),n.nI1(1,"ngrxPush")),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.YU,r.Sq,r.bT,l.n3,l.Wk,l.wQ,b.Nj,u.U5,u.Dq,h.Di,f.WB,f.k9,f.zR,f.ov,v.aO,C.c,w.p,y.Dn,I.Y,g.Uq,k.n,J.H,W.v,Z.o,Q.L,H.r,K.N,q.f,R.z,b.L9,nn.R],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}"]})}return t})();var In=i(4873);let xn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,In.A]})}return t})();var Cn=i(1661),Rn=i(664);let $n=(()=>{class t{constructor(e,s){this.route=e,this.apollo=s,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:p.T31.Assertion}}ngOnInit(){const e={id:`Assertion:${this.commentable.id}`,fragment:p.yo9,fragmentName:"assertionSubmissionActivity"};try{const s=this.apollo.client.readFragment(e);this.submissionComment={createdAt:s.submissionActivity.createdAt,parsedComment:s.submissionActivity.parsedNote,commenter:s.submissionActivity.user}}catch(s){console.log(s)}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX),n.rXU(Cn.Ic))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-comment-list",0),2&s&&n.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[Rn.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Sn=i(5703),Pn=i(1912),En=i(7268);let Yn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,Sn.Ti,u.pc,Pn.i3,En.G]})}return t})();var Fn=i(4097);let Dn=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:p.lD4.Assertion,id:+this.route.snapshot.params.assertionId}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-flag-list-and-filter",0),2&s&&n.Y8G("flaggable",o.flaggable)},dependencies:[Fn.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var jn=i(6371);let Mn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,jn.O]})}return t})();var Vn=i(4055);let Nn=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(s=>{this.aid=+s.assertionId,this.entityType=p.BlQ.Assertion})}ngOnInit(){}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(s,o){1&s&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&s&&n.Y8G("id",o.aid)("entityType",o.entityType)},dependencies:[Vn.B],encapsulation:2})}return t})();var G=i(2e3),$=i(4917),On=i(9590),Xn=i(2839),Un=i(2142),Ln=i(4531),Bn=i(9192),wn=i(1542),S=i(5154),kn=i(797),P=i(996),Jn=i(1448),Wn=i(9802),Zn=i(7169),E=i(1236),Qn=i(7556);let Hn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,u.pc,g.f3,h.kT,v.Zw,T.T,y.Y3,G.WF,S.Qt,E.MC,Qn.F,$.i,On.R,Xn.m,Un.x,Wn._,Ln.C,Bn.J,wn.X,kn.h,P.o,Jn.B,Zn.W]})}return t})();var Kn=i(7593),qn=i(2033),nt=i(311),tt=i(6408),et=i(7855),st=i(9563),it=i(8199),at=i(9861),ot=i(7047),rt=i(5051),ct=i(9973),lt=i(4126),pt=i(463),gt=i(7292),mt=i(8763),_t=i(8139);const dt=()=>[8,16],Y=()=>[8,8],ut=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),ft=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),zt=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),ht=()=>({width:"300px"});function yt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-tag"),n.EFF(2),n.nI1(3,"formatAmp"),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.JRh(n.i5U(3,1,e.ampLevel,"verbose"))}}function vt(t,a){1&t&&(n.EFF(0," ACMG Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function Tt(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function bt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Tt,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.acmgCodes)}}function Gt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function At(t,a){if(1&t&&(n.qex(0),n.DNE(1,bt,3,1,"ng-container",9)(2,Gt,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.acmgCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.acmgCodes.length)}}function It(t,a){1&t&&(n.EFF(0," ClinGen/CGC/VICC Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function xt(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function Ct(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,xt,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.clingenCodes)}}function Rt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function $t(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ct,3,1,"ng-container",9)(2,Rt,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.clingenCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.clingenCodes.length)}}function St(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Pt(t,a){if(1&t&&(n.j41(0,"nz-tag",52),n.nrm(1,"i",53),n.k0s()),2&t){n.XpG();const e=n.sdS(49);n.Y8G("nzPopoverContent",e)("nzPopoverOverlayStyle",n.lJ4(2,ht))}}function Et(t,a){if(1&t&&n.nrm(0,"cvc-comment-body",54),2&t){const e=n.XpG().ngIf;n.Y8G("commentBodySegments",e.submissionActivity.parsedNote)}}function Yt(t,a){if(1&t&&(n.EFF(0," Submitted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.submissionEvent.createdAt),") ")}}function Ft(t,a){if(1&t&&(n.EFF(0," Accepted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.acceptanceEvent.createdAt),") ")}}function Dt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",30),n.k0s(),n.DNE(4,Ft,4,3,"ng-template",null,7,n.C5r),n.bVm()),2&t){const e=n.sdS(5),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",s.acceptanceEvent.originatingUser)}}function jt(t,a){if(1&t&&(n.EFF(0," Rejected "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.rejectionEvent.createdAt),") ")}}function Mt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2),n.nI1(3,"timeAgo"),n.nrm(4,"cvc-user-tag",30),n.k0s(),n.DNE(5,jt,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(6),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(),n.SpI(" by ",n.bMT(3,3,s.rejectionEvent.createdAt)," by "),n.R7$(2),n.Y8G("user",s.rejectionEvent.originatingUser)}}function Vt(t,a){if(1&t&&(n.qex(0),n.DNE(1,Dt,6,2,"ng-container",9)(2,Mt,7,5,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf,s=n.XpG();n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Accepted&&e.acceptanceEvent),n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Rejected&&e.rejectionEvent)}}function Nt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-disease-tag",55),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("disease",e.disease)}}function Ot(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Xt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Specified"),n.k0s(),n.bVm())}function Ut(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-phenotype-tag",57),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("phenotype",e)}}function Lt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ut,2,1,"ng-container",56),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",e.phenotypes)}}function Bt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function wt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",59),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("therapy",e)}}function kt(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,wt,2,1,"ng-container",56),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.therapies)}}function Jt(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",60)(1,"nz-tag"),n.nrm(2,"i",61),n.nI1(3,"therapyInteractionEnumDisplay"),n.EFF(4),n.nI1(5,"titlecase"),n.k0s()()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("nzType",n.i5U(3,2,e.therapyInteractionType,"icon-name")),n.R7$(2),n.SpI(" ",n.bMT(5,5,e.therapyInteractionType)," ")}}function Wt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Zt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Qt(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.regulatoryApprovalLastUpdated),") ")}}function Ht(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function Kt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function qt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function ne(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function te(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.fdaCompanionTestLastUpdated),") ")}}function ee(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function se(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Lme("",e.nccnGuideline.name," (",e.nccnGuidelineVersion,")")}}function ie(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Provided"),n.k0s(),n.bVm())}function ae(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-row",10)(2,"nz-col",11)(3,"nz-row",10)(4,"nz-col",11)(5,"nz-descriptions",12)(6,"nz-descriptions-item",13)(7,"p",14),n.EFF(8),n.k0s()(),n.j41(9,"nz-descriptions-item",15)(10,"p",16),n.EFF(11),n.k0s()()()(),n.j41(12,"nz-col",11)(13,"nz-descriptions",17)(14,"nz-descriptions-item",18),n.nrm(15,"cvc-attribute-tag",19),n.nI1(16,"enumTooltip"),n.k0s(),n.j41(17,"nz-descriptions-item",20),n.nrm(18,"cvc-attribute-tag",21),n.nI1(19,"enumTooltip"),n.k0s(),n.j41(20,"nz-descriptions-item",22),n.nrm(21,"cvc-attribute-tag",21),n.nI1(22,"enumTooltip"),n.k0s(),n.j41(23,"nz-descriptions-item",23),n.nrm(24,"cvc-attribute-tag",21),n.nI1(25,"enumTooltip"),n.k0s(),n.j41(26,"nz-descriptions-item",24),n.DNE(27,yt,4,4,"ng-container",25),n.k0s(),n.j41(28,"nz-descriptions-item",26),n.DNE(29,vt,3,0,"ng-template",null,2,n.C5r)(31,At,3,2,"ng-container",25),n.k0s(),n.j41(32,"nz-descriptions-item",26),n.DNE(33,It,3,0,"ng-template",null,3,n.C5r)(35,$t,3,2,"ng-container",25),n.k0s(),n.DNE(36,St,2,0,"ng-template",null,4,n.C5r),n.k0s()()()(),n.j41(38,"nz-col",11)(39,"nz-row",10)(40,"nz-col",11)(41,"nz-descriptions",12)(42,"nz-descriptions-item",27),n.nrm(43,"cvc-status-tag",28),n.k0s(),n.j41(44,"nz-descriptions-item",29),n.EFF(45," by "),n.nrm(46,"cvc-user-tag",30),n.DNE(47,Pt,2,3,"nz-tag",31)(48,Et,1,1,"ng-template",null,5,n.C5r),n.k0s(),n.DNE(50,Yt,4,3,"ng-template",null,6,n.C5r)(52,Vt,3,2,"ng-container",9),n.k0s()(),n.j41(53,"nz-col",11)(54,"nz-descriptions",17)(55,"nz-descriptions-item",32),n.nrm(56,"cvc-molecular-profile-tag",33),n.k0s(),n.j41(57,"nz-descriptions-item",34),n.nrm(58,"cvc-mp-tag-name",35),n.k0s(),n.j41(59,"nz-descriptions-item",36),n.DNE(60,Nt,2,1,"ng-container",9)(61,Ot,2,0,"span",37),n.k0s(),n.j41(62,"nz-descriptions-item",29),n.DNE(63,Xt,3,0,"ng-container",9)(64,Lt,3,1,"ng-container",9),n.k0s(),n.j41(65,"nz-descriptions-item",29),n.qex(66,38),n.DNE(67,Bt,1,1,"ng-template",39)(68,kt,2,1,"ng-template",40),n.bVm(),n.k0s(),n.DNE(69,Jt,6,7,"nz-descriptions-item",41),n.j41(70,"nz-descriptions-item",42),n.DNE(71,Wt,1,3,"i",43)(72,Zt,1,3,"i",43)(73,Qt,3,3,"ng-container",9)(74,Ht,3,0,"ng-container",9)(75,Kt,1,1,"ng-container",44),n.k0s(),n.j41(76,"nz-descriptions-item",45),n.DNE(77,qt,1,3,"i",43)(78,ne,1,3,"i",43)(79,te,3,3,"ng-container",9)(80,ee,3,0,"ng-container",9),n.k0s(),n.j41(81,"nz-descriptions-item",46),n.DNE(82,se,2,2,"ng-container",9)(83,ie,3,0,"ng-container",9),n.k0s()()()()(),n.j41(84,"nz-col",11),n.nrm(85,"cvc-evidence-table",47),n.k0s()(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(30),o=n.sdS(34),c=n.sdS(51),d=n.XpG(),m=n.sdS(3);n.R7$(),n.Y8G("nzGutter",n.lJ4(81,dt)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(82,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",1),n.R7$(3),n.JRh(e.summary),n.R7$(2),n.Y8G("nzEllipsisRows",6),n.R7$(),n.SpI(" ",e.description," "),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(83,ut)),n.R7$(2),n.Y8G("cvcAttrValue",e.assertionType)("nzTooltipTitle",n.i5U(16,65,e.assertionType,"assertionType")),n.R7$(3),n.Y8G("cvcAttrValue",e.assertionDirection)("nzTooltipTitle",n.ii3(19,68,e.assertionDirection,"assertionDirection",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.significance)("nzTooltipTitle",n.ii3(22,73,e.significance,"significance",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.variantOrigin)("nzTooltipTitle",n.i5U(25,78,e.variantOrigin,"variantOrigin")),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAmpLevel(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",s),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAcmgCodes(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",o),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresClingenCodes(e.assertionType))("ngIfElse",m),n.R7$(3),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(84,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(85,ft)),n.R7$(2),n.Y8G("status",e.status),n.R7$(),n.Y8G("nzTitle",c),n.R7$(2),n.Y8G("user",e.submissionEvent.originatingUser),n.R7$(),n.Y8G("ngIf",e.submissionActivity.parsedNote.length>0),n.R7$(5),n.Y8G("ngIf",null!==e.rejectionEvent||null!==e.acceptanceEvent),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(86,zt)),n.R7$(2),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!0),n.R7$(2),n.Y8G("nameSegments",e.molecularProfile.parsedName),n.R7$(2),n.Y8G("ngIf",e.disease&&e.disease.name),n.R7$(),n.Y8G("ngIf",!(null!=e.disease&&e.disease.name)),n.R7$(),n.Y8G("nzTitle",e.phenotypes.length>1?"Phenotypes":"Phenotype"),n.R7$(),n.Y8G("ngIf",0===e.phenotypes.length),n.R7$(),n.Y8G("ngIf",e.phenotypes.length>0),n.R7$(),n.Y8G("nzTitle",e.therapies.length>1?"Therapies":"Therapy"),n.R7$(),n.Y8G("ngPlural",e.therapies.length),n.R7$(3),n.Y8G("ngIf",e.therapyInteractionType),n.R7$(2),n.Y8G("ngIf",!0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",!1===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",e.regulatoryApprovalLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(2),n.Y8G("ngIf",!0===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",!1===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",e.fdaCompanionTestLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.fdaCompanionTest),n.R7$(2),n.Y8G("ngIf",e.nccnGuideline),n.R7$(),n.Y8G("ngIf",!e.nccnGuideline),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Mz_("cvcTitle","",e.name," Evidence"),n.Y8G("assertionId",e.id)}}function oe(t,a){1&t&&n.nrm(0,"cvc-empty-value",63)}function re(t,a){1&t&&n.nrm(0,"cvc-empty-value",64)}let ce=(()=>{class t{constructor(e,s){var o;if(this.gql=e,this.route=s,this.assertionRules=new Kn.o,this.statusValues=p.YSN,null==(o=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:o});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=c.pipe((0,z.E)("data","assertion")),this.subscribable={entityType:p.V9U.Assertion,id:o}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.fqJ),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["acmgTitle",""],["clingenTitle",""],["notApplicable",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[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"],["nzTitle","Status"],[3,"status"],[3,"nzTitle"],[3,"user"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["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"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],[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(s,o){1&s&&(n.DNE(0,ae,86,87,"ng-container",9),n.nI1(1,"ngrxPush"),n.DNE(2,oe,1,0,"ng-template",null,0,n.C5r)(4,re,1,0,"ng-template",null,1,n.C5r)),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,g.Uq,g.e,h.Di,C.c,T.s,y.Dn,G.xA,G.gr,S.LH,E.L_,qn.o,nt.g,tt.r,et.M,st.R,it.N,at.Y,ot.A,rt.y,R.z,ct.G,lt.p,r.PV,b.L9,pt.E,gt.H,mt.k,_t.N],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}"]})}return t})();var le=i(9543);let pe=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.assertionId,entityType:p.V9U.Assertion}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-event-feed",0),2&s&&n.Y8G("subscribable",o.subscribable)},dependencies:[le.e],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ge=i(326);let me=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,ge.p]})}return t})();const _e=[{path:"",component:An,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:ce,data:{breadcrumb:"Summary"}},{path:"events",component:pe,data:{breadcrumb:"Events"}},{path:"comments",component:$n,data:{breadcrumb:"Comments"}},{path:"revisions",component:Nn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Dn,data:{breadcrumb:"Flags"}}]}];let de=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.iI.forChild(_e),Hn,xn,Mn,Yn,me,l.iI]})}return t})(),ue=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,de,l.iI,u.pc,h.kT,f.ZJ,v.Zw,T.T,y.Y3,I.$,g.f3,$.i,F.C,D.Y,j.V,M.W,V.U,N.W,O.m,P.o]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/4705.f3d30f81278ccfa3.js b/server/public/4705.f3d30f81278ccfa3.js new file mode 100644 index 000000000..5d34e78ce --- /dev/null +++ b/server/public/4705.f3d30f81278ccfa3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4705],{4705:(fe,A,i)=>{i.r(A),i.d(A,{AssertionsDetailModule:()=>ue});var r=i(177),l=i(1188),u=i(7685),h=i(7391),f=i(3062),y=i(513),T=i(5699),v=i(5103),I=i(3617),g=i(7529),F=i(4124),D=i(1896),j=i(5736),M=i(590),V=i(78),N=i(1532),O=i(8103),p=i(9145),x=i(9172),X=i(6977),z=i(4608),U=i(1413),L=i(4412),n=i(3953),B=i(1305),b=i(1774),C=i(6389),w=i(5930),k=i(9765),J=i(8821),W=i(7428),Z=i(5269),Q=i(1263),H=i(8719),K=i(9945),q=i(6269),R=i(5473),nn=i(3075);const tn=t=>({flagged:t}),en=t=>["/assertions",t,"revise"];function sn(t,a){if(1&t&&(n.j41(0,"span",10),n.EFF(1,"Related to "),n.j41(2,"strong"),n.EFF(3),n.k0s(),n.EFF(4,":"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(3),n.JRh(e.name)}}function an(t,a){if(1&t&&(n.j41(0,"span",11),n.nrm(1,"cvc-molecular-profile-tag",12),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!1)}}function on(t,a){1&t&&(n.j41(0,"nz-space",7),n.DNE(1,sn,5,1,"span",8)(2,an,2,2,"span",9),n.k0s())}function rn(t,a){if(1&t&&(n.j41(0,"button",26,2),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),s=n.XpG(3).ngIf;n.Y8G("routerLink",n.eq3(2,en,s.id))("nzType",e.isActive?"primary":"default")}}function cn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,rn,3,4,"button",25),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function ln(t,a){if(1&t&&(n.j41(0,"span")(1,"button",27,2),n.EFF(3," Flag "),n.k0s()()),2&t){const e=n.sdS(2);n.R7$(),n.Y8G("nzType",e.isActive?"primary":"default")}}function pn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-entity-subscription-button",28),n.bVm()),2&t){const e=n.XpG(2).ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("viewer",e)("subscribableId",s.subscribable.id)}}function gn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,pn,2,2,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.signedIn&&s.subscribable)}}function mn(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"cvc-revert-entity-button",29),n.bIt("onReverted",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onRevertCompleted(o))}),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function _n(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,mn,2,1,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.canModerate&&"SUBMITTED"!=s.status)}}function dn(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",30),n.bIt("nzOnClose",function(){const o=n.eBV(e).$implicit,c=n.XpG(3);return n.Njj(c.onErrorBannerClose(o))}),n.k0s()}2&t&&n.Y8G("nzMessage",a.$implicit)}function un(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",31),n.bIt("nzOnClose",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onSuccessBannerClose())}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("nzMessage",e.successMessage)}}function fn(t,a){1&t&&n.nrm(0,"nz-alert",32)}function zn(t,a){1&t&&n.nrm(0,"nz-alert",33)}function hn(t,a){if(1&t&&(n.j41(0,"nz-col",34),n.nrm(1,"cvc-contributor-avatars",35),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function vn(t,a){if(1&t){const e=n.RV6();n.j41(0,"span")(1,"cvc-moderate-entity-buttons",37),n.bIt("onModerated",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onModerateCompleted(o))}),n.k0s()()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function yn(t,a){1&t&&n.nrm(0,"span")}function Tn(t,a){1&t&&(n.j41(0,"nz-space",36),n.DNE(1,vn,2,1,"span",17)(2,yn,1,0,"span",17),n.k0s())}function bn(t,a){if(1&t&&(n.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),n.nrm(2,"i",15),n.nI1(3,"entityColor"),n.EFF(4),n.k0s(),n.j41(5,"nz-page-header-extra")(6,"nz-space",16),n.DNE(7,cn,2,1,"span",17)(8,ln,4,1,"span",17)(9,gn,2,1,"span",17)(10,_n,2,1,"span",17),n.k0s()(),n.j41(11,"nz-page-header-content"),n.DNE(12,dn,1,1,"nz-alert",18)(13,un,1,1,"nz-alert",19)(14,fn,1,0,"nz-alert",20)(15,zn,1,0,"nz-alert",21),n.j41(16,"cvc-tab-navigation",22),n.nI1(17,"ngrxPush"),n.DNE(18,hn,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(20,Tn,3,0,"nz-space",23),n.j41(21,"div",24),n.nrm(22,"router-outlet"),n.k0s()()()),2&t){const e=a.ngrxLet,s=n.XpG().ngIf,o=n.XpG();n.R7$(),n.Y8G("ngClass",n.eq3(13,tn,s.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(3,9,"Assertion")),n.R7$(2),n.SpI(" ",s.name," "),n.R7$(8),n.Y8G("ngForOf",o.errors),n.R7$(),n.Y8G("ngIf",o.successMessage),n.R7$(),n.Y8G("ngIf","SUBMITTED"==s.status),n.R7$(),n.Y8G("ngIf","REJECTED"==s.status),n.R7$(),n.Y8G("tabs",n.bMT(17,11,o.tabs$)),n.R7$(4),n.Y8G("ngIf",(e.canModerate||e.signedIn&&e.id==(null==s.submissionEvent||null==s.submissionEvent.originatingUser?null:s.submissionEvent.originatingUser.id))&&"SUBMITTED"==s.status)}}function Gn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",4),n.DNE(2,on,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",5),n.nI1(5,"ngrxPush"),n.DNE(6,bn,23,15,"nz-page-header",6),n.k0s(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(3),o=n.XpG();n.R7$(),n.Y8G("displayName",e.name)("relationsTpl",s),n.R7$(3),n.Y8G("flags",n.bMT(5,4,o.flagsTotal$)),n.R7$(2),n.Y8G("ngrxLet",o.viewer$)}}let An=(()=>{class t{constructor(e,s,o){this.gql=e,this.viewerService=s,this.route=o,this.destroy$=new U.B,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 L.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.paramsSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({assertionId:+c.assertionId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=d.pipe((0,z.E)("data","assertion")),this.flagsTotal$=this.assertion$.pipe((0,z.E)("flags","totalCount")),this.assertion$.pipe((0,X.Q)(this.destroy$)).subscribe({next:m=>{this.tabs$.next(this.defaultTabs.map(_=>"Revisions"===_.tabLabel?{badgeCount:m?.revisions.totalCount,..._}:"Flags"===_.tabLabel?{badgeCount:m?.flags.totalCount,..._}:"Comments"===_.tabLabel?{badgeCount:m?.comments.totalCount,badgeColor:"#cccccc",..._}:_))}}),this.subscribable={id:+c.assertionId,entityType:p.V9U.Assertion}})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(e){!0===e?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",this.queryRef?.refetch()):(this.errors=e,this.successMessage=void 0)}onErrorBannerClose(e){this.errors=this.errors?.filter(s=>s!=e)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(e){Array.isArray(e)?(this.errors=e,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${e}.`,this.queryRef?.refetch())}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.kKs),n.rXU(B.q),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[["assertionRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["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"],["nzDirection","vertical",4,"ngIf"],[1,"content"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"onReverted","entityId"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["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,"onModerated","entityId"]],template:function(s,o){1&s&&(n.DNE(0,Gn,7,6,"ng-container",3),n.nI1(1,"ngrxPush")),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.YU,r.Sq,r.bT,l.n3,l.Wk,l.wQ,b.Nj,u.U5,u.Dq,h.Di,f.WB,f.k9,f.zR,f.ov,y.aO,C.c,w.p,v.Dn,I.Y,g.Uq,k.n,J.H,W.v,Z.o,Q.L,H.r,K.N,q.f,R.z,b.L9,nn.R],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}"]})}return t})();var In=i(4873);let xn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,In.A]})}return t})();var Cn=i(1661),Rn=i(664);let $n=(()=>{class t{constructor(e,s){this.route=e,this.apollo=s,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:p.T31.Assertion}}ngOnInit(){const e={id:`Assertion:${this.commentable.id}`,fragment:p.yo9,fragmentName:"assertionSubmissionActivity"};try{const s=this.apollo.client.readFragment(e);this.submissionComment={createdAt:s.submissionActivity.createdAt,parsedComment:s.submissionActivity.parsedNote,commenter:s.submissionActivity.user}}catch(s){console.log(s)}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX),n.rXU(Cn.Ic))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-comment-list",0),2&s&&n.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[Rn.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Sn=i(5703),Pn=i(1912),En=i(7268);let Yn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,Sn.Ti,u.pc,Pn.i3,En.G]})}return t})();var Fn=i(4097);let Dn=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:p.lD4.Assertion,id:+this.route.snapshot.params.assertionId}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-flag-list-and-filter",0),2&s&&n.Y8G("flaggable",o.flaggable)},dependencies:[Fn.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var jn=i(6371);let Mn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,jn.O]})}return t})();var Vn=i(4055);let Nn=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(s=>{this.subject={id:+s.assertionId,entityType:p.BlQ.Assertion}})}ngOnInit(){}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(s,o){1&s&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&s&&n.Y8G("moderated",o.subject)},dependencies:[Vn.B],encapsulation:2})}return t})();var G=i(2e3),$=i(4917),On=i(9590),Xn=i(2839),Un=i(2142),Ln=i(4531),Bn=i(9192),wn=i(1542),S=i(5154),kn=i(797),P=i(996),Jn=i(1448),Wn=i(9802),Zn=i(7169),E=i(1236),Qn=i(7556);let Hn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,u.pc,g.f3,h.kT,y.Zw,T.T,v.Y3,G.WF,S.Qt,E.MC,Qn.F,$.i,On.R,Xn.m,Un.x,Wn._,Ln.C,Bn.J,wn.X,kn.h,P.o,Jn.B,Zn.W]})}return t})();var Kn=i(7593),qn=i(2033),nt=i(311),tt=i(6408),et=i(7855),st=i(9563),it=i(8199),at=i(9861),ot=i(7047),rt=i(5051),ct=i(9973),lt=i(4126),pt=i(463),gt=i(7292),mt=i(8763),_t=i(8139);const dt=()=>[8,16],Y=()=>[8,8],ut=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),ft=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),zt=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),ht=()=>({width:"300px"});function vt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-tag"),n.EFF(2),n.nI1(3,"formatAmp"),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.JRh(n.i5U(3,1,e.ampLevel,"verbose"))}}function yt(t,a){1&t&&(n.EFF(0," ACMG Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function Tt(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function bt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Tt,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.acmgCodes)}}function Gt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function At(t,a){if(1&t&&(n.qex(0),n.DNE(1,bt,3,1,"ng-container",9)(2,Gt,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.acmgCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.acmgCodes.length)}}function It(t,a){1&t&&(n.EFF(0," ClinGen/CGC/VICC Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function xt(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function Ct(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,xt,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.clingenCodes)}}function Rt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function $t(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ct,3,1,"ng-container",9)(2,Rt,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.clingenCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.clingenCodes.length)}}function St(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Pt(t,a){if(1&t&&(n.j41(0,"nz-tag",52),n.nrm(1,"i",53),n.k0s()),2&t){n.XpG();const e=n.sdS(49);n.Y8G("nzPopoverContent",e)("nzPopoverOverlayStyle",n.lJ4(2,ht))}}function Et(t,a){if(1&t&&n.nrm(0,"cvc-comment-body",54),2&t){const e=n.XpG().ngIf;n.Y8G("commentBodySegments",e.submissionActivity.parsedNote)}}function Yt(t,a){if(1&t&&(n.EFF(0," Submitted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.submissionEvent.createdAt),") ")}}function Ft(t,a){if(1&t&&(n.EFF(0," Accepted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.acceptanceEvent.createdAt),") ")}}function Dt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",30),n.k0s(),n.DNE(4,Ft,4,3,"ng-template",null,7,n.C5r),n.bVm()),2&t){const e=n.sdS(5),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",s.acceptanceEvent.originatingUser)}}function jt(t,a){if(1&t&&(n.EFF(0," Rejected "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.rejectionEvent.createdAt),") ")}}function Mt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2),n.nI1(3,"timeAgo"),n.nrm(4,"cvc-user-tag",30),n.k0s(),n.DNE(5,jt,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(6),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(),n.SpI(" by ",n.bMT(3,3,s.rejectionEvent.createdAt)," by "),n.R7$(2),n.Y8G("user",s.rejectionEvent.originatingUser)}}function Vt(t,a){if(1&t&&(n.qex(0),n.DNE(1,Dt,6,2,"ng-container",9)(2,Mt,7,5,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf,s=n.XpG();n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Accepted&&e.acceptanceEvent),n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Rejected&&e.rejectionEvent)}}function Nt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-disease-tag",55),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("disease",e.disease)}}function Ot(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Xt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Specified"),n.k0s(),n.bVm())}function Ut(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-phenotype-tag",57),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("phenotype",e)}}function Lt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ut,2,1,"ng-container",56),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",e.phenotypes)}}function Bt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function wt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",59),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("therapy",e)}}function kt(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,wt,2,1,"ng-container",56),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.therapies)}}function Jt(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",60)(1,"nz-tag"),n.nrm(2,"i",61),n.nI1(3,"therapyInteractionEnumDisplay"),n.EFF(4),n.nI1(5,"titlecase"),n.k0s()()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("nzType",n.i5U(3,2,e.therapyInteractionType,"icon-name")),n.R7$(2),n.SpI(" ",n.bMT(5,5,e.therapyInteractionType)," ")}}function Wt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Zt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Qt(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.regulatoryApprovalLastUpdated),") ")}}function Ht(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function Kt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function qt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function ne(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function te(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.fdaCompanionTestLastUpdated),") ")}}function ee(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function se(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Lme("",e.nccnGuideline.name," (",e.nccnGuidelineVersion,")")}}function ie(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Provided"),n.k0s(),n.bVm())}function ae(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-row",10)(2,"nz-col",11)(3,"nz-row",10)(4,"nz-col",11)(5,"nz-descriptions",12)(6,"nz-descriptions-item",13)(7,"p",14),n.EFF(8),n.k0s()(),n.j41(9,"nz-descriptions-item",15)(10,"p",16),n.EFF(11),n.k0s()()()(),n.j41(12,"nz-col",11)(13,"nz-descriptions",17)(14,"nz-descriptions-item",18),n.nrm(15,"cvc-attribute-tag",19),n.nI1(16,"enumTooltip"),n.k0s(),n.j41(17,"nz-descriptions-item",20),n.nrm(18,"cvc-attribute-tag",21),n.nI1(19,"enumTooltip"),n.k0s(),n.j41(20,"nz-descriptions-item",22),n.nrm(21,"cvc-attribute-tag",21),n.nI1(22,"enumTooltip"),n.k0s(),n.j41(23,"nz-descriptions-item",23),n.nrm(24,"cvc-attribute-tag",21),n.nI1(25,"enumTooltip"),n.k0s(),n.j41(26,"nz-descriptions-item",24),n.DNE(27,vt,4,4,"ng-container",25),n.k0s(),n.j41(28,"nz-descriptions-item",26),n.DNE(29,yt,3,0,"ng-template",null,2,n.C5r)(31,At,3,2,"ng-container",25),n.k0s(),n.j41(32,"nz-descriptions-item",26),n.DNE(33,It,3,0,"ng-template",null,3,n.C5r)(35,$t,3,2,"ng-container",25),n.k0s(),n.DNE(36,St,2,0,"ng-template",null,4,n.C5r),n.k0s()()()(),n.j41(38,"nz-col",11)(39,"nz-row",10)(40,"nz-col",11)(41,"nz-descriptions",12)(42,"nz-descriptions-item",27),n.nrm(43,"cvc-status-tag",28),n.k0s(),n.j41(44,"nz-descriptions-item",29),n.EFF(45," by "),n.nrm(46,"cvc-user-tag",30),n.DNE(47,Pt,2,3,"nz-tag",31)(48,Et,1,1,"ng-template",null,5,n.C5r),n.k0s(),n.DNE(50,Yt,4,3,"ng-template",null,6,n.C5r)(52,Vt,3,2,"ng-container",9),n.k0s()(),n.j41(53,"nz-col",11)(54,"nz-descriptions",17)(55,"nz-descriptions-item",32),n.nrm(56,"cvc-molecular-profile-tag",33),n.k0s(),n.j41(57,"nz-descriptions-item",34),n.nrm(58,"cvc-mp-tag-name",35),n.k0s(),n.j41(59,"nz-descriptions-item",36),n.DNE(60,Nt,2,1,"ng-container",9)(61,Ot,2,0,"span",37),n.k0s(),n.j41(62,"nz-descriptions-item",29),n.DNE(63,Xt,3,0,"ng-container",9)(64,Lt,3,1,"ng-container",9),n.k0s(),n.j41(65,"nz-descriptions-item",29),n.qex(66,38),n.DNE(67,Bt,1,1,"ng-template",39)(68,kt,2,1,"ng-template",40),n.bVm(),n.k0s(),n.DNE(69,Jt,6,7,"nz-descriptions-item",41),n.j41(70,"nz-descriptions-item",42),n.DNE(71,Wt,1,3,"i",43)(72,Zt,1,3,"i",43)(73,Qt,3,3,"ng-container",9)(74,Ht,3,0,"ng-container",9)(75,Kt,1,1,"ng-container",44),n.k0s(),n.j41(76,"nz-descriptions-item",45),n.DNE(77,qt,1,3,"i",43)(78,ne,1,3,"i",43)(79,te,3,3,"ng-container",9)(80,ee,3,0,"ng-container",9),n.k0s(),n.j41(81,"nz-descriptions-item",46),n.DNE(82,se,2,2,"ng-container",9)(83,ie,3,0,"ng-container",9),n.k0s()()()()(),n.j41(84,"nz-col",11),n.nrm(85,"cvc-evidence-table",47),n.k0s()(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(30),o=n.sdS(34),c=n.sdS(51),d=n.XpG(),m=n.sdS(3);n.R7$(),n.Y8G("nzGutter",n.lJ4(81,dt)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(82,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",1),n.R7$(3),n.JRh(e.summary),n.R7$(2),n.Y8G("nzEllipsisRows",6),n.R7$(),n.SpI(" ",e.description," "),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(83,ut)),n.R7$(2),n.Y8G("cvcAttrValue",e.assertionType)("nzTooltipTitle",n.i5U(16,65,e.assertionType,"assertionType")),n.R7$(3),n.Y8G("cvcAttrValue",e.assertionDirection)("nzTooltipTitle",n.ii3(19,68,e.assertionDirection,"assertionDirection",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.significance)("nzTooltipTitle",n.ii3(22,73,e.significance,"significance",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.variantOrigin)("nzTooltipTitle",n.i5U(25,78,e.variantOrigin,"variantOrigin")),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAmpLevel(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",s),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAcmgCodes(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",o),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresClingenCodes(e.assertionType))("ngIfElse",m),n.R7$(3),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(84,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(85,ft)),n.R7$(2),n.Y8G("status",e.status),n.R7$(),n.Y8G("nzTitle",c),n.R7$(2),n.Y8G("user",e.submissionEvent.originatingUser),n.R7$(),n.Y8G("ngIf",e.submissionActivity.parsedNote.length>0),n.R7$(5),n.Y8G("ngIf",null!==e.rejectionEvent||null!==e.acceptanceEvent),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(86,zt)),n.R7$(2),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!0),n.R7$(2),n.Y8G("nameSegments",e.molecularProfile.parsedName),n.R7$(2),n.Y8G("ngIf",e.disease&&e.disease.name),n.R7$(),n.Y8G("ngIf",!(null!=e.disease&&e.disease.name)),n.R7$(),n.Y8G("nzTitle",e.phenotypes.length>1?"Phenotypes":"Phenotype"),n.R7$(),n.Y8G("ngIf",0===e.phenotypes.length),n.R7$(),n.Y8G("ngIf",e.phenotypes.length>0),n.R7$(),n.Y8G("nzTitle",e.therapies.length>1?"Therapies":"Therapy"),n.R7$(),n.Y8G("ngPlural",e.therapies.length),n.R7$(3),n.Y8G("ngIf",e.therapyInteractionType),n.R7$(2),n.Y8G("ngIf",!0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",!1===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",e.regulatoryApprovalLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(2),n.Y8G("ngIf",!0===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",!1===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",e.fdaCompanionTestLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.fdaCompanionTest),n.R7$(2),n.Y8G("ngIf",e.nccnGuideline),n.R7$(),n.Y8G("ngIf",!e.nccnGuideline),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Mz_("cvcTitle","",e.name," Evidence"),n.Y8G("assertionId",e.id)}}function oe(t,a){1&t&&n.nrm(0,"cvc-empty-value",63)}function re(t,a){1&t&&n.nrm(0,"cvc-empty-value",64)}let ce=(()=>{class t{constructor(e,s){var o;if(this.gql=e,this.route=s,this.assertionRules=new Kn.o,this.statusValues=p.YSN,null==(o=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:o});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=c.pipe((0,z.E)("data","assertion")),this.subscribable={entityType:p.V9U.Assertion,id:o}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.fqJ),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["acmgTitle",""],["clingenTitle",""],["notApplicable",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[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"],["nzTitle","Status"],[3,"status"],[3,"nzTitle"],[3,"user"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["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"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],[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(s,o){1&s&&(n.DNE(0,ae,86,87,"ng-container",9),n.nI1(1,"ngrxPush"),n.DNE(2,oe,1,0,"ng-template",null,0,n.C5r)(4,re,1,0,"ng-template",null,1,n.C5r)),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,g.Uq,g.e,h.Di,C.c,T.s,v.Dn,G.xA,G.gr,S.LH,E.L_,qn.o,nt.g,tt.r,et.M,st.R,it.N,at.Y,ot.A,rt.y,R.z,ct.G,lt.p,r.PV,b.L9,pt.E,gt.H,mt.k,_t.N],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}"]})}return t})();var le=i(9543);let pe=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.assertionId,entityType:p.V9U.Assertion}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-event-feed",0),2&s&&n.Y8G("subscribable",o.subscribable)},dependencies:[le.e],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ge=i(326);let me=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,ge.p]})}return t})();const _e=[{path:"",component:An,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:ce,data:{breadcrumb:"Summary"}},{path:"events",component:pe,data:{breadcrumb:"Events"}},{path:"comments",component:$n,data:{breadcrumb:"Comments"}},{path:"revisions",component:Nn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Dn,data:{breadcrumb:"Flags"}}]}];let de=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.iI.forChild(_e),Hn,xn,Mn,Yn,me,l.iI]})}return t})(),ue=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,de,l.iI,u.pc,h.kT,f.ZJ,y.Zw,T.T,v.Y3,I.$,g.f3,$.i,F.C,D.Y,j.V,M.W,V.U,N.W,O.m,P.o]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/5384.fb870c30c6349468.js b/server/public/5384.c698918596b093b6.js similarity index 71% rename from server/public/5384.fb870c30c6349468.js rename to server/public/5384.c698918596b093b6.js index 025567db4..6e781b1e0 100644 --- a/server/public/5384.fb870c30c6349468.js +++ b/server/public/5384.c698918596b093b6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5384],{4097:(Q,j,o)=>{o.d(j,{b:()=>ht});var c=o(9145),s=o(5964),b=o(6354),G=o(4608),n=o(9199),t=o(3953),f=o(177),u=o(1774),E=o(513),$=o(6389),N=o(5930),F=o(7529),X=o(1635),A=o(1226),S=o(9894),V=o(1305),k=o(4222),y=o(9417),M=o(8927),x=o(5703),P=o(3617),I=o(5154),O=o(2983),Y=o(1939),h=o(5566),C=o(1845);function v(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",10),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function d(r,g){if(1&r&&t.nrm(0,"nz-alert",11),2&r){t.XpG();const a=t.sdS(4);t.Y8G("nzDescription",a)}}function T(r,g){if(1&r&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a)}}function B(r,g){if(1&r&&(t.j41(0,"ul"),t.DNE(1,T,2,1,"li",12),t.k0s()),2&r){const a=t.XpG();t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function K(r,g){}function J(r,g){1&r&&t.DNE(0,K,0,0,"ng-template")}function nn(r,g){if(1&r&&(t.qex(0),t.DNE(1,J,1,0,null,14),t.bVm()),2&r){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function w(r,g){}function tn(r,g){1&r&&t.DNE(0,w,0,0,"ng-template")}function en(r,g){if(1&r&&(t.j41(0,"span",15),t.DNE(1,tn,1,0,null,14),t.k0s()),2&r){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Z(r,g){if(1&r&&(t.j41(0,"button",16),t.EFF(1),t.nI1(2,"enumToTitle"),t.k0s()),2&r){const a=t.XpG().ngrxLet,m=t.XpG();t.Y8G("disabled",!(void 0!==m.comment&&m.comment.length>=10&&a.signedIn))("nzTooltipTrigger",m.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==m.selectedOrg?null:m.selectedOrg.name)),t.R7$(),t.SpI(" Flag ",t.bMT(2,4,m.flaggable.entityType)," ")}}function on(r,g){if(1&r&&(t.qex(0),t.j41(1,"cvc-form-buttons"),t.DNE(2,nn,2,1,"ng-container",13)(3,en,2,1,"ng-template",null,1,t.C5r)(5,Z,3,6,"ng-template",null,2,t.C5r),t.k0s(),t.bVm()),2&r){const a=g.ngrxLet,m=t.sdS(4);t.R7$(2),t.Y8G("ngIf",a.signedIn)("ngIfElse",m)}}let q=class Et{constructor(g,a,m){this.gql=g,this.viewerService=a,this.networkErrorService=m,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.addFlagMutator=new A.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.pipe((0,S.s)(this)).subscribe(z=>{this.selectedOrg=z.mostRecentOrg})}ngOnInit(){if(void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(g){this.selectedOrg=g}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,S.s)(this)).subscribe(m=>{m&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),a.submitError$.pipe((0,S.s)(this)).subscribe(m=>{m.length>0&&(this.errorMessages=m)}),a.isSubmitting$.pipe((0,S.s)(this)).subscribe(m=>{this.loading=m})}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(a){return new(a||Et)(t.rXU(c.GOU),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:Et,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["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"],[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(a,m){if(1&a){const z=t.RV6();t.j41(0,"nz-card",3),t.DNE(1,v,1,0,"nz-alert",4)(2,d,1,1,"nz-alert",5)(3,B,2,1,"ng-template",null,0,t.C5r),t.j41(5,"form",6),t.bIt("ngSubmit",function(){return t.eBV(z),t.Njj(m.submitFlag())}),t.j41(6,"cvc-comment-input-form",7),t.mxI("commentChange",function(rn){return t.eBV(z),t.DH7(m.comment,rn)||(m.comment=rn),t.Njj(rn)}),t.k0s(),t.j41(7,"nz-spin",8)(8,"nz-form-item")(9,"nz-form-control"),t.DNE(10,on,7,2,"ng-container",9),t.k0s()()()()()}2&a&&(t.R7$(),t.Y8G("ngIf",m.success),t.R7$(),t.Y8G("ngIf",m.errorMessages.length>0),t.R7$(4),t.R50("comment",m.comment),t.R7$(),t.Y8G("nzSpinning",m.loading),t.R7$(3),t.Y8G("ngrxLet",m.viewer$))},dependencies:[f.Sq,f.bT,f.T3,y.qT,y.cb,y.cV,u.Nj,F.Uq,F.e,M.CA,M.Ls,M.zS,E.aO,$.c,N.p,x.cK,P.Y,I.LH,O.a,Y.l,h.K,C.f],encapsulation:2,changeDetection:0})};q=(0,X.Cg)([(0,S.d)()],q);var D=o(1413),cn=o(6977),H=o(7685),W=o(7391),un=o(1672),vn=o(9448),pn=o(5103),zn=o(6408),Cn=o(311),hn=o(1236);const Tn=()=>({float:"right"});function Rn(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function En(r,g){}function yn(r,g){1&r&&t.DNE(0,En,0,0,"ng-template")}function bn(r,g){if(1&r&&(t.qex(0),t.DNE(1,yn,1,0,null,10),t.bVm()),2&r){t.XpG(2);const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Fn(r,g){if(1&r&&(t.qex(0),t.DNE(1,bn,2,1,"ng-container",9),t.bVm()),2&r){const a=t.XpG().ngrxLet,m=t.sdS(5),z=t.XpG();t.R7$(),t.Y8G("ngIf",a.isEditor||a.isAdmin||z.flag.openActivity.user.id===a.id)("ngIfElse",m)}}function Gn(r,g){}function xn(r,g){1&r&&t.DNE(0,Gn,0,0,"ng-template")}function Sn(r,g){if(1&r&&(t.j41(0,"span",11),t.DNE(1,xn,1,0,null,10),t.k0s()),2&r){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function In(r,g){}function Dn(r,g){1&r&&t.DNE(0,In,0,0,"ng-template")}function $n(r,g){if(1&r&&(t.j41(0,"span",12),t.DNE(1,Dn,1,0,null,10),t.k0s()),2&r){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function On(r,g){if(1&r){const a=t.RV6();t.j41(0,"button",14),t.mxI("nzPopoverVisibleChange",function(z){t.eBV(a);const L=t.XpG(3);return t.DH7(L.flagResolvePopoverVisible,z)||(L.flagResolvePopoverVisible=z),t.Njj(z)}),t.bIt("click",function(){t.eBV(a);const z=t.XpG(3);return t.Njj(z.flagResolvePopoverVisible=!z.flagResolvePopoverVisible)}),t.EFF(1," Resolve Flag "),t.nrm(2,"i",15),t.k0s()}if(2&r){const a=t.XpG(2).ngrxLet,m=t.XpG(),z=t.sdS(3),L=t.sdS(5);t.Y8G("nzPopoverTitle",z),t.R50("nzPopoverVisible",m.flagResolvePopoverVisible),t.Y8G("nzPopoverContent",L)("nzPopoverTrigger",void 0)("disabled",!a.signedIn||a.isCurator&&m.flag.openActivity.user.id!=a.id)}}function Ln(r,g){if(1&r&&t.DNE(0,On,3,5,"button",13),2&r){const a=t.XpG(2);t.Y8G("ngIf",!a.success)}}function jn(r,g){if(1&r&&(t.qex(0),t.DNE(1,Fn,2,2,"ng-container",9)(2,Sn,2,1,"ng-template",null,2,t.C5r)(4,$n,2,1,"ng-template",null,3,t.C5r)(6,Ln,1,1,"ng-template",null,4,t.C5r),t.bVm()),2&r){const a=g.ngrxLet,m=t.sdS(3);t.R7$(),t.Y8G("ngIf",a.signedIn)("ngIfElse",m)}}function Mn(r,g){if(1&r){const a=t.RV6();t.EFF(0," Resolve Flag "),t.j41(1,"span",16)(2,"i",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG();return z.flagResolvePopoverVisible=!1,t.Njj(z.errorMessages=[])}),t.k0s()()}2&r&&(t.R7$(),t.Y8G("ngStyle",t.lJ4(1,Tn)))}function Pn(r,g){if(1&r&&t.nrm(0,"nz-alert",24),2&r){t.XpG();const a=t.sdS(2);t.Y8G("nzDescription",a)}}function Nn(r,g){if(1&r&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a)}}function An(r,g){if(1&r&&(t.j41(0,"ul"),t.DNE(1,Nn,2,1,"li",25),t.k0s()),2&r){const a=t.XpG(2);t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function Yn(r,g){if(1&r){const a=t.RV6();t.DNE(0,Pn,1,1,"nz-alert",18)(1,An,2,1,"ng-template",null,5,t.C5r),t.j41(3,"nz-card",19)(4,"form",20),t.bIt("ngSubmit",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.resolveFlag())}),t.j41(5,"cvc-comment-input-form",21),t.mxI("commentChange",function(z){t.eBV(a);const L=t.XpG();return t.DH7(L.comment,z)||(L.comment=z),t.Njj(z)}),t.k0s(),t.j41(6,"nz-spin",22)(7,"nz-form-item")(8,"nz-form-control")(9,"cvc-form-buttons")(10,"button",23),t.EFF(11," Resolve "),t.k0s()()()()()()()}if(2&r){const a=t.XpG();t.Y8G("ngIf",a.errorMessages.length>0),t.R7$(5),t.R50("comment",a.comment),t.R7$(),t.Y8G("nzSpinning",a.loading),t.R7$(4),t.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}let sn=class yt{constructor(g,a,m){this.gql=g,this.viewerService=a,this.networkErrorService=m,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.resolveFlagMutator=new A.E(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,S.s)(this)).subscribe(g=>{this.selectedOrg=g.mostRecentOrg})}onOrgSelected(g){this.selectedOrg=g}resolveFlag(){if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:this.selectedOrg?.id}});g.submitSuccess$.pipe((0,S.s)(this)).subscribe(a=>{a&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,S.s)(this)).subscribe(a=>{a.length>0&&(this.success=!1,this.errorMessages=a)}),g.isSubmitting$.pipe((0,S.s)(this)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}static#n=this.\u0275fac=function(a){return new(a||yt)(t.rXU(c.reo),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:yt,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["notSignedIn",""],["noPermissions",""],["submitButton",""],["errorContents",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],[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,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["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"],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["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(a,m){1&a&&t.DNE(0,Rn,1,0,"nz-alert",6)(1,jn,8,2,"ng-container",7)(2,Mn,3,2,"ng-template",null,0,t.C5r)(4,Yn,12,6,"ng-template",null,1,t.C5r),2&a&&(t.Y8G("ngIf",m.success),t.R7$(),t.Y8G("ngrxLet",m.viewer$))},dependencies:[f.Sq,f.bT,f.T3,f.B3,y.qT,y.cb,u.Nj,E.aO,$.c,N.p,F.Uq,F.e,M.CA,M.Ls,M.zS,y.cV,P.Y,x.cK,hn.L_,pn.Dn,I.LH,O.a,h.K,Y.l],encapsulation:2})};sn=(0,X.Cg)([(0,S.d)()],sn);var Vn=o(4126),Xn=o(3075),Bn=o(8139);function Un(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){const z=t.eBV(a).$implicit,L=t.XpG();return t.Njj(L.onErrorBannerClose(z))}),t.k0s()}2&r&&t.Y8G("nzMessage",g.$implicit)}function kn(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",9),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}if(2&r){const a=t.XpG();t.Mz_("nzMessage","Revision(s) successfully ",a.success,".")}}function Wn(r,g){if(1&r&&t.nrm(0,"cvc-comment-body",15),2&r){const a=t.XpG(2).$implicit;t.Y8G("commentBodySegments",a.openActivity.parsedNote)}}function Kn(r,g){if(1&r&&(t.qex(0),t.nrm(1,"cvc-flag-resolve-form",16),t.bVm()),2&r){const a=t.XpG(2).$implicit,m=t.XpG(2);t.R7$(),t.Y8G("flag",a)("flagResolvedCallback",m.flagResolvedCallback)}}function Qn(r,g){if(1&r&&(t.qex(0),t.nrm(1,"cvc-comment-body",15),t.bVm()),2&r){const a=t.XpG(3).$implicit;t.R7$(),t.Y8G("commentBodySegments",a.resolutionActivity.parsedNote)}}function gn(r,g){if(1&r&&t.nrm(0,"cvc-user-tag",21),2&r){const a=t.XpG(3).$implicit;t.Y8G("user",a.resolutionActivity.user)}}function Hn(r,g){if(1&r&&(t.j41(0,"nz-row")(1,"nz-col",17),t.DNE(2,Qn,2,1,"ng-container",18),t.k0s(),t.j41(3,"nz-col",19),t.EFF(4," Resolved By "),t.DNE(5,gn,1,1,"cvc-user-tag",20),t.EFF(6),t.nI1(7,"timeAgo"),t.k0s()()),2&r){const a=t.XpG(2).$implicit;t.R7$(2),t.Y8G("ngIf",a.resolutionActivity),t.R7$(3),t.Y8G("ngIf",void 0!==a.resolutionActivity),t.R7$(),t.SpI(" ",t.bMT(7,3,null==a.resolutionActivity?null:a.resolutionActivity.createdAt)," ")}}function Jn(r,g){if(1&r&&(t.nrm(0,"i",22),t.nI1(1,"entityColor"),t.EFF(2)),2&r){const a=t.XpG(2).$implicit;t.Y8G("nzTwotoneColor",t.bMT(1,2,"Flag")),t.R7$(2),t.SpI(" FID",a.id," ")}}function Zn(r,g){if(1&r&&(t.j41(0,"span")(1,"span",26),t.EFF(2,"Flagged By"),t.k0s(),t.nrm(3,"cvc-user-tag",21),t.j41(4,"span",26),t.EFF(5),t.nI1(6,"timeAgo"),t.k0s()()),2&r){const a=t.XpG(3).$implicit;t.R7$(3),t.Y8G("user",a.openActivity.user),t.R7$(2),t.JRh(t.bMT(6,2,a.openActivity.createdAt))}}function wn(r,g){if(1&r&&t.nrm(0,"cvc-status-tag",27),2&r){const a=t.XpG(3).$implicit;t.Y8G("status",a.state)}}function mn(r,g){1&r&&(t.j41(0,"nz-space",23),t.DNE(1,Zn,7,4,"span",24)(2,wn,1,1,"cvc-status-tag",25),t.k0s())}function an(r,g){if(1&r&&(t.j41(0,"nz-card",13),t.DNE(1,Wn,1,1,"cvc-comment-body",14),t.nrm(2,"nz-divider"),t.DNE(3,Kn,2,2,"ng-container",7)(4,Hn,8,5,"ng-template",null,1,t.C5r)(6,Jn,3,4,"ng-template",null,2,t.C5r)(8,mn,3,0,"ng-template",null,3,t.C5r),t.k0s()),2&r){const a=t.sdS(5),m=t.sdS(7),z=t.sdS(9),L=t.XpG().$implicit;t.Y8G("nzTitle",m)("nzExtra",z),t.R7$(),t.Y8G("ngIf",L.openActivity),t.R7$(2),t.Y8G("ngIf","OPEN"==L.state)("ngIfElse",a)}}function dn(r,g){1&r&&(t.qex(0),t.DNE(1,an,10,5,"nz-card",12),t.bVm())}function fn(r,g){if(1&r&&(t.qex(0),t.j41(1,"nz-space",10),t.DNE(2,dn,2,0,"ng-container",11),t.k0s(),t.bVm()),2&r){const a=t.XpG();t.R7$(2),t.Y8G("ngForOf",a.flags)}}function qn(r,g){1&r&&t.nrm(0,"nz-empty",28)}let nt=(()=>{class r{constructor(a){this.viewerService=a,this.isLoading=!1,this.success=!1,this.destroy$=new D.B}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(a=>{this.mostRecentOrg=a.mostRecentOrg})}setupMutationResultHandlers(a,m){a.submitSuccess$.pipe((0,cn.Q)(this.destroy$)).subscribe(z=>{z&&(this.isLoading=!1,this.errors=void 0,this.success=m)}),a.submitError$.pipe((0,cn.Q)(this.destroy$)).subscribe(z=>{z.length>0&&(this.isLoading=!1,this.success=!1,this.errors=z)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(a){this.errors=this.errors?.filter(m=>m!=a)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(m){return new(m||r)(t.rXU(V.q))};static#t=this.\u0275cmp=t.VBU({type:r,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["noFlags",""],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],["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"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],[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(m,z){if(1&m&&(t.DNE(0,Un,1,1,"nz-alert",4)(1,kn,1,2,"nz-alert",5),t.j41(2,"nz-card",6),t.DNE(3,fn,3,1,"ng-container",7)(4,qn,1,0,"ng-template",null,0,t.C5r),t.k0s()),2&m){const L=t.sdS(5);t.Y8G("ngForOf",z.errors),t.R7$(),t.Y8G("ngIf",z.success),t.R7$(2),t.Y8G("ngIf",z.flags&&z.flags.length>0)("ngIfElse",L)}},dependencies:[f.Sq,f.bT,F.Uq,F.e,x.cK,H.U5,H.Dq,W.Di,un.RW,vn.j,pn.Dn,zn.r,Cn.g,$.c,P.Y,sn,Vn.p,Xn.R,Bn.N],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return r})();var tt=o(9365),et=o(9438);const ln=()=>[];function it(r,g){if(1&r&&(t.nrm(0,"cvc-flag-list",14),t.nI1(1,"ngrxPush")),2&r){const a=t.XpG(2);t.Y8G("flags",t.bMT(1,2,a.flags$)||t.lJ4(4,ln))("flagResolvedCallback",a.refresh)}}function ot(r,g){if(1&r){const a=t.RV6();t.j41(0,"button",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG(2).ngrxLet,L=t.XpG(2);return t.Njj(L.loadMore(null==z?null:z.endCursor))}),t.EFF(1," Load More "),t.k0s()}}function st(r,g){1&r&&(t.qex(0),t.DNE(1,ot,2,0,"button",16),t.bVm())}function at(r,g){if(1&r&&(t.qex(0),t.DNE(1,st,2,0,"ng-container",15),t.bVm()),2&r){const a=g.ngrxLet;t.R7$(),t.Y8G("ngIf",a&&(null==a?null:a.hasNextPage)&&a.endCursor)}}function lt(r,g){if(1&r&&t.nrm(0,"cvc-flag-add-form",18),2&r){const a=t.XpG(2);t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}function rt(r,g){if(1&r&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a.displayName)}}function _t(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",19),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onStateSelected(z))}),t.DNE(1,rt,2,1,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("preselectedOption",a.selectableStates[0])("participantList",a.selectableStates)}}function ct(r,g){if(1&r&&t.nrm(0,"nz-avatar",22),2&r){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function pt(r,g){if(1&r&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&r){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function gt(r,g){if(1&r&&(t.DNE(0,ct,1,1,"nz-avatar",21)(1,pt,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&r){const a=g.$implicit,m=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",m),t.R7$(4),t.JRh(a.username)}}function mt(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",20),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onFlaggingUsersSelected(z))}),t.DNE(2,gt,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueFlaggingUsers$)||t.lJ4(3,ln))}}function dt(r,g){if(1&r&&t.nrm(0,"nz-avatar",22),2&r){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function ft(r,g){if(1&r&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&r){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function ut(r,g){if(1&r&&(t.DNE(0,dt,1,1,"nz-avatar",21)(1,ft,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&r){const a=g.$implicit,m=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",m),t.R7$(4),t.JRh(a.username)}}function vt(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",24),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onResolvingUsersSelected(z))}),t.DNE(2,ut,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueResolvingUsers$)||t.lJ4(3,ln))}}function zt(r,g){if(1&r&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-space",6),t.DNE(4,it,2,5,"cvc-flag-list",7)(5,at,2,1,"ng-container",8)(6,lt,1,2,"cvc-flag-add-form",9),t.k0s()(),t.j41(7,"nz-col",10)(8,"nz-space",6),t.DNE(9,_t,3,2,"cvc-participant-list",11)(10,mt,4,4,"cvc-participant-list",12)(11,vt,4,4,"cvc-participant-list",13),t.k0s()()(),t.bVm()),2&r){const a=t.XpG();t.R7$(),t.Y8G("nzGutter",16),t.R7$(4),t.Y8G("ngrxLet",a.pageInfo$)}}function Ct(r,g){if(1&r&&t.nrm(0,"cvc-flag-add-form",18),2&r){const a=t.XpG();t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}let ht=(()=>{class r{constructor(a){this.gql=a,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:c.Qfy.Open},{id:2,displayName:"Resolved",value:c.Qfy.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:c.Qfy.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,G.E)("data","flags","edges"),(0,s.p)(n.kP),(0,b.T)(a=>a.map(m=>m.node))),this.pageInfo$=this.results$.pipe((0,G.E)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,G.E)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,b.T)(({data:a})=>a.flags?.uniqueFlaggingUsers)),this.uniqueResolvingUsers$=this.results$.pipe((0,b.T)(({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}})}static#n=this.\u0275fac=function(m){return new(m||r)(t.rXU(c.HnF))};static#t=this.\u0275cmp=t.VBU({type:r,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[["noFlags",""],["itemTemplate",""],["noAvatar",""],[4,"ngIf","ngIfElse"],[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",4,"nzSpaceItem"],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["listTitle","Flag State",3,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Flagging Users",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Resolving Users",3,"participantSelectedEvent","participantList"]],template:function(m,z){if(1&m&&(t.DNE(0,zt,12,2,"ng-container",3),t.nI1(1,"ngrxPush"),t.DNE(2,Ct,1,2,"ng-template",null,0,t.C5r)),2&m){const L=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,z.unfilteredCount$))("ngIfElse",L)}},dependencies:[f.bT,u.Nj,E.aO,$.c,N.p,F.Uq,F.e,q,nt,tt.T,et.PM,H.U5,H.Dq,f.Pc,u.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return r})()},7268:(Q,j,o)=>{o.d(j,{G:()=>q});var c=o(177),s=o(3190),b=o(2839),G=o(5703),n=o(8927),t=o(2617),f=o(9417),u=o(4917),E=o(4308),$=o(3842),N=o(3617),F=o(513),X=o(2983),A=o(5154),S=o(3953);let V=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=S.$C({type:D});static#e=this.\u0275inj=S.G2t({imports:[c.MD,f.YN,f.X1,n.PQ,F.Zw,G.Ti,N.$,A.Qt,X.V,$.k,u.i,E.I]})}return D})();var k=o(7169),y=o(9192),M=o(1542),x=o(9590),P=o(1209),I=o(9802),O=o(5493),Y=o(7051),h=o(5103),C=o(1236);let v=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=S.$C({type:D});static#e=this.\u0275inj=S.G2t({imports:[c.MD,f.X1,F.Zw,n.PQ,f.YN,N.$,G.Ti,C.MC,h.Y3,A.Qt,X.V,E.I,$.k]})}return D})();var d=o(9438),T=o(2986),B=o(9448),K=o(1672),J=o(7529),nn=o(1011),w=o(7685),tn=o(5699),en=o(7391);let Z=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=S.$C({type:D});static#e=this.\u0275inj=S.G2t({imports:[c.MD,J.f3,t.rD,G.Ti,w.pc,tn.T,en.kT,d.Yb,K._v,T.IJ,B.g,A.Qt,t.rD,C.MC,h.Y3,nn.j,f.YN,P.k,b.m,y.J,I._,M.X,Y.U,O.G,x.R,u.i,F.Zw,N.$,v,B.g,k.W]})}return D})();var on=o(2968);let q=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=S.$C({type:D});static#e=this.\u0275inj=S.G2t({imports:[c.MD,f.YN,F.Zw,n.PQ,s.Sw,F.Zw,b.m,t.rD,G.Ti,V,Z,K._v,on.K,d.Yb,w.pc,u.i]})}return D})()},7428:(Q,j,o)=>{o.d(j,{v:()=>s});var c=o(3953);let s=(()=>{class b{constructor(){}static#n=this.\u0275fac=function(t){return new(t||b)};static#t=this.\u0275dir=c.FsC({type:b,selectors:[["","cvcFlaggableOptions",""]]})}return b})()},8821:(Q,j,o)=>{o.d(j,{H:()=>k});var c=o(3953),s=o(7428),b=o(177),G=o(1188),n=o(5103),t=o(3146),f=o(5154);const u=["cvcFlaggable",""],E=["*"];function $(y,M){1&y&&c.SdG(0)}function N(y,M){1&y&&c.eu8(0)}function F(y,M){if(1&y&&(c.qex(0),c.DNE(1,N,1,0,"ng-container",4),c.bVm()),2&y){c.XpG();const x=c.sdS(1);c.R7$(),c.Y8G("ngTemplateOutlet",x)}}function X(y,M){if(1&y&&(c.j41(0,"a",6),c.nrm(1,"i",7),c.k0s()),2&y){c.XpG();const x=c.sdS(5);c.R7$(),c.Y8G("nzTooltipTitle",x)}}function A(y,M){if(1&y&&c.EFF(0),2&y){const x=c.XpG(2);c.SpI(" ",x.flags," open flags ")}}function S(y,M){1&y&&c.eu8(0)}function V(y,M){if(1&y&&(c.qex(0),c.j41(1,"nz-ribbon",5),c.DNE(2,X,2,1,"ng-template",null,1,c.C5r)(4,A,1,1,"ng-template",null,2,c.C5r)(6,S,1,0,"ng-container",4),c.k0s(),c.bVm()),2&y){const x=c.sdS(3);c.XpG();const P=c.sdS(1);c.R7$(),c.Y8G("nzText",x),c.R7$(5),c.Y8G("ngTemplateOutlet",P)}}let k=(()=>{class y{constructor(x){this.renderer=x}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")}static#n=this.\u0275fac=function(P){return new(P||y)(c.rXU(c.sFG))};static#t=this.\u0275cmp=c.VBU({type:y,selectors:[["","cvcFlaggable",""]],contentQueries:function(P,I,O){if(1&P&&c.wni(O,s.v,5,c.aKT),2&P){let Y;c.mGM(Y=c.lsd())&&(I.flaggedChild=Y.first)}},inputs:{flags:"flags",entity:"entity"},features:[c.OA$],attrs:u,ngContentSelectors:E,decls:4,vars:2,consts:[["flaggedContent",""],["flaggedText",""],["flaggedTooltip",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["routerLink","flags",2,"color","#fff"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(P,I){1&P&&(c.NAR(),c.DNE(0,$,1,0,"ng-template",null,0,c.C5r)(2,F,2,1,"ng-container",3)(3,V,7,2,"ng-container",3)),2&P&&(c.R7$(2),c.Y8G("ngIf",0===I.flags),c.R7$(),c.Y8G("ngIf",I.flags))},dependencies:[b.bT,b.T3,G.Wk,n.Dn,t.KI,f.LH],encapsulation:2})}return y})()},1896:(Q,j,o)=>{o.d(j,{Y:()=>u});var c=o(177),s=o(5154),b=o(7391),G=o(3146),n=o(5103),t=o(1188),f=o(3953);let u=(()=>{class E{static#n=this.\u0275fac=function(F){return new(F||E)};static#t=this.\u0275mod=f.$C({type:E});static#e=this.\u0275inj=f.G2t({imports:[c.MD,t.iI,n.Y3,G.W2,s.Qt,b.kT]})}return E})()},869:(Q,j,o)=>{o.d(j,{S:()=>q});var c=o(177),s=o(5703),b=o(2617),G=o(7529),n=o(3953);let t=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=n.$C({type:D});static#e=this.\u0275inj=n.G2t({imports:[c.MD,G.f3]})}return D})();var f=o(5757),u=o(1209),E=o(7685),$=o(5699),N=o(7391),F=o(9438),X=o(2839),A=o(9192),S=o(1542),V=o(5493),k=o(4696),y=o(1672),M=o(9590),x=o(2986),P=o(9448),I=o(5154),O=o(513),Y=o(3617),h=o(5103),C=o(1236),v=o(1011),d=o(9417),T=o(4917),B=o(2e3),K=o(4308),J=o(7169),nn=o(6936),w=o(9802),tn=o(996),en=o(6912),Z=o(7086),on=o(8920);let q=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=n.$C({type:D});static#e=this.\u0275inj=n.G2t({imports:[c.MD,G.f3,b.rD,s.Ti,E.pc,$.T,N.kT,F.Yb,y._v,x.IJ,P.g,I.Qt,b.rD,C.MC,h.Y3,v.j,B.WF,P.g,d.YN,f.v,en.l,u.k,t,X.m,A.J,w._,S.X,Z.C,nn.G,V.G,M.R,K.I,tn.o,T.i,J.W,on.U,k.GB,O.Zw,Y.$]})}return D})()},4055:(Q,j,o)=>{o.d(j,{B:()=>ri});var c=o(9145),s=o(6354),b=o(9172),G=o(4608),n=o(3953),t=o(1188),f=o(177),u=o(1774),E=o(7529),$=o(7685),N=o(5699),F=o(9438),X=o(1672),A=o(513),S=o(6389),V=o(5930),k=o(5103),y=o(9365),M=o(1413),x=o(5964),P=o(4572),I=o(1226),O=o(6977),Y=o(9199),h=o(1305),C=o(4222),v=o(2617),d=o(5703),T=o(7391),B=o(2986),K=o(9448),J=o(5154),nn=o(1236),w=o(2e3);let tn=(()=>{class e{transform(i){return i?i.replace(/([a-z])([A-Z])/g,"$1 $2"):""}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275pipe=n.EJ8({name:"camelToWords",type:e,pure:!0})}return e})();const en=["itemTemplate"],Z=e=>({$implicit:e});function on(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function q(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function D(e,l){if(1&e&&(n.j41(0,"nz-list-item",10),n.DNE(1,on,3,4,"ng-container",11)(2,q,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function cn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}function H(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function W(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function un(e,l){if(1&e&&(n.j41(0,"nz-list-item",17),n.DNE(1,H,3,4,"ng-container",11)(2,W,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function vn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Removed")}}function pn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,un,4,2,"nz-list-item",16)(2,vn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Removed ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.removedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.removedObjects.length)}}function zn(e,l){1&e&&(n.qex(0),n.DNE(1,pn,3,4,"nz-list",8),n.bVm())}function Cn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(2);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function hn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Tn(e,l){if(1&e&&(n.j41(0,"nz-list-item",19),n.DNE(1,Cn,3,4,"ng-container",11)(2,hn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Rn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(2);n.Mz_("nzNoResult","No ",i.entityType," Added")}}function En(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Tn,4,2,"nz-list-item",18)(2,Rn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG();n.Mz_("nzHeader","Added ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.addedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.addedObjects.length)}}function yn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function bn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Fn(e,l){if(1&e&&(n.j41(0,"nz-list-item",21),n.DNE(1,yn,3,4,"ng-container",11)(2,bn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Gn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Kept")}}function xn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Fn,4,2,"nz-list-item",20)(2,Gn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Kept ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.keptObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.keptObjects.length)}}function Sn(e,l){1&e&&(n.qex(0),n.DNE(1,xn,3,4,"nz-list",8),n.bVm())}function In(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function Dn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function $n(e,l){if(1&e&&(n.j41(0,"nz-list-item",22),n.DNE(1,In,3,4,"ng-container",11)(2,Dn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function On(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}let Ln=(()=>{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.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(_,p,R){if(1&_&&n.wni(R,en,5),2&_){let U;n.mGM(U=n.lsd())&&(p.itemTemplateRef=U.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:14,consts:[["deleted",""],[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"],["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(_,p){1&_&&(n.j41(0,"nz-row",1)(1,"nz-col",2)(2,"nz-list",3),n.DNE(3,D,4,2,"nz-list-item",4)(4,cn,1,2,"nz-list-empty",5),n.k0s()(),n.j41(5,"nz-col",2)(6,"nz-space",6),n.DNE(7,zn,2,0,"ng-container",7)(8,En,3,4,"nz-list",8)(9,Sn,2,0,"ng-container",7),n.k0s()(),n.j41(10,"nz-col",2)(11,"nz-list",3),n.DNE(12,$n,4,2,"nz-list-item",9)(13,On,1,2,"nz-list-empty",5),n.k0s()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Original ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.currentObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.currentObjects.length),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Revised ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.suggestedObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.suggestedObjects.length))},dependencies:[f.YU,f.Sq,f.bT,f.T3,v.eE,v.nt,v.lQ,E.Uq,E.e,N.s,$.U5,$.Dq,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%}"]})}return e})();var jn=o(3245),Mn=o(9062);let Pn=(()=>{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.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({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(_,p){1&_&&(n.j41(0,"nz-row",0)(1,"nz-col",1)(2,"h4"),n.EFF(3),n.k0s(),n.nrm(4,"div",2),n.k0s(),n.j41(5,"nz-col",1)(6,"h4"),n.EFF(7),n.k0s(),n.nrm(8,"div",2),n.k0s(),n.j41(9,"nz-col",1)(10,"h4"),n.EFF(11),n.k0s(),n.j41(12,"div",3)(13,"div",4),n.EFF(14),n.k0s()()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Original ",p.entityType,""),n.R7$(),n.Y8G("innerHtml",p.left,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("",p.entityType," Diff"),n.R7$(),n.Y8G("innerHtml",p.right,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Revised ",p.entityType,""),n.R7$(3),n.SpI(" ",p.suggestedValue," "))},dependencies:[E.Uq,E.e],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})}return e})();var Nn=o(6408),An=o(9861),Yn=o(9563),sn=o(7047),Vn=o(959),Xn=o(9045),Bn=o(6073),Un=o(311),kn=o(5566),Wn=o(5473),Kn=o(4126),Qn=o(6440),gn=o(4696),Hn=o(3617),Jn=o(1845),Zn=o(3075),wn=o(8139);const mn=(e,l,i,_,p)=>({id:e,name:l,link:i,deprecated:_,flagged:p}),an=(e,l,i,_)=>({id:e,name:l,link:i,deprecated:_}),dn=(e,l,i)=>({id:e,name:l,link:i}),fn=(e,l,i,_,p,R)=>({id:e,name:l,link:i,feature:_,deprecated:p,flagged:R}),qn=(e,l,i,_,p)=>({id:e,name:l,link:i,status:_,flagged:p}),nt=()=>({float:"right"});function tt(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",17),n.bIt("nzOnClose",function(){const p=n.eBV(i).$implicit,R=n.XpG();return n.Njj(R.onErrorBannerClose(p))}),n.k0s()}2&e&&n.Y8G("nzMessage",l.$implicit)}function et(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",18),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG();return n.Njj(p.onSuccessBannerClose())}),n.k0s()}if(2&e){const i=n.XpG();n.Mz_("nzMessage","Revision(s) successfully ",i.success,".")}}function ln(e,l){if(1&e&&n.nrm(0,"cvc-feature-tag",29),2&e){const i=l.$implicit;n.Y8G("feature",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function it(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",28),n.DNE(2,ln,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ot(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function st(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",30),n.DNE(2,ot,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function at(e,l){if(1&e&&n.nrm(0,"cvc-disease-tag",33),2&e){const i=l.$implicit;n.Y8G("disease",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function lt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",32),n.DNE(2,at,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function rt(e,l){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",35),2&e){const i=l.$implicit;n.Y8G("molecularProfile",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function _t(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",34),n.DNE(2,rt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ct(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function pt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,ct,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function gt(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,gt,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function dt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function ft(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",38),n.DNE(2,dt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ut(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function vt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",39),n.DNE(2,ut,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function zt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Ct(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",40),n.DNE(2,zt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ht(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function r(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",41),n.DNE(2,ht,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function g(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function a(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",42),n.DNE(2,g,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function m(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function z(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",43),n.DNE(2,m,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function L(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function rn(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",44),n.DNE(2,L,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function bt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Ft(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",45),n.DNE(2,bt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Gt(e,l){if(1&e&&n.nrm(0,"cvc-variant-type-tag",47),2&e){const i=l.$implicit;n.Y8G("variantType",n.sMw(1,dn,i.id,i.displayName,i.link))}}function xt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",46),n.DNE(2,Gt,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function St(e,l){if(1&e&&n.nrm(0,"cvc-phenotype-tag",49),2&e){const i=l.$implicit;n.Y8G("phenotype",n.sMw(1,dn,i.id,i.displayName,i.link))}}function It(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",48),n.DNE(2,St,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Dt(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,fn,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function $t(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",50),n.DNE(2,Dt,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Ot(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,fn,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function Lt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",52),n.DNE(2,Ot,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function jt(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function Mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",53),n.DNE(2,jt,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Pt(e,l){if(1&e&&n.nrm(0,"cvc-evidence-tag",55),2&e){const i=l.$implicit;n.Y8G("evidence",n.s1E(1,qn,i.id,i.displayName,i.link,i.status,i.flagged))}}function Nt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",54),n.DNE(2,Pt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function At(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-revision-value-diff",56),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("currentValue",i.currentValue)("suggestedValue",i.suggestedValue)("left",i.linkoutData.diffValue.left)("right",i.linkoutData.diffValue.right)("entityType",i.linkoutData.name)}}function Yt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-comment-body",60),n.bVm()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("commentBodySegments",i.resolutionActivity.parsedNote)}}function Vt(e,l){if(1&e&&n.nrm(0,"cvc-user-tag",61),2&e){const i=n.XpG(2).$implicit;n.Y8G("user",i.resolutionActivity.user)}}function Xt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"nz-divider"),n.j41(2,"nz-row")(3,"nz-col",57),n.DNE(4,Yt,2,1,"ng-container",27),n.k0s(),n.j41(5,"nz-col",58),n.EFF(6),n.nI1(7,"enumToTitle"),n.DNE(8,Vt,1,1,"cvc-user-tag",59),n.EFF(9),n.nI1(10,"timeAgo"),n.k0s()(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(4),n.Y8G("ngIf",null==i.resolutionActivity?null:i.resolutionActivity.parsedNote),n.R7$(2),n.SpI(" ",n.bMT(7,4,i.status)," By "),n.R7$(2),n.Y8G("ngIf",void 0!==(null==i.resolutionActivity?null:i.resolutionActivity.user)),n.R7$(),n.SpI(" ",n.bMT(10,6,null==i.resolutionActivity?null:i.resolutionActivity.createdAt)," ")}}function Bt(e,l){if(1&e&&(n.j41(0,"span"),n.nrm(1,"i",63),n.nI1(2,"entityColor"),n.EFF(3),n.j41(4,"span"),n.EFF(5),n.k0s()()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,3,"Revision")),n.R7$(2),n.SpI(" RID",i.id," "),n.R7$(2),n.SpI("",i.linkoutData.name," Updated")}}function Ut(e,l){if(1&e&&n.nrm(0,"i",65),2&e){n.XpG();const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function kt(e,l){if(1&e&&n.nrm(0,"cvc-comment-body",60),2&e){const i=n.XpG(3).$implicit;n.Y8G("commentBodySegments",i.creationActivity.parsedNote)}}function Wt(e,l){1&e&&(n.qex(0),n.DNE(1,Ut,1,1,"i",64)(2,kt,1,1,"ng-template",null,5,n.C5r),n.bVm())}function Kt(e,l){if(1&e&&(n.j41(0,"nz-space"),n.DNE(1,Bt,6,5,"span",62)(2,Wt,4,0,"ng-container",27),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(2),n.Y8G("ngIf",null==i.creationActivity?null:i.creationActivity.parsedNote)}}function Qt(e,l){if(1&e&&(n.j41(0,"span",71),n.EFF(1," for\xa0 "),n.k0s(),n.nrm(2,"cvc-organization-tag",72)),2&e){const i=n.XpG(4).$implicit;n.R7$(2),n.Y8G("org",i.creationActivity.organization)}}function Ht(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",71),n.EFF(2," By\xa0 "),n.k0s(),n.nrm(3,"cvc-user-tag",61),n.DNE(4,Qt,3,1),n.bVm()),2&e){const i=n.XpG(3).$implicit;n.R7$(3),n.Y8G("user",i.creationActivity.user),n.R7$(),n.vxM(null!=i.creationActivity&&i.creationActivity.organization?4:-1)}}function Jt(e,l){1&e&&(n.j41(0,"span",71),n.EFF(1,"Submitted"),n.k0s())}function Zt(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ht,5,2,"ng-container",70)(2,Jt,2,0,"ng-template",null,6,n.C5r),n.j41(4,"span",71),n.EFF(5),n.nI1(6,"timeAgo"),n.k0s()()),2&e){const i=n.sdS(3),_=n.XpG(2).$implicit;n.R7$(),n.Y8G("ngIf",null==_.creationActivity?null:_.creationActivity.user)("ngIfElse",i),n.R7$(4),n.JRh(n.bMT(6,3,_.createdAt))}}function wt(e,l){if(1&e&&n.nrm(0,"cvc-status-tag",73),2&e){const i=n.XpG(2).$implicit;n.Y8G("status",i.status)}}function qt(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ne(e,l){if(1&e){const i=n.RV6();n.j41(0,"a",75),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).$implicit,R=n.XpG(3);return n.Njj(R.onChangesetSelected(p.revisionSetId))}),n.EFF(1,"Show Group"),n.k0s()}}function te(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ee(e,l){1&e&&n.nrm(0,"label",77),2&e&&n.Y8G("nzDisabled",!0)}function ie(e,l){1&e&&n.nrm(0,"label",79),2&e&&n.Y8G("nzDisabled",!0)}function oe(e,l){if(1&e){const i=n.RV6();n.j41(0,"label",80),n.bIt("nzCheckedChange",function(p){n.eBV(i);const R=n.XpG(5).$implicit,U=n.XpG(3);return n.Njj(U.onRevisionCheckboxClicked(p,R.id))}),n.k0s()}}function se(e,l){if(1&e&&n.DNE(0,ie,1,1,"label",78)(1,oe,1,0,"ng-template",null,8,n.C5r),2&e){const i=n.sdS(2),_=n.XpG(4).$implicit,p=n.XpG(2).ngrxLet;n.Y8G("ngIf",p.isCurator&&p.id!=(null==_.creationActivity?null:_.creationActivity.user.id))("ngIfElse",i)}}function ae(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,ee,1,1,"label",76)(2,se,3,2,"ng-template",null,7,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG(5).ngrxLet;n.R7$(),n.Y8G("ngIf",!_.signedIn)("ngIfElse",i)}}function le(e,l){1&e&&(n.qex(0),n.DNE(1,te,1,0,"nz-divider",68)(2,ae,4,2,"span",62),n.bVm())}function re(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-space",66),n.bIt("click",function(p){return n.eBV(i),n.Njj(p.stopPropagation())}),n.DNE(1,Zt,7,5,"span",62)(2,wt,1,1,"cvc-status-tag",67)(3,qt,1,0,"nz-divider",68)(4,ne,2,0,"a",69)(5,le,3,0,"ng-container",27),n.k0s()}if(2&e){const i=n.XpG().$implicit;n.R7$(5),n.Y8G("ngIf","NEW"===i.status)}}function _e(e,l){if(1&e&&(n.j41(0,"nz-collapse-panel",23),n.qex(1,24),n.DNE(2,it,4,1,"ng-container",25)(3,st,4,1,"ng-container",25)(4,lt,4,1,"ng-container",25)(5,_t,4,1,"ng-container",25)(6,pt,4,1,"ng-container",25)(7,mt,4,1,"ng-container",25)(8,ft,4,1,"ng-container",25)(9,vt,4,1,"ng-container",25)(10,Ct,4,1,"ng-container",25)(11,r,4,1,"ng-container",25)(12,a,4,1,"ng-container",25)(13,z,4,1,"ng-container",25)(14,rn,4,1,"ng-container",25)(15,Ft,4,1,"ng-container",25)(16,xt,4,1,"ng-container",25)(17,It,4,1,"ng-container",25)(18,$t,4,1,"ng-container",25)(19,Lt,4,1,"ng-container",25)(20,Mt,4,1,"ng-container",25)(21,Nt,4,1,"ng-container",25)(22,At,2,5,"ng-container",26),n.bVm(),n.DNE(23,Xt,11,8,"ng-container",27)(24,Kt,3,1,"ng-template",null,2,n.C5r)(26,re,6,1,"ng-template",null,3,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(25),p=n.sdS(27);n.Y8G("nzHeader",_)("nzExtra",p)("nzActive",!0),n.R7$(),n.Y8G("ngSwitch",i.fieldName),n.R7$(),n.Y8G("ngSwitchCase","feature_id"),n.R7$(),n.Y8G("ngSwitchCase","source_ids"),n.R7$(),n.Y8G("ngSwitchCase","disease_id"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_id"),n.R7$(),n.Y8G("ngSwitchCase","drug_ids"),n.R7$(),n.Y8G("ngSwitchCase","therapy_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","feature_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","clinvar_entry_ids"),n.R7$(),n.Y8G("ngSwitchCase","clingen_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","acmg_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","nccn_guideline_id"),n.R7$(),n.Y8G("ngSwitchCase","hgvs_description_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_type_ids"),n.R7$(),n.Y8G("ngSwitchCase","phenotype_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_id"),n.R7$(),n.Y8G("ngSwitchCase","variant_ids"),n.R7$(),n.Y8G("ngSwitchCase","source_id"),n.R7$(),n.Y8G("ngSwitchCase","evidence_item_ids"),n.R7$(2),n.Y8G("ngIf","NEW"!==i.status)}}function ce(e,l){if(1&e&&(n.j41(0,"nz-collapse",21),n.DNE(1,_e,28,25,"nz-collapse-panel",22),n.k0s()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngForOf",i.untypedRevisons)}}function pe(e,l){1&e&&n.nrm(0,"nz-empty",81)}function ge(e,l){if(1&e&&(n.qex(0),n.j41(1,"nz-card",19),n.DNE(2,ce,2,1,"nz-collapse",20)(3,pe,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.sdS(4),_=n.XpG(),p=n.sdS(4);n.R7$(),n.Y8G("nzExtra",p),n.R7$(),n.Y8G("ngIf",_.revisions&&_.revisions.length>0)("ngIfElse",i)}}function me(e,l){}function de(e,l){1&e&&n.DNE(0,me,0,0,"ng-template")}function fe(e,l){if(1&e&&(n.qex(0),n.DNE(1,de,1,0,null,85),n.bVm()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function ue(e,l){}function ve(e,l){1&e&&n.DNE(0,ue,0,0,"ng-template")}function ze(e,l){if(1&e&&(n.j41(0,"span",86),n.DNE(1,ve,1,0,null,85),n.k0s()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function Ce(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",87),n.mxI("nzPopoverVisibleChange",function(p){n.eBV(i);const R=n.XpG(7);return n.DH7(R.validationPopoverVisible,p)||(R.validationPopoverVisible=p),n.Njj(p)}),n.bIt("click",function(){n.eBV(i);const p=n.XpG(7);return n.Njj(p.validationPopoverVisible=!p.validationPopoverVisible)}),n.EFF(1," Review Selected Revisions "),n.nrm(2,"i",88),n.k0s()}if(2&e){const i=n.XpG(2).ngrxLet,_=n.sdS(7),p=n.sdS(9),R=n.XpG(5);n.Y8G("nzPopoverTitle",_),n.R50("nzPopoverVisible",R.validationPopoverVisible),n.Y8G("nzPopoverContent",p)("nzPopoverTrigger",void 0)("disabled",0===R.selectedRevisionIds.length||!i.signedIn)}}function he(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,fe,2,1,"ng-container",70)(2,ze,2,1,"ng-template",null,12,n.C5r)(4,Ce,3,5,"ng-template",null,13,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",_.signedIn)("ngIfElse",i)}}function Te(e,l){if(1&e&&n.nrm(0,"i",90),2&e){n.XpG(4);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function Re(e,l){1&e&&(n.qex(0),n.DNE(1,Te,1,1,"i",89),n.bVm())}function Ee(e,l){if(1&e){const i=n.RV6();n.EFF(0," Review Selected Revisions "),n.j41(1,"span",91)(2,"i",92),n.bIt("click",function(){n.eBV(i);const p=n.XpG(6);return n.Njj(p.validationPopoverVisible=!1)}),n.k0s()()}2&e&&(n.R7$(),n.Y8G("ngStyle",n.lJ4(1,nt)))}function ye(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-comment-input-form",95),n.mxI("commentChange",function(p){n.eBV(i);const R=n.XpG(7);return n.DH7(R.revisionComment,p)||(R.revisionComment=p),n.Njj(p)}),n.k0s()}if(2&e){const i=n.XpG(7);n.R50("comment",i.revisionComment)}}function be(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",96),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onRejectRevisionsClicked())}),n.EFF(2," Reject Revision "),n.k0s()()}if(2&e){const i=n.XpG(8);n.R7$(),n.Y8G("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 Fe(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",97),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onAcceptRevisionClicked())}),n.EFF(2," Accept Revision "),n.k0s()()}if(2&e){const i=n.XpG(4).ngrxLet,_=n.XpG(4);n.R7$(),n.Y8G("nzLoading",_.isLoading)("disabled",!(0==i&&(void 0===_.revisionComment||""===_.revisionComment||_.revisionComment.length>=10)))("nzTooltipTrigger",_.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==_.mostRecentOrg?null:_.mostRecentOrg.name))}}function Ge(e,l){if(1&e&&n.nrm(0,"i",99),2&e){n.XpG(6);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function xe(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ge,1,1,"i",98),n.k0s()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i>0)}}function Se(e,l){1&e&&(n.j41(0,"span")(1,"nz-space"),n.DNE(2,be,3,4,"span",62)(3,Fe,3,4,"span",62)(4,xe,2,1,"span",62),n.k0s()())}function Ie(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,ye,1,1,"cvc-comment-input-form",94)(2,Se,5,0,"span",62),n.k0s())}function De(e,l){if(1&e&&(n.qex(0),n.j41(1,"div",82)(2,"div",83)(3,"nz-space",84),n.DNE(4,he,6,2,"span",62)(5,Re,2,0,"ng-container",27),n.k0s(),n.DNE(6,Ee,3,2,"ng-template",null,10,n.C5r)(8,Ie,3,0,"ng-template",null,11,n.C5r),n.k0s()(),n.bVm()),2&e){const i=n.XpG().ngrxLet;n.R7$(5),n.Y8G("ngIf",i&&i>0)}}function $e(e,l){if(1&e&&(n.qex(0),n.DNE(1,De,10,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(4);n.R7$(),n.Y8G("ngrxLet",i.viewer$)}}function Oe(e,l){if(1&e&&(n.j41(0,"nz-list-item"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i)}}function Le(e,l){if(1&e&&(n.j41(0,"nz-card",101)(1,"nz-list",102),n.DNE(2,Oe,2,1,"nz-list-item",103),n.k0s()()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function je(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Le,3,1,"nz-card",100),n.k0s()),2&e){const i=n.XpG(2).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Me(e,l){if(1&e&&(n.j41(0,"nz-descriptions-item",108),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.Y8G("nzTitle",i.fieldName),n.R7$(),n.JRh(i.error)}}function Pe(e,l){if(1&e&&(n.j41(0,"nz-card",105)(1,"nz-descriptions",106),n.DNE(2,Me,2,2,"nz-descriptions-item",107),n.k0s()()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function Ne(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Pe,3,1,"nz-card",104),n.k0s()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Ae(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,je,2,1,"span",62)(2,Ne,2,1,"span",62),n.k0s())}function Ye(e,l){if(1&e&&(n.qex(0),n.DNE(1,$e,2,1,"ng-container",16)(2,Ae,3,0,"ng-template",null,9,n.C5r),n.bVm()),2&e){const i=n.XpG(3);n.R7$(),n.Y8G("ngrxLet",i.totalErrorCount$)}}function Ve(e,l){if(1&e&&(n.qex(0),n.DNE(1,Ye,4,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",i.genericErrors$)}}function Xe(e,l){if(1&e&&n.DNE(0,Ve,2,1,"ng-container",16),2&e){const i=n.XpG();n.Y8G("ngrxLet",i.validationErrors$)}}let Be=(()=>{class e{constructor(i,_,p,R,U){this.viewerService=i,this.networkErrorService=_,this.acceptRevisionsGql=p,this.rejectRevisionsGql=R,this.validationGql=U,this.refetchQueries=[],this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new M.B,this.revisionSetSelectedEvent=new n.bkB,this.revisionMutationCompleted=new n.bkB,this.acceptRevisionsMutator=new I.E(this.networkErrorService),this.rejectRevisionsMutator=new I.E(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,G.E)("data","validateRevisionsForAcceptance","genericErrors"),(0,x.p)(Y.kP),(0,b.Z)([])),this.validationErrors$=this.queryRef.valueChanges.pipe((0,G.E)("data","validateRevisionsForAcceptance","validationErrors"),(0,x.p)(Y.kP),(0,b.Z)([])),this.totalErrorCount$=(0,P.z)([this.genericErrors$,this.validationErrors$]).pipe((0,s.T)(([i,_])=>i.length+_.length),(0,b.Z)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(i){this.revisionSetSelectedEvent.emit(i)}onRevisionCheckboxClicked(i,_){i?this.selectedRevisionIds.push(_):this.selectedRevisionIds=this.selectedRevisionIds.filter(p=>p!=_),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(i,_){i.submitSuccess$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=_,this.validationPopoverVisible=!1,this.selectedRevisionIds=[],this.revisionComment=void 0)}),i.submitError$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p.length>0&&(this.isLoading=!1,this.success=!1,this.errors=p,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(_=>_!=i)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(h.q),n.rXU(C.N),n.rXU(c.QZR),n.rXU(c.BMV),n.rXU(c.ZFx))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQueries:"refetchQueries"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.OA$],decls:5,vars:3,consts:[["moderationButtons",""],["noRevisions",""],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["itemTemplate",""],["creationCommentTemplate",""],["noRevisor",""],["loggedIn",""],["canRevise",""],["validationErrorTemplate",""],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["entityType","Feature",3,"diffObject"],[3,"feature"],["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","Feature 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"],["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"],["nz-typography","","nzType","secondary"],[3,"org"],[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"],["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"],["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"],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["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,"commentChange","comment"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["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(_,p){1&_&&n.DNE(0,tt,1,1,"nz-alert",14)(1,et,1,2,"nz-alert",15)(2,ge,5,3,"ng-container",16)(3,Xe,1,1,"ng-template",null,0,n.C5r),2&_&&(n.Y8G("ngForOf",p.errors),n.R7$(),n.Y8G("ngIf",p.success),n.R7$(),n.Y8G("ngrxLet",p.viewer$))},dependencies:[f.Sq,f.bT,f.T3,f.B3,f.ux,f.e1,f.fG,E.Uq,E.e,v.eE,v.lQ,d.cK,$.U5,$.Dq,N.s,T.Di,X.RW,B.$g,K.j,J.LH,nn.L_,k.Dn,w.xA,w.gr,Ln,jn._,Mn.D,Pn,Nn.r,An.Y,Yn.R,sn.A,Vn.j,Xn.J,Bn.h,Un.g,kn.K,Wn.z,Kn.p,Qn.r,gn.Vz,gn.pc,A.aO,S.c,V.p,Hn.Y,u.Nj,Jn.f,Zn.R,wn.N],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}"]})}return e})();const Tt=()=>[];function Ue(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-revision-list",16),n.nI1(1,"ngrxPush"),n.bIt("revisionSetSelectedEvent",function(p){n.eBV(i);const R=n.XpG(2);return n.Njj(R.onRevisionSetSelected(p))})("revisionMutationCompleted",function(){n.eBV(i);const p=n.XpG(2);return n.Njj(p.refresh())}),n.k0s()}if(2&e){const i=n.XpG(2);n.Y8G("revisions",n.bMT(1,2,i.revisions$))("refetchQueries",i.refetchQueries)}}function ke(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).ngrxLet,R=n.XpG(2);return n.Njj(R.loadMore(null==p?null:p.endCursor))}),n.EFF(1," Load More "),n.k0s()}}function We(e,l){1&e&&(n.qex(0),n.DNE(1,ke,2,0,"button",18),n.bVm())}function Ke(e,l){if(1&e&&(n.qex(0),n.DNE(1,We,2,0,"ng-container",17),n.bVm()),2&e){const i=l.ngrxLet;n.R7$(),n.Y8G("ngIf",i&&(null==i?null:i.hasNextPage)&&i.endCursor)}}function Qe(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-row")(1,"nz-tag",21),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG(3);return n.Njj(p.onSetFilterClearClicked())}),n.EFF(2),n.k0s()()}if(2&e){const i=n.XpG(3);n.R7$(2),n.SpI("Group: ",i.filteredSet,"")}}function He(e,l){1&e&&(n.j41(0,"nz-space",7),n.DNE(1,Qe,3,1,"nz-row",20),n.k0s())}function Je(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function Ze(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function we(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function qe(e,l){if(1&e&&(n.DNE(0,Ze,1,1,"nz-avatar",22)(1,we,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function ni(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function ti(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function ei(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function ii(e,l){if(1&e&&(n.DNE(0,ti,1,1,"nz-avatar",22)(1,ei,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function oi(e,l){if(1&e){const i=n.RV6();n.qex(0),n.j41(1,"nz-row",5)(2,"nz-col",6)(3,"nz-space",7),n.DNE(4,Ue,2,4,"cvc-revision-list",8)(5,Ke,2,1,"ng-container",9),n.k0s()(),n.j41(6,"nz-col",10),n.DNE(7,He,2,0,"nz-space",11),n.j41(8,"cvc-participant-list",12),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onStatusSelected(p))}),n.DNE(9,Je,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(11,"cvc-participant-list",13),n.nI1(12,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onRevisorSelected(p))}),n.DNE(13,qe,5,3,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"cvc-participant-list",14),n.nI1(16,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onFieldNameSelected(p))}),n.DNE(17,ni,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(19,"cvc-participant-list",15),n.nI1(20,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onResolverSelected(p))}),n.DNE(21,ii,5,3,"ng-template",null,1,n.C5r),n.k0s()()(),n.bVm()}if(2&e){const i=n.XpG();n.R7$(),n.Y8G("nzGutter",16),n.R7$(4),n.Y8G("ngrxLet",i.pageInfo$),n.R7$(2),n.Y8G("ngIf",i.filteredSet),n.R7$(),n.Y8G("preselectedOption",i.preselectedRevisionStatus)("participantList",i.selectableStatuses),n.R7$(3),n.Y8G("participantList",n.bMT(12,8,i.uniqueRevisors$)||n.lJ4(14,Tt)),n.R7$(4),n.Y8G("participantList",n.bMT(16,10,i.revisionFields$)||n.lJ4(15,Tt)),n.R7$(4),n.Y8G("participantList",n.bMT(20,12,i.uniqueResolvers$)||n.lJ4(16,Tt))}}function si(e,l){1&e&&(n.qex(0),n.j41(1,"nz-row",25),n.nrm(2,"i",26),n.k0s(),n.bVm())}function ai(e,l){1&e&&n.nrm(0,"nz-empty",27)}function li(e,l){if(1&e&&(n.DNE(0,si,3,0,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,ai,1,0,"ng-template",null,3,n.C5r)),2&e){const i=n.sdS(3),_=n.XpG();n.Y8G("ngIf",n.bMT(1,2,_.isLoading$))("ngIfElse",i)}}let ri=(()=>{class e{constructor(i,_,p,R,U,_n,Rt,_i,ci,pi,gi,mi,di,fi){this.gql=i,this.route=_,this.variantDetailGql=p,this.variantSummaryGql=R,this.variantGroupDetailGql=U,this.variantGroupSummaryGql=_n,this.assertionDetailGql=Rt,this.assertionSummaryGql=_i,this.featureDetailGql=ci,this.featureSummaryGql=pi,this.evidenceDetailGql=gi,this.evidenceSummaryGql=mi,this.molecularProfileDetailGql=di,this.molecularProfileSummaryGql=fi,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:c.W14.New},{id:1,displayName:"Accepted",value:c.W14.Accepted},{id:2,displayName:"Rejected",value:c.W14.Rejected},{id:3,displayName:"Superseded",value:c.W14.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(_=>{let p={first:this.defaultPageSize,subject:{id:this.id,entityType:this.entityType},status:c.W14.New};_.revisionSetId&&(this.filteredSet=+_.revisionSetId,this.preselectedRevisionStatus=void 0,p.status=void 0,p.revisionSetId=+_.revisionSetId),this.queryRef=this.gql.watch(p);let R=this.queryRef.valueChanges;this.revisions$=R.pipe((0,G.E)("data","revisions","edges"),(0,s.T)(U=>U.map(_n=>_n.node))),this.isLoading$=R.pipe((0,s.T)(U=>U.loading),(0,b.Z)(!0)),this.pageInfo$=R.pipe((0,G.E)("data","revisions","pageInfo")),this.uniqueRevisors$=R.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueRevisors)),this.uniqueResolvers$=R.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueResolvers)),this.revisionFields$=R.pipe((0,s.T)(({data:U})=>U.revisions?.revisedFieldNames.map((_n,Rt)=>({..._n,id:Rt})))),this.unfilteredCount$=R.pipe((0,G.E)("data","revisions","unfilteredCountForSubject"))})}),this.entityType){case c.BlQ.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 c.BlQ.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 c.BlQ.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 c.BlQ.Feature:return this.refetchQueries.push({query:this.featureDetailGql.document,variables:{featureId:this.id}}),void this.refetchQueries.push({query:this.featureSummaryGql.document,variables:{featureId:this.id}});case c.BlQ.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 c.BlQ.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}})}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(c.xPr),n.rXU(t.nX),n.rXU(c.N47),n.rXU(c.yLZ),n.rXU(c.IbX),n.rXU(c.sAe),n.rXU(c.kKs),n.rXU(c.fqJ),n.rXU(c.ULh),n.rXU(c.gUZ),n.rXU(c.fQd),n.rXU(c.Ype),n.rXU(c.Tj8),n.rXU(c.SPr))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{id:"id",entityType:"entityType"},decls:4,vars:4,consts:[["noRevisions",""],["itemTemplate",""],["noAvatar",""],["noneFound",""],[4,"ngIf","ngIfElse"],[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,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Filter by Revisor",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Field",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Resolver",3,"participantSelectedEvent","participantList"],[3,"revisionSetSelectedEvent","revisionMutationCompleted","revisions","refetchQueries"],[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"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(_,p){if(1&_&&(n.DNE(0,oi,23,17,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,li,4,4,"ng-template",null,0,n.C5r)),2&_){const R=n.sdS(3);n.Y8G("ngIf",n.bMT(1,2,p.unfilteredCount$))("ngIfElse",R)}},dependencies:[f.bT,u.Nj,E.Uq,E.e,$.U5,$.Dq,N.s,F.PM,X.RW,A.aO,S.c,V.p,k.Dn,y.T,Be,f.Pc,u.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return e})()},6371:(Q,j,o)=>{o.d(j,{O:()=>S});var c=o(177),s=o(7529),b=o(2617),G=o(5703),n=o(7685),t=o(5699),f=o(7391),u=o(2968),E=o(9438),$=o(869),N=o(1672),F=o(513),X=o(5103),A=o(3953);let S=(()=>{class V{static#n=this.\u0275fac=function(M){return new(M||V)};static#t=this.\u0275mod=A.$C({type:V});static#e=this.\u0275inj=A.G2t({imports:[c.MD,s.f3,b.rD,G.Ti,n.pc,t.T,f.kT,E.Yb,N._v,F.Zw,X.Y3,u.K,$.S]})}return V})()},6269:(Q,j,o)=>{o.d(j,{f:()=>h});var c=o(4608),s=o(3953),b=o(9145),G=o(177),n=o(7391),t=o(1188),f=o(9438),u=o(1236),E=o(2e3),$=o(2702),N=o(7793);function F(C,v){1&C&&(s.qex(0),s.EFF(1,", "),s.bVm())}function X(C,v){if(1&C&&(s.qex(0),s.EFF(1),s.nI1(2,"eventVerbiage"),s.DNE(3,F,2,0,"ng-container",12),s.bVm()),2&C){const d=v.$implicit,T=v.last;s.R7$(),s.SpI(" ",s.brH(2,2,d.action,"contributor-card",d.count)," "),s.R7$(2),s.Y8G("ngIf",!T)}}function A(C,v){if(1&C&&(s.j41(0,"nz-descriptions",8)(1,"nz-descriptions-item",9),s.DNE(2,X,4,6,"ng-container",10),s.k0s(),s.j41(3,"nz-descriptions-item",11),s.EFF(4),s.nI1(5,"date"),s.k0s()()),2&C){const d=s.XpG(2).$implicit;s.Y8G("nzColumn",1),s.R7$(2),s.Y8G("ngForOf",d.uniqueActions),s.R7$(2),s.SpI(" ",s.bMT(5,3,d.lastActionDate)," ")}}function S(C,v){if(1&C&&(s.j41(0,"cvc-user-popover",7),s.DNE(1,A,6,5,"ng-template",null,2,s.C5r),s.k0s()),2&C){const d=s.XpG().$implicit;s.Y8G("userId",d.user.id)}}function V(C,v){if(1&C&&(s.j41(0,"a",5),s.nrm(1,"nz-avatar",6),s.DNE(2,S,3,1,"ng-template",null,1,s.C5r),s.k0s()),2&C){const d=v.$implicit,T=s.sdS(3);s.Mz_("routerLink","/users/",d.user.id,""),s.R7$(),s.Y8G("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",T)("nzSrc",d.user.profileImagePath)}}function k(C,v){if(1&C&&(s.qex(0),s.DNE(1,V,4,6,"a",4),s.bVm()),2&C){const d=s.XpG();s.R7$(),s.Y8G("ngForOf",d.sortedContributors)}}function y(C,v){1&C&&s.EFF(0," None ")}let M=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((d,T)=>T.totalActionCount-d.totalActionCount)}static#n=this.\u0275fac=function(T){return new(T||C)};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[["noContributors",""],["curatorPopover",""],["additionalMetadata",""],[4,"ngIf","ngIfElse"],["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"],[3,"userId"],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(T,B){if(1&T&&s.DNE(0,k,2,1,"ng-container",3)(1,y,1,0,"ng-template",null,0,s.C5r),2&T){const K=s.sdS(2);s.Y8G("ngIf",B.sortedContributors&&B.sortedContributors.length>0)("ngIfElse",K)}},dependencies:[G.Sq,G.bT,t.Wk,f.PM,u.L_,E.xA,E.gr,$.M,G.vh,N.s],encapsulation:2})}return C})();var x=o(1774);function P(C,v){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const d=v.ngIf;s.R7$(),s.Y8G("contributors",d)}}function I(C,v){1&C&&s.EFF(0," None ")}function O(C,v){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const d=v.ngIf;s.R7$(),s.Y8G("contributors",d)}}function Y(C,v){1&C&&s.EFF(0," None ")}let h=(()=>{class C{constructor(d){this.gql=d}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let d=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=d.pipe((0,c.E)("data","contributors","curators")),this.editors$=d.pipe((0,c.E)("data","contributors","editors"))}static#n=this.\u0275fac=function(T){return new(T||C)(s.rXU(b.wBW))};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["noCurators",""],["noEditors",""],["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],[3,"contributors"]],template:function(T,B){if(1&T&&(s.j41(0,"span",2),s.EFF(1,"Curators:"),s.k0s(),s.j41(2,"div",3),s.DNE(3,P,2,1,"ng-container",4),s.nI1(4,"ngrxPush"),s.DNE(5,I,1,0,"ng-template",null,0,s.C5r),s.k0s(),s.j41(7,"span",2),s.EFF(8,"Editors:"),s.k0s(),s.j41(9,"div",3),s.DNE(10,O,2,1,"ng-container",4),s.nI1(11,"ngrxPush"),s.DNE(12,Y,1,0,"ng-template",null,1,s.C5r),s.k0s()),2&T){const K=s.sdS(6),J=s.sdS(13);s.R7$(3),s.Y8G("ngIf",s.bMT(4,4,B.curators$))("ngIfElse",K),s.R7$(7),s.Y8G("ngIf",s.bMT(11,6,B.editors$))("ngIfElse",J)}},dependencies:[G.bT,n.Di,M,x.L9],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}"]})}return C})()},8103:(Q,j,o)=>{o.d(j,{m:()=>N});var c=o(177),s=o(7391),b=o(1188),G=o(9438),n=o(1236),t=o(4917),f=o(2225),u=o(2e3),E=o(3953);let $=(()=>{class F{static#n=this.\u0275fac=function(S){return new(S||F)};static#t=this.\u0275mod=E.$C({type:F});static#e=this.\u0275inj=E.G2t({imports:[c.MD,b.iI,G.Yb,n.MC,u.WF,t.i,f.h]})}return F})(),N=(()=>{class F{static#n=this.\u0275fac=function(S){return new(S||F)};static#t=this.\u0275mod=E.$C({type:F});static#e=this.\u0275inj=E.G2t({imports:[c.MD,s.kT,$]})}return F})()},5269:(Q,j,o)=>{o.d(j,{o:()=>M});var c=o(1226),s=o(9145),b=o(1413),G=o(5964),n=o(6977),t=o(9199),f=o(4608),u=o(3953),E=o(4222),$=o(177),N=o(513),F=o(6389),X=o(5930),A=o(5103),S=o(5154),V=o(1774);function k(x,P){if(1&x){const I=u.RV6();u.qex(0),u.j41(1,"button",2),u.bIt("click",function(){u.eBV(I);const Y=u.XpG();return u.Njj(Y.unsubscribe())}),u.nrm(2,"i",3),u.k0s(),u.bVm()}if(2&x){const I=u.XpG();u.R7$(),u.Y8G("nzLoading",I.isSubmitting)}}function y(x,P){if(1&x){const I=u.RV6();u.j41(0,"button",4),u.bIt("click",function(){u.eBV(I);const Y=u.XpG();return u.Njj(Y.subscribe())}),u.nrm(1,"i",5),u.k0s()}if(2&x){const I=u.XpG();u.Y8G("nzLoading",I.isSubmitting)}}let M=(()=>{class x{constructor(I,O,Y,h){this.isSubscribedGQL=I,this.unsubscribeMutation=O,this.subscribeMutation=Y,this.networkErrorService=h,this.isSubmitting=!1,this.destroy$=new b.B,this.unsubscribeMutator=new c.E(h),this.subscribeMutator=new c.E(h)}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.V9U[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,f.E)("data","subscriptionForEntity"),(0,G.p)(t.kP))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.Q)(this.destroy$)).subscribe(O=>{O&&(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.Q)(this.destroy$)).subscribe(O=>{O&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(O){return new(O||x)(u.rXU(s.aUH),u.rXU(s.ytN),u.rXU(s.RSy),u.rXU(E.N))};static#t=this.\u0275cmp=u.VBU({type:x,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[["noSub",""],[4,"ngIf","ngIfElse"],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(O,Y){if(1&O&&(u.DNE(0,k,3,1,"ng-container",1),u.nI1(1,"ngrxPush"),u.DNE(2,y,2,1,"ng-template",null,0,u.C5r)),2&O){const h=u.sdS(3);u.Y8G("ngIf",u.bMT(1,2,Y.existingSubscription$))("ngIfElse",h)}},dependencies:[$.bT,N.aO,F.c,X.p,A.Dn,S.LH,V.L9],styles:["[_nghost-%COMP%]{display:block}"]})}return x})()},5736:(Q,j,o)=>{o.d(j,{V:()=>t});var c=o(177),s=o(513),b=o(5103),G=o(5154),n=o(3953);let t=(()=>{class f{static#n=this.\u0275fac=function($){return new($||f)};static#t=this.\u0275mod=n.$C({type:f});static#e=this.\u0275inj=n.G2t({imports:[c.MD,s.Zw,b.Y3,G.Qt]})}return f})()},1845:(Q,j,o)=>{o.d(j,{f:()=>s});var c=o(3953);let s=(()=>{class b{transform(n){if(n){let f=n.toLowerCase().replace(/_/g," ").split(" ");for(var t=0;t{o.d(j,{GB:()=>Y,Vz:()=>O,pc:()=>P});var c=o(4707),s=o(3953),b=o(3726),G=o(6977),n=o(5964),t=o(713),f=o(6042),u=o(7806),E=o(1025),$=o(5103),N=o(8203),F=o(6841);const X=["*"],A=["collapseHeader"];function S(h,C){if(1&h&&(s.qex(0),s.nrm(1,"span",7),s.bVm()),2&h){const v=C.$implicit,d=s.XpG(2);s.R7$(),s.Y8G("nzType",v||"right")("nzRotate",d.nzActive?90:0)}}function V(h,C){if(1&h&&(s.j41(0,"div"),s.DNE(1,S,2,2,"ng-container",3),s.k0s()),2&h){const v=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",v.nzExpandedIcon)}}function k(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const v=s.XpG();s.R7$(),s.JRh(v.nzHeader)}}function y(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const v=s.XpG(2);s.R7$(),s.JRh(v.nzExtra)}}function M(h,C){if(1&h&&(s.j41(0,"div",4),s.DNE(1,y,2,1,"ng-container",3),s.k0s()),2&h){const v=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",v.nzExtra)}}const x="collapse";let P=(()=>{class h{constructor(v,d,T,B){this.nzConfigService=v,this.cdr=d,this.directionality=T,this.destroy$=B,this._nzModuleName=x,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="start",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.nzConfigService.getConfigChangeEventForComponent(x).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(v=>{this.dir=v,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(v){this.listOfNzCollapsePanelComponent.push(v)}removePanel(v){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(v),1)}click(v){this.nzAccordion&&!v.nzActive&&this.listOfNzCollapsePanelComponent.filter(d=>d!==v).forEach(d=>{d.nzActive&&(d.nzActive=!1,d.nzActiveChange.emit(d.nzActive),d.markForCheck())}),v.nzActive=!v.nzActive,v.nzActiveChange.emit(v.nzActive)}static#n=this.\u0275fac=function(d){return new(d||h)(s.rXU(f.yx),s.rXU(s.gRc),s.rXU(N.dS,8),s.rXU(E.y4))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(d,T){2&d&&s.AVh("ant-collapse-icon-position-start","start"===T.nzExpandIconPosition)("ant-collapse-icon-position-end","end"===T.nzExpandIconPosition)("ant-collapse-ghost",T.nzGhost)("ant-collapse-borderless",!T.nzBordered)("ant-collapse-rtl","rtl"===T.dir)},inputs:{nzAccordion:[2,"nzAccordion","nzAccordion",s.L39],nzBordered:[2,"nzBordered","nzBordered",s.L39],nzGhost:[2,"nzGhost","nzGhost",s.L39],nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],standalone:!0,features:[s.Jv_([E.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:1,vars:0,template:function(d,T){1&d&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return(0,c.Cg)([(0,f.H4)()],h.prototype,"nzAccordion",void 0),(0,c.Cg)([(0,f.H4)()],h.prototype,"nzBordered",void 0),(0,c.Cg)([(0,f.H4)()],h.prototype,"nzGhost",void 0),h})();const I="collapsePanel";let O=(()=>{class h{markForCheck(){this.cdr.markForCheck()}constructor(v,d,T,B,K,J){this.nzConfigService=v,this.ngZone=d,this.cdr=T,this.destroy$=B,this.nzCollapseComponent=K,this.noAnimation=J,this._nzModuleName=I,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new s.bkB,this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.nzCollapseComponent.addPanel(this),this.ngZone.runOutsideAngular(()=>(0,b.R)(this.collapseHeader.nativeElement,"click").pipe((0,n.p)(()=>!this.nzDisabled),(0,G.Q)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.nzCollapseComponent.click(this),this.cdr.markForCheck()})}))}ngOnDestroy(){this.nzCollapseComponent.removePanel(this)}static#n=this.\u0275fac=function(d){return new(d||h)(s.rXU(f.yx),s.rXU(s.SKi),s.rXU(s.gRc),s.rXU(E.y4),s.rXU(P,1),s.rXU(F.z,8))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse-panel"]],viewQuery:function(d,T){if(1&d&&s.GBs(A,7),2&d){let B;s.mGM(B=s.lsd())&&(T.collapseHeader=B.first)}},hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(d,T){2&d&&s.AVh("ant-collapse-no-arrow",!T.nzShowArrow)("ant-collapse-item-active",T.nzActive)("ant-collapse-item-disabled",T.nzDisabled)},inputs:{nzActive:[2,"nzActive","nzActive",s.L39],nzDisabled:[2,"nzDisabled","nzDisabled",s.L39],nzShowArrow:[2,"nzShowArrow","nzShowArrow",s.L39],nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],standalone:!0,features:[s.Jv_([E.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:9,vars:8,consts:[["collapseHeader",""],["role","button",1,"ant-collapse-header"],[1,"ant-collapse-header-text"],[4,"nzStringTemplateOutlet"],[1,"ant-collapse-extra"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"]],template:function(d,T){1&d&&(s.NAR(),s.j41(0,"div",1,0),s.DNE(2,V,2,1,"div"),s.j41(3,"span",2),s.DNE(4,k,2,1,"ng-container",3),s.k0s(),s.DNE(5,M,2,1,"div",4),s.k0s(),s.j41(6,"div",5)(7,"div",6),s.SdG(8),s.k0s()()),2&d&&(s.BMQ("aria-expanded",T.nzActive),s.R7$(2),s.vxM(T.nzShowArrow?2:-1),s.R7$(2),s.Y8G("nzStringTemplateOutlet",T.nzHeader),s.R7$(),s.vxM(T.nzExtra?5:-1),s.R7$(),s.AVh("ant-collapse-content-active",T.nzActive),s.Y8G("@.disabled",!(null==T.noAnimation||!T.noAnimation.nzNoAnimation))("@collapseMotion",T.nzActive?"expanded":"hidden"))},dependencies:[u.C,u.m,$.Y3,$.Dn],encapsulation:2,data:{animation:[t.GE]},changeDetection:0})}return(0,c.Cg)([(0,f.H4)()],h.prototype,"nzShowArrow",void 0),h})(),Y=(()=>{class h{static#n=this.\u0275fac=function(d){return new(d||h)};static#t=this.\u0275mod=s.$C({type:h});static#e=this.\u0275inj=s.G2t({imports:[O]})}return h})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5384],{4097:(Q,N,o)=>{o.d(N,{b:()=>ht});var c=o(9145),s=o(5964),S=o(6354),G=o(4608),n=o(9199),t=o(3953),v=o(177),f=o(1774),E=o(513),$=o(6389),P=o(5930),b=o(7529),X=o(1635),A=o(1226),x=o(9894),V=o(1305),k=o(4222),y=o(9417),j=o(8927),F=o(5703),M=o(3617),I=o(5154),O=o(2983),Y=o(1939),h=o(5566),C=o(1845);function u(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",10),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function d(r,g){if(1&r&&t.nrm(0,"nz-alert",11),2&r){t.XpG();const a=t.sdS(4);t.Y8G("nzDescription",a)}}function T(r,g){if(1&r&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a)}}function B(r,g){if(1&r&&(t.j41(0,"ul"),t.DNE(1,T,2,1,"li",12),t.k0s()),2&r){const a=t.XpG();t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function K(r,g){}function J(r,g){1&r&&t.DNE(0,K,0,0,"ng-template")}function nn(r,g){if(1&r&&(t.qex(0),t.DNE(1,J,1,0,null,14),t.bVm()),2&r){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function w(r,g){}function tn(r,g){1&r&&t.DNE(0,w,0,0,"ng-template")}function en(r,g){if(1&r&&(t.j41(0,"span",15),t.DNE(1,tn,1,0,null,14),t.k0s()),2&r){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Z(r,g){if(1&r&&(t.j41(0,"button",16),t.EFF(1),t.nI1(2,"enumToTitle"),t.k0s()),2&r){const a=t.XpG().ngrxLet,m=t.XpG();t.Y8G("disabled",!(void 0!==m.comment&&m.comment.length>=10&&a.signedIn))("nzTooltipTrigger",m.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==m.selectedOrg?null:m.selectedOrg.name)),t.R7$(),t.SpI(" Flag ",t.bMT(2,4,m.flaggable.entityType)," ")}}function on(r,g){if(1&r&&(t.qex(0),t.j41(1,"cvc-form-buttons"),t.DNE(2,nn,2,1,"ng-container",13)(3,en,2,1,"ng-template",null,1,t.C5r)(5,Z,3,6,"ng-template",null,2,t.C5r),t.k0s(),t.bVm()),2&r){const a=g.ngrxLet,m=t.sdS(4);t.R7$(2),t.Y8G("ngIf",a.signedIn)("ngIfElse",m)}}let q=class Et{constructor(g,a,m){this.gql=g,this.viewerService=a,this.networkErrorService=m,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.addFlagMutator=new A.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.pipe((0,x.s)(this)).subscribe(z=>{this.selectedOrg=z.mostRecentOrg})}ngOnInit(){if(void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(g){this.selectedOrg=g}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,x.s)(this)).subscribe(m=>{m&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),a.submitError$.pipe((0,x.s)(this)).subscribe(m=>{m.length>0&&(this.errorMessages=m)}),a.isSubmitting$.pipe((0,x.s)(this)).subscribe(m=>{this.loading=m})}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(a){return new(a||Et)(t.rXU(c.GOU),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:Et,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["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"],[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(a,m){if(1&a){const z=t.RV6();t.j41(0,"nz-card",3),t.DNE(1,u,1,0,"nz-alert",4)(2,d,1,1,"nz-alert",5)(3,B,2,1,"ng-template",null,0,t.C5r),t.j41(5,"form",6),t.bIt("ngSubmit",function(){return t.eBV(z),t.Njj(m.submitFlag())}),t.j41(6,"cvc-comment-input-form",7),t.mxI("commentChange",function(rn){return t.eBV(z),t.DH7(m.comment,rn)||(m.comment=rn),t.Njj(rn)}),t.k0s(),t.j41(7,"nz-spin",8)(8,"nz-form-item")(9,"nz-form-control"),t.DNE(10,on,7,2,"ng-container",9),t.k0s()()()()()}2&a&&(t.R7$(),t.Y8G("ngIf",m.success),t.R7$(),t.Y8G("ngIf",m.errorMessages.length>0),t.R7$(4),t.R50("comment",m.comment),t.R7$(),t.Y8G("nzSpinning",m.loading),t.R7$(3),t.Y8G("ngrxLet",m.viewer$))},dependencies:[v.Sq,v.bT,v.T3,y.qT,y.cb,y.cV,f.Nj,b.Uq,b.e,j.CA,j.Ls,j.zS,E.aO,$.c,P.p,F.cK,M.Y,I.LH,O.a,Y.l,h.K,C.f],encapsulation:2,changeDetection:0})};q=(0,X.Cg)([(0,x.d)()],q);var D=o(1413),cn=o(6977),H=o(7685),W=o(7391),un=o(1672),vn=o(9448),pn=o(5103),zn=o(6408),Cn=o(311),hn=o(1236);const Tn=()=>({float:"right"});function Rn(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function En(r,g){}function yn(r,g){1&r&&t.DNE(0,En,0,0,"ng-template")}function bn(r,g){if(1&r&&(t.qex(0),t.DNE(1,yn,1,0,null,10),t.bVm()),2&r){t.XpG(2);const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Gn(r,g){if(1&r&&(t.qex(0),t.DNE(1,bn,2,1,"ng-container",9),t.bVm()),2&r){const a=t.XpG().ngrxLet,m=t.sdS(5),z=t.XpG();t.R7$(),t.Y8G("ngIf",a.isEditor||a.isAdmin||z.flag.openActivity.user.id===a.id)("ngIfElse",m)}}function Fn(r,g){}function xn(r,g){1&r&&t.DNE(0,Fn,0,0,"ng-template")}function Sn(r,g){if(1&r&&(t.j41(0,"span",11),t.DNE(1,xn,1,0,null,10),t.k0s()),2&r){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function In(r,g){}function Dn(r,g){1&r&&t.DNE(0,In,0,0,"ng-template")}function $n(r,g){if(1&r&&(t.j41(0,"span",12),t.DNE(1,Dn,1,0,null,10),t.k0s()),2&r){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function On(r,g){if(1&r){const a=t.RV6();t.j41(0,"button",14),t.mxI("nzPopoverVisibleChange",function(z){t.eBV(a);const L=t.XpG(3);return t.DH7(L.flagResolvePopoverVisible,z)||(L.flagResolvePopoverVisible=z),t.Njj(z)}),t.bIt("click",function(){t.eBV(a);const z=t.XpG(3);return t.Njj(z.flagResolvePopoverVisible=!z.flagResolvePopoverVisible)}),t.EFF(1," Resolve Flag "),t.nrm(2,"i",15),t.k0s()}if(2&r){const a=t.XpG(2).ngrxLet,m=t.XpG(),z=t.sdS(3),L=t.sdS(5);t.Y8G("nzPopoverTitle",z),t.R50("nzPopoverVisible",m.flagResolvePopoverVisible),t.Y8G("nzPopoverContent",L)("nzPopoverTrigger",void 0)("disabled",!a.signedIn||a.isCurator&&m.flag.openActivity.user.id!=a.id)}}function Ln(r,g){if(1&r&&t.DNE(0,On,3,5,"button",13),2&r){const a=t.XpG(2);t.Y8G("ngIf",!a.success)}}function jn(r,g){if(1&r&&(t.qex(0),t.DNE(1,Gn,2,2,"ng-container",9)(2,Sn,2,1,"ng-template",null,2,t.C5r)(4,$n,2,1,"ng-template",null,3,t.C5r)(6,Ln,1,1,"ng-template",null,4,t.C5r),t.bVm()),2&r){const a=g.ngrxLet,m=t.sdS(3);t.R7$(),t.Y8G("ngIf",a.signedIn)("ngIfElse",m)}}function Mn(r,g){if(1&r){const a=t.RV6();t.EFF(0," Resolve Flag "),t.j41(1,"span",16)(2,"i",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG();return z.flagResolvePopoverVisible=!1,t.Njj(z.errorMessages=[])}),t.k0s()()}2&r&&(t.R7$(),t.Y8G("ngStyle",t.lJ4(1,Tn)))}function Pn(r,g){if(1&r&&t.nrm(0,"nz-alert",24),2&r){t.XpG();const a=t.sdS(2);t.Y8G("nzDescription",a)}}function Nn(r,g){if(1&r&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a)}}function An(r,g){if(1&r&&(t.j41(0,"ul"),t.DNE(1,Nn,2,1,"li",25),t.k0s()),2&r){const a=t.XpG(2);t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function Yn(r,g){if(1&r){const a=t.RV6();t.DNE(0,Pn,1,1,"nz-alert",18)(1,An,2,1,"ng-template",null,5,t.C5r),t.j41(3,"nz-card",19)(4,"form",20),t.bIt("ngSubmit",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.resolveFlag())}),t.j41(5,"cvc-comment-input-form",21),t.mxI("commentChange",function(z){t.eBV(a);const L=t.XpG();return t.DH7(L.comment,z)||(L.comment=z),t.Njj(z)}),t.k0s(),t.j41(6,"nz-spin",22)(7,"nz-form-item")(8,"nz-form-control")(9,"cvc-form-buttons")(10,"button",23),t.EFF(11," Resolve "),t.k0s()()()()()()()}if(2&r){const a=t.XpG();t.Y8G("ngIf",a.errorMessages.length>0),t.R7$(5),t.R50("comment",a.comment),t.R7$(),t.Y8G("nzSpinning",a.loading),t.R7$(4),t.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}let sn=class yt{constructor(g,a,m){this.gql=g,this.viewerService=a,this.networkErrorService=m,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.resolveFlagMutator=new A.E(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,x.s)(this)).subscribe(g=>{this.selectedOrg=g.mostRecentOrg})}onOrgSelected(g){this.selectedOrg=g}resolveFlag(){if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:this.selectedOrg?.id}});g.submitSuccess$.pipe((0,x.s)(this)).subscribe(a=>{a&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,x.s)(this)).subscribe(a=>{a.length>0&&(this.success=!1,this.errorMessages=a)}),g.isSubmitting$.pipe((0,x.s)(this)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}static#n=this.\u0275fac=function(a){return new(a||yt)(t.rXU(c.reo),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:yt,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["notSignedIn",""],["noPermissions",""],["submitButton",""],["errorContents",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],[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,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["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"],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["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(a,m){1&a&&t.DNE(0,Rn,1,0,"nz-alert",6)(1,jn,8,2,"ng-container",7)(2,Mn,3,2,"ng-template",null,0,t.C5r)(4,Yn,12,6,"ng-template",null,1,t.C5r),2&a&&(t.Y8G("ngIf",m.success),t.R7$(),t.Y8G("ngrxLet",m.viewer$))},dependencies:[v.Sq,v.bT,v.T3,v.B3,y.qT,y.cb,f.Nj,E.aO,$.c,P.p,b.Uq,b.e,j.CA,j.Ls,j.zS,y.cV,M.Y,F.cK,hn.L_,pn.Dn,I.LH,O.a,h.K,Y.l],encapsulation:2})};sn=(0,X.Cg)([(0,x.d)()],sn);var Vn=o(4126),Xn=o(3075),Bn=o(8139);function Un(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){const z=t.eBV(a).$implicit,L=t.XpG();return t.Njj(L.onErrorBannerClose(z))}),t.k0s()}2&r&&t.Y8G("nzMessage",g.$implicit)}function kn(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",9),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}if(2&r){const a=t.XpG();t.Mz_("nzMessage","Revision(s) successfully ",a.success,".")}}function Wn(r,g){if(1&r&&t.nrm(0,"cvc-comment-body",15),2&r){const a=t.XpG(2).$implicit;t.Y8G("commentBodySegments",a.openActivity.parsedNote)}}function Kn(r,g){if(1&r&&(t.qex(0),t.nrm(1,"cvc-flag-resolve-form",16),t.bVm()),2&r){const a=t.XpG(2).$implicit,m=t.XpG(2);t.R7$(),t.Y8G("flag",a)("flagResolvedCallback",m.flagResolvedCallback)}}function Qn(r,g){if(1&r&&(t.qex(0),t.nrm(1,"cvc-comment-body",15),t.bVm()),2&r){const a=t.XpG(3).$implicit;t.R7$(),t.Y8G("commentBodySegments",a.resolutionActivity.parsedNote)}}function gn(r,g){if(1&r&&t.nrm(0,"cvc-user-tag",21),2&r){const a=t.XpG(3).$implicit;t.Y8G("user",a.resolutionActivity.user)}}function Hn(r,g){if(1&r&&(t.j41(0,"nz-row")(1,"nz-col",17),t.DNE(2,Qn,2,1,"ng-container",18),t.k0s(),t.j41(3,"nz-col",19),t.EFF(4," Resolved By "),t.DNE(5,gn,1,1,"cvc-user-tag",20),t.EFF(6),t.nI1(7,"timeAgo"),t.k0s()()),2&r){const a=t.XpG(2).$implicit;t.R7$(2),t.Y8G("ngIf",a.resolutionActivity),t.R7$(3),t.Y8G("ngIf",void 0!==a.resolutionActivity),t.R7$(),t.SpI(" ",t.bMT(7,3,null==a.resolutionActivity?null:a.resolutionActivity.createdAt)," ")}}function Jn(r,g){if(1&r&&(t.nrm(0,"i",22),t.nI1(1,"entityColor"),t.EFF(2)),2&r){const a=t.XpG(2).$implicit;t.Y8G("nzTwotoneColor",t.bMT(1,2,"Flag")),t.R7$(2),t.SpI(" FID",a.id," ")}}function Zn(r,g){if(1&r&&(t.j41(0,"span")(1,"span",26),t.EFF(2,"Flagged By"),t.k0s(),t.nrm(3,"cvc-user-tag",21),t.j41(4,"span",26),t.EFF(5),t.nI1(6,"timeAgo"),t.k0s()()),2&r){const a=t.XpG(3).$implicit;t.R7$(3),t.Y8G("user",a.openActivity.user),t.R7$(2),t.JRh(t.bMT(6,2,a.openActivity.createdAt))}}function wn(r,g){if(1&r&&t.nrm(0,"cvc-status-tag",27),2&r){const a=t.XpG(3).$implicit;t.Y8G("status",a.state)}}function mn(r,g){1&r&&(t.j41(0,"nz-space",23),t.DNE(1,Zn,7,4,"span",24)(2,wn,1,1,"cvc-status-tag",25),t.k0s())}function an(r,g){if(1&r&&(t.j41(0,"nz-card",13),t.DNE(1,Wn,1,1,"cvc-comment-body",14),t.nrm(2,"nz-divider"),t.DNE(3,Kn,2,2,"ng-container",7)(4,Hn,8,5,"ng-template",null,1,t.C5r)(6,Jn,3,4,"ng-template",null,2,t.C5r)(8,mn,3,0,"ng-template",null,3,t.C5r),t.k0s()),2&r){const a=t.sdS(5),m=t.sdS(7),z=t.sdS(9),L=t.XpG().$implicit;t.Y8G("nzTitle",m)("nzExtra",z),t.R7$(),t.Y8G("ngIf",L.openActivity),t.R7$(2),t.Y8G("ngIf","OPEN"==L.state)("ngIfElse",a)}}function dn(r,g){1&r&&(t.qex(0),t.DNE(1,an,10,5,"nz-card",12),t.bVm())}function fn(r,g){if(1&r&&(t.qex(0),t.j41(1,"nz-space",10),t.DNE(2,dn,2,0,"ng-container",11),t.k0s(),t.bVm()),2&r){const a=t.XpG();t.R7$(2),t.Y8G("ngForOf",a.flags)}}function qn(r,g){1&r&&t.nrm(0,"nz-empty",28)}let nt=(()=>{class r{constructor(a){this.viewerService=a,this.isLoading=!1,this.success=!1,this.destroy$=new D.B}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(a=>{this.mostRecentOrg=a.mostRecentOrg})}setupMutationResultHandlers(a,m){a.submitSuccess$.pipe((0,cn.Q)(this.destroy$)).subscribe(z=>{z&&(this.isLoading=!1,this.errors=void 0,this.success=m)}),a.submitError$.pipe((0,cn.Q)(this.destroy$)).subscribe(z=>{z.length>0&&(this.isLoading=!1,this.success=!1,this.errors=z)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(a){this.errors=this.errors?.filter(m=>m!=a)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(m){return new(m||r)(t.rXU(V.q))};static#t=this.\u0275cmp=t.VBU({type:r,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["noFlags",""],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],["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"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],[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(m,z){if(1&m&&(t.DNE(0,Un,1,1,"nz-alert",4)(1,kn,1,2,"nz-alert",5),t.j41(2,"nz-card",6),t.DNE(3,fn,3,1,"ng-container",7)(4,qn,1,0,"ng-template",null,0,t.C5r),t.k0s()),2&m){const L=t.sdS(5);t.Y8G("ngForOf",z.errors),t.R7$(),t.Y8G("ngIf",z.success),t.R7$(2),t.Y8G("ngIf",z.flags&&z.flags.length>0)("ngIfElse",L)}},dependencies:[v.Sq,v.bT,b.Uq,b.e,F.cK,H.U5,H.Dq,W.Di,un.RW,vn.j,pn.Dn,zn.r,Cn.g,$.c,M.Y,sn,Vn.p,Xn.R,Bn.N],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return r})();var tt=o(9365),et=o(9438);const ln=()=>[];function it(r,g){if(1&r&&(t.nrm(0,"cvc-flag-list",14),t.nI1(1,"ngrxPush")),2&r){const a=t.XpG(2);t.Y8G("flags",t.bMT(1,2,a.flags$)||t.lJ4(4,ln))("flagResolvedCallback",a.refresh)}}function ot(r,g){if(1&r){const a=t.RV6();t.j41(0,"button",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG(2).ngrxLet,L=t.XpG(2);return t.Njj(L.loadMore(null==z?null:z.endCursor))}),t.EFF(1," Load More "),t.k0s()}}function st(r,g){1&r&&(t.qex(0),t.DNE(1,ot,2,0,"button",16),t.bVm())}function at(r,g){if(1&r&&(t.qex(0),t.DNE(1,st,2,0,"ng-container",15),t.bVm()),2&r){const a=g.ngrxLet;t.R7$(),t.Y8G("ngIf",a&&(null==a?null:a.hasNextPage)&&a.endCursor)}}function lt(r,g){if(1&r&&t.nrm(0,"cvc-flag-add-form",18),2&r){const a=t.XpG(2);t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}function rt(r,g){if(1&r&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a.displayName)}}function _t(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",19),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onStateSelected(z))}),t.DNE(1,rt,2,1,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("preselectedOption",a.selectableStates[0])("participantList",a.selectableStates)}}function ct(r,g){if(1&r&&t.nrm(0,"nz-avatar",22),2&r){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function pt(r,g){if(1&r&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&r){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function gt(r,g){if(1&r&&(t.DNE(0,ct,1,1,"nz-avatar",21)(1,pt,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&r){const a=g.$implicit,m=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",m),t.R7$(4),t.JRh(a.username)}}function mt(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",20),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onFlaggingUsersSelected(z))}),t.DNE(2,gt,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueFlaggingUsers$)||t.lJ4(3,ln))}}function dt(r,g){if(1&r&&t.nrm(0,"nz-avatar",22),2&r){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function ft(r,g){if(1&r&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&r){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function ut(r,g){if(1&r&&(t.DNE(0,dt,1,1,"nz-avatar",21)(1,ft,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&r){const a=g.$implicit,m=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",m),t.R7$(4),t.JRh(a.username)}}function vt(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",24),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onResolvingUsersSelected(z))}),t.DNE(2,ut,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueResolvingUsers$)||t.lJ4(3,ln))}}function zt(r,g){if(1&r&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-space",6),t.DNE(4,it,2,5,"cvc-flag-list",7)(5,at,2,1,"ng-container",8)(6,lt,1,2,"cvc-flag-add-form",9),t.k0s()(),t.j41(7,"nz-col",10)(8,"nz-space",6),t.DNE(9,_t,3,2,"cvc-participant-list",11)(10,mt,4,4,"cvc-participant-list",12)(11,vt,4,4,"cvc-participant-list",13),t.k0s()()(),t.bVm()),2&r){const a=t.XpG();t.R7$(),t.Y8G("nzGutter",16),t.R7$(4),t.Y8G("ngrxLet",a.pageInfo$)}}function Ct(r,g){if(1&r&&t.nrm(0,"cvc-flag-add-form",18),2&r){const a=t.XpG();t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}let ht=(()=>{class r{constructor(a){this.gql=a,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:c.Qfy.Open},{id:2,displayName:"Resolved",value:c.Qfy.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:c.Qfy.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,G.E)("data","flags","edges"),(0,s.p)(n.kP),(0,S.T)(a=>a.map(m=>m.node))),this.pageInfo$=this.results$.pipe((0,G.E)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,G.E)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,S.T)(({data:a})=>a.flags?.uniqueFlaggingUsers)),this.uniqueResolvingUsers$=this.results$.pipe((0,S.T)(({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}})}static#n=this.\u0275fac=function(m){return new(m||r)(t.rXU(c.HnF))};static#t=this.\u0275cmp=t.VBU({type:r,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[["noFlags",""],["itemTemplate",""],["noAvatar",""],[4,"ngIf","ngIfElse"],[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",4,"nzSpaceItem"],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["listTitle","Flag State",3,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Flagging Users",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Resolving Users",3,"participantSelectedEvent","participantList"]],template:function(m,z){if(1&m&&(t.DNE(0,zt,12,2,"ng-container",3),t.nI1(1,"ngrxPush"),t.DNE(2,Ct,1,2,"ng-template",null,0,t.C5r)),2&m){const L=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,z.unfilteredCount$))("ngIfElse",L)}},dependencies:[v.bT,f.Nj,E.aO,$.c,P.p,b.Uq,b.e,q,nt,tt.T,et.PM,H.U5,H.Dq,v.Pc,f.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return r})()},7268:(Q,N,o)=>{o.d(N,{G:()=>q});var c=o(177),s=o(3190),S=o(2839),G=o(5703),n=o(8927),t=o(2617),v=o(9417),f=o(4917),E=o(4308),$=o(3842),P=o(3617),b=o(513),X=o(2983),A=o(5154),x=o(3953);let V=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,v.YN,v.X1,n.PQ,b.Zw,G.Ti,P.$,A.Qt,X.V,$.k,f.i,E.I]})}return D})();var k=o(7169),y=o(9192),j=o(1542),F=o(9590),M=o(1209),I=o(9802),O=o(5493),Y=o(7051),h=o(5103),C=o(1236);let u=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,v.X1,b.Zw,n.PQ,v.YN,P.$,G.Ti,C.MC,h.Y3,A.Qt,X.V,E.I,$.k]})}return D})();var d=o(9438),T=o(2986),B=o(9448),K=o(1672),J=o(7529),nn=o(1011),w=o(7685),tn=o(5699),en=o(7391);let Z=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,J.f3,t.rD,G.Ti,w.pc,tn.T,en.kT,d.Yb,K._v,T.IJ,B.g,A.Qt,t.rD,C.MC,h.Y3,nn.j,v.YN,M.k,S.m,y.J,I._,j.X,Y.U,O.G,F.R,f.i,b.Zw,P.$,u,B.g,k.W]})}return D})();var on=o(2968);let q=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,v.YN,b.Zw,n.PQ,s.Sw,b.Zw,S.m,t.rD,G.Ti,V,Z,K._v,on.K,d.Yb,w.pc,f.i]})}return D})()},7428:(Q,N,o)=>{o.d(N,{v:()=>s});var c=o(3953);let s=(()=>{class S{constructor(){}static#n=this.\u0275fac=function(t){return new(t||S)};static#t=this.\u0275dir=c.FsC({type:S,selectors:[["","cvcFlaggableOptions",""]]})}return S})()},8821:(Q,N,o)=>{o.d(N,{H:()=>k});var c=o(3953),s=o(7428),S=o(177),G=o(1188),n=o(5103),t=o(3146),v=o(5154);const f=["cvcFlaggable",""],E=["*"];function $(y,j){1&y&&c.SdG(0)}function P(y,j){1&y&&c.eu8(0)}function b(y,j){if(1&y&&(c.qex(0),c.DNE(1,P,1,0,"ng-container",4),c.bVm()),2&y){c.XpG();const F=c.sdS(1);c.R7$(),c.Y8G("ngTemplateOutlet",F)}}function X(y,j){if(1&y&&(c.j41(0,"a",6),c.nrm(1,"i",7),c.k0s()),2&y){c.XpG();const F=c.sdS(5);c.R7$(),c.Y8G("nzTooltipTitle",F)}}function A(y,j){if(1&y&&c.EFF(0),2&y){const F=c.XpG(2);c.SpI(" ",F.flags," open flags ")}}function x(y,j){1&y&&c.eu8(0)}function V(y,j){if(1&y&&(c.qex(0),c.j41(1,"nz-ribbon",5),c.DNE(2,X,2,1,"ng-template",null,1,c.C5r)(4,A,1,1,"ng-template",null,2,c.C5r)(6,x,1,0,"ng-container",4),c.k0s(),c.bVm()),2&y){const F=c.sdS(3);c.XpG();const M=c.sdS(1);c.R7$(),c.Y8G("nzText",F),c.R7$(5),c.Y8G("ngTemplateOutlet",M)}}let k=(()=>{class y{constructor(F){this.renderer=F}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")}static#n=this.\u0275fac=function(M){return new(M||y)(c.rXU(c.sFG))};static#t=this.\u0275cmp=c.VBU({type:y,selectors:[["","cvcFlaggable",""]],contentQueries:function(M,I,O){if(1&M&&c.wni(O,s.v,5,c.aKT),2&M){let Y;c.mGM(Y=c.lsd())&&(I.flaggedChild=Y.first)}},inputs:{flags:"flags",entity:"entity"},features:[c.OA$],attrs:f,ngContentSelectors:E,decls:4,vars:2,consts:[["flaggedContent",""],["flaggedText",""],["flaggedTooltip",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["routerLink","flags",2,"color","#fff"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(M,I){1&M&&(c.NAR(),c.DNE(0,$,1,0,"ng-template",null,0,c.C5r)(2,b,2,1,"ng-container",3)(3,V,7,2,"ng-container",3)),2&M&&(c.R7$(2),c.Y8G("ngIf",0===I.flags),c.R7$(),c.Y8G("ngIf",I.flags))},dependencies:[S.bT,S.T3,G.Wk,n.Dn,t.KI,v.LH],encapsulation:2})}return y})()},1896:(Q,N,o)=>{o.d(N,{Y:()=>f});var c=o(177),s=o(5154),S=o(7391),G=o(3146),n=o(5103),t=o(1188),v=o(3953);let f=(()=>{class E{static#n=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=v.$C({type:E});static#e=this.\u0275inj=v.G2t({imports:[c.MD,t.iI,n.Y3,G.W2,s.Qt,S.kT]})}return E})()},869:(Q,N,o)=>{o.d(N,{S:()=>q});var c=o(177),s=o(5703),S=o(2617),G=o(7529),n=o(3953);let t=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=n.$C({type:D});static#e=this.\u0275inj=n.G2t({imports:[c.MD,G.f3]})}return D})();var v=o(5757),f=o(1209),E=o(7685),$=o(5699),P=o(7391),b=o(9438),X=o(2839),A=o(9192),x=o(1542),V=o(5493),k=o(4696),y=o(1672),j=o(9590),F=o(2986),M=o(9448),I=o(5154),O=o(513),Y=o(3617),h=o(5103),C=o(1236),u=o(1011),d=o(9417),T=o(4917),B=o(2e3),K=o(4308),J=o(7169),nn=o(6936),w=o(9802),tn=o(996),en=o(6912),Z=o(7086),on=o(8920);let q=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=n.$C({type:D});static#e=this.\u0275inj=n.G2t({imports:[c.MD,G.f3,S.rD,s.Ti,E.pc,$.T,P.kT,b.Yb,y._v,F.IJ,M.g,I.Qt,S.rD,C.MC,h.Y3,u.j,B.WF,M.g,d.YN,v.v,en.l,f.k,t,X.m,A.J,w._,x.X,Z.C,nn.G,V.G,j.R,K.I,tn.o,T.i,J.W,on.U,k.GB,O.Zw,Y.$]})}return D})()},4055:(Q,N,o)=>{o.d(N,{B:()=>ri});var c=o(9145),s=o(6354),S=o(9172),G=o(4608),n=o(3953),t=o(1188),v=o(177),f=o(1774),E=o(7529),$=o(7685),P=o(5699),b=o(9438),X=o(1672),A=o(513),x=o(6389),V=o(5930),k=o(5103),y=o(9365),j=o(1413),F=o(5964),M=o(4572),I=o(1226),O=o(6977),Y=o(9199),h=o(1305),C=o(4222),u=o(2617),d=o(5703),T=o(7391),B=o(2986),K=o(9448),J=o(5154),nn=o(1236),w=o(2e3);let tn=(()=>{class e{transform(i){return i?i.replace(/([a-z])([A-Z])/g,"$1 $2"):""}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275pipe=n.EJ8({name:"camelToWords",type:e,pure:!0})}return e})();const en=["itemTemplate"],Z=e=>({$implicit:e});function on(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function q(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function D(e,l){if(1&e&&(n.j41(0,"nz-list-item",10),n.DNE(1,on,3,4,"ng-container",11)(2,q,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function cn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}function H(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function W(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function un(e,l){if(1&e&&(n.j41(0,"nz-list-item",17),n.DNE(1,H,3,4,"ng-container",11)(2,W,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function vn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Removed")}}function pn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,un,4,2,"nz-list-item",16)(2,vn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Removed ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.removedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.removedObjects.length)}}function zn(e,l){1&e&&(n.qex(0),n.DNE(1,pn,3,4,"nz-list",8),n.bVm())}function Cn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(2);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function hn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Tn(e,l){if(1&e&&(n.j41(0,"nz-list-item",19),n.DNE(1,Cn,3,4,"ng-container",11)(2,hn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Rn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(2);n.Mz_("nzNoResult","No ",i.entityType," Added")}}function En(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Tn,4,2,"nz-list-item",18)(2,Rn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG();n.Mz_("nzHeader","Added ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.addedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.addedObjects.length)}}function yn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function bn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Gn(e,l){if(1&e&&(n.j41(0,"nz-list-item",21),n.DNE(1,yn,3,4,"ng-container",11)(2,bn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Fn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Kept")}}function xn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Gn,4,2,"nz-list-item",20)(2,Fn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Kept ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.keptObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.keptObjects.length)}}function Sn(e,l){1&e&&(n.qex(0),n.DNE(1,xn,3,4,"nz-list",8),n.bVm())}function In(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function Dn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function $n(e,l){if(1&e&&(n.j41(0,"nz-list-item",22),n.DNE(1,In,3,4,"ng-container",11)(2,Dn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function On(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}let Ln=(()=>{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.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(_,p,R){if(1&_&&n.wni(R,en,5),2&_){let U;n.mGM(U=n.lsd())&&(p.itemTemplateRef=U.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:14,consts:[["deleted",""],[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"],["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(_,p){1&_&&(n.j41(0,"nz-row",1)(1,"nz-col",2)(2,"nz-list",3),n.DNE(3,D,4,2,"nz-list-item",4)(4,cn,1,2,"nz-list-empty",5),n.k0s()(),n.j41(5,"nz-col",2)(6,"nz-space",6),n.DNE(7,zn,2,0,"ng-container",7)(8,En,3,4,"nz-list",8)(9,Sn,2,0,"ng-container",7),n.k0s()(),n.j41(10,"nz-col",2)(11,"nz-list",3),n.DNE(12,$n,4,2,"nz-list-item",9)(13,On,1,2,"nz-list-empty",5),n.k0s()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Original ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.currentObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.currentObjects.length),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Revised ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.suggestedObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.suggestedObjects.length))},dependencies:[v.YU,v.Sq,v.bT,v.T3,u.eE,u.nt,u.lQ,E.Uq,E.e,P.s,$.U5,$.Dq,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%}"]})}return e})();var jn=o(3245),Mn=o(9062);let Pn=(()=>{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.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({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(_,p){1&_&&(n.j41(0,"nz-row",0)(1,"nz-col",1)(2,"h4"),n.EFF(3),n.k0s(),n.nrm(4,"div",2),n.k0s(),n.j41(5,"nz-col",1)(6,"h4"),n.EFF(7),n.k0s(),n.nrm(8,"div",2),n.k0s(),n.j41(9,"nz-col",1)(10,"h4"),n.EFF(11),n.k0s(),n.j41(12,"div",3)(13,"div",4),n.EFF(14),n.k0s()()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Original ",p.entityType,""),n.R7$(),n.Y8G("innerHtml",p.left,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("",p.entityType," Diff"),n.R7$(),n.Y8G("innerHtml",p.right,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Revised ",p.entityType,""),n.R7$(3),n.SpI(" ",p.suggestedValue," "))},dependencies:[E.Uq,E.e],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})}return e})();var Nn=o(6408),An=o(9861),Yn=o(9563),sn=o(7047),Vn=o(959),Xn=o(9045),Bn=o(6073),Un=o(311),kn=o(5566),Wn=o(5473),Kn=o(4126),Qn=o(6440),gn=o(4696),Hn=o(3617),Jn=o(1845),Zn=o(3075),wn=o(8139);const mn=(e,l,i,_,p)=>({id:e,name:l,link:i,deprecated:_,flagged:p}),an=(e,l,i,_)=>({id:e,name:l,link:i,deprecated:_}),dn=(e,l,i)=>({id:e,name:l,link:i}),fn=(e,l,i,_,p,R)=>({id:e,name:l,link:i,feature:_,deprecated:p,flagged:R}),qn=(e,l,i,_,p)=>({id:e,name:l,link:i,status:_,flagged:p}),nt=()=>({float:"right"});function tt(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",17),n.bIt("nzOnClose",function(){const p=n.eBV(i).$implicit,R=n.XpG();return n.Njj(R.onErrorBannerClose(p))}),n.k0s()}2&e&&n.Y8G("nzMessage",l.$implicit)}function et(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",18),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG();return n.Njj(p.onSuccessBannerClose())}),n.k0s()}if(2&e){const i=n.XpG();n.Mz_("nzMessage","Revision(s) successfully ",i.success,".")}}function ln(e,l){if(1&e&&n.nrm(0,"cvc-feature-tag",29),2&e){const i=l.$implicit;n.Y8G("feature",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function it(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",28),n.DNE(2,ln,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ot(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function st(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",30),n.DNE(2,ot,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function at(e,l){if(1&e&&n.nrm(0,"cvc-disease-tag",33),2&e){const i=l.$implicit;n.Y8G("disease",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function lt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",32),n.DNE(2,at,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function rt(e,l){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",35),2&e){const i=l.$implicit;n.Y8G("molecularProfile",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function _t(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",34),n.DNE(2,rt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ct(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function pt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,ct,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function gt(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,gt,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function dt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function ft(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",38),n.DNE(2,dt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ut(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function vt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",39),n.DNE(2,ut,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function zt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Ct(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",40),n.DNE(2,zt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ht(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function r(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",41),n.DNE(2,ht,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function g(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function a(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",42),n.DNE(2,g,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function m(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function z(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",43),n.DNE(2,m,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function L(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function rn(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",44),n.DNE(2,L,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function bt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Gt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",45),n.DNE(2,bt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Ft(e,l){if(1&e&&n.nrm(0,"cvc-variant-type-tag",47),2&e){const i=l.$implicit;n.Y8G("variantType",n.sMw(1,dn,i.id,i.displayName,i.link))}}function xt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",46),n.DNE(2,Ft,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function St(e,l){if(1&e&&n.nrm(0,"cvc-phenotype-tag",49),2&e){const i=l.$implicit;n.Y8G("phenotype",n.sMw(1,dn,i.id,i.displayName,i.link))}}function It(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",48),n.DNE(2,St,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Dt(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,fn,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function $t(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",50),n.DNE(2,Dt,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Ot(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,fn,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function Lt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",52),n.DNE(2,Ot,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function jt(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function Mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",53),n.DNE(2,jt,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Pt(e,l){if(1&e&&n.nrm(0,"cvc-evidence-tag",55),2&e){const i=l.$implicit;n.Y8G("evidence",n.s1E(1,qn,i.id,i.displayName,i.link,i.status,i.flagged))}}function Nt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",54),n.DNE(2,Pt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function At(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-revision-value-diff",56),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("currentValue",i.currentValue)("suggestedValue",i.suggestedValue)("left",i.linkoutData.diffValue.left)("right",i.linkoutData.diffValue.right)("entityType",i.linkoutData.name)}}function Yt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-comment-body",60),n.bVm()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("commentBodySegments",i.resolutionActivity.parsedNote)}}function Vt(e,l){if(1&e&&n.nrm(0,"cvc-user-tag",61),2&e){const i=n.XpG(2).$implicit;n.Y8G("user",i.resolutionActivity.user)}}function Xt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"nz-divider"),n.j41(2,"nz-row")(3,"nz-col",57),n.DNE(4,Yt,2,1,"ng-container",27),n.k0s(),n.j41(5,"nz-col",58),n.EFF(6),n.nI1(7,"enumToTitle"),n.DNE(8,Vt,1,1,"cvc-user-tag",59),n.EFF(9),n.nI1(10,"timeAgo"),n.k0s()(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(4),n.Y8G("ngIf",null==i.resolutionActivity?null:i.resolutionActivity.parsedNote),n.R7$(2),n.SpI(" ",n.bMT(7,4,i.status)," By "),n.R7$(2),n.Y8G("ngIf",void 0!==(null==i.resolutionActivity?null:i.resolutionActivity.user)),n.R7$(),n.SpI(" ",n.bMT(10,6,null==i.resolutionActivity?null:i.resolutionActivity.createdAt)," ")}}function Bt(e,l){if(1&e&&(n.j41(0,"span"),n.nrm(1,"i",63),n.nI1(2,"entityColor"),n.EFF(3),n.j41(4,"span"),n.EFF(5),n.k0s()()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,3,"Revision")),n.R7$(2),n.SpI(" RID",i.id," "),n.R7$(2),n.SpI("",i.linkoutData.name," Updated")}}function Ut(e,l){if(1&e&&n.nrm(0,"i",65),2&e){n.XpG();const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function kt(e,l){if(1&e&&n.nrm(0,"cvc-comment-body",60),2&e){const i=n.XpG(3).$implicit;n.Y8G("commentBodySegments",i.creationActivity.parsedNote)}}function Wt(e,l){1&e&&(n.qex(0),n.DNE(1,Ut,1,1,"i",64)(2,kt,1,1,"ng-template",null,5,n.C5r),n.bVm())}function Kt(e,l){if(1&e&&(n.j41(0,"nz-space"),n.DNE(1,Bt,6,5,"span",62)(2,Wt,4,0,"ng-container",27),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(2),n.Y8G("ngIf",null==i.creationActivity?null:i.creationActivity.parsedNote)}}function Qt(e,l){if(1&e&&(n.j41(0,"span",71),n.EFF(1," for\xa0 "),n.k0s(),n.nrm(2,"cvc-organization-tag",72)),2&e){const i=n.XpG(4).$implicit;n.R7$(2),n.Y8G("org",i.creationActivity.organization)}}function Ht(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",71),n.EFF(2," By\xa0 "),n.k0s(),n.nrm(3,"cvc-user-tag",61),n.DNE(4,Qt,3,1),n.bVm()),2&e){const i=n.XpG(3).$implicit;n.R7$(3),n.Y8G("user",i.creationActivity.user),n.R7$(),n.vxM(null!=i.creationActivity&&i.creationActivity.organization?4:-1)}}function Jt(e,l){1&e&&(n.j41(0,"span",71),n.EFF(1,"Submitted"),n.k0s())}function Zt(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ht,5,2,"ng-container",70)(2,Jt,2,0,"ng-template",null,6,n.C5r),n.j41(4,"span",71),n.EFF(5),n.nI1(6,"timeAgo"),n.k0s()()),2&e){const i=n.sdS(3),_=n.XpG(2).$implicit;n.R7$(),n.Y8G("ngIf",null==_.creationActivity?null:_.creationActivity.user)("ngIfElse",i),n.R7$(4),n.JRh(n.bMT(6,3,_.createdAt))}}function wt(e,l){if(1&e&&n.nrm(0,"cvc-status-tag",73),2&e){const i=n.XpG(2).$implicit;n.Y8G("status",i.status)}}function qt(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ne(e,l){if(1&e){const i=n.RV6();n.j41(0,"a",75),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).$implicit,R=n.XpG(3);return n.Njj(R.onChangesetSelected(p.revisionSetId))}),n.EFF(1,"Show Group"),n.k0s()}}function te(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ee(e,l){1&e&&n.nrm(0,"label",77),2&e&&n.Y8G("nzDisabled",!0)}function ie(e,l){1&e&&n.nrm(0,"label",79),2&e&&n.Y8G("nzDisabled",!0)}function oe(e,l){if(1&e){const i=n.RV6();n.j41(0,"label",80),n.bIt("nzCheckedChange",function(p){n.eBV(i);const R=n.XpG(5).$implicit,U=n.XpG(3);return n.Njj(U.onRevisionCheckboxClicked(p,R.id))}),n.k0s()}}function se(e,l){if(1&e&&n.DNE(0,ie,1,1,"label",78)(1,oe,1,0,"ng-template",null,8,n.C5r),2&e){const i=n.sdS(2),_=n.XpG(4).$implicit,p=n.XpG(2).ngrxLet;n.Y8G("ngIf",p.isCurator&&p.id!=(null==_.creationActivity?null:_.creationActivity.user.id))("ngIfElse",i)}}function ae(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,ee,1,1,"label",76)(2,se,3,2,"ng-template",null,7,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG(5).ngrxLet;n.R7$(),n.Y8G("ngIf",!_.signedIn)("ngIfElse",i)}}function le(e,l){1&e&&(n.qex(0),n.DNE(1,te,1,0,"nz-divider",68)(2,ae,4,2,"span",62),n.bVm())}function re(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-space",66),n.bIt("click",function(p){return n.eBV(i),n.Njj(p.stopPropagation())}),n.DNE(1,Zt,7,5,"span",62)(2,wt,1,1,"cvc-status-tag",67)(3,qt,1,0,"nz-divider",68)(4,ne,2,0,"a",69)(5,le,3,0,"ng-container",27),n.k0s()}if(2&e){const i=n.XpG().$implicit;n.R7$(5),n.Y8G("ngIf","NEW"===i.status)}}function _e(e,l){if(1&e&&(n.j41(0,"nz-collapse-panel",23),n.qex(1,24),n.DNE(2,it,4,1,"ng-container",25)(3,st,4,1,"ng-container",25)(4,lt,4,1,"ng-container",25)(5,_t,4,1,"ng-container",25)(6,pt,4,1,"ng-container",25)(7,mt,4,1,"ng-container",25)(8,ft,4,1,"ng-container",25)(9,vt,4,1,"ng-container",25)(10,Ct,4,1,"ng-container",25)(11,r,4,1,"ng-container",25)(12,a,4,1,"ng-container",25)(13,z,4,1,"ng-container",25)(14,rn,4,1,"ng-container",25)(15,Gt,4,1,"ng-container",25)(16,xt,4,1,"ng-container",25)(17,It,4,1,"ng-container",25)(18,$t,4,1,"ng-container",25)(19,Lt,4,1,"ng-container",25)(20,Mt,4,1,"ng-container",25)(21,Nt,4,1,"ng-container",25)(22,At,2,5,"ng-container",26),n.bVm(),n.DNE(23,Xt,11,8,"ng-container",27)(24,Kt,3,1,"ng-template",null,2,n.C5r)(26,re,6,1,"ng-template",null,3,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(25),p=n.sdS(27);n.Y8G("nzHeader",_)("nzExtra",p)("nzActive",!0),n.R7$(),n.Y8G("ngSwitch",i.fieldName),n.R7$(),n.Y8G("ngSwitchCase","feature_id"),n.R7$(),n.Y8G("ngSwitchCase","source_ids"),n.R7$(),n.Y8G("ngSwitchCase","disease_id"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_id"),n.R7$(),n.Y8G("ngSwitchCase","drug_ids"),n.R7$(),n.Y8G("ngSwitchCase","therapy_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","feature_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","clinvar_entry_ids"),n.R7$(),n.Y8G("ngSwitchCase","clingen_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","acmg_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","nccn_guideline_id"),n.R7$(),n.Y8G("ngSwitchCase","hgvs_description_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_type_ids"),n.R7$(),n.Y8G("ngSwitchCase","phenotype_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_id"),n.R7$(),n.Y8G("ngSwitchCase","variant_ids"),n.R7$(),n.Y8G("ngSwitchCase","source_id"),n.R7$(),n.Y8G("ngSwitchCase","evidence_item_ids"),n.R7$(2),n.Y8G("ngIf","NEW"!==i.status)}}function ce(e,l){if(1&e&&(n.j41(0,"nz-collapse",21),n.DNE(1,_e,28,25,"nz-collapse-panel",22),n.k0s()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngForOf",i.untypedRevisons)}}function pe(e,l){1&e&&n.nrm(0,"nz-empty",81)}function ge(e,l){if(1&e&&(n.qex(0),n.j41(1,"nz-card",19),n.DNE(2,ce,2,1,"nz-collapse",20)(3,pe,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.sdS(4),_=n.XpG(),p=n.sdS(4);n.R7$(),n.Y8G("nzExtra",p),n.R7$(),n.Y8G("ngIf",_.revisions&&_.revisions.length>0)("ngIfElse",i)}}function me(e,l){}function de(e,l){1&e&&n.DNE(0,me,0,0,"ng-template")}function fe(e,l){if(1&e&&(n.qex(0),n.DNE(1,de,1,0,null,85),n.bVm()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function ue(e,l){}function ve(e,l){1&e&&n.DNE(0,ue,0,0,"ng-template")}function ze(e,l){if(1&e&&(n.j41(0,"span",86),n.DNE(1,ve,1,0,null,85),n.k0s()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function Ce(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",87),n.mxI("nzPopoverVisibleChange",function(p){n.eBV(i);const R=n.XpG(7);return n.DH7(R.validationPopoverVisible,p)||(R.validationPopoverVisible=p),n.Njj(p)}),n.bIt("click",function(){n.eBV(i);const p=n.XpG(7);return n.Njj(p.validationPopoverVisible=!p.validationPopoverVisible)}),n.EFF(1," Review Selected Revisions "),n.nrm(2,"i",88),n.k0s()}if(2&e){const i=n.XpG(2).ngrxLet,_=n.sdS(7),p=n.sdS(9),R=n.XpG(5);n.Y8G("nzPopoverTitle",_),n.R50("nzPopoverVisible",R.validationPopoverVisible),n.Y8G("nzPopoverContent",p)("nzPopoverTrigger",void 0)("disabled",0===R.selectedRevisionIds.length||!i.signedIn)}}function he(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,fe,2,1,"ng-container",70)(2,ze,2,1,"ng-template",null,12,n.C5r)(4,Ce,3,5,"ng-template",null,13,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",_.signedIn)("ngIfElse",i)}}function Te(e,l){if(1&e&&n.nrm(0,"i",90),2&e){n.XpG(4);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function Re(e,l){1&e&&(n.qex(0),n.DNE(1,Te,1,1,"i",89),n.bVm())}function Ee(e,l){if(1&e){const i=n.RV6();n.EFF(0," Review Selected Revisions "),n.j41(1,"span",91)(2,"i",92),n.bIt("click",function(){n.eBV(i);const p=n.XpG(6);return n.Njj(p.validationPopoverVisible=!1)}),n.k0s()()}2&e&&(n.R7$(),n.Y8G("ngStyle",n.lJ4(1,nt)))}function ye(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-comment-input-form",95),n.mxI("commentChange",function(p){n.eBV(i);const R=n.XpG(7);return n.DH7(R.revisionComment,p)||(R.revisionComment=p),n.Njj(p)}),n.k0s()}if(2&e){const i=n.XpG(7);n.R50("comment",i.revisionComment)}}function be(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",96),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onRejectRevisionsClicked())}),n.EFF(2," Reject Revision "),n.k0s()()}if(2&e){const i=n.XpG(8);n.R7$(),n.Y8G("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 Ge(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",97),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onAcceptRevisionClicked())}),n.EFF(2," Accept Revision "),n.k0s()()}if(2&e){const i=n.XpG(4).ngrxLet,_=n.XpG(4);n.R7$(),n.Y8G("nzLoading",_.isLoading)("disabled",!(0==i&&(void 0===_.revisionComment||""===_.revisionComment||_.revisionComment.length>=10)))("nzTooltipTrigger",_.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==_.mostRecentOrg?null:_.mostRecentOrg.name))}}function Fe(e,l){if(1&e&&n.nrm(0,"i",99),2&e){n.XpG(6);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function xe(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Fe,1,1,"i",98),n.k0s()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i>0)}}function Se(e,l){1&e&&(n.j41(0,"span")(1,"nz-space"),n.DNE(2,be,3,4,"span",62)(3,Ge,3,4,"span",62)(4,xe,2,1,"span",62),n.k0s()())}function Ie(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,ye,1,1,"cvc-comment-input-form",94)(2,Se,5,0,"span",62),n.k0s())}function De(e,l){if(1&e&&(n.qex(0),n.j41(1,"div",82)(2,"div",83)(3,"nz-space",84),n.DNE(4,he,6,2,"span",62)(5,Re,2,0,"ng-container",27),n.k0s(),n.DNE(6,Ee,3,2,"ng-template",null,10,n.C5r)(8,Ie,3,0,"ng-template",null,11,n.C5r),n.k0s()(),n.bVm()),2&e){const i=n.XpG().ngrxLet;n.R7$(5),n.Y8G("ngIf",i&&i>0)}}function $e(e,l){if(1&e&&(n.qex(0),n.DNE(1,De,10,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(4);n.R7$(),n.Y8G("ngrxLet",i.viewer$)}}function Oe(e,l){if(1&e&&(n.j41(0,"nz-list-item"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i)}}function Le(e,l){if(1&e&&(n.j41(0,"nz-card",101)(1,"nz-list",102),n.DNE(2,Oe,2,1,"nz-list-item",103),n.k0s()()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function je(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Le,3,1,"nz-card",100),n.k0s()),2&e){const i=n.XpG(2).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Me(e,l){if(1&e&&(n.j41(0,"nz-descriptions-item",108),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.Y8G("nzTitle",i.fieldName),n.R7$(),n.JRh(i.error)}}function Pe(e,l){if(1&e&&(n.j41(0,"nz-card",105)(1,"nz-descriptions",106),n.DNE(2,Me,2,2,"nz-descriptions-item",107),n.k0s()()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function Ne(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Pe,3,1,"nz-card",104),n.k0s()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Ae(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,je,2,1,"span",62)(2,Ne,2,1,"span",62),n.k0s())}function Ye(e,l){if(1&e&&(n.qex(0),n.DNE(1,$e,2,1,"ng-container",16)(2,Ae,3,0,"ng-template",null,9,n.C5r),n.bVm()),2&e){const i=n.XpG(3);n.R7$(),n.Y8G("ngrxLet",i.totalErrorCount$)}}function Ve(e,l){if(1&e&&(n.qex(0),n.DNE(1,Ye,4,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",i.genericErrors$)}}function Xe(e,l){if(1&e&&n.DNE(0,Ve,2,1,"ng-container",16),2&e){const i=n.XpG();n.Y8G("ngrxLet",i.validationErrors$)}}let Be=(()=>{class e{constructor(i,_,p,R,U){this.viewerService=i,this.networkErrorService=_,this.acceptRevisionsGql=p,this.rejectRevisionsGql=R,this.validationGql=U,this.refetchQueries=[],this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new j.B,this.revisionSetSelectedEvent=new n.bkB,this.revisionMutationCompleted=new n.bkB,this.acceptRevisionsMutator=new I.E(this.networkErrorService),this.rejectRevisionsMutator=new I.E(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,G.E)("data","validateRevisionsForAcceptance","genericErrors"),(0,F.p)(Y.kP),(0,S.Z)([])),this.validationErrors$=this.queryRef.valueChanges.pipe((0,G.E)("data","validateRevisionsForAcceptance","validationErrors"),(0,F.p)(Y.kP),(0,S.Z)([])),this.totalErrorCount$=(0,M.z)([this.genericErrors$,this.validationErrors$]).pipe((0,s.T)(([i,_])=>i.length+_.length),(0,S.Z)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(i){this.revisionSetSelectedEvent.emit(i)}onRevisionCheckboxClicked(i,_){i?this.selectedRevisionIds.push(_):this.selectedRevisionIds=this.selectedRevisionIds.filter(p=>p!=_),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(i,_){i.submitSuccess$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=_,this.validationPopoverVisible=!1,this.selectedRevisionIds=[],this.revisionComment=void 0)}),i.submitError$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p.length>0&&(this.isLoading=!1,this.success=!1,this.errors=p,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(_=>_!=i)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(h.q),n.rXU(C.N),n.rXU(c.QZR),n.rXU(c.BMV),n.rXU(c.ZFx))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQueries:"refetchQueries"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.OA$],decls:5,vars:3,consts:[["moderationButtons",""],["noRevisions",""],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["itemTemplate",""],["creationCommentTemplate",""],["noRevisor",""],["loggedIn",""],["canRevise",""],["validationErrorTemplate",""],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["entityType","Feature",3,"diffObject"],[3,"feature"],["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","Feature 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"],["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"],["nz-typography","","nzType","secondary"],[3,"org"],[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"],["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"],["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"],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["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,"commentChange","comment"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["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(_,p){1&_&&n.DNE(0,tt,1,1,"nz-alert",14)(1,et,1,2,"nz-alert",15)(2,ge,5,3,"ng-container",16)(3,Xe,1,1,"ng-template",null,0,n.C5r),2&_&&(n.Y8G("ngForOf",p.errors),n.R7$(),n.Y8G("ngIf",p.success),n.R7$(),n.Y8G("ngrxLet",p.viewer$))},dependencies:[v.Sq,v.bT,v.T3,v.B3,v.ux,v.e1,v.fG,E.Uq,E.e,u.eE,u.lQ,d.cK,$.U5,$.Dq,P.s,T.Di,X.RW,B.$g,K.j,J.LH,nn.L_,k.Dn,w.xA,w.gr,Ln,jn._,Mn.D,Pn,Nn.r,An.Y,Yn.R,sn.A,Vn.j,Xn.J,Bn.h,Un.g,kn.K,Wn.z,Kn.p,Qn.r,gn.Vz,gn.pc,A.aO,x.c,V.p,Hn.Y,f.Nj,Jn.f,Zn.R,wn.N],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}"]})}return e})();const Tt=()=>[];function Ue(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-revision-list",16),n.nI1(1,"ngrxPush"),n.bIt("revisionSetSelectedEvent",function(p){n.eBV(i);const R=n.XpG(2);return n.Njj(R.onRevisionSetSelected(p))})("revisionMutationCompleted",function(){n.eBV(i);const p=n.XpG(2);return n.Njj(p.refresh())}),n.k0s()}if(2&e){const i=n.XpG(2);n.Y8G("revisions",n.bMT(1,2,i.revisions$))("refetchQueries",i.refetchQueries)}}function ke(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).ngrxLet,R=n.XpG(2);return n.Njj(R.loadMore(null==p?null:p.endCursor))}),n.EFF(1," Load More "),n.k0s()}}function We(e,l){1&e&&(n.qex(0),n.DNE(1,ke,2,0,"button",18),n.bVm())}function Ke(e,l){if(1&e&&(n.qex(0),n.DNE(1,We,2,0,"ng-container",17),n.bVm()),2&e){const i=l.ngrxLet;n.R7$(),n.Y8G("ngIf",i&&(null==i?null:i.hasNextPage)&&i.endCursor)}}function Qe(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-row")(1,"nz-tag",21),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG(3);return n.Njj(p.onSetFilterClearClicked())}),n.EFF(2),n.k0s()()}if(2&e){const i=n.XpG(3);n.R7$(2),n.SpI("Group: ",i.filteredSet,"")}}function He(e,l){1&e&&(n.j41(0,"nz-space",7),n.DNE(1,Qe,3,1,"nz-row",20),n.k0s())}function Je(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function Ze(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function we(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function qe(e,l){if(1&e&&(n.DNE(0,Ze,1,1,"nz-avatar",22)(1,we,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function ni(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function ti(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function ei(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function ii(e,l){if(1&e&&(n.DNE(0,ti,1,1,"nz-avatar",22)(1,ei,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function oi(e,l){if(1&e){const i=n.RV6();n.qex(0),n.j41(1,"nz-row",5)(2,"nz-col",6)(3,"nz-space",7),n.DNE(4,Ue,2,4,"cvc-revision-list",8)(5,Ke,2,1,"ng-container",9),n.k0s()(),n.j41(6,"nz-col",10),n.DNE(7,He,2,0,"nz-space",11),n.j41(8,"cvc-participant-list",12),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onStatusSelected(p))}),n.DNE(9,Je,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(11,"cvc-participant-list",13),n.nI1(12,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onRevisorSelected(p))}),n.DNE(13,qe,5,3,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"cvc-participant-list",14),n.nI1(16,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onFieldNameSelected(p))}),n.DNE(17,ni,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(19,"cvc-participant-list",15),n.nI1(20,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onResolverSelected(p))}),n.DNE(21,ii,5,3,"ng-template",null,1,n.C5r),n.k0s()()(),n.bVm()}if(2&e){const i=n.XpG();n.R7$(),n.Y8G("nzGutter",16),n.R7$(4),n.Y8G("ngrxLet",i.pageInfo$),n.R7$(2),n.Y8G("ngIf",i.filteredSet),n.R7$(),n.Y8G("preselectedOption",i.preselectedRevisionStatus)("participantList",i.selectableStatuses),n.R7$(3),n.Y8G("participantList",n.bMT(12,8,i.uniqueRevisors$)||n.lJ4(14,Tt)),n.R7$(4),n.Y8G("participantList",n.bMT(16,10,i.revisionFields$)||n.lJ4(15,Tt)),n.R7$(4),n.Y8G("participantList",n.bMT(20,12,i.uniqueResolvers$)||n.lJ4(16,Tt))}}function si(e,l){1&e&&(n.qex(0),n.j41(1,"nz-row",25),n.nrm(2,"i",26),n.k0s(),n.bVm())}function ai(e,l){1&e&&n.nrm(0,"nz-empty",27)}function li(e,l){if(1&e&&(n.DNE(0,si,3,0,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,ai,1,0,"ng-template",null,3,n.C5r)),2&e){const i=n.sdS(3),_=n.XpG();n.Y8G("ngIf",n.bMT(1,2,_.isLoading$))("ngIfElse",i)}}let ri=(()=>{class e{constructor(i,_,p,R,U,_n,Rt,_i,ci,pi,gi,mi,di,fi){this.gql=i,this.route=_,this.variantDetailGql=p,this.variantSummaryGql=R,this.variantGroupDetailGql=U,this.variantGroupSummaryGql=_n,this.assertionDetailGql=Rt,this.assertionSummaryGql=_i,this.featureDetailGql=ci,this.featureSummaryGql=pi,this.evidenceDetailGql=gi,this.evidenceSummaryGql=mi,this.molecularProfileDetailGql=di,this.molecularProfileSummaryGql=fi,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:c.W14.New},{id:1,displayName:"Accepted",value:c.W14.Accepted},{id:2,displayName:"Rejected",value:c.W14.Rejected},{id:3,displayName:"Superseded",value:c.W14.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(_=>{let p={first:this.defaultPageSize,subject:this.moderated,status:c.W14.New};_.revisionSetId&&(this.filteredSet=+_.revisionSetId,this.preselectedRevisionStatus=void 0,p.status=void 0,p.revisionSetId=+_.revisionSetId),this.queryRef=this.gql.watch(p);let R=this.queryRef.valueChanges;this.revisions$=R.pipe((0,G.E)("data","revisions","edges"),(0,s.T)(U=>U.map(_n=>_n.node))),this.isLoading$=R.pipe((0,s.T)(U=>U.loading),(0,S.Z)(!0)),this.pageInfo$=R.pipe((0,G.E)("data","revisions","pageInfo")),this.uniqueRevisors$=R.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueRevisors)),this.uniqueResolvers$=R.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueResolvers)),this.revisionFields$=R.pipe((0,s.T)(({data:U})=>U.revisions?.revisedFieldNames.map((_n,Rt)=>({..._n,id:Rt})))),this.unfilteredCount$=R.pipe((0,G.E)("data","revisions","unfilteredCountForSubject"))})}),this.moderated.entityType){case c.BlQ.Variant:return this.refetchQueries.push({query:this.variantDetailGql.document,variables:{variantId:this.moderated.id}}),void this.refetchQueries.push({query:this.variantSummaryGql.document,variables:{variantId:this.moderated.id}});case c.BlQ.Assertion:return this.refetchQueries.push({query:this.assertionDetailGql.document,variables:{assertionId:this.moderated.id}}),void this.refetchQueries.push({query:this.assertionSummaryGql.document,variables:{assertionId:this.moderated.id}});case c.BlQ.EvidenceItem:return this.refetchQueries.push({query:this.evidenceDetailGql.document,variables:{evidenceId:this.moderated.id}}),void this.refetchQueries.push({query:this.evidenceSummaryGql.document,variables:{evidenceId:this.moderated.id}});case c.BlQ.Feature:return this.refetchQueries.push({query:this.featureDetailGql.document,variables:{featureId:this.moderated.id}}),void this.refetchQueries.push({query:this.featureSummaryGql.document,variables:{featureId:this.moderated.id}});case c.BlQ.VariantGroup:return this.refetchQueries.push({query:this.variantGroupDetailGql.document,variables:{variantGroupId:this.moderated.id}}),void this.refetchQueries.push({query:this.variantGroupSummaryGql.document,variables:{variantGroupId:this.moderated.id}});case c.BlQ.MolecularProfile:return this.refetchQueries.push({query:this.molecularProfileDetailGql.document,variables:{molecularProfileId:this.moderated.id}}),void this.refetchQueries.push({query:this.molecularProfileSummaryGql.document,variables:{molecularProfileId:this.moderated.id}})}}ngOnDestroy(){this.routeSub?.unsubscribe(),this.queryParamsSub?.unsubscribe()}onFieldNameSelected(i){this.queryRef.refetch({subject:this.moderated,fieldName:i?i.name:void 0})}onRevisorSelected(i){this.queryRef.refetch({subject:this.moderated,originatingUserId:i?i.id:void 0})}onResolverSelected(i){this.queryRef.refetch({subject:this.moderated,resolvingUserId:i?i.id:void 0})}onStatusSelected(i){this.preselectedRevisionStatus=i,this.queryRef.refetch({subject:this.moderated,status:i?i.value:void 0})}onRevisionSetSelected(i){this.filteredSet=i,this.queryRef.refetch({subject:this.moderated,revisionSetId:i||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:this.moderated,revisionSetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(i){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:i}})}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(c.xPr),n.rXU(t.nX),n.rXU(c.N47),n.rXU(c.yLZ),n.rXU(c.IbX),n.rXU(c.sAe),n.rXU(c.kKs),n.rXU(c.fqJ),n.rXU(c.ULh),n.rXU(c.gUZ),n.rXU(c.fQd),n.rXU(c.Ype),n.rXU(c.Tj8),n.rXU(c.SPr))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{moderated:"moderated"},decls:4,vars:4,consts:[["noRevisions",""],["itemTemplate",""],["noAvatar",""],["noneFound",""],[4,"ngIf","ngIfElse"],[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,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Filter by Revisor",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Field",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Resolver",3,"participantSelectedEvent","participantList"],[3,"revisionSetSelectedEvent","revisionMutationCompleted","revisions","refetchQueries"],[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"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(_,p){if(1&_&&(n.DNE(0,oi,23,17,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,li,4,4,"ng-template",null,0,n.C5r)),2&_){const R=n.sdS(3);n.Y8G("ngIf",n.bMT(1,2,p.unfilteredCount$))("ngIfElse",R)}},dependencies:[v.bT,f.Nj,E.Uq,E.e,$.U5,$.Dq,P.s,b.PM,X.RW,A.aO,x.c,V.p,k.Dn,y.T,Be,v.Pc,f.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return e})()},6371:(Q,N,o)=>{o.d(N,{O:()=>x});var c=o(177),s=o(7529),S=o(2617),G=o(5703),n=o(7685),t=o(5699),v=o(7391),f=o(2968),E=o(9438),$=o(869),P=o(1672),b=o(513),X=o(5103),A=o(3953);let x=(()=>{class V{static#n=this.\u0275fac=function(j){return new(j||V)};static#t=this.\u0275mod=A.$C({type:V});static#e=this.\u0275inj=A.G2t({imports:[c.MD,s.f3,S.rD,G.Ti,n.pc,t.T,v.kT,E.Yb,P._v,b.Zw,X.Y3,f.K,$.S]})}return V})()},6269:(Q,N,o)=>{o.d(N,{f:()=>h});var c=o(4608),s=o(3953),S=o(9145),G=o(177),n=o(7391),t=o(1188),v=o(9438),f=o(1236),E=o(2e3),$=o(2702),P=o(7793);function b(C,u){1&C&&(s.qex(0),s.EFF(1,", "),s.bVm())}function X(C,u){if(1&C&&(s.qex(0),s.EFF(1),s.nI1(2,"eventVerbiage"),s.DNE(3,b,2,0,"ng-container",12),s.bVm()),2&C){const d=u.$implicit,T=u.last;s.R7$(),s.SpI(" ",s.brH(2,2,d.action,"contributor-card",d.count)," "),s.R7$(2),s.Y8G("ngIf",!T)}}function A(C,u){if(1&C&&(s.j41(0,"nz-descriptions",8)(1,"nz-descriptions-item",9),s.DNE(2,X,4,6,"ng-container",10),s.k0s(),s.j41(3,"nz-descriptions-item",11),s.EFF(4),s.nI1(5,"date"),s.k0s()()),2&C){const d=s.XpG(2).$implicit;s.Y8G("nzColumn",1),s.R7$(2),s.Y8G("ngForOf",d.uniqueActions),s.R7$(2),s.SpI(" ",s.bMT(5,3,d.lastActionDate)," ")}}function x(C,u){if(1&C&&(s.j41(0,"cvc-user-popover",7),s.DNE(1,A,6,5,"ng-template",null,2,s.C5r),s.k0s()),2&C){const d=s.XpG().$implicit;s.Y8G("userId",d.user.id)}}function V(C,u){if(1&C&&(s.j41(0,"a",5),s.nrm(1,"nz-avatar",6),s.DNE(2,x,3,1,"ng-template",null,1,s.C5r),s.k0s()),2&C){const d=u.$implicit,T=s.sdS(3);s.Mz_("routerLink","/users/",d.user.id,""),s.R7$(),s.Y8G("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",T)("nzSrc",d.user.profileImagePath)}}function k(C,u){if(1&C&&(s.qex(0),s.DNE(1,V,4,6,"a",4),s.bVm()),2&C){const d=s.XpG();s.R7$(),s.Y8G("ngForOf",d.sortedContributors)}}function y(C,u){1&C&&s.EFF(0," None ")}let j=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((d,T)=>T.totalActionCount-d.totalActionCount)}static#n=this.\u0275fac=function(T){return new(T||C)};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[["noContributors",""],["curatorPopover",""],["additionalMetadata",""],[4,"ngIf","ngIfElse"],["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"],[3,"userId"],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(T,B){if(1&T&&s.DNE(0,k,2,1,"ng-container",3)(1,y,1,0,"ng-template",null,0,s.C5r),2&T){const K=s.sdS(2);s.Y8G("ngIf",B.sortedContributors&&B.sortedContributors.length>0)("ngIfElse",K)}},dependencies:[G.Sq,G.bT,t.Wk,v.PM,f.L_,E.xA,E.gr,$.M,G.vh,P.s],encapsulation:2})}return C})();var F=o(1774);function M(C,u){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const d=u.ngIf;s.R7$(),s.Y8G("contributors",d)}}function I(C,u){1&C&&s.EFF(0," None ")}function O(C,u){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const d=u.ngIf;s.R7$(),s.Y8G("contributors",d)}}function Y(C,u){1&C&&s.EFF(0," None ")}let h=(()=>{class C{constructor(d){this.gql=d}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let d=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=d.pipe((0,c.E)("data","contributors","curators")),this.editors$=d.pipe((0,c.E)("data","contributors","editors"))}static#n=this.\u0275fac=function(T){return new(T||C)(s.rXU(S.wBW))};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["noCurators",""],["noEditors",""],["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],[3,"contributors"]],template:function(T,B){if(1&T&&(s.j41(0,"span",2),s.EFF(1,"Curators:"),s.k0s(),s.j41(2,"div",3),s.DNE(3,M,2,1,"ng-container",4),s.nI1(4,"ngrxPush"),s.DNE(5,I,1,0,"ng-template",null,0,s.C5r),s.k0s(),s.j41(7,"span",2),s.EFF(8,"Editors:"),s.k0s(),s.j41(9,"div",3),s.DNE(10,O,2,1,"ng-container",4),s.nI1(11,"ngrxPush"),s.DNE(12,Y,1,0,"ng-template",null,1,s.C5r),s.k0s()),2&T){const K=s.sdS(6),J=s.sdS(13);s.R7$(3),s.Y8G("ngIf",s.bMT(4,4,B.curators$))("ngIfElse",K),s.R7$(7),s.Y8G("ngIf",s.bMT(11,6,B.editors$))("ngIfElse",J)}},dependencies:[G.bT,n.Di,j,F.L9],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}"]})}return C})()},8103:(Q,N,o)=>{o.d(N,{m:()=>P});var c=o(177),s=o(7391),S=o(1188),G=o(9438),n=o(1236),t=o(4917),v=o(2225),f=o(2e3),E=o(3953);let $=(()=>{class b{static#n=this.\u0275fac=function(x){return new(x||b)};static#t=this.\u0275mod=E.$C({type:b});static#e=this.\u0275inj=E.G2t({imports:[c.MD,S.iI,G.Yb,n.MC,f.WF,t.i,v.h]})}return b})(),P=(()=>{class b{static#n=this.\u0275fac=function(x){return new(x||b)};static#t=this.\u0275mod=E.$C({type:b});static#e=this.\u0275inj=E.G2t({imports:[c.MD,s.kT,$]})}return b})()},5269:(Q,N,o)=>{o.d(N,{o:()=>j});var c=o(1226),s=o(9145),S=o(1413),G=o(5964),n=o(6977),t=o(9199),v=o(4608),f=o(3953),E=o(4222),$=o(177),P=o(513),b=o(6389),X=o(5930),A=o(5103),x=o(5154),V=o(1774);function k(F,M){if(1&F){const I=f.RV6();f.qex(0),f.j41(1,"button",2),f.bIt("click",function(){f.eBV(I);const Y=f.XpG();return f.Njj(Y.unsubscribe())}),f.nrm(2,"i",3),f.k0s(),f.bVm()}if(2&F){const I=f.XpG();f.R7$(),f.Y8G("nzLoading",I.isSubmitting)}}function y(F,M){if(1&F){const I=f.RV6();f.j41(0,"button",4),f.bIt("click",function(){f.eBV(I);const Y=f.XpG();return f.Njj(Y.subscribe())}),f.nrm(1,"i",5),f.k0s()}if(2&F){const I=f.XpG();f.Y8G("nzLoading",I.isSubmitting)}}let j=(()=>{class F{constructor(I,O,Y,h){this.isSubscribedGQL=I,this.unsubscribeMutation=O,this.subscribeMutation=Y,this.networkErrorService=h,this.isSubmitting=!1,this.destroy$=new S.B,this.unsubscribeMutator=new c.E(h),this.subscribeMutator=new c.E(h)}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.V9U[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,v.E)("data","subscriptionForEntity"),(0,G.p)(t.kP))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.Q)(this.destroy$)).subscribe(O=>{O&&(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.Q)(this.destroy$)).subscribe(O=>{O&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(O){return new(O||F)(f.rXU(s.aUH),f.rXU(s.ytN),f.rXU(s.RSy),f.rXU(E.N))};static#t=this.\u0275cmp=f.VBU({type:F,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[["noSub",""],[4,"ngIf","ngIfElse"],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(O,Y){if(1&O&&(f.DNE(0,k,3,1,"ng-container",1),f.nI1(1,"ngrxPush"),f.DNE(2,y,2,1,"ng-template",null,0,f.C5r)),2&O){const h=f.sdS(3);f.Y8G("ngIf",f.bMT(1,2,Y.existingSubscription$))("ngIfElse",h)}},dependencies:[$.bT,P.aO,b.c,X.p,A.Dn,x.LH,V.L9],styles:["[_nghost-%COMP%]{display:block}"]})}return F})()},5736:(Q,N,o)=>{o.d(N,{V:()=>t});var c=o(177),s=o(513),S=o(5103),G=o(5154),n=o(3953);let t=(()=>{class v{static#n=this.\u0275fac=function($){return new($||v)};static#t=this.\u0275mod=n.$C({type:v});static#e=this.\u0275inj=n.G2t({imports:[c.MD,s.Zw,S.Y3,G.Qt]})}return v})()},4696:(Q,N,o)=>{o.d(N,{GB:()=>Y,Vz:()=>O,pc:()=>M});var c=o(4707),s=o(3953),S=o(3726),G=o(6977),n=o(5964),t=o(713),v=o(6042),f=o(7806),E=o(1025),$=o(5103),P=o(8203),b=o(6841);const X=["*"],A=["collapseHeader"];function x(h,C){if(1&h&&(s.qex(0),s.nrm(1,"span",7),s.bVm()),2&h){const u=C.$implicit,d=s.XpG(2);s.R7$(),s.Y8G("nzType",u||"right")("nzRotate",d.nzActive?90:0)}}function V(h,C){if(1&h&&(s.j41(0,"div"),s.DNE(1,x,2,2,"ng-container",3),s.k0s()),2&h){const u=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",u.nzExpandedIcon)}}function k(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const u=s.XpG();s.R7$(),s.JRh(u.nzHeader)}}function y(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const u=s.XpG(2);s.R7$(),s.JRh(u.nzExtra)}}function j(h,C){if(1&h&&(s.j41(0,"div",4),s.DNE(1,y,2,1,"ng-container",3),s.k0s()),2&h){const u=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",u.nzExtra)}}const F="collapse";let M=(()=>{class h{constructor(u,d,T,B){this.nzConfigService=u,this.cdr=d,this.directionality=T,this.destroy$=B,this._nzModuleName=F,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="start",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.nzConfigService.getConfigChangeEventForComponent(F).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,G.Q)(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(d=>d!==u).forEach(d=>{d.nzActive&&(d.nzActive=!1,d.nzActiveChange.emit(d.nzActive),d.markForCheck())}),u.nzActive=!u.nzActive,u.nzActiveChange.emit(u.nzActive)}static#n=this.\u0275fac=function(d){return new(d||h)(s.rXU(v.yx),s.rXU(s.gRc),s.rXU(P.dS,8),s.rXU(E.y4))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(d,T){2&d&&s.AVh("ant-collapse-icon-position-start","start"===T.nzExpandIconPosition)("ant-collapse-icon-position-end","end"===T.nzExpandIconPosition)("ant-collapse-ghost",T.nzGhost)("ant-collapse-borderless",!T.nzBordered)("ant-collapse-rtl","rtl"===T.dir)},inputs:{nzAccordion:[2,"nzAccordion","nzAccordion",s.L39],nzBordered:[2,"nzBordered","nzBordered",s.L39],nzGhost:[2,"nzGhost","nzGhost",s.L39],nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],standalone:!0,features:[s.Jv_([E.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:1,vars:0,template:function(d,T){1&d&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return(0,c.Cg)([(0,v.H4)()],h.prototype,"nzAccordion",void 0),(0,c.Cg)([(0,v.H4)()],h.prototype,"nzBordered",void 0),(0,c.Cg)([(0,v.H4)()],h.prototype,"nzGhost",void 0),h})();const I="collapsePanel";let O=(()=>{class h{markForCheck(){this.cdr.markForCheck()}constructor(u,d,T,B,K,J){this.nzConfigService=u,this.ngZone=d,this.cdr=T,this.destroy$=B,this.nzCollapseComponent=K,this.noAnimation=J,this._nzModuleName=I,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new s.bkB,this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.nzCollapseComponent.addPanel(this),this.ngZone.runOutsideAngular(()=>(0,S.R)(this.collapseHeader.nativeElement,"click").pipe((0,n.p)(()=>!this.nzDisabled),(0,G.Q)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.nzCollapseComponent.click(this),this.cdr.markForCheck()})}))}ngOnDestroy(){this.nzCollapseComponent.removePanel(this)}static#n=this.\u0275fac=function(d){return new(d||h)(s.rXU(v.yx),s.rXU(s.SKi),s.rXU(s.gRc),s.rXU(E.y4),s.rXU(M,1),s.rXU(b.z,8))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse-panel"]],viewQuery:function(d,T){if(1&d&&s.GBs(A,7),2&d){let B;s.mGM(B=s.lsd())&&(T.collapseHeader=B.first)}},hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(d,T){2&d&&s.AVh("ant-collapse-no-arrow",!T.nzShowArrow)("ant-collapse-item-active",T.nzActive)("ant-collapse-item-disabled",T.nzDisabled)},inputs:{nzActive:[2,"nzActive","nzActive",s.L39],nzDisabled:[2,"nzDisabled","nzDisabled",s.L39],nzShowArrow:[2,"nzShowArrow","nzShowArrow",s.L39],nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],standalone:!0,features:[s.Jv_([E.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:9,vars:8,consts:[["collapseHeader",""],["role","button",1,"ant-collapse-header"],[1,"ant-collapse-header-text"],[4,"nzStringTemplateOutlet"],[1,"ant-collapse-extra"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"]],template:function(d,T){1&d&&(s.NAR(),s.j41(0,"div",1,0),s.DNE(2,V,2,1,"div"),s.j41(3,"span",2),s.DNE(4,k,2,1,"ng-container",3),s.k0s(),s.DNE(5,j,2,1,"div",4),s.k0s(),s.j41(6,"div",5)(7,"div",6),s.SdG(8),s.k0s()()),2&d&&(s.BMQ("aria-expanded",T.nzActive),s.R7$(2),s.vxM(T.nzShowArrow?2:-1),s.R7$(2),s.Y8G("nzStringTemplateOutlet",T.nzHeader),s.R7$(),s.vxM(T.nzExtra?5:-1),s.R7$(),s.AVh("ant-collapse-content-active",T.nzActive),s.Y8G("@.disabled",!(null==T.noAnimation||!T.noAnimation.nzNoAnimation))("@collapseMotion",T.nzActive?"expanded":"hidden"))},dependencies:[f.C,f.m,$.Y3,$.Dn],encapsulation:2,data:{animation:[t.GE]},changeDetection:0})}return(0,c.Cg)([(0,v.H4)()],h.prototype,"nzShowArrow",void 0),h})(),Y=(()=>{class h{static#n=this.\u0275fac=function(d){return new(d||h)};static#t=this.\u0275mod=s.$C({type:h});static#e=this.\u0275inj=s.G2t({imports:[O]})}return h})()}}]); \ No newline at end of file diff --git a/server/public/5439.6ebe3bb6b34df19f.js b/server/public/5439.c92ef8fe0adc2bdc.js similarity index 68% rename from server/public/5439.6ebe3bb6b34df19f.js rename to server/public/5439.c92ef8fe0adc2bdc.js index 9659270b7..e6800430b 100644 --- a/server/public/5439.6ebe3bb6b34df19f.js +++ b/server/public/5439.c92ef8fe0adc2bdc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5439],{9045:(A,M,i)=>{i.d(M,{J:()=>W});var o=i(6514),r=i(505),p=i(3953),t=i(177),D=i(1188),u=i(5699),z=i(1236),y=i(5103),I=i(8011),f=i(2387),$=i(3075);const _=(v,b,C)=>({rejected:v,submitted:b,accepted:C});function R(v,b){}function x(v,b){if(1&v&&(p.qex(0),p.j41(1,"a",5),p.DNE(2,R,0,0,"ng-template",6),p.k0s(),p.bVm()),2&v){const C=p.XpG(),O=p.sdS(2);p.R7$(),p.Y8G("routerLink",C.evidence.link),p.R7$(),p.Y8G("ngTemplateOutlet",O)}}function S(v,b){}function G(v,b){if(1&v&&p.nrm(0,"cvc-evidence-popover",9),2&v){const C=p.XpG(3);p.Y8G("evidenceId",C.evidence.id)}}function w(v,b){if(1&v&&p.DNE(0,G,1,1,"cvc-evidence-popover",8),2&v){const C=p.XpG(2);p.Y8G("ngIf",C.enablePopover)}}function N(v,b){if(1&v&&(p.j41(0,"nz-tag",7),p.DNE(1,S,0,0,"ng-template",6),p.k0s(),p.DNE(2,w,1,1,"ng-template",null,3,p.C5r)),2&v){const C=p.sdS(3),O=p.XpG(),L=p.sdS(6);p.Y8G("ngClass",p.sMw(5,_,"REJECTED"===O.evidence.status,"SUBMITTED"===O.evidence.status,"ACCEPTED"===O.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",C)("nzPopoverTrigger",O.enablePopover?"hover":null),p.R7$(),p.Y8G("ngTemplateOutlet",L)}}function F(v,b){}function B(v,b){if(1&v&&p.DNE(0,F,0,0,"ng-template",6),2&v){p.XpG();const C=p.sdS(2);p.Y8G("ngTemplateOutlet",C)}}function U(v,b){if(1&v&&(p.j41(0,"cvc-icon-badges",10),p.nrm(1,"i",11),p.nI1(2,"entityColor"),p.nI1(3,"entityColor"),p.k0s(),p.EFF(4)),2&v){const C=p.XpG();p.Y8G("flagged",C.evidence.flagged)("entityColor",C.iconColor),p.R7$(),p.Y8G("nzTwotoneColor","REJECTED"===C.evidence.status?p.bMT(2,4,"Rejected"):p.bMT(3,6,"EvidenceItem")),p.R7$(3),p.SpI(" ",C.evidence.name,"\n")}}let W=(()=>{class v extends o.s{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,r.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(O){return new(O||v)};static#e=this.\u0275cmp=p.VBU({type:v,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[p.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(O,L){if(1&O&&p.DNE(0,x,3,2,"ng-container",4)(1,N,4,9,"ng-template",null,0,p.C5r)(3,B,1,1,"ng-template",null,1,p.C5r)(5,U,5,8,"ng-template",null,2,p.C5r),2&O){const j=p.sdS(4);p.Y8G("ngIf",L.linked)("ngIfElse",j)}},dependencies:[t.YU,t.bT,t.T3,D.Wk,u.s,z.L_,y.Dn,I.S,f.N,$.R],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}"]})}return v})()},6936:(A,M,i)=>{i.d(M,{G:()=>$});var o=i(177),r=i(1188),p=i(5699),t=i(1236),D=i(5103),u=i(4666),z=i(4917),y=i(3146),I=i(4994),f=i(3953);let $=(()=>{class _{static#t=this.\u0275fac=function(S){return new(S||_)};static#e=this.\u0275mod=f.$C({type:_});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,y.W2,p.T,t.MC,D.Y3,u.v,z.i,I.a]})}return _})()},6440:(A,M,i)=>{i.d(M,{r:()=>et});var o=i(3953),r=i(177),p=i(1188),t=i(5699),D=i(5103),u=i(1236),z=i(9199),y=i(6354),I=i(5964),f=i(9145),$=i(5703),_=i(7529),R=i(2e3),x=i(7679),S=i(9162),G=i(1774);const w=(g,P)=>({displayName:g,profileImagePath:P});function N(g,P){if(1&g&&(o.nrm(0,"cvc-user-avatar",12),o.j41(1,"span",13),o.EFF(2),o.k0s()),2&g){const c=o.XpG().ngIf;o.Y8G("user",o.l_i(2,w,c.name,c.profileImagePath)),o.R7$(2),o.JRh(c.name)}}function F(g,P){if(1&g&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&g){const c=P.ngIf;o.R7$(),o.JRh(c)}}function B(g,P){if(1&g&&(o.qex(0),o.j41(1,"cvc-link-tag",14),o.EFF(2),o.k0s(),o.bVm()),2&g){const c=o.XpG().ngIf;o.R7$(),o.Y8G("href",c.url),o.R7$(),o.SpI(" ",c.name," ")}}function U(g,P){if(1&g&&(o.qex(0),o.j41(1,"nz-card",5),o.DNE(2,N,3,5,"ng-template",null,2,o.C5r),o.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),o.DNE(8,F,2,1,"span",9),o.k0s()()()(),o.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),o.DNE(11,B,3,2,"ng-container",9),o.k0s()()(),o.bVm()),2&g){const c=P.ngIf,m=o.sdS(3);o.XpG();const h=o.sdS(4),E=o.sdS(6);o.R7$(),o.Y8G("nzTitle",m),o.R7$(7),o.Y8G("ngIf",c.description)("ngIfElse",h),o.R7$(),o.Y8G("nzColumn",2),o.R7$(2),o.Y8G("ngIf",c.url)("ngIfElse",E)}}function W(g,P){1&g&&o.EFF(0," Organization has not provided a description.\n")}function v(g,P){1&g&&o.EFF(0," -- ")}let b=(()=>{class g{constructor(c){this.gql=c}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.T)(({data:c})=>c?.organization),(0,I.p)(z.kP))}static#t=this.\u0275fac=function(m){return new(m||g)(o.rXU(f.I8L))};static#e=this.\u0275cmp=o.VBU({type:g,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(m,h){1&m&&(o.j41(0,"div",3),o.DNE(1,U,12,6,"ng-container",4),o.nI1(2,"ngrxPush"),o.k0s(),o.DNE(3,W,1,0,"ng-template",null,0,o.C5r)(5,v,1,0,"ng-template",null,1,o.C5r)),2&m&&(o.R7$(),o.Y8G("ngIf",o.bMT(2,1,h.org$)))},dependencies:[r.bT,$.cK,_.Uq,_.e,R.xA,R.gr,x.a,S.G,G.L9],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}"]})}return g})();function C(g,P){}function O(g,P){if(1&g&&(o.qex(0),o.j41(1,"a",5),o.DNE(2,C,0,0,"ng-template",6),o.k0s(),o.bVm()),2&g){const c=o.XpG(),m=o.sdS(2);o.R7$(),o.Mz_("routerLink","/organizations/",c.org.id,""),o.R7$(),o.Y8G("ngTemplateOutlet",m)}}function L(g,P){}function j(g,P){if(1&g&&o.nrm(0,"cvc-organization-popover",9),2&g){const c=o.XpG(3);o.Y8G("orgId",c.org.id)}}function X(g,P){if(1&g&&o.DNE(0,j,1,1,"cvc-organization-popover",8),2&g){const c=o.XpG(2);o.Y8G("ngIf",c.enablePopover)}}function J(g,P){if(1&g&&(o.j41(0,"nz-tag",7),o.DNE(1,L,0,0,"ng-template",6),o.k0s(),o.DNE(2,X,1,1,"ng-template",null,3,o.C5r)),2&g){const c=o.sdS(3);o.XpG();const m=o.sdS(6);o.Y8G("nzPopoverContent",c),o.R7$(),o.Y8G("ngTemplateOutlet",m)}}function Z(g,P){}function q(g,P){if(1&g&&o.DNE(0,Z,0,0,"ng-template",6),2&g){o.XpG();const c=o.sdS(2);o.Y8G("ngTemplateOutlet",c)}}function tt(g,P){if(1&g&&(o.nrm(0,"i",10),o.EFF(1)),2&g){const c=o.XpG();o.R7$(),o.SpI(" ",c.org.name,"\n")}}let et=(()=>{class g{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(m){return new(m||g)};static#e=this.\u0275cmp=o.VBU({type:g,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(m,h){if(1&m&&o.DNE(0,O,3,3,"ng-container",4)(1,J,4,2,"ng-template",null,0,o.C5r)(3,q,1,1,"ng-template",null,1,o.C5r)(5,tt,2,1,"ng-template",null,2,o.C5r),2&m){const E=o.sdS(4);o.Y8G("ngIf",h.linked)("ngIfElse",E)}},dependencies:[r.bT,r.T3,p.Wk,t.s,D.Dn,u.L_,b],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return g})()},8920:(A,M,i)=>{i.d(M,{U:()=>R});var o=i(177),r=i(1188),p=i(5699),t=i(5103),D=i(7529),u=i(7054),z=i(2e3),y=i(5703),I=i(3357),f=i(3953);let $=(()=>{class x{static#t=this.\u0275fac=function(w){return new(w||x)};static#e=this.\u0275mod=f.$C({type:x});static#n=this.\u0275inj=f.G2t({imports:[o.MD,y.Ti,D.f3,z.WF,u.L,I.P]})}return x})();var _=i(1236);let R=(()=>{class x{static#t=this.\u0275fac=function(w){return new(w||x)};static#e=this.\u0275mod=f.$C({type:x});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,p.T,t.Y3,_.MC,$]})}return x})()},959:(A,M,i)=>{i.d(M,{j:()=>D});var o=i(3953),r=i(3100),p=i(3245),t=i(4247);let D=(()=>{class u{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(I){return new(I||u)};static#e=this.\u0275cmp=o.VBU({type:u,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(I,f){1&I&&(o.j41(0,"cvc-tag-group"),o.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),o.k0s()),2&I&&(o.R7$(),o.Y8G("feature",f.feature)("enablePopover",f.enablePopover)("truncateLongName",f.truncateLongName),o.R7$(),o.Y8G("variant",f.variant)("enablePopover",f.enablePopover)("truncateLongName",f.truncateLongName))},dependencies:[r.V,p._,t.L],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})}return u})()},7086:(A,M,i)=>{i.d(M,{C:()=>$});var o=i(177),r=i(1188),p=i(5699),t=i(5103),D=i(1236),u=i(4917),z=i(7051),y=i(6912),I=i(2502),f=i(3953);let $=(()=>{class _{static#t=this.\u0275fac=function(S){return new(S||_)};static#e=this.\u0275mod=f.$C({type:_});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,p.T,D.MC,t.Y3,u.i,z.U,y.l,I.u]})}return _})()},8238:(A,M,i)=>{i.d(M,{S:()=>P});var o=i(505),r=i(3953),p=i(177),t=i(1188),D=i(1236),u=i(5699),z=i(5103),y=i(9199),I=i(6354),f=i(5964),$=i(9145),_=i(5703),R=i(2e3),x=i(9062),S=i(959),G=i(7855),w=i(1774),N=i(3075);function F(c,m){if(1&c&&(r.nrm(0,"i",7),r.nI1(1,"entityColor"),r.EFF(2)),2&c){const h=r.XpG().ngIf;r.Y8G("nzTwotoneColor",r.bMT(1,2,"VariantGroup")),r.R7$(2),r.SpI(" ",h.name," ")}}function B(c,m){if(1&c&&r.nrm(0,"cvc-feature-variant-tag",10),2&c){const h=m.$implicit;r.Y8G("enablePopover",!1)("variant",h.node)}}function U(c,m){if(1&c&&(r.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),r.DNE(2,B,1,2,"cvc-feature-variant-tag",9),r.k0s()()),2&c){const h=r.XpG().ngIf;r.R7$(2),r.Y8G("ngForOf",h.variants.edges)}}function W(c,m){if(1&c&&r.nrm(0,"cvc-source-tag",13),2&c){const h=m.$implicit;r.Y8G("enablePopover",!1)("source",h)}}function v(c,m){if(1&c&&(r.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),r.DNE(2,W,1,2,"cvc-source-tag",12),r.k0s()()),2&c){const h=r.XpG().ngIf;r.R7$(2),r.Y8G("ngForOf",h.sources)}}function b(c,m){if(1&c&&(r.qex(0),r.j41(1,"nz-card",3),r.DNE(2,F,3,4,"ng-template",null,0,r.C5r),r.EFF(4),r.j41(5,"nz-descriptions",4),r.DNE(6,U,3,1,"nz-descriptions-item",5)(7,v,3,1,"nz-descriptions-item",6),r.k0s()(),r.bVm()),2&c){const h=m.ngIf,E=r.sdS(3);r.R7$(),r.Y8G("nzTitle",E),r.R7$(3),r.SpI(" ",h.description," "),r.R7$(),r.Y8G("nzColumn",2),r.R7$(),r.Y8G("ngIf",h.variants.edges.length>0),r.R7$(),r.Y8G("ngIf",h.sources.length>0)}}let C=(()=>{class c{constructor(h){this.gql=h}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,I.T)(({data:h})=>h?.variantGroup),(0,f.p)(y.kP))}static#t=this.\u0275fac=function(E){return new(E||c)(r.rXU($.gwr))};static#e=this.\u0275cmp=r.VBU({type:c,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(E,V){1&E&&(r.j41(0,"div",1),r.DNE(1,b,8,5,"ng-container",2),r.nI1(2,"ngrxPush"),r.k0s()),2&E&&(r.R7$(),r.Y8G("ngIf",r.bMT(2,1,V.variantGroup$)))},dependencies:[p.Sq,p.bT,_.cK,R.xA,R.gr,z.Dn,x.D,S.j,G.M,w.L9,N.R],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}"]})}return c})();var O=i(2387);function L(c,m){}function j(c,m){if(1&c&&(r.qex(0),r.j41(1,"a",5),r.DNE(2,L,0,0,"ng-template",6),r.k0s(),r.bVm()),2&c){const h=r.XpG(),E=r.sdS(2);r.R7$(),r.Y8G("routerLink",h.variantgroup.link),r.R7$(),r.Y8G("ngTemplateOutlet",E)}}function X(c,m){}function J(c,m){if(1&c&&r.nrm(0,"cvc-variant-group-popover",9),2&c){const h=r.XpG(3);r.Y8G("variantGroupId",h.variantgroup.id)}}function Z(c,m){if(1&c&&r.DNE(0,J,1,1,"cvc-variant-group-popover",8),2&c){const h=r.XpG(2);r.Y8G("ngIf",h.enablePopover)}}function q(c,m){if(1&c&&(r.j41(0,"nz-tag",7),r.DNE(1,X,0,0,"ng-template",6),r.k0s(),r.DNE(2,Z,1,1,"ng-template",null,3,r.C5r)),2&c){const h=r.sdS(3),E=r.XpG(),V=r.sdS(6);r.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",h)("nzPopoverTrigger",E.enablePopover?"hover":null),r.R7$(),r.Y8G("ngTemplateOutlet",V)}}function tt(c,m){}function et(c,m){if(1&c&&r.DNE(0,tt,0,0,"ng-template",6),2&c){r.XpG();const h=r.sdS(2);r.Y8G("ngTemplateOutlet",h)}}function g(c,m){if(1&c&&(r.j41(0,"cvc-icon-badges",10),r.nrm(1,"i",11),r.nI1(2,"entityColor"),r.k0s(),r.EFF(3)),2&c){const h=r.XpG();r.Y8G("flagged",h.variantgroup.flagged)("entityColor",h.iconColor),r.R7$(),r.Y8G("nzTwotoneColor",r.bMT(2,4,"VariantGroup")),r.R7$(2),r.SpI(" ",h.variantgroup.name,"\n")}}let P=(()=>{class c{set variantgroup(h){if(!h)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=h}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,o.P)("VariantGroup")}static#t=this.\u0275fac=function(E){return new(E||c)};static#e=this.\u0275cmp=r.VBU({type:c,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,V){if(1&E&&r.DNE(0,j,3,2,"ng-container",4)(1,q,4,4,"ng-template",null,0,r.C5r)(3,et,1,1,"ng-template",null,1,r.C5r)(5,g,4,6,"ng-template",null,2,r.C5r),2&E){const H=r.sdS(4);r.Y8G("ngIf",V.linked)("ngIfElse",H)}},dependencies:[p.bT,p.T3,t.Wk,D.L_,u.s,z.Dn,C,O.N,N.R],encapsulation:2,changeDetection:0})}return c})()},8134:(A,M,i)=>{i.d(M,{l:()=>S});var o=i(177),r=i(1188),p=i(1236),t=i(5699),D=i(5103),u=i(7086),z=i(2142),y=i(1209),I=i(4917),f=i(5703),$=i(2e3),_=i(3953);let R=(()=>{class G{static#t=this.\u0275fac=function(F){return new(F||G)};static#e=this.\u0275mod=_.$C({type:G});static#n=this.\u0275inj=_.G2t({imports:[o.MD,f.Ti,$.WF,D.Y3,y.k,u.C,z.x,I.i]})}return G})();var x=i(4994);let S=(()=>{class G{static#t=this.\u0275fac=function(F){return new(F||G)};static#e=this.\u0275mod=_.$C({type:G});static#n=this.\u0275inj=_.G2t({imports:[o.MD,r.iI,p.MC,t.T,D.Y3,R,I.i,x.a]})}return G})()},3824:(A,M,i)=>{i.r(M),i.d(M,{WelcomeModule:()=>Pe});var o=i(1188),r=i(9145),p=i(6354),t=i(3953),D=i(1626),u=i(177),z=i(7529),y=i(4707),I=i(7336),f=i(1413),$=i(3726),_=i(6977),R=i(152),x=i(3294),S=i(6042),G=i(6860),w=i(1025),N=i(5979),F=i(8203);const B=["slickList"],U=["slickTrack"],W=["*"],v=e=>({$implicit:e});function b(e,a){}function C(e,a){if(1&e){const n=t.RV6();t.j41(0,"li",9),t.bIt("click",function(){const l=t.eBV(n).$index,d=t.XpG(2);return t.Njj(d.onLiClick(l))}),t.DNE(1,b,0,0,"ng-template",10),t.k0s()}if(2&e){const n=a.$index,s=t.XpG(2),l=t.sdS(8);t.AVh("slick-active",n===s.activeIndex),t.R7$(),t.Y8G("ngTemplateOutlet",s.nzDotRender||l)("ngTemplateOutletContext",t.eq3(4,v,n))}}function O(e,a){if(1&e&&(t.j41(0,"ul",7),t.Z7z(1,C,2,6,"li",8,t.fX1),t.k0s()),2&e){const n=t.XpG();t.AVh("slick-dots-top","top"===n.nzDotPosition)("slick-dots-bottom","bottom"===n.nzDotPosition)("slick-dots-left","left"===n.nzDotPosition)("slick-dots-right","right"===n.nzDotPosition),t.R7$(),t.Dyx(n.carouselContents)}}function L(e,a){if(1&e&&(t.j41(0,"button"),t.EFF(1),t.k0s()),2&e){const n=a.$implicit;t.R7$(),t.JRh(n+1)}}let j=(()=>{class e{set isActive(n){this._active=n,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(n,s){this.renderer=s,this._active=!1,this.el=n.nativeElement}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(t.aKT),t.rXU(t.sFG))};static#e=this.\u0275dir=t.FsC({type:e,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"],standalone:!0})}return e})();class X{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(a,n,s,l,d){this.cdr=n,this.renderer=s,this.platform=l,this.options=d,this.carouselComponent=a}withCarouselContents(a){const n=this.carouselComponent;if(this.slickListEl=n.slickListEl,this.slickTrackEl=n.slickTrackEl,this.contents=a?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const s=n.el.getBoundingClientRect();this.unitWidth=s.width,this.unitHeight=s.height}else a?.forEach((s,l)=>{0===l?this.renderer.setStyle(s.el,"width","100%"):this.renderer.setStyle(s.el,"display","none")})}dragging(a){}dispose(){}getFromToInBoundary(a,n){const s=this.maxIndex+1;return{from:(a+s)%s,to:(n+s)%s}}}class J extends X{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((n,s)=>{this.renderer.setStyle(n.el,"opacity",this.carouselComponent.activeIndex===s?"1":"0"),this.renderer.setStyle(n.el,"position","relative"),this.renderer.setStyle(n.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(n.el,"left",-this.unitWidth*s+"px"),this.renderer.setStyle(n.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,n){const{to:s}=this.getFromToInBoundary(a,n),l=new f.B;return this.contents.forEach((d,k)=>{this.renderer.setStyle(d.el,"opacity",s===k?"1":"0")}),setTimeout(()=>{l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l}dispose(){this.contents.forEach(a=>{this.renderer.setStyle(a.el,"transition",null),this.renderer.setStyle(a.el,"opacity",null),this.renderer.setStyle(a.el,"width",null),this.renderer.setStyle(a.el,"left",null)}),super.dispose()}}class Z extends X{get vertical(){return this.carouselComponent.vertical}constructor(a,n,s,l,d){super(a,n,s,l,d),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(a){super.withCarouselContents(a);const s=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, ${-s*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(${-s*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(a,n){const{to:s}=this.getFromToInBoundary(a,n),l=new f.B;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,n):this.horizontalTransform(a,n),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(d=>{this.renderer.setStyle(d.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-s*this.unitHeight}px, 0)`:`translate3d(${-s*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l.asObservable()}dragging(a){if(this.isTransitioning)return;const n=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareVerticalContext(!0):0===n&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-n*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareHorizontalContext(!0):0===n&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-n*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,n){const{from:s,to:l}=this.getFromToInBoundary(a,n);this.length>2&&n!==l?(this.prepareVerticalContext(l2&&n!==l?(this.prepareHorizontalContext(l{class e{set nzDotPosition(n){this._dotPosition=n,this.vertical="left"===n||"right"===n}get nzDotPosition(){return this._dotPosition}constructor(n,s,l,d,k,Y,K,dt,gt,ht,mt){this.nzConfigService=s,this.ngZone=l,this.renderer=d,this.cdr=k,this.platform=Y,this.resizeService=K,this.nzDragService=dt,this.nzResizeObserver=gt,this.directionality=ht,this.customStrategies=mt,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.bkB,this.nzAfterChange=new t.bkB,this.activeIndex=0,this.vertical=!1,this.dir="ltr",this.destroy$=new f.B,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=T=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-T:T)},this.pointerDown=T=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(T).subscribe(Q=>{this.pointerDelta=Q,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const Q=this.pointerDelta?this.pointerDelta.x:0;Math.abs(Q)>this.gestureRect.width/3&&(this.nzLoop||Q<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(Q>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=n.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,_.Q)(this.destroy$)).subscribe(n=>{this.dir=n,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,$.R)(this.slickListEl,"keydown").pipe((0,_.Q)(this.destroy$)).subscribe(n=>{const{keyCode:s}=n;s!==I.UQ&&s!==I.LE||(n.preventDefault(),this.ngZone.run(()=>{s===I.UQ?this.pre():this.next(),this.cdr.markForCheck()}))})}),this.nzResizeObserver.observe(this.el).pipe((0,R.B)(100),(0,x.F)(),(0,_.Q)(this.destroy$)).subscribe(()=>{this.layout()})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,_.Q)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(n){const{nzEffect:s,nzDotPosition:l}=n;s&&!s.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(n){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||n>=0&&n{this.scheduleNextTransition(),this.nzAfterChange.emit(d),this.isTransiting=!1}),this.markContentActive(d),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const n=this.customStrategies?this.customStrategies.find(s=>s.name===this.nzEffect):null;this.strategy=n?new n.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new Z(this,this.cdr,this.renderer,this.platform):new J(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=void 0)}markContentActive(n){this.activeIndex=n,this.carouselContents&&this.carouselContents.forEach((s,l)=>{s.isActive="rtl"===this.dir?n===this.carouselContents.length-1-l:n===l}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(t.aKT),t.rXU(S.yx),t.rXU(t.SKi),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(G.OD),t.rXU(w.cB),t.rXU(w.qH),t.rXU(N.xH),t.rXU(F.dS,8),t.rXU(q,8))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["nz-carousel"]],contentQueries:function(s,l,d){if(1&s&&t.wni(d,j,4),2&s){let k;t.mGM(k=t.lsd())&&(l.carouselContents=k)}},viewQuery:function(s,l){if(1&s&&(t.GBs(B,7),t.GBs(U,7)),2&s){let d;t.mGM(d=t.lsd())&&(l.slickList=d.first),t.mGM(d=t.lsd())&&(l.slickTrack=d.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(s,l){2&s&&t.AVh("ant-carousel-vertical",l.vertical)("ant-carousel-rtl","rtl"===l.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:[2,"nzEnableSwipe","nzEnableSwipe",t.L39],nzDots:[2,"nzDots","nzDots",t.L39],nzAutoPlay:[2,"nzAutoPlay","nzAutoPlay",t.L39],nzAutoPlaySpeed:[2,"nzAutoPlaySpeed","nzAutoPlaySpeed",t.Udg],nzTransitionSpeed:[2,"nzTransitionSpeed","nzTransitionSpeed",t.Udg],nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:W,decls:9,vars:3,consts:[["slickList",""],["slickTrack",""],["renderDotTemplate",""],[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],[1,"slick-track"],[1,"slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right"],[1,"slick-dots"],[3,"slick-active"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(s,l){if(1&s){const d=t.RV6();t.NAR(),t.j41(0,"div",3)(1,"div",4,0),t.bIt("mousedown",function(Y){return t.eBV(d),t.Njj(l.pointerDown(Y))})("touchstart",function(Y){return t.eBV(d),t.Njj(l.pointerDown(Y))}),t.j41(3,"div",5,1),t.SdG(5),t.k0s()(),t.DNE(6,O,3,8,"ul",6),t.k0s(),t.DNE(7,L,2,1,"ng-template",null,2,t.C5r)}2&s&&(t.AVh("slick-vertical","left"===l.nzDotPosition||"right"===l.nzDotPosition),t.R7$(6),t.vxM(l.nzDots?6:-1))},dependencies:[u.T3],encapsulation:2,changeDetection:0})}return(0,y.Cg)([(0,S.H4)()],e.prototype,"nzEffect",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzEnableSwipe",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzDots",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzAutoPlay",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzAutoPlaySpeed",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzLoop",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzDotPosition",null),e})(),g=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({})}return e})();var m=i(5703),h=i(7685),E=i(7391),V=i(9199),H=i(5964),nt=i(4608),it=i(9417),lt=i(2269),rt=i(3190),ct=i(6389),ot=i(5103),ut=i(1774),Ct=i(3075);function zt(e,a){if(1&e){const n=t.RV6();t.j41(0,"nz-radio-group",14),t.mxI("ngModelChange",function(l){t.eBV(n);const d=t.XpG();return t.DH7(d.statsType,l)||(d.statsType=l),t.Njj(l)}),t.j41(1,"label",15),t.EFF(2,"Total"),t.k0s(),t.j41(3,"label",16),t.EFF(4,"Weekly"),t.k0s(),t.j41(5,"label",17),t.EFF(6,"Monthly"),t.k0s(),t.j41(7,"label",18),t.EFF(8,"Yearly"),t.k0s()()}if(2&e){const n=t.XpG();t.R50("ngModel",n.statsType)}}function Tt(e,a){1&e&&(t.nrm(0,"i",31),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Assertion"))}function Et(e,a){1&e&&(t.nrm(0,"i",32),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"EvidenceItem"))}function yt(e,a){1&e&&(t.nrm(0,"i",33),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Feature"))}function It(e,a){1&e&&(t.nrm(0,"i",34),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Variant"))}function xt(e,a){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"MolecularProfile"))}function Pt(e,a){1&e&&(t.nrm(0,"i",36),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Disease"))}function St(e,a){1&e&&(t.nrm(0,"i",37),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Therapy"))}function Gt(e,a){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Source"))}function Mt(e,a){1&e&&(t.nrm(0,"i",39),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Revision"))}function Dt(e,a){1&e&&(t.nrm(0,"i",40),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Curator"))}function Ot(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",19)(2,"nz-col",20)(3,"a",21),t.nrm(4,"nz-statistic",22),t.nI1(5,"number"),t.DNE(6,Tt,2,3,"ng-template",null,2,t.C5r),t.k0s()(),t.j41(8,"nz-col",20)(9,"a",23),t.nrm(10,"nz-statistic",22),t.nI1(11,"number"),t.DNE(12,Et,2,3,"ng-template",null,3,t.C5r),t.k0s()(),t.j41(14,"nz-col",20)(15,"a",24),t.nrm(16,"nz-statistic",22),t.nI1(17,"number"),t.DNE(18,yt,2,3,"ng-template",null,4,t.C5r),t.k0s()(),t.j41(20,"nz-col",20)(21,"a",25),t.nrm(22,"nz-statistic",22),t.nI1(23,"number"),t.DNE(24,It,2,3,"ng-template",null,5,t.C5r),t.k0s()(),t.j41(26,"nz-col",20)(27,"a",26),t.nrm(28,"nz-statistic",22),t.nI1(29,"number"),t.DNE(30,xt,2,3,"ng-template",null,6,t.C5r),t.k0s()()(),t.j41(32,"nz-row",19)(33,"nz-col",20)(34,"a",27),t.nrm(35,"nz-statistic",22),t.nI1(36,"number"),t.DNE(37,Pt,2,3,"ng-template",null,7,t.C5r),t.k0s()(),t.j41(39,"nz-col",20)(40,"a",28),t.nrm(41,"nz-statistic",22),t.nI1(42,"number"),t.DNE(43,St,2,3,"ng-template",null,8,t.C5r),t.k0s()(),t.j41(45,"nz-col",20)(46,"a",29),t.nrm(47,"nz-statistic",22),t.nI1(48,"number"),t.DNE(49,Gt,2,3,"ng-template",null,9,t.C5r),t.k0s()(),t.j41(51,"nz-col",20),t.nrm(52,"nz-statistic",22),t.nI1(53,"number"),t.DNE(54,Mt,2,3,"ng-template",null,10,t.C5r),t.k0s(),t.j41(56,"nz-col",20)(57,"a",30),t.nrm(58,"nz-statistic",22),t.nI1(59,"number"),t.DNE(60,Dt,2,3,"ng-template",null,11,t.C5r),t.k0s()()(),t.bVm()),2&e){const n=a.ngIf,s=t.sdS(7),l=t.sdS(13),d=t.sdS(19),k=t.sdS(25),Y=t.sdS(31),K=t.sdS(38),dt=t.sdS(44),gt=t.sdS(50),ht=t.sdS(55),mt=t.sdS(61),T=t.XpG();t.R7$(4),t.Y8G("nzTitle",T.label()+" Assertions")("nzValue",t.bMT(5,30,n.assertions[T.statsType]))("nzPrefix",s),t.R7$(6),t.Y8G("nzTitle",T.label()+" Evidence")("nzValue",t.bMT(11,32,n.evidenceItems[T.statsType]))("nzPrefix",l),t.R7$(6),t.Y8G("nzTitle",T.label()+" Features")("nzValue",t.bMT(17,34,n.features[T.statsType]))("nzPrefix",d),t.R7$(6),t.Y8G("nzTitle",T.label()+" Variants")("nzValue",t.bMT(23,36,n.variants[T.statsType]))("nzPrefix",k),t.R7$(6),t.Y8G("nzTitle",T.label()+" Molecular Profiles")("nzValue",t.bMT(29,38,n.molecularProfiles[T.statsType]))("nzPrefix",Y),t.R7$(7),t.Y8G("nzTitle",T.label()+" Diseases")("nzValue",t.bMT(36,40,n.diseases[T.statsType]))("nzPrefix",K),t.R7$(6),t.Y8G("nzTitle",T.label()+" Therapies")("nzValue",t.bMT(42,42,n.therapies[T.statsType]))("nzPrefix",dt),t.R7$(6),t.Y8G("nzTitle",T.label()+" Sources")("nzValue",t.bMT(48,44,n.sources[T.statsType]))("nzPrefix",gt),t.R7$(5),t.Y8G("nzTitle",T.label()+" Revisions")("nzValue",t.bMT(53,46,n.revisions[T.statsType]))("nzPrefix",ht),t.R7$(6),t.Y8G("nzTitle",T.label()+" Contributors")("nzValue",t.bMT(59,48,n.users[T.statsType]))("nzPrefix",mt)}}function bt(e,a){if(1&e&&(t.j41(0,"nz-row",19)(1,"nz-col",20),t.nrm(2,"nz-statistic",41),t.k0s(),t.j41(3,"nz-col",20),t.nrm(4,"nz-statistic",41),t.k0s(),t.j41(5,"nz-col",20),t.nrm(6,"nz-statistic",41),t.k0s(),t.j41(7,"nz-col",20),t.nrm(8,"nz-statistic",41),t.k0s(),t.j41(9,"nz-col",20),t.nrm(10,"nz-statistic",41),t.k0s()(),t.j41(11,"nz-row",19)(12,"nz-col",20),t.nrm(13,"nz-statistic",41),t.k0s(),t.j41(14,"nz-col",20),t.nrm(15,"nz-statistic",41),t.k0s(),t.j41(16,"nz-col",20),t.nrm(17,"nz-statistic",41),t.k0s(),t.j41(18,"nz-col",20),t.nrm(19,"nz-statistic",41),t.k0s(),t.j41(20,"nz-col",20),t.nrm(21,"nz-statistic",41),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("nzTitle",n.label()+" Assertions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Evidence")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Features")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Variants")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Molecular Profiles")("nzValue","--"),t.R7$(3),t.Y8G("nzTitle",n.label()+" Diseases")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Therapies")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Sources")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Revisions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Contributors")("nzValue","--")}}let kt=(()=>{class e{constructor(n){this.statsGql=n,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,nt.E)("loading"),(0,H.p)(V.kP)),this.stats$=this.response$.pipe((0,nt.E)("data","timepointStats"),(0,H.p)(V.kP))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(r.yoY))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["statsRadioGroup",""],["isLoading",""],["assertionIcon",""],["evidenceIcon",""],["featureIcon",""],["variantIcon",""],["mpIcon",""],["diseaseIcon",""],["therapyIcon",""],["sourceIcon",""],["revisionsIcon",""],["userIcon",""],["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],[4,"ngIf","ngIfElse"],["nzSize","small",3,"ngModelChange","ngModel"],["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"],["routerLink","/evidence"],["routerLink","/features"],["routerLink","/variants"],["routerLink","/molecular-profiles"],["routerLink","/diseases"],["routerLink","/therapies"],["routerLink","/sources"],["routerLink","/users"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",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(s,l){if(1&s&&(t.j41(0,"nz-card",12),t.DNE(1,zt,9,1,"ng-template",null,0,t.C5r)(3,Ot,62,50,"ng-container",13),t.nI1(4,"ngrxPush"),t.DNE(5,bt,22,20,"ng-template",null,1,t.C5r),t.k0s()),2&s){const d=t.sdS(2),k=t.sdS(6);t.Y8G("nzExtra",d),t.R7$(3),t.Y8G("ngIf",t.bMT(4,3,l.stats$))("ngIfElse",k)}},dependencies:[u.bT,it.BC,it.vS,o.Wk,lt.IV,z.Uq,z.e,m.cK,rt.lx,rt.i3,ct.c,ot.Dn,u.QX,ut.L9,Ct.R],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]})}return e})();var $t=i(5312),st=i(513),Rt=i(5930),at=i(1672),wt=i(9588);function Ft(e,a){if(1&e&&(t.qex(0),t.nrm(1,"cvc-event-timeline",9),t.bVm()),2&e){const n=t.XpG().ngIf,s=t.XpG(3);t.R7$(),t.Y8G("events",n)("tagDisplay",s.tagDisplay)}}function Vt(e,a){1&e&&(t.qex(0),t.j41(1,"button",10),t.EFF(2," See Full Activity Feed "),t.k0s(),t.bVm())}function Nt(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",2)(2,"nz-col",8),t.DNE(3,Ft,2,2,"ng-container",1)(4,Vt,3,0,"ng-container",7),t.nI1(5,"ngrxPush"),t.k0s()(),t.bVm()),2&e){const n=a.ngIf,s=t.XpG(3),l=t.sdS(3);t.R7$(),t.Y8G("nzGutter",16),t.R7$(2),t.Y8G("ngIf",n.length)("ngIfElse",l),t.R7$(),t.Y8G("ngIf",t.bMT(5,4,s.pageInfo$))}}function Yt(e,a){if(1&e&&(t.j41(0,"nz-card",6),t.DNE(1,Nt,6,6,"ng-container",7),t.nI1(2,"ngrxPush"),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("nzTitle",void 0),t.R7$(),t.Y8G("ngIf",t.bMT(2,2,n.events$))}}function Lt(e,a){1&e&&(t.qex(0),t.j41(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.DNE(4,Yt,3,4,"nz-card",5),t.k0s()()(),t.bVm()),2&e&&(t.R7$(),t.Y8G("nzGutter",16))}function At(e,a){1&e&&t.nrm(0,"nz-empty",11)}let jt=(()=>{class e{constructor(n){this.gql=n,this.pageSize=15,this.mode=r.Qt1.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:!1},this.queryRef=$t.c.production?this.gql.watch(this.initialQueryVars,{pollInterval:3e4}):this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.pageInfo)),this.events$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.edges.map(s=>s.node))),this.unfilteredCount$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.unfilteredCount))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(r.XxZ))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[["noEvents",""],[4,"ngIf","ngIfElse"],[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(s,l){if(1&s&&(t.DNE(0,Lt,5,1,"ng-container",1),t.nI1(1,"ngrxPush"),t.DNE(2,At,1,0,"ng-template",null,0,t.C5r)),2&s){const d=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,l.unfilteredCount$))("ngIfElse",d)}},dependencies:[u.bT,o.Wk,st.aO,ct.c,Rt.p,m.cK,z.Uq,z.e,h.U5,h.Dq,at.RW,wt.p,ut.L9],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}"]})}return e})();var vt=i(9448),ft=i(3384);const Bt=()=>[8,16];function Ut(e,a){1&e&&t.eu8(0)}function Wt(e,a){1&e&&t.eu8(0)}function Xt(e,a){1&e&&t.eu8(0)}function Ht(e,a){if(1&e&&t.EFF(0),2&e){const n=t.XpG().$implicit;t.SpI(" ",n.title," ")}}function Kt(e,a){if(1&e&&(t.j41(0,"span",13),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n.date)," ")}}function Qt(e,a){if(1&e&&t.nrm(0,"div",15),2&e){const n=t.XpG(2).$implicit;t.muq("background-image: url('",n.imageUrl,"')")}}function Jt(e,a){if(1&e&&t.DNE(0,Qt,1,3,"div",14),2&e){const n=t.XpG().$implicit;t.Y8G("ngIf",n.imageUrl)}}function Zt(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",n.text," ")}}function qt(e,a){if(1&e&&(t.nrm(0,"span",16),t.nI1(1,"nzSanitizer")),2&e){const n=t.XpG(2).$implicit;t.Y8G("innerHtml",t.i5U(1,1,n.htmlText,"html"),t.npT)}}function te(e,a){if(1&e&&t.DNE(0,Zt,2,1,"ng-container",7)(1,qt,2,4,"ng-template",null,6,t.C5r),2&e){const n=t.sdS(2),s=t.XpG().$implicit;t.Y8G("ngIf",s.text)("ngIfElse",n)}}function ee(e,a){if(1&e&&(t.qex(0),t.nrm(1,"nz-divider"),t.j41(2,"a",18),t.nrm(3,"i",19),t.EFF(4),t.k0s(),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(2),t.Y8G("href",n.link.url,t.B4B),t.R7$(2),t.SpI(" ",n.link.label?n.link.label:"More Information"," ")}}function ne(e,a){if(1&e&&t.DNE(0,ee,5,2,"ng-container",17),2&e){const n=t.XpG().$implicit;t.Y8G("ngIf",n.link&&n.link.url)}}function ie(e,a){if(1&e&&(t.j41(0,"nz-col",10)(1,"nz-card",11),t.DNE(2,Ut,1,0,"ng-container",12)(3,Wt,1,0,"ng-container",12)(4,Xt,1,0,"ng-container",12),t.k0s(),t.DNE(5,Ht,1,1,"ng-template",null,1,t.C5r)(7,Kt,3,3,"ng-template",null,2,t.C5r)(9,Jt,1,1,"ng-template",null,3,t.C5r)(11,te,3,2,"ng-template",null,4,t.C5r)(13,ne,1,1,"ng-template",null,5,t.C5r),t.k0s()),2&e){const n=t.sdS(6),s=t.sdS(8),l=t.sdS(10),d=t.sdS(12),k=t.sdS(14);t.R7$(),t.Y8G("nzTitle",n)("nzExtra",s),t.R7$(),t.Y8G("ngTemplateOutlet",l),t.R7$(),t.Y8G("ngTemplateOutlet",d),t.R7$(),t.Y8G("ngTemplateOutlet",k)}}function oe(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",8),t.DNE(2,ie,15,5,"nz-col",9),t.k0s(),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(2,Bt)),t.R7$(),t.Y8G("ngForOf",n.cvcNewsItems)}}function se(e,a){1&e&&t.nrm(0,"nz-empty")}let re=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[["newsEmpty",""],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["htmlText",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(s,l){if(1&s&&t.DNE(0,oe,3,3,"ng-container",7)(1,se,1,0,"ng-template",null,0,t.C5r),2&s){const d=t.sdS(2);t.Y8G("ngIf",l.cvcNewsItems)("ngIfElse",d)}},dependencies:[u.Sq,u.bT,u.T3,st.aO,ct.c,z.Uq,z.e,m.cK,E.Di,at.RW,vt.j,ot.Dn,u.vh,ft.ec],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}"]})}return e})();function ae(e,a){1&e&&(t.j41(0,"nz-carousel",6)(1,"div",7)(2,"h1"),t.EFF(3,"Welcome to CIViC"),t.k0s(),t.j41(4,"h2"),t.EFF(5," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.k0s()(),t.j41(6,"div",7)(7,"h1"),t.EFF(8," Discover supported clinical interpretations "),t.nrm(9,"br"),t.EFF(10," of mutations related to cancer. "),t.k0s()(),t.j41(11,"div",7)(12,"h1"),t.EFF(13," Participate with colleagues "),t.nrm(14,"br"),t.EFF(15,"to add variants and support "),t.nrm(16,"br"),t.EFF(17,"for cancer-related mutations. "),t.k0s()(),t.j41(18,"div",7)(19,"h1")(20,"a",8),t.EFF(21,"Become an Editor! "),t.nrm(22,"br"),t.EFF(23,"Help moderate updates to CIViC"),t.k0s()()()())}function le(e,a){1&e&&(t.j41(0,"nz-row")(1,"nz-col",4)(2,"nz-space",0),t.DNE(3,ae,24,0,"nz-carousel",5),t.k0s()()()),2&e&&(t.R7$(),t.Y8G("nzSpan",24))}function ce(e,a){1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4),t.nrm(2,"cvc-site-stats-card"),t.k0s()()),2&e&&(t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24))}function pe(e,a){if(1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",10),t.nrm(3,"cvc-news-item-list",11),t.k0s()(),t.j41(4,"nz-col",4)(5,"nz-card",12),t.nrm(6,"cvc-homepage-event-feed",13),t.k0s()()()),2&e){const n=t.XpG();t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",12),t.R7$(2),t.Y8G("cvcNewsItems",n.newsItems),t.R7$(),t.Y8G("nzSpan",12),t.R7$(2),t.Y8G("pageSize",23)}}function de(e,a){1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",14)(3,"p"),t.EFF(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.k0s(),t.j41(5,"p"),t.EFF(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.j41(7,"strong"),t.EFF(8,"IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.k0s(),t.EFF(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.k0s()()()()),2&e&&(t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24))}function ge(e,a){if(1&e&&(t.j41(0,"nz-row",16)(1,"div",17),t.EFF(2),t.nI1(3,"date"),t.j41(4,"a",18),t.EFF(5,"Release Notes"),t.k0s(),t.EFF(6," \u2022 "),t.j41(7,"a",19),t.EFF(8,"History"),t.k0s()()()),2&e){const n=t.XpG().ngIf;t.R7$(2),t.Lme(" CIViC ",n.name," (",t.bMT(3,3,n.published_at),") \u2022 "),t.R7$(2),t.Y8G("href",n.html_url,t.B4B)}}function he(e,a){1&e&&(t.qex(0),t.DNE(1,ge,9,5,"nz-row",15),t.bVm())}const me=[{path:"",component:(()=>{class e{constructor(n){this.http=n,this.feedMode=r.Qt1.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,p.T)(n=>n[0]))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(D.Qq))};static#e=this.\u0275cmp=t.VBU({type:e,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(s,l){1&s&&(t.j41(0,"nz-space",0),t.DNE(1,le,4,1,"nz-row",1)(2,ce,3,2,"nz-row",2)(3,pe,7,5,"nz-row",2)(4,de,10,2,"nz-row",2)(5,he,2,0,"ng-container",3),t.nI1(6,"async"),t.k0s()),2&s&&(t.R7$(5),t.Y8G("ngIf",t.bMT(6,1,l.release$)))},dependencies:[u.bT,z.Uq,z.e,et,j,m.cK,h.U5,h.Dq,E.Di,kt,jt,re,u.Jj,u.vh],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}"]})}return e})()}];let ue=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[o.iI.forChild(me),o.iI]})}return e})();var ve=i(2617),_t=i(776),fe=i(1912),pt=i(4917);let _e=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,o.iI,lt.Fw,z.f3,m.Ti,rt.Sw,st.Zw,fe.i3,E.kT,ot.Y3,_t.s,pt.i]})}return e})();var Ce=i(8927),ze=i(7481),Te=i(1997),Ee=i(2172),ye=i(2968),Ie=i(9438);let xe=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,o.iI,st.Zw,m.Ti,ot.Y3,Ce.PQ,Te.DH,ze.$,z.f3,h.pc,at._v,Ie.Yb,Ee.a,pt.i,ye.K,pt.i]})}return e})(),Pe=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,st.Zw,z.f3,g,m.Ti,ve.rD,rt.Sw,h.pc,lt.Fw,E.kT,at._v,ft.Qe,vt.g,ot.Y3,ue,_e,xe,_t.s]})}return e})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5439],{9045:(A,M,i)=>{i.d(M,{J:()=>W});var o=i(6514),r=i(505),p=i(3953),t=i(177),D=i(1188),u=i(5699),z=i(1236),E=i(5103),I=i(8011),f=i(2387),w=i(3075);const _=(v,O,C)=>({rejected:v,submitted:O,accepted:C});function $(v,O){}function x(v,O){if(1&v&&(p.qex(0),p.j41(1,"a",5),p.DNE(2,$,0,0,"ng-template",6),p.k0s(),p.bVm()),2&v){const C=p.XpG(),b=p.sdS(2);p.R7$(),p.Y8G("routerLink",C.evidence.link),p.R7$(),p.Y8G("ngTemplateOutlet",b)}}function P(v,O){}function G(v,O){if(1&v&&p.nrm(0,"cvc-evidence-popover",9),2&v){const C=p.XpG(3);p.Y8G("evidenceId",C.evidence.id)}}function R(v,O){if(1&v&&p.DNE(0,G,1,1,"cvc-evidence-popover",8),2&v){const C=p.XpG(2);p.Y8G("ngIf",C.enablePopover)}}function N(v,O){if(1&v&&(p.j41(0,"nz-tag",7),p.DNE(1,P,0,0,"ng-template",6),p.k0s(),p.DNE(2,R,1,1,"ng-template",null,3,p.C5r)),2&v){const C=p.sdS(3),b=p.XpG(),Y=p.sdS(6);p.Y8G("ngClass",p.sMw(5,_,"REJECTED"===b.evidence.status,"SUBMITTED"===b.evidence.status,"ACCEPTED"===b.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",C)("nzPopoverTrigger",b.enablePopover?"hover":null),p.R7$(),p.Y8G("ngTemplateOutlet",Y)}}function F(v,O){}function B(v,O){if(1&v&&p.DNE(0,F,0,0,"ng-template",6),2&v){p.XpG();const C=p.sdS(2);p.Y8G("ngTemplateOutlet",C)}}function U(v,O){if(1&v&&(p.j41(0,"cvc-icon-badges",10),p.nrm(1,"i",11),p.nI1(2,"entityColor"),p.nI1(3,"entityColor"),p.k0s(),p.EFF(4)),2&v){const C=p.XpG();p.Y8G("flagged",C.evidence.flagged)("entityColor",C.iconColor),p.R7$(),p.Y8G("nzTwotoneColor","REJECTED"===C.evidence.status?p.bMT(2,4,"Rejected"):p.bMT(3,6,"EvidenceItem")),p.R7$(3),p.SpI(" ",C.evidence.name,"\n")}}let W=(()=>{class v extends o.s{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,r.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(b){return new(b||v)};static#e=this.\u0275cmp=p.VBU({type:v,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[p.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(b,Y){if(1&b&&p.DNE(0,x,3,2,"ng-container",4)(1,N,4,9,"ng-template",null,0,p.C5r)(3,B,1,1,"ng-template",null,1,p.C5r)(5,U,5,8,"ng-template",null,2,p.C5r),2&b){const j=p.sdS(4);p.Y8G("ngIf",Y.linked)("ngIfElse",j)}},dependencies:[t.YU,t.bT,t.T3,D.Wk,u.s,z.L_,E.Dn,I.S,f.N,w.R],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}"]})}return v})()},6936:(A,M,i)=>{i.d(M,{G:()=>w});var o=i(177),r=i(1188),p=i(5699),t=i(1236),D=i(5103),u=i(4666),z=i(4917),E=i(3146),I=i(4994),f=i(3953);let w=(()=>{class _{static#t=this.\u0275fac=function(P){return new(P||_)};static#e=this.\u0275mod=f.$C({type:_});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,E.W2,p.T,t.MC,D.Y3,u.v,z.i,I.a]})}return _})()},6440:(A,M,i)=>{i.d(M,{r:()=>et});var o=i(3953),r=i(177),p=i(1188),t=i(5699),D=i(5103),u=i(1236),z=i(9199),E=i(6354),I=i(5964),f=i(9145),w=i(5703),_=i(7529),$=i(2e3),x=i(7679),P=i(9162),G=i(1774);const R=(g,S)=>({displayName:g,profileImagePath:S});function N(g,S){if(1&g&&(o.nrm(0,"cvc-user-avatar",12),o.j41(1,"span",13),o.EFF(2),o.k0s()),2&g){const c=o.XpG().ngIf;o.Y8G("user",o.l_i(2,R,c.name,c.profileImagePath)),o.R7$(2),o.JRh(c.name)}}function F(g,S){if(1&g&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&g){const c=S.ngIf;o.R7$(),o.JRh(c)}}function B(g,S){if(1&g&&(o.qex(0),o.j41(1,"cvc-link-tag",14),o.EFF(2),o.k0s(),o.bVm()),2&g){const c=o.XpG().ngIf;o.R7$(),o.Y8G("href",c.url),o.R7$(),o.SpI(" ",c.name," ")}}function U(g,S){if(1&g&&(o.qex(0),o.j41(1,"nz-card",5),o.DNE(2,N,3,5,"ng-template",null,2,o.C5r),o.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),o.DNE(8,F,2,1,"span",9),o.k0s()()()(),o.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),o.DNE(11,B,3,2,"ng-container",9),o.k0s()()(),o.bVm()),2&g){const c=S.ngIf,m=o.sdS(3);o.XpG();const h=o.sdS(4),y=o.sdS(6);o.R7$(),o.Y8G("nzTitle",m),o.R7$(7),o.Y8G("ngIf",c.description)("ngIfElse",h),o.R7$(),o.Y8G("nzColumn",2),o.R7$(2),o.Y8G("ngIf",c.url)("ngIfElse",y)}}function W(g,S){1&g&&o.EFF(0," Organization has not provided a description.\n")}function v(g,S){1&g&&o.EFF(0," -- ")}let O=(()=>{class g{constructor(c){this.gql=c}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,E.T)(({data:c})=>c?.organization),(0,I.p)(z.kP))}static#t=this.\u0275fac=function(m){return new(m||g)(o.rXU(f.I8L))};static#e=this.\u0275cmp=o.VBU({type:g,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(m,h){1&m&&(o.j41(0,"div",3),o.DNE(1,U,12,6,"ng-container",4),o.nI1(2,"ngrxPush"),o.k0s(),o.DNE(3,W,1,0,"ng-template",null,0,o.C5r)(5,v,1,0,"ng-template",null,1,o.C5r)),2&m&&(o.R7$(),o.Y8G("ngIf",o.bMT(2,1,h.org$)))},dependencies:[r.bT,w.cK,_.Uq,_.e,$.xA,$.gr,x.a,P.G,G.L9],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}"]})}return g})();function C(g,S){}function b(g,S){if(1&g&&(o.qex(0),o.j41(1,"a",5),o.DNE(2,C,0,0,"ng-template",6),o.k0s(),o.bVm()),2&g){const c=o.XpG(),m=o.sdS(2);o.R7$(),o.Mz_("routerLink","/organizations/",c.org.id,""),o.R7$(),o.Y8G("ngTemplateOutlet",m)}}function Y(g,S){}function j(g,S){if(1&g&&o.nrm(0,"cvc-organization-popover",9),2&g){const c=o.XpG(3);o.Y8G("orgId",c.org.id)}}function X(g,S){if(1&g&&o.DNE(0,j,1,1,"cvc-organization-popover",8),2&g){const c=o.XpG(2);o.Y8G("ngIf",c.enablePopover)}}function J(g,S){if(1&g&&(o.j41(0,"nz-tag",7),o.DNE(1,Y,0,0,"ng-template",6),o.k0s(),o.DNE(2,X,1,1,"ng-template",null,3,o.C5r)),2&g){const c=o.sdS(3);o.XpG();const m=o.sdS(6);o.Y8G("nzPopoverContent",c),o.R7$(),o.Y8G("ngTemplateOutlet",m)}}function Z(g,S){}function q(g,S){if(1&g&&o.DNE(0,Z,0,0,"ng-template",6),2&g){o.XpG();const c=o.sdS(2);o.Y8G("ngTemplateOutlet",c)}}function tt(g,S){if(1&g&&(o.nrm(0,"i",10),o.EFF(1)),2&g){const c=o.XpG();o.R7$(),o.SpI(" ",c.org.name,"\n")}}let et=(()=>{class g{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(m){return new(m||g)};static#e=this.\u0275cmp=o.VBU({type:g,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(m,h){if(1&m&&o.DNE(0,b,3,3,"ng-container",4)(1,J,4,2,"ng-template",null,0,o.C5r)(3,q,1,1,"ng-template",null,1,o.C5r)(5,tt,2,1,"ng-template",null,2,o.C5r),2&m){const y=o.sdS(4);o.Y8G("ngIf",h.linked)("ngIfElse",y)}},dependencies:[r.bT,r.T3,p.Wk,t.s,D.Dn,u.L_,O],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return g})()},8920:(A,M,i)=>{i.d(M,{U:()=>$});var o=i(177),r=i(1188),p=i(5699),t=i(5103),D=i(7529),u=i(7054),z=i(2e3),E=i(5703),I=i(3357),f=i(3953);let w=(()=>{class x{static#t=this.\u0275fac=function(R){return new(R||x)};static#e=this.\u0275mod=f.$C({type:x});static#n=this.\u0275inj=f.G2t({imports:[o.MD,E.Ti,D.f3,z.WF,u.L,I.P]})}return x})();var _=i(1236);let $=(()=>{class x{static#t=this.\u0275fac=function(R){return new(R||x)};static#e=this.\u0275mod=f.$C({type:x});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,p.T,t.Y3,_.MC,w]})}return x})()},959:(A,M,i)=>{i.d(M,{j:()=>D});var o=i(3953),r=i(3100),p=i(3245),t=i(4247);let D=(()=>{class u{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(I){return new(I||u)};static#e=this.\u0275cmp=o.VBU({type:u,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(I,f){1&I&&(o.j41(0,"cvc-tag-group"),o.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),o.k0s()),2&I&&(o.R7$(),o.Y8G("feature",f.feature)("enablePopover",f.enablePopover)("truncateLongName",f.truncateLongName),o.R7$(),o.Y8G("variant",f.variant)("enablePopover",f.enablePopover)("truncateLongName",f.truncateLongName))},dependencies:[r.V,p._,t.L],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})}return u})()},7086:(A,M,i)=>{i.d(M,{C:()=>w});var o=i(177),r=i(1188),p=i(5699),t=i(5103),D=i(1236),u=i(4917),z=i(7051),E=i(6912),I=i(2502),f=i(3953);let w=(()=>{class _{static#t=this.\u0275fac=function(P){return new(P||_)};static#e=this.\u0275mod=f.$C({type:_});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,p.T,D.MC,t.Y3,u.i,z.U,E.l,I.u]})}return _})()},8238:(A,M,i)=>{i.d(M,{S:()=>S});var o=i(505),r=i(3953),p=i(177),t=i(1188),D=i(1236),u=i(5699),z=i(5103),E=i(9199),I=i(6354),f=i(5964),w=i(9145),_=i(5703),$=i(2e3),x=i(9062),P=i(959),G=i(7855),R=i(1774),N=i(3075);function F(c,m){if(1&c&&(r.nrm(0,"i",7),r.nI1(1,"entityColor"),r.EFF(2)),2&c){const h=r.XpG().ngIf;r.Y8G("nzTwotoneColor",r.bMT(1,2,"VariantGroup")),r.R7$(2),r.SpI(" ",h.name," ")}}function B(c,m){if(1&c&&r.nrm(0,"cvc-feature-variant-tag",10),2&c){const h=m.$implicit;r.Y8G("enablePopover",!1)("variant",h.node)}}function U(c,m){if(1&c&&(r.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),r.DNE(2,B,1,2,"cvc-feature-variant-tag",9),r.k0s()()),2&c){const h=r.XpG().ngIf;r.R7$(2),r.Y8G("ngForOf",h.variants.edges)}}function W(c,m){if(1&c&&r.nrm(0,"cvc-source-tag",13),2&c){const h=m.$implicit;r.Y8G("enablePopover",!1)("source",h)}}function v(c,m){if(1&c&&(r.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),r.DNE(2,W,1,2,"cvc-source-tag",12),r.k0s()()),2&c){const h=r.XpG().ngIf;r.R7$(2),r.Y8G("ngForOf",h.sources)}}function O(c,m){if(1&c&&(r.qex(0),r.j41(1,"nz-card",3),r.DNE(2,F,3,4,"ng-template",null,0,r.C5r),r.EFF(4),r.j41(5,"nz-descriptions",4),r.DNE(6,U,3,1,"nz-descriptions-item",5)(7,v,3,1,"nz-descriptions-item",6),r.k0s()(),r.bVm()),2&c){const h=m.ngIf,y=r.sdS(3);r.R7$(),r.Y8G("nzTitle",y),r.R7$(3),r.SpI(" ",h.description," "),r.R7$(),r.Y8G("nzColumn",2),r.R7$(),r.Y8G("ngIf",h.variants.edges.length>0),r.R7$(),r.Y8G("ngIf",h.sources.length>0)}}let C=(()=>{class c{constructor(h){this.gql=h}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,I.T)(({data:h})=>h?.variantGroup),(0,f.p)(E.kP))}static#t=this.\u0275fac=function(y){return new(y||c)(r.rXU(w.gwr))};static#e=this.\u0275cmp=r.VBU({type:c,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(y,V){1&y&&(r.j41(0,"div",1),r.DNE(1,O,8,5,"ng-container",2),r.nI1(2,"ngrxPush"),r.k0s()),2&y&&(r.R7$(),r.Y8G("ngIf",r.bMT(2,1,V.variantGroup$)))},dependencies:[p.Sq,p.bT,_.cK,$.xA,$.gr,z.Dn,x.D,P.j,G.M,R.L9,N.R],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}"]})}return c})();var b=i(2387);function Y(c,m){}function j(c,m){if(1&c&&(r.qex(0),r.j41(1,"a",5),r.DNE(2,Y,0,0,"ng-template",6),r.k0s(),r.bVm()),2&c){const h=r.XpG(),y=r.sdS(2);r.R7$(),r.Y8G("routerLink",h.variantgroup.link),r.R7$(),r.Y8G("ngTemplateOutlet",y)}}function X(c,m){}function J(c,m){if(1&c&&r.nrm(0,"cvc-variant-group-popover",9),2&c){const h=r.XpG(3);r.Y8G("variantGroupId",h.variantgroup.id)}}function Z(c,m){if(1&c&&r.DNE(0,J,1,1,"cvc-variant-group-popover",8),2&c){const h=r.XpG(2);r.Y8G("ngIf",h.enablePopover)}}function q(c,m){if(1&c&&(r.j41(0,"nz-tag",7),r.DNE(1,X,0,0,"ng-template",6),r.k0s(),r.DNE(2,Z,1,1,"ng-template",null,3,r.C5r)),2&c){const h=r.sdS(3),y=r.XpG(),V=r.sdS(6);r.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",h)("nzPopoverTrigger",y.enablePopover?"hover":null),r.R7$(),r.Y8G("ngTemplateOutlet",V)}}function tt(c,m){}function et(c,m){if(1&c&&r.DNE(0,tt,0,0,"ng-template",6),2&c){r.XpG();const h=r.sdS(2);r.Y8G("ngTemplateOutlet",h)}}function g(c,m){if(1&c&&(r.j41(0,"cvc-icon-badges",10),r.nrm(1,"i",11),r.nI1(2,"entityColor"),r.k0s(),r.EFF(3)),2&c){const h=r.XpG();r.Y8G("flagged",h.variantgroup.flagged)("entityColor",h.iconColor),r.R7$(),r.Y8G("nzTwotoneColor",r.bMT(2,4,"VariantGroup")),r.R7$(2),r.SpI(" ",h.variantgroup.name,"\n")}}let S=(()=>{class c{set variantgroup(h){if(!h)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=h}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,o.P)("VariantGroup")}static#t=this.\u0275fac=function(y){return new(y||c)};static#e=this.\u0275cmp=r.VBU({type:c,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(y,V){if(1&y&&r.DNE(0,j,3,2,"ng-container",4)(1,q,4,4,"ng-template",null,0,r.C5r)(3,et,1,1,"ng-template",null,1,r.C5r)(5,g,4,6,"ng-template",null,2,r.C5r),2&y){const H=r.sdS(4);r.Y8G("ngIf",V.linked)("ngIfElse",H)}},dependencies:[p.bT,p.T3,t.Wk,D.L_,u.s,z.Dn,C,b.N,N.R],encapsulation:2,changeDetection:0})}return c})()},8134:(A,M,i)=>{i.d(M,{l:()=>P});var o=i(177),r=i(1188),p=i(1236),t=i(5699),D=i(5103),u=i(7086),z=i(2142),E=i(1209),I=i(4917),f=i(5703),w=i(2e3),_=i(3953);let $=(()=>{class G{static#t=this.\u0275fac=function(F){return new(F||G)};static#e=this.\u0275mod=_.$C({type:G});static#n=this.\u0275inj=_.G2t({imports:[o.MD,f.Ti,w.WF,D.Y3,E.k,u.C,z.x,I.i]})}return G})();var x=i(4994);let P=(()=>{class G{static#t=this.\u0275fac=function(F){return new(F||G)};static#e=this.\u0275mod=_.$C({type:G});static#n=this.\u0275inj=_.G2t({imports:[o.MD,r.iI,p.MC,t.T,D.Y3,$,I.i,x.a]})}return G})()},3824:(A,M,i)=>{i.r(M),i.d(M,{WelcomeModule:()=>Se});var o=i(1188),r=i(9145),p=i(6354),t=i(3953),D=i(1626),u=i(177),z=i(7529),E=i(4707),I=i(7336),f=i(1413),w=i(3726),_=i(6977),$=i(152),x=i(3294),P=i(6042),G=i(6860),R=i(1025),N=i(5979),F=i(8203);const B=["slickList"],U=["slickTrack"],W=["*"],v=e=>({$implicit:e});function O(e,a){}function C(e,a){if(1&e){const n=t.RV6();t.j41(0,"li",9),t.bIt("click",function(){const l=t.eBV(n).$index,d=t.XpG(2);return t.Njj(d.onLiClick(l))}),t.DNE(1,O,0,0,"ng-template",10),t.k0s()}if(2&e){const n=a.$index,s=t.XpG(2),l=t.sdS(8);t.AVh("slick-active",n===s.activeIndex),t.R7$(),t.Y8G("ngTemplateOutlet",s.nzDotRender||l)("ngTemplateOutletContext",t.eq3(4,v,n))}}function b(e,a){if(1&e&&(t.j41(0,"ul",7),t.Z7z(1,C,2,6,"li",8,t.fX1),t.k0s()),2&e){const n=t.XpG();t.AVh("slick-dots-top","top"===n.nzDotPosition)("slick-dots-bottom","bottom"===n.nzDotPosition)("slick-dots-left","left"===n.nzDotPosition)("slick-dots-right","right"===n.nzDotPosition),t.R7$(),t.Dyx(n.carouselContents)}}function Y(e,a){if(1&e&&(t.j41(0,"button"),t.EFF(1),t.k0s()),2&e){const n=a.$implicit;t.R7$(),t.JRh(n+1)}}let j=(()=>{class e{set isActive(n){this._active=n,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(n,s){this.renderer=s,this._active=!1,this.el=n.nativeElement}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(t.aKT),t.rXU(t.sFG))};static#e=this.\u0275dir=t.FsC({type:e,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"],standalone:!0})}return e})();class X{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(a,n,s,l,d){this.cdr=n,this.renderer=s,this.platform=l,this.options=d,this.carouselComponent=a}withCarouselContents(a){const n=this.carouselComponent;if(this.slickListEl=n.slickListEl,this.slickTrackEl=n.slickTrackEl,this.contents=a?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const s=n.el.getBoundingClientRect();this.unitWidth=s.width,this.unitHeight=s.height}else a?.forEach((s,l)=>{0===l?this.renderer.setStyle(s.el,"width","100%"):this.renderer.setStyle(s.el,"display","none")})}dragging(a){}dispose(){}getFromToInBoundary(a,n){const s=this.maxIndex+1;return{from:(a+s)%s,to:(n+s)%s}}}class J extends X{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((n,s)=>{this.renderer.setStyle(n.el,"opacity",this.carouselComponent.activeIndex===s?"1":"0"),this.renderer.setStyle(n.el,"position","relative"),this.renderer.setStyle(n.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(n.el,"left",-this.unitWidth*s+"px"),this.renderer.setStyle(n.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,n){const{to:s}=this.getFromToInBoundary(a,n),l=new f.B;return this.contents.forEach((d,k)=>{this.renderer.setStyle(d.el,"opacity",s===k?"1":"0")}),setTimeout(()=>{l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l}dispose(){this.contents.forEach(a=>{this.renderer.setStyle(a.el,"transition",null),this.renderer.setStyle(a.el,"opacity",null),this.renderer.setStyle(a.el,"width",null),this.renderer.setStyle(a.el,"left",null)}),super.dispose()}}class Z extends X{get vertical(){return this.carouselComponent.vertical}constructor(a,n,s,l,d){super(a,n,s,l,d),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(a){super.withCarouselContents(a);const s=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, ${-s*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(${-s*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(a,n){const{to:s}=this.getFromToInBoundary(a,n),l=new f.B;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,n):this.horizontalTransform(a,n),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(d=>{this.renderer.setStyle(d.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-s*this.unitHeight}px, 0)`:`translate3d(${-s*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l.asObservable()}dragging(a){if(this.isTransitioning)return;const n=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareVerticalContext(!0):0===n&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-n*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareHorizontalContext(!0):0===n&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-n*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,n){const{from:s,to:l}=this.getFromToInBoundary(a,n);this.length>2&&n!==l?(this.prepareVerticalContext(l2&&n!==l?(this.prepareHorizontalContext(l{class e{set nzDotPosition(n){this._dotPosition=n,this.vertical="left"===n||"right"===n}get nzDotPosition(){return this._dotPosition}constructor(n,s,l,d,k,L,K,dt,gt,ht,mt){this.nzConfigService=s,this.ngZone=l,this.renderer=d,this.cdr=k,this.platform=L,this.resizeService=K,this.nzDragService=dt,this.nzResizeObserver=gt,this.directionality=ht,this.customStrategies=mt,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.bkB,this.nzAfterChange=new t.bkB,this.activeIndex=0,this.vertical=!1,this.dir="ltr",this.destroy$=new f.B,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=T=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-T:T)},this.pointerDown=T=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(T).subscribe(Q=>{this.pointerDelta=Q,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const Q=this.pointerDelta?this.pointerDelta.x:0;Math.abs(Q)>this.gestureRect.width/3&&(this.nzLoop||Q<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(Q>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=n.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,_.Q)(this.destroy$)).subscribe(n=>{this.dir=n,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,w.R)(this.slickListEl,"keydown").pipe((0,_.Q)(this.destroy$)).subscribe(n=>{const{keyCode:s}=n;s!==I.UQ&&s!==I.LE||(n.preventDefault(),this.ngZone.run(()=>{s===I.UQ?this.pre():this.next(),this.cdr.markForCheck()}))})}),this.nzResizeObserver.observe(this.el).pipe((0,$.B)(100),(0,x.F)(),(0,_.Q)(this.destroy$)).subscribe(()=>{this.layout()})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,_.Q)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(n){const{nzEffect:s,nzDotPosition:l}=n;s&&!s.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(n){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||n>=0&&n{this.scheduleNextTransition(),this.nzAfterChange.emit(d),this.isTransiting=!1}),this.markContentActive(d),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const n=this.customStrategies?this.customStrategies.find(s=>s.name===this.nzEffect):null;this.strategy=n?new n.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new Z(this,this.cdr,this.renderer,this.platform):new J(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=void 0)}markContentActive(n){this.activeIndex=n,this.carouselContents&&this.carouselContents.forEach((s,l)=>{s.isActive="rtl"===this.dir?n===this.carouselContents.length-1-l:n===l}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(t.aKT),t.rXU(P.yx),t.rXU(t.SKi),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(G.OD),t.rXU(R.cB),t.rXU(R.qH),t.rXU(N.xH),t.rXU(F.dS,8),t.rXU(q,8))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["nz-carousel"]],contentQueries:function(s,l,d){if(1&s&&t.wni(d,j,4),2&s){let k;t.mGM(k=t.lsd())&&(l.carouselContents=k)}},viewQuery:function(s,l){if(1&s&&(t.GBs(B,7),t.GBs(U,7)),2&s){let d;t.mGM(d=t.lsd())&&(l.slickList=d.first),t.mGM(d=t.lsd())&&(l.slickTrack=d.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(s,l){2&s&&t.AVh("ant-carousel-vertical",l.vertical)("ant-carousel-rtl","rtl"===l.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:[2,"nzEnableSwipe","nzEnableSwipe",t.L39],nzDots:[2,"nzDots","nzDots",t.L39],nzAutoPlay:[2,"nzAutoPlay","nzAutoPlay",t.L39],nzAutoPlaySpeed:[2,"nzAutoPlaySpeed","nzAutoPlaySpeed",t.Udg],nzTransitionSpeed:[2,"nzTransitionSpeed","nzTransitionSpeed",t.Udg],nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:W,decls:9,vars:3,consts:[["slickList",""],["slickTrack",""],["renderDotTemplate",""],[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],[1,"slick-track"],[1,"slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right"],[1,"slick-dots"],[3,"slick-active"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(s,l){if(1&s){const d=t.RV6();t.NAR(),t.j41(0,"div",3)(1,"div",4,0),t.bIt("mousedown",function(L){return t.eBV(d),t.Njj(l.pointerDown(L))})("touchstart",function(L){return t.eBV(d),t.Njj(l.pointerDown(L))}),t.j41(3,"div",5,1),t.SdG(5),t.k0s()(),t.DNE(6,b,3,8,"ul",6),t.k0s(),t.DNE(7,Y,2,1,"ng-template",null,2,t.C5r)}2&s&&(t.AVh("slick-vertical","left"===l.nzDotPosition||"right"===l.nzDotPosition),t.R7$(6),t.vxM(l.nzDots?6:-1))},dependencies:[u.T3],encapsulation:2,changeDetection:0})}return(0,E.Cg)([(0,P.H4)()],e.prototype,"nzEffect",void 0),(0,E.Cg)([(0,P.H4)()],e.prototype,"nzEnableSwipe",void 0),(0,E.Cg)([(0,P.H4)()],e.prototype,"nzDots",void 0),(0,E.Cg)([(0,P.H4)()],e.prototype,"nzAutoPlay",void 0),(0,E.Cg)([(0,P.H4)()],e.prototype,"nzAutoPlaySpeed",void 0),(0,E.Cg)([(0,P.H4)()],e.prototype,"nzLoop",void 0),(0,E.Cg)([(0,P.H4)()],e.prototype,"nzDotPosition",null),e})(),g=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({})}return e})();var m=i(5703),h=i(7685),y=i(7391),V=i(9199),H=i(5964),nt=i(4608),it=i(9417),lt=i(2269),rt=i(3190),ct=i(6389),ot=i(5103),ut=i(1774),Ct=i(3075);function zt(e,a){if(1&e){const n=t.RV6();t.j41(0,"nz-radio-group",14),t.mxI("ngModelChange",function(l){t.eBV(n);const d=t.XpG();return t.DH7(d.statsType,l)||(d.statsType=l),t.Njj(l)}),t.j41(1,"label",15),t.EFF(2,"Total"),t.k0s(),t.j41(3,"label",16),t.EFF(4,"Weekly"),t.k0s(),t.j41(5,"label",17),t.EFF(6,"Monthly"),t.k0s(),t.j41(7,"label",18),t.EFF(8,"Yearly"),t.k0s()()}if(2&e){const n=t.XpG();t.R50("ngModel",n.statsType)}}function Tt(e,a){1&e&&(t.nrm(0,"i",31),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Assertion"))}function yt(e,a){1&e&&(t.nrm(0,"i",32),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"EvidenceItem"))}function Et(e,a){1&e&&(t.nrm(0,"i",33),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Feature"))}function It(e,a){1&e&&(t.nrm(0,"i",34),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Variant"))}function xt(e,a){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"MolecularProfile"))}function St(e,a){1&e&&(t.nrm(0,"i",36),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Disease"))}function Pt(e,a){1&e&&(t.nrm(0,"i",37),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Therapy"))}function Gt(e,a){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Source"))}function Mt(e,a){1&e&&(t.nrm(0,"i",39),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Revision"))}function Dt(e,a){1&e&&(t.nrm(0,"i",40),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Curator"))}function bt(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",19)(2,"nz-col",20)(3,"a",21),t.nrm(4,"nz-statistic",22),t.nI1(5,"number"),t.DNE(6,Tt,2,3,"ng-template",null,2,t.C5r),t.k0s()(),t.j41(8,"nz-col",20)(9,"a",23),t.nrm(10,"nz-statistic",22),t.nI1(11,"number"),t.DNE(12,yt,2,3,"ng-template",null,3,t.C5r),t.k0s()(),t.j41(14,"nz-col",20)(15,"a",24),t.nrm(16,"nz-statistic",22),t.nI1(17,"number"),t.DNE(18,Et,2,3,"ng-template",null,4,t.C5r),t.k0s()(),t.j41(20,"nz-col",20)(21,"a",25),t.nrm(22,"nz-statistic",22),t.nI1(23,"number"),t.DNE(24,It,2,3,"ng-template",null,5,t.C5r),t.k0s()(),t.j41(26,"nz-col",20)(27,"a",26),t.nrm(28,"nz-statistic",22),t.nI1(29,"number"),t.DNE(30,xt,2,3,"ng-template",null,6,t.C5r),t.k0s()()(),t.j41(32,"nz-row",19)(33,"nz-col",20)(34,"a",27),t.nrm(35,"nz-statistic",22),t.nI1(36,"number"),t.DNE(37,St,2,3,"ng-template",null,7,t.C5r),t.k0s()(),t.j41(39,"nz-col",20)(40,"a",28),t.nrm(41,"nz-statistic",22),t.nI1(42,"number"),t.DNE(43,Pt,2,3,"ng-template",null,8,t.C5r),t.k0s()(),t.j41(45,"nz-col",20)(46,"a",29),t.nrm(47,"nz-statistic",22),t.nI1(48,"number"),t.DNE(49,Gt,2,3,"ng-template",null,9,t.C5r),t.k0s()(),t.j41(51,"nz-col",20),t.nrm(52,"nz-statistic",22),t.nI1(53,"number"),t.DNE(54,Mt,2,3,"ng-template",null,10,t.C5r),t.k0s(),t.j41(56,"nz-col",20)(57,"a",30),t.nrm(58,"nz-statistic",22),t.nI1(59,"number"),t.DNE(60,Dt,2,3,"ng-template",null,11,t.C5r),t.k0s()()(),t.bVm()),2&e){const n=a.ngIf,s=t.sdS(7),l=t.sdS(13),d=t.sdS(19),k=t.sdS(25),L=t.sdS(31),K=t.sdS(38),dt=t.sdS(44),gt=t.sdS(50),ht=t.sdS(55),mt=t.sdS(61),T=t.XpG();t.R7$(4),t.Y8G("nzTitle",T.label()+" Assertions")("nzValue",t.bMT(5,30,n.assertions[T.statsType]))("nzPrefix",s),t.R7$(6),t.Y8G("nzTitle",T.label()+" Evidence")("nzValue",t.bMT(11,32,n.evidenceItems[T.statsType]))("nzPrefix",l),t.R7$(6),t.Y8G("nzTitle",T.label()+" Features")("nzValue",t.bMT(17,34,n.features[T.statsType]))("nzPrefix",d),t.R7$(6),t.Y8G("nzTitle",T.label()+" Variants")("nzValue",t.bMT(23,36,n.variants[T.statsType]))("nzPrefix",k),t.R7$(6),t.Y8G("nzTitle",T.label()+" Molecular Profiles")("nzValue",t.bMT(29,38,n.molecularProfiles[T.statsType]))("nzPrefix",L),t.R7$(7),t.Y8G("nzTitle",T.label()+" Diseases")("nzValue",t.bMT(36,40,n.diseases[T.statsType]))("nzPrefix",K),t.R7$(6),t.Y8G("nzTitle",T.label()+" Therapies")("nzValue",t.bMT(42,42,n.therapies[T.statsType]))("nzPrefix",dt),t.R7$(6),t.Y8G("nzTitle",T.label()+" Sources")("nzValue",t.bMT(48,44,n.sources[T.statsType]))("nzPrefix",gt),t.R7$(5),t.Y8G("nzTitle",T.label()+" Revisions")("nzValue",t.bMT(53,46,n.revisions[T.statsType]))("nzPrefix",ht),t.R7$(6),t.Y8G("nzTitle",T.label()+" Contributors")("nzValue",t.bMT(59,48,n.users[T.statsType]))("nzPrefix",mt)}}function Ot(e,a){if(1&e&&(t.j41(0,"nz-row",19)(1,"nz-col",20),t.nrm(2,"nz-statistic",41),t.k0s(),t.j41(3,"nz-col",20),t.nrm(4,"nz-statistic",41),t.k0s(),t.j41(5,"nz-col",20),t.nrm(6,"nz-statistic",41),t.k0s(),t.j41(7,"nz-col",20),t.nrm(8,"nz-statistic",41),t.k0s(),t.j41(9,"nz-col",20),t.nrm(10,"nz-statistic",41),t.k0s()(),t.j41(11,"nz-row",19)(12,"nz-col",20),t.nrm(13,"nz-statistic",41),t.k0s(),t.j41(14,"nz-col",20),t.nrm(15,"nz-statistic",41),t.k0s(),t.j41(16,"nz-col",20),t.nrm(17,"nz-statistic",41),t.k0s(),t.j41(18,"nz-col",20),t.nrm(19,"nz-statistic",41),t.k0s(),t.j41(20,"nz-col",20),t.nrm(21,"nz-statistic",41),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("nzTitle",n.label()+" Assertions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Evidence")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Features")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Variants")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Molecular Profiles")("nzValue","--"),t.R7$(3),t.Y8G("nzTitle",n.label()+" Diseases")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Therapies")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Sources")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Revisions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Contributors")("nzValue","--")}}let kt=(()=>{class e{constructor(n){this.statsGql=n,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,nt.E)("loading"),(0,H.p)(V.kP)),this.stats$=this.response$.pipe((0,nt.E)("data","timepointStats"),(0,H.p)(V.kP))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(r.yoY))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["statsRadioGroup",""],["isLoading",""],["assertionIcon",""],["evidenceIcon",""],["featureIcon",""],["variantIcon",""],["mpIcon",""],["diseaseIcon",""],["therapyIcon",""],["sourceIcon",""],["revisionsIcon",""],["userIcon",""],["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],[4,"ngIf","ngIfElse"],["nzSize","small",3,"ngModelChange","ngModel"],["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"],["routerLink","/evidence"],["routerLink","/features"],["routerLink","/variants"],["routerLink","/molecular-profiles"],["routerLink","/diseases"],["routerLink","/therapies"],["routerLink","/sources"],["routerLink","/users"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",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(s,l){if(1&s&&(t.j41(0,"nz-card",12),t.DNE(1,zt,9,1,"ng-template",null,0,t.C5r)(3,bt,62,50,"ng-container",13),t.nI1(4,"ngrxPush"),t.DNE(5,Ot,22,20,"ng-template",null,1,t.C5r),t.k0s()),2&s){const d=t.sdS(2),k=t.sdS(6);t.Y8G("nzExtra",d),t.R7$(3),t.Y8G("ngIf",t.bMT(4,3,l.stats$))("ngIfElse",k)}},dependencies:[u.bT,it.BC,it.vS,o.Wk,lt.IV,z.Uq,z.e,m.cK,rt.lx,rt.i3,ct.c,ot.Dn,u.QX,ut.L9,Ct.R],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]})}return e})();var wt=i(5312),st=i(513),$t=i(5930),at=i(1672),Rt=i(9588);function Ft(e,a){if(1&e&&(t.qex(0),t.nrm(1,"cvc-event-timeline",9),t.bVm()),2&e){const n=t.XpG().ngIf,s=t.XpG(3);t.R7$(),t.Y8G("events",n)("tagDisplay",s.tagDisplay)}}function Vt(e,a){1&e&&(t.qex(0),t.j41(1,"button",10),t.EFF(2," See Full Activity Feed "),t.k0s(),t.bVm())}function Nt(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",2)(2,"nz-col",8),t.DNE(3,Ft,2,2,"ng-container",1)(4,Vt,3,0,"ng-container",7),t.nI1(5,"ngrxPush"),t.k0s()(),t.bVm()),2&e){const n=a.ngIf,s=t.XpG(3),l=t.sdS(3);t.R7$(),t.Y8G("nzGutter",16),t.R7$(2),t.Y8G("ngIf",n.length)("ngIfElse",l),t.R7$(),t.Y8G("ngIf",t.bMT(5,4,s.pageInfo$))}}function Lt(e,a){if(1&e&&(t.j41(0,"nz-card",6),t.DNE(1,Nt,6,6,"ng-container",7),t.nI1(2,"ngrxPush"),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("nzTitle",void 0),t.R7$(),t.Y8G("ngIf",t.bMT(2,2,n.events$))}}function Yt(e,a){1&e&&(t.qex(0),t.j41(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.DNE(4,Lt,3,4,"nz-card",5),t.k0s()()(),t.bVm()),2&e&&(t.R7$(),t.Y8G("nzGutter",16))}function At(e,a){1&e&&t.nrm(0,"nz-empty",11)}let jt=(()=>{class e{constructor(n){this.gql=n,this.pageSize=15,this.mode=r.Qt1.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:!1},this.queryRef=wt.c.production?this.gql.watch(this.initialQueryVars,{pollInterval:3e4}):this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.pageInfo)),this.events$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.edges.map(s=>s.node))),this.unfilteredCount$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.unfilteredCount))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(r.XxZ))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[["noEvents",""],[4,"ngIf","ngIfElse"],[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(s,l){if(1&s&&(t.DNE(0,Yt,5,1,"ng-container",1),t.nI1(1,"ngrxPush"),t.DNE(2,At,1,0,"ng-template",null,0,t.C5r)),2&s){const d=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,l.unfilteredCount$))("ngIfElse",d)}},dependencies:[u.bT,o.Wk,st.aO,ct.c,$t.p,m.cK,z.Uq,z.e,h.U5,h.Dq,at.RW,Rt.p,ut.L9],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}"]})}return e})();var vt=i(9448),ft=i(3384);const Bt=()=>[8,16];function Ut(e,a){1&e&&t.eu8(0)}function Wt(e,a){1&e&&t.eu8(0)}function Xt(e,a){1&e&&t.eu8(0)}function Ht(e,a){if(1&e&&t.EFF(0),2&e){const n=t.XpG().$implicit;t.SpI(" ",n.title," ")}}function Kt(e,a){if(1&e&&(t.j41(0,"span",13),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n.date)," ")}}function Qt(e,a){if(1&e&&t.nrm(0,"div",15),2&e){const n=t.XpG(2).$implicit;t.muq("background-image: url('",n.imageUrl,"')")}}function Jt(e,a){if(1&e&&t.DNE(0,Qt,1,3,"div",14),2&e){const n=t.XpG().$implicit;t.Y8G("ngIf",n.imageUrl)}}function Zt(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",n.text," ")}}function qt(e,a){if(1&e&&(t.nrm(0,"span",16),t.nI1(1,"nzSanitizer")),2&e){const n=t.XpG(2).$implicit;t.Y8G("innerHtml",t.i5U(1,1,n.htmlText,"html"),t.npT)}}function te(e,a){if(1&e&&t.DNE(0,Zt,2,1,"ng-container",7)(1,qt,2,4,"ng-template",null,6,t.C5r),2&e){const n=t.sdS(2),s=t.XpG().$implicit;t.Y8G("ngIf",s.text)("ngIfElse",n)}}function ee(e,a){if(1&e&&(t.qex(0),t.nrm(1,"nz-divider"),t.j41(2,"a",18),t.nrm(3,"i",19),t.EFF(4),t.k0s(),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(2),t.Y8G("href",n.link.url,t.B4B),t.R7$(2),t.SpI(" ",n.link.label?n.link.label:"More Information"," ")}}function ne(e,a){if(1&e&&t.DNE(0,ee,5,2,"ng-container",17),2&e){const n=t.XpG().$implicit;t.Y8G("ngIf",n.link&&n.link.url)}}function ie(e,a){if(1&e&&(t.j41(0,"nz-col",10)(1,"nz-card",11),t.DNE(2,Ut,1,0,"ng-container",12)(3,Wt,1,0,"ng-container",12)(4,Xt,1,0,"ng-container",12),t.k0s(),t.DNE(5,Ht,1,1,"ng-template",null,1,t.C5r)(7,Kt,3,3,"ng-template",null,2,t.C5r)(9,Jt,1,1,"ng-template",null,3,t.C5r)(11,te,3,2,"ng-template",null,4,t.C5r)(13,ne,1,1,"ng-template",null,5,t.C5r),t.k0s()),2&e){const n=t.sdS(6),s=t.sdS(8),l=t.sdS(10),d=t.sdS(12),k=t.sdS(14);t.R7$(),t.Y8G("nzTitle",n)("nzExtra",s),t.R7$(),t.Y8G("ngTemplateOutlet",l),t.R7$(),t.Y8G("ngTemplateOutlet",d),t.R7$(),t.Y8G("ngTemplateOutlet",k)}}function oe(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",8),t.DNE(2,ie,15,5,"nz-col",9),t.k0s(),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(2,Bt)),t.R7$(),t.Y8G("ngForOf",n.cvcNewsItems)}}function se(e,a){1&e&&t.nrm(0,"nz-empty")}let re=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[["newsEmpty",""],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["htmlText",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(s,l){if(1&s&&t.DNE(0,oe,3,3,"ng-container",7)(1,se,1,0,"ng-template",null,0,t.C5r),2&s){const d=t.sdS(2);t.Y8G("ngIf",l.cvcNewsItems)("ngIfElse",d)}},dependencies:[u.Sq,u.bT,u.T3,st.aO,ct.c,z.Uq,z.e,m.cK,y.Di,at.RW,vt.j,ot.Dn,u.vh,ft.ec],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}"]})}return e})();function ae(e,a){1&e&&(t.j41(0,"nz-carousel",6)(1,"div",7)(2,"h1"),t.EFF(3,"Welcome to CIViC"),t.k0s(),t.j41(4,"h2"),t.EFF(5," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.k0s()(),t.j41(6,"div",7)(7,"h1"),t.EFF(8," Discover supported clinical interpretations "),t.nrm(9,"br"),t.EFF(10," of mutations related to cancer. "),t.k0s()(),t.j41(11,"div",7)(12,"h1"),t.EFF(13," Participate with colleagues "),t.nrm(14,"br"),t.EFF(15,"to add variants and support "),t.nrm(16,"br"),t.EFF(17,"for cancer-related mutations. "),t.k0s()(),t.j41(18,"div",7)(19,"h1")(20,"a",8),t.EFF(21,"Become an Editor! "),t.nrm(22,"br"),t.EFF(23,"Help moderate updates to CIViC"),t.k0s()()()())}function le(e,a){1&e&&(t.j41(0,"nz-row")(1,"nz-col",4)(2,"nz-space",0),t.DNE(3,ae,24,0,"nz-carousel",5),t.k0s()()()),2&e&&(t.R7$(),t.Y8G("nzSpan",24))}function ce(e,a){1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4),t.nrm(2,"cvc-site-stats-card"),t.k0s()()),2&e&&(t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24))}function pe(e,a){if(1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",10),t.nrm(3,"cvc-news-item-list",11),t.k0s()(),t.j41(4,"nz-col",4)(5,"nz-card",12),t.nrm(6,"cvc-homepage-event-feed",13),t.k0s()()()),2&e){const n=t.XpG();t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",12),t.R7$(2),t.Y8G("cvcNewsItems",n.newsItems),t.R7$(),t.Y8G("nzSpan",12),t.R7$(2),t.Y8G("pageSize",45)}}function de(e,a){1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",14)(3,"p"),t.EFF(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.k0s(),t.j41(5,"p"),t.EFF(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.j41(7,"strong"),t.EFF(8,"IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.k0s(),t.EFF(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.k0s()()()()),2&e&&(t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24))}function ge(e,a){if(1&e&&(t.j41(0,"nz-row",16)(1,"div",17),t.EFF(2),t.nI1(3,"date"),t.j41(4,"a",18),t.EFF(5,"Release Notes"),t.k0s(),t.EFF(6," \u2022 "),t.j41(7,"a",19),t.EFF(8,"History"),t.k0s()()()),2&e){const n=t.XpG().ngIf;t.R7$(2),t.Lme(" CIViC ",n.name," (",t.bMT(3,3,n.published_at),") \u2022 "),t.R7$(2),t.Y8G("href",n.html_url,t.B4B)}}function he(e,a){1&e&&(t.qex(0),t.DNE(1,ge,9,5,"nz-row",15),t.bVm())}const me=[{path:"",component:(()=>{class e{constructor(n){this.http=n,this.feedMode=r.Qt1.Unscoped,this.newsItems=[{title:"Moving Beyond the Gene-Variant Data Model",date:"2024-09-16",htmlText:'Since its inception, CIViC\u2019s data model has revolved around curating variants present on specific genes. While this was simple and worked well, it did not allow us to capture the full breadth of clinically relevant variants in cancer. In order to support additional variant types, we have updated the data model to include what we are calling \u201cFeatures.\u201d

\n\n Instead of only being associated with a Gene, variants are now associated with a Feature. The first and most common Feature is still the Gene, but we are rolling out support for two additional Feature types: Factors and Fusions.

\n\n Factors can include genomic events that are not specific mutations such as Microsatellite Instability or Tumor Mutational Burden. Factors can be associated with terms from the NCI Thesaurus.

\n\n Meanwhile, our new Fusions model allows us to capture richer, more structured, data about the fusion partners and the fusion site at the exon level. Initially, we support a subset of the VICC Gene Fusion Specification with plans to support additional parts of the spec in the near future.'},{title:"2024 VICC/CIViC/ClinGen Cancer Variant Curation and Coding Unconference",date:"2024-08-04",imageUrl:"assets/images/cgc-hackathon-2024.jpg",htmlText:'CIViC, alongside VICC and ClinGen Somatic hosted the 5th Cancer Variant Curation and Coding Unconference before the Annual Cancer Genomics Consortium Conference in St. Louis. Scientists and developers gathered to discuss data standards, software improvements, and resource interoperability. Topics and summaries were posted online.'},{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,p.T)(n=>n[0]))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(D.Qq))};static#e=this.\u0275cmp=t.VBU({type:e,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(s,l){1&s&&(t.j41(0,"nz-space",0),t.DNE(1,le,4,1,"nz-row",1)(2,ce,3,2,"nz-row",2)(3,pe,7,5,"nz-row",2)(4,de,10,2,"nz-row",2)(5,he,2,0,"ng-container",3),t.nI1(6,"async"),t.k0s()),2&s&&(t.R7$(5),t.Y8G("ngIf",t.bMT(6,1,l.release$)))},dependencies:[u.bT,z.Uq,z.e,et,j,m.cK,h.U5,h.Dq,y.Di,kt,jt,re,u.Jj,u.vh],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}"]})}return e})()}];let ue=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[o.iI.forChild(me),o.iI]})}return e})();var ve=i(2617),_t=i(776),fe=i(1912),pt=i(4917);let _e=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,o.iI,lt.Fw,z.f3,m.Ti,rt.Sw,st.Zw,fe.i3,y.kT,ot.Y3,_t.s,pt.i]})}return e})();var Ce=i(8927),ze=i(7481),Te=i(1997),ye=i(2172),Ee=i(2968),Ie=i(9438);let xe=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,o.iI,st.Zw,m.Ti,ot.Y3,Ce.PQ,Te.DH,ze.$,z.f3,h.pc,at._v,Ie.Yb,ye.a,pt.i,Ee.K,pt.i]})}return e})(),Se=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,st.Zw,z.f3,g,m.Ti,ve.rD,rt.Sw,h.pc,lt.Fw,y.kT,at._v,ft.Qe,vt.g,ot.Y3,ue,_e,xe,_t.s]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/5528.a700c24685191052.js b/server/public/5528.2bc117ecfc08ac24.js similarity index 50% rename from server/public/5528.a700c24685191052.js rename to server/public/5528.2bc117ecfc08ac24.js index be2e6fff5..fefe82387 100644 --- a/server/public/5528.a700c24685191052.js +++ b/server/public/5528.2bc117ecfc08ac24.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5528],{8920:(R,P,e)=>{e.d(P,{U:()=>s});var n=e(177),m=e(1188),t=e(5699),x=e(5103),z=e(7529),C=e(7054),M=e(2e3),E=e(5703),f=e(3357),_=e(3953);let F=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,E.Ti,z.f3,M.WF,C.L,f.P]})}return d})();var D=e(1236);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,m.iI,t.T,x.Y3,D.MC,F]})}return d})()},959:(R,P,e)=>{e.d(P,{j:()=>z});var n=e(3953),m=e(3100),t=e(3245),x=e(4247);let z=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(f){return new(f||C)};static#n=this.\u0275cmp=n.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(f,_){1&f&&(n.j41(0,"cvc-tag-group"),n.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),n.k0s()),2&f&&(n.R7$(),n.Y8G("feature",_.feature)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName),n.R7$(),n.Y8G("variant",_.variant)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName))},dependencies:[m.V,t._,x.L],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})}return C})()},9129:(R,P,e)=>{e.d(P,{s:()=>D});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855);const C=s=>({"matched-tag":s});function M(s,d){if(1&s&&(n.j41(0,"span",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG();n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function E(s,d){if(1&s&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&s){const p=n.XpG(2);n.R7$(),n.SpI(" ",p.matchedHiddenCount," of ")}}function f(s,d){if(1&s&&(n.j41(0,"nz-tag",5),n.EFF(1," +"),n.DNE(2,E,2,1,"span",6),n.EFF(3),n.k0s()),2&s){const p=n.XpG(),h=n.sdS(5);n.Y8G("nzPopoverMouseEnterDelay",0)("nzPopoverContent",h),n.R7$(2),n.Y8G("ngIf",p.matchedHiddenCount>0),n.R7$(),n.SpI("",p.hiddenCount," ")}}function _(s,d){if(1&s&&(n.j41(0,"div",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG(2);n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function F(s,d){if(1&s&&(n.j41(0,"div",7)(1,"cvc-tag-list",1),n.DNE(2,_,3,4,"div",2),n.k0s()()),2&s){const p=n.XpG();n.R7$(2),n.Y8G("ngForOf",p.hiddenTags)}}let D=(()=>{class s{constructor(p){this.cdr=p,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(p){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 p=this.matchingText.toLowerCase();this.hiddenTags.forEach(h=>{h.toLowerCase().includes(p)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}static#t=this.\u0275fac=function(h){return new(h||s)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[n.OA$],decls:6,vars:5,consts:[["additionalTagPopover",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(h,O){1&h&&(n.j41(0,"cvc-tag-list",1),n.DNE(1,M,3,4,"span",2),n.j41(2,"span",3),n.DNE(3,f,4,4,"nz-tag",4),n.k0s(),n.DNE(4,F,3,1,"ng-template",null,0,n.C5r),n.k0s()),2&h&&(n.R7$(),n.Y8G("ngForOf",O.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,C,O.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",O.hiddenCount&&O.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,t.s,x.L_,z.M],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return s})()},5724:(R,P,e)=>{e.d(P,{T:()=>C});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(3953);let C=(()=>{class M{static#t=this.\u0275fac=function(_){return new(_||M)};static#n=this.\u0275mod=z.$C({type:M});static#e=this.\u0275inj=z.G2t({imports:[n.MD,t.T,x.MC,m.x]})}return M})()},6911:(R,P,e)=>{e.d(P,{U:()=>b});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855),C=e(9563),M=e(9861),E=e(6440),f=e(3245),_=e(3100),F=e(6073),D=e(959);const s=i=>({"matched-tag":i}),d=(i,u)=>({tagType:i,tag:u});function p(i,u){if(1&i&&(n.j41(0,"div",4),n.eu8(1,6),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(),I=n.sdS(7);n.Y8G("ngClass",n.eq3(3,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(5,d,T.tagType,c))}}function h(i,u){if(1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i){const c=n.XpG(2);n.R7$(),n.SpI(" ",c.matchedHiddenCount," of ")}}function O(i,u){if(1&i&&(n.j41(0,"nz-tag",7),n.EFF(1," +"),n.DNE(2,h,2,1,"span",8),n.EFF(3),n.k0s()),2&i){const c=n.XpG(),T=n.sdS(5);n.Y8G("nzPopoverContent",T),n.R7$(2),n.Y8G("ngIf",c.matchedHiddenCount>0),n.R7$(),n.SpI("",c.hiddenCount," ")}}function G(i,u){if(1&i&&(n.j41(0,"div",4),n.qex(1,10),n.eu8(2,6),n.bVm(),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(2),I=n.sdS(7);n.Y8G("ngClass",n.eq3(4,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngSwitch",T.tagType),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(6,d,T.tagType,c))}}function W(i,u){if(1&i&&(n.j41(0,"div",9)(1,"cvc-tag-list",2),n.DNE(2,G,3,9,"div",3),n.k0s()()),2&i){const c=n.XpG();n.R7$(2),n.Y8G("ngForOf",c.hiddenTags)}}function y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",12),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("therapy",c)("truncateLongName",!0)}}function Y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-disease-tag",13),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("disease",c)("truncateLongName",!0)}}function N(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-tag",14),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("feature",c)("truncateLongName",!0)}}function $(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-organization-tag",15),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("org",c)}}function K(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-tag",16),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variant",c)}}function S(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-type-tag",17),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variantType",c)}}function X(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-variant-tag",18),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("truncateLongName",!0)("variant",c)}}function H(i,u){1&i&&(n.qex(0,10),n.DNE(1,y,2,2,"ng-container",11)(2,Y,2,2,"ng-container",11)(3,N,2,2,"ng-container",11)(4,$,2,1,"ng-container",11)(5,K,2,1,"ng-container",11)(6,S,2,1,"ng-container",11)(7,X,2,2,"ng-container",11),n.bVm()),2&i&&(n.Y8G("ngSwitch",u.tagType),n.R7$(),n.Y8G("ngSwitchCase","therapy"),n.R7$(),n.Y8G("ngSwitchCase","disease"),n.R7$(),n.Y8G("ngSwitchCase","feature"),n.R7$(),n.Y8G("ngSwitchCase","organization"),n.R7$(),n.Y8G("ngSwitchCase","variant"),n.R7$(),n.Y8G("ngSwitchCase","variant-type"),n.R7$(),n.Y8G("ngSwitchCase","variant-feature"))}function j(i){return i?.map(u=>u.matchText?u:{...u,matchText:u.name})}let b=(()=>{class i{constructor(c){this.cdr=c,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(c){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 c=this.matchingText.toLowerCase();this.hiddenTags.forEach(T=>{T.matchText.toLowerCase().includes(c)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(T){return new(T||i)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:i,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",j],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.GFd,n.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[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,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(T,I){1&T&&(n.j41(0,"cvc-tag-list",2),n.DNE(1,p,2,8,"div",3),n.j41(2,"div",4),n.DNE(3,O,4,3,"nz-tag",5),n.k0s(),n.DNE(4,W,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(6,H,8,8,"ng-template",null,1,n.C5r)),2&T&&(n.R7$(),n.Y8G("ngForOf",I.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,s,I.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",I.hiddenCount&&I.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,m.T3,m.ux,m.e1,t.s,x.L_,z.M,C.R,M.Y,E.r,f._,_.V,F.h,D.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return i})()},9374:(R,P,e)=>{e.d(P,{r:()=>s});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(9192),C=e(8920),M=e(7051),E=e(9802),f=e(5493),_=e(6912),F=e(7086),D=e(3953);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=D.$C({type:d});static#e=this.\u0275inj=D.G2t({imports:[n.MD,t.T,x.MC,m.x,E._,z.J,C.U,_.l,M.U,f.G,F.C]})}return d})()},5493:(R,P,e)=>{e.d(P,{G:()=>D});var n=e(177),m=e(1188),t=e(5699),x=e(5703),z=e(7054),C=e(2e3),M=e(5103),E=e(4917),f=e(3953);let _=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,M.Y3,x.Ti,C.WF,E.i,z.L]})}return s})();var F=e(1236);let D=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,m.iI,M.Y3,t.T,F.MC,_]})}return s})()},5528:(R,P,e)=>{e.r(P),e.d(P,{FeaturesModule:()=>bt});var n=e(177),m=e(1188),t=e(3953);let x=(()=>{class o{constructor(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["app-features"]],decls:1,vars:0,template:function(l,r){1&l&&t.nrm(0,"router-outlet")},dependencies:[m.n3],encapsulation:2})}return o})();var z=e(9417),C=e(7874),M=e(9214),E=e(5724),f=e(4998),_=e(9374),F=e(4917),D=e(4256),s=e(4450),d=e(8252),p=e(513),h=e(5703),O=e(8927),G=e(5103),W=e(1011),y=e(9247),Y=e(5699),N=e(5154),$=e(7391),K=e(6912),S=e(1997);let X=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,z.YN,p.Zw,h.Ti,O.PQ,G.Y3,W.j,y.$G,Y.T,N.Qt,$.kT,S.DH,D.t,s.B,C.E,K.l,M.y,E.T,F.i,f.B,d.A,_.r]})}return o})();var H=e(4124),j=e(7529),b=e(3062),i=e(7685);let u=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,p.Zw,G.Y3,i.pc,$.kT,b.ZJ,j.f3,F.i,H.C,X]})}return o})();var c=e(6389),T=e(9765),I=e(1635),nt=e(9995),w=e(9145),L=e(9894),U=e(1413),tt=e(4412),J=e(9199),Q=e(3294),et=e(7048),at=e(5245),A=e(5964),Z=e(6354),ot=e(152),it=e(3993),B=e(4608),rt=e(1852),st=e(1405),lt=e(435),ct=e(3245),gt=e(3296),pt=e(9129),dt=e(3431),ht=e(2923),mt=e(6911),ut=e(1774);const _t=o=>({height:o}),vt=()=>[],Ct=()=>({x:"680px",y:"800px"}),V=()=>["descend","ascend",null];function ft(o,g){}function Tt(o,g){if(1&o&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ft,0,0,"ng-template",7),t.k0s(),t.bVm()),2&o){t.XpG();const a=t.sdS(4),l=t.sdS(6),r=t.sdS(8);t.R7$(),t.Y8G("nzTitle",l)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function zt(o,g){}function Mt(o,g){if(1&o&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,zt,0,0,"ng-template",7),t.k0s()()),2&o){const a=t.XpG(),l=t.sdS(4),r=t.sdS(6),v=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,_t,a.cvcHeight)),t.R7$(),t.Y8G("nzTitle",r)("nzExtra",v),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function Pt(o,g){if(1&o&&(t.j41(0,"tr",34)(1,"td",27),t.nrm(2,"cvc-feature-tag",35),t.k0s(),t.j41(3,"td")(4,"span",36),t.EFF(5),t.nI1(6,"titlecase"),t.k0s()(),t.j41(7,"td")(8,"span",37),t.EFF(9),t.nI1(10,"titlecase"),t.k0s()(),t.j41(11,"td"),t.nrm(12,"cvc-plain-tag-overflow",38),t.k0s(),t.j41(13,"td"),t.nrm(14,"cvc-tag-overflow",39),t.k0s(),t.j41(15,"td"),t.nrm(16,"cvc-tag-overflow",40),t.k0s(),t.j41(17,"td",41),t.EFF(18),t.k0s(),t.j41(19,"td",41),t.EFF(20),t.k0s(),t.j41(21,"td",41),t.EFF(22),t.k0s(),t.j41(23,"td",41),t.EFF(24),t.k0s()()),2&o){const a=g.$implicit,l=t.XpG(2);t.R7$(2),t.Y8G("feature",a),t.R7$(2),t.Y8G("nzEllipsis",!0),t.R7$(),t.SpI(" ",t.bMT(6,16,a.fullName)," "),t.R7$(4),t.SpI(" ",t.bMT(10,18,a.featureInstanceType)," "),t.R7$(3),t.Y8G("tags",a.featureAliases)("matchingText",l.aliasInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.diseases)("matchingText",l.diseaseInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.therapies)("matchingText",l.therapyInput),t.R7$(2),t.SpI(" ",a.molecularProfileCount," "),t.R7$(2),t.SpI(" ",a.variantCount," "),t.R7$(2),t.SpI(" ",a.evidenceItemCount," "),t.R7$(2),t.SpI(" ",a.assertionCount," ")}}function xt(o,g){if(1&o){const a=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.scrollEvent$.next(r))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.sortChange$.next(r))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Name "),t.k0s(),t.j41(10,"th",13),t.EFF(11," Full Name "),t.k0s(),t.j41(12,"th",14),t.EFF(13,"Type"),t.k0s(),t.j41(14,"th",15),t.EFF(15,"Aliases"),t.k0s(),t.j41(16,"th",16),t.EFF(17,"Diseases"),t.k0s(),t.j41(18,"th",17),t.EFF(19,"Therapies"),t.k0s(),t.j41(20,"th",18),t.nrm(21,"i",19),t.EFF(22," Count "),t.k0s(),t.j41(23,"th",20),t.nrm(24,"i",21),t.EFF(25," Count "),t.k0s(),t.j41(26,"th",22),t.nrm(27,"i",23),t.EFF(28," Count "),t.k0s(),t.j41(29,"th",24),t.nrm(30,"i",25),t.EFF(31," Count "),t.k0s()(),t.j41(32,"tr",26)(33,"th",27)(34,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.nameInput,r)||(v.nameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(35,"th",27)(36,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.fullNameInput,r)||(v.fullNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(37,"th")(38,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.typeInput,r)||(v.typeInput=r),t.Njj(r)}),t.nrm(39,"nz-option",30)(40,"nz-option",31),t.k0s()(),t.j41(41,"th")(42,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.aliasInput,r)||(v.aliasInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(43,"th")(44,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.diseaseInput,r)||(v.diseaseInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(45,"th")(46,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.therapyInput,r)||(v.therapyInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(47,"th",32)(48,"th",32)(49,"th",32)(50,"th",32),t.k0s()(),t.j41(51,"tbody"),t.DNE(52,Pt,25,20,"ng-template",33),t.k0s()()}if(2&o){const a=t.XpG();t.Y8G("nzData",t.bMT(2,36,a.row$)||t.lJ4(44,vt))("nzLoading",!t.bMT(3,38,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.bMT(4,40,a.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,42,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.lJ4(45,Ct))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",a.sortColumns.FeatureName)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.FeatureFullName)("nzSortFn",!0),t.R7$(10),t.Y8G("nzColumnKey",a.sortColumns.MolecularProfileCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(46,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(47,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(48,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(49,V)),t.R7$(5),t.R50("inputModel",a.nameInput),t.R7$(2),t.R50("inputModel",a.fullNameInput),t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",a.typeInput),t.R7$(),t.Y8G("nzValue",a.featureTypes.Gene),t.R7$(),t.Y8G("nzValue",a.featureTypes.Factor),t.R7$(2),t.R50("inputModel",a.aliasInput),t.R7$(2),t.R50("inputModel",a.diseaseInput),t.R7$(2),t.R50("inputModel",a.therapyInput)}}function Ot(o,g){}function Et(o,g){if(1&o&&(t.qex(0),t.DNE(1,Ot,0,0,"ng-template",7),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",a.cvcTitleTemplate)}}function yt(o,g){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.SpI(" ",a.cvcTitle," ")}}function Ft(o,g){if(1&o&&(t.DNE(0,Et,2,1,"ng-container",42)(1,yt,2,1,"ng-container",42),t.j41(2,"span",43),t.nrm(3,"cvc-table-counts",44),t.k0s()),2&o){const a=t.XpG();t.Y8G("ngIf",a.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",a.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",a.connection$)}}function Dt(o,g){1&o&&(t.j41(0,"nz-tag",47),t.nrm(1,"i",48),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function It(o,g){if(1&o&&(t.DNE(0,Dt,4,0,"nz-tag",45),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",46),t.nI1(3,"ngrxPush")),2&o){const a=t.XpG();t.Y8G("ngIf",t.bMT(1,2,a.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,a.noMoreRows$))}}let k=class q{set initialUserFilters(g){g&&Object.assign(this,g)}constructor(g,a){this.query=g,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.featureTypes=w.Xiu,this.sortColumns=w.Phy,this.debouncedQuery=new U.B,this.noMoreRows$=new tt.t(!1),this.scrollEvent$=new tt.t("stop"),this.sortChange$=new U.B,this.filterChange$=new U.B,this.scrollIndex$=new U.B}ngOnInit(){this.queryRef=this.query.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,et.v)(g=>!1!==g,!0)),this.moreLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,at.i)(2)),this.connection$=this.result$.pipe((0,B.E)("data","browseFeatures"),(0,A.p)(J.kP)),this.row$=this.connection$.pipe((0,B.E)("edges"),(0,A.p)(J.kP),(0,Z.T)(g=>g.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,B.E)("pageInfo"),(0,A.p)(J.kP)),this.sortChange$.pipe((0,L.s)(this)).subscribe(g=>{this.queryRef.refetch({sortBy:(0,nt.X)(g)})}),this.filterChange$.pipe((0,ot.B)(500),(0,L.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,Z.T)(g=>"stop"!==g),(0,Q.F)(),(0,L.s)(this)).subscribe(g=>{this.isScrolling=g,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.p)(g=>"bottom"===g),(0,it.E)(this.pageInfo$),(0,Z.T)(([g,a])=>a),(0,L.s)(this)).subscribe(g=>{g.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({featureName:this.nameInput,featureFullName:this.fullNameInput,featureAlias:this.aliasInput,diseaseName:this.diseaseInput,therapyName:this.therapyInput,featureType:this.typeInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}onModelUpdated(g){this.debouncedQuery.next()}trackByIndex(g,a){return a?.id}static#t=this.\u0275fac=function(a){return new(a||q)(t.rXU(w.UN$),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:q,selectors:[["cvc-features-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["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,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","70px"],["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,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Type",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","Gene",3,"nzValue"],["nzLabel","Factor",3,"nzValue"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"feature"],["nz-typography","","nzType","secondary",3,"nzEllipsis"],["nz-typography","","nz","","nzType","secondary"],[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(a,l){if(1&a&&t.DNE(0,Tt,3,3,"ng-container",5)(1,Mt,3,6,"ng-template",null,0,t.C5r)(3,xt,53,50,"ng-template",null,1,t.C5r)(5,Ft,4,3,"ng-template",null,2,t.C5r)(7,It,4,6,"ng-template",null,3,t.C5r),2&a){const r=t.sdS(2);t.Y8G("ngIf",!l.cvcHeight)("ngIfElse",r)}},dependencies:[n.bT,n.T3,n.B3,z.BC,z.vS,c.c,h.cK,G.Dn,y.CP,y.Cc,y.SO,y._4,y.IL,y.aj,y.kt,y.CC,y.OL,y.jc,Y.s,N.LH,$.Di,S.ld,S.WI,rt.M,st.s,lt.n,ct._,gt.M,pt.s,dt.y,ht.f,mt.U,n.PV,ut.L9],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})};k=(0,I.Cg)([(0,L.d)()],k);var Rt=e(3075);function Gt(o,g){1&o&&(t.j41(0,"a",13),t.nrm(1,"i",14),t.EFF(2," View Gene Model Docs "),t.k0s())}function $t(o,g){1&o&&(t.j41(0,"a",15),t.nrm(1,"i",14),t.EFF(2," View Gene Curation Docs "),t.k0s())}const St=[{path:"",component:x,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-features-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",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 Features"],["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(l,r){1&l&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Features"),t.k0s(),t.j41(10,"p",5),t.EFF(11," CIViC Features include a feature-level summary, a link to the Drug Gene InteractionDatabase, and extensive gene details from MyGene.info. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,Gt,3,0,"a",8)(15,$t,3,0,"a",9),t.k0s()()(),t.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),t.nrm(19,"cvc-features-table",12),t.k0s()()()()()),2&l&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,3,"Feature")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24))},dependencies:[p.aO,c.c,G.Dn,i.U5,i.Dq,$.Di,b.WB,b.zR,j.Uq,j.e,T.n,k,Rt.R],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}"]})}return o})(),data:{breadcrumb:"Home"}},{path:":featureId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(3967),e.e(1110),e.e(6508),e.e(6161),e.e(326),e.e(262),e.e(5384),e.e(2849),e.e(6390)]).then(e.bind(e,4741)).then(o=>o.FeaturesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(2076),e.e(4623)]).then(e.bind(e,4623)).then(o=>o.FeaturesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let jt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[m.iI.forChild(St),u,m.iI]})}return o})(),bt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,jt]})}return o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5528],{8920:(R,P,e)=>{e.d(P,{U:()=>s});var n=e(177),m=e(1188),t=e(5699),x=e(5103),z=e(7529),C=e(7054),M=e(2e3),E=e(5703),f=e(3357),_=e(3953);let F=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,E.Ti,z.f3,M.WF,C.L,f.P]})}return d})();var D=e(1236);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,m.iI,t.T,x.Y3,D.MC,F]})}return d})()},959:(R,P,e)=>{e.d(P,{j:()=>z});var n=e(3953),m=e(3100),t=e(3245),x=e(4247);let z=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(f){return new(f||C)};static#n=this.\u0275cmp=n.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(f,_){1&f&&(n.j41(0,"cvc-tag-group"),n.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),n.k0s()),2&f&&(n.R7$(),n.Y8G("feature",_.feature)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName),n.R7$(),n.Y8G("variant",_.variant)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName))},dependencies:[m.V,t._,x.L],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})}return C})()},9129:(R,P,e)=>{e.d(P,{s:()=>D});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855);const C=s=>({"matched-tag":s});function M(s,d){if(1&s&&(n.j41(0,"span",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG();n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function E(s,d){if(1&s&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&s){const p=n.XpG(2);n.R7$(),n.SpI(" ",p.matchedHiddenCount," of ")}}function f(s,d){if(1&s&&(n.j41(0,"nz-tag",5),n.EFF(1," +"),n.DNE(2,E,2,1,"span",6),n.EFF(3),n.k0s()),2&s){const p=n.XpG(),h=n.sdS(5);n.Y8G("nzPopoverMouseEnterDelay",0)("nzPopoverContent",h),n.R7$(2),n.Y8G("ngIf",p.matchedHiddenCount>0),n.R7$(),n.SpI("",p.hiddenCount," ")}}function _(s,d){if(1&s&&(n.j41(0,"div",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG(2);n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function F(s,d){if(1&s&&(n.j41(0,"div",7)(1,"cvc-tag-list",1),n.DNE(2,_,3,4,"div",2),n.k0s()()),2&s){const p=n.XpG();n.R7$(2),n.Y8G("ngForOf",p.hiddenTags)}}let D=(()=>{class s{constructor(p){this.cdr=p,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(p){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 p=this.matchingText.toLowerCase();this.hiddenTags.forEach(h=>{h.toLowerCase().includes(p)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}static#t=this.\u0275fac=function(h){return new(h||s)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[n.OA$],decls:6,vars:5,consts:[["additionalTagPopover",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(h,O){1&h&&(n.j41(0,"cvc-tag-list",1),n.DNE(1,M,3,4,"span",2),n.j41(2,"span",3),n.DNE(3,f,4,4,"nz-tag",4),n.k0s(),n.DNE(4,F,3,1,"ng-template",null,0,n.C5r),n.k0s()),2&h&&(n.R7$(),n.Y8G("ngForOf",O.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,C,O.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",O.hiddenCount&&O.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,t.s,x.L_,z.M],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return s})()},5724:(R,P,e)=>{e.d(P,{T:()=>C});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(3953);let C=(()=>{class M{static#t=this.\u0275fac=function(_){return new(_||M)};static#n=this.\u0275mod=z.$C({type:M});static#e=this.\u0275inj=z.G2t({imports:[n.MD,t.T,x.MC,m.x]})}return M})()},6911:(R,P,e)=>{e.d(P,{U:()=>b});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855),C=e(9563),M=e(9861),E=e(6440),f=e(3245),_=e(3100),F=e(6073),D=e(959);const s=i=>({"matched-tag":i}),d=(i,u)=>({tagType:i,tag:u});function p(i,u){if(1&i&&(n.j41(0,"div",4),n.eu8(1,6),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(),I=n.sdS(7);n.Y8G("ngClass",n.eq3(3,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(5,d,T.tagType,c))}}function h(i,u){if(1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i){const c=n.XpG(2);n.R7$(),n.SpI(" ",c.matchedHiddenCount," of ")}}function O(i,u){if(1&i&&(n.j41(0,"nz-tag",7),n.EFF(1," +"),n.DNE(2,h,2,1,"span",8),n.EFF(3),n.k0s()),2&i){const c=n.XpG(),T=n.sdS(5);n.Y8G("nzPopoverContent",T),n.R7$(2),n.Y8G("ngIf",c.matchedHiddenCount>0),n.R7$(),n.SpI("",c.hiddenCount," ")}}function G(i,u){if(1&i&&(n.j41(0,"div",4),n.qex(1,10),n.eu8(2,6),n.bVm(),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(2),I=n.sdS(7);n.Y8G("ngClass",n.eq3(4,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngSwitch",T.tagType),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(6,d,T.tagType,c))}}function W(i,u){if(1&i&&(n.j41(0,"div",9)(1,"cvc-tag-list",2),n.DNE(2,G,3,9,"div",3),n.k0s()()),2&i){const c=n.XpG();n.R7$(2),n.Y8G("ngForOf",c.hiddenTags)}}function y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",12),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("therapy",c)("truncateLongName",!0)}}function Y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-disease-tag",13),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("disease",c)("truncateLongName",!0)}}function N(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-tag",14),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("feature",c)("truncateLongName",!0)}}function $(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-organization-tag",15),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("org",c)}}function K(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-tag",16),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variant",c)}}function S(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-type-tag",17),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variantType",c)}}function X(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-variant-tag",18),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("truncateLongName",!0)("variant",c)}}function H(i,u){1&i&&(n.qex(0,10),n.DNE(1,y,2,2,"ng-container",11)(2,Y,2,2,"ng-container",11)(3,N,2,2,"ng-container",11)(4,$,2,1,"ng-container",11)(5,K,2,1,"ng-container",11)(6,S,2,1,"ng-container",11)(7,X,2,2,"ng-container",11),n.bVm()),2&i&&(n.Y8G("ngSwitch",u.tagType),n.R7$(),n.Y8G("ngSwitchCase","therapy"),n.R7$(),n.Y8G("ngSwitchCase","disease"),n.R7$(),n.Y8G("ngSwitchCase","feature"),n.R7$(),n.Y8G("ngSwitchCase","organization"),n.R7$(),n.Y8G("ngSwitchCase","variant"),n.R7$(),n.Y8G("ngSwitchCase","variant-type"),n.R7$(),n.Y8G("ngSwitchCase","variant-feature"))}function j(i){return i?.map(u=>u.matchText?u:{...u,matchText:u.name})}let b=(()=>{class i{constructor(c){this.cdr=c,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(c){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 c=this.matchingText.toLowerCase();this.hiddenTags.forEach(T=>{T.matchText.toLowerCase().includes(c)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(T){return new(T||i)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:i,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",j],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.GFd,n.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[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,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(T,I){1&T&&(n.j41(0,"cvc-tag-list",2),n.DNE(1,p,2,8,"div",3),n.j41(2,"div",4),n.DNE(3,O,4,3,"nz-tag",5),n.k0s(),n.DNE(4,W,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(6,H,8,8,"ng-template",null,1,n.C5r)),2&T&&(n.R7$(),n.Y8G("ngForOf",I.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,s,I.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",I.hiddenCount&&I.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,m.T3,m.ux,m.e1,t.s,x.L_,z.M,C.R,M.Y,E.r,f._,_.V,F.h,D.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return i})()},9374:(R,P,e)=>{e.d(P,{r:()=>s});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(9192),C=e(8920),M=e(7051),E=e(9802),f=e(5493),_=e(6912),F=e(7086),D=e(3953);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=D.$C({type:d});static#e=this.\u0275inj=D.G2t({imports:[n.MD,t.T,x.MC,m.x,E._,z.J,C.U,_.l,M.U,f.G,F.C]})}return d})()},5493:(R,P,e)=>{e.d(P,{G:()=>D});var n=e(177),m=e(1188),t=e(5699),x=e(5703),z=e(7054),C=e(2e3),M=e(5103),E=e(4917),f=e(3953);let _=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,M.Y3,x.Ti,C.WF,E.i,z.L]})}return s})();var F=e(1236);let D=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,m.iI,M.Y3,t.T,F.MC,_]})}return s})()},5528:(R,P,e)=>{e.r(P),e.d(P,{FeaturesModule:()=>bt});var n=e(177),m=e(1188),t=e(3953);let x=(()=>{class o{constructor(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["app-features"]],decls:1,vars:0,template:function(l,r){1&l&&t.nrm(0,"router-outlet")},dependencies:[m.n3],encapsulation:2})}return o})();var z=e(9417),C=e(7874),M=e(9214),E=e(5724),f=e(4998),_=e(9374),F=e(4917),D=e(4256),s=e(4450),d=e(8252),p=e(513),h=e(5703),O=e(8927),G=e(5103),W=e(1011),y=e(9247),Y=e(5699),N=e(5154),$=e(7391),K=e(6912),S=e(1997);let X=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,z.YN,p.Zw,h.Ti,O.PQ,G.Y3,W.j,y.$G,Y.T,N.Qt,$.kT,S.DH,D.t,s.B,C.E,K.l,M.y,E.T,F.i,f.B,d.A,_.r]})}return o})();var H=e(4124),j=e(7529),b=e(3062),i=e(7685);let u=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,p.Zw,G.Y3,i.pc,$.kT,b.ZJ,j.f3,F.i,H.C,X]})}return o})();var c=e(6389),T=e(9765),I=e(1635),nt=e(9995),w=e(9145),L=e(9894),U=e(1413),tt=e(4412),J=e(9199),Q=e(3294),et=e(7048),at=e(5245),A=e(5964),Z=e(6354),ot=e(152),it=e(3993),B=e(4608),rt=e(1852),st=e(1405),lt=e(435),ct=e(3245),gt=e(3296),pt=e(9129),dt=e(3431),ht=e(2923),mt=e(6911),ut=e(1774);const _t=o=>({height:o}),vt=()=>[],Ct=()=>({x:"680px",y:"800px"}),V=()=>["descend","ascend",null];function ft(o,g){}function Tt(o,g){if(1&o&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ft,0,0,"ng-template",7),t.k0s(),t.bVm()),2&o){t.XpG();const a=t.sdS(4),l=t.sdS(6),r=t.sdS(8);t.R7$(),t.Y8G("nzTitle",l)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function zt(o,g){}function Mt(o,g){if(1&o&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,zt,0,0,"ng-template",7),t.k0s()()),2&o){const a=t.XpG(),l=t.sdS(4),r=t.sdS(6),v=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,_t,a.cvcHeight)),t.R7$(),t.Y8G("nzTitle",r)("nzExtra",v),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function Pt(o,g){if(1&o&&(t.j41(0,"tr",35)(1,"td",27),t.nrm(2,"cvc-feature-tag",36),t.k0s(),t.j41(3,"td")(4,"span",37),t.EFF(5),t.nI1(6,"titlecase"),t.k0s()(),t.j41(7,"td")(8,"span",38),t.EFF(9),t.nI1(10,"titlecase"),t.k0s()(),t.j41(11,"td"),t.nrm(12,"cvc-plain-tag-overflow",39),t.k0s(),t.j41(13,"td"),t.nrm(14,"cvc-tag-overflow",40),t.k0s(),t.j41(15,"td"),t.nrm(16,"cvc-tag-overflow",41),t.k0s(),t.j41(17,"td",42),t.EFF(18),t.k0s(),t.j41(19,"td",42),t.EFF(20),t.k0s(),t.j41(21,"td",42),t.EFF(22),t.k0s(),t.j41(23,"td",42),t.EFF(24),t.k0s()()),2&o){const a=g.$implicit,l=t.XpG(2);t.R7$(2),t.Y8G("feature",a),t.R7$(2),t.Y8G("nzEllipsis",!0),t.R7$(),t.SpI(" ",t.bMT(6,16,a.fullName)," "),t.R7$(4),t.SpI(" ",t.bMT(10,18,a.featureInstanceType)," "),t.R7$(3),t.Y8G("tags",a.featureAliases)("matchingText",l.aliasInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.diseases)("matchingText",l.diseaseInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.therapies)("matchingText",l.therapyInput),t.R7$(2),t.SpI(" ",a.molecularProfileCount," "),t.R7$(2),t.SpI(" ",a.variantCount," "),t.R7$(2),t.SpI(" ",a.evidenceItemCount," "),t.R7$(2),t.SpI(" ",a.assertionCount," ")}}function xt(o,g){if(1&o){const a=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.scrollEvent$.next(r))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.sortChange$.next(r))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Name "),t.k0s(),t.j41(10,"th",13),t.EFF(11," Full Name "),t.k0s(),t.j41(12,"th",14),t.EFF(13,"Type"),t.k0s(),t.j41(14,"th",15),t.EFF(15,"Aliases"),t.k0s(),t.j41(16,"th",16),t.EFF(17,"Diseases"),t.k0s(),t.j41(18,"th",17),t.EFF(19,"Therapies"),t.k0s(),t.j41(20,"th",18),t.nrm(21,"i",19),t.EFF(22," Count "),t.k0s(),t.j41(23,"th",20),t.nrm(24,"i",21),t.EFF(25," Count "),t.k0s(),t.j41(26,"th",22),t.nrm(27,"i",23),t.EFF(28," Count "),t.k0s(),t.j41(29,"th",24),t.nrm(30,"i",25),t.EFF(31," Count "),t.k0s()(),t.j41(32,"tr",26)(33,"th",27)(34,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.nameInput,r)||(v.nameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(35,"th",27)(36,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.fullNameInput,r)||(v.fullNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(37,"th")(38,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.typeInput,r)||(v.typeInput=r),t.Njj(r)}),t.nrm(39,"nz-option",30)(40,"nz-option",31)(41,"nz-option",32),t.k0s()(),t.j41(42,"th")(43,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.aliasInput,r)||(v.aliasInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(44,"th")(45,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.diseaseInput,r)||(v.diseaseInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(46,"th")(47,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.therapyInput,r)||(v.therapyInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(48,"th",33)(49,"th",33)(50,"th",33)(51,"th",33),t.k0s()(),t.j41(52,"tbody"),t.DNE(53,Pt,25,20,"ng-template",34),t.k0s()()}if(2&o){const a=t.XpG();t.Y8G("nzData",t.bMT(2,37,a.row$)||t.lJ4(45,vt))("nzLoading",!t.bMT(3,39,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.bMT(4,41,a.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,43,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.lJ4(46,Ct))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",a.sortColumns.FeatureName)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.FeatureFullName)("nzSortFn",!0),t.R7$(10),t.Y8G("nzColumnKey",a.sortColumns.MolecularProfileCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(47,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(48,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(49,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(50,V)),t.R7$(5),t.R50("inputModel",a.nameInput),t.R7$(2),t.R50("inputModel",a.fullNameInput),t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",a.typeInput),t.R7$(),t.Y8G("nzValue",a.featureTypes.Gene),t.R7$(),t.Y8G("nzValue",a.featureTypes.Factor),t.R7$(),t.Y8G("nzValue",a.featureTypes.Fusion),t.R7$(2),t.R50("inputModel",a.aliasInput),t.R7$(2),t.R50("inputModel",a.diseaseInput),t.R7$(2),t.R50("inputModel",a.therapyInput)}}function Ot(o,g){}function Et(o,g){if(1&o&&(t.qex(0),t.DNE(1,Ot,0,0,"ng-template",7),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",a.cvcTitleTemplate)}}function yt(o,g){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.SpI(" ",a.cvcTitle," ")}}function Ft(o,g){if(1&o&&(t.DNE(0,Et,2,1,"ng-container",43)(1,yt,2,1,"ng-container",43),t.j41(2,"span",44),t.nrm(3,"cvc-table-counts",45),t.k0s()),2&o){const a=t.XpG();t.Y8G("ngIf",a.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",a.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",a.connection$)}}function Dt(o,g){1&o&&(t.j41(0,"nz-tag",48),t.nrm(1,"i",49),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function It(o,g){if(1&o&&(t.DNE(0,Dt,4,0,"nz-tag",46),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",47),t.nI1(3,"ngrxPush")),2&o){const a=t.XpG();t.Y8G("ngIf",t.bMT(1,2,a.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,a.noMoreRows$))}}let k=class q{set initialUserFilters(g){g&&Object.assign(this,g)}constructor(g,a){this.query=g,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.featureTypes=w.Xiu,this.sortColumns=w.Phy,this.debouncedQuery=new U.B,this.noMoreRows$=new tt.t(!1),this.scrollEvent$=new tt.t("stop"),this.sortChange$=new U.B,this.filterChange$=new U.B,this.scrollIndex$=new U.B}ngOnInit(){this.queryRef=this.query.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,et.v)(g=>!1!==g,!0)),this.moreLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,at.i)(2)),this.connection$=this.result$.pipe((0,B.E)("data","browseFeatures"),(0,A.p)(J.kP)),this.row$=this.connection$.pipe((0,B.E)("edges"),(0,A.p)(J.kP),(0,Z.T)(g=>g.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,B.E)("pageInfo"),(0,A.p)(J.kP)),this.sortChange$.pipe((0,L.s)(this)).subscribe(g=>{this.queryRef.refetch({sortBy:(0,nt.X)(g)})}),this.filterChange$.pipe((0,ot.B)(500),(0,L.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,Z.T)(g=>"stop"!==g),(0,Q.F)(),(0,L.s)(this)).subscribe(g=>{this.isScrolling=g,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.p)(g=>"bottom"===g),(0,it.E)(this.pageInfo$),(0,Z.T)(([g,a])=>a),(0,L.s)(this)).subscribe(g=>{g.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({featureName:this.nameInput,featureFullName:this.fullNameInput,featureAlias:this.aliasInput,diseaseName:this.diseaseInput,therapyName:this.therapyInput,featureType:this.typeInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}onModelUpdated(g){this.debouncedQuery.next()}trackByIndex(g,a){return a?.id}static#t=this.\u0275fac=function(a){return new(a||q)(t.rXU(w.UN$),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:q,selectors:[["cvc-features-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["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,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","70px"],["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,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Type",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","Gene",3,"nzValue"],["nzLabel","Factor",3,"nzValue"],["nzLabel","Fusion",3,"nzValue"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"feature"],["nz-typography","","nzType","secondary",3,"nzEllipsis"],["nz-typography","","nz","","nzType","secondary"],[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(a,l){if(1&a&&t.DNE(0,Tt,3,3,"ng-container",5)(1,Mt,3,6,"ng-template",null,0,t.C5r)(3,xt,54,51,"ng-template",null,1,t.C5r)(5,Ft,4,3,"ng-template",null,2,t.C5r)(7,It,4,6,"ng-template",null,3,t.C5r),2&a){const r=t.sdS(2);t.Y8G("ngIf",!l.cvcHeight)("ngIfElse",r)}},dependencies:[n.bT,n.T3,n.B3,z.BC,z.vS,c.c,h.cK,G.Dn,y.CP,y.Cc,y.SO,y._4,y.IL,y.aj,y.kt,y.CC,y.OL,y.jc,Y.s,N.LH,$.Di,S.ld,S.WI,rt.M,st.s,lt.n,ct._,gt.M,pt.s,dt.y,ht.f,mt.U,n.PV,ut.L9],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})};k=(0,I.Cg)([(0,L.d)()],k);var Rt=e(3075);function Gt(o,g){1&o&&(t.j41(0,"a",13),t.nrm(1,"i",14),t.EFF(2," View Gene Model Docs "),t.k0s())}function $t(o,g){1&o&&(t.j41(0,"a",15),t.nrm(1,"i",14),t.EFF(2," View Gene Curation Docs "),t.k0s())}const St=[{path:"",component:x,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-features-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",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 Features"],["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(l,r){1&l&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Features"),t.k0s(),t.j41(10,"p",5),t.EFF(11," CIViC Features include a feature-level summary, a link to the Drug Gene InteractionDatabase, and extensive gene details from MyGene.info. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,Gt,3,0,"a",8)(15,$t,3,0,"a",9),t.k0s()()(),t.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),t.nrm(19,"cvc-features-table",12),t.k0s()()()()()),2&l&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,3,"Feature")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24))},dependencies:[p.aO,c.c,G.Dn,i.U5,i.Dq,$.Di,b.WB,b.zR,j.Uq,j.e,T.n,k,Rt.R],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}"]})}return o})(),data:{breadcrumb:"Home"}},{path:":featureId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(3967),e.e(1110),e.e(6508),e.e(6161),e.e(326),e.e(262),e.e(5384),e.e(5958),e.e(445)]).then(e.bind(e,4817)).then(o=>o.FeaturesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(2076),e.e(424)]).then(e.bind(e,424)).then(o=>o.FeaturesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let jt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[m.iI.forChild(St),u,m.iI]})}return o})(),bt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,jt]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/5615.885b32b0e5e22600.js b/server/public/5615.eb9a848847a2a17d.js similarity index 99% rename from server/public/5615.885b32b0e5e22600.js rename to server/public/5615.eb9a848847a2a17d.js index 18030d3ba..2399f01d7 100644 --- a/server/public/5615.885b32b0e5e22600.js +++ b/server/public/5615.eb9a848847a2a17d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5615],{8476:(_,h,i)=>{i.d(h,{S:()=>c});var t=i(177),m=i(1188),s=i(5316),v=i(2229),a=i(513),n=i(776),f=i(3617),r=i(4531),l=i(3953);let c=(()=>{class d{static#e=this.\u0275fac=function(e){return new(e||d)};static#t=this.\u0275mod=l.$C({type:d});static#i=this.\u0275inj=l.G2t({imports:[t.MD,m.iI,a.Zw,f.$,v.m,s.P,r.C,n.s]})}return d})()},4594:(_,h,i)=>{i.d(h,{e:()=>D});var t=i(1635),m=i(9417),s=i(1226),v=i(9447),a=i(5540),n=i(9894),f=i(4902);const c=(0,i(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"New Evidence Item"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},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}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"description",type:"base-textarea",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",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}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!1,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item",align:"right"}}]}]}],f.r);var d=i(6354),I=i(5964),P=i(9199),e=i(3953),C=i(9145),T=i(1188),$=i(4222),M=i(177),A=i(3617),b=i(8524),F=i(8927),L=i(8721),w=i(8199),x=i(1774);const R=p=>["/evidence",p,"summary"];function q(p,o){if(1&p&&(e.EFF(0," View your new EID "),e.j41(1,"a",7),e.EFF(2,"here"),e.k0s(),e.EFF(3,". You will be redirected shortly. ")),2&p){const u=e.XpG();e.R7$(),e.Y8G("routerLink",e.eq3(1,R,u.newEvidenceId))}}function G(p,o){if(1&p&&e.nrm(0,"nz-alert",9),2&p){e.XpG();const u=e.sdS(3);e.Y8G("nzMessage",u)}}function N(p,o){if(1&p&&(e.j41(0,"p")(1,"strong"),e.EFF(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.k0s()(),e.nrm(3,"cvc-evidence-table",10)),2&p){const u=e.XpG(2);e.R7$(3),e.Y8G("molecularProfileId",u.selectedMpId)("sourceId",u.selectedSourceId)}}function V(p,o){if(1&p&&(e.qex(0),e.DNE(1,G,1,1,"nz-alert",8)(2,N,4,2,"ng-template",null,2,e.C5r),e.nrm(4,"br"),e.bVm()),2&p){const u=o.ngIf;e.R7$(),e.Y8G("ngIf",u>0)}}function U(p,o){if(1&p&&e.nrm(0,"nz-alert",9),2&p){e.XpG();const u=e.sdS(3);e.Y8G("nzMessage",u)}}function B(p,o){if(1&p&&(e.j41(0,"p")(1,"strong"),e.EFF(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.k0s()(),e.nrm(3,"cvc-evidence-table",11)),2&p){const u=e.XpG(2);e.R7$(3),e.Y8G("sourceId",u.selectedSourceId)}}function z(p,o){if(1&p&&(e.qex(0),e.DNE(1,U,1,1,"nz-alert",8)(2,B,4,1,"ng-template",null,3,e.C5r),e.nrm(4,"br"),e.bVm()),2&p){const u=o.ngIf;e.R7$(),e.Y8G("ngIf",u)}}function K(p,o){if(1&p){const u=e.RV6();e.j41(0,"form",12),e.bIt("ngSubmit",function(){e.eBV(u);const y=e.XpG();return e.Njj(y.onSubmit(y.model))}),e.j41(1,"formly-form",13),e.bIt("modelChange",function(y){e.eBV(u);const E=e.XpG();return E.model=y,e.Njj(E.onModelChange(y))}),e.k0s()()}if(2&p){const u=e.XpG();e.Y8G("formGroup",u.form),e.R7$(),e.Y8G("form",u.form)("fields",u.fields)("model",u.model)("options",u.options)}}function W(p,o){1&p&&e.EFF(0," Loading Evidence Item... ")}let D=class S{constructor(o,u,g,y,E,j,X){this.revisableFieldsGQL=o,this.submitEvidenceGQL=u,this.existingEvidenceGQL=g,this.fullyCuratedSourceGQL=y,this.cdr=E,this.route=j,this.form=new m.J3({}),this.fields=c,this.state=new v.D,this.options={formState:this.state},this.submitEvidenceMutator=new s.E(X),this.routeSub=this.route.queryParams.subscribe(O=>{O.existingEvidenceId?(this.existingEvidenceId=+O.existingEvidenceId,this.state.formMode="clone"):this.model={fields:{}}})}ngOnInit(){this.countQueryRef=this.existingEvidenceGQL.watch({molecularProfileId:0,sourceId:0}),this.curatedQueryRef=this.fullyCuratedSourceGQL.watch({sourceId:0}),this.existingEvidenceCount$=this.countQueryRef?.valueChanges.pipe((0,d.T)(o=>o.data?.evidenceItems?.totalCount),(0,I.p)(P.kP),(0,n.s)(this)),this.fullyCuratedSource$=this.curatedQueryRef?.valueChanges.pipe((0,d.T)(o=>o.data?.source?.fullyCurated),(0,n.s)(this))}ngAfterViewInit(){this.existingEvidenceId?this.revisableFieldsGQL.fetch({evidenceId:this.existingEvidenceId}).pipe((0,n.s)(this)).subscribe({next:({data:{evidenceItem:o}})=>{o&&(this.model={fields:(0,a.LC)(o)},this.model.fields.description=void 0,this.cdr.detectChanges())},error:o=>{console.error("Error retrieving evidenceItem."),console.error(o)},complete:()=>{this.state.formReady$.next(!0)}}):this.state.formReady$.next(!0)}onSubmit(o){const u=(0,a.kO)(o);u&&(this.mutationState=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:u},void 0,g=>{this.newEvidenceId=g.submitEvidence?.evidenceItem.id,this.newEvidenceUrl=`/evidence/${this.newEvidenceId}/summary`}))}onModelChange(o){o.fields.sourceId&&o.fields.molecularProfileId?(o.fields.sourceId!=this.selectedSourceId||o.fields.molecularProfileId!=this.selectedMpId)&&(this.selectedSourceId=o.fields.sourceId,this.selectedMpId=o.fields.molecularProfileId,this.countQueryRef?.refetch({molecularProfileId:o.fields.molecularProfileId,sourceId:o.fields.sourceId})):this.countQueryRef?.refetch({molecularProfileId:0,sourceId:0}),o.fields.sourceId?o.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=o.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()}static#e=this.\u0275fac=function(u){return new(u||S)(e.rXU(C.V1_),e.rXU(C.LXB),e.rXU(C.k1Y),e.rXU(C.aX5),e.rXU(e.gRc),e.rXU(T.nX),e.rXU($.N))};static#t=this.\u0275cmp=e.VBU({type:S,selectors:[["cvc-evidence-submit-form"]],decls:10,vars:11,consts:[["success",""],["loadingModel",""],["duplicateEvidenceAlert",""],["fullyCuratedAlert",""],["entityType","Evidence Item",3,"mutationState","redirectUrl","successMessage"],[4,"ngIf"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"routerLink"],["nzType","warning",3,"nzMessage",4,"ngIf"],["nzType","warning",3,"nzMessage"],["cvcHeight","150",3,"molecularProfileId","sourceId"],["cvcHeight","150",3,"sourceId"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(u,g){if(1&u&&(e.j41(0,"cvc-form-submission-status-display",4),e.DNE(1,q,4,3,"ng-template",null,0,e.C5r)(3,V,5,1,"ng-container",5),e.nI1(4,"ngrxPush"),e.DNE(5,z,5,1,"ng-container",5),e.nI1(6,"ngrxPush"),e.DNE(7,K,2,5,"form",6)(8,W,1,0,"ng-template",null,1,e.C5r),e.k0s()),2&u){const y=e.sdS(2),E=e.sdS(9);e.Y8G("mutationState",g.mutationState)("redirectUrl",g.newEvidenceUrl)("successMessage",y),e.R7$(3),e.Y8G("ngIf",e.bMT(4,7,g.existingEvidenceCount$)),e.R7$(2),e.Y8G("ngIf",e.bMT(6,9,g.fullyCuratedSource$)),e.R7$(2),e.Y8G("ngIf",g.model)("ngIfElse",E)}},dependencies:[M.bT,T.Wk,A.Y,m.qT,m.cb,m.j4,b.aF,F.CA,L.G,w.N,x.L9],encapsulation:2,changeDetection:0})};D=(0,t.Cg)([(0,n.d)()],D)},4902:(_,h,i)=>{i.d(h,{I:()=>t,r:()=>m});const t={featureId: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}},5183:(_,h,i)=>{i.d(h,{$L:()=>a,zn:()=>f});var t=i(896),m=i(9145),s=i(1413),v=i(1018),a=function(r){return r.EVIDENCE="Evidence",r.ASSERTION="Assertion",r}(a||{});class f{constructor(l){this.formReady$=new s.B,this.formLayout="vertical",this.formMode="add",this.validStates=new Map,this.typeOption$=new s.B,this.requiresTherapy$=new s.B,this.requiresDisease$=new s.B,this.requiresAcmgCode$=new s.B,this.requiresAmpLevel$=new s.B,this.requiresClingenCode$=new s.B,this.allowsFdaApproval$=new s.B,this.getTypeOptions=()=>this.entityName==a.ASSERTION?(0,v.KF)(m.XEW).map(c=>c):(0,v.KF)(m.M1P).map(c=>c),this.getSignificanceOptions=c=>this.validStates.get(c)?.significance||[],this.getInteractionOptions=()=>(0,v.KF)(m.qld).map(c=>c),this.isValidSignificanceOption=(c,d)=>{const I=this.validStates.get(c);return!I||I.significance.includes(d)},this.getDirectionOptions=c=>this.validStates.get(c)?.entityDirection||[],this.isValidDirectionOption=(c,d)=>{const I=this.validStates.get(c);return!I||I.entityDirection.includes(d)},this.requiresTherapy=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresTherapy},this.requiresDisease=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresDisease},this.requiresAcmgCodes=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresAcmgCodes},this.requiresAmpLevel=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresAmpLevel},this.requiresClingenCodes=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresClingenCodes},this.allowsFdaApproval=c=>{const d=this.validStates.get(c);return void 0===d||d.allowsFdaApproval},this.getOptionsFromEnums=c=>0===c.length?[]:c.map(d=>({value:d,label:(0,t.u)(d)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=l,this.pluralNames=new Map,this.pluralNames.set(a.ASSERTION,"Assertions"),this.pluralNames.set(a.EVIDENCE,"Evidence")}onDestroy(){}}},9447:(_,h,i)=>{i.d(h,{D:()=>n});var t=i(9145),m=i(9894),s=i(4412),v=i(4902),a=i(5183);class n extends a.zn{constructor(){super(a.$L.EVIDENCE);const r=v.I;this.fields={molecularProfileId$:new s.t(r.molecularProfileId),variantId$:new s.t(r.variantId),variantMolecularProfile$:new s.t(void 0),featureId$:new s.t(r.featureId),evidenceType$:new s.t(r.evidenceType),evidenceLevel$:new s.t(r.evidenceLevel),evidenceDirection$:new s.t(r.evidenceDirection),significance$:new s.t(r.significance),variantOrigin$:new s.t(r.variantOrigin),diseaseId$:new s.t(r.diseaseId),therapyIds$:new s.t(r.therapyIds),therapyInteractionType$:new s.t(r.therapyInteractionType),rating$:new s.t(r.rating),phenotypeIds$:new s.t(r.phenotypeIds),sourceId$:new s.t(r.sourceId),description$:new s.t(void 0),comment$:new s.t(void 0)},this.enums={entityType$:new s.t(this.getTypeOptions()),significance$:new s.t([]),direction$:new s.t([]),interaction$:new s.t(this.getInteractionOptions())},this.requires={requiresDisease$:new s.t(!1),requiresTherapy$:new s.t(!1),requiresTherapyInteractionType$:new s.t(!1),requiresClingenCodes$:new s.t(!1),requiresAcmgCodes$:new s.t(!1),requiresAmpLevel$:new s.t(!1),allowsFdaApproval$:new s.t(!1)},this.fields.evidenceType$.pipe((0,m.s)(this,"onDestroy")).subscribe(l=>{if(!l)return Object.entries(this.requires).forEach(([c,d])=>{d.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(l)),this.enums.direction$.next(this.getDirectionOptions(l)),this.requires.requiresDisease$.next(this.requiresDisease(l)),this.requires.requiresTherapy$.next(this.requiresTherapy(l)),this.requires.requiresTherapyInteractionType$.next(this.requiresTherapy(l)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(l)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(l)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(l))}),this.fields.therapyIds$.pipe((0,m.s)(this,"onDestroy")).subscribe(l=>{this.requires.requiresTherapyInteractionType$.next(!!l&&l.length>1)}),this.validStates.set(t.M1P.Predictive,{entityType:t.M1P.Predictive,significance:[t.Vue.Sensitivityresponse,t.Vue.Resistance,t.Vue.AdverseResponse,t.Vue.ReducedSensitivity,t.Vue.Na],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Diagnostic,{entityType:t.M1P.Diagnostic,significance:[t.Vue.Positive,t.Vue.Negative],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Prognostic,{entityType:t.M1P.Prognostic,significance:[t.Vue.BetterOutcome,t.Vue.PoorOutcome,t.Vue.Na],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Oncogenic,{entityType:t.M1P.Oncogenic,significance:[t.Vue.Oncogenicity,t.Vue.Protectiveness],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Predisposing,{entityType:t.M1P.Predisposing,significance:[t.Vue.Predisposition,t.Vue.Protectiveness],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Functional,{entityType:t.M1P.Functional,significance:[t.Vue.GainOfFunction,t.Vue.LossOfFunction,t.Vue.UnalteredFunction,t.Vue.Neomorphic,t.Vue.DominantNegative,t.Vue.Unknown],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!1,requiresTherapy:!1,requiresAcmgCodes:!1,requiresClingenCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},7480:(_,h,i)=>{function t(m,s){const v=(n,f)=>{let r;for(let l of n)if(l.fieldGroup)r=v(l.fieldGroup,f);else if(l.key===f){r=l;break}return r},a=(n,f)=>{for(let r of Object.keys(f))if(f[r]instanceof Object&&!Array.isArray(f[r]))a(n,f[r]);else{const l=v(n,r);l&&(l.defaultValue=f[r])}return n};return a(m,s)}i.d(h,{A:()=>t})},5540:(_,h,i)=>{i.d(h,{LC:()=>m,ep:()=>s,kO:()=>v});var t=i(5741);function m(a){return{significance:a.significance,description:a.description,diseaseId:a.disease?.id,therapyIds:a.therapies.map(n=>n.id),therapyInteractionType:a.therapyInteractionType,evidenceDirection:a.evidenceDirection,evidenceLevel:a.evidenceLevel,evidenceType:a.evidenceType,molecularProfileId:a.molecularProfile.id,phenotypeIds:a.phenotypes.map(n=>n.id),rating:a.evidenceRating,sourceId:a.source.id,variantOrigin:a.variantOrigin}}function s(a,n){let f=v(n);if(f)return{id:a,comment:f.comment,organizationId:f.organizationId,fields:f.fields}}function v(a){const n=a.fields;if(![n.molecularProfileId,n.variantOrigin,n.sourceId,n.evidenceType,n.significance,n.evidenceLevel,n.evidenceDirection,n.rating].find(r=>void 0===r))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.q2(n.description),diseaseId:t.pz(n.diseaseId),phenotypeIds:n.phenotypeIds?n.phenotypeIds:[],therapyIds:n.therapyIds?n.therapyIds:[],therapyInteractionType:t.pz(n.therapyInteractionType)},organizationId:a.organizationId,comment:a.comment}}}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5615],{8476:(_,h,i)=>{i.d(h,{S:()=>c});var t=i(177),m=i(1188),s=i(5316),v=i(8168),a=i(513),n=i(776),f=i(3617),r=i(4531),l=i(3953);let c=(()=>{class d{static#e=this.\u0275fac=function(e){return new(e||d)};static#t=this.\u0275mod=l.$C({type:d});static#i=this.\u0275inj=l.G2t({imports:[t.MD,m.iI,a.Zw,f.$,v.m,s.P,r.C,n.s]})}return d})()},4594:(_,h,i)=>{i.d(h,{e:()=>D});var t=i(1635),m=i(9417),s=i(1226),v=i(9447),a=i(5540),n=i(9894),f=i(4902);const c=(0,i(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"New Evidence Item"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},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}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"description",type:"base-textarea",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",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}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!1,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item",align:"right"}}]}]}],f.r);var d=i(6354),I=i(5964),P=i(9199),e=i(3953),C=i(9145),T=i(1188),$=i(4222),M=i(177),A=i(3617),b=i(8524),F=i(8927),L=i(8721),w=i(8199),x=i(1774);const R=p=>["/evidence",p,"summary"];function q(p,o){if(1&p&&(e.EFF(0," View your new EID "),e.j41(1,"a",7),e.EFF(2,"here"),e.k0s(),e.EFF(3,". You will be redirected shortly. ")),2&p){const u=e.XpG();e.R7$(),e.Y8G("routerLink",e.eq3(1,R,u.newEvidenceId))}}function G(p,o){if(1&p&&e.nrm(0,"nz-alert",9),2&p){e.XpG();const u=e.sdS(3);e.Y8G("nzMessage",u)}}function N(p,o){if(1&p&&(e.j41(0,"p")(1,"strong"),e.EFF(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.k0s()(),e.nrm(3,"cvc-evidence-table",10)),2&p){const u=e.XpG(2);e.R7$(3),e.Y8G("molecularProfileId",u.selectedMpId)("sourceId",u.selectedSourceId)}}function V(p,o){if(1&p&&(e.qex(0),e.DNE(1,G,1,1,"nz-alert",8)(2,N,4,2,"ng-template",null,2,e.C5r),e.nrm(4,"br"),e.bVm()),2&p){const u=o.ngIf;e.R7$(),e.Y8G("ngIf",u>0)}}function U(p,o){if(1&p&&e.nrm(0,"nz-alert",9),2&p){e.XpG();const u=e.sdS(3);e.Y8G("nzMessage",u)}}function B(p,o){if(1&p&&(e.j41(0,"p")(1,"strong"),e.EFF(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.k0s()(),e.nrm(3,"cvc-evidence-table",11)),2&p){const u=e.XpG(2);e.R7$(3),e.Y8G("sourceId",u.selectedSourceId)}}function z(p,o){if(1&p&&(e.qex(0),e.DNE(1,U,1,1,"nz-alert",8)(2,B,4,1,"ng-template",null,3,e.C5r),e.nrm(4,"br"),e.bVm()),2&p){const u=o.ngIf;e.R7$(),e.Y8G("ngIf",u)}}function K(p,o){if(1&p){const u=e.RV6();e.j41(0,"form",12),e.bIt("ngSubmit",function(){e.eBV(u);const y=e.XpG();return e.Njj(y.onSubmit(y.model))}),e.j41(1,"formly-form",13),e.bIt("modelChange",function(y){e.eBV(u);const E=e.XpG();return E.model=y,e.Njj(E.onModelChange(y))}),e.k0s()()}if(2&p){const u=e.XpG();e.Y8G("formGroup",u.form),e.R7$(),e.Y8G("form",u.form)("fields",u.fields)("model",u.model)("options",u.options)}}function W(p,o){1&p&&e.EFF(0," Loading Evidence Item... ")}let D=class S{constructor(o,u,g,y,E,j,X){this.revisableFieldsGQL=o,this.submitEvidenceGQL=u,this.existingEvidenceGQL=g,this.fullyCuratedSourceGQL=y,this.cdr=E,this.route=j,this.form=new m.J3({}),this.fields=c,this.state=new v.D,this.options={formState:this.state},this.submitEvidenceMutator=new s.E(X),this.routeSub=this.route.queryParams.subscribe(O=>{O.existingEvidenceId?(this.existingEvidenceId=+O.existingEvidenceId,this.state.formMode="clone"):this.model={fields:{}}})}ngOnInit(){this.countQueryRef=this.existingEvidenceGQL.watch({molecularProfileId:0,sourceId:0}),this.curatedQueryRef=this.fullyCuratedSourceGQL.watch({sourceId:0}),this.existingEvidenceCount$=this.countQueryRef?.valueChanges.pipe((0,d.T)(o=>o.data?.evidenceItems?.totalCount),(0,I.p)(P.kP),(0,n.s)(this)),this.fullyCuratedSource$=this.curatedQueryRef?.valueChanges.pipe((0,d.T)(o=>o.data?.source?.fullyCurated),(0,n.s)(this))}ngAfterViewInit(){this.existingEvidenceId?this.revisableFieldsGQL.fetch({evidenceId:this.existingEvidenceId}).pipe((0,n.s)(this)).subscribe({next:({data:{evidenceItem:o}})=>{o&&(this.model={fields:(0,a.LC)(o)},this.model.fields.description=void 0,this.cdr.detectChanges())},error:o=>{console.error("Error retrieving evidenceItem."),console.error(o)},complete:()=>{this.state.formReady$.next(!0)}}):this.state.formReady$.next(!0)}onSubmit(o){const u=(0,a.kO)(o);u&&(this.mutationState=this.submitEvidenceMutator.mutate(this.submitEvidenceGQL,{input:u},void 0,g=>{this.newEvidenceId=g.submitEvidence?.evidenceItem.id,this.newEvidenceUrl=`/evidence/${this.newEvidenceId}/summary`}))}onModelChange(o){o.fields.sourceId&&o.fields.molecularProfileId?(o.fields.sourceId!=this.selectedSourceId||o.fields.molecularProfileId!=this.selectedMpId)&&(this.selectedSourceId=o.fields.sourceId,this.selectedMpId=o.fields.molecularProfileId,this.countQueryRef?.refetch({molecularProfileId:o.fields.molecularProfileId,sourceId:o.fields.sourceId})):this.countQueryRef?.refetch({molecularProfileId:0,sourceId:0}),o.fields.sourceId?o.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=o.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()}static#e=this.\u0275fac=function(u){return new(u||S)(e.rXU(C.V1_),e.rXU(C.LXB),e.rXU(C.k1Y),e.rXU(C.aX5),e.rXU(e.gRc),e.rXU(T.nX),e.rXU($.N))};static#t=this.\u0275cmp=e.VBU({type:S,selectors:[["cvc-evidence-submit-form"]],decls:10,vars:11,consts:[["success",""],["loadingModel",""],["duplicateEvidenceAlert",""],["fullyCuratedAlert",""],["entityType","Evidence Item",3,"mutationState","redirectUrl","successMessage"],[4,"ngIf"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"routerLink"],["nzType","warning",3,"nzMessage",4,"ngIf"],["nzType","warning",3,"nzMessage"],["cvcHeight","150",3,"molecularProfileId","sourceId"],["cvcHeight","150",3,"sourceId"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(u,g){if(1&u&&(e.j41(0,"cvc-form-submission-status-display",4),e.DNE(1,q,4,3,"ng-template",null,0,e.C5r)(3,V,5,1,"ng-container",5),e.nI1(4,"ngrxPush"),e.DNE(5,z,5,1,"ng-container",5),e.nI1(6,"ngrxPush"),e.DNE(7,K,2,5,"form",6)(8,W,1,0,"ng-template",null,1,e.C5r),e.k0s()),2&u){const y=e.sdS(2),E=e.sdS(9);e.Y8G("mutationState",g.mutationState)("redirectUrl",g.newEvidenceUrl)("successMessage",y),e.R7$(3),e.Y8G("ngIf",e.bMT(4,7,g.existingEvidenceCount$)),e.R7$(2),e.Y8G("ngIf",e.bMT(6,9,g.fullyCuratedSource$)),e.R7$(2),e.Y8G("ngIf",g.model)("ngIfElse",E)}},dependencies:[M.bT,T.Wk,A.Y,m.qT,m.cb,m.j4,b.aF,F.CA,L.G,w.N,x.L9],encapsulation:2,changeDetection:0})};D=(0,t.Cg)([(0,n.d)()],D)},4902:(_,h,i)=>{i.d(h,{I:()=>t,r:()=>m});const t={featureId: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}},5183:(_,h,i)=>{i.d(h,{$L:()=>a,zn:()=>f});var t=i(896),m=i(9145),s=i(1413),v=i(1018),a=function(r){return r.EVIDENCE="Evidence",r.ASSERTION="Assertion",r}(a||{});class f{constructor(l){this.formReady$=new s.B,this.formLayout="vertical",this.formMode="add",this.validStates=new Map,this.typeOption$=new s.B,this.requiresTherapy$=new s.B,this.requiresDisease$=new s.B,this.requiresAcmgCode$=new s.B,this.requiresAmpLevel$=new s.B,this.requiresClingenCode$=new s.B,this.allowsFdaApproval$=new s.B,this.getTypeOptions=()=>this.entityName==a.ASSERTION?(0,v.KF)(m.XEW).map(c=>c):(0,v.KF)(m.M1P).map(c=>c),this.getSignificanceOptions=c=>this.validStates.get(c)?.significance||[],this.getInteractionOptions=()=>(0,v.KF)(m.qld).map(c=>c),this.isValidSignificanceOption=(c,d)=>{const I=this.validStates.get(c);return!I||I.significance.includes(d)},this.getDirectionOptions=c=>this.validStates.get(c)?.entityDirection||[],this.isValidDirectionOption=(c,d)=>{const I=this.validStates.get(c);return!I||I.entityDirection.includes(d)},this.requiresTherapy=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresTherapy},this.requiresDisease=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresDisease},this.requiresAcmgCodes=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresAcmgCodes},this.requiresAmpLevel=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresAmpLevel},this.requiresClingenCodes=c=>{const d=this.validStates.get(c);return void 0===d||d.requiresClingenCodes},this.allowsFdaApproval=c=>{const d=this.validStates.get(c);return void 0===d||d.allowsFdaApproval},this.getOptionsFromEnums=c=>0===c.length?[]:c.map(d=>({value:d,label:(0,t.u)(d)})),this.fields={},this.options={},this.enums={},this.requires={},this.entityName=l,this.pluralNames=new Map,this.pluralNames.set(a.ASSERTION,"Assertions"),this.pluralNames.set(a.EVIDENCE,"Evidence")}onDestroy(){}}},9447:(_,h,i)=>{i.d(h,{D:()=>n});var t=i(9145),m=i(9894),s=i(4412),v=i(4902),a=i(5183);class n extends a.zn{constructor(){super(a.$L.EVIDENCE);const r=v.I;this.fields={molecularProfileId$:new s.t(r.molecularProfileId),variantId$:new s.t(r.variantId),variantMolecularProfile$:new s.t(void 0),featureId$:new s.t(r.featureId),evidenceType$:new s.t(r.evidenceType),evidenceLevel$:new s.t(r.evidenceLevel),evidenceDirection$:new s.t(r.evidenceDirection),significance$:new s.t(r.significance),variantOrigin$:new s.t(r.variantOrigin),diseaseId$:new s.t(r.diseaseId),therapyIds$:new s.t(r.therapyIds),therapyInteractionType$:new s.t(r.therapyInteractionType),rating$:new s.t(r.rating),phenotypeIds$:new s.t(r.phenotypeIds),sourceId$:new s.t(r.sourceId),description$:new s.t(void 0),comment$:new s.t(void 0)},this.enums={entityType$:new s.t(this.getTypeOptions()),significance$:new s.t([]),direction$:new s.t([]),interaction$:new s.t(this.getInteractionOptions())},this.requires={requiresDisease$:new s.t(!1),requiresTherapy$:new s.t(!1),requiresTherapyInteractionType$:new s.t(!1),requiresClingenCodes$:new s.t(!1),requiresAcmgCodes$:new s.t(!1),requiresAmpLevel$:new s.t(!1),allowsFdaApproval$:new s.t(!1)},this.fields.evidenceType$.pipe((0,m.s)(this,"onDestroy")).subscribe(l=>{if(!l)return Object.entries(this.requires).forEach(([c,d])=>{d.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(l)),this.enums.direction$.next(this.getDirectionOptions(l)),this.requires.requiresDisease$.next(this.requiresDisease(l)),this.requires.requiresTherapy$.next(this.requiresTherapy(l)),this.requires.requiresTherapyInteractionType$.next(this.requiresTherapy(l)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(l)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(l)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(l))}),this.fields.therapyIds$.pipe((0,m.s)(this,"onDestroy")).subscribe(l=>{this.requires.requiresTherapyInteractionType$.next(!!l&&l.length>1)}),this.validStates.set(t.M1P.Predictive,{entityType:t.M1P.Predictive,significance:[t.Vue.Sensitivityresponse,t.Vue.Resistance,t.Vue.AdverseResponse,t.Vue.ReducedSensitivity,t.Vue.Na],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Diagnostic,{entityType:t.M1P.Diagnostic,significance:[t.Vue.Positive,t.Vue.Negative],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Prognostic,{entityType:t.M1P.Prognostic,significance:[t.Vue.BetterOutcome,t.Vue.PoorOutcome,t.Vue.Na],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Oncogenic,{entityType:t.M1P.Oncogenic,significance:[t.Vue.Oncogenicity,t.Vue.Protectiveness],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Predisposing,{entityType:t.M1P.Predisposing,significance:[t.Vue.Predisposition,t.Vue.Protectiveness],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(t.M1P.Functional,{entityType:t.M1P.Functional,significance:[t.Vue.GainOfFunction,t.Vue.LossOfFunction,t.Vue.UnalteredFunction,t.Vue.Neomorphic,t.Vue.DominantNegative,t.Vue.Unknown],entityDirection:[t.$Ni.Supports,t.$Ni.DoesNotSupport],requiresDisease:!1,requiresTherapy:!1,requiresAcmgCodes:!1,requiresClingenCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},7480:(_,h,i)=>{function t(m,s){const v=(n,f)=>{let r;for(let l of n)if(l.fieldGroup)r=v(l.fieldGroup,f);else if(l.key===f){r=l;break}return r},a=(n,f)=>{for(let r of Object.keys(f))if(f[r]instanceof Object&&!Array.isArray(f[r]))a(n,f[r]);else{const l=v(n,r);l&&(l.defaultValue=f[r])}return n};return a(m,s)}i.d(h,{A:()=>t})},5540:(_,h,i)=>{i.d(h,{LC:()=>m,ep:()=>s,kO:()=>v});var t=i(5741);function m(a){return{significance:a.significance,description:a.description,diseaseId:a.disease?.id,therapyIds:a.therapies.map(n=>n.id),therapyInteractionType:a.therapyInteractionType,evidenceDirection:a.evidenceDirection,evidenceLevel:a.evidenceLevel,evidenceType:a.evidenceType,molecularProfileId:a.molecularProfile.id,phenotypeIds:a.phenotypes.map(n=>n.id),rating:a.evidenceRating,sourceId:a.source.id,variantOrigin:a.variantOrigin}}function s(a,n){let f=v(n);if(f)return{id:a,comment:f.comment,organizationId:f.organizationId,fields:f.fields}}function v(a){const n=a.fields;if(![n.molecularProfileId,n.variantOrigin,n.sourceId,n.evidenceType,n.significance,n.evidenceLevel,n.evidenceDirection,n.rating].find(r=>void 0===r))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.q2(n.description),diseaseId:t.pz(n.diseaseId),phenotypeIds:n.phenotypeIds?n.phenotypeIds:[],therapyIds:n.therapyIds?n.therapyIds:[],therapyInteractionType:t.pz(n.therapyInteractionType)},organizationId:a.organizationId,comment:a.comment}}}}]); \ No newline at end of file diff --git a/server/public/5716.df9a59ea9e5a2763.js b/server/public/5716.df9a59ea9e5a2763.js new file mode 100644 index 000000000..5bc7b755e --- /dev/null +++ b/server/public/5716.df9a59ea9e5a2763.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5716],{7480:(N,h,s)=>{function f(g,I){const y=(e,o)=>{let c;for(let d of e)if(d.fieldGroup)c=y(d.fieldGroup,o);else if(d.key===o){c=d;break}return c},l=(e,o)=>{for(let c of Object.keys(o))if(o[c]instanceof Object&&!Array.isArray(o[c]))l(e,o[c]);else{const d=y(e,c);d&&(d.defaultValue=o[c])}return e};return l(g,I)}s.d(h,{A:()=>f})},5716:(N,h,s)=>{s.r(h),s.d(h,{VariantsReviseModule:()=>Se});var f=s(177),g=s(1188),I=s(9172),y=s(6354),l=s(4608),e=s(3953),o=s(9145),c=s(1305),d=s(3062),T=s(5103),X=s(9765),B=s(2261),V=s(7529),L=s(3075),U=s(1774);function Y(t,i){1&t&&(e.j41(0,"span"),e.EFF(1,",\xa0"),e.k0s())}function k(t,i){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.DNE(2,Y,2,0,"span",1),e.k0s()),2&t){const n=i.$implicit,r=i.last;e.R7$(),e.SpI(" ",n,""),e.R7$(),e.Y8G("ngIf",!r)}}function A(t,i){if(1&t&&(e.j41(0,"nz-page-header-subtitle"),e.DNE(1,k,3,2,"span",8),e.k0s()),2&t){const n=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",n.variantAliases)}}function Q(t,i){1&t&&(e.j41(0,"div"),e.nrm(1,"router-outlet"),e.k0s())}function J(t,i){1&t&&(e.j41(0,"nz-row",9)(1,"div",10),e.nrm(2,"cvc-login-prompt"),e.k0s()())}function Z(t,i){if(1&t&&(e.qex(0),e.nrm(1,"cvc-section-navigation",2),e.j41(2,"nz-page-header",3)(3,"nz-page-header-title",4),e.EFF(4," REVISE "),e.nrm(5,"i",5),e.nI1(6,"entityColor"),e.EFF(7),e.k0s(),e.DNE(8,A,2,1,"nz-page-header-subtitle",1),e.j41(9,"nz-page-header-content")(10,"div",6),e.DNE(11,Q,2,0,"div",7),e.nI1(12,"ngrxPush"),e.DNE(13,J,3,0,"ng-template",null,0,e.C5r),e.k0s()()(),e.bVm()),2&t){const n=i.ngIf,r=e.sdS(14),a=e.XpG();e.R7$(),e.Y8G("displayName",n.name),e.R7$(4),e.Y8G("nzTwotoneColor",e.bMT(6,6,"Variant")),e.R7$(2),e.SpI(" ",n.name," "),e.R7$(),e.Y8G("ngIf",n.variantAliases.length>0),e.R7$(3),e.Y8G("ngIf",e.bMT(12,8,a.isSignedIn$))("ngIfElse",r)}}let K=(()=>{class t{constructor(n,r,a){this.gql=n,this.route=r,this.viewerService=a,this.routeSub=this.route.params.subscribe(p=>{let j=this.gql.watch({variantId:+p.variantId}).valueChanges;this.loading$=j.pipe((0,l.E)("loading"),(0,I.Z)(!0)),this.variant$=j.pipe((0,l.E)("data","variant")),this.commentsTotal$=this.variant$.pipe((0,l.E)("comments","totalCount")),this.flagsTotal$=this.variant$.pipe((0,l.E)("flags","totalCount")),this.revisionsTotal$=this.variant$.pipe((0,l.E)("revisions","totalCount"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,y.T)(n=>n.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(o.N47),e.rXU(g.nX),e.rXU(c.q))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variants-revise"]],decls:2,vars:3,consts:[["notSignedIn",""],[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(r,a){1&r&&(e.DNE(0,Z,15,10,"ng-container",1),e.nI1(1,"async")),2&r&&e.Y8G("ngIf",e.bMT(1,1,a.variant$))},dependencies:[f.Sq,f.bT,g.n3,d.WB,d.k9,d.CO,d.zR,T.Dn,X.n,B.h,V.Uq,V.e,f.Jj,L.R,U.L9],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}"]})}return t})();var H=s(6404),b=s(8927),P=s(513),R=s(8168),S=s(776),O=s(5316);let W=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[f.MD,b.PQ,P.Zw,R.m,O.P,S.s]})}return t})(),q=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[f.MD,b.PQ,P.Zw,R.m,O.P,S.s]})}return t})(),ee=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[f.MD,H.v,W,q]})}return t})();var te=s(2276),G=s(1635),m=s(9417),x=s(9894),z=s(1226),w=s(7480);const re=(0,w.A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Variant"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,md:12,lg:8},{xs:24,md:12,lg:8},{xs:24,lg:8}]}},fieldGroup:[{key:"featureId",type:"feature-select",props:{description:"Enter a Factor for this Variant",required:!0,featureType:o.Xiu.Factor,canChangeFeatureType:!1}},{key:"name",type:"base-input",props:{placeholder:"Enter a name for this Variant",description:"Enter the name of the Variant according to the Variant Curation SOP",label:"Name",required:!0,rows:1}},{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Variant",placeholder:"Enter Alias and hit return"}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,lg:12,xl:6,xxl:8},{xs:24,lg:12,xl:6,xxl:8},{xs:24,xl:12,xxl:8}]}},fieldGroup:[{key:"variantTypeIds",type:"variant-type-multi-select"},{key:"ncitId",type:"base-input",props:{placeholder:"NCI Thesaurus Code",description:"Enter the NCI Thesaurus Code for this Factor Variant",label:"NCI Thesaurus Code",required:!1}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{name:void 0,aliases:void 0,variantTypeIds:void 0,featureId:void 0,ncitId:void 0},comment:void 0,organizationId:void 0});var v=s(5741),M=s(4222),$=s(8524),D=s(8721);const oe=()=>({});function de(t,i){if(1&t&&(e.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),e.j41(1,"a",4),e.EFF(2,"here."),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.FS9("href",n.url,e.B4B)}}function fe(t,i){if(1&t){const n=e.RV6();e.j41(0,"form",5),e.bIt("ngSubmit",function(){e.eBV(n);const a=e.XpG();return e.Njj(a.onSubmit(a.model))}),e.j41(1,"formly-form",6),e.bIt("modelChange",function(a){e.eBV(n);const p=e.XpG();return e.Njj(p.model=a)}),e.k0s()()}if(2&t){const n=e.XpG();e.Y8G("formGroup",n.form),e.R7$(),e.Y8G("form",n.form)("fields",n.fields)("model",n.model)("options",e.lJ4(5,oe))}}function ce(t,i){1&t&&e.EFF(0," Loading Variant... ")}let C=class _{constructor(i,n,r,a){this.revisableFieldsGQL=i,this.submitRevisionsGQL=n,this.networkErrorService=r,this.cdr=a,this.form=new m.J3({}),this.fields=re,this.reviseVariantMutator=new z.E(r)}ngOnInit(){this.url=`/variants/${this.variantId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).pipe((0,x.s)(this)).subscribe({next:({data:{variant:i}})=>{var t;i&&"FactorVariant"==i.__typename&&(this.model={id:i.id,fields:(t=i,{name:t.name,aliases:t.variantAliases,variantTypeIds:t.variantTypes.map(i=>i.id),featureId:t.feature.id,ncitId:t.ncitId})},this.cdr.detectChanges())},error:i=>{console.error("Error retrieving Variant."),console.error(i)},complete:()=>{}})}onSubmit(i){if(!this.variantId)return;let n=function ae(t,i){const n=i.fields;if(i.comment&&n.name&&n.featureId)return{id:t,fields:{name:n.name,aliases:n.aliases||[],variantTypeIds:n.variantTypeIds||[],featureId:n.featureId,ncitId:v.q2(n.ncitId)},organizationId:i.organizationId,comment:i.comment}}(this.variantId,i);n&&(this.mutationState=this.reviseVariantMutator.mutate(this.submitRevisionsGQL,{input:n}))}static#e=this.\u0275fac=function(n){return new(n||_)(e.rXU(o.JTF),e.rXU(o.Ye0),e.rXU(M.N),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:_,selectors:[["cvc-factor-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Variant",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(n,r){if(1&n&&(e.j41(0,"cvc-form-submission-status-display",2),e.DNE(1,de,3,1,"ng-template",null,0,e.C5r)(3,fe,2,6,"form",3)(4,ce,1,0,"ng-template",null,1,e.C5r),e.k0s()),2&n){const a=e.sdS(2),p=e.sdS(5);e.Y8G("redirectUrl",r.url)("mutationState",r.mutationState)("successMessage",a),e.R7$(3),e.Y8G("ngIf",r.model)("ngIfElse",p)}},dependencies:[f.bT,b.CA,m.qT,m.cb,m.j4,$.aF,D.G],encapsulation:2,changeDetection:0})};C=(0,G.Cg)([(0,x.d)()],C);const pe={id:void 0,clientMutationId:void 0,fields:{aliases:void 0,variantTypeIds:void 0},comment:void 0,organizationId:void 0};var u=s(5676);function ue(t){const i=t.fivePrimeEndExonCoordinates?t.fivePrimeEndExonCoordinates.referenceBuild:t.threePrimeStartExonCoordinates?.referenceBuild,n=t.fivePrimeEndExonCoordinates?t.fivePrimeEndExonCoordinates.ensemblVersion:t.threePrimeStartExonCoordinates?.ensemblVersion;return{aliases:t.variantAliases,variantTypeIds:t.variantTypes.map(r=>r.id),fivePrimeTranscript:t.fivePrimeEndExonCoordinates?.representativeTranscript,fivePrimeExonEnd:t.fivePrimeEndExonCoordinates?.exon?.toString(),fivePrimeOffset:t.fivePrimeEndExonCoordinates?.exonOffset?.toString(),fivePrimeOffsetDirection:t.fivePrimeEndExonCoordinates?.exonOffsetDirection,threePrimeTranscript:t.threePrimeStartExonCoordinates?.representativeTranscript,threePrimeExonStart:t.threePrimeStartExonCoordinates?.exon?.toString(),threePrimeOffset:t.threePrimeStartExonCoordinates?.exonOffset?.toString(),threePrimeOffsetDirection:t.threePrimeStartExonCoordinates?.exonOffsetDirection,referenceBuild:i,ensemblVersion:n}}const ve=()=>({});function he(t,i){if(1&t&&(e.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),e.j41(1,"a",4),e.EFF(2,"here."),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.FS9("href",n.url,e.B4B)}}function ye(t,i){if(1&t){const n=e.RV6();e.j41(0,"form",5),e.bIt("ngSubmit",function(){e.eBV(n);const a=e.XpG();return e.Njj(a.onSubmit(a.model))}),e.j41(1,"formly-form",6),e.bIt("modelChange",function(a){e.eBV(n);const p=e.XpG();return e.Njj(p.model=a)}),e.k0s()()}if(2&t){const n=e.XpG();e.Y8G("formGroup",n.form),e.R7$(),e.Y8G("form",n.form)("fields",n.fields)("model",n.model)("options",e.lJ4(5,ve))}}function be(t,i){1&t&&e.EFF(0," Loading Variant... ")}let F=class E{constructor(i,n,r,a){this.revisableFieldsGQL=i,this.submitRevisionsGQL=n,this.networkErrorService=r,this.cdr=a,this.form=new m.J3({}),this.reviseVariantMutator=new z.E(r)}ngOnInit(){this.url=`/variants/${this.variantId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).pipe((0,x.s)(this)).subscribe({next:({data:{variant:i}})=>{i&&"FusionVariant"==i.__typename&&"Fusion"==i.feature.featureInstance.__typename&&(this.fields=function me(t,i){return(0,w.A)(function le(t,i){return[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Variant"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Variant",placeholder:"Enter Alias and hit return"}},{key:"variantTypeIds",type:"variant-type-multi-select"}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:"Fusion Coordinates",size:"small"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"referenceBuild",type:"reference-build-select",props:{required:!0}},{key:"ensemblVersion",type:"base-input",validators:{nccnVersionNumber:{expression:n=>!n.value||/^\d{2,3}$/.test(n.value),message:(n,r)=>`"${r.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)",required:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"fivePrimeTranscript",type:"base-input",props:{label:"5' Transcript",required:!t,disabled:t,tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected"},validators:{isTranscriptId:{expression:u.t_,message:"5' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"fivePrimeExonEnd",type:"base-input",validators:{isNumeric:{expression:u.kf,message:"5' exon must be numeric"}},props:{label:"5' End Exon",required:!t,disabled:t,tooltip:"The exon number counted from the 5\u2019 end of the transcript."}},{key:"fivePrimeOffset",type:"base-input",validators:{isNumeric:{expression:u.kf,message:"5' exon offset must be numeric"}},props:{label:"5' Exon Offset",tooltip:"A value representing the offset from the segment boundary.",required:!1,disabled:t}},{key:"fivePrimeOffsetDirection",type:"base-select",props:{label:"5' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"5' Offset Direction",options:u.UH,multiple:!1},expressions:{"props.disabled":n=>!n.model.fivePrimeOffset,"props.required":n=>!!n.model.fivePrimeOffset}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"threePrimeTranscript",type:"base-input",props:{required:!i,disabled:i,label:"3' Transcript",tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected"},validators:{isTranscriptId:{expression:u.t_,message:"3' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"threePrimeExonStart",type:"base-input",validators:{isNumeric:{expression:u.kf,message:"3' exon must be numeric"}},props:{label:"3' Start Exon",tooltip:"The exon number counted from the 3\u2019 end of the transcript.",required:!i,disabled:i}},{key:"threePrimeOffset",type:"base-input",validators:{isNumeric:{expression:u.kf,message:"3' exon must be numeric"}},props:{label:"3' Exon Offset",disabled:i,required:!1,tooltip:"A value representing the offset from the segment boundary."}},{key:"threePrimeOffsetDirection",type:"base-select",props:{label:"3' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"3' Offset Direction",options:u.UH,multiple:!1},expressions:{"props.disabled":n=>!n.model.threePrimeOffset,"props.required":n=>!!n.model.threePrimeOffset}}]}]}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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",align:"right"}}]}]}]}(t,i),pe)}(i.feature.featureInstance.fivePrimePartnerStatus!=o.hBv.Known,i.feature.featureInstance.threePrimePartnerStatus!=o.hBv.Known),this.model={id:i.id,fields:ue(i)},this.cdr.detectChanges())},error:i=>{console.error("Error retrieving Variant."),console.error(i)},complete:()=>{}})}onSubmit(i){if(!this.variantId)return;let n=function ge(t,i){const n=i.fields;if(i.comment)return{id:t,fields:{aliases:n.aliases||[],variantTypeIds:n.variantTypeIds||[],coordinates:{fivePrimeTranscript:i.fields.fivePrimeTranscript,fivePrimeExonEnd:v.tV(i.fields.fivePrimeExonEnd),fivePrimeOffset:v.tV(i.fields.fivePrimeOffset),fivePrimeOffsetDirection:i.fields.fivePrimeOffsetDirection,threePrimeTranscript:i.fields.threePrimeTranscript,threePrimeExonStart:v.tV(i.fields.threePrimeExonStart),threePrimeOffset:v.tV(i.fields.threePrimeOffset),threePrimeOffsetDirection:i.fields.threePrimeOffsetDirection,referenceBuild:i.fields.referenceBuild,ensemblVersion:+i.fields.ensemblVersion}},organizationId:i.organizationId,comment:i.comment}}(this.variantId,i);n&&(this.mutationState=this.reviseVariantMutator.mutate(this.submitRevisionsGQL,{input:n}))}static#e=this.\u0275fac=function(n){return new(n||E)(e.rXU(o.q3K),e.rXU(o.twV),e.rXU(M.N),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-fusion-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Variant",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(n,r){if(1&n&&(e.j41(0,"cvc-form-submission-status-display",2),e.DNE(1,he,3,1,"ng-template",null,0,e.C5r)(3,ye,2,6,"form",3)(4,be,1,0,"ng-template",null,1,e.C5r),e.k0s()),2&n){const a=e.sdS(2),p=e.sdS(5);e.Y8G("redirectUrl",r.url)("mutationState",r.mutationState)("successMessage",a),e.R7$(3),e.Y8G("ngIf",r.model&&r.fields)("ngIfElse",p)}},dependencies:[f.bT,b.CA,m.qT,m.cb,m.j4,$.aF,D.G],encapsulation:2,changeDetection:0})};function xe(t,i){if(1&t&&e.nrm(0,"cvc-gene-variant-revise-form",2),2&t){const n=e.XpG(2);e.Y8G("variantId",n.variantId)}}function Ie(t,i){if(1&t&&e.nrm(0,"cvc-factor-variant-revise-form",2),2&t){const n=e.XpG(2);e.Y8G("variantId",n.variantId)}}function Ve(t,i){if(1&t&&e.nrm(0,"cvc-fusion-variant-revise-form",2),2&t){const n=e.XpG(2);e.Y8G("variantId",n.variantId)}}function Ce(t,i){if(1&t&&(e.qex(0),e.DNE(1,xe,1,1,"cvc-gene-variant-revise-form",2)(2,Ie,1,1,"cvc-factor-variant-revise-form",2)(3,Ve,1,1,"cvc-fusion-variant-revise-form",2),e.bVm()),2&t){let n;const r=e.XpG();e.R7$(),e.vxM("GeneVariant"===(n=r.variantType)?1:"FactorVariant"===n?2:"FusionVariant"===n?3:-1)}}function Fe(t,i){1&t&&e.EFF(0,"Loading Variant...")}F=(0,G.Cg)([(0,x.d)()],F);const _e=[{path:"",component:K,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class t{constructor(n){this.route=n,this.routeParams$=this.route.params.subscribe(r=>{this.variantId=+r.variantId}),this.queryParams$=this.route.queryParamMap.subscribe(r=>{r.has("variantType")&&(this.variantType=r.get("variantType"))})}ngOnDestroy(){this.routeParams$.unsubscribe(),this.queryParams$.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(g.nX))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variants-suggest"]],decls:3,vars:2,consts:[["loadingVariant",""],[4,"ngIf","ngIfElse"],[3,"variantId"]],template:function(r,a){if(1&r&&e.DNE(0,Ce,4,1,"ng-container",1)(1,Fe,1,0,"ng-template",null,0,e.C5r),2&r){const p=e.sdS(2);e.Y8G("ngIf",a.variantId&&a.variantType)("ngIfElse",p)}},dependencies:[f.bT,te.v,C,F],encapsulation:2})}return t})(),data:{breadcrumb:"Suggest Revision"}}]}];let Ee=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[g.iI.forChild(_e),ee,g.iI]})}return t})();var Te=s(4124),Pe=s(3688),Re=s(4917);let Se=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[f.MD,Ee,d.ZJ,T.Y3,Re.i,Te.C,Pe.A,V.f3]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/5813.049dbb50f172d76e.js b/server/public/5813.049dbb50f172d76e.js deleted file mode 100644 index 9f6de46aa..000000000 --- a/server/public/5813.049dbb50f172d76e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5813],{9045:(R,D,e)=>{e.d(D,{J:()=>V});var c=e(6514),d=e(505),i=e(3953),a=e(177),f=e(1188),b=e(5699),G=e(1236),z=e(5103),t=e(8011),p=e(2387),T=e(3075);const h=(_,l,g)=>({rejected:_,submitted:l,accepted:g});function v(_,l){}function E(_,l){if(1&_&&(i.qex(0),i.j41(1,"a",5),i.DNE(2,v,0,0,"ng-template",6),i.k0s(),i.bVm()),2&_){const g=i.XpG(),r=i.sdS(2);i.R7$(),i.Y8G("routerLink",g.evidence.link),i.R7$(),i.Y8G("ngTemplateOutlet",r)}}function M(_,l){}function I(_,l){if(1&_&&i.nrm(0,"cvc-evidence-popover",9),2&_){const g=i.XpG(3);i.Y8G("evidenceId",g.evidence.id)}}function S(_,l){if(1&_&&i.DNE(0,I,1,1,"cvc-evidence-popover",8),2&_){const g=i.XpG(2);i.Y8G("ngIf",g.enablePopover)}}function P(_,l){if(1&_&&(i.j41(0,"nz-tag",7),i.DNE(1,M,0,0,"ng-template",6),i.k0s(),i.DNE(2,S,1,1,"ng-template",null,3,i.C5r)),2&_){const g=i.sdS(3),r=i.XpG(),u=i.sdS(6);i.Y8G("ngClass",i.sMw(5,h,"REJECTED"===r.evidence.status,"SUBMITTED"===r.evidence.status,"ACCEPTED"===r.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",g)("nzPopoverTrigger",r.enablePopover?"hover":null),i.R7$(),i.Y8G("ngTemplateOutlet",u)}}function L(_,l){}function U(_,l){if(1&_&&i.DNE(0,L,0,0,"ng-template",6),2&_){i.XpG();const g=i.sdS(2);i.Y8G("ngTemplateOutlet",g)}}function F(_,l){if(1&_&&(i.j41(0,"cvc-icon-badges",10),i.nrm(1,"i",11),i.nI1(2,"entityColor"),i.nI1(3,"entityColor"),i.k0s(),i.EFF(4)),2&_){const g=i.XpG();i.Y8G("flagged",g.evidence.flagged)("entityColor",g.iconColor),i.R7$(),i.Y8G("nzTwotoneColor","REJECTED"===g.evidence.status?i.bMT(2,4,"Rejected"):i.bMT(3,6,"EvidenceItem")),i.R7$(3),i.SpI(" ",g.evidence.name,"\n")}}let V=(()=>{class _ extends c.s{set evidence(g){if(!g)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=g}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,d.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(r){return new(r||_)};static#n=this.\u0275cmp=i.VBU({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[i.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(r,u){if(1&r&&i.DNE(0,E,3,2,"ng-container",4)(1,P,4,9,"ng-template",null,0,i.C5r)(3,U,1,1,"ng-template",null,1,i.C5r)(5,F,5,8,"ng-template",null,2,i.C5r),2&r){const C=i.sdS(4);i.Y8G("ngIf",u.linked)("ngIfElse",C)}},dependencies:[a.YU,a.bT,a.T3,f.Wk,b.s,G.L_,z.Dn,t.S,p.N,T.R],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}"]})}return _})()},6936:(R,D,e)=>{e.d(D,{G:()=>T});var c=e(177),d=e(1188),i=e(5699),a=e(1236),f=e(5103),b=e(4666),G=e(4917),z=e(3146),t=e(4994),p=e(3953);let T=(()=>{class h{static#t=this.\u0275fac=function(M){return new(M||h)};static#n=this.\u0275mod=p.$C({type:h});static#e=this.\u0275inj=p.G2t({imports:[c.MD,d.iI,z.W2,i.T,a.MC,f.Y3,b.v,G.i,t.a]})}return h})()},6719:(R,D,e)=>{e.d(D,{Q:()=>t});var c=e(3953),d=e(177),i=e(1672),a=e(5103);function f(p,T){if(1&p&&(c.j41(0,"span",5),c.EFF(1),c.k0s()),2&p){const h=c.XpG(2);c.R7$(),c.JRh(h.notification)}}function b(p,T){1&p&&c.EFF(0," Not specified ")}function G(p,T){if(1&p&&c.DNE(0,f,2,1,"span",4)(1,b,1,0,"ng-template",null,2,c.C5r),2&p){const h=c.sdS(2),v=c.XpG();c.Y8G("ngIf",v.notification)("ngIfElse",h)}}function z(p,T){1&p&&c.nrm(0,"i",6)}let t=(()=>{class p{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(v){return new(v||p)};static#n=this.\u0275cmp=c.VBU({type:p,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(v,E){if(1&v&&(c.nrm(0,"nz-empty",3),c.DNE(1,G,3,2,"ng-template",null,0,c.C5r)(3,z,1,0,"ng-template",null,1,c.C5r)),2&v){const M=c.sdS(2),I=c.sdS(4);c.Y8G("nzNotFoundContent",M)("nzNotFoundImage",I)}},dependencies:[d.bT,i.RW,a.Dn],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%}"]})}return p})()},8254:(R,D,e)=>{e.d(D,{V:()=>f});var c=e(177),d=e(1672),i=e(5103),a=e(3953);let f=(()=>{class b{static#t=this.\u0275fac=function(t){return new(t||b)};static#n=this.\u0275mod=a.$C({type:b});static#e=this.\u0275inj=a.G2t({imports:[c.MD,d._v,i.Y3]})}return b})()},5128:(R,D,e)=>{e.d(D,{K:()=>t});var c=e(177),d=e(8524),i=e(3953),a=e(9417),f=e(1011);const G={name:"comment-textarea",component:(()=>{class p extends d.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(h,v)=>`Comments must be at least ${v.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let h;return function(E){return(h||(h=i.xGo(p)))(E||p)}})();static#n=this.\u0275cmp=i.VBU({type:p,selectors:[["comment-textarea-type"]],features:[i.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(v,E){1&v&&i.nrm(0,"textarea",0),2&v&&i.Y8G("formControl",E.formControl)("formlyAttributes",E.field)},dependencies:[a.me,a.BC,a.l_,d.ch,f.Sy],encapsulation:2,changeDetection:0})}return p})(),wrappers:["form-field"]};var z=e(8927);let t=(()=>{class p{static#t=this.\u0275fac=function(v){return new(v||p)};static#n=this.\u0275mod=i.$C({type:p});static#e=this.\u0275inj=i.G2t({imports:[c.MD,a.X1,d.qy.forChild({types:[G]}),z.PQ,f.j]})}return p})()},5791:(R,D,e)=>{e.r(D),e.d(D,{VariantGroupsDetailModule:()=>Xt});var c=e(177),d=e(1188),i=e(1413),a=e(4412),f=e(9145),b=e(9172),G=e(6977),z=e(4608),t=e(3953),p=e(1305),T=e(1774),h=e(5103),v=e(7529),E=e(3062),M=e(513),I=e(6389),S=e(5930),P=e(7685),L=e(8821),U=e(7428),F=e(9765),V=e(5269),_=e(9945),l=e(6269),g=e(3075);const r=n=>["/variant-groups",n,"revise"];function u(n,m){if(1&n&&(t.j41(0,"button",15,1),t.EFF(2," Revise "),t.k0s()),2&n){const o=t.sdS(1),s=t.XpG(4).ngIf;t.Y8G("routerLink",t.eq3(2,r,s.id))("nzType",o.isActive?"primary":"default")}}function C(n,m){if(1&n&&(t.j41(0,"span"),t.DNE(1,u,3,4,"button",14),t.k0s()),2&n){const o=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function O(n,m){if(1&n&&(t.j41(0,"button",17,1),t.EFF(2," Flag "),t.k0s()),2&n){const o=t.sdS(1);t.Y8G("nzType",o.isActive?"primary":"default")}}function B(n,m){if(1&n&&(t.j41(0,"span"),t.DNE(1,O,3,1,"button",16),t.k0s()),2&n){const o=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function A(n,m){if(1&n&&t.nrm(0,"cvc-entity-subscription-button",19),2&n){const o=t.XpG(2).ngrxLet,s=t.XpG(3);t.Y8G("viewer",o)("subscribableId",s.subscribable.id)}}function j(n,m){if(1&n&&(t.j41(0,"span"),t.DNE(1,A,1,2,"cvc-entity-subscription-button",18),t.k0s()),2&n){const o=t.XpG().ngrxLet,s=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.signedIn&&s.subscribable)}}function K(n,m){1&n&&(t.j41(0,"nz-space",12),t.DNE(1,C,2,1,"span",13)(2,B,2,1,"span",13)(3,j,2,1,"span",13),t.k0s())}function w(n,m){if(1&n&&(t.j41(0,"nz-page-header-extra"),t.DNE(1,K,4,0,"nz-space",11),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("ngrxLet",o.viewer$)}}function k(n,m){if(1&n&&(t.j41(0,"nz-col",20),t.nrm(1,"cvc-contributor-avatars",21),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("subscribable",o.subscribable)}}function Q(n,m){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",3),t.j41(2,"div",4),t.nI1(3,"ngrxPush"),t.j41(4,"nz-page-header",5)(5,"nz-page-header-title",6),t.nrm(6,"i",7),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.DNE(9,w,2,1,"nz-page-header-extra",8),t.j41(10,"nz-page-header-content")(11,"cvc-tab-navigation",9),t.nI1(12,"ngrxPush"),t.DNE(13,k,2,1,"ng-template",null,0,t.C5r),t.k0s(),t.j41(15,"div",10),t.nrm(16,"router-outlet"),t.k0s()()()(),t.bVm()),2&n){const o=m.ngIf,s=t.XpG();t.R7$(),t.Y8G("displayName",o.name),t.R7$(),t.Y8G("flags",t.bMT(3,6,s.flagsTotal$)),t.R7$(4),t.Y8G("nzTwotoneColor",t.bMT(7,8,"VariantGroup")),t.R7$(2),t.SpI(" ",o.name," "),t.R7$(),t.Y8G("ngrxLet",s.viewer$),t.R7$(2),t.Y8G("tabs",t.bMT(12,10,s.tabs$))}}let J=(()=>{class n{constructor(o,s,y){this.gql=o,this.viewerService=s,this.route=y,this.destroy$=new i.B,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 a.t(this.defaultTabs),this.routeSub=this.route.params.subscribe($=>{let W=this.gql.watch({variantGroupId:+$.variantGroupId}).valueChanges;this.loading$=W.pipe((0,z.E)("loading"),(0,b.Z)(!0)),this.variantGroup$=W.pipe((0,z.E)("data","variantGroup")),this.flagsTotal$=this.variantGroup$.pipe((0,z.E)("flags","totalCount")),this.variantGroup$.pipe((0,G.Q)(this.destroy$)).subscribe({next:N=>{this.tabs$.next(this.defaultTabs.map(x=>"Revisions"===x.tabLabel?{badgeCount:N?.revisions.totalCount,...x}:"Comments"===x.tabLabel?{badgeCount:N?.comments.totalCount,badgeColor:"#cccccc",...x}:x))}}),this.subscribable={id:+$.variantGroupId,entityType:f.V9U.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(f.IbX),t.rXU(p.q),t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[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"],[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"],["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(s,y){1&s&&(t.DNE(0,Q,17,12,"ng-container",2),t.nI1(1,"async")),2&s&&t.Y8G("ngIf",t.bMT(1,1,y.variantGroup$))},dependencies:[c.bT,T.Nj,d.n3,d.Wk,d.wQ,h.Dn,v.Uq,E.WB,E.k9,E.zR,E.ov,M.aO,I.c,S.p,P.U5,P.Dq,L.H,U.v,F.n,V.o,_.N,l.f,c.Jj,T.L9,g.R],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}"]})}return n})();var Z=e(4873);let H=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[c.MD,Z.A]})}return n})();var q=e(664);function tt(n,m){if(1&n&&t.nrm(0,"cvc-comment-list",1),2&n){const o=t.XpG();t.Y8G("commentable",o.commentable)}}let nt=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.commentable={entityType:f.T31.VariantGroup,id:+s.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(s,y){1&s&&t.DNE(0,tt,1,1,"cvc-comment-list",0),2&s&&t.Y8G("ngIf",y.commentable)},dependencies:[c.bT,q.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var et=e(7268);let at=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[c.MD,et.G]})}return n})();var it=e(4097);function ot(n,m){if(1&n&&t.nrm(0,"cvc-flag-list-and-filter",1),2&n){const o=t.XpG();t.Y8G("flaggable",o.flaggable)}}let st=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.flaggable={entityType:f.lD4.VariantGroup,id:+s.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(s,y){1&s&&t.DNE(0,ot,1,1,"cvc-flag-list-and-filter",0),2&s&&t.Y8G("ngIf",y.flaggable)},dependencies:[c.bT,it.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var rt=e(6371);let ct=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[c.MD,rt.O]})}return n})();var lt=e(4055);let pt=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.vgId=+s.variantGroupId,this.entityType=f.BlQ.VariantGroup})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(s,y){1&s&&t.nrm(0,"cvc-revisions-list-and-filter",0),2&s&&t.Y8G("id",y.vgId)("entityType",y.entityType)},dependencies:[lt.B],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Y=e(2e3),dt=e(8254),_t=e(9271),X=e(7391),gt=e(2142),ut=e(1209);let mt=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[c.MD,P.pc,v.f3,Y.WF,X.kT,dt.V,_t.l,gt.x,ut.k]})}return n})();var ht=e(6354),vt=e(6719),ft=e(3640),zt=e(7855),Ct=e(9062);function Et(n,m){if(1&n&&(t.j41(0,"p",12),t.EFF(1),t.k0s()),2&n){const o=t.XpG(3).ngIf;t.Y8G("nzEllipsisRows",14),t.R7$(),t.SpI(" ",o.description," ")}}function yt(n,m){1&n&&t.nrm(0,"cvc-empty-revisable",13)}function bt(n,m){if(1&n&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",10),t.DNE(2,Et,2,2,"p",11)(3,yt,1,0,"ng-template",null,0,t.C5r),t.k0s()()),2&n){const o=t.sdS(4),s=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",s.description)("ngIfElse",o)}}function Tt(n,m){1&n&&t.nrm(0,"cvc-source-tag",17),2&n&&t.Y8G("source",m.$implicit)}function Dt(n,m){if(1&n&&(t.qex(0),t.j41(1,"cvc-tag-list"),t.DNE(2,Tt,1,1,"cvc-source-tag",16),t.k0s(),t.bVm()),2&n){const o=t.XpG(3).ngIf;t.R7$(2),t.Y8G("ngForOf",o.sources)}}function Gt(n,m){1&n&&(t.j41(0,"span",18),t.EFF(1,"None specified"),t.k0s())}function Mt(n,m){if(1&n&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",14),t.DNE(2,Dt,3,1,"ng-container",15)(3,Gt,2,0,"ng-template",null,1,t.C5r),t.k0s()()),2&n){const o=t.sdS(4),s=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",s.sources.length>0)("ngIfElse",o)}}function Pt(n,m){1&n&&(t.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-space",7),t.DNE(3,bt,5,3,"nz-descriptions",8),t.k0s()(),t.j41(4,"nz-col",6)(5,"nz-space",7),t.DNE(6,Mt,5,3,"nz-descriptions",8),t.k0s()()()),2&n&&t.Y8G("nzGutter",16)}function Ot(n,m){if(1&n&&(t.qex(0),t.nrm(1,"cvc-variants-table",21),t.bVm()),2&n){const o=m.ngrxLet;t.R7$(),t.Mz_("cvcTitle","Variants in Variant Group ",null==o?null:o.name,""),t.Y8G("variantGroupId",null==o?null:o.id)}}function It(n,m){if(1&n&&(t.j41(0,"nz-row",5)(1,"nz-col",19),t.DNE(2,Ot,2,3,"ng-container",20),t.k0s()()),2&n){const o=t.XpG(2);t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("ngrxLet",o.variantGroup$)}}function xt(n,m){1&n&&(t.j41(0,"nz-space",3),t.DNE(1,Pt,7,1,"nz-row",4)(2,It,3,3,"nz-row",4),t.k0s())}let Rt=(()=>{class n{constructor(o,s,y){this.gql=o,this.viewerService=s,this.route=y,this.routeSub=this.route.params.subscribe($=>{this.viewer$=this.viewerService.viewer$;let N=this.gql.watch({variantGroupId:+$.variantGroupId}).valueChanges;this.subscribableEntity={id:+$.variantGroupId,entityType:f.V9U.VariantGroup},this.variantGroup$=N.pipe((0,z.E)("data","variantGroup")),this.loading$=N.pipe((0,z.E)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,z.E)("myVariantGroupInfoDetails"),(0,ht.T)(x=>JSON.parse(String(x))))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(f.sAe),t.rXU(p.q),t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-summary"]],decls:2,vars:3,consts:[["noDescription",""],["noSources",""],["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"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(s,y){1&s&&(t.DNE(0,xt,3,0,"nz-space",2),t.nI1(1,"ngrxPush")),2&s&&t.Y8G("ngIf",t.bMT(1,1,y.variantGroup$))},dependencies:[c.Sq,c.bT,T.Nj,P.U5,P.Dq,v.Uq,v.e,Y.xA,Y.gr,X.Di,vt.Q,ft.k,zt.M,Ct.D,T.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return n})();var Vt=e(326);let St=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[c.MD,Vt.p]})}return n})();var Lt=e(9543);const Ut=[{path:"",component:J,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Rt,data:{breadcrumb:"Summary"}},{path:"comments",component:nt,data:{breadcrumb:"Comments"}},{path:"revisions",component:pt,data:{breadcrumb:"Revisions"}},{path:"flags",component:st,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class n{constructor(o){this.route=o,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:f.V9U.VariantGroup}}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(s,y){1&s&&t.nrm(0,"cvc-event-feed",0),2&s&&t.Y8G("subscribable",y.subscribable)},dependencies:[Lt.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Events"}}]}];let Ft=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[d.iI.forChild(Ut),mt,H,ct,at,St,d.iI]})}return n})();var $t=e(4124),Nt=e(5736),Bt=e(1896),At=e(1532),Yt=e(8103),Wt=e(4917);let Xt=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[c.MD,Ft,h.Y3,v.f3,E.ZJ,M.Zw,P.pc,Bt.Y,Wt.i,$t.C,Nt.V,At.W,Yt.m]})}return n})()},7481:(R,D,e)=>{e.d(D,{$:()=>_,u:()=>V});var c=e(4707),d=e(7336),i=e(177),a=e(3953),f=e(9417),b=e(1413),G=e(3726),z=e(6977),t=e(6042),p=e(7806),T=e(5930),h=e(5103),v=e(851),E=e(8203);const M=["switchElement"];function I(l,g){1&l&&a.nrm(0,"span",8)}function S(l,g){if(1&l&&(a.qex(0),a.EFF(1),a.bVm()),2&l){const r=a.XpG(2);a.R7$(),a.JRh(r.nzCheckedChildren)}}function P(l,g){if(1&l&&(a.qex(0),a.DNE(1,S,2,1,"ng-container",9),a.bVm()),2&l){const r=a.XpG();a.R7$(),a.Y8G("nzStringTemplateOutlet",r.nzCheckedChildren)}}function L(l,g){if(1&l&&(a.qex(0),a.EFF(1),a.bVm()),2&l){const r=a.XpG(2);a.R7$(),a.JRh(r.nzUnCheckedChildren)}}function U(l,g){if(1&l&&a.DNE(0,L,2,1,"ng-container",9),2&l){const r=a.XpG();a.Y8G("nzStringTemplateOutlet",r.nzUnCheckedChildren)}}let V=(()=>{class l{updateValue(r){this.isChecked!==r&&(this.isChecked=r,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(r,u,C,O,B,A){this.nzConfigService=r,this.host=u,this.ngZone=C,this.cdr=O,this.focusMonitor=B,this.directionality=A,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new b.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,z.Q)(this.destroy$)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,G.R)(this.host.nativeElement,"click").pipe((0,z.Q)(this.destroy$)).subscribe(r=>{r.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,z.Q)(this.destroy$)).subscribe(r=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:u}=r;u!==d.UQ&&u!==d.LE&&u!==d.t6&&u!==d.Fm||(r.preventDefault(),this.ngZone.run(()=>{u===d.UQ?this.updateValue(!1):u===d.LE?this.updateValue(!0):(u===d.t6||u===d.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.Q)(this.destroy$)).subscribe(r=>{r||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(r){this.isChecked=r,this.cdr.markForCheck()}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||r,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(u){return new(u||l)(a.rXU(t.yx),a.rXU(a.aKT),a.rXU(a.SKi),a.rXU(a.gRc),a.rXU(v.FN),a.rXU(E.dS,8))};static#n=this.\u0275cmp=a.VBU({type:l,selectors:[["nz-switch"]],viewQuery:function(u,C){if(1&u&&a.GBs(M,7),2&u){let O;a.mGM(O=a.lsd())&&(C.switchElement=O.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",a.L39],nzDisabled:[2,"nzDisabled","nzDisabled",a.L39],nzControl:[2,"nzControl","nzControl",a.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[a.Jv_([{provide:f.kq,useExisting:(0,a.Rfq)(()=>l),multi:!0}]),a.GFd,a.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(u,C){if(1&u&&(a.j41(0,"button",2,0)(2,"span",3),a.DNE(3,I,1,0,"span",4),a.k0s(),a.j41(4,"span",5),a.DNE(5,P,2,1,"ng-container",6)(6,U,1,1,"ng-template",null,1,a.C5r),a.k0s(),a.nrm(8,"div",7),a.k0s()),2&u){const O=a.sdS(7);a.AVh("ant-switch-checked",C.isChecked)("ant-switch-loading",C.nzLoading)("ant-switch-disabled",C.nzDisabled)("ant-switch-small","small"===C.nzSize)("ant-switch-rtl","rtl"===C.dir),a.Y8G("disabled",C.nzDisabled)("nzWaveExtraNode",!0),a.BMQ("id",C.nzId),a.R7$(3),a.Y8G("ngIf",C.nzLoading),a.R7$(2),a.Y8G("ngIf",C.isChecked)("ngIfElse",O)}},dependencies:[T.o7,T.p,h.Y3,h.Dn,i.bT,p.C,p.m],encapsulation:2,changeDetection:0})}return(0,c.Cg)([(0,t.H4)()],l.prototype,"nzSize",void 0),l})(),_=(()=>{class l{static#t=this.\u0275fac=function(u){return new(u||l)};static#n=this.\u0275mod=a.$C({type:l});static#e=this.\u0275inj=a.G2t({imports:[V]})}return l})()}}]); \ No newline at end of file diff --git a/server/public/5813.2754cd76fca31059.js b/server/public/5813.2754cd76fca31059.js new file mode 100644 index 000000000..86a99c1ab --- /dev/null +++ b/server/public/5813.2754cd76fca31059.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5813],{9045:(R,T,e)=>{e.d(T,{J:()=>S});var r=e(6514),d=e(505),i=e(3953),a=e(177),z=e(1188),y=e(5699),M=e(1236),C=e(5103),t=e(8011),v=e(2387),G=e(3075);const l=(_,p,g)=>({rejected:_,submitted:p,accepted:g});function f(_,p){}function u(_,p){if(1&_&&(i.qex(0),i.j41(1,"a",5),i.DNE(2,f,0,0,"ng-template",6),i.k0s(),i.bVm()),2&_){const g=i.XpG(),c=i.sdS(2);i.R7$(),i.Y8G("routerLink",g.evidence.link),i.R7$(),i.Y8G("ngTemplateOutlet",c)}}function b(_,p){}function V(_,p){if(1&_&&i.nrm(0,"cvc-evidence-popover",9),2&_){const g=i.XpG(3);i.Y8G("evidenceId",g.evidence.id)}}function x(_,p){if(1&_&&i.DNE(0,V,1,1,"cvc-evidence-popover",8),2&_){const g=i.XpG(2);i.Y8G("ngIf",g.enablePopover)}}function P(_,p){if(1&_&&(i.j41(0,"nz-tag",7),i.DNE(1,b,0,0,"ng-template",6),i.k0s(),i.DNE(2,x,1,1,"ng-template",null,3,i.C5r)),2&_){const g=i.sdS(3),c=i.XpG(),m=i.sdS(6);i.Y8G("ngClass",i.sMw(5,l,"REJECTED"===c.evidence.status,"SUBMITTED"===c.evidence.status,"ACCEPTED"===c.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",g)("nzPopoverTrigger",c.enablePopover?"hover":null),i.R7$(),i.Y8G("ngTemplateOutlet",m)}}function L(_,p){}function U(_,p){if(1&_&&i.DNE(0,L,0,0,"ng-template",6),2&_){i.XpG();const g=i.sdS(2);i.Y8G("ngTemplateOutlet",g)}}function F(_,p){if(1&_&&(i.j41(0,"cvc-icon-badges",10),i.nrm(1,"i",11),i.nI1(2,"entityColor"),i.nI1(3,"entityColor"),i.k0s(),i.EFF(4)),2&_){const g=i.XpG();i.Y8G("flagged",g.evidence.flagged)("entityColor",g.iconColor),i.R7$(),i.Y8G("nzTwotoneColor","REJECTED"===g.evidence.status?i.bMT(2,4,"Rejected"):i.bMT(3,6,"EvidenceItem")),i.R7$(3),i.SpI(" ",g.evidence.name,"\n")}}let S=(()=>{class _ extends r.s{set evidence(g){if(!g)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=g}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,d.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(c){return new(c||_)};static#n=this.\u0275cmp=i.VBU({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[i.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(c,m){if(1&c&&i.DNE(0,u,3,2,"ng-container",4)(1,P,4,9,"ng-template",null,0,i.C5r)(3,U,1,1,"ng-template",null,1,i.C5r)(5,F,5,8,"ng-template",null,2,i.C5r),2&c){const E=i.sdS(4);i.Y8G("ngIf",m.linked)("ngIfElse",E)}},dependencies:[a.YU,a.bT,a.T3,z.Wk,y.s,M.L_,C.Dn,t.S,v.N,G.R],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}"]})}return _})()},6936:(R,T,e)=>{e.d(T,{G:()=>G});var r=e(177),d=e(1188),i=e(5699),a=e(1236),z=e(5103),y=e(4666),M=e(4917),C=e(3146),t=e(4994),v=e(3953);let G=(()=>{class l{static#t=this.\u0275fac=function(b){return new(b||l)};static#n=this.\u0275mod=v.$C({type:l});static#e=this.\u0275inj=v.G2t({imports:[r.MD,d.iI,C.W2,i.T,a.MC,z.Y3,y.v,M.i,t.a]})}return l})()},6719:(R,T,e)=>{e.d(T,{Q:()=>G});var r=e(3953),d=e(177),i=e(1672),a=e(5103);function z(l,f){if(1&l&&(r.j41(0,"span",5),r.EFF(1),r.k0s()),2&l){const u=r.XpG(2);r.R7$(),r.JRh(u.notification)}}function y(l,f){1&l&&r.EFF(0," Not specified ")}function M(l,f){if(1&l&&r.DNE(0,z,2,1,"span",4)(1,y,1,0,"ng-template",null,2,r.C5r),2&l){const u=r.sdS(2),b=r.XpG();r.Y8G("ngIf",b.notification)("ngIfElse",u)}}function C(l,f){if(1&l&&(r.j41(0,"a",6),r.nrm(1,"i",7),r.k0s()),2&l){const u=r.XpG(2);r.Y8G("href",u.reviseFormPath,r.B4B)}}function t(l,f){1&l&&r.nrm(0,"i",7)}function v(l,f){if(1&l&&r.DNE(0,C,2,1,"a",6)(1,t,1,0,"i",7),2&l){const u=r.XpG();r.vxM(u.reviseFormPath?0:1)}}let G=(()=>{class l{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(b){return new(b||l)};static#n=this.\u0275cmp=r.VBU({type:l,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification",reviseFormPath:"reviseFormPath"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["target","_blank",3,"href"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(b,V){if(1&b&&(r.nrm(0,"nz-empty",3),r.DNE(1,M,3,2,"ng-template",null,0,r.C5r)(3,v,2,1,"ng-template",null,1,r.C5r)),2&b){const x=r.sdS(2),P=r.sdS(4);r.Y8G("nzNotFoundContent",x)("nzNotFoundImage",P)}},dependencies:[d.bT,i.RW,a.Dn],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%}"]})}return l})()},8254:(R,T,e)=>{e.d(T,{V:()=>z});var r=e(177),d=e(1672),i=e(5103),a=e(3953);let z=(()=>{class y{static#t=this.\u0275fac=function(t){return new(t||y)};static#n=this.\u0275mod=a.$C({type:y});static#e=this.\u0275inj=a.G2t({imports:[r.MD,d._v,i.Y3]})}return y})()},5128:(R,T,e)=>{e.d(T,{K:()=>t});var r=e(177),d=e(8524),i=e(3953),a=e(9417),z=e(1011);const M={name:"comment-textarea",component:(()=>{class v extends d.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(l,f)=>`Comments must be at least ${f.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let l;return function(u){return(l||(l=i.xGo(v)))(u||v)}})();static#n=this.\u0275cmp=i.VBU({type:v,selectors:[["comment-textarea-type"]],features:[i.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(f,u){1&f&&i.nrm(0,"textarea",0),2&f&&i.Y8G("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[a.me,a.BC,a.l_,d.ch,z.Sy],encapsulation:2,changeDetection:0})}return v})(),wrappers:["form-field"]};var C=e(8927);let t=(()=>{class v{static#t=this.\u0275fac=function(f){return new(f||v)};static#n=this.\u0275mod=i.$C({type:v});static#e=this.\u0275inj=i.G2t({imports:[r.MD,a.X1,d.qy.forChild({types:[M]}),C.PQ,z.j]})}return v})()},5791:(R,T,e)=>{e.r(T),e.d(T,{VariantGroupsDetailModule:()=>Xt});var r=e(177),d=e(1188),i=e(1413),a=e(4412),z=e(9145),y=e(9172),M=e(6977),C=e(4608),t=e(3953),v=e(1305),G=e(1774),l=e(5103),f=e(7529),u=e(3062),b=e(513),V=e(6389),x=e(5930),P=e(7685),L=e(8821),U=e(7428),F=e(9765),S=e(5269),_=e(9945),p=e(6269),g=e(3075);const c=n=>["/variant-groups",n,"revise"];function m(n,h){if(1&n&&(t.j41(0,"button",15,1),t.EFF(2," Revise "),t.k0s()),2&n){const o=t.sdS(1),s=t.XpG(4).ngIf;t.Y8G("routerLink",t.eq3(2,c,s.id))("nzType",o.isActive?"primary":"default")}}function E(n,h){if(1&n&&(t.j41(0,"span"),t.DNE(1,m,3,4,"button",14),t.k0s()),2&n){const o=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function O(n,h){if(1&n&&(t.j41(0,"button",17,1),t.EFF(2," Flag "),t.k0s()),2&n){const o=t.sdS(1);t.Y8G("nzType",o.isActive?"primary":"default")}}function B(n,h){if(1&n&&(t.j41(0,"span"),t.DNE(1,O,3,1,"button",16),t.k0s()),2&n){const o=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function A(n,h){if(1&n&&t.nrm(0,"cvc-entity-subscription-button",19),2&n){const o=t.XpG(2).ngrxLet,s=t.XpG(3);t.Y8G("viewer",o)("subscribableId",s.subscribable.id)}}function W(n,h){if(1&n&&(t.j41(0,"span"),t.DNE(1,A,1,2,"cvc-entity-subscription-button",18),t.k0s()),2&n){const o=t.XpG().ngrxLet,s=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.signedIn&&s.subscribable)}}function K(n,h){1&n&&(t.j41(0,"nz-space",12),t.DNE(1,E,2,1,"span",13)(2,B,2,1,"span",13)(3,W,2,1,"span",13),t.k0s())}function w(n,h){if(1&n&&(t.j41(0,"nz-page-header-extra"),t.DNE(1,K,4,0,"nz-space",11),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("ngrxLet",o.viewer$)}}function k(n,h){if(1&n&&(t.j41(0,"nz-col",20),t.nrm(1,"cvc-contributor-avatars",21),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("subscribable",o.subscribable)}}function Q(n,h){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",3),t.j41(2,"div",4),t.nI1(3,"ngrxPush"),t.j41(4,"nz-page-header",5)(5,"nz-page-header-title",6),t.nrm(6,"i",7),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.DNE(9,w,2,1,"nz-page-header-extra",8),t.j41(10,"nz-page-header-content")(11,"cvc-tab-navigation",9),t.nI1(12,"ngrxPush"),t.DNE(13,k,2,1,"ng-template",null,0,t.C5r),t.k0s(),t.j41(15,"div",10),t.nrm(16,"router-outlet"),t.k0s()()()(),t.bVm()),2&n){const o=h.ngIf,s=t.XpG();t.R7$(),t.Y8G("displayName",o.name),t.R7$(),t.Y8G("flags",t.bMT(3,6,s.flagsTotal$)),t.R7$(4),t.Y8G("nzTwotoneColor",t.bMT(7,8,"VariantGroup")),t.R7$(2),t.SpI(" ",o.name," "),t.R7$(),t.Y8G("ngrxLet",s.viewer$),t.R7$(2),t.Y8G("tabs",t.bMT(12,10,s.tabs$))}}let J=(()=>{class n{constructor(o,s,D){this.gql=o,this.viewerService=s,this.route=D,this.destroy$=new i.B,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 a.t(this.defaultTabs),this.routeSub=this.route.params.subscribe($=>{let j=this.gql.watch({variantGroupId:+$.variantGroupId}).valueChanges;this.loading$=j.pipe((0,C.E)("loading"),(0,y.Z)(!0)),this.variantGroup$=j.pipe((0,C.E)("data","variantGroup")),this.flagsTotal$=this.variantGroup$.pipe((0,C.E)("flags","totalCount")),this.variantGroup$.pipe((0,M.Q)(this.destroy$)).subscribe({next:N=>{this.tabs$.next(this.defaultTabs.map(I=>"Revisions"===I.tabLabel?{badgeCount:N?.revisions.totalCount,...I}:"Comments"===I.tabLabel?{badgeCount:N?.comments.totalCount,badgeColor:"#cccccc",...I}:I))}}),this.subscribable={id:+$.variantGroupId,entityType:z.V9U.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(z.IbX),t.rXU(v.q),t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[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"],[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"],["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(s,D){1&s&&(t.DNE(0,Q,17,12,"ng-container",2),t.nI1(1,"async")),2&s&&t.Y8G("ngIf",t.bMT(1,1,D.variantGroup$))},dependencies:[r.bT,G.Nj,d.n3,d.Wk,d.wQ,l.Dn,f.Uq,u.WB,u.k9,u.zR,u.ov,b.aO,V.c,x.p,P.U5,P.Dq,L.H,U.v,F.n,S.o,_.N,p.f,r.Jj,G.L9,g.R],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}"]})}return n})();var Z=e(4873);let H=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,Z.A]})}return n})();var q=e(664);function tt(n,h){if(1&n&&t.nrm(0,"cvc-comment-list",1),2&n){const o=t.XpG();t.Y8G("commentable",o.commentable)}}let nt=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.commentable={entityType:z.T31.VariantGroup,id:+s.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(s,D){1&s&&t.DNE(0,tt,1,1,"cvc-comment-list",0),2&s&&t.Y8G("ngIf",D.commentable)},dependencies:[r.bT,q.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var et=e(7268);let at=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,et.G]})}return n})();var it=e(4097);function ot(n,h){if(1&n&&t.nrm(0,"cvc-flag-list-and-filter",1),2&n){const o=t.XpG();t.Y8G("flaggable",o.flaggable)}}let st=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.flaggable={entityType:z.lD4.VariantGroup,id:+s.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(s,D){1&s&&t.DNE(0,ot,1,1,"cvc-flag-list-and-filter",0),2&s&&t.Y8G("ngIf",D.flaggable)},dependencies:[r.bT,it.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var rt=e(6371);let ct=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,rt.O]})}return n})();var lt=e(4055);let pt=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.subject={id:+s.variantGroupId,entityType:z.BlQ.VariantGroup}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(s,D){1&s&&t.nrm(0,"cvc-revisions-list-and-filter",0),2&s&&t.Y8G("moderated",D.subject)},dependencies:[lt.B],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Y=e(2e3),dt=e(8254),_t=e(9271),X=e(7391),gt=e(2142),mt=e(1209);let ut=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,P.pc,f.f3,Y.WF,X.kT,dt.V,_t.l,gt.x,mt.k]})}return n})();var ht=e(6354),vt=e(6719),ft=e(3640),zt=e(7855),Ct=e(9062);function Et(n,h){if(1&n&&(t.j41(0,"p",12),t.EFF(1),t.k0s()),2&n){const o=t.XpG(3).ngIf;t.Y8G("nzEllipsisRows",14),t.R7$(),t.SpI(" ",o.description," ")}}function yt(n,h){1&n&&t.nrm(0,"cvc-empty-revisable",13)}function bt(n,h){if(1&n&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",10),t.DNE(2,Et,2,2,"p",11)(3,yt,1,0,"ng-template",null,0,t.C5r),t.k0s()()),2&n){const o=t.sdS(4),s=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",s.description)("ngIfElse",o)}}function Dt(n,h){1&n&&t.nrm(0,"cvc-source-tag",17),2&n&&t.Y8G("source",h.$implicit)}function Tt(n,h){if(1&n&&(t.qex(0),t.j41(1,"cvc-tag-list"),t.DNE(2,Dt,1,1,"cvc-source-tag",16),t.k0s(),t.bVm()),2&n){const o=t.XpG(3).ngIf;t.R7$(2),t.Y8G("ngForOf",o.sources)}}function Gt(n,h){1&n&&(t.j41(0,"span",18),t.EFF(1,"None specified"),t.k0s())}function Mt(n,h){if(1&n&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",14),t.DNE(2,Tt,3,1,"ng-container",15)(3,Gt,2,0,"ng-template",null,1,t.C5r),t.k0s()()),2&n){const o=t.sdS(4),s=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",s.sources.length>0)("ngIfElse",o)}}function Pt(n,h){1&n&&(t.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-space",7),t.DNE(3,bt,5,3,"nz-descriptions",8),t.k0s()(),t.j41(4,"nz-col",6)(5,"nz-space",7),t.DNE(6,Mt,5,3,"nz-descriptions",8),t.k0s()()()),2&n&&t.Y8G("nzGutter",16)}function Ot(n,h){if(1&n&&(t.qex(0),t.nrm(1,"cvc-variants-table",21),t.bVm()),2&n){const o=h.ngrxLet;t.R7$(),t.Mz_("cvcTitle","Variants in Variant Group ",null==o?null:o.name,""),t.Y8G("variantGroupId",null==o?null:o.id)}}function xt(n,h){if(1&n&&(t.j41(0,"nz-row",5)(1,"nz-col",19),t.DNE(2,Ot,2,3,"ng-container",20),t.k0s()()),2&n){const o=t.XpG(2);t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("ngrxLet",o.variantGroup$)}}function It(n,h){1&n&&(t.j41(0,"nz-space",3),t.DNE(1,Pt,7,1,"nz-row",4)(2,xt,3,3,"nz-row",4),t.k0s())}let Rt=(()=>{class n{constructor(o,s,D){this.gql=o,this.viewerService=s,this.route=D,this.routeSub=this.route.params.subscribe($=>{this.viewer$=this.viewerService.viewer$;let N=this.gql.watch({variantGroupId:+$.variantGroupId}).valueChanges;this.subscribableEntity={id:+$.variantGroupId,entityType:z.V9U.VariantGroup},this.variantGroup$=N.pipe((0,C.E)("data","variantGroup")),this.loading$=N.pipe((0,C.E)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,C.E)("myVariantGroupInfoDetails"),(0,ht.T)(I=>JSON.parse(String(I))))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(z.sAe),t.rXU(v.q),t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-summary"]],decls:2,vars:3,consts:[["noDescription",""],["noSources",""],["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"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(s,D){1&s&&(t.DNE(0,It,3,0,"nz-space",2),t.nI1(1,"ngrxPush")),2&s&&t.Y8G("ngIf",t.bMT(1,1,D.variantGroup$))},dependencies:[r.Sq,r.bT,G.Nj,P.U5,P.Dq,f.Uq,f.e,Y.xA,Y.gr,X.Di,vt.Q,ft.k,zt.M,Ct.D,G.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return n})();var Vt=e(326);let St=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,Vt.p]})}return n})();var Lt=e(9543);const Ut=[{path:"",component:J,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Rt,data:{breadcrumb:"Summary"}},{path:"comments",component:nt,data:{breadcrumb:"Comments"}},{path:"revisions",component:pt,data:{breadcrumb:"Revisions"}},{path:"flags",component:st,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class n{constructor(o){this.route=o,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:z.V9U.VariantGroup}}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(s,D){1&s&&t.nrm(0,"cvc-event-feed",0),2&s&&t.Y8G("subscribable",D.subscribable)},dependencies:[Lt.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Events"}}]}];let Ft=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[d.iI.forChild(Ut),ut,H,ct,at,St,d.iI]})}return n})();var $t=e(4124),Nt=e(5736),Bt=e(1896),At=e(1532),Yt=e(8103),jt=e(4917);let Xt=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,Ft,l.Y3,f.f3,u.ZJ,b.Zw,P.pc,Bt.Y,jt.i,$t.C,Nt.V,At.W,Yt.m]})}return n})()},7481:(R,T,e)=>{e.d(T,{$:()=>_,u:()=>S});var r=e(4707),d=e(7336),i=e(177),a=e(3953),z=e(9417),y=e(1413),M=e(3726),C=e(6977),t=e(6042),v=e(7806),G=e(5930),l=e(5103),f=e(851),u=e(8203);const b=["switchElement"];function V(p,g){1&p&&a.nrm(0,"span",8)}function x(p,g){if(1&p&&(a.qex(0),a.EFF(1),a.bVm()),2&p){const c=a.XpG(2);a.R7$(),a.JRh(c.nzCheckedChildren)}}function P(p,g){if(1&p&&(a.qex(0),a.DNE(1,x,2,1,"ng-container",9),a.bVm()),2&p){const c=a.XpG();a.R7$(),a.Y8G("nzStringTemplateOutlet",c.nzCheckedChildren)}}function L(p,g){if(1&p&&(a.qex(0),a.EFF(1),a.bVm()),2&p){const c=a.XpG(2);a.R7$(),a.JRh(c.nzUnCheckedChildren)}}function U(p,g){if(1&p&&a.DNE(0,L,2,1,"ng-container",9),2&p){const c=a.XpG();a.Y8G("nzStringTemplateOutlet",c.nzUnCheckedChildren)}}let S=(()=>{class p{updateValue(c){this.isChecked!==c&&(this.isChecked=c,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(c,m,E,O,B,A){this.nzConfigService=c,this.host=m,this.ngZone=E,this.cdr=O,this.focusMonitor=B,this.directionality=A,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new y.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,C.Q)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,M.R)(this.host.nativeElement,"click").pipe((0,C.Q)(this.destroy$)).subscribe(c=>{c.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,M.R)(this.switchElement.nativeElement,"keydown").pipe((0,C.Q)(this.destroy$)).subscribe(c=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:m}=c;m!==d.UQ&&m!==d.LE&&m!==d.t6&&m!==d.Fm||(c.preventDefault(),this.ngZone.run(()=>{m===d.UQ?this.updateValue(!1):m===d.LE?this.updateValue(!0):(m===d.t6||m===d.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,C.Q)(this.destroy$)).subscribe(c=>{c||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(c){this.isChecked=c,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(m){return new(m||p)(a.rXU(t.yx),a.rXU(a.aKT),a.rXU(a.SKi),a.rXU(a.gRc),a.rXU(f.FN),a.rXU(u.dS,8))};static#n=this.\u0275cmp=a.VBU({type:p,selectors:[["nz-switch"]],viewQuery:function(m,E){if(1&m&&a.GBs(b,7),2&m){let O;a.mGM(O=a.lsd())&&(E.switchElement=O.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",a.L39],nzDisabled:[2,"nzDisabled","nzDisabled",a.L39],nzControl:[2,"nzControl","nzControl",a.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[a.Jv_([{provide:z.kq,useExisting:(0,a.Rfq)(()=>p),multi:!0}]),a.GFd,a.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(m,E){if(1&m&&(a.j41(0,"button",2,0)(2,"span",3),a.DNE(3,V,1,0,"span",4),a.k0s(),a.j41(4,"span",5),a.DNE(5,P,2,1,"ng-container",6)(6,U,1,1,"ng-template",null,1,a.C5r),a.k0s(),a.nrm(8,"div",7),a.k0s()),2&m){const O=a.sdS(7);a.AVh("ant-switch-checked",E.isChecked)("ant-switch-loading",E.nzLoading)("ant-switch-disabled",E.nzDisabled)("ant-switch-small","small"===E.nzSize)("ant-switch-rtl","rtl"===E.dir),a.Y8G("disabled",E.nzDisabled)("nzWaveExtraNode",!0),a.BMQ("id",E.nzId),a.R7$(3),a.Y8G("ngIf",E.nzLoading),a.R7$(2),a.Y8G("ngIf",E.isChecked)("ngIfElse",O)}},dependencies:[G.o7,G.p,l.Y3,l.Dn,i.bT,v.C,v.m],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,t.H4)()],p.prototype,"nzSize",void 0),p})(),_=(()=>{class p{static#t=this.\u0275fac=function(m){return new(m||p)};static#n=this.\u0275mod=a.$C({type:p});static#e=this.\u0275inj=a.G2t({imports:[S]})}return p})()}}]); \ No newline at end of file diff --git a/server/public/5861.b84a2f2b82db2c2a.js b/server/public/5861.b84a2f2b82db2c2a.js deleted file mode 100644 index 714f92533..000000000 --- a/server/public/5861.b84a2f2b82db2c2a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5861],{9045:(Dn,M,o)=>{o.d(M,{J:()=>$});var _=o(6514),k=o(505),r=o(3953),x=o(177),P=o(1188),O=o(5699),X=o(1236),L=o(5103),F=o(8011),z=o(2387),v=o(3075);const A=(s,u,l)=>({rejected:s,submitted:u,accepted:l});function w(s,u){}function U(s,u){if(1&s&&(r.qex(0),r.j41(1,"a",5),r.DNE(2,w,0,0,"ng-template",6),r.k0s(),r.bVm()),2&s){const l=r.XpG(),f=r.sdS(2);r.R7$(),r.Y8G("routerLink",l.evidence.link),r.R7$(),r.Y8G("ngTemplateOutlet",f)}}function B(s,u){}function q(s,u){if(1&s&&r.nrm(0,"cvc-evidence-popover",9),2&s){const l=r.XpG(3);r.Y8G("evidenceId",l.evidence.id)}}function y(s,u){if(1&s&&r.DNE(0,q,1,1,"cvc-evidence-popover",8),2&s){const l=r.XpG(2);r.Y8G("ngIf",l.enablePopover)}}function G(s,u){if(1&s&&(r.j41(0,"nz-tag",7),r.DNE(1,B,0,0,"ng-template",6),r.k0s(),r.DNE(2,y,1,1,"ng-template",null,3,r.C5r)),2&s){const l=r.sdS(3),f=r.XpG(),n=r.sdS(6);r.Y8G("ngClass",r.sMw(5,A,"REJECTED"===f.evidence.status,"SUBMITTED"===f.evidence.status,"ACCEPTED"===f.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",f.enablePopover?"hover":null),r.R7$(),r.Y8G("ngTemplateOutlet",n)}}function I(s,u){}function V(s,u){if(1&s&&r.DNE(0,I,0,0,"ng-template",6),2&s){r.XpG();const l=r.sdS(2);r.Y8G("ngTemplateOutlet",l)}}function m(s,u){if(1&s&&(r.j41(0,"cvc-icon-badges",10),r.nrm(1,"i",11),r.nI1(2,"entityColor"),r.nI1(3,"entityColor"),r.k0s(),r.EFF(4)),2&s){const l=r.XpG();r.Y8G("flagged",l.evidence.flagged)("entityColor",l.iconColor),r.R7$(),r.Y8G("nzTwotoneColor","REJECTED"===l.evidence.status?r.bMT(2,4,"Rejected"):r.bMT(3,6,"EvidenceItem")),r.R7$(3),r.SpI(" ",l.evidence.name,"\n")}}let $=(()=>{class s extends _.s{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.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(f,n){if(1&f&&r.DNE(0,U,3,2,"ng-container",4)(1,G,4,9,"ng-template",null,0,r.C5r)(3,V,1,1,"ng-template",null,1,r.C5r)(5,m,5,8,"ng-template",null,2,r.C5r),2&f){const H=r.sdS(4);r.Y8G("ngIf",n.linked)("ngIfElse",H)}},dependencies:[x.YU,x.bT,x.T3,P.Wk,O.s,X.L_,L.Dn,F.S,z.N,v.R],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}"]})}return s})()},3153:(Dn,M,o)=>{o.r(M),o.d(M,{VariantsDetailModule:()=>Pi});var _=o(177),k=o(7169),r=o(6912),x=o(1896),P=o(8103),O=o(5736),X=o(4124),L=o(1532),F=o(4917),z=o(9417),v=o(1188),A=o(996),w=o(4308),U=o(3842),B=o(8492),q=o(8692),y=o(3617),G=o(513),I=o(5703),V=o(8927),m=o(7529),$=o(1997),s=o(7685),u=o(2983),l=o(5154),f=o(7391),n=o(3953);let H=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,v.iI,z.YN,z.X1,V.PQ,y.$,m.f3,G.Zw,u.V,I.Ti,s.pc,f.kT,l.Qt,$.DH,B.M,U.k,q.j,w.I,A.o]})}return t})();var J=o(5103),T=o(3062),en=o(1236),C=o(9145),an=o(9172),j=o(6977),b=o(4608),on=o(1413),rn=o(4412),cn=o(1305),S=o(1774),sn=o(6389),_n=o(5930),Yn=o(6269),Mn=o(9945),jn=o(8821),Nn=o(7428),W=o(3245),kn=o(9765),Pn=o(5269),On=o(4126),Xn=o(1635),Ln=o(1226),D=o(6354),ln=o(5964),pn=o(9199),gn=o(9894),An=o(4222),wn=o(1939),Un=o(5566),Bn=o(5473);function qn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function Hn(t,a){if(1&t&&n.DNE(0,qn,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function Jn(t,a){if(1&t&&(n.j41(0,"nz-alert",20),n.DNE(1,Hn,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function Wn(t,a){1&t&&(n.qex(0),n.DNE(1,Jn,3,1,"nz-alert",19),n.bVm())}function Kn(t,a){if(1&t&&(n.qex(0),n.DNE(1,Wn,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function Qn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function Zn(t,a){if(1&t&&n.DNE(0,Qn,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function nt(t,a){if(1&t&&(n.j41(0,"nz-alert",24),n.DNE(1,Zn,1,1,"ng-template",null,2,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function tt(t,a){1&t&&(n.qex(0),n.DNE(1,nt,3,1,"nz-alert",23),n.bVm())}function et(t,a){if(1&t&&(n.qex(0),n.DNE(1,tt,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function at(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",25),n.bIt("nzOnClose",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.onSuccessBannerClose())}),n.k0s()}}function it(t,a){if(1&t&&n.nrm(0,"nz-alert",26),2&t){n.XpG();const e=n.sdS(9);n.Y8G("nzDescription",e)}}function ot(t,a){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function rt(t,a){if(1&t&&(n.j41(0,"ul"),n.DNE(1,ot,2,1,"li",21),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.errorMessages)}}function ct(t,a){}function st(t,a){1&t&&n.DNE(0,ct,0,0,"ng-template")}function _t(t,a){if(1&t&&(n.qex(0),n.DNE(1,st,1,0,null,28),n.bVm()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function lt(t,a){}function pt(t,a){1&t&&n.DNE(0,lt,0,0,"ng-template")}function gt(t,a){if(1&t&&(n.j41(0,"span",29),n.DNE(1,pt,1,0,null,28),n.k0s()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function mt(t,a){if(1&t&&(n.j41(0,"button",30),n.EFF(1," Deprecate Variant "),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG();n.Y8G("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 ft(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-form-buttons"),n.DNE(2,_t,2,1,"ng-container",27)(3,gt,2,1,"ng-template",null,3,n.C5r)(5,mt,2,3,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&t){const e=a.ngrxLet,i=n.sdS(4);n.R7$(2),n.Y8G("ngIf",e.signedIn&&e.isEditor)("ngIfElse",i)}}let K=class tn{constructor(a,e,i,c,p,d){this.deprecateVariantGQL=a,this.variantDetailGQL=e,this.mpsForVariantGQL=i,this.networkErrorService=c,this.route=p,this.viewerService=d,this.destroy$=new on.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateVariantMutator=new Ln.E(c),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,gn.s)(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,D.T)(({data:e})=>e.molecularProfiles.nodes),(0,ln.p)(pn.kP),(0,D.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount==0))),this.mpsWithEvidence$=a.pipe((0,D.T)(({data:e})=>e.molecularProfiles.nodes),(0,ln.p)(pn.kP),(0,D.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount>0))),this.mpListLoading$=a.pipe((0,D.T)(({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,j.Q)(this.destroy$)).subscribe(i=>{i&&(this.success=!0,this.comment="")}),e.submitError$.pipe((0,j.Q)(this.destroy$)).subscribe(i=>{i.length>0&&(this.errorMessages=i)}),e.isSubmitting$.pipe((0,j.Q)(this.destroy$)).subscribe(i=>{this.loading=i})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(e){return new(e||tn)(n.rXU(C.FP9),n.rXU(C.N47),n.rXU(C.pCs),n.rXU(An.N),n.rXU(v.nX),n.rXU(cn.q))};static#t=this.\u0275cmp=n.VBU({type:tn,selectors:[["cvc-variant-deprecate-form"]],inputs:{variantId:"variantId"},decls:21,vars:11,consts:[["errorContents",""],["mpsToDeprecateTpl",""],["mpsWithEvidenceTpl",""],["notSignedIn",""],["submitButton",""],[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"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["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"],[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"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription"],[4,"ngIf","ngIfElse"],[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(e,i){if(1&e){const c=n.RV6();n.j41(0,"nz-spin",5),n.nI1(1,"ngrxPush"),n.j41(2,"nz-space",6),n.DNE(3,Kn,2,1,"ng-container",7)(4,et,2,1,"ng-container",7),n.k0s()(),n.j41(5,"nz-card",8),n.DNE(6,at,1,0,"nz-alert",9)(7,it,1,1,"nz-alert",10)(8,rt,2,1,"ng-template",null,0,n.C5r),n.j41(10,"nz-form-item")(11,"nz-select",11),n.mxI("ngModelChange",function(d){return n.eBV(c),n.DH7(i.reason,d)||(i.reason=d),n.Njj(d)}),n.nrm(12,"nz-option",12)(13,"nz-option",13)(14,"nz-option",14),n.k0s()(),n.j41(15,"form",15),n.bIt("ngSubmit",function(){return n.eBV(c),n.Njj(i.deprecateVariant())}),n.j41(16,"cvc-comment-input-form",16),n.mxI("commentChange",function(d){return n.eBV(c),n.DH7(i.comment,d)||(i.comment=d),n.Njj(d)}),n.k0s(),n.j41(17,"nz-spin",17)(18,"nz-form-item")(19,"nz-form-control"),n.DNE(20,ft,7,2,"ng-container",7),n.k0s()()()()()}2&e&&(n.Y8G("nzSpinning",n.bMT(1,9,i.mpListLoading$)),n.R7$(3),n.Y8G("ngrxLet",i.mpsToDeprecate$),n.R7$(),n.Y8G("ngrxLet",i.mpsWithEvidence$),n.R7$(2),n.Y8G("ngIf",i.success),n.R7$(),n.Y8G("ngIf",i.errorMessages.length>0),n.R7$(4),n.R50("ngModel",i.reason),n.R7$(5),n.R50("comment",i.comment),n.R7$(),n.Y8G("nzSpinning",i.loading),n.R7$(3),n.Y8G("ngrxLet",i.viewer$))},dependencies:[_.Sq,_.bT,_.T3,z.qT,z.BC,z.cb,z.vS,z.cV,S.Nj,m.Uq,m.e,V.CA,V.Ls,V.zS,y.Y,G.aO,sn.c,_n.p,u.a,I.cK,s.U5,s.Dq,l.LH,$.ld,$.WI,wn.l,Un.K,Bn.z,S.L9],encapsulation:2,changeDetection:0})};K=(0,Xn.Cg)([(0,gn.d)()],K);var vt=o(1845),dt=o(3075);const ut=t=>({flagged:t}),It=t=>["/variants",t,"revise"],Ct=t=>({variantType:t}),zt=()=>[];function ht(t,a){if(1&t&&(n.j41(0,"span",19)(1,"strong"),n.EFF(2),n.k0s(),n.EFF(3," Parent:"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.JRh(e.name)}}function Et(t,a){if(1&t&&(n.j41(0,"span",20)(1,"a",21),n.nrm(2,"cvc-feature-tag",22),n.k0s()()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Mz_("routerLink","/features/",e.feature.id,""),n.R7$(),n.Y8G("feature",e.feature)}}function Ft(t,a){1&t&&(n.j41(0,"nz-space",16),n.DNE(1,ht,4,1,"span",17)(2,Et,3,3,"span",18),n.k0s())}function yt(t,a){1&t&&(n.j41(0,"span"),n.EFF(1,",\xa0"),n.k0s())}function Gt(t,a){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.DNE(2,yt,2,0,"span",5),n.k0s()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Vt(t,a){if(1&t&&(n.j41(0,"nz-page-header-subtitle"),n.DNE(1,Gt,3,2,"span",23),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.variantAliases)}}function Tt(t,a){if(1&t&&(n.j41(0,"button",28,3),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),i=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,It,i.id))("queryParams",n.eq3(5,Ct,i.__typename))("nzType",e.isActive?"primary":"default")}}function Rt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Tt,3,7,"button",27),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",null==e?null:e.signedIn)}}function xt(t,a){if(1&t&&(n.j41(0,"button",30,3),n.EFF(2," Flag "),n.k0s()),2&t){const e=n.sdS(1);n.Y8G("nzType",e.isActive?"primary":"default")}}function $t(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,xt,3,1,"button",29),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function bt(t,a){if(1&t&&(n.j41(0,"div",33),n.nrm(1,"cvc-variant-deprecate-form",34),n.k0s()),2&t){const e=n.XpG(5).ngIf;n.R7$(),n.Y8G("variantId",e.id)}}function St(t,a){if(1&t&&(n.j41(0,"button",32),n.EFF(1," Deprecate "),n.DNE(2,bt,2,1,"ng-template",null,4,n.C5r),n.k0s()),2&t){const e=n.sdS(3),i=n.XpG(4).ngIf;n.Y8G("disabled",i.deprecated)("nzPopoverContent",e)}}function Dt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,St,4,2,"button",31),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.isEditor)}}function Yt(t,a){if(1&t&&n.nrm(0,"cvc-entity-subscription-button",36),2&t){const e=n.XpG(2).ngrxLet,i=n.XpG(3);n.Y8G("viewer",e)("subscribableId",i.subscribable.id)}}function Mt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Yt,1,2,"cvc-entity-subscription-button",35),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG(3);n.R7$(),n.Y8G("ngIf",e.signedIn&&i.subscribable)}}function jt(t,a){1&t&&(n.j41(0,"nz-space",25),n.DNE(1,Rt,2,1,"span",26)(2,$t,2,1,"span",26)(3,Dt,2,1,"span",26)(4,Mt,2,1,"span",26),n.k0s())}function Nt(t,a){if(1&t&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,jt,5,0,"nz-space",24),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",e.viewer$)}}function kt(t,a){if(1&t&&n.nrm(0,"nz-alert",37),2&t){n.XpG();const e=n.sdS(18);n.Y8G("nzMessage",e)}}function Pt(t,a){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",38)),2&t){const e=n.XpG().ngIf;n.SpI(" This Variant has been deprecated for reason: ",n.bMT(1,2,e.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==e.deprecationActivity?null:e.deprecationActivity.parsedNote)||n.lJ4(4,zt))}}function Ot(t,a){if(1&t&&(n.j41(0,"nz-col",39),n.nrm(1,"cvc-contributor-avatars",40),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function Xt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",6),n.DNE(2,Ft,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",7),n.nI1(5,"ngrxPush"),n.j41(6,"nz-page-header",8)(7,"nz-page-header-title",9),n.nrm(8,"i",10),n.nI1(9,"entityColor"),n.j41(10,"span",11),n.EFF(11),n.k0s(),n.EFF(12),n.k0s(),n.DNE(13,Vt,2,1,"nz-page-header-subtitle",5)(14,Nt,2,1,"nz-page-header-extra",12),n.j41(15,"nz-page-header-content"),n.DNE(16,kt,1,1,"nz-alert",13)(17,Pt,3,5,"ng-template",null,1,n.C5r),n.j41(19,"cvc-tab-navigation",14),n.nI1(20,"ngrxPush"),n.DNE(21,Ot,2,1,"ng-template",null,2,n.C5r),n.k0s(),n.j41(23,"div",15),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&t){const e=a.ngIf,i=n.sdS(3),c=n.XpG();n.R7$(),n.Y8G("displayName",e.feature.name+" "+e.name)("relationsTpl",i),n.R7$(3),n.Y8G("flags",n.bMT(5,11,c.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(17,ut,e.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(9,13,"Variant")),n.R7$(3),n.SpI(" ",e.feature.name," "),n.R7$(),n.SpI(" ",e.name," "),n.R7$(),n.Y8G("ngIf",e.variantAliases.length>0),n.R7$(),n.Y8G("ngrxLet",c.viewer$),n.R7$(2),n.Y8G("ngIf",e.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,15,c.tabs$))}}let Lt=(()=>{class t{constructor(e,i,c){this.gql=e,this.viewerService=i,this.route=c,this.destroy$=new on.B,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.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(p=>{this.queryRef=this.gql.watch({variantId:+p.variantId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,b.E)("loading"),(0,an.Z)(!0)),this.variant$=d.pipe((0,b.E)("data","variant")),this.flagsTotal$=this.variant$.pipe((0,b.E)("flags","totalCount")),this.variant$.pipe((0,j.Q)(this.destroy$)).subscribe({next:Y=>{this.tabs$.next(this.defaultTabs.map(h=>"Revisions"===h.tabLabel?{badgeCount:Y?.revisions.totalCount,...h}:"Flags"===h.tabLabel?{badgeCount:Y?.flags.totalCount,...h}:"Comments"===h.tabLabel?{badgeCount:Y?.comments.totalCount,badgeColor:"#cccccc",...h}:h))}}),this.subscribable={id:+p.variantId,entityType:C.V9U.Variant}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(C.N47),n.rXU(cn.q),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[["variantRelations",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateVariantForm",""],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-typography","",2,"color","#bbb"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"feature"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["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"],[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(i,c){1&i&&(n.DNE(0,Xt,25,19,"ng-container",5),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,c.variant$))},dependencies:[_.YU,_.Sq,_.bT,v.n3,v.Wk,v.wQ,S.Nj,G.aO,sn.c,_n.p,J.Dn,T.WB,T.k9,T.CO,T.zR,T.ov,s.U5,s.Dq,m.Uq,y.Y,en.L_,f.Di,Yn.f,Mn.N,jn.H,Nn.v,W._,kn.n,Pn.o,On.p,K,S.L9,vt.f,dt.R],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}"]})}return t})();var At=o(4873);let wt=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,At.A]})}return t})();var Ut=o(664);let Bt=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.variantId,entityType:C.T31.Variant}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-comment-list",0),2&i&&n.Y8G("commentable",c.commentable)},dependencies:[Ut.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var qt=o(7268),Ht=o(1912);let Jt=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,m.f3,I.Ti,s.pc,Ht.i3,J.Y3,qt.G]})}return t})();var Wt=o(4097);let Kt=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:C.lD4.Variant,id:+this.route.snapshot.params.variantId}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-flag-list-and-filter",0),2&i&&n.Y8G("flaggable",c.flaggable)},dependencies:[Wt.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Qt=o(6371);let Zt=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,Qt.O]})}return t})();var ne=o(4055);let te=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(i=>{this.variantId=+i.variantId,this.entityType=C.BlQ.Variant})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(i,c){1&i&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&i&&n.Y8G("id",c.variantId)("entityType",c.entityType)},dependencies:[ne.B],encapsulation:2})}return t})();var mn=o(2142),R=o(2e3),N=o(5699),fn=o(5493),vn=o(7513),Q=o(7054),dn=o(8254),un=o(9972),Z=o(9541),E=o(9247);let In=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,Z.hM,E.$G,I.Ti,Q.L,m.f3,F.i]})}return t})();var Cn=o(2839),zn=o(6719),hn=o(7855),En=o(6073),ee=o(9481),nn=o(7679),Fn=o(6408),yn=o(8097),ae=o(1596);const Gn=()=>["."];function ie(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function oe(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",21),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",e.variantInfo.dbsnpRsid,""),n.R7$(),n.SpI(" ",e.variantInfo.dbsnpRsid," ")}}function re(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",22),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",e.variantInfo.cosmicId.replace("COSM",""),""),n.R7$(),n.SpI(" ",e.variantInfo.cosmicId," ")}}function ce(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function se(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ce,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function _e(t,a){if(1&t&&(n.qex(0),n.DNE(1,se,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpEffect)}}function le(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function pe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,le,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ge(t,a){if(1&t&&(n.qex(0),n.DNE(1,pe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpImpact)}}function me(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," MyVariant.info ID: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.j41(7,"strong",18),n.EFF(8,"ClinVar ID:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,ie,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," dbSNP RSID: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,oe,3,3,"ng-container",19),n.j41(16,"strong",18),n.EFF(17,"COSMIC ID (v68):"),n.k0s(),n.EFF(18,"\xa0 "),n.DNE(19,re,3,3,"ng-container",19),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," SNPEff Effect: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,_e,2,1,"ng-container",19),n.k0s()(),n.j41(25,"div",15)(26,"div",16),n.EFF(27," SNPEff Impact: "),n.k0s(),n.j41(28,"div",17),n.DNE(29,ge,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",e.variantInfo.myVariantInfoId," "),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.cosmicId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",i)}}function fe(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function ve(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",24),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://omim.org/entry/",e.variantInfo.clinvarOmim.split(".")[0],""),n.R7$(),n.SpI(" ",e.variantInfo.clinvarOmim," ")}}function de(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ue(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,de,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ie(t,a){if(1&t&&(n.qex(0),n.DNE(1,ue,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarClinicalSignificance)}}function Ce(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function ze(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ce,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function he(t,a){if(1&t&&(n.qex(0),n.DNE(1,ze,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsCoding)}}function Ee(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Fe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ee,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ye(t,a){if(1&t&&(n.qex(0),n.DNE(1,Fe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsGenomic)}}function Ge(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Ve(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ge,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Te(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ve,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsNonCoding)}}function Re(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function xe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Re,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function $e(t,a){if(1&t&&(n.qex(0),n.DNE(1,xe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsProtein)}}function be(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," ClinVar ID: "),n.k0s(),n.j41(5,"div",17),n.DNE(6,fe,3,3,"ng-container",19),n.j41(7,"strong",18),n.EFF(8,"OMIM:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,ve,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," ClinVar Clinical Significance: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,Ie,2,1,"ng-container",19),n.k0s()(),n.j41(16,"div",15)(17,"div",16),n.EFF(18," HGVS Coding: "),n.k0s(),n.j41(19,"div",17),n.DNE(20,he,2,1,"ng-container",19),n.k0s()(),n.j41(21,"div",15)(22,"div",16),n.EFF(23," HGVS Genomic: "),n.k0s(),n.j41(24,"div",17),n.DNE(25,ye,2,1,"ng-container",19),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," HGVS Non-Coding: "),n.k0s(),n.j41(29,"div",17),n.DNE(30,Te,2,1,"ng-container",19),n.k0s()(),n.j41(31,"div",15)(32,"div",16),n.EFF(33," HGVS Protein: "),n.k0s(),n.j41(34,"div",17),n.DNE(35,$e,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarOmim)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",i)}}function Se(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",27),n.EFF(1," View this variant in the gnomAD browser "),n.k0s()),2&t){const e=n.XpG(3);n.Mz_("href","https://gnomad.broadinstitute.org/variant/",e.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}function De(t,a){if(1&t&&(n.qex(0),n.DNE(1,Se,2,2,"cvc-link-tag",25),n.j41(2,"nz-table",26,1)(4,"thead")(5,"tr")(6,"th"),n.EFF(7,"Type"),n.k0s(),n.j41(8,"th"),n.EFF(9,"Allele Frequency"),n.k0s(),n.j41(10,"th"),n.EFF(11,"Allele Count"),n.k0s(),n.j41(12,"th"),n.EFF(13,"Allele Number"),n.k0s(),n.j41(14,"th"),n.EFF(15,"Filter"),n.k0s()()(),n.j41(16,"tbody")(17,"tr")(18,"td"),n.EFF(19,"Total Exome"),n.k0s(),n.j41(20,"td"),n.EFF(21),n.nI1(22,"ifEmpty"),n.k0s(),n.j41(23,"td"),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s(),n.j41(26,"td"),n.EFF(27),n.nI1(28,"ifEmpty"),n.k0s(),n.j41(29,"td"),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Total Genome"),n.k0s(),n.j41(35,"td"),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s(),n.j41(38,"td"),n.EFF(39),n.nI1(40,"ifEmpty"),n.k0s(),n.j41(41,"td"),n.EFF(42),n.nI1(43,"ifEmpty"),n.k0s(),n.j41(44,"td"),n.EFF(45),n.nI1(46,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid),n.R7$(),n.Y8G("nzData",n.lJ4(36,Gn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(19),n.SpI(" ",n.i5U(22,12,e.variantInfo.gnomadExomeAlleleFrequency,"--")," "),n.R7$(3),n.JRh(n.i5U(25,15,e.variantInfo.gnomadExomeAlleleCount,"--")),n.R7$(3),n.SpI(" ",n.i5U(28,18,e.variantInfo.gnomadExomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(31,21,e.variantInfo.gnomadExomeFilter,"--")),n.R7$(6),n.SpI(" ",n.i5U(37,24,e.variantInfo.gnomadGenomeAlleleFrequency,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(40,27,e.variantInfo.gnomadGenomeAlleleCount,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(43,30,e.variantInfo.gnomadGenomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(46,33,e.variantInfo.gnomadGenomeFilter,"--"))}}function Ye(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," Allele Count: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Allele Number: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Adjusted Allele Frequency: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,12,e.variantInfo.exacAlleleCount,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,15,e.variantInfo.exacAlleleNumber,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,18,e.variantInfo.exacAlleleFrequency,"--")," ")}}function Me(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," phyloP100way: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," phyloP30way: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," phastCons100way: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," phastCons30way: "),n.k0s(),n.j41(23,"div",17),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," GERP++: "),n.k0s(),n.j41(29,"div",17),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"div",15)(33,"div",16),n.EFF(34," SiPhy: "),n.k0s(),n.j41(35,"div",17),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,24,e.variantInfo.phyloP100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,27,e.variantInfo.phyloP30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,30,e.variantInfo.phastcons100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(25,33,e.variantInfo.phastcons30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(31,36,e.variantInfo.gerp,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(37,39,e.variantInfo.siphy,"--")," ")}}function je(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Ne(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,je,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ke(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ne,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.eglHgvs)}}function Pe(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," EGL Class: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Protein Variant Name: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Transcript Variant Name: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," HGVS: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,ke,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,17,e.variantInfo.eglClass,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,20,e.variantInfo.eglProtein,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,23,e.variantInfo.eglTranscript,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.eglHgvs.length>0)("ngIfElse",i)}}function Oe(t,a){if(1&t&&(n.j41(0,"td"),n.EFF(1),n.nI1(2,"ifEmpty"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(n.i5U(2,1,e.variantInfo.revelScore.join(", "),"--"))}}function Xe(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Le(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Xe,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ae(t,a){if(1&t&&(n.qex(0),n.DNE(1,Le,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftPrediction)}}function we(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ue(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,we,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Be(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ue,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftScore)}}function qe(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function He(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,qe,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Je(t,a){if(1&t&&(n.qex(0),n.DNE(1,He,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivPrediction)}}function We(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ke(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,We,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Qe(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ke,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivScore)}}function Ze(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function na(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ze,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ta(t,a){if(1&t&&(n.qex(0),n.DNE(1,na,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarPrediction)}}function ea(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function aa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ea,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ia(t,a){if(1&t&&(n.qex(0),n.DNE(1,aa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarScore)}}function oa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ra(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,oa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ca(t,a){if(1&t&&(n.qex(0),n.DNE(1,ra,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterPrediction)}}function sa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function _a(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,sa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function la(t,a){if(1&t&&(n.qex(0),n.DNE(1,_a,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterScore)}}function pa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ga(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,pa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ma(t,a){if(1&t&&(n.qex(0),n.DNE(1,ga,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorPrediction)}}function fa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function va(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,fa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function da(t,a){if(1&t&&(n.qex(0),n.DNE(1,va,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorScore)}}function ua(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ia(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ua,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ca(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ia,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmPrediction)}}function za(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ha(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,za,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ea(t,a){if(1&t&&(n.qex(0),n.DNE(1,ha,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmScore)}}function Fa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ya(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Fa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ga(t,a){if(1&t&&(n.qex(0),n.DNE(1,ya,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanPrediction)}}function Va(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ta(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Va,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ra(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ta,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanScore)}}function xa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function $a(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,xa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ba(t,a){if(1&t&&(n.qex(0),n.DNE(1,$a,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddConsequence)}}function Sa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Da(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Sa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ya(t,a){if(1&t&&(n.qex(0),n.DNE(1,Da,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddDetail)}}function Ma(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-table",26,1)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Predictor"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Prediction"),n.k0s(),n.j41(9,"th"),n.EFF(10,"Score"),n.k0s()()(),n.j41(11,"tbody")(12,"tr")(13,"td"),n.EFF(14,"REVEL"),n.k0s(),n.j41(15,"td"),n.EFF(16,"N/A"),n.k0s(),n.DNE(17,Oe,3,4,"td",2),n.k0s(),n.j41(18,"tr")(19,"td"),n.EFF(20,"SIFT"),n.k0s(),n.j41(21,"td"),n.DNE(22,Ae,2,1,"ng-container",19),n.k0s(),n.j41(23,"td"),n.DNE(24,Be,2,1,"ng-container",19),n.k0s()(),n.j41(25,"tr")(26,"td"),n.EFF(27,"Polyphen2 HDIV"),n.k0s(),n.j41(28,"td"),n.DNE(29,Je,2,1,"ng-container",19),n.k0s(),n.j41(30,"td"),n.DNE(31,Qe,2,1,"ng-container",19),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Polyphen2 HVAR"),n.k0s(),n.j41(35,"td"),n.DNE(36,ta,2,1,"ng-container",19),n.k0s(),n.j41(37,"td"),n.DNE(38,ia,2,1,"ng-container",19),n.k0s()(),n.j41(39,"tr")(40,"td"),n.EFF(41,"LRT"),n.k0s(),n.j41(42,"td"),n.EFF(43),n.nI1(44,"ifEmpty"),n.k0s(),n.j41(45,"td"),n.EFF(46),n.nI1(47,"ifEmpty"),n.k0s()(),n.j41(48,"tr")(49,"td"),n.EFF(50,"MutationTaster"),n.k0s(),n.j41(51,"td"),n.DNE(52,ca,2,1,"ng-container",19),n.k0s(),n.j41(53,"td"),n.DNE(54,la,2,1,"ng-container",19),n.k0s()(),n.j41(55,"tr")(56,"td"),n.EFF(57,"MutationAssessor"),n.k0s(),n.j41(58,"td"),n.DNE(59,ma,2,1,"ng-container",19),n.k0s(),n.j41(60,"td"),n.DNE(61,da,2,1,"ng-container",19),n.k0s()(),n.j41(62,"tr")(63,"td"),n.EFF(64,"FATHMM"),n.k0s(),n.j41(65,"td"),n.DNE(66,Ca,2,1,"ng-container",19),n.k0s(),n.j41(67,"td"),n.DNE(68,Ea,2,1,"ng-container",19),n.k0s()(),n.j41(69,"tr")(70,"td"),n.EFF(71,"PROVEAN"),n.k0s(),n.j41(72,"td"),n.DNE(73,Ga,2,1,"ng-container",19),n.k0s(),n.j41(74,"td"),n.DNE(75,Ra,2,1,"ng-container",19),n.k0s()(),n.j41(76,"tr")(77,"td"),n.EFF(78,"MetaSVM"),n.k0s(),n.j41(79,"td"),n.EFF(80),n.nI1(81,"ifEmpty"),n.k0s(),n.j41(82,"td"),n.EFF(83),n.nI1(84,"ifEmpty"),n.k0s()(),n.j41(85,"tr")(86,"td"),n.EFF(87,"MetaLR"),n.k0s(),n.j41(88,"td"),n.EFF(89),n.nI1(90,"ifEmpty"),n.k0s(),n.j41(91,"td"),n.EFF(92),n.nI1(93,"ifEmpty"),n.k0s()(),n.j41(94,"tr")(95,"td"),n.EFF(96,"CADD"),n.k0s(),n.j41(97,"td"),n.EFF(98," Consequence: "),n.DNE(99,ba,2,1,"ng-container",19),n.nrm(100,"br"),n.EFF(101," Consequence Detail: "),n.DNE(102,Ya,2,1,"ng-container",19),n.k0s(),n.j41(103,"td"),n.EFF(104),n.nI1(105,"ifEmpty"),n.nrm(106,"br"),n.EFF(107),n.nI1(108,"ifEmpty"),n.k0s()(),n.j41(109,"tr")(110,"td"),n.EFF(111,"FATHMM-MKL"),n.k0s(),n.j41(112,"td"),n.EFF(113),n.nI1(114,"ifEmpty"),n.k0s(),n.j41(115,"td"),n.EFF(116),n.nI1(117,"ifEmpty"),n.k0s()(),n.j41(118,"tr")(119,"td"),n.EFF(120,"fitCons"),n.k0s(),n.j41(121,"td"),n.EFF(122,"N/A"),n.k0s(),n.j41(123,"td"),n.EFF(124),n.nI1(125,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(),n.Y8G("nzData",n.lJ4(80,Gn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(16),n.Y8G("ngIf",e.variantInfo.revelScore),n.R7$(5),n.Y8G("ngIf",e.variantInfo.siftPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.siftScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(44,47,e.variantInfo.lrtPrediction,"--")),n.R7$(3),n.JRh(n.i5U(47,50,e.variantInfo.lrtScore,"--")),n.R7$(6),n.Y8G("ngIf",e.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationtasterScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationassessorScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.fathmmPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.fathmmScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.proveanPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.proveanScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(81,53,e.variantInfo.metasvmPrediction,"--")),n.R7$(3),n.JRh(n.i5U(84,56,e.variantInfo.metasvmScore,"--")),n.R7$(6),n.JRh(n.i5U(90,59,e.variantInfo.metalrPrediction,"--")),n.R7$(3),n.JRh(n.i5U(93,62,e.variantInfo.metalrScore,"--")),n.R7$(7),n.Y8G("ngIf",e.variantInfo.caddConsequence.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("ngIf",e.variantInfo.caddDetail.length>0)("ngIfElse",i),n.R7$(2),n.SpI(" ",n.i5U(105,65,e.variantInfo.caddScore,"--")," (raw) "),n.R7$(3),n.SpI(" ",n.i5U(108,68,e.variantInfo.caddPhred,"--")," (PHRED) "),n.R7$(6),n.JRh(n.i5U(114,71,e.variantInfo.fathmmMklPrediction,"--")),n.R7$(3),n.JRh(n.i5U(117,74,e.variantInfo.fathmmMklScore,"--")),n.R7$(8),n.JRh(n.i5U(125,77,e.variantInfo.fitconsScore,"--"))}}function ja(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"nz-card",3)(2,"nz-card-tab")(3,"nz-tabset",4)(4,"nz-tab",5),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(0))}),n.k0s(),n.j41(5,"nz-tab",6),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(1))}),n.k0s(),n.j41(6,"nz-tab",7),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(2))}),n.k0s(),n.j41(7,"nz-tab",8),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(3))}),n.k0s(),n.j41(8,"nz-tab",9),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(4))}),n.k0s(),n.j41(9,"nz-tab",10),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(5))}),n.k0s(),n.j41(10,"nz-tab",11),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(6))}),n.k0s()()(),n.qex(11,12),n.nI1(12,"async"),n.DNE(13,me,30,23,"ng-container",13)(14,be,36,32,"ng-container",13)(15,De,47,37,"ng-container",13)(16,Ye,20,21,"ng-container",13)(17,Me,38,42,"ng-container",13)(18,Pe,25,26,"ng-container",13)(19,Ma,126,81,"ng-container",13),n.bVm(),n.k0s(),n.bVm()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(8),n.Y8G("ngSwitch",n.bMT(12,9,e.tabIndex)),n.R7$(2),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3),n.R7$(),n.Y8G("ngSwitchCase",4),n.R7$(),n.Y8G("ngSwitchCase",5),n.R7$(),n.Y8G("ngSwitchCase",6)}}function Na(t,a){1&t&&n.EFF(0,"--")}let ka=(()=>{class t{constructor(){this.tabIndex=new rn.t(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[["noValue",""],["gnomadTable",""],[4,"ngIf"],["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"],[3,"href"]],template:function(i,c){1&i&&n.DNE(0,ja,20,11,"ng-container",2)(1,Na,1,0,"ng-template",null,0,n.C5r),2&i&&n.Y8G("ngIf",c.variantInfo)},dependencies:[_.Sq,_.bT,_.ux,_.e1,Z.JZ,Z.rE,E.CP,E.SO,E._4,E.IL,E.aj,E.kt,I.cK,I.RO,nn.a,m.Uq,m.e,_.Jj,ae.r],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}"]})}return t})();var Vn=o(8139);const Pa=()=>[8,16],Tn=()=>[8,8],Rn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Oa(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Xa(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Oa,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function La(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Aa(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",31),2&t&&n.Y8G("variantType",a.$implicit)}function wa(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Aa,1,1,"cvc-variant-type-tag",30),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Ua(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Ba(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function qa(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ba,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.hgvsDescriptions)}}function Ha(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Ja(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list")(2,"nz-tag"),n.EFF(3),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(3),n.JRh(e.variant.maneSelectTranscript)}}function Wa(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None found"),n.k0s())}function Ka(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function Qa(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,Ka,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function Za(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function ni(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,Za,4,3,"ng-template",null,9,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function ti(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",33),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("href","https://reg.genome.network/allele/"+e.variant.alleleRegistryId+".html"),n.R7$(),n.SpI(" ",e.variant.alleleRegistryId," ")}}function ei(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"Unregistered"),n.k0s())}function ai(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",34),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+e),n.R7$(),n.SpI(" ",e," ")}}function ii(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,ai,3,2,"ng-container",28),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variant.clinvarIds)}}function oi(t,a){if(1&t&&(n.qex(0),n.DNE(1,ii,2,1,"cvc-tag-list",15),n.bVm()),2&t){n.XpG();const e=n.sdS(40),i=n.XpG();n.R7$(),n.Y8G("ngIf","N/A"!==i.variant.clinvarIds[0]&&"NONE FOUND"!==i.variant.clinvarIds[0])("ngIfElse",e)}}function ri(t,a){if(1&t&&(n.j41(0,"span",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.variant.clinvarIds[0])}}function ci(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None provided"),n.k0s())}function si(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",35)(1,"cvc-link-tag",36),n.EFF(2," Variant Report "),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("href",e.variant.openCravatUrl)}}function _i(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",11),n.nrm(2,"cvc-my-variant-info",37),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("variantInfo",e.variant.myVariantInfo)}}function li(t,a){1&t&&(n.j41(0,"nz-col",11)(1,"nz-card",38),n.nrm(2,"cvc-empty-revisable",39),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function pi(t,a){if(1&t&&(n.j41(0,"nz-row",10)(1,"nz-col",11)(2,"nz-row",10)(3,"nz-col",12)(4,"nz-descriptions",13)(5,"nz-descriptions-item",14),n.DNE(6,Xa,3,1,"ng-container",15)(7,La,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",16),n.DNE(10,wa,3,1,"ng-container",15)(11,Ua,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(13,"nz-descriptions-item",16),n.DNE(14,qa,3,1,"ng-container",15)(15,Ha,2,0,"ng-template",null,2,n.C5r),n.k0s(),n.j41(17,"nz-descriptions-item",17),n.DNE(18,Ja,4,1,"ng-container",15)(19,Wa,2,0,"ng-template",null,3,n.C5r),n.k0s()()(),n.j41(21,"nz-col",11),n.nrm(22,"cvc-coordinates-card",18),n.k0s()()(),n.j41(23,"nz-col",19)(24,"nz-row",10)(25,"nz-col",11)(26,"nz-descriptions",20),n.DNE(27,Qa,6,2,"ng-container",21)(28,ni,6,2,"ng-container",21),n.k0s()(),n.j41(29,"nz-col",11)(30,"nz-descriptions",13)(31,"nz-descriptions-item",22),n.nrm(32,"cvc-feature-tag",23),n.k0s(),n.j41(33,"nz-descriptions-item",24),n.DNE(34,ti,2,2,"cvc-link-tag",25)(35,ei,2,0,"ng-template",null,4,n.C5r),n.k0s(),n.j41(37,"nz-descriptions-item",16),n.DNE(38,oi,2,2,"ng-container",15)(39,ri,2,1,"ng-template",null,5,n.C5r)(41,ci,2,0,"ng-template",null,6,n.C5r),n.k0s(),n.DNE(43,si,3,1,"nz-descriptions-item",26),n.k0s()(),n.DNE(44,_i,3,2,"ng-container",15)(45,li,3,1,"ng-template",null,7,n.C5r),n.k0s()(),n.j41(47,"nz-col",12),n.nrm(48,"cvc-molecular-profiles-table",27),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(16),p=n.sdS(20),d=n.sdS(36),Y=n.sdS(42),h=n.sdS(46),g=n.XpG();n.Y8G("nzGutter",n.lJ4(35,Pa)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(36,Tn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",g.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",g.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",g.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("nzTitle",g.variant.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.R7$(),n.Y8G("ngIf",g.variant.hgvsDescriptions.length>0)("ngIfElse",c),n.R7$(4),n.Y8G("ngIf",g.variant.maneSelectTranscript)("ngIfElse",p),n.R7$(3),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("cvcVariantId",g.variant.id),n.R7$(2),n.Y8G("nzGutter",n.lJ4(37,Tn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(38,Rn)),n.R7$(),n.Y8G("ngIf",g.variant.creationActivity),n.R7$(),n.Y8G("ngIf",g.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(39,Rn)),n.R7$(2),n.Y8G("feature",g.variant.feature),n.R7$(2),n.Y8G("ngIf",g.variant.alleleRegistryId&&"unregistered"!=g.variant.alleleRegistryId)("ngIfElse",d),n.R7$(3),n.Y8G("nzTitle",g.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.R7$(),n.Y8G("ngIf",g.variant.clinvarIds.length>0)("ngIfElse",Y),n.R7$(5),n.Y8G("ngIf",g.variant.openCravatUrl),n.R7$(),n.Y8G("ngIf",g.variant.myVariantInfo)("ngIfElse",h),n.R7$(4),n.Mz_("cvcTitle","",g.variant.name," Molecular Profiles"),n.Y8G("variantId",g.variant.id)}}let xn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass GeneVariant into GeneVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-gene-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noDescriptions",""],["noMane",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noVariantInfo",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzTitle","MANE Select Transcript"],[3,"cvcVariantId"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Gene"],[3,"feature"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["nzTitle","OpenCRAVAT",4,"ngIf"],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["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(i,c){1&i&&n.DNE(0,pi,49,40,"nz-row",10),2&i&&n.vxM("GeneVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,R.WF,R.xA,R.gr,N.T,N.s,I.Ti,I.cK,dn.V,zn.Q,mn.x,hn.M,fn.G,En.h,vn.m,ee.W,Q.L,nn.a,Cn.m,Fn.r,r.l,W._,un.V,yn.I,In,ka,F.i,Vn.N],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%}"]})}return t})();var gi=o(9354);const mi=()=>[8,16],$n=()=>[8,8],bn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function fi(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function vi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,fi,2,1,"nz-tag",19),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function di(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function ui(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",22),2&t&&n.Y8G("variantType",a.$implicit)}function Ii(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,ui,1,1,"cvc-variant-type-tag",21),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Ci(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function zi(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function hi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,zi,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function Ei(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function Fi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,Ei,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function yi(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+e.variant.ncitId)("tooltip","View "+e.variant.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",e.variant.ncitId," ")}}function Gi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",6),n.nrm(2,"cvc-ncit-details",26),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("ncitDetails",e.variant.ncitDetails)}}function Vi(t,a){1&t&&(n.j41(0,"nz-col",6)(1,"nz-card",27),n.nrm(2,"cvc-empty-revisable",28),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function Ti(t,a){if(1&t&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,vi,3,1,"ng-container",10)(7,di,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",11),n.DNE(10,Ii,3,1,"ng-container",10)(11,Ci,2,0,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(13,"nz-col",12)(14,"nz-row",5)(15,"nz-col",6)(16,"nz-descriptions",13),n.DNE(17,hi,6,2,"ng-container",14)(18,Fi,6,2,"ng-container",14),n.k0s()(),n.j41(19,"nz-col",6)(20,"nz-descriptions",8)(21,"nz-descriptions-item",15),n.nrm(22,"cvc-feature-tag",16),n.k0s(),n.DNE(23,yi,4,3,"nz-descriptions-item",17),n.k0s()(),n.DNE(24,Gi,3,2,"ng-container",10)(25,Vi,3,1,"ng-template",null,2,n.C5r),n.k0s()(),n.j41(27,"nz-col",7),n.nrm(28,"cvc-molecular-profiles-table",18),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(26),p=n.XpG();n.Y8G("nzGutter",n.lJ4(21,mi)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(22,$n)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",p.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",p.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",p.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(4),n.Y8G("nzGutter",n.lJ4(23,$n)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(24,bn)),n.R7$(),n.Y8G("ngIf",p.variant.creationActivity),n.R7$(),n.Y8G("ngIf",p.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(25,bn)),n.R7$(2),n.Y8G("feature",p.variant.feature),n.R7$(),n.Y8G("ngIf",p.variant.ncitId),n.R7$(),n.Y8G("ngIf",p.variant.ncitId)("ngIfElse",c),n.R7$(4),n.Y8G("variantId",p.variant.id)}}let Sn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass FactorVariant into FactorVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-factor-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noNcit",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Factor"],[3,"feature"],["nzTitle","Resources",4,"ngIf"],["cvcHeight","300px","cvcTitle","Molecular Profiles",3,"variantId"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(i,c){1&i&&n.DNE(0,Ti,29,26,"nz-row",5),2&i&&n.vxM("FactorVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,R.WF,R.xA,R.gr,N.T,N.s,I.Ti,I.cK,f.kT,f.Di,dn.V,zn.Q,mn.x,hn.M,fn.G,En.h,vn.m,Q.L,nn.a,Cn.m,Fn.r,r.l,W._,un.V,yn.I,In,F.i,Vn.N,gi.e],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%}"]})}return t})(),Ri=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,xn,Sn]})}return t})();function xi(t,a){if(1&t&&n.nrm(0,"cvc-gene-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function $i(t,a){if(1&t&&n.nrm(0,"cvc-factor-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function bi(t,a){if(1&t&&(n.qex(0),n.DNE(1,xi,1,1,"cvc-gene-variant-summary",1)(2,$i,1,1,"cvc-factor-variant-summary",1),n.bVm()),2&t){let e;const i=a.ngIf;n.R7$(),n.vxM("GeneVariant"===(e=i.__typename)?1:"FactorVariant"===e?2:-1)}}let Si=(()=>{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 p=this.queryRef.valueChanges;this.loading$=p.pipe((0,b.E)("loading"),(0,an.Z)(!0)),this.variant$=p.pipe((0,b.E)("data","variant")),this.subscribable={entityType:C.V9U.Variant,id:c}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(C.yLZ),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"variant"]],template:function(i,c){1&i&&(n.DNE(0,bi,3,1,"ng-container",0),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,c.variant$))},dependencies:[_.bT,xn,Sn,S.L9],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%}"]})}return t})();var Di=o(9543);let Yi=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.variantId,entityType:C.V9U.Variant}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-event-feed",0),2&i&&n.Y8G("subscribable",c.subscribable)},dependencies:[Di.e],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Mi=o(326);let ji=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,Mi.p]})}return t})();const Ni=[{path:"",component:Lt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Si,data:{breadcrumb:"Summary"}},{path:"comments",component:Bt,data:{breadcrumb:"Comments"}},{path:"revisions",component:te,data:{breadcrumb:"Revisions"}},{path:"flags",component:Kt,data:{breadcrumb:"Flags"}},{path:"events",component:Yi,data:{breadcrumb:"Events"}}]}];let ki=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[v.iI.forChild(Ni),Ri,wt,Zt,Jt,ji,v.iI]})}return t})(),Pi=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,ki,G.Zw,J.Y3,T.ZJ,s.pc,m.f3,y.$,en.MC,f.kT,P.m,L.W,x.Y,r.l,X.C,O.V,F.i,k.W,H]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/5958.50527ae55cd0fe6e.js b/server/public/5958.50527ae55cd0fe6e.js new file mode 100644 index 000000000..79409241c --- /dev/null +++ b/server/public/5958.50527ae55cd0fe6e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5958],{6936:(B,D,n)=>{n.d(D,{G:()=>G});var a=n(177),t=n(1188),c=n(5699),o=n(1236),f=n(5103),C=n(4666),T=n(4917),e=n(3146),z=n(4994),_=n(3953);let G=(()=>{class s{static#t=this.\u0275fac=function(E){return new(E||s)};static#n=this.\u0275mod=_.$C({type:s});static#o=this.\u0275inj=_.G2t({imports:[a.MD,t.iI,e.W2,c.T,o.MC,f.Y3,C.v,T.i,z.a]})}return s})()},9354:(B,D,n)=>{n.d(D,{e:()=>F});var a=n(177),t=n(2142),c=n(5703),o=n(2e3),f=n(7529),C=n(9541),T=n(5699),e=n(3953),z=n(7855);function _(d,M){if(1&d&&(e.j41(0,"nz-descriptions-item",9),e.EFF(1),e.k0s()),2&d){const g=M.$implicit;e.Y8G("nzTitle",g.source)("nzSpan",1),e.R7$(),e.SpI(" ",g.definition," ")}}function G(d,M){if(1&d&&(e.j41(0,"nz-descriptions",5),e.Z7z(1,_,2,3,"nz-descriptions-item",9,e.Vm6),e.k0s()),2&d){const g=e.XpG(2);e.Y8G("nzBordered",!0)("nzColumn",1),e.R7$(),e.Dyx(g.ncitDetails.definitions)}}function s(d,M){1&d&&(e.j41(0,"span",6),e.EFF(1," None "),e.k0s())}function p(d,M){if(1&d&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&d){const g=M.$implicit;e.R7$(),e.JRh(g)}}function u(d,M){if(1&d&&(e.j41(0,"nz-descriptions-item",9)(1,"cvc-tag-list"),e.Z7z(2,p,2,1,"nz-tag",null,e.Vm6),e.k0s()()),2&d){const g=M.$implicit,I=e.XpG(3);e.Y8G("nzTitle",g)("nzSpan",2),e.R7$(2),e.Dyx(I.synonymsBySource.get(g))}}function E(d,M){if(1&d&&(e.j41(0,"nz-descriptions",8),e.Z7z(1,u,4,2,"nz-descriptions-item",9,e.Vm6),e.k0s()),2&d){const g=e.XpG(2);e.Y8G("nzBordered",!0)("nzColumn",2),e.R7$(),e.Dyx(g.synonymsBySource.keys())}}function v(d,M){1&d&&(e.j41(0,"span",6),e.EFF(1," None "),e.k0s())}function x(d,M){if(1&d&&(e.j41(0,"nz-card",1)(1,"nz-col",2)(2,"nz-tabset",3)(3,"nz-tab",4),e.DNE(4,G,3,2,"nz-descriptions",5)(5,s,2,0,"span",6),e.k0s(),e.j41(6,"nz-tab",7),e.DNE(7,E,3,2,"nz-descriptions",8)(8,v,2,0,"span",6),e.k0s()()()()),2&d){const g=e.XpG();e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzAnimated",!1),e.R7$(2),e.vxM(g.ncitDetails.definitions.length>0?4:5),e.R7$(3),e.vxM(g.ncitDetails.synonyms.length>0?7:8)}}function R(d,M){1&d&&(e.j41(0,"span",6),e.EFF(1," Not Found "),e.k0s())}let F=(()=>{class d{constructor(){this.synonymsBySource=new Map}ngOnInit(){this.ncitDetails&&this.ncitDetails.synonyms.forEach(g=>{this.synonymsBySource.has(g.name)||this.synonymsBySource.set(g.name,[]),this.synonymsBySource.get(g.name)?.push(g.source)})}static#t=this.\u0275fac=function(I){return new(I||d)};static#n=this.\u0275cmp=e.VBU({type:d,selectors:[["cvc-ncit-details"]],inputs:{ncitDetails:"ncitDetails"},standalone:!0,features:[e.aNF],decls:3,vars:1,consts:[["noValue",""],["nzTitle","NCI Thesaurus"],[3,"nzSpan"],[3,"nzAnimated"],["nzTitle","Definitions"],["nzSize","small","nzLayout","vertical",3,"nzBordered","nzColumn"],["nz-typography","","nzType","secondary"],["nzTitle","Synonyms"],["nzSize","small",3,"nzBordered","nzColumn"],[3,"nzTitle","nzSpan"]],template:function(I,m){1&I&&e.DNE(0,x,9,4,"nz-card",1)(1,R,2,0,"ng-template",null,0,e.C5r),2&I&&e.vxM(m.ncitDetails?0:-1)},dependencies:[a.MD,o.WF,o.xA,o.gr,c.Ti,c.cK,T.T,T.s,f.f3,f.Uq,C.hM,C.JZ,C.rE,t.x,z.M],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}"]})}return d})()},6719:(B,D,n)=>{n.d(D,{Q:()=>G});var a=n(3953),t=n(177),c=n(1672),o=n(5103);function f(s,p){if(1&s&&(a.j41(0,"span",5),a.EFF(1),a.k0s()),2&s){const u=a.XpG(2);a.R7$(),a.JRh(u.notification)}}function C(s,p){1&s&&a.EFF(0," Not specified ")}function T(s,p){if(1&s&&a.DNE(0,f,2,1,"span",4)(1,C,1,0,"ng-template",null,2,a.C5r),2&s){const u=a.sdS(2),E=a.XpG();a.Y8G("ngIf",E.notification)("ngIfElse",u)}}function e(s,p){if(1&s&&(a.j41(0,"a",6),a.nrm(1,"i",7),a.k0s()),2&s){const u=a.XpG(2);a.Y8G("href",u.reviseFormPath,a.B4B)}}function z(s,p){1&s&&a.nrm(0,"i",7)}function _(s,p){if(1&s&&a.DNE(0,e,2,1,"a",6)(1,z,1,0,"i",7),2&s){const u=a.XpG();a.vxM(u.reviseFormPath?0:1)}}let G=(()=>{class s{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(E){return new(E||s)};static#n=this.\u0275cmp=a.VBU({type:s,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification",reviseFormPath:"reviseFormPath"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["target","_blank",3,"href"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(E,v){if(1&E&&(a.nrm(0,"nz-empty",3),a.DNE(1,T,3,2,"ng-template",null,0,a.C5r)(3,_,2,1,"ng-template",null,1,a.C5r)),2&E){const x=a.sdS(2),R=a.sdS(4);a.Y8G("nzNotFoundContent",x)("nzNotFoundImage",R)}},dependencies:[t.bT,c.RW,o.Dn],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%}"]})}return s})()},8254:(B,D,n)=>{n.d(D,{V:()=>f});var a=n(177),t=n(1672),c=n(5103),o=n(3953);let f=(()=>{class C{static#t=this.\u0275fac=function(z){return new(z||C)};static#n=this.\u0275mod=o.$C({type:C});static#o=this.\u0275inj=o.G2t({imports:[a.MD,t._v,c.Y3]})}return C})()},8238:(B,D,n)=>{n.d(D,{S:()=>b});var a=n(505),t=n(3953),c=n(177),o=n(1188),f=n(1236),C=n(5699),T=n(5103),e=n(9199),z=n(6354),_=n(5964),G=n(9145),s=n(5703),p=n(2e3),u=n(9062),E=n(959),v=n(7855),x=n(1774),R=n(3075);function F(i,y){if(1&i&&(t.nrm(0,"i",7),t.nI1(1,"entityColor"),t.EFF(2)),2&i){const r=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"VariantGroup")),t.R7$(2),t.SpI(" ",r.name," ")}}function d(i,y){if(1&i&&t.nrm(0,"cvc-feature-variant-tag",10),2&i){const r=y.$implicit;t.Y8G("enablePopover",!1)("variant",r.node)}}function M(i,y){if(1&i&&(t.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),t.DNE(2,d,1,2,"cvc-feature-variant-tag",9),t.k0s()()),2&i){const r=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",r.variants.edges)}}function g(i,y){if(1&i&&t.nrm(0,"cvc-source-tag",13),2&i){const r=y.$implicit;t.Y8G("enablePopover",!1)("source",r)}}function I(i,y){if(1&i&&(t.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),t.DNE(2,g,1,2,"cvc-source-tag",12),t.k0s()()),2&i){const r=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",r.sources)}}function m(i,y){if(1&i&&(t.qex(0),t.j41(1,"nz-card",3),t.DNE(2,F,3,4,"ng-template",null,0,t.C5r),t.EFF(4),t.j41(5,"nz-descriptions",4),t.DNE(6,M,3,1,"nz-descriptions-item",5)(7,I,3,1,"nz-descriptions-item",6),t.k0s()(),t.bVm()),2&i){const r=y.ngIf,O=t.sdS(3);t.R7$(),t.Y8G("nzTitle",O),t.R7$(3),t.SpI(" ",r.description," "),t.R7$(),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("ngIf",r.variants.edges.length>0),t.R7$(),t.Y8G("ngIf",r.sources.length>0)}}let U=(()=>{class i{constructor(r){this.gql=r}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.T)(({data:r})=>r?.variantGroup),(0,_.p)(e.kP))}static#t=this.\u0275fac=function(O){return new(O||i)(t.rXU(G.gwr))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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(O,L){1&O&&(t.j41(0,"div",1),t.DNE(1,m,8,5,"ng-container",2),t.nI1(2,"ngrxPush"),t.k0s()),2&O&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,L.variantGroup$)))},dependencies:[c.Sq,c.bT,s.cK,p.xA,p.gr,T.Dn,u.D,E.j,v.M,x.L9,R.R],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}"]})}return i})();var l=n(2387);function h(i,y){}function P(i,y){if(1&i&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,h,0,0,"ng-template",6),t.k0s(),t.bVm()),2&i){const r=t.XpG(),O=t.sdS(2);t.R7$(),t.Y8G("routerLink",r.variantgroup.link),t.R7$(),t.Y8G("ngTemplateOutlet",O)}}function S(i,y){}function N(i,y){if(1&i&&t.nrm(0,"cvc-variant-group-popover",9),2&i){const r=t.XpG(3);t.Y8G("variantGroupId",r.variantgroup.id)}}function V(i,y){if(1&i&&t.DNE(0,N,1,1,"cvc-variant-group-popover",8),2&i){const r=t.XpG(2);t.Y8G("ngIf",r.enablePopover)}}function $(i,y){if(1&i&&(t.j41(0,"nz-tag",7),t.DNE(1,S,0,0,"ng-template",6),t.k0s(),t.DNE(2,V,1,1,"ng-template",null,3,t.C5r)),2&i){const r=t.sdS(3),O=t.XpG(),L=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",r)("nzPopoverTrigger",O.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",L)}}function A(i,y){}function W(i,y){if(1&i&&t.DNE(0,A,0,0,"ng-template",6),2&i){t.XpG();const r=t.sdS(2);t.Y8G("ngTemplateOutlet",r)}}function K(i,y){if(1&i&&(t.j41(0,"cvc-icon-badges",10),t.nrm(1,"i",11),t.nI1(2,"entityColor"),t.k0s(),t.EFF(3)),2&i){const r=t.XpG();t.Y8G("flagged",r.variantgroup.flagged)("entityColor",r.iconColor),t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(2,4,"VariantGroup")),t.R7$(2),t.SpI(" ",r.variantgroup.name,"\n")}}let b=(()=>{class i{set variantgroup(r){if(!r)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=r}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,a.P)("VariantGroup")}static#t=this.\u0275fac=function(O){return new(O||i)};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(O,L){if(1&O&&t.DNE(0,P,3,2,"ng-container",4)(1,$,4,4,"ng-template",null,0,t.C5r)(3,W,1,1,"ng-template",null,1,t.C5r)(5,K,4,6,"ng-template",null,2,t.C5r),2&O){const Y=t.sdS(4);t.Y8G("ngIf",L.linked)("ngIfElse",Y)}},dependencies:[c.bT,c.T3,o.Wk,f.L_,C.s,T.Dn,U,l.N,R.R],encapsulation:2,changeDetection:0})}return i})()},8134:(B,D,n)=>{n.d(D,{l:()=>E});var a=n(177),t=n(1188),c=n(1236),o=n(5699),f=n(5103),C=n(7086),T=n(2142),e=n(1209),z=n(4917),_=n(5703),G=n(2e3),s=n(3953);let p=(()=>{class v{static#t=this.\u0275fac=function(F){return new(F||v)};static#n=this.\u0275mod=s.$C({type:v});static#o=this.\u0275inj=s.G2t({imports:[a.MD,_.Ti,G.WF,f.Y3,e.k,C.C,T.x,z.i]})}return v})();var u=n(4994);let E=(()=>{class v{static#t=this.\u0275fac=function(F){return new(F||v)};static#n=this.\u0275mod=s.$C({type:v});static#o=this.\u0275inj=s.G2t({imports:[a.MD,t.iI,c.MC,o.T,f.Y3,p,z.i,u.a]})}return v})()},5128:(B,D,n)=>{n.d(D,{K:()=>z});var a=n(177),t=n(8524),c=n(3953),o=n(9417),f=n(1011);const T={name:"comment-textarea",component:(()=>{class _ extends t.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(s,p)=>`Comments must be at least ${p.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let s;return function(u){return(s||(s=c.xGo(_)))(u||_)}})();static#n=this.\u0275cmp=c.VBU({type:_,selectors:[["comment-textarea-type"]],features:[c.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(p,u){1&p&&c.nrm(0,"textarea",0),2&p&&c.Y8G("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[o.me,o.BC,o.l_,t.ch,f.Sy],encapsulation:2,changeDetection:0})}return _})(),wrappers:["form-field"]};var e=n(8927);let z=(()=>{class _{static#t=this.\u0275fac=function(p){return new(p||_)};static#n=this.\u0275mod=c.$C({type:_});static#o=this.\u0275inj=c.G2t({imports:[a.MD,o.X1,t.qy.forChild({types:[T]}),e.PQ,f.j]})}return _})()},8692:(B,D,n)=>{n.d(D,{j:()=>s});var a=n(177),t=n(8524),c=n(3953),o=n(513),f=n(6389),C=n(5930),T=n(1939);const z={name:"submit-button",component:(()=>{class p extends t.PU{constructor(){super(),this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}static#t=this.\u0275fac=function(v){return new(v||p)};static#n=this.\u0275cmp=c.VBU({type:p,selectors:[["cvc-submit-button-type"]],features:[c.Vt3],decls:3,vars:2,consts:[["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","large",3,"disabled"]],template:function(v,x){1&v&&(c.j41(0,"cvc-form-buttons")(1,"button",0),c.EFF(2),c.k0s()()),2&v&&(c.R7$(),c.Y8G("disabled",!x.form.valid),c.R7$(),c.SpI(" ",x.to.submitLabel," "))},dependencies:[o.aO,f.c,C.p,T.l],encapsulation:2,changeDetection:0})}return p})()};var _=n(3842),G=n(9417);let s=(()=>{class p{static#t=this.\u0275fac=function(v){return new(v||p)};static#n=this.\u0275mod=c.$C({type:p});static#o=this.\u0275inj=c.G2t({imports:[a.MD,G.X1,t.qy.forChild({types:[z]}),o.Zw,_.k]})}return p})()},7481:(B,D,n)=>{n.d(D,{$:()=>I,u:()=>g});var a=n(4707),t=n(7336),c=n(177),o=n(3953),f=n(9417),C=n(1413),T=n(3726),e=n(6977),z=n(6042),_=n(7806),G=n(5930),s=n(5103),p=n(851),u=n(8203);const E=["switchElement"];function v(m,U){1&m&&o.nrm(0,"span",8)}function x(m,U){if(1&m&&(o.qex(0),o.EFF(1),o.bVm()),2&m){const l=o.XpG(2);o.R7$(),o.JRh(l.nzCheckedChildren)}}function R(m,U){if(1&m&&(o.qex(0),o.DNE(1,x,2,1,"ng-container",9),o.bVm()),2&m){const l=o.XpG();o.R7$(),o.Y8G("nzStringTemplateOutlet",l.nzCheckedChildren)}}function F(m,U){if(1&m&&(o.qex(0),o.EFF(1),o.bVm()),2&m){const l=o.XpG(2);o.R7$(),o.JRh(l.nzUnCheckedChildren)}}function d(m,U){if(1&m&&o.DNE(0,F,2,1,"ng-container",9),2&m){const l=o.XpG();o.Y8G("nzStringTemplateOutlet",l.nzUnCheckedChildren)}}let g=(()=>{class m{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,h,P,S,N,V){this.nzConfigService=l,this.host=h,this.ngZone=P,this.cdr=S,this.focusMonitor=N,this.directionality=V,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 C.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,e.Q)(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,e.Q)(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,e.Q)(this.destroy$)).subscribe(l=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:h}=l;h!==t.UQ&&h!==t.LE&&h!==t.t6&&h!==t.Fm||(l.preventDefault(),this.ngZone.run(()=>{h===t.UQ?this.updateValue(!1):h===t.LE?this.updateValue(!0):(h===t.t6||h===t.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,e.Q)(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()}static#t=this.\u0275fac=function(h){return new(h||m)(o.rXU(z.yx),o.rXU(o.aKT),o.rXU(o.SKi),o.rXU(o.gRc),o.rXU(p.FN),o.rXU(u.dS,8))};static#n=this.\u0275cmp=o.VBU({type:m,selectors:[["nz-switch"]],viewQuery:function(h,P){if(1&h&&o.GBs(E,7),2&h){let S;o.mGM(S=o.lsd())&&(P.switchElement=S.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",o.L39],nzDisabled:[2,"nzDisabled","nzDisabled",o.L39],nzControl:[2,"nzControl","nzControl",o.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[o.Jv_([{provide:f.kq,useExisting:(0,o.Rfq)(()=>m),multi:!0}]),o.GFd,o.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(h,P){if(1&h&&(o.j41(0,"button",2,0)(2,"span",3),o.DNE(3,v,1,0,"span",4),o.k0s(),o.j41(4,"span",5),o.DNE(5,R,2,1,"ng-container",6)(6,d,1,1,"ng-template",null,1,o.C5r),o.k0s(),o.nrm(8,"div",7),o.k0s()),2&h){const S=o.sdS(7);o.AVh("ant-switch-checked",P.isChecked)("ant-switch-loading",P.nzLoading)("ant-switch-disabled",P.nzDisabled)("ant-switch-small","small"===P.nzSize)("ant-switch-rtl","rtl"===P.dir),o.Y8G("disabled",P.nzDisabled)("nzWaveExtraNode",!0),o.BMQ("id",P.nzId),o.R7$(3),o.Y8G("ngIf",P.nzLoading),o.R7$(2),o.Y8G("ngIf",P.isChecked)("ngIfElse",S)}},dependencies:[G.o7,G.p,s.Y3,s.Dn,c.bT,_.C,_.m],encapsulation:2,changeDetection:0})}return(0,a.Cg)([(0,z.H4)()],m.prototype,"nzSize",void 0),m})(),I=(()=>{class m{static#t=this.\u0275fac=function(h){return new(h||m)};static#n=this.\u0275mod=o.$C({type:m});static#o=this.\u0275inj=o.G2t({imports:[g]})}return m})()}}]); \ No newline at end of file diff --git a/server/public/6024.72cfcf7047b0c3fa.js b/server/public/6024.2cf87d0897668d31.js similarity index 50% rename from server/public/6024.72cfcf7047b0c3fa.js rename to server/public/6024.2cf87d0897668d31.js index af148a4aa..4756fbed2 100644 --- a/server/public/6024.72cfcf7047b0c3fa.js +++ b/server/public/6024.2cf87d0897668d31.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6024],{5128:(O,I,a)=>{a.d(I,{K:()=>f});var r=a(177),z=a(8524),d=a(3953),g=a(9417),E=a(1011);const b={name:"comment-textarea",component:(()=>{class c extends z.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(u,v)=>`Comments must be at least ${v.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#e=this.\u0275fac=(()=>{let u;return function(m){return(u||(u=d.xGo(c)))(m||c)}})();static#n=this.\u0275cmp=d.VBU({type:c,selectors:[["comment-textarea-type"]],features:[d.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(v,m){1&v&&d.nrm(0,"textarea",0),2&v&&d.Y8G("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[g.me,g.BC,g.l_,z.ch,E.Sy],encapsulation:2,changeDetection:0})}return c})(),wrappers:["form-field"]};var y=a(8927);let f=(()=>{class c{static#e=this.\u0275fac=function(v){return new(v||c)};static#n=this.\u0275mod=d.$C({type:c});static#t=this.\u0275inj=d.G2t({imports:[r.MD,g.X1,z.qy.forChild({types:[b]}),y.PQ,E.j]})}return c})()},8345:(O,I,a)=>{a.r(I),a.d(I,{EvidenceDetailModule:()=>ct});var r=a(177),z=a(4124),d=a(7685),g=a(7391),E=a(1896),_=a(3062),b=a(513),y=a(5699),f=a(5103),c=a(1188),p=a(9145),u=a(9172),v=a(6977),m=a(4608),N=a(1413),X=a(4412),e=a(3953),A=a(1305),G=a(1774),$=a(3617),S=a(6389),L=a(5930),T=a(7529),C=a(5154),U=a(9765),B=a(8821),J=a(7428),w=a(5269),W=a(8719),Q=a(1263),Z=a(9945),k=a(6269),D=a(5473),H=a(3075);const K=n=>({flagged:n}),q=n=>["/evidence",n,"revise"],ee=n=>({existingEvidenceId:n});function ne(n,s){if(1&n&&(e.j41(0,"span",10)(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," Parents:"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.JRh(t.name)}}function te(n,s){if(1&n&&(e.j41(0,"span",11),e.nrm(1,"cvc-molecular-profile-tag",12),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function ie(n,s){1&n&&(e.j41(0,"nz-space",7),e.DNE(1,ne,4,1,"span",8)(2,te,2,2,"span",9),e.k0s())}function ae(n,s){1&n&&(e.j41(0,"nz-tag",26),e.EFF(1,"Flagged"),e.k0s()),2&n&&e.Y8G("nzColor","red")}function se(n,s){if(1&n&&(e.j41(0,"button",28,2),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),i=e.XpG(3).ngIf;e.Y8G("routerLink",e.eq3(2,q,i.id))("nzType",t.isActive?"primary":"default")}}function oe(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,se,3,4,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function ce(n,s){if(1&n&&(e.j41(0,"button",30,2),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function re(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,ce,3,1,"button",29),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function le(n,s){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,i=e.XpG(2);e.Y8G("viewer",t)("subscribableId",i.subscribable.id)}}function de(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,le,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.signedIn&&i.subscribable)}}function pe(n,s){if(1&n){const t=e.RV6();e.j41(0,"cvc-revert-entity-button",34),e.bIt("onReverted",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onRevertCompleted(o))}),e.k0s()}if(2&n){const t=e.XpG(3).ngIf;e.Y8G("entityId",t.id)}}function me(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,pe,1,1,"cvc-revert-entity-button",33),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.canModerate&&"SUBMITTED"!=i.status)}}function ge(n,s){if(1&n&&(e.j41(0,"button",36),e.nrm(1,"i",37),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,ee,t.id))}}function ve(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,ge,2,3,"button",35),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function ue(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",38),e.bIt("nzOnClose",function(){const o=e.eBV(t).$implicit,l=e.XpG(3);return e.Njj(l.onErrorBannerClose(o))}),e.k0s()}2&n&&e.Y8G("nzMessage",s.$implicit)}function _e(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",39),e.bIt("nzOnClose",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onSuccessBannerClose())}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("nzMessage",t.successMessage)}}function fe(n,s){1&n&&e.nrm(0,"nz-alert",40)}function he(n,s){1&n&&e.nrm(0,"nz-alert",41)}function ze(n,s){if(1&n&&(e.j41(0,"nz-col",42),e.nrm(1,"cvc-contributor-avatars",43),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function ye(n,s){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"cvc-moderate-entity-buttons",45),e.bIt("onModerated",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onModerateCompleted(o))}),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf;e.R7$(),e.Y8G("entityId",t.id)}}function Te(n,s){1&n&&e.nrm(0,"span")}function Ee(n,s){1&n&&(e.j41(0,"nz-space",44),e.DNE(1,ye,2,1,"span",18)(2,Te,1,0,"span",18),e.k0s())}function be(n,s){if(1&n&&(e.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),e.nrm(2,"i",15),e.nI1(3,"entityColor"),e.EFF(4),e.k0s(),e.j41(5,"nz-page-header-tags"),e.DNE(6,ae,2,1,"nz-tag",16),e.k0s(),e.j41(7,"nz-page-header-extra")(8,"nz-space",17),e.DNE(9,oe,2,1,"span",18)(10,re,2,1,"span",18)(11,de,2,1,"span",18)(12,me,2,1,"span",18)(13,ve,2,1,"span",18),e.k0s()(),e.j41(14,"nz-page-header-content"),e.DNE(15,ue,1,1,"nz-alert",19)(16,_e,1,1,"nz-alert",20)(17,fe,1,0,"nz-alert",21)(18,he,1,0,"nz-alert",22),e.j41(19,"cvc-tab-navigation",23),e.nI1(20,"ngrxPush"),e.DNE(21,ze,2,1,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(23,Ee,3,0,"nz-space",24),e.j41(24,"div",25),e.nrm(25,"router-outlet"),e.k0s()()()),2&n){const t=s.ngrxLet,i=e.XpG().ngIf,o=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(14,K,i.flags.totalCount>0)),e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(3,10,"EvidenceItem")),e.R7$(2),e.SpI(" ",i.name," "),e.R7$(2),e.Y8G("ngIf",!1),e.R7$(9),e.Y8G("ngForOf",o.errors),e.R7$(),e.Y8G("ngIf",o.successMessage),e.R7$(),e.Y8G("ngIf","SUBMITTED"==i.status),e.R7$(),e.Y8G("ngIf","REJECTED"==i.status),e.R7$(),e.Y8G("tabs",e.bMT(20,12,o.tabs$)),e.R7$(4),e.Y8G("ngIf",(t.canModerate||t.signedIn&&t.id==(null==i.submissionEvent||null==i.submissionEvent.originatingUser?null:i.submissionEvent.originatingUser.id))&&"SUBMITTED"==i.status)}}function Ie(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",4),e.DNE(2,ie,3,0,"ng-template",null,0,e.C5r),e.j41(4,"div",5),e.nI1(5,"ngrxPush"),e.DNE(6,be,26,16,"nz-page-header",6),e.k0s(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(3),o=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("relationsTpl",i),e.R7$(3),e.Y8G("flags",e.bMT(5,4,o.flagsTotal$)),e.R7$(2),e.Y8G("ngrxLet",o.viewer$)}}let Ce=(()=>{class n{constructor(t,i,o){this.gql=t,this.viewerService=i,this.route=o,this.errors=[],this.destroy$=new N.B,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 X.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({evidenceId:+l.evidenceId});let V=this.queryRef.valueChanges;this.loading$=V.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=V.pipe((0,m.E)("data","evidenceItem")),this.flagsTotal$=this.evidence$.pipe((0,m.E)("flags","totalCount")),this.evidence$.pipe((0,v.Q)(this.destroy$)).subscribe({next:R=>{this.tabs$.next(this.defaultTabs.map(h=>"Revisions"===h.tabLabel?{badgeCount:R?.revisions.totalCount,...h}:"Flags"===h.tabLabel?{badgeCount:R?.flags.totalCount,...h}:"Comments"===h.tabLabel?{badgeCount:R?.comments.totalCount,badgeColor:"#cccccc",...h}:h))}}),this.subscribable={id:+l.evidenceId,entityType:p.V9U.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(i=>i!=t)}onSuccessBannerClose(){this.successMessage=void 0}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.fQd),e.rXU(A.q),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[["evidenceRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["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"],["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"],["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,"onReverted","entityId"],["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,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["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,"onModerated","entityId"]],template:function(i,o){1&i&&(e.DNE(0,Ie,7,6,"ng-container",3),e.nI1(1,"ngrxPush")),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.YU,r.Sq,r.bT,c.n3,c.Wk,c.wQ,G.Nj,$.Y,b.aO,S.c,L.p,T.Uq,f.Dn,y.s,_.WB,_.k9,_.zR,_.cC,_.ov,d.U5,d.Dq,g.Di,C.LH,U.n,B.H,J.v,w.o,W.r,Q.L,Z.N,k.f,D.z,G.L9,H.R],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}"]})}return n})();var Ge=a(4873);let xe=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Ge.A]})}return n})();var Re=a(1661),$e=a(664);let Se=(()=>{class n{constructor(t,i){this.route=t,this.apollo=i,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:p.T31.EvidenceItem}}ngOnInit(){const t={id:`EvidenceItem:${this.commentable.id}`,fragment:p.LJ9,fragmentName:"evidenceSubmissionActivity"};try{const i=this.apollo.client.readFragment(t);this.submissionComment={createdAt:i.submissionActivity.createdAt,parsedComment:i.submissionActivity.parsedNote,commenter:i.submissionActivity.user}}catch(i){console.log(i)}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX),e.rXU(Re.Ic))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-comment-list",0),2&i&&e.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[$e.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var De=a(5703),Ye=a(1912),Pe=a(7268);let Me=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,T.f3,De.Ti,d.pc,Ye.i3,Pe.G]})}return n})();var je=a(4097);let Fe=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:p.lD4.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-flag-list-and-filter",0),2&i&&e.Y8G("flaggable",o.flaggable)},dependencies:[je.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Ve=a(6371);let Oe=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Ve.O]})}return n})();var Ne=a(4055);let Xe=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.eid=+i.evidenceId,this.entityType=p.BlQ.EvidenceItem})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(i,o){1&i&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&i&&e.Y8G("id",o.eid)("entityType",o.entityType)},dependencies:[Ne.B],encapsulation:2})}return n})();var Ae=a(7660),Le=a(9619),Ue=a(9192),Be=a(9213),Je=a(1448),Y=a(996),we=a(1542),We=a(797),Qe=a(9590),Ze=a(2142),ke=a(1209),He=a(9802),Ke=a(2839),P=a(4917),x=a(2e3),qe=a(7556),M=a(1236),en=a(7169);let nn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,c.iI,T.f3,d.pc,g.kT,b.Zw,y.T,f.Y3,x.WF,C.Qt,M.MC,qe.F,P.i,Be.l,Ue.J,Qe.R,Ze.x,Ke.m,Le.u,ke.k,we.X,He._,Ae.u,We.h,Y.o,Je.B,en.W]})}return n})();var tn=a(2033);function an(n,s){1&n&&e.nrm(0,"i",4)}function sn(n,s){1&n&&e.nrm(0,"i",5)}function on(n,s){if(1&n&&(e.qex(0),e.DNE(1,an,1,0,"i",2)(2,sn,1,0,"i",3),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.filledStars),e.R7$(),e.Y8G("ngForOf",t.emptyStars)}}function cn(n,s){1&n&&e.EFF(0," -- ")}let rn=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[["noStars",""],[4,"ngIf","ngIfElse"],["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(i,o){if(1&i&&e.DNE(0,on,3,2,"ng-container",1)(1,cn,1,0,"ng-template",null,0,e.C5r),2&i){const l=e.sdS(2);e.Y8G("ngIf",o.starRating)("ngIfElse",l)}},dependencies:[r.Sq,r.bT,f.Dn],encapsulation:2})}return n})();var ln=a(9861),dn=a(311),pn=a(7855),mn=a(6408),gn=a(6726),vn=a(9062),un=a(7047),_n=a(9563),fn=a(4441),hn=a(5051),zn=a(9973),yn=a(4126),Tn=a(8763),En=a(8139);const bn=()=>[8,16],j=()=>[8,8],In=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),F=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),Cn=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),Gn=()=>({width:"300px"});function xn(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.evidenceDirection)("nzTooltipTitle",e.ii3(1,2,t.evidenceDirection,"evidenceDirection",t.evidenceType,"EvidenceItem"))}}function Rn(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.significance)("nzTooltipTitle",e.ii3(1,2,t.significance,"significance",t.evidenceType,"EvidenceItem"))}}function $n(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-clinical-trial-tag",44),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("clinicalTrial",t)}}function Sn(n,s){if(1&n&&(e.qex(0),e.DNE(1,$n,2,1,"ng-container",43),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.source.clinicalTrials)}}function Dn(n,s){if(1&n&&(e.j41(0,"nz-tag",45),e.nrm(1,"i",46),e.k0s()),2&n){e.XpG();const t=e.sdS(49);e.Y8G("nzPopoverContent",t)("nzPopoverOverlayStyle",e.lJ4(2,Gn))}}function Yn(n,s){if(1&n&&e.nrm(0,"cvc-comment-body",47),2&n){const t=e.XpG().ngIf;e.Y8G("commentBodySegments",t.submissionActivity.parsedNote)}}function Pn(n,s){if(1&n&&(e.EFF(0," Submitted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.submissionActivity.createdAt),") ")}}function Mn(n,s){if(1&n&&(e.EFF(0," Accepted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.acceptanceEvent.createdAt),") ")}}function jn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",26),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,Mn,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),i=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",i.acceptanceEvent.originatingUser)}}function Fn(n,s){if(1&n&&(e.EFF(0," Rejected "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.rejectionEvent.createdAt),") ")}}function Vn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",49),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,Fn,4,3,"ng-template",null,5,e.C5r),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(3),e.Y8G("user",t.rejectionEvent.originatingUser)}}function On(n,s){if(1&n&&(e.qex(0),e.DNE(1,jn,6,2,"ng-container",6)(2,Vn,6,1,"ng-container",6),e.bVm()),2&n){const t=e.XpG().ngIf,i=e.XpG();e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Accepted&&t.acceptanceEvent),e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Rejected&&t.rejectionEvent)}}function Nn(n,s){if(1&n&&(e.qex(0),e.j41(1,"a",50),e.nrm(2,"cvc-disease-tag",51),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Mz_("routerLink","/diseases/",t.disease.id,""),e.R7$(),e.Y8G("disease",t.disease)}}function Xn(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-phenotype-tag",52),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("phenotype",t)}}function An(n,s){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Xn,2,1,"ng-container",43),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",t.phenotypes)}}function Ln(n,s){if(1&n&&e.eu8(0,53),2&n){e.XpG(2);const t=e.sdS(3);e.Y8G("ngTemplateOutlet",t)}}function Un(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-therapy-tag",54),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("therapy",t)}}function Bn(n,s){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,Un,2,1,"ng-container",43),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.therapies)}}function Jn(n,s){if(1&n&&(e.j41(0,"nz-descriptions-item",55),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,t.therapyInteractionType)," ")}}function wn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-row",7)(2,"nz-col",8)(3,"nz-row",7)(4,"nz-col",8)(5,"nz-descriptions",9)(6,"nz-descriptions-item",10)(7,"p",11),e.EFF(8),e.k0s()()()(),e.j41(9,"nz-col",8)(10,"nz-descriptions",12)(11,"nz-descriptions-item",13),e.nrm(12,"cvc-attribute-tag",14),e.nI1(13,"enumTooltip"),e.k0s(),e.j41(14,"nz-descriptions-item",15),e.DNE(15,xn,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(16,"nz-descriptions-item",17),e.DNE(17,Rn,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(18,"nz-descriptions-item",18),e.nrm(19,"cvc-attribute-tag",19),e.nI1(20,"enumTooltip"),e.k0s(),e.j41(21,"nz-descriptions-item",20)(22,"nz-tag",21),e.nI1(23,"enumTooltip"),e.j41(24,"strong"),e.EFF(25),e.k0s(),e.EFF(26),e.nI1(27,"enumTooltip"),e.k0s()(),e.j41(28,"nz-descriptions-item",22)(29,"nz-tag",21),e.nI1(30,"enumTooltip"),e.nrm(31,"cvc-evidence-rating",23),e.k0s()()()(),e.j41(32,"nz-col",8)(33,"nz-descriptions",12)(34,"nz-descriptions-item",24),e.nrm(35,"cvc-source-tag",25),e.k0s(),e.j41(36,"nz-descriptions-item",26),e.DNE(37,Sn,2,1,"ng-container",27),e.k0s()()()()(),e.j41(38,"nz-col",8)(39,"nz-row",7)(40,"nz-col",8)(41,"nz-descriptions",28)(42,"nz-descriptions-item",29),e.nrm(43,"cvc-status-tag",30),e.k0s(),e.j41(44,"nz-descriptions-item",26),e.EFF(45," by "),e.nrm(46,"cvc-user-tag",31),e.DNE(47,Dn,2,3,"nz-tag",32)(48,Yn,1,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(50,Pn,4,3,"ng-template",null,3,e.C5r)(52,On,3,2,"ng-container",6),e.k0s()(),e.j41(53,"nz-col",8)(54,"nz-descriptions",12)(55,"nz-descriptions-item",33),e.nrm(56,"cvc-molecular-profile-tag",34),e.k0s(),e.j41(57,"nz-descriptions-item",35),e.nrm(58,"cvc-mp-tag-name",36),e.k0s(),e.j41(59,"nz-descriptions-item",37),e.DNE(60,Nn,3,3,"ng-container",27),e.k0s(),e.j41(61,"nz-descriptions-item",26),e.DNE(62,An,3,1,"ng-container",27),e.k0s(),e.j41(63,"nz-descriptions-item",26),e.qex(64,38),e.DNE(65,Ln,1,1,"ng-template",39)(66,Bn,2,1,"ng-template",40),e.bVm(),e.k0s(),e.DNE(67,Jn,3,3,"nz-descriptions-item",41),e.k0s()()()(),e.j41(68,"nz-col",8),e.nrm(69,"cvc-assertions-table",42),e.k0s()(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(51);e.XpG();const o=e.sdS(3),l=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(68,bn)),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(69,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," "),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(70,In)),e.R7$(2),e.Y8G("cvcAttrValue",t.evidenceType)("nzTooltipTitle",e.i5U(13,53,t.evidenceType,"evidenceType")),e.R7$(3),e.Y8G("ngIf","NA"!==t.evidenceDirection)("ngIfElse",o),e.R7$(2),e.Y8G("ngIf","NA"!==t.significance)("ngIfElse",o),e.R7$(2),e.Y8G("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",e.i5U(20,56,t.variantOrigin,"variantOrigin")),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(23,59,t.evidenceLevel,"evidenceLevel")),e.R7$(3),e.JRh(t.evidenceLevel),e.R7$(),e.SpI(" - ",e.i5U(27,62,t.evidenceLevel,"evidenceLevelBrief")," "),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(30,65,t.evidenceRating,"evidenceRating")),e.R7$(2),e.Y8G("starRating",t.evidenceRating),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(71,F)),e.R7$(2),e.Y8G("source",t.source),e.R7$(),e.Y8G("nzTitle",t.source.clinicalTrials&&t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.R7$(),e.Y8G("ngIf",t.source.clinicalTrials&&t.source.clinicalTrials.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(72,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(73,Cn)),e.R7$(2),e.Y8G("status",t.status),e.R7$(),e.Y8G("nzTitle",i),e.R7$(2),e.Y8G("user",t.submissionEvent.originatingUser),e.R7$(),e.Y8G("ngIf",t.submissionActivity.parsedNote.length>0),e.R7$(5),e.Y8G("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(74,F)),e.R7$(2),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!0),e.R7$(2),e.Y8G("nameSegments",t.molecularProfile.parsedName),e.R7$(2),e.Y8G("ngIf",t.disease)("ngIfElse",o),e.R7$(),e.Y8G("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),e.R7$(),e.Y8G("ngIf",t.phenotypes.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),e.R7$(),e.Y8G("ngPlural",t.therapies.length),e.R7$(3),e.Y8G("ngIf",t.therapyInteractionType),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("evidenceId",t.id)}}function Wn(n,s){1&n&&e.nrm(0,"cvc-empty-value",56)}function Qn(n,s){1&n&&e.nrm(0,"cvc-empty-value",57)}let Zn=(()=>{class n{constructor(t,i){var o;if(this.gql=t,this.route=i,this.statusValues=p.YSN,null==(o=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:o});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=l.pipe((0,m.E)("data","evidenceItem")),this.subscribable={entityType:p.V9U.EvidenceItem,id:o}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.Ype),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[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"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["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-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],["nz-typography","","nzType","secondary"],["nzTitle","Rejected"],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(i,o){1&i&&(e.DNE(0,wn,70,75,"ng-container",6),e.nI1(1,"ngrxPush"),e.DNE(2,Wn,1,0,"ng-template",null,0,e.C5r)(4,Qn,1,0,"ng-template",null,1,e.C5r)),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,c.Wk,T.Uq,T.e,g.Di,S.c,y.s,f.Dn,x.xA,x.gr,C.LH,M.L_,tn.o,rn,ln.Y,dn.g,pn.M,mn.r,gn.X,vn.D,un.A,_n.R,fn.z,hn.y,D.z,zn.G,yn.p,r.PV,G.L9,Tn.k,En.N],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}"]})}return n})();var kn=a(9543);let Hn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:p.V9U.EvidenceItem}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-event-feed",0),2&i&&e.Y8G("subscribable",o.subscribable)},dependencies:[kn.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Kn=a(326);let qn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Kn.p]})}return n})();const et=[{path:"",component:Ce,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Zn,data:{breadcrumb:"Summary"}},{path:"comments",component:Se,data:{breadcrumb:"Comments"}},{path:"revisions",component:Xe,data:{breadcrumb:"Revisions"}},{path:"flags",component:Fe,data:{breadcrumb:"Flags"}},{path:"events",component:Hn,data:{breadcrumb:"Events"}}]}];let nt=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[c.iI.forChild(et),nn,xe,Oe,Me,qn,c.iI]})}return n})();var tt=a(5736),it=a(590),at=a(78),st=a(1532),ot=a(8103);let ct=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,nt,$.$,b.Zw,T.f3,f.Y3,y.T,_.ZJ,d.pc,g.kT,C.Qt,z.C,E.Y,tt.V,E.Y,at.U,P.i,it.W,z.C,st.W,ot.m,Y.o]})}return n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6024],{5128:(O,I,a)=>{a.d(I,{K:()=>f});var r=a(177),z=a(8524),d=a(3953),g=a(9417),E=a(1011);const b={name:"comment-textarea",component:(()=>{class c extends z.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(u,v)=>`Comments must be at least ${v.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#e=this.\u0275fac=(()=>{let u;return function(m){return(u||(u=d.xGo(c)))(m||c)}})();static#n=this.\u0275cmp=d.VBU({type:c,selectors:[["comment-textarea-type"]],features:[d.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(v,m){1&v&&d.nrm(0,"textarea",0),2&v&&d.Y8G("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[g.me,g.BC,g.l_,z.ch,E.Sy],encapsulation:2,changeDetection:0})}return c})(),wrappers:["form-field"]};var y=a(8927);let f=(()=>{class c{static#e=this.\u0275fac=function(v){return new(v||c)};static#n=this.\u0275mod=d.$C({type:c});static#t=this.\u0275inj=d.G2t({imports:[r.MD,g.X1,z.qy.forChild({types:[b]}),y.PQ,E.j]})}return c})()},8345:(O,I,a)=>{a.r(I),a.d(I,{EvidenceDetailModule:()=>ct});var r=a(177),z=a(4124),d=a(7685),g=a(7391),E=a(1896),_=a(3062),b=a(513),y=a(5699),f=a(5103),c=a(1188),p=a(9145),u=a(9172),v=a(6977),m=a(4608),N=a(1413),X=a(4412),e=a(3953),A=a(1305),G=a(1774),$=a(3617),S=a(6389),L=a(5930),T=a(7529),C=a(5154),U=a(9765),B=a(8821),J=a(7428),w=a(5269),W=a(8719),Q=a(1263),Z=a(9945),k=a(6269),D=a(5473),H=a(3075);const K=n=>({flagged:n}),q=n=>["/evidence",n,"revise"],ee=n=>({existingEvidenceId:n});function ne(n,s){if(1&n&&(e.j41(0,"span",10)(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," Parents:"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.JRh(t.name)}}function te(n,s){if(1&n&&(e.j41(0,"span",11),e.nrm(1,"cvc-molecular-profile-tag",12),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function ie(n,s){1&n&&(e.j41(0,"nz-space",7),e.DNE(1,ne,4,1,"span",8)(2,te,2,2,"span",9),e.k0s())}function ae(n,s){1&n&&(e.j41(0,"nz-tag",26),e.EFF(1,"Flagged"),e.k0s()),2&n&&e.Y8G("nzColor","red")}function se(n,s){if(1&n&&(e.j41(0,"button",28,2),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),i=e.XpG(3).ngIf;e.Y8G("routerLink",e.eq3(2,q,i.id))("nzType",t.isActive?"primary":"default")}}function oe(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,se,3,4,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function ce(n,s){if(1&n&&(e.j41(0,"button",30,2),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function re(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,ce,3,1,"button",29),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function le(n,s){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,i=e.XpG(2);e.Y8G("viewer",t)("subscribableId",i.subscribable.id)}}function de(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,le,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.signedIn&&i.subscribable)}}function pe(n,s){if(1&n){const t=e.RV6();e.j41(0,"cvc-revert-entity-button",34),e.bIt("onReverted",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onRevertCompleted(o))}),e.k0s()}if(2&n){const t=e.XpG(3).ngIf;e.Y8G("entityId",t.id)}}function me(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,pe,1,1,"cvc-revert-entity-button",33),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.canModerate&&"SUBMITTED"!=i.status)}}function ge(n,s){if(1&n&&(e.j41(0,"button",36),e.nrm(1,"i",37),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,ee,t.id))}}function ve(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,ge,2,3,"button",35),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function ue(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",38),e.bIt("nzOnClose",function(){const o=e.eBV(t).$implicit,l=e.XpG(3);return e.Njj(l.onErrorBannerClose(o))}),e.k0s()}2&n&&e.Y8G("nzMessage",s.$implicit)}function _e(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",39),e.bIt("nzOnClose",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onSuccessBannerClose())}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("nzMessage",t.successMessage)}}function fe(n,s){1&n&&e.nrm(0,"nz-alert",40)}function he(n,s){1&n&&e.nrm(0,"nz-alert",41)}function ze(n,s){if(1&n&&(e.j41(0,"nz-col",42),e.nrm(1,"cvc-contributor-avatars",43),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function ye(n,s){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"cvc-moderate-entity-buttons",45),e.bIt("onModerated",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onModerateCompleted(o))}),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf;e.R7$(),e.Y8G("entityId",t.id)}}function Te(n,s){1&n&&e.nrm(0,"span")}function Ee(n,s){1&n&&(e.j41(0,"nz-space",44),e.DNE(1,ye,2,1,"span",18)(2,Te,1,0,"span",18),e.k0s())}function be(n,s){if(1&n&&(e.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),e.nrm(2,"i",15),e.nI1(3,"entityColor"),e.EFF(4),e.k0s(),e.j41(5,"nz-page-header-tags"),e.DNE(6,ae,2,1,"nz-tag",16),e.k0s(),e.j41(7,"nz-page-header-extra")(8,"nz-space",17),e.DNE(9,oe,2,1,"span",18)(10,re,2,1,"span",18)(11,de,2,1,"span",18)(12,me,2,1,"span",18)(13,ve,2,1,"span",18),e.k0s()(),e.j41(14,"nz-page-header-content"),e.DNE(15,ue,1,1,"nz-alert",19)(16,_e,1,1,"nz-alert",20)(17,fe,1,0,"nz-alert",21)(18,he,1,0,"nz-alert",22),e.j41(19,"cvc-tab-navigation",23),e.nI1(20,"ngrxPush"),e.DNE(21,ze,2,1,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(23,Ee,3,0,"nz-space",24),e.j41(24,"div",25),e.nrm(25,"router-outlet"),e.k0s()()()),2&n){const t=s.ngrxLet,i=e.XpG().ngIf,o=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(14,K,i.flags.totalCount>0)),e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(3,10,"EvidenceItem")),e.R7$(2),e.SpI(" ",i.name," "),e.R7$(2),e.Y8G("ngIf",!1),e.R7$(9),e.Y8G("ngForOf",o.errors),e.R7$(),e.Y8G("ngIf",o.successMessage),e.R7$(),e.Y8G("ngIf","SUBMITTED"==i.status),e.R7$(),e.Y8G("ngIf","REJECTED"==i.status),e.R7$(),e.Y8G("tabs",e.bMT(20,12,o.tabs$)),e.R7$(4),e.Y8G("ngIf",(t.canModerate||t.signedIn&&t.id==(null==i.submissionEvent||null==i.submissionEvent.originatingUser?null:i.submissionEvent.originatingUser.id))&&"SUBMITTED"==i.status)}}function Ie(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",4),e.DNE(2,ie,3,0,"ng-template",null,0,e.C5r),e.j41(4,"div",5),e.nI1(5,"ngrxPush"),e.DNE(6,be,26,16,"nz-page-header",6),e.k0s(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(3),o=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("relationsTpl",i),e.R7$(3),e.Y8G("flags",e.bMT(5,4,o.flagsTotal$)),e.R7$(2),e.Y8G("ngrxLet",o.viewer$)}}let Ce=(()=>{class n{constructor(t,i,o){this.gql=t,this.viewerService=i,this.route=o,this.errors=[],this.destroy$=new N.B,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 X.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({evidenceId:+l.evidenceId});let V=this.queryRef.valueChanges;this.loading$=V.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=V.pipe((0,m.E)("data","evidenceItem")),this.flagsTotal$=this.evidence$.pipe((0,m.E)("flags","totalCount")),this.evidence$.pipe((0,v.Q)(this.destroy$)).subscribe({next:R=>{this.tabs$.next(this.defaultTabs.map(h=>"Revisions"===h.tabLabel?{badgeCount:R?.revisions.totalCount,...h}:"Flags"===h.tabLabel?{badgeCount:R?.flags.totalCount,...h}:"Comments"===h.tabLabel?{badgeCount:R?.comments.totalCount,badgeColor:"#cccccc",...h}:h))}}),this.subscribable={id:+l.evidenceId,entityType:p.V9U.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(i=>i!=t)}onSuccessBannerClose(){this.successMessage=void 0}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.fQd),e.rXU(A.q),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[["evidenceRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["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"],["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"],["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,"onReverted","entityId"],["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,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["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,"onModerated","entityId"]],template:function(i,o){1&i&&(e.DNE(0,Ie,7,6,"ng-container",3),e.nI1(1,"ngrxPush")),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.YU,r.Sq,r.bT,c.n3,c.Wk,c.wQ,G.Nj,$.Y,b.aO,S.c,L.p,T.Uq,f.Dn,y.s,_.WB,_.k9,_.zR,_.cC,_.ov,d.U5,d.Dq,g.Di,C.LH,U.n,B.H,J.v,w.o,W.r,Q.L,Z.N,k.f,D.z,G.L9,H.R],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}"]})}return n})();var Ge=a(4873);let xe=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Ge.A]})}return n})();var Re=a(1661),$e=a(664);let Se=(()=>{class n{constructor(t,i){this.route=t,this.apollo=i,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:p.T31.EvidenceItem}}ngOnInit(){const t={id:`EvidenceItem:${this.commentable.id}`,fragment:p.LJ9,fragmentName:"evidenceSubmissionActivity"};try{const i=this.apollo.client.readFragment(t);this.submissionComment={createdAt:i.submissionActivity.createdAt,parsedComment:i.submissionActivity.parsedNote,commenter:i.submissionActivity.user}}catch(i){console.log(i)}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX),e.rXU(Re.Ic))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-comment-list",0),2&i&&e.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[$e.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var De=a(5703),Ye=a(1912),Pe=a(7268);let Me=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,T.f3,De.Ti,d.pc,Ye.i3,Pe.G]})}return n})();var je=a(4097);let Fe=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:p.lD4.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-flag-list-and-filter",0),2&i&&e.Y8G("flaggable",o.flaggable)},dependencies:[je.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Ve=a(6371);let Oe=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Ve.O]})}return n})();var Ne=a(4055);let Xe=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.subject={id:+i.evidenceId,entityType:p.BlQ.EvidenceItem}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(i,o){1&i&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&i&&e.Y8G("moderated",o.subject)},dependencies:[Ne.B],encapsulation:2})}return n})();var Ae=a(7660),Le=a(9619),Ue=a(9192),Be=a(9213),Je=a(1448),Y=a(996),we=a(1542),We=a(797),Qe=a(9590),Ze=a(2142),ke=a(1209),He=a(9802),Ke=a(2839),P=a(4917),x=a(2e3),qe=a(7556),M=a(1236),en=a(7169);let nn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,c.iI,T.f3,d.pc,g.kT,b.Zw,y.T,f.Y3,x.WF,C.Qt,M.MC,qe.F,P.i,Be.l,Ue.J,Qe.R,Ze.x,Ke.m,Le.u,ke.k,we.X,He._,Ae.u,We.h,Y.o,Je.B,en.W]})}return n})();var tn=a(2033);function an(n,s){1&n&&e.nrm(0,"i",4)}function sn(n,s){1&n&&e.nrm(0,"i",5)}function on(n,s){if(1&n&&(e.qex(0),e.DNE(1,an,1,0,"i",2)(2,sn,1,0,"i",3),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.filledStars),e.R7$(),e.Y8G("ngForOf",t.emptyStars)}}function cn(n,s){1&n&&e.EFF(0," -- ")}let rn=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[["noStars",""],[4,"ngIf","ngIfElse"],["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(i,o){if(1&i&&e.DNE(0,on,3,2,"ng-container",1)(1,cn,1,0,"ng-template",null,0,e.C5r),2&i){const l=e.sdS(2);e.Y8G("ngIf",o.starRating)("ngIfElse",l)}},dependencies:[r.Sq,r.bT,f.Dn],encapsulation:2})}return n})();var ln=a(9861),dn=a(311),pn=a(7855),mn=a(6408),gn=a(6726),vn=a(9062),un=a(7047),_n=a(9563),fn=a(4441),hn=a(5051),zn=a(9973),yn=a(4126),Tn=a(8763),En=a(8139);const bn=()=>[8,16],j=()=>[8,8],In=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),F=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),Cn=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),Gn=()=>({width:"300px"});function xn(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.evidenceDirection)("nzTooltipTitle",e.ii3(1,2,t.evidenceDirection,"evidenceDirection",t.evidenceType,"EvidenceItem"))}}function Rn(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.significance)("nzTooltipTitle",e.ii3(1,2,t.significance,"significance",t.evidenceType,"EvidenceItem"))}}function $n(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-clinical-trial-tag",44),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("clinicalTrial",t)}}function Sn(n,s){if(1&n&&(e.qex(0),e.DNE(1,$n,2,1,"ng-container",43),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.source.clinicalTrials)}}function Dn(n,s){if(1&n&&(e.j41(0,"nz-tag",45),e.nrm(1,"i",46),e.k0s()),2&n){e.XpG();const t=e.sdS(49);e.Y8G("nzPopoverContent",t)("nzPopoverOverlayStyle",e.lJ4(2,Gn))}}function Yn(n,s){if(1&n&&e.nrm(0,"cvc-comment-body",47),2&n){const t=e.XpG().ngIf;e.Y8G("commentBodySegments",t.submissionActivity.parsedNote)}}function Pn(n,s){if(1&n&&(e.EFF(0," Submitted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.submissionActivity.createdAt),") ")}}function Mn(n,s){if(1&n&&(e.EFF(0," Accepted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.acceptanceEvent.createdAt),") ")}}function jn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",26),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,Mn,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),i=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",i.acceptanceEvent.originatingUser)}}function Fn(n,s){if(1&n&&(e.EFF(0," Rejected "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.rejectionEvent.createdAt),") ")}}function Vn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",49),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,Fn,4,3,"ng-template",null,5,e.C5r),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(3),e.Y8G("user",t.rejectionEvent.originatingUser)}}function On(n,s){if(1&n&&(e.qex(0),e.DNE(1,jn,6,2,"ng-container",6)(2,Vn,6,1,"ng-container",6),e.bVm()),2&n){const t=e.XpG().ngIf,i=e.XpG();e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Accepted&&t.acceptanceEvent),e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Rejected&&t.rejectionEvent)}}function Nn(n,s){if(1&n&&(e.qex(0),e.j41(1,"a",50),e.nrm(2,"cvc-disease-tag",51),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Mz_("routerLink","/diseases/",t.disease.id,""),e.R7$(),e.Y8G("disease",t.disease)}}function Xn(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-phenotype-tag",52),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("phenotype",t)}}function An(n,s){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Xn,2,1,"ng-container",43),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",t.phenotypes)}}function Ln(n,s){if(1&n&&e.eu8(0,53),2&n){e.XpG(2);const t=e.sdS(3);e.Y8G("ngTemplateOutlet",t)}}function Un(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-therapy-tag",54),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("therapy",t)}}function Bn(n,s){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,Un,2,1,"ng-container",43),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.therapies)}}function Jn(n,s){if(1&n&&(e.j41(0,"nz-descriptions-item",55),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,t.therapyInteractionType)," ")}}function wn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-row",7)(2,"nz-col",8)(3,"nz-row",7)(4,"nz-col",8)(5,"nz-descriptions",9)(6,"nz-descriptions-item",10)(7,"p",11),e.EFF(8),e.k0s()()()(),e.j41(9,"nz-col",8)(10,"nz-descriptions",12)(11,"nz-descriptions-item",13),e.nrm(12,"cvc-attribute-tag",14),e.nI1(13,"enumTooltip"),e.k0s(),e.j41(14,"nz-descriptions-item",15),e.DNE(15,xn,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(16,"nz-descriptions-item",17),e.DNE(17,Rn,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(18,"nz-descriptions-item",18),e.nrm(19,"cvc-attribute-tag",19),e.nI1(20,"enumTooltip"),e.k0s(),e.j41(21,"nz-descriptions-item",20)(22,"nz-tag",21),e.nI1(23,"enumTooltip"),e.j41(24,"strong"),e.EFF(25),e.k0s(),e.EFF(26),e.nI1(27,"enumTooltip"),e.k0s()(),e.j41(28,"nz-descriptions-item",22)(29,"nz-tag",21),e.nI1(30,"enumTooltip"),e.nrm(31,"cvc-evidence-rating",23),e.k0s()()()(),e.j41(32,"nz-col",8)(33,"nz-descriptions",12)(34,"nz-descriptions-item",24),e.nrm(35,"cvc-source-tag",25),e.k0s(),e.j41(36,"nz-descriptions-item",26),e.DNE(37,Sn,2,1,"ng-container",27),e.k0s()()()()(),e.j41(38,"nz-col",8)(39,"nz-row",7)(40,"nz-col",8)(41,"nz-descriptions",28)(42,"nz-descriptions-item",29),e.nrm(43,"cvc-status-tag",30),e.k0s(),e.j41(44,"nz-descriptions-item",26),e.EFF(45," by "),e.nrm(46,"cvc-user-tag",31),e.DNE(47,Dn,2,3,"nz-tag",32)(48,Yn,1,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(50,Pn,4,3,"ng-template",null,3,e.C5r)(52,On,3,2,"ng-container",6),e.k0s()(),e.j41(53,"nz-col",8)(54,"nz-descriptions",12)(55,"nz-descriptions-item",33),e.nrm(56,"cvc-molecular-profile-tag",34),e.k0s(),e.j41(57,"nz-descriptions-item",35),e.nrm(58,"cvc-mp-tag-name",36),e.k0s(),e.j41(59,"nz-descriptions-item",37),e.DNE(60,Nn,3,3,"ng-container",27),e.k0s(),e.j41(61,"nz-descriptions-item",26),e.DNE(62,An,3,1,"ng-container",27),e.k0s(),e.j41(63,"nz-descriptions-item",26),e.qex(64,38),e.DNE(65,Ln,1,1,"ng-template",39)(66,Bn,2,1,"ng-template",40),e.bVm(),e.k0s(),e.DNE(67,Jn,3,3,"nz-descriptions-item",41),e.k0s()()()(),e.j41(68,"nz-col",8),e.nrm(69,"cvc-assertions-table",42),e.k0s()(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(51);e.XpG();const o=e.sdS(3),l=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(68,bn)),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(69,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," "),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(70,In)),e.R7$(2),e.Y8G("cvcAttrValue",t.evidenceType)("nzTooltipTitle",e.i5U(13,53,t.evidenceType,"evidenceType")),e.R7$(3),e.Y8G("ngIf","NA"!==t.evidenceDirection)("ngIfElse",o),e.R7$(2),e.Y8G("ngIf","NA"!==t.significance)("ngIfElse",o),e.R7$(2),e.Y8G("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",e.i5U(20,56,t.variantOrigin,"variantOrigin")),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(23,59,t.evidenceLevel,"evidenceLevel")),e.R7$(3),e.JRh(t.evidenceLevel),e.R7$(),e.SpI(" - ",e.i5U(27,62,t.evidenceLevel,"evidenceLevelBrief")," "),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(30,65,t.evidenceRating,"evidenceRating")),e.R7$(2),e.Y8G("starRating",t.evidenceRating),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(71,F)),e.R7$(2),e.Y8G("source",t.source),e.R7$(),e.Y8G("nzTitle",t.source.clinicalTrials&&t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.R7$(),e.Y8G("ngIf",t.source.clinicalTrials&&t.source.clinicalTrials.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(72,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(73,Cn)),e.R7$(2),e.Y8G("status",t.status),e.R7$(),e.Y8G("nzTitle",i),e.R7$(2),e.Y8G("user",t.submissionEvent.originatingUser),e.R7$(),e.Y8G("ngIf",t.submissionActivity.parsedNote.length>0),e.R7$(5),e.Y8G("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(74,F)),e.R7$(2),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!0),e.R7$(2),e.Y8G("nameSegments",t.molecularProfile.parsedName),e.R7$(2),e.Y8G("ngIf",t.disease)("ngIfElse",o),e.R7$(),e.Y8G("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),e.R7$(),e.Y8G("ngIf",t.phenotypes.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),e.R7$(),e.Y8G("ngPlural",t.therapies.length),e.R7$(3),e.Y8G("ngIf",t.therapyInteractionType),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("evidenceId",t.id)}}function Wn(n,s){1&n&&e.nrm(0,"cvc-empty-value",56)}function Qn(n,s){1&n&&e.nrm(0,"cvc-empty-value",57)}let Zn=(()=>{class n{constructor(t,i){var o;if(this.gql=t,this.route=i,this.statusValues=p.YSN,null==(o=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:o});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=l.pipe((0,m.E)("data","evidenceItem")),this.subscribable={entityType:p.V9U.EvidenceItem,id:o}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.Ype),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[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"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["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-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],["nz-typography","","nzType","secondary"],["nzTitle","Rejected"],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(i,o){1&i&&(e.DNE(0,wn,70,75,"ng-container",6),e.nI1(1,"ngrxPush"),e.DNE(2,Wn,1,0,"ng-template",null,0,e.C5r)(4,Qn,1,0,"ng-template",null,1,e.C5r)),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,c.Wk,T.Uq,T.e,g.Di,S.c,y.s,f.Dn,x.xA,x.gr,C.LH,M.L_,tn.o,rn,ln.Y,dn.g,pn.M,mn.r,gn.X,vn.D,un.A,_n.R,fn.z,hn.y,D.z,zn.G,yn.p,r.PV,G.L9,Tn.k,En.N],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}"]})}return n})();var kn=a(9543);let Hn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:p.V9U.EvidenceItem}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-event-feed",0),2&i&&e.Y8G("subscribable",o.subscribable)},dependencies:[kn.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Kn=a(326);let qn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Kn.p]})}return n})();const et=[{path:"",component:Ce,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Zn,data:{breadcrumb:"Summary"}},{path:"comments",component:Se,data:{breadcrumb:"Comments"}},{path:"revisions",component:Xe,data:{breadcrumb:"Revisions"}},{path:"flags",component:Fe,data:{breadcrumb:"Flags"}},{path:"events",component:Hn,data:{breadcrumb:"Events"}}]}];let nt=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[c.iI.forChild(et),nn,xe,Oe,Me,qn,c.iI]})}return n})();var tt=a(5736),it=a(590),at=a(78),st=a(1532),ot=a(8103);let ct=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,nt,$.$,b.Zw,T.f3,f.Y3,y.T,_.ZJ,d.pc,g.kT,C.Qt,z.C,E.Y,tt.V,E.Y,at.U,P.i,it.W,z.C,st.W,ot.m,Y.o]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/6148.5309740a6ef7c896.js b/server/public/6148.069dfef439190e01.js similarity index 99% rename from server/public/6148.5309740a6ef7c896.js rename to server/public/6148.069dfef439190e01.js index 552bdd856..6f4648b52 100644 --- a/server/public/6148.5309740a6ef7c896.js +++ b/server/public/6148.069dfef439190e01.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6148],{1532:(b,u,a)=>{a.d(u,{W:()=>c});var s=a(177),p=a(9541),e=a(7529),h=a(1188),f=a(5103),v=a(3146),y=a(3953);let c=(()=>{class l{static#e=this.\u0275fac=function(d){return new(d||l)};static#t=this.\u0275mod=y.$C({type:l});static#n=this.\u0275inj=y.G2t({imports:[s.MD,h.iI,p.hM,e.f3,f.Y3,v.W2]})}return l})()},8269:(b,u,a)=>{a.d(u,{G:()=>s,S:()=>p});const s={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},p={clientMutationId:void 0,fields:s,comment:void 0,organizationId:void 0}},7593:(b,u,a)=>{a.d(u,{o:()=>v});var s=a(9145),p=a(9894),e=a(4412),h=a(8269),f=a(5183);class v extends f.zn{constructor(){super(f.$L.ASSERTION);const c=h.G;this.fields={molecularProfileId$:new e.t(c.molecularProfileId),variantMolecularProfile$:new e.t(void 0),geneId$:new e.t(void 0),variantId$:new e.t(void 0),variantOrigin$:new e.t(c.variantOrigin),assertionType$:new e.t(c.assertionType),assertionDirection$:new e.t(c.assertionDirection),evidenceItemIds$:new e.t(c.evidenceItemIds),significance$:new e.t(c.significance),diseaseId$:new e.t(c.diseaseId),therapyIds$:new e.t(c.therapyIds),therapyInteractionType$:new e.t(c.therapyInteractionType),phenotypeIds$:new e.t(c.phenotypeIds),nccnGuidelineId$:new e.t(c.nccnGuidelineId),fdaRegulatoryApproval$:new e.t(c.fdaRegulatoryApproval),fdaCompanionTest$:new e.t(c.fdaCompanionTest),ampLevel$:new e.t(c.ampLevel),acmgCodeIds$:new e.t(c.acmgCodeIds),clingenCodeIds$:new e.t(c.clingenCodeIds),nccnGuidelineVersion$:new e.t(c.nccnGuidelineVersion),description$:new e.t(void 0),comment$:new e.t(void 0)},this.enums={entityType$:new e.t(this.getTypeOptions()),significance$:new e.t([]),direction$:new e.t([]),interaction$:new e.t(this.getInteractionOptions())},this.options={assertionTypeOption$:new e.t(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new e.t(void 0),significanceOption$:new e.t(void 0)},this.requires={requiresDisease$:new e.t(!1),requiresTherapy$:new e.t(!1),requiresTherapyInteractionType$:new e.t(!1),requiresClingenCodes$:new e.t(!1),requiresAcmgCodes$:new e.t(!1),requiresAmpLevel$:new e.t(!1),allowsFdaApproval$:new e.t(!1)},this.fields.assertionType$.pipe((0,p.s)(this,"onDestroy")).subscribe(l=>{if(!l)return Object.entries(this.requires).forEach(([R,C])=>{C.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(l)),this.enums.direction$.next(this.getDirectionOptions(l)),this.requires.requiresDisease$.next(this.requiresDisease(l)),this.requires.requiresTherapy$.next(this.requiresTherapy(l)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(l)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(l)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(l)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(l))}),this.fields.therapyIds$.pipe((0,p.s)(this,"onDestroy")).subscribe(l=>{this.requires.requiresTherapyInteractionType$.next(null!=l&&l.length>1)}),this.validStates.set(s.XEW.Predictive,{entityType:s.XEW.Predictive,significance:[s.YW4.Sensitivityresponse,s.YW4.Resistance,s.YW4.AdverseResponse,s.YW4.ReducedSensitivity,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(s.XEW.Diagnostic,{entityType:s.XEW.Diagnostic,significance:[s.YW4.Positive,s.YW4.Negative],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Prognostic,{entityType:s.XEW.Prognostic,significance:[s.YW4.BetterOutcome,s.YW4.PoorOutcome,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Predisposing,{entityType:s.XEW.Predisposing,significance:[s.YW4.Pathogenic,s.YW4.LikelyPathogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Oncogenic,{entityType:s.XEW.Oncogenic,significance:[s.YW4.Oncogenic,s.YW4.LikelyOncogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},2317:(b,u,a)=>{a.r(u),a.d(u,{TestPagesModule:()=>tt});var s=a(177),p=a(1188),e=a(3953),h=a(5847);let f=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-assertion-revise-form",0),2&n&&e.Y8G("assertionId",3)},dependencies:[h.Z],encapsulation:2,changeDetection:0})}return t})();var v=a(3988);let y=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-assertion-submit-test-page"]],decls:1,vars:0,template:function(n,r){1&n&&e.nrm(0,"cvc-assertion-submit-form")},dependencies:[v.d],encapsulation:2,changeDetection:0})}return t})();var c=a(6905);let l=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-evidence-revise-test-page"]],decls:1,vars:1,consts:[[3,"evidenceId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-evidence-revise-form",0),2&n&&e.Y8G("evidenceId",7606)},dependencies:[c._],encapsulation:2,changeDetection:0})}return t})();var R=a(4594);let C=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:0,template:function(n,r){1&n&&e.nrm(0,"cvc-evidence-submit-form")},dependencies:[R.e],encapsulation:2,changeDetection:0})}return t})();var d=a(9417);const I={geneId:void 0},z=[{key:"molecularProfileId",type:"molecular-profile-select",props:{}},{key:"molecularProfileIds",type:"molecular-profile-multi-select",props:{}},{key:"evidenceType",type:"type-select",props:{}},{key:"evidenceTypes",type:"type-multi-select",props:{}},{key:"featureId",type:"feature-select"},{key:"featureIds",type:"feature-multi-select",props:{}},{key:"variantId",type:"variant-select",props:{requireFeature:!1}},{key:"variantIds",type:"variant-multi-select",props:{requireFeature:!1}},{key:"sourceId",type:"source-select",props:{}},{key:"sourceIds",type:"source-multi-select",props:{}},{key:"diseaseId",type:"disease-select",props:{}},{key:"diseaseIds",type:"disease-multi-select",props:{}},{key:"drugId",type:"therapy-select",props:{}},{key:"drugIds",type:"therapy-multi-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{}},{key:"evidenceLevel",type:"level-multi-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{}},{key:"variantOrigins",type:"origin-multi-select",props:{}},{key:"tag",type:"tag-input",props:{label:"Input Test"}},{key:"tags",type:"tag-multi-input",props:{label:"Input Multi Test"}}];var M=a(8524),O=a(8927);let L=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Horizontal Field Layout, No State"}},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-horizontal-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})();var j=a(1635),Y=a(9894),A=a(4412),k=a(5964),N=a(6354),V=a(9199),W=a(4608);function w(t,o){for(var i=0;i[];function ee(t,o){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(r){e.eBV(i);const m=e.XpG(3);return e.Njj(m.tagChecked(r))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function te(t,o){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(r){e.eBV(i);const m=e.XpG(3);return e.Njj(m.tagChecked(r))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ne(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ie(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ae(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function se(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function re(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function oe(t,o){if(1&t&&(e.qex(0)(1,9),e.DNE(2,ee,13,7,"tr",10)(3,te,13,7,"tr",10)(4,ne,11,3,"tr",10)(5,ie,11,3,"tr",10)(6,ae,11,3,"tr",10)(7,se,11,3,"tr",10)(8,re,10,3,"tr",11),e.bVm()()),2&t){const i=o.$implicit;e.R7$(),e.Y8G("ngSwitch",i.__typename),e.R7$(),e.Y8G("ngSwitchCase","EvidenceItem"),e.R7$(),e.Y8G("ngSwitchCase","MolecularProfile"),e.R7$(),e.Y8G("ngSwitchCase","Gene"),e.R7$(),e.Y8G("ngSwitchCase","Variant"),e.R7$(),e.Y8G("ngSwitchCase","Therapy"),e.R7$(),e.Y8G("ngSwitchCase","Disease")}}function ce(t,o){if(1&t&&(e.qex(0),e.DNE(1,oe,9,7,"ng-container",7),e.j41(2,"tr")(3,"td"),e.EFF(4,"CACHE MISS"),e.k0s(),e.j41(5,"td"),e.nrm(6,"cvc-entity-tag",8),e.k0s(),e.nrm(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),e.k0s(),e.bVm()),2&t){const i=o.ngrxLet;e.XpG();const n=e.sdS(2);e.R7$(),e.Y8G("ngForOf",n.data),e.R7$(5),e.Y8G("cvcCacheId","FakeTypename:42")("cvcEmphasize",i)}}function le(t,o){if(1&t){const i=e.RV6();e.EFF(0," Emphasize: "),e.j41(1,"input",14,2),e.nI1(3,"ngrxPush"),e.bIt("ngModelChange",function(){e.eBV(i);const r=e.sdS(2),m=e.XpG();return e.Njj(m.emphasizeStr$.next(r.value))}),e.k0s()}if(2&t){const i=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(3,1,i.emphasizeStr$))}}let $=class E{constructor(o){this.entityTagsTestGQL=o,this.emphasizeStr$=new A.t(""),this.queryParams={molecularProfileId:3133,geneId:5,variantId:2,therapyId:16,diseaseId:2198,eid:123},this.entityTagsData$=this.entityTagsTestGQL.fetch(this.queryParams).pipe((0,W.E)("data"),(0,k.p)(V.kP),function J(t){return function(i){return i.lift(new K(t))}}("entityTagsData$"),(0,N.T)(i=>{console.log(i);const n=Object.values(i).filter(r=>"object"==typeof r);return console.log(n),n}))}tagChecked(o){console.log(`Tag checked: ${o}`)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||E)(e.rXU(q.RA2))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-nonstate-form"]],decls:26,vars:6,consts:[["tagTable",""],["cardExtra",""],["emphasizeInput",""],["nzTitle","Entity Tags & Features"],["nzSize","small",3,"nzShowPagination","nzData"],["nzWidth","150px"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcCacheId","cvcEmphasize"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["cvcMode","closeable",3,"cvcCacheId","cvcEmphasize"],["cvcMode","checkable",3,"cvcTagCheckedChange","cvcCacheId","cvcEmphasize"],["nz-input","","nzSize","small","type","text",3,"ngModelChange","ngModel"]],template:function(i,n){1&i&&(e.j41(0,"nz-card",3)(1,"nz-table",4,0),e.nI1(3,"ngrxPush"),e.j41(4,"thead")(5,"tr")(6,"th",5),e.EFF(7,"Entity"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Default"),e.k0s(),e.j41(10,"th"),e.EFF(11,"Popover"),e.k0s(),e.j41(12,"th"),e.EFF(13,"Closeable"),e.k0s(),e.j41(14,"th"),e.EFF(15,"Checkable"),e.k0s(),e.j41(16,"th"),e.EFF(17,"Truncate"),e.k0s(),e.j41(18,"th"),e.EFF(19,"Group"),e.k0s(),e.j41(20,"th"),e.EFF(21,"Unlinked"),e.k0s()()(),e.j41(22,"tbody"),e.DNE(23,ce,13,3,"ng-container",6),e.k0s()()(),e.DNE(24,le,4,3,"ng-template",null,1,e.C5r)),2&i&&(e.R7$(),e.Y8G("nzShowPagination",!1)("nzData",e.bMT(3,3,n.entityTagsData$)||e.lJ4(5,Q)),e.R7$(22),e.Y8G("ngrxLet",n.emphasizeStr$))},dependencies:[s.Sq,s.ux,s.e1,s.fG,D.Nj,d.me,d.BC,d.vS,x.cK,g.CP,g.SO,g._4,g.IL,g.aj,g.kt,Z.b,D.L9],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})};$=(0,j.Cg)([(0,Y.d)()],$);let de=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="inline",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Inline Field Layout, No State"},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-inline-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","inline",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})(),pe=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="vertical",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Vertical Field Layout, No State"}},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-vertical-form"]],decls:2,vars:4,consts:[["nz-form","","nzLayout","vertical",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})();var P=a(3062),F=a(7529),S=a(5103),_=a(9541),me=a(9765);function ue(t,o){if(1&t&&(e.j41(0,"a",9),e.nrm(1,"span",10),e.EFF(2),e.k0s()),2&t){const i=e.XpG().$implicit;e.Y8G("routerLink",i.routeName),e.R7$(),e.Y8G("nzType",i.iconName),e.R7$(),e.SpI(" ",i.tabLabel," ")}}function ge(t,o){1&t&&(e.j41(0,"nz-tab"),e.DNE(1,ue,3,3,"a",8),e.k0s())}let fe=(()=>{class t{constructor(i){this.router=i,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url),this.tabs=[{routeName:"evidence-submit-test",iconName:"civic-evidence",tabLabel:"Submit"},{routeName:"evidence-revise-test",iconName:"civic-evidence",tabLabel:"Revise"},{routeName:"assertion-submit-test",iconName:"civic-assertion",tabLabel:"Submit"},{routeName:"assertion-revise-test",iconName:"civic-assertion",tabLabel:"Revise"},{routeName:"variantgroup-revise-test",iconName:"civic-variantgroup",tabLabel:"Revise"},{routeName:"gene-revise-test",iconName:"civic-feature",tabLabel:"Revise"},{routeName:"mp-revise-test",iconName:"civic-molecularprofile",tabLabel:"Revise"},{routeName:"variant-submit-test",iconName:"civic-variant",tabLabel:"Submit"},{routeName:"variant-revise-test",iconName:"civic-variant",tabLabel:"Revise"},{routeName:"vertical-form",iconName:"layout",tabLabel:"Vertical"},{routeName:"inline-form",iconName:"layout",tabLabel:"Inline"},{routeName:"horizontal-form",iconName:"layout",tabLabel:"Horizontal"},{routeName:"tags-test",iconName:"tag",tabLabel:"Tags"}]}getActivatedRouteIndex(i){return this.tabs?.findIndex(n=>i.includes(n.routeName))}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(p.Ix))};static#t=this.\u0275cmp=e.VBU({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"],["nz-icon","",3,"nzType"]],template:function(n,r){if(1&n&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-title",1),e.EFF(3," Form Dev Pages "),e.k0s(),e.j41(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.DNE(10,ge,2,0,"nz-tab",6),e.k0s()()()()(),e.j41(11,"nz-row")(12,"nz-col",2)(13,"div",7),e.nrm(14,"router-outlet"),e.k0s()()()()()),2&n){let m;e.R7$(6),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzSelectedIndex",null!==(m=r.selectedTabIndex)&&void 0!==m?m:null),e.R7$(),e.Y8G("ngForOf",r.tabs),e.R7$(2),e.Y8G("nzSpan",24)}},dependencies:[s.Sq,p.n3,p.Wk,P.WB,P.k9,P.zR,F.Uq,F.e,S.Dn,_.JZ,_.rE,_.v3,_.rM,me.n],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})}return t})();var he=a(7526);let ve=(()=>{class t{constructor(i){this.cdr=i}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variantgroup-revise-test-page"]],decls:1,vars:1,consts:[[3,"variantGroupId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-variantgroup-revise-form",0),2&n&&e.Y8G("variantGroupId",24)},dependencies:[he.T],encapsulation:2})}return t})();var ye=a(958);let _e=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-gene-form"]],decls:1,vars:1,consts:[[3,"featureId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-gene-revise-form",0),2&n&&e.Y8G("featureId",6)},dependencies:[ye.m],encapsulation:2,changeDetection:0})}return t})();var Te=a(4514);let Ce=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-mp-form"]],decls:1,vars:1,consts:[[3,"molecularProfileId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-mp-revise-form",0),2&n&&e.Y8G("molecularProfileId",3176)},dependencies:[Te.k],encapsulation:2,changeDetection:0})}return t})();var Pe=a(2276);let be=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-form"]],decls:1,vars:1,consts:[[3,"variantId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-gene-variant-revise-form",0),2&n&&e.Y8G("variantId",4)},dependencies:[Pe.v],encapsulation:2,changeDetection:0})}return t})();var Ie=a(574);const ze=[{path:"",component:fe,children:[{path:"",redirectTo:"evidence-submit-test",pathMatch:"full"},{path:"evidence-submit-test",component:C,data:{breadcrumb:"Evidence Submit Form"}},{path:"evidence-revise-test",component:l,data:{breadcrumb:"Evidence Revise Form"}},{path:"assertion-submit-test",component:y,data:{breadcrumb:"Assertion Submit Form"}},{path:"assertion-revise-test",component:f,data:{breadcrumb:"Assertion Revise Form"}},{path:"variantgroup-revise-test",component:ve,data:{breadcrumb:"Variant Group Revise Form"}},{path:"gene-revise-test",component:_e,data:{breadcrumb:"Gene Revise Form"}},{path:"mp-revise-test",component:Ce,data:{breadcrumb:"MP Revise Form"}},{path:"variant-submit-test",component:(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-submit-test"]],decls:2,vars:0,consts:[[2,"width","500px"]],template:function(n,r){1&n&&(e.j41(0,"div",0),e.nrm(1,"cvc-variant-submit-form"),e.k0s())},dependencies:[Ie.m],encapsulation:2,changeDetection:0})}return t})(),data:{breadcrumb:"Variant Submit Form"}},{path:"variant-revise-test",component:be,data:{breadcrumb:"Variant Revise Form"}},{path:"vertical-form",component:pe,data:{breadcrumb:"Vertical Layout Test"}},{path:"inline-form",component:de,data:{breadcrumb:"Inline Layout Test"}},{path:"horizontal-form",component:L,data:{breadcrumb:"Horizontal Layout Test"}},{path:"tags-test",component:$,data:{breadcrumb:"Horizontal"}}]}];let Me=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[p.iI.forChild(ze),p.iI]})}return t})();var Oe=a(4124),$e=a(1532),Fe=a(7391),Ge=a(4917),Ee=a(8476),Re=a(7685);let we=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Ee.S,Re.pc]})}return t})();var De=a(1724);let xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,De.y]})}return t})();var Se=a(7242);let Le=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Se.Z]})}return t})();var je=a(2090);let Ye=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,je.B]})}return t})();var G=a(2229);let Ae=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})(),ke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})(),Ne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})();var Ve=a(181);let We=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,d.YN,x.Ti,g.$G,Ve._]})}return t})();var Be=a(7238);let Ue=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Be.h]})}return t})();var Xe=a(432);let He=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Xe.Q]})}return t})();var Je=a(7064);let Ke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Je.q]})}return t})();var qe=a(6404);let Ze=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,qe.v]})}return t})();var Qe=a(7380);let et=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Qe.s]})}return t})(),tt=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Me,P.ZJ,F.f3,S.Y3,Fe.kT,_.hM,Ge.i,$e.W,Oe.C,Ye,Le,xe,we,He,Ae,ke,Ke,We,Ze,et,Ue,Ne]})}return t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6148],{1532:(b,u,a)=>{a.d(u,{W:()=>c});var s=a(177),p=a(9541),e=a(7529),h=a(1188),f=a(5103),v=a(3146),y=a(3953);let c=(()=>{class l{static#e=this.\u0275fac=function(d){return new(d||l)};static#t=this.\u0275mod=y.$C({type:l});static#n=this.\u0275inj=y.G2t({imports:[s.MD,h.iI,p.hM,e.f3,f.Y3,v.W2]})}return l})()},8269:(b,u,a)=>{a.d(u,{G:()=>s,S:()=>p});const s={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},p={clientMutationId:void 0,fields:s,comment:void 0,organizationId:void 0}},7593:(b,u,a)=>{a.d(u,{o:()=>v});var s=a(9145),p=a(9894),e=a(4412),h=a(8269),f=a(5183);class v extends f.zn{constructor(){super(f.$L.ASSERTION);const c=h.G;this.fields={molecularProfileId$:new e.t(c.molecularProfileId),variantMolecularProfile$:new e.t(void 0),geneId$:new e.t(void 0),variantId$:new e.t(void 0),variantOrigin$:new e.t(c.variantOrigin),assertionType$:new e.t(c.assertionType),assertionDirection$:new e.t(c.assertionDirection),evidenceItemIds$:new e.t(c.evidenceItemIds),significance$:new e.t(c.significance),diseaseId$:new e.t(c.diseaseId),therapyIds$:new e.t(c.therapyIds),therapyInteractionType$:new e.t(c.therapyInteractionType),phenotypeIds$:new e.t(c.phenotypeIds),nccnGuidelineId$:new e.t(c.nccnGuidelineId),fdaRegulatoryApproval$:new e.t(c.fdaRegulatoryApproval),fdaCompanionTest$:new e.t(c.fdaCompanionTest),ampLevel$:new e.t(c.ampLevel),acmgCodeIds$:new e.t(c.acmgCodeIds),clingenCodeIds$:new e.t(c.clingenCodeIds),nccnGuidelineVersion$:new e.t(c.nccnGuidelineVersion),description$:new e.t(void 0),comment$:new e.t(void 0)},this.enums={entityType$:new e.t(this.getTypeOptions()),significance$:new e.t([]),direction$:new e.t([]),interaction$:new e.t(this.getInteractionOptions())},this.options={assertionTypeOption$:new e.t(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new e.t(void 0),significanceOption$:new e.t(void 0)},this.requires={requiresDisease$:new e.t(!1),requiresTherapy$:new e.t(!1),requiresTherapyInteractionType$:new e.t(!1),requiresClingenCodes$:new e.t(!1),requiresAcmgCodes$:new e.t(!1),requiresAmpLevel$:new e.t(!1),allowsFdaApproval$:new e.t(!1)},this.fields.assertionType$.pipe((0,p.s)(this,"onDestroy")).subscribe(l=>{if(!l)return Object.entries(this.requires).forEach(([R,C])=>{C.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(l)),this.enums.direction$.next(this.getDirectionOptions(l)),this.requires.requiresDisease$.next(this.requiresDisease(l)),this.requires.requiresTherapy$.next(this.requiresTherapy(l)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(l)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(l)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(l)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(l))}),this.fields.therapyIds$.pipe((0,p.s)(this,"onDestroy")).subscribe(l=>{this.requires.requiresTherapyInteractionType$.next(null!=l&&l.length>1)}),this.validStates.set(s.XEW.Predictive,{entityType:s.XEW.Predictive,significance:[s.YW4.Sensitivityresponse,s.YW4.Resistance,s.YW4.AdverseResponse,s.YW4.ReducedSensitivity,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(s.XEW.Diagnostic,{entityType:s.XEW.Diagnostic,significance:[s.YW4.Positive,s.YW4.Negative],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Prognostic,{entityType:s.XEW.Prognostic,significance:[s.YW4.BetterOutcome,s.YW4.PoorOutcome,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Predisposing,{entityType:s.XEW.Predisposing,significance:[s.YW4.Pathogenic,s.YW4.LikelyPathogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Oncogenic,{entityType:s.XEW.Oncogenic,significance:[s.YW4.Oncogenic,s.YW4.LikelyOncogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},2317:(b,u,a)=>{a.r(u),a.d(u,{TestPagesModule:()=>tt});var s=a(177),p=a(1188),e=a(3953),h=a(5847);let f=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-assertion-revise-form",0),2&n&&e.Y8G("assertionId",3)},dependencies:[h.Z],encapsulation:2,changeDetection:0})}return t})();var v=a(3988);let y=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-assertion-submit-test-page"]],decls:1,vars:0,template:function(n,r){1&n&&e.nrm(0,"cvc-assertion-submit-form")},dependencies:[v.d],encapsulation:2,changeDetection:0})}return t})();var c=a(6905);let l=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-evidence-revise-test-page"]],decls:1,vars:1,consts:[[3,"evidenceId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-evidence-revise-form",0),2&n&&e.Y8G("evidenceId",7606)},dependencies:[c._],encapsulation:2,changeDetection:0})}return t})();var R=a(4594);let C=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:0,template:function(n,r){1&n&&e.nrm(0,"cvc-evidence-submit-form")},dependencies:[R.e],encapsulation:2,changeDetection:0})}return t})();var d=a(9417);const I={geneId:void 0},z=[{key:"molecularProfileId",type:"molecular-profile-select",props:{}},{key:"molecularProfileIds",type:"molecular-profile-multi-select",props:{}},{key:"evidenceType",type:"type-select",props:{}},{key:"evidenceTypes",type:"type-multi-select",props:{}},{key:"featureId",type:"feature-select"},{key:"featureIds",type:"feature-multi-select",props:{}},{key:"variantId",type:"variant-select",props:{requireFeature:!1}},{key:"variantIds",type:"variant-multi-select",props:{requireFeature:!1}},{key:"sourceId",type:"source-select",props:{}},{key:"sourceIds",type:"source-multi-select",props:{}},{key:"diseaseId",type:"disease-select",props:{}},{key:"diseaseIds",type:"disease-multi-select",props:{}},{key:"drugId",type:"therapy-select",props:{}},{key:"drugIds",type:"therapy-multi-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{}},{key:"evidenceLevel",type:"level-multi-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{}},{key:"variantOrigins",type:"origin-multi-select",props:{}},{key:"tag",type:"tag-input",props:{label:"Input Test"}},{key:"tags",type:"tag-multi-input",props:{label:"Input Multi Test"}}];var M=a(8524),O=a(8927);let L=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Horizontal Field Layout, No State"}},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-horizontal-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})();var j=a(1635),Y=a(9894),A=a(4412),k=a(5964),N=a(6354),V=a(9199),W=a(4608);function w(t,o){for(var i=0;i[];function ee(t,o){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(r){e.eBV(i);const m=e.XpG(3);return e.Njj(m.tagChecked(r))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function te(t,o){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(r){e.eBV(i);const m=e.XpG(3);return e.Njj(m.tagChecked(r))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ne(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ie(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ae(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function se(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function re(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function oe(t,o){if(1&t&&(e.qex(0)(1,9),e.DNE(2,ee,13,7,"tr",10)(3,te,13,7,"tr",10)(4,ne,11,3,"tr",10)(5,ie,11,3,"tr",10)(6,ae,11,3,"tr",10)(7,se,11,3,"tr",10)(8,re,10,3,"tr",11),e.bVm()()),2&t){const i=o.$implicit;e.R7$(),e.Y8G("ngSwitch",i.__typename),e.R7$(),e.Y8G("ngSwitchCase","EvidenceItem"),e.R7$(),e.Y8G("ngSwitchCase","MolecularProfile"),e.R7$(),e.Y8G("ngSwitchCase","Gene"),e.R7$(),e.Y8G("ngSwitchCase","Variant"),e.R7$(),e.Y8G("ngSwitchCase","Therapy"),e.R7$(),e.Y8G("ngSwitchCase","Disease")}}function ce(t,o){if(1&t&&(e.qex(0),e.DNE(1,oe,9,7,"ng-container",7),e.j41(2,"tr")(3,"td"),e.EFF(4,"CACHE MISS"),e.k0s(),e.j41(5,"td"),e.nrm(6,"cvc-entity-tag",8),e.k0s(),e.nrm(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),e.k0s(),e.bVm()),2&t){const i=o.ngrxLet;e.XpG();const n=e.sdS(2);e.R7$(),e.Y8G("ngForOf",n.data),e.R7$(5),e.Y8G("cvcCacheId","FakeTypename:42")("cvcEmphasize",i)}}function le(t,o){if(1&t){const i=e.RV6();e.EFF(0," Emphasize: "),e.j41(1,"input",14,2),e.nI1(3,"ngrxPush"),e.bIt("ngModelChange",function(){e.eBV(i);const r=e.sdS(2),m=e.XpG();return e.Njj(m.emphasizeStr$.next(r.value))}),e.k0s()}if(2&t){const i=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(3,1,i.emphasizeStr$))}}let $=class E{constructor(o){this.entityTagsTestGQL=o,this.emphasizeStr$=new A.t(""),this.queryParams={molecularProfileId:3133,geneId:5,variantId:2,therapyId:16,diseaseId:2198,eid:123},this.entityTagsData$=this.entityTagsTestGQL.fetch(this.queryParams).pipe((0,W.E)("data"),(0,k.p)(V.kP),function J(t){return function(i){return i.lift(new K(t))}}("entityTagsData$"),(0,N.T)(i=>{console.log(i);const n=Object.values(i).filter(r=>"object"==typeof r);return console.log(n),n}))}tagChecked(o){console.log(`Tag checked: ${o}`)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||E)(e.rXU(q.RA2))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-nonstate-form"]],decls:26,vars:6,consts:[["tagTable",""],["cardExtra",""],["emphasizeInput",""],["nzTitle","Entity Tags & Features"],["nzSize","small",3,"nzShowPagination","nzData"],["nzWidth","150px"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcCacheId","cvcEmphasize"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["cvcMode","closeable",3,"cvcCacheId","cvcEmphasize"],["cvcMode","checkable",3,"cvcTagCheckedChange","cvcCacheId","cvcEmphasize"],["nz-input","","nzSize","small","type","text",3,"ngModelChange","ngModel"]],template:function(i,n){1&i&&(e.j41(0,"nz-card",3)(1,"nz-table",4,0),e.nI1(3,"ngrxPush"),e.j41(4,"thead")(5,"tr")(6,"th",5),e.EFF(7,"Entity"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Default"),e.k0s(),e.j41(10,"th"),e.EFF(11,"Popover"),e.k0s(),e.j41(12,"th"),e.EFF(13,"Closeable"),e.k0s(),e.j41(14,"th"),e.EFF(15,"Checkable"),e.k0s(),e.j41(16,"th"),e.EFF(17,"Truncate"),e.k0s(),e.j41(18,"th"),e.EFF(19,"Group"),e.k0s(),e.j41(20,"th"),e.EFF(21,"Unlinked"),e.k0s()()(),e.j41(22,"tbody"),e.DNE(23,ce,13,3,"ng-container",6),e.k0s()()(),e.DNE(24,le,4,3,"ng-template",null,1,e.C5r)),2&i&&(e.R7$(),e.Y8G("nzShowPagination",!1)("nzData",e.bMT(3,3,n.entityTagsData$)||e.lJ4(5,Q)),e.R7$(22),e.Y8G("ngrxLet",n.emphasizeStr$))},dependencies:[s.Sq,s.ux,s.e1,s.fG,D.Nj,d.me,d.BC,d.vS,x.cK,g.CP,g.SO,g._4,g.IL,g.aj,g.kt,Z.b,D.L9],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})};$=(0,j.Cg)([(0,Y.d)()],$);let de=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="inline",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Inline Field Layout, No State"},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-inline-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","inline",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})(),pe=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="vertical",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Vertical Field Layout, No State"}},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-vertical-form"]],decls:2,vars:4,consts:[["nz-form","","nzLayout","vertical",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})();var P=a(3062),F=a(7529),S=a(5103),_=a(9541),me=a(9765);function ue(t,o){if(1&t&&(e.j41(0,"a",9),e.nrm(1,"span",10),e.EFF(2),e.k0s()),2&t){const i=e.XpG().$implicit;e.Y8G("routerLink",i.routeName),e.R7$(),e.Y8G("nzType",i.iconName),e.R7$(),e.SpI(" ",i.tabLabel," ")}}function ge(t,o){1&t&&(e.j41(0,"nz-tab"),e.DNE(1,ue,3,3,"a",8),e.k0s())}let fe=(()=>{class t{constructor(i){this.router=i,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url),this.tabs=[{routeName:"evidence-submit-test",iconName:"civic-evidence",tabLabel:"Submit"},{routeName:"evidence-revise-test",iconName:"civic-evidence",tabLabel:"Revise"},{routeName:"assertion-submit-test",iconName:"civic-assertion",tabLabel:"Submit"},{routeName:"assertion-revise-test",iconName:"civic-assertion",tabLabel:"Revise"},{routeName:"variantgroup-revise-test",iconName:"civic-variantgroup",tabLabel:"Revise"},{routeName:"gene-revise-test",iconName:"civic-feature",tabLabel:"Revise"},{routeName:"mp-revise-test",iconName:"civic-molecularprofile",tabLabel:"Revise"},{routeName:"variant-submit-test",iconName:"civic-variant",tabLabel:"Submit"},{routeName:"variant-revise-test",iconName:"civic-variant",tabLabel:"Revise"},{routeName:"vertical-form",iconName:"layout",tabLabel:"Vertical"},{routeName:"inline-form",iconName:"layout",tabLabel:"Inline"},{routeName:"horizontal-form",iconName:"layout",tabLabel:"Horizontal"},{routeName:"tags-test",iconName:"tag",tabLabel:"Tags"}]}getActivatedRouteIndex(i){return this.tabs?.findIndex(n=>i.includes(n.routeName))}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(p.Ix))};static#t=this.\u0275cmp=e.VBU({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"],["nz-icon","",3,"nzType"]],template:function(n,r){if(1&n&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-title",1),e.EFF(3," Form Dev Pages "),e.k0s(),e.j41(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.DNE(10,ge,2,0,"nz-tab",6),e.k0s()()()()(),e.j41(11,"nz-row")(12,"nz-col",2)(13,"div",7),e.nrm(14,"router-outlet"),e.k0s()()()()()),2&n){let m;e.R7$(6),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzSelectedIndex",null!==(m=r.selectedTabIndex)&&void 0!==m?m:null),e.R7$(),e.Y8G("ngForOf",r.tabs),e.R7$(2),e.Y8G("nzSpan",24)}},dependencies:[s.Sq,p.n3,p.Wk,P.WB,P.k9,P.zR,F.Uq,F.e,S.Dn,_.JZ,_.rE,_.v3,_.rM,me.n],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})}return t})();var he=a(7526);let ve=(()=>{class t{constructor(i){this.cdr=i}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variantgroup-revise-test-page"]],decls:1,vars:1,consts:[[3,"variantGroupId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-variantgroup-revise-form",0),2&n&&e.Y8G("variantGroupId",24)},dependencies:[he.T],encapsulation:2})}return t})();var ye=a(958);let _e=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-gene-form"]],decls:1,vars:1,consts:[[3,"featureId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-gene-revise-form",0),2&n&&e.Y8G("featureId",6)},dependencies:[ye.m],encapsulation:2,changeDetection:0})}return t})();var Te=a(4514);let Ce=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-mp-form"]],decls:1,vars:1,consts:[[3,"molecularProfileId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-mp-revise-form",0),2&n&&e.Y8G("molecularProfileId",3176)},dependencies:[Te.k],encapsulation:2,changeDetection:0})}return t})();var Pe=a(2276);let be=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-form"]],decls:1,vars:1,consts:[[3,"variantId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-gene-variant-revise-form",0),2&n&&e.Y8G("variantId",4)},dependencies:[Pe.v],encapsulation:2,changeDetection:0})}return t})();var Ie=a(574);const ze=[{path:"",component:fe,children:[{path:"",redirectTo:"evidence-submit-test",pathMatch:"full"},{path:"evidence-submit-test",component:C,data:{breadcrumb:"Evidence Submit Form"}},{path:"evidence-revise-test",component:l,data:{breadcrumb:"Evidence Revise Form"}},{path:"assertion-submit-test",component:y,data:{breadcrumb:"Assertion Submit Form"}},{path:"assertion-revise-test",component:f,data:{breadcrumb:"Assertion Revise Form"}},{path:"variantgroup-revise-test",component:ve,data:{breadcrumb:"Variant Group Revise Form"}},{path:"gene-revise-test",component:_e,data:{breadcrumb:"Gene Revise Form"}},{path:"mp-revise-test",component:Ce,data:{breadcrumb:"MP Revise Form"}},{path:"variant-submit-test",component:(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-submit-test"]],decls:2,vars:0,consts:[[2,"width","500px"]],template:function(n,r){1&n&&(e.j41(0,"div",0),e.nrm(1,"cvc-variant-submit-form"),e.k0s())},dependencies:[Ie.m],encapsulation:2,changeDetection:0})}return t})(),data:{breadcrumb:"Variant Submit Form"}},{path:"variant-revise-test",component:be,data:{breadcrumb:"Variant Revise Form"}},{path:"vertical-form",component:pe,data:{breadcrumb:"Vertical Layout Test"}},{path:"inline-form",component:de,data:{breadcrumb:"Inline Layout Test"}},{path:"horizontal-form",component:L,data:{breadcrumb:"Horizontal Layout Test"}},{path:"tags-test",component:$,data:{breadcrumb:"Horizontal"}}]}];let Me=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[p.iI.forChild(ze),p.iI]})}return t})();var Oe=a(4124),$e=a(1532),Fe=a(7391),Ge=a(4917),Ee=a(8476),Re=a(7685);let we=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Ee.S,Re.pc]})}return t})();var De=a(1724);let xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,De.y]})}return t})();var Se=a(7242);let Le=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Se.Z]})}return t})();var je=a(2090);let Ye=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,je.B]})}return t})();var G=a(8168);let Ae=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})(),ke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})(),Ne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})();var Ve=a(181);let We=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,d.YN,x.Ti,g.$G,Ve._]})}return t})();var Be=a(7238);let Ue=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Be.h]})}return t})();var Xe=a(432);let He=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Xe.Q]})}return t})();var Je=a(7064);let Ke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Je.q]})}return t})();var qe=a(6404);let Ze=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,qe.v]})}return t})();var Qe=a(7380);let et=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Qe.s]})}return t})(),tt=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Me,P.ZJ,F.f3,S.Y3,Fe.kT,_.hM,Ge.i,$e.W,Oe.C,Ye,Le,xe,we,He,Ae,ke,Ke,We,Ze,et,Ue,Ne]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/6390.c966e51ae3610b92.js b/server/public/6390.c966e51ae3610b92.js deleted file mode 100644 index 40e17faeb..000000000 --- a/server/public/6390.c966e51ae3610b92.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6390],{9045:(xn,L,r)=>{r.d(L,{J:()=>k});var l=r(6514),B=r(505),s=r(3953),w=r(177),J=r(1188),H=r(5699),Q=r(1236),j=r(5103),E=r(8011),_=r(2387),P=r(3075);const S=(p,h,m)=>({rejected:p,submitted:h,accepted:m});function T(p,h){}function f(p,h){if(1&p&&(s.qex(0),s.j41(1,"a",5),s.DNE(2,T,0,0,"ng-template",6),s.k0s(),s.bVm()),2&p){const m=s.XpG(),d=s.sdS(2);s.R7$(),s.Y8G("routerLink",m.evidence.link),s.R7$(),s.Y8G("ngTemplateOutlet",d)}}function v(p,h){}function K(p,h){if(1&p&&s.nrm(0,"cvc-evidence-popover",9),2&p){const m=s.XpG(3);s.Y8G("evidenceId",m.evidence.id)}}function n(p,h){if(1&p&&s.DNE(0,K,1,1,"cvc-evidence-popover",8),2&p){const m=s.XpG(2);s.Y8G("ngIf",m.enablePopover)}}function Z(p,h){if(1&p&&(s.j41(0,"nz-tag",7),s.DNE(1,v,0,0,"ng-template",6),s.k0s(),s.DNE(2,n,1,1,"ng-template",null,3,s.C5r)),2&p){const m=s.sdS(3),d=s.XpG(),N=s.sdS(6);s.Y8G("ngClass",s.sMw(5,S,"REJECTED"===d.evidence.status,"SUBMITTED"===d.evidence.status,"ACCEPTED"===d.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",d.enablePopover?"hover":null),s.R7$(),s.Y8G("ngTemplateOutlet",N)}}function u(p,h){}function q(p,h){if(1&p&&s.DNE(0,u,0,0,"ng-template",6),2&p){s.XpG();const m=s.sdS(2);s.Y8G("ngTemplateOutlet",m)}}function nn(p,h){if(1&p&&(s.j41(0,"cvc-icon-badges",10),s.nrm(1,"i",11),s.nI1(2,"entityColor"),s.nI1(3,"entityColor"),s.k0s(),s.EFF(4)),2&p){const m=s.XpG();s.Y8G("flagged",m.evidence.flagged)("entityColor",m.iconColor),s.R7$(),s.Y8G("nzTwotoneColor","REJECTED"===m.evidence.status?s.bMT(2,4,"Rejected"):s.bMT(3,6,"EvidenceItem")),s.R7$(3),s.SpI(" ",m.evidence.name,"\n")}}let k=(()=>{class p extends l.s{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,B.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(d){return new(d||p)};static#t=this.\u0275cmp=s.VBU({type:p,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[s.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(d,N){if(1&d&&s.DNE(0,f,3,2,"ng-container",4)(1,Z,4,9,"ng-template",null,0,s.C5r)(3,q,1,1,"ng-template",null,1,s.C5r)(5,nn,5,8,"ng-template",null,2,s.C5r),2&d){const D=s.sdS(4);s.Y8G("ngIf",N.linked)("ngIfElse",D)}},dependencies:[w.YU,w.bT,w.T3,J.Wk,H.s,Q.L_,j.Dn,E.S,_.N,P.R],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}"]})}return p})()},4741:(xn,L,r)=>{r.r(L),r.d(L,{FeaturesDetailModule:()=>Je});var l=r(177),B=r(326),s=r(1896),w=r(8103),J=r(5736),H=r(4124),Q=r(1532),j=r(4917),E=r(513),_=r(7529),P=r(5103),S=r(3062),T=r(7685),f=r(7391),v=r(1188),K=r(4873),n=r(3953);let Z=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,K.A]})}return t})();var u=r(9145),q=r(664);let nn=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.featureId,entityType:u.T31.Feature}}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-features-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-comment-list",0),2&a&&n.Y8G("commentable",o.commentable)},dependencies:[q.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var k=r(1413),p=r(4412),h=r(9172),m=r(6977),d=r(4608),N=r(1305),D=r(1774),tn=r(6389),en=r(5930),mn=r(3617),Fn=r(9945),Gn=r(8821),En=r(7428),Pn=r(6269),Sn=r(9765),Rn=r(5269),$n=r(4126),Dn=r(1845),Vn=r(3075);const jn=t=>({flagged:t}),Nn=t=>["/features",t,"revise"],On=t=>({featureType:t}),Yn=()=>[];function wn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" ",e.fullName," ")}}function kn(t,i){if(1&t&&(n.j41(0,"button",18,2),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),a=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,Nn,a.id))("queryParams",n.eq3(5,On,a.featureInstance.__typename))("nzType",e.isActive?"primary":"default")}}function Xn(t,i){if(1&t&&(n.j41(0,"span"),n.DNE(1,kn,3,7,"button",17),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function Ln(t,i){if(1&t&&(n.j41(0,"button",20,2),n.EFF(2," Flag "),n.k0s()),2&t){const e=n.sdS(1);n.Y8G("nzType",e.isActive?"primary":"default")}}function Bn(t,i){if(1&t&&(n.j41(0,"span"),n.DNE(1,Ln,3,1,"button",19),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function An(t,i){if(1&t&&n.nrm(0,"cvc-entity-subscription-button",22),2&t){const e=n.XpG(2).ngrxLet,a=n.XpG(3);n.Y8G("viewer",e)("subscribableId",a.subscribable.id)}}function Un(t,i){if(1&t&&(n.j41(0,"span"),n.DNE(1,An,1,2,"cvc-entity-subscription-button",21),n.k0s()),2&t){const e=n.XpG().ngrxLet,a=n.XpG(3);n.R7$(),n.Y8G("ngIf",e.signedIn&&a.subscribable)}}function Wn(t,i){1&t&&(n.j41(0,"nz-space",15),n.DNE(1,Xn,2,1,"span",16)(2,Bn,2,1,"span",16)(3,Un,2,1,"span",16),n.k0s())}function Jn(t,i){if(1&t&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,Wn,4,0,"nz-space",14),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",e.viewer$)}}function Hn(t,i){if(1&t&&n.nrm(0,"nz-alert",23),2&t){n.XpG();const e=n.sdS(18);n.Y8G("nzMessage",e)}}function Qn(t,i){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",24)),2&t){const e=n.XpG().ngIf;n.SpI(" This Feature has been deprecated for reason: ",n.bMT(1,2,e.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==e.deprecationActivity?null:e.deprecationActivity.parsedNote)||n.lJ4(4,Yn))}}function Kn(t,i){if(1&t&&(n.j41(0,"nz-col",25),n.nrm(1,"cvc-contributor-avatars",26),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function Zn(t,i){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",4),n.j41(2,"div",5),n.nI1(3,"ngrxPush"),n.j41(4,"nz-page-header",6)(5,"nz-page-header-title",7)(6,"span",8),n.EFF(7),n.nI1(8,"uppercase"),n.k0s(),n.nrm(9,"i",9),n.nI1(10,"entityColor"),n.EFF(11),n.k0s(),n.j41(12,"nz-page-header-subtitle"),n.DNE(13,wn,2,1,"ng-container",3),n.k0s(),n.DNE(14,Jn,2,1,"nz-page-header-extra",10),n.j41(15,"nz-page-header-content"),n.DNE(16,Hn,1,1,"nz-alert",11)(17,Qn,3,5,"ng-template",null,0,n.C5r),n.j41(19,"cvc-tab-navigation",12),n.nI1(20,"ngrxPush"),n.DNE(21,Kn,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(23,"div",13),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&t){const e=i.ngIf,a=n.XpG();n.R7$(),n.Y8G("displayName",e.name),n.R7$(),n.Y8G("flags",n.bMT(3,10,a.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(18,jn,e.flags.totalCount>0)),n.R7$(2),n.JRh(n.bMT(8,12,e.featureInstance.__typename)),n.R7$(2),n.Y8G("nzTwotoneColor",n.bMT(10,14,"Feature")),n.R7$(2),n.SpI(" ",e.name," "),n.R7$(2),n.Y8G("ngIf",e.fullName),n.R7$(),n.Y8G("ngrxLet",a.viewer$),n.R7$(2),n.Y8G("ngIf",e.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,16,a.tabs$))}}let qn=(()=>{class t{constructor(e,a,o){this.gql=e,this.viewerService=a,this.route=o,this.destroy$=new k.B,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=c=>"curator"==c.role,this.filterEditors=c=>"editor"==c.role||"admin"==c.role,this.tabs$=new p.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(c=>{let y=this.gql.watch({featureId:+c.featureId}).valueChanges;this.loading$=y.pipe((0,d.E)("loading"),(0,h.Z)(!0)),this.feature$=y.pipe((0,d.E)("data","feature")),this.flagsTotal$=this.feature$.pipe((0,d.E)("flags","totalCount")),this.feature$.pipe((0,m.Q)(this.destroy$)).subscribe({next:g=>{this.tabs$.next(this.defaultTabs.map($=>"Revisions"===$.tabLabel?{badgeCount:g?.revisions.totalCount,...$}:"Flags"===$.tabLabel?{badgeCount:g?.flags.totalCount,...$}:"Comments"===$.tabLabel?{badgeCount:g?.comments.totalCount,badgeColor:"#cccccc",...$}:$))}}),this.subscribable={id:+c.featureId,entityType:u.V9U.Feature}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(u.ULh),n.rXU(N.q),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["features-detail"]],decls:2,vars:3,consts:[["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-typography","",2,"color","#bbb"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["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"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,o){1&a&&(n.DNE(0,Zn,25,20,"ng-container",3),n.nI1(1,"async")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.YU,l.bT,v.n3,v.Wk,v.wQ,D.Nj,E.aO,tn.c,en.p,P.Dn,S.WB,S.k9,S.CO,S.zR,S.ov,T.U5,T.Dq,f.Di,_.Uq,mn.Y,Fn.N,Gn.H,En.v,Pn.f,Sn.n,Rn.o,$n.p,l.Jj,l.Pc,D.L9,Dn.f,Vn.R],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}"]})}return t})(),nt=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,B.p]})}return t})();var tt=r(9543);let et=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-features-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-event-feed",0),2&a&&n.Y8G("subscribable",o.subscribable)},dependencies:[tt.e],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var I=r(5703),at=r(1912),it=r(7268);let ot=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,_.f3,I.Ti,T.pc,at.i3,it.G]})}return t})();var rt=r(4097);let st=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:u.lD4.Feature,id:+this.route.snapshot.params.featureId}}ngOnInit(){}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-features-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-flag-list-and-filter",0),2&a&&n.Y8G("flaggable",o.flaggable)},dependencies:[rt.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ct=r(2617),O=r(5699),lt=r(2968),pt=r(9438),gt=r(869),mt=r(6371);let _t=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,_.f3,ct.rD,I.Ti,T.pc,O.T,f.kT,pt.Yb,lt.K,gt.S,mt.O]})}return t})();var ut=r(4055);let dt=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(a=>{this.featureId=+a.featureId,this.entityType=u.BlQ.Feature})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-features-revisions"]],decls:1,vars:2,consts:[[3,"id","entityType"]],template:function(a,o){1&a&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&n.Y8G("id",o.featureId)("entityType",o.entityType)},dependencies:[ut.B],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var M=r(2e3),an=r(8254),X=r(2142),on=r(7054),rn=r(1209),z=r(9417),ft=r(7051),b=r(8927),R=r(1011),Y=r(1997),ht=r(5493),_n=r(2986),A=r(2983),zt=r(6912);let un=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,z.YN,E.Zw,_.f3,I.Ti,P.Y3,b.PQ,R.j,Y.DH,f.kT,_n.IJ,A.V,j.i,ft.U,X.x,ht.G,zt.l]})}return t})();var V=r(9541),x=r(9247);let dn=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,I.Ti,V.hM,x.$G,_.f3,x.$G,f.kT,M.WF]})}return t})();var fn=r(9590),sn=r(2839),vt=r(996);let hn=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,z.YN,E.Zw,_.f3,I.Ti,P.Y3,b.PQ,R.j,Y.DH,A.V,f.kT,j.i,vt.o,X.x]})}return t})(),Ct=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,_.f3,M.WF,f.kT,T.pc,O.T,V.hM,an.V,X.x,on.L,rn.k,fn.R,sn.m,un,dn,hn]})}return t})();var yt=r(9354),zn=r(6719),U=r(7855),vn=r(9062),Cn=r(7679),Tt=r(8139),Mt=r(6408);const bt=()=>[8,16],It=()=>[8,8],xt=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Ft(t,i){if(1&t&&(n.j41(0,"p",18),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",e.factor.description," ")}}function Gt(t,i){1&t&&n.nrm(0,"cvc-empty-revisable",19)}function Et(t,i){1&t&&n.nrm(0,"cvc-source-tag",21),2&t&&n.Y8G("source",i.$implicit)}function Pt(t,i){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Et,1,1,"cvc-source-tag",20),n.k0s(),n.bVm()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngForOf",e.factor.sources)}}function St(t,i){1&t&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Rt(t,i){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=i.$implicit;n.R7$(),n.JRh(e)}}function $t(t,i){if(1&t&&(n.qex(0),n.DNE(1,Rt,2,1,"nz-tag",23),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.factor.featureAliases)}}function Dt(t,i){1&t&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Vt(t,i){if(1&t&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+e.factor.ncitId)("tooltip","View "+e.factor.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",e.factor.ncitId," ")}}function jt(t,i){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.factor.creationActivity.createdAt),") ")}}function Nt(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,jt,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&t){const e=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",a.factor.creationActivity.user)}}function Ot(t,i){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.factor.deprecationActivity.createdAt),") ")}}function Yt(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,Ot,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",a.factor.deprecationActivity.user)}}let yn=(()=>{class t{ngOnInit(){if(null==this.factor)throw new Error("Must pass a Factor into factor summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-factor-summary"]],inputs:{factor:"factor",featureId:"featureId"},standalone:!0,features:[n.aNF],decls:26,vars:18,consts:[["noDescription",""],["noSources",""],["noAliases",""],["createdTitle",""],["deprecatedTitle",""],[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"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases"],["nzTitle","Resources",4,"ngIf"],[4,"ngIf"],[3,"ncitDetails"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"nzTitle"],[3,"user"]],template:function(a,o){if(1&a&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,Ft,2,2,"p",10)(7,Gt,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",7)(10,"nz-descriptions",11)(11,"nz-descriptions-item",12),n.DNE(12,Pt,3,1,"ng-container",13)(13,St,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"nz-descriptions-item",14),n.DNE(16,$t,2,1,"ng-container",13),n.k0s(),n.DNE(17,Dt,2,0,"ng-template",null,2,n.C5r)(19,Vt,4,3,"nz-descriptions-item",15),n.k0s()()()(),n.j41(20,"nz-col",6)(21,"nz-descriptions",8),n.DNE(22,Nt,6,2,"ng-container",16)(23,Yt,6,2,"ng-container",16),n.k0s(),n.nrm(24,"br")(25,"cvc-ncit-details",17),n.k0s()()),2&a){const c=n.sdS(8),y=n.sdS(14),g=n.sdS(18);n.Y8G("nzGutter",n.lJ4(15,bt)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(16,It)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.description)("ngIfElse",c),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.sources.length>0)("ngIfElse",y),n.R7$(4),n.Y8G("ngIf",o.factor.featureAliases.length>0)("ngIfElse",g),n.R7$(3),n.Y8G("ngIf",o.factor.ncitId),n.R7$(2),n.Y8G("nzColumn",n.lJ4(17,xt)),n.R7$(),n.Y8G("ngIf",o.factor.creationActivity),n.R7$(),n.Y8G("ngIf",o.factor.deprecationActivity),n.R7$(2),n.Y8G("ncitDetails",o.factor.ncitDetails)}},dependencies:[l.MD,l.Sq,l.bT,_.f3,_.Uq,_.e,M.WF,M.xA,M.gr,f.kT,f.Di,T.pc,O.T,O.s,an.V,zn.Q,X.x,U.M,rn.k,vn.D,on.L,Cn.a,yt.e,j.i,Tt.N,sn.m,Mt.r],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%}"]})}return t})(),wt=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,_.f3,M.WF,f.kT,T.pc,O.T,V.hM,an.V,X.x,on.L,rn.k,fn.R,sn.m,un,dn,hn,Ct,yn]})}return t})();var Tn=r(1635),C=r(6354),F=r(5964),Mn=r(152),W=r(9894),G=r(9199),kt=r(505),Xt=r(3100),Lt=r(3245);function Bt(t,i){if(1&t&&n.nrm(0,"cvc-feature-tag",13),2&t){const e=n.XpG(4);n.Y8G("feature",e.feature)}}function At(t,i){if(1&t&&(n.j41(0,"span",10),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(),n.SpI("(",e.length," displayed)")}}function Ut(t,i){if(1&t&&(n.qex(0),n.j41(1,"span",10),n.EFF(2),n.k0s(),n.j41(3,"span",10),n.EFF(4," \xa0 "),n.DNE(5,Bt,1,1,"cvc-feature-tag",11),n.EFF(6," Variants "),n.k0s(),n.DNE(7,At,2,1,"span",12),n.bVm()),2&t){const e=i.ngIf,a=n.XpG(2).ngIf,o=n.XpG();n.R7$(2),n.SpI(" ",e," Total "),n.R7$(3),n.Y8G("ngIf",o.feature),n.R7$(2),n.Y8G("ngIf",e>a.length)}}function Wt(t,i){if(1&t&&(n.DNE(0,Ut,8,3,"ng-container",5),n.nI1(1,"ngrxPush")),2&t){const e=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,e.totalVariants$))}}function Jt(t,i){if(1&t){const e=n.RV6();n.j41(0,"i",23),n.bIt("click",function(){n.eBV(e);const o=n.XpG(4);return o.variantNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function Ht(t,i){if(1&t&&n.DNE(0,Jt,1,0,"i",22),2&t){const e=n.XpG(3);n.Y8G("ngIf",e.variantNameFilter)}}function Qt(t,i){if(1&t&&n.nrm(0,"nz-option",26),2&t){const e=i.$implicit;n.Y8G("nzLabel",e.name)("nzValue",e)}}function Kt(t,i){if(1&t&&(n.j41(0,"div",27),n.nrm(1,"i",28),n.EFF(2),n.k0s()),2&t){const e=i.$implicit,a=n.XpG(4);n.R7$(),n.Y8G("nzTwotoneColor",a.iconColor),n.R7$(),n.SpI(" ",e.nzLabel," ")}}function Zt(t,i){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"nz-select",24),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(3);return n.DH7(c.variantTypeFilter,o)||(c.variantTypeFilter=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onModelUpdated())}),n.DNE(2,Qt,1,2,"nz-option",25),n.k0s(),n.DNE(3,Kt,3,2,"ng-template",null,3,n.C5r),n.bVm()}if(2&t){const e=i.ngIf,a=n.sdS(4),o=n.XpG(3);n.R7$(),n.Y8G("nzDropdownMatchSelectWidth",!1),n.R50("ngModel",o.variantTypeFilter),n.Y8G("nzCustomTemplate",a),n.R7$(),n.Y8G("ngForOf",e)}}function qt(t,i){if(1&t){const e=n.RV6();n.j41(0,"form",14)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Name Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",15)(6,"input",16),n.bIt("ngModelChange",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(2);return n.DH7(c.variantNameFilter,o)||(c.variantNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,Ht,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Variant Type"),n.k0s(),n.j41(12,"nz-form-control"),n.DNE(13,Zt,5,4,"ng-container",5),n.nI1(14,"ngrxPush"),n.k0s()(),n.j41(15,"nz-form-item")(16,"nz-form-label"),n.EFF(17," No Variant Type "),n.k0s(),n.j41(18,"nz-form-control")(19,"label",17),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(2);return n.DH7(c.hasNoVariantType,o)||(c.hasNoVariantType=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.k0s()()(),n.j41(20,"nz-form-item")(21,"nz-form-label"),n.EFF(22,"Order By"),n.k0s(),n.j41(23,"nz-form-control")(24,"nz-select",18),n.bIt("ngModelChange",function(o){n.eBV(e);const c=n.XpG(2);return n.Njj(c.onVariantSortOrderChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(2);return n.DH7(c.sortBy,o)||(c.sortBy=o),n.Njj(o)}),n.nrm(25,"nz-option",19)(26,"nz-option",20)(27,"nz-option",21),n.k0s()()()()}if(2&t){const e=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",e)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.variantNameFilter),n.R7$(7),n.Y8G("ngIf",n.bMT(14,6,a.menuVariantTypes$)),n.R7$(6),n.R50("ngModel",a.hasNoVariantType),n.R7$(5),n.R50("ngModel",a.sortBy)}}function ne(t,i){if(1&t&&n.nrm(0,"cvc-variant-tag",30),2&t){const e=n.XpG().$implicit;n.Y8G("variant",e)}}function te(t,i){if(1&t&&(n.qex(0),n.DNE(1,ne,1,1,"cvc-variant-tag",29),n.bVm()),2&t){const e=i.$implicit;n.R7$(),n.Y8G("ngIf",e)}}function ee(t,i){if(1&t){const e=n.RV6();n.j41(0,"nz-row",32)(1,"button",33),n.bIt("click",function(){n.eBV(e);const o=n.XpG().ngIf,c=n.XpG(2);return n.Njj(c.fetchMore(o.endCursor))}),n.EFF(2," Load More "),n.k0s(),n.j41(3,"nz-select",34),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(3);return n.DH7(c.pageSize,o)||(c.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",35)(5,"nz-option",36)(6,"nz-option",37),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(3),n.R50("ngModel",e.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function ae(t,i){if(1&t&&(n.qex(0),n.DNE(1,ee,7,4,"nz-row",31),n.bVm()),2&t){const e=i.ngIf;n.R7$(),n.Y8G("ngIf",e.hasNextPage&&e.endCursor)}}function ie(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-card",6),n.DNE(2,Wt,2,3,"ng-template",null,0,n.C5r)(4,qt,28,8,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",7)(8,"cvc-tag-list",8),n.DNE(9,te,2,1,"ng-container",9),n.k0s()()(),n.DNE(10,ae,2,1,"ng-container",5),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&t){const e=i.ngIf,a=n.sdS(3),o=n.sdS(5),c=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,c.pageInfo$))}}let cn=class pn{constructor(i,e){this.gql=i,this.variantTypeGql=e,this.sortBy=u.GUs.Name,this.variantTypeFilter=[],this.hasNoVariantType=!1,this.debouncedQuery=new k.B,this.pageSize=50,this.iconColor=(0,kt.P)("VariantType")}ngOnInit(){if(void 0===this.feature)throw new Error("Must pass a feature into variant menu component.");this.featureId=this.feature.id,this.initialQueryVars={featureId:this.featureId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,C.T)(({data:e,loading:a})=>a&&!e),(0,F.p)(G.kP),(0,h.Z)(!0));const i=this.result$.pipe((0,C.T)(e=>e.data?.variants),(0,F.p)(G.kP));this.pageInfo$=i.pipe((0,C.T)(e=>e.pageInfo),(0,F.p)(G.kP)),this.menuVariants$=i.pipe((0,C.T)(e=>e.edges.map(a=>a.node),(0,F.p)(G.kP))),this.totalVariants$=i.pipe((0,C.T)(e=>e.totalCount)),this.debouncedQuery.pipe((0,Mn.B)(500),(0,W.s)(this)).subscribe(e=>this.refresh()),this.menuVariantTypes$=this.variantTypeGql.watch({featureId:this.featureId}).valueChanges.pipe((0,C.T)(e=>e.data?.variantTypes.edges?.map(a=>a.node)),(0,F.p)(G.kP))}onModelUpdated(){this.debouncedQuery.next()}onVariantSortOrderChanged(i){this.queryRef$.refetch({first:this.pageSize,sortBy:{column:i,direction:i==u.GUs.CoordinateEnd?u.UEL.Desc:u.UEL.Asc}})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into variant menu component.");this.queryRef$.refetch({featureId:this.featureId,variantName:this.variantNameFilter,hasNoVariantType:this.hasNoVariantType,variantTypeIds:this.variantTypeFilter?.map(i=>i.id),first:this.pageSize,sortBy:{column:this.sortBy,direction:u.UEL.Asc}})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(e){return new(e||pn)(n.rXU(u.krZ),n.rXU(u.kBo))};static#t=this.\u0275cmp=n.VBU({type:pn,selectors:[["cvc-variant-menu"]],inputs:{feature:"feature"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],["variantTypeTemplate",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"feature",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"feature"],["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,"ngModelChange","ngModel"],["nz-checkbox","","name","noVt",3,"ngModelChange","ngModel"],["nzSize","small","id","variant-sort-order","name","sortBy",2,"width","115px",3,"ngModelChange","ngModel"],["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,"ngModelChange","nzDropdownMatchSelectWidth","ngModel","nzCustomTemplate"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[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,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(e,a){1&e&&(n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.DNE(2,ie,12,6,"ng-container",5),n.nI1(3,"ngrxPush"),n.k0s()),2&e&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuVariants$)))},dependencies:[l.Sq,l.bT,z.qT,z.me,z.BC,z.cb,z.vS,z.cV,E.aO,tn.c,en.p,_.Uq,_.e,I.cK,P.Dn,b.CA,b.Ls,b.Mo,b.zS,R.Sy,R.tg,R.vN,Y.ld,Y.WI,f.Di,_n.$g,A.a,Xt.V,U.M,Lt._,D.L9],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}"]})};cn=(0,Tn.Cg)([(0,W.d)()],cn);var oe=r(5473);function re(t,i){if(1&t&&(n.j41(0,"span",9),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(),n.SpI("(",e.length," displayed)")}}function se(t,i){if(1&t&&(n.qex(0),n.j41(1,"span",9),n.EFF(2),n.k0s(),n.DNE(3,re,2,1,"span",10),n.bVm()),2&t){const e=i.ngIf,a=n.XpG(2).ngIf;n.R7$(2),n.SpI("",e," Total"),n.R7$(),n.Y8G("ngIf",e>a.length)}}function ce(t,i){if(1&t&&(n.DNE(0,se,4,2,"ng-container",4),n.nI1(1,"ngrxPush")),2&t){const e=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,e.totalMolecularProfiles$))}}function le(t,i){if(1&t){const e=n.RV6();n.j41(0,"i",20),n.bIt("click",function(){n.eBV(e);const o=n.XpG(4);return o.mpNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function pe(t,i){if(1&t&&n.DNE(0,le,1,0,"i",19),2&t){const e=n.XpG(3);n.Y8G("ngIf",e.mpNameFilter)}}function ge(t,i){if(1&t){const e=n.RV6();n.j41(0,"form",11)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",12)(6,"input",13),n.bIt("ngModelChange",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(2);return n.DH7(c.mpNameFilter,o)||(c.mpNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,pe,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Show"),n.k0s(),n.j41(12,"nz-form-control")(13,"nz-select",14),n.bIt("ngModelChange",function(o){n.eBV(e);const c=n.XpG(2);return n.Njj(c.onMolecularProfileStatusFilterChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(2);return n.DH7(c.statusFilter,o)||(c.statusFilter=o),n.Njj(o)}),n.nrm(14,"nz-option",15)(15,"nz-option",16)(16,"nz-option",17)(17,"nz-option",18),n.k0s()()()()}if(2&t){const e=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",e)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.mpNameFilter),n.R7$(7),n.R50("ngModel",a.statusFilter)}}function me(t,i){if(1&t&&n.nrm(0,"cvc-molecular-profile-tag",22),2&t){const e=n.XpG().$implicit;n.Y8G("molecularProfile",e)}}function _e(t,i){if(1&t&&(n.qex(0),n.DNE(1,me,1,1,"cvc-molecular-profile-tag",21),n.bVm()),2&t){const e=i.$implicit;n.R7$(),n.Y8G("ngIf",e)}}function ue(t,i){if(1&t){const e=n.RV6();n.j41(0,"nz-row",24)(1,"button",25),n.bIt("click",function(){n.eBV(e);const o=n.XpG().ngIf,c=n.XpG(2);return n.Njj(c.fetchMore(o.endCursor))}),n.EFF(2,"Load More "),n.k0s(),n.j41(3,"nz-select",26),n.mxI("ngModelChange",function(o){n.eBV(e);const c=n.XpG(3);return n.DH7(c.pageSize,o)||(c.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",27)(5,"nz-option",28)(6,"nz-option",29),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(3),n.R50("ngModel",e.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function de(t,i){if(1&t&&(n.qex(0),n.DNE(1,ue,7,4,"nz-row",23),n.bVm()),2&t){const e=i.ngIf;n.R7$(),n.Y8G("ngIf",e.hasNextPage&&e.endCursor)}}function fe(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-card",5),n.DNE(2,ce,2,3,"ng-template",null,0,n.C5r)(4,ge,18,4,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",6)(8,"cvc-tag-list",7),n.DNE(9,_e,2,1,"ng-container",8),n.k0s()()(),n.DNE(10,de,2,1,"ng-container",4),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&t){const e=i.ngIf,a=n.sdS(3),o=n.sdS(5),c=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,c.pageInfo$))}}let ln=class gn{constructor(i){this.gql=i,this.statusFilter=u.oGI.All,this.debouncedQuery=new k.B,this.pageSize=50}ngOnInit(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.initialQueryVars={featureId:this.featureId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,C.T)(({data:i,loading:e})=>e&&!i),(0,F.p)(G.kP),(0,h.Z)(!0)),this.connection$=this.result$.pipe((0,C.T)(i=>i.data?.molecularProfiles),(0,F.p)(G.kP)),this.pageInfo$=this.connection$.pipe((0,C.T)(i=>i.pageInfo),(0,F.p)(G.kP)),this.menuMolecularProfiles$=this.connection$.pipe((0,C.T)(i=>i.edges.map(e=>e.node),(0,F.p)(G.kP))),this.totalMolecularProfiles$=this.connection$.pipe((0,C.T)(i=>i.totalCount)),this.debouncedQuery.pipe((0,Mn.B)(500),(0,W.s)(this)).subscribe(i=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onMolecularProfileStatusFilterChanged(i){this.queryRef$.refetch({first:this.pageSize,evidenceStatusFilter:i})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.queryRef$.refetch({featureId:this.featureId,mpName:this.mpNameFilter,first:this.pageSize})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(e){return new(e||gn)(n.rXU(u.J9f))};static#t=this.\u0275cmp=n.VBU({type:gn,selectors:[["cvc-molecular-profile-menu"]],inputs:{featureId:"featureId"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["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,"ngModelChange","ngModel"],["nzSize","small","id","status-filter","name","statusFilter",2,"width","320px",3,"ngModelChange","ngModel"],["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,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(e,a){1&e&&(n.j41(0,"nz-spin",3),n.nI1(1,"ngrxPush"),n.DNE(2,fe,12,6,"ng-container",4),n.nI1(3,"ngrxPush"),n.k0s()),2&e&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuMolecularProfiles$)))},dependencies:[l.Sq,l.bT,z.qT,z.me,z.BC,z.cb,z.vS,z.cV,E.aO,tn.c,en.p,_.Uq,_.e,I.cK,P.Dn,b.CA,b.Ls,b.Mo,b.zS,R.Sy,R.tg,R.vN,Y.ld,Y.WI,A.a,f.Di,oe.z,U.M,D.L9],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}"]})};ln=(0,Tn.Cg)([(0,W.d)()],ln);let he=(()=>{class t{constructor(){}parse(e){const a={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/",wikipathways:"http://wikipathways.org/index.php/Pathway:",pid:null,netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},o=e.pathway||[],c=[];let y;return Object.keys(o).forEach(function(g){Array.isArray(o[g])||(o[g]=[o[g]]),o[g].forEach(function($,In){y=a[g]+o[g][In].id,null===a[g]&&(y=null),c.push({name:o[g][In].name,link:y,src:g})})}),e.pathway=c,e.pathwayList=c.map(g=>g.name),!Array.isArray(e.alias)&&e.alias&&(e.alias=[e.alias]),!Array.isArray(e.interpro)&&e.interpro&&(e.interpro=[e.interpro]),e.interproList=e.interpro.map(g=>g.desc),e}static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ze=()=>({xxl:2,xl:2,lg:2,md:1,sm:1,xs:1}),ve=()=>({xxl:4,xl:4,lg:2,md:2,sm:1,xs:1}),bn=()=>({x:"100%",y:"200px"});function Ce(t,i){if(1&t&&(n.qex(0),n.j41(1,"div",9)(2,"nz-descriptions",10)(3,"nz-descriptions-item",11),n.EFF(4),n.k0s(),n.j41(5,"nz-descriptions-item",12),n.EFF(6),n.k0s()(),n.j41(7,"nz-descriptions",10)(8,"nz-descriptions-item",13),n.EFF(9),n.k0s(),n.j41(10,"nz-descriptions-item",14),n.EFF(11),n.k0s(),n.j41(12,"nz-descriptions-item",15),n.EFF(13),n.k0s(),n.j41(14,"nz-descriptions-item",16),n.EFF(15),n.k0s()(),n.j41(16,"nz-descriptions",17)(17,"nz-descriptions-item",18),n.EFF(18),n.k0s(),n.j41(19,"nz-descriptions-item",19)(20,"p",20),n.EFF(21),n.k0s()(),n.j41(22,"nz-descriptions-item",21)(23,"p",20),n.EFF(24),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzColumn",n.lJ4(15,ze)),n.R7$(2),n.Lme(" ",e.info.symbol," (ID: ",e.info._id,") "),n.R7$(2),n.SpI(" ",e.info.uniprot["Swiss-Prot"]," "),n.R7$(),n.Y8G("nzColumn",n.lJ4(16,ve)),n.R7$(2),n.SpI(" ",e.info.genomic_pos_hg19.chr," "),n.R7$(2),n.SpI(" ",e.info.genomic_pos_hg19.strand," "),n.R7$(2),n.SpI(" ",e.info.genomic_pos_hg19.start," "),n.R7$(2),n.SpI(" ",e.info.genomic_pos_hg19.end," "),n.R7$(),n.Y8G("nzColumn",1),n.R7$(2),n.SpI(" ",e.info.alias.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",e.info.interproList.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",e.info.pathwayList.join(", ")," ")}}function ye(t,i){if(1&t&&(n.qex(0),n.j41(1,"div",9)(2,"p",20),n.EFF(3),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzEllipsisRows",12),n.R7$(),n.SpI(" ",e.info.summary," ")}}function Te(t,i){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.EFF(4),n.k0s(),n.j41(5,"td"),n.EFF(6),n.k0s()()),2&t){const e=i.$implicit;n.R7$(2),n.SpI(" ",e.short_desc," "),n.R7$(2),n.SpI(" ",e.desc," "),n.R7$(2),n.SpI(" ",e.id," ")}}function Me(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-table",22,0)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Name"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Description"),n.k0s(),n.j41(9,"th"),n.EFF(10,"ID"),n.k0s()()(),n.j41(11,"tbody"),n.DNE(12,Te,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzData",e.info.interpro)("nzScroll",n.lJ4(4,bn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function be(t,i){if(1&t&&(n.j41(0,"a",28),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.FS9("href",null==e?null:e.link,n.B4B),n.R7$(),n.SpI(" ",e.src," ")}}function Ie(t,i){if(1&t&&n.EFF(0),2&t){const e=n.XpG().$implicit;n.SpI(" ",e.src," ")}}function xe(t,i){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td",26),n.DNE(4,be,2,2,"a",27)(5,Ie,1,1,"ng-template",null,2,n.C5r),n.k0s()()),2&t){const e=i.$implicit,a=n.sdS(6);n.R7$(2),n.SpI(" ",e.name," "),n.R7$(2),n.Y8G("ngIf",null==e?null:e.link)("ngIfElse",a)}}function Fe(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-table",22,1)(3,"colgroup"),n.nrm(4,"col",24)(5,"col",25),n.k0s(),n.j41(6,"thead")(7,"tr")(8,"th"),n.EFF(9,"Name"),n.k0s(),n.j41(10,"th",26),n.EFF(11,"Source"),n.k0s()()(),n.j41(12,"tbody"),n.DNE(13,xe,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzData",e.info.pathway)("nzScroll",n.lJ4(4,bn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Ge(t,i){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"nz-card",4)(2,"nz-card-tab")(3,"nz-tabset",5),n.bIt("nzSelectChange",function(o){n.eBV(e);const c=n.XpG();return n.Njj(c.tabChange(o))}),n.nrm(4,"nz-tab",6)(5,"nz-tab",6)(6,"nz-tab",6)(7,"nz-tab",6),n.k0s()(),n.qex(8,7),n.DNE(9,Ce,25,17,"ng-container",8)(10,ye,4,2,"ng-container",8)(11,Me,13,5,"ng-container",8)(12,Fe,14,5,"ng-container",8),n.bVm(),n.k0s(),n.bVm()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(),n.Y8G("nzTitle","Overview"),n.R7$(),n.Y8G("nzTitle","Summary"),n.R7$(),n.Y8G("nzTitle","Protein Domains ("+e.info.interproList.length+")"),n.R7$(),n.Y8G("nzTitle","Pathways ("+e.info.pathway.length+")"),n.R7$(),n.Y8G("ngSwitch",e.tabIndex),n.R7$(),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3)}}let Ee=(()=>{class t{constructor(e){this.infoService=e,this.tabIndex=0}ngOnInit(){this.tabChange({index:0,tab:null})}ngOnChanges(){this.geneInfo&&(this.info=this.infoService.parse(JSON.parse(String(this.geneInfo))))}tabChange(e){this.tabIndex=e.index}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(he))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.OA$],decls:1,vars:1,consts:[["proteinDomainsTable",""],["pathwaysTable",""],["noPathwayLink",""],[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzSelectChange","nzAnimated"],[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"],["nz-virtual-scroll",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(a,o){1&a&&n.DNE(0,Ge,13,10,"ng-container",3),2&a&&n.Y8G("ngIf",o.info)},dependencies:[l.bT,l.ux,l.e1,I.cK,I.RO,V.JZ,V.rE,x.CP,x.SO,x._4,x.IL,x.aj,x.kt,x.CC,f.Di,M.xA,M.gr],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}"]})}return t})();const Pe=()=>[8,16],Se=()=>[8,8];function Re(t,i){if(1&t&&(n.j41(0,"p",16),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",e.gene.description," ")}}function $e(t,i){1&t&&n.nrm(0,"cvc-empty-revisable",17)}function De(t,i){1&t&&n.nrm(0,"cvc-source-tag",19),2&t&&n.Y8G("source",i.$implicit)}function Ve(t,i){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,De,1,1,"cvc-source-tag",18),n.k0s(),n.bVm()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngForOf",e.gene.sources)}}function je(t,i){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function Ne(t,i){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=i.$implicit;n.R7$(),n.JRh(e)}}function Oe(t,i){if(1&t&&(n.j41(0,"nz-descriptions-item",21),n.DNE(1,Ne,2,1,"nz-tag",22),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.gene.featureAliases)}}function Ye(t,i){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}let we=(()=>{class t{ngOnInit(){if(null==this.gene)throw new Error("Must pass a Gene into gene summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-genes-summary"]],inputs:{gene:"gene",featureId:"featureId"},decls:26,vars:17,consts:[["noDescription",""],["noSources",""],["noAliases",""],[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"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases",4,"ngIf","ngIfElse"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"geneInfo"],["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(a,o){if(1&a&&(n.j41(0,"nz-row",3)(1,"nz-col",4)(2,"nz-row",3)(3,"nz-col",5)(4,"nz-descriptions",6)(5,"nz-descriptions-item",7),n.DNE(6,Re,2,2,"p",8)(7,$e,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",5)(10,"nz-descriptions",9)(11,"nz-descriptions-item",10),n.DNE(12,Ve,3,1,"ng-container",11)(13,je,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(15,Oe,2,1,"nz-descriptions-item",12)(16,Ye,2,0,"ng-template",null,2,n.C5r),n.j41(18,"nz-descriptions-item",13)(19,"cvc-tag-list")(20,"cvc-link-tag",14),n.EFF(21," DGIdb "),n.k0s(),n.j41(22,"cvc-link-tag",14),n.EFF(23," ProteinPaint "),n.k0s()()()()()()(),n.j41(24,"nz-col",4),n.nrm(25,"cvc-my-gene-info",15),n.k0s()()),2&a){const c=n.sdS(8),y=n.sdS(14),g=n.sdS(17);n.Y8G("nzGutter",n.lJ4(15,Pe)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(16,Se)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.gene.description)("ngIfElse",c),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.gene.sources.length>0)("ngIfElse",y),n.R7$(3),n.Y8G("ngIf",o.gene.featureAliases.length>0)("ngIfElse",g),n.R7$(5),n.Y8G("href","https://dgidb.org/results?searchType=gene&searchTerms="+o.gene.name)("tooltip","View "+o.gene.name+" on DGIdb"),n.R7$(2),n.Y8G("href","https://pecan.stjude.cloud/variants/protein-paint/?gene="+o.gene.name)("tooltip","View "+o.gene.name+" on ProteinPaint"),n.R7$(3),n.Y8G("geneInfo",o.gene.myGeneInfoDetails)}},dependencies:[l.Sq,l.bT,_.Uq,_.e,M.xA,M.gr,f.Di,O.s,zn.Q,U.M,Cn.a,vn.D,Ee],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%}"]})}return t})();const ke=()=>[8,16];function Xe(t,i){if(1&t&&(n.j41(0,"span"),n.nrm(1,"cvc-genes-summary",8),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",e.id)("gene",e.featureInstance)}}function Le(t,i){if(1&t&&(n.j41(0,"span"),n.nrm(1,"cvc-factor-summary",9),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",e.id)("factor",e.featureInstance)}}function Be(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-row",1),n.DNE(2,Xe,2,2,"span")(3,Le,2,2,"span"),n.j41(4,"nz-col",2)(5,"nz-tabset",3)(6,"nz-tab",4),n.nrm(7,"cvc-molecular-profile-menu",5),n.k0s(),n.j41(8,"nz-tab",6),n.nrm(9,"cvc-variant-menu",7),n.k0s()()()(),n.bVm()),2&t){let e;const a=i.ngIf;n.R7$(),n.Y8G("nzGutter",n.lJ4(5,ke)),n.R7$(),n.vxM("Gene"===(e=a.featureInstance.__typename)?2:"Factor"===e?3:-1),n.R7$(2),n.Y8G("nzSpan",24),n.R7$(3),n.Y8G("featureId",a.id),n.R7$(2),n.Y8G("feature",a)}}const Ae=[{path:"",component:qn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class t{constructor(e,a,o){this.gql=e,this.viewerService=a,this.route=o,this.routeSub=this.route.params.subscribe(c=>{this.viewer$=this.viewerService.viewer$;let g=this.gql.watch({featureId:+c.featureId}).valueChanges;this.feature$=g.pipe((0,d.E)("data","feature")),this.loading$=g.pipe((0,d.E)("loading"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||t)(n.rXU(u.gUZ),n.rXU(N.q),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-features-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzType","card"],["nzTitle","Molecular Profiles"],[3,"featureId"],["nzTitle","Variants"],[3,"feature"],[3,"featureId","gene"],[3,"featureId","factor"]],template:function(a,o){1&a&&(n.DNE(0,Be,10,6,"ng-container",0),n.nI1(1,"ngrxPush")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.bT,_.Uq,_.e,V.JZ,V.rE,cn,ln,we,yn,D.L9],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%}"]})}return t})(),data:{breadcrumb:"Summary"}},{path:"comments",component:nn,data:{breadcrumb:"Comments"}},{path:"revisions",component:dt,data:{breadcrumb:"Revisions"}},{path:"flags",component:st,data:{breadcrumb:"Summary"}},{path:"events",component:et,data:{breadcrumb:"Events"}}]}];let Ue=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[v.iI.forChild(Ae),wt,Z,_t,ot,nt,v.iI]})}return t})();var We=r(7169);let Je=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.MD,Ue,E.Zw,P.Y3,S.ZJ,T.pc,f.kT,_.f3,mn.$,j.i,Q.W,s.Y,w.m,H.C,J.V,B.p,We.W]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/6508.7666392f9795c9b9.js b/server/public/6508.3dbedc63f5fddab6.js similarity index 51% rename from server/public/6508.7666392f9795c9b9.js rename to server/public/6508.3dbedc63f5fddab6.js index 2d08ba66d..6653c2a03 100644 --- a/server/public/6508.7666392f9795c9b9.js +++ b/server/public/6508.3dbedc63f5fddab6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6508],{9238:(H,O,o)=>{o.d(O,{e:()=>I});var e=o(177),i=o(1236),v=o(2839),h=o(1862),D=o(6936),m=o(5703),c=o(7529),C=o(4415),x=o(1209),P=o(4917),z=o(6912),y=o(7086),E=o(3953);let _=(()=>{class u{static#e=this.\u0275fac=function(d){return new(d||u)};static#t=this.\u0275mod=E.$C({type:u});static#n=this.\u0275inj=E.G2t({imports:[e.MD,m.Ti,c.f3,z.l,v.m,h.e,D.G,D.G,y.C,C.O,x.k,P.i]})}return u})();var G=o(5699),p=o(5103),T=o(1188);let I=(()=>{class u{static#e=this.\u0275fac=function(d){return new(d||u)};static#t=this.\u0275mod=E.$C({type:u});static#n=this.\u0275inj=E.G2t({imports:[e.MD,P.i,T.iI,i.MC,p.Y3,_,G.T]})}return u})()},5023:(H,O,o)=>{o.d(O,{J:()=>F});var e=o(177),i=o(5103),v=o(2839),h=o(7391),D=o(4917),m=o(9238),c=o(9269),C=o(1862),x=o(6936),P=o(8920),z=o(5154),y=o(7529),E=o(4415),_=o(513),G=o(1209),p=o(8134),T=o(5699),I=o(1188),u=o(996),j=o(6912),S=o(7086),d=o(3953);let F=(()=>{class ${static#e=this.\u0275fac=function(L){return new(L||$)};static#t=this.\u0275mod=d.$C({type:$});static#n=this.\u0275inj=d.G2t({imports:[e.MD,_.Zw,i.Y3,T.T,z.Qt,h.kT,y.f3,I.iI,E.O,v.m,D.i,m.e,c.P,j.l,C.e,x.G,S.C,P.U,G.k,p.l,u.o]})}return $})()},2597:(H,O,o)=>{o.d(O,{O:()=>Tt});var e=o(3953),i=o(177),v=o(5699),h=o(5154),D=o(7391),m=o(7529),c=o(1188),C=o(6354),x=o(5964),P=o(9199),z=o(9145),y=o(5703),E=o(5103),_=o(7685),G=o(2e3),p=o(3245),T=o(6408),I=o(1417),u=o(9045),j=o(959),S=o(8238),d=o(311),F=o(4126),$=o(1774),b=o(3075),Y=o(8139);function L(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"i",14),e.nI1(2,"entityColor"),e.EFF(3),e.k0s()),2&t){const n=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"Revision")),e.R7$(2),e.SpI(" RID",n.id," ")}}function K(t,a){if(1&t&&e.nrm(0,"cvc-status-tag",15),2&t){const n=e.XpG(2).ngIf;e.Y8G("status",n.status)}}function B(t,a){1&t&&(e.j41(0,"nz-space",11),e.DNE(1,L,4,4,"span",12)(2,K,1,1,"cvc-status-tag",13),e.k0s())}function N(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",16),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.subject)}}function X(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",17),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.subject)}}function V(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",18),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.subject)}}function J(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",19),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.subject)}}function s(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",20),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variantgroup",n.subject)}}function M(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2).ngIf;e.SpI(" ",n.subject.name," ")}}function l(t,a){if(1&t&&e.DNE(0,N,1,2,"cvc-feature-tag",16)(1,X,1,2,"cvc-assertion-tag",17)(2,V,1,2,"cvc-evidence-tag",18)(3,J,1,2,"cvc-feature-variant-tag",19)(4,s,1,2,"cvc-variant-group-tag",20)(5,M,1,1),2&t){let n;const r=e.XpG().ngIf;e.vxM("Feature"===(n=r.subject.__typename)?0:"Assertion"===n?1:"EvidenceItem"===n?2:"Variant"===n?3:"VariantGroup"===n?4:5)}}function g(t,a){if(1&t&&e.nrm(0,"cvc-user-tag",21),2&t){const n=e.XpG().ngIf;e.Y8G("enablePopover",!1)("user",n.creationActivity.user)}}function f(t,a){if(1&t&&(e.j41(0,"nz-descriptions-item",22),e.nrm(1,"cvc-comment-body",23),e.k0s()),2&t){const n=e.XpG().ngIf;e.R7$(),e.Y8G("commentBodySegments",n.creationActivity.parsedNote)}}function A(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,B,3,0,"ng-template",null,0,e.C5r)(4,l,6,1,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.DNE(8,g,1,2,"cvc-user-tag",7),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.nI1(13,"timeAgo"),e.k0s(),e.DNE(14,f,2,1,"nz-descriptions-item",10),e.k0s()(),e.bVm()),2&t){const n=a.ngIf,r=e.sdS(3),R=e.sdS(5);e.R7$(),e.Y8G("nzTitle",r)("nzExtra",R),e.R7$(5),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("ngIf",null==n.creationActivity?null:n.creationActivity.user),e.R7$(2),e.SpI(" ",n.linkoutData.name," "),e.R7$(2),e.SpI(" ",e.bMT(13,7,n.createdAt)," "),e.R7$(2),e.Y8G("ngIf",null==n.creationActivity?null:n.creationActivity.parsedNote)}}let W=(()=>{class t{constructor(n){this.gql=n}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,C.T)(({data:n})=>n?.revision),(0,x.p)(P.kP))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.XWi))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[3,"enablePopover","user"],["nzTitle","Creation Comment"],[3,"commentBodySegments"]],template:function(r,R){1&r&&(e.j41(0,"div",2),e.DNE(1,A,15,9,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,R.revision$)))},dependencies:[i.bT,y.cK,E.Dn,_.U5,_.Dq,G.xA,G.gr,p._,T.r,I.a,u.J,j.j,S.S,d.g,F.p,$.L9,b.R,Y.N],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}"]})}return t})();var Q=o(1236);const k=t=>({revisionSetId:t});function q(t,a){}function ee(t,a){}function te(t,a){if(1&t&&e.nrm(0,"cvc-revision-popover",6),2&t){const n=e.XpG(2);e.Y8G("revisionId",n.revision.id)}}function ne(t,a){if(1&t&&(e.j41(0,"nz-tag",5),e.DNE(1,ee,0,0,"ng-template",4),e.k0s(),e.DNE(2,te,1,1,"ng-template",null,2,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),R=e.sdS(5);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",R)}}function oe(t,a){if(1&t&&(e.nrm(0,"i",7),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.revision.name,"\n")}}let Z=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:5,consts:[["tag",""],["tagContent",""],["revisionPopover",""],[3,"routerLink","queryParams"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(r,R){if(1&r&&(e.j41(0,"a",3),e.DNE(1,q,0,0,"ng-template",4),e.k0s(),e.DNE(2,ne,4,4,"ng-template",null,0,e.C5r)(4,oe,2,1,"ng-template",null,1,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",R.revision.link)("queryParams",e.eq3(3,k,R.revision.revisionSetId)),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,W,v.s,E.Dn,Q.L_],encapsulation:2})}return t})();var ie=o(4608),w=o(9062);function ae(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",9),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.commentable)}}function re(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",10),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.commentable)}}function ce(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",11),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.commentable)}}function se(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",12),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.commentable)}}function le(t,a){if(1&t&&e.nrm(0,"cvc-revision-tag",13),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("revision",n.commentable)}}function me(t,a){if(1&t&&e.nrm(0,"cvc-source-tag",14),2&t){const n=e.XpG(3).ngIf;e.Y8G("enablePopover",!1)("source",n.commentable)}}function _e(t,a){1&t&&e.DNE(0,me,1,2,"cvc-source-tag",15),2&t&&e.Y8G("ngSwitchCase","Source")}function pe(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2).ngIf;e.SpI(" ",n.commentable.name," ")}}function ge(t,a){if(1&t&&(e.j41(0,"span",7),e.nrm(1,"cvc-user-tag",8),e.EFF(2,"commented on "),e.DNE(3,ae,1,2,"cvc-feature-tag",9)(4,re,1,2,"cvc-assertion-tag",10)(5,ce,1,2,"cvc-evidence-tag",11)(6,se,1,2,"cvc-feature-variant-tag",12)(7,le,1,2,"cvc-revision-tag",13)(8,_e,1,1,"cvc-source-tag",14)(9,pe,1,1),e.EFF(10),e.nI1(11,"timeAgo"),e.k0s()),2&t){let n;const r=e.XpG().ngIf;e.R7$(),e.Y8G("enablePopover",!1)("user",r.commenter),e.R7$(2),e.vxM("Feature"===(n=r.commentable.__typename)?3:"Assertion"===n?4:"EvidenceItem"===n?5:"Variant"===n?6:"Revision"===n?7:"Source"===n?8:9),e.R7$(7),e.SpI(" ",e.bMT(11,4,r.createdAt)," ")}}function ve(t,a){if(1&t&&(e.j41(0,"p",16)(1,"b"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG().ngIf;e.R7$(2),e.JRh(n.title)}}function de(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,ge,12,6,"ng-template",null,0,e.C5r),e.j41(4,"nz-row")(5,"nz-col",4)(6,"div",5),e.DNE(7,ve,3,1,"p",6),e.j41(8,"p"),e.EFF(9),e.k0s()()()()(),e.bVm()),2&t){const n=a.ngIf,r=e.sdS(3);e.R7$(),e.Y8G("nzTitle",r),e.R7$(6),e.Y8G("ngIf",n.title),e.R7$(2),e.SpI(" ",n.comment," ")}}let ue=(()=>{class t{constructor(n){this.gql=n}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,ie.E)("data","comment"))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.d2V))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","revision"],["mode","concise",3,"enablePopover","source"],["mode","concise",3,"enablePopover","source",4,"ngSwitchCase"],["nz-typography",""]],template:function(r,R){1&r&&(e.j41(0,"div",1),e.DNE(1,de,10,3,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,R.comment$)))},dependencies:[i.bT,i.e1,y.cK,m.Uq,m.e,p._,T.r,I.a,u.J,j.j,Z,w.D,$.L9,Y.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return t})();function fe(t,a){}function Ce(t,a){}function ze(t,a){if(1&t&&e.nrm(0,"cvc-comment-popover",7),2&t){const n=e.XpG(2);e.Y8G("commentId",n.comment.id)}}function Te(t,a){if(1&t&&(e.j41(0,"nz-tag",6),e.DNE(1,Ce,0,0,"ng-template",5),e.k0s(),e.DNE(2,ze,1,1,"ng-template",null,3,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),R=e.sdS(7);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",R)}}function he(t,a){}function Pe(t,a){if(1&t&&(e.j41(0,"nz-tag"),e.DNE(1,he,0,0,"ng-template",5),e.k0s()),2&t){e.XpG();const n=e.sdS(7);e.R7$(),e.Y8G("ngTemplateOutlet",n)}}function Ee(t,a){if(1&t&&(e.nrm(0,"i",8),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.comment.name,"\n")}}let Ie=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[["tag",""],["noPopover",""],["tagContent",""],["commentPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(r,R){if(1&r&&(e.j41(0,"a",4),e.DNE(1,fe,0,0,"ng-template",5),e.k0s(),e.DNE(2,Te,4,4,"ng-template",null,0,e.C5r)(4,Pe,2,1,"ng-template",null,1,e.C5r)(6,Ee,2,1,"ng-template",null,2,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",R.comment.link),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,Q.L_,E.Dn,ue,v.s],encapsulation:2})}return t})();function De(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"i",11),e.nI1(2,"entityColor"),e.EFF(3),e.k0s()),2&t){const n=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"Flag")),e.R7$(2),e.SpI(" FID",n.id," ")}}function Me(t,a){if(1&t&&e.nrm(0,"cvc-status-tag",12),2&t){const n=e.XpG(2).ngIf;e.Y8G("status",n.state)}}function Re(t,a){1&t&&(e.j41(0,"nz-space",8),e.DNE(1,De,4,4,"span",9)(2,Me,1,1,"cvc-status-tag",10),e.k0s())}function Oe(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",13),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.flaggable)}}function Ge(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",14),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.flaggable)}}function xe(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",15),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.flaggable)}}function ye(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",16),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.flaggable)}}function Fe(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",17),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variantgroup",n.flaggable)}}function je(t,a){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3).ngIf;e.R7$(),e.JRh(n.flaggable.name)}}function Se(t,a){1&t&&e.DNE(0,je,2,1,"span",18)}function Ae(t,a){if(1&t&&e.DNE(0,Oe,1,2,"cvc-feature-tag",13)(1,Ge,1,2,"cvc-assertion-tag",14)(2,xe,1,2,"cvc-evidence-tag",15)(3,ye,1,2,"cvc-feature-variant-tag",16)(4,Fe,1,2,"cvc-variant-group-tag",17)(5,Se,1,0,"span"),2&t){let n;const r=e.XpG().ngIf;e.vxM("Feature"===(n=r.flaggable.__typename)?0:"Assertion"===n?1:"EvidenceItem"===n?2:"Variant"===n?3:"VariantGroup"===n?4:5)}}function $e(t,a){if(1&t&&(e.j41(0,"nz-descriptions",19)(1,"nz-descriptions-item",20),e.nrm(2,"cvc-user-tag",21),e.k0s(),e.j41(3,"nz-descriptions-item",22),e.EFF(4),e.nI1(5,"timeAgo"),e.k0s()()),2&t){const n=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("enablePopover",!1)("user",n.flaggingUser),e.R7$(2),e.SpI(" ",e.bMT(5,4,n.createdAt)," ")}}function be(t,a){if(1&t&&(e.j41(0,"nz-descriptions",23)(1,"nz-descriptions-item",24),e.nrm(2,"cvc-comment-body",25),e.k0s()()),2&t){const n=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("commentBodySegments",n.openActivity.parsedNote)}}function Ye(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,Re,3,0,"ng-template",null,0,e.C5r)(4,Ae,6,1,"ng-template",null,1,e.C5r),e.j41(6,"nz-space",5),e.DNE(7,$e,6,6,"nz-descriptions",6)(8,be,3,2,"nz-descriptions",7),e.k0s()(),e.bVm()),2&t){const n=e.sdS(3),r=e.sdS(5);e.R7$(),e.Y8G("nzTitle",n)("nzExtra",r)}}let He=(()=>{class t{constructor(n){this.gql=n}ngOnInit(){if(null==this.flagId)throw new Error("cvc-flag-popover requires valid flagId input.");this.flag$=this.gql.watch({flagId:this.flagId}).valueChanges.pipe((0,C.T)(({data:n})=>n?.flag),(0,x.p)(P.kP))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.wJE))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-flag-popover"]],inputs:{flagId:"flagId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzDirection","vertical",2,"width","100%"],["nzBordered","","nzSize","small",3,"nzColumn",4,"nzSpaceItem"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],[1,"flag-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],[3,"status"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[4,"ngSwitchDefault"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Flagging User"],[3,"enablePopover","user"],["nzTitle","Flagging Date"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Comment"],[3,"commentBodySegments"]],template:function(r,R){1&r&&(e.j41(0,"div",2),e.DNE(1,Ye,9,2,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,R.flag$)))},dependencies:[i.bT,i.fG,y.cK,E.Dn,_.U5,_.Dq,G.xA,G.gr,p._,T.r,I.a,u.J,j.j,S.S,d.g,F.p,$.L9,b.R,Y.N],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}.flag-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return t})();function Le(t,a){}function Ue(t,a){}function Be(t,a){if(1&t&&e.nrm(0,"cvc-flag-popover",6),2&t){const n=e.XpG(2);e.Y8G("flagId",n.flag.id)}}function Ne(t,a){if(1&t&&(e.j41(0,"nz-tag",5),e.DNE(1,Ue,0,0,"ng-template",4),e.k0s(),e.DNE(2,Be,1,1,"ng-template",null,2,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),R=e.sdS(5);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",R)}}function Xe(t,a){if(1&t&&(e.nrm(0,"i",7),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.flag.name,"\n")}}let We=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:2,consts:[["tag",""],["tagContent",""],["flagPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"flagId"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(r,R){if(1&r&&(e.j41(0,"a",3),e.DNE(1,Le,0,0,"ng-template",4),e.k0s(),e.DNE(2,Ne,4,4,"ng-template",null,0,e.C5r)(4,Xe,2,1,"ng-template",null,1,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",R.flag.link),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,v.s,E.Dn,Q.L_,He],encapsulation:2})}return t})();var Ke=o(6440),Ve=o(5473),Je=o(7793);let Qe=(()=>{class t{transform(n){switch(n){case z.H1z.Commented:case z.H1z.RevisionSuggested:case z.H1z.RevisionAccepted:case z.H1z.RevisionRejected:case z.H1z.RevisionSuperseded:return"to";case z.H1z.Flagged:case z.H1z.FlagResolved:return"on";default:return""}}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275pipe=e.EJ8({name:"prepositionForSubject",type:t,pure:!0})}return t})();function Ze(t,a){if(1&t&&e.nrm(0,"cvc-user-tag",9),2&t){const n=e.XpG(2);e.Y8G("user",n.event.originatingUser)}}function we(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function ke(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-revision-tag",12),e.DNE(2,we,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("revision",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function qe(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function et(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-comment-tag",14),e.DNE(2,qe,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("comment",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function tt(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function nt(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-flag-tag",15),e.DNE(2,tt,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("flag",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function ot(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function it(t,a){if(1&t&&(e.j41(0,"span")(1,"nz-tag",16),e.EFF(2),e.k0s(),e.DNE(3,ot,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("routerLink",n.link),e.R7$(),e.SpI(" ",n.name," "),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function at(t,a){if(1&t&&(e.qex(0)(1,10),e.DNE(2,ke,3,3,"span",11)(3,et,3,3,"span",11)(4,nt,3,3,"span",11)(5,it,4,3,"span",11),e.bVm()()),2&t){const n=a.ngIf;e.R7$(),e.Y8G("ngSwitch",n.__typename),e.R7$(),e.Y8G("ngSwitchCase","Revision"),e.R7$(),e.Y8G("ngSwitchCase","Comment"),e.R7$(),e.Y8G("ngSwitchCase","Flag"),e.R7$(),e.Y8G("ngSwitchCase","SourceSuggestion")}}function rt(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",17),2&t){const n=e.XpG().ngIf;e.Y8G("feature",n)}}function ct(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",18),2&t){const n=e.XpG().ngIf;e.Y8G("assertion",n)}}function st(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",19),2&t){const n=e.XpG().ngIf;e.Y8G("evidence",n)}}function lt(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function mt(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function _t(t,a){if(1&t&&e.nrm(0,"cvc-revision-tag",21),2&t){const n=e.XpG().ngIf;e.Y8G("revision",n)}}function pt(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",22),2&t){const n=e.XpG().ngIf;e.Y8G("variantgroup",n)}}function gt(t,a){if(1&t&&e.nrm(0,"cvc-source-tag",23),2&t){const n=e.XpG().ngIf;e.Y8G("source",n)}}function vt(t,a){if(1&t&&e.nrm(0,"cvc-molecular-profile-tag",24),2&t){const n=e.XpG().ngIf;e.Y8G("molecularProfile",n)}}function dt(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG().ngIf;e.SpI(" ",n.name," ")}}function ut(t,a){if(1&t&&(e.qex(0),e.DNE(1,rt,1,1,"cvc-feature-tag",17)(2,ct,1,1,"cvc-assertion-tag",18)(3,st,1,1,"cvc-evidence-tag",19)(4,lt,1,1,"cvc-feature-variant-tag",20)(5,mt,1,1,"cvc-feature-variant-tag",20)(6,_t,1,1,"cvc-revision-tag",21)(7,pt,1,1,"cvc-variant-group-tag",22)(8,gt,1,1,"cvc-source-tag",23)(9,vt,1,1,"cvc-molecular-profile-tag",24)(10,dt,1,1),e.bVm()),2&t){let n;const r=a.ngIf;e.R7$(),e.vxM("Feature"===(n=r.__typename)?1:"Assertion"===n?2:"EvidenceItem"===n?3:"GeneVariant"===n?4:"FactorVariant"===n?5:"Revision"===n?6:"VariantGroup"===n?7:"Source"===n?8:"MolecularProfile"===n?9:10)}}function ft(t,a){if(1&t&&(e.qex(0),e.j41(1,"span",5),e.EFF(2,"for\xa0"),e.k0s(),e.nrm(3,"cvc-organization-tag",25),e.bVm()),2&t){const n=a.ngIf;e.R7$(3),e.Y8G("org",n)}}function Ct(t,a){if(1&t&&(e.j41(0,"nz-row",2)(1,"nz-col",3),e.DNE(2,Ze,1,1,"cvc-user-tag",4),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"eventVerbiage"),e.k0s(),e.DNE(6,at,6,5,"ng-container",6)(7,ut,11,1,"ng-container",6)(8,ft,4,1,"ng-container",6),e.k0s(),e.j41(9,"nz-col",7)(10,"span",8),e.nI1(11,"date"),e.EFF(12),e.nI1(13,"timeAgo"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngIf","hideUser"!=n.tagDisplay),e.R7$(2),e.SpI("",e.i5U(5,7,n.event.action,"feed"),"\xa0"),e.R7$(2),e.Y8G("ngIf",n.event.originatingObject),e.R7$(),e.Y8G("ngIf","hideSubject"!=n.tagDisplay&&n.event.subject),e.R7$(),e.Y8G("ngIf","hideOrg"!=n.tagDisplay&&n.event.organization),e.R7$(2),e.Y8G("nzTooltipTitle",e.bMT(11,10,n.event.createdAt)),e.R7$(2),e.SpI(" ",e.bMT(13,12,n.event.createdAt)," ")}}function zt(t,a){1&t&&e.EFF(0," Event database entry is malformed and cannot be displayed\n")}let Tt=(()=>{class t{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["noOriginating",""],["class","timeline-item",4,"ngIf","ngIfElse"],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"feature"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"molecularProfile"],[3,"org"]],template:function(r,R){if(1&r&&e.DNE(0,Ct,14,14,"nz-row",1)(1,zt,1,0,"ng-template",null,0,e.C5r),2&r){const U=e.sdS(2);e.Y8G("ngIf",R.event.originatingObject)("ngIfElse",U)}},dependencies:[i.bT,i.ux,i.e1,v.s,h.LH,D.Di,m.Uq,m.e,c.Wk,Z,T.r,Ie,We,p._,I.a,u.J,j.j,Ke.r,w.D,S.S,Ve.z,i.vh,Je.s,Qe,Y.N],encapsulation:2})}return t})()},9588:(H,O,o)=>{o.d(O,{p:()=>E});var e=o(3953),i=o(177),v=o(6389),h=o(5103),D=o(7120),m=o(2597),c=o(9145);let C=(()=>{class _{transform(p){switch(p){case c.H1z.Commented:case c.H1z.CommentDeleted:return"civic-comment";case c.H1z.RevisionSuggested:case c.H1z.RevisionAccepted:case c.H1z.RevisionRejected:case c.H1z.RevisionSuperseded:return"civic-revision";case c.H1z.Flagged:case c.H1z.FlagResolved:return"civic-flag";case c.H1z.AssertionSubmitted:case c.H1z.AssertionAccepted:case c.H1z.AssertionRejected:return"civic-assertion";case c.H1z.Submitted:case c.H1z.Accepted:case c.H1z.Rejected:return"civic-evidence";case c.H1z.PublicationSuggested:case c.H1z.CuratedSourceSuggestion:case c.H1z.RejectedSourceSuggestion:case c.H1z.RequeuedSourceSuggestion:return"file-add";case c.H1z.Reverted:return"civic-evidence";case c.H1z.AssertionReverted:return"civic-assertion";case c.H1z.DeprecatedVariant:return"civic-variant";case c.H1z.DeprecatedFeature:case c.H1z.FeatureCreated:return"civic-feature";case c.H1z.DeprecatedMolecularProfile:case c.H1z.ComplexMolecularProfileCreated:return"civic-molecularprofile";case c.H1z.VariantCreated:return"civic-variant";default:return p}}static#e=this.\u0275fac=function(T){return new(T||_)};static#t=this.\u0275pipe=e.EJ8({name:"iconNameForEventAction",type:_,pure:!0})}return _})();function x(_,G){if(1&_&&(e.nrm(0,"i",6),e.nI1(1,"iconNameForEventAction")),2&_){const p=e.XpG(2).$implicit;e.Y8G("nzType",e.bMT(1,1,p.action))}}function P(_,G){if(1&_&&(e.j41(0,"nz-timeline-item",4),e.DNE(1,x,2,3,"ng-template",null,0,e.C5r),e.nrm(3,"cvc-event-timeline-item",5),e.k0s()),2&_){const p=e.sdS(2),T=e.XpG().$implicit,I=e.XpG(2);e.Y8G("nzDot",p),e.R7$(3),e.Y8G("event",T)("tagDisplay",I.tagDisplay)}}function z(_,G){if(1&_&&(e.qex(0),e.DNE(1,P,4,3,"nz-timeline-item",3),e.bVm()),2&_){const p=G.$implicit;e.R7$(),e.Y8G("ngIf",p)}}function y(_,G){if(1&_&&(e.j41(0,"nz-timeline"),e.DNE(1,z,2,1,"ng-container",2),e.k0s()),2&_){const p=e.XpG();e.R7$(),e.Y8G("ngForOf",p.events)}}let E=(()=>{class _{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}static#e=this.\u0275fac=function(T){return new(T||_)};static#t=this.\u0275cmp=e.VBU({type:_,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[["timelineDotTemplate",""],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot",4,"ngIf"],[3,"nzDot"],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(T,I){1&T&&e.DNE(0,y,2,1,"nz-timeline",1),2&T&&e.Y8G("ngIf",null==I.events?null:I.events.length)},dependencies:[i.Sq,i.bT,v.c,h.Dn,D.SO,D.XJ,m.O,C],styles:["[_nghost-%COMP%]{display:block}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]})}return _})()},2172:(H,O,o)=>{o.d(O,{a:()=>S});var e=o(177),i=o(5103),v=o(2839),h=o(7391),D=o(4917),m=o(9238),c=o(9269),C=o(1862),x=o(6936),P=o(7051),z=o(8920),y=o(5154),E=o(7120),_=o(7529),G=o(4415),p=o(513),T=o(1209),I=o(5023),u=o(6912),j=o(3953);let S=(()=>{class d{static#e=this.\u0275fac=function(b){return new(b||d)};static#t=this.\u0275mod=j.$C({type:d});static#n=this.\u0275inj=j.G2t({imports:[e.MD,p.Zw,i.Y3,y.Qt,h.kT,E.ki,_.f3,G.O,v.m,D.i,m.e,c.P,u.l,C.e,x.G,P.U,z.U,T.k,I.J]})}return d})()},9269:(H,O,o)=>{o.d(O,{P:()=>S});var e=o(177),i=o(5699),v=o(5103),h=o(1188),D=o(4917),m=o(2839),c=o(1862),C=o(6936),x=o(5703),P=o(7529),z=o(8134),y=o(9590),E=o(7685),_=o(2e3),G=o(7169),p=o(6912),T=o(7086),I=o(3953);let u=(()=>{class d{static#e=this.\u0275fac=function(b){return new(b||d)};static#t=this.\u0275mod=I.$C({type:d});static#n=this.\u0275inj=I.G2t({imports:[e.MD,x.Ti,P.f3,v.Y3,E.pc,_.WF,D.i,p.l,m.m,c.e,C.G,T.C,z.l,y.R,G.W]})}return d})();var j=o(1236);let S=(()=>{class d{static#e=this.\u0275fac=function(b){return new(b||d)};static#t=this.\u0275mod=I.$C({type:d});static#n=this.\u0275inj=I.G2t({imports:[e.MD,h.iI,i.T,v.Y3,j.MC,D.i,u]})}return d})()},5757:(H,O,o)=>{o.d(O,{v:()=>x});var e=o(177),i=o(5703),v=o(2617),h=o(7529),D=o(7685),m=o(5699),c=o(4917),C=o(3953);let x=(()=>{class P{static#e=this.\u0275fac=function(E){return new(E||P)};static#t=this.\u0275mod=C.$C({type:P});static#n=this.\u0275inj=C.G2t({imports:[e.MD,i.Ti,v.rD,h.f3,m.T,D.pc,c.i]})}return P})()},4415:(H,O,o)=>{o.d(O,{O:()=>d});var e=o(177),i=o(5699),v=o(5103),h=o(1188),D=o(4917),m=o(2839),c=o(1862),C=o(6936),x=o(5703),P=o(7529),z=o(8134),y=o(9590),E=o(7685),_=o(2e3),G=o(5757),p=o(7169),T=o(6912),I=o(7086),u=o(3953);let j=(()=>{class F{static#e=this.\u0275fac=function(Y){return new(Y||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[e.MD,x.Ti,P.f3,v.Y3,E.pc,_.WF,D.i,T.l,m.m,c.e,C.G,I.C,z.l,y.R,p.W,G.v]})}return F})();var S=o(1236);let d=(()=>{class F{static#e=this.\u0275fac=function(Y){return new(Y||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[e.MD,h.iI,D.i,j,i.T,v.Y3,S.MC]})}return F})()},2968:(H,O,o)=>{o.d(O,{K:()=>c});var e=o(177),i=o(5703),v=o(2617),h=o(5103),D=o(513),m=o(3953);let c=(()=>{class C{static#e=this.\u0275fac=function(z){return new(z||C)};static#t=this.\u0275mod=m.$C({type:C});static#n=this.\u0275inj=m.G2t({imports:[e.MD,i.Ti,v.rD,h.Y3,D.Zw]})}return C})()},7793:(H,O,o)=>{o.d(O,{s:()=>v});var e=o(9145),i=o(3953);let v=(()=>{class h{transform(m,c="contributor-card",C=0){return"contributor-card"===c?this.contributorVerbiage(m,C):"action-filter"===c?this.actionFilterVerbiage(m):this.eventFeedVerbiage(m)}eventFeedVerbiage(m){switch(m){case e.H1z.Commented:return"added comment";case e.H1z.RevisionSuggested:return"suggested revision";case e.H1z.RevisionAccepted:return"accepted revision";case e.H1z.RevisionRejected:return"rejected revision";case e.H1z.RevisionSuperseded:return"closed revision";case e.H1z.Flagged:return"opened new flag";case e.H1z.FlagResolved:return"resolved flag";case e.H1z.AssertionSubmitted:return"submitted assertion";case e.H1z.AssertionAccepted:return"accepted assertion";case e.H1z.AssertionRejected:return"rejected assertion";case e.H1z.Submitted:return"submitted evidence item";case e.H1z.Accepted:return"accepted evidence item";case e.H1z.Rejected:return"rejected evidence item";case e.H1z.PublicationSuggested:return"created source suggestion";case e.H1z.CuratedSourceSuggestion:return"finished curating source suggestion";case e.H1z.RejectedSourceSuggestion:return"rejected source suggestion";case e.H1z.RequeuedSourceSuggestion:return"requeued source suggestion";case e.H1z.Reverted:return"reverted evidence item";case e.H1z.AssertionReverted:return"reverted assertion";case e.H1z.DeprecatedVariant:return"deprecated variant";case e.H1z.DeprecatedFeature:return"deprecated feature";case e.H1z.DeprecatedMolecularProfile:return"deprecated molecular profile";case e.H1z.VariantCreated:return"created variant";case e.H1z.FeatureCreated:return"created feature";case e.H1z.ComplexMolecularProfileCreated:return"created complex molecular profile";case e.H1z.CommentDeleted:return"deleted comment";default:return m}}actionFilterVerbiage(m){switch(m){case e.H1z.Commented:return"commented";case e.H1z.RevisionSuggested:return"revision suggested";case e.H1z.RevisionAccepted:return"revision accepted";case e.H1z.RevisionRejected:return"revision rejected";case e.H1z.RevisionSuperseded:return"revision closed";case e.H1z.Flagged:return"flag opened";case e.H1z.FlagResolved:return"flag resolved";case e.H1z.AssertionSubmitted:return"assertion submitted";case e.H1z.AssertionAccepted:return"assertion accepted";case e.H1z.AssertionRejected:return"assertion rejected";case e.H1z.Submitted:return"evidence item submitted";case e.H1z.Accepted:return"evidence item accepted";case e.H1z.Rejected:return"evidence item rejected";case e.H1z.PublicationSuggested:return"source suggestion created";case e.H1z.CuratedSourceSuggestion:return"source suggestion curated";case e.H1z.RejectedSourceSuggestion:return"source suggestion rejected";case e.H1z.RequeuedSourceSuggestion:return"source suggestion requeued";case e.H1z.Reverted:return"evidence item reverted";case e.H1z.AssertionReverted:return"assertion reverted";case e.H1z.DeprecatedVariant:return"variant deprecated";case e.H1z.DeprecatedMolecularProfile:return"molecular profile deprecated";case e.H1z.VariantCreated:return"variant created";case e.H1z.ComplexMolecularProfileCreated:return"complex molecular profile created";case e.H1z.CommentDeleted:return"comment deleted";default:return m}}contributorVerbiage(m,c){switch(m){case e.H1z.Commented:return 1==c?"left a comment on this entity":`left ${c} comments on this entity`;case e.H1z.RevisionSuggested:return 1==c?"suggested a revision to this entity":`suggested ${c} revisions on this entity`;case e.H1z.RevisionAccepted:return 1==c?"accepted a revision to this entity":`accepted ${c} revisions on this entity`;case e.H1z.RevisionRejected:return 1==c?"rejected a revision to this entity":`rejected ${c} revisions on this entity`;case e.H1z.RevisionSuperseded:return 1==c?"closed a revision to this entity":`closed ${c} revisions on this entity`;case e.H1z.Flagged:return 1==c?"opened new flag on this entity":`opened ${c} new flags on this entity`;case e.H1z.FlagResolved:return 1==c?"resolved a flag on this entity":`resolved ${c} flags on this entity`;case e.H1z.AssertionSubmitted:return"submitted this assertion";case e.H1z.AssertionAccepted:return"accepted this assertion";case e.H1z.AssertionRejected:return"rejected this assertion";case e.H1z.Submitted:return"submitted this evidence item";case e.H1z.Accepted:return"accepted this evidence item";case e.H1z.Rejected:return"rejected this evidence item";case e.H1z.PublicationSuggested:return"";case e.H1z.CuratedSourceSuggestion:return"finished curating this source suggestion";case e.H1z.RejectedSourceSuggestion:return"rejected this source suggestion";case e.H1z.RequeuedSourceSuggestion:return"requeued this source suggestion";case e.H1z.AssertionReverted:return"reverted this assertion";case e.H1z.Reverted:return"reverted this evidence item";case e.H1z.DeprecatedVariant:return"deprecated this variant";case e.H1z.DeprecatedMolecularProfile:return"deprecated this molecular profile";case e.H1z.DeprecatedFeature:return"deprecated this feature";case e.H1z.FeatureCreated:return"created this feature";case e.H1z.VariantCreated:return"created this variant";case e.H1z.ComplexMolecularProfileCreated:return"created this complex molecular profile";default:return m}}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275pipe=i.EJ8({name:"eventVerbiage",type:h,pure:!0})}return h})()},7120:(H,O,o)=>{o.d(O,{SO:()=>B,XJ:()=>N,ki:()=>J});var e=o(177),i=o(3953),v=o(7806),h=o(2771),D=o(1413),m=o(6977),c=o(5103),C=o(8203);const x=["template"],P=["*"];function z(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.JRh(l.nzLabel)}}function y(s,M){if(1&s&&(i.j41(0,"div",7),i.DNE(1,z,2,1,"ng-container",5),i.k0s()),2&s){const l=i.XpG(2);i.R7$(),i.Y8G("nzStringTemplateOutlet",l.nzLabel)}}function E(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(2);i.R7$(),i.JRh(l.nzDot)}}function _(s,M){if(1&s&&(i.j41(0,"li",1),i.DNE(1,y,2,1,"div",2),i.nrm(2,"div",3),i.j41(3,"div",4),i.DNE(4,E,2,1,"ng-container",5),i.k0s(),i.j41(5,"div",6),i.SdG(6),i.k0s()()),2&s){const l=i.XpG();i.AVh("ant-timeline-item-right","right"===(l.nzPosition||l.position))("ant-timeline-item-left","left"===(l.nzPosition||l.position))("ant-timeline-item-last",l.isLast),i.R7$(),i.Y8G("ngIf",l.nzLabel),i.R7$(2),i.xc7("border-color",l.borderColor),i.AVh("ant-timeline-item-head-red","red"===l.nzColor)("ant-timeline-item-head-blue","blue"===l.nzColor)("ant-timeline-item-head-green","green"===l.nzColor)("ant-timeline-item-head-gray","gray"===l.nzColor)("ant-timeline-item-head-custom",!!l.nzDot),i.R7$(),i.Y8G("nzStringTemplateOutlet",l.nzDot)}}function G(s,M){if(1&s&&i.eu8(0,4),2&s){i.XpG();const l=i.sdS(5);i.Y8G("ngTemplateOutlet",l)}}function p(s,M){}function T(s,M){if(1&s&&(i.qex(0),i.DNE(1,p,0,0,"ng-template",4),i.bVm()),2&s){const l=M.$implicit;i.R7$(),i.Y8G("ngTemplateOutlet",l.template)}}function I(s,M){if(1&s&&i.eu8(0,4),2&s){i.XpG();const l=i.sdS(5);i.Y8G("ngTemplateOutlet",l)}}function u(s,M){1&s&&i.nrm(0,"span",12)}function j(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.DNE(2,u,1,0,"span",11),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.SpI(" ",l.nzPendingDot," "),i.R7$(),i.Y8G("ngIf",!l.nzPendingDot)}}function S(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.SpI(" ",l.isPendingBoolean?"":l.nzPending," ")}}function d(s,M){if(1&s&&(i.j41(0,"li",6),i.nrm(1,"div",7),i.j41(2,"div",8),i.DNE(3,j,3,2,"ng-container",9),i.k0s(),i.j41(4,"div",10),i.DNE(5,S,2,1,"ng-container",9),i.k0s()()),2&s){const l=i.XpG(2);i.R7$(3),i.Y8G("nzStringTemplateOutlet",l.nzPendingDot),i.R7$(2),i.Y8G("nzStringTemplateOutlet",l.nzPending)}}function F(s,M){if(1&s&&i.DNE(0,d,6,2,"li",5),2&s){const l=i.XpG();i.Y8G("ngIf",l.nzPending)}}const Y=["red","blue","green","grey","gray"];let L=(()=>{class s{constructor(){this.check$=new h.m(1)}markForCheck(){this.check$.next()}static#e=this.\u0275fac=function(g){return new(g||s)};static#t=this.\u0275prov=i.jDH({token:s,factory:s.\u0275fac})}return s})(),B=(()=>{class s{constructor(l,g){this.cdr=l,this.timelineService=g,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(l){this.timelineService.markForCheck(),l.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function K(s){return-1!==Y.findIndex(M=>M===s)}(this.nzColor)?null:this.nzColor}static#e=this.\u0275fac=function(g){return new(g||s)(i.rXU(i.gRc),i.rXU(L))};static#t=this.\u0275cmp=i.VBU({type:s,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(g,f){if(1&g&&i.GBs(x,5),2&g){let A;i.mGM(A=i.lsd())&&(f.template=A.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],standalone:!0,features:[i.OA$,i.aNF],ngContentSelectors:P,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(g,f){1&g&&(i.NAR(),i.DNE(0,_,7,20,"ng-template",null,0,i.C5r))},dependencies:[e.bT,v.C,v.m],encapsulation:2,changeDetection:0})}return s})(),N=(()=>{class s{constructor(l,g,f){this.cdr=l,this.timelineService=g,this.directionality=f,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new D.B}ngOnChanges(l){const{nzMode:g,nzReverse:f,nzPending:A}=l;(X(g)||X(f))&&this.updateChildren(),A&&(this.isPendingBoolean=!0===A.currentValue)}ngOnInit(){this.timelineService.check$.pipe((0,m.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.directionality.change?.pipe((0,m.Q)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,m.Q)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const l=this.listOfItems.length;let g=!1;this.listOfItems.forEach((f,A)=>{f.isLast=this.nzReverse?0===A:A===l-1,f.position=function V(s,M){return"custom"===M?void 0:"left"===M?"left":"right"===M?"right":"alternate"===M&&s%2==0?"left":"right"}(A,this.nzMode),!g&&f.nzLabel&&(g=!0),f.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=g}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}static#e=this.\u0275fac=function(g){return new(g||s)(i.rXU(i.gRc),i.rXU(L),i.rXU(C.dS,8))};static#t=this.\u0275cmp=i.VBU({type:s,selectors:[["nz-timeline"]],contentQueries:function(g,f,A){if(1&g&&i.wni(A,B,4),2&g){let W;i.mGM(W=i.lsd())&&(f.listOfItems=W)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:[2,"nzReverse","nzReverse",i.L39]},exportAs:["nzTimeline"],standalone:!0,features:[i.Jv_([L]),i.GFd,i.OA$,i.aNF],ngContentSelectors:P,decls:7,vars:15,consts:[["pendingTemplate",""],[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(g,f){1&g&&(i.NAR(),i.j41(0,"ul",1),i.DNE(1,G,1,1,"ng-container",2)(2,T,2,1,"ng-container",3)(3,I,1,1,"ng-container",2),i.k0s(),i.DNE(4,F,1,1,"ng-template",null,0,i.C5r),i.SdG(6)),2&g&&(i.AVh("ant-timeline-label",f.hasLabelItem)("ant-timeline-right",!f.hasLabelItem&&"right"===f.nzMode)("ant-timeline-alternate","alternate"===f.nzMode||"custom"===f.nzMode)("ant-timeline-pending",!!f.nzPending)("ant-timeline-reverse",f.nzReverse)("ant-timeline-rtl","rtl"===f.dir),i.R7$(),i.Y8G("ngIf",f.nzReverse),i.R7$(),i.Y8G("ngForOf",f.timelineItems),i.R7$(),i.Y8G("ngIf",!f.nzReverse))},dependencies:[e.bT,e.T3,e.Sq,v.C,v.m,c.Y3,c.Dn],encapsulation:2,changeDetection:0})}return s})();function X(s){return!(!s||s.previousValue===s.currentValue&&!s.isFirstChange())}let J=(()=>{class s{static#e=this.\u0275fac=function(g){return new(g||s)};static#t=this.\u0275mod=i.$C({type:s});static#n=this.\u0275inj=i.G2t({imports:[B,N]})}return s})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6508],{9238:(H,O,o)=>{o.d(O,{e:()=>I});var e=o(177),i=o(1236),v=o(2839),h=o(1862),D=o(6936),m=o(5703),c=o(7529),C=o(4415),x=o(1209),P=o(4917),z=o(6912),y=o(7086),E=o(3953);let _=(()=>{class u{static#e=this.\u0275fac=function(d){return new(d||u)};static#t=this.\u0275mod=E.$C({type:u});static#n=this.\u0275inj=E.G2t({imports:[e.MD,m.Ti,c.f3,z.l,v.m,h.e,D.G,D.G,y.C,C.O,x.k,P.i]})}return u})();var G=o(5699),p=o(5103),T=o(1188);let I=(()=>{class u{static#e=this.\u0275fac=function(d){return new(d||u)};static#t=this.\u0275mod=E.$C({type:u});static#n=this.\u0275inj=E.G2t({imports:[e.MD,P.i,T.iI,i.MC,p.Y3,_,G.T]})}return u})()},5023:(H,O,o)=>{o.d(O,{J:()=>F});var e=o(177),i=o(5103),v=o(2839),h=o(7391),D=o(4917),m=o(9238),c=o(9269),C=o(1862),x=o(6936),P=o(8920),z=o(5154),y=o(7529),E=o(4415),_=o(513),G=o(1209),p=o(8134),T=o(5699),I=o(1188),u=o(996),j=o(6912),S=o(7086),d=o(3953);let F=(()=>{class ${static#e=this.\u0275fac=function(L){return new(L||$)};static#t=this.\u0275mod=d.$C({type:$});static#n=this.\u0275inj=d.G2t({imports:[e.MD,_.Zw,i.Y3,T.T,z.Qt,h.kT,y.f3,I.iI,E.O,v.m,D.i,m.e,c.P,j.l,C.e,x.G,S.C,P.U,G.k,p.l,u.o]})}return $})()},2597:(H,O,o)=>{o.d(O,{O:()=>ht});var e=o(3953),i=o(177),v=o(5699),h=o(5154),D=o(7391),m=o(7529),c=o(1188),C=o(6354),x=o(5964),P=o(9199),z=o(9145),y=o(5703),E=o(5103),_=o(7685),G=o(2e3),p=o(3245),T=o(6408),I=o(1417),u=o(9045),j=o(959),S=o(8238),d=o(311),F=o(4126),$=o(1774),b=o(3075),Y=o(8139);function L(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"i",14),e.nI1(2,"entityColor"),e.EFF(3),e.k0s()),2&t){const n=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"Revision")),e.R7$(2),e.SpI(" RID",n.id," ")}}function K(t,a){if(1&t&&e.nrm(0,"cvc-status-tag",15),2&t){const n=e.XpG(2).ngIf;e.Y8G("status",n.status)}}function B(t,a){1&t&&(e.j41(0,"nz-space",11),e.DNE(1,L,4,4,"span",12)(2,K,1,1,"cvc-status-tag",13),e.k0s())}function X(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",16),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.subject)}}function N(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",17),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.subject)}}function V(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",18),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.subject)}}function J(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",19),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.subject)}}function s(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",20),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variantgroup",n.subject)}}function M(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2).ngIf;e.SpI(" ",n.subject.name," ")}}function l(t,a){if(1&t&&e.DNE(0,X,1,2,"cvc-feature-tag",16)(1,N,1,2,"cvc-assertion-tag",17)(2,V,1,2,"cvc-evidence-tag",18)(3,J,1,2,"cvc-feature-variant-tag",19)(4,s,1,2,"cvc-variant-group-tag",20)(5,M,1,1),2&t){let n;const r=e.XpG().ngIf;e.vxM("Feature"===(n=r.subject.__typename)?0:"Assertion"===n?1:"EvidenceItem"===n?2:"Variant"===n?3:"VariantGroup"===n?4:5)}}function g(t,a){if(1&t&&e.nrm(0,"cvc-user-tag",21),2&t){const n=e.XpG().ngIf;e.Y8G("enablePopover",!1)("user",n.creationActivity.user)}}function f(t,a){if(1&t&&(e.j41(0,"nz-descriptions-item",22),e.nrm(1,"cvc-comment-body",23),e.k0s()),2&t){const n=e.XpG().ngIf;e.R7$(),e.Y8G("commentBodySegments",n.creationActivity.parsedNote)}}function A(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,B,3,0,"ng-template",null,0,e.C5r)(4,l,6,1,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.DNE(8,g,1,2,"cvc-user-tag",7),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.nI1(13,"timeAgo"),e.k0s(),e.DNE(14,f,2,1,"nz-descriptions-item",10),e.k0s()(),e.bVm()),2&t){const n=a.ngIf,r=e.sdS(3),R=e.sdS(5);e.R7$(),e.Y8G("nzTitle",r)("nzExtra",R),e.R7$(5),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("ngIf",null==n.creationActivity?null:n.creationActivity.user),e.R7$(2),e.SpI(" ",n.linkoutData.name," "),e.R7$(2),e.SpI(" ",e.bMT(13,7,n.createdAt)," "),e.R7$(2),e.Y8G("ngIf",null==n.creationActivity?null:n.creationActivity.parsedNote)}}let W=(()=>{class t{constructor(n){this.gql=n}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,C.T)(({data:n})=>n?.revision),(0,x.p)(P.kP))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.XWi))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[3,"enablePopover","user"],["nzTitle","Creation Comment"],[3,"commentBodySegments"]],template:function(r,R){1&r&&(e.j41(0,"div",2),e.DNE(1,A,15,9,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,R.revision$)))},dependencies:[i.bT,y.cK,E.Dn,_.U5,_.Dq,G.xA,G.gr,p._,T.r,I.a,u.J,j.j,S.S,d.g,F.p,$.L9,b.R,Y.N],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}"]})}return t})();var Q=o(1236);const k=t=>({revisionSetId:t});function q(t,a){}function ee(t,a){}function te(t,a){if(1&t&&e.nrm(0,"cvc-revision-popover",6),2&t){const n=e.XpG(2);e.Y8G("revisionId",n.revision.id)}}function ne(t,a){if(1&t&&(e.j41(0,"nz-tag",5),e.DNE(1,ee,0,0,"ng-template",4),e.k0s(),e.DNE(2,te,1,1,"ng-template",null,2,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),R=e.sdS(5);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",R)}}function oe(t,a){if(1&t&&(e.nrm(0,"i",7),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.revision.name,"\n")}}let Z=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:5,consts:[["tag",""],["tagContent",""],["revisionPopover",""],[3,"routerLink","queryParams"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(r,R){if(1&r&&(e.j41(0,"a",3),e.DNE(1,q,0,0,"ng-template",4),e.k0s(),e.DNE(2,ne,4,4,"ng-template",null,0,e.C5r)(4,oe,2,1,"ng-template",null,1,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",R.revision.link)("queryParams",e.eq3(3,k,R.revision.revisionSetId)),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,W,v.s,E.Dn,Q.L_],encapsulation:2})}return t})();var ie=o(4608),w=o(9062);function ae(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",9),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.commentable)}}function re(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",10),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.commentable)}}function ce(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",11),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.commentable)}}function se(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",12),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.commentable)}}function le(t,a){if(1&t&&e.nrm(0,"cvc-revision-tag",13),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("revision",n.commentable)}}function me(t,a){if(1&t&&e.nrm(0,"cvc-source-tag",14),2&t){const n=e.XpG(3).ngIf;e.Y8G("enablePopover",!1)("source",n.commentable)}}function _e(t,a){1&t&&e.DNE(0,me,1,2,"cvc-source-tag",15),2&t&&e.Y8G("ngSwitchCase","Source")}function pe(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2).ngIf;e.SpI(" ",n.commentable.name," ")}}function ge(t,a){if(1&t&&(e.j41(0,"span",7),e.nrm(1,"cvc-user-tag",8),e.EFF(2,"commented on "),e.DNE(3,ae,1,2,"cvc-feature-tag",9)(4,re,1,2,"cvc-assertion-tag",10)(5,ce,1,2,"cvc-evidence-tag",11)(6,se,1,2,"cvc-feature-variant-tag",12)(7,le,1,2,"cvc-revision-tag",13)(8,_e,1,1,"cvc-source-tag",14)(9,pe,1,1),e.EFF(10),e.nI1(11,"timeAgo"),e.k0s()),2&t){let n;const r=e.XpG().ngIf;e.R7$(),e.Y8G("enablePopover",!1)("user",r.commenter),e.R7$(2),e.vxM("Feature"===(n=r.commentable.__typename)?3:"Assertion"===n?4:"EvidenceItem"===n?5:"Variant"===n?6:"Revision"===n?7:"Source"===n?8:9),e.R7$(7),e.SpI(" ",e.bMT(11,4,r.createdAt)," ")}}function ve(t,a){if(1&t&&(e.j41(0,"p",16)(1,"b"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG().ngIf;e.R7$(2),e.JRh(n.title)}}function de(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,ge,12,6,"ng-template",null,0,e.C5r),e.j41(4,"nz-row")(5,"nz-col",4)(6,"div",5),e.DNE(7,ve,3,1,"p",6),e.j41(8,"p"),e.EFF(9),e.k0s()()()()(),e.bVm()),2&t){const n=a.ngIf,r=e.sdS(3);e.R7$(),e.Y8G("nzTitle",r),e.R7$(6),e.Y8G("ngIf",n.title),e.R7$(2),e.SpI(" ",n.comment," ")}}let ue=(()=>{class t{constructor(n){this.gql=n}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,ie.E)("data","comment"))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.d2V))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","revision"],["mode","concise",3,"enablePopover","source"],["mode","concise",3,"enablePopover","source",4,"ngSwitchCase"],["nz-typography",""]],template:function(r,R){1&r&&(e.j41(0,"div",1),e.DNE(1,de,10,3,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,R.comment$)))},dependencies:[i.bT,i.e1,y.cK,m.Uq,m.e,p._,T.r,I.a,u.J,j.j,Z,w.D,$.L9,Y.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return t})();function fe(t,a){}function Ce(t,a){}function ze(t,a){if(1&t&&e.nrm(0,"cvc-comment-popover",7),2&t){const n=e.XpG(2);e.Y8G("commentId",n.comment.id)}}function Te(t,a){if(1&t&&(e.j41(0,"nz-tag",6),e.DNE(1,Ce,0,0,"ng-template",5),e.k0s(),e.DNE(2,ze,1,1,"ng-template",null,3,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),R=e.sdS(7);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",R)}}function he(t,a){}function Pe(t,a){if(1&t&&(e.j41(0,"nz-tag"),e.DNE(1,he,0,0,"ng-template",5),e.k0s()),2&t){e.XpG();const n=e.sdS(7);e.R7$(),e.Y8G("ngTemplateOutlet",n)}}function Ee(t,a){if(1&t&&(e.nrm(0,"i",8),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.comment.name,"\n")}}let Ie=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[["tag",""],["noPopover",""],["tagContent",""],["commentPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(r,R){if(1&r&&(e.j41(0,"a",4),e.DNE(1,fe,0,0,"ng-template",5),e.k0s(),e.DNE(2,Te,4,4,"ng-template",null,0,e.C5r)(4,Pe,2,1,"ng-template",null,1,e.C5r)(6,Ee,2,1,"ng-template",null,2,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",R.comment.link),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,Q.L_,E.Dn,ue,v.s],encapsulation:2})}return t})();function De(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"i",11),e.nI1(2,"entityColor"),e.EFF(3),e.k0s()),2&t){const n=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"Flag")),e.R7$(2),e.SpI(" FID",n.id," ")}}function Me(t,a){if(1&t&&e.nrm(0,"cvc-status-tag",12),2&t){const n=e.XpG(2).ngIf;e.Y8G("status",n.state)}}function Re(t,a){1&t&&(e.j41(0,"nz-space",8),e.DNE(1,De,4,4,"span",9)(2,Me,1,1,"cvc-status-tag",10),e.k0s())}function Oe(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",13),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.flaggable)}}function Ge(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",14),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.flaggable)}}function xe(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",15),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.flaggable)}}function ye(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",16),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.flaggable)}}function Fe(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",17),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variantgroup",n.flaggable)}}function je(t,a){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3).ngIf;e.R7$(),e.JRh(n.flaggable.name)}}function Se(t,a){1&t&&e.DNE(0,je,2,1,"span",18)}function Ae(t,a){if(1&t&&e.DNE(0,Oe,1,2,"cvc-feature-tag",13)(1,Ge,1,2,"cvc-assertion-tag",14)(2,xe,1,2,"cvc-evidence-tag",15)(3,ye,1,2,"cvc-feature-variant-tag",16)(4,Fe,1,2,"cvc-variant-group-tag",17)(5,Se,1,0,"span"),2&t){let n;const r=e.XpG().ngIf;e.vxM("Feature"===(n=r.flaggable.__typename)?0:"Assertion"===n?1:"EvidenceItem"===n?2:"Variant"===n?3:"VariantGroup"===n?4:5)}}function $e(t,a){if(1&t&&(e.j41(0,"nz-descriptions",19)(1,"nz-descriptions-item",20),e.nrm(2,"cvc-user-tag",21),e.k0s(),e.j41(3,"nz-descriptions-item",22),e.EFF(4),e.nI1(5,"timeAgo"),e.k0s()()),2&t){const n=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("enablePopover",!1)("user",n.flaggingUser),e.R7$(2),e.SpI(" ",e.bMT(5,4,n.createdAt)," ")}}function be(t,a){if(1&t&&(e.j41(0,"nz-descriptions",23)(1,"nz-descriptions-item",24),e.nrm(2,"cvc-comment-body",25),e.k0s()()),2&t){const n=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("commentBodySegments",n.openActivity.parsedNote)}}function Ye(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,Re,3,0,"ng-template",null,0,e.C5r)(4,Ae,6,1,"ng-template",null,1,e.C5r),e.j41(6,"nz-space",5),e.DNE(7,$e,6,6,"nz-descriptions",6)(8,be,3,2,"nz-descriptions",7),e.k0s()(),e.bVm()),2&t){const n=e.sdS(3),r=e.sdS(5);e.R7$(),e.Y8G("nzTitle",n)("nzExtra",r)}}let He=(()=>{class t{constructor(n){this.gql=n}ngOnInit(){if(null==this.flagId)throw new Error("cvc-flag-popover requires valid flagId input.");this.flag$=this.gql.watch({flagId:this.flagId}).valueChanges.pipe((0,C.T)(({data:n})=>n?.flag),(0,x.p)(P.kP))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.wJE))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-flag-popover"]],inputs:{flagId:"flagId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzDirection","vertical",2,"width","100%"],["nzBordered","","nzSize","small",3,"nzColumn",4,"nzSpaceItem"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],[1,"flag-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],[3,"status"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[4,"ngSwitchDefault"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Flagging User"],[3,"enablePopover","user"],["nzTitle","Flagging Date"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Comment"],[3,"commentBodySegments"]],template:function(r,R){1&r&&(e.j41(0,"div",2),e.DNE(1,Ye,9,2,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,R.flag$)))},dependencies:[i.bT,i.fG,y.cK,E.Dn,_.U5,_.Dq,G.xA,G.gr,p._,T.r,I.a,u.J,j.j,S.S,d.g,F.p,$.L9,b.R,Y.N],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}.flag-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return t})();function Le(t,a){}function Ue(t,a){}function Be(t,a){if(1&t&&e.nrm(0,"cvc-flag-popover",6),2&t){const n=e.XpG(2);e.Y8G("flagId",n.flag.id)}}function Xe(t,a){if(1&t&&(e.j41(0,"nz-tag",5),e.DNE(1,Ue,0,0,"ng-template",4),e.k0s(),e.DNE(2,Be,1,1,"ng-template",null,2,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),R=e.sdS(5);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",R)}}function Ne(t,a){if(1&t&&(e.nrm(0,"i",7),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.flag.name,"\n")}}let We=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:2,consts:[["tag",""],["tagContent",""],["flagPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"flagId"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(r,R){if(1&r&&(e.j41(0,"a",3),e.DNE(1,Le,0,0,"ng-template",4),e.k0s(),e.DNE(2,Xe,4,4,"ng-template",null,0,e.C5r)(4,Ne,2,1,"ng-template",null,1,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",R.flag.link),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,v.s,E.Dn,Q.L_,He],encapsulation:2})}return t})();var Ke=o(6440),Ve=o(5473),Je=o(7793);let Qe=(()=>{class t{transform(n){switch(n){case z.H1z.Commented:case z.H1z.RevisionSuggested:case z.H1z.RevisionAccepted:case z.H1z.RevisionRejected:case z.H1z.RevisionSuperseded:return"to";case z.H1z.Flagged:case z.H1z.FlagResolved:return"on";default:return""}}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275pipe=e.EJ8({name:"prepositionForSubject",type:t,pure:!0})}return t})();function Ze(t,a){if(1&t&&e.nrm(0,"cvc-user-tag",9),2&t){const n=e.XpG(2);e.Y8G("user",n.event.originatingUser)}}function we(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function ke(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-revision-tag",12),e.DNE(2,we,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("revision",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function qe(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function et(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-comment-tag",14),e.DNE(2,qe,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("comment",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function tt(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function nt(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-flag-tag",15),e.DNE(2,tt,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("flag",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function ot(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function it(t,a){if(1&t&&(e.j41(0,"span")(1,"nz-tag",16),e.EFF(2),e.k0s(),e.DNE(3,ot,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("routerLink",n.link),e.R7$(),e.SpI(" ",n.name," "),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function at(t,a){if(1&t&&(e.qex(0)(1,10),e.DNE(2,ke,3,3,"span",11)(3,et,3,3,"span",11)(4,nt,3,3,"span",11)(5,it,4,3,"span",11),e.bVm()()),2&t){const n=a.ngIf;e.R7$(),e.Y8G("ngSwitch",n.__typename),e.R7$(),e.Y8G("ngSwitchCase","Revision"),e.R7$(),e.Y8G("ngSwitchCase","Comment"),e.R7$(),e.Y8G("ngSwitchCase","Flag"),e.R7$(),e.Y8G("ngSwitchCase","SourceSuggestion")}}function rt(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",17),2&t){const n=e.XpG().ngIf;e.Y8G("feature",n)}}function ct(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",18),2&t){const n=e.XpG().ngIf;e.Y8G("assertion",n)}}function st(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",19),2&t){const n=e.XpG().ngIf;e.Y8G("evidence",n)}}function lt(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function mt(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function _t(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function pt(t,a){if(1&t&&e.nrm(0,"cvc-revision-tag",21),2&t){const n=e.XpG().ngIf;e.Y8G("revision",n)}}function gt(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",22),2&t){const n=e.XpG().ngIf;e.Y8G("variantgroup",n)}}function vt(t,a){if(1&t&&e.nrm(0,"cvc-source-tag",23),2&t){const n=e.XpG().ngIf;e.Y8G("source",n)}}function dt(t,a){if(1&t&&e.nrm(0,"cvc-molecular-profile-tag",24),2&t){const n=e.XpG().ngIf;e.Y8G("molecularProfile",n)}}function ut(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG().ngIf;e.SpI(" ",n.name," ")}}function ft(t,a){if(1&t&&(e.qex(0),e.DNE(1,rt,1,1,"cvc-feature-tag",17)(2,ct,1,1,"cvc-assertion-tag",18)(3,st,1,1,"cvc-evidence-tag",19)(4,lt,1,1,"cvc-feature-variant-tag",20)(5,mt,1,1,"cvc-feature-variant-tag",20)(6,_t,1,1,"cvc-feature-variant-tag",20)(7,pt,1,1,"cvc-revision-tag",21)(8,gt,1,1,"cvc-variant-group-tag",22)(9,vt,1,1,"cvc-source-tag",23)(10,dt,1,1,"cvc-molecular-profile-tag",24)(11,ut,1,1),e.bVm()),2&t){let n;const r=a.ngIf;e.R7$(),e.vxM("Feature"===(n=r.__typename)?1:"Assertion"===n?2:"EvidenceItem"===n?3:"GeneVariant"===n?4:"FactorVariant"===n?5:"FusionVariant"===n?6:"Revision"===n?7:"VariantGroup"===n?8:"Source"===n?9:"MolecularProfile"===n?10:11)}}function Ct(t,a){if(1&t&&(e.qex(0),e.j41(1,"span",5),e.EFF(2,"for\xa0"),e.k0s(),e.nrm(3,"cvc-organization-tag",25),e.bVm()),2&t){const n=a.ngIf;e.R7$(3),e.Y8G("org",n)}}function zt(t,a){if(1&t&&(e.j41(0,"nz-row",2)(1,"nz-col",3),e.DNE(2,Ze,1,1,"cvc-user-tag",4),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"eventVerbiage"),e.k0s(),e.DNE(6,at,6,5,"ng-container",6)(7,ft,12,1,"ng-container",6)(8,Ct,4,1,"ng-container",6),e.k0s(),e.j41(9,"nz-col",7)(10,"span",8),e.nI1(11,"date"),e.EFF(12),e.nI1(13,"timeAgo"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngIf","hideUser"!=n.tagDisplay),e.R7$(2),e.SpI("",e.i5U(5,7,n.event.action,"feed"),"\xa0"),e.R7$(2),e.Y8G("ngIf",n.event.originatingObject),e.R7$(),e.Y8G("ngIf","hideSubject"!=n.tagDisplay&&n.event.subject),e.R7$(),e.Y8G("ngIf","hideOrg"!=n.tagDisplay&&n.event.organization),e.R7$(2),e.Y8G("nzTooltipTitle",e.bMT(11,10,n.event.createdAt)),e.R7$(2),e.SpI(" ",e.bMT(13,12,n.event.createdAt)," ")}}function Tt(t,a){1&t&&e.EFF(0," Event database entry is malformed and cannot be displayed\n")}let ht=(()=>{class t{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["noOriginating",""],["class","timeline-item",4,"ngIf","ngIfElse"],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"feature"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"molecularProfile"],[3,"org"]],template:function(r,R){if(1&r&&e.DNE(0,zt,14,14,"nz-row",1)(1,Tt,1,0,"ng-template",null,0,e.C5r),2&r){const U=e.sdS(2);e.Y8G("ngIf",R.event.originatingObject)("ngIfElse",U)}},dependencies:[i.bT,i.ux,i.e1,v.s,h.LH,D.Di,m.Uq,m.e,c.Wk,Z,T.r,Ie,We,p._,I.a,u.J,j.j,Ke.r,w.D,S.S,Ve.z,i.vh,Je.s,Qe,Y.N],encapsulation:2})}return t})()},9588:(H,O,o)=>{o.d(O,{p:()=>E});var e=o(3953),i=o(177),v=o(6389),h=o(5103),D=o(7120),m=o(2597),c=o(9145);let C=(()=>{class _{transform(p){switch(p){case c.H1z.Commented:case c.H1z.CommentDeleted:return"civic-comment";case c.H1z.RevisionSuggested:case c.H1z.RevisionAccepted:case c.H1z.RevisionRejected:case c.H1z.RevisionSuperseded:return"civic-revision";case c.H1z.Flagged:case c.H1z.FlagResolved:return"civic-flag";case c.H1z.AssertionSubmitted:case c.H1z.AssertionAccepted:case c.H1z.AssertionRejected:return"civic-assertion";case c.H1z.Submitted:case c.H1z.Accepted:case c.H1z.Rejected:return"civic-evidence";case c.H1z.PublicationSuggested:case c.H1z.CuratedSourceSuggestion:case c.H1z.RejectedSourceSuggestion:case c.H1z.RequeuedSourceSuggestion:return"file-add";case c.H1z.Reverted:return"civic-evidence";case c.H1z.AssertionReverted:return"civic-assertion";case c.H1z.DeprecatedVariant:return"civic-variant";case c.H1z.DeprecatedFeature:case c.H1z.FeatureCreated:return"civic-feature";case c.H1z.DeprecatedMolecularProfile:case c.H1z.ComplexMolecularProfileCreated:return"civic-molecularprofile";case c.H1z.VariantCreated:return"civic-variant";default:return p}}static#e=this.\u0275fac=function(T){return new(T||_)};static#t=this.\u0275pipe=e.EJ8({name:"iconNameForEventAction",type:_,pure:!0})}return _})();function x(_,G){if(1&_&&(e.nrm(0,"i",6),e.nI1(1,"iconNameForEventAction")),2&_){const p=e.XpG(2).$implicit;e.Y8G("nzType",e.bMT(1,1,p.action))}}function P(_,G){if(1&_&&(e.j41(0,"nz-timeline-item",4),e.DNE(1,x,2,3,"ng-template",null,0,e.C5r),e.nrm(3,"cvc-event-timeline-item",5),e.k0s()),2&_){const p=e.sdS(2),T=e.XpG().$implicit,I=e.XpG(2);e.Y8G("nzDot",p),e.R7$(3),e.Y8G("event",T)("tagDisplay",I.tagDisplay)}}function z(_,G){if(1&_&&(e.qex(0),e.DNE(1,P,4,3,"nz-timeline-item",3),e.bVm()),2&_){const p=G.$implicit;e.R7$(),e.Y8G("ngIf",p)}}function y(_,G){if(1&_&&(e.j41(0,"nz-timeline"),e.DNE(1,z,2,1,"ng-container",2),e.k0s()),2&_){const p=e.XpG();e.R7$(),e.Y8G("ngForOf",p.events)}}let E=(()=>{class _{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}static#e=this.\u0275fac=function(T){return new(T||_)};static#t=this.\u0275cmp=e.VBU({type:_,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[["timelineDotTemplate",""],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot",4,"ngIf"],[3,"nzDot"],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(T,I){1&T&&e.DNE(0,y,2,1,"nz-timeline",1),2&T&&e.Y8G("ngIf",null==I.events?null:I.events.length)},dependencies:[i.Sq,i.bT,v.c,h.Dn,D.SO,D.XJ,m.O,C],styles:["[_nghost-%COMP%]{display:block}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]})}return _})()},2172:(H,O,o)=>{o.d(O,{a:()=>S});var e=o(177),i=o(5103),v=o(2839),h=o(7391),D=o(4917),m=o(9238),c=o(9269),C=o(1862),x=o(6936),P=o(7051),z=o(8920),y=o(5154),E=o(7120),_=o(7529),G=o(4415),p=o(513),T=o(1209),I=o(5023),u=o(6912),j=o(3953);let S=(()=>{class d{static#e=this.\u0275fac=function(b){return new(b||d)};static#t=this.\u0275mod=j.$C({type:d});static#n=this.\u0275inj=j.G2t({imports:[e.MD,p.Zw,i.Y3,y.Qt,h.kT,E.ki,_.f3,G.O,v.m,D.i,m.e,c.P,u.l,C.e,x.G,P.U,z.U,T.k,I.J]})}return d})()},9269:(H,O,o)=>{o.d(O,{P:()=>S});var e=o(177),i=o(5699),v=o(5103),h=o(1188),D=o(4917),m=o(2839),c=o(1862),C=o(6936),x=o(5703),P=o(7529),z=o(8134),y=o(9590),E=o(7685),_=o(2e3),G=o(7169),p=o(6912),T=o(7086),I=o(3953);let u=(()=>{class d{static#e=this.\u0275fac=function(b){return new(b||d)};static#t=this.\u0275mod=I.$C({type:d});static#n=this.\u0275inj=I.G2t({imports:[e.MD,x.Ti,P.f3,v.Y3,E.pc,_.WF,D.i,p.l,m.m,c.e,C.G,T.C,z.l,y.R,G.W]})}return d})();var j=o(1236);let S=(()=>{class d{static#e=this.\u0275fac=function(b){return new(b||d)};static#t=this.\u0275mod=I.$C({type:d});static#n=this.\u0275inj=I.G2t({imports:[e.MD,h.iI,i.T,v.Y3,j.MC,D.i,u]})}return d})()},5757:(H,O,o)=>{o.d(O,{v:()=>x});var e=o(177),i=o(5703),v=o(2617),h=o(7529),D=o(7685),m=o(5699),c=o(4917),C=o(3953);let x=(()=>{class P{static#e=this.\u0275fac=function(E){return new(E||P)};static#t=this.\u0275mod=C.$C({type:P});static#n=this.\u0275inj=C.G2t({imports:[e.MD,i.Ti,v.rD,h.f3,m.T,D.pc,c.i]})}return P})()},4415:(H,O,o)=>{o.d(O,{O:()=>d});var e=o(177),i=o(5699),v=o(5103),h=o(1188),D=o(4917),m=o(2839),c=o(1862),C=o(6936),x=o(5703),P=o(7529),z=o(8134),y=o(9590),E=o(7685),_=o(2e3),G=o(5757),p=o(7169),T=o(6912),I=o(7086),u=o(3953);let j=(()=>{class F{static#e=this.\u0275fac=function(Y){return new(Y||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[e.MD,x.Ti,P.f3,v.Y3,E.pc,_.WF,D.i,T.l,m.m,c.e,C.G,I.C,z.l,y.R,p.W,G.v]})}return F})();var S=o(1236);let d=(()=>{class F{static#e=this.\u0275fac=function(Y){return new(Y||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[e.MD,h.iI,D.i,j,i.T,v.Y3,S.MC]})}return F})()},2968:(H,O,o)=>{o.d(O,{K:()=>c});var e=o(177),i=o(5703),v=o(2617),h=o(5103),D=o(513),m=o(3953);let c=(()=>{class C{static#e=this.\u0275fac=function(z){return new(z||C)};static#t=this.\u0275mod=m.$C({type:C});static#n=this.\u0275inj=m.G2t({imports:[e.MD,i.Ti,v.rD,h.Y3,D.Zw]})}return C})()},7793:(H,O,o)=>{o.d(O,{s:()=>v});var e=o(9145),i=o(3953);let v=(()=>{class h{transform(m,c="contributor-card",C=0){return"contributor-card"===c?this.contributorVerbiage(m,C):"action-filter"===c?this.actionFilterVerbiage(m):this.eventFeedVerbiage(m)}eventFeedVerbiage(m){switch(m){case e.H1z.Commented:return"added comment";case e.H1z.RevisionSuggested:return"suggested revision";case e.H1z.RevisionAccepted:return"accepted revision";case e.H1z.RevisionRejected:return"rejected revision";case e.H1z.RevisionSuperseded:return"closed revision";case e.H1z.Flagged:return"opened new flag";case e.H1z.FlagResolved:return"resolved flag";case e.H1z.AssertionSubmitted:return"submitted assertion";case e.H1z.AssertionAccepted:return"accepted assertion";case e.H1z.AssertionRejected:return"rejected assertion";case e.H1z.Submitted:return"submitted evidence item";case e.H1z.Accepted:return"accepted evidence item";case e.H1z.Rejected:return"rejected evidence item";case e.H1z.PublicationSuggested:return"created source suggestion";case e.H1z.CuratedSourceSuggestion:return"finished curating source suggestion";case e.H1z.RejectedSourceSuggestion:return"rejected source suggestion";case e.H1z.RequeuedSourceSuggestion:return"requeued source suggestion";case e.H1z.Reverted:return"reverted evidence item";case e.H1z.AssertionReverted:return"reverted assertion";case e.H1z.DeprecatedVariant:return"deprecated variant";case e.H1z.DeprecatedFeature:return"deprecated feature";case e.H1z.DeprecatedMolecularProfile:return"deprecated molecular profile";case e.H1z.VariantCreated:return"created variant";case e.H1z.FeatureCreated:return"created feature";case e.H1z.ComplexMolecularProfileCreated:return"created complex molecular profile";case e.H1z.CommentDeleted:return"deleted comment";default:return m}}actionFilterVerbiage(m){switch(m){case e.H1z.Commented:return"commented";case e.H1z.RevisionSuggested:return"revision suggested";case e.H1z.RevisionAccepted:return"revision accepted";case e.H1z.RevisionRejected:return"revision rejected";case e.H1z.RevisionSuperseded:return"revision closed";case e.H1z.Flagged:return"flag opened";case e.H1z.FlagResolved:return"flag resolved";case e.H1z.AssertionSubmitted:return"assertion submitted";case e.H1z.AssertionAccepted:return"assertion accepted";case e.H1z.AssertionRejected:return"assertion rejected";case e.H1z.Submitted:return"evidence item submitted";case e.H1z.Accepted:return"evidence item accepted";case e.H1z.Rejected:return"evidence item rejected";case e.H1z.PublicationSuggested:return"source suggestion created";case e.H1z.CuratedSourceSuggestion:return"source suggestion curated";case e.H1z.RejectedSourceSuggestion:return"source suggestion rejected";case e.H1z.RequeuedSourceSuggestion:return"source suggestion requeued";case e.H1z.Reverted:return"evidence item reverted";case e.H1z.AssertionReverted:return"assertion reverted";case e.H1z.DeprecatedVariant:return"variant deprecated";case e.H1z.DeprecatedMolecularProfile:return"molecular profile deprecated";case e.H1z.VariantCreated:return"variant created";case e.H1z.ComplexMolecularProfileCreated:return"complex molecular profile created";case e.H1z.CommentDeleted:return"comment deleted";default:return m}}contributorVerbiage(m,c){switch(m){case e.H1z.Commented:return 1==c?"left a comment on this entity":`left ${c} comments on this entity`;case e.H1z.RevisionSuggested:return 1==c?"suggested a revision to this entity":`suggested ${c} revisions on this entity`;case e.H1z.RevisionAccepted:return 1==c?"accepted a revision to this entity":`accepted ${c} revisions on this entity`;case e.H1z.RevisionRejected:return 1==c?"rejected a revision to this entity":`rejected ${c} revisions on this entity`;case e.H1z.RevisionSuperseded:return 1==c?"closed a revision to this entity":`closed ${c} revisions on this entity`;case e.H1z.Flagged:return 1==c?"opened new flag on this entity":`opened ${c} new flags on this entity`;case e.H1z.FlagResolved:return 1==c?"resolved a flag on this entity":`resolved ${c} flags on this entity`;case e.H1z.AssertionSubmitted:return"submitted this assertion";case e.H1z.AssertionAccepted:return"accepted this assertion";case e.H1z.AssertionRejected:return"rejected this assertion";case e.H1z.Submitted:return"submitted this evidence item";case e.H1z.Accepted:return"accepted this evidence item";case e.H1z.Rejected:return"rejected this evidence item";case e.H1z.PublicationSuggested:return"";case e.H1z.CuratedSourceSuggestion:return"finished curating this source suggestion";case e.H1z.RejectedSourceSuggestion:return"rejected this source suggestion";case e.H1z.RequeuedSourceSuggestion:return"requeued this source suggestion";case e.H1z.AssertionReverted:return"reverted this assertion";case e.H1z.Reverted:return"reverted this evidence item";case e.H1z.DeprecatedVariant:return"deprecated this variant";case e.H1z.DeprecatedMolecularProfile:return"deprecated this molecular profile";case e.H1z.DeprecatedFeature:return"deprecated this feature";case e.H1z.FeatureCreated:return"created this feature";case e.H1z.VariantCreated:return"created this variant";case e.H1z.ComplexMolecularProfileCreated:return"created this complex molecular profile";default:return m}}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275pipe=i.EJ8({name:"eventVerbiage",type:h,pure:!0})}return h})()},7120:(H,O,o)=>{o.d(O,{SO:()=>B,XJ:()=>X,ki:()=>J});var e=o(177),i=o(3953),v=o(7806),h=o(2771),D=o(1413),m=o(6977),c=o(5103),C=o(8203);const x=["template"],P=["*"];function z(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.JRh(l.nzLabel)}}function y(s,M){if(1&s&&(i.j41(0,"div",7),i.DNE(1,z,2,1,"ng-container",5),i.k0s()),2&s){const l=i.XpG(2);i.R7$(),i.Y8G("nzStringTemplateOutlet",l.nzLabel)}}function E(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(2);i.R7$(),i.JRh(l.nzDot)}}function _(s,M){if(1&s&&(i.j41(0,"li",1),i.DNE(1,y,2,1,"div",2),i.nrm(2,"div",3),i.j41(3,"div",4),i.DNE(4,E,2,1,"ng-container",5),i.k0s(),i.j41(5,"div",6),i.SdG(6),i.k0s()()),2&s){const l=i.XpG();i.AVh("ant-timeline-item-right","right"===(l.nzPosition||l.position))("ant-timeline-item-left","left"===(l.nzPosition||l.position))("ant-timeline-item-last",l.isLast),i.R7$(),i.Y8G("ngIf",l.nzLabel),i.R7$(2),i.xc7("border-color",l.borderColor),i.AVh("ant-timeline-item-head-red","red"===l.nzColor)("ant-timeline-item-head-blue","blue"===l.nzColor)("ant-timeline-item-head-green","green"===l.nzColor)("ant-timeline-item-head-gray","gray"===l.nzColor)("ant-timeline-item-head-custom",!!l.nzDot),i.R7$(),i.Y8G("nzStringTemplateOutlet",l.nzDot)}}function G(s,M){if(1&s&&i.eu8(0,4),2&s){i.XpG();const l=i.sdS(5);i.Y8G("ngTemplateOutlet",l)}}function p(s,M){}function T(s,M){if(1&s&&(i.qex(0),i.DNE(1,p,0,0,"ng-template",4),i.bVm()),2&s){const l=M.$implicit;i.R7$(),i.Y8G("ngTemplateOutlet",l.template)}}function I(s,M){if(1&s&&i.eu8(0,4),2&s){i.XpG();const l=i.sdS(5);i.Y8G("ngTemplateOutlet",l)}}function u(s,M){1&s&&i.nrm(0,"span",12)}function j(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.DNE(2,u,1,0,"span",11),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.SpI(" ",l.nzPendingDot," "),i.R7$(),i.Y8G("ngIf",!l.nzPendingDot)}}function S(s,M){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.SpI(" ",l.isPendingBoolean?"":l.nzPending," ")}}function d(s,M){if(1&s&&(i.j41(0,"li",6),i.nrm(1,"div",7),i.j41(2,"div",8),i.DNE(3,j,3,2,"ng-container",9),i.k0s(),i.j41(4,"div",10),i.DNE(5,S,2,1,"ng-container",9),i.k0s()()),2&s){const l=i.XpG(2);i.R7$(3),i.Y8G("nzStringTemplateOutlet",l.nzPendingDot),i.R7$(2),i.Y8G("nzStringTemplateOutlet",l.nzPending)}}function F(s,M){if(1&s&&i.DNE(0,d,6,2,"li",5),2&s){const l=i.XpG();i.Y8G("ngIf",l.nzPending)}}const Y=["red","blue","green","grey","gray"];let L=(()=>{class s{constructor(){this.check$=new h.m(1)}markForCheck(){this.check$.next()}static#e=this.\u0275fac=function(g){return new(g||s)};static#t=this.\u0275prov=i.jDH({token:s,factory:s.\u0275fac})}return s})(),B=(()=>{class s{constructor(l,g){this.cdr=l,this.timelineService=g,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(l){this.timelineService.markForCheck(),l.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function K(s){return-1!==Y.findIndex(M=>M===s)}(this.nzColor)?null:this.nzColor}static#e=this.\u0275fac=function(g){return new(g||s)(i.rXU(i.gRc),i.rXU(L))};static#t=this.\u0275cmp=i.VBU({type:s,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(g,f){if(1&g&&i.GBs(x,5),2&g){let A;i.mGM(A=i.lsd())&&(f.template=A.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],standalone:!0,features:[i.OA$,i.aNF],ngContentSelectors:P,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(g,f){1&g&&(i.NAR(),i.DNE(0,_,7,20,"ng-template",null,0,i.C5r))},dependencies:[e.bT,v.C,v.m],encapsulation:2,changeDetection:0})}return s})(),X=(()=>{class s{constructor(l,g,f){this.cdr=l,this.timelineService=g,this.directionality=f,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new D.B}ngOnChanges(l){const{nzMode:g,nzReverse:f,nzPending:A}=l;(N(g)||N(f))&&this.updateChildren(),A&&(this.isPendingBoolean=!0===A.currentValue)}ngOnInit(){this.timelineService.check$.pipe((0,m.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.directionality.change?.pipe((0,m.Q)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,m.Q)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const l=this.listOfItems.length;let g=!1;this.listOfItems.forEach((f,A)=>{f.isLast=this.nzReverse?0===A:A===l-1,f.position=function V(s,M){return"custom"===M?void 0:"left"===M?"left":"right"===M?"right":"alternate"===M&&s%2==0?"left":"right"}(A,this.nzMode),!g&&f.nzLabel&&(g=!0),f.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=g}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}static#e=this.\u0275fac=function(g){return new(g||s)(i.rXU(i.gRc),i.rXU(L),i.rXU(C.dS,8))};static#t=this.\u0275cmp=i.VBU({type:s,selectors:[["nz-timeline"]],contentQueries:function(g,f,A){if(1&g&&i.wni(A,B,4),2&g){let W;i.mGM(W=i.lsd())&&(f.listOfItems=W)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:[2,"nzReverse","nzReverse",i.L39]},exportAs:["nzTimeline"],standalone:!0,features:[i.Jv_([L]),i.GFd,i.OA$,i.aNF],ngContentSelectors:P,decls:7,vars:15,consts:[["pendingTemplate",""],[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(g,f){1&g&&(i.NAR(),i.j41(0,"ul",1),i.DNE(1,G,1,1,"ng-container",2)(2,T,2,1,"ng-container",3)(3,I,1,1,"ng-container",2),i.k0s(),i.DNE(4,F,1,1,"ng-template",null,0,i.C5r),i.SdG(6)),2&g&&(i.AVh("ant-timeline-label",f.hasLabelItem)("ant-timeline-right",!f.hasLabelItem&&"right"===f.nzMode)("ant-timeline-alternate","alternate"===f.nzMode||"custom"===f.nzMode)("ant-timeline-pending",!!f.nzPending)("ant-timeline-reverse",f.nzReverse)("ant-timeline-rtl","rtl"===f.dir),i.R7$(),i.Y8G("ngIf",f.nzReverse),i.R7$(),i.Y8G("ngForOf",f.timelineItems),i.R7$(),i.Y8G("ngIf",!f.nzReverse))},dependencies:[e.bT,e.T3,e.Sq,v.C,v.m,c.Y3,c.Dn],encapsulation:2,changeDetection:0})}return s})();function N(s){return!(!s||s.previousValue===s.currentValue&&!s.isFirstChange())}let J=(()=>{class s{static#e=this.\u0275fac=function(g){return new(g||s)};static#t=this.\u0275mod=i.$C({type:s});static#n=this.\u0275inj=i.G2t({imports:[B,X]})}return s})()}}]); \ No newline at end of file diff --git a/server/public/7038.ff8a7202cc6f84c1.js b/server/public/7038.ff8a7202cc6f84c1.js new file mode 100644 index 000000000..e55a3728f --- /dev/null +++ b/server/public/7038.ff8a7202cc6f84c1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7038],{9481:(z,E,a)=>{a.d(E,{W:()=>$n});var s=a(9145),d=a(9199),l=a(5964),C=a(4608),n=a(3953),p=a(177),T=a(5703),m=a(9541),g=a(2e3),f=a(7391),v=a(7529),c=a(7679),I=a(6719),u=a(1774),x=a(1845),D=a(1596);const r=(t,i)=>({$implicit:t,variant:i}),G=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),R=()=>({xxl:6,xl:3,lg:1,md:1,sm:1,xs:1});function O(t,i){1&t&&n.eu8(0)}function $(t,i){if(1&t&&n.DNE(0,O,1,0,"ng-container",6),2&t){const e=n.XpG().ngIf;n.XpG();const o=n.sdS(6);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,r,e.coordinates,e))}}function P(t,i){1&t&&n.eu8(0)}function M(t,i){1&t&&n.eu8(0)}function h(t,i){1&t&&n.eu8(0)}function y(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",9),n.DNE(4,P,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",10)(6,"nz-card",11),n.DNE(7,M,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,h,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(2).ngIf;n.XpG();const o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.fivePrimeCoordinates,e)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.fivePrimeStartExonCoordinates,e)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.fivePrimeEndExonCoordinates,e))}}function S(t,i){1&t&&n.eu8(0)}function F(t,i){1&t&&n.eu8(0)}function b(t,i){1&t&&n.eu8(0)}function Y(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",13),n.DNE(4,S,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",14)(6,"nz-card",11),n.DNE(7,F,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,b,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(2).ngIf;n.XpG();const o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.threePrimeCoordinates,e)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.threePrimeStartExonCoordinates,e)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.threePrimeEndExonCoordinates,e))}}function N(t,i){if(1&t&&(n.j41(0,"nz-row",5),n.DNE(1,y,10,16,"nz-col",7)(2,Y,10,16,"nz-col",7),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.vxM(e.fivePrimeCoordinates?1:-1),n.R7$(),n.vxM(e.threePrimeCoordinates?2:-1)}}function X(t,i){if(1&t&&(n.qex(0),n.DNE(1,$,1,5,"ng-container")(2,N,3,2,"nz-row",5),n.bVm()),2&t){let e;const o=i.ngIf;n.R7$(),n.vxM("GeneVariant"===(e=o.__typename)?1:"FusionVariant"===e?2:-1)}}function j(t,i){1&t&&n.eu8(0)}function V(t,i){if(1&t&&(n.j41(0,"nz-card",15),n.DNE(1,j,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG(2),o=n.sdS(6);n.Y8G("nzTitle",e.displayTitle?"Representative Variant Coordinates":void 0),n.R7$(),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(3,r,e.cvcCoordinates.coordinates,e.cvcCoordinates))}}function B(t,i){1&t&&n.eu8(0)}function k(t,i){1&t&&n.eu8(0)}function A(t,i){1&t&&n.eu8(0)}function K(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",9),n.DNE(4,B,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",10)(6,"nz-card",11),n.DNE(7,k,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,A,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(3),o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.cvcCoordinates.fivePrimeCoordinates,e.cvcCoordinates)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.cvcCoordinates.fivePrimeStartExonCoordinates,e.cvcCoordinates)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.cvcCoordinates.fivePrimeEndExonCoordinates,e.cvcCoordinates))}}function U(t,i){1&t&&n.eu8(0)}function L(t,i){1&t&&n.eu8(0)}function W(t,i){1&t&&n.eu8(0)}function H(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",13),n.DNE(4,U,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",14)(6,"nz-card",11),n.DNE(7,L,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,W,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(3),o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.cvcCoordinates.threePrimeCoordinates,e.cvcCoordinates)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.cvcCoordinates.threePrimeStartExonCoordinates,e.cvcCoordinates)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.cvcCoordinates.threePrimeEndExonCoordinates,e.cvcCoordinates))}}function J(t,i){if(1&t&&(n.j41(0,"nz-row",5),n.DNE(1,K,10,16,"nz-col",7)(2,H,10,16,"nz-col",7),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.vxM(e.cvcCoordinates.fivePrimeCoordinates?1:-1),n.R7$(),n.vxM(e.cvcCoordinates.threePrimeCoordinates?2:-1)}}function Q(t,i){if(1&t&&(n.qex(0),n.DNE(1,V,2,6,"nz-card",15)(2,J,3,2,"nz-row",5),n.bVm()),2&t){let e;const o=n.XpG();n.R7$(),n.vxM("GeneVariant"===(e=o.cvcCoordinates.__typename)?1:"FusionVariant"===e?2:-1)}}function Z(t,i){1&t&&(n.j41(0,"span",16),n.EFF(1," None specified "),n.k0s())}function q(t,i){if(1&t&&(n.j41(0,"span",16),n.nrm(1,"cvc-empty-revisable",17),n.k0s()),2&t){const e=n.XpG().variant;n.R7$(),n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function w(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.referenceBuild," ")}}function nn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.ensemblVersion," ")}}function tn(t,i){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?transcript="+e.representativeTranscript),n.R7$(),n.SpI(" ",e.representativeTranscript," ")}}function en(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.chromosome," ")}}function on(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.start," ")}}function an(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.stop," ")}}function _n(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"ifEmpty"),n.bVm()),2&t){const e=n.XpG(4).$implicit;n.R7$(),n.SpI(" ",n.i5U(2,1,e.referenceBases,"--")," ")}}function rn(t,i){if(1&t&&(n.j41(0,"nz-descriptions-item",30),n.DNE(1,_n,3,4,"ng-container",18),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.XpG();const o=n.sdS(4);n.R7$(),n.Y8G("ngIf",e.chromosome&&e.start&&e.stop)("ngIfElse",o)}}function cn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"ifEmpty"),n.bVm()),2&t){const e=n.XpG(4).$implicit;n.R7$(),n.SpI(" ",n.i5U(2,1,e.variantBases,"--")," ")}}function sn(t,i){if(1&t&&(n.j41(0,"nz-descriptions-item",31),n.DNE(1,cn,3,4,"ng-container",18),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.XpG();const o=n.sdS(4);n.R7$(),n.Y8G("ngIf",e.chromosome&&e.start&&e.stop)("ngIfElse",o)}}function dn(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions",19)(2,"nz-descriptions-item",20),n.DNE(3,w,2,1,"ng-container",18),n.k0s(),n.j41(4,"nz-descriptions-item",21),n.DNE(5,nn,2,1,"ng-container",18),n.k0s(),n.j41(6,"nz-descriptions-item",22),n.DNE(7,tn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(8,"nz-descriptions-item",24),n.DNE(9,en,2,1,"ng-container",18),n.k0s(),n.j41(10,"nz-descriptions-item",25),n.DNE(11,on,2,1,"ng-container",18),n.k0s(),n.j41(12,"nz-descriptions-item",26),n.DNE(13,an,2,1,"ng-container",18),n.k0s(),n.qex(14),n.DNE(15,rn,2,2,"nz-descriptions-item",27)(16,sn,2,2,"nz-descriptions-item",28),n.bVm(),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).$implicit,o=n.XpG(),_=n.sdS(4);n.R7$(),n.Y8G("nzColumn",n.lJ4(15,G)),n.R7$(2),n.Y8G("ngIf",e.referenceBuild)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.ensemblVersion)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.representativeTranscript)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.chromosome)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.start)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.stop)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.coordinateType==o.coordinateTypes.GeneVariantCoordinate),n.R7$(),n.Y8G("ngIf",e.coordinateType==o.coordinateTypes.GeneVariantCoordinate)}}function ln(t,i){if(1&t&&n.DNE(0,dn,17,16,"ng-container",18),2&t){const e=n.XpG().$implicit,o=n.sdS(1);n.Y8G("ngIf",e.referenceBuild)("ngIfElse",o)}}function Cn(t,i){if(1&t&&n.nrm(0,"cvc-empty-revisable",17),2&t){const e=n.XpG().variant;n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function pn(t,i){if(1&t&&n.DNE(0,q,2,3,"ng-template",null,3,n.C5r)(2,ln,1,2,"ng-container")(3,Cn,1,3,"cvc-empty-revisable",17),2&t){const e=i.$implicit;n.R7$(2),n.vxM(e?2:3)}}function mn(t,i){if(1&t&&(n.j41(0,"span",16),n.nrm(1,"cvc-empty-revisable",17),n.k0s()),2&t){const e=n.XpG().variant;n.R7$(),n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function gn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.exon," ")}}function fn(t,i){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?exon="+e.ensemblId),n.R7$(),n.SpI(" ",e.ensemblId," ")}}function vn(t,i){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?transcript="+e.representativeTranscript),n.R7$(),n.SpI(" ",e.representativeTranscript," ")}}function En(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"enumToTitle"),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,e.strand)," ")}}function Tn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.chromosome," ")}}function xn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.start," ")}}function un(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.stop," ")}}function zn(t,i){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle")),2&t){const e=n.XpG(3).$implicit;n.Lme(" ",n.bMT(1,2,e.exonOffsetDirection),"",e.exonOffset," ")}}function In(t,i){1&t&&n.EFF(0," 0 ")}function Dn(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions",19)(2,"nz-descriptions-item",32),n.DNE(3,gn,2,1,"ng-container",18),n.k0s(),n.j41(4,"nz-descriptions-item",33),n.DNE(5,fn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(6,"nz-descriptions-item",34),n.DNE(7,vn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(8,"nz-descriptions-item",35),n.DNE(9,En,3,3,"ng-container",18),n.k0s(),n.j41(10,"nz-descriptions-item",24),n.DNE(11,Tn,2,1,"ng-container",18),n.k0s(),n.j41(12,"nz-descriptions-item",36),n.DNE(13,xn,2,1,"ng-container",18),n.k0s(),n.j41(14,"nz-descriptions-item",37),n.DNE(15,un,2,1,"ng-container",18),n.k0s(),n.j41(16,"nz-descriptions-item",38),n.DNE(17,zn,2,4)(18,In,1,0),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2).$implicit;n.XpG();const o=n.sdS(4);n.R7$(),n.Y8G("nzColumn",n.lJ4(16,R)),n.R7$(2),n.Y8G("ngIf",e.exon)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.ensemblId)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.representativeTranscript)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.strand)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.chromosome)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.start)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.stop)("ngIfElse",o),n.R7$(2),n.vxM(e.exonOffset&&e.exonOffsetDirection?17:18)}}function Gn(t,i){if(1&t&&n.DNE(0,Dn,19,17,"ng-container",18),2&t){const e=n.XpG().$implicit,o=n.sdS(1);n.Y8G("ngIf",e.referenceBuild)("ngIfElse",o)}}function Rn(t,i){if(1&t&&n.nrm(0,"cvc-empty-revisable",17),2&t){const e=n.XpG().variant;n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function On(t,i){if(1&t&&n.DNE(0,mn,2,3,"ng-template",null,3,n.C5r)(2,Gn,1,2,"ng-container")(3,Rn,1,3,"cvc-empty-revisable",17),2&t){const e=i.$implicit;n.R7$(2),n.vxM(e?2:3)}}let $n=(()=>{class t{constructor(e){this.gql=e,this.displayTitle=!0,this.coordinateTypes=s.c1P}ngOnInit(){if(!this.cvcCoordinates&&!this.cvcVariantId)throw new Error("CvcCoordinatesCard requires valid cvcVariantId or cvcCoordinates Input, none provided.");if(!this.cvcCoordinates&&this.cvcVariantId){this.queryRef=this.gql.watch({variantId:this.cvcVariantId});let e=this.queryRef.valueChanges;this.loading$=e.pipe((0,C.E)("loading"),(0,l.p)(d.kP)),this.variant$=e.pipe((0,C.E)("data","variant"),(0,l.p)(d.kP))}}static#n=this.\u0275fac=function(o){return new(o||t)(n.rXU(s.kWO))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-coordinates-card"]],inputs:{cvcVariantId:"cvcVariantId",cvcCoordinates:"cvcCoordinates",displayTitle:"displayTitle"},decls:9,vars:4,consts:[["noneSpecified",""],["coordinateCard",""],["exonCoordinateCard",""],["noCoord",""],[4,"ngIf"],["nzSpan","24","nzGutter","12"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzSpan","12"],[3,"nzAnimated"],["nzTitle","5' Partner Genomic Coordinates"],["nzTitle","5' Partner Exon Coordinates"],["nzTitle","Start Exon Coordinates"],["nzTitle","End Exon Coordinates"],["nzTitle","3' Partner Genomic Coordinates"],["nzTitle","3' Partner Exon Coordinates"],[3,"nzTitle"],["nz-typography","","nzType","secondary"],["notification","No coordinates specified",3,"reviseFormPath"],[4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Ref. Build"],["nzTitle","Ensembl Version"],["nzTitle","Transcript"],["tooltip","View on Ensembl",3,"href",4,"ngIf","ngIfElse"],["nzTitle","Chr."],["nzTitle","Start"],["nzTitle","Stop"],["nzTitle","Ref. Bases",4,"ngIf"],["nzTitle","Var. Bases",4,"ngIf"],["tooltip","View on Ensembl",3,"href"],["nzTitle","Ref. Bases"],["nzTitle","Var. Bases"],["nzTitle","Exon"],["nzTitle","Exon ID","nzSpan","2"],["nzTitle","Transcript","nzSpan","2"],["nzTitle","Strand"],["nzTitle","Start","nzSpan","2"],["nzTitle","Stop","nzSpan","2"],["nzTitle","Offset"]],template:function(o,_){1&o&&(n.DNE(0,X,3,1,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,Q,3,1,"ng-container",4)(3,Z,2,0,"ng-template",null,0,n.C5r)(5,pn,4,1,"ng-template",null,1,n.C5r)(7,On,4,1,"ng-template",null,2,n.C5r)),2&o&&(n.Y8G("ngIf",_.cvcVariantId&&n.bMT(1,2,_.variant$)),n.R7$(2),n.Y8G("ngIf",_.cvcCoordinates))},dependencies:[p.bT,p.T3,T.cK,m.JZ,m.rE,g.xA,g.gr,f.Di,v.Uq,v.e,c.a,I.Q,u.L9,x.f,D.r],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-tabs-tab-btn{padding-left:5px}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions .ant-descriptions-view{border-left:none;border-right:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:first-child .ant-descriptions-view{border-top:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:last-child .ant-descriptions-view{border-bottom:none}"]})}return t})()},7513:(z,E,a)=>{a.d(E,{m:()=>v});var s=a(177),d=a(5703),l=a(2e3),C=a(7054),n=a(8254),p=a(4917),T=a(7391),m=a(7529),g=a(9541),f=a(3953);let v=(()=>{class c{static#n=this.\u0275fac=function(x){return new(x||c)};static#t=this.\u0275mod=f.$C({type:c});static#e=this.\u0275inj=f.G2t({imports:[s.MD,d.Ti,g.hM,l.WF,T.kT,m.f3,p.i,C.L,n.V]})}return c})()}}]); \ No newline at end of file diff --git a/server/public/8584.83bb6d98d4288ac4.js b/server/public/8584.fa76254f1fc877d6.js similarity index 98% rename from server/public/8584.83bb6d98d4288ac4.js rename to server/public/8584.fa76254f1fc877d6.js index ae4078ece..09be327d8 100644 --- a/server/public/8584.83bb6d98d4288ac4.js +++ b/server/public/8584.fa76254f1fc877d6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8584],{959:(u,p,t)=>{t.d(p,{j:()=>h});var o=t(3953),c=t(3100),g=t(3245),d=t(4247);let h=(()=>{class l{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(r){return new(r||l)};static#e=this.\u0275cmp=o.VBU({type:l,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(r,i){1&r&&(o.j41(0,"cvc-tag-group"),o.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),o.k0s()),2&r&&(o.R7$(),o.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),o.R7$(),o.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,g._,d.L],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})}return l})()},7502:(u,p,t)=>{t.r(p),t.d(p,{MolecularProfilesModule:()=>I});var o=t(177),c=t(1188),g=t(4124),d=t(3062),h=t(7529),l=t(5103),m=t(7391),f=t(513),r=t(7685),i=t(2242),v=t(1236),z=t(7380),P=t(9972),M=t(4917),e=t(3953);let C=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,c.iI,d.ZJ,h.f3,l.Y3,m.kT,f.Zw,r.pc,v.MC,M.i,g.C,P.V,i.i,g.C,z.s]})}return n})();var y=t(1305),O=t(6389),b=t(9765),x=t(8097),E=t(3075);function T(n,R){1&n&&(e.j41(0,"a",13),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Model Docs "),e.k0s())}function D(n,R){1&n&&(e.j41(0,"a",15),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Curation Docs "),e.k0s())}const F=[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=e.VBU({type:n,selectors:[["app-molecular-profiles"]],decls:1,vars:0,template:function(a,L){1&a&&e.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class n{constructor(s){this.viewerService=s,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)(e.rXU(y.q))};static#e=this.\u0275cmp=e.VBU({type:n,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(a,L){1&a&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e.nrm(5,"i",3),e.nI1(6,"entityColor"),e.k0s(),e.j41(7,"nz-col",4)(8,"h2"),e.EFF(9,"Molecular Profiles"),e.k0s(),e.j41(10,"p",5),e.EFF(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.k0s()(),e.j41(12,"nz-col",6)(13,"nz-space",7),e.DNE(14,T,3,0,"a",8)(15,D,3,0,"a",9),e.k0s()()(),e.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),e.nrm(19,"cvc-molecular-profiles-table",12),e.k0s()()()()()),2&a&&(e.R7$(5),e.Y8G("nzTwotoneColor",e.bMT(6,3,"MolecularProfile")),e.R7$(5),e.Y8G("nzEllipsisRows",2),e.R7$(7),e.Y8G("nzSpan",24))},dependencies:[d.WB,d.zR,h.Uq,h.e,l.Dn,m.Di,f.aO,O.c,r.U5,r.Dq,b.n,x.I,E.R],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}"]})}return n})(),data:{breadcrumb:"Home"}},{path:":molecularProfileId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(3236),t.e(326),t.e(262),t.e(5384),t.e(2849),t.e(2076),t.e(3197)]).then(t.bind(t,6200)).then(n=>n.MolecularProfilesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(9611)]).then(t.bind(t,6462)).then(n=>n.MolecularProfilesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let V=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[c.iI.forChild(F),C,c.iI]})}return n})(),I=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,V]})}return n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8584],{959:(u,p,t)=>{t.d(p,{j:()=>h});var o=t(3953),c=t(3100),g=t(3245),d=t(4247);let h=(()=>{class l{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(r){return new(r||l)};static#e=this.\u0275cmp=o.VBU({type:l,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(r,i){1&r&&(o.j41(0,"cvc-tag-group"),o.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),o.k0s()),2&r&&(o.R7$(),o.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),o.R7$(),o.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,g._,d.L],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})}return l})()},7502:(u,p,t)=>{t.r(p),t.d(p,{MolecularProfilesModule:()=>I});var o=t(177),c=t(1188),g=t(4124),d=t(3062),h=t(7529),l=t(5103),m=t(7391),f=t(513),r=t(7685),i=t(2242),v=t(1236),z=t(7380),P=t(9972),M=t(4917),e=t(3953);let C=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,c.iI,d.ZJ,h.f3,l.Y3,m.kT,f.Zw,r.pc,v.MC,M.i,g.C,P.V,i.i,g.C,z.s]})}return n})();var y=t(1305),O=t(6389),b=t(9765),x=t(8097),E=t(3075);function T(n,R){1&n&&(e.j41(0,"a",13),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Model Docs "),e.k0s())}function D(n,R){1&n&&(e.j41(0,"a",15),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Curation Docs "),e.k0s())}const F=[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=e.VBU({type:n,selectors:[["app-molecular-profiles"]],decls:1,vars:0,template:function(a,L){1&a&&e.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class n{constructor(s){this.viewerService=s,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)(e.rXU(y.q))};static#e=this.\u0275cmp=e.VBU({type:n,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(a,L){1&a&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e.nrm(5,"i",3),e.nI1(6,"entityColor"),e.k0s(),e.j41(7,"nz-col",4)(8,"h2"),e.EFF(9,"Molecular Profiles"),e.k0s(),e.j41(10,"p",5),e.EFF(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.k0s()(),e.j41(12,"nz-col",6)(13,"nz-space",7),e.DNE(14,T,3,0,"a",8)(15,D,3,0,"a",9),e.k0s()()(),e.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),e.nrm(19,"cvc-molecular-profiles-table",12),e.k0s()()()()()),2&a&&(e.R7$(5),e.Y8G("nzTwotoneColor",e.bMT(6,3,"MolecularProfile")),e.R7$(5),e.Y8G("nzEllipsisRows",2),e.R7$(7),e.Y8G("nzSpan",24))},dependencies:[d.WB,d.zR,h.Uq,h.e,l.Dn,m.Di,f.aO,O.c,r.U5,r.Dq,b.n,x.I,E.R],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}"]})}return n})(),data:{breadcrumb:"Home"}},{path:":molecularProfileId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(3236),t.e(326),t.e(262),t.e(5384),t.e(5958),t.e(7038),t.e(9373)]).then(t.bind(t,6544)).then(n=>n.MolecularProfilesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(9611)]).then(t.bind(t,6462)).then(n=>n.MolecularProfilesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let V=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[c.iI.forChild(F),C,c.iI]})}return n})(),I=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,V]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/8997.653e5c80735d2d6e.js b/server/public/8997.653e5c80735d2d6e.js deleted file mode 100644 index bc357b001..000000000 --- a/server/public/8997.653e5c80735d2d6e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8997],{6404:(_,c,n)=>{n.d(c,{v:()=>v});var u=n(177),d=n(8927),p=n(513),f=n(2229),i=n(776),C=n(5316),m=n(3953);let v=(()=>{class l{static#e=this.\u0275fac=function(h){return new(h||l)};static#t=this.\u0275mod=m.$C({type:l});static#r=this.\u0275inj=m.G2t({imports:[u.MD,d.PQ,p.Zw,f.m,C.P,i.s]})}return l})()},2276:(_,c,n)=>{n.d(c,{v:()=>y});var u=n(1635),d=n(9417),p=n(9894),f=n(1226),i=n(5741);const E=(0,n(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Variant"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,md:12,lg:8},{xs:24,md:12,lg:8},{xs:24,lg:8}]}},fieldGroup:[{key:"featureId",type:"feature-select",props:{description:"Enter an Entrez Gene for this Variant",required:!0,canChangeFeatureType:!1}},{key:"name",type:"base-input",props:{placeholder:"Enter a name for this Variant",description:"Enter the name of the Variant according to the Variant Curation SOP",label:"Name",required:!0,rows:1}},{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Variant",placeholder:"Enter Alias and hit return"}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,lg:12,xl:6,xxl:8},{xs:24,lg:12,xl:6,xxl:8},{xs:24,xl:12,xxl:8}]}},fieldGroup:[{key:"hgvsDescriptions",type:"tag-multi-input",props:{label:"HGVS Descriptions",description:"Enter any HGVS nomenclature descriptions of this Variant",tooltip:"Human Genome Variation Society nomenclature descriptions",placeholder:"Enter HGVS and hit return"}},{key:"variantTypeIds",type:"variant-type-multi-select"},{key:"clinvarIds",type:"clinvar-multi-input",wrappers:["form-field"],props:{label:"ClinVar IDs"}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:"Primary (5') Coordinates",size:"small"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,md:12,lg:8,xxl:6}}},fieldGroup:[{key:"referenceBuild",type:"reference-build-select"},{key:"ensemblVersion",type:"base-input",validators:{nccnVersionNumber:{expression:e=>!e.value||/^\d{2,3}$/.test(e.value),message:(e,s)=>`"${s.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:"base-input",validators:{nccnVersionNumber:{expression:e=>!e.value||/^[ACTG\\]+$/.test(e.value),message:(e,s)=>`"${s.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:"base-input",validators:{nccnVersionNumber:{expression:e=>!e.value||/^[ACTG\\]+$/.test(e.value),message:(e,s)=>`"${s.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:"base-select",props:{label:"Chromosome",options:i.Kd,description:"Specify the chromosome in which this variant occurs (e.g. 17)."}},{key:"start",type:"base-input",validators:{isNumeric:{expression:e=>!e.value||/^\d+$/.test(e.value),message:(e,s)=>"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:"base-input",validators:{isNumeric:{expression:e=>!e.value||/^\d+$/.test(e.value),message:(e,s)=>"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:"base-input",props:{label:"Representative Transcript",description:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}}]}]},{wrappers:["form-card"],props:{formCardOptions:{title:"Secondary (3') Coordinates",size:"small"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,md:12,lg:8,xxl:6}}},fieldGroup:[{key:"chromosome2",type:"base-select",props:{label:"Chromosome",options:i.Kd,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:"base-input",validators:{isNumeric:{expression:e=>!e.value||/^\d+$/.test(e.value),message:(e,s)=>"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:"base-input",validators:{isNumeric:{expression:e=>!e.value||/^\d+$/.test(e.value),message:(e,s)=>"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:"base-input",props:{label:"Representative Transcript",description:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."}}]}]}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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",align:"right"}}]}]}],{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,featureId:void 0,referenceBases:void 0,variantBases:void 0},comment:void 0,organizationId:void 0});let G=e=>"NONE FOUND"==e[0]?{noneFound:!0}:"N/A"==e[0]?{notApplicable:!0}:{ids:e.map(s=>+s)};var r=n(3953),V=n(9145),T=n(4222),R=n(177),x=n(8927),S=n(8524),B=n(8721);const F=()=>({});function D(e,s){if(1&e&&(r.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),r.j41(1,"a",4),r.EFF(2,"here."),r.k0s()),2&e){const t=r.XpG();r.R7$(),r.FS9("href",t.url,r.B4B)}}function M(e,s){if(1&e){const t=r.RV6();r.j41(0,"form",5),r.bIt("ngSubmit",function(){r.eBV(t);const a=r.XpG();return r.Njj(a.onSubmit(a.model))}),r.j41(1,"formly-form",6),r.bIt("modelChange",function(a){r.eBV(t);const b=r.XpG();return r.Njj(b.model=a)}),r.k0s()()}if(2&e){const t=r.XpG();r.Y8G("formGroup",t.form),r.R7$(),r.Y8G("form",t.form)("fields",t.fields)("model",t.model)("options",r.lJ4(5,F))}}function O(e,s){1&e&&r.EFF(0," Loading Variant... ")}let y=class g{constructor(s,t,o,a){this.revisableFieldsGQL=s,this.submitRevisionsGQL=t,this.networkErrorService=o,this.cdr=a,this.form=new d.J3({}),this.fields=E,this.reviseVariantMutator=new f.E(o)}ngOnInit(){this.url=`/variants/${this.variantId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).pipe((0,p.s)(this)).subscribe({next:({data:{variant:s}})=>{var e;s&&"GeneVariant"==s.__typename&&(this.model={id:s.id,fields:(e=s,{name:e.name,aliases:e.variantAliases,hgvsDescriptions:e.hgvsDescriptions,clinvarIds:e.clinvarIds,variantTypeIds:e.variantTypes.map(s=>s.id),referenceBuild:e.referenceBuild,ensemblVersion:e.ensemblVersion,chromosome:e.primaryCoordinates?.chromosome,start:e.primaryCoordinates?.start,stop:e.primaryCoordinates?.stop,representativeTranscript:e.primaryCoordinates?.representativeTranscript,chromosome2:e.secondaryCoordinates?.chromosome,start2:e.secondaryCoordinates?.start,stop2:e.secondaryCoordinates?.stop,representativeTranscript2:e.secondaryCoordinates?.representativeTranscript,featureId:e.feature.id,referenceBases:e.referenceBases,variantBases:e.variantBases})},this.cdr.detectChanges())},error:s=>{console.error("Error retrieving Variant."),console.error(s)},complete:()=>{}})}onSubmit(s){if(!this.variantId)return;let t=function h(e,s){const t=s.fields;if(s.comment&&t.name&&t.featureId)return{id:e,fields:{name:t.name,aliases:t.aliases||[],hgvsDescriptions:t.hgvsDescriptions||[],clinvarIds:G(t.clinvarIds||[]),variantTypeIds:t.variantTypeIds||[],referenceBuild:i.pz(t.referenceBuild),ensemblVersion:i.pz(t.ensemblVersion?+t.ensemblVersion:void 0),primaryCoordinates:{chromosome:t.chromosome,start:t.start?+t.start:void 0,stop:t.stop?+t.stop:void 0,representativeTranscript:t.representativeTranscript},secondaryCoordinates:{chromosome:t.chromosome2,start:t.start2?+t.start2:void 0,stop:t.stop2?+t.stop2:void 0,representativeTranscript:t.representativeTranscript2},featureId:t.featureId,referenceBases:i.q2(t.referenceBases),variantBases:i.q2(t.variantBases)},organizationId:s.organizationId,comment:s.comment}}(this.variantId,s);t&&(this.mutationState=this.reviseVariantMutator.mutate(this.submitRevisionsGQL,{input:t}))}static#e=this.\u0275fac=function(t){return new(t||g)(r.rXU(V.$Pl),r.rXU(V.QVS),r.rXU(T.N),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:g,selectors:[["cvc-gene-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Variant",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(t,o){if(1&t&&(r.j41(0,"cvc-form-submission-status-display",2),r.DNE(1,D,3,1,"ng-template",null,0,r.C5r)(3,M,2,6,"form",3)(4,O,1,0,"ng-template",null,1,r.C5r),r.k0s()),2&t){const a=r.sdS(2),b=r.sdS(5);r.Y8G("redirectUrl",o.url)("mutationState",o.mutationState)("successMessage",a),r.R7$(3),r.Y8G("ngIf",o.model)("ngIfElse",b)}},dependencies:[R.bT,x.CA,d.qT,d.cb,d.j4,S.aF,B.G],encapsulation:2,changeDetection:0})};y=(0,u.Cg)([(0,p.d)()],y)}}]); \ No newline at end of file diff --git a/server/public/9373.1426b85d2fdfe1ad.js b/server/public/9373.1426b85d2fdfe1ad.js new file mode 100644 index 000000000..6d9eda17b --- /dev/null +++ b/server/public/9373.1426b85d2fdfe1ad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9373],{7292:(ue,$,i)=>{i.d($,{H:()=>_});var X=i(3953);let _=(()=>{class z{transform(h,f="display-string"){return void 0===h?"":"display-string"===f?function l(z){switch(z){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return z}}(h):`civic-${h.replace(/_/g,"").toLowerCase()}`}static#e=this.\u0275fac=function(f){return new(f||z)};static#n=this.\u0275pipe=X.EJ8({name:"therapyInteractionEnumDisplay",type:z,pure:!0})}return z})()},6544:(ue,$,i)=>{i.r($),i.d($,{MolecularProfilesDetailModule:()=>Fa});var l=i(177),X=i(4124),_=i(7685),z=i(1896),T=i(3062),h=i(513),f=i(5103),fe=i(1532),m=i(7529),_e=i(8103),ge=i(5736),p=i(1188),de=i(4873),e=i(3953);let ve=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,de.A]})}return n})();var d=i(9145),ze=i(664);let he=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.molecularProfileId,entityType:d.T31.MolecularProfile}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-comment-list",0),2&a&&e.Y8G("commentable",r.commentable)},dependencies:[ze.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var K=i(9172),L=i(6977),x=i(4608),Z=i(1413),q=i(4412),ee=i(1305),I=i(1774),ne=i(6389),te=i(5930),D=i(3617),ae=i(1236),Ce=i(6269),Pe=i(9945),ye=i(8821),Me=i(7428),Te=i(9765),Ge=i(5269),E=i(959),xe=i(4126),Ie=i(1635),Fe=i(1226),oe=i(6354),ie=i(9894),be=i(4222),y=i(9417),R=i(8927),re=i(2983),v=i(5703),le=i(5154),A=i(1997),$e=i(1939),De=i(5566);function Ee(n,o){1&n&&e.nrm(0,"nz-alert",18)}function Re(n,o){1&n&&(e.qex(0),e.DNE(1,Ee,1,0,"nz-alert",17),e.bVm())}function Se(n,o){if(1&n&&(e.qex(0),e.DNE(1,Re,2,0,"ng-container",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t)}}function Ve(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",19),e.bIt("nzOnClose",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onSuccessBannerClose())}),e.k0s()}}function Ye(n,o){if(1&n&&e.nrm(0,"nz-alert",20),2&n){e.XpG();const t=e.sdS(8);e.Y8G("nzDescription",t)}}function je(n,o){if(1&n&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Ne(n,o){if(1&n&&(e.j41(0,"ul"),e.DNE(1,je,2,1,"li",21),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.errorMessages)}}function Oe(n,o){}function Xe(n,o){1&n&&e.DNE(0,Oe,0,0,"ng-template")}function Le(n,o){if(1&n&&(e.qex(0),e.DNE(1,Xe,1,0,null,23),e.bVm()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Ae(n,o){}function we(n,o){1&n&&e.DNE(0,Ae,0,0,"ng-template")}function ke(n,o){if(1&n&&(e.j41(0,"span",24),e.DNE(1,we,1,0,null,23),e.k0s()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Ue(n,o){if(1&n&&(e.j41(0,"button",25),e.EFF(1," Deprecate Molecular Profile "),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG();e.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10&&t.signedIn&&t.isEditor&&a.reason))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}function Be(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-form-buttons"),e.DNE(2,Le,2,1,"ng-container",22)(3,ke,2,1,"ng-template",null,1,e.C5r)(5,Ue,2,3,"ng-template",null,2,e.C5r),e.k0s(),e.bVm()),2&n){const t=o.ngrxLet,a=e.sdS(4);e.R7$(2),e.Y8G("ngIf",t.signedIn&&t.isEditor)("ngIfElse",a)}}let w=class H{constructor(o,t,a,r,c,s){this.deprecateComplexMolecularProfileGQL=o,this.molecularProfileDetailGQL=t,this.evidenceCountsForMolecularProfileGQL=a,this.networkErrorService=r,this.route=c,this.viewerService=s,this.destroy$=new Z.B,this.success=!1,this.errorMessages=[],this.mutationLoading$=new q.t(!1),this.comment="",this.deprecateComplexMolecularProfileMutator=new Fe.E(r),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,ie.s)(this)).subscribe(t=>{this.selectedOrg=t.mostRecentOrg}),void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile id into deprecate complex molecular profile component");let o=this.evidenceCountsForMolecularProfileGQL.fetch({molecularProfileId:this.molecularProfileId});this.hasEvidence$=o.pipe((0,oe.T)(({data:t})=>t.molecularProfile.evidenceCountsByStatus.submittedCount+t.molecularProfile.evidenceCountsByStatus.acceptedCount>0)),this.isLoading$=o.pipe((0,oe.T)(({loading:t})=>t))}deprecateMolecularProfile(){if(this.errorMessages=[],this.reason&&this.comment&&this.molecularProfileId){let o={deprecationReason:this.reason,comment:this.comment,molecularProfileId:this.molecularProfileId,organizationId:this.selectedOrg?.id};this.mutationLoading$.next(!0);let t=this.deprecateComplexMolecularProfileMutator.mutate(this.deprecateComplexMolecularProfileGQL,o,{refetchQueries:[{query:this.molecularProfileDetailGQL.document,variables:{molecularProfileId:this.molecularProfileId}}]});t.submitSuccess$.pipe((0,L.Q)(this.destroy$)).subscribe(a=>{a&&(this.success=!0,this.comment="",this.mutationLoading$.next(!1))}),t.submitError$.pipe((0,L.Q)(this.destroy$)).subscribe(a=>{a.length>0&&(this.errorMessages=a,this.mutationLoading$.next(!1))})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(t){return new(t||H)(e.rXU(d.HLX),e.rXU(d.Tj8),e.rXU(d.WAS),e.rXU(be.N),e.rXU(p.nX),e.rXU(ee.q))};static#n=this.\u0275cmp=e.VBU({type:H,selectors:[["cvc-complex-molecular-profile-deprecate-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:21,vars:12,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate Molecular Profile."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(t,a){if(1&t){const r=e.RV6();e.j41(0,"nz-spin",3),e.nI1(1,"ngrxPush"),e.j41(2,"nz-space",4),e.DNE(3,Se,2,1,"ng-container",5),e.k0s()(),e.j41(4,"nz-card",6),e.DNE(5,Ve,1,0,"nz-alert",7)(6,Ye,1,1,"nz-alert",8)(7,Ne,2,1,"ng-template",null,0,e.C5r),e.j41(9,"nz-form-item")(10,"nz-select",9),e.mxI("ngModelChange",function(s){return e.eBV(r),e.DH7(a.reason,s)||(a.reason=s),e.Njj(s)}),e.nrm(11,"nz-option",10)(12,"nz-option",11)(13,"nz-option",12),e.k0s()(),e.j41(14,"form",13),e.bIt("ngSubmit",function(){return e.eBV(r),e.Njj(a.deprecateMolecularProfile())}),e.j41(15,"cvc-comment-input-form",14),e.mxI("commentChange",function(s){return e.eBV(r),e.DH7(a.comment,s)||(a.comment=s),e.Njj(s)}),e.k0s(),e.j41(16,"nz-spin",15),e.nI1(17,"ngrxPush"),e.j41(18,"nz-form-item")(19,"nz-form-control"),e.DNE(20,Be,7,2,"ng-container",5),e.k0s()()()()()}2&t&&(e.Y8G("nzSpinning",e.bMT(1,8,a.isLoading$)),e.R7$(3),e.Y8G("ngrxLet",a.hasEvidence$),e.R7$(2),e.Y8G("ngIf",a.success),e.R7$(),e.Y8G("ngIf",a.errorMessages.length>0),e.R7$(4),e.R50("ngModel",a.reason),e.R7$(5),e.R50("comment",a.comment),e.R7$(),e.Y8G("nzSpinning",e.bMT(17,10,a.mutationLoading$)),e.R7$(4),e.Y8G("ngrxLet",a.viewer$))},dependencies:[l.Sq,l.bT,l.T3,y.qT,y.BC,y.cb,y.vS,y.cV,I.Nj,m.Uq,m.e,R.CA,R.Ls,R.zS,D.Y,h.aO,ne.c,te.p,re.a,v.cK,_.U5,_.Dq,le.LH,A.ld,A.WI,$e.l,De.K,I.L9],encapsulation:2,changeDetection:0})};w=(0,Ie.Cg)([(0,ie.d)()],w);var Je=i(1845);const Qe=n=>({flagged:n}),We=n=>({molecularProfileId:n}),He=n=>["/molecular-profiles",n,"revise"],Ke=()=>[];function Ze(n,o){if(1&n&&(e.j41(0,"button",17),e.nrm(1,"i",18),e.EFF(2," Add Evidence For This Molecular Profile "),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,We,t.id))}}function qe(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ze,3,3,"button",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function en(n,o){if(1&n&&e.DNE(0,qe,2,1,"ng-container",12),2&n){const t=e.XpG(2);e.Y8G("ngrxLet",t.viewer$)}}function nn(n,o){1&n&&(e.j41(0,"span"),e.EFF(1,",\xa0"),e.k0s())}function tn(n,o){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.DNE(2,nn,2,0,"span",6),e.k0s()),2&n){const t=o.$implicit,a=o.last;e.R7$(),e.SpI(" ",t,""),e.R7$(),e.Y8G("ngIf",!a)}}function an(n,o){if(1&n&&(e.j41(0,"nz-page-header-subtitle"),e.DNE(1,tn,3,2,"span",19),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function on(n,o){if(1&n&&(e.j41(0,"button",24,3),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),a=e.XpG(4).ngIf;e.Y8G("routerLink",e.eq3(2,He,a.id))("nzType",t.isActive?"primary":"default")}}function rn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,on,3,4,"button",23),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function ln(n,o){if(1&n&&(e.j41(0,"button",26,3),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function cn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,ln,3,1,"button",25),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function sn(n,o){if(1&n&&(e.j41(0,"div",29),e.nrm(1,"cvc-complex-molecular-profile-deprecate-form",30),e.k0s()),2&n){const t=e.XpG(5).ngIf;e.R7$(),e.Y8G("molecularProfileId",t.id)}}function pn(n,o){if(1&n&&(e.j41(0,"button",28),e.EFF(1," Deprecate "),e.DNE(2,sn,2,1,"ng-template",null,4,e.C5r),e.k0s()),2&n){const t=e.sdS(3),a=e.XpG(4).ngIf;e.Y8G("disabled",a.deprecated||1==a.variants.length)("nzPopoverContent",t)}}function mn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,pn,4,2,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.isEditor)}}function un(n,o){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,a=e.XpG(3);e.Y8G("viewer",t)("subscribableId",a.subscribable.id)}}function fn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,un,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.signedIn&&a.subscribable)}}function _n(n,o){1&n&&(e.j41(0,"nz-space",21),e.DNE(1,rn,2,1,"span",22)(2,cn,2,1,"span",22)(3,mn,2,1,"span",22)(4,fn,2,1,"span",22),e.k0s())}function gn(n,o){if(1&n&&(e.j41(0,"nz-page-header-extra"),e.DNE(1,_n,5,0,"nz-space",20),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngrxLet",t.viewer$)}}function dn(n,o){if(1&n&&e.nrm(0,"nz-alert",33),2&n){e.XpG();const t=e.sdS(15);e.Y8G("nzMessage",t)}}function vn(n,o){if(1&n&&e.nrm(0,"cvc-comment-body",37),2&n){const t=e.XpG().$implicit;e.Y8G("commentBodySegments",t.deprecationActivity.parsedNote)}}function zn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"br")(2,"cvc-feature-variant-tag",35),e.EFF(3),e.nI1(4,"enumToTitle"),e.DNE(5,vn,1,1,"cvc-comment-body",36),e.bVm()),2&n){const t=o.$implicit;e.R7$(2),e.Y8G("variant",t),e.R7$(),e.SpI(" ",e.bMT(4,3,t.deprecationReason),". "),e.R7$(2),e.Y8G("ngIf",t.deprecationActivity)}}function hn(n,o){if(1&n&&(e.qex(0),e.EFF(1," This Molecular Profile has been deprecated because one or more of its underlying variants are deprecated "),e.DNE(2,zn,6,5,"ng-container",19),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.Y8G("ngForOf",t.deprecatedVariants)}}function Cn(n,o){if(1&n&&(e.EFF(0),e.nI1(1,"enumToTitle"),e.nrm(2,"cvc-comment-body",37)),2&n){const t=e.XpG(2).ngIf;e.SpI(" This Molecular Profile has been deprecated for reason: ",e.bMT(1,2,t.deprecationReason),". "),e.R7$(2),e.Y8G("commentBodySegments",(null==t.complexMolecularProfileDeprecationActivity?null:t.complexMolecularProfileDeprecationActivity.parsedNote)||e.lJ4(4,Ke))}}function Pn(n,o){if(1&n&&e.DNE(0,hn,3,1,"ng-container",34)(1,Cn,3,5,"ng-template",null,5,e.C5r),2&n){const t=e.sdS(2),a=e.XpG().ngIf;e.Y8G("ngIf","VARIANT_DEPRECATED"==a.deprecationReason)("ngIfElse",t)}}function yn(n,o){if(1&n&&(e.j41(0,"nz-col",38),e.nrm(1,"cvc-contributor-avatars",39),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function Mn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",7),e.DNE(2,en,1,1,"ng-template",null,0,e.C5r),e.j41(4,"div",8),e.nI1(5,"ngrxPush"),e.j41(6,"nz-page-header",9)(7,"nz-page-header-title",10),e.nrm(8,"i",11),e.EFF(9),e.k0s(),e.DNE(10,an,2,1,"nz-page-header-subtitle",6)(11,gn,2,1,"nz-page-header-extra",12),e.j41(12,"nz-page-header-content"),e.DNE(13,dn,1,1,"nz-alert",13)(14,Pn,3,2,"ng-template",null,1,e.C5r),e.j41(16,"cvc-tab-navigation",14),e.nI1(17,"ngrxPush"),e.DNE(18,yn,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.j41(20,"div",15),e.nrm(21,"router-outlet"),e.k0s()()()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(3),r=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("actionsTpl",a),e.R7$(3),e.Y8G("flags",e.bMT(5,9,r.flagsTotal$)),e.R7$(3),e.Y8G("ngClass",e.eq3(13,Qe,t.flags.totalCount>0)),e.R7$(2),e.SpI(" ",t.name," "),e.R7$(),e.Y8G("ngIf",t.molecularProfileAliases.length>0),e.R7$(),e.Y8G("ngrxLet",r.viewer$),e.R7$(2),e.Y8G("ngIf",t.deprecated),e.R7$(3),e.Y8G("tabs",e.bMT(17,11,r.tabs$))}}let Tn=(()=>{class n{constructor(t,a,r){this.gql=t,this.viewerService=a,this.route=r,this.destroy$=new Z.B,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.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({mpId:+c.molecularProfileId});let s=this.queryRef.valueChanges;this.loading$=s.pipe((0,x.E)("loading"),(0,K.Z)(!0)),this.molecularProfile$=s.pipe((0,x.E)("data","molecularProfile")),this.flagsTotal$=this.molecularProfile$.pipe((0,x.E)("flags","totalCount")),this.molecularProfile$.pipe((0,L.Q)(this.destroy$)).subscribe({next:b=>{this.tabs$.next(this.defaultTabs.map(u=>"Revisions"===u.tabLabel?{badgeCount:b?.revisions.totalCount,...u}:"Flags"===u.tabLabel?{badgeCount:b?.flags.totalCount,...u}:"Comments"===u.tabLabel?{badgeCount:b?.comments.totalCount,badgeColor:"#cccccc",...u}:u))}}),this.subscribable={id:+c.molecularProfileId,entityType:d.V9U.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(d.Tj8),e.rXU(ee.q),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["molecular-profiles-detail"]],decls:2,vars:3,consts:[["mpActions",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateMolecularProfileForm",""],["directDeprecationTemplate",""],[4,"ngIf"],[3,"displayName","actionsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:molecularprofile"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[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"],["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 Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateMolecularProfile"],[3,"molecularProfileId"],["typename","MolecularProfile",3,"viewer","subscribableId",4,"ngIf"],["typename","MolecularProfile",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[4,"ngIf","ngIfElse"],[3,"variant"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,r){1&a&&(e.DNE(0,Mn,22,15,"ng-container",6),e.nI1(1,"ngrxPush")),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.YU,l.Sq,l.bT,p.n3,p.Wk,p.wQ,I.Nj,h.aO,ne.c,te.p,f.Dn,T.WB,T.k9,T.CO,T.zR,T.ov,_.U5,_.Dq,m.Uq,D.Y,ae.L_,Ce.f,Pe.N,ye.H,Me.v,Te.n,Ge.o,E.j,xe.p,w,I.L9,Je.f],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}"]})}return n})();var Gn=i(326);let xn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Gn.p]})}return n})();var In=i(9543);let Fn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.molecularProfileId,entityType:d.V9U.MolecularProfile}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-event-feed",0),2&a&&e.Y8G("subscribable",r.subscribable)},dependencies:[In.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var bn=i(7268),$n=i(1912);let Dn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,m.f3,v.Ti,_.pc,$n.i3,f.Y3,bn.G]})}return n})();var En=i(4097);let Rn=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:d.lD4.MolecularProfile,id:+this.route.snapshot.params.molecularProfileId}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-flag-list-and-filter",0),2&a&&e.Y8G("flaggable",r.flaggable)},dependencies:[En.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Sn=i(6371);let Vn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Sn.O]})}return n})();var Yn=i(4055);let jn=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.subject={id:+a.molecularProfileId,entityType:d.BlQ.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(a,r){1&a&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&e.Y8G("moderated",r.subject)},dependencies:[Yn.B],encapsulation:2})}return n})();var G=i(2142),Nn=i(1209),g=i(2e3),S=i(5493),V=i(7054),Y=i(8254),On=i(4531),Xn=i(7660),C=i(7391),F=i(4917),Ln=i(2839),P=i(5699),An=i(1448),wn=i(7556),k=i(7051),j=i(996),M=i(4696),U=i(7513),B=i(6912),N=i(7086);let kn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,P.T,f.Y3,m.f3,g.WF,C.kT,v.Ti,M.GB,_.pc,F.i,k.U,B.l,Y.V,G.x,S.G,V.L,G.x,j.o,U.m,N.C]})}return n})();var Un=i(9354),J=i(3075),ce=i(6719),O=i(7855),Q=i(6073),W=i(5473);const Bn=()=>[8,16],Jn=()=>[8,8];function Qn(n,o){if(1&n&&(e.nrm(0,"i",15),e.nI1(1,"entityColor"),e.j41(2,"span",16),e.EFF(3),e.k0s(),e.j41(4,"span",17),e.EFF(5),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,3,"Variant")),e.R7$(3),e.SpI(" ",t.variant.feature.name," "),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function Wn(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Hn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Wn,2,1,"nz-tag",18),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Kn(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function Zn(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",20),2&n&&e.Y8G("variantType",o.$implicit)}function qn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Zn,1,1,"cvc-variant-type-tag",19),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function et(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function nt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",23),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function tt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",24),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function at(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",21)(1,"cvc-tag-list"),e.DNE(2,nt,2,2,"ng-container",18)(3,tt,3,3,"ng-container",22),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function ot(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-ncit-details",25),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ncitDetails",t.variant.ncitDetails)}}function it(n,o){1&n&&(e.j41(0,"nz-col",6)(1,"nz-card",26),e.nrm(2,"cvc-empty-revisable",27),e.k0s()()),2&n&&e.Y8G("nzSpan",24)}function rt(n,o){if(1&n&&(e.j41(0,"nz-card",4),e.DNE(1,Qn,6,5,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",5)(4,"nz-col",6)(5,"nz-row",5)(6,"nz-col",7)(7,"nz-descriptions",8)(8,"nz-descriptions-item",9),e.nrm(9,"cvc-feature-variant-tag",10),e.k0s(),e.j41(10,"nz-descriptions-item",11),e.DNE(11,Hn,3,1,"ng-container",12)(12,Kn,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",13),e.DNE(15,qn,3,1,"ng-container",12)(16,et,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(18,at,4,3,"nz-descriptions-item",14),e.k0s()()()(),e.j41(19,"nz-col",6),e.DNE(20,ot,2,1,"ng-container",12)(21,it,3,1,"ng-template",null,3,e.C5r),e.k0s()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.sdS(22),s=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(18,Bn)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(19,Jn)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",s.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",s.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",s.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",s.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",s.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("ngIf",s.variant.ncitId)("ngIfElse",c)}}let se=(()=>{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");if("FactorVariant"!==this.variant.__typename)throw new Error("This card is for FactorVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-factor-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noNcit",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Factor Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography","","nzType","secondary"],["nz-typography",""],[4,"ngFor","ngForOf"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(a,r){1&a&&e.DNE(0,rt,23,20,"nz-card",4),2&a&&e.vxM("FactorVariant"==r.variant.__typename?0:-1)},dependencies:[l.MD,l.Sq,l.bT,p.iI,p.Wk,P.T,P.s,f.Y3,f.Dn,m.f3,m.Uq,m.e,g.WF,g.xA,g.gr,C.kT,C.Di,v.Ti,v.cK,M.GB,_.pc,F.i,J.R,k.U,B.l,Y.V,ce.Q,G.x,O.M,S.G,Q.h,V.L,j.o,W.z,U.m,N.C,E.j,Un.e],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})(),lt=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,P.T,f.Y3,m.f3,g.WF,C.kT,v.Ti,M.GB,_.pc,F.i,k.U,B.l,Y.V,G.x,S.G,V.L,G.x,j.o,U.m,N.C]})}return n})(),ct=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,_.pc,m.f3,g.WF,v.Ti,C.kT,f.Y3,P.T,wn.F,F.i,On.C,Xn.u,G.x,Ln.m,Nn.k,S.G,V.L,Y.V,An.B,kn,se,lt]})}return n})();var st=i(2033),pt=i(8199),mt=i(4441),ut=i(6408),ft=i(9062),_t=i(9973),gt=i(7679),pe=i(9481);const dt=()=>[8,16],vt=()=>[8,8];function zt(n,o){if(1&n&&(e.nrm(0,"i",23),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function ht(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Ct(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,ht,2,1,"nz-tag",24),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Pt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function yt(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",27),2&n&&e.Y8G("variantType",o.$implicit)}function Mt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,yt,1,1,"cvc-variant-type-tag",26),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function Tt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function Gt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",28),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html"),e.R7$(),e.SpI(" ",t.variant.alleleRegistryId," ")}}function xt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function It(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",29),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+t),e.R7$(),e.SpI(" ",t," ")}}function Ft(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,It,3,2,"ng-container",24),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.variant.clinvarIds)}}function bt(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ft,2,1,"cvc-tag-list",15),e.bVm()),2&n){e.XpG();const t=e.sdS(25),a=e.XpG();e.R7$(),e.Y8G("ngIf","N/A"!==a.variant.clinvarIds[0])("ngIfElse",t)}}function $t(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"N/A"),e.k0s())}function Dt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function Et(n,o){if(1&n&&(e.j41(0,"cvc-link-tag",30),e.EFF(1," Variant Report "),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.variant.openCravatUrl)}}function Rt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"Allele Registry ID required."),e.k0s())}function St(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",33),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function Vt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",34),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function Yt(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",31)(1,"cvc-tag-list"),e.DNE(2,St,2,2,"ng-container",24)(3,Vt,3,3,"ng-container",32),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function jt(n,o){if(1&n&&(e.j41(0,"nz-card",7),e.DNE(1,zt,3,4,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",8)(4,"nz-col",9)(5,"nz-row",8)(6,"nz-col",10)(7,"nz-descriptions",11)(8,"nz-descriptions-item",12),e.nrm(9,"cvc-feature-variant-tag",13),e.k0s(),e.j41(10,"nz-descriptions-item",14),e.DNE(11,Ct,3,1,"ng-container",15)(12,Pt,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",16),e.DNE(15,Mt,3,1,"ng-container",15)(16,Tt,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(18,"nz-descriptions-item",17),e.DNE(19,Gt,3,2,"ng-container",15)(20,xt,2,0,"ng-template",null,3,e.C5r),e.k0s(),e.j41(22,"nz-descriptions-item",16),e.DNE(23,bt,2,2,"ng-container",15)(24,$t,2,0,"ng-template",null,4,e.C5r)(26,Dt,2,0,"ng-template",null,5,e.C5r),e.k0s(),e.j41(28,"nz-descriptions-item",18),e.DNE(29,Et,2,1,"cvc-link-tag",19)(30,Rt,2,0,"ng-template",null,6,e.C5r),e.k0s(),e.DNE(32,Yt,4,3,"nz-descriptions-item",20),e.k0s()(),e.j41(33,"nz-col",9)(34,"nz-collapse")(35,"nz-collapse-panel",21),e.nrm(36,"cvc-coordinates-card",22),e.k0s()()()()()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.sdS(21),s=e.sdS(27),b=e.sdS(31),u=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(28,dt)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(29,vt)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",u.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",u.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",u.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",u.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",u.variant.alleleRegistryId)("ngIfElse",c),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",u.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),e.R7$(),e.Y8G("ngIf",u.variant.clinvarIds.length>0)("ngIfElse",s),e.R7$(5),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",u.variant.openCravatUrl)("ngIfElse",b),e.R7$(3),e.Y8G("ngIf",u.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("displayTitle",!1)("cvcCoordinates",u.variant)}}let Nt=(()=>{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");if("GeneVariant"!==this.variant.__typename)throw new Error("This card is for GeneVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-gene-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noCravat",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Gene Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Allele Registry ID",3,"nzSpan"],["nzTitle","OpenCRAVAT",3,"nzSpan"],["tooltip","View on OpenCRAVAT",3,"href",4,"ngIf","ngIfElse"],["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(a,r){1&a&&e.DNE(0,jt,37,30,"nz-card",7),2&a&&e.vxM("GeneVariant"==r.variant.__typename?0:-1)},dependencies:[l.Sq,l.bT,p.Wk,P.s,f.Dn,m.Uq,m.e,g.xA,g.gr,C.Di,v.cK,M.Vz,M.pc,O.M,Q.h,gt.a,W.z,pe.W,E.j,J.R],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})();const Ot=()=>[8,16],Xt=()=>[8,8];function Lt(n,o){if(1&n&&(e.nrm(0,"i",16),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function At(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function wt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,At,2,1,"nz-tag",17),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function kt(n,o){1&n&&(e.j41(0,"span",18),e.EFF(1,"None specified"),e.k0s())}function Ut(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",20),2&n&&e.Y8G("variantType",o.$implicit)}function Bt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Ut,1,1,"cvc-variant-type-tag",19),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function Jt(n,o){1&n&&(e.j41(0,"span",18),e.EFF(1,"None provided"),e.k0s())}function Qt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",23),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function Wt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",24),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function Ht(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",21)(1,"cvc-tag-list"),e.DNE(2,Qt,2,2,"ng-container",17)(3,Wt,3,3,"ng-container",22),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function Kt(n,o){if(1&n&&(e.j41(0,"nz-card",3),e.DNE(1,Lt,3,4,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",4)(4,"nz-col",5)(5,"nz-row",4)(6,"nz-col",6)(7,"nz-descriptions",7)(8,"nz-descriptions-item",8),e.nrm(9,"cvc-feature-variant-tag",9),e.k0s(),e.j41(10,"nz-descriptions-item",10),e.DNE(11,wt,3,1,"ng-container",11)(12,kt,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",12),e.DNE(15,Bt,3,1,"ng-container",11)(16,Jt,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(18,Ht,4,3,"nz-descriptions-item",13),e.k0s()(),e.j41(19,"nz-col",5)(20,"nz-collapse")(21,"nz-collapse-panel",14),e.nrm(22,"cvc-coordinates-card",15),e.k0s()()()()()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(18,Ot)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(19,Xt)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",c.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",c.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",c.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",c.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",c.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("displayTitle",!1)("cvcCoordinates",c.variant)}}let Zt=(()=>{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");if("FusionVariant"!==this.variant.__typename)throw new Error("This card is for FusionVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-fusion-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Fusion Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["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"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"]],template:function(a,r){1&a&&e.DNE(0,Kt,23,20,"nz-card",3),2&a&&e.vxM("FusionVariant"==r.variant.__typename?0:-1)},dependencies:[l.Sq,l.bT,p.Wk,P.s,f.Dn,m.Uq,m.e,g.xA,g.gr,C.Di,v.cK,M.Vz,M.pc,O.M,Q.h,W.z,pe.W,E.j,J.R],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})();var qt=i(8139);const ea=()=>[8,16],me=()=>[8,8];function na(n,o){if(1&n&&(e.EFF(0," Created "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileCreationActivity.createdAt),") ")}}function ta(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,na,4,3,"ng-template",null,3,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileCreationActivity.user)}}function aa(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileDeprecationActivity.createdAt),") ")}}function oa(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,aa,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileDeprecationActivity.user)}}function ia(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.variantDeprecationActivity.createdAt),") ")}}function ra(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,ia,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.variantDeprecationActivity.user)}}function la(n,o){if(1&n&&(e.j41(0,"p",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG().ngIf;e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," ")}}function ca(n,o){1&n&&e.nrm(0,"cvc-empty-revisable",27)}function sa(n,o){1&n&&e.nrm(0,"cvc-source-tag",29),2&n&&e.Y8G("source",o.$implicit)}function pa(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,sa,1,1,"cvc-source-tag",28),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.sources)}}function ma(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function ua(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,ma,2,1,"nz-tag",30),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function fa(n,o){if(1&n&&e.nrm(0,"cvc-mp-gene-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function _a(n,o){if(1&n&&e.nrm(0,"cvc-mp-fusion-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function ga(n,o){if(1&n&&e.nrm(0,"cvc-mp-factor-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function da(n,o){if(1&n&&(e.j41(0,"nz-col",18),e.DNE(1,fa,1,2,"cvc-mp-gene-variant-card",31)(2,_a,1,2,"cvc-mp-fusion-variant-card",31)(3,ga,1,2,"cvc-mp-factor-variant-card",31),e.k0s()),2&n){let t;const a=o.$implicit;e.R7$(),e.vxM("GeneVariant"===(t=a.__typename)?1:"FusionVariant"===t?2:"FactorVariant"===t?3:-1)}}function va(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-row",6)(4,"nz-col",7)(5,"nz-descriptions",8)(6,"nz-descriptions-item",9),e.nrm(7,"cvc-mp-tag-name",10),e.k0s(),e.DNE(8,ta,6,2,"ng-container",5)(9,oa,6,2,"ng-container",5)(10,ra,6,2,"ng-container",5),e.k0s()(),e.j41(11,"nz-col",7)(12,"nz-descriptions",8)(13,"nz-descriptions-item",11),e.DNE(14,la,2,2,"p",12)(15,ca,1,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(17,"nz-descriptions-item",13),e.DNE(18,pa,2,1,"cvc-tag-list",14),e.k0s(),e.j41(19,"nz-descriptions-item",15)(20,"span",16),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"nz-descriptions-item",17),e.DNE(24,ua,2,1,"cvc-tag-list",14),e.k0s()()()()(),e.j41(25,"nz-col",18)(26,"nz-card",19)(27,"nz-row",6),e.DNE(28,da,4,1,"nz-col",20),e.k0s()()(),e.j41(29,"nz-col",18),e.nrm(30,"cvc-evidence-table",21),e.k0s(),e.j41(31,"nz-col",18),e.nrm(32,"cvc-assertions-table",22),e.k0s()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(16);e.XpG();const r=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(27,ea)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(28,me)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",3),e.R7$(2),e.Y8G("nameSegments",t.parsedName),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileCreationActivity),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileDeprecationActivity),e.R7$(),e.Y8G("ngIf",t.variantDeprecationActivity),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",t.description)("ngIfElse",a),e.R7$(4),e.Y8G("ngIf",t.sources.length>0)("ngIfElse",r),e.R7$(3),e.JRh(e.bMT(22,25,t.molecularProfileScore)),e.R7$(3),e.Y8G("ngIf",t.molecularProfileAliases.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzGutter",e.lJ4(29,me)),e.R7$(),e.Y8G("ngForOf",t.variants),e.R7$(2),e.Y8G("molecularProfileId",t.id)("displayMolecularProfile",!1),e.R7$(2),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("molecularProfileId",t.id)}}function za(n,o){1&n&&e.nrm(0,"cvc-empty-value",32)}function ha(n,o){1&n&&e.nrm(0,"cvc-empty-value",33)}const Ca=[{path:"",component:Tn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(t,a){var r;if(this.gql=t,this.route=a,null==(r=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:r});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,x.E)("loading"),(0,K.Z)(!0)),this.molecularProfile$=c.pipe((0,x.E)("data","molecularProfile")),this.subscribable={entityType:d.V9U.MolecularProfile,id:r}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(d.SPr),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-summary"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["noDescription",""],["createdTitle",""],["deprecatedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small","nzBordered","true","nzLayout","vertical",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["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"],[3,"nzTitle"],[3,"user"],["nz-typography","","nzType","secondary"],["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(a,r){1&a&&(e.DNE(0,va,33,30,"ng-container",5),e.nI1(1,"ngrxPush"),e.DNE(2,za,1,0,"ng-template",null,0,e.C5r)(4,ha,1,0,"ng-template",null,1,e.C5r)),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.Sq,l.bT,m.Uq,m.e,g.xA,g.gr,v.cK,C.Di,P.s,st.o,pt.N,mt.z,O.M,ut.r,ft.D,ce.Q,_t.G,Nt,se,Zt,l.QX,I.L9,qt.N],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%}"]})}return n})(),data:{breadcrumb:"Summary"}},{path:"comments",component:he,data:{breadcrumb:"Comments"}},{path:"revisions",component:jn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Rn,data:{breadcrumb:"Flags"}},{path:"events",component:Fn,data:{breadcrumb:"Events"}}]}];let Pa=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[p.iI.forChild(Ca),ct,Vn,ve,Dn,xn,p.iI]})}return n})();var ya=i(7169),Ma=i(4308),Ta=i(3842),Ga=i(8492),xa=i(8692);let Ia=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,y.YN,y.X1,R.PQ,D.$,m.f3,h.Zw,re.V,v.Ti,_.pc,C.kT,le.Qt,A.DH,Ga.M,Ta.k,xa.j,Ma.I,j.o]})}return n})(),Fa=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Pa,h.Zw,f.Y3,T.ZJ,_.pc,m.f3,D.$,ae.MC,_e.m,fe.W,z.Y,X.C,ge.V,N.C,F.i,ya.W,Ia]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/assets/.sprockets-manifest-b38d27380bb96c57c5676aab20cd894e.json b/server/public/assets/.sprockets-manifest-a6bdb32277168fbe344e778393e41775.json similarity index 83% rename from server/public/assets/.sprockets-manifest-b38d27380bb96c57c5676aab20cd894e.json rename to server/public/assets/.sprockets-manifest-a6bdb32277168fbe344e778393e41775.json index 2f252a29a..cef59662a 100644 --- a/server/public/assets/.sprockets-manifest-b38d27380bb96c57c5676aab20cd894e.json +++ b/server/public/assets/.sprockets-manifest-a6bdb32277168fbe344e778393e41775.json @@ -1 +1 @@ -{"files":{"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css":{"logical_path":"trestle/admin.css","mtime":"2024-09-05T15:38:56+00:00","size":328058,"digest":"f864466a650de6131d18764607cf01a9ca78f3501f2b3d24c9f88aaa403a3c16","integrity":"sha256-+GRGamUN5hMdGHZGB88Bqcp481AfKz0kyfiKqkA6PBY="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2024-09-05T15:38:56+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2024-09-05T15:38:56+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2024-09-05T15:38:56+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":"2024-09-05T15:38:56+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2024-09-05T15:38:56+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2024-09-05T15:38:56+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":"2024-09-05T15:38:56+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2024-09-05T15:38:56+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2024-09-05T15:38:56+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":"2024-09-05T15:38:56+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2024-09-05T15:38:56+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2024-09-05T15:38:56+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2024-09-05T15:38:56+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2024-09-05T15:38:56+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":"2024-09-05T15:38:56+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js":{"logical_path":"trestle/admin.js","mtime":"2024-09-05T15:38:56+00:00","size":383567,"digest":"aafb37cb38fee7ca1d397ce0ea31a0f14a530ec36d55819330139a723652cd74","integrity":"sha256-qvs3yzj+58odOXzg6jGg8UpTDsNtVYGTMBOacjZSzXQ="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2024-09-05T15:38:56+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2024-09-05T15:38:56+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2024-09-05T15:38:56+00:00","size":2,"digest":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070","integrity":"sha256-daEdpEyAJIa8b2VkCqSKcw8PaExcB6Qro80XNes/sHA="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2024-09-05T15:38:56+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"trestle/theme-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css":{"logical_path":"trestle/theme.css","mtime":"2024-09-05T15:38:56+00:00","size":18638,"digest":"1ab9a209b02eb73b47f3e6f0d43df302977005af41d343e39745583493ee53e2","integrity":"sha256-GrmiCbAutztH8+bw1D3zApdwBa9B00Pjl0VYNJPuU+I="},"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js":{"logical_path":"activestorage.js","mtime":"2024-09-05T15:38:56+00:00","size":29379,"digest":"7dbadea816242c6d03cc2f59c58398ab55bb9a70ee859fa962ad4c7ad4c48594","integrity":"sha256-fbreqBYkLG0DzC9ZxYOYq1W7mnDuhZ+pYq1MetTEhZQ="},"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js":{"logical_path":"activestorage.esm.js","mtime":"2024-09-05T15:38:56+00:00","size":27247,"digest":"b2d9aa45888a540d7e6969e484dbdb0a0a501ff56542ce737db6599b311e3385","integrity":"sha256-stmqRYiKVA1+aWnkhNvbCgpQH/VlQs5zfbZZmzEeM4U="}},"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-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","trestle/theme.css":"trestle/theme-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css","activestorage.js":"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js","activestorage.esm.js":"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js"}} \ No newline at end of file +{"files":{"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css":{"logical_path":"trestle/admin.css","mtime":"2024-09-17T01:47:40+00:00","size":328058,"digest":"f864466a650de6131d18764607cf01a9ca78f3501f2b3d24c9f88aaa403a3c16","integrity":"sha256-+GRGamUN5hMdGHZGB88Bqcp481AfKz0kyfiKqkA6PBY="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2024-09-17T01:47:40+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2024-09-17T01:47:40+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2024-09-17T01:47:40+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":"2024-09-17T01:47:40+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2024-09-17T01:47:40+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2024-09-17T01:47:40+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":"2024-09-17T01:47:40+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2024-09-17T01:47:40+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2024-09-17T01:47:40+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":"2024-09-17T01:47:40+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2024-09-17T01:47:40+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2024-09-17T01:47:40+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2024-09-17T01:47:40+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2024-09-17T01:47:40+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":"2024-09-17T01:47:40+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js":{"logical_path":"trestle/admin.js","mtime":"2024-09-17T01:47:40+00:00","size":383567,"digest":"aafb37cb38fee7ca1d397ce0ea31a0f14a530ec36d55819330139a723652cd74","integrity":"sha256-qvs3yzj+58odOXzg6jGg8UpTDsNtVYGTMBOacjZSzXQ="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2024-09-17T01:47:40+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2024-09-17T01:47:40+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2024-09-17T01:47:40+00:00","size":2,"digest":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070","integrity":"sha256-daEdpEyAJIa8b2VkCqSKcw8PaExcB6Qro80XNes/sHA="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2024-09-17T01:47:40+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"trestle/theme-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css":{"logical_path":"trestle/theme.css","mtime":"2024-09-17T01:47:40+00:00","size":18638,"digest":"1ab9a209b02eb73b47f3e6f0d43df302977005af41d343e39745583493ee53e2","integrity":"sha256-GrmiCbAutztH8+bw1D3zApdwBa9B00Pjl0VYNJPuU+I="},"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js":{"logical_path":"activestorage.js","mtime":"2024-09-17T01:47:40+00:00","size":29379,"digest":"7dbadea816242c6d03cc2f59c58398ab55bb9a70ee859fa962ad4c7ad4c48594","integrity":"sha256-fbreqBYkLG0DzC9ZxYOYq1W7mnDuhZ+pYq1MetTEhZQ="},"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js":{"logical_path":"activestorage.esm.js","mtime":"2024-09-17T01:47:40+00:00","size":27247,"digest":"b2d9aa45888a540d7e6969e484dbdb0a0a501ff56542ce737db6599b311e3385","integrity":"sha256-stmqRYiKVA1+aWnkhNvbCgpQH/VlQs5zfbZZmzEeM4U="}},"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-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","trestle/theme.css":"trestle/theme-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css","activestorage.js":"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js","activestorage.esm.js":"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js"}} \ No newline at end of file diff --git a/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz b/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz index 7e60767e8..be39a0506 100644 Binary files a/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz and b/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz differ diff --git a/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz b/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz index 1e47a847c..93342df7b 100644 Binary files a/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz and b/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz differ diff --git a/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz b/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz index 4c48ad6b2..52c1bcb61 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/images/cgc-hackathon-2024.jpg b/server/public/assets/images/cgc-hackathon-2024.jpg new file mode 100644 index 000000000..88223a8a5 Binary files /dev/null and b/server/public/assets/images/cgc-hackathon-2024.jpg differ diff --git a/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz b/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz index ed3f784e2..0785861b7 100644 Binary files a/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz and b/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz differ diff --git a/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz b/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz index bcc208cb1..45e9d75ac 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-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js.gz b/server/public/assets/trestle/admin-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js.gz index cc1883971..220b9d43b 100644 Binary files a/server/public/assets/trestle/admin-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js.gz and b/server/public/assets/trestle/admin-fc2532d55c2212eb864b2dfbe6f376c601bf92ba947d999b63b81969b10be37e.js.gz differ diff --git a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz index da8d57152..032deae37 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 b87935306..34537b903 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 d7b537c9f..5ad37f36c 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 1dd7a162d..5948fd3a5 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 72937c23a..552973d8e 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 9ba3c40a0..196bd37db 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 8d9eccd07..07c5a8b4a 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 b5262b0b9..6eb0db365 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 233f8fa8f..2ed37ce7d 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 11f225666..588729f18 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 eae7a2af4..48190ecd1 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-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css.gz b/server/public/assets/trestle/theme-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css.gz index 69ebe09cf..23017964b 100644 Binary files a/server/public/assets/trestle/theme-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css.gz and b/server/public/assets/trestle/theme-d55764a42c3d13dc372be3e191e0de1444b9a486ca5a539bd1d5680b9109abff.css.gz differ diff --git a/server/public/common.421f2e2f96784e20.js b/server/public/common.421f2e2f96784e20.js new file mode 100644 index 000000000..31209c260 --- /dev/null +++ b/server/public/common.421f2e2f96784e20.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2076],{9213:(P,C,e)=>{e.d(C,{l:()=>E});var p=e(177),u=e(5103),I=e(3953);let E=(()=>{class f{static#e=this.\u0275fac=function(h){return new(h||f)};static#t=this.\u0275mod=I.$C({type:f});static#o=this.\u0275inj=I.G2t({imports:[p.MD,u.Y3]})}return f})()},2261:(P,C,e)=>{e.d(C,{h:()=>s});var p=e(3953),u=e(7670),I=e(1672),E=e(5103),f=e(7391);function v(M,m){1&M&&(p.j41(0,"span"),p.EFF(1," You must be logged in to view this page. "),p.k0s())}function _(M,m){1&M&&p.nrm(0,"cvc-login-button")}function h(M,m){1&M&&(p.j41(0,"nz-typography",4),p.nrm(1,"i",5),p.k0s())}let s=(()=>{class M{static#e=this.\u0275fac=function(t){return new(t||M)};static#t=this.\u0275cmp=p.VBU({type:M,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[["contentTpl",""],["footerTpl",""],["emptyImage",""],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(t,F){if(1&t&&(p.j41(0,"nz-empty",3),p.DNE(1,v,2,0,"ng-template",null,0,p.C5r)(3,_,1,0,"ng-template",null,1,p.C5r),p.k0s(),p.DNE(5,h,2,0,"ng-template",null,2,p.C5r)),2&t){const l=p.sdS(2),b=p.sdS(4),D=p.sdS(6);p.Y8G("nzNotFoundImage",D)("nzNotFoundContent",l)("nzNotFoundFooter",b)}},dependencies:[u.z,I.RW,E.Dn,f.Di],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return M})()},3688:(P,C,e)=>{e.d(C,{A:()=>_});var p=e(177),u=e(400),I=e(1672),E=e(5103),f=e(7391),v=e(3953);let _=(()=>{class h{static#e=this.\u0275fac=function(m){return new(m||h)};static#t=this.\u0275mod=v.$C({type:h});static#o=this.\u0275inj=v.G2t({imports:[p.MD,u.a,I._v,E.Y3,f.kT]})}return h})()},3988:(P,C,e)=>{e.d(C,{d:()=>G});var p=e(1635),u=e(9417),I=e(1226),E=e(8269),f=e(7593),v=e(1653),_=e(9894);const M=(0,e(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"New Assertion"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,watchVariantMolecularProfileId:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{key:"assertionType",type:"type-select",props:{required:!0}},{key:"assertionDirection",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:"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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24},{md:24,lg:8},{md:24,lg:16}]}},fieldGroup:[{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0}},{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}},{key:"description",type:"base-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}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Assertion",align:"right"}}]}]}],E.S);var m=e(3953),n=e(9145),t=e(4222),F=e(8927),l=e(1188),b=e(8524),D=e(8721);const S=R=>["/assertions",R,"summary"];function T(R,g){if(1&R&&(m.EFF(0," View your submitted Assertion "),m.j41(1,"a",4),m.EFF(2,"here"),m.k0s(),m.EFF(3,". You will be redirected shortly. ")),2&R){const y=m.XpG();m.R7$(),m.Y8G("routerLink",m.eq3(1,S,y.newAssertionId))}}let G=class B{constructor(g,y){this.submitAssertionGQL=g,this.networkErrorService=y,this.form=new u.J3({}),this.model=E.S,this.fields=M,this.state=new f.o,this.options={formState:this.state},this.submitAssertionMutator=new I.E(y)}onSubmit(g){let y=(0,v.fR)(g);y&&(this.mutationState=this.submitAssertionMutator.mutate(this.submitAssertionGQL,{input:y},void 0,a=>{this.newAssertionId=a.submitAssertion?.assertion.id,this.newAssertionUrl=`/assertions/${this.newAssertionId}/summary`}))}ngAfterViewInit(){this.state.formReady$.next(!0)}ngOnDestroy(){this.options.formState.onDestroy()}static#e=this.\u0275fac=function(y){return new(y||B)(m.rXU(n.B_h),m.rXU(t.N))};static#t=this.\u0275cmp=m.VBU({type:B,selectors:[["cvc-assertion-submit-form"]],decls:5,vars:8,consts:[["success",""],["entityType","Assertion",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"],[3,"routerLink"]],template:function(y,a){if(1&y){const r=m.RV6();m.j41(0,"cvc-form-submission-status-display",1),m.DNE(1,T,4,3,"ng-template",null,0,m.C5r),m.j41(3,"form",2),m.bIt("ngSubmit",function(){return m.eBV(r),m.Njj(a.onSubmit(a.model))}),m.j41(4,"formly-form",3),m.bIt("modelChange",function(o){return m.eBV(r),m.Njj(a.model=o)}),m.k0s()()()}if(2&y){const r=m.sdS(2);m.Y8G("mutationState",a.mutationState)("redirectUrl",a.newAssertionUrl)("successMessage",r),m.R7$(3),m.Y8G("formGroup",a.form),m.R7$(),m.Y8G("form",a.form)("fields",a.fields)("model",a.model)("options",a.options)}},dependencies:[F.CA,l.Wk,u.qT,u.cb,u.j4,b.aF,D.G],encapsulation:2,changeDetection:0})};G=(0,p.Cg)([(0,_.d)()],G)},7242:(P,C,e)=>{e.d(C,{Z:()=>s});var p=e(177),u=e(8927),I=e(513),E=e(8168),f=e(776),v=e(5316),_=e(1188),h=e(3953);let s=(()=>{class M{static#e=this.\u0275fac=function(t){return new(t||M)};static#t=this.\u0275mod=h.$C({type:M});static#o=this.\u0275inj=h.G2t({imports:[p.MD,u.PQ,I.Zw,_.iI,E.m,v.P,f.s]})}return M})()},1724:(P,C,e)=>{e.d(C,{y:()=>h});var p=e(177),u=e(8927),I=e(513),E=e(8168),f=e(776),v=e(5316),_=e(3953);let h=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=_.$C({type:s});static#o=this.\u0275inj=_.G2t({imports:[p.MD,u.PQ,I.Zw,E.m,v.P,f.s]})}return s})()},6905:(P,C,e)=>{e.d(C,{_:()=>g});var p=e(1635),u=e(9417),I=e(1226),E=e(9447),f=e(5540),v=e(9894);const m=(0,e(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Evidence Item"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},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}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"description",type:"base-textarea",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-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item Revisions",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{featureId: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 n=e(3953),t=e(9145),F=e(4222),l=e(177),b=e(8927),D=e(8524),S=e(8721);function T(y,a){if(1&y&&(n.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or you can view them "),n.j41(1,"a",4),n.EFF(2,"here."),n.k0s()),2&y){const r=n.XpG();n.R7$(),n.FS9("href",r.url,n.B4B)}}function G(y,a){if(1&y){const r=n.RV6();n.j41(0,"form",5),n.bIt("ngSubmit",function(){n.eBV(r);const o=n.XpG();return n.Njj(o.onSubmit(o.model))}),n.j41(1,"formly-form",6),n.bIt("modelChange",function(o){n.eBV(r);const d=n.XpG();return n.Njj(d.model=o)}),n.k0s()()}if(2&y){const r=n.XpG();n.Y8G("formGroup",r.form),n.R7$(),n.Y8G("form",r.form)("fields",r.fields)("model",r.model)("options",r.options)}}function R(y,a){1&y&&n.EFF(0," Loading Evidence Item... ")}let g=class V{constructor(a,r,i,o){this.revisableFieldsGQL=a,this.submitRevisionsGQL=r,this.networkErrorService=i,this.cdr=o,this.form=new u.J3({}),this.fields=m,this.state=new E.D,this.state.formMode="revise",this.options={formState:this.state},this.reviseEvidenceMutator=new I.E(i)}ngOnInit(){this.url=`/evidence/${this.evidenceId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).pipe((0,v.s)(this)).subscribe({next:({data:{evidenceItem:a}})=>{a&&(this.model={id:a.id,fields:(0,f.LC)(a)},this.cdr.detectChanges())},error:a=>{console.error("Error retrieving evidenceItem."),console.error(a)},complete:()=>{this.state.formReady$.next(!0),console.log("evidence item retrieved.")}})}onSubmit(a){if(!this.evidenceId)return;let r=(0,f.ep)(this.evidenceId,a);r&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:r}))}ngOnDestroy(){this.options.formState.onDestroy()}static#e=this.\u0275fac=function(r){return new(r||V)(n.rXU(t.V1_),n.rXU(t.m7j),n.rXU(F.N),n.rXU(n.gRc))};static#t=this.\u0275cmp=n.VBU({type:V,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(r,i){if(1&r&&(n.j41(0,"cvc-form-submission-status-display",2),n.DNE(1,T,3,1,"ng-template",null,0,n.C5r)(3,G,2,5,"form",3)(4,R,1,0,"ng-template",null,1,n.C5r),n.k0s()),2&r){const o=n.sdS(2),d=n.sdS(5);n.Y8G("mutationState",i.mutationState)("successMessage",o)("redirectUrl",i.url),n.R7$(3),n.Y8G("ngIf",i.model)("ngIfElse",d)}},dependencies:[l.bT,b.CA,u.qT,u.cb,u.j4,D.aF,S.G],encapsulation:2,changeDetection:0})};g=(0,p.Cg)([(0,v.d)()],g)},432:(P,C,e)=>{e.d(C,{Q:()=>h});var p=e(177),u=e(8927),I=e(513),E=e(8168),f=e(776),v=e(5316),_=e(3953);let h=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=_.$C({type:s});static#o=this.\u0275inj=_.G2t({imports:[p.MD,u.PQ,I.Zw,E.m,v.P,f.s]})}return s})()},958:(P,C,e)=>{e.d(C,{m:()=>a});var p=e(1635),u=e(9417),I=e(9894),E=e(1226),f=e(5741);const n=(0,e(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Gene"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"description",type:"base-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-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0},comment:void 0,organizationId:void 0});var t=e(3953),F=e(9145),l=e(4222),b=e(177),D=e(8927),S=e(8524),T=e(8721);const G=()=>({});function R(r,i){if(1&r&&(t.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),t.j41(1,"a",4),t.EFF(2,"here."),t.k0s()),2&r){const o=t.XpG();t.R7$(),t.FS9("href",o.url,t.B4B)}}function g(r,i){if(1&r){const o=t.RV6();t.j41(0,"form",5),t.bIt("ngSubmit",function(){t.eBV(o);const c=t.XpG();return t.Njj(c.onSubmit(c.model))}),t.j41(1,"formly-form",6),t.bIt("modelChange",function(c){t.eBV(o);const O=t.XpG();return t.Njj(O.model=c)}),t.k0s()()}if(2&r){const o=t.XpG();t.Y8G("formGroup",o.form),t.R7$(),t.Y8G("form",o.form)("fields",o.fields)("model",o.model)("options",t.lJ4(5,G))}}function y(r,i){1&r&&t.EFF(0," Loading Gene... ")}let a=class x{constructor(i,o,d,c){this.revisableFieldsGQL=i,this.submitRevisionsGQL=o,this.networkErrorService=d,this.cdr=c,this.form=new u.J3({}),this.fields=n,this.reviseEvidenceMutator=new E.E(d)}ngOnInit(){this.url=`/features/${this.featureId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({featureId:this.featureId}).pipe((0,I.s)(this)).subscribe({next:({data:{feature:i}})=>{var r;i&&(this.model={id:i.id,fields:(r=i,{description:r.description,sourceIds:r.sources.map(i=>i.id)})},this.cdr.detectChanges())},error:i=>{console.error("Error retrieving Gene."),console.error(i)},complete:()=>{}})}onSubmit(i){if(!this.featureId)return;let o=function _(r,i){const o=i.fields;if(i.comment)return{id:r,fields:{description:f.q2(o.description),sourceIds:o.sourceIds||[]},organizationId:i.organizationId,comment:i.comment}}(this.featureId,i);o&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:o}))}static#e=this.\u0275fac=function(o){return new(o||x)(t.rXU(F.WgR),t.rXU(F.Fll),t.rXU(l.N),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:x,selectors:[["cvc-gene-revise-form"]],inputs:{featureId:"featureId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Gene",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(o,d){if(1&o&&(t.j41(0,"cvc-form-submission-status-display",2),t.DNE(1,R,3,1,"ng-template",null,0,t.C5r)(3,g,2,6,"form",3)(4,y,1,0,"ng-template",null,1,t.C5r),t.k0s()),2&o){const c=t.sdS(2),O=t.sdS(5);t.Y8G("redirectUrl",d.url)("mutationState",d.mutationState)("successMessage",c),t.R7$(3),t.Y8G("ngIf",d.model)("ngIfElse",O)}},dependencies:[b.bT,D.CA,u.qT,u.cb,u.j4,S.aF,T.G],encapsulation:2,changeDetection:0})};a=(0,p.Cg)([(0,I.d)()],a)},6404:(P,C,e)=>{e.d(C,{v:()=>h});var p=e(177),u=e(8927),I=e(513),E=e(8168),f=e(776),v=e(5316),_=e(3953);let h=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=_.$C({type:s});static#o=this.\u0275inj=_.G2t({imports:[p.MD,u.PQ,I.Zw,E.m,v.P,f.s]})}return s})()},2276:(P,C,e)=>{e.d(C,{v:()=>i});var p=e(1635),u=e(9417),I=e(9894),E=e(1226),f=e(5741),h=e(7480),s=e(5676);const m=(0,h.A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Variant"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,md:12,lg:8},{xs:24,md:12,lg:8},{xs:24,lg:8}]}},fieldGroup:[{key:"featureId",type:"feature-select",props:{description:"Enter an Entrez Gene for this Variant",required:!0,canChangeFeatureType:!1}},{key:"name",type:"base-input",props:{placeholder:"Enter a name for this Variant",description:"Enter the name of the Variant according to the Variant Curation SOP",label:"Name",required:!0,rows:1}},{key:"aliases",type:"tag-multi-input",props:{label:"Aliases",description:"List any aliases commonly used to refer to this Variant",placeholder:"Enter Alias and hit return"}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24,lg:12,xl:6,xxl:8},{xs:24,lg:12,xl:6,xxl:8},{xs:24,xl:12,xxl:8}]}},fieldGroup:[{key:"hgvsDescriptions",type:"tag-multi-input",props:{label:"HGVS Descriptions",description:"Enter any HGVS nomenclature descriptions of this Variant",tooltip:"Human Genome Variation Society nomenclature descriptions",placeholder:"Enter HGVS and hit return"}},{key:"variantTypeIds",type:"variant-type-multi-select"},{key:"clinvarIds",type:"clinvar-multi-input",wrappers:["form-field"],props:{label:"ClinVar IDs"}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:"Coordinates",size:"small"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,md:12,lg:8,xxl:6}}},fieldGroup:[{key:"referenceBuild",type:"reference-build-select"},{key:"ensemblVersion",type:"base-input",validators:{nccnVersionNumber:{expression:o=>!o.value||/^\d{2,3}$/.test(o.value),message:(o,d)=>`"${d.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:"base-input",validators:{nccnVersionNumber:{expression:o=>!o.value||/^[ACTG\\]+$/.test(o.value),message:(o,d)=>`"${d.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:"base-input",validators:{nccnVersionNumber:{expression:o=>!o.value||/^[ACTG\\]+$/.test(o.value),message:(o,d)=>`"${d.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:"base-select",props:{label:"Chromosome",options:f.Kd,description:"Specify the chromosome in which this variant occurs (e.g. 17)."}},{key:"start",type:"base-input",validators:{isNumeric:{expression:o=>!o.value||/^\d+$/.test(o.value),message:(o,d)=>"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:"base-input",validators:{isNumeric:{expression:o=>!o.value||/^\d+$/.test(o.value),message:(o,d)=>"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:"base-input",props:{label:"Representative Transcript",description:"Specify a transcript ID, including version number (e.g. ENST00000348159.4, the canonical transcript defined by Ensembl)."},validators:{isTranscriptId:{expression:s.t_,message:"Representative Transcript must be a valid, human, versioned, Ensembl transcript ID"}}}]}]}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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",align:"right"}}]}]}],{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,featureId:void 0,referenceBases:void 0,variantBases:void 0},comment:void 0,organizationId:void 0});let F=o=>"NONE FOUND"==o[0]?{noneFound:!0}:"N/A"==o[0]?{notApplicable:!0}:{ids:o.map(d=>+d)};var l=e(3953),b=e(9145),D=e(4222),S=e(177),T=e(8927),G=e(8524),R=e(8721);const g=()=>({});function y(o,d){if(1&o&&(l.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),l.j41(1,"a",4),l.EFF(2,"here."),l.k0s()),2&o){const c=l.XpG();l.R7$(),l.FS9("href",c.url,l.B4B)}}function a(o,d){if(1&o){const c=l.RV6();l.j41(0,"form",5),l.bIt("ngSubmit",function(){l.eBV(c);const A=l.XpG();return l.Njj(A.onSubmit(A.model))}),l.j41(1,"formly-form",6),l.bIt("modelChange",function(A){l.eBV(c);const L=l.XpG();return l.Njj(L.model=A)}),l.k0s()()}if(2&o){const c=l.XpG();l.Y8G("formGroup",c.form),l.R7$(),l.Y8G("form",c.form)("fields",c.fields)("model",c.model)("options",l.lJ4(5,g))}}function r(o,d){1&o&&l.EFF(0," Loading Variant... ")}let i=class U{constructor(d,c,O,A){this.revisableFieldsGQL=d,this.submitRevisionsGQL=c,this.networkErrorService=O,this.cdr=A,this.form=new u.J3({}),this.fields=m,this.reviseVariantMutator=new E.E(O)}ngOnInit(){this.url=`/variants/${this.variantId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantId:this.variantId}).pipe((0,I.s)(this)).subscribe({next:({data:{variant:d}})=>{var o;d&&"GeneVariant"==d.__typename&&(this.model={id:d.id,fields:(o=d,{name:o.name,aliases:o.variantAliases,hgvsDescriptions:o.hgvsDescriptions,clinvarIds:o.clinvarIds,variantTypeIds:o.variantTypes.map(d=>d.id),referenceBuild:o.coordinates?.referenceBuild,ensemblVersion:o.coordinates?.ensemblVersion,chromosome:o.coordinates?.chromosome,start:o.coordinates?.start,stop:o.coordinates?.stop,referenceBases:o.coordinates?.referenceBases,variantBases:o.coordinates?.variantBases,representativeTranscript:o.coordinates?.representativeTranscript,featureId:o.feature.id})},this.cdr.detectChanges())},error:d=>{console.error("Error retrieving Variant."),console.error(d)},complete:()=>{}})}onSubmit(d){if(!this.variantId)return;let c=function t(o,d){const c=d.fields;if(d.comment&&c.name&&c.featureId)return{id:o,fields:{name:c.name,aliases:c.aliases||[],hgvsDescriptions:c.hgvsDescriptions||[],clinvarIds:F(c.clinvarIds||[]),variantTypeIds:c.variantTypeIds||[],coordinates:{chromosome:c.chromosome,start:c.start?+c.start:void 0,stop:c.stop?+c.stop:void 0,representativeTranscript:c.representativeTranscript,ensemblVersion:c.ensemblVersion?+c.ensemblVersion:void 0,referenceBuild:c.referenceBuild,referenceBases:f.q2(c.referenceBases),variantBases:f.q2(c.variantBases)},featureId:c.featureId},organizationId:d.organizationId,comment:d.comment}}(this.variantId,d);c&&(this.mutationState=this.reviseVariantMutator.mutate(this.submitRevisionsGQL,{input:c}))}static#e=this.\u0275fac=function(c){return new(c||U)(l.rXU(b.$Pl),l.rXU(b.QVS),l.rXU(D.N),l.rXU(l.gRc))};static#t=this.\u0275cmp=l.VBU({type:U,selectors:[["cvc-gene-variant-revise-form"]],inputs:{variantId:"variantId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Variant",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(c,O){if(1&c&&(l.j41(0,"cvc-form-submission-status-display",2),l.DNE(1,y,3,1,"ng-template",null,0,l.C5r)(3,a,2,6,"form",3)(4,r,1,0,"ng-template",null,1,l.C5r),l.k0s()),2&c){const A=l.sdS(2),L=l.sdS(5);l.Y8G("redirectUrl",O.url)("mutationState",O.mutationState)("successMessage",A),l.R7$(3),l.Y8G("ngIf",O.model)("ngIfElse",L)}},dependencies:[S.bT,T.CA,u.qT,u.cb,u.j4,G.aF,R.G],encapsulation:2,changeDetection:0})};i=(0,p.Cg)([(0,I.d)()],i)},7064:(P,C,e)=>{e.d(C,{q:()=>h});var p=e(177),u=e(8927),I=e(513),E=e(8168),f=e(776),v=e(5316),_=e(3953);let h=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=_.$C({type:s});static#o=this.\u0275inj=_.G2t({imports:[p.MD,u.PQ,I.Zw,E.m,v.P,f.s]})}return s})()},4514:(P,C,e)=>{e.d(C,{k:()=>y});var p=e(1635),u=e(9417),I=e(9894),E=e(1226),f=e(5741);const n=(0,e(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Molecular Profile"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{md:24,lg:16},{md:24,lg:8},{xs:24}]}},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).",required:!1,rows:5}},{key:"aliases",type:"tag-multi-input",wrappers:["form-field"],props:{label:"Aliases"},expressions:{"props.disabled":a=>a.options?.formState.isSimpleMp,"props.description":a=>a.options?.formState.isSimpleMp?"Simple Molecular Profiles inherit their Aliases from the corresponding Variant.":"List any aliases commonly used to refer to this Molecular Profile"}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Revisions",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0,aliases:void 0},comment:void 0,organizationId:void 0});var t=e(3953),F=e(9145),l=e(4222),b=e(177),D=e(8927),S=e(8524),T=e(8721);function G(a,r){if(1&a&&(t.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),t.j41(1,"a",4),t.EFF(2,"here."),t.k0s()),2&a){const i=t.XpG();t.R7$(),t.FS9("href",i.url,t.B4B)}}function R(a,r){if(1&a){const i=t.RV6();t.j41(0,"form",5),t.bIt("ngSubmit",function(){t.eBV(i);const d=t.XpG();return t.Njj(d.onSubmit(d.model))}),t.j41(1,"formly-form",6),t.bIt("modelChange",function(d){t.eBV(i);const c=t.XpG();return t.Njj(c.model=d)}),t.k0s()()}if(2&a){const i=t.XpG();t.Y8G("formGroup",i.form),t.R7$(),t.Y8G("form",i.form)("fields",i.fields)("model",i.model)("options",i.options)}}function g(a,r){1&a&&t.EFF(0," Loading Molecular Profile... ")}let y=class z{constructor(r,i,o,d){this.revisableFieldsGQL=r,this.submitRevisionsGQL=i,this.cdr=o,this.form=new u.J3({}),this.options={formState:{isSimpleMp:void 0}},this.fields=n,this.reviseEvidenceMutator=new E.E(d)}ngOnInit(){this.url=`/molecular-profiles/${this.molecularProfileId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({molecularProfileId:this.molecularProfileId}).pipe((0,I.s)(this)).subscribe({next:({data:{molecularProfile:r}})=>{var a;r&&(this.options.formState.isSimpleMp=!r.isComplex,this.model={id:r.id,fields:(a=r,{description:a.description,sourceIds:a.sources.map(r=>r.id),aliases:a.molecularProfileAliases})},this.cdr.detectChanges())},error:r=>{console.error("Error retrieving MolecularProfile."),console.error(r)},complete:()=>{}})}onSubmit(r){if(!this.molecularProfileId)return;let i=function _(a,r){const i=r.fields;if(r.comment)return{id:a,fields:{description:f.q2(i.description),sourceIds:i.sourceIds||[],aliases:i.aliases||[]},organizationId:r.organizationId,comment:r.comment}}(this.molecularProfileId,r);i&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:i}))}static#e=this.\u0275fac=function(i){return new(i||z)(t.rXU(F.UK$),t.rXU(F.$rM),t.rXU(t.gRc),t.rXU(l.N))};static#t=this.\u0275cmp=t.VBU({type:z,selectors:[["cvc-mp-revise-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Molecular Profile",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(i,o){if(1&i&&(t.j41(0,"cvc-form-submission-status-display",2),t.DNE(1,G,3,1,"ng-template",null,0,t.C5r)(3,R,2,5,"form",3)(4,g,1,0,"ng-template",null,1,t.C5r),t.k0s()),2&i){const d=t.sdS(2),c=t.sdS(5);t.Y8G("redirectUrl",o.url)("mutationState",o.mutationState)("successMessage",d),t.R7$(3),t.Y8G("ngIf",o.model)("ngIfElse",c)}},dependencies:[b.bT,D.CA,u.qT,u.cb,u.j4,S.aF,T.G],encapsulation:2,changeDetection:0})};y=(0,p.Cg)([(0,I.d)()],y)},7238:(P,C,e)=>{e.d(C,{h:()=>_});var p=e(177),u=e(8927),I=e(513),E=e(8168),f=e(5316),v=e(3953);let _=(()=>{class h{static#e=this.\u0275fac=function(m){return new(m||h)};static#t=this.\u0275mod=v.$C({type:h});static#o=this.\u0275inj=v.G2t({imports:[p.MD,u.PQ,I.Zw,E.m,f.P]})}return h})()},7526:(P,C,e)=>{e.d(C,{T:()=>T});var p=e(1635),u=e(9417),I=e(1226),E=e(3038),f=e(9894),v=e(1413);const h=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Variant Group"}},fieldGroup:[{key:"name",type:"base-input",props:{label:"Variant Group Name",required:!0}},{key:"description",type:"base-textarea",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,requireFeature:!1,showManagerBtn:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},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",align:"right"}}]}]}];var s=e(3953),M=e(9145),m=e(4222),n=e(177),t=e(8927),F=e(8524),l=e(8721);function b(G,R){if(1&G&&(s.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or you may view them "),s.j41(1,"a",4),s.EFF(2,"here."),s.k0s()),2&G){const g=s.XpG();s.R7$(),s.FS9("href",g.url,s.B4B)}}function D(G,R){if(1&G){const g=s.RV6();s.j41(0,"form",5),s.bIt("ngSubmit",function(){s.eBV(g);const a=s.XpG();return s.Njj(a.onSubmit(a.model))}),s.j41(1,"formly-form",6),s.bIt("modelChange",function(a){s.eBV(g);const r=s.XpG();return s.Njj(r.model=a)}),s.k0s()()}if(2&G){const g=s.XpG();s.Y8G("formGroup",g.form),s.R7$(),s.Y8G("form",g.form)("fields",g.fields)("model",g.model)("options",g.options)}}function S(G,R){1&G&&s.EFF(0," Loading Variant Group... ")}let T=class j{constructor(R,g,y,a){this.revisableFieldsGQL=R,this.submitRevisionsGQL=g,this.networkErrorService=y,this.cdr=a,this.form=new u.J3({}),this.fields=h,this.state={formReady$:new v.B},this.options={formState:this.state},this.reviseAssertionMutator=new I.E(this.networkErrorService)}onSubmit(R){if(console.log("------ Variant Group Suggestion Added ------"),console.log(R),!this.variantGroupId)return;let g=(0,E.t9)(this.variantGroupId,R);g&&(this.mutationState=this.reviseAssertionMutator.mutate(this.submitRevisionsGQL,{input:g}))}ngOnInit(){this.url=`/variant-groups/${this.variantGroupId}/revisions`}ngOnDestroy(){}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).pipe((0,f.s)(this)).subscribe({next:({data:{variantGroup:R}})=>{R&&(this.model={id:R.id,fields:(0,E.G_)(R)},this.cdr.detectChanges())},error:R=>{console.error("Error retrieving variantgroupItem."),console.error(R)},complete:()=>{this.state.formReady$.next(!0)}})}static#e=this.\u0275fac=function(g){return new(g||j)(s.rXU(M.FEq),s.rXU(M.IxG),s.rXU(m.N),s.rXU(s.gRc))};static#t=this.\u0275cmp=s.VBU({type:j,selectors:[["cvc-variantgroup-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Variant Group",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(g,y){if(1&g&&(s.j41(0,"cvc-form-submission-status-display",2),s.DNE(1,b,3,1,"ng-template",null,0,s.C5r)(3,D,2,5,"form",3)(4,S,1,0,"ng-template",null,1,s.C5r),s.k0s()),2&g){const a=s.sdS(2),r=s.sdS(5);s.Y8G("mutationState",y.mutationState)("redirectUrl",y.url)("successMessage",a),s.R7$(3),s.Y8G("ngIf",y.model)("ngIfElse",r)}},dependencies:[n.bT,t.CA,u.qT,u.cb,u.j4,F.aF,l.G]})};T=(0,p.Cg)([(0,f.d)()],T)},3038:(P,C,e)=>{e.d(C,{G_:()=>u,bI:()=>E,t9:()=>I});var p=e(5741);function u(f){return{description:f.description,sourceIds:f.sources.map(v=>v.id),variantIds:f.variants.nodes.map(v=>v.id),name:f.name}}function I(f,v){let _=E(v);if(_)return delete _.organizationId,{id:f,fields:{..._,description:p.q2(_.description)},organizationId:v.organizationId,comment:v.comment}}function E(f){const v=f.fields;if(![v.name,f.comment].find(h=>void 0===h))return{description:v.description,sourceIds:v.sourceIds||[],name:v.name,variantIds:v.variantIds||[],organizationId:f.organizationId}}}}]); \ No newline at end of file diff --git a/server/public/common.9755d85bff8f8ffd.js b/server/public/common.9755d85bff8f8ffd.js deleted file mode 100644 index e1f23f336..000000000 --- a/server/public/common.9755d85bff8f8ffd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2076],{9213:(F,E,t)=>{t.d(E,{l:()=>e});var c=t(177),m=t(5103),p=t(3953);let e=(()=>{class u{static#e=this.\u0275fac=function(y){return new(y||u)};static#t=this.\u0275mod=p.$C({type:u});static#o=this.\u0275inj=p.G2t({imports:[c.MD,m.Y3]})}return u})()},2261:(F,E,t)=>{t.d(E,{h:()=>n});var c=t(3953),m=t(7670),p=t(1672),e=t(5103),u=t(7391);function f(I,l){1&I&&(c.j41(0,"span"),c.EFF(1," You must be logged in to view this page. "),c.k0s())}function g(I,l){1&I&&c.nrm(0,"cvc-login-button")}function y(I,l){1&I&&(c.j41(0,"nz-typography",4),c.nrm(1,"i",5),c.k0s())}let n=(()=>{class I{static#e=this.\u0275fac=function(o){return new(o||I)};static#t=this.\u0275cmp=c.VBU({type:I,selectors:[["cvc-login-prompt"]],decls:7,vars:3,consts:[["contentTpl",""],["footerTpl",""],["emptyImage",""],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["nzType","secondary"],["nz-icon","","nzType","login","nzTheme","outline",2,"font-size","50pt"]],template:function(o,z){if(1&o&&(c.j41(0,"nz-empty",3),c.DNE(1,f,2,0,"ng-template",null,0,c.C5r)(3,g,1,0,"ng-template",null,1,c.C5r),c.k0s(),c.DNE(5,y,2,0,"ng-template",null,2,c.C5r)),2&o){const O=c.sdS(2),P=c.sdS(4),G=c.sdS(6);c.Y8G("nzNotFoundImage",G)("nzNotFoundContent",O)("nzNotFoundFooter",P)}},dependencies:[m.z,p.RW,e.Dn,u.Di],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return I})()},3688:(F,E,t)=>{t.d(E,{A:()=>g});var c=t(177),m=t(400),p=t(1672),e=t(5103),u=t(7391),f=t(3953);let g=(()=>{class y{static#e=this.\u0275fac=function(l){return new(l||y)};static#t=this.\u0275mod=f.$C({type:y});static#o=this.\u0275inj=f.G2t({imports:[c.MD,m.a,p._v,e.Y3,u.kT]})}return y})()},9481:(F,E,t)=>{t.d(E,{W:()=>Y});var c=t(9199),m=t(5964),p=t(4608),e=t(3953),u=t(9145),f=t(177),g=t(5703),y=t(2e3),n=t(7679),I=t(6719),l=t(1774),r=t(1596);const o=d=>({$implicit:d}),z=()=>({xxl:4,xl:2,lg:1,md:1,sm:1,xs:1});function O(d,T){1&d&&e.eu8(0)}function P(d,T){if(1&d&&e.DNE(0,O,1,0,"ng-container",3),2&d){const _=e.XpG().ngIf;e.XpG();const L=e.sdS(4);e.Y8G("ngTemplateOutlet",L)("ngTemplateOutletContext",e.eq3(2,o,_))}}function G(d,T){if(1&d&&(e.qex(0),e.DNE(1,P,1,4,"ng-container"),e.bVm()),2&d){const _=T.ngIf;e.R7$(),e.vxM("GeneVariant"==_.__typename?1:-1)}}function A(d,T){1&d&&e.eu8(0)}function b(d,T){if(1&d&&(e.qex(0),e.DNE(1,A,1,0,"ng-container",3),e.bVm()),2&d){const _=e.XpG(),L=e.sdS(4);e.R7$(),e.Y8G("ngTemplateOutlet",L)("ngTemplateOutletContext",e.eq3(2,o,_.cvcCoordinates))}}function D(d,T){if(1&d&&(e.qex(0),e.j41(1,"nz-descriptions-item",16),e.EFF(2),e.nI1(3,"ifEmpty"),e.k0s(),e.j41(4,"nz-descriptions-item",17),e.EFF(5),e.nI1(6,"ifEmpty"),e.k0s(),e.bVm()),2&d){const _=e.XpG(4).$implicit;e.R7$(2),e.SpI(" ",e.i5U(3,2,_.referenceBases,"--")," "),e.R7$(3),e.SpI(" ",e.i5U(6,5,_.variantBases,"--")," ")}}function M(d,T){if(1&d&&(e.j41(0,"cvc-link-tag",18),e.EFF(1),e.k0s()),2&d){const _=e.XpG().ngIf;e.Y8G("href","http://www.ensembl.org/Homo_sapiens/transview?transcript="+_.representativeTranscript),e.R7$(),e.SpI(" ",_.representativeTranscript," ")}}function h(d,T){1&d&&(e.qex(0),e.EFF(1," -- "),e.bVm())}function C(d,T){if(1&d&&(e.j41(0,"nz-descriptions",10)(1,"nz-descriptions-item",11),e.EFF(2),e.k0s(),e.j41(3,"nz-descriptions-item",12),e.EFF(4),e.k0s(),e.j41(5,"nz-descriptions-item",13),e.EFF(6),e.k0s(),e.DNE(7,D,7,8,"ng-container",2),e.j41(8,"nz-descriptions-item",14),e.DNE(9,M,2,2,"cvc-link-tag",15)(10,h,2,0,"ng-container",2),e.k0s()()),2&d){const _=T.ngIf,L=e.XpG(3).$implicit;e.FS9("nzTitle",L.secondaryCoordinates?"5' Coordinates":"Coordinates"),e.Y8G("nzColumn",e.lJ4(8,z)),e.R7$(2),e.SpI(" ",_.chromosome," "),e.R7$(2),e.SpI(" ",_.start," "),e.R7$(2),e.SpI(" ",_.stop," "),e.R7$(),e.Y8G("ngIf",!L.secondaryCoordinates),e.R7$(2),e.Y8G("ngIf",_.representativeTranscript),e.R7$(),e.Y8G("ngIf",!_.representativeTranscript)}}function s(d,T){if(1&d&&(e.qex(0),e.DNE(1,C,11,9,"nz-descriptions",9),e.bVm()),2&d){const _=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngIf",_.primaryCoordinates)}}function i(d,T){if(1&d&&(e.j41(0,"cvc-link-tag",18),e.EFF(1),e.k0s()),2&d){const _=e.XpG().ngIf;e.Y8G("href","http://www.ensembl.org/Homo_sapiens/transview?transcript="+_.representativeTranscript),e.R7$(),e.SpI(" ",_.representativeTranscript," ")}}function a(d,T){1&d&&(e.qex(0),e.EFF(1," -- "),e.bVm())}function v(d,T){if(1&d&&(e.j41(0,"nz-descriptions",20)(1,"nz-descriptions-item",11),e.EFF(2),e.k0s(),e.j41(3,"nz-descriptions-item",12),e.EFF(4),e.k0s(),e.j41(5,"nz-descriptions-item",13),e.EFF(6),e.k0s(),e.j41(7,"nz-descriptions-item",14),e.DNE(8,i,2,2,"cvc-link-tag",15)(9,a,2,0,"ng-container",2),e.k0s()()),2&d){const _=T.ngIf;e.Y8G("nzColumn",e.lJ4(6,z)),e.R7$(2),e.SpI(" ",_.chromosome," "),e.R7$(2),e.SpI(" ",_.start," "),e.R7$(2),e.SpI(" ",_.stop," "),e.R7$(2),e.Y8G("ngIf",_.representativeTranscript),e.R7$(),e.Y8G("ngIf",!_.representativeTranscript)}}function R(d,T){if(1&d&&(e.qex(0),e.DNE(1,v,10,7,"nz-descriptions",19),e.bVm()),2&d){const _=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngIf",_.secondaryCoordinates)}}function S(d,T){if(1&d&&(e.qex(0),e.j41(1,"nz-descriptions",6)(2,"nz-descriptions-item",7),e.EFF(3),e.k0s(),e.j41(4,"nz-descriptions-item",8),e.EFF(5),e.k0s()(),e.DNE(6,s,2,1,"ng-container",2)(7,R,2,1,"ng-container",2),e.bVm()),2&d){const _=e.XpG().$implicit;e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",_.referenceBuild," "),e.R7$(2),e.SpI(" ",_.ensemblVersion," "),e.R7$(),e.Y8G("ngIf",null==_.primaryCoordinates?null:_.primaryCoordinates.chromosome),e.R7$(),e.Y8G("ngIf",_.secondaryCoordinates)}}function B(d,T){1&d&&e.nrm(0,"cvc-empty-revisable",21)}function K(d,T){if(1&d&&(e.j41(0,"nz-card",4),e.DNE(1,S,8,5,"ng-container",5),e.k0s(),e.DNE(2,B,1,0,"ng-template",null,1,e.C5r)),2&d){const _=T.$implicit,L=e.sdS(3),U=e.XpG();e.Y8G("nzTitle",U.displayTitle?"Representative Variant Coordinates":void 0),e.R7$(),e.Y8G("ngIf",_.referenceBuild)("ngIfElse",L)}}let Y=(()=>{class d{constructor(_){this.gql=_,this.displayTitle=!0}ngOnInit(){if(!this.cvcCoordinates&&!this.cvcVariantId)throw new Error("CvcCoordinatesCard requires valid cvcVariantId or cvcCoordinates Input, none provided.");if(!this.cvcCoordinates&&this.cvcVariantId){this.queryRef=this.gql.watch({variantId:this.cvcVariantId});let _=this.queryRef.valueChanges;this.loading$=_.pipe((0,p.E)("loading"),(0,m.p)(c.kP)),this.variant$=_.pipe((0,p.E)("data","variant"),(0,m.p)(c.kP))}}static#e=this.\u0275fac=function(L){return new(L||d)(e.rXU(u.kWO))};static#t=this.\u0275cmp=e.VBU({type:d,selectors:[["cvc-coordinates-card"]],inputs:{cvcVariantId:"cvcVariantId",cvcCoordinates:"cvcCoordinates",displayTitle:"displayTitle"},decls:5,vars:4,consts:[["coordinateCard",""],["noCoordinates",""],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzTitle"],[4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Ref. Build"],["nzTitle","Ensembl Version"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzTitle","nzColumn",4,"ngIf"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzTitle","nzColumn"],["nzTitle","Chr.","nzColumn","1"],["nzTitle","Start","nzColumn","1"],["nzTitle","Stop","nzColumn","1"],["nzTitle","Transcript","nzColumn","5"],["tooltip","View on Ensembl",3,"href",4,"ngIf"],["nzTitle","Ref. Bases","nzColumn","1"],["nzTitle","Var. Bases","nzColumn","1"],["tooltip","View on Ensembl",3,"href"],["nzTitle","3' Coordinates","nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn",4,"ngIf"],["nzTitle","3' Coordinates","nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["notification","No coordinates specified"]],template:function(L,U){1&L&&(e.DNE(0,G,2,1,"ng-container",2),e.nI1(1,"ngrxPush"),e.DNE(2,b,2,4,"ng-container",2)(3,K,4,3,"ng-template",null,0,e.C5r)),2&L&&(e.Y8G("ngIf",U.cvcVariantId&&e.bMT(1,2,U.variant$)),e.R7$(2),e.Y8G("ngIf",U.cvcCoordinates))},dependencies:[f.bT,f.T3,g.cK,y.xA,y.gr,n.a,I.Q,l.L9,r.r],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions .ant-descriptions-view{border-left:none;border-right:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:first-child .ant-descriptions-view{border-top:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:last-child .ant-descriptions-view{border-bottom:none}"]})}return d})()},7513:(F,E,t)=>{t.d(E,{m:()=>y});var c=t(177),m=t(5703),p=t(2e3),e=t(7054),u=t(8254),f=t(4917),g=t(3953);let y=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=g.$C({type:n});static#o=this.\u0275inj=g.G2t({imports:[c.MD,m.Ti,p.WF,f.i,e.L,u.V]})}return n})()},3988:(F,E,t)=>{t.d(E,{d:()=>D});var c=t(1635),m=t(9417),p=t(1226),e=t(8269),u=t(7593),f=t(1653),g=t(9894);const I=(0,t(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"New Assertion"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!0,watchVariantMolecularProfileId:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{key:"assertionType",type:"type-select",props:{required:!0}},{key:"assertionDirection",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:"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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{xs:24},{md:24,lg:8},{md:24,lg:16}]}},fieldGroup:[{key:"evidenceItemIds",type:"evidence-multi-select",props:{required:!0,isMultiSelect:!0}},{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}},{key:"description",type:"base-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}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Assertion",align:"right"}}]}]}],e.S);var l=t(3953),r=t(9145),o=t(4222),z=t(8927),O=t(1188),P=t(8524),G=t(8721);const A=M=>["/assertions",M,"summary"];function b(M,h){if(1&M&&(l.EFF(0," View your submitted Assertion "),l.j41(1,"a",4),l.EFF(2,"here"),l.k0s(),l.EFF(3,". You will be redirected shortly. ")),2&M){const C=l.XpG();l.R7$(),l.Y8G("routerLink",l.eq3(1,A,C.newAssertionId))}}let D=class x{constructor(h,C){this.submitAssertionGQL=h,this.networkErrorService=C,this.form=new m.J3({}),this.model=e.S,this.fields=I,this.state=new u.o,this.options={formState:this.state},this.submitAssertionMutator=new p.E(C)}onSubmit(h){let C=(0,f.fR)(h);C&&(this.mutationState=this.submitAssertionMutator.mutate(this.submitAssertionGQL,{input:C},void 0,s=>{this.newAssertionId=s.submitAssertion?.assertion.id,this.newAssertionUrl=`/assertions/${this.newAssertionId}/summary`}))}ngAfterViewInit(){this.state.formReady$.next(!0)}ngOnDestroy(){this.options.formState.onDestroy()}static#e=this.\u0275fac=function(C){return new(C||x)(l.rXU(r.B_h),l.rXU(o.N))};static#t=this.\u0275cmp=l.VBU({type:x,selectors:[["cvc-assertion-submit-form"]],decls:5,vars:8,consts:[["success",""],["entityType","Assertion",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"],[3,"routerLink"]],template:function(C,s){if(1&C){const i=l.RV6();l.j41(0,"cvc-form-submission-status-display",1),l.DNE(1,b,4,3,"ng-template",null,0,l.C5r),l.j41(3,"form",2),l.bIt("ngSubmit",function(){return l.eBV(i),l.Njj(s.onSubmit(s.model))}),l.j41(4,"formly-form",3),l.bIt("modelChange",function(v){return l.eBV(i),l.Njj(s.model=v)}),l.k0s()()()}if(2&C){const i=l.sdS(2);l.Y8G("mutationState",s.mutationState)("redirectUrl",s.newAssertionUrl)("successMessage",i),l.R7$(3),l.Y8G("formGroup",s.form),l.R7$(),l.Y8G("form",s.form)("fields",s.fields)("model",s.model)("options",s.options)}},dependencies:[z.CA,O.Wk,m.qT,m.cb,m.j4,P.aF,G.G],encapsulation:2,changeDetection:0})};D=(0,c.Cg)([(0,g.d)()],D)},7242:(F,E,t)=>{t.d(E,{Z:()=>n});var c=t(177),m=t(8927),p=t(513),e=t(2229),u=t(776),f=t(5316),g=t(1188),y=t(3953);let n=(()=>{class I{static#e=this.\u0275fac=function(o){return new(o||I)};static#t=this.\u0275mod=y.$C({type:I});static#o=this.\u0275inj=y.G2t({imports:[c.MD,m.PQ,p.Zw,g.iI,e.m,f.P,u.s]})}return I})()},1724:(F,E,t)=>{t.d(E,{y:()=>y});var c=t(177),m=t(8927),p=t(513),e=t(2229),u=t(776),f=t(5316),g=t(3953);let y=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=g.$C({type:n});static#o=this.\u0275inj=g.G2t({imports:[c.MD,m.PQ,p.Zw,e.m,f.P,u.s]})}return n})()},6905:(F,E,t)=>{t.d(E,{_:()=>h});var c=t(1635),m=t(9417),p=t(1226),e=t(9447),u=t(5540),f=t(9894);const l=(0,t(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Evidence Item"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},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}}]},{wrappers:["form-row"],props:{formRowOptions:{responsive:{xs:24,lg:12,xl:8,xxl:6}}},fieldGroup:[{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:{}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"description",type:"base-textarea",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-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Evidence Item Revisions",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{featureId: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 r=t(3953),o=t(9145),z=t(4222),O=t(177),P=t(8927),G=t(8524),A=t(8721);function b(C,s){if(1&C&&(r.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or you can view them "),r.j41(1,"a",4),r.EFF(2,"here."),r.k0s()),2&C){const i=r.XpG();r.R7$(),r.FS9("href",i.url,r.B4B)}}function D(C,s){if(1&C){const i=r.RV6();r.j41(0,"form",5),r.bIt("ngSubmit",function(){r.eBV(i);const v=r.XpG();return r.Njj(v.onSubmit(v.model))}),r.j41(1,"formly-form",6),r.bIt("modelChange",function(v){r.eBV(i);const R=r.XpG();return r.Njj(R.model=v)}),r.k0s()()}if(2&C){const i=r.XpG();r.Y8G("formGroup",i.form),r.R7$(),r.Y8G("form",i.form)("fields",i.fields)("model",i.model)("options",i.options)}}function M(C,s){1&C&&r.EFF(0," Loading Evidence Item... ")}let h=class j{constructor(s,i,a,v){this.revisableFieldsGQL=s,this.submitRevisionsGQL=i,this.networkErrorService=a,this.cdr=v,this.form=new m.J3({}),this.fields=l,this.state=new e.D,this.state.formMode="revise",this.options={formState:this.state},this.reviseEvidenceMutator=new p.E(a)}ngOnInit(){this.url=`/evidence/${this.evidenceId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({evidenceId:this.evidenceId}).pipe((0,f.s)(this)).subscribe({next:({data:{evidenceItem:s}})=>{s&&(this.model={id:s.id,fields:(0,u.LC)(s)},this.cdr.detectChanges())},error:s=>{console.error("Error retrieving evidenceItem."),console.error(s)},complete:()=>{this.state.formReady$.next(!0),console.log("evidence item retrieved.")}})}onSubmit(s){if(!this.evidenceId)return;let i=(0,u.ep)(this.evidenceId,s);i&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:i}))}ngOnDestroy(){this.options.formState.onDestroy()}static#e=this.\u0275fac=function(i){return new(i||j)(r.rXU(o.V1_),r.rXU(o.m7j),r.rXU(z.N),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:j,selectors:[["cvc-evidence-revise-form"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Evidence Item",3,"mutationState","successMessage","redirectUrl"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(i,a){if(1&i&&(r.j41(0,"cvc-form-submission-status-display",2),r.DNE(1,b,3,1,"ng-template",null,0,r.C5r)(3,D,2,5,"form",3)(4,M,1,0,"ng-template",null,1,r.C5r),r.k0s()),2&i){const v=r.sdS(2),R=r.sdS(5);r.Y8G("mutationState",a.mutationState)("successMessage",v)("redirectUrl",a.url),r.R7$(3),r.Y8G("ngIf",a.model)("ngIfElse",R)}},dependencies:[O.bT,P.CA,m.qT,m.cb,m.j4,G.aF,A.G],encapsulation:2,changeDetection:0})};h=(0,c.Cg)([(0,f.d)()],h)},432:(F,E,t)=>{t.d(E,{Q:()=>y});var c=t(177),m=t(8927),p=t(513),e=t(2229),u=t(776),f=t(5316),g=t(3953);let y=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=g.$C({type:n});static#o=this.\u0275inj=g.G2t({imports:[c.MD,m.PQ,p.Zw,e.m,f.P,u.s]})}return n})()},958:(F,E,t)=>{t.d(E,{m:()=>s});var c=t(1635),m=t(9417),p=t(9894),e=t(1226),u=t(5741);const r=(0,t(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Gene"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"description",type:"base-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-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-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",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0},comment:void 0,organizationId:void 0});var o=t(3953),z=t(9145),O=t(4222),P=t(177),G=t(8927),A=t(8524),b=t(8721);const D=()=>({});function M(i,a){if(1&i&&(o.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),o.j41(1,"a",4),o.EFF(2,"here."),o.k0s()),2&i){const v=o.XpG();o.R7$(),o.FS9("href",v.url,o.B4B)}}function h(i,a){if(1&i){const v=o.RV6();o.j41(0,"form",5),o.bIt("ngSubmit",function(){o.eBV(v);const S=o.XpG();return o.Njj(S.onSubmit(S.model))}),o.j41(1,"formly-form",6),o.bIt("modelChange",function(S){o.eBV(v);const B=o.XpG();return o.Njj(B.model=S)}),o.k0s()()}if(2&i){const v=o.XpG();o.Y8G("formGroup",v.form),o.R7$(),o.Y8G("form",v.form)("fields",v.fields)("model",v.model)("options",o.lJ4(5,D))}}function C(i,a){1&i&&o.EFF(0," Loading Gene... ")}let s=class V{constructor(a,v,R,S){this.revisableFieldsGQL=a,this.submitRevisionsGQL=v,this.networkErrorService=R,this.cdr=S,this.form=new m.J3({}),this.fields=r,this.reviseEvidenceMutator=new e.E(R)}ngOnInit(){this.url=`/features/${this.featureId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({featureId:this.featureId}).pipe((0,p.s)(this)).subscribe({next:({data:{feature:a}})=>{var i;a&&(this.model={id:a.id,fields:(i=a,{description:i.description,sourceIds:i.sources.map(a=>a.id)})},this.cdr.detectChanges())},error:a=>{console.error("Error retrieving Gene."),console.error(a)},complete:()=>{}})}onSubmit(a){if(!this.featureId)return;let v=function g(i,a){const v=a.fields;if(a.comment)return{id:i,fields:{description:u.q2(v.description),sourceIds:v.sourceIds||[]},organizationId:a.organizationId,comment:a.comment}}(this.featureId,a);v&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:v}))}static#e=this.\u0275fac=function(v){return new(v||V)(o.rXU(z.WgR),o.rXU(z.Fll),o.rXU(O.N),o.rXU(o.gRc))};static#t=this.\u0275cmp=o.VBU({type:V,selectors:[["cvc-gene-revise-form"]],inputs:{featureId:"featureId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Gene",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(v,R){if(1&v&&(o.j41(0,"cvc-form-submission-status-display",2),o.DNE(1,M,3,1,"ng-template",null,0,o.C5r)(3,h,2,6,"form",3)(4,C,1,0,"ng-template",null,1,o.C5r),o.k0s()),2&v){const S=o.sdS(2),B=o.sdS(5);o.Y8G("redirectUrl",R.url)("mutationState",R.mutationState)("successMessage",S),o.R7$(3),o.Y8G("ngIf",R.model)("ngIfElse",B)}},dependencies:[P.bT,G.CA,m.qT,m.cb,m.j4,A.aF,b.G],encapsulation:2,changeDetection:0})};s=(0,c.Cg)([(0,p.d)()],s)},7064:(F,E,t)=>{t.d(E,{q:()=>y});var c=t(177),m=t(8927),p=t(513),e=t(2229),u=t(776),f=t(5316),g=t(3953);let y=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=g.$C({type:n});static#o=this.\u0275inj=g.G2t({imports:[c.MD,m.PQ,p.Zw,e.m,f.P,u.s]})}return n})()},4514:(F,E,t)=>{t.d(E,{k:()=>C});var c=t(1635),m=t(9417),p=t(9894),e=t(1226),u=t(5741);const r=(0,t(7480).A)([{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Molecular Profile"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{responsiveIndexed:[{md:24,lg:16},{md:24,lg:8},{xs:24}]}},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).",required:!1,rows:5}},{key:"aliases",type:"tag-multi-input",wrappers:["form-field"],props:{label:"Aliases"},expressions:{"props.disabled":s=>s.options?.formState.isSimpleMp,"props.description":s=>s.options?.formState.isSimpleMp?"Simple Molecular Profiles inherit their Aliases from the corresponding Variant.":"List any aliases commonly used to refer to this Molecular Profile"}},{key:"sourceIds",type:"source-multi-select",wrappers:["form-field"],props:{}}]}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},fieldGroup:[{key:"comment",type:"base-textarea",props:{label:"Comment",required:!0}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Revisions",align:"right"}}]}]}],{id:void 0,clientMutationId:void 0,fields:{description:void 0,sourceIds:void 0,aliases:void 0},comment:void 0,organizationId:void 0});var o=t(3953),z=t(9145),O=t(4222),P=t(177),G=t(8927),A=t(8524),b=t(8721);function D(s,i){if(1&s&&(o.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or can view them "),o.j41(1,"a",4),o.EFF(2,"here."),o.k0s()),2&s){const a=o.XpG();o.R7$(),o.FS9("href",a.url,o.B4B)}}function M(s,i){if(1&s){const a=o.RV6();o.j41(0,"form",5),o.bIt("ngSubmit",function(){o.eBV(a);const R=o.XpG();return o.Njj(R.onSubmit(R.model))}),o.j41(1,"formly-form",6),o.bIt("modelChange",function(R){o.eBV(a);const S=o.XpG();return o.Njj(S.model=R)}),o.k0s()()}if(2&s){const a=o.XpG();o.Y8G("formGroup",a.form),o.R7$(),o.Y8G("form",a.form)("fields",a.fields)("model",a.model)("options",a.options)}}function h(s,i){1&s&&o.EFF(0," Loading Molecular Profile... ")}let C=class W{constructor(i,a,v,R){this.revisableFieldsGQL=i,this.submitRevisionsGQL=a,this.cdr=v,this.form=new m.J3({}),this.options={formState:{isSimpleMp:void 0}},this.fields=r,this.reviseEvidenceMutator=new e.E(R)}ngOnInit(){this.url=`/molecular-profiles/${this.molecularProfileId}/revisions`}ngAfterViewInit(){this.revisableFieldsGQL.fetch({molecularProfileId:this.molecularProfileId}).pipe((0,p.s)(this)).subscribe({next:({data:{molecularProfile:i}})=>{var s;i&&(this.options.formState.isSimpleMp=!i.isComplex,this.model={id:i.id,fields:(s=i,{description:s.description,sourceIds:s.sources.map(i=>i.id),aliases:s.molecularProfileAliases})},this.cdr.detectChanges())},error:i=>{console.error("Error retrieving MolecularProfile."),console.error(i)},complete:()=>{}})}onSubmit(i){if(!this.molecularProfileId)return;let a=function g(s,i){const a=i.fields;if(i.comment)return{id:s,fields:{description:u.q2(a.description),sourceIds:a.sourceIds||[],aliases:a.aliases||[]},organizationId:i.organizationId,comment:i.comment}}(this.molecularProfileId,i);a&&(this.mutationState=this.reviseEvidenceMutator.mutate(this.submitRevisionsGQL,{input:a}))}static#e=this.\u0275fac=function(a){return new(a||W)(o.rXU(z.UK$),o.rXU(z.$rM),o.rXU(o.gRc),o.rXU(O.N))};static#t=this.\u0275cmp=o.VBU({type:W,selectors:[["cvc-mp-revise-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Molecular Profile",3,"redirectUrl","mutationState","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(a,v){if(1&a&&(o.j41(0,"cvc-form-submission-status-display",2),o.DNE(1,D,3,1,"ng-template",null,0,o.C5r)(3,M,2,5,"form",3)(4,h,1,0,"ng-template",null,1,o.C5r),o.k0s()),2&a){const R=o.sdS(2),S=o.sdS(5);o.Y8G("redirectUrl",v.url)("mutationState",v.mutationState)("successMessage",R),o.R7$(3),o.Y8G("ngIf",v.model)("ngIfElse",S)}},dependencies:[P.bT,G.CA,m.qT,m.cb,m.j4,A.aF,b.G],encapsulation:2,changeDetection:0})};C=(0,c.Cg)([(0,p.d)()],C)},7238:(F,E,t)=>{t.d(E,{h:()=>g});var c=t(177),m=t(8927),p=t(513),e=t(2229),u=t(5316),f=t(3953);let g=(()=>{class y{static#e=this.\u0275fac=function(l){return new(l||y)};static#t=this.\u0275mod=f.$C({type:y});static#o=this.\u0275inj=f.G2t({imports:[c.MD,m.PQ,p.Zw,e.m,u.P]})}return y})()},7526:(F,E,t)=>{t.d(E,{T:()=>b});var c=t(1635),m=t(9417),p=t(1226),e=t(3038),u=t(9894),f=t(1413);const y=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Revise Variant Group"}},fieldGroup:[{key:"name",type:"base-input",props:{label:"Variant Group Name",required:!0}},{key:"description",type:"base-textarea",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,requireFeature:!1,showManagerBtn:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{spanIndexed:[24,12,12]}},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",align:"right"}}]}]}];var n=t(3953),I=t(9145),l=t(4222),r=t(177),o=t(8927),z=t(8524),O=t(8721);function P(D,M){if(1&D&&(n.EFF(0," Revision(s) submitted! You will be redirected to the Revisions page or you may view them "),n.j41(1,"a",4),n.EFF(2,"here."),n.k0s()),2&D){const h=n.XpG();n.R7$(),n.FS9("href",h.url,n.B4B)}}function G(D,M){if(1&D){const h=n.RV6();n.j41(0,"form",5),n.bIt("ngSubmit",function(){n.eBV(h);const s=n.XpG();return n.Njj(s.onSubmit(s.model))}),n.j41(1,"formly-form",6),n.bIt("modelChange",function(s){n.eBV(h);const i=n.XpG();return n.Njj(i.model=s)}),n.k0s()()}if(2&D){const h=n.XpG();n.Y8G("formGroup",h.form),n.R7$(),n.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}}function A(D,M){1&D&&n.EFF(0," Loading Variant Group... ")}let b=class ${constructor(M,h,C,s){this.revisableFieldsGQL=M,this.submitRevisionsGQL=h,this.networkErrorService=C,this.cdr=s,this.form=new m.J3({}),this.fields=y,this.state={formReady$:new f.B},this.options={formState:this.state},this.reviseAssertionMutator=new p.E(this.networkErrorService)}onSubmit(M){if(console.log("------ Variant Group Suggestion Added ------"),console.log(M),!this.variantGroupId)return;let h=(0,e.t9)(this.variantGroupId,M);h&&(this.mutationState=this.reviseAssertionMutator.mutate(this.submitRevisionsGQL,{input:h}))}ngOnInit(){this.url=`/variant-groups/${this.variantGroupId}/revisions`}ngOnDestroy(){}ngAfterViewInit(){this.revisableFieldsGQL.fetch({variantGroupId:this.variantGroupId}).pipe((0,u.s)(this)).subscribe({next:({data:{variantGroup:M}})=>{M&&(this.model={id:M.id,fields:(0,e.G_)(M)},this.cdr.detectChanges())},error:M=>{console.error("Error retrieving variantgroupItem."),console.error(M)},complete:()=>{this.state.formReady$.next(!0)}})}static#e=this.\u0275fac=function(h){return new(h||$)(n.rXU(I.FEq),n.rXU(I.IxG),n.rXU(l.N),n.rXU(n.gRc))};static#t=this.\u0275cmp=n.VBU({type:$,selectors:[["cvc-variantgroup-revise-form"]],inputs:{variantGroupId:"variantGroupId"},decls:6,vars:5,consts:[["success",""],["loadingModel",""],["entityType","Variant Group",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],[3,"href"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(h,C){if(1&h&&(n.j41(0,"cvc-form-submission-status-display",2),n.DNE(1,P,3,1,"ng-template",null,0,n.C5r)(3,G,2,5,"form",3)(4,A,1,0,"ng-template",null,1,n.C5r),n.k0s()),2&h){const s=n.sdS(2),i=n.sdS(5);n.Y8G("mutationState",C.mutationState)("redirectUrl",C.url)("successMessage",s),n.R7$(3),n.Y8G("ngIf",C.model)("ngIfElse",i)}},dependencies:[r.bT,o.CA,m.qT,m.cb,m.j4,z.aF,O.G]})};b=(0,c.Cg)([(0,u.d)()],b)},8692:(F,E,t)=>{t.d(E,{j:()=>r});var c=t(177),m=t(8524),p=t(3953),e=t(513),u=t(6389),f=t(5930),g=t(1939);const n={name:"submit-button",component:(()=>{class o extends m.PU{constructor(){super(),this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}static#e=this.\u0275fac=function(P){return new(P||o)};static#t=this.\u0275cmp=p.VBU({type:o,selectors:[["cvc-submit-button-type"]],features:[p.Vt3],decls:3,vars:2,consts:[["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","large",3,"disabled"]],template:function(P,G){1&P&&(p.j41(0,"cvc-form-buttons")(1,"button",0),p.EFF(2),p.k0s()()),2&P&&(p.R7$(),p.Y8G("disabled",!G.form.valid),p.R7$(),p.SpI(" ",G.to.submitLabel," "))},dependencies:[e.aO,u.c,f.p,g.l],encapsulation:2,changeDetection:0})}return o})()};var I=t(3842),l=t(9417);let r=(()=>{class o{static#e=this.\u0275fac=function(P){return new(P||o)};static#t=this.\u0275mod=p.$C({type:o});static#o=this.\u0275inj=p.G2t({imports:[c.MD,l.X1,m.qy.forChild({types:[n]}),e.Zw,I.k]})}return o})()},3038:(F,E,t)=>{t.d(E,{G_:()=>m,bI:()=>e,t9:()=>p});var c=t(5741);function m(u){return{description:u.description,sourceIds:u.sources.map(f=>f.id),variantIds:u.variants.nodes.map(f=>f.id),name:u.name}}function p(u,f){let g=e(f);if(g)return delete g.organizationId,{id:u,fields:{...g,description:c.q2(g.description)},organizationId:f.organizationId,comment:f.comment}}function e(u){const f=u.fields;if(![f.name,u.comment].find(y=>void 0===y))return{description:f.description,sourceIds:f.sourceIds||[],name:f.name,variantIds:f.variantIds||[],organizationId:u.organizationId}}}}]); \ No newline at end of file diff --git a/server/public/index.html b/server/public/index.html index 28c7ffbd0..3b50fcd68 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -21,5 +21,5 @@ - + diff --git a/server/public/main.0aa0f09ec2145cb4.js b/server/public/main.0aa0f09ec2145cb4.js new file mode 100644 index 000000000..eed1439d8 --- /dev/null +++ b/server/public/main.0aa0f09ec2145cb4.js @@ -0,0 +1,5634 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8792],{4709:(Rt,De,c)=>{c.d(De,{H:()=>A,K6:()=>g,Me:()=>L,Ob:()=>B,YL:()=>M,_:()=>r,g8:()=>X,n6:()=>F,oS:()=>V,wE:()=>G});var t=c(9785);function r(x,ne,J){return{r:255*(0,t.Cg)(x,255),g:255*(0,t.Cg)(ne,255),b:255*(0,t.Cg)(J,255)}}function g(x,ne,J){x=(0,t.Cg)(x,255),ne=(0,t.Cg)(ne,255),J=(0,t.Cg)(J,255);var be=Math.max(x,ne,J),Oe=Math.min(x,ne,J),he=0,we=0,me=(be+Oe)/2;if(be===Oe)we=0,he=0;else{var de=be-Oe;switch(we=me>.5?de/(2-be-Oe):de/(be+Oe),be){case x:he=(ne-J)/de+(ne1&&(J-=1),J<1/6?x+6*J*(ne-x):J<.5?ne:J<2/3?x+(ne-x)*(2/3-J)*6:x}function M(x,ne,J){var be,Oe,he;if(x=(0,t.Cg)(x,360),ne=(0,t.Cg)(ne,100),J=(0,t.Cg)(J,100),0===ne)Oe=J,he=J,be=J;else{var we=J<.5?J*(1+ne):J+ne-J*ne,me=2*J-we;be=e(me,we,x+1/3),Oe=e(me,we,x),he=e(me,we,x-1/3)}return{r:255*be,g:255*Oe,b:255*he}}function G(x,ne,J){x=(0,t.Cg)(x,255),ne=(0,t.Cg)(ne,255),J=(0,t.Cg)(J,255);var be=Math.max(x,ne,J),Oe=Math.min(x,ne,J),he=0,we=be,me=be-Oe,de=0===be?0:me/be;if(be===Oe)he=0;else{switch(be){case x:he=(ne-J)/me+(ne>16,g:(65280&x)>>8,b:255&x}}},6681:(Rt,De,c)=>{c.d(De,{D:()=>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"}},4215:(Rt,De,c)=>{c.d(De,{RO:()=>e});var t=c(4709),r=c(6681),g=c(9785);function e(X){var V={r:0,g:0,b:0},x=1,ne=null,J=null,be=null,Oe=!1,he=!1;return"string"==typeof X&&(X=function I(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var V=!1;if(r.D[X])X=r.D[X],V=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var x=w.rgb.exec(X);return x?{r:x[1],g:x[2],b:x[3]}:(x=w.rgba.exec(X))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=w.hsl.exec(X))?{h:x[1],s:x[2],l:x[3]}:(x=w.hsla.exec(X))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=w.hsv.exec(X))?{h:x[1],s:x[2],v:x[3]}:(x=w.hsva.exec(X))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=w.hex8.exec(X))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),a:(0,t.n6)(x[4]),format:V?"name":"hex8"}:(x=w.hex6.exec(X))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),format:V?"name":"hex"}:(x=w.hex4.exec(X))?{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),a:(0,t.n6)(x[4]+x[4]),format:V?"name":"hex8"}:!!(x=w.hex3.exec(X))&&{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),format:V?"name":"hex"}}(X)),"object"==typeof X&&(F(X.r)&&F(X.g)&&F(X.b)?(V=(0,t._)(X.r,X.g,X.b),Oe=!0,he="%"===String(X.r).substr(-1)?"prgb":"rgb"):F(X.h)&&F(X.s)&&F(X.v)?(ne=(0,g.Px)(X.s),J=(0,g.Px)(X.v),V=(0,t.Me)(X.h,ne,J),Oe=!0,he="hsv"):F(X.h)&&F(X.s)&&F(X.l)&&(ne=(0,g.Px)(X.s),be=(0,g.Px)(X.l),V=(0,t.YL)(X.h,ne,be),Oe=!0,he="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(x=X.a)),x=(0,g.TV)(x),{ok:Oe,format:X.format||he,r:Math.min(255,Math.max(V.r,0)),g:Math.min(255,Math.max(V.g,0)),b:Math.min(255,Math.max(V.b,0)),a:x}}var L="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),B="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),A="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),w={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+B),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 F(X){return!!w.CSS_UNIT.exec(String(X))}},9785:(Rt,De,c)=>{function t(B,A){(function g(B){return"string"==typeof B&&-1!==B.indexOf(".")&&1===parseFloat(B)})(B)&&(B="100%");var w=function e(B){return"string"==typeof B&&-1!==B.indexOf("%")}(B);return B=360===A?B:Math.min(A,Math.max(0,parseFloat(B))),w&&(B=parseInt(String(B*A),10)/100),Math.abs(B-A)<1e-6?1:B=360===A?(B<0?B%A+A:B%A)/parseFloat(String(A)):B%A/parseFloat(String(A))}function r(B){return Math.min(1,Math.max(0,B))}function M(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function G(B){return B<=1?"".concat(100*Number(B),"%"):B}function L(B){return 1===B.length?"0"+B:String(B)}c.d(De,{Cg:()=>t,J$:()=>r,Px:()=>G,TV:()=>M,wl:()=>L})},6726:(Rt,De,c)=>{c.d(De,{X:()=>E});var t=c(3953),r=c(177),g=c(1188),e=c(5103),M=c(5699),G=c(1236),L=c(9199),B=c(6354),A=c(5964),w=c(9145),I=c(5703),F=c(2e3),X=c(7679),V=c(1774),x=c(3075);function ne(S,R){if(1&S&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&S){const Y=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",Y.nctId," ")}}function J(S,R){if(1&S&&(t.j41(0,"cvc-link-tag",10),t.EFF(1," View on clinicaltrials.gov "),t.k0s()),2&S){const Y=t.XpG().ngIf;t.Y8G("href",Y.url)}}function be(S,R){if(1&S&&(t.qex(0),t.j41(1,"nz-card",4),t.DNE(2,ne,3,4,"ng-template",null,0,t.C5r)(4,J,2,1,"ng-template",null,1,t.C5r),t.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),t.EFF(8),t.k0s(),t.j41(9,"nz-descriptions-item",7),t.EFF(10),t.k0s(),t.j41(11,"nz-descriptions-item",8),t.EFF(12),t.k0s()()(),t.bVm()),2&S){const Y=R.ngIf,se=t.sdS(3),Be=t.sdS(5);t.R7$(),t.Y8G("nzTitle",se)("nzExtra",Be),t.R7$(5),t.Y8G("nzColumn",2),t.R7$(2),t.SpI(" ",Y.name," "),t.R7$(2),t.SpI(" ",Y.sourceCount," "),t.R7$(2),t.SpI(" ",Y.evidenceCount," ")}}let Oe=(()=>{class S{constructor(Y){this.gql=Y}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,B.T)(({data:Y})=>Y?.clinicalTrials.edges[0]?.node),(0,A.p)(L.kP))}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(w.hzv))};static#t=this.\u0275cmp=t.VBU({type:S,selectors:[["cvc-clinical-trial-popover"]],inputs:{clinicalTrialId:"clinicalTrialId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(se,Be){1&se&&(t.j41(0,"div",2),t.DNE(1,be,13,6,"ng-container",3),t.nI1(2,"ngrxPush"),t.k0s()),2&se&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,Be.clinicalTrial$)))},dependencies:[r.bT,I.cK,e.Dn,F.xA,F.gr,X.a,V.L9,x.R],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}"]})}return S})();function he(S,R){}function we(S,R){if(1&S&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,he,0,0,"ng-template",6),t.k0s(),t.bVm()),2&S){const Y=t.XpG(),se=t.sdS(2);t.R7$(),t.Y8G("routerLink",Y.clinicalTrial.link),t.R7$(),t.Y8G("ngTemplateOutlet",se)}}function me(S,R){}function de(S,R){if(1&S&&t.nrm(0,"cvc-clinical-trial-popover",8),2&S){const Y=t.XpG(2);t.Y8G("clinicalTrialId",Y.clinicalTrial.id)}}function H(S,R){if(1&S&&(t.j41(0,"nz-tag",7),t.DNE(1,me,0,0,"ng-template",6),t.k0s(),t.DNE(2,de,1,1,"ng-template",null,3,t.C5r)),2&S){const Y=t.sdS(3),se=t.XpG(),Be=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",Y)("nzPopoverTrigger",se.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",Be)}}function z(S,R){}function Z(S,R){if(1&S&&t.DNE(0,z,0,0,"ng-template",6),2&S){t.XpG();const Y=t.sdS(2);t.Y8G("ngTemplateOutlet",Y)}}function pe(S,R){if(1&S&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&S){const Y=t.XpG();t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",Y.clinicalTrial.nctId,"\n")}}let E=(()=>{class S{set clinicalTrial(Y){if(!Y)throw new Error("clinical-trial-tag clinicalTrial Input requires LinkableClinicalTrial.");this._clinicalTrial=Y}get clinicalTrial(){return this._clinicalTrial}constructor(){this.linked=!0,this.enablePopover=!0}static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275cmp=t.VBU({type:S,selectors:[["cvc-clinical-trial-tag"]],inputs:{clinicalTrial:"clinicalTrial",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["clinicalTrialPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"clinicalTrialId"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"]],template:function(se,Be){if(1&se&&t.DNE(0,we,3,2,"ng-container",4)(1,H,4,4,"ng-template",null,0,t.C5r)(3,Z,1,1,"ng-template",null,1,t.C5r)(5,pe,3,4,"ng-template",null,2,t.C5r),2&se){const Pt=t.sdS(4);t.Y8G("ngIf",Be.linked)("ngIfElse",Pt)}},dependencies:[r.bT,r.T3,g.Wk,e.Dn,M.s,G.L_,Oe,x.R],styles:["[_nghost-%COMP%]{display:block}"]})}return S})()},9619:(Rt,De,c)=>{c.d(De,{u:()=>F});var t=c(177),r=c(1188),g=c(5699),e=c(1236),M=c(7054),G=c(4917),L=c(5703),B=c(2e3),A=c(5103),w=c(3953);let I=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=w.$C({type:X});static#n=this.\u0275inj=w.G2t({imports:[t.MD,L.Ti,A.Y3,B.WF,M.L,G.i]})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=w.$C({type:X});static#n=this.\u0275inj=w.G2t({imports:[t.MD,r.iI,A.Y3,g.T,e.MC,I,G.i]})}return X})()},1289:(Rt,De,c)=>{c.d(De,{R:()=>we});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(5703),B=c(2e3),A=c(5103),w=c(7391),I=c(7679),F=c(1774),X=c(2287);function V(me,de){if(1&me&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&me){const H=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,H.name,50)," ")}}function x(me,de){if(1&me&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&me){const H=e.XpG(2).ngIf;e.Y8G("href",H.diseaseUrl),e.R7$(),e.SpI(" DOID: ",H.doid," ")}}function ne(me,de){if(1&me&&e.DNE(0,x,2,2,"cvc-link-tag",13),2&me){const H=e.XpG().ngIf,z=e.sdS(7);e.Y8G("ngIf",H.doid)("ngIfElse",z)}}function J(me,de){1&me&&(e.j41(0,"span",15),e.EFF(1,"No DOID"),e.k0s())}function be(me,de){if(1&me&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&me){const H=e.XpG().ngIf;e.R7$(),e.SpI(" ",H.name," ")}}function Oe(me,de){if(1&me&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&me){const H=e.XpG().ngIf;e.R7$(),e.SpI(" ",H.diseaseAliases.join(", ")," ")}}function he(me,de){if(1&me&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,V,3,4,"ng-template",null,0,e.C5r)(4,ne,1,2,"ng-template",null,1,e.C5r)(6,J,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,be,2,1,"nz-descriptions-item",7)(10,Oe,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&me){const H=de.ngIf,z=e.sdS(3),Z=e.sdS(5);e.R7$(),e.Y8G("nzTitle",z)("nzExtra",Z),e.R7$(7),e.Y8G("nzColumn",1),e.R7$(),e.Y8G("ngIf",H.name.length>50),e.R7$(),e.Y8G("ngIf",H.diseaseAliases.length>0),e.R7$(2),e.SpI(" ",H.assertionCount," "),e.R7$(2),e.SpI(" ",H.evidenceItemCount," "),e.R7$(2),e.SpI(" ",H.molecularProfileCount," ")}}let we=(()=>{class me{constructor(H){this.gql=H}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,r.T)(({data:H})=>H?.diseasePopover),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(z){return new(z||me)(e.rXU(M.cs4))};static#t=this.\u0275cmp=e.VBU({type:me,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noDoid",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(z,Z){1&z&&(e.j41(0,"div",3),e.DNE(1,he,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&z&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,Z.disease$)))},dependencies:[G.bT,L.cK,B.xA,B.gr,A.Dn,w.Di,I.a,F.L9,X.H],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}"]})}return me})()},8156:(Rt,De,c)=>{c.d(De,{U:()=>A});var t=c(177),r=c(5703),g=c(2e3),e=c(5103),M=c(7054),G=c(7391),L=c(4917),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.Ti,g.WF,e.Y3,G.kT,L.i,M.L]})}return w})()},9861:(Rt,De,c)=>{c.d(De,{Y:()=>we});var t=c(6514),r=c(3953),g=c(177),e=c(1188),M=c(5699),G=c(1236),L=c(5103),B=c(1289),A=c(2287);const w=me=>({deprecated:me});function I(me,de){}function F(me,de){if(1&me&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,I,0,0,"ng-template",7),r.k0s(),r.bVm()),2&me){const H=r.XpG(),z=r.sdS(2);r.R7$(),r.Y8G("routerLink",H.disease.link),r.R7$(),r.Y8G("ngTemplateOutlet",z)}}function X(me,de){}function V(me,de){if(1&me&&r.nrm(0,"cvc-disease-popover",9),2&me){const H=r.XpG(2);r.Y8G("diseaseId",H.disease.id)}}function x(me,de){if(1&me){const H=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(Z){r.eBV(H);const pe=r.XpG();return r.Njj(pe.itemClosed(Z))}),r.DNE(1,X,0,0,"ng-template",7),r.k0s(),r.DNE(2,V,1,1,"ng-template",null,3,r.C5r)}if(2&me){const H=r.sdS(3),z=r.XpG(),Z=r.sdS(6);r.Y8G("ngClass",r.eq3(6,w,z.disease.deprecated))("nzPopoverMouseEnterDelay",z.onCloseClicked?0:.5)("nzPopoverContent",H)("nzPopoverTrigger",z.enablePopover?"hover":null)("nzMode",z.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",Z)}}function ne(me,de){}function J(me,de){if(1&me&&r.DNE(0,ne,0,0,"ng-template",7),2&me){r.XpG();const H=r.sdS(2);r.Y8G("ngTemplateOutlet",H)}}function be(me,de){if(1&me&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&me){const H=r.XpG(2);r.R7$(),r.SpI(" ",r.i5U(2,1,H.disease.name,27)," ")}}function Oe(me,de){if(1&me&&r.EFF(0),2&me){const H=r.XpG(2);r.SpI(" ",H.disease.name," ")}}function he(me,de){if(1&me&&(r.nrm(0,"i",10),r.DNE(1,be,3,4,"ng-container",5)(2,Oe,1,1,"ng-template",null,4,r.C5r)),2&me){const H=r.sdS(3),z=r.XpG();r.R7$(),r.Y8G("ngIf",z.truncateLongName)("ngIfElse",H)}}let we=(()=>{class me extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set disease(H){if(!H)throw new Error("disease-tag disease Input requires LinkableDisease.");this._disease=H}get disease(){return this._disease}idFunction(){return this.disease.id}static#e=this.\u0275fac=(()=>{let H;return function(Z){return(H||(H=r.xGo(me)))(Z||me)}})();static#t=this.\u0275cmp=r.VBU({type:me,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["diseasePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"diseaseId"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"]],template:function(z,Z){if(1&z&&r.DNE(0,F,3,2,"ng-container",5)(1,x,4,8,"ng-template",null,0,r.C5r)(3,J,1,1,"ng-template",null,1,r.C5r)(5,he,4,2,"ng-template",null,2,r.C5r),2&z){const pe=r.sdS(4);r.Y8G("ngIf",Z.linked)("ngIfElse",pe)}},dependencies:[g.YU,g.bT,g.T3,e.Wk,M.s,G.L_,L.Dn,B.R,A.H],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}"],changeDetection:0})}return me})()},9192:(Rt,De,c)=>{c.d(De,{J:()=>A});var t=c(177),r=c(1188),g=c(5699),e=c(1236),M=c(5103),G=c(8156),L=c(4917),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.iI,g.T,e.MC,M.Y3,L.i,G.U]})}return w})()},8011:(Rt,De,c)=>{c.d(De,{S:()=>en});var t=c(6354),r=c(5964),g=c(9199),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5103),A=c(5703),w=c(7529),I=c(2e3),F=c(5699),X=c(7685),V=c(7391),x=c(9563),ne=c(9861),J=c(7047),be=c(9062),Oe=c(311),he=c(5473),we=c(9973),me=c(1774),de=c(1677),H=c(3075);function z(jt,Vt){if(1&jt&&(e.qex(0),e.nrm(1,"i",18),e.nI1(2,"entityColor"),e.EFF(3),e.bVm()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"EvidenceItem")),e.R7$(2),e.SpI(" ",fn.name," ")}}function Z(jt,Vt){if(1&jt&&e.nrm(0,"cvc-status-tag",19),2&jt){const fn=e.XpG(2).ngIf;e.Y8G("status",fn.status)}}function pe(jt,Vt){1&jt&&(e.j41(0,"nz-space"),e.DNE(1,z,4,4,"ng-container",16)(2,Z,1,1,"cvc-status-tag",17),e.k0s())}function E(jt,Vt){if(1&jt&&e.nrm(0,"cvc-molecular-profile-tag",20),2&jt){const fn=e.XpG().ngIf;e.Y8G("molecularProfile",fn.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function S(jt,Vt){if(1&jt&&(e.qex(0),e.EFF(1),e.bVm()),2&jt){const fn=Vt.ngIf;e.R7$(),e.SpI(" ",fn," ")}}function R(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",22),e.nrm(2,"cvc-mp-tag-name",23),e.k0s(),e.j41(3,"nz-descriptions-item",24),e.nrm(4,"cvc-source-tag",25),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("nameSegments",fn.molecularProfile.parsedName)("enablePopover",!1),e.R7$(2),e.Y8G("source",fn.source)("enablePopover",!1)}}function Y(jt,Vt){if(1&jt&&(e.qex(0),e.nrm(1,"cvc-disease-tag",35),e.bVm()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("enablePopover",!1)("disease",fn.disease)("truncateLongName",!0)}}function se(jt,Vt){1&jt&&e.EFF(0," N/A ")}function Be(jt,Vt){if(1&jt&&(e.j41(0,"span"),e.nrm(1,"cvc-therapy-tag",38),e.k0s()),2&jt){const fn=Vt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("therapy",fn)("truncateLongName",!0)}}function Pt(jt,Vt){if(1&jt&&(e.qex(0),e.EFF(1),e.nI1(2,"titlecase"),e.bVm()),2&jt){const fn=e.XpG(3).ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,fn.therapyInteractionType)," ")}}function vt(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions-item",36),e.DNE(1,Be,2,3,"span",37)(2,Pt,3,3,"ng-container",5),e.k0s()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",fn.therapies),e.R7$(),e.Y8G("ngIf",fn.therapies.length>1)}}function wt(jt,Vt){if(1&jt&&(e.j41(0,"span"),e.nrm(1,"cvc-phenotype-tag",40),e.k0s()),2&jt){const fn=Vt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("phenotype",fn)}}function Le(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions-item",39),e.DNE(1,wt,2,2,"span",37),e.k0s()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",fn.phenotypes)}}function zt(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",26),e.EFF(2),e.k0s(),e.j41(3,"nz-descriptions-item",27),e.EFF(4),e.nI1(5,"evidenceEnumDisplay"),e.k0s(),e.j41(6,"nz-descriptions-item",28),e.EFF(7),e.nI1(8,"evidenceEnumDisplay"),e.k0s(),e.j41(9,"nz-descriptions-item",29),e.EFF(10),e.nI1(11,"evidenceEnumDisplay"),e.k0s(),e.j41(12,"nz-descriptions-item",30),e.EFF(13),e.nrm(14,"i",31),e.k0s(),e.j41(15,"nz-descriptions-item",32),e.DNE(16,Y,2,3,"ng-container",10)(17,se,1,0,"ng-template",null,3,e.C5r),e.k0s(),e.DNE(19,vt,3,2,"nz-descriptions-item",33)(20,Le,2,1,"nz-descriptions-item",34),e.k0s()),2&jt){const fn=e.sdS(18),Hn=e.XpG().ngIf;e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",Hn.evidenceLevel," "),e.R7$(2),e.SpI(" ",e.bMT(5,10,Hn.evidenceType)," "),e.R7$(3),e.SpI(" ",e.bMT(8,12,Hn.evidenceDirection)," "),e.R7$(3),e.SpI(" ",e.bMT(11,14,Hn.significance)," "),e.R7$(3),e.SpI(" ",Hn.evidenceRating,""),e.R7$(3),e.Y8G("ngIf",Hn.disease)("ngIfElse",fn),e.R7$(3),e.Y8G("ngIf",Hn.therapies.length>0),e.R7$(),e.Y8G("ngIf",Hn.phenotypes.length>0)}}function xt(jt,Vt){if(1&jt&&(e.j41(0,"a",41)(1,"nz-tag",42),e.nrm(2,"i",43),e.EFF(3),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/flags"),e.R7$(3),e.SpI(" Flags (",fn.flags.totalCount,") ")}}function st(jt,Vt){if(1&jt&&(e.j41(0,"a",41)(1,"nz-tag",44),e.nrm(2,"i",45),e.EFF(3),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",fn.revisions.totalCount,") ")}}function Ct(jt,Vt){if(1&jt&&(e.j41(0,"a",41)(1,"nz-tag",46),e.nrm(2,"i",47),e.EFF(3),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/comments"),e.R7$(3),e.SpI(" Comments (",fn.comments.totalCount,") ")}}function It(jt,Vt){if(1&jt&&(e.qex(0),e.j41(1,"nz-card",6),e.DNE(2,pe,3,0,"ng-template",null,1,e.C5r)(4,E,1,3,"ng-template",null,2,e.C5r),e.j41(6,"nz-row")(7,"nz-col",7)(8,"div",8)(9,"p",9),e.DNE(10,S,2,1,"ng-container",10),e.k0s()()()(),e.j41(11,"nz-space",11),e.DNE(12,R,5,5,"nz-descriptions",12)(13,zt,21,16,"nz-descriptions",12),e.k0s(),e.j41(14,"nz-row",13)(15,"nz-col",7)(16,"nz-space",14),e.DNE(17,xt,4,3,"a",15)(18,st,4,3,"a",15)(19,Ct,4,3,"a",15),e.k0s()()()(),e.bVm()),2&jt){const fn=Vt.ngIf,Hn=e.sdS(3),zn=e.sdS(5);e.XpG();const bt=e.sdS(4);e.R7$(),e.Y8G("nzTitle",Hn)("nzExtra",zn),e.R7$(8),e.Y8G("nzEllipsisRows",4),e.R7$(),e.Y8G("ngIf",fn.description)("ngIfElse",bt)}}function Tt(jt,Vt){1&jt&&e.EFF(0," Evidence item has not been provided a description.\n")}let en=(()=>{class jt{constructor(fn){this.gql=fn}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.T)(({data:fn})=>fn?.evidenceItem),(0,r.p)(g.kP))}static#e=this.\u0275fac=function(Hn){return new(Hn||jt)(e.rXU(M.XUB))};static#t=this.\u0275cmp=e.VBU({type:jt,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["noDescription",""],["cardTitle",""],["molecularProfile",""],["noDisease",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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"],["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(Hn,zn){1&Hn&&(e.j41(0,"div",4),e.DNE(1,It,20,5,"ng-container",5),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,Tt,1,0,"ng-template",null,0,e.C5r)),2&Hn&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,zn.evidence$)))},dependencies:[G.Sq,G.bT,L.Wk,B.Dn,A.cK,w.Uq,w.e,I.xA,I.gr,F.s,X.U5,X.Dq,V.Di,x.R,ne.Y,J.A,be.D,Oe.g,he.z,we.G,G.PV,me.L9,de.pW,H.R],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}"]})}return jt})()},4666:(Rt,De,c)=>{c.d(De,{v:()=>Oe});var t=c(177),r=c(5703),g=c(7529),e=c(2e3),M=c(1188),G=c(5699),L=c(9192),B=c(1542),A=c(7685),w=c(5103),I=c(4917),F=c(1209),X=c(9590),V=c(7391),x=c(1448),ne=c(996),J=c(9802),be=c(3953);let Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=be.$C({type:he});static#n=this.\u0275inj=be.G2t({imports:[t.MD,M.iI,w.Y3,r.Ti,g.f3,e.WF,G.T,A.pc,V.kT,I.i,J._,L.J,B.X,F.k,X.R,ne.o,x.B]})}return he})()},1429:(Rt,De,c)=>{c.d(De,{X:()=>H});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5703),A=c(7529),w=c(2e3),I=c(5699),F=c(5103),X=c(7685),V=c(1774),x=c(3075);function ne(z,Z){if(1&z&&(e.nrm(0,"i",12),e.nI1(1,"entityColor"),e.EFF(2)),2&z){const pe=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,3,"Feature")),e.R7$(2),e.Lme(" ",pe.featureInstance.__typename," - ",pe.name," ")}}function J(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",13),e.EFF(1),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.SpI(" ",pe.fullName," ")}}function be(z,Z){if(1&z&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&z){const pe=Z.$implicit;e.R7$(),e.JRh(pe)}}function Oe(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",14),e.DNE(1,be,2,1,"nz-tag",15),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",pe.featureAliases)}}function he(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",17),e.nrm(2,"i",18),e.EFF(3),e.k0s()()),2&z){const pe=e.XpG().ngIf;e.Mz_("routerLink","/features/",pe.id,"/flags"),e.R7$(3),e.SpI(" Flags (",pe.flags.totalCount,") ")}}function we(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",19),e.nrm(2,"i",20),e.EFF(3," Revisions "),e.k0s()()),2&z){const pe=e.XpG().ngIf;e.Mz_("routerLink","/features/",pe.id,"/revisions")}}function me(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",21),e.nrm(2,"i",22),e.EFF(3," Comments "),e.k0s()()),2&z){const pe=e.XpG().ngIf;e.Mz_("routerLink","/features/",pe.id,"/comments")}}function de(z,Z){if(1&z&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,ne,3,5,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",4),e.DNE(5,J,2,1,"nz-descriptions-item",5)(6,Oe,2,1,"nz-descriptions-item",6),e.j41(7,"nz-descriptions-item",7),e.EFF(8),e.k0s()(),e.j41(9,"nz-row",8)(10,"nz-col",9)(11,"nz-space",10),e.DNE(12,he,4,3,"a",11)(13,we,4,2,"a",11)(14,me,4,2,"a",11),e.k0s()()()(),e.bVm()),2&z){const pe=Z.ngIf,E=e.sdS(3);e.R7$(),e.Y8G("nzTitle",E),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",pe.fullName),e.R7$(),e.Y8G("ngIf",pe.featureAliases.length>0),e.R7$(2),e.SpI(" ",pe.variants.totalCount," ")}}let H=(()=>{class z{constructor(pe){this.gql=pe}ngOnInit(){if(null==this.featureId)throw new Error("cvc-feature-popover requires valid featureId input.");this.feature$=this.gql.watch({featureId:this.featureId}).valueChanges.pipe((0,r.T)(({data:pe})=>pe?.feature),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(E){return new(E||z)(e.rXU(M.AsH))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["cvc-feature-popover"]],inputs:{featureId:"featureId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","2","nzTitle","Full Name",4,"ngIf"],["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-feature",3,"nzTwotoneColor"],["nzSpan","2","nzTitle","Full Name"],["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(E,S){1&E&&(e.j41(0,"div",1),e.DNE(1,de,15,5,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&E&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,S.feature$)))},dependencies:[G.Sq,G.bT,L.Wk,B.cK,A.Uq,A.e,w.xA,w.gr,I.s,F.Dn,X.U5,X.Dq,V.L9,x.R],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}"]})}return z})()},5928:(Rt,De,c)=>{c.d(De,{o:()=>I});var t=c(177),r=c(1188),g=c(4917),e=c(5703),M=c(2e3),G=c(7529),L=c(5103),B=c(7685),A=c(5699),w=c(3953);let I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=w.$C({type:F});static#n=this.\u0275inj=w.G2t({imports:[t.MD,r.iI,e.Ti,G.f3,M.WF,A.T,L.Y3,B.pc,g.i]})}return F})()},3245:(Rt,De,c)=>{c.d(De,{_:()=>H});var t=c(6514),r=c(505),g=c(3953),e=c(177),M=c(1188),G=c(5699),L=c(1236),B=c(5103),A=c(1429),w=c(2387),I=c(2287),F=c(3075);const X=z=>({deprecated:z});function V(z,Z){}function x(z,Z){if(1&z&&(g.qex(0),g.j41(1,"a",6),g.DNE(2,V,0,0,"ng-template",7),g.k0s(),g.bVm()),2&z){const pe=g.XpG(),E=g.sdS(2);g.R7$(),g.Y8G("routerLink",pe.feature.link),g.R7$(),g.Y8G("ngTemplateOutlet",E)}}function ne(z,Z){}function J(z,Z){if(1&z&&g.nrm(0,"cvc-feature-popover",9),2&z){const pe=g.XpG(2);g.Y8G("featureId",pe.feature.id)}}function be(z,Z){if(1&z){const pe=g.RV6();g.j41(0,"nz-tag",8),g.bIt("nzOnClose",function(S){g.eBV(pe);const R=g.XpG();return g.Njj(R.itemClosed(S))}),g.DNE(1,ne,0,0,"ng-template",7),g.k0s(),g.DNE(2,J,1,1,"ng-template",null,3,g.C5r)}if(2&z){const pe=g.sdS(3),E=g.XpG(),S=g.sdS(6);g.Y8G("ngClass",g.eq3(6,X,E.feature.deprecated))("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",pe)("nzPopoverTrigger",E.enablePopover?"hover":null)("nzMode",E.onCloseClicked?"closeable":"default"),g.R7$(),g.Y8G("ngTemplateOutlet",S)}}function Oe(z,Z){}function he(z,Z){if(1&z&&g.DNE(0,Oe,0,0,"ng-template",7),2&z){g.XpG();const pe=g.sdS(2);g.Y8G("ngTemplateOutlet",pe)}}function we(z,Z){if(1&z&&(g.qex(0),g.EFF(1),g.nI1(2,"truncate"),g.bVm()),2&z){const pe=g.XpG(2);g.R7$(),g.SpI(" ",g.i5U(2,1,pe.feature.name,12)," ")}}function me(z,Z){if(1&z&&g.EFF(0),2&z){const pe=g.XpG(2);g.SpI(" ",pe.feature.name," ")}}function de(z,Z){if(1&z&&(g.j41(0,"cvc-icon-badges",10),g.nrm(1,"i",11),g.nI1(2,"entityColor"),g.k0s(),g.DNE(3,we,3,4,"ng-container",5)(4,me,1,1,"ng-template",null,4,g.C5r)),2&z){const pe=g.sdS(5),E=g.XpG();g.Y8G("flagged",E.feature.flagged)("entityColor",E.iconColor),g.R7$(),g.Y8G("nzTwotoneColor",g.bMT(2,5,"Feature")),g.R7$(2),g.Y8G("ngIf",E.truncateLongName)("ngIfElse",pe)}}let H=(()=>{class z extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,r.P)("Gene")}idFunction(){return this.feature.id}ngOnInit(){if(super.ngOnInit(),void 0===this.feature)throw new Error("cvc-feature-tag requires LinkableFeature input, none supplied.")}static#e=this.\u0275fac=function(E){return new(E||z)};static#t=this.\u0275cmp=g.VBU({type:z,selectors:[["cvc-feature-tag"]],inputs:{feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[g.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["featurePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"featureId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-feature","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,S){if(1&E&&g.DNE(0,x,3,2,"ng-container",5)(1,be,4,8,"ng-template",null,0,g.C5r)(3,he,1,1,"ng-template",null,1,g.C5r)(5,de,6,7,"ng-template",null,2,g.C5r),2&E){const R=g.sdS(4);g.Y8G("ngIf",S.linked)("ngIfElse",R)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.s,L.L_,B.Dn,A.X,w.N,I.H,F.R],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})}return z})()},6912:(Rt,De,c)=>{c.d(De,{l:()=>I});var t=c(177),r=c(1188),g=c(5699),e=c(5103),M=c(1236),G=c(4917),L=c(3146),B=c(4994),A=c(5928),w=c(3953);let I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=w.$C({type:F});static#n=this.\u0275inj=w.G2t({imports:[t.MD,r.iI,g.T,M.MC,e.Y3,L.W2,G.i,A.o,B.a]})}return F})()},5761:(Rt,De,c)=>{c.d(De,{q:()=>pe});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5703),A=c(7529),w=c(2e3),I=c(5699),F=c(5103),X=c(7685),V=c(7855),x=c(9973),ne=c(1774);function J(E,S){if(1&E&&(e.nrm(0,"i",16),e.EFF(1)),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.name," ")}}function be(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.evidenceItems.totalCount," ")}}function Oe(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",18),e.EFF(1),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.assertions.totalCount," ")}}function he(E,S){if(1&E&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&E){const R=S.$implicit;e.R7$(),e.JRh(R)}}function we(E,S){if(1&E&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,he,2,1,"nz-tag",19),e.k0s(),e.bVm()),2&E){const R=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",R.molecularProfileAliases)}}function me(E,S){1&E&&(e.j41(0,"span",20),e.EFF(1,"None specified"),e.k0s())}function de(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/flags"),e.R7$(3),e.SpI(" Flags (",R.flags.totalCount,") ")}}function H(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",R.revisions.totalCount,") ")}}function z(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",26),e.nrm(2,"i",27),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/comments"),e.R7$(3),e.SpI(" Comments (",R.comments.totalCount,") ")}}function Z(E,S){if(1&E&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,J,2,1,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",5)(5,"nz-descriptions-item",6),e.nrm(6,"cvc-mp-tag-name",7),e.k0s(),e.DNE(7,be,2,1,"nz-descriptions-item",8)(8,Oe,2,1,"nz-descriptions-item",9),e.j41(9,"nz-descriptions-item",10),e.DNE(10,we,3,1,"ng-container",11)(11,me,2,0,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(13,"nz-row",12)(14,"nz-col",13)(15,"nz-space",14),e.DNE(16,de,4,3,"a",15)(17,H,4,3,"a",15)(18,z,4,3,"a",15),e.k0s()()()(),e.bVm()),2&E){const R=S.ngIf,Y=e.sdS(3),se=e.sdS(12);e.R7$(),e.Y8G("nzTitle",Y),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("nameSegments",R.parsedName)("enablePopover",!1),e.R7$(),e.Y8G("ngIf",R.evidenceItems.totalCount>0),e.R7$(),e.Y8G("ngIf",R.assertions.totalCount>0),e.R7$(2),e.Y8G("ngIf",R.molecularProfileAliases.length>0)("ngIfElse",se)}}let pe=(()=>{class E{constructor(R){this.gql=R}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,r.T)(({data:R})=>R?.molecularProfile),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Y){return new(Y||E)(e.rXU(M.fvu))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-molecular-profile-popover"]],inputs:{molecularProfileId:"molecularProfileId"},decls:3,vars:3,consts:[["cardTitle",""],["noAliases",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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"],["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(Y,se){1&Y&&(e.j41(0,"div",2),e.DNE(1,Z,19,8,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Y&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.molecularProfile$)))},dependencies:[G.Sq,G.bT,L.Wk,B.cK,A.Uq,A.e,w.xA,w.gr,I.s,F.Dn,X.U5,X.Dq,V.M,x.G,ne.L9],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}"]})}return E})()},8052:(Rt,De,c)=>{c.d(De,{b:()=>V});var t=c(177),r=c(1188),g=c(5703),e=c(7529),M=c(2e3),G=c(5699),L=c(5103),B=c(7685),A=c(7054),w=c(1448),I=c(2142),F=c(6912),X=c(3953);let V=(()=>{class x{static#e=this.\u0275fac=function(be){return new(be||x)};static#t=this.\u0275mod=X.$C({type:x});static#n=this.\u0275inj=X.G2t({imports:[t.MD,r.iI,g.Ti,e.f3,M.WF,G.T,L.Y3,B.pc,F.l,A.L,I.x,w.B]})}return x})()},9973:(Rt,De,c)=>{c.d(De,{G:()=>F});var t=c(3953),r=c(177),g=c(3100),e=c(3245),M=c(4247);const G=X=>[X];function L(X,V){if(1&X&&t.nrm(0,"span",3),2&X){const x=t.XpG().$implicit;t.Y8G("innerHtml",x.text,t.npT)}}function B(X,V){if(1&X&&t.nrm(0,"cvc-feature-tag",6),2&X){const x=t.XpG().$implicit,ne=t.XpG(3);t.Y8G("feature",x)("enablePopover",ne.enablePopover)}}function A(X,V){if(1&X&&(t.qex(0),t.DNE(1,B,1,2,"cvc-feature-tag",5),t.bVm()),2&X){const x=V.$implicit;t.R7$(),t.Y8G("ngIf","Feature"==x.__typename)}}function w(X,V){if(1&X&&(t.qex(0),t.j41(1,"cvc-tag-group"),t.DNE(2,A,2,1,"ng-container",0),t.nrm(3,"cvc-variant-tag",4),t.k0s(),t.bVm()),2&X){const x=t.XpG(),ne=x.$implicit,J=x.index,be=t.XpG();t.R7$(2),t.Y8G("ngForOf",t.eq3(3,G,be.nameSegments[J-1])),t.R7$(),t.Y8G("variant",ne)("enablePopover",be.enablePopover)}}function I(X,V){if(1&X&&(t.qex(0),t.DNE(1,L,1,1,"span",1)(2,w,4,5,"ng-container",2),t.bVm()),2&X){const x=V.$implicit;t.R7$(),t.Y8G("ngIf","MolecularProfileTextSegment"==x.__typename),t.R7$(),t.Y8G("ngIf","Variant"==x.__typename)}}let F=(()=>{class X{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.")}static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275cmp=t.VBU({type:X,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,"feature","enablePopover",4,"ngIf"],[3,"feature","enablePopover"]],template:function(ne,J){1&ne&&t.DNE(0,I,3,2,"ng-container",0),2&ne&&t.Y8G("ngForOf",J.nameSegments)},dependencies:[r.Sq,r.bT,g.V,e._,M.L],styles:[".text-segment[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;font-weight:700;color:#0009;font-size:14px;line-height:12px}"]})}return X})()},1448:(Rt,De,c)=>{c.d(De,{B:()=>B});var t=c(177),r=c(7051),g=c(5699),e=c(5103),M=c(2502),G=c(6912),L=c(3953);let B=(()=>{class A{static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275mod=L.$C({type:A});static#n=this.\u0275inj=L.G2t({imports:[t.MD,g.T,e.Y3,r.U,G.l,M.u]})}return A})()},5473:(Rt,De,c)=>{c.d(De,{z:()=>E});var t=c(6514),r=c(505),g=c(3953),e=c(177),M=c(1188),G=c(5699),L=c(1236),B=c(5103),A=c(5761),w=c(2387),I=c(2287),F=c(3075);const X=S=>({deprecated:S});function V(S,R){}function x(S,R){if(1&S&&(g.qex(0),g.j41(1,"a",7),g.DNE(2,V,0,0,"ng-template",8),g.k0s(),g.bVm()),2&S){const Y=g.XpG(),se=g.sdS(2);g.R7$(),g.Y8G("routerLink",Y.molecularProfile.link),g.R7$(),g.Y8G("ngTemplateOutlet",se)}}function ne(S,R){}function J(S,R){if(1&S){const Y=g.RV6();g.j41(0,"nz-tag",10),g.bIt("nzOnClose",function(Be){g.eBV(Y);const Pt=g.XpG(2);return g.Njj(Pt.itemClosed(Be))}),g.DNE(1,ne,0,0,"ng-template",8),g.k0s()}if(2&S){g.XpG();const Y=g.sdS(2),se=g.XpG(),Be=g.sdS(8);g.Y8G("ngClass",g.eq3(5,X,se.molecularProfile.deprecated))("nzPopoverMouseEnterDelay",se.onCloseClicked?0:.5)("nzPopoverContent",Y)("nzMode",se.onCloseClicked?"closeable":"default"),g.R7$(),g.Y8G("ngTemplateOutlet",Be)}}function be(S,R){if(1&S&&g.nrm(0,"cvc-molecular-profile-popover",12),2&S){const Y=g.XpG(3);g.Y8G("molecularProfileId",Y.molecularProfile.id)}}function Oe(S,R){if(1&S&&g.DNE(0,be,1,1,"cvc-molecular-profile-popover",11),2&S){const Y=g.XpG(2);g.Y8G("ngIf",Y.enablePopover)}}function he(S,R){if(1&S&&g.DNE(0,J,2,7,"nz-tag",9)(1,Oe,1,1,"ng-template",null,4,g.C5r),2&S){const Y=g.XpG(),se=g.sdS(4);g.Y8G("ngIf",Y.enablePopover)("ngIfElse",se)}}function we(S,R){}function me(S,R){if(1&S){const Y=g.RV6();g.j41(0,"nz-tag",13),g.bIt("nzOnClose",function(Be){g.eBV(Y);const Pt=g.XpG();return g.Njj(Pt.itemClosed(Be))}),g.DNE(1,we,0,0,"ng-template",8),g.k0s()}if(2&S){const Y=g.XpG(),se=g.sdS(8);g.Y8G("nzMode",Y.onCloseClicked?"closeable":"default")("ngClass",g.eq3(3,X,Y.molecularProfile.deprecated)),g.R7$(),g.Y8G("ngTemplateOutlet",se)}}function de(S,R){}function H(S,R){if(1&S&&g.DNE(0,de,0,0,"ng-template",8),2&S){g.XpG();const Y=g.sdS(2);g.Y8G("ngTemplateOutlet",Y)}}function z(S,R){if(1&S&&(g.qex(0),g.EFF(1),g.nI1(2,"truncate"),g.bVm()),2&S){const Y=g.XpG(2);g.R7$(),g.SpI(" ",g.i5U(2,1,Y.molecularProfile.name,Y.truncationLength)," ")}}function Z(S,R){if(1&S&&g.EFF(0),2&S){const Y=g.XpG(2);g.SpI(" ",Y.molecularProfile.name," ")}}function pe(S,R){if(1&S&&(g.j41(0,"cvc-icon-badges",14),g.nrm(1,"i",15),g.nI1(2,"entityColor"),g.k0s(),g.DNE(3,z,3,4,"ng-container",6)(4,Z,1,1,"ng-template",null,5,g.C5r)),2&S){const Y=g.sdS(5),se=g.XpG();g.Y8G("flagged",se.molecularProfile.flagged)("entityColor",se.iconColor),g.R7$(),g.Y8G("nzTwotoneColor",g.bMT(2,5,"MolecularProfile")),g.R7$(2),g.Y8G("ngIf",se.truncateLongName)("ngIfElse",Y)}}let E=(()=>{class S extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.truncationLength=20,this.iconColor=(0,r.P)("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(Y=>"text"in Y?Y.text:Y.name).join(" "))}static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275cmp=g.VBU({type:S,selectors:[["cvc-molecular-profile-tag"]],inputs:{molecularProfile:"molecularProfile",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[g.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["nz-popover","","nzPopoverTrigger","hover",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode"],[3,"molecularProfileId",4,"ngIf"],[3,"molecularProfileId"],[3,"nzOnClose","nzMode","ngClass"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-molecularprofile","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(se,Be){if(1&se&&g.DNE(0,x,3,2,"ng-container",6)(1,he,3,2,"ng-template",null,0,g.C5r)(3,me,2,5,"ng-template",null,1,g.C5r)(5,H,1,1,"ng-template",null,2,g.C5r)(7,pe,6,7,"ng-template",null,3,g.C5r),2&se){const Pt=g.sdS(6);g.Y8G("ngIf",Be.linked)("ngIfElse",Pt)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.s,L.L_,B.Dn,A.q,w.N,I.H,F.R],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})}return S})()},996:(Rt,De,c)=>{c.d(De,{o:()=>w});var t=c(177),r=c(1188),g=c(5699),e=c(5103),M=c(1236),G=c(4917),L=c(8052),B=c(4994),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,r.iI,g.T,M.MC,e.Y3,G.i,L.b,B.a]})}return I})()},6564:(Rt,De,c)=>{c.d(De,{F:()=>x});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(5103),B=c(5703),A=c(7679),w=c(2e3),I=c(1774);function F(ne,J){if(1&ne&&(e.nrm(0,"i",9),e.EFF(1)),2&ne){const be=e.XpG().ngIf;e.R7$(),e.SpI(" ",be.name," ")}}function X(ne,J){if(1&ne&&(e.j41(0,"cvc-link-tag",10),e.EFF(1),e.k0s()),2&ne){const be=e.XpG().ngIf;e.Y8G("href",be.url),e.R7$(),e.SpI(" ",be.hpoId," ")}}function V(ne,J){if(1&ne&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,F,2,1,"ng-template",null,0,e.C5r)(4,X,2,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",7),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",8),e.EFF(12),e.k0s()()(),e.bVm()),2&ne){const be=J.ngIf,Oe=e.sdS(3),he=e.sdS(5);e.R7$(),e.Y8G("nzTitle",Oe)("nzExtra",he),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",be.assertionCount," "),e.R7$(2),e.SpI(" ",be.evidenceItemCount," "),e.R7$(2),e.SpI(" ",be.molecularProfileCount," ")}}let x=(()=>{class ne{constructor(be){this.gql=be}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,r.T)(({data:be})=>be?.phenotypePopover),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Oe){return new(Oe||ne)(e.rXU(M.WeE))};static#t=this.\u0275cmp=e.VBU({type:ne,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(Oe,he){1&Oe&&(e.j41(0,"div",2),e.DNE(1,V,13,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Oe&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,he.phenotype$)))},dependencies:[G.bT,L.Dn,B.cK,A.a,w.xA,w.gr,I.L9],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}"]})}return ne})()},2582:(Rt,De,c)=>{c.d(De,{y:()=>L});var t=c(177),r=c(5703),g=c(7054),e=c(2e3),M=c(5103),G=c(3953);let L=(()=>{class B{static#e=this.\u0275fac=function(I){return new(I||B)};static#t=this.\u0275mod=G.$C({type:B});static#n=this.\u0275inj=G.G2t({imports:[t.MD,M.Y3,r.Ti,g.L,e.WF]})}return B})()},7047:(Rt,De,c)=>{c.d(De,{A:()=>he});var t=c(6514),r=c(3953),g=c(177),e=c(1188),M=c(5699),G=c(1236),L=c(5103),B=c(6564),A=c(3075);function w(we,me){}function I(we,me){if(1&we&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,w,0,0,"ng-template",7),r.k0s(),r.bVm()),2&we){const de=r.XpG(),H=r.sdS(2);r.R7$(),r.Y8G("routerLink",de.phenotype.link),r.R7$(),r.Y8G("ngTemplateOutlet",H)}}function F(we,me){}function X(we,me){if(1&we&&r.nrm(0,"cvc-phenotype-popover",9),2&we){const de=r.XpG(2);r.Y8G("phenotypeId",de.phenotype.id)}}function V(we,me){if(1&we){const de=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(z){r.eBV(de);const Z=r.XpG();return r.Njj(Z.itemClosed(z))}),r.DNE(1,F,0,0,"ng-template",7),r.k0s(),r.DNE(2,X,1,1,"ng-template",null,4,r.C5r)}if(2&we){const de=r.sdS(3),H=r.XpG(),z=r.sdS(8);r.Y8G("nzPopoverMouseEnterDelay",H.onCloseClicked?0:.5)("nzPopoverContent",de)("nzPopoverTrigger",H.enablePopover?"hover":null)("nzMode",H.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",z)}}function x(we,me){}function ne(we,me){if(1&we){const de=r.RV6();r.j41(0,"nz-tag",10),r.bIt("nzOnClose",function(z){r.eBV(de);const Z=r.XpG();return r.Njj(Z.itemClosed(z))}),r.DNE(1,x,0,0,"ng-template",7),r.k0s()}if(2&we){const de=r.XpG(),H=r.sdS(8);r.Y8G("nzMode",de.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",H)}}function J(we,me){}function be(we,me){if(1&we&&r.DNE(0,J,0,0,"ng-template",7),2&we){r.XpG();const de=r.sdS(2);r.Y8G("ngTemplateOutlet",de)}}function Oe(we,me){if(1&we&&(r.nrm(0,"i",11),r.nI1(1,"entityColor"),r.EFF(2)),2&we){const de=r.XpG();r.Y8G("nzTwotoneColor",r.bMT(1,2,"Phenotype")),r.R7$(2),r.SpI(" ",de.phenotype.name,"\n")}}let he=(()=>{class we extends t.s{constructor(){super(...arguments),this.enablePopover=!0}set phenotype(de){if(!de)throw new Error("phenotype-tag phentype input requires LinkablePhenotype.");this._phenotype=de}get phenotype(){return this._phenotype}idFunction(){return this.phenotype.id}static#e=this.\u0275fac=(()=>{let de;return function(z){return(de||(de=r.xGo(we)))(z||we)}})();static#t=this.\u0275cmp=r.VBU({type:we,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[r.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["phenotypePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"phenotypeId"],[3,"nzOnClose","nzMode"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"]],template:function(H,z){if(1&H&&r.DNE(0,I,3,2,"ng-container",5)(1,V,4,5,"ng-template",null,0,r.C5r)(3,ne,2,2,"ng-template",null,1,r.C5r)(5,be,1,1,"ng-template",null,2,r.C5r)(7,Oe,3,4,"ng-template",null,3,r.C5r),2&H){const Z=r.sdS(6);r.Y8G("ngIf",z.linked)("ngIfElse",Z)}},dependencies:[g.bT,g.T3,e.Wk,M.s,G.L_,L.Dn,B.F,A.R],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return we})()},1542:(Rt,De,c)=>{c.d(De,{X:()=>A});var t=c(177),r=c(1188),g=c(4917),e=c(5103),M=c(1236),G=c(5699),L=c(2582),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.iI,G.T,M.MC,e.Y3,L.y,g.i]})}return w})()},2387:(Rt,De,c)=>{c.d(De,{N:()=>A});var t=c(505),r=c(3953),g=c(177);const e=["*"],M=w=>({background:w});function G(w,I){if(1&w&&r.nrm(0,"div",3),2&w){const F=r.XpG();r.Y8G("ngStyle",r.eq3(1,M,F.flagColor))}}function L(w,I){if(1&w&&r.nrm(0,"div",4),2&w){const F=r.XpG();r.Y8G("ngStyle",r.eq3(1,M,F.entityColor))}}function B(w,I){if(1&w&&r.nrm(0,"div",5),2&w){const F=r.XpG();r.Y8G("ngStyle",r.eq3(1,M,F.entityColor))}}let A=(()=>{class w{constructor(){this.hasRevisions=!1,this.flagged=!1,this.hasComments=!1,this.entityColor="#AAA",this.flagColor=(0,t.P)("Flag")}static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275cmp=r.VBU({type:w,selectors:[["cvc-icon-badges"]],inputs:{hasRevisions:"hasRevisions",flagged:"flagged",hasComments:"hasComments",entityColor:"entityColor"},ngContentSelectors:e,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(X,V){1&X&&(r.NAR(),r.SdG(0),r.DNE(1,G,1,3,"div",0)(2,L,1,3,"div",1)(3,B,1,3,"div",2)),2&X&&(r.R7$(),r.Y8G("ngIf",V.flagged),r.R7$(),r.Y8G("ngIf",V.hasRevisions),r.R7$(),r.Y8G("ngIf",V.hasComments))},dependencies:[g.bT,g.B3],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})}return w})()},4994:(Rt,De,c)=>{c.d(De,{a:()=>e});var t=c(177),r=c(4917),g=c(3953);let e=(()=>{class M{static#e=this.\u0275fac=function(B){return new(B||M)};static#t=this.\u0275mod=g.$C({type:M});static#n=this.\u0275inj=g.G2t({imports:[t.MD,r.i]})}return M})()},7679:(Rt,De,c)=>{c.d(De,{a:()=>G});var t=c(3953),r=c(5154),g=c(5699),e=c(5103);const M=["*"];let G=(()=>{class L{set href(A){if(!A)throw new Error("link-tag link Input requires string.");this._href=A}get href(){return this._href?this._href:""}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275cmp=t.VBU({type:L,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:M,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(w,I){1&w&&(t.NAR(),t.j41(0,"a",0)(1,"nz-tag",1),t.nrm(2,"i",2),t.SdG(3),t.k0s()()),2&w&&(t.Y8G("href",I.href,t.B4B),t.R7$(),t.Y8G("nzTooltipTitle",I.tooltip)("nzTooltipTrigger",I.tooltip?"hover":null),t.R7$(),t.Y8G("nzType",I.iconName?I.iconName:"link"))},dependencies:[r.LH,g.s,e.Dn],encapsulation:2})}return L})()},7054:(Rt,De,c)=>{c.d(De,{L:()=>G});var t=c(177),r=c(5154),g=c(5699),e=c(5103),M=c(3953);let G=(()=>{class L{static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275mod=M.$C({type:L});static#n=this.\u0275inj=M.G2t({imports:[t.MD,r.Qt,g.T,e.Y3]})}return L})()},9214:(Rt,De,c)=>{c.d(De,{y:()=>M});var t=c(177),r=c(5103),g=c(5699),e=c(3953);let M=(()=>{class G{static#e=this.\u0275fac=function(A){return new(A||G)};static#t=this.\u0275mod=e.$C({type:G});static#n=this.\u0275inj=e.G2t({imports:[t.MD,g.T,r.Y3]})}return G})()},3296:(Rt,De,c)=>{c.d(De,{M:()=>w});var t=c(4412),r=c(605),g=c(1594),e=c(3953),M=c(177),G=c(5699),L=c(5103),B=c(1774);function A(I,F){1&I&&(e.j41(0,"nz-tag",1),e.nrm(1,"i",2),e.j41(2,"span"),e.EFF(3,"End of results reached"),e.k0s()())}let w=(()=>{class I{set cvcShowTag(X){void 0!==X&&X&&this.showTag()}constructor(X){this.cdr=X,this.showTag$=new t.t(!1)}showTag(){!1===this.showTag$.getValue()&&(this.showTag$.next(!0),(0,r.Y)(3e3).pipe((0,g.$)()).subscribe(()=>{this.showTag$.next(!1),this.cdr.detectChanges()}))}static#e=this.\u0275fac=function(V){return new(V||I)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:I,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(V,x){1&V&&(e.DNE(0,A,4,0,"nz-tag",0),e.nI1(1,"ngrxPush")),2&V&&e.Y8G("ngIf",e.bMT(1,1,x.showTag$))},dependencies:[M.bT,G.s,L.Dn,B.L9],encapsulation:2,changeDetection:0})}return I})()},2143:(Rt,De,c)=>{c.d(De,{n:()=>J});var t=c(3953),r=c(177),g=c(5699),e=c(5103),M=c(1236),G=c(2e3),L=c(2617),B=c(7679),A=c(8139);function w(be,Oe){1&be&&t.nrm(0,"i",5)}function I(be,Oe){1&be&&t.nrm(0,"i",6)}function F(be,Oe){if(1&be&&(t.j41(0,"nz-tag",2),t.nI1(1,"titlecase"),t.DNE(2,w,1,0,"i",3)(3,I,1,0,"i",4),t.EFF(4),t.nI1(5,"titlecase"),t.k0s()),2&be){const he=t.XpG(),we=t.sdS(2);t.Y8G("nzColor",he.tagStatus)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",we)("nzPopoverTitle","This Source has been identified by Retraction Watch as status: "+t.bMT(1,8,he.retractionNature))("nzPopoverTrigger",he.enablePopover?"hover":null),t.R7$(2),t.Y8G("ngIf","error"==he.tagStatus),t.R7$(),t.Y8G("ngIf","warning"==he.tagStatus),t.R7$(),t.SpI(" ",t.bMT(5,10,he.retractionNature),"\n")}}function X(be,Oe){if(1&be&&(t.j41(0,"nz-descriptions-item",13),t.EFF(1),t.nI1(2,"timeAgo"),t.k0s()),2&be){const he=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,he.retractionDate))}}function V(be,Oe){if(1&be&&(t.j41(0,"nz-list-item"),t.EFF(1),t.k0s()),2&be){const he=Oe.$implicit;t.R7$(),t.SpI(" ",he.replace("+","")," ")}}function x(be,Oe){if(1&be&&(t.j41(0,"nz-descriptions-item",14)(1,"nz-list",15),t.DNE(2,V,2,1,"nz-list-item",16),t.k0s()()),2&be){const he=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",he.retractionReasons.split(";"))}}function ne(be,Oe){if(1&be&&(t.j41(0,"nz-descriptions",7),t.DNE(1,X,3,3,"nz-descriptions-item",8)(2,x,3,1,"nz-descriptions-item",9),t.j41(3,"nz-descriptions-item",10)(4,"cvc-link-tag",11),t.EFF(5," Retraction Watch Homepage "),t.k0s(),t.j41(6,"cvc-link-tag",12),t.EFF(7," Retraction Watch Database "),t.k0s()()()),2&be){const he=t.XpG();t.Y8G("nzColumn",1),t.R7$(),t.Y8G("ngIf",he.retractionDate),t.R7$(),t.Y8G("ngIf",he.retractionReasons)}}let J=(()=>{class be{constructor(){this.enablePopover=!0}set retractionNature(he){this._retractionNature=he,he&&("Retraction"==he?(this.tagStatus="error",this.retracted=!0):(this.tagStatus="warning",this.retracted=!1))}get retractionNature(){return this._retractionNature}ngOnInit(){if(void 0===this.retractionNature)throw new Error("Must pass a valid retractionNature to cvc-status-tag component");if(void 0===this.retractionDate)throw new Error("Must pass a valid retractionDate to cvc-status-tag component");if(void 0===this.retractionReasons)throw new Error("Must pass a valid retractionReasons to cvc-status-tag component")}static#e=this.\u0275fac=function(we){return new(we||be)};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["cvc-retraction-status-tag"]],inputs:{retractionNature:"retractionNature",retractionDate:"retractionDate",retractionReasons:"retractionReasons",enablePopover:"enablePopover"},decls:3,vars:1,consts:[["retractionPopover",""],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger",4,"ngIf"],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger"],["nz-icon","","nzType","close-circle",4,"ngIf"],["nz-icon","","nzType","exclamation-circle",4,"ngIf"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Date",4,"ngIf"],["nzTitle","Reasons",4,"ngIf"],["nzTitle","Links"],["href","https://retractionwatch.com/"],["href","http://retractiondatabase.org/RetractionSearch.aspx?"],["nzTitle","Date"],["nzTitle","Reasons"],["nzSize","small"],[4,"ngFor","ngForOf"]],template:function(we,me){1&we&&t.DNE(0,F,6,12,"nz-tag",1)(1,ne,8,3,"ng-template",null,0,t.C5r),2&we&&t.Y8G("ngIf",me.tagStatus)},dependencies:[r.Sq,r.bT,g.s,e.Dn,M.L_,G.xA,G.gr,L.eE,L.lQ,B.a,r.PV,A.N],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}"]})}return be})()},174:(Rt,De,c)=>{c.d(De,{u:()=>w});var t=c(177),r=c(5699),g=c(5103),e=c(1236),M=c(2e3),G=c(2617),L=c(4917),B=c(7054),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,r.T,g.Y3,e.MC,M.WF,G.rD,L.i,B.L]})}return I})()},311:(Rt,De,c)=>{c.d(De,{g:()=>I});var t=c(3953),r=c(177),g=c(5699),e=c(5103);function M(F,X){1&F&&t.nrm(0,"i",7)}function G(F,X){1&F&&t.nrm(0,"i",8)}function L(F,X){1&F&&t.nrm(0,"i",9)}function B(F,X){1&F&&t.nrm(0,"i",10)}function A(F,X){1&F&&t.nrm(0,"i",10)}function w(F,X){if(1&F&&(t.j41(0,"nz-tag",1),t.qex(1,2),t.DNE(2,M,1,0,"i",3)(3,G,1,0,"i",4)(4,L,1,0,"i",5)(5,B,1,0,"i",6)(6,A,1,0,"i",6),t.bVm(),t.EFF(7),t.nI1(8,"titlecase"),t.k0s()),2&F){const V=t.XpG();t.Y8G("nzColor",V.tagStatus),t.R7$(),t.Y8G("ngSwitch",V.tagStatus),t.R7$(),t.Y8G("ngSwitchCase","success"),t.R7$(),t.Y8G("ngSwitchCase","error"),t.R7$(),t.Y8G("ngSwitchCase","warning"),t.R7$(),t.Y8G("ngSwitchCase","processing"),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(),t.SpI(" ",t.bMT(8,8,V.status),"\n")}}let I=(()=>{class F{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(V){this._status=V,V&&(this.tagStatus=this.statusColorMap[V])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus, RevisionStatus, or FlagState to cvc-status-tag component")}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275cmp=t.VBU({type:F,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(x,ne){1&x&&t.DNE(0,w,9,10,"nz-tag",0),2&x&&t.Y8G("ngIf",ne.tagStatus)},dependencies:[r.bT,r.ux,r.e1,g.s,e.Dn,r.PV],encapsulation:2})}return F})()},9590:(Rt,De,c)=>{c.d(De,{R:()=>M});var t=c(177),r=c(5699),g=c(5103),e=c(3953);let M=(()=>{class G{static#e=this.\u0275fac=function(A){return new(A||G)};static#t=this.\u0275mod=e.$C({type:G});static#n=this.\u0275inj=e.G2t({imports:[t.MD,r.T,g.Y3]})}return G})()},4247:(Rt,De,c)=>{c.d(De,{L:()=>g});var t=c(3953);const r=["*"];let g=(()=>{class e{constructor(){}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-group"]],ngContentSelectors:r,decls:1,vars:0,template:function(L,B){1&L&&(t.NAR(),t.SdG(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}"]})}return e})()},2502:(Rt,De,c)=>{c.d(De,{u:()=>g});var t=c(177),r=c(3953);let g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},7855:(Rt,De,c)=>{c.d(De,{M:()=>g});var t=c(3953);const r=["*"];let g=(()=>{class e{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(L,B){2&L&&t.AVh("xs","xs"===B.size||!B.size)("sm","sm"===B.size)},inputs:{size:"size"},ngContentSelectors:r,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(L,B){1&L&&(t.NAR(),t.j41(0,"div",0),t.SdG(1),t.k0s())},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})}return e})()},2142:(Rt,De,c)=>{c.d(De,{x:()=>g});var t=c(177),r=c(3953);let g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},5652:(Rt,De,c)=>{c.d(De,{u:()=>me});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(5103),B=c(5703),A=c(2e3),w=c(7679),I=c(7855),F=c(6726),X=c(2143),V=c(1774);function x(de,H){if(1&de&&(e.nrm(0,"i",12),e.EFF(1)),2&de){const z=e.XpG().ngIf;e.R7$(),e.Lme(" ",z.displayType,":\xa0",z.citation," ")}}function ne(de,H){if(1&de&&e.nrm(0,"cvc-retraction-status-tag",15),2&de){const z=e.XpG(2).ngIf;e.Y8G("retractionNature",z.retractionNature)("retractionDate",z.retractionDate)("retractionReasons",z.retractionReasons)("enablePopover",!1)}}function J(de,H){if(1&de&&(e.j41(0,"cvc-link-tag",13),e.EFF(1),e.k0s(),e.DNE(2,ne,1,4,"cvc-retraction-status-tag",14)),2&de){const z=e.XpG().ngIf;e.Y8G("href",z.sourceUrl)("tooltip","View on "+z.displayType),e.R7$(),e.SpI(" ",z.displayType+":"+z.citationId," "),e.R7$(),e.Y8G("ngIf",z.retractionNature&&z.retractionDate&&z.retractionReasons)}}function be(de,H){1&de&&e.nrm(0,"cvc-clinical-trial-tag",17),2&de&&e.Y8G("clinicalTrial",H.$implicit)("enablePopover",!1)}function Oe(de,H){if(1&de&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,be,1,2,"cvc-clinical-trial-tag",16),e.k0s(),e.bVm()),2&de){const z=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",z.clinicalTrials)}}function he(de,H){1&de&&e.EFF(0," -- ")}function we(de,H){if(1&de&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,x,2,2,"ng-template",null,0,e.C5r)(4,J,3,4,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",6)(7,"nz-descriptions-item",7),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.DNE(14,Oe,3,1,"ng-container",11)(15,he,1,0,"ng-template",null,2,e.C5r),e.k0s()()(),e.bVm()),2&de){const z=H.ngIf,Z=e.sdS(3),pe=e.sdS(5),E=e.sdS(16);e.R7$(),e.Y8G("nzTitle",Z)("nzExtra",pe),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",z.title," "),e.R7$(2),e.SpI(" ",z.fullJournalTitle," "),e.R7$(2),e.SpI(" ",z.evidenceItemCount," "),e.R7$(2),e.Y8G("ngIf",z.clinicalTrials&&z.clinicalTrials.length>0)("ngIfElse",E)}}let me=(()=>{class de{constructor(z){this.gql=z}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,r.T)(({data:z})=>z?.sourcePopover),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Z){return new(Z||de)(e.rXU(M.jme))};static#t=this.\u0275cmp=e.VBU({type:de,selectors:[["cvc-source-popover"]],inputs:{sourceId:"sourceId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noTrials",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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"],["nz-icon","","nzType","civic-source","nzTheme","twotone","nzTwotoneColor","#F9BA45"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover",4,"ngIf"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover"],[3,"clinicalTrial","enablePopover",4,"ngFor","ngForOf"],[3,"clinicalTrial","enablePopover"]],template:function(Z,pe){1&Z&&(e.j41(0,"div",3),e.DNE(1,we,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&Z&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,pe.source$)))},dependencies:[G.Sq,G.bT,L.Dn,B.cK,A.xA,A.gr,w.a,I.M,F.X,X.n,V.L9],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}"]})}return de})()},7683:(Rt,De,c)=>{c.d(De,{B:()=>w});var t=c(177),r=c(5703),g=c(7054),e=c(2e3),M=c(2142),G=c(9619),L=c(5103),B=c(174),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,L.Y3,r.Ti,e.WF,g.L,M.x,G.u,B.u]})}return I})()},9062:(Rt,De,c)=>{c.d(De,{D:()=>z});var t=c(6514),r=c(3953),g=c(8335),e=c(177),M=c(1188),G=c(5103),L=c(1236),B=c(5699),A=c(5652),w=c(2287),I=c(3075);const F=Z=>({deprecated:Z});function X(Z,pe){}function V(Z,pe){if(1&Z&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,X,0,0,"ng-template",7),r.k0s(),r.bVm()),2&Z){const E=r.XpG(),S=r.sdS(2);r.R7$(),r.Y8G("routerLink",E.source.link),r.R7$(),r.Y8G("ngTemplateOutlet",S)}}function x(Z,pe){}function ne(Z,pe){if(1&Z&&r.nrm(0,"cvc-source-popover",9),2&Z){const E=r.XpG(2);r.Y8G("sourceId",E.source.id)}}function J(Z,pe){if(1&Z){const E=r.RV6();r.j41(0,"nz-tag",8),r.mxI("nzPopoverVisibleChange",function(R){r.eBV(E);const Y=r.XpG();return r.DH7(Y.popoverVisible,R)||(Y.popoverVisible=R),r.Njj(R)}),r.bIt("nzOnClose",function(R){r.eBV(E);const Y=r.XpG();return r.Njj(Y.itemClosed(R))}),r.DNE(1,x,0,0,"ng-template",7),r.k0s(),r.DNE(2,ne,1,1,"ng-template",null,3,r.C5r)}if(2&Z){const E=r.sdS(3),S=r.XpG(),R=r.sdS(6);r.Y8G("ngClass",r.eq3(7,F,S.source.deprecated))("nzPopoverMouseEnterDelay",S.onCloseClicked?0:.5)("nzPopoverContent",E)("nzPopoverTrigger",S.enablePopover?"hover":null),r.R50("nzPopoverVisible",S.popoverVisible),r.Y8G("nzMode",S.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",R)}}function be(Z,pe){}function Oe(Z,pe){if(1&Z&&r.DNE(0,be,0,0,"ng-template",7),2&Z){r.XpG();const E=r.sdS(2);r.Y8G("ngTemplateOutlet",E)}}function he(Z,pe){if(1&Z&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&Z){const E=r.XpG(3);r.R7$(),r.SpI(" ",r.i5U(2,1,E.displayName,50)," ")}}function we(Z,pe){if(1&Z&&(r.qex(0),r.EFF(1),r.bVm()),2&Z){const E=r.XpG(3);r.R7$(),r.SpI(" ",E.displayName," ")}}function me(Z,pe){if(1&Z&&(r.qex(0),r.DNE(1,he,3,4,"ng-container",11)(2,we,2,1,"ng-container",11),r.bVm()),2&Z){const E=r.XpG(2);r.R7$(),r.Y8G("ngIf",E.truncateLongName),r.R7$(),r.Y8G("ngIf",!E.truncateLongName)}}function de(Z,pe){if(1&Z&&r.EFF(0),2&Z){const E=r.XpG(2);r.SpI(" SID:",E.source.id," ")}}function H(Z,pe){if(1&Z&&(r.nrm(0,"i",10),r.nI1(1,"entityColor"),r.DNE(2,me,3,2,"ng-container",5)(3,de,1,1,"ng-template",null,4,r.C5r)),2&Z){const E=r.sdS(4),S=r.XpG();r.Y8G("nzTwotoneColor",r.bMT(1,3,"Source")),r.R7$(2),r.Y8G("ngIf","normal"===S.mode)("ngIfElse",E)}}let z=(()=>{class Z extends t.s{set source(E){if(!E)throw new Error("source-tag source input requires SourceWithDisplayName or SourceWithCitation.");this._source=E,this.displayName="displayName"in this.source?this.source.displayName:this.sourceTypeDisplay.transform(this.source.sourceType)+": "+this.source.citation}get source(){return this._source}constructor(E){super(),this.sourceTypeDisplay=E,this.enablePopover=!0,this.linked=!0,this.mode="normal",this.truncateLongName=!1}idFunction(){return this.source.id}static#e=this.\u0275fac=function(S){return new(S||Z)(r.rXU(g.Q))};static#t=this.\u0275cmp=r.VBU({type:Z,selectors:[["cvc-source-tag"]],inputs:{source:"source",enablePopover:"enablePopover",linked:"linked",mode:"mode",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["sourcePopover",""],["concise",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverVisibleChange","nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzPopoverVisible","nzMode"],[3,"sourceId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[4,"ngIf"]],template:function(S,R){if(1&S&&r.DNE(0,V,3,2,"ng-container",5)(1,J,4,9,"ng-template",null,0,r.C5r)(3,Oe,1,1,"ng-template",null,1,r.C5r)(5,H,5,5,"ng-template",null,2,r.C5r),2&S){const Y=r.sdS(4);r.Y8G("ngIf",R.linked)("ngIfElse",Y)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.Dn,L.L_,B.s,A.u,w.H,I.R],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})}return Z})()},1209:(Rt,De,c)=>{c.d(De,{k:()=>A});var t=c(177),r=c(1236),g=c(1188),e=c(7683),M=c(5699),G=c(5103),L=c(4917),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,g.iI,G.Y3,r.MC,M.T,e.B,L.i]})}return w})()},3287:(Rt,De,c)=>{c.d(De,{a:()=>H});var t=c(6354),r=c(5964),g=c(9199),e=c(3953),M=c(9145),G=c(177),L=c(5703),B=c(2e3),A=c(5103),w=c(7391),I=c(5699),F=c(5154),X=c(7679),V=c(1774),x=c(2287);function ne(z,Z){if(1&z&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&z){const pe=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,pe.name,50)," ")}}function J(z,Z){if(1&z&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&z){const pe=e.XpG(2).ngIf;e.Y8G("href",pe.therapyUrl),e.R7$(),e.SpI(" ",pe.ncitId," ")}}function be(z,Z){if(1&z&&e.DNE(0,J,2,2,"cvc-link-tag",13),2&z){const pe=e.XpG().ngIf,E=e.sdS(7);e.Y8G("ngIf",pe.ncitId)("ngIfElse",E)}}function Oe(z,Z){1&z&&(e.j41(0,"span",15),e.EFF(1,"No NCIt ID"),e.k0s())}function he(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.SpI(" ",pe.name," ")}}function we(z,Z){if(1&z&&(e.j41(0,"nz-tag",19),e.EFF(1),e.nI1(2,"truncate"),e.k0s()),2&z){const pe=Z.$implicit;e.Y8G("nzTooltipTitle",pe),e.R7$(),e.JRh(e.bMT(2,2,pe))}}function me(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",17),e.DNE(1,we,3,4,"nz-tag",18),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",pe.therapyAliases)}}function de(z,Z){if(1&z&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,ne,3,4,"ng-template",null,0,e.C5r)(4,be,1,2,"ng-template",null,1,e.C5r)(6,Oe,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,he,2,1,"nz-descriptions-item",7)(10,me,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&z){const pe=Z.ngIf,E=e.sdS(3),S=e.sdS(5);e.R7$(),e.Y8G("nzTitle",E)("nzExtra",S),e.R7$(7),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",pe.name.length>50),e.R7$(),e.Y8G("ngIf",pe.therapyAliases.length>0),e.R7$(2),e.SpI(" ",pe.assertionCount," "),e.R7$(2),e.SpI(" ",pe.evidenceItemCount," "),e.R7$(2),e.SpI(" ",pe.molecularProfileCount," ")}}let H=(()=>{class z{constructor(pe){this.gql=pe}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.T)(({data:pe})=>pe?.therapyPopover),(0,r.p)(g.kP))}static#e=this.\u0275fac=function(E){return new(E||z)(e.rXU(M.RQS))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["cvc-therapy-popover"]],inputs:{therapyId:"therapyId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noNcitId",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(E,S){1&E&&(e.j41(0,"div",3),e.DNE(1,de,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&E&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,S.therapy$)))},dependencies:[G.Sq,G.bT,L.cK,B.xA,B.gr,A.Dn,w.Di,I.s,F.LH,X.a,V.L9,x.H],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}"]})}return z})()},3126:(Rt,De,c)=>{c.d(De,{t:()=>F});var t=c(177),r=c(1188),g=c(5703),e=c(2e3),M=c(7054),G=c(5103),L=c(7391),B=c(4917),A=c(5699),w=c(5154),I=c(3953);let F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=I.$C({type:X});static#n=this.\u0275inj=I.G2t({imports:[t.MD,r.iI,g.Ti,e.WF,G.Y3,L.kT,A.T,w.Qt,M.L,B.i]})}return X})()},9563:(Rt,De,c)=>{c.d(De,{R:()=>he});var t=c(6514),r=c(3953),g=c(177),e=c(1188),M=c(5699),G=c(1236),L=c(5103),B=c(3287),A=c(2287);function w(we,me){}function I(we,me){if(1&we&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,w,0,0,"ng-template",7),r.k0s(),r.bVm()),2&we){const de=r.XpG(),H=r.sdS(2);r.R7$(),r.Y8G("routerLink",de.therapy.link),r.R7$(),r.Y8G("ngTemplateOutlet",H)}}function F(we,me){}function X(we,me){if(1&we&&r.nrm(0,"cvc-therapy-popover",9),2&we){const de=r.XpG(2);r.Y8G("therapyId",de.therapy.id)}}function V(we,me){if(1&we){const de=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(z){r.eBV(de);const Z=r.XpG();return r.Njj(Z.itemClosed(z))}),r.DNE(1,F,0,0,"ng-template",7),r.k0s(),r.DNE(2,X,1,1,"ng-template",null,3,r.C5r)}if(2&we){const de=r.sdS(3),H=r.XpG(),z=r.sdS(6);r.Y8G("nzPopoverMouseEnterDelay",H.onCloseClicked?0:.5)("nzPopoverContent",de)("nzPopoverTrigger",H.enablePopover?"hover":null)("nzMode",H.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",z)}}function x(we,me){}function ne(we,me){if(1&we&&r.DNE(0,x,0,0,"ng-template",7),2&we){r.XpG();const de=r.sdS(2);r.Y8G("ngTemplateOutlet",de)}}function J(we,me){if(1&we&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&we){const de=r.XpG(2);r.R7$(),r.SpI(" ",r.i5U(2,1,de.therapy.name,21)," ")}}function be(we,me){if(1&we&&r.EFF(0),2&we){const de=r.XpG(2);r.SpI(" ",de.therapy.name," ")}}function Oe(we,me){if(1&we&&(r.nrm(0,"i",10),r.DNE(1,J,3,4,"ng-container",5)(2,be,1,1,"ng-template",null,4,r.C5r)),2&we){const de=r.sdS(3),H=r.XpG();r.R7$(),r.Y8G("ngIf",H.truncateLongName)("ngIfElse",de)}}let he=(()=>{class we extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set therapy(de){if(!de)throw new Error("therapy-tag Input requires LinkableTherapy.");this._therapy=de}get therapy(){return this._therapy}idFunction(){return this.therapy.id}static#e=this.\u0275fac=(()=>{let de;return function(z){return(de||(de=r.xGo(we)))(z||we)}})();static#t=this.\u0275cmp=r.VBU({type:we,selectors:[["cvc-therapy-tag"]],inputs:{therapy:"therapy",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["therapyPopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"therapyId"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"]],template:function(H,z){if(1&H&&r.DNE(0,I,3,2,"ng-container",5)(1,V,4,5,"ng-template",null,0,r.C5r)(3,ne,1,1,"ng-template",null,1,r.C5r)(5,Oe,4,2,"ng-template",null,2,r.C5r),2&H){const Z=r.sdS(4);r.Y8G("ngIf",z.linked)("ngIfElse",Z)}},dependencies:[g.bT,g.T3,e.Wk,M.s,G.L_,L.Dn,B.a,A.H],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}"],changeDetection:0})}return we})()},9802:(Rt,De,c)=>{c.d(De,{_:()=>A});var t=c(177),r=c(1188),g=c(5699),e=c(1236),M=c(5103),G=c(4917),L=c(3126),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.iI,g.T,e.MC,M.Y3,G.i,L.t]})}return w})()},3548:(Rt,De,c)=>{c.d(De,{A:()=>pe});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5703),A=c(7529),w=c(2e3),I=c(5699),F=c(5103),X=c(7685),V=c(3245),x=c(7679),ne=c(1774),J=c(3075);function be(E,S){if(1&E&&(e.nrm(0,"i",13),e.nI1(1,"entityColor"),e.EFF(2)),2&E){const R=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",R.name," ")}}function Oe(E,S){if(1&E&&e.nrm(0,"cvc-feature-tag",14),2&E){const R=e.XpG().ngIf;e.Y8G("enablePopover",!1)("feature",R.feature)}}function he(E,S){if(1&E&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&E){const R=S.$implicit;e.R7$(),e.JRh(R)}}function we(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",15),e.DNE(1,he,2,1,"nz-tag",16),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",R.variantAliases)}}function me(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",17)(1,"cvc-link-tag",18),e.EFF(2),e.k0s()()),2&E){const R=e.XpG().ngIf;e.R7$(),e.Mz_("href","https://reg.genome.network/allele/",R.alleleRegistryId,".html"),e.R7$(),e.SpI(" ",R.alleleRegistryId," ")}}function de(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",20),e.nrm(2,"i",21),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/flags"),e.R7$(3),e.SpI(" Flags (",R.flags.totalCount,") ")}}function H(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",R.revisions.totalCount,") ")}}function z(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/comments"),e.R7$(3),e.SpI(" Comments (",R.comments.totalCount,") ")}}function Z(E,S){if(1&E&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,be,3,4,"ng-template",null,0,e.C5r)(4,Oe,1,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5),e.DNE(7,we,2,1,"nz-descriptions-item",6)(8,me,3,3,"nz-descriptions-item",7),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s()(),e.j41(11,"nz-row",9)(12,"nz-col",10)(13,"nz-space",11),e.DNE(14,de,4,3,"a",12)(15,H,4,3,"a",12)(16,z,4,3,"a",12),e.k0s()()()(),e.bVm()),2&E){const R=S.ngIf,Y=e.sdS(3),se=e.sdS(5);e.R7$(),e.Y8G("nzTitle",Y)("nzExtra",se),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",R.variantAliases.length>0),e.R7$(),e.Y8G("ngIf","GeneVariant"==R.__typename&&R.alleleRegistryId&&"unregistered"!=R.alleleRegistryId),e.R7$(2),e.SpI(" ",R.molecularProfiles.totalCount," ")}}let pe=(()=>{class E{constructor(R){this.gql=R}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,r.T)(({data:R})=>R?.variant),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Y){return new(Y||E)(e.rXU(M.l20))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["cardTitle",""],["feature",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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","feature"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(Y,se){1&Y&&(e.j41(0,"div",2),e.DNE(1,Z,17,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Y&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.variant$)))},dependencies:[G.Sq,G.bT,L.Wk,B.cK,A.Uq,A.e,w.xA,w.gr,I.s,F.Dn,X.U5,X.Dq,V._,x.a,ne.L9,J.R],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}"]})}return E})()},6075:(Rt,De,c)=>{c.d(De,{$:()=>X});var t=c(177),r=c(1188),g=c(5703),e=c(7529),M=c(2e3),G=c(5699),L=c(5103),B=c(7685),A=c(7054),w=c(4917),I=c(6912),F=c(3953);let X=(()=>{class V{static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275mod=F.$C({type:V});static#n=this.\u0275inj=F.G2t({imports:[t.MD,r.iI,g.Ti,e.f3,M.WF,G.T,L.Y3,B.pc,w.i,I.l,A.L]})}return V})()},3100:(Rt,De,c)=>{c.d(De,{V:()=>H});var t=c(6514),r=c(505),g=c(3953),e=c(177),M=c(1188),G=c(5699),L=c(1236),B=c(5103),A=c(3548),w=c(2387),I=c(2287);const F=z=>({deprecated:z});function X(z,Z){}function V(z,Z){if(1&z&&(g.qex(0),g.j41(1,"a",6),g.DNE(2,X,0,0,"ng-template",7),g.k0s(),g.bVm()),2&z){const pe=g.XpG(),E=g.sdS(2);g.R7$(),g.Y8G("routerLink",pe.variant.link),g.R7$(),g.Y8G("ngTemplateOutlet",E)}}function x(z,Z){}function ne(z,Z){if(1&z&&g.nrm(0,"cvc-variant-popover",10),2&z){const pe=g.XpG(3);g.Y8G("variantId",pe.variant.id)}}function J(z,Z){if(1&z&&g.DNE(0,ne,1,1,"cvc-variant-popover",9),2&z){const pe=g.XpG(2);g.Y8G("ngIf",pe.enablePopover)}}function be(z,Z){if(1&z){const pe=g.RV6();g.j41(0,"nz-tag",8),g.bIt("nzOnClose",function(S){g.eBV(pe);const R=g.XpG();return g.Njj(R.itemClosed(S))}),g.DNE(1,x,0,0,"ng-template",7),g.k0s(),g.DNE(2,J,1,1,"ng-template",null,3,g.C5r)}if(2&z){const pe=g.sdS(3),E=g.XpG(),S=g.sdS(6);g.Y8G("ngClass",g.eq3(6,F,E.variant.deprecated))("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",pe)("nzPopoverTrigger",E.enablePopover?"hover":null)("nzMode",E.onCloseClicked?"closeable":"default"),g.R7$(),g.Y8G("ngTemplateOutlet",S)}}function Oe(z,Z){}function he(z,Z){if(1&z&&g.DNE(0,Oe,0,0,"ng-template",7),2&z){g.XpG();const pe=g.sdS(2);g.Y8G("ngTemplateOutlet",pe)}}function we(z,Z){if(1&z&&(g.qex(0),g.EFF(1),g.nI1(2,"truncate"),g.bVm()),2&z){const pe=g.XpG(2);g.R7$(),g.SpI(" ",g.i5U(2,1,pe.variant.name,20)," ")}}function me(z,Z){if(1&z&&g.EFF(0),2&z){const pe=g.XpG(2);g.SpI(" ",pe.variant.name," ")}}function de(z,Z){if(1&z&&(g.j41(0,"cvc-icon-badges",11),g.nrm(1,"i",12),g.k0s(),g.DNE(2,we,3,4,"ng-container",5)(3,me,1,1,"ng-template",null,4,g.C5r)),2&z){const pe=g.sdS(4),E=g.XpG();g.Y8G("flagged",E.variant.flagged)("entityColor",E.iconColor),g.R7$(),g.Y8G("nzTwotoneColor",E.iconColor),g.R7$(),g.Y8G("ngIf",E.truncateLongName)("ngIfElse",pe)}}let H=(()=>{class z extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,r.P)("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.")}static#e=this.\u0275fac=function(E){return new(E||z)};static#t=this.\u0275cmp=g.VBU({type:z,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[g.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,S){if(1&E&&g.DNE(0,V,3,2,"ng-container",5)(1,be,4,8,"ng-template",null,0,g.C5r)(3,he,1,1,"ng-template",null,1,g.C5r)(5,de,5,5,"ng-template",null,2,g.C5r),2&E){const R=g.sdS(4);g.Y8G("ngIf",S.linked)("ngIfElse",R)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.s,L.L_,B.Dn,A.A,w.N,I.H],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})}return z})()},7051:(Rt,De,c)=>{c.d(De,{U:()=>w});var t=c(177),r=c(1188),g=c(5699),e=c(5103),M=c(1236),G=c(6075),L=c(4917),B=c(4994),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,r.iI,g.T,M.MC,e.Y3,L.i,G.$,B.a]})}return I})()},463:(Rt,De,c)=>{c.d(De,{E:()=>r});var t=c(3953);let r=(()=>{class g{transform(M,G){return M?"verbose"==G?"TIER_I_LEVEL_A"===M?"Tier I - Level A":"TIER_I_LEVEL_B"===M?"Tier I - Level B":"TIER_II_LEVEL_C"===M?"Tier II - Level C":"TIER_II_LEVEL_D"===M?"Tier II - Level D":"TIER_III"===M?"Tier III":"TIER_IV"===M?"Tier IV":"Not Applicable":M.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275pipe=t.EJ8({name:"formatAmp",type:g,pure:!0})}return g})()},3075:(Rt,De,c)=>{c.d(De,{R:()=>g});var t=c(505),r=c(3953);let g=(()=>{class e{transform(G){return(0,t.P)(G)}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275pipe=r.EJ8({name:"entityColor",type:e,pure:!0})}return e})()},1845:(Rt,De,c)=>{c.d(De,{f:()=>r});var t=c(3953);let r=(()=>{class g{transform(M){if(M){if("POSITIVE"===M)return"+";if("NEGATIVE"===M)return"-";let L=M.toLowerCase().replace(/_/g," ").split(" ");for(var G=0;G{c.d(De,{pW:()=>G});var t=c(9145),r=c(896),g=c(3953);const e=new Map([[t.iHU.A,"Validated association"],[t.iHU.B,"Clinical evidence"],[t.iHU.C,"Case study"],[t.iHU.D,"Preclinical evidence"],[t.iHU.E,"Inferential association"]]),M=new Map([[1,"One Star"],[2,"Two Stars"],[3,"Three Stars"],[4,"Four Stars"],[5,"Five Stars"]]);let G=(()=>{class L{transform(A,w="display-string"){return null==A?"":"short-string"===w&&1===A.toString().length?"string"==typeof A?A:A.toString():"icon-name"===w?"number"==typeof A?`civic-rating${A}`:1===A.length?`civic-level${A.toLowerCase()}`:`civic-${A.replace(/_/g,"").toLowerCase()}`:"number"==typeof A?M.get(A)||A.toString():1===A.length?e.get(A)||A:(0,r.u)(A)}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275pipe=g.EJ8({name:"evidenceEnumDisplay",type:L,pure:!0})}return L})()},8763:(Rt,De,c)=>{c.d(De,{k:()=>G});var t=c(9145);const r={evidenceType:{[t.M1P.Diagnostic]:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.M1P.Functional]:"Evidence pertains to a variant that alters biological function from the reference state",[t.M1P.Oncogenic]:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",[t.M1P.Predictive]:"Evidence pertains to a variant's effect on therapeutic response",[t.M1P.Predisposing]:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.M1P.Prognostic]:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival"},assertionType:{[t.XEW.Diagnostic]:"Assertion pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.XEW.Predictive]:"Assertion pertains to a variant's effect on therapeutic response",[t.XEW.Predisposing]:"Assertion pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.XEW.Prognostic]:"Assertion pertains to a variant's impact on disease progression, severity, or patient survival",[t.XEW.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.Kkj.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.Kkj.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.Kkj.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.Kkj.Unknown]:"The variant origin is uncertain based on the available evidence",[t.Kkj.Na]:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin",[t.Kkj.Combined]:"Variants in the Molecular Profile span multiple Origin types."},evidenceLevel:{[t.iHU.A]:"Proven/consensus association in human medicine",[t.iHU.B]:"Clinical trial or other primary patient data supports association",[t.iHU.C]:"Individual case reports from clinical journals",[t.iHU.D]:"In vivo or in vitro models support association",[t.iHU.E]:"Indirect evidence"},evidenceLevelBrief:{[t.iHU.A]:"Validated association",[t.iHU.B]:"Clinical evidence",[t.iHU.C]:"Case Study",[t.iHU.D]:"Preclinical evidence",[t.iHU.E]:"Inferential association"},therapyInteractionType:{[t.qld.Combination]:"The therapies listed were used as part of a combination therapy approach",[t.qld.Sequential]:"The therapies listed were used at separate timepoints in the same treatment plan",[t.qld.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"}},g={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 M=c(3953);let G=(()=>{class L{transform(A,w,I=void 0,F=void 0){return w&&A?function e(L,B,A,w){let I;return I=A&&w?g[L][A][B][w]:r[L][B],I||""}(w,A,I,F):""}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275pipe=M.EJ8({name:"enumTooltip",type:L,pure:!0})}return L})()},1555:(Rt,De,c)=>{c.d(De,{M:()=>g});var t=c(3953),r=c(345);let g=(()=>{class e{constructor(G){this.sanitizer=G}transform(G,L){if(!L||""==L)return G;const B=new RegExp(L,"gi"),A=G.match(B);if(!A)return G;let w=G.replace(B,`${A[0]}`);return this.sanitizer.bypassSecurityTrustHtml(w)}static#e=this.\u0275fac=function(L){return new(L||e)(t.rXU(r.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"highlightTypeahead",type:e,pure:!0})}return e})()},4917:(Rt,De,c)=>{c.d(De,{i:()=>e});var t=c(177),r=c(8335),g=c(3953);let e=(()=>{class M{static#e=this.\u0275fac=function(B){return new(B||M)};static#t=this.\u0275mod=g.$C({type:M});static#n=this.\u0275inj=g.G2t({providers:[r.Q],imports:[t.MD]})}return M})()},8335:(Rt,De,c)=>{c.d(De,{Q:()=>g});var t=c(1427),r=c(3953);let g=(()=>{class e{transform(G){return G?(0,t.A)(G):""}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275pipe=r.EJ8({name:"sourceTypeDisplay",type:e,pure:!0})}return e})()},8139:(Rt,De,c)=>{c.d(De,{N:()=>I});var t=c(3953);const g=3600,e=24*g,G=365*e,B=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),w=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let I=(()=>{class F{transform(V){if(!V)return"--";let x;x="number"==typeof V?V:Date.parse(V);const ne=Date.now(),J=Math.round(Math.abs(ne-x)/1e3);if(J>=2592e3&&J=G){let we=new Date(x);return w.format(we)}let be,Oe;return J<60?(be=Math.round(J),Oe="second"):J1?"s":""} ago`}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275pipe=t.EJ8({name:"timeAgo",type:F,pure:!0})}return F})()},2287:(Rt,De,c)=>{c.d(De,{H:()=>r});var t=c(3953);let r=(()=>{class g{constructor(){}transform(M,G=25){if(M.length>G){let B=M.slice(0,G);var L=B.lastIndexOf(" ");return B.slice(0,L)+"\u2026"}return M}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275pipe=t.EJ8({name:"truncate",type:g,pure:!0})}return g})()},4137:(Rt,De,c)=>{c.d(De,{o:()=>r});var t=c(3953);let r=(()=>{class g{transform(M){return M?M.endsWith("Variant")?"civic-variant":`civic-${M.replace(/_/g,"").toLowerCase()}`:""}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275pipe=t.EJ8({name:"typenameToIcon",type:g,pure:!0})}return g})()},4222:(Rt,De,c)=>{c.d(De,{N:()=>g});var t=c(4412),r=c(3953);let g=(()=>{class e{constructor(){this.networkError$=new t.t(void 0)}clearErrors(){this.networkError$.next(void 0)}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275prov=r.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},1305:(Rt,De,c)=>{c.d(De,{q:()=>w});var t=c(1635),r=c(9145),g=c(9894),e=c(6354),M=c(9172),G=c(4668),L=c(4608),B=c(3953),A=c(1626);let w=class jf{constructor(F,X){function V(he){return!(!he||he.role!==r.gG1.Admin)}function x(he){return!(!he||he.role!==r.gG1.Editor&&he.role!==r.gG1.Admin)}function ne(he){return!(!he||he.role!==r.gG1.Curator)}function J(he){return!(!he||he.role!==r.gG1.Curator&&he.role!==r.gG1.Editor&&he.role!==r.gG1.Admin)}function be(he){return!(!he||he.role!==r.gG1.Editor&&he.role!==r.gG1.Admin||!he.mostRecentConflictOfInterestStatement||he.mostRecentConflictOfInterestStatement?.coiStatus!=r.shk.Conflict&&he.mostRecentConflictOfInterestStatement?.coiStatus!=r.shk.Valid)}function Oe(he){if(he.mostRecentOrganizationId)return he.organizations.find(we=>we.id===he.mostRecentOrganizationId)}this.viewerBaseGQL=F,this.http=X,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,L.E)("data","viewer"),(0,e.T)(he=>({...he,signedIn:null!=he,signedOut:null==he,canCurate:J(he),canModerate:be(he),isAdmin:V(he),isEditor:x(he),isCurator:ne(he),organizations:null==he?[]:he.organizations,mostRecentOrg:null==he?void 0:Oe(he),invalidCoi:x(he)&&(!he.mostRecentConflictOfInterestStatement||he.mostRecentConflictOfInterestStatement.coiStatus===r.shk.Expired||he.mostRecentConflictOfInterestStatement.coiStatus===r.shk.Missing)})),(0,M.Z)(this.initialViewer),(0,G.t)(1)),this.signedIn$=this.viewer$.pipe((0,e.T)(he=>he.signedIn)),this.signedOut$=this.viewer$.pipe((0,e.T)(he=>he.signedOut)),this.isAdmin$=this.viewer$.pipe((0,e.T)(he=>V(he))),this.isEditor$=this.viewer$.pipe((0,e.T)(he=>x(he))),this.isCurator$=this.viewer$.pipe((0,e.T)(he=>ne(he))),this.canCurate$=this.viewer$.pipe((0,e.T)(he=>J(he))),this.canModerate$=this.viewer$.pipe((0,e.T)(he=>be(he)))}signOut(){this.http.get("/api/sign_out").pipe((0,g.s)(this)).subscribe(()=>this.queryRef.refetch())}refetch(){this.queryRef.refetch()}static#e=this.\u0275fac=function(X){return new(X||jf)(B.KVO(r.arH),B.KVO(A.Qq))};static#t=this.\u0275prov=B.jDH({token:jf,factory:jf.\u0275fac,providedIn:"root"})};w=(0,t.Cg)([(0,g.d)()],w)},6514:(Rt,De,c)=>{c.d(De,{s:()=>r});var t=c(3953);let r=(()=>{class g{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(M){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275cmp=t.VBU({type:g,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(G,L){},encapsulation:2})}return g})()},896:(Rt,De,c)=>{function t(r){if("number"==typeof r||"boolean"==typeof r)return r;let g;if("NA"===r)g=["Not Applicable"];else if("SENSITIVITYRESPONSE"===r)g=["Sensitivity","/","Response"];else{g=r.toLowerCase().replace(/_/g," ").split(" ");for(var e=0;et})},1427:(Rt,De,c)=>{function t(r){switch(r){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";case"ASH":return"ASH";default:return r}}c.d(De,{A:()=>t})},505:(Rt,De,c)=>{c.d(De,{P:()=>r});const t=new Map([["Assertion","#7243b5"],["ClinicalTrial","#ac3996"],["CoordinateSystem","#f68f37"],["Disease","#e62f76"],["Event","#1db8a9"],["EvidenceItem","#2a63b6"],["Feature","#07aff0"],["MolecularProfile","#33b358"],["NccnGuideline","#49566D"],["Phenotype","#1db8a9"],["Source","#f9ba45"],["Therapy","#ac3996"],["Variant","#74d34c"],["GeneVariant","#74d34c"],["FactorVariant","#74d34c"],["FusionVariant","#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 r(g){let e="#AAAAAA";if(g){const M=t.get(g);M&&(e=M)}return e}},1226:(Rt,De,c)=>{c.d(De,{E:()=>M});var t=c(1413),r=c(4412),g=c(6977),e=c(980);class M{constructor(L){this.networkErrorService=L}mutate(L,B,A,w){let I=new t.B,F={isSubmitting$:new r.t(!1),submitSuccess$:new r.t(!1),submitError$:new r.t([]),cleanup:()=>{I.next(),I.complete()}};return F.isSubmitting$.next(!0),L.mutate(B,A).pipe((0,g.Q)(I),(0,e.j)(()=>{F.isSubmitting$.next(!1)})).subscribe({next:X=>{X.data&&w&&w(X.data)},error:X=>{X.graphQLErrors.length>0?F.submitError$.next(X.graphQLErrors.map(V=>V.message)):X.networkError&&this.networkErrorService.networkError$.next(X.networkError),F.cleanup()},complete:()=>{F.submitError$.next([]),F.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),F.cleanup()}}),F}}},2242:(Rt,De,c)=>{c.d(De,{i:()=>g});var t=c(177),r=c(3953);let g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},2033:(Rt,De,c)=>{c.d(De,{o:()=>X});var t=c(3953),r=c(177),g=c(5154);function e(V,x){1&V&&(t.qex(0),t.EFF(1," N/A "),t.bVm())}function M(V,x){1&V&&(t.qex(0),t.EFF(1," Not applicable "),t.bVm())}function G(V,x){if(1&V&&(t.j41(0,"span",4),t.qex(1,0),t.DNE(2,e,2,0,"ng-container",5)(3,M,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const ne=t.XpG();t.R7$(),t.Y8G("ngSwitch",ne.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function L(V,x){1&V&&(t.qex(0),t.EFF(1," \u2013\xa0\u2013 "),t.bVm())}function B(V,x){1&V&&(t.qex(0),t.EFF(1,"Not specified"),t.bVm())}function A(V,x){if(1&V&&(t.j41(0,"span",7),t.qex(1,0),t.DNE(2,L,2,0,"ng-container",5)(3,B,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const ne=t.XpG();t.R7$(),t.Y8G("ngSwitch",ne.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function w(V,x){1&V&&(t.qex(0),t.EFF(1,"!?"),t.bVm())}function I(V,x){1&V&&(t.qex(0),t.EFF(1,"Unspecified"),t.bVm())}function F(V,x){if(1&V&&(t.j41(0,"span",8),t.qex(1,0),t.DNE(2,w,2,0,"ng-container",5)(3,I,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const ne=t.XpG();t.R7$(),t.Y8G("ngSwitch",ne.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}let X=(()=>{class V{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,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(J,be){1&J&&(t.qex(0,0),t.DNE(1,G,4,2,"span",1)(2,A,4,2,"span",2)(3,F,4,2,"span",3),t.bVm()),2&J&&(t.Y8G("ngSwitch",be.cvcEmptyCategory),t.R7$(),t.Y8G("ngSwitchCase","not-applicable"),t.R7$(),t.Y8G("ngSwitchCase","unspecified"),t.R7$(),t.Y8G("ngSwitchCase","invalid"))},dependencies:[r.ux,r.e1,r.fG,g.LH],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}"]})}return V})()},7556:(Rt,De,c)=>{c.d(De,{F:()=>M});var t=c(177),r=c(5103),g=c(5154),e=c(3953);let M=(()=>{class G{static#e=this.\u0275fac=function(A){return new(A||G)};static#t=this.\u0275mod=e.$C({type:G});static#n=this.\u0275inj=e.G2t({imports:[t.MD,g.Qt,r.Y3]})}return G})()},2688:(Rt,De,c)=>{c.d(De,{b:()=>Yt});var t=c(3953),r=c(1661),g=c(177),e=c(5761),M=c(1289),G=c(5652),L=c(3287),B=c(6564),A=c(8011),w=c(1429),I=c(3548);function F(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-molecular-profile-popover",9),2&Ue){const ie=t.XpG();t.Y8G("molecularProfileId",ie.entity.entityId)}}function X(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-disease-popover",10),2&Ue){const ie=t.XpG();t.Y8G("diseaseId",ie.entity.entityId)}}function V(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-therapy-popover",11),2&Ue){const ie=t.XpG();t.Y8G("therapyId",ie.entity.entityId)}}function x(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-source-popover",12),2&Ue){const ie=t.XpG();t.Y8G("sourceId",ie.entity.entityId)}}function ne(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-phenotype-popover",13),2&Ue){const ie=t.XpG();t.Y8G("phenotypeId",ie.entity.entityId)}}function J(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-evidence-popover",14),2&Ue){const ie=t.XpG();t.Y8G("evidenceId",ie.entity.entityId)}}function be(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-feature-popover",15),2&Ue){const ie=t.XpG();t.Y8G("featureId",ie.entity.entityId)}}function Oe(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-variant-popover",16),2&Ue){const ie=t.XpG();t.Y8G("variantId",ie.entity.entityId)}}const he=["MolecularProfile","Disease","Therapy","Phenotype","Source","Gene","Variant","EvidenceItem"];let we=(()=>{class Ue{ngOnInit(){if(null==this.entity)throw new Error("entity input is required for CvcEntityTagPopoverComponent")}static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275cmp=t.VBU({type:Ue,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,"featureId",4,"ngSwitchCase"],[3,"variantId",4,"ngSwitchCase"],[3,"molecularProfileId"],[3,"diseaseId"],[3,"therapyId"],[3,"sourceId"],[3,"phenotypeId"],[3,"evidenceId"],[3,"featureId"],[3,"variantId"]],template:function(_e,oe){1&_e&&(t.qex(0,0),t.DNE(1,F,1,1,"cvc-molecular-profile-popover",1)(2,X,1,1,"cvc-disease-popover",2)(3,V,1,1,"cvc-therapy-popover",3)(4,x,1,1,"cvc-source-popover",4)(5,ne,1,1,"cvc-phenotype-popover",5)(6,J,1,1,"cvc-evidence-popover",6)(7,be,1,1,"cvc-feature-popover",7)(8,Oe,1,1,"cvc-variant-popover",8),t.bVm()),2&_e&&(t.Y8G("ngSwitch",oe.entity.entityType),t.R7$(),t.Y8G("ngSwitchCase","MolecularProfile"),t.R7$(),t.Y8G("ngSwitchCase","Disease"),t.R7$(),t.Y8G("ngSwitchCase","Therapy"),t.R7$(),t.Y8G("ngSwitchCase","Source"),t.R7$(),t.Y8G("ngSwitchCase","Phenotype"),t.R7$(),t.Y8G("ngSwitchCase","EvidenceItem"),t.R7$(),t.Y8G("ngSwitchCase","Feature"),t.R7$(),t.Y8G("ngSwitchCase","Variant"))},dependencies:[g.ux,g.e1,e.q,M.R,G.u,L.a,B.F,A.S,w.X,I.A],encapsulation:2,changeDetection:0})}return Ue})();var me=c(1188),de=c(5103),H=c(5699),z=c(5154),Z=c(1236),pe=c(1555),E=c(3075),S=c(4137);function R(Ue,Ae){}function Y(Ue,Ae){if(1&Ue){const ie=t.RV6();t.j41(0,"span",9)(1,"nz-tag",10),t.bIt("nzCheckedChange",function(){t.eBV(ie);const oe=t.XpG();return t.Njj(oe.cvcTagCheckedChange)})("nzOnClose",function(oe){t.eBV(ie);const Fe=t.XpG();return t.Njj(Fe.cvcOnClose.next(oe))}),t.j41(2,"span",11),t.DNE(3,R,0,0,"ng-template",12),t.k0s()()()}if(2&Ue){const ie=t.XpG(),_e=t.sdS(6),oe=t.sdS(8);t.R7$(),t.Y8G("nzMode",ie.cvcMode)("nzChecked",ie.cvcTagChecked),t.R7$(),t.Y8G("nzPopoverContent",ie.cvcShowPopover&&ie.popoverInput?_e:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",oe)}}function se(Ue,Ae){}function Be(Ue,Ae){if(1&Ue&&(t.j41(0,"span",16),t.DNE(1,se,0,0,"ng-template",12),t.k0s()),2&Ue){const ie=t.XpG(2),_e=t.sdS(8);t.Y8G("nzTooltipTitle",ie.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",_e)}}function Pt(Ue,Ae){if(1&Ue){const ie=t.RV6();t.j41(0,"span",13)(1,"nz-tag",14),t.bIt("nzOnClose",function(oe){t.eBV(ie);const Fe=t.XpG();return t.Njj(Fe.cvcOnClose.next(oe))}),t.DNE(2,Be,2,2,"span",15),t.k0s()()}if(2&Ue){const ie=t.XpG(),_e=t.sdS(4);t.R7$(),t.Y8G("nzMode","closeable"),t.R7$(),t.Y8G("ngIf",ie.entity&&ie.entity.tooltip)("ngIfElse",_e)}}function vt(Ue,Ae){}function wt(Ue,Ae){if(1&Ue&&(t.j41(0,"span",16),t.DNE(1,vt,0,0,"ng-template",12),t.k0s()),2&Ue){const ie=t.XpG(2),_e=t.sdS(8);t.Y8G("nzTooltipTitle",ie.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",_e)}}function Le(Ue,Ae){if(1&Ue&&(t.j41(0,"span",17),t.DNE(1,wt,2,2,"span",15),t.k0s()),2&Ue){const ie=t.XpG(),_e=t.sdS(4);t.R7$(),t.Y8G("ngIf",ie.entity&&ie.entity.tooltip)("ngIfElse",_e)}}function zt(Ue,Ae){}function xt(Ue,Ae){if(1&Ue&&(t.j41(0,"span",11),t.DNE(1,zt,0,0,"ng-template",12),t.k0s()),2&Ue){const ie=t.XpG(),_e=t.sdS(6),oe=t.sdS(8);t.Y8G("nzPopoverContent",ie.popoverInput?_e:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",oe)}}function st(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-entity-tag-popover",19),2&Ue){const ie=t.XpG(2);t.Y8G("entity",ie.popoverInput)}}function Ct(Ue,Ae){if(1&Ue&&t.DNE(0,st,1,1,"cvc-entity-tag-popover",18),2&Ue){const ie=t.XpG();t.Y8G("ngIf",ie.popoverInput)}}function It(Ue,Ae){if(1&Ue&&(t.j41(0,"span"),t.eu8(1,12),t.k0s()),2&Ue){t.XpG();const ie=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",ie)}}function Tt(Ue,Ae){if(1&Ue&&(t.j41(0,"a",23),t.eu8(1,12),t.k0s()),2&Ue){t.XpG();const ie=t.sdS(4),_e=t.XpG(2);t.Y8G("routerLink",_e.entity.link),t.R7$(),t.Y8G("ngTemplateOutlet",ie)}}function en(Ue,Ae){if(1&Ue&&(t.nrm(0,"span",26),t.nI1(1,"typenameToIcon"),t.nI1(2,"entityColor")),2&Ue){const ie=t.XpG(4);t.Y8G("nzType",t.bMT(1,2,ie.typename))("nzTwotoneColor",t.bMT(2,4,ie.typename))}}function jt(Ue,Ae){if(1&Ue&&(t.DNE(0,en,3,6,"span",24),t.nrm(1,"span",25),t.nI1(2,"highlightTypeahead")),2&Ue){t.XpG(2);const ie=t.sdS(4),_e=t.XpG();t.Y8G("ngIf",_e.typename&&_e.cvcShowIcon)("ngIfElse",ie),t.R7$(),t.Y8G("innerHtml",t.i5U(2,3,_e.entity.name,_e.cvcEmphasize),t.npT)}}function Vt(Ue,Ae){if(1&Ue&&(t.qex(0),t.DNE(1,It,2,1,"span",21)(2,Tt,2,2,"a",22)(3,jt,3,6,"ng-template",null,5,t.C5r),t.bVm()),2&Ue){const ie=t.XpG(2);t.R7$(),t.Y8G("ngIf",ie.cvcDisableLink),t.R7$(),t.Y8G("ngIf",!ie.cvcDisableLink)}}function fn(Ue,Ae){}function Hn(Ue,Ae){if(1&Ue&&(t.DNE(0,fn,0,0,"ng-template",12),t.EFF(1)),2&Ue){t.XpG();const ie=t.sdS(4),_e=t.XpG();t.Y8G("ngTemplateOutlet",ie),t.R7$(),t.SpI(" CACHE-MISS (",_e.cvcCacheId,") ")}}function zn(Ue,Ae){1&Ue&&t.nrm(0,"span",27)}function bt(Ue,Ae){if(1&Ue&&t.DNE(0,Vt,5,2,"ng-container",20)(1,Hn,2,2,"ng-template",null,3,t.C5r)(3,zn,1,0,"ng-template",null,4,t.C5r),2&Ue){const ie=t.sdS(2),_e=t.XpG();t.Y8G("ngIf",_e.entity)("ngIfElse",ie)}}function At(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-entity-tag-popover",19),2&Ue){const ie=t.XpG(2);t.Y8G("entity",ie.popoverInput)}}function Et(Ue,Ae){if(1&Ue&&t.DNE(0,At,1,1,"cvc-entity-tag-popover",18),2&Ue){const ie=t.XpG();t.Y8G("ngIf",ie.popoverInput)}}const Ot=Ue=>void 0!==Ue&&Ue.__typename&&Ue.id&&void 0!==Ue.name;let Yt=(()=>{class Ue{set cvcLinkableEntity(ie){ie&&this.setLinkableEntity(ie)}set cvcCacheId(ie){ie&&this.setCachedLinkableEntity(ie)}constructor(ie){this.apollo=ie,this.cvcContext="default",this.cvcMode="default",this.cvcDisableLink=!0,this.cvcTagChecked=!1,this.cvcHasTooltip=!1,this.cvcFullWidth=!1,this.cvcShowPopover=!1,this.cvcShowIcon=!0,this.cvcTagCheckedChange=new t.bkB,this.cvcOnClose=new t.bkB}hasPopover(ie){return he.includes(ie)}setLinkableEntity(ie){Ot(ie)&&(this.typename=ie.__typename,this.id=ie.id,this.entity=ie,this.setPopoverInput(ie))}setCachedLinkableEntity(ie){const[_e,oe]=ie.split(":");if(this.typename=_e,this.id=+oe,!this.typename||!this.id)return void console.error(`entity-tag received an invalid cacheId: ${ie}. Cache IDs must be in the format 'TYPENAME:ID'.`);let Fe;Fe=this.cvcDisableLink?this.cvcHasTooltip?{id:`${_e}:${oe}`,fragment:r.J1` + fragment Linkable${_e}Entity on ${_e} { + id + name + tooltip + } + `}:{id:`${_e}:${oe}`,fragment:r.J1` + fragment Linkable${_e}Entity on ${_e} { + id + name + } + `}:{id:`${_e}:${oe}`,fragment:r.J1` + fragment Linkable${_e}Entity on ${_e} { + id + name + link + } + `};const et=this.apollo.client.readFragment(Fe);Ot(et)?(this.setPopoverInput(et),this.entity=et):console.error(`entity-tag could not find cached entity ${ie}`)}setPopoverInput(ie){Ot(ie)&&this.hasPopover(ie.__typename)&&(this.popoverInput={entityId:ie.id,entityType:ie.__typename})}ngOnChanges(ie){ie.cvcMode&&"checkable"===ie.cvcMode.currentValue&&(this.cvcDisableLink=!0),ie.cvcContext&&"default"!==ie.cvcContext.currentValue&&(this.cvcDisableLink=!0)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(t.rXU(r.Ic))};static#t=this.\u0275cmp=t.VBU({type:Ue,selectors:[["cvc-entity-tag"]],hostVars:40,hostBindings:function(_e,oe){2&_e&&t.AVh("full-width",!0===oe.cvcFullWidth)("label-max",void 0!==oe.cvcTruncateLabel)("label-max-50","50px"===oe.cvcTruncateLabel)("label-max-75","75px"===oe.cvcTruncateLabel)("label-max-100","100px"===oe.cvcTruncateLabel)("label-max-125","125px"===oe.cvcTruncateLabel)("label-max-150","150px"===oe.cvcTruncateLabel)("label-max-175","175px"===oe.cvcTruncateLabel)("label-max-200","200px"===oe.cvcTruncateLabel)("label-max-250","250px"===oe.cvcTruncateLabel)("label-max-300","300px"===oe.cvcTruncateLabel)("label-max-350","350px"===oe.cvcTruncateLabel)("label-max-400","400px"===oe.cvcTruncateLabel)("label-max-450","450px"===oe.cvcTruncateLabel)("label-max-500","500px"===oe.cvcTruncateLabel)("rejected","REJECTED"===oe.cvcStatus)("accepted","ACCEPTED"===oe.cvcStatus)("submitted","SUBMITTED"===oe.cvcStatus)("new","NEW"===oe.cvcStatus)("superseded","SUPERSEDED"===oe.cvcStatus)},inputs:{cvcLinkableEntity:"cvcLinkableEntity",cvcCacheId:"cvcCacheId",cvcStatus:"cvcStatus",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcEmphasize:"cvcEmphasize",cvcDisableLink:"cvcDisableLink",cvcTagChecked:"cvcTagChecked",cvcHasTooltip:"cvcHasTooltip",cvcFullWidth:"cvcFullWidth",cvcShowPopover:"cvcShowPopover",cvcShowIcon:"cvcShowIcon",cvcTruncateLabel:"cvcTruncateLabel"},outputs:{cvcTagCheckedChange:"cvcTagCheckedChange",cvcOnClose:"cvcOnClose"},features:[t.OA$],decls:11,vars:3,consts:[["noTooltip",""],["popoverContent",""],["tagContent",""],["cacheMiss",""],["noIcon",""],["tagLabel",""],["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],[1,"default"],[3,"nzCheckedChange","nzOnClose","nzMode","nzChecked"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngTemplateOutlet"],[1,"select-item"],[3,"nzOnClose","nzMode"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",3,"nzTooltipTitle"],[1,"multi-select-item"],[3,"entity",4,"ngIf"],[3,"entity"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"routerLink",4,"ngIf"],[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"],[1,"tag-no-icon"]],template:function(_e,oe){1&_e&&t.DNE(0,Y,4,4,"span",6)(1,Pt,3,3,"span",7)(2,Le,2,2,"span",8)(3,xt,2,2,"ng-template",null,0,t.C5r)(5,Ct,1,1,"ng-template",null,1,t.C5r)(7,bt,5,2,"ng-template",null,2,t.C5r)(9,Et,1,1,"ng-template",null,1,t.C5r),2&_e&&(t.Y8G("ngIf","default"===oe.cvcContext),t.R7$(),t.Y8G("ngIf","select-item"===oe.cvcContext),t.R7$(),t.Y8G("ngIf","multi-select-item"===oe.cvcContext))},dependencies:[g.bT,g.T3,me.Wk,de.Dn,H.s,z.LH,Z.L_,we,pe.M,E.R,S.o],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.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-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.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-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.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})}return Ue})()},181:(Rt,De,c)=>{c.d(De,{_:()=>Oe});var t=c(177),r=c(5103),g=c(5699),e=c(4917),M=c(5154),G=c(1188),L=c(3953);let B=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=L.$C({type:he});static#n=this.\u0275inj=L.G2t({imports:[t.MD]})}return he})();var A=c(1236),w=c(8156),I=c(4666),F=c(5928),X=c(8052),V=c(2582),x=c(7683),ne=c(3126),J=c(6075);let be=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=L.$C({type:he});static#n=this.\u0275inj=L.G2t({imports:[t.MD,X.b,w.U,x.B,ne.t,V.y,I.v,F.o,J.$]})}return he})(),Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=L.$C({type:he});static#n=this.\u0275inj=L.G2t({imports:[t.MD,G.iI,r.Y3,g.T,M.Qt,A.MC,B,e.i,be,B]})}return he})()},8721:(Rt,De,c)=>{c.d(De,{G:()=>ne});var t=c(1635),r=c(9894),g=c(3953),e=c(1188),M=c(177),G=c(2983),L=c(3617),B=c(1774);const A=["*"];function w(J,be){if(1&J&&g.nrm(0,"nz-alert",6),2&J){g.XpG();const Oe=g.sdS(3),he=g.XpG();g.Mz_("nzMessage","Error Submitting ",he.entityType,""),g.Y8G("nzDescription",Oe)}}function I(J,be){if(1&J&&(g.j41(0,"li"),g.EFF(1),g.k0s()),2&J){const Oe=be.$implicit;g.R7$(),g.SpI(" ",Oe," ")}}function F(J,be){if(1&J&&(g.j41(0,"ul"),g.DNE(1,I,2,1,"li",7),g.k0s()),2&J){const Oe=g.XpG().ngIf;g.R7$(),g.Y8G("ngForOf",Oe)}}function X(J,be){if(1&J&&(g.qex(0),g.DNE(1,w,1,3,"nz-alert",5)(2,F,2,1,"ng-template",null,1,g.C5r),g.bVm()),2&J){const Oe=be.ngIf;g.R7$(),g.Y8G("ngIf",Oe.length>0)}}function V(J,be){if(1&J&&(g.qex(0),g.nrm(1,"nz-alert",8),g.bVm()),2&J){const Oe=g.XpG();g.R7$(),g.Mz_("nzMessage","",Oe.entityType," Submitted"),g.Y8G("nzDescription",Oe.successMessage?Oe.successMessage:null)}}function x(J,be){1&J&&g.SdG(0)}let ne=class D8{set mutationState(be){this._mutationState=be,this.currentTimer&&clearTimeout(this.currentTimer),be&&be.submitSuccess$.pipe((0,r.s)(this)).subscribe(Oe=>{Oe&&(this.currentTimer=setTimeout(()=>{this.redirectUrl&&this.router.navigateByUrl(this.redirectUrl)},2500))})}get mutationState(){return this._mutationState}constructor(be){this.router=be}ngOnInit(){}static#e=this.\u0275fac=function(Oe){return new(Oe||D8)(g.rXU(e.Ix))};static#t=this.\u0275cmp=g.VBU({type:D8,selectors:[["cvc-form-submission-status-display"]],inputs:{mutationState:"mutationState",entityType:"entityType",successMessage:"successMessage",redirectUrl:"redirectUrl"},ngContentSelectors:A,decls:8,vars:10,consts:[["form",""],["errorList",""],[3,"nzSpinning"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription"],[4,"ngFor","ngForOf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(Oe,he){if(1&Oe&&(g.NAR(),g.j41(0,"nz-spin",2),g.nI1(1,"ngrxPush"),g.DNE(2,X,4,1,"ng-container",3),g.nI1(3,"ngrxPush"),g.DNE(4,V,2,3,"ng-container",4),g.nI1(5,"ngrxPush"),g.DNE(6,x,1,0,"ng-template",null,0,g.C5r),g.k0s()),2&Oe){const we=g.sdS(7);g.Y8G("nzSpinning",g.bMT(1,4,null==he.mutationState?null:he.mutationState.isSubmitting$)),g.R7$(2),g.Y8G("ngIf",g.bMT(3,6,null==he.mutationState?null:he.mutationState.submitError$)),g.R7$(2),g.Y8G("ngIf",g.bMT(5,8,null==he.mutationState?null:he.mutationState.submitSuccess$))("ngIfElse",we)}},dependencies:[M.Sq,M.bT,G.a,L.Y,B.L9],encapsulation:2,changeDetection:0})};ne=(0,t.Cg)([(0,r.d)()],ne)},5316:(Rt,De,c)=>{c.d(De,{P:()=>G});var t=c(177),r=c(3617),g=c(7685),e=c(2983),M=c(3953);let G=(()=>{class L{static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275mod=M.$C({type:L});static#n=this.\u0275inj=M.G2t({imports:[t.MD,e.V,r.$,g.pc]})}return L})()},8168:(Rt,De,c)=>{c.d(De,{m:()=>Gd});var t=c(9417),r=c(1188),g=c(8524),e=c(3953),M=c(177),G=c(8927),L=c(7529);function B(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",4),e.EFF(2),e.k0s(),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("nzRequired",a.props.required&&!0!==a.props.hideRequiredMarker)("nzFor",a.id),e.R7$(),e.SpI(" ",a.props.label," ")}}function A(u,b){if(1&u&&e.nrm(0,"formly-validation-message",5),2&u){const a=e.XpG();e.Y8G("field",a.field)}}let w=(()=>{class u extends g.cm{get errorState(){return this.showError?"error":""}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-wrapper-nz-form-field"]],features:[e.Vt3],decls:7,vars:4,consts:[["fieldComponent",""],["errorTpl",""],[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip","nzExtra"],[3,"nzRequired","nzFor"],[3,"field"]],template:function(a,h){if(1&a&&(e.j41(0,"nz-form-item"),e.DNE(1,B,3,3,"ng-container",2),e.j41(2,"nz-form-control",3),e.eu8(3,null,0),e.DNE(5,A,1,1,"ng-template",null,1,e.C5r),e.k0s()()),2&a){const _=e.sdS(6);e.R7$(),e.Y8G("ngIf",h.props.label&&!0!==h.props.hideLabel),e.R7$(),e.Y8G("nzValidateStatus",h.errorState)("nzErrorTip",_)("nzExtra",h.props.description)}},dependencies:[G.Ls,G.Mo,G.zS,g.Nc,L.e,M.bT,L.Uq],encapsulation:2}),u})(),I=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,G.PQ,g.qy.forChild({wrappers:[{name:"form-field",component:w}]})]]}),u})();var F=c(1011),X=c(7336),V=c(1413),x=c(3726),ne=c(7786),J=c(3294),be=c(6977),Oe=c(9172),he=c(5558),we=c(1397),me=c(6354),de=c(7891),H=c(1025),z=c(317),Z=c(5103),pe=c(851),E=c(8203),S=c(7806);const R=["upHandler"],Y=["downHandler"],se=["inputElement"];function Be(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",10),2&u){const a=e.XpG();e.Y8G("status",a.status)}}const Pt=["nz-input-number-group-slot",""],vt=["*"];function wt(u,b){if(1&u&&e.nrm(0,"span",0),2&u){const a=e.XpG();e.Y8G("nzType",a.icon)}}function Le(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.JRh(a.template)}}function zt(u,b){if(1&u&&e.nrm(0,"div",3),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzAddOnBeforeIcon)("template",a.nzAddOnBefore)}}function xt(u,b){}function st(u,b){if(1&u&&(e.j41(0,"div",6),e.DNE(1,xt,0,0,"ng-template",5),e.k0s()),2&u){const a=e.XpG(2),h=e.sdS(3);e.AVh("ant-input-number-affix-wrapper-disabled",a.disabled)("ant-input-number-affix-wrapper-sm",a.isSmall)("ant-input-number-affix-wrapper-lg",a.isLarge)("ant-input-number-affix-wrapper-focused",a.focused),e.Y8G("ngClass",a.affixInGroupStatusCls),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Ct(u,b){}function It(u,b){if(1&u&&e.DNE(0,Ct,0,0,"ng-template",5),2&u){e.XpG(2);const a=e.sdS(5);e.Y8G("ngTemplateOutlet",a)}}function Tt(u,b){if(1&u&&e.nrm(0,"span",3),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzAddOnAfterIcon)("template",a.nzAddOnAfter)}}function en(u,b){if(1&u&&(e.j41(0,"span",2),e.DNE(1,zt,1,2,"div",3)(2,st,2,10,"div",4)(3,It,1,1,null,5)(4,Tt,1,2,"span",3),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.vxM(a.nzAddOnBefore||a.nzAddOnBeforeIcon?1:-1),e.R7$(),e.vxM(a.isAffix||a.hasFeedback?2:3),e.R7$(2),e.vxM(a.nzAddOnAfter||a.nzAddOnAfterIcon?4:-1)}}function jt(u,b){}function Vt(u,b){if(1&u&&e.DNE(0,jt,0,0,"ng-template",5),2&u){e.XpG(2);const a=e.sdS(3);e.Y8G("ngTemplateOutlet",a)}}function fn(u,b){}function Hn(u,b){if(1&u&&e.DNE(0,fn,0,0,"ng-template",5),2&u){e.XpG(2);const a=e.sdS(5);e.Y8G("ngTemplateOutlet",a)}}function zn(u,b){if(1&u&&e.DNE(0,Vt,1,1,null,5)(1,Hn,1,1,null,5),2&u){const a=e.XpG();e.vxM(a.isAffix?0:1)}}function bt(u,b){if(1&u&&e.nrm(0,"span",7),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzPrefixIcon)("template",a.nzPrefix)}}function At(u,b){}function Et(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const a=e.XpG(3);e.Y8G("status",a.status)}}function Ot(u,b){if(1&u&&(e.j41(0,"span",8),e.DNE(1,Et,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzSuffixIcon)("template",a.nzSuffix),e.R7$(),e.vxM(a.isFeedback?1:-1)}}function Yt(u,b){if(1&u&&e.DNE(0,bt,1,2,"span",7)(1,At,0,0,"ng-template",5)(2,Ot,2,3,"span",8),2&u){const a=e.XpG(),h=e.sdS(5);e.vxM(a.nzPrefix||a.nzPrefixIcon?0:-1),e.R7$(),e.Y8G("ngTemplateOutlet",h),e.R7$(),e.vxM(a.nzSuffix||a.nzSuffixIcon||a.isFeedback?2:-1)}}function Ue(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const a=e.XpG(3);e.Y8G("status",a.status)}}function Ae(u,b){if(1&u&&(e.j41(0,"span",10),e.DNE(1,Ue,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const a=e.XpG(2);e.R7$(),e.vxM(a.isFeedback?1:-1)}}function ie(u,b){if(1&u&&(e.SdG(0),e.DNE(1,Ae,2,1,"span",10)),2&u){const a=e.XpG();e.R7$(),e.vxM(a.isAddOn||a.isAffix||!a.isFeedback?-1:1)}}let _e=(()=>{class u{onModelChange(a){this.parsedValue=this.nzParser(a),this.inputElement.nativeElement.value=`${this.parsedValue}`;const h=this.getCurrentValidValue(this.parsedValue);this.setValue(h)}getCurrentValidValue(a){let h=a;return h=""===h?"":this.isNotCompleteNumber(h)?this.value:`${this.getValidValue(h)}`,this.toNumber(h)}isNotCompleteNumber(a){return isNaN(a)||""===a||null===a||!(!a||a.toString().indexOf(".")!==a.toString().length-1)}getValidValue(a){let h=parseFloat(a);return isNaN(h)?a:(hthis.nzMax&&(h=this.nzMax),h)}toNumber(a){if(this.isNotCompleteNumber(a))return a;const h=String(a);if(h.indexOf(".")>=0&&(0,z.n9)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(a,this.nzPrecision);if("cut"===this.nzPrecisionMode){const _=h.split(".");return _[1]=_[1].slice(0,this.nzPrecision),Number(_.join("."))}return Number(Number(a).toFixed(this.nzPrecision))}return Number(a)}getRatio(a){let h=1;return a.metaKey||a.ctrlKey?h=.1:a.shiftKey&&(h=10),h}down(a,h){this.isFocused||this.focus(),this.step("down",a,h)}up(a,h){this.isFocused||this.focus(),this.step("up",a,h)}getPrecision(a){const h=a.toString();if(h.indexOf("e-")>=0)return parseInt(h.slice(h.indexOf("e-")+2),10);let _=0;return h.indexOf(".")>=0&&(_=h.length-h.indexOf(".")-1),_}getMaxPrecision(a,h){if((0,z.n9)(this.nzPrecision))return this.nzPrecision;const _=this.getPrecision(h),ee=this.getPrecision(this.nzStep),ft=this.getPrecision(a);return a?Math.max(ft,_+ee):_+ee}getPrecisionFactor(a,h){const _=this.getMaxPrecision(a,h);return Math.pow(10,_)}upStep(a,h){const _=this.getPrecisionFactor(a,h),ee=Math.abs(this.getMaxPrecision(a,h));let ft;return ft="number"==typeof a?((_*a+_*this.nzStep*h)/_).toFixed(ee):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(ft)}downStep(a,h){const _=this.getPrecisionFactor(a,h),ee=Math.abs(this.getMaxPrecision(a,h));let ft;return ft="number"==typeof a?((_*a-_*this.nzStep*h)/_).toFixed(ee):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(ft)}step(a,h,_=1){if(this.stop(),h.preventDefault(),this.nzDisabled)return;const ee=this.getCurrentValidValue(this.parsedValue)||0;let ft=0;"up"===a?ft=this.upStep(ee,_):"down"===a&&(ft=this.downStep(ee,_));const nn=ft>this.nzMax||ftthis.nzMax?ft=this.nzMax:ft{this[a](h,_)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(a){if(`${this.value}`!=`${a}`&&this.onChange(a),this.value=a,this.parsedValue=a,this.disabledUp=this.disabledDown=!1,a||0===a){const h=Number(a);h>=this.nzMax&&(this.disabledUp=!0),h<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(a){const h=(0,z.n9)(this.nzFormatter(a))?this.nzFormatter(a):"";this.displayValue=h,this.inputElement.nativeElement.value=`${h}`}writeValue(a){this.value=a,this.setValue(a),this.updateDisplayValue(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.disabled$.next(this.nzDisabled),this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(a,h,_,ee,ft,nn,Rn,xi,Co){this.ngZone=a,this.elementRef=h,this.cdr=_,this.focusMonitor=ee,this.renderer=ft,this.directionality=nn,this.destroy$=Rn,this.nzFormStatusService=xi,this.nzFormNoStatusService=Co,this.isNzDisableFirstChange=!0,this.isFocused=!1,this.disabled$=new V.B,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 e.bkB,this.nzFocus=new e.bkB,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=jo=>jo.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=jo=>jo}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,J.F)((a,h)=>a.status===h.status&&a.hasFeedback===h.hasFeedback),(0,be.Q)(this.destroy$)).subscribe(({status:a,hasFeedback:h})=>{this.setStatusStyles(a,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,be.Q)(this.destroy$)).subscribe(a=>{a?(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,be.Q)(this.destroy$)).subscribe(a=>{this.dir=a}),this.setupHandlersListeners(),this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.inputElement.nativeElement,"keyup").pipe((0,be.Q)(this.destroy$)).subscribe(()=>this.stop()),(0,x.R)(this.inputElement.nativeElement,"keydown").pipe((0,be.Q)(this.destroy$)).subscribe(a=>{const{keyCode:h}=a;h!==X.i7&&h!==X.n6&&h!==X.Fm||this.ngZone.run(()=>{if(h===X.i7){const _=this.getRatio(a);this.up(a,_),this.stop()}else if(h===X.n6){const _=this.getRatio(a);this.down(a,_),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(a){const{nzStatus:h,nzDisabled:_}=a;if(a.nzFormatter&&!a.nzFormatter.isFirstChange()){const ee=this.getCurrentValidValue(this.parsedValue);this.setValue(ee),this.updateDisplayValue(ee)}_&&this.disabled$.next(this.nzDisabled),h&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef)}setupHandlersListeners(){this.ngZone.runOutsideAngular(()=>{(0,ne.h)((0,x.R)(this.upHandler.nativeElement,"mouseup"),(0,x.R)(this.upHandler.nativeElement,"mouseleave"),(0,x.R)(this.downHandler.nativeElement,"mouseup"),(0,x.R)(this.downHandler.nativeElement,"mouseleave")).pipe((0,be.Q)(this.destroy$)).subscribe(()=>this.stop())})}setStatusStyles(a,h){this.status=a,this.hasFeedback=h,this.cdr.markForCheck(),this.statusCls=(0,z.LP)(this.prefixCls,a,h),Object.keys(this.statusCls).forEach(_=>{this.statusCls[_]?this.renderer.addClass(this.elementRef.nativeElement,_):this.renderer.removeClass(this.elementRef.nativeElement,_)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(pe.FN),e.rXU(e.sFG),e.rXU(E.dS,8),e.rXU(H.y4),e.rXU(de.is,8),e.rXU(de.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number"]],viewQuery:function(h,_){if(1&h&&(e.GBs(R,7),e.GBs(Y,7),e.GBs(se,7)),2&h){let ee;e.mGM(ee=e.lsd())&&(_.upHandler=ee.first),e.mGM(ee=e.lsd())&&(_.downHandler=ee.first),e.mGM(ee=e.lsd())&&(_.inputElement=ee.first)}},hostAttrs:[1,"ant-input-number"],hostVars:16,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-in-form-item",!!_.nzFormStatusService)("ant-input-number-focused",_.isFocused)("ant-input-number-lg","large"===_.nzSize)("ant-input-number-sm","small"===_.nzSize)("ant-input-number-disabled",_.nzDisabled)("ant-input-number-readonly",_.nzReadOnly)("ant-input-number-rtl","rtl"===_.dir)("ant-input-number-borderless",_.nzBorderless)},inputs:{nzSize:"nzSize",nzMin:[2,"nzMin","nzMin",e.Udg],nzMax:[2,"nzMax","nzMax",e.Udg],nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStatus:"nzStatus",nzStep:[2,"nzStep","nzStep",e.Udg],nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzReadOnly:[2,"nzReadOnly","nzReadOnly",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzBorderless:[2,"nzBorderless","nzBorderless",e.L39],nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],standalone:!0,features:[e.Jv_([{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0},H.y4]),e.GFd,e.OA$,e.aNF],decls:11,vars:15,consts:[["upHandler",""],["downHandler",""],["inputElement",""],[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["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"],["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,"ngModelChange","disabled","placeholder","readOnly","ngModel"],[1,"ant-input-number-suffix",3,"status"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"div",3)(1,"span",4,0),e.bIt("mousedown",function(nn){return e.eBV(ee),e.Njj(_.up(nn))}),e.nrm(3,"span",5),e.k0s(),e.j41(4,"span",6,1),e.bIt("mousedown",function(nn){return e.eBV(ee),e.Njj(_.down(nn))}),e.nrm(6,"span",7),e.k0s()(),e.j41(7,"div",8)(8,"input",9,2),e.bIt("ngModelChange",function(nn){return e.eBV(ee),e.Njj(_.onModelChange(nn))}),e.k0s()(),e.DNE(10,Be,1,1,"nz-form-item-feedback-icon",10)}2&h&&(e.R7$(),e.AVh("ant-input-number-handler-up-disabled",_.disabledUp),e.R7$(3),e.AVh("ant-input-number-handler-down-disabled",_.disabledDown),e.R7$(4),e.Y8G("disabled",_.nzDisabled)("placeholder",_.nzPlaceHolder)("readOnly",_.nzReadOnly)("ngModel",_.displayValue),e.BMQ("id",_.nzId)("autofocus",_.nzAutoFocus?"autofocus":null)("min",_.nzMin)("max",_.nzMax)("step",_.nzStep)("inputmode",_.nzInputMode),e.R7$(2),e.vxM(_.hasFeedback&&_.status&&!_.nzFormNoStatusService?10:-1))},dependencies:[Z.Y3,Z.Dn,t.YN,t.me,t.BC,t.vS,de.J1,de.Xd],encapsulation:2,changeDetection:0})}return u})(),oe=(()=>{class u{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-input-number-group-slot",""]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group-addon","addon"===_.type)("ant-input-number-prefix","prefix"===_.type)("ant-input-number-suffix","suffix"===_.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[e.aNF],attrs:Pt,ngContentSelectors:vt,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,wt,1,1,"span",0)(1,Le,2,1,"ng-container",1),e.SdG(2)),2&h&&(e.vxM(_.icon?0:-1),e.R7$(),e.Y8G("nzStringTemplateOutlet",_.template))},dependencies:[Z.Y3,Z.Dn,S.C,S.m],encapsulation:2,changeDetection:0})}return u})(),et=(()=>{class u{constructor(a,h,_,ee,ft,nn,Rn){this.focusMonitor=a,this.elementRef=h,this.renderer=_,this.cdr=ee,this.directionality=ft,this.nzFormStatusService=nn,this.nzFormNoStatusService=Rn,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 V.B}updateChildrenInputSize(){this.listOfNzInputNumberComponent&&this.listOfNzInputNumberComponent.forEach(a=>a.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,J.F)((a,h)=>a.status===h.status&&a.hasFeedback===h.hasFeedback),(0,be.Q)(this.destroy$)).subscribe(({status:a,hasFeedback:h})=>{this.setStatusStyles(a,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.focused=!!a,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.dir=a})}ngAfterContentInit(){this.updateChildrenInputSize();const a=this.listOfNzInputNumberComponent.changes.pipe((0,Oe.Z)(this.listOfNzInputNumberComponent));a.pipe((0,he.n)(h=>(0,ne.h)(a,...h.map(_=>_.disabled$))),(0,we.Z)(()=>a),(0,me.T)(h=>h.some(_=>_.nzDisabled)),(0,be.Q)(this.destroy$)).subscribe(h=>{this.disabled=h,this.cdr.markForCheck()})}ngOnChanges(a){const{nzSize:h,nzSuffix:_,nzPrefix:ee,nzPrefixIcon:ft,nzSuffixIcon:nn,nzAddOnAfter:Rn,nzAddOnBefore:xi,nzAddOnAfterIcon:Co,nzAddOnBeforeIcon:jo,nzStatus:Ra}=a;h&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(_||ee||ft||nn)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Rn||xi||Co||jo)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),Ra&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(a,h){this.status=a,this.hasFeedback=h,this.isFeedback=!!a&&h,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&h,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,z.LP)(`${this.prefixCls}-affix-wrapper`,a,h):{},this.cdr.markForCheck(),this.affixStatusCls=(0,z.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":a,!this.isAddOn&&h),this.groupStatusCls=(0,z.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?a:"",!!this.isAddOn&&h);const ee={...this.affixStatusCls,...this.groupStatusCls};Object.keys(ee).forEach(ft=>{ee[ft]?this.renderer.addClass(this.elementRef.nativeElement,ft):this.renderer.removeClass(this.elementRef.nativeElement,ft)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(pe.FN),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(E.dS,8),e.rXU(de.is,8),e.rXU(de.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number-group"]],contentQueries:function(h,_,ee){if(1&h&&e.wni(ee,_e,5),2&h){let ft;e.mGM(ft=e.lsd())&&(_.listOfNzInputNumberComponent=ft)}},hostVars:24,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group",_.nzCompact)("ant-input-number-group-compact",_.nzCompact)("ant-input-number-group-wrapper",_.isAddOn)("ant-input-number-group-wrapper-rtl",_.isAddOn&&"rtl"===_.dir)("ant-input-number-group-wrapper-lg",_.isAddOn&&_.isLarge)("ant-input-number-group-wrapper-sm",_.isAddOn&&_.isSmall)("ant-input-number-affix-wrapper",!_.isAddOn&&_.isAffix)("ant-input-number-affix-wrapper-rtl",!_.isAddOn&&"rtl"===_.dir)("ant-input-number-affix-wrapper-focused",!_.isAddOn&&_.isAffix&&_.focused)("ant-input-number-affix-wrapper-disabled",!_.isAddOn&&_.isAffix&&_.disabled)("ant-input-number-affix-wrapper-lg",!_.isAddOn&&_.isAffix&&_.isLarge)("ant-input-number-affix-wrapper-sm",!_.isAddOn&&_.isAffix&&_.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzCompact:[2,"nzCompact","nzCompact",e.L39]},exportAs:["nzInputNumberGroup"],standalone:!0,features:[e.Jv_([de.n1]),e.GFd,e.OA$,e.aNF],ngContentSelectors:vt,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-number-wrapper","ant-input-number-group"],["nz-input-number-group-slot","","type","addon",3,"icon","template"],[1,"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"],[3,"ngTemplateOutlet"],[1,"ant-input-number-affix-wrapper",3,"ngClass"],["nz-input-number-group-slot","","type","prefix",3,"icon","template"],["nz-input-number-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-number-group-slot","","type","suffix"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,en,5,3,"span",2)(1,zn,2,1)(2,Yt,3,3,"ng-template",null,0,e.C5r)(4,ie,2,1,"ng-template",null,1,e.C5r)),2&h&&e.vxM(_.isAddOn?0:1)},dependencies:[oe,M.YU,M.T3,de.J1,de.Xd],encapsulation:2,changeDetection:0})}return u})(),ut=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[_e,et,oe]})}return u})();function Kt(u,b){if(1&u&&e.nrm(0,"input",2),2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("type",a.props.type||"text")("formlyAttributes",a.field)}}function cn(u,b){if(1&u&&e.nrm(0,"nz-input-number",3),2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("formlyAttributes",a.field)}}let Tn=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes",4,"ngIf","ngIfElse"],["nz-input","",3,"formControl","type","formlyAttributes"],[3,"formControl","formlyAttributes"]],template:function(a,h){if(1&a&&e.DNE(0,Kt,1,3,"input",1)(1,cn,1,2,"ng-template",null,0,e.C5r),2&a){const _=e.sdS(2);e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",_)}},dependencies:[_e,M.bT,F.Sy,t.me,t.BC,t.l_,g.ch],encapsulation:2,changeDetection:0}),u})(),Wn=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,F.j,ut,I,g.qy.forChild({types:[{name:"input",component:Tn,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]})]]}),u})(),kn=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(a,h){1&a&&e.nrm(0,"textarea",0),2&a&&e.Y8G("formControl",h.formControl)("formlyAttributes",h.field)},dependencies:[F.Sy,t.me,t.BC,t.l_,g.ch],encapsulation:2,changeDetection:0}),u})(),Vn=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,F.j,I,g.qy.forChild({types:[{name:"textarea",component:kn,wrappers:["form-field"]}]})]]}),u})();var Un=c(1985),dn=c(4412),qt=c(5964),On=c(8141);let Ut=(()=>{class u{transform(a,h){return a instanceof Un.c?this.dispose():a=this.observableOf(a,h),a.pipe((0,me.T)(_=>this.transformOptions(_,h)))}ngOnDestroy(){this.dispose()}transformOptions(a,h){const _=this.transformSelectProps(h),ee=[],ft={};return a?.forEach(nn=>{const Rn=this.transformOption(nn,_);if(Rn.group){const xi=ft[Rn.label];void 0===xi?ft[Rn.label]=ee.push(Rn)-1:Rn.group.forEach(Co=>ee[xi].group.push(Co))}else ee.push(Rn)}),ee}transformOption(a,h){const _=h.groupProp(a);return Array.isArray(_)?{label:h.labelProp(a),group:_.map(ee=>this.transformOption(ee,h))}:(a={label:h.labelProp(a),value:h.valueProp(a),disabled:!!h.disabledProp(a)},_?{label:_,group:[a]}:a)}transformSelectProps(a){const h=a?.props||a?.templateOptions||{},_=ee=>"function"==typeof ee?ee:ft=>ft[ee];return{groupProp:_(h.groupProp||"group"),labelProp:_(h.labelProp||"label"),valueProp:_(h.valueProp||"value"),disabledProp:_(h.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(a,h){return this.dispose(),h&&h.options&&h.options.fieldChanges&&(this._subscription=h.options.fieldChanges.pipe((0,qt.p)(({property:_,type:ee,field:ft})=>"expressionChanges"===ee&&(0===_.indexOf("templateOptions.options")||0===_.indexOf("props.options"))&&ft===h&&Array.isArray(ft.props.options)&&!!this._options),(0,On.M)(()=>this._options.next(h.props.options))).subscribe()),this._options=new dn.t(a),this._options.asObservable()}}return u.\u0275fac=function(a){return new(a||u)},u.\u0275pipe=e.EJ8({name:"formlySelectOptions",type:u,pure:!0}),u})(),Ye=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({}),u})();var ue=c(3190);function te(u,b){if(1&u&&(e.j41(0,"label",2),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled),e.R7$(),e.SpI(" ",a.label," ")}}let q=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-radio"]],features:[e.Vt3],decls:4,vars:7,consts:[[3,"ngModelChange","formControl"],["nz-radio","",3,"nzValue","nzDisabled",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue","nzDisabled"]],template:function(a,h){1&a&&(e.j41(0,"nz-radio-group",0),e.bIt("ngModelChange",function(ee){return h.props.change&&h.props.change(h.field,ee)}),e.DNE(1,te,2,3,"label",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&a&&(e.Y8G("formControl",h.formControl),e.R7$(),e.Y8G("ngForOf",e.bMT(3,5,e.i5U(2,2,h.props.options,h.field))))},dependencies:[ue.i3,ue.lx,t.BC,t.l_,M.Sq,M.Jj,Ut],encapsulation:2,changeDetection:0}),u})(),Xe=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,ue.Sw,I,Ye,g.qy.forChild({types:[{name:"radio",component:q,wrappers:["form-field"]}]})]]}),u})();var dt=c(2986);let at=(()=>{class u extends g.PU{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(a,h){1&a&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ee){return h.props.change&&h.props.change(h.field,ee)}),e.EFF(1),e.k0s()),2&a&&(e.Y8G("nzIndeterminate",h.props.indeterminate&&null==h.formControl.value)("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.SpI(" ",h.props.label," "))},dependencies:[dt.$g,t.BC,t.l_,g.ch],encapsulation:2,changeDetection:0}),u})(),St=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,dt.IJ,I,g.qy.forChild({types:[{name:"checkbox",component:at,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]})]]}),u})();var Qe=c(1997);function Ee(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function Je(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,Ee,1,3,"nz-option",5),e.k0s()),2&u){const a=e.XpG().$implicit;e.Y8G("nzLabel",a.label),e.R7$(),e.Y8G("ngForOf",a.group)}}function re(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=e.XpG().$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function ze(u,b){if(1&u&&(e.qex(0),e.DNE(1,Je,2,2,"nz-option-group",2)(2,re,1,3,"nz-option",3),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",a.group),e.R7$(),e.Y8G("ngIf",!a.group)}}let gt=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(a,h){1&a&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(ee){return h.props.change&&h.props.change(h.field,ee)}),e.DNE(1,ze,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&a&&(e.AVh("ng-dirty",h.showError),e.Y8G("nzPlaceHolder",h.props.placeholder)("formControl",h.formControl)("formlyAttributes",h.field)("nzMode",h.props.multiple?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,h.props.options,h.field))))},dependencies:[Qe.WI,Qe.uX,Qe.ld,t.BC,t.l_,g.ch,M.Sq,M.bT,M.Jj,Ut],encapsulation:2,changeDetection:0}),u})(),Ke=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,Qe.DH,I,Ye,g.qy.forChild({types:[{name:"select",component:gt,wrappers:["form-field"]},{name:"enum",extends:"select"}]})]]}),u})(),Pe=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[I,Wn,Vn,Xe,St,Ke]]}),u})();var Re=c(776);function $(u,b){return(0,J.F)((a,h)=>b?b(a[u],h[u]):a[u]===h[u])}const ce={paramKey:!0};class N{constructor(b){this.route=b,this.unSub$=new V.B}postPopulate(b){if(b.fieldGroup||b.fieldArray||!1===(b.props||{...ce}).paramKey||(this.paramKey=this.getParamKey(b),!this.paramKey))return;const h=this.getRouteSub(this.route,b),_=b.hooks?.onDestroy;h&&_&&(b.hooks={...b.hooks,onDestroy:ee=>{h.unsubscribe(),_(ee)}})}getParamKey(b){const a=b.props;if("string"==typeof a.paramKey)return a.paramKey;if(b.key){if("string"==typeof b.key)return b.key;console.warn(`observe-query-param cannot use field key ${JSON.stringify(b.key)} of type ${typeof b.key} to observe a query param. Use prop.paramKey to specify a query param string, or define a string field.key.`)}}getRouteSub(b,a){return b.queryParams.pipe($(this.paramKey),(0,be.Q)(this.unSub$)).subscribe(h=>{const _=a.formControl,ee=h[this.paramKey];if(!ee)return void this.unSub$.next();let ft;try{ft=JSON.parse(ee)}catch(nn){return console.warn(`observe-query-param failed to parse query param ${this.paramKey} for field ${a.id}: ${nn}`),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 this.unSub$.next()}if(ft)return Object.keys(ft).length>0&&ft.constructor===Object?(console.warn(`observe-query-param may only set primitive types or arrays of primitive types, param ${this.paramKey} is an object: ${JSON.stringify(ft)}`),void this.unSub$.next()):void _.setValue(ft);this.unSub$.next()})}}function ke(u){return{extensions:[{name:"observeQueryParam",extension:new N(u)}]}}const U={extras:{immutable:!1,lazyRender:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minLength",message:(u,b)=>`This field has a minimum length of ${b.templateOptions?.minLength}.`},{name:"maxLength",message:(u,b)=>`This field has a maximum length of ${b.templateOptions?.maxLength}.`},{name:"min",message:(u,b)=>`This field has a minimum value of ${b.templateOptions?.min}.`},{name:"max",message:(u,b)=>`This field has a maximum value of ${b.templateOptions?.max}.`},{name:"pattern",message:(u,b)=>`This field's value must fit the pattern ${b.templateOptions?.pattern}.`},{name:"integer",message:(u,b)=>"Value must be an integer."},{name:"nucleotide",message:(u,b)=>"Value must only contain A, C, T, G, and/or /."},{name:"clinvar",message:(u,b)=>"Value must be an integer."}],validators:[{name:"integer",validation:(u,b)=>""===u.value||null==u.value||/^\d+$/.test(u.value)?null:{integer:!0}},{name:"nucleotide",validation:(u,b)=>""===u.value||null==u.value||/^[ACTG\/]+$/.test(u.value)?null:{nucleotide:!0}},{name:"clinvar",validation:(u,b)=>{for(var a of u.value)if(""!==a&&null!=a&&!/^\d+$/.test(a))return{clinvar:!0};return null}}]};var ge=c(4917),qe=c(7391),rt=c(8928),Ft=c(181),on=c(7685),Cn=c(3617),Zn=c(9448);let jn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(),Cn.$,Z.Y3,Qe.DH,F.j,G.PQ,qe.kT,rt.jl,on.pc,Zn.g,Ft._,ge.i]})}return u})();var Gn=c(5699);let zi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,Gn.T,ge.i]})}return u})();const Oi=(u,b,a,h)=>({disabled:u,error:b,required:a,valid:h}),lo=(u,b)=>({disabled:u,error:b});function Zi(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",6),e.nrm(2,"span",7),e.k0s(),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(6,lo,a.props.disabled,a.showError))("nzRequired",a.props.required)("nzFor",a.id)("nzTooltipTitle",a.props.tooltip)("nzNoColon",!0),e.R7$(),e.Y8G("nzContent",a.props.label)}}function Bo(u,b){if(1&u&&e.nrm(0,"span",13),2&u){const a=e.XpG(2);e.Y8G("innerHTML",a.props.description,e.npT)}}function bo(u,b){if(1&u&&e.nrm(0,"span",14),2&u){const a=e.XpG(2);e.Y8G("innerHTML",a.props.description,e.npT)}}function Mr(u,b){if(1&u&&e.nrm(0,"span",15),2&u){const a=e.XpG(2);e.Y8G("innerHTML",a.props.description,e.npT)}}function rr(u,b){if(1&u&&(e.j41(0,"div",8),e.qex(1,9),e.DNE(2,Bo,1,1,"span",10)(3,bo,1,1,"span",11)(4,Mr,1,1,"span",12),e.bVm(),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngSwitch",a.props.extraType),e.R7$(),e.Y8G("ngSwitchCase","prompt"),e.R7$(),e.Y8G("ngSwitchCase","description")}}function lt(u,b){if(1&u&&e.nrm(0,"formly-validation-message",18),2&u){const a=e.XpG(2);e.Y8G("field",a.field)}}function Lt(u,b){if(1&u&&(e.j41(0,"div",16),e.DNE(1,lt,1,1,"formly-validation-message",17),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",a.props.showErrorTip)}}const $t={};let mn=(()=>{class u extends g.cm{get errorState(){return this.showError?"error":""}constructor(a){super(),this.cdr=a,this.formLayout="vertical",this.wrapperOptions={...$t}}ngOnInit(){this.props.showExtra=this.props.showExtra??!0,this.props.extraType=this.props.extraType??"prompt",this.props.showErrorTip=this.props.showErrorTip??!0,this.props.formFieldOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formFieldOptions}),this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}ngAfterViewInit(){this.cdr.detectChanges()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-field-wrapper"]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("layout-horizontal","horizontal"===_.formLayout)("layout-vertical","vertical"===_.formLayout)("layout-inline","inline"===_.formLayout)},features:[e.Vt3],decls:9,vars:10,consts:[["fieldComponent",""],["descriptionTpl",""],["errorTpl",""],[3,"ngClass"],[4,"ngIf"],[3,"nzExtra","nzValidateStatus","nzErrorTip"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon"],["nz-typography","","nzEllipsis","",1,"label",3,"nzContent"],[1,"form-field-description"],[3,"ngSwitch"],["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"],[3,"field",4,"ngIf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-form-item",3),e.DNE(1,Zi,3,9,"ng-container",4),e.j41(2,"nz-form-control",5),e.eu8(3,null,0),e.k0s()(),e.DNE(5,rr,5,3,"ng-template",null,1,e.C5r)(7,Lt,2,1,"ng-template",null,2,e.C5r)),2&h){const ee=e.sdS(6),ft=e.sdS(8);e.Y8G("ngClass",e.ziG(5,Oi,_.props.disabled,_.showError,_.props.required,"VALID"===_.field.formControl.status&&!0===_.field.formControl.touched)),e.R7$(),e.Y8G("ngIf",_.props.label&&!0!==_.props.hideLabel),e.R7$(),e.Y8G("nzExtra",_.props.showExtra&&!_.showError?ee:void 0)("nzValidateStatus",_.errorState)("nzErrorTip",ft)}},dependencies:[M.YU,M.bT,M.ux,M.e1,M.fG,L.Uq,L.e,G.Ls,G.Mo,G.zS,qe.Di,g.Nc],styles:['.typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{border-radius:4px;margin-top:8px;margin-bottom:0}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.label[_ngcontent-%COMP%]{color:#096dd9}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon{margin-left:.25em}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon path{color:#69c0ff}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] .form-row-wrapped[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%], .form-row-wrapped [_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border:1px solid #096dd9;height:1em;content:""}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#096dd9;font-weight:600}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#40a9ff}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#ff4d4f}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#73d13d}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#d9d9d9}.layout-vertical[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #e6f7ff;padding:4px 8px}.layout-vertical[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #69c0ff}.layout-vertical[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%]{background-color:#fff1f0;border:1px solid #ff7875}.layout-vertical[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%]{background-color:#f6ffed;border:1px solid #95de64}.layout-vertical[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%]{background-color:#f5f5f5;border:1px solid #f5f5f5}.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}'],changeDetection:0})}return u})();var hn=c(5154);const Yn={wrappers:[{name:"form-field",component:mn}]};let En=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,G.PQ,hn.Qt,qe.kT,g.qy.forChild(Yn)]})}return u})();var Kn=c(513),oi=c(2096),gi=c(1236),ro=c(896),vi=c(1635),pn=c(9894),$i=c(4608);function Mi(){let u=class w4 extends g.PU{configureBaseField(){this.field?.options?.fieldChanges?(this.onModelChange$=this.field.options.fieldChanges.pipe((0,qt.p)(a=>a.field.id===this.field.id),(0,$i.E)("value")),this.formControl.value?(this.onValueChange$=new dn.t(this.formControl.value),Array.isArray(this.formControl.value)?this.field.formControl.value.length>0&&this.formControl.markAsTouched():this.formControl.markAsTouched()):this.onValueChange$=new dn.t(void 0),this.onModelChange$.pipe((0,pn.s)(this)).subscribe(a=>{this.onValueChange$.next(a)}),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 a=`${this.field.key}$`;this.state&&this.state.fields[a]?(this.stateValueChange$=this.state.fields[a],this.onValueChange$.pipe((0,me.T)(h=>null===h?void 0:h),(0,pn.s)(this)).subscribe(h=>{this.stateValueChange$&&this.stateValueChange$.next(h)})):console.warn(`${this.field.id} could not find state field ${a} on form state. State: `,this.state)}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(w4)))(_||w4)}})();static#t=this.\u0275prov=e.jDH({token:w4,factory:w4.\u0275fac})};return u=(0,vi.Cg)([(0,pn.d)()],u),u}var Ni=c(2771),so=c(5245),Yi=c(3993),Xo=c(7673),Ki=c(2806),Zo=c(3226),pr=c(9030),fo=c(9199),po=c(4572);function fr(...u){let b=u[0],a=u[1];if(0===b.length)return(0,Xo.of)(a?a([]):[]);const h=b.slice();return a&&h.push((..._)=>a(_)),po.z.apply(null,h)}function $o(){return function(b){return(()=>{class h extends b{configureEntitySelectField(ee){if(this.typeaheadQuery=ee.typeaheadQuery,this.tagQuery=ee.tagQuery,this.getTypeaheadVars=ee.getTypeaheadVarsFn,this.getTypeahedResults=ee.getTypeaheadResultsFn,this.getTagQueryVars=ee.getTagQueryVarsFn,this.getTagQueryResults=ee.getTagQueryResultsFn,this.getSelectedItemOption=ee.getSelectedItemOptionFn,this.getSelectOptions=ee.getSelectOptionsFn,this.typeaheadParam$=ee.typeaheadParam$,this.typeaheadParamName$=ee.typeaheadParamName$,this.selectOpen$=ee.selectOpen$||new Ni.m,this.selectComponent=ee.selectComponent,this.minSearchStrLength=ee.minSearchStrLength||0,this.cdr=ee.changeDetectorRef,this.onSearch$=new dn.t(void 0),this.isLoading$=new Un.c,this.result$=new dn.t([]),this.onPopulate$=new V.B,this.onTagClose$=new V.B,this.onOpenChange$=new V.B,this.onCreate$=new V.B,this.selectOption$=new dn.t(void 0),this.response$=this.onSearch$.pipe((0,so.i)(1),(0,qt.p)(fo.kP),(0,qt.p)(ft=>0===this.minSearchStrLength||ft.length>=this.minSearchStrLength),(0,Yi.E)(void 0!==this.typeaheadParam$?this.typeaheadParam$:(0,Xo.of)(void 0)),(0,he.n)(([ft,nn])=>{const Rn=this.getTypeaheadVars(ft,nn),xi=jo=>(this.queryRef=this.typeaheadQuery.watch(jo),this.isLoading$=this.queryRef.valueChanges.pipe((0,$i.E)("loading"),(0,J.F)()),this.queryRef.valueChanges),Co=jo=>(0,Ki.H)(this.queryRef.refetch(jo));return(0,Zo.T)(()=>void 0===this.queryRef,(0,pr.v)(()=>xi(Rn)),(0,pr.v)(()=>Co(Rn)))})),this.onOpenChange$.subscribe(ft=>{ft&&this.onSearch$.next("")}),this.response$.pipe((0,qt.p)(ft=>void 0!==ft.data),(0,me.T)(ft=>this.getTypeahedResults(ft)),(0,pn.s)(this)).subscribe(ft=>{this.result$.next(ft),0===ft.length&&this.selectOption$.next([]),this.cdr.detectChanges()}),this.optionTemplates?this.optionTemplates.changes.pipe((0,Yi.E)(this.result$),(0,pn.s)(this)).subscribe(([ft,nn])=>{const Rn=this.getSelectOptions(nn,ft);this.selectOption$.next(Rn),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,pn.s)(this)).subscribe(ft=>{this.selectOption$.next(ft.map(nn=>({label:nn.name,value:nn.id})))})),this.onPopulate$.pipe((0,qt.p)(fo.kP),(0,he.n)(ft=>fr(this.getTagQueries(ft))),(0,me.T)(ft=>ft.map(nn=>this.getTagQueryResults(nn))),(0,On.M)(ft=>{this.result$.next(ft)}),(0,pn.s)(this)).subscribe(ft=>{let nn;if(this.field.props&&this.field.props.isMultiSelect){const Rn=[];ft.forEach(xi=>Rn.push(xi?.id||void 0)),nn=Rn}else nn=ft[0].id;this.formControl.setValue(nn),this.selectOpen$.next(!1)}),this.formControl.value){const ft=this.formControl.value;if(Object.keys(ft).length>0&&ft.constructor===Object)return void console.error(`${this.field.id} prepopulated value must be a primitive or array of primitives, value is an object:`,ft);this.onPopulate$.next(ft)}this.onTagClose$.pipe((0,pn.s)(this)).subscribe(ft=>{this.resetField()})}getTagQueries(ee){return"number"==typeof ee&&(ee=[ee]),ee.map(nn=>this.tagQuery.fetch(this.getTagQueryVars(nn),{fetchPolicy:"cache-first"}).pipe((0,qt.p)(Rn=>!!Rn.data)))}resetField(){this.formControl.setValue(void 0),this.result$&&this.result$.next([])}static#e=this.\u0275fac=(()=>{let ee;return function(nn){return(ee||(ee=e.xGo(h)))(nn||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}const qi=function Lr(u){for(var b=arguments.length,a=new Array(b>1?b-1:0),h=1;h[],Gs=(u,b,a)=>({$implicit:u,createMsg:b,model:a});function tt(u,b){1&u&&e.nrm(0,"span",5),2&u&&e.Y8G("nzType","loading")}function Ce(u,b){if(1&u&&(e.DNE(0,tt,1,1,"span",4),e.qex(1),e.EFF(2),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.Y8G("ngIf",a.showSpinner),e.R7$(2),e.SpI(" ",a.message," ")}}function Ve(u,b){if(1&u&&(e.nrm(0,"nz-divider"),e.j41(1,"div",6),e.eu8(2,7),e.k0s()),2&u){const a=e.XpG().ngrxLet,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcAddEntity)("ngTemplateOutletContext",e.sMw(2,Gs,a.searchStr,a.message,h.cvcAddEntityModel))}}function nt(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-select",3),e.bIt("nzOpenChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onOpenChange$.next(_))})("nzOnSearch",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnSearch.next(_))})("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnModelChange.next(_))}),e.k0s(),e.DNE(2,Ce,3,2,"ng-template",null,0,e.C5r)(4,Ve,3,6,"ng-template",null,1,e.C5r),e.bVm()}if(2&u){const a=b.ngrxLet,h=e.sdS(3),_=e.sdS(5),ee=e.XpG();e.R7$(),e.AVh("ng-dirty",ee.cvcShowError),e.Y8G("nzDropdownMatchSelectWidth",!0)("formControl",ee.cvcFormControl)("formlyAttributes",ee.cvcFormlyAttributes)("nzMode",ee.cvcSelectMode)("nzPlaceHolder",ee.cvcPlaceholder||"Search "+ee.cvcEntityName.plural)("nzCustomTemplate",ee.cvcCustomTemplate||null)("nzOptionHeightPx",30)("nzDisabled",ee.cvcDisabled)("nzLoading",ee.cvcLoading)("nzAllowClear",ee.cvcAllowClear)("nzBorderless",ee.cvcBorderless)("nzSuffixIcon",ee.cvcSuffixIcon)("nzShowArrow",ee.cvcShowArrow)("nzAutoClearSearchValue",ee.cvcAutoClearSearchValue)("nzOptions",ee.cvcOptions||e.lJ4(20,qo))("nzDropdownRender",a.showAddForm?_:null)("nzNotFoundContent",h)("nzOpen",ee.cvcSelectOpen)}}const Mt={search:(u,b,a)=>`Searching ${u} matching "${b}"...`,searchAll:(u,b,a)=>`Listing all ${u}...`,searchParam:(u,b,a)=>`Searching ${a} ${u} matching "${b}"...`,searchParamAll:(u,b,a)=>`Listing all ${a} ${u}...`,searchEnterQuery:(u,b,a,h)=>`Enter at least ${h} characters to search ${a} ${u}`,searchEnterQueryAll:(u,b,a,h)=>`Enter at least least ${h} characters to search ${u}`,empty:(u,b,a)=>`No ${u} found matching "${b}"`,emptyAll:(u,b,a)=>`No ${u} found.`,emptyParam:(u,b,a)=>`No ${a} ${u} found matching "${b}"`,emptyParamAll:(u,b,a)=>`No ${a} ${u} found`};let Wt=class O8{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=(b,a)=>b.length>this.cvcMinSearchStrLength&&0===a.length,this.cvcOnOpenChange=new e.bkB,this.cvcOnSearch=(new e.bkB).pipe((0,Sr.c)(300,es.E,{leading:!1,trailing:!0}),(0,us.t)(1)),this.cvcOnModelChange=new e.bkB,this.cvcSelectComponent=new e.bkB,this.messageOptions=Mt,this.onParamName$=new dn.t(void 0),this.onOption$=new dn.t([]),this.onOpenChange$=new dn.t(!1),this.onLoading$=new dn.t(!1),this.notFoundDisplay$=new dn.t({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,pn.s)(this)).subscribe(b=>{this.cvcOnOpenChange.next(b)}),(0,po.z)([this.onOpenChange$,this.cvcOnSearch,this.onParamName$,this.onOption$,this.onLoading$.pipe((0,J.F)())]).pipe((0,me.T)(([b,a,h,_,ee])=>{const ft=this.cvcEntityName.plural,nn=this.cvcMinSearchStrLength,Rn=null!==this.cvcAddEntity,xi=!1===this.previousIsOpen&&!0===b;if(this.previousIsOpen=b,xi)return this.getSelectInitDisplay(ft,nn,h);if(ee&&a.length>=nn){const Co=this.cvcAddEntityBehavior(a,this.cvcResults||[]);return this.getSelectSearchingDisplay(a,ft,nn,h,Rn,Co)}return b&&!ee&&a.length>=nn&&0===_.length?this.getSelectEmptyDisplay(a,ft,h,Rn):{searchStr:"",showSpinner:!1,showAddForm:Rn&&this.cvcAddEntityBehavior(a,this.cvcResults||[]),message:""}}),(0,On.M)(b=>{this.notFoundDisplay$.next(b)}),(0,pn.s)(this)).subscribe()):console.error(`${this.cvcEntityName.singular} entity-select could not gain reference to its nzSelectComponent, aborting AfterViewInit()`)}getSelectInitDisplay(b,a,h){let _=this.messageOptions.searchAll,ee=!1;return 0==a?(ee=!0,_=void 0===h?this.messageOptions.searchAll:this.messageOptions.searchParamAll):a>0&&(ee=!1,_=void 0===h?this.messageOptions.searchEnterQueryAll:this.messageOptions.searchEnterQuery),{message:_(b,"",h,a),showSpinner:ee,showAddForm:!1,searchStr:""}}getSelectSearchingDisplay(b,a,h,_,ee,ft=!1){let nn=this.messageOptions.searchAll;return nn=void 0===_?b.length>0?this.messageOptions.search:this.messageOptions.searchAll:b.length>0?this.messageOptions.searchParam:this.messageOptions.searchParamAll,{message:nn(a,b,_),showSpinner:!0,showAddForm:ee&&ft,searchStr:b}}getSelectEmptyDisplay(b,a,h,_){let ee=this.messageOptions.empty;return ee=void 0===h?b.length>0?this.messageOptions.empty:this.messageOptions.emptyAll:b.length>0?this.messageOptions.emptyParam:this.messageOptions.emptyParamAll,{message:ee(a,b,h),showSpinner:!1,showAddForm:_,searchStr:b}}ngOnChanges(b){if(b.cvcParamName&&this.onParamName$.next(b.cvcParamName.currentValue),b.cvcOptions){const a=b.cvcOptions.currentValue;void 0!==a&&this.onOption$.next(a)}if(b.cvcLoading){const a=b.cvcLoading.currentValue;void 0!==a&&this.onLoading$.next(a)}}static#e=this.\u0275fac=function(a){return new(a||O8)};static#t=this.\u0275cmp=e.VBU({type:O8,selectors:[["cvc-entity-select"]],viewQuery:function(a,h){if(1&a&&e.GBs(Qe.WI,5),2&a){let _;e.mGM(_=e.lsd())&&(h.nzSelectComponent=_.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.OA$],decls:1,vars:1,consts:[["searchMessages",""],["addForm",""],[4,"ngrxLet"],["nzShowSearch","","nzServerSearch","","nzAllowClear","",3,"nzOpenChange","nzOnSearch","ngModelChange","nzDropdownMatchSelectWidth","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzLoading","nzAllowClear","nzBorderless","nzSuffixIcon","nzShowArrow","nzAutoClearSearchValue","nzOptions","nzDropdownRender","nzNotFoundContent","nzOpen"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"add-form-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(a,h){1&a&&e.DNE(0,nt,6,21,"ng-container",2),2&a&&e.Y8G("ngrxLet",h.notFoundDisplay$)},dependencies:[M.bT,M.T3,t.BC,t.l_,Ci.Nj,g.ch,Z.Dn,Qe.WI,Zn.j],styles:["nz-divider[_ngcontent-%COMP%]{margin:4px 0 0}.add-form-container[_ngcontent-%COMP%]{padding:4px 8px 8px}"],changeDetection:0})};Wt=(0,vi.Cg)([(0,pn.d)({arrayName:"stateSubscriptions"})],Wt);var tn=c(2688);const rn=["optionTemplates"];function bn(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const a=e.XpG(2).$implicit;e.R7$(3),e.JRh(a.description)}}function Mn(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,bn,4,1,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(),e.JRh(a.code),e.R7$(2),e.Y8G("ngIf",a.description)}}function Ln(u,b){1&u&&(e.qex(0),e.DNE(1,Mn,4,2,"ng-template",null,1,e.C5r),e.bVm())}function wn(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ln,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Qn(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","AcmgCode:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const qn=qi(Mi(),$o());let pi=(()=>{class u extends qn{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,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:(ee,ft)=>`Select an ${ee} Type to search associated ACMG Code(s)`}},this.placeholder$=new dn.t(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 a=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresAcmgCode$&&this.onEntityType$&&(0,po.z)([this.onRequiresAcmgCode$,this.onEntityType$]).pipe((0,J.F)(),(0,pn.s)(this)).subscribe(([a,h])=>{!a&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated ACMG/AMP Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):a?(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"):(!a&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(a){return{code:a}}getTypeaheadResultsFn(a){return a.data.acmgCodesTypeahead}getTagQueryResultsFn(a){return a.data.acmgCode}getTagQueryVarsFn(a){return{id:a}}getSelectedItemOptionFn(a){return{value:a.id,label:a.code}}getSelectOptionsFn(a,h){return a.map((_,ee)=>(console.log(_),{label:h.get(ee)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.Fd4),e.rXU(xn.Mvn),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-acmg-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(rn,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,wn,3,3,"ng-container",3)(7,Qn,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresAcmgCode$&&!e.bMT(4,18,_.onRequiresAcmgCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,Ci.Nj,hn.LH,qe.Di,Gn.s,Wt,tn.b,Ci.L9],changeDetection:0})}return u})();const ei={types:[{name:"acmg-code-select",wrappers:["form-field"],component:pi,defaultOptions:{props:{label:"ACMG/AMP Code"}}},{name:"acmg-code-multi-select",wrappers:["form-field"],component:pi,defaultOptions:{props:{isMultiSelect:!0,label:"ACMG/AMP Code(s)"}}}]};let li=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(ei),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._,zi]})}return u})(),ci=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(),Z.Y3,G.PQ,Qe.DH,F.j,ge.i]})}return u})();function mi(){return function(b){return(()=>{class h extends b{configureEnumSelectField(ee){this.selectOption$=new dn.t([]),this.onTagClose$=new V.B,this.optionEnum$=ee.optionEnum$,this.changeDetectorRef=ee.changeDetectorRef,this.optionTemplate$=ee.optionTemplate$?ee.optionTemplate$:new dn.t([]),this.optionTemplate$.pipe((0,Yi.E)(this.optionEnum$),(0,pn.s)(this)).subscribe(ft=>{this.emitSelectOptions(ft)}),this.onTagClose$.pipe((0,pn.s)(this)).subscribe(ft=>{this.resetField()})}emitSelectOptions([ee,ft]){this.selectOption$.next(ft.map((nn,Rn)=>({label:ee[Rn]||nn,value:nn}))),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)}static#e=this.\u0275fac=(()=>{let ee;return function(nn){return(ee||(ee=e.xGo(h)))(nn||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}var Ei=c(1018);const Xi=()=>[];let Si=(()=>{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.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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,"nzFocus","ngModelChange","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzOptions","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzAllowClear"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("nzFocus",function(){return _.cvcOnFocus.next()})("ngModelChange",function(ft){return _.cvcModelChange&&_.cvcModelChange(_.cvcFormlyAttributes,ft)}),e.k0s()),2&h&&(e.AVh("ng-dirty",_.cvcShowError),e.Y8G("formControl",_.cvcFormControl)("formlyAttributes",_.cvcFormlyAttributes)("nzMode",_.cvcSelectMode)("nzPlaceHolder",_.cvcPlaceholder?_.cvcPlaceholder:"Select Value")("nzOptions",_.cvcOptions?_.cvcOptions:e.lJ4(11,Xi))("nzCustomTemplate",_.cvcCustomTemplate?_.cvcCustomTemplate:null)("nzOptionHeightPx",30)("nzDisabled",_.cvcDisabled)("nzAllowClear",_.cvcAllowClear))},dependencies:[t.BC,t.l_,g.ch,Qe.WI],changeDetection:0})}return u})();var eo=c(463);const ao=["optionTemplates"];function io(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()(),e.j41(4,"span",4),e.EFF(5),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG();e.R7$(2),e.JRh(e.i5U(3,2,a,"verbose")),e.R7$(3),e.JRh(h.descriptionForCategory(a))}}function An(u,b){1&u&&(e.qex(0),e.DNE(1,io,6,5,"ng-template",null,1,e.C5r),e.bVm())}function _o(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",8),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()()}if(2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(e.i5U(3,1,a.nzValue,"verbose"))}}function ir(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.nI1(2,"formatAmp"),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,a.nzValue,"verbose")," ")}}function Ur(u,b){if(1&u&&(e.j41(0,"div",5),e.DNE(1,_o,4,4,"nz-tag",6)(2,ir,3,4,"ng-container",7),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!a.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",a.props.isMultiSelect)}}const Do=new Map([[xn.XJ.Na,"Not Applicable"],[xn.XJ.TierILevelA,"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines."],[xn.XJ.TierILevelB,"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field."],[xn.XJ.TierIiLevelC,"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus."],[xn.XJ.TierIiLevelD,"Biomarkers that show plausible therapeutic significance based on preclinical studies."],[xn.XJ.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."],[xn.XJ.TierIv,"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation."]]),Qo=qi(Mi(),mi());let Dr=(()=>{class u extends Qo{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"AMP/ASCO/CAP Category",required:!1,isMultiSelect:!1,placeholder:"Select AMP/ASCO/CAP Category"}},this.ampCategoryEnum$=new dn.t([])}descriptionForCategory(a){return Do.get(a)}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,Ei.KF)(xn.XJ).map(a=>a)),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,me.T)(a=>a.map(h=>h))),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,pn.s)(this)).subscribe(a=>{a?(this.props.extraType=void 0,this.props.description=Do.get(a)):this.props.description="Select an Assertion Type to select its AMP Category"}))}configurePlaceholder(){this.placeholder$=new dn.t(this.props.placeholder),this.onRequiresAmpCategory$&&this.onRequiresAmpCategory$.pipe((0,J.F)(),(0,pn.s)(this)).subscribe(a=>{this.props.extraType=void 0,a?(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()})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-amp-category-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(ao,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,An,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Ur,3,2,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.ampCategoryEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,qe.Di,Si,Ci.L9,eo.E]})}return u})();const _r={types:[{name:"amp-category-select",wrappers:["form-field"],component:Dr},{name:"amp-category-multi-select",wrappers:["form-field"],component:Dr,defaultOptions:{props:{label:"AMP/ASCO/CAP Categories",isMultiSelect:!0}}}]};let yr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(_r),Gn.T,qe.kT,ge.i,En,ci]})}return u})();const sr=qi(Mi()),Ms={types:[{name:"checkbox",wrappers:["form-field"],component:(()=>{class u extends sr{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}ngAfterViewInit(){console.log(this.props)}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,dt.$g,g.ch],changeDetection:0})}return u})()}]};let Fr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,dt.IJ,g.qy.forChild(Ms),En]})}return u})();function Uo(u,b){if(1&u){const a=e.RV6();e.j41(0,"input",2),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.k0s()}if(2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("type",a.props.type||"text")("formlyAttributes",a.field)}}function Gr(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number",3),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.k0s()}if(2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("formlyAttributes",a.field)}}const Mo=qi(Mi());let Ss=(()=>{class u extends Mo{constructor(){super()}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes","ngModelChange",4,"ngIf","ngIfElse"],["nz-input","",3,"ngModelChange","formControl","type","formlyAttributes"],[3,"ngModelChange","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,Uo,1,3,"input",1)(1,Gr,1,2,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf","number"!==_.props.type)("ngIfElse",ee)}},dependencies:[M.bT,t.me,t.BC,t.l_,F.Sy,_e,g.ch],encapsulation:2,changeDetection:0})}return u})(),ds=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,F.j,ut,g.qy.forChild({types:[{name:"base-input",component:Ss,wrappers:["form-field"]},{name:"base-string",extends:"base-input"},{name:"base-number",extends:"base-input",defaultOptions:{props:{type:"number"}}},{name:"base-integer",extends:"base-input",defaultOptions:{props:{type:"number"}}}]})]})}return u})();function Ze(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function Fn(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,Ze,1,3,"nz-option",5),e.k0s()),2&u){const a=e.XpG().$implicit;e.Y8G("nzLabel",a.label),e.R7$(),e.Y8G("ngForOf",a.group)}}function fe(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=e.XpG().$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function We(u,b){if(1&u&&(e.qex(0),e.DNE(1,Fn,2,2,"nz-option-group",2)(2,fe,1,3,"nz-option",3),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",a.group),e.R7$(),e.Y8G("ngIf",!a.group)}}const ct=qi(Mi());let sn=(()=>{class u extends ct{constructor(){super(),this.defaultOptions={props:{isMultiSelect:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.DNE(1,We,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&h&&(e.AVh("ng-dirty",_.showError),e.Y8G("nzPlaceHolder",void 0!==_.props.placeholder?_.props.placeholder:null)("formControl",_.formControl)("formlyAttributes",_.field)("nzMode",_.props.isMultiSelect?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,_.props.options,_.field))))},dependencies:[M.Sq,M.bT,t.BC,t.l_,Qe.ld,Qe.WI,Qe.uX,g.ch,M.Jj,Ut],encapsulation:2,changeDetection:0})}return u})(),$n=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,Qe.DH,I,Ye,g.qy.forChild({types:[{name:"base-select",component:sn,wrappers:["form-field"]},{name:"enum",extends:"select"},{name:"base-multi-select",extends:"level-select",defaultOptions:{props:{isMultiSelect:!0}}}]})]})}return u})();const Bn=qi(Mi()),ki={types:[{name:"base-textarea",component:(()=>{class u extends Bn{constructor(){super(),this.defaultOptions={props:{autosize:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:5,consts:[["nz-input","",3,"nzAutosize","rows","formControl","placeholder","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"textarea",0),2&h&&e.Y8G("nzAutosize",_.props.autosize)("rows",_.props.rows?_.props.rows:2)("formControl",_.formControl)("placeholder",_.props.placeholder)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,g.ch,F.Sy,F.c9],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let Eo=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(ki),F.j,En]})}return u})();var di=c(6389),ho=c(5930);const ts={types:[{name:"cvc-cancel-button",component:(()=>{class u extends g.PU{constructor(a){super(),this.location=a}cancelClicked(){this.location.back()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(M.aZ))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-cancel-button"]],features:[e.Vt3],decls:2,vars:0,consts:[["nz-button","","type","button","nzType","default","nzDanger","",1,"cancel-button",3,"click"]],template:function(h,_){1&h&&(e.j41(0,"button",0),e.bIt("click",function(){return _.cancelClicked()}),e.EFF(1," Cancel\n"),e.k0s())},dependencies:[Kn.aO,di.c,ho.p],styles:[".cancel-button[_ngcontent-%COMP%]{margin-right:10px}"],changeDetection:0})}return u})()}]};let Ne=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(ts),Kn.Zw]})}return u})();const je=["optionTemplates"];function ye(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const a=e.XpG(2).$implicit;e.R7$(3),e.JRh(a.description)}}function ht(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,ye,4,1,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(),e.JRh(a.code),e.R7$(2),e.Y8G("ngIf",a.description)}}function Jt(u,b){1&u&&(e.qex(0),e.DNE(1,ht,4,2,"ng-template",null,1,e.C5r),e.bVm())}function Ii(u,b){if(1&u&&(e.qex(0),e.DNE(1,Jt,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Qi(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","ClingenCode:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const wo=qi(Mi(),$o());let yi=(()=>{class u extends wo{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,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:(ee,ft)=>`Select an ${ee} Type to search associated ClinGen Code(s)`}},this.placeholder$=new dn.t(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,pn.s)(this)).subscribe(a=>{if(a&&Array.isArray(a)&&a.length>1){const h=a.find(_=>this.exclusiveCodes.has(_));h?(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([h])):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 a=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresClingenCode$&&this.onEntityType$&&(0,po.z)([this.onRequiresClingenCode$,this.onEntityType$]).pipe((0,J.F)(),(0,pn.s)(this)).subscribe(([a,h])=>{!a&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated ClinGen/CGC/VICC Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):a?(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"):(!a&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(a){return{code:a}}getTypeaheadResultsFn(a){return a.data.clingenCodesTypeahead.forEach(h=>{h.exclusive&&this.exclusiveCodes.add(h.id)}),a.data.clingenCodesTypeahead}getTagQueryResultsFn(a){return a.data.clingenCode}getTagQueryVarsFn(a){return{id:a}}getSelectedItemOptionFn(a){return{value:a.id,label:a.code}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.FZ_),e.rXU(xn.kp0),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-clingen-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(je,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,Ii,3,3,"ng-container",3)(7,Qi,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresClingenCode$&&!e.bMT(4,18,_.onRequiresClingenCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,Ci.Nj,hn.LH,qe.Di,Gn.s,Wt,tn.b,Ci.L9],changeDetection:0})}return u})();const La={types:[{name:"clingen-code-select",wrappers:["form-field"],component:yi,defaultOptions:{props:{label:"ClinGen/CGC/VICC Code"}}},{name:"clingen-code-multi-select",wrappers:["form-field"],component:yi,defaultOptions:{props:{isMultiSelect:!0,label:"ClinGen/CGC/VICC Code(s)"}}}]};let Hc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(La),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._,zi]})}return u})();function ba(u){return(()=>{class a extends u{configureStringTagField(){this.tagLabel$=new V.B,this.onTagClose$=new V.B,this.onTagClose$.pipe((0,pn.s)(this)).subscribe(_=>{this.formControl.setValue(void 0),this.tagLabel$.next(void 0)})}static#e=this.\u0275fac=(()=>{let _;return function(ft){return(_||(_=e.xGo(a)))(ft||a)}})();static#t=this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac})}return a})()}var Cr=c(5741);const gc=()=>[8,8];function mo(u,b){if(1&u&&(e.j41(0,"label",5),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzTooltipTitle",a.tooltip),e.R7$(),e.SpI(" ",a.label," ")}}function ua(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",2)(1,"nz-radio-group",3),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.existenceChange$.next(_))}),e.DNE(3,mo,2,3,"label",4),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(2,2,a.existenceModel$)),e.R7$(2),e.Y8G("ngForOf",a.selectOptions)}}function Yr(u,b){if(1&u&&e.nrm(0,"nz-option",8),2&u){const a=b.$implicit;e.Y8G("nzLabel",a)("nzValue",a)("nzHide",!0)}}function ta(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",2)(1,"nz-select",6),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.DNE(2,Yr,1,3,"nz-option",7),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("formControl",a.formControl)("formlyAttributes",a.field),e.R7$(),e.Y8G("ngForOf",a.formControl.value)}}const Ba=qi(Mi(),ba);let mr=class I8 extends Ba{constructor(b){super(),this.cdr=b,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return",description:"Specify if Clinvar IDs exist, or if they are not applicable for this variant."}},this.clinvarIds$=new dn.t([]),this.values=new Set,this.showClinvarIdEntry$=new dn.t(!1),this.selectModel=void 0,this.selectOptions=[{value:void 0,label:"Unspecified",tooltip:"Existence of ClinVar IDs for this variant is unspecified."},{value:Cr.cD.NotApplicable,label:"Not Applicable",tooltip:"ClinVar IDs are not applicable to this variant."},{value:Cr.cD.NoneFound,label:"Were Not Found",tooltip:"A search was performed, and no ClinVar IDs were found."},{value:Cr.cD.Found,label:"Were Found",tooltip:"A search was performed, and ClinVar IDs were found (enter IDs below)."}],this.existenceChange$=new V.B,this.existenceModel$=new dn.t(void 0),this.showTagSelect$=new dn.t(!1)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField(),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(b=>{void 0===b?(this.existenceModel$.next(void 0),this.showTagSelect$.next(!1)):b.includes("NONE FOUND")||b.includes("NA")?(b.includes("NONE FOUND")?this.existenceModel$.next(Cr.cD.NoneFound):b.includes("NA")&&this.existenceModel$.next(Cr.cD.NotApplicable),this.showTagSelect$.next(!1)):(this.existenceModel$.next(Cr.cD.Found),this.showTagSelect$.next(!0))}),this.existenceChange$.pipe((0,me.T)(b=>{const a=this.formControl.value;void 0===b&&void 0!==this.formControl.value?this.formControl.setValue(void 0):b!==Cr.cD.NoneFound||a.includes("NONE FOUND")?b!==Cr.cD.NotApplicable||a.includes("NA")?b===Cr.cD.Found&&(void 0===a||a.includes("NONE FOUND")||a.includes("NA"))&&this.formControl.setValue([]):this.formControl.setValue(["NA"]):this.formControl.setValue(["NONE FOUND"])}),(0,pn.s)(this)).subscribe()}static#e=this.\u0275fac=function(a){return new(a||I8)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:I8,selectors:[["cvc-clinvar-input"]],features:[e.Vt3],decls:4,vars:6,consts:[[3,"nzGutter"],["nzSpan","24",4,"ngIf"],["nzSpan","24"],["nzName","existence",3,"ngModelChange","ngModel"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle"],["nzMode","tags","nzPlaceHolder","Enter ClinVar IDs","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"]],template:function(a,h){1&a&&(e.j41(0,"nz-row",0),e.DNE(1,ua,4,4,"nz-col",1)(2,ta,3,3,"nz-col",1),e.nI1(3,"ngrxPush"),e.k0s()),2&a&&(e.Y8G("nzGutter",e.lJ4(5,gc)),e.R7$(),e.Y8G("ngIf",h.props.showExistenceOptions),e.R7$(),e.Y8G("ngIf",e.bMT(3,3,h.showTagSelect$)))},dependencies:[M.Sq,M.bT,t.BC,t.vS,t.l_,g.ch,L.Uq,L.e,ue.lx,ue.i3,Qe.ld,Qe.WI,hn.LH,Ci.L9],changeDetection:0})};mr=(0,vi.Cg)([(0,pn.d)()],mr);const Ea={types:[{name:"clinvar-input",wrappers:["form-field"],component:mr,defaultOptions:{props:{isRepeatItem:!1,showExistenceOptions:!1}}},{name:"clinvar-multi-input",wrappers:["form-field"],component:mr,defaultOptions:{props:{isRepeatItem:!0,showExistenceOptions:!0}}}]};let Ys=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,g.qy.forChild(Ea),G.PQ,L.f3,F.j,ue.Sw,Qe.DH,hn.Qt,ge.i]})}return u})();var hs=c(6697);const vc=qi(Mi()),Wr={types:[{name:"fda-companion-test-checkbox",wrappers:["form-field"],component:(()=>{class u extends vc{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,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField())}configureField(){this.state?.fields.fdaRegulatoryApproval$.pipe((0,pn.s)(this)).subscribe(a=>{a?(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))})}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-companion-test-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,dt.$g,g.ch],changeDetection:0})}return u})()}]};let wi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,dt.IJ,g.qy.forChild(Wr),En]})}return u})();const Ws=qi(Mi()),ps={types:[{name:"fda-regulatory-approval-checkbox",wrappers:["form-field"],component:(()=>{class u extends Ws{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,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField())}configureField(){this.state?.requires.allowsFdaApproval$.pipe((0,pn.s)(this)).subscribe(a=>{a?(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))})}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-regulatory-approval-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,dt.$g,g.ch],changeDetection:0})}return u})()}]};let Ha=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,dt.IJ,g.qy.forChild(ps),En]})}return u})(),Kr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Gn.T,Z.Y3,hn.Qt,ge.i]})}return u})();var Ta=c(1677),Xr=c(1555);const ju=u=>({"tag-icon-large":u});function _l(u,b){}function Uu(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",5)(1,"nz-tag",6),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnClose.next(_))}),e.DNE(2,_l,0,0,"ng-template",7),e.k0s()()}if(2&u){const a=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode",a.cvcMode)("nzTooltipTitle",a.cvcTooltip)("nzChecked",a.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function br(u,b){}function Ds(u,b){if(1&u&&(e.j41(0,"span",8)(1,"nz-tag",9),e.DNE(2,br,0,0,"ng-template",7),e.k0s()()),2&u){const a=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","checkable")("nzChecked",a.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function ja(u,b){}function ha(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",10)(1,"nz-tag",11),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnClose.next(_))}),e.DNE(2,ja,0,0,"ng-template",7),e.k0s()()}if(2&u){e.XpG();const a=e.sdS(5);e.R7$(),e.Y8G("nzMode","closeable"),e.R7$(),e.Y8G("ngTemplateOutlet",a)}}function jc(u,b){}function Os(u,b){if(1&u&&(e.j41(0,"span",12)(1,"nz-tag",13),e.DNE(2,jc,0,0,"ng-template",7),e.k0s()()),2&u){const a=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","default")("nzTooltipTitle",a.cvcTooltip),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Ua(u,b){if(1&u&&(e.nrm(0,"i",16),e.nI1(1,"evidenceEnumDisplay")),2&u){const a=e.XpG(2);e.Y8G("nzType",!0===a.cvcShowIcon?e.i5U(1,5,a.cvcAttrValue,"icon-name"):a.cvcShowIcon)("nzTwotoneColor",a.cvcIconColor)("nzTheme",a.cvcIconTheme)("ngClass",e.eq3(8,ju,!0===a.cvcZoomIcon)),e.BMQ("style","color: "+a.cvcIconColor,e.$dS)}}function _c(u,b){if(1&u&&(e.nrm(0,"span",17),e.nI1(1,"evidenceEnumDisplay"),e.nI1(2,"highlightTypeahead")),2&u){const a=e.XpG(2);e.Y8G("innerHtml",e.i5U(2,4,e.i5U(1,1,a.cvcAttrValue,"display-string"===a.cvcShowLabel?a.cvcShowLabel:"short-string"),a.cvcEmphasize),e.npT)}}function Vi(u,b){if(1&u&&e.DNE(0,Ua,2,10,"i",14)(1,_c,3,7,"span",15),2&u){const a=e.XpG();e.Y8G("ngIf",a.cvcAttrValue&&a.cvcShowIcon),e.R7$(),e.Y8G("ngIf",a.cvcShowLabel)}}let to=(()=>{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.bkB}ngOnChanges(a){a.cvcContext&&"compact"===a.cvcContext.currentValue&&(this.cvcShowIcon=!0,this.cvcShowLabel=!1,this.cvcZoomIcon=!0)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-attribute-tag"]],hostVars:2,hostBindings:function(h,_){2&h&&e.AVh("full-width",!0===_.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.OA$],decls:6,vars:4,consts:[["tagContent",""],["class","default",4,"ngIf"],["class","menu-item",4,"ngIf"],["class","select-item",4,"ngIf"],["class","compact",4,"ngIf"],[1,"default"],["nz-tooltip","",3,"nzOnClose","nzMode","nzTooltipTitle","nzChecked"],[3,"ngTemplateOutlet"],[1,"menu-item"],[3,"nzMode","nzChecked"],[1,"select-item"],[3,"nzOnClose","nzMode"],[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(h,_){1&h&&e.DNE(0,Uu,3,4,"span",1)(1,Ds,3,3,"span",2)(2,ha,3,2,"span",3)(3,Os,3,3,"span",4)(4,Vi,2,2,"ng-template",null,0,e.C5r),2&h&&(e.Y8G("ngIf","default"===_.cvcContext),e.R7$(),e.Y8G("ngIf","menu-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","select-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","compact"===_.cvcContext))},dependencies:[M.YU,M.bT,M.T3,Gn.s,Z.Dn,hn.LH,Ta.pW,Xr.M],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.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})}return u})();const yc=["optionTemplates"];function pa(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function Uc(u,b){1&u&&(e.qex(0),e.DNE(1,pa,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Gc(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Is={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:"Supports 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"}}},Ks=qi(Mi(),mi()),Ga={types:[{name:"direction-select",wrappers:["form-field"],component:(()=>{class u extends Ks{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Direction",labelFn:h=>`${h} Direction`,required:!0,isMultiSelect:!1,placeholder:"Select Entity Direction",placeholderFn:(h,_)=>`Select ${_?_+" ":""}${h} Direction`,requireTypePromptFn:h=>`Select ${h} Type to select its Direction`}},this.directionEnum$=new dn.t([])}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 dn.t("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 dn.t(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,pn.s)(this)).subscribe(h=>{this.directionEnum$.next(h)}),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,me.T)(h=>h.map(_=>_)));const a=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[a]?(this.onEntityType$=this.state.fields[a],this.onEntityType$.pipe((0,so.i)("add"===this.options.formState.formMode?0:1),(0,pn.s)(this)).subscribe(h=>{h?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName,(0,ro.u)(h)))):(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,Yi.E)(this.onEntityType$),(0,pn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.extraType="description",this.props.description=Is[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${a} to populate Direction options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-direction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(yc,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Uc,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Gc,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.directionEnum$))}},dependencies:[M.Sq,Si,to,Ci.L9],changeDetection:0})}return u})()}]};let Cc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Ga),En,ci,Kr]})}return u})();var Go=c(5316),Ar=c(1226),na=c(4222),fs=c(8721);const za=()=>[0,0];function bc(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.JRh(a.successMessage)}}function W(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.SpI(' "',a.model.name,'" ')}}let it=class w8{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.addDiseaseMutator=new Ar.E(this.errors),this.fields=[{key:"doid",type:"base-input",props:{label:"DOID",keydown:(h,_)=>{"Tab"===_.code&&_.stopPropagation()}}},{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{h&&(this.model.name=h)}),this.onSubmit$.pipe((0,pn.s)(this)).subscribe(h=>{console.log("disease-quick-add form model submitted.",h),this.submitDisease(h)})}submitDisease(b){b.name?this.mutationState=this.addDiseaseMutator.mutate(this.query,this.model,{},a=>{console.log("disease-quick-add submit data callback",a),a.addDisease&&(this.successMessage=a.addDisease.new?`New Disease ${a.addDisease.disease.name} added.`:`Existing Disease ${a.addDisease.disease.name} with DOID ${a.addDisease.disease.doid} found. `,setTimeout(()=>{a&&a.addDisease&&this.cvcOnCreate.next(a.addDisease.disease.id)},1e3))}):console.error("disease-quick-add form submitDisease requires model with valid name.")}static#e=this.\u0275fac=function(a){return new(a||w8)(e.rXU(xn.tas),e.rXU(na.N))};static#t=this.\u0275cmp=e.VBU({type:w8,selectors:[["cvc-disease-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:11,vars:11,consts:[["success",""],["entityType","Disease",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],[4,"ngIf"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",1),e.DNE(1,bc,1,1,"ng-template",null,0,e.C5r),e.j41(3,"form",2),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(4,"nz-row",3)(5,"nz-col",4)(6,"formly-form",5),e.bIt("modelChange",function(ft){return e.eBV(_),e.Njj(h.model=ft)}),e.k0s()(),e.j41(7,"nz-col",4)(8,"button",6),e.EFF(9," Add Disease\xa0 "),e.DNE(10,W,2,1,"ng-container",7),e.k0s()()()()()}if(2&a){const _=e.sdS(2);e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,za)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(2),e.Y8G("ngIf",h.model.name)}},dependencies:[M.bT,t.qT,t.cb,t.j4,g.aF,Kn.aO,di.c,ho.p,L.Uq,L.e,G.CA,fs.G],encapsulation:2,changeDetection:0})};it=(0,vi.Cg)([(0,pn.d)()],it);const Te=["optionTemplates"];function Ge(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"DOID:"),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,a.doid,h),e.npT)}}function Nt(u,b){if(1&u&&(e.qex(0),e.EFF(1," \xa0 "),e.j41(2,"strong"),e.EFF(3,"Aliases: "),e.k0s(),e.j41(4,"em"),e.nrm(5,"span",10),e.nI1(6,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(5),e.Y8G("nzTooltipTitle",a.diseaseAliases.join(", "))("innerHtml",e.i5U(6,2,a.diseaseAliases.join(", "),h),e.npT)}}function gn(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,Ge,5,4,"ng-container",8)(3,Nt,7,5,"ng-container",8),e.EFF(4),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.doid),e.R7$(),e.Y8G("ngIf",a.diseaseAliases.length>0),e.R7$(),e.SpI(" ",h," ")}}function Pn(u,b){1&u&&(e.qex(0),e.DNE(1,gn,5,6,"ng-template",null,2,e.C5r),e.bVm())}function hi(u,b){if(1&u&&(e.qex(0),e.DNE(1,Pn,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function yo(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Disease:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Gi(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-disease-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const To=qi(Mi(),$o());let Xn=(()=>{class u extends To{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,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:(ee,ft)=>`Select an ${ee} Type to select an associated Disease${ft?"(s)":""}`,addFormTitle:"Add a New Disease"}},this.placeholder$=new dn.t(void 0),this.selectOpen$=new Ni.m}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,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}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 a=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}!this.onRequiresDisease$||!this.onEntityType$||(0,po.z)([this.onRequiresDisease$,this.onEntityType$,this.onValueChange$]).pipe((0,pn.s)(this)).subscribe(([a,h,_])=>{this.onStateUpdates(a,h,_)})}}onStateUpdates(a,h,_){!a&&h&&(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated diseases`,this.props.extraType="prompt",this.cdr.markForCheck()),this.props.requireType&&!h&&(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"),a&&(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0),(!a&&void 0!==_||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()}getTypeaheadVarsFn(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.diseaseTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.disease}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.O3Q),e.rXU(xn.BOs),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-disease-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Te,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addDisease",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcAddEntity","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[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,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcSelectComponent",function(nn){return e.eBV(ee),e.Njj(_.selectComponent=nn)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(7,hi,3,3,"ng-container",4)(8,yo,2,3,"ng-template",null,0,e.C5r)(10,Gi,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ee=e.sdS(9),ft=e.sdS(11);e.Y8G("cvcAddEntity",ft)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,14,_.placeholder$))("cvcResults",e.bMT(2,16,_.result$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresDisease$&&!e.bMT(4,20,_.onRequiresDisease$))("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,Ci.Nj,hn.LH,qe.Di,Wt,tn.b,it,Ci.L9,Xr.M],changeDetection:0})}return u})();const xo={types:[{name:"disease-select",wrappers:["form-field"],component:Xn,defaultOptions:{props:{label:"Disease"}}},{name:"disease-multi-select",wrappers:["form-field"],component:Xn,defaultOptions:{props:{isMultiSelect:!0,label:"Diseases"}}}]};let Wi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(xo),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Gn.T,Go.P,En,jn,ge.i,Ft._]})}return u})();const Po=["optionTemplates"];function Qr(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function Rr(u,b){1&u&&(e.qex(0),e.DNE(1,Qr,1,1,"ng-template",null,1,e.C5r),e.bVm())}function ws(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ms={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."},Br=qi(Mi(),mi()),vs={types:[{name:"type-select",wrappers:["form-field"],component:(()=>{class u extends Br{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"ENTITY_NAME Type",entityName:{singular:"Entity",plural:"Entities"},placeholder:"Select an ENTITY_NAME Type",isMultiSelect:!1}},this.typeEnums$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.description=ms[a],this.props.extraType="description",this.field.formControl.markAsTouched()):(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,pn.s)(this)).subscribe(a=>{this.typeEnums$.next(a)}),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,me.T)(a=>a.map(h=>h))),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})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Po,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,Rr,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,ws,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ee)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.typeEnums$))}},dependencies:[M.Sq,to,Si,Ci.L9],changeDetection:0})}return u})()}]};let Ec=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(vs),En,Kr,ci]})}return u})();var xs=c(9214);let Tc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,qe.kT]})}return u})();var Yo=c(5703),ns=c(2602),no=c(9247),Ma=c(2816),Ps=c(152),is=c(1661),Gu=c(9869);const H1={isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},zc=u=>void 0!==u.sort,Jr=u=>void 0!==u.filter,Wc={description:xn.NVO.Description,disease:xn.NVO.DiseaseName,evidenceDirection:xn.NVO.EvidenceDirection,evidenceLevel:xn.NVO.EvidenceLevel,evidenceRating:xn.NVO.EvidenceRating,evidenceType:xn.NVO.EvidenceType,id:xn.NVO.Id,significance:xn.NVO.Significance,status:xn.NVO.Status,variantOrigin:xn.NVO.VariantOrigin},fa={molecularProfile:"molecularProfileName",disease:"diseaseName",therapies:"therapyName",evidenceItem:"id"},ma=["selected","id"];class Kc{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:b=>b?+b.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:{disabled:!0},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,Ei.KF)(xn.qld))}},{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,Ei.KF)(xn.M1P))}},{key:"evidenceLevel",label:"EL",tooltip:"Evidence Level",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(xn.iHU))}},{key:"evidenceDirection",label:"ED",tooltip:"Evidence Direction",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(xn.$Ni))}},{key:"significance",label:"SI",tooltip:"Significance",type:"enum-tag",align:"center",width:"40px",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(xn.Vue))}},{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(b=>({value:b,text:`${b} stars`}))}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(b,a){return b.getValues().map(_=>({text:(0,ro.u)(_),value:_,byDefault:a===_}))}configureColumnStreams(b){return b.forEach(a=>{const h=a;if(zc(h)&&(h.sort.changes=new dn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),Jr(h)){const _=h.filter.options.find(ee=>ee.byDefault)?.value;h.filter.changes=new dn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}var Fs=c(2033);const As=(u,b,a)=>({$implicit:u,config:b,emphasize:a});function su(u,b){1&u&&e.eu8(0)}function Xc(u,b){if(1&u&&(e.qex(0),e.j41(1,"span",1),e.DNE(2,su,1,0,"ng-container",2),e.k0s(),e.bVm()),2&u){const a=b.$implicit,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcTagTemplate)("ngTemplateOutletContext",e.sMw(2,As,a,h.config,null==h.config?null:h.config.emphasize))}}let Xs=class x8{set cvcTagListConfig(b){!b||!b.tagList||!b.tag||(this.config=b,this.setEntities(b.tagList,b.tag))}constructor(){this.entities=[]}setEntities(b,a){this.entities=b&&0!==b.length&&0!==a.maxTags?b:[]}static#e=this.\u0275fac=function(a){return new(a||x8)};static#t=this.\u0275cmp=e.VBU({type:x8,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(a,h){1&a&&e.DNE(0,Xc,3,6,"ng-container",0),2&a&&e.Y8G("ngForOf",h.entities)},dependencies:[M.Sq,M.T3],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{display:inline-block;margin-bottom:-4px}.tag-container[_ngcontent-%COMP%]{display:inline-block;margin-bottom:4px}"],changeDetection:0})};Xs=(0,vi.Cg)([(0,pn.d)()],Xs);var Cl=c(3075),Sa=c(4137);const Qc=(u,b,a,h,_)=>({tagList:u,tag:b,showPopover:a,status:h,emphasize:_});function Mc(u,b){if(1&u&&(e.nrm(0,"span",7),e.nI1(1,"typenameToIcon"),e.nI1(2,"entityColor")),2&u){const a=b.$implicit;e.Y8G("nzType",e.bMT(1,2,a.__typename))("nzTwotoneColor",e.bMT(2,4,a.__typename))}}function os(u,b){if(1&u&&(e.qex(0),e.DNE(1,Mc,3,6,"span",6),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",a.entities)}}function ga(u,b){if(1&u&&(e.j41(0,"span",8)(1,"strong"),e.EFF(2),e.k0s()(),e.nrm(3,"span",7),e.nI1(4,"typenameToIcon"),e.nI1(5,"entityColor")),2&u){const a=e.XpG();e.R7$(2),e.JRh(a.entities.length),e.R7$(),e.Y8G("nzType",e.bMT(4,3,a.entities[0].__typename))("nzTwotoneColor",e.bMT(5,5,a.entities[0].__typename))}}function au(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag-list",11),2&u){const a=e.XpG(2);e.Y8G("cvcTagTemplate",a.cvcTagTemplate)("cvcTagListConfig",e.s1E(2,Qc,a.entities,a.config.tag,a.config.showPopover,a.config.status,a.config.emphasize))}}function Wu(u,b){1&u&&e.EFF(0," Invalid config specified for entity-tag-list. ")}function _s(u,b){if(1&u&&(e.j41(0,"div",9),e.DNE(1,au,1,8,"cvc-entity-tag-list",10),e.k0s(),e.DNE(2,Wu,1,0,"ng-template",null,2,e.C5r)),2&u){const a=e.sdS(3),h=e.XpG();e.R7$(),e.Y8G("ngIf",h.config)("ngIfElse",a)}}let cu=(()=>{class u{set cvcCollectionTagConfig(a){!a||!a.tagList||!a.tag||(this.setConfig(a),this.setEntities(a.tagList))}constructor(){this.cvcShowMaxIcons=5,this.cvcShowFullLabels=!0,this.entities=[]}setConfig(a){this.config=this.cvcShowFullLabels?{...a,tag:{...a.tag,truncateLabel:void 0}}:a}setEntities(a){this.entities=a&&0!==a.length?a:[]}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-entity-collection-tag"]],inputs:{cvcCollectionTagConfig:"cvcCollectionTagConfig",cvcTagTemplate:"cvcTagTemplate",cvcShowMaxIcons:"cvcShowMaxIcons",cvcShowFullLabels:"cvcShowFullLabels"},decls:9,vars:3,consts:[["showCount",""],["tagListPopover",""],["noConfig",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-typography","","nzType","secondary",1,"plus-sign"],[4,"ngIf","ngIfElse"],["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"],[3,"cvcTagTemplate","cvcTagListConfig"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-tag",3)(1,"span",4)(2,"strong"),e.EFF(3,"+"),e.k0s()(),e.DNE(4,os,2,1,"ng-container",5)(5,ga,6,7,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(7,_s,4,2,"ng-template",null,1,e.C5r)),2&h){const ee=e.sdS(6),ft=e.sdS(8);e.Y8G("nzPopoverContent",ft),e.R7$(4),e.Y8G("ngIf",_.entities.length<=_.cvcShowMaxIcons)("ngIfElse",ee)}},dependencies:[M.Sq,M.bT,Gn.s,qe.Di,gi.L_,Z.Dn,Xs,Cl.R,Sa.o],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})}return u})();var Jc=c(3296);function P(u,b){if(1&u&&(e.j41(0,"span",1),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&u){const a=b.ngIf;e.R7$(),e.Lme(" ",e.bMT(2,2,a.edgeCount)," of ",e.bMT(3,4,a.filteredCount)," displayed\n")}}let ae=(()=>{class u{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,qt.p)(a=>null!=a.totalCount||null!=a.filteredCount),(0,me.T)(a=>{const h=a.filteredCount,_=a.totalCount,ee=a.edges;return null==h&&null==_&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:ee.length,filteredCount:h??_}}))}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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(h,_){1&h&&(e.DNE(0,P,4,6,"span",0),e.nI1(1,"ngrxPush")),2&h&&e.Y8G("ngIf",e.bMT(1,1,_.tableCountsInfo$))},dependencies:[M.bT,qe.Di,M.QX,Ci.L9],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0})}return u})();var k=c(1594),le=c(3946);let $e=class P8{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,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,k.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Sr.c)(this.onScrollThrottleTime,es.E,{leading:!0,trailing:!0}),(0,On.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Ps.B)(this.onScrollDebounceTime),(0,pn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,me.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,le.J)(),(0,qt.p)(([b,a])=>a{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(a){console.error(a)}})}loadMore(b){const a=this.cvcTableScrollerQueryRef;if(!b&&a)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!a)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&a){const[h,_,ee]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ee)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ee})}}scrollToIndex(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(a){return new(a||P8)(e.rXU(no.CP))};static#t=this.\u0275dir=e.FsC({type:P8,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function mt(u,b){1&u&&e.nrm(0,"span",8)}function kt(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG();return _.value="",e.Njj(ee.cvcModelChange.next(null))}),e.k0s()}}function yn(u,b){if(1&u&&e.DNE(0,mt,1,0,"span",6)(1,kt,1,0,"span",7),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function ln(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,yn,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function si(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let a;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(a=h.cvcPlaceholder)&&void 0!==a?a:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}$e=(0,vi.Cg)([(0,pn.d)()],$e);let Fi=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,ln,6,3,"ng-container",3)(1,si,3,4,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ee)}},dependencies:[M.bT,t.me,t.BC,t.vS,di.c,Z.Dn,F.Sy,F.tg,F.vN,_e,et],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"]})}return u})();var Ai=c(1868);function Ro(u,b){if(1&u){const a=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.cvcOptionChange.next({key:ee.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const a=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===a.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===a.value)("cvcAttrValue",a.value)}}let ys=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,Ro,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[M.Sq,to,Kn.aO,di.c,ho.p,Ai.jS,Ai.CU,Z.Dn],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_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})}return u})(),Er=(()=>{class u{transform(a){return null!=a&&Array.isArray(a)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"isArray",type:u,pure:!0})}return u})(),Hi=(()=>{class u{transform(a,h){return h(a)?a:void 0}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"guardType",type:u,pure:!0})}return u})();const So=()=>[],er=()=>({x:"800px",y:"200px"}),ia=(u,b,a)=>({$implicit:u,config:b,emphasize:a}),tr=(u,b,a,h,_)=>({tagList:u,tag:b,showPopover:a,status:h,emphasize:_}),bl=()=>[6,6],El=u=>({$implicit:u});function Tl(u,b){if(1&u&&e.nrm(0,"th",28),2&u){let a;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Jd(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",29),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(2,"span",30),e.EFF(3),e.k0s()()}if(2&u){let a,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort&&!_.sort.disabled)("nzSortFn",!_.sort.disabled)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function Zd(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function zl(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function j1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Tl,1,5,"th",25),e.nI1(2,"guardType"),e.DNE(3,Jd,4,12,"th",26),e.nI1(4,"guardType"),e.DNE(5,Zd,2,7,"th",27),e.nI1(6,"guardType"),e.DNE(7,zl,2,7,"th",27),e.nI1(8,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,a,h.colGuards.isTextTagCol))}}function Sc(u,b){if(1&u&&(e.qex(0),e.DNE(1,j1,9,16,"ng-container",24),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function lu(u,b){if(1&u&&(e.j41(0,"th",36),e.EFF(1," \xa0 "),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Zc(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-table-filter-input",39),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf,ft=e.XpG().ngIf;return e.Njj(ee.changes.next(ee.transform?{key:ft.key,value:ee.transform(_)}:{key:ft.key,value:_}))}),e.k0s()}if(2&u){const a=e.XpG().ngIf;e.Y8G("cvcInputType",a.filter.inputType)("cvcPlaceholder",a.filter.options[0].key)("cvcModel",a.filter.options[0].value)}}function U1(u,b){if(1&u&&(e.j41(0,"th",37),e.DNE(1,Zc,1,3,"cvc-table-filter-input",38),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function Ml(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",40,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(3,"nz-filter-trigger",41,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",42),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-enum-filter-menu",43),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ee=e.eBV(a).ngIf,ft=e.sdS(4);return ee.filter.changes.next(_),e.Njj(ft.nzVisible=!1)}),e.k0s()()()}if(2&u){let a,h,_;const ee=b.ngIf,ft=e.sdS(8);e.Y8G("nzColumnKey",ee.key)("nzWidth",ee.width)("nzAlign",null!==(a=ee.align)&&void 0!==a?a:"left")("nzLeft",ee.fixedLeft||!1)("nzRight",ee.fixedRight||!1)("nzShowSort",!ee.sort.disabled)("nzSortFn",!ee.sort.disabled)("nzSortOrder",(null==(h=e.bMT(2,15,ee.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ee.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",ft)("nzActive",null!==(null==(_=e.bMT(5,17,ee.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ee.key)("cvcFilterOptions",ee.filter.options)("cvcOption",e.bMT(10,19,ee.filter.changes))}}function Ku(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",44,4)(2,"nz-filter-trigger",41),e.nI1(3,"ngrxPush"),e.nrm(4,"span",45),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",46)(8,"div",47)(9,"cvc-table-filter-input",48),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.filter.changes.next({key:ee.key,value:_}))}),e.k0s()()()()()}if(2&u){let a,h;const _=b.ngIf,ee=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ee)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function Sl(u,b){if(1&u&&(e.qex(0),e.DNE(1,lu,2,5,"th",32),e.nI1(2,"guardType"),e.DNE(3,U1,2,6,"th",33),e.nI1(4,"guardType"),e.DNE(5,Ml,11,21,"th",34),e.nI1(6,"guardType"),e.DNE(7,Ku,10,12,"th",35),e.nI1(8,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,a,h.colGuards.isTextTagCol))}}function uu(u,b){if(1&u&&(e.qex(0),e.DNE(1,Sl,9,16,"ng-container",24),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function du(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",21),e.DNE(2,Sc,2,1,"ng-container",22),e.k0s(),e.j41(3,"tr",23),e.DNE(4,uu,2,1,"ng-container",22),e.k0s()()),2&u){const a=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",a),e.R7$(2),e.Y8G("ngForOf",a)}}function Da(u,b){if(1&u){const a=e.RV6();e.j41(0,"td",53),e.bIt("nzCheckedChange",function(_){e.eBV(a);const ee=e.XpG(3).$implicit,ft=e.XpG(2);return e.Njj(ft.onRowSelected$.next({id:ee.id,selected:_}))}),e.k0s()}if(2&u){let a;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Xu(u,b){1&u&&e.eu8(0)}function Dl(u,b){if(1&u&&(e.qex(0),e.DNE(1,Xu,1,0,"ng-container",56),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let a;const h=e.XpG().ngIf,_=e.XpG().ngIf,ee=e.sdS(3),ft=e.sdS(5),nn=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,nn[h])?ee:ft)("ngTemplateOutletContext",e.sMw(6,ia,nn[h],_,null==(a=e.bMT(3,4,_.filter.changes))?null:a.value))}}function qc(u,b){if(1&u&&(e.qex(0),e.DNE(1,Dl,4,10,"ng-container",55),e.bVm()),2&u){const a=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[a])("ngIfElse",h)}}function Qu(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",58),e.bVm()),2&u){const a=e.XpG(2),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,tr,h.slice(_.tag.maxTags,h.length),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee))("cvcTagTemplate",ft)("cvcShowFullLabels",!0)}}function Ol(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",57),e.DNE(2,Qu,2,9,"ng-container",24),e.bVm()),2&u){const a=e.XpG(),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",ft)("cvcTagListConfig",e.s1E(3,tr,h.slice(0,_.tag.maxTags),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function el(u,b){if(1&u&&e.DNE(0,Ol,3,9,"ng-container",55),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",a.length>0)("ngIfElse",h)}}function Cs(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",59),2&u){let a;const h=b.$implicit,_=b.config,ee=b.emphasize,ft=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ee)("cvcShowPopover",!ft.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(a=null==_.tag?null:_.tag.fullWidth)&&void 0!==a&&a)}}function Dc(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"not-applicable")}}function Ju(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,qc,2,2,"ng-container",24)(2,el,1,2,"ng-template",null,8,e.C5r)(4,Cs,1,6,"ng-template",null,9,e.C5r)(6,Dc,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function G1(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",62),e.nI1(1,"evidenceEnumDisplay")),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[a.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[a.key]))}}function Y1(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",63),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function hu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,G1,2,5,"cvc-attribute-tag",61)(2,Y1,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function Wa(u,b){if(1&u&&(e.j41(0,"nz-tag",65),e.nrm(1,"span",66),e.k0s()),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[a.key])}}function Zu(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function qu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,Wa,2,1,"nz-tag",64)(2,Zu,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function e1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Da,1,4,"td",51),e.nI1(2,"guardType"),e.DNE(3,Ju,8,4,"td",52),e.nI1(4,"guardType"),e.DNE(5,hu,4,5,"td",52),e.nI1(6,"guardType"),e.DNE(7,qu,4,5,"td",52),e.nI1(8,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,a,h.colGuards.isTextTagCol))}}function Il(u,b){if(1&u&&(e.qex(0),e.DNE(1,e1,9,16,"ng-container",24),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function pu(u,b){if(1&u&&(e.j41(0,"tr",50),e.DNE(1,Il,2,1,"ng-container",22),e.k0s()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",a)}}function fu(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,pu,2,1,"ng-template",49),e.k0s())}function tl(u,b){1&u&&e.nrm(0,"span",71)}function Ka(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",72),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG().filter;return _.value="",e.Njj(ee.changes.next({key:ee.key,value:null}))}),e.k0s()}}function t1(u,b){if(1&u&&e.DNE(0,tl,1,0,"span",69)(1,Ka,1,0,"span",70),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function n1(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",67)(2,"input",68,14),e.bIt("nzFilterChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()(),e.DNE(4,t1,2,2,"ng-template",null,15,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function gr(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",73)(1,"nz-input-number",74,14),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()()}if(2&u){const a=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",a.placeholder)("ngModel",a.defaultValue)("nzMin",1)("nzStep",1)}}function mu(u,b){if(1&u&&e.DNE(0,n1,6,3,"ng-container",55)(1,gr,3,4,"ng-template",null,13,e.C5r),2&u){const a=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===a.inputType||"default"===a.inputType)("ngIfElse",h)}}function gu(u,b){1&u&&(e.j41(0,"nz-row",75)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect EIDs"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,bl))}function Oc(u,b){1&u&&(e.j41(0,"nz-tag",85),e.nrm(1,"i",86),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function o1(u,b){if(1&u&&(e.j41(0,"nz-tag",88),e.nrm(1,"span",89),e.j41(2,"span",90),e.EFF(3),e.k0s()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,El,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function r1(u,b){if(1&u&&(e.j41(0,"nz-tag",88)(1,"span",90)(2,"span",91)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,El,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function s1(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.R7$(),e.SpI(" ",a.message," ")}}function a1(u,b){1&u&&e.DNE(0,s1,2,1,"div",22),2&u&&e.Y8G("ngForOf",b.$implicit)}function c1(u,b){if(1&u&&(e.qex(0),e.DNE(1,o1,4,5,"nz-tag",87)(2,r1,5,5,"nz-tag",87)(3,a1,1,1,"ng-template",null,17,e.C5r),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",a.query),e.R7$(),e.Y8G("ngIf",a.network)}}function l1(u,b){if(1&u&&(e.qex(0),e.DNE(1,c1,5,2,"ng-container",24),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a)}}function wl(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",92)(1,"nz-checkbox-group",93),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,a.setPreference$))}}function nl(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-row",75)(1,"nz-col",76),e.DNE(2,Oc,4,0,"nz-tag",77),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",78),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",76),e.DNE(8,l1,2,1,"ng-container",20),e.k0s(),e.j41(9,"nz-col",76),e.nrm(10,"cvc-table-counts2",79),e.k0s(),e.j41(11,"nz-col",80)(12,"nz-button-group")(13,"button",81),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",82),e.k0s(),e.j41(15,"button",83),e.nrm(16,"span",84),e.k0s()(),e.DNE(17,wl,3,3,"ng-template",null,16,e.C5r),e.k0s()()}if(2&u){const a=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",a)("nzPopoverTrigger","click")}}let No=class F8{constructor(b,a,h){this.queryGQL=b,this.apollo=a,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=H1,this.onFetchMore$=new V.B,this.onPreferenceChange$=new dn.t([]),this.onResetFilter$=new V.B,this.onRowSelected$=new V.B,this.onScroll$=new dn.t("stop"),this.onSetSelectedRow$=new dn.t(new Set),this.queryError$=new V.B,this.queryRequest$=new V.B,this.queryResult$=new Ni.m(1),this.isFetchMore$=new dn.t(!1),this.noMoreRows$=new dn.t(!1),this.scrollToIndex$=new V.B,this.tableConfig=new Kc;const _=(0,po.z)(this.tableConfig.getFilterStreams()),ee=(0,po.z)(this.tableConfig.getSortStreams()).pipe((0,qt.p)(ft=>ft.filter(nn=>null!==nn.value).length<=1));this.refetch$=(0,po.z)([ee,_]).pipe((0,me.T)(([ft,nn])=>({query:"refetch",sort:ft,filter:nn}))),this.fetchMore$=this.onFetchMore$.pipe((0,me.T)(ft=>({query:"fetchMore",fetchMore:{...ft}}))),(0,ne.h)(this.refetch$,this.fetchMore$).pipe((0,Ps.B)(50),(0,pn.s)(this)).subscribe(ft=>{const nn=this.getQueryVars(ft);this.queryRef?(this.queryError$.next({}),"refetch"===ft.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(nn).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:nn}).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(nn),this.queryRef.valueChanges.pipe((0,pn.s)(this)).subscribe(Rn=>{this.queryResult$.next(Rn),(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))}),this.loading$=this.queryResult$.pipe((0,$i.E)("loading"),(0,J.F)()),this.connection$=this.queryResult$.pipe((0,$i.E)("data","evidenceItems"),(0,qt.p)(fo.kP)),this.pageInfo$=this.connection$.pipe((0,$i.E)("pageInfo"),(0,qt.p)(fo.kP)),this.row$=(0,po.z)([this.connection$.pipe((0,$i.E)("edges"),(0,qt.p)(fo.kP),(0,me.T)(ft=>ft.map(nn=>nn.node))),this.onSetSelectedRow$]).pipe((0,me.T)(([ft,nn])=>ft.map(Rn=>{if(Rn)return{...Rn,evidenceItem:{__typename:"EvidenceItem",id:Rn.id,name:Rn.name,link:Rn.link,status:Rn.status},selected:nn.has(Rn.id)}}))),this.col$=new dn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,me.T)(ft=>this.getColPrefsFromTableConfig(ft))),this.onPreferenceChange$.pipe((0,Yi.E)(this.col$),(0,me.T)(([ft,nn])=>this.getTableConfigFromColPrefs(ft,nn)),(0,pn.s)(this)).subscribe(ft=>{this.col$.next(ft)}),this.onSetTableFilter$=new dn.t([]),this.onSetTableFilter$.pipe((0,pn.s)(this)).subscribe(ft=>{const nn=this.col$.getValue();ft.forEach(Rn=>{const xi=nn.find(Co=>Co.key===Rn.key);if(void 0!==xi.filter.inputType){const Co=xi.filter.options[0];if(null===Rn.value)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next(Rn);if(Array.isArray(Rn.value)&&0===Rn.value.length)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next({...Rn,value:null});let jo;Array.isArray(Rn.value)?Rn.value.length>0&&(jo=Rn.value[0]):jo=Rn.value;const Ra=xi.filter.typename;if(!Ra||!jo)return void console.error(`evidence-manager requires column config '${xi.key}' provide a typename for cvcTablePrefs Input to set its filter`);const Bc=this.getEntityName(Ra,jo);if(!Bc)return;xi.filter.options=[{...Co,value:Bc}],xi.filter.changes.next({...Rn,value:Bc})}else Jr(xi)&&xi.filter.changes.next(Rn)})}),this.onSetTablePref$=new dn.t([]),this.onSetTablePref$.pipe((0,Yi.E)(this.setPreference$),(0,me.T)(([ft,nn])=>{const Rn=[];return ft.forEach(xi=>{let Co=nn.find(jo=>jo.value===xi.value);Co?Rn.push({...Co,...xi}):console.warn(`evidence-manager onSetTablePref$ received updated preferences for column '${xi.value}', but a column with that key could not be found.`)}),Rn}),(0,pn.s)(this)).subscribe(ft=>{this.onPreferenceChange$.next(ft)}),this.onRowSelected$.pipe((0,Yi.E)(this.onSetSelectedRow$),(0,pn.s)(this)).subscribe(([ft,nn])=>{ft.selected?nn.add(ft.id):nn.delete(ft.id),this.onSetSelectedRow$.next(nn),this.cvcSelectedIdsChange.next(Array.from(nn))}),this.onScroll$.pipe((0,me.T)(ft=>"stop"!==ft),(0,J.F)(),(0,pn.s)(this)).subscribe(ft=>{this.isScrolling=ft,this.cdr.markForCheck()}),this.onScroll$.pipe((0,qt.p)(ft=>"bottom"===ft),(0,Yi.E)(this.pageInfo$),(0,me.T)(([ft,nn])=>nn),(0,pn.s)(this)).subscribe(ft=>{ft.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,Yi.E)((0,Xo.of)(this.tableConfig.get())),(0,pn.s)(this)).subscribe(([b,a])=>{const h=[];a.forEach(_=>{if(zc(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),Jr(_)){const ee=_.filter.options.find(ft=>1==ft.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ee||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const a=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...a,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ee=>null!==ee.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?xn.UEL.Asc:xn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let a={};return b.filter&&b.filter.forEach(h=>{a[fa[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),a}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,a){return a.forEach(h=>{if(ma.find(ee=>ee===h.key))return;const _=b.find(ee=>ee.value===h.key);_&&(h.hidden=!_?.checked)}),[...a]}getColPrefsFromTableConfig(b){let a=[];return b.forEach(h=>{ma.find(_=>_===h.key)||a.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),a}getSortColumnFromColKey(b){return Wc[b]}getEntityName(b,a){const h={id:`${b}:${a}`,fragment:Gu.J1` + fragment Linkable${b}Entity on ${b} { + id + name + link + }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`evidence-manager onSetTableFilter$ could not find cached entity ${b}:${a} to populate input filter`)}trackByIndex(b,a){return a?.id}ngOnChanges(b){if(b.cvcTableSettings){const a=b.cvcTableSettings.currentValue;void 0!==a&&this.onSetTableFilter$.next(a.filters)}if(b.cvcSelectedIds){const a=b.cvcSelectedIds.currentValue,h=new Set;void 0!==a&&a.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(a){return new(a||F8)(e.rXU(xn.BaG),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:F8,selectors:[["cvc-evidence-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[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,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["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,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[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"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["cvcDisplayMode","small",3,"cvcEmptyCategory"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[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"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["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,"ngModelChange","ngModel"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-card",18)(1,"nz-table",19,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(ft){return e.eBV(_),e.Njj(h.onScroll$.next(ft))})("cvcTableScrollerOnFetch",function(ft){return e.eBV(_),e.Njj(h.onFetchMore$.next(ft))}),e.DNE(8,du,5,2,"thead",20)(9,fu,2,0,"tbody",20),e.k0s()(),e.DNE(10,mu,3,2,"ng-template",null,1,e.C5r)(12,gu,4,2,"ng-template",null,2,e.C5r)(14,nl,19,13,"ng-template",null,3,e.C5r)}if(2&a){const _=e.sdS(13),ee=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ee),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,So))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,er))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[M.Sq,M.bT,M.T3,to,Fs.o,cu,Xs,tn.b,Jc.M,ae,t.me,t.BC,t.vS,Ci.Nj,Kn.aO,Kn.dn,di.c,ho.p,Yo.cK,dt.Ov,ns.wQ,L.Uq,L.e,Z.Dn,F.Sy,F.tg,F.vN,_e,et,gi.L_,no.CP,no.Cc,no.SO,no._4,no.GM,no.IL,no.aj,no.kt,no.CC,no.OL,no.Kg,no.jc,no.oZ,Gn.s,hn.LH,qe.Di,$e,Fi,ys,Er,Ta.pW,Hi,Ci.L9],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})};No=(0,vi.Cg)([(0,pn.d)()],No);const ni=["optionTemplates"],Pi=()=>[6,6],cr=(u,b)=>({show:u,hide:b});function Rs(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",10)(1,"cvc-evidence-manager",11),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,2,a.onEid$))("cvcTableSettings",e.bMT(3,4,a.tableSettingsChange$))}}function Ir(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",13),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h)}}function $r(u,b){1&u&&(e.qex(0),e.DNE(1,Ir,1,3,"ng-template",null,1,e.C5r),e.bVm())}function Xa(u,b){if(1&u&&(e.qex(0),e.DNE(1,$r,3,0,"ng-container",12),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function ko(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",14)(1,"cvc-entity-tag",15),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","EvidenceItem:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const lr=qi(Mi(),$o());let Ns=(()=>{class u extends lr{constructor(a,h,_,ee){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.apollo=ee,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 Ni.m,this.onShowMgrClick$=new V.B,this.showMgr$=this.onShowMgrClick$.pipe((0,Ma.S)((ft,nn)=>!ft,!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}),void 0!==this.formControl.value&&0!==this.formControl.value.length&&this.onEid$.next(this.formControl.value),this.onValueChange$.pipe((0,Yi.E)(this.onEid$),(0,pn.s)(this)).subscribe(([a,h])=>{Array.isArray(a)&&this.onEid$.next(a)})}configureStateConnections(){this.state&&(this.synchronizedFieldToColMap.forEach((a,h)=>{const _=this.state.fields[`${h}$`];_&&this.synchronizedFields$.push(_.pipe((0,me.T)(ee=>({key:h,value:ee??null}))))}),this.requiredFieldToColMap.forEach((a,h)=>{const _=this.state.requires[a];_&&this.synchronizedRequired$.push(_.pipe((0,me.T)(ee=>({key:h,required:ee}))))}),this.onFieldsChange$=(0,po.z)(this.synchronizedFields$).pipe((0,me.T)(a=>{const h=[];return a.forEach(_=>{const ee=this.synchronizedFieldToColMap.get(_.key);ee&&h.push({key:ee,value:_.value})}),h})),this.onRequiredChange$=(0,po.z)(this.synchronizedRequired$).pipe((0,me.T)(a=>{const h=[];return a.forEach(_=>{h.push({value:_.key,checked:_.required})}),h})),this.tableSettingsChange$=(0,po.z)([this.onFieldsChange$,this.onRequiredChange$]).pipe((0,me.T)(([a,h])=>({filters:a,preferences:h})),(0,Ps.B)(100),(0,us.t)(1)))}getTypeaheadVarsFn(a,h){return{eid:+a.replace(/EID/i,"")}}getTypeaheadResultsFn(a){return a.data.evidenceItems.nodes}getTagQueryVarsFn(a){return{eid:a}}getTagQueryResultsFn(a){return a.data.evidenceItem}getSelectedItemOptionFn(a){return{value:a.id,label:`EID${a.id}`}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||`EID${_.id}`,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.ZLN),e.rXU(xn.sZm),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-evidence-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(ni,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:18,vars:36,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"nzGutter"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcMinSearchStrLength","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],["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"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds","cvcTableSettings"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",2)(1,"nz-col",3)(2,"cvc-entity-select",4),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcSelectComponent",function(nn){return e.eBV(ee),e.Njj(_.selectComponent=nn)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()(),e.j41(7,"nz-col",5)(8,"button",6),e.bIt("click",function(){return e.eBV(ee),e.Njj(_.onShowMgrClick$.next())}),e.nrm(9,"span",7),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.EFF(12," Manager "),e.k0s()(),e.DNE(13,Rs,4,6,"nz-col",8),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,Xa,3,3,"ng-container",9)(16,ko,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(17);e.Y8G("nzGutter",e.lJ4(32,Pi)),e.R7$(2),e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(3,18,_.result$))("cvcOptions",e.bMT(4,20,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngClass",e.l_i(33,cr,e.bMT(10,26,_.showMgr$),!e.bMT(11,28,_.showMgr$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(14,30,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.YU,M.Sq,M.bT,Wt,tn.b,Ci.Nj,Kn.aO,di.c,ho.p,L.Uq,L.e,Z.Dn,No,Ci.L9],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})}return u})();var Ri=c(7556);let Oa=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,Gn.T,hn.Qt,qe.kT,ge.i,Ft._]})}return u})(),xl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Gn.T,qe.kT,gi.MC,Z.Y3,hn.Qt,ge.i,Oa]})}return u})();const Qa={types:[{name:"evidence-select",wrappers:["form-field"],component:Ns},{name:"evidence-multi-select",wrappers:["form-field"],component:Ns,defaultOptions:{props:{label:"Evidence Items",isMultiSelect:!0}}}]};let Wo=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Kr,Ri.F,xl,jn,Oa,Ft._,xs.y,ge.i,Tc,g.qy.forChild(Qa),t.YN,Kn.Zw,Yo.Ti,dt.IJ,ns.Cu,G.PQ,L.f3,Z.Y3,F.j,ut,gi.MC,no.$G,Gn.T,hn.Qt,qe.kT]})}return u})(),Qs=class A8{#e;constructor(b,a){this.query=b,this.errors=a,this.onFusionSelected=new e.bkB,this.#e=(0,e.WQX)(oi.J9),this.nzModalData=(0,e.WQX)(oi.or),this.layout="vertical",this.selectOrCreateFusionMutator=new Ar.E(a),this.form=new t.J3({}),this.model={fivePrimeGeneId:void 0,threePrimeGeneId:void 0,fivePrimePartnerStatus:xn.hBv.Known,threePrimePartnerStatus:xn.hBv.Known},this.options={};const h=[{label:"Known",value:xn.hBv.Known},{label:"Unknown",value:xn.hBv.Unknown},{label:"Multiple",value:xn.hBv.Multiple}];this.config=[{wrappers:["form-layout"],props:{showDevPanel:!1},validators:{partnerStatus:{message:"At least one of 5' or 3' partner status must be Known",expression:_=>{const ee=_.value;return!(!ee||ee.fivePrimePartnerStatus!=xn.hBv.Known&&ee.threePrimePartnerStatus!=xn.hBv.Known)},errorPath:"fivePrimePartnerStatus"},sameGene:{message:"5' and 3' Genes must be different",expression:_=>{const ee=_.value;return!(ee&&ee.fivePrimeGeneId&&ee.threePrimeGeneId&&ee.fivePrimeGeneId==ee.threePrimeGeneId)},errorPath:"fivePrimeGeneId"}},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:"New Fusion Feature"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"fivePrimePartnerStatus",type:"base-select",props:{label:"5' Partner Status",tooltip:"Select Known if the specific 5' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 5' Gene partners",required:!0,placeholder:"5' Partner Status",options:h,multiple:!1}},{key:"fivePrimeGeneId",type:"feature-select",props:{label:"5' Fusion Partner",placeholder:"Select Gene",tooltip:"Select the 5' Gene partner in the Fusion",canChangeFeatureType:!1,hideFeatureTypeSelect:!0,featureType:xn.Xiu.Gene},expressions:{"props.disabled":_=>_.model.fivePrimePartnerStatus!=xn.hBv.Known,"props.required":_=>_.model.fivePrimePartnerStatus==xn.hBv.Known}}]},{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"threePrimePartnerStatus",type:"base-select",props:{required:!0,placeholder:"3' Partner Status",label:"3' Partner Status",tooltip:"Select Known if the specific 3' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 3' Gene partners",options:h,multiple:!1}},{key:"threePrimeGeneId",type:"feature-select",props:{label:"3' Fusion Partner",placeholder:"Select Gene",tooltip:"Select the 3' Gene partner in the Fusion",canChangeFeatureType:!1,hideFeatureTypeSelect:!0,featureType:xn.Xiu.Gene},expressions:{"props.disabled":_=>_.model.threePrimePartnerStatus!=xn.hBv.Known,"props.required":_=>_.model.threePrimePartnerStatus==xn.hBv.Known}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Create Fusion",align:"right"}}]}]}]}]}modelChange(b){b&&(this.model.fivePrimePartnerStatus!=xn.hBv.Known&&(this.model={...this.model,fivePrimeGeneId:void 0}),this.model.threePrimePartnerStatus!=xn.hBv.Known&&(this.model={...this.model,threePrimeGeneId:void 0}))}submitFusion(b){this.mutationState=this.selectOrCreateFusionMutator.mutate(this.query,b,{},a=>{if(a.createFusionFeature?.feature.id){const h=a.createFusionFeature.feature.id;this.onFusionSelected.next(h),this.#e&&this.#e.destroy({featureId:h})}})}static#t=this.\u0275fac=function(a){return new(a||A8)(e.rXU(xn.Yd3),e.rXU(na.N))};static#n=this.\u0275cmp=e.VBU({type:A8,selectors:[["cvc-fusion-select-form"]],outputs:{onFusionSelected:"onFusionSelected"},standalone:!0,features:[e.aNF],decls:2,vars:6,consts:[["nz-form","",3,"ngSubmit","nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(a,h){1&a&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return h.submitFusion(h.model)}),e.j41(1,"formly-form",1),e.bIt("modelChange",function(ee){return h.modelChange(ee)}),e.k0s()()),2&a&&(e.Y8G("nzLayout",h.layout)("formGroup",h.form),e.R7$(),e.Y8G("form",h.form)("fields",h.config)("model",h.model)("options",h.options))},dependencies:[M.MD,t.X1,t.qT,t.cb,t.j4,G.PQ,G.CA,Kn.Zw,Cn.$,oi.U6,r.iI,g.qy,g.aF],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})};Qs=(0,vi.Cg)([(0,pn.d)()],Qs);const Ja=()=>[0,0];function oa(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(2),e.JRh(a.message)}}function Ic(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG(2);e.JRh(a.successMessage)}}function vu(u,b){if(1&u){const a=e.RV6();e.qex(0),e.DNE(1,oa,3,1,"ng-container",2),e.j41(2,"cvc-form-submission-status-display",3),e.DNE(3,Ic,1,1,"ng-template",null,0,e.C5r),e.j41(5,"form",4),e.bIt("ngSubmit",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onSubmit$.next(_.model))}),e.j41(6,"nz-row",5)(7,"nz-col",6)(8,"formly-form",7),e.bIt("modelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.model=_)}),e.k0s()()()()(),e.bVm()}if(2&u){const a=e.sdS(4),h=e.XpG();e.R7$(),e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",a),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,Ja)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}}let ks=class R8{set cvcFeatureType(b){b&&this.featureType$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.showForm$=new dn.t(!1),this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.featureType$=new dn.t(void 0),this.formMessageDisplay$=new dn.t({message:"Feature does not exist, create it?"}),this.addFeatureMutator=new Ar.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureType",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Feature"}}],this.featureType$.pipe((0,pn.s)(this)).subscribe(h=>{Object.values(xn.iby).includes(h)?(this.model.featureType=h,this.showForm$.next(!0)):this.showForm$.next(!1)}),this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("feature-quick-add form model submitted.",h),this.submitFeature(h)})}submitFeature(b){b.name&&b.featureType?this.mutationState=this.addFeatureMutator.mutate(this.query,{name:b.name,featureType:b.featureType,organizationId:b.organizationId},{},a=>{console.log("feature-quick-add submit data callback",a),a.createFeature&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{a&&a.createFeature&&this.cvcOnCreate.next({id:a.createFeature.feature.id,new:a.createFeature.new})},1e3))}):console.error("feature-quick-add form submitFeature requires model with valid name and featureType.")}ngOnChanges(b){if(b.cvcFeatureType){const a=b.cvcFeatureType.currentValue;this.featureType$.next(a),this.model={...this.model,featureType:a}}}static#e=this.\u0275fac=function(a){return new(a||R8)(e.rXU(xn.r$P),e.rXU(na.N))};static#t=this.\u0275cmp=e.VBU({type:R8,selectors:[["cvc-feature-quick-add-form"]],inputs:{cvcFeatureType:"cvcFeatureType",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:3,consts:[["success",""],[4,"ngIf"],[4,"ngrxLet"],["entityType","Feature",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(a,h){1&a&&(e.DNE(0,vu,9,10,"ng-container",1),e.nI1(1,"ngrxPush")),2&a&&e.Y8G("ngIf",e.bMT(1,1,h.showForm$))},dependencies:[M.MD,M.bT,t.X1,t.qT,t.cb,t.j4,Go.P,fs.G,Ci.Nj,Ci.L9,g.qy,g.aF,L.f3,L.Uq,L.e],encapsulation:2,changeDetection:0})};ks=(0,vi.Cg)([(0,pn.d)()],ks);const il=["optionTemplates"],bs=()=>[6,6];function Ti(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",9)(1,"nz-select",10),e.mxI("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.DH7(ee.selectedFeatureType,_)||(ee.selectedFeatureType=_),e.Njj(_)}),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return ee.onFeatureType$.next(_),e.Njj(ee.formControl.setValue(void 0))}),e.nrm(2,"nz-option",11)(3,"nz-option",12)(4,"nz-option",13),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("disabled",!a.props.canChangeFeatureType),e.R50("ngModel",a.selectedFeatureType)}}function Pl(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",18),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a.featureAliases.join(", "))("innerHtml",e.i5U(3,2,a.featureAliases.join(", "),h),e.npT)}}function wc(u,b){1&u&&e.EFF(0,"--")}function Js(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",15),e.j41(1,"span",16),e.DNE(2,Pl,4,5,"ng-container",17)(3,wc,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const a=e.sdS(4),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(2),e.Y8G("ngIf",h.featureAliases.length>0)("ngIfElse",a)}}function ol(u,b){1&u&&(e.qex(0),e.DNE(1,Js,5,5,"ng-template",null,2,e.C5r),e.bVm())}function Za(u,b){if(1&u&&(e.qex(0),e.DNE(1,ol,3,0,"ng-container",14),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function or(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",19)(1,"cvc-entity-tag",20),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Feature:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function rl(u,b){if(1&u&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).$implicit;e.R7$(),e.SpI("",a," does not match any existing Fusions")}}function Tr(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",26),e.bIt("click",function(){e.eBV(a);const _=e.XpG(3);return e.Njj(_.createFusionModal())}),e.EFF(1," Open Fusion Builder "),e.k0s()}}function Nr(u,b){1&u&&(e.j41(0,"nz-space",21),e.DNE(1,rl,2,1,"span",23)(2,Tr,2,0,"button",24),e.k0s())}function Fl(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-feature-quick-add-form",27),e.nI1(1,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onSelectOrCreate(_))}),e.k0s()}if(2&u){const a=e.XpG().$implicit,h=e.XpG();e.Y8G("cvcSearchString",a)("cvcFeatureType",e.bMT(1,2,h.onFeatureType$))}}function Ia(u,b){if(1&u&&e.DNE(0,Nr,3,0,"nz-space",21)(1,Fl,2,4,"cvc-feature-quick-add-form",22),2&u){const a=e.XpG();e.vxM("FUSION"==a.selectedFeatureType?0:1)}}const sl=qi(Mi(),$o());let Zr=class N8 extends sl{constructor(b,a,h,_){super(),this.taq=b,this.tq=a,this.changeDetectorRef=h,this.modal=_,this.defaultOptions={props:{label:"Feature",placeholder:"Search Features",isMultiSelect:!1,entityName:{singular:"Feature",plural:"Features"},description:"",featureType:xn.Xiu.Gene,canChangeFeatureType:!0,hideFeatureTypeSelect:!1}},this.selectedFeatureType=this.props.featureType,this.onFeatureType$=new dn.t(void 0),this.instanceTypes=xn.Xiu}ngAfterViewInit(){this.selectedFeatureType=this.props.featureType,this.props.featureTypeCallback&&(this.onFeatureType$.pipe((0,pn.s)(this)).subscribe(b=>this.props.featureTypeCallback(b)),this.onFeatureType$.next(this.selectedFeatureType)),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(b){return{queryTerm:b,featureType:this.selectedFeatureType}}getTypeaheadResultsFn(b){return b.data.featureTypeahead}getTagQueryVarsFn(b){return{featureId:b}}getTagQueryResultsFn(b){return b.data.feature}getSelectedItemOptionFn(b){return{value:b.id,label:b.name}}getSelectOptionsFn(b,a){return b.map((h,_)=>({label:a.get(_)||h.name,value:h.id}))}showAddBehavior(b,a){const h=b.toLowerCase();return b.length>=3&&!a.some(_=>_.name.toLowerCase()===h)}onSelectOrCreate(b){this.onPopulate$.next(b.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(b.new)}onFusionSelected(b){this.onPopulate$.next(b),this.formControl.setValue(b)}createFusionModal(){const b=this.modal.create({nzTitle:"Add New Fusion Feature",nzContent:Qs,nzData:{},nzFooter:null});b.getContentComponent(),b.afterClose.pipe((0,pn.s)(this)).subscribe(a=>{a.featureId&&this.onFusionSelected(a.featureId)})}static#e=this.\u0275fac=function(a){return new(a||N8)(e.rXU(xn.kq4),e.rXU(xn.$TJ),e.rXU(e.gRc),e.rXU(oi.N_))};static#t=this.\u0275cmp=e.VBU({type:N8,selectors:[["cvc-feature-select"]],viewQuery:function(a,h){if(1&a&&e.GBs(il,5,e.C4Q),2&a){let _;e.mGM(_=e.lsd())&&(h.optionTemplates=_)}},features:[e.Vt3],decls:12,vars:22,consts:[["selectedTemplate",""],["addFeature",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","100px",4,"ngIf"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcPlaceholder","cvcEntityName","cvcAddEntity","cvcAddEntityBehavior","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],["nzFlex","100px"],[3,"ngModelChange","disabled","ngModel"],["nzValue","GENE","nzLabel","Gene"],["nzValue","FACTOR","nzLabel","Factor"],["nzValue","FUSION","nzLabel","Fusion"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],["nzDirection","vertical"],[3,"cvcSearchString","cvcFeatureType"],["nz-typography","",4,"nzSpaceItem"],["nz-button","","nzType","primary",3,"click",4,"nzSpaceItem"],["nz-typography",""],["nz-button","","nzType","primary",3,"click"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureType"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-row",4),e.DNE(1,Ti,5,2,"nz-col",5),e.j41(2,"nz-col",6)(3,"cvc-entity-select",7),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(ft){return e.eBV(_),e.Njj(h.onSearch$.next(ft))})("cvcOnOpenChange",function(ft){return e.eBV(_),e.Njj(h.onOpenChange$?h.onOpenChange$.next(ft):null)})("cvcSelectComponent",function(ft){return e.eBV(_),e.Njj(h.selectComponent=ft)})("cvcOnModelChange",function(ft){return e.eBV(_),e.Njj(h.props.change&&h.props.change(h.field,ft))}),e.k0s()()(),e.DNE(7,Za,3,3,"ng-container",8)(8,or,2,3,"ng-template",null,0,e.C5r)(10,Ia,2,1,"ng-template",null,1,e.C5r)}if(2&a){const _=e.sdS(9),ee=e.sdS(11);e.Y8G("nzGutter",e.lJ4(21,bs)),e.R7$(),e.Y8G("ngIf",!h.props.hideFeatureTypeSelect),e.R7$(2),e.Y8G("cvcSelectMode",h.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",_)("cvcFormControl",h.formControl)("cvcFormlyAttributes",h.field)("cvcPlaceholder",h.props.placeholder)("cvcEntityName",h.props.entityName)("cvcAddEntity",ee)("cvcAddEntityBehavior",h.showAddBehavior)("cvcResults",e.bMT(4,15,h.result$))("cvcOptions",e.bMT(5,17,h.selectOption$))("cvcShowError",h.showError)("cvcLoading",e.bMT(6,19,h.isLoading$)),e.R7$(4),e.Y8G("ngrxLet",h.onSearch$)}},dependencies:[M.Sq,M.bT,t.BC,t.vS,Ci.Nj,Kn.aO,di.c,ho.p,Qe.ld,Qe.WI,hn.LH,L.Uq,L.e,qe.Di,on.U5,on.Dq,Wt,tn.b,ks,Ci.L9,Xr.M],changeDetection:0})};Zr=(0,vi.Cg)([(0,pn.d)()],Zr);const xc={types:[{name:"feature-select",wrappers:["form-field"],component:Zr},{name:"feature-multi-select",wrappers:["form-field"],component:Zr,defaultOptions:{props:{label:"Features",isMultiSelect:!0}}}]};let u1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,t.YN,g.qy.forChild(xc),Cn.$,Kn.Zw,Qe.DH,Z.Y3,F.j,hn.Qt,G.PQ,rt.jl,qe.kT,Gn.T,on.pc,oi.U6,En,jn,ge.i,Ft._,ks,Qs]})}return u})();const d1=["optionTemplates"];function Al(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function _u(u,b){1&u&&(e.qex(0),e.DNE(1,Al,1,1,"ng-template",null,1,e.C5r),e.bVm())}function h1(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const al={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"},W1=qi(Mi(),mi()),K1={types:[{name:"interaction-select",wrappers:["form-field"],component:(()=>{class u extends W1{constructor(a){super(),this.cdr=a,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"}},this.interactionEnum$=new dn.t([]),this.placeholder$=new dn.t(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,pn.s)(this)).subscribe(a=>{this.interactionEnum$.next(a)}),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,me.T)(a=>a.map(h=>h))),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,pn.s)(this)).subscribe(a=>{a&&0!=a.length?1==a.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,pn.s)(this)).subscribe(a=>{a?(this.props.description=al[a],this.props.extraType="description"):(this.props.extraType="prompt",this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's interaction$ to populate select.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-interaction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(d1,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,_u,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,h1,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.interactionEnum$))}},dependencies:[M.Sq,Si,to,Ci.L9]})}return u})()}]};let X1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(K1),En,ci,Kr]})}return u})();var Q1=c(8763);const J1=["optionTemplates"];function Z1(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a),e.R7$(),e.SpI(" - ",e.i5U(4,2,a,"evidenceLevelBrief")," ")}}function q1(u,b){1&u&&(e.qex(0),e.DNE(1,Z1,5,5,"ng-template",null,1,e.C5r),e.bVm())}function ed(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()}if(2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,a.nzValue,"evidenceLevelBrief")," ")}}function td(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,a.nzValue,"evidenceLevelBrief")," ")}}function nd(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,ed,5,5,"nz-tag",5)(2,td,5,5,"ng-container",6),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!a.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",a.props.isMultiSelect)}}const id=new Map([[xn.iHU.A,"Evidence shows consensus association in human medicine"],[xn.iHU.B,"Evidence supports association using clinical trial or other primary patient data"],[xn.iHU.C,"Evidence supports association using individual case reports from clinical journals"],[xn.iHU.D,"Evidence supports association using in vivo or in vitro models"],[xn.iHU.E,"Evidential association is inferential or indirect"]]),yu=qi(Mi(),mi()),od={types:[{name:"level-select",wrappers:["form-field"],component:(()=>{class u extends yu{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Evidence Level",required:!1,isMultiSelect:!1,placeholder:"Select Evidence Level",extraType:"description"}},this.levelEnum$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.props.tooltip="Type of study performed to produce the evidence statement",this.levelEnum$.next((0,Ei.KF)(xn.iHU).map(a=>a)),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,me.T)(a=>a.map(h=>h))),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.description=id.get(a),this.field.formControl.markAsTouched()):this.props.description=void 0}),this.configureEnumSelectField({optionEnum$:this.levelEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-level-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(J1,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,q1,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,nd,3,2,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ee)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.levelEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,Si,Ci.L9,Q1.k],changeDetection:0})}return u})()},{name:"level-multi-select",extends:"level-select",defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let rd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(od),Gn.T,ge.i,En,ci]})}return u})();var sd=c(1448),Hr=c(2617),Rl=c(713);const Cu=/\(/g,Nl=/\)/g,kl=/AND|OR/i,f1=/^(?NOT\s)?\s*#VID(?\d+)$/i,m1=/\s+/,Vl="EXPR";function Ll(u){return bu(u.replace(Cu," ( ").replace(Nl," ) "))}function bu(u){let a,b=u.split(m1),h=0,_=[],ee=[],ft=[];for(let $s of b)if("("==$s)0!=h&&_.push($s),h+=1;else if(")"==$s)if(h-=1,0==h){let Ca=bu(_.join(" "));if("errorMessage"in Ca)return Ca;ft.push(Ca),ee.push(Vl),_=[]}else _.push($s);else h>0?_.push($s):ee.push($s);const nn={errorType:"trailingBoolean",errorMessage:"Expressions may not end with AND / OR boolean operators."},Rn={errorType:"initialBoolean",errorMessage:"Expressions may not start with AND / OR boolean operators."},xi={errorType:"multipleBoolean",errorMessage:"Multiple boolean operators found."},Co={errorType:"incompleteExpression",errorMessage:"Ensure that parenthetical clauses are closed."};let jo=0;for(let $s of ee){let Ca=kl.test($s);if(Ca&&0==jo)return Rn;if(Ca&&jo===b.length-1)return nn;if(Ca&&!a)a=Pc($s);else if(Ca&&a&&Pc($s)!==a)return xi;jo++}let Ra=[],Bc=ee.join(" ").split(kl);for(let $s of Bc.map(Ca=>Ca.trim())){let Ca=f1.exec($s);if(null===Ca){if(0===$s.length)return Co;if("NOT"===$s||"NOT"===$s.split(" ").pop())return{errorType:"incompleteNOT",errorMessage:"NOT operator must be followed by a valid #VID."};if($s!==Vl)return{errorType:"invalidToken",errorMessage:`Token '${$s}' does not match the expected format.`}}else Ra.push({not:!!Ca[1],variantId:parseInt(Ca[2])})}return{booleanOperator:a,variantComponents:Ra,complexComponents:ft}}function Pc(u){return"AND"==u.toUpperCase()?xn.l76.And:xn.l76.Or}var g1=c(9350);function Vs(u,b){const a="object"==typeof b;return new Promise((h,_)=>{let ft,ee=!1;u.subscribe({next:nn=>{ft=nn,ee=!0},error:_,complete:()=>{ee?h(ft):a?h(b.defaultValue):_(new g1.G)}})})}var Bl=c(1305),$l=c(9973),vo=c(1845);let cl=(()=>{class u{constructor(a){this.apollo=a,this.cvcOnSelect=new e.bkB,this.cvcOnVariantSelect=new e.bkB,this.modelChange$=new dn.t(void 0),this.finderState={formLayout:"horizontal",fields:{featureId$:new dn.t(void 0),variantId$:new dn.t(void 0),variantMolecularProfile$:new dn.t(void 0)}},this.form=new t.J3({}),this.model={featureId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["form-row"],props:{formRowOptions:{gutter:[8,0],span:12}},fieldGroup:[{key:"featureId",type:"feature-select",props:{placeholder:"Select MP Feature",hideLabel:!0,showExtra:!1,showErrorTip:!1,required:!0,featureTypeCallback:h=>{this.featureType=h}}},{key:"variantId",type:"variant-select",props:{placeholder:"Select MP Variant",hideLabel:!0,required:!0,showExtra:!1,showErrorTip:!1,requireFeature:!0}}]}]}modelChange(a){if(!a?.variantId)return;const h=this.getSelectedVariant(a.variantId);h&&(this.model={featureId:void 0,variantId:void 0},console.log(h),this.cvcOnSelect.next(h.singleVariantMolecularProfile),this.cvcOnVariantSelect.next(h))}getFragment(a,h){return{id:`${a}Variant:${h}`,fragment:is.J1` + fragment ${a}VariantSelectQuery on ${a}Variant { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } + } + `}}getSelectedVariant(a){if(!a)return;const h=(new vo.f).transform(this.featureType);let _;const ee=this.getFragment(h,a);try{_=this.apollo.client.readFragment(ee)}catch(nn){console.error(nn)}if(_)return _;const ft=this.getFragment("",a);try{_=this.apollo.client.readFragment(ft)}catch(nn){console.error(nn)}if(_)return _;console.error("MpFinderForm could not resolve its Variant from the cache")}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-mp-finder"]],outputs:{cvcOnSelect:"cvcOnSelect",cvcOnVariantSelect:"cvcOnVariantSelect"},decls:2,vars:6,consts:[["nz-form","",3,"formGroup","nzLayout"],[3,"modelChange","form","fields","model","options"]],template:function(h,_){1&h&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(ft){return _.modelChange(ft)}),e.k0s()()),2&h&&(e.Y8G("formGroup",_.form)("nzLayout",_.finderState.formLayout),e.R7$(),e.Y8G("form",_.form)("fields",_.config)("model",_.model)("options",_.options))},dependencies:[t.qT,t.cb,t.j4,g.aF,G.CA],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return u})();function qa(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The expression contains open parentheses. Please ensure that all parenthetical expressions are closed. "),e.k0s(),e.bVm())}function jr(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function eh(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," MP Expressions may not begin with an "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean. Ensure the expression begins with a "),e.j41(9,"strong"),e.EFF(10,"#VID"),e.k0s(),e.EFF(11," or "),e.j41(12,"strong"),e.EFF(13,"NOT #VID"),e.k0s(),e.EFF(14," token. "),e.k0s(),e.bVm())}function Hl(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(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.k0s(),e.j41(3,"ul")(4,"li"),e.EFF(5," Variant Tokens - "),e.j41(6,"strong"),e.EFF(7,"#VID"),e.k0s(),e.EFF(8," or "),e.j41(9,"strong"),e.EFF(10,"NOT #VID"),e.k0s(),e.EFF(11,'followed by a valid Variant ID, e.g. "#VID123" '),e.k0s(),e.j41(12,"li"),e.EFF(13,"Boolean Tokens - "),e.j41(14,"strong"),e.EFF(15,"AND"),e.k0s(),e.EFF(16,", "),e.j41(17,"strong"),e.EFF(18,"OR"),e.k0s()(),e.j41(19,"li"),e.EFF(20," Parentheses - "),e.j41(21,"strong"),e.EFF(22,"("),e.k0s(),e.EFF(23," or "),e.j41(24,"strong"),e.EFF(25,")"),e.k0s(),e.EFF(26,", for grouping tokens into nested expressions "),e.k0s()(),e.j41(27,"p")(28,"strong"),e.EFF(29,"Invalid Token"),e.k0s(),e.EFF(30," errors occur if the parser encounters any text or token that does not match those listed above. "),e.k0s(),e.bVm())}function Fc(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," A single expression may not include more than one "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean operator. To construct complex expressions, use parentheses. "),e.k0s(),e.j41(9,"p"),e.EFF(10," For example, the expression "),e.j41(11,"strong"),e.EFF(12,"#VID12 AND #VID2220 OR #VID456"),e.k0s(),e.EFF(13," is invalid, but the expression "),e.j41(14,"strong"),e.EFF(15,"#VID12 AND (#VID2220 OR #VID456)"),e.k0s(),e.EFF(16," is valid. The parentheses create a nested expression independent of the outer expression. "),e.k0s(),e.bVm())}function Es(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function ad(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(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.k0s(),e.j41(3,"ol")(4,"li"),e.EFF(5,"click the 'Variant' button,"),e.k0s(),e.j41(6,"li"),e.EFF(7,"enter a Gene name, then select a Gene"),e.k0s(),e.j41(8,"li"),e.EFF(9,"enter the Variant name"),e.k0s(),e.j41(10,"li"),e.EFF(11," click the 'Create Variant' button that will appear if name does not match any CIViC Variants "),e.k0s()(),e.bVm())}function Eu(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," An expression may not contain multiple instances of the same Variant. Either remove the variant or change the expression. For example, "),e.j41(3,"strong"),e.EFF(4,"(#VID123 AND #VID456) OR (#VID123 AND #VID789)"),e.k0s(),e.EFF(5,", which is invalid, is logically identical to the valid MP expression "),e.j41(6,"strong"),e.EFF(7,"#VID123 AND (#VID456 OR #VID789)"),e.k0s(),e.EFF(8,". "),e.k0s(),e.bVm())}function th(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(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.k0s(),e.j41(3,"blockquote")(4,"strong"),e.EFF(5,"#VID12 AND #VID2220"),e.k0s(),e.nrm(6,"br"),e.j41(7,"strong"),e.EFF(8,"#VID12 OR #VID2220"),e.k0s(),e.nrm(9,"br"),e.j41(10,"strong"),e.EFF(11,"#VID12 AND NOT #VID2220"),e.k0s(),e.nrm(12,"br"),e.j41(13,"strong"),e.EFF(14,"#VID12 AND #VID2220 AND (#VID456 OR #VID123)"),e.k0s(),e.nrm(15,"br"),e.j41(16,"strong"),e.EFF(17,"#VID12 OR #VID2220 OR (NOT #VID456 AND #VID123)"),e.k0s(),e.nrm(18,"br"),e.k0s(),e.j41(19,"p")(20,"strong"),e.EFF(21,"Variant Tokens"),e.k0s(),e.nrm(22,"br"),e.EFF(23," Variant tokens are composed of a CIViC Variant ID prepended with "),e.j41(24,"strong"),e.EFF(25,"#VID"),e.k0s(),e.EFF(26,", and refer to specific CIViC Variants. For example, "),e.j41(27,"strong"),e.EFF(28,"#VID12"),e.k0s(),e.EFF(29," refers to "),e.j41(30,"strong"),e.EFF(31,"BRAF V600E"),e.k0s(),e.EFF(32,"; "),e.j41(33,"strong"),e.EFF(34,"#VID2220"),e.k0s(),e.EFF(35," refers to "),e.j41(36,"strong"),e.EFF(37,"ALK FUSION"),e.k0s(),e.EFF(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.k0s(),e.j41(39,"p")(40,"strong"),e.EFF(41,"Boolean Operators"),e.k0s(),e.nrm(42,"br"),e.EFF(43," MP Expressions with more than a single variant must include boolean operators - "),e.j41(44,"strong"),e.EFF(45,"AND"),e.k0s(),e.EFF(46,", "),e.j41(47,"strong"),e.EFF(48,"OR"),e.k0s(),e.EFF(49,", and "),e.j41(50,"strong"),e.EFF(51,"NOT"),e.k0s(),e.EFF(52," - indicating their relationship. For example, the expression "),e.j41(53,"strong"),e.EFF(54,"#VID12 AND #VID2220"),e.k0s(),e.EFF(55," describes a MP that includes both "),e.j41(56,"strong"),e.EFF(57,"BRAF V600E"),e.k0s(),e.EFF(58," and "),e.j41(59,"strong"),e.EFF(60,"ALK FUSION"),e.k0s(),e.EFF(61,". "),e.k0s(),e.j41(62,"p")(63,"strong"),e.EFF(64,"Parentheses"),e.k0s(),e.nrm(65,"br"),e.EFF(66," Expressions cannot have both "),e.j41(67,"strong"),e.EFF(68,"AND"),e.k0s(),e.EFF(69," and "),e.j41(70,"strong"),e.EFF(71,"OR"),e.k0s(),e.EFF(72," operators within the same expression. To construct complex MPs that require multiple operators, one must use parentheses to create embedded expressions. "),e.k0s(),e.j41(73,"p")(74,"strong"),e.EFF(75,"NOTE:"),e.k0s(),e.EFF(76," Be sure to read the help text provided along with every alert message by hovering over 'Syntax Assistance'. "),e.k0s(),e.bVm())}let Ls=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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(h,_){1&h&&(e.j41(0,"div",0),e.qex(1,1),e.DNE(2,qa,3,0,"ng-container",2)(3,jr,6,0,"ng-container",2)(4,eh,15,0,"ng-container",2)(5,Hl,31,0,"ng-container",2)(6,Fc,17,0,"ng-container",2)(7,Es,6,0,"ng-container",2)(8,ad,12,0,"ng-container",2)(9,Eu,9,0,"ng-container",2)(10,th,77,0,"ng-container",3),e.bVm(),e.k0s()),2&h&&(e.R7$(),e.Y8G("ngSwitch",_.cvcErrorType),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","unknownVariant"),e.R7$(),e.Y8G("ngSwitchCase","identicalVariants"))},dependencies:[M.ux,M.e1,M.fG],styles:[".help-content[_ngcontent-%COMP%]{max-width:500px}blockquote[_ngcontent-%COMP%]{margin-left:1em}"]})}return u})();const v1=["expressionEditor"],jl=()=>[6,8],_1=u=>({active:u}),Bs=(u,b)=>({$implicit:u,helpContent:b});function ec(u,b){1&u&&e.EFF(0,"Added new Molecular Profile")}function Ul(u,b){if(1&u&&e.nrm(0,"cvc-mp-tag-name",38),2&u){const a=e.XpG().ngrxLet;e.Y8G("nameSegments",a)}}function Gl(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Valid Molecular Profile expressions will be previewed here. "),e.k0s())}function Tu(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ul,1,1,"cvc-mp-tag-name",36)(2,Gl,2,0,"span",37),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a),e.R7$(),e.Y8G("ngIf",!a)}}function Zs(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help")}function ji(u,b){if(1&u&&(e.j41(0,"button",41),e.nrm(1,"span",42),e.EFF(2," GETTING STARTED "),e.k0s(),e.DNE(3,Zs,1,0,"ng-template",null,7,e.C5r)),2&u){const a=e.sdS(4);e.Y8G("nzPopoverContent",a)}}function Yl(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",40),e.DNE(2,ji,5,1,"ng-template",null,6,e.C5r),e.bVm()),2&u){const a=b.ngIf,h=e.sdS(3);e.R7$(),e.Y8G("nzMessage",a)("nzAction",h)}}function Wl(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(a);const _=e.XpG(3).ngrxLet,ee=e.XpG();return e.Njj(ee.cvcOnSelect.next(_))}),e.EFF(1," Select this MP "),e.k0s()}}function y1(u,b){if(1&u&&(e.EFF(0," Molecular Profile "),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," found. ")),2&u){const a=e.XpG(3).ngrxLet;e.R7$(2),e.JRh(a.name)}}function cd(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,Wl,2,0,"ng-template",null,8,e.C5r)(4,y1,4,1,"ng-template",null,9,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",a)}}function C1(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(a);const _=e.XpG(4);return e.Njj(_.onCreateNewMp$.next())}),e.EFF(1," Create New MP "),e.k0s()}}function ld(u,b){1&u&&e.EFF(0," Molecular Profile not found, create it? ")}function ud(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,C1,2,0,"ng-template",null,10,e.C5r)(4,ld,1,0,"ng-template",null,11,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",a)}}function b1(u,b){if(1&u&&(e.qex(0),e.DNE(1,cd,6,2,"ng-container",25)(2,ud,6,2,"ng-container",25),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",void 0!==a),e.R7$(),e.Y8G("ngIf",void 0===a)}}function tc(u,b){if(1&u&&(e.qex(0),e.DNE(1,b1,3,2,"ng-container",25),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!e.bMT(2,1,a.expressionError$)&&!e.bMT(3,3,a.expressionMessage$))}}function dd(u,b){if(1&u&&(e.j41(0,"button",47),e.nrm(1,"span",42),e.EFF(2," SYNTAX ASSISTANCE "),e.k0s()),2&u){const a=e.XpG().helpContent;e.Y8G("nzPopoverContent",a)}}function hd(u,b){if(1&u&&(e.nrm(0,"nz-alert",46),e.DNE(1,dd,3,1,"ng-template",null,12,e.C5r)),2&u){const a=b.$implicit,h=e.sdS(2);e.Y8G("nzMessage",a.errorMessage)("nzAction",h)}}function pd(u,b){1&u&&e.eu8(0)}function fd(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",52)}function md(u,b){if(1&u&&(e.qex(0),e.DNE(1,pd,1,0,"ng-container",51)(2,fd,1,0,"ng-template",null,13,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function Dn(u,b){1&u&&e.eu8(0)}function oo(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",53)}function E1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Dn,1,0,"ng-container",51)(2,oo,1,0,"ng-template",null,14,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function T1(u,b){1&u&&e.eu8(0)}function Io(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",54)}function ll(u,b){if(1&u&&(e.qex(0),e.DNE(1,T1,1,0,"ng-container",51)(2,Io,1,0,"ng-template",null,15,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function ri(u,b){1&u&&e.eu8(0)}function Ho(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",55)}function nc(u,b){if(1&u&&(e.qex(0),e.DNE(1,ri,1,0,"ng-container",51)(2,Ho,1,0,"ng-template",null,16,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function Ac(u,b){1&u&&e.eu8(0)}function ul(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",56)}function zu(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ac,1,0,"ng-container",51)(2,ul,1,0,"ng-template",null,17,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function Kl(u,b){1&u&&e.eu8(0)}function ra(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",57)}function z1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Kl,1,0,"ng-container",51)(2,ra,1,0,"ng-template",null,18,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function Mu(u,b){1&u&&e.eu8(0)}function qr(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",58),e.bVm())}function sa(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",59),e.bVm())}function Su(u,b){if(1&u&&e.DNE(0,qr,2,0,"ng-container",25)(1,sa,2,0,"ng-container",25),2&u){const a=e.XpG(2).ngIf;e.Y8G("ngIf",a.errorMessage.split(" ").includes("multiple")),e.R7$(),e.Y8G("ngIf",a.errorMessage.split(" ").includes("found."))}}function qs(u,b){if(1&u&&(e.qex(0),e.DNE(1,Mu,1,0,"ng-container",51)(2,Su,2,2,"ng-template",null,19,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function ea(u,b){if(1&u&&(e.qex(0),e.j41(1,"pre"),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.bVm()),2&u){const a=e.XpG().ngIf;e.R7$(2),e.SpI(" ",e.bMT(3,1,a),"\n ")}}function dl(u,b){if(1&u&&(e.qex(0)(1,48),e.DNE(2,md,4,5,"ng-container",49)(3,E1,4,5,"ng-container",49)(4,ll,4,5,"ng-container",49)(5,nc,4,5,"ng-container",49)(6,zu,4,5,"ng-container",49)(7,z1,4,5,"ng-container",49)(8,qs,4,5,"ng-container",49)(9,ea,4,3,"ng-container",50),e.bVm()()),2&u){const a=b.ngIf;e.R7$(),e.Y8G("ngSwitch",a.errorType),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","queryError")}}function M1(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Append: "),e.k0s())}function Li(u,b){if(1&u&&(e.j41(0,"button",60)(1,"strong"),e.EFF(2,"Variant"),e.k0s()()),2&u){e.XpG();const a=e.sdS(37);e.Y8G("nzPopoverContent",a)}}function S1(u,b){if(1&u&&(e.j41(0,"button",61)(1,"strong"),e.EFF(2,"NOT Variant"),e.k0s()()),2&u){e.XpG();const a=e.sdS(39);e.Y8G("nzPopoverContent",a)}}function ic(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function Xl(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next("AND"))}),e.j41(1,"strong"),e.EFF(2,"AND"),e.k0s()()}}function wa(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next("OR"))}),e.j41(1,"strong"),e.EFF(2,"OR"),e.k0s()()}}function Rc(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function rs(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next("("))}),e.j41(1,"strong"),e.EFF(2,"("),e.k0s()()}}function D1(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next(")"))}),e.j41(1,"strong"),e.EFF(2,")"),e.k0s()()}}function Du(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onVariantSelect$.next({variant:_,prependNot:!1}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,jl)))}function Ql(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID, prepended with NOT boolean. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onVariantSelect$.next({variant:_,prependNot:!0}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,jl)))}function hl(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.nrm(3,"cvc-entity-tag",70),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.EFF(5),e.k0s()(),e.j41(6,"ul",71)(7,"nz-list-item-action")(8,"button",72),e.bIt("click",function(){const _=e.eBV(a).$implicit,ee=e.XpG(2);return e.Njj(ee.onSelectExample$.next(_))}),e.EFF(9," Select "),e.k0s()()()()}if(2&u){const a=b.$implicit;e.R7$(3),e.Y8G("cvcLinkableEntity",a.mp),e.R7$(2),e.SpI(" ",a.description," ")}}function Jo(u,b){if(1&u&&(e.j41(0,"div",67)(1,"nz-list",68),e.DNE(2,hl,10,2,"nz-list-item",69),e.k0s()()),2&u){const a=e.XpG();e.R7$(2),e.Y8G("ngForOf",a.exampleExpressions)}}let ur=class k8{constructor(b,a,h,_,ee){this.previewMpGql=b,this.createMolecularProfileGql=a,this.mpEditorPrepopulate=h,this.networkErrorService=_,this.viewerService=ee,this.cvcOnSelect=new e.bkB,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 Ar.E(this.networkErrorService),this.onInputChange$=new dn.t(void 0),this.onAppendInput$=new V.B,this.onVariantSelect$=new V.B,this.onCreateNewMp$=new V.B,this.onSelectExample$=new V.B,this.inputValue$=new dn.t(""),this.expressionError$=new dn.t(void 0),this.expressionHelp$=new dn.t(void 0),this.expressionMessage$=new dn.t(this.expressionMessages.initial),this.expressionSegment$=new V.B,this.existingMp$=new V.B,this.viewer$=this.viewerService.viewer$,this.mostRecentOrg$=this.viewer$.pipe((0,$i.E)("mostRecentOrg"))}ngAfterViewInit(){this.mostRecentOrg$.pipe((0,pn.s)(this)).subscribe(b=>{this.mostRecentOrgId=b?.id}),this.onInputChange$.pipe((0,Ps.B)(250),(0,On.M)(b=>{b||this.expressionSegment$.next(void 0)}),(0,qt.p)(fo.kP),(0,On.M)(b=>{0===b.length&&(this.expressionMessage$.next(this.expressionMessages.initial),this.expressionError$.next(void 0))}),(0,qt.p)(b=>b.length>0),(0,qt.p)(b=>" "!==b[b.length-1]),(0,me.T)(b=>{let a=Ll(b);return"errorMessage"in a?a:this.previewQueryRef.refetch({mpStructure:a})}),(0,pn.s)(this)).subscribe(b=>{if(this.isMpParseError(b)){const a=b;this.expressionMessage$.next(void 0),this.expressionError$.next(a),this.expressionSegment$.next(void 0)}else b.then(({data:h,errors:_})=>{if(_)this.expressionMessage$.next(void 0),this.expressionError$.next({errorType:"queryError",errorMessage:_.map(ee=>ee.message).join("\n")}),this.expressionSegment$.next(void 0);else{this.expressionSegment$.next(h.previewMolecularProfileName.segments),this.expressionMessage$.next(void 0),this.expressionError$.next(void 0);this.existingMp$.next(h.previewMolecularProfileName.existingMolecularProfile||void 0)}})}),this.onAppendInput$.pipe((0,pn.s)(this)).subscribe(b=>{if(this.expressionEditor){const a=this.expressionEditor.nativeElement,_=`${a.value}${/\s+$/.test(b)?b:" "+b}`;a.value=_,this.inputValue$.next(_),this.onInputChange$.next(_)}}),this.onSelectExample$.pipe((0,pn.s)(this)).subscribe(b=>{this.expressionEditor&&(this.expressionEditor.nativeElement.value=b.expression,this.inputValue$.next(b.expression),this.onInputChange$.next(b.expression))}),this.onVariantSelect$.pipe((0,Yi.E)(this.onInputChange$),(0,me.T)(([b,a])=>{const h=`${b.prependNot?"NOT ":""}#VID${b.variant.id}`;return a&&0!=a.trim().length?`${a.trim()} ${h}`:h}),(0,pn.s)(this)).subscribe(b=>{this.inputValue$.next(b),this.onInputChange$.next(b)}),this.previewQueryRef=this.previewMpGql.watch({}),this.previewMpName$=this.previewQueryRef.valueChanges.pipe((0,$i.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,me.T)(b=>b.segments),(0,pn.s)(this)),this.previewMpAlreadyExists$=this.previewQueryRef.valueChanges.pipe((0,$i.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,me.T)(b=>b.existingMolecularProfile),(0,pn.s)(this)),this.previewDeprecatedVariants$=this.previewQueryRef.valueChanges.pipe((0,$i.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,me.T)(b=>b.deprecatedVariants),(0,pn.s)(this)),this.onCreateNewMp$.pipe((0,Yi.E)(this.onInputChange$),(0,pn.s)(this)).subscribe(([b,a])=>{if(!a||0===a.length)return;let h=Ll(a);"errorMessage"in h||(this.state=this.createMolecularProfileMutator.mutate(this.createMolecularProfileGql,{mpStructure:h,organizationId:this.mostRecentOrgId},{},_=>{setTimeout(()=>{_.createMolecularProfile&&this.cvcOnSelect.next(_.createMolecularProfile.molecularProfile)},1e3)}))})}isMpParseError(b){return void 0!==b.errorMessage}prepopulateMp(b){if(!b)return this.expressionSegment$.next(void 0),this.expressionMessage$.next(this.expressionMessages.initial),void this.inputValue$.next("");Vs(this.mpEditorPrepopulate.fetch({mpId:b},{fetchPolicy:"cache-first"})).then(({data:a})=>{if(!a?.molecularProfile?.id)return void console.error(`MpExpressionEditor could not fetch MolecularProfile:${b} to prepolate editor fields.`);const h=a.molecularProfile.rawName.replace(/#GID(\d+)/g,"").trim();this.inputValue$.next(h),this.onInputChange$.next(h)})}ngOnChanges(b){b.cvcPrepopulateWithId&&this.prepopulateMp(b.cvcPrepopulateWithId.currentValue)}static#e=this.\u0275fac=function(a){return new(a||k8)(e.rXU(xn.xKZ),e.rXU(xn.Avr),e.rXU(xn.uXu),e.rXU(na.N),e.rXU(Bl.q))};static#t=this.\u0275cmp=e.VBU({type:k8,selectors:[["cvc-mp-expression-editor"]],viewQuery:function(a,h){if(1&a&&e.GBs(v1,5),2&a){let _;e.mGM(_=e.lsd())&&(h.expressionEditor=_.first)}},inputs:{cvcPrepopulateWithId:"cvcPrepopulateWithId"},outputs:{cvcOnSelect:"cvcOnSelect"},features:[e.OA$],decls:42,vars:23,consts:[["success",""],["errorAlert",""],["expressionEditor",""],["appendVariant",""],["appendNotVariant",""],["expressionExamples",""],["messageAction",""],["gettingStartedHelp",""],["selectAction",""],["foundMessage",""],["createAction",""],["createMessage",""],["errorAction",""],["invalidTokenHelp",""],["trailingBooleanHelp",""],["initialBooleanHelp",""],["multipleBooleanHelp",""],["incompleteExpressionHelp",""],["incompleteNOTHelp",""],["queryErrorHelp",""],["entityType","Molecular Profile",3,"mutationState","successMessage"],[3,"nzGutter"],["nzSpan","24"],[1,"expression-preview",3,"ngClass"],[4,"ngrxLet"],[4,"ngIf"],["nz-input","","rows","1","placeholder","Enter or edit a Molecular Expression here.",2,"width","100%",3,"ngModelChange","ngModel"],[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"],[3,"nameSegments",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nameSegments"],["nz-typography","","nzType","secondary"],["nzType","info","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","dashed","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-icon","","nzType","question-circle","nzTheme","fill"],["nzType","success","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"click"],["type","button","nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],["nzType","error","nzShowIcon","",3,"nzMessage","nzAction"],["nz-button","","nzDanger","","nzType","text","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cvcErrorType","invalidToken"],["cvcErrorType","trailingBoolean"],["cvcErrorType","initialBoolean"],["cvcErrorType","multipleBoolean"],["cvcErrorType","incompleteExpression"],["cvcErrorType","incompleteNOT"],["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(a,h){if(1&a){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",20),e.DNE(1,ec,1,0,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",21)(4,"nz-col",22)(5,"div",23),e.nI1(6,"ngrxPush"),e.DNE(7,Tu,3,2,"ng-container",24),e.nI1(8,"ngrxPush"),e.k0s()(),e.j41(9,"nz-col",22),e.DNE(10,Yl,4,2,"ng-container",25),e.nI1(11,"ngrxPush"),e.DNE(12,tc,4,5,"ng-container",24)(13,hd,3,2,"ng-template",null,1,e.C5r)(15,dl,10,8,"ng-container",25),e.nI1(16,"ngrxPush"),e.k0s(),e.j41(17,"nz-col",22)(18,"textarea",26,2),e.nI1(20,"ngrxPush"),e.bIt("ngModelChange",function(ft){return e.eBV(_),e.Njj(h.onInputChange$.next(ft))}),e.k0s()()(),e.j41(21,"nz-row",27)(22,"nz-col",28)(23,"button",29),e.EFF(24," Examples "),e.k0s()(),e.j41(25,"nz-col",30)(26,"nz-space"),e.DNE(27,M1,2,0,"span",31)(28,Li,3,1,"button",32)(29,S1,3,1,"button",33)(30,ic,2,0,"span",34)(31,Xl,3,0,"button",35)(32,wa,3,0,"button",35)(33,Rc,2,0,"span",34)(34,rs,3,0,"button",35)(35,D1,3,0,"button",35),e.k0s()(),e.DNE(36,Du,7,2,"ng-template",null,3,e.C5r)(38,Ql,7,2,"ng-template",null,4,e.C5r)(40,Jo,3,1,"ng-template",null,5,e.C5r),e.k0s()()}if(2&a){const _=e.sdS(2),ee=e.sdS(41);e.Y8G("mutationState",h.state)("successMessage",_),e.R7$(3),e.Y8G("nzGutter",e.lJ4(20,jl)),e.R7$(2),e.Y8G("ngClass",e.eq3(21,_1,void 0!==e.bMT(6,10,h.expressionSegment$))),e.R7$(2),e.Y8G("ngrxLet",e.bMT(8,12,h.expressionSegment$)),e.R7$(3),e.Y8G("ngIf",e.bMT(11,14,h.expressionMessage$)),e.R7$(2),e.Y8G("ngrxLet",h.existingMp$),e.R7$(3),e.Y8G("ngIf",e.bMT(16,16,h.expressionError$)),e.R7$(3),e.Y8G("ngModel",e.bMT(20,18,h.inputValue$)),e.R7$(5),e.Y8G("nzPopoverContent",ee)}},dependencies:[M.YU,M.Sq,M.bT,M.T3,M.ux,M.e1,M.fG,t.me,t.BC,t.vS,Ci.Nj,Cn.Y,Kn.aO,di.c,ho.p,Z.Dn,F.Sy,L.Uq,L.e,on.U5,on.Dq,qe.Di,gi.L_,Hr.eE,Hr.lQ,Hr.qx,Hr.mf,Hr.YU,Hr.MV,Hr.Tc,fs.G,$l.G,tn.b,cl,Ls,M.TG,Ci.L9],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})};ur=(0,vi.Cg)([(0,pn.d)()],ur);const oc=["optionTemplates"],O1=()=>[8,12],wr=(u,b)=>({show:u,hide:b});function rc(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-mp-finder",13),e.bIt("cvcOnSelect",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onMpSelect$.next(_))}),e.k0s()}}function Vo(u,b){1&u&&(e.j41(0,"div",14),e.EFF(1," \xa0 "),e.j41(2,"span",15)(3,"i"),e.EFF(4,"Select or create a Molecular Profile with the expression editor "),e.k0s()()())}function I1(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",16)(1,"div",17)(2,"cvc-entity-select",18),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onSearch$.next(_))})("cvcOnModelChange",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.props.change&&ee.props.change(ee.field,_))}),e.k0s()()()}if(2&u){const a=e.XpG(2),h=e.sdS(13);e.R7$(2),e.Y8G("cvcSelectMode",a.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",h)("cvcFormControl",a.formControl)("cvcFormlyAttributes",a.field)("cvcEntityName",a.props.entityName)("cvcPlaceholder",a.props.placeholder)("cvcResults",e.bMT(3,15,a.result$))("cvcDisabled",a.props.disabled)("cvcAllowClear",!1)("cvcOptions",e.bMT(4,17,a.selectOption$))("cvcShowError",a.showError)("cvcLoading",e.bMT(5,19,a.isLoading$))("cvcBorderless",!0)("cvcSuffixIcon",null)("cvcShowArrow",!1)}}function w1(u,b){if(1&u&&(e.qex(0),e.DNE(1,rc,1,0,"cvc-mp-finder",10)(2,Vo,5,0,"div",11)(3,I1,6,21,"div",12),e.bVm()),2&u){const a=b.ngrxLet,h=e.XpG();e.R7$(),e.Y8G("ngIf",a.showFinder&&!h.editorOpen),e.R7$(),e.Y8G("ngIf",h.editorOpen),e.R7$(),e.Y8G("ngIf",a.showSelect&&!h.editorOpen)}}function xa(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",19)(1,"cvc-mp-expression-editor",20),e.nI1(2,"ngrxPush"),e.bIt("cvcOnSelect",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onMpSelect$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcPrepopulateWithId",e.bMT(2,1,a.onMpId$))}}function Ou(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",25),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,a.molecularProfileAliases.join(", "),h),e.npT)}}function sc(u,b){1&u&&e.EFF(0,"--")}function x1(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",22),e.j41(1,"span",23),e.EFF(2," Aliases: "),e.DNE(3,Ou,4,4,"ng-container",24)(4,sc,1,0,"ng-template",null,2,e.C5r),e.k0s()),2&u){const a=e.sdS(5),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(3),e.Y8G("ngIf",h.molecularProfileAliases.length>0)("ngIfElse",a)}}function Nc(u,b){1&u&&(e.qex(0),e.DNE(1,x1,6,5,"ng-template",null,1,e.C5r),e.bVm())}function Ts(u,b){if(1&u&&(e.qex(0),e.DNE(1,Nc,3,0,"ng-container",21),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function m(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",26)(1,"cvc-entity-tag",27),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","MolecularProfile:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const zs=qi(Mi(),$o());let Ie=(()=>{class u extends zs{constructor(a,h,_,ee){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.apollo=ee,this.editorOpen=!1,this.defaultOptions={props:{label:"Molecular Profile",placeholder:"Search Molecular Profiles",tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated assertion.",isMultiSelect:!1,description:"Select a Feature and Variant to specify a simple Molecular Profile.",entityName:{singular:"Molecular Profile",plural:"Molecular Profiles"},minSearchStrLength:1}},this.onMpSelect$=new dn.t(void 0),this.onMpId$=new Ni.m,this.onShowExpClick$=new V.B,this.showExp$=this.onShowExpClick$.pipe((0,Ma.S)((ft,nn)=>!ft,!1),(0,On.M)(ft=>this.editorOpen=ft)),this.selectDisplay$=new dn.t({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,pn.s)(this)).subscribe(a=>{const h=void 0!==a;this.selectDisplay$.next({showFinder:!h,showSelect:h}),this.onMpId$.next(a),this.props.description=a?void 0:this.initialDescription}),this.onMpSelect$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.selectOption$.next([{label:a.name,value:a.id}]),this.editorOpen&&this.onShowExpClick$.next(),this.cdr.detectChanges(),this.field.formControl.setValue(a.id),this.field.formControl.markAsTouched()):this.selectDisplay$.next({showFinder:!0,showSelect:!1})})}configureStateConnections(){}getTypeaheadVarsFn(a,h){return{name:a,geneId:h}}getTypeaheadResultsFn(a){return a.data.molecularProfiles.nodes}getTagQueryVarsFn(a){return{molecularProfileId:a}}getTagQueryResultsFn(a){return a.data.molecularProfile}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.nRJ),e.rXU(xn.OLK),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(oc,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:14,vars:16,consts:[["selectedTemplate",""],["optionTemplates",""],["noAliases",""],[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"],[3,"cvcOnSelect",4,"ngIf"],["class","editor-message",4,"ngIf"],["class","select-container",4,"ngIf"],[3,"cvcOnSelect"],[1,"editor-message"],["nz-typography","","nzEllipsis","","nzType","secondary"],[1,"select-container"],[1,"limit-select-width"],[3,"cvcOnSearch","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcAllowClear","cvcOptions","cvcShowError","cvcLoading","cvcBorderless","cvcSuffixIcon","cvcShowArrow"],["nzSpan","24",1,"editor-drawer"],[3,"cvcOnSelect","cvcPrepopulateWithId"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",3)(1,"nz-col",4),e.DNE(2,w1,4,3,"ng-container",5),e.k0s(),e.j41(3,"nz-col",6)(4,"button",7),e.bIt("click",function(){return e.eBV(ee),e.Njj(_.onShowExpClick$.next())}),e.nrm(5,"span",8),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.EFF(8,"Editor "),e.k0s()(),e.DNE(9,xa,3,3,"nz-col",9),e.nI1(10,"ngrxPush"),e.k0s(),e.DNE(11,Ts,3,3,"ng-container",5)(12,m,2,3,"ng-template",null,0,e.C5r)}2&h&&(e.Y8G("nzGutter",e.lJ4(12,O1)),e.R7$(2),e.Y8G("ngrxLet",_.selectDisplay$),e.R7$(3),e.Y8G("ngClass",e.l_i(13,wr,e.bMT(6,6,_.showExp$),!e.bMT(7,8,_.showExp$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(10,10,_.showExp$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$))},dependencies:[M.YU,M.Sq,M.bT,Ci.Nj,Kn.aO,di.c,ho.p,Z.Dn,L.Uq,L.e,qe.Di,hn.LH,Wt,tn.b,ur,cl,Ci.L9,Xr.M],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}.select-container[_ngcontent-%COMP%]{padding:0;background-color:#fff;cursor:default;border-radius:2px;border:1px solid #d9d9d9}.select-container[_ngcontent-%COMP%] .limit-select-width[_ngcontent-%COMP%]{display:inline-block;margin-top:-1px;margin-bottom:-1px}"],data:{animation:[Rl.U1,Rl.LD]},changeDetection:0})}return u})();const pt={types:[{name:"molecular-profile-select",wrappers:["form-field"],component:Ie},{name:"molecular-profile-multi-select",wrappers:["form-field"],component:Ie,defaultOptions:{props:{label:"Molecular Profiles",isMultiSelect:!0}}}]};let Iu=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,g.qy.forChild(pt),Cn.$,Kn.Zw,Qe.DH,oi.U6,Z.Y3,F.j,L.f3,on.pc,G.PQ,rt.jl,qe.kT,hn.Qt,gi.MC,on.pc,dt.IJ,Hr.rD,Go.P,sd.B,En,jn,ge.i,Ft._]})}return u})();const gd=["optionTemplates"];function ac(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(),e.JRh(a.name)}}function Vh(u,b){1&u&&(e.qex(0),e.DNE(1,ac,2,1,"ng-template",null,1,e.C5r),e.bVm())}function Jl(u,b){if(1&u&&(e.qex(0),e.DNE(1,Vh,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function cc(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",6)(1,"cvc-entity-tag",7),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcCacheId","NccnGuideline:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")("cvcShowIcon",!1)}}const Lh=qi(Mi(),$o());let wu=(()=>{class u extends Lh{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,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 dn.t(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(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.nccnGuidelinesTypeahead}getTagQueryResultsFn(a){return a.data.nccnGuideline}getTagQueryVarsFn(a){return{id:a}}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.qKP),e.rXU(xn.ZVN),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(gd,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:8,vars:20,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcCacheId","cvcContext","cvcMode","cvcShowIcon"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(5,Jl,3,3,"ng-container",3)(6,cc,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",!1)("cvcLoading",e.bMT(4,18,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,Ci.Nj,hn.LH,Gn.s,Wt,tn.b,Ci.L9],changeDetection:0})}return u})();const vd={types:[{name:"nccn-guideline-select",wrappers:["form-field"],component:wu,defaultOptions:{props:{label:"NCCN Guideline"}}},{name:"nccn-guideline-multi-select",wrappers:["form-field"],component:wu,defaultOptions:{props:{isMultiSelect:!0,label:"NCCN Guideline(s)"}}}]};let Bh=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(vd),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._,zi]})}return u})();const $h=qi(Mi()),Z2={types:[{name:"nccn-guideline-version-input",component:(()=>{class u extends $h{constructor(a){super(),this.cdr=a,this.defaultDescription="Please enter the version of the NCCN guideline you're referencing in the format Version.Year",this.defaultOptions={validators:{nccnVersionNumber:{expression:h=>{if(h.value){if(/^\d{1,2}\.\d{4}$/.test(h.value)){let _=+h.value.split(".")[1];return _>=2e3&&_<=(new Date).getFullYear()+1}return!1}return!0},message:(h,_)=>`"${_.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,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.state?.fields.nccnGuidelineId$.pipe((0,pn.s)(this)).subscribe(a=>{a?(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))})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-version-input"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","","placeholder","ex: 1.2023",3,"formControl","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"input",0),2&h&&e.Y8G("formControl",_.formControl)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,g.ch,F.Sy],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let _d=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Z2),F.j,En]})}return u})();var aa=c(9438);let pl=class V8{constructor(b){this.el=b,this.domChange=new e.bkB,this.changes=new MutationObserver(a=>{(0,Ki.H)(a).pipe((0,me.T)(h=>{const _=h.target;return"class"===h.attributeName?{type:"class",change:_.classList.value,key:`${h.attributeName}:${_.classList.value}`}:"disabled"===h.attributeName?{type:"disabled",change:_.disabled,key:`${h.attributeName}:${_.disabled}`}:"hidden"===h.attributeName?{type:"hidden",change:_.hidden,key:`${h.attributeName}:${_.hidden}`}:{type:h.attributeName,change:"unknown change type",key:`${h.attributeName}:unknown-change-type`}}),$("key"),(0,pn.s)(this)).subscribe(h=>{this.domChange.emit(h)})}),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()}static#e=this.\u0275fac=function(a){return new(a||V8)(e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:V8,selectors:[["button","cvcOrgSubmitButton",""]],outputs:{domChange:"domChange"}})};pl=(0,vi.Cg)([(0,pn.d)()],pl);const kc=(u,b,a)=>({"btn-right":u,"btn-left":b,"btn-center":a});function nh(u,b){if(1&u&&(e.j41(0,"button",3),e.EFF(1),e.k0s()),2&u){const a=b.ngrxLet,h=e.XpG();e.Y8G("disabled",!h.form.valid)("nzTooltipTrigger",a?"hover":null)("nzTooltipTitle","For "+(null==a?null:a.name)),e.R7$(),e.SpI(" ",h.props.submitLabel," ")}}let Vc=class L8 extends g.PU{constructor(b,a,h){super(),this.viewerService=b,this.cdr=a,this.apollo=h,this.menuSelection$=new V.B,this.baseButtonClass="org-dropdown-btn",this.defaultOptions={props:{submitLabel:"Submit"}},this.viewer$=this.viewerService.viewer$,this.organizations$=this.viewer$.pipe((0,$i.E)("organizations")),this.mostRecentOrg$=this.viewer$.pipe((0,$i.E)("mostRecentOrg")),this.isDisabled$=new V.B,this.isHidden$=new V.B,this.buttonClass$=new dn.t(this.baseButtonClass),this.subscriptions=[]}ngOnInit(){this.menuSelection$.pipe((0,Yi.E)(this.viewer$)).subscribe(([_,ee])=>{const ft={id:`User:${ee.id}`,fragment:is.J1` + fragment UserMostRecentOrgId on User { + mostRecentOrganizationId + } + `,data:{mostRecentOrganizationId:_}};this.apollo.client.writeFragment(ft)}),this.formUpdate$=new dn.t(this.form.status);const b=this.form.statusChanges.subscribe(_=>this.formUpdate$.next(_)),a=this.formUpdate$.subscribe(_=>this.cdr.detectChanges()),h=this.mostRecentOrg$.pipe((0,$i.E)("id"),(0,qt.p)(fo.kP)).subscribe(_=>{this.formControl.setValue(_)});this.subscriptions=this.subscriptions.concat([b,a,h])}ngAfterViewInit(){if(this.button&&this.button.domChange){const b=this.button.domChange.subscribe(a=>{"class"===a.type&&"string"==typeof a.change?this.buttonClass$.next(`${this.baseButtonClass} ${a.change}`):"disabled"===a.type&&"boolean"==typeof a.change?this.isDisabled$.next(a.change):"hidden"===a.type&&"boolean"==typeof a.change&&this.isHidden$.next(a.change)});this.subscriptions.push(b)}}static#e=this.\u0275fac=function(a){return new(a||L8)(e.rXU(Bl.q),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:L8,selectors:[["cvc-org-submit-button"]],viewQuery:function(a,h){if(1&a&&e.GBs(pl,5),2&a){let _;e.mGM(_=e.lsd())&&(h.button=_.first)}},features:[e.Vt3],decls:3,vars:8,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"btn-aligner",3,"ngClass"],["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(a,h){1&a&&(e.nrm(0,"input",0),e.j41(1,"div",1),e.DNE(2,nh,2,4,"button",2),e.k0s()),2&a&&(e.Y8G("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.Y8G("ngClass",e.sMw(4,kc,"right"===h.props.align,"left"===h.props.align,"center"===h.props.align)),e.R7$(),e.Y8G("ngrxLet",h.mostRecentOrg$))},dependencies:[M.YU,t.me,t.BC,t.l_,Ci.Nj,g.ch,Kn.aO,di.c,ho.p,hn.LH,pl],styles:[".btn-aligner[_ngcontent-%COMP%]{width:100%}.btn-aligner.btn-right[_ngcontent-%COMP%]{text-align:right}.btn-aligner.btn-left[_ngcontent-%COMP%]{text-align:left}.btn-aligner.btn-center[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})};Vc=(0,vi.Cg)([(0,pn.d)({arrayName:"subscriptions"})],Vc);const yd={types:[{name:"org-submit-button",component:Vc}]};let P1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(yd),Z.Y3,aa.Yb,Kn.Zw,ns.Cu,hn.Qt]})}return u})();const xu=["optionTemplates"];function Pu(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function Cd(u,b){1&u&&(e.qex(0),e.DNE(1,Pu,1,1,"ng-template",null,1,e.C5r),e.bVm())}function F1(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ih=new Map([[xn.Kkj.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."],[xn.Kkj.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."],[xn.Kkj.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."],[xn.Kkj.Combined," Variants in the corresponding Complex Molecular Profile have heterogeneous origins."],[xn.Kkj.Unknown,"The variant origin is uncertain based on the available evidence."],[xn.Kkj.Na,"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."]]),va=qi(Mi(),mi());let bd=(()=>{class u extends va{constructor(a){super(),this.cdr=a,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 dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.originEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.originEnum$.next(Array.from(ih.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,me.T)(a=>a.map(h=>h))),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.description=ih.get(a),this.props.extraType="description"):(this.props.description=void 0,this.props.extraType="prompt")})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-origin-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(xu,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,Cd,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,F1,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ee)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.originEnum$))}},dependencies:[M.Sq,Si,to,Ci.L9]})}return u})();const Fu={types:[{name:"origin-select",wrappers:["form-field"],component:bd},{name:"origin-multi-select",wrappers:["form-field"],component:bd,defaultOptions:{props:{label:"Variant Origins",isMultiSelect:!0}}}]};let Ed=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Fu),En,ci,Kr]})}return u})();const Td=["optionTemplates"];function Zl(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,a.hpoId,h),e.npT)}}function A1(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,Zl,4,4,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.hpoId)}}function zd(u,b){1&u&&(e.qex(0),e.DNE(1,A1,3,4,"ng-template",null,1,e.C5r),e.bVm())}function oh(u,b){if(1&u&&(e.qex(0),e.DNE(1,zd,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Md(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Phenotype:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Sd=qi(Mi(),$o());let Au=(()=>{class u extends Sd{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,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:"prompt"}},this.placeholder$=new dn.t(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(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.phenotypeTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.phenotype}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.Osm),e.rXU(xn.$UJ),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-phenotype-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Td,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,oh,3,3,"ng-container",3)(7,Md,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresPhenotype$&&!e.bMT(4,18,_.onRequiresPhenotype$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,Ci.Nj,qe.Di,Wt,tn.b,Ci.L9,Xr.M],changeDetection:0})}return u})();const R1={types:[{name:"phenotype-select",wrappers:["form-field"],component:Au,defaultOptions:{props:{label:"Phenotype"}}},{name:"phenotype-multi-select",wrappers:["form-field"],component:Au,defaultOptions:{props:{isMultiSelect:!0,label:"Phenotypes"}}}]};let Ru=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(R1),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._]})}return u})();var lc=c(4707),Dd=c(6042);const Od=["nz-rate-item",""],rh=u=>({$implicit:u});function ql(u,b){}function Lc(u,b){}function xr(u,b){1&u&&e.nrm(0,"span",4)}const Hh=["ulElement"];function sh(u,b){if(1&u){const a=e.RV6();e.j41(0,"li",2)(1,"div",3),e.bIt("itemHover",function(_){const ee=e.eBV(a).$index,ft=e.XpG();return e.Njj(ft.onItemHover(ee,_))})("itemClick",function(_){const ee=e.eBV(a).$index,ft=e.XpG();return e.Njj(ft.onItemClick(ee,_))}),e.k0s()()}if(2&u){const a=b.$index,h=e.XpG();e.Y8G("ngClass",h.starStyleArray[a]||"")("nzTooltipTitle",h.nzTooltips[a]),e.R7$(),e.Y8G("allowHalf",h.nzAllowHalf)("character",h.nzCharacter)("index",a)}}let Nu=(()=>{class u{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new e.bkB,this.itemClick=new e.bkB}hoverRate(a){this.itemHover.next(a&&this.allowHalf)}clickRate(a){this.itemClick.next(a&&this.allowHalf)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:[2,"allowHalf","allowHalf",e.L39]},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],standalone:!0,features:[e.GFd,e.aNF],attrs:Od,decls:6,vars:8,consts:[["defaultCharacter",""],[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"div",1),e.bIt("mouseover",function(nn){return e.eBV(ee),_.hoverRate(!1),e.Njj(nn.stopPropagation())})("click",function(){return e.eBV(ee),e.Njj(_.clickRate(!1))}),e.DNE(1,ql,0,0,"ng-template",2),e.k0s(),e.j41(2,"div",3),e.bIt("mouseover",function(nn){return e.eBV(ee),_.hoverRate(!0),e.Njj(nn.stopPropagation())})("click",function(){return e.eBV(ee),e.Njj(_.clickRate(!0))}),e.DNE(3,Lc,0,0,"ng-template",2),e.k0s(),e.DNE(4,xr,1,0,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",_.character||ee)("ngTemplateOutletContext",e.eq3(4,rh,_.index)),e.R7$(2),e.Y8G("ngTemplateOutlet",_.character||ee)("ngTemplateOutletContext",e.eq3(6,rh,_.index))}},dependencies:[M.T3,Z.Y3,Z.Dn],encapsulation:2,changeDetection:0})}return u})(),eu=(()=>{class u{get nzValue(){return this._value}set nzValue(a){this._value!==a&&(this._value=a,this.hasHalf=!Number.isInteger(a)&&this.nzAllowHalf,this.hoverValue=Math.ceil(a))}constructor(a,h,_,ee,ft,nn){this.nzConfigService=a,this.ngZone=h,this.renderer=_,this.cdr=ee,this.directionality=ft,this.destroy$=nn,this._nzModuleName="rate",this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new e.bkB,this.nzOnFocus=new e.bkB,this.nzOnHoverChange=new e.bkB,this.nzOnKeyDown=new e.bkB,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(a){const{nzAutoFocus:h,nzCount:_,nzValue:ee}=a;if(h&&!h.isFirstChange()){const ft=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(ft,"autofocus","autofocus"):this.renderer.removeAttribute(ft,"autofocus")}_&&this.updateStarArray(),ee&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent("rate").pipe((0,be.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.ulElement.nativeElement,"focus").pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(a))}),(0,x.R)(this.ulElement.nativeElement,"blur").pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(a))})})}onItemClick(a,h){if(this.nzDisabled)return;this.hoverValue=a+1;const _=h?a+.5:a+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(a,h){this.nzDisabled||((this.hoverValue!==a+1||h!==this.hasHalf)&&(this.hoverValue=a+1,this.hasHalf=h,this.updateStarStyle()),this.nzOnHoverChange.emit(this.hoverValue))}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(a){const h=this.nzValue;a.keyCode===X.LE&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),h!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(a),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((a,h)=>h),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(a=>{const h="ant-rate-star",_=a+1;return{[`${h}-full`]:_this.hoverValue,[`${h}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(a){this.nzValue=a||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Dd.yx),e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(E.dS,8),e.rXU(H.y4))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-rate"]],viewQuery:function(h,_){if(1&h&&e.GBs(Hh,7),2&h){let ee;e.mGM(ee=e.lsd())&&(_.ulElement=ee.first)}},inputs:{nzAllowClear:[2,"nzAllowClear","nzAllowClear",e.L39],nzAllowHalf:[2,"nzAllowHalf","nzAllowHalf",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzCharacter:"nzCharacter",nzCount:[2,"nzCount","nzCount",e.Udg],nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],standalone:!0,features:[e.Jv_([H.y4,{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0}]),e.GFd,e.OA$,e.aNF],decls:4,vars:6,consts:[["ulElement",""],[1,"ant-rate",3,"keydown","mouseleave","ngClass","tabindex"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"itemHover","itemClick","allowHalf","character","index"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"ul",1,0),e.bIt("keydown",function(nn){return e.eBV(ee),_.onKeyDown(nn),e.Njj(nn.preventDefault())})("mouseleave",function(nn){return e.eBV(ee),_.onRateLeave(),e.Njj(nn.stopPropagation())}),e.Z7z(2,sh,2,5,"li",2,e.fX1),e.k0s()}2&h&&(e.AVh("ant-rate-disabled",_.nzDisabled)("ant-rate-rtl","rtl"===_.dir),e.Y8G("ngClass",_.classMap)("tabindex",_.nzDisabled?-1:1),e.R7$(2),e.Dyx(_.starArray))},dependencies:[M.YU,hn.Qt,hn.LH,Nu],encapsulation:2,changeDetection:0})}return(0,lc.Cg)([(0,Dd.H4)()],u.prototype,"nzAllowClear",void 0),(0,lc.Cg)([(0,Dd.H4)()],u.prototype,"nzAllowHalf",void 0),u})(),ku=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[eu,Nu]})}return u})();const Vu={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."},Pa=qi(Mi(),mi()),N1={types:[{name:"rating",wrappers:["form-field"],component:(()=>{class u extends Pa{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 dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.formControl.value&&this.rating$.next(this.formControl.value),Object.entries(Vu).map(([a,h])=>{this.props.hoverText.push(h)}),this.rating$.pipe((0,pn.s)(this)).subscribe(a=>{this.formControl.setValue(a)}),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a&&0!==a?(this.props.description=Vu[a],this.props.extraType="description"):(this.formControl.setValue(void 0),this.props.description=void 0,this.props.extraType="prompt")})}configureStateConnections(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-rating"]],features:[e.Vt3],decls:3,vars:5,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"rate-block"],[3,"ngModelChange","ngModel","nzCount","nzTooltips"]],template:function(h,_){1&h&&(e.nrm(0,"input",0),e.j41(1,"div",1)(2,"nz-rate",2),e.bIt("ngModelChange",function(ft){return _.rating$.next(ft)}),e.k0s()()),2&h&&(e.Y8G("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(2),e.Y8G("ngModel",_.formControl.value)("nzCount",_.props.count)("nzTooltips",_.props.hoverText))},dependencies:[t.me,t.BC,t.l_,t.vS,g.ch,eu],styles:["[_nghost-%COMP%] .rate-block[_ngcontent-%COMP%]{display:inline-block;background-color:#fff;border-radius:2px;padding:2px 4px;margin-top:-4px}[_nghost-%COMP%] nz-rate .anticon{font-size:160%}"],changeDetection:0})}return u})()}]};let ah=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,t.YN,g.qy.forChild(N1),ku,ge.i,En,ci]})}return u})();const Uh=["optionTemplates"];function q2(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s()()),2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a)}}function ep(u,b){1&u&&(e.qex(0),e.DNE(1,q2,3,1,"ng-template",null,1,e.C5r),e.bVm())}function Ko(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s()()}if(2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a.nzValue)}}function wd(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(),e.SpI(" ",a.nzValue," ")}}function ch(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,Ko,3,1,"nz-tag",5)(2,wd,2,1,"ng-container",6),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!a.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",a.props.isMultiSelect)}}const Gh=qi(Mi(),mi());let lh=(()=>{class u extends Gh{constructor(a){super(),this.cdr=a,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 dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.buildEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.placeholder$=new dn.t(this.props.placeholder),this.buildEnum$.next((0,Ei.KF)(xn.KRr).map(a=>a)),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,me.T)(a=>a.map(h=>h)))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-reference-build-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Uh,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,ep,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,ch,3,2,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.buildEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,Si,Ci.L9]})}return u})();const tp={types:[{name:"reference-build-select",wrappers:["form-field"],component:lh},{name:"reference-build-multi-select",wrappers:["form-field"],component:lh,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let uh=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(tp),Gn.T,ge.i,En,ci]})}return u})();const dh=["optionTemplates"];function kr(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function np(u,b){1&u&&(e.qex(0),e.DNE(1,kr,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Yh(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ip={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."}}},hh=qi(Mi(),mi()),xd={types:[{name:"significance-select",wrappers:["form-field"],component:(()=>{class u extends hh{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Significance",required:!0,isMultiSelect:!1,placeholder:"Select Significance",placeholderFn:h=>`Select ${h?h+" ":""} Significance`,requireTypePromptFn:h=>`Select ${h} Type to select its Significance`,tooltip:"Clinical impact of the variant"}},this.significanceEnum$=new dn.t([])}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 dn.t("ERROR: Form state not found"));if(this.placeholder$=new dn.t(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,pn.s)(this)).subscribe(h=>{this.significanceEnum$.next(h)}),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,me.T)(h=>h.map(_=>_)));const a=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[a]?(this.onTypeSelect$=this.state.fields[a],this.onTypeSelect$.pipe((0,so.i)("add"===this.options.formState.formMode?0:1),(0,pn.s)(this)).subscribe(h=>{h?(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,Yi.E)(this.onTypeSelect$),(0,pn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.description=void 0,this.props.extraType="description",this.props.description=ip[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${a} to populate Significance options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-significance-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(dh,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,np,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Yh,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.significanceEnum$))}},dependencies:[M.Sq,Si,to,Ci.L9]})}return u})()}]};let _a=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(xd),En,ci,Kr]})}return u})();var T=c(1427);const d=()=>[0,0];function p(u,b){1&u&&e.nrm(0,"span",9),2&u&&e.Y8G("nzType","loading")}function v(u,b){if(1&u&&(e.qex(0),e.DNE(1,p,1,1,"span",8),e.EFF(2,"\xa0 "),e.j41(3,"span"),e.EFF(4),e.k0s(),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a.showSpinner),e.R7$(3),e.JRh(a.message)}}function C(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.JRh(a.successMessage)}}function O(u,b){1&u&&(e.j41(0,"button",10),e.EFF(1," Add Source "),e.k0s()),2&u&&e.Y8G("disabled",null===b.ngrxLet.citation)}let Q=class B8{constructor(b,a,h,_,ee){this.checkCitation=b,this.addRemoteCitation=a,this.errors=h,this.apollo=_,this.cdr=ee,this.cvcOnCreate=new e.bkB,this.messageOptions={empty:(ft,nn)=>`No ${nn} Source with a citation ID of "${ft}"`,searchCitation:(ft,nn)=>`Searching ${nn} for a citation ID of "${ft}"`,foundCitation:(ft,nn,Rn)=>`Found ${nn} citation "${Rn}" with ID ${ft}`,noCitation:(ft,nn)=>`No ${nn} Source with a citation ID of "${ft}" was found`},this.form=new t.J3({}),this.model={citationId:"",sourceType:xn.tUL.Pubmed},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.citationId$=new dn.t(""),this.sourceType$=new dn.t(xn.tUL.Pubmed),this.addSourceStubMutator=new Ar.E(this.errors),this.fields=[{key:"citationId",props:{hidden:!0}},{key:"sourceType",props:{hidden:!0}}],this.onSubmit$.pipe((0,pn.s)(this)).subscribe(ft=>{console.log("disease-quick-add form model submitted.",ft),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,me.T)(b=>({loading:b.loading,citation:b.data?b.data.remoteCitation:null,model:this.model})),(0,On.M)(b=>{this.citationString=b.citation?b.citation:void 0})),this.citationId$.pipe((0,pn.s)(this)).subscribe(b=>{this.model.sourceType&&this.queryRef.refetch({citationId:b,sourceType:this.model.sourceType})}),this.formMessageDisplay$=this.checkResult$.pipe((0,me.T)(b=>{const a=b.loading,h=b.citation,_=b.model;return a?{message:this.messageOptions.searchCitation(_.citationId,_.sourceType),showSpinner:!0}:a||null===h?a||null!==h?{message:"UNHANDLED MESSAGE STATE",showSpinner:!1}:{message:this.messageOptions.noCitation(_.citationId,_.sourceType),showSpinner:!1}:{message:this.messageOptions.foundCitation(_.citationId,(0,T.A)(_.sourceType),h),showSpinner:!1}}),(0,Oe.Z)({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}},{},b=>{if(console.log("source-quick-add submit data callback",b),b.addRemoteCitation){this.successMessage=`New Source "${this.citationString}" added.`;const a=b.addRemoteCitation.newSource,h=(0,T.A)(this.model.sourceType),_=this.citationString?this.citationString:"NO CITATION",ee={query:is.J1` + query WriteLocalSource($id: Int!) { + source(id: $id) { + id + name + link + citation + citationId + sourceType + } + } + `,data:{source:{__typename:"Source",id:a.id,name:`${h}: ${_}`,link:`sources/${a.id}`,citation:_,citationId:this.model.citationId,sourceType:this.model.sourceType}},variables:{id:a.id}};this.apollo.client.cache.writeQuery(ee)||console.error("source-quick-add.form Source writeQuery failed.",ee),setTimeout(()=>{const nn={id:`Source:${a.id}`,fragment:is.J1` + fragment LinkableSource on Source { + id + name + link + } + `},Rn=this.apollo.client.cache.readFragment(nn);null!==Rn&&this.cvcOnCreate.next(Rn.id)},1e3)}}))}ngOnChanges(b){if(b.cvcSourceType){const a=b.cvcSourceType.currentValue;this.sourceType$.next(a),this.model={...this.model,sourceType:a}}if(b.cvcCitationId){const a=b.cvcCitationId.currentValue;this.citationId$.next(a),this.model={...this.model,citationId:a}}}static#e=this.\u0275fac=function(a){return new(a||B8)(e.rXU(xn.RMT),e.rXU(xn.Z3e),e.rXU(na.N),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:B8,selectors:[["cvc-source-quick-add"]],inputs:{cvcSourceType:"cvcSourceType",cvcCitationId:"cvcCitationId"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:10,vars:11,consts:[["success",""],[4,"ngrxLet"],["entityType","Source",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["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(a,h){if(1&a){const _=e.RV6();e.DNE(0,v,5,2,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,C,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(ft){return e.eBV(_),e.Njj(h.model=ft)}),e.k0s()(),e.j41(8,"nz-col",5),e.DNE(9,O,2,1,"button",7),e.k0s()()()()}if(2&a){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,d)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("ngrxLet",h.checkResult$)}},dependencies:[M.bT,t.qT,t.cb,t.j4,Ci.Nj,g.aF,Kn.aO,di.c,ho.p,Z.Dn,L.Uq,L.e,G.CA,fs.G],changeDetection:0})};Q=(0,vi.Cg)([(0,pn.d)()],Q);const Me=["optionTemplates"],xe=()=>[6,6];function ot(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",10)(1,"nz-select",11),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.sourceType$.next(_))}),e.nrm(3,"nz-option",12)(4,"nz-option",13)(5,"nz-option",14),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("nzOptionHeightPx",28)("ngModel",e.bMT(2,2,a.sourceType$))}}function yt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"PMID:"),e.k0s())}function Dt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"ID:"),e.k0s())}function Bt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"doi.org/"),e.k0s())}function Ht(u,b){if(1&u&&(e.j41(0,"nz-col",15),e.qex(1,16),e.nI1(2,"ngrxPush"),e.DNE(3,yt,2,0,"div",17)(4,Dt,2,0,"div",17)(5,Bt,2,0,"div",17),e.bVm(),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngSwitch",e.bMT(2,4,a.sourceType$)),e.R7$(2),e.Y8G("ngSwitchCase","PUBMED"),e.R7$(),e.Y8G("ngSwitchCase","ASCO"),e.R7$(),e.Y8G("ngSwitchCase","ASH")}}function Xt(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",19),e.j41(1,"span",20),e.EFF(2," ID: "),e.nrm(3,"span",21),e.nI1(4,"highlightTypeahead"),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(3),e.Y8G("innerHtml",e.i5U(4,4,a.citationId.toString(),h),e.npT)}}function Zt(u,b){1&u&&(e.qex(0),e.DNE(1,Xt,5,7,"ng-template",null,3,e.C5r),e.bVm())}function vn(u,b){if(1&u&&(e.qex(0),e.DNE(1,Zt,3,0,"ng-container",18),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Sn(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",22)(1,"cvc-entity-tag",23),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Source:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function ai(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-source-quick-add",24),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()}if(2&u){const a=b.model;e.Y8G("cvcCitationId",a.citationId)("cvcSourceType",a.sourceType)}}function an(u,b){1&u&&(e.j41(0,"button",25),e.EFF(1,"Add a New Source"),e.k0s())}const ti=qi(Mi(),$o());let Jn=(()=>{class u extends ti{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.onModel$=new Un.c,this.defaultSourceType=xn.tUL.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:ee=>`Search ${ee} Sources`},description:"Select Source type, then enter its ID to search Sources"}},this.sourceType$=new dn.t(this.defaultSourceType),this.sourceTypeName$=new dn.t((0,T.A)(this.defaultSourceType)),this.placeholder$=new dn.t(this.defaultOptions.props.placeholders.contextualFn((0,T.A)(this.defaultSourceType))),this.showTypeSelect$=new Un.c}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.initialDescription=this.props.description,this.showTypeSelect$=this.onValueChange$.pipe((0,me.T)(a=>!!(!a||a&&Array.isArray(a)))),this.sourceType$.pipe((0,pn.s)(this)).subscribe(a=>{const h=(0,T.A)(a);this.sourceTypeName$.next(h),this.placeholder$.next(this.props.placeholders.contextualFn(h))}),this.onModel$=(0,po.z)([this.sourceType$,this.onSearch$]).pipe((0,me.T)(([a,h])=>({citationId:h,sourceType:a}))),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{this.props.description=a?void 0:this.initialDescription})}getTypeaheadVarsFn(a,h=xn.tUL.Pubmed){return{partialCitationId:a,sourceType:h}}getTypeaheadResultsFn(a){return a.data.sourceTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.source}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.txm),e.rXU(xn.mww),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-source-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Me,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:21,vars:39,consts:[["selectedTemplate",""],["addSource",""],["addSourceBtn",""],["optionTemplates",""],[1,"select-layout",3,"nzGutter"],["nzFlex","80px",4,"ngIf"],["nzFlex","60px","class","prefix",4,"ngIf"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnModelChange","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcParamName","cvcShowError","cvcDisabled","cvcLoading","cvcAddEntity","cvcAddEntityModel","cvcSelectOpen"],[4,"ngrxLet"],["nzFlex","80px"],["nzSize","default","nzBlock","",3,"ngModelChange","nzOptionHeightPx","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],["nzFlex","60px",1,"prefix"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcCitationId","cvcSourceType"],["type","button"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",4),e.DNE(1,ot,6,4,"nz-col",5),e.nI1(2,"ngrxPush"),e.DNE(3,Ht,6,6,"nz-col",6),e.nI1(4,"ngrxPush"),e.j41(5,"nz-col",7)(6,"cvc-entity-select",8),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.nI1(12,"ngrxPush"),e.nI1(13,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()()(),e.DNE(14,vn,3,3,"ng-container",9)(15,Sn,2,3,"ng-template",null,0,e.C5r)(17,ai,1,2,"ng-template",null,1,e.C5r)(19,an,2,0,"ng-template",null,2,e.C5r)}if(2&h){const ee=e.sdS(16),ft=e.sdS(18);e.Y8G("nzGutter",e.lJ4(38,xe)),e.R7$(),e.Y8G("ngIf",e.bMT(2,20,_.showTypeSelect$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,22,_.showTypeSelect$)),e.R7$(3),e.Y8G("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(7,24,_.placeholder$))("cvcResults",e.bMT(8,26,_.result$))("cvcOptions",e.bMT(9,28,_.selectOption$))("cvcParamName",e.bMT(10,30,_.sourceTypeName$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(11,32,_.isLoading$))("cvcAddEntity",ft)("cvcAddEntityModel",e.bMT(12,34,_.onModel$))("cvcSelectOpen",e.bMT(13,36,_.selectOpen$)),e.R7$(8),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,M.ux,M.e1,t.BC,t.vS,Ci.Nj,Qe.ld,Qe.WI,L.Uq,L.e,qe.Di,Wt,tn.b,Q,Ci.L9,Xr.M],styles:[".prefix[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:right;line-height:28px;color:#999}.select-layout[_ngcontent-%COMP%]{flex-wrap:nowrap}"],changeDetection:0})}return u})();const bi={types:[{name:"source-select",wrappers:["form-field"],component:Jn,defaultOptions:{props:{label:"Source"}}},{name:"source-multi-select",wrappers:["form-field"],component:Jn,defaultOptions:{props:{label:"Sources",isMultiSelect:!0}}}]};let Bi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,g.qy.forChild(bi),Cn.$,Kn.Zw,ue.Sw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Zn.g,Gn.T,Go.P,En,jn,ge.i,Ft._]})}return u})();function nr(u,b){if(1&u&&e.nrm(0,"nz-option",7),2&u){const a=b.$implicit;e.Y8G("nzLabel",a)("nzValue",a)("nzHide",!0)}}function vr(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-select",5),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.DNE(2,nr,1,3,"nz-option",6),e.k0s(),e.bVm()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("formControl",a.formControl)("formlyAttributes",a.field),e.R7$(),e.Y8G("ngForOf",a.formControl.value)}}function uc(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",10),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.EFF(1),e.k0s()}if(2&u){const a=b.ngIf;e.Y8G("nzMode","closeable"),e.R7$(),e.SpI(" ",a," ")}}function Vr(u,b){if(1&u){const a=e.RV6();e.j41(0,"input",12,2),e.bIt("keydown.enter",function(){e.eBV(a);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const a=e.XpG(3);e.Y8G("formControl",a.formControl)("type",a.props.type||"text")("formlyAttributes",a.field)}}function Fa(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number",13,3),e.bIt("keydown.enter",function(){e.eBV(a);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const a=e.XpG(3);e.Y8G("formControl",a.formControl)("formlyAttributes",a.field)}}function Pd(u,b){if(1&u&&(e.qex(0),e.DNE(1,Vr,2,3,"input",11)(2,Fa,2,2,"ng-template",null,1,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG(2);e.R7$(),e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",a)}}function ph(u,b){if(1&u&&(e.DNE(0,uc,2,2,"nz-tag",8),e.nI1(1,"ngrxPush"),e.DNE(2,Pd,4,2,"ng-container",9),e.nI1(3,"ngrxPush")),2&u){const a=e.XpG();e.Y8G("ngIf",e.bMT(1,2,a.tagLabel$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(3,4,a.tagLabel$))}}const Di=qi(Mi(),ba);let _i=(()=>{class u extends Di{constructor(){super(),this.defaultOptions={props:{label:"Enter value"}}}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-tag-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["singleInputField",""],["numberTmp",""],["baseInputTxt",""],["baseInputNum",""],[4,"ngIf","ngIfElse"],["nzMode","tags","nzPlaceHolder","Please select","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"],[3,"nzMode","nzOnClose",4,"ngIf"],[4,"ngIf"],[3,"nzOnClose","nzMode"],["nz-input","",3,"formControl","type","formlyAttributes","keydown.enter",4,"ngIf","ngIfElse"],["nz-input","",3,"keydown.enter","formControl","type","formlyAttributes"],[3,"keydown.enter","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,vr,3,3,"ng-container",4)(1,ph,4,6,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf",_.props.isMultiInput)("ngIfElse",ee)}},dependencies:[M.Sq,M.bT,t.me,t.BC,t.l_,g.ch,F.Sy,Qe.ld,Qe.WI,Gn.s,Ci.L9],changeDetection:0})}return u})();const Ui={types:[{name:"tag-input",wrappers:["form-field"],component:_i,defaultOptions:{modelOptions:{updateOn:"blur"}}},{name:"tag-multi-input",wrappers:["form-field"],component:_i,defaultOptions:{props:{isMultiInput:!0}}}]};let zo=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Ui),G.PQ,F.j,Qe.DH,Gn.T,zi]})}return u})();const zr=()=>[0,0];function dc(u,b){1&u&&e.nrm(0,"span",7)}function ca(u,b){1&u&&e.nrm(0,"span",8)}const dr={name:void 0};let Fo=class $8{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.model=dr,this.form=new t.J3({}),this.options={},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.queryMutator=new Ar.E(this.errors),this.isSubmitting$=new dn.t(!1),this.submitSuccess$=new dn.t(!1),this.submitError$=new dn.t([]),this.addTherapyMutator=new Ar.E(this.errors),this.fields=[{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.name=h}),this.onSubmit$.pipe((0,pn.s)(this)).subscribe(h=>{this.submitTherapy(h)})}submitTherapy(b){if(!b.name)return void console.error("therapy-quick-add form submitTherapy requires model with valid name.");let a=this.addTherapyMutator.mutate(this.query,{name:b.name},{},h=>{console.log("therapy-quick-add submit data callback",h),h.addTherapy&&this.cvcOnCreate.next(h.addTherapy.therapy.id)});a.submitSuccess$.pipe((0,pn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitSuccess$",h),this.submitSuccess$.next(h)}),a.submitError$.pipe((0,pn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitError$",h),this.submitError$.next(h)}),a.isSubmitting$.pipe((0,pn.s)(this)).subscribe(h=>{this.isSubmitting$.next(h)})}static#e=this.\u0275fac=function(a){return new(a||$8)(e.rXU(xn.G4Q),e.rXU(na.N))};static#t=this.\u0275cmp=e.VBU({type:$8,selectors:[["cvc-therapy-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:14,vars:17,consts:[[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["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(a,h){1&a&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return h.onSubmit$.next(h.model)}),e.j41(1,"nz-row",1)(2,"nz-col",2)(3,"formly-form",3),e.bIt("modelChange",function(ee){return h.model=ee}),e.k0s()(),e.j41(4,"nz-col",2)(5,"button",4),e.DNE(6,dc,1,0,"span",5),e.nI1(7,"ngrxPush"),e.DNE(8,ca,1,0,"span",6),e.nI1(9,"ngrxPush"),e.EFF(10," Create Therapy\xa0"),e.j41(11,"i"),e.EFF(12),e.nI1(13,"ngrxPush"),e.k0s()()()()()),2&a&&(e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(16,zr)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(),e.Y8G("ngIf",!e.bMT(7,10,h.isSubmitting$)),e.R7$(2),e.Y8G("ngIf",e.bMT(9,12,h.isSubmitting$)),e.R7$(4),e.JRh(e.bMT(13,14,h.searchString$)))},dependencies:[M.bT,t.qT,t.cb,t.j4,g.aF,Kn.aO,di.c,ho.p,Z.Dn,L.Uq,L.e,Ci.L9],encapsulation:2,changeDetection:0})};Fo=(0,vi.Cg)([(0,pn.d)()],Fo);const Fd=["optionTemplates"];function fh(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"NCIt Code: "),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.EFF(5,"\xa0 "),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,a.ncitId,h),e.npT)}}function ss(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"Aliases: "),e.k0s(),e.j41(3,"em"),e.nrm(4,"span",10),e.nI1(5,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(4),e.Y8G("nzTooltipTitle",a.therapyAliases.join(", "))("innerHtml",e.i5U(5,2,a.therapyAliases.join(", "),h),e.npT)}}function hc(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,fh,6,4,"ng-container",8)(3,ss,6,5,"ng-container",8),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.ncitId),e.R7$(),e.Y8G("ngIf",a.therapyAliases.length>0)}}function la(u,b){1&u&&(e.qex(0),e.DNE(1,hc,4,5,"ng-template",null,2,e.C5r),e.bVm())}function Lu(u,b){if(1&u&&(e.qex(0),e.DNE(1,la,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Ad(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Therapy:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function op(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-therapy-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const F4=qi(Mi(),$o());let rp=(()=>{class u extends F4{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,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:(ee,ft)=>`Select an ${ee} Type to search associated Therapies`}},this.placeholder$=new dn.t(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 a=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholder),this.onRequiresTherapy$&&this.onEntityType$&&(0,po.z)([this.onRequiresTherapy$,this.onEntityType$]).pipe((0,J.F)(),(0,pn.s)(this)).subscribe(([a,h])=>{!a&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated therapies`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):a?(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0):(!a&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&(this.resetField(),console.log("HERE2"))})}getTypeaheadVarsFn(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.therapyTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.therapy}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.f9r),e.rXU(xn.a3n),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-therapy-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Fd,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addTherapy",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcCustomTemplate","cvcDisabled","cvcEntityName","cvcFormControl","cvcFormlyAttributes","cvcLoading","cvcOptions","cvcPlaceholder","cvcResults","cvcSelectMode","cvcShowError","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[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,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(7,Lu,3,3,"ng-container",4)(8,Ad,2,3,"ng-template",null,0,e.C5r)(10,op,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ee=e.sdS(9),ft=e.sdS(11);e.Y8G("cvcAddEntity",ft)("cvcCustomTemplate",ee)("cvcDisabled",_.onRequiresTherapy$&&!e.bMT(1,14,_.onRequiresTherapy$))("cvcEntityName",_.props.entityName)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcLoading",e.bMT(2,16,_.isLoading$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcPlaceholder",e.bMT(4,20,_.placeholder$))("cvcResults",e.bMT(5,22,_.result$))("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcShowError",_.showError)("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,Ci.Nj,hn.LH,qe.Di,Wt,tn.b,Fo,Ci.L9,Xr.M],changeDetection:0})}return u})();const A4={types:[{name:"therapy-select",wrappers:["form-field"],component:rp,defaultOptions:{props:{label:"Therapy"}}},{name:"therapy-multi-select",wrappers:["form-field"],component:rp,defaultOptions:{props:{label:"Therapies",isMultiSelect:!0}}}]};let R4=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(A4),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._]})}return u})();const ap={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},Kh=u=>void 0!==u.sort,Xh=u=>void 0!==u.filter,$4={diseases:xn.wOP.DiseaseName,feature:xn.wOP.FeatureName,therapies:xn.wOP.TherapyName,variant:xn.wOP.VariantName},lp={diseases:"diseaseName",therapies:"therapyName",variant:"variantName",feature:"featureName",aliases:"variantAlias"},H4=["selected","id"];class up{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:"feature",label:"Feature",type:"entity-tag",width:"135px",tag:{truncateLabel:"125px"},sort:{},filter:{inputType:"default",options:[{key:"Filter Feature 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(b,a){return b.getValues().map(_=>({text:(0,ro.u)(_),value:_,byDefault:a===_}))}configureColumnStreams(b){return b.forEach(a=>{const h=a;if(Kh(h)&&(h.sort.changes=new dn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),Xh(h)){const _=h.filter.options.find(ee=>ee.byDefault)?.value;h.filter.changes=new dn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}let Qh=class H8{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,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,k.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Sr.c)(this.onScrollThrottleTime,es.E,{leading:!0,trailing:!0}),(0,On.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Ps.B)(this.onScrollDebounceTime),(0,pn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,me.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,le.J)(),(0,qt.p)(([b,a])=>a{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(a){console.error(a)}})}loadMore(b){const a=this.cvcTableScrollerQueryRef;if(!b&&a)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!a)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&a){const[h,_,ee]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ee)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ee})}}scrollToIndex(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(a){return new(a||H8)(e.rXU(no.CP))};static#t=this.\u0275dir=e.FsC({type:H8,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function j4(u,b){1&u&&e.nrm(0,"span",8)}function Uf(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG();return _.value="",e.Njj(ee.cvcModelChange.next(null))}),e.k0s()}}function U4(u,b){if(1&u&&e.DNE(0,j4,1,0,"span",6)(1,Uf,1,0,"span",7),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function dp(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,U4,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function Jh(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let a;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(a=h.cvcPlaceholder)&&void 0!==a?a:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}Qh=(0,vi.Cg)([(0,pn.d)()],Qh);let G4=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,dp,6,3,"ng-container",3)(1,Jh,3,4,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ee)}},dependencies:[M.bT,t.me,t.BC,t.vS,di.c,Z.Dn,F.Sy,F.tg,F.vN,_e,et]})}return u})();function tu(u,b){if(1&u){const a=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.cvcOptionChange.next({key:ee.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const a=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===a.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===a.value)("cvcAttrValue",a.value)}}let mh=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,tu,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[M.Sq,to,Kn.aO,di.c,ho.p,Z.Dn,Ai.jS,Ai.CU],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_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})}return u})();const Y4=()=>[],hp=()=>({x:"800px",y:"200px"}),Zh=(u,b,a)=>({$implicit:u,config:b,emphasize:a}),W4=(u,b,a,h,_)=>({tagList:u,tag:b,showPopover:a,status:h,emphasize:_}),pp=(u,b)=>({$implicit:u,emphasize:b}),K4=()=>[6,6],fp=u=>({$implicit:u});function X4(u,b){if(1&u&&e.nrm(0,"th",31),2&u){let a;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Gf(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",32),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(2,"span",33),e.EFF(3),e.k0s()()}if(2&u){let a,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function Yf(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function gh(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Q4(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function qh(u,b){if(1&u&&(e.qex(0),e.DNE(1,X4,1,5,"th",28),e.nI1(2,"guardType"),e.DNE(3,Gf,4,12,"th",29),e.nI1(4,"guardType"),e.DNE(5,Yf,2,7,"th",30),e.nI1(6,"guardType"),e.DNE(7,gh,2,7,"th",30),e.nI1(8,"guardType"),e.DNE(9,Q4,2,7,"th",30),e.nI1(10,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,a,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,a,h.colGuards.isDefaultCol))}}function e2(u,b){if(1&u&&(e.qex(0),e.DNE(1,qh,11,20,"ng-container",27),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function k1(u,b){if(1&u&&(e.j41(0,"th",39),e.EFF(1," \xa0 "),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function vh(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-variant-table-filter-input",42),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf,ft=e.XpG().ngIf;return e.Njj(ee.changes.next({key:ft.key,value:_}))}),e.k0s()}if(2&u){const a=e.XpG().ngIf;e.Y8G("cvcInputType",a.filter.inputType)("cvcPlaceholder",a.filter.options[0].key)("cvcModel",a.filter.options[0].value)}}function t2(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,vh,1,3,"cvc-variant-table-filter-input",41),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function Rd(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",43,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(3,"nz-filter-trigger",44,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",45),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-variant-enum-filter-menu",46),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ee=e.eBV(a).ngIf,ft=e.sdS(4);return ee.filter.changes.next(_),e.Njj(ft.nzVisible=!1)}),e.k0s()()()}if(2&u){let a,h,_;const ee=b.ngIf,ft=e.sdS(8);e.Y8G("nzColumnKey",ee.key)("nzWidth",ee.width)("nzAlign",null!==(a=ee.align)&&void 0!==a?a:"left")("nzLeft",ee.fixedLeft||!1)("nzRight",ee.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(2,15,ee.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ee.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",ft)("nzActive",null!==(null==(_=e.bMT(5,17,ee.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ee.key)("cvcFilterOptions",ee.filter.options)("cvcOption",e.bMT(10,19,ee.filter.changes))}}function _h(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",47,4)(2,"nz-filter-trigger",44),e.nI1(3,"ngrxPush"),e.nrm(4,"span",48),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",49)(8,"div",50)(9,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.filter.changes.next({key:ee.key,value:_}))}),e.k0s()()()()()}if(2&u){let a,h;const _=b.ngIf,ee=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ee)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function V1(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf,ft=e.XpG().ngIf;return e.Njj(ee.changes.next({key:ft.key,value:_}))}),e.k0s()}if(2&u){const a=e.XpG().ngIf;e.Y8G("cvcPlaceholder",a.filter.options[0].key)("cvcModel",a.filter.options[0].value)}}function n2(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,V1,1,2,"cvc-variant-table-filter-input",52),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function yh(u,b){if(1&u&&(e.qex(0),e.DNE(1,k1,2,5,"th",35),e.nI1(2,"guardType"),e.DNE(3,t2,2,6,"th",36),e.nI1(4,"guardType"),e.DNE(5,Rd,11,21,"th",37),e.nI1(6,"guardType"),e.DNE(7,_h,10,12,"th",38),e.nI1(8,"guardType"),e.DNE(9,n2,2,6,"th",36),e.nI1(10,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,a,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,a,h.colGuards.isDefaultCol))}}function Nd(u,b){if(1&u&&(e.qex(0),e.DNE(1,yh,11,20,"ng-container",27),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function o2(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",24),e.DNE(2,e2,2,1,"ng-container",25),e.k0s(),e.j41(3,"tr",26),e.DNE(4,Nd,2,1,"ng-container",25),e.k0s()()),2&u){const a=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",a),e.R7$(2),e.Y8G("ngForOf",a)}}function Wf(u,b){if(1&u){const a=e.RV6();e.j41(0,"td",58),e.bIt("nzCheckedChange",function(_){e.eBV(a);const ee=e.XpG(3).$implicit,ft=e.XpG(2);return e.Njj(ft.onRowSelected$.next({id:ee.id,selected:_}))}),e.k0s()}if(2&u){let a;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function r2(u,b){1&u&&e.eu8(0)}function kd(u,b){if(1&u&&(e.qex(0),e.DNE(1,r2,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let a;const h=e.XpG().ngIf,_=e.XpG().ngIf,ee=e.sdS(3),ft=e.sdS(5),nn=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,nn[h])?ee:ft)("ngTemplateOutletContext",e.sMw(6,Zh,nn[h],_,null==(a=e.bMT(3,4,_.filter.changes))?null:a.value))}}function J4(u,b){if(1&u&&(e.qex(0),e.DNE(1,kd,4,10,"ng-container",60),e.bVm()),2&u){const a=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[a])("ngIfElse",h)}}function mp(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",63),e.bVm()),2&u){const a=e.XpG(2),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,W4,h.slice(_.tag.maxTags,h.length),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee))("cvcTagTemplate",ft)("cvcShowFullLabels",!0)}}function Z4(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",62),e.DNE(2,mp,2,9,"ng-container",27),e.bVm()),2&u){const a=e.XpG(),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",ft)("cvcTagListConfig",e.s1E(3,W4,h.slice(0,_.tag.maxTags),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function q4(u,b){if(1&u&&e.DNE(0,Z4,3,9,"ng-container",60),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",a.length>0)("ngIfElse",h)}}function s2(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",64),2&u){let a;const h=b.$implicit,_=b.config,ee=b.emphasize,ft=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ee)("cvcShowPopover",!ft.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(a=null==_.tag?null:_.tag.fullWidth)&&void 0!==a&&a)}}function gp(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function e0(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,J4,2,2,"ng-container",27)(2,q4,1,2,"ng-template",null,8,e.C5r)(4,s2,1,6,"ng-template",null,9,e.C5r)(6,gp,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function t0(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",67),e.nI1(1,"evidenceEnumDisplay")),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[a.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[a.key]))}}function Vd(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function vp(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,t0,2,5,"cvc-attribute-tag",66)(2,Vd,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function a2(u,b){if(1&u&&(e.j41(0,"nz-tag",69),e.nrm(1,"span",70),e.k0s()),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[a.key])}}function n0(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function o0(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,a2,2,1,"nz-tag",68)(2,n0,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function Kf(u,b){1&u&&e.eu8(0)}function Ld(u,b){if(1&u&&(e.qex(0),e.DNE(1,Kf,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let a;const h=b.ngIf,_=e.XpG().ngIf,ee=e.sdS(3),ft=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,h)?ee:ft)("ngTemplateOutletContext",e.l_i(6,pp,h,null==(a=e.bMT(3,4,_.filter.changes))?null:a.value))}}function r0(u,b){1&u&&e.eu8(0)}function Ch(u,b){1&u&&(e.qex(0),e.EFF(1,", "),e.bVm())}function c2(u,b){if(1&u&&(e.qex(0),e.DNE(1,r0,1,0,"ng-container",61)(2,Ch,2,0,"ng-container",27),e.bVm()),2&u){const a=b.$implicit,h=b.last,_=e.XpG(2).emphasize;e.XpG();const ee=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",ee)("ngTemplateOutletContext",e.l_i(3,pp,a,_)),e.R7$(),e.Y8G("ngIf",!h)}}function _p(u,b){if(1&u&&(e.qex(0),e.DNE(1,c2,3,6,"ng-container",25),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",a)}}function s0(u,b){if(1&u&&e.DNE(0,_p,2,1,"ng-container",60),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",a.length>0)("ngIfElse",h)}}function yp(u,b){if(1&u&&(e.nrm(0,"span",72),e.nI1(1,"highlightTypeahead")),2&u){const a=b.$implicit,h=b.emphasize,_=e.XpG().ngIf;e.Y8G("innerHtml",e.i5U(1,1,_.objectKey?a[_.objectKey]:a,h),e.npT)}}function l2(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function Cp(u,b){if(1&u&&(e.j41(0,"td",71),e.DNE(1,Ld,4,9,"ng-container",60)(2,s0,1,2,"ng-template",null,13,e.C5r)(4,yp,2,4,"ng-template",null,14,e.C5r)(6,l2,1,1,"ng-template",null,15,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(7),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function Bd(u,b){if(1&u&&(e.qex(0),e.DNE(1,Wf,1,4,"td",55),e.nI1(2,"guardType"),e.DNE(3,e0,8,4,"td",56),e.nI1(4,"guardType"),e.DNE(5,vp,4,5,"td",56),e.nI1(6,"guardType"),e.DNE(7,o0,4,5,"td",56),e.nI1(8,"guardType"),e.DNE(9,Cp,8,5,"td",57),e.nI1(10,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,a,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,a,h.colGuards.isDefaultCol))}}function bp(u,b){if(1&u&&(e.qex(0),e.DNE(1,Bd,11,20,"ng-container",27),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function bh(u,b){if(1&u&&(e.j41(0,"tr",54),e.DNE(1,bp,2,1,"ng-container",25),e.k0s()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",a)}}function Ep(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,bh,2,1,"ng-template",53),e.k0s())}function Tp(u,b){1&u&&e.nrm(0,"span",77)}function zp(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",78),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG().filter;return _.value="",e.Njj(ee.changes.next({key:ee.key,value:null}))}),e.k0s()}}function Eh(u,b){if(1&u&&e.DNE(0,Tp,1,0,"span",75)(1,zp,1,0,"span",76),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function u2(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",73)(2,"input",74,17),e.bIt("nzFilterChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()(),e.DNE(4,Eh,2,2,"ng-template",null,18,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function Mp(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",79)(1,"nz-input-number",80,17),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()()}if(2&u){const a=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",a.placeholder)("ngModel",a.defaultValue)("nzMin",1)("nzStep",1)}}function Th(u,b){if(1&u&&e.DNE(0,u2,6,3,"ng-container",60)(1,Mp,3,4,"ng-template",null,16,e.C5r),2&u){const a=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===a.inputType||"default"===a.inputType)("ngIfElse",h)}}function d2(u,b){1&u&&(e.j41(0,"nz-row",81)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect Variants"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,K4))}function L1(u,b){1&u&&(e.j41(0,"nz-tag",91),e.nrm(1,"i",92),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function a0(u,b){if(1&u&&(e.j41(0,"nz-tag",94),e.nrm(1,"span",95),e.j41(2,"span",96),e.EFF(3),e.k0s()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,fp,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function Sp(u,b){if(1&u&&(e.j41(0,"nz-tag",94)(1,"span",96)(2,"span",97)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,fp,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function Xf(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.R7$(),e.SpI(" ",a.message," ")}}function zh(u,b){1&u&&e.DNE(0,Xf,2,1,"div",25),2&u&&e.Y8G("ngForOf",b.$implicit)}function h2(u,b){if(1&u&&(e.qex(0),e.DNE(1,a0,4,5,"nz-tag",93)(2,Sp,5,5,"nz-tag",93)(3,zh,1,1,"ng-template",null,20,e.C5r),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",a.query),e.R7$(),e.Y8G("ngIf",a.network)}}function Dp(u,b){if(1&u&&(e.qex(0),e.DNE(1,h2,5,2,"ng-container",27),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a)}}function Op(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",98)(1,"nz-checkbox-group",99),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,a.setPreference$))}}function Ip(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-row",81)(1,"nz-col",82),e.DNE(2,L1,4,0,"nz-tag",83),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",84),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",82),e.DNE(8,Dp,2,1,"ng-container",23),e.k0s(),e.j41(9,"nz-col",82),e.nrm(10,"cvc-table-counts2",85),e.k0s(),e.j41(11,"nz-col",86)(12,"nz-button-group")(13,"button",87),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",88),e.k0s(),e.j41(15,"button",89),e.nrm(16,"span",90),e.k0s()(),e.DNE(17,Op,3,3,"ng-template",null,19,e.C5r),e.k0s()()}if(2&u){const a=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",a)("nzPopoverTrigger","click")}}let fl=class j8{constructor(b,a,h){this.queryGQL=b,this.apollo=a,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=ap,this.onFetchMore$=new V.B,this.onPreferenceChange$=new dn.t([]),this.onResetFilter$=new V.B,this.onRowSelected$=new V.B,this.onScroll$=new dn.t("stop"),this.onSetSelectedRow$=new dn.t(new Set),this.queryError$=new V.B,this.queryRequest$=new V.B,this.queryResult$=new Ni.m(1),this.isFetchMore$=new dn.t(!1),this.noMoreRows$=new dn.t(!1),this.scrollToIndex$=new V.B,this.tableConfig=new up;const _=(0,po.z)(this.tableConfig.getFilterStreams()),ee=(0,po.z)(this.tableConfig.getSortStreams()).pipe((0,qt.p)(ft=>ft.filter(nn=>null!==nn.value).length<=1));this.refetch$=(0,po.z)([ee,_]).pipe((0,me.T)(([ft,nn])=>({query:"refetch",sort:ft,filter:nn}))),this.fetchMore$=this.onFetchMore$.pipe((0,me.T)(ft=>({query:"fetchMore",fetchMore:{...ft}}))),(0,ne.h)(this.refetch$,this.fetchMore$).pipe((0,Ps.B)(50),(0,pn.s)(this)).subscribe(ft=>{const nn=this.getQueryVars(ft);this.queryRef?(this.queryError$.next({}),"refetch"===ft.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(nn).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:nn}).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(nn),this.queryRef.valueChanges.pipe((0,pn.s)(this)).subscribe(Rn=>{this.queryResult$.next(Rn),(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))}),this.loading$=this.queryResult$.pipe((0,$i.E)("loading"),(0,J.F)()),this.connection$=this.queryResult$.pipe((0,$i.E)("data","browseVariants"),(0,qt.p)(fo.kP)),this.pageInfo$=this.connection$.pipe((0,$i.E)("pageInfo"),(0,qt.p)(fo.kP)),this.row$=(0,po.z)([this.connection$.pipe((0,$i.E)("edges"),(0,qt.p)(fo.kP),(0,me.T)(ft=>ft.map(nn=>nn.node))),this.onSetSelectedRow$]).pipe((0,me.T)(([ft,nn])=>ft.map(Rn=>{if(Rn)return{...Rn,variant:{__typename:"Variant",id:Rn.id,name:Rn.name,link:Rn.link},feature:{__typename:"Feature",id:Rn.featureId,name:Rn.featureName,link:Rn.featureLink},selected:nn.has(Rn.id)}}))),this.col$=new dn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,me.T)(ft=>this.getColPrefsFromTableConfig(ft))),this.onPreferenceChange$.pipe((0,Yi.E)(this.col$),(0,me.T)(([ft,nn])=>this.getTableConfigFromColPrefs(ft,nn)),(0,pn.s)(this)).subscribe(ft=>{this.col$.next(ft)}),this.onSetTableFilter$=new dn.t([]),this.onSetTableFilter$.pipe((0,pn.s)(this)).subscribe(ft=>{const nn=this.col$.getValue();ft.forEach(Rn=>{const xi=nn.find(Co=>Co.key===Rn.key);if(void 0!==xi.filter.inputType){const Co=xi.filter.options[0];if(null===Rn.value)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next(Rn);if(Array.isArray(Rn.value)&&0===Rn.value.length)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next({...Rn,value:null});let jo;Array.isArray(Rn.value)?Rn.value.length>0&&(jo=Rn.value[0]):jo=Rn.value;const Ra=xi.filter.typename;if(!Ra||!jo)return void console.error(`variant-manager requires column config '${xi.key}' provide a typename for cvcTablePrefs Input to set its filter`);const Bc=this.getEntityName(Ra,jo);if(!Bc)return;xi.filter.options=[{...Co,value:Bc}],xi.filter.changes.next({...Rn,value:Bc})}else Xh(xi)&&xi.filter.changes.next(Rn)})}),this.onSetTablePref$=new dn.t([]),this.onSetTablePref$.pipe((0,Yi.E)(this.setPreference$),(0,me.T)(([ft,nn])=>{const Rn=[];return ft.forEach(xi=>{let Co=nn.find(jo=>jo.value===xi.value);Co?Rn.push({...Co,...xi}):console.warn(`variant-manager onSetTablePref$ received updated preferences for column '${xi.value}', but a column with that key could not be found.`)}),Rn}),(0,pn.s)(this)).subscribe(ft=>{this.onPreferenceChange$.next(ft)}),this.onRowSelected$.pipe((0,Yi.E)(this.onSetSelectedRow$),(0,pn.s)(this)).subscribe(([ft,nn])=>{ft.selected?nn.add(ft.id):nn.delete(ft.id),this.onSetSelectedRow$.next(nn),this.cvcSelectedIdsChange.next(Array.from(nn))}),this.onScroll$.pipe((0,me.T)(ft=>"stop"!==ft),(0,J.F)(),(0,pn.s)(this)).subscribe(ft=>{this.isScrolling=ft,this.cdr.detectChanges()}),this.onScroll$.pipe((0,qt.p)(ft=>"bottom"===ft),(0,Yi.E)(this.pageInfo$),(0,me.T)(([ft,nn])=>nn),(0,pn.s)(this)).subscribe(ft=>{ft.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,Yi.E)((0,Xo.of)(this.tableConfig.get())),(0,pn.s)(this)).subscribe(([b,a])=>{const h=[];a.forEach(_=>{if(Kh(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),Xh(_)){const ee=_.filter.options.find(ft=>1==ft.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ee||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const a=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...a,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ee=>null!==ee.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?xn.UEL.Asc:xn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let a={};return b.filter&&b.filter.forEach(h=>{a[lp[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),a}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,a){return a.forEach(h=>{if(H4.find(ee=>ee===h.key))return;const _=b.find(ee=>ee.value===h.key);_&&(h.hidden=!_?.checked)}),[...a]}getColPrefsFromTableConfig(b){let a=[];return b.forEach(h=>{H4.find(_=>_===h.key)||a.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),a}getSortColumnFromColKey(b){return $4[b]}getEntityName(b,a){const h={id:`${b}:${a}`,fragment:Gu.J1` + fragment Linkable${b}Entity on ${b} { + id + name + link + }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`variant-manager onSetTableFilter$ could not find cached entity ${b}:${a} to populate input filter`)}trackByIndex(b,a){return a?.id}ngOnChanges(b){if(b.cvcTableSettings){const a=b.cvcTableSettings.currentValue;void 0!==a&&this.onSetTableFilter$.next(a.filters)}if(b.cvcSelectedIds){const a=b.cvcSelectedIds.currentValue,h=new Set;void 0!==a&&a.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(a){return new(a||j8)(e.rXU(xn.ngC),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:j8,selectors:[["cvc-variant-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["staticList",""],["staticValue",""],["emptyDefaultCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[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,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["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,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],[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,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[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"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["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"],[3,"innerHtml"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[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"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["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,"ngModelChange","ngModel"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-card",21)(1,"nz-table",22,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(ft){return e.eBV(_),e.Njj(h.onScroll$.next(ft))})("cvcTableScrollerOnFetch",function(ft){return e.eBV(_),e.Njj(h.onFetchMore$.next(ft))}),e.DNE(8,o2,5,2,"thead",23)(9,Ep,2,0,"tbody",23),e.k0s()(),e.DNE(10,Th,3,2,"ng-template",null,1,e.C5r)(12,d2,4,2,"ng-template",null,2,e.C5r)(14,Ip,19,13,"ng-template",null,3,e.C5r)}if(2&a){const _=e.sdS(13),ee=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ee),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,Y4))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,hp))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[M.Sq,M.bT,M.T3,tn.b,ae,Xs,to,cu,Fs.o,Jc.M,t.me,t.BC,t.vS,Ci.Nj,Kn.aO,Kn.dn,di.c,ho.p,L.Uq,L.e,Z.Dn,F.Sy,F.tg,F.vN,qe.Di,Yo.cK,dt.Ov,ns.wQ,_e,et,gi.L_,no.CP,no.Cc,no.SO,no._4,no.GM,no.IL,no.aj,no.kt,no.CC,no.OL,no.Kg,no.jc,no.oZ,Gn.s,hn.LH,Qh,G4,mh,Er,Ta.pW,Xr.M,Hi,Ci.L9],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})};fl=(0,vi.Cg)([(0,pn.d)()],fl);const c0=()=>[0,0];function l0(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(2),e.JRh(a.message)}}function wp(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.JRh(a.successMessage)}}let p2=class U8{set cvcFeatureId(b){b&&this.featureId$.next(b)}set cvcFeatureName(b){b&&this.featureName$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.featureName$=new dn.t(void 0),this.featureId$=new dn.t(void 0),this.formMessageDisplay$=new dn.t({message:"Variant does not exist, create it?"}),this.queryMutator=new Ar.E(this.errors),this.addVariantMutator=new Ar.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureId",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Variant"}}],this.featureId$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.featureId=h}),this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("variant-quick-add form model submitted.",h),this.submitVariant(h)})}submitVariant(b){b.name&&b.featureId?this.mutationState=this.addVariantMutator.mutate(this.query,{name:b.name,featureId:b.featureId,organizationId:b.organizationId},{},a=>{console.log("variant-quick-add submit data callback",a),a.createVariant&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{a&&a.createVariant&&this.cvcOnCreate.next({id:a.createVariant.variant.id,new:a.createVariant.new})},1e3))}):console.error("variant-quick-add form submitVariant requires model with valid name and featureId.")}ngOnChanges(b){if(b.cvcFeatureId){const a=b.cvcFeatureId.currentValue;this.featureId$.next(a),this.model={...this.model,featureId:a}}b.cvcFeatureName&&this.featureName$.next(b.cvcFeatureName.currentValue)}static#e=this.\u0275fac=function(a){return new(a||U8)(e.rXU(xn.wdL),e.rXU(na.N))};static#t=this.\u0275cmp=e.VBU({type:U8,selectors:[["cvc-variant-quick-add-form"]],inputs:{cvcFeatureId:"cvcFeatureId",cvcFeatureName:"cvcFeatureName",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:8,vars:10,consts:[["success",""],[4,"ngrxLet"],["entityType","Variant",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(a,h){if(1&a){const _=e.RV6();e.DNE(0,l0,3,1,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,wp,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(ft){return e.eBV(_),e.Njj(h.model=ft)}),e.k0s()()()()()}if(2&a){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,c0)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}},dependencies:[fs.G,g.aF,t.qT,t.cb,Ci.Nj,L.Uq,L.e,t.j4],encapsulation:2,changeDetection:0})};p2=(0,vi.Cg)([(0,pn.d)()],p2);var u0=c(5676);const ml=["optionTemplates"],B1=()=>[6,6],d0=(u,b)=>({show:u,hide:b});function h0(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",11)(1,"button",12),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onShowMgrClick$.next())}),e.nrm(2,"span",13),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.EFF(5," Manager "),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(6,d0,e.bMT(3,2,a.showMgr$),!e.bMT(4,4,a.showMgr$)))("nzType","caret-right")}}function p0(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",14)(1,"cvc-variant-manager",15),e.nI1(2,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,1,a.onVid$))}}function f0(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",20),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a.variantAliases.join(", "))("innerHtml",e.i5U(3,2,a.variantAliases.join(", "),h),e.npT)}}function m0(u,b){1&u&&e.EFF(0,"--")}function g0(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",17),e.j41(1,"span",18)(2,"strong"),e.EFF(3,"Aliases:"),e.k0s(),e.DNE(4,f0,4,5,"ng-container",19)(5,m0,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const a=e.sdS(6),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(4),e.Y8G("ngIf",h.variantAliases.length>0)("ngIfElse",a)}}function xp(u,b){1&u&&(e.qex(0),e.DNE(1,g0,7,5,"ng-template",null,2,e.C5r),e.bVm())}function v0(u,b){if(1&u&&(e.qex(0),e.DNE(1,xp,3,0,"ng-container",16),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function _0(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",21)(1,"cvc-entity-tag",22),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Variant:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function y0(u,b){if(1&u&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",a," does not match any existing Variants")}}function C0(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(a);const _=e.XpG(3);return e.Njj(_.createFusionVariantModal())}),e.EFF(1," Open Fusion Variant Builder "),e.k0s()}}function Mh(u,b){1&u&&(e.j41(0,"nz-space",23),e.DNE(1,y0,2,1,"span",25)(2,C0,2,0,"button",26),e.k0s())}function gl(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-variant-quick-add-form",29),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onSelectOrCreate(_))}),e.k0s()}if(2&u){const a=e.XpG().$implicit,h=e.XpG();e.Y8G("cvcSearchString",a)("cvcFeatureId",e.bMT(1,3,h.onFeatureId$))("cvcFeatureName",e.bMT(2,5,h.onFeatureName$))}}function $d(u,b){if(1&u&&e.DNE(0,Mh,3,0,"nz-space",23)(1,gl,3,7,"cvc-variant-quick-add-form",24),2&u){const a=e.XpG();e.vxM("FUSION"==a.selectedFeatureType?0:1)}}const Pp=qi(Mi(),$o());let Sh=(()=>{class u extends Pp{constructor(a,h,_,ee,ft){super(),this.taq=a,this.tq=h,this.featureQuery=_,this.changeDetectorRef=ee,this.modal=ft,this.onModel$=new Un.c,this.defaultOptions={props:{label:"Variant",placeholder:"Search Variants",requireFeature:!0,requireFeaturePlaceholderFn:nn=>`Search ${nn} Variants`,requireFeaturePrompt:"Select a Feature to search its Variants",isMultiSelect:!1,entityName:{singular:"Variant",plural:"Variants"},showManagerBtn:!1,minSearchStrLength:0}},this.onFeatureName$=new dn.t(void 0),this.onVid$=new Ni.m,this.onShowMgrClick$=new V.B,this.showMgr$=this.onShowMgrClick$.pipe((0,Ma.S)((nn,Rn)=>!nn,!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,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.configureStateConnections(),this.onVid$.pipe((0,pn.s)(this)).subscribe(),this.onVid$.next(this.formControl.value),this.onModel$=(0,po.z)([this.onFeatureId$,this.onSearch$]).pipe((0,me.T)(([a,h])=>({featureId:a,name:h}))),this.onValueChange$.pipe((0,Yi.E)(this.onVid$),(0,pn.s)(this)).subscribe(([a,h])=>{Array.isArray(a)&&this.onVid$.next(a)})}configureStateConnections(){if(this.state&&this.props.requireFeature){if(!this.state?.fields.featureId$)return void console.error(`${this.field.id} requireFeature is set, but no featureId$ subject found on state.`);this.onFeatureId$=this.state.fields.featureId$,this.onFeatureId$.pipe((0,pn.s)(this)).subscribe(a=>{this.onFeatureId(a)})}}getTypeaheadVarsFn(a){return{name:a,featureId:this.selectedFeatureId}}getTypeaheadResultsFn(a){return a.data.variantsTypeahead}getTagQueryVarsFn(a){return{variantId:a}}getTagQueryResultsFn(a){return a.data.variant}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}showAddBehavior(a,h){const _=a.toLowerCase();return a.length>=3&&!h.some(ee=>ee.name.toLowerCase()===_)}onSelectOrCreate(a){this.onPopulate$.next(a.id),this.formControl.setValue(a.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(a.new)}onFeatureId(a){this.selectedFeatureId=a,!a&&this.props.requireFeature?(this.resetField(),this.props.description=this.props.requireFeaturePrompt,this.props.placeholder="Select a Variant",this.props.extraType="prompt",this.onFeatureName$.next(void 0)):a&&(this.props.description=void 0,this.props.extraType=void 0,Vs(this.featureQuery.fetch({featureId:a},{fetchPolicy:"cache-first"})).then(({data:h})=>{h?.feature?.name?(this.selectedFeatureType=h.feature.featureType,this.selectedFeature=h.feature,this.props.placeholder=this.props.requireFeature?this.props.requireFeaturePlaceholderFn(h.feature.name):this.props.placeholder,this.onFeatureName$.next(h.feature.name)):console.error(`${this.field.id} could not fetch feature name for Feature:${a}.`)}))}createFusionVariantModal(){const a=this.modal.create({nzTitle:"Add New Fusion Variant",nzContent:u0.aS,nzData:{feature:this.selectedFeature},nzFooter:null,nzWidth:"60%"});a.getContentComponent(),a.afterClose.pipe((0,pn.s)(this)).subscribe(h=>{h.variantId&&(this.onSelectOrCreate({id:h.variantId,new:!0}),this.onVid$.next(h.variantId))})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.duD),e.rXU(xn.y3W),e.rXU(xn.$TJ),e.rXU(e.gRc),e.rXU(oi.N_))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(ml,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:20,vars:41,consts:[["selectedTemplate",""],["addVariant",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","auto"],["nz-tooltip","","nzTooltipTitle","Select a Feature to enable field.",3,"nzTooltipTrigger"],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcAddEntityModel","cvcAddEntityBehavior","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcOptions","cvcSelectOpen","cvcShowError","cvcLoading","cvcParamName"],["nzFlex","50px",4,"ngIf"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],["nzDirection","vertical"],[3,"cvcSearchString","cvcFeatureId","cvcFeatureName"],["nz-typography","",4,"nzSpaceItem"],["nz-button","","nzType","primary",3,"click",4,"nzSpaceItem"],["nz-typography",""],["nz-button","","nzType","primary",3,"click"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureId","cvcFeatureName"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",4)(1,"nz-col",5)(2,"span",6),e.nI1(3,"ngrxPush"),e.j41(4,"cvc-entity-select",7),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()()(),e.DNE(12,h0,6,9,"nz-col",8)(13,p0,3,3,"nz-col",9),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,v0,3,3,"ng-container",10)(16,_0,2,3,"ng-template",null,0,e.C5r)(18,$d,2,1,"ng-template",null,1,e.C5r)}if(2&h){const ee=e.sdS(17),ft=e.sdS(19);e.Y8G("nzGutter",e.lJ4(40,B1)),e.R7$(2),e.Y8G("nzTooltipTrigger",_.props.requireFeature&&!e.bMT(3,22,_.onFeatureId$)?"hover":null),e.R7$(2),e.Y8G("cvcAddEntity",ft)("cvcAddEntityModel",e.bMT(5,24,_.onModel$))("cvcAddEntityBehavior",_.showAddBehavior)("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(6,26,_.result$))("cvcDisabled",_.props.requireFeature&&!e.bMT(7,28,_.onFeatureId$))("cvcOptions",e.bMT(8,30,_.selectOption$))("cvcSelectOpen",e.bMT(9,32,_.selectOpen$))("cvcShowError",_.showError)("cvcLoading",e.bMT(10,34,_.isLoading$))("cvcParamName",e.bMT(11,36,_.onFeatureName$)),e.R7$(8),e.Y8G("ngIf",_.props.showManagerBtn),e.R7$(),e.Y8G("ngIf",e.bMT(14,38,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"],changeDetection:0})}return u})();const Fp={types:[{name:"variant-select",wrappers:["form-field"],component:Sh},{name:"variant-multi-select",wrappers:["form-field"],component:Sh,defaultOptions:{props:{label:"Variants",isMultiSelect:!0}}}]};let Qf=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,jn,Ft._,En,Go.P,ge.i,Tc,Oa,Kr,xl,Ri.F,xs.y,g.qy.forChild(Fp),t.YN,Cn.$,rt.jl,Kn.Zw,G.PQ,L.f3,Z.Y3,F.j,oi.U6,Qe.DH,qe.kT,Kn.Zw,Yo.Ti,dt.IJ,ns.Cu,G.PQ,L.f3,Z.Y3,F.j,ut,gi.MC,no.$G,Gn.T,hn.Qt,qe.kT,oi.U6,on.pc,t.X1]})}return u})();e.wjB(Sh,function(){return[M.YU,M.Sq,M.bT,Wt,tn.b,Ci.Nj,Kn.aO,di.c,ho.p,L.Uq,L.e,Z.Dn,qe.Di,hn.LH,on.U5,on.Dq,fl,p2]},function(){return[Xr.M,Ci.L9]});const b0=["optionTemplates"];function Jf(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,a.soid,h),e.npT)}}function f2(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,Jf,4,4,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.soid)}}function m2(u,b){1&u&&(e.qex(0),e.DNE(1,f2,3,4,"ng-template",null,1,e.C5r),e.bVm())}function Zf(u,b){if(1&u&&(e.qex(0),e.DNE(1,m2,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function qf(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","VariantType:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Ap=qi(Mi(),$o());let Rp=(()=>{class u extends Ap{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,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.'}},this.placeholder$=new dn.t(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(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.variantTypeTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.variantType}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(xn.Rqb),e.rXU(xn.q7o),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(b0,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:8,vars:19,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(5,Zf,3,3,"ng-container",3)(6,qf,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,11,_.placeholder$))("cvcResults",e.bMT(2,13,_.result$))("cvcOptions",e.bMT(3,15,_.selectOption$))("cvcShowError",_.showError)("cvcLoading",e.bMT(4,17,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,Ci.Nj,qe.Di,Wt,tn.b,Ci.L9,Xr.M],changeDetection:0})}return u})();const E0={types:[{name:"variant-type-select",wrappers:["form-field"],component:Rp,defaultOptions:{props:{label:"Variant Type"}}},{name:"variant-type-multi-select",wrappers:["form-field"],component:Rp,defaultOptions:{props:{isMultiSelect:!0,label:"Variant Types"}}}]};let T0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(E0),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,on.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._]})}return u})(),Np=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,li,yr,Fr,ds,$n,Eo,Ne,Hc,Ys,wi,Ha,Cc,Wi,Ec,Wo,u1,X1,rd,Iu,Bh,_d,P1,Ed,Ru,ah,uh,_a,Bi,zo,R4,Qf,T0]})}return u})();const kp=()=>[6,6];function z0(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.SpI(" ",a.props.addFormTitle,"\n")}}let g2=class G8 extends g.cm{constructor(){super(),this.contentTemplate$=new Ni.m}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.`)}static#e=this.\u0275fac=function(a){return new(a||G8)};static#t=this.\u0275cmp=e.VBU({type:G8,selectors:[["cvc-add-entity-form-wrapper"]],features:[e.Vt3],decls:10,vars:7,consts:[["fieldComponent",""],["titleTemplate",""],[3,"nzGutter"],["nzFlex","auto"],["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"]],template:function(a,h){if(1&a&&(e.j41(0,"nz-row",2)(1,"nz-col",3),e.eu8(2,null,0),e.k0s(),e.j41(4,"nz-col",4)(5,"button",5),e.nI1(6,"ngrxPush"),e.nrm(7,"span",6),e.k0s()()(),e.DNE(8,z0,1,1,"ng-template",null,1,e.C5r)),2&a){const _=e.sdS(9);e.Y8G("nzGutter",e.lJ4(6,kp)),e.R7$(5),e.Y8G("disabled",null==h.field.props?null:h.field.props.disabled)("nzPopoverTitle",_)("nzPopoverContent",e.bMT(6,4,h.contentTemplate$))}},dependencies:[Kn.aO,di.c,ho.p,gi.L_,Z.Dn,L.Uq,L.e,Ci.L9],styles:[".add-button[_ngcontent-%COMP%]{font-size:24px;color:#cfcfdf}"],changeDetection:0})};g2=(0,vi.Cg)([(0,pn.d)()],g2);const e3={wrappers:[{name:"add-entity-form",component:g2}]};let t3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,g.qy.forChild(e3),Kn.Zw,gi.MC,Z.Y3,L.f3]})}return u})();function M0(u,b){1&u&&e.nrm(0,"formly-field",2),2&u&&e.Y8G("field",b.$implicit)}const v2={size:"default"},Vp={wrappers:[{name:"form-card",component:(()=>{class u extends g.cm{get errorState(){return this.showError?"error":""}constructor(){super(),this.wrapperOptions={...v2}}ngOnInit(){this.props.formCardOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formCardOptions})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-card"]],features:[e.Vt3],decls:2,vars:3,consts:[[3,"nzTitle","nzSize"],[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-card",0),e.DNE(1,M0,1,1,"formly-field",1),e.k0s()),2&h){let ee;e.Y8G("nzTitle",_.wrapperOptions.title)("nzSize",null!==(ee=_.wrapperOptions.size)&&void 0!==ee?ee:"default"),e.R7$(),e.Y8G("ngForOf",_.field.fieldGroup)}},dependencies:[M.Sq,g.ac,Yo.cK]})}return u})()}]};let i3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,g.qy.forChild(Vp),L.f3,Yo.Ti,dt.IJ]})}return u})();const S0={wrappers:[{name:"form-footer",component:(()=>{class u extends g.cm{ngOnInit(){}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-footer"]],features:[e.Vt3],decls:4,vars:0,consts:[["fieldComponent",""],[1,"form-footer"],["nzSpan","24",1,"submit-col"]],template:function(h,_){1&h&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s()())},dependencies:[L.Uq,L.e],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})}return u})()}]};let Lp=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,L.f3,g.qy.forChild(S0)]})}return u})();var D0=c(2242),Bp=c(2e3),_2=c(9541);let r3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,L.f3,Yo.Ti,_2.hM,Bp.WF,Hr.rD,Gn.T,qe.kT,Re.s]})}return u})(),s3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Kn.Zw,aa.Yb,ns.Cu]})}return u})();var O0=c(5312);const X8={VALID:"success",INVALID:"error",PENDING:"processing",DISABLED:"default"};let a3=(()=>{class u{constructor(){this.tagColor="default"}set cvcFormControlStatus(a){this._status=a,this.tagColor=a?X8[a]:"default"}get cvcFormControlStatus(){return this._status}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-status-tag"]],inputs:{cvcFormControlStatus:"cvcFormControlStatus"},decls:3,vars:4,consts:[[3,"nzColor"]],template:function(h,_){1&h&&(e.j41(0,"nz-tag",0),e.EFF(1),e.nI1(2,"lowercase"),e.k0s()),2&h&&(e.Y8G("nzColor",_.tagColor),e.R7$(),e.SpI(" ",_.cvcFormControlStatus?e.bMT(2,2,_.cvcFormControlStatus):"UNKNOWN","\n"))},dependencies:[Gn.s,M.GH]})}return u})();const jd=(u,b)=>({key:u,ctrl:b});function c3(u,b){if(1&u&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).ctrl;e.R7$(),e.SpI(" ",a.value," ")}}function l3(u,b){1&u&&(e.j41(0,"span",9),e.EFF(1," undefined "),e.k0s())}function u3(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.EFF(3),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.DNE(5,c3,2,1,"span",6)(6,l3,2,0,"span",7),e.k0s()(),e.j41(7,"nz-list-item-extra"),e.nrm(8,"cvc-form-status-tag",8),e.k0s()()),2&u){const a=e.XpG(),h=a.ctrl,_=a.key;e.R7$(3),e.SpI(" ",_," "),e.R7$(2),e.Y8G("ngIf",h.value),e.R7$(),e.Y8G("ngIf",!h.value),e.R7$(2),e.Y8G("cvcFormControlStatus",h.status)}}function I0(u,b){}function d3(u,b){if(1&u&&e.DNE(0,I0,0,0,"ng-template",12),2&u){const a=b.$implicit;e.XpG(3);const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,jd,a.key,a.value))}}function h3(u,b){if(1&u&&(e.j41(0,"strong"),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).key;e.R7$(),e.JRh(a)}}function p3(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-card",10)(2,"nz-list",11),e.DNE(3,d3,1,5,null,5),e.nI1(4,"keyvalue"),e.k0s()(),e.DNE(5,h3,2,1,"ng-template",null,2,e.C5r),e.k0s()),2&u){const a=e.XpG(),h=a.ctrl,_=a.key;e.R7$(),e.Y8G("nzTitle",_),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,2,h.controls))}}function f3(u,b){if(1&u&&e.DNE(0,u3,9,4,"nz-list-item",6)(1,p3,7,4,"nz-list-item",6),2&u){const a=b.ctrl;e.Y8G("ngIf",!a.controls),e.R7$(),e.Y8G("ngIf",a.controls)}}function m3(u,b){}function g3(u,b){if(1&u&&e.DNE(0,m3,0,0,"ng-template",12),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,jd,a.key,a.value))}}function $p(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-list",4),e.DNE(2,f3,2,2,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(4,g3,1,5,null,5),e.nI1(5,"keyvalue"),e.bVm()),2&u){const a=b.ngIf;e.R7$(4),e.Y8G("ngForOf",e.bMT(5,1,a.controls))}}function Q8(u,b){1&u&&e.EFF(0," No AbstractFormControl provided. ")}let J8=(()=>{class u{set cvcAbstractControl(a){if(!a)throw new Error("cvc-form-debug-field-list requires valid cvcFormControl Input.");this._cvcFormControl=a,this.formControl=a}get cvcFormControl(){return this._cvcFormControl}constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-debug-field-list"]],inputs:{cvcAbstractControl:"cvcAbstractControl"},decls:3,vars:2,consts:[["noFormControl",""],["ctrlTemplateRef",""],["cardExtra",""],[4,"ngIf","ngIfElse"],["nzSize","small"],[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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,_){if(1&h&&e.DNE(0,$p,6,3,"ng-container",3)(1,Q8,1,0,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf",_.formControl)("ngIfElse",ee)}},dependencies:[M.Sq,M.bT,M.T3,Yo.cK,Hr.eE,Hr.lQ,Hr.qx,Hr.mf,Hr.YU,Hr.$2,a3,M.lG],styles:["[_nghost-%COMP%] nz-card .ant-card-body{padding:6px 0}"]})}return u})();function Hp(u,b){if(1&u&&(e.qex(0),e.nrm(1,"ngx-json-viewer",9),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("json",a.watchModel)}}function Z8(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-descriptions",10)(2,"nz-descriptions-item",11),e.nrm(3,"cvc-form-status-tag",12),e.k0s(),e.j41(4,"nz-descriptions-item",13),e.EFF(5),e.k0s(),e.j41(6,"nz-descriptions-item",14),e.EFF(7),e.k0s(),e.j41(8,"nz-descriptions-item",15),e.EFF(9),e.k0s(),e.j41(10,"nz-descriptions-item",16),e.EFF(11),e.k0s(),e.j41(12,"nz-descriptions-item",17),e.EFF(13),e.k0s()(),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("cvcFormControlStatus",null==a.cvcForm?null:a.cvcForm.status),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.pending," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.touched," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.valid," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.dirty," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.enabled," ")}}function q8(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-form-debug-field-list",18),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcAbstractControl",a.cvcForm)}}function em(u,b){1&u&&(e.qex(0),e.EFF(1," State Content "),e.bVm())}function tm(u,b){if(1&u&&(e.j41(0,"nz-row")(1,"nz-col",19),e.EFF(2," Form Details "),e.k0s(),e.j41(3,"nz-col",20),e.nrm(4,"cvc-form-status-tag",12),e.k0s()()),2&u){const a=e.XpG();e.R7$(4),e.Y8G("cvcFormControlStatus",null==a.cvcForm?null:a.cvcForm.status)}}let w0=class Y8{constructor(b){this.cdr=b,this.selectedIndex=0}ngOnInit(){if(!this.cvcForm)throw new Error("cvc-form-debug requires valid cvcForm Input.");this.valueChange$=new dn.t(this.cvcForm.value),this.statusChange$=new dn.t(this.cvcForm.status),this.formChange$=fr([this.statusChange$,this.valueChange$]),this.watchModel=this.cvcModel,this.subscriptions=[this.cvcForm.valueChanges.subscribe(b=>{this.watchModel={...this.cvcModel},this.valueChange$.next(b)}),this.cvcForm.statusChanges.subscribe(b=>{this.statusChange$.next(b)}),this.formChange$.subscribe(b=>{this.cdr.detectChanges()})]}static#e=this.\u0275fac=function(a){return new(a||Y8)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:Y8,selectors:[["cvc-form-debug"]],inputs:{cvcForm:"cvcForm",cvcModel:"cvcModel"},decls:14,vars:7,consts:[["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzTitle"],["nzSize","small",3,"nzSelectedIndexChange","nzSelectedIndex"],["nzTitle","Model"],["nzTitle","Controls"],["nzTitle","State"],["nzTitle","Form Status"],[3,"ngSwitch"],[4,"ngSwitchCase"],[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(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-card",1)(1,"nz-card-tab")(2,"nz-tabset",2),e.mxI("nzSelectedIndexChange",function(ft){return e.eBV(_),e.DH7(h.selectedIndex,ft)||(h.selectedIndex=ft),e.Njj(ft)}),e.nrm(3,"nz-tab",3)(4,"nz-tab",4)(5,"nz-tab",5)(6,"nz-tab",6),e.k0s()(),e.qex(7,7),e.DNE(8,Hp,2,1,"ng-container",8)(9,Z8,14,7,"ng-container",8)(10,q8,2,1,"ng-container",8)(11,em,2,0,"ng-container",8),e.bVm(),e.k0s(),e.DNE(12,tm,5,1,"ng-template",null,0,e.C5r)}if(2&a){const _=e.sdS(13);e.Y8G("nzTitle",_),e.R7$(2),e.R50("nzSelectedIndex",h.selectedIndex),e.R7$(5),e.Y8G("ngSwitch",h.selectedIndex),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2)}},dependencies:[M.ux,M.e1,L.Uq,L.e,Yo.cK,Yo.RO,_2.JZ,_2.rE,Bp.xA,Bp.gr,Re.J,J8,a3],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})};w0=(0,vi.Cg)([(0,pn.d)({arrayName:"subscriptions"})],w0);const v3=()=>[8,8];function y2(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"cvc-form-debug",5),e.k0s()),2&u){const a=e.XpG();e.Y8G("nzSpan",8),e.R7$(),e.Y8G("cvcForm",a.form)("cvcModel",a.model)}}let b2=class W8 extends g.cm{constructor(){super()}get errorState(){return this.showError?"error":""}ngOnInit(){this.props.showDevPanel=!O0.c.production&&(this.props.showDevPanel||false)}static#e=this.\u0275fac=function(a){return new(a||W8)};static#t=this.\u0275cmp=e.VBU({type:W8,selectors:[["cvc-form-layout-wrapper"]],features:[e.Vt3],decls:5,vars:4,consts:[["fieldComponent",""],[3,"nzGutter"],[1,"form-col",3,"nzSpan"],["class","status-col",3,"nzSpan",4,"ngIf"],[1,"status-col",3,"nzSpan"],[3,"cvcForm","cvcModel"]],template:function(a,h){1&a&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s(),e.DNE(4,y2,2,3,"nz-col",3),e.k0s()),2&a&&(e.Y8G("nzGutter",e.lJ4(3,v3)),e.R7$(),e.Y8G("nzSpan",h.props.showDevPanel?16:24),e.R7$(3),e.Y8G("ngIf",h.props.showDevPanel))},dependencies:[M.bT,L.Uq,L.e,w0],changeDetection:0})};b2=(0,vi.Cg)([(0,pn.d)({arrayName:"subscriptions"})],b2);const x0={wrappers:[{name:"form-layout",component:b2}]};let P0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,g.qy.forChild(x0),Kn.Zw,Yo.Ti,Z.Y3,Gn.T,_2.hM,gi.MC,Hr.rD,L.f3,D0.i,s3,r3,Re.s]})}return u})();function F0(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){let a;const h=b.$implicit,_=e.XpG(2);e.Y8G("nzSpan",null!==(a=_.wrapperOptions.span)&&void 0!==a?a:null),e.R7$(),e.Y8G("field",h)}}function _3(u,b){if(1&u&&e.DNE(0,F0,2,2,"nz-col",3),2&u){const a=e.XpG();e.Y8G("ngForOf",a.field.fieldGroup)}}function A0(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const a=b.$implicit,h=e.XpG(3);e.Y8G("nzFlex",h.wrapperOptions.flex),e.R7$(),e.Y8G("field",a)}}function Ud(u,b){if(1&u&&(e.qex(0),e.DNE(1,A0,2,2,"nz-col",7),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function Aa(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let a,h,_,ee,ft,nn;const Rn=b.$implicit,xi=e.XpG(3);e.Y8G("nzXs",null!==(a=xi.wrapperOptions.responsive.xs)&&void 0!==a?a:null)("nzSm",null!==(h=xi.wrapperOptions.responsive.sm)&&void 0!==h?h:null)("nzMd",null!==(_=xi.wrapperOptions.responsive.md)&&void 0!==_?_:null)("nzLg",null!==(ee=xi.wrapperOptions.responsive.lg)&&void 0!==ee?ee:null)("nzXl",null!==(ft=xi.wrapperOptions.responsive.xl)&&void 0!==ft?ft:null)("nzXXl",null!==(nn=xi.wrapperOptions.responsive.xxl)&&void 0!==nn?nn:null),e.R7$(),e.Y8G("field",Rn)}}function ya(u,b){if(1&u&&(e.qex(0),e.DNE(1,Aa,2,7,"nz-col",9),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function R0(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){const a=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzSpan",_.wrapperOptions.spanIndexed[h]),e.R7$(),e.Y8G("field",a)}}function nm(u,b){if(1&u&&(e.qex(0),e.DNE(1,R0,2,2,"nz-col",3),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function y3(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let a,h,_,ee,ft,nn;const Rn=b.$implicit,xi=b.index,Co=e.XpG(3);e.Y8G("nzXs",null!==(a=Co.wrapperOptions.responsiveIndexed[xi].xs)&&void 0!==a?a:null)("nzSm",null!==(h=Co.wrapperOptions.responsiveIndexed[xi].sm)&&void 0!==h?h:null)("nzMd",null!==(_=Co.wrapperOptions.responsiveIndexed[xi].md)&&void 0!==_?_:null)("nzLg",null!==(ee=Co.wrapperOptions.responsiveIndexed[xi].lg)&&void 0!==ee?ee:null)("nzXl",null!==(ft=Co.wrapperOptions.responsiveIndexed[xi].xl)&&void 0!==ft?ft:null)("nzXXl",null!==(nn=Co.wrapperOptions.responsiveIndexed[xi].xxl)&&void 0!==nn?nn:null),e.R7$(),e.Y8G("field",Rn)}}function im(u,b){if(1&u&&(e.qex(0),e.DNE(1,y3,2,7,"nz-col",9),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function om(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const a=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzFlex",_.wrapperOptions.flexIndexed[h]),e.R7$(),e.Y8G("field",a)}}function N0(u,b){if(1&u&&(e.qex(0),e.DNE(1,om,2,2,"nz-col",7),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function k0(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ud,2,1,"ng-container",6)(2,ya,2,1,"ng-container",6)(3,nm,2,1,"ng-container",6)(4,im,2,1,"ng-container",6)(5,N0,2,1,"ng-container",6),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",a.wrapperOptions.flex),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.responsive),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.spanIndexed),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.responsiveIndexed),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.flexIndexed)}}const rm={gutter:[8,8],span:24},Up={wrappers:[{name:"form-row",component:(()=>{class u extends g.cm{constructor(){super(),this.wrapperOptions={...rm},this.topMargin="0"}ngOnInit(){this.props.formRowOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formRowOptions}),this.topMargin=Array.isArray(this.wrapperOptions.gutter)?this.wrapperOptions.gutter[1]>0?this.wrapperOptions.gutter[1]/2+"px":"0":this.wrapperOptions.gutter&&this.wrapperOptions.gutter>0?this.wrapperOptions.gutter+"px":"0"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-row"]],features:[e.Vt3],decls:5,vars:4,consts:[["defaultCol",""],[1,"form-row-wrapped",3,"nzGutter"],[4,"ngIf","ngIfElse"],[3,"nzSpan",4,"ngFor","ngForOf"],[3,"nzSpan"],[3,"field"],[4,"ngIf"],[3,"nzFlex",4,"ngFor","ngForOf"],[3,"nzFlex"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"]],template:function(h,_){if(1&h&&(e.j41(0,"div")(1,"nz-row",1),e.DNE(2,_3,1,1,"ng-template",null,0,e.C5r)(4,k0,6,5,"ng-container",2),e.k0s()()),2&h){let ee;const ft=e.sdS(3);e.BMQ("style","margin-top: "+_.topMargin,e.$dS),e.R7$(),e.Y8G("nzGutter",null!==(ee=_.wrapperOptions.gutter)&&void 0!==ee?ee:null),e.R7$(3),e.Y8G("ngIf",_.wrapperOptions.flex||_.wrapperOptions.flexIndexed||_.wrapperOptions.spanIndexed||_.wrapperOptions.responsive||_.wrapperOptions.responsiveIndexed)("ngIfElse",ft)}},dependencies:[M.Sq,M.bT,L.Uq,L.e,g.ac],changeDetection:0})}return u})()}]};let Gp=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,G.PQ,L.f3,g.qy.forChild(Up)]})}return u})(),V0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,P0,i3,Lp,En,Gp,t3]})}return u})(),Gd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({providers:[{provide:g.hL,multi:!0,useFactory:ke,deps:[r.nX]}],imports:[g.qy.forRoot(U),t.X1,G.PQ,Pe,V0,Re.s,t.X1,g.qy,Pe,G.PQ,V0,Np]})}return u})()},5676:(Rt,De,c)=>{c.d(De,{UH:()=>ne,aS:()=>Oe,kf:()=>J,t_:()=>be});var t=c(1635),r=c(3953),g=c(9417),e=c(9145),M=c(8524),G=c(177),L=c(8927),B=c(513),A=c(1188),w=c(3617),I=c(9894),F=c(1226),X=c(2096),V=c(6912),x=c(4222);const ne=[{label:"+",value:e.OP3.Positive},{label:"-",value:e.OP3.Negative}],J=he=>!he.value||/^\d+$/.test(he.value),be=he=>!he.value||/ENST\d{11}\.\d{1,2}/.test(he.value);let Oe=class K8{#e;constructor(we,me){this.query=we,this.onVariantSelected=new r.bkB,this.#e=(0,r.WQX)(X.J9),this.nzModalData=(0,r.WQX)(X.or),this.layout="vertical",this.selectOrCreateFusionMutator=new F.E(me),this.form=new g.J3({}),this.model={fivePrimeTranscript:void 0,fivePrimeExonEnd:void 0,fivePrimeOffset:void 0,fivePrimeOffsetDirection:void 0,threePrimeTranscript:void 0,threePrimeExonStart:void 0,threePrimeOffsetDirection:void 0,ensemblVersion:void 0,referenceBuild:void 0,organizationId:void 0},this.options={};let de=!1,H=!1;if("Fusion"==this.nzModalData.feature?.featureInstance.__typename){const z=this.nzModalData.feature.featureInstance;de=z.fivePrimePartnerStatus!=e.hBv.Known,H=z.threePrimePartnerStatus!=e.hBv.Known}this.config=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:`New Fusion Variant for ${this.nzModalData.feature?.name}`}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"referenceBuild",type:"reference-build-select",props:{required:!0}},{key:"ensemblVersion",type:"base-input",validators:{nccnVersionNumber:{expression:z=>!z.value||/^\d{2,3}$/.test(z.value),message:(z,Z)=>`"${Z.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)",required:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"fivePrimeTranscript",type:"base-input",props:{label:"5' Transcript",required:!de,disabled:de,tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected"},validators:{isTranscriptId:{expression:be,message:"5' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"fivePrimeExonEnd",type:"base-input",validators:{isNumeric:{expression:J,message:"5' exon must be numeric"}},props:{label:"5' End Exon",required:!de,disabled:de,tooltip:"The exon number counted from the 5\u2019 end of the transcript."}},{key:"fivePrimeOffset",type:"base-input",validators:{isNumeric:{expression:J,message:"5' exon offset must be numeric"}},props:{label:"5' Exon Offset",tooltip:"A value representing the offset from the segment boundary.",required:!1,disabled:de}},{key:"fivePrimeOffsetDirection",type:"base-select",props:{label:"5' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"5' Offset Direction",options:ne,multiple:!1},expressions:{"props.disabled":z=>!z.model.fivePrimeOffset,"props.required":z=>!!z.model.fivePrimeOffset}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"threePrimeTranscript",type:"base-input",props:{required:!H,disabled:H,label:"3' Transcript",tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected"},validators:{isTranscriptId:{expression:be,message:"5' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"threePrimeExonStart",type:"base-input",validators:{isNumeric:{expression:J,message:"3' exon must be numeric"}},props:{label:"3' Start Exon",tooltip:"The exon number counted from the 3\u2019 end of the transcript.",required:!H,disabled:H}},{key:"threePrimeOffset",type:"base-input",validators:{isNumeric:{expression:J,message:"3' exon must be numeric"}},props:{label:"3' Exon Offset",disabled:H,required:!1,tooltip:"A value representing the offset from the segment boundary."}},{key:"threePrimeOffsetDirection",type:"base-select",props:{label:"3' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"3' Offset Direction",options:ne,multiple:!1},expressions:{"props.disabled":z=>!z.model.threePrimeOffset,"props.required":z=>!!z.model.threePrimeOffset}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Create Fusion Variant",align:"right"}}]}]}]}]}modelChange(we){we&&(this.model.fivePrimeOffset||(this.model={...this.model,fivePrimeOffsetDirection:void 0}),this.model.threePrimeOffset||(this.model={...this.model,threePrimeOffsetDirection:void 0}))}submitFusion(we){const me=H=>{if(H)return+H},de=this.nzModalData.feature?.id;if(we&&de){const H={fivePrimeTranscript:we.fivePrimeTranscript,fivePrimeExonEnd:me(we.fivePrimeExonEnd),fivePrimeOffset:me(we.fivePrimeOffset),fivePrimeOffsetDirection:we.fivePrimeOffsetDirection,threePrimeTranscript:we.threePrimeTranscript,threePrimeExonStart:me(we.threePrimeExonStart),threePrimeOffset:me(we.threePrimeOffset),threePrimeOffsetDirection:we.threePrimeOffsetDirection,referenceBuild:we.referenceBuild,ensemblVersion:+we.ensemblVersion};this.mutationState=this.selectOrCreateFusionMutator.mutate(this.query,{organizationId:we.organizationId,featureId:de,coordinates:H},{},z=>{if(z.createFusionVariant?.variant.id){const Z=z.createFusionVariant.variant.id;this.onVariantSelected.next(Z),this.#e&&this.#e.destroy({variantId:Z})}})}}static#t=this.\u0275fac=function(me){return new(me||K8)(r.rXU(e.j8M),r.rXU(x.N))};static#n=this.\u0275cmp=r.VBU({type:K8,selectors:[["cvc-fusion-variant-select-form"]],outputs:{onVariantSelected:"onVariantSelected"},standalone:!0,features:[r.aNF],decls:2,vars:6,consts:[["nz-form","",3,"ngSubmit","nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(me,de){1&me&&(r.j41(0,"form",0),r.bIt("ngSubmit",function(){return de.submitFusion(de.model)}),r.j41(1,"formly-form",1),r.bIt("modelChange",function(z){return de.modelChange(z)}),r.k0s()()),2&me&&(r.Y8G("nzLayout",de.layout)("formGroup",de.form),r.R7$(),r.Y8G("form",de.form)("fields",de.config)("model",de.model)("options",de.options))},dependencies:[G.MD,g.X1,g.qT,g.cb,g.j4,L.PQ,L.CA,B.Zw,w.$,X.U6,A.iI,M.qy,M.aF,V.l],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})};Oe=(0,t.Cg)([(0,I.d)()],Oe)},5741:(Rt,De,c)=>{function t(B){let A={value:void 0,unset:void 0};return B&&B.trim().length>0?A.value=B.trim():A.unset=!0,A}function r(B){let A={value:void 0,unset:void 0};return void 0!==B?A.value=B:A.unset=!0,A}function g(B){return B?+B:void 0}c.d(De,{Kd:()=>L,cD:()=>e,pz:()=>r,q2:()=>t,tV:()=>g});var e=function(B){return B[B.NotApplicable=0]="NotApplicable",B[B.NoneFound=1]="NoneFound",B[B.Found=2]="Found",B}(e||{});const L=[{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"}]},9145:(Rt,De,c)=>{c.d(De,{$Ni:()=>we,$Pl:()=>cr,$TJ:()=>Q1,$UJ:()=>Vl,$Vg:()=>S1,$pU:()=>ja,$qW:()=>ks,$rM:()=>lr,AsH:()=>mr,Avr:()=>sd,BMV:()=>Cc,BOs:()=>Zr,B_h:()=>qc,BaG:()=>u1,BlQ:()=>wt,CFE:()=>Xl,Ei5:()=>ba,En6:()=>Et,FEq:()=>Wo,FMZ:()=>ws,FP9:()=>Ml,FZ_:()=>Za,Fd4:()=>Pl,Fll:()=>ni,Fq8:()=>ts,G4Q:()=>qa,GOU:()=>tr,GUs:()=>Tn,GXf:()=>Ct,G_G:()=>ne,H1z:()=>Oe,HAY:()=>Yu,HKj:()=>C1,HLX:()=>le,HnF:()=>vc,I8L:()=>Vi,INr:()=>vs,IbX:()=>wr,IxG:()=>Ja,J9f:()=>_l,JCx:()=>be,JTF:()=>n1,Jmn:()=>x1,KRr:()=>jt,KiN:()=>ud,Kkj:()=>Wn,LJ9:()=>li,LXB:()=>Wa,M1P:()=>pe,M5K:()=>er,MAo:()=>Fe,Mvn:()=>Js,N47:()=>Ou,NMX:()=>xs,NVO:()=>H,Nac:()=>Su,Nel:()=>cn,O3Q:()=>Ia,OLK:()=>nd,OP3:()=>J,OWv:()=>Z,Osm:()=>f1,Phy:()=>Y,Psd:()=>ea,Pw8:()=>Cl,QVS:()=>Ir,QWP:()=>qr,QZR:()=>co,Qa$:()=>Eo,QcR:()=>Ws,Qfy:()=>se,Qt1:()=>he,RA2:()=>bs,RJ$:()=>en,RKe:()=>It,RMT:()=>bu,RQS:()=>Br,RSu:()=>Rc,RSy:()=>oc,Rqb:()=>Gl,SPr:()=>nc,T31:()=>V,Thk:()=>kn,Tj8:()=>ri,ToY:()=>ar,UEL:()=>Hn,UK$:()=>Xa,ULh:()=>E1,UN$:()=>Ys,V1_:()=>Ol,V3k:()=>no,V9U:()=>Yt,VV8:()=>du,Vl8:()=>z1,Vue:()=>de,W14:()=>Vt,WAS:()=>mt,WGp:()=>_s,WSr:()=>H1,WeE:()=>Uc,WgR:()=>nl,XEW:()=>w,XJ:()=>M,XUB:()=>ua,XWi:()=>fs,Xiu:()=>R,XxZ:()=>gc,YQp:()=>Tt,YSN:()=>z,YW4:()=>B,Yd3:()=>Z1,Ye0:()=>mu,Ype:()=>Dn,Z3e:()=>g1,ZC5:()=>ul,ZFx:()=>Ar,ZLN:()=>Al,ZVN:()=>Nl,_f:()=>bt,a3n:()=>Fc,a4s:()=>r1,aUH:()=>Ge,aX5:()=>Il,aZy:()=>fu,arH:()=>Qc,bOY:()=>xl,bPL:()=>Jc,bz7:()=>Xn,c1P:()=>ut,cO8:()=>fn,cQZ:()=>Ua,cs4:()=>wo,d2V:()=>Ii,d52:()=>F,dYH:()=>Oc,dbG:()=>Ql,duD:()=>_1,eHp:()=>ta,eJL:()=>Ps,eTd:()=>hd,f9r:()=>eh,fQd:()=>fd,fh2:()=>ie,fqJ:()=>y1,fvu:()=>Kr,g1E:()=>tc,gG1:()=>oe,gUZ:()=>Io,gtA:()=>Ri,gwr:()=>yl,hBv:()=>Pt,hGs:()=>je,hj:()=>au,hzv:()=>ho,iHU:()=>me,iSS:()=>La,iby:()=>x,iyz:()=>Sc,j8M:()=>ad,jaV:()=>Zc,jme:()=>Qr,k1Y:()=>qu,kBo:()=>Xc,kHr:()=>ps,kKs:()=>Yl,kWO:()=>fa,kp0:()=>rl,kq4:()=>K1,krZ:()=>As,kut:()=>st,l20:()=>Kc,l76:()=>I,lBA:()=>Ue,lD4:()=>Be,lEz:()=>Ka,l_P:()=>Jr,m7j:()=>Cs,m9R:()=>gn,mDT:()=>D1,mRx:()=>Kl,mqi:()=>hi,mww:()=>vo,nRJ:()=>ed,ngC:()=>th,npr:()=>Yo,oGI:()=>xt,oJ_:()=>fi,oKj:()=>A,owd:()=>Is,pCs:()=>Sl,paL:()=>ae,pi3:()=>os,q3K:()=>a1,q7o:()=>Zs,qKP:()=>Rl,qld:()=>Ae,r$P:()=>W1,rCZ:()=>Xr,rR2:()=>br,rUT:()=>yc,reo:()=>El,s91:()=>M1,sAe:()=>Vo,sZm:()=>h1,shk:()=>X,tDA:()=>zl,tUL:()=>zn,tas:()=>Nr,twV:()=>l1,txm:()=>Bl,uXu:()=>od,v8x:()=>Jd,w7w:()=>L,wBW:()=>it,wJE:()=>Wr,wJP:()=>_e,wOP:()=>Vn,wVR:()=>At,wdL:()=>v1,wkS:()=>Xu,xKZ:()=>yu,xNz:()=>jc,xPr:()=>bc,y3W:()=>ec,y5X:()=>ht,yLZ:()=>Ts,yR6:()=>Hi,yo9:()=>wn,yoY:()=>Gi,ypY:()=>et,ytN:()=>Jo,zNY:()=>Gu,zf1:()=>w1});var t=c(1661),r=c(3953),M=function(m){return m.Na="NA",m.TierIii="TIER_III",m.TierIiLevelC="TIER_II_LEVEL_C",m.TierIiLevelD="TIER_II_LEVEL_D",m.TierIv="TIER_IV",m.TierILevelA="TIER_I_LEVEL_A",m.TierILevelB="TIER_I_LEVEL_B",m}(M||{}),L=function(m){return m.DoesNotSupport="DOES_NOT_SUPPORT",m.Supports="SUPPORTS",m}(L||{}),B=function(m){return m.AdverseResponse="ADVERSE_RESPONSE",m.Benign="BENIGN",m.BetterOutcome="BETTER_OUTCOME",m.LikelyBenign="LIKELY_BENIGN",m.LikelyOncogenic="LIKELY_ONCOGENIC",m.LikelyPathogenic="LIKELY_PATHOGENIC",m.Na="NA",m.Negative="NEGATIVE",m.Oncogenic="ONCOGENIC",m.Pathogenic="PATHOGENIC",m.PoorOutcome="POOR_OUTCOME",m.Positive="POSITIVE",m.ReducedSensitivity="REDUCED_SENSITIVITY",m.Resistance="RESISTANCE",m.Sensitivityresponse="SENSITIVITYRESPONSE",m.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",m}(B||{}),A=function(m){return m.AmpLevel="AMP_LEVEL",m.AssertionDirection="ASSERTION_DIRECTION",m.AssertionType="ASSERTION_TYPE",m.DiseaseName="DISEASE_NAME",m.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",m.Id="ID",m.Significance="SIGNIFICANCE",m.Status="STATUS",m.Summary="SUMMARY",m}(A||{}),w=function(m){return m.Diagnostic="DIAGNOSTIC",m.Oncogenic="ONCOGENIC",m.Predictive="PREDICTIVE",m.Predisposing="PREDISPOSING",m.Prognostic="PROGNOSTIC",m}(w||{}),I=function(m){return m.And="AND",m.Or="OR",m}(I||{}),F=function(m){return m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.Name="NAME",m.NctId="NCT_ID",m.SourceCount="SOURCE_COUNT",m}(F||{}),X=function(m){return m.Conflict="CONFLICT",m.Expired="EXPIRED",m.Missing="MISSING",m.Valid="VALID",m}(X||{}),V=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Source="SOURCE",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(V||{}),x=function(m){return m.Factor="FACTOR",m}(x||{}),ne=function(m){return m.Created="CREATED",m.LastModified="LAST_MODIFIED",m}(ne||{}),J=function(m){return m.Negative="NEGATIVE",m.Positive="POSITIVE",m}(J||{}),be=function(m){return m.AssertionCount="ASSERTION_COUNT",m.Doid="DOID",m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.FeatureCount="FEATURE_COUNT",m.Name="NAME",m.VariantCount="VARIANT_COUNT",m}(be||{}),Oe=function(m){return m.Accepted="ACCEPTED",m.AssertionAccepted="ASSERTION_ACCEPTED",m.AssertionRejected="ASSERTION_REJECTED",m.AssertionReverted="ASSERTION_REVERTED",m.AssertionSubmitted="ASSERTION_SUBMITTED",m.Commented="COMMENTED",m.CommentDeleted="COMMENT_DELETED",m.ComplexMolecularProfileCreated="COMPLEX_MOLECULAR_PROFILE_CREATED",m.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",m.DeprecatedFeature="DEPRECATED_FEATURE",m.DeprecatedMolecularProfile="DEPRECATED_MOLECULAR_PROFILE",m.DeprecatedVariant="DEPRECATED_VARIANT",m.FeatureCreated="FEATURE_CREATED",m.Flagged="FLAGGED",m.FlagResolved="FLAG_RESOLVED",m.PublicationSuggested="PUBLICATION_SUGGESTED",m.Rejected="REJECTED",m.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",m.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",m.Reverted="REVERTED",m.RevisionAccepted="REVISION_ACCEPTED",m.RevisionRejected="REVISION_REJECTED",m.RevisionSuggested="REVISION_SUGGESTED",m.RevisionSuperseded="REVISION_SUPERSEDED",m.Submitted="SUBMITTED",m.VariantCreated="VARIANT_CREATED",m}(Oe||{}),he=function(m){return m.Organization="ORGANIZATION",m.Subject="SUBJECT",m.Unscoped="UNSCOPED",m.User="USER",m}(he||{}),we=function(m){return m.DoesNotSupport="DOES_NOT_SUPPORT",m.Na="NA",m.Supports="SUPPORTS",m}(we||{}),me=function(m){return m.A="A",m.B="B",m.C="C",m.D="D",m.E="E",m}(me||{}),de=function(m){return m.AdverseResponse="ADVERSE_RESPONSE",m.Benign="BENIGN",m.BetterOutcome="BETTER_OUTCOME",m.DominantNegative="DOMINANT_NEGATIVE",m.GainOfFunction="GAIN_OF_FUNCTION",m.LikelyBenign="LIKELY_BENIGN",m.LikelyPathogenic="LIKELY_PATHOGENIC",m.LossOfFunction="LOSS_OF_FUNCTION",m.Na="NA",m.Negative="NEGATIVE",m.Neomorphic="NEOMORPHIC",m.Oncogenicity="ONCOGENICITY",m.Pathogenic="PATHOGENIC",m.PoorOutcome="POOR_OUTCOME",m.Positive="POSITIVE",m.Predisposition="PREDISPOSITION",m.Protectiveness="PROTECTIVENESS",m.ReducedSensitivity="REDUCED_SENSITIVITY",m.Resistance="RESISTANCE",m.Sensitivityresponse="SENSITIVITYRESPONSE",m.UnalteredFunction="UNALTERED_FUNCTION",m.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",m.Unknown="UNKNOWN",m}(de||{}),H=function(m){return m.Description="DESCRIPTION",m.DiseaseName="DISEASE_NAME",m.EvidenceDirection="EVIDENCE_DIRECTION",m.EvidenceLevel="EVIDENCE_LEVEL",m.EvidenceRating="EVIDENCE_RATING",m.EvidenceType="EVIDENCE_TYPE",m.Id="ID",m.Significance="SIGNIFICANCE",m.Status="STATUS",m.VariantOrigin="VARIANT_ORIGIN",m}(H||{}),z=function(m){return m.Accepted="ACCEPTED",m.Rejected="REJECTED",m.Submitted="SUBMITTED",m}(z||{}),Z=function(m){return m.Accepted="ACCEPTED",m.All="ALL",m.NonRejected="NON_REJECTED",m.Rejected="REJECTED",m.Submitted="SUBMITTED",m}(Z||{}),pe=function(m){return m.Diagnostic="DIAGNOSTIC",m.Functional="FUNCTIONAL",m.Oncogenic="ONCOGENIC",m.Predictive="PREDICTIVE",m.Predisposing="PREDISPOSING",m.Prognostic="PROGNOSTIC",m}(pe||{}),R=function(m){return m.Factor="FACTOR",m.Fusion="FUSION",m.Gene="GENE",m}(R||{}),Y=function(m){return m.AssertionCount="assertionCount",m.DiseaseName="diseaseName",m.EvidenceItemCount="evidenceItemCount",m.FeatureAlias="featureAlias",m.FeatureFullName="featureFullName",m.FeatureName="featureName",m.MolecularProfileCount="molecularProfileCount",m.TherapyName="therapyName",m.VariantCount="variantCount",m}(Y||{}),se=function(m){return m.Open="OPEN",m.Resolved="RESOLVED",m}(se||{}),Be=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(Be||{}),Pt=function(m){return m.Known="KNOWN",m.Multiple="MULTIPLE",m.Unknown="UNKNOWN",m}(Pt||{}),wt=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.ExonCoordinates="EXON_COORDINATES",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Variant="VARIANT",m.VariantCoordinates="VARIANT_COORDINATES",m.VariantGroup="VARIANT_GROUP",m}(wt||{}),xt=function(m){return m.All="ALL",m.WithAccepted="WITH_ACCEPTED",m.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",m.WithSubmitted="WITH_SUBMITTED",m}(xt||{}),st=function(m){return m.AssertionCount="assertionCount",m.EvidenceItemCount="evidenceItemCount",m.MolecularProfileScore="molecularProfileScore",m.VariantCount="variantCount",m}(st||{}),Ct=function(m){return m.Mention="MENTION",m.Subscription="SUBSCRIPTION",m}(Ct||{}),It=function(m){return m.ActivityCount="ACTIVITY_COUNT",m.Id="ID",m.MemberCount="MEMBER_COUNT",m.MostRecentActivityTimestamp="MOST_RECENT_ACTIVITY_TIMESTAMP",m.Name="NAME",m}(It||{}),Tt=function(m){return m.AssertionCount="ASSERTION_COUNT",m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.HpoId="HPO_ID",m.Name="NAME",m}(Tt||{}),en=function(m){return m.Read="READ",m.Unread="UNREAD",m}(en||{}),jt=function(m){return m.Grch37="GRCH37",m.Grch38="GRCH38",m.Ncbi36="NCBI36",m}(jt||{}),Vt=function(m){return m.Accepted="ACCEPTED",m.New="NEW",m.Rejected="REJECTED",m.Superseded="SUPERSEDED",m}(Vt||{}),fn=function(m){return m.Assertion="ASSERTION",m.Disease="DISEASE",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Revision="REVISION",m.Therapy="THERAPY",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(fn||{}),Hn=function(m){return m.Asc="ASC",m.Desc="DESC",m}(Hn||{}),zn=function(m){return m.Asco="ASCO",m.Ash="ASH",m.Pubmed="PUBMED",m}(zn||{}),bt=function(m){return m.Curated="CURATED",m.New="NEW",m.Rejected="REJECTED",m}(bt||{}),At=function(m){return m.Citation="CITATION",m.CitationId="CITATION_ID",m.CreatedAt="CREATED_AT",m.DiseaseName="DISEASE_NAME",m.SourceType="SOURCE_TYPE",m.Submitter="SUBMITTER",m}(At||{}),Et=function(m){return m.Authors="AUTHORS",m.CitationId="CITATION_ID",m.EvidenceCount="EVIDENCE_COUNT",m.Journal="JOURNAL",m.Name="NAME",m.SourceType="SOURCE_TYPE",m.SuggestionCount="SUGGESTION_COUNT",m.Year="YEAR",m}(Et||{}),Yt=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Revision="REVISION",m.SourceSuggestion="SOURCE_SUGGESTION",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(Yt||{}),Ue=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Revision="REVISION",m.Role="ROLE",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(Ue||{}),Ae=function(m){return m.Combination="COMBINATION",m.Sequential="SEQUENTIAL",m.Substitutes="SUBSTITUTES",m}(Ae||{}),ie=function(m){return m.AssertionCount="ASSERTION_COUNT",m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.Name="NAME",m.NcitId="NCIT_ID",m}(ie||{}),_e=function(m){return m.AllTime="ALL_TIME",m.LastMonth="LAST_MONTH",m.LastWeek="LAST_WEEK",m.LastYear="LAST_YEAR",m}(_e||{}),oe=function(m){return m.Admin="ADMIN",m.Curator="CURATOR",m.Editor="EDITOR",m}(oe||{}),Fe=function(m){return m.EvidenceCount="EVIDENCE_COUNT",m.Id="ID",m.LastAction="LAST_ACTION",m.Name="NAME",m.RevisionCount="REVISION_COUNT",m.Role="ROLE",m}(Fe||{}),et=function(m){return m.Factor="FACTOR",m.Fusion="FUSION",m.Gene="GENE",m}(et||{}),ut=function(m){return m.FivePrimeFusionCoordinate="FIVE_PRIME_FUSION_COORDINATE",m.GeneVariantCoordinate="GENE_VARIANT_COORDINATE",m.ThreePrimeFusionCoordinate="THREE_PRIME_FUSION_COORDINATE",m}(ut||{}),cn=function(m){return m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.GeneNames="GENE_NAMES",m.Name="NAME",m.VariantCount="VARIANT_COUNT",m.VariantNames="VARIANT_NAMES",m}(cn||{}),Tn=function(m){return m.CoordinateEnd="COORDINATE_END",m.CoordinateStart="COORDINATE_START",m.Name="NAME",m}(Tn||{}),Wn=function(m){return m.Combined="COMBINED",m.CommonGermline="COMMON_GERMLINE",m.Na="NA",m.RareGermline="RARE_GERMLINE",m.Somatic="SOMATIC",m.Unknown="UNKNOWN",m}(Wn||{}),kn=function(m){return m.Name="NAME",m.Soid="SOID",m.VariantCount="VARIANT_COUNT",m}(kn||{}),Vn=function(m){return m.DiseaseName="diseaseName",m.FeatureName="featureName",m.TherapyName="therapyName",m.VariantName="variantName",m}(Vn||{});const Un=t.J1` + fragment ActivityCard on ActivityInterface { + id + verbiage +} + `,dn=t.J1` + fragment activityFeedNode on ActivityInterface { + id + verbiage + createdAt + organization { + id + name + profileImagePath(size: 32) + } + user { + id + username + displayName + role + profileImagePath(size: 32) + } + subject { + name + id + link + ... on Source { + citation + sourceType + } + ... on EvidenceItem { + status + flagged + } + ... on Assertion { + status + flagged + } + ... on Revision { + revisionSetId + } + ... on VariantInterface { + deprecated + flagged + feature { + id + name + link + deprecated + flagged + } + } + ... on MolecularProfile { + deprecated + flagged + } + ... on Feature { + deprecated + flagged + } + ... on VariantGroup { + flagged + } + __typename + } + ... on FlagEntityActivity { + flag { + id + name + link + } + } +} + `,qt=t.J1` + fragment activityFeed on ActivityInterfaceConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + edges { + cursor + node { + ...activityFeedNode + } + } +} + ${dn}`,On=t.J1` + fragment MolecularProfileParsedName on MolecularProfileSegment { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Feature { + id + name + link + deprecated + flagged + } + ... on Variant { + id + name + link + deprecated + flagged + } +} + `,Ut=t.J1` + 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 + deprecated + } + therapyInteractionType + disease { + id + name + link + deprecated + } + phenotypes { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${On}`,Ye=t.J1` + fragment AssertionBrowseFields on Assertion { + id + name + link + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + } + disease { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + therapyInteractionType + summary + assertionType + assertionDirection + significance + ampLevel + evidenceItemsCount + status + flagged +} + ${On}`,ue=t.J1` + fragment clinicalTrialPopover on BrowseClinicalTrial { + id + name + nctId + url + sourceCount + evidenceCount +} + `,te=t.J1` + fragment BrowseClinicalTrialsRowFields on BrowseClinicalTrial { + id + name + nctId + evidenceCount + sourceCount + link +} + `,q=t.J1` + fragment parsedCommentFragment on CommentBodySegment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTagSegmentFlagged { + entityId + displayName + tagType + flagged + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTagSegmentFlaggedAndWithStatus { + entityId + displayName + tagType + status + flagged + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTagSegmentFlaggedAndDeprecated { + entityId + displayName + tagType + flagged + deprecated + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + id + displayName + role + } +} + `,Xe=t.J1` + fragment commentListNode on Comment { + id + title + comment + createdAt + deleted + deletedAt + commenter { + id + username + displayName + name + role + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } + } + parsedComment { + ...parsedCommentFragment + } +} + ${q}`,dt=t.J1` + fragment commentPopover on Comment { + id + name + createdAt + title + comment + commenter { + id + displayName + role + } + commentable { + id + name + link + ... on Variant { + deprecated + feature { + id + name + link + deprecated + flagged + } + flagged + } + ... on Feature { + deprecated + flagged + } + ... on Source { + deprecated + sourceType + } + ... on Assertion { + flagged + status + } + ... on EvidenceItem { + flagged + status + } + __typename + } +} + `,at=t.J1` + fragment BrowseDiseaseRowFields on BrowseDisease { + id + name + doid + diseaseUrl + features { + id + name + link + } + assertionCount + evidenceItemCount + variantCount + featureCount + link + deprecated + diseaseAliases +} + `,St=t.J1` + 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 + deprecated + } + ... on EvidenceItem { + status + flagged + } + ... on Assertion { + status + flagged + } + ... on Revision { + revisionSetId + } + ... on VariantInterface { + deprecated + flagged + feature { + id + link + name + deprecated + flagged + } + } + ... on Feature { + deprecated + flagged + id + link + name + } + ... on MolecularProfile { + deprecated + flagged + } + ... on VariantGroup { + flagged + } + __typename + } + originatingObject { + id + name + link + __typename + ... on Revision { + id + revisionSetId + } + ... on Comment { + id + } + ... on Flag { + id + } + } +} + `,Qe=t.J1` + 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 + } + } +} + ${St}`,Ee=t.J1` + fragment evidencePopover on EvidenceItem { + id + name + status + description + evidenceLevel + evidenceType + evidenceDirection + significance + variantOrigin + therapies { + id + name + link + deprecated + } + therapyInteractionType + disease { + id + name + link + deprecated + } + phenotypes { + id + name + link + } + evidenceRating + molecularProfile { + id + name + link + deprecated + flagged + parsedName { + ...MolecularProfileParsedName + } + } + source { + id + citation + sourceType + displayType + link + deprecated + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${On}`,Je=t.J1` + fragment EvidenceGridFields on EvidenceItem { + id + name + link + disease { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + } + status + flagged + therapyInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin +} + ${On}`,re=t.J1` + fragment featurePopover on Feature { + id + name + fullName + featureInstance { + __typename + } + featureAliases + variants { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,ze=t.J1` + fragment BrowseFeaturesFields on BrowseFeature { + id + name + fullName + link + deprecated + flagged + featureAliases + diseases { + name + id + link + deprecated + } + therapies { + name + id + link + deprecated + } + variantCount + evidenceItemCount + assertionCount + molecularProfileCount + featureInstanceType +} + `,gt=t.J1` + fragment flag on Flag { + id + state + flaggable { + id + name + link + ... on Variant { + deprecated + } + ... on Feature { + deprecated + } + ... on MolecularProfile { + deprecated + } + } + openActivity { + id + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + id + displayName + role + profileImagePath(size: 32) + } + } + resolutionActivity { + id + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${q}`,Ke=t.J1` + 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 + } + } +} + ${gt}`,Pe=t.J1` + fragment flagPopover on Flag { + id + name + state + flaggingUser { + id + displayName + role + } + flaggable { + id + link + name + ... on VariantInterface { + deprecated + feature { + id + name + link + deprecated + flagged + } + } + ... on Feature { + deprecated + } + ... on EvidenceItem { + status + } + ... on Assertion { + status + } + flagged + } + createdAt + openActivity { + parsedNote { + ...parsedCommentFragment + } + } +} + ${q}`,Re=t.J1` + fragment menuFusion on Fusion { + id + name + link + flagged + deprecated +} + `,$=t.J1` + fragment QuicksearchResult on SearchResult { + id + resultType + name + matchingText +} + `,ce=t.J1` + fragment molecularProfilePopoverFields on MolecularProfile { + id + name + parsedName { + ...MolecularProfileParsedName + } + molecularProfileAliases + evidenceItems { + totalCount + } + assertions { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + ${On}`,N=t.J1` + fragment BrowseMolecularProfilesFields on BrowseMolecularProfile { + id + name + evidenceItemCount + molecularProfileScore + assertionCount + variantCount + aliases { + name + } + variants { + id + name + link + matchText + feature { + id + link + name + } + } + therapies { + id + name + link + deprecated + } + diseases { + id + name + link + deprecated + } + link + deprecated +} + `,ke=t.J1` + fragment menuMolecularProfile on MolecularProfile { + id + name + link + flagged + deprecated +} + `,ve=t.J1` + fragment LeaderboardOrganizationFields on LeaderboardOrganization { + id + name + actionCount + rank + profileImagePath(size: 64) +} + `,K=t.J1` + fragment orgPopover on Organization { + id + profileImagePath(size: 64) + name + description + url +} + `,U=t.J1` + fragment OrganizationBrowseTableRowFields on BrowseOrganization { + id + name + description + url + memberCount + activityCount + mostRecentActivityTimestamp + childOrganizations { + id + name + } +} + `,ge=t.J1` + fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { + id + name + hpoId + url + assertionCount + evidenceCount + link +} + `,qe=t.J1` + fragment validationError on FieldValidationError { + fieldName + error +} + `,rt=t.J1` + fragment revisionPopover on Revision { + id + name + link + status + creationActivity { + user { + id + displayName + role + } + parsedNote { + ...parsedCommentFragment + } + } + subject { + id + link + name + ... on VariantInterface { + deprecated + flagged + feature { + id + name + link + deprecated + flagged + } + } + ... on Feature { + deprecated + flagged + } + ... on Assertion { + flagged + status + } + ... on EvidenceItem { + flagged + status + } + ... on VariantGroup { + flagged + } + } + createdAt + linkoutData { + name + } +} + ${q}`,Ft=t.J1` + fragment revision on Revision { + id + revisionSetId + createdAt + fieldName + currentValue + suggestedValue + linkoutData { + name + diffValue { + ... on ObjectFieldDiff { + currentObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + addedObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + removedObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + keptObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + suggestedObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + } + ... on ScalarFieldDiff { + left + right + } + } + } + creationActivity { + createdAt + user { + id + displayName + role + } + parsedNote { + ...parsedCommentFragment + } + organization { + id + name + } + } + resolutionActivity { + createdAt + user { + id + displayName + role + } + parsedNote { + ...parsedCommentFragment + } + } + status +} + ${q}`,on=t.J1` + fragment ContributorFields on ContributingUser { + user { + id + profileImagePath(size: 12) + } + uniqueActions { + action + count + } + lastActionDate + totalActionCount +} + `,Cn=t.J1` + fragment subscriptionId on Subscription { + id + __typename +} + `,Zn=t.J1` + fragment TimepointCount on TimePointCounts { + allTime + newThisMonth + newThisWeek + newThisYear +} + `,jn=t.J1` + fragment BrowseSourceSuggestionRowFields on SourceSuggestion { + id + molecularProfile { + id + name + link + deprecated + } + disease { + id + name + link + deprecated + } + source { + link + id + citation + citationId + sourceType + sourceUrl + displayType + deprecated + } + user { + id + displayName + role + profileImagePath(size: 32) + } + creationActivity { + parsedNote { + ...parsedCommentFragment + } + } + lastStatusUpdateActivity { + parsedNote { + ...parsedCommentFragment + } + } + status + reason + createdAt +} + ${q}`,Gn=t.J1` + fragment sourcePopover on SourcePopover { + id + title + fullJournalTitle + evidenceItemCount + citation + citationId + displayType + sourceUrl + clinicalTrials { + id + nctId + link + } + retractionDate + retractionReasons + retractionNature +} + `,zi=t.J1` + fragment BrowseSourceRowFields on BrowseSource { + id + authors + citationId + evidenceItemCount + sourceSuggestionCount + journal + name + publicationYear + sourceType + citation + displayType + link + openAccess + deprecated +} + `,Oi=t.J1` + fragment TherapyBrowseTableRowFields on BrowseTherapy { + id + name + ncitId + therapyUrl + assertionCount + evidenceCount + link + deprecated + therapyAliases +} + `,lo=t.J1` + fragment LeaderboardUserFields on LeaderboardUser { + id + name + displayName + actionCount + role + rank + profileImagePath(size: 64) +} + `,Zi=t.J1` + fragment popoverUser on User { + id + profileImagePath(size: 64) + displayName + bio + role + organizations { + id + name + } +} + `,Bo=t.J1` + fragment UserBrowseTableRowFields on BrowseUser { + id + name + displayName + username + organizations { + id + name + } + role + evidenceCount + revisionCount + profileImagePath(size: 64) + mostRecentActivityTimestamp +} + `,bo=t.J1` + fragment variantGroupPopoverFields on VariantGroup { + id + name + description + variants { + edges { + node { + id + name + link + deprecated + flagged + feature { + id + name + link + deprecated + flagged + } + } + } + } + sources { + id + citation + sourceType + link + deprecated + } +} + `,Mr=t.J1` + fragment BrowseVariantGroupRowFields on BrowseVariantGroup { + id + name + link + featureNames + variantNames + variantCount + evidenceItemCount +} + `,rr=t.J1` + fragment variantTypePopover on VariantTypePopover { + id + name + url + soid + variantCount +} + `,lt=t.J1` + fragment VariantTypeBrowseTableRowFields on BrowseVariantType { + id + name + soid + url + variantCount + link +} + `,Lt=t.J1` + fragment CoordinateFields on VariantCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + referenceBases + variantBases + coordinateType +} + `,$t=t.J1` + fragment ExonCoordinateFields on ExonCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + exon + exonOffset + exonOffsetDirection + ensemblId + strand + coordinateType +} + `,mn=t.J1` + fragment CoordinatesCardFields on VariantInterface { + id + name + ... on GeneVariant { + coordinates { + ...CoordinateFields + } + } + ... on FusionVariant { + fivePrimeCoordinates { + ...CoordinateFields + } + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + } +} + ${Lt} +${$t}`,hn=t.J1` + fragment variantPopoverFields on VariantInterface { + id + name + variantAliases + ... on GeneVariant { + alleleRegistryId + } + feature { + id + name + link + deprecated + flagged + } + molecularProfiles { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,Yn=t.J1` + fragment menuVariantType on BrowseVariantType { + id + name + link +} + `,En=t.J1` + fragment menuVariant on VariantInterface { + id + name + link + flagged + deprecated +} + `,Kn=t.J1` + fragment BrowseVariantsFields on BrowseVariant { + id + name + link + featureId + featureName + featureLink + category + featureDeprecated + featureFlagged + diseases { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + aliases { + name + } + variantTypes { + id + name + link + } + deprecated + flagged +} + `,oi=t.J1` + 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 + } +} + `,gi=t.J1` + fragment MolecularProfileSelectTypeaheadFields on MolecularProfile { + id + name + link + molecularProfileAliases + deprecated + flagged +} + `,ro=t.J1` + fragment DiseaseSelectTypeaheadFields on Disease { + id + name + link + displayName + doid + diseaseAliases +} + `,vi=t.J1` + fragment TherapySelectTypeaheadFields on Therapy { + id + name + link + ncitId + therapyAliases +} + `,pn=t.J1` + fragment PhenotypeSelectTypeaheadFields on Phenotype { + id + name + link + hpoId +} + `,$i=t.J1` + fragment SourceSelectTypeaheadFields on Source { + id + name + link + citation + citationId + sourceType + deprecated +} + `,Mi=t.J1` + fragment RevisableEvidenceFields on EvidenceItem { + id + molecularProfile { + ...MolecularProfileSelectTypeaheadFields + } + variantOrigin + description + significance + disease { + ...DiseaseSelectTypeaheadFields + } + therapies { + ...TherapySelectTypeaheadFields + } + therapyInteractionType + evidenceDirection + evidenceLevel + evidenceType + phenotypes { + ...PhenotypeSelectTypeaheadFields + } + evidenceRating + source { + ...SourceSelectTypeaheadFields + } +} + ${gi} +${ro} +${vi} +${pn} +${$i}`,Ni=t.J1` + fragment SubmittableEvidenceFields on EvidenceItem { + id + description + variantOrigin + evidenceType + significance + evidenceLevel + evidenceDirection + evidenceRating + therapyInteractionType + source { + id + citation + sourceType + deprecated + } + phenotypes { + id + name + } + therapies { + id + name + } + disease { + id + name + } +} + `,so=t.J1` + fragment RevisableFactorFields on Feature { + id + name + fullName + description + sources { + id + sourceType + citation + citationId + } + featureAliases + featureInstance { + ... on Factor { + ncitId + } + } +} + `,Yi=t.J1` + fragment RevisableFactorVariantFields on FactorVariant { + name + feature { + id + name + } + variantAliases + variantTypes { + id + name + soid + } + ncitId +} + `,Xo=t.J1` + fragment RevisableFusionFields on Feature { + id + description + sources { + id + sourceType + citation + citationId + } + featureAliases + featureInstance { + __typename + } +} + `,Ki=t.J1` + fragment RevisableFusionVariantFields on FusionVariant { + name + feature { + id + name + link + deprecated + flagged + featureInstance { + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } + } + } + variantAliases + variantTypes { + id + name + soid + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } +} + ${$t}`,Zo=t.J1` + fragment RevisableGeneFields on Feature { + id + description + sources { + id + sourceType + citation + citationId + } +} + `,pr=t.J1` + fragment RevisableGeneVariantFields on GeneVariant { + name + feature { + id + name + } + variantAliases + alleleRegistryId + clinvarIds + hgvsDescriptions + variantTypes { + id + name + soid + } + coordinates { + ...CoordinateFields + } +} + ${Lt}`,fo=t.J1` + fragment RevisableMolecularProfileFields on MolecularProfile { + id + description + sources { + id + sourceType + citation + citationId + } + molecularProfileAliases + isComplex +} + `,po=t.J1` + fragment VariantGroupRevisableFields on VariantGroup { + id + name + description + variants { + totalCount + edges { + cursor + node { + id + name + link + } + } + nodes { + id + name + link + } + } + sources { + id + name + link + } +} + `,fr=t.J1` + fragment SubmittableVariantGroupFields on VariantGroup { + id + name + description + variants(first: 50) { + nodes { + id + name + link + singleVariantMolecularProfile { + id + name + link + } + } + } + sources { + id + link + citation + sourceType + } +} + `,$o=t.J1` + fragment AcmgCodeSelectTypeaheadFields on AcmgCode { + id + code + name + description + tooltip +} + `,Lr=t.J1` + fragment ClingenCodeSelectTypeaheadFields on ClingenCode { + id + code + name + description + tooltip + exclusive +} + `,qi=t.J1` + fragment QuickAddDiseaseFields on AddDiseasePayload { + new + disease { + ...DiseaseSelectTypeaheadFields + } +} + ${ro}`,xn=t.J1` + fragment EvidenceManagerFields on EvidenceItem { + id + name + link + disease { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + } + status + flagged + therapyInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin +} + ${On}`,Ci=t.J1` + fragment EvidenceSelectTypeaheadFields on EvidenceItem { + id + name + link + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin + status +} + `,Sr=t.J1` + fragment GeneBaseFields on Gene { + id + description + featureAliases + entrezId + deprecated + flagged + name + link + sources { + id + citation + link + sourceUrl + displayType + sourceType + deprecated + } +} + `,es=t.J1` + fragment GeneSummaryFields on Gene { + ...GeneBaseFields + myGeneInfoDetails +} + ${Sr}`,us=t.J1` + fragment NcitDetails on NcitDetails { + synonyms { + name + source + } + definitions { + definition + source + } +} + `,qo=t.J1` + fragment FactorSummaryFields on Factor { + id + name + description + featureAliases + ncitId + deprecated + sources { + id + citation + link + sourceUrl + displayType + sourceType + deprecated + } + ncitDetails { + ...NcitDetails + } + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } +} + ${us}`,Gs=t.J1` + fragment FusionSummaryFields on Fusion { + id + description + featureAliases + name + sources { + id + citation + link + sourceUrl + displayType + sourceType + deprecated + } + fivePrimeGene { + ...GeneBaseFields + } + threePrimeGene { + ...GeneBaseFields + } + fivePrimePartnerStatus + threePrimePartnerStatus + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } +} + ${Sr}`,tt=t.J1` + fragment FeatureSummaryFields on Feature { + id + name + fullName + link + deprecated + flagged + featureInstance { + __typename + ... on Gene { + ...GeneSummaryFields + } + ... on Factor { + ...FactorSummaryFields + } + ... on Fusion { + ...FusionSummaryFields + } + } +} + ${es} +${qo} +${Gs}`,Ce=t.J1` + fragment QuickAddFeatureFields on CreateFeaturePayload { + clientMutationId + new + feature { + ...FeatureSummaryFields + } +} + ${tt}`,Ve=t.J1` + fragment FeatureSelectTypeaheadFields on Feature { + id + name + featureAliases + link + featureType + featureInstance { + __typename + ... on Gene { + entrezId + } + ... on Factor { + ncitId + } + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } + } +} + `,nt=t.J1` + fragment PreviewMpName2 on MolecularProfileSegment { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Feature { + id + name + link + deprecated + flagged + } + ... on Variant { + id + name + link + deprecated + flagged + } +} + `,Mt=t.J1` + fragment NccnGuidelineSelectTypeaheadFields on NccnGuideline { + id + name +} + `,Wt=t.J1` + fragment QuickAddTherapyFields on AddTherapyPayload { + new + therapy { + ...TherapySelectTypeaheadFields + } +} + ${vi}`,tn=t.J1` + fragment VariantSelectTypeaheadFields on VariantInterface { + id + name + link + deprecated + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } +} + `,rn=t.J1` + fragment CreateFusionVariantFields on CreateFusionVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} + ${tn}`,Mn=(t.J1` + fragment VariantManagerFields on BrowseVariant { + id + name + link + featureId + featureName + featureLink + diseases { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + aliases { + name + } +} + `,t.J1` + fragment QuickAddVariantFields on CreateVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} + ${tn}`),Ln=t.J1` + fragment VariantTypeSelectTypeaheadFields on VariantType { + id + name + link + soid +} + `,wn=t.J1` + fragment assertionSubmissionActivity on Assertion { + submissionActivity { + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + id + displayName + profileImagePath(size: 32) + } + } +} + ${q}`,Qn=t.J1` + fragment AssertionDetailFields on Assertion { + id + name + status + submissionEvent { + originatingUser { + id + } + } + molecularProfile { + id + name + link + deprecated + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + ...assertionSubmissionActivity +} + ${wn}`,qn=t.J1` + fragment AssertionSummaryFields on Assertion { + id + name + summary + description + status + variantOrigin + disease { + id + name + link + deprecated + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + flagged + } + assertionType + assertionDirection + significance + therapies { + ncitId + name + link + id + deprecated + } + 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) + } + } + ...assertionSubmissionActivity + submissionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + rejectionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${On} +${wn}`,pi=t.J1` + fragment MyDiseaseInfoFields on MyDiseaseInfo { + diseaseOntologyExactSynonyms + diseaseOntologyRelatedSynonyms + mesh + icdo + icd10 + ncit + omim + doDef + doDefCitations + mondoDef + mondoId +} + `,ei=t.J1` + fragment DiseasesSummaryFields on Disease { + id + name + doid + diseaseUrl + displayName + diseaseAliases + link + myDiseaseInfo { + ...MyDiseaseInfoFields + } + deprecated +} + ${pi}`,li=t.J1` + fragment evidenceSubmissionActivity on EvidenceItem { + submissionActivity { + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + id + displayName + profileImagePath(size: 32) + } + } +} + ${q}`,ci=t.J1` + fragment EvidenceDetailFields on EvidenceItem { + id + name + status + submissionEvent { + originatingUser { + id + } + } + molecularProfile { + id + name + link + deprecated + flagged + } + assertions { + id + name + link + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + ...evidenceSubmissionActivity +} + ${li}`,mi=t.J1` + fragment EvidenceSummaryFields on EvidenceItem { + id + name + description + status + evidenceLevel + evidenceType + evidenceDirection + significance + variantOrigin + therapies { + id + name + link + deprecated + } + therapyInteractionType + disease { + id + name + link + deprecated + } + phenotypes { + id + name + link + } + source { + id + citation + citationId + sourceType + displayType + sourceUrl + ascoAbstractId + link + clinicalTrials { + nctId + id + link + } + retractionNature + deprecated + } + evidenceRating + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + submissionActivity { + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + displayName + profileImagePath(size: 32) + id + role + } + } + 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) + } + } +} + ${On} +${q}`,Ei=t.J1` + fragment FeatureDetailFields on Feature { + id + name + fullName + deprecated + deprecationReason + deprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + featureInstance { + __typename + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${q}`,Xi=t.J1` + fragment MolecularProfileDetailFields on MolecularProfile { + id + name + deprecated + deprecationReason + complexMolecularProfileDeprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + deprecatedVariants { + deprecationReason + deprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + id + deprecated + flagged + name + link + feature { + id + name + link + deprecated + flagged + } + } + molecularProfileAliases + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + variants { + id + } +} + ${q}`,Si=t.J1` + 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 +} + `,eo=t.J1` + fragment GeneVariantSummaryFields on GeneVariant { + alleleRegistryId + openCravatUrl + maneSelectTranscript + hgvsDescriptions + clinvarIds + coordinates { + ...CoordinateFields + } + myVariantInfo { + ...MyVariantInfoFields + } +} + ${Lt} +${Si}`,ao=t.J1` + fragment FactorVariantSummaryFields on FactorVariant { + ncitId + ncitDetails { + ...NcitDetails + } +} + ${us}`,io=t.J1` + fragment FusionVariantSummaryFields on FusionVariant { + viccCompliantName + fusion { + fivePrimePartnerStatus + fivePrimeGene { + id + name + link + deprecated + flagged + } + threePrimePartnerStatus + threePrimeGene { + id + name + link + deprecated + flagged + } + } + fivePrimeCoordinates { + ...CoordinateFields + } + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields + } +} + ${Lt} +${$t}`,An=t.J1` + fragment VariantMolecularProfileCardFields on VariantInterface { + id + name + link + deprecated + flagged + feature { + id + name + link + deprecated + flagged + } + molecularProfiles(first: 3) { + totalCount + nodes { + id + link + name + deprecated + flagged + } + } + ... on GeneVariant { + ...GeneVariantSummaryFields + } + ... on FactorVariant { + ...FactorVariantSummaryFields + } + ... on FusionVariant { + ...FusionVariantSummaryFields + } + variantAliases + variantTypes { + id + link + soid + name + } +} + ${eo} +${ao} +${io}`,_o=t.J1` + fragment MolecularProfileSummaryFields on MolecularProfile { + id + name + description + molecularProfileAliases + molecularProfileScore + sources { + id + citation + link + sourceType + deprecated + } + variants { + ...VariantMolecularProfileCardFields + } + parsedName { + ...MolecularProfileParsedName + } + complexMolecularProfileCreationActivity { + createdAt + user { + id + displayName + role + profileImagePath(size: 32) + } + } + variantDeprecationActivity { + createdAt + user { + id + displayName + role + profileImagePath(size: 32) + } + } + complexMolecularProfileDeprecationActivity { + createdAt + user { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${An} +${On}`,ir=t.J1` + 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 + } + } +} + `,Ur=t.J1` + 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 + } + } +} + `,Do=t.J1` + fragment OrganizationMembersFields on BrowseUser { + id + name + displayName + username + profileImagePath(size: 64) + role + url + areaOfExpertise + orcid + twitterHandle + facebookProfile + linkedinProfile + organizations { + id + name + url + } +} + `,Qo=t.J1` + 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 + } +} + `,Dr=t.J1` + fragment SourceDetailFields on Source { + id + citation + sourceUrl + displayType + fullyCurated + citationId + comments { + totalCount + } +} + `,_r=t.J1` + fragment SourceSummaryFields on Source { + id + citation + displayType + sourceUrl + title + abstract + publicationDate + citationId + fullJournalTitle + pmcId + authorString + ascoAbstractId + clinicalTrials { + nctId + id + link + } + retracted + retractionNature + retractionDate + retractionReasons + deprecated +} + `,yr=t.J1` + fragment MyChemInfoFields on MyChemInfo { + chebiId + chebiDefinition + fdaEpcCodes { + code + description + } + fdaMoaCodes { + code + description + } + firstApproval + chemblMoleculeType + chemblId + pubchemCid + pharmgkbId + rxnorm + inchikey + drugbankId + indications +} + `,sr=t.J1` + fragment TherapiesSummaryFields on Therapy { + id + name + ncitId + therapyUrl + therapyAliases + link + myChemInfo { + ...MyChemInfoFields + } +} + ${yr}`,Ao=t.J1` + 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 + } +} + `,Ms=t.J1` + fragment notificationOrganization on Organization { + id + name +} + `,Fr=t.J1` + fragment notificationOriginatingUsers on User { + id + displayName +} + `,Uo=t.J1` + fragment notificationFeedSubjects on EventSubjectWithCount { + subject { + id + __typename + name + } + occuranceCount +} + `,Gr=t.J1` + fragment notificationNode on Notification { + id + type + event { + ...eventFeedNode + } + seen + subscription { + id + subscribable { + id + name + __typename + } + } +} + ${St}`,Mo=t.J1` + fragment subscribable on Subscribable { + id + entityType + __typename +} + `,Ss=t.J1` + fragment VariantGroupDetailFields on VariantGroup { + id + name + variants { + totalCount + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,ds=t.J1` + fragment VariantGroupSummaryFields on VariantGroup { + id + name + description + sources { + id + link + citation + sourceUrl + displayType + sourceType + deprecated + } +} + `,Ze=t.J1` + fragment VariantDetailFields on VariantInterface { + id + name + deprecated + deprecationReason + deprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + feature { + id + name + link + deprecated + flagged + } + variantAliases + flags(state: OPEN) { + totalCount + } + openRevisionCount + comments { + totalCount + } +} + ${q}`,Fn=t.J1` + fragment VariantCoordinateIds on VariantInterface { + __typename + openRevisionCount + ... on GeneVariant { + coordinates { + openRevisionCount + id + } + } + ... on FusionVariant { + fivePrimeEndExonCoordinates { + openRevisionCount + id + } + threePrimeStartExonCoordinates { + openRevisionCount + id + } + } +} + `,fe=t.J1` + fragment VariantSummaryFields on VariantInterface { + id + name + feature { + __typename + id + name + link + deprecated + flagged + } + variantAliases + variantTypes { + id + link + soid + name + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + lastSubmittedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + lastAcceptedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + ... on GeneVariant { + ...GeneVariantSummaryFields + } + ... on FactorVariant { + ...FactorVariantSummaryFields + } + ... on FusionVariant { + ...FusionVariantSummaryFields + } +} + ${eo} +${ao} +${io}`;t.J1` + query ActivityCard($activityId: Int!) { + activity(id: $activityId) { + ...ActivityCard + } +} + ${Un}`,t.J1` + query ActivityFeed($first: Int, $last: Int, $before: String, $after: String, $userId: [Int!]) { + activities( + first: $first + last: $last + before: $before + after: $after + userId: $userId + ) { + ...activityFeed + } +} + ${qt}`;const Bn=t.J1` + query AssertionPopover($assertionId: Int!) { + assertion(id: $assertionId) { + ...assertionPopover + } +} + ${Ut}`;let fi=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Bn}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ki=t.J1` + 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 + } + } + } +} + ${Ye}`;let Eo=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ki}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const di=t.J1` + query ClinicalTrialPopover($clinicalTrialId: Int!) { + clinicalTrials(id: $clinicalTrialId) { + edges { + node { + ...clinicalTrialPopover + } + } + } +} + ${ue}`;let ho=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=di}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Oo=t.J1` + 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 + } + } + } +} + ${te}`;let ts=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Oo}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ne=t.J1` + mutation DeleteComment($input: DeleteCommentInput!) { + deleteComment(input: $input) { + comment { + ...commentListNode + } + } +} + ${Xe}`;let je=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Ne}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ye=t.J1` + 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 + } + } + } +} + ${Xe}`;let ht=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ye}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Jt=t.J1` + query CommentPopover($commentId: Int!) { + comment(id: $commentId) { + ...commentPopover + } +} + ${dt}`;let Ii=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Jt}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Qi=t.J1` + query DiseasePopover($diseaseId: Int!) { + diseasePopover(id: $diseaseId) { + id + name + displayName + doid + diseaseUrl + diseaseAliases + assertionCount + evidenceItemCount + molecularProfileCount + link + deprecated + } +} + `;let wo=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Qi}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const yi=t.J1` + query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $diseaseAlias: String, $featureName: String) { + browseDiseases( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + doid: $doid + diseaseAlias: $diseaseAlias + featureName: $featureName + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + lastUpdated + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseDiseaseRowFields + } + } + } +} + ${at}`;let La=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=yi}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Hc=t.J1` + 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 ba=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Hc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Cr=t.J1` + 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 + } +} + ${Qe}`;let gc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Cr}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const mo=t.J1` + query EvidencePopover($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...evidencePopover + } +} + ${Ee}`;let ua=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=mo}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Yr=t.J1` + 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 + } + } + } +} + ${Je}`;let ta=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Yr}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ba=t.J1` + query FeaturePopover($featureId: Int!) { + feature(id: $featureId) { + ...featurePopover + } +} + ${re}`;let mr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ba}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ea=t.J1` + query BrowseFeatures($featureName: String, $featureFullName: String, $therapyName: String, $featureAlias: String, $diseaseName: String, $featureType: FeatureInstanceTypes, $sortBy: FeaturesSort, $first: Int, $last: Int, $before: String, $after: String) { + browseFeatures( + featureName: $featureName + featureFullName: $featureFullName + therapyName: $therapyName + featureAlias: $featureAlias + diseaseName: $diseaseName + featureType: $featureType + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + edges { + cursor + node { + ...BrowseFeaturesFields + } + } + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + lastUpdated + totalCount + filteredCount + pageCount + } +} + ${ze}`;let Ys=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ea}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const hs=t.J1` + 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 + } +} + ${Ke}`;let vc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=hs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const da=t.J1` + query FlagPopover($flagId: Int!) { + flag(id: $flagId) { + ...flagPopover + } +} + ${Pe}`;let Wr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=da}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wi=t.J1` + query FusionMenu($genePartnerId: Int, $first: Int, $last: Int, $before: String, $after: String) { + fusions( + genePartnerId: $genePartnerId + first: $first + last: $last + before: $before + after: $after + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuFusion + } + } + } +} + ${Re}`;let Ws=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=wi}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const $a=t.J1` + query Quicksearch($query: String!, $types: [SearchableEntities!], $highlightMatches: Boolean) { + search(query: $query, types: $types, highlightMatches: $highlightMatches) { + ...QuicksearchResult + } +} + ${$}`;let ps=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=$a}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ha=t.J1` + query MolecularProfilePopover($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...molecularProfilePopoverFields + } +} + ${ce}`;let Kr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ha}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ta=t.J1` + query BrowseMolecularProfiles($molecularProfileName: String, $variantName: String, $variantId: Int, $featureName: String, $diseaseName: String, $therapyName: String, $molecularProfileAlias: String, $sortBy: MolecularProfilesSort, $first: Int, $last: Int, $before: String, $after: String) { + browseMolecularProfiles( + molecularProfileName: $molecularProfileName + variantName: $variantName + variantId: $variantId + featureName: $featureName + 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 + } +} + ${N}`;let Xr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ta}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ju=t.J1` + query MolecularProfileMenu($geneId: Int, $featureId: Int, $mpName: String, $first: Int, $last: Int, $before: String, $after: String, $evidenceStatusFilter: MolecularProfileDisplayFilter) { + molecularProfiles( + geneId: $geneId + featureId: $featureId + name: $mpName + evidenceStatusFilter: $evidenceStatusFilter + first: $first + last: $last + before: $before + after: $after + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuMolecularProfile + } + } + } +} + ${ke}`;let _l=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ju}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Uu=t.J1` + 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 + } + } + } +} + ${ve}`;let br=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Uu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ds=t.J1` + 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 + } + } + } +} + ${ve}`;let ja=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ds}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ha=t.J1` + 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 + } + } + } +} + ${ve}`;let jc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ha}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Os=t.J1` + 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 + } + } + } +} + ${ve}`;let Ua=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Os}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const _c=t.J1` + query OrgPopover($orgId: Int!) { + organization(id: $orgId) { + ...orgPopover + } +} + ${K}`;let Vi=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=_c}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const to=t.J1` + 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 + } + } + } +} + ${U}`;let yc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=to}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const pa=t.J1` + query PhenotypePopover($phenotypeId: Int!) { + phenotypePopover(id: $phenotypeId) { + id + name + url + hpoId + assertionCount + evidenceItemCount + molecularProfileCount + link + } +} + `;let Uc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=pa}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Gc=t.J1` + 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 + } + } + } +} + ${ge}`;let Is=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Gc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ks=t.J1` + mutation AcceptRevision($input: AcceptRevisionsInput!) { + acceptRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let co=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Ks}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ga=t.J1` + mutation RejectRevision($input: RejectRevisionsInput!) { + rejectRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let Cc=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Ga}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Go=t.J1` + query ValidateRevisionsForAcceptance($ids: [Int!]!) { + validateRevisionsForAcceptance(revisionIds: $ids) { + genericErrors + validationErrors { + ...validationError + } + } +} + ${qe}`;let Ar=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Go}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const na=t.J1` + query RevisionPopover($revisionId: Int!) { + revision(id: $revisionId) { + ...revisionPopover + } +} + ${rt}`;let fs=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=na}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const za=t.J1` + 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 + } + } + } +} + ${Ft}`;let bc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=za}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const W=t.J1` + query ContributorAvatars($subscribable: SubscribableInput!) { + contributors(subscribable: $subscribable) { + editors { + ...ContributorFields + } + curators { + ...ContributorFields + } + } +} + ${on}`;let it=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=W}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Te=t.J1` + query SubscriptionForEntity($subscribable: SubscribableInput!) { + subscriptionForEntity(subscribable: $subscribable) { + ...subscriptionId + } +} + ${Cn}`;let Ge=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Te}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Nt=t.J1` + mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { + moderateEvidenceItem(input: $input) { + evidenceItem { + id + } + } +} + `;let gn=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Nt}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Pn=t.J1` + mutation ModerateAssertion($input: ModerateAssertionInput!) { + moderateAssertion(input: $input) { + assertion { + id + } + } +} + `;let hi=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Pn}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const yo=t.J1` + query CivicStats { + timepointStats { + assertions { + ...TimepointCount + } + diseases { + ...TimepointCount + } + therapies { + ...TimepointCount + } + evidenceItems { + ...TimepointCount + } + features { + ...TimepointCount + } + revisions { + ...TimepointCount + } + sources { + ...TimepointCount + } + users { + ...TimepointCount + } + variants { + ...TimepointCount + } + comments { + ...TimepointCount + } + molecularProfiles { + ...TimepointCount + } + } +} + ${Zn}`;let Gi=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=yo}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const To=t.J1` + 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 + } + } + } +} + ${jn}`;let Xn=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=To}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` + mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;const Po=t.J1` + query SourcePopover($sourceId: Int!) { + sourcePopover(id: $sourceId) { + ...sourcePopover + } +} + ${Gn}`;let Qr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Po}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Rr=t.J1` + 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 + } + } + } +} + ${zi}`;let ws=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Rr}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ms=t.J1` + query TherapyPopover($therapyId: Int!) { + therapyPopover(id: $therapyId) { + id + name + therapyUrl + ncitId + therapyAliases + assertionCount + evidenceItemCount + molecularProfileCount + link + deprecated + } +} + `;let Br=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ms}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const gs=t.J1` + query TherapiesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $therapyAlias: String, $sortBy: TherapySort) { + therapies( + first: $first + last: $last + before: $before + after: $after + name: $name + ncitId: $ncitId + therapyAlias: $therapyAlias + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...TherapyBrowseTableRowFields + } + } + } +} + ${Oi}`;let vs=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=gs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ec=t.J1` + 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 + } + } + } +} + ${lo}`;let xs=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ec}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Tc=t.J1` + 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 + } + } + } +} + ${lo}`;let Yo=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Tc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ns=t.J1` + 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 + } + } + } +} + ${lo}`;let no=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ns}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ma=t.J1` + 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 + } + } + } +} + ${lo}`;let Ps=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ma}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const is=t.J1` + query UserPopover($userId: Int!) { + user(id: $userId) { + ...popoverUser + } +} + ${Zi}`;let Gu=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=is}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Yc=t.J1` + 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 + } + } + } +} + ${Bo}`;let Yu=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Yc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Or=t.J1` + query VariantGroupPopover($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...variantGroupPopoverFields + } +} + ${bo}`;let yl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Or}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ya=t.J1` + query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $featureNames: String, $variantNames: String) { + browseVariantGroups( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + featureNames: $featureNames + variantNames: $variantNames + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + lastUpdated + edges { + cursor + node { + ...BrowseVariantGroupRowFields + } + } + } +} + ${Mr}`;let H1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ya}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const zc=t.J1` + query VariantTypePopover($variantTypeId: Int!) { + variantTypePopover(id: $variantTypeId) { + ...variantTypePopover + } +} + ${rr}`;let Jr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=zc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const go=t.J1` + 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 + } + } + } +} + ${lt}`;let ar=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=go}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Wc=t.J1` + query CoordinatesCard($variantId: Int!) { + variant(id: $variantId) { + ...CoordinatesCardFields + } +} + ${mn}`;let fa=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Wc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ma=t.J1` + query VariantPopover($variantId: Int!) { + variant(id: $variantId) { + ...variantPopoverFields + } +} + ${hn}`;let Kc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ma}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Fs=t.J1` + query VariantsMenu($featureId: Int, $variantName: String, $variantTypeIds: [Int!], $hasNoVariantType: Boolean, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { + variants( + featureId: $featureId + 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 + } + } + } +} + ${En}`;let As=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Fs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const su=t.J1` + query VariantTypesForFeature($featureId: Int) { + variantTypes(featureId: $featureId, first: 50) { + edges { + node { + ...menuVariantType + } + } + } +} + ${Yn}`;let Xc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=su}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Xs=t.J1` + query BrowseVariants($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $variantTypeName: String, $hasNoVariantType: Boolean, $variantCategory: VariantCategories, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + browseVariants( + variantName: $variantName + featureName: $featureName + diseaseName: $diseaseName + therapyName: $therapyName + variantAlias: $variantAlias + variantTypeId: $variantTypeId + variantGroupId: $variantGroupId + variantTypeName: $variantTypeName + hasNoVariantType: $hasNoVariantType + category: $variantCategory + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseVariantsFields + } + } + totalCount + filteredCount + pageCount + lastUpdated + } +} + ${Kn}`;let Cl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Xs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Sa=t.J1` + query ViewerBase { + viewer { + id + username + role + displayName + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } + mostRecentConflictOfInterestStatement { + coiStatus + } + mostRecentOrganizationId + } +} + `;let Qc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Sa}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Mc=t.J1` + query ViewerNotificationCount { + notifications { + unreadCount + } +} + `;let os=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Mc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ga=t.J1` + mutation AddComment($input: AddCommentInput!) { + addComment(input: $input) { + clientMutationId + comment { + ...commentListNode + } + } +} + ${Xe}`;let au=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=ga}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Wu=t.J1` + query previewComment($commentText: String!) { + previewCommentText(commentText: $commentText) { + ...parsedCommentFragment + } +} + ${q}`;let _s=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Wu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const cu=t.J1` + query userTypeahead($queryTerm: String!) { + userTypeahead(queryTerm: $queryTerm) { + username + } +} + `;let Jc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=cu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const P=t.J1` + query entityTypeahead($queryTerm: String!) { + entityTypeahead(queryTerm: $queryTerm) { + entityId + tagType + displayName + } +} + `;let ae=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=P}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const k=t.J1` + mutation DeprecateComplexMolecularProfile($molecularProfileId: Int!, $deprecationReason: MolecularProfileDeprecationReasonMutationInput!, $comment: String!, $organizationId: Int) { + deprecateComplexMolecularProfile( + input: {molecularProfileId: $molecularProfileId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + molecularProfile { + id + name + } + } +} + `;let le=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=k}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const $e=t.J1` + query EvidenceCountsForMolecularProfile($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + id + name + link + evidenceCountsByStatus { + submittedCount + acceptedCount + } + } +} + `;let mt=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=$e}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` + query LinkableGene($geneId: Int!) { + gene(id: $geneId) { + id + name + link + } +} + `,t.J1` + query LinkableVariant($variantId: Int!) { + variant(id: $variantId) { + id + name + link + } +} + `,t.J1` + query LinkableTherapy($therapyId: Int!) { + therapy(id: $therapyId) { + id + name + link + } +} + `,t.J1` + query LinkableFeature($featureId: Int!) { + feature(id: $featureId) { + id + name + link + featureType + } +} + `;const Er=t.J1` + mutation DeprecateFeature($featureId: Int!, $deprecationReason: FeatureDeprecationReason!, $comment: String!, $organizationId: Int) { + deprecateFeature( + input: {featureId: $featureId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + feature { + id + name + } + } +} + `;let Hi=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Er}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const So=t.J1` + query VariantsForFeature($featureId: Int!) { + variants(featureId: $featureId, first: 50) { + nodes { + id + name + link + deprecated + flagged + } + } +} + `;let er=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=So}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ia=t.J1` + mutation FlagEntity($input: FlagEntityInput!) { + flagEntity(input: $input) { + flag { + id + } + } +} + `;let tr=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=ia}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const bl=t.J1` + mutation ResolveFlag($input: ResolveFlagInput!) { + resolveFlag(input: $input) { + flag { + id + } + } +} + `;let El=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=bl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Tl=t.J1` + mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;let Jd=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Tl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Zd=t.J1` + mutation UpdateCoi($input: UpdateCoiInput!) { + updateCoi(input: $input) { + coiStatement { + coiPresent + coiStatus + createdAt + id + } + } +} + `;let zl=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Zd}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const j1=t.J1` + mutation UpdateUserProfile($input: EditUserInput!) { + editUser(input: $input) { + user { + id + } + } +} + `;let Sc=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=j1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const lu=t.J1` + query Countries { + countries { + id + name + } +} + `;let Zc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=lu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const U1=t.J1` + mutation DeprecateVariant($variantId: Int!, $deprecationReason: VariantDeprecationReason!, $comment: String!, $organizationId: Int) { + deprecateVariant( + input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + newlyDeprecatedMolecularProfiles { + id + } + variant { + id + name + } + } +} + `;let Ml=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=U1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ku=t.J1` + query MolecularProfilesForVariant($variantId: Int!) { + molecularProfiles(variantId: $variantId, first: 50) { + nodes { + id + name + link + evidenceCountsByStatus { + submittedCount + acceptedCount + } + deprecated + flagged + } + } +} + `;let Sl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ku}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const uu=t.J1` + query AssertionRevisableFields($assertionId: Int!) { + assertion(id: $assertionId) { + ...RevisableAssertionFields + } +} + ${oi}`;let du=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=uu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Da=t.J1` + mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { + suggestAssertionRevision(input: $input) { + clientMutationId + assertion { + id + } + results { + newlyCreated + } + } +} + `;let Xu=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Da}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Dl=t.J1` + mutation SubmitAssertion($input: SubmitAssertionInput!) { + submitAssertion(input: $input) { + clientMutationId + assertion { + id + } + } +} + `;let qc=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Dl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Qu=t.J1` + query EvidenceItemRevisableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...RevisableEvidenceFields + } +} + ${Mi}`;let Ol=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Qu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const el=t.J1` + mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { + suggestEvidenceItemRevision(input: $input) { + clientMutationId + evidenceItem { + id + } + results { + newlyCreated + } + } +} + `;let Cs=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=el}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` + 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 + deprecated + } + } +} + `,t.J1` + query EvidenceSubmittableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...SubmittableEvidenceFields + } +} + ${Ni}`;const hu=t.J1` + mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { + submitEvidence(input: $input) { + clientMutationId + evidenceItem { + id + } + } +} + `;let Wa=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=hu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Zu=t.J1` + query ExistingEvidenceCount($molecularProfileId: Int!, $sourceId: Int!) { + evidenceItems(molecularProfileId: $molecularProfileId, sourceId: $sourceId) { + totalCount + } +} + `;let qu=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Zu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const e1=t.J1` + query FullyCuratedSource($sourceId: Int!) { + source(id: $sourceId) { + fullyCurated + } +} + `;let Il=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=e1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const pu=t.J1` + query FactorRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableFactorFields + } +} + ${so}`;let fu=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=pu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const tl=t.J1` + mutation SuggestFactorRevision($input: SuggestFactorRevisionInput!) { + suggestFactorRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `;let Ka=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=tl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const t1=t.J1` + query FactorVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on FactorVariant { + ...RevisableFactorVariantFields + } + } +} + ${Yi}`;let n1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=t1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const gr=t.J1` + mutation SuggestFactorVariantRevision($input: SuggestFactorVariantRevisionInput!) { + suggestFactorVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `;let mu=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=gr}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const gu=t.J1` + query FusionRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableFusionFields + } +} + ${Xo}`;let Oc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=gu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const o1=t.J1` + mutation SuggestFusionRevision($input: SuggestFusionRevisionInput!) { + suggestFusionRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `;let r1=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=o1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const s1=t.J1` + query FusionVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on FusionVariant { + ...RevisableFusionVariantFields + } + } +} + ${Ki}`;let a1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=s1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const c1=t.J1` + mutation SuggestFusionVariantRevision($input: SuggestFusionVariantRevisionInput!) { + suggestFusionVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `;let l1=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=c1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wl=t.J1` + query GeneRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableGeneFields + } +} + ${Zo}`;let nl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=wl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const No=t.J1` + mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { + suggestGeneRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `;let ni=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=No}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Pi=t.J1` + query GeneVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on GeneVariant { + ...RevisableGeneVariantFields + } + } +} + ${pr}`;let cr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Pi}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Rs=t.J1` + mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { + suggestGeneVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `;let Ir=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Rs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const $r=t.J1` + query MolecularProfileRevisableFields($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...RevisableMolecularProfileFields + } +} + ${fo}`;let Xa=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=$r}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ko=t.J1` + mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { + suggestMolecularProfileRevision(input: $input) { + clientMutationId + molecularProfile { + id + } + results { + newlyCreated + id + fieldName + } + } +} + `;let lr=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=ko}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ns=t.J1` + mutation SubmitSource($input: SuggestSourceInput!) { + suggestSource(input: $input) { + clientMutationId + sourceSuggestion { + id + } + } +} + `;let Ri=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Ns}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Oa=t.J1` + query SourceSuggestionChecks($sourceId: Int!) { + source(id: $sourceId) { + fullyCurated + } + sourceSuggestions(sourceId: $sourceId) { + filteredCount + } +} + `;let xl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Oa}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Qa=t.J1` + query VariantGroupRevisableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupRevisableFields + } +} + ${po}`;let Wo=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Qa}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Qs=t.J1` + mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { + suggestVariantGroupRevision(input: $input) { + clientMutationId + variantGroup { + id + } + results { + newlyCreated + id + fieldName + } + } +} + `;let Ja=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Qs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` + query VariantGroupSubmittableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...SubmittableVariantGroupFields + } +} + ${fr}`;const vu=t.J1` + mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { + submitVariantGroup(input: $input) { + clientMutationId + variantGroup { + id + } + } +} + `;let ks=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=vu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const il=t.J1` + 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 bs=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=il}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ti=t.J1` + query AcmgCodeSelectTypeahead($code: String!) { + acmgCodesTypeahead(queryTerm: $code) { + ...AcmgCodeSelectTypeaheadFields + } +} + ${$o}`;let Pl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ti}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wc=t.J1` + query AcmgCodeSelectTag($id: Int!) { + acmgCode(id: $id) { + ...AcmgCodeSelectTypeaheadFields + } +} + ${$o}`;let Js=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=wc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ol=t.J1` + query ClingenCodeSelectTypeahead($code: String!) { + clingenCodesTypeahead(queryTerm: $code) { + ...ClingenCodeSelectTypeaheadFields + } +} + ${Lr}`;let Za=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ol}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const or=t.J1` + query ClingenCodeSelectTag($id: Int!) { + clingenCode(id: $id) { + ...ClingenCodeSelectTypeaheadFields + } +} + ${Lr}`;let rl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=or}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Tr=t.J1` + mutation QuickAddDisease($name: String!, $doid: String) { + addDisease(input: {name: $name, doid: $doid}) { + ...QuickAddDiseaseFields + } +} + ${qi}`;let Nr=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Tr}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Fl=t.J1` + query DiseaseSelectTypeahead($name: String!) { + diseaseTypeahead(queryTerm: $name) { + ...DiseaseSelectTypeaheadFields + } +} + ${ro}`;let Ia=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Fl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const sl=t.J1` + query DiseaseSelectTag($id: Int!) { + disease(id: $id) { + ...DiseaseSelectTypeaheadFields + } +} + ${ro}`;let Zr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=sl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const xc=t.J1` + 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 + } + } +} + ${xn}`;let u1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=xc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const d1=t.J1` + query EvidenceSelectTypeahead($eid: Int!) { + evidenceItems(id: $eid) { + nodes { + ...EvidenceSelectTypeaheadFields + } + } +} + ${Ci}`;let Al=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=d1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const _u=t.J1` + query EvidenceSelectTag($eid: Int!) { + evidenceItem(id: $eid) { + ...EvidenceSelectTypeaheadFields + } +} + ${Ci}`;let h1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=_u}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const al=t.J1` + mutation QuickAddFeature($name: String!, $organizationId: Int, $featureType: CreateableFeatureTypes!) { + createFeature( + input: {name: $name, organizationId: $organizationId, featureType: $featureType} + ) { + ...QuickAddFeatureFields + } +} + ${Ce}`;let W1=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=al}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const qd=t.J1` + query FeatureSelectTypeahead($queryTerm: String!, $featureType: FeatureInstanceTypes) { + featureTypeahead(queryTerm: $queryTerm, featureType: $featureType) { + ...FeatureSelectTypeaheadFields + } +} + ${Ve}`;let K1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=qd}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const X1=t.J1` + query FeatureSelectTag($featureId: Int!) { + feature(id: $featureId) { + ...FeatureSelectTypeaheadFields + } +} + ${Ve}`;let Q1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=X1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const J1=t.J1` + mutation SelectOrCreateFusion($organizationId: Int, $fivePrimeGeneId: Int, $fivePrimePartnerStatus: FusionPartnerStatus!, $threePrimeGeneId: Int, $threePrimePartnerStatus: FusionPartnerStatus!) { + createFusionFeature( + input: {organizationId: $organizationId, fivePrimeGene: {geneId: $fivePrimeGeneId, partnerStatus: $fivePrimePartnerStatus}, threePrimeGene: {geneId: $threePrimeGeneId, partnerStatus: $threePrimePartnerStatus}} + ) { + new + feature { + ...FeatureSummaryFields + } + } +} + ${tt}`;let Z1=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=J1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const q1=t.J1` + query MolecularProfileSelectTypeahead($name: String!, $geneId: Int) { + molecularProfiles(name: $name, geneId: $geneId, first: 25) { + nodes { + ...MolecularProfileSelectTypeaheadFields + } + } +} + ${gi}`;let ed=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=q1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const td=t.J1` + query MolecularProfileSelectTag($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...MolecularProfileSelectTypeaheadFields + } +} + ${gi}`;let nd=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=td}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const id=t.J1` + query PreviewMolecularProfileName2($mpStructure: MolecularProfileComponentInput) { + previewMolecularProfileName(structure: $mpStructure) { + existingMolecularProfile { + id + name + link + deprecated + flagged + } + segments { + ...PreviewMpName2 + } + deprecatedVariants { + id + name + link + deprecated + flagged + } + } +} + ${nt}`;let yu=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=id}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const p1=t.J1` + query MpExpressionEditorPrepopulate($mpId: Int!) { + molecularProfile(id: $mpId) { + id + parsedName { + ...MolecularProfileParsedName + } + rawName + deprecated + flagged + } +} + ${On}`;let od=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=p1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const rd=t.J1` + mutation CreateMolecularProfile2($mpStructure: MolecularProfileComponentInput!, $organizationId: Int) { + createMolecularProfile( + input: {structure: $mpStructure, organizationId: $organizationId} + ) { + molecularProfile { + id + name + link + deprecated + flagged + } + } +} + `;let sd=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=rd}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Hr=t.J1` + query NccnGuidelineSelectTypeahead($name: String!) { + nccnGuidelinesTypeahead(queryTerm: $name) { + ...NccnGuidelineSelectTypeaheadFields + } +} + ${Mt}`;let Rl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Hr}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Cu=t.J1` + query NccnGuidelineSelectTag($id: Int!) { + nccnGuideline(id: $id) { + ...NccnGuidelineSelectTypeaheadFields + } +} + ${Mt}`;let Nl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Cu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const kl=t.J1` + query PhenotypeSelectTypeahead($name: String!) { + phenotypeTypeahead(queryTerm: $name) { + ...PhenotypeSelectTypeaheadFields + } +} + ${pn}`;let f1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=kl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const m1=t.J1` + query PhenotypeSelectTag($id: Int!) { + phenotype(id: $id) { + ...PhenotypeSelectTypeaheadFields + } +} + ${pn}`;let Vl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=m1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ll=t.J1` + query QuickAddSourceCheckCitation($sourceType: SourceSource!, $citationId: String!) { + remoteCitation(sourceType: $sourceType, citationId: $citationId) +} + `;let bu=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ll}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Pc=t.J1` + mutation QuickAddSourceRemoteCitation($input: AddRemoteCitationInput!) { + addRemoteCitation(input: $input) { + newSource { + id + citationId + sourceType + } + } +} + `;let g1=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Pc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Vs=t.J1` + query SourceSelectTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { + sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { + ...SourceSelectTypeaheadFields + } +} + ${$i}`;let Bl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Vs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const $l=t.J1` + query SourceSelectTag($id: Int!) { + source(id: $id) { + ...SourceSelectTypeaheadFields + } +} + ${$i}`;let vo=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=$l}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const cl=t.J1` + mutation QuickAddTherapy($name: String!, $ncitId: String) { + addTherapy(input: {name: $name, ncitId: $ncitId}) { + ...QuickAddTherapyFields + } +} + ${Wt}`;let qa=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=cl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const jr=t.J1` + query TherapySelectTypeahead($name: String!) { + therapyTypeahead(queryTerm: $name) { + ...TherapySelectTypeaheadFields + } +} + ${vi}`;let eh=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=jr}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Hl=t.J1` + query TherapySelectTag($id: Int!) { + therapy(id: $id) { + ...TherapySelectTypeaheadFields + } +} + ${vi}`;let Fc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Hl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Es=t.J1` + mutation SelectOrCreateFusionVariant($organizationId: Int, $featureId: Int!, $coordinates: FusionVariantInput!) { + createFusionVariant( + input: {organizationId: $organizationId, featureId: $featureId, coordinates: $coordinates} + ) { + ...CreateFusionVariantFields + } +} + ${rn}`;let ad=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Es}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Eu=t.J1` + query VariantManager($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + browseVariants( + variantName: $variantName + featureName: $featureName + 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 + } +} + ${Kn}`;let th=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Eu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ls=t.J1` + mutation QuickAddVariant($name: String!, $featureId: Int!, $organizationId: Int) { + createVariant( + input: {name: $name, featureId: $featureId, organizationId: $organizationId} + ) { + ...QuickAddVariantFields + } +} + ${Mn}`;let v1=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Ls}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const jl=t.J1` + query VariantSelectTypeahead($name: String!, $featureId: Int) { + variantsTypeahead(queryTerm: $name, featureId: $featureId) { + ...VariantSelectTypeaheadFields + } +} + ${tn}`;let _1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=jl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Bs=t.J1` + query VariantSelectTag($variantId: Int!) { + variant(id: $variantId) { + ... on Variant { + ...VariantSelectTypeaheadFields + } + ... on GeneVariant { + ...VariantSelectTypeaheadFields + } + ... on FactorVariant { + ...VariantSelectTypeaheadFields + } + ... on FusionVariant { + ...VariantSelectTypeaheadFields + } + } +} + ${tn}`;let ec=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Bs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ul=t.J1` + query VariantTypeSelectTypeahead($name: String!) { + variantTypeTypeahead(queryTerm: $name) { + ...VariantTypeSelectTypeaheadFields + } +} + ${Ln}`;let Gl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ul}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Tu=t.J1` + query VariantTypeSelectTag($id: Int!) { + variantType(id: $id) { + ...VariantTypeSelectTypeaheadFields + } +} + ${Ln}`;let Zs=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Tu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ji=t.J1` + query AssertionDetail($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionDetailFields + } +} + ${Qn}`;let Yl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ji}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Wl=t.J1` + query AssertionSummary($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionSummaryFields + } +} + ${qn}`;let y1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Wl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const cd=t.J1` + query ClinicalTrialDetail($clinicalTrialId: Int!) { + clinicalTrial(id: $clinicalTrialId) { + id + name + nctId + description + url + link + } +} + `;let C1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=cd}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ld=t.J1` + query ClinicalTrialSummary($clinicalTrialId: Int!) { + clinicalTrial(id: $clinicalTrialId) { + id + name + nctId + description + url + link + } +} + `;let ud=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ld}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const b1=t.J1` + query DiseaseDetail($diseaseId: Int!) { + disease(id: $diseaseId) { + id + name + doid + diseaseUrl + displayName + diseaseAliases + link + deprecated + } +} + `;let tc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=b1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const dd=t.J1` + query DiseasesSummary($diseaseId: Int!) { + disease(id: $diseaseId) { + ...DiseasesSummaryFields + } +} + ${ei}`;let hd=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=dd}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const pd=t.J1` + query EvidenceDetail($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceDetailFields + } +} + ${ci}`;let fd=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=pd}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const md=t.J1` + query EvidenceSummary($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceSummaryFields + } +} + ${mi}`;let Dn=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=md}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const oo=t.J1` + query FeatureDetail($featureId: Int!) { + feature(id: $featureId) { + ...FeatureDetailFields + } +} + ${Ei}`;let E1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=oo}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const T1=t.J1` + query FeaturesSummary($featureId: Int!) { + feature(id: $featureId) { + ...FeatureSummaryFields + } +} + ${tt}`;let Io=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=T1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ll=t.J1` + query MolecularProfileDetail($mpId: Int!) { + molecularProfile(id: $mpId) { + ...MolecularProfileDetailFields + } +} + ${Xi}`;let ri=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ll}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ho=t.J1` + query MolecularProfileSummary($mpId: Int!) { + molecularProfile(id: $mpId) { + ...MolecularProfileSummaryFields + } +} + ${_o}`;let nc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ho}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ac=t.J1` + query OrganizationDetail($organizationId: Int!) { + organization(id: $organizationId) { + ...OrganizationDetailFields + } +} + ${ir}`;let ul=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Ac}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const zu=t.J1` + query OrganizationGroups($organizationId: Int!) { + organization(id: $organizationId) { + subGroups { + ...OrganizationGroupsFields + } + } +} + ${Ur}`;let Kl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=zu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ra=t.J1` + 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 + } + } + } +} + ${Do}`;let z1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ra}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Mu=t.J1` + query PhenotypeDetail($phenotypeId: Int!) { + phenotype(id: $phenotypeId) { + id + name + description + hpoId + url + link + } +} + `;let qr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Mu}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const sa=t.J1` + query DataReleases { + dataReleases { + ...Release + } +} + ${Qo}`;let Su=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=sa}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const qs=t.J1` + query SourceDetail($sourceId: Int!) { + source(id: $sourceId) { + ...SourceDetailFields + } +} + ${Dr}`;let ea=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=qs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const dl=t.J1` + query SourceSummary($sourceId: Int!) { + source(id: $sourceId) { + ...SourceSummaryFields + } +} + ${_r}`;let M1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=dl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Li=t.J1` + query TherapyDetail($therapyId: Int!) { + therapy(id: $therapyId) { + id + name + ncitId + therapyUrl + therapyAliases + link + deprecated + } +} + `;let S1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Li}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ic=t.J1` + query TherapiesSummary($therapyId: Int!) { + therapy(id: $therapyId) { + ...TherapiesSummaryFields + } +} + ${sr}`;let Xl=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=ic}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wa=t.J1` + query UserDetail($userId: Int!) { + user(id: $userId) { + ...UserDetailFields + } +} + ${Ao}`;let Rc=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=wa}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const rs=t.J1` + 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 + } + } + } +} + ${Uo} +${Fr} +${Ms} +${Gr}`;let D1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=rs}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Du=t.J1` + mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { + updateNotificationStatus(input: $input) { + notifications { + ...notificationNode + } + } +} + ${Gr}`;let Ql=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=Du}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const hl=t.J1` + mutation Unsubscribe($input: UnsubscribeInput!) { + unsubscribe(input: $input) { + unsubscribedEntities { + ...subscribable + } + } +} + ${Mo}`;let Jo=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=hl}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ur=t.J1` + mutation Subscribe($input: SubscribeInput!) { + subscribe(input: $input) { + subscriptions { + id + } + } +} + `;let oc=(()=>{class m extends t.sM{constructor(Ie){super(Ie),this.document=ur}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const O1=t.J1` + query VariantGroupDetail($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupDetailFields + } +} + ${Ss}`;let wr=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=O1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const rc=t.J1` + query VariantGroupsSummary($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupSummaryFields + } +} + ${ds}`;let Vo=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=rc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const I1=t.J1` + query VariantTypeDetail($variantTypeId: Int!) { + variantType(id: $variantTypeId) { + id + name + soid + description + url + link + } +} + `;let w1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=I1}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const xa=t.J1` + query VariantDetail($variantId: Int!) { + variant(id: $variantId) { + ...VariantDetailFields + } +} + ${Ze}`;let Ou=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=xa}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const sc=t.J1` + query CoordinateIdsForVariant($variantId: Int!) { + variant(id: $variantId) { + ...VariantCoordinateIds + } +} + ${Fn}`;let x1=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=sc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Nc=t.J1` + query VariantSummary($variantId: Int!) { + variant(id: $variantId) { + ...VariantSummaryFields + } +} + ${fe}`;let Ts=(()=>{class m extends t.XK{constructor(Ie){super(Ie),this.document=Nc}static#e=this.\u0275fac=function(pt){return new(pt||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()},5312:(Rt,De,c)=>{c.d(De,{c:()=>t});const t={production:!0}},5500:(Rt,De,c)=>{var t=c(345),r=c(3953),g=c(1985),e=c(7707),M=c(7673),G=c(9030),L=c(7786),B=c(5343);const A=new g.c(B.l);var I=c(1413),F=c(7468),X=c(4412),V=c(8359),x=c(4668),ne=c(983),J=c(8810),be=c(8071);class he{constructor(d,p,v){this.kind=d,this.value=p,this.error=v,this.hasValue="N"===d}observe(d){return we(this,d)}do(d,p,v){const{kind:C,value:O,error:Q}=this;return"N"===C?d?.(O):"E"===C?p?.(Q):v?.()}accept(d,p,v){var C;return(0,be.T)(null===(C=d)||void 0===C?void 0:C.next)?this.observe(d):this.do(d,p,v)}toObservable(){const{kind:d,value:p,error:v}=this,C="N"===d?(0,M.of)(p):"E"===d?(0,J.$)(()=>v):"C"===d?ne.w:0;if(!C)throw new TypeError(`Unexpected notification kind ${d}`);return C}static createNext(d){return new he("N",d)}static createError(d){return new he("E",void 0,d)}static createComplete(){return he.completeNotification}}function we(T,d){var p,v,C;const{kind:O,value:Q,error:Me}=T;if("string"!=typeof O)throw new TypeError('Invalid notification, missing "kind"');"N"===O?null===(p=d.next)||void 0===p||p.call(d,Q):"E"===O?null===(v=d.error)||void 0===v||v.call(d,Me):null===(C=d.complete)||void 0===C||C.call(d)}he.completeNotification=new he("C");var me=c(9974),de=c(4360),Z=c(3703),pe=function(){},E=pe;function R(T){E=T||pe}var Y=console;function se(T){if(T.error&&T.group&&T.groupCollapsed&&T.groupEnd&&T.warn)return T;var p=0;return{error:function(O){for(var Q=arguments.length,Me=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),yt=2;yt"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 C,v=Yt(T);if(d){var O=Yt(this).constructor;C=Reflect.construct(v,arguments,O)}else C=v.apply(this,arguments);return function _e(T,d){return!d||"object"!=typeof d&&"function"!=typeof d?ie(T):d}(this,C)}}function et(T){return function ut(T){if(Array.isArray(T))return kn(T)}(T)||function cn(T){if(typeof Symbol<"u"&&null!=T[Symbol.iterator]||null!=T["@@iterator"])return Array.from(T)}(T)||Wn(T)||function Vn(){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 Wn(T,d){if(T){if("string"==typeof T)return kn(T,d);var p=Object.prototype.toString.call(T).slice(8,-1);if("Object"===p&&T.constructor&&(p=T.constructor.name),"Map"===p||"Set"===p)return Array.from(T);if("Arguments"===p||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return kn(T,d)}}function kn(T,d){(null==d||d>T.length)&&(d=T.length);for(var p=0,v=new Array(d);p-1&&(yt=yt.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var Dt=yt.replace(/^\s+/,"").replace(/\(eval code/g,"("),Bt=Dt.match(/ (\((.+):(\d+):(\d+)\)$)/),Ht=(Dt=Bt?Dt.replace(Bt[0],""):Dt).split(/\s+/).slice(1),Xt=this.extractLocation(Bt?Bt[1]:Ht.pop()),Zt=Ht.join(" ")||void 0,vn=["eval",""].indexOf(Xt[0])>-1?void 0:Xt[0];return new v({functionName:Zt,fileName:vn,lineNumber:Xt[1],columnNumber:Xt[2],source:yt})},this)},parseFFOrSafari:function(xe){return xe.stack.split("\n").filter(function(yt){return!yt.match(Q)},this).map(function(yt){if(yt.indexOf(" > eval")>-1&&(yt=yt.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===yt.indexOf("@")&&-1===yt.indexOf(":"))return new v({functionName:yt});var Dt=/((.*".+"[^@]*)?[^@]*)(?:@)/,Bt=yt.match(Dt),Ht=Bt&&Bt[1]?Bt[1]:void 0,Xt=this.extractLocation(yt.replace(Dt,""));return new v({functionName:Ht,fileName:Xt[0],lineNumber:Xt[1],columnNumber:Xt[2],source:yt})},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 ot=/Line (\d+).*script (?:in )?(\S+)/i,yt=xe.message.split("\n"),Dt=[],Bt=2,Ht=yt.length;Bt/,"$2").replace(/\([^)]*\)/g,"")||void 0;Ht.match(/\(([^)]*)\)/)&&(Zt=Ht.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var vn=void 0===Zt||"[arguments not available]"===Zt?void 0:Zt.split(",");return new v({functionName:Xt,args:vn,fileName:Bt[0],lineNumber:Bt[1],columnNumber:Bt[2],source:yt})},this)}})}),te=On(function(T,d){d.getArg=function p(an,_n,ti){if(_n in an)return an[_n];if(3===arguments.length)return ti;throw new Error('"'+_n+'" is a required argument.')};var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,C=/^data:.+\,.+$/;function O(an){var _n=an.match(v);return _n?{scheme:_n[1],auth:_n[2],host:_n[3],port:_n[4],path:_n[5]}:null}function Q(an){var _n="";return an.scheme&&(_n+=an.scheme+":"),_n+="//",an.auth&&(_n+=an.auth+"@"),an.host&&(_n+=an.host),an.port&&(_n+=":"+an.port),an.path&&(_n+=an.path),_n}function Me(an){var _n=an,ti=O(an);if(ti){if(!ti.path)return an;_n=ti.path}for(var Bi,Jn=d.isAbsolute(_n),bi=_n.split(/\/+/),nr=0,vr=bi.length-1;vr>=0;vr--)"."===(Bi=bi[vr])?bi.splice(vr,1):".."===Bi?nr++:nr>0&&(""===Bi?(bi.splice(vr+1,nr),nr=0):(bi.splice(vr,2),nr--));return""===(_n=bi.join("/"))&&(_n=Jn?"/":"."),ti?(ti.path=_n,Q(ti)):_n}d.urlParse=O,d.urlGenerate=Q,d.normalize=Me,d.join=function xe(an,_n){""===an&&(an="."),""===_n&&(_n=".");var ti=O(_n),Jn=O(an);if(Jn&&(an=Jn.path||"/"),ti&&!ti.scheme)return Jn&&(ti.scheme=Jn.scheme),Q(ti);if(ti||_n.match(C))return _n;if(Jn&&!Jn.host&&!Jn.path)return Jn.host=_n,Q(Jn);var bi="/"===_n.charAt(0)?_n:Me(an.replace(/\/+$/,"")+"/"+_n);return Jn?(Jn.path=bi,Q(Jn)):bi},d.isAbsolute=function(an){return"/"===an.charAt(0)||!!an.match(v)},d.relative=function ot(an,_n){""===an&&(an="."),an=an.replace(/\/$/,"");for(var ti=0;0!==_n.indexOf(an+"/");){var Jn=an.lastIndexOf("/");if(Jn<0||(an=an.slice(0,Jn)).match(/^([^\/]+:\/)?\/*$/))return _n;++ti}return Array(ti+1).join("../")+_n.substr(an.length+1)};var yt=!("__proto__"in Object.create(null));function Dt(an){return an}function Xt(an){if(!an)return!1;var _n=an.length;if(_n<9||95!==an.charCodeAt(_n-1)||95!==an.charCodeAt(_n-2)||111!==an.charCodeAt(_n-3)||116!==an.charCodeAt(_n-4)||111!==an.charCodeAt(_n-5)||114!==an.charCodeAt(_n-6)||112!==an.charCodeAt(_n-7)||95!==an.charCodeAt(_n-8)||95!==an.charCodeAt(_n-9))return!1;for(var ti=_n-10;ti>=0;ti--)if(36!==an.charCodeAt(ti))return!1;return!0}function Sn(an,_n){return an===_n?0:an>_n?1:-1}d.toSetString=yt?Dt:function Bt(an){return Xt(an)?"$"+an:an},d.fromSetString=yt?Dt:function Ht(an){return Xt(an)?an.slice(1):an},d.compareByOriginalPositions=function Zt(an,_n,ti){var Jn=an.source-_n.source;return 0!==Jn||0!=(Jn=an.originalLine-_n.originalLine)||0!=(Jn=an.originalColumn-_n.originalColumn)||ti||0!=(Jn=an.generatedColumn-_n.generatedColumn)||0!=(Jn=an.generatedLine-_n.generatedLine)?Jn:an.name-_n.name},d.compareByGeneratedPositionsDeflated=function vn(an,_n,ti){var Jn=an.generatedLine-_n.generatedLine;return 0!==Jn||0!=(Jn=an.generatedColumn-_n.generatedColumn)||ti||0!=(Jn=an.source-_n.source)||0!=(Jn=an.originalLine-_n.originalLine)||0!=(Jn=an.originalColumn-_n.originalColumn)?Jn:an.name-_n.name},d.compareByGeneratedPositionsInflated=function ai(an,_n){var ti=an.generatedLine-_n.generatedLine;return 0!==ti||0!=(ti=an.generatedColumn-_n.generatedColumn)||0!==(ti=Sn(an.source,_n.source))||0!=(ti=an.originalLine-_n.originalLine)||0!=(ti=an.originalColumn-_n.originalColumn)?ti:Sn(an.name,_n.name)}}),q=On(function(T,d){function p(v,C,O,Q,Me,xe){var ot=Math.floor((C-v)/2)+v,yt=Me(O,Q[ot],!0);return 0===yt?ot:yt>0?C-ot>1?p(ot,C,O,Q,Me,xe):xe==d.LEAST_UPPER_BOUND?C1?p(v,ot,O,Q,Me,xe):xe==d.LEAST_UPPER_BOUND?ot:v<0?-1:v}d.GREATEST_LOWER_BOUND=1,d.LEAST_UPPER_BOUND=2,d.search=function(C,O,Q,Me){if(0===O.length)return-1;var xe=p(-1,O.length,C,O,Q,Me||d.GREATEST_LOWER_BOUND);if(xe<0)return-1;for(;xe-1>=0&&0===Q(O[xe],O[xe-1],!0);)--xe;return xe}}),Xe=Object.prototype.hasOwnProperty;function dt(){this._array=[],this._set=Object.create(null)}dt.fromArray=function(d,p){for(var v=new dt,C=0,O=d.length;C=0&&d=C)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(xe=re_decode(d.charCodeAt(p++))))throw new Error("Invalid base64 digit: "+d.charAt(p-1));Me=!!(32&xe),O+=(xe&=31)<>1;return 1&~T?p:-p}(O),v.rest=p};function ve(T,d,p){var v=T[d];T[d]=T[p],T[p]=v}function U(T,d,p,v){if(p=0){var Q=this._originalMappings[O];if(void 0===d.column)for(var Me=Q.originalLine;Q&&Q.originalLine===Me;)C.push({line:te.getArg(Q,"generatedLine",null),column:te.getArg(Q,"generatedColumn",null),lastColumn:te.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++O];else for(var xe=Q.originalColumn;Q&&Q.originalLine===p&&Q.originalColumn==xe;)C.push({line:te.getArg(Q,"generatedLine",null),column:te.getArg(Q,"generatedColumn",null),lastColumn:te.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++O]}return C};var Cn=on;function Zn(T){var d=T;"string"==typeof T&&(d=JSON.parse(T.replace(/^\)\]\}'/,"")));var p=te.getArg(d,"version"),v=te.getArg(d,"sources"),C=te.getArg(d,"names",[]),O=te.getArg(d,"sourceRoot",null),Q=te.getArg(d,"sourcesContent",null),Me=te.getArg(d,"mappings"),xe=te.getArg(d,"file",null);if(p!=this._version)throw new Error("Unsupported version: "+p);v=v.map(String).map(te.normalize).map(function(ot){return O&&te.isAbsolute(O)&&te.isAbsolute(ot)?te.relative(O,ot):ot}),this._names=rt.fromArray(C.map(String),!0),this._sources=rt.fromArray(v,!0),this.sourceRoot=O,this.sourcesContent=Q,this._mappings=Me,this.file=xe}function jn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}(Zn.prototype=Object.create(on.prototype)).consumer=on,Zn.fromSourceMap=function(d){var p=Object.create(Zn.prototype),v=p._names=rt.fromArray(d._names.toArray(),!0),C=p._sources=rt.fromArray(d._sources.toArray(),!0);p.sourceRoot=d._sourceRoot,p.sourcesContent=d._generateSourcesContent(p._sources.toArray(),p.sourceRoot),p.file=d._file;for(var O=d._mappings.toArray().slice(),Q=p.__generatedMappings=[],Me=p.__originalMappings=[],xe=0,ot=O.length;xe1&&(Zt.source=Me+Sn[1],Me+=Sn[1],Zt.originalLine=O+Sn[2],O=Zt.originalLine,Zt.originalLine+=1,Zt.originalColumn=Q+Sn[3],Q=Zt.originalColumn,Sn.length>4&&(Zt.name=xe+Sn[4],xe+=Sn[4])),Xt.push(Zt),"number"==typeof Zt.originalLine&&Ht.push(Zt)}Ft(Xt,te.compareByGeneratedPositionsDeflated),this.__generatedMappings=Xt,Ft(Ht,te.compareByOriginalPositions),this.__originalMappings=Ht},Zn.prototype._findMapping=function(d,p,v,C,O,Q){if(d[v]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[v]);if(d[C]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[C]);return q.search(d,p,O,Q)},Zn.prototype.computeColumnSpans=function(){for(var d=0;d=0){var C=this._generatedMappings[v];if(C.generatedLine===p.generatedLine){var O=te.getArg(C,"source",null);null!==O&&(O=this._sources.at(O),null!=this.sourceRoot&&(O=te.join(this.sourceRoot,O)));var Q=te.getArg(C,"name",null);return null!==Q&&(Q=this._names.at(Q)),{source:O,line:te.getArg(C,"originalLine",null),column:te.getArg(C,"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(d){return null==d})},Zn.prototype.sourceContentFor=function(d,p){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(d=te.relative(this.sourceRoot,d)),this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];var v;if(null!=this.sourceRoot&&(v=te.urlParse(this.sourceRoot))){var C=d.replace(/^file:\/\//,"");if("file"==v.scheme&&this._sources.has(C))return this.sourcesContent[this._sources.indexOf(C)];if((!v.path||"/"==v.path)&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(p)return null;throw new Error('"'+d+'" is not in the SourceMap.')},Zn.prototype.generatedPositionFor=function(d){var p=te.getArg(d,"source");if(null!=this.sourceRoot&&(p=te.relative(this.sourceRoot,p)),!this._sources.has(p))return{line:null,column:null,lastColumn:null};var v={source:p=this._sources.indexOf(p),originalLine:te.getArg(d,"line"),originalColumn:te.getArg(d,"column")},C=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",te.compareByOriginalPositions,te.getArg(d,"bias",on.GREATEST_LOWER_BOUND));if(C>=0){var O=this._originalMappings[C];if(O.source===v.source)return{line:te.getArg(O,"generatedLine",null),column:te.getArg(O,"generatedColumn",null),lastColumn:te.getArg(O,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Gn=Zn;function zi(T){var d=T;"string"==typeof T&&(d=JSON.parse(T.replace(/^\)\]\}'/,"")));var p=te.getArg(d,"version"),v=te.getArg(d,"sections");if(p!=this._version)throw new Error("Unsupported version: "+p);this._sources=new rt,this._names=new rt;var C={line:-1,column:0};this._sections=v.map(function(O){if(O.url)throw new Error("Support for url field in sections not implemented.");var Q=te.getArg(O,"offset"),Me=te.getArg(Q,"line"),xe=te.getArg(Q,"column");if(Me=200&&Zt.status<300||"file://"===Bt.substr(0,7)&&Zt.responseText?Ht(Zt.responseText):Xt(new Error("HTTP status: "+Zt.status+" retrieving "+Bt)))},Zt.send()})}function O(Bt){if(typeof window<"u"&&window.atob)return window.atob(Bt);throw new Error("You must supply a polyfill for window.atob in this environment")}function ot(Bt){if("object"!==Hn(Bt))throw new TypeError("Given StackFrame is not an object");if("string"!=typeof Bt.fileName)throw new TypeError("Given file name is not a String");if("number"!=typeof Bt.lineNumber||Bt.lineNumber%1!=0||Bt.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if("number"!=typeof Bt.columnNumber||Bt.columnNumber%1!=0||Bt.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}return function Bt(Ht){if(!(this instanceof Bt))return new Bt(Ht);this.sourceCache=(Ht=Ht||{}).sourceCache||{},this.sourceMapConsumerCache=Ht.sourceMapConsumerCache||{},this.ajax=Ht.ajax||C,this._atob=Ht.atob||O,this._get=function(Zt){return new Promise(function(vn,Sn){var ai="data:"===Zt.substr(0,5);if(this.sourceCache[Zt])vn(this.sourceCache[Zt]);else if(Ht.offline&&!ai)Sn(new Error("Cannot make network requests in offline mode"));else if(ai){var _n=Zt.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(_n){var Jn=Zt.substr(_n[0].length),bi=this._atob(Jn);this.sourceCache[Zt]=bi,vn(bi)}else Sn(new Error("The encoding of the inline sourcemap is not supported"))}else{var Bi=this.ajax(Zt,{method:"get"});this.sourceCache[Zt]=Bi,Bi.then(vn,Sn)}}.bind(this))},this._getSourceMapConsumer=function(Zt,vn){return new Promise(function(Sn){if(this.sourceMapConsumerCache[Zt])Sn(this.sourceMapConsumerCache[Zt]);else{var ai=new Promise(function(an,_n){return this._get(Zt).then(function(ti){"string"==typeof ti&&(ti=function Q(Bt){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(Bt);throw new Error("You must supply a polyfill for JSON.parse in this environment")}(ti.replace(/^\)\]\}'/,""))),typeof ti.sourceRoot>"u"&&(ti.sourceRoot=vn),an(new p.SourceMapConsumer(ti))},_n)}.bind(this));this.sourceMapConsumerCache[Zt]=ai,Sn(ai)}}.bind(this))},this.pinpoint=function(Zt){return new Promise(function(vn,Sn){this.getMappedLocation(Zt).then(function(ai){function an(){vn(ai)}this.findFunctionName(ai).then(vn,an).catch(an)}.bind(this),Sn)}.bind(this))},this.findFunctionName=function(Zt){return new Promise(function(vn,Sn){ot(Zt),this._get(Zt.fileName).then(function(an){var _n=Zt.lineNumber,ti=Zt.columnNumber,Jn=function Me(Bt,Ht){for(var Xt=[/['"]?([$_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*=>/],Zt=Bt.split("\n"),vn="",Sn=Math.min(Ht,20),ai=0;ai=0&&(an=an.substr(0,_n)),an){vn=an+vn;for(var ti=Xt.length,Jn=0;Jn0&&void 0!==arguments[0]?arguments[0]:{}).sourceMaps,Q=void 0!==O&&O;return zn(this,p),Et(ie(v=d.call(this,"stackTrace")),"sourceCache_",void 0),Et(ie(v),"sourceMaps_",void 0),v.sourceCache_={},v.sourceMaps_=Q,v}return At(p,[{key:"beforeSubscribe",value:function(C){var O=this,Q=this.getStackFrames_();this.sourceMaps_&&typeof window<"u"&&"file:"!==window.location.protocol?Yn(C,{mappedStackTrace:(0,G.v)(function(){var Me=new Bo({sourceCache:O.sourceCache_});return Promise.all(Q.map(function(xe){return Me.pinpoint(xe).catch(function(){return xe})}))}).pipe((0,x.t)(1),bo()),stackTrace:Q}):Yn(C,{mappedStackTrace:(0,M.of)(Q).pipe(bo()),stackTrace:Q})}},{key:"teardown",value:function(){this.sourceCache_={}}},{key:"getStackFrames_",value:function(){try{throw new Error}catch(O){var C=!0;return ue.parse(O).filter(function(Q){var Me=!C;return/coreSubscribe_/.test(Q.functionName||"")&&(C=!1),Me})}}}]),p}(dn),Kn=Symbol("cycleDetected"),oi=Symbol("cycleWarned"),gi=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O;return zn(this,p),Et(ie(O=d.call(this,"cycle")),"logger_",void 0),Et(ie(O),"nexts_",[]),Et(ie(O),"spy_",void 0),O.logger_=se(C),O.spy_=v,O}return At(p,[{key:"afterNext",value:function(C,O){this.nexts_.pop()}},{key:"beforeNext",value:function(C,O){var Q=this.logger_,Me=this.nexts_,xe=this.spy_,ot=C.observable,yt=C.subscription;if(-1!==Me.indexOf(C)&&!yt[Kn]&&(yt[Kn]=!0,-1===Me.findIndex(function(Xt){return Xt.subscription[oi]}))){yt[oi]=!0;var Dt=mn(C);0===Dt.length&&xe.warnOnce(console,"Stack tracing is not enabled; add the StackTracePlugin before the CyclePlugin.");var Bt=Dt.length?"; subscribed at\n".concat(Dt.join("\n")):"",Ht=zt(ot);Q.warn("Cyclic next detected; type = ".concat(Ht,"; value = ").concat(O).concat(Bt))}Me.push(C)}}]),p}(dn),ro=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O;return zn(this,p),Et(ie(O=d.call(this,"debug(".concat(jt(v),")"))),"notifications_",void 0),Et(ie(O),"matcher_",void 0),O.notifications_=C,O.matcher_=function(Q,Me){return Tt(Q,v)&&-1!==O.notifications_.indexOf(Me)},O}return At(p,[{key:"beforeComplete",value:function(C){(0,this.matcher_)(C,"complete")}},{key:"beforeError",value:function(C,O){(0,this.matcher_)(C,"error")}},{key:"beforeNext",value:function(C,O){(0,this.matcher_)(C,"next")}},{key:"beforeSubscribe",value:function(C){(0,this.matcher_)(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){(0,this.matcher_)(C,"unsubscribe")}}]),p}(dn),vi=Symbol("graphRef");function pn(T){return T[vi]}var Mi=function(T){Ot(p,T);var d=oe(p);function p(){var v,O=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keptDuration,Q=void 0===O?3e4:O;return zn(this,p),Et(ie(v=d.call(this,"graph")),"flushIntervalId_",void 0),Et(ie(v),"flushQueue_",void 0),Et(ie(v),"keptDuration_",void 0),Et(ie(v),"notifications_",void 0),Et(ie(v),"sentinel_",void 0),v.flushIntervalId_=void 0,v.flushQueue_=[],v.keptDuration_=Q,v.notifications_=[],v.sentinel_={depth:0,flattened:!1,flattenings:[],flatteningsFlushed:0,link:void 0,rootSink:void 0,sentinel:void 0,sink:void 0,sources:[],sourcesFlushed:0},v.sentinel_.link=v.sentinel_,v.sentinel_.sentinel=v.sentinel_,v}return At(p,[{key:"afterNext",value:function(C,O){this.notifications_.pop()}},{key:"afterSubscribe",value:function(C){this.notifications_.pop()}},{key:"afterUnsubscribe",value:function(C){this.notifications_.pop(),this.flush_(C)}},{key:"beforeNext",value:function(C,O){this.notifications_.push({notification:"next",ref:C})}},{key:"beforeSubscribe",value:function(C){var O=this.notifications_,Q=this.sentinel_,Me=function $i(T,d){return T[vi]=d,d}(C,{depth:1,flattened:!1,flattenings:[],flatteningsFlushed:0,link:Q,rootSink:void 0,sentinel:Q,sink:void 0,sources:[],sourcesFlushed:0}),xe=O.length;if(xe>0&&"next"===O[xe-1].notification){var ot=O[xe-1].ref,yt=pn(ot);yt.flattenings.push(C),Me.link=yt,Me.flattened=!0,Me.rootSink=yt.rootSink||ot,Me.sink=ot}else for(var Dt=xe-1;Dt>-1;--Dt)if("subscribe"===O[Dt].notification){var Bt=O[xe-1].ref,Ht=pn(Bt);Ht.sources.push(C),Me.depth=Ht.depth+1,Me.link=Ht,Me.rootSink=Ht.rootSink||Bt,Me.sink=Bt;break}Me.link===Me.sentinel&&Me.sentinel.sources.push(C),O.push({notification:"subscribe",ref:C})}},{key:"beforeUnsubscribe",value:function(C){this.notifications_.push({notification:"unsubscribe",ref:C})}},{key:"teardown",value:function(){void 0!==this.flushIntervalId_&&(clearInterval(this.flushIntervalId_),this.flushIntervalId_=void 0)}},{key:"flush_",value:function(C){var O=this,Q=pn(C),xe=Q.sources;if(C.unsubscribed&&Q.flattenings.every(function(Bt){return Bt.unsubscribed})&&xe.every(function(Bt){return Bt.unsubscribed})){var ot=this.keptDuration_,yt=Q.link,Dt=function(){var Ht=yt.flattenings,Xt=yt.sources,Zt=Ht.indexOf(C);-1!==Zt&&(Ht.splice(Zt,1),++yt.flatteningsFlushed);var vn=Xt.indexOf(C);-1!==vn&&(Xt.splice(vn,1),++yt.sourcesFlushed)};0===ot?Dt():ot>0&&ot<1/0&&(this.flushQueue_.push({due:Date.now()+ot,flush:Dt}),void 0===this.flushIntervalId_&&(this.flushIntervalId_=setInterval(function(){var Bt=Date.now();O.flushQueue_=O.flushQueue_.filter(function(Ht){return Ht.due>Bt||(Ht.flush(),!1)}),0===O.flushQueue_.length&&(clearInterval(O.flushIntervalId_),O.flushIntervalId_=void 0)},ot)))}}}]),p}(dn),Ni=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O,Me=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).complete,xe=void 0===Me||Me;return zn(this,p),Et(ie(O=d.call(this,"let(".concat(jt(v),")"))),"match_",void 0),Et(ie(O),"select_",void 0),O.match_=v,O.select_=xe?C:function(ot){return(0,L.h)(A,C(ot))},O}return At(p,[{key:"select",value:function(C){var Q=this.select_;if(Tt(C,this.match_))return Q}}]),p}(dn),so=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O;zn(this,p),Et(ie(O=d.call(this,"log(".concat(jt(C),")"))),"auditor_",void 0),Et(ie(O),"logger_",void 0),Et(ie(O),"notificationMatch_",void 0),Et(ie(O),"tagMatch_",void 0),O.auditor_=v.auditor,O.tagMatch_=C;var Q=/.+/;switch(arguments.length<=2?0:arguments.length-2){case 0:O.notificationMatch_=Q,O.logger_=se(Y);break;case 1:"function"==typeof(arguments.length<=2?void 0:arguments[2])?(O.notificationMatch_=arguments.length<=2?void 0:arguments[2],O.logger_=se(Y)):(O.notificationMatch_=Q,O.logger_=se(arguments.length<=2?void 0:arguments[2]));break;default:O.notificationMatch_=arguments.length<=2?void 0:arguments[2],O.logger_=se(arguments.length<=3?void 0:arguments[3])}return O}return At(p,[{key:"beforeComplete",value:function(C){this.log_(C,"complete")}},{key:"beforeError",value:function(C,O){this.log_(C,"error",O)}},{key:"beforeNext",value:function(C,O){this.log_(C,"next",O)}},{key:"beforeSubscribe",value:function(C){this.log_(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){this.log_(C,"unsubscribe")}},{key:"log_",value:function(C,O,Q){var Me=this,xe=this.auditor_,ot=this.notificationMatch_,yt=this.tagMatch_;Tt(C,yt)&&Tt(C,ot,O)&&xe.audit(this,function(Dt){var Bt=Me.logger_,Ht=C.observable,Xt=en(Ht),Zt=zt(Ht),vn="string"==typeof yt?"":"; matching ".concat(jt(yt)),Sn=0===Dt?"":"; ignored ".concat(Dt),ai=Xt?"Tag = ".concat(Xt,"; notification = ").concat(O).concat(vn).concat(Sn):"Type = ".concat(Zt,"; notification = ").concat(O).concat(vn).concat(Sn);switch(O){case"error":Bt.error("".concat(ai,"; error ="),Q);break;case"next":Bt.log("".concat(ai,"; value ="),Q);break;default:Bt.log(ai)}})}}]),p}(dn),Yi=function(){function T(d){zn(this,T),Et(this,"teardown",void 0),Et(this,"match_",void 0),Et(this,"paused_",!0),Et(this,"states_",new Map),Et(this,"stats_",void 0),this.match_=d,this.stats_=new I.B}return At(T,[{key:"stats",get:function(){return this.stats_.asObservable()}},{key:"paused",get:function(){return this.paused_}},{key:"clear",value:function(){var p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};this.states_.forEach(function(v){v.notifications_=v.notifications_.filter(function(C){return!p(C)})}),this.broadcast_()}},{key:"log",value:function(){var v=se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y);v.group("Deck matching ".concat(jt(this.match_))),v.log("Paused =",this.paused_),this.states_.forEach(function(C){v.group("Observable; tag = ".concat(C.tag_)),v.log("Notifications =",C.notifications_),v.groupEnd()}),v.groupEnd()}},{key:"pause",value:function(){this.paused_=!0,this.broadcast_()}},{key:"resume",value:function(){this.states_.forEach(function(p){for(;p.notifications_.length>0;)p.subject_.next(p.notifications_.shift())}),this.paused_=!1,this.broadcast_()}},{key:"select",value:function(p){var v=this,C=p.observable;return function(O){var Q=v.states_.get(C);return Q?Q.subscription_.unsubscribe():(Q={notifications_:[],subject_:new I.B,subscription_:void 0,tag_:en(C)},v.states_.set(C,Q)),Q.subscription_=O.pipe(function H(){return(0,me.N)((T,d)=>{T.subscribe((0,de._)(d,p=>{d.next(he.createNext(p))},()=>{d.next(he.createComplete()),d.complete()},p=>{d.next(he.createError(p)),d.complete()}))})}(),bo()).subscribe({next:function(xe){v.paused_?Q.notifications_.push(xe):Q.subject_.next(xe),v.broadcast_()}}),v.broadcast_(),Q.subject_.asObservable().pipe(function z(){return(0,me.N)((T,d)=>{T.subscribe((0,de._)(d,p=>we(p,d)))})}())}}},{key:"skip",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.notifications_.shift()}),this.broadcast_()}},{key:"step",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.subject_.next(p.notifications_.shift())}),this.broadcast_()}},{key:"unsubscribe",value:function(){this.states_.forEach(function(p){p.subscription_&&(p.subscription_.unsubscribe(),p.subscription_=void 0)}),this.broadcast_()}},{key:"broadcast_",value:function(){var p=this.paused_,C=this.stats_,O=0;this.states_.forEach(function(Q){return O+=Q.notifications_.length}),C.next({notifications:O,paused:p})}}]),T}(),Xo=function(T){Ot(p,T);var d=oe(p);function p(v){var C;return zn(this,p),Et(ie(C=d.call(this,"pause(".concat(jt(v),")"))),"match_",void 0),Et(ie(C),"deck_",void 0),C.deck_=new Yi(v),C.match_=v,C}return At(p,[{key:"deck",get:function(){return this.deck_}},{key:"match",get:function(){return this.match_}},{key:"select",value:function(C){var O=this.deck_;if(Tt(C,this.match_))return O.select(C)}},{key:"teardown",value:function(){var C=this.deck_;C&&(C.resume(),C.unsubscribe())}}]),p}(dn),Ki=Symbol("snapshotRef");function Zo(T){return T[Ki]}function pr(T){var d=[(0,M.of)(null)];return T.forEach(function(v){v.subscriptions?v.subscriptions.forEach(p):p(v)}),(0,F.p)(d).pipe((0,Z.u)(void 0),bo());function p(v){d.push(v.mappedStackTrace),v.rootSink&&d.push(v.rootSink.mappedStackTrace)}}var po=function(T){Ot(p,T);var d=oe(p);function p(v){var C,Q=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).keptValues,Me=void 0===Q?4:Q;return zn(this,p),Et(ie(C=d.call(this,"snapshot")),"keptValues_",void 0),Et(ie(C),"sentinel_",void 0),Et(ie(C),"spy_",void 0),C.keptValues_=Me,C.sentinel_=void 0,C.spy_=v,C}return At(p,[{key:"afterUnsubscribe",value:function(C){var O=Zo(C);O.tick=this.spy_.tick,O.unsubscribed=!0}},{key:"beforeComplete",value:function(C){var O=Zo(C);O.tick=this.spy_.tick,O.complete=!0}},{key:"beforeError",value:function(C,O){var Q=Zo(C);Q.tick=this.spy_.tick,Q.error=O}},{key:"beforeNext",value:function(C,O){var Q=this.spy_.tick,Me=Zo(C);Me.tick=Q,Me.values.push({tick:Q,timestamp:Date.now(),value:O});var ot=Me.values.length-this.keptValues_;ot>0&&(Me.values.splice(0,ot),Me.valuesFlushed+=ot)}},{key:"beforeSubscribe",value:function(C){!function fo(T,d){T[Ki]=d}(C,{complete:!1,error:void 0,tick:this.spy_.tick,timestamp:Date.now(),unsubscribed:!1,values:[],valuesFlushed:0});var O=pn(C);O?this.sentinel_=O.sentinel:this.spy_.warnOnce(console,"Graphing is not enabled; add the GraphPlugin before the SnapshotPlugin.")}},{key:"snapshotAll",value:function(){var O=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).since,Q=new Map,Me=new Map,xe=new Map,ot=this.getSubscriptionRefs_();return ot.forEach(function(yt,Dt){var Bt,Ht=Dt.observable,Xt=Dt.subscriber,Zt=Dt.subscription,vn=pn(Dt),Sn=vn.flatteningsFlushed,ai=vn.sourcesFlushed,an=Zo(Dt),Jn=an.tick,bi=an.timestamp,Bi=an.unsubscribed,nr=an.values,vr=an.valuesFlushed,uc={complete:an.complete,error:an.error,flattenings:new Map,flatteningsFlushed:Sn,id:vt(Dt),mappedStackTrace:$t(Dt),observable:Ht,rootSink:void 0,sink:void 0,sources:new Map,sourcesFlushed:ai,stackTrace:mn(Dt),subscriber:Xt,subscription:Zt,tick:Jn,timestamp:bi,unsubscribed:Bi};xe.set(Zt,uc);var Vr=Me.get(Xt);Vr||(Vr={id:vt(Xt),subscriber:Xt,subscriptions:new Map,tick:Jn,values:[],valuesFlushed:0},Me.set(Xt,Vr)),Vr.subscriptions.set(Zt,uc),Vr.tick=Math.max(Vr.tick,Jn),(Bt=Vr.values).push.apply(Bt,et(nr)),Vr.valuesFlushed+=vr;var Fa=Q.get(Ht);Fa||(Fa={id:vt(Ht),observable:Ht,path:Le(Ht),subscriptions:new Map,tag:en(Ht),tick:Jn,type:zt(Ht)},Q.set(Ht,Fa)),Fa.subscriptions.set(Zt,uc),Fa.tick=Math.max(Fa.tick,Jn)}),ot.forEach(function(yt,Dt){var Bt=pn(Dt),Ht=xe.get(Dt.subscription);Bt.sink&&(Ht.sink=xe.get(Bt.sink.subscription)),Bt.rootSink&&(Ht.rootSink=xe.get(Bt.rootSink.subscription)),Bt.flattenings.forEach(function(Xt){return Ht.flattenings.set(Xt.subscription,xe.get(Xt.subscription))}),Bt.sources.forEach(function(Xt){return Ht.sources.set(Xt.subscription,xe.get(Xt.subscription))})}),Me.forEach(function(yt){yt.values.sort(function(Dt,Bt){return Dt.tick-Bt.tick})}),void 0!==O&&(Q.forEach(function(yt,Dt){yt.tick<=O.tick&&Q.delete(Dt)}),Me.forEach(function(yt,Dt){yt.tick<=O.tick&&Me.delete(Dt)}),xe.forEach(function(yt,Dt){yt.tick<=O.tick&&xe.delete(Dt)})),{mapStackTraces:pr,observables:Q,subscribers:Me,subscriptions:xe,tick:this.spy_.tick}}},{key:"snapshotObservable",value:function(C){return this.snapshotAll().observables.get(C.observable)}},{key:"snapshotSubscriber",value:function(C){return this.snapshotAll().subscribers.get(C.subscriber)}},{key:"addSubscriptionRefs_",value:function(C,O){var Q=this;O.set(C,!0);var Me=pn(C);Me.flattenings.forEach(function(xe){return Q.addSubscriptionRefs_(xe,O)}),Me.sources.forEach(function(xe){return Q.addSubscriptionRefs_(xe,O)})}},{key:"getSubscriptionRefs_",value:function(){var C=this,O=this.sentinel_,Q=new Map;return O&&O.sources.forEach(function(Me){return C.addSubscriptionRefs_(Me,Q)}),Q}}]),p}(dn),fr=function(T){Ot(p,T);var d=oe(p);function p(v){var C;return zn(this,p),Et(ie(C=d.call(this,"stats")),"spy_",void 0),Et(ie(C),"stats_",void 0),Et(ie(C),"time_",void 0),C.spy_=v,C.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},C.time_=0,C}return At(p,[{key:"afterSubscribe",value:function(C){var O=this.stats_,Q=pn(C);if(Q){var Me=Q.depth,xe=Q.flattened,ot=Q.flattenings,yt=Q.flatteningsFlushed,Bt=Q.sources,Ht=Q.sourcesFlushed;Q.rootSink||(O.rootSubscribes+=1),xe&&(O.flattenedSubscribes+=1),ot.length+yt+Bt.length+Ht===0&&(O.maxDepth0&&(this.timeoutId_=setTimeout(function(){for(var Q=Date.now()-v;C.length>0&&C[0].timestamp<=Q;){var Me=C.shift();Me.task(Me.ignored)}p.timeoutId_=void 0,p.wait_()},Math.max(0,C[0].timestamp+v-Date.now())))}}]),T}(),Lr=function(){function T(d){zn(this,T),Et(this,"detectorRecords_",void 0),Et(this,"snapshotPlugin_",void 0),Et(this,"spy_",void 0),this.detectorRecords_=new Map,this.snapshotPlugin_=d.find(po),this.spy_=d}return At(T,[{key:"detect",value:function(p){var v=this.detectorRecords_,C=this.snapshotPlugin_,O=this.spy_;if(C){var Q=v.get(p),Me=this.record_(C.snapshotAll());if(Q?Q.snapshotRecords.push(Me):v.set(p,Q={snapshotRecords:[Me]}),Q.snapshotRecords.length>2&&Q.snapshotRecords.shift(),!(Q.snapshotRecords.length<2)){var xe=function Fe(T,d){return function Kt(T){if(Array.isArray(T))return T}(T)||function Tn(T,d){var p=T&&(typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"]);if(null!=p){var Q,Me,v=[],C=!0,O=!1;try{for(p=p.call(T);!(C=(Q=p.next()).done)&&(v.push(Q.value),!d||v.length!==d);C=!0);}catch(xe){O=!0,Me=xe}finally{try{!C&&null!=p.return&&p.return()}finally{if(O)throw Me}}return v}}(T,d)||Wn(T,d)||function Un(){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_(p,xe[0],xe[1])}}else O.warnOnce(console,"Snapshotting is not enabled.")}},{key:"compare_",value:function(p,v,C){var O=[],Q=[],Me=[],xe=[],ot=v.rootSubscriptions,yt=C.rootSubscriptions;if(ot.forEach(function(Dt,Bt){yt.has(Bt)||Q.push(Dt)}),yt.forEach(function(Dt,Bt){var Ht=ot.get(Bt);if(Ht){var Xt=Ht.flattenings,Zt=Dt.flattenings;Xt.forEach(function(vn,Sn){Zt.has(Sn)||xe.push(vn)}),Zt.forEach(function(vn,Sn){Xt.has(Sn)||Me.push(vn)})}else O.push(Dt)}),0!==Me.length||0!==xe.length||0!==O.length||0!==Q.length)return{flatteningSubscriptions:Me,flatteningUnsubscriptions:xe,subscriptions:O.map(function(Dt){return Dt.subscriptionSnapshot}),unsubscriptions:Q.map(function(Dt){return Dt.subscriptionSnapshot})}}},{key:"findFlatteningSubscriptions_",value:function(p,v){var C=v.flattenings,O=v.subscriptionSnapshot;p.subscriptions.forEach(function(Q){Q.rootSink===O&&Q.flattenings.forEach(function(Me){var xe=Me.subscription;xe.closed||C.set(xe,Me)})})}},{key:"findRootSubscriptions_",value:function(p,v){var C=this;p.observables.forEach(function(O){O.subscriptions.forEach(function(Q){var yt=Q.subscription;if(!(Q.complete||Q.error||Q.sink||yt.closed)){var Dt={flattenings:new Map,subscriptionSnapshot:Q};C.findFlatteningSubscriptions_(p,Dt),v.set(yt,Dt)}})})}},{key:"record_",value:function(p){var v=new Map;return this.findRootSubscriptions_(p,v),{rootSubscriptions:v,snapshot:p}}}]),T}();var Ci=g.c.prototype.subscribe,Sr={},es=function(){function T(){var d=this,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(zn(this,T),Et(this,"auditor_",void 0),Et(this,"defaultLogger_",void 0),Et(this,"maxLogged_",20),Et(this,"plugins_",void 0),Et(this,"pluginsSubject_",void 0),Et(this,"teardown_",void 0),Et(this,"tick_",void 0),Et(this,"undos_",void 0),Et(this,"warned_",void 0),T.spy_)throw new Error("Already spying on Observable.prototype.subscribe.");p.warning&&console.warn("Spying on Observable.prototype.subscribe."),T.spy_=this,g.c.prototype.subscribe=T.coreSubscribe_,this.auditor_=new $o(p.audit||0),this.defaultLogger_=p.defaultLogger||Y,this.plugins_=!1===p.defaultPlugins?[]:[new En(p),new Mi(p),new po(this,p),new gi(this,this.defaultLogger_),new fr(this)],this.pluginsSubject_=new X.t(this.plugins_),this.tick_=0,this.undos_=[],this.warned_={};var v=new Lr(this);R(function(C){return d.detect_(C,v)}),typeof window<"u"&&[p.global||"spy","rxSpy"].forEach(function(C){window.hasOwnProperty(C)&&(d.defaultLogger_.log("Overwriting window.".concat(C)),Sr[C]=window[C]),window[C]=function xn(T){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{deck:function(v){d();var C=T.findAll(Xo);if(void 0!==v){var Q=C[v-1];return Q?Q.deck:void 0}var O=se(Y);O.group("".concat(C.length," Deck(s)")),C.forEach(function(Me,xe){return O.log("".concat(xe+1," pause(").concat(Me.name,")"))}),O.groupEnd()},debug:function(){d();for(var v=arguments.length,C=new Array(v),O=0;O0&&void 0!==arguments[0]?arguments[0]:"";d(),function S(T){E(T)}(v)},flush:function(){d(),T.flush()},inferPath:Le,inferType:zt,let:function(){d();for(var v=arguments.length,C=new Array(v),O=0;O1?v-1:0),O=1;Oyt?ot.length-yt:0;Dt&&ot.splice(yt,Dt),xe.group("".concat(ot.length+Dt," snapshot(s) found"));var Bt=ot.length>3?"groupCollapsed":"group";ot.forEach(function(Ht){var Xt=Ht.observable;xe[Bt].call(xe,Xt.tag?"Tag = ".concat(Xt.tag):"Type = ".concat(Xt.type)),xe.log("Path =",Xt.path);var Zt=Ht.subs,vn=Ht.subs.length>3?"groupCollapsed":"group";xe.group("".concat(Zt.length," subscriber(s)")),Zt.forEach(function(Sn){var ai=Sn.subscription,an=Sn.subscriber,_n=an.values,ti=an.valuesFlushed;xe[vn].call(xe,"Subscriber"),xe.log("Value count =",_n.length+ti),_n.length>0&&xe.log("Last value =",_n[_n.length-1].value),qo(xe,ai),Array.from(an.subscriptions.values()).filter(function(bi){return bi!==ai}).forEach(function(bi){xe.groupCollapsed("Other subscription"),qo(xe,bi),xe.groupEnd()}),xe.groupEnd()}),xe.groupEnd(),xe.groupEnd()}),Dt&&xe.log("... another ".concat(Dt," snapshot(s) not logged.")),xe.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"show",value:function(p,v){var C=/.+/;p?"function"==typeof p.log&&(v=p,p=C):p=C;var O=this.find(po);if(O){var Q=O.snapshotAll(),Me=Array.from(Q.observables.values()).filter(function(Dt){return Tt(Dt.observable,p)}),xe=se(v||this.defaultLogger_),ot=this.maxLogged_,yt=Me.length>ot?Me.length-ot:0;yt&&Me.splice(ot,yt),Q.mapStackTraces(Me).subscribe(function(){xe.group("".concat(Me.length+yt," snapshot(s) matching ").concat(jt(p)));var Dt=Me.length>3?"groupCollapsed":"group";Me.forEach(function(Bt){xe[Dt].call(xe,Bt.tag?"Tag = ".concat(Bt.tag):"Type = ".concat(Bt.type)),xe.log("Path =",Bt.path);var Ht=Bt.subscriptions,Xt=Ht.size>3?"groupCollapsed":"group";xe.group("".concat(Ht.size," subscriber(s)")),Ht.forEach(function(Zt){var vn=Q.subscribers.get(Zt.subscriber);if(vn){var Sn=vn.values,ai=vn.valuesFlushed;xe[Xt].call(xe,"Subscriber"),xe.log("Value count =",Sn.length+ai),Sn.length>0&&xe.log("Last value =",Sn[Sn.length-1].value),qo(xe,Zt),Array.from(vn.subscriptions.values()).filter(function(_n){return _n!==Zt}).forEach(function(_n){xe.groupCollapsed("Other subscription"),qo(xe,_n),xe.groupEnd()}),xe.groupEnd()}else xe.warn("Cannot find subscriber snapshot")}),xe.groupEnd(),xe.groupEnd()}),yt&&xe.log("... another ".concat(yt," snapshot(s) not logged.")),xe.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"stats",value:function(p){var v=this.find(fr);if(v){var C=v.stats,O=C.leafSubscribes,Q=C.maxDepth,Me=C.flattenedSubscribes,xe=C.rootSubscribes,ot=C.totalDepth,yt=se(p||this.defaultLogger_);yt.group("Stats"),yt.log("Subscribes =",C.subscribes),xe>0&&yt.log("Root subscribes =",xe),O>0&&yt.log("Leaf subscribes =",O),Me>0&&yt.log("Flattened subscribes =",Me),yt.log("Unsubscribes =",C.unsubscribes),yt.log("Nexts =",C.nexts),yt.log("Errors =",C.errors),yt.log("Completes =",C.completes),Q>0&&(yt.log("Max. depth =",Q),yt.log("Avg. depth =",(ot/O).toFixed(1))),yt.log("Tick =",C.tick),yt.log("Timespan =",C.timespan),yt.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 p=this,v=arguments.length,C=new Array(v),O=0;O2?C-2:0),Q=2;Q2?O-2:0),Me=2;Me0){this.preSelectSubject||(this.preSelectSubject=new I.B),this.postSelectSubscription&&this.postSelectSubscription.unsubscribe();var vn=this.preSelectSubject.asObservable();Zt.forEach(function(Sn){return vn=Sn(vn)}),this.postSelectSubscription=vn.pipe(bo()).subscribe(Dt)}else this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0,this.preSelectSubject=void 0)},next:function(Xt){this.preSelectSubject?this.preSelectSubject.next(Xt):this.postSelectObserver.next(Xt)},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 xe.add(v.pluginsSubject_.pipe(bo()).subscribe({next:function(Xt){return Bt.let(Xt)}})),Me(function(Ht){return Ht.beforeSubscribe(ot)},function(){xe.add(Ci.call(p,Bt)),xe.add(function(){return Bt.unsubscribe()})},function(Ht){return Ht.afterSubscribe(ot)}),xe}}]),T}();function qo(T,d){var v=d.error,C=d.unsubscribed;T.log("State =",d.complete?"complete":v?"error":"incomplete"),v&&T.error("Error =",v),C&&T.log("Unsubscribed =",!0),function us(T,d){var v=d.rootSink;(v?v.mappedStackTrace:d.mappedStackTrace).subscribe(function(O){return T.log("Root subscribe",O)})}(T,d)}Et(es,"spy_",void 0);var Ve=c(177);const nt=void 0,Wt=["en",[["a","p"],["AM","PM"],nt],[["AM","PM"],nt,nt],[["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"]],nt,[["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"]],nt,[["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}",nt,"{1} 'at' {0}",nt],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mt(T){const p=Math.floor(Math.abs(T)),v=T.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===v?1:5}];var tn=c(1626),rn=c(9969);function Mn(T){return new r.wOt(3e3,!1)}function We(T){switch(T.length){case 0:return new rn.sf;case 1:return T[0];default:return new rn.ui(T)}}function ct(T,d,p=new Map,v=new Map){const C=[],O=[];let Q=-1,Me=null;if(d.forEach(xe=>{const ot=xe.get("offset"),yt=ot==Q,Dt=yt&&Me||new Map;xe.forEach((Bt,Ht)=>{let Xt=Ht,Zt=Bt;if("offset"!==Ht)switch(Xt=T.normalizePropertyName(Xt,C),Zt){case rn.FX:Zt=p.get(Ht);break;case rn.kp:Zt=v.get(Ht);break;default:Zt=T.normalizeStyleValue(Ht,Xt,Zt,C)}Dt.set(Xt,Zt)}),yt||O.push(Dt),Me=Dt,Q=ot}),C.length)throw function yr(T){return new r.wOt(3502,!1)}();return O}function sn(T,d,p,v){switch(d){case"start":T.onStart(()=>v(p&&$n(p,"start",T)));break;case"done":T.onDone(()=>v(p&&$n(p,"done",T)));break;case"destroy":T.onDestroy(()=>v(p&&$n(p,"destroy",T)))}}function $n(T,d,p){const O=Bn(T.element,T.triggerName,T.fromState,T.toState,d||T.phaseName,p.totalTime??T.totalTime,!!p.disabled),Q=T._data;return null!=Q&&(O._data=Q),O}function Bn(T,d,p,v,C="",O=0,Q){return{element:T,triggerName:d,fromState:p,toState:v,phaseName:C,totalTime:O,disabled:!!Q}}function fi(T,d,p){let v=T.get(d);return v||T.set(d,v=p),v}function ki(T){const d=T.indexOf(":");return[T.substring(1,d),T.slice(d+1)]}const Eo=typeof document>"u"?null:document.documentElement;function di(T){const d=T.parentNode||T.host||null;return d===Eo?null:d}let Oo=null,ts=!1;function ht(T,d){for(;d;){if(d===T)return!0;d=di(d)}return!1}function Jt(T,d,p){if(p)return Array.from(T.querySelectorAll(d));const v=T.querySelector(d);return v?[v]:[]}let Qi=(()=>{class T{validateStyleProperty(p){return function Ne(T){Oo||(Oo=function ye(){return typeof document<"u"?document.body:null}()||{},ts=!!Oo.style&&"WebkitAppearance"in Oo.style);let d=!0;return Oo.style&&!function ho(T){return"ebkit"==T.substring(1,6)}(T)&&(d=T in Oo.style,!d&&ts&&(d="Webkit"+T.charAt(0).toUpperCase()+T.slice(1)in Oo.style)),d}(p)}containsElement(p,v){return ht(p,v)}getParentElement(p){return di(p)}query(p,v,C){return Jt(p,v,C)}computeStyle(p,v,C){return C||""}animate(p,v,C,O,Q,Me=[],xe){return new rn.sf(C,O)}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275prov=r.jDH({token:T,factory:T.\u0275fac})}return T})();class wo{static#e=this.NOOP=new Qi}class yi{}const Hc=1e3,gc="ng-enter",mo="ng-leave",ua="ng-trigger",Yr=".ng-trigger",ta="ng-animating",Ba=".ng-animating";function mr(T){if("number"==typeof T)return T;const d=T.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:Ea(parseFloat(d[1]),d[2])}function Ea(T,d){return"s"===d?T*Hc:T}function Ys(T,d,p){return T.hasOwnProperty("duration")?T:function hs(T,d,p){let C,O=0,Q="";if("string"==typeof T){const Me=T.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return d.push(Mn()),{duration:0,delay:0,easing:""};C=Ea(parseFloat(Me[1]),Me[2]);const xe=Me[3];null!=xe&&(O=Ea(parseFloat(xe),Me[4]));const ot=Me[5];ot&&(Q=ot)}else C=T;if(!p){let Me=!1,xe=d.length;C<0&&(d.push(function Ln(){return new r.wOt(3100,!1)}()),Me=!0),O<0&&(d.push(function wn(){return new r.wOt(3101,!1)}()),Me=!0),Me&&d.splice(xe,0,Mn())}return{duration:C,delay:O,easing:Q}}(T,d,p)}function Wr(T,d,p){d.forEach((v,C)=>{const O=Xr(C);p&&!p.has(C)&&p.set(C,T.style[O]),T.style[O]=v})}function wi(T,d){d.forEach((p,v)=>{const C=Xr(v);T.style[C]=""})}function Ws(T){return Array.isArray(T)?1==T.length?T[0]:(0,rn.K2)(T):T}const ps=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ha(T){let d=[];if("string"==typeof T){let p;for(;p=ps.exec(T);)d.push(p[1]);ps.lastIndex=0}return d}function Kr(T,d,p){const v=`${T}`,C=v.replace(ps,(O,Q)=>{let Me=d[Q];return null==Me&&(p.push(function qn(T){return new r.wOt(3003,!1)}()),Me=""),Me.toString()});return C==v?T:C}const Ta=/-+([a-z0-9])/g;function Xr(T){return T.replace(Ta,(...d)=>d[1].toUpperCase())}function br(T,d,p){switch(d.type){case rn.If.Trigger:return T.visitTrigger(d,p);case rn.If.State:return T.visitState(d,p);case rn.If.Transition:return T.visitTransition(d,p);case rn.If.Sequence:return T.visitSequence(d,p);case rn.If.Group:return T.visitGroup(d,p);case rn.If.Animate:return T.visitAnimate(d,p);case rn.If.Keyframes:return T.visitKeyframes(d,p);case rn.If.Style:return T.visitStyle(d,p);case rn.If.Reference:return T.visitReference(d,p);case rn.If.AnimateChild:return T.visitAnimateChild(d,p);case rn.If.AnimateRef:return T.visitAnimateRef(d,p);case rn.If.Query:return T.visitQuery(d,p);case rn.If.Stagger:return T.visitStagger(d,p);default:throw function pi(T){return new r.wOt(3004,!1)}()}}function Ds(T,d){return window.getComputedStyle(T)[d]}const ja=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 ha extends yi{normalizePropertyName(d,p){return Xr(d)}normalizeStyleValue(d,p,v,C){let O="";const Q=v.toString().trim();if(ja.has(p)&&0!==v&&"0"!==v)if("number"==typeof v)O="px";else{const Me=v.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&C.push(function ei(T,d){return new r.wOt(3005,!1)}())}return Q+O}}const yc="*";const Is=new Set(["true","1"]),Ks=new Set(["false","0"]);function co(T,d){const p=Is.has(T)||Ks.has(T),v=Is.has(d)||Ks.has(d);return(C,O)=>{let Q=T==yc||T==C,Me=d==yc||d==O;return!Q&&p&&"boolean"==typeof C&&(Q=C?Is.has(T):Ks.has(T)),!Me&&v&&"boolean"==typeof O&&(Me=O?Is.has(d):Ks.has(d)),Q&&Me}}const Cc=new RegExp("s*:selfs*,?","g");function Go(T,d,p,v){return new na(T).build(d,p,v)}class na{constructor(d){this._driver=d}build(d,p,v){const C=new bc(p);return this._resetContextStyleTimingState(C),br(this,Ws(d),C)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles=new Map,d.collectedStyles.set("",new Map),d.currentTime=0}visitTrigger(d,p){let v=p.queryCount=0,C=p.depCount=0;const O=[],Q=[];return"@"==d.name.charAt(0)&&p.errors.push(function li(){return new r.wOt(3006,!1)}()),d.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(p),Me.type==rn.If.State){const xe=Me,ot=xe.name;ot.toString().split(/\s*,\s*/).forEach(yt=>{xe.name=yt,O.push(this.visitState(xe,p))}),xe.name=ot}else if(Me.type==rn.If.Transition){const xe=this.visitTransition(Me,p);v+=xe.queryCount,C+=xe.depCount,Q.push(xe)}else p.errors.push(function ci(){return new r.wOt(3007,!1)}())}),{type:rn.If.Trigger,name:d.name,states:O,transitions:Q,queryCount:v,depCount:C,options:null}}visitState(d,p){const v=this.visitStyle(d.styles,p),C=d.options&&d.options.params||null;if(v.containsDynamicStyles){const O=new Set,Q=C||{};v.styles.forEach(Me=>{Me instanceof Map&&Me.forEach(xe=>{Ha(xe).forEach(ot=>{Q.hasOwnProperty(ot)||O.add(ot)})})}),O.size&&p.errors.push(function mi(T,d){return new r.wOt(3008,!1)}(0,O.values()))}return{type:rn.If.State,name:d.name,style:v,options:C?{params:C}:null}}visitTransition(d,p){p.queryCount=0,p.depCount=0;const v=br(this,Ws(d.animation),p),C=function pa(T,d){const p=[];return"string"==typeof T?T.split(/\s*,\s*/).forEach(v=>function Uc(T,d,p){if(":"==T[0]){const xe=function Gc(T,d){switch(T){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,v)=>parseFloat(v)>parseFloat(p);case":decrement":return(p,v)=>parseFloat(v) *"}}(T,p);if("function"==typeof xe)return void d.push(xe);T=xe}const v=T.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return p.push(function Ur(T){return new r.wOt(3015,!1)}()),d;const C=v[1],O=v[2],Q=v[3];d.push(co(C,Q)),"<"==O[0]&&(C!=yc||Q!=yc)&&d.push(co(Q,C))}(v,p,d)):p.push(T),p}(d.expr,p.errors);return{type:rn.If.Transition,matchers:C,animation:v,queryCount:p.queryCount,depCount:p.depCount,options:Te(d.options)}}visitSequence(d,p){return{type:rn.If.Sequence,steps:d.steps.map(v=>br(this,v,p)),options:Te(d.options)}}visitGroup(d,p){const v=p.currentTime;let C=0;const O=d.steps.map(Q=>{p.currentTime=v;const Me=br(this,Q,p);return C=Math.max(C,p.currentTime),Me});return p.currentTime=C,{type:rn.If.Group,steps:O,options:Te(d.options)}}visitAnimate(d,p){const v=function it(T,d){if(T.hasOwnProperty("duration"))return T;if("number"==typeof T)return Ge(Ys(T,d).duration,0,"");const p=T;if(p.split(/\s+/).some(O=>"{"==O.charAt(0)&&"{"==O.charAt(1))){const O=Ge(0,0,"");return O.dynamic=!0,O.strValue=p,O}const C=Ys(p,d);return Ge(C.duration,C.delay,C.easing)}(d.timings,p.errors);p.currentAnimateTimings=v;let C,O=d.styles?d.styles:(0,rn.iF)({});if(O.type==rn.If.Keyframes)C=this.visitKeyframes(O,p);else{let Q=d.styles,Me=!1;if(!Q){Me=!0;const ot={};v.easing&&(ot.easing=v.easing),Q=(0,rn.iF)(ot)}p.currentTime+=v.duration+v.delay;const xe=this.visitStyle(Q,p);xe.isEmptyStep=Me,C=xe}return p.currentAnimateTimings=null,{type:rn.If.Animate,timings:v,style:C,options:null}}visitStyle(d,p){const v=this._makeStyleAst(d,p);return this._validateStyleAst(v,p),v}_makeStyleAst(d,p){const v=[],C=Array.isArray(d.styles)?d.styles:[d.styles];for(let Me of C)"string"==typeof Me?Me===rn.kp?v.push(Me):p.errors.push(new r.wOt(3002,!1)):v.push(new Map(Object.entries(Me)));let O=!1,Q=null;return v.forEach(Me=>{if(Me instanceof Map&&(Me.has("easing")&&(Q=Me.get("easing"),Me.delete("easing")),!O))for(let xe of Me.values())if(xe.toString().indexOf("{{")>=0){O=!0;break}}),{type:rn.If.Style,styles:v,easing:Q,offset:d.offset,containsDynamicStyles:O,options:null}}_validateStyleAst(d,p){const v=p.currentAnimateTimings;let C=p.currentTime,O=p.currentTime;v&&O>0&&(O-=v.duration+v.delay),d.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((Me,xe)=>{const ot=p.collectedStyles.get(p.currentQuerySelector),yt=ot.get(xe);let Dt=!0;yt&&(O!=C&&O>=yt.startTime&&C<=yt.endTime&&(p.errors.push(function Si(T,d,p,v,C){return new r.wOt(3010,!1)}()),Dt=!1),O=yt.startTime),Dt&&ot.set(xe,{startTime:O,endTime:C}),p.options&&function $a(T,d,p){const v=d.params||{},C=Ha(T);C.length&&C.forEach(O=>{v.hasOwnProperty(O)||p.push(function Qn(T){return new r.wOt(3001,!1)}())})}(Me,p.options,p.errors)})})}visitKeyframes(d,p){const v={type:rn.If.Keyframes,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push(function eo(){return new r.wOt(3011,!1)}()),v;let O=0;const Q=[];let Me=!1,xe=!1,ot=0;const yt=d.steps.map(Sn=>{const ai=this._makeStyleAst(Sn,p);let an=null!=ai.offset?ai.offset:function W(T){if("string"==typeof T)return null;let d=null;if(Array.isArray(T))T.forEach(p=>{if(p instanceof Map&&p.has("offset")){const v=p;d=parseFloat(v.get("offset")),v.delete("offset")}});else if(T instanceof Map&&T.has("offset")){const p=T;d=parseFloat(p.get("offset")),p.delete("offset")}return d}(ai.styles),_n=0;return null!=an&&(O++,_n=ai.offset=an),xe=xe||_n<0||_n>1,Me=Me||_n0&&O{const an=Bt>0?ai==Ht?1:Bt*ai:Q[ai],_n=an*vn;p.currentTime=Xt+Zt.delay+_n,Zt.duration=_n,this._validateStyleAst(Sn,p),Sn.offset=an,v.styles.push(Sn)}),v}visitReference(d,p){return{type:rn.If.Reference,animation:br(this,Ws(d.animation),p),options:Te(d.options)}}visitAnimateChild(d,p){return p.depCount++,{type:rn.If.AnimateChild,options:Te(d.options)}}visitAnimateRef(d,p){return{type:rn.If.AnimateRef,animation:this.visitReference(d.animation,p),options:Te(d.options)}}visitQuery(d,p){const v=p.currentQuerySelector,C=d.options||{};p.queryCount++,p.currentQuery=d;const[O,Q]=function fs(T){const d=!!T.split(/\s*,\s*/).find(p=>":self"==p);return d&&(T=T.replace(Cc,"")),T=T.replace(/@\*/g,Yr).replace(/@\w+/g,p=>Yr+"-"+p.slice(1)).replace(/:animating/g,Ba),[T,d]}(d.selector);p.currentQuerySelector=v.length?v+" "+O:O,fi(p.collectedStyles,p.currentQuerySelector,new Map);const Me=br(this,Ws(d.animation),p);return p.currentQuery=null,p.currentQuerySelector=v,{type:rn.If.Query,selector:O,limit:C.limit||0,optional:!!C.optional,includeSelf:Q,animation:Me,originalSelector:d.selector,options:Te(d.options)}}visitStagger(d,p){p.currentQuery||p.errors.push(function _o(){return new r.wOt(3013,!1)}());const v="full"===d.timings?{duration:0,delay:0,easing:"full"}:Ys(d.timings,p.errors,!0);return{type:rn.If.Stagger,animation:br(this,Ws(d.animation),p),timings:v,options:null}}}class bc{constructor(d){this.errors=d,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 Te(T){return T?(T={...T}).params&&(T.params=function za(T){return T?{...T}:null}(T.params)):T={},T}function Ge(T,d,p){return{duration:T,delay:d,easing:p}}function Nt(T,d,p,v,C,O,Q=null,Me=!1){return{type:1,element:T,keyframes:d,preStyleProps:p,postStyleProps:v,duration:C,delay:O,totalTime:C+O,easing:Q,subTimeline:Me}}class gn{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,p){let v=this._map.get(d);v||this._map.set(d,v=[]),v.push(...p)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const yo=new RegExp(":enter","g"),To=new RegExp(":leave","g");function Xn(T,d,p,v,C,O=new Map,Q=new Map,Me,xe,ot=[]){return(new xo).buildKeyframes(T,d,p,v,C,O,Q,Me,xe,ot)}class xo{buildKeyframes(d,p,v,C,O,Q,Me,xe,ot,yt=[]){ot=ot||new gn;const Dt=new Po(d,p,ot,C,O,yt,[]);Dt.options=xe;const Bt=xe.delay?mr(xe.delay):0;Dt.currentTimeline.delayNextStep(Bt),Dt.currentTimeline.setStyles([Q],null,Dt.errors,xe),br(this,v,Dt);const Ht=Dt.timelines.filter(Xt=>Xt.containsAnimation());if(Ht.length&&Me.size){let Xt;for(let Zt=Ht.length-1;Zt>=0;Zt--){const vn=Ht[Zt];if(vn.element===p){Xt=vn;break}}Xt&&!Xt.allowOnlyTimelineStyles()&&Xt.setStyles([Me],null,Dt.errors,xe)}return Ht.length?Ht.map(Xt=>Xt.buildKeyframes()):[Nt(p,[],[],[],0,Bt,"",!1)]}visitTrigger(d,p){}visitState(d,p){}visitTransition(d,p){}visitAnimateChild(d,p){const v=p.subInstructions.get(p.element);if(v){const C=p.createSubContext(d.options),O=p.currentTimeline.currentTime,Q=this._visitSubInstructions(v,C,C.options);O!=Q&&p.transformIntoNewTimeline(Q)}p.previousNode=d}visitAnimateRef(d,p){const v=p.createSubContext(d.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([d.options,d.animation.options],p,v),this.visitReference(d.animation,v),p.transformIntoNewTimeline(v.currentTimeline.currentTime),p.previousNode=d}_applyAnimationRefDelays(d,p,v){for(const C of d){const O=C?.delay;if(O){const Q="number"==typeof O?O:mr(Kr(O,C?.params??{},p.errors));v.delayNextStep(Q)}}}_visitSubInstructions(d,p,v){let O=p.currentTimeline.currentTime;const Q=null!=v.duration?mr(v.duration):null,Me=null!=v.delay?mr(v.delay):null;return 0!==Q&&d.forEach(xe=>{const ot=p.appendInstructionToTimeline(xe,Q,Me);O=Math.max(O,ot.duration+ot.delay)}),O}visitReference(d,p){p.updateOptions(d.options,!0),br(this,d.animation,p),p.previousNode=d}visitSequence(d,p){const v=p.subContextCount;let C=p;const O=d.options;if(O&&(O.params||O.delay)&&(C=p.createSubContext(O),C.transformIntoNewTimeline(),null!=O.delay)){C.previousNode.type==rn.If.Style&&(C.currentTimeline.snapshotCurrentStyles(),C.previousNode=Wi);const Q=mr(O.delay);C.delayNextStep(Q)}d.steps.length&&(d.steps.forEach(Q=>br(this,Q,C)),C.currentTimeline.applyStylesToKeyframe(),C.subContextCount>v&&C.transformIntoNewTimeline()),p.previousNode=d}visitGroup(d,p){const v=[];let C=p.currentTimeline.currentTime;const O=d.options&&d.options.delay?mr(d.options.delay):0;d.steps.forEach(Q=>{const Me=p.createSubContext(d.options);O&&Me.delayNextStep(O),br(this,Q,Me),C=Math.max(C,Me.currentTimeline.currentTime),v.push(Me.currentTimeline)}),v.forEach(Q=>p.currentTimeline.mergeTimelineCollectedStyles(Q)),p.transformIntoNewTimeline(C),p.previousNode=d}_visitTiming(d,p){if(d.dynamic){const v=d.strValue;return Ys(p.params?Kr(v,p.params,p.errors):v,p.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,p){const v=p.currentAnimateTimings=this._visitTiming(d.timings,p),C=p.currentTimeline;v.delay&&(p.incrementTime(v.delay),C.snapshotCurrentStyles());const O=d.style;O.type==rn.If.Keyframes?this.visitKeyframes(O,p):(p.incrementTime(v.duration),this.visitStyle(O,p),C.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=d}visitStyle(d,p){const v=p.currentTimeline,C=p.currentAnimateTimings;!C&&v.hasCurrentStyleProperties()&&v.forwardFrame();const O=C&&C.easing||d.easing;d.isEmptyStep?v.applyEmptyStep(O):v.setStyles(d.styles,O,p.errors,p.options),p.previousNode=d}visitKeyframes(d,p){const v=p.currentAnimateTimings,C=p.currentTimeline.duration,O=v.duration,Me=p.createSubContext().currentTimeline;Me.easing=v.easing,d.styles.forEach(xe=>{Me.forwardTime((xe.offset||0)*O),Me.setStyles(xe.styles,xe.easing,p.errors,p.options),Me.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(Me),p.transformIntoNewTimeline(C+O),p.previousNode=d}visitQuery(d,p){const v=p.currentTimeline.currentTime,C=d.options||{},O=C.delay?mr(C.delay):0;O&&(p.previousNode.type===rn.If.Style||0==v&&p.currentTimeline.hasCurrentStyleProperties())&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Wi);let Q=v;const Me=p.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!C.optional,p.errors);p.currentQueryTotal=Me.length;let xe=null;Me.forEach((ot,yt)=>{p.currentQueryIndex=yt;const Dt=p.createSubContext(d.options,ot);O&&Dt.delayNextStep(O),ot===p.element&&(xe=Dt.currentTimeline),br(this,d.animation,Dt),Dt.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,Dt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Q),xe&&(p.currentTimeline.mergeTimelineCollectedStyles(xe),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=d}visitStagger(d,p){const v=p.parentContext,C=p.currentTimeline,O=d.timings,Q=Math.abs(O.duration),Me=Q*(p.currentQueryTotal-1);let xe=Q*p.currentQueryIndex;switch(O.duration<0?"reverse":O.easing){case"reverse":xe=Me-xe;break;case"full":xe=v.currentStaggerTime}const yt=p.currentTimeline;xe&&yt.delayNextStep(xe);const Dt=yt.currentTime;br(this,d.animation,p),p.previousNode=d,v.currentStaggerTime=C.currentTime-Dt+(C.startTime-v.currentTimeline.startTime)}}const Wi={};class Po{constructor(d,p,v,C,O,Q,Me,xe){this._driver=d,this.element=p,this.subInstructions=v,this._enterClassName=C,this._leaveClassName=O,this.errors=Q,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=xe||new Qr(this._driver,p,0),Me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,p){if(!d)return;const v=d;let C=this.options;null!=v.duration&&(C.duration=mr(v.duration)),null!=v.delay&&(C.delay=mr(v.delay));const O=v.params;if(O){let Q=C.params;Q||(Q=this.options.params={}),Object.keys(O).forEach(Me=>{(!p||!Q.hasOwnProperty(Me))&&(Q[Me]=Kr(O[Me],Q,this.errors))})}}_copyOptions(){const d={};if(this.options){const p=this.options.params;if(p){const v=d.params={};Object.keys(p).forEach(C=>{v[C]=p[C]})}}return d}createSubContext(d=null,p,v){const C=p||this.element,O=new Po(this._driver,C,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(C,v||0));return O.previousNode=this.previousNode,O.currentAnimateTimings=this.currentAnimateTimings,O.options=this._copyOptions(),O.updateOptions(d),O.currentQueryIndex=this.currentQueryIndex,O.currentQueryTotal=this.currentQueryTotal,O.parentContext=this,this.subContextCount++,O}transformIntoNewTimeline(d){return this.previousNode=Wi,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,p,v){const C={duration:p??d.duration,delay:this.currentTimeline.currentTime+(v??0)+d.delay,easing:""},O=new Rr(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,C,d.stretchStartingKeyframe);return this.timelines.push(O),C}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,p,v,C,O,Q){let Me=[];if(C&&Me.push(this.element),d.length>0){d=(d=d.replace(yo,"."+this._enterClassName)).replace(To,"."+this._leaveClassName);let ot=this._driver.query(this.element,d,1!=v);0!==v&&(ot=v<0?ot.slice(ot.length+v,ot.length):ot.slice(0,v)),Me.push(...ot)}return!O&&0==Me.length&&Q.push(function ir(T){return new r.wOt(3014,!1)}()),Me}}class Qr{constructor(d,p,v,C){this._driver=d,this.element=p,this.startTime=v,this._elementTimelineStylesLookup=C,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(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,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(d){const p=1===this._keyframes.size&&this._pendingStyles.size;this.duration||p?(this.forwardTime(this.currentTime+d),p&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,p){return this.applyStylesToKeyframe(),new Qr(this._driver,d,p||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(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,p){this._localTimelineStyles.set(d,p),this._globalTimelineStyles.set(d,p),this._styleSummary.set(d,{time:this.currentTime,value:p})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&this._previousKeyframe.set("easing",d);for(let[p,v]of this._globalTimelineStyles)this._backFill.set(p,v||rn.kp),this._currentKeyframe.set(p,rn.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,p,v,C){p&&this._previousKeyframe.set("easing",p);const O=C&&C.params||{},Q=function ms(T,d){const p=new Map;let v;return T.forEach(C=>{if("*"===C){v??=d.keys();for(let O of v)p.set(O,rn.kp)}else for(let[O,Q]of C)p.set(O,Q)}),p}(d,this._globalTimelineStyles);for(let[Me,xe]of Q){const ot=Kr(xe,O,v);this._pendingStyles.set(Me,ot),this._localTimelineStyles.has(Me)||this._backFill.set(Me,this._globalTimelineStyles.get(Me)??rn.kp),this._updateStyle(Me,ot)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((d,p)=>{this._currentKeyframe.set(p,d)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((d,p)=>{this._currentKeyframe.has(p)||this._currentKeyframe.set(p,d)}))}snapshotCurrentStyles(){for(let[d,p]of this._localTimelineStyles)this._pendingStyles.set(d,p),this._updateStyle(d,p)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let p in this._currentKeyframe)d.push(p);return d}mergeTimelineCollectedStyles(d){d._styleSummary.forEach((p,v)=>{const C=this._styleSummary.get(v);(!C||p.time>C.time)&&this._updateStyle(v,p.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,p=new Set,v=1===this._keyframes.size&&0===this.duration;let C=[];this._keyframes.forEach((Me,xe)=>{const ot=new Map([...this._backFill,...Me]);ot.forEach((yt,Dt)=>{yt===rn.FX?d.add(Dt):yt===rn.kp&&p.add(Dt)}),v||ot.set("offset",xe/this.duration),C.push(ot)});const O=[...d.values()],Q=[...p.values()];if(v){const Me=C[0],xe=new Map(Me);Me.set("offset",0),xe.set("offset",1),C=[Me,xe]}return Nt(this.element,C,O,Q,this.duration,this.startTime,this.easing,!1)}}class Rr extends Qr{constructor(d,p,v,C,O,Q,Me=!1){super(d,p,Q.delay),this.keyframes=v,this.preStyleProps=C,this.postStyleProps=O,this._stretchStartingKeyframe=Me,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:p,duration:v,easing:C}=this.timings;if(this._stretchStartingKeyframe&&p){const O=[],Q=v+p,Me=p/Q,xe=new Map(d[0]);xe.set("offset",0),O.push(xe);const ot=new Map(d[0]);ot.set("offset",ws(Me)),O.push(ot);const yt=d.length-1;for(let Dt=1;Dt<=yt;Dt++){let Bt=new Map(d[Dt]);const Ht=Bt.get("offset");Bt.set("offset",ws((p+Ht*v)/Q)),O.push(Bt)}v=Q,p=0,C="",d=O}return Nt(this.element,d,this.preStyleProps,this.postStyleProps,v,p,C,!0)}}function ws(T,d=3){const p=Math.pow(10,d-1);return Math.round(T*p)/p}function Br(T,d,p,v,C,O,Q,Me,xe,ot,yt,Dt,Bt){return{type:0,element:T,triggerName:d,isRemovalTransition:C,fromState:p,fromStyles:O,toState:v,toStyles:Q,timelines:Me,queriedElements:xe,preStyleProps:ot,postStyleProps:yt,totalTime:Dt,errors:Bt}}const gs={};class vs{constructor(d,p,v){this._triggerName=d,this.ast=p,this._stateStyles=v}match(d,p,v,C){return function xs(T,d,p,v,C){return T.some(O=>O(d,p,v,C))}(this.ast.matchers,d,p,v,C)}buildStyles(d,p,v){let C=this._stateStyles.get("*");return void 0!==d&&(C=this._stateStyles.get(d?.toString())||C),C?C.buildStyles(p,v):new Map}build(d,p,v,C,O,Q,Me,xe,ot,yt){const Dt=[],Bt=this.ast.options&&this.ast.options.params||gs,Xt=this.buildStyles(v,Me&&Me.params||gs,Dt),Zt=xe&&xe.params||gs,vn=this.buildStyles(C,Zt,Dt),Sn=new Set,ai=new Map,an=new Map,_n="void"===C,ti={params:Tc(Zt,Bt),delay:this.ast.options?.delay},Jn=yt?[]:Xn(d,p,this.ast.animation,O,Q,Xt,vn,ti,ot,Dt);let bi=0;return Jn.forEach(Bi=>{bi=Math.max(Bi.duration+Bi.delay,bi)}),Dt.length?Br(p,this._triggerName,v,C,_n,Xt,vn,[],[],ai,an,bi,Dt):(Jn.forEach(Bi=>{const nr=Bi.element,vr=fi(ai,nr,new Set);Bi.preStyleProps.forEach(Vr=>vr.add(Vr));const uc=fi(an,nr,new Set);Bi.postStyleProps.forEach(Vr=>uc.add(Vr)),nr!==p&&Sn.add(nr)}),Br(p,this._triggerName,v,C,_n,Xt,vn,Jn,[...Sn.values()],ai,an,bi))}}function Tc(T,d){const p={...d};return Object.entries(T).forEach(([v,C])=>{null!=C&&(p[v]=C)}),p}class Yo{constructor(d,p,v){this.styles=d,this.defaultParams=p,this.normalizer=v}buildStyles(d,p){const v=new Map,C=Tc(d,this.defaultParams);return this.styles.styles.forEach(O=>{"string"!=typeof O&&O.forEach((Q,Me)=>{Q&&(Q=Kr(Q,C,p));const xe=this.normalizer.normalizePropertyName(Me,p);Q=this.normalizer.normalizeStyleValue(Me,xe,Q,p),v.set(Me,Q)})}),v}}class no{constructor(d,p,v){this.name=d,this.ast=p,this._normalizer=v,this.transitionFactories=[],this.states=new Map,p.states.forEach(C=>{this.states.set(C.name,new Yo(C.style,C.options&&C.options.params||{},v))}),Ps(this.states,"true","1"),Ps(this.states,"false","0"),p.transitions.forEach(C=>{this.transitionFactories.push(new vs(d,C,this.states))}),this.fallbackTransition=function Ma(T,d,p){return new vs(T,{type:rn.If.Transition,animation:{type:rn.If.Sequence,steps:[],options:null},matchers:[(Q,Me)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,p,v,C){return this.transitionFactories.find(Q=>Q.match(d,p,v,C))||null}matchStyles(d,p,v){return this.fallbackTransition.buildStyles(d,p,v)}}function Ps(T,d,p){T.has(d)?T.has(p)||T.set(p,T.get(d)):T.has(p)&&T.set(d,T.get(p))}const is=new gn;class Gu{constructor(d,p,v){this.bodyNode=d,this._driver=p,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(d,p){const v=[],O=Go(this._driver,p,v,[]);if(v.length)throw function sr(T){return new r.wOt(3503,!1)}();this._animations.set(d,O)}_buildPlayer(d,p,v){const C=d.element,O=ct(this._normalizer,d.keyframes,p,v);return this._driver.animate(C,O,d.duration,d.delay,d.easing,[],!0)}create(d,p,v={}){const C=[],O=this._animations.get(d);let Q;const Me=new Map;if(O?(Q=Xn(this._driver,p,O,gc,mo,new Map,new Map,v,is,C),Q.forEach(yt=>{const Dt=fi(Me,yt.element,new Map);yt.postStyleProps.forEach(Bt=>Dt.set(Bt,null))})):(C.push(function Ao(){return new r.wOt(3300,!1)}()),Q=[]),C.length)throw function Ms(T){return new r.wOt(3504,!1)}();Me.forEach((yt,Dt)=>{yt.forEach((Bt,Ht)=>{yt.set(Ht,this._driver.computeStyle(Dt,Ht,rn.kp))})});const ot=We(Q.map(yt=>{const Dt=Me.get(yt.element);return this._buildPlayer(yt,new Map,Dt)}));return this._playersById.set(d,ot),ot.onDestroy(()=>this.destroy(d)),this.players.push(ot),ot}destroy(d){const p=this._getPlayer(d);p.destroy(),this._playersById.delete(d);const v=this.players.indexOf(p);v>=0&&this.players.splice(v,1)}_getPlayer(d){const p=this._playersById.get(d);if(!p)throw function Fr(T){return new r.wOt(3301,!1)}();return p}listen(d,p,v,C){const O=Bn(p,"","","");return sn(this._getPlayer(d),v,O,C),()=>{}}command(d,p,v,C){if("register"==v)return void this.register(d,C[0]);if("create"==v)return void this.create(d,p,C[0]||{});const O=this._getPlayer(d);switch(v){case"play":O.play();break;case"pause":O.pause();break;case"reset":O.reset();break;case"restart":O.restart();break;case"finish":O.finish();break;case"init":O.init();break;case"setPosition":O.setPosition(parseFloat(C[0]));break;case"destroy":this.destroy(d)}}}const Yc="ng-animate-queued",Or="ng-animate-disabled",zc=[],Jr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},go={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ar="__ng_removed";class Wc{get params(){return this.options.params}constructor(d,p=""){this.namespaceId=p;const v=d&&d.hasOwnProperty("value");if(this.value=function Xc(T){return T??null}(v?d.value:d),v){const{value:O,...Q}=d;this.options=Q}else this.options={};this.options.params||(this.options.params={})}absorbOptions(d){const p=d.params;if(p){const v=this.options.params;Object.keys(p).forEach(C=>{null==v[C]&&(v[C]=p[C])})}}}const fa="void",ma=new Wc(fa);class Kc{constructor(d,p,v){this.id=d,this.hostElement=p,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,os(p,this._hostClassName)}listen(d,p,v,C){if(!this._triggers.has(p))throw function Uo(T,d){return new r.wOt(3302,!1)}();if(null==v||0==v.length)throw function Gr(T){return new r.wOt(3303,!1)}();if(!function Cl(T){return"start"==T||"done"==T}(v))throw function Mo(T,d){return new r.wOt(3400,!1)}();const O=fi(this._elementListeners,d,[]),Q={name:p,phase:v,callback:C};O.push(Q);const Me=fi(this._engine.statesByElement,d,new Map);return Me.has(p)||(os(d,ua),os(d,ua+"-"+p),Me.set(p,ma)),()=>{this._engine.afterFlush(()=>{const xe=O.indexOf(Q);xe>=0&&O.splice(xe,1),this._triggers.has(p)||Me.delete(p)})}}register(d,p){return!this._triggers.has(d)&&(this._triggers.set(d,p),!0)}_getTrigger(d){const p=this._triggers.get(d);if(!p)throw function Ss(T){return new r.wOt(3401,!1)}();return p}trigger(d,p,v,C=!0){const O=this._getTrigger(p),Q=new As(this.id,p,d);let Me=this._engine.statesByElement.get(d);Me||(os(d,ua),os(d,ua+"-"+p),this._engine.statesByElement.set(d,Me=new Map));let xe=Me.get(p);const ot=new Wc(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&xe&&ot.absorbOptions(xe.options),Me.set(p,ot),xe||(xe=ma),ot.value!==fa&&xe.value===ot.value){if(!function cu(T,d){const p=Object.keys(T),v=Object.keys(d);if(p.length!=v.length)return!1;for(let C=0;C{wi(d,vn),Wr(d,Sn)})}return}const Bt=fi(this._engine.playersByElement,d,[]);Bt.forEach(Zt=>{Zt.namespaceId==this.id&&Zt.triggerName==p&&Zt.queued&&Zt.destroy()});let Ht=O.matchTransition(xe.value,ot.value,d,ot.params),Xt=!1;if(!Ht){if(!C)return;Ht=O.fallbackTransition,Xt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:p,transition:Ht,fromState:xe,toState:ot,player:Q,isFallbackTransition:Xt}),Xt||(os(d,Yc),Q.onStart(()=>{ga(d,Yc)})),Q.onDone(()=>{let Zt=this.players.indexOf(Q);Zt>=0&&this.players.splice(Zt,1);const vn=this._engine.playersByElement.get(d);if(vn){let Sn=vn.indexOf(Q);Sn>=0&&vn.splice(Sn,1)}}),this.players.push(Q),Bt.push(Q),Q}deregister(d){this._triggers.delete(d),this._engine.statesByElement.forEach(p=>p.delete(d)),this._elementListeners.forEach((p,v)=>{this._elementListeners.set(v,p.filter(C=>C.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const p=this._engine.playersByElement.get(d);p&&(p.forEach(v=>v.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,p){const v=this._engine.driver.query(d,Yr,!0);v.forEach(C=>{if(C[ar])return;const O=this._engine.fetchNamespacesByElement(C);O.size?O.forEach(Q=>Q.triggerLeaveAnimation(C,p,!1,!0)):this.clearElementCache(C)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(C=>this.clearElementCache(C)))}triggerLeaveAnimation(d,p,v,C){const O=this._engine.statesByElement.get(d),Q=new Map;if(O){const Me=[];if(O.forEach((xe,ot)=>{if(Q.set(ot,xe.value),this._triggers.has(ot)){const yt=this.trigger(d,ot,fa,C);yt&&Me.push(yt)}}),Me.length)return this._engine.markElementAsRemoved(this.id,d,!0,p,Q),v&&We(Me).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const p=this._elementListeners.get(d),v=this._engine.statesByElement.get(d);if(p&&v){const C=new Set;p.forEach(O=>{const Q=O.name;if(C.has(Q))return;C.add(Q);const xe=this._triggers.get(Q).fallbackTransition,ot=v.get(Q)||ma,yt=new Wc(fa),Dt=new As(this.id,Q,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:Q,transition:xe,fromState:ot,toState:yt,player:Dt,isFallbackTransition:!0})})}}removeNode(d,p){const v=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,p),this.triggerLeaveAnimation(d,p,!0))return;let C=!1;if(v.totalAnimations){const O=v.players.length?v.playersByQueriedElement.get(d):[];if(O&&O.length)C=!0;else{let Q=d;for(;Q=Q.parentNode;)if(v.statesByElement.get(Q)){C=!0;break}}}if(this.prepareLeaveAnimationListeners(d),C)v.markElementAsRemoved(this.id,d,!1,p);else{const O=d[ar];(!O||O===Jr)&&(v.afterFlush(()=>this.clearElementCache(d)),v.destroyInnerAnimations(d),v._onRemovalComplete(d,p))}}insertNode(d,p){os(d,this._hostClassName)}drainQueuedTransitions(d){const p=[];return this._queue.forEach(v=>{const C=v.player;if(C.destroyed)return;const O=v.element,Q=this._elementListeners.get(O);Q&&Q.forEach(Me=>{if(Me.name==v.triggerName){const xe=Bn(O,v.triggerName,v.fromState.value,v.toState.value);xe._data=d,sn(v.player,Me.phase,xe,Me.callback)}}),C.markedForDestroy?this._engine.afterFlush(()=>{C.destroy()}):p.push(v)}),this._queue=[],p.sort((v,C)=>{const O=v.transition.ast.depCount,Q=C.transition.ast.depCount;return 0==O||0==Q?O-Q:this._engine.driver.containsElement(v.element,C.element)?1:-1})}destroy(d){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}}class Fs{_onRemovalComplete(d,p){this.onRemovalComplete(d,p)}constructor(d,p,v){this.bodyNode=d,this.driver=p,this._normalizer=v,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=(C,O)=>{}}get queuedPlayers(){const d=[];return this._namespaceList.forEach(p=>{p.players.forEach(v=>{v.queued&&d.push(v)})}),d}createNamespace(d,p){const v=new Kc(d,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(v,p):(this.newHostElements.set(p,v),this.collectEnterElement(p)),this._namespaceLookup[d]=v}_balanceNamespaceList(d,p){const v=this._namespaceList,C=this.namespacesByHostElement;if(v.length-1>=0){let Q=!1,Me=this.driver.getParentElement(p);for(;Me;){const xe=C.get(Me);if(xe){const ot=v.indexOf(xe);v.splice(ot+1,0,d),Q=!0;break}Me=this.driver.getParentElement(Me)}Q||v.unshift(d)}else v.push(d);return C.set(p,d),d}register(d,p){let v=this._namespaceLookup[d];return v||(v=this.createNamespace(d,p)),v}registerTrigger(d,p,v){let C=this._namespaceLookup[d];C&&C.register(p,v)&&this.totalAnimations++}destroy(d,p){d&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(d);this.namespacesByHostElement.delete(v.hostElement);const C=this._namespaceList.indexOf(v);C>=0&&this._namespaceList.splice(C,1),v.destroy(p),delete this._namespaceLookup[d]}))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const p=new Set,v=this.statesByElement.get(d);if(v)for(let C of v.values())if(C.namespaceId){const O=this._fetchNamespace(C.namespaceId);O&&p.add(O)}return p}trigger(d,p,v,C){if(Xs(p)){const O=this._fetchNamespace(d);if(O)return O.trigger(p,v,C),!0}return!1}insertNode(d,p,v,C){if(!Xs(p))return;const O=p[ar];if(O&&O.setForRemoval){O.setForRemoval=!1,O.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(p);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(d){const Q=this._fetchNamespace(d);Q&&Q.insertNode(p,v)}C&&this.collectEnterElement(p)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,p){p?this.disabledNodes.has(d)||(this.disabledNodes.add(d),os(d,Or)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),ga(d,Or))}removeNode(d,p,v){if(Xs(p)){const C=d?this._fetchNamespace(d):null;C?C.removeNode(p,v):this.markElementAsRemoved(d,p,!1,v);const O=this.namespacesByHostElement.get(p);O&&O.id!==d&&O.removeNode(p,v)}else this._onRemovalComplete(p,v)}markElementAsRemoved(d,p,v,C,O){this.collectedLeaveElements.push(p),p[ar]={namespaceId:d,setForRemoval:C,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:O}}listen(d,p,v,C,O){return Xs(p)?this._fetchNamespace(d).listen(p,v,C,O):()=>{}}_buildInstruction(d,p,v,C,O){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,v,C,d.fromState.options,d.toState.options,p,O)}destroyInnerAnimations(d){let p=this.driver.query(d,Yr,!0);p.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(d,Ba,!0),p.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(d){const p=this.playersByElement.get(d);p&&p.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(d){const p=this.playersByQueriedElement.get(d);p&&p.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return We(this.players).onDone(()=>d());d()})}processLeaveNode(d){const p=d[ar];if(p&&p.setForRemoval){if(d[ar]=Jr,p.namespaceId){this.destroyInnerAnimations(d);const v=this._fetchNamespace(p.namespaceId);v&&v.clearElementCache(d)}this._onRemovalComplete(d,p.setForRemoval)}d.classList?.contains(Or)&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(d=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,C)=>this._balanceNamespaceList(v,C)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],p.length?We(p).onDone(()=>{v.forEach(C=>C())}):v.forEach(C=>C())}}reportError(d){throw function ds(T){return new r.wOt(3402,!1)}()}_flushAnimations(d,p){const v=new gn,C=[],O=new Map,Q=[],Me=new Map,xe=new Map,ot=new Map,yt=new Set;this.disabledNodes.forEach(Di=>{yt.add(Di);const _i=this.driver.query(Di,".ng-animate-queued",!0);for(let Ui=0;Ui<_i.length;Ui++)yt.add(_i[Ui])});const Dt=this.bodyNode,Bt=Array.from(this.statesByElement.keys()),Ht=Mc(Bt,this.collectedEnterElements),Xt=new Map;let Zt=0;Ht.forEach((Di,_i)=>{const Ui=gc+Zt++;Xt.set(_i,Ui),Di.forEach(zo=>os(zo,Ui))});const vn=[],Sn=new Set,ai=new Set;for(let Di=0;DiSn.add(zo)):ai.add(_i))}const an=new Map,_n=Mc(Bt,Array.from(Sn));_n.forEach((Di,_i)=>{const Ui=mo+Zt++;an.set(_i,Ui),Di.forEach(zo=>os(zo,Ui))}),d.push(()=>{Ht.forEach((Di,_i)=>{const Ui=Xt.get(_i);Di.forEach(zo=>ga(zo,Ui))}),_n.forEach((Di,_i)=>{const Ui=an.get(_i);Di.forEach(zo=>ga(zo,Ui))}),vn.forEach(Di=>{this.processLeaveNode(Di)})});const ti=[],Jn=[];for(let Di=this._namespaceList.length-1;Di>=0;Di--)this._namespaceList[Di].drainQueuedTransitions(p).forEach(Ui=>{const zo=Ui.player,zr=Ui.element;if(ti.push(zo),this.collectedEnterElements.length){const ss=zr[ar];if(ss&&ss.setForMove){if(ss.previousTriggersValues&&ss.previousTriggersValues.has(Ui.triggerName)){const hc=ss.previousTriggersValues.get(Ui.triggerName),la=this.statesByElement.get(Ui.element);if(la&&la.has(Ui.triggerName)){const Lu=la.get(Ui.triggerName);Lu.value=hc,la.set(Ui.triggerName,Lu)}}return void zo.destroy()}}const dc=!Dt||!this.driver.containsElement(Dt,zr),ca=an.get(zr),dr=Xt.get(zr),Fo=this._buildInstruction(Ui,v,dr,ca,dc);if(Fo.errors&&Fo.errors.length)return void Jn.push(Fo);if(dc)return zo.onStart(()=>wi(zr,Fo.fromStyles)),zo.onDestroy(()=>Wr(zr,Fo.toStyles)),void C.push(zo);if(Ui.isFallbackTransition)return zo.onStart(()=>wi(zr,Fo.fromStyles)),zo.onDestroy(()=>Wr(zr,Fo.toStyles)),void C.push(zo);const Fd=[];Fo.timelines.forEach(ss=>{ss.stretchStartingKeyframe=!0,this.disabledNodes.has(ss.element)||Fd.push(ss)}),Fo.timelines=Fd,v.append(zr,Fo.timelines),Q.push({instruction:Fo,player:zo,element:zr}),Fo.queriedElements.forEach(ss=>fi(Me,ss,[]).push(zo)),Fo.preStyleProps.forEach((ss,hc)=>{if(ss.size){let la=xe.get(hc);la||xe.set(hc,la=new Set),ss.forEach((Lu,Ad)=>la.add(Ad))}}),Fo.postStyleProps.forEach((ss,hc)=>{let la=ot.get(hc);la||ot.set(hc,la=new Set),ss.forEach((Lu,Ad)=>la.add(Ad))})});if(Jn.length){const Di=[];Jn.forEach(_i=>{Di.push(function Fn(T,d){return new r.wOt(3505,!1)}())}),ti.forEach(_i=>_i.destroy()),this.reportError(Di)}const bi=new Map,Bi=new Map;Q.forEach(Di=>{const _i=Di.element;v.has(_i)&&(Bi.set(_i,_i),this._beforeAnimationBuild(Di.player.namespaceId,Di.instruction,bi))}),C.forEach(Di=>{const _i=Di.element;this._getPreviousPlayers(_i,!1,Di.namespaceId,Di.triggerName,null).forEach(zo=>{fi(bi,_i,[]).push(zo),zo.destroy()})});const nr=vn.filter(Di=>Jc(Di,xe,ot)),vr=new Map;Qc(vr,this.driver,ai,ot,rn.kp).forEach(Di=>{Jc(Di,xe,ot)&&nr.push(Di)});const Vr=new Map;Ht.forEach((Di,_i)=>{Qc(Vr,this.driver,new Set(Di),xe,rn.FX)}),nr.forEach(Di=>{const _i=vr.get(Di),Ui=Vr.get(Di);vr.set(Di,new Map([..._i?.entries()??[],...Ui?.entries()??[]]))});const Fa=[],Pd=[],ph={};Q.forEach(Di=>{const{element:_i,player:Ui,instruction:zo}=Di;if(v.has(_i)){if(yt.has(_i))return Ui.onDestroy(()=>Wr(_i,zo.toStyles)),Ui.disabled=!0,Ui.overrideTotalTime(zo.totalTime),void C.push(Ui);let zr=ph;if(Bi.size>1){let ca=_i;const dr=[];for(;ca=ca.parentNode;){const Fo=Bi.get(ca);if(Fo){zr=Fo;break}dr.push(ca)}dr.forEach(Fo=>Bi.set(Fo,zr))}const dc=this._buildAnimation(Ui.namespaceId,zo,bi,O,Vr,vr);if(Ui.setRealPlayer(dc),zr===ph)Fa.push(Ui);else{const ca=this.playersByElement.get(zr);ca&&ca.length&&(Ui.parentPlayer=We(ca)),C.push(Ui)}}else wi(_i,zo.fromStyles),Ui.onDestroy(()=>Wr(_i,zo.toStyles)),Pd.push(Ui),yt.has(_i)&&C.push(Ui)}),Pd.forEach(Di=>{const _i=O.get(Di.element);if(_i&&_i.length){const Ui=We(_i);Di.setRealPlayer(Ui)}}),C.forEach(Di=>{Di.parentPlayer?Di.syncPlayerEvents(Di.parentPlayer):Di.destroy()});for(let Di=0;Di!dc.destroyed);zr.length?au(this,_i,zr):this.processLeaveNode(_i)}return vn.length=0,Fa.forEach(Di=>{this.players.push(Di),Di.onDone(()=>{Di.destroy();const _i=this.players.indexOf(Di);this.players.splice(_i,1)}),Di.play()}),Fa}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,p,v,C,O){let Q=[];if(p){const Me=this.playersByQueriedElement.get(d);Me&&(Q=Me)}else{const Me=this.playersByElement.get(d);if(Me){const xe=!O||O==fa;Me.forEach(ot=>{ot.queued||!xe&&ot.triggerName!=C||Q.push(ot)})}}return(v||C)&&(Q=Q.filter(Me=>!(v&&v!=Me.namespaceId||C&&C!=Me.triggerName))),Q}_beforeAnimationBuild(d,p,v){const O=p.element,Q=p.isRemovalTransition?void 0:d,Me=p.isRemovalTransition?void 0:p.triggerName;for(const xe of p.timelines){const ot=xe.element,yt=ot!==O,Dt=fi(v,ot,[]);this._getPreviousPlayers(ot,yt,Q,Me,p.toState).forEach(Ht=>{const Xt=Ht.getRealPlayer();Xt.beforeDestroy&&Xt.beforeDestroy(),Ht.destroy(),Dt.push(Ht)})}wi(O,p.fromStyles)}_buildAnimation(d,p,v,C,O,Q){const Me=p.triggerName,xe=p.element,ot=[],yt=new Set,Dt=new Set,Bt=p.timelines.map(Xt=>{const Zt=Xt.element;yt.add(Zt);const vn=Zt[ar];if(vn&&vn.removedBeforeQueried)return new rn.sf(Xt.duration,Xt.delay);const Sn=Zt!==xe,ai=function Wu(T){const d=[];return _s(T,d),d}((v.get(Zt)||zc).map(bi=>bi.getRealPlayer())).filter(bi=>!!bi.element&&bi.element===Zt),an=O.get(Zt),_n=Q.get(Zt),ti=ct(this._normalizer,Xt.keyframes,an,_n),Jn=this._buildPlayer(Xt,ti,ai);if(Xt.subTimeline&&C&&Dt.add(Zt),Sn){const bi=new As(d,Me,Zt);bi.setRealPlayer(Jn),ot.push(bi)}return Jn});ot.forEach(Xt=>{fi(this.playersByQueriedElement,Xt.element,[]).push(Xt),Xt.onDone(()=>function su(T,d,p){let v=T.get(d);if(v){if(v.length){const C=v.indexOf(p);v.splice(C,1)}0==v.length&&T.delete(d)}return v}(this.playersByQueriedElement,Xt.element,Xt))}),yt.forEach(Xt=>os(Xt,ta));const Ht=We(Bt);return Ht.onDestroy(()=>{yt.forEach(Xt=>ga(Xt,ta)),Wr(xe,p.toStyles)}),Dt.forEach(Xt=>{fi(C,Xt,[]).push(Ht)}),Ht}_buildPlayer(d,p,v){return p.length>0?this.driver.animate(d.element,p,d.duration,d.delay,d.easing,v):new rn.sf(d.duration,d.delay)}}class As{constructor(d,p,v){this.namespaceId=d,this.triggerName=p,this.element=v,this._player=new rn.sf,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(d){this._containsRealPlayer||(this._player=d,this._queuedCallbacks.forEach((p,v)=>{p.forEach(C=>sn(d,v,void 0,C))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const p=this._player;p.triggerCallback&&d.onStart(()=>p.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,p){fi(this._queuedCallbacks,d,[]).push(p)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}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(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const p=this._player;p.triggerCallback&&p.triggerCallback(d)}}function Xs(T){return T&&1===T.nodeType}function Sa(T,d){const p=T.style.display;return T.style.display=d??"none",p}function Qc(T,d,p,v,C){const O=[];p.forEach(xe=>O.push(Sa(xe)));const Q=[];v.forEach((xe,ot)=>{const yt=new Map;xe.forEach(Dt=>{const Bt=d.computeStyle(ot,Dt,C);yt.set(Dt,Bt),(!Bt||0==Bt.length)&&(ot[ar]=go,Q.push(ot))}),T.set(ot,yt)});let Me=0;return p.forEach(xe=>Sa(xe,O[Me++])),Q}function Mc(T,d){const p=new Map;if(T.forEach(Me=>p.set(Me,[])),0==d.length)return p;const C=new Set(d),O=new Map;function Q(Me){if(!Me)return 1;let xe=O.get(Me);if(xe)return xe;const ot=Me.parentNode;return xe=p.has(ot)?ot:C.has(ot)?1:Q(ot),O.set(Me,xe),xe}return d.forEach(Me=>{const xe=Q(Me);1!==xe&&p.get(xe).push(Me)}),p}function os(T,d){T.classList?.add(d)}function ga(T,d){T.classList?.remove(d)}function au(T,d,p){We(p).onDone(()=>T.processLeaveNode(d))}function _s(T,d){for(let p=0;pC.add(O)):d.set(T,v),p.delete(T),!0}class P{constructor(d,p,v){this._driver=p,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(C,O)=>{},this._transitionEngine=new Fs(d.body,p,v),this._timelineEngine=new Gu(d.body,p,v),this._transitionEngine.onRemovalComplete=(C,O)=>this.onRemovalComplete(C,O)}registerTrigger(d,p,v,C,O){const Q=d+"-"+C;let Me=this._triggerCache[Q];if(!Me){const xe=[],yt=Go(this._driver,O,xe,[]);if(xe.length)throw function _r(T,d){return new r.wOt(3404,!1)}();Me=function ns(T,d,p){return new no(T,d,p)}(C,yt,this._normalizer),this._triggerCache[Q]=Me}this._transitionEngine.registerTrigger(p,C,Me)}register(d,p){this._transitionEngine.register(d,p)}destroy(d,p){this._transitionEngine.destroy(d,p)}onInsert(d,p,v,C){this._transitionEngine.insertNode(d,p,v,C)}onRemove(d,p,v){this._transitionEngine.removeNode(d,p,v)}disableAnimations(d,p){this._transitionEngine.markElementAsDisabled(d,p)}process(d,p,v,C){if("@"==v.charAt(0)){const[O,Q]=ki(v);this._timelineEngine.command(O,p,Q,C)}else this._transitionEngine.trigger(d,p,v,C)}listen(d,p,v,C,O){if("@"==v.charAt(0)){const[Q,Me]=ki(v);return this._timelineEngine.listen(Q,p,Me,O)}return this._transitionEngine.listen(d,p,v,C,O)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(d){this._transitionEngine.afterFlushAnimationsDone(d)}}class k{static#e=this.initialStylesByElement=new WeakMap;constructor(d,p,v){this._element=d,this._startStyles=p,this._endStyles=v,this._state=0;let C=k.initialStylesByElement.get(d);C||k.initialStylesByElement.set(d,C=new Map),this._initialStyles=C}start(){this._state<1&&(this._startStyles&&Wr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wr(this._element,this._initialStyles),this._endStyles&&(Wr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(k.initialStylesByElement.delete(this._element),this._startStyles&&(wi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wi(this._element,this._endStyles),this._endStyles=null),Wr(this._element,this._initialStyles),this._state=3)}}function le(T){let d=null;return T.forEach((p,v)=>{(function $e(T){return"display"===T||"position"===T})(v)&&(d=d||new Map,d.set(v,p))}),d}class mt{constructor(d,p,v,C){this.element=d,this.keyframes=p,this.options=v,this._specialStyles=C,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=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:new Map;const p=()=>this._onFinish();this.domPlayer.addEventListener("finish",p),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",p)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(d){const p=[];return d.forEach(v=>{p.push(Object.fromEntries(v))}),p}_triggerWebAnimation(d,p,v){return d.animate(this._convertKeyframesToObject(p),v)}onStart(d){this._originalOnStartFns.push(d),this._onStartFns.push(d)}onDone(d){this._originalOnDoneFns.push(d),this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),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(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,C)=>{"offset"!==C&&d.set(C,this._finished?v:Ds(this.element,C))}),this.currentSnapshot=d}triggerCallback(d){const p="start"===d?this._onStartFns:this._onDoneFns;p.forEach(v=>v()),p.length=0}}class kt{validateStyleProperty(d){return!0}validateAnimatableStyleProperty(d){return!0}containsElement(d,p){return ht(d,p)}getParentElement(d){return di(d)}query(d,p,v){return Jt(d,p,v)}computeStyle(d,p,v){return Ds(d,p)}animate(d,p,v,C,O,Q=[]){const xe={duration:v,delay:C,fill:0==C?"both":"forwards"};O&&(xe.easing=O);const ot=new Map,yt=Q.filter(Ht=>Ht instanceof mt);(function _l(T,d){return 0===T||0===d})(v,C)&&yt.forEach(Ht=>{Ht.currentSnapshot.forEach((Xt,Zt)=>ot.set(Zt,Xt))});let Dt=function vc(T){return T.length?T[0]instanceof Map?T:T.map(d=>new Map(Object.entries(d))):[]}(p).map(Ht=>new Map(Ht));Dt=function Uu(T,d,p){if(p.size&&d.length){let v=d[0],C=[];if(p.forEach((O,Q)=>{v.has(Q)||C.push(Q),v.set(Q,O)}),C.length)for(let O=1;OQ.set(Me,Ds(T,Me)))}}return d}(d,Dt,ot);const Bt=function ae(T,d){let p=null,v=null;return Array.isArray(d)&&d.length?(p=le(d[0]),d.length>1&&(v=le(d[d.length-1]))):d instanceof Map&&(p=le(d)),p||v?new k(T,p,v):null}(d,Dt);return new mt(d,Dt,xe,Bt)}}const Fi="@.disabled";class Ai{constructor(d,p,v,C){this.namespaceId=d,this.delegate=p,this.engine=v,this._onDestroy=C,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(d){this.delegate.destroyNode?.(d)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(d,p){return this.delegate.createElement(d,p)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,p){this.delegate.appendChild(d,p),this.engine.onInsert(this.namespaceId,p,d,!1)}insertBefore(d,p,v,C=!0){this.delegate.insertBefore(d,p,v),this.engine.onInsert(this.namespaceId,p,d,C)}removeChild(d,p,v){this.engine.onRemove(this.namespaceId,p,this.delegate)}selectRootElement(d,p){return this.delegate.selectRootElement(d,p)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,p,v,C){this.delegate.setAttribute(d,p,v,C)}removeAttribute(d,p,v){this.delegate.removeAttribute(d,p,v)}addClass(d,p){this.delegate.addClass(d,p)}removeClass(d,p){this.delegate.removeClass(d,p)}setStyle(d,p,v,C){this.delegate.setStyle(d,p,v,C)}removeStyle(d,p,v){this.delegate.removeStyle(d,p,v)}setProperty(d,p,v){"@"==p.charAt(0)&&p==Fi?this.disableAnimations(d,!!v):this.delegate.setProperty(d,p,v)}setValue(d,p){this.delegate.setValue(d,p)}listen(d,p,v){return this.delegate.listen(d,p,v)}disableAnimations(d,p){this.engine.disableAnimations(d,p)}}class Ro extends Ai{constructor(d,p,v,C,O){super(p,v,C,O),this.factory=d,this.namespaceId=p}setProperty(d,p,v){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Fi?this.disableAnimations(d,v=void 0===v||!!v):this.engine.process(this.namespaceId,d,p.slice(1),v):this.delegate.setProperty(d,p,v)}listen(d,p,v){if("@"==p.charAt(0)){const C=function ys(T){switch(T){case"body":return document.body;case"document":return document;case"window":return window;default:return T}}(d);let O=p.slice(1),Q="";return"@"!=O.charAt(0)&&([O,Q]=function Er(T){const d=T.indexOf(".");return[T.substring(0,d),T.slice(d+1)]}(O)),this.engine.listen(this.namespaceId,C,O,Q,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,v,Me)})}return this.delegate.listen(d,p,v)}}class Hi{constructor(d,p,v){this.delegate=d,this.engine=p,this._zone=v,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,p.onRemovalComplete=(C,O)=>{const Q=O?.parentNode(C);Q&&O.removeChild(Q,C)}}createRenderer(d,p){const C=this.delegate.createRenderer(d,p);if(!d||!p?.data?.animation){const ot=this._rendererCache;let yt=ot.get(C);return yt||(yt=new Ai("",C,this.engine,()=>ot.delete(C)),ot.set(C,yt)),yt}const O=p.id,Q=p.id+"-"+this._currentId;this._currentId++,this.engine.register(Q,d);const Me=ot=>{Array.isArray(ot)?ot.forEach(Me):this.engine.registerTrigger(O,Q,d,ot.name,ot)};return p.data.animation.forEach(Me),new Ro(this,Q,C,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(d,p,v){if(d>=0&&dp(v));const C=this._animationCallbacksBuffer;0==C.length&&queueMicrotask(()=>{this._zone.run(()=>{C.forEach(O=>{const[Q,Me]=O;Q(Me)}),this._animationCallbacksBuffer=[]})}),C.push([p,v])}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()}}let So=(()=>{class T extends P{constructor(p,v,C){super(p,v,C)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(v){return new(v||T)(r.KVO(Ve.qQ),r.KVO(wo),r.KVO(yi))};static#t=this.\u0275prov=r.jDH({token:T,factory:T.\u0275fac})}return T})();const tr=[{provide:yi,useFactory:function er(){return new ha}},{provide:P,useClass:So},{provide:r._9s,useFactory:function ia(T,d,p){return new Hi(T,d,p)},deps:[t.B7,P,r.SKi]}],bl=[{provide:wo,useFactory:()=>new kt},{provide:r.bc$,useValue:"BrowserAnimations"},...tr],El=[{provide:wo,useClass:Qi},{provide:r.bc$,useValue:"NoopAnimations"},...tr];let Tl=(()=>{class T{static withConfig(p){return{ngModule:T,providers:p.disableAnimations?El:bl}}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({providers:bl,imports:[t.Bb]})}return T})();c(8167);const ad=[{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:"featureFullcolor",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:''}],Eu=function Ls(T){const d=[];return T.forEach(p=>{const v={name:v1(p.name),theme:jl(p.name),icon:p.data};d.push(v)}),d}([{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:"featureOutline",data:''},{name:"featureTwotone",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 v1(T){return"civic-"+function j1(T){return T.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(T.replace(/Outline|Fill|TwoTone/i,""))}function jl(T){return T.includes("Twotone")?"twotone":T.includes("Outline")?"outline":T.includes("Fill")?"fill":"outline"}var _1=c(776),Bs=c(1377),ec=c(1188);const Ul=[{path:"",loadChildren:()=>c.e(4178).then(c.bind(c,4178)).then(T=>T.LayoutModule)}],Gl={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let Tu=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({imports:[ec.iI.forRoot(Ul,Gl),ec.iI]})}return T})();var Zs=c(5312),ji=c(5103),Yl=c(4222),Wl=c(2096),y1=c(3801),cd=c(3617),C1=c(513),ld=c(6389),ud=c(5930),b1=c(1774);const tc=T=>({error:T});function dd(T,d){if(1&T&&r.EFF(0),2&T){const p=r.XpG().ngIf;r.Lme(" ",p.name," ",p.message," ")}}function hd(T,d){1&T&&r.eu8(0)}function pd(T,d){if(1&T&&r.DNE(0,hd,1,0,"ng-container",8),2&T){const p=r.XpG().ngIf,v=r.sdS(7);r.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",r.eq3(2,tc,p))}}function fd(T,d){if(1&T){const p=r.RV6();r.j41(0,"button",10),r.bIt("click",function(){r.eBV(p);const C=r.XpG().error;r.XpG();const O=r.sdS(9),Q=r.sdS(11),Me=r.XpG();return r.Njj(Me.showModal("Backtrace for '"+C.message+"'",C.backtrace,Q,O))}),r.EFF(1," View Backtrace "),r.k0s()}}function md(T,d){if(1&T&&(r.EFF(0),r.DNE(1,fd,2,0,"button",9)),2&T){const p=d.error;r.SpI(" ",p.message," "),r.R7$(),r.Y8G("ngIf",p.backtrace.length>0)}}function Dn(T,d){if(1&T&&(r.j41(0,"pre",11),r.EFF(1),r.k0s()),2&T){const p=d.$implicit;r.R7$(),r.JRh(p.backtrace)}}function oo(T,d){if(1&T){const p=r.RV6();r.j41(0,"button",12),r.bIt("click",function(){r.eBV(p);const C=r.XpG(2);return r.Njj(C.copyToClipboard())}),r.EFF(1," Copy to Clipboard "),r.k0s(),r.j41(2,"button",13),r.bIt("click",function(){const C=r.eBV(p).modalRef,O=r.XpG(2);return r.Njj(O.hideModal(C))}),r.EFF(3," OK "),r.k0s()}}function E1(T,d){if(1&T){const p=r.RV6();r.j41(0,"div",6)(1,"nz-alert",7),r.bIt("nzOnClose",function(){r.eBV(p);const C=r.XpG();return r.Njj(C.onClose())}),r.k0s(),r.DNE(2,dd,1,2,"ng-template",null,0,r.C5r)(4,pd,1,4,"ng-template",null,1,r.C5r)(6,md,2,2,"ng-template",null,2,r.C5r)(8,Dn,2,1,"ng-template",null,3,r.C5r)(10,oo,4,0,"ng-template",null,4,r.C5r),r.k0s()}if(2&T){const p=r.sdS(3),v=r.sdS(5);r.R7$(),r.Y8G("nzMessage",p)("nzDescription",v)}}let T1=(()=>{class T{constructor(p,v,C){this.modal=v,this.clipboard=C,this.modalVisible=!1,this.errors=p}showModal(p,v,C,O){this.modalContent=v.join("\n"),this.modal.create({nzTitle:p,nzFooter:C,nzContent:O,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzData:{backtrace:this.modalContent}})}hideModal(p){p.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}static#e=this.\u0275fac=function(v){return new(v||T)(r.rXU(Yl.N),r.rXU(Wl.N_),r.rXU(y1.B0))};static#t=this.\u0275cmp=r.VBU({type:T,selectors:[["cvc-network-error-alert"]],decls:2,vars:3,consts:[["alertMessage",""],["alertDescription",""],["errorDisplay",""],["modalContent",""],["modalFooter",""],["class","alert-container",4,"ngIf"],[1,"alert-container"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage","nzDescription"],[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(v,C){1&v&&(r.DNE(0,E1,12,2,"div",5),r.nI1(1,"ngrxPush")),2&v&&r.Y8G("ngIf",r.bMT(1,1,C.errors.networkError$))},dependencies:[Ve.bT,Ve.T3,cd.Y,C1.aO,ld.c,ud.p,b1.L9],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})}return T})(),Io=(()=>{class T{constructor(p,v){this.iconService=p,this.router=v,this.addIcons(ad),Zs.c.production&&this.router.events.subscribe(C=>{C instanceof ec.wF&>ag("config","UA-60119642-1",{page_path:C.urlAfterRedirects})})}addIcons(p){p.forEach(v=>{const O="civic:"+v.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(O,v.data)})}static#e=this.\u0275fac=function(v){return new(v||T)(r.rXU(ji.Rt),r.rXU(ec.Ix))};static#t=this.\u0275cmp=r.VBU({type:T,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(v,C){1&v&&(r.j41(0,"div",0),r.nrm(1,"cvc-network-error-alert"),r.k0s(),r.j41(2,"div",1),r.nrm(3,"router-outlet"),r.k0s())},dependencies:[ec.n3,T1],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}"]})}return T})();var ll=c(8008),ri=c(4626),Ho=c(1404),nc=c(2081),Ac=c(9860),ul=c(6108),zu=c(2151),Kl=c(7994),ra=c(1115),z1=c(9055),Mu=c(8782),qr=c(9471),sa=function(){function T(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,nc.LV)(ul.ct,{max:zu.v["cache.fragmentQueryDocuments"]||1e3,cache:z1.l})}return T.prototype.batch=function(d){var C,p=this;return this.performTransaction(function(){return C=d.update(p)},"string"==typeof d.optimistic?d.optimistic:!1===d.optimistic?null:void 0),C},T.prototype.recordOptimisticTransaction=function(d,p){this.performTransaction(d,p)},T.prototype.transformDocument=function(d){return d},T.prototype.transformForLink=function(d){return d},T.prototype.identify=function(d){},T.prototype.gc=function(){return[]},T.prototype.modify=function(d){return!1},T.prototype.readQuery=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,ri.Cl)((0,ri.Cl)({},d),{rootId:d.id||"ROOT_QUERY",optimistic:p}))},T.prototype.watchFragment=function(d){var Dt,p=this,v=d.fragment,C=d.fragmentName,O=d.from,Q=d.optimistic,Me=void 0===Q||Q,xe=(0,ri.Tt)(d,["fragment","fragmentName","from","optimistic"]),ot=this.getFragmentDoc(v,C),yt=(0,ri.Cl)((0,ri.Cl)({},xe),{returnPartialData:!0,id:"string"==typeof O?O:this.identify(O),query:ot,optimistic:Me});return new Kl.c(function(Bt){return p.watch((0,ri.Cl)((0,ri.Cl)({},yt),{immediate:!0,callback:function(Ht){if(!Dt||!(0,qr.a)(ot,{data:Dt?.result},{data:Ht.result})){var Xt={data:Ht.result,complete:!!Ht.complete};Ht.missing&&(Xt.missing=(0,ra.IM)(Ht.missing.map(function(Zt){return Zt.missing}))),Dt=Ht,Bt.next(Xt)}}}))})},T.prototype.readFragment=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,ri.Cl)((0,ri.Cl)({},d),{query:this.getFragmentDoc(d.fragment,d.fragmentName),rootId:d.id,optimistic:p}))},T.prototype.writeQuery=function(d){var p=d.id,v=d.data,C=(0,ri.Tt)(d,["id","data"]);return this.write(Object.assign(C,{dataId:p||"ROOT_QUERY",result:v}))},T.prototype.writeFragment=function(d){var p=d.id,v=d.data,C=d.fragment,O=d.fragmentName,Q=(0,ri.Tt)(d,["id","data","fragment","fragmentName"]);return this.write(Object.assign(Q,{query:this.getFragmentDoc(C,O),dataId:p,result:v}))},T.prototype.updateQuery=function(d,p){return this.batch({update:function(v){var C=v.readQuery(d),O=p(C);return null==O?C:(v.writeQuery((0,ri.Cl)((0,ri.Cl)({},d),{data:O})),O)}})},T.prototype.updateFragment=function(d,p){return this.batch({update:function(v){var C=v.readFragment(d),O=p(C);return null==O?C:(v.writeFragment((0,ri.Cl)((0,ri.Cl)({},d),{data:O})),O)}})},T}();!1!==globalThis.__DEV__&&(sa.prototype.getMemoryInternals=Mu.tQ);var Su=function(T){function d(p,v,C,O){var Q,Me=T.call(this,p)||this;if(Me.message=p,Me.path=v,Me.query=C,Me.variables=O,Array.isArray(Me.path)){Me.missing=Me.message;for(var xe=Me.path.length-1;xe>=0;--xe)Me.missing=((Q={})[Me.path[xe]]=Me.missing,Q)}else Me.missing=Me.path;return Me.__proto__=d.prototype,Me}return(0,ri.C6)(d,T),d}(Error),qs=c(8926),ea=c(1601),dl=c(2130),M1=c(1658),Li=c(1367),S1=c(1955),ic=c(6500),Xl=c(120),wa=c(4229),Rc=c(4183),rs=c(1181);function Ql(T){return!1!==globalThis.__DEV__&&function D1(T){var d=new Set([T]);return d.forEach(function(p){(0,rs.U)(p)&&function Du(T){if(!1!==globalThis.__DEV__&&!Object.isFrozen(T))try{Object.freeze(T)}catch(d){if(d instanceof TypeError)return null;throw d}return T}(p)===p&&Object.getOwnPropertyNames(p).forEach(function(v){(0,rs.U)(p[v])&&d.add(p[v])})}),T}(T),T}var hl=c(4420),Jo=c(7715),ur=Object.prototype.hasOwnProperty;function oc(T){return null==T}function O1(T,d){var p=T.__typename,v=T.id,C=T._id;if("string"==typeof p&&(d&&(d.keyObject=oc(v)?oc(C)?void 0:{_id:C}:{id:v}),oc(v)&&!oc(C)&&(v=C),!oc(v)))return"".concat(p,":").concat("number"==typeof v||"string"==typeof v?v:JSON.stringify(v))}var wr={dataIdFromObject:O1,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Vo(T){var d=T.canonizeResults;return void 0===d?wr.canonizeResults:d}var w1=/^[_a-z][_0-9a-z]*/i;function xa(T){var d=T.match(w1);return d?d[0]:T}function Ou(T,d,p){return!!(0,rs.U)(d)&&((0,Jo.c)(d)?d.every(function(v){return Ou(T,v,p)}):T.selections.every(function(v){if((0,Li.dt)(v)&&(0,Rc.MS)(v,p)){var C=(0,Li.ue)(v);return ur.call(d,C)&&(!v.selectionSet||Ou(v.selectionSet,d[C],p))}return!0}))}function sc(T){return(0,rs.U)(T)&&!(0,Li.A_)(T)&&!(0,Jo.c)(T)}function Nc(T,d){var p=(0,ul.JG)((0,wa.zK)(T));return{fragmentMap:p,lookupFragment:function(v){var C=p[v];return!C&&d&&(C=d.lookup(v)),C||null}}}var T,d,Ts=Object.create(null),m=function(){return Ts},zs=Object.create(null),Ie=function(){function T(d,p){var v=this;this.policies=d,this.group=p,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(C,O){return Ql((0,Li.A_)(C)?v.get(C.__ref,O):C&&C[O])},this.canRead=function(C){return(0,Li.A_)(C)?v.has(C.__ref):"object"==typeof C},this.toReference=function(C,O){if("string"==typeof C)return(0,Li.WU)(C);if((0,Li.A_)(C))return C;var Q=v.policies.identify(C)[0];if(Q){var Me=(0,Li.WU)(Q);return O&&v.merge(Q,C),Me}}}return T.prototype.toObject=function(){return(0,ri.Cl)({},this.data)},T.prototype.has=function(d){return void 0!==this.lookup(d,!0)},T.prototype.get=function(d,p){if(this.group.depend(d,p),ur.call(this.data,d)){var v=this.data[d];if(v&&ur.call(v,p))return v[p]}return"__typename"===p&&ur.call(this.policies.rootTypenamesById,d)?this.policies.rootTypenamesById[d]:this instanceof ac?this.parent.get(d,p):void 0},T.prototype.lookup=function(d,p){return p&&this.group.depend(d,"__exists"),ur.call(this.data,d)?this.data[d]:this instanceof ac?this.parent.lookup(d,p):this.policies.rootTypenamesById[d]?Object.create(null):void 0},T.prototype.merge=function(d,p){var C,v=this;(0,Li.A_)(d)&&(d=d.__ref),(0,Li.A_)(p)&&(p=p.__ref);var O="string"==typeof d?this.lookup(C=d):d,Q="string"==typeof p?this.lookup(C=p):p;if(Q){(0,Ho.V1)("string"==typeof C,1);var Me=new ra.ZI(Jl).merge(O,Q);if(this.data[C]=Me,Me!==O&&(delete this.refs[C],this.group.caching)){var xe=Object.create(null);O||(xe.__exists=1),Object.keys(Q).forEach(function(ot){if(!O||O[ot]!==Me[ot]){xe[ot]=1;var yt=xa(ot);yt!==ot&&!v.policies.hasKeyArgs(Me.__typename,yt)&&(xe[yt]=1),void 0===Me[ot]&&!(v instanceof ac)&&delete Me[ot]}}),xe.__typename&&!(O&&O.__typename)&&this.policies.rootTypenamesById[C]===Me.__typename&&delete xe.__typename,Object.keys(xe).forEach(function(ot){return v.group.dirty(C,ot)})}}},T.prototype.modify=function(d,p){var v=this,C=this.lookup(d);if(C){var O=Object.create(null),Q=!1,Me=!0,xe={DELETE:Ts,INVALIDATE:zs,isReference:Li.A_,toReference:this.toReference,canRead:this.canRead,readField:function(ot,yt){return v.policies.readField("string"==typeof ot?{fieldName:ot,from:yt||(0,Li.WU)(d)}:ot,{store:v})}};if(Object.keys(C).forEach(function(ot){var yt=xa(ot),Dt=C[ot];if(void 0!==Dt){var Bt="function"==typeof p?p:p[ot]||p[yt];if(Bt){var Ht=Bt===m?Ts:Bt(Ql(Dt),(0,ri.Cl)((0,ri.Cl)({},xe),{fieldName:yt,storeFieldName:ot,storage:v.getStorage(d,ot)}));if(Ht===zs)v.group.dirty(d,ot);else if(Ht===Ts&&(Ht=void 0),Ht!==Dt&&(O[ot]=Ht,Q=!0,Dt=Ht,!1!==globalThis.__DEV__)){var Xt=function(ti){if(void 0===v.lookup(ti.__ref))return!1!==globalThis.__DEV__&&Ho.V1.warn(2,ti),!0};if((0,Li.A_)(Ht))Xt(Ht);else if(Array.isArray(Ht))for(var Zt=!1,vn=void 0,Sn=0,ai=Ht;Sn0){var p=--this.rootIds[d];return p||delete this.rootIds[d],p}return 0},T.prototype.getRootIdSet=function(d){return void 0===d&&(d=new Set),Object.keys(this.rootIds).forEach(d.add,d),this instanceof ac?this.parent.getRootIdSet(d):Object.keys(this.policies.rootTypenamesById).forEach(d.add,d),d},T.prototype.gc=function(){var d=this,p=this.getRootIdSet(),v=this.toObject();p.forEach(function(Q){ur.call(v,Q)&&(Object.keys(d.findChildRefIds(Q)).forEach(p.add,p),delete v[Q])});var C=Object.keys(v);if(C.length){for(var O=this;O instanceof ac;)O=O.parent;C.forEach(function(Q){return O.delete(Q)})}return C},T.prototype.findChildRefIds=function(d){if(!ur.call(this.refs,d)){var p=this.refs[d]=Object.create(null),v=this.data[d];if(!v)return p;var C=new Set([v]);C.forEach(function(O){(0,Li.A_)(O)&&(p[O.__ref]=!0),(0,rs.U)(O)&&Object.keys(O).forEach(function(Q){var Me=O[Q];(0,rs.U)(Me)&&C.add(Me)})})}return this.refs[d]},T.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},T}(),pt=function(){function T(d,p){void 0===p&&(p=null),this.caching=d,this.parent=p,this.d=null,this.resetCaching()}return T.prototype.resetCaching=function(){this.d=this.caching?(0,nc.yN)():null,this.keyMaker=new hl.b(ic.et)},T.prototype.depend=function(d,p){if(this.d){this.d(Iu(d,p));var v=xa(p);v!==p&&this.d(Iu(d,v)),this.parent&&this.parent.depend(d,p)}},T.prototype.dirty=function(d,p){this.d&&this.d.dirty(Iu(d,p),"__exists"===p?"forget":"setDirty")},T}();function Iu(T,d){return d+"#"+T}function gd(T,d){cc(T)&&T.group.depend(d,"__exists")}d=function(p){function v(C){var Q=C.resultCaching,xe=C.seed,ot=p.call(this,C.policies,new pt(void 0===Q||Q))||this;return ot.stump=new Vh(ot),ot.storageTrie=new hl.b(ic.et),xe&&ot.replace(xe),ot}return(0,ri.C6)(v,p),v.prototype.addLayer=function(C,O){return this.stump.addLayer(C,O)},v.prototype.removeLayer=function(){return this},v.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},v}(T=Ie||(Ie={})),T.Root=d;var ac=function(T){function d(p,v,C,O){var Q=T.call(this,v.policies,O)||this;return Q.id=p,Q.parent=v,Q.replay=C,Q.group=O,C(Q),Q}return(0,ri.C6)(d,T),d.prototype.addLayer=function(p,v){return new d(p,this,v,this.group)},d.prototype.removeLayer=function(p){var v=this,C=this.parent.removeLayer(p);return p===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(O){var Q=v.data[O],Me=C.lookup(O);Me?Q?Q!==Me&&Object.keys(Q).forEach(function(xe){(0,Ac.L)(Q[xe],Me[xe])||v.group.dirty(O,xe)}):(v.group.dirty(O,"__exists"),Object.keys(Me).forEach(function(xe){v.group.dirty(O,xe)})):v.delete(O)}),C):C===this.parent?this:C.addLayer(this.id,this.replay)},d.prototype.toObject=function(){return(0,ri.Cl)((0,ri.Cl)({},this.parent.toObject()),this.data)},d.prototype.findChildRefIds=function(p){var v=this.parent.findChildRefIds(p);return ur.call(this.data,p)?(0,ri.Cl)((0,ri.Cl)({},v),T.prototype.findChildRefIds.call(this,p)):v},d.prototype.getStorage=function(){for(var p=this.parent;p.parent;)p=p.parent;return p.getStorage.apply(p,arguments)},d}(Ie),Vh=function(T){function d(p){return T.call(this,"EntityStore.Stump",p,function(){},new pt(p.group.caching,p.group))||this}return(0,ri.C6)(d,T),d.prototype.removeLayer=function(){return this},d.prototype.merge=function(p,v){return this.parent.merge(p,v)},d}(ac);function Jl(T,d,p){var v=T[p],C=d[p];return(0,Ac.L)(v,C)?v:C}function cc(T){return!!(T instanceof Ie&&T.group.caching)}var wu=function(){function T(){this.known=new(ic.En?WeakSet:Set),this.pool=new hl.b(ic.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return T.prototype.isKnown=function(d){return(0,rs.U)(d)&&this.known.has(d)},T.prototype.pass=function(d){if((0,rs.U)(d)){var p=function Lh(T){return(0,rs.U)(T)?(0,Jo.c)(T)?T.slice(0):(0,ri.Cl)({__proto__:Object.getPrototypeOf(T)},T):T}(d);return this.passes.set(p,d),p}return d},T.prototype.admit=function(d){var p=this;if((0,rs.U)(d)){var v=this.passes.get(d);if(v)return v;switch(Object.getPrototypeOf(d)){case Array.prototype:if(this.known.has(d))return d;var O=d.map(this.admit,this);return(Q=this.pool.lookupArray(O)).array||(this.known.add(Q.array=O),!1!==globalThis.__DEV__&&Object.freeze(O)),Q.array;case null:case Object.prototype:if(this.known.has(d))return d;var Me=Object.getPrototypeOf(d),xe=[Me],ot=this.sortedKeys(d);xe.push(ot.json);var Q,yt=xe.length;if(ot.sorted.forEach(function(Ht){xe.push(p.admit(d[Ht]))}),!(Q=this.pool.lookupArray(xe)).object){var Dt=Q.object=Object.create(Me);this.known.add(Dt),ot.sorted.forEach(function(Ht,Xt){Dt[Ht]=xe[yt+Xt]}),!1!==globalThis.__DEV__&&Object.freeze(Dt)}return Q.object}}return d},T.prototype.sortedKeys=function(d){var p=Object.keys(d),v=this.pool.lookupArray(p);if(!v.keys){p.sort();var C=JSON.stringify(p);(v.keys=this.keysByJSON.get(C))||this.keysByJSON.set(C,v.keys={sorted:p,json:C})}return v.keys},T}();function vd(T){return[T.selectionSet,T.objectOrReference,T.context,T.context.canonizeResults]}var Bh=function(){function T(d){var p=this;this.knownResults=new(ic.et?WeakMap:Map),this.config=(0,Xl.o)(d,{addTypename:!1!==d.addTypename,canonizeResults:Vo(d)}),this.canon=d.canon||new wu,this.executeSelectionSet=(0,nc.LV)(function(v){var C,O=v.context.canonizeResults,Q=vd(v);Q[3]=!O;var Me=(C=p.executeSelectionSet).peek.apply(C,Q);return Me?O?(0,ri.Cl)((0,ri.Cl)({},Me),{result:p.canon.admit(Me.result)}):Me:(gd(v.context.store,v.enclosingRef.__ref),p.execSelectionSetImpl(v))},{max:this.config.resultCacheMaxSize||zu.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:vd,makeCacheKey:function(v,C,O,Q){if(cc(O.store))return O.store.makeCacheKey(v,(0,Li.A_)(C)?C.__ref:C,O.varString,Q)}}),this.executeSubSelectedArray=(0,nc.LV)(function(v){return gd(v.context.store,v.enclosingRef.__ref),p.execSubSelectedArrayImpl(v)},{max:this.config.resultCacheMaxSize||zu.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(v){var C=v.field,O=v.array,Q=v.context;if(cc(Q.store))return Q.store.makeCacheKey(C,O,Q.varString)}})}return T.prototype.resetCanon=function(){this.canon=new wu},T.prototype.diffQueryAgainstStore=function(d){var p=d.store,v=d.query,C=d.rootId,O=void 0===C?"ROOT_QUERY":C,Q=d.variables,Me=d.returnPartialData,xe=void 0===Me||Me,ot=d.canonizeResults,yt=void 0===ot?this.config.canonizeResults:ot,Dt=this.config.cache.policies;Q=(0,ri.Cl)((0,ri.Cl)({},(0,wa.wY)((0,wa.AT)(v))),Q);var Xt,Bt=(0,Li.WU)(O),Ht=this.executeSelectionSet({selectionSet:(0,wa.Vn)(v).selectionSet,objectOrReference:Bt,enclosingRef:Bt,context:(0,ri.Cl)({store:p,query:v,policies:Dt,variables:Q,varString:(0,dl.M)(Q),canonizeResults:yt},Nc(v,this.config.fragments))});if(Ht.missing&&(Xt=[new Su($h(Ht.missing),Ht.missing,v,Q)],!xe))throw Xt[0];return{result:Ht.result,complete:!Xt,missing:Xt}},T.prototype.isFresh=function(d,p,v,C){if(cc(C.store)&&this.knownResults.get(d)===v){var O=this.executeSelectionSet.peek(v,p,C,this.canon.isKnown(d));if(O&&d===O.result)return!0}return!1},T.prototype.execSelectionSetImpl=function(d){var p=this,v=d.selectionSet,C=d.objectOrReference,O=d.enclosingRef,Q=d.context;if((0,Li.A_)(C)&&!Q.policies.rootTypenamesById[C.__ref]&&!Q.store.has(C.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(C.__ref," object")};var Bt,Me=Q.variables,xe=Q.policies,yt=Q.store.getFieldValue(C,"__typename"),Dt=[],Ht=new ra.ZI;function Xt(an,_n){var ti;return an.missing&&(Bt=Ht.merge(Bt,((ti={})[_n]=an.missing,ti))),an.result}this.config.addTypename&&"string"==typeof yt&&!xe.rootIdsByTypename[yt]&&Dt.push({__typename:yt});var Zt=new Set(v.selections);Zt.forEach(function(an){var _n,ti;if((0,Rc.MS)(an,Me))if((0,Li.dt)(an)){var Jn=xe.readField({fieldName:an.name.value,field:an,variables:Q.variables,from:C},Q),bi=(0,Li.ue)(an);void 0===Jn?ea.XY.added(an)||(Bt=Ht.merge(Bt,((_n={})[bi]="Can't find field '".concat(an.name.value,"' on ").concat((0,Li.A_)(C)?C.__ref+" object":"object "+JSON.stringify(C,null,2)),_n))):(0,Jo.c)(Jn)?Jn.length>0&&(Jn=Xt(p.executeSubSelectedArray({field:an,array:Jn,enclosingRef:O,context:Q}),bi)):an.selectionSet?null!=Jn&&(Jn=Xt(p.executeSelectionSet({selectionSet:an.selectionSet,objectOrReference:Jn,enclosingRef:(0,Li.A_)(Jn)?Jn:O,context:Q}),bi)):Q.canonizeResults&&(Jn=p.canon.pass(Jn)),void 0!==Jn&&Dt.push(((ti={})[bi]=Jn,ti))}else{var Bi=(0,ul.HQ)(an,Q.lookupFragment);if(!Bi&&an.kind===S1.b.FRAGMENT_SPREAD)throw(0,Ho.vA)(9,an.name.value);Bi&&xe.fragmentMatches(Bi,yt)&&Bi.selectionSet.selections.forEach(Zt.add,Zt)}});var Sn={result:(0,ra.IM)(Dt),missing:Bt},ai=Q.canonizeResults?this.canon.admit(Sn):Ql(Sn);return ai.result&&this.knownResults.set(ai.result,v),ai},T.prototype.execSubSelectedArrayImpl=function(d){var Me,p=this,v=d.field,C=d.array,O=d.enclosingRef,Q=d.context,xe=new ra.ZI;function ot(yt,Dt){var Bt;return yt.missing&&(Me=xe.merge(Me,((Bt={})[Dt]=yt.missing,Bt))),yt.result}return v.selectionSet&&(C=C.filter(Q.store.canRead)),C=C.map(function(yt,Dt){return null===yt?null:(0,Jo.c)(yt)?ot(p.executeSubSelectedArray({field:v,array:yt,enclosingRef:O,context:Q}),Dt):v.selectionSet?ot(p.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:yt,enclosingRef:(0,Li.A_)(yt)?yt:O,context:Q}),Dt):(!1!==globalThis.__DEV__&&function x4(T,d,p){if(!d.selectionSet){var v=new Set([p]);v.forEach(function(C){(0,rs.U)(C)&&((0,Ho.V1)(!(0,Li.A_)(C),10,function I1(T,d){return(0,Li.A_)(d)?T.get(d.__ref,"__typename"):d&&d.__typename}(T,C),d.name.value),Object.values(C).forEach(v.add,v))})}}(Q.store,v,yt),yt)}),{result:Q.canonizeResults?this.canon.admit(C):C,missing:Me}},T}();function $h(T){try{JSON.stringify(T,function(d,p){if("string"==typeof p)throw p;return p})}catch(d){return d}}var Z2=c(4246),_d=c(1687),aa=c(4141),pl=Object.create(null);function kc(T){var d=JSON.stringify(T);return pl[d]||(pl[d]=Object.create(null))}function nh(T){var d=kc(T);return d.keyFieldsFn||(d.keyFieldsFn=function(p,v){var C=function(Q,Me){return v.readField(Me,Q)},O=v.keyObject=yd(T,function(Q){var Me=Pu(v.storeObject,Q,C);return void 0===Me&&p!==v.storeObject&&ur.call(p,Q[0])&&(Me=Pu(p,Q,xu)),(0,Ho.V1)(void 0!==Me,4,Q.join("."),p),Me});return"".concat(v.typename,":").concat(JSON.stringify(O))})}function Vc(T){var d=kc(T);return d.keyArgsFn||(d.keyArgsFn=function(p,v){var C=v.field,O=v.variables,Q=v.fieldName,Me=yd(T,function(ot){var yt=ot[0],Dt=yt.charAt(0);if("@"!==Dt)if("$"!==Dt){if(p)return Pu(p,ot)}else{var Zt=yt.slice(1);if(O&&ur.call(O,Zt)){var vn=ot.slice(0);return vn[0]=Zt,Pu(O,vn)}}else if(C&&(0,Jo.E)(C.directives)){var Bt=yt.slice(1),Ht=C.directives.find(function(Sn){return Sn.name.value===Bt}),Xt=Ht&&(0,Li.MB)(Ht,O);return Xt&&Pu(Xt,ot.slice(1))}}),xe=JSON.stringify(Me);return(p||"{}"!==xe)&&(Q+=":"+xe),Q})}function yd(T,d){var p=new ra.ZI;return P1(T).reduce(function(v,C){var O,Q=d(C);if(void 0!==Q){for(var Me=C.length-1;Me>=0;--Me)(O={})[C[Me]]=Q,Q=O;v=p.merge(v,Q)}return v},Object.create(null))}function P1(T){var d=kc(T);if(!d.paths){var p=d.paths=[],v=[];T.forEach(function(C,O){(0,Jo.c)(C)?(P1(C).forEach(function(Q){return p.push(v.concat(Q))}),v.length=0):(v.push(C),(0,Jo.c)(T[O+1])||(p.push(v.slice(0)),v.length=0))})}return d.paths}function xu(T,d){return T[d]}function Pu(T,d,p){return p=p||xu,Cd(d.reduce(function v(C,O){return(0,Jo.c)(C)?C.map(function(Q){return v(Q,O)}):C&&p(C,O)},T))}function Cd(T){return(0,rs.U)(T)?(0,Jo.c)(T)?T.map(Cd):yd(Object.keys(T).sort(),function(d){return Pu(T,d)}):T}function F1(T){return void 0!==T.args?T.args:T.field?(0,Li.MB)(T.field,T.variables):null}var ih=function(){},va=function(T,d){return d.fieldName},bd=function(T,d,p){return(0,p.mergeObjects)(T,d)},Fu=function(T,d){return d},Ed=function(){function T(d){this.config=d,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,ri.Cl)({dataIdFromObject:O1},d),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),d.possibleTypes&&this.addPossibleTypes(d.possibleTypes),d.typePolicies&&this.addTypePolicies(d.typePolicies)}return T.prototype.identify=function(d,p){var v,C=this,O=p&&(p.typename||(null===(v=p.storeObject)||void 0===v?void 0:v.__typename))||d.__typename;if(O===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var xe,Q=p&&p.storeObject||d,Me=(0,ri.Cl)((0,ri.Cl)({},p),{typename:O,storeObject:Q,readField:p&&p.readField||function(){var Bt=Zl(arguments,Q);return C.readField(Bt,{store:C.cache.data,variables:Bt.variables})}}),ot=O&&this.getTypePolicy(O),yt=ot&&ot.keyFn||this.config.dataIdFromObject;yt;){var Dt=yt((0,ri.Cl)((0,ri.Cl)({},d),Q),Me);if(!(0,Jo.c)(Dt)){xe=Dt;break}yt=nh(Dt)}return xe=xe?String(xe):void 0,Me.keyObject?[xe,Me.keyObject]:[xe]},T.prototype.addTypePolicies=function(d){var p=this;Object.keys(d).forEach(function(v){var C=d[v],O=C.queryType,Q=C.mutationType,Me=C.subscriptionType,xe=(0,ri.Tt)(C,["queryType","mutationType","subscriptionType"]);O&&p.setRootTypename("Query",v),Q&&p.setRootTypename("Mutation",v),Me&&p.setRootTypename("Subscription",v),ur.call(p.toBeAdded,v)?p.toBeAdded[v].push(xe):p.toBeAdded[v]=[xe]})},T.prototype.updateTypePolicy=function(d,p){var v=this,C=this.getTypePolicy(d),O=p.keyFields,Q=p.fields;function Me(xe,ot){xe.merge="function"==typeof ot?ot:!0===ot?bd:!1===ot?Fu:xe.merge}Me(C,p.merge),C.keyFn=!1===O?ih:(0,Jo.c)(O)?nh(O):"function"==typeof O?O:C.keyFn,Q&&Object.keys(Q).forEach(function(xe){var ot=v.getFieldPolicy(d,xe,!0),yt=Q[xe];if("function"==typeof yt)ot.read=yt;else{var Dt=yt.keyArgs,Bt=yt.read,Ht=yt.merge;ot.keyFn=!1===Dt?va:(0,Jo.c)(Dt)?Vc(Dt):"function"==typeof Dt?Dt:ot.keyFn,"function"==typeof Bt&&(ot.read=Bt),Me(ot,Ht)}ot.read&&ot.merge&&(ot.keyFn=ot.keyFn||va)})},T.prototype.setRootTypename=function(d,p){void 0===p&&(p=d);var v="ROOT_"+d.toUpperCase(),C=this.rootTypenamesById[v];p!==C&&((0,Ho.V1)(!C||C===d,5,d),C&&delete this.rootIdsByTypename[C],this.rootIdsByTypename[p]=v,this.rootTypenamesById[v]=p)},T.prototype.addPossibleTypes=function(d){var p=this;this.usingPossibleTypes=!0,Object.keys(d).forEach(function(v){p.getSupertypeSet(v,!0),d[v].forEach(function(C){p.getSupertypeSet(C,!0).add(v);var O=C.match(w1);(!O||O[0]!==C)&&p.fuzzySubtypes.set(C,new RegExp(C))})})},T.prototype.getTypePolicy=function(d){var p=this;if(!ur.call(this.typePolicies,d)){var v=this.typePolicies[d]=Object.create(null);v.fields=Object.create(null);var C=this.supertypeMap.get(d);!C&&this.fuzzySubtypes.size&&(C=this.getSupertypeSet(d,!0),this.fuzzySubtypes.forEach(function(Q,Me){if(Q.test(d)){var xe=p.supertypeMap.get(Me);xe&&xe.forEach(function(ot){return C.add(ot)})}})),C&&C.size&&C.forEach(function(Q){var Me=p.getTypePolicy(Q),xe=Me.fields,ot=(0,ri.Tt)(Me,["fields"]);Object.assign(v,ot),Object.assign(v.fields,xe)})}var O=this.toBeAdded[d];return O&&O.length&&O.splice(0).forEach(function(Q){p.updateTypePolicy(d,Q)}),this.typePolicies[d]},T.prototype.getFieldPolicy=function(d,p,v){if(d){var C=this.getTypePolicy(d).fields;return C[p]||v&&(C[p]=Object.create(null))}},T.prototype.getSupertypeSet=function(d,p){var v=this.supertypeMap.get(d);return!v&&p&&this.supertypeMap.set(d,v=new Set),v},T.prototype.fragmentMatches=function(d,p,v,C){var O=this;if(!d.typeCondition)return!0;if(!p)return!1;var Q=d.typeCondition.name.value;if(p===Q)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(Q))for(var Me=this.getSupertypeSet(p,!0),xe=[Me],ot=function(Xt){var Zt=O.getSupertypeSet(Xt,!1);Zt&&Zt.size&&xe.indexOf(Zt)<0&&xe.push(Zt)},yt=!(!v||!this.fuzzySubtypes.size),Dt=!1,Bt=0;Bt1?T[1]:d}:(Q=(0,ri.Cl)({},v),ur.call(Q,"from")||(Q.from=d)),!1!==globalThis.__DEV__&&void 0===Q.from&&!1!==globalThis.__DEV__&&Ho.V1.warn(7,(0,_d.p)(Array.from(T))),void 0===Q.variables&&(Q.variables=p),Q}function A1(T){return function(p,v){if((0,Jo.c)(p)||(0,Jo.c)(v))throw(0,Ho.vA)(8);if((0,rs.U)(p)&&(0,rs.U)(v)){var C=T.getFieldValue(p,"__typename"),O=T.getFieldValue(v,"__typename");if(C&&O&&C!==O)return v;if((0,Li.A_)(p)&&sc(v))return T.merge(p.__ref,v),p;if(sc(p)&&(0,Li.A_)(v))return T.merge(p,v.__ref),v;if(sc(p)&&sc(v))return(0,ri.Cl)((0,ri.Cl)({},p),v)}return v}}function zd(T,d,p){var v="".concat(d).concat(p),C=T.flavors.get(v);return C||T.flavors.set(v,C=T.clientOnly===d&&T.deferred===p?T:(0,ri.Cl)((0,ri.Cl)({},T),{clientOnly:d,deferred:p})),C}var oh=function(){function T(d,p,v){this.cache=d,this.reader=p,this.fragments=v}return T.prototype.writeToStore=function(d,p){var v=this,C=p.query,O=p.result,Q=p.dataId,Me=p.variables,xe=p.overwrite,ot=(0,wa.Vu)(C),yt=function x1(){return new ra.ZI}();Me=(0,ri.Cl)((0,ri.Cl)({},(0,wa.wY)(ot)),Me);var Dt=(0,ri.Cl)((0,ri.Cl)({store:d,written:Object.create(null),merge:function(Ht,Xt){return yt.merge(Ht,Xt)},variables:Me,varString:(0,dl.M)(Me)},Nc(C,this.fragments)),{overwrite:!!xe,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),Bt=this.processSelectionSet({result:O||Object.create(null),dataId:Q,selectionSet:ot.selectionSet,mergeTree:{map:new Map},context:Dt});if(!(0,Li.A_)(Bt))throw(0,Ho.vA)(11,O);return Dt.incomingById.forEach(function(Ht,Xt){var Zt=Ht.storeObject,vn=Ht.mergeTree,Sn=Ht.fieldNodeSet,ai=(0,Li.WU)(Xt);if(vn&&vn.map.size){var an=v.applyMerges(vn,ai,Zt,Dt);if((0,Li.A_)(an))return;Zt=an}if(!1!==globalThis.__DEV__&&!Dt.overwrite){var _n=Object.create(null);Sn.forEach(function(bi){bi.selectionSet&&(_n[bi.name.value]=!0)}),Object.keys(Zt).forEach(function(bi){(function(bi){return!0===_n[xa(bi)]})(bi)&&!function(bi){var Bi=vn&&vn.map.get(bi);return!!(Bi&&Bi.info&&Bi.info.merge)}(bi)&&function Dd(T,d,p,v){var C=function(Dt){var Bt=v.getFieldValue(Dt,p);return"object"==typeof Bt&&Bt},O=C(T);if(O){var Q=C(d);if(Q&&!(0,Li.A_)(O)&&!(0,Ac.L)(O,Q)&&!Object.keys(O).every(function(Dt){return void 0!==v.getFieldValue(Q,Dt)})){var Me=v.getFieldValue(T,"__typename")||v.getFieldValue(d,"__typename"),xe=xa(p),ot="".concat(Me,".").concat(xe);if(!lc.has(ot)){lc.add(ot);var yt=[];!(0,Jo.c)(O)&&!(0,Jo.c)(Q)&&[O,Q].forEach(function(Dt){var Bt=v.getFieldValue(Dt,"__typename");"string"==typeof Bt&&!yt.includes(Bt)&&yt.push(Bt)}),!1!==globalThis.__DEV__&&Ho.V1.warn(14,xe,Me,yt.length?"either ensure all objects of type "+yt.join(" and ")+" have an ID or a custom merge function, or ":"",ot,(0,ri.Cl)({},O),(0,ri.Cl)({},Q))}}}}(ai,Zt,bi,Dt.store)})}d.merge(Xt,Zt)}),d.retain(Bt.__ref),Bt},T.prototype.processSelectionSet=function(d){var p=this,v=d.dataId,C=d.result,O=d.selectionSet,Q=d.context,Me=d.mergeTree,xe=this.cache.policies,ot=Object.create(null),yt=v&&xe.rootTypenamesById[v]||(0,Li.D$)(C,O,Q.fragmentMap)||v&&Q.store.get(v,"__typename");"string"==typeof yt&&(ot.__typename=yt);var Dt=function(){var an=Zl(arguments,ot,Q.variables);if((0,Li.A_)(an.from)){var _n=Q.incomingById.get(an.from.__ref);if(_n){var ti=xe.readField((0,ri.Cl)((0,ri.Cl)({},an),{from:_n.storeObject}),Q);if(void 0!==ti)return ti}}return xe.readField(an,Q)},Bt=new Set;this.flattenFields(O,C,Q,yt).forEach(function(an,_n){var ti,Jn=(0,Li.ue)(_n),bi=C[Jn];if(Bt.add(_n),void 0!==bi){var Bi=xe.getStoreFieldName({typename:yt,fieldName:_n.name.value,field:_n,variables:an.variables}),nr=Sd(Me,Bi),vr=p.processFieldValue(bi,_n,_n.selectionSet?zd(an,!1,!1):an,nr),uc=void 0;_n.selectionSet&&((0,Li.A_)(vr)||sc(vr))&&(uc=Dt("__typename",vr));var Vr=xe.getMergeFunction(yt,_n.name.value,uc);Vr?nr.info={field:_n,typename:yt,merge:Vr}:Ru(Me,Bi),ot=an.merge(ot,((ti={})[Bi]=vr,ti))}else!1!==globalThis.__DEV__&&!an.clientOnly&&!an.deferred&&!ea.XY.added(_n)&&!xe.getReadFunction(yt,_n.name.value)&&!1!==globalThis.__DEV__&&Ho.V1.error(12,(0,Li.ue)(_n),C)});try{var Ht=xe.identify(C,{typename:yt,selectionSet:O,fragmentMap:Q.fragmentMap,storeObject:ot,readField:Dt}),Zt=Ht[1];v=v||Ht[0],Zt&&(ot=Q.merge(ot,Zt))}catch(an){if(!v)throw an}if("string"==typeof v){var vn=(0,Li.WU)(v),Sn=Q.written[v]||(Q.written[v]=[]);if(Sn.indexOf(O)>=0||(Sn.push(O),this.reader&&this.reader.isFresh(C,vn,O,Q)))return vn;var ai=Q.incomingById.get(v);return ai?(ai.storeObject=Q.merge(ai.storeObject,ot),ai.mergeTree=Au(ai.mergeTree,Me),Bt.forEach(function(an){return ai.fieldNodeSet.add(an)})):Q.incomingById.set(v,{storeObject:ot,mergeTree:R1(Me)?void 0:Me,fieldNodeSet:Bt}),vn}return ot},T.prototype.processFieldValue=function(d,p,v,C){var O=this;return p.selectionSet&&null!==d?(0,Jo.c)(d)?d.map(function(Q,Me){var xe=O.processFieldValue(Q,p,v,Sd(C,Me));return Ru(C,Me),xe}):this.processSelectionSet({result:d,selectionSet:p.selectionSet,context:v,mergeTree:C}):!1!==globalThis.__DEV__?(0,Z2.m)(d):d},T.prototype.flattenFields=function(d,p,v,C){void 0===C&&(C=(0,Li.D$)(p,d,v.fragmentMap));var O=new Map,Q=this.cache.policies,Me=new hl.b(!1);return function xe(ot,yt){var Dt=Me.lookup(ot,yt.clientOnly,yt.deferred);Dt.visited||(Dt.visited=!0,ot.selections.forEach(function(Bt){if((0,Rc.MS)(Bt,v.variables)){var Ht=yt.clientOnly,Xt=yt.deferred;if(!(Ht&&Xt)&&(0,Jo.E)(Bt.directives)&&Bt.directives.forEach(function(Sn){var ai=Sn.name.value;if("client"===ai&&(Ht=!0),"defer"===ai){var an=(0,Li.MB)(Sn,v.variables);(!an||!1!==an.if)&&(Xt=!0)}}),(0,Li.dt)(Bt)){var Zt=O.get(Bt);Zt&&(Ht=Ht&&Zt.clientOnly,Xt=Xt&&Zt.deferred),O.set(Bt,zd(v,Ht,Xt))}else{var vn=(0,ul.HQ)(Bt,v.lookupFragment);if(!vn&&Bt.kind===S1.b.FRAGMENT_SPREAD)throw(0,Ho.vA)(13,Bt.name.value);vn&&Q.fragmentMatches(vn,C,p,v.variables)&&xe(vn.selectionSet,zd(v,Ht,Xt))}}}))}(d,v),O},T.prototype.applyMerges=function(d,p,v,C,O){var Q,Me=this;if(d.map.size&&!(0,Li.A_)(v)){var xe=(0,Jo.c)(v)||!(0,Li.A_)(p)&&!sc(p)?void 0:p,ot=v;xe&&!O&&(O=[(0,Li.A_)(xe)?xe.__ref:xe]);var yt,Dt=function(Bt,Ht){return(0,Jo.c)(Bt)?"number"==typeof Ht?Bt[Ht]:void 0:C.store.getFieldValue(Bt,String(Ht))};d.map.forEach(function(Bt,Ht){var Xt=Dt(xe,Ht),Zt=Dt(ot,Ht);if(void 0!==Zt){O&&O.push(Ht);var vn=Me.applyMerges(Bt,Xt,Zt,C,O);vn!==Zt&&(yt=yt||new Map).set(Ht,vn),O&&(0,Ho.V1)(O.pop()===Ht)}}),yt&&(v=(0,Jo.c)(ot)?ot.slice(0):(0,ri.Cl)({},ot),yt.forEach(function(Bt,Ht){v[Ht]=Bt}))}return d.info?this.cache.policies.runMergeFunction(p,v,d.info,C,O&&(Q=C.store).getStorage.apply(Q,O)):v},T}(),Md=[];function Sd(T,d){var p=T.map;return p.has(d)||p.set(d,Md.pop()||{map:new Map}),p.get(d)}function Au(T,d){if(T===d||!d||R1(d))return T;if(!T||R1(T))return d;var p=T.info&&d.info?(0,ri.Cl)((0,ri.Cl)({},T.info),d.info):T.info||d.info,v=T.map.size&&d.map.size,O={info:p,map:v?new Map:T.map.size?T.map:d.map};if(v){var Q=new Set(d.map.keys());T.map.forEach(function(Me,xe){O.map.set(xe,Au(Me,d.map.get(xe))),Q.delete(xe)}),Q.forEach(function(Me){O.map.set(Me,Au(d.map.get(Me),T.map.get(Me)))})}return O}function R1(T){return!T||!(T.info||T.map.size)}function Ru(T,d){var p=T.map,v=p.get(d);v&&R1(v)&&(Md.push(v),p.delete(d))}var lc=new Set,Od=function(T){function d(p){void 0===p&&(p={});var v=T.call(this)||this;return v.watches=new Set,v.addTypenameTransform=new qs.c(ea.XY),v.assumeImmutableResults=!0,v.makeVar=aa.UT,v.txCount=0,v.config=function rc(T){return(0,Xl.o)(wr,T)}(p),v.addTypename=!!v.config.addTypename,v.policies=new Ed({cache:v,dataIdFromObject:v.config.dataIdFromObject,possibleTypes:v.config.possibleTypes,typePolicies:v.config.typePolicies}),v.init(),v}return(0,ri.C6)(d,T),d.prototype.init=function(){var p=this.data=new Ie.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=p.stump,this.resetResultCache()},d.prototype.resetResultCache=function(p){var v=this,C=this.storeReader,O=this.config.fragments;this.storeWriter=new oh(this,this.storeReader=new Bh({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Vo(this.config),canon:p?void 0:C&&C.canon,fragments:O}),O),this.maybeBroadcastWatch=(0,nc.LV)(function(Q,Me){return v.broadcastWatch(Q,Me)},{max:this.config.resultCacheMaxSize||zu.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(Q){var Me=Q.optimistic?v.optimisticData:v.data;if(cc(Me))return Me.makeCacheKey(Q.query,Q.callback,(0,dl.M)({optimistic:Q.optimistic,id:Q.id,variables:Q.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(Q){return Q.resetCaching()})},d.prototype.restore=function(p){return this.init(),p&&this.data.replace(p),this},d.prototype.extract=function(p){return void 0===p&&(p=!1),(p?this.optimisticData:this.data).extract()},d.prototype.read=function(p){var v=p.returnPartialData,C=void 0!==v&&v;try{return this.storeReader.diffQueryAgainstStore((0,ri.Cl)((0,ri.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:C})).result||null}catch(O){if(O instanceof Su)return null;throw O}},d.prototype.write=function(p){try{return++this.txCount,this.storeWriter.writeToStore(this.data,p)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.modify=function(p){if(ur.call(p,"id")&&!p.id)return!1;var v=p.optimistic?this.optimisticData:this.data;try{return++this.txCount,v.modify(p.id||"ROOT_QUERY",p.fields)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.diff=function(p){return this.storeReader.diffQueryAgainstStore((0,ri.Cl)((0,ri.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,rootId:p.id||"ROOT_QUERY",config:this.config}))},d.prototype.watch=function(p){var v=this;return this.watches.size||(0,aa.MS)(this),this.watches.add(p),p.immediate&&this.maybeBroadcastWatch(p),function(){v.watches.delete(p)&&!v.watches.size&&(0,aa.WR)(v),v.maybeBroadcastWatch.forget(p)}},d.prototype.gc=function(p){var v;dl.M.reset(),M1.y.reset(),this.addTypenameTransform.resetCache(),null===(v=this.config.fragments)||void 0===v||v.resetCaches();var C=this.optimisticData.gc();return p&&!this.txCount&&(p.resetResultCache?this.resetResultCache(p.resetResultIdentities):p.resetResultIdentities&&this.storeReader.resetCanon()),C},d.prototype.retain=function(p,v){return(v?this.optimisticData:this.data).retain(p)},d.prototype.release=function(p,v){return(v?this.optimisticData:this.data).release(p)},d.prototype.identify=function(p){if((0,Li.A_)(p))return p.__ref;try{return this.policies.identify(p)[0]}catch(v){!1!==globalThis.__DEV__&&Ho.V1.warn(v)}},d.prototype.evict=function(p){if(!p.id){if(ur.call(p,"id"))return!1;p=(0,ri.Cl)((0,ri.Cl)({},p),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(p,this.data)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.reset=function(p){var v=this;return this.init(),dl.M.reset(),p&&p.discardWatches?(this.watches.forEach(function(C){return v.maybeBroadcastWatch.forget(C)}),this.watches.clear(),(0,aa.WR)(this)):this.broadcastWatches(),Promise.resolve()},d.prototype.removeOptimistic=function(p){var v=this.optimisticData.removeLayer(p);v!==this.optimisticData&&(this.optimisticData=v,this.broadcastWatches())},d.prototype.batch=function(p){var ot,v=this,C=p.update,O=p.optimistic,Q=void 0===O||O,Me=p.removeOptimistic,xe=p.onWatchUpdated,yt=function(Bt){var Xt=v.data,Zt=v.optimisticData;++v.txCount,Bt&&(v.data=v.optimisticData=Bt);try{return ot=C(v)}finally{--v.txCount,v.data=Xt,v.optimisticData=Zt}},Dt=new Set;return xe&&!this.txCount&&this.broadcastWatches((0,ri.Cl)((0,ri.Cl)({},p),{onWatchUpdated:function(Bt){return Dt.add(Bt),!1}})),"string"==typeof Q?this.optimisticData=this.optimisticData.addLayer(Q,yt):!1===Q?yt(this.data):yt(),"string"==typeof Me&&(this.optimisticData=this.optimisticData.removeLayer(Me)),xe&&Dt.size?(this.broadcastWatches((0,ri.Cl)((0,ri.Cl)({},p),{onWatchUpdated:function(Bt,Ht){var Xt=xe.call(this,Bt,Ht);return!1!==Xt&&Dt.delete(Bt),Xt}})),Dt.size&&Dt.forEach(function(Bt){return v.maybeBroadcastWatch.dirty(Bt)})):this.broadcastWatches(p),ot},d.prototype.performTransaction=function(p,v){return this.batch({update:p,optimistic:v||null!==v})},d.prototype.transformDocument=function(p){return this.addTypenameToDocument(this.addFragmentsToDocument(p))},d.prototype.broadcastWatches=function(p){var v=this;this.txCount||this.watches.forEach(function(C){return v.maybeBroadcastWatch(C,p)})},d.prototype.addFragmentsToDocument=function(p){var v=this.config.fragments;return v?v.transform(p):p},d.prototype.addTypenameToDocument=function(p){return this.addTypename?this.addTypenameTransform.transformDocument(p):p},d.prototype.broadcastWatch=function(p,v){var C=p.lastDiff,O=this.diff(p);v&&(p.optimistic&&"string"==typeof v.optimistic&&(O.fromOptimisticTransaction=!0),v.onWatchUpdated&&!1===v.onWatchUpdated.call(this,p,O,C))||(!C||!(0,Ac.L)(C.result,O.result))&&p.callback(p.lastDiff=O,C)},d}(sa);!1!==globalThis.__DEV__&&(Od.prototype.getMemoryInternals=Mu.cM);const ql={possibleTypes:{ActivityInterface:["AcceptRevisionsActivity","CommentActivity","CreateComplexMolecularProfileActivity","CreateFeatureActivity","CreateVariantActivity","DeleteCommentActivity","DeprecateComplexMolecularProfileActivity","DeprecateFeatureActivity","DeprecateVariantActivity","FlagEntityActivity","ModerateAssertionActivity","ModerateEvidenceItemActivity","RejectRevisionsActivity","ResolveFlagActivity","SubmitAssertionActivity","SubmitEvidenceItemActivity","SuggestRevisionSetActivity","SuggestSourceActivity","UpdateSourceSuggestionStatusActivity"],CommentBodySegment:["CommentTagSegment","CommentTagSegmentFlagged","CommentTagSegmentFlaggedAndDeprecated","CommentTagSegmentFlaggedAndWithStatus","CommentTextSegment","User"],Commentable:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","Source","SourcePopover","Variant","VariantGroup"],EventOriginObject:["Assertion","Comment","EvidenceItem","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","SourceSuggestion","Variant"],EventSubject:["Assertion","Comment","EvidenceItem","ExonCoordinate","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","RevisionSet","Source","SourcePopover","SourceSuggestion","Variant","VariantCoordinate","VariantGroup"],FeatureInstance:["Factor","Fusion","Gene"],Flaggable:["Assertion","BrowseFeature","EvidenceItem","Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Variant","VariantGroup"],ModeratedField:["ObjectField","ScalarField"],ModeratedFieldDiff:["ObjectFieldDiff","ScalarFieldDiff"],MolecularProfileComponent:["Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","Variant"],MolecularProfileSegment:["Feature","MolecularProfileTextSegment","Variant"],VariantInterface:["FactorVariant","FusionVariant","GeneVariant","Variant"],WithRevisions:["Assertion","EvidenceItem","ExonCoordinate","Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Variant","VariantCoordinate","VariantGroup"]}};var Lc=c(1661),xr=c(3246),Hh=function(){function T(d){var p=d.batchDebounce,v=d.batchInterval,C=d.batchMax,O=d.batchHandler,Q=d.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=p,this.batchInterval=v,this.batchMax=C||0,this.batchHandler=O,this.batchKey=Q||function(){return""}}return T.prototype.enqueueRequest=function(d){var p=this,v=(0,ri.Cl)((0,ri.Cl)({},d),{next:[],error:[],complete:[],subscribers:new Set}),C=this.batchKey(d.operation);return v.observable||(v.observable=new Kl.c(function(O){var Q=p.batchesByKey.get(C);Q||p.batchesByKey.set(C,Q=new Set);var Me=0===Q.size,xe=0===v.subscribers.size;return v.subscribers.add(O),xe&&Q.add(v),O.next&&v.next.push(O.next.bind(O)),O.error&&v.error.push(O.error.bind(O)),O.complete&&v.complete.push(O.complete.bind(O)),(Me||p.batchDebounce)&&p.scheduleQueueConsumption(C),Q.size===p.batchMax&&p.consumeQueue(C),function(){var ot;v.subscribers.delete(O)&&v.subscribers.size<1&&Q.delete(v)&&Q.size<1&&(p.consumeQueue(C),null===(ot=Q.subscription)||void 0===ot||ot.unsubscribe())}})),v.observable},T.prototype.consumeQueue=function(d){void 0===d&&(d="");var p=this.batchesByKey.get(d);if(this.batchesByKey.delete(d),p&&p.size){var v=[],C=[],O=[],Q=[],Me=[],xe=[];p.forEach(function(Dt){v.push(Dt.operation),C.push(Dt.forward),O.push(Dt.observable),Q.push(Dt.next),Me.push(Dt.error),xe.push(Dt.complete)});var ot=this.batchHandler(v,C)||Kl.c.of(),yt=function(Dt){Me.forEach(function(Bt){Bt&&Bt.forEach(function(Ht){return Ht(Dt)})})};return p.subscription=ot.subscribe({next:function(Dt){if(Array.isArray(Dt)||(Dt=[Dt]),Q.length!==Dt.length){var Bt=new Error("server returned results with length ".concat(Dt.length,", expected length of ").concat(Q.length));return Bt.result=Dt,yt(Bt)}Dt.forEach(function(Ht,Xt){Q[Xt]&&Q[Xt].forEach(function(Zt){return Zt(Ht)})})},error:yt,complete:function(){xe.forEach(function(Dt){Dt&&Dt.forEach(function(Bt){return Bt()})})}}),O}},T.prototype.scheduleQueueConsumption=function(d){var p=this;clearTimeout(this.scheduledBatchTimerByKey.get(d)),this.scheduledBatchTimerByKey.set(d,setTimeout(function(){p.consumeQueue(d),p.scheduledBatchTimerByKey.delete(d)},this.batchInterval))},T}();!function(T){function d(p){var v=T.call(this)||this,C=p||{},Q=C.batchInterval,xe=C.batchMax,yt=C.batchHandler,Bt=C.batchKey;return v.batcher=new Hh({batchDebounce:C.batchDebounce,batchInterval:void 0===Q?10:Q,batchMax:void 0===xe?0:xe,batchHandler:void 0===yt?function(){return null}:yt,batchKey:void 0===Bt?function(){return""}:Bt}),p.batchHandler.length<=1&&(v.request=function(Xt){return v.batcher.enqueueRequest({operation:Xt})}),v}(0,ri.C6)(d,T),d.prototype.request=function(p,v){return this.batcher.enqueueRequest({operation:p,forward:v})}}(ll.C);const Vu={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Pa(T,d,p){return function eu(...T){return T.find(d=>typeof d<"u")}(T[p],d[p],Vu[p])}class ah extends ll.C{httpClient;options;requester;print=xr.y;constructor(d,p){super(),this.httpClient=d,this.options=p,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=v=>new Kl.c(C=>{const O=v.getContext();let Q=Pa(O,this.options,"method");const Me=Pa(O,this.options,"includeQuery"),xe=Pa(O,this.options,"includeExtensions"),ot=Pa(O,this.options,"uri"),yt=Pa(O,this.options,"withCredentials"),Dt=Pa(O,this.options,"useMultipart"),Bt=!0===this.options.useGETForQueries,Ht=v.query.definitions.some(Sn=>"OperationDefinition"===Sn.kind&&"query"===Sn.operation);Bt&&Ht&&(Q="GET");const Xt={method:Q,url:"function"==typeof ot?ot(v):ot,body:{operationName:v.operationName,variables:v.variables},options:{withCredentials:yt,useMultipart:Dt,headers:this.options.headers}};xe&&(Xt.body.extensions=v.extensions),Me&&(Xt.body.query=this.print(v.query));const Zt=function ku(T){let d=T.headers&&T.headers instanceof tn.Lr?T.headers:new tn.Lr(T.headers);if(T.clientAwareness){const{name:p,version:v}=T.clientAwareness;p&&!d.has("apollographql-client-name")&&(d=d.set("apollographql-client-name",p)),v&&!d.has("apollographql-client-version")&&(d=d.set("apollographql-client-version",v))}return d}(O);Xt.options.headers=((T,d)=>T&&d?d.keys().reduce((v,C)=>v.set(C,d.getAll(C)),T):d||T)(Xt.options.headers,Zt);const vn=((T,d,p)=>{const v=-1!==["POST","PUT","PATCH"].indexOf(T.method.toUpperCase()),O=T.body.length;let Me,Q=T.options&&T.options.useMultipart;if(Q){if(O)return new g.c(ot=>ot.error(new Error("File upload is not available when combined with Batching")));if(!v)return new g.c(ot=>ot.error(new Error("File upload is not available when GET is used")));if(!p)return new g.c(ot=>ot.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));Me=p(T.body),Q=!!Me.files.size}let xe={};if(O){if(!v)return new g.c(ot=>ot.error(new Error("Batching is not available for GET requests")));xe={body:T.body}}else xe=v?{body:Q?Me.clone:T.body}:{params:Object.keys(T.body).reduce((Dt,Bt)=>{const Ht=T.body[Bt];return Dt[Bt]=-1!==["variables","extensions"].indexOf(Bt.toLowerCase())?JSON.stringify(Ht):Ht,Dt},{})};if(Q&&v){const ot=new FormData;ot.append("operations",JSON.stringify(xe.body));const yt={},Dt=Me.files;let Bt=0;Dt.forEach(Ht=>{yt[++Bt]=Ht}),ot.append("map",JSON.stringify(yt)),Bt=0,Dt.forEach((Ht,Xt)=>{ot.append(++Bt+"",Xt,Xt.name)}),xe.body=ot}return d.request(T.method,T.url,{observe:"response",responseType:"json",reportProgress:!1,...xe,...T.options})})(Xt,this.httpClient,this.options.extractFiles).subscribe({next:Sn=>{v.setContext({response:Sn}),C.next(Sn.body)},error:Sn=>C.error(Sn),complete:()=>C.complete()});return()=>{vn.closed||vn.unsubscribe()}})}request(d){return this.requester(d)}}let Uh=(()=>{class T{httpClient;constructor(p){this.httpClient=p}create(p){return new ah(this.httpClient,p)}static \u0275fac=function(v){return new(v||T)(r.KVO(tn.Qq))};static \u0275prov=r.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();function Ko(T){return void 0===T&&(T=!1),{keyArgs:T,read:function(d,p){var v=p.canRead,C=p.readField;if(!d)return d;var O=[],Q="",Me="";d.edges.forEach(function(Dt){v(C("node",Dt))&&(O.push(Dt),Dt.cursor&&(Q=Q||Dt.cursor||"",Me=Dt.cursor||Me))}),O.length>1&&Q===Me&&(Q="");var xe=d.pageInfo||{},ot=xe.startCursor,yt=xe.endCursor;return(0,ri.Cl)((0,ri.Cl)({},wd(d)),{edges:O,pageInfo:(0,ri.Cl)((0,ri.Cl)({},d.pageInfo),{startCursor:ot||Q,endCursor:yt||Me})})},merge:function(d,p,v){var C=v.args,O=v.isReference,Q=v.readField;if(d||(d={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!p)return d;var Me=p.edges?p.edges.map(function(Bi){return O(Bi=(0,ri.Cl)({},Bi))&&(Bi.cursor=Q("cursor",Bi)),Bi}):[];if(p.pageInfo){var xe=p.pageInfo,ot=xe.startCursor,yt=xe.endCursor,Dt=Me[0],Bt=Me[Me.length-1];Dt&&ot&&(Dt.cursor=ot),Bt&&yt&&(Bt.cursor=yt);var Ht=Dt&&Dt.cursor;Ht&&!ot&&(p=(0,ra.D9)(p,{pageInfo:{startCursor:Ht}}));var Xt=Bt&&Bt.cursor;Xt&&!yt&&(p=(0,ra.D9)(p,{pageInfo:{endCursor:Xt}}))}var Zt=d.edges,vn=[];if(C&&C.after)(Sn=Zt.findIndex(function(Bi){return Bi.cursor===C.after}))>=0&&(Zt=Zt.slice(0,Sn+1));else if(C&&C.before){var Sn;vn=(Sn=Zt.findIndex(function(nr){return nr.cursor===C.before}))<0?Zt:Zt.slice(Sn),Zt=[]}else p.edges&&(Zt=[]);var ai=(0,ri.fX)((0,ri.fX)((0,ri.fX)([],Zt,!0),Me,!0),vn,!0),an=(0,ri.Cl)((0,ri.Cl)({},p.pageInfo),d.pageInfo);if(p.pageInfo){var _n=p.pageInfo,ti=_n.hasPreviousPage,Jn=_n.hasNextPage,bi=(ot=_n.startCursor,yt=_n.endCursor,(0,ri.Tt)(_n,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(an,bi),Zt.length||(void 0!==ti&&(an.hasPreviousPage=ti),void 0!==ot&&(an.startCursor=ot)),vn.length||(void 0!==Jn&&(an.hasNextPage=Jn),void 0!==yt&&(an.endCursor=yt))}return(0,ri.Cl)((0,ri.Cl)((0,ri.Cl)({},wd(d)),wd(p)),{edges:ai,pageInfo:an})}}}var wd=function(T){return(0,ri.Tt)(T,ch)},ch=["edges","pageInfo"];const tp={Gene:{fields:{comments:Ko(),revisions:Ko(),events:Ko(),variants:Ko()}},Query:{fields:{browseFeatures:Ko(["name","featureType","therapyName","featureAlias","diseaseName"]),browseVariants:Ko(["variantName","entrezSymbol","diseaseName","therapayName","variantTypeId","variantGroupId","variantCategory"]),browseMolecularProfiles:Ko(["variantName","entrezSymbol","diseaseName","therapyName","molecularProfileScore","molecularProfileAlias","variantId"]),browseVariantGroups:Ko(["name","geneNames","variantNames","variantId"]),browseSources:Ko(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id","openAccess"]),sourceSuggestions:Ko(["sourceType","citationId","sourceId","molecularProfileName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:Ko(["name","doid","geneNames","id"]),events:Ko(["subject","organizationId","originatingUserId","eventType"]),variants:Ko(["featureId","name"]),molecularProfiles:Ko(["featureId","name","evidenceStatusFilter"]),comments:Ko(["originatingUserId","subject"]),evidenceItems:Ko(["diseaseName","therapayName","id","description","evidenceLevel","evidenceDirection","significance","evidenceType","evidenceRating","variantOrigin","variantId","molecularProfileId","assertionId","organizationId","userId","phenotypeId","diseaseId","therapayId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:Ko(["diseaseName","therapayName","id","name","summary","assertionDirection","significance","assertionType","variantId","molecularProfileId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","therapayId","status"]),organizations:Ko(["name","id"]),flags:Ko(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:Ko(["hpoId","name","id"]),variantTypes:Ko(["soid","name","id"]),therapies:Ko(["ncitId","name","id"]),clinicalTrials:Ko(["nctId","name","id"]),notifications:Ko(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:Ko(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:Ko(["userName","orgName","userRole"])}},User:{fields:{mostRecentOrg:{read:(T,{readField:d})=>{const p=d("mostRecentOrganizationId"),v=d("organizations");if(p&&v)return v.find(C=>C.__ref===`Organization:${p}`)}}}}},dh=tp;function kr(T){let d=T.create({uri:"/api/graphql",withCredentials:!0});return{link:new ll.C((v,C)=>(v.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),C(v))).concat(d),cache:new Od({possibleTypes:ql.possibleTypes,typePolicies:dh}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!0}}}}let np=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({providers:[{provide:Lc.EM,useValue:{useInitialLoading:!0}},{provide:Lc.$Y,useFactory:kr,deps:[Uh]}],imports:[Lc._9]})}return T})();var Yh=c(7391);let ip=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({imports:[Ve.MD,cd.$,C1.Zw,Wl.U6,Yh.kT]})}return T})(),hh=(()=>{class T{handleError(p){Zs.c.production?/Loading chunk [\d]+ failed/.test(p.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload():console.error(p)}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275prov=r.jDH({token:T,factory:T.\u0275fac})}return T})();var P4=c(8168);function xd(T){return()=>T.get("/api/status")}(0,Ve.EO)(Wt);let _a=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T,bootstrap:[Io]});static#n=this.\u0275inj=r.G2t({providers:[{provide:r.zcH,useClass:hh},{provide:Bs._N,useValue:Bs.Bh},{provide:r.hnV,useFactory:xd,deps:[tn.Qq],multi:!0},(0,tn.$R)((0,tn.Sx)(),(0,tn.YH)(),(0,tn.c2)({cookieName:"XSRF-TOKEN"}))],imports:[Tu,Tl,t.Bb,np,_1.s,ji.Y3.forRoot(Eu),P4.m,ip]})}return T})();if(Zs.c.production)(0,r.SmG)();else{const T=function Gs(){return new es(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}();T.unplug(T.find(gi)),T.show(),T.log()}t.sG().bootstrapModule(_a).catch(T=>console.error(T))},9869:(Rt,De,c)=>{c.d(De,{J1:()=>Pe});var g=function(){return g=Object.assign||function(U){for(var ge,qe=1,rt=arguments.length;qe=U)break;ge=rt.index+rt[0].length,qe+=1}return{line:qe,column:U+1-ge}}function Be(K,U){const ge=K.locationOffset.column-1,qe="".padStart(ge)+K.body,rt=U.line-1,on=U.line+(K.locationOffset.line-1),Zn=U.column+(1===U.line?ge:0),jn=`${K.name}:${on}:${Zn}\n`,Gn=qe.split(/\r\n|[\n\r]/g),zi=Gn[rt];if(zi.length>120){const Oi=Math.floor(Zn/80),lo=Zn%80,Zi=[];for(let Bo=0;Bo["|",Bo]),["|","^".padStart(lo)],["|",Zi[Oi+1]]])}return jn+Pt([[on-1+" |",Gn[rt-1]],[`${on} |`,zi],["|","^".padStart(Zn)],[`${on+1} |`,Gn[rt+1]]])}function Pt(K){const U=K.filter(([qe,rt])=>void 0!==rt),ge=Math.max(...U.map(([qe])=>qe.length));return U.map(([qe,rt])=>qe.padStart(ge)+(rt?" "+rt:"")).join("\n")}class wt extends Error{constructor(U,...ge){var qe,rt,Ft;const{nodes:on,source:Cn,positions:Zn,path:jn,originalError:Gn,extensions:zi}=function vt(K){const U=K[0];return null==U||"kind"in U||"length"in U?{nodes:U,source:K[1],positions:K[2],path:K[3],originalError:K[4],extensions:K[5]}:U}(ge);super(U),this.name="GraphQLError",this.path=jn??void 0,this.originalError=Gn??void 0,this.nodes=Le(Array.isArray(on)?on:on?[on]:void 0);const Oi=Le(null===(qe=this.nodes)||void 0===qe?void 0:qe.map(Zi=>Zi.loc).filter(Zi=>null!=Zi));this.source=Cn??(null==Oi||null===(rt=Oi[0])||void 0===rt?void 0:rt.source),this.positions=Zn??Oi?.map(Zi=>Zi.start),this.locations=Zn&&Cn?Zn.map(Zi=>Y(Cn,Zi)):Oi?.map(Zi=>Y(Zi.source,Zi.start));const lo=function E(K){return"object"==typeof K&&null!==K}(Gn?.extensions)?Gn?.extensions:void 0;this.extensions=null!==(Ft=zi??lo)&&void 0!==Ft?Ft: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!=Gn&&Gn.stack?Object.defineProperty(this,"stack",{value:Gn.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,wt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let U=this.message;if(this.nodes)for(const ge of this.nodes)ge.loc&&(U+="\n\n"+Be((K=ge.loc).source,Y(K.source,K.start)));else if(this.source&&this.locations)for(const ge of this.locations)U+="\n\n"+Be(this.source,ge);var K;return U}toJSON(){const U={message:this.message};return null!=this.locations&&(U.locations=this.locations),null!=this.path&&(U.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(U.extensions=this.extensions),U}}function Le(K){return void 0===K||0===K.length?void 0:K}function st(K,U,ge){return new wt(`Syntax Error: ${ge}`,{source:K,positions:[U]})}var Ct=c(1222),It=function(K){return K.QUERY="QUERY",K.MUTATION="MUTATION",K.SUBSCRIPTION="SUBSCRIPTION",K.FIELD="FIELD",K.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",K.FRAGMENT_SPREAD="FRAGMENT_SPREAD",K.INLINE_FRAGMENT="INLINE_FRAGMENT",K.VARIABLE_DEFINITION="VARIABLE_DEFINITION",K.SCHEMA="SCHEMA",K.SCALAR="SCALAR",K.OBJECT="OBJECT",K.FIELD_DEFINITION="FIELD_DEFINITION",K.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",K.INTERFACE="INTERFACE",K.UNION="UNION",K.ENUM="ENUM",K.ENUM_VALUE="ENUM_VALUE",K.INPUT_OBJECT="INPUT_OBJECT",K.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",K}(It||{}),Tt=c(1955),en=c(5174),jt=c(3725),Vt=function(K){return K.SOF="",K.EOF="",K.BANG="!",K.DOLLAR="$",K.AMP="&",K.PAREN_L="(",K.PAREN_R=")",K.SPREAD="...",K.COLON=":",K.EQUALS="=",K.AT="@",K.BRACKET_L="[",K.BRACKET_R="]",K.BRACE_L="{",K.PIPE="|",K.BRACE_R="}",K.NAME="Name",K.INT="Int",K.FLOAT="Float",K.STRING="String",K.BLOCK_STRING="BlockString",K.COMMENT="Comment",K}(Vt||{});class fn{constructor(U){const ge=new Ct.ou(Vt.SOF,0,0,0,0);this.source=U,this.lastToken=ge,this.token=ge,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let U=this.token;if(U.kind!==Vt.EOF)do{if(U.next)U=U.next;else{const ge=Ue(this,U.end);U.next=ge,ge.prev=U,U=ge}}while(U.kind===Vt.COMMENT);return U}}function zn(K){return K>=0&&K<=55295||K>=57344&&K<=1114111}function bt(K,U){return At(K.charCodeAt(U))&&Et(K.charCodeAt(U+1))}function At(K){return K>=55296&&K<=56319}function Et(K){return K>=56320&&K<=57343}function Ot(K,U){const ge=K.source.body.codePointAt(U);if(void 0===ge)return Vt.EOF;if(ge>=32&&ge<=126){const qe=String.fromCodePoint(ge);return'"'===qe?"'\"'":`"${qe}"`}return"U+"+ge.toString(16).toUpperCase().padStart(4,"0")}function Yt(K,U,ge,qe,rt){return new Ct.ou(U,ge,qe,K.line,1+ge-K.lineStart,rt)}function Ue(K,U){const ge=K.source.body,qe=ge.length;let rt=U;for(;rt=48&&K<=57?K-48:K>=65&&K<=70?K-55:K>=97&&K<=102?K-87:-1}function cn(K,U){const ge=K.source.body;switch(ge.charCodeAt(U+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 st(K.source,U,`Invalid character escape sequence: "${ge.slice(U,U+2)}".`)}function Tn(K,U){const ge=K.source.body,qe=ge.length;let rt=K.lineStart,Ft=U+3,on=Ft,Cn="";const Zn=[];for(;Ft0||(0,kn.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,kn.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class q{constructor(U,ge={}){const qe=function On(K){return dn(K,qt)}(U)?U:new qt(U);this._lexer=new fn(qe),this._options=ge,this._tokenCounter=0}parseName(){const U=this.expectToken(Vt.NAME);return this.node(U,{kind:Tt.b.NAME,value:U.value})}parseDocument(){return this.node(this._lexer.token,{kind:Tt.b.DOCUMENT,definitions:this.many(Vt.SOF,this.parseDefinition,Vt.EOF)})}parseDefinition(){if(this.peek(Vt.BRACE_L))return this.parseOperationDefinition();const U=this.peekDescription(),ge=U?this._lexer.lookahead():this._lexer.token;if(ge.kind===Vt.NAME){switch(ge.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(U)throw st(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(ge.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(ge)}parseOperationDefinition(){const U=this._lexer.token;if(this.peek(Vt.BRACE_L))return this.node(U,{kind:Tt.b.OPERATION_DEFINITION,operation:Ct.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const ge=this.parseOperationType();let qe;return this.peek(Vt.NAME)&&(qe=this.parseName()),this.node(U,{kind:Tt.b.OPERATION_DEFINITION,operation:ge,name:qe,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const U=this.expectToken(Vt.NAME);switch(U.value){case"query":return Ct.cE.QUERY;case"mutation":return Ct.cE.MUTATION;case"subscription":return Ct.cE.SUBSCRIPTION}throw this.unexpected(U)}parseVariableDefinitions(){return this.optionalMany(Vt.PAREN_L,this.parseVariableDefinition,Vt.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Tt.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Vt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Vt.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const U=this._lexer.token;return this.expectToken(Vt.DOLLAR),this.node(U,{kind:Tt.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Tt.b.SELECTION_SET,selections:this.many(Vt.BRACE_L,this.parseSelection,Vt.BRACE_R)})}parseSelection(){return this.peek(Vt.SPREAD)?this.parseFragment():this.parseField()}parseField(){const U=this._lexer.token,ge=this.parseName();let qe,rt;return this.expectOptionalToken(Vt.COLON)?(qe=ge,rt=this.parseName()):rt=ge,this.node(U,{kind:Tt.b.FIELD,alias:qe,name:rt,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Vt.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(U){return this.optionalMany(Vt.PAREN_L,U?this.parseConstArgument:this.parseArgument,Vt.PAREN_R)}parseArgument(U=!1){const ge=this._lexer.token,qe=this.parseName();return this.expectToken(Vt.COLON),this.node(ge,{kind:Tt.b.ARGUMENT,name:qe,value:this.parseValueLiteral(U)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const U=this._lexer.token;this.expectToken(Vt.SPREAD);const ge=this.expectOptionalKeyword("on");return!ge&&this.peek(Vt.NAME)?this.node(U,{kind:Tt.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(U,{kind:Tt.b.INLINE_FRAGMENT,typeCondition:ge?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const U=this._lexer.token;return this.expectKeyword("fragment"),this.node(U,!0===this._options.allowLegacyFragmentVariables?{kind:Tt.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:Tt.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(U){const ge=this._lexer.token;switch(ge.kind){case Vt.BRACKET_L:return this.parseList(U);case Vt.BRACE_L:return this.parseObject(U);case Vt.INT:return this.advanceLexer(),this.node(ge,{kind:Tt.b.INT,value:ge.value});case Vt.FLOAT:return this.advanceLexer(),this.node(ge,{kind:Tt.b.FLOAT,value:ge.value});case Vt.STRING:case Vt.BLOCK_STRING:return this.parseStringLiteral();case Vt.NAME:switch(this.advanceLexer(),ge.value){case"true":return this.node(ge,{kind:Tt.b.BOOLEAN,value:!0});case"false":return this.node(ge,{kind:Tt.b.BOOLEAN,value:!1});case"null":return this.node(ge,{kind:Tt.b.NULL});default:return this.node(ge,{kind:Tt.b.ENUM,value:ge.value})}case Vt.DOLLAR:if(U){if(this.expectToken(Vt.DOLLAR),this._lexer.token.kind===Vt.NAME)throw st(this._lexer.source,ge.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(ge)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const U=this._lexer.token;return this.advanceLexer(),this.node(U,{kind:Tt.b.STRING,value:U.value,block:U.kind===Vt.BLOCK_STRING})}parseList(U){return this.node(this._lexer.token,{kind:Tt.b.LIST,values:this.any(Vt.BRACKET_L,()=>this.parseValueLiteral(U),Vt.BRACKET_R)})}parseObject(U){return this.node(this._lexer.token,{kind:Tt.b.OBJECT,fields:this.any(Vt.BRACE_L,()=>this.parseObjectField(U),Vt.BRACE_R)})}parseObjectField(U){const ge=this._lexer.token,qe=this.parseName();return this.expectToken(Vt.COLON),this.node(ge,{kind:Tt.b.OBJECT_FIELD,name:qe,value:this.parseValueLiteral(U)})}parseDirectives(U){const ge=[];for(;this.peek(Vt.AT);)ge.push(this.parseDirective(U));return ge}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(U){const ge=this._lexer.token;return this.expectToken(Vt.AT),this.node(ge,{kind:Tt.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(U)})}parseTypeReference(){const U=this._lexer.token;let ge;if(this.expectOptionalToken(Vt.BRACKET_L)){const qe=this.parseTypeReference();this.expectToken(Vt.BRACKET_R),ge=this.node(U,{kind:Tt.b.LIST_TYPE,type:qe})}else ge=this.parseNamedType();return this.expectOptionalToken(Vt.BANG)?this.node(U,{kind:Tt.b.NON_NULL_TYPE,type:ge}):ge}parseNamedType(){return this.node(this._lexer.token,{kind:Tt.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Vt.STRING)||this.peek(Vt.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("schema");const qe=this.parseConstDirectives(),rt=this.many(Vt.BRACE_L,this.parseOperationTypeDefinition,Vt.BRACE_R);return this.node(U,{kind:Tt.b.SCHEMA_DEFINITION,description:ge,directives:qe,operationTypes:rt})}parseOperationTypeDefinition(){const U=this._lexer.token,ge=this.parseOperationType();this.expectToken(Vt.COLON);const qe=this.parseNamedType();return this.node(U,{kind:Tt.b.OPERATION_TYPE_DEFINITION,operation:ge,type:qe})}parseScalarTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("scalar");const qe=this.parseName(),rt=this.parseConstDirectives();return this.node(U,{kind:Tt.b.SCALAR_TYPE_DEFINITION,description:ge,name:qe,directives:rt})}parseObjectTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("type");const qe=this.parseName(),rt=this.parseImplementsInterfaces(),Ft=this.parseConstDirectives(),on=this.parseFieldsDefinition();return this.node(U,{kind:Tt.b.OBJECT_TYPE_DEFINITION,description:ge,name:qe,interfaces:rt,directives:Ft,fields:on})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Vt.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Vt.BRACE_L,this.parseFieldDefinition,Vt.BRACE_R)}parseFieldDefinition(){const U=this._lexer.token,ge=this.parseDescription(),qe=this.parseName(),rt=this.parseArgumentDefs();this.expectToken(Vt.COLON);const Ft=this.parseTypeReference(),on=this.parseConstDirectives();return this.node(U,{kind:Tt.b.FIELD_DEFINITION,description:ge,name:qe,arguments:rt,type:Ft,directives:on})}parseArgumentDefs(){return this.optionalMany(Vt.PAREN_L,this.parseInputValueDef,Vt.PAREN_R)}parseInputValueDef(){const U=this._lexer.token,ge=this.parseDescription(),qe=this.parseName();this.expectToken(Vt.COLON);const rt=this.parseTypeReference();let Ft;this.expectOptionalToken(Vt.EQUALS)&&(Ft=this.parseConstValueLiteral());const on=this.parseConstDirectives();return this.node(U,{kind:Tt.b.INPUT_VALUE_DEFINITION,description:ge,name:qe,type:rt,defaultValue:Ft,directives:on})}parseInterfaceTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("interface");const qe=this.parseName(),rt=this.parseImplementsInterfaces(),Ft=this.parseConstDirectives(),on=this.parseFieldsDefinition();return this.node(U,{kind:Tt.b.INTERFACE_TYPE_DEFINITION,description:ge,name:qe,interfaces:rt,directives:Ft,fields:on})}parseUnionTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("union");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseUnionMemberTypes();return this.node(U,{kind:Tt.b.UNION_TYPE_DEFINITION,description:ge,name:qe,directives:rt,types:Ft})}parseUnionMemberTypes(){return this.expectOptionalToken(Vt.EQUALS)?this.delimitedMany(Vt.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("enum");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseEnumValuesDefinition();return this.node(U,{kind:Tt.b.ENUM_TYPE_DEFINITION,description:ge,name:qe,directives:rt,values:Ft})}parseEnumValuesDefinition(){return this.optionalMany(Vt.BRACE_L,this.parseEnumValueDefinition,Vt.BRACE_R)}parseEnumValueDefinition(){const U=this._lexer.token,ge=this.parseDescription(),qe=this.parseEnumValueName(),rt=this.parseConstDirectives();return this.node(U,{kind:Tt.b.ENUM_VALUE_DEFINITION,description:ge,name:qe,directives:rt})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw st(this._lexer.source,this._lexer.token.start,`${Xe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("input");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseInputFieldsDefinition();return this.node(U,{kind:Tt.b.INPUT_OBJECT_TYPE_DEFINITION,description:ge,name:qe,directives:rt,fields:Ft})}parseInputFieldsDefinition(){return this.optionalMany(Vt.BRACE_L,this.parseInputValueDef,Vt.BRACE_R)}parseTypeSystemExtension(){const U=this._lexer.lookahead();if(U.kind===Vt.NAME)switch(U.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(U)}parseSchemaExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const ge=this.parseConstDirectives(),qe=this.optionalMany(Vt.BRACE_L,this.parseOperationTypeDefinition,Vt.BRACE_R);if(0===ge.length&&0===qe.length)throw this.unexpected();return this.node(U,{kind:Tt.b.SCHEMA_EXTENSION,directives:ge,operationTypes:qe})}parseScalarTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const ge=this.parseName(),qe=this.parseConstDirectives();if(0===qe.length)throw this.unexpected();return this.node(U,{kind:Tt.b.SCALAR_TYPE_EXTENSION,name:ge,directives:qe})}parseObjectTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const ge=this.parseName(),qe=this.parseImplementsInterfaces(),rt=this.parseConstDirectives(),Ft=this.parseFieldsDefinition();if(0===qe.length&&0===rt.length&&0===Ft.length)throw this.unexpected();return this.node(U,{kind:Tt.b.OBJECT_TYPE_EXTENSION,name:ge,interfaces:qe,directives:rt,fields:Ft})}parseInterfaceTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const ge=this.parseName(),qe=this.parseImplementsInterfaces(),rt=this.parseConstDirectives(),Ft=this.parseFieldsDefinition();if(0===qe.length&&0===rt.length&&0===Ft.length)throw this.unexpected();return this.node(U,{kind:Tt.b.INTERFACE_TYPE_EXTENSION,name:ge,interfaces:qe,directives:rt,fields:Ft})}parseUnionTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const ge=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseUnionMemberTypes();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(U,{kind:Tt.b.UNION_TYPE_EXTENSION,name:ge,directives:qe,types:rt})}parseEnumTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const ge=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseEnumValuesDefinition();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(U,{kind:Tt.b.ENUM_TYPE_EXTENSION,name:ge,directives:qe,values:rt})}parseInputObjectTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const ge=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseInputFieldsDefinition();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(U,{kind:Tt.b.INPUT_OBJECT_TYPE_EXTENSION,name:ge,directives:qe,fields:rt})}parseDirectiveDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Vt.AT);const qe=this.parseName(),rt=this.parseArgumentDefs(),Ft=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const on=this.parseDirectiveLocations();return this.node(U,{kind:Tt.b.DIRECTIVE_DEFINITION,description:ge,name:qe,arguments:rt,repeatable:Ft,locations:on})}parseDirectiveLocations(){return this.delimitedMany(Vt.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const U=this._lexer.token,ge=this.parseName();if(Object.prototype.hasOwnProperty.call(It,ge.value))return ge;throw this.unexpected(U)}node(U,ge){return!0!==this._options.noLocation&&(ge.loc=new Ct.aZ(U,this._lexer.lastToken,this._lexer.source)),ge}peek(U){return this._lexer.token.kind===U}expectToken(U){const ge=this._lexer.token;if(ge.kind===U)return this.advanceLexer(),ge;throw st(this._lexer.source,ge.start,`Expected ${dt(U)}, found ${Xe(ge)}.`)}expectOptionalToken(U){return this._lexer.token.kind===U&&(this.advanceLexer(),!0)}expectKeyword(U){const ge=this._lexer.token;if(ge.kind!==Vt.NAME||ge.value!==U)throw st(this._lexer.source,ge.start,`Expected "${U}", found ${Xe(ge)}.`);this.advanceLexer()}expectOptionalKeyword(U){const ge=this._lexer.token;return ge.kind===Vt.NAME&&ge.value===U&&(this.advanceLexer(),!0)}unexpected(U){const ge=U??this._lexer.token;return st(this._lexer.source,ge.start,`Unexpected ${Xe(ge)}.`)}any(U,ge,qe){this.expectToken(U);const rt=[];for(;!this.expectOptionalToken(qe);)rt.push(ge.call(this));return rt}optionalMany(U,ge,qe){if(this.expectOptionalToken(U)){const rt=[];do{rt.push(ge.call(this))}while(!this.expectOptionalToken(qe));return rt}return[]}many(U,ge,qe){this.expectToken(U);const rt=[];do{rt.push(ge.call(this))}while(!this.expectOptionalToken(qe));return rt}delimitedMany(U,ge){this.expectOptionalToken(U);const qe=[];do{qe.push(ge.call(this))}while(this.expectOptionalToken(U));return qe}advanceLexer(){const{maxTokens:U}=this._options,ge=this._lexer.advance();if(void 0!==U&&ge.kind!==Vt.EOF&&(++this._tokenCounter,this._tokenCounter>U))throw st(this._lexer.source,ge.start,`Document contains more that ${U} tokens. Parsing aborted.`)}}function Xe(K){const U=K.value;return dt(K.kind)+(null!=U?` "${U}"`:"")}function dt(K){return function Hn(K){return K===Vt.BANG||K===Vt.DOLLAR||K===Vt.AMP||K===Vt.PAREN_L||K===Vt.PAREN_R||K===Vt.SPREAD||K===Vt.COLON||K===Vt.EQUALS||K===Vt.AT||K===Vt.BRACKET_L||K===Vt.BRACKET_R||K===Vt.BRACE_L||K===Vt.PIPE||K===Vt.BRACE_R}(K)?`"${K}"`:K}var at=new Map,St=new Map,Qe=!0,Ee=!1;function Je(K){return K.replace(/[\s,]+/g," ").trim()}function Ke(K){var U=Je(K);if(!at.has(U)){var ge=function Ut(K,U){return new q(K,U).parseDocument()}(K,{experimentalFragmentVariables:Ee,allowLegacyFragmentVariables:Ee});if(!ge||"Document"!==ge.kind)throw new Error("Not a valid GraphQL document.");at.set(U,function gt(K){var U=new Set(K.definitions);U.forEach(function(qe){qe.loc&&delete qe.loc,Object.keys(qe).forEach(function(rt){var Ft=qe[rt];Ft&&"object"==typeof Ft&&U.add(Ft)})});var ge=K.loc;return ge&&(delete ge.startToken,delete ge.endToken),K}(function ze(K){var U=new Set,ge=[];return K.definitions.forEach(function(qe){if("FragmentDefinition"===qe.kind){var rt=qe.name.value,Ft=function re(K){return Je(K.source.body.substring(K.start,K.end))}(qe.loc),on=St.get(rt);on&&!on.has(Ft)?Qe&&console.warn("Warning: fragment with name "+rt+" 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"):on||St.set(rt,on=new Set),on.add(Ft),U.has(Ft)||(U.add(Ft),ge.push(qe))}else ge.push(qe)}),g(g({},K),{definitions:ge})}(ge)))}return at.get(U)}function Pe(K){for(var U=[],ge=1;ge{c.d(De,{E:()=>r});var t=c(9085);function r(...g){return e=>(0,t.E)(...g)(e)}},9199:(Rt,De,c)=>{function t(L){return null!=L}c.d(De,{Vq:()=>r,kP:()=>t});const r=t},4412:(Rt,De,c)=>{c.d(De,{t:()=>r});var t=c(1413);class r extends t.B{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const M=super._subscribe(e);return!M.closed&&e.next(this._value),M}getValue(){const{hasError:e,thrownError:M,_value:G}=this;if(e)throw M;return this._throwIfClosed(),G}next(e){super.next(this._value=e)}}},1985:(Rt,De,c)=>{c.d(De,{c:()=>B});var t=c(7707),r=c(8359),g=c(3494),e=c(1203),M=c(1026),G=c(8071),L=c(9786);let B=(()=>{class F{constructor(V){V&&(this._subscribe=V)}lift(V){const x=new F;return x.source=this,x.operator=V,x}subscribe(V,x,ne){const J=function I(F){return F&&F instanceof t.vU||function w(F){return F&&(0,G.T)(F.next)&&(0,G.T)(F.error)&&(0,G.T)(F.complete)}(F)&&(0,r.Uv)(F)}(V)?V:new t.Ms(V,x,ne);return(0,L.Y)(()=>{const{operator:be,source:Oe}=this;J.add(be?be.call(J,Oe):Oe?this._subscribe(J):this._trySubscribe(J))}),J}_trySubscribe(V){try{return this._subscribe(V)}catch(x){V.error(x)}}forEach(V,x){return new(x=A(x))((ne,J)=>{const be=new t.Ms({next:Oe=>{try{V(Oe)}catch(he){J(he),be.unsubscribe()}},error:J,complete:ne});this.subscribe(be)})}_subscribe(V){var x;return null===(x=this.source)||void 0===x?void 0:x.subscribe(V)}[g.s](){return this}pipe(...V){return(0,e.m)(V)(this)}toPromise(V){return new(V=A(V))((x,ne)=>{let J;this.subscribe(be=>J=be,be=>ne(be),()=>x(J))})}}return F.create=X=>new F(X),F})();function A(F){var X;return null!==(X=F??M.$.Promise)&&void 0!==X?X:Promise}},2771:(Rt,De,c)=>{c.d(De,{m:()=>g});var t=c(1413),r=c(6129);class g extends t.B{constructor(M=1/0,G=1/0,L=r.U){super(),this._bufferSize=M,this._windowTime=G,this._timestampProvider=L,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=G===1/0,this._bufferSize=Math.max(1,M),this._windowTime=Math.max(1,G)}next(M){const{isStopped:G,_buffer:L,_infiniteTimeWindow:B,_timestampProvider:A,_windowTime:w}=this;G||(L.push(M),!B&&L.push(A.now()+w)),this._trimBuffer(),super.next(M)}_subscribe(M){this._throwIfClosed(),this._trimBuffer();const G=this._innerSubscribe(M),{_infiniteTimeWindow:L,_buffer:B}=this,A=B.slice();for(let w=0;w{c.d(De,{B:()=>L});var t=c(1985),r=c(8359);const e=(0,c(1853).L)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var M=c(7908),G=c(9786);let L=(()=>{class A extends t.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(I){const F=new B(this,this);return F.operator=I,F}_throwIfClosed(){if(this.closed)throw new e}next(I){(0,G.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const F of this.currentObservers)F.next(I)}})}error(I){(0,G.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=I;const{observers:F}=this;for(;F.length;)F.shift().error(I)}})}complete(){(0,G.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:I}=this;for(;I.length;)I.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var I;return(null===(I=this.observers)||void 0===I?void 0:I.length)>0}_trySubscribe(I){return this._throwIfClosed(),super._trySubscribe(I)}_subscribe(I){return this._throwIfClosed(),this._checkFinalizedStatuses(I),this._innerSubscribe(I)}_innerSubscribe(I){const{hasError:F,isStopped:X,observers:V}=this;return F||X?r.Kn:(this.currentObservers=null,V.push(I),new r.yU(()=>{this.currentObservers=null,(0,M.o)(V,I)}))}_checkFinalizedStatuses(I){const{hasError:F,thrownError:X,isStopped:V}=this;F?I.error(X):V&&I.complete()}asObservable(){const I=new t.c;return I.source=this,I}}return A.create=(w,I)=>new B(w,I),A})();class B extends L{constructor(w,I){super(),this.destination=w,this.source=I}next(w){var I,F;null===(F=null===(I=this.destination)||void 0===I?void 0:I.next)||void 0===F||F.call(I,w)}error(w){var I,F;null===(F=null===(I=this.destination)||void 0===I?void 0:I.error)||void 0===F||F.call(I,w)}complete(){var w,I;null===(I=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===I||I.call(w)}_subscribe(w){var I,F;return null!==(F=null===(I=this.source)||void 0===I?void 0:I.subscribe(w))&&void 0!==F?F:r.Kn}}},7707:(Rt,De,c)=>{c.d(De,{Ms:()=>ne,vU:()=>F});var t=c(8071),r=c(8359),g=c(1026),e=c(5334),M=c(5343);const G=A("C",void 0,void 0);function A(we,me,de){return{kind:we,value:me,error:de}}var w=c(9270),I=c(9786);class F extends r.yU{constructor(me){super(),this.isStopped=!1,me?(this.destination=me,(0,r.Uv)(me)&&me.add(this)):this.destination=he}static create(me,de,H){return new ne(me,de,H)}next(me){this.isStopped?Oe(function B(we){return A("N",we,void 0)}(me),this):this._next(me)}error(me){this.isStopped?Oe(function L(we){return A("E",void 0,we)}(me),this):(this.isStopped=!0,this._error(me))}complete(){this.isStopped?Oe(G,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(me){this.destination.next(me)}_error(me){try{this.destination.error(me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function V(we,me){return X.call(we,me)}class x{constructor(me){this.partialObserver=me}next(me){const{partialObserver:de}=this;if(de.next)try{de.next(me)}catch(H){J(H)}}error(me){const{partialObserver:de}=this;if(de.error)try{de.error(me)}catch(H){J(H)}else J(me)}complete(){const{partialObserver:me}=this;if(me.complete)try{me.complete()}catch(de){J(de)}}}class ne extends F{constructor(me,de,H){let z;if(super(),(0,t.T)(me)||!me)z={next:me??void 0,error:de??void 0,complete:H??void 0};else{let Z;this&&g.$.useDeprecatedNextContext?(Z=Object.create(me),Z.unsubscribe=()=>this.unsubscribe(),z={next:me.next&&V(me.next,Z),error:me.error&&V(me.error,Z),complete:me.complete&&V(me.complete,Z)}):z=me}this.destination=new x(z)}}function J(we){g.$.useDeprecatedSynchronousErrorHandling?(0,I.l)(we):(0,e.m)(we)}function Oe(we,me){const{onStoppedNotification:de}=g.$;de&&w.f.setTimeout(()=>de(we,me))}const he={closed:!0,next:M.l,error:function be(we){throw we},complete:M.l}},8359:(Rt,De,c)=>{c.d(De,{Kn:()=>G,yU:()=>M,Uv:()=>L});var t=c(8071);const g=(0,c(1853).L)(A=>function(I){A(this),this.message=I?`${I.length} errors occurred during unsubscription:\n${I.map((F,X)=>`${X+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=I});var e=c(7908);class M{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:I}=this;if(I)if(this._parentage=null,Array.isArray(I))for(const V of I)V.remove(this);else I.remove(this);const{initialTeardown:F}=this;if((0,t.T)(F))try{F()}catch(V){w=V instanceof g?V.errors:[V]}const{_finalizers:X}=this;if(X){this._finalizers=null;for(const V of X)try{B(V)}catch(x){w=w??[],x instanceof g?w=[...w,...x.errors]:w.push(x)}}if(w)throw new g(w)}}add(w){var I;if(w&&w!==this)if(this.closed)B(w);else{if(w instanceof M){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._finalizers=null!==(I=this._finalizers)&&void 0!==I?I:[]).push(w)}}_hasParent(w){const{_parentage:I}=this;return I===w||Array.isArray(I)&&I.includes(w)}_addParent(w){const{_parentage:I}=this;this._parentage=Array.isArray(I)?(I.push(w),I):I?[I,w]:w}_removeParent(w){const{_parentage:I}=this;I===w?this._parentage=null:Array.isArray(I)&&(0,e.o)(I,w)}remove(w){const{_finalizers:I}=this;I&&(0,e.o)(I,w),w instanceof M&&w._removeParent(this)}}M.EMPTY=(()=>{const A=new M;return A.closed=!0,A})();const G=M.EMPTY;function L(A){return A instanceof M||A&&"closed"in A&&(0,t.T)(A.remove)&&(0,t.T)(A.add)&&(0,t.T)(A.unsubscribe)}function B(A){(0,t.T)(A)?A():A.unsubscribe()}},1026:(Rt,De,c)=>{c.d(De,{$:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(Rt,De,c)=>{c.d(De,{G:()=>G});var t=c(1985),r=c(8359),g=c(9898),e=c(4360),M=c(9974);class G extends t.c{constructor(B,A){super(),this.source=B,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,M.S)(B)&&(this.lift=B.lift)}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:B}=this;this._subject=this._connection=null,B?.unsubscribe()}connect(){let B=this._connection;if(!B){B=this._connection=new r.yU;const A=this.getSubject();B.add(this.source.subscribe((0,e._)(A,void 0,()=>{this._teardown(),A.complete()},w=>{this._teardown(),A.error(w)},()=>this._teardown()))),B.closed&&(this._connection=null,B=r.yU.EMPTY)}return B}refCount(){return(0,g.B)()(this)}}},4572:(Rt,De,c)=>{c.d(De,{z:()=>w});var t=c(1985),r=c(3073),g=c(2806),e=c(3669),M=c(6450),G=c(9326),L=c(8496),B=c(4360),A=c(5225);function w(...X){const V=(0,G.lI)(X),x=(0,G.ms)(X),{args:ne,keys:J}=(0,r.D)(X);if(0===ne.length)return(0,g.H)([],V);const be=new t.c(function I(X,V,x=e.D){return ne=>{F(V,()=>{const{length:J}=X,be=new Array(J);let Oe=J,he=J;for(let we=0;we{const me=(0,g.H)(X[we],V);let de=!1;me.subscribe((0,B._)(ne,H=>{be[we]=H,de||(de=!0,he--),he||ne.next(x(be.slice()))},()=>{--Oe||ne.complete()}))},ne)},ne)}}(ne,V,J?Oe=>(0,L.e)(J,Oe):e.D));return x?be.pipe((0,M.I)(x)):be}function F(X,V,x){X?(0,A.N)(x,X,V):V()}},8793:(Rt,De,c)=>{c.d(De,{x:()=>M});var t=c(6365),g=c(9326),e=c(2806);function M(...G){return function r(){return(0,t.U)(1)}()((0,e.H)(G,(0,g.lI)(G)))}},9030:(Rt,De,c)=>{c.d(De,{v:()=>g});var t=c(1985),r=c(8750);function g(e){return new t.c(M=>{(0,r.Tg)(e()).subscribe(M)})}},983:(Rt,De,c)=>{c.d(De,{w:()=>r});const r=new(c(1985).c)(M=>M.complete())},7468:(Rt,De,c)=>{c.d(De,{p:()=>B});var t=c(1985),r=c(3073),g=c(8750),e=c(9326),M=c(4360),G=c(6450),L=c(8496);function B(...A){const w=(0,e.ms)(A),{args:I,keys:F}=(0,r.D)(A),X=new t.c(V=>{const{length:x}=I;if(!x)return void V.complete();const ne=new Array(x);let J=x,be=x;for(let Oe=0;Oe{he||(he=!0,be--),ne[Oe]=we},()=>J--,void 0,()=>{(!J||!he)&&(be||V.next(F?(0,L.e)(F,ne):ne),V.complete())}))}});return w?X.pipe((0,G.I)(w)):X}},2806:(Rt,De,c)=>{c.d(De,{H:()=>de});var t=c(8750),r=c(941),g=c(9974);function e(H,z=0){return(0,g.N)((Z,pe)=>{pe.add(H.schedule(()=>Z.subscribe(pe),z))})}var L=c(1985),A=c(4761),w=c(8071),I=c(5225);function X(H,z){if(!H)throw new Error("Iterable cannot be null");return new L.c(Z=>{(0,I.N)(Z,z,()=>{const pe=H[Symbol.asyncIterator]();(0,I.N)(Z,z,()=>{pe.next().then(E=>{E.done?Z.complete():Z.next(E.value)})},0,!0)})})}var V=c(5055),x=c(9858),ne=c(7441),J=c(5397),be=c(7953),Oe=c(591),he=c(5196);function de(H,z){return z?function me(H,z){if(null!=H){if((0,V.l)(H))return function M(H,z){return(0,t.Tg)(H).pipe(e(z),(0,r.Q)(z))}(H,z);if((0,ne.X)(H))return function B(H,z){return new L.c(Z=>{let pe=0;return z.schedule(function(){pe===H.length?Z.complete():(Z.next(H[pe++]),Z.closed||this.schedule())})})}(H,z);if((0,x.y)(H))return function G(H,z){return(0,t.Tg)(H).pipe(e(z),(0,r.Q)(z))}(H,z);if((0,be.T)(H))return X(H,z);if((0,J.x)(H))return function F(H,z){return new L.c(Z=>{let pe;return(0,I.N)(Z,z,()=>{pe=H[A.l](),(0,I.N)(Z,z,()=>{let E,S;try{({value:E,done:S}=pe.next())}catch(R){return void Z.error(R)}S?Z.complete():Z.next(E)},0,!0)}),()=>(0,w.T)(pe?.return)&&pe.return()})}(H,z);if((0,he.U)(H))return function we(H,z){return X((0,he.C)(H),z)}(H,z)}throw(0,Oe.L)(H)}(H,z):(0,t.Tg)(H)}},3726:(Rt,De,c)=>{c.d(De,{R:()=>w});var t=c(8750),r=c(1985),g=c(1397),e=c(7441),M=c(8071),G=c(6450);const L=["addListener","removeListener"],B=["addEventListener","removeEventListener"],A=["on","off"];function w(x,ne,J,be){if((0,M.T)(J)&&(be=J,J=void 0),be)return w(x,ne,J).pipe((0,G.I)(be));const[Oe,he]=function V(x){return(0,M.T)(x.addEventListener)&&(0,M.T)(x.removeEventListener)}(x)?B.map(we=>me=>x[we](ne,me,J)):function F(x){return(0,M.T)(x.addListener)&&(0,M.T)(x.removeListener)}(x)?L.map(I(x,ne)):function X(x){return(0,M.T)(x.on)&&(0,M.T)(x.off)}(x)?A.map(I(x,ne)):[];if(!Oe&&(0,e.X)(x))return(0,g.Z)(we=>w(we,ne,J))((0,t.Tg)(x));if(!Oe)throw new TypeError("Invalid event target");return new r.c(we=>{const me=(...de)=>we.next(1he(me)})}function I(x,ne){return J=>be=>x[J](ne,be)}},3226:(Rt,De,c)=>{c.d(De,{T:()=>r});var t=c(9030);function r(g,e,M){return(0,t.v)(()=>g()?e:M)}},8750:(Rt,De,c)=>{c.d(De,{Tg:()=>X});var t=c(7272),r=c(7441),g=c(9858),e=c(1985),M=c(5055),G=c(7953),L=c(591),B=c(5397),A=c(5196),w=c(8071),I=c(5334),F=c(3494);function X(we){if(we instanceof e.c)return we;if(null!=we){if((0,M.l)(we))return function V(we){return new e.c(me=>{const de=we[F.s]();if((0,w.T)(de.subscribe))return de.subscribe(me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,r.X)(we))return function x(we){return new e.c(me=>{for(let de=0;de{we.then(de=>{me.closed||(me.next(de),me.complete())},de=>me.error(de)).then(null,I.m)})}(we);if((0,G.T)(we))return be(we);if((0,B.x)(we))return function J(we){return new e.c(me=>{for(const de of we)if(me.next(de),me.closed)return;me.complete()})}(we);if((0,A.U)(we))return function Oe(we){return be((0,A.C)(we))}(we)}throw(0,L.L)(we)}function be(we){return new e.c(me=>{(function he(we,me){var de,H,z,Z;return(0,t.sH)(this,void 0,void 0,function*(){try{for(de=(0,t.xN)(we);!(H=yield de.next()).done;)if(me.next(H.value),me.closed)return}catch(pe){z={error:pe}}finally{try{H&&!H.done&&(Z=de.return)&&(yield Z.call(de))}finally{if(z)throw z.error}}me.complete()})})(we,me).catch(de=>me.error(de))})}},605:(Rt,De,c)=>{c.d(De,{Y:()=>g});var t=c(3236),r=c(1584);function g(e=0,M=t.E){return e<0&&(e=0),(0,r.O)(e,e,M)}},7786:(Rt,De,c)=>{c.d(De,{h:()=>G});var t=c(6365),r=c(8750),g=c(983),e=c(9326),M=c(2806);function G(...L){const B=(0,e.lI)(L),A=(0,e.R0)(L,1/0),w=L;return w.length?1===w.length?(0,r.Tg)(w[0]):(0,t.U)(A)((0,M.H)(w,B)):g.w}},7673:(Rt,De,c)=>{c.d(De,{of:()=>g});var t=c(9326),r=c(2806);function g(...e){const M=(0,t.lI)(e);return(0,r.H)(e,M)}},8810:(Rt,De,c)=>{c.d(De,{$:()=>g});var t=c(1985),r=c(8071);function g(e,M){const G=(0,r.T)(e)?e:()=>e,L=B=>B.error(G());return new t.c(M?B=>M.schedule(L,0,B):L)}},1584:(Rt,De,c)=>{c.d(De,{O:()=>M});var t=c(1985),r=c(3236),g=c(9470);function M(G=0,L,B=r.b){let A=-1;return null!=L&&((0,g.m)(L)?B=L:A=L),new t.c(w=>{let I=function e(G){return G instanceof Date&&!isNaN(G)}(G)?+G-B.now():G;I<0&&(I=0);let F=0;return B.schedule(function(){w.closed||(w.next(F++),0<=A?this.schedule(void 0,A):w.complete())},I)})}},4360:(Rt,De,c)=>{c.d(De,{_:()=>r});var t=c(7707);function r(e,M,G,L,B){return new g(e,M,G,L,B)}class g extends t.vU{constructor(M,G,L,B,A,w){super(M),this.onFinalize=A,this.shouldUnsubscribe=w,this._next=G?function(I){try{G(I)}catch(F){M.error(F)}}:super._next,this._error=B?function(I){try{B(I)}catch(F){M.error(F)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(I){M.error(I)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var M;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:G}=this;super.unsubscribe(),!G&&(null===(M=this.onFinalize)||void 0===M||M.call(this))}}}},3798:(Rt,De,c)=>{c.d(De,{Z:()=>L});var t=c(3236),r=c(9974),g=c(8750),e=c(4360),G=c(1584);function L(B,A=t.E){return function M(B){return(0,r.N)((A,w)=>{let I=!1,F=null,X=null,V=!1;const x=()=>{if(X?.unsubscribe(),X=null,I){I=!1;const J=F;F=null,w.next(J)}V&&w.complete()},ne=()=>{X=null,V&&w.complete()};A.subscribe((0,e._)(w,J=>{I=!0,F=J,X||(0,g.Tg)(B(J)).subscribe(X=(0,e._)(w,x,ne))},()=>{V=!0,(!I||!X||X.closed)&&w.complete()}))})}(()=>(0,G.O)(B,A))}},9437:(Rt,De,c)=>{c.d(De,{W:()=>e});var t=c(8750),r=c(4360),g=c(9974);function e(M){return(0,g.N)((G,L)=>{let w,B=null,A=!1;B=G.subscribe((0,r._)(L,void 0,void 0,I=>{w=(0,t.Tg)(M(I,e(M)(G))),B?(B.unsubscribe(),B=null,w.subscribe(L)):A=!0})),A&&(B.unsubscribe(),B=null,w.subscribe(L))})}},274:(Rt,De,c)=>{c.d(De,{H:()=>g});var t=c(1397),r=c(8071);function g(e,M){return(0,r.T)(M)?(0,t.Z)(e,M,1):(0,t.Z)(e,1)}},152:(Rt,De,c)=>{c.d(De,{B:()=>e});var t=c(3236),r=c(9974),g=c(4360);function e(M,G=t.E){return(0,r.N)((L,B)=>{let A=null,w=null,I=null;const F=()=>{if(A){A.unsubscribe(),A=null;const V=w;w=null,B.next(V)}};function X(){const V=I+M,x=G.now();if(x{w=V,I=G.now(),A||(A=G.schedule(X,M),B.add(A))},()=>{F(),B.complete()},void 0,()=>{w=A=null}))})}},9901:(Rt,De,c)=>{c.d(De,{U:()=>g});var t=c(9974),r=c(4360);function g(e){return(0,t.N)((M,G)=>{let L=!1;M.subscribe((0,r._)(G,B=>{L=!0,G.next(B)},()=>{L||G.next(e),G.complete()}))})}},1986:(Rt,De,c)=>{c.d(De,{c:()=>X});var t=c(3236),r=c(8793),g=c(6697),e=c(9974),M=c(4360),G=c(5343),B=c(3703),A=c(1397),w=c(8750);function I(V,x){return x?ne=>(0,r.x)(x.pipe((0,g.s)(1),function L(){return(0,e.N)((V,x)=>{V.subscribe((0,M._)(x,G.l))})}()),ne.pipe(I(V))):(0,A.Z)((ne,J)=>(0,w.Tg)(V(ne,J)).pipe((0,g.s)(1),(0,B.u)(ne)))}var F=c(1584);function X(V,x=t.E){const ne=(0,F.O)(V,x);return I(()=>ne)}},3294:(Rt,De,c)=>{c.d(De,{F:()=>e});var t=c(3669),r=c(9974),g=c(4360);function e(G,L=t.D){return G=G??M,(0,r.N)((B,A)=>{let w,I=!0;B.subscribe((0,g._)(A,F=>{const X=L(F);(I||!G(w,X))&&(I=!1,w=X,A.next(F))}))})}function M(G,L){return G===L}},5964:(Rt,De,c)=>{c.d(De,{p:()=>g});var t=c(9974),r=c(4360);function g(e,M){return(0,t.N)((G,L)=>{let B=0;G.subscribe((0,r._)(L,A=>e.call(M,A,B++)&&L.next(A)))})}},980:(Rt,De,c)=>{c.d(De,{j:()=>r});var t=c(9974);function r(g){return(0,t.N)((e,M)=>{try{e.subscribe(M)}finally{M.add(g)}})}},1594:(Rt,De,c)=>{c.d(De,{$:()=>L});var t=c(9350),r=c(5964),g=c(6697),e=c(9901),M=c(3774),G=c(3669);function L(B,A){const w=arguments.length>=2;return I=>I.pipe(B?(0,r.p)((F,X)=>B(F,X,I)):G.D,(0,g.s)(1),w?(0,e.U)(A):(0,M.v)(()=>new t.G))}},6354:(Rt,De,c)=>{c.d(De,{T:()=>g});var t=c(9974),r=c(4360);function g(e,M){return(0,t.N)((G,L)=>{let B=0;G.subscribe((0,r._)(L,A=>{L.next(e.call(M,A,B++))}))})}},3703:(Rt,De,c)=>{c.d(De,{u:()=>r});var t=c(6354);function r(g){return(0,t.T)(()=>g)}},6365:(Rt,De,c)=>{c.d(De,{U:()=>g});var t=c(1397),r=c(3669);function g(e=1/0){return(0,t.Z)(r.D,e)}},1397:(Rt,De,c)=>{c.d(De,{Z:()=>B});var t=c(6354),r=c(8750),g=c(9974),e=c(5225),M=c(4360),L=c(8071);function B(A,w,I=1/0){return(0,L.T)(w)?B((F,X)=>(0,t.T)((V,x)=>w(F,V,X,x))((0,r.Tg)(A(F,X))),I):("number"==typeof w&&(I=w),(0,g.N)((F,X)=>function G(A,w,I,F,X,V,x,ne){const J=[];let be=0,Oe=0,he=!1;const we=()=>{he&&!J.length&&!be&&w.complete()},me=H=>be{V&&w.next(H),be++;let z=!1;(0,r.Tg)(I(H,Oe++)).subscribe((0,M._)(w,Z=>{X?.(Z),V?me(Z):w.next(Z)},()=>{z=!0},void 0,()=>{if(z)try{for(be--;J.length&&bede(Z)):de(Z)}we()}catch(Z){w.error(Z)}}))};return A.subscribe((0,M._)(w,me,()=>{he=!0,we()})),()=>{ne?.()}}(F,X,A,I)))}},941:(Rt,De,c)=>{c.d(De,{Q:()=>e});var t=c(5225),r=c(9974),g=c(4360);function e(M,G=0){return(0,r.N)((L,B)=>{L.subscribe((0,g._)(B,A=>(0,t.N)(B,M,()=>B.next(A),G),()=>(0,t.N)(B,M,()=>B.complete(),G),A=>(0,t.N)(B,M,()=>B.error(A),G)))})}},3946:(Rt,De,c)=>{c.d(De,{J:()=>g});var t=c(9974),r=c(4360);function g(){return(0,t.N)((e,M)=>{let G,L=!1;e.subscribe((0,r._)(M,B=>{const A=G;G=B,L&&M.next([A,B]),L=!0}))})}},9085:(Rt,De,c)=>{c.d(De,{E:()=>r});var t=c(6354);function r(...g){const e=g.length;if(0===e)throw new Error("list of properties cannot be empty.");return(0,t.T)(M=>{let G=M;for(let L=0;L{c.d(De,{B:()=>g});var t=c(9974),r=c(4360);function g(){return(0,t.N)((e,M)=>{let G=null;e._refCount++;const L=(0,r._)(M,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(G=null);const B=e._connection,A=G;G=null,B&&(!A||B===A)&&B.unsubscribe(),M.unsubscribe()});e.subscribe(L),L.closed||(G=e.connect())})}},2816:(Rt,De,c)=>{c.d(De,{S:()=>e});var t=c(9974),r=c(4360);function e(M,G){return(0,t.N)(function g(M,G,L,B,A){return(w,I)=>{let F=L,X=G,V=0;w.subscribe((0,r._)(I,x=>{const ne=V++;X=F?M(X,x,ne):(F=!0,x),B&&I.next(X)},A&&(()=>{F&&I.next(X),I.complete()})))}}(M,G,arguments.length>=2,!0))}},7647:(Rt,De,c)=>{c.d(De,{u:()=>M});var t=c(8750),r=c(1413),g=c(7707),e=c(9974);function M(L={}){const{connector:B=(()=>new r.B),resetOnError:A=!0,resetOnComplete:w=!0,resetOnRefCountZero:I=!0}=L;return F=>{let X,V,x,ne=0,J=!1,be=!1;const Oe=()=>{V?.unsubscribe(),V=void 0},he=()=>{Oe(),X=x=void 0,J=be=!1},we=()=>{const me=X;he(),me?.unsubscribe()};return(0,e.N)((me,de)=>{ne++,!be&&!J&&Oe();const H=x=x??B();de.add(()=>{ne--,0===ne&&!be&&!J&&(V=G(we,I))}),H.subscribe(de),!X&&ne>0&&(X=new g.Ms({next:z=>H.next(z),error:z=>{be=!0,Oe(),V=G(he,A,z),H.error(z)},complete:()=>{J=!0,Oe(),V=G(he,w),H.complete()}}),(0,t.Tg)(me).subscribe(X))})(F)}}function G(L,B,...A){if(!0===B)return void L();if(!1===B)return;const w=new g.Ms({next:()=>{w.unsubscribe(),L()}});return(0,t.Tg)(B(...A)).subscribe(w)}},4668:(Rt,De,c)=>{c.d(De,{t:()=>g});var t=c(2771),r=c(7647);function g(e,M,G){let L,B=!1;return e&&"object"==typeof e?({bufferSize:L=1/0,windowTime:M=1/0,refCount:B=!1,scheduler:G}=e):L=e??1/0,(0,r.u)({connector:()=>new t.m(L,M,G),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:B})}},5245:(Rt,De,c)=>{c.d(De,{i:()=>r});var t=c(5964);function r(g){return(0,t.p)((e,M)=>g<=M)}},9172:(Rt,De,c)=>{c.d(De,{Z:()=>e});var t=c(8793),r=c(9326),g=c(9974);function e(...M){const G=(0,r.lI)(M);return(0,g.N)((L,B)=>{(G?(0,t.x)(M,L,G):(0,t.x)(M,L)).subscribe(B)})}},5558:(Rt,De,c)=>{c.d(De,{n:()=>e});var t=c(8750),r=c(9974),g=c(4360);function e(M,G){return(0,r.N)((L,B)=>{let A=null,w=0,I=!1;const F=()=>I&&!A&&B.complete();L.subscribe((0,g._)(B,X=>{A?.unsubscribe();let V=0;const x=w++;(0,t.Tg)(M(X,x)).subscribe(A=(0,g._)(B,ne=>B.next(G?G(X,ne,x,V++):ne),()=>{A=null,F()}))},()=>{I=!0,F()}))})}},6697:(Rt,De,c)=>{c.d(De,{s:()=>e});var t=c(983),r=c(9974),g=c(4360);function e(M){return M<=0?()=>t.w:(0,r.N)((G,L)=>{let B=0;G.subscribe((0,g._)(L,A=>{++B<=M&&(L.next(A),M<=B&&L.complete())}))})}},6977:(Rt,De,c)=>{c.d(De,{Q:()=>M});var t=c(9974),r=c(4360),g=c(8750),e=c(5343);function M(G){return(0,t.N)((L,B)=>{(0,g.Tg)(G).subscribe((0,r._)(B,()=>B.complete(),e.l)),!B.closed&&L.subscribe(B)})}},7048:(Rt,De,c)=>{c.d(De,{v:()=>g});var t=c(9974),r=c(4360);function g(e,M=!1){return(0,t.N)((G,L)=>{let B=0;G.subscribe((0,r._)(L,A=>{const w=e(A,B++);(w||M)&&L.next(A),!w&&L.complete()}))})}},8141:(Rt,De,c)=>{c.d(De,{M:()=>M});var t=c(8071),r=c(9974),g=c(4360),e=c(3669);function M(G,L,B){const A=(0,t.T)(G)||L||B?{next:G,error:L,complete:B}:G;return A?(0,r.N)((w,I)=>{var F;null===(F=A.subscribe)||void 0===F||F.call(A);let X=!0;w.subscribe((0,g._)(I,V=>{var x;null===(x=A.next)||void 0===x||x.call(A,V),I.next(V)},()=>{var V;X=!1,null===(V=A.complete)||void 0===V||V.call(A),I.complete()},V=>{var x;X=!1,null===(x=A.error)||void 0===x||x.call(A,V),I.error(V)},()=>{var V,x;X&&(null===(V=A.unsubscribe)||void 0===V||V.call(A)),null===(x=A.finalize)||void 0===x||x.call(A)}))}):e.D}},3386:(Rt,De,c)=>{c.d(De,{c:()=>L});var t=c(3236),r=c(9974),g=c(4360),e=c(8750),G=c(1584);function L(B,A=t.E,w){const I=(0,G.O)(B,A);return function M(B,A){return(0,r.N)((w,I)=>{const{leading:F=!0,trailing:X=!1}=A??{};let V=!1,x=null,ne=null,J=!1;const be=()=>{ne?.unsubscribe(),ne=null,X&&(we(),J&&I.complete())},Oe=()=>{ne=null,J&&I.complete()},he=me=>ne=(0,e.Tg)(B(me)).subscribe((0,g._)(I,be,Oe)),we=()=>{if(V){V=!1;const me=x;x=null,I.next(me),!J&&he(me)}};w.subscribe((0,g._)(I,me=>{V=!0,x=me,(!ne||ne.closed)&&(F?we():he(me))},()=>{J=!0,(!(X&&V&&ne)||ne.closed)&&I.complete()}))})}(()=>I,w)}},3774:(Rt,De,c)=>{c.d(De,{v:()=>e});var t=c(9350),r=c(9974),g=c(4360);function e(G=M){return(0,r.N)((L,B)=>{let A=!1;L.subscribe((0,g._)(B,w=>{A=!0,B.next(w)},()=>A?B.complete():B.error(G())))})}function M(){return new t.G}},3993:(Rt,De,c)=>{c.d(De,{E:()=>L});var t=c(9974),r=c(4360),g=c(8750),e=c(3669),M=c(5343),G=c(9326);function L(...B){const A=(0,G.ms)(B);return(0,t.N)((w,I)=>{const F=B.length,X=new Array(F);let V=B.map(()=>!1),x=!1;for(let ne=0;ne{X[ne]=J,!x&&!V[ne]&&(V[ne]=!0,(x=V.every(e.D))&&(V=null))},M.l));w.subscribe((0,r._)(I,ne=>{if(x){const J=[ne,...X];I.next(A?A(...J):J)}}))})}},6780:(Rt,De,c)=>{c.d(De,{R:()=>M});var t=c(8359);class r extends t.yU{constructor(L,B){super()}schedule(L,B=0){return this}}const g={setInterval(G,L,...B){const{delegate:A}=g;return A?.setInterval?A.setInterval(G,L,...B):setInterval(G,L,...B)},clearInterval(G){const{delegate:L}=g;return(L?.clearInterval||clearInterval)(G)},delegate:void 0};var e=c(7908);class M extends r{constructor(L,B){super(L,B),this.scheduler=L,this.work=B,this.pending=!1}schedule(L,B=0){var A;if(this.closed)return this;this.state=L;const w=this.id,I=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(I,w,B)),this.pending=!0,this.delay=B,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(I,this.id,B),this}requestAsyncId(L,B,A=0){return g.setInterval(L.flush.bind(L,this),A)}recycleAsyncId(L,B,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return B;null!=B&&g.clearInterval(B)}execute(L,B){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(L,B);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,B){let w,A=!1;try{this.work(L)}catch(I){A=!0,w=I||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),w}unsubscribe(){if(!this.closed){const{id:L,scheduler:B}=this,{actions:A}=B;this.work=this.state=this.scheduler=null,this.pending=!1,(0,e.o)(A,this),null!=L&&(this.id=this.recycleAsyncId(B,L,null)),this.delay=null,super.unsubscribe()}}}},9687:(Rt,De,c)=>{c.d(De,{q:()=>g});var t=c(6129);class r{constructor(M,G=r.now){this.schedulerActionCtor=M,this.now=G}schedule(M,G=0,L){return new this.schedulerActionCtor(this,M).schedule(L,G)}}r.now=t.U.now;class g extends r{constructor(M,G=r.now){super(M,G),this.actions=[],this._active=!1}flush(M){const{actions:G}=this;if(this._active)return void G.push(M);let L;this._active=!0;do{if(L=M.execute(M.state,M.delay))break}while(M=G.shift());if(this._active=!1,L){for(;M=G.shift();)M.unsubscribe();throw L}}}},536:(Rt,De,c)=>{c.d(De,{X:()=>L});var t=c(6780),r=c(8359);const g={schedule(A){let w=requestAnimationFrame,I=cancelAnimationFrame;const{delegate:F}=g;F&&(w=F.requestAnimationFrame,I=F.cancelAnimationFrame);const X=w(V=>{I=void 0,A(V)});return new r.yU(()=>I?.(X))},requestAnimationFrame(...A){const{delegate:w}=g;return(w?.requestAnimationFrame||requestAnimationFrame)(...A)},cancelAnimationFrame(...A){const{delegate:w}=g;return(w?.cancelAnimationFrame||cancelAnimationFrame)(...A)},delegate:void 0};var M=c(9687);const L=new class G extends M.q{flush(w){this._active=!0;const I=this._scheduled;this._scheduled=void 0;const{actions:F}=this;let X;w=w||F.shift();do{if(X=w.execute(w.state,w.delay))break}while((w=F[0])&&w.id===I&&F.shift());if(this._active=!1,X){for(;(w=F[0])&&w.id===I&&F.shift();)w.unsubscribe();throw X}}}(class e extends t.R{constructor(w,I){super(w,I),this.scheduler=w,this.work=I}requestAsyncId(w,I,F=0){return null!==F&&F>0?super.requestAsyncId(w,I,F):(w.actions.push(this),w._scheduled||(w._scheduled=g.requestAnimationFrame(()=>w.flush(void 0))))}recycleAsyncId(w,I,F=0){var X;if(null!=F?F>0:this.delay>0)return super.recycleAsyncId(w,I,F);const{actions:V}=w;null!=I&&(null===(X=V[V.length-1])||void 0===X?void 0:X.id)!==I&&(g.cancelAnimationFrame(I),w._scheduled=void 0)}})},5007:(Rt,De,c)=>{c.d(De,{$:()=>V});var t=c(6780);let g,r=1;const e={};function M(ne){return ne in e&&(delete e[ne],!0)}const G={setImmediate(ne){const J=r++;return e[J]=!0,g||(g=Promise.resolve()),g.then(()=>M(J)&&ne()),J},clearImmediate(ne){M(ne)}},{setImmediate:B,clearImmediate:A}=G,w={setImmediate(...ne){const{delegate:J}=w;return(J?.setImmediate||B)(...ne)},clearImmediate(ne){const{delegate:J}=w;return(J?.clearImmediate||A)(ne)},delegate:void 0};var F=c(9687);const V=new class X extends F.q{flush(J){this._active=!0;const be=this._scheduled;this._scheduled=void 0;const{actions:Oe}=this;let he;J=J||Oe.shift();do{if(he=J.execute(J.state,J.delay))break}while((J=Oe[0])&&J.id===be&&Oe.shift());if(this._active=!1,he){for(;(J=Oe[0])&&J.id===be&&Oe.shift();)J.unsubscribe();throw he}}}(class I extends t.R{constructor(J,be){super(J,be),this.scheduler=J,this.work=be}requestAsyncId(J,be,Oe=0){return null!==Oe&&Oe>0?super.requestAsyncId(J,be,Oe):(J.actions.push(this),J._scheduled||(J._scheduled=w.setImmediate(J.flush.bind(J,void 0))))}recycleAsyncId(J,be,Oe=0){var he;if(null!=Oe?Oe>0:this.delay>0)return super.recycleAsyncId(J,be,Oe);const{actions:we}=J;null!=be&&(null===(he=we[we.length-1])||void 0===he?void 0:he.id)!==be&&(w.clearImmediate(be),J._scheduled===be&&(J._scheduled=void 0))}})},3236:(Rt,De,c)=>{c.d(De,{E:()=>g,b:()=>e});var t=c(6780);const g=new(c(9687).q)(t.R),e=g},6129:(Rt,De,c)=>{c.d(De,{U:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},9270:(Rt,De,c)=>{c.d(De,{f:()=>t});const t={setTimeout(r,g,...e){const{delegate:M}=t;return M?.setTimeout?M.setTimeout(r,g,...e):setTimeout(r,g,...e)},clearTimeout(r){const{delegate:g}=t;return(g?.clearTimeout||clearTimeout)(r)},delegate:void 0}},4761:(Rt,De,c)=>{c.d(De,{l:()=>r});const r=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Rt,De,c)=>{c.d(De,{s:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Rt,De,c)=>{c.d(De,{G:()=>r});const r=(0,c(1853).L)(g=>function(){g(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Rt,De,c)=>{c.d(De,{R0:()=>G,lI:()=>M,ms:()=>e});var t=c(8071),r=c(9470);function g(L){return L[L.length-1]}function e(L){return(0,t.T)(g(L))?L.pop():void 0}function M(L){return(0,r.m)(g(L))?L.pop():void 0}function G(L,B){return"number"==typeof g(L)?L.pop():B}},3073:(Rt,De,c)=>{c.d(De,{D:()=>M});const{isArray:t}=Array,{getPrototypeOf:r,prototype:g,keys:e}=Object;function M(L){if(1===L.length){const B=L[0];if(t(B))return{args:B,keys:null};if(function G(L){return L&&"object"==typeof L&&r(L)===g}(B)){const A=e(B);return{args:A.map(w=>B[w]),keys:A}}}return{args:L,keys:null}}},7908:(Rt,De,c)=>{function t(r,g){if(r){const e=r.indexOf(g);0<=e&&r.splice(e,1)}}c.d(De,{o:()=>t})},1853:(Rt,De,c)=>{function t(r){const e=r(M=>{Error.call(M),M.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}c.d(De,{L:()=>t})},8496:(Rt,De,c)=>{function t(r,g){return r.reduce((e,M,G)=>(e[M]=g[G],e),{})}c.d(De,{e:()=>t})},9786:(Rt,De,c)=>{c.d(De,{Y:()=>g,l:()=>e});var t=c(1026);let r=null;function g(M){if(t.$.useDeprecatedSynchronousErrorHandling){const G=!r;if(G&&(r={errorThrown:!1,error:null}),M(),G){const{errorThrown:L,error:B}=r;if(r=null,L)throw B}}else M()}function e(M){t.$.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=M)}},5225:(Rt,De,c)=>{function t(r,g,e,M=0,G=!1){const L=g.schedule(function(){e(),G?r.add(this.schedule(null,M)):this.unsubscribe()},M);if(r.add(L),!G)return L}c.d(De,{N:()=>t})},3669:(Rt,De,c)=>{function t(r){return r}c.d(De,{D:()=>t})},7441:(Rt,De,c)=>{c.d(De,{X:()=>t});const t=r=>r&&"number"==typeof r.length&&"function"!=typeof r},7953:(Rt,De,c)=>{c.d(De,{T:()=>r});var t=c(8071);function r(g){return Symbol.asyncIterator&&(0,t.T)(g?.[Symbol.asyncIterator])}},8071:(Rt,De,c)=>{function t(r){return"function"==typeof r}c.d(De,{T:()=>t})},5055:(Rt,De,c)=>{c.d(De,{l:()=>g});var t=c(3494),r=c(8071);function g(e){return(0,r.T)(e[t.s])}},5397:(Rt,De,c)=>{c.d(De,{x:()=>g});var t=c(4761),r=c(8071);function g(e){return(0,r.T)(e?.[t.l])}},4402:(Rt,De,c)=>{c.d(De,{A:()=>g});var t=c(1985),r=c(8071);function g(e){return!!e&&(e instanceof t.c||(0,r.T)(e.lift)&&(0,r.T)(e.subscribe))}},9858:(Rt,De,c)=>{c.d(De,{y:()=>r});var t=c(8071);function r(g){return(0,t.T)(g?.then)}},5196:(Rt,De,c)=>{c.d(De,{C:()=>g,U:()=>e});var t=c(7272),r=c(8071);function g(M){return(0,t.AQ)(this,arguments,function*(){const L=M.getReader();try{for(;;){const{value:B,done:A}=yield(0,t.N3)(L.read());if(A)return yield(0,t.N3)(void 0);yield yield(0,t.N3)(B)}}finally{L.releaseLock()}})}function e(M){return(0,r.T)(M?.getReader)}},9470:(Rt,De,c)=>{c.d(De,{m:()=>r});var t=c(8071);function r(g){return g&&(0,t.T)(g.schedule)}},9974:(Rt,De,c)=>{c.d(De,{N:()=>g,S:()=>r});var t=c(8071);function r(e){return(0,t.T)(e?.lift)}function g(e){return M=>{if(r(M))return M.lift(function(G){try{return e(G,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Rt,De,c)=>{c.d(De,{I:()=>e});var t=c(6354);const{isArray:r}=Array;function e(M){return(0,t.T)(G=>function g(M,G){return r(G)?M(...G):M(G)}(M,G))}},5343:(Rt,De,c)=>{function t(){}c.d(De,{l:()=>t})},1203:(Rt,De,c)=>{c.d(De,{F:()=>r,m:()=>g});var t=c(3669);function r(...e){return g(e)}function g(e){return 0===e.length?t.D:1===e.length?e[0]:function(G){return e.reduce((L,B)=>B(L),G)}}},5334:(Rt,De,c)=>{c.d(De,{m:()=>g});var t=c(1026),r=c(9270);function g(e){r.f.setTimeout(()=>{const{onUnhandledError:M}=t.$;if(!M)throw e;M(e)})}},591:(Rt,De,c)=>{function t(r){return new TypeError(`You provided ${null!==r&&"object"==typeof r?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}c.d(De,{L:()=>t})},1018:(Rt,De,c)=>{function t(H){return H!==String(parseFloat(H))}c.d(De,{KF:()=>de});var M=Object.getOwnPropertyNames?function r(H){return Object.getOwnPropertyNames(H).filter(function(z){return H.propertyIsEnumerable(z)&&t(z)})}:Object.keys?function g(H){return Object.keys(H).filter(t)}:function e(H){var z=[];for(var Z in H)H.hasOwnProperty(Z)&&H.propertyIsEnumerable(Z)&&t(Z)&&z.push(Z);return z},G=function(){function H(z){this.enumObj=z,this.keysList=Object.freeze(M(z));for(var Z=this.keysList.length,pe=new Array(Z),E=new Map,S=0;S=Z.length,value:Z.keysList[pe]};return++pe,S}})[Symbol.iterator]=function(){return this},z},H.prototype.values=function(){var z,Z=this,pe=0;return(z={next:function(){var S={done:pe>=Z.length,value:Z.valuesList[pe]};return++pe,S}})[Symbol.iterator]=function(){return this},z},H.prototype.entries=function(){var z,Z=this,pe=0;return(z={next:function(){var S={done:pe>=Z.length,value:Z[pe]};return++pe,S}})[Symbol.iterator]=function(){return this},z},H.prototype[Symbol.iterator]=function(){return this.entries()},H.prototype.forEach=function(z,Z){for(var pe=this.length,E=0;E{c.d(De,{C6:()=>r,Cl:()=>g,Tt:()=>e,YH:()=>A,fX:()=>ne,sH:()=>B});var t=function(E,S){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Y){R.__proto__=Y}||function(R,Y){for(var se in Y)Object.prototype.hasOwnProperty.call(Y,se)&&(R[se]=Y[se])})(E,S)};function r(E,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function R(){this.constructor=E}t(E,S),E.prototype=null===S?Object.create(S):(R.prototype=S.prototype,new R)}var g=function(){return g=Object.assign||function(S){for(var R,Y=1,se=arguments.length;Y0&&Be[Be.length-1])&&(6===Le[0]||2===Le[0])){R=0;continue}if(3===Le[0]&&(!Be||Le[1]>Be[0]&&Le[1]{function M(E,S,R,Y){var Pt,se=arguments.length,Be=se<3?S:null===Y?Y=Object.getOwnPropertyDescriptor(S,R):Y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Be=Reflect.decorate(E,S,R,Y);else for(var vt=E.length-1;vt>=0;vt--)(Pt=E[vt])&&(Be=(se<3?Pt(Be):se>3?Pt(S,R,Be):Pt(S,R))||Be);return se>3&&Be&&Object.defineProperty(S,R,Be),Be}c.d(De,{Cg:()=>M})},7272:(Rt,De,c)=>{function B(E,S,R,Y){return new(R||(R=Promise))(function(Be,Pt){function vt(zt){try{Le(Y.next(zt))}catch(xt){Pt(xt)}}function wt(zt){try{Le(Y.throw(zt))}catch(xt){Pt(xt)}}function Le(zt){zt.done?Be(zt.value):function se(Be){return Be instanceof R?Be:new R(function(Pt){Pt(Be)})}(zt.value).then(vt,wt)}Le((Y=Y.apply(E,S||[])).next())})}function J(E){return this instanceof J?(this.v=E,this):new J(E)}function be(E,S,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,Y=R.apply(E,S||[]),Be=[];return se={},Pt("next"),Pt("throw"),Pt("return"),se[Symbol.asyncIterator]=function(){return this},se;function Pt(st){Y[st]&&(se[st]=function(Ct){return new Promise(function(It,Tt){Be.push([st,Ct,It,Tt])>1||vt(st,Ct)})})}function vt(st,Ct){try{!function wt(st){st.value instanceof J?Promise.resolve(st.value.v).then(Le,zt):xt(Be[0][2],st)}(Y[st](Ct))}catch(It){xt(Be[0][3],It)}}function Le(st){vt("next",st)}function zt(st){vt("throw",st)}function xt(st,Ct){st(Ct),Be.shift(),Be.length&&vt(Be[0][0],Be[0][1])}}function he(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R,S=E[Symbol.asyncIterator];return S?S.call(E):(E=function F(E){var S="function"==typeof Symbol&&Symbol.iterator,R=S&&E[S],Y=0;if(R)return R.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&Y>=E.length&&(E=void 0),{value:E&&E[Y++],done:!E}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}(E),R={},Y("next"),Y("throw"),Y("return"),R[Symbol.asyncIterator]=function(){return this},R);function Y(Be){R[Be]=E[Be]&&function(Pt){return new Promise(function(vt,wt){!function se(Be,Pt,vt,wt){Promise.resolve(wt).then(function(Le){Be({value:Le,done:vt})},Pt)}(vt,wt,(Pt=E[Be](Pt)).done,Pt.value)})}}}c.d(De,{AQ:()=>be,N3:()=>J,sH:()=>B,xN:()=>he})},4523:(Rt,De,c)=>{function t(g,e,M,G,L,B,A){try{var w=g[B](A),I=w.value}catch(F){return void M(F)}w.done?e(I):Promise.resolve(I).then(G,L)}function r(g){return function(){var e=this,M=arguments;return new Promise(function(G,L){var B=g.apply(e,M);function A(I){t(B,G,L,A,w,"next",I)}function w(I){t(B,G,L,A,w,"throw",I)}A(void 0)})}}c.d(De,{A:()=>r})},9969:(Rt,De,c)=>{c.d(De,{FX:()=>Z,If:()=>t,K2:()=>G,P:()=>V,hZ:()=>g,i0:()=>e,iF:()=>L,kY:()=>w,kp:()=>r,sf:()=>H,ui:()=>z,wk:()=>B,yc:()=>x});var t=function(pe){return pe[pe.State=0]="State",pe[pe.Transition=1]="Transition",pe[pe.Sequence=2]="Sequence",pe[pe.Group=3]="Group",pe[pe.Animate=4]="Animate",pe[pe.Keyframes=5]="Keyframes",pe[pe.Style=6]="Style",pe[pe.Trigger=7]="Trigger",pe[pe.Reference=8]="Reference",pe[pe.AnimateChild=9]="AnimateChild",pe[pe.AnimateRef=10]="AnimateRef",pe[pe.Query=11]="Query",pe[pe.Stagger=12]="Stagger",pe}(t||{});const r="*";function g(pe,E){return{type:t.Trigger,name:pe,definitions:E,options:{}}}function e(pe,E=null){return{type:t.Animate,styles:E,timings:pe}}function G(pe,E=null){return{type:t.Sequence,steps:pe,options:E}}function L(pe){return{type:t.Style,styles:pe,offset:null}}function B(pe,E,S){return{type:t.State,name:pe,styles:E,options:S}}function w(pe,E,S=null){return{type:t.Transition,expr:pe,animation:E,options:S}}function V(pe,E,S=null){return{type:t.Query,selector:pe,animation:E,options:S}}function x(pe,E){return{type:t.Stagger,timings:pe,animation:E}}class H{constructor(E=0,S=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=E+S}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(E=>E()),this._onDoneFns=[])}onStart(E){this._originalOnStartFns.push(E),this._onStartFns.push(E)}onDone(E){this._originalOnDoneFns.push(E),this._onDoneFns.push(E)}onDestroy(E){this._onDestroyFns.push(E)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(E=>E()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(E=>E()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(E){this._position=this.totalTime?E*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(E){const S="start"==E?this._onStartFns:this._onDoneFns;S.forEach(R=>R()),S.length=0}}class z{constructor(E){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=E;let S=0,R=0,Y=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(Be=>{Be.onDone(()=>{++S==se&&this._onFinish()}),Be.onDestroy(()=>{++R==se&&this._onDestroy()}),Be.onStart(()=>{++Y==se&&this._onStart()})}),this.totalTime=this.players.reduce((Be,Pt)=>Math.max(Be,Pt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(E=>E()),this._onDoneFns=[])}init(){this.players.forEach(E=>E.init())}onStart(E){this._onStartFns.push(E)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(E=>E()),this._onStartFns=[])}onDone(E){this._onDoneFns.push(E)}onDestroy(E){this._onDestroyFns.push(E)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(E=>E.play())}pause(){this.players.forEach(E=>E.pause())}restart(){this.players.forEach(E=>E.restart())}finish(){this._onFinish(),this.players.forEach(E=>E.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(E=>E.destroy()),this._onDestroyFns.forEach(E=>E()),this._onDestroyFns=[])}reset(){this.players.forEach(E=>E.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(E){const S=E*this.totalTime;this.players.forEach(R=>{const Y=R.totalTime?Math.min(1,S/R.totalTime):1;R.setPosition(Y)})}getPosition(){const E=this.players.reduce((S,R)=>null===S||R.totalTime>S.totalTime?R:S,null);return null!=E?E.getPosition():0}beforeDestroy(){this.players.forEach(E=>{E.beforeDestroy&&E.beforeDestroy()})}triggerCallback(E){const S="start"==E?this._onStartFns:this._onDoneFns;S.forEach(R=>R()),S.length=0}}const Z="!"},851:(Rt,De,c)=>{c.d(De,{Pd:()=>Qe,vR:()=>te,kB:()=>Ot,Bu:()=>wt,FN:()=>ue,GX:()=>Et,_G:()=>oe,w6:()=>Fe});var t=c(177),r=c(3953),g=c(6860),e=c(1413),M=c(8359),G=c(4412),L=c(7673),B=c(7336),A=c(8141),w=c(152),I=c(5964),F=c(6354),X=c(5245),V=c(3294),x=c(6977);let J=(()=>{class Ee{create(re){return typeof MutationObserver>"u"?null:new MutationObserver(re)}static#e=this.\u0275fac=function(ze){return new(ze||Ee)};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),he=(()=>{class Ee{static#e=this.\u0275fac=function(ze){return new(ze||Ee)};static#t=this.\u0275mod=r.$C({type:Ee});static#n=this.\u0275inj=r.G2t({providers:[J]})}return Ee})();var we=c(4085),me=c(9327);class Pt{constructor(Je,re){this._items=Je,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new e.B,this._typeaheadSubscription=M.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ze=>ze.disabled,this._pressedLetters=[],this.tabOut=new e.B,this.change=new e.B,Je instanceof r.rOR?this._itemChangesSubscription=Je.changes.subscribe(ze=>this._itemsChanged(ze.toArray())):(0,r.Hps)(Je)&&(this._effectRef=(0,r.QZP)(()=>this._itemsChanged(Je()),{injector:re}))}skipPredicate(Je){return this._skipPredicateFn=Je,this}withWrap(Je=!0){return this._wrap=Je,this}withVerticalOrientation(Je=!0){return this._vertical=Je,this}withHorizontalOrientation(Je){return this._horizontal=Je,this}withAllowedModifierKeys(Je){return this._allowedModifierKeys=Je,this}withTypeAhead(Je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,A.M)(re=>this._pressedLetters.push(re)),(0,w.B)(Je),(0,I.p)(()=>this._pressedLetters.length>0),(0,F.T)(()=>this._pressedLetters.join(""))).subscribe(re=>{const ze=this._getItemsArray();for(let gt=1;gt!Je[Ke]||this._allowedModifierKeys.indexOf(Ke)>-1);switch(re){case B.wn:return void this.tabOut.next();case B.n6:if(this._vertical&>){this.setNextItemActive();break}return;case B.i7:if(this._vertical&>){this.setPreviousItemActive();break}return;case B.LE:if(this._horizontal&>){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case B.UQ:if(this._horizontal&>){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case B.yZ:if(this._homeAndEnd&>){this.setFirstItemActive();break}return;case B.Kp:if(this._homeAndEnd&>){this.setLastItemActive();break}return;case B.w_:if(this._pageUpAndDown.enabled&>){const Ke=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Ke>0?Ke:0,1);break}return;case B.dB:if(this._pageUpAndDown.enabled&>){const Ke=this._activeItemIndex+this._pageUpAndDown.delta,Pe=this._getItemsArray().length;this._setActiveItemByIndex(Ke=B.A&&re<=B.Z||re>=B.f2&&re<=B.bn)&&this._letterKeyStream.next(String.fromCharCode(re))))}this._pressedLetters=[],Je.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._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Je){const re=this._getItemsArray(),ze="number"==typeof Je?Je:re.indexOf(Je);this._activeItem=re[ze]??null,this._activeItemIndex=ze}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Je){this._wrap?this._setActiveInWrapMode(Je):this._setActiveInDefaultMode(Je)}_setActiveInWrapMode(Je){const re=this._getItemsArray();for(let ze=1;ze<=re.length;ze++){const gt=(this._activeItemIndex+Je*ze+re.length)%re.length;if(!this._skipPredicateFn(re[gt]))return void this.setActiveItem(gt)}}_setActiveInDefaultMode(Je){this._setActiveItemByIndex(this._activeItemIndex+Je,Je)}_setActiveItemByIndex(Je,re){const ze=this._getItemsArray();if(ze[Je]){for(;this._skipPredicateFn(ze[Je]);)if(!ze[Je+=re])return;this.setActiveItem(Je)}}_getItemsArray(){return(0,r.Hps)(this._items)?this._items():this._items instanceof r.rOR?this._items.toArray():this._items}_itemsChanged(Je){if(this._activeItem){const re=Je.indexOf(this._activeItem);re>-1&&re!==this._activeItemIndex&&(this._activeItemIndex=re)}}}class wt extends Pt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Je){return this._origin=Je,this}setActiveItem(Je){super.setActiveItem(Je),this.activeItem&&this.activeItem.focus(this._origin)}}let zt=(()=>{class Ee{constructor(re){this._platform=re}isDisabled(re){return re.hasAttribute("disabled")}isVisible(re){return function st(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(re)&&"visible"===getComputedStyle(re).visibility}isTabbable(re){if(!this._platform.isBrowser)return!1;const ze=function xt(Ee){try{return Ee.frameElement}catch{return null}}(function bt(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(re));if(ze&&(-1===fn(ze)||!this.isVisible(ze)))return!1;let gt=re.nodeName.toLowerCase(),Ke=fn(re);return re.hasAttribute("contenteditable")?-1!==Ke:!("iframe"===gt||"object"===gt||this._platform.WEBKIT&&this._platform.IOS&&!function Hn(Ee){let Je=Ee.nodeName.toLowerCase(),re="input"===Je&&Ee.type;return"text"===re||"password"===re||"select"===Je||"textarea"===Je}(re))&&("audio"===gt?!!re.hasAttribute("controls")&&-1!==Ke:"video"===gt?-1!==Ke&&(null!==Ke||this._platform.FIREFOX||re.hasAttribute("controls")):re.tabIndex>=0)}isFocusable(re,ze){return function zn(Ee){return!function It(Ee){return function en(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function Ct(Ee){let Je=Ee.nodeName.toLowerCase();return"input"===Je||"select"===Je||"button"===Je||"textarea"===Je}(Ee)||function Tt(Ee){return function jt(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||Vt(Ee))}(re)&&!this.isDisabled(re)&&(ze?.ignoreVisibility||this.isVisible(re))}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(g.OD))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();function Vt(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Je=Ee.getAttribute("tabindex");return!(!Je||isNaN(parseInt(Je,10)))}function fn(Ee){if(!Vt(Ee))return null;const Je=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Je)?-1:Je}class At{get enabled(){return this._enabled}set enabled(Je){this._enabled=Je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}constructor(Je,re,ze,gt,Ke=!1,Pe){this._element=Je,this._checker=re,this._ngZone=ze,this._document=gt,this._injector=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ke||this.attachAnchors()}destroy(){const Je=this._startAnchor,re=this._endAnchor;Je&&(Je.removeEventListener("focus",this.startAnchorListener),Je.remove()),re&&(re.removeEventListener("focus",this.endAnchorListener),re.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(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusInitialElement(Je)))})}focusFirstTabbableElementWhenReady(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusFirstTabbableElement(Je)))})}focusLastTabbableElementWhenReady(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusLastTabbableElement(Je)))})}_getRegionBoundary(Je){const re=this._element.querySelectorAll(`[cdk-focus-region-${Je}], [cdkFocusRegion${Je}], [cdk-focus-${Je}]`);return"start"==Je?re.length?re[0]:this._getFirstTabbableElement(this._element):re.length?re[re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Je){const re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(re){if(!this._checker.isFocusable(re)){const ze=this._getFirstTabbableElement(re);return ze?.focus(Je),!!ze}return re.focus(Je),!0}return this.focusFirstTabbableElement(Je)}focusFirstTabbableElement(Je){const re=this._getRegionBoundary("start");return re&&re.focus(Je),!!re}focusLastTabbableElement(Je){const re=this._getRegionBoundary("end");return re&&re.focus(Je),!!re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Je){if(this._checker.isFocusable(Je)&&this._checker.isTabbable(Je))return Je;const re=Je.children;for(let ze=0;ze=0;ze--){const gt=re[ze].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(re[ze]):null;if(gt)return gt}return null}_createAnchor(){const Je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Je),Je.classList.add("cdk-visually-hidden"),Je.classList.add("cdk-focus-trap-anchor"),Je.setAttribute("aria-hidden","true"),Je}_toggleAnchorTabIndex(Je,re){Je?re.setAttribute("tabindex","0"):re.removeAttribute("tabindex")}toggleAnchors(Je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}_executeOnStable(Je){this._injector?(0,r.mal)(Je,{injector:this._injector}):setTimeout(Je)}}let Et=(()=>{class Ee{constructor(re,ze,gt){this._checker=re,this._ngZone=ze,this._injector=(0,r.WQX)(r.zZn),this._document=gt}create(re,ze=!1){return new At(re,this._checker,this._ngZone,this._document,ze,this._injector)}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(zt),r.KVO(r.SKi),r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Ot=(()=>{class Ee{get enabled(){return this.focusTrap?.enabled||!1}set enabled(re){this.focusTrap&&(this.focusTrap.enabled=re)}constructor(re,ze,gt){this._elementRef=re,this._focusTrapFactory=ze,this._previouslyFocusedElement=null,(0,r.WQX)(g.OD).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(re){const ze=re.autoCapture;ze&&!ze.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,g.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.rXU(r.aKT),r.rXU(Et),r.rXU(t.qQ))};static#t=this.\u0275dir=r.FsC({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",r.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",r.L39]},exportAs:["cdkTrapFocus"],standalone:!0,features:[r.GFd,r.OA$]})}return Ee})();function oe(Ee){return 0===Ee.buttons||0===Ee.detail}function Fe(Ee){const Je=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Je||-1!==Je.identifier||null!=Je.radiusX&&1!==Je.radiusX||null!=Je.radiusY&&1!==Je.radiusY)}const et=new r.nKC("cdk-input-modality-detector-options"),ut={ignoreKeys:[B.A$,B.W3,B.eg,B.Ge,B.FX]},cn=(0,g.BQ)({passive:!0,capture:!0});let Tn=(()=>{class Ee{get mostRecentModality(){return this._modality.value}constructor(re,ze,gt,Ke){this._platform=re,this._mostRecentTarget=null,this._modality=new G.t(null),this._lastTouchMs=0,this._onKeydown=Pe=>{this._options?.ignoreKeys?.some(Re=>Re===Pe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.Fb)(Pe))},this._onMousedown=Pe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(oe(Pe)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.Fb)(Pe))},this._onTouchstart=Pe=>{Fe(Pe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.Fb)(Pe))},this._options={...ut,...Ke},this.modalityDetected=this._modality.pipe((0,X.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,V.F)()),re.isBrowser&&ze.runOutsideAngular(()=>{gt.addEventListener("keydown",this._onKeydown,cn),gt.addEventListener("mousedown",this._onMousedown,cn),gt.addEventListener("touchstart",this._onTouchstart,cn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cn),document.removeEventListener("mousedown",this._onMousedown,cn),document.removeEventListener("touchstart",this._onTouchstart,cn))}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(g.OD),r.KVO(r.SKi),r.KVO(t.qQ),r.KVO(et,8))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var On=function(Ee){return Ee[Ee.IMMEDIATE=0]="IMMEDIATE",Ee[Ee.EVENTUAL=1]="EVENTUAL",Ee}(On||{});const Ut=new r.nKC("cdk-focus-monitor-default-options"),Ye=(0,g.BQ)({passive:!0,capture:!0});let ue=(()=>{class Ee{constructor(re,ze,gt,Ke,Pe){this._ngZone=re,this._platform=ze,this._inputModalityDetector=gt,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 e.B,this._rootNodeFocusAndBlurListener=Re=>{for(let ce=(0,g.Fb)(Re);ce;ce=ce.parentElement)"focus"===Re.type?this._onFocus(Re,ce):this._onBlur(Re,ce)},this._document=Ke,this._detectionMode=Pe?.detectionMode||On.IMMEDIATE}monitor(re,ze=!1){const gt=(0,we.i8)(re);if(!this._platform.isBrowser||1!==gt.nodeType)return(0,L.of)();const Ke=(0,g.KT)(gt)||this._getDocument(),Pe=this._elementInfo.get(gt);if(Pe)return ze&&(Pe.checkChildren=!0),Pe.subject;const Re={checkChildren:ze,subject:new e.B,rootNode:Ke};return this._elementInfo.set(gt,Re),this._registerGlobalListeners(Re),Re.subject}stopMonitoring(re){const ze=(0,we.i8)(re),gt=this._elementInfo.get(ze);gt&&(gt.subject.complete(),this._setClasses(ze),this._elementInfo.delete(ze),this._removeGlobalListeners(gt))}focusVia(re,ze,gt){const Ke=(0,we.i8)(re);Ke===this._getDocument().activeElement?this._getClosestElementsInfo(Ke).forEach(([Re,$])=>this._originChanged(Re,ze,$)):(this._setOrigin(ze),"function"==typeof Ke.focus&&Ke.focus(gt))}ngOnDestroy(){this._elementInfo.forEach((re,ze)=>this.stopMonitoring(ze))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:re&&this._isLastInteractionFromInputLabel(re)?"mouse":"program"}_shouldBeAttributedToTouch(re){return this._detectionMode===On.EVENTUAL||!!re?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(re,ze){re.classList.toggle("cdk-focused",!!ze),re.classList.toggle("cdk-touch-focused","touch"===ze),re.classList.toggle("cdk-keyboard-focused","keyboard"===ze),re.classList.toggle("cdk-mouse-focused","mouse"===ze),re.classList.toggle("cdk-program-focused","program"===ze)}_setOrigin(re,ze=!1){this._ngZone.runOutsideAngular(()=>{this._origin=re,this._originFromTouchInteraction="touch"===re&&ze,this._detectionMode===On.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(re,ze){const gt=this._elementInfo.get(ze),Ke=(0,g.Fb)(re);!gt||!gt.checkChildren&&ze!==Ke||this._originChanged(ze,this._getFocusOrigin(Ke),gt)}_onBlur(re,ze){const gt=this._elementInfo.get(ze);!gt||gt.checkChildren&&re.relatedTarget instanceof Node&&ze.contains(re.relatedTarget)||(this._setClasses(ze),this._emitOrigin(gt,null))}_emitOrigin(re,ze){re.subject.observers.length&&this._ngZone.run(()=>re.subject.next(ze))}_registerGlobalListeners(re){if(!this._platform.isBrowser)return;const ze=re.rootNode,gt=this._rootNodeFocusListenerCount.get(ze)||0;gt||this._ngZone.runOutsideAngular(()=>{ze.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),ze.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ye)}),this._rootNodeFocusListenerCount.set(ze,gt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,x.Q)(this._stopInputModalityDetector)).subscribe(Ke=>{this._setOrigin(Ke,!0)}))}_removeGlobalListeners(re){const ze=re.rootNode;if(this._rootNodeFocusListenerCount.has(ze)){const gt=this._rootNodeFocusListenerCount.get(ze);gt>1?this._rootNodeFocusListenerCount.set(ze,gt-1):(ze.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),ze.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ye),this._rootNodeFocusListenerCount.delete(ze))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(re,ze,gt){this._setClasses(re,ze),this._emitOrigin(gt,ze),this._lastFocusOrigin=ze}_getClosestElementsInfo(re){const ze=[];return this._elementInfo.forEach((gt,Ke)=>{(Ke===re||gt.checkChildren&&Ke.contains(re))&&ze.push([Ke,gt])}),ze}_isLastInteractionFromInputLabel(re){const{_mostRecentTarget:ze,mostRecentModality:gt}=this._inputModalityDetector;if("mouse"!==gt||!ze||ze===re||"INPUT"!==re.nodeName&&"TEXTAREA"!==re.nodeName||re.disabled)return!1;const Ke=re.labels;if(Ke)for(let Pe=0;Pe{class Ee{constructor(re,ze){this._elementRef=re,this._focusMonitor=ze,this._focusOrigin=null,this.cdkFocusChange=new r.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const re=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(re,1===re.nodeType&&re.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ze=>{this._focusOrigin=ze,this.cdkFocusChange.emit(ze)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.rXU(r.aKT),r.rXU(ue))};static#t=this.\u0275dir=r.FsC({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return Ee})();var q=function(Ee){return Ee[Ee.NONE=0]="NONE",Ee[Ee.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",Ee[Ee.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",Ee}(q||{});const Xe="cdk-high-contrast-black-on-white",dt="cdk-high-contrast-white-on-black",at="cdk-high-contrast-active";let St=(()=>{class Ee{constructor(re,ze){this._platform=re,this._document=ze,this._breakpointSubscription=(0,r.WQX)(me.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return q.NONE;const re=this._document.createElement("div");re.style.backgroundColor="rgb(1,2,3)",re.style.position="absolute",this._document.body.appendChild(re);const ze=this._document.defaultView||window,gt=ze&&ze.getComputedStyle?ze.getComputedStyle(re):null,Ke=(gt&>.backgroundColor||"").replace(/ /g,"");switch(re.remove(),Ke){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return q.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return q.BLACK_ON_WHITE}return q.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const re=this._document.body.classList;re.remove(at,Xe,dt),this._hasCheckedHighContrastMode=!0;const ze=this.getHighContrastMode();ze===q.BLACK_ON_WHITE?re.add(at,Xe):ze===q.WHITE_ON_BLACK&&re.add(at,dt)}}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(g.OD),r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Qe=(()=>{class Ee{constructor(re){re._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(St))};static#t=this.\u0275mod=r.$C({type:Ee});static#n=this.\u0275inj=r.G2t({imports:[he]})}return Ee})()},8203:(Rt,De,c)=>{c.d(De,{dS:()=>L,jI:()=>A});var t=c(3953),r=c(177);const g=new t.nKC("cdk-dir-doc",{providedIn:"root",factory:function e(){return(0,t.WQX)(r.qQ)}}),M=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let L=(()=>{class w{constructor(F){this.value="ltr",this.change=new t.bkB,F&&(this.value=function G(w){const I=w?.toLowerCase()||"";return"auto"===I&&typeof navigator<"u"&&navigator?.language?M.test(navigator.language)?"rtl":"ltr":"rtl"===I?"rtl":"ltr"}((F.body?F.body.dir:null)||(F.documentElement?F.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(X){return new(X||w)(t.KVO(g,8))};static#t=this.\u0275prov=t.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=t.$C({type:w});static#n=this.\u0275inj=t.G2t({})}return w})()},3801:(Rt,De,c)=>{c.d(De,{B0:()=>e});var t=c(177),r=c(3953);class g{constructor(A,w){this._document=w;const I=this._textarea=this._document.createElement("textarea"),F=I.style;F.position="fixed",F.top=F.opacity="0",F.left="-999em",I.setAttribute("aria-hidden","true"),I.value=A,I.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(I)}copy(){const A=this._textarea;let w=!1;try{if(A){const I=this._document.activeElement;A.select(),A.setSelectionRange(0,A.value.length),w=this._document.execCommand("copy"),I&&I.focus()}}catch{}return w}destroy(){const A=this._textarea;A&&(A.remove(),this._textarea=void 0)}}let e=(()=>{class B{constructor(w){this._document=w}copy(w){const I=this.beginCopy(w),F=I.copy();return I.destroy(),F}beginCopy(w){return new g(w,this._document)}static#e=this.\u0275fac=function(I){return new(I||B)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})()},4085:(Rt,De,c)=>{c.d(De,{FG:()=>M,OE:()=>g,a1:()=>G,he:()=>r,i8:()=>L});var t=c(3953);function r(A){return null!=A&&"false"!=`${A}`}function g(A,w=0){return function e(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):w}function M(A){return Array.isArray(A)?A:[A]}function G(A){return null==A?"":"string"==typeof A?A:`${A}px`}function L(A){return A instanceof t.aKT?A.nativeElement:A}},1391:(Rt,De,c)=>{c.d(De,{Fb:()=>ue,T1:()=>dt});var t=c(3953),r=c(177),g=c(946),e=c(851),M=c(4085),G=c(6860),L=c(1413),B=c(8359),A=c(605),w=c(536),I=c(1985),F=c(7786),X=c(4412),V=c(6977),x=c(6354),ne=c(6697),J=c(8141),be=c(5558),Oe=c(9172),he=c(8203);function we(Re){const $=Re.cloneNode(!0),ce=$.querySelectorAll("[id]"),N=Re.nodeName.toLowerCase();$.removeAttribute("id");for(let ke=0;ke=N&&ce<=ke&&$>=ve&&$<=K}function E(Re,$,ce){Re.top+=$,Re.bottom=Re.top+Re.height,Re.left+=ce,Re.right=Re.left+Re.width}function S(Re,$,ce,N){const{top:ke,right:ve,bottom:K,left:U,width:ge,height:qe}=Re,rt=ge*$,Ft=qe*$;return N>ke-Ft&&NU-rt&&ce{this.positions.set(ce,{scrollPosition:{top:ce.scrollTop,left:ce.scrollLeft},clientRect:Z(ce)})})}handleScroll($){const ce=(0,G.Fb)($),N=this.positions.get(ce);if(!N)return null;const ke=N.scrollPosition;let ve,K;if(ce===this._document){const qe=this.getViewportScrollPosition();ve=qe.top,K=qe.left}else ve=ce.scrollTop,K=ce.scrollLeft;const U=ke.top-ve,ge=ke.left-K;return this.positions.forEach((qe,rt)=>{qe.clientRect&&ce!==rt&&ce.contains(rt)&&E(qe.clientRect,U,ge)}),ke.top=ve,ke.left=K,{top:U,left:ge}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Y(Re,$){const ce=Re.rootNodes;if(1===ce.length&&ce[0].nodeType===$.ELEMENT_NODE)return ce[0];const N=$.createElement("div");return ce.forEach(ke=>N.appendChild(ke)),N}function se(Re,$,ce){for(let N in $)if($.hasOwnProperty(N)){const ke=$[N];ke?Re.setProperty(N,ke,ce?.has(N)?"important":""):Re.removeProperty(N)}return Re}function Be(Re,$){const ce=$?"":"none";se(Re.style,{"touch-action":$?"":"none","-webkit-user-drag":$?"":"none","-webkit-tap-highlight-color":$?"":"transparent","user-select":ce,"-ms-user-select":ce,"-webkit-user-select":ce,"-moz-user-select":ce})}function Pt(Re,$,ce){se(Re.style,{position:$?"":"fixed",top:$?"":"0",opacity:$?"":"0",left:$?"":"-999em"},ce)}function vt(Re,$){return $&&"none"!=$?Re+" "+$:Re}function wt(Re,$){Re.style.width=`${$.width}px`,Re.style.height=`${$.height}px`,Re.style.transform=Le($.left,$.top)}function Le(Re,$){return`translate3d(${Math.round(Re)}px, ${Math.round($)}px, 0)`}function zt(Re){const $=Re.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Re)*$}function st(Re,$){return Re.getPropertyValue($).split(",").map(N=>N.trim())}const Ct=new Set(["position"]);class It{get element(){return this._preview}constructor($,ce,N,ke,ve,K,U,ge,qe){this._document=$,this._rootElement=ce,this._direction=N,this._initialDomRect=ke,this._previewTemplate=ve,this._previewClass=K,this._pickupPositionOnPage=U,this._initialTransform=ge,this._zIndex=qe}attach($){this._preview=this._createPreview(),$.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform($){this._preview.style.transform=$}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass($){this._preview.classList.add($)}getTransitionDuration(){return function xt(Re){const $=getComputedStyle(Re),ce=st($,"transition-property"),N=ce.find(U=>"transform"===U||"all"===U);if(!N)return 0;const ke=ce.indexOf(N),ve=st($,"transition-duration"),K=st($,"transition-delay");return zt(ve[ke])+zt(K[ke])}(this._preview)}addEventListener($,ce){this._preview.addEventListener($,ce)}removeEventListener($,ce){this._preview.removeEventListener($,ce)}_createPreview(){const $=this._previewTemplate,ce=this._previewClass,N=$?$.template:null;let ke;if(N&&$){const ve=$.matchSize?this._initialDomRect:null,K=$.viewContainer.createEmbeddedView(N,$.context);K.detectChanges(),ke=Y(K,this._document),this._previewEmbeddedView=K,$.matchSize?wt(ke,ve):ke.style.transform=Le(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else ke=we(this._rootElement),wt(ke,this._initialDomRect),this._initialTransform&&(ke.style.transform=this._initialTransform);return se(ke.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Ct),Be(ke,!1),ke.classList.add("cdk-drag-preview"),ke.setAttribute("popover","manual"),ke.setAttribute("dir",this._direction),ce&&(Array.isArray(ce)?ce.forEach(ve=>ke.classList.add(ve)):ke.classList.add(ce)),ke}}const Tt=(0,G.BQ)({passive:!0}),en=(0,G.BQ)({passive:!1}),jt=(0,G.BQ)({passive:!1,capture:!0}),fn=new Set(["position"]);class Hn{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled($){$!==this._disabled&&(this._disabled=$,this._toggleNativeDragInteractions(),this._handles.forEach(ce=>Be(ce,$)))}constructor($,ce,N,ke,ve,K){this._config=ce,this._document=N,this._ngZone=ke,this._viewportRuler=ve,this._dragDropRegistry=K,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=(0,t.vPA)(!1),this._moveEvents=new L.B,this._pointerMoveSubscription=B.yU.EMPTY,this._pointerUpSubscription=B.yU.EMPTY,this._scrollSubscription=B.yU.EMPTY,this._resizeSubscription=B.yU.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 L.B,this.started=new L.B,this.released=new L.B,this.ended=new L.B,this.entered=new L.B,this.exited=new L.B,this.dropped=new L.B,this.moved=this._moveEvents,this._pointerDown=U=>{if(this.beforeStarted.next(),this._handles.length){const ge=this._getTargetHandle(U);ge&&!this._disabledHandles.has(ge)&&!this.disabled&&this._initializeDragSequence(ge,U)}else this.disabled||this._initializeDragSequence(this._rootElement,U)},this._pointerMove=U=>{const ge=this._getPointerPositionOnPage(U);if(!this._hasStartedDragging()){if(Math.abs(ge.x-this._pickupPositionOnPage.x)+Math.abs(ge.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Cn=Date.now()>=this._dragStartTime+this._getDragStartDelay(U),Zn=this._dropContainer;if(!Cn)return void this._endDragSequence(U);(!Zn||!Zn.isDragging()&&!Zn.isReceiving())&&(U.cancelable&&U.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(U)))}return}U.cancelable&&U.preventDefault();const qe=this._getConstrainedPointerPosition(ge);if(this._hasMoved=!0,this._lastKnownPointerPosition=ge,this._updatePointerDirectionDelta(qe),this._dropContainer)this._updateActiveDropContainer(qe,ge);else{const rt=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,Ft=this._activeTransform;Ft.x=qe.x-rt.x+this._passiveTransform.x,Ft.y=qe.y-rt.y+this._passiveTransform.y,this._applyRootElementTransform(Ft.x,Ft.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:qe,event:U,distance:this._getDragDistance(qe),delta:this._pointerDirectionDelta})})},this._pointerUp=U=>{this._endDragSequence(U)},this._nativeDragStart=U=>{if(this._handles.length){const ge=this._getTargetHandle(U);ge&&!this._disabledHandles.has(ge)&&!this.disabled&&U.preventDefault()}else this.disabled||U.preventDefault()},this.withRootElement($).withParent(ce.parentDragRef||null),this._parentPositions=new R(N),K.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles($){this._handles=$.map(N=>(0,M.i8)(N)),this._handles.forEach(N=>Be(N,this.disabled)),this._toggleNativeDragInteractions();const ce=new Set;return this._disabledHandles.forEach(N=>{this._handles.indexOf(N)>-1&&ce.add(N)}),this._disabledHandles=ce,this}withPreviewTemplate($){return this._previewTemplate=$,this}withPlaceholderTemplate($){return this._placeholderTemplate=$,this}withRootElement($){const ce=(0,M.i8)($);return ce!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ce.addEventListener("mousedown",this._pointerDown,en),ce.addEventListener("touchstart",this._pointerDown,Tt),ce.addEventListener("dragstart",this._nativeDragStart,en)}),this._initialTransform=void 0,this._rootElement=ce),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement($){return this._boundaryElement=$?(0,M.i8)($):null,this._resizeSubscription.unsubscribe(),$&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent($){return this._parentDragRef=$,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),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($){!this._disabledHandles.has($)&&this._handles.indexOf($)>-1&&(this._disabledHandles.add($),Be($,!0))}enableHandle($){this._disabledHandles.has($)&&(this._disabledHandles.delete($),Be($,this.disabled))}withDirection($){return this._direction=$,this}_withDropContainer($){this._dropContainer=$}getFreeDragPosition(){const $=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:$.x,y:$.y}}setFreeDragPosition($){return this._activeTransform={x:0,y:0},this._passiveTransform.x=$.x,this._passiveTransform.y=$.y,this._dropContainer||this._applyRootElementTransform($.x,$.y),this}withPreviewContainer($){return this._previewContainer=$,this}_sortFromLastPointerPosition(){const $=this._lastKnownPointerPosition;$&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition($),$)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",At,jt)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence($){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging()))if(this.released.next({source:this,event:$}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts($),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ce=this._getPointerPositionOnPage($);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ce),dropPoint:ce,event:$})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence($){bt($)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ce=this._getShadowRoot(),N=this._dropContainer;if(ce&&this._ngZone.runOutsideAngular(()=>{ce.addEventListener("selectstart",At,jt)}),N){const ke=this._rootElement,ve=ke.parentNode,K=this._placeholder=this._createPlaceholderElement(),U=this._anchor=this._anchor||this._document.createComment("");ve.insertBefore(U,ke),this._initialTransform=ke.style.transform||"",this._preview=new It(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(ve,ce)),Pt(ke,!1,fn),this._document.body.appendChild(ve.replaceChild(K,ke)),this.started.next({source:this,event:$}),N.start(),this._initialContainer=N,this._initialIndex=N.getItemIndex(this)}else this.started.next({source:this,event:$}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(N?N.getScrollableParents():[])}_initializeDragSequence($,ce){this._parentDragRef&&ce.stopPropagation();const N=this.isDragging(),ke=bt(ce),ve=!ke&&0!==ce.button,K=this._rootElement,U=(0,G.Fb)(ce),ge=!ke&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),qe=ke?(0,e.w6)(ce):(0,e._G)(ce);if(U&&U.draggable&&"mousedown"===ce.type&&ce.preventDefault(),N||ve||ge||qe)return;if(this._handles.length){const on=K.style;this._rootElementTapHighlight=on.webkitTapHighlightColor||"",on.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=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(on=>this._updateOnScroll(on)),this._boundaryElement&&(this._boundaryRect=Z(this._boundaryElement));const rt=this._previewTemplate;this._pickupPositionInElement=rt&&rt.template&&!rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,$,ce);const Ft=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ce);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Ft.x,y:Ft.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ce)}_cleanupDragArtifacts($){Pt(this._rootElement,!0,fn),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ce=this._dropContainer,N=ce.getItemIndex(this),ke=this._getPointerPositionOnPage($),ve=this._getDragDistance(ke),K=ce._isOverContainer(ke.x,ke.y);this.ended.next({source:this,distance:ve,dropPoint:ke,event:$}),this.dropped.next({item:this,currentIndex:N,previousIndex:this._initialIndex,container:ce,previousContainer:this._initialContainer,isPointerOverContainer:K,distance:ve,dropPoint:ke,event:$}),ce.drop(this,N,this._initialIndex,this._initialContainer,K,ve,ke,$),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:$,y:ce},{x:N,y:ke}){let ve=this._initialContainer._getSiblingContainerFromPosition(this,$,ce);!ve&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer($,ce)&&(ve=this._initialContainer),ve&&ve!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ve,this._dropContainer.enter(this,$,ce,ve===this._initialContainer&&ve.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ve,currentIndex:ve.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(N,ke),this._dropContainer._sortItem(this,$,ce,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform($,ce):this._applyPreviewTransform($-this._pickupPositionInElement.x,ce-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const $=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform($.left,$.top);const ce=this._preview.getTransitionDuration();return 0===ce?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(N=>{const ke=K=>{(!K||this._preview&&(0,G.Fb)(K)===this._preview.element&&"transform"===K.propertyName)&&(this._preview?.removeEventListener("transitionend",ke),N(),clearTimeout(ve))},ve=setTimeout(ke,1.5*ce);this._preview.addEventListener("transitionend",ke)}))}_createPlaceholderElement(){const $=this._placeholderTemplate,ce=$?$.template:null;let N;return ce?(this._placeholderRef=$.viewContainer.createEmbeddedView(ce,$.context),this._placeholderRef.detectChanges(),N=Y(this._placeholderRef,this._document)):N=we(this._rootElement),N.style.pointerEvents="none",N.classList.add("cdk-drag-placeholder"),N}_getPointerPositionInElement($,ce,N){const ke=ce===this._rootElement?null:ce,ve=ke?ke.getBoundingClientRect():$,K=bt(N)?N.targetTouches[0]:N,U=this._getViewportScrollPosition();return{x:ve.left-$.left+(K.pageX-ve.left-U.left),y:ve.top-$.top+(K.pageY-ve.top-U.top)}}_getPointerPositionOnPage($){const ce=this._getViewportScrollPosition(),N=bt($)?$.touches[0]||$.changedTouches[0]||{pageX:0,pageY:0}:$,ke=N.pageX-ce.left,ve=N.pageY-ce.top;if(this._ownerSVGElement){const K=this._ownerSVGElement.getScreenCTM();if(K){const U=this._ownerSVGElement.createSVGPoint();return U.x=ke,U.y=ve,U.matrixTransform(K.inverse())}}return{x:ke,y:ve}}_getConstrainedPointerPosition($){const ce=this._dropContainer?this._dropContainer.lockAxis:null;let{x:N,y:ke}=this.constrainPosition?this.constrainPosition($,this,this._initialDomRect,this._pickupPositionInElement):$;if("x"===this.lockAxis||"x"===ce?ke=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===ce)&&(N=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:ve,y:K}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,U=this._boundaryRect,{width:ge,height:qe}=this._getPreviewRect(),rt=U.top+K,Ft=U.bottom-(qe-K);N=zn(N,U.left+ve,U.right-(ge-ve)),ke=zn(ke,rt,Ft)}return{x:N,y:ke}}_updatePointerDirectionDelta($){const{x:ce,y:N}=$,ke=this._pointerDirectionDelta,ve=this._pointerPositionAtLastDirectionChange,K=Math.abs(ce-ve.x),U=Math.abs(N-ve.y);return K>this._config.pointerDirectionChangeThreshold&&(ke.x=ce>ve.x?1:-1,ve.x=ce),U>this._config.pointerDirectionChangeThreshold&&(ke.y=N>ve.y?1:-1,ve.y=N),ke}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const $=this._handles.length>0||!this.isDragging();$!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=$,Be(this._rootElement,$))}_removeRootElementListeners($){$.removeEventListener("mousedown",this._pointerDown,en),$.removeEventListener("touchstart",this._pointerDown,Tt),$.removeEventListener("dragstart",this._nativeDragStart,en)}_applyRootElementTransform($,ce){const N=Le($,ce),ke=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=ke.transform&&"none"!=ke.transform?ke.transform:""),ke.transform=vt(N,this._initialTransform)}_applyPreviewTransform($,ce){const N=this._previewTemplate?.template?void 0:this._initialTransform,ke=Le($,ce);this._preview.setTransform(vt(ke,N))}_getDragDistance($){const ce=this._pickupPositionOnPage;return ce?{x:$.x-ce.x,y:$.y-ce.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:$,y:ce}=this._passiveTransform;if(0===$&&0===ce||this.isDragging()||!this._boundaryElement)return;const N=this._rootElement.getBoundingClientRect(),ke=this._boundaryElement.getBoundingClientRect();if(0===ke.width&&0===ke.height||0===N.width&&0===N.height)return;const ve=ke.left-N.left,K=N.right-ke.right,U=ke.top-N.top,ge=N.bottom-ke.bottom;ke.width>N.width?(ve>0&&($+=ve),K>0&&($-=K)):$=0,ke.height>N.height?(U>0&&(ce+=U),ge>0&&(ce-=ge)):ce=0,($!==this._passiveTransform.x||ce!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ce,x:$})}_getDragStartDelay($){const ce=this.dragStartDelay;return"number"==typeof ce?ce:bt($)?ce.touch:ce?ce.mouse:0}_updateOnScroll($){const ce=this._parentPositions.handleScroll($);if(ce){const N=(0,G.Fb)($);this._boundaryRect&&N!==this._boundaryElement&&N.contains(this._boundaryElement)&&E(this._boundaryRect,ce.top,ce.left),this._pickupPositionOnPage.x+=ce.left,this._pickupPositionOnPage.y+=ce.top,this._dropContainer||(this._activeTransform.x-=ce.left,this._activeTransform.y-=ce.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,G.KT)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint($,ce){const N=this._previewContainer||"global";if("parent"===N)return $;if("global"===N){const ke=this._document;return ce||ke.fullscreenElement||ke.webkitFullscreenElement||ke.mozFullScreenElement||ke.msFullscreenElement||ke.body}return(0,M.i8)(N)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle($){return this._handles.find(ce=>$.target&&($.target===ce||ce.contains($.target)))}}function zn(Re,$,ce){return Math.max($,Math.min(ce,Re))}function bt(Re){return"t"===Re.type[0]}function At(Re){Re.preventDefault()}function Et(Re,$,ce){const N=Ue($,Re.length-1),ke=Ue(ce,Re.length-1);if(N===ke)return;const ve=Re[N],K=ke0)return null;const U="horizontal"===this.orientation,ge=ve.findIndex(Gn=>Gn.drag===$),qe=ve[K],Ft=qe.clientRect,on=ge>K?1:-1,Cn=this._getItemOffsetPx(ve[ge].clientRect,Ft,on),Zn=this._getSiblingOffsetPx(ge,ve,on),jn=ve.slice();return Et(ve,ge,K),ve.forEach((Gn,zi)=>{if(jn[zi]===Gn)return;const Oi=Gn.drag===$,lo=Oi?Cn:Zn,Zi=Oi?$.getPlaceholderElement():Gn.drag.getRootElement();Gn.offset+=lo,U?(Zi.style.transform=vt(`translate3d(${Math.round(Gn.offset)}px, 0, 0)`,Gn.initialTransform),E(Gn.clientRect,0,lo)):(Zi.style.transform=vt(`translate3d(0, ${Math.round(Gn.offset)}px, 0)`,Gn.initialTransform),E(Gn.clientRect,lo,0))}),this._previousSwap.overlaps=pe(Ft,ce,N),this._previousSwap.drag=qe.drag,this._previousSwap.delta=U?ke.x:ke.y,{previousIndex:ge,currentIndex:K}}enter($,ce,N,ke){const ve=null==ke||ke<0?this._getItemIndexFromPointerPosition($,ce,N):ke,K=this._activeDraggables,U=K.indexOf($),ge=$.getPlaceholderElement();let qe=K[ve];if(qe===$&&(qe=K[ve+1]),!qe&&(null==ve||-1===ve||ve-1&&K.splice(U,1),qe&&!this._dragDropRegistry.isDragging(qe)){const rt=qe.getRootElement();rt.parentElement.insertBefore(ge,rt),K.splice(ve,0,$)}else this._element.appendChild(ge),K.push($);ge.style.transform="",this._cacheItemPositions()}withItems($){this._activeDraggables=$.slice(),this._cacheItemPositions()}withSortPredicate($){this._sortPredicate=$}reset(){this._activeDraggables?.forEach($=>{const ce=$.getRootElement();if(ce){const N=this._itemPositions.find(ke=>ke.drag===$)?.initialTransform;ce.style.transform=N||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex($){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(N=>N.drag===$)}updateOnScroll($,ce){this._itemPositions.forEach(({clientRect:N})=>{E(N,$,ce)}),this._itemPositions.forEach(({drag:N})=>{this._dragDropRegistry.isDragging(N)&&N._sortFromLastPointerPosition()})}withElementContainer($){this._element=$}_cacheItemPositions(){const $="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(ce=>{const N=ce.getVisibleElement();return{drag:ce,offset:0,initialTransform:N.style.transform||"",clientRect:Z(N)}}).sort((ce,N)=>$?ce.clientRect.left-N.clientRect.left:ce.clientRect.top-N.clientRect.top)}_getItemOffsetPx($,ce,N){const ke="horizontal"===this.orientation;let ve=ke?ce.left-$.left:ce.top-$.top;return-1===N&&(ve+=ke?ce.width-$.width:ce.height-$.height),ve}_getSiblingOffsetPx($,ce,N){const ke="horizontal"===this.orientation,ve=ce[$].clientRect,K=ce[$+-1*N];let U=ve[ke?"width":"height"]*N;if(K){const ge=ke?"left":"top",qe=ke?"right":"bottom";-1===N?U-=K.clientRect[ge]-ve[qe]:U+=ve[ge]-K.clientRect[qe]}return U}_shouldEnterAsFirstChild($,ce){if(!this._activeDraggables.length)return!1;const N=this._itemPositions,ke="horizontal"===this.orientation;if(N[0].drag!==this._activeDraggables[0]){const K=N[N.length-1].clientRect;return ke?$>=K.right:ce>=K.bottom}{const K=N[0].clientRect;return ke?$<=K.left:ce<=K.top}}_getItemIndexFromPointerPosition($,ce,N,ke){const ve="horizontal"===this.orientation,K=this._itemPositions.findIndex(({drag:U,clientRect:ge})=>U!==$&&((!ke||U!==this._previousSwap.drag||!this._previousSwap.overlaps||(ve?ke.x:ke.y)!==this._previousSwap.delta)&&(ve?ce>=Math.floor(ge.left)&&ce=Math.floor(ge.top)&&Nge?rt.after(qe):rt.before(qe),Et(this._activeItems,ge,ve);const Ft=this._getRootNode().elementFromPoint(ce,N);return K.deltaX=ke.x,K.deltaY=ke.y,K.drag=U,K.overlaps=rt===Ft||rt.contains(Ft),{previousIndex:ge,currentIndex:ve}}enter($,ce,N,ke){let ve=null==ke||ke<0?this._getItemIndexFromPointerPosition($,ce,N):ke;-1===ve&&(ve=this._getClosestItemIndexToPointer($,ce,N));const K=this._activeItems[ve],U=this._activeItems.indexOf($);U>-1&&this._activeItems.splice(U,1),K&&!this._dragDropRegistry.isDragging(K)?(this._activeItems.splice(ve,0,$),K.getRootElement().before($.getPlaceholderElement())):(this._activeItems.push($),this._element.appendChild($.getPlaceholderElement()))}withItems($){this._activeItems=$.slice()}withSortPredicate($){this._sortPredicate=$}reset(){const $=this._element,ce=this._previousSwap;for(let N=this._relatedNodes.length-1;N>-1;N--){const[ke,ve]=this._relatedNodes[N];ke.parentNode===$&&ke.nextSibling!==ve&&(null===ve?$.appendChild(ke):ve.parentNode===$&&$.insertBefore(ke,ve))}this._relatedNodes=[],this._activeItems=[],ce.drag=null,ce.deltaX=ce.deltaY=0,ce.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex($){return this._activeItems.indexOf($)}updateOnScroll(){this._activeItems.forEach($=>{this._dragDropRegistry.isDragging($)&&$._sortFromLastPointerPosition()})}withElementContainer($){$!==this._element&&(this._element=$,this._rootNode=void 0)}_getItemIndexFromPointerPosition($,ce,N){const ke=this._getRootNode().elementFromPoint(Math.floor(ce),Math.floor(N)),ve=ke?this._activeItems.findIndex(K=>{const U=K.getRootElement();return ke===U||U.contains(ke)}):-1;return-1!==ve&&this._sortPredicate(ve,$)?ve:-1}_getRootNode(){return this._rootNode||(this._rootNode=(0,G.KT)(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer($,ce,N){if(0===this._activeItems.length)return-1;if(1===this._activeItems.length)return 0;let ke=1/0,ve=-1;for(let K=0;K!0,this.sortPredicate=()=>!0,this.beforeStarted=new L.B,this.entered=new L.B,this.exited=new L.B,this.dropped=new L.B,this.sorted=new L.B,this.receivingStarted=new L.B,this.receivingStopped=new L.B,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=B.yU.EMPTY,this._verticalScrollDirection=Fe.NONE,this._horizontalScrollDirection=et.NONE,this._stopScrollTimers=new L.B,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),(0,A.Y)(0,w.X).pipe((0,V.Q)(this._stopScrollTimers)).subscribe(()=>{const U=this._scrollNode,ge=this.autoScrollStep;this._verticalScrollDirection===Fe.UP?U.scrollBy(0,-ge):this._verticalScrollDirection===Fe.DOWN&&U.scrollBy(0,ge),this._horizontalScrollDirection===et.LEFT?U.scrollBy(-ge,0):this._horizontalScrollDirection===et.RIGHT&&U.scrollBy(ge,0)})};const K=this.element=(0,M.i8)($);this._document=N,this.withOrientation("vertical").withElementContainer(K),ce.registerDropContainer(this),this._parentPositions=new R(N)}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($,ce,N,ke){this._draggingStarted(),null==ke&&this.sortingDisabled&&(ke=this._draggables.indexOf($)),this._sortStrategy.enter($,ce,N,ke),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:$,container:this,currentIndex:this.getItemIndex($)})}exit($){this._reset(),this.exited.next({item:$,container:this})}drop($,ce,N,ke,ve,K,U,ge={}){this._reset(),this.dropped.next({item:$,currentIndex:ce,previousIndex:N,container:this,previousContainer:ke,isPointerOverContainer:ve,distance:K,dropPoint:U,event:ge})}withItems($){const ce=this._draggables;return this._draggables=$,$.forEach(N=>N._withDropContainer(this)),this.isDragging()&&(ce.filter(ke=>ke.isDragging()).every(ke=>-1===$.indexOf(ke))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection($){return this._direction=$,this._sortStrategy instanceof Ae&&(this._sortStrategy.direction=$),this}connectedTo($){return this._siblings=$.slice(),this}withOrientation($){if("mixed"===$)this._sortStrategy=new ie(this._document,this._dragDropRegistry);else{const ce=new Ae(this._dragDropRegistry);ce.direction=this._direction,ce.orientation=$,this._sortStrategy=ce}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((ce,N)=>this.sortPredicate(ce,N,this)),this}withScrollableParents($){const ce=this._container;return this._scrollableElements=-1===$.indexOf(ce)?[ce,...$]:$.slice(),this}withElementContainer($){if($===this._container)return this;(0,M.i8)(this.element);const N=this._scrollableElements.indexOf(this._container),ke=this._scrollableElements.indexOf($);return N>-1&&this._scrollableElements.splice(N,1),ke>-1&&this._scrollableElements.splice(ke,1),this._sortStrategy&&this._sortStrategy.withElementContainer($),this._cachedShadowRoot=null,this._scrollableElements.unshift($),this._container=$,this}getScrollableParents(){return this._scrollableElements}getItemIndex($){return this._isDragging?this._sortStrategy.getItemIndex($):this._draggables.indexOf($)}isReceiving(){return this._activeSiblings.size>0}_sortItem($,ce,N,ke){if(this.sortingDisabled||!this._domRect||!S(this._domRect,.05,ce,N))return;const ve=this._sortStrategy.sort($,ce,N,ke);ve&&this.sorted.next({previousIndex:ve.previousIndex,currentIndex:ve.currentIndex,container:this,item:$})}_startScrollingIfNecessary($,ce){if(this.autoScrollDisabled)return;let N,ke=Fe.NONE,ve=et.NONE;if(this._parentPositions.positions.forEach((K,U)=>{U===this._document||!K.clientRect||N||S(K.clientRect,.05,$,ce)&&([ke,ve]=function Tn(Re,$,ce,N,ke){const ve=Kt($,ke),K=cn($,N);let U=Fe.NONE,ge=et.NONE;if(ve){const qe=Re.scrollTop;ve===Fe.UP?qe>0&&(U=Fe.UP):Re.scrollHeight-qe>Re.clientHeight&&(U=Fe.DOWN)}if(K){const qe=Re.scrollLeft;"rtl"===ce?K===et.RIGHT?qe<0&&(ge=et.RIGHT):Re.scrollWidth+qe>Re.clientWidth&&(ge=et.LEFT):K===et.LEFT?qe>0&&(ge=et.LEFT):Re.scrollWidth-qe>Re.clientWidth&&(ge=et.RIGHT)}return[U,ge]}(U,K.clientRect,this._direction,$,ce),(ke||ve)&&(N=U))}),!ke&&!ve){const{width:K,height:U}=this._viewportRuler.getViewportSize(),ge={width:K,height:U,top:0,right:K,bottom:U,left:0};ke=Kt(ge,ce),ve=cn(ge,$),N=window}N&&(ke!==this._verticalScrollDirection||ve!==this._horizontalScrollDirection||N!==this._scrollNode)&&(this._verticalScrollDirection=ke,this._horizontalScrollDirection=ve,this._scrollNode=N,(ke||ve)&&N?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const $=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=$.msScrollSnapType||$.scrollSnapType||"",$.scrollSnapType=$.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;const $=this._container.style;$.scrollSnapType=$.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(ce=>ce._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer($,ce){return null!=this._domRect&&pe(this._domRect,$,ce)}_getSiblingContainerFromPosition($,ce,N){return this._siblings.find(ke=>ke._canReceive($,ce,N))}_canReceive($,ce,N){if(!this._domRect||!pe(this._domRect,ce,N)||!this.enterPredicate($,this))return!1;const ke=this._getShadowRoot().elementFromPoint(ce,N);return!!ke&&(ke===this._container||this._container.contains(ke))}_startReceiving($,ce){const N=this._activeSiblings;!N.has($)&&ce.every(ke=>this.enterPredicate(ke,this)||this._draggables.indexOf(ke)>-1)&&(N.add($),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:$,receiver:this,items:ce}))}_stopReceiving($){this._activeSiblings.delete($),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:$,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe($=>{if(this.isDragging()){const ce=this._parentPositions.handleScroll($);ce&&this._sortStrategy.updateOnScroll(ce.top,ce.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const $=(0,G.KT)(this._container);this._cachedShadowRoot=$||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const $=this._sortStrategy.getActiveItemsSnapshot().filter(ce=>ce.isDragging());this._siblings.forEach(ce=>ce._startReceiving(this,$))}}function Kt(Re,$){const{top:ce,bottom:N,height:ke}=Re,ve=.05*ke;return $>=ce-ve&&$<=ce+ve?Fe.UP:$>=N-ve&&$<=N+ve?Fe.DOWN:Fe.NONE}function cn(Re,$){const{left:ce,right:N,width:ke}=Re,ve=.05*ke;return $>=ce-ve&&$<=ce+ve?et.LEFT:$>=N-ve&&$<=N+ve?et.RIGHT:et.NONE}const Wn=(0,G.BQ)({passive:!1,capture:!0}),kn=new Set;let Vn=(()=>{class Re{static#e=this.\u0275fac=function(N){return new(N||Re)};static#t=this.\u0275cmp=t.VBU({type:Re,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[t.aNF],decls:0,vars:0,template:function(N,ke){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}return Re})(),Un=(()=>{class Re{constructor(ce,N){this._ngZone=ce,this._appRef=(0,t.WQX)(t.o8S),this._environmentInjector=(0,t.WQX)(t.uvJ),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=(0,t.vPA)([]),this._globalListeners=new Map,this._draggingPredicate=ke=>ke.isDragging(),this.pointerMove=new L.B,this.pointerUp=new L.B,this.scroll=new L.B,this._preventDefaultWhileDragging=ke=>{this._activeDragInstances().length>0&&ke.preventDefault()},this._persistentTouchmoveListener=ke=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&ke.preventDefault(),this.pointerMove.next(ke))},this._document=N}registerDropContainer(ce){this._dropInstances.has(ce)||this._dropInstances.add(ce)}registerDragItem(ce){this._dragInstances.add(ce),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Wn)})}removeDropContainer(ce){this._dropInstances.delete(ce)}removeDragItem(ce){this._dragInstances.delete(ce),this.stopDragging(ce),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Wn)}startDragging(ce,N){if(!(this._activeDragInstances().indexOf(ce)>-1)&&(this._loadResets(),this._activeDragInstances.update(ke=>[...ke,ce]),1===this._activeDragInstances().length)){const ke=N.type.startsWith("touch");this._globalListeners.set(ke?"touchend":"mouseup",{handler:ve=>this.pointerUp.next(ve),options:!0}).set("scroll",{handler:ve=>this.scroll.next(ve),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Wn}),ke||this._globalListeners.set("mousemove",{handler:ve=>this.pointerMove.next(ve),options:Wn}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ve,K)=>{this._document.addEventListener(K,ve.handler,ve.options)})})}}stopDragging(ce){this._activeDragInstances.update(N=>{const ke=N.indexOf(ce);return ke>-1?(N.splice(ke,1),[...N]):N}),0===this._activeDragInstances().length&&this._clearGlobalListeners()}isDragging(ce){return this._activeDragInstances().indexOf(ce)>-1}scrolled(ce){const N=[this.scroll];return ce&&ce!==this._document&&N.push(new I.c(ke=>this._ngZone.runOutsideAngular(()=>{const K=U=>{this._activeDragInstances().length&&ke.next(U)};return ce.addEventListener("scroll",K,!0),()=>{ce.removeEventListener("scroll",K,!0)}}))),(0,F.h)(...N)}ngOnDestroy(){this._dragInstances.forEach(ce=>this.removeDragItem(ce)),this._dropInstances.forEach(ce=>this.removeDropContainer(ce)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ce,N)=>{this._document.removeEventListener(N,ce.handler,ce.options)}),this._globalListeners.clear()}_loadResets(){if(!kn.has(this._appRef)){kn.add(this._appRef);const ce=(0,t.a0P)(Vn,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{kn.delete(this._appRef),0===kn.size&&ce.destroy()})}}static#e=this.\u0275fac=function(N){return new(N||Re)(t.KVO(t.SKi),t.KVO(r.qQ))};static#t=this.\u0275prov=t.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();const dn={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qt=(()=>{class Re{constructor(ce,N,ke,ve){this._document=ce,this._ngZone=N,this._viewportRuler=ke,this._dragDropRegistry=ve}createDrag(ce,N=dn){return new Hn(ce,N,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ce){return new ut(ce,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(N){return new(N||Re)(t.KVO(r.qQ),t.KVO(t.SKi),t.KVO(g.Xj),t.KVO(Un))};static#t=this.\u0275prov=t.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();const On=new t.nKC("CDK_DRAG_PARENT"),Ye=new t.nKC("CdkDragHandle");let ue=(()=>{class Re{get disabled(){return this._disabled}set disabled(ce){this._disabled=ce,this._stateChanges.next(this)}constructor(ce,N){this.element=ce,this._parentDrag=N,this._stateChanges=new L.B,this._disabled=!1,N?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static#e=this.\u0275fac=function(N){return new(N||Re)(t.rXU(t.aKT),t.rXU(On,12))};static#t=this.\u0275dir=t.FsC({type:Re,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",t.L39]},standalone:!0,features:[t.Jv_([{provide:Ye,useExisting:Re}]),t.GFd]})}return Re})();const te=new t.nKC("CDK_DRAG_CONFIG"),Xe=new t.nKC("CdkDropList");let dt=(()=>{class Re{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ce){this._disabled=ce,this._dragRef.disabled=this._disabled}constructor(ce,N,ke,ve,K,U,ge,qe,rt,Ft,on){this.element=ce,this.dropContainer=N,this._ngZone=ve,this._viewContainerRef=K,this._dir=ge,this._changeDetectorRef=rt,this._selfHandle=Ft,this._parentDrag=on,this._destroyed=new L.B,this._handles=new X.t([]),this.started=new t.bkB,this.released=new t.bkB,this.ended=new t.bkB,this.entered=new t.bkB,this.exited=new t.bkB,this.dropped=new t.bkB,this.moved=new I.c(Cn=>{const Zn=this._dragRef.moved.pipe((0,x.T)(jn=>({source:this,pointerPosition:jn.pointerPosition,event:jn.event,delta:jn.delta,distance:jn.distance}))).subscribe(Cn);return()=>{Zn.unsubscribe()}}),this._injector=(0,t.WQX)(t.zZn),this._dragRef=qe.createDrag(ce,{dragStartThreshold:U&&null!=U.dragStartThreshold?U.dragStartThreshold:5,pointerDirectionChangeThreshold:U&&null!=U.pointerDirectionChangeThreshold?U.pointerDirectionChangeThreshold:5,zIndex:U?.zIndex}),this._dragRef.data=this,Re._dragInstances.push(this),U&&this._assignDefaults(U),N&&(this._dragRef._withDropContainer(N._dropListRef),N.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(ce){this._dragRef.setFreeDragPosition(ce)}ngAfterViewInit(){(0,t.mal)(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(ce){const N=ce.rootElementSelector,ke=ce.freeDragPosition;N&&!N.firstChange&&this._updateRootElement(),ke&&!ke.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ce=Re._dragInstances.indexOf(this);ce>-1&&Re._dragInstances.splice(ce,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(ce){const N=this._handles.getValue();N.push(ce),this._handles.next(N)}_removeHandle(ce){const N=this._handles.getValue(),ke=N.indexOf(ce);ke>-1&&(N.splice(ke,1),this._handles.next(N))}_setPreviewTemplate(ce){this._previewTemplate=ce}_resetPreviewTemplate(ce){ce===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(ce){this._placeholderTemplate=ce}_resetPlaceholderTemplate(ce){ce===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const ce=this.element.nativeElement;let N=ce;this.rootElementSelector&&(N=void 0!==ce.closest?ce.closest(this.rootElementSelector):ce.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(N||ce)}_getBoundaryElement(){const ce=this.boundaryElement;return ce?"string"==typeof ce?this.element.nativeElement.closest(ce):(0,M.i8)(ce):null}_syncInputs(ce){ce.beforeStarted.subscribe(()=>{if(!ce.isDragging()){const N=this._dir,ke=this.dragStartDelay,ve=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,K=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ce.disabled=this.disabled,ce.lockAxis=this.lockAxis,ce.dragStartDelay="object"==typeof ke&&ke?ke:(0,M.OE)(ke),ce.constrainPosition=this.constrainPosition,ce.previewClass=this.previewClass,ce.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ve).withPreviewTemplate(K).withPreviewContainer(this.previewContainer||"global"),N&&ce.withDirection(N.value)}}),ce.beforeStarted.pipe((0,ne.s)(1)).subscribe(()=>{if(this._parentDrag)return void ce.withParent(this._parentDrag._dragRef);let N=this.element.nativeElement.parentElement;for(;N;){if(N.classList.contains("cdk-drag")){ce.withParent(Re._dragInstances.find(ke=>ke.element.nativeElement===N)?._dragRef||null);break}N=N.parentElement}})}_handleEvents(ce){ce.started.subscribe(N=>{this.started.emit({source:this,event:N.event}),this._changeDetectorRef.markForCheck()}),ce.released.subscribe(N=>{this.released.emit({source:this,event:N.event})}),ce.ended.subscribe(N=>{this.ended.emit({source:this,distance:N.distance,dropPoint:N.dropPoint,event:N.event}),this._changeDetectorRef.markForCheck()}),ce.entered.subscribe(N=>{this.entered.emit({container:N.container.data,item:this,currentIndex:N.currentIndex})}),ce.exited.subscribe(N=>{this.exited.emit({container:N.container.data,item:this})}),ce.dropped.subscribe(N=>{this.dropped.emit({previousIndex:N.previousIndex,currentIndex:N.currentIndex,previousContainer:N.previousContainer.data,container:N.container.data,isPointerOverContainer:N.isPointerOverContainer,item:this,distance:N.distance,dropPoint:N.dropPoint,event:N.event})})}_assignDefaults(ce){const{lockAxis:N,dragStartDelay:ke,constrainPosition:ve,previewClass:K,boundaryElement:U,draggingDisabled:ge,rootElementSelector:qe,previewContainer:rt}=ce;this.disabled=ge??!1,this.dragStartDelay=ke||0,N&&(this.lockAxis=N),ve&&(this.constrainPosition=ve),K&&(this.previewClass=K),U&&(this.boundaryElement=U),qe&&(this.rootElementSelector=qe),rt&&(this.previewContainer=rt)}_setupHandlesListener(){this._handles.pipe((0,J.M)(ce=>{const N=ce.map(ke=>ke.element);this._selfHandle&&this.rootElementSelector&&N.push(this.element),this._dragRef.withHandles(N)}),(0,be.n)(ce=>(0,F.h)(...ce.map(N=>N._stateChanges.pipe((0,Oe.Z)(N))))),(0,V.Q)(this._destroyed)).subscribe(ce=>{const N=this._dragRef,ke=ce.element.nativeElement;ce.disabled?N.disableHandle(ke):N.enableHandle(ke)})}static#t=this.\u0275fac=function(N){return new(N||Re)(t.rXU(t.aKT),t.rXU(Xe,12),t.rXU(r.qQ),t.rXU(t.SKi),t.rXU(t.c1b),t.rXU(te,8),t.rXU(he.dS,8),t.rXU(qt),t.rXU(t.gRc),t.rXU(Ye,10),t.rXU(On,12))};static#n=this.\u0275dir=t.FsC({type:Re,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(N,ke){2&N&&t.AVh("cdk-drag-disabled",ke.disabled)("cdk-drag-dragging",ke._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",t.L39],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t.Jv_([{provide:On,useExisting:Re}]),t.GFd,t.OA$]})}return Re})()},7336:(Rt,De,c)=>{c.d(De,{A:()=>xt,A$:()=>B,FX:()=>G,Fm:()=>M,G_:()=>r,Ge:()=>Tn,Kp:()=>x,LE:()=>Oe,UQ:()=>J,W3:()=>L,Z:()=>cn,_f:()=>I,bn:()=>Pt,dB:()=>V,eg:()=>hn,f2:()=>z,i7:()=>be,n6:()=>he,rp:()=>Yn,t6:()=>F,w_:()=>X,wn:()=>g,yZ:()=>ne});const r=8,g=9,M=13,G=16,L=17,B=18,I=27,F=32,X=33,V=34,x=35,ne=36,J=37,be=38,Oe=39,he=40,z=48,Pt=57,xt=65,cn=90,Tn=91,hn=224;function Yn(En,...Kn){return Kn.length?Kn.some(oi=>En[oi]):En.altKey||En.shiftKey||En.ctrlKey||En.metaKey}},9327:(Rt,De,c)=>{c.d(De,{DY:()=>J,QP:()=>he});var t=c(3953),r=c(4085),g=c(1413),e=c(4572),M=c(8793),G=c(1985),L=c(6697),B=c(5245),A=c(152),w=c(6354),I=c(9172),F=c(6977),X=c(6860);const x=new Set;let ne,J=(()=>{class de{constructor(z,Z){this._platform=z,this._nonce=Z,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Oe}matchMedia(z){return(this._platform.WEBKIT||this._platform.BLINK)&&function be(de,H){if(!x.has(de))try{ne||(ne=document.createElement("style"),H&&ne.setAttribute("nonce",H),ne.setAttribute("type","text/css"),document.head.appendChild(ne)),ne.sheet&&(ne.sheet.insertRule(`@media ${de} {body{ }}`,0),x.add(de))}catch(z){console.error(z)}}(z,this._nonce),this._matchMedia(z)}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(X.OD),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();function Oe(de){return{matches:"all"===de||""===de,media:de,addListener:()=>{},removeListener:()=>{}}}let he=(()=>{class de{constructor(z,Z){this._mediaMatcher=z,this._zone=Z,this._queries=new Map,this._destroySubject=new g.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(z){return we((0,r.FG)(z)).some(pe=>this._registerQuery(pe).mql.matches)}observe(z){const pe=we((0,r.FG)(z)).map(S=>this._registerQuery(S).observable);let E=(0,e.z)(pe);return E=(0,M.x)(E.pipe((0,L.s)(1)),E.pipe((0,B.i)(1),(0,A.B)(0))),E.pipe((0,w.T)(S=>{const R={matches:!1,breakpoints:{}};return S.forEach(({matches:Y,query:se})=>{R.matches=R.matches||Y,R.breakpoints[se]=Y}),R}))}_registerQuery(z){if(this._queries.has(z))return this._queries.get(z);const Z=this._mediaMatcher.matchMedia(z),E={observable:new G.c(S=>{const R=Y=>this._zone.run(()=>S.next(Y));return Z.addListener(R),()=>{Z.removeListener(R)}}).pipe((0,I.Z)(Z),(0,w.T)(({matches:S})=>({query:z,matches:S})),(0,F.Q)(this._destroySubject)),mql:Z};return this._queries.set(z,E),E}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(J),t.KVO(t.SKi))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();function we(de){return de.map(H=>H.split(",")).reduce((H,z)=>H.concat(z)).map(H=>H.trim())}},7987:(Rt,De,c)=>{c.d(De,{$Q:()=>Et,WB:()=>Ot,hJ:()=>zn,rR:()=>H,uH:()=>z,yY:()=>vt,z_:()=>Ae});var t=c(946),r=c(177),g=c(3953),e=c(4085),M=c(6860),G=c(5964),L=c(6977),B=c(7048),A=c(8203),w=c(6939),I=c(1413),F=c(8359),X=c(7786),V=c(7336);const x=(0,M.CZ)();class ne{constructor(oe,Fe){this._viewportRuler=oe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Fe}attach(){}enable(){if(this._canBeEnabled()){const oe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=oe.style.left||"",this._previousHTMLStyles.top=oe.style.top||"",oe.style.left=(0,e.a1)(-this._previousScrollPosition.left),oe.style.top=(0,e.a1)(-this._previousScrollPosition.top),oe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const oe=this._document.documentElement,et=oe.style,ut=this._document.body.style,Kt=et.scrollBehavior||"",cn=ut.scrollBehavior||"";this._isEnabled=!1,et.left=this._previousHTMLStyles.left,et.top=this._previousHTMLStyles.top,oe.classList.remove("cdk-global-scrollblock"),x&&(et.scrollBehavior=ut.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),x&&(et.scrollBehavior=Kt,ut.scrollBehavior=cn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Fe=this._document.body,et=this._viewportRuler.getViewportSize();return Fe.scrollHeight>et.height||Fe.scrollWidth>et.width}}class be{constructor(oe,Fe,et,ut){this._scrollDispatcher=oe,this._ngZone=Fe,this._viewportRuler=et,this._config=ut,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(oe){this._overlayRef=oe}enable(){if(this._scrollSubscription)return;const oe=this._scrollDispatcher.scrolled(0).pipe((0,G.p)(Fe=>!Fe||!this._overlayRef.overlayElement.contains(Fe.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=oe.subscribe(()=>{const Fe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Fe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=oe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Oe{enable(){}disable(){}attach(){}}function he(_e,oe){return oe.some(Fe=>_e.bottomFe.bottom||_e.rightFe.right)}function we(_e,oe){return oe.some(Fe=>_e.topFe.bottom||_e.leftFe.right)}class me{constructor(oe,Fe,et,ut){this._scrollDispatcher=oe,this._viewportRuler=Fe,this._ngZone=et,this._config=ut,this._scrollSubscription=null}attach(oe){this._overlayRef=oe}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 Fe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:et,height:ut}=this._viewportRuler.getViewportSize();he(Fe,[{width:et,height:ut,bottom:ut,right:et,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 de=(()=>{class _e{constructor(Fe,et,ut,Kt){this._scrollDispatcher=Fe,this._viewportRuler=et,this._ngZone=ut,this.noop=()=>new Oe,this.close=cn=>new be(this._scrollDispatcher,this._ngZone,this._viewportRuler,cn),this.block=()=>new ne(this._viewportRuler,this._document),this.reposition=cn=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,cn),this._document=Kt}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(t.R),g.KVO(t.Xj),g.KVO(g.SKi),g.KVO(r.qQ))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();class H{constructor(oe){if(this.scrollStrategy=new Oe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,oe){const Fe=Object.keys(oe);for(const et of Fe)void 0!==oe[et]&&(this[et]=oe[et])}}}class z{constructor(oe,Fe,et,ut,Kt){this.offsetX=et,this.offsetY=ut,this.panelClass=Kt,this.originX=oe.originX,this.originY=oe.originY,this.overlayX=Fe.overlayX,this.overlayY=Fe.overlayY}}class pe{constructor(oe,Fe){this.connectionPair=oe,this.scrollableViewProperties=Fe}}let R=(()=>{class _e{constructor(Fe){this._attachedOverlays=[],this._document=Fe}ngOnDestroy(){this.detach()}add(Fe){this.remove(Fe),this._attachedOverlays.push(Fe)}remove(Fe){const et=this._attachedOverlays.indexOf(Fe);et>-1&&this._attachedOverlays.splice(et,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(r.qQ))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),Y=(()=>{class _e extends R{constructor(Fe,et){super(Fe),this._ngZone=et,this._keydownListener=ut=>{const Kt=this._attachedOverlays;for(let cn=Kt.length-1;cn>-1;cn--)if(Kt[cn]._keydownEvents.observers.length>0){const Tn=Kt[cn]._keydownEvents;this._ngZone?this._ngZone.run(()=>Tn.next(ut)):Tn.next(ut);break}}}add(Fe){super.add(Fe),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)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(r.qQ),g.KVO(g.SKi,8))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),se=(()=>{class _e extends R{constructor(Fe,et,ut){super(Fe),this._platform=et,this._ngZone=ut,this._cursorStyleIsSet=!1,this._pointerDownListener=Kt=>{this._pointerDownEventTarget=(0,M.Fb)(Kt)},this._clickListener=Kt=>{const cn=(0,M.Fb)(Kt),Tn="click"===Kt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:cn;this._pointerDownEventTarget=null;const Wn=this._attachedOverlays.slice();for(let kn=Wn.length-1;kn>-1;kn--){const Vn=Wn[kn];if(Vn._outsidePointerEvents.observers.length<1||!Vn.hasAttached())continue;if(Be(Vn.overlayElement,cn)||Be(Vn.overlayElement,Tn))break;const Un=Vn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Un.next(Kt)):Un.next(Kt)}}}add(Fe){if(super.add(Fe),!this._isAttached){const et=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(et)):this._addEventListeners(et),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=et.style.cursor,et.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Fe=this._document.body;Fe.removeEventListener("pointerdown",this._pointerDownListener,!0),Fe.removeEventListener("click",this._clickListener,!0),Fe.removeEventListener("auxclick",this._clickListener,!0),Fe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Fe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Fe){Fe.addEventListener("pointerdown",this._pointerDownListener,!0),Fe.addEventListener("click",this._clickListener,!0),Fe.addEventListener("auxclick",this._clickListener,!0),Fe.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(r.qQ),g.KVO(M.OD),g.KVO(g.SKi,8))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function Be(_e,oe){const Fe=typeof ShadowRoot<"u"&&ShadowRoot;let et=oe;for(;et;){if(et===_e)return!0;et=Fe&&et instanceof ShadowRoot?et.host:et.parentNode}return!1}let Pt=(()=>{class _e{constructor(Fe,et){this._platform=et,this._document=Fe}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Fe="cdk-overlay-container";if(this._platform.isBrowser||(0,M.v8)()){const ut=this._document.querySelectorAll(`.${Fe}[platform="server"], .${Fe}[platform="test"]`);for(let Kt=0;Ktthis._backdropClick.next(dn),this._backdropTransitionendHandler=dn=>{this._disposeBackdrop(dn.target)},this._keydownEvents=new I.B,this._outsidePointerEvents=new I.B,this._renders=new I.B,ut.scrollStrategy&&(this._scrollStrategy=ut.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ut.positionStrategy,this._afterRenderRef=(0,g.O8t)(()=>(0,g.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(oe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Fe=this._portalOutlet.attach(oe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),(0,g.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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 Fe?.onDestroy&&Fe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Fe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const oe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),oe}dispose(){const oe=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,oe&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(oe){oe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=oe,this.hasAttached()&&(oe.attach(this),this.updatePosition()))}updateSize(oe){this._config={...this._config,...oe},this._updateElementSize()}setDirection(oe){this._config={...this._config,direction:oe},this._updateElementDirection()}addPanelClass(oe){this._pane&&this._toggleClasses(this._pane,oe,!0)}removePanelClass(oe){this._pane&&this._toggleClasses(this._pane,oe,!1)}getDirection(){const oe=this._config.direction;return oe?"string"==typeof oe?oe:oe.value:"ltr"}updateScrollStrategy(oe){oe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=oe,this.hasAttached()&&(oe.attach(this),oe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const oe=this._pane.style;oe.width=(0,e.a1)(this._config.width),oe.height=(0,e.a1)(this._config.height),oe.minWidth=(0,e.a1)(this._config.minWidth),oe.minHeight=(0,e.a1)(this._config.minHeight),oe.maxWidth=(0,e.a1)(this._config.maxWidth),oe.maxHeight=(0,e.a1)(this._config.maxHeight)}_togglePointerEvents(oe){this._pane.style.pointerEvents=oe?"":"none"}_attachBackdrop(){const oe="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(oe)})}):this._backdropElement.classList.add(oe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const oe=this._backdropElement;if(oe){if(this._animationsDisabled)return void this._disposeBackdrop(oe);oe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{oe.addEventListener("transitionend",this._backdropTransitionendHandler)}),oe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(oe)},500))}}_toggleClasses(oe,Fe,et){const ut=(0,e.FG)(Fe||[]).filter(Kt=>!!Kt);ut.length&&(et?oe.classList.add(...ut):oe.classList.remove(...ut))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const oe=this._renders.pipe((0,L.Q)((0,X.h)(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()),oe.unsubscribe())})})}_disposeScrollStrategy(){const oe=this._scrollStrategy;oe&&(oe.disable(),oe.detach&&oe.detach())}_disposeBackdrop(oe){oe&&(oe.removeEventListener("click",this._backdropClickHandler),oe.removeEventListener("transitionend",this._backdropTransitionendHandler),oe.remove(),this._backdropElement===oe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const wt="cdk-overlay-connected-position-bounding-box",Le=/([A-Za-z%]+)$/;class zt{get positions(){return this._preferredPositions}constructor(oe,Fe,et,ut,Kt){this._viewportRuler=Fe,this._document=et,this._platform=ut,this._overlayContainer=Kt,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 I.B,this._resizeSubscription=F.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(oe)}attach(oe){this._validatePositions(),oe.hostElement.classList.add(wt),this._overlayRef=oe,this._boundingBox=oe.hostElement,this._pane=oe.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 oe=this._originRect,Fe=this._overlayRect,et=this._viewportRect,ut=this._containerRect,Kt=[];let cn;for(let Tn of this._preferredPositions){let Wn=this._getOriginPoint(oe,ut,Tn),kn=this._getOverlayPoint(Wn,Fe,Tn),Vn=this._getOverlayFit(kn,Fe,et,Tn);if(Vn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Tn,Wn);this._canFitWithFlexibleDimensions(Vn,kn,et)?Kt.push({position:Tn,origin:Wn,overlayRect:Fe,boundingBoxRect:this._calculateBoundingBoxRect(Wn,Tn)}):(!cn||cn.overlayFit.visibleAreaWn&&(Wn=Vn,Tn=kn)}return this._isPushed=!1,void this._applyPosition(Tn.position,Tn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(cn.position,cn.originPoint);this._applyPosition(cn.position,cn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&xt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const oe=this._lastPosition;if(oe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Fe=this._getOriginPoint(this._originRect,this._containerRect,oe);this._applyPosition(oe,Fe)}else this.apply()}withScrollableContainers(oe){return this._scrollables=oe,this}withPositions(oe){return this._preferredPositions=oe,-1===oe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(oe){return this._viewportMargin=oe,this}withFlexibleDimensions(oe=!0){return this._hasFlexibleDimensions=oe,this}withGrowAfterOpen(oe=!0){return this._growAfterOpen=oe,this}withPush(oe=!0){return this._canPush=oe,this}withLockedPosition(oe=!0){return this._positionLocked=oe,this}setOrigin(oe){return this._origin=oe,this}withDefaultOffsetX(oe){return this._offsetX=oe,this}withDefaultOffsetY(oe){return this._offsetY=oe,this}withTransformOriginOn(oe){return this._transformOriginSelector=oe,this}_getOriginPoint(oe,Fe,et){let ut,Kt;if("center"==et.originX)ut=oe.left+oe.width/2;else{const cn=this._isRtl()?oe.right:oe.left,Tn=this._isRtl()?oe.left:oe.right;ut="start"==et.originX?cn:Tn}return Fe.left<0&&(ut-=Fe.left),Kt="center"==et.originY?oe.top+oe.height/2:"top"==et.originY?oe.top:oe.bottom,Fe.top<0&&(Kt-=Fe.top),{x:ut,y:Kt}}_getOverlayPoint(oe,Fe,et){let ut,Kt;return ut="center"==et.overlayX?-Fe.width/2:"start"===et.overlayX?this._isRtl()?-Fe.width:0:this._isRtl()?0:-Fe.width,Kt="center"==et.overlayY?-Fe.height/2:"top"==et.overlayY?0:-Fe.height,{x:oe.x+ut,y:oe.y+Kt}}_getOverlayFit(oe,Fe,et,ut){const Kt=Ct(Fe);let{x:cn,y:Tn}=oe,Wn=this._getOffset(ut,"x"),kn=this._getOffset(ut,"y");Wn&&(cn+=Wn),kn&&(Tn+=kn);let dn=0-Tn,qt=Tn+Kt.height-et.height,On=this._subtractOverflows(Kt.width,0-cn,cn+Kt.width-et.width),Ut=this._subtractOverflows(Kt.height,dn,qt),Ye=On*Ut;return{visibleArea:Ye,isCompletelyWithinViewport:Kt.width*Kt.height===Ye,fitsInViewportVertically:Ut===Kt.height,fitsInViewportHorizontally:On==Kt.width}}_canFitWithFlexibleDimensions(oe,Fe,et){if(this._hasFlexibleDimensions){const ut=et.bottom-Fe.y,Kt=et.right-Fe.x,cn=st(this._overlayRef.getConfig().minHeight),Tn=st(this._overlayRef.getConfig().minWidth);return(oe.fitsInViewportVertically||null!=cn&&cn<=ut)&&(oe.fitsInViewportHorizontally||null!=Tn&&Tn<=Kt)}return!1}_pushOverlayOnScreen(oe,Fe,et){if(this._previousPushAmount&&this._positionLocked)return{x:oe.x+this._previousPushAmount.x,y:oe.y+this._previousPushAmount.y};const ut=Ct(Fe),Kt=this._viewportRect,cn=Math.max(oe.x+ut.width-Kt.width,0),Tn=Math.max(oe.y+ut.height-Kt.height,0),Wn=Math.max(Kt.top-et.top-oe.y,0),kn=Math.max(Kt.left-et.left-oe.x,0);let Vn=0,Un=0;return Vn=ut.width<=Kt.width?kn||-cn:oe.xOn&&!this._isInitialRender&&!this._growAfterOpen&&(cn=oe.y-On/2)}if("end"===Fe.overlayX&&!ut||"start"===Fe.overlayX&&ut)dn=et.width-oe.x+2*this._viewportMargin,Vn=oe.x-this._viewportMargin;else if("start"===Fe.overlayX&&!ut||"end"===Fe.overlayX&&ut)Un=oe.x,Vn=et.right-oe.x;else{const qt=Math.min(et.right-oe.x+et.left,oe.x),On=this._lastBoundingBoxSize.width;Vn=2*qt,Un=oe.x-qt,Vn>On&&!this._isInitialRender&&!this._growAfterOpen&&(Un=oe.x-On/2)}return{top:cn,left:Un,bottom:Tn,right:dn,width:Vn,height:Kt}}_setBoundingBoxStyles(oe,Fe){const et=this._calculateBoundingBoxRect(oe,Fe);!this._isInitialRender&&!this._growAfterOpen&&(et.height=Math.min(et.height,this._lastBoundingBoxSize.height),et.width=Math.min(et.width,this._lastBoundingBoxSize.width));const ut={};if(this._hasExactPosition())ut.top=ut.left="0",ut.bottom=ut.right=ut.maxHeight=ut.maxWidth="",ut.width=ut.height="100%";else{const Kt=this._overlayRef.getConfig().maxHeight,cn=this._overlayRef.getConfig().maxWidth;ut.height=(0,e.a1)(et.height),ut.top=(0,e.a1)(et.top),ut.bottom=(0,e.a1)(et.bottom),ut.width=(0,e.a1)(et.width),ut.left=(0,e.a1)(et.left),ut.right=(0,e.a1)(et.right),ut.alignItems="center"===Fe.overlayX?"center":"end"===Fe.overlayX?"flex-end":"flex-start",ut.justifyContent="center"===Fe.overlayY?"center":"bottom"===Fe.overlayY?"flex-end":"flex-start",Kt&&(ut.maxHeight=(0,e.a1)(Kt)),cn&&(ut.maxWidth=(0,e.a1)(cn))}this._lastBoundingBoxSize=et,xt(this._boundingBox.style,ut)}_resetBoundingBoxStyles(){xt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(oe,Fe){const et={},ut=this._hasExactPosition(),Kt=this._hasFlexibleDimensions,cn=this._overlayRef.getConfig();if(ut){const Vn=this._viewportRuler.getViewportScrollPosition();xt(et,this._getExactOverlayY(Fe,oe,Vn)),xt(et,this._getExactOverlayX(Fe,oe,Vn))}else et.position="static";let Tn="",Wn=this._getOffset(Fe,"x"),kn=this._getOffset(Fe,"y");Wn&&(Tn+=`translateX(${Wn}px) `),kn&&(Tn+=`translateY(${kn}px)`),et.transform=Tn.trim(),cn.maxHeight&&(ut?et.maxHeight=(0,e.a1)(cn.maxHeight):Kt&&(et.maxHeight="")),cn.maxWidth&&(ut?et.maxWidth=(0,e.a1)(cn.maxWidth):Kt&&(et.maxWidth="")),xt(this._pane.style,et)}_getExactOverlayY(oe,Fe,et){let ut={top:"",bottom:""},Kt=this._getOverlayPoint(Fe,this._overlayRect,oe);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,et)),"bottom"===oe.overlayY?ut.bottom=this._document.documentElement.clientHeight-(Kt.y+this._overlayRect.height)+"px":ut.top=(0,e.a1)(Kt.y),ut}_getExactOverlayX(oe,Fe,et){let cn,ut={left:"",right:""},Kt=this._getOverlayPoint(Fe,this._overlayRect,oe);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,et)),cn=this._isRtl()?"end"===oe.overlayX?"left":"right":"end"===oe.overlayX?"right":"left","right"===cn?ut.right=this._document.documentElement.clientWidth-(Kt.x+this._overlayRect.width)+"px":ut.left=(0,e.a1)(Kt.x),ut}_getScrollVisibility(){const oe=this._getOriginRect(),Fe=this._pane.getBoundingClientRect(),et=this._scrollables.map(ut=>ut.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:we(oe,et),isOriginOutsideView:he(oe,et),isOverlayClipped:we(Fe,et),isOverlayOutsideView:he(Fe,et)}}_subtractOverflows(oe,...Fe){return Fe.reduce((et,ut)=>et-Math.max(ut,0),oe)}_getNarrowedViewportRect(){const oe=this._document.documentElement.clientWidth,Fe=this._document.documentElement.clientHeight,et=this._viewportRuler.getViewportScrollPosition();return{top:et.top+this._viewportMargin,left:et.left+this._viewportMargin,right:et.left+oe-this._viewportMargin,bottom:et.top+Fe-this._viewportMargin,width:oe-2*this._viewportMargin,height:Fe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(oe,Fe){return"x"===Fe?null==oe.offsetX?this._offsetX:oe.offsetX:null==oe.offsetY?this._offsetY:oe.offsetY}_validatePositions(){}_addPanelClasses(oe){this._pane&&(0,e.FG)(oe).forEach(Fe=>{""!==Fe&&-1===this._appliedPanelClasses.indexOf(Fe)&&(this._appliedPanelClasses.push(Fe),this._pane.classList.add(Fe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(oe=>{this._pane.classList.remove(oe)}),this._appliedPanelClasses=[])}_getOriginRect(){const oe=this._origin;if(oe instanceof g.aKT)return oe.nativeElement.getBoundingClientRect();if(oe instanceof Element)return oe.getBoundingClientRect();const Fe=oe.width||0,et=oe.height||0;return{top:oe.y,bottom:oe.y+et,left:oe.x,right:oe.x+Fe,height:et,width:Fe}}}function xt(_e,oe){for(let Fe in oe)oe.hasOwnProperty(Fe)&&(_e[Fe]=oe[Fe]);return _e}function st(_e){if("number"!=typeof _e&&null!=_e){const[oe,Fe]=_e.split(Le);return Fe&&"px"!==Fe?null:parseFloat(oe)}return _e||null}function Ct(_e){return{top:Math.floor(_e.top),right:Math.floor(_e.right),bottom:Math.floor(_e.bottom),left:Math.floor(_e.left),width:Math.floor(_e.width),height:Math.floor(_e.height)}}const jt="cdk-global-overlay-wrapper";class Vt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(oe){const Fe=oe.getConfig();this._overlayRef=oe,this._width&&!Fe.width&&oe.updateSize({width:this._width}),this._height&&!Fe.height&&oe.updateSize({height:this._height}),oe.hostElement.classList.add(jt),this._isDisposed=!1}top(oe=""){return this._bottomOffset="",this._topOffset=oe,this._alignItems="flex-start",this}left(oe=""){return this._xOffset=oe,this._xPosition="left",this}bottom(oe=""){return this._topOffset="",this._bottomOffset=oe,this._alignItems="flex-end",this}right(oe=""){return this._xOffset=oe,this._xPosition="right",this}start(oe=""){return this._xOffset=oe,this._xPosition="start",this}end(oe=""){return this._xOffset=oe,this._xPosition="end",this}width(oe=""){return this._overlayRef?this._overlayRef.updateSize({width:oe}):this._width=oe,this}height(oe=""){return this._overlayRef?this._overlayRef.updateSize({height:oe}):this._height=oe,this}centerHorizontally(oe=""){return this.left(oe),this._xPosition="center",this}centerVertically(oe=""){return this.top(oe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const oe=this._overlayRef.overlayElement.style,Fe=this._overlayRef.hostElement.style,et=this._overlayRef.getConfig(),{width:ut,height:Kt,maxWidth:cn,maxHeight:Tn}=et,Wn=!("100%"!==ut&&"100vw"!==ut||cn&&"100%"!==cn&&"100vw"!==cn),kn=!("100%"!==Kt&&"100vh"!==Kt||Tn&&"100%"!==Tn&&"100vh"!==Tn),Vn=this._xPosition,Un=this._xOffset,dn="rtl"===this._overlayRef.getConfig().direction;let qt="",On="",Ut="";Wn?Ut="flex-start":"center"===Vn?(Ut="center",dn?On=Un:qt=Un):dn?"left"===Vn||"end"===Vn?(Ut="flex-end",qt=Un):("right"===Vn||"start"===Vn)&&(Ut="flex-start",On=Un):"left"===Vn||"start"===Vn?(Ut="flex-start",qt=Un):("right"===Vn||"end"===Vn)&&(Ut="flex-end",On=Un),oe.position=this._cssPosition,oe.marginLeft=Wn?"0":qt,oe.marginTop=kn?"0":this._topOffset,oe.marginBottom=this._bottomOffset,oe.marginRight=Wn?"0":On,Fe.justifyContent=Ut,Fe.alignItems=kn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const oe=this._overlayRef.overlayElement.style,Fe=this._overlayRef.hostElement,et=Fe.style;Fe.classList.remove(jt),et.justifyContent=et.alignItems=oe.marginTop=oe.marginBottom=oe.marginLeft=oe.marginRight=oe.position="",this._overlayRef=null,this._isDisposed=!0}}let fn=(()=>{class _e{constructor(Fe,et,ut,Kt){this._viewportRuler=Fe,this._document=et,this._platform=ut,this._overlayContainer=Kt}global(){return new Vt}flexibleConnectedTo(Fe){return new zt(Fe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(t.Xj),g.KVO(r.qQ),g.KVO(M.OD),g.KVO(Pt))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),Hn=0,zn=(()=>{class _e{constructor(Fe,et,ut,Kt,cn,Tn,Wn,kn,Vn,Un,dn,qt){this.scrollStrategies=Fe,this._overlayContainer=et,this._componentFactoryResolver=ut,this._positionBuilder=Kt,this._keyboardDispatcher=cn,this._injector=Tn,this._ngZone=Wn,this._document=kn,this._directionality=Vn,this._location=Un,this._outsideClickDispatcher=dn,this._animationsModuleType=qt}create(Fe){const et=this._createHostElement(),ut=this._createPaneElement(et),Kt=this._createPortalOutlet(ut),cn=new H(Fe);return cn.direction=cn.direction||this._directionality.value,new vt(Kt,et,ut,cn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(g.uvJ))}position(){return this._positionBuilder}_createPaneElement(Fe){const et=this._document.createElement("div");return et.id="cdk-overlay-"+Hn++,et.classList.add("cdk-overlay-pane"),Fe.appendChild(et),et}_createHostElement(){const Fe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Fe),Fe}_createPortalOutlet(Fe){return this._appRef||(this._appRef=this._injector.get(g.o8S)),new w.aI(Fe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(de),g.KVO(Pt),g.KVO(g.OM3),g.KVO(fn),g.KVO(Y),g.KVO(g.zZn),g.KVO(g.SKi),g.KVO(r.qQ),g.KVO(A.dS),g.KVO(r.aZ),g.KVO(se),g.KVO(g.bc$,8))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();const bt=[{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"}],At=new g.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const _e=(0,g.WQX)(zn);return()=>_e.scrollStrategies.reposition()}});let Et=(()=>{class _e{constructor(Fe){this.elementRef=Fe}static#e=this.\u0275fac=function(et){return new(et||_e)(g.rXU(g.aKT))};static#t=this.\u0275dir=g.FsC({type:_e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return _e})(),Ot=(()=>{class _e{get offsetX(){return this._offsetX}set offsetX(Fe){this._offsetX=Fe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Fe){this._offsetY=Fe,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Fe){this._disposeOnNavigation=Fe}constructor(Fe,et,ut,Kt,cn){this._overlay=Fe,this._dir=cn,this._backdropSubscription=F.yU.EMPTY,this._attachSubscription=F.yU.EMPTY,this._detachSubscription=F.yU.EMPTY,this._positionSubscription=F.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,g.WQX)(g.SKi),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new g.bkB,this.positionChange=new g.bkB,this.attach=new g.bkB,this.detach=new g.bkB,this.overlayKeydown=new g.bkB,this.overlayOutsideClick=new g.bkB,this._templatePortal=new w.VA(et,ut),this._scrollStrategyFactory=Kt,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(Fe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Fe.origin&&this.open&&this._position.apply()),Fe.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bt);const Fe=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Fe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Fe.detachments().subscribe(()=>this.detach.emit()),Fe.keydownEvents().subscribe(et=>{this.overlayKeydown.next(et),et.keyCode===V._f&&!this.disableClose&&!(0,V.rp)(et)&&(et.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(et=>{const ut=this._getOriginElement(),Kt=(0,M.Fb)(et);(!ut||ut!==Kt&&!ut.contains(Kt))&&this.overlayOutsideClick.next(et)})}_buildConfig(){const Fe=this._position=this.positionStrategy||this._createPositionStrategy(),et=new H({direction:this._dir,positionStrategy:Fe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(et.width=this.width),(this.height||0===this.height)&&(et.height=this.height),(this.minWidth||0===this.minWidth)&&(et.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(et.minHeight=this.minHeight),this.backdropClass&&(et.backdropClass=this.backdropClass),this.panelClass&&(et.panelClass=this.panelClass),et}_updatePositionStrategy(Fe){const et=this.positions.map(ut=>({originX:ut.originX,originY:ut.originY,overlayX:ut.overlayX,overlayY:ut.overlayY,offsetX:ut.offsetX||this.offsetX,offsetY:ut.offsetY||this.offsetY,panelClass:ut.panelClass||void 0}));return Fe.setOrigin(this._getOrigin()).withPositions(et).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Fe=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(Fe),Fe}_getOrigin(){return this.origin instanceof Et?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Et?this.origin.elementRef.nativeElement:this.origin instanceof g.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(Fe=>{this.backdropClick.emit(Fe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,B.v)(()=>this.positionChange.observers.length>0)).subscribe(Fe=>{this._ngZone.run(()=>this.positionChange.emit(Fe)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(et){return new(et||_e)(g.rXU(zn),g.rXU(g.C4Q),g.rXU(g.c1b),g.rXU(At),g.rXU(A.dS,8))};static#t=this.\u0275dir=g.FsC({type:_e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",g.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",g.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",g.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",g.L39],push:[2,"cdkConnectedOverlayPush","push",g.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",g.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[g.GFd,g.OA$]})}return _e})();const Ue={provide:At,deps:[zn],useFactory:function Yt(_e){return()=>_e.scrollStrategies.reposition()}};let Ae=(()=>{class _e{static#e=this.\u0275fac=function(et){return new(et||_e)};static#t=this.\u0275mod=g.$C({type:_e});static#n=this.\u0275inj=g.G2t({providers:[zn,Ue],imports:[A.jI,w.jc,t.E9,t.E9]})}return _e})()},6860:(Rt,De,c)=>{c.d(De,{BD:()=>ne,BQ:()=>I,CZ:()=>x,Fb:()=>we,IK:()=>M,KT:()=>Oe,OD:()=>e,r5:()=>F,v8:()=>me,vc:()=>he});var t=c(3953),r=c(177);let g;try{g=typeof Intl<"u"&&Intl.v8BreakIterator}catch{g=!1}let A,e=(()=>{class de{constructor(z){this._platformId=z,this.isBrowser=this._platformId?(0,r.UE)(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&&!g)&&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}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(t.Agw))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})(),M=(()=>{class de{static#e=this.\u0275fac=function(Z){return new(Z||de)};static#t=this.\u0275mod=t.$C({type:de});static#n=this.\u0275inj=t.G2t({})}return de})();function I(de){return function w(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?de:!!de.capture}var F=function(de){return de[de.NORMAL=0]="NORMAL",de[de.NEGATED=1]="NEGATED",de[de.INVERTED=2]="INVERTED",de}(F||{});let X,V,J;function x(){if(null==V){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return V=!1,V;if("scrollBehavior"in document.documentElement.style)V=!0;else{const de=Element.prototype.scrollTo;V=!!de&&!/\{\s*\[native code\]\s*\}/.test(de.toString())}}return V}function ne(){if("object"!=typeof document||!document)return F.NORMAL;if(null==X){const de=document.createElement("div"),H=de.style;de.dir="rtl",H.width="1px",H.overflow="auto",H.visibility="hidden",H.pointerEvents="none",H.position="absolute";const z=document.createElement("div"),Z=z.style;Z.width="2px",Z.height="1px",de.appendChild(z),document.body.appendChild(de),X=F.NORMAL,0===de.scrollLeft&&(de.scrollLeft=1,X=0===de.scrollLeft?F.NEGATED:F.INVERTED),de.remove()}return X}function Oe(de){if(function be(){if(null==J){const de=typeof document<"u"?document.head:null;J=!(!de||!de.createShadowRoot&&!de.attachShadow)}return J}()){const H=de.getRootNode?de.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&H instanceof ShadowRoot)return H}return null}function he(){let de=typeof document<"u"&&document?document.activeElement:null;for(;de&&de.shadowRoot;){const H=de.shadowRoot.activeElement;if(H===de)break;de=H}return de}function we(de){return de.composedPath?de.composedPath()[0]:de.target}function me(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(Rt,De,c)=>{c.d(De,{A8:()=>w,I3:()=>Oe,VA:()=>I,aI:()=>x,jc:()=>we,lb:()=>X});var t=c(3953),r=c(177);class A{attach(H){return this._attachedHost=H,H.attach(this)}detach(){let H=this._attachedHost;null!=H&&(this._attachedHost=null,H.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(H){this._attachedHost=H}}class w extends A{constructor(H,z,Z,pe,E){super(),this.component=H,this.viewContainerRef=z,this.injector=Z,this.componentFactoryResolver=pe,this.projectableNodes=E}}class I extends A{constructor(H,z,Z,pe){super(),this.templateRef=H,this.viewContainerRef=z,this.context=Z,this.injector=pe}get origin(){return this.templateRef.elementRef}attach(H,z=this.context){return this.context=z,super.attach(H)}detach(){return this.context=void 0,super.detach()}}class F extends A{constructor(H){super(),this.element=H instanceof t.aKT?H.nativeElement:H}}class X{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(H){return H instanceof w?(this._attachedPortal=H,this.attachComponentPortal(H)):H instanceof I?(this._attachedPortal=H,this.attachTemplatePortal(H)):this.attachDomPortal&&H instanceof F?(this._attachedPortal=H,this.attachDomPortal(H)):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(H){this._disposeFn=H}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class x extends X{constructor(H,z,Z,pe,E){super(),this.outletElement=H,this._componentFactoryResolver=z,this._appRef=Z,this._defaultInjector=pe,this.attachDomPortal=S=>{const R=S.element,Y=this._document.createComment("dom-portal");R.parentNode.insertBefore(Y,R),this.outletElement.appendChild(R),this._attachedPortal=S,super.setDisposeFn(()=>{Y.parentNode&&Y.parentNode.replaceChild(R,Y)})},this._document=E}attachComponentPortal(H){const Z=(H.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(H.component);let pe;return H.viewContainerRef?(pe=H.viewContainerRef.createComponent(Z,H.viewContainerRef.length,H.injector||H.viewContainerRef.injector,H.projectableNodes||void 0),this.setDisposeFn(()=>pe.destroy())):(pe=Z.create(H.injector||this._defaultInjector||t.zZn.NULL),this._appRef.attachView(pe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(pe.hostView),pe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(pe)),this._attachedPortal=H,pe}attachTemplatePortal(H){let z=H.viewContainerRef,Z=z.createEmbeddedView(H.templateRef,H.context,{injector:H.injector});return Z.rootNodes.forEach(pe=>this.outletElement.appendChild(pe)),Z.detectChanges(),this.setDisposeFn(()=>{let pe=z.indexOf(Z);-1!==pe&&z.remove(pe)}),this._attachedPortal=H,Z}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(H){return H.hostView.rootNodes[0]}}let Oe=(()=>{class de extends X{constructor(z,Z,pe){super(),this._componentFactoryResolver=z,this._viewContainerRef=Z,this._isInitialized=!1,this.attached=new t.bkB,this.attachDomPortal=E=>{const S=E.element,R=this._document.createComment("dom-portal");E.setAttachedHost(this),S.parentNode.insertBefore(R,S),this._getRootNode().appendChild(S),this._attachedPortal=E,super.setDisposeFn(()=>{R.parentNode&&R.parentNode.replaceChild(S,R)})},this._document=pe}get portal(){return this._attachedPortal}set portal(z){this.hasAttached()&&!z&&!this._isInitialized||(this.hasAttached()&&super.detach(),z&&super.attach(z),this._attachedPortal=z||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(z){z.setAttachedHost(this);const Z=null!=z.viewContainerRef?z.viewContainerRef:this._viewContainerRef,E=(z.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(z.component),S=Z.createComponent(E,Z.length,z.injector||Z.injector,z.projectableNodes||void 0);return Z!==this._viewContainerRef&&this._getRootNode().appendChild(S.hostView.rootNodes[0]),super.setDisposeFn(()=>S.destroy()),this._attachedPortal=z,this._attachedRef=S,this.attached.emit(S),S}attachTemplatePortal(z){z.setAttachedHost(this);const Z=this._viewContainerRef.createEmbeddedView(z.templateRef,z.context,{injector:z.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=z,this._attachedRef=Z,this.attached.emit(Z),Z}_getRootNode(){const z=this._viewContainerRef.element.nativeElement;return z.nodeType===z.ELEMENT_NODE?z:z.parentNode}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.rXU(t.OM3),t.rXU(t.c1b),t.rXU(r.qQ))};static#t=this.\u0275dir=t.FsC({type:de,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[t.Vt3]})}return de})(),we=(()=>{class de{static#e=this.\u0275fac=function(Z){return new(Z||de)};static#t=this.\u0275mod=t.$C({type:de});static#n=this.\u0275inj=t.G2t({})}return de})()},946:(Rt,De,c)=>{c.d(De,{yg:()=>zt,E$:()=>bt,d6:()=>Hn,R:()=>st,E9:()=>Yt,Xj:()=>Tt});var t=c(4085),r=c(3953),g=c(1413),e=c(7673),M=c(1985),G=c(3726),L=c(536),B=c(5007),A=c(8359),w=c(4402),I=c(3294),F=c(3798),X=c(5964),V=c(6977),x=c(9172),ne=c(3946),J=c(5558),be=c(4668),Oe=c(6860),he=c(177),we=c(8203),me=c(17);class de{}class z extends de{constructor(Ae){super(),this._data=Ae}connect(){return(0,w.A)(this._data)?this._data:(0,e.of)(this._data)}disconnect(){}}var Z=function(Ue){return Ue[Ue.REPLACED=0]="REPLACED",Ue[Ue.INSERTED=1]="INSERTED",Ue[Ue.MOVED=2]="MOVED",Ue[Ue.REMOVED=3]="REMOVED",Ue}(Z||{});const pe=new r.nKC("_ViewRepeater");class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Ae,ie,_e,oe,Fe){Ae.forEachOperation((et,ut,Kt)=>{let cn,Tn;null==et.previousIndex?(cn=this._insertView(()=>_e(et,ut,Kt),Kt,ie,oe(et)),Tn=cn?Z.INSERTED:Z.REPLACED):null==Kt?(this._detachAndCacheView(ut,ie),Tn=Z.REMOVED):(cn=this._moveView(ut,Kt,ie,oe(et)),Tn=Z.MOVED),Fe&&Fe({context:cn?.context,operation:Tn,record:et})})}detach(){for(const Ae of this._viewCache)Ae.destroy();this._viewCache=[]}_insertView(Ae,ie,_e,oe){const Fe=this._insertViewFromCache(ie,_e);if(Fe)return void(Fe.context.$implicit=oe);const et=Ae();return _e.createEmbeddedView(et.templateRef,et.context,et.index)}_detachAndCacheView(Ae,ie){const _e=ie.detach(Ae);this._maybeCacheView(_e,ie)}_moveView(Ae,ie,_e,oe){const Fe=_e.get(Ae);return _e.move(Fe,ie),Fe.context.$implicit=oe,Fe}_maybeCacheView(Ae,ie){if(this._viewCache.length0?Fe/this._itemSize:0;if(ie.end>oe){const Kt=Math.ceil(_e/this._itemSize),cn=Math.max(0,Math.min(et,oe-Kt));et!=cn&&(et=cn,Fe=cn*this._itemSize,ie.start=Math.floor(et)),ie.end=Math.max(0,Math.min(oe,ie.start+Kt))}const ut=Fe-ie.start*this._itemSize;if(ut0&&(ie.end=Math.min(oe,ie.end+cn),ie.start=Math.max(0,Math.floor(et-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(ie),this._viewport.setRenderedContentOffset(this._itemSize*ie.start),this._scrolledIndexChange.next(Math.floor(et))}}function Le(Ue){return Ue._scrollStrategy}let zt=(()=>{class Ue{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new wt(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(ie){this._itemSize=(0,t.OE)(ie)}get minBufferPx(){return this._minBufferPx}set minBufferPx(ie){this._minBufferPx=(0,t.OE)(ie)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(ie){this._maxBufferPx=(0,t.OE)(ie)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275dir=r.FsC({type:Ue,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[r.Jv_([{provide:vt,useFactory:Le,deps:[(0,r.Rfq)(()=>Ue)]}]),r.OA$]})}return Ue})(),st=(()=>{class Ue{constructor(ie,_e,oe){this._ngZone=ie,this._platform=_e,this._scrolled=new g.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const _e=this.scrollContainers.get(ie);_e&&(_e.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new M.c(_e=>{this._globalSubscription||this._addGlobalListener();const oe=ie>0?this._scrolled.pipe((0,F.Z)(ie)).subscribe(_e):this._scrolled.subscribe(_e);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,_e)=>this.deregister(_e)),this._scrolled.complete()}ancestorScrolled(ie,_e){const oe=this.getAncestorScrollContainers(ie);return this.scrolled(_e).pipe((0,X.p)(Fe=>!Fe||oe.indexOf(Fe)>-1))}getAncestorScrollContainers(ie){const _e=[];return this.scrollContainers.forEach((oe,Fe)=>{this._scrollableContainsElement(Fe,ie)&&_e.push(Fe)}),_e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,_e){let oe=(0,t.i8)(_e),Fe=ie.getElementRef().nativeElement;do{if(oe==Fe)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,G.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.KVO(r.SKi),r.KVO(Oe.OD),r.KVO(he.qQ,8))};static#t=this.\u0275prov=r.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}return Ue})(),Ct=(()=>{class Ue{constructor(ie,_e,oe,Fe){this.elementRef=ie,this.scrollDispatcher=_e,this.ngZone=oe,this.dir=Fe,this._destroyed=new g.B,this._elementScrolled=new M.c(et=>this.ngZone.runOutsideAngular(()=>(0,G.R)(this.elementRef.nativeElement,"scroll").pipe((0,V.Q)(this._destroyed)).subscribe(et)))}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(ie){const _e=this.elementRef.nativeElement,oe=this.dir&&"rtl"==this.dir.value;null==ie.left&&(ie.left=oe?ie.end:ie.start),null==ie.right&&(ie.right=oe?ie.start:ie.end),null!=ie.bottom&&(ie.top=_e.scrollHeight-_e.clientHeight-ie.bottom),oe&&(0,Oe.BD)()!=Oe.r5.NORMAL?(null!=ie.left&&(ie.right=_e.scrollWidth-_e.clientWidth-ie.left),(0,Oe.BD)()==Oe.r5.INVERTED?ie.left=ie.right:(0,Oe.BD)()==Oe.r5.NEGATED&&(ie.left=ie.right?-ie.right:ie.right)):null!=ie.right&&(ie.left=_e.scrollWidth-_e.clientWidth-ie.right),this._applyScrollToOptions(ie)}_applyScrollToOptions(ie){const _e=this.elementRef.nativeElement;(0,Oe.CZ)()?_e.scrollTo(ie):(null!=ie.top&&(_e.scrollTop=ie.top),null!=ie.left&&(_e.scrollLeft=ie.left))}measureScrollOffset(ie){const _e="left",Fe=this.elementRef.nativeElement;if("top"==ie)return Fe.scrollTop;if("bottom"==ie)return Fe.scrollHeight-Fe.clientHeight-Fe.scrollTop;const et=this.dir&&"rtl"==this.dir.value;return"start"==ie?ie=et?"right":_e:"end"==ie&&(ie=et?_e:"right"),et&&(0,Oe.BD)()==Oe.r5.INVERTED?ie==_e?Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft:Fe.scrollLeft:et&&(0,Oe.BD)()==Oe.r5.NEGATED?ie==_e?Fe.scrollLeft+Fe.scrollWidth-Fe.clientWidth:-Fe.scrollLeft:ie==_e?Fe.scrollLeft:Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.aKT),r.rXU(st),r.rXU(r.SKi),r.rXU(we.dS,8))};static#t=this.\u0275dir=r.FsC({type:Ue,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Ue})(),Tt=(()=>{class Ue{constructor(ie,_e,oe){this._platform=ie,this._change=new g.B,this._changeListener=Fe=>{this._change.next(Fe)},this._document=oe,_e.runOutsideAngular(()=>{if(ie.isBrowser){const Fe=this._getWindow();Fe.addEventListener("resize",this._changeListener),Fe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:_e,height:oe}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+oe,right:ie.left+_e,height:oe,width:_e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,_e=this._getWindow(),oe=ie.documentElement,Fe=oe.getBoundingClientRect();return{top:-Fe.top||ie.body.scrollTop||_e.scrollY||oe.scrollTop||0,left:-Fe.left||ie.body.scrollLeft||_e.scrollX||oe.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,F.Z)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.KVO(Oe.OD),r.KVO(r.SKi),r.KVO(he.qQ,8))};static#t=this.\u0275prov=r.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}return Ue})();const en=new r.nKC("VIRTUAL_SCROLLABLE");let jt=(()=>{class Ue extends Ct{constructor(ie,_e,oe,Fe){super(ie,_e,oe,Fe)}measureViewportSize(ie){const _e=this.elementRef.nativeElement;return"horizontal"===ie?_e.clientWidth:_e.clientHeight}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.aKT),r.rXU(st),r.rXU(r.SKi),r.rXU(we.dS,8))};static#t=this.\u0275dir=r.FsC({type:Ue,features:[r.Vt3]})}return Ue})();const fn=typeof requestAnimationFrame<"u"?L.X:B.$;let Hn=(()=>{class Ue extends jt{get orientation(){return this._orientation}set orientation(ie){this._orientation!==ie&&(this._orientation=ie,this._calculateSpacerSize())}constructor(ie,_e,oe,Fe,et,ut,Kt,cn){super(ie,ut,oe,et),this.elementRef=ie,this._changeDetectorRef=_e,this._scrollStrategy=Fe,this.scrollable=cn,this._platform=(0,r.WQX)(Oe.OD),this._detachedSubject=new g.B,this._renderedRangeSubject=new g.B,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new M.c(Tn=>this._scrollStrategy.scrolledIndexChange.subscribe(Wn=>Promise.resolve().then(()=>this.ngZone.run(()=>Tn.next(Wn))))),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.yU.EMPTY,this._injector=(0,r.WQX)(r.zZn),this._isDestroyed=!1,this._viewportChanges=Kt.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,x.Z)(null),(0,F.Z)(0,fn),(0,V.Q)(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(ie){this.ngZone.runOutsideAngular(()=>{this._forOf=ie,this._forOf.dataStream.pipe((0,V.Q)(this._detachedSubject)).subscribe(_e=>{const oe=_e.length;oe!==this._dataLength&&(this._dataLength=oe,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(ie){return this.getElementRef().nativeElement.getBoundingClientRect()[ie]}setTotalContentSize(ie){this._totalContentSize!==ie&&(this._totalContentSize=ie,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ie){(function Vt(Ue,Ae){return Ue.start==Ae.start&&Ue.end==Ae.end})(this._renderedRange,ie)||(this.appendOnly&&(ie={start:0,end:Math.max(this._renderedRange.end,ie.end)}),this._renderedRangeSubject.next(this._renderedRange=ie),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ie,_e="to-start"){ie=this.appendOnly&&"to-start"===_e?0:ie;const Fe="horizontal"==this.orientation,et=Fe?"X":"Y";let Kt=`translate${et}(${Number((Fe&&this.dir&&"rtl"==this.dir.value?-1:1)*ie)}px)`;this._renderedContentOffset=ie,"to-end"===_e&&(Kt+=` translate${et}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Kt&&(this._renderedContentTransform=Kt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ie,_e="auto"){const oe={behavior:_e};"horizontal"===this.orientation?oe.start=ie:oe.top=ie,this.scrollable.scrollTo(oe)}scrollToIndex(ie,_e="auto"){this._scrollStrategy.scrollToIndex(ie,_e)}measureScrollOffset(ie){let _e;return _e=this.scrollable==this?oe=>super.measureScrollOffset(oe):oe=>this.scrollable.measureScrollOffset(oe),Math.max(0,_e(ie??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ie){let _e;const et="rtl"==this.dir?.value;_e="start"==ie?et?"right":"left":"end"==ie?et?"left":"right":ie||("horizontal"===this.orientation?"left":"top");const ut=this.scrollable.measureBoundingClientRectWithScrollOffset(_e);return this.elementRef.nativeElement.getBoundingClientRect()[_e]-ut}measureRenderedContentSize(){const ie=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ie.offsetWidth:ie.offsetHeight}measureRangeSize(ie){return this._forOf?this._forOf.measureRangeSize(ie,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ie){ie&&this._runAfterChangeDetection.push(ie),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,(0,r.mal)(()=>{this._isChangeDetectionPending=!1;const ie=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const _e of ie)_e()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(r.SKi),r.rXU(vt,8),r.rXU(we.dS,8),r.rXU(st),r.rXU(Tt),r.rXU(en,8))};static#t=this.\u0275cmp=r.VBU({type:Ue,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(_e,oe){if(1&_e&&r.GBs(Be,7),2&_e){let Fe;r.mGM(Fe=r.lsd())&&(oe._contentWrapper=Fe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(_e,oe){2&_e&&r.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===oe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==oe.orientation)},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",r.L39]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[r.Jv_([{provide:Ct,useFactory:(ie,_e)=>ie||_e,deps:[[new r.Xx1,new r.y_5(en)],Ue]}]),r.GFd,r.Vt3,r.aNF],ngContentSelectors:Pt,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(_e,oe){1&_e&&(r.NAR(),r.j41(0,"div",1,0),r.SdG(2),r.k0s(),r.nrm(3,"div",2)),2&_e&&(r.R7$(3),r.xc7("width",oe._totalContentWidth)("height",oe._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})}return Ue})();function zn(Ue,Ae,ie){if(!ie.getBoundingClientRect)return 0;const oe=ie.getBoundingClientRect();return"horizontal"===Ue?"start"===Ae?oe.left:oe.right:"start"===Ae?oe.top:oe.bottom}let bt=(()=>{class Ue{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(ie){this._cdkVirtualForOf=ie,function H(Ue){return Ue&&"function"==typeof Ue.connect&&!(Ue instanceof me.G)}(ie)?this._dataSourceChanges.next(ie):this._dataSourceChanges.next(new z((0,w.A)(ie)?ie:Array.from(ie||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(ie){this._needsUpdate=!0,this._cdkVirtualForTrackBy=ie?(_e,oe)=>ie(_e+(this._renderedRange?this._renderedRange.start:0),oe):void 0}set cdkVirtualForTemplate(ie){ie&&(this._needsUpdate=!0,this._template=ie)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(ie){this._viewRepeater.viewCacheSize=(0,t.OE)(ie)}constructor(ie,_e,oe,Fe,et,ut){this._viewContainerRef=ie,this._template=_e,this._differs=oe,this._viewRepeater=Fe,this._viewport=et,this.viewChange=new g.B,this._dataSourceChanges=new g.B,this.dataStream=this._dataSourceChanges.pipe((0,x.Z)(null),(0,ne.J)(),(0,J.n)(([Kt,cn])=>this._changeDataSource(Kt,cn)),(0,be.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new g.B,this.dataStream.subscribe(Kt=>{this._data=Kt,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,V.Q)(this._destroyed)).subscribe(Kt=>{this._renderedRange=Kt,this.viewChange.observers.length&&ut.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(ie,_e){if(ie.start>=ie.end)return 0;const oe=ie.start-this._renderedRange.start,Fe=ie.end-ie.start;let et,ut;for(let Kt=0;Kt-1;Kt--){const cn=this._viewContainerRef.get(Kt+oe);if(cn&&cn.rootNodes.length){ut=cn.rootNodes[cn.rootNodes.length-1];break}}return et&&ut?zn(_e,"end",ut)-zn(_e,"start",et):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const ie=this._differ.diff(this._renderedItems);ie?this._applyChanges(ie):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((ie,_e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(ie,_e):_e)),this._needsUpdate=!0)}_changeDataSource(ie,_e){return ie&&ie.disconnect(this),this._needsUpdate=!0,_e?_e.connect(this):(0,e.of)()}_updateContext(){const ie=this._data.length;let _e=this._viewContainerRef.length;for(;_e--;){const oe=this._viewContainerRef.get(_e);oe.context.index=this._renderedRange.start+_e,oe.context.count=ie,this._updateComputedContextProperties(oe.context),oe.detectChanges()}}_applyChanges(ie){this._viewRepeater.applyChanges(ie,this._viewContainerRef,(Fe,et,ut)=>this._getEmbeddedViewArgs(Fe,ut),Fe=>Fe.item),ie.forEachIdentityChange(Fe=>{this._viewContainerRef.get(Fe.currentIndex).context.$implicit=Fe.item});const _e=this._data.length;let oe=this._viewContainerRef.length;for(;oe--;){const Fe=this._viewContainerRef.get(oe);Fe.context.index=this._renderedRange.start+oe,Fe.context.count=_e,this._updateComputedContextProperties(Fe.context)}}_updateComputedContextProperties(ie){ie.first=0===ie.index,ie.last=ie.index===ie.count-1,ie.even=ie.index%2==0,ie.odd=!ie.even}_getEmbeddedViewArgs(ie,_e){return{templateRef:this._template,context:{$implicit:ie.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:_e}}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3),r.rXU(pe),r.rXU(Hn,4),r.rXU(r.SKi))};static#t=this.\u0275dir=r.FsC({type:Ue,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[r.Jv_([{provide:pe,useClass:S}])]})}return Ue})(),Ot=(()=>{class Ue{static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275mod=r.$C({type:Ue});static#n=this.\u0275inj=r.G2t({})}return Ue})(),Yt=(()=>{class Ue{static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275mod=r.$C({type:Ue});static#n=this.\u0275inj=r.G2t({imports:[we.jI,Ot,we.jI,Ot]})}return Ue})()},177:(Rt,De,c)=>{c.d(De,{AJ:()=>qn,B3:()=>so,EO:()=>lo,GH:()=>$o,IJ:()=>Mi,Jj:()=>fr,MD:()=>Qn,N0:()=>eo,PV:()=>qi,Pc:()=>xn,QT:()=>g,QX:()=>Wt,Sm:()=>ne,Sq:()=>$t,T3:()=>Yi,TG:()=>Ce,UE:()=>ei,VF:()=>M,Vy:()=>li,WO:()=>Ni,Xr:()=>mi,YU:()=>Mr,ZD:()=>e,_b:()=>Zi,a:()=>Ct,aZ:()=>be,bT:()=>Yn,e1:()=>ro,fG:()=>vi,fw:()=>J,gz:()=>S,hb:()=>V,hj:()=>A,lG:()=>nt,pM:()=>$t,qQ:()=>L,ux:()=>gi,vh:()=>us,xv:()=>ci});var t=c(3953);let r=null;function g(){return r}function e(W){r??=W}class M{}const L=new t.nKC("");let B=(()=>{class W{historyGo(Te){throw new Error("")}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:()=>(0,t.WQX)(w),providedIn:"platform"})}return W})();const A=new t.nKC("");let w=(()=>{class W extends B{constructor(){super(),this._doc=(0,t.WQX)(L),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(Te){const Ge=g().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("popstate",Te,!1),()=>Ge.removeEventListener("popstate",Te)}onHashChange(Te){const Ge=g().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("hashchange",Te,!1),()=>Ge.removeEventListener("hashchange",Te)}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(Te){this._location.pathname=Te}pushState(Te,Ge,Nt){this._history.pushState(Te,Ge,Nt)}replaceState(Te,Ge,Nt){this._history.replaceState(Te,Ge,Nt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Te=0){this._history.go(Te)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:()=>new W,providedIn:"platform"})}return W})();function I(W,it){if(0==W.length)return it;if(0==it.length)return W;let Te=0;return W.endsWith("/")&&Te++,it.startsWith("/")&&Te++,2==Te?W+it.substring(1):1==Te?W+it:W+"/"+it}function F(W){const it=W.match(/#|\?|$/),Te=it&&it.index||W.length;return W.slice(0,Te-("/"===W[Te-1]?1:0))+W.slice(Te)}function X(W){return W&&"?"!==W[0]?"?"+W:W}let V=(()=>{class W{historyGo(Te){throw new Error("")}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:()=>(0,t.WQX)(ne),providedIn:"root"})}return W})();const x=new t.nKC("");let ne=(()=>{class W extends V{constructor(Te,Ge){super(),this._platformLocation=Te,this._removeListenerFns=[],this._baseHref=Ge??this._platformLocation.getBaseHrefFromDOM()??(0,t.WQX)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Te){this._removeListenerFns.push(this._platformLocation.onPopState(Te),this._platformLocation.onHashChange(Te))}getBaseHref(){return this._baseHref}prepareExternalUrl(Te){return I(this._baseHref,Te)}path(Te=!1){const Ge=this._platformLocation.pathname+X(this._platformLocation.search),Nt=this._platformLocation.hash;return Nt&&Te?`${Ge}${Nt}`:Ge}pushState(Te,Ge,Nt,gn){const Pn=this.prepareExternalUrl(Nt+X(gn));this._platformLocation.pushState(Te,Ge,Pn)}replaceState(Te,Ge,Nt,gn){const Pn=this.prepareExternalUrl(Nt+X(gn));this._platformLocation.replaceState(Te,Ge,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Te=0){this._platformLocation.historyGo?.(Te)}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(B),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})(),J=(()=>{class W extends V{constructor(Te,Ge){super(),this._platformLocation=Te,this._baseHref="",this._removeListenerFns=[],null!=Ge&&(this._baseHref=Ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Te){this._removeListenerFns.push(this._platformLocation.onPopState(Te),this._platformLocation.onHashChange(Te))}getBaseHref(){return this._baseHref}path(Te=!1){const Ge=this._platformLocation.hash??"#";return Ge.length>0?Ge.substring(1):Ge}prepareExternalUrl(Te){const Ge=I(this._baseHref,Te);return Ge.length>0?"#"+Ge:Ge}pushState(Te,Ge,Nt,gn){let Pn=this.prepareExternalUrl(Nt+X(gn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.pushState(Te,Ge,Pn)}replaceState(Te,Ge,Nt,gn){let Pn=this.prepareExternalUrl(Nt+X(gn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.replaceState(Te,Ge,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Te=0){this._platformLocation.historyGo?.(Te)}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(B),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:W,factory:W.\u0275fac})}return W})(),be=(()=>{class W{constructor(Te){this._subject=new t.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Te;const Ge=this._locationStrategy.getBaseHref();this._basePath=function me(W){if(new RegExp("^(https?:)?//").test(W)){const[,Te]=W.split(/\/\/[^\/]+/);return Te}return W}(F(we(Ge))),this._locationStrategy.onPopState(Nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Nt.state,type:Nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Te=!1){return this.normalize(this._locationStrategy.path(Te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Te,Ge=""){return this.path()==this.normalize(Te+X(Ge))}normalize(Te){return W.stripTrailingSlash(function he(W,it){if(!W||!it.startsWith(W))return it;const Te=it.substring(W.length);return""===Te||["/",";","?","#"].includes(Te[0])?Te:it}(this._basePath,we(Te)))}prepareExternalUrl(Te){return Te&&"/"!==Te[0]&&(Te="/"+Te),this._locationStrategy.prepareExternalUrl(Te)}go(Te,Ge="",Nt=null){this._locationStrategy.pushState(Nt,"",Te,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Te+X(Ge)),Nt)}replaceState(Te,Ge="",Nt=null){this._locationStrategy.replaceState(Nt,"",Te,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Te+X(Ge)),Nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Te=0){this._locationStrategy.historyGo?.(Te)}onUrlChange(Te){return this._urlChangeListeners.push(Te),this._urlChangeSubscription??=this.subscribe(Ge=>{this._notifyUrlChangeListeners(Ge.url,Ge.state)}),()=>{const Ge=this._urlChangeListeners.indexOf(Te);this._urlChangeListeners.splice(Ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Te="",Ge){this._urlChangeListeners.forEach(Nt=>Nt(Te,Ge))}subscribe(Te,Ge,Nt){return this._subject.subscribe({next:Te,error:Ge,complete:Nt})}static#e=this.normalizeQueryParams=X;static#t=this.joinWithSlash=I;static#n=this.stripTrailingSlash=F;static#i=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(V))};static#o=this.\u0275prov=t.jDH({token:W,factory:()=>function Oe(){return new be((0,t.KVO)(V))}(),providedIn:"root"})}return W})();function we(W){return W.replace(/\/index.html$/,"")}var H=function(W){return W[W.Decimal=0]="Decimal",W[W.Percent=1]="Percent",W[W.Currency=2]="Currency",W[W.Scientific=3]="Scientific",W}(H||{}),z=function(W){return W[W.Zero=0]="Zero",W[W.One=1]="One",W[W.Two=2]="Two",W[W.Few=3]="Few",W[W.Many=4]="Many",W[W.Other=5]="Other",W}(z||{}),Z=function(W){return W[W.Format=0]="Format",W[W.Standalone=1]="Standalone",W}(Z||{}),pe=function(W){return W[W.Narrow=0]="Narrow",W[W.Abbreviated=1]="Abbreviated",W[W.Wide=2]="Wide",W[W.Short=3]="Short",W}(pe||{}),E=function(W){return W[W.Short=0]="Short",W[W.Medium=1]="Medium",W[W.Long=2]="Long",W[W.Full=3]="Full",W}(E||{});const S={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function zt(W,it){return Et((0,t.H5H)(W)[t.KH2.DateFormat],it)}function xt(W,it){return Et((0,t.H5H)(W)[t.KH2.TimeFormat],it)}function st(W,it){return Et((0,t.H5H)(W)[t.KH2.DateTimeFormat],it)}function Ct(W,it){const Te=(0,t.H5H)(W),Ge=Te[t.KH2.NumberSymbols][it];if(typeof Ge>"u"){if(it===S.CurrencyDecimal)return Te[t.KH2.NumberSymbols][S.Decimal];if(it===S.CurrencyGroup)return Te[t.KH2.NumberSymbols][S.Group]}return Ge}const fn=t.mq5;function Hn(W){if(!W[t.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${W[t.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Et(W,it){for(let Te=it;Te>-1;Te--)if(typeof W[Te]<"u")return W[Te];throw new Error("Locale data API: locale data undefined")}function Ot(W){const[it,Te]=W.split(":");return{hours:+it,minutes:+Te}}const ie=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_e={},oe=/((?:[^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 Fe=function(W){return W[W.Short=0]="Short",W[W.ShortGMT=1]="ShortGMT",W[W.Long=2]="Long",W[W.Extended=3]="Extended",W}(Fe||{}),et=function(W){return W[W.FullYear=0]="FullYear",W[W.Month=1]="Month",W[W.Date=2]="Date",W[W.Hours=3]="Hours",W[W.Minutes=4]="Minutes",W[W.Seconds=5]="Seconds",W[W.FractionalSeconds=6]="FractionalSeconds",W[W.Day=7]="Day",W}(et||{}),ut=function(W){return W[W.DayPeriods=0]="DayPeriods",W[W.Days=1]="Days",W[W.Months=2]="Months",W[W.Eras=3]="Eras",W}(ut||{});function Kt(W,it,Te,Ge){let Nt=function re(W){if(gt(W))return W;if("number"==typeof W&&!isNaN(W))return new Date(W);if("string"==typeof W){if(W=W.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(W)){const[Nt,gn=1,Pn=1]=W.split("-").map(hi=>+hi);return cn(Nt,gn-1,Pn)}const Te=parseFloat(W);if(!isNaN(W-Te))return new Date(Te);let Ge;if(Ge=W.match(ie))return function ze(W){const it=new Date(0);let Te=0,Ge=0;const Nt=W[8]?it.setUTCFullYear:it.setFullYear,gn=W[8]?it.setUTCHours:it.setHours;W[9]&&(Te=Number(W[9]+W[10]),Ge=Number(W[9]+W[11])),Nt.call(it,Number(W[1]),Number(W[2])-1,Number(W[3]));const Pn=Number(W[4]||0)-Te,hi=Number(W[5]||0)-Ge,yo=Number(W[6]||0),Gi=Math.floor(1e3*parseFloat("0."+(W[7]||0)));return gn.call(it,Pn,hi,yo,Gi),it}(Ge)}const it=new Date(W);if(!gt(it))throw new Error(`Unable to convert "${W}" into a date`);return it}(W);it=Tn(Te,it)||it;let hi,Pn=[];for(;it;){if(hi=oe.exec(it),!hi){Pn.push(it);break}{Pn=Pn.concat(hi.slice(1));const To=Pn.pop();if(!To)break;it=To}}let yo=Nt.getTimezoneOffset();Ge&&(yo=Qe(Ge,yo),Nt=function Je(W,it,Te){const Ge=Te?-1:1,Nt=W.getTimezoneOffset();return function Ee(W,it){return(W=new Date(W.getTime())).setMinutes(W.getMinutes()+it),W}(W,Ge*(Qe(it,Nt)-Nt))}(Nt,Ge,!0));let Gi="";return Pn.forEach(To=>{const Xn=function St(W){if(at[W])return at[W];let it;switch(W){case"G":case"GG":case"GGG":it=qt(ut.Eras,pe.Abbreviated);break;case"GGGG":it=qt(ut.Eras,pe.Wide);break;case"GGGGG":it=qt(ut.Eras,pe.Narrow);break;case"y":it=Un(et.FullYear,1,0,!1,!0);break;case"yy":it=Un(et.FullYear,2,0,!0,!0);break;case"yyy":it=Un(et.FullYear,3,0,!1,!0);break;case"yyyy":it=Un(et.FullYear,4,0,!1,!0);break;case"Y":it=dt(1);break;case"YY":it=dt(2,!0);break;case"YYY":it=dt(3);break;case"YYYY":it=dt(4);break;case"M":case"L":it=Un(et.Month,1,1);break;case"MM":case"LL":it=Un(et.Month,2,1);break;case"MMM":it=qt(ut.Months,pe.Abbreviated);break;case"MMMM":it=qt(ut.Months,pe.Wide);break;case"MMMMM":it=qt(ut.Months,pe.Narrow);break;case"LLL":it=qt(ut.Months,pe.Abbreviated,Z.Standalone);break;case"LLLL":it=qt(ut.Months,pe.Wide,Z.Standalone);break;case"LLLLL":it=qt(ut.Months,pe.Narrow,Z.Standalone);break;case"w":it=Xe(1);break;case"ww":it=Xe(2);break;case"W":it=Xe(1,!0);break;case"d":it=Un(et.Date,1);break;case"dd":it=Un(et.Date,2);break;case"c":case"cc":it=Un(et.Day,1);break;case"ccc":it=qt(ut.Days,pe.Abbreviated,Z.Standalone);break;case"cccc":it=qt(ut.Days,pe.Wide,Z.Standalone);break;case"ccccc":it=qt(ut.Days,pe.Narrow,Z.Standalone);break;case"cccccc":it=qt(ut.Days,pe.Short,Z.Standalone);break;case"E":case"EE":case"EEE":it=qt(ut.Days,pe.Abbreviated);break;case"EEEE":it=qt(ut.Days,pe.Wide);break;case"EEEEE":it=qt(ut.Days,pe.Narrow);break;case"EEEEEE":it=qt(ut.Days,pe.Short);break;case"a":case"aa":case"aaa":it=qt(ut.DayPeriods,pe.Abbreviated);break;case"aaaa":it=qt(ut.DayPeriods,pe.Wide);break;case"aaaaa":it=qt(ut.DayPeriods,pe.Narrow);break;case"b":case"bb":case"bbb":it=qt(ut.DayPeriods,pe.Abbreviated,Z.Standalone,!0);break;case"bbbb":it=qt(ut.DayPeriods,pe.Wide,Z.Standalone,!0);break;case"bbbbb":it=qt(ut.DayPeriods,pe.Narrow,Z.Standalone,!0);break;case"B":case"BB":case"BBB":it=qt(ut.DayPeriods,pe.Abbreviated,Z.Format,!0);break;case"BBBB":it=qt(ut.DayPeriods,pe.Wide,Z.Format,!0);break;case"BBBBB":it=qt(ut.DayPeriods,pe.Narrow,Z.Format,!0);break;case"h":it=Un(et.Hours,1,-12);break;case"hh":it=Un(et.Hours,2,-12);break;case"H":it=Un(et.Hours,1);break;case"HH":it=Un(et.Hours,2);break;case"m":it=Un(et.Minutes,1);break;case"mm":it=Un(et.Minutes,2);break;case"s":it=Un(et.Seconds,1);break;case"ss":it=Un(et.Seconds,2);break;case"S":it=Un(et.FractionalSeconds,1);break;case"SS":it=Un(et.FractionalSeconds,2);break;case"SSS":it=Un(et.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":it=Ut(Fe.Short);break;case"ZZZZZ":it=Ut(Fe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":it=Ut(Fe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":it=Ut(Fe.Long);break;default:return null}return at[W]=it,it}(To);Gi+=Xn?Xn(Nt,Te,yo):"''"===To?"'":To.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Gi}function cn(W,it,Te){const Ge=new Date(0);return Ge.setFullYear(W,it,Te),Ge.setHours(0,0,0),Ge}function Tn(W,it){const Te=function Y(W){return(0,t.H5H)(W)[t.KH2.LocaleId]}(W);if(_e[Te]??={},_e[Te][it])return _e[Te][it];let Ge="";switch(it){case"shortDate":Ge=zt(W,E.Short);break;case"mediumDate":Ge=zt(W,E.Medium);break;case"longDate":Ge=zt(W,E.Long);break;case"fullDate":Ge=zt(W,E.Full);break;case"shortTime":Ge=xt(W,E.Short);break;case"mediumTime":Ge=xt(W,E.Medium);break;case"longTime":Ge=xt(W,E.Long);break;case"fullTime":Ge=xt(W,E.Full);break;case"short":const Nt=Tn(W,"shortTime"),gn=Tn(W,"shortDate");Ge=Wn(st(W,E.Short),[Nt,gn]);break;case"medium":const Pn=Tn(W,"mediumTime"),hi=Tn(W,"mediumDate");Ge=Wn(st(W,E.Medium),[Pn,hi]);break;case"long":const yo=Tn(W,"longTime"),Gi=Tn(W,"longDate");Ge=Wn(st(W,E.Long),[yo,Gi]);break;case"full":const To=Tn(W,"fullTime"),Xn=Tn(W,"fullDate");Ge=Wn(st(W,E.Full),[To,Xn])}return Ge&&(_e[Te][it]=Ge),Ge}function Wn(W,it){return it&&(W=W.replace(/\{([^}]+)}/g,function(Te,Ge){return null!=it&&Ge in it?it[Ge]:Te})),W}function kn(W,it,Te="-",Ge,Nt){let gn="";(W<0||Nt&&W<=0)&&(Nt?W=1-W:(W=-W,gn=Te));let Pn=String(W);for(;Pn.length0||hi>-Te)&&(hi+=Te),W===et.Hours)0===hi&&-12===Te&&(hi=12);else if(W===et.FractionalSeconds)return function Vn(W,it){return kn(W,3).substring(0,it)}(hi,it);const yo=Ct(Pn,S.MinusSign);return kn(hi,it,yo,Ge,Nt)}}function qt(W,it,Te=Z.Format,Ge=!1){return function(Nt,gn){return function On(W,it,Te,Ge,Nt,gn){switch(Te){case ut.Months:return function Pt(W,it,Te){const Ge=(0,t.H5H)(W),gn=Et([Ge[t.KH2.MonthsFormat],Ge[t.KH2.MonthsStandalone]],it);return Et(gn,Te)}(it,Nt,Ge)[W.getMonth()];case ut.Days:return function Be(W,it,Te){const Ge=(0,t.H5H)(W),gn=Et([Ge[t.KH2.DaysFormat],Ge[t.KH2.DaysStandalone]],it);return Et(gn,Te)}(it,Nt,Ge)[W.getDay()];case ut.DayPeriods:const Pn=W.getHours(),hi=W.getMinutes();if(gn){const Gi=function zn(W){const it=(0,t.H5H)(W);return Hn(it),(it[t.KH2.ExtraData][2]||[]).map(Ge=>"string"==typeof Ge?Ot(Ge):[Ot(Ge[0]),Ot(Ge[1])])}(it),To=function bt(W,it,Te){const Ge=(0,t.H5H)(W);Hn(Ge);const gn=Et([Ge[t.KH2.ExtraData][0],Ge[t.KH2.ExtraData][1]],it)||[];return Et(gn,Te)||[]}(it,Nt,Ge),Xn=Gi.findIndex(xo=>{if(Array.isArray(xo)){const[Wi,Po]=xo,Qr=Pn>=Wi.hours&&hi>=Wi.minutes,Rr=Pn0?Math.floor(Nt/60):Math.ceil(Nt/60);switch(W){case Fe.Short:return(Nt>=0?"+":"")+kn(Pn,2,gn)+kn(Math.abs(Nt%60),2,gn);case Fe.ShortGMT:return"GMT"+(Nt>=0?"+":"")+kn(Pn,1,gn);case Fe.Long:return"GMT"+(Nt>=0?"+":"")+kn(Pn,2,gn)+":"+kn(Math.abs(Nt%60),2,gn);case Fe.Extended:return 0===Ge?"Z":(Nt>=0?"+":"")+kn(Pn,2,gn)+":"+kn(Math.abs(Nt%60),2,gn);default:throw new Error(`Unknown zone width "${W}"`)}}}const Ye=0,ue=4;function q(W){const it=W.getDay(),Te=0===it?-3:ue-it;return cn(W.getFullYear(),W.getMonth(),W.getDate()+Te)}function Xe(W,it=!1){return function(Te,Ge){let Nt;if(it){const gn=new Date(Te.getFullYear(),Te.getMonth(),1).getDay()-1,Pn=Te.getDate();Nt=1+Math.floor((Pn+gn)/7)}else{const gn=q(Te),Pn=function te(W){const it=cn(W,Ye,1).getDay();return cn(W,0,1+(it<=ue?ue:ue+7)-it)}(gn.getFullYear()),hi=gn.getTime()-Pn.getTime();Nt=1+Math.round(hi/6048e5)}return kn(Nt,W,Ct(Ge,S.MinusSign))}}function dt(W,it=!1){return function(Te,Ge){return kn(q(Te).getFullYear(),W,Ct(Ge,S.MinusSign),it)}}const at={};function Qe(W,it){W=W.replace(/:/g,"");const Te=Date.parse("Jan 01, 1970 00:00:00 "+W)/6e4;return isNaN(Te)?it:Te}function gt(W){return W instanceof Date&&!isNaN(W.valueOf())}const Ke=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$="0";function jn(W){const it=parseInt(W);if(isNaN(it))throw new Error("Invalid integer literal when parsing "+W);return it}let Gn=(()=>{class W{static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:function(Ge){let Nt=null;return Ge?Nt=new Ge:(gn=t.KVO(t.xe9),Nt=new Oi(gn)),Nt;var gn},providedIn:"root"})}return W})();let Oi=(()=>{class W extends Gn{constructor(Te){super(),this.locale=Te}getPluralCategory(Te,Ge){switch(fn(Ge||this.locale)(Te)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(t.xe9))};static#t=this.\u0275prov=t.jDH({token:W,factory:W.\u0275fac})}return W})();function lo(W,it,Te){return(0,t.XSP)(W,it,Te)}function Zi(W,it){it=encodeURIComponent(it);for(const Te of W.split(";")){const Ge=Te.indexOf("="),[Nt,gn]=-1==Ge?[Te,""]:[Te.slice(0,Ge),Te.slice(Ge+1)];if(Nt.trim()===it)return decodeURIComponent(gn)}return null}const Bo=/\s+/,bo=[];let Mr=(()=>{class W{constructor(Te,Ge){this._ngEl=Te,this._renderer=Ge,this.initialClasses=bo,this.stateMap=new Map}set klass(Te){this.initialClasses=null!=Te?Te.trim().split(Bo):bo}set ngClass(Te){this.rawClass="string"==typeof Te?Te.trim().split(Bo):Te}ngDoCheck(){for(const Ge of this.initialClasses)this._updateState(Ge,!0);const Te=this.rawClass;if(Array.isArray(Te)||Te instanceof Set)for(const Ge of Te)this._updateState(Ge,!0);else if(null!=Te)for(const Ge of Object.keys(Te))this._updateState(Ge,!!Te[Ge]);this._applyStateDiff()}_updateState(Te,Ge){const Nt=this.stateMap.get(Te);void 0!==Nt?(Nt.enabled!==Ge&&(Nt.changed=!0,Nt.enabled=Ge),Nt.touched=!0):this.stateMap.set(Te,{enabled:Ge,changed:!0,touched:!0})}_applyStateDiff(){for(const Te of this.stateMap){const Ge=Te[0],Nt=Te[1];Nt.changed?(this._toggleClass(Ge,Nt.enabled),Nt.changed=!1):Nt.touched||(Nt.enabled&&this._toggleClass(Ge,!1),this.stateMap.delete(Ge)),Nt.touched=!1}}_toggleClass(Te,Ge){(Te=Te.trim()).length>0&&Te.split(Bo).forEach(Nt=>{Ge?this._renderer.addClass(this._ngEl.nativeElement,Nt):this._renderer.removeClass(this._ngEl.nativeElement,Nt)})}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return W})();class Lt{constructor(it,Te,Ge,Nt){this.$implicit=it,this.ngForOf=Te,this.index=Ge,this.count=Nt}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 $t=(()=>{class W{set ngForOf(Te){this._ngForOf=Te,this._ngForOfDirty=!0}set ngForTrackBy(Te){this._trackByFn=Te}get ngForTrackBy(){return this._trackByFn}constructor(Te,Ge,Nt){this._viewContainer=Te,this._template=Ge,this._differs=Nt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Te){Te&&(this._template=Te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Te=this._ngForOf;!this._differ&&Te&&(this._differ=this._differs.find(Te).create(this.ngForTrackBy))}if(this._differ){const Te=this._differ.diff(this._ngForOf);Te&&this._applyChanges(Te)}}_applyChanges(Te){const Ge=this._viewContainer;Te.forEachOperation((Nt,gn,Pn)=>{if(null==Nt.previousIndex)Ge.createEmbeddedView(this._template,new Lt(Nt.item,this._ngForOf,-1,-1),null===Pn?void 0:Pn);else if(null==Pn)Ge.remove(null===gn?void 0:gn);else if(null!==gn){const hi=Ge.get(gn);Ge.move(hi,Pn),mn(hi,Nt)}});for(let Nt=0,gn=Ge.length;Nt{mn(Ge.get(Nt.currentIndex),Nt)})}static ngTemplateContextGuard(Te,Ge){return!0}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(t._q3))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return W})();function mn(W,it){W.context.$implicit=it.item}let Yn=(()=>{class W{constructor(Te,Ge){this._viewContainer=Te,this._context=new En,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ge}set ngIf(Te){this._context.$implicit=this._context.ngIf=Te,this._updateView()}set ngIfThen(Te){Kn("ngIfThen",Te),this._thenTemplateRef=Te,this._thenViewRef=null,this._updateView()}set ngIfElse(Te){Kn("ngIfElse",Te),this._elseTemplateRef=Te,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(Te,Ge){return!0}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return W})();class En{constructor(){this.$implicit=null,this.ngIf=null}}function Kn(W,it){if(it&&!it.createEmbeddedView)throw new Error(`${W} must be a TemplateRef, but received '${(0,t.Tbb)(it)}'.`)}class oi{constructor(it,Te){this._viewContainerRef=it,this._templateRef=Te,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(it){it&&!this._created?this.create():!it&&this._created&&this.destroy()}}let gi=(()=>{class W{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Te){this._ngSwitch=Te,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Te){this._defaultViews.push(Te)}_matchCase(Te){const Ge=Te===this._ngSwitch;return this._lastCasesMatched||=Ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ge}_updateDefaultCases(Te){if(this._defaultViews.length>0&&Te!==this._defaultUsed){this._defaultUsed=Te;for(const Ge of this._defaultViews)Ge.enforceState(Te)}}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return W})(),ro=(()=>{class W{constructor(Te,Ge,Nt){this.ngSwitch=Nt,Nt._addCase(),this._view=new oi(Te,Ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(gi,9))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return W})(),vi=(()=>{class W{constructor(Te,Ge,Nt){Nt._addDefault(new oi(Te,Ge))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(gi,9))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return W})(),Mi=(()=>{class W{constructor(Te){this._localization=Te,this._caseViews={}}set ngPlural(Te){this._updateView(Te)}addCase(Te,Ge){this._caseViews[Te]=Ge}_updateView(Te){this._clearViews();const Nt=function zi(W,it,Te,Ge){let Nt=`=${W}`;if(it.indexOf(Nt)>-1||(Nt=Te.getPluralCategory(W,Ge),it.indexOf(Nt)>-1))return Nt;if(it.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${W}"`)}(Te,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[Nt])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(Te){Te&&(this._activeView=Te,this._activeView.create())}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(Gn))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}return W})(),Ni=(()=>{class W{constructor(Te,Ge,Nt,gn){this.value=Te;const Pn=!isNaN(Number(Te));gn.addCase(Pn?`=${Te}`:Te,new oi(Nt,Ge))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.kS0("ngPluralCase"),t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(Mi,1))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngPluralCase",""]],standalone:!0})}return W})(),so=(()=>{class W{constructor(Te,Ge,Nt){this._ngEl=Te,this._differs=Ge,this._renderer=Nt,this._ngStyle=null,this._differ=null}set ngStyle(Te){this._ngStyle=Te,!this._differ&&Te&&(this._differ=this._differs.find(Te).create())}ngDoCheck(){if(this._differ){const Te=this._differ.diff(this._ngStyle);Te&&this._applyChanges(Te)}}_setStyle(Te,Ge){const[Nt,gn]=Te.split("."),Pn=-1===Nt.indexOf("-")?void 0:t.czy.DashCase;null!=Ge?this._renderer.setStyle(this._ngEl.nativeElement,Nt,gn?`${Ge}${gn}`:Ge,Pn):this._renderer.removeStyle(this._ngEl.nativeElement,Nt,Pn)}_applyChanges(Te){Te.forEachRemovedItem(Ge=>this._setStyle(Ge.key,null)),Te.forEachAddedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue)),Te.forEachChangedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.aKT),t.rXU(t.MKu),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return W})(),Yi=(()=>{class W{constructor(Te){this._viewContainerRef=Te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Te){if(this._shouldRecreateView(Te)){const Ge=this._viewContainerRef;if(this._viewRef&&Ge.remove(Ge.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Nt=this._createContextForwardProxy();this._viewRef=Ge.createEmbeddedView(this.ngTemplateOutlet,Nt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(Te){return!!Te.ngTemplateOutlet||!!Te.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(Te,Ge,Nt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ge,Nt),get:(Te,Ge,Nt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ge,Nt)}})}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.OA$]})}return W})();function Ki(W,it){return new t.wOt(2100,!1)}class Zo{createSubscription(it,Te){return(0,t.O8t)(()=>it.subscribe({next:Te,error:Ge=>{throw Ge}}))}dispose(it){(0,t.O8t)(()=>it.unsubscribe())}}class pr{createSubscription(it,Te){return it.then(Te,Ge=>{throw Ge})}dispose(it){}}const fo=new pr,po=new Zo;let fr=(()=>{class W{constructor(Te){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Te){if(!this._obj){if(Te)try{this.markForCheckOnValueUpdate=!1,this._subscribe(Te)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return Te!==this._obj?(this._dispose(),this.transform(Te)):this._latestValue}_subscribe(Te){this._obj=Te,this._strategy=this._selectStrategy(Te),this._subscription=this._strategy.createSubscription(Te,Ge=>this._updateLatestValue(Te,Ge))}_selectStrategy(Te){if((0,t.jNT)(Te))return fo;if((0,t.zjR)(Te))return po;throw Ki()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Te,Ge){Te===this._obj&&(this._latestValue=Ge,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.gRc,16))};static#t=this.\u0275pipe=t.EJ8({name:"async",type:W,pure:!1,standalone:!0})}return W})(),$o=(()=>{class W{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.toLowerCase()}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"lowercase",type:W,pure:!0,standalone:!0})}return W})();const Lr=/(?:[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 qi=(()=>{class W{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.replace(Lr,Ge=>Ge[0].toUpperCase()+Ge.slice(1).toLowerCase())}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"titlecase",type:W,pure:!0,standalone:!0})}return W})(),xn=(()=>{class W{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.toUpperCase()}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"uppercase",type:W,pure:!0,standalone:!0})}return W})();const Sr=new t.nKC(""),es=new t.nKC("");let us=(()=>{class W{constructor(Te,Ge,Nt){this.locale=Te,this.defaultTimezone=Ge,this.defaultOptions=Nt}transform(Te,Ge,Nt,gn){if(null==Te||""===Te||Te!=Te)return null;try{return Kt(Te,Ge??this.defaultOptions?.dateFormat??"mediumDate",gn||this.locale,Nt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pn){throw Ki()}}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.xe9,16),t.rXU(Sr,24),t.rXU(es,24))};static#t=this.\u0275pipe=t.EJ8({name:"date",type:W,pure:!0,standalone:!0})}return W})(),Ce=(()=>{class W{transform(Te){return JSON.stringify(Te,null,2)}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"json",type:W,pure:!1,standalone:!0})}return W})(),nt=(()=>{class W{constructor(Te){this.differs=Te,this.keyValues=[],this.compareFn=Mt}transform(Te,Ge=Mt){if(!Te||!(Te instanceof Map)&&"object"!=typeof Te)return null;this.differ??=this.differs.find(Te).create();const Nt=this.differ.diff(Te),gn=Ge!==this.compareFn;return Nt&&(this.keyValues=[],Nt.forEachItem(Pn=>{this.keyValues.push(function Ve(W,it){return{key:W,value:it}}(Pn.key,Pn.currentValue))})),(Nt||gn)&&(this.keyValues.sort(Ge),this.compareFn=Ge),this.keyValues}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.MKu,16))};static#t=this.\u0275pipe=t.EJ8({name:"keyvalue",type:W,pure:!1,standalone:!0})}return W})();function Mt(W,it){const Te=W.key,Ge=it.key;if(Te===Ge)return 0;if(void 0===Te)return 1;if(void 0===Ge)return-1;if(null===Te)return 1;if(null===Ge)return-1;if("string"==typeof Te&&"string"==typeof Ge)return Te{class W{constructor(Te){this._locale=Te}transform(Te,Ge,Nt){if(!function bn(W){return!(null==W||""===W||W!=W)}(Te))return null;Nt||=this._locale;try{return function rt(W,it,Te){return function U(W,it,Te,Ge,Nt,gn,Pn=!1){let hi="",yo=!1;if(isFinite(W)){let Gi=function Cn(W){let Ge,Nt,gn,Pn,hi,it=Math.abs(W)+"",Te=0;for((Nt=it.indexOf("."))>-1&&(it=it.replace(".","")),(gn=it.search(/e/i))>0?(Nt<0&&(Nt=gn),Nt+=+it.slice(gn+1),it=it.substring(0,gn)):Nt<0&&(Nt=it.length),gn=0;it.charAt(gn)===$;gn++);if(gn===(hi=it.length))Ge=[0],Nt=1;else{for(hi--;it.charAt(hi)===$;)hi--;for(Nt-=gn,Ge=[],Pn=0;gn<=hi;gn++,Pn++)Ge[Pn]=Number(it.charAt(gn))}return Nt>22&&(Ge=Ge.splice(0,21),Te=Nt-1,Nt=1),{digits:Ge,exponent:Te,integerLen:Nt}}(W);Pn&&(Gi=function on(W){if(0===W.digits[0])return W;const it=W.digits.length-W.integerLen;return W.exponent?W.exponent+=2:(0===it?W.digits.push(0,0):1===it&&W.digits.push(0),W.integerLen+=2),W}(Gi));let To=it.minInt,Xn=it.minFrac,xo=it.maxFrac;if(gn){const ms=gn.match(Ke);if(null===ms)throw new Error(`${gn} is not a valid digit info`);const Br=ms[1],gs=ms[3],vs=ms[5];null!=Br&&(To=jn(Br)),null!=gs&&(Xn=jn(gs)),null!=vs?xo=jn(vs):null!=gs&&Xn>xo&&(xo=Xn)}!function Zn(W,it,Te){if(it>Te)throw new Error(`The minimum number of digits after fraction (${it}) is higher than the maximum (${Te}).`);let Ge=W.digits,Nt=Ge.length-W.integerLen;const gn=Math.min(Math.max(it,Nt),Te);let Pn=gn+W.integerLen,hi=Ge[Pn];if(Pn>0){Ge.splice(Math.max(W.integerLen,Pn));for(let Xn=Pn;Xn=5)if(Pn-1<0){for(let Xn=0;Xn>Pn;Xn--)Ge.unshift(0),W.integerLen++;Ge.unshift(1),W.integerLen++}else Ge[Pn-1]++;for(;Nt=Gi?Po.pop():yo=!1),xo>=10?1:0},0);To&&(Ge.unshift(To),W.integerLen++)}(Gi,Xn,xo);let Wi=Gi.digits,Po=Gi.integerLen;const Qr=Gi.exponent;let Rr=[];for(yo=Wi.every(ms=>!ms);Po0?Rr=Wi.splice(Po,Wi.length):(Rr=Wi,Wi=[0]);const ws=[];for(Wi.length>=it.lgSize&&ws.unshift(Wi.splice(-it.lgSize,Wi.length).join(""));Wi.length>it.gSize;)ws.unshift(Wi.splice(-it.gSize,Wi.length).join(""));Wi.length&&ws.unshift(Wi.join("")),hi=ws.join(Ct(Te,Ge)),Rr.length&&(hi+=Ct(Te,Nt)+Rr.join("")),Qr&&(hi+=Ct(Te,S.Exponential)+"+"+Qr)}else hi=Ct(Te,S.Infinity);return hi=W<0&&!yo?it.negPre+hi+it.negSuf:it.posPre+hi+it.posSuf,hi}(W,function Ft(W,it="-"){const Te={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ge=W.split(";"),Nt=Ge[0],gn=Ge[1],Pn=-1!==Nt.indexOf(".")?Nt.split("."):[Nt.substring(0,Nt.lastIndexOf($)+1),Nt.substring(Nt.lastIndexOf($)+1)],hi=Pn[0],yo=Pn[1]||"";Te.posPre=hi.substring(0,hi.indexOf("#"));for(let To=0;To{class W{static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275mod=t.$C({type:W});static#n=this.\u0275inj=t.G2t({})}return W})();const qn="browser",pi="server";function ei(W){return W===qn}function li(W){return W===pi}const ci=new t.RxE("18.1.2");let mi=(()=>{class W{static#e=this.\u0275prov=(0,t.jDH)({token:W,providedIn:"root",factory:()=>ei((0,t.WQX)(t.Agw))?new Ei((0,t.WQX)(L),window):new Si})}return W})();class Ei{constructor(it,Te){this.document=it,this.window=Te,this.offset=()=>[0,0]}setOffset(it){this.offset=Array.isArray(it)?()=>it:it}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(it){this.window.scrollTo(it[0],it[1])}scrollToAnchor(it){const Te=function Xi(W,it){const Te=W.getElementById(it)||W.getElementsByName(it)[0];if(Te)return Te;if("function"==typeof W.createTreeWalker&&W.body&&"function"==typeof W.body.attachShadow){const Ge=W.createTreeWalker(W.body,NodeFilter.SHOW_ELEMENT);let Nt=Ge.currentNode;for(;Nt;){const gn=Nt.shadowRoot;if(gn){const Pn=gn.getElementById(it)||gn.querySelector(`[name="${it}"]`);if(Pn)return Pn}Nt=Ge.nextNode()}}return null}(this.document,it);Te&&(this.scrollToElement(Te),Te.focus())}setHistoryScrollRestoration(it){this.window.history.scrollRestoration=it}scrollToElement(it){const Te=it.getBoundingClientRect(),Ge=Te.left+this.window.pageXOffset,Nt=Te.top+this.window.pageYOffset,gn=this.offset();this.window.scrollTo(Ge-gn[0],Nt-gn[1])}}class Si{setOffset(it){}getScrollPosition(){return[0,0]}scrollToPosition(it){}scrollToAnchor(it){}setHistoryScrollRestoration(it){}}class eo{}},1626:(Rt,De,c)=>{c.d(De,{$R:()=>Je,JV:()=>X,Lr:()=>V,Qq:()=>st,Sx:()=>gt,YH:()=>Re,c2:()=>Ke});var t=c(4523),r=c(3953),g=c(7673),e=c(1985),M=c(2806),G=c(274),L=c(5964),B=c(6354),A=c(980),w=c(5558),I=c(177);class F{}class X{}class V{constructor(Lt){this.normalizedNames=new Map,this.lazyUpdate=null,Lt?"string"==typeof Lt?this.lazyInit=()=>{this.headers=new Map,Lt.split("\n").forEach($t=>{const mn=$t.indexOf(":");if(mn>0){const hn=$t.slice(0,mn),Yn=hn.toLowerCase(),En=$t.slice(mn+1).trim();this.maybeSetNormalizedName(hn,Yn),this.headers.has(Yn)?this.headers.get(Yn).push(En):this.headers.set(Yn,[En])}})}:typeof Headers<"u"&&Lt instanceof Headers?(this.headers=new Map,Lt.forEach(($t,mn)=>{this.setHeaderEntries(mn,$t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Lt).forEach(([$t,mn])=>{this.setHeaderEntries($t,mn)})}:this.headers=new Map}has(Lt){return this.init(),this.headers.has(Lt.toLowerCase())}get(Lt){this.init();const $t=this.headers.get(Lt.toLowerCase());return $t&&$t.length>0?$t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Lt){return this.init(),this.headers.get(Lt.toLowerCase())||null}append(Lt,$t){return this.clone({name:Lt,value:$t,op:"a"})}set(Lt,$t){return this.clone({name:Lt,value:$t,op:"s"})}delete(Lt,$t){return this.clone({name:Lt,value:$t,op:"d"})}maybeSetNormalizedName(Lt,$t){this.normalizedNames.has($t)||this.normalizedNames.set($t,Lt)}init(){this.lazyInit&&(this.lazyInit instanceof V?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Lt=>this.applyUpdate(Lt)),this.lazyUpdate=null))}copyFrom(Lt){Lt.init(),Array.from(Lt.headers.keys()).forEach($t=>{this.headers.set($t,Lt.headers.get($t)),this.normalizedNames.set($t,Lt.normalizedNames.get($t))})}clone(Lt){const $t=new V;return $t.lazyInit=this.lazyInit&&this.lazyInit instanceof V?this.lazyInit:this,$t.lazyUpdate=(this.lazyUpdate||[]).concat([Lt]),$t}applyUpdate(Lt){const $t=Lt.name.toLowerCase();switch(Lt.op){case"a":case"s":let mn=Lt.value;if("string"==typeof mn&&(mn=[mn]),0===mn.length)return;this.maybeSetNormalizedName(Lt.name,$t);const hn=("a"===Lt.op?this.headers.get($t):void 0)||[];hn.push(...mn),this.headers.set($t,hn);break;case"d":const Yn=Lt.value;if(Yn){let En=this.headers.get($t);if(!En)return;En=En.filter(Kn=>-1===Yn.indexOf(Kn)),0===En.length?(this.headers.delete($t),this.normalizedNames.delete($t)):this.headers.set($t,En)}else this.headers.delete($t),this.normalizedNames.delete($t)}}setHeaderEntries(Lt,$t){const mn=(Array.isArray($t)?$t:[$t]).map(Yn=>Yn.toString()),hn=Lt.toLowerCase();this.headers.set(hn,mn),this.maybeSetNormalizedName(Lt,hn)}forEach(Lt){this.init(),Array.from(this.normalizedNames.keys()).forEach($t=>Lt(this.normalizedNames.get($t),this.headers.get($t)))}}class ne{encodeKey(Lt){return he(Lt)}encodeValue(Lt){return he(Lt)}decodeKey(Lt){return decodeURIComponent(Lt)}decodeValue(Lt){return decodeURIComponent(Lt)}}const be=/%(\d[a-f0-9])/gi,Oe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(lt){return encodeURIComponent(lt).replace(be,(Lt,$t)=>Oe[$t]??Lt)}function we(lt){return`${lt}`}class me{constructor(Lt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Lt.encoder||new ne,Lt.fromString){if(Lt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function J(lt,Lt){const $t=new Map;return lt.length>0&<.replace(/^\?/,"").split("&").forEach(hn=>{const Yn=hn.indexOf("="),[En,Kn]=-1==Yn?[Lt.decodeKey(hn),""]:[Lt.decodeKey(hn.slice(0,Yn)),Lt.decodeValue(hn.slice(Yn+1))],oi=$t.get(En)||[];oi.push(Kn),$t.set(En,oi)}),$t}(Lt.fromString,this.encoder)}else Lt.fromObject?(this.map=new Map,Object.keys(Lt.fromObject).forEach($t=>{const mn=Lt.fromObject[$t],hn=Array.isArray(mn)?mn.map(we):[we(mn)];this.map.set($t,hn)})):this.map=null}has(Lt){return this.init(),this.map.has(Lt)}get(Lt){this.init();const $t=this.map.get(Lt);return $t?$t[0]:null}getAll(Lt){return this.init(),this.map.get(Lt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Lt,$t){return this.clone({param:Lt,value:$t,op:"a"})}appendAll(Lt){const $t=[];return Object.keys(Lt).forEach(mn=>{const hn=Lt[mn];Array.isArray(hn)?hn.forEach(Yn=>{$t.push({param:mn,value:Yn,op:"a"})}):$t.push({param:mn,value:hn,op:"a"})}),this.clone($t)}set(Lt,$t){return this.clone({param:Lt,value:$t,op:"s"})}delete(Lt,$t){return this.clone({param:Lt,value:$t,op:"d"})}toString(){return this.init(),this.keys().map(Lt=>{const $t=this.encoder.encodeKey(Lt);return this.map.get(Lt).map(mn=>$t+"="+this.encoder.encodeValue(mn)).join("&")}).filter(Lt=>""!==Lt).join("&")}clone(Lt){const $t=new me({encoder:this.encoder});return $t.cloneFrom=this.cloneFrom||this,$t.updates=(this.updates||[]).concat(Lt),$t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Lt=>this.map.set(Lt,this.cloneFrom.map.get(Lt))),this.updates.forEach(Lt=>{switch(Lt.op){case"a":case"s":const $t=("a"===Lt.op?this.map.get(Lt.param):void 0)||[];$t.push(we(Lt.value)),this.map.set(Lt.param,$t);break;case"d":if(void 0===Lt.value){this.map.delete(Lt.param);break}{let mn=this.map.get(Lt.param)||[];const hn=mn.indexOf(we(Lt.value));-1!==hn&&mn.splice(hn,1),mn.length>0?this.map.set(Lt.param,mn):this.map.delete(Lt.param)}}}),this.cloneFrom=this.updates=null)}}class H{constructor(){this.map=new Map}set(Lt,$t){return this.map.set(Lt,$t),this}get(Lt){return this.map.has(Lt)||this.map.set(Lt,Lt.defaultValue()),this.map.get(Lt)}delete(Lt){return this.map.delete(Lt),this}has(Lt){return this.map.has(Lt)}keys(){return this.map.keys()}}function Z(lt){return typeof ArrayBuffer<"u"&< instanceof ArrayBuffer}function pe(lt){return typeof Blob<"u"&< instanceof Blob}function E(lt){return typeof FormData<"u"&< instanceof FormData}class R{constructor(Lt,$t,mn,hn){let Yn;if(this.url=$t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Lt.toUpperCase(),function z(lt){switch(lt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||hn?(this.body=void 0!==mn?mn:null,Yn=hn):Yn=mn,Yn&&(this.reportProgress=!!Yn.reportProgress,this.withCredentials=!!Yn.withCredentials,Yn.responseType&&(this.responseType=Yn.responseType),Yn.headers&&(this.headers=Yn.headers),Yn.context&&(this.context=Yn.context),Yn.params&&(this.params=Yn.params),this.transferCache=Yn.transferCache),this.headers??=new V,this.context??=new H,this.params){const En=this.params.toString();if(0===En.length)this.urlWithParams=$t;else{const Kn=$t.indexOf("?");this.urlWithParams=$t+(-1===Kn?"?":Kn<$t.length-1?"&":"")+En}}else this.params=new me,this.urlWithParams=$t}serializeBody(){return null===this.body?null:"string"==typeof this.body||Z(this.body)||pe(this.body)||E(this.body)||function S(lt){return typeof URLSearchParams<"u"&< instanceof URLSearchParams}(this.body)?this.body:this.body instanceof me?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||E(this.body)?null:pe(this.body)?this.body.type||null:Z(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof me?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Lt={}){const $t=Lt.method||this.method,mn=Lt.url||this.url,hn=Lt.responseType||this.responseType,Yn=Lt.transferCache??this.transferCache,En=void 0!==Lt.body?Lt.body:this.body,Kn=Lt.withCredentials??this.withCredentials,oi=Lt.reportProgress??this.reportProgress;let gi=Lt.headers||this.headers,ro=Lt.params||this.params;const vi=Lt.context??this.context;return void 0!==Lt.setHeaders&&(gi=Object.keys(Lt.setHeaders).reduce((pn,$i)=>pn.set($i,Lt.setHeaders[$i]),gi)),Lt.setParams&&(ro=Object.keys(Lt.setParams).reduce((pn,$i)=>pn.set($i,Lt.setParams[$i]),ro)),new R($t,mn,En,{params:ro,headers:gi,context:vi,reportProgress:oi,responseType:hn,withCredentials:Kn,transferCache:Yn})}}var Y=function(lt){return lt[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt}(Y||{});class se{constructor(Lt,$t=200,mn="OK"){this.headers=Lt.headers||new V,this.status=void 0!==Lt.status?Lt.status:$t,this.statusText=Lt.statusText||mn,this.url=Lt.url||null,this.ok=this.status>=200&&this.status<300}}class Be extends se{constructor(Lt={}){super(Lt),this.type=Y.ResponseHeader}clone(Lt={}){return new Be({headers:Lt.headers||this.headers,status:void 0!==Lt.status?Lt.status:this.status,statusText:Lt.statusText||this.statusText,url:Lt.url||this.url||void 0})}}class Pt extends se{constructor(Lt={}){super(Lt),this.type=Y.Response,this.body=void 0!==Lt.body?Lt.body:null}clone(Lt={}){return new Pt({body:void 0!==Lt.body?Lt.body:this.body,headers:Lt.headers||this.headers,status:void 0!==Lt.status?Lt.status:this.status,statusText:Lt.statusText||this.statusText,url:Lt.url||this.url||void 0})}}class vt extends se{constructor(Lt){super(Lt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Lt.url||"(unknown url)"}`:`Http failure response for ${Lt.url||"(unknown url)"}: ${Lt.status} ${Lt.statusText}`,this.error=Lt.error||null}}function xt(lt,Lt){return{body:Lt,headers:lt.headers,context:lt.context,observe:lt.observe,params:lt.params,reportProgress:lt.reportProgress,responseType:lt.responseType,withCredentials:lt.withCredentials,transferCache:lt.transferCache}}let st=(()=>{class lt{constructor($t){this.handler=$t}request($t,mn,hn={}){let Yn;if($t instanceof R)Yn=$t;else{let oi,gi;oi=hn.headers instanceof V?hn.headers:new V(hn.headers),hn.params&&(gi=hn.params instanceof me?hn.params:new me({fromObject:hn.params})),Yn=new R($t,mn,void 0!==hn.body?hn.body:null,{headers:oi,context:hn.context,params:gi,reportProgress:hn.reportProgress,responseType:hn.responseType||"json",withCredentials:hn.withCredentials,transferCache:hn.transferCache})}const En=(0,g.of)(Yn).pipe((0,G.H)(oi=>this.handler.handle(oi)));if($t instanceof R||"events"===hn.observe)return En;const Kn=En.pipe((0,L.p)(oi=>oi instanceof Pt));switch(hn.observe||"body"){case"body":switch(Yn.responseType){case"arraybuffer":return Kn.pipe((0,B.T)(oi=>{if(null!==oi.body&&!(oi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return oi.body}));case"blob":return Kn.pipe((0,B.T)(oi=>{if(null!==oi.body&&!(oi.body instanceof Blob))throw new Error("Response is not a Blob.");return oi.body}));case"text":return Kn.pipe((0,B.T)(oi=>{if(null!==oi.body&&"string"!=typeof oi.body)throw new Error("Response is not a string.");return oi.body}));default:return Kn.pipe((0,B.T)(oi=>oi.body))}case"response":return Kn;default:throw new Error(`Unreachable: unhandled observe type ${hn.observe}}`)}}delete($t,mn={}){return this.request("DELETE",$t,mn)}get($t,mn={}){return this.request("GET",$t,mn)}head($t,mn={}){return this.request("HEAD",$t,mn)}jsonp($t,mn){return this.request("JSONP",$t,{params:(new me).append(mn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($t,mn={}){return this.request("OPTIONS",$t,mn)}patch($t,mn,hn={}){return this.request("PATCH",$t,xt(hn,mn))}post($t,mn,hn={}){return this.request("POST",$t,xt(hn,mn))}put($t,mn,hn={}){return this.request("PUT",$t,xt(hn,mn))}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(F))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const Ct=/^\)\]\}',?\n/;function Tt(lt){if(lt.url)return lt.url;const Lt="X-Request-URL".toLocaleLowerCase();return lt.headers.get(Lt)}let en=(()=>{class lt{constructor(){this.fetchImpl=(0,r.WQX)(jt,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,r.WQX)(r.SKi)}handle($t){return new e.c(mn=>{const hn=new AbortController;return this.doRequest($t,hn.signal,mn).then(Vt,Yn=>mn.error(new vt({error:Yn}))),()=>hn.abort()})}doRequest($t,mn,hn){var Yn=this;return(0,t.A)(function*(){const En=Yn.createRequestInit($t);let Kn;try{const Mi=Yn.ngZone.runOutsideAngular(()=>Yn.fetchImpl($t.urlWithParams,{signal:mn,...En}));(function fn(lt){lt.then(Vt,Vt)})(Mi),hn.next({type:Y.Sent}),Kn=yield Mi}catch(Mi){return void hn.error(new vt({error:Mi,status:Mi.status??0,statusText:Mi.statusText,url:$t.urlWithParams,headers:Mi.headers}))}const oi=new V(Kn.headers),gi=Kn.statusText,ro=Tt(Kn)??$t.urlWithParams;let vi=Kn.status,pn=null;if($t.reportProgress&&hn.next(new Be({headers:oi,status:vi,statusText:gi,url:ro})),Kn.body){const Mi=Kn.headers.get("content-length"),Ni=[],so=Kn.body.getReader();let Xo,Ki,Yi=0;const Zo=typeof Zone<"u"&&Zone.current;yield Yn.ngZone.runOutsideAngular((0,t.A)(function*(){for(;;){const{done:fo,value:po}=yield so.read();if(fo)break;if(Ni.push(po),Yi+=po.length,$t.reportProgress){Ki="text"===$t.responseType?(Ki??"")+(Xo??=new TextDecoder).decode(po,{stream:!0}):void 0;const fr=()=>hn.next({type:Y.DownloadProgress,total:Mi?+Mi:void 0,loaded:Yi,partialText:Ki});Zo?Zo.run(fr):fr()}}}));const pr=Yn.concatChunks(Ni,Yi);try{const fo=Kn.headers.get("Content-Type")??"";pn=Yn.parseBody($t,pr,fo)}catch(fo){return void hn.error(new vt({error:fo,headers:new V(Kn.headers),status:Kn.status,statusText:Kn.statusText,url:Tt(Kn)??$t.urlWithParams}))}}0===vi&&(vi=pn?200:0),vi>=200&&vi<300?(hn.next(new Pt({body:pn,headers:oi,status:vi,statusText:gi,url:ro})),hn.complete()):hn.error(new vt({error:pn,headers:oi,status:vi,statusText:gi,url:ro}))})()}parseBody($t,mn,hn){switch($t.responseType){case"json":const Yn=(new TextDecoder).decode(mn).replace(Ct,"");return""===Yn?null:JSON.parse(Yn);case"text":return(new TextDecoder).decode(mn);case"blob":return new Blob([mn],{type:hn});case"arraybuffer":return mn.buffer}}createRequestInit($t){const mn={},hn=$t.withCredentials?"include":void 0;if($t.headers.forEach((Yn,En)=>mn[Yn]=En.join(",")),$t.headers.has("Accept")||(mn.Accept="application/json, text/plain, */*"),!$t.headers.has("Content-Type")){const Yn=$t.detectContentTypeHeader();null!==Yn&&(mn["Content-Type"]=Yn)}return{body:$t.serializeBody(),method:$t.method,headers:mn,credentials:hn}}concatChunks($t,mn){const hn=new Uint8Array(mn);let Yn=0;for(const En of $t)hn.set(En,Yn),Yn+=En.length;return hn}static#e=this.\u0275fac=function(mn){return new(mn||lt)};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();class jt{}function Vt(){}function Hn(lt,Lt){return Lt(lt)}function zn(lt,Lt){return($t,mn)=>Lt.intercept($t,{handle:hn=>lt(hn,mn)})}const At=new r.nKC(""),Et=new r.nKC(""),Ot=new r.nKC(""),Yt=new r.nKC("",{providedIn:"root",factory:()=>!0});function Ue(){let lt=null;return(Lt,$t)=>{null===lt&&(lt=((0,r.WQX)(At,{optional:!0})??[]).reduceRight(zn,Hn));const mn=(0,r.WQX)(r.TgB);if((0,r.WQX)(Yt)){const Yn=mn.add();return lt(Lt,$t).pipe((0,A.j)(()=>mn.remove(Yn)))}return lt(Lt,$t)}}let Fe,_e=(()=>{class lt extends F{constructor($t,mn){super(),this.backend=$t,this.injector=mn,this.chain=null,this.pendingTasks=(0,r.WQX)(r.TgB),this.contributeToStability=(0,r.WQX)(Yt)}handle($t){if(null===this.chain){const mn=Array.from(new Set([...this.injector.get(Et),...this.injector.get(Ot,[])]));this.chain=mn.reduceRight((hn,Yn)=>function bt(lt,Lt,$t){return(mn,hn)=>(0,r.N4e)($t,()=>Lt(mn,Yn=>lt(Yn,hn)))}(hn,Yn,this.injector),Hn)}if(this.contributeToStability){const mn=this.pendingTasks.add();return this.chain($t,hn=>this.backend.handle(hn)).pipe((0,A.j)(()=>this.pendingTasks.remove(mn)))}return this.chain($t,mn=>this.backend.handle(mn))}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(X),r.KVO(r.uvJ))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})(),oe=0;class Tn{}function Wn(){return"object"==typeof window?window:{}}let kn=(()=>{class lt{constructor($t,mn){this.callbackMap=$t,this.document=mn,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+oe++}handle($t){if("JSONP"!==$t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==$t.responseType)throw new Error("JSONP requests must use Json response type.");if($t.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new e.c(mn=>{const hn=this.nextCallback(),Yn=$t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${hn}$1`),En=this.document.createElement("script");En.src=Yn;let Kn=null,oi=!1;this.callbackMap[hn]=pn=>{delete this.callbackMap[hn],Kn=pn,oi=!0};const gi=()=>{En.parentNode&&En.parentNode.removeChild(En),delete this.callbackMap[hn]};return En.addEventListener("load",pn=>{this.resolvedPromise.then(()=>{gi(),oi?(mn.next(new Pt({body:Kn,status:200,statusText:"OK",url:Yn})),mn.complete()):mn.error(new vt({url:Yn,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),En.addEventListener("error",pn=>{gi(),mn.error(new vt({error:pn,status:0,statusText:"JSONP Error",url:Yn}))}),this.document.body.appendChild(En),mn.next({type:Y.Sent}),()=>{oi||this.removeListeners(En),gi()}})}removeListeners($t){Fe??=this.document.implementation.createHTMLDocument(),Fe.adoptNode($t)}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(Tn),r.KVO(I.qQ))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();function Vn(lt,Lt){return"JSONP"===lt.method?(0,r.WQX)(kn).handle(lt):Lt(lt)}const dn=/^\)\]\}',?\n/;let On=(()=>{class lt{constructor($t){this.xhrFactory=$t}handle($t){if("JSONP"===$t.method)throw new r.wOt(-2800,!1);const mn=this.xhrFactory;return(mn.\u0275loadImpl?(0,M.H)(mn.\u0275loadImpl()):(0,g.of)(null)).pipe((0,w.n)(()=>new e.c(Yn=>{const En=mn.build();if(En.open($t.method,$t.urlWithParams),$t.withCredentials&&(En.withCredentials=!0),$t.headers.forEach((Ni,so)=>En.setRequestHeader(Ni,so.join(","))),$t.headers.has("Accept")||En.setRequestHeader("Accept","application/json, text/plain, */*"),!$t.headers.has("Content-Type")){const Ni=$t.detectContentTypeHeader();null!==Ni&&En.setRequestHeader("Content-Type",Ni)}if($t.responseType){const Ni=$t.responseType.toLowerCase();En.responseType="json"!==Ni?Ni:"text"}const Kn=$t.serializeBody();let oi=null;const gi=()=>{if(null!==oi)return oi;const Ni=En.statusText||"OK",so=new V(En.getAllResponseHeaders()),Yi=function qt(lt){return"responseURL"in lt&<.responseURL?lt.responseURL:/^X-Request-URL:/m.test(lt.getAllResponseHeaders())?lt.getResponseHeader("X-Request-URL"):null}(En)||$t.url;return oi=new Be({headers:so,status:En.status,statusText:Ni,url:Yi}),oi},ro=()=>{let{headers:Ni,status:so,statusText:Yi,url:Xo}=gi(),Ki=null;204!==so&&(Ki=typeof En.response>"u"?En.responseText:En.response),0===so&&(so=Ki?200:0);let Zo=so>=200&&so<300;if("json"===$t.responseType&&"string"==typeof Ki){const pr=Ki;Ki=Ki.replace(dn,"");try{Ki=""!==Ki?JSON.parse(Ki):null}catch(fo){Ki=pr,Zo&&(Zo=!1,Ki={error:fo,text:Ki})}}Zo?(Yn.next(new Pt({body:Ki,headers:Ni,status:so,statusText:Yi,url:Xo||void 0})),Yn.complete()):Yn.error(new vt({error:Ki,headers:Ni,status:so,statusText:Yi,url:Xo||void 0}))},vi=Ni=>{const{url:so}=gi(),Yi=new vt({error:Ni,status:En.status||0,statusText:En.statusText||"Unknown Error",url:so||void 0});Yn.error(Yi)};let pn=!1;const $i=Ni=>{pn||(Yn.next(gi()),pn=!0);let so={type:Y.DownloadProgress,loaded:Ni.loaded};Ni.lengthComputable&&(so.total=Ni.total),"text"===$t.responseType&&En.responseText&&(so.partialText=En.responseText),Yn.next(so)},Mi=Ni=>{let so={type:Y.UploadProgress,loaded:Ni.loaded};Ni.lengthComputable&&(so.total=Ni.total),Yn.next(so)};return En.addEventListener("load",ro),En.addEventListener("error",vi),En.addEventListener("timeout",vi),En.addEventListener("abort",vi),$t.reportProgress&&(En.addEventListener("progress",$i),null!==Kn&&En.upload&&En.upload.addEventListener("progress",Mi)),En.send(Kn),Yn.next({type:Y.Sent}),()=>{En.removeEventListener("error",vi),En.removeEventListener("abort",vi),En.removeEventListener("load",ro),En.removeEventListener("timeout",vi),$t.reportProgress&&(En.removeEventListener("progress",$i),null!==Kn&&En.upload&&En.upload.removeEventListener("progress",Mi)),En.readyState!==En.DONE&&En.abort()}})))}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(I.N0))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const Ut=new r.nKC(""),ue=new r.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),q=new r.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Xe{}let dt=(()=>{class lt{constructor($t,mn,hn){this.doc=$t,this.platform=mn,this.cookieName=hn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $t=this.doc.cookie||"";return $t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,I._b)($t,this.cookieName),this.lastCookieString=$t),this.lastToken}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(I.qQ),r.KVO(r.Agw),r.KVO(ue))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();function at(lt,Lt){const $t=lt.url.toLowerCase();if(!(0,r.WQX)(Ut)||"GET"===lt.method||"HEAD"===lt.method||$t.startsWith("http://")||$t.startsWith("https://"))return Lt(lt);const mn=(0,r.WQX)(Xe).getToken(),hn=(0,r.WQX)(q);return null!=mn&&!lt.headers.has(hn)&&(lt=lt.clone({headers:lt.headers.set(hn,mn)})),Lt(lt)}var Qe=function(lt){return lt[lt.Interceptors=0]="Interceptors",lt[lt.LegacyInterceptors=1]="LegacyInterceptors",lt[lt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",lt[lt.NoXsrfProtection=3]="NoXsrfProtection",lt[lt.JsonpSupport=4]="JsonpSupport",lt[lt.RequestsMadeViaParent=5]="RequestsMadeViaParent",lt[lt.Fetch=6]="Fetch",lt}(Qe||{});function Ee(lt,Lt){return{\u0275kind:lt,\u0275providers:Lt}}function Je(...lt){const Lt=[st,On,_e,{provide:F,useExisting:_e},{provide:X,useFactory:()=>(0,r.WQX)(en,{optional:!0})??(0,r.WQX)(On)},{provide:Et,useValue:at,multi:!0},{provide:Ut,useValue:!0},{provide:Xe,useClass:dt}];for(const $t of lt)Lt.push(...$t.\u0275providers);return(0,r.EmA)(Lt)}const ze=new r.nKC("");function gt(){return Ee(Qe.LegacyInterceptors,[{provide:ze,useFactory:Ue},{provide:Et,useExisting:ze,multi:!0}])}function Ke({cookieName:lt,headerName:Lt}){const $t=[];return void 0!==lt&&$t.push({provide:ue,useValue:lt}),void 0!==Lt&&$t.push({provide:q,useValue:Lt}),Ee(Qe.CustomXsrfConfiguration,$t)}function Re(){return Ee(Qe.JsonpSupport,[kn,{provide:Tn,useFactory:Wn},{provide:Et,useValue:Vn,multi:!0}])}},3953:(Rt,De,c)=>{function t(n,i){return Object.is(n,i)}c.d(De,{bc$:()=>pp,iLQ:()=>xf,sZ2:()=>mh,hnV:()=>g_,Hbi:()=>yM,o8S:()=>ru,BIS:()=>K4,gRc:()=>w_,Ql9:()=>Uz,OM3:()=>s4,rjb:()=>ug,Ocv:()=>Zz,Z63:()=>ar,aKT:()=>Bt,uvJ:()=>Cs,zcH:()=>_a,bkB:()=>Sn,y_5:()=>ms,$GK:()=>co,nKC:()=>wi,zZn:()=>kr,_q3:()=>E8,MKu:()=>T8,xe9:()=>Af,Co$:()=>rv,Vns:()=>Ph,SKi:()=>Pr,Xx1:()=>Br,Agw:()=>Zh,PLl:()=>hp,rOR:()=>an,sFG:()=>eC,_9s:()=>Y3,czy:()=>jp,WPN:()=>Hd,FRM:()=>Rl,kdw:()=>vs,C4Q:()=>Jp,NYb:()=>Vz,giA:()=>f_,ZUJ:()=>gu,RxE:()=>s_,c1b:()=>rf,gXe:()=>Fs,mal:()=>Eg,Tzd:()=>bg,L39:()=>eS,EWP:()=>iS,a0P:()=>lS,Ol2:()=>h6,w6W:()=>eb,oH4:()=>S_,QZP:()=>h9,SmG:()=>oM,Rfq:()=>$n,WQX:()=>Xn,naY:()=>iM,Hps:()=>a6,QuC:()=>ia,EmA:()=>zl,Udg:()=>tS,fpN:()=>_M,HJs:()=>uS,N4e:()=>pu,vPA:()=>$g,O8t:()=>oS,H3F:()=>a_,zAP:()=>n9,H8p:()=>Dl,KH2:()=>W2,YHP:()=>ha,FOc:()=>q0,TgB:()=>Xt,wOt:()=>An,WHO:()=>h_,e01:()=>p_,lNU:()=>io,h9k:()=>n3,$MX:()=>Mh,ZF7:()=>B1,Kcf:()=>h0,e5t:()=>g0,UyX:()=>f0,cWb:()=>p0,osQ:()=>m0,H5H:()=>$6,Zy3:()=>_o,xtB:()=>_i,mq5:()=>h5,JZv:()=>Mo,LfX:()=>Ba,plB:()=>Yd,jNT:()=>d8,zjR:()=>m_,XSP:()=>wE,TL$:()=>G4,Tbb:()=>fe,rcV:()=>ml,Vt3:()=>l6,GFd:()=>ov,OA$:()=>Nl,Jv_:()=>E7,aNF:()=>T7,R7$:()=>_m,BMQ:()=>M6,HbH:()=>Yv,ZvI:()=>qv,AVh:()=>P6,BUC:()=>e5,vxM:()=>o5,wni:()=>W5,SS7:()=>e8,VBU:()=>ln,FsC:()=>ys,jDH:()=>mo,G2t:()=>Yr,$C:()=>Ai,EJ8:()=>Er,rXU:()=>T2,nrm:()=>k6,eu8:()=>V6,bVm:()=>bf,qex:()=>Cf,k0s:()=>yf,j41:()=>_f,RV6:()=>d5,xGo:()=>sh,Mr5:()=>L6,KVO:()=>Gi,kS0:()=>ku,QTQ:()=>Cm,bIt:()=>U6,lsd:()=>Q5,qSk:()=>I1,XpG:()=>k5,nI1:()=>L7,bMT:()=>B7,i5U:()=>$7,brH:()=>H7,ii3:()=>j7,SdG:()=>L5,NAR:()=>V5,Y8G:()=>I6,FS9:()=>W6,Mz_:()=>Mf,FCK:()=>K6,lJ4:()=>D7,eq3:()=>O7,l_i:()=>I7,sMw:()=>w7,ziG:()=>x7,s1E:()=>P7,l4e:()=>F7,mGM:()=>X5,r8f:()=>C7,sdS:()=>J5,Dyx:()=>c5,Z7z:()=>a5,fX1:()=>s5,Vm6:()=>r5,Njj:()=>T1,tSv:()=>F0,eBV:()=>E1,npT:()=>o3,$dS:()=>S0,B4B:()=>Lp,n$t:()=>O0,wjB:()=>z7,bH3:()=>y7,Aen:()=>nu,muq:()=>Z5,xc7:()=>x6,Kam:()=>G6,zvX:()=>B6,DNE:()=>f6,C5r:()=>U7,EFF:()=>c7,JRh:()=>Q6,SpI:()=>Sf,Lme:()=>J6,DH7:()=>v7,mxI:()=>q6,R50:()=>Z6,GBs:()=>K5});let r=null,g=!1,e=1;const M=Symbol("SIGNAL");function G(n){const i=r;return r=n,i}const w={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function I(n){if(g)throw new Error("");if(null===r)return;r.consumerOnSignalRead(n);const i=r.nextProducerIndex++;H(r),in.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function Oe(n){H(n);for(let i=0;i0}function H(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function z(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function Z(n){return void 0!==n.producerNode}const E=Symbol("UNSET"),S=Symbol("COMPUTING"),R=Symbol("ERRORED"),Y={...w,value:E,dirty:!0,error:null,equal:t,producerMustRecompute:n=>n.value===E||n.value===S,producerRecomputeValue(n){if(n.value===S)throw new Error("Detected cycle in computations.");const i=n.value;n.value=S;const o=J(n);let s;try{s=n.computation()}catch(l){s=R,n.error=l}finally{be(n,o)}i!==E&&i!==R&&s!==R&&n.equal(i,s)?n.value=i:(n.value=s,n.version++)}};let Be=function se(){throw new Error};function Pt(){Be()}let wt=null;function st(n,i){x()||Pt(),n.equal(n.value,i)||(n.value=i,function en(n){n.version++,function F(){e++}(),V(n),wt?.()}(n))}const Tt={...w,equal:t,value:void 0};const Vt=()=>{},fn={...w,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{null!==n.schedule&&n.schedule(n.ref)},hasRun:!1,cleanupFn:Vt};var zn=c(4412),bt=c(1413),At=c(8359),Et=c(6354);typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const io="https://g.co/ng/security#xss";class An extends Error{constructor(i,o){super(_o(i,o)),this.code=i}}function _o(n,i){return`NG0${Math.abs(n)}${i?": "+i:""}`}function _r(n){return{toString:n}.toString()}const sr="__parameters__";function Uo(n,i,o){return _r(()=>{const s=function Fr(n){return function(...o){if(n){const s=n(...o);for(const l in s)this[l]=s[l]}}}(i);function l(...f){if(this instanceof l)return s.apply(this,f),this;const y=new l(...f);return D.annotation=y,D;function D(j,Se,He){const _t=j.hasOwnProperty(sr)?j[sr]:Object.defineProperty(j,sr,{value:[]})[sr];for(;_t.length<=He;)_t.push(null);return(_t[He]=_t[He]||[]).push(y),j}}return o&&(l.prototype=Object.create(o.prototype)),l.prototype.ngMetadataName=n,l.annotationCls=l,l})}const Mo=globalThis;function Ze(n){for(let i in n)if(n[i]===Ze)return i;throw Error("Could not find renamed property on target object.")}function Fn(n,i){for(const o in i)i.hasOwnProperty(o)&&!n.hasOwnProperty(o)&&(n[o]=i[o])}function fe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(fe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const i=n.toString();if(null==i)return""+i;const o=i.indexOf("\n");return-1===o?i:i.substring(0,o)}function We(n,i){return null==n||""===n?null===i?"":i:null==i||""===i?n:n+" "+i}const sn=Ze({__forward_ref__:Ze});function $n(n){return n.__forward_ref__=$n,n.toString=function(){return fe(this())},n}function Bn(n){return fi(n)?n():n}function fi(n){return"function"==typeof n&&n.hasOwnProperty(sn)&&n.__forward_ref__===$n}function mo(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Yr(n){return{providers:n.providers||[],imports:n.imports||[]}}function ta(n){return mr(n,hs)||mr(n,da)}function Ba(n){return null!==ta(n)}function mr(n,i){return n.hasOwnProperty(i)?n[i]:null}function Ys(n){return n&&(n.hasOwnProperty(vc)||n.hasOwnProperty(Wr))?n[vc]:null}const hs=Ze({\u0275prov:Ze}),vc=Ze({\u0275inj:Ze}),da=Ze({ngInjectableDef:Ze}),Wr=Ze({ngInjectorDef:Ze});class wi{constructor(i,o){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=mo({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function br(n){return n&&!!n.\u0275providers}const Ds=Ze({\u0275cmp:Ze}),ja=Ze({\u0275dir:Ze}),ha=Ze({\u0275pipe:Ze}),jc=Ze({\u0275mod:Ze}),Os=Ze({\u0275fac:Ze}),Ua=Ze({__NG_ELEMENT_ID__:Ze}),_c=Ze({__NG_ENV_ID__:Ze});function Vi(n){return"string"==typeof n?n:null==n?"":String(n)}function Ks(n,i){throw new An(-201,!1)}var co=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(co||{});let Ga;function Cc(){return Ga}function Go(n){const i=Ga;return Ga=n,i}function Ar(n,i,o){const s=ta(n);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:o&co.Optional?null:void 0!==i?i:void Ks()}const za={},bc="__NG_DI_FLAG__",W="ngTempTokenPath",Te=/\n/gm,Nt="__source";let gn;function hi(n){const i=gn;return gn=n,i}function yo(n,i=co.Default){if(void 0===gn)throw new An(-203,!1);return null===gn?Ar(n,void 0,i):gn.get(n,i&co.Optional?null:void 0,i)}function Gi(n,i=co.Default){return(Cc()||yo)(Bn(n),i)}function Xn(n,i=co.Default){return Gi(n,xo(i))}function xo(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Wi(n){const i=[];for(let o=0;o({token:n})),-1),Br=Po(Uo("Optional"),8),vs=Po(Uo("SkipSelf"),4);function xs(n,i){return n.hasOwnProperty(Os)?n[Os]:null}function ns(n,i){n.forEach(o=>Array.isArray(o)?ns(o,i):i(o))}function no(n,i,o){i>=n.length?n.push(o):n.splice(i,0,o)}function Ma(n,i){return i>=n.length-1?n.pop():n.splice(i,1)[0]}function Or(n,i,o){let s=Ya(n,i);return s>=0?n[1|s]=o:(s=~s,function Yc(n,i,o,s){let l=n.length;if(l==i)n.push(o,s);else if(1===l)n.push(s,n[0]),n[0]=o;else{for(l--,n.push(n[l-1],n[l]);l>i;)n[l]=n[l-2],l--;n[i]=o,n[i+1]=s}}(n,s,i,o)),s}function yl(n,i){const o=Ya(n,i);if(o>=0)return n[1|o]}function Ya(n,i){return function zc(n,i,o){let s=0,l=n.length>>o;for(;l!==s;){const f=s+(l-s>>1),y=n[f<i?l=f:s=f+1}return~(l<i){y=f-1;break}}}for(;f-1){let f;for(;++lf?"":l[He+1].toLowerCase(),2&s&&Se!==_t){if(_s(s))return!1;y=!0}}}}else{if(!y&&!_s(s)&&!_s(j))return!1;if(y&&_s(j))continue;y=!1,s=j|1&s}}return _s(s)||y}function _s(n){return!(1&n)}function cu(n,i,o,s){if(null===i)return-1;let l=0;if(s||!o){let f=!1;for(;l-1)for(o++;o0?'="'+D+'"':"")+"]"}else 8&s?l+="."+y:4&s&&(l+=" "+y);else""!==l&&!_s(y)&&(i+=$e(f,l),l=""),s=y,f=f||!_s(s);o++}return""!==l&&(i+=$e(f,l)),i}function ln(n){return _r(()=>{const i=bl(n),o={...i,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Kc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Fs.Emulated,styles:n.styles||go,_:null,schemas:n.schemas||null,tView:null,id:""};El(o);const s=n.dependencies;return o.directiveDefs=Tl(s,!1),o.pipeDefs=Tl(s,!0),o.id=function Zd(n){let i=0;const o=[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 l of o)i=Math.imul(31,i)+l.charCodeAt(0)|0;return i+=2147483648,"c"+i}(o),o})}function si(n){return Hi(n)||So(n)}function Fi(n){return null!==n}function Ai(n){return _r(()=>({type:n.type,bootstrap:n.bootstrap||go,declarations:n.declarations||go,imports:n.imports||go,exports:n.exports||go,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Ro(n,i){if(null==n)return Jr;const o={};for(const s in n)if(n.hasOwnProperty(s)){const l=n[s];let f,y,D=As.None;Array.isArray(l)?(D=l[0],f=l[1],y=l[2]??f):(f=l,y=l),i?(o[f]=D!==As.None?[s,D]:s,i[f]=y):o[f]=s}return o}function ys(n){return _r(()=>{const i=bl(n);return El(i),i})}function Er(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 Hi(n){return n[Ds]||null}function So(n){return n[ja]||null}function er(n){return n[ha]||null}function ia(n){const i=Hi(n)||So(n)||er(n);return null!==i&&i.standalone}function tr(n,i){const o=n[jc]||null;if(!o&&!0===i)throw new Error(`Type ${fe(n)} does not have '\u0275mod' property.`);return o}function bl(n){const i={};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:i,inputTransforms:null,inputConfig:n.inputs||Jr,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||go,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ro(n.inputs,i),outputs:Ro(n.outputs),debugInfo:null}}function El(n){n.features?.forEach(i=>i(n))}function Tl(n,i){if(!n)return null;const o=i?er:si;return()=>("function"==typeof n?n():n).map(s=>o(s)).filter(Fi)}function zl(n){return{\u0275providers:n}}function j1(...n){return{\u0275providers:Sc(0,n),\u0275fromNgModule:!0}}function Sc(n,...i){const o=[],s=new Set;let l;const f=y=>{o.push(y)};return ns(i,y=>{const D=y;Zc(D,f,[],s)&&(l||=[],l.push(D))}),void 0!==l&&lu(l,f),o}function lu(n,i){for(let o=0;o{i(f,s)})}}function Zc(n,i,o,s){if(!(n=Bn(n)))return!1;let l=null,f=Ys(n);const y=!f&&Hi(n);if(f||y){if(y&&!y.standalone)return!1;l=n}else{const j=n.ngModule;if(f=Ys(j),!f)return!1;l=j}const D=s.has(l);if(y){if(D)return!1;if(s.add(l),y.dependencies){const j="function"==typeof y.dependencies?y.dependencies():y.dependencies;for(const Se of j)Zc(Se,i,o,s)}}else{if(!f)return!1;{if(null!=f.imports&&!D){let Se;s.add(l);try{ns(f.imports,He=>{Zc(He,i,o,s)&&(Se||=[],Se.push(He))})}finally{}void 0!==Se&&lu(Se,i)}if(!D){const Se=xs(l)||(()=>new l);i({provide:l,useFactory:Se,deps:go},l),i({provide:fa,useValue:l,multi:!0},l),i({provide:ar,useValue:()=>Gi(l),multi:!0},l)}const j=f.providers;if(null!=j&&!D){const Se=n;Ml(j,He=>{i(He,Se)})}}}return l!==n&&void 0!==n.providers}function Ml(n,i){for(let o of n)br(o)&&(o=o.\u0275providers),Array.isArray(o)?Ml(o,i):i(o)}const Ku=Ze({provide:String,useValue:Ze});function Sl(n){return null!==n&&"object"==typeof n&&Ku in n}function Da(n){return"function"==typeof n}const Dl=new wi(""),qc={},Qu={};let Ol;function el(){return void 0===Ol&&(Ol=new ma),Ol}class Cs{}class Dc extends Cs{get destroyed(){return this._destroyed}constructor(i,o,s,l){super(),this.parent=o,this.source=s,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Il(i,y=>this.processProvider(y)),this.records.set(Wc,Wa(void 0,this)),l.has("environment")&&this.records.set(Cs,Wa(void 0,this));const f=this.records.get(Dl);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get(fa,go,co.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const i=G(null);try{for(const s of this._ngOnDestroyHooks)s.ngOnDestroy();const o=this._onDestroyHooks;this._onDestroyHooks=[];for(const s of o)s()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),G(i)}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const o=hi(this),s=Go(void 0);try{return i()}finally{hi(o),Go(s)}}get(i,o=za,s=co.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(_c))return i[_c](this);s=xo(s);const f=hi(this),y=Go(void 0);try{if(!(s&co.SkipSelf)){let j=this.records.get(i);if(void 0===j){const Se=function e1(n){return"function"==typeof n||"object"==typeof n&&n instanceof wi}(i)&&ta(i);j=Se&&this.injectableDefInScope(Se)?Wa(Ju(i),qc):null,this.records.set(i,j)}if(null!=j)return this.hydrate(i,j)}return(s&co.Self?el():this.parent).get(i,o=s&co.Optional&&o===za?null:o)}catch(D){if("NullInjectorError"===D.name){if((D[W]=D[W]||[]).unshift(fe(i)),f)throw D;return function Rr(n,i,o,s){const l=n[W];throw i[Nt]&&l.unshift(i[Nt]),n.message=function ws(n,i,o,s=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let l=fe(i);if(Array.isArray(i))l=i.map(fe).join(" -> ");else if("object"==typeof i){let f=[];for(let y in i)if(i.hasOwnProperty(y)){let D=i[y];f.push(y+":"+("string"==typeof D?JSON.stringify(D):fe(D)))}l=`{${f.join(", ")}}`}return`${o}${s?"("+s+")":""}[${l}]: ${n.replace(Te,"\n ")}`}("\n"+n.message,l,o,s),n.ngTokenPath=l,n[W]=null,n}(D,i,"R3InjectorError",this.source)}throw D}finally{Go(y),hi(f)}}resolveInjectorInitializers(){const i=G(null),o=hi(this),s=Go(void 0);try{const f=this.get(ar,go,co.Self);for(const y of f)y()}finally{hi(o),Go(s),G(i)}}toString(){const i=[],o=this.records;for(const s of o.keys())i.push(fe(s));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new An(205,!1)}processProvider(i){let o=Da(i=Bn(i))?i:Bn(i&&i.provide);const s=function Y1(n){return Sl(n)?Wa(void 0,n.useValue):Wa(hu(n),qc)}(i);if(!Da(i)&&!0===i.multi){let l=this.records.get(o);l||(l=Wa(void 0,qc,!0),l.factory=()=>Wi(l.multi),this.records.set(o,l)),o=i,l.multi.push(i)}this.records.set(o,s)}hydrate(i,o){const s=G(null);try{return o.value===qc&&(o.value=Qu,o.value=o.factory()),"object"==typeof o.value&&o.value&&function qu(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}finally{G(s)}}injectableDefInScope(i){if(!i.providedIn)return!1;const o=Bn(i.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}removeOnDestroy(i){const o=this._onDestroyHooks.indexOf(i);-1!==o&&this._onDestroyHooks.splice(o,1)}}function Ju(n){const i=ta(n),o=null!==i?i.factory:xs(n);if(null!==o)return o;if(n instanceof wi)throw new An(204,!1);if(n instanceof Function)return function G1(n){if(n.length>0)throw new An(204,!1);const o=function Ea(n){return n&&(n[hs]||n[da])||null}(n);return null!==o?()=>o.factory(n):()=>new n}(n);throw new An(204,!1)}function hu(n,i,o){let s;if(Da(n)){const l=Bn(n);return xs(l)||Ju(l)}if(Sl(n))s=()=>Bn(n.useValue);else if(function du(n){return!(!n||!n.useFactory)}(n))s=()=>n.useFactory(...Wi(n.deps||[]));else if(function uu(n){return!(!n||!n.useExisting)}(n))s=()=>Gi(Bn(n.useExisting));else{const l=Bn(n&&(n.useClass||n.provide));if(!function Zu(n){return!!n.deps}(n))return xs(l)||Ju(l);s=()=>new l(...Wi(n.deps))}return s}function Wa(n,i,o=!1){return{factory:n,value:i,multi:o?[]:void 0}}function Il(n,i){for(const o of n)Array.isArray(o)?Il(o,i):o&&br(o)?Il(o.\u0275providers,i):i(o)}function pu(n,i){n instanceof Dc&&n.assertNotDestroyed();const s=hi(n),l=Go(void 0);try{return i()}finally{hi(s),Go(l)}}function fu(){return void 0!==Cc()||null!=function Pn(){return gn}()}function tl(n){if(!fu())throw new An(-203,!1)}const gu=Function;const No=0,ni=1,Pi=2,cr=3,Rs=4,Ir=5,$r=6,Xa=7,ko=8,lr=9,Ns=10,Ri=11,Oa=12,xl=13,Qa=14,Wo=15,Qs=16,Ja=17,oa=18,Ic=19,vu=20,ks=21,il=22,bs=23,Ti=25,Pl=1,Js=7,Za=9,or=10;var rl=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(rl||{});function Tr(n){return Array.isArray(n)&&"object"==typeof n[Pl]}function Nr(n){return Array.isArray(n)&&!0===n[Pl]}function Fl(n){return!!(4&n.flags)}function Ia(n){return n.componentOffset>-1}function sl(n){return!(1&~n.flags)}function Zr(n){return!!n.template}function xc(n){return!!(512&n[Pi])}class Rl{constructor(i,o,s){this.previousValue=i,this.currentValue=o,this.firstChange=s}isFirstChange(){return this.firstChange}}function Cu(n,i,o,s){null!==i?i.applyValueToInputSignal(i,s):n[o]=s}function Nl(){return kl}function kl(n){return n.type.prototype.ngOnChanges&&(n.setInput=m1),f1}function f1(){const n=Ll(this),i=n?.current;if(i){const o=n.previous;if(o===Jr)n.previous=i;else for(let s in i)o[s]=i[s];n.current=null,this.ngOnChanges(i)}}function m1(n,i,o,s,l){const f=this.declaredInputs[s],y=Ll(n)||function bu(n,i){return n[Vl]=i}(n,{previous:Jr,current:null}),D=y.current||(y.current={}),j=y.previous,Se=j[f];D[f]=new Rl(Se&&Se.currentValue,o,j===Jr),Cu(n,i,l,o)}Nl.ngInherit=!0;const Vl="__ngSimpleChanges__";function Ll(n){return n[Vl]||null}const Vs=function(n,i,o){},Bl="svg";function vo(n){for(;Array.isArray(n);)n=n[No];return n}function qa(n,i){return vo(i[n])}function jr(n,i){return vo(i[n.index])}function Hl(n,i){return n.data[i]}function Fc(n,i){return n[i]}function Es(n,i){const o=i[n];return Tr(o)?o:o[No]}function Eu(n){return!(128&~n[Pi])}function Ls(n,i){return null==i?null:n[i]}function v1(n){n[Ja]=0}function jl(n){1024&n[Pi]||(n[Pi]|=1024,Eu(n)&&Ul(n))}function Bs(n){return!!(9216&n[Pi]||n[bs]?.dirty)}function ec(n){n[Ns].changeDetectionScheduler?.notify(7),64&n[Pi]&&(n[Pi]|=1024),Bs(n)&&Ul(n)}function Ul(n){n[Ns].changeDetectionScheduler?.notify(0);let i=Zs(n);for(;null!==i&&!(8192&i[Pi])&&(i[Pi]|=8192,Eu(i));)i=Zs(i)}function Gl(n,i){if(!(256&~n[Pi]))throw new An(911,!1);null===n[ks]&&(n[ks]=[]),n[ks].push(i)}function Zs(n){const i=n[cr];return Nr(i)?i[cr]:i}const ji={lFrame:hl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let y1=!1;function b1(){return ji.bindingsEnabled}function tc(){return null!==ji.skipHydrationRootTNode}function Dn(){return ji.lFrame.lView}function oo(){return ji.lFrame.tView}function E1(n){return ji.lFrame.contextLView=n,n[ko]}function T1(n){return ji.lFrame.contextLView=null,n}function Io(){let n=ll();for(;null!==n&&64===n.type;)n=n.parent;return n}function ll(){return ji.lFrame.currentTNode}function Ho(n,i){const o=ji.lFrame;o.currentTNode=n,o.isParent=i}function nc(){return ji.lFrame.isParent}function Ac(){ji.lFrame.isParent=!1}function ul(){return ji.lFrame.contextLView}function z1(){return y1}function Mu(n){y1=n}function qr(){const n=ji.lFrame;let i=n.bindingRootIndex;return-1===i&&(i=n.bindingRootIndex=n.tView.bindingStartIndex),i}function qs(){return ji.lFrame.bindingIndex++}function ea(n){const i=ji.lFrame,o=i.bindingIndex;return i.bindingIndex=i.bindingIndex+n,o}function Li(n,i){const o=ji.lFrame;o.bindingIndex=o.bindingRootIndex=n,ic(i)}function ic(n){ji.lFrame.currentDirectiveIndex=n}function Xl(n){const i=ji.lFrame.currentDirectiveIndex;return-1===i?null:n[i]}function wa(){return ji.lFrame.currentQueryIndex}function Rc(n){ji.lFrame.currentQueryIndex=n}function rs(n){const i=n[ni];return 2===i.type?i.declTNode:1===i.type?n[Ir]:null}function D1(n,i,o){if(o&co.SkipSelf){let l=i,f=n;for(;!(l=l.parent,null!==l||o&co.Host||(l=rs(f),null===l||(f=f[Qa],10&l.type))););if(null===l)return!1;i=l,n=f}const s=ji.lFrame=Ql();return s.currentTNode=i,s.lView=n,!0}function Du(n){const i=Ql(),o=n[ni];ji.lFrame=i,i.currentTNode=o.firstChild,i.lView=n,i.tView=o,i.contextLView=n,i.bindingIndex=o.bindingStartIndex,i.inI18n=!1}function Ql(){const n=ji.lFrame,i=null===n?null:n.child;return null===i?hl(n):i}function hl(n){const i={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=i),i}function Jo(){const n=ji.lFrame;return ji.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const ur=Jo;function oc(){const n=Jo();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 wr(){return ji.lFrame.selectedIndex}function rc(n){ji.lFrame.selectedIndex=n}function Vo(){const n=ji.lFrame;return Hl(n.tView,n.selectedIndex)}function I1(){ji.lFrame.currentNamespace=Bl}let x1=!0;function Nc(){return x1}function Ts(n){x1=n}function zs(n,i){for(let o=i.directiveStart,s=i.directiveEnd;o=s)break}else i[j]<0&&(n[Ja]+=65536),(D>14>16&&(3&n[Pi])===i&&(n[Pi]+=16384,ac(D,f)):ac(D,f)}const Jl=-1;class cc{constructor(i,o,s){this.factory=i,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=s}}const _d={};class aa{constructor(i,o){this.injector=i,this.parentInjector=o}get(i,o,s){s=xo(s);const l=this.injector.get(i,_d,s);return l!==_d||o===_d?l:this.parentInjector.get(i,o,s)}}function pl(n){return n!==Jl}function kc(n){return 32767&n}function Vc(n,i){let o=function nh(n){return n>>16}(n),s=i;for(;o>0;)s=s[Qa],o--;return s}let P1=!0;function xu(n){const i=P1;return P1=n,i}const Cd=255,F1=5;let ih=0;const va={};function Fu(n,i){const o=Td(n,i);if(-1!==o)return o;const s=i[ni];s.firstCreatePass&&(n.injectorIndex=i.length,Ed(s.data,n),Ed(i,null),Ed(s.blueprint,null));const l=Zl(n,i),f=n.injectorIndex;if(pl(l)){const y=kc(l),D=Vc(l,i),j=D[ni].data;for(let Se=0;Se<8;Se++)i[f+Se]=D[y+Se]|j[y+Se]}return i[f+8]=l,f}function Ed(n,i){n.push(0,0,0,0,0,0,0,0,i)}function Td(n,i){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===i[n.injectorIndex+8]?-1:n.injectorIndex}function Zl(n,i){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let o=0,s=null,l=i;for(;null!==l;){if(s=eu(l),null===s)return Jl;if(o++,l=l[Qa],-1!==s.injectorIndex)return s.injectorIndex|o<<16}return Jl}function A1(n,i,o){!function bd(n,i,o){let s;"string"==typeof o?s=o.charCodeAt(0)||0:o.hasOwnProperty(Ua)&&(s=o[Ua]),null==s&&(s=o[Ua]=ih++);const l=s&Cd;i.data[n+(l>>F1)]|=1<=0?i&Cd:Hh:i}(o);if("function"==typeof f){if(!D1(i,n,s))return s&co.Host?oh(l,0,s):Md(i,o,s,l);try{let y;if(y=f(s),null!=y||s&co.Optional)return y;Ks()}finally{ur()}}else if("number"==typeof f){let y=null,D=Td(n,i),j=Jl,Se=s&co.Host?i[Wo][Ir]:null;for((-1===D||s&co.SkipSelf)&&(j=-1===D?Zl(n,i):i[D+8],j!==Jl&&rh(s,!1)?(y=i[ni],D=kc(j),i=Vc(j,i)):D=-1);-1!==D;){const He=i[ni];if(Od(f,D,He.data)){const _t=R1(D,i,o,y,s,Se);if(_t!==va)return _t}j=i[D+8],j!==Jl&&rh(s,i[ni].data[D+8]===Se)&&Od(f,D,i)?(y=He,D=kc(j),i=Vc(j,i)):D=-1}}return l}function R1(n,i,o,s,l,f){const y=i[ni],D=y.data[n+8],He=Ru(D,y,o,null==s?Ia(D)&&P1:s!=y&&!!(3&D.type),l&co.Host&&f===D);return null!==He?lc(i,y,He,D):va}function Ru(n,i,o,s,l){const f=n.providerIndexes,y=i.data,D=1048575&f,j=n.directiveStart,He=f>>20,Gt=l?D+He:n.directiveEnd;for(let Qt=s?D:D+He;Qt=j&&un.type===o)return Qt}if(l){const Qt=y[j];if(Qt&&Zr(Qt)&&Qt.type===o)return j}return null}function lc(n,i,o,s){let l=n[o];const f=i.data;if(function Lh(n){return n instanceof cc}(l)){const y=l;y.resolving&&function Uc(n,i){throw i&&i.join(" > "),new An(-200,n)}(function to(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Vi(n)}(f[o]));const D=xu(y.canSeeViewProviders);y.resolving=!0;const Se=y.injectImpl?Go(y.injectImpl):null;D1(n,s,co.Default);try{l=n[o]=y.factory(void 0,f,n,s),i.firstCreatePass&&o>=s.directiveStart&&function m(n,i,o){const{ngOnChanges:s,ngOnInit:l,ngDoCheck:f}=i.type.prototype;if(s){const y=kl(i);(o.preOrderHooks??=[]).push(n,y),(o.preOrderCheckHooks??=[]).push(n,y)}l&&(o.preOrderHooks??=[]).push(0-n,l),f&&((o.preOrderHooks??=[]).push(n,f),(o.preOrderCheckHooks??=[]).push(n,f))}(o,f[o],i)}finally{null!==Se&&Go(Se),xu(D),y.resolving=!1,ur()}}return l}function Od(n,i,o){return!!(o[i+(n>>F1)]&1<{const i=n.prototype.constructor,o=i[Os]||Nu(i),s=Object.prototype;let l=Object.getPrototypeOf(n.prototype).constructor;for(;l&&l!==s;){const f=l[Os]||Nu(l);if(f&&f!==o)return f;l=Object.getPrototypeOf(l)}return f=>new f})}function Nu(n){return fi(n)?()=>{const i=Nu(Bn(n));return i&&i()}:xs(n)}function eu(n){const i=n[ni],o=i.type;return 2===o?i.declTNode:1===o?n[Ir]:null}function ku(n){return function zd(n,i){if("class"===i)return n.classes;if("style"===i)return n.styles;const o=n.attrs;if(o){const s=o.length;let l=0;for(;lGi(Wc)});static#i=this.__NG_ELEMENT_ID__=-1}new wi("").__NG_ELEMENT_ID__=n=>{const i=Io();if(null===i)throw new An(204,!1);if(2&i.type)return i.value;if(n&co.Optional)return null;throw new An(204,!1)};function xd(n){return n.ngOriginalError}class _a{constructor(){this._console=console}handleError(i){const o=this._findOriginalError(i);this._console.error("ERROR",i),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(i){let o=i&&xd(i);for(;o&&xd(o);)o=xd(o);return o||null}}const T=new wi("",{providedIn:"root",factory:()=>Xn(_a).handleError.bind(void 0)});let d=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=v;static#t=this.__NG_ENV_ID__=o=>o}return n})();class p extends d{constructor(i){super(),this._lView=i}onDestroy(i){return Gl(this._lView,i),()=>function Tu(n,i){if(null===n[ks])return;const o=n[ks].indexOf(i);-1!==o&&n[ks].splice(o,1)}(this._lView,i)}}function v(){return new p(Dn())}function yt(){return Dt(Io(),Dn())}function Dt(n,i){return new Bt(jr(n,i))}let Bt=(()=>{class n{constructor(o){this.nativeElement=o}static#e=this.__NG_ELEMENT_ID__=yt}return n})();function Ht(n){return n instanceof Bt?n.nativeElement:n}let Xt=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new zn.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new n})}return n})();const Sn=class vn extends bt.B{constructor(i=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=i,fu()&&(this.destroyRef=Xn(d,{optional:!0})??void 0,this.pendingTasks=Xn(Xt,{optional:!0})??void 0)}emit(i){const o=G(null);try{super.next(i)}finally{G(o)}}subscribe(i,o,s){let l=i,f=o||(()=>null),y=s;if(i&&"object"==typeof i){const j=i;l=j.next?.bind(j),f=j.error?.bind(j),y=j.complete?.bind(j)}this.__isAsync&&(f=this.wrapInTimeout(f),l&&(l=this.wrapInTimeout(l)),y&&(y=this.wrapInTimeout(y)));const D=super.subscribe({next:l,error:f,complete:y});return i instanceof At.yU&&i.add(D),D}wrapInTimeout(i){return o=>{const s=this.pendingTasks?.add();setTimeout(()=>{i(o),void 0!==s&&this.pendingTasks?.remove(s)})}}};function ai(){return this._results[Symbol.iterator]()}class an{static#e=Symbol.iterator;get changes(){return this._changes??=new Sn}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const o=an.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=ai)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,o){return this._results.reduce(i,o)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,o){this.dirty=!1;const s=function Yo(n){return n.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function Tc(n,i,o){if(n.length!==i.length)return!1;for(let s=0;s=0){const D=vo(f[y]),j=Ui(f,y,D);dr(D,j),i=j;break}}}}return i||null}function Ui(n,i,o){return new Di(n[Ic],i,o)}const zr="__ngContext__";function dr(n,i){Tr(i)?(n[zr]=i[Ic],function Fa(n){vr.set(n[Ic],n)}(i)):n[zr]=i}function Fo(n){const i=n[zr];return"number"==typeof i?Pd(i):i||null}function fh(n){return n&&n.constructor&&n.constructor.\u0275cmp}function hc(n,i){const o=n[ni];for(let s=Ti;sY4}),Y4="ng",hp=new wi(""),Zh=new wi("",{providedIn:"platform",factory:()=>"unknown"}),pp=new wi(""),K4=new wi("",{providedIn:"root",factory:()=>tu().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let mp=()=>null;function s2(n,i,o=!1){return mp(n,i,o)}const Tp=new wi("",{providedIn:"root",factory:()=>!1});let Th,zh;function L1(n){return function d2(){if(void 0===Th&&(Th=null,Mo.trustedTypes))try{Th=Mo.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Th}()?.createHTML(n)||n}function h2(){if(void 0===zh&&(zh=null,Mo.trustedTypes))try{zh=Mo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return zh}function Dp(n){return h2()?.createHTML(n)||n}function Ip(n){return h2()?.createScriptURL(n)||n}class fl{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${io})`}}class c0 extends fl{getTypeName(){return"HTML"}}class l0 extends fl{getTypeName(){return"Style"}}class wp extends fl{getTypeName(){return"Script"}}class p2 extends fl{getTypeName(){return"URL"}}class u0 extends fl{getTypeName(){return"ResourceURL"}}function ml(n){return n instanceof fl?n.changingThisBreaksApplicationSecurity:n}function B1(n,i){const o=function d0(n){return n instanceof fl&&n.getTypeName()||null}(n);if(null!=o&&o!==i){if("ResourceURL"===o&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${o} (see ${io})`)}return o===i}function h0(n){return new c0(n)}function p0(n){return new l0(n)}function f0(n){return new wp(n)}function m0(n){return new p2(n)}function g0(n){return new u0(n)}class v0{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const o=(new window.DOMParser).parseFromString(L1(i),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(i):(o.removeChild(o.firstChild),o)}catch{return null}}}class _0{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const o=this.inertDocument.createElement("template");return o.innerHTML=L1(i),o}}const C0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mh(n){return(n=String(n)).match(C0)?n:"unsafe:"+n}function gl(n){const i={};for(const o of n.split(","))i[o]=!0;return i}function $d(...n){const i={};for(const o of n)for(const s in o)o.hasOwnProperty(s)&&(i[s]=!0);return i}const Pp=gl("area,br,col,hr,img,wbr"),Sh=gl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Fp=gl("rp,rt"),f2=$d(Pp,$d(Sh,gl("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")),$d(Fp,gl("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")),$d(Fp,Sh)),m2=gl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ap=$d(m2,gl("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"),gl("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")),Rp=gl("script,style,template");class E0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let o=i.firstChild,s=!0,l=[];for(;o;)if(o.nodeType===Node.ELEMENT_NODE?s=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,s&&o.firstChild)l.push(o),o=kp(o);else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let f=Np(o);if(f){o=f;break}o=l.pop()}return this.buf.join("")}startElement(i){const o=z0(i).toLowerCase();if(!f2.hasOwnProperty(o))return this.sanitizedSomething=!0,!Rp.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const s=i.attributes;for(let l=0;l"),!0}endElement(i){const o=z0(i).toLowerCase();f2.hasOwnProperty(o)&&!Pp.hasOwnProperty(o)&&(this.buf.push(""))}chars(i){this.buf.push(M0(i))}}function Np(n){const i=n.nextSibling;if(i&&n!==i.previousSibling)throw g2(i);return i}function kp(n){const i=n.firstChild;if(i&&function T0(n,i){return(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,i))throw g2(i);return i}function z0(n){const i=n.nodeName;return"string"==typeof i?i:"FORM"}function g2(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const e3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t3=/([^\#-~ |!])/g;function M0(n){return n.replace(/&/g,"&").replace(e3,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(t3,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let v2;function n3(n,i){let o=null;try{v2=v2||function xp(n){const i=new _0(n);return function y0(){try{return!!(new window.DOMParser).parseFromString(L1(""),"text/html")}catch{return!1}}()?new v0(i):i}(n);let s=i?String(i):"";o=v2.getInertBodyElement(s);let l=5,f=s;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,s=f,f=o.innerHTML,o=v2.getInertBodyElement(s)}while(s!==f);return L1((new E0).sanitizeChildren(Vp(o)||o))}finally{if(o){const s=Vp(o)||o;for(;s.firstChild;)s.removeChild(s.firstChild)}}}function Vp(n){return"content"in n&&function i3(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Hd=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Hd||{});function o3(n){const i=jd();return i?Dp(i.sanitize(Hd.HTML,n)||""):B1(n,"HTML")?Dp(ml(n)):n3(tu(),Vi(n))}function S0(n){const i=jd();return i?i.sanitize(Hd.STYLE,n)||"":B1(n,"Style")?ml(n):Vi(n)}function Lp(n){const i=jd();return i?i.sanitize(Hd.URL,n)||"":B1(n,"URL")?ml(n):Mh(Vi(n))}function D0(n){const i=jd();if(i)return Ip(i.sanitize(Hd.RESOURCE_URL,n)||"");if(B1(n,"ResourceURL"))return Ip(ml(n));throw new An(904,!1)}function O0(n,i,o){return function s3(n,i){return"src"===i&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===i&&("base"===n||"link"===n)?D0:Lp}(i,o)(n)}function jd(){const n=Dn();return n&&n[Ns].sanitizer}const c3=/^>|^->||--!>|)/g,u3="\u200b$1\u200b";function F0(n){return n.ownerDocument.defaultView}function Aa(n){return n instanceof Function?n():n}function ya(n){return"browser"===(n??Xn(kr)).get(Zh)}var jp=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(jp||{});let Up;function Gp(n,i){return Up(n,i)}function Gd(n,i,o,s,l){if(null!=s){let f,y=!1;Nr(s)?f=s:Tr(s)&&(y=!0,s=s[No]);const D=vo(s);0===n&&null!==o?null==l?am(i,o,D):Dh(i,o,D,l||null,!0):1===n&&null!==o?Dh(i,o,D,l||null,!0):2===n?function Yp(n,i,o){const s=B0(n,i);s&&function f9(n,i,o,s){n.removeChild(i,o,s)}(n,s,i,o)}(i,D,y):3===n&&i.destroyNode(D),null!=f&&function v9(n,i,o,s,l){const f=o[Js];f!==vo(o)&&Gd(i,n,s,f,l);for(let D=or;Di.replace(l3,u3))}(i))}function h(n,i,o){return n.createElement(i,o)}function ft(n,i){i[Ns].changeDetectionScheduler?.notify(8),H0(n,i,i[Ri],2,null,null)}function xi(n,i){const o=n[Za],s=i[cr];(Tr(s)||i[Wo]!==s[cr][Wo])&&(n[Pi]|=rl.HasTransplantedViews),null===o?n[Za]=[i]:o.push(i)}function Co(n,i){const o=n[Za],s=o.indexOf(i);o.splice(s,1)}function jo(n,i){if(n.length<=or)return;const o=or+i,s=n[o];if(s){const l=s[Qs];null!==l&&l!==n&&Co(l,s),i>0&&(n[o-1][Rs]=s[Rs]);const f=Ma(n,or+i);!function _(n,i){ft(n,i),i[No]=null,i[Ir]=null}(s[ni],s);const y=f[oa];null!==y&&y.detachView(f[ni]),s[cr]=null,s[Rs]=null,s[Pi]&=-129}return s}function Ra(n,i){if(!(256&i[Pi])){const o=i[Ri];o.destroyNode&&H0(n,i,o,3,null,null),function nn(n){let i=n[Oa];if(!i)return Bc(n[ni],n);for(;i;){let o=null;if(Tr(i))o=i[Oa];else{const s=i[or];s&&(o=s)}if(!o){for(;i&&!i[Rs]&&i!==n;)Tr(i)&&Bc(i[ni],i),i=i[cr];null===i&&(i=n),Tr(i)&&Bc(i[ni],i),o=i&&i[Rs]}i=o}}(i)}}function Bc(n,i){if(256&i[Pi])return;const o=G(null);try{i[Pi]&=-129,i[Pi]|=256,i[bs]&&he(i[bs]),function Ca(n,i){let o;if(null!=n&&null!=(o=n.destroyHooks))for(let s=0;s=0?s[y]():s[-y].unsubscribe(),f+=2}else o[f].call(s[o[f+1]]);null!==s&&(i[Xa]=null);const l=i[ks];if(null!==l){i[ks]=null;for(let f=0;f-1){const{encapsulation:f}=n.data[s.directiveStart+l];if(f===Fs.None||f===Fs.Emulated)return null}return jr(s,o)}}(n,i.parent,o)}function Dh(n,i,o,s,l){n.insertBefore(i,o,s,l)}function am(n,i,o){n.appendChild(i,o)}function cm(n,i,o,s,l){null!==s?Dh(n,i,o,s,l):am(n,i,o)}function B0(n,i){return n.parentNode(i)}function lm(n,i,o){return dm(n,i,o)}let C3,dm=function um(n,i,o){return 40&n.type?jr(n,o):null};function $0(n,i,o,s){const l=L0(n,s,i),f=i[Ri],D=lm(s.parent||i[Ir],s,i);if(null!=l)if(Array.isArray(o))for(let j=0;jTi&&ym(n,i,Ti,!1),Vs(y?2:0,l),o(s,l)}finally{rc(f),Vs(y?3:1,l)}}function z3(n,i,o){if(Fl(i)){const s=G(null);try{const f=i.directiveEnd;for(let y=i.directiveStart;ynull;function Mm(n,i,o,s,l){for(let f in i){if(!i.hasOwnProperty(f))continue;const y=i[f];if(void 0===y)continue;s??={};let D,j=As.None;Array.isArray(y)?(D=y[0],j=y[1]):D=y;let Se=f;if(null!==l){if(!l.hasOwnProperty(f))continue;Se=l[f]}0===n?Sm(s,o,Se,D,j):Sm(s,o,Se,D)}return s}function Sm(n,i,o,s,l){let f;n.hasOwnProperty(o)?(f=n[o]).push(i,s):f=n[o]=[i,s],void 0!==l&&f.push(l)}function pc(n,i,o,s,l,f,y,D){const j=jr(i,o);let He,Se=i.inputs;!D&&null!=Se&&(He=Se[s])?(P3(n,o,He,s,l),Ia(i)&&function w9(n,i){const o=Es(i,n);16&o[Pi]||(o[Pi]|=64)}(o,i.index)):3&i.type&&(s=function I9(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(s),l=null!=y?y(l,i.value||"",s):l,f.setProperty(j,s,l))}function O3(n,i,o,s){if(b1()){const l=null===s?null:{"":-1},f=function N9(n,i){const o=n.directiveRegistry;let s=null,l=null;if(o)for(let f=0;f0;){const o=n[--i];if("number"==typeof o&&o<0)return o}return 0})(y)!=D&&y.push(D),y.push(o,s,f)}}(n,i,s,Wp(n,o,l.hostVars,uo),l)}function Bu(n,i,o,s,l,f){const y=jr(n,i);!function w3(n,i,o,s,l,f,y){if(null==f)n.removeAttribute(i,l,o);else{const D=null==y?Vi(f):y(f,s||"",l);n.setAttribute(i,l,D,o)}}(i[Ri],y,f,n.value,o,s,l)}function H9(n,i,o,s,l,f){const y=f[i];if(null!==y)for(let D=0;D0&&(o[l-1][Rs]=i),s{Ul(n.lView)},consumerOnSignalRead(){this.lView[bs]=this}},Z9={...w,consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{let i=Zs(n.lView);for(;i&&!km(i[ni]);)i=Zs(i);i&&jl(i)},consumerOnSignalRead(){this.lView[bs]=this}};function km(n){return 2!==n.type}const q9=100;function Y0(n,i=!0,o=0){const s=n[Ns],l=s.rendererFactory;l.begin?.();try{!function ey(n,i){const o=z1();try{Mu(!0),R3(n,i);let s=0;for(;Bs(n);){if(s===q9)throw new An(103,!1);s++,R3(n,1)}}finally{Mu(o)}}(n,o)}catch(y){throw i&&G0(n,y),y}finally{l.end?.(),s.inlineEffectRunner?.flush()}}function ty(n,i,o,s){const l=i[Pi];if(!(256&~l))return;i[Ns].inlineEffectRunner?.flush(),Du(i);let D=!0,j=null,Se=null;km(n)?(Se=function W9(n){return n[bs]??function K9(n){const i=Nm.pop()??Object.create(Q9);return i.lView=n,i}(n)}(i),j=J(Se)):null===function L(){return r}()?(D=!1,Se=function J9(n){const i=n[bs]??Object.create(Z9);return i.lView=n,i}(i),j=J(Se)):i[bs]&&(he(i[bs]),i[bs]=null);try{v1(i),function Su(n){return ji.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==o&&Em(n,i,o,2,s);const He=!(3&~l);if(He){const Qt=n.preOrderCheckHooks;null!==Qt&&Ie(i,Qt,null)}else{const Qt=n.preOrderHooks;null!==Qt&&pt(i,Qt,0,null),Iu(i,0)}if(function ny(n){for(let i=sp(n);null!==i;i=N4(i)){if(!(i[Pi]&rl.HasTransplantedViews))continue;const o=i[Za];for(let s=0;s-1&&(jo(i,s),Ma(o,s))}this._attachedToViewContainer=!1}Ra(this._lView[ni],this._lView)}onDestroy(i){Gl(this._lView,i)}markForCheck(){Xp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Pi]&=-129}reattach(){ec(this._lView),this._lView[Pi]|=128}detectChanges(){this._lView[Pi]|=1024,Y0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new An(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const i=xc(this._lView),o=this._lView[Qs];null!==o&&!i&&Co(o,this._lView),ft(this._lView[ni],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new An(902,!1);this._appRef=i;const o=xc(this._lView),s=this._lView[Qs];null!==s&&!o&&xi(s,this._lView),ec(this._lView)}}let Jp=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=sy}return n})();const oy=Jp,ry=class extends oy{constructor(i,o,s){super(),this._declarationLView=i,this._declarationTContainer=o,this.elementRef=s}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,o){return this.createEmbeddedViewImpl(i,o)}createEmbeddedViewImpl(i,o,s){const l=z2(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:o,dehydratedView:s});return new Qp(l)}};function sy(){return W0(Io(),Dn())}function W0(n,i){return 4&n.type?new ry(i,n,Dt(n,i)):null}let cg=()=>null;function xh(n,i){return cg(n,i)}class D2{}const r4=new wi("",{providedIn:"root",factory:()=>!1}),lg=new wi("");class ug{}class dg{}class qy{resolveComponentFactory(i){throw function Zy(n){const i=Error(`No component factory found for ${fe(n)}.`);return i.ngComponent=n,i}(i)}}class s4{static#e=this.NULL=new qy}class Y3{}let eC=(()=>{class n{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function tC(){const n=Dn(),o=Es(Io().index,n);return(Tr(o)?o:n)[Ri]}()}return n})(),nC=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>null})}return n})();const pg=new Set;function Na(n){pg.has(n)||(pg.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function fg(n){let i=!0;return setTimeout(()=>{i&&(i=!1,n())}),"function"==typeof Mo.requestAnimationFrame&&Mo.requestAnimationFrame(()=>{i&&(i=!1,n())}),()=>{i=!1}}function mg(n){let i=!0;return queueMicrotask(()=>{i&&n()}),()=>{i=!1}}function gg(...n){}class Pr{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:s=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Sn(!1),this.onMicrotaskEmpty=new Sn(!1),this.onStable=new Sn(!1),this.onError=new Sn(!1),typeof Zone>"u")throw new An(908,!1);Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&o,l.shouldCoalesceRunChangeDetection=s,l.callbackScheduled=!1,function rC(n){const i=()=>{!function oC(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{fg(()=>{n.callbackScheduled=!1,K3(n),n.isCheckStableRunning=!0,W3(n),n.isCheckStableRunning=!1})}),K3(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,s,l,f,y,D)=>{if(function sC(n){return yg(n,"__ignore_ng_zone__")}(D))return o.invokeTask(l,f,y,D);try{return vg(n),o.invokeTask(l,f,y,D)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||n.shouldCoalesceRunChangeDetection)&&i(),_g(n)}},onInvoke:(o,s,l,f,y,D,j)=>{try{return vg(n),o.invoke(l,f,y,D,j)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function aC(n){return yg(n,"__scheduler_tick__")}(D)&&i(),_g(n)}},onHasTask:(o,s,l,f)=>{o.hasTask(l,f),s===l&&("microTask"==f.change?(n._hasPendingMicrotasks=f.microTask,K3(n),W3(n)):"macroTask"==f.change&&(n.hasPendingMacrotasks=f.macroTask))},onHandleError:(o,s,l,f)=>(o.handleError(l,f),n.runOutsideAngular(()=>n.onError.emit(f)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pr.isInAngularZone())throw new An(909,!1)}static assertNotInAngularZone(){if(Pr.isInAngularZone())throw new An(909,!1)}run(i,o,s){return this._inner.run(i,o,s)}runTask(i,o,s,l){const f=this._inner,y=f.scheduleEventTask("NgZoneEvent: "+l,i,iC,gg,gg);try{return f.runTask(y,o,s)}finally{f.cancelTask(y)}}runGuarded(i,o,s){return this._inner.runGuarded(i,o,s)}runOutsideAngular(i){return this._outer.run(i)}}const iC={};function W3(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 K3(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function vg(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function _g(n){n._nesting--,W3(n)}class q0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Sn,this.onMicrotaskEmpty=new Sn,this.onStable=new Sn,this.onError=new Sn}run(i,o,s){return i.apply(o,s)}runGuarded(i,o,s){return i.apply(o,s)}runOutsideAngular(i){return i()}runTask(i,o,s,l){return i.apply(o,s)}}function yg(n,i){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[i]}var ka=function(n){return n[n.EarlyRead=0]="EarlyRead",n[n.Write=1]="Write",n[n.MixedReadWrite=2]="MixedReadWrite",n[n.Read=3]="Read",n}(ka||{});const Cg={destroy(){}};function bg(n,i){!i&&tl();const o=i?.injector??Xn(kr);return ya(o)?(Na("NgAfterRender"),Tg(n,o,!1,i?.phase??ka.MixedReadWrite)):Cg}function Eg(n,i){!i&&tl();const o=i?.injector??Xn(kr);return ya(o)?(Na("NgAfterNextRender"),Tg(n,o,!0,i?.phase??ka.MixedReadWrite)):Cg}function Tg(n,i,o,s){const l=function lC(n,i){if(n instanceof Function)switch(i){case ka.EarlyRead:return{earlyRead:n};case ka.Write:return{write:n};case ka.MixedReadWrite:return{mixedReadWrite:n};case ka.Read:return{read:n}}return n}(n,s),f=i.get(ef),y=f.handler??=new dC,D=[],j=[],Se=()=>{for(const Qt of j)y.unregister(Qt);He()},He=i.get(d).onDestroy(Se);let _t=0;const Gt=(Qt,un)=>{if(!un)return;const In=o?(...ui)=>(_t--,_t<1&&Se(),un(...ui)):un,ii=pu(i,()=>new uC(Qt,D,In));y.register(ii),j.push(ii),_t++};return Gt(ka.EarlyRead,l.earlyRead),Gt(ka.Write,l.write),Gt(ka.MixedReadWrite,l.mixedReadWrite),Gt(ka.Read,l.read),{destroy:Se}}class uC{constructor(i,o,s){this.phase=i,this.pipelinedArgs=o,this.callbackFn=s,this.zone=Xn(Pr),this.errorHandler=Xn(_a,{optional:!0}),Xn(D2,{optional:!0})?.notify(6)}invoke(){try{const i=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,i)}catch(i){this.errorHandler?.handleError(i)}}}class dC{constructor(){this.executingCallbacks=!1,this.buckets={[ka.EarlyRead]:new Set,[ka.Write]:new Set,[ka.MixedReadWrite]:new Set,[ka.Read]:new Set},this.deferredCallbacks=new Set}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){this.executingCallbacks=!0;for(const i of Object.values(this.buckets))for(const o of i)o.invoke();this.executingCallbacks=!1;for(const i of this.deferredCallbacks)this.buckets[i.phase].add(i);this.deferredCallbacks.clear()}destroy(){for(const i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}}let ef=(()=>{class n{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const s of o)s()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new n})}return n})();function Yd(n){return!!tr(n)}function nf(n,i,o){let s=o?n.styles:null,l=o?n.classes:null,f=0;if(null!==i)for(let y=0;y0&&gm(n,o,f.join(" "))}}(Qt,Us,In,s),void 0!==o&&function bC(n,i,o){const s=n.projection=[];for(let l=0;l{class n{static#e=this.__NG_ELEMENT_ID__=TC}return n})();function TC(){return wg(Io(),Dn())}const zC=rf,Og=class extends zC{constructor(i,o,s){super(),this._lContainer=i,this._hostTNode=o,this._hostLView=s}get element(){return Dt(this._hostTNode,this._hostLView)}get injector(){return new xr(this._hostTNode,this._hostLView)}get parentInjector(){const i=Zl(this._hostTNode,this._hostLView);if(pl(i)){const o=Vc(i,this._hostLView),s=kc(i);return new xr(o[ni].data[s+8],o)}return new xr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const o=Ig(this._lContainer);return null!==o&&o[i]||null}get length(){return this._lContainer.length-or}createEmbeddedView(i,o,s){let l,f;"number"==typeof s?l=s:null!=s&&(l=s.index,f=s.injector);const y=xh(this._lContainer,i.ssrId),D=i.createEmbeddedViewImpl(o||{},f,y);return this.insertImpl(D,l,Ih(this._hostTNode,y)),D}createComponent(i,o,s,l,f){const y=i&&!function Oc(n){return"function"==typeof n}(i);let D;if(y)D=o;else{const un=o||{};D=un.index,s=un.injector,l=un.projectableNodes,f=un.environmentInjector||un.ngModuleRef}const j=y?i:new l4(Hi(i)),Se=s||this.parentInjector;if(!f&&null==j.ngModule){const In=(y?Se:this.parentInjector).get(Cs,null);In&&(f=In)}const He=Hi(j.componentType??{}),_t=xh(this._lContainer,He?.id??null),Qt=j.create(Se,l,_t?.firstChild??null,f);return this.insertImpl(Qt.hostView,D,Ih(this._hostTNode,_t)),Qt}insert(i,o){return this.insertImpl(i,o,!0)}insertImpl(i,o,s){const l=i._lView;if(function th(n){return Nr(n[cr])}(l)){const D=this.indexOf(i);if(-1!==D)this.detach(D);else{const j=l[cr],Se=new Og(j,j[Ir],j[cr]);Se.detach(Se.indexOf(i))}}const f=this._adjustIndex(o),y=this._lContainer;return M2(y,l,f,s),i.attachToViewContainerRef(),no(Z3(y),f,i),i}move(i,o){return this.insert(i,o)}indexOf(i){const o=Ig(this._lContainer);return null!==o?o.indexOf(i):-1}remove(i){const o=this._adjustIndex(i,-1),s=jo(this._lContainer,o);s&&(Ma(Z3(this._lContainer),o),Ra(s[ni],s))}detach(i){const o=this._adjustIndex(i,-1),s=jo(this._lContainer,o);return s&&null!=Ma(Z3(this._lContainer),o)?new Qp(s):null}_adjustIndex(i,o=0){return i??this.length+o}};function Ig(n){return n[8]}function Z3(n){return n[8]||(n[8]=[])}function wg(n,i){let o;const s=i[n.index];return Nr(s)?o=s:(o=Im(s,i,null,n),i[n.index]=o,U0(i,o)),xg(o,i,n,s),new Og(o,n,i)}let xg=function Fg(n,i,o,s){if(n[Js])return;let l;l=8&o.type?vo(s):function MC(n,i){const o=n[Ri],s=o.createComment(""),l=jr(i,n);return Dh(o,B0(o,l),s,function m9(n,i){return n.nextSibling(i)}(o,l),!1),s}(i,o),n[Js]=l},q3=()=>!1;class e6{constructor(i){this.queryList=i,this.matches=null}clone(){return new e6(this.queryList)}setDirty(){this.queryList.setDirty()}}class t6{constructor(i=[]){this.queries=i}createEmbeddedView(i){const o=i.queries;if(null!==o){const s=null!==i.contentQueries?i.contentQueries[0]:o.length,l=[];for(let f=0;fi.trim())}(i):i}}class n6{constructor(i=[]){this.queries=i}elementStart(i,o){for(let s=0;s0)s.push(y[D/2]);else{const Se=f[D+1],He=i[-j];for(let _t=or;_t(I(i),i.value);return o[M]=i,o}(n),s=o[M];return i?.equal&&(s.equal=i.equal),o.set=l=>st(s,l),o.update=l=>function Ct(n,i){x()||Pt(),st(n,i(n.value))}(s,l),o.asReadonly=Hg.bind(o),o}function Hg(){const n=this[M];if(void 0===n.readonlyFn){const i=()=>this();i[M]=n,n.readonlyFn=i}return n.readonlyFn}function jg(n){return a6(n)&&"function"==typeof n.set}function l6(n){let i=function ev(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),o=!0;const s=[n];for(;i;){let l;if(Zr(n))l=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new An(903,!1);l=i.\u0275dir}if(l){if(o){s.push(l);const y=n;y.inputs=af(n.inputs),y.inputTransforms=af(n.inputTransforms),y.declaredInputs=af(n.declaredInputs),y.outputs=af(n.outputs);const D=l.hostBindings;D&&KC(n,D);const j=l.viewQuery,Se=l.contentQueries;if(j&&YC(n,j),Se&&WC(n,Se),UC(n,l),Fn(n.outputs,l.outputs),Zr(l)&&l.data.animation){const He=n.data;He.animation=(He.animation||[]).concat(l.data.animation)}}const f=l.features;if(f)for(let y=0;y=0;s--){const l=n[s];l.hostVars=i+=l.hostVars,l.hostAttrs=Sa(l.hostAttrs,o=Sa(o,l.hostAttrs))}}(s)}function UC(n,i){for(const o in i.inputs){if(!i.inputs.hasOwnProperty(o)||n.inputs.hasOwnProperty(o))continue;const s=i.inputs[o];if(void 0!==s&&(n.inputs[o]=s,n.declaredInputs[o]=i.declaredInputs[o],null!==i.inputTransforms)){const l=Array.isArray(s)?s[0]:s;if(!i.inputTransforms.hasOwnProperty(l))continue;n.inputTransforms??={},n.inputTransforms[l]=i.inputTransforms[l]}}}function af(n){return n===Jr?{}:n===go?[]:n}function YC(n,i){const o=n.viewQuery;n.viewQuery=o?(s,l)=>{i(s,l),o(s,l)}:i}function WC(n,i){const o=n.contentQueries;n.contentQueries=o?(s,l,f)=>{i(s,l,f),o(s,l,f)}:i}function KC(n,i){const o=n.hostBindings;n.hostBindings=o?(s,l)=>{i(s,l),o(s,l)}:i}function ov(n){const i=n.inputConfig,o={};for(const s in i)if(i.hasOwnProperty(s)){const l=i[s];Array.isArray(l)&&l[3]&&(o[s]=l[3])}n.inputTransforms=o}class Ph{}class rv{}function eb(n,i){return new u6(n,i??null,[])}class u6 extends Ph{constructor(i,o,s){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Sg(this);const l=tr(i);this._bootstrapComponents=Aa(l.bootstrap),this._r3Injector=dh(i,o,[{provide:Ph,useValue:this},{provide:s4,useValue:this.componentFactoryResolver},...s],fe(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class d6 extends rv{constructor(i){super(),this.moduleType=i}create(i){return new u6(this.moduleType,i,[])}}class sv extends Ph{constructor(i){super(),this.componentFactoryResolver=new Sg(this),this.instance=null;const o=new Dc([...i.providers,{provide:Ph,useValue:this},{provide:s4,useValue:this.componentFactoryResolver}],i.parent||el(),i.debugName,new Set(["environment"]));this.injector=o,i.runEnvironmentInitializers&&o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function h6(n,i,o=null){return new sv({providers:n,parent:i,debugName:o,runEnvironmentInitializers:!0}).injector}function cf(n){return!!p6(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function p6(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function $u(n,i,o){return n[i]=o}function d4(n,i){return n[i]}function as(n,i,o){return!Object.is(n[i],o)&&(n[i]=o,!0)}function Fh(n,i,o,s){const l=as(n,i,o);return as(n,i+1,s)||l}function vl(n,i,o,s,l,f){const y=Fh(n,i,o,s);return Fh(n,i+2,l,f)||y}function h4(n,i,o,s,l,f,y,D,j,Se){const He=o+Ti,_t=i.firstCreatePass?function sb(n,i,o,s,l,f,y,D,j){const Se=i.consts,He=Oh(i,n,4,y||null,D||null);O3(i,o,He,Ls(Se,j)),zs(i,He);const _t=He.tView=D3(2,He,s,l,f,i.directiveRegistry,i.pipeRegistry,null,i.schemas,Se,null);return null!==i.queries&&(i.queries.template(i,He),_t.queries=i.queries.embeddedTView(He)),He}(He,i,n,s,l,f,y,D,j):i.data[He];Ho(_t,!1);const Gt=av(i,n,_t,o);Nc()&&$0(i,n,Gt,_t),dr(Gt,n);const Qt=Im(Gt,n,Gt,_t);return n[He]=Qt,U0(n,Qt),function Pg(n,i,o){return q3(n,i,o)}(Qt,_t,n),sl(_t)&&M3(i,n,_t),null!=j&&S3(n,_t,Se),_t}function f6(n,i,o,s,l,f,y,D){const j=Dn(),Se=oo();return h4(j,Se,n,i,o,s,l,Ls(Se.consts,f),y,D),f6}let av=function cv(n,i,o,s){return Ts(!0),i[Ri].createComment("")};function M6(n,i,o,s){const l=Dn();return as(l,qs(),i)&&(oo(),Bu(Vo(),l,n,i,o,s)),M6}function k2(n,i,o,s){return as(n,qs(),o)?i+Vi(o)+s:uo}function V2(n,i,o,s,l,f){const D=Fh(n,function sa(){return ji.lFrame.bindingIndex}(),o,l);return ea(2),D?i+Vi(o)+s+Vi(l)+f:uo}function mf(n,i){return n<<17|i<<2}function Xd(n){return n>>17&32767}function S6(n){return 2|n}function Rh(n){return(131068&n)>>2}function D6(n,i){return-131069&n|i<<2}function O6(n){return 1|n}function Lv(n,i,o,s){const l=n[o+1],f=null===i;let y=s?Xd(l):Rh(l),D=!1;for(;0!==y&&(!1===D||f);){const Se=n[y+1];Gb(n[y],i)&&(D=!0,n[y+1]=s?O6(Se):S6(Se)),y=s?Xd(Se):Rh(Se)}D&&(n[o+1]=s?S6(l):O6(l))}function Gb(n,i){return null===n||null==i||(Array.isArray(n)?n[1]:n)===i||!(!Array.isArray(n)||"string"!=typeof i)&&Ya(n,i)>=0}const Hs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bv(n){return n.substring(Hs.key,Hs.keyEnd)}function Yb(n){return n.substring(Hs.value,Hs.valueEnd)}function $v(n,i){const o=Hs.textEnd;return o===i?-1:(i=Hs.keyEnd=function Xb(n,i,o){for(;i32;)i++;return i}(n,Hs.key=i,o),G2(n,i,o))}function Hv(n,i){const o=Hs.textEnd;let s=Hs.key=G2(n,i,o);return o===s?-1:(s=Hs.keyEnd=function Qb(n,i,o){let s;for(;i=65&&(-33&s)<=90||s>=48&&s<=57);)i++;return i}(n,s,o),s=Uv(n,s,o),s=Hs.value=G2(n,s,o),s=Hs.valueEnd=function Jb(n,i,o){let s=-1,l=-1,f=-1,y=i,D=y;for(;y32&&(D=y),f=l,l=s,s=-33&j}return D}(n,s,o),Uv(n,s,o))}function jv(n){Hs.key=0,Hs.keyEnd=0,Hs.value=0,Hs.valueEnd=0,Hs.textEnd=n.length}function G2(n,i,o){for(;i=0;o=Hv(i,o))Xv(n,Bv(i),Yb(i))}function Yv(n){ou(oE,Hu,n,!0)}function Hu(n,i){for(let o=function Wb(n){return jv(n),$v(n,G2(n,0,Hs.textEnd))}(i);o>=0;o=$v(i,o))Or(n,Bv(i),!0)}function iu(n,i,o,s){const l=Dn(),f=oo(),y=ea(2);f.firstUpdatePass&&Kv(f,n,y,s),i!==uo&&as(l,y,i)&&Qv(f,f.data[wr()],l,l[Ri],n,l[y+1]=function sE(n,i){return null==n||""===n||("string"==typeof i?n+=i:"object"==typeof n&&(n=fe(ml(n)))),n}(i,o),s,y)}function ou(n,i,o,s){const l=oo(),f=ea(2);l.firstUpdatePass&&Kv(l,null,f,s);const y=Dn();if(o!==uo&&as(y,f,o)){const D=l.data[wr()];if(Zv(D,s)&&!Wv(l,f)){let j=s?D.classesWithoutHost:D.stylesWithoutHost;null!==j&&(o=We(j,o||"")),w6(l,D,y,o,s)}else!function rE(n,i,o,s,l,f,y,D){l===uo&&(l=go);let j=0,Se=0,He=0=n.expandoStartIndex}function Kv(n,i,o,s){const l=n.data;if(null===l[o+1]){const f=l[wr()],y=Wv(n,o);Zv(f,s)&&null===i&&!y&&(i=!1),i=function qb(n,i,o,s){const l=Xl(n);let f=s?i.residualClasses:i.residualStyles;if(null===l)0===(s?i.classBindings:i.styleBindings)&&(o=g4(o=F6(null,n,i,o,s),i.attrs,s),f=null);else{const y=i.directiveStylingLast;if(-1===y||n[y]!==l)if(o=F6(l,n,i,o,s),null===f){let j=function eE(n,i,o){const s=o?i.classBindings:i.styleBindings;if(0!==Rh(s))return n[Xd(s)]}(n,i,s);void 0!==j&&Array.isArray(j)&&(j=F6(null,n,i,j[1],s),j=g4(j,i.attrs,s),function tE(n,i,o,s){n[Xd(o?i.classBindings:i.styleBindings)]=s}(n,i,s,j))}else f=function nE(n,i,o){let s;const l=i.directiveEnd;for(let f=1+i.directiveStylingLast;f0)&&(Se=!0)):He=o,l)if(0!==j){const Gt=Xd(n[D+1]);n[s+1]=mf(Gt,D),0!==Gt&&(n[Gt+1]=D6(n[Gt+1],s)),n[D+1]=function $b(n,i){return 131071&n|i<<17}(n[D+1],s)}else n[s+1]=mf(D,0),0!==D&&(n[D+1]=D6(n[D+1],s)),D=s;else n[s+1]=mf(j,0),0===D?D=s:n[j+1]=D6(n[j+1],s),j=s;Se&&(n[s+1]=S6(n[s+1])),Lv(n,He,s,!0),Lv(n,He,s,!1),function Ub(n,i,o,s,l){const f=l?n.residualClasses:n.residualStyles;null!=f&&"string"==typeof i&&Ya(f,i)>=0&&(o[s+1]=O6(o[s+1]))}(i,He,n,s,f),y=mf(D,j),f?i.classBindings=y:i.styleBindings=y}(l,f,i,o,y,s)}}function F6(n,i,o,s,l){let f=null;const y=o.directiveEnd;let D=o.directiveStylingLast;for(-1===D?D=o.directiveStart:D++;D0;){const j=n[l],Se=Array.isArray(j),He=Se?j[1]:j,_t=null===He;let Gt=o[l+1];Gt===uo&&(Gt=_t?go:void 0);let Qt=_t?yl(Gt,s):He===s?Gt:void 0;if(Se&&!gf(Qt)&&(Qt=yl(j,s)),gf(Qt)&&(D=Qt,y))return D;const un=n[l+1];l=y?Xd(un):Rh(un)}if(null!==i){let j=f?i.residualClasses:i.residualStyles;null!=j&&(D=yl(j,s))}return D}function gf(n){return void 0!==n}function Zv(n,i){return!!(n.flags&(i?8:16))}function qv(n,i,o){ou(Or,Hu,k2(Dn(),n,i,o),!0)}function e5(){return Dn()[Wo][ko]}class mE{destroy(i){}updateValue(i,o){}swap(i,o){const s=Math.min(i,o),l=Math.max(i,o),f=this.detach(l);if(l-s>1){const y=this.detach(s);this.attach(s,f),this.attach(l,y)}else this.attach(s,f)}move(i,o){this.attach(o,this.detach(i))}}function A6(n,i,o,s,l){return n===o&&Object.is(i,s)?1:Object.is(l(n,i),l(o,s))?-1:0}function R6(n,i,o,s){return!(void 0===i||!i.has(s)||(n.attach(o,i.get(s)),i.delete(s),0))}function t5(n,i,o,s,l){if(R6(n,i,s,o(s,l)))n.updateValue(s,l);else{const f=n.create(s,l);n.attach(s,f)}}function n5(n,i,o,s){const l=new Set;for(let f=i;f<=o;f++)l.add(s(f,n.at(f)));return l}class i5{constructor(){this.kvMap=new Map,this._vMap=void 0}has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;const o=this.kvMap.get(i);return void 0!==this._vMap&&this._vMap.has(o)?(this.kvMap.set(i,this._vMap.get(o)),this._vMap.delete(o)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,o){if(this.kvMap.has(i)){let s=this.kvMap.get(i);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(s);)s=l.get(s);l.set(s,o)}else this.kvMap.set(i,o)}forEach(i){for(let[o,s]of this.kvMap)if(i(s,o),void 0!==this._vMap){const l=this._vMap;for(;l.has(s);)s=l.get(s),i(s,o)}}}function o5(n,i){Na("NgControlFlow");const o=Dn(),s=qs(),l=o[s]!==uo?o[s]:-1,f=-1!==l?vf(o,Ti+l):void 0;if(as(o,s,n)){const D=G(null);try{if(void 0!==f&&A3(f,0),-1!==n){const j=Ti+n,Se=vf(o,j),He=N6(o[ni],j),_t=xh(Se,He.tView.ssrId);M2(Se,z2(o,He,i,{dehydratedView:_t}),0,Ih(He,_t))}}finally{G(D)}}else if(void 0!==f){const D=Am(f,0);void 0!==D&&(D[ko]=i)}}class vE{constructor(i,o,s){this.lContainer=i,this.$implicit=o,this.$index=s}get $count(){return this.lContainer.length-or}}function r5(n){return n}function s5(n,i){return i}class _E{constructor(i,o,s){this.hasEmptyBlock=i,this.trackByFn=o,this.liveCollection=s}}function a5(n,i,o,s,l,f,y,D,j,Se,He,_t,Gt){Na("NgControlFlow");const Qt=Dn(),un=oo(),In=void 0!==j,ii=Dn(),ui=D?y.bind(ii[Wo][ko]):y,Nn=new _E(In,ui);ii[Ti+n]=Nn,h4(Qt,un,n+1,i,o,s,l,Ls(un.consts,f)),In&&h4(Qt,un,n+2,j,Se,He,_t,Ls(un.consts,Gt))}class yE extends mE{constructor(i,o,s){super(),this.lContainer=i,this.hostLView=o,this.templateTNode=s,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-or}at(i){return this.getLView(i)[ko].$implicit}attach(i,o){const s=o[$r];this.needsIndexUpdate||=i!==this.length,M2(this.lContainer,o,i,Ih(this.templateTNode,s))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,function CE(n,i){return jo(n,i)}(this.lContainer,i)}create(i,o){const s=xh(this.lContainer,this.templateTNode.tView.ssrId),l=z2(this.hostLView,this.templateTNode,new vE(this.lContainer,o,i),{dehydratedView:s});return this.operationsCounter?.recordCreate(),l}destroy(i){Ra(i[ni],i),this.operationsCounter?.recordDestroy()}updateValue(i,o){this.getLView(i)[ko].$implicit=o}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i{n.destroy(j)})}(j,n,f.trackByFn),j.updateIndexes(),f.hasEmptyBlock){const Se=qs(),He=0===j.length;if(as(s,Se,He)){const _t=o+2,Gt=vf(s,_t);if(He){const Qt=N6(l,_t),un=xh(Gt,Qt.tView.ssrId);M2(Gt,z2(s,Qt,void 0,{dehydratedView:un}),0,Ih(Qt,un))}else A3(Gt,0)}}}finally{G(i)}}function vf(n,i){return n[i]}function N6(n,i){return Hl(n,i)}function _f(n,i,o,s){const l=Dn(),f=oo(),y=Ti+n,D=l[Ri],j=f.firstCreatePass?function EE(n,i,o,s,l,f){const y=i.consts,j=Oh(i,n,2,s,Ls(y,l));return O3(i,o,j,Ls(y,f)),null!==j.attrs&&nf(j,j.attrs,!1),null!==j.mergedAttrs&&nf(j,j.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,j),j}(y,f,l,i,o,s):f.data[y],Se=l5(f,l,j,D,i,n);l[y]=Se;const He=sl(j);return Ho(j,!0),vm(D,Se,j),!function I2(n){return!(32&~n.flags)}(j)&&Nc()&&$0(f,l,Se,j),0===function C1(){return ji.lFrame.elementDepthCount}()&&dr(Se,l),function ld(){ji.lFrame.elementDepthCount++}(),He&&(M3(f,l,j),z3(f,j,l)),null!==s&&S3(l,j),_f}function yf(){let n=Io();nc()?Ac():(n=n.parent,Ho(n,!1));const i=n;(function dd(n){return ji.skipHydrationRootTNode===n})(i)&&function md(){ji.skipHydrationRootTNode=null}(),function ud(){ji.lFrame.elementDepthCount--}();const o=oo();return o.firstCreatePass&&(zs(o,n),Fl(n)&&o.queries.elementEnd(n)),null!=i.classesWithoutHost&&function Bh(n){return!!(8&n.flags)}(i)&&w6(o,i,Dn(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function $h(n){return!!(16&n.flags)}(i)&&w6(o,i,Dn(),i.stylesWithoutHost,!1),yf}function k6(n,i,o,s){return _f(n,i,o,s),yf(),k6}let l5=(n,i,o,s,l,f)=>(Ts(!0),h(s,l,function sc(){return ji.lFrame.currentNamespace}()));function Cf(n,i,o){const s=Dn(),l=oo(),f=n+Ti,y=l.firstCreatePass?function ME(n,i,o,s,l){const f=i.consts,y=Ls(f,s),D=Oh(i,n,8,"ng-container",y);return null!==y&&nf(D,y,!0),O3(i,o,D,Ls(f,l)),null!==i.queries&&i.queries.elementStart(i,D),D}(f,l,s,i,o):l.data[f];Ho(y,!0);const D=u5(l,s,y,n);return s[f]=D,Nc()&&$0(l,s,D,y),dr(D,s),sl(y)&&(M3(l,s,y),z3(l,y,s)),null!=o&&S3(s,y),Cf}function bf(){let n=Io();const i=oo();return nc()?Ac():(n=n.parent,Ho(n,!1)),i.firstCreatePass&&(zs(i,n),Fl(n)&&i.queries.elementEnd(n)),bf}function V6(n,i,o){return Cf(n,i,o),bf(),V6}let u5=(n,i,o,s)=>(Ts(!0),a(i[Ri],""));function d5(){return Dn()}function L6(n,i,o){const s=Dn();return as(s,qs(),i)&&pc(oo(),Vo(),s,n,i,s[Ri],o,!0),L6}function B6(n,i,o){const s=Dn();if(as(s,qs(),i)){const f=oo(),y=Vo();pc(f,y,s,n,i,Fm(Xl(f.data),y,s),o,!0)}return B6}const Nh=void 0;var IE=["en",[["a","p"],["AM","PM"],Nh],[["AM","PM"],Nh,Nh],[["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"]],Nh,[["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"]],Nh,[["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}",Nh,"{1} 'at' {0}",Nh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function OE(n){const o=Math.floor(Math.abs(n)),s=n.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===s?1:5}];let Y2={};function wE(n,i,o){"string"!=typeof i&&(o=i,i=n[W2.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),Y2[i]=n,o&&(Y2[i][W2.ExtraData]=o)}function $6(n){const i=function xE(n){return n.toLowerCase().replace(/_/g,"-")}(n);let o=p5(i);if(o)return o;const s=i.split("-")[0];if(o=p5(s),o)return o;if("en"===s)return IE;throw new An(701,!1)}function h5(n){return $6(n)[W2.PluralCase]}function p5(n){return n in Y2||(Y2[n]=Mo.ng&&Mo.ng.common&&Mo.ng.common.locales&&Mo.ng.common.locales[n]),Y2[n]}var W2=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(W2||{});const K2="en-US";let f5=K2;let F5=(n,i,o)=>{};function U6(n,i,o,s){const l=Dn(),f=oo(),y=Io();return Y6(f,l,l[Ri],y,n,i,s),U6}function G6(n,i){const o=Io(),s=Dn(),l=oo();return Y6(l,s,Fm(Xl(l.data),o,s),o,n,i),G6}function Y6(n,i,o,s,l,f,y){const D=sl(s),Se=n.firstCreatePass&&Pm(n),He=i[ko],_t=xm(i);let Gt=!0;if(3&s.type||y){const In=jr(s,i),ii=y?y(In):In,ui=_t.length,Nn=y?Lo=>y(vo(Lo[s.index])):s.index;let Ji=null;if(!y&&D&&(Ji=function _T(n,i,o,s){const l=n.cleanup;if(null!=l)for(let f=0;fj?D[j]:null}"string"==typeof y&&(f+=2)}return null}(n,i,l,s.index)),null!==Ji)(Ji.__ngLastListenerFn__||Ji).__ngNextListenerFn__=f,Ji.__ngLastListenerFn__=f,Gt=!1;else{f=N5(s,i,He,f),F5(In,l,f);const Lo=o.listen(ii,l,f);_t.push(f,Lo),Se&&Se.push(l,Nn,ui,ui+1)}}else f=N5(s,i,He,f);const Qt=s.outputs;let un;if(Gt&&null!==Qt&&(un=Qt[l])){const In=un.length;if(In)for(let ii=0;ii-1?Es(n.index,i):i,5);let D=R5(i,o,s,f),j=l.__ngNextListenerFn__;for(;j;)D=R5(i,o,j,f)&&D,j=j.__ngNextListenerFn__;return D}}function k5(n=1){return function O1(n){return(ji.lFrame.contextLView=function _1(n,i){for(;n>0;)i=i[Qa],n--;return i}(n,ji.lFrame.contextLView))[ko]}(n)}function yT(n,i){let o=null;const s=function P(n){const i=n.attrs;if(null!=i){const o=i.indexOf(5);if(!(1&o))return i[o+1]}return null}(n);for(let l=0;l=n.data.length&&(n.data[o]=null,n.blueprint[o]=null),i[o]=s}function J5(n){return Fc(ul(),Ti+n)}function Z5(n,i,o){nu(k2(Dn(),n,i,o))}function c7(n,i=""){const o=Dn(),s=oo(),l=n+Ti,f=s.firstCreatePass?Oh(s,l,1,i,null):s.data[l],y=l7(s,o,f,i,n);o[l]=y,Nc()&&$0(s,o,y,f),Ho(f,!1)}let l7=(n,i,o,s,l)=>(Ts(!0),function u(n,i){return n.createText(i)}(i[Ri],s));function Q6(n){return Sf("",n,""),Q6}function Sf(n,i,o){const s=Dn(),l=k2(s,n,i,o);return l!==uo&&$1(s,wr(),l),Sf}function J6(n,i,o,s,l){const f=Dn(),y=V2(f,n,i,o,s,l);return y!==uo&&$1(f,wr(),y),J6}function Z6(n,i,o){jg(i)&&(i=i());const s=Dn();return as(s,qs(),i)&&pc(oo(),Vo(),s,n,i,s[Ri],o,!1),Z6}function v7(n,i){const o=jg(n);return o&&n.set(i),o}function q6(n,i){const o=Dn(),s=oo(),l=Io();return Y6(s,o,o[Ri],l,n,i),q6}const _7={};function e8(n){const i=oo(),o=Dn(),s=n+Ti;return Ho(Oh(i,s,128,null,null),!1),X6(i,o,s,_7),e8}function y7(n){return Na("NgLet"),X6(oo(),Dn(),wr(),n),n}function C7(n){const o=Fc(ul(),Ti+n);if(o===_7)throw new An(314,!1);return o}function t8(n,i,o,s,l){if(n=Bn(n),Array.isArray(n))for(let f=0;f>20;if(Da(n)||!n.multi){const Qt=new cc(Se,l,T2),un=i8(j,i,l?He:He+Gt,_t);-1===un?(A1(Fu(D,y),f,j),n8(f,n,i.length),i.push(j),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),o.push(Qt),y.push(Qt)):(o[un]=Qt,y[un]=Qt)}else{const Qt=i8(j,i,He+Gt,_t),un=i8(j,i,He,He+Gt),ii=un>=0&&o[un];if(l&&!ii||!l&&!(Qt>=0&&o[Qt])){A1(Fu(D,y),f,j);const ui=function kT(n,i,o,s,l){const f=new cc(n,o,T2);return f.multi=[],f.index=i,f.componentProviders=0,b7(f,l,s&&!o),f}(l?NT:RT,o.length,l,s,Se);!l&&ii&&(o[un].providerFactory=ui),n8(f,n,i.length,0),i.push(j),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),o.push(ui),y.push(ui)}else n8(f,n,Qt>-1?Qt:un,b7(o[l?un:Qt],Se,!l&&s));!l&&s&&ii&&o[un].componentProviders++}}}function n8(n,i,o,s){const l=Da(i),f=function Xu(n){return!!n.useClass}(i);if(l||f){const j=(f?Bn(i.useClass):i).prototype.ngOnDestroy;if(j){const Se=n.destroyHooks||(n.destroyHooks=[]);if(!l&&i.multi){const He=Se.indexOf(o);-1===He?Se.push(o,[s,j]):Se[He+1].push(s,j)}else Se.push(o,j)}}}function b7(n,i,o){return o&&n.componentProviders++,n.multi.push(i)-1}function i8(n,i,o,s){for(let l=o;l{o.providersResolver=(s,l)=>function AT(n,i,o){const s=oo();if(s.firstCreatePass){const l=Zr(n);t8(o,s.data,s.blueprint,l,!0),t8(i,s.data,s.blueprint,l,!1)}}(s,l?l(n):n,i)}}let VT=(()=>{class n{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const s=Sc(0,o.type),l=s.length>0?h6([s],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,l)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=mo({token:n,providedIn:"environment",factory:()=>new n(Gi(Cs))})}return n})();function T7(n){Na("NgStandalone"),n.getStandaloneInjector=i=>i.get(VT).getOrCreateStandaloneInjector(n)}function z7(n,i,o){const s=n.\u0275cmp;s.directiveDefs=Tl(i,!1),s.pipeDefs=Tl(o,!0)}function D7(n,i,o){const s=qr()+n,l=Dn();return l[s]===uo?$u(l,s,o?i.call(o):i()):d4(l,s)}function O7(n,i,o,s){return A7(Dn(),qr(),n,i,o,s)}function I7(n,i,o,s,l){return R7(Dn(),qr(),n,i,o,s,l)}function w7(n,i,o,s,l,f){return N7(Dn(),qr(),n,i,o,s,l,f)}function x7(n,i,o,s,l,f,y){return k7(Dn(),qr(),n,i,o,s,l,f,y)}function P7(n,i,o,s,l,f,y,D){const j=qr()+n,Se=Dn(),He=vl(Se,j,o,s,l,f);return as(Se,j+4,y)||He?$u(Se,j+5,D?i.call(D,o,s,l,f,y):i(o,s,l,f,y)):d4(Se,j+5)}function F7(n,i,o,s,l,f,y,D,j){const Se=qr()+n,He=Dn(),_t=vl(He,Se,o,s,l,f);return Fh(He,Se+4,y,D)||_t?$u(He,Se+6,j?i.call(j,o,s,l,f,y,D):i(o,s,l,f,y,D)):d4(He,Se+6)}function E4(n,i){const o=n[i];return o===uo?void 0:o}function A7(n,i,o,s,l,f){const y=i+o;return as(n,y,l)?$u(n,y+1,f?s.call(f,l):s(l)):E4(n,y+1)}function R7(n,i,o,s,l,f,y){const D=i+o;return Fh(n,D,l,f)?$u(n,D+2,y?s.call(y,l,f):s(l,f)):E4(n,D+2)}function N7(n,i,o,s,l,f,y,D){const j=i+o;return function lf(n,i,o,s,l){const f=Fh(n,i,o,s);return as(n,i+2,l)||f}(n,j,l,f,y)?$u(n,j+3,D?s.call(D,l,f,y):s(l,f,y)):E4(n,j+3)}function k7(n,i,o,s,l,f,y,D,j){const Se=i+o;return vl(n,Se,l,f,y,D)?$u(n,Se+4,j?s.call(j,l,f,y,D):s(l,f,y,D)):E4(n,Se+4)}function L7(n,i){const o=oo();let s;const l=n+Ti;o.firstCreatePass?(s=function UT(n,i){if(i)for(let o=i.length-1;o>=0;o--){const s=i[o];if(n===s.name)return s}}(i,o.pipeRegistry),o.data[l]=s,s.onDestroy&&(o.destroyHooks??=[]).push(l,s.onDestroy)):s=o.data[l];const f=s.factory||(s.factory=xs(s.type)),D=Go(T2);try{const j=xu(!1),Se=f();return xu(j),X6(o,Dn(),l,Se),Se}finally{Go(D)}}function B7(n,i,o){const s=n+Ti,l=Dn(),f=Fc(l,s);return T4(l,s)?A7(l,qr(),i,f.transform,o,f):f.transform(o)}function $7(n,i,o,s){const l=n+Ti,f=Dn(),y=Fc(f,l);return T4(f,l)?R7(f,qr(),i,y.transform,o,s,y):y.transform(o,s)}function H7(n,i,o,s,l){const f=n+Ti,y=Dn(),D=Fc(y,f);return T4(y,f)?N7(y,qr(),i,D.transform,o,s,l,D):D.transform(o,s,l)}function j7(n,i,o,s,l,f){const y=n+Ti,D=Dn(),j=Fc(D,y);return T4(D,y)?k7(D,qr(),i,j.transform,o,s,l,f,j):j.transform(o,s,l,f)}function T4(n,i){return n[ni].data[i].pure}function U7(n,i){return W0(n,i)}class s_{constructor(i){this.full=i;const o=i.split(".");this.major=o[0],this.minor=o[1],this.patch=o.slice(2).join(".")}}let a_=(()=>{class n{log(o){console.log(o)}warn(o){console.warn(o)}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const h_=new wi(""),p_=new wi("");let u8,Vz=(()=>{class n{constructor(o,s,l){this._ngZone=o,this.registry=s,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,u8||(function Lz(n){u8=n}(l),l.addToWindow(s)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(o)||(clearTimeout(s.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,s,l){let f=-1;s&&s>0&&(f=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==f),o()},s)),this._callbacks.push({doneCb:o,timeoutId:f,updateCb:l})}whenStable(o,s,l){if(l&&!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(o,s,l),this._runCallbacksIfReady()}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,s,l){return[]}static#e=this.\u0275fac=function(s){return new(s||n)(Gi(Pr),Gi(f_),Gi(p_))};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac})}return n})(),f_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(o,s){this._applications.set(o,s)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,s=!0){return u8?.findTestabilityInTree(this,o,s)??null}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function d8(n){return!!n&&"function"==typeof n.then}function m_(n){return!!n&&"function"==typeof n.subscribe}const g_=new wi("");let h8=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,s)=>{this.resolve=o,this.reject=s}),this.appInits=Xn(g_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const o=[];for(const l of this.appInits){const f=l();if(d8(f))o.push(f);else if(m_(f)){const y=new Promise((D,j)=>{f.subscribe({complete:D,error:j})});o.push(y)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{s()}).catch(l=>{this.reject(l)}),0===o.length&&s(),this.initialized=!0}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const xf=new wi("");function y_(n,i){return Array.isArray(i)?i.reduce(y_,n):{...n,...i}}let ru=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Xn(T),this.afterRenderEffectManager=Xn(ef),this.zonelessEnabled=Xn(r4),this.externalTestViews=new Set,this.beforeRender=new bt.B,this.afterTick=new bt.B,this.componentTypes=[],this.components=[],this.isStable=Xn(Xt).hasPendingTasks.pipe((0,Et.T)(o=>!o)),this._injector=Xn(Cs)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,s){const l=o instanceof dg;if(!this._injector.get(h8).done)throw!l&&ia(o),new An(405,!1);let y;y=l?o:this._injector.get(s4).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const D=function Bz(n){return n.isBoundToModule}(y)?void 0:this._injector.get(Ph),Se=y.create(kr.NULL,[],s||y.selector,D),He=Se.location.nativeElement,_t=Se.injector.get(h_,null);return _t?.registerApplication(He),Se.onDestroy(()=>{this.detachView(Se.hostView),Pf(this.components,Se),_t?.unregisterApplication(He)}),this._loadComponent(Se),Se}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new An(101,!1);const s=G(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,G(s),this.afterTick.next()}}detectChangesInAttachedViews(o){let s=null;this._injector.destroyed||(s=this._injector.get(Y3,null,{optional:!0}));let l=0;const f=this.afterRenderEffectManager;for(;l<10;){const y=0===l;if(o||!y){this.beforeRender.next(y);for(let{_lView:D,notifyErrorHandler:j}of this._views)Hz(D,j,y,this.zonelessEnabled)}else s?.begin?.(),s?.end?.();if(l++,f.executeInternalCallbacks(),!this.allViews.some(({_lView:D})=>Bs(D))&&(f.execute(),!this.allViews.some(({_lView:D})=>Bs(D))))break}}attachView(o){const s=o;this._views.push(s),s.attachToAppRef(this)}detachView(o){const s=o;Pf(this._views,s),s.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const s=this._injector.get(xf,[]);[...this._bootstrapListeners,...s].forEach(l=>l(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>Pf(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new An(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Pf(n,i){const o=n.indexOf(i);o>-1&&n.splice(o,1)}function Hz(n,i,o,s){(o||Bs(n))&&Y0(n,i,o&&!s?0:1)}class jz{constructor(i,o){this.ngModuleFactory=i,this.componentFactories=o}}let Uz=(()=>{class n{compileModuleSync(o){return new d6(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const s=this.compileModuleSync(o),f=Aa(tr(o).declarations).reduce((y,D)=>{const j=Hi(D);return j&&y.push(new l4(j)),y},[]);return new jz(s,f)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Wz=(()=>{class n{constructor(){this.zone=Xn(Pr),this.changeDetectionScheduler=Xn(D2),this.applicationRef=Xn(ru)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function p8({ngZoneFactory:n,ignoreChangesOutsideZone:i}){return n??=()=>new Pr(f8()),[{provide:Pr,useFactory:n},{provide:ar,multi:!0,useFactory:()=>{const o=Xn(Wz,{optional:!0});return()=>o.initialize()}},{provide:ar,multi:!0,useFactory:()=>{const o=Xn(Qz);return()=>{o.initialize()}}},{provide:T,useFactory:Xz},!0===i?{provide:lg,useValue:!0}:[]]}function Xz(){const n=Xn(Pr),i=Xn(_a);return o=>n.runOutsideAngular(()=>i.handleError(o))}function f8(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let Qz=(()=>{class n{constructor(){this.subscription=new At.yU,this.initialized=!1,this.zone=Xn(Pr),this.pendingTasks=Xn(Xt)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Pr.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Pr.assertInAngularZone(),o??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),S4=(()=>{class n{constructor(){this.appRef=Xn(ru),this.taskService=Xn(Xt),this.ngZone=Xn(Pr),this.zonelessEnabled=Xn(r4),this.disableScheduling=Xn(lg,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new At.yU,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof q0||!this.zoneIsDefined)}notify(o){if(!this.zonelessEnabled&&5===o)return;switch(o){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const s=this.useMicrotaskScheduler?mg:fg;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=s(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=s(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Pr.isInAngularZone())}tick(o){if(this.runningTick||this.appRef.destroyed)return;const s=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(o)},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(s),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,mg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(s)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const o=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(o)}}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Af=new wi("",{providedIn:"root",factory:()=>Xn(Af,co.Optional|co.SkipSelf)||function Jz(){return typeof $localize<"u"&&$localize.locale||K2}()}),Zz=new wi("",{providedIn:"root",factory:()=>"USD"}),g8=new wi("");let z_=(()=>{class n{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,s){const l=function cC(n="zone.js",i){return"noop"===n?new q0:"zone.js"===n?new Pr(i):n}(s?.ngZone,f8({eventCoalescing:s?.ngZoneEventCoalescing,runCoalescing:s?.ngZoneRunCoalescing}));return l.run(()=>{const f=s?.ignoreChangesOutsideZone,y=function tb(n,i,o){return new u6(n,i,o)}(o.moduleType,this.injector,[...p8({ngZoneFactory:()=>l,ignoreChangesOutsideZone:f}),{provide:D2,useExisting:S4}]),D=y.injector.get(_a,null);return l.runOutsideAngular(()=>{const j=l.onError.subscribe({next:Se=>{D.handleError(Se)}});y.onDestroy(()=>{Pf(this._modules,y),j.unsubscribe()})}),function __(n,i,o){try{const s=o();return d8(s)?s.catch(l=>{throw i.runOutsideAngular(()=>n.handleError(l)),l}):s}catch(s){throw i.runOutsideAngular(()=>n.handleError(s)),s}}(D,l,()=>{const j=y.injector.get(h8);return j.runInitializers(),j.donePromise.then(()=>(function m5(n){"string"==typeof n&&(f5=n.toLowerCase().replace(/_/g,"-"))}(y.injector.get(Af,K2)||K2),this._moduleDoBootstrap(y),y))})})}bootstrapModule(o,s=[]){const l=y_({},s);return function Yz(n,i,o){const s=new d6(o);return Promise.resolve(s)}(0,0,o).then(f=>this.bootstrapModuleFactory(f,l))}_moduleDoBootstrap(o){const s=o.injector.get(ru);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(l=>s.bootstrap(l));else{if(!o.instance.ngDoBootstrap)throw new An(-403,!1);o.instance.ngDoBootstrap(s)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new An(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const o=this._injector.get(g8,null);o&&(o.forEach(s=>s()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(s){return new(s||n)(Gi(kr))};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})(),Qd=null;const M_=new wi("");function S_(n,i,o=[]){const s=`Platform: ${i}`,l=new wi(s);return(f=[])=>{let y=v8();if(!y||y.injector.get(M_,!1)){const D=[...o,...f,{provide:l,useValue:!0}];n?n(D):function eM(n){if(Qd&&!Qd.get(M_,!1))throw new An(400,!1);(function v_(){!function vt(n){Be=n}(()=>{throw new An(600,!1)})})(),Qd=n;const i=n.get(z_);(function O_(n){n.get(hp,null)?.forEach(o=>o())})(n)}(function D_(n=[],i){return kr.create({name:i,providers:[{provide:Dl,useValue:"platform"},{provide:g8,useValue:new Set([()=>Qd=null])},...n]})}(D,s))}return function tM(n){const i=v8();if(!i)throw new An(401,!1);return i}()}}function v8(){return Qd?.get(z_)??null}function iM(){return!1}function oM(){}let w_=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=rM}return n})();function rM(n){return function sM(n,i,o){if(Ia(n)&&!o){const s=Es(n.index,i);return new Qp(s,s)}return 175&n.type?new Qp(i[Wo],i):null}(Io(),Dn(),!(16&~n))}class A_{constructor(){}supports(i){return cf(i)}create(i){return new dM(i)}}const uM=(n,i)=>i;class dM{constructor(i){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=i||uM}forEachItem(i){let o;for(o=this._itHead;null!==o;o=o._next)i(o)}forEachOperation(i){let o=this._itHead,s=this._removalsHead,l=0,f=null;for(;o||s;){const y=!s||o&&o.currentIndex{y=this._trackByFn(l,D),null!==o&&Object.is(o.trackById,y)?(s&&(o=this._verifyReinsertion(o,D,y,l)),Object.is(o.item,D)||this._addIdentityChange(o,D)):(o=this._mismatch(o,D,y,l),s=!0),o=o._next,l++}),this.length=l;return this._truncate(o),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,o,s,l){let f;return null===i?f=this._itTail:(f=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._reinsertAfter(i,f,l)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(s,l))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._moveAfter(i,f,l)):i=this._addAfter(new hM(o,s),f,l),i}_verifyReinsertion(i,o,s,l){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null);return null!==f?i=this._reinsertAfter(f,i._prev,l):i.currentIndex!=l&&(i.currentIndex=l,this._addToMoves(i,l)),i}_truncate(i){for(;null!==i;){const o=i._next;this._addToRemovals(this._unlink(i)),i=o}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(i,o,s){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const l=i._prevRemoved,f=i._nextRemoved;return null===l?this._removalsHead=f:l._nextRemoved=f,null===f?this._removalsTail=l:f._prevRemoved=l,this._insertAfter(i,o,s),this._addToMoves(i,s),i}_moveAfter(i,o,s){return this._unlink(i),this._insertAfter(i,o,s),this._addToMoves(i,s),i}_addAfter(i,o,s){return this._insertAfter(i,o,s),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,o,s){const l=null===o?this._itHead:o._next;return i._next=l,i._prev=o,null===l?this._itTail=i:l._prev=i,null===o?this._itHead=i:o._next=i,null===this._linkedRecords&&(this._linkedRecords=new R_),this._linkedRecords.put(i),i.currentIndex=s,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const o=i._prev,s=i._next;return null===o?this._itHead=s:o._next=s,null===s?this._itTail=o:s._prev=o,i}_addToMoves(i,o){return i.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new R_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,o){return i.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class hM{constructor(i,o){this.item=i,this.trackById=o,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 pM{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,o){let s;for(s=this._head;null!==s;s=s._nextDup)if((null===o||o<=s.currentIndex)&&Object.is(s.trackById,i))return s;return null}remove(i){const o=i._prevDup,s=i._nextDup;return null===o?this._head=s:o._nextDup=s,null===s?this._tail=o:s._prevDup=o,null===this._head}}class R_{constructor(){this.map=new Map}put(i){const o=i.trackById;let s=this.map.get(o);s||(s=new pM,this.map.set(o,s)),s.add(i)}get(i,o){const l=this.map.get(i);return l?l.get(i,o):null}remove(i){const o=i.trackById;return this.map.get(o).remove(i)&&this.map.delete(o),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function N_(n,i,o){const s=n.previousIndex;if(null===s)return s;let l=0;return o&&s{if(o&&o.key===l)this._maybeAddToChanges(o,s),this._appendAfter=o,o=o._next;else{const f=this._getOrCreateRecordForKey(l,s);o=this._insertBeforeOrAppend(o,f)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let s=o;null!==s;s=s._nextRemoved)s===this._mapHead&&(this._mapHead=null),this._records.delete(s.key),s._nextRemoved=s._next,s.previousValue=s.currentValue,s.currentValue=null,s._prev=null,s._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,o){if(i){const s=i._prev;return o._next=i,o._prev=s,i._prev=o,s&&(s._next=o),i===this._mapHead&&(this._mapHead=o),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(i,o){if(this._records.has(i)){const l=this._records.get(i);this._maybeAddToChanges(l,o);const f=l._prev,y=l._next;return f&&(f._next=y),y&&(y._prev=f),l._next=null,l._prev=null,l}const s=new mM(i);return this._records.set(i,s),s.currentValue=o,this._addToAdditions(s),s}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,o){Object.is(o,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=o,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,o){i instanceof Map?i.forEach(o):Object.keys(i).forEach(s=>o(i[s],s))}}class mM{constructor(i){this.key=i,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 V_(){return new E8([new A_])}let E8=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:V_});constructor(o){this.factories=o}static create(o,s){if(null!=s){const l=s.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:s=>n.create(o,s||V_()),deps:[[n,new vs,new Br]]}}find(o){const s=this.factories.find(l=>l.supports(o));if(null!=s)return s;throw new An(901,!1)}}return n})();function L_(){return new T8([new k_])}let T8=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:L_});constructor(o){this.factories=o}static create(o,s){if(s){const l=s.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:s=>n.create(o,s||L_()),deps:[[n,new vs,new Br]]}}find(o){const s=this.factories.find(l=>l.supports(o));if(s)return s;throw new An(901,!1)}}return n})();const _M=S_(null,"core",[]);let yM=(()=>{class n{constructor(o){}static#e=this.\u0275fac=function(s){return new(s||n)(Gi(ru))};static#t=this.\u0275mod=Ai({type:n});static#n=this.\u0275inj=Yr({})}return n})();const n9=new wi("");function eS(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function tS(n,i=NaN){return isNaN(parseFloat(n))||isNaN(Number(n))?i:Number(n)}function iS(n,i){Na("NgSignals");const o=function pe(n){const i=Object.create(Y);i.computation=n;const o=()=>{if(X(i),I(i),i.value===R)throw i.error;return i.value};return o[M]=i,o}(n);return i?.equal&&(o[M].equal=i.equal),o}function oS(n){const i=G(null);try{return n()}finally{G(i)}}const rS=new wi("",{providedIn:"root",factory:()=>Xn(sS)});let sS=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new aS})}return n})();class aS{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Xn(Xt),this.taskId=null}scheduleEffect(i){if(this.enqueue(i),null===this.taskId){const o=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(o),this.taskId=null})}}enqueue(i){const o=i.creationZone;this.queues.has(o)||this.queues.set(o,new Set);const s=this.queues.get(o);s.has(i)||(this.queuedEffectCount++,s.add(i))}flush(){for(;this.queuedEffectCount>0;)for(const[i,o]of this.queues)null===i?this.flushQueue(o):i.run(()=>this.flushQueue(o))}flushQueue(i){for(const o of i)i.delete(o),this.queuedEffectCount--,o.run()}}class cS{constructor(i,o,s,l,f,y){this.scheduler=i,this.effectFn=o,this.creationZone=s,this.injector=f,this.watcher=function jt(n,i,o){const s=Object.create(fn);o&&(s.consumerAllowSignalWrites=!0),s.fn=n,s.schedule=i;const l=j=>{s.cleanupFn=j};return s.ref={notify:()=>ne(s),run:()=>{if(null===s.fn)return;if(function B(){return g}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(s.dirty=!1,s.hasRun&&!Oe(s))return;s.hasRun=!0;const j=J(s);try{s.cleanupFn(),s.cleanupFn=Vt,s.fn(l)}finally{be(s,j)}},cleanup:()=>s.cleanupFn(),destroy:()=>function y(j){(function f(j){return null===j.fn&&null===j.schedule})(j)||(he(j),j.cleanupFn(),j.fn=null,j.schedule=null,j.cleanupFn=Vt)}(s),[M]:s},s.ref}(D=>this.runEffect(D),()=>this.schedule(),y),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(i){try{this.effectFn(i)}catch(o){this.injector.get(_a,null,{optional:!0})?.handleError(o)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function h9(n,i){Na("NgSignals"),!i?.injector&&tl();const o=i?.injector??Xn(kr),s=!0!==i?.manualCleanup?o.get(d):null,l=new cS(o.get(rS),n,typeof Zone>"u"?null:Zone.current,s,o,i?.allowSignalWrites??!1),f=o.get(w_,null,{optional:!0});return f&&8&f._lView[Pi]?(f._lView[il]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function lS(n,i){const o=Hi(n),s=i.elementInjector||el();return new l4(o).create(s,i.projectableNodes,i.hostElement,i.environmentInjector)}function uS(n){const i=Hi(n);if(!i)return null;const o=new l4(i);return{get selector(){return o.selector},get type(){return o.componentType},get inputs(){return o.inputs},get outputs(){return o.outputs},get ngContentSelectors(){return o.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}},9417:(Rt,De,c)=>{c.d(De,{BC:()=>Yt,EL:()=>ce,J3:()=>ve,JD:()=>qn,MJ:()=>Ni,X1:()=>ts,YN:()=>Oo,YS:()=>sr,Yp:()=>sn,Zm:()=>I,cV:()=>pn,cb:()=>Ue,gE:()=>N,j4:()=>tn,k0:()=>we,kq:()=>A,l_:()=>Mt,mP:()=>V,me:()=>x,qT:()=>xn,vO:()=>bt,vS:()=>qi});var t=c(3953),r=c(177),g=c(2806),e=c(7468),M=c(1413),G=c(6354);let L=(()=>{class Ne{constructor(ye,ht){this._renderer=ye,this._elementRef=ht,this.onChange=Jt=>{},this.onTouched=()=>{}}setProperty(ye,ht){this._renderer.setProperty(this._elementRef.nativeElement,ye,ht)}registerOnTouched(ye){this.onTouched=ye}registerOnChange(ye){this.onChange=ye}setDisabledState(ye){this.setProperty("disabled",ye)}static#e=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ne})}return Ne})(),B=(()=>{class Ne extends L{static#e=this.\u0275fac=(()=>{let ye;return function(Jt){return(ye||(ye=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,features:[t.Vt3]})}return Ne})();const A=new t.nKC(""),w={provide:A,useExisting:(0,t.Rfq)(()=>I),multi:!0};let I=(()=>{class Ne extends B{writeValue(ye){this.setProperty("checked",ye)}static#e=this.\u0275fac=(()=>{let ye;return function(Jt){return(ye||(ye=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ht,Jt){1&ht&&t.bIt("change",function(Qi){return Jt.onChange(Qi.target.checked)})("blur",function(){return Jt.onTouched()})},features:[t.Jv_([w]),t.Vt3]})}return Ne})();const F={provide:A,useExisting:(0,t.Rfq)(()=>x),multi:!0},V=new t.nKC("");let x=(()=>{class Ne extends L{constructor(ye,ht,Jt){super(ye,ht),this._compositionMode=Jt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function X(){const Ne=(0,r.QT)()?(0,r.QT)().getUserAgent():"";return/android (\d+)/.test(Ne.toLowerCase())}())}writeValue(ye){this.setProperty("value",ye??"")}_handleInput(ye){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ye)}_compositionStart(){this._composing=!0}_compositionEnd(ye){this._composing=!1,this._compositionMode&&this.onChange(ye)}static#e=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(V,8))};static#t=this.\u0275dir=t.FsC({type:Ne,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(ht,Jt){1&ht&&t.bIt("input",function(Qi){return Jt._handleInput(Qi.target.value)})("blur",function(){return Jt.onTouched()})("compositionstart",function(){return Jt._compositionStart()})("compositionend",function(Qi){return Jt._compositionEnd(Qi.target.value)})},features:[t.Jv_([F]),t.Vt3]})}return Ne})();function ne(Ne){return null==Ne||("string"==typeof Ne||Array.isArray(Ne))&&0===Ne.length}function J(Ne){return null!=Ne&&"number"==typeof Ne.length}const be=new t.nKC(""),Oe=new t.nKC(""),he=/^(?=.{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 we{static min(je){return function me(Ne){return je=>{if(ne(je.value)||ne(Ne))return null;const ye=parseFloat(je.value);return!isNaN(ye)&&ye{if(ne(je.value)||ne(Ne))return null;const ye=parseFloat(je.value);return!isNaN(ye)&&ye>Ne?{max:{max:Ne,actual:je.value}}:null}}(je)}static required(je){return H(je)}static requiredTrue(je){return function z(Ne){return!0===Ne.value?null:{required:!0}}(je)}static email(je){return function Z(Ne){return ne(Ne.value)||he.test(Ne.value)?null:{email:!0}}(je)}static minLength(je){return function pe(Ne){return je=>ne(je.value)||!J(je.value)?null:je.value.lengthJ(je.value)&&je.value.length>Ne?{maxlength:{requiredLength:Ne,actualLength:je.value.length}}:null}(je)}static pattern(je){return function S(Ne){if(!Ne)return R;let je,ye;return"string"==typeof Ne?(ye="","^"!==Ne.charAt(0)&&(ye+="^"),ye+=Ne,"$"!==Ne.charAt(Ne.length-1)&&(ye+="$"),je=new RegExp(ye)):(ye=Ne.toString(),je=Ne),ht=>{if(ne(ht.value))return null;const Jt=ht.value;return je.test(Jt)?null:{pattern:{requiredPattern:ye,actualValue:Jt}}}}(je)}static nullValidator(je){return null}static compose(je){return Le(je)}static composeAsync(je){return xt(je)}}function H(Ne){return ne(Ne.value)?{required:!0}:null}function R(Ne){return null}function Y(Ne){return null!=Ne}function se(Ne){return(0,t.jNT)(Ne)?(0,g.H)(Ne):Ne}function Be(Ne){let je={};return Ne.forEach(ye=>{je=null!=ye?{...je,...ye}:je}),0===Object.keys(je).length?null:je}function Pt(Ne,je){return je.map(ye=>ye(Ne))}function wt(Ne){return Ne.map(je=>function vt(Ne){return!Ne.validate}(je)?je:ye=>je.validate(ye))}function Le(Ne){if(!Ne)return null;const je=Ne.filter(Y);return 0==je.length?null:function(ye){return Be(Pt(ye,je))}}function zt(Ne){return null!=Ne?Le(wt(Ne)):null}function xt(Ne){if(!Ne)return null;const je=Ne.filter(Y);return 0==je.length?null:function(ye){const ht=Pt(ye,je).map(se);return(0,e.p)(ht).pipe((0,G.T)(Be))}}function st(Ne){return null!=Ne?xt(wt(Ne)):null}function Ct(Ne,je){return null===Ne?[je]:Array.isArray(Ne)?[...Ne,je]:[Ne,je]}function It(Ne){return Ne._rawValidators}function Tt(Ne){return Ne._rawAsyncValidators}function en(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}function jt(Ne,je){return Array.isArray(Ne)?Ne.includes(je):Ne===je}function Vt(Ne,je){const ye=en(je);return en(Ne).forEach(Jt=>{jt(ye,Jt)||ye.push(Jt)}),ye}function fn(Ne,je){return en(je).filter(ye=>!jt(Ne,ye))}class Hn{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(je){this._rawValidators=je||[],this._composedValidatorFn=zt(this._rawValidators)}_setAsyncValidators(je){this._rawAsyncValidators=je||[],this._composedAsyncValidatorFn=st(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(je){this._onDestroyCallbacks.push(je)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(je=>je()),this._onDestroyCallbacks=[]}reset(je=void 0){this.control&&this.control.reset(je)}hasError(je,ye){return!!this.control&&this.control.hasError(je,ye)}getError(je,ye){return this.control?this.control.getError(je,ye):null}}class zn extends Hn{get formDirective(){return null}get path(){return null}}class bt extends Hn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class At{constructor(je){this._cd=je}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Yt=(()=>{class Ne extends At{constructor(ye){super(ye)}static#e=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(bt,2))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ht,Jt){2&ht&&t.AVh("ng-untouched",Jt.isUntouched)("ng-touched",Jt.isTouched)("ng-pristine",Jt.isPristine)("ng-dirty",Jt.isDirty)("ng-valid",Jt.isValid)("ng-invalid",Jt.isInvalid)("ng-pending",Jt.isPending)},features:[t.Vt3]})}return Ne})(),Ue=(()=>{class Ne extends At{constructor(ye){super(ye)}static#e=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(zn,10))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ht,Jt){2&ht&&t.AVh("ng-untouched",Jt.isUntouched)("ng-touched",Jt.isTouched)("ng-pristine",Jt.isPristine)("ng-dirty",Jt.isDirty)("ng-valid",Jt.isValid)("ng-invalid",Jt.isInvalid)("ng-pending",Jt.isPending)("ng-submitted",Jt.isSubmitted)},features:[t.Vt3]})}return Ne})();const Ye="VALID",ue="INVALID",te="PENDING",q="DISABLED";class Xe{}class dt extends Xe{constructor(je,ye){super(),this.value=je,this.source=ye}}class at extends Xe{constructor(je,ye){super(),this.pristine=je,this.source=ye}}class St extends Xe{constructor(je,ye){super(),this.touched=je,this.source=ye}}class Qe extends Xe{constructor(je,ye){super(),this.status=je,this.source=ye}}class Ee extends Xe{constructor(je){super(),this.source=je}}class Je extends Xe{constructor(je){super(),this.source=je}}function re(Ne){return(Pe(Ne)?Ne.validators:Ne)||null}function gt(Ne,je){return(Pe(je)?je.asyncValidators:Ne)||null}function Pe(Ne){return null!=Ne&&!Array.isArray(Ne)&&"object"==typeof Ne}function Re(Ne,je,ye){const ht=Ne.controls;if(!(je?Object.keys(ht):ht).length)throw new t.wOt(1e3,"");if(!ht[ye])throw new t.wOt(1001,"")}function $(Ne,je,ye){Ne._forEachChild((ht,Jt)=>{if(void 0===ye[Jt])throw new t.wOt(1002,"")})}class ce{constructor(je,ye){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,t.EWP)(()=>this.statusReactive()),this.statusReactive=(0,t.vPA)(void 0),this._pristine=(0,t.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,t.vPA)(!0),this._touched=(0,t.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,t.vPA)(!1),this._events=new M.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(je),this._assignAsyncValidators(ye)}get validator(){return this._composedValidatorFn}set validator(je){this._rawValidators=this._composedValidatorFn=je}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(je){this._rawAsyncValidators=this._composedAsyncValidatorFn=je}get parent(){return this._parent}get status(){return(0,t.O8t)(this.statusReactive)}set status(je){(0,t.O8t)(()=>this.statusReactive.set(je))}get valid(){return this.status===Ye}get invalid(){return this.status===ue}get pending(){return this.status==te}get disabled(){return this.status===q}get enabled(){return this.status!==q}get pristine(){return(0,t.O8t)(this.pristineReactive)}set pristine(je){(0,t.O8t)(()=>this.pristineReactive.set(je))}get dirty(){return!this.pristine}get touched(){return(0,t.O8t)(this.touchedReactive)}set touched(je){(0,t.O8t)(()=>this.touchedReactive.set(je))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(je){this._assignValidators(je)}setAsyncValidators(je){this._assignAsyncValidators(je)}addValidators(je){this.setValidators(Vt(je,this._rawValidators))}addAsyncValidators(je){this.setAsyncValidators(Vt(je,this._rawAsyncValidators))}removeValidators(je){this.setValidators(fn(je,this._rawValidators))}removeAsyncValidators(je){this.setAsyncValidators(fn(je,this._rawAsyncValidators))}hasValidator(je){return jt(this._rawValidators,je)}hasAsyncValidator(je){return jt(this._rawAsyncValidators,je)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(je={}){const ye=!1===this.touched;this.touched=!0;const ht=je.sourceControl??this;this._parent&&!je.onlySelf&&this._parent.markAsTouched({...je,sourceControl:ht}),ye&&!1!==je.emitEvent&&this._events.next(new St(!0,ht))}markAllAsTouched(je={}){this.markAsTouched({onlySelf:!0,emitEvent:je.emitEvent,sourceControl:this}),this._forEachChild(ye=>ye.markAllAsTouched(je))}markAsUntouched(je={}){const ye=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const ht=je.sourceControl??this;this._forEachChild(Jt=>{Jt.markAsUntouched({onlySelf:!0,emitEvent:je.emitEvent,sourceControl:ht})}),this._parent&&!je.onlySelf&&this._parent._updateTouched(je,ht),ye&&!1!==je.emitEvent&&this._events.next(new St(!1,ht))}markAsDirty(je={}){const ye=!0===this.pristine;this.pristine=!1;const ht=je.sourceControl??this;this._parent&&!je.onlySelf&&this._parent.markAsDirty({...je,sourceControl:ht}),ye&&!1!==je.emitEvent&&this._events.next(new at(!1,ht))}markAsPristine(je={}){const ye=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const ht=je.sourceControl??this;this._forEachChild(Jt=>{Jt.markAsPristine({onlySelf:!0,emitEvent:je.emitEvent})}),this._parent&&!je.onlySelf&&this._parent._updatePristine(je,ht),ye&&!1!==je.emitEvent&&this._events.next(new at(!0,ht))}markAsPending(je={}){this.status=te;const ye=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new Qe(this.status,ye)),this.statusChanges.emit(this.status)),this._parent&&!je.onlySelf&&this._parent.markAsPending({...je,sourceControl:ye})}disable(je={}){const ye=this._parentMarkedDirty(je.onlySelf);this.status=q,this.errors=null,this._forEachChild(Jt=>{Jt.disable({...je,onlySelf:!0})}),this._updateValue();const ht=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new dt(this.value,ht)),this._events.next(new Qe(this.status,ht)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...je,skipPristineCheck:ye},this),this._onDisabledChange.forEach(Jt=>Jt(!0))}enable(je={}){const ye=this._parentMarkedDirty(je.onlySelf);this.status=Ye,this._forEachChild(ht=>{ht.enable({...je,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent}),this._updateAncestors({...je,skipPristineCheck:ye},this),this._onDisabledChange.forEach(ht=>ht(!1))}_updateAncestors(je,ye){this._parent&&!je.onlySelf&&(this._parent.updateValueAndValidity(je),je.skipPristineCheck||this._parent._updatePristine({},ye),this._parent._updateTouched({},ye))}setParent(je){this._parent=je}getRawValue(){return this.value}updateValueAndValidity(je={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const ht=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ye||this.status===te)&&this._runAsyncValidator(ht,je.emitEvent)}const ye=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new dt(this.value,ye)),this._events.next(new Qe(this.status,ye)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!je.onlySelf&&this._parent.updateValueAndValidity({...je,sourceControl:ye})}_updateTreeValidity(je={emitEvent:!0}){this._forEachChild(ye=>ye._updateTreeValidity(je)),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?q:Ye}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(je,ye){if(this.asyncValidator){this.status=te,this._hasOwnPendingAsyncValidator={emitEvent:!1!==ye};const ht=se(this.asyncValidator(this));this._asyncValidationSubscription=ht.subscribe(Jt=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Jt,{emitEvent:ye,shouldHaveEmitted:je})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const je=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,je}return!1}setErrors(je,ye={}){this.errors=je,this._updateControlsErrors(!1!==ye.emitEvent,this,ye.shouldHaveEmitted)}get(je){let ye=je;return null==ye||(Array.isArray(ye)||(ye=ye.split(".")),0===ye.length)?null:ye.reduce((ht,Jt)=>ht&&ht._find(Jt),this)}getError(je,ye){const ht=ye?this.get(ye):this;return ht&&ht.errors?ht.errors[je]:null}hasError(je,ye){return!!this.getError(je,ye)}get root(){let je=this;for(;je._parent;)je=je._parent;return je}_updateControlsErrors(je,ye,ht){this.status=this._calculateStatus(),je&&this.statusChanges.emit(this.status),(je||ht)&&this._events.next(new Qe(this.status,ye)),this._parent&&this._parent._updateControlsErrors(je,ye,ht)}_initObservables(){this.valueChanges=new t.bkB,this.statusChanges=new t.bkB}_calculateStatus(){return this._allControlsDisabled()?q:this.errors?ue:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(te)?te:this._anyControlsHaveStatus(ue)?ue:Ye}_anyControlsHaveStatus(je){return this._anyControls(ye=>ye.status===je)}_anyControlsDirty(){return this._anyControls(je=>je.dirty)}_anyControlsTouched(){return this._anyControls(je=>je.touched)}_updatePristine(je,ye){const ht=!this._anyControlsDirty(),Jt=this.pristine!==ht;this.pristine=ht,this._parent&&!je.onlySelf&&this._parent._updatePristine(je,ye),Jt&&this._events.next(new at(this.pristine,ye))}_updateTouched(je={},ye){this.touched=this._anyControlsTouched(),this._events.next(new St(this.touched,ye)),this._parent&&!je.onlySelf&&this._parent._updateTouched(je,ye)}_registerOnCollectionChange(je){this._onCollectionChange=je}_setUpdateStrategy(je){Pe(je)&&null!=je.updateOn&&(this._updateOn=je.updateOn)}_parentMarkedDirty(je){return!je&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(je){return null}_assignValidators(je){this._rawValidators=Array.isArray(je)?je.slice():je,this._composedValidatorFn=function ze(Ne){return Array.isArray(Ne)?zt(Ne):Ne||null}(this._rawValidators)}_assignAsyncValidators(je){this._rawAsyncValidators=Array.isArray(je)?je.slice():je,this._composedAsyncValidatorFn=function Ke(Ne){return Array.isArray(Ne)?st(Ne):Ne||null}(this._rawAsyncValidators)}}class N extends ce{constructor(je,ye,ht){super(re(ye),gt(ht,ye)),this.controls=je,this._initObservables(),this._setUpdateStrategy(ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(je,ye){return this.controls[je]?this.controls[je]:(this.controls[je]=ye,ye.setParent(this),ye._registerOnCollectionChange(this._onCollectionChange),ye)}addControl(je,ye,ht={}){this.registerControl(je,ye),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}removeControl(je,ye={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],this.updateValueAndValidity({emitEvent:ye.emitEvent}),this._onCollectionChange()}setControl(je,ye,ht={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],ye&&this.registerControl(je,ye),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}contains(je){return this.controls.hasOwnProperty(je)&&this.controls[je].enabled}setValue(je,ye={}){$(this,0,je),Object.keys(je).forEach(ht=>{Re(this,!0,ht),this.controls[ht].setValue(je[ht],{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye)}patchValue(je,ye={}){null!=je&&(Object.keys(je).forEach(ht=>{const Jt=this.controls[ht];Jt&&Jt.patchValue(je[ht],{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye))}reset(je={},ye={}){this._forEachChild((ht,Jt)=>{ht.reset(je?je[Jt]:null,{onlySelf:!0,emitEvent:ye.emitEvent})}),this._updatePristine(ye,this),this._updateTouched(ye,this),this.updateValueAndValidity(ye)}getRawValue(){return this._reduceChildren({},(je,ye,ht)=>(je[ht]=ye.getRawValue(),je))}_syncPendingControls(){let je=this._reduceChildren(!1,(ye,ht)=>!!ht._syncPendingControls()||ye);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){Object.keys(this.controls).forEach(ye=>{const ht=this.controls[ye];ht&&je(ht,ye)})}_setUpControls(){this._forEachChild(je=>{je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(je){for(const[ye,ht]of Object.entries(this.controls))if(this.contains(ye)&&je(ht))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ye,ht,Jt)=>((ht.enabled||this.disabled)&&(ye[Jt]=ht.value),ye))}_reduceChildren(je,ye){let ht=je;return this._forEachChild((Jt,Ii)=>{ht=ye(ht,Jt,Ii)}),ht}_allControlsDisabled(){for(const je of Object.keys(this.controls))if(this.controls[je].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(je){return this.controls.hasOwnProperty(je)?this.controls[je]:null}}const ve=N,qe=new t.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>rt}),rt="always";function Ft(Ne,je){return[...je.path,Ne]}function on(Ne,je,ye=rt){Gn(Ne,je),je.valueAccessor.writeValue(Ne.value),(Ne.disabled||"always"===ye)&&je.valueAccessor.setDisabledState?.(Ne.disabled),function Oi(Ne,je){je.valueAccessor.registerOnChange(ye=>{Ne._pendingValue=ye,Ne._pendingChange=!0,Ne._pendingDirty=!0,"change"===Ne.updateOn&&Zi(Ne,je)})}(Ne,je),function Bo(Ne,je){const ye=(ht,Jt)=>{je.valueAccessor.writeValue(ht),Jt&&je.viewToModelUpdate(ht)};Ne.registerOnChange(ye),je._registerOnDestroy(()=>{Ne._unregisterOnChange(ye)})}(Ne,je),function lo(Ne,je){je.valueAccessor.registerOnTouched(()=>{Ne._pendingTouched=!0,"blur"===Ne.updateOn&&Ne._pendingChange&&Zi(Ne,je),"submit"!==Ne.updateOn&&Ne.markAsTouched()})}(Ne,je),function jn(Ne,je){if(je.valueAccessor.setDisabledState){const ye=ht=>{je.valueAccessor.setDisabledState(ht)};Ne.registerOnDisabledChange(ye),je._registerOnDestroy(()=>{Ne._unregisterOnDisabledChange(ye)})}}(Ne,je)}function Cn(Ne,je,ye=!0){const ht=()=>{};je.valueAccessor&&(je.valueAccessor.registerOnChange(ht),je.valueAccessor.registerOnTouched(ht)),zi(Ne,je),Ne&&(je._invokeOnDestroyCallbacks(),Ne._registerOnCollectionChange(()=>{}))}function Zn(Ne,je){Ne.forEach(ye=>{ye.registerOnValidatorChange&&ye.registerOnValidatorChange(je)})}function Gn(Ne,je){const ye=It(Ne);null!==je.validator?Ne.setValidators(Ct(ye,je.validator)):"function"==typeof ye&&Ne.setValidators([ye]);const ht=Tt(Ne);null!==je.asyncValidator?Ne.setAsyncValidators(Ct(ht,je.asyncValidator)):"function"==typeof ht&&Ne.setAsyncValidators([ht]);const Jt=()=>Ne.updateValueAndValidity();Zn(je._rawValidators,Jt),Zn(je._rawAsyncValidators,Jt)}function zi(Ne,je){let ye=!1;if(null!==Ne){if(null!==je.validator){const Jt=It(Ne);if(Array.isArray(Jt)&&Jt.length>0){const Ii=Jt.filter(Qi=>Qi!==je.validator);Ii.length!==Jt.length&&(ye=!0,Ne.setValidators(Ii))}}if(null!==je.asyncValidator){const Jt=Tt(Ne);if(Array.isArray(Jt)&&Jt.length>0){const Ii=Jt.filter(Qi=>Qi!==je.asyncValidator);Ii.length!==Jt.length&&(ye=!0,Ne.setAsyncValidators(Ii))}}}const ht=()=>{};return Zn(je._rawValidators,ht),Zn(je._rawAsyncValidators,ht),ye}function Zi(Ne,je){Ne._pendingDirty&&Ne.markAsDirty(),Ne.setValue(Ne._pendingValue,{emitModelToViewChange:!1}),je.viewToModelUpdate(Ne._pendingValue),Ne._pendingChange=!1}function bo(Ne,je){Gn(Ne,je)}function hn(Ne,je){if(!Ne.hasOwnProperty("model"))return!1;const ye=Ne.model;return!!ye.isFirstChange()||!Object.is(je,ye.currentValue)}function En(Ne,je){Ne._syncPendingControls(),je.forEach(ye=>{const ht=ye.control;"submit"===ht.updateOn&&ht._pendingChange&&(ye.viewToModelUpdate(ht._pendingValue),ht._pendingChange=!1)})}function Kn(Ne,je){if(!je)return null;let ye,ht,Jt;return Array.isArray(je),je.forEach(Ii=>{Ii.constructor===x?ye=Ii:function Yn(Ne){return Object.getPrototypeOf(Ne.constructor)===B}(Ii)?ht=Ii:Jt=Ii}),Jt||ht||ye||null}const ro={provide:zn,useExisting:(0,t.Rfq)(()=>pn)},vi=Promise.resolve();let pn=(()=>{class Ne extends zn{get submitted(){return(0,t.O8t)(this.submittedReactive)}constructor(ye,ht,Jt){super(),this.callSetDisabledState=Jt,this._submitted=(0,t.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,t.vPA)(!1),this._directives=new Set,this.ngSubmit=new t.bkB,this.form=new N({},zt(ye),st(ht))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ye){vi.then(()=>{const ht=this._findContainer(ye.path);ye.control=ht.registerControl(ye.name,ye.control),on(ye.control,ye,this.callSetDisabledState),ye.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ye)})}getControl(ye){return this.form.get(ye.path)}removeControl(ye){vi.then(()=>{const ht=this._findContainer(ye.path);ht&&ht.removeControl(ye.name),this._directives.delete(ye)})}addFormGroup(ye){vi.then(()=>{const ht=this._findContainer(ye.path),Jt=new N({});bo(Jt,ye),ht.registerControl(ye.name,Jt),Jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ye){vi.then(()=>{const ht=this._findContainer(ye.path);ht&&ht.removeControl(ye.name)})}getFormGroup(ye){return this.form.get(ye.path)}updateModel(ye,ht){vi.then(()=>{this.form.get(ye.path).setValue(ht)})}setValue(ye){this.control.setValue(ye)}onSubmit(ye){return this.submittedReactive.set(!0),En(this.form,this._directives),this.ngSubmit.emit(ye),"dialog"===ye?.target?.method}onReset(){this.resetForm()}resetForm(ye=void 0){this.form.reset(ye),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ye){return ye.pop(),ye.length?this.form.get(ye):this.form}static#e=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(be,10),t.rXU(Oe,10),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ht,Jt){1&ht&&t.bIt("submit",function(Qi){return Jt.onSubmit(Qi)})("reset",function(){return Jt.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([ro]),t.Vt3]})}return Ne})();function $i(Ne,je){const ye=Ne.indexOf(je);ye>-1&&Ne.splice(ye,1)}function Mi(Ne){return"object"==typeof Ne&&null!==Ne&&2===Object.keys(Ne).length&&"value"in Ne&&"disabled"in Ne}const Ni=class extends ce{constructor(je=null,ye,ht){super(re(ye),gt(ht,ye)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(je),this._setUpdateStrategy(ye),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pe(ye)&&(ye.nonNullable||ye.initialValueIsDefault)&&(this.defaultValue=Mi(je)?je.value:je)}setValue(je,ye={}){this.value=this._pendingValue=je,this._onChange.length&&!1!==ye.emitModelToViewChange&&this._onChange.forEach(ht=>ht(this.value,!1!==ye.emitViewToModelChange)),this.updateValueAndValidity(ye)}patchValue(je,ye={}){this.setValue(je,ye)}reset(je=this.defaultValue,ye={}){this._applyFormState(je),this.markAsPristine(ye),this.markAsUntouched(ye),this.setValue(this.value,ye),this._pendingChange=!1}_updateValue(){}_anyControls(je){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(je){this._onChange.push(je)}_unregisterOnChange(je){$i(this._onChange,je)}registerOnDisabledChange(je){this._onDisabledChange.push(je)}_unregisterOnDisabledChange(je){$i(this._onDisabledChange,je)}_forEachChild(je){}_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(je){Mi(je)?(this.value=this._pendingValue=je.value,je.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=je}},$o={provide:bt,useExisting:(0,t.Rfq)(()=>qi)},Lr=Promise.resolve();let qi=(()=>{class Ne extends bt{constructor(ye,ht,Jt,Ii,Qi,wo){super(),this._changeDetectorRef=Qi,this.callSetDisabledState=wo,this.control=new Ni,this._registered=!1,this.name="",this.update=new t.bkB,this._parent=ye,this._setValidators(ht),this._setAsyncValidators(Jt),this.valueAccessor=Kn(0,Ii)}ngOnChanges(ye){if(this._checkForErrors(),!this._registered||"name"in ye){if(this._registered&&(this._checkName(),this.formDirective)){const ht=ye.name.previousValue;this.formDirective.removeControl({name:ht,path:this._getPath(ht)})}this._setUpControl()}"isDisabled"in ye&&this._updateDisabled(ye),hn(ye,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(ye){this.viewModel=ye,this.update.emit(ye)}_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(){on(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(ye){Lr.then(()=>{this.control.setValue(ye,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(ye){const ht=ye.isDisabled.currentValue,Jt=0!==ht&&(0,t.L39)(ht);Lr.then(()=>{Jt&&!this.control.disabled?this.control.disable():!Jt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(ye){return this._parent?Ft(ye,this._parent):[ye]}static#e=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(zn,9),t.rXU(be,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(t.gRc,8),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.Jv_([$o]),t.Vt3,t.OA$]})}return Ne})(),xn=(()=>{class Ne{static#e=this.\u0275fac=function(ht){return new(ht||Ne)};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ne})();const Ve=new t.nKC(""),nt={provide:bt,useExisting:(0,t.Rfq)(()=>Mt)};let Mt=(()=>{class Ne extends bt{set isDisabled(ye){}static#e=this._ngModelWarningSentOnce=!1;constructor(ye,ht,Jt,Ii,Qi){super(),this._ngModelWarningConfig=Ii,this.callSetDisabledState=Qi,this.update=new t.bkB,this._ngModelWarningSent=!1,this._setValidators(ye),this._setAsyncValidators(ht),this.valueAccessor=Kn(0,Jt)}ngOnChanges(ye){if(this._isControlChanged(ye)){const ht=ye.form.previousValue;ht&&Cn(ht,this,!1),on(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}hn(ye,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ye){this.viewModel=ye,this.update.emit(ye)}_isControlChanged(ye){return ye.hasOwnProperty("form")}static#t=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(be,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(Ve,8),t.rXU(qe,8))};static#n=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.Jv_([nt]),t.Vt3,t.OA$]})}return Ne})();const Wt={provide:zn,useExisting:(0,t.Rfq)(()=>tn)};let tn=(()=>{class Ne extends zn{get submitted(){return(0,t.O8t)(this._submittedReactive)}set submitted(ye){this._submittedReactive.set(ye)}constructor(ye,ht,Jt){super(),this.callSetDisabledState=Jt,this._submitted=(0,t.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,t.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.bkB,this._setValidators(ye),this._setAsyncValidators(ht)}ngOnChanges(ye){this._checkFormPresent(),ye.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(zi(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ye){const ht=this.form.get(ye.path);return on(ht,ye,this.callSetDisabledState),ht.updateValueAndValidity({emitEvent:!1}),this.directives.push(ye),ht}getControl(ye){return this.form.get(ye.path)}removeControl(ye){Cn(ye.control||null,ye,!1),function oi(Ne,je){const ye=Ne.indexOf(je);ye>-1&&Ne.splice(ye,1)}(this.directives,ye)}addFormGroup(ye){this._setUpFormContainer(ye)}removeFormGroup(ye){this._cleanUpFormContainer(ye)}getFormGroup(ye){return this.form.get(ye.path)}addFormArray(ye){this._setUpFormContainer(ye)}removeFormArray(ye){this._cleanUpFormContainer(ye)}getFormArray(ye){return this.form.get(ye.path)}updateModel(ye,ht){this.form.get(ye.path).setValue(ht)}onSubmit(ye){return this._submittedReactive.set(!0),En(this.form,this.directives),this.ngSubmit.emit(ye),this.form._events.next(new Ee(this.control)),"dialog"===ye?.target?.method}onReset(){this.resetForm()}resetForm(ye=void 0){this.form.reset(ye),this._submittedReactive.set(!1),this.form._events.next(new Je(this.form))}_updateDomValue(){this.directives.forEach(ye=>{const ht=ye.control,Jt=this.form.get(ye.path);ht!==Jt&&(Cn(ht||null,ye),(Ne=>Ne instanceof Ni)(Jt)&&(on(Jt,ye,this.callSetDisabledState),ye.control=Jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ye){const ht=this.form.get(ye.path);bo(ht,ye),ht.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ye){if(this.form){const ht=this.form.get(ye.path);ht&&function Mr(Ne,je){return zi(Ne,je)}(ht,ye)&&ht.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Gn(this.form,this),this._oldForm&&zi(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(be,10),t.rXU(Oe,10),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formGroup",""]],hostBindings:function(ht,Jt){1&ht&&t.bIt("submit",function(Qi){return Jt.onSubmit(Qi)})("reset",function(){return Jt.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([Wt]),t.Vt3,t.OA$]})}return Ne})();const Qn={provide:bt,useExisting:(0,t.Rfq)(()=>qn)};let qn=(()=>{class Ne extends bt{set isDisabled(ye){}static#e=this._ngModelWarningSentOnce=!1;constructor(ye,ht,Jt,Ii,Qi){super(),this._ngModelWarningConfig=Qi,this._added=!1,this.name=null,this.update=new t.bkB,this._ngModelWarningSent=!1,this._parent=ye,this._setValidators(ht),this._setAsyncValidators(Jt),this.valueAccessor=Kn(0,Ii)}ngOnChanges(ye){this._added||this._setUpControl(),hn(ye,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ye){this.viewModel=ye,this.update.emit(ye)}get path(){return Ft(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}static#t=this.\u0275fac=function(ht){return new(ht||Ne)(t.rXU(zn,13),t.rXU(be,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(Ve,8))};static#n=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.Jv_([Qn]),t.Vt3,t.OA$]})}return Ne})(),ir=(()=>{class Ne{constructor(){this._validator=R}ngOnChanges(ye){if(this.inputName in ye){const ht=this.normalizeInput(ye[this.inputName].currentValue);this._enabled=this.enabled(ht),this._validator=this._enabled?this.createValidator(ht):R,this._onChange&&this._onChange()}}validate(ye){return this._validator(ye)}registerOnValidatorChange(ye){this._onChange=ye}enabled(ye){return null!=ye}static#e=this.\u0275fac=function(ht){return new(ht||Ne)};static#t=this.\u0275dir=t.FsC({type:Ne,features:[t.OA$]})}return Ne})();const _r={provide:be,useExisting:(0,t.Rfq)(()=>sr),multi:!0};let sr=(()=>{class Ne extends ir{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.L39,this.createValidator=ye=>H}enabled(ye){return ye}static#e=this.\u0275fac=(()=>{let ye;return function(Jt){return(ye||(ye=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ht,Jt){2&ht&&t.BMQ("required",Jt._enabled?"":null)},inputs:{required:"required"},features:[t.Jv_([_r]),t.Vt3]})}return Ne})(),ct=(()=>{class Ne{static#e=this.\u0275fac=function(ht){return new(ht||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({})}return Ne})();class sn extends ce{constructor(je,ye,ht){super(re(ye),gt(ht,ye)),this.controls=je,this._initObservables(),this._setUpdateStrategy(ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(je){return this.controls[this._adjustIndex(je)]}push(je,ye={}){this.controls.push(je),this._registerControl(je),this.updateValueAndValidity({emitEvent:ye.emitEvent}),this._onCollectionChange()}insert(je,ye,ht={}){this.controls.splice(je,0,ye),this._registerControl(ye),this.updateValueAndValidity({emitEvent:ht.emitEvent})}removeAt(je,ye={}){let ht=this._adjustIndex(je);ht<0&&(ht=0),this.controls[ht]&&this.controls[ht]._registerOnCollectionChange(()=>{}),this.controls.splice(ht,1),this.updateValueAndValidity({emitEvent:ye.emitEvent})}setControl(je,ye,ht={}){let Jt=this._adjustIndex(je);Jt<0&&(Jt=0),this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),this.controls.splice(Jt,1),ye&&(this.controls.splice(Jt,0,ye),this._registerControl(ye)),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(je,ye={}){$(this,0,je),je.forEach((ht,Jt)=>{Re(this,!1,Jt),this.at(Jt).setValue(ht,{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye)}patchValue(je,ye={}){null!=je&&(je.forEach((ht,Jt)=>{this.at(Jt)&&this.at(Jt).patchValue(ht,{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye))}reset(je=[],ye={}){this._forEachChild((ht,Jt)=>{ht.reset(je[Jt],{onlySelf:!0,emitEvent:ye.emitEvent})}),this._updatePristine(ye,this),this._updateTouched(ye,this),this.updateValueAndValidity(ye)}getRawValue(){return this.controls.map(je=>je.getRawValue())}clear(je={}){this.controls.length<1||(this._forEachChild(ye=>ye._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:je.emitEvent}))}_adjustIndex(je){return je<0?je+this.length:je}_syncPendingControls(){let je=this.controls.reduce((ye,ht)=>!!ht._syncPendingControls()||ye,!1);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){this.controls.forEach((ye,ht)=>{je(ye,ht)})}_updateValue(){this.value=this.controls.filter(je=>je.enabled||this.disabled).map(je=>je.value)}_anyControls(je){return this.controls.some(ye=>ye.enabled&&je(ye))}_setUpControls(){this._forEachChild(je=>this._registerControl(je))}_allControlsDisabled(){for(const je of this.controls)if(je.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(je){je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)}_find(je){return this.at(je)??null}}let Oo=(()=>{class Ne{static withConfig(ye){return{ngModule:Ne,providers:[{provide:qe,useValue:ye.callSetDisabledState??rt}]}}static#e=this.\u0275fac=function(ht){return new(ht||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({imports:[ct]})}return Ne})(),ts=(()=>{class Ne{static withConfig(ye){return{ngModule:Ne,providers:[{provide:Ve,useValue:ye.warnOnNgModelWithFormControl??"always"},{provide:qe,useValue:ye.callSetDisabledState??rt}]}}static#e=this.\u0275fac=function(ht){return new(ht||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({imports:[ct]})}return Ne})()},345:(Rt,De,c)=>{c.d(De,{B7:()=>z,Bb:()=>At,W8:()=>Et,hE:()=>Yt,sG:()=>fn,up:()=>Un});var t=c(177),r=c(3953);class g extends t.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class e extends g{static makeCurrent(){(0,t.ZD)(new e)}onAndCancel(St,Qe,Ee){return St.addEventListener(Qe,Ee),()=>{St.removeEventListener(Qe,Ee)}}dispatchEvent(St,Qe){St.dispatchEvent(Qe)}remove(St){St.parentNode&&St.parentNode.removeChild(St)}createElement(St,Qe){return(Qe=Qe||this.getDefaultDocument()).createElement(St)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(St){return St.nodeType===Node.ELEMENT_NODE}isShadowRoot(St){return St instanceof DocumentFragment}getGlobalEventTarget(St,Qe){return"window"===Qe?window:"document"===Qe?St:"body"===Qe?St.body:null}getBaseHref(St){const Qe=function G(){return M=M||document.querySelector("base"),M?M.getAttribute("href"):null}();return null==Qe?null:function L(at){return new URL(at,document.baseURI).pathname}(Qe)}resetBaseElement(){M=null}getUserAgent(){return window.navigator.userAgent}getCookie(St){return(0,t._b)(document.cookie,St)}}let M=null,A=(()=>{class at{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Ee){return new(Ee||at)};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const w=new r.nKC("");let I=(()=>{class at{constructor(Qe,Ee){this._zone=Ee,this._eventNameToPlugin=new Map,Qe.forEach(Je=>{Je.manager=this}),this._plugins=Qe.slice().reverse()}addEventListener(Qe,Ee,Je){return this._findPluginFor(Ee).addEventListener(Qe,Ee,Je)}getZone(){return this._zone}_findPluginFor(Qe){let Ee=this._eventNameToPlugin.get(Qe);if(Ee)return Ee;if(Ee=this._plugins.find(re=>re.supports(Qe)),!Ee)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(Qe,Ee),Ee}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(w),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();class F{constructor(St){this._doc=St}}const X="ng-app-id";let V=(()=>{class at{constructor(Qe,Ee,Je,re={}){this.doc=Qe,this.appId=Ee,this.nonce=Je,this.platformId=re,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,t.Vy)(re),this.resetHostNodes()}addStyles(Qe){for(const Ee of Qe)1===this.changeUsageCount(Ee,1)&&this.onStyleAdded(Ee)}removeStyles(Qe){for(const Ee of Qe)this.changeUsageCount(Ee,-1)<=0&&this.onStyleRemoved(Ee)}ngOnDestroy(){const Qe=this.styleNodesInDOM;Qe&&(Qe.forEach(Ee=>Ee.remove()),Qe.clear());for(const Ee of this.getAllStyles())this.onStyleRemoved(Ee);this.resetHostNodes()}addHost(Qe){this.hostNodes.add(Qe);for(const Ee of this.getAllStyles())this.addStyleToHost(Qe,Ee)}removeHost(Qe){this.hostNodes.delete(Qe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Qe){for(const Ee of this.hostNodes)this.addStyleToHost(Ee,Qe)}onStyleRemoved(Qe){const Ee=this.styleRef;Ee.get(Qe)?.elements?.forEach(Je=>Je.remove()),Ee.delete(Qe)}collectServerRenderedStyles(){const Qe=this.doc.head?.querySelectorAll(`style[${X}="${this.appId}"]`);if(Qe?.length){const Ee=new Map;return Qe.forEach(Je=>{null!=Je.textContent&&Ee.set(Je.textContent,Je)}),Ee}return null}changeUsageCount(Qe,Ee){const Je=this.styleRef;if(Je.has(Qe)){const re=Je.get(Qe);return re.usage+=Ee,re.usage}return Je.set(Qe,{usage:Ee,elements:[]}),Ee}getStyleElement(Qe,Ee){const Je=this.styleNodesInDOM,re=Je?.get(Ee);if(re?.parentNode===Qe)return Je.delete(Ee),re.removeAttribute(X),re;{const ze=this.doc.createElement("style");return this.nonce&&ze.setAttribute("nonce",this.nonce),ze.textContent=Ee,this.platformIsServer&&ze.setAttribute(X,this.appId),Qe.appendChild(ze),ze}}addStyleToHost(Qe,Ee){const Je=this.getStyleElement(Qe,Ee),re=this.styleRef,ze=re.get(Ee)?.elements;ze?ze.push(Je):re.set(Ee,{elements:[Je],usage:1})}resetHostNodes(){const Qe=this.hostNodes;Qe.clear(),Qe.add(this.doc.head)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const x={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/Math/MathML"},ne=/%COMP%/g,J="%COMP%",be=`_nghost-${J}`,Oe=`_ngcontent-${J}`,we=new r.nKC("",{providedIn:"root",factory:()=>!0});function H(at,St){return St.map(Qe=>Qe.replace(ne,at))}let z=(()=>{class at{constructor(Qe,Ee,Je,re,ze,gt,Ke,Pe=null){this.eventManager=Qe,this.sharedStylesHost=Ee,this.appId=Je,this.removeStylesOnCompDestroy=re,this.doc=ze,this.platformId=gt,this.ngZone=Ke,this.nonce=Pe,this.rendererByCompId=new Map,this.platformIsServer=(0,t.Vy)(gt),this.defaultRenderer=new Z(Qe,ze,Ke,this.platformIsServer)}createRenderer(Qe,Ee){if(!Qe||!Ee)return this.defaultRenderer;this.platformIsServer&&Ee.encapsulation===r.gXe.ShadowDom&&(Ee={...Ee,encapsulation:r.gXe.Emulated});const Je=this.getOrCreateRenderer(Qe,Ee);return Je instanceof se?Je.applyToHost(Qe):Je instanceof Y&&Je.applyStyles(),Je}getOrCreateRenderer(Qe,Ee){const Je=this.rendererByCompId;let re=Je.get(Ee.id);if(!re){const ze=this.doc,gt=this.ngZone,Ke=this.eventManager,Pe=this.sharedStylesHost,Re=this.removeStylesOnCompDestroy,$=this.platformIsServer;switch(Ee.encapsulation){case r.gXe.Emulated:re=new se(Ke,Pe,Ee,this.appId,Re,ze,gt,$);break;case r.gXe.ShadowDom:return new R(Ke,Pe,Qe,Ee,ze,gt,this.nonce,$);default:re=new Y(Ke,Pe,Ee,Re,ze,gt,$)}Je.set(Ee.id,re)}return re}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(I),r.KVO(V),r.KVO(r.sZ2),r.KVO(we),r.KVO(t.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();class Z{constructor(St,Qe,Ee,Je){this.eventManager=St,this.doc=Qe,this.ngZone=Ee,this.platformIsServer=Je,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(St,Qe){return Qe?this.doc.createElementNS(x[Qe]||Qe,St):this.doc.createElement(St)}createComment(St){return this.doc.createComment(St)}createText(St){return this.doc.createTextNode(St)}appendChild(St,Qe){(S(St)?St.content:St).appendChild(Qe)}insertBefore(St,Qe,Ee){St&&(S(St)?St.content:St).insertBefore(Qe,Ee)}removeChild(St,Qe){St&&St.removeChild(Qe)}selectRootElement(St,Qe){let Ee="string"==typeof St?this.doc.querySelector(St):St;if(!Ee)throw new r.wOt(-5104,!1);return Qe||(Ee.textContent=""),Ee}parentNode(St){return St.parentNode}nextSibling(St){return St.nextSibling}setAttribute(St,Qe,Ee,Je){if(Je){Qe=Je+":"+Qe;const re=x[Je];re?St.setAttributeNS(re,Qe,Ee):St.setAttribute(Qe,Ee)}else St.setAttribute(Qe,Ee)}removeAttribute(St,Qe,Ee){if(Ee){const Je=x[Ee];Je?St.removeAttributeNS(Je,Qe):St.removeAttribute(`${Ee}:${Qe}`)}else St.removeAttribute(Qe)}addClass(St,Qe){St.classList.add(Qe)}removeClass(St,Qe){St.classList.remove(Qe)}setStyle(St,Qe,Ee,Je){Je&(r.czy.DashCase|r.czy.Important)?St.style.setProperty(Qe,Ee,Je&r.czy.Important?"important":""):St.style[Qe]=Ee}removeStyle(St,Qe,Ee){Ee&r.czy.DashCase?St.style.removeProperty(Qe):St.style[Qe]=""}setProperty(St,Qe,Ee){null!=St&&(St[Qe]=Ee)}setValue(St,Qe){St.nodeValue=Qe}listen(St,Qe,Ee){if("string"==typeof St&&!(St=(0,t.QT)().getGlobalEventTarget(this.doc,St)))throw new Error(`Unsupported event target ${St} for event ${Qe}`);return this.eventManager.addEventListener(St,Qe,this.decoratePreventDefault(Ee))}decoratePreventDefault(St){return Qe=>{if("__ngUnwrap__"===Qe)return St;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>St(Qe)):St(Qe))&&Qe.preventDefault()}}}function S(at){return"TEMPLATE"===at.tagName&&void 0!==at.content}class R extends Z{constructor(St,Qe,Ee,Je,re,ze,gt,Ke){super(St,re,ze,Ke),this.sharedStylesHost=Qe,this.hostEl=Ee,this.shadowRoot=Ee.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Pe=H(Je.id,Je.styles);for(const Re of Pe){const $=document.createElement("style");gt&&$.setAttribute("nonce",gt),$.textContent=Re,this.shadowRoot.appendChild($)}}nodeOrShadowRoot(St){return St===this.hostEl?this.shadowRoot:St}appendChild(St,Qe){return super.appendChild(this.nodeOrShadowRoot(St),Qe)}insertBefore(St,Qe,Ee){return super.insertBefore(this.nodeOrShadowRoot(St),Qe,Ee)}removeChild(St,Qe){return super.removeChild(this.nodeOrShadowRoot(St),Qe)}parentNode(St){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(St)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Y extends Z{constructor(St,Qe,Ee,Je,re,ze,gt,Ke){super(St,re,ze,gt),this.sharedStylesHost=Qe,this.removeStylesOnCompDestroy=Je,this.styles=Ke?H(Ke,Ee.styles):Ee.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class se extends Y{constructor(St,Qe,Ee,Je,re,ze,gt,Ke){const Pe=Je+"-"+Ee.id;super(St,Qe,Ee,re,ze,gt,Ke,Pe),this.contentAttr=function me(at){return Oe.replace(ne,at)}(Pe),this.hostAttr=function de(at){return be.replace(ne,at)}(Pe)}applyToHost(St){this.applyStyles(),this.setAttribute(St,this.hostAttr,"")}createElement(St,Qe){const Ee=super.createElement(St,Qe);return super.setAttribute(Ee,this.contentAttr,""),Ee}}let Be=(()=>{class at extends F{constructor(Qe){super(Qe)}supports(Qe){return!0}addEventListener(Qe,Ee,Je){return Qe.addEventListener(Ee,Je,!1),()=>this.removeEventListener(Qe,Ee,Je)}removeEventListener(Qe,Ee,Je){return Qe.removeEventListener(Ee,Je)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})(),Pt=(()=>{class at extends F{constructor(Qe){super(Qe),this.delegate=(0,r.WQX)(r.zAP,{optional:!0})}supports(Qe){return!!this.delegate&&this.delegate.supports(Qe)}addEventListener(Qe,Ee,Je){return this.delegate.addEventListener(Qe,Ee,Je)}removeEventListener(Qe,Ee,Je){return this.delegate.removeEventListener(Qe,Ee,Je)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const vt=["alt","control","meta","shift"],wt={"\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"},Le={alt:at=>at.altKey,control:at=>at.ctrlKey,meta:at=>at.metaKey,shift:at=>at.shiftKey};let zt=(()=>{class at extends F{constructor(Qe){super(Qe)}supports(Qe){return null!=at.parseEventName(Qe)}addEventListener(Qe,Ee,Je){const re=at.parseEventName(Ee),ze=at.eventCallback(re.fullKey,Je,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.QT)().onAndCancel(Qe,re.domEventName,ze))}static parseEventName(Qe){const Ee=Qe.toLowerCase().split("."),Je=Ee.shift();if(0===Ee.length||"keydown"!==Je&&"keyup"!==Je)return null;const re=at._normalizeKey(Ee.pop());let ze="",gt=Ee.indexOf("code");if(gt>-1&&(Ee.splice(gt,1),ze="code."),vt.forEach(Pe=>{const Re=Ee.indexOf(Pe);Re>-1&&(Ee.splice(Re,1),ze+=Pe+".")}),ze+=re,0!=Ee.length||0===re.length)return null;const Ke={};return Ke.domEventName=Je,Ke.fullKey=ze,Ke}static matchEventFullKeyCode(Qe,Ee){let Je=wt[Qe.key]||Qe.key,re="";return Ee.indexOf("code.")>-1&&(Je=Qe.code,re="code."),!(null==Je||!Je)&&(Je=Je.toLowerCase()," "===Je?Je="space":"."===Je&&(Je="dot"),vt.forEach(ze=>{ze!==Je&&(0,Le[ze])(Qe)&&(re+=ze+".")}),re+=Je,re===Ee)}static eventCallback(Qe,Ee,Je){return re=>{at.matchEventFullKeyCode(re,Qe)&&Je.runGuarded(()=>Ee(re))}}static _normalizeKey(Qe){return"esc"===Qe?"escape":Qe}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const fn=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:t.AJ},{provide:r.PLl,useValue:function Tt(){e.makeCurrent()},multi:!0},{provide:t.qQ,useFactory:function jt(){return(0,r.TL$)(document),document},deps:[]}]),Hn=new r.nKC(""),zn=[{provide:r.e01,useClass:class B{addToWindow(St){r.JZv.getAngularTestability=(Ee,Je=!0)=>{const re=St.findTestabilityInTree(Ee,Je);if(null==re)throw new r.wOt(5103,!1);return re},r.JZv.getAllAngularTestabilities=()=>St.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>St.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(Ee=>{const Je=r.JZv.getAllAngularTestabilities();let re=Je.length;const ze=function(){re--,0==re&&Ee()};Je.forEach(gt=>{gt.whenStable(ze)})})}findTestabilityInTree(St,Qe,Ee){return null==Qe?null:St.getTestability(Qe)??(Ee?(0,t.QT)().isShadowRoot(Qe)?this.findTestabilityInTree(St,Qe.host,!0):this.findTestabilityInTree(St,Qe.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],bt=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function en(){return new r.zcH},deps:[]},{provide:w,useClass:Be,multi:!0,deps:[t.qQ,r.SKi,r.Agw]},{provide:w,useClass:zt,multi:!0,deps:[t.qQ]},{provide:w,useClass:Pt,multi:!0},z,V,I,{provide:r._9s,useExisting:z},{provide:t.N0,useClass:A,deps:[]},[]];let At=(()=>{class at{constructor(Qe){}static withServerTransition(Qe){return{ngModule:at,providers:[{provide:r.sZ2,useValue:Qe.appId}]}}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(Hn,12))};static#t=this.\u0275mod=r.$C({type:at});static#n=this.\u0275inj=r.G2t({providers:[...bt,...zn],imports:[t.MD,r.Hbi]})}return at})(),Et=(()=>{class at{constructor(Qe){this._doc=Qe,this._dom=(0,t.QT)()}addTag(Qe,Ee=!1){return Qe?this._getOrCreateElement(Qe,Ee):null}addTags(Qe,Ee=!1){return Qe?Qe.reduce((Je,re)=>(re&&Je.push(this._getOrCreateElement(re,Ee)),Je),[]):[]}getTag(Qe){return Qe&&this._doc.querySelector(`meta[${Qe}]`)||null}getTags(Qe){if(!Qe)return[];const Ee=this._doc.querySelectorAll(`meta[${Qe}]`);return Ee?[].slice.call(Ee):[]}updateTag(Qe,Ee){if(!Qe)return null;Ee=Ee||this._parseSelector(Qe);const Je=this.getTag(Ee);return Je?this._setMetaElementAttributes(Qe,Je):this._getOrCreateElement(Qe,!0)}removeTag(Qe){this.removeTagElement(this.getTag(Qe))}removeTagElement(Qe){Qe&&this._dom.remove(Qe)}_getOrCreateElement(Qe,Ee=!1){if(!Ee){const ze=this._parseSelector(Qe),gt=this.getTags(ze).filter(Ke=>this._containsAttributes(Qe,Ke))[0];if(void 0!==gt)return gt}const Je=this._dom.createElement("meta");return this._setMetaElementAttributes(Qe,Je),this._doc.getElementsByTagName("head")[0].appendChild(Je),Je}_setMetaElementAttributes(Qe,Ee){return Object.keys(Qe).forEach(Je=>Ee.setAttribute(this._getMetaKeyMap(Je),Qe[Je])),Ee}_parseSelector(Qe){const Ee=Qe.name?"name":"property";return`${Ee}="${Qe[Ee]}"`}_containsAttributes(Qe,Ee){return Object.keys(Qe).every(Je=>Ee.getAttribute(this._getMetaKeyMap(Je))===Qe[Je])}_getMetaKeyMap(Qe){return Ot[Qe]||Qe}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})();const Ot={httpEquiv:"http-equiv"};let Yt=(()=>{class at{constructor(Qe){this._doc=Qe}getTitle(){return this._doc.title}setTitle(Qe){this._doc.title=Qe||""}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})(),Un=(()=>{class at{static#e=this.\u0275fac=function(Ee){return new(Ee||at)};static#t=this.\u0275prov=r.jDH({token:at,factory:function(Ee){let Je=null;return Je=Ee?new(Ee||at):r.KVO(dn),Je},providedIn:"root"})}return at})(),dn=(()=>{class at extends Un{constructor(Qe){super(),this._doc=Qe}sanitize(Qe,Ee){if(null==Ee)return null;switch(Qe){case r.WPN.NONE:return Ee;case r.WPN.HTML:return(0,r.ZF7)(Ee,"HTML")?(0,r.rcV)(Ee):(0,r.h9k)(this._doc,String(Ee)).toString();case r.WPN.STYLE:return(0,r.ZF7)(Ee,"Style")?(0,r.rcV)(Ee):Ee;case r.WPN.SCRIPT:if((0,r.ZF7)(Ee,"Script"))return(0,r.rcV)(Ee);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(Ee,"URL")?(0,r.rcV)(Ee):(0,r.$MX)(String(Ee));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(Ee,"ResourceURL"))return(0,r.rcV)(Ee);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(Qe){return(0,r.Kcf)(Qe)}bypassSecurityTrustStyle(Qe){return(0,r.cWb)(Qe)}bypassSecurityTrustScript(Qe){return(0,r.UyX)(Qe)}bypassSecurityTrustUrl(Qe){return(0,r.osQ)(Qe)}bypassSecurityTrustResourceUrl(Qe){return(0,r.e5t)(Qe)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})()},1188:(Rt,De,c)=>{c.d(De,{nX:()=>wn,wF:()=>mn,Xk:()=>Ct,Ix:()=>Wi,Wk:()=>Rr,wQ:()=>ws,iI:()=>su,n3:()=>Xi});var t=c(3953),r=c(4402),g=c(2806),e=c(7673),M=c(4412),G=c(4572),L=c(9350),B=c(8793),A=c(9030),w=c(1203),I=c(8810),F=c(983),X=c(17),V=c(1413),x=c(8359),ne=c(177),J=c(6354),be=c(5558),Oe=c(6697),he=c(9172),we=c(5964),me=c(1397),de=c(1594),H=c(274),z=c(8141),Z=c(9437),pe=c(2816),E=c(9901),S=c(9974),R=c(4360);function Y(P){return P<=0?()=>F.w:(0,S.N)((ae,k)=>{let le=[];ae.subscribe((0,R._)(k,$e=>{le.push($e),P{for(const $e of le)k.next($e);k.complete()},void 0,()=>{le=null}))})}var se=c(3774),Be=c(3669),vt=c(3703),wt=c(980),Le=c(9898),zt=c(6977),xt=c(6365),st=c(345);const Ct="primary",It=Symbol("RouteTitle");class Tt{constructor(ae){this.params=ae||{}}has(ae){return Object.prototype.hasOwnProperty.call(this.params,ae)}get(ae){if(this.has(ae)){const k=this.params[ae];return Array.isArray(k)?k[0]:k}return null}getAll(ae){if(this.has(ae)){const k=this.params[ae];return Array.isArray(k)?k:[k]}return[]}get keys(){return Object.keys(this.params)}}function en(P){return new Tt(P)}function jt(P,ae,k){const le=k.path.split("/");if(le.length>P.length||"full"===k.pathMatch&&(ae.hasChildren()||le.lengthle[mt]===$e)}return P===ae}function bt(P){return P.length>0?P[P.length-1]:null}function At(P){return(0,r.A)(P)?P:(0,t.jNT)(P)?(0,g.H)(Promise.resolve(P)):(0,e.of)(P)}const Et={exact:function Ae(P,ae,k){if(!Tn(P.segments,ae.segments)||!Fe(P.segments,ae.segments,k)||P.numberOfChildren!==ae.numberOfChildren)return!1;for(const le in ae.children)if(!P.children[le]||!Ae(P.children[le],ae.children[le],k))return!1;return!0},subset:_e},Ot={exact:function Ue(P,ae){return fn(P,ae)},subset:function ie(P,ae){return Object.keys(ae).length<=Object.keys(P).length&&Object.keys(ae).every(k=>zn(P[k],ae[k]))},ignored:()=>!0};function Yt(P,ae,k){return Et[k.paths](P.root,ae.root,k.matrixParams)&&Ot[k.queryParams](P.queryParams,ae.queryParams)&&!("exact"===k.fragment&&P.fragment!==ae.fragment)}function _e(P,ae,k){return oe(P,ae,ae.segments,k)}function oe(P,ae,k,le){if(P.segments.length>k.length){const $e=P.segments.slice(0,k.length);return!(!Tn($e,k)||ae.hasChildren()||!Fe($e,k,le))}if(P.segments.length===k.length){if(!Tn(P.segments,k)||!Fe(P.segments,k,le))return!1;for(const $e in ae.children)if(!P.children[$e]||!_e(P.children[$e],ae.children[$e],le))return!1;return!0}{const $e=k.slice(0,P.segments.length),mt=k.slice(P.segments.length);return!!(Tn(P.segments,$e)&&Fe(P.segments,$e,le)&&P.children[Ct])&&oe(P.children[Ct],ae,mt,le)}}function Fe(P,ae,k){return ae.every((le,$e)=>Ot[k](P[$e].parameters,le.parameters))}class et{constructor(ae=new ut([],{}),k={},le=null){this.root=ae,this.queryParams=k,this.fragment=le}get queryParamMap(){return this._queryParamMap??=en(this.queryParams),this._queryParamMap}toString(){return Un.serialize(this)}}class ut{constructor(ae,k){this.segments=ae,this.children=k,this.parent=null,Object.values(k).forEach(le=>le.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dn(this)}}class Kt{constructor(ae,k){this.path=ae,this.parameters=k}get parameterMap(){return this._parameterMap??=en(this.parameters),this._parameterMap}toString(){return Xe(this)}}function Tn(P,ae){return P.length===ae.length&&P.every((k,le)=>k.path===ae[le].path)}let kn=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>new Vn,providedIn:"root"})}return P})();class Vn{parse(ae){const k=new Pe(ae);return new et(k.parseRootSegment(),k.parseQueryParams(),k.parseFragment())}serialize(ae){const k=`/${qt(ae.root,!0)}`,le=function at(P){const ae=Object.entries(P).map(([k,le])=>Array.isArray(le)?le.map($e=>`${Ut(k)}=${Ut($e)}`).join("&"):`${Ut(k)}=${Ut(le)}`).filter(k=>k);return ae.length?`?${ae.join("&")}`:""}(ae.queryParams);return`${k}${le}${"string"==typeof ae.fragment?`#${function Ye(P){return encodeURI(P)}(ae.fragment)}`:""}`}}const Un=new Vn;function dn(P){return P.segments.map(ae=>Xe(ae)).join("/")}function qt(P,ae){if(!P.hasChildren())return dn(P);if(ae){const k=P.children[Ct]?qt(P.children[Ct],!1):"",le=[];return Object.entries(P.children).forEach(([$e,mt])=>{$e!==Ct&&le.push(`${$e}:${qt(mt,!1)}`)}),le.length>0?`${k}(${le.join("//")})`:k}{const k=function Wn(P,ae){let k=[];return Object.entries(P.children).forEach(([le,$e])=>{le===Ct&&(k=k.concat(ae($e,le)))}),Object.entries(P.children).forEach(([le,$e])=>{le!==Ct&&(k=k.concat(ae($e,le)))}),k}(P,(le,$e)=>$e===Ct?[qt(P.children[Ct],!1)]:[`${$e}:${qt(le,!1)}`]);return 1===Object.keys(P.children).length&&null!=P.children[Ct]?`${dn(P)}/${k[0]}`:`${dn(P)}/(${k.join("//")})`}}function On(P){return encodeURIComponent(P).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(P){return On(P).replace(/%3B/gi,";")}function ue(P){return On(P).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function te(P){return decodeURIComponent(P)}function q(P){return te(P.replace(/\+/g,"%20"))}function Xe(P){return`${ue(P.path)}${function dt(P){return Object.entries(P).map(([ae,k])=>`;${ue(ae)}=${ue(k)}`).join("")}(P.parameters)}`}const St=/^[^\/()?;#]+/;function Qe(P){const ae=P.match(St);return ae?ae[0]:""}const Ee=/^[^\/()?;=#]+/,re=/^[^=?&#]+/,gt=/^[^&#]+/;class Pe{constructor(ae){this.url=ae,this.remaining=ae}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ut([],{}):new ut([],this.parseChildren())}parseQueryParams(){const ae={};if(this.consumeOptional("?"))do{this.parseQueryParam(ae)}while(this.consumeOptional("&"));return ae}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ae=[];for(this.peekStartsWith("(")||ae.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ae.push(this.parseSegment());let k={};this.peekStartsWith("/(")&&(this.capture("/"),k=this.parseParens(!0));let le={};return this.peekStartsWith("(")&&(le=this.parseParens(!1)),(ae.length>0||Object.keys(k).length>0)&&(le[Ct]=new ut(ae,k)),le}parseSegment(){const ae=Qe(this.remaining);if(""===ae&&this.peekStartsWith(";"))throw new t.wOt(4009,!1);return this.capture(ae),new Kt(te(ae),this.parseMatrixParams())}parseMatrixParams(){const ae={};for(;this.consumeOptional(";");)this.parseParam(ae);return ae}parseParam(ae){const k=function Je(P){const ae=P.match(Ee);return ae?ae[0]:""}(this.remaining);if(!k)return;this.capture(k);let le="";if(this.consumeOptional("=")){const $e=Qe(this.remaining);$e&&(le=$e,this.capture(le))}ae[te(k)]=te(le)}parseQueryParam(ae){const k=function ze(P){const ae=P.match(re);return ae?ae[0]:""}(this.remaining);if(!k)return;this.capture(k);let le="";if(this.consumeOptional("=")){const kt=function Ke(P){const ae=P.match(gt);return ae?ae[0]:""}(this.remaining);kt&&(le=kt,this.capture(le))}const $e=q(k),mt=q(le);if(ae.hasOwnProperty($e)){let kt=ae[$e];Array.isArray(kt)||(kt=[kt],ae[$e]=kt),kt.push(mt)}else ae[$e]=mt}parseParens(ae){const k={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const le=Qe(this.remaining),$e=this.remaining[le.length];if("/"!==$e&&")"!==$e&&";"!==$e)throw new t.wOt(4010,!1);let mt;le.indexOf(":")>-1?(mt=le.slice(0,le.indexOf(":")),this.capture(mt),this.capture(":")):ae&&(mt=Ct);const kt=this.parseChildren();k[mt]=1===Object.keys(kt).length?kt[Ct]:new ut([],kt),this.consumeOptional("//")}return k}peekStartsWith(ae){return this.remaining.startsWith(ae)}consumeOptional(ae){return!!this.peekStartsWith(ae)&&(this.remaining=this.remaining.substring(ae.length),!0)}capture(ae){if(!this.consumeOptional(ae))throw new t.wOt(4011,!1)}}function Re(P){return P.segments.length>0?new ut([],{[Ct]:P}):P}function $(P){const ae={};for(const[le,$e]of Object.entries(P.children)){const mt=$($e);if(le===Ct&&0===mt.segments.length&&mt.hasChildren())for(const[kt,yn]of Object.entries(mt.children))ae[kt]=yn;else(mt.segments.length>0||mt.hasChildren())&&(ae[le]=mt)}return function ce(P){if(1===P.numberOfChildren&&P.children[Ct]){const ae=P.children[Ct];return new ut(P.segments.concat(ae.segments),ae.children)}return P}(new ut(P.segments,ae))}function N(P){return P instanceof et}function ve(P){let ae;const $e=Re(function k(mt){const kt={};for(const ln of mt.children){const si=k(ln);kt[ln.outlet]=si}const yn=new ut(mt.url,kt);return mt===P&&(ae=yn),yn}(P.root));return ae??$e}function K(P,ae,k,le){let $e=P;for(;$e.parent;)$e=$e.parent;if(0===ae.length)return qe($e,$e,$e,k,le);const mt=function on(P){if("string"==typeof P[0]&&1===P.length&&"/"===P[0])return new Ft(!0,0,P);let ae=0,k=!1;const le=P.reduce(($e,mt,kt)=>{if("object"==typeof mt&&null!=mt){if(mt.outlets){const yn={};return Object.entries(mt.outlets).forEach(([ln,si])=>{yn[ln]="string"==typeof si?si.split("/"):si}),[...$e,{outlets:yn}]}if(mt.segmentPath)return[...$e,mt.segmentPath]}return"string"!=typeof mt?[...$e,mt]:0===kt?(mt.split("/").forEach((yn,ln)=>{0==ln&&"."===yn||(0==ln&&""===yn?k=!0:".."===yn?ae++:""!=yn&&$e.push(yn))}),$e):[...$e,mt]},[]);return new Ft(k,ae,le)}(ae);if(mt.toRoot())return qe($e,$e,new ut([],{}),k,le);const kt=function Zn(P,ae,k){if(P.isAbsolute)return new Cn(ae,!0,0);if(!k)return new Cn(ae,!1,NaN);if(null===k.parent)return new Cn(k,!0,0);const le=U(P.commands[0])?0:1;return function jn(P,ae,k){let le=P,$e=ae,mt=k;for(;mt>$e;){if(mt-=$e,le=le.parent,!le)throw new t.wOt(4005,!1);$e=le.segments.length}return new Cn(le,!1,$e-mt)}(k,k.segments.length-1+le,P.numberOfDoubleDots)}(mt,$e,P),yn=kt.processChildren?Oi(kt.segmentGroup,kt.index,mt.commands):zi(kt.segmentGroup,kt.index,mt.commands);return qe($e,kt.segmentGroup,yn,k,le)}function U(P){return"object"==typeof P&&null!=P&&!P.outlets&&!P.segmentPath}function ge(P){return"object"==typeof P&&null!=P&&P.outlets}function qe(P,ae,k,le,$e){let kt,mt={};le&&Object.entries(le).forEach(([ln,si])=>{mt[ln]=Array.isArray(si)?si.map(Fi=>`${Fi}`):`${si}`}),kt=P===ae?k:rt(P,ae,k);const yn=Re($(kt));return new et(yn,mt,$e)}function rt(P,ae,k){const le={};return Object.entries(P.children).forEach(([$e,mt])=>{le[$e]=mt===ae?k:rt(mt,ae,k)}),new ut(P.segments,le)}class Ft{constructor(ae,k,le){if(this.isAbsolute=ae,this.numberOfDoubleDots=k,this.commands=le,ae&&le.length>0&&U(le[0]))throw new t.wOt(4003,!1);const $e=le.find(ge);if($e&&$e!==bt(le))throw new t.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cn{constructor(ae,k,le){this.segmentGroup=ae,this.processChildren=k,this.index=le}}function zi(P,ae,k){if(P??=new ut([],{}),0===P.segments.length&&P.hasChildren())return Oi(P,ae,k);const le=function lo(P,ae,k){let le=0,$e=ae;const mt={match:!1,pathIndex:0,commandIndex:0};for(;$e=k.length)return mt;const kt=P.segments[$e],yn=k[le];if(ge(yn))break;const ln=`${yn}`,si=le0&&void 0===ln)break;if(ln&&si&&"object"==typeof si&&void 0===si.outlets){if(!Mr(ln,si,kt))return mt;le+=2}else{if(!Mr(ln,{},kt))return mt;le++}$e++}return{match:!0,pathIndex:$e,commandIndex:le}}(P,ae,k),$e=k.slice(le.commandIndex);if(le.match&&le.pathIndexmt!==Ct)&&P.children[Ct]&&1===P.numberOfChildren&&0===P.children[Ct].segments.length){const mt=Oi(P.children[Ct],ae,k);return new ut(P.segments,mt.children)}return Object.entries(le).forEach(([mt,kt])=>{"string"==typeof kt&&(kt=[kt]),null!==kt&&($e[mt]=zi(P.children[mt],ae,kt))}),Object.entries(P.children).forEach(([mt,kt])=>{void 0===le[mt]&&($e[mt]=kt)}),new ut(P.segments,$e)}}function Zi(P,ae,k){const le=P.segments.slice(0,ae);let $e=0;for(;$e{"string"==typeof le&&(le=[le]),null!==le&&(ae[k]=Zi(new ut([],{}),0,le))}),ae}function bo(P){const ae={};return Object.entries(P).forEach(([k,le])=>ae[k]=`${le}`),ae}function Mr(P,ae,k){return P==k.path&&fn(ae,k.parameters)}const rr="imperative";var lt=function(P){return P[P.NavigationStart=0]="NavigationStart",P[P.NavigationEnd=1]="NavigationEnd",P[P.NavigationCancel=2]="NavigationCancel",P[P.NavigationError=3]="NavigationError",P[P.RoutesRecognized=4]="RoutesRecognized",P[P.ResolveStart=5]="ResolveStart",P[P.ResolveEnd=6]="ResolveEnd",P[P.GuardsCheckStart=7]="GuardsCheckStart",P[P.GuardsCheckEnd=8]="GuardsCheckEnd",P[P.RouteConfigLoadStart=9]="RouteConfigLoadStart",P[P.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",P[P.ChildActivationStart=11]="ChildActivationStart",P[P.ChildActivationEnd=12]="ChildActivationEnd",P[P.ActivationStart=13]="ActivationStart",P[P.ActivationEnd=14]="ActivationEnd",P[P.Scroll=15]="Scroll",P[P.NavigationSkipped=16]="NavigationSkipped",P}(lt||{});class Lt{constructor(ae,k){this.id=ae,this.url=k}}class $t extends Lt{constructor(ae,k,le="imperative",$e=null){super(ae,k),this.type=lt.NavigationStart,this.navigationTrigger=le,this.restoredState=$e}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class mn extends Lt{constructor(ae,k,le){super(ae,k),this.urlAfterRedirects=le,this.type=lt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var hn=function(P){return P[P.Redirect=0]="Redirect",P[P.SupersededByNewNavigation=1]="SupersededByNewNavigation",P[P.NoDataFromResolver=2]="NoDataFromResolver",P[P.GuardRejected=3]="GuardRejected",P}(hn||{}),Yn=function(P){return P[P.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",P[P.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",P}(Yn||{});class En extends Lt{constructor(ae,k,le,$e){super(ae,k),this.reason=le,this.code=$e,this.type=lt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kn extends Lt{constructor(ae,k,le,$e){super(ae,k),this.reason=le,this.code=$e,this.type=lt.NavigationSkipped}}class oi extends Lt{constructor(ae,k,le,$e){super(ae,k),this.error=le,this.target=$e,this.type=lt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gi extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ro extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vi extends Lt{constructor(ae,k,le,$e,mt){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.shouldActivate=mt,this.type=lt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pn extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $i extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mi{constructor(ae){this.route=ae,this.type=lt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ni{constructor(ae){this.route=ae,this.type=lt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class so{constructor(ae){this.snapshot=ae,this.type=lt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yi{constructor(ae){this.snapshot=ae,this.type=lt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xo{constructor(ae){this.snapshot=ae,this.type=lt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ki{constructor(ae){this.snapshot=ae,this.type=lt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zo{constructor(ae,k,le){this.routerEvent=ae,this.position=k,this.anchor=le,this.type=lt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class pr{}class fo{constructor(ae,k){this.url=ae,this.navigationBehaviorOptions=k}}function qo(P){return P.outlet||Ct}function tt(P){if(!P)return null;if(P.routeConfig?._injector)return P.routeConfig._injector;for(let ae=P.parent;ae;ae=ae.parent){const k=ae.routeConfig;if(k?._loadedInjector)return k._loadedInjector;if(k?._injector)return k._injector}return null}class Ce{get injector(){return tt(this.route?.snapshot)??this.rootInjector}set injector(ae){}constructor(ae){this.rootInjector=ae,this.outlet=null,this.route=null,this.children=new Ve(this.rootInjector),this.attachRef=null}}let Ve=(()=>{class P{constructor(k){this.rootInjector=k,this.contexts=new Map}onChildOutletCreated(k,le){const $e=this.getOrCreateContext(k);$e.outlet=le,this.contexts.set(k,$e)}onChildOutletDestroyed(k){const le=this.getContext(k);le&&(le.outlet=null,le.attachRef=null)}onOutletDeactivated(){const k=this.contexts;return this.contexts=new Map,k}onOutletReAttached(k){this.contexts=k}getOrCreateContext(k){let le=this.getContext(k);return le||(le=new Ce(this.rootInjector),this.contexts.set(k,le)),le}getContext(k){return this.contexts.get(k)||null}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(t.uvJ))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();class nt{constructor(ae){this._root=ae}get root(){return this._root.value}parent(ae){const k=this.pathFromRoot(ae);return k.length>1?k[k.length-2]:null}children(ae){const k=Mt(ae,this._root);return k?k.children.map(le=>le.value):[]}firstChild(ae){const k=Mt(ae,this._root);return k&&k.children.length>0?k.children[0].value:null}siblings(ae){const k=Wt(ae,this._root);return k.length<2?[]:k[k.length-2].children.map($e=>$e.value).filter($e=>$e!==ae)}pathFromRoot(ae){return Wt(ae,this._root).map(k=>k.value)}}function Mt(P,ae){if(P===ae.value)return ae;for(const k of ae.children){const le=Mt(P,k);if(le)return le}return null}function Wt(P,ae){if(P===ae.value)return[ae];for(const k of ae.children){const le=Wt(P,k);if(le.length)return le.unshift(ae),le}return[]}class tn{constructor(ae,k){this.value=ae,this.children=k}toString(){return`TreeNode(${this.value})`}}function rn(P){const ae={};return P&&P.children.forEach(k=>ae[k.value.outlet]=k),ae}class bn extends nt{constructor(ae,k){super(ae),this.snapshot=k,ei(this,ae)}toString(){return this.snapshot.toString()}}function Mn(P){const ae=function Ln(P){const mt=new qn([],{},{},"",{},Ct,P,null,{});return new pi("",new tn(mt,[]))}(P),k=new M.t([new Kt("",{})]),le=new M.t({}),$e=new M.t({}),mt=new M.t({}),kt=new M.t(""),yn=new wn(k,le,mt,kt,$e,Ct,P,ae.root);return yn.snapshot=ae.root,new bn(new tn(yn,[]),ae)}class wn{constructor(ae,k,le,$e,mt,kt,yn,ln){this.urlSubject=ae,this.paramsSubject=k,this.queryParamsSubject=le,this.fragmentSubject=$e,this.dataSubject=mt,this.outlet=kt,this.component=yn,this._futureSnapshot=ln,this.title=this.dataSubject?.pipe((0,J.T)(si=>si[It]))??(0,e.of)(void 0),this.url=ae,this.params=k,this.queryParams=le,this.fragment=$e,this.data=mt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,J.T)(ae=>en(ae))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,J.T)(ae=>en(ae))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qn(P,ae,k="emptyOnly"){let le;const{routeConfig:$e}=P;return le=null===ae||"always"!==k&&""!==$e?.path&&(ae.component||ae.routeConfig?.loadComponent)?{params:{...P.params},data:{...P.data},resolve:{...P.data,...P._resolvedData??{}}}:{params:{...ae.params,...P.params},data:{...ae.data,...P.data},resolve:{...P.data,...ae.data,...$e?.data,...P._resolvedData}},$e&&Ei($e)&&(le.resolve[It]=$e.title),le}class qn{get title(){return this.data?.[It]}constructor(ae,k,le,$e,mt,kt,yn,ln,si){this.url=ae,this.params=k,this.queryParams=le,this.fragment=$e,this.data=mt,this.outlet=kt,this.component=yn,this.routeConfig=ln,this._resolve=si}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??=en(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=en(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(le=>le.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pi extends nt{constructor(ae,k){super(k),this.url=ae,ei(this,k)}toString(){return li(this._root)}}function ei(P,ae){ae.value._routerState=P,ae.children.forEach(k=>ei(P,k))}function li(P){const ae=P.children.length>0?` { ${P.children.map(li).join(", ")} } `:"";return`${P.value}${ae}`}function ci(P){if(P.snapshot){const ae=P.snapshot,k=P._futureSnapshot;P.snapshot=k,fn(ae.queryParams,k.queryParams)||P.queryParamsSubject.next(k.queryParams),ae.fragment!==k.fragment&&P.fragmentSubject.next(k.fragment),fn(ae.params,k.params)||P.paramsSubject.next(k.params),function Vt(P,ae){if(P.length!==ae.length)return!1;for(let k=0;kfn(k.parameters,ae[le].parameters))}(P.url,ae.url);return k&&!(!P.parent!=!ae.parent)&&(!P.parent||mi(P.parent,ae.parent))}function Ei(P){return"string"==typeof P.title||null===P.title}let Xi=(()=>{class P{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ct,this.activateEvents=new t.bkB,this.deactivateEvents=new t.bkB,this.attachEvents=new t.bkB,this.detachEvents=new t.bkB,this.parentContexts=(0,t.WQX)(Ve),this.location=(0,t.WQX)(t.c1b),this.changeDetector=(0,t.WQX)(t.gRc),this.inputBinder=(0,t.WQX)(eo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(k){if(k.name){const{firstChange:le,previousValue:$e}=k.name;if(le)return;this.isTrackedInParentContexts($e)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed($e)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(k){return this.parentContexts.getContext(k)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const k=this.parentContexts.getContext(this.name);k?.route&&(k.attachRef?this.attach(k.attachRef,k.route):this.activateWith(k.route,k.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.wOt(4012,!1);this.location.detach();const k=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(k.instance),k}attach(k,le){this.activated=k,this._activatedRoute=le,this.location.insert(k.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(k.instance)}deactivate(){if(this.activated){const k=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(k)}}activateWith(k,le){if(this.isActivated)throw new t.wOt(4013,!1);this._activatedRoute=k;const $e=this.location,kt=k.snapshot.component,yn=this.parentContexts.getOrCreateContext(this.name).children,ln=new Si(k,yn,$e.injector);this.activated=$e.createComponent(kt,{index:$e.length,injector:ln,environmentInjector:le}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.OA$]})}return P})();class Si{__ngOutletInjector(ae){return new Si(this.route,this.childContexts,ae)}constructor(ae,k,le){this.route=ae,this.childContexts=k,this.parent=le}get(ae,k){return ae===wn?this.route:ae===Ve?this.childContexts:this.parent.get(ae,k)}}const eo=new t.nKC("");let ao=(()=>{class P{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(k){this.unsubscribeFromRouteData(k),this.subscribeToRouteData(k)}unsubscribeFromRouteData(k){this.outletDataSubscriptions.get(k)?.unsubscribe(),this.outletDataSubscriptions.delete(k)}subscribeToRouteData(k){const{activatedRoute:le}=k,$e=(0,G.z)([le.queryParams,le.params,le.data]).pipe((0,be.n)(([mt,kt,yn],ln)=>(yn={...mt,...kt,...yn},0===ln?(0,e.of)(yn):Promise.resolve(yn)))).subscribe(mt=>{if(!k.isActivated||!k.activatedComponentRef||k.activatedRoute!==le||null===le.component)return void this.unsubscribeFromRouteData(k);const kt=(0,t.HJs)(le.component);if(kt)for(const{templateName:yn}of kt.inputs)k.activatedComponentRef.setInput(yn,mt[yn]);else this.unsubscribeFromRouteData(k)});this.outletDataSubscriptions.set(k,$e)}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})();function An(P,ae,k){if(k&&P.shouldReuseRoute(ae.value,k.value.snapshot)){const le=k.value;le._futureSnapshot=ae.value;const $e=function _o(P,ae,k){return ae.children.map(le=>{for(const $e of k.children)if(P.shouldReuseRoute(le.value,$e.value.snapshot))return An(P,le,$e);return An(P,le)})}(P,ae,k);return new tn(le,$e)}{if(P.shouldAttach(ae.value)){const mt=P.retrieve(ae.value);if(null!==mt){const kt=mt.route;return kt.value._futureSnapshot=ae.value,kt.children=ae.children.map(yn=>An(P,yn)),kt}}const le=function ir(P){return new wn(new M.t(P.url),new M.t(P.params),new M.t(P.queryParams),new M.t(P.fragment),new M.t(P.data),P.outlet,P.component,P)}(ae.value),$e=ae.children.map(mt=>An(P,mt));return new tn(le,$e)}}class Ur{constructor(ae,k){this.redirectTo=ae,this.navigationBehaviorOptions=k}}const Do="ngNavigationCancelingError";function Qo(P,ae){const{redirectTo:k,navigationBehaviorOptions:le}=N(ae)?{redirectTo:ae,navigationBehaviorOptions:void 0}:ae,$e=Dr(!1,hn.Redirect);return $e.url=k,$e.navigationBehaviorOptions=le,$e}function Dr(P,ae){const k=new Error(`NavigationCancelingError: ${P||""}`);return k[Do]=!0,k.cancellationCode=ae,k}function yr(P){return!!P&&P[Do]}class Ms{constructor(ae,k,le,$e,mt){this.routeReuseStrategy=ae,this.futureState=k,this.currState=le,this.forwardEvent=$e,this.inputBindingEnabled=mt}activate(ae){const k=this.futureState._root,le=this.currState?this.currState._root:null;this.deactivateChildRoutes(k,le,ae),ci(this.futureState.root),this.activateChildRoutes(k,le,ae)}deactivateChildRoutes(ae,k,le){const $e=rn(k);ae.children.forEach(mt=>{const kt=mt.value.outlet;this.deactivateRoutes(mt,$e[kt],le),delete $e[kt]}),Object.values($e).forEach(mt=>{this.deactivateRouteAndItsChildren(mt,le)})}deactivateRoutes(ae,k,le){const $e=ae.value,mt=k?k.value:null;if($e===mt)if($e.component){const kt=le.getContext($e.outlet);kt&&this.deactivateChildRoutes(ae,k,kt.children)}else this.deactivateChildRoutes(ae,k,le);else mt&&this.deactivateRouteAndItsChildren(k,le)}deactivateRouteAndItsChildren(ae,k){ae.value.component&&this.routeReuseStrategy.shouldDetach(ae.value.snapshot)?this.detachAndStoreRouteSubtree(ae,k):this.deactivateRouteAndOutlet(ae,k)}detachAndStoreRouteSubtree(ae,k){const le=k.getContext(ae.value.outlet),$e=le&&ae.value.component?le.children:k,mt=rn(ae);for(const kt of Object.values(mt))this.deactivateRouteAndItsChildren(kt,$e);if(le&&le.outlet){const kt=le.outlet.detach(),yn=le.children.onOutletDeactivated();this.routeReuseStrategy.store(ae.value.snapshot,{componentRef:kt,route:ae,contexts:yn})}}deactivateRouteAndOutlet(ae,k){const le=k.getContext(ae.value.outlet),$e=le&&ae.value.component?le.children:k,mt=rn(ae);for(const kt of Object.values(mt))this.deactivateRouteAndItsChildren(kt,$e);le&&(le.outlet&&(le.outlet.deactivate(),le.children.onOutletDeactivated()),le.attachRef=null,le.route=null)}activateChildRoutes(ae,k,le){const $e=rn(k);ae.children.forEach(mt=>{this.activateRoutes(mt,$e[mt.value.outlet],le),this.forwardEvent(new Ki(mt.value.snapshot))}),ae.children.length&&this.forwardEvent(new Yi(ae.value.snapshot))}activateRoutes(ae,k,le){const $e=ae.value,mt=k?k.value:null;if(ci($e),$e===mt)if($e.component){const kt=le.getOrCreateContext($e.outlet);this.activateChildRoutes(ae,k,kt.children)}else this.activateChildRoutes(ae,k,le);else if($e.component){const kt=le.getOrCreateContext($e.outlet);if(this.routeReuseStrategy.shouldAttach($e.snapshot)){const yn=this.routeReuseStrategy.retrieve($e.snapshot);this.routeReuseStrategy.store($e.snapshot,null),kt.children.onOutletReAttached(yn.contexts),kt.attachRef=yn.componentRef,kt.route=yn.route.value,kt.outlet&&kt.outlet.attach(yn.componentRef,yn.route.value),ci(yn.route.value),this.activateChildRoutes(ae,null,kt.children)}else kt.attachRef=null,kt.route=$e,kt.outlet&&kt.outlet.activateWith($e,kt.injector),this.activateChildRoutes(ae,null,kt.children)}else this.activateChildRoutes(ae,null,le)}}class Fr{constructor(ae){this.path=ae,this.route=this.path[this.path.length-1]}}class Uo{constructor(ae,k){this.component=ae,this.route=k}}function Gr(P,ae,k){const le=P._root;return ds(le,ae?ae._root:null,k,[le.value])}function Ss(P,ae){const k=Symbol(),le=ae.get(P,k);return le===k?"function"!=typeof P||(0,t.LfX)(P)?ae.get(P):P:le}function ds(P,ae,k,le,$e={canDeactivateChecks:[],canActivateChecks:[]}){const mt=rn(ae);return P.children.forEach(kt=>{(function Ze(P,ae,k,le,$e={canDeactivateChecks:[],canActivateChecks:[]}){const mt=P.value,kt=ae?ae.value:null,yn=k?k.getContext(P.value.outlet):null;if(kt&&mt.routeConfig===kt.routeConfig){const ln=function Fn(P,ae,k){if("function"==typeof k)return k(P,ae);switch(k){case"pathParamsChange":return!Tn(P.url,ae.url);case"pathParamsOrQueryParamsChange":return!Tn(P.url,ae.url)||!fn(P.queryParams,ae.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mi(P,ae)||!fn(P.queryParams,ae.queryParams);default:return!mi(P,ae)}}(kt,mt,mt.routeConfig.runGuardsAndResolvers);ln?$e.canActivateChecks.push(new Fr(le)):(mt.data=kt.data,mt._resolvedData=kt._resolvedData),ds(P,ae,mt.component?yn?yn.children:null:k,le,$e),ln&&yn&&yn.outlet&&yn.outlet.isActivated&&$e.canDeactivateChecks.push(new Uo(yn.outlet.component,kt))}else kt&&fe(ae,yn,$e),$e.canActivateChecks.push(new Fr(le)),ds(P,null,mt.component?yn?yn.children:null:k,le,$e)})(kt,mt[kt.value.outlet],k,le.concat([kt.value]),$e),delete mt[kt.value.outlet]}),Object.entries(mt).forEach(([kt,yn])=>fe(yn,k.getContext(kt),$e)),$e}function fe(P,ae,k){const le=rn(P),$e=P.value;Object.entries(le).forEach(([mt,kt])=>{fe(kt,$e.component?ae?ae.children.getContext(mt):null:ae,k)}),k.canDeactivateChecks.push(new Uo($e.component&&ae&&ae.outlet&&ae.outlet.isActivated?ae.outlet.component:null,$e))}function We(P){return"function"==typeof P}function Eo(P){return P instanceof L.G||"EmptyError"===P?.name}const di=Symbol("INITIAL_VALUE");function ho(){return(0,be.n)(P=>(0,G.z)(P.map(ae=>ae.pipe((0,Oe.s)(1),(0,he.Z)(di)))).pipe((0,J.T)(ae=>{for(const k of ae)if(!0!==k){if(k===di)return di;if(!1===k||Oo(k))return k}return!0}),(0,we.p)(ae=>ae!==di),(0,Oe.s)(1)))}function Oo(P){return N(P)||P instanceof Ur}function yi(P){return(0,w.F)((0,z.M)(ae=>{if("boolean"!=typeof ae)throw Qo(0,ae)}),(0,J.T)(ae=>!0===ae))}class Hc{constructor(ae){this.segmentGroup=ae||null}}class ba extends Error{constructor(ae){super(),this.urlTree=ae}}function Cr(P){return(0,I.$)(new Hc(P))}class Yr{constructor(ae,k){this.urlSerializer=ae,this.urlTree=k}lineralizeSegments(ae,k){let le=[],$e=k.root;for(;;){if(le=le.concat($e.segments),0===$e.numberOfChildren)return(0,e.of)(le);if($e.numberOfChildren>1||!$e.children[Ct])return(0,I.$)(new t.wOt(4e3,!1));$e=$e.children[Ct]}}applyRedirectCommands(ae,k,le,$e,mt){if("string"!=typeof k){const yn=k,{queryParams:ln,fragment:si,routeConfig:Fi,url:Ai,outlet:Ro,params:ys,data:Er,title:Hi}=$e,So=(0,t.N4e)(mt,()=>yn({params:ys,data:Er,queryParams:ln,fragment:si,routeConfig:Fi,url:Ai,outlet:Ro,title:Hi}));if(So instanceof et)throw new ba(So);k=So}const kt=this.applyRedirectCreateUrlTree(k,this.urlSerializer.parse(k),ae,le);if("/"===k[0])throw new ba(kt);return kt}applyRedirectCreateUrlTree(ae,k,le,$e){const mt=this.createSegmentGroup(ae,k.root,le,$e);return new et(mt,this.createQueryParams(k.queryParams,this.urlTree.queryParams),k.fragment)}createQueryParams(ae,k){const le={};return Object.entries(ae).forEach(([$e,mt])=>{if("string"==typeof mt&&":"===mt[0]){const yn=mt.substring(1);le[$e]=k[yn]}else le[$e]=mt}),le}createSegmentGroup(ae,k,le,$e){const mt=this.createSegments(ae,k.segments,le,$e);let kt={};return Object.entries(k.children).forEach(([yn,ln])=>{kt[yn]=this.createSegmentGroup(ae,ln,le,$e)}),new ut(mt,kt)}createSegments(ae,k,le,$e){return k.map(mt=>":"===mt.path[0]?this.findPosParam(ae,mt,$e):this.findOrReturn(mt,le))}findPosParam(ae,k,le){const $e=le[k.path.substring(1)];if(!$e)throw new t.wOt(4001,!1);return $e}findOrReturn(ae,k){let le=0;for(const $e of k){if($e.path===ae.path)return k.splice(le),$e;le++}return ae}}const ta={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ba(P,ae,k,le,$e){const mt=mr(P,ae,k);return mt.matched?(le=function fr(P,ae){return P.providers&&!P._injector&&(P._injector=(0,t.Ol2)(P.providers,ae,`Route: ${P.path}`)),P._injector??ae}(ae,le),function La(P,ae,k,le){const $e=ae.canMatch;if(!$e||0===$e.length)return(0,e.of)(!0);const mt=$e.map(kt=>{const yn=Ss(kt,P);return At(function ki(P){return P&&We(P.canMatch)}(yn)?yn.canMatch(ae,k):(0,t.N4e)(P,()=>yn(ae,k)))});return(0,e.of)(mt).pipe(ho(),yi())}(le,ae,k).pipe((0,J.T)(kt=>!0===kt?mt:{...ta}))):(0,e.of)(mt)}function mr(P,ae,k){if("**"===ae.path)return function Ea(P){return{matched:!0,parameters:P.length>0?bt(P).parameters:{},consumedSegments:P,remainingSegments:[],positionalParamSegments:{}}}(k);if(""===ae.path)return"full"===ae.pathMatch&&(P.hasChildren()||k.length>0)?{...ta}:{matched:!0,consumedSegments:[],remainingSegments:k,parameters:{},positionalParamSegments:{}};const $e=(ae.matcher||jt)(k,P,ae);if(!$e)return{...ta};const mt={};Object.entries($e.posParams??{}).forEach(([yn,ln])=>{mt[yn]=ln.path});const kt=$e.consumed.length>0?{...mt,...$e.consumed[$e.consumed.length-1].parameters}:mt;return{matched:!0,consumedSegments:$e.consumed,remainingSegments:k.slice($e.consumed.length),parameters:kt,positionalParamSegments:$e.posParams??{}}}function Ys(P,ae,k,le){return k.length>0&&function da(P,ae,k){return k.some(le=>wi(P,ae,le)&&qo(le)!==Ct)}(P,k,le)?{segmentGroup:new ut(ae,vc(le,new ut(k,P.children))),slicedSegments:[]}:0===k.length&&function Wr(P,ae,k){return k.some(le=>wi(P,ae,le))}(P,k,le)?{segmentGroup:new ut(P.segments,hs(P,k,le,P.children)),slicedSegments:k}:{segmentGroup:new ut(P.segments,P.children),slicedSegments:k}}function hs(P,ae,k,le){const $e={};for(const mt of k)if(wi(P,ae,mt)&&!le[qo(mt)]){const kt=new ut([],{});$e[qo(mt)]=kt}return{...le,...$e}}function vc(P,ae){const k={};k[Ct]=ae;for(const le of P)if(""===le.path&&qo(le)!==Ct){const $e=new ut([],{});k[qo(le)]=$e}return k}function wi(P,ae,k){return(!(P.hasChildren()||ae.length>0)||"full"!==k.pathMatch)&&""===k.path}class ps{}class Ta{constructor(ae,k,le,$e,mt,kt,yn){this.injector=ae,this.configLoader=k,this.rootComponentType=le,this.config=$e,this.urlTree=mt,this.paramsInheritanceStrategy=kt,this.urlSerializer=yn,this.applyRedirects=new Yr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(ae){return new t.wOt(4002,`'${ae.segmentGroup}'`)}recognize(){const ae=Ys(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(ae).pipe((0,J.T)(({children:k,rootSnapshot:le})=>{const $e=new tn(le,k),mt=new pi("",$e),kt=function ke(P,ae,k=null,le=null){return K(ve(P),ae,k,le)}(le,[],this.urlTree.queryParams,this.urlTree.fragment);return kt.queryParams=this.urlTree.queryParams,mt.url=this.urlSerializer.serialize(kt),{state:mt,tree:kt}}))}match(ae){const k=new qn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ct,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,ae,Ct,k).pipe((0,J.T)(le=>({children:le,rootSnapshot:k})),(0,Z.W)(le=>{if(le instanceof ba)return this.urlTree=le.urlTree,this.match(le.urlTree.root);throw le instanceof Hc?this.noMatchError(le):le}))}processSegmentGroup(ae,k,le,$e,mt){return 0===le.segments.length&&le.hasChildren()?this.processChildren(ae,k,le,mt):this.processSegment(ae,k,le,le.segments,$e,!0,mt).pipe((0,J.T)(kt=>kt instanceof tn?[kt]:[]))}processChildren(ae,k,le,$e){const mt=[];for(const kt of Object.keys(le.children))"primary"===kt?mt.unshift(kt):mt.push(kt);return(0,g.H)(mt).pipe((0,H.H)(kt=>{const yn=le.children[kt],ln=function Gs(P,ae){const k=P.filter(le=>qo(le)===ae);return k.push(...P.filter(le=>qo(le)!==ae)),k}(k,kt);return this.processSegmentGroup(ae,ln,yn,kt,$e)}),(0,pe.S)((kt,yn)=>(kt.push(...yn),kt)),(0,E.U)(null),function Pt(P,ae){const k=arguments.length>=2;return le=>le.pipe(P?(0,we.p)(($e,mt)=>P($e,mt,le)):Be.D,Y(1),k?(0,E.U)(ae):(0,se.v)(()=>new L.G))}(),(0,me.Z)(kt=>{if(null===kt)return Cr(le);const yn=_l(kt);return function Xr(P){P.sort((ae,k)=>ae.value.outlet===Ct?-1:k.value.outlet===Ct?1:ae.value.outlet.localeCompare(k.value.outlet))}(yn),(0,e.of)(yn)}))}processSegment(ae,k,le,$e,mt,kt,yn){return(0,g.H)(k).pipe((0,H.H)(ln=>this.processSegmentAgainstRoute(ln._injector??ae,k,ln,le,$e,mt,kt,yn).pipe((0,Z.W)(si=>{if(si instanceof Hc)return(0,e.of)(null);throw si}))),(0,de.$)(ln=>!!ln),(0,Z.W)(ln=>{if(Eo(ln))return function $a(P,ae,k){return 0===ae.length&&!P.children[k]}(le,$e,mt)?(0,e.of)(new ps):Cr(le);throw ln}))}processSegmentAgainstRoute(ae,k,le,$e,mt,kt,yn,ln){return function Ws(P,ae,k,le){return!!(qo(P)===le||le!==Ct&&wi(ae,k,P))&&mr(ae,P,k).matched}(le,$e,mt,kt)?void 0===le.redirectTo?this.matchSegmentAgainstRoute(ae,$e,le,mt,kt,ln):this.allowRedirects&&yn?this.expandSegmentAgainstRouteUsingRedirect(ae,$e,k,le,mt,kt,ln):Cr($e):Cr($e)}expandSegmentAgainstRouteUsingRedirect(ae,k,le,$e,mt,kt,yn){const{matched:ln,parameters:si,consumedSegments:Fi,positionalParamSegments:Ai,remainingSegments:Ro}=mr(k,$e,mt);if(!ln)return Cr(k);"string"==typeof $e.redirectTo&&"/"===$e.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const ys=new qn(mt,si,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,br($e),qo($e),$e.component??$e._loadedComponent??null,$e,Ds($e)),Er=Qn(ys,yn,this.paramsInheritanceStrategy);ys.params=Object.freeze(Er.params),ys.data=Object.freeze(Er.data);const Hi=this.applyRedirects.applyRedirectCommands(Fi,$e.redirectTo,Ai,ys,ae);return this.applyRedirects.lineralizeSegments($e,Hi).pipe((0,me.Z)(So=>this.processSegment(ae,le,k,So.concat(Ro),kt,!1,yn)))}matchSegmentAgainstRoute(ae,k,le,$e,mt,kt){const yn=Ba(k,le,$e,ae);return"**"===le.path&&(k.children={}),yn.pipe((0,be.n)(ln=>ln.matched?this.getChildConfig(ae=le._injector??ae,le,$e).pipe((0,be.n)(({routes:si})=>{const Fi=le._loadedInjector??ae,{parameters:Ai,consumedSegments:Ro,remainingSegments:ys}=ln,Er=new qn(Ro,Ai,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,br(le),qo(le),le.component??le._loadedComponent??null,le,Ds(le)),Hi=Qn(Er,kt,this.paramsInheritanceStrategy);Er.params=Object.freeze(Hi.params),Er.data=Object.freeze(Hi.data);const{segmentGroup:So,slicedSegments:er}=Ys(k,Ro,ys,si);if(0===er.length&&So.hasChildren())return this.processChildren(Fi,si,So,Er).pipe((0,J.T)(tr=>new tn(Er,tr)));if(0===si.length&&0===er.length)return(0,e.of)(new tn(Er,[]));const ia=qo(le)===mt;return this.processSegment(Fi,si,So,er,ia?Ct:mt,!0,Er).pipe((0,J.T)(tr=>new tn(Er,tr instanceof tn?[tr]:[])))})):Cr(k)))}getChildConfig(ae,k,le){return k.children?(0,e.of)({routes:k.children,injector:ae}):k.loadChildren?void 0!==k._loadedRoutes?(0,e.of)({routes:k._loadedRoutes,injector:k._loadedInjector}):function wo(P,ae,k,le){const $e=ae.canLoad;if(void 0===$e||0===$e.length)return(0,e.of)(!0);const mt=$e.map(kt=>{const yn=Ss(kt,P);return At(function sn(P){return P&&We(P.canLoad)}(yn)?yn.canLoad(ae,k):(0,t.N4e)(P,()=>yn(ae,k)))});return(0,e.of)(mt).pipe(ho(),yi())}(ae,k,le).pipe((0,me.Z)($e=>$e?this.configLoader.loadChildren(ae,k).pipe((0,z.M)(mt=>{k._loadedRoutes=mt.routes,k._loadedInjector=mt.injector})):function ua(P){return(0,I.$)(Dr(!1,hn.GuardRejected))}())):(0,e.of)({routes:[],injector:ae})}}function ju(P){const ae=P.value.routeConfig;return ae&&""===ae.path}function _l(P){const ae=[],k=new Set;for(const le of P){if(!ju(le)){ae.push(le);continue}const $e=ae.find(mt=>le.value.routeConfig===mt.value.routeConfig);void 0!==$e?($e.children.push(...le.children),k.add($e)):ae.push(le)}for(const le of k){const $e=_l(le.children);ae.push(new tn(le.value,$e))}return ae.filter(le=>!k.has(le))}function br(P){return P.data||{}}function Ds(P){return P.resolve||{}}function jc(P){const ae=P.children.map(k=>jc(k)).flat();return[P,...ae]}function Vi(P){return(0,be.n)(ae=>{const k=P(ae);return k?(0,g.H)(k).pipe((0,J.T)(()=>ae)):(0,e.of)(ae)})}let to=(()=>{class P{buildTitle(k){let le,$e=k.root;for(;void 0!==$e;)le=this.getResolvedTitleForRoute($e)??le,$e=$e.children.find(mt=>mt.outlet===Ct);return le}getResolvedTitleForRoute(k){return k.data[It]}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(yc),providedIn:"root"})}return P})(),yc=(()=>{class P extends to{constructor(k){super(),this.title=k}updateTitle(k){const le=this.buildTitle(k);void 0!==le&&this.title.setTitle(le)}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(st.hE))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const pa=new t.nKC("",{providedIn:"root",factory:()=>({})});let Uc=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275cmp=t.VBU({type:P,selectors:[["ng-component"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(le,$e){1&le&&t.nrm(0,"router-outlet")},dependencies:[Xi],encapsulation:2})}return P})();function Gc(P){const ae=P.children&&P.children.map(Gc),k=ae?{...P,children:ae}:{...P};return!k.component&&!k.loadComponent&&(ae||k.loadChildren)&&k.outlet&&k.outlet!==Ct&&(k.component=Uc),k}const Is=new t.nKC("");let Ks=(()=>{class P{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.WQX)(t.Ql9)}loadComponent(k){if(this.componentLoaders.get(k))return this.componentLoaders.get(k);if(k._loadedComponent)return(0,e.of)(k._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(k);const le=At(k.loadComponent()).pipe((0,J.T)(Cc),(0,z.M)(mt=>{this.onLoadEndListener&&this.onLoadEndListener(k),k._loadedComponent=mt}),(0,wt.j)(()=>{this.componentLoaders.delete(k)})),$e=new X.G(le,()=>new V.B).pipe((0,Le.B)());return this.componentLoaders.set(k,$e),$e}loadChildren(k,le){if(this.childrenLoaders.get(le))return this.childrenLoaders.get(le);if(le._loadedRoutes)return(0,e.of)({routes:le._loadedRoutes,injector:le._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(le);const mt=function co(P,ae,k,le){return At(P.loadChildren()).pipe((0,J.T)(Cc),(0,me.Z)($e=>$e instanceof t.Co$||Array.isArray($e)?(0,e.of)($e):(0,g.H)(ae.compileModuleAsync($e))),(0,J.T)($e=>{le&&le(P);let mt,kt,yn=!1;return Array.isArray($e)?(kt=$e,!0):(mt=$e.create(k).injector,kt=mt.get(Is,[],{optional:!0,self:!0}).flat()),{routes:kt.map(Gc),injector:mt}}))}(le,this.compiler,k,this.onLoadEndListener).pipe((0,wt.j)(()=>{this.childrenLoaders.delete(le)})),kt=new X.G(mt,()=>new V.B).pipe((0,Le.B)());return this.childrenLoaders.set(le,kt),kt}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function Cc(P){return function Ga(P){return P&&"object"==typeof P&&"default"in P}(P)?P.default:P}let Go=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(Ar),providedIn:"root"})}return P})(),Ar=(()=>{class P{shouldProcessUrl(k){return!0}extract(k){return k}merge(k,le){return k}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const na=new t.nKC(""),fs=new t.nKC("");function za(P,ae,k){const le=P.get(fs),$e=P.get(ne.qQ);return P.get(t.SKi).runOutsideAngular(()=>{if(!$e.startViewTransition||le.skipNextTransition)return le.skipNextTransition=!1,new Promise(si=>setTimeout(si));let mt;const kt=new Promise(si=>{mt=si}),yn=$e.startViewTransition(()=>(mt(),function bc(P){return new Promise(ae=>{(0,t.mal)({read:()=>setTimeout(ae)},{injector:P})})}(P))),{onViewTransitionCreated:ln}=le;return ln&&(0,t.N4e)(P,()=>ln({transition:yn,from:ae,to:k})),kt})}const W=new t.nKC("");let it=(()=>{class P{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new V.B,this.transitionAbortSubject=new V.B,this.configLoader=(0,t.WQX)(Ks),this.environmentInjector=(0,t.WQX)(t.uvJ),this.urlSerializer=(0,t.WQX)(kn),this.rootContexts=(0,t.WQX)(Ve),this.location=(0,t.WQX)(ne.aZ),this.inputBindingEnabled=null!==(0,t.WQX)(eo,{optional:!0}),this.titleStrategy=(0,t.WQX)(to),this.options=(0,t.WQX)(pa,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,t.WQX)(Go),this.createViewTransition=(0,t.WQX)(na,{optional:!0}),this.navigationErrorHandler=(0,t.WQX)(W,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,e.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=$e=>this.events.next(new Ni($e)),this.configLoader.onLoadStartListener=$e=>this.events.next(new Mi($e))}complete(){this.transitions?.complete()}handleNavigationRequest(k){const le=++this.navigationId;this.transitions?.next({...this.transitions.value,...k,id:le})}setupNavigations(k,le,$e){return this.transitions=new M.t({id:0,currentUrlTree:le,currentRawUrl:le,extractedUrl:this.urlHandlingStrategy.extract(le),urlAfterRedirects:this.urlHandlingStrategy.extract(le),rawUrl:le,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:rr,restoredState:null,currentSnapshot:$e.snapshot,targetSnapshot:null,currentRouterState:$e,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,we.p)(mt=>0!==mt.id),(0,J.T)(mt=>({...mt,extractedUrl:this.urlHandlingStrategy.extract(mt.rawUrl)})),(0,be.n)(mt=>{let kt=!1,yn=!1;return(0,e.of)(mt).pipe((0,be.n)(ln=>{if(this.navigationId>mt.id)return this.cancelNavigationTransition(mt,"",hn.SupersededByNewNavigation),F.w;this.currentTransition=mt,this.currentNavigation={id:ln.id,initialUrl:ln.rawUrl,extractedUrl:ln.extractedUrl,targetBrowserUrl:"string"==typeof ln.extras.browserUrl?this.urlSerializer.parse(ln.extras.browserUrl):ln.extras.browserUrl,trigger:ln.source,extras:ln.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const si=!k.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!si&&"reload"!==(ln.extras.onSameUrlNavigation??k.onSameUrlNavigation)){const Ai="";return this.events.next(new Kn(ln.id,this.urlSerializer.serialize(ln.rawUrl),Ai,Yn.IgnoredSameUrlNavigation)),ln.resolve(!1),F.w}if(this.urlHandlingStrategy.shouldProcessUrl(ln.rawUrl))return(0,e.of)(ln).pipe((0,be.n)(Ai=>{const Ro=this.transitions?.getValue();return this.events.next(new $t(Ai.id,this.urlSerializer.serialize(Ai.extractedUrl),Ai.source,Ai.restoredState)),Ro!==this.transitions?.getValue()?F.w:Promise.resolve(Ai)}),function ja(P,ae,k,le,$e,mt){return(0,me.Z)(kt=>function Ha(P,ae,k,le,$e,mt,kt="emptyOnly"){return new Ta(P,ae,k,le,$e,kt,mt).recognize()}(P,ae,k,le,kt.extractedUrl,$e,mt).pipe((0,J.T)(({state:yn,tree:ln})=>({...kt,targetSnapshot:yn,urlAfterRedirects:ln}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,k.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,z.M)(Ai=>{mt.targetSnapshot=Ai.targetSnapshot,mt.urlAfterRedirects=Ai.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ai.urlAfterRedirects};const Ro=new gi(Ai.id,this.urlSerializer.serialize(Ai.extractedUrl),this.urlSerializer.serialize(Ai.urlAfterRedirects),Ai.targetSnapshot);this.events.next(Ro)}));if(si&&this.urlHandlingStrategy.shouldProcessUrl(ln.currentRawUrl)){const{id:Ai,extractedUrl:Ro,source:ys,restoredState:Er,extras:Hi}=ln,So=new $t(Ai,this.urlSerializer.serialize(Ro),ys,Er);this.events.next(So);const er=Mn(this.rootComponentType).snapshot;return this.currentTransition=mt={...ln,targetSnapshot:er,urlAfterRedirects:Ro,extras:{...Hi,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Ro,(0,e.of)(mt)}{const Ai="";return this.events.next(new Kn(ln.id,this.urlSerializer.serialize(ln.extractedUrl),Ai,Yn.IgnoredByUrlHandlingStrategy)),ln.resolve(!1),F.w}}),(0,z.M)(ln=>{const si=new ro(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects),ln.targetSnapshot);this.events.next(si)}),(0,J.T)(ln=>(this.currentTransition=mt={...ln,guards:Gr(ln.targetSnapshot,ln.currentSnapshot,this.rootContexts)},mt)),function ts(P,ae){return(0,me.Z)(k=>{const{targetSnapshot:le,currentSnapshot:$e,guards:{canActivateChecks:mt,canDeactivateChecks:kt}}=k;return 0===kt.length&&0===mt.length?(0,e.of)({...k,guardsResult:!0}):function Ne(P,ae,k,le){return(0,g.H)(P).pipe((0,me.Z)($e=>function Qi(P,ae,k,le,$e){const mt=ae&&ae.routeConfig?ae.routeConfig.canDeactivate:null;if(!mt||0===mt.length)return(0,e.of)(!0);const kt=mt.map(yn=>{const ln=tt(ae)??$e,si=Ss(yn,ln);return At(function fi(P){return P&&We(P.canDeactivate)}(si)?si.canDeactivate(P,ae,k,le):(0,t.N4e)(ln,()=>si(P,ae,k,le))).pipe((0,de.$)())});return(0,e.of)(kt).pipe(ho())}($e.component,$e.route,k,ae,le)),(0,de.$)($e=>!0!==$e,!0))}(kt,le,$e,P).pipe((0,me.Z)(yn=>yn&&function ct(P){return"boolean"==typeof P}(yn)?function je(P,ae,k,le){return(0,g.H)(ae).pipe((0,H.H)($e=>(0,B.x)(function ht(P,ae){return null!==P&&ae&&ae(new so(P)),(0,e.of)(!0)}($e.route.parent,le),function ye(P,ae){return null!==P&&ae&&ae(new Xo(P)),(0,e.of)(!0)}($e.route,le),function Ii(P,ae,k){const le=ae[ae.length-1],mt=ae.slice(0,ae.length-1).reverse().map(kt=>function Mo(P){const ae=P.routeConfig?P.routeConfig.canActivateChild:null;return ae&&0!==ae.length?{node:P,guards:ae}:null}(kt)).filter(kt=>null!==kt).map(kt=>(0,A.v)(()=>{const yn=kt.guards.map(ln=>{const si=tt(kt.node)??k,Fi=Ss(ln,si);return At(function Bn(P){return P&&We(P.canActivateChild)}(Fi)?Fi.canActivateChild(le,P):(0,t.N4e)(si,()=>Fi(le,P))).pipe((0,de.$)())});return(0,e.of)(yn).pipe(ho())}));return(0,e.of)(mt).pipe(ho())}(P,$e.path,k),function Jt(P,ae,k){const le=ae.routeConfig?ae.routeConfig.canActivate:null;if(!le||0===le.length)return(0,e.of)(!0);const $e=le.map(mt=>(0,A.v)(()=>{const kt=tt(ae)??k,yn=Ss(mt,kt);return At(function $n(P){return P&&We(P.canActivate)}(yn)?yn.canActivate(ae,P):(0,t.N4e)(kt,()=>yn(ae,P))).pipe((0,de.$)())}));return(0,e.of)($e).pipe(ho())}(P,$e.route,k))),(0,de.$)($e=>!0!==$e,!0))}(le,mt,P,ae):(0,e.of)(yn)),(0,J.T)(yn=>({...k,guardsResult:yn})))})}(this.environmentInjector,ln=>this.events.next(ln)),(0,z.M)(ln=>{if(mt.guardsResult=ln.guardsResult,ln.guardsResult&&"boolean"!=typeof ln.guardsResult)throw Qo(0,ln.guardsResult);const si=new vi(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects),ln.targetSnapshot,!!ln.guardsResult);this.events.next(si)}),(0,we.p)(ln=>!!ln.guardsResult||(this.cancelNavigationTransition(ln,"",hn.GuardRejected),!1)),Vi(ln=>{if(ln.guards.canActivateChecks.length)return(0,e.of)(ln).pipe((0,z.M)(si=>{const Fi=new pn(si.id,this.urlSerializer.serialize(si.extractedUrl),this.urlSerializer.serialize(si.urlAfterRedirects),si.targetSnapshot);this.events.next(Fi)}),(0,be.n)(si=>{let Fi=!1;return(0,e.of)(si).pipe(function ha(P,ae){return(0,me.Z)(k=>{const{targetSnapshot:le,guards:{canActivateChecks:$e}}=k;if(!$e.length)return(0,e.of)(k);const mt=new Set($e.map(ln=>ln.route)),kt=new Set;for(const ln of mt)if(!kt.has(ln))for(const si of jc(ln))kt.add(si);let yn=0;return(0,g.H)(kt).pipe((0,H.H)(ln=>mt.has(ln)?function Os(P,ae,k,le){const $e=P.routeConfig,mt=P._resolve;return void 0!==$e?.title&&!Ei($e)&&(mt[It]=$e.title),function Ua(P,ae,k,le){const $e=Hn(P);if(0===$e.length)return(0,e.of)({});const mt={};return(0,g.H)($e).pipe((0,me.Z)(kt=>function _c(P,ae,k,le){const $e=tt(ae)??le,mt=Ss(P,$e);return At(mt.resolve?mt.resolve(ae,k):(0,t.N4e)($e,()=>mt(ae,k)))}(P[kt],ae,k,le).pipe((0,de.$)(),(0,z.M)(yn=>{if(yn instanceof Ur)throw Qo(new Vn,yn);mt[kt]=yn}))),Y(1),(0,vt.u)(mt),(0,Z.W)(kt=>Eo(kt)?F.w:(0,I.$)(kt)))}(mt,P,ae,le).pipe((0,J.T)(kt=>(P._resolvedData=kt,P.data=Qn(P,P.parent,k).resolve,null)))}(ln,le,P,ae):(ln.data=Qn(ln,ln.parent,P).resolve,(0,e.of)(void 0))),(0,z.M)(()=>yn++),Y(1),(0,me.Z)(ln=>yn===kt.size?(0,e.of)(k):F.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,z.M)({next:()=>Fi=!0,complete:()=>{Fi||this.cancelNavigationTransition(si,"",hn.NoDataFromResolver)}}))}),(0,z.M)(si=>{const Fi=new $i(si.id,this.urlSerializer.serialize(si.extractedUrl),this.urlSerializer.serialize(si.urlAfterRedirects),si.targetSnapshot);this.events.next(Fi)}))}),Vi(ln=>{const si=Fi=>{const Ai=[];Fi.routeConfig?.loadComponent&&!Fi.routeConfig._loadedComponent&&Ai.push(this.configLoader.loadComponent(Fi.routeConfig).pipe((0,z.M)(Ro=>{Fi.component=Ro}),(0,J.T)(()=>{})));for(const Ro of Fi.children)Ai.push(...si(Ro));return Ai};return(0,G.z)(si(ln.targetSnapshot.root)).pipe((0,E.U)(null),(0,Oe.s)(1))}),Vi(()=>this.afterPreactivation()),(0,be.n)(()=>{const{currentSnapshot:ln,targetSnapshot:si}=mt,Fi=this.createViewTransition?.(this.environmentInjector,ln.root,si.root);return Fi?(0,g.H)(Fi).pipe((0,J.T)(()=>mt)):(0,e.of)(mt)}),(0,J.T)(ln=>{const si=function io(P,ae,k){const le=An(P,ae._root,k?k._root:void 0);return new bn(le,ae)}(k.routeReuseStrategy,ln.targetSnapshot,ln.currentRouterState);return this.currentTransition=mt={...ln,targetRouterState:si},this.currentNavigation.targetRouterState=si,mt}),(0,z.M)(()=>{this.events.next(new pr)}),((P,ae,k,le)=>(0,J.T)($e=>(new Ms(ae,$e.targetRouterState,$e.currentRouterState,k,le).activate(P),$e)))(this.rootContexts,k.routeReuseStrategy,ln=>this.events.next(ln),this.inputBindingEnabled),(0,Oe.s)(1),(0,z.M)({next:ln=>{kt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new mn(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects))),this.titleStrategy?.updateTitle(ln.targetRouterState.snapshot),ln.resolve(!0)},complete:()=>{kt=!0}}),(0,zt.Q)(this.transitionAbortSubject.pipe((0,z.M)(ln=>{throw ln}))),(0,wt.j)(()=>{!kt&&!yn&&this.cancelNavigationTransition(mt,"",hn.SupersededByNewNavigation),this.currentTransition?.id===mt.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Z.W)(ln=>{if(yn=!0,yr(ln))this.events.next(new En(mt.id,this.urlSerializer.serialize(mt.extractedUrl),ln.message,ln.cancellationCode)),function _r(P){return yr(P)&&N(P.url)}(ln)?this.events.next(new fo(ln.url,ln.navigationBehaviorOptions)):mt.resolve(!1);else{const si=new oi(mt.id,this.urlSerializer.serialize(mt.extractedUrl),ln,mt.targetSnapshot??void 0);try{const Fi=(0,t.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(si));if(Fi instanceof Ur){const{message:Ai,cancellationCode:Ro}=Qo(0,Fi);this.events.next(new En(mt.id,this.urlSerializer.serialize(mt.extractedUrl),Ai,Ro)),this.events.next(new fo(Fi.redirectTo,Fi.navigationBehaviorOptions))}else{this.events.next(si);const Ai=k.errorHandler(ln);mt.resolve(!!Ai)}}catch(Fi){this.options.resolveNavigationPromiseOnError?mt.resolve(!1):mt.reject(Fi)}}return F.w}))}))}cancelNavigationTransition(k,le,$e){const mt=new En(k.id,this.urlSerializer.serialize(k.extractedUrl),le,$e);this.events.next(mt),k.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const k=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),le=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return k.toString()!==le?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function Te(P){return P!==rr}let Ge=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(gn),providedIn:"root"})}return P})();class Nt{shouldDetach(ae){return!1}store(ae,k){}shouldAttach(ae){return!1}retrieve(ae){return null}shouldReuseRoute(ae,k){return ae.routeConfig===k.routeConfig}}let gn=(()=>{class P extends Nt{static#e=this.\u0275fac=(()=>{let k;return function($e){return(k||(k=t.xGo(P)))($e||P)}})();static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Pn=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(hi),providedIn:"root"})}return P})(),hi=(()=>{class P extends Pn{constructor(){super(...arguments),this.location=(0,t.WQX)(ne.aZ),this.urlSerializer=(0,t.WQX)(kn),this.options=(0,t.WQX)(pa,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,t.WQX)(Go),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new et,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Mn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(k){return this.location.subscribe(le=>{"popstate"===le.type&&k(le.url,le.state)})}handleRouterEvent(k,le){if(k instanceof $t)this.stateMemento=this.createStateMemento();else if(k instanceof Kn)this.rawUrlTree=le.initialUrl;else if(k instanceof gi){if("eager"===this.urlUpdateStrategy&&!le.extras.skipLocationChange){const $e=this.urlHandlingStrategy.merge(le.finalUrl,le.initialUrl);this.setBrowserUrl(le.targetBrowserUrl??$e,le)}}else k instanceof pr?(this.currentUrlTree=le.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(le.finalUrl,le.initialUrl),this.routerState=le.targetRouterState,"deferred"===this.urlUpdateStrategy&&!le.extras.skipLocationChange&&this.setBrowserUrl(le.targetBrowserUrl??this.rawUrlTree,le)):k instanceof En&&(k.code===hn.GuardRejected||k.code===hn.NoDataFromResolver)?this.restoreHistory(le):k instanceof oi?this.restoreHistory(le,!0):k instanceof mn&&(this.lastSuccessfulId=k.id,this.currentPageId=this.browserPageId)}setBrowserUrl(k,le){const $e=k instanceof et?this.urlSerializer.serialize(k):k;if(this.location.isCurrentPathEqualTo($e)||le.extras.replaceUrl){const kt={...le.extras.state,...this.generateNgRouterState(le.id,this.browserPageId)};this.location.replaceState($e,"",kt)}else{const mt={...le.extras.state,...this.generateNgRouterState(le.id,this.browserPageId+1)};this.location.go($e,"",mt)}}restoreHistory(k,le=!1){if("computed"===this.canceledNavigationResolution){const mt=this.currentPageId-this.browserPageId;0!==mt?this.location.historyGo(mt):this.currentUrlTree===k.finalUrl&&0===mt&&(this.resetState(k),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(le&&this.resetState(k),this.resetUrlToCurrentUrlTree())}resetState(k){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,k.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(k,le){return"computed"===this.canceledNavigationResolution?{navigationId:k,\u0275routerPageId:le}:{navigationId:k}}static#e=this.\u0275fac=(()=>{let k;return function($e){return(k||(k=t.xGo(P)))($e||P)}})();static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();var yo=function(P){return P[P.COMPLETE=0]="COMPLETE",P[P.FAILED=1]="FAILED",P[P.REDIRECTING=2]="REDIRECTING",P}(yo||{});function Gi(P,ae){P.events.pipe((0,we.p)(k=>k instanceof mn||k instanceof En||k instanceof oi||k instanceof Kn),(0,J.T)(k=>k instanceof mn||k instanceof Kn?yo.COMPLETE:k instanceof En&&(k.code===hn.Redirect||k.code===hn.SupersededByNewNavigation)?yo.REDIRECTING:yo.FAILED),(0,we.p)(k=>k!==yo.REDIRECTING),(0,Oe.s)(1)).subscribe(()=>{ae()})}function To(P){throw P}const Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wi=(()=>{class P{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,t.WQX)(t.H3F),this.stateManager=(0,t.WQX)(Pn),this.options=(0,t.WQX)(pa,{optional:!0})||{},this.pendingTasks=(0,t.WQX)(t.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,t.WQX)(it),this.urlSerializer=(0,t.WQX)(kn),this.location=(0,t.WQX)(ne.aZ),this.urlHandlingStrategy=(0,t.WQX)(Go),this._events=new V.B,this.errorHandler=this.options.errorHandler||To,this.navigated=!1,this.routeReuseStrategy=(0,t.WQX)(Ge),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,t.WQX)(Is,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,t.WQX)(eo,{optional:!0}),this.eventsSubscription=new x.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:k=>{this.console.warn(k)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const k=this.navigationTransitions.events.subscribe(le=>{try{const $e=this.navigationTransitions.currentTransition,mt=this.navigationTransitions.currentNavigation;if(null!==$e&&null!==mt)if(this.stateManager.handleRouterEvent(le,mt),le instanceof En&&le.code!==hn.Redirect&&le.code!==hn.SupersededByNewNavigation)this.navigated=!0;else if(le instanceof mn)this.navigated=!0;else if(le instanceof fo){const kt=le.navigationBehaviorOptions,yn=this.urlHandlingStrategy.merge(le.url,$e.currentRawUrl),ln={browserUrl:$e.extras.browserUrl,info:$e.extras.info,skipLocationChange:$e.extras.skipLocationChange,replaceUrl:$e.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Te($e.source),...kt};this.scheduleNavigation(yn,rr,null,ln,{resolve:$e.resolve,reject:$e.reject,promise:$e.promise})}(function Qr(P){return!(P instanceof pr||P instanceof fo)})(le)&&this._events.next(le)}catch($e){this.navigationTransitions.transitionAbortSubject.next($e)}});this.eventsSubscription.add(k)}resetRootComponentType(k){this.routerState.root.component=k,this.navigationTransitions.rootComponentType=k}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),rr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((k,le)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(k,"popstate",le)},0)})}navigateToSyncWithBrowser(k,le,$e){const mt={replaceUrl:!0},kt=$e?.navigationId?$e:null;if($e){const ln={...$e};delete ln.navigationId,delete ln.\u0275routerPageId,0!==Object.keys(ln).length&&(mt.state=ln)}const yn=this.parseUrl(k);this.scheduleNavigation(yn,le,kt,mt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(k){this.config=k.map(Gc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(k,le={}){const{relativeTo:$e,queryParams:mt,fragment:kt,queryParamsHandling:yn,preserveFragment:ln}=le,si=ln?this.currentUrlTree.fragment:kt;let Ai,Fi=null;switch(yn){case"merge":Fi={...this.currentUrlTree.queryParams,...mt};break;case"preserve":Fi=this.currentUrlTree.queryParams;break;default:Fi=mt||null}null!==Fi&&(Fi=this.removeEmptyProps(Fi));try{Ai=ve($e?$e.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof k[0]||"/"!==k[0][0])&&(k=[]),Ai=this.currentUrlTree.root}return K(Ai,k,Fi,si??null)}navigateByUrl(k,le={skipLocationChange:!1}){const $e=N(k)?k:this.parseUrl(k),mt=this.urlHandlingStrategy.merge($e,this.rawUrlTree);return this.scheduleNavigation(mt,rr,null,le)}navigate(k,le={skipLocationChange:!1}){return function Po(P){for(let ae=0;ae(null!=mt&&(le[$e]=mt),le),{})}scheduleNavigation(k,le,$e,mt,kt){if(this.disposed)return Promise.resolve(!1);let yn,ln,si;kt?(yn=kt.resolve,ln=kt.reject,si=kt.promise):si=new Promise((Ai,Ro)=>{yn=Ai,ln=Ro});const Fi=this.pendingTasks.add();return Gi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Fi))}),this.navigationTransitions.handleNavigationRequest({source:le,restoredState:$e,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:k,extras:mt,resolve:yn,reject:ln,promise:si,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),si.catch(Ai=>Promise.reject(Ai))}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Rr=(()=>{class P{constructor(k,le,$e,mt,kt,yn){this.router=k,this.route=le,this.tabIndexAttribute=$e,this.renderer=mt,this.el=kt,this.locationStrategy=yn,this.href=null,this.onChanges=new V.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const ln=kt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ln||"area"===ln,this.isAnchorElement?this.subscription=k.events.subscribe(si=>{si instanceof mn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(k){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",k)}ngOnChanges(k){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(k){null==k?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=N(k)||Array.isArray(k)?k:[k],this.setTabIndexIfNotOnNativeEl("0"))}onClick(k,le,$e,mt,kt){const yn=this.urlTree;return!!(null===yn||this.isAnchorElement&&(0!==k||le||$e||mt||kt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(yn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const k=this.urlTree;this.href=null!==k&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(k)):null;const le=null===this.href?null:(0,t.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",le)}applyAttributeValue(k,le){const $e=this.renderer,mt=this.el.nativeElement;null!==le?$e.setAttribute(mt,k,le):$e.removeAttribute(mt,k)}get urlTree(){return null===this.routerLinkInput?null:N(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(le){return new(le||P)(t.rXU(Wi),t.rXU(wn),t.kS0("tabindex"),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(ne.hb))};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(le,$e){1&le&&t.bIt("click",function(kt){return $e.onClick(kt.button,kt.ctrlKey,kt.shiftKey,kt.altKey,kt.metaKey)}),2&le&&t.BMQ("target",$e.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",t.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",t.L39],replaceUrl:[2,"replaceUrl","replaceUrl",t.L39],routerLink:"routerLink"},standalone:!0,features:[t.GFd,t.OA$]})}return P})(),ws=(()=>{class P{get isActive(){return this._isActive}constructor(k,le,$e,mt,kt){this.router=k,this.element=le,this.renderer=$e,this.cdr=mt,this.link=kt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.bkB,this.routerEventsSubscription=k.events.subscribe(yn=>{yn instanceof mn&&this.update()})}ngAfterContentInit(){(0,e.of)(this.links.changes,(0,e.of)(null)).pipe((0,xt.U)()).subscribe(k=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const k=[...this.links.toArray(),this.link].filter(le=>!!le).map(le=>le.onChanges);this.linkInputChangesSubscription=(0,g.H)(k).pipe((0,xt.U)()).subscribe(le=>{this._isActive!==this.isLinkActive(this.router)(le)&&this.update()})}set routerLinkActive(k){const le=Array.isArray(k)?k:k.split(" ");this.classes=le.filter($e=>!!$e)}ngOnChanges(k){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const k=this.hasActiveLinks();this.classes.forEach(le=>{k?this.renderer.addClass(this.element.nativeElement,le):this.renderer.removeClass(this.element.nativeElement,le)}),k&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==k&&(this._isActive=k,this.cdr.markForCheck(),this.isActiveChange.emit(k))})}isLinkActive(k){const le=function ms(P){return!!P.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return $e=>{const mt=$e.urlTree;return!!mt&&k.isActive(mt,le)}}hasActiveLinks(){const k=this.isLinkActive(this.router);return this.link&&k(this.link)||this.links.some(k)}static#e=this.\u0275fac=function(le){return new(le||P)(t.rXU(Wi),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(Rr,8))};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["","routerLinkActive",""]],contentQueries:function(le,$e,mt){if(1&le&&t.wni(mt,Rr,5),2&le){let kt;t.mGM(kt=t.lsd())&&($e.links=kt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.OA$]})}return P})();class Br{}let Ec=(()=>{class P{constructor(k,le,$e,mt,kt){this.router=k,this.injector=$e,this.preloadingStrategy=mt,this.loader=kt}setUpPreloading(){this.subscription=this.router.events.pipe((0,we.p)(k=>k instanceof mn),(0,H.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(k,le){const $e=[];for(const mt of le){mt.providers&&!mt._injector&&(mt._injector=(0,t.Ol2)(mt.providers,k,`Route: ${mt.path}`));const kt=mt._injector??k,yn=mt._loadedInjector??kt;(mt.loadChildren&&!mt._loadedRoutes&&void 0===mt.canLoad||mt.loadComponent&&!mt._loadedComponent)&&$e.push(this.preloadConfig(kt,mt)),(mt.children||mt._loadedRoutes)&&$e.push(this.processRoutes(yn,mt.children??mt._loadedRoutes))}return(0,g.H)($e).pipe((0,xt.U)())}preloadConfig(k,le){return this.preloadingStrategy.preload(le,()=>{let $e;$e=le.loadChildren&&void 0===le.canLoad?this.loader.loadChildren(k,le):(0,e.of)(null);const mt=$e.pipe((0,me.Z)(kt=>null===kt?(0,e.of)(void 0):(le._loadedRoutes=kt.routes,le._loadedInjector=kt.injector,this.processRoutes(kt.injector??k,kt.routes))));if(le.loadComponent&&!le._loadedComponent){const kt=this.loader.loadComponent(le);return(0,g.H)([mt,kt]).pipe((0,xt.U)())}return mt})}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(Wi),t.KVO(t.Ql9),t.KVO(t.uvJ),t.KVO(Br),t.KVO(Ks))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const xs=new t.nKC("");let Tc=(()=>{class P{constructor(k,le,$e,mt,kt={}){this.urlSerializer=k,this.transitions=le,this.viewportScroller=$e,this.zone=mt,this.options=kt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},kt.scrollPositionRestoration||="disabled",kt.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(k=>{k instanceof $t?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=k.navigationTrigger,this.restoredId=k.restoredState?k.restoredState.navigationId:0):k instanceof mn?(this.lastId=k.id,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.urlAfterRedirects).fragment)):k instanceof Kn&&k.code===Yn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(k=>{k instanceof Zo&&(k.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(k.position):k.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(k.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(k,le){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Zo(k,"popstate"===this.lastSource?this.store[this.restoredId]:null,le))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(le){t.QTQ()};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})();function no(P,ae){return{\u0275kind:P,\u0275providers:ae}}function Yc(){const P=(0,t.WQX)(t.zZn);return ae=>{const k=P.get(t.o8S);if(ae!==k.components[0])return;const le=P.get(Wi),$e=P.get(Yu);1===P.get(Or)&&le.initialNavigation(),P.get(zc,null,t.$GK.Optional)?.setUpPreloading(),P.get(xs,null,t.$GK.Optional)?.init(),le.resetRootComponentType(k.componentTypes[0]),$e.closed||($e.next(),$e.complete(),$e.unsubscribe())}}const Yu=new t.nKC("",{factory:()=>new V.B}),Or=new t.nKC("",{providedIn:"root",factory:()=>1}),zc=new t.nKC("");function Jr(P){return no(0,[{provide:zc,useExisting:Ec},{provide:Br,useExisting:P}])}function ma(P){return no(9,[{provide:na,useValue:za},{provide:fs,useValue:{skipNextTransition:!!P?.skipInitialTransition,...P}}])}const Fs=new t.nKC("ROUTER_FORROOT_GUARD"),As=[ne.aZ,{provide:kn,useClass:Vn},Wi,Ve,{provide:wn,useFactory:function ns(P){return P.routerState.root},deps:[Wi]},Ks,[]];let su=(()=>{class P{constructor(k){}static forRoot(k,le){return{ngModule:P,providers:[As,[],{provide:Is,multi:!0,useValue:k},{provide:Fs,useFactory:Sa,deps:[[Wi,new t.Xx1,new t.kdw]]},{provide:pa,useValue:le||{}},le?.useHash?{provide:ne.hb,useClass:ne.fw}:{provide:ne.hb,useClass:ne.Sm},{provide:xs,useFactory:()=>{const P=(0,t.WQX)(ne.Xr),ae=(0,t.WQX)(t.SKi),k=(0,t.WQX)(pa),le=(0,t.WQX)(it),$e=(0,t.WQX)(kn);return k.scrollOffset&&P.setOffset(k.scrollOffset),new Tc($e,le,P,ae,k)}},le?.preloadingStrategy?Jr(le.preloadingStrategy).\u0275providers:[],le?.initialNavigation?Qc(le):[],le?.bindToComponentInputs?no(8,[ao,{provide:eo,useExisting:ao}]).\u0275providers:[],le?.enableViewTransitions?ma().\u0275providers:[],[{provide:Mc,useFactory:Yc},{provide:t.iLQ,multi:!0,useExisting:Mc}]]}}static forChild(k){return{ngModule:P,providers:[{provide:Is,multi:!0,useValue:k}]}}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(Fs,8))};static#t=this.\u0275mod=t.$C({type:P});static#n=this.\u0275inj=t.G2t({})}return P})();function Sa(P){return"guarded"}function Qc(P){return["disabled"===P.initialNavigation?no(3,[{provide:t.hnV,multi:!0,useFactory:()=>{const ae=(0,t.WQX)(Wi);return()=>{ae.setUpLocationChangeListener()}}},{provide:Or,useValue:2}]).\u0275providers:[],"enabledBlocking"===P.initialNavigation?no(2,[{provide:Or,useValue:0},{provide:t.hnV,multi:!0,deps:[t.zZn],useFactory:ae=>{const k=ae.get(ne.hj,Promise.resolve());return()=>k.then(()=>new Promise(le=>{const $e=ae.get(Wi),mt=ae.get(Yu);Gi($e,()=>{le(!0)}),ae.get(it).afterPreactivation=()=>(le(!0),mt.closed?(0,e.of)(void 0):mt),$e.initialNavigation()}))}}]).\u0275providers:[]]}const Mc=new t.nKC("")},8167:(Rt,De,c)=>{c.d(De,{$ix:()=>Ps,DT4:()=>Ti,DXx:()=>Ni,Dnx:()=>kc,FmF:()=>on,HCk:()=>Mi,HSk:()=>Sp,Hb1:()=>N1,Hcp:()=>ro,KKJ:()=>gc,MTO:()=>Kr,MxV:()=>qa,N$r:()=>Gn,Nk1:()=>Xr,O9N:()=>ao,OgO:()=>ds,PR6:()=>$l,QQ_:()=>gs,R9X:()=>ys,RR4:()=>wp,SFT:()=>K,U1s:()=>fs,U97:()=>Ri,XEL:()=>pn,XTv:()=>b0,XkU:()=>Vt,Y6F:()=>da,Z1x:()=>ze,a5L:()=>B4,aB7:()=>jn,cuh:()=>au,drJ:()=>_c,eNq:()=>kp,eiI:()=>hc,ekG:()=>oa,f0d:()=>yi,gA6:()=>al,gZ6:()=>Np,hl9:()=>Pc,iOx:()=>Ft,j4r:()=>oo,kGj:()=>Vu,lWl:()=>Cr,qZ3:()=>o0,rHI:()=>ve,rXM:()=>Ba,wx$:()=>cp,zt9:()=>yt});const Vt={name:"bars",theme:"outline",icon:''},ze={name:"calendar",theme:"outline",icon:''},ve={name:"caret-down",theme:"fill",icon:''},K={name:"caret-down",theme:"outline",icon:''},Ft={name:"caret-up",theme:"fill",icon:''},on={name:"caret-up",theme:"outline",icon:''},jn={name:"check-circle",theme:"fill",icon:''},Gn={name:"check-circle",theme:"outline",icon:''},ro={name:"close-circle",theme:"outline",icon:''},pn={name:"close",theme:"outline",icon:''},Mi={name:"check",theme:"outline",icon:''},Ni={name:"clock-circle",theme:"outline",icon:''},ao={name:"copy",theme:"outline",icon:''},ds={name:"delete",theme:"outline",icon:''},yi={name:"dashboard",theme:"outline",icon:''},Cr={name:"double-left",theme:"outline",icon:''},gc={name:"double-right",theme:"outline",icon:''},Ba={name:"down",theme:"outline",icon:''},da={name:"close-circle",theme:"fill",icon:''},Kr={name:"ellipsis",theme:"outline",icon:''},Xr={name:"edit",theme:"outline",icon:''},_c={name:"exclamation-circle",theme:"fill",icon:''},fs={name:"eye",theme:"outline",icon:''},gs={name:"file",theme:"fill",icon:''},Ps={name:"file",theme:"outline",icon:''},au={name:"filter",theme:"fill",icon:''},ys={name:"form",theme:"outline",icon:''},Ri={name:"info-circle",theme:"fill",icon:''},oa={name:"exclamation-circle",theme:"outline",icon:''},Ti={name:"info-circle",theme:"outline",icon:''},al={name:"left",theme:"outline",icon:''},Pc={name:"loading",theme:"outline",icon:''},$l={name:"menu-fold",theme:"outline",icon:''},qa={name:"menu-unfold",theme:"outline",icon:''},oo={name:"paper-clip",theme:"outline",icon:''},kc={name:"question-circle",theme:"outline",icon:''},Vu={name:"rotate-right",theme:"outline",icon:''},N1={name:"right",theme:"outline",icon:''},yt={name:"search",theme:"outline",icon:''},hc={name:"star",theme:"fill",icon:''},cp={name:"swap",theme:"outline",icon:''},B4={name:"swap-right",theme:"outline",icon:''},o0={name:"up",theme:"outline",icon:''},Sp={name:"rotate-left",theme:"outline",icon:''},wp={name:"vertical-align-top",theme:"outline",icon:''},b0={name:"zoom-in",theme:"outline",icon:''},Np={name:"zoom-out",theme:"outline",icon:''},kp={name:"upload",theme:"outline",icon:''}},4141:(Rt,De,c)=>{c.d(De,{MS:()=>G,UT:()=>L,WR:()=>M,bl:()=>r});var t=c(2081),r=new t.DX,g=new WeakMap;function e(A){var w=g.get(A);return w||g.set(A,w={vars:new Set,dep:(0,t.yN)()}),w}function M(A){e(A).vars.forEach(function(w){return w.forgetCache(A)})}function G(A){e(A).vars.forEach(function(w){return w.attachCache(A)})}function L(A){var w=new Set,I=new Set,F=function(V){if(arguments.length>0){if(A!==V){A=V,w.forEach(function(J){e(J).dep.dirty(F),function B(A){A.broadcastWatches&&A.broadcastWatches()}(J)});var x=Array.from(I);I.clear(),x.forEach(function(J){return J(A)})}}else{var ne=r.getValue();ne&&(X(ne),e(ne).dep(F))}return A};F.onNextChange=function(V){return I.add(V),function(){I.delete(V)}};var X=F.attachCache=function(V){return w.add(V),e(V).vars.add(F),F};return F.forgetCache=function(V){return w.delete(V)},F}},9471:(Rt,De,c)=>{c.d(De,{a:()=>L});var t=c(4626),r=c(9860),g=c(4229),e=c(6108),M=c(4183),G=c(1367);function L(I,F,X,V){var x=F.data,ne=(0,t.Tt)(F,["data"]),J=X.data,be=(0,t.Tt)(X,["data"]);return(0,r.A)(ne,be)&&B((0,g.Vn)(I).selectionSet,x,J,{fragmentMap:(0,e.JG)((0,g.zK)(I)),variables:V})}function B(I,F,X,V){if(F===X)return!0;var x=new Set;return I.selections.every(function(ne){if(x.has(ne)||(x.add(ne),!(0,M.MS)(ne,V.variables))||A(ne))return!0;if((0,G.dt)(ne)){var J=(0,G.ue)(ne),be=F&&F[J],Oe=X&&X[J],he=ne.selectionSet;if(!he)return(0,r.A)(be,Oe);var we=Array.isArray(be),me=Array.isArray(Oe);if(we!==me)return!1;if(we&&me){var de=be.length;if(Oe.length!==de)return!1;for(var H=0;H{c.d(De,{C:()=>I});var t=c(1404),r=c(7994),g=c(4626),M=c(4229);function B(F,X){return X?X(F):r.c.of()}function A(F){return"function"==typeof F?new I(F):F}function w(F){return F.request.length<=1}var I=function(){function F(X){X&&(this.request=X)}return F.empty=function(){return new F(function(){return r.c.of()})},F.from=function(X){return 0===X.length?F.empty():X.map(A).reduce(function(V,x){return V.concat(x)})},F.split=function(X,V,x){var be,ne=A(V),J=A(x||new F(B));return be=w(ne)&&w(J)?new F(function(Oe){return X(Oe)?ne.request(Oe)||r.c.of():J.request(Oe)||r.c.of()}):new F(function(Oe,he){return X(Oe)?ne.request(Oe,he)||r.c.of():J.request(Oe,he)||r.c.of()}),Object.assign(be,{left:ne,right:J})},F.execute=function(X,V){return X.request(function e(F,X){var V=(0,g.Cl)({},F);return Object.defineProperty(X,"setContext",{enumerable:!1,value:function(J){V=(0,g.Cl)((0,g.Cl)({},V),"function"==typeof J?J(V):J)}}),Object.defineProperty(X,"getContext",{enumerable:!1,value:function(){return(0,g.Cl)({},V)}}),X}(V.context,function G(F){var X={variables:F.variables||{},extensions:F.extensions||{},operationName:F.operationName,query:F.query};return X.operationName||(X.operationName="string"!=typeof X.query?(0,M.n4)(X.query)||void 0:""),X}(function L(F){for(var X=["query","operationName","variables","extensions","context"],V=0,x=Object.keys(F);V{c.d(De,{A:()=>M,V:()=>G});var t=c(9055),r=c(6476),g=new WeakSet;function e(L){L.size<=(L.max||-1)||g.has(L)||(g.add(L),setTimeout(function(){L.clean(),g.delete(L)},100))}var M=function(L,B){var A=new t.l(L,B);return A.set=function(w,I){var F=t.l.prototype.set.call(this,w,I);return e(this),F},A},G=function(L,B){var A=new r.C(L,B);return A.set=function(w,I){var F=r.C.prototype.set.call(this,w,I);return e(this),F},A}},8782:(Rt,De,c)=>{c.d(De,{D_:()=>e,cM:()=>G,ep:()=>M,tQ:()=>L});var t=c(4626),r=c(2151),g={};function e(be,Oe){g[be]=Oe}var M=!1!==globalThis.__DEV__?function A(){var be,Oe,he,we,me;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(Oe){var he=Oe[0];return[he,r.v[he]||Oe[1]]})),sizes:(0,t.Cl)({print:null===(be=g.print)||void 0===be?void 0:be.call(g),parser:null===(Oe=g.parser)||void 0===Oe?void 0:Oe.call(g),canonicalStringify:null===(he=g.canonicalStringify)||void 0===he?void 0:he.call(g),links:J(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:x(this.queryManager.documentTransform)}},null===(me=(we=this.cache).getMemoryInternals)||void 0===me?void 0:me.call(we))}}:void 0,G=!1!==globalThis.__DEV__?function I(){var be=this.config.fragments;return(0,t.Cl)((0,t.Cl)({},w.apply(this)),{addTypenameDocumentTransform:x(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:X(this.storeReader.executeSelectionSet),executeSubSelectedArray:X(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:X(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:X(be?.findFragmentSpreads),lookup:X(be?.lookup),transform:X(be?.transform)}})}:void 0,L=!1!==globalThis.__DEV__?w:void 0;function w(){return{cache:{fragmentQueryDocuments:X(this.getFragmentDoc)}}}function X(be){return function F(be){return!!be&&"dirtyKey"in be}(be)?be.size:void 0}function V(be){return null!=be}function x(be){return ne(be).map(function(Oe){return{cache:Oe}})}function ne(be){return be?(0,t.fX)((0,t.fX)([X(be?.performWork)],ne(be?.left),!0),ne(be?.right),!0).filter(V):[]}function J(be){var Oe;return be?(0,t.fX)((0,t.fX)([null===(Oe=be?.getMemoryInternals)||void 0===Oe?void 0:Oe.call(be)],J(be?.left),!0),J(be?.right),!0).filter(V):[]}},2151:(Rt,De,c)=>{c.d(De,{v:()=>e});var t=c(4626),r=c(1404),g=Symbol.for("apollo.cacheSize"),e=(0,t.Cl)({},r.Sf[g])},7715:(Rt,De,c)=>{c.d(De,{E:()=>r,c:()=>t});var t=Array.isArray;function r(g){return Array.isArray(g)&&g.length>0}},6500:(Rt,De,c)=>{c.d(De,{En:()=>e,et:()=>g,ol:()=>M,uJ:()=>G});var t=c(1404),r="ReactNative"==(0,t.no)(function(){return navigator.product}),g="function"==typeof WeakMap&&!(r&&!global.HermesInternal),e="function"==typeof WeakSet,M="function"==typeof Symbol&&"function"==typeof Symbol.for,G=M&&Symbol.asyncIterator;(0,t.no)(function(){return window.document.createElement}),(0,t.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},2130:(Rt,De,c)=>{c.d(De,{M:()=>e});var M,t=c(2170),r=c(2151),g=c(8782),e=Object.assign(function(A){return JSON.stringify(A,G)},{reset:function(){M=new t.V(r.v.canonicalStringify||1e3)}});function G(B,A){if(A&&"object"==typeof A){var w=Object.getPrototypeOf(A);if(w===Object.prototype||null===w){var I=Object.keys(A);if(I.every(L))return A;var F=JSON.stringify(I),X=M.get(F);if(!X){I.sort();var V=JSON.stringify(I);X=M.get(V)||I,M.set(F,X),M.set(V,X)}var x=Object.create(w);return X.forEach(function(ne){x[ne]=A[ne]}),x}}return A}function L(B,A,w){return 0===A||w[A-1]<=B}!1!==globalThis.__DEV__&&(0,g.D_)("canonicalStringify",function(){return M.size}),e.reset()},4246:(Rt,De,c)=>{c.d(De,{m:()=>r});var t=Object.prototype.toString;function r(e){return g(e)}function g(e,M){switch(t.call(e)){case"[object Array]":if((M=M||new Map).has(e))return M.get(e);var G=e.slice(0);return M.set(e,G),G.forEach(function(B,A){G[A]=g(B,M)}),G;case"[object Object]":if((M=M||new Map).has(e))return M.get(e);var L=Object.create(Object.getPrototypeOf(e));return M.set(e,L),Object.keys(e).forEach(function(B){L[B]=g(e[B],M)}),L;default:return e}}},120:(Rt,De,c)=>{function t(){for(var r=[],g=0;gt})},9977:(Rt,De,c)=>{c.d(De,{v:()=>r});var t=new Map;function r(g){var e=t.get(g)||1;return t.set(g,e+1),"".concat(g,":").concat(e,":").concat(Math.random().toString(36).slice(2))}},1115:(Rt,De,c)=>{c.d(De,{D9:()=>e,IM:()=>M,ZI:()=>L});var t=c(4626),r=c(1181),g=Object.prototype.hasOwnProperty;function e(){for(var B=[],A=0;A1)for(var I=new L,F=1;F{function t(g){return null!==g&&"object"==typeof g}c.d(De,{U:()=>t})},1687:(Rt,De,c)=>{c.d(De,{p:()=>r});var t=c(9977);function r(g,e){void 0===e&&(e=0);var M=(0,t.v)("stringifyForDisplay");return JSON.stringify(g,function(G,L){return void 0===L?M:L},e).split(JSON.stringify(M)).join("")}},1404:(Rt,De,c)=>{c.d(De,{Sf:()=>st,V1:()=>Tt,no:()=>xt,vA:()=>en});var t=function(bt,At){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Et,Ot){Et.__proto__=Ot}||function(Et,Ot){for(var Yt in Ot)Object.prototype.hasOwnProperty.call(Ot,Yt)&&(Et[Yt]=Ot[Yt])})(bt,At)},E="Invariant Violation",S=Object.setPrototypeOf,R=void 0===S?function(bt,At){return bt.__proto__=At,bt}:S,Y=function(bt){function At(Et){void 0===Et&&(Et=E);var Ot=bt.call(this,"number"==typeof Et?E+": "+Et+" (see https://github.com/apollographql/invariant-packages)":Et)||this;return Ot.framesToPop=1,Ot.name=E,R(Ot,At.prototype),Ot}return function r(bt,At){if("function"!=typeof At&&null!==At)throw new TypeError("Class extends value "+String(At)+" is not a constructor or null");function Et(){this.constructor=bt}t(bt,At),bt.prototype=null===At?Object.create(At):(Et.prototype=At.prototype,new Et)}(At,bt),At}(Error);function se(bt,At){if(!bt)throw new Y(At)}var bt,Be=["debug","log","warn","error","silent"],Pt=Be.indexOf("log");function vt(bt){return function(){if(Be.indexOf(bt)>=Pt)return(console[bt]||console.log).apply(console,arguments)}}(bt=se||(se={})).debug=vt("debug"),bt.log=vt("log"),bt.warn=vt("warn"),bt.error=vt("error");var zt=c(560);function xt(bt){try{return bt()}catch{}}const st=xt(function(){return globalThis})||xt(function(){return window})||xt(function(){return self})||xt(function(){return global})||xt(function(){return xt.constructor("return this")()});var Ct=c(1687);function It(bt){return function(At){for(var Et=[],Ot=1;Ot"}}function fn(bt,At){if(void 0===At&&(At=[]),bt)return st[jt]&&st[jt](bt,At.map(Vt))}function Hn(bt,At){if(void 0===At&&(At=[]),bt)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:zt.r,message:bt,args:At.map(Vt)})))}globalThis},8926:(Rt,De,c)=>{c.d(De,{c:()=>A});var t=c(4420),r=c(6500),g=c(4229),e=c(1404),M=c(9055),G=c(2081),L=c(2151);function B(w){return w}var A=function(){function w(I,F){void 0===F&&(F=Object.create(null)),this.resultCache=r.En?new WeakSet:new Set,this.transform=I,F.getCacheKey&&(this.getCacheKey=F.getCacheKey),this.cached=!1!==F.cache,this.resetCache()}return w.prototype.getCacheKey=function(I){return[I]},w.identity=function(){return new w(B,{cache:!1})},w.split=function(I,F,X){return void 0===X&&(X=w.identity()),Object.assign(new w(function(V){return(I(V)?F:X).transformDocument(V)},{cache:!1}),{left:F,right:X})},w.prototype.resetCache=function(){var I=this;if(this.cached){var F=new t.b(r.et);this.performWork=(0,G.LV)(w.prototype.performWork.bind(this),{makeCacheKey:function(X){var V=I.getCacheKey(X);if(V)return(0,e.V1)(Array.isArray(V),68),F.lookupArray(V)},max:L.v["documentTransform.cache"],cache:M.l})}},w.prototype.performWork=function(I){return(0,g.sw)(I),this.transform(I)},w.prototype.transformDocument=function(I){if(this.resultCache.has(I))return I;var F=this.performWork(I);return this.resultCache.add(F),F},w.prototype.concat=function(I){var F=this;return Object.assign(new w(function(X){return I.transformDocument(F.transformDocument(X))},{cache:!1}),{left:this,right:I})},w}()},4183:(Rt,De,c)=>{c.d(De,{MS:()=>g,d8:()=>L,f2:()=>B});var t=c(1404),r=c(8540);function g(I,F){var X=I.directives;return!X||!X.length||function w(I){var F=[];return I&&I.length&&I.forEach(function(X){if(function A(I){var F=I.name.value;return"skip"===F||"include"===F}(X)){var V=X.arguments,x=X.name.value;(0,t.V1)(V&&1===V.length,70,x);var ne=V[0];(0,t.V1)(ne.name&&"if"===ne.name.value,71,x);var J=ne.value;(0,t.V1)(J&&("Variable"===J.kind||"BooleanValue"===J.kind),72,x),F.push({directive:X,ifArgument:ne})}}),F}(X).every(function(V){var x=V.directive,ne=V.ifArgument,J=!1;return"Variable"===ne.value.kind?(0,t.V1)(void 0!==(J=F&&F[ne.value.name.value]),69,x.name.value):J=ne.value.value,"skip"===x.name.value?!J:J})}function L(I,F,X){var V=new Set(I),x=V.size;return(0,r.YR)(F,{Directive:function(ne){if(V.delete(ne.name.value)&&(!X||!V.size))return r.sP}}),X?!V.size:V.size{c.d(De,{HQ:()=>M,JG:()=>e,ct:()=>g});var t=c(4626),r=c(1404);function g(G,L){var B=L,A=[];return G.definitions.forEach(function(I){if("OperationDefinition"===I.kind)throw(0,r.vA)(73,I.operation,I.name?" named '".concat(I.name.value,"'"):"");"FragmentDefinition"===I.kind&&A.push(I)}),typeof B>"u"&&((0,r.V1)(1===A.length,74,A.length),B=A[0].name.value),(0,t.Cl)((0,t.Cl)({},G),{definitions:(0,t.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:B}}]}}],G.definitions,!0)})}function e(G){void 0===G&&(G=[]);var L={};return G.forEach(function(B){L[B.name.value]=B}),L}function M(G,L){switch(G.kind){case"InlineFragment":return G;case"FragmentSpread":var B=G.name.value;if("function"==typeof L)return L(B);var A=L&&L[B];return(0,r.V1)(A,75,B),A||null;default:return null}}},4229:(Rt,De,c)=>{c.d(De,{AT:()=>L,E4:()=>B,Vn:()=>A,Vu:()=>e,n4:()=>M,sw:()=>g,wY:()=>w,zK:()=>G});var t=c(1404),r=c(1367);function g(I){(0,t.V1)(I&&"Document"===I.kind,76);var F=I.definitions.filter(function(X){return"FragmentDefinition"!==X.kind}).map(function(X){if("OperationDefinition"!==X.kind)throw(0,t.vA)(77,X.kind);return X});return(0,t.V1)(F.length<=1,78,F.length),I}function e(I){return g(I),I.definitions.filter(function(F){return"OperationDefinition"===F.kind})[0]}function M(I){return I.definitions.filter(function(F){return"OperationDefinition"===F.kind&&!!F.name}).map(function(F){return F.name.value})[0]||null}function G(I){return I.definitions.filter(function(F){return"FragmentDefinition"===F.kind})}function L(I){var F=e(I);return(0,t.V1)(F&&"query"===F.operation,79),F}function B(I){(0,t.V1)("Document"===I.kind,80),(0,t.V1)(I.definitions.length<=1,81);var F=I.definitions[0];return(0,t.V1)("FragmentDefinition"===F.kind,82),F}function A(I){g(I);for(var F,X=0,V=I.definitions;X{c.d(De,{y:()=>G});var M,t=c(3246),r=c(2170),g=c(2151),e=c(8782),G=Object.assign(function(L){var B=M.get(L);return B||(B=(0,t.y)(L),M.set(L,B)),B},{reset:function(){M=new r.A(g.v.print||2e3)}});G.reset(),!1!==globalThis.__DEV__&&(0,e.D_)("print",function(){return M?M.size:0})},1367:(Rt,De,c)=>{c.d(De,{A_:()=>G,D$:()=>H,Ii:()=>be,J:()=>J,Kc:()=>L,MB:()=>me,WU:()=>M,dt:()=>z,kd:()=>Z,o5:()=>we,ue:()=>de});var t=c(1404),r=c(1181),g=c(6108),e=c(2130);function M(pe){return{__ref:String(pe)}}function G(pe){return!(!pe||"object"!=typeof pe||"string"!=typeof pe.__ref)}function L(pe){return(0,r.U)(pe)&&"Document"===pe.kind&&Array.isArray(pe.definitions)}function J(pe,E,S,R){if(function w(pe){return"IntValue"===pe.kind}(S)||function I(pe){return"FloatValue"===pe.kind}(S))pe[E.value]=Number(S.value);else if(function A(pe){return"BooleanValue"===pe.kind}(S)||function B(pe){return"StringValue"===pe.kind}(S))pe[E.value]=S.value;else if(function X(pe){return"ObjectValue"===pe.kind}(S)){var Y={};S.fields.map(function(Be){return J(Y,Be.name,Be.value,R)}),pe[E.value]=Y}else if(function F(pe){return"Variable"===pe.kind}(S))pe[E.value]=(R||{})[S.name.value];else if(function V(pe){return"ListValue"===pe.kind}(S))pe[E.value]=S.values.map(function(Be){var Pt={};return J(Pt,E,Be,R),Pt[E.value]});else if(function x(pe){return"EnumValue"===pe.kind}(S))pe[E.value]=S.value;else{if(!function ne(pe){return"NullValue"===pe.kind}(S))throw(0,t.vA)(84,E.value,S.kind);pe[E.value]=null}}function be(pe,E){var S=null;pe.directives&&(S={},pe.directives.forEach(function(Y){S[Y.name.value]={},Y.arguments&&Y.arguments.forEach(function(se){return J(S[Y.name.value],se.name,se.value,E)})}));var R=null;return pe.arguments&&pe.arguments.length&&(R={},pe.arguments.forEach(function(Y){return J(R,Y.name,Y.value,E)})),we(pe.name.value,R,S)}var Oe=["connection","include","skip","client","rest","export","nonreactive"],he=e.M,we=Object.assign(function(pe,E,S){if(E&&S&&S.connection&&S.connection.key){if(S.connection.filter&&S.connection.filter.length>0){var R=S.connection.filter?S.connection.filter:[];R.sort();var Y={};return R.forEach(function(Pt){Y[Pt]=E[Pt]}),"".concat(S.connection.key,"(").concat(he(Y),")")}return S.connection.key}var se=pe;if(E){var Be=he(E);se+="(".concat(Be,")")}return S&&Object.keys(S).forEach(function(Pt){-1===Oe.indexOf(Pt)&&(S[Pt]&&Object.keys(S[Pt]).length?se+="@".concat(Pt,"(").concat(he(S[Pt]),")"):se+="@".concat(Pt))}),se},{setStringify:function(pe){var E=he;return he=pe,E}});function me(pe,E){if(pe.arguments&&pe.arguments.length){var S={};return pe.arguments.forEach(function(R){return J(S,R.name,R.value,E)}),S}return null}function de(pe){return pe.alias?pe.alias.value:pe.name.value}function H(pe,E,S){for(var R,Y=0,se=E.selections;Y{c.d(De,{XY:()=>x,er:()=>H,iz:()=>V,zc:()=>de});var t=c(4626),r=c(1404),g=c(1955),e=c(8540),M=c(4229),G=c(1367),L=c(6108),B=c(7715),A={kind:g.b.FIELD,name:{kind:g.b.NAME,value:"__typename"}};function w(z,Z){return!z||z.selectionSet.selections.every(function(pe){return pe.kind===g.b.FRAGMENT_SPREAD&&w(Z[pe.name.value],Z)})}function I(z){return w((0,M.Vu)(z)||(0,M.E4)(z),(0,L.JG)((0,M.zK)(z)))?null:z}function X(z){var Z=new Map;return function(E){void 0===E&&(E=z);var S=Z.get(E);return S||Z.set(E,S={variables:new Set,fragmentSpreads:new Set}),S}}function V(z,Z){(0,M.sw)(Z);for(var pe=X(""),E=X(""),S=function(It){for(var Tt=0,en=void 0;Tt=0;--Y)Z.definitions[Y].kind===g.b.OPERATION_DEFINITION&&++R;var se=function F(z){var Z=new Map,pe=new Map;return z.forEach(function(E){E&&(E.name?Z.set(E.name,E):E.test&&pe.set(E.test,E))}),function(E){var S=Z.get(E.name.value);return!S&&pe.size&&pe.forEach(function(R,Y){Y(E)&&(S=R)}),S}}(z),Be=function(It){return(0,B.E)(It)&&It.map(se).some(function(Tt){return Tt&&Tt.remove})},Pt=new Map,vt=!1,wt={enter:function(It){if(Be(It.directives))return vt=!0,null}},Le=(0,e.YR)(Z,{Field:wt,InlineFragment:wt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(It,Tt,en,jt,Vt){var fn=S(Vt);fn&&fn.variables.add(It.name.value)}},FragmentSpread:{enter:function(It,Tt,en,jt,Vt){if(Be(It.directives))return vt=!0,null;var fn=S(Vt);fn&&fn.fragmentSpreads.add(It.name.value)}},FragmentDefinition:{enter:function(It,Tt,en,jt){Pt.set(JSON.stringify(jt),It)},leave:function(It,Tt,en,jt){return It===Pt.get(JSON.stringify(jt))?It:R>0&&It.selectionSet.selections.every(function(fn){return fn.kind===g.b.FIELD&&"__typename"===fn.name.value})?(E(It.name.value).removed=!0,vt=!0,null):void 0}},Directive:{leave:function(It){if(se(It))return vt=!0,null}}});if(!vt)return Z;var zt=function(It){return It.transitiveVars||(It.transitiveVars=new Set(It.variables),It.removed||It.fragmentSpreads.forEach(function(Tt){zt(E(Tt)).transitiveVars.forEach(function(en){It.transitiveVars.add(en)})})),It},xt=new Set;Le.definitions.forEach(function(It){It.kind===g.b.OPERATION_DEFINITION?zt(pe(It.name&&It.name.value)).fragmentSpreads.forEach(function(Tt){xt.add(Tt)}):It.kind===g.b.FRAGMENT_DEFINITION&&0===R&&!E(It.name.value).removed&&xt.add(It.name.value)}),xt.forEach(function(It){zt(E(It)).fragmentSpreads.forEach(function(Tt){xt.add(Tt)})});var Ct={enter:function(It){if(function(It){return!(xt.has(It)&&!E(It).removed)}(It.name.value))return null}};return I((0,e.YR)(Le,{FragmentSpread:Ct,FragmentDefinition:Ct,OperationDefinition:{leave:function(It){if(It.variableDefinitions){var Tt=zt(pe(It.name&&It.name.value)).transitiveVars;if(Tt.size{c.d(De,{r:()=>t});var t="3.11.1"},9894:(Rt,De,c)=>{c.d(De,{d:()=>we,s:()=>R});var t=c(1413),r=c(8359),g=c(2806),e=c(983),M=c(3953),G=c(1397),L=c(6977);const B=M.YHP,w=Symbol("__destroy"),I=Symbol("__decoratorApplied");function F(se){return"string"==typeof se?Symbol(`__destroy__${se}`):w}function V(se,Be){se[Be]||(se[Be]=new t.B)}function x(se,Be){se[Be]&&(se[Be].next(),se[Be].complete(),se[Be]=null)}function ne(se){se instanceof r.yU&&se.unsubscribe()}function be(se,Be){return function(){if(se&&se.call(this),x(this,F()),Be.arrayName&&function J(se){Array.isArray(se)&&se.forEach(ne)}(this[Be.arrayName]),Be.checkProperties)for(const Pt in this)Be.blackList?.includes(Pt)||ne(this[Pt])}}function we(se={}){return Be=>{!function A(se){return!!se[B]}(Be)?function Oe(se,Be){se.prototype.ngOnDestroy=be(se.prototype.ngOnDestroy,Be)}(Be,se):function he(se,Be){const Pt=se.\u0275pipe;Pt.onDestroy=be(Pt.onDestroy,Be)}(Be,se),function X(se){se.prototype[I]=!0}(Be)}}const me=7,de=Symbol("CheckerHasBeenSet");function Z(se){const Be=M.JZv.Zone;return Be&&"function"==typeof Be.root?.run?Be.root.run(se):se()}const E=!1;function R(se,Be){return Pt=>{const vt=F(Be);"string"==typeof Be?function S(se,Be,Pt){const vt=se[Be];if(E&&"function"!=typeof vt)throw new Error(`${se.constructor.name} is using untilDestroyed but doesn't implement ${Be}`);V(se,Pt),se[Be]=function(){vt.apply(this,arguments),x(this,Pt),se[Be]=vt}}(se,Be,vt):(E&&function Y(se){const Be=Object.getPrototypeOf(se);if(!(I in Be))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(se),V(se,vt));const wt=se[vt];return E&&function H(se,Be){se[de]||function z(){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)}()||(Z(()=>(0,g.H)(Promise.resolve()).pipe((0,G.Z)(()=>{let Pt;try{Pt=(0,M.xtB)(se)}catch{Pt=null}const vt=Pt?.lView;if(null==vt)return e.w;const wt=vt[me]||(vt[me]=[]),Le=new t.B;return wt.push(function(){Z(()=>{Le.next(),Le.complete()})}),Le}),(0,G.Z)(()=>Promise.resolve())).subscribe(()=>{(Be.observed??Be.observers.length>0)&&console.warn(function pe(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[de]=!0)}(se,wt),Pt.pipe((0,L.Q)(wt))}}},1774:(Rt,De,c)=>{c.d(De,{L9:()=>E,Nj:()=>pe});var t=c(3953),r=c(4402),g=c(4572),e=c(2806),M=c(1985),G=c(2771),L=c(1203),B=c(8359),A=c(3294),w=c(8141),I=c(5558);let X=(()=>{class S{static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275prov=t.jDH({token:S,factory:()=>function F(S){return S instanceof t.SKi}((0,t.WQX)(t.SKi))?new x:(0,t.WQX)(V),providedIn:"root"})}return S})(),V=(()=>{class S extends X{constructor(Y){super(),this.appRef=Y,this.isScheduled=!1}schedule(){this.isScheduled||(this.isScheduled=!0,requestAnimationFrame(()=>{this.appRef.tick(),this.isScheduled=!1}))}static#e=this.\u0275fac=function(se){return new(se||S)(t.KVO(t.o8S))};static#t=this.\u0275prov=t.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();class x extends X{schedule(){}}let ne=(()=>{class S{constructor(Y,se){this.cdRef=Y,this.tickScheduler=se}schedule(){this.cdRef.markForCheck(),this.tickScheduler.schedule()}static#e=this.\u0275fac=function(se){return new(se||S)(t.KVO(t.gRc),t.KVO(X))};static#t=this.\u0275prov=t.jDH({token:S,factory:S.\u0275fac})}return S})();function H(S){const R=function be(S){return R=>S[R.type]?.(R)}(S),Y=new G.m(1);return{nextPotentialObservable(se){Y.next(se)},handlePotentialObservableChanges:()=>Y.pipe((0,A.F)(),function z(){return(0,L.F)((0,I.n)(S=>{const R=function Oe(S){return(0,r.A)(S)?S:function we(S){return function me(S){return!!S&&"object"==typeof S&&!Array.isArray(S)}(S)&&Object.keys(S).length>0&&Object.values(S).every(r.A)}(S)?(0,g.z)(function de(S){return Object.keys(S).reduce((R,Y)=>({...R,[Y]:S[Y].pipe((0,A.F)())}),{})}(S)):function he(S){return"function"==typeof S?.then}(S)?(0,e.H)(S):new M.c(R=>{R.next(S)})}(S);let Y=!0,se=!0;return new M.c(Be=>{const Pt=(0,t.O8t)(()=>R.subscribe({next(vt){Be.next({type:"next",value:vt,reset:Y,synchronous:se}),Y=!1},error(vt){Be.next({type:"error",error:vt,reset:Y,synchronous:se}),Y=!1},complete(){Be.next({type:"complete",reset:Y,synchronous:se}),Y=!1}}));return Y&&(Be.next({type:"suspense",reset:Y,synchronous:!0}),Y=!1),se=!1,Pt})}))}(),(0,A.F)(Z),(0,w.M)(R))}}function Z(S,R){return S.type===R.type&&S.reset===R.reset&&("next"===R.type?S.value===R.value:"error"!==R.type||S.error===R.error)}let pe=(()=>{class S{set ngrxLet(Y){this.renderEventManager.nextPotentialObservable(Y)}constructor(Y,se,Be,Pt){this.mainTemplateRef=Y,this.viewContainerRef=se,this.errorHandler=Be,this.renderScheduler=Pt,this.isMainViewCreated=!1,this.isSuspenseViewCreated=!1,this.viewContext={$implicit:void 0,ngrxLet:void 0,error:void 0,complete:!1},this.renderEventManager=H({suspense:()=>{this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0,this.viewContext.complete=!1,this.renderSuspenseView()},next:vt=>{this.viewContext.$implicit=vt.value,this.viewContext.ngrxLet=vt.value,vt.reset&&(this.viewContext.error=void 0,this.viewContext.complete=!1),this.renderMainView(vt.synchronous)},error:vt=>{this.viewContext.error=vt.error,vt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.complete=!1),this.renderMainView(vt.synchronous),this.errorHandler.handleError(vt.error)},complete:vt=>{this.viewContext.complete=!0,vt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0),this.renderMainView(vt.synchronous)}}),this.subscription=new B.yU}static ngTemplateContextGuard(Y,se){return!0}ngOnInit(){this.subscription.add(this.renderEventManager.handlePotentialObservableChanges().subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}renderMainView(Y){this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!1,this.viewContainerRef.clear()),this.isMainViewCreated||(this.isMainViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.mainTemplateRef,this.viewContext)),Y||this.renderScheduler.schedule()}renderSuspenseView(){this.isMainViewCreated&&(this.isMainViewCreated=!1,this.viewContainerRef.clear()),this.suspenseTemplateRef&&!this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.suspenseTemplateRef))}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(t.zcH),t.rXU(ne))};static#t=this.\u0275dir=t.FsC({type:S,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet",suspenseTemplateRef:[0,"ngrxLetSuspenseTpl","suspenseTemplateRef"]},standalone:!0,features:[t.Jv_([ne])]})}return S})(),E=(()=>{class S{constructor(Y){this.errorHandler=Y,this.renderScheduler=function J(){return new ne((0,t.WQX)(t.gRc),(0,t.WQX)(X))}(),this.renderEventManager=H({suspense:se=>this.setRenderedValue(void 0,se.synchronous),next:se=>this.setRenderedValue(se.value,se.synchronous),error:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous),this.errorHandler.handleError(se.error)},complete:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous)}}),this.subscription=this.renderEventManager.handlePotentialObservableChanges().subscribe()}transform(Y){return this.renderEventManager.nextPotentialObservable(Y),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}setRenderedValue(Y,se){Y!==this.renderedValue&&(this.renderedValue=Y,se||this.renderScheduler.schedule())}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(t.zcH,16))};static#t=this.\u0275pipe=t.EJ8({name:"ngrxPush",type:S,pure:!1,standalone:!0})}return S})()},8524:(Rt,De,c)=>{c.d(De,{Nc:()=>ut,PU:()=>Fe,aF:()=>_e,ac:()=>ie,ch:()=>oe,cm:()=>cn,hL:()=>fn,qy:()=>Ut});var t=c(3953),r=c(9417),g=c(4402),e=c(7673),M=c(7786),G=c(1985),L=c(1413),B=c(3294),A=c(6354),w=c(9172),I=c(152),F=c(5964),X=c(5558),V=c(6697),x=c(8141),ne=c(177),J=c(345);const be=["container"];function Oe(Ye,ue){}const he=["*"];function we(Ye,ue){1&Ye&&t.nrm(0,"formly-field",1),2&Ye&&t.Y8G("field",ue.$implicit)}const me=["fieldComponent"];function H(Ye,ue,te){if(ue.id)return ue.id;let q=ue.type;return!q&&ue.template&&(q="template"),q instanceof t.ZUJ&&(q=q.prototype.constructor.name),[Ye,q,ue.key,te].join("_")}function z(Ye){return!se(Ye.key)&&""!==Ye.key&&(!Array.isArray(Ye.key)||Ye.key.length>0)}function Z(Ye){if(!z(Ye))return[];if(Ye._keyPath?.key!==Ye.key){let ue=[];if("string"==typeof Ye.key){const te=-1===Ye.key.indexOf("[")?Ye.key:Ye.key.replace(/\[(\w+)\]/g,".$1");ue=-1!==te.indexOf(".")?te.split("."):[te]}else ue=Array.isArray(Ye.key)?Ye.key.slice(0):[`${Ye.key}`];st(Ye,"_keyPath",{key:Ye.key,path:ue})}return Ye._keyPath.path.slice(0)}const pe=["required","pattern","minLength","maxLength","min","max"];function E(Ye,ue){let te=Z(Ye);if(0===te.length)return;let q=Ye;for(;q.parent;)q=q.parent,te=[...Z(q),...te];if(void 0===ue&&Ye.resetOnHide){const Xe=te.pop();delete te.reduce((at,St)=>at[St]||{},q.model)[Xe]}else!function S(Ye,ue,te){for(let q=0;q{for(const q in te)se(Ye[q])||Pt(Ye[q])?Ye[q]=xt(te[q]):wt(Ye[q],te[q])&&Y(Ye[q],te[q])}),Ye}function se(Ye){return null==Ye}function Be(Ye){return void 0===Ye}function Pt(Ye){return""===Ye}function vt(Ye){return"function"==typeof Ye}function wt(Ye,ue){return Le(Ye)&&Le(ue)&&Object.getPrototypeOf(Ye)===Object.getPrototypeOf(ue)&&!(Array.isArray(Ye)||Array.isArray(ue))}function Le(Ye){return null!=Ye&&"object"==typeof Ye}function xt(Ye){if(!Le(Ye)||(0,g.A)(Ye)||Ye instanceof t.C4Q||Ye.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(Ye.constructor.name))return Ye;if(Ye instanceof Set)return new Set(Ye);if(Ye instanceof Map)return new Map(Ye);if(Ye instanceof Uint8Array)return new Uint8Array(Ye);if(Ye instanceof Uint16Array)return new Uint16Array(Ye);if(Ye instanceof Uint32Array)return new Uint32Array(Ye);if(Ye._isAMomentObject&&vt(Ye.clone))return Ye.clone();if(Ye instanceof r.EL)return null;if(Ye instanceof Date)return new Date(Ye.getTime());if(Array.isArray(Ye))return Ye.slice(0).map(q=>xt(q));const ue=Object.getPrototypeOf(Ye);let te=Object.create(ue);return te=Object.setPrototypeOf(te,ue),Object.keys(Ye).reduce((q,Xe)=>{const dt=Object.getOwnPropertyDescriptor(Ye,Xe);return dt.get?Object.defineProperty(q,Xe,dt):q[Xe]=xt(Ye[Xe]),q},te)}function st(Ye,ue,te){Object.defineProperty(Ye,ue,{enumerable:!1,writable:!0,configurable:!0}),Ye[ue]=te}function Ct(Ye,ue,te){let q=[];const Xe=()=>{q.forEach(at=>at()),q=[]},dt=It(Ye,ue,({firstChange:at,currentValue:St})=>{!at&&te(),Xe(),Le(St)&&"Object"===St.constructor.name&&Object.keys(St).forEach(Qe=>{q.push(Ct(Ye,[...ue,Qe],te))})});return()=>{dt.unsubscribe(),Xe()}}function It(Ye,ue,te){Ye._observers||st(Ye,"_observers",{});let q=Ye;for(let St=0;St=1&&Le(q))){const{enumerable:St}=Object.getOwnPropertyDescriptor(q,Xe)||{enumerable:!0};Object.defineProperty(q,Xe,{enumerable:St,configurable:!0,get:()=>at.value,set:Qe=>{if(Qe!==at.value){const Ee=at.value;at.value=Qe,at.onChange.forEach(Je=>Je({previousValue:Ee,currentValue:Qe,firstChange:!1}))}}})}return{setValue(St,Qe=!0){if(St===at.value)return;const Ee=at.value;at.value=St,at.onChange.forEach(Je=>{Je!==te&&Qe&&Je({previousValue:Ee,currentValue:St,firstChange:!1})})},unsubscribe(){at.onChange=at.onChange.filter(St=>St!==te),0===at.onChange.length&&delete Ye._observers[dt]}}}function Tt(Ye,ue){if(ue=Array.isArray(ue)?ue.join("."):ue,Ye.fieldGroup)for(let te=0,q=Ye.fieldGroup.length;te{ue instanceof t.rjb?ue.injector.get(t.gRc).markForCheck():ue.markForCheck()})}function Vt(Ye){const ue=q=>q.hide||q.expressions?.hide||q.hideExpression;let te=!Ye.resetOnHide||!ue(Ye);if(!ue(Ye)&&Ye.resetOnHide){let q=Ye.parent;for(;q&&!ue(q);)q=q.parent;te=!q||!ue(q)}return!te}const fn=new t.nKC("FORMLY_CONFIG");let Hn=(()=>{class Ye{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError:te=>te.formControl?.invalid&&(te.formControl?.touched||te.options.parentForm?.submitted||!!te.field.validation?.show)},this.extensions={},this.presets={},this.extensionsByPriority={}}addConfig(te){te.types&&te.types.forEach(q=>this.setType(q)),te.validators&&te.validators.forEach(q=>this.setValidator(q)),te.wrappers&&te.wrappers.forEach(q=>this.setWrapper(q)),te.validationMessages&&te.validationMessages.forEach(q=>this.addValidatorMessage(q.name,q.message)),te.extensions&&this.setSortedExtensions(te.extensions),te.extras&&(this.extras={...this.extras,...te.extras}),te.presets&&(this.presets={...this.presets,...te.presets.reduce((q,Xe)=>({...q,[Xe.name]:Xe.config}),{})})}setType(te){Array.isArray(te)?te.forEach(q=>this.setType(q)):(this.types[te.name]||(this.types[te.name]={name:te.name}),["component","extends","defaultOptions","wrappers"].forEach(q=>{te.hasOwnProperty(q)&&(this.types[te.name][q]=te[q])}))}getType(te,q=!1){if(te instanceof t.ZUJ)return{component:te,name:te.prototype.constructor.name};if(!this.types[te]){if(q)throw new Error(`[Formly Error] The type "${te}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(te),this.types[te]}getMergedField(te={}){const q=this.getType(te.type);if(!q)return;q.defaultOptions&&Y(te,q.defaultOptions);const Xe=q.extends&&this.getType(q.extends).defaultOptions;Xe&&Y(te,Xe),te?.optionsTypes&&te.optionsTypes.forEach(at=>{const St=this.getType(at).defaultOptions;St&&Y(te,St)});const dt=this.resolveFieldTypeRef(te);dt?.instance?.defaultOptions&&Y(te,dt.instance.defaultOptions),!te.wrappers&&q.wrappers&&(te.wrappers=[...q.wrappers])}resolveFieldTypeRef(te={}){const q=this.getType(te.type);if(!q)return null;if(!q.component||q._componentRef)return q._componentRef;const{_viewContainerRef:Xe,_injector:dt}=te.options;if(!Xe||!dt)return null;const at=Xe.createComponent(q.component,{injector:dt});st(q,"_componentRef",at);try{at.destroy()}catch(St){console.error(`An error occurred while destroying the Formly component type "${te.type}"`,St)}return q._componentRef}setWrapper(te){this.wrappers[te.name]=te,te.types&&te.types.forEach(q=>{this.setTypeWrapper(q,te.name)})}getWrapper(te){if(te instanceof t.ZUJ)return{component:te,name:te.prototype.constructor.name};if(!this.wrappers[te])throw new Error(`[Formly Error] The wrapper "${te}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[te]}setTypeWrapper(te,q){this.types[te]||(this.types[te]={}),this.types[te].wrappers||(this.types[te].wrappers=[]),-1===this.types[te].wrappers.indexOf(q)&&this.types[te].wrappers.push(q)}setValidator(te){this.validators[te.name]=te}getValidator(te){if(!this.validators[te])throw new Error(`[Formly Error] The validator "${te}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[te]}addValidatorMessage(te,q){this.messages[te]=q}getValidatorMessage(te){return this.messages[te]}setSortedExtensions(te){te.forEach(q=>{const Xe=q.priority??1;this.extensionsByPriority[Xe]={...this.extensionsByPriority[Xe],[q.name]:q.extension}}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((q,Xe)=>q-Xe).reduce((q,Xe)=>({...q,...this.extensionsByPriority[Xe]}),{})}mergeExtendedType(te){if(!this.types[te].extends)return;const q=this.getType(this.types[te].extends);this.types[te].component||(this.types[te].component=q.component),this.types[te].wrappers||(this.types[te].wrappers=q.wrappers)}}return Ye.\u0275fac=function(te){return new(te||Ye)},Ye.\u0275prov=t.jDH({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),zn=(()=>{class Ye{constructor(te,q,Xe,dt){this.config=te,this.injector=q,this.viewContainerRef=Xe,this.parentForm=dt}buildForm(te,q=[],Xe,dt){this.build({fieldGroup:q,model:Xe,form:te,options:dt})}build(te){if(!this.config.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");te.parent||this._setOptions(te),function de(Ye,ue){const te=Ye._updateTreeValidity.bind(Ye);Ye._updateTreeValidity=()=>{},ue(),Ye._updateTreeValidity=te}(te.form,()=>{if(this._build(te),!te.parent||te.fieldArray){const q=te.options;te.parent&&Vt(te)&&q._hiddenFieldsForCheck?.push(te),q.checkExpressions?.(te,!0),q._detectChanges?.(te)}})}_build(te){if(!te)return;const q=Object.values(this.config.extensions);q.forEach(Xe=>Xe.prePopulate?.(te)),q.forEach(Xe=>Xe.onPopulate?.(te)),te.fieldGroup?.forEach(Xe=>this._build(Xe)),q.forEach(Xe=>Xe.postPopulate?.(te))}_setOptions(te){te.form=te.form||new r.gE({}),te.model=te.model||{},te.options=te.options||{};const q=te.options;q._viewContainerRef||st(q,"_viewContainerRef",this.viewContainerRef),q._injector||st(q,"_injector",this.injector),q.build||(q._buildForm=()=>{console.warn("Formly: 'options._buildForm' is deprecated since v6.0, use 'options.build' instead."),this.build(te)},q.build=(Xe=te)=>(this.build(Xe),Xe)),!q.parentForm&&this.parentForm&&(st(q,"parentForm",this.parentForm),It(q,["parentForm","submitted"],({firstChange:Xe})=>{Xe||q.detectChanges(te)}))}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.KVO(Hn),t.KVO(t.zZn),t.KVO(t.c1b,8),t.KVO(r.j4,8))},Ye.\u0275prov=t.jDH({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})();function Et(Ye,ue,te=!1){if((ue=ue||Ye.formControl)._fields||st(ue,"_fields",[]),-1===ue._fields.indexOf(Ye)&&ue._fields.push(Ye),!Ye.formControl&&ue){st(Ye,"formControl",ue),ue.setValidators(null),ue.setAsyncValidators(null),Ye.props.disabled=!!Ye.props.disabled;const St=It(Ye,["props","disabled"],({firstChange:Qe,currentValue:Ee})=>{Qe||(Ee?Ye.formControl.disable():Ye.formControl.enable())});ue instanceof r.MJ&&ue.registerOnDisabledChange(St.setValue)}if(!Ye.form||!z(Ye))return;let q=Ye.form;const Xe=Z(Ye),dt=R(Ye);(!se(ue.value)||!se(dt))&&ue.value!==dt&&ue instanceof r.MJ&&ue.patchValue(dt);for(let St=0;StYt(ue))}let Ue=(()=>{class Ye{constructor(te){this.ref=te}ngOnChanges(){this.name=this.name||"formly-group"}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(t.C4Q))},Ye.\u0275dir=t.FsC({type:Ye,selectors:[["","formlyTemplate",""]],inputs:{name:[0,"formlyTemplate","name"]},features:[t.OA$]}),Ye})(),Ae=(()=>{class Ye{}return Ye.\u0275fac=function(te){return new(te||Ye)},Ye.\u0275prov=t.jDH({token:Ye,factory:Ye.\u0275fac}),Ye})(),ie=(()=>{class Ye{constructor(te,q,Xe,dt,at){this.config=te,this.renderer=q,this._elementRef=Xe,this.hostContainerRef=dt,this.form=at,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.rjb?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(te){this.triggerHook("onChanges",te)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(te=>te.unsubscribe()),this.hooksObservers.forEach(te=>te()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(te,q,Xe=[]){if(this.containerRef===te&&(this.resetRefs(this.field),this.containerRef.clear(),Xe=this.field?.wrappers),Xe?.length>0){const[dt,...at]=Xe,{component:St}=this.config.getWrapper(dt),Qe=te.createComponent(St);this.attachComponentRef(Qe,q),It(Qe.instance,["fieldComponent"],({currentValue:Ee,previousValue:Je,firstChange:re})=>{if(Ee){if(Je&&Je._lContainer===Ee._lContainer)return;const ze=Je?Je.detach():null;ze&&!ze.destroyed?Ee.insert(ze):this.renderField(Ee,q,at),!re&&Qe.changeDetectorRef.detectChanges()}})}else if(q?.type){const dt=this.form?.templates?.find(St=>St.name===q.type);let at;if(dt)at=te.createEmbeddedView(dt.ref,{$implicit:q});else{const{component:St}=this.config.getType(q.type,!0);at=te.createComponent(St)}this.attachComponentRef(at,q)}}triggerHook(te,q){if(("onInit"===te||"onChanges"===te&&q.field&&!q.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[te]&&(!q||q.field)){const Xe=this.field.hooks[te](this.field);if((0,g.A)(Xe)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(te)){const dt=Xe.subscribe();this.hooksObservers.push(()=>dt.unsubscribe())}}"onChanges"===te&&q.field&&(this.resetRefs(q.field.previousValue),this.render())}attachComponentRef(te,q){this.componentRefs.push(te),q._componentRefs.push(te),te instanceof t.rjb&&Object.assign(te.instance,{field:q})}render(){if(this.field)if(this.field.options)if(this.detectFieldBuild=!1,this.hostObservers.forEach(q=>q.unsubscribe()),this.hostObservers=[It(this.field,["hide"],({firstChange:q,currentValue:Xe})=>{const dt=this.containerRef;!1===this.config.extras.lazyRender?(q&&this.renderField(dt,this.field),(!q||q&&Xe)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",Xe?"none":"")):Xe?(dt.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(dt,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!q&&this.field.options.detectChanges(this.field)}),It(this.field,["className"],({firstChange:q,currentValue:Xe})=>{(!q||q&&Xe)&&(!this.config.extras.lazyRender||!0!==this.field.hide)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",Xe)})],+ne.xv.major>=18&&+ne.xv.minor>=1){if(this.field.formControl){const q=this.field.formControl.statusChanges.pipe((0,B.F)()).subscribe(()=>en(this.field));this.hostObservers.push(q)}}else["touched","pristine","status"].forEach(q=>this.hostObservers.push(It(this.field,["formControl",q],({firstChange:Xe})=>!Xe&&en(this.field))));else this.detectFieldBuild=!0}resetRefs(te){te&&(te._localFields?te._localFields=[]:st(this.field,"_localFields",[]),te._componentRefs?te._componentRefs=te._componentRefs.filter(q=>-1===this.componentRefs.indexOf(q)):st(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(te){if(!te)return()=>{};const q=[Ct(te,["props"],()=>te.options.detectChanges(te))];te.options&&q.push(Ct(te.options,["formState"],()=>te.options.detectChanges(te)));for(const dt of Object.keys(te._expressions||{})){const at=It(te,["_expressions",dt],({currentValue:St,previousValue:Qe})=>{Qe?.subscription&&(Qe.subscription.unsubscribe(),Qe.subscription=null),(0,g.A)(St.value$)&&(St.subscription=St.value$.subscribe())});q.push(()=>{te._expressions[dt]?.subscription&&te._expressions[dt].subscription.unsubscribe(),at.unsubscribe()})}for(const dt of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){const at=It(te,dt,({firstChange:St})=>!St&&te.options.detectChanges(te));q.push(()=>at.unsubscribe())}if(te.formControl&&!te.fieldGroup){const dt=te.formControl;let at=dt.valueChanges.pipe((0,A.T)(Je=>(te.parsers?.map(re=>Je=re(Je,te)),Object.is(Je,te.formControl.value)||te.formControl.setValue(Je),Je)),(0,B.F)((Je,re)=>!(Je!==re||Array.isArray(Je)||Le(Je))));dt.value!==R(te)&&(at=at.pipe((0,w.Z)(dt.value)));const{updateOn:St,debounce:Qe}=te.modelOptions;(!St||"change"===St)&&Qe?.default>0&&(at=dt.valueChanges.pipe((0,I.B)(Qe.default)));const Ee=at.subscribe(Je=>{dt._fields?.length>1&&dt instanceof r.MJ&&dt.patchValue(Je,{emitEvent:!1,onlySelf:!0}),z(te)&&E(te,Je),te.options.fieldChanges.next({value:Je,field:te,type:"valueChanges"})});q.push(()=>Ee.unsubscribe())}let Xe=[];return It(te,["_localFields"],({currentValue:dt})=>{Xe.forEach(at=>at()),Xe=(dt||[]).map(at=>this.fieldChanges(at))}),()=>{q.forEach(dt=>dt()),Xe.forEach(dt=>dt())}}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(Hn),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(t.c1b),t.rXU(Ae,8))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-field"]],viewQuery:function(te,q){if(1&te&&t.GBs(be,7,t.c1b),2&te){let Xe;t.mGM(Xe=t.lsd())&&(q.viewContainerRef=Xe.first)}},inputs:{field:"field"},features:[t.OA$],decls:2,vars:0,consts:[["container",""]],template:function(te,q){1&te&&t.DNE(0,Oe,0,0,"ng-template",null,0,t.C5r)},styles:["[_nghost-%COMP%]:empty{display:none}"]}),Ye})(),_e=(()=>{class Ye{constructor(te,q,Xe,dt){this.builder=te,this.config=q,this.ngZone=Xe,this.fieldTemplates=dt,this.modelChange=new t.bkB,this.field={type:"formly-group"},this._modelChangeValue={},this.valueChangesUnsubscribe=()=>{}}set form(te){this.field.form=te}get form(){return this.field.form}set model(te){this.config.extras.immutable&&this._modelChangeValue===te||this.setField({model:te})}get model(){return this.field.model}set fields(te){this.setField({fieldGroup:te})}get fields(){return this.field.fieldGroup}set options(te){this.setField({options:te})}get options(){return this.field.options}set templates(te){this.fieldTemplates.templates=te}ngDoCheck(){"changeDetectionCheck"===this.config.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(te){te.fields&&this.form&&Yt(this.form),(te.fields||te.form||te.model&&this._modelChangeValue!==te.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 te=this.field.options.fieldChanges.pipe((0,F.p)(({field:q,type:Xe})=>z(q)&&"valueChanges"===Xe),(0,X.n)(()=>function jt(Ye){return Ye instanceof t.FOc}(this.ngZone)?(0,e.of)(null):this.ngZone.onStable.asObservable().pipe((0,V.s)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=xt(this.model))}));return()=>te.unsubscribe()}setField(te){this.config.extras.immutable?this.field={...this.field,...xt(te)}:Object.keys(te).forEach(q=>this.field[q]=te[q])}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(zn),t.rXU(Hn),t.rXU(t.SKi),t.rXU(Ae))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-form"]],contentQueries:function(te,q,Xe){if(1&te&&t.wni(Xe,Ue,4),2&te){let dt;t.mGM(dt=t.lsd())&&(q.templates=dt)}},inputs:{form:"form",model:"model",fields:"fields",options:"options"},outputs:{modelChange:"modelChange"},features:[t.Jv_([zn,Ae]),t.OA$],decls:1,vars:1,consts:[[3,"field"]],template:function(te,q){1&te&&t.nrm(0,"formly-field",0),2&te&&t.Y8G("field",q.field)},dependencies:[ie],encapsulation:2,changeDetection:0}),Ye})(),oe=(()=>{class Ye{constructor(te,q,Xe){this.renderer=te,this.elementRef=q,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(dt,at)=>{switch(dt){case"focus":return this.onFocus(at);case"blur":return this.onBlur(at);case"change":return this.onChange(at);default:return this.props[dt](this.field,at)}}},this.document=Xe}get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}ngOnChanges(te){te.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(q=>q()),this.uiEvents.events.forEach(q=>{(this.props?.[q]||-1!==["focus","blur","change"].indexOf(q))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,q,Xe=>this.uiEvents.callback(q,Xe)))}),this.props?.attributes&&It(this.field,["props","attributes"],({currentValue:q,previousValue:Xe})=>{Xe&&Object.keys(Xe).forEach(dt=>this.removeAttribute(dt)),q&&Object.keys(q).forEach(dt=>{null!=q[dt]&&this.setAttribute(dt,q[dt])})}),this.detachElementRef(te.field.previousValue),this.attachElementRef(te.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=It(this.field,["focus"],({currentValue:q})=>{this.toggleFocus(q)}))),te.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const te=this.elementRef.nativeElement;this.uiAttributes=[...pe,"tabindex","placeholder","readonly","disabled","step"].filter(q=>!te.hasAttribute||!te.hasAttribute(q))}for(let te=0;tete()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(te){const q=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!q||!q.nativeElement.focus)return;const Xe=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:dt})=>this.document.activeElement===dt||dt.contains(this.document.activeElement));te&&!Xe?Promise.resolve().then(()=>q.nativeElement.focus()):!te&&Xe&&Promise.resolve().then(()=>q.nativeElement.blur())}onFocus(te){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,te)}onBlur(te){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,te)}onHostChange(te){te instanceof Event||this.onChange(te)}onChange(te){this.props.change?.(this.field,te),this.field.formControl?.markAsDirty()}attachElementRef(te){te&&(-1===te._elementRefs?.indexOf(this.elementRef)?te._elementRefs.push(this.elementRef):st(te,"_elementRefs",[this.elementRef]))}detachElementRef(te){const q=te?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==q&&te._elementRefs.splice(q,1)}setAttribute(te,q){this.renderer.setAttribute(this.elementRef.nativeElement,te,q)}removeAttribute(te){this.renderer.removeAttribute(this.elementRef.nativeElement,te)}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(ne.qQ))},Ye.\u0275dir=t.FsC({type:Ye,selectors:[["","formlyAttributes",""]],hostBindings:function(te,q){1&te&&t.bIt("change",function(dt){return q.onHostChange(dt)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[t.OA$]}),Ye})(),Fe=(()=>{class Ye{constructor(){this.field={}}set _formlyControls(te){this.field._localFields=te.map(Xe=>Xe.control._fields||[]).flat().filter(Xe=>Xe.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 Ye.\u0275fac=function(te){return new(te||Ye)},Ye.\u0275dir=t.FsC({type:Ye,viewQuery:function(te,q){if(1&te&&t.GBs(r.vO,5),2&te){let Xe;t.mGM(Xe=t.lsd())&&(q._formlyControls=Xe)}},inputs:{field:"field"}}),Ye})(),et=(()=>{class Ye extends Fe{}return Ye.\u0275fac=(()=>{let ue;return function(q){return(ue||(ue=t.xGo(Ye)))(q||Ye)}})(),Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-group"]],hostVars:2,hostBindings:function(te,q){2&te&&t.HbH(q.field.fieldGroupClassName||"")},features:[t.Vt3],ngContentSelectors:he,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(te,q){1&te&&(t.NAR(),t.DNE(0,we,1,1,"formly-field",0),t.SdG(1)),2&te&&t.Y8G("ngForOf",q.field.fieldGroup)},dependencies:[ie,ne.Sq],encapsulation:2,changeDetection:0}),Ye})(),ut=(()=>{class Ye{constructor(te){this.config=te}ngOnChanges(){const te=pe.map(q=>`templateOptions.${q}`);this.errorMessage$=(0,M.h)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,F.p)(({field:q,type:Xe,property:dt})=>q===this.field&&"expressionChanges"===Xe&&(-1!==dt.indexOf("validation")||-1!==te.indexOf(dt)))):(0,e.of)(null)).pipe((0,w.Z)(null),(0,X.n)(()=>(0,g.A)(this.errorMessage)?this.errorMessage:(0,e.of)(this.errorMessage)))}get errorMessage(){const te=this.field.formControl;for(const q in te.errors)if(te.errors.hasOwnProperty(q)){let Xe=this.config.getValidatorMessage(q);if(Le(te.errors[q])){if(te.errors[q].errorPath)return;te.errors[q].message&&(Xe=te.errors[q].message)}return this.field.validation?.messages?.[q]&&(Xe=this.field.validation.messages[q]),this.field.validators?.[q]?.message&&(Xe=this.field.validators[q].message),this.field.asyncValidators?.[q]?.message&&(Xe=this.field.asyncValidators[q].message),"function"==typeof Xe?Xe(te.errors[q],this.field):Xe}}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(Hn))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[t.OA$],decls:2,vars:3,template:function(te,q){1&te&&(t.EFF(0),t.nI1(1,"async")),2&te&&t.JRh(t.bMT(1,1,q.errorMessage$))},dependencies:[ne.Jj],encapsulation:2,changeDetection:0}),Ye})(),cn=(()=>{class Ye extends Fe{set _formlyControls(te){}set _staticContent(te){this.fieldComponent=te}}return Ye.\u0275fac=(()=>{let ue;return function(q){return(ue||(ue=t.xGo(Ye)))(q||Ye)}})(),Ye.\u0275dir=t.FsC({type:Ye,viewQuery:function(te,q){if(1&te&&(t.GBs(me,5,t.c1b),t.GBs(me,7,t.c1b)),2&te){let Xe;t.mGM(Xe=t.lsd())&&(q.fieldComponent=Xe.first),t.mGM(Xe=t.lsd())&&(q._staticContent=Xe.first)}},features:[t.Vt3]}),Ye})(),Tn=(()=>{class Ye extends Fe{constructor(te){super(),this.sanitizer=te,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 Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(J.up))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-template"]],features:[t.Vt3],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(te,q){1&te&&t.nrm(0,"div",0),2&te&&t.Y8G("innerHtml",q.template,t.npT)},encapsulation:2,changeDetection:0}),Ye})();class Vn{onPopulate(ue){if(ue._expressions)return;st(ue,"_expressions",{}),It(ue,["hide"],({currentValue:q,firstChange:Xe})=>{st(ue,"_hide",!!q),(!Xe||Xe&&!0===q)&&(ue.props.hidden=q,ue.options._hiddenFieldsForCheck.push(ue))}),ue.hideExpression&&It(ue,["hideExpression"],({currentValue:q})=>{ue._expressions.hide=this.parseExpressions(ue,"hide","boolean"==typeof q?()=>q:q)});const te=(q,Xe)=>{"string"==typeof Xe||vt(Xe)?ue._expressions[q]=this.parseExpressions(ue,q,Xe):Xe instanceof G.c&&(ue._expressions[q]={value$:Xe.pipe((0,x.M)(dt=>{this.evalExpr(ue,q,dt),ue.options._detectChanges(ue)}))})};ue.expressions=ue.expressions||{};for(const q of Object.keys(ue.expressions))It(ue,["expressions",q],({currentValue:Xe})=>{te(q,vt(Xe)?(...dt)=>Xe(ue,dt[3]):Xe)});ue.expressionProperties=ue.expressionProperties||{};for(const q of Object.keys(ue.expressionProperties))It(ue,["expressionProperties",q],({currentValue:Xe})=>te(q,Xe))}postPopulate(ue){if(!ue.parent&&!ue.options.checkExpressions){let te=!1;ue.options.checkExpressions=(q,Xe)=>{if(te)return;te=!0;const dt=this.checkExpressions(q,Xe),at=ue.options;at._hiddenFieldsForCheck.sort(St=>St.hide?-1:1).forEach(St=>this.changeHideState(St,St.hide,!Xe)),at._hiddenFieldsForCheck=[],dt&&this.checkExpressions(ue),te=!1},ue.options._checkField=(q,Xe)=>{console.warn("Formly: 'options._checkField' is deprecated since v6.0, use 'options.checkExpressions' instead."),ue.options.checkExpressions(q,Xe)}}}parseExpressions(ue,te,q){let Xe,dt;if(ue.parent&&["hide","props.disabled"].includes(te)){const at=St=>"hide"===te?St.hide:St.props.disabled;Xe=()=>{let St=ue.parent;for(;St.parent&&!at(St);)St=St.parent;return at(St)}}return"string"==typeof(q=q||(()=>!1))&&(q=function Wn(Ye,ue){try{return Function(...ue,`return ${Ye};`)}catch(te){console.error(te)}}(q,["model","formState","field"])),{callback:at=>{try{const St=function kn(Ye,ue,te){return"function"==typeof Ye?Ye.apply(ue,te):!!Ye}(Xe?(...Qe)=>Xe(ue)||q(...Qe):q,{field:ue},[ue.model,ue.options.formState,ue,at]);return!(!at&&(dt===St||Le(St)&&!(0,g.A)(St)&&JSON.stringify(St)===JSON.stringify(dt))||(dt=St,this.evalExpr(ue,te,St),0))}catch(St){throw St.message=`[Formly Error] [Expression "${te}"] ${St.message}`,St}}}}checkExpressions(ue,te=!1){if(!ue)return!1;let q=!1;if(ue._expressions)for(const Xe of Object.keys(ue._expressions))ue._expressions[Xe].callback?.(te)&&(q=!0);return ue.fieldGroup?.forEach(Xe=>this.checkExpressions(Xe,te)&&(q=!0)),q}changeDisabledState(ue,te){ue.fieldGroup&&ue.fieldGroup.filter(q=>!q._expressions.hasOwnProperty("props.disabled")).forEach(q=>this.changeDisabledState(q,te)),z(ue)&&ue.props.disabled!==te&&(ue.props.disabled=te)}changeHideState(ue,te,q){if(ue.fieldGroup&&ue.fieldGroup.filter(Xe=>Xe&&!Xe._expressions.hide).forEach(Xe=>this.changeHideState(Xe,te,q)),ue.formControl&&z(ue)){st(ue,"_hide",!(!te&&!ue.hide));const Xe=ue.formControl;Xe._fields?.length>1&&Ot(Xe),!0!==te||Xe._fields&&!Xe._fields.every(dt=>!!dt._hide)?!1===te&&(ue.resetOnHide&&!Be(ue.defaultValue)&&Be(R(ue))&&E(ue,ue.defaultValue),Et(ue,void 0,!0),ue.resetOnHide&&ue.fieldArray&&ue.fieldGroup?.length!==ue.model?.length&&ue.options.build(ue)):(function bt(Ye,ue=!1){const te=Ye.formControl,q=te._fields?te._fields.indexOf(Ye):-1;-1!==q&&te._fields.splice(q,1);const Xe=te.parent;if(!Xe)return;const dt={emitEvent:ue};if(Xe instanceof r.Yp){const at=Xe.controls.findIndex(St=>St===te);-1!==at&&Xe.removeAt(at,dt)}else if(Xe instanceof r.gE){const at=Z(Ye),St=at[at.length-1];Xe.get([St])===te&&Xe.removeControl(St,dt)}te.setParent(null)}(ue,!0),q&&ue.resetOnHide&&(E(ue,void 0),ue.formControl.reset({value:void 0,disabled:ue.formControl.disabled}),ue.options.fieldChanges.next({value:void 0,field:ue,type:"valueChanges"}),ue.fieldGroup&&ue.formControl instanceof r.Yp&&(ue.fieldGroup.length=0)))}ue.options.fieldChanges&&ue.options.fieldChanges.next({field:ue,type:"hidden",value:te})}evalExpr(ue,te,q){if(0===te.indexOf("model.")){const Xe=te.replace(/^model\./,""),dt=ue.fieldGroup?ue:ue.parent;let at=ue?.key===Xe?ue.formControl:ue.form.get(Xe);!at&&ue.get(Xe)&&(at=ue.get(Xe).formControl),E({key:Xe,parent:dt,model:ue.model},q),at&&(!se(at.value)||!se(q))&&at.value!==q&&at.patchValue(q)}else{try{let Xe=ue;const dt=this._evalExpressionPath(ue,te),at=dt.length-1;for(let St=0;StXe).forEach(Xe=>{const dt=Xe.match(/['|"](.*?)['|"]/);dt?q.push(dt[1]):q.push(...Xe.split(".").filter(at=>at))}),ue._expressions[te]&&(ue._expressions[te].paths=q),q}}class Un{constructor(ue){this.config=ue}onPopulate(ue){this.initFieldValidation(ue,"validators"),this.initFieldValidation(ue,"asyncValidators")}initFieldValidation(ue,te){const q=[];if("validators"===te&&!(ue.hasOwnProperty("fieldGroup")&&!z(ue))&&q.push(this.getPredefinedFieldValidation(ue)),ue[te])for(const Xe of Object.keys(ue[te]))"validation"===Xe?q.push(...ue[te].validation.map(dt=>this.wrapNgValidatorFn(ue,dt))):q.push(this.wrapNgValidatorFn(ue,ue[te][Xe],Xe));st(ue,"_"+te,q)}getPredefinedFieldValidation(ue){let te=[];return pe.forEach(q=>It(ue,["props",q],({currentValue:Xe,firstChange:dt})=>{te=te.filter(at=>at!==q),"required"===q&&null!=Xe&&"boolean"!=typeof Xe&&console.warn(`Formly: Invalid prop 'required' of type '${typeof Xe}', expected 'boolean' (Field:${ue.key}).`),null!=Xe&&!1!==Xe&&te.push(q),!dt&&ue.formControl&&Ot(ue.formControl)})),q=>0===te.length?null:r.k0.compose(te.map(Xe=>()=>{const dt=ue.props[Xe];switch(Xe){case"required":return r.k0.required(q);case"pattern":return r.k0.pattern(dt)(q);case"minLength":const at=r.k0.minLength(dt)(q),St=this.config.getValidatorMessage("minlength")||ue.validation?.messages?.minlength?"minlength":"minLength";return at?{[St]:at.minlength}:null;case"maxLength":const Qe=r.k0.maxLength(dt)(q),Ee=this.config.getValidatorMessage("maxlength")||ue.validation?.messages?.maxlength?"maxlength":"maxLength";return Qe?{[Ee]:Qe.maxlength}:null;case"min":return r.k0.min(dt)(q);case"max":return r.k0.max(dt)(q);default:return null}}))(q)}wrapNgValidatorFn(ue,te,q){let Xe;if("string"==typeof te&&(Xe=xt(this.config.getValidator(te))),"object"==typeof te&&te.name&&(Xe=xt(this.config.getValidator(te.name)),te.options&&(Xe.options=te.options)),"object"==typeof te&&te.expression){const{expression:dt,...at}=te;Xe={name:q,validation:dt,options:Object.keys(at).length>0?at:null}}return"function"==typeof te&&(Xe={name:q,validation:te}),dt=>{const at=Xe.validation(dt,ue,Xe.options);return function zt(Ye){return!!Ye&&"function"==typeof Ye.then}(at)?at.then(St=>this.handleResult(ue,q?!!St:St,Xe)):(0,g.A)(at)?at.pipe((0,A.T)(St=>this.handleResult(ue,q?!!St:St,Xe))):this.handleResult(ue,q?!!at:at,Xe)}}handleResult(ue,te,{name:q,options:Xe}){"boolean"==typeof te&&(te=te?null:{[q]:Xe||!0});const dt=ue.formControl;return dt?._childrenErrors?.[q]?.(),Le(te)&&Object.keys(te).forEach(at=>{const St=te[at].errorPath?te[at].errorPath:Xe?.errorPath,Qe=St?ue.formControl.get(St):null;if(Qe){const{errorPath:Ee,...Je}=te[at];Qe.setErrors({...Qe.errors||{},[at]:Je}),!dt._childrenErrors&&st(dt,"_childrenErrors",{}),dt._childrenErrors[at]=()=>{const{[at]:re,...ze}=Qe.errors||{};Qe.setErrors(0===Object.keys(ze).length?null:ze)}}}),te}}class dn{prePopulate(ue){this.root||(this.root=ue),ue.parent&&Object.defineProperty(ue,"form",{get:()=>ue.parent.formControl,configurable:!0})}onPopulate(ue){ue.hasOwnProperty("fieldGroup")&&!z(ue)?st(ue,"formControl",ue.form):this.addFormControl(ue)}postPopulate(ue){if(this.root===ue&&(this.root=null,this.setValidators(ue)&&ue.parent)){let q=ue.parent;for(;q;)(z(q)||!q.parent)&&Ot(q.formControl,!0),q=q.parent}}addFormControl(ue){let te=function At(Ye){return Ye.formControl?Ye.formControl:!1===Ye.shareFormControl?null:Ye.form?.get(Z(Ye))}(ue);if(!ue.fieldArray){if(te){if(te instanceof r.MJ){const q=z(ue)?R(ue):ue.defaultValue;te.defaultValue=q}}else{const q={updateOn:ue.modelOptions.updateOn};if(ue.fieldGroup)te=new r.gE({},q);else{const Xe=z(ue)?R(ue):ue.defaultValue;te=new r.MJ({value:Xe,disabled:!!ue.props.disabled},{...q,initialValueIsDefault:!0})}}Et(ue,te)}}setValidators(ue,te=!1){!1===te&&z(ue)&&ue.props?.disabled&&(te=!0);let q=!1;if(ue.fieldGroup?.forEach(Xe=>Xe&&this.setValidators(Xe,te)&&(q=!0)),z(ue)||!ue.parent||!z(ue)&&!ue.fieldGroup){const{formControl:Xe}=ue;if(Xe&&(z(ue)&&Xe instanceof r.MJ&&(te&&Xe.enabled&&(Xe.disable({emitEvent:!1,onlySelf:!0}),q=!0),!te&&Xe.disabled&&(Xe.enable({emitEvent:!1,onlySelf:!0}),q=!0)),null===Xe.validator&&this.hasValidators(ue,"_validators")&&(Xe.setValidators(()=>{const dt=r.k0.compose(this.mergeValidators(ue,"_validators"));return dt?dt(Xe):null}),q=!0),null===Xe.asyncValidator&&this.hasValidators(ue,"_asyncValidators")&&(Xe.setAsyncValidators(()=>{const dt=r.k0.composeAsync(this.mergeValidators(ue,"_asyncValidators"));return dt?dt(Xe):(0,e.of)(null)}),q=!0),q)){Ot(Xe,!0);let dt=Xe.parent;for(let at=1;at1&&q._fields.some(Xe=>Xe[te].length>0)||ue[te].length>0)||ue.fieldGroup?.some(Xe=>Xe?.fieldGroup&&!z(Xe)&&this.hasValidators(Xe,te))}mergeValidators(ue,te){const q=[],Xe=ue.formControl;return Xe?._fields?.length>1?Xe._fields.filter(dt=>!dt._hide).forEach(dt=>q.push(...dt[te])):ue[te]&&q.push(...ue[te]),ue.fieldGroup&&ue.fieldGroup.filter(dt=>dt?.fieldGroup&&!z(dt)).forEach(dt=>q.push(...this.mergeValidators(dt,te))),q}}class qt{constructor(ue){this.config=ue,this.formId=0}prePopulate(ue){const te=ue.parent;this.initRootOptions(ue),this.initFieldProps(ue),te&&(Object.defineProperty(ue,"options",{get:()=>te.options,configurable:!0}),Object.defineProperty(ue,"model",{get:()=>z(ue)&&ue.fieldGroup?R(ue):te.model,configurable:!0})),Object.defineProperty(ue,"get",{value:q=>Tt(ue,q),configurable:!0}),this.getFieldComponentInstance(ue).prePopulate?.(ue)}onPopulate(ue){this.initFieldOptions(ue),this.getFieldComponentInstance(ue).onPopulate?.(ue),ue.fieldGroup&&ue.fieldGroup.forEach((te,q)=>{te&&(Object.defineProperty(te,"parent",{get:()=>ue,configurable:!0}),Object.defineProperty(te,"index",{get:()=>q,configurable:!0})),this.formId++})}postPopulate(ue){this.getFieldComponentInstance(ue).postPopulate?.(ue)}initFieldProps(ue){ue.props??(ue.props=ue.templateOptions),Object.defineProperty(ue,"templateOptions",{get:()=>ue.props,set:te=>ue.props=te,configurable:!0})}initRootOptions(ue){if(ue.parent)return;const te=ue.options;ue.options.formState=ue.options.formState||{},te.showError||(te.showError=this.config.extras.showError),te.fieldChanges||st(te,"fieldChanges",new L.B),te._hiddenFieldsForCheck||(te._hiddenFieldsForCheck=[]),te._markForCheck=q=>{console.warn("Formly: 'options._markForCheck' is deprecated since v6.0, use 'options.detectChanges' instead."),te.detectChanges(q)},te._detectChanges=q=>{q._componentRefs&&en(q),q.fieldGroup?.forEach(Xe=>Xe&&te._detectChanges(Xe))},te.detectChanges=q=>{q.options.checkExpressions?.(q),te._detectChanges(q)},te.resetModel=q=>{q=xt(q??te._initialModel),ue.model&&(Object.keys(ue.model).forEach(Xe=>delete ue.model[Xe]),Object.assign(ue.model,q||{})),It(te,["parentForm","submitted"]).setValue(!1,!1),te.build(ue),ue.form.reset(ue.model)},te.updateInitialValue=q=>te._initialModel=xt(q??ue.model),ue.options.updateInitialValue()}initFieldOptions(ue){Y(ue,{id:H(`formly_${this.formId}`,ue,ue.index),hooks:{},modelOptions:{},validation:{messages:{}},props:ue.type&&z(ue)?{label:"",placeholder:"",disabled:!1}:{}}),this.config.extras.resetFieldOnHide&&!1!==ue.resetOnHide&&(ue.resetOnHide=!0),"formly-template"!==ue.type&&(ue.template||ue.expressions?.template||ue.expressionProperties?.template)&&(ue.type="formly-template"),!ue.type&&ue.fieldGroup&&(ue.type="formly-group"),ue.type&&this.config.getMergedField(ue),z(ue)&&!Be(ue.defaultValue)&&Be(R(ue))&&!Vt(ue)&&E(ue,ue.defaultValue),ue.wrappers=ue.wrappers||[]}getFieldComponentInstance(ue){const te=()=>{let q=this.config.resolveFieldTypeRef(ue);const Xe=ue._componentRefs?.slice(-1)[0];return Xe instanceof t.rjb&&Xe?.componentType===q?.componentType&&(q=Xe),q?.instance};return ue._proxyInstance||st(ue,"_proxyInstance",new Proxy({},{get:(q,Xe)=>te()?.[Xe],set:(q,Xe,dt)=>te()[Xe]=dt})),ue._proxyInstance}}function On(Ye){return{types:[{name:"formly-group",component:et},{name:"formly-template",component:Tn}],extensions:[{name:"core",extension:new qt(Ye),priority:-250},{name:"field-validation",extension:new Un(Ye),priority:-200},{name:"field-form",extension:new dn,priority:-150},{name:"field-expression",extension:new Vn,priority:-100}]}}let Ut=(()=>{class Ye{constructor(te,q=[]){q&&q.forEach(Xe=>te.addConfig(Xe))}static forRoot(te={}){return{ngModule:Ye,providers:[{provide:fn,multi:!0,useFactory:On,deps:[Hn]},{provide:fn,useValue:te,multi:!0},Hn,zn]}}static forChild(te={}){return{ngModule:Ye,providers:[{provide:fn,multi:!0,useFactory:On,deps:[Hn]},{provide:fn,useValue:te,multi:!0},zn]}}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.KVO(Hn),t.KVO(fn,8))},Ye.\u0275mod=t.$C({type:Ye}),Ye.\u0275inj=t.G2t({imports:[[ne.MD]]}),Ye})()},6476:(Rt,De,c)=>{function t(){}c.d(De,{C:()=>r});class r{constructor(e=1/0,M=t){this.max=e,this.dispose=M,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const M=this.getNode(e);return M&&M.value}get size(){return this.map.size}getNode(e){const M=this.map.get(e);if(M&&M!==this.newest){const{older:G,newer:L}=M;L&&(L.older=G),G&&(G.newer=L),M.older=this.newest,M.older.newer=M,M.newer=null,this.newest=M,M===this.oldest&&(this.oldest=L)}return M}set(e,M){let G=this.getNode(e);return G?G.value=M:(G={key:e,value:M,newer:null,older:this.newest},this.newest&&(this.newest.newer=G),this.newest=G,this.oldest=this.oldest||G,this.map.set(e,G),G.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const M=this.map.get(e);return!!M&&(M===this.newest&&(this.newest=M.older),M===this.oldest&&(this.oldest=M.newer),M.newer&&(M.newer.older=M.older),M.older&&(M.older.newer=M.newer),this.map.delete(e),this.dispose(M.value,e),!0)}}},9055:(Rt,De,c)=>{function t(){}c.d(De,{l:()=>L});const r=t,g=typeof WeakRef<"u"?WeakRef:function(B){return{deref:()=>B}},e=typeof WeakMap<"u"?WeakMap:Map,M=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:t,unregister:t}};class L{constructor(A=1/0,w=r){this.max=A,this.dispose=w,this.map=new e,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const I=this.unfinalizedNodes.values();for(let F=0;F<10024;F++){const X=I.next().value;if(!X)break;this.unfinalizedNodes.delete(X);const V=X.key;delete X.key,X.keyRef=new g(V),this.registry.register(V,X,X)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new M(this.deleteNode.bind(this))}has(A){return this.map.has(A)}get(A){const w=this.getNode(A);return w&&w.value}getNode(A){const w=this.map.get(A);if(w&&w!==this.newest){const{older:I,newer:F}=w;F&&(F.older=I),I&&(I.newer=F),w.older=this.newest,w.older.newer=w,w.newer=null,this.newest=w,w===this.oldest&&(this.oldest=F)}return w}set(A,w){let I=this.getNode(A);return I?I.value=w:(I={key:A,value:w,newer:null,older:this.newest},this.newest&&(this.newest.newer=I),this.newest=I,this.oldest=this.oldest||I,this.scheduleFinalization(I),this.map.set(A,I),this.size++,I.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(A){A===this.newest&&(this.newest=A.older),A===this.oldest&&(this.oldest=A.newer),A.newer&&(A.newer.older=A.older),A.older&&(A.older.newer=A.newer),this.size--;const w=A.key||A.keyRef&&A.keyRef.deref();this.dispose(A.value,w),A.keyRef?this.registry.unregister(A):this.unfinalizedNodes.delete(A),w&&this.map.delete(w)}delete(A){const w=this.map.get(A);return!!w&&(this.deleteNode(w),!0)}scheduleFinalization(A){this.unfinalizedNodes.add(A),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},9860:(Rt,De,c)=>{c.d(De,{A:()=>G,L:()=>M});const{toString:t,hasOwnProperty:r}=Object.prototype,g=Function.prototype.toString,e=new Map;function M(X,V){try{return L(X,V)}finally{e.clear()}}const G=M;function L(X,V){if(X===V)return!0;const x=t.call(X);if(x!==t.call(V))return!1;switch(x){case"[object Array]":if(X.length!==V.length)return!1;case"[object Object]":{if(F(X,V))return!0;const J=B(X),be=B(V),Oe=J.length;if(Oe!==be.length)return!1;for(let he=0;he=0&&X.indexOf(V,x)===x}(J,w)}}return!1}function B(X){return Object.keys(X).filter(A,X)}function A(X){return void 0!==this[X]}const w="{ [native code] }";function F(X,V){let x=e.get(X);if(x){if(x.has(V))return!0}else e.set(X,x=new Set);return x.add(V),!1}},4420:(Rt,De,c)=>{c.d(De,{b:()=>M});const t=()=>Object.create(null),{forEach:r,slice:g}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class M{constructor(B=!0,A=t){this.weakness=B,this.makeData=A}lookup(){return this.lookupArray(arguments)}lookupArray(B){let A=this;return r.call(B,w=>A=A.getChildTrie(w)),e.call(A,"data")?A.data:A.data=this.makeData(g.call(B))}peek(){return this.peekArray(arguments)}peekArray(B){let A=this;for(let w=0,I=B.length;A&&w{c.d(De,{EM:()=>pr,$Y:()=>fo,Ic:()=>$o,_9:()=>xn,sM:()=>Sr,XK:()=>Ci,J1:()=>qo});var t=c(3953),r=c(1985),g=c(6780),M=c(9687);const L=new class G extends M.q{}(class e extends g.R{constructor(Ce,Ve){super(Ce,Ve),this.scheduler=Ce,this.work=Ve}schedule(Ce,Ve=0){return Ve>0?super.schedule(Ce,Ve):(this.delay=Ve,this.state=Ce,this.scheduler.flush(this),this)}execute(Ce,Ve){return Ve>0||this.closed?super.execute(Ce,Ve):this._execute(Ce,Ve)}requestAsyncId(Ce,Ve,nt=0){return null!=nt&&nt>0||null==nt&&this.delay>0?super.requestAsyncId(Ce,Ve,nt):(Ce.flush(this),0)}});var A=c(3494),w=c(2806),I=function(tt){return tt[tt.loading=1]="loading",tt[tt.setVariables=2]="setVariables",tt[tt.fetchMore=3]="fetchMore",tt[tt.refetch=4]="refetch",tt[tt.poll=6]="poll",tt[tt.ready=7]="ready",tt[tt.error=8]="error",tt}(I||{});function F(tt){return!!tt&&tt<7}var V=c(4626),x=c(1404),ne=c(8008),J=ne.C.execute,be=c(560),Oe=c(4183),he=c(7994),we=function(tt,Ce){var Ve;try{Ve=JSON.stringify(tt)}catch(Mt){var nt=(0,x.vA)(39,Ce,Mt.message);throw nt.parseError=Mt,nt}return Ve},de=c(6500);function pe(tt){var Ce={next:function(){return tt.read()}};return de.uJ&&(Ce[Symbol.asyncIterator]=function(){return this}),Ce}function Pt(tt){var Ce=tt;if(function E(tt){return!!tt.body}(tt)&&(Ce=tt.body),function R(tt){return!(!de.uJ||!tt[Symbol.asyncIterator])}(Ce))return function H(tt){var Ce,Ve=tt[Symbol.asyncIterator]();return(Ce={next:function(){return Ve.next()}})[Symbol.asyncIterator]=function(){return this},Ce}(Ce);if(function S(tt){return!!tt.getReader}(Ce))return pe(Ce.getReader());if(function Y(tt){return!!tt.stream}(Ce))return pe(Ce.stream().getReader());if(function se(tt){return!!tt.arrayBuffer}(Ce))return function Z(tt){var Ce=!1,Ve={next:function(){return Ce?Promise.resolve({value:void 0,done:!0}):(Ce=!0,new Promise(function(nt,Mt){tt.then(function(Wt){nt({value:Wt,done:!1})}).catch(Mt)}))}};return de.uJ&&(Ve[Symbol.asyncIterator]=function(){return this}),Ve}(Ce.arrayBuffer());if(function Be(tt){return!!tt.pipe}(Ce))return function z(tt){var Ce=null,Ve=null,nt=!1,Mt=[],Wt=[];function tn(wn){if(!Ve){if(Wt.length){var Qn=Wt.shift();if(Array.isArray(Qn)&&Qn[0])return Qn[0]({value:wn,done:!1})}Mt.push(wn)}}function rn(wn){Ve=wn,Wt.slice().forEach(function(qn){qn[1](wn)}),!Ce||Ce()}function bn(){nt=!0,Wt.slice().forEach(function(Qn){Qn[0]({value:void 0,done:!0})}),!Ce||Ce()}Ce=function(){Ce=null,tt.removeListener("data",tn),tt.removeListener("error",rn),tt.removeListener("end",bn),tt.removeListener("finish",bn),tt.removeListener("close",bn)},tt.on("data",tn),tt.on("error",rn),tt.on("end",bn),tt.on("finish",bn),tt.on("close",bn);var Ln={next:function(){return function Mn(){return new Promise(function(wn,Qn){return Ve?Qn(Ve):Mt.length?wn({value:Mt.shift(),done:!1}):nt?wn({value:void 0,done:!0}):void Wt.push([wn,Qn])})}()}};return de.uJ&&(Ln[Symbol.asyncIterator]=function(){return this}),Ln}(Ce);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var vt=function(tt,Ce,Ve){var nt=new Error(Ve);throw nt.name="ServerError",nt.response=tt,nt.statusCode=tt.status,nt.result=Ce,nt},wt=c(1181),Le=Symbol(),Ct=function(tt){function Ce(Ve){var nt=Ve.graphQLErrors,Mt=Ve.protocolErrors,Wt=Ve.clientErrors,tn=Ve.networkError,rn=Ve.errorMessage,bn=Ve.extraInfo,Mn=tt.call(this,rn)||this;return Mn.name="ApolloError",Mn.graphQLErrors=nt||[],Mn.protocolErrors=Mt||[],Mn.clientErrors=Wt||[],Mn.networkError=tn||null,Mn.message=rn||function(tt){var Ce=(0,V.fX)((0,V.fX)((0,V.fX)([],tt.graphQLErrors,!0),tt.clientErrors,!0),tt.protocolErrors,!0);return tt.networkError&&Ce.push(tt.networkError),Ce.map(function(Ve){return(0,wt.U)(Ve)&&Ve.message||"Error message not found."}).join("\n")}(Mn),Mn.extraInfo=bn,Mn.cause=(0,V.fX)((0,V.fX)((0,V.fX)([tn],nt||[],!0),Mt||[],!0),Wt||[],!0).find(function(Ln){return!!Ln})||null,Mn.__proto__=Ce.prototype,Mn}return(0,V.C6)(Ce,tt),Ce}(Error),It=c(7715),Tt=c(1115);function en(tt){return"incremental"in tt}function fn(tt){return(0,wt.U)(tt)&&"payload"in tt}function Hn(tt,Ce){var Ve=tt,nt=new Tt.ZI;return en(Ce)&&(0,It.E)(Ce.incremental)&&Ce.incremental.forEach(function(Mt){for(var Wt=Mt.data,tn=Mt.path,rn=tn.length-1;rn>=0;--rn){var bn=tn[rn],Ln=isNaN(+bn)?{}:[];Ln[bn]=Wt,Wt=Ln}Ve=nt.merge(Ve,Wt)}),Ve}var zn=Object.prototype.hasOwnProperty;function At(tt){var Ce={};return tt.split("\n").forEach(function(Ve){var nt=Ve.indexOf(":");if(nt>-1){var Mt=Ve.slice(0,nt).trim().toLowerCase(),Wt=Ve.slice(nt+1).trim();Ce[Mt]=Wt}}),Ce}function Et(tt,Ce){tt.status>=300&&vt(tt,function(){try{return JSON.parse(Ce)}catch{return Ce}}(),"Response not successful: Received status code ".concat(tt.status));try{return JSON.parse(Ce)}catch(Mt){var nt=Mt;throw nt.name="ServerParseError",nt.response=tt,nt.statusCode=tt.status,nt.bodyText=Ce,nt}}var Ae=c(1658),Fe={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},et=function(tt,Ce){return Ce(tt)};function Wn(tt){return new he.c(function(Ce){Ce.error(tt)})}var kn=c(8540),Un=c(1601),dn=c(4229),qt=(0,x.no)(function(){return fetch}),On=function(tt){void 0===tt&&(tt={});var Ce=tt.uri,Ve=void 0===Ce?"/graphql":Ce,nt=tt.fetch,Mt=tt.print,Wt=void 0===Mt?et:Mt,tn=tt.includeExtensions,rn=tt.preserveHeaderCase,bn=tt.useGETForQueries,Mn=tt.includeUnusedVariables,Ln=void 0!==Mn&&Mn,wn=(0,V.Tt)(tt,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(tt){if(!tt&&typeof fetch>"u")throw(0,x.vA)(37)}(nt||qt);var Qn={http:{includeExtensions:tn,preserveHeaderCase:rn},options:wn.fetchOptions,credentials:wn.credentials,headers:wn.headers};return new ne.C(function(qn){var pi=function(tt,Ce){return tt.getContext().uri||("function"==typeof Ce?Ce(tt):Ce||"/graphql")}(qn,Ve),ei=qn.getContext(),li={};if(ei.clientAwareness){var ci=ei.clientAwareness,mi=ci.name,Ei=ci.version;mi&&(li["apollographql-client-name"]=mi),Ei&&(li["apollographql-client-version"]=Ei)}var Xi=(0,V.Cl)((0,V.Cl)({},li),ei.headers),Si={http:ei.http,options:ei.fetchOptions,credentials:ei.credentials,headers:Xi};if((0,Oe.d8)(["client"],qn.query)){var eo=(0,Un.er)(qn.query);if(!eo)return Wn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));qn.query=eo}var _o,ao=function Kt(tt,Ce){for(var Ve=[],nt=2;nt-1;){if(li=void 0,ao=[rn.slice(0,ei),rn.slice(ei+tn.length)],rn=ao[1],ci=(li=ao[0]).indexOf("\r\n\r\n"),mi=At(li.slice(0,ci)),(Ei=mi["content-type"])&&-1===Ei.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(Xi=li.slice(ci))if(Si=Et(tt,Xi),Object.keys(Si).length>1||"data"in Si||"incremental"in Si||"errors"in Si||"payload"in Si)if(fn(Si)){if(eo={},"payload"in Si){if(1===Object.keys(Si).length&&null===Si.payload)return[2];eo=(0,V.Cl)({},Si.payload)}"errors"in Si&&(eo=(0,V.Cl)((0,V.Cl)({},eo),{extensions:(0,V.Cl)((0,V.Cl)({},"extensions"in eo?eo.extensions:null),(io={},io[Le]=Si.errors,io))})),Ce(eo)}else Ce(Si);else if(1===Object.keys(Si).length&&"hasNext"in Si&&!Si.hasNext)return[2];ei=rn.indexOf(tn)}return[3,1];case 3:return[2]}})})}(Uo,Fr):function Yt(tt){return function(Ce){return Ce.text().then(function(Ve){return Et(Ce,Ve)}).then(function(Ve){return!Array.isArray(Ve)&&!zn.call(Ve,"data")&&!zn.call(Ve,"errors")&&vt(Ce,Ve,"Server response was missing for query '".concat(Array.isArray(tt)?tt.map(function(nt){return nt.operationName}):tt.operationName,"'.")),Ve})}}(qn)(Uo).then(Fr)}).then(function(){_o=void 0,Ao.complete()}).catch(function(Uo){_o=void 0,function Ot(tt,Ce){tt.result&&tt.result.errors&&tt.result.data&&Ce.next(tt.result),Ce.error(tt)}(Uo,Ao)}),function(){_o&&_o.abort()}})})},Ut=function(tt){function Ce(Ve){void 0===Ve&&(Ve={});var nt=tt.call(this,On(Ve).request)||this;return nt.options=Ve,nt}return(0,V.C6)(Ce,tt),Ce}(ne.C),Ye=c(9860),ue=c(2130),te=c(8926);function q(tt,Ce,Ve){return new he.c(function(nt){var Mt={then:function(bn){return new Promise(function(Mn){return Mn(bn())})}};function Wt(bn,Mn){return function(Ln){if(bn){var wn=function(){return nt.closed?0:bn(Ln)};Mt=Mt.then(wn,wn).then(function(Qn){return nt.next(Qn)},function(Qn){return nt.error(Qn)})}else nt[Mn](Ln)}}var tn={next:Wt(Ce,"next"),error:Wt(Ve,"error"),complete:function(){Mt.then(function(){return nt.complete()})}},rn=tt.subscribe(tn);return function(){return rn.unsubscribe()}})}function Xe(tt){var Ce=dt(tt);return(0,It.E)(Ce)}function dt(tt){var Ce=(0,It.E)(tt.errors)?tt.errors.slice(0):[];return en(tt)&&(0,It.E)(tt.incremental)&&tt.incremental.forEach(function(Ve){Ve.errors&&Ce.push.apply(Ce,Ve.errors)}),Ce}var at=c(1367),St=c(9977);function Qe(tt,Ce,Ve){var nt=[];tt.forEach(function(Mt){return Mt[Ce]&&nt.push(Mt)}),nt.forEach(function(Mt){return Mt[Ce](Ve)})}function Ee(tt){function Ce(Ve){Object.defineProperty(tt,Ve,{value:he.c})}return de.ol&&Symbol.species&&Ce(Symbol.species),Ce("@@species"),tt}function Je(tt){return tt&&"function"==typeof tt.then}var re=function(tt){function Ce(Ve){var nt=tt.call(this,function(Mt){return nt.addObserver(Mt),function(){return nt.removeObserver(Mt)}})||this;return nt.observers=new Set,nt.promise=new Promise(function(Mt,Wt){nt.resolve=Mt,nt.reject=Wt}),nt.handlers={next:function(Mt){null!==nt.sub&&(nt.latest=["next",Mt],nt.notify("next",Mt),Qe(nt.observers,"next",Mt))},error:function(Mt){var Wt=nt.sub;null!==Wt&&(Wt&&setTimeout(function(){return Wt.unsubscribe()}),nt.sub=null,nt.latest=["error",Mt],nt.reject(Mt),nt.notify("error",Mt),Qe(nt.observers,"error",Mt))},complete:function(){var Wt=nt.sub,tn=nt.sources;if(null!==Wt){var bn=(void 0===tn?[]:tn).shift();bn?Je(bn)?bn.then(function(Mn){return nt.sub=Mn.subscribe(nt.handlers)},nt.handlers.error):nt.sub=bn.subscribe(nt.handlers):(Wt&&setTimeout(function(){return Wt.unsubscribe()}),nt.sub=null,nt.latest&&"next"===nt.latest[0]?nt.resolve(nt.latest[1]):nt.resolve(),nt.notify("complete"),Qe(nt.observers,"complete"))}}},nt.nextResultListeners=new Set,nt.cancel=function(Mt){nt.reject(Mt),nt.sources=[],nt.handlers.complete()},nt.promise.catch(function(Mt){}),"function"==typeof Ve&&(Ve=[new he.c(Ve)]),Je(Ve)?Ve.then(function(Mt){return nt.start(Mt)},nt.handlers.error):nt.start(Ve),nt}return(0,V.C6)(Ce,tt),Ce.prototype.start=function(Ve){void 0===this.sub&&(this.sources=Array.from(Ve),this.handlers.complete())},Ce.prototype.deliverLastMessage=function(Ve){if(this.latest){var nt=this.latest[0],Mt=Ve[nt];Mt&&Mt.call(Ve,this.latest[1]),null===this.sub&&"next"===nt&&Ve.complete&&Ve.complete()}},Ce.prototype.addObserver=function(Ve){this.observers.has(Ve)||(this.deliverLastMessage(Ve),this.observers.add(Ve))},Ce.prototype.removeObserver=function(Ve){this.observers.delete(Ve)&&this.observers.size<1&&this.handlers.complete()},Ce.prototype.notify=function(Ve,nt){var Mt=this.nextResultListeners;Mt.size&&(this.nextResultListeners=new Set,Mt.forEach(function(Wt){return Wt(Ve,nt)}))},Ce.prototype.beforeNext=function(Ve){var nt=!1;this.nextResultListeners.add(function(Mt,Wt){nt||(nt=!0,Ve(Mt,Wt))})},Ce}(he.c);Ee(re);var ze=c(120),gt=c(4246),Ke=c(9471),Pe=Object.assign,Re=Object.hasOwnProperty,$=function(tt){function Ce(Ve){var nt=Ve.queryManager,Mt=Ve.queryInfo,Wt=Ve.options,tn=tt.call(this,function(li){try{var ci=li._subscription._observer;ci&&!ci.error&&(ci.error=N)}catch{}var mi=!tn.observers.size;tn.observers.add(li);var Ei=tn.last;return Ei&&Ei.error?li.error&&li.error(Ei.error):Ei&&Ei.result&&li.next&&li.next(Ei.result),mi&&tn.reobserve().catch(function(){}),function(){tn.observers.delete(li)&&!tn.observers.size&&tn.tearDownQuery()}})||this;tn.observers=new Set,tn.subscriptions=new Set,tn.queryInfo=Mt,tn.queryManager=nt,tn.waitForOwnResult=ve(Wt.fetchPolicy),tn.isTornDown=!1,tn.subscribeToMore=tn.subscribeToMore.bind(tn);var rn=nt.defaultOptions.watchQuery,Mn=(void 0===rn?{}:rn).fetchPolicy,Ln=void 0===Mn?"cache-first":Mn,wn=Wt.fetchPolicy,Qn=void 0===wn?Ln:wn,qn=Wt.initialFetchPolicy,pi=void 0===qn?"standby"===Qn?Ln:Qn:qn;tn.options=(0,V.Cl)((0,V.Cl)({},Wt),{initialFetchPolicy:pi,fetchPolicy:Qn}),tn.queryId=Mt.queryId||nt.generateQueryId();var ei=(0,dn.Vu)(tn.query);return tn.queryName=ei&&ei.name&&ei.name.value,tn}return(0,V.C6)(Ce,tt),Object.defineProperty(Ce.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),Ce.prototype.result=function(){var Ve=this;return new Promise(function(nt,Mt){var Wt={next:function(rn){nt(rn),Ve.observers.delete(Wt),Ve.observers.size||Ve.queryManager.removeQuery(Ve.queryId),setTimeout(function(){tn.unsubscribe()},0)},error:Mt},tn=Ve.subscribe(Wt)})},Ce.prototype.resetDiff=function(){this.queryInfo.resetDiff()},Ce.prototype.getCurrentResult=function(Ve){void 0===Ve&&(Ve=!0);var nt=this.getLastResult(!0),Mt=this.queryInfo.networkStatus||nt&&nt.networkStatus||I.ready,Wt=(0,V.Cl)((0,V.Cl)({},nt),{loading:F(Mt),networkStatus:Mt}),tn=this.options.fetchPolicy,rn=void 0===tn?"cache-first":tn;if(!ve(rn)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var bn=this.queryInfo.getDiff();(bn.complete||this.options.returnPartialData)&&(Wt.data=bn.result),(0,Ye.L)(Wt.data,{})&&(Wt.data=void 0),bn.complete?(delete Wt.partial,bn.complete&&Wt.networkStatus===I.loading&&("cache-first"===rn||"cache-only"===rn)&&(Wt.networkStatus=I.ready,Wt.loading=!1)):Wt.partial=!0,!1!==globalThis.__DEV__&&!bn.complete&&!this.options.partialRefetch&&!Wt.loading&&!Wt.data&&!Wt.error&&ke(bn.missing)}return Ve&&this.updateLastResult(Wt),Wt},Ce.prototype.isDifferentFromLastResult=function(Ve,nt){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,Ke.a)(this.query,this.last.result,Ve,this.variables):!(0,Ye.L)(this.last.result,Ve))||nt&&!(0,Ye.L)(this.last.variables,nt)},Ce.prototype.getLast=function(Ve,nt){var Mt=this.last;if(Mt&&Mt[Ve]&&(!nt||(0,Ye.L)(Mt.variables,this.variables)))return Mt[Ve]},Ce.prototype.getLastResult=function(Ve){return this.getLast("result",Ve)},Ce.prototype.getLastError=function(Ve){return this.getLast("error",Ve)},Ce.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},Ce.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},Ce.prototype.refetch=function(Ve){var nt,Mt={pollInterval:0},Wt=this.options.fetchPolicy;if(Mt.fetchPolicy="cache-and-network"===Wt?Wt:"no-cache"===Wt?"no-cache":"network-only",!1!==globalThis.__DEV__&&Ve&&Re.call(Ve,"variables")){var tn=(0,dn.AT)(this.query),rn=tn.variableDefinitions;(!rn||!rn.some(function(bn){return"variables"===bn.variable.name.value}))&&!1!==globalThis.__DEV__&&x.V1.warn(20,Ve,(null===(nt=tn.name)||void 0===nt?void 0:nt.value)||tn)}return Ve&&!(0,Ye.L)(this.options.variables,Ve)&&(Mt.variables=this.options.variables=(0,V.Cl)((0,V.Cl)({},this.options.variables),Ve)),this.queryInfo.resetLastWrite(),this.reobserve(Mt,I.refetch)},Ce.prototype.fetchMore=function(Ve){var nt=this,Mt=(0,V.Cl)((0,V.Cl)({},Ve.query?Ve:(0,V.Cl)((0,V.Cl)((0,V.Cl)((0,V.Cl)({},this.options),{query:this.options.query}),Ve),{variables:(0,V.Cl)((0,V.Cl)({},this.options.variables),Ve.variables)})),{fetchPolicy:"no-cache"});Mt.query=this.transformDocument(Mt.query);var Wt=this.queryManager.generateQueryId();this.lastQuery=Ve.query?this.transformDocument(this.options.query):Mt.query;var tn=this.queryInfo,rn=tn.networkStatus;tn.networkStatus=I.fetchMore,Mt.notifyOnNetworkStatusChange&&this.observe();var bn=new Set;return this.queryManager.fetchQuery(Wt,Mt,I.fetchMore).then(function(Mn){return nt.queryManager.removeQuery(Wt),tn.networkStatus===I.fetchMore&&(tn.networkStatus=rn),nt.queryManager.cache.batch({update:function(Ln){var wn=Ve.updateQuery;wn?Ln.updateQuery({query:nt.query,variables:nt.variables,returnPartialData:!0,optimistic:!1},function(Qn){return wn(Qn,{fetchMoreResult:Mn.data,variables:Mt.variables})}):Ln.writeQuery({query:Mt.query,variables:Mt.variables,data:Mn.data})},onWatchUpdated:function(Ln){bn.add(Ln.query)}}),Mn}).finally(function(){bn.has(nt.query)||ce(nt)})},Ce.prototype.subscribeToMore=function(Ve){var nt=this,Mt=this.queryManager.startGraphQLSubscription({query:Ve.document,variables:Ve.variables,context:Ve.context}).subscribe({next:function(Wt){var tn=Ve.updateQuery;tn&&nt.updateQuery(function(rn,bn){return tn(rn,{subscriptionData:Wt,variables:bn.variables})})},error:function(Wt){Ve.onError?Ve.onError(Wt):!1!==globalThis.__DEV__&&x.V1.error(21,Wt)}});return this.subscriptions.add(Mt),function(){nt.subscriptions.delete(Mt)&&Mt.unsubscribe()}},Ce.prototype.setOptions=function(Ve){return this.reobserve(Ve)},Ce.prototype.silentSetOptions=function(Ve){var nt=(0,ze.o)(this.options,Ve||{});Pe(this.options,nt)},Ce.prototype.setVariables=function(Ve){return(0,Ye.L)(this.variables,Ve)?this.observers.size?this.result():Promise.resolve():(this.options.variables=Ve,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:Ve},I.setVariables):Promise.resolve())},Ce.prototype.updateQuery=function(Ve){var nt=this.queryManager,Wt=Ve(nt.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});Wt&&(nt.cache.writeQuery({query:this.options.query,data:Wt,variables:this.variables}),nt.broadcastQueries())},Ce.prototype.startPolling=function(Ve){this.options.pollInterval=Ve,this.updatePolling()},Ce.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},Ce.prototype.applyNextFetchPolicy=function(Ve,nt){if(nt.nextFetchPolicy){var Mt=nt.fetchPolicy,Wt=void 0===Mt?"cache-first":Mt,tn=nt.initialFetchPolicy,rn=void 0===tn?Wt:tn;"standby"===Wt||(nt.fetchPolicy="function"==typeof nt.nextFetchPolicy?nt.nextFetchPolicy(Wt,{reason:Ve,options:nt,observable:this,initialFetchPolicy:rn}):"variables-changed"===Ve?rn:nt.nextFetchPolicy)}return nt.fetchPolicy},Ce.prototype.fetch=function(Ve,nt,Mt){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,Ve,nt,Mt)},Ce.prototype.updatePolling=function(){var Ve=this;if(!this.queryManager.ssrMode){var Mt=this.pollingInfo,Wt=this.options.pollInterval;if(!Wt||!this.hasObservers())return void(Mt&&(clearTimeout(Mt.timeout),delete this.pollingInfo));if(!Mt||Mt.interval!==Wt){(0,x.V1)(Wt,22),(Mt||(this.pollingInfo={})).interval=Wt;var rn=function(){var Mn,Ln;Ve.pollingInfo&&(F(Ve.queryInfo.networkStatus)||null!==(Ln=(Mn=Ve.options).skipPollAttempt)&&void 0!==Ln&&Ln.call(Mn)?bn():Ve.reobserve({fetchPolicy:"no-cache"===Ve.options.initialFetchPolicy?"no-cache":"network-only"},I.poll).then(bn,bn))},bn=function(){var Mn=Ve.pollingInfo;Mn&&(clearTimeout(Mn.timeout),Mn.timeout=setTimeout(rn,Mn.interval))};bn()}}},Ce.prototype.updateLastResult=function(Ve,nt){void 0===nt&&(nt=this.variables);var Mt=this.getLastError();return Mt&&this.last&&!(0,Ye.L)(nt,this.last.variables)&&(Mt=void 0),this.last=(0,V.Cl)({result:this.queryManager.assumeImmutableResults?Ve:(0,gt.m)(Ve),variables:nt},Mt?{error:Mt}:null)},Ce.prototype.reobserveAsConcast=function(Ve,nt){var Mt=this;this.isTornDown=!1;var Wt=nt===I.refetch||nt===I.fetchMore||nt===I.poll,tn=this.options.variables,rn=this.options.fetchPolicy,bn=(0,ze.o)(this.options,Ve||{}),Mn=Wt?bn:Pe(this.options,bn),Ln=this.transformDocument(Mn.query);this.lastQuery=Ln,Wt||(this.updatePolling(),Ve&&Ve.variables&&!(0,Ye.L)(Ve.variables,tn)&&"standby"!==Mn.fetchPolicy&&(Mn.fetchPolicy===rn||"function"==typeof Mn.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",Mn),void 0===nt&&(nt=I.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=ve(Mn.fetchPolicy));var wn=function(){Mt.concast===pi&&(Mt.waitForOwnResult=!1)},Qn=Mn.variables&&(0,V.Cl)({},Mn.variables),qn=this.fetch(Mn,nt,Ln),pi=qn.concast,li={next:function(ci){(0,Ye.L)(Mt.variables,Qn)&&(wn(),Mt.reportResult(ci,Qn))},error:function(ci){(0,Ye.L)(Mt.variables,Qn)&&(wn(),Mt.reportError(ci,Qn))}};return!Wt&&(qn.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=pi,this.observer=li),pi.addObserver(li),pi},Ce.prototype.reobserve=function(Ve,nt){return this.reobserveAsConcast(Ve,nt).promise},Ce.prototype.resubscribeAfterError=function(){for(var Ve=[],nt=0;nt0},Ce.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(Ve){return Ve.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},Ce.prototype.transformDocument=function(Ve){return this.queryManager.transform(Ve)},Ce}(he.c);function ce(tt){var Ce=tt.options,Ve=Ce.fetchPolicy,nt=Ce.nextFetchPolicy;return"cache-and-network"===Ve||"network-only"===Ve?tt.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(Mt,Wt){return this.nextFetchPolicy=nt,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(Mt,Wt):Ve}}):tt.reobserve()}function N(tt){!1!==globalThis.__DEV__&&x.V1.error(23,tt.message,tt.stack)}function ke(tt){!1!==globalThis.__DEV__&&tt&&!1!==globalThis.__DEV__&&x.V1.debug(24,tt)}function ve(tt){return"network-only"===tt||"no-cache"===tt||"standby"===tt}Ee($);var K=new(de.et?WeakMap:Map);function U(tt,Ce){var Ve=tt[Ce];"function"==typeof Ve&&(tt[Ce]=function(){return K.set(tt,(K.get(tt)+1)%1e15),Ve.apply(this,arguments)})}function ge(tt){tt.notifyTimeout&&(clearTimeout(tt.notifyTimeout),tt.notifyTimeout=void 0)}var qe=function(){function tt(Ce,Ve){void 0===Ve&&(Ve=Ce.generateQueryId()),this.queryId=Ve,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var nt=this.cache=Ce.cache;K.has(nt)||(K.set(nt,0),U(nt,"evict"),U(nt,"modify"),U(nt,"reset"))}return tt.prototype.init=function(Ce){var Ve=Ce.networkStatus||I.loading;return this.variables&&this.networkStatus!==I.loading&&!(0,Ye.L)(this.variables,Ce.variables)&&(Ve=I.setVariables),(0,Ye.L)(Ce.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:Ce.document,variables:Ce.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:Ve}),Ce.observableQuery&&this.setObservableQuery(Ce.observableQuery),Ce.lastRequestId&&(this.lastRequestId=Ce.lastRequestId),this},tt.prototype.reset=function(){ge(this),this.dirty=!1},tt.prototype.resetDiff=function(){this.lastDiff=void 0},tt.prototype.getDiff=function(){var Ce=this.getDiffOptions();if(this.lastDiff&&(0,Ye.L)(Ce,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var Ve=this.observableQuery;if(Ve&&"no-cache"===Ve.options.fetchPolicy)return{complete:!1};var nt=this.cache.diff(Ce);return this.updateLastDiff(nt,Ce),nt},tt.prototype.updateLastDiff=function(Ce,Ve){this.lastDiff=Ce?{diff:Ce,options:Ve||this.getDiffOptions()}:void 0},tt.prototype.getDiffOptions=function(Ce){var Ve;return void 0===Ce&&(Ce=this.variables),{query:this.document,variables:Ce,returnPartialData:!0,optimistic:!0,canonizeResults:null===(Ve=this.observableQuery)||void 0===Ve?void 0:Ve.options.canonizeResults}},tt.prototype.setDiff=function(Ce){var nt,Ve=this,Mt=this.lastDiff&&this.lastDiff.diff;Ce&&!Ce.complete&&null!==(nt=this.observableQuery)&&void 0!==nt&&nt.getLastError()||(this.updateLastDiff(Ce),!this.dirty&&!(0,Ye.L)(Mt&&Mt.result,Ce&&Ce.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return Ve.notify()},0))))},tt.prototype.setObservableQuery=function(Ce){var Ve=this;Ce!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=Ce,Ce?(Ce.queryInfo=this,this.listeners.add(this.oqListener=function(){Ve.getDiff().fromOptimisticTransaction?Ce.observe():ce(Ce)})):delete this.oqListener)},tt.prototype.notify=function(){var Ce=this;ge(this),this.shouldNotify()&&this.listeners.forEach(function(Ve){return Ve(Ce)}),this.dirty=!1},tt.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(F(this.networkStatus)&&this.observableQuery){var Ce=this.observableQuery.options.fetchPolicy;if("cache-only"!==Ce&&"cache-and-network"!==Ce)return!1}return!0},tt.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=tt.prototype.cancel;var Ce=this.observableQuery;Ce&&Ce.stopPolling()}},tt.prototype.cancel=function(){},tt.prototype.updateWatch=function(Ce){var Ve=this;void 0===Ce&&(Ce=this.variables);var nt=this.observableQuery;if(!nt||"no-cache"!==nt.options.fetchPolicy){var Mt=(0,V.Cl)((0,V.Cl)({},this.getDiffOptions(Ce)),{watcher:this,callback:function(Wt){return Ve.setDiff(Wt)}});(!this.lastWatch||!(0,Ye.L)(Mt,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=Mt))}},tt.prototype.resetLastWrite=function(){this.lastWrite=void 0},tt.prototype.shouldWrite=function(Ce,Ve){var nt=this.lastWrite;return!(nt&&nt.dmCount===K.get(this.cache)&&(0,Ye.L)(Ve,nt.variables)&&(0,Ye.L)(Ce.data,nt.result.data))},tt.prototype.markResult=function(Ce,Ve,nt,Mt){var Wt=this,tn=new Tt.ZI,rn=(0,It.E)(Ce.errors)?Ce.errors.slice(0):[];if(this.reset(),"incremental"in Ce&&(0,It.E)(Ce.incremental)){var bn=Hn(this.getDiff().result,Ce);Ce.data=bn}else if("hasNext"in Ce&&Ce.hasNext){var Mn=this.getDiff();Ce.data=tn.merge(Mn.result,Ce.data)}this.graphQLErrors=rn,"no-cache"===nt.fetchPolicy?this.updateLastDiff({result:Ce.data,complete:!0},this.getDiffOptions(nt.variables)):0!==Mt&&(rt(Ce,nt.errorPolicy)?this.cache.performTransaction(function(Ln){if(Wt.shouldWrite(Ce,nt.variables))Ln.writeQuery({query:Ve,data:Ce.data,variables:nt.variables,overwrite:1===Mt}),Wt.lastWrite={result:Ce,variables:nt.variables,dmCount:K.get(Wt.cache)};else if(Wt.lastDiff&&Wt.lastDiff.diff.complete)return void(Ce.data=Wt.lastDiff.diff.result);var wn=Wt.getDiffOptions(nt.variables),Qn=Ln.diff(wn);!Wt.stopped&&(0,Ye.L)(Wt.variables,nt.variables)&&Wt.updateWatch(nt.variables),Wt.updateLastDiff(Qn,wn),Qn.complete&&(Ce.data=Qn.result)}):this.lastWrite=void 0)},tt.prototype.markReady=function(){return this.networkError=null,this.networkStatus=I.ready},tt.prototype.markError=function(Ce){return this.networkStatus=I.error,this.lastWrite=void 0,this.reset(),Ce.graphQLErrors&&(this.graphQLErrors=Ce.graphQLErrors),Ce.networkError&&(this.networkError=Ce.networkError),Ce},tt}();function rt(tt,Ce){void 0===Ce&&(Ce="none");var Ve="ignore"===Ce||"all"===Ce,nt=!Xe(tt);return!nt&&Ve&&tt.data&&(nt=!0),nt}var Ft=c(4420),on=c(2170),Cn=c(2151),Zn=Object.prototype.hasOwnProperty,jn=Object.create(null),Gn=function(){function tt(Ce){var Ve=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new on.A(Cn.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Ft.b(!1);var nt=new te.c(function(Wt){return Ve.cache.transformDocument(Wt)},{cache:!1});this.cache=Ce.cache,this.link=Ce.link,this.defaultOptions=Ce.defaultOptions,this.queryDeduplication=Ce.queryDeduplication,this.clientAwareness=Ce.clientAwareness,this.localState=Ce.localState,this.ssrMode=Ce.ssrMode,this.assumeImmutableResults=Ce.assumeImmutableResults;var Mt=Ce.documentTransform;this.documentTransform=Mt?nt.concat(Mt).concat(nt):nt,this.defaultContext=Ce.defaultContext||Object.create(null),(this.onBroadcast=Ce.onBroadcast)&&(this.mutationStore=Object.create(null))}return tt.prototype.stop=function(){var Ce=this;this.queries.forEach(function(Ve,nt){Ce.stopQueryNoBroadcast(nt)}),this.cancelPendingFetches((0,x.vA)(25))},tt.prototype.cancelPendingFetches=function(Ce){this.fetchCancelFns.forEach(function(Ve){return Ve(Ce)}),this.fetchCancelFns.clear()},tt.prototype.mutate=function(Ce){return(0,V.sH)(this,arguments,void 0,function(Ve){var nt,Mt,Wt,tn,rn,bn,Mn,Ln=Ve.mutation,wn=Ve.variables,Qn=Ve.optimisticResponse,qn=Ve.updateQueries,pi=Ve.refetchQueries,ei=void 0===pi?[]:pi,li=Ve.awaitRefetchQueries,ci=void 0!==li&&li,mi=Ve.update,Ei=Ve.onQueryUpdated,Xi=Ve.fetchPolicy,Si=void 0===Xi?(null===(bn=this.defaultOptions.mutate)||void 0===bn?void 0:bn.fetchPolicy)||"network-only":Xi,eo=Ve.errorPolicy,ao=void 0===eo?(null===(Mn=this.defaultOptions.mutate)||void 0===Mn?void 0:Mn.errorPolicy)||"none":eo,io=Ve.keepRootFields,An=Ve.context;return(0,V.YH)(this,function(_o){switch(_o.label){case 0:return(0,x.V1)(Ln,26),(0,x.V1)("network-only"===Si||"no-cache"===Si,27),nt=this.generateMutationId(),Ln=this.cache.transformForLink(this.transform(Ln)),Mt=this.getDocumentInfo(Ln).hasClientExports,wn=this.getVariables(Ln,wn),Mt?[4,this.localState.addExportedVariables(Ln,wn,An)]:[3,2];case 1:wn=_o.sent(),_o.label=2;case 2:return Wt=this.mutationStore&&(this.mutationStore[nt]={mutation:Ln,variables:wn,loading:!0,error:null}),tn=Qn&&this.markMutationOptimistic(Qn,{mutationId:nt,document:Ln,variables:wn,fetchPolicy:Si,errorPolicy:ao,context:An,updateQueries:qn,update:mi,keepRootFields:io}),this.broadcastQueries(),rn=this,[2,new Promise(function(ir,Ur){return q(rn.getObservableFromLink(Ln,(0,V.Cl)((0,V.Cl)({},An),{optimisticResponse:tn?Qn:void 0}),wn,{},!1),function(Do){if(Xe(Do)&&"none"===ao)throw new Ct({graphQLErrors:dt(Do)});Wt&&(Wt.loading=!1,Wt.error=null);var Qo=(0,V.Cl)({},Do);return"function"==typeof ei&&(ei=ei(Qo)),"ignore"===ao&&Xe(Qo)&&delete Qo.errors,rn.markMutationResult({mutationId:nt,result:Qo,document:Ln,variables:wn,fetchPolicy:Si,errorPolicy:ao,context:An,update:mi,updateQueries:qn,awaitRefetchQueries:ci,refetchQueries:ei,removeOptimistic:tn?nt:void 0,onQueryUpdated:Ei,keepRootFields:io})}).subscribe({next:function(Do){rn.broadcastQueries(),(!("hasNext"in Do)||!1===Do.hasNext)&&ir(Do)},error:function(Do){Wt&&(Wt.loading=!1,Wt.error=Do),tn&&rn.cache.removeOptimistic(nt),rn.broadcastQueries(),Ur(Do instanceof Ct?Do:new Ct({networkError:Do}))}})})]}})})},tt.prototype.markMutationResult=function(Ce,Ve){var nt=this;void 0===Ve&&(Ve=this.cache);var Mt=Ce.result,Wt=[],tn="no-cache"===Ce.fetchPolicy;if(!tn&&rt(Mt,Ce.errorPolicy)){if(en(Mt)||Wt.push({result:Mt.data,dataId:"ROOT_MUTATION",query:Ce.document,variables:Ce.variables}),en(Mt)&&(0,It.E)(Mt.incremental)){var rn=Ve.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(Ce.document).asQuery,variables:Ce.variables,optimistic:!1,returnPartialData:!0}),bn=void 0;rn.result&&(bn=Hn(rn.result,Mt)),typeof bn<"u"&&(Mt.data=bn,Wt.push({result:bn,dataId:"ROOT_MUTATION",query:Ce.document,variables:Ce.variables}))}var Mn=Ce.updateQueries;Mn&&this.queries.forEach(function(wn,Qn){var qn=wn.observableQuery,pi=qn&&qn.queryName;if(pi&&Zn.call(Mn,pi)){var ei=Mn[pi],li=nt.queries.get(Qn),ci=li.document,mi=li.variables,Ei=Ve.diff({query:ci,variables:mi,returnPartialData:!0,optimistic:!1}),Xi=Ei.result;if(Ei.complete&&Xi){var eo=ei(Xi,{mutationResult:Mt,queryName:ci&&(0,dn.n4)(ci)||void 0,queryVariables:mi});eo&&Wt.push({result:eo,dataId:"ROOT_QUERY",query:ci,variables:mi})}}})}if(Wt.length>0||(Ce.refetchQueries||"").length>0||Ce.update||Ce.onQueryUpdated||Ce.removeOptimistic){var Ln=[];if(this.refetchQueries({updateCache:function(wn){tn||Wt.forEach(function(ei){return wn.write(ei)});var Qn=Ce.update,qn=!function Vt(tt){return en(tt)||function jt(tt){return"hasNext"in tt&&"data"in tt}(tt)}(Mt)||en(Mt)&&!Mt.hasNext;if(Qn){if(!tn){var pi=wn.diff({id:"ROOT_MUTATION",query:nt.getDocumentInfo(Ce.document).asQuery,variables:Ce.variables,optimistic:!1,returnPartialData:!0});pi.complete&&("incremental"in(Mt=(0,V.Cl)((0,V.Cl)({},Mt),{data:pi.result}))&&delete Mt.incremental,"hasNext"in Mt&&delete Mt.hasNext)}qn&&Qn(wn,Mt,{context:Ce.context,variables:Ce.variables})}!tn&&!Ce.keepRootFields&&qn&&wn.modify({id:"ROOT_MUTATION",fields:function(ei,li){return"__typename"===li.fieldName?ei:li.DELETE}})},include:Ce.refetchQueries,optimistic:!1,removeOptimistic:Ce.removeOptimistic,onQueryUpdated:Ce.onQueryUpdated||null}).forEach(function(wn){return Ln.push(wn)}),Ce.awaitRefetchQueries||Ce.onQueryUpdated)return Promise.all(Ln).then(function(){return Mt})}return Promise.resolve(Mt)},tt.prototype.markMutationOptimistic=function(Ce,Ve){var nt=this,Mt="function"==typeof Ce?Ce(Ve.variables,{IGNORE:jn}):Ce;return Mt!==jn&&(this.cache.recordOptimisticTransaction(function(Wt){try{nt.markMutationResult((0,V.Cl)((0,V.Cl)({},Ve),{result:{data:Mt}}),Wt)}catch(tn){!1!==globalThis.__DEV__&&x.V1.error(tn)}},Ve.mutationId),!0)},tt.prototype.fetchQuery=function(Ce,Ve,nt){return this.fetchConcastWithInfo(Ce,Ve,nt).concast.promise},tt.prototype.getQueryStore=function(){var Ce=Object.create(null);return this.queries.forEach(function(Ve,nt){Ce[nt]={variables:Ve.variables,networkStatus:Ve.networkStatus,networkError:Ve.networkError,graphQLErrors:Ve.graphQLErrors}}),Ce},tt.prototype.resetErrors=function(Ce){var Ve=this.queries.get(Ce);Ve&&(Ve.networkError=void 0,Ve.graphQLErrors=[])},tt.prototype.transform=function(Ce){return this.documentTransform.transformDocument(Ce)},tt.prototype.getDocumentInfo=function(Ce){var Ve=this.transformCache;if(!Ve.has(Ce)){var nt={hasClientExports:(0,Oe.f2)(Ce),hasForcedResolvers:this.localState.shouldForceResolvers(Ce),hasNonreactiveDirective:(0,Oe.d8)(["nonreactive"],Ce),clientQuery:this.localState.clientQuery(Ce),serverQuery:(0,Un.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],Ce),defaultVars:(0,dn.wY)((0,dn.Vu)(Ce)),asQuery:(0,V.Cl)((0,V.Cl)({},Ce),{definitions:Ce.definitions.map(function(Mt){return"OperationDefinition"===Mt.kind&&"query"!==Mt.operation?(0,V.Cl)((0,V.Cl)({},Mt),{operation:"query"}):Mt})})};Ve.set(Ce,nt)}return Ve.get(Ce)},tt.prototype.getVariables=function(Ce,Ve){return(0,V.Cl)((0,V.Cl)({},this.getDocumentInfo(Ce).defaultVars),Ve)},tt.prototype.watchQuery=function(Ce){var Ve=this.transform(Ce.query);typeof(Ce=(0,V.Cl)((0,V.Cl)({},Ce),{variables:this.getVariables(Ve,Ce.variables)})).notifyOnNetworkStatusChange>"u"&&(Ce.notifyOnNetworkStatusChange=!1);var nt=new qe(this),Mt=new $({queryManager:this,queryInfo:nt,options:Ce});return Mt.lastQuery=Ve,this.queries.set(Mt.queryId,nt),nt.init({document:Ve,observableQuery:Mt,variables:Mt.variables}),Mt},tt.prototype.query=function(Ce,Ve){var nt=this;return void 0===Ve&&(Ve=this.generateQueryId()),(0,x.V1)(Ce.query,28),(0,x.V1)("Document"===Ce.query.kind,29),(0,x.V1)(!Ce.returnPartialData,30),(0,x.V1)(!Ce.pollInterval,31),this.fetchQuery(Ve,(0,V.Cl)((0,V.Cl)({},Ce),{query:this.transform(Ce.query)})).finally(function(){return nt.stopQuery(Ve)})},tt.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},tt.prototype.generateRequestId=function(){return this.requestIdCounter++},tt.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},tt.prototype.stopQueryInStore=function(Ce){this.stopQueryInStoreNoBroadcast(Ce),this.broadcastQueries()},tt.prototype.stopQueryInStoreNoBroadcast=function(Ce){var Ve=this.queries.get(Ce);Ve&&Ve.stop()},tt.prototype.clearStore=function(Ce){return void 0===Ce&&(Ce={discardWatches:!0}),this.cancelPendingFetches((0,x.vA)(32)),this.queries.forEach(function(Ve){Ve.observableQuery?Ve.networkStatus=I.loading:Ve.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(Ce)},tt.prototype.getObservableQueries=function(Ce){var Ve=this;void 0===Ce&&(Ce="active");var nt=new Map,Mt=new Map,Wt=new Set;return Array.isArray(Ce)&&Ce.forEach(function(tn){"string"==typeof tn?Mt.set(tn,!1):(0,at.Kc)(tn)?Mt.set(Ve.transform(tn),!1):(0,wt.U)(tn)&&tn.query&&Wt.add(tn)}),this.queries.forEach(function(tn,rn){var bn=tn.observableQuery,Mn=tn.document;if(bn){if("all"===Ce)return void nt.set(rn,bn);var Ln=bn.queryName;if("standby"===bn.options.fetchPolicy||"active"===Ce&&!bn.hasObservers())return;("active"===Ce||Ln&&Mt.has(Ln)||Mn&&Mt.has(Mn))&&(nt.set(rn,bn),Ln&&Mt.set(Ln,!0),Mn&&Mt.set(Mn,!0))}}),Wt.size&&Wt.forEach(function(tn){var rn=(0,St.v)("legacyOneTimeQuery"),bn=Ve.getQuery(rn).init({document:tn.query,variables:tn.variables}),Mn=new $({queryManager:Ve,queryInfo:bn,options:(0,V.Cl)((0,V.Cl)({},tn),{fetchPolicy:"network-only"})});(0,x.V1)(Mn.queryId===rn),bn.setObservableQuery(Mn),nt.set(rn,Mn)}),!1!==globalThis.__DEV__&&Mt.size&&Mt.forEach(function(tn,rn){tn||!1!==globalThis.__DEV__&&x.V1.warn("string"==typeof rn?33:34,rn)}),nt},tt.prototype.reFetchObservableQueries=function(Ce){var Ve=this;void 0===Ce&&(Ce=!1);var nt=[];return this.getObservableQueries(Ce?"all":"active").forEach(function(Mt,Wt){var tn=Mt.options.fetchPolicy;Mt.resetLastResults(),(Ce||"standby"!==tn&&"cache-only"!==tn)&&nt.push(Mt.refetch()),Ve.getQuery(Wt).setDiff(null)}),this.broadcastQueries(),Promise.all(nt)},tt.prototype.setObservableQuery=function(Ce){this.getQuery(Ce.queryId).setObservableQuery(Ce)},tt.prototype.startGraphQLSubscription=function(Ce){var Ve=this,nt=Ce.query,Mt=Ce.fetchPolicy,Wt=Ce.errorPolicy,tn=void 0===Wt?"none":Wt,rn=Ce.variables,bn=Ce.context,Mn=void 0===bn?{}:bn,Ln=Ce.extensions,wn=void 0===Ln?{}:Ln;nt=this.transform(nt),rn=this.getVariables(nt,rn);var Qn=function(pi){return Ve.getObservableFromLink(nt,Mn,pi,wn).map(function(ei){"no-cache"!==Mt&&(rt(ei,tn)&&Ve.cache.write({query:nt,result:ei.data,dataId:"ROOT_SUBSCRIPTION",variables:pi}),Ve.broadcastQueries());var li=Xe(ei),ci=function zt(tt){return!!tt.extensions&&Array.isArray(tt.extensions[Le])}(ei);if(li||ci){var mi={};if(li&&(mi.graphQLErrors=ei.errors),ci&&(mi.protocolErrors=ei.extensions[Le]),"none"===tn||ci)throw new Ct(mi)}return"ignore"===tn&&delete ei.errors,ei})};if(this.getDocumentInfo(nt).hasClientExports){var qn=this.localState.addExportedVariables(nt,rn,Mn).then(Qn);return new he.c(function(pi){var ei=null;return qn.then(function(li){return ei=li.subscribe(pi)},pi.error),function(){return ei&&ei.unsubscribe()}})}return Qn(rn)},tt.prototype.stopQuery=function(Ce){this.stopQueryNoBroadcast(Ce),this.broadcastQueries()},tt.prototype.stopQueryNoBroadcast=function(Ce){this.stopQueryInStoreNoBroadcast(Ce),this.removeQuery(Ce)},tt.prototype.removeQuery=function(Ce){this.fetchCancelFns.delete(Ce),this.queries.has(Ce)&&(this.getQuery(Ce).stop(),this.queries.delete(Ce))},tt.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(Ce){return Ce.notify()})},tt.prototype.getLocalState=function(){return this.localState},tt.prototype.getObservableFromLink=function(Ce,Ve,nt,Mt,Wt){var rn,tn=this;void 0===Wt&&(Wt=null!==(rn=Ve?.queryDeduplication)&&void 0!==rn?rn:this.queryDeduplication);var bn,Mn=this.getDocumentInfo(Ce),Ln=Mn.serverQuery,wn=Mn.clientQuery;if(Ln){var qn=this.inFlightLinkObservables,pi=this.link,ei={query:Ln,variables:nt,operationName:(0,dn.n4)(Ln)||void 0,context:this.prepareContext((0,V.Cl)((0,V.Cl)({},Ve),{forceFetch:!Wt})),extensions:Mt};if(Ve=ei.context,Wt){var li=(0,Ae.y)(Ln),ci=(0,ue.M)(nt),mi=qn.lookup(li,ci);if(!(bn=mi.observable)){var Ei=new re([J(pi,ei)]);bn=mi.observable=Ei,Ei.beforeNext(function(){qn.remove(li,ci)})}}else bn=new re([J(pi,ei)])}else bn=new re([he.c.of({data:{}})]),Ve=this.prepareContext(Ve);return wn&&(bn=q(bn,function(Xi){return tn.localState.runResolvers({document:wn,remoteResult:Xi,context:Ve,variables:nt})})),bn},tt.prototype.getResultsFromLink=function(Ce,Ve,nt){var Mt=Ce.lastRequestId=this.generateRequestId(),Wt=this.cache.transformForLink(nt.query);return q(this.getObservableFromLink(Wt,nt.context,nt.variables),function(tn){var rn=dt(tn),bn=rn.length>0;if(Mt>=Ce.lastRequestId){if(bn&&"none"===nt.errorPolicy)throw Ce.markError(new Ct({graphQLErrors:rn}));Ce.markResult(tn,Wt,nt,Ve),Ce.markReady()}var Mn={data:tn.data,loading:!1,networkStatus:I.ready};return bn&&"ignore"!==nt.errorPolicy&&(Mn.errors=rn,Mn.networkStatus=I.error),Mn},function(tn){var rn=function xt(tt){return tt.hasOwnProperty("graphQLErrors")}(tn)?tn:new Ct({networkError:tn});throw Mt>=Ce.lastRequestId&&Ce.markError(rn),rn})},tt.prototype.fetchConcastWithInfo=function(Ce,Ve,nt,Mt){var Wt=this;void 0===nt&&(nt=I.loading),void 0===Mt&&(Mt=Ve.query);var eo,ao,tn=this.getVariables(Mt,Ve.variables),rn=this.getQuery(Ce),bn=this.defaultOptions.watchQuery,Mn=Ve.fetchPolicy,wn=Ve.errorPolicy,qn=Ve.returnPartialData,ei=Ve.notifyOnNetworkStatusChange,ci=Ve.context,Ei=Object.assign({},Ve,{query:Mt,variables:tn,fetchPolicy:void 0===Mn?bn&&bn.fetchPolicy||"cache-first":Mn,errorPolicy:void 0===wn?bn&&bn.errorPolicy||"none":wn,returnPartialData:void 0!==qn&&qn,notifyOnNetworkStatusChange:void 0!==ei&&ei,context:void 0===ci?{}:ci}),Xi=function(An){Ei.variables=An;var _o=Wt.fetchQueryByPolicy(rn,Ei,nt);return"standby"!==Ei.fetchPolicy&&_o.sources.length>0&&rn.observableQuery&&rn.observableQuery.applyNextFetchPolicy("after-fetch",Ve),_o},Si=function(){return Wt.fetchCancelFns.delete(Ce)};if(this.fetchCancelFns.set(Ce,function(An){Si(),setTimeout(function(){return eo.cancel(An)})}),this.getDocumentInfo(Ei.query).hasClientExports)eo=new re(this.localState.addExportedVariables(Ei.query,Ei.variables,Ei.context).then(Xi).then(function(An){return An.sources})),ao=!0;else{var io=Xi(Ei.variables);ao=io.fromLink,eo=new re(io.sources)}return eo.promise.then(Si,Si),{concast:eo,fromLink:ao}},tt.prototype.refetchQueries=function(Ce){var Ve=this,nt=Ce.updateCache,Mt=Ce.include,Wt=Ce.optimistic,tn=void 0!==Wt&&Wt,rn=Ce.removeOptimistic,bn=void 0===rn?tn?(0,St.v)("refetchQueries"):void 0:rn,Mn=Ce.onQueryUpdated,Ln=new Map;Mt&&this.getObservableQueries(Mt).forEach(function(Qn,qn){Ln.set(qn,{oq:Qn,lastDiff:Ve.getQuery(qn).getDiff()})});var wn=new Map;return nt&&this.cache.batch({update:nt,optimistic:tn&&bn||!1,removeOptimistic:bn,onWatchUpdated:function(Qn,qn,pi){var ei=Qn.watcher instanceof qe&&Qn.watcher.observableQuery;if(ei){if(Mn){Ln.delete(ei.queryId);var li=Mn(ei,qn,pi);return!0===li&&(li=ei.refetch()),!1!==li&&wn.set(ei,li),li}null!==Mn&&Ln.set(ei.queryId,{oq:ei,lastDiff:pi,diff:qn})}}}),Ln.size&&Ln.forEach(function(Qn,qn){var ci,pi=Qn.oq,ei=Qn.lastDiff,li=Qn.diff;if(Mn){if(!li){var mi=pi.queryInfo;mi.reset(),li=mi.getDiff()}ci=Mn(pi,li,ei)}(!Mn||!0===ci)&&(ci=pi.refetch()),!1!==ci&&wn.set(pi,ci),qn.indexOf("legacyOneTimeQuery")>=0&&Ve.stopQueryNoBroadcast(qn)}),bn&&this.cache.removeOptimistic(bn),wn},tt.prototype.fetchQueryByPolicy=function(Ce,Ve,nt){var Mt=this,Wt=Ve.query,tn=Ve.variables,rn=Ve.fetchPolicy,bn=Ve.refetchWritePolicy,Mn=Ve.errorPolicy,Ln=Ve.returnPartialData,wn=Ve.context,Qn=Ve.notifyOnNetworkStatusChange,qn=Ce.networkStatus;Ce.init({document:Wt,variables:tn,networkStatus:nt});var pi=function(){return Ce.getDiff()},ei=function(Xi,Si){void 0===Si&&(Si=Ce.networkStatus||I.loading);var eo=Xi.result;!1!==globalThis.__DEV__&&!Ln&&!(0,Ye.L)(eo,{})&&ke(Xi.missing);var ao=function(io){return he.c.of((0,V.Cl)({data:io,loading:F(Si),networkStatus:Si},Xi.complete?null:{partial:!0}))};return eo&&Mt.getDocumentInfo(Wt).hasForcedResolvers?Mt.localState.runResolvers({document:Wt,remoteResult:{data:eo},context:wn,variables:tn,onlyRunForcedResolvers:!0}).then(function(io){return ao(io.data||void 0)}):"none"===Mn&&Si===I.refetch&&Array.isArray(Xi.missing)?ao(void 0):ao(eo)},li="no-cache"===rn?0:nt===I.refetch&&"merge"!==bn?1:2,ci=function(){return Mt.getResultsFromLink(Ce,li,{query:Wt,variables:tn,context:wn,fetchPolicy:rn,errorPolicy:Mn})},mi=Qn&&"number"==typeof qn&&qn!==nt&&F(nt);switch(rn){default:case"cache-first":return(Ei=pi()).complete?{fromLink:!1,sources:[ei(Ei,Ce.markReady())]}:Ln||mi?{fromLink:!0,sources:[ei(Ei),ci()]}:{fromLink:!0,sources:[ci()]};case"cache-and-network":var Ei;return(Ei=pi()).complete||Ln||mi?{fromLink:!0,sources:[ei(Ei),ci()]}:{fromLink:!0,sources:[ci()]};case"cache-only":return{fromLink:!1,sources:[ei(pi(),Ce.markReady())]};case"network-only":return mi?{fromLink:!0,sources:[ei(pi()),ci()]}:{fromLink:!0,sources:[ci()]};case"no-cache":return mi?{fromLink:!0,sources:[ei(Ce.getDiff()),ci()]}:{fromLink:!0,sources:[ci()]};case"standby":return{fromLink:!1,sources:[]}}},tt.prototype.getQuery=function(Ce){return Ce&&!this.queries.has(Ce)&&this.queries.set(Ce,new qe(this,Ce)),this.queries.get(Ce)},tt.prototype.prepareContext=function(Ce){void 0===Ce&&(Ce={});var Ve=this.localState.prepareContext(Ce);return(0,V.Cl)((0,V.Cl)((0,V.Cl)({},this.defaultContext),Ve),{clientAwareness:this.clientAwareness})},tt}(),zi=c(1955);function Zi(tt){return tt.kind===zi.b.FIELD||tt.kind===zi.b.FRAGMENT_SPREAD||tt.kind===zi.b.INLINE_FRAGMENT}var mn=c(6108),hn=c(4141),Yn=function(){function tt(Ce){var Ve=Ce.cache,nt=Ce.client,Mt=Ce.resolvers,Wt=Ce.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=Ve,nt&&(this.client=nt),Mt&&this.addResolvers(Mt),Wt&&this.setFragmentMatcher(Wt)}return tt.prototype.addResolvers=function(Ce){var Ve=this;this.resolvers=this.resolvers||{},Array.isArray(Ce)?Ce.forEach(function(nt){Ve.resolvers=(0,Tt.D9)(Ve.resolvers,nt)}):this.resolvers=(0,Tt.D9)(this.resolvers,Ce)},tt.prototype.setResolvers=function(Ce){this.resolvers={},this.addResolvers(Ce)},tt.prototype.getResolvers=function(){return this.resolvers||{}},tt.prototype.runResolvers=function(Ce){return(0,V.sH)(this,arguments,void 0,function(Ve){var nt=Ve.document,Mt=Ve.remoteResult,Wt=Ve.context,tn=Ve.variables,rn=Ve.onlyRunForcedResolvers,bn=void 0!==rn&&rn;return(0,V.YH)(this,function(Mn){return nt?[2,this.resolveDocument(nt,Mt.data,Wt,tn,this.fragmentMatcher,bn).then(function(Ln){return(0,V.Cl)((0,V.Cl)({},Mt),{data:Ln.result})})]:[2,Mt]})})},tt.prototype.setFragmentMatcher=function(Ce){this.fragmentMatcher=Ce},tt.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},tt.prototype.clientQuery=function(Ce){return(0,Oe.d8)(["client"],Ce)&&this.resolvers?Ce:null},tt.prototype.serverQuery=function(Ce){return(0,Un.er)(Ce)},tt.prototype.prepareContext=function(Ce){var Ve=this.cache;return(0,V.Cl)((0,V.Cl)({},Ce),{cache:Ve,getCacheKey:function(nt){return Ve.identify(nt)}})},tt.prototype.addExportedVariables=function(Ce){return(0,V.sH)(this,arguments,void 0,function(Ve,nt,Mt){return void 0===nt&&(nt={}),void 0===Mt&&(Mt={}),(0,V.YH)(this,function(Wt){return Ve?[2,this.resolveDocument(Ve,this.buildRootValueFromCache(Ve,nt)||{},this.prepareContext(Mt),nt).then(function(tn){return(0,V.Cl)((0,V.Cl)({},nt),tn.exportedVariables)})]:[2,(0,V.Cl)({},nt)]})})},tt.prototype.shouldForceResolvers=function(Ce){var Ve=!1;return(0,kn.YR)(Ce,{Directive:{enter:function(nt){if("client"===nt.name.value&&nt.arguments&&(Ve=nt.arguments.some(function(Mt){return"always"===Mt.name.value&&"BooleanValue"===Mt.value.kind&&!0===Mt.value.value})))return kn.sP}}}),Ve},tt.prototype.buildRootValueFromCache=function(Ce,Ve){return this.cache.diff({query:(0,Un.zc)(Ce),variables:Ve,returnPartialData:!0,optimistic:!1}).result},tt.prototype.resolveDocument=function(Ce,Ve){return(0,V.sH)(this,arguments,void 0,function(nt,Mt,Wt,tn,rn,bn){var Mn,Ln,wn,Qn,qn,pi,ei,li,ci,mi;return void 0===Wt&&(Wt={}),void 0===tn&&(tn={}),void 0===rn&&(rn=function(){return!0}),void 0===bn&&(bn=!1),(0,V.YH)(this,function(Xi){return Mn=(0,dn.Vn)(nt),Ln=(0,dn.zK)(nt),wn=(0,mn.JG)(Ln),Qn=this.collectSelectionsToResolve(Mn,wn),pi=(qn=Mn.operation)?qn.charAt(0).toUpperCase()+qn.slice(1):"Query",li=(ei=this).cache,ci=ei.client,mi={fragmentMap:wn,context:(0,V.Cl)((0,V.Cl)({},Wt),{cache:li,client:ci}),variables:tn,fragmentMatcher:rn,defaultOperationType:pi,exportedVariables:{},selectionsToResolve:Qn,onlyRunForcedResolvers:bn},[2,this.resolveSelectionSet(Mn.selectionSet,!1,Mt,mi).then(function(Si){return{result:Si,exportedVariables:mi.exportedVariables}})]})})},tt.prototype.resolveSelectionSet=function(Ce,Ve,nt,Mt){return(0,V.sH)(this,void 0,void 0,function(){var Wt,tn,rn,bn,Ln=this;return(0,V.YH)(this,function(wn){return Wt=Mt.fragmentMap,tn=Mt.context,rn=Mt.variables,bn=[nt],[2,Promise.all(Ce.selections.map(function(Qn){return(0,V.sH)(Ln,void 0,void 0,function(){var qn;return(0,V.YH)(this,function(ei){return(Ve||Mt.selectionsToResolve.has(Qn))&&(0,Oe.MS)(Qn,rn)?(0,at.dt)(Qn)?[2,this.resolveField(Qn,Ve,nt,Mt).then(function(li){var ci;typeof li<"u"&&bn.push(((ci={})[(0,at.ue)(Qn)]=li,ci))})]:((0,at.kd)(Qn)?qn=Qn:(0,x.V1)(qn=Wt[Qn.name.value],18,Qn.name.value),qn&&qn.typeCondition&&Mt.fragmentMatcher(nt,qn.typeCondition.name.value,tn)?[2,this.resolveSelectionSet(qn.selectionSet,Ve,nt,Mt).then(function(li){bn.push(li)})]:[2]):[2]})})})).then(function(){return(0,Tt.IM)(bn)})]})})},tt.prototype.resolveField=function(Ce,Ve,nt,Mt){return(0,V.sH)(this,void 0,void 0,function(){var Wt,tn,rn,bn,Mn,Ln,wn,Qn,qn,pi=this;return(0,V.YH)(this,function(ei){return nt?(Wt=Mt.variables,tn=Ce.name.value,rn=(0,at.ue)(Ce),bn=tn!==rn,Mn=nt[rn]||nt[tn],Ln=Promise.resolve(Mn),(!Mt.onlyRunForcedResolvers||this.shouldForceResolvers(Ce))&&(wn=nt.__typename||Mt.defaultOperationType,(Qn=this.resolvers&&this.resolvers[wn])&&(qn=Qn[bn?tn:rn])&&(Ln=Promise.resolve(hn.bl.withValue(this.cache,qn,[nt,(0,at.MB)(Ce,Wt),Mt.context,{field:Ce,fragmentMap:Mt.fragmentMap}])))),[2,Ln.then(function(li){var ci,mi;if(void 0===li&&(li=Mn),Ce.directives&&Ce.directives.forEach(function(Xi){"export"===Xi.name.value&&Xi.arguments&&Xi.arguments.forEach(function(Si){"as"===Si.name.value&&"StringValue"===Si.value.kind&&(Mt.exportedVariables[Si.value.value]=li)})}),!Ce.selectionSet||null==li)return li;var Ei=null!==(mi=null===(ci=Ce.directives)||void 0===ci?void 0:ci.some(function(Xi){return"client"===Xi.name.value}))&&void 0!==mi&&mi;return Array.isArray(li)?pi.resolveSubSelectedArray(Ce,Ve||Ei,li,Mt):Ce.selectionSet?pi.resolveSelectionSet(Ce.selectionSet,Ve||Ei,li,Mt):void 0})]):[2,null]})})},tt.prototype.resolveSubSelectedArray=function(Ce,Ve,nt,Mt){var Wt=this;return Promise.all(nt.map(function(tn){return null===tn?null:Array.isArray(tn)?Wt.resolveSubSelectedArray(Ce,Ve,tn,Mt):Ce.selectionSet?Wt.resolveSelectionSet(Ce.selectionSet,Ve,tn,Mt):void 0}))},tt.prototype.collectSelectionsToResolve=function(Ce,Ve){var nt=function(tn){return!Array.isArray(tn)},Mt=this.selectionsToResolveCache;return function Wt(tn){if(!Mt.has(tn)){var rn=new Set;Mt.set(tn,rn),(0,kn.YR)(tn,{Directive:function(bn,Mn,Ln,wn,Qn){"client"===bn.name.value&&Qn.forEach(function(qn){nt(qn)&&Zi(qn)&&rn.add(qn)})},FragmentSpread:function(bn,Mn,Ln,wn,Qn){var qn=Ve[bn.name.value];(0,x.V1)(qn,19,bn.name.value);var pi=Wt(qn);pi.size>0&&(Qn.forEach(function(ei){nt(ei)&&Zi(ei)&&rn.add(ei)}),rn.add(bn),pi.forEach(function(ei){rn.add(ei)}))}})}return Mt.get(tn)}(Ce)},tt}();function En(tt,Ce){return(0,ze.o)(tt,Ce,Ce.variables&&{variables:(0,ze.o)((0,V.Cl)((0,V.Cl)({},tt&&tt.variables),Ce.variables))})}var Kn=c(8782),oi=!1,gi=function(){function tt(Ce){var Ve=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!Ce.cache)throw(0,x.vA)(15);var nt=Ce.uri,tn=Ce.cache,rn=Ce.documentTransform,bn=Ce.ssrMode,Mn=void 0!==bn&&bn,Ln=Ce.ssrForceFetchDelay,wn=void 0===Ln?0:Ln,Qn=Ce.connectToDevTools,qn=Ce.queryDeduplication,pi=void 0===qn||qn,ei=Ce.defaultOptions,li=Ce.defaultContext,ci=Ce.assumeImmutableResults,mi=void 0===ci?tn.assumeImmutableResults:ci,Ei=Ce.resolvers,Xi=Ce.typeDefs,Si=Ce.fragmentMatcher,eo=Ce.name,ao=Ce.version,io=Ce.devtools,An=Ce.link;An||(An=nt?new Ut({uri:nt,credentials:Ce.credentials,headers:Ce.headers}):ne.C.empty()),this.link=An,this.cache=tn,this.disableNetworkFetches=Mn||wn>0,this.queryDeduplication=pi,this.defaultOptions=ei||Object.create(null),this.typeDefs=Xi,this.devtoolsConfig=(0,V.Cl)((0,V.Cl)({},io),{enabled:io?.enabled||Qn}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),wn&&setTimeout(function(){return Ve.disableNetworkFetches=!1},wn),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=be.r,this.localState=new Yn({cache:tn,client:this,resolvers:Ei,fragmentMatcher:Si}),this.queryManager=new Gn({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:li,documentTransform:rn,queryDeduplication:pi,ssrMode:Mn,clientAwareness:{name:eo,version:ao},localState:this.localState,assumeImmutableResults:mi,onBroadcast:this.devtoolsConfig.enabled?function(){Ve.devToolsHookCb&&Ve.devToolsHookCb({action:{},state:{queries:Ve.queryManager.getQueryStore(),mutations:Ve.queryManager.mutationStore||{}},dataWithOptimisticResults:Ve.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return tt.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var Ce=window,Ve=Symbol.for("apollo.devtools");(Ce[Ve]=Ce[Ve]||[]).push(this),Ce.__APOLLO_CLIENT__=this,!oi&&!1!==globalThis.__DEV__&&(oi=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var nt=window.navigator,Mt=nt&&nt.userAgent,Wt=void 0;"string"==typeof Mt&&(Mt.indexOf("Chrome/")>-1?Wt="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Mt.indexOf("Firefox/")>-1&&(Wt="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),Wt&&!1!==globalThis.__DEV__&&x.V1.log("Download the Apollo DevTools for a better development experience: %s",Wt)}},1e4))}},Object.defineProperty(tt.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),tt.prototype.stop=function(){this.queryManager.stop()},tt.prototype.watchQuery=function(Ce){return this.defaultOptions.watchQuery&&(Ce=En(this.defaultOptions.watchQuery,Ce)),this.disableNetworkFetches&&("network-only"===Ce.fetchPolicy||"cache-and-network"===Ce.fetchPolicy)&&(Ce=(0,V.Cl)((0,V.Cl)({},Ce),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(Ce)},tt.prototype.query=function(Ce){return this.defaultOptions.query&&(Ce=En(this.defaultOptions.query,Ce)),(0,x.V1)("cache-and-network"!==Ce.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===Ce.fetchPolicy&&(Ce=(0,V.Cl)((0,V.Cl)({},Ce),{fetchPolicy:"cache-first"})),this.queryManager.query(Ce)},tt.prototype.mutate=function(Ce){return this.defaultOptions.mutate&&(Ce=En(this.defaultOptions.mutate,Ce)),this.queryManager.mutate(Ce)},tt.prototype.subscribe=function(Ce){return this.queryManager.startGraphQLSubscription(Ce)},tt.prototype.readQuery=function(Ce,Ve){return void 0===Ve&&(Ve=!1),this.cache.readQuery(Ce,Ve)},tt.prototype.watchFragment=function(Ce){return this.cache.watchFragment(Ce)},tt.prototype.readFragment=function(Ce,Ve){return void 0===Ve&&(Ve=!1),this.cache.readFragment(Ce,Ve)},tt.prototype.writeQuery=function(Ce){var Ve=this.cache.writeQuery(Ce);return!1!==Ce.broadcast&&this.queryManager.broadcastQueries(),Ve},tt.prototype.writeFragment=function(Ce){var Ve=this.cache.writeFragment(Ce);return!1!==Ce.broadcast&&this.queryManager.broadcastQueries(),Ve},tt.prototype.__actionHookForDevTools=function(Ce){this.devToolsHookCb=Ce},tt.prototype.__requestRaw=function(Ce){return J(this.link,Ce)},tt.prototype.resetStore=function(){var Ce=this;return Promise.resolve().then(function(){return Ce.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(Ce.resetStoreCallbacks.map(function(Ve){return Ve()}))}).then(function(){return Ce.reFetchObservableQueries()})},tt.prototype.clearStore=function(){var Ce=this;return Promise.resolve().then(function(){return Ce.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(Ce.clearStoreCallbacks.map(function(Ve){return Ve()}))})},tt.prototype.onResetStore=function(Ce){var Ve=this;return this.resetStoreCallbacks.push(Ce),function(){Ve.resetStoreCallbacks=Ve.resetStoreCallbacks.filter(function(nt){return nt!==Ce})}},tt.prototype.onClearStore=function(Ce){var Ve=this;return this.clearStoreCallbacks.push(Ce),function(){Ve.clearStoreCallbacks=Ve.clearStoreCallbacks.filter(function(nt){return nt!==Ce})}},tt.prototype.reFetchObservableQueries=function(Ce){return this.queryManager.reFetchObservableQueries(Ce)},tt.prototype.refetchQueries=function(Ce){var Ve=this.queryManager.refetchQueries(Ce),nt=[],Mt=[];Ve.forEach(function(tn,rn){nt.push(rn),Mt.push(tn)});var Wt=Promise.all(Mt);return Wt.queries=nt,Wt.results=Mt,Wt.catch(function(tn){!1!==globalThis.__DEV__&&x.V1.debug(17,tn)}),Wt},tt.prototype.getObservableQueries=function(Ce){return void 0===Ce&&(Ce="active"),this.queryManager.getObservableQueries(Ce)},tt.prototype.extract=function(Ce){return this.cache.extract(Ce)},tt.prototype.restore=function(Ce){return this.cache.restore(Ce)},tt.prototype.addResolvers=function(Ce){this.localState.addResolvers(Ce)},tt.prototype.setResolvers=function(Ce){this.localState.setResolvers(Ce)},tt.prototype.getResolvers=function(){return this.localState.getResolvers()},tt.prototype.setLocalStateFragmentMatcher=function(Ce){this.localState.setFragmentMatcher(Ce)},tt.prototype.setLink=function(Ce){this.link=this.queryManager.link=Ce},Object.defineProperty(tt.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),tt}();!1!==globalThis.__DEV__&&(gi.prototype.getMemoryInternals=Kn.ep);var ro=c(9869),vi=c(6354),pn=c(9172),$i=c(941);function Mi(tt){return new r.c(Ce=>(tt().then(Ve=>{Ce.closed||(Ce.next(Ve),Ce.complete())},Ve=>{Ce.closed||Ce.error(Ve)}),()=>Ce.unsubscribe()))}class so{zone;constructor(Ce){this.zone=Ce}now=Date.now?Date.now:()=>+new Date;schedule(Ce,Ve=0,nt){return this.zone.run(()=>L.schedule(Ce,Ve,nt))}}function Yi(tt){return tt[A.s]=()=>tt,tt}function Xo(tt,Ce){return tt.pipe((0,$i.Q)(new so(Ce)))}class Zo{obsQuery;valueChanges;queryId;constructor(Ce,Ve,nt){this.obsQuery=Ce;const Mt=Xo((0,w.H)(Yi(this.obsQuery)),Ve);this.valueChanges=nt.useInitialLoading?Mt.pipe(function Ki(tt){return function(Ve){return new r.c(function(Mt){const Wt=tt.getCurrentResult(),{loading:tn,errors:rn,error:bn,partial:Mn,data:Ln}=Wt,{partialRefetch:wn,fetchPolicy:Qn}=tt.options,qn=rn||bn;return wn&&Mn&&(!Ln||0===Object.keys(Ln).length)&&"cache-only"!==Qn&&!tn&&!qn&&Mt.next({...Wt,loading:!0,networkStatus:I.loading}),Ve.subscribe(Mt)})}}(this.obsQuery)):Mt,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(Ce){return this.obsQuery.refetch(Ce)}fetchMore(Ce){return this.obsQuery.fetchMore(Ce)}subscribeToMore(Ce){return this.obsQuery.subscribeToMore(Ce)}updateQuery(Ce){return this.obsQuery.updateQuery(Ce)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(Ce){return this.obsQuery.startPolling(Ce)}setOptions(Ce){return this.obsQuery.setOptions(Ce)}setVariables(Ce){return this.obsQuery.setVariables(Ce)}}const pr=new t.nKC("APOLLO_FLAGS"),fo=new t.nKC("APOLLO_OPTIONS"),po=new t.nKC("APOLLO_NAMED_OPTIONS");class fr{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(Ce,Ve,nt){this.ngZone=Ce,this.flags=Ve,this._client=nt,this.useInitialLoading=Ve?.useInitialLoading??!1,this.useMutationLoading=Ve?.useMutationLoading??!1}watchQuery(Ce){return new Zo(this.ensureClient().watchQuery({...Ce}),this.ngZone,{useInitialLoading:this.useInitialLoading,...Ce})}query(Ce){return Mi(()=>this.ensureClient().query({...Ce}))}mutate(Ce){return function Ni(tt,Ce){return Ce?tt.pipe((0,pn.Z)({loading:!0}),(0,vi.T)(Ve=>({...Ve,loading:!!Ve.loading}))):tt.pipe((0,vi.T)(Ve=>({...Ve,loading:!1})))}(Mi(()=>this.ensureClient().mutate({...Ce})),Ce.useMutationLoading??this.useMutationLoading)}subscribe(Ce,Ve){const nt=(0,w.H)(Yi(this.ensureClient().subscribe({...Ce})));return Ve&&!0!==Ve.useZone?nt:Xo(nt,this.ngZone)}get client(){return this.ensureClient()}set client(Ce){if(this._client)throw new Error("Client has been already defined");this._client=Ce}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}}let $o=(()=>{class tt extends fr{map=new Map;constructor(Ve,nt,Mt,Wt){if(super(Ve,Wt),nt&&this.createDefault(nt),Mt&&"object"==typeof Mt)for(let tn in Mt)Mt.hasOwnProperty(tn)&&this.create(Mt[tn],tn)}create(Ve,nt){Lr(nt)?this.createNamed(nt,Ve):this.createDefault(Ve)}default(){return this}use(Ve){return Lr(Ve)?this.map.get(Ve):this.default()}createDefault(Ve){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new gi(Ve))}createNamed(Ve,nt){if(this.map.has(Ve))throw new Error(`Client ${Ve} has been already created`);this.map.set(Ve,new fr(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new gi(nt))))}removeClient(Ve){Lr(Ve)?this.map.delete(Ve):this._client=void 0}static \u0275fac=function(nt){return new(nt||tt)(t.KVO(t.SKi),t.KVO(fo,8),t.KVO(po,8),t.KVO(pr,8))};static \u0275prov=t.jDH({token:tt,factory:tt.\u0275fac})}return tt})();function Lr(tt){return!!tt&&"default"!==tt}const qi=[$o];let xn=(()=>{class tt{static \u0275fac=function(nt){return new(nt||tt)};static \u0275mod=t.$C({type:tt});static \u0275inj=t.G2t({providers:qi})}return tt})(),Ci=(()=>{class tt{apollo;client="default";constructor(Ve){this.apollo=Ve}watch(Ve,nt){return this.apollo.use(this.client).watchQuery({...nt,variables:Ve,query:this.document})}fetch(Ve,nt){return this.apollo.use(this.client).query({...nt,variables:Ve,query:this.document})}static \u0275fac=function(nt){return new(nt||tt)(t.KVO($o))};static \u0275prov=t.jDH({token:tt,factory:tt.\u0275fac})}return tt})(),Sr=(()=>{class tt{apollo;client="default";constructor(Ve){this.apollo=Ve}mutate(Ve,nt){return this.apollo.use(this.client).mutate({...nt,variables:Ve,mutation:this.document})}static \u0275fac=function(nt){return new(nt||tt)(t.KVO($o))};static \u0275prov=t.jDH({token:tt,factory:tt.\u0275fac})}return tt})();const qo=function us(tt,...Ce){return(0,ro.J1)(tt,...Ce)}},6005:(Rt,De,c)=>{function t(r,g){if(!r)throw new Error(g)}c.d(De,{U:()=>t})},7250:(Rt,De,c)=>{c.d(De,{N:()=>g});const t=10,r=2;function g(w){return e(w,[])}function e(w,I){switch(typeof w){case"string":return JSON.stringify(w);case"function":return w.name?`[function ${w.name}]`:"[function]";case"object":return function M(w,I){if(null===w)return"null";if(I.includes(w))return"[Circular]";const F=[...I,w];if(function G(w){return"function"==typeof w.toJSON}(w)){const X=w.toJSON();if(X!==w)return"string"==typeof X?X:e(X,F)}else if(Array.isArray(w))return function B(w,I){if(0===w.length)return"[]";if(I.length>r)return"[Array]";const F=Math.min(t,w.length),X=w.length-F,V=[];for(let x=0;x1&&V.push(`... ${X} more items`),"["+V.join(", ")+"]"}(w,F);return function L(w,I){const F=Object.entries(w);return 0===F.length?"{}":I.length>r?"["+function A(w){const I=Object.prototype.toString.call(w).replace(/^\[object /,"").replace(/]$/,"");if("Object"===I&&"function"==typeof w.constructor){const F=w.constructor.name;if("string"==typeof F&&""!==F)return F}return I}(w)+"]":"{ "+F.map(([V,x])=>V+": "+e(x,I)).join(", ")+" }"}(w,F)}(w,I);default:return String(w)}}},1222:(Rt,De,c)=>{c.d(De,{Ll:()=>M,aD:()=>g,aZ:()=>t,cE:()=>G,ou:()=>r});class t{constructor(B,A,w){this.start=B.start,this.end=A.end,this.startToken=B,this.endToken=A,this.source=w}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class r{constructor(B,A,w,I,F,X){this.kind=B,this.start=A,this.end=w,this.line=I,this.column=F,this.value=X,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 g={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"]},e=new Set(Object.keys(g));function M(L){const B=L?.kind;return"string"==typeof B&&e.has(B)}var G=function(L){return L.QUERY="query",L.MUTATION="mutation",L.SUBSCRIPTION="subscription",L}(G||{})},5174:(Rt,De,c)=>{c.d(De,{OC:()=>r,yo:()=>M});var t=c(3725);function r(G){var L;let B=Number.MAX_SAFE_INTEGER,A=null,w=-1;for(let F=0;F0===X?F:F.slice(B)).slice(null!==(L=A)&&void 0!==L?L:0,w+1)}function g(G){let L=0;for(;L1&&A.slice(1).every(Oe=>0===Oe.length||(0,t.i0)(Oe.charCodeAt(0))),F=B.endsWith('\\"""'),X=G.endsWith('"')&&!F,V=G.endsWith("\\"),x=X||V,ne=!(null!=L&&L.minimize)&&(!w||G.length>70||x||I||F);let J="";const be=w&&(0,t.i0)(G.charCodeAt(0));return(ne&&!be||I)&&(J+="\n"),J+=B,(ne||x)&&(J+="\n"),'"""'+J+'"""'}},3725:(Rt,De,c)=>{function t(G){return 9===G||32===G}function r(G){return G>=48&&G<=57}function g(G){return G>=97&&G<=122||G>=65&&G<=90}function e(G){return g(G)||95===G}function M(G){return g(G)||r(G)||95===G}c.d(De,{i0:()=>t,un:()=>e,xr:()=>M,yp:()=>r})},1955:(Rt,De,c)=>{c.d(De,{b:()=>t});var t=function(r){return r.NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r}(t||{})},3246:(Rt,De,c)=>{c.d(De,{y:()=>L});var t=c(5174);const g=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function e(x){return M[x.charCodeAt(0)]}const M=["\\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 G=c(8540);function L(x){return(0,G.YR)(x,A)}const A={Name:{leave:x=>x.value},Variable:{leave:x=>"$"+x.name},Document:{leave:x=>w(x.definitions,"\n\n")},OperationDefinition:{leave(x){const ne=F("(",w(x.variableDefinitions,", "),")"),J=w([x.operation,w([x.name,ne]),w(x.directives," ")]," ");return("query"===J?"":J+" ")+x.selectionSet}},VariableDefinition:{leave:({variable:x,type:ne,defaultValue:J,directives:be})=>x+": "+ne+F(" = ",J)+F(" ",w(be," "))},SelectionSet:{leave:({selections:x})=>I(x)},Field:{leave({alias:x,name:ne,arguments:J,directives:be,selectionSet:Oe}){const he=F("",x,": ")+ne;let we=he+F("(",w(J,", "),")");return we.length>80&&(we=he+F("(\n",X(w(J,"\n")),"\n)")),w([we,w(be," "),Oe]," ")}},Argument:{leave:({name:x,value:ne})=>x+": "+ne},FragmentSpread:{leave:({name:x,directives:ne})=>"..."+x+F(" ",w(ne," "))},InlineFragment:{leave:({typeCondition:x,directives:ne,selectionSet:J})=>w(["...",F("on ",x),w(ne," "),J]," ")},FragmentDefinition:{leave:({name:x,typeCondition:ne,variableDefinitions:J,directives:be,selectionSet:Oe})=>`fragment ${x}${F("(",w(J,", "),")")} on ${ne} ${F("",w(be," ")," ")}`+Oe},IntValue:{leave:({value:x})=>x},FloatValue:{leave:({value:x})=>x},StringValue:{leave:({value:x,block:ne})=>ne?(0,t.yo)(x):function r(x){return`"${x.replace(g,e)}"`}(x)},BooleanValue:{leave:({value:x})=>x?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:x})=>x},ListValue:{leave:({values:x})=>"["+w(x,", ")+"]"},ObjectValue:{leave:({fields:x})=>"{"+w(x,", ")+"}"},ObjectField:{leave:({name:x,value:ne})=>x+": "+ne},Directive:{leave:({name:x,arguments:ne})=>"@"+x+F("(",w(ne,", "),")")},NamedType:{leave:({name:x})=>x},ListType:{leave:({type:x})=>"["+x+"]"},NonNullType:{leave:({type:x})=>x+"!"},SchemaDefinition:{leave:({description:x,directives:ne,operationTypes:J})=>F("",x,"\n")+w(["schema",w(ne," "),I(J)]," ")},OperationTypeDefinition:{leave:({operation:x,type:ne})=>x+": "+ne},ScalarTypeDefinition:{leave:({description:x,name:ne,directives:J})=>F("",x,"\n")+w(["scalar",ne,w(J," ")]," ")},ObjectTypeDefinition:{leave:({description:x,name:ne,interfaces:J,directives:be,fields:Oe})=>F("",x,"\n")+w(["type",ne,F("implements ",w(J," & ")),w(be," "),I(Oe)]," ")},FieldDefinition:{leave:({description:x,name:ne,arguments:J,type:be,directives:Oe})=>F("",x,"\n")+ne+(V(J)?F("(\n",X(w(J,"\n")),"\n)"):F("(",w(J,", "),")"))+": "+be+F(" ",w(Oe," "))},InputValueDefinition:{leave:({description:x,name:ne,type:J,defaultValue:be,directives:Oe})=>F("",x,"\n")+w([ne+": "+J,F("= ",be),w(Oe," ")]," ")},InterfaceTypeDefinition:{leave:({description:x,name:ne,interfaces:J,directives:be,fields:Oe})=>F("",x,"\n")+w(["interface",ne,F("implements ",w(J," & ")),w(be," "),I(Oe)]," ")},UnionTypeDefinition:{leave:({description:x,name:ne,directives:J,types:be})=>F("",x,"\n")+w(["union",ne,w(J," "),F("= ",w(be," | "))]," ")},EnumTypeDefinition:{leave:({description:x,name:ne,directives:J,values:be})=>F("",x,"\n")+w(["enum",ne,w(J," "),I(be)]," ")},EnumValueDefinition:{leave:({description:x,name:ne,directives:J})=>F("",x,"\n")+w([ne,w(J," ")]," ")},InputObjectTypeDefinition:{leave:({description:x,name:ne,directives:J,fields:be})=>F("",x,"\n")+w(["input",ne,w(J," "),I(be)]," ")},DirectiveDefinition:{leave:({description:x,name:ne,arguments:J,repeatable:be,locations:Oe})=>F("",x,"\n")+"directive @"+ne+(V(J)?F("(\n",X(w(J,"\n")),"\n)"):F("(",w(J,", "),")"))+(be?" repeatable":"")+" on "+w(Oe," | ")},SchemaExtension:{leave:({directives:x,operationTypes:ne})=>w(["extend schema",w(x," "),I(ne)]," ")},ScalarTypeExtension:{leave:({name:x,directives:ne})=>w(["extend scalar",x,w(ne," ")]," ")},ObjectTypeExtension:{leave:({name:x,interfaces:ne,directives:J,fields:be})=>w(["extend type",x,F("implements ",w(ne," & ")),w(J," "),I(be)]," ")},InterfaceTypeExtension:{leave:({name:x,interfaces:ne,directives:J,fields:be})=>w(["extend interface",x,F("implements ",w(ne," & ")),w(J," "),I(be)]," ")},UnionTypeExtension:{leave:({name:x,directives:ne,types:J})=>w(["extend union",x,w(ne," "),F("= ",w(J," | "))]," ")},EnumTypeExtension:{leave:({name:x,directives:ne,values:J})=>w(["extend enum",x,w(ne," "),I(J)]," ")},InputObjectTypeExtension:{leave:({name:x,directives:ne,fields:J})=>w(["extend input",x,w(ne," "),I(J)]," ")}};function w(x,ne=""){var J;return null!==(J=x?.filter(be=>be).join(ne))&&void 0!==J?J:""}function I(x){return F("{\n",X(w(x,"\n")),"\n}")}function F(x,ne,J=""){return null!=ne&&""!==ne?x+ne+J:""}function X(x){return F(" ",x.replace(/\n/g,"\n "))}function V(x){var ne;return null!==(ne=x?.some(J=>J.includes("\n")))&&void 0!==ne&&ne}},8540:(Rt,De,c)=>{c.d(De,{YR:()=>G,sP:()=>M});var t=c(6005),r=c(7250),g=c(1222),e=c(1955);const M=Object.freeze({});function G(w,I,F=g.aD){const X=new Map;for(const pe of Object.values(e.b))X.set(pe,B(I,pe));let V,he,we,x=Array.isArray(w),ne=[w],J=-1,be=[],Oe=w;const me=[],de=[];do{J++;const pe=J===ne.length,E=pe&&0!==be.length;if(pe){if(he=0===de.length?void 0:me[me.length-1],Oe=we,we=de.pop(),E)if(x){Oe=Oe.slice();let R=0;for(const[Y,se]of be){const Be=Y-R;null===se?(Oe.splice(Be,1),R++):Oe[Be]=se}}else{Oe=Object.defineProperties({},Object.getOwnPropertyDescriptors(Oe));for(const[R,Y]of be)Oe[R]=Y}J=V.index,ne=V.keys,be=V.edits,x=V.inArray,V=V.prev}else if(we){if(he=x?J:ne[J],Oe=we[he],null==Oe)continue;me.push(he)}let S;if(!Array.isArray(Oe)){var H,z;(0,g.Ll)(Oe)||(0,t.U)(!1,`Invalid AST Node: ${(0,r.N)(Oe)}.`);const R=pe?null===(H=X.get(Oe.kind))||void 0===H?void 0:H.leave:null===(z=X.get(Oe.kind))||void 0===z?void 0:z.enter;if(S=R?.call(I,Oe,he,we,me,de),S===M)break;if(!1===S){if(!pe){me.pop();continue}}else if(void 0!==S&&(be.push([he,S]),!pe)){if(!(0,g.Ll)(S)){me.pop();continue}Oe=S}}var Z;void 0===S&&E&&be.push([he,Oe]),pe?me.pop():(V={inArray:x,index:J,keys:ne,edits:be,prev:V},x=Array.isArray(Oe),ne=x?Oe:null!==(Z=F[Oe.kind])&&void 0!==Z?Z:[],J=-1,be=[],we&&de.push(we),we=Oe)}while(void 0!==V);return 0!==be.length?be[be.length-1][1]:w}function B(w,I){const F=w[I];return"object"==typeof F?F:"function"==typeof F?{enter:F,leave:void 0}:{enter:w.enter,leave:w.leave}}},3617:(Rt,De,c)=>{c.d(De,{$:()=>E,Y:()=>pe});var t=c(4707),r=c(3953),g=c(1413),e=c(6977),M=c(713),G=c(6042),L=c(7806),B=c(5103),A=c(8203);function w(S,R){1&S&&r.eu8(0)}function I(S,R){if(1&S&&r.DNE(0,w,1,0,"ng-container",7),2&S){const Y=r.XpG(3);r.Y8G("nzStringTemplateOutlet",Y.nzIcon)}}function F(S,R){if(1&S&&r.nrm(0,"span",6),2&S){const Y=r.XpG(3);r.Y8G("nzType",Y.nzIconType||Y.inferredIconType)("nzTheme",Y.iconTheme)}}function X(S,R){if(1&S&&(r.j41(0,"div",2),r.DNE(1,I,1,1,"ng-container")(2,F,1,2,"span",6),r.k0s()),2&S){const Y=r.XpG(2);r.R7$(),r.vxM(Y.nzIcon?1:2)}}function V(S,R){if(1&S&&(r.qex(0),r.EFF(1),r.bVm()),2&S){const Y=r.XpG(4);r.R7$(),r.JRh(Y.nzMessage)}}function x(S,R){if(1&S&&(r.j41(0,"span",8),r.DNE(1,V,2,1,"ng-container",7),r.k0s()),2&S){const Y=r.XpG(3);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzMessage)}}function ne(S,R){if(1&S&&(r.qex(0),r.EFF(1),r.bVm()),2&S){const Y=r.XpG(4);r.R7$(),r.JRh(Y.nzDescription)}}function J(S,R){if(1&S&&(r.j41(0,"span",9),r.DNE(1,ne,2,1,"ng-container",7),r.k0s()),2&S){const Y=r.XpG(3);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzDescription)}}function be(S,R){if(1&S&&(r.j41(0,"div",3),r.DNE(1,x,2,1,"span",8)(2,J,2,1,"span",9),r.k0s()),2&S){const Y=r.XpG(2);r.R7$(),r.vxM(Y.nzMessage?1:-1),r.R7$(),r.vxM(Y.nzDescription?2:-1)}}function Oe(S,R){if(1&S&&(r.qex(0),r.EFF(1),r.bVm()),2&S){const Y=r.XpG(3);r.R7$(),r.JRh(Y.nzAction)}}function he(S,R){if(1&S&&(r.j41(0,"div",4),r.DNE(1,Oe,2,1,"ng-container",7),r.k0s()),2&S){const Y=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzAction)}}function we(S,R){if(1&S&&(r.qex(0),r.j41(1,"span",12),r.EFF(2),r.k0s(),r.bVm()),2&S){const Y=r.XpG(4);r.R7$(2),r.JRh(Y.nzCloseText)}}function me(S,R){if(1&S&&r.DNE(0,we,3,1,"ng-container",7),2&S){const Y=r.XpG(3);r.Y8G("nzStringTemplateOutlet",Y.nzCloseText)}}function de(S,R){1&S&&r.nrm(0,"span",11)}function H(S,R){if(1&S){const Y=r.RV6();r.j41(0,"button",10),r.bIt("click",function(){r.eBV(Y);const Be=r.XpG(2);return r.Njj(Be.closeAlert())}),r.DNE(1,me,1,1,"ng-container")(2,de,1,0,"span",11),r.k0s()}if(2&S){const Y=r.XpG(2);r.R7$(),r.vxM(Y.nzCloseText?1:2)}}function z(S,R){if(1&S){const Y=r.RV6();r.j41(0,"div",1),r.bIt("@slideAlertMotion.done",function(){r.eBV(Y);const Be=r.XpG();return r.Njj(Be.onFadeAnimationDone())}),r.DNE(1,X,3,1,"div",2)(2,be,3,2,"div",3)(3,he,2,1,"div",4)(4,H,3,1,"button",5),r.k0s()}if(2&S){const Y=r.XpG();r.AVh("ant-alert-rtl","rtl"===Y.dir)("ant-alert-success","success"===Y.nzType)("ant-alert-info","info"===Y.nzType)("ant-alert-warning","warning"===Y.nzType)("ant-alert-error","error"===Y.nzType)("ant-alert-no-icon",!Y.nzShowIcon)("ant-alert-banner",Y.nzBanner)("ant-alert-closable",Y.nzCloseable)("ant-alert-with-description",!!Y.nzDescription),r.Y8G("@.disabled",Y.nzNoAnimation)("@slideAlertMotion",void 0),r.R7$(),r.vxM(Y.nzShowIcon?1:-1),r.R7$(),r.vxM(Y.nzMessage||Y.nzDescription?2:-1),r.R7$(),r.vxM(Y.nzAction?3:-1),r.R7$(),r.vxM(Y.nzCloseable||Y.nzCloseText?4:-1)}}const Z="alert";let pe=(()=>{class S{constructor(Y,se,Be){this.nzConfigService=Y,this.cdr=se,this.directionality=Be,this._nzModuleName=Z,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 r.bkB,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new g.B,this.nzConfigService.getConfigChangeEventForComponent(Z).pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(Y=>{this.dir=Y,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(Y){const{nzShowIcon:se,nzDescription:Be,nzType:Pt,nzBanner:vt}=Y;if(se&&(this.isShowIconSet=!0),Pt)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"}Be&&(this.iconTheme=this.nzDescription?"outline":"fill"),vt&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(se){return new(se||S)(r.rXU(G.yx),r.rXU(r.gRc),r.rXU(A.dS,8))};static#t=this.\u0275cmp=r.VBU({type:S,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",r.L39],nzShowIcon:[2,"nzShowIcon","nzShowIcon",r.L39],nzBanner:[2,"nzBanner","nzBanner",r.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",r.L39],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],decls:1,vars:1,consts:[[1,"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"],[1,"ant-alert"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],["nz-icon","",3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(se,Be){1&se&&r.DNE(0,z,5,24,"div",0),2&se&&r.vxM(Be.closed?-1:0)},dependencies:[B.Y3,B.Dn,L.C,L.m],encapsulation:2,data:{animation:[M.Sn]},changeDetection:0})}return(0,t.Cg)([(0,G.H4)()],S.prototype,"nzCloseable",void 0),(0,t.Cg)([(0,G.H4)()],S.prototype,"nzShowIcon",void 0),S})(),E=(()=>{class S{static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275mod=r.$C({type:S});static#n=this.\u0275inj=r.G2t({imports:[pe]})}return S})()},8928:(Rt,De,c)=>{c.d(De,{jl:()=>Pt});var t=c(3953),r=c(7806),g=c(1413),e=c(6977),M=c(8141),G=c(1986),L=c(5964),B=c(7336),A=c(7987),w=c(6939),I=c(177),F=c(9417),X=c(1011);const V=[[["nz-auto-option"]]],x=["nz-auto-option"];function ne(vt,wt){if(1&vt&&(t.qex(0),t.EFF(1),t.bVm()),2&vt){const Le=t.XpG();t.R7$(),t.JRh(Le.nzLabel)}}let Z=(()=>{class vt{constructor(){}static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275cmp=t.VBU({type:vt,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],standalone:!0,features:[t.aNF],ngContentSelectors:x,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(zt,xt){1&zt&&(t.NAR(V),t.j41(0,"div",0),t.DNE(1,ne,2,1,"ng-container",1),t.k0s(),t.SdG(2)),2&zt&&(t.R7$(),t.Y8G("nzStringTemplateOutlet",xt.nzLabel))},dependencies:[r.C,r.m],encapsulation:2,changeDetection:0})}return vt})();const S={provide:F.kq,useExisting:(0,t.Rfq)(()=>Y),multi:!0};let Y=(()=>{class vt{get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}constructor(Le,zt,xt,st,Ct,It){this.ngZone=Le,this.elementRef=zt,this.overlay=xt,this.viewContainerRef=st,this.nzInputGroupWhitSuffixOrPrefixDirective=Ct,this.document=It,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new g.B,this.overlayRef=null,this.portal=null,this.previousValue=null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,e.Q)(this.destroy$)).subscribe(Le=>{"void"===Le.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(Le){this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setTriggerValue(Le)))}registerOnChange(Le){this.onChange=Le}registerOnTouched(Le){this.onTouched=Le}setDisabledState(Le){this.elementRef.nativeElement.disabled=Le,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(Le){const zt=Le.keyCode,xt=zt===B.i7||zt===B.n6;zt===B._f&&Le.preventDefault(),!this.panelOpen||zt!==B._f&&zt!==B.wn?this.panelOpen&&zt===B.Fm?this.nzAutocomplete.showPanel&&(Le.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&xt&&this.nzAutocomplete.showPanel&&(Le.stopPropagation(),Le.preventDefault(),zt===B.i7?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(Le){const zt=Le.target,xt=this.document;let st=zt.value;"number"===zt.type&&(st=""===st?null:parseFloat(st)),this.previousValue!==st&&(this.previousValue=st,this.onChange(st),this.canOpen()&&xt.activeElement===Le.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,M.M)(()=>this.positionStrategy.reapplyLastPosition()),(0,G.c)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(Le=>{this.setValueAndClose(Le)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,L.p)(Le=>!this.elementRef.nativeElement.contains(Le.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function R(){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.VA(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,e.Q)(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 A.rR({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 Le=[new A.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new A.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(Le).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const Le=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==Le?(this.nzAutocomplete.setActiveItem(Le),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(Le){const zt=Le.nzValue;this.setTriggerValue(Le.getLabel()),this.onChange(zt),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(Le){const zt=this.nzAutocomplete.getOption(Le),xt=zt?zt.getLabel():Le;this.elementRef.nativeElement.value=xt??"",this.nzAutocomplete.nzBackfill||(this.previousValue=xt)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const Le=this.elementRef.nativeElement;return!Le.readOnly&&!Le.disabled}static#e=this.\u0275fac=function(zt){return new(zt||vt)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(A.hJ),t.rXU(t.c1b),t.rXU(X.vN,8),t.rXU(I.qQ,8))};static#t=this.\u0275dir=t.FsC({type:vt,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(zt,xt){1&zt&&t.bIt("focusin",function(){return xt.handleFocus()})("blur",function(){return xt.handleBlur()})("input",function(Ct){return xt.handleInput(Ct)})("keydown",function(Ct){return xt.handleKeydown(Ct)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],standalone:!0,features:[t.Jv_([S])]})}return vt})(),Pt=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275mod=t.$C({type:vt});static#n=this.\u0275inj=t.G2t({imports:[Z]})}return vt})()},9438:(Rt,De,c)=>{c.d(De,{PM:()=>F,Yb:()=>V});var t=c(4707),r=c(6860),g=c(3953),e=c(6042),M=c(5103);const G=["textEl"];function L(x,ne){if(1&x&&g.nrm(0,"span",1),2&x){const J=g.XpG();g.Y8G("nzType",J.nzIcon)}}function B(x,ne){if(1&x){const J=g.RV6();g.j41(0,"img",4),g.bIt("error",function(Oe){g.eBV(J);const he=g.XpG();return g.Njj(he.imgError(Oe))}),g.k0s()}if(2&x){const J=g.XpG();g.Y8G("src",J.nzSrc,g.B4B),g.BMQ("srcset",J.nzSrcSet)("alt",J.nzAlt)}}function A(x,ne){if(1&x&&(g.j41(0,"span",3,0),g.EFF(2),g.k0s()),2&x){const J=g.XpG();g.R7$(2),g.JRh(J.nzText)}}let F=(()=>{class x{constructor(J,be,Oe){this.nzConfigService=J,this.elementRef=be,this.cdr=Oe,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new g.bkB,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(J){this.nzError.emit(J),J.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.calcStringSize())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.calcStringSize()}ngAfterViewInit(){this.calcStringSize()}calcStringSize(){if(!this.hasText||!this.textEl)return;const J=this.textEl.nativeElement,be=J.offsetWidth,Oe=this.el.getBoundingClientRect?.().width??0,he=2*this.nzGap{class x{static#e=this.\u0275fac=function(be){return new(be||x)};static#t=this.\u0275mod=g.$C({type:x});static#n=this.\u0275inj=g.G2t({imports:[F]})}return x})()},3146:(Rt,De,c)=>{c.d(De,{KI:()=>Z,W2:()=>pe,dz:()=>z});var t=c(4707),r=c(177),g=c(3953),e=c(1413),M=c(6977),G=c(713),L=c(6042),B=c(7806),A=c(6841),w=c(8203);function I(E,S){if(1&E&&(g.j41(0,"p",3),g.EFF(1),g.k0s()),2&E){const R=S.$implicit,Y=g.XpG(2).$index,se=g.XpG(2);g.AVh("current",R===se.countArray[Y]),g.R7$(),g.SpI(" ",R," ")}}function F(E,S){if(1&E&&g.Z7z(0,I,2,3,"p",2,g.fX1),2&E){const R=g.XpG(3);g.Dyx(R.countSingleArray)}}function X(E,S){if(1&E&&(g.j41(0,"span",1),g.DNE(1,F,2,0),g.k0s()),2&E){const R=S.$index,Y=g.XpG(2);g.xc7("transform","translateY("+100*-Y.countArray[R]+"%)"),g.Y8G("nzNoAnimation",Y.noAnimation),g.R7$(),g.vxM(Y.nzDot||void 0===Y.countArray[R]?-1:1)}}function V(E,S){if(1&E&&g.Z7z(0,X,2,4,"span",0,g.fX1),2&E){const R=g.XpG();g.Dyx(R.maxNumberArray)}}function x(E,S){if(1&E&&g.EFF(0),2&E){const R=g.XpG();g.SpI(" ",R.nzOverflowCount,"+ ")}}const ne=["*"];function J(E,S){if(1&E&&(g.qex(0),g.EFF(1),g.bVm()),2&E){const R=g.XpG(2);g.R7$(),g.JRh(R.nzText)}}function be(E,S){if(1&E&&(g.nrm(0,"span",1),g.j41(1,"span",2),g.DNE(2,J,2,1,"ng-container",0),g.k0s()),2&E){const R=g.XpG();g.ZvI("ant-badge-status-dot ant-badge-status-",R.nzStatus||R.presetColor,""),g.xc7("background",!R.presetColor&&R.nzColor),g.Y8G("ngStyle",R.nzStyle),g.R7$(2),g.Y8G("nzStringTemplateOutlet",R.nzText)}}function Oe(E,S){if(1&E&&g.nrm(0,"nz-badge-sup",3),2&E){const R=g.XpG(2);g.Y8G("nzOffset",R.nzOffset)("nzSize",R.nzSize)("nzTitle",R.nzTitle)("nzStyle",R.nzStyle)("nzDot",R.nzDot)("nzOverflowCount",R.nzOverflowCount)("disableAnimation",!!(R.nzStandalone||R.nzStatus||R.nzColor||null!=R.noAnimation&&R.noAnimation.nzNoAnimation))("nzCount",R.nzCount)("noAnimation",!(null==R.noAnimation||!R.noAnimation.nzNoAnimation))}}function he(E,S){if(1&E&&(g.qex(0),g.DNE(1,Oe,1,9,"nz-badge-sup",3),g.bVm()),2&E){const R=g.XpG();g.R7$(),g.vxM(R.showSup?1:-1)}}function we(E,S){if(1&E&&(g.qex(0),g.j41(1,"span",3),g.EFF(2),g.k0s(),g.bVm()),2&E){const R=g.XpG();g.R7$(2),g.JRh(R.nzText)}}let me=(()=>{class E{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(R){const{nzOverflowCount:Y,nzCount:se}=R;se&&"number"==typeof se.currentValue&&(this.count=Math.max(0,se.currentValue),this.countArray=this.count.toString().split("").map(Be=>+Be)),Y&&this.generateMaxNumberArray()}static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(Y,se){2&Y&&(g.zvX("@.disabled",se.disableAnimation)("@zoomBadgeMotion",void 0),g.BMQ("title",null===se.nzTitle?"":se.nzTitle||se.nzCount),g.Aen(se.nzStyle),g.xc7("right",se.nzOffset&&se.nzOffset[0]?-se.nzOffset[0]:null,"px")("margin-top",se.nzOffset&&se.nzOffset[1]?se.nzOffset[1]:null,"px"),g.AVh("ant-badge-count",!se.nzDot)("ant-badge-count-sm","small"===se.nzSize)("ant-badge-dot",se.nzDot)("ant-badge-multiple-words",se.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:[2,"nzOverflowCount","nzOverflowCount",g.Udg],disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},exportAs:["nzBadgeSup"],standalone:!0,features:[g.GFd,g.OA$,g.aNF],decls:2,vars:1,consts:[[1,"ant-scroll-number-only",3,"nzNoAnimation","transform"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[1,"ant-scroll-number-only-unit",3,"current"],[1,"ant-scroll-number-only-unit"]],template:function(Y,se){1&Y&&g.DNE(0,V,2,0)(1,x,1,1),2&Y&&g.vxM(se.count<=se.nzOverflowCount?0:1)},dependencies:[A.z],encapsulation:2,data:{animation:[G.bS]},changeDetection:0})}return E})();const de=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let z=(()=>{class E{constructor(R,Y,se,Be,Pt,vt){this.nzConfigService=R,this.renderer=Y,this.cdr=se,this.elementRef=Be,this.directionality=Pt,this.noAnimation=vt,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new e.B,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,M.Q)(this.destroy$)).subscribe(R=>{this.dir=R,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(R){const{nzColor:Y,nzShowDot:se,nzDot:Be,nzCount:Pt,nzShowZero:vt}=R;Y&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null),(se||Be||Pt||vt)&&(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()}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(L.yx),g.rXU(g.sFG),g.rXU(g.gRc),g.rXU(g.aKT),g.rXU(w.dS,8),g.rXU(A.z,9))};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(Y,se){2&Y&&g.AVh("ant-badge-status",se.nzStatus)("ant-badge-not-a-wrapper",!!(se.nzStandalone||se.nzStatus||se.nzColor))},inputs:{nzShowZero:[2,"nzShowZero","nzShowZero",g.L39],nzShowDot:[2,"nzShowDot","nzShowDot",g.L39],nzStandalone:[2,"nzStandalone","nzStandalone",g.L39],nzDot:[2,"nzDot","nzDot",g.L39],nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],standalone:!0,features:[g.GFd,g.OA$,g.aNF],ngContentSelectors:ne,decls:3,vars:2,consts:[[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(Y,se){1&Y&&(g.NAR(),g.DNE(0,be,3,7),g.SdG(1),g.DNE(2,he,2,1,"ng-container",0)),2&Y&&(g.vxM(se.nzStatus||se.nzColor?0:-1),g.R7$(2),g.Y8G("nzStringTemplateOutlet",se.nzCount))},dependencies:[r.B3,me,B.C,B.m],encapsulation:2,data:{animation:[G.bS]},changeDetection:0})}return(0,t.Cg)([(0,L.H4)()],E.prototype,"nzOverflowCount",void 0),(0,t.Cg)([(0,L.H4)()],E.prototype,"nzColor",void 0),E})(),Z=(()=>{class E{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(R){const{nzColor:Y}=R;Y&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null)}static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],standalone:!0,features:[g.OA$,g.aNF],ngContentSelectors:ne,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(Y,se){1&Y&&(g.NAR(),g.SdG(0),g.j41(1,"div",0),g.DNE(2,we,3,1,"ng-container",1),g.nrm(3,"div",2),g.k0s()),2&Y&&(g.R7$(),g.HbH(se.presetColor&&"ant-ribbon-color-"+se.presetColor),g.xc7("background-color",!se.presetColor&&se.nzColor),g.AVh("ant-ribbon-placement-end","end"===se.nzPlacement)("ant-ribbon-placement-start","start"===se.nzPlacement),g.R7$(),g.Y8G("nzStringTemplateOutlet",se.nzText),g.R7$(),g.xc7("color",!se.presetColor&&se.nzColor))},dependencies:[B.C,B.m],encapsulation:2,changeDetection:0})}return E})(),pe=(()=>{class E{static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275mod=g.$C({type:E});static#n=this.\u0275inj=g.G2t({imports:[z,Z]})}return E})()},513:(Rt,De,c)=>{c.d(De,{Zw:()=>Oe,aO:()=>J,dn:()=>be});var t=c(4707),r=c(3953),g=c(1413),e=c(3726),M=c(6977),G=c(9172),L=c(5964),B=c(6042),A=c(5103),w=c(8203),I=c(6389),F=c(5930);const X=["nz-button",""],V=["*"];function x(he,we){1&he&&r.nrm(0,"span",0)}let J=(()=>{class he{insertSpan(me,de){me.forEach(H=>{if("#text"===H.nodeName){const z=de.createElement("span"),Z=de.parentNode(H);de.insertBefore(Z,z,H),de.appendChild(z,H)}})}get iconOnly(){const me=Array.from(this.elementRef?.nativeElement?.childNodes||[]),de=me.every(z=>"#text"!==z.nodeName),H=0==me.filter(z=>!("#comment"===z.nodeName||z?.attributes?.getNamedItem("nz-icon"))).length;return!!this.nzIconDirectiveElement&&H&&de}constructor(me,de,H,z,Z,pe){this.ngZone=me,this.elementRef=de,this.cdr=H,this.renderer=z,this.nzConfigService=Z,this.directionality=pe,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 g.B,this.loading$=new g.B,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,M.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(me=>{this.dir=me,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click",{capture:!0}).pipe((0,M.Q)(this.destroy$)).subscribe(me=>{(this.disabled&&"A"===me.target?.tagName||this.nzLoading)&&(me.preventDefault(),me.stopImmediatePropagation())})})}ngOnChanges(me){const{nzLoading:de}=me;de&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,G.Z)(this.nzLoading),(0,L.p)(()=>!!this.nzIconDirectiveElement),(0,M.Q)(this.destroy$)).subscribe(me=>{const de=this.nzIconDirectiveElement.nativeElement;me?this.renderer.setStyle(de,"display","none"):this.renderer.removeStyle(de,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(de){return new(de||he)(r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(r.sFG),r.rXU(B.yx),r.rXU(w.dS,8))};static#t=this.\u0275cmp=r.VBU({type:he,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(de,H,z){if(1&de&&r.wni(z,A.Dn,5,r.aKT),2&de){let Z;r.mGM(Z=r.lsd())&&(H.nzIconDirectiveElement=Z.first)}},hostAttrs:[1,"ant-btn"],hostVars:34,hostBindings:function(de,H){2&de&&(r.BMQ("tabindex",H.disabled?-1:null===H.tabIndex?null:H.tabIndex)("disabled",H.disabled||null),r.AVh("ant-btn-default","default"===H.nzType)("ant-btn-primary","primary"===H.nzType)("ant-btn-dashed","dashed"===H.nzType)("ant-btn-link","link"===H.nzType)("ant-btn-text","text"===H.nzType)("ant-btn-circle","circle"===H.nzShape)("ant-btn-round","round"===H.nzShape)("ant-btn-lg","large"===H.nzSize)("ant-btn-sm","small"===H.nzSize)("ant-btn-dangerous",H.nzDanger)("ant-btn-loading",H.nzLoading)("ant-btn-background-ghost",H.nzGhost)("ant-btn-block",H.nzBlock)("ant-input-search-button",H.nzSearch)("ant-btn-rtl","rtl"===H.dir)("ant-btn-icon-only",H.iconOnly))},inputs:{nzBlock:[2,"nzBlock","nzBlock",r.L39],nzGhost:[2,"nzGhost","nzGhost",r.L39],nzSearch:[2,"nzSearch","nzSearch",r.L39],nzLoading:[2,"nzLoading","nzLoading",r.L39],nzDanger:[2,"nzDanger","nzDanger",r.L39],disabled:[2,"disabled","disabled",r.L39],tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],attrs:X,ngContentSelectors:V,decls:2,vars:1,consts:[["nz-icon","","nzType","loading"]],template:function(de,H){1&de&&(r.NAR(),r.DNE(0,x,1,0,"span",0),r.SdG(1)),2&de&&r.vxM(H.nzLoading?0:-1)},dependencies:[A.Y3,A.Dn],encapsulation:2,changeDetection:0})}return(0,t.Cg)([(0,B.H4)()],he.prototype,"nzSize",void 0),he})(),be=(()=>{class he{constructor(me){this.directionality=me,this.nzSize="default",this.dir="ltr",this.destroy$=new g.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(me=>{this.dir=me})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(de){return new(de||he)(r.rXU(w.dS,8))};static#t=this.\u0275cmp=r.VBU({type:he,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(de,H){2&de&&r.AVh("ant-btn-group-lg","large"===H.nzSize)("ant-btn-group-sm","small"===H.nzSize)("ant-btn-group-rtl","rtl"===H.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],standalone:!0,features:[r.aNF],ngContentSelectors:V,decls:1,vars:0,template:function(de,H){1&de&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return he})(),Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=r.$C({type:he});static#n=this.\u0275inj=r.G2t({imports:[J,I.p,F.o7]})}return he})()},5703:(Rt,De,c)=>{c.d(De,{RO:()=>wt,Ti:()=>xt,cK:()=>zt,ls:()=>vt});var t=c(3953),r=c(177),g=c(7806),e=c(4707),M=c(1413),G=c(6977),L=c(6042),B=c(1912),A=c(8203);function w(st,Ct){}function I(st,Ct){if(1&st&&(t.j41(0,"div",0),t.DNE(1,w,0,0,"ng-template",2),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",It.nzAvatar)}}function F(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzTitle)}}function X(st,Ct){if(1&st&&(t.j41(0,"div",3),t.DNE(1,F,2,1,"ng-container",5),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzTitle)}}function V(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzDescription)}}function x(st,Ct){if(1&st&&(t.j41(0,"div",4),t.DNE(1,V,2,1,"ng-container",5),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzDescription)}}function ne(st,Ct){if(1&st&&(t.j41(0,"div",1),t.DNE(1,X,2,1,"div",3)(2,x,2,1,"div",4),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.vxM(It.nzTitle?1:-1),t.R7$(),t.vxM(It.nzDescription?2:-1)}}const J=["*"];function be(st,Ct){1&st&&t.SdG(0)}const Oe=()=>({rows:4});function he(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzTitle)}}function we(st,Ct){if(1&st&&(t.j41(0,"div",6),t.DNE(1,he,2,1,"ng-container",9),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzTitle)}}function me(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzExtra)}}function de(st,Ct){if(1&st&&(t.j41(0,"div",7),t.DNE(1,me,2,1,"ng-container",9),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzExtra)}}function H(st,Ct){}function z(st,Ct){if(1&st&&t.DNE(0,H,0,0,"ng-template",8),2&st){const It=t.XpG(2);t.Y8G("ngTemplateOutlet",It.listOfNzCardTabComponent.template)}}function Z(st,Ct){if(1&st&&(t.j41(0,"div",0)(1,"div",5),t.DNE(2,we,2,1,"div",6)(3,de,2,1,"div",7),t.k0s(),t.DNE(4,z,1,1,null,8),t.k0s()),2&st){const It=t.XpG();t.R7$(2),t.vxM(It.nzTitle?2:-1),t.R7$(),t.vxM(It.nzExtra?3:-1),t.R7$(),t.vxM(It.listOfNzCardTabComponent?4:-1)}}function pe(st,Ct){}function E(st,Ct){if(1&st&&(t.j41(0,"div",1),t.DNE(1,pe,0,0,"ng-template",8),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",It.nzCover)}}function S(st,Ct){1&st&&t.nrm(0,"nz-skeleton",3),2&st&&t.Y8G("nzActive",!0)("nzTitle",!1)("nzParagraph",t.lJ4(3,Oe))}function R(st,Ct){1&st&&t.SdG(0)}function Y(st,Ct){}function se(st,Ct){if(1&st&&(t.j41(0,"li")(1,"span"),t.DNE(2,Y,0,0,"ng-template",8),t.k0s()()),2&st){const It=Ct.$implicit,Tt=t.XpG(2);t.xc7("width",100/Tt.nzActions.length,"%"),t.R7$(2),t.Y8G("ngTemplateOutlet",It)}}function Be(st,Ct){if(1&st&&(t.j41(0,"ul",4),t.Z7z(1,se,3,3,"li",10,t.Vm6),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Dyx(It.nzActions)}}let Pt=(()=>{class st{constructor(){this.nzHoverable=!0}static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275dir=t.FsC({type:st,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(Tt,en){2&Tt&&t.AVh("ant-card-hoverable",en.nzHoverable)},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",t.L39]},exportAs:["nzCardGrid"],standalone:!0,features:[t.GFd]})}return st})(),vt=(()=>{class st{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(Tt,en){1&Tt&&t.DNE(0,I,2,1,"div",0)(1,ne,3,2,"div",1),2&Tt&&(t.vxM(en.nzAvatar?0:-1),t.R7$(),t.vxM(en.nzTitle||en.nzDescription?1:-1))},dependencies:[r.T3,g.C,g.m],encapsulation:2,changeDetection:0})}return st})(),wt=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card-tab"]],viewQuery:function(Tt,en){if(1&Tt&&t.GBs(t.C4Q,7),2&Tt){let jt;t.mGM(jt=t.lsd())&&(en.template=jt.first)}},exportAs:["nzCardTab"],standalone:!0,features:[t.aNF],ngContentSelectors:J,decls:1,vars:0,template:function(Tt,en){1&Tt&&(t.NAR(),t.DNE(0,be,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return st})(),zt=(()=>{class st{constructor(It,Tt,en){this.nzConfigService=It,this.cdr=Tt,this.directionality=en,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 M.B,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(It=>{this.dir=It,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(t.rXU(L.yx),t.rXU(t.gRc),t.rXU(A.dS,8))};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card"]],contentQueries:function(Tt,en,jt){if(1&Tt&&(t.wni(jt,wt,5),t.wni(jt,Pt,4)),2&Tt){let Vt;t.mGM(Vt=t.lsd())&&(en.listOfNzCardTabComponent=Vt.first),t.mGM(Vt=t.lsd())&&(en.listOfNzCardGridDirective=Vt)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(Tt,en){2&Tt&&t.AVh("ant-card-loading",en.nzLoading)("ant-card-bordered",!1===en.nzBorderless&&en.nzBordered)("ant-card-hoverable",en.nzHoverable)("ant-card-small","small"===en.nzSize)("ant-card-contain-grid",en.listOfNzCardGridDirective&&en.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===en.nzType)("ant-card-contain-tabs",!!en.listOfNzCardTabComponent)("ant-card-rtl","rtl"===en.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzHoverable:[2,"nzHoverable","nzHoverable",t.L39],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:J,decls:6,vars:5,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body",3,"ngStyle"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(Tt,en){1&Tt&&(t.NAR(),t.DNE(0,Z,5,3,"div",0)(1,E,2,1,"div",1),t.j41(2,"div",2),t.DNE(3,S,1,4,"nz-skeleton",3)(4,R,1,0),t.k0s(),t.DNE(5,Be,3,0,"ul",4)),2&Tt&&(t.vxM(en.nzTitle||en.nzExtra||en.listOfNzCardTabComponent?0:-1),t.R7$(),t.vxM(en.nzCover?1:-1),t.R7$(),t.Y8G("ngStyle",en.nzBodyStyle),t.R7$(),t.vxM(en.nzLoading?3:4),t.R7$(2),t.vxM(en.nzActions.length?5:-1))},dependencies:[g.C,g.m,r.T3,r.B3,B.i3,B.Bi],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,L.H4)()],st.prototype,"nzBordered",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzBorderless",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzHoverable",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzSize",void 0),st})(),xt=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=t.$C({type:st});static#n=this.\u0275inj=t.G2t({imports:[zt,vt,A.jI]})}return st})()},5979:(Rt,De,c)=>{c.d(De,{xH:()=>G});var t=c(3953),r=c(4085),g=c(1985),e=c(1413);let M=(()=>{class A{create(I){return typeof ResizeObserver>"u"?null:new ResizeObserver(I)}static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275prov=t.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),G=(()=>{class A{constructor(I){this.nzResizeObserverFactory=I,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((I,F)=>this.cleanupObserver(F))}observe(I){const F=(0,r.i8)(I);return new g.c(X=>{const x=this.observeElement(F).subscribe(X);return()=>{x.unsubscribe(),this.unobserveElement(F)}})}observeElement(I){if(this.observedElements.has(I))this.observedElements.get(I).count++;else{const F=new e.B,X=this.nzResizeObserverFactory.create(V=>F.next(V));X&&X.observe(I),this.observedElements.set(I,{observer:X,stream:F,count:1})}return this.observedElements.get(I).stream}unobserveElement(I){this.observedElements.has(I)&&(this.observedElements.get(I).count--,this.observedElements.get(I).count||this.cleanupObserver(I))}cleanupObserver(I){if(this.observedElements.has(I)){const{observer:F,stream:X}=this.observedElements.get(I);F&&F.disconnect(),X.complete(),this.observedElements.delete(I)}}static#e=this.\u0275fac=function(F){return new(F||A)(t.KVO(M))};static#t=this.\u0275prov=t.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},2986:(Rt,De,c)=>{c.d(De,{$g:()=>x,IJ:()=>J,Ov:()=>ne,wG:()=>V});var t=c(3953),r=c(9417),g=c(1413),e=c(3726),M=c(6977),G=c(851),L=c(8203),B=c(7891);const A=["*"],w=["inputElement"],I=["nz-checkbox",""],F=(be,Oe)=>Oe.value;function X(be,Oe){if(1&be){const he=t.RV6();t.j41(0,"label",1),t.bIt("nzCheckedChange",function(me){const de=t.eBV(he).$implicit,H=t.XpG();return t.Njj(H.onCheckedChange(de,me))}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&be){const he=Oe.$implicit,we=t.XpG();t.Y8G("nzDisabled",he.disabled||we.nzDisabled)("nzChecked",he.checked),t.R7$(2),t.JRh(he.label)}}let V=(()=>{class be{constructor(){this.nzOnChange=new t.bkB,this.checkboxList=[]}addCheckbox(he){this.checkboxList.push(he)}removeCheckbox(he){this.checkboxList.splice(this.checkboxList.indexOf(he),1)}onChange(){const he=this.checkboxList.filter(we=>we.nzChecked).map(we=>we.nzValue);this.nzOnChange.emit(he)}static#e=this.\u0275fac=function(we){return new(we||be)};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],standalone:!0,features:[t.aNF],ngContentSelectors:A,decls:1,vars:0,template:function(we,me){1&we&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return be})(),x=(()=>{class be{innerCheckedChange(he){this.nzDisabled||(this.nzChecked=he,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(he){this.nzChecked=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.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(he,we,me,de,H,z,Z){this.ngZone=he,this.elementRef=we,this.nzCheckboxWrapperComponent=me,this.cdr=de,this.focusMonitor=H,this.directionality=z,this.nzFormStatusService=Z,this.dir="ltr",this.destroy$=new g.B,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.bkB,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,M.Q)(this.destroy$)).subscribe(he=>{he||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,M.Q)(this.destroy$)).subscribe(he=>{this.dir=he,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,M.Q)(this.destroy$)).subscribe(he=>{he.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,M.Q)(this.destroy$)).subscribe(he=>he.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(we){return new(we||be)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(V,8),t.rXU(t.gRc),t.rXU(G.FN),t.rXU(L.dS,8),t.rXU(B.is,8))};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["","nz-checkbox",""]],viewQuery:function(we,me){if(1&we&&t.GBs(w,7),2&we){let de;t.mGM(de=t.lsd())&&(me.inputElement=de.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(we,me){2&we&&t.AVh("ant-checkbox-wrapper-in-form-item",!!me.nzFormStatusService)("ant-checkbox-wrapper-checked",me.nzChecked)("ant-checkbox-rtl","rtl"===me.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",t.L39],nzChecked:[2,"nzChecked","nzChecked",t.L39],nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>be),multi:!0}]),t.GFd,t.aNF],attrs:I,ngContentSelectors:A,decls:6,vars:11,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(we,me){if(1&we){const de=t.RV6();t.NAR(),t.j41(0,"span",1)(1,"input",2,0),t.bIt("ngModelChange",function(z){return t.eBV(de),t.Njj(me.innerCheckedChange(z))}),t.k0s(),t.nrm(3,"span",3),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()}2&we&&(t.AVh("ant-checkbox-checked",me.nzChecked&&!me.nzIndeterminate)("ant-checkbox-disabled",me.nzDisabled)("ant-checkbox-indeterminate",me.nzIndeterminate),t.R7$(),t.Y8G("checked",me.nzChecked)("ngModel",me.nzChecked)("disabled",me.nzDisabled),t.BMQ("autofocus",me.nzAutoFocus?"autofocus":null)("id",me.nzId))},dependencies:[r.YN,r.Zm,r.BC,r.vS],encapsulation:2,changeDetection:0})}return be})(),ne=(()=>{class be{onCheckedChange(he,we){he.checked=we,this.onChange(this.options)}constructor(he,we,me,de){this.elementRef=he,this.focusMonitor=we,this.cdr=me,this.directionality=de,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new g.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,M.Q)(this.destroy$)).subscribe(he=>{he||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(he=>{this.dir=he,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(he){this.options=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.cdr.markForCheck()}static#e=this.\u0275fac=function(we){return new(we||be)(t.rXU(t.aKT),t.rXU(G.FN),t.rXU(t.gRc),t.rXU(L.dS,8))};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(we,me){2&we&&t.AVh("ant-checkbox-group-rtl","rtl"===me.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39]},exportAs:["nzCheckboxGroup"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>be),multi:!0}]),t.GFd,t.aNF],decls:2,vars:0,consts:[["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzCheckedChange","nzDisabled","nzChecked"]],template:function(we,me){1&we&&t.Z7z(0,X,3,3,"label",0,F),2&we&&t.Dyx(me.options)},dependencies:[x],encapsulation:2})}return be})(),J=(()=>{class be{static#e=this.\u0275fac=function(we){return new(we||be)};static#t=this.\u0275mod=t.$C({type:be});static#n=this.\u0275inj=t.G2t({imports:[x,ne]})}return be})()},713:(Rt,De,c)=>{c.d(De,{GE:()=>e,LD:()=>L,Sn:()=>V,U1:()=>X,W4:()=>B,bS:()=>be,eF:()=>x,uX:()=>J});var t=c(9969);let r=(()=>{class Oe{static#e=this.SLOW="0.3s";static#t=this.BASE="0.2s";static#n=this.FAST="0.1s"}return Oe})(),g=(()=>{class Oe{static#e=this.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)";static#t=this.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)";static#n=this.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)";static#i=this.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)";static#o=this.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)";static#r=this.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)";static#s=this.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)";static#a=this.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)";static#c=this.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)";static#l=this.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)";static#u=this.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)";static#d=this.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)";static#h=this.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)";static#p=this.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)"}return Oe})();const e=(0,t.hZ)("collapseMotion",[(0,t.wk)("expanded",(0,t.iF)({height:"*"})),(0,t.wk)("collapsed",(0,t.iF)({height:0,overflow:"hidden"})),(0,t.wk)("hidden",(0,t.iF)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,t.kY)("expanded => collapsed",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`)),(0,t.kY)("expanded => hidden",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`)),(0,t.kY)("collapsed => expanded",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`)),(0,t.kY)("hidden => expanded",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`))]),L=((0,t.hZ)("treeCollapseMotion",[(0,t.kY)("* => *",[(0,t.P)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,t.iF)({overflow:"hidden"}),(0,t.yc)(0,[(0,t.i0)(`150ms ${g.EASE_IN_OUT}`,(0,t.iF)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,t.P)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,t.iF)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,t.yc)(0,[(0,t.i0)(`150ms ${g.EASE_IN_OUT}`,(0,t.iF)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,t.hZ)("drawerMaskMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${r.SLOW}`,(0,t.iF)({opacity:1}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${r.SLOW}`,(0,t.iF)({opacity:0}))])]),(0,t.hZ)("fadeMotion",[(0,t.kY)("* => enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({opacity:1}))]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({opacity:0}))])])),B=(0,t.hZ)("helpMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"translateY(-5px)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_OUT}`,(0,t.iF)({opacity:1,transform:"translateY(0)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"translateY(0)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_OUT}`,(0,t.iF)({opacity:0,transform:"translateY(-5px)"}))])]),I=((0,t.hZ)("moveUpMotion",[(0,t.kY)("* => enter",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,t.kY)("* => leave",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,t.hZ)("notificationMotion",[(0,t.wk)("enterRight",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterRight",[(0,t.iF)({opacity:0,transform:"translateX(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterLeft",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterLeft",[(0,t.iF)({opacity:0,transform:"translateX(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterTop",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterTop",[(0,t.iF)({opacity:0,transform:"translateY(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterBottom",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterBottom",[(0,t.iF)({opacity:0,transform:"translateY(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("leave",(0,t.iF)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,t.kY)("* => leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)("100ms linear")])]),`${r.BASE} ${g.EASE_OUT_QUINT}`),F=`${r.BASE} ${g.EASE_IN_QUINT}`,X=(0,t.hZ)("slideMotion",[(0,t.wk)("void",(0,t.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,t.wk)("enter",(0,t.iF)({opacity:1,transform:"scaleY(1)"})),(0,t.kY)("void => *",[(0,t.i0)(I)]),(0,t.kY)("* => void",[(0,t.i0)(F)])]),V=(0,t.hZ)("slideAlertMotion",[(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),x=(0,t.hZ)("tabSwitchMotion",[(0,t.wk)("leave",(0,t.iF)({display:"none"})),(0,t.kY)("* => enter",[(0,t.iF)({display:"block",opacity:0}),(0,t.i0)(r.SLOW)]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({position:"absolute",top:0,left:0,width:"100%"}),(0,t.i0)(r.SLOW,(0,t.iF)({opacity:0})),(0,t.iF)({display:"none"})])]),J=((0,t.hZ)("thumbMotion",[(0,t.wk)("from",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:0,width:0}}),(0,t.wk)("to",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:100,width:0}}),(0,t.kY)("from => to",(0,t.i0)(`300ms ${g.EASE_IN_OUT}`))]),(0,t.hZ)("zoomBigMotion",[(0,t.kY)("void => active",[(0,t.iF)({opacity:0,transform:"scale(0.8)"}),(0,t.i0)(`${r.BASE} ${g.EASE_OUT_CIRC}`,(0,t.iF)({opacity:1,transform:"scale(1)"}))]),(0,t.kY)("active => void",[(0,t.iF)({opacity:1,transform:"scale(1)"}),(0,t.i0)(`${r.BASE} ${g.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scale(0.8)"}))])])),be=(0,t.hZ)("zoomBadgeMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_OUT_BACK}`,(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_BACK}`,(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},6006:(Rt,De,c)=>{c.d(De,{PA:()=>g,cM:()=>we,nP:()=>M,uP:()=>G,un:()=>e});var t=c(4709),r=c(4215);const g=["success","processing","error","default","warning"],e=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function M(me){return-1!==e.indexOf(me)}function G(me){return-1!==g.indexOf(me)}const L=2,B=.16,A=.05,w=.05,I=.15,F=5,X=4,V=[{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 x({r:me,g:de,b:H}){const z=(0,t.wE)(me,de,H);return{h:360*z.h,s:z.s,v:z.v}}function ne({r:me,g:de,b:H}){return`#${(0,t.Ob)(me,de,H,!1)}`}function be(me,de,H){let z;return z=Math.round(me.h)>=60&&Math.round(me.h)<=240?H?Math.round(me.h)-L*de:Math.round(me.h)+L*de:H?Math.round(me.h)+L*de:Math.round(me.h)-L*de,z<0?z+=360:z>=360&&(z-=360),z}function Oe(me,de,H){if(0===me.h&&0===me.s)return me.s;let z;return z=H?me.s-B*de:de===X?me.s+B:me.s+A*de,z>1&&(z=1),H&&de===F&&z>.1&&(z=.1),z<.06&&(z=.06),Number(z.toFixed(2))}function he(me,de,H){let z;return z=H?me.v+w*de:me.v-I*de,z>1&&(z=1),Number(z.toFixed(2))}function we(me,de={}){const H=[],z=(0,r.RO)(me);for(let Z=F;Z>0;Z-=1){const pe=x(z),E=ne((0,r.RO)({h:be(pe,Z,!0),s:Oe(pe,Z,!0),v:he(pe,Z,!0)}));H.push(E)}H.push(ne(z));for(let Z=1;Z<=X;Z+=1){const pe=x(z),E=ne((0,r.RO)({h:be(pe,Z),s:Oe(pe,Z),v:he(pe,Z)}));H.push(E)}return"dark"===de.theme?V.map(({index:Z,opacity:pe})=>ne(function J(me,de,H){const z=H/100;return{r:(de.r-me.r)*z+me.r,g:(de.g-me.g)*z+me.g,b:(de.b-me.b)*z+me.b}}((0,r.RO)(de.backgroundColor||"#141414"),(0,r.RO)(H[Z]),100*pe))):H}},6042:(Rt,De,c)=>{c.d(De,{yx:()=>we,H4:()=>me});var t=c(3953),r=c(1413),g=c(5964),e=c(3703),M=c(4709),G=c(6681),L=c(4215),B=c(9785),A=function(){function de(H,z){var Z;if(void 0===H&&(H=""),void 0===z&&(z={}),H instanceof de)return H;"number"==typeof H&&(H=(0,M.oS)(H)),this.originalInput=H;var pe=(0,L.RO)(H);this.originalInput=H,this.r=pe.r,this.g=pe.g,this.b=pe.b,this.a=pe.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Z=z.format)&&void 0!==Z?Z:pe.format,this.gradientType=z.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=pe.ok}return de.prototype.isDark=function(){return this.getBrightness()<128},de.prototype.isLight=function(){return!this.isDark()},de.prototype.getBrightness=function(){var H=this.toRgb();return(299*H.r+587*H.g+114*H.b)/1e3},de.prototype.getLuminance=function(){var H=this.toRgb(),E=H.r/255,S=H.g/255,R=H.b/255;return.2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))+.0722*(R<=.03928?R/12.92:Math.pow((R+.055)/1.055,2.4))},de.prototype.getAlpha=function(){return this.a},de.prototype.setAlpha=function(H){return this.a=(0,B.TV)(H),this.roundA=Math.round(100*this.a)/100,this},de.prototype.isMonochrome=function(){return 0===this.toHsl().s},de.prototype.toHsv=function(){var H=(0,M.wE)(this.r,this.g,this.b);return{h:360*H.h,s:H.s,v:H.v,a:this.a}},de.prototype.toHsvString=function(){var H=(0,M.wE)(this.r,this.g,this.b),z=Math.round(360*H.h),Z=Math.round(100*H.s),pe=Math.round(100*H.v);return 1===this.a?"hsv(".concat(z,", ").concat(Z,"%, ").concat(pe,"%)"):"hsva(".concat(z,", ").concat(Z,"%, ").concat(pe,"%, ").concat(this.roundA,")")},de.prototype.toHsl=function(){var H=(0,M.K6)(this.r,this.g,this.b);return{h:360*H.h,s:H.s,l:H.l,a:this.a}},de.prototype.toHslString=function(){var H=(0,M.K6)(this.r,this.g,this.b),z=Math.round(360*H.h),Z=Math.round(100*H.s),pe=Math.round(100*H.l);return 1===this.a?"hsl(".concat(z,", ").concat(Z,"%, ").concat(pe,"%)"):"hsla(".concat(z,", ").concat(Z,"%, ").concat(pe,"%, ").concat(this.roundA,")")},de.prototype.toHex=function(H){return void 0===H&&(H=!1),(0,M.Ob)(this.r,this.g,this.b,H)},de.prototype.toHexString=function(H){return void 0===H&&(H=!1),"#"+this.toHex(H)},de.prototype.toHex8=function(H){return void 0===H&&(H=!1),(0,M.H)(this.r,this.g,this.b,this.a,H)},de.prototype.toHex8String=function(H){return void 0===H&&(H=!1),"#"+this.toHex8(H)},de.prototype.toHexShortString=function(H){return void 0===H&&(H=!1),1===this.a?this.toHexString(H):this.toHex8String(H)},de.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},de.prototype.toRgbString=function(){var H=Math.round(this.r),z=Math.round(this.g),Z=Math.round(this.b);return 1===this.a?"rgb(".concat(H,", ").concat(z,", ").concat(Z,")"):"rgba(".concat(H,", ").concat(z,", ").concat(Z,", ").concat(this.roundA,")")},de.prototype.toPercentageRgb=function(){var H=function(z){return"".concat(Math.round(100*(0,B.Cg)(z,255)),"%")};return{r:H(this.r),g:H(this.g),b:H(this.b),a:this.a}},de.prototype.toPercentageRgbString=function(){var H=function(z){return Math.round(100*(0,B.Cg)(z,255))};return 1===this.a?"rgb(".concat(H(this.r),"%, ").concat(H(this.g),"%, ").concat(H(this.b),"%)"):"rgba(".concat(H(this.r),"%, ").concat(H(this.g),"%, ").concat(H(this.b),"%, ").concat(this.roundA,")")},de.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var H="#"+(0,M.Ob)(this.r,this.g,this.b,!1),z=0,Z=Object.entries(G.D);z=0&&(H.startsWith("hex")||"name"===H)?"name"===H&&0===this.a?this.toName():this.toRgbString():("rgb"===H&&(Z=this.toRgbString()),"prgb"===H&&(Z=this.toPercentageRgbString()),("hex"===H||"hex6"===H)&&(Z=this.toHexString()),"hex3"===H&&(Z=this.toHexString(!0)),"hex4"===H&&(Z=this.toHex8String(!0)),"hex8"===H&&(Z=this.toHex8String()),"name"===H&&(Z=this.toName()),"hsl"===H&&(Z=this.toHslString()),"hsv"===H&&(Z=this.toHsvString()),Z||this.toHexString())},de.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},de.prototype.clone=function(){return new de(this.toString())},de.prototype.lighten=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.l+=H/100,z.l=(0,B.J$)(z.l),new de(z)},de.prototype.brighten=function(H){void 0===H&&(H=10);var z=this.toRgb();return z.r=Math.max(0,Math.min(255,z.r-Math.round(-H/100*255))),z.g=Math.max(0,Math.min(255,z.g-Math.round(-H/100*255))),z.b=Math.max(0,Math.min(255,z.b-Math.round(-H/100*255))),new de(z)},de.prototype.darken=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.l-=H/100,z.l=(0,B.J$)(z.l),new de(z)},de.prototype.tint=function(H){return void 0===H&&(H=10),this.mix("white",H)},de.prototype.shade=function(H){return void 0===H&&(H=10),this.mix("black",H)},de.prototype.desaturate=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.s-=H/100,z.s=(0,B.J$)(z.s),new de(z)},de.prototype.saturate=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.s+=H/100,z.s=(0,B.J$)(z.s),new de(z)},de.prototype.greyscale=function(){return this.desaturate(100)},de.prototype.spin=function(H){var z=this.toHsl(),Z=(z.h+H)%360;return z.h=Z<0?360+Z:Z,new de(z)},de.prototype.mix=function(H,z){void 0===z&&(z=50);var Z=this.toRgb(),pe=new de(H).toRgb(),E=z/100;return new de({r:(pe.r-Z.r)*E+Z.r,g:(pe.g-Z.g)*E+Z.g,b:(pe.b-Z.b)*E+Z.b,a:(pe.a-Z.a)*E+Z.a})},de.prototype.analogous=function(H,z){void 0===H&&(H=6),void 0===z&&(z=30);var Z=this.toHsl(),pe=360/z,E=[this];for(Z.h=(Z.h-(pe*H>>1)+720)%360;--H;)Z.h=(Z.h+pe)%360,E.push(new de(Z));return E},de.prototype.complement=function(){var H=this.toHsl();return H.h=(H.h+180)%360,new de(H)},de.prototype.monochromatic=function(H){void 0===H&&(H=6);for(var z=this.toHsv(),Z=z.h,pe=z.s,E=z.v,S=[],R=1/H;H--;)S.push(new de({h:Z,s:pe,v:E})),E=(E+R)%1;return S},de.prototype.splitcomplement=function(){var H=this.toHsl(),z=H.h;return[this,new de({h:(z+72)%360,s:H.s,l:H.l}),new de({h:(z+216)%360,s:H.s,l:H.l})]},de.prototype.onBackground=function(H){var z=this.toRgb(),Z=new de(H).toRgb(),pe=z.a+Z.a*(1-z.a);return new de({r:(z.r*z.a+Z.r*Z.a*(1-z.a))/pe,g:(z.g*z.a+Z.g*Z.a*(1-z.a))/pe,b:(z.b*z.a+Z.b*Z.a*(1-z.a))/pe,a:pe})},de.prototype.triad=function(){return this.polyad(3)},de.prototype.tetrad=function(){return this.polyad(4)},de.prototype.polyad=function(H){for(var z=this.toHsl(),Z=z.h,pe=[this],E=360/H,S=1;S{let Y=S.clone();return Y=R?.(Y)||Y,Y.toRgbString()},pe=(S,R)=>{const Y=new A(S),se=(0,I.cM)(Y.toRgbString());z[`${R}-color`]=Z(Y),z[`${R}-color-disabled`]=se[1],z[`${R}-color-hover`]=se[4],z[`${R}-color-active`]=se[7],z[`${R}-color-outline`]=Y.clone().setAlpha(.2).toRgbString(),z[`${R}-color-deprecated-bg`]=se[1],z[`${R}-color-deprecated-border`]=se[3]};if(H.primaryColor){pe(H.primaryColor,"primary");const S=new A(H.primaryColor),R=(0,I.cM)(S.toRgbString());R.forEach((se,Be)=>{z[`primary-${Be+1}`]=se}),z["primary-color-deprecated-l-35"]=Z(S,se=>se.lighten(35)),z["primary-color-deprecated-l-20"]=Z(S,se=>se.lighten(20)),z["primary-color-deprecated-t-20"]=Z(S,se=>se.tint(20)),z["primary-color-deprecated-t-50"]=Z(S,se=>se.tint(50)),z["primary-color-deprecated-f-12"]=Z(S,se=>se.setAlpha(.12*se.getAlpha()));const Y=new A(R[0]);z["primary-color-active-deprecated-f-30"]=Z(Y,se=>se.setAlpha(.3*se.getAlpha())),z["primary-color-active-deprecated-d-02"]=Z(Y,se=>se.darken(2))}return H.successColor&&pe(H.successColor,"success"),H.warningColor&&pe(H.warningColor,"warning"),H.errorColor&&pe(H.errorColor,"error"),H.infoColor&&pe(H.infoColor,"info"),`\n :root {\n ${Object.keys(z).map(S=>`--${de}-${S}: ${z[S]};`).join("\n")}\n }\n `.trim()}(de,H);(0,X.OC)()?(0,X.BD)(Z,`${ne}-dynamic-theme`,{cspNonce:z}):(0,F.R8)("NzConfigService: SSR do not support dynamic theme with css variables.")}const Oe=function(de){return void 0!==de};let we=(()=>{class de{constructor(z,Z){this.configUpdated$=new r.B,this.config=z||{},this.cspNonce=Z,this.config.theme&&be(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,Z)}getConfig(){return this.config}getConfigForComponent(z){return this.config[z]}getConfigChangeEventForComponent(z){return this.configUpdated$.pipe((0,g.p)(Z=>Z===z),(0,e.u)(void 0))}set(z,Z){this.config[z]={...this.config[z],...Z},"theme"===z&&this.config.theme&&be(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,this.cspNonce),this.configUpdated$.next(z)}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(V,8),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();function me(){return function(H,z,Z){const pe=`$$__zorroConfigDecorator__${z}`;return Object.defineProperty(H,pe,{configurable:!0,writable:!0,enumerable:!1}),{get(){const E=Z?.get?Z.get.bind(this)():this[pe],S=(this.propertyAssignCounter?.[z]||0)>1,R=this.nzConfigService.getConfigForComponent(this._nzModuleName)?.[z];return S&&Oe(E)?E:Oe(R)?R:E},set(E){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[z]=(this.propertyAssignCounter[z]||0)+1,Z?.set?Z.set.bind(this)(E):this[pe]=E},configurable:!0,enumerable:!0}}}},7891:(Rt,De,c)=>{c.d(De,{J1:()=>I,Xd:()=>w,is:()=>L,n1:()=>B});var t=c(3953),r=c(2771),g=c(4412),e=c(177),M=c(5103);function G(F,X){if(1&F&&t.nrm(0,"span",1),2&F){const V=t.XpG();t.Y8G("nzType",V.iconType)}}let L=(()=>{class F{constructor(){this.formStatusChanges=new r.m(1)}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})(),B=(()=>{class F{constructor(){this.noFormStatus=new g.t(!1)}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})();const A={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let w=(()=>{class F{constructor(V){this.cdr=V,this.status="",this.iconType=null}ngOnChanges(V){this.updateIcon()}updateIcon(){this.iconType=this.status?A[this.status]:null,this.cdr.markForCheck()}static#e=this.\u0275fac=function(x){return new(x||F)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:F,selectors:[["nz-form-item-feedback-icon"]],hostAttrs:[1,"ant-form-item-feedback-icon"],hostVars:8,hostBindings:function(x,ne){2&x&&t.AVh("ant-form-item-feedback-icon-error","error"===ne.status)("ant-form-item-feedback-icon-warning","warning"===ne.status)("ant-form-item-feedback-icon-success","success"===ne.status)("ant-form-item-feedback-icon-validating","validating"===ne.status)},inputs:{status:"status"},exportAs:["nzFormFeedbackIcon"],features:[t.OA$],decls:1,vars:1,consts:[["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(x,ne){1&x&&t.DNE(0,G,1,1,"span",0),2&x&&t.Y8G("ngIf",ne.iconType)},dependencies:[e.bT,M.Dn],encapsulation:2,changeDetection:0})}return F})(),I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=t.$C({type:F});static#n=this.\u0275inj=t.G2t({imports:[e.MD,M.Y3]})}return F})()},3451:(Rt,De,c)=>{c.d(De,{H3:()=>e,R8:()=>L});var t=c(3953);const g={},e="[NG-ZORRO]:";const L=(...w)=>function G(w,...I){(0,t.naY)()&&function M(...w){const I=w.reduce((F,X)=>F+X.toString(),"");return!g[I]&&(g[I]=!0,!0)}(...I)&&w(...I)}((...I)=>console.warn(e,...I),...w)},6841:(Rt,De,c)=>{c.d(De,{z:()=>r});var t=c(3953);let r=(()=>{class e{constructor(){this.animationType=(0,t.WQX)(t.bc$,{optional:!0}),this.nzNoAnimation=!1}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","nzNoAnimation",""]],hostVars:2,hostBindings:function(L,B){2&L&&t.AVh("nz-animate-disabled",B.nzNoAnimation||"NoopAnimations"===B.animationType)},inputs:{nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",t.L39]},exportAs:["nzNoAnimation"],standalone:!0,features:[t.GFd]})}return e})()},7806:(Rt,De,c)=>{c.d(De,{C:()=>e,m:()=>r});var t=c(3953);let r=(()=>{class M{static ngTemplateContextGuard(L,B){return!0}recreateView(){this.viewContainer.clear();const L=this.nzStringTemplateOutlet instanceof t.C4Q;this.embeddedViewRef=this.viewContainer.createEmbeddedView(L?this.nzStringTemplateOutlet:this.templateRef,L?this.nzStringTemplateOutletContext:this.context)}updateContext(){const B=this.nzStringTemplateOutlet instanceof t.C4Q?this.nzStringTemplateOutletContext:this.context,A=this.embeddedViewRef.context;if(B)for(const w of Object.keys(B))A[w]=B[w]}constructor(L,B){this.viewContainer=L,this.templateRef=B,this.embeddedViewRef=null,this.context=new g,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}ngOnChanges(L){const{nzStringTemplateOutletContext:B,nzStringTemplateOutlet:A}=L;A&&(this.context.$implicit=A.currentValue),(()=>{let F=!1;return A&&(F=!!A.firstChange||(A.previousValue instanceof t.C4Q||A.currentValue instanceof t.C4Q)),B&&(x=>{const ne=Object.keys(x.previousValue||{}),J=Object.keys(x.currentValue||{});if(ne.length===J.length){for(const be of J)if(-1===ne.indexOf(be))return!0;return!1}return!0})(B)||F})()?this.recreateView():this.updateContext()}static#e=this.\u0275fac=function(B){return new(B||M)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:M,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],standalone:!0,features:[t.OA$]})}return M})();class g{}let e=(()=>{class M{static#e=this.\u0275fac=function(B){return new(B||M)};static#t=this.\u0275mod=t.$C({type:M});static#n=this.\u0275inj=t.G2t({})}return M})()},5463:(Rt,De,c)=>{c.d(De,{$_:()=>V,G5:()=>x,Ib:()=>B,Js:()=>G,MV:()=>A,jj:()=>w,pn:()=>M,vT:()=>X});var t=c(7987),r=c(3953),g=c(6977),e=c(1025);const M={top:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new t.uH({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new t.uH({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new t.uH({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new t.uH({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new t.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},G=[M.top,M.right,M.bottom,M.left],B=[new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],A=[M.bottomLeft,new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function w(ne){for(const J in M)if(ne.connectionPair.originX===M[J].originX&&ne.connectionPair.originY===M[J].originY&&ne.connectionPair.overlayX===M[J].overlayX&&ne.connectionPair.overlayY===M[J].overlayY)return J}new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},void 0,2),new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,-2),new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"},void 0,2),new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,-2);let X=(()=>{class ne{constructor(be,Oe){this.cdkConnectedOverlay=be,this.nzDestroyService=Oe,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,g.Q)(this.nzDestroyService)).subscribe(he=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(he)})}updateArrowPosition(be){const Oe=this.getOriginRect(),he=w(be);let we=0,me=0;"topLeft"===he||"bottomLeft"===he?we=Oe.width/2-14:"topRight"===he||"bottomRight"===he?we=-(Oe.width/2-14):"leftTop"===he||"rightTop"===he?me=Oe.height/2-10:("leftBottom"===he||"rightBottom"===he)&&(me=-(Oe.height/2-10)),(this.cdkConnectedOverlay.offsetX!==we||this.cdkConnectedOverlay.offsetY!==me)&&(this.cdkConnectedOverlay.offsetY=me,this.cdkConnectedOverlay.offsetX=we,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof t.$Q?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const be=this.getFlexibleConnectedPositionStrategyOrigin();if(be instanceof r.aKT)return be.nativeElement.getBoundingClientRect();if(be instanceof Element)return be.getBoundingClientRect();const Oe=be.width||0,he=be.height||0;return{top:be.y,bottom:be.y+he,left:be.x,right:be.x+Oe,height:he,width:Oe}}static#e=this.\u0275fac=function(Oe){return new(Oe||ne)(r.rXU(t.WB),r.rXU(e.y4))};static#t=this.\u0275dir=r.FsC({type:ne,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:[2,"nzArrowPointAtCenter","nzArrowPointAtCenter",r.L39]},exportAs:["nzConnectedOverlay"],features:[r.Jv_([e.y4]),r.GFd]})}return ne})(),V=(()=>{class ne{static#e=this.\u0275fac=function(Oe){return new(Oe||ne)};static#t=this.\u0275mod=r.$C({type:ne});static#n=this.\u0275inj=r.G2t({})}return ne})();function x(ne,J){J&&(ne._host.style.zIndex=`${J}`)}},4500:(Rt,De,c)=>{c.d(De,{F:()=>e,j:()=>M});const t=["moz","ms","webkit"];function e(G){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(G);const L=t.filter(B=>`${B}CancelAnimationFrame`in window||`${B}CancelRequestAnimationFrame`in window)[0];return L?(window[`${L}CancelAnimationFrame`]||window[`${L}CancelRequestAnimationFrame`]).call(this,G):clearTimeout(G)}const M=function g(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const G=t.filter(L=>`${L}RequestAnimationFrame`in window)[0];return G?window[`${G}RequestAnimationFrame`]:function r(){let G=0;return function(L){const B=(new Date).getTime(),A=Math.max(0,16-(B-G)),w=window.setTimeout(()=>{L(B+A)},A);return G=B+A,w}}()}()},1025:(Rt,De,c)=>{c.d(De,{cB:()=>X,fe:()=>we,jp:()=>de,pt:()=>he,qH:()=>J,y4:()=>H,yY:()=>me});var t=c(3953),r=c(1413),g=c(3798),e=c(980),M=c(6354),G=c(5964),L=c(6977),B=c(9172),A=c(3294),w=c(317),I=c(9327);const F=()=>{};let X=(()=>{class Z{constructor(E,S){this.ngZone=E,this.rendererFactory2=S,this.resizeSource$=new r.B,this.listeners=0,this.disposeHandle=F,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=F}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,g.Z)(16),(0,e.j)(()=>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=F)}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(t.SKi),t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),J=(()=>{class Z{constructor(E){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=E.createRenderer(null,null)}requestDraggingSequence(E){return this.handleRegistry.size||this.registerDraggingHandler((0,w.kH)(E)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function ne(Z){const pe=(0,w.q1)(Z);return{x:pe.pageX,y:pe.pageY}}(E),this.currentDraggingSequence=new r.B,this.currentDraggingSequence.pipe((0,M.T)(S=>({x:S.pageX-this.currentStartingPoint.x,y:S.pageY-this.currentStartingPoint.y})),(0,G.p)(S=>Math.abs(S.x)>this.draggingThreshold||Math.abs(S.y)>this.draggingThreshold),(0,e.j)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(E){E?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",S=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(S.touches[0]||S.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",S=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(S)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})();var he=function(Z){return Z.xxl="xxl",Z.xl="xl",Z.lg="lg",Z.md="md",Z.sm="sm",Z.xs="xs",Z}(he||{});const we={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},me={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 de=(()=>{class Z{constructor(E,S){this.resizeService=E,this.mediaMatcher=S,this.destroy$=new r.B,this.resizeService.subscribe().pipe((0,L.Q)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(E,S){if(S){const R=()=>this.matchMedia(E,!0);return this.resizeService.subscribe().pipe((0,M.T)(R),(0,B.Z)(R()),(0,A.F)((Y,se)=>Y[0]===se[0]),(0,M.T)(Y=>Y[1]))}{const R=()=>this.matchMedia(E);return this.resizeService.subscribe().pipe((0,M.T)(R),(0,B.Z)(R()),(0,A.F)())}}matchMedia(E,S){let R=he.md;const Y={};return Object.keys(E).map(se=>{const Be=se,Pt=this.mediaMatcher.matchMedia(we[Be]).matches;Y[se]=Pt,Pt&&(R=Be)}),S?[R,Y]:R}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(X),t.KVO(I.DY))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),H=(()=>{class Z extends r.B{ngOnDestroy(){this.next(),this.complete()}static#e=this.\u0275fac=(()=>{let E;return function(R){return(E||(E=t.xGo(Z)))(R||Z)}})();static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac})}return Z})()},6389:(Rt,De,c)=>{c.d(De,{c:()=>r,p:()=>g});var t=c(3953);let r=(()=>{class e{setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}constructor(G,L){this.elementRef=G,this.renderer=L,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}static#e=this.\u0275fac=function(L){return new(L||e)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:e,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"},standalone:!0,features:[t.OA$]})}return e})(),g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({})}return e})()},317:(Rt,De,c)=>{c.d(De,{BD:()=>ue,BV:()=>xt,CF:()=>se,Fq:()=>zn,G4:()=>ne,LP:()=>te,Mk:()=>pe,OC:()=>kn,OM:()=>Y,Ro:()=>Oe,cG:()=>Wn,cj:()=>J,cz:()=>Ct,gD:()=>F,ho:()=>fn,ij:()=>Tn,j3:()=>he,kH:()=>E,n9:()=>I,nI:()=>st,nS:()=>Kt,q1:()=>S,r1:()=>A,xP:()=>oe,yL:()=>vt});var t=c(3953),r=c(4085),g=c(1413),e=c(4402),M=c(2806),G=c(7673),L=c(6697);function A(q,Xe){if(!q||!Xe||q.length!==Xe.length)return!1;const dt=q.length;for(let at=0;at"u"||null===q}function ne(q){return(0,r.he)(q)}function J(q){return(0,t.Udg)(q,0)}function Oe(q,Xe=0){return(0,r.OE)(q,Xe)}function he(q){return(0,r.a1)(q)}function pe(q){if(!q.getClientRects().length)return{top:0,left:0};const Xe=q.getBoundingClientRect(),dt=q.ownerDocument.defaultView;return{top:Xe.top+dt.pageYOffset,left:Xe.left+dt.pageXOffset}}function E(q){return q.type.startsWith("touch")}function S(q){return E(q)?q.touches[0]||q.changedTouches[0]:q}function Y(q,Xe="@"){if("string"!=typeof q)return[];const dt=function R(q){const Xe=Array.isArray(q)?q:[q];let dt=Xe.join("").replace(/(\$|\^)/g,"\\$1");return Xe.length>1&&(dt=`[${dt}]`),new RegExp(`(\\s|^)(${dt})[^\\s]*`,"g")}(Xe),at=q.match(dt);return null!==at?at.map(St=>St.trim()):[]}function se(q,Xe,dt){if(q.length>Xe)return q;const at=`${function Pt(q,Xe){return Array(q).fill(Xe).join("")}(Xe,dt)}${q}`;return at.slice(at.length-Xe,at.length)}function vt(q){return!!q&&"function"==typeof q.then&&"function"==typeof q.catch}function xt(q){return"number"==typeof q&&isFinite(q)}function st(q,Xe){return Math.round(q*Math.pow(10,Xe))/Math.pow(10,Xe)}function Ct(q,Xe=0){return q.reduce((dt,at)=>dt+at,Xe)}const Tt=["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"],en=typeof window<"u",jt=en&&null!=window.mozInnerScreenX,Vt=q=>parseInt(q,10);function fn(q,Xe,dt){if(!en)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const at=dt&&dt.debug||!1;if(at){const gt=document.querySelector("#input-textarea-caret-position-mirror-div");gt&>.parentNode.removeChild(gt)}const St=document.createElement("div");St.id="input-textarea-caret-position-mirror-div",document.body.appendChild(St);const Qe=St.style,Ee=window.getComputedStyle?window.getComputedStyle(q):q.currentStyle,Je="INPUT"===q.nodeName;Qe.whiteSpace="pre-wrap",Je||(Qe.wordWrap="break-word"),Qe.position="absolute",at||(Qe.visibility="hidden"),Tt.forEach(gt=>{Je&&"lineHeight"===gt?Qe.lineHeight=Ee.height:Qe[gt]=Ee[gt]}),jt?q.scrollHeight>Vt(Ee.height)&&(Qe.overflowY="scroll"):Qe.overflow="hidden",St.textContent=q.value.substring(0,Xe),Je&&(St.textContent=St.textContent.replace(/\s/g,"\xa0"));const re=document.createElement("span");re.textContent=q.value.substring(Xe)||".",St.appendChild(re);const ze={top:re.offsetTop+Vt(Ee.borderTopWidth),left:re.offsetLeft+Vt(Ee.borderLeftWidth),height:Vt(Ee.lineHeight)};return at?(re.style.backgroundColor="#eee",function Hn(q,Xe){const dt=getComputedStyle(q).getPropertyValue("font-size"),at=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(at),at.id="DEBUG",at.style.position="absolute",at.style.backgroundColor="red",at.style.height=dt,at.style.width="1px",at.style.top=`${q.getBoundingClientRect().top-q.scrollTop+window.pageYOffset+Xe.top}px`,at.style.left=`${q.getBoundingClientRect().left-q.scrollLeft+window.pageXOffset+Xe.left}px`}(q,ze)):document.body.removeChild(St),ze}function zn(q){if(typeof window<"u"&&window.document&&window.document.documentElement){const Xe=Array.isArray(q)?q:[q],{documentElement:dt}=window.document;return Xe.some(at=>at in dt.style)}return!1}const At=1,Et=3,Ot=8;let Yt;const Ue={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function Ae(q){if(!q)return 0;const Xe=q.match(/^\d*(\.\d*)?/);return Xe?Number(Xe[0]):0}function oe(q,Xe,dt,at,St,Qe=""){Yt||(Yt=document.createElement("div"),Yt.setAttribute("aria-hidden","true"),document.body.appendChild(Yt));const Ee=window.getComputedStyle(q),Je=function ie(q){return Array.prototype.slice.apply(q).map(dt=>`${dt}: ${q.getPropertyValue(dt)};`).join("")}(Ee),re=Ae(Ee.lineHeight),ze=Math.round(re*(Xe+1)+Ae(Ee.paddingTop)+Ae(Ee.paddingBottom));Yt.setAttribute("style",Je),Yt.style.position="fixed",Yt.style.left="0",Yt.style.height="auto",Yt.style.minHeight="auto",Yt.style.maxHeight="auto",Yt.style.top="-999999px",Yt.style.zIndex="-1000",Yt.style.textOverflow="clip",Yt.style.whiteSpace="normal",Yt.style.webkitLineClamp="none";const gt=function _e(q){const Xe=[];return q.forEach(dt=>{const at=Xe[Xe.length-1];at&&dt.nodeType===Et&&at.nodeType===Et?at.data+=dt.data:Xe.push(dt)}),Xe}(dt),Ke=document.createElement("div"),Pe=document.createElement("span"),Re=document.createTextNode(Qe),$=document.createElement("span");function ce(){return Yt.offsetHeight{Pe.appendChild(on)}),Pe.appendChild(Re),at.forEach(on=>{$.appendChild(on.cloneNode(!0))}),Ke.appendChild(Pe),Ke.appendChild($),Yt.appendChild(Ke),ce()){const on=Yt.innerHTML;return Yt.removeChild(Ke),{contentNodes:dt,text:on,ellipsis:!1}}const N=Array.prototype.slice.apply(Yt.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:on})=>on!==Ot),ke=Array.prototype.slice.apply(Yt.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Yt.removeChild(Ke),Yt.innerHTML="";const ve=document.createElement("span");Yt.appendChild(ve);const K=document.createTextNode(St+Qe);function ge(on,Cn,Zn=0,jn=Cn.length,Gn=0){const zi=Math.floor((Zn+jn)/2);if(on.textContent=Cn.slice(0,zi),Zn>=jn-1)for(let Oi=jn;Oi>=Zn;Oi-=1){const lo=Cn.slice(0,Oi);if(on.textContent=lo,ce()||!lo)return Oi===Cn.length?{finished:!1,node:document.createTextNode(Cn)}:{finished:!0,node:document.createTextNode(lo)}}return ce()?ge(on,Cn,zi,jn,zi):ge(on,Cn,Zn,zi,Gn)}function qe(on,Cn){const Zn=on.nodeType;if(Zn===At)return ce()?{finished:!1,node:gt[Cn]}:(ve.removeChild(on),{finished:!0,node:null});if(Zn===Et){const jn=on.textContent||"",Gn=document.createTextNode(jn);return function U(on){ve.insertBefore(on,K)}(Gn),ge(Gn,jn)}return{finished:!1,node:null}}ve.appendChild(K),ke.forEach(on=>{Yt.appendChild(on)});const rt=[];N.some((on,Cn)=>{const{finished:Zn,node:jn}=qe(on,Cn);return jn&&rt.push(jn),Zn});const Ft={contentNodes:rt,text:Yt.innerHTML,ellipsis:!0};for(;Yt.firstChild;)Yt.removeChild(Yt.firstChild);return Ft}let Fe,et;const ut={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function Kt(q="vertical",Xe="ant"){if(typeof document>"u"||typeof window>"u")return 0;const dt="vertical"===q;if(dt&&Fe)return Fe;if(!dt&&et)return et;const at=document.createElement("div");Object.keys(ut).forEach(Qe=>{at.style[Qe]=ut[Qe]}),at.className=`${Xe}-hide-scrollbar scroll-div-append-to-body`,dt?at.style.overflowY="scroll":at.style.overflowX="scroll",document.body.appendChild(at);let St=0;return dt?(St=at.offsetWidth-at.clientWidth,Fe=St):(St=at.offsetHeight-at.clientHeight,et=St),document.body.removeChild(at),St}function Tn(){const q=new g.B;return Promise.resolve().then(()=>q.next()),q.pipe((0,L.s)(1))}function Wn(q){return(0,e.A)(q)?q:vt(q)?(0,M.H)(Promise.resolve(q)):(0,G.of)(q)}function kn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Vn="rc-util-key";function Un({mark:q}={}){return q?q.startsWith("data-")?q:`data-${q}`:Vn}function dn(q){return q.attachTo?q.attachTo:document.querySelector("head")||document.body}function qt(q,Xe={}){if(!kn())return null;const dt=document.createElement("style");Xe.cspNonce&&(dt.nonce=Xe.cspNonce),dt.innerHTML=q;const at=dn(Xe),{firstChild:St}=at;return Xe.prepend&&at.prepend?at.prepend(dt):Xe.prepend&&St?at.insertBefore(dt,St):at.appendChild(dt),dt}const On=new Map;function ue(q,Xe,dt={}){const at=dn(dt);if(!On.has(at)){const Ee=qt("",dt),{parentNode:Je}=Ee;On.set(at,Je),Je.removeChild(Ee)}const St=function Ut(q,Xe={}){const dt=dn(Xe);return Array.from(On.get(dt)?.children||[]).find(at=>"STYLE"===at.tagName&&at.getAttribute(Un(Xe))===q)}(Xe,dt);if(St)return dt.cspNonce&&St.nonce!==dt.cspNonce&&(St.nonce=dt.cspNonce),St.innerHTML!==q&&(St.innerHTML=q),St;const Qe=qt(q,dt);return Qe?.setAttribute(Un(dt),Xe),Qe}function te(q,Xe,dt){return{[`${q}-status-success`]:"success"===Xe,[`${q}-status-warning`]:"warning"===Xe,[`${q}-status-error`]:"error"===Xe,[`${q}-status-validating`]:"validating"===Xe,[`${q}-has-feedback`]:dt}}},5930:(Rt,De,c)=>{c.d(De,{o7:()=>B,p:()=>L});var t=c(6860),r=c(3953);class g{get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}constructor(w,I,F,X,V){this.triggerElement=w,this.ngZone=I,this.insertExtraNode=F,this.platformId=X,this.cspNonce=V,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=x=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===x.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.OD(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 w=this.triggerElement,I=this.getWaveColor(w);w.setAttribute(this.waveAttributeName,"true"),!(Date.now(){w.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(w){return!!w&&"#ffffff"!==w&&"rgb(255, 255, 255)"!==w&&this.isNotGrey(w)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(w)&&"transparent"!==w}isNotGrey(w){const I=w.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(I&&I[1]&&I[2]&&I[3]&&I[1]===I[2]&&I[2]===I[3])}getWaveColor(w){const I=getComputedStyle(w);return I.getPropertyValue("border-top-color")||I.getPropertyValue("border-color")||I.getPropertyValue("background-color")}runTimeoutOutsideZone(w,I){this.ngZone.runOutsideAngular(()=>setTimeout(w,I))}}const e={disabled:!1},M=new r.nKC("nz-wave-global-options");function G(A){return(0,r.EmA)([{provide:M,useValue:A}])}let L=(()=>{class A{get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}constructor(I,F,X,V,x,ne){this.ngZone=I,this.elementRef=F,this.config=X,this.animationType=V,this.platformId=x,this.cspNonce=ne,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}isConfigDisabled(){let I=!1;return this.config&&"boolean"==typeof this.config.disabled&&(I=this.config.disabled),"NoopAnimations"===this.animationType&&(I=!0),I}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new g(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId,this.cspNonce))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}static#e=this.\u0275fac=function(F){return new(F||A)(r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(M,8),r.rXU(r.bc$,8),r.rXU(r.Agw),r.rXU(r.BIS,8))};static#t=this.\u0275dir=r.FsC({type:A,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"],standalone:!0})}return A})(),B=(()=>{class A{static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275mod=r.$C({type:A});static#n=this.\u0275inj=r.G2t({providers:[G(e)]})}return A})()},2e3:(Rt,De,c)=>{c.d(De,{WF:()=>zn,gr:()=>jt,xA:()=>Hn});var t=c(3953),r=c(1413),g=c(7786),e=c(4707),M=c(177),G=c(6977),L=c(9172),B=c(5558),A=c(3798),w=c(8141),I=c(6042),F=c(3451),X=c(7806),V=c(1025),x=c(8203);const ne=["*"];function J(bt,At){1&bt&&t.SdG(0)}function be(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(3);t.R7$(),t.JRh(Et.nzTitle)}}function Oe(bt,At){if(1&bt&&(t.j41(0,"div",2),t.DNE(1,be,2,1,"ng-container",4),t.k0s()),2&bt){const Et=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.nzTitle)}}function he(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(3);t.R7$(),t.JRh(Et.nzExtra)}}function we(bt,At){if(1&bt&&(t.j41(0,"div",3),t.DNE(1,he,2,1,"ng-container",4),t.k0s()),2&bt){const Et=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.nzExtra)}}function me(bt,At){if(1&bt&&(t.j41(0,"div",0),t.DNE(1,Oe,2,1,"div",2)(2,we,2,1,"div",3),t.k0s()),2&bt){const Et=t.XpG();t.R7$(),t.vxM(Et.nzTitle?1:-1),t.R7$(),t.vxM(Et.nzExtra?2:-1)}}function de(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function H(bt,At){}function z(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,de,2,1,"ng-container",4),t.k0s(),t.j41(4,"span",9),t.DNE(5,H,0,0,"ng-template",10),t.k0s()()()),2&bt){const Et=t.XpG().$implicit,Ot=t.XpG(3);t.Y8G("colSpan",Et.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!Ot.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title),t.R7$(2),t.Y8G("ngTemplateOutlet",Et.content)}}function Z(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function pe(bt,At){}function E(bt,At){if(1&bt&&(t.j41(0,"td",8),t.DNE(1,Z,2,1,"ng-container",4),t.k0s(),t.j41(2,"td",11),t.DNE(3,pe,0,0,"ng-template",10),t.k0s()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title),t.R7$(),t.Y8G("colSpan",2*Et.span-1),t.R7$(),t.Y8G("ngTemplateOutlet",Et.content)}}function S(bt,At){if(1&bt&&t.DNE(0,z,6,5,"td",6)(1,E,4,3),2&bt){const Et=t.XpG(3);t.vxM(Et.nzBordered?1:0)}}function R(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,S,2,1,null,null,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et)}}function Y(bt,At){if(1&bt&&t.Z7z(0,R,3,0,"tr",5,t.fX1),2&bt){const Et=t.XpG();t.Dyx(Et.itemMatrix)}}function se(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function Be(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,se,2,1,"ng-container",4),t.k0s()()()),2&bt){const Et=At.$implicit,Ot=t.XpG(4);t.Y8G("colSpan",Et.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!Ot.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title)}}function Pt(bt,At){}function vt(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",9),t.DNE(3,Pt,0,0,"ng-template",10),t.k0s()()()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(3),t.Y8G("ngTemplateOutlet",Et.content)}}function wt(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,Be,4,4,"td",6,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,vt,4,2,"td",6,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et),t.R7$(3),t.Dyx(Et)}}function Le(bt,At){if(1&bt&&t.Z7z(0,wt,6,0,null,null,t.fX1),2&bt){const Et=t.XpG(2);t.Dyx(Et.itemMatrix)}}function zt(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function xt(bt,At){if(1&bt&&(t.j41(0,"td",12),t.DNE(1,zt,2,1,"ng-container",4),t.k0s()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title)}}function st(bt,At){}function Ct(bt,At){if(1&bt&&(t.j41(0,"td",11),t.DNE(1,st,0,0,"ng-template",10),t.k0s()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(),t.Y8G("ngTemplateOutlet",Et.content)}}function It(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,xt,2,2,"td",12,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,Ct,2,2,"td",11,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et),t.R7$(3),t.Dyx(Et)}}function Tt(bt,At){if(1&bt&&t.Z7z(0,It,6,0,null,null,t.fX1),2&bt){const Et=t.XpG(2);t.Dyx(Et.itemMatrix)}}function en(bt,At){if(1&bt&&t.DNE(0,Le,2,0)(1,Tt,2,0),2&bt){const Et=t.XpG();t.vxM(Et.nzBordered?1:0)}}let jt=(()=>{class bt{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new r.B}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}static#e=this.\u0275fac=function(Ot){return new(Ot||bt)};static#t=this.\u0275cmp=t.VBU({type:bt,selectors:[["nz-descriptions-item"]],viewQuery:function(Ot,Yt){if(1&Ot&&t.GBs(t.C4Q,7),2&Ot){let Ue;t.mGM(Ue=t.lsd())&&(Yt.content=Ue.first)}},inputs:{nzSpan:[2,"nzSpan","nzSpan",t.Udg],nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:ne,decls:1,vars:0,template:function(Ot,Yt){1&Ot&&(t.NAR(),t.DNE(0,J,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return bt})();const fn={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let Hn=(()=>{class bt{constructor(Et,Ot,Yt,Ue){this.nzConfigService=Et,this.cdr=Ot,this.breakpointService=Yt,this.directionality=Ue,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=fn,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=V.pt.md,this.destroy$=new r.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Et=>{this.dir=Et})}ngOnChanges(Et){Et.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const Et=this.items.changes.pipe((0,L.Z)(this.items),(0,G.Q)(this.destroy$));(0,g.h)(Et,Et.pipe((0,B.n)(()=>(0,g.h)(...this.items.map(Ot=>Ot.inputChange$)).pipe((0,A.Z)(16)))),this.breakpointService.subscribe(V.fe).pipe((0,w.M)(Ot=>this.breakpoint=Ot))).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let Et=[],Ot=0;const Yt=this.realColumn=this.getColumn(),Ue=this.items.toArray(),Ae=Ue.length,ie=[],_e=()=>{ie.push(Et),Et=[],Ot=0};for(let oe=0;oe=Yt?(Ot>Yt&&(0,F.R8)(`"nzColumn" is ${Yt} but we have row length ${Ot}`),Et.push({title:et,content:ut,span:Yt-(Ot-Kt)}),_e()):oe===Ae-1?(Et.push({title:et,content:ut,span:Yt-(Ot-Kt)}),_e()):Et.push({title:et,content:ut,span:Kt})}this.itemMatrix=ie}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}static#e=this.\u0275fac=function(Ot){return new(Ot||bt)(t.rXU(I.yx),t.rXU(t.gRc),t.rXU(V.jp),t.rXU(x.dS,8))};static#t=this.\u0275cmp=t.VBU({type:bt,selectors:[["nz-descriptions"]],contentQueries:function(Ot,Yt,Ue){if(1&Ot&&t.wni(Ue,jt,4),2&Ot){let Ae;t.mGM(Ae=t.lsd())&&(Yt.items=Ae)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(Ot,Yt){2&Ot&&t.AVh("ant-descriptions-bordered",Yt.nzBordered)("ant-descriptions-middle","middle"===Yt.nzSize)("ant-descriptions-small","small"===Yt.nzSize)("ant-descriptions-rtl","rtl"===Yt.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:[2,"nzColon","nzColon",t.L39]},exportAs:["nzDescriptions"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:6,vars:3,consts:[[1,"ant-descriptions-header"],[1,"ant-descriptions-view"],[1,"ant-descriptions-title"],[1,"ant-descriptions-extra"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-row"],[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(Ot,Yt){1&Ot&&(t.DNE(0,me,3,2,"div",0),t.j41(1,"div",1)(2,"table")(3,"tbody"),t.DNE(4,Y,2,0)(5,en,2,1),t.k0s()()()),2&Ot&&(t.vxM(Yt.nzTitle||Yt.nzExtra?0:-1),t.R7$(4),t.vxM("horizontal"===Yt.nzLayout?4:-1),t.R7$(),t.vxM("vertical"===Yt.nzLayout?5:-1))},dependencies:[X.C,X.m,M.T3],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzBordered",void 0),(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzColumn",void 0),(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzSize",void 0),(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzColon",void 0),bt})(),zn=(()=>{class bt{static#e=this.\u0275fac=function(Ot){return new(Ot||bt)};static#t=this.\u0275mod=t.$C({type:bt});static#n=this.\u0275inj=t.G2t({imports:[Hn]})}return bt})()},9448:(Rt,De,c)=>{c.d(De,{g:()=>G,j:()=>M});var t=c(3953),r=c(7806);function g(L,B){if(1&L&&(t.qex(0),t.EFF(1),t.bVm()),2&L){const A=t.XpG(2);t.R7$(),t.JRh(A.nzText)}}function e(L,B){if(1&L&&(t.j41(0,"span",0),t.DNE(1,g,2,1,"ng-container",1),t.k0s()),2&L){const A=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",A.nzText)}}let M=(()=>{class L{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275cmp=t.VBU({type:L,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(w,I){2&w&&t.AVh("ant-divider-horizontal","horizontal"===I.nzType)("ant-divider-vertical","vertical"===I.nzType)("ant-divider-with-text",I.nzText)("ant-divider-plain",I.nzPlain)("ant-divider-with-text-left",I.nzText&&"left"===I.nzOrientation)("ant-divider-with-text-right",I.nzText&&"right"===I.nzOrientation)("ant-divider-with-text-center",I.nzText&&"center"===I.nzOrientation)("ant-divider-dashed",I.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:[2,"nzDashed","nzDashed",t.L39],nzPlain:[2,"nzPlain","nzPlain",t.L39]},exportAs:["nzDivider"],standalone:!0,features:[t.GFd,t.aNF],decls:1,vars:1,consts:[[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(w,I){1&w&&t.DNE(0,e,2,1,"span",0),2&w&&t.vxM(I.nzText?0:-1)},dependencies:[r.C,r.m],encapsulation:2,changeDetection:0})}return L})(),G=(()=>{class L{static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275mod=t.$C({type:L});static#n=this.\u0275inj=t.G2t({imports:[M]})}return L})()},2602:(Rt,De,c)=>{c.d(De,{Cu:()=>Le,h4:()=>vt,j3:()=>se,wQ:()=>wt});var t=c(4707),r=c(7336),g=c(6939),e=c(3953),M=c(1413),G=c(4412),L=c(7786),B=c(3726),A=c(983),w=c(4572),I=c(3703),F=c(6354),X=c(5558),V=c(5964),x=c(3798),ne=c(3294),J=c(6977),be=c(6042),Oe=c(5463),he=c(7987),we=c(6860),me=c(1868),de=c(513),H=c(177),z=c(713),Z=c(6841),pe=c(8203);const E=["*"];function S(st,Ct){if(1&st){const It=e.RV6();e.j41(0,"div",0),e.bIt("@slideMotion.done",function(en){e.eBV(It);const jt=e.XpG();return e.Njj(jt.onAnimationEvent(en))})("mouseenter",function(){e.eBV(It);const en=e.XpG();return e.Njj(en.setMouseState(!0))})("mouseleave",function(){e.eBV(It);const en=e.XpG();return e.Njj(en.setMouseState(!1))}),e.SdG(1),e.k0s()}if(2&st){const It=e.XpG();e.AVh("ant-dropdown-rtl","rtl"===It.dir),e.Y8G("ngClass",It.nzOverlayClassName)("ngStyle",It.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",!(null==It.noAnimation||!It.noAnimation.nzNoAnimation))("nzNoAnimation",null==It.noAnimation?null:It.noAnimation.nzNoAnimation)}}const Y=[Oe.pn.bottomLeft,Oe.pn.bottomRight,Oe.pn.topRight,Oe.pn.topLeft];let se=(()=>{class st{setDropdownMenuValue(It,Tt){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(It,Tt)}constructor(It,Tt,en,jt,Vt,fn){this.nzConfigService=It,this.elementRef=Tt,this.overlay=en,this.renderer=jt,this.viewContainerRef=Vt,this.platform=fn,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new M.B,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new G.t(!1),this.nzTrigger$=new G.t("hover"),this.overlayClose$=new M.B,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 e.bkB}ngAfterViewInit(){if(this.nzDropdownMenu){const It=this.elementRef.nativeElement,Tt=(0,L.h)((0,B.R)(It,"mouseenter").pipe((0,I.u)(!0)),(0,B.R)(It,"mouseleave").pipe((0,I.u)(!1))),jt=(0,L.h)(this.nzDropdownMenu.mouseState$,Tt),Vt=(0,B.R)(It,"click").pipe((0,F.T)(()=>!this.nzVisible)),fn=this.nzTrigger$.pipe((0,X.n)(At=>"hover"===At?jt:"click"===At?Vt:A.w)),Hn=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,V.p)(()=>this.nzClickHide),(0,I.u)(!1)),zn=(0,L.h)(fn,Hn,this.overlayClose$).pipe((0,V.p)(()=>!this.nzDisabled)),bt=(0,L.h)(this.inputVisible$,zn);(0,w.z)([bt,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,F.T)(([At,Et])=>At||Et),(0,x.Z)(150),(0,ne.F)(),(0,V.p)(()=>this.platform.isBrowser),(0,J.Q)(this.destroy$)).subscribe(At=>{const Ot=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:It).getBoundingClientRect().width;this.nzVisible!==At&&this.nzVisibleChange.emit(At),this.nzVisible=At,At?(this.overlayRef?this.overlayRef.getConfig().minWidth=Ot:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:Ot,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,L.h)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,V.p)(Yt=>!this.elementRef.nativeElement.contains(Yt.target))),this.overlayRef.keydownEvents().pipe((0,V.p)(Yt=>Yt.keyCode===r._f&&!(0,r.rp)(Yt)))).pipe((0,J.Q)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([Oe.pn[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new g.VA(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,J.Q)(this.destroy$)).subscribe(At=>{"void"===At.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(It){const{nzVisible:Tt,nzDisabled:en,nzOverlayClassName:jt,nzOverlayStyle:Vt,nzTrigger:fn}=It;if(fn&&this.nzTrigger$.next(this.nzTrigger),Tt&&this.inputVisible$.next(this.nzVisible),en){const Hn=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Hn,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Hn,"disabled")}jt&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Vt&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(be.yx),e.rXU(e.aKT),e.rXU(he.hJ),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(we.OD))};static#t=this.\u0275dir=e.FsC({type:st,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",e.L39],nzClickHide:[2,"nzClickHide","nzClickHide",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],standalone:!0,features:[e.GFd,e.OA$]})}return(0,t.Cg)([(0,be.H4)()],st.prototype,"nzBackdrop",void 0),st})(),Be=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=e.$C({type:st});static#n=this.\u0275inj=e.G2t({})}return st})(),vt=(()=>{class st{constructor(It,Tt,en){this.renderer=It,this.nzButtonGroupComponent=Tt,this.elementRef=en}ngAfterViewInit(){const It=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&It&&this.renderer.addClass(It,"ant-dropdown-button")}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(e.sFG),e.rXU(de.dn,9),e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:st,selectors:[["","nz-button","","nz-dropdown",""]],standalone:!0})}return st})(),wt=(()=>{class st{onAnimationEvent(It){this.animationStateChange$.emit(It)}setMouseState(It){this.mouseState$.next(It)}setValue(It,Tt){this[It]=Tt,this.cdr.markForCheck()}constructor(It,Tt,en,jt,Vt,fn,Hn){this.cdr=It,this.elementRef=Tt,this.renderer=en,this.viewContainerRef=jt,this.nzMenuService=Vt,this.directionality=fn,this.noAnimation=Hn,this.mouseState$=new G.t(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new e.bkB,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new M.B}ngOnInit(){this.directionality.change?.pipe((0,J.Q)(this.destroy$)).subscribe(It=>{this.dir=It,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()}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(me.$1),e.rXU(pe.dS,8),e.rXU(Z.z,9))};static#t=this.\u0275cmp=e.VBU({type:st,selectors:[["nz-dropdown-menu"]],viewQuery:function(Tt,en){if(1&Tt&&e.GBs(e.C4Q,7),2&Tt){let jt;e.mGM(jt=e.lsd())&&(en.templateRef=jt.first)}},exportAs:["nzDropdownMenu"],standalone:!0,features:[e.Jv_([me.$1,{provide:me.ek,useValue:!0}]),e.aNF],ngContentSelectors:E,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","ngClass","ngStyle","nzNoAnimation"]],template:function(Tt,en){1&Tt&&(e.NAR(),e.DNE(0,S,2,7,"ng-template"))},dependencies:[H.YU,H.B3,Z.z],encapsulation:2,data:{animation:[z.U1]},changeDetection:0})}return st})(),Le=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=e.$C({type:st});static#n=this.\u0275inj=e.G2t({imports:[Be,me.GP]})}return st})();new he.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new he.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new he.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new he.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},1672:(Rt,De,c)=>{c.d(De,{E8:()=>Be,RW:()=>Y,_v:()=>Pt});var t=c(6939),r=c(3953),g=c(1413),e=c(6977),M=c(9172),G=c(7806),L=c(1377),B=c(6042);function A(vt,wt){if(1&vt&&(r.qex(0),r.nrm(1,"img",4),r.bVm()),2&vt){const Le=r.XpG(2);r.R7$(),r.Y8G("src",Le.nzNotFoundImage,r.B4B)("alt",Le.isContentString?Le.nzNotFoundContent:"empty")}}function w(vt,wt){if(1&vt&&r.DNE(0,A,2,2,"ng-container",3),2&vt){const Le=r.XpG();r.Y8G("nzStringTemplateOutlet",Le.nzNotFoundImage)}}function I(vt,wt){1&vt&&r.nrm(0,"nz-empty-simple")}function F(vt,wt){1&vt&&r.nrm(0,"nz-empty-default")}function X(vt,wt){if(1&vt&&r.DNE(0,I,1,0,"nz-empty-simple")(1,F,1,0,"nz-empty-default"),2&vt){const Le=r.XpG();r.vxM("simple"===Le.nzNotFoundImage?0:1)}}function V(vt,wt){if(1&vt&&(r.qex(0),r.EFF(1),r.bVm()),2&vt){const Le=r.XpG(2);r.R7$(),r.SpI(" ",Le.isContentString?Le.nzNotFoundContent:Le.locale.description," ")}}function x(vt,wt){if(1&vt&&(r.j41(0,"p",1),r.DNE(1,V,2,1,"ng-container",3),r.k0s()),2&vt){const Le=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",Le.nzNotFoundContent)}}function ne(vt,wt){if(1&vt&&(r.qex(0),r.EFF(1),r.bVm()),2&vt){const Le=r.XpG(2);r.R7$(),r.SpI(" ",Le.nzNotFoundFooter," ")}}function J(vt,wt){if(1&vt&&(r.j41(0,"div",2),r.DNE(1,ne,2,1,"ng-container",3),r.k0s()),2&vt){const Le=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",Le.nzNotFoundFooter)}}function be(vt,wt){if(1&vt&&r.EFF(0),2&vt){const Le=r.XpG(2);r.SpI(" ",Le.content," ")}}function Oe(vt,wt){}function he(vt,wt){if(1&vt&&r.DNE(0,Oe,0,0,"ng-template",0),2&vt){const Le=r.XpG(2);r.Y8G("cdkPortalOutlet",Le.contentPortal)}}function we(vt,wt){if(1&vt&&r.DNE(0,be,1,1)(1,he,1,1,null,0),2&vt){const Le=r.XpG();r.vxM("string"===Le.contentType?0:1)}}function me(vt,wt){1&vt&&r.nrm(0,"nz-empty",1)}function de(vt,wt){1&vt&&r.nrm(0,"nz-empty",2)}function H(vt,wt){1&vt&&r.nrm(0,"nz-empty")}function z(vt,wt){if(1&vt&&r.DNE(0,me,1,0,"nz-empty",1)(1,de,1,0,"nz-empty",2)(2,H,1,0,"nz-empty"),2&vt){let Le;const zt=r.XpG(2);r.vxM("normal"===(Le=zt.size)?0:"small"===Le?1:2)}}function Z(vt,wt){if(1&vt&&r.DNE(0,z,3,1),2&vt){const Le=r.XpG();r.vxM(null!==Le.specificContent?0:-1)}}const pe=new r.nKC("nz-empty-component-name");let E=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],standalone:!0,features:[r.aNF],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(zt,xt){1&zt&&(r.qSk(),r.j41(0,"svg",0)(1,"g",1)(2,"g",2),r.nrm(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),r.k0s(),r.nrm(8,"path",8),r.j41(9,"g",9),r.nrm(10,"ellipse",10)(11,"path",11),r.k0s()()())},encapsulation:2,changeDetection:0})}return vt})(),S=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],standalone:!0,features:[r.aNF],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(zt,xt){1&zt&&(r.qSk(),r.j41(0,"svg",0)(1,"g",1),r.nrm(2,"ellipse",2),r.j41(3,"g",3),r.nrm(4,"path",4)(5,"path",5),r.k0s()()())},encapsulation:2,changeDetection:0})}return vt})();const R=["default","simple"];let Y=(()=>{class vt{constructor(Le,zt){this.i18n=Le,this.cdr=zt,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new g.B}ngOnChanges(Le){const{nzNotFoundContent:zt,nzNotFoundImage:xt}=Le;if(zt&&(this.isContentString="string"==typeof zt.currentValue),xt){const st=xt.currentValue||"default";this.isImageBuildIn=R.findIndex(Ct=>Ct===st)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(zt){return new(zt||vt)(r.rXU(L.Og),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],standalone:!0,features:[r.OA$,r.aNF],decls:5,vars:3,consts:[[1,"ant-empty-image"],[1,"ant-empty-description"],[1,"ant-empty-footer"],[4,"nzStringTemplateOutlet"],[3,"src","alt"]],template:function(zt,xt){1&zt&&(r.j41(0,"div",0),r.DNE(1,w,1,1,"ng-container")(2,X,2,1),r.k0s(),r.DNE(3,x,2,1,"p",1)(4,J,2,1,"div",2)),2&zt&&(r.R7$(),r.vxM(xt.isImageBuildIn?2:1),r.R7$(2),r.vxM(null!==xt.nzNotFoundContent?3:-1),r.R7$(),r.vxM(xt.nzNotFoundFooter?4:-1))},dependencies:[G.C,G.m,E,S],encapsulation:2,changeDetection:0})}return vt})(),Be=(()=>{class vt{constructor(Le,zt,xt,st){this.configService=Le,this.viewContainerRef=zt,this.cdr=xt,this.injector=st,this.contentType="string",this.size="",this.destroy$=new g.B}ngOnChanges(Le){Le.nzComponentName&&(this.size=function se(vt){switch(vt){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(Le.nzComponentName.currentValue)),Le.specificContent&&!Le.specificContent.isFirstChange()&&(this.content=Le.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const Le=this.content;if("string"==typeof Le)this.contentType="string";else if(Le instanceof r.C4Q){const zt={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.VA(Le,this.viewContainerRef,zt)}else if(Le instanceof r.ZUJ){const zt=r.zZn.create({parent:this.injector,providers:[{provide:pe,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.A8(Le,this.viewContainerRef,zt)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,M.Z)(!0),(0,e.Q)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}static#e=this.\u0275fac=function(zt){return new(zt||vt)(r.rXU(B.yx),r.rXU(r.c1b),r.rXU(r.gRc),r.rXU(r.zZn))};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],standalone:!0,features:[r.OA$,r.aNF],decls:2,vars:1,consts:[[3,"cdkPortalOutlet"],["nzNotFoundImage","simple",1,"ant-empty-normal"],["nzNotFoundImage","simple",1,"ant-empty-small"]],template:function(zt,xt){1&zt&&r.DNE(0,we,2,1)(1,Z,1,1),2&zt&&r.vxM(xt.content?0:1)},dependencies:[Y,t.jc,t.I3],encapsulation:2,changeDetection:0})}return vt})(),Pt=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275mod=r.$C({type:vt});static#n=this.\u0275inj=r.G2t({imports:[Y,Be]})}return vt})()},8927:(Rt,De,c)=>{c.d(De,{CA:()=>Pt,Ls:()=>Y,Mo:()=>Le,PQ:()=>st,zS:()=>vt});var t=c(3953),r=c(7529),g=c(177),e=c(9417),M=c(1413),G=c(8359),L=c(5964),B=c(6354),A=c(6977),w=c(9172),I=c(8141),F=c(713),X=c(7891),V=c(7806),x=c(317),ne=c(1377),J=c(4707),be=c(6042),Oe=c(8203),he=c(5103),we=c(5154);const me=["*"],de=Ct=>[Ct],H=Ct=>({$implicit:Ct});function z(Ct,It){if(1&Ct&&(t.qex(0),t.EFF(1),t.bVm()),2&Ct){const Tt=t.XpG(2);t.R7$(),t.JRh(Tt.innerTip)}}function Z(Ct,It){if(1&Ct&&(t.j41(0,"div",2)(1,"div",4),t.DNE(2,z,2,1,"ng-container",5),t.k0s()()),2&Ct){const Tt=t.XpG();t.Y8G("@helpMotion",void 0),t.R7$(),t.Y8G("ngClass",t.eq3(4,de,"ant-form-item-explain-"+Tt.status)),t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.innerTip)("nzStringTemplateOutletContext",t.eq3(6,H,Tt.validateControl))}}function pe(Ct,It){if(1&Ct&&(t.qex(0),t.EFF(1),t.bVm()),2&Ct){const Tt=t.XpG(2);t.R7$(),t.JRh(Tt.nzExtra)}}function E(Ct,It){if(1&Ct&&(t.j41(0,"div",3),t.DNE(1,pe,2,1,"ng-container",6),t.k0s()),2&Ct){const Tt=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.nzExtra)}}function S(Ct,It){if(1&Ct&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&Ct){const Tt=It.$implicit,en=t.XpG(2);t.R7$(),t.Y8G("nzType",Tt)("nzTheme",en.tooltipIcon.theme)}}function R(Ct,It){if(1&Ct&&(t.j41(0,"span",0),t.DNE(1,S,2,2,"ng-container",1),t.k0s()),2&Ct){const Tt=t.XpG();t.Y8G("nzTooltipTitle",Tt.nzTooltipTitle),t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.tooltipIcon.type)}}let Y=(()=>{class Ct{setWithHelpViaTips(Tt){this.withHelpClass=Tt,this.cdr.markForCheck()}setStatus(Tt){this.status=Tt,this.cdr.markForCheck()}setHasFeedback(Tt){this.hasFeedback=Tt,this.cdr.markForCheck()}constructor(Tt){this.cdr=Tt,this.status="",this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new M.B}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(en,jt){2&en&&t.AVh("ant-form-item-has-success","success"===jt.status)("ant-form-item-has-warning","warning"===jt.status)("ant-form-item-has-error","error"===jt.status)("ant-form-item-is-validating","validating"===jt.status)("ant-form-item-has-feedback",jt.hasFeedback&&jt.status)("ant-form-item-with-help",jt.withHelpClass)},exportAs:["nzFormItem"],standalone:!0,features:[t.aNF],ngContentSelectors:me,decls:1,vars:0,template:function(en,jt){1&en&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return Ct})();const Be={type:"question-circle",theme:"outline"};let Pt=(()=>{class Ct{getInputObservable(Tt){return this.inputChanges$.pipe((0,L.p)(en=>Tt in en),(0,B.T)(en=>en[Tt]))}constructor(Tt,en){this.nzConfigService=Tt,this.directionality=en,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Be,this.nzLabelAlign="right",this.nzLabelWrap=!1,this.dir="ltr",this.destroy$=new M.B,this.inputChanges$=new M.B,this.dir=this.directionality.value,this.directionality.change?.pipe((0,A.Q)(this.destroy$)).subscribe(jt=>{this.dir=jt})}ngOnChanges(Tt){this.inputChanges$.next(Tt)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(be.yx),t.rXU(Oe.dS,8))};static#t=this.\u0275dir=t.FsC({type:Ct,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(en,jt){2&en&&t.AVh("ant-form-horizontal","horizontal"===jt.nzLayout)("ant-form-vertical","vertical"===jt.nzLayout)("ant-form-inline","inline"===jt.nzLayout)("ant-form-rtl","rtl"===jt.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:[2,"nzNoColon","nzNoColon",t.L39],nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzForm"],standalone:!0,features:[t.GFd,t.OA$]})}return(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzNoColon",void 0),(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzAutoTips",void 0),(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzTooltipIcon",void 0),(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzLabelWrap",void 0),Ct})(),vt=(()=>{class Ct{get disableAutoTips(){return void 0!==this.nzDisableAutoTips?(0,x.G4)(this.nzDisableAutoTips):this.nzFormDirective?.nzDisableAutoTips}set nzHasFeedback(Tt){this._hasFeedback=Tt,this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(Tt){Tt instanceof e.EL||Tt instanceof e.vS?(this.validateControl=Tt,this.validateString=null,this.watchControl()):Tt instanceof e.JD?(this.validateControl=Tt.control,this.validateString=null,this.watchControl()):(this.validateString=Tt,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,w.Z)(null),(0,A.Q)(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(Tt){let en;return en="warning"===Tt||this.validateControlStatus("INVALID","warning")?"warning":"error"===Tt||this.validateControlStatus("INVALID")?"error":"validating"===Tt||"pending"===Tt||this.validateControlStatus("PENDING")?"validating":"success"===Tt||this.validateControlStatus("VALID")?"success":"",en}validateControlStatus(Tt,en){if(this.validateControl){const{dirty:jt,touched:Vt,status:fn}=this.validateControl;return(!!jt||!!Vt)&&(en?this.validateControl.hasError(en):fn===Tt)}return!1}getInnerTip(Tt){switch(Tt){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 Tt=this.validateControl.errors||{};let en="";for(const jt in Tt)if(Tt.hasOwnProperty(jt)&&(en=Tt[jt]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[jt]??this.nzAutoTips.default?.[jt]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[jt]??this.nzFormDirective?.nzAutoTips.default?.[jt]),en)break;this.autoErrorTip=en}}subscribeAutoTips(Tt){Tt?.pipe((0,A.Q)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}constructor(Tt,en,jt,Vt,fn){this.nzFormItemComponent=Tt,this.cdr=en,this.nzFormDirective=Vt,this.nzFormStatusService=fn,this._hasFeedback=!1,this.validateChanges=G.yU.EMPTY,this.validateString=null,this.destroyed$=new M.B,this.status="",this.validateControl=null,this.innerTip=null,this.nzAutoTips={},this.subscribeAutoTips(jt.localeChange.pipe((0,I.M)(Hn=>this.localeId=Hn.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe((0,L.p)(()=>void 0===this.nzDisableAutoTips)))}ngOnChanges(Tt){const{nzDisableAutoTips:en,nzAutoTips:jt,nzSuccessTip:Vt,nzWarningTip:fn,nzErrorTip:Hn,nzValidatingTip:zn}=Tt;en||jt?(this.updateAutoErrorTip(),this.setStatus()):(Vt||fn||Hn||zn)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof e.l_?this.defaultValidateControl.control:this.defaultValidateControl)}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(Y,9),t.rXU(t.gRc),t.rXU(ne.Og),t.rXU(Pt,8),t.rXU(X.is))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-control"]],contentQueries:function(en,jt,Vt){if(1&en&&t.wni(Vt,e.vO,5),2&en){let fn;t.mGM(fn=t.lsd())&&(jt.defaultValidateControl=fn.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzHasFeedback:[2,"nzHasFeedback","nzHasFeedback",t.L39],nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],standalone:!0,features:[t.Jv_([X.is]),t.GFd,t.OA$,t.aNF],ngContentSelectors:me,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],[1,"ant-form-item-extra"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[4,"nzStringTemplateOutlet"]],template:function(en,jt){1&en&&(t.NAR(),t.j41(0,"div",0)(1,"div",1),t.SdG(2),t.k0s()(),t.DNE(3,Z,3,8,"div",2)(4,E,2,1,"div",3)),2&en&&(t.R7$(3),t.vxM(jt.innerTip?3:-1),t.R7$(),t.vxM(jt.nzExtra?4:-1))},dependencies:[g.YU,V.C,V.m],encapsulation:2,data:{animation:[F.W4]},changeDetection:0})}return Ct})();function wt(Ct){return{...Be,..."string"==typeof Ct?{type:Ct}:Ct}}let Le=(()=>{class Ct{set nzNoColon(Tt){this.noColon=Tt}get nzNoColon(){return"default"!==this.noColon?this.noColon:this.nzFormDirective?.nzNoColon}set nzTooltipIcon(Tt){this._tooltipIcon=wt(Tt)}get tooltipIcon(){return"default"!==this._tooltipIcon?this._tooltipIcon:wt(this.nzFormDirective?.nzTooltipIcon||Be)}set nzLabelAlign(Tt){this.labelAlign=Tt}get nzLabelAlign(){return"default"!==this.labelAlign?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}set nzLabelWrap(Tt){this.labelWrap=Tt}get nzLabelWrap(){return"default"!==this.labelWrap?this.labelWrap:this.nzFormDirective?.nzLabelWrap}constructor(Tt,en){this.cdr=Tt,this.nzFormDirective=en,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.labelAlign="default",this.labelWrap="default",this.destroy$=new M.B,this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,L.p)(()=>"default"===this.noColon),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,L.p)(()=>"default"===this._tooltipIcon),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe((0,L.p)(()=>"default"===this.labelAlign),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe((0,L.p)(()=>"default"===this.labelWrap),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(t.gRc),t.rXU(Pt,12))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(en,jt){2&en&&t.AVh("ant-form-item-label-left","left"===jt.nzLabelAlign)("ant-form-item-label-wrap",jt.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:[2,"nzRequired","nzRequired",t.L39],nzNoColon:[2,"nzNoColon","nzNoColon",t.L39],nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzFormLabel"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:me,decls:3,vars:6,consts:[["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(en,jt){1&en&&(t.NAR(),t.j41(0,"label"),t.SdG(1),t.DNE(2,R,2,2,"span",0),t.k0s()),2&en&&(t.AVh("ant-form-item-no-colon",jt.nzNoColon)("ant-form-item-required",jt.nzRequired),t.BMQ("for",jt.nzFor),t.R7$(2),t.vxM(jt.nzTooltipTitle?2:-1))},dependencies:[V.C,V.m,we.LH,he.Y3,he.Dn],encapsulation:2,changeDetection:0})}return Ct})(),st=(()=>{class Ct{static#e=this.\u0275fac=function(en){return new(en||Ct)};static#t=this.\u0275mod=t.$C({type:Ct});static#n=this.\u0275inj=t.G2t({imports:[Le,vt,r.f3]})}return Ct})()},7529:(Rt,De,c)=>{c.d(De,{Uq:()=>I,e:()=>w,f3:()=>F});var t=c(3953),r=c(2771),g=c(1413),e=c(6977),M=c(1025),G=c(9327),L=c(6860),B=c(8203),A=c(317);let w=(()=>{class X{getGutter(){const x=[null,null],ne=this.nzGutter||0;return(Array.isArray(ne)?ne:[ne,null]).forEach((be,Oe)=>{"object"==typeof be&&null!==be?(x[Oe]=null,Object.keys(M.fe).map(he=>{const we=he;this.mediaMatcher.matchMedia(M.fe[we]).matches&&be[we]&&(x[Oe]=be[we])})):x[Oe]=Number(be)||null}),x}setGutterStyle(){const[x,ne]=this.getGutter();this.actualGutter$.next([x,ne]);const J=(be,Oe)=>{null!==Oe&&this.renderer.setStyle(this.elementRef.nativeElement,be,`-${Oe/2}px`)};J("margin-left",x),J("margin-right",x),J("margin-top",ne),J("margin-bottom",ne)}constructor(x,ne,J,be,Oe,he,we){this.elementRef=x,this.renderer=ne,this.mediaMatcher=J,this.ngZone=be,this.platform=Oe,this.breakpointService=he,this.directionality=we,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new r.m(1),this.dir="ltr",this.destroy$=new g.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x}),this.setGutterStyle()}ngOnChanges(x){x.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(M.fe).pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||X)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(G.DY),t.rXU(t.SKi),t.rXU(L.OD),t.rXU(M.jp),t.rXU(B.dS,8))};static#t=this.\u0275dir=t.FsC({type:X,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(ne,J){2&ne&&t.AVh("ant-row-top","top"===J.nzAlign)("ant-row-middle","middle"===J.nzAlign)("ant-row-bottom","bottom"===J.nzAlign)("ant-row-start","start"===J.nzJustify)("ant-row-end","end"===J.nzJustify)("ant-row-center","center"===J.nzJustify)("ant-row-space-around","space-around"===J.nzJustify)("ant-row-space-between","space-between"===J.nzJustify)("ant-row-space-evenly","space-evenly"===J.nzJustify)("ant-row-rtl","rtl"===J.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],standalone:!0,features:[t.OA$]})}return X})(),I=(()=>{class X{setHostClassMap(){const x={"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,A.n9)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,A.n9)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,A.n9)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,A.n9)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,A.n9)(this.nzPush),"ant-col-rtl":"rtl"===this.dir,...this.generateClass()};for(const ne in this.classMap)this.classMap.hasOwnProperty(ne)&&this.renderer.removeClass(this.elementRef.nativeElement,ne);this.classMap={...x};for(const ne in this.classMap)this.classMap.hasOwnProperty(ne)&&this.classMap[ne]&&this.renderer.addClass(this.elementRef.nativeElement,ne)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(x){return"number"==typeof x?`${x} ${x} auto`:"string"==typeof x&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(x)?`0 0 ${x}`:x}generateClass(){const ne={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(J=>{const be=J.replace("nz","").toLowerCase();if((0,A.n9)(this[J]))if("number"==typeof this[J]||"string"==typeof this[J])ne[`ant-col-${be}-${this[J]}`]=!0;else{const Oe=this[J];["span","pull","push","offset","order"].forEach(we=>{ne[`ant-col-${be}${"span"===we?"-":`-${we}-`}${Oe[we]}`]=Oe&&(0,A.n9)(Oe[we])})}}),ne}constructor(x,ne,J,be){this.elementRef=x,this.nzRowDirective=ne,this.renderer=J,this.directionality=be,this.classMap={},this.destroy$=new g.B,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,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(x){this.setHostClassMap();const{nzFlex:ne}=x;ne&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,e.Q)(this.destroy$)).subscribe(([x,ne])=>{const J=(be,Oe)=>{null!==Oe&&this.renderer.setStyle(this.elementRef.nativeElement,be,Oe/2+"px")};J("padding-left",x),J("padding-right",x),J("padding-top",ne),J("padding-bottom",ne)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||X)(t.rXU(t.aKT),t.rXU(w,9),t.rXU(t.sFG),t.rXU(B.dS,8))};static#t=this.\u0275dir=t.FsC({type:X,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(ne,J){2&ne&&t.xc7("flex",J.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"],standalone:!0,features:[t.OA$]})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=t.$C({type:X});static#n=this.\u0275inj=t.G2t({})}return X})()},1377:(Rt,De,c)=>{c.d(De,{Bh:()=>e,Og:()=>A,Vc:()=>w,_N:()=>G,bP:()=>I});var t=c(3953),r=c(4412),g=c(3451),e={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"],rangeQuarterPlaceholder:["Start quarter","End quarter"],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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},M={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",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"],rangeQuarterPlaceholder:["\u5f00\u59cb\u5b63\u5ea6","\u7ed3\u675f\u5b63\u5ea6"],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"},QRCode:{expired:"\u4e8c\u7ef4\u7801\u8fc7\u671f",refresh:"\u70b9\u51fb\u5237\u65b0",scanned:"\u5df2\u626b\u63cf"}};const G=new t.nKC("nz-i18n"),B=new t.nKC("nz-date-locale");let A=(()=>{class Qe{get localeChange(){return this._change.asObservable()}constructor(Je,re){this._change=new r.t(this._locale),this.setLocale(Je||M),this.setDateLocale(re||null)}translate(Je,re){let ze=this._getObjectPath(this._locale,Je);return"string"==typeof ze?(re&&Object.keys(re).forEach(gt=>ze=ze.replace(new RegExp(`%${gt}%`,"g"),re[gt])),ze):Je}setLocale(Je){this._locale&&this._locale.locale===Je.locale||(this._locale=Je,this._change.next(Je))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Je){this.dateLocale=Je}getDateLocale(){return this.dateLocale}getLocaleData(Je,re){const ze=Je?this._getObjectPath(this._locale,Je):this._locale;return!ze&&!re&&(0,g.R8)(`Missing translations for "${Je}" 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`),ze||re||this._getObjectPath(e,Je)||{}}_getObjectPath(Je,re){let ze=Je;const gt=re.split("."),Ke=gt.length;let Pe=0;for(;ze&&Pe{class Qe{constructor(Je){this._locale=Je}transform(Je,re){return this._locale.translate(Je,re)}static#e=this.\u0275fac=function(re){return new(re||Qe)(t.rXU(A,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzI18n",type:Qe,pure:!0,standalone:!0})}return Qe})(),I=(()=>{class Qe{static#e=this.\u0275fac=function(re){return new(re||Qe)};static#t=this.\u0275mod=t.$C({type:Qe});static#n=this.\u0275inj=t.G2t({})}return Qe})();new t.nKC("date-config")},5103:(Rt,De,c)=>{c.d(De,{Dn:()=>Pe,Y3:()=>Re,Rt:()=>ze});var t=c(3953),r=c(1413),g=c(2806),e=c(6977),M=c(4709),G=c(4215),L=2,B=.16,A=.05,w=.05,I=.15,F=5,X=4,V=[{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 x($){var ve=(0,M.wE)($.r,$.g,$.b);return{h:360*ve.h,s:ve.s,v:ve.v}}function ne($){return"#".concat((0,M.Ob)($.r,$.g,$.b,!1))}function be($,ce,N){var ke;return(ke=Math.round($.h)>=60&&Math.round($.h)<=240?N?Math.round($.h)-L*ce:Math.round($.h)+L*ce:N?Math.round($.h)+L*ce:Math.round($.h)-L*ce)<0?ke+=360:ke>=360&&(ke-=360),ke}function Oe($,ce,N){return 0===$.h&&0===$.s?$.s:((ke=N?$.s-B*ce:ce===X?$.s+B:$.s+A*ce)>1&&(ke=1),N&&ce===F&&ke>.1&&(ke=.1),ke<.06&&(ke=.06),Number(ke.toFixed(2)));var ke}function he($,ce,N){var ke;return(ke=N?$.v+w*ce:$.v-I*ce)>1&&(ke=1),Number(ke.toFixed(2))}function we($){for(var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},N=[],ke=(0,G.RO)($),ve=F;ve>0;ve-=1){var K=x(ke),U=ne((0,G.RO)({h:be(K,ve,!0),s:Oe(K,ve,!0),v:he(K,ve,!0)}));N.push(U)}N.push(ne(ke));for(var ge=1;ge<=X;ge+=1){var qe=x(ke),rt=ne((0,G.RO)({h:be(qe,ge),s:Oe(qe,ge),v:he(qe,ge)}));N.push(rt)}return"dark"===ce.theme?V.map(function(Ft){var on=Ft.index,Cn=Ft.opacity,Zn=ne(function J($,ce,N){var ke=N/100;return{r:(ce.r-$.r)*ke+$.r,g:(ce.g-$.g)*ke+$.g,b:(ce.b-$.b)*ke+$.b}}((0,G.RO)(ce.backgroundColor||"#141414"),(0,G.RO)(N[on]),100*Cn));return Zn}):N}var me={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"},de={},H={};Object.keys(me).forEach(function($){de[$]=we(me[$]),de[$].primary=de[$][5],H[$]=we(me[$],{theme:"dark",backgroundColor:"#141414"}),H[$].primary=H[$][5]});var xt=c(177),st=c(1626),Ct=c(7673),It=c(1985),Tt=c(6354),en=c(8141),jt=c(980),Vt=c(9437),fn=c(7647),Hn=c(5964),zn=c(6697),bt=c(345);const At="[@ant-design/icons-angular]:";function Ot($){(0,t.naY)()&&console.warn(`${At} ${$}.`)}function Yt($){return we($)[0]}function Ue($,ce){switch(ce){case"fill":return`${$}-fill`;case"outline":return`${$}-o`;case"twotone":return`${$}-twotone`;case void 0:return $;default:throw new Error(`${At}Theme "${ce}" is not a recognized theme!`)}}function oe($){return"object"==typeof $&&"string"==typeof $.name&&("string"==typeof $.theme||void 0===$.theme)&&"string"==typeof $.icon}function Kt($){const ce=$.split(":");switch(ce.length){case 1:return[$,""];case 2:return[ce[1],ce[0]];default:throw new Error(`${At}The icon type ${$} is not valid!`)}}function Wn($){return new Error(`${At}the icon ${$} does not exist or is not registered.`)}function Un(){return new Error(`${At} tag not found.`)}const On=new t.nKC("ant_icons");let Ut=(()=>{class ${set twoToneColor({primaryColor:N,secondaryColor:ke}){this._twoToneColorPalette.primaryColor=N,this._twoToneColorPalette.secondaryColor=ke||Yt(N)}get twoToneColor(){return{...this._twoToneColorPalette}}get _disableDynamicLoading(){return!1}constructor(N,ke,ve,K,U){this._rendererFactory=N,this._handler=ke,this._document=ve,this.sanitizer=K,this._antIcons=U,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 r.B,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new st.Qq(this._handler)),this._antIcons&&this.addIcon(...this._antIcons)}useJsonpLoading(){this._enableJsonpLoading?Ot("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=N=>{this._jsonpIconLoad$.next(N)})}changeAssetsSource(N){this._assetsUrlRoot=N.endsWith("/")?N:N+"/"}addIcon(...N){N.forEach(ke=>{this._svgDefinitions.set(Ue(ke.name,ke.theme),ke)})}addIconLiteral(N,ke){const[ve,K]=Kt(N);if(!K)throw function Tn(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:N,icon:ke})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(N,ke){const ve=oe(N)?N:this._svgDefinitions.get(N)||null;if(!ve&&this._disableDynamicLoading)throw Wn(N);return(ve?(0,Ct.of)(ve):this._loadIconDynamically(N)).pipe((0,Tt.T)(U=>{if(!U)throw Wn(N);return this._loadSVGFromCacheOrCreateNew(U,ke)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(N){if(!this._http&&!this._enableJsonpLoading)return(0,Ct.of)(function kn(){return function Et($){console.error(`${At} ${$}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let ke=this._inProgressFetches.get(N);if(!ke){const[ve,K]=Kt(N),U=K?{name:N,icon:""}:function Fe($){const ce=$.split("-"),N=function ie($){return"o"===$?"outline":$}(ce.splice(ce.length-1,1)[0]);return{name:ce.join("-"),theme:N,icon:""}}(ve),qe=(K?`${this._assetsUrlRoot}assets/${K}/${ve}`:`${this._assetsUrlRoot}assets/${U.theme}/${U.name}`)+(this._enableJsonpLoading?".js":".svg"),rt=this.sanitizer.sanitize(t.WPN.URL,qe);if(!rt)throw function Vn($){return new Error(`${At}The url "${$}" is unsafe.`)}(qe);ke=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(U,rt):this._http.get(rt,{responseType:"text"}).pipe((0,Tt.T)(on=>({...U,icon:on})))).pipe((0,en.M)(on=>this.addIcon(on)),(0,jt.j)(()=>this._inProgressFetches.delete(N)),(0,Vt.W)(()=>(0,Ct.of)(null)),(0,fn.u)()),this._inProgressFetches.set(N,ke)}return ke}_loadIconDynamicallyWithJsonp(N,ke){return new It.c(ve=>{const K=this._document.createElement("script"),U=setTimeout(()=>{ge(),ve.error(function dn(){return new Error(`${At}Importing timeout error.`)}())},6e3);function ge(){K.parentNode.removeChild(K),clearTimeout(U)}K.src=ke,this._document.body.appendChild(K),this._jsonpIconLoad$.pipe((0,Hn.p)(qe=>qe.name===N.name&&qe.theme===N.theme),(0,zn.s)(1)).subscribe(qe=>{ve.next(qe),ge()})})}_loadSVGFromCacheOrCreateNew(N,ke){let ve;const K=ke||this._twoToneColorPalette.primaryColor,U=Yt(K)||this._twoToneColorPalette.secondaryColor,ge="twotone"===N.theme?function Ae($,ce,N,ke){return`${Ue($,ce)}-${N}-${ke}`}(N.name,N.theme,K,U):void 0===N.theme?N.name:Ue(N.name,N.theme),qe=this._svgRenderedDefinitions.get(ge);return qe?ve=qe.icon:(ve=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function cn($){return""!==Kt($)[1]}(N.name)?N.icon:function ut($){return $.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(N.icon)),"twotone"===N.theme,K,U)),this._svgRenderedDefinitions.set(ge,{...N,icon:ve})),function et($){return $.cloneNode(!0)}(ve)}_createSVGElementFromString(N){const ke=this._document.createElement("div");ke.innerHTML=N;const ve=ke.querySelector("svg");if(!ve)throw Un;return ve}_setSVGAttribute(N){return this._renderer.setAttribute(N,"width","1em"),this._renderer.setAttribute(N,"height","1em"),N}_colorizeSVGIcon(N,ke,ve,K){if(ke){const U=N.childNodes,ge=U.length;for(let qe=0;qe{class ${constructor(N,ke,ve){this._iconService=N,this._elementRef=ke,this._renderer=ve}ngOnChanges(N){(N.type||N.theme||N.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(N=>{if(!this.type)return this._clearSVGElement(),void N(null);const ke=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(ve=>{const K=this._getSelfRenderMeta();!function Ye($,ce){return $.type===ce.type&&$.theme===ce.theme&&$.twoToneColor===ce.twoToneColor}(ke,K)?N(null):(this._setSVGElement(ve),N(ve))})})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(N,ke){if(oe(N))return N;{const[ve,K]=Kt(N);return K?N:function _e($){return $.endsWith("-fill")||$.endsWith("-o")||$.endsWith("-twotone")}(ve)?(ke&&Ot(`'type' ${ve} already gets a theme inside so 'theme' ${ke} would be ignored`),ve):Ue(ve,ke||this._iconService.defaultTheme)}}_setSVGElement(N){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,N)}_clearSVGElement(){const N=this._elementRef.nativeElement,ke=N.childNodes;for(let K=ke.length-1;K>=0;K--){const U=ke[K];"svg"===U.tagName?.toLowerCase()&&this._renderer.removeChild(N,U)}}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.rXU(Ut),t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:$,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[t.OA$]})}return $})();var Xe=c(3451),dt=c(8167),at=c(6042),St=c(6860);const Qe=[dt.XkU,dt.Z1x,dt.iOx,dt.FmF,dt.rHI,dt.SFT,dt.aB7,dt.N$r,dt.HCk,dt.DXx,dt.Hcp,dt.Y6F,dt.XEL,dt.O9N,dt.OgO,dt.lWl,dt.KKJ,dt.rXM,dt.Nk1,dt.MTO,dt.drJ,dt.ekG,dt.U1s,dt.QQ_,dt.$ix,dt.cuh,dt.U97,dt.DT4,dt.gA6,dt.hl9,dt.j4r,dt.Dnx,dt.Hb1,dt.kGj,dt.HSk,dt.eiI,dt.zt9,dt.eiI,dt.eNq,dt.RR4,dt.qZ3,dt.wx$,dt.a5L,dt.XTv,dt.gZ6],Ee=new t.nKC("nz_icons"),re=(new t.nKC("nz_icon_default_twotone_color"),"#1890ff");let ze=(()=>{class $ extends Ut{get _disableDynamicLoading(){return!this.platform.isBrowser}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(N){N.getAttribute("viewBox")||this._renderer.setAttribute(N,"viewBox","0 0 1024 1024"),(!N.getAttribute("width")||!N.getAttribute("height"))&&(this._renderer.setAttribute(N,"width","1em"),this._renderer.setAttribute(N,"height","1em")),N.getAttribute("fill")||this._renderer.setAttribute(N,"fill","currentColor")}fetchFromIconfont(N){const{scriptUrl:ke}=N;if(this._document&&!this.iconfontCache.has(ke)){const ve=this._renderer.createElement("script");this._renderer.setAttribute(ve,"src",ke),this._renderer.setAttribute(ve,"data-namespace",ke.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,ve),this.iconfontCache.add(ke)}}createIconfontIcon(N){return this._createSVGElementFromString(``)}constructor(N,ke,ve,K,U,ge,qe){super(N,U,ge,ke,[...Qe,...qe||[]]),this.nzConfigService=ve,this.platform=K,this.configUpdated$=new r.B,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 N=this.getConfig();this.defaultTheme=N.nzTheme||"outline"}configDefaultTwotoneColor(){const ke=this.getConfig().nzTwotoneColor||re;let ve=re;ke&&(ke.startsWith("#")?ve=ke:(0,Xe.R8)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:ve}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.KVO(t._9s),t.KVO(bt.up),t.KVO(at.yx),t.KVO(St.OD),t.KVO(st.JV,8),t.KVO(xt.qQ,8),t.KVO(Ee,8))};static#t=this.\u0275prov=t.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})();const gt=new t.nKC("nz_icons_patch");let Ke=(()=>{class ${constructor(N,ke){this.extraIcons=N,this.rootIconService=ke,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(N=>this.rootIconService.addIcon(N)),this.patched=!0)}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.KVO(gt,2),t.KVO(ze))};static#t=this.\u0275prov=t.jDH({token:$,factory:$.\u0275fac})}return $})(),Pe=(()=>{class $ extends ue{set nzSpin(N){this.spin=N}set nzType(N){this.type=N}set nzTheme(N){this.theme=N}set nzTwotoneColor(N){this.twoToneColor=N}set nzIconfont(N){this.iconfont=N}constructor(N,ke,ve,K,U,ge){super(K,ve,U),this.ngZone=N,this.changeDetectorRef=ke,this.iconService=K,this.renderer=U,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new r.B,ge&&ge.doPatch(),this.el=ve.nativeElement}ngOnChanges(N){const{nzType:ke,nzTwotoneColor:ve,nzSpin:K,nzTheme:U,nzRotate:ge}=N;ke||ve||K||U?this.changeIcon2():ge?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 N=this.el.children;let ke=N.length;if(!this.type&&N.length)for(;ke--;){const ve=N[ke];"svg"===ve.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(ve)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,g.H)(this._changeIcon()).pipe((0,e.Q)(this.destroy$)).subscribe({next:N=>{this.ngZone.run(()=>{this.changeDetectorRef.detectChanges(),N&&(this.setSVGData(N),this.handleSpin(N),this.handleRotate(N))})},error:Xe.R8})})}handleSpin(N){this.spin||"loading"===this.type?this.renderer.addClass(N,"anticon-spin"):this.renderer.removeClass(N,"anticon-spin")}handleRotate(N){this.nzRotate?this.renderer.setAttribute(N,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(N,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(N){this.renderer.setAttribute(N,"data-icon",this.type),this.renderer.setAttribute(N,"aria-hidden","true")}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(ze),t.rXU(t.sFG),t.rXU(Ke,8))};static#t=this.\u0275dir=t.FsC({type:$,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(ke,ve){2&ke&&t.AVh("anticon",!0)},inputs:{nzSpin:[2,"nzSpin","nzSpin",t.L39],nzRotate:[2,"nzRotate","nzRotate",t.Udg],nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],standalone:!0,features:[t.GFd,t.Vt3,t.OA$]})}return $})(),Re=(()=>{class ${static forRoot(N){return{ngModule:$,providers:[{provide:Ee,useValue:N}]}}static forChild(N){return{ngModule:$,providers:[Ke,{provide:gt,useValue:N}]}}static#e=this.\u0275fac=function(ke){return new(ke||$)};static#t=this.\u0275mod=t.$C({type:$});static#n=this.\u0275inj=t.G2t({})}return $})()},1011:(Rt,De,c)=>{c.d(De,{Sy:()=>fn,c9:()=>bt,j:()=>Et,tg:()=>zn,vN:()=>Hn});var t=c(177),r=c(3953),g=c(1413),e=c(7786),M=c(3294),G=c(6977),L=c(5964),B=c(9172),A=c(5558),w=c(1397),I=c(6354),F=c(7891),X=c(317),V=c(7806),x=c(5103),ne=c(9417),J=c(8203),be=c(851),Oe=c(6860),he=c(1025);const we=["nz-input-group-slot",""],me=["*"];function de(Ot,Yt){if(1&Ot&&r.nrm(0,"span",0),2&Ot){const Ue=r.XpG();r.Y8G("nzType",Ue.icon)}}function H(Ot,Yt){if(1&Ot&&(r.qex(0),r.EFF(1),r.bVm()),2&Ot){const Ue=r.XpG();r.R7$(),r.JRh(Ue.template)}}function z(Ot,Yt){if(1&Ot&&r.nrm(0,"span",3),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzAddOnBeforeIcon)("template",Ue.nzAddOnBefore)}}function Z(Ot,Yt){}function pe(Ot,Yt){if(1&Ot&&(r.j41(0,"span",6),r.DNE(1,Z,0,0,"ng-template",5),r.k0s()),2&Ot){const Ue=r.XpG(2),Ae=r.sdS(3);r.AVh("ant-input-affix-wrapper-disabled",Ue.disabled)("ant-input-affix-wrapper-sm",Ue.isSmall)("ant-input-affix-wrapper-lg",Ue.isLarge)("ant-input-affix-wrapper-focused",Ue.focused),r.Y8G("ngClass",Ue.affixInGroupStatusCls),r.R7$(),r.Y8G("ngTemplateOutlet",Ae)}}function E(Ot,Yt){}function S(Ot,Yt){if(1&Ot&&r.DNE(0,E,0,0,"ng-template",5),2&Ot){r.XpG(2);const Ue=r.sdS(5);r.Y8G("ngTemplateOutlet",Ue)}}function R(Ot,Yt){if(1&Ot&&r.nrm(0,"span",3),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzAddOnAfterIcon)("template",Ue.nzAddOnAfter)}}function Y(Ot,Yt){if(1&Ot&&(r.j41(0,"span",2),r.DNE(1,z,1,2,"span",3)(2,pe,2,10,"span",4)(3,S,1,1,null,5)(4,R,1,2,"span",3),r.k0s()),2&Ot){const Ue=r.XpG();r.R7$(),r.vxM(Ue.nzAddOnBefore||Ue.nzAddOnBeforeIcon?1:-1),r.R7$(),r.vxM(Ue.isAffix||Ue.hasFeedback?2:3),r.R7$(2),r.vxM(Ue.nzAddOnAfter||Ue.nzAddOnAfterIcon?4:-1)}}function se(Ot,Yt){}function Be(Ot,Yt){if(1&Ot&&r.DNE(0,se,0,0,"ng-template",5),2&Ot){r.XpG(2);const Ue=r.sdS(3);r.Y8G("ngTemplateOutlet",Ue)}}function Pt(Ot,Yt){}function vt(Ot,Yt){if(1&Ot&&r.DNE(0,Pt,0,0,"ng-template",5),2&Ot){r.XpG(2);const Ue=r.sdS(5);r.Y8G("ngTemplateOutlet",Ue)}}function wt(Ot,Yt){if(1&Ot&&r.DNE(0,Be,1,1,null,5)(1,vt,1,1,null,5),2&Ot){const Ue=r.XpG();r.vxM(Ue.isAffix?0:1)}}function Le(Ot,Yt){if(1&Ot&&r.nrm(0,"span",7),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzPrefixIcon)("template",Ue.nzPrefix)}}function zt(Ot,Yt){}function xt(Ot,Yt){if(1&Ot&&r.nrm(0,"nz-form-item-feedback-icon",9),2&Ot){const Ue=r.XpG(3);r.Y8G("status",Ue.status)}}function st(Ot,Yt){if(1&Ot&&(r.j41(0,"span",8),r.DNE(1,xt,1,1,"nz-form-item-feedback-icon",9),r.k0s()),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzSuffixIcon)("template",Ue.nzSuffix),r.R7$(),r.vxM(Ue.isFeedback?1:-1)}}function Ct(Ot,Yt){if(1&Ot&&r.DNE(0,Le,1,2,"span",7)(1,zt,0,0,"ng-template",5)(2,st,2,3,"span",8),2&Ot){const Ue=r.XpG(),Ae=r.sdS(5);r.vxM(Ue.nzPrefix||Ue.nzPrefixIcon?0:-1),r.R7$(),r.Y8G("ngTemplateOutlet",Ae),r.R7$(),r.vxM(Ue.nzSuffix||Ue.nzSuffixIcon||Ue.isFeedback?2:-1)}}function It(Ot,Yt){if(1&Ot&&(r.j41(0,"span",10),r.nrm(1,"nz-form-item-feedback-icon",9),r.k0s()),2&Ot){const Ue=r.XpG(2);r.R7$(),r.Y8G("status",Ue.status)}}function Tt(Ot,Yt){if(1&Ot&&(r.SdG(0),r.DNE(1,It,2,1,"span",10)),2&Ot){const Ue=r.XpG();r.R7$(),r.vxM(Ue.isAddOn||Ue.isAffix||!Ue.isFeedback?-1:1)}}let Vt=(()=>{class Ot{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)};static#t=this.\u0275cmp=r.VBU({type:Ot,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(Ae,ie){2&Ae&&r.AVh("ant-input-group-addon","addon"===ie.type)("ant-input-prefix","prefix"===ie.type)("ant-input-suffix","suffix"===ie.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[r.aNF],attrs:we,ngContentSelectors:me,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(Ae,ie){1&Ae&&(r.NAR(),r.DNE(0,de,1,1,"span",0)(1,H,2,1,"ng-container",1),r.SdG(2)),2&Ae&&(r.vxM(ie.icon?0:-1),r.R7$(),r.Y8G("nzStringTemplateOutlet",ie.template))},dependencies:[x.Y3,x.Dn,V.C,V.m],encapsulation:2,changeDetection:0})}return Ot})(),fn=(()=>{class Ot{get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ue){this._disabled=Ue}constructor(Ue,Ae,ie,_e,oe,Fe,et){this.ngControl=Ue,this.renderer=Ae,this.elementRef=ie,this.hostView=_e,this.directionality=oe,this.nzFormStatusService=Fe,this.nzFormNoStatusService=et,this.nzBorderless=!1,this.nzSize="default",this.nzStepperless=!0,this.nzStatus="",this._disabled=!1,this.disabled$=new g.B,this.dir="ltr",this.prefixCls="ant-input",this.status="",this.statusCls={},this.hasFeedback=!1,this.feedbackRef=null,this.components=[],this.destroy$=new g.B}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,M.F)((Ue,Ae)=>Ue.status===Ae.status&&Ue.hasFeedback===Ae.hasFeedback),(0,G.Q)(this.destroy$)).subscribe(({status:Ue,hasFeedback:Ae})=>{this.setStatusStyles(Ue,Ae)}),this.ngControl&&this.ngControl.statusChanges?.pipe((0,L.p)(()=>null!==this.ngControl.disabled),(0,G.Q)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Ue=>{this.dir=Ue})}ngOnChanges(Ue){const{disabled:Ae,nzStatus:ie}=Ue;Ae&&this.disabled$.next(this.disabled),ie&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ue,Ae){this.status=Ue,this.hasFeedback=Ae,this.renderFeedbackIcon(),this.statusCls=(0,X.LP)(this.prefixCls,Ue,Ae),Object.keys(this.statusCls).forEach(ie=>{this.statusCls[ie]?this.renderer.addClass(this.elementRef.nativeElement,ie):this.renderer.removeClass(this.elementRef.nativeElement,ie)})}renderFeedbackIcon(){if(!this.status||!this.hasFeedback||this.nzFormNoStatusService)return this.hostView.clear(),void(this.feedbackRef=null);this.feedbackRef=this.feedbackRef||this.hostView.createComponent(F.Xd),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.instance.status=this.status,this.feedbackRef.instance.updateIcon()}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(ne.vO,10),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(r.c1b),r.rXU(J.dS,8),r.rXU(F.is,8),r.rXU(F.n1,8))};static#t=this.\u0275dir=r.FsC({type:Ot,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:13,hostBindings:function(Ae,ie){2&Ae&&(r.BMQ("disabled",ie.disabled||null),r.AVh("ant-input-disabled",ie.disabled)("ant-input-borderless",ie.nzBorderless)("ant-input-lg","large"===ie.nzSize)("ant-input-sm","small"===ie.nzSize)("ant-input-rtl","rtl"===ie.dir)("ant-input-stepperless",ie.nzStepperless))},inputs:{nzBorderless:[2,"nzBorderless","nzBorderless",r.L39],nzSize:"nzSize",nzStepperless:[2,"nzStepperless","nzStepperless",r.L39],nzStatus:"nzStatus",disabled:[2,"disabled","disabled",r.L39]},exportAs:["nzInput"],standalone:!0,features:[r.GFd,r.OA$]})}return Ot})(),Hn=(()=>{class Ot{constructor(Ue){this.elementRef=Ue}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:Ot,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]],standalone:!0})}return Ot})(),zn=(()=>{class Ot{constructor(Ue,Ae,ie,_e,oe,Fe,et){this.focusMonitor=Ue,this.elementRef=Ae,this.renderer=ie,this.cdr=_e,this.directionality=oe,this.nzFormStatusService=Fe,this.nzFormNoStatusService=et,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 g.B}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(Ue=>Ue.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,M.F)((Ue,Ae)=>Ue.status===Ae.status&&Ue.hasFeedback===Ae.hasFeedback),(0,G.Q)(this.destroy$)).subscribe(({status:Ue,hasFeedback:Ae})=>{this.setStatusStyles(Ue,Ae)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,G.Q)(this.destroy$)).subscribe(Ue=>{this.focused=!!Ue,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Ue=>{this.dir=Ue})}ngAfterContentInit(){this.updateChildrenInputSize();const Ue=this.listOfNzInputDirective.changes.pipe((0,B.Z)(this.listOfNzInputDirective));Ue.pipe((0,A.n)(Ae=>(0,e.h)(Ue,...Ae.map(ie=>ie.disabled$))),(0,w.Z)(()=>Ue),(0,I.T)(Ae=>Ae.some(ie=>ie.disabled)),(0,G.Q)(this.destroy$)).subscribe(Ae=>{this.disabled=Ae,this.cdr.markForCheck()})}ngOnChanges(Ue){const{nzSize:Ae,nzSuffix:ie,nzPrefix:_e,nzPrefixIcon:oe,nzSuffixIcon:Fe,nzAddOnAfter:et,nzAddOnBefore:ut,nzAddOnAfterIcon:Kt,nzAddOnBeforeIcon:cn,nzStatus:Tn}=Ue;Ae&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(ie||_e||oe||Fe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(et||ut||Kt||cn)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),Tn&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ue,Ae){this.status=Ue,this.hasFeedback=Ae,this.isFeedback=!!Ue&&Ae,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&Ae,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,X.LP)(`${this.prefixCls}-affix-wrapper`,Ue,Ae):{},this.cdr.markForCheck(),this.affixStatusCls=(0,X.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":Ue,!this.isAddOn&&Ae),this.groupStatusCls=(0,X.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?Ue:"",!!this.isAddOn&&Ae);const _e={...this.affixStatusCls,...this.groupStatusCls};Object.keys(_e).forEach(oe=>{_e[oe]?this.renderer.addClass(this.elementRef.nativeElement,oe):this.renderer.removeClass(this.elementRef.nativeElement,oe)})}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(be.FN),r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.gRc),r.rXU(J.dS,8),r.rXU(F.is,8),r.rXU(F.n1,8))};static#t=this.\u0275cmp=r.VBU({type:Ot,selectors:[["nz-input-group"]],contentQueries:function(Ae,ie,_e){if(1&Ae&&r.wni(_e,fn,4),2&Ae){let oe;r.mGM(oe=r.lsd())&&(ie.listOfNzInputDirective=oe)}},hostVars:40,hostBindings:function(Ae,ie){2&Ae&&r.AVh("ant-input-group-compact",ie.nzCompact)("ant-input-search-enter-button",ie.nzSearch)("ant-input-search",ie.nzSearch)("ant-input-search-rtl","rtl"===ie.dir)("ant-input-search-sm",ie.nzSearch&&ie.isSmall)("ant-input-search-large",ie.nzSearch&&ie.isLarge)("ant-input-group-wrapper",ie.isAddOn)("ant-input-group-wrapper-rtl","rtl"===ie.dir)("ant-input-group-wrapper-lg",ie.isAddOn&&ie.isLarge)("ant-input-group-wrapper-sm",ie.isAddOn&&ie.isSmall)("ant-input-affix-wrapper",ie.isAffix&&!ie.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===ie.dir)("ant-input-affix-wrapper-focused",ie.isAffix&&ie.focused)("ant-input-affix-wrapper-disabled",ie.isAffix&&ie.disabled)("ant-input-affix-wrapper-lg",ie.isAffix&&!ie.isAddOn&&ie.isLarge)("ant-input-affix-wrapper-sm",ie.isAffix&&!ie.isAddOn&&ie.isSmall)("ant-input-group",!ie.isAffix&&!ie.isAddOn)("ant-input-group-rtl","rtl"===ie.dir)("ant-input-group-lg",!ie.isAffix&&!ie.isAddOn&&ie.isLarge)("ant-input-group-sm",!ie.isAffix&&!ie.isAddOn&&ie.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:[2,"nzSearch","nzSearch",r.L39],nzCompact:[2,"nzCompact","nzCompact",r.L39]},exportAs:["nzInputGroup"],standalone:!0,features:[r.Jv_([F.n1]),r.GFd,r.OA$,r.aNF],ngContentSelectors:me,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"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"],[3,"ngTemplateOutlet"],[1,"ant-input-affix-wrapper",3,"ngClass"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-group-slot","","type","suffix"]],template:function(Ae,ie){1&Ae&&(r.NAR(),r.DNE(0,Y,5,3,"span",2)(1,wt,2,1)(2,Ct,3,3,"ng-template",null,0,r.C5r)(4,Tt,2,1,"ng-template",null,1,r.C5r)),2&Ae&&r.vxM(ie.isAddOn?0:1)},dependencies:[Vt,t.YU,t.T3,F.J1,F.Xd],encapsulation:2,changeDetection:0})}return Ot})(),bt=(()=>{class Ot{set nzAutosize(Ue){var ie;"string"==typeof Ue||!0===Ue?this.autosize=!0:"string"!=typeof(ie=Ue)&&"boolean"!=typeof ie&&(ie.maxRows||ie.minRows)&&(this.autosize=!0,this.minRows=Ue.minRows,this.maxRows=Ue.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(Ue=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const Ae=this.el,ie=Ae.value;if(!Ue&&this.minRows===this.previousMinRows&&ie===this.previousValue)return;const _e=Ae.placeholder;Ae.classList.add("nz-textarea-autosize-measuring"),Ae.placeholder="";let oe=Math.round((Ae.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&oe>this.maxHeight&&(oe=this.maxHeight),null!==this.minHeight&&oerequestAnimationFrame(()=>{const{selectionStart:Fe,selectionEnd:et}=Ae;!this.destroy$.isStopped&&document.activeElement===Ae&&Ae.setSelectionRange(Fe,et)})),this.previousValue=ie,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const Ue=this.el.cloneNode(!1);Ue.rows=1,Ue.style.position="absolute",Ue.style.visibility="hidden",Ue.style.border="none",Ue.style.padding="0",Ue.style.height="",Ue.style.minHeight="",Ue.style.maxHeight="",Ue.style.overflow="hidden",this.el.parentNode.appendChild(Ue),this.cachedLineHeight=Ue.clientHeight-this.inputGap,this.el.parentNode.removeChild(Ue),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const Ue=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==Ue&&(this.el.style.minHeight=`${Ue}px`),Ue}setMaxHeight(){const Ue=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==Ue&&(this.el.style.maxHeight=`${Ue}px`),Ue}noopInputHandler(){}constructor(Ue,Ae,ie,_e){this.elementRef=Ue,this.ngZone=Ae,this.platform=ie,this.resizeService=_e,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new g.B,this.inputGap=10}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,G.Q)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(Oe.OD),r.rXU(he.cB))};static#t=this.\u0275dir=r.FsC({type:Ot,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(Ae,ie){1&Ae&&r.bIt("input",function(){return ie.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"],standalone:!0})}return Ot})(),Et=(()=>{class Ot{static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)};static#t=this.\u0275mod=r.$C({type:Ot});static#n=this.\u0275inj=r.G2t({imports:[zn,Vt]})}return Ot})()},2617:(Rt,De,c)=>{c.d(De,{$2:()=>te,MV:()=>Xe,Tc:()=>q,Xo:()=>at,YU:()=>Ut,eE:()=>re,lQ:()=>ze,mf:()=>On,nt:()=>dt,qx:()=>ue,rD:()=>Ke});var t=c(177),r=c(3953),g=c(7806),e=c(9438),M=c(1413),G=c(9030),L=c(7673),B=c(7786),A=c(4412),w=c(1397),I=c(9172),F=c(6977),X=c(1025),V=c(7529),x=c(2983),ne=c(1672),J=c(8203);const be=["*"];function Oe(Pe,Re){if(1&Pe&&r.nrm(0,"nz-avatar",1),2&Pe){const $=r.XpG();r.Y8G("nzSrc",$.nzSrc)}}function he(Pe,Re){1&Pe&&r.SdG(0)}const we=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],me=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function de(Pe,Re){if(1&Pe&&r.nrm(0,"nz-list-item-meta-avatar",0),2&Pe){const $=r.XpG();r.Y8G("nzSrc",$.avatarStr)}}function H(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-meta-avatar"),r.eu8(1,2),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",$.avatarTpl)}}function z(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(3);r.R7$(),r.JRh($.nzTitle)}}function Z(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-meta-title"),r.DNE(1,z,2,1,"ng-container",3),r.k0s()),2&Pe){const $=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzTitle)}}function pe(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(3);r.R7$(),r.JRh($.nzDescription)}}function E(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-meta-description"),r.DNE(1,pe,2,1,"ng-container",3),r.k0s()),2&Pe){const $=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzDescription)}}function S(Pe,Re){if(1&Pe&&(r.j41(0,"div",1),r.DNE(1,Z,2,1,"nz-list-item-meta-title")(2,E,2,1,"nz-list-item-meta-description"),r.SdG(3,1),r.SdG(4,2),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.vxM($.nzTitle&&!$.titleComponent?1:-1),r.R7$(),r.vxM($.nzDescription&&!$.descriptionComponent?2:-1)}}function R(Pe,Re){1&Pe&&r.SdG(0)}const Y=["nz-list-item-actions",""];function se(Pe,Re){}function Be(Pe,Re){1&Pe&&r.nrm(0,"em",1)}function Pt(Pe,Re){if(1&Pe&&(r.j41(0,"li"),r.DNE(1,se,0,0,"ng-template",0)(2,Be,1,0,"em",1),r.k0s()),2&Pe){const $=Re.$implicit,ce=Re.$index,N=Re.$count;r.R7$(),r.Y8G("ngTemplateOutlet",$),r.R7$(),r.vxM(ce!==N-1?2:-1)}}const vt=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],wt=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"],Le=(Pe,Re)=>({$implicit:Pe,index:Re});function zt(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(2);r.R7$(),r.JRh($.nzHeader)}}function xt(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-header"),r.DNE(1,zt,2,1,"ng-container",6),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzHeader)}}function st(Pe,Re){1&Pe&&r.nrm(0,"div"),2&Pe&&r.xc7("min-height",53,"px")}function Ct(Pe,Re){}function It(Pe,Re){if(1&Pe&&(r.j41(0,"div",7),r.DNE(1,Ct,0,0,"ng-template",8),r.k0s()),2&Pe){const $=Re.$implicit,ce=Re.$index,N=r.XpG(2);r.Y8G("nzSpan",N.nzGrid.span||null)("nzXs",N.nzGrid.xs||null)("nzSm",N.nzGrid.sm||null)("nzMd",N.nzGrid.md||null)("nzLg",N.nzGrid.lg||null)("nzXl",N.nzGrid.xl||null)("nzXXl",N.nzGrid.xxl||null),r.R7$(),r.Y8G("ngTemplateOutlet",N.nzRenderItem)("ngTemplateOutletContext",r.l_i(9,Le,$,ce))}}function Tt(Pe,Re){if(1&Pe&&(r.j41(0,"div",2),r.Z7z(1,It,2,12,"div",7,r.fX1),r.k0s()),2&Pe){const $=r.XpG();r.Y8G("nzGutter",$.nzGrid.gutter||null),r.R7$(),r.Dyx($.nzDataSource)}}function en(Pe,Re){}function jt(Pe,Re){if(1&Pe&&(r.qex(0),r.DNE(1,en,0,0,"ng-template",8),r.bVm()),2&Pe){const $=Re.$implicit,ce=Re.$index,N=r.XpG(2);r.R7$(),r.Y8G("ngTemplateOutlet",N.nzRenderItem)("ngTemplateOutletContext",r.l_i(2,Le,$,ce))}}function Vt(Pe,Re){if(1&Pe&&(r.j41(0,"div",3),r.Z7z(1,jt,2,5,"ng-container",null,r.fX1),r.SdG(3,4),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Dyx($.nzDataSource)}}function fn(Pe,Re){if(1&Pe&&r.nrm(0,"nz-list-empty",4),2&Pe){const $=r.XpG();r.Y8G("nzNoResult",$.nzNoResult)}}function Hn(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(2);r.R7$(),r.JRh($.nzFooter)}}function zn(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-footer"),r.DNE(1,Hn,2,1,"ng-container",6),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzFooter)}}function bt(Pe,Re){}function At(Pe,Re){}function Et(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-pagination"),r.DNE(1,At,0,0,"ng-template",5),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",$.nzPagination)}}const Ot=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Yt=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];function Ue(Pe,Re){if(1&Pe&&r.nrm(0,"ul",3),2&Pe){const $=r.XpG(2);r.Y8G("nzActions",$.nzActions)}}function Ae(Pe,Re){if(1&Pe&&(r.DNE(0,Ue,1,1,"ul",3),r.SdG(1)),2&Pe){const $=r.XpG();r.vxM($.nzActions&&$.nzActions.length>0?0:-1)}}function ie(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(3);r.R7$(),r.JRh($.nzContent)}}function _e(Pe,Re){if(1&Pe&&r.DNE(0,ie,2,1,"ng-container",4),2&Pe){const $=r.XpG(2);r.Y8G("nzStringTemplateOutlet",$.nzContent)}}function oe(Pe,Re){if(1&Pe&&(r.SdG(0,1),r.SdG(1,2),r.DNE(2,_e,1,1,"ng-container")),2&Pe){const $=r.XpG();r.R7$(2),r.vxM($.nzContent?2:-1)}}function Fe(Pe,Re){1&Pe&&r.SdG(0,3)}function et(Pe,Re){}function ut(Pe,Re){}function Kt(Pe,Re){}function cn(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-extra"),r.DNE(1,Kt,0,0,"ng-template",6),r.k0s()),2&Pe){const $=r.XpG(2);r.R7$(),r.Y8G("ngTemplateOutlet",$.nzExtra)}}function Tn(Pe,Re){}function Wn(Pe,Re){if(1&Pe&&(r.j41(0,"div",5),r.DNE(1,et,0,0,"ng-template",6)(2,ut,0,0,"ng-template",6),r.k0s(),r.DNE(3,cn,2,1,"nz-list-item-extra")(4,Tn,0,0,"ng-template",6)),2&Pe){const $=r.XpG(),ce=r.sdS(1),N=r.sdS(3),ke=r.sdS(5);r.R7$(),r.Y8G("ngTemplateOutlet",N),r.R7$(),r.Y8G("ngTemplateOutlet",ce),r.R7$(),r.vxM($.nzExtra?3:-1),r.R7$(),r.Y8G("ngTemplateOutlet",ke)}}function kn(Pe,Re){}function Vn(Pe,Re){}function Un(Pe,Re){}function dn(Pe,Re){}function qt(Pe,Re){if(1&Pe&&r.DNE(0,kn,0,0,"ng-template",6)(1,Vn,0,0,"ng-template",6)(2,Un,0,0,"ng-template",6)(3,dn,0,0,"ng-template",6),2&Pe){const $=r.XpG(),ce=r.sdS(1),N=r.sdS(3),ke=r.sdS(5);r.Y8G("ngTemplateOutlet",N),r.R7$(),r.Y8G("ngTemplateOutlet",$.nzExtra),r.R7$(),r.Y8G("ngTemplateOutlet",ke),r.R7$(),r.Y8G("ngTemplateOutlet",ce)}}let On=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(ce,N){1&ce&&(r.NAR(),r.j41(0,"h4",0),r.SdG(1),r.k0s())},encapsulation:2,changeDetection:0})}return Pe})(),Ut=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(ce,N){1&ce&&(r.NAR(),r.j41(0,"div",0),r.SdG(1),r.k0s())},encapsulation:2,changeDetection:0})}return Pe})(),Ye=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:3,vars:1,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc"]],template:function(ce,N){1&ce&&(r.NAR(),r.j41(0,"div",0),r.DNE(1,Oe,1,1,"nz-avatar",1)(2,he,1,0),r.k0s()),2&ce&&(r.R7$(),r.vxM(N.nzSrc?1:2))},dependencies:[e.Yb,e.PM],encapsulation:2,changeDetection:0})}return Pe})(),ue=(()=>{class Pe{set nzAvatar($){$ instanceof r.C4Q?(this.avatarStr="",this.avatarTpl=$):this.avatarStr=$}constructor($){this.elementRef=$,this.avatarStr=""}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(r.aKT))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(ce,N,ke){if(1&ce&&(r.wni(ke,Ut,5),r.wni(ke,On,5)),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.descriptionComponent=ve.first),r.mGM(ve=r.lsd())&&(N.titleComponent=ve.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],standalone:!0,features:[r.aNF],ngContentSelectors:me,decls:4,vars:3,consts:[[3,"nzSrc"],[1,"ant-list-item-meta-content"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"]],template:function(ce,N){1&ce&&(r.NAR(we),r.DNE(0,de,1,1,"nz-list-item-meta-avatar",0)(1,H,2,1,"nz-list-item-meta-avatar"),r.SdG(2),r.DNE(3,S,5,2,"div",1)),2&ce&&(r.vxM(N.avatarStr?0:-1),r.R7$(),r.vxM(N.avatarTpl?1:-1),r.R7$(2),r.vxM(N.nzTitle||N.nzDescription||N.descriptionComponent||N.titleComponent?3:-1))},dependencies:[Ye,t.T3,On,g.C,g.m,Ut],encapsulation:2,changeDetection:0})}return Pe})(),te=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),q=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-action"]],viewQuery:function(ce,N){if(1&ce&&r.GBs(r.C4Q,7),2&ce){let ke;r.mGM(ke=r.lsd())&&(N.templateRef=ke.first)}},exportAs:["nzListItemAction"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.DNE(0,R,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return Pe})(),Xe=(()=>{class Pe{constructor($,ce){this.nzActions=[],this.actions=[],this.inputActionChanges$=new M.B,this.contentChildrenChanges$=(0,G.v)(()=>this.nzListItemActions?(0,L.of)(null):this.initialized.pipe((0,w.Z)(()=>this.nzListItemActions.changes.pipe((0,I.Z)(this.nzListItemActions))))),this.initialized=new M.B,(0,B.h)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,F.Q)(ce)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(N=>N.templateRef),$.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngAfterContentInit(){this.initialized.next(),this.initialized.complete()}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(r.gRc),r.rXU(X.y4))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(ce,N,ke){if(1&ce&&r.wni(ke,q,4),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.nzListItemActions=ve)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],standalone:!0,features:[r.Jv_([X.y4]),r.OA$,r.aNF],attrs:Y,decls:2,vars:0,consts:[[3,"ngTemplateOutlet"],[1,"ant-list-item-action-split"]],template:function(ce,N){1&ce&&r.Z7z(0,Pt,3,2,"li",null,r.fX1),2&ce&&r.Dyx(N.actions)},dependencies:[t.T3],encapsulation:2,changeDetection:0})}return Pe})(),dt=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],standalone:!0,features:[r.aNF],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(ce,N){1&ce&&r.nrm(0,"nz-embed-empty",0),2&ce&&r.Y8G("nzComponentName","list")("specificContent",N.nzNoResult)},dependencies:[ne._v,ne.E8],encapsulation:2,changeDetection:0})}return Pe})(),at=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),St=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),Qe=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),Ee=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275dir=r.FsC({type:Pe,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"],standalone:!0})}return Pe})(),re=(()=>{class Pe{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor($){this.directionality=$,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 A.t(this.nzItemLayout),this.destroy$=new M.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe($=>{this.dir=$})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges($){$.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(J.dS,8))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(ce,N,ke){if(1&ce&&(r.wni(ke,St,5),r.wni(ke,Qe,5),r.wni(ke,Ee,5)),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.nzListFooterComponent=ve.first),r.mGM(ve=r.lsd())&&(N.nzListPaginationComponent=ve.first),r.mGM(ve=r.lsd())&&(N.nzListLoadMoreDirective=ve.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(ce,N){2&ce&&r.AVh("ant-list-rtl","rtl"===N.dir)("ant-list-vertical","vertical"===N.nzItemLayout)("ant-list-lg","large"===N.nzSize)("ant-list-sm","small"===N.nzSize)("ant-list-split",N.nzSplit)("ant-list-bordered",N.nzBordered)("ant-list-loading",N.nzLoading)("ant-list-something-after-last-item",N.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:[2,"nzBordered","nzBordered",r.L39],nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:[2,"nzLoading","nzLoading",r.L39],nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:[2,"nzSplit","nzSplit",r.L39],nzNoResult:"nzNoResult"},exportAs:["nzList"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],ngContentSelectors:wt,decls:14,vars:8,consts:[[3,"nzSpinning"],[3,"min-height"],["nz-row","",3,"nzGutter"],[1,"ant-list-items"],[3,"nzNoResult"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ce,N){1&ce&&(r.NAR(vt),r.DNE(0,xt,2,1,"nz-list-header"),r.SdG(1),r.j41(2,"nz-spin",0),r.qex(3),r.DNE(4,st,1,2,"div",1)(5,Tt,3,1,"div",2)(6,Vt,4,0,"div",3)(7,fn,1,1,"nz-list-empty",4),r.bVm(),r.k0s(),r.DNE(8,zn,2,1,"nz-list-footer"),r.SdG(9,1),r.DNE(10,bt,0,0,"ng-template",5),r.SdG(11,2),r.DNE(12,Et,2,1,"nz-list-pagination"),r.SdG(13,3)),2&ce&&(r.vxM(N.nzHeader?0:-1),r.R7$(2),r.Y8G("nzSpinning",N.nzLoading),r.R7$(2),r.vxM(N.nzLoading&&N.nzDataSource&&0===N.nzDataSource.length?4:-1),r.R7$(),r.vxM(N.nzGrid&&N.nzDataSource?5:6),r.R7$(2),r.vxM(!N.nzLoading&&N.nzDataSource&&0===N.nzDataSource.length?7:-1),r.R7$(),r.vxM(N.nzFooter?8:-1),r.R7$(2),r.Y8G("ngTemplateOutlet",N.nzLoadMore),r.R7$(2),r.vxM(N.nzPagination?12:-1))},dependencies:[t.T3,at,g.C,g.m,x.V,x.a,V.f3,V.Uq,V.e,dt,St,Qe],encapsulation:2,changeDetection:0})}return Pe})(),ze=(()=>{class Pe{get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}constructor($,ce){this.parentComp=$,this.cdr=ce,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe($=>{this.itemLayout=$,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(re),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(ce,N,ke){if(1&ce&&r.wni(ke,te,5),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.listItemExtraDirective=ve.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(ce,N){2&ce&&r.AVh("ant-list-item-no-flex",N.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:[2,"nzNoFlex","nzNoFlex",r.L39]},exportAs:["nzListItem"],standalone:!0,features:[r.GFd,r.aNF],ngContentSelectors:Yt,decls:8,vars:1,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["nz-list-item-actions","",3,"nzActions"],[4,"nzStringTemplateOutlet"],[1,"ant-list-item-main"],[3,"ngTemplateOutlet"]],template:function(ce,N){1&ce&&(r.NAR(Ot),r.DNE(0,Ae,2,1,"ng-template",null,0,r.C5r)(2,oe,3,1,"ng-template",null,1,r.C5r)(4,Fe,1,0,"ng-template",null,2,r.C5r)(6,Wn,5,4)(7,qt,4,4)),2&ce&&(r.R7$(6),r.vxM(N.isVerticalAndExtra?6:7))},dependencies:[Xe,g.C,g.m,t.T3,te],encapsulation:2,changeDetection:0})}return Pe})(),Ke=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275mod=r.$C({type:Pe});static#n=this.\u0275inj=r.G2t({imports:[re,dt,ze,ue,Ye]})}return Pe})()},1868:(Rt,De,c)=>{c.d(De,{$1:()=>Ue,CU:()=>ie,GP:()=>dn,WQ:()=>Vn,ek:()=>Ot,jS:()=>Wn,sD:()=>Un});var t=c(3953),r=c(1413),g=c(4412),e=c(7786),M=c(4572),G=c(6354),L=c(1397),B=c(5964),A=c(3703),w=c(3798),I=c(3294),F=c(6977),X=c(9172),V=c(5558),x=c(1188),ne=c(317),J=c(8203),be=c(7987),Oe=c(6841),he=c(5463),we=c(177),me=c(713),de=c(7806),H=c(5103),z=c(6860);const Z=["nz-menu-item",""],pe=["*"],E=["nz-submenu-inline-child",""];function S(qt,On){}const R=["nz-submenu-none-inline-child",""];function Y(qt,On){}const se=["nz-submenu-title",""];function Be(qt,On){if(1&qt&&t.nrm(0,"span",0),2&qt){const Ut=t.XpG();t.Y8G("nzType",Ut.nzIcon)}}function Pt(qt,On){if(1&qt&&(t.qex(0),t.j41(1,"span",4),t.EFF(2),t.k0s(),t.bVm()),2&qt){const Ut=t.XpG();t.R7$(2),t.JRh(Ut.nzTitle)}}function vt(qt,On){1&qt&&t.nrm(0,"span",5)}function wt(qt,On){1&qt&&t.nrm(0,"span",6)}function Le(qt,On){if(1&qt&&(t.j41(0,"span",2),t.DNE(1,vt,1,0,"span",5)(2,wt,1,0,"span",6),t.k0s()),2&qt){let Ut;const Ye=t.XpG();t.R7$(),t.vxM("rtl"===(Ut=Ye.dir)?1:2)}}function zt(qt,On){1&qt&&t.nrm(0,"span",3)}const xt=["nz-submenu",""],st=[[["","title",""]],"*"],Ct=["[title]","*"];function It(qt,On){1&qt&&t.SdG(0)}function Tt(qt,On){if(1&qt&&t.nrm(0,"div",3),2&qt){const Ut=t.XpG(),Ye=t.sdS(6);t.Y8G("mode",Ut.mode)("nzOpen",Ut.nzOpen)("@.disabled",!(null==Ut.noAnimation||!Ut.noAnimation.nzNoAnimation))("nzNoAnimation",null==Ut.noAnimation?null:Ut.noAnimation.nzNoAnimation)("menuClass",Ut.nzMenuClassName)("templateOutlet",Ye)}}function en(qt,On){if(1&qt){const Ut=t.RV6();t.j41(0,"div",6),t.bIt("subMenuMouseState",function(ue){t.eBV(Ut);const te=t.XpG(2);return t.Njj(te.setMouseEnterState(ue))}),t.k0s()}if(2&qt){const Ut=t.XpG(2),Ye=t.sdS(6);t.Y8G("theme",Ut.theme)("mode",Ut.mode)("nzOpen",Ut.nzOpen)("position",Ut.position)("nzDisabled",Ut.nzDisabled)("isMenuInsideDropDown",Ut.isMenuInsideDropDown)("templateOutlet",Ye)("menuClass",Ut.nzMenuClassName)("@.disabled",!(null==Ut.noAnimation||!Ut.noAnimation.nzNoAnimation))("nzNoAnimation",null==Ut.noAnimation?null:Ut.noAnimation.nzNoAnimation)}}function jt(qt,On){if(1&qt){const Ut=t.RV6();t.DNE(0,en,1,10,"ng-template",5),t.bIt("positionChange",function(ue){t.eBV(Ut);const te=t.XpG();return t.Njj(te.onPositionChange(ue))})}if(2&qt){const Ut=t.XpG(),Ye=t.sdS(1);t.Y8G("cdkConnectedOverlayPositions",Ut.overlayPositions)("cdkConnectedOverlayOrigin",Ye)("cdkConnectedOverlayWidth",Ut.triggerWidth)("cdkConnectedOverlayOpen",Ut.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function Vt(qt,On){1&qt&&t.SdG(0,1)}const fn=["titleElement"],Hn=["nz-menu-group",""],zn=["*",[["","title",""]]],bt=["*","[title]"];function At(qt,On){if(1&qt&&(t.qex(0),t.EFF(1),t.bVm()),2&qt){const Ut=t.XpG();t.R7$(),t.JRh(Ut.nzTitle)}}function Et(qt,On){1&qt&&t.SdG(0,1)}const Ot=new t.nKC("NzIsInDropDownMenuToken"),Yt=new t.nKC("NzMenuServiceLocalToken");let Ue=(()=>{class qt{constructor(){this.descendantMenuItemClick$=new r.B,this.childMenuItemClick$=new r.B,this.theme$=new g.t("light"),this.mode$=new g.t("vertical"),this.inlineIndent$=new g.t(24),this.isChildSubMenuOpen$=new g.t(!1)}onDescendantMenuItemClick(Ut){this.descendantMenuItemClick$.next(Ut)}onChildMenuItemClick(Ut){this.childMenuItemClick$.next(Ut)}setMode(Ut){this.mode$.next(Ut)}setTheme(Ut){this.theme$.next(Ut)}setInlineIndent(Ut){this.inlineIndent$.next(Ut)}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)};static#t=this.\u0275prov=t.jDH({token:qt,factory:qt.\u0275fac})}return qt})(),Ae=(()=>{class qt{onChildMenuItemClick(Ut){this.childMenuItemClick$.next(Ut)}setOpenStateWithoutDebounce(Ut){this.isCurrentSubMenuOpen$.next(Ut)}setMouseEnterTitleOrOverlayState(Ut){this.isMouseEnterTitleOrOverlay$.next(Ut)}constructor(Ut,Ye,ue){this.nzHostSubmenuService=Ut,this.nzMenuService=Ye,this.isMenuInsideDropDown=ue,this.mode$=this.nzMenuService.mode$.pipe((0,G.T)(dt=>"inline"===dt?"inline":"vertical"===dt||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new g.t(!1),this.isChildSubMenuOpen$=new g.t(!1),this.isMouseEnterTitleOrOverlay$=new r.B,this.childMenuItemClick$=new r.B,this.destroy$=new r.B,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const te=this.childMenuItemClick$.pipe((0,L.Z)(()=>this.mode$),(0,B.p)(dt=>"inline"!==dt||this.isMenuInsideDropDown),(0,A.u)(!1)),q=(0,e.h)(this.isMouseEnterTitleOrOverlay$,te);(0,M.z)([this.isChildSubMenuOpen$,q]).pipe((0,G.T)(([dt,at])=>dt||at),(0,w.Z)(150),(0,I.F)(),(0,F.Q)(this.destroy$)).pipe((0,I.F)()).subscribe(dt=>{this.setOpenStateWithoutDebounce(dt),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(dt):this.nzMenuService.isChildSubMenuOpen$.next(dt)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.KVO(qt,12),t.KVO(Ue),t.KVO(Ot))};static#t=this.\u0275prov=t.jDH({token:qt,factory:qt.\u0275fac})}return qt})(),ie=(()=>{class qt{clickMenuItem(Ut){this.nzDisabled?(Ut.preventDefault(),Ut.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(Ut){this.nzSelected=Ut,this.selected$.next(Ut)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const Ut=this.hasActiveLinks();this.nzSelected!==Ut&&(this.nzSelected=Ut,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const Ut=this.isLinkActive(this.router);return this.routerLink&&Ut(this.routerLink)||this.listOfRouterLink.some(Ut)}isLinkActive(Ut){return Ye=>Ut.isActive(Ye.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(Ut,Ye,ue,te,q,Xe,dt){this.nzMenuService=Ut,this.cdr=Ye,this.nzSubmenuService=ue,this.isMenuInsideDropDown=te,this.directionality=q,this.routerLink=Xe,this.router=dt,this.destroy$=new r.B,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new r.B,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,dt&&this.router.events.pipe((0,F.Q)(this.destroy$),(0,B.p)(at=>at instanceof x.wF)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){(0,M.z)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Ut,Ye])=>{this.inlinePaddingLeft="inline"===Ut?this.level*Ye:null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,F.Q)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(Ut){Ut.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(Ue),t.rXU(t.gRc),t.rXU(Ae,8),t.rXU(Ot),t.rXU(J.dS,8),t.rXU(x.Wk,8),t.rXU(x.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-menu-item",""]],contentQueries:function(Ye,ue,te){if(1&Ye&&t.wni(te,x.Wk,5),2&Ye){let q;t.mGM(q=t.lsd())&&(ue.listOfRouterLink=q)}},hostVars:20,hostBindings:function(Ye,ue){1&Ye&&t.bIt("click",function(q){return ue.clickMenuItem(q)}),2&Ye&&(t.xc7("padding-left","rtl"===ue.dir?null:ue.nzPaddingLeft||ue.inlinePaddingLeft,"px")("padding-right","rtl"===ue.dir?ue.nzPaddingLeft||ue.inlinePaddingLeft:null,"px"),t.AVh("ant-dropdown-menu-item",ue.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",ue.isMenuInsideDropDown&&ue.nzSelected)("ant-dropdown-menu-item-danger",ue.isMenuInsideDropDown&&ue.nzDanger)("ant-dropdown-menu-item-disabled",ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-menu-item",!ue.isMenuInsideDropDown)("ant-menu-item-selected",!ue.isMenuInsideDropDown&&ue.nzSelected)("ant-menu-item-danger",!ue.isMenuInsideDropDown&&ue.nzDanger)("ant-menu-item-disabled",!ue.isMenuInsideDropDown&&ue.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",ne.cj],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzSelected:[2,"nzSelected","nzSelected",t.L39],nzDanger:[2,"nzDanger","nzDanger",t.L39],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",t.L39],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",t.L39]},exportAs:["nzMenuItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:Z,ngContentSelectors:pe,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(Ye,ue){1&Ye&&(t.NAR(),t.j41(0,"span",0),t.SdG(1),t.k0s())},encapsulation:2,changeDetection:0})}return qt})(),_e=(()=>{class qt{constructor(Ut,Ye,ue){this.elementRef=Ut,this.renderer=Ye,this.directionality=ue,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new r.B}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut})}ngOnChanges(Ut){const{mode:Ye,nzOpen:ue,menuClass:te}=Ut;(Ye||ue)&&this.calcMotionState(),te&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(q=>!!q).forEach(q=>{this.renderer.removeClass(this.elementRef.nativeElement,q)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(q=>!!q).forEach(q=>{this.renderer.addClass(this.elementRef.nativeElement,q)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(Ye,ue){2&Ye&&(t.zvX("@collapseMotion",ue.expandState),t.AVh("ant-menu-rtl","rtl"===ue.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:E,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(Ye,ue){1&Ye&&t.DNE(0,S,0,0,"ng-template",0),2&Ye&&t.Y8G("ngTemplateOutlet",ue.templateOutlet)},dependencies:[we.T3],encapsulation:2,data:{animation:[me.GE]},changeDetection:0})}return qt})(),oe=(()=>{class qt{constructor(Ut){this.directionality=Ut,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 t.bkB,this.expandState="collapsed",this.dir="ltr",this.destroy$=new r.B}setMouseState(Ut){this.nzDisabled||this.subMenuMouseState.next(Ut)}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,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut})}ngOnChanges(Ut){const{mode:Ye,nzOpen:ue}=Ut;(Ye||ue)&&this.calcMotionState()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(Ye,ue){1&Ye&&t.bIt("mouseenter",function(){return ue.setMouseState(!0)})("mouseleave",function(){return ue.setMouseState(!1)}),2&Ye&&(t.zvX("@slideMotion",ue.expandState)("@zoomBigMotion",ue.expandState),t.AVh("ant-menu-light","light"===ue.theme)("ant-menu-dark","dark"===ue.theme)("ant-menu-submenu-placement-bottom","horizontal"===ue.mode)("ant-menu-submenu-placement-right","vertical"===ue.mode&&"right"===ue.position)("ant-menu-submenu-placement-left","vertical"===ue.mode&&"left"===ue.position)("ant-menu-submenu-rtl","rtl"===ue.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:R,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(Ye,ue){1&Ye&&(t.j41(0,"div",0),t.DNE(1,Y,0,0,"ng-template",1),t.k0s()),2&Ye&&(t.AVh("ant-dropdown-menu",ue.isMenuInsideDropDown)("ant-menu",!ue.isMenuInsideDropDown)("ant-dropdown-menu-vertical",ue.isMenuInsideDropDown)("ant-menu-vertical",!ue.isMenuInsideDropDown)("ant-dropdown-menu-sub",ue.isMenuInsideDropDown)("ant-menu-sub",!ue.isMenuInsideDropDown)("ant-menu-rtl","rtl"===ue.dir),t.Y8G("ngClass",ue.menuClass),t.R7$(),t.Y8G("ngTemplateOutlet",ue.templateOutlet))},dependencies:[we.YU,we.T3],encapsulation:2,data:{animation:[me.uX,me.U1]},changeDetection:0})}return qt})(),Fe=(()=>{class qt{constructor(Ut,Ye){this.cdr=Ut,this.directionality=Ye,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new t.bkB,this.subMenuMouseState=new t.bkB,this.dir="ltr",this.destroy$=new r.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(Ut){this.nzDisabled||this.subMenuMouseState.next(Ut)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.gRc),t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(Ye,ue){1&Ye&&t.bIt("click",function(){return ue.clickTitle()})("mouseenter",function(){return ue.setMouseState(!0)})("mouseleave",function(){return ue.setMouseState(!1)}),2&Ye&&(t.xc7("padding-left","rtl"===ue.dir?null:ue.paddingLeft,"px")("padding-right","rtl"===ue.dir?ue.paddingLeft:null,"px"),t.AVh("ant-dropdown-menu-submenu-title",ue.isMenuInsideDropDown)("ant-menu-submenu-title",!ue.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],standalone:!0,features:[t.aNF],attrs:se,ngContentSelectors:pe,decls:5,vars:3,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(Ye,ue){1&Ye&&(t.NAR(),t.DNE(0,Be,1,1,"span",0)(1,Pt,3,1,"ng-container",1),t.SdG(2),t.DNE(3,Le,3,1,"span",2)(4,zt,1,0,"span",3)),2&Ye&&(t.vxM(ue.nzIcon?0:-1),t.R7$(),t.Y8G("nzStringTemplateOutlet",ue.nzTitle),t.R7$(2),t.vxM(ue.isMenuInsideDropDown?3:4))},dependencies:[H.Y3,H.Dn,de.C,de.m],encapsulation:2,changeDetection:0})}return qt})();const et=[he.pn.rightTop,he.pn.right,he.pn.rightBottom,he.pn.leftTop,he.pn.left,he.pn.leftBottom],ut=[he.pn.bottomLeft,he.pn.bottomRight,he.pn.topRight,he.pn.topLeft];let Kt=(()=>{class qt{setOpenStateWithoutDebounce(Ut){this.nzSubmenuService.setOpenStateWithoutDebounce(Ut)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(Ut){this.isActive=Ut,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(Ut)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&"bottomLeft"===this.nzPlacement&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(Ut){const Ye=(0,he.jj)(Ut);"rightTop"===Ye||"rightBottom"===Ye||"right"===Ye?this.position="right":("leftTop"===Ye||"leftBottom"===Ye||"left"===Ye)&&(this.position="left")}constructor(Ut,Ye,ue,te,q,Xe,dt){this.nzMenuService=Ut,this.cdr=Ye,this.nzSubmenuService=ue,this.platform=te,this.isMenuInsideDropDown=q,this.directionality=Xe,this.noAnimation=dt,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new t.bkB,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new r.B,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=et,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}ngOnInit(){this.nzMenuService.theme$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.theme=Ut,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.mode=Ut,"horizontal"===Ut?this.overlayPositions=[he.pn[this.nzPlacement],...ut]:"vertical"===Ut&&(this.overlayPositions=et),this.cdr.markForCheck()}),(0,M.z)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Ut,Ye])=>{this.inlinePaddingLeft="inline"===Ut?this.level*Ye:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.isActive=Ut,Ut!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=Ut,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const Ut=this.listOfNzMenuItemDirective,Ye=Ut.changes,ue=(0,e.h)(Ye,...Ut.map(te=>te.selected$));Ye.pipe((0,X.Z)(Ut),(0,V.n)(()=>ue),(0,X.Z)(!0),(0,G.T)(()=>Ut.some(te=>te.nzSelected)),(0,F.Q)(this.destroy$)).subscribe(te=>{this.isSelected=te,this.cdr.markForCheck()})}ngOnChanges(Ut){const{nzOpen:Ye}=Ut;Ye&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(Ue),t.rXU(t.gRc),t.rXU(Ae),t.rXU(z.OD),t.rXU(Ot),t.rXU(J.dS,8),t.rXU(Oe.z,9))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu",""]],contentQueries:function(Ye,ue,te){if(1&Ye&&(t.wni(te,qt,5),t.wni(te,ie,5)),2&Ye){let q;t.mGM(q=t.lsd())&&(ue.listOfNzSubMenuComponent=q),t.mGM(q=t.lsd())&&(ue.listOfNzMenuItemDirective=q)}},viewQuery:function(Ye,ue){if(1&Ye&&t.GBs(be.$Q,7,t.aKT),2&Ye){let te;t.mGM(te=t.lsd())&&(ue.cdkOverlayOrigin=te.first)}},hostVars:34,hostBindings:function(Ye,ue){2&Ye&&t.AVh("ant-dropdown-menu-submenu",ue.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-dropdown-menu-submenu-open",ue.isMenuInsideDropDown&&ue.nzOpen)("ant-dropdown-menu-submenu-selected",ue.isMenuInsideDropDown&&ue.isSelected)("ant-dropdown-menu-submenu-vertical",ue.isMenuInsideDropDown&&"vertical"===ue.mode)("ant-dropdown-menu-submenu-horizontal",ue.isMenuInsideDropDown&&"horizontal"===ue.mode)("ant-dropdown-menu-submenu-inline",ue.isMenuInsideDropDown&&"inline"===ue.mode)("ant-dropdown-menu-submenu-active",ue.isMenuInsideDropDown&&ue.isActive)("ant-menu-submenu",!ue.isMenuInsideDropDown)("ant-menu-submenu-disabled",!ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-menu-submenu-open",!ue.isMenuInsideDropDown&&ue.nzOpen)("ant-menu-submenu-selected",!ue.isMenuInsideDropDown&&ue.isSelected)("ant-menu-submenu-vertical",!ue.isMenuInsideDropDown&&"vertical"===ue.mode)("ant-menu-submenu-horizontal",!ue.isMenuInsideDropDown&&"horizontal"===ue.mode)("ant-menu-submenu-inline",!ue.isMenuInsideDropDown&&"inline"===ue.mode)("ant-menu-submenu-active",!ue.isMenuInsideDropDown&&ue.isActive)("ant-menu-submenu-rtl","rtl"===ue.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:[2,"nzOpen","nzOpen",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],standalone:!0,features:[t.Jv_([Ae]),t.GFd,t.OA$,t.aNF],attrs:xt,ngContentSelectors:Ct,decls:7,vars:8,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation"]],template:function(Ye,ue){if(1&Ye){const te=t.RV6();t.NAR(st),t.j41(0,"div",2,0),t.bIt("subMenuMouseState",function(Xe){return t.eBV(te),t.Njj(ue.setMouseEnterState(Xe))})("toggleSubMenu",function(){return t.eBV(te),t.Njj(ue.toggleSubMenu())}),t.DNE(2,It,1,0),t.k0s(),t.DNE(3,Tt,1,6,"div",3)(4,jt,1,5,null,4)(5,Vt,1,0,"ng-template",null,1,t.C5r)}2&Ye&&(t.Y8G("nzIcon",ue.nzIcon)("nzTitle",ue.nzTitle)("mode",ue.mode)("nzDisabled",ue.nzDisabled)("isMenuInsideDropDown",ue.isMenuInsideDropDown)("paddingLeft",ue.nzPaddingLeft||ue.inlinePaddingLeft),t.R7$(2),t.vxM(ue.nzTitle?-1:2),t.R7$(),t.vxM("inline"===ue.mode?3:4))},dependencies:[Fe,_e,Oe.z,oe,be.z_,be.WB,be.$Q],encapsulation:2,changeDetection:0})}return qt})();function cn(){const qt=(0,t.WQX)(Ue,{skipSelf:!0,optional:!0}),On=(0,t.WQX)(Yt);return qt??On}function Tn(){return(0,t.WQX)(Ot,{skipSelf:!0,optional:!0})??!1}let Wn=(()=>{class qt{setInlineCollapsed(Ut){this.nzInlineCollapsed=Ut,this.inlineCollapsed$.next(Ut)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(Ut=>Ut.nzOpen),this.listOfNzSubMenuComponent.forEach(Ut=>Ut.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(Ut=>Ut.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(Ut,Ye,ue,te){this.nzMenuService=Ut,this.isMenuInsideDropDown=Ye,this.cdr=ue,this.directionality=te,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new t.bkB,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new g.t(this.nzInlineCollapsed),this.mode$=new g.t(this.nzMode),this.destroy$=new r.B,this.listOfOpenedNzSubMenuComponent=[]}ngOnInit(){(0,M.z)([this.inlineCollapsed$,this.mode$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Ut,Ye])=>{this.actualMode=Ut?"vertical":Ye,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.nzClick.emit(Ut),this.nzSelectable&&!Ut.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(Ye=>Ye.setSelectedState(Ye===Ut))}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,F.Q)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(Ut){const{nzInlineCollapsed:Ye,nzInlineIndent:ue,nzTheme:te,nzMode:q}=Ut;Ye&&this.inlineCollapsed$.next(this.nzInlineCollapsed),ue&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),te&&this.nzMenuService.setTheme(this.nzTheme),q&&(this.mode$.next(this.nzMode),!Ut.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(Xe=>Xe.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(Ue),t.rXU(Ot),t.rXU(t.gRc),t.rXU(J.dS,8))};static#t=this.\u0275dir=t.FsC({type:qt,selectors:[["","nz-menu",""]],contentQueries:function(Ye,ue,te){if(1&Ye&&(t.wni(te,ie,5),t.wni(te,Kt,5)),2&Ye){let q;t.mGM(q=t.lsd())&&(ue.listOfNzMenuItemDirective=q),t.mGM(q=t.lsd())&&(ue.listOfNzSubMenuComponent=q)}},hostVars:34,hostBindings:function(Ye,ue){2&Ye&&t.AVh("ant-dropdown-menu",ue.isMenuInsideDropDown)("ant-dropdown-menu-root",ue.isMenuInsideDropDown)("ant-dropdown-menu-light",ue.isMenuInsideDropDown&&"light"===ue.nzTheme)("ant-dropdown-menu-dark",ue.isMenuInsideDropDown&&"dark"===ue.nzTheme)("ant-dropdown-menu-vertical",ue.isMenuInsideDropDown&&"vertical"===ue.actualMode)("ant-dropdown-menu-horizontal",ue.isMenuInsideDropDown&&"horizontal"===ue.actualMode)("ant-dropdown-menu-inline",ue.isMenuInsideDropDown&&"inline"===ue.actualMode)("ant-dropdown-menu-inline-collapsed",ue.isMenuInsideDropDown&&ue.nzInlineCollapsed)("ant-menu",!ue.isMenuInsideDropDown)("ant-menu-root",!ue.isMenuInsideDropDown)("ant-menu-light",!ue.isMenuInsideDropDown&&"light"===ue.nzTheme)("ant-menu-dark",!ue.isMenuInsideDropDown&&"dark"===ue.nzTheme)("ant-menu-vertical",!ue.isMenuInsideDropDown&&"vertical"===ue.actualMode)("ant-menu-horizontal",!ue.isMenuInsideDropDown&&"horizontal"===ue.actualMode)("ant-menu-inline",!ue.isMenuInsideDropDown&&"inline"===ue.actualMode)("ant-menu-inline-collapsed",!ue.isMenuInsideDropDown&&ue.nzInlineCollapsed)("ant-menu-rtl","rtl"===ue.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",t.L39],nzSelectable:[2,"nzSelectable","nzSelectable",t.L39]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],standalone:!0,features:[t.Jv_([{provide:Yt,useClass:Ue},{provide:Ue,useFactory:cn},{provide:Ot,useFactory:Tn}]),t.GFd,t.OA$]})}return qt})();function kn(){return(0,t.WQX)(Ot,{optional:!0,skipSelf:!0})??!1}let Vn=(()=>{class qt{constructor(Ut,Ye,ue){this.elementRef=Ut,this.renderer=Ye,this.isMenuInsideDropDown=ue,this.renderer.addClass(Ut.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const Ut=this.titleElement.nativeElement.nextElementSibling;Ut&&this.renderer.addClass(Ut,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(Ot))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-menu-group",""]],viewQuery:function(Ye,ue){if(1&Ye&&t.GBs(fn,5),2&Ye){let te;t.mGM(te=t.lsd())&&(ue.titleElement=te.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],standalone:!0,features:[t.Jv_([{provide:Ot,useFactory:kn}]),t.aNF],attrs:Hn,ngContentSelectors:bt,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(Ye,ue){1&Ye&&(t.NAR(zn),t.j41(0,"div",null,0),t.DNE(2,At,2,1,"ng-container",1)(3,Et,1,0),t.k0s(),t.SdG(4)),2&Ye&&(t.AVh("ant-menu-item-group-title",!ue.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",ue.isMenuInsideDropDown),t.R7$(2),t.Y8G("nzStringTemplateOutlet",ue.nzTitle),t.R7$(),t.vxM(ue.nzTitle?-1:3))},dependencies:[de.C,de.m],encapsulation:2,changeDetection:0})}return qt})(),Un=(()=>{class qt{constructor(Ut){this.elementRef=Ut}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:qt,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"],standalone:!0})}return qt})(),dn=(()=>{class qt{static#e=this.\u0275fac=function(Ye){return new(Ye||qt)};static#t=this.\u0275mod=t.$C({type:qt});static#n=this.\u0275inj=t.G2t({imports:[Kt,Vn,Fe]})}return qt})()},2096:(Rt,De,c)=>{c.d(De,{A9:()=>q,F2:()=>at,J9:()=>ue,N_:()=>te,U6:()=>St,or:()=>ut});var t=c(4523),r=c(7987),g=c(6939),e=c(3953),M=c(1413),G=c(3726),L=c(9030),B=c(6977),A=c(5964),w=c(6697),I=c(9172),F=c(3451),X=c(5463),V=c(317),x=c(177),ne=c(513),J=c(7806),be=c(5103),Oe=c(3384),he=c(9969),we=c(4500),me=c(851),de=c(6042),H=c(1377),z=c(6389),Z=c(5930),pe=c(1391),E=c(7336),S=c(8203);const R=["nz-modal-close",""];function Y(Ee,Je){if(1&Ee&&(e.qex(0),e.nrm(1,"span",2),e.bVm()),2&Ee){const re=Je.$implicit;e.R7$(),e.Y8G("nzType",re)}}const se=["modalElement"];function Be(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCloseClick())}),e.k0s()}}function Pt(Ee,Je){if(1&Ee&&(e.qex(0),e.nrm(1,"span",12),e.bVm()),2&Ee){const re=e.XpG();e.R7$(),e.Y8G("innerHTML",re.config.nzTitle,e.npT)}}function vt(Ee,Je){}function wt(Ee,Je){if(1&Ee&&e.nrm(0,"div",12),2&Ee){const re=e.XpG();e.Y8G("innerHTML",re.config.nzContent,e.npT)}}function Le(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCancel())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG();e.Y8G("nzLoading",re.config.nzCancelLoading)("disabled",re.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzCancelText||re.locale.cancelText," ")}}function zt(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",18),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onOk())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG();e.Y8G("nzType",re.config.nzOkType)("nzLoading",re.config.nzOkLoading)("disabled",re.config.nzOkDisabled)("nzDanger",re.config.nzOkDanger),e.BMQ("cdkFocusInitial","ok"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzOkText||re.locale.okText," ")}}const xt=["nz-modal-footer",""],st=(Ee,Je)=>({$implicit:Ee,modalRef:Je});function Ct(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",3),e.bIt("click",function(){const gt=e.eBV(re).$implicit,Ke=e.XpG(4);return e.Njj(Ke.onButtonClick(gt))}),e.EFF(1),e.k0s()}if(2&Ee){const re=Je.$implicit,ze=e.XpG(4);e.Y8G("hidden",!ze.getButtonCallableProp(re,"show"))("nzLoading",ze.getButtonCallableProp(re,"loading"))("disabled",ze.getButtonCallableProp(re,"disabled"))("nzType",re.type)("nzDanger",re.danger)("nzShape",re.shape)("nzSize",re.size)("nzGhost",re.ghost),e.R7$(),e.SpI(" ",re.label," ")}}function It(Ee,Je){if(1&Ee&&e.Z7z(0,Ct,2,9,"button",2,e.fX1),2&Ee){const re=e.XpG(3);e.Dyx(re.buttons)}}function Tt(Ee,Je){if(1&Ee&&e.nrm(0,"div",1),2&Ee){const re=e.XpG(3);e.Y8G("innerHTML",re.config.nzFooter,e.npT)}}function en(Ee,Je){if(1&Ee&&(e.qex(0),e.DNE(1,It,2,0)(2,Tt,1,1,"div",1),e.bVm()),2&Ee){const re=e.XpG(2);e.R7$(),e.vxM(re.buttonsFooter?1:2)}}function jt(Ee,Je){if(1&Ee&&e.DNE(0,en,3,1,"ng-container",0),2&Ee){const re=e.XpG();e.Y8G("nzStringTemplateOutlet",re.config.nzFooter)("nzStringTemplateOutletContext",e.l_i(2,st,re.config.nzData,re.modalRef))}}function Vt(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(re);const gt=e.XpG(2);return e.Njj(gt.onCancel())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG(2);e.Y8G("nzLoading",re.config.nzCancelLoading)("disabled",re.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzCancelText||re.locale.cancelText," ")}}function fn(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(re);const gt=e.XpG(2);return e.Njj(gt.onOk())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG(2);e.Y8G("nzType",re.config.nzOkType)("nzDanger",re.config.nzOkDanger)("nzLoading",re.config.nzOkLoading)("disabled",re.config.nzOkDisabled),e.BMQ("cdkFocusInitial","ok"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzOkText||re.locale.okText," ")}}function Hn(Ee,Je){if(1&Ee&&e.DNE(0,Vt,2,4,"button",4)(1,fn,2,6,"button",5),2&Ee){const re=e.XpG();e.vxM(null!==re.config.nzCancelText?0:-1),e.R7$(),e.vxM(null!==re.config.nzOkText?1:-1)}}const zn=["nz-modal-title",""];function bt(Ee,Je){if(1&Ee&&(e.qex(0),e.nrm(1,"div",2),e.bVm()),2&Ee){const re=e.XpG();e.R7$(),e.Y8G("innerHTML",re.config.nzTitle,e.npT)}}function At(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCloseClick())}),e.k0s()}}function Et(Ee,Je){if(1&Ee&&e.nrm(0,"div",10),2&Ee){const re=e.XpG();e.xc7("cursor",re.config.nzDraggable?"move":"auto")}}function Ot(Ee,Je){}function Yt(Ee,Je){if(1&Ee&&e.nrm(0,"div",7),2&Ee){const re=e.XpG();e.Y8G("innerHTML",re.config.nzContent,e.npT)}}function Ue(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"div",11),e.bIt("cancelTriggered",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCloseClick())})("okTriggered",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onOkClick())}),e.k0s()}if(2&Ee){const re=e.XpG();e.Y8G("modalRef",re.modalRef)}}const Ae=()=>{};class ie{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzDraggable=!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=Ae,this.nzOnOk=Ae,this.nzIconType="question-circle"}}const Fe="ant-modal-mask",et="modal",ut=new e.nKC("NZ_MODAL_DATA"),Kt={modalContainer:(0,he.hZ)("modalContainer",[(0,he.wk)("void, exit",(0,he.iF)({})),(0,he.wk)("enter",(0,he.iF)({})),(0,he.kY)("* => enter",(0,he.i0)(".24s",(0,he.iF)({}))),(0,he.kY)("* => void, * => exit",(0,he.i0)(".2s",(0,he.iF)({})))])};let cn=(()=>{class Ee{constructor(re){this.config=re}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ie))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],standalone:!0,features:[e.aNF],attrs:R,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(ze,gt){1&ze&&(e.j41(0,"span",0),e.DNE(1,Y,2,1,"ng-container",1),e.k0s()),2&ze&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",gt.config.nzCloseIcon))},dependencies:[be.Y3,be.Dn,J.C,J.m],encapsulation:2,changeDetection:0})}return Ee})();function Wn(Ee,Je,re){return typeof Ee>"u"?typeof Je>"u"?re:Je:Ee}function kn(Ee){const{nzCentered:Je,nzMask:re,nzMaskClosable:ze,nzClosable:gt,nzOkLoading:Ke,nzOkDisabled:Pe,nzCancelDisabled:Re,nzCancelLoading:$,nzKeyboard:ce,nzNoAnimation:N,nzDraggable:ke,nzContent:ve,nzFooter:K,nzZIndex:U,nzWidth:ge,nzWrapClassName:qe,nzClassName:rt,nzStyle:Ft,nzTitle:on,nzCloseIcon:Cn,nzMaskStyle:Zn,nzBodyStyle:jn,nzOkText:Gn,nzCancelText:zi,nzOkType:Oi,nzOkDanger:lo,nzIconType:Zi,nzModalType:Bo,nzOnOk:bo,nzOnCancel:Mr,nzAfterOpen:rr,nzAfterClose:lt,nzCloseOnNavigation:Lt,nzAutofocus:$t}=Ee;return{nzCentered:Je,nzMask:re,nzMaskClosable:ze,nzDraggable:ke,nzClosable:gt,nzOkLoading:Ke,nzOkDisabled:Pe,nzCancelDisabled:Re,nzCancelLoading:$,nzKeyboard:ce,nzNoAnimation:N,nzContent:ve,nzFooter:K,nzZIndex:U,nzWidth:ge,nzWrapClassName:qe,nzClassName:rt,nzStyle:Ft,nzTitle:on,nzCloseIcon:Cn,nzMaskStyle:Zn,nzBodyStyle:jn,nzOkText:Gn,nzCancelText:zi,nzOkType:Oi,nzOkDanger:lo,nzIconType:Zi,nzModalType:Bo,nzOnOk:bo,nzOnCancel:Mr,nzAfterOpen:rr,nzAfterClose:lt,nzCloseOnNavigation:Lt,nzAutofocus:$t}}function Vn(){throw Error("Attempting to attach modal content after content is already attached")}let Un=(()=>{class Ee extends g.lb{get showMask(){const re=this.nzConfigService.getConfigForComponent(et)||{};return!!Wn(this.config.nzMask,re.nzMask,!0)}get maskClosable(){const re=this.nzConfigService.getConfigForComponent(et)||{};return!!Wn(this.config.nzMaskClosable,re.nzMaskClosable,!0)}constructor(re,ze,gt,Ke,Pe,Re,$,ce,N,ke){super(),this.ngZone=re,this.host=ze,this.focusTrapFactory=gt,this.cdr=Ke,this.render=Pe,this.overlayRef=Re,this.nzConfigService=$,this.config=ce,this.animationType=ke,this.animationStateChanged=new e.bkB,this.containerClick=new e.bkB,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new M.B,this.document=N,this.dir=Re.getDirection(),this.isStringContent="string"==typeof ce.nzContent,this.nzConfigService.getConfigChangeEventForComponent(et).pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}onContainerClick(re){re.target===re.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(re){return this.portalOutlet.hasAttached()&&Vn(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(re)}attachTemplatePortal(re){return this.portalOutlet.hasAttached()&&Vn(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(re)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const re=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const ze=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),gt=(0,V.Mk)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(re,"transform-origin",`${gt.left+ze.width/2-re.offsetLeft}px ${gt.top+ze.height/2-re.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,we.j)(()=>this.host.nativeElement.focus())))}trapFocus(){const re=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const ze=this.document.activeElement;ze!==re&&!re.contains(ze)&&re.focus()}}restoreFocus(){const re=this.elementFocusedBeforeModalWasOpened;if(re&&"function"==typeof re.focus){const ze=this.document.activeElement,gt=this.host.nativeElement;(!ze||ze===this.document.body||ze===gt||gt.contains(ze))&&re.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const re=this.modalElementRef.nativeElement,ze=this.overlayRef.backdropElement;re.classList.add("ant-zoom-enter"),re.classList.add("ant-zoom-enter-active"),ze&&(ze.classList.add("ant-fade-enter"),ze.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const re=this.modalElementRef.nativeElement;re.classList.add("ant-zoom-leave"),re.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(re=!1){const ze=this.overlayRef.backdropElement;if(ze){if(this.animationDisabled()||re)return void ze.classList.remove(Fe);ze.classList.add("ant-fade-leave"),ze.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const re=this.overlayRef.backdropElement,ze=this.modalElementRef.nativeElement;re&&(re.classList.remove("ant-fade-enter"),re.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 re=this.overlayRef.backdropElement;re&&(0,V.n9)(this.config.nzZIndex)&&this.render.setStyle(re,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const re=this.overlayRef.backdropElement;if(re&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(gt=>{this.render.removeStyle(re,gt)}),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(gt=>{this.render.setStyle(re,gt,ze[gt])}),this.oldMaskStyle=ze}}updateMaskClassname(){const re=this.overlayRef.backdropElement;re&&(this.showMask?re.classList.add(Fe):re.classList.remove(Fe))}onAnimationDone(re){"enter"===re.toState?this.trapFocus():"exit"===re.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(re)}onAnimationStart(re){"enter"===re.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===re.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(re)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(!0),this.destroy$.complete()}setupMouseListeners(re){this.ngZone.runOutsideAngular(()=>{(0,G.R)(this.host.nativeElement,"mouseup").pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,G.R)(re.nativeElement,"mousedown").pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}static#e=this.\u0275fac=function(ze){e.QTQ()};static#t=this.\u0275dir=e.FsC({type:Ee,features:[e.Vt3]})}return Ee})(),dn=(()=>{class Ee extends Un{constructor(re,ze,gt,Ke,Pe,Re,$,ce,N,ke,ve){super(re,gt,Ke,Pe,Re,$,ce,N,ke,ve),this.i18n=ze,this.config=N,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.SKi),e.rXU(H.Og),e.rXU(e.aKT),e.rXU(me.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(r.yY),e.rXU(de.yx),e.rXU(ie),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["nz-modal-confirm-container"]],viewQuery:function(ze,gt){if(1&ze&&(e.GBs(g.I3,7),e.GBs(se,7)),2&ze){let Ke;e.mGM(Ke=e.lsd())&&(gt.portalOutlet=Ke.first),e.mGM(Ke=e.lsd())&&(gt.modalElementRef=Ke.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ze,gt){1&ze&&(e.Kam("@modalContainer.start",function(Pe){return gt.onAnimationStart(Pe)})("@modalContainer.done",function(Pe){return gt.onAnimationDone(Pe)}),e.bIt("click",function(Pe){return gt.onContainerClick(Pe)})),2&ze&&(e.zvX("@.disabled",gt.config.nzNoAnimation)("@modalContainer",gt.state),e.HbH(gt.config.nzWrapClassName?"ant-modal-wrap "+gt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",gt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===gt.dir)("ant-modal-centered",gt.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:17,vars:13,consts:[["modalElement",""],["role","document",1,"ant-modal",3,"ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],[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"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(ze,gt){1&ze&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,Be,1,0,"button",3),e.j41(5,"div",4)(6,"div",5)(7,"div",6),e.nrm(8,"span",7),e.j41(9,"span",8),e.DNE(10,Pt,2,1,"ng-container",9),e.k0s(),e.j41(11,"div",10),e.DNE(12,vt,0,0,"ng-template",11)(13,wt,1,1,"div",12),e.k0s()(),e.j41(14,"div",13),e.DNE(15,Le,2,4,"button",14)(16,zt,2,6,"button",15),e.k0s()()()()()),2&ze&&(e.xc7("width",e.bMT(2,11,null==gt.config?null:gt.config.nzWidth)),e.Y8G("ngClass",gt.config.nzClassName)("ngStyle",gt.config.nzStyle),e.R7$(4),e.vxM(gt.config.nzClosable?4:-1),e.R7$(),e.Y8G("ngStyle",gt.config.nzBodyStyle),e.R7$(3),e.Y8G("nzType",gt.config.nzIconType),e.R7$(2),e.Y8G("nzStringTemplateOutlet",gt.config.nzTitle),e.R7$(3),e.vxM(gt.isStringContent?13:-1),e.R7$(2),e.vxM(null!==gt.config.nzCancelText?15:-1),e.R7$(),e.vxM(null!==gt.config.nzOkText?16:-1))},dependencies:[x.YU,x.B3,Oe.Qe,Oe.Zu,be.Y3,be.Dn,cn,J.C,J.m,g.jc,g.I3,ne.Zw,ne.aO,z.c,Z.p],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return Ee})(),qt=(()=>{class Ee{constructor(re,ze){this.i18n=re,this.config=ze,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.destroy$=new M.B,Array.isArray(ze.nzFooter)&&(this.buttonsFooter=!0,this.buttons=ze.nzFooter.map(On)),this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(re,ze){const gt=re[ze],Ke=this.modalRef.getContentComponent();return"function"==typeof gt?gt.apply(re,Ke&&[Ke]):gt}onButtonClick(re){if(!this.getButtonCallableProp(re,"loading")){const gt=this.getButtonCallableProp(re,"onClick");re.autoLoading&&(0,V.yL)(gt)&&(re.loading=!0,gt.then(()=>re.loading=!1).catch(Ke=>{throw re.loading=!1,Ke}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(H.Og),e.rXU(ie))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],standalone:!0,features:[e.aNF],attrs:xt,decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(ze,gt){1&ze&&e.DNE(0,jt,1,5,"ng-container")(1,Hn,2,2),2&ze&&e.vxM(gt.config.nzFooter?0:1)},dependencies:[J.C,J.m,ne.Zw,ne.aO,z.c,Z.p],encapsulation:2})}return Ee})();function On(Ee){return{type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1,...Ee}}let Ut=(()=>{class Ee{constructor(re){this.config=re}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ie))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],standalone:!0,features:[e.aNF],attrs:zn,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(ze,gt){1&ze&&(e.j41(0,"div",0),e.DNE(1,bt,2,1,"ng-container",1),e.k0s()),2&ze&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",gt.config.nzTitle))},dependencies:[J.C,J.m],encapsulation:2,changeDetection:0})}return Ee})(),Ye=(()=>{class Ee extends Un{constructor(re,ze,gt,Ke,Pe,Re,$,ce,N,ke){super(re,ze,gt,Ke,Pe,Re,$,ce,N,ke),this.config=ce}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(me.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(r.yY),e.rXU(de.yx),e.rXU(ie),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["nz-modal-container"]],viewQuery:function(ze,gt){if(1&ze&&(e.GBs(g.I3,7),e.GBs(se,7)),2&ze){let Ke;e.mGM(Ke=e.lsd())&&(gt.portalOutlet=Ke.first),e.mGM(Ke=e.lsd())&&(gt.modalElementRef=Ke.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ze,gt){1&ze&&(e.Kam("@modalContainer.start",function(Pe){return gt.onAnimationStart(Pe)})("@modalContainer.done",function(Pe){return gt.onAnimationDone(Pe)}),e.bIt("click",function(Pe){return gt.onContainerClick(Pe)})),2&ze&&(e.zvX("@.disabled",gt.config.nzNoAnimation)("@modalContainer",gt.state),e.HbH(gt.config.nzWrapClassName?"ant-modal-wrap "+gt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",gt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===gt.dir)("ant-modal-centered",gt.config.nzCentered))},exportAs:["nzModalContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:10,vars:12,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragDisabled","ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(ze,gt){1&ze&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,At,1,0,"button",3)(5,Et,1,2,"div",4),e.j41(6,"div",5),e.DNE(7,Ot,0,0,"ng-template",6)(8,Yt,1,1,"div",7),e.k0s(),e.DNE(9,Ue,1,1,"div",8),e.k0s()()),2&ze&&(e.xc7("width",e.bMT(2,10,null==gt.config?null:gt.config.nzWidth)),e.Y8G("cdkDragDisabled",!gt.config.nzDraggable)("ngClass",gt.config.nzClassName)("ngStyle",gt.config.nzStyle),e.R7$(4),e.vxM(gt.config.nzClosable?4:-1),e.R7$(),e.vxM(gt.config.nzTitle?5:-1),e.R7$(),e.Y8G("ngStyle",gt.config.nzBodyStyle),e.R7$(2),e.vxM(gt.isStringContent?8:-1),e.R7$(),e.vxM(null!==gt.config.nzFooter?9:-1))},dependencies:[x.YU,x.B3,cn,Ut,g.jc,g.I3,qt,Oe.Qe,Oe.Zu,pe.T1,pe.Fb],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return Ee})();class ue{constructor(Je,re,ze){this.overlayRef=Je,this.config=re,this.containerInstance=ze,this.componentInstance=null,this.componentRef=null,this.state=0,this.afterClose=new M.B,this.afterOpen=new M.B,this.destroy$=new M.B,ze.animationStateChanged.pipe((0,A.p)(gt=>"done"===gt.phaseName&&"enter"===gt.toState),(0,w.s)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),re.nzAfterOpen instanceof e.bkB&&re.nzAfterOpen.emit()}),ze.animationStateChanged.pipe((0,A.p)(gt=>"done"===gt.phaseName&&"exit"===gt.toState),(0,w.s)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),ze.containerClick.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),Je.keydownEvents().pipe((0,A.p)(gt=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&>.keyCode===E._f&&!(0,E.rp)(gt))).subscribe(gt=>{gt.preventDefault(),this.trigger("cancel")}),ze.cancelTriggered.pipe((0,B.Q)(this.destroy$)).subscribe(()=>this.trigger("cancel")),ze.okTriggered.pipe((0,B.Q)(this.destroy$)).subscribe(()=>this.trigger("ok")),Je.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),re.nzAfterClose instanceof e.bkB&&re.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(Je){this.close(Je)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(Je){0===this.state&&(this.result=Je,this.containerInstance.animationStateChanged.pipe((0,A.p)(re=>"start"===re.phaseName),(0,w.s)(1)).subscribe(re=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},re.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(Je){Object.assign(this.config,Je),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(Je){var re=this;return(0,t.A)(function*(){if(1===re.state)return;const ze={ok:re.config.nzOnOk,cancel:re.config.nzOnCancel}[Je],gt={ok:"nzOkLoading",cancel:"nzCancelLoading"}[Je];if(!re.config[gt])if(ze instanceof e.bkB)ze.emit(re.getContentComponent());else if("function"==typeof ze){const Pe=ze(re.getContentComponent());if((0,V.yL)(Pe)){re.config[gt]=!0;let Re=!1;try{Re=yield Pe}finally{re.config[gt]=!1,re.closeWhitResult(Re)}}else re.closeWhitResult(Pe)}})()}closeWhitResult(Je){!1!==Je&&this.close(Je)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let te=(()=>{class Ee{get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const re=this.parentModal;return re?re._afterAllClosed:this.afterAllClosedAtThisLevel}constructor(re,ze,gt,Ke,Pe){this.overlay=re,this.injector=ze,this.nzConfigService=gt,this.parentModal=Ke,this.directionality=Pe,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new M.B,this.afterAllClose=(0,L.v)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,I.Z)(void 0)))}create(re){return this.open(re.nzContent,re)}closeAll(){this.closeModals(this.openModals)}confirm(re={},ze="confirm"){return"nzFooter"in re&&(0,F.R8)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in re||(re.nzWidth=416),"nzMaskClosable"in re||(re.nzMaskClosable=!1),re.nzModalType="confirm",re.nzClassName=`ant-modal-confirm ant-modal-confirm-${ze} ${re.nzClassName||""}`,this.create(re)}info(re={}){return this.confirmFactory(re,"info")}success(re={}){return this.confirmFactory(re,"success")}error(re={}){return this.confirmFactory(re,"error")}warning(re={}){return this.confirmFactory(re,"warning")}open(re,ze){const gt=function Tn(Ee,Je){return{...Je,...Ee}}(ze||{},new ie),Ke=this.createOverlay(gt),Pe=this.attachModalContainer(Ke,gt),Re=this.attachModalContent(re,Pe,Ke,gt);return Pe.modalRef=Re,(0,X.G5)(Ke,ze?.nzZIndex),this.openModals.push(Re),Re.afterClose.subscribe(()=>this.removeOpenModal(Re)),Re}removeOpenModal(re){const ze=this.openModals.indexOf(re);ze>-1&&(this.openModals.splice(ze,1),this.openModals.length||this._afterAllClosed.next())}closeModals(re){let ze=re.length;for(;ze--;)re[ze].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(re){const ze=this.nzConfigService.getConfigForComponent(et)||{},gt=new r.rR({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Wn(re.nzCloseOnNavigation,ze.nzCloseOnNavigation,!0),direction:Wn(re.nzDirection,ze.nzDirection,this.directionality.value)});return Wn(re.nzMask,ze.nzMask,!0)&&(gt.backdropClass=Fe),this.overlay.create(gt)}attachModalContainer(re,ze){const Ke=e.zZn.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:r.yY,useValue:re},{provide:ie,useValue:ze}]}),Re=new g.A8("confirm"===ze.nzModalType?dn:Ye,ze.nzViewContainerRef,Ke);return re.attach(Re).instance}attachModalContent(re,ze,gt,Ke){const Pe=new ue(gt,Ke,ze);if(re instanceof e.C4Q)ze.attachTemplatePortal(new g.VA(re,null,{$implicit:Ke.nzData,modalRef:Pe}));else if((0,V.n9)(re)&&"string"!=typeof re){const Re=this.createInjector(Pe,Ke),$=ze.attachComponentPortal(new g.A8(re,Ke.nzViewContainerRef,Re));Pe.componentRef=$,Pe.componentInstance=$.instance}else ze.attachStringContent();return Pe}createInjector(re,ze){return e.zZn.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:ue,useValue:re},{provide:ut,useValue:ze.nzData}]})}confirmFactory(re={},ze){return"nzIconType"in re||(re.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[ze]),"nzCancelText"in re||(re.nzCancelText=null),this.confirm(re,ze)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.KVO(r.hJ),e.KVO(e.zZn),e.KVO(de.yx),e.KVO(Ee,12),e.KVO(S.dS,8))};static#t=this.\u0275prov=e.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})(),q=(()=>{class Ee{constructor(re){this.templateRef=re}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Ee,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"],standalone:!0})}return Ee})(),Xe=(()=>{class Ee{constructor(re,ze){this.nzModalRef=re,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ue,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Ee,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"],standalone:!0})}return Ee})(),dt=(()=>{class Ee{constructor(re,ze){this.nzModalRef=re,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ue,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Ee,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"],standalone:!0})}return Ee})(),at=(()=>{class Ee{set modalTitle(re){re&&this.setTitleWithTemplate(re)}set modalFooter(re){re&&this.setFooterWithTemplate(re)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(re,ze,gt){this.cdr=re,this.modal=ze,this.viewContainerRef=gt,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.nzDraggable=!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 e.bkB,this.nzOnCancel=new e.bkB,this.nzAfterOpen=new e.bkB,this.nzAfterClose=new e.bkB,this.nzVisibleChange=new e.bkB,this.modalRef=null,this.destroy$=new M.B}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const re=this.getConfig();this.modalRef=this.modal.create(re),this.modalRef.afterClose.asObservable().pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.close()})}}close(re){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(re),this.modalRef=null)}destroy(re){this.close(re)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(re){this.nzTitle=re,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(re){this.nzFooter=re,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const re=kn(this);return re.nzViewContainerRef=this.viewContainerRef,re.nzContent=this.nzContent||this.contentFromContentChild,re}ngOnChanges(re){const{nzVisible:ze,...gt}=re;Object.keys(gt).length&&this.modalRef&&this.modalRef.updateConfig(kn(this)),ze&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){this.modalRef?._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.gRc),e.rXU(te),e.rXU(e.c1b))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["nz-modal"]],contentQueries:function(ze,gt,Ke){if(1&ze&&(e.wni(Ke,dt,7,e.C4Q),e.wni(Ke,q,7,e.C4Q),e.wni(Ke,Xe,7,e.C4Q)),2&ze){let Pe;e.mGM(Pe=e.lsd())&&(gt.modalTitle=Pe.first),e.mGM(Pe=e.lsd())&&(gt.contentFromContentChild=Pe.first),e.mGM(Pe=e.lsd())&&(gt.modalFooter=Pe.first)}},inputs:{nzMask:[2,"nzMask","nzMask",e.L39],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",e.L39],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzClosable:[2,"nzClosable","nzClosable",e.L39],nzOkLoading:[2,"nzOkLoading","nzOkLoading",e.L39],nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",e.L39],nzCancelDisabled:[2,"nzCancelDisabled","nzCancelDisabled",e.L39],nzCancelLoading:[2,"nzCancelLoading","nzCancelLoading",e.L39],nzKeyboard:[2,"nzKeyboard","nzKeyboard",e.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",e.L39],nzCentered:[2,"nzCentered","nzCentered",e.L39],nzDraggable:[2,"nzDraggable","nzDraggable",e.L39],nzContent:"nzContent",nzFooter:"nzFooter",nzZIndex:[2,"nzZIndex","nzZIndex",e.Udg],nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:[2,"nzOkDanger","nzOkDanger",e.L39],nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],standalone:!0,features:[e.GFd,e.OA$,e.aNF],decls:0,vars:0,template:function(ze,gt){},encapsulation:2,changeDetection:0})}return Ee})(),St=(()=>{class Ee{static#e=this.\u0275fac=function(ze){return new(ze||Ee)};static#t=this.\u0275mod=e.$C({type:Ee});static#n=this.\u0275inj=e.G2t({providers:[te],imports:[cn,qt,Ut,Ye,dn]})}return Ee})()},3384:(Rt,De,c)=>{c.d(De,{Qe:()=>F,Zu:()=>G,ec:()=>A});var t=c(3953),r=c(317),g=c(345);class M{static#e=this.formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(V,x=0,ne="B",J){if(!((0,r.BV)(V)&&(0,r.BV)(x)&&x%1==0&&x>=0))return V;let be=V,Oe=ne;for(;"B"!==Oe;)be*=1024,Oe=M.formats[Oe].prev;if(J){const we=(0,r.nI)(M.calculateResult(M.formats[J],be),x);return M.formatResult(we,J)}for(const he in M.formats)if(M.formats.hasOwnProperty(he)){const we=M.formats[he];if(be{class X{transform(x,ne="px"){return"number"==typeof x?`${x}${ne}`:x}static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275pipe=t.EJ8({name:"nzToCssUnit",type:X,pure:!0,standalone:!0})}return X})(),A=(()=>{class X{constructor(x){this.sanitizer=x}transform(x,ne="html"){switch(ne){case"html":return this.sanitizer.bypassSecurityTrustHtml(x);case"style":return this.sanitizer.bypassSecurityTrustStyle(x);case"url":return this.sanitizer.bypassSecurityTrustUrl(x);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(x);default:throw new Error("Invalid safe type specified")}}static#e=this.\u0275fac=function(ne){return new(ne||X)(t.rXU(g.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzSanitizer",type:X,pure:!0,standalone:!0})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=t.$C({type:X});static#n=this.\u0275inj=t.G2t({})}return X})()},1236:(Rt,De,c)=>{c.d(De,{L_:()=>J,MC:()=>Oe});var t=c(4707),r=c(7987),g=c(177),e=c(3953),M=c(713),G=c(6042),L=c(6841),B=c(7806),A=c(5463),w=c(5154),I=c(8203);function F(he,we){if(1&he&&(e.qex(0),e.EFF(1),e.bVm()),2&he){const me=e.XpG(3);e.R7$(),e.JRh(me.nzTitle)}}function X(he,we){if(1&he&&(e.j41(0,"div",7),e.DNE(1,F,2,1,"ng-container",9),e.k0s()),2&he){const me=e.XpG(2);e.R7$(),e.Y8G("nzStringTemplateOutlet",me.nzTitle)}}function V(he,we){if(1&he&&(e.qex(0),e.EFF(1),e.bVm()),2&he){const me=e.XpG(2);e.R7$(),e.JRh(me.nzContent)}}function x(he,we){if(1&he&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.nrm(3,"span",5),e.k0s(),e.j41(4,"div",6)(5,"div"),e.DNE(6,X,2,1,"div",7),e.j41(7,"div",8),e.DNE(8,V,2,1,"ng-container",9),e.k0s()()()()()),2&he){const me=e.XpG();e.AVh("ant-popover-rtl","rtl"===me.dir),e.Y8G("ngClass",me._classMap)("ngStyle",me.nzOverlayStyle)("@.disabled",!(null==me.noAnimation||!me.noAnimation.nzNoAnimation))("nzNoAnimation",null==me.noAnimation?null:me.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),e.R7$(6),e.vxM(me.nzTitle?6:-1),e.R7$(2),e.Y8G("nzStringTemplateOutlet",me.nzContent)}}let J=(()=>{class he extends w.ME{getProxyPropertyMap(){return{nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop],...super.getProxyPropertyMap()}}constructor(){super(be),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new e.bkB}static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275dir=e.FsC({type:he,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(de,H){2&de&&e.AVh("ant-popover-open",H.visible)},inputs:{arrowPointAtCenter:[2,"nzPopoverArrowPointAtCenter","arrowPointAtCenter",e.L39],title:[0,"nzPopoverTitle","title"],content:[0,"nzPopoverContent","content"],directiveTitle:[0,"nz-popover","directiveTitle"],trigger:[0,"nzPopoverTrigger","trigger"],placement:[0,"nzPopoverPlacement","placement"],origin:[0,"nzPopoverOrigin","origin"],visible:[0,"nzPopoverVisible","visible"],mouseEnterDelay:[0,"nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopoverOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],standalone:!0,features:[e.GFd,e.Vt3]})}return(0,t.Cg)([(0,G.H4)()],he.prototype,"nzPopoverBackdrop",void 0),he})(),be=(()=>{class he extends w.VJ{constructor(me,de,H){super(me,de,H),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,w.t)(this.nzTitle)&&(0,w.t)(this.nzContent)}static#e=this.\u0275fac=function(de){return new(de||he)(e.rXU(e.gRc),e.rXU(I.dS,8),e.rXU(L.z,9))};static#t=this.\u0275cmp=e.VBU({type:he,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],standalone:!0,features:[e.Vt3,e.aNF],decls:2,vars:6,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[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"],[1,"ant-popover-title"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"]],template:function(de,H){if(1&de){const z=e.RV6();e.DNE(0,x,9,9,"ng-template",1,0,e.C5r),e.bIt("overlayOutsideClick",function(pe){return e.eBV(z),e.Njj(H.onClickOutside(pe))})("detach",function(){return e.eBV(z),e.Njj(H.hide())})("positionChange",function(pe){return e.eBV(z),e.Njj(H.onPositionChange(pe))})}2&de&&e.Y8G("cdkConnectedOverlayHasBackdrop",H.hasBackdrop)("cdkConnectedOverlayOrigin",H.origin)("cdkConnectedOverlayPositions",H._positions)("cdkConnectedOverlayOpen",H._visible)("cdkConnectedOverlayPush",H.cdkConnectedOverlayPush)("nzArrowPointAtCenter",H.nzArrowPointAtCenter)},dependencies:[r.z_,r.WB,A.$_,A.vT,g.YU,g.B3,L.z,B.C,B.m],encapsulation:2,data:{animation:[M.uX]},changeDetection:0})}return he})(),Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=e.$C({type:he});static#n=this.\u0275inj=e.G2t({imports:[be]})}return he})()},3190:(Rt,De,c)=>{c.d(De,{Sw:()=>ne,i3:()=>V,lx:()=>x});var t=c(3953),r=c(9417),g=c(2771),e=c(1413),M=c(3726),G=c(6977),L=c(8203),B=c(851),A=c(7891);const w=["*"],I=["inputElement"],F=["nz-radio",""];let X=(()=>{class J{constructor(){this.selected$=new g.m(1),this.touched$=new e.B,this.disabled$=new g.m(1),this.name$=new g.m(1)}touch(){this.touched$.next()}select(Oe){this.selected$.next(Oe)}setDisabled(Oe){this.disabled$.next(Oe)}setName(Oe){this.name$.next(Oe)}static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275prov=t.jDH({token:J,factory:J.\u0275fac})}return J})(),V=(()=>{class J{constructor(Oe,he,we){this.cdr=Oe,this.nzRadioService=he,this.directionality=we,this.value=null,this.destroy$=new e.B,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,G.Q)(this.destroy$)).subscribe(Oe=>{this.value!==Oe&&(this.value=Oe,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,G.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(Oe){const{nzDisabled:he,nzName:we}=Oe;he&&this.nzRadioService.setDisabled(this.nzDisabled),we&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(Oe){this.value=Oe,this.nzRadioService.select(Oe),this.cdr.markForCheck()}registerOnChange(Oe){this.onChange=Oe}registerOnTouched(Oe){this.onTouched=Oe}setDisabledState(Oe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#e=this.\u0275fac=function(he){return new(he||J)(t.rXU(t.gRc),t.rXU(X),t.rXU(L.dS,8))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(he,we){2&he&&t.AVh("ant-radio-group-large","large"===we.nzSize)("ant-radio-group-small","small"===we.nzSize)("ant-radio-group-solid","solid"===we.nzButtonStyle)("ant-radio-group-rtl","rtl"===we.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],standalone:!0,features:[t.Jv_([X,{provide:r.kq,useExisting:(0,t.Rfq)(()=>J),multi:!0}]),t.GFd,t.OA$,t.aNF],ngContentSelectors:w,decls:1,vars:0,template:function(he,we){1&he&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return J})(),x=(()=>{class J{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(Oe,he,we,me,de,H,z){this.ngZone=Oe,this.elementRef=he,this.cdr=we,this.focusMonitor=me,this.directionality=de,this.nzRadioService=H,this.nzFormStatusService=z,this.isNgModel=!1,this.destroy$=new e.B,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.isRadioButton=!1,this.dir="ltr"}setDisabledState(Oe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(Oe){this.isChecked=Oe,this.cdr.markForCheck()}registerOnChange(Oe){this.isNgModel=!0,this.onChange=Oe}registerOnTouched(Oe){this.onTouched=Oe}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.name=Oe,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{const he=this.isChecked;this.isChecked=this.nzValue===Oe,this.isNgModel&&he!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{Oe||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,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,M.R)(this.elementRef.nativeElement,"click").pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{Oe.stopPropagation(),Oe.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()})})})}static#e=this.\u0275fac=function(he){return new(he||J)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(B.FN),t.rXU(L.dS,8),t.rXU(X,8),t.rXU(A.is,8))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(he,we){if(1&he&&t.GBs(I,7),2&he){let me;t.mGM(me=t.lsd())&&(we.inputElement=me.first)}},hostVars:18,hostBindings:function(he,we){2&he&&t.AVh("ant-radio-wrapper-in-form-item",!!we.nzFormStatusService)("ant-radio-wrapper",!we.isRadioButton)("ant-radio-button-wrapper",we.isRadioButton)("ant-radio-wrapper-checked",we.isChecked&&!we.isRadioButton)("ant-radio-button-wrapper-checked",we.isChecked&&we.isRadioButton)("ant-radio-wrapper-disabled",we.nzDisabled&&!we.isRadioButton)("ant-radio-button-wrapper-disabled",we.nzDisabled&&we.isRadioButton)("ant-radio-wrapper-rtl",!we.isRadioButton&&"rtl"===we.dir)("ant-radio-button-wrapper-rtl",we.isRadioButton&&"rtl"===we.dir)},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],isRadioButton:[2,"nz-radio-button","isRadioButton",t.L39]},exportAs:["nzRadio"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>J),multi:!0}]),t.GFd,t.aNF],attrs:F,ngContentSelectors:w,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(he,we){1&he&&(t.NAR(),t.j41(0,"span"),t.nrm(1,"input",1,0)(3,"span"),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()),2&he&&(t.AVh("ant-radio",!we.isRadioButton)("ant-radio-checked",we.isChecked&&!we.isRadioButton)("ant-radio-disabled",we.nzDisabled&&!we.isRadioButton)("ant-radio-button",we.isRadioButton)("ant-radio-button-checked",we.isChecked&&we.isRadioButton)("ant-radio-button-disabled",we.nzDisabled&&we.isRadioButton),t.R7$(),t.AVh("ant-radio-input",!we.isRadioButton)("ant-radio-button-input",we.isRadioButton),t.Y8G("disabled",we.nzDisabled)("checked",we.isChecked),t.BMQ("autofocus",we.nzAutoFocus?"autofocus":null)("name",we.name),t.R7$(2),t.AVh("ant-radio-inner",!we.isRadioButton)("ant-radio-button-inner",we.isRadioButton))},encapsulation:2,changeDetection:0})}return J})(),ne=(()=>{class J{static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275mod=t.$C({type:J});static#n=this.\u0275inj=t.G2t({})}return J})()},1997:(Rt,De,c)=>{c.d(De,{DH:()=>ce,WI:()=>$,ld:()=>Qe,uX:()=>Xe});var t=c(3953),r=c(1413),g=c(3726),e=c(4412),M=c(7673),G=c(4572),L=c(7786),B=c(7987),A=c(946),w=c(177),I=c(5463),F=c(1672),X=c(7806),V=c(6977),x=c(9172),ne=c(3294),J=c(3993),be=c(6354),Oe=c(5558),he=c(1025),we=c(5103),me=c(4707),de=c(7336),H=c(6860),z=c(9417),Z=c(713),pe=c(6042),E=c(7891),S=c(6841),R=c(4500),Y=c(317),se=c(851),Be=c(8203);const Pt=["*"];function vt(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ve=t.XpG();t.R7$(),t.JRh(ve.nzLabel)}}function wt(N,ke){}function Le(N,ke){if(1&N&&t.DNE(0,wt,0,0,"ng-template",4),2&N){const ve=t.XpG();t.Y8G("ngTemplateOutlet",ve.template)}}function zt(N,ke){if(1&N&&t.EFF(0),2&N){const ve=t.XpG();t.JRh(ve.label)}}function xt(N,ke){1&N&&t.nrm(0,"span",7)}function st(N,ke){if(1&N&&(t.j41(0,"div",5),t.DNE(1,xt,1,0,"span",6),t.k0s()),2&N){const ve=t.XpG();t.R7$(),t.Y8G("ngIf",!ve.icon)("ngIfElse",ve.icon)}}function Ct(N,ke){if(1&N&&(t.j41(0,"div",4),t.nrm(1,"nz-embed-empty",5),t.k0s()),2&N){const ve=t.XpG();t.R7$(),t.Y8G("specificContent",ve.notFoundContent)}}function It(N,ke){if(1&N&&t.nrm(0,"nz-option-item-group",9),2&N){const ve=t.XpG().$implicit;t.Y8G("nzLabel",ve.groupLabel)}}function Tt(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-option-item",10),t.bIt("itemHover",function(U){t.eBV(ve);const ge=t.XpG(2);return t.Njj(ge.onItemHover(U))})("itemClick",function(U){t.eBV(ve);const ge=t.XpG(2);return t.Njj(ge.onItemClick(U))}),t.k0s()}if(2&N){const ve=t.XpG().$implicit,K=t.XpG();t.Y8G("icon",K.menuItemSelectedIcon)("customContent",ve.nzCustomContent)("template",ve.template)("grouped",!!ve.groupLabel)("disabled",ve.nzDisabled||K.isMaxLimitReached&&!K.listOfSelectedValue.includes(ve.nzValue))("showState","tags"===K.mode||"multiple"===K.mode)("title",ve.nzTitle)("label",ve.nzLabel)("compareWith",K.compareWith)("activatedValue",K.activatedValue)("listOfSelectedValue",K.listOfSelectedValue)("value",ve.nzValue)}}function en(N,ke){1&N&&(t.qex(0,6),t.DNE(1,It,1,1,"nz-option-item-group",7)(2,Tt,1,12,"nz-option-item",8),t.bVm()),2&N&&(t.Y8G("ngSwitch",ke.$implicit.type),t.R7$(),t.Y8G("ngSwitchCase","group"),t.R7$(),t.Y8G("ngSwitchCase","item"))}function jt(N,ke){}function Vt(N,ke){1&N&&t.SdG(0)}function fn(N,ke){if(1&N&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.bVm()),2&N){const ve=t.XpG();t.R7$(2),t.Lme("",ve.listOfValue.length," / ",ve.nzMaxMultipleCount,"")}}function Hn(N,ke){1&N&&t.nrm(0,"span",5)}function zn(N,ke){1&N&&t.nrm(0,"span",9)}function bt(N,ke){1&N&&t.nrm(0,"span",10)}function At(N,ke){if(1&N&&(t.qex(0),t.DNE(1,zn,1,0,"span",7)(2,bt,1,0,"span",8),t.bVm()),2&N){const ve=t.XpG(2);t.R7$(),t.Y8G("ngIf",!ve.search),t.R7$(),t.Y8G("ngIf",ve.search)}}function Et(N,ke){if(1&N&&t.nrm(0,"span",12),2&N){const ve=t.XpG().$implicit;t.Y8G("nzType",ve)}}function Ot(N,ke){if(1&N&&(t.qex(0),t.DNE(1,Et,1,1,"span",11),t.bVm()),2&N){const ve=ke.$implicit;t.R7$(),t.Y8G("ngIf",ve)}}function Yt(N,ke){if(1&N&&t.DNE(0,Ot,2,1,"ng-container",4),2&N){const ve=t.XpG(2);t.Y8G("nzStringTemplateOutlet",ve.suffixIcon)}}function Ue(N,ke){if(1&N&&t.DNE(0,At,3,2,"ng-container",6)(1,Yt,1,1,"ng-template",null,1,t.C5r),2&N){const ve=t.sdS(2),K=t.XpG();t.Y8G("ngIf",K.showArrow&&!K.suffixIcon)("ngIfElse",ve)}}function Ae(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ve=t.XpG();t.R7$(),t.JRh(ve.feedbackIcon)}}function ie(N,ke){1&N&&t.nrm(0,"span",1)}const _e=N=>({$implicit:N});function oe(N,ke){if(1&N&&(t.j41(0,"div",4),t.EFF(1),t.k0s()),2&N){const ve=t.XpG(2);t.R7$(),t.JRh(ve.label)}}function Fe(N,ke){if(1&N&&t.EFF(0),2&N){const ve=t.XpG(2);t.JRh(ve.label)}}function et(N,ke){if(1&N&&(t.qex(0),t.DNE(1,oe,2,1,"div",3)(2,Fe,1,1,"ng-template",null,0,t.C5r),t.bVm()),2&N){const ve=t.sdS(3),K=t.XpG();t.R7$(),t.Y8G("ngIf",K.deletable)("ngIfElse",ve)}}function ut(N,ke){1&N&&t.nrm(0,"span",7)}function Kt(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"span",5),t.bIt("click",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onDelete(U))}),t.DNE(1,ut,1,0,"span",6),t.k0s()}if(2&N){const ve=t.XpG();t.R7$(),t.Y8G("ngIf",!ve.removeIcon)("ngIfElse",ve.removeIcon)}}function cn(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ve=t.XpG();t.R7$(),t.SpI(" ",ve.placeholder," ")}}const Tn=["inputElement"],Wn=["mirrorElement"];function kn(N,ke){1&N&&t.nrm(0,"span",4,1)}function Vn(N,ke){if(1&N&&t.nrm(0,"nz-select-item",6),2&N){const ve=t.XpG(2);t.Y8G("deletable",!1)("disabled",!1)("removeIcon",ve.removeIcon)("label",ve.listOfTopItem[0].nzLabel)("contentTemplateOutlet",ve.customTemplate)("contentTemplateOutletContext",ve.listOfTopItem[0])}}function Un(N,ke){if(1&N){const ve=t.RV6();t.qex(0),t.j41(1,"nz-select-search",4),t.bIt("isComposingChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.isComposingChange(U))})("valueChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onInputValueChange(U))}),t.k0s(),t.DNE(2,Vn,1,6,"nz-select-item",5),t.bVm()}if(2&N){const ve=t.XpG();t.R7$(),t.Y8G("nzId",ve.nzId)("disabled",ve.disabled)("value",ve.inputValue)("showInput",ve.showSearch)("mirrorSync",!1)("autofocus",ve.autofocus)("focusTrigger",ve.open),t.R7$(),t.Y8G("ngIf",ve.isShowSingleLabel)}}function dn(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-select-item",9),t.bIt("delete",function(){const U=t.eBV(ve).$implicit,ge=t.XpG(2);return t.Njj(ge.onDeleteItem(U.contentTemplateOutletContext))}),t.k0s()}if(2&N){const ve=ke.$implicit,K=t.XpG(2);t.Y8G("removeIcon",K.removeIcon)("label",ve.nzLabel)("disabled",ve.nzDisabled||K.disabled)("contentTemplateOutlet",ve.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",ve.contentTemplateOutletContext)}}function qt(N,ke){if(1&N){const ve=t.RV6();t.qex(0),t.DNE(1,dn,1,6,"nz-select-item",7),t.j41(2,"nz-select-search",8),t.bIt("isComposingChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.isComposingChange(U))})("valueChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onInputValueChange(U))}),t.k0s(),t.bVm()}if(2&N){const ve=t.XpG();t.R7$(),t.Y8G("ngForOf",ve.listOfSlicedItem)("ngForTrackBy",ve.trackValue),t.R7$(),t.Y8G("nzId",ve.nzId)("disabled",ve.disabled)("value",ve.inputValue)("autofocus",ve.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",ve.open)}}function On(N,ke){if(1&N&&t.nrm(0,"nz-select-placeholder",10),2&N){const ve=t.XpG();t.Y8G("placeholder",ve.placeHolder)}}function Ut(N,ke){if(1&N&&t.nrm(0,"nz-form-item-feedback-icon",8),2&N){const ve=t.XpG(3);t.Y8G("status",ve.status)}}function Ye(N,ke){if(1&N&&t.DNE(0,Ut,1,1,"nz-form-item-feedback-icon",7),2&N){const ve=t.XpG(2);t.Y8G("ngIf",ve.hasFeedback&&!!ve.status)}}function ue(N,ke){if(1&N&&(t.j41(0,"nz-select-arrow",6),t.DNE(1,Ye,1,1,"ng-template",null,1,t.C5r),t.k0s()),2&N){const ve=t.sdS(2),K=t.XpG();t.Y8G("showArrow",K.nzShowArrow)("loading",K.nzLoading)("search",K.nzOpen&&K.nzShowSearch)("suffixIcon",K.nzSuffixIcon)("feedbackIcon",ve)("nzMaxMultipleCount",K.nzMaxMultipleCount)("listOfValue",K.listOfValue)("isMaxTagCountSet",K.isMaxTagCountSet)}}function te(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-select-clear",9),t.bIt("clear",function(){t.eBV(ve);const U=t.XpG();return t.Njj(U.onClearSelection())}),t.k0s()}if(2&N){const ve=t.XpG();t.Y8G("clearIcon",ve.nzClearIcon)}}function q(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-option-container",10),t.bIt("keydown",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onKeyDown(U))})("itemClick",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onItemClick(U))})("scrollToBottom",function(){t.eBV(ve);const U=t.XpG();return t.Njj(U.nzScrollToBottom.emit())}),t.k0s()}if(2&N){const ve=t.XpG();t.AVh("ant-select-dropdown-placement-bottomLeft","bottomLeft"===ve.dropDownPosition)("ant-select-dropdown-placement-topLeft","topLeft"===ve.dropDownPosition)("ant-select-dropdown-placement-bottomRight","bottomRight"===ve.dropDownPosition)("ant-select-dropdown-placement-topRight","topRight"===ve.dropDownPosition),t.Y8G("ngStyle",ve.nzDropdownStyle)("itemSize",ve.nzOptionHeightPx)("maxItemLength",ve.nzOptionOverflowSize)("matchWidth",ve.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!(null==ve.noAnimation||!ve.noAnimation.nzNoAnimation))("nzNoAnimation",null==ve.noAnimation?null:ve.noAnimation.nzNoAnimation)("listOfContainerItem",ve.listOfContainerItem)("menuItemSelectedIcon",ve.nzMenuItemSelectedIcon)("notFoundContent",ve.nzNotFoundContent)("activatedValue",ve.activatedValue)("listOfSelectedValue",ve.listOfValue)("dropdownRender",ve.nzDropdownRender)("compareWith",ve.compareWith)("mode",ve.nzMode)("isMaxLimitReached",ve.isMaxLimitReached)}}let Xe=(()=>{class N{constructor(){this.nzLabel=null,this.changes=new r.B}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],standalone:!0,features:[t.OA$,t.aNF],ngContentSelectors:Pt,decls:1,vars:0,template:function(K,U){1&K&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return N})(),dt=(()=>{class N{constructor(){this.nzLabel=null}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(K,U){1&K&&t.DNE(0,vt,2,1,"ng-container",0),2&K&&t.Y8G("nzStringTemplateOutlet",U.nzLabel)},dependencies:[X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),at=(()=>{class N{constructor(ve,K,U){this.elementRef=ve,this.ngZone=K,this.destroy$=U,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.bkB,this.itemHover=new t.bkB}ngOnChanges(ve){const{value:K,activatedValue:U,listOfSelectedValue:ge}=ve;(K||ge)&&(this.selected=this.listOfSelectedValue.some(qe=>this.compareWith(qe,this.value))),(K||U)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.elementRef.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),(0,g.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(he.y4))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(K,U){2&K&&(t.BMQ("title",U.title),t.AVh("ant-select-item-option-grouped",U.grouped)("ant-select-item-option-selected",U.selected&&!U.disabled)("ant-select-item-option-disabled",U.disabled)("ant-select-item-option-active",U.activated&&!U.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",title:"title",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},standalone:!0,features:[t.Jv_([he.y4]),t.OA$,t.aNF],decls:5,vars:3,consts:[["noCustomContent",""],[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["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(K,U){if(1&K&&(t.j41(0,"div",1),t.DNE(1,Le,1,1,"ng-template",2)(2,zt,1,1,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(4,st,2,2,"div",3)),2&K){const ge=t.sdS(3);t.R7$(),t.Y8G("ngIf",U.customContent)("ngIfElse",ge),t.R7$(3),t.Y8G("ngIf",U.showState&&U.selected)}},dependencies:[w.bT,w.T3,we.Y3,we.Dn],encapsulation:2,changeDetection:0})}return N})(),St=(()=>{class N{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.isMaxLimitReached=!1,this.listOfContainerItem=[],this.itemClick=new t.bkB,this.scrollToBottom=new t.bkB,this.scrolledIndex=0,this.ngZone=(0,t.WQX)(t.SKi),this.platformId=(0,t.WQX)(t.Agw)}onItemClick(ve){this.itemClick.emit(ve)}onItemHover(ve){this.activatedValue=ve}trackValue(ve,K){return K.key}onScrolledIndexChange(ve){this.scrolledIndex=ve,ve===this.listOfContainerItem.length-this.maxItemLength-1&&this.scrollToBottom.emit()}scrollToActivatedValue(){const ve=this.listOfContainerItem.findIndex(K=>this.compareWith(K.key,this.activatedValue));(ve=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(ve||0)}ngOnChanges(ve){const{listOfContainerItem:K,activatedValue:U}=ve;(K||U)&&this.scrollToActivatedValue()}ngAfterViewInit(){(0,w.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-container"]],viewQuery:function(K,U){if(1&K&&t.GBs(A.d6,7),2&K){let ge;t.mGM(ge=t.lsd())&&(U.cdkVirtualScrollViewport=ge.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",isMaxLimitReached:"isMaxLimitReached",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],standalone:!0,features:[t.OA$,t.aNF],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"scrolledIndexChange","itemSize","maxBufferPx","minBufferPx"],["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","title","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"itemHover","itemClick","icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"]],template:function(K,U){1&K&&(t.j41(0,"div"),t.DNE(1,Ct,2,1,"div",0),t.j41(2,"cdk-virtual-scroll-viewport",1),t.bIt("scrolledIndexChange",function(qe){return U.onScrolledIndexChange(qe)}),t.DNE(3,en,3,3,"ng-template",2),t.k0s(),t.DNE(4,jt,0,0,"ng-template",3),t.k0s()),2&K&&(t.R7$(),t.Y8G("ngIf",0===U.listOfContainerItem.length),t.R7$(),t.xc7("height",U.listOfContainerItem.length*U.itemSize,"px")("max-height",U.itemSize*U.maxItemLength,"px"),t.AVh("full-width",!U.matchWidth),t.Y8G("itemSize",U.itemSize)("maxBufferPx",U.itemSize*U.maxItemLength)("minBufferPx",U.itemSize*U.maxItemLength),t.R7$(),t.Y8G("cdkVirtualForOf",U.listOfContainerItem)("cdkVirtualForTrackBy",U.trackValue)("cdkVirtualForTemplateCacheSize",0),t.R7$(),t.Y8G("ngTemplateOutlet",U.dropdownRender))},dependencies:[F._v,F.E8,w.bT,w.ux,dt,w.e1,at,w.T3,B.z_,A.yg,A.E$,A.d6,I.$_],encapsulation:2,changeDetection:0})}return N})(),Qe=(()=>{class N{constructor(ve,K){this.nzOptionGroupComponent=ve,this.destroy$=K,this.changes=new r.B,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,x.Z)(!0),(0,V.Q)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(Xe,8),t.rXU(he.y4))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option"]],viewQuery:function(K,U){if(1&K&&t.GBs(t.C4Q,7),2&K){let ge;t.mGM(ge=t.lsd())&&(U.template=ge.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzHide:[2,"nzHide","nzHide",t.L39],nzCustomContent:[2,"nzCustomContent","nzCustomContent",t.L39]},exportAs:["nzOption"],standalone:!0,features:[t.Jv_([he.y4]),t.GFd,t.OA$,t.aNF],ngContentSelectors:Pt,decls:1,vars:0,template:function(K,U){1&K&&(t.NAR(),t.DNE(0,Vt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return N})(),Ee=(()=>{class N{constructor(){this.listOfValue=[],this.loading=!1,this.search=!1,this.showArrow=!1,this.isMaxTagCountSet=!1,this.suffixIcon=null,this.feedbackIcon=null,this.nzMaxMultipleCount=1/0}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(K,U){2&K&&t.AVh("ant-select-arrow-loading",U.loading)},inputs:{listOfValue:"listOfValue",loading:"loading",search:"search",showArrow:"showArrow",isMaxTagCountSet:"isMaxTagCountSet",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",t.Udg]},standalone:!0,features:[t.GFd,t.aNF],decls:5,vars:4,consts:[["defaultArrow",""],["suffixTemplate",""],[4,"ngIf"],["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["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(K,U){if(1&K&&t.DNE(0,fn,3,2,"ng-container",2)(1,Hn,1,0,"span",3)(2,Ue,3,2,"ng-template",null,0,t.C5r)(4,Ae,2,1,"ng-container",4),2&K){const ge=t.sdS(3);t.Y8G("ngIf",U.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",U.loading)("ngIfElse",ge),t.R7$(3),t.Y8G("nzStringTemplateOutlet",U.feedbackIcon)}},dependencies:[we.Y3,we.Dn,w.bT,X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),Je=(()=>{class N{constructor(){this.clearIcon=null,this.clear=new t.bkB}onClick(ve){ve.preventDefault(),ve.stopPropagation(),this.clear.emit(ve)}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(K,U){1&K&&t.bIt("click",function(qe){return U.onClick(qe)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},standalone:!0,features:[t.aNF],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(K,U){1&K&&t.DNE(0,ie,1,0,"span",0),2&K&&t.Y8G("ngIf",!U.clearIcon)("ngIfElse",U.clearIcon)},dependencies:[we.Y3,we.Dn,w.bT],encapsulation:2,changeDetection:0})}return N})(),re=(()=>{class N{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.bkB}onDelete(ve){ve.preventDefault(),ve.stopPropagation(),this.disabled||this.delete.next(ve)}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(K,U){2&K&&(t.BMQ("title",U.label),t.AVh("ant-select-selection-item-disabled",U.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[["labelTemplate",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],[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(K,U){1&K&&t.DNE(0,et,4,2,"ng-container",1)(1,Kt,2,2,"span",2),2&K&&(t.Y8G("nzStringTemplateOutlet",U.contentTemplateOutlet)("nzStringTemplateOutletContext",t.eq3(3,_e,U.contentTemplateOutletContext)),t.R7$(),t.Y8G("ngIf",U.deletable&&!U.disabled))},dependencies:[X.C,X.m,w.bT,we.Y3,we.Dn],encapsulation:2,changeDetection:0})}return N})(),ze=(()=>{class N{constructor(){this.placeholder=null}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(K,U){1&K&&t.DNE(0,cn,2,1,"ng-container",0),2&K&&t.Y8G("nzStringTemplateOutlet",U.placeholder)},dependencies:[X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),gt=(()=>{class N{setCompositionState(ve){this.isComposingChange.next(ve)}onValueChange(ve){this.value=ve,this.valueChange.next(ve),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const ve=this.mirrorElement.nativeElement,K=this.elementRef.nativeElement,U=this.inputElement.nativeElement;this.renderer.removeStyle(K,"width"),this.renderer.setProperty(ve,"textContent",`${U.value}\xa0`),this.renderer.setStyle(K,"width",`${ve.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(ve,K,U){this.elementRef=ve,this.renderer=K,this.focusMonitor=U,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.bkB,this.isComposingChange=new t.bkB}ngOnChanges(ve){const K=this.inputElement.nativeElement,{focusTrigger:U,showInput:ge}=ve;ge&&(this.showInput?this.renderer.removeAttribute(K,"readonly"):this.renderer.setAttribute(K,"readonly","readonly")),U&&!0===U.currentValue&&!1===U.previousValue&&K.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(se.FN))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-search"]],viewQuery:function(K,U){if(1&K&&(t.GBs(Tn,7),t.GBs(Wn,5)),2&K){let ge;t.mGM(ge=t.lsd())&&(U.inputElement=ge.first),t.mGM(ge=t.lsd())&&(U.mirrorElement=ge.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"},standalone:!0,features:[t.Jv_([{provide:z.mP,useValue:!1}]),t.OA$,t.aNF],decls:3,vars:7,consts:[["inputElement",""],["mirrorElement",""],["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModelChange","compositionstart","compositionend","ngModel","disabled"],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"]],template:function(K,U){if(1&K){const ge=t.RV6();t.j41(0,"input",2,0),t.bIt("ngModelChange",function(rt){return t.eBV(ge),t.Njj(U.onValueChange(rt))})("compositionstart",function(){return t.eBV(ge),t.Njj(U.setCompositionState(!0))})("compositionend",function(){return t.eBV(ge),t.Njj(U.setCompositionState(!1))}),t.k0s(),t.DNE(2,kn,2,0,"span",3)}2&K&&(t.xc7("opacity",U.showInput?null:0),t.Y8G("ngModel",U.value)("disabled",U.disabled),t.BMQ("id",U.nzId)("autofocus",U.autofocus?"autofocus":null),t.R7$(2),t.Y8G("ngIf",U.mirrorSync))},dependencies:[z.YN,z.me,z.BC,z.vS,w.bT],encapsulation:2,changeDetection:0})}return N})(),Ke=(()=>{class N{updateTemplateVariable(){const ve=0===this.listOfTopItem.length;this.isShowPlaceholder=ve&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!ve&&!this.isComposing&&!this.inputValue}isComposingChange(ve){this.isComposing=ve,this.updateTemplateVariable()}onInputValueChange(ve){ve!==this.inputValue&&(this.inputValue=ve,this.updateTemplateVariable(),this.inputValueChange.emit(ve),this.tokenSeparate(ve,this.tokenSeparators))}tokenSeparate(ve,K){if(ve&&ve.length&&K.length&&"default"!==this.mode&&((qe,rt)=>{for(let Ft=0;Ft0)return!0;return!1})(ve,K)){const qe=((qe,rt)=>{const Ft=new RegExp(`[${rt.join()}]`),on=qe.split(Ft).filter(Cn=>Cn);return[...new Set(on)]})(ve,K);this.tokenize.next(qe)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(ve,K){return K.nzValue}onDeleteItem(ve){!this.disabled&&!ve.nzDisabled&&this.deleteItem.next(ve)}constructor(ve,K,U){this.elementRef=ve,this.ngZone=K,this.noAnimation=U,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.bkB,this.inputValueChange=new t.bkB,this.deleteItem=new t.bkB,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new r.B}ngOnChanges(ve){const{listOfTopItem:K,maxTagCount:U,customTemplate:ge,maxTagPlaceholder:qe}=ve;if(K&&this.updateTemplateVariable(),K||U||ge||qe){const rt=this.listOfTopItem.slice(0,this.maxTagCount).map(Ft=>({nzLabel:Ft.nzLabel,nzValue:Ft.nzValue,nzDisabled:Ft.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:Ft}));if(this.listOfTopItem.length>this.maxTagCount){const Ft=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,on=this.listOfTopItem.map(Zn=>Zn.nzValue),Cn={nzLabel:Ft,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:on.slice(this.maxTagCount)};rt.push(Cn)}this.listOfSlicedItem=rt}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.elementRef.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,g.R)(this.elementRef.nativeElement,"keydown").pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve.target instanceof HTMLInputElement&&ve.keyCode===de.G_&&"default"!==this.mode&&!ve.target.value&&this.listOfTopItem.length>0&&(ve.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))})})}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(S.z,9))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-top-control"]],viewQuery:function(K,U){if(1&K&&t.GBs(gt,5),2&K){let ge;t.mGM(ge=t.lsd())&&(U.nzSelectSearchComponent=ge.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:[2,"maxTagCount","maxTagCount",t.Udg],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"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"isComposingChange","valueChange","nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger"],[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,"isComposingChange","valueChange","nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger"],[3,"delete","removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext"],[3,"placeholder"]],template:function(K,U){1&K&&(t.qex(0,0),t.DNE(1,Un,3,8,"ng-container",1)(2,qt,3,9,"ng-container",2),t.bVm(),t.DNE(3,On,1,1,"nz-select-placeholder",3)),2&K&&(t.Y8G("ngSwitch",U.mode),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(2),t.Y8G("ngIf",U.isShowPlaceholder))},dependencies:[w.ux,gt,w.e1,re,w.bT,w.fG,w.pM,ze],encapsulation:2,changeDetection:0})}return N})();const Pe=(N,ke)=>!(!ke||!ke.nzLabel)&&ke.nzLabel.toString().toLowerCase().indexOf(N.toLowerCase())>-1;let $=(()=>{class N{set nzShowArrow(ve){this._nzShowArrow=ve}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}get isMaxTagCountSet(){return this.nzMaxMultipleCount!==1/0}generateTagItem(ve){return{nzValue:ve,nzLabel:ve,type:"item"}}onItemClick(ve){if(this.activatedValue=ve,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],ve))&&this.updateListOfValue([ve]),this.setOpenState(!1);else{const K=this.listOfValue.findIndex(U=>this.compareWith(U,ve));if(-1!==K){const U=this.listOfValue.filter((ge,qe)=>qe!==K);this.updateListOfValue(U)}else if(this.listOfValue.length!this.compareWith(U,ve.nzValue));this.updateListOfValue(K),this.clearInput()}updateListOfContainerItem(){let ve=this.listOfTagAndTemplateItem.filter(ge=>!ge.nzHide).filter(ge=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,ge));if("tags"===this.nzMode&&this.searchValue){const ge=this.listOfTagAndTemplateItem.find(qe=>qe.nzLabel===this.searchValue);if(ge)this.activatedValue=ge.nzValue;else{const qe=this.generateTagItem(this.searchValue);ve=[qe,...ve],this.activatedValue=qe.nzValue}}const K=ve.find(ge=>ge.nzLabel===this.searchValue)||ve.find(ge=>this.compareWith(ge.nzValue,this.activatedValue))||ve.find(ge=>this.compareWith(ge.nzValue,this.listOfValue[0]))||ve[0];this.activatedValue=K&&K.nzValue||null;let U=[];this.isReactiveDriven?U=[...new Set(this.nzOptions.filter(ge=>ge.groupLabel).map(ge=>ge.groupLabel))]:this.listOfNzOptionGroupComponent&&(U=this.listOfNzOptionGroupComponent.map(ge=>ge.nzLabel)),U.forEach(ge=>{const qe=ve.findIndex(rt=>ge===rt.groupLabel);qe>-1&&ve.splice(qe,0,{groupLabel:ge,type:"group",key:ge})}),this.listOfContainerItem=[...ve],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(ve){const U=((ge,qe)=>"default"===this.nzMode?ge.length>0?ge[0]:null:ge)(ve);this.value!==U&&(this.listOfValue=ve,this.listOfValue$.next(ve),this.value=U,this.onChange(this.value)),this.isMaxLimitReached=this.nzMaxMultipleCount!==1/0&&this.listOfValue.length===this.nzMaxMultipleCount}onTokenSeparate(ve){const K=this.listOfTagAndTemplateItem.filter(U=>-1!==ve.findIndex(ge=>ge===U.nzLabel)).map(U=>U.nzValue).filter(U=>-1===this.listOfValue.findIndex(ge=>this.compareWith(ge,U)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...K]);else if("tags"===this.nzMode){const U=ve.filter(ge=>-1===this.listOfTagAndTemplateItem.findIndex(qe=>qe.nzLabel===ge));this.updateListOfValue([...this.listOfValue,...K,...U])}this.clearInput()}onKeyDown(ve){if(this.nzDisabled)return;const K=this.listOfContainerItem.filter(ge=>"item"===ge.type).filter(ge=>!ge.nzDisabled),U=K.findIndex(ge=>this.compareWith(ge.nzValue,this.activatedValue));switch(ve.keyCode){case de.i7:ve.preventDefault(),this.nzOpen&&K.length>0&&(this.activatedValue=K[U>0?U-1:K.length-1].nzValue);break;case de.n6:ve.preventDefault(),this.nzOpen&&K.length>0?this.activatedValue=K[U{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,ve!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,R.j)(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(ve,K,U,ge,qe,rt,Ft,on,Cn,Zn,jn,Gn){this.ngZone=ve,this.destroy$=K,this.nzConfigService=U,this.cdr=ge,this.host=qe,this.renderer=rt,this.platform=Ft,this.focusMonitor=on,this.directionality=Cn,this.noAnimation=Zn,this.nzFormStatusService=jn,this.nzFormNoStatusService=Gn,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=Pe,this.compareWith=(zi,Oi)=>zi===Oi,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.bkB,this.nzScrollToBottom=new t.bkB,this.nzOpenChange=new t.bkB,this.nzBlur=new t.bkB,this.nzFocus=new t.bkB,this.listOfValue$=new e.t([]),this.listOfTemplateItem$=new e.t([]),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.isMaxLimitReached=!1,this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(ve){if(this.value!==ve){this.value=ve;const U=((ge,qe)=>null==ge?[]:"default"===this.nzMode?[ge]:ge)(ve);this.listOfValue=U,this.listOfValue$.next(U),this.cdr.markForCheck()}}registerOnChange(ve){this.onChange=ve}registerOnTouched(ve){this.onTouched=ve}setDisabledState(ve){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||ve,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(ve){const{nzOpen:K,nzDisabled:U,nzOptions:ge,nzStatus:qe,nzPlacement:rt}=ve;if(K&&this.onOpenChange(),U&&this.nzDisabled&&this.setOpenState(!1),ge){this.isReactiveDriven=!0;const on=(this.nzOptions||[]).map(Cn=>({template:Cn.label instanceof t.C4Q?Cn.label:null,nzTitle:this.getTitle(Cn.title,Cn.label),nzLabel:"string"==typeof Cn.label||"number"==typeof Cn.label?Cn.label:null,nzValue:Cn.value,nzDisabled:Cn.disabled||!1,nzHide:Cn.hide||!1,nzCustomContent:Cn.label instanceof t.C4Q,groupLabel:Cn.groupLabel||null,type:"item",key:void 0===Cn.key?Cn.value:Cn.key}));this.listOfTemplateItem$.next(on)}if(qe&&this.setStatusStyles(this.nzStatus,this.hasFeedback),rt){const{currentValue:Ft}=rt;this.dropDownPosition=Ft;const on=["bottomLeft","topLeft","bottomRight","topRight"];this.positions=Ft&&on.includes(Ft)?[I.pn[Ft]]:on.map(Cn=>I.pn[Cn])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,ne.F)((ve,K)=>ve.status===K.status&&ve.hasFeedback===K.hasFeedback),(0,J.E)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,M.of)(!1)),(0,be.T)(([{status:ve,hasFeedback:K},U])=>({status:U?"":ve,hasFeedback:K})),(0,V.Q)(this.destroy$)).subscribe(({status:ve,hasFeedback:K})=>{this.setStatusStyles(ve,K)}),this.focusMonitor.monitor(this.host,!0).pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,G.z)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,V.Q)(this.destroy$)).subscribe(([ve,K])=>{const U=ve.filter(()=>"tags"===this.nzMode).filter(ge=>-1===K.findIndex(qe=>this.compareWith(qe.nzValue,ge))).map(ge=>this.listOfTopItem.find(qe=>this.compareWith(qe.nzValue,ge))||this.generateTagItem(ge));this.listOfTagAndTemplateItem=[...K,...U],this.listOfTopItem=this.listOfValue.map(ge=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(qe=>this.compareWith(ge,qe.nzValue))).filter(ge=>!!ge),this.updateListOfContainerItem()}),this.directionality.change?.pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{this.dir=ve,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>(0,g.R)(this.host.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve.keyCode===de._f&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||(0,L.h)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,x.Z)(!0),(0,Oe.n)(()=>(0,L.h)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(ve=>ve.changes),...this.listOfNzOptionGroupComponent.map(ve=>ve.changes)).pipe((0,x.Z)(!0))),(0,V.Q)(this.destroy$)).subscribe(()=>{const ve=this.listOfNzOptionComponent.toArray().map(K=>{const{template:U,nzLabel:ge,nzValue:qe,nzKey:rt,nzDisabled:Ft,nzHide:on,nzCustomContent:Cn,groupLabel:Zn}=K;return{template:U,nzLabel:ge,nzValue:qe,nzDisabled:Ft,nzHide:on,nzCustomContent:Cn,groupLabel:Zn,nzTitle:this.getTitle(K.nzTitle,K.nzLabel),type:"item",key:void 0===rt?qe:rt}});this.listOfTemplateItem$.next(ve),this.cdr.markForCheck()})}ngOnDestroy(){(0,R.F)(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(ve,K){this.status=ve,this.hasFeedback=K,this.cdr.markForCheck(),this.statusCls=(0,Y.LP)(this.prefixCls,ve,K),Object.keys(this.statusCls).forEach(U=>{this.statusCls[U]?this.renderer.addClass(this.host.nativeElement,U):this.renderer.removeClass(this.host.nativeElement,U)})}getTitle(ve,K){let U;return void 0===ve?("string"==typeof K||"number"==typeof K)&&(U=K.toString()):("string"==typeof ve||"number"==typeof ve)&&(U=ve.toString()),U}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.SKi),t.rXU(he.y4),t.rXU(pe.yx),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(H.OD),t.rXU(se.FN),t.rXU(Be.dS,8),t.rXU(S.z,9),t.rXU(E.is,8),t.rXU(E.n1,8))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select"]],contentQueries:function(K,U,ge){if(1&K&&(t.wni(ge,Qe,5),t.wni(ge,Xe,5)),2&K){let qe;t.mGM(qe=t.lsd())&&(U.listOfNzOptionComponent=qe),t.mGM(qe=t.lsd())&&(U.listOfNzOptionGroupComponent=qe)}},viewQuery:function(K,U){if(1&K&&(t.GBs(B.$Q,7,t.aKT),t.GBs(B.WB,7),t.GBs(Ke,7),t.GBs(Xe,7,t.aKT),t.GBs(Ke,7,t.aKT)),2&K){let ge;t.mGM(ge=t.lsd())&&(U.originElement=ge.first),t.mGM(ge=t.lsd())&&(U.cdkConnectedOverlay=ge.first),t.mGM(ge=t.lsd())&&(U.nzSelectTopControlComponent=ge.first),t.mGM(ge=t.lsd())&&(U.nzOptionGroupComponentElement=ge.first),t.mGM(ge=t.lsd())&&(U.nzSelectTopControlComponentElement=ge.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(K,U){2&K&&t.AVh("ant-select-in-form-item",!!U.nzFormStatusService)("ant-select-lg","large"===U.nzSize)("ant-select-sm","small"===U.nzSize)("ant-select-show-arrow",U.nzShowArrow)("ant-select-disabled",U.nzDisabled)("ant-select-show-search",(U.nzShowSearch||"default"!==U.nzMode)&&!U.nzDisabled)("ant-select-allow-clear",U.nzAllowClear)("ant-select-borderless",U.nzBorderless)("ant-select-open",U.nzOpen)("ant-select-focused",U.nzOpen||U.focused)("ant-select-single","default"===U.nzMode)("ant-select-multiple","default"!==U.nzMode)("ant-select-rtl","rtl"===U.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:[2,"nzAllowClear","nzAllowClear",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzShowSearch:[2,"nzShowSearch","nzShowSearch",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzAutoClearSearchValue:[2,"nzAutoClearSearchValue","nzAutoClearSearchValue",t.L39],nzServerSearch:[2,"nzServerSearch","nzServerSearch",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzOpen:[2,"nzOpen","nzOpen",t.L39],nzSelectOnTab:[2,"nzSelectOnTab","nzSelectOnTab",t.L39],nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39],nzOptions:"nzOptions",nzShowArrow:[2,"nzShowArrow","nzShowArrow",t.L39]},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],standalone:!0,features:[t.Jv_([he.y4,{provide:z.kq,useExisting:(0,t.Rfq)(()=>N),multi:!0}]),t.GFd,t.OA$,t.aNF],decls:5,vars:25,consts:[["origin","cdkOverlayOrigin"],["feedbackIconTpl",""],["cdkOverlayOrigin","",3,"inputValueChange","tokenize","deleteItem","keydown","nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet"],[3,"status",4,"ngIf"],[3,"status"],[3,"clear","clearIcon"],[3,"keydown","itemClick","scrollToBottom","ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","isMaxLimitReached"]],template:function(K,U){if(1&K){const ge=t.RV6();t.j41(0,"nz-select-top-control",2,0),t.bIt("inputValueChange",function(rt){return t.eBV(ge),t.Njj(U.onInputValueChange(rt))})("tokenize",function(rt){return t.eBV(ge),t.Njj(U.onTokenSeparate(rt))})("deleteItem",function(rt){return t.eBV(ge),t.Njj(U.onItemDelete(rt))})("keydown",function(rt){return t.eBV(ge),t.Njj(U.onKeyDown(rt))}),t.k0s(),t.DNE(2,ue,3,8,"nz-select-arrow",3)(3,te,1,1,"nz-select-clear",4)(4,q,1,24,"ng-template",5),t.bIt("overlayOutsideClick",function(rt){return t.eBV(ge),t.Njj(U.onClickOutside(rt))})("detach",function(){return t.eBV(ge),t.Njj(U.setOpenState(!1))})("positionChange",function(rt){return t.eBV(ge),t.Njj(U.onPositionChange(rt))})}if(2&K){const ge=t.sdS(1);t.Y8G("nzId",U.nzId)("open",U.nzOpen)("disabled",U.nzDisabled)("mode",U.nzMode)("@.disabled",!(null==U.noAnimation||!U.noAnimation.nzNoAnimation))("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("maxTagPlaceholder",U.nzMaxTagPlaceholder)("removeIcon",U.nzRemoveIcon)("placeHolder",U.nzPlaceHolder)("maxTagCount",U.nzMaxTagCount)("customTemplate",U.nzCustomTemplate)("tokenSeparators",U.nzTokenSeparators)("showSearch",U.nzShowSearch)("autofocus",U.nzAutoFocus)("listOfTopItem",U.listOfTopItem),t.R7$(2),t.Y8G("ngIf",U.nzShowArrow||U.hasFeedback&&!!U.status||U.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",U.nzAllowClear&&!U.nzDisabled&&U.listOfValue.length),t.R7$(),t.Y8G("cdkConnectedOverlayHasBackdrop",U.nzBackdrop)("cdkConnectedOverlayMinWidth",U.nzDropdownMatchSelectWidth?null:U.triggerWidth)("cdkConnectedOverlayWidth",U.nzDropdownMatchSelectWidth?U.triggerWidth:null)("cdkConnectedOverlayOrigin",ge)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",U.nzDropdownClassName)("cdkConnectedOverlayOpen",U.nzOpen)("cdkConnectedOverlayPositions",U.positions)}},dependencies:[Ke,B.$Q,S.z,Ee,w.bT,E.J1,E.Xd,Je,B.WB,I.$_,I.vT,St,w.B3],encapsulation:2,data:{animation:[Z.U1]},changeDetection:0})}return(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzOptionHeightPx",void 0),(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzSuffixIcon",void 0),(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzBorderless",void 0),(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzBackdrop",void 0),N})(),ce=(()=>{class N{static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275mod=t.$C({type:N});static#n=this.\u0275inj=t.G2t({imports:[$,St,at,Ke,gt,re,Je,Ee,ze,dt]})}return N})()},1912:(Rt,De,c)=>{c.d(De,{Bi:()=>he,i3:()=>we});var t=c(177),r=c(3953),g=c(317);const M=["nzType","avatar"],B=["*"];function A(me,de){if(1&me&&(r.j41(0,"div",5),r.nrm(1,"nz-skeleton-element",6),r.k0s()),2&me){const H=r.XpG(2);r.R7$(),r.Y8G("nzSize",H.avatar.size||"default")("nzShape",H.avatar.shape||"circle")}}function w(me,de){if(1&me&&r.nrm(0,"h3",7),2&me){const H=r.XpG(2);r.xc7("width",H.toCSSUnit(H.title.width))}}function I(me,de){if(1&me&&r.nrm(0,"li"),2&me){const H=de.index,z=r.XpG(3);r.xc7("width",z.toCSSUnit(z.widthList[H]))}}function F(me,de){if(1&me&&(r.j41(0,"ul",8),r.DNE(1,I,1,2,"li",9),r.k0s()),2&me){const H=r.XpG(2);r.R7$(),r.Y8G("ngForOf",H.rowsList)}}function X(me,de){if(1&me&&(r.qex(0),r.DNE(1,A,2,2,"div",1),r.j41(2,"div",2),r.DNE(3,w,1,2,"h3",3)(4,F,2,1,"ul",4),r.k0s(),r.bVm()),2&me){const H=r.XpG();r.R7$(),r.Y8G("ngIf",!!H.nzAvatar),r.R7$(2),r.Y8G("ngIf",!!H.nzTitle),r.R7$(),r.Y8G("ngIf",!!H.nzParagraph)}}function V(me,de){1&me&&(r.qex(0),r.SdG(1),r.bVm())}let x=(()=>{class me{constructor(){this.nzActive=!1,this.nzBlock=!1}static#e=this.\u0275fac=function(z){return new(z||me)};static#t=this.\u0275dir=r.FsC({type:me,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(z,Z){2&z&&r.AVh("ant-skeleton-active",Z.nzActive)("ant-skeleton-block",Z.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",r.L39],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",r.L39]},standalone:!0,features:[r.GFd]})}return me})(),J=(()=>{class me{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(H){if(H.nzSize&&"number"==typeof this.nzSize){const z=`${this.nzSize}px`;this.styleMap={width:z,height:z,"line-height":z}}else this.styleMap={}}static#e=this.\u0275fac=function(z){return new(z||me)};static#t=this.\u0275cmp=r.VBU({type:me,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},standalone:!0,features:[r.OA$,r.aNF],attrs:M,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(z,Z){1&z&&r.nrm(0,"span",0),2&z&&(r.AVh("ant-skeleton-avatar-square","square"===Z.nzShape)("ant-skeleton-avatar-circle","circle"===Z.nzShape)("ant-skeleton-avatar-lg","large"===Z.nzSize)("ant-skeleton-avatar-sm","small"===Z.nzSize),r.Y8G("ngStyle",Z.styleMap))},dependencies:[t.B3],encapsulation:2,changeDetection:0})}return me})(),he=(()=>{class me{constructor(H){this.cdr=H,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[]}toCSSUnit(H=""){return(0,g.j3)(H)}getTitleProps(){const H=!!this.nzAvatar,z=!!this.nzParagraph;let Z="";return!H&&z?Z="38%":H&&z&&(Z="50%"),{width:Z,...this.getProps(this.nzTitle)}}getAvatarProps(){return{shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large",...this.getProps(this.nzAvatar)}}getParagraphProps(){const H=!!this.nzAvatar,z=!!this.nzTitle,Z={};return(!H||!z)&&(Z.width="61%"),Z.rows=!H&&z?3:2,{...Z,...this.getProps(this.nzParagraph)}}getProps(H){return H&&"object"==typeof H?H:{}}getWidthList(){const{width:H,rows:z}=this.paragraph;let Z=[];return H&&Array.isArray(H)?Z=H:H&&!Array.isArray(H)&&(Z=[],Z[z-1]=H),Z}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(H){(H.nzTitle||H.nzAvatar||H.nzParagraph)&&this.updateProps()}static#e=this.\u0275fac=function(z){return new(z||me)(r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:me,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(z,Z){2&z&&r.AVh("ant-skeleton-with-avatar",!!Z.nzAvatar)("ant-skeleton-active",Z.nzActive)("ant-skeleton-round",!!Z.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],standalone:!0,features:[r.OA$,r.aNF],ngContentSelectors:B,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(z,Z){1&z&&(r.NAR(),r.DNE(0,X,5,3,"ng-container",0)(1,V,2,0,"ng-container",0)),2&z&&(r.Y8G("ngIf",Z.nzLoading),r.R7$(),r.Y8G("ngIf",!Z.nzLoading))},dependencies:[x,J,t.bT,t.Sq],encapsulation:2,changeDetection:0})}return me})(),we=(()=>{class me{static#e=this.\u0275fac=function(z){return new(z||me)};static#t=this.\u0275mod=r.$C({type:me});static#n=this.\u0275inj=r.G2t({})}return me})()},7685:(Rt,De,c)=>{c.d(De,{Dq:()=>F,U5:()=>x,pc:()=>ne});var t=c(3953),r=c(4707),g=c(177),e=c(1413),M=c(6977),G=c(6042);const L=["*"],B=J=>({$implicit:J});function A(J,be){}function w(J,be){if(1&J&&(t.j41(0,"span",4),t.DNE(1,A,0,0,"ng-template",5),t.k0s()),2&J){const Oe=t.XpG(),he=Oe.last,we=Oe.index,me=t.XpG();t.xc7("margin-bottom","vertical"===me.nzDirection?he?null:me.spaceSize:null,"px")("margin-right","horizontal"===me.nzDirection?he?null:me.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",me.nzSplit)("ngTemplateOutletContext",t.eq3(6,B,we))}}function I(J,be){if(1&J&&(t.j41(0,"div",1),t.eu8(1,2),t.k0s(),t.DNE(2,w,2,8,"span",3)),2&J){const Oe=be.$implicit,he=be.last,we=t.XpG();t.xc7("margin-bottom","vertical"===we.nzDirection?he?null:we.spaceSize:null,"px")("margin-right","horizontal"===we.nzDirection?he?null:we.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",Oe),t.R7$(),t.Y8G("ngIf",we.nzSplit&&!he)}}let F=(()=>{class J{constructor(){}static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275dir=t.FsC({type:J,selectors:[["","nzSpaceItem",""]],standalone:!0})}return J})();const V={small:8,middle:16,large:24};let x=(()=>{class J{constructor(Oe,he){this.nzConfigService=Oe,this.cdr=he,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=V.small,this.destroy$=new e.B}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?V[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,M.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}static#e=this.\u0275fac=function(he){return new(he||J)(t.rXU(G.yx),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(he,we,me){if(1&he&&t.wni(me,F,4,t.C4Q),2&he){let de;t.mGM(de=t.lsd())&&(we.items=de)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(he,we){2&he&&(t.xc7("flex-wrap",we.nzWrap?"wrap":null),t.AVh("ant-space-horizontal","horizontal"===we.nzDirection)("ant-space-vertical","vertical"===we.nzDirection)("ant-space-align-start","start"===we.mergedAlign)("ant-space-align-end","end"===we.mergedAlign)("ant-space-align-center","center"===we.mergedAlign)("ant-space-align-baseline","baseline"===we.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:[2,"nzWrap","nzWrap",t.L39],nzSize:"nzSize"},exportAs:["NzSpace"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:L,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(he,we){1&he&&(t.NAR(),t.SdG(0),t.DNE(1,I,3,6,"ng-template",0)),2&he&&(t.R7$(),t.Y8G("ngForOf",we.items))},dependencies:[g.T3,g.bT,g.Sq],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,G.H4)()],J.prototype,"nzSize",void 0),J})(),ne=(()=>{class J{static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275mod=t.$C({type:J});static#n=this.\u0275inj=t.G2t({})}return J})()},2983:(Rt,De,c)=>{c.d(De,{a:()=>Z,V:()=>pe});var t=c(4707),r=c(177),g=c(3953),e=c(1413),M=c(4412),G=c(2771),L=c(1584),B=c(9172),A=c(3294),w=c(5558),I=c(9974),F=c(5343),X=c(4360),V=c(8750),ne=c(6977),J=c(6042),be=c(8203);const Oe=["*"];function he(E,S){1&E&&(g.j41(0,"span",3),g.nrm(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),g.k0s())}function we(E,S){}function me(E,S){if(1&E&&(g.j41(0,"div",8),g.EFF(1),g.k0s()),2&E){const R=g.XpG(2);g.R7$(),g.JRh(R.nzTip)}}function de(E,S){if(1&E&&(g.j41(0,"div")(1,"div",5),g.DNE(2,we,0,0,"ng-template",6)(3,me,2,1,"div",7),g.k0s()()),2&E){const R=g.XpG(),Y=g.sdS(1);g.R7$(),g.AVh("ant-spin-rtl","rtl"===R.dir)("ant-spin-spinning",R.isLoading)("ant-spin-lg","large"===R.nzSize)("ant-spin-sm","small"===R.nzSize)("ant-spin-show-text",R.nzTip),g.R7$(),g.Y8G("ngTemplateOutlet",R.nzIndicator||Y),g.R7$(),g.Y8G("ngIf",R.nzTip)}}function H(E,S){if(1&E&&(g.j41(0,"div",9),g.SdG(1),g.k0s()),2&E){const R=g.XpG();g.AVh("ant-spin-blur",R.isLoading)}}const z="spin";let Z=(()=>{class E{constructor(R,Y,se){this.nzConfigService=R,this.cdr=Y,this.directionality=se,this._nzModuleName=z,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new e.B,this.spinning$=new M.t(this.nzSpinning),this.delay$=new G.m(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe((0,B.Z)(this.nzDelay),(0,A.F)(),(0,w.n)(Y=>0===Y?this.spinning$:this.spinning$.pipe(function x(E){return(0,I.N)((S,R)=>{let Y=!1,se=null,Be=null;const Pt=()=>{if(Be?.unsubscribe(),Be=null,Y){Y=!1;const vt=se;se=null,R.next(vt)}};S.subscribe((0,X._)(R,vt=>{Be?.unsubscribe(),Y=!0,se=vt,Be=(0,X._)(R,Pt,F.l),(0,V.Tg)(E(vt)).subscribe(Be)},()=>{Pt(),R.complete()},void 0,()=>{se=Be=null}))})}(se=>(0,L.O)(se?Y:0)))),(0,ne.Q)(this.destroy$)).subscribe(Y=>{this.isLoading=Y,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(z).pipe((0,ne.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe((0,ne.Q)(this.destroy$)).subscribe(Y=>{this.dir=Y,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(R){const{nzSpinning:Y,nzDelay:se}=R;Y&&this.spinning$.next(this.nzSpinning),se&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(J.yx),g.rXU(g.gRc),g.rXU(be.dS,8))};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(Y,se){2&Y&&g.AVh("ant-spin-nested-loading",!se.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",g.Udg],nzSimple:[2,"nzSimple","nzSimple",g.L39],nzSpinning:[2,"nzSpinning","nzSpinning",g.L39]},exportAs:["nzSpin"],standalone:!0,features:[g.GFd,g.OA$,g.aNF],ngContentSelectors:Oe,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(Y,se){1&Y&&(g.NAR(),g.DNE(0,he,5,0,"ng-template",null,0,g.C5r)(2,de,4,12,"div",1)(3,H,2,2,"div",2)),2&Y&&(g.R7$(2),g.Y8G("ngIf",se.isLoading),g.R7$(),g.Y8G("ngIf",!se.nzSimple))},dependencies:[r.bT,r.T3],encapsulation:2})}return(0,t.Cg)([(0,J.H4)()],E.prototype,"nzIndicator",void 0),E})(),pe=(()=>{class E{static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275mod=g.$C({type:E});static#n=this.\u0275inj=g.G2t({})}return E})()},9247:(Rt,De,c)=>{c.d(De,{jc:()=>_o,OL:()=>ci,Kg:()=>wn,SO:()=>Ei,CP:()=>Uo,$G:()=>ds,CC:()=>Ao,aj:()=>yr,GM:()=>eo,Cc:()=>ao,_4:()=>io,oZ:()=>An,IL:()=>Mo,kt:()=>Gr});var t=c(3953),r=c(4707),g=c(3726),e=c(1413),M=c(2771),G=c(4412),L=c(4572),B=c(7786),A=c(983),w=c(7673),I=c(6977),F=c(6354),X=c(3294),V=c(152),x=c(5245),ne=c(5964),J=c(5558),be=c(9172),Oe=c(1986),he=c(1397),we=c(6042),me=c(1025),de=c(2602),H=c(177),z=c(9417),Z=c(513),pe=c(2986),E=c(317),S=c(5103),R=c(3190),Y=c(1377),se=c(1868),Be=c(6389),Pt=c(5930),vt=c(946),wt=c(1672),Le=c(5979),zt=c(6860),xt=c(1997),st=c(8203);const Ct=["nz-pagination-item",""],It=(Ze,Fn)=>({$implicit:Ze,page:Fn});function Tt(Ze,Fn){if(1&Ze&&(t.j41(0,"a"),t.EFF(1),t.k0s()),2&Ze){const fe=t.XpG().page;t.R7$(),t.JRh(fe)}}function en(Ze,Fn){1&Ze&&t.nrm(0,"span",4)}function jt(Ze,Fn){1&Ze&&t.nrm(0,"span",5)}function Vt(Ze,Fn){if(1&Ze&&(t.j41(0,"button",2),t.DNE(1,en,1,0,"span",4)(2,jt,1,0,"span",5),t.k0s()),2&Ze){const fe=t.XpG(2);t.Y8G("disabled",fe.disabled),t.BMQ("title",fe.locale.prev_page),t.R7$(),t.vxM("rtl"===fe.direction?1:2)}}function fn(Ze,Fn){1&Ze&&t.nrm(0,"span",5)}function Hn(Ze,Fn){1&Ze&&t.nrm(0,"span",4)}function zn(Ze,Fn){if(1&Ze&&(t.j41(0,"button",2),t.DNE(1,fn,1,0,"span",5)(2,Hn,1,0,"span",4),t.k0s()),2&Ze){const fe=t.XpG(2);t.Y8G("disabled",fe.disabled),t.BMQ("title",fe.locale.next_page),t.R7$(),t.vxM("rtl"===fe.direction?1:2)}}function bt(Ze,Fn){1&Ze&&t.nrm(0,"span",8)}function At(Ze,Fn){1&Ze&&t.nrm(0,"span",9)}function Et(Ze,Fn){if(1&Ze&&t.DNE(0,bt,1,0,"span",8)(1,At,1,0,"span",9),2&Ze){const fe=t.XpG(3);t.vxM("rtl"===fe.direction?0:1)}}function Ot(Ze,Fn){1&Ze&&t.nrm(0,"span",9)}function Yt(Ze,Fn){1&Ze&&t.nrm(0,"span",8)}function Ue(Ze,Fn){if(1&Ze&&t.DNE(0,Ot,1,0,"span",9)(1,Yt,1,0,"span",8),2&Ze){const fe=t.XpG(3);t.vxM("rtl"===fe.direction?0:1)}}function Ae(Ze,Fn){if(1&Ze&&(t.j41(0,"a",3)(1,"div",6),t.DNE(2,Et,2,1)(3,Ue,2,1),t.j41(4,"span",7),t.EFF(5,"\u2022\u2022\u2022"),t.k0s()()()),2&Ze){let fe;const We=t.XpG().$implicit;t.R7$(2),t.vxM("prev_5"===(fe=We)?2:"next_5"===fe?3:-1)}}function ie(Ze,Fn){if(1&Ze&&t.DNE(0,Tt,2,1,"a")(1,Vt,3,3,"button",2)(2,zn,3,3,"button",2)(3,Ae,6,1,"a",3),2&Ze){let fe;t.vxM("page"===(fe=Fn.$implicit)?0:"prev"===fe?1:"next"===fe?2:3)}}function _e(Ze,Fn){}const oe=["nz-pagination-options",""],Fe=(Ze,Fn)=>Fn.value;function et(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-option",3),2&Ze){const fe=Fn.$implicit;t.Y8G("nzLabel",fe.label)("nzValue",fe.value)}}function ut(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-select",2),t.bIt("ngModelChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onPageSizeChange(ct))}),t.Z7z(1,et,1,2,"nz-option",3,Fe),t.k0s()}if(2&Ze){const fe=t.XpG();t.Y8G("nzDisabled",fe.disabled)("nzSize",fe.nzSize)("ngModel",fe.pageSize),t.R7$(),t.Dyx(fe.listOfPageSizeOption)}}function Kt(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"div",1),t.EFF(1),t.j41(2,"input",4),t.bIt("keydown.enter",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.jumpToPageViaInput(ct))}),t.k0s(),t.EFF(3),t.k0s()}if(2&Ze){const fe=t.XpG();t.R7$(),t.SpI(" ",fe.locale.jump_to," "),t.R7$(),t.Y8G("disabled",fe.disabled),t.R7$(),t.SpI(" ",fe.locale.page," ")}}const cn=["containerTemplate"],Tn=(Ze,Fn)=>({$implicit:Ze,range:Fn});function Wn(Ze,Fn){}function kn(Ze,Fn){if(1&Ze&&(t.j41(0,"li",1),t.DNE(1,Wn,0,0,"ng-template",4),t.k0s()),2&Ze){const fe=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",fe.showTotal)("ngTemplateOutletContext",t.l_i(2,Tn,fe.total,fe.ranges))}}function Vn(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"li",5),t.bIt("gotoIndex",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.jumpPage(ct))})("diffIndex",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.jumpDiff(ct))}),t.k0s()}if(2&Ze){const fe=Fn.$implicit,We=t.XpG(2);t.Y8G("locale",We.locale)("type",fe.type)("index",fe.index)("disabled",!!fe.disabled)("itemRender",We.itemRender)("active",We.pageIndex===fe.index)("direction",We.dir)}}function Un(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"li",6),t.bIt("pageIndexChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageIndexChange(ct))})("pageSizeChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageSizeChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(2);t.Y8G("total",fe.total)("locale",fe.locale)("disabled",fe.disabled)("nzSize",fe.nzSize)("showSizeChanger",fe.showSizeChanger)("showQuickJumper",fe.showQuickJumper)("pageIndex",fe.pageIndex)("pageSize",fe.pageSize)("pageSizeOptions",fe.pageSizeOptions)}}function dn(Ze,Fn){if(1&Ze&&(t.j41(0,"ul"),t.DNE(1,kn,2,5,"li",1),t.Z7z(2,Vn,1,7,"li",2,t.BUC().trackByPageItem,!0),t.DNE(4,Un,1,9,"li",3),t.k0s()),2&Ze){const fe=t.XpG();t.R7$(),t.vxM(fe.showTotal?1:-1),t.R7$(),t.Dyx(fe.listOfPageItem),t.R7$(2),t.vxM(fe.showQuickJumper||fe.showSizeChanger?4:-1)}}function qt(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"ul")(1,"li",1),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.prePage())}),t.k0s(),t.j41(2,"li",2)(3,"input",3),t.bIt("keydown.enter",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.jumpToPageViaInput(ct))}),t.k0s(),t.j41(4,"span",4),t.EFF(5,"/"),t.k0s(),t.EFF(6),t.k0s(),t.j41(7,"li",5),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.nextPage())}),t.k0s()()}if(2&Ze){const fe=t.XpG();t.R7$(),t.Y8G("locale",fe.locale)("disabled",fe.isFirstIndex)("direction",fe.dir)("itemRender",fe.itemRender),t.BMQ("title",fe.locale.prev_page),t.R7$(),t.BMQ("title",fe.pageIndex+"/"+fe.lastIndex),t.R7$(),t.Y8G("disabled",fe.disabled)("value",fe.pageIndex),t.R7$(3),t.SpI(" ",fe.lastIndex," "),t.R7$(),t.Y8G("locale",fe.locale)("disabled",fe.isLastIndex)("direction",fe.dir)("itemRender",fe.itemRender),t.BMQ("title",null==fe.locale?null:fe.locale.next_page)}}function On(Ze,Fn){}function Ut(Ze,Fn){if(1&Ze&&t.DNE(0,On,0,0,"ng-template",4),2&Ze){t.XpG(2);const fe=t.sdS(2);t.Y8G("ngTemplateOutlet",fe.template)}}function Ye(Ze,Fn){}function ue(Ze,Fn){if(1&Ze&&t.DNE(0,Ye,0,0,"ng-template",4),2&Ze){t.XpG(2);const fe=t.sdS(4);t.Y8G("ngTemplateOutlet",fe.template)}}function te(Ze,Fn){if(1&Ze&&t.DNE(0,Ut,1,1,null,4)(1,ue,1,1,null,4),2&Ze){const fe=t.XpG();t.vxM(fe.nzSimple?0:1)}}let q=(()=>{class Ze{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new t.bkB,this.gotoIndex=new t.bkB,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(fe){const{locale:We,index:ct,type:sn}=fe;(We||ct||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])}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(We,ct){1&We&&t.bIt("click",function(){return ct.clickItem()}),2&We&&(t.BMQ("title",ct.title),t.AVh("ant-pagination-prev","prev"===ct.type)("ant-pagination-next","next"===ct.type)("ant-pagination-item","page"===ct.type)("ant-pagination-jump-prev","prev_5"===ct.type)("ant-pagination-jump-prev-custom-icon","prev_5"===ct.type)("ant-pagination-jump-next","next_5"===ct.type)("ant-pagination-jump-next-custom-icon","next_5"===ct.type)("ant-pagination-disabled",ct.disabled)("ant-pagination-item-active",ct.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},standalone:!0,features:[t.OA$,t.aNF],attrs:Ct,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",1,"ant-pagination-item-link",3,"disabled"],[1,"ant-pagination-item-link"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],[1,"ant-pagination-item-container"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"]],template:function(We,ct){if(1&We&&t.DNE(0,ie,4,1,"ng-template",null,0,t.C5r)(2,_e,0,0,"ng-template",1),2&We){const sn=t.sdS(1);t.R7$(2),t.Y8G("ngTemplateOutlet",ct.itemRender||sn)("ngTemplateOutletContext",t.l_i(2,It,ct.type,ct.index))}},dependencies:[S.Y3,S.Dn,H.T3],encapsulation:2,changeDetection:0})}return Ze})(),Xe=(()=>{class Ze{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 t.bkB,this.pageSizeChange=new t.bkB,this.listOfPageSizeOption=[]}onPageSizeChange(fe){this.pageSize!==fe&&this.pageSizeChange.next(fe)}jumpToPageViaInput(fe){const We=fe.target,ct=Math.floor((0,E.Ro)(We.value,this.pageIndex));this.pageIndexChange.next(ct),We.value=""}ngOnChanges(fe){const{pageSize:We,pageSizeOptions:ct,locale:sn}=fe;(We||ct||sn)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map($n=>({value:$n,label:`${$n} ${this.locale.items_per_page}`})))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,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"},standalone:!0,features:[t.OA$,t.aNF],attrs:oe,decls:2,vars:2,consts:[[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel"],[1,"ant-pagination-options-quick-jumper"],[1,"ant-pagination-options-size-changer",3,"ngModelChange","nzDisabled","nzSize","ngModel"],[3,"nzLabel","nzValue"],[3,"keydown.enter","disabled"]],template:function(We,ct){1&We&&t.DNE(0,ut,3,3,"nz-select",0)(1,Kt,4,3,"div",1),2&We&&(t.vxM(ct.showSizeChanger?0:-1),t.R7$(),t.vxM(ct.showQuickJumper?1:-1))},dependencies:[xt.DH,xt.ld,xt.WI,z.YN,z.BC,z.vS],encapsulation:2,changeDetection:0})}return Ze})(),dt=(()=>{class Ze{constructor(fe,We,ct,sn){this.cdr=fe,this.renderer=We,this.elementRef=ct,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 t.bkB,this.pageSizeChange=new t.bkB,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new e.B,We.removeChild(We.parentNode(ct.nativeElement),ct.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.dir=fe,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(fe){this.onPageIndexChange(fe)}jumpDiff(fe){this.jumpPage(this.pageIndex+fe)}trackByPageItem(fe,We){return`${We.type}-${We.index}`}onPageIndexChange(fe){this.pageIndexChange.next(fe)}onPageSizeChange(fe){this.pageSizeChange.next(fe)}getLastIndex(fe,We){return Math.ceil(fe/We)}buildIndexes(){const fe=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,fe)}getListOfPageItem(fe,We){const sn=($n,Bn)=>{const fi=[];for(let ki=$n;ki<=Bn;ki++)fi.push({index:ki,type:"page"});return fi};return $n=We<=9?sn(1,We):((Bn,fi)=>{let ki=[];const Eo={type:"prev_5"},di={type:"next_5"},ho=sn(1,1),Oo=sn(We,We);return ki=Bn<5?[...sn(2,4===Bn?6:5),di]:Bn{class Ze{constructor(fe,We,ct,sn){this.cdr=fe,this.renderer=We,this.elementRef=ct,this.directionality=sn,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new t.bkB,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new e.B,We.removeChild(We.parentNode(ct.nativeElement),ct.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.dir=fe,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(fe){const We=fe.target,ct=(0,E.Ro)(We.value,this.pageIndex);this.onPageIndexChange(ct),We.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(fe){this.pageIndexChange.next(fe)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(fe){const{pageIndex:We,total:ct,pageSize:sn}=fe;(We||ct||sn)&&this.updateBindingValue()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.gRc),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-pagination-simple"]],viewQuery:function(We,ct){if(1&We&&t.GBs(cn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.template=sn.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"click","locale","disabled","direction","itemRender"],[1,"ant-pagination-simple-pager"],["size","3",3,"keydown.enter","disabled","value"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"click","locale","disabled","direction","itemRender"]],template:function(We,ct){1&We&&t.DNE(0,qt,8,14,"ng-template",null,0,t.C5r)},dependencies:[q],encapsulation:2,changeDetection:0})}return Ze})(),Qe=(()=>{class Ze{validatePageIndex(fe,We){return fe>We?We:fe<1?1:fe}onPageIndexChange(fe){const We=this.getLastIndex(this.nzTotal,this.nzPageSize),ct=this.validatePageIndex(fe,We);ct!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=ct,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(fe){this.nzPageSize=fe,this.nzPageSizeChange.emit(fe);const We=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>We&&this.onPageIndexChange(We)}onTotalChange(fe){const We=this.getLastIndex(fe,this.nzPageSize);this.nzPageIndex>We&&Promise.resolve().then(()=>{this.onPageIndexChange(We),this.cdr.markForCheck()})}getLastIndex(fe,We){return Math.ceil(fe/We)}constructor(fe,We,ct,sn,$n){this.i18n=fe,this.cdr=We,this.breakpointService=ct,this.nzConfigService=sn,this.directionality=$n,this._nzModuleName="pagination",this.nzPageSizeChange=new t.bkB,this.nzPageIndexChange=new t.bkB,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 e.B,this.total$=new M.m(1)}ngOnInit(){this.i18n.localeChange.pipe((0,I.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.onTotalChange(fe)}),this.breakpointService.subscribe(me.fe).pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.nzResponsive&&(this.size=fe===me.pt.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(fe){const{nzHideOnSinglePage:We,nzTotal:ct,nzPageSize:sn,nzSize:$n}=fe;ct&&this.total$.next(this.nzTotal),(We||ct||sn)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),$n&&(this.size=$n.currentValue)}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(Y.Og),t.rXU(t.gRc),t.rXU(me.jp),t.rXU(we.yx),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(We,ct){2&We&&t.AVh("ant-pagination-simple",ct.nzSimple)("ant-pagination-disabled",ct.nzDisabled)("ant-pagination-mini",!ct.nzSimple&&"small"===ct.size)("ant-pagination-rtl","rtl"===ct.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzResponsive:[2,"nzResponsive","nzResponsive",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzTotal:[2,"nzTotal","nzTotal",t.Udg],nzPageIndex:[2,"nzPageIndex","nzPageIndex",t.Udg],nzPageSize:[2,"nzPageSize","nzPageSize",t.Udg]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:5,vars:18,consts:[["simplePagination",""],["defaultPagination",""],[3,"pageIndexChange","disabled","itemRender","locale","pageSize","total","pageIndex"],[3,"pageIndexChange","pageSizeChange","nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet"]],template:function(We,ct){if(1&We){const sn=t.RV6();t.DNE(0,te,2,1),t.j41(1,"nz-pagination-simple",2,0),t.bIt("pageIndexChange",function(Bn){return t.eBV(sn),t.Njj(ct.onPageIndexChange(Bn))}),t.k0s(),t.j41(3,"nz-pagination-default",3,1),t.bIt("pageIndexChange",function(Bn){return t.eBV(sn),t.Njj(ct.onPageIndexChange(Bn))})("pageSizeChange",function(Bn){return t.eBV(sn),t.Njj(ct.onPageSizeChange(Bn))}),t.k0s()}2&We&&(t.vxM(ct.showPagination?0:-1),t.R7$(),t.Y8G("disabled",ct.nzDisabled)("itemRender",ct.nzItemRender)("locale",ct.locale)("pageSize",ct.nzPageSize)("total",ct.nzTotal)("pageIndex",ct.nzPageIndex),t.R7$(2),t.Y8G("nzSize",ct.size)("itemRender",ct.nzItemRender)("showTotal",ct.nzShowTotal)("disabled",ct.nzDisabled)("locale",ct.locale)("showSizeChanger",ct.nzShowSizeChanger)("showQuickJumper",ct.nzShowQuickJumper)("total",ct.nzTotal)("pageIndex",ct.nzPageIndex)("pageSize",ct.nzPageSize)("pageSizeOptions",ct.nzPageSizeOptions))},dependencies:[H.T3,at,dt],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzSize",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzPageSizeOptions",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzShowSizeChanger",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzShowQuickJumper",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzSimple",void 0),Ze})(),Ee=(()=>{class Ze{static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275mod=t.$C({type:Ze});static#n=this.\u0275inj=t.G2t({imports:[Qe,at,Xe,q,dt]})}return Ze})();var Je=c(2983),re=c(7806);const ze=["*"],gt=(Ze,Fn)=>Fn.value;function Ke(Ze,Fn){}function Pe(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"label",14),t.bIt("ngModelChange",function(){t.eBV(fe);const ct=t.XpG().$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG().$implicit;t.Y8G("ngModel",fe.checked)}}function Re(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"label",15),t.bIt("ngModelChange",function(){t.eBV(fe);const ct=t.XpG().$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG().$implicit;t.Y8G("ngModel",fe.checked)}}function $(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"li",11),t.bIt("click",function(){const ct=t.eBV(fe).$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.DNE(1,Pe,1,1,"label",12)(2,Re,1,1,"label",13),t.j41(3,"span"),t.EFF(4),t.k0s()()}if(2&Ze){const fe=Fn.$implicit,We=t.XpG(2);t.Y8G("nzSelected",fe.checked),t.R7$(),t.vxM(We.filterMultiple?2:1),t.R7$(3),t.JRh(fe.text)}}function ce(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-filter-trigger",3),t.bIt("nzVisibleChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onVisibleChange(ct))}),t.nrm(1,"span",4),t.k0s(),t.j41(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),t.Z7z(6,$,5,3,"li",7,gt),t.k0s(),t.j41(8,"div",8)(9,"button",9),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.reset())}),t.EFF(10),t.k0s(),t.j41(11,"button",10),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.confirm())}),t.EFF(12),t.k0s()()()()}if(2&Ze){const fe=t.sdS(3),We=t.XpG();t.Y8G("nzVisible",We.isVisible)("nzActive",We.isChecked)("nzDropdownMenu",fe),t.R7$(6),t.Dyx(We.listOfParsedFilter),t.R7$(3),t.Y8G("disabled",!We.isChecked),t.R7$(),t.SpI(" ",We.locale.filterReset," "),t.R7$(2),t.JRh(We.locale.filterConfirm)}}function N(Ze,Fn){if(1&Ze&&t.eu8(0,2),2&Ze){const fe=t.XpG();t.Y8G("ngTemplateOutlet",fe.extraTemplate)}}function ke(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"label",3),t.bIt("ngModelChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onCheckedChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG();t.AVh("ant-table-selection-select-all-custom",fe.showRowSelection),t.Y8G("ngModel",fe.checked)("nzDisabled",fe.disabled)("nzIndeterminate",fe.indeterminate),t.BMQ("aria-label",fe.label)}}function ve(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const ct=t.eBV(fe).$implicit;return t.Njj(ct.onSelect())}),t.EFF(1),t.k0s()}if(2&Ze){const fe=Fn.$implicit;t.R7$(),t.SpI(" ",fe.text," ")}}function K(Ze,Fn){if(1&Ze&&(t.j41(0,"div",2)(1,"span",4),t.nrm(2,"span",5),t.k0s(),t.j41(3,"nz-dropdown-menu",null,0)(5,"ul",6),t.Z7z(6,ve,2,1,"li",7,t.fX1),t.k0s()()()),2&Ze){const fe=t.sdS(4),We=t.XpG();t.R7$(),t.Y8G("nzDropdownMenu",fe),t.R7$(5),t.Dyx(We.listOfSelections)}}function U(Ze,Fn){}function ge(Ze,Fn){if(1&Ze&&t.nrm(0,"span",6),2&Ze){const fe=t.XpG();t.AVh("active","ascend"===fe.sortOrder)}}function qe(Ze,Fn){if(1&Ze&&t.nrm(0,"span",7),2&Ze){const fe=t.XpG();t.AVh("active","descend"===fe.sortOrder)}}const rt=["nzChecked",""];function Ft(Ze,Fn){}function on(Ze,Fn){if(1&Ze&&t.DNE(0,Ft,0,0,"ng-template",2),2&Ze){const fe=t.XpG(2);t.Y8G("ngTemplateOutlet",fe.nzExpandIcon)}}function Cn(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"button",4),t.bIt("expandChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onExpandChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(2);t.Y8G("expand",fe.nzExpand)("spaceMode",!fe.nzShowExpand)}}function Zn(Ze,Fn){if(1&Ze&&(t.nrm(0,"nz-row-indent",1),t.DNE(1,on,1,1,null,2)(2,Cn,1,2,"button",3)),2&Ze){const fe=t.XpG();t.Y8G("indentSize",fe.nzIndentSize),t.R7$(),t.vxM(fe.nzExpandIcon?1:2)}}function jn(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"label",5),t.bIt("ngModelChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onCheckedChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG();t.Y8G("nzDisabled",fe.nzDisabled)("ngModel",fe.nzChecked)("nzIndeterminate",fe.nzIndeterminate),t.BMQ("aria-label",fe.nzLabel)}}const Gn=["nzColumnKey",""],zi=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Oi=["[nz-th-extra]","nz-filter-trigger","*"];function lo(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-table-filter",6),t.bIt("filterChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onFilterValueChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(),We=t.sdS(3),ct=t.sdS(5);t.Y8G("contentTemplate",We)("extraTemplate",ct)("customFilter",fe.nzCustomFilter)("filterMultiple",fe.nzFilterMultiple)("listOfFilter",fe.nzFilters)}}function Zi(Ze,Fn){if(1&Ze&&t.eu8(0,5),2&Ze){t.XpG();const fe=t.sdS(3);t.Y8G("ngTemplateOutlet",fe)}}function Bo(Ze,Fn){}function bo(Ze,Fn){if(1&Ze&&t.DNE(0,Bo,0,0,"ng-template",5),2&Ze){const fe=t.XpG(),We=t.sdS(7),ct=t.sdS(9);t.Y8G("ngTemplateOutlet",fe.nzShowSort?We:ct)}}function Mr(Ze,Fn){1&Ze&&(t.SdG(0),t.SdG(1,1))}function rr(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-sorters",7),2&Ze){const fe=t.XpG(),We=t.sdS(9);t.Y8G("sortOrder",fe.sortOrder)("sortDirections",fe.sortDirections)("contentTemplate",We)}}function lt(Ze,Fn){1&Ze&&t.SdG(0,2)}const Lt=["nzSelections",""],$t=["nz-table-content",""];function mn(Ze,Fn){if(1&Ze&&t.nrm(0,"col"),2&Ze){const fe=Fn.$implicit;t.xc7("width",fe)("min-width",fe)}}function hn(Ze,Fn){}function Yn(Ze,Fn){if(1&Ze&&(t.j41(0,"thead",1),t.DNE(1,hn,0,0,"ng-template",2),t.k0s()),2&Ze){const fe=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",fe.theadTemplate)}}function En(Ze,Fn){}const Kn=["tdElement"],oi=["nz-table-fixed-row",""];function gi(Ze,Fn){}function ro(Ze,Fn){if(1&Ze&&(t.j41(0,"div",5),t.nI1(1,"async"),t.DNE(2,gi,0,0,"ng-template",4),t.k0s()),2&Ze){const fe=t.XpG(),We=t.sdS(6);t.xc7("width",t.bMT(1,3,fe.hostWidth$),"px"),t.R7$(2),t.Y8G("ngTemplateOutlet",We)}}function vi(Ze,Fn){}function pn(Ze,Fn){if(1&Ze&&t.DNE(0,vi,0,0,"ng-template",4),2&Ze){t.XpG();const fe=t.sdS(6);t.Y8G("ngTemplateOutlet",fe)}}function $i(Ze,Fn){1&Ze&&t.SdG(0)}const Mi=["nz-table-measure-row",""];function Ni(Ze,Fn){1&Ze&&t.nrm(0,"td",1,0)}function so(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"tr",2),t.bIt("listOfAutoWidth",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onListOfAutoWidthChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG();t.Y8G("listOfMeasureColumn",fe)}}function Yi(Ze,Fn){if(1&Ze&&t.DNE(0,so,1,1,"tr",1),2&Ze){const fe=t.XpG();t.vxM(fe.isInsideTable&&Fn.length?0:-1)}}function Xo(Ze,Fn){if(1&Ze&&(t.j41(0,"tr",0),t.nrm(1,"nz-embed-empty",3),t.nI1(2,"async"),t.k0s()),2&Ze){const fe=t.XpG();t.R7$(),t.Y8G("specificContent",t.bMT(2,1,fe.noResult$))}}const Ki=["tableHeaderElement"],Zo=["tableBodyElement"],pr=(Ze,Fn)=>({$implicit:Ze,index:Fn});function fo(Ze,Fn){if(1&Ze&&(t.j41(0,"div",5,1),t.nrm(2,"table",7),t.k0s()),2&Ze){const fe=t.XpG(2);t.Y8G("ngStyle",fe.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth)("contentTemplate",fe.contentTemplate)}}function po(Ze,Fn){}function fr(Ze,Fn){if(1&Ze&&(t.qex(0),t.DNE(1,po,0,0,"ng-template",11),t.bVm()),2&Ze){const fe=Fn.$implicit,We=Fn.index,ct=t.XpG(3);t.R7$(),t.Y8G("ngTemplateOutlet",ct.virtualTemplate)("ngTemplateOutletContext",t.l_i(2,pr,fe,We))}}function $o(Ze,Fn){if(1&Ze&&(t.j41(0,"cdk-virtual-scroll-viewport",8,1)(2,"table",9)(3,"tbody"),t.DNE(4,fr,2,5,"ng-container",10),t.k0s()()()),2&Ze){const fe=t.XpG(2);t.xc7("height",fe.data.length?fe.scrollY:fe.noDataVirtualHeight),t.Y8G("itemSize",fe.virtualItemSize)("maxBufferPx",fe.virtualMaxBufferPx)("minBufferPx",fe.virtualMinBufferPx),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth),t.R7$(2),t.Y8G("cdkVirtualForOf",fe.data)("cdkVirtualForTrackBy",fe.virtualForTrackBy)}}function Lr(Ze,Fn){if(1&Ze&&(t.j41(0,"div",3,0),t.nrm(2,"table",4),t.k0s(),t.DNE(3,fo,3,4,"div",5)(4,$o,5,9,"cdk-virtual-scroll-viewport",6)),2&Ze){const fe=t.XpG();t.Y8G("ngStyle",fe.headerStyleMap),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth)("theadTemplate",fe.theadTemplate),t.R7$(),t.vxM(fe.virtualTemplate?4:3)}}function qi(Ze,Fn){if(1&Ze&&(t.j41(0,"div",2,1),t.nrm(2,"table",12),t.k0s()),2&Ze){const fe=t.XpG();t.Y8G("ngStyle",fe.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth)("theadTemplate",fe.theadTemplate)("contentTemplate",fe.contentTemplate)}}function xn(Ze,Fn){if(1&Ze&&(t.qex(0),t.EFF(1),t.bVm()),2&Ze){const fe=t.XpG();t.R7$(),t.JRh(fe.title)}}function Ci(Ze,Fn){if(1&Ze&&(t.qex(0),t.EFF(1),t.bVm()),2&Ze){const fe=t.XpG();t.R7$(),t.JRh(fe.footer)}}function Sr(Ze,Fn){}function es(Ze,Fn){if(1&Ze&&t.DNE(0,Sr,0,0,"ng-template",4),2&Ze){t.XpG();const fe=t.sdS(10);t.Y8G("ngTemplateOutlet",fe)}}function us(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-title-footer",6),2&Ze){const fe=t.XpG();t.Y8G("title",fe.nzTitle)}}function qo(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-inner-scroll",7),2&Ze){const fe=t.XpG(),We=t.sdS(3),ct=t.sdS(12);t.Y8G("data",fe.data)("scrollX",fe.scrollX)("scrollY",fe.scrollY)("contentTemplate",ct)("listOfColWidth",fe.listOfAutoColWidth)("theadTemplate",fe.theadTemplate)("verticalScrollBarWidth",fe.verticalScrollBarWidth)("virtualTemplate",fe.nzVirtualScrollDirective?fe.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",fe.nzVirtualItemSize)("virtualMaxBufferPx",fe.nzVirtualMaxBufferPx)("virtualMinBufferPx",fe.nzVirtualMinBufferPx)("tableMainElement",We)("virtualForTrackBy",fe.nzVirtualForTrackBy)("noDataVirtualHeight",fe.noDataVirtualHeight)}}function Gs(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-inner-default",8),2&Ze){const fe=t.XpG(),We=t.sdS(12);t.Y8G("tableLayout",fe.nzTableLayout)("listOfColWidth",fe.listOfManualColWidth)("theadTemplate",fe.theadTemplate)("contentTemplate",We)}}function tt(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-title-footer",9),2&Ze){const fe=t.XpG();t.Y8G("footer",fe.nzFooter)}}function Ce(Ze,Fn){}function Ve(Ze,Fn){if(1&Ze&&t.DNE(0,Ce,0,0,"ng-template",4),2&Ze){t.XpG();const fe=t.sdS(10);t.Y8G("ngTemplateOutlet",fe)}}function nt(Ze,Fn){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-pagination",11),t.bIt("nzPageSizeChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageSizeChange(ct))})("nzPageIndexChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageIndexChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(2);t.Y8G("hidden",!fe.showPagination)("nzShowSizeChanger",fe.nzShowSizeChanger)("nzPageSizeOptions",fe.nzPageSizeOptions)("nzItemRender",fe.nzItemRender)("nzShowQuickJumper",fe.nzShowQuickJumper)("nzHideOnSinglePage",fe.nzHideOnSinglePage)("nzShowTotal",fe.nzShowTotal)("nzSize","small"===fe.nzPaginationType?"small":"default"===fe.nzSize?"default":"small")("nzPageSize",fe.nzPageSize)("nzTotal",fe.nzTotal)("nzSimple",fe.nzSimple)("nzPageIndex",fe.nzPageIndex)}}function Mt(Ze,Fn){if(1&Ze&&t.DNE(0,nt,1,12,"nz-pagination",10),2&Ze){const fe=t.XpG();t.vxM(fe.nzShowPagination&&fe.data.length?0:-1)}}function Wt(Ze,Fn){1&Ze&&t.SdG(0)}const tn=["contentTemplate"];function rn(Ze,Fn){1&Ze&&t.SdG(0)}function bn(Ze,Fn){}function Mn(Ze,Fn){if(1&Ze&&t.DNE(0,bn,0,0,"ng-template",1),2&Ze){t.XpG();const fe=t.sdS(1);t.Y8G("ngTemplateOutlet",fe)}}let wn=(()=>{class Ze{onVisibleChange(fe){this.nzVisible=fe,this.nzVisibleChange.next(fe)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}constructor(fe,We,ct,sn){this.nzConfigService=fe,this.ngZone=We,this.cdr=ct,this.destroy$=sn,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.nzDropdown.nativeElement,"click").pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{fe.stopPropagation()})})}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(we.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(me.y4))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-filter-trigger"]],viewQuery:function(We,ct){if(1&We&&t.GBs(de.j3,7,t.aKT),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.nzDropdown=sn.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],standalone:!0,features:[t.Jv_([me.y4]),t.GFd,t.aNF],ngContentSelectors:ze,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"span",0),t.bIt("nzVisibleChange",function($n){return ct.onVisibleChange($n)}),t.SdG(1),t.k0s()),2&We&&(t.AVh("active",ct.nzActive)("ant-table-filter-open",ct.nzVisible),t.Y8G("nzBackdrop",ct.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",ct.nzDropdownMenu)("nzVisible",ct.nzVisible))},dependencies:[de.Cu,de.j3],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzBackdrop",void 0),Ze})(),Qn=(()=>{class Ze{check(fe){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(We=>We===fe?{...We,checked:!fe.checked}:We),fe.checked=!fe.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(We=>({...We,checked:We===fe})),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(fe){this.isVisible=fe,fe?this.listOfChecked=this.listOfParsedFilter.filter(We=>We.checked).map(We=>We.value):this.emitFilterData()}emitFilterData(){const fe=this.listOfParsedFilter.filter(We=>We.checked).map(We=>We.value);(0,E.r1)(this.listOfChecked,fe)||this.filterChange.emit(this.filterMultiple?fe:fe.length>0?fe[0]:null)}parseListOfFilter(fe,We){return fe.map(ct=>({text:ct.text,value:ct.value,checked:!We&&!!ct.byDefault}))}getCheckedStatus(fe){return fe.some(We=>We.checked)}constructor(fe,We){this.cdr=fe,this.i18n=We,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new t.bkB,this.destroy$=new e.B,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}ngOnInit(){this.i18n.localeChange.pipe((0,I.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(fe){const{listOfFilter:We}=fe;We&&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()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.gRc),t.rXU(Y.Og))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[t.OA$,t.aNF],decls:4,vars:2,consts:[["filterMenu","nzDropdownMenu"],[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[3,"nzVisibleChange","nzVisible","nzActive","nzDropdownMenu"],["nz-icon","","nzType","filter","nzTheme","fill"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"click","disabled"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"click","nzSelected"],["nz-radio","",3,"ngModel"],["nz-checkbox","",3,"ngModel"],["nz-radio","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(We,ct){1&We&&(t.j41(0,"span",1),t.DNE(1,Ke,0,0,"ng-template",2),t.k0s(),t.DNE(2,ce,13,6)(3,N,1,1,"ng-container",2)),2&We&&(t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate),t.R7$(),t.vxM(ct.customFilter?3:2))},dependencies:[H.T3,wn,S.Y3,S.Dn,de.Cu,se.jS,se.CU,de.wQ,R.lx,pe.IJ,pe.$g,z.YN,z.BC,z.vS,Z.Zw,Z.aO,Be.c,Pt.p],encapsulation:2,changeDetection:0})}return Ze})(),qn=(()=>{class Ze{constructor(){this.expand=!1,this.spaceMode=!1,this.expandChange=new t.bkB}onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(We,ct){1&We&&t.bIt("click",function(){return ct.onHostClick()}),2&We&&(t.Mr5("type","button"),t.AVh("ant-table-row-expand-icon-expanded",!ct.spaceMode&&!0===ct.expand)("ant-table-row-expand-icon-collapsed",!ct.spaceMode&&!1===ct.expand)("ant-table-row-expand-icon-spaced",ct.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"},standalone:!0})}return Ze})(),pi=(()=>{class Ze{constructor(){this.indentSize=0}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(We,ct){2&We&&t.xc7("padding-left",ct.indentSize,"px")},inputs:{indentSize:"indentSize"},standalone:!0})}return Ze})(),ei=(()=>{class Ze{constructor(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.label=null,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new t.bkB}onCheckedChange(fe){this.checked=fe,this.checkedChange.emit(fe)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["selectionMenu","nzDropdownMenu"],["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate"],[1,"ant-table-selection-extra"],["nz-checkbox","",3,"ngModelChange","ngModel","nzDisabled","nzIndeterminate"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(We,ct){1&We&&t.DNE(0,ke,1,6,"label",1)(1,K,8,1,"div",2),2&We&&(t.vxM(ct.showCheckbox?0:-1),t.R7$(),t.vxM(ct.showRowSelection?1:-1))},dependencies:[z.YN,z.BC,z.vS,pe.IJ,pe.$g,de.Cu,se.jS,se.CU,de.j3,de.wQ,S.Y3,S.Dn],encapsulation:2,changeDetection:0})}return Ze})(),li=(()=>{class Ze{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(fe){const{sortDirections:We}=fe;We&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},standalone:!0,features:[t.OA$,t.aNF],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",1,"ant-table-column-sorter-up",3,"active"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down",3,"active"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(We,ct){1&We&&(t.j41(0,"span",0),t.DNE(1,U,0,0,"ng-template",1),t.k0s(),t.j41(2,"span",2)(3,"span",3),t.DNE(4,ge,1,2,"span",4)(5,qe,1,2,"span",5),t.k0s()()),2&We&&(t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate),t.R7$(),t.AVh("ant-table-column-sorter-full",ct.isDown&&ct.isUp),t.R7$(2),t.vxM(ct.isUp?4:-1),t.R7$(),t.vxM(ct.isDown?5:-1))},dependencies:[S.Y3,S.Dn,H.T3],encapsulation:2,changeDetection:0})}return Ze})(),ci=(()=>{class Ze{setAutoLeftWidth(fe){this.renderer.setStyle(this.elementRef.nativeElement,"left",fe)}setAutoRightWidth(fe){this.renderer.setStyle(this.elementRef.nativeElement,"right",fe)}setIsFirstRight(fe){this.setFixClass(fe,"ant-table-cell-fix-right-first")}setIsLastLeft(fe){this.setFixClass(fe,"ant-table-cell-fix-left-last")}setFixClass(fe,We){this.renderer.removeClass(this.elementRef.nativeElement,We),fe&&this.renderer.addClass(this.elementRef.nativeElement,We)}constructor(fe,We){this.renderer=fe,this.elementRef=We,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new e.B,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 fe=We=>"string"==typeof We&&""!==We?We:null;this.setAutoLeftWidth(fe(this.nzLeft)),this.setAutoRightWidth(fe(this.nzRight)),this.changes$.next()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(We,ct){2&We&&(t.xc7("position",ct.isFixed?"sticky":null),t.AVh("ant-table-cell-fix-right",ct.isFixedRight)("ant-table-cell-fix-left",ct.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},standalone:!0,features:[t.OA$]})}return Ze})(),mi=(()=>{class Ze{setTheadTemplate(fe){this.theadTemplate$.next(fe)}setHasFixLeft(fe){this.hasFixLeft$.next(fe)}setHasFixRight(fe){this.hasFixRight$.next(fe)}setTableWidthConfig(fe){this.tableWidthConfigPx$.next(fe)}setListOfTh(fe){let We=0;fe.forEach(sn=>{We+=sn.colspan&&+sn.colspan||sn.colSpan&&+sn.colSpan||1});const ct=fe.map(sn=>sn.nzWidth);this.columnCount$.next(We),this.listOfThWidthConfigPx$.next(ct)}setListOfMeasureColumn(fe){const We=[];fe.forEach(ct=>{const sn=ct.colspan&&+ct.colspan||ct.colSpan&&+ct.colSpan||1;for(let $n=0;$n`${We}px`))}setShowEmpty(fe){this.showEmpty$.next(fe)}setNoResult(fe){this.noResult$.next(fe)}setScroll(fe,We){const ct=!(!fe&&!We);ct||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(ct)}constructor(){this.theadTemplate$=new M.m(1),this.hasFixLeft$=new M.m(1),this.hasFixRight$=new M.m(1),this.hostWidth$=new M.m(1),this.columnCount$=new M.m(1),this.showEmpty$=new M.m(1),this.noResult$=new M.m(1),this.listOfThWidthConfigPx$=new G.t([]),this.tableWidthConfigPx$=new G.t([]),this.manualWidthConfigPx$=(0,L.z)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,F.T)(([fe,We])=>fe.length?fe:We)),this.listOfAutoWidthPx$=new M.m(1),this.listOfListOfThWidthPx$=(0,B.h)(this.manualWidthConfigPx$,(0,L.z)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,F.T)(([fe,We])=>fe.length===We.length?fe.map((ct,sn)=>"0px"===ct?We[sn]||null:We[sn]||ct):We))),this.listOfMeasureColumn$=new M.m(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,F.T)(fe=>fe.map(We=>parseInt(We,10)))),this.enableAutoMeasure$=new M.m(1)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275prov=t.jDH({token:Ze,factory:Ze.\u0275fac})}return Ze})(),Ei=(()=>{class Ze{constructor(fe){this.isInsideTable=!1,this.isInsideTable=!!fe}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-cell",ct.isInsideTable)},standalone:!0})}return Ze})(),Xi=(()=>{class Ze{updatePageSize(fe){this.pageSize$.next(fe)}updateFrontPagination(fe){this.frontPagination$.next(fe)}updatePageIndex(fe){this.pageIndex$.next(fe)}updateListOfData(fe){this.listOfData$.next(fe)}updateListOfCustomColumn(fe){this.listOfCustomColumn$.next(fe)}constructor(){this.destroy$=new e.B,this.pageIndex$=new G.t(1),this.frontPagination$=new G.t(!0),this.pageSize$=new G.t(10),this.listOfData$=new G.t([]),this.listOfCustomColumn$=new G.t([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,X.F)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,X.F)()),this.listOfCalcOperator$=new G.t([]),this.queryParams$=(0,L.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,V.B)(0),(0,x.i)(1),(0,F.T)(([fe,We,ct])=>({pageIndex:fe,pageSize:We,sort:ct.filter(sn=>sn.sortFn).map(sn=>({key:sn.key,value:sn.sortOrder})),filter:ct.filter(sn=>sn.filterFn).map(sn=>({key:sn.key,value:sn.filterValue}))}))),this.listOfDataAfterCalc$=(0,L.z)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,F.T)(([fe,We])=>{let ct=[...fe];const sn=We.filter(Bn=>{const{filterValue:fi,filterFn:ki}=Bn;return!(null==fi||Array.isArray(fi)&&0===fi.length)&&"function"==typeof ki});for(const Bn of sn){const{filterFn:fi,filterValue:ki}=Bn;ct=ct.filter(Eo=>fi(ki,Eo))}const $n=We.filter(Bn=>null!==Bn.sortOrder&&"function"==typeof Bn.sortFn).sort((Bn,fi)=>+fi.sortPriority-+Bn.sortPriority);return We.length&&ct.sort((Bn,fi)=>{for(const ki of $n){const{sortFn:Eo,sortOrder:di}=ki;if(Eo&&di){const ho=Eo(Bn,fi,di);if(0!==ho)return"ascend"===di?ho:-ho}}return 0}),ct})),this.listOfFrontEndCurrentPageData$=(0,L.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,I.Q)(this.destroy$),(0,ne.p)(fe=>{const[We,ct,sn]=fe;return We<=(Math.ceil(sn.length/ct)||1)}),(0,F.T)(([fe,We,ct])=>ct.slice((fe-1)*We,fe*We))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,J.n)(fe=>fe?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,J.n)(fe=>fe?this.listOfDataAfterCalc$:this.listOfData$),(0,F.T)(fe=>fe.length),(0,X.F)())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275prov=t.jDH({token:Ze,factory:Ze.\u0275fac})}return Ze})(),eo=(()=>{class Ze{constructor(){this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzIndentSize=0,this.nzShowExpand=!1,this.nzShowCheckbox=!1,this.nzExpand=!1,this.nzExpandIcon=null,this.nzCheckedChange=new t.bkB,this.nzExpandChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(fe){this.nzChecked=fe,this.nzCheckedChange.emit(fe)}onExpandChange(fe){this.nzExpand=fe,this.nzExpandChange.emit(fe)}ngOnChanges(fe){const We=fi=>fi&&fi.firstChange&&void 0!==fi.currentValue,{nzExpand:ct,nzChecked:sn,nzShowExpand:$n,nzShowCheckbox:Bn}=fe;$n&&(this.isNzShowExpandChanged=!0),Bn&&(this.isNzShowCheckboxChanged=!0),We(ct)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),We(sn)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-cell-with-append",ct.nzShowExpand||ct.nzIndentSize>0)("ant-table-selection-column",ct.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",t.L39],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzExpand:[2,"nzExpand","nzExpand",t.L39],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:rt,ngContentSelectors:ze,decls:3,vars:2,consts:[["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate"],[3,"indentSize"],[3,"ngTemplateOutlet"],["nz-row-expand-button","",3,"expand","spaceMode"],["nz-row-expand-button","",3,"expandChange","expand","spaceMode"],["nz-checkbox","",3,"ngModelChange","nzDisabled","ngModel","nzIndeterminate"]],template:function(We,ct){1&We&&(t.NAR(),t.DNE(0,Zn,3,2)(1,jn,1,4,"label",0),t.SdG(2)),2&We&&(t.vxM(ct.nzShowExpand||ct.nzIndentSize>0?0:-1),t.R7$(),t.vxM(ct.nzShowCheckbox?1:-1))},dependencies:[pi,qn,H.T3,pe.IJ,pe.$g,z.YN,z.BC,z.vS],encapsulation:2,changeDetection:0})}return Ze})(),ao=(()=>{class Ze{getNextSortDirection(fe,We){const ct=fe.indexOf(We);return ct===fe.length-1?fe[0]:fe[ct+1]}setSortOrder(fe){this.sortOrderChange$.next(fe)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(fe){this.nzFilterChange.emit(fe),this.nzFilterValue=fe,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}constructor(fe,We,ct,sn){this.host=fe,this.cdr=We,this.ngZone=ct,this.destroy$=sn,this.manualClickOrder$=new e.B,this.calcOperatorChange$=new e.B,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new e.B,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 t.bkB,this.nzSortOrderChange=new t.bkB,this.nzFilterChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,g.R)(this.host.nativeElement,"click").pipe((0,ne.p)(()=>this.nzShowSort),(0,I.Q)(this.destroy$)).subscribe(()=>{const fe=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(fe),this.manualClickOrder$.next(this)})})),this.sortOrderChange$.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.sortOrder!==fe&&(this.sortOrder=fe,this.nzSortOrderChange.emit(fe)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(fe){const{nzSortDirections:We,nzFilters:ct,nzSortOrder:sn,nzSortFn:$n,nzFilterFn:Bn,nzSortPriority:fi,nzFilterMultiple:ki,nzShowSort:Eo,nzShowFilter:di}=fe;We&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),sn&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),Eo&&(this.isNzShowSortChanged=!0),di&&(this.isNzShowFilterChanged=!0);const ho=Oo=>Oo&&Oo.firstChange&&void 0!==Oo.currentValue;if((ho(sn)||ho($n))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),ho(ct)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(ct||ki)&&this.nzShowFilter){const Oo=this.nzFilters.filter(ts=>ts.byDefault).map(ts=>ts.value);this.nzFilterValue=this.nzFilterMultiple?Oo:Oo[0]||null}($n||Bn||fi||ct)&&this.updateCalcOperator()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.SKi),t.rXU(me.y4))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-column-has-sorters",ct.nzShowSort)("ant-table-column-sort","descend"===ct.sortOrder||"ascend"===ct.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",t.L39],nzShowFilter:[2,"nzShowFilter","nzShowFilter",t.L39],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},standalone:!0,features:[t.Jv_([me.y4]),t.GFd,t.OA$,t.aNF],attrs:Gn,ngContentSelectors:Oi,decls:10,vars:1,consts:[["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"ngTemplateOutlet"],[3,"filterChange","contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(We,ct){1&We&&(t.NAR(zi),t.DNE(0,lo,1,5,"nz-table-filter",4)(1,Zi,1,1,"ng-container",5)(2,bo,1,1,"ng-template",null,0,t.C5r)(4,Mr,2,0,"ng-template",null,1,t.C5r)(6,rr,1,3,"ng-template",null,2,t.C5r)(8,lt,1,0,"ng-template",null,3,t.C5r)),2&We&&t.vxM(ct.nzShowFilter||ct.nzCustomFilter?0:1)},dependencies:[Qn,H.T3,li],encapsulation:2,changeDetection:0})}return Ze})(),io=(()=>{class Ze{constructor(fe,We){this.renderer=fe,this.elementRef=We,this.changes$=new e.B,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(fe){const{nzWidth:We,colspan:ct,rowspan:sn,colSpan:$n,rowSpan:Bn}=fe;if(ct||$n){const fi=this.colspan||this.colSpan;(0,E.gD)(fi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${fi}`)}if(sn||Bn){const fi=this.rowspan||this.rowSpan;(0,E.gD)(fi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${fi}`)}(We||ct)&&this.changes$.next()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},standalone:!0,features:[t.OA$]})}return Ze})(),An=(()=>{class Ze{constructor(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(fe){this.nzChecked=fe,this.nzCheckedChange.emit(fe)}ngOnChanges(fe){const We=fi=>fi&&fi.firstChange&&void 0!==fi.currentValue,{nzChecked:ct,nzSelections:sn,nzShowExpand:$n,nzShowCheckbox:Bn}=fe;$n&&(this.isNzShowExpandChanged=!0),Bn&&(this.isNzShowCheckboxChanged=!0),We(sn)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),We(ct)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:Lt,ngContentSelectors:ze,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"nz-table-selection",0),t.bIt("checkedChange",function($n){return ct.onCheckedChange($n)}),t.k0s(),t.SdG(1)),2&We&&t.Y8G("checked",ct.nzChecked)("disabled",ct.nzDisabled)("indeterminate",ct.nzIndeterminate)("label",ct.nzLabel)("listOfSelections",ct.nzSelections)("showCheckbox",ct.nzShowCheckbox)("showRowSelection",ct.nzShowRowSelection)},dependencies:[ei],encapsulation:2,changeDetection:0})}return Ze})(),_o=(()=>{class Ze{constructor(){this.nzAlign=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(We,ct){2&We&&t.xc7("text-align",ct.nzAlign)},inputs:{nzAlign:"nzAlign"},standalone:!0})}return Ze})(),Do=(()=>{class Ze{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(We,ct){2&We&&(t.xc7("table-layout",ct.tableLayout)("width",ct.scrollX)("min-width",ct.scrollX?"100%":null),t.AVh("ant-table-fixed",ct.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},standalone:!0,features:[t.aNF],attrs:$t,ngContentSelectors:ze,decls:5,vars:2,consts:[[3,"width","minWidth"],[1,"ant-table-thead"],[3,"ngTemplateOutlet"]],template:function(We,ct){1&We&&(t.NAR(),t.Z7z(0,mn,1,4,"col",0,t.Vm6),t.DNE(2,Yn,2,1,"thead",1)(3,En,0,0,"ng-template",2),t.SdG(4)),2&We&&(t.Dyx(ct.listOfColWidth),t.R7$(2),t.vxM(ct.theadTemplate?2:-1),t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate))},dependencies:[H.T3],encapsulation:2,changeDetection:0})}return Ze})(),Qo=(()=>{class Ze{constructor(fe,We){this.nzTableStyleService=fe,this.renderer=We,this.hostWidth$=new G.t(null),this.enableAutoMeasure$=new G.t(!1),this.destroy$=new e.B}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:fe,hostWidth$:We}=this.nzTableStyleService;fe.pipe((0,I.Q)(this.destroy$)).subscribe(this.enableAutoMeasure$),We.pipe((0,I.Q)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${fe}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi),t.rXU(t.sFG))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(We,ct){if(1&We&&t.GBs(Kn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.tdElement=sn.first)}},standalone:!0,features:[t.aNF],attrs:oi,ngContentSelectors:ze,decls:7,vars:3,consts:[["tdElement",""],["contentTemplate",""],[1,"nz-disable-td","ant-table-cell"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden",3,"width"],[3,"ngTemplateOutlet"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"td",2,0),t.DNE(2,ro,3,5,"div",3),t.nI1(3,"async"),t.DNE(4,pn,1,1,null,4),t.k0s(),t.DNE(5,$i,1,0,"ng-template",null,1,t.C5r)),2&We&&(t.R7$(2),t.vxM(t.bMT(3,1,ct.enableAutoMeasure$)?2:4))},dependencies:[H.Jj,H.T3],encapsulation:2,changeDetection:0})}return Ze})(),Dr=(()=>{class Ze{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},standalone:!0,features:[t.aNF],decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(We,ct){1&We&&(t.j41(0,"div",0),t.nrm(1,"table",1),t.k0s()),2&We&&(t.R7$(),t.Y8G("contentTemplate",ct.contentTemplate)("tableLayout",ct.tableLayout)("listOfColWidth",ct.listOfColWidth)("theadTemplate",ct.theadTemplate))},dependencies:[Do],encapsulation:2,changeDetection:0})}return Ze})(),_r=(()=>{class Ze{constructor(fe,We){this.nzResizeObserver=fe,this.ngZone=We,this.listOfMeasureColumn=[],this.listOfAutoWidth=new t.bkB,this.destroy$=new e.B}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,be.Z)(this.listOfTdElement)).pipe((0,J.n)(fe=>(0,L.z)(fe.toArray().map(We=>this.nzResizeObserver.observe(We).pipe((0,F.T)(([ct])=>{const{width:sn}=ct.target.getBoundingClientRect();return Math.floor(sn)}))))),(0,V.B)(16),(0,I.Q)(this.destroy$)).subscribe(fe=>{this.ngZone instanceof t.SKi&&t.SKi.isInAngularZone()?this.listOfAutoWidth.next(fe):this.ngZone.run(()=>this.listOfAutoWidth.next(fe))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(Le.xH),t.rXU(t.SKi))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(We,ct){if(1&We&&t.GBs(Kn,5),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.listOfTdElement=sn)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},standalone:!0,features:[t.aNF],attrs:Mi,decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(We,ct){1&We&&t.Z7z(0,Ni,2,0,"td",1,t.Vm6),2&We&&t.Dyx(ct.listOfMeasureColumn)},encapsulation:2,changeDetection:0})}return Ze})(),yr=(()=>{class Ze{constructor(fe){if(this.nzTableStyleService=fe,this.isInsideTable=!1,this.showEmpty$=new G.t(!1),this.noResult$=new G.t(void 0),this.listOfMeasureColumn$=new G.t([]),this.destroy$=new e.B,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:We,noResult$:ct,listOfMeasureColumn$:sn}=this.nzTableStyleService;ct.pipe((0,I.Q)(this.destroy$)).subscribe(this.noResult$),sn.pipe((0,I.Q)(this.destroy$)).subscribe(this.listOfMeasureColumn$),We.pipe((0,I.Q)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(fe){this.nzTableStyleService.setListOfAutoWidth(fe)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tbody"]],hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-tbody",ct.isInsideTable)},standalone:!0,features:[t.aNF],ngContentSelectors:ze,decls:5,vars:6,consts:[["nz-table-fixed-row","",1,"ant-table-placeholder"],["nz-table-measure-row","",3,"listOfMeasureColumn"],["nz-table-measure-row","",3,"listOfAutoWidth","listOfMeasureColumn"],["nzComponentName","table",3,"specificContent"]],template:function(We,ct){if(1&We&&(t.NAR(),t.DNE(0,Yi,1,1),t.nI1(1,"async"),t.SdG(2),t.DNE(3,Xo,3,3,"tr",0),t.nI1(4,"async")),2&We){let sn;t.vxM((sn=t.bMT(1,2,ct.listOfMeasureColumn$))?0:-1,sn),t.R7$(3),t.vxM(t.bMT(4,4,ct.showEmpty$)?3:-1)}},dependencies:[H.Jj,_r,Qo,wt._v,wt.E8],encapsulation:2,changeDetection:0})}return Ze})(),sr=(()=>{class Ze{setScrollPositionClassName(fe=!1){const{scrollWidth:We,scrollLeft:ct,clientWidth:sn}=this.tableBodyElement.nativeElement,$n="ant-table-ping-left",Bn="ant-table-ping-right";We===sn&&0!==We||fe?(this.renderer.removeClass(this.tableMainElement,$n),this.renderer.removeClass(this.tableMainElement,Bn)):0===ct?(this.renderer.removeClass(this.tableMainElement,$n),this.renderer.addClass(this.tableMainElement,Bn)):We===ct+sn?(this.renderer.removeClass(this.tableMainElement,Bn),this.renderer.addClass(this.tableMainElement,$n)):(this.renderer.addClass(this.tableMainElement,$n),this.renderer.addClass(this.tableMainElement,Bn))}constructor(fe,We,ct,sn){this.renderer=fe,this.ngZone=We,this.platform=ct,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=$n=>$n,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDataVirtualHeight="182px",this.data$=new e.B,this.scroll$=new e.B,this.destroy$=new e.B}ngOnChanges(fe){const{scrollX:We,scrollY:ct,data:sn}=fe;(We||ct)&&(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 fe=this.scroll$.pipe((0,be.Z)(null),(0,Oe.c)(0),(0,J.n)(()=>(0,g.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,be.Z)(!0))),(0,I.Q)(this.destroy$)),We=this.resizeService.subscribe().pipe((0,I.Q)(this.destroy$)),ct=this.data$.pipe((0,I.Q)(this.destroy$));(0,B.h)(fe,We,ct,this.scroll$).pipe((0,be.Z)(!0),(0,Oe.c)(0),(0,I.Q)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),fe.pipe((0,ne.p)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.SKi),t.rXU(zt.OD),t.rXU(me.cB))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-inner-scroll"]],viewQuery:function(We,ct){if(1&We&&(t.GBs(Ki,5,t.aKT),t.GBs(Zo,5,t.aKT),t.GBs(vt.d6,5,vt.d6)),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.tableHeaderElement=sn.first),t.mGM(sn=t.lsd())&&(ct.tableBodyElement=sn.first),t.mGM(sn=t.lsd())&&(ct.cdkVirtualScrollViewport=sn.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",noDataVirtualHeight:"noDataVirtualHeight"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:1,consts:[["tableHeaderElement",""],["tableBodyElement",""],[1,"ant-table-content",3,"ngStyle"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],[1,"ant-table-body",3,"ngStyle"],[3,"itemSize","maxBufferPx","minBufferPx","height"],["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"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(We,ct){1&We&&t.DNE(0,Lr,5,5)(1,qi,3,5,"div",2),2&We&&t.vxM(ct.scrollY?0:1)},dependencies:[Do,H.B3,vt.E9,vt.yg,vt.E$,vt.d6,H.T3,yr],encapsulation:2,changeDetection:0})}return Ze})(),Ao=(()=>{class Ze{constructor(fe){this.templateRef=fe}static ngTemplateContextGuard(fe,We){return!0}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"],standalone:!0})}return Ze})(),Ms=(()=>{class Ze{constructor(){this.title=null,this.footer=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-title",null!==ct.title)("ant-table-footer",null!==ct.footer)},inputs:{title:"title",footer:"footer"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(We,ct){1&We&&t.DNE(0,xn,2,1,"ng-container",0)(1,Ci,2,1,"ng-container",0),2&We&&(t.Y8G("nzStringTemplateOutlet",ct.title),t.R7$(),t.Y8G("nzStringTemplateOutlet",ct.footer))},dependencies:[re.C,re.m],encapsulation:2,changeDetection:0})}return Ze})(),Uo=(()=>{class Ze{onPageSizeChange(fe){this.nzTableDataService.updatePageSize(fe)}onPageIndexChange(fe){this.nzTableDataService.updatePageIndex(fe)}constructor(fe,We,ct,sn,$n,Bn,fi){this.elementRef=fe,this.nzResizeObserver=We,this.nzConfigService=ct,this.cdr=sn,this.nzTableStyleService=$n,this.nzTableDataService=Bn,this.directionality=fi,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=ki=>ki,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.noDataVirtualHeight="182px",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 t.bkB,this.nzPageIndexChange=new t.bkB,this.nzQueryParams=new t.bkB,this.nzCurrentPageDataChange=new t.bkB,this.nzCustomColumnChange=new t.bkB,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 e.B,this.templateMode$=new G.t(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,I.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){const{pageIndexDistinct$:fe,pageSizeDistinct$:We,listOfCurrentPageData$:ct,total$:sn,queryParams$:$n,listOfCustomColumn$:Bn}=this.nzTableDataService,{theadTemplate$:fi,hasFixLeft$:ki,hasFixRight$:Eo}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.dir=di,this.cdr.detectChanges()}),$n.pipe((0,I.Q)(this.destroy$)).subscribe(this.nzQueryParams),fe.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{di!==this.nzPageIndex&&(this.nzPageIndex=di,this.nzPageIndexChange.next(di))}),We.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{di!==this.nzPageSize&&(this.nzPageSize=di,this.nzPageSizeChange.next(di))}),sn.pipe((0,I.Q)(this.destroy$),(0,ne.p)(()=>this.nzFrontPagination)).subscribe(di=>{di!==this.nzTotal&&(this.nzTotal=di,this.cdr.markForCheck())}),ct.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.data=di,this.nzCurrentPageDataChange.next(di),this.cdr.markForCheck()}),Bn.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.nzCustomColumn=di,this.nzCustomColumnChange.next(di),this.cdr.markForCheck()}),fi.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.theadTemplate=di,this.cdr.markForCheck()}),ki.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.hasFixLeft=di,this.cdr.markForCheck()}),Eo.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.hasFixRight=di,this.cdr.markForCheck()}),(0,L.z)([sn,this.templateMode$]).pipe((0,F.T)(([di,ho])=>0===di&&!ho),(0,I.Q)(this.destroy$)).subscribe(di=>{this.nzTableStyleService.setShowEmpty(di)}),this.verticalScrollBarWidth=(0,E.nS)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.listOfAutoColWidth=di,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.listOfManualColWidth=di,this.cdr.markForCheck()})}ngOnChanges(fe){const{nzScroll:We,nzPageIndex:ct,nzPageSize:sn,nzFrontPagination:$n,nzData:Bn,nzCustomColumn:fi,nzWidthConfig:ki,nzNoResult:Eo,nzTemplateMode:di}=fe;ct&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),sn&&this.nzTableDataService.updatePageSize(this.nzPageSize),Bn&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),fi&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),$n&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),We&&this.setScrollOnChanges(),ki&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),di&&this.templateMode$.next(this.nzTemplateMode),Eo&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,F.T)(([fe])=>{const{width:We}=fe.target.getBoundingClientRect();return Math.floor(We-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,I.Q)(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}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(Le.xH),t.rXU(we.yx),t.rXU(t.gRc),t.rXU(mi),t.rXU(Xi),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table"]],contentQueries:function(We,ct,sn){if(1&We&&t.wni(sn,Ao,5),2&We){let $n;t.mGM($n=t.lsd())&&(ct.nzVirtualScrollDirective=$n.first)}},viewQuery:function(We,ct){if(1&We&&t.GBs(sr,5),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.nzTableInnerScrollComponent=sn.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-wrapper-rtl","rtl"===ct.dir)("ant-table-custom-column",ct.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",noDataVirtualHeight:"noDataVirtualHeight",nzPaginationType:"nzPaginationType",nzFrontPagination:[2,"nzFrontPagination","nzFrontPagination",t.L39],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",t.L39],nzShowPagination:[2,"nzShowPagination","nzShowPagination",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",t.L39],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",t.L39],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],standalone:!0,features:[t.Jv_([mi,Xi]),t.GFd,t.OA$,t.aNF],ngContentSelectors:ze,decls:13,vars:26,consts:[["tableMainElement",""],["paginationTemplate",""],["contentTemplate",""],[3,"nzDelay","nzSpinning","nzIndicator"],[3,"ngTemplateOutlet"],[1,"ant-table"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy","noDataVirtualHeight"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzPageSizeChange","nzPageIndexChange","hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"nz-spin",3),t.DNE(1,es,1,1,null,4),t.j41(2,"div",5,0),t.DNE(4,us,1,1,"nz-table-title-footer",6)(5,qo,1,14,"nz-table-inner-scroll",7)(6,Gs,1,4,"nz-table-inner-default",8)(7,tt,1,1,"nz-table-title-footer",9),t.k0s(),t.DNE(8,Ve,1,1,null,4),t.k0s(),t.DNE(9,Mt,1,1,"ng-template",null,1,t.C5r)(11,Wt,1,0,"ng-template",null,2,t.C5r)),2&We&&(t.Y8G("nzDelay",ct.nzLoadingDelay)("nzSpinning",ct.nzLoading)("nzIndicator",ct.nzLoadingIndicator),t.R7$(),t.vxM("both"===ct.nzPaginationPosition||"top"===ct.nzPaginationPosition?1:-1),t.R7$(),t.AVh("ant-table-rtl","rtl"===ct.dir)("ant-table-fixed-header",ct.nzData.length&&ct.scrollY)("ant-table-fixed-column",ct.scrollX)("ant-table-has-fix-left",ct.hasFixLeft)("ant-table-has-fix-right",ct.hasFixRight)("ant-table-bordered",ct.nzBordered)("nz-table-out-bordered",ct.nzOuterBordered&&!ct.nzBordered)("ant-table-middle","middle"===ct.nzSize)("ant-table-small","small"===ct.nzSize),t.R7$(2),t.vxM(ct.nzTitle?4:-1),t.R7$(),t.vxM(ct.scrollY||ct.scrollX?5:6),t.R7$(2),t.vxM(ct.nzFooter?7:-1),t.R7$(),t.vxM("both"===ct.nzPaginationPosition||"bottom"===ct.nzPaginationPosition?8:-1))},dependencies:[Je.a,H.T3,Ms,sr,Dr,Ee,Qe],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzLoadingIndicator",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzBordered",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzSize",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzShowSizeChanger",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzHideOnSinglePage",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzShowQuickJumper",void 0),(0,r.Cg)([(0,we.H4)()],Ze.prototype,"nzSimple",void 0),Ze})(),Gr=(()=>{class Ze{constructor(fe){this.nzTableStyleService=fe,this.destroy$=new e.B,this.listOfFixedColumns$=new M.m(1),this.listOfColumns$=new M.m(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,J.n)(We=>(0,B.h)(this.listOfFixedColumns$,...We.map(ct=>ct.changes$)).pipe((0,he.Z)(()=>this.listOfFixedColumns$))),(0,I.Q)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,F.T)(We=>We.filter(ct=>!1!==ct.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,F.T)(We=>We.filter(ct=>!1!==ct.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,J.n)(We=>(0,B.h)(this.listOfColumns$,...We.map(ct=>ct.changes$)).pipe((0,he.Z)(()=>this.listOfColumns$))),(0,I.Q)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!fe}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,be.Z)(this.listOfCellFixedDirective),(0,I.Q)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,be.Z)(this.listOfNzThDirective),(0,I.Q)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(fe=>{fe.forEach(We=>We.setIsLastLeft(We===fe[fe.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(fe=>{fe.forEach(We=>We.setIsFirstRight(We===fe[0]))}),(0,L.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,I.Q)(this.destroy$)).subscribe(([fe,We])=>{We.forEach((ct,sn)=>{if(ct.isAutoLeft){const Bn=We.slice(0,sn).reduce((ki,Eo)=>ki+(Eo.colspan||Eo.colSpan||1),0),fi=fe.slice(0,Bn).reduce((ki,Eo)=>ki+Eo,0);ct.setAutoLeftWidth(`${fi}px`)}})}),(0,L.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,I.Q)(this.destroy$)).subscribe(([fe,We])=>{We.forEach((ct,sn)=>{const $n=We[We.length-sn-1];if($n.isAutoRight){const fi=We.slice(We.length-sn,We.length).reduce((Eo,di)=>Eo+(di.colspan||di.colSpan||1),0),ki=fe.slice(fe.length-fi,fe.length).reduce((Eo,di)=>Eo+di,0);$n.setAutoRightWidth(`${ki}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(We,ct,sn){if(1&We&&(t.wni(sn,io,4),t.wni(sn,ci,4)),2&We){let $n;t.mGM($n=t.lsd())&&(ct.listOfNzThDirective=$n),t.mGM($n=t.lsd())&&(ct.listOfCellFixedDirective=$n)}},hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-row",ct.isInsideTable)},standalone:!0})}return Ze})(),Mo=(()=>{class Ze{constructor(fe,We,ct,sn){this.elementRef=fe,this.renderer=We,this.nzTableStyleService=ct,this.nzTableDataService=sn,this.destroy$=new e.B,this.isInsideTable=!1,this.nzSortOrderChange=new t.bkB,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const fe=this.listOfNzTrDirective.changes.pipe((0,be.Z)(this.listOfNzTrDirective),(0,F.T)($n=>$n&&$n.first)),We=fe.pipe((0,J.n)($n=>$n?$n.listOfColumnsChanges$:A.w),(0,I.Q)(this.destroy$));We.subscribe($n=>this.nzTableStyleService.setListOfTh($n)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,J.n)($n=>$n?We:(0,w.of)([]))).pipe((0,I.Q)(this.destroy$)).subscribe($n=>this.nzTableStyleService.setListOfMeasureColumn($n));const ct=fe.pipe((0,J.n)($n=>$n?$n.listOfFixedLeftColumnChanges$:A.w),(0,I.Q)(this.destroy$)),sn=fe.pipe((0,J.n)($n=>$n?$n.listOfFixedRightColumnChanges$:A.w),(0,I.Q)(this.destroy$));ct.subscribe($n=>{this.nzTableStyleService.setHasFixLeft(0!==$n.length)}),sn.subscribe($n=>{this.nzTableStyleService.setHasFixRight(0!==$n.length)})}if(this.nzTableDataService){const fe=this.listOfNzThAddOnComponent.changes.pipe((0,be.Z)(this.listOfNzThAddOnComponent));fe.pipe((0,J.n)(()=>(0,B.h)(...this.listOfNzThAddOnComponent.map(sn=>sn.manualClickOrder$))),(0,I.Q)(this.destroy$)).subscribe(sn=>{this.nzSortOrderChange.emit({key:sn.nzColumnKey,value:sn.sortOrder}),sn.nzSortFn&&!1===sn.nzSortPriority&&this.listOfNzThAddOnComponent.filter(Bn=>Bn!==sn).forEach(Bn=>Bn.clearSortOrder())}),fe.pipe((0,J.n)(sn=>(0,B.h)(fe,...sn.map($n=>$n.calcOperatorChange$)).pipe((0,he.Z)(()=>fe))),(0,F.T)(sn=>sn.filter($n=>!!$n.nzSortFn||!!$n.nzFilterFn).map($n=>{const{nzSortFn:Bn,sortOrder:fi,nzFilterFn:ki,nzFilterValue:Eo,nzSortPriority:di,nzColumnKey:ho}=$n;return{key:ho,sortFn:Bn,sortPriority:di,sortOrder:fi,filterFn:ki,filterValue:Eo}})),(0,Oe.c)(0),(0,I.Q)(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()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(mi,8),t.rXU(Xi,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(We,ct,sn){if(1&We&&(t.wni(sn,Gr,5),t.wni(sn,ao,5)),2&We){let $n;t.mGM($n=t.lsd())&&(ct.listOfNzTrDirective=$n),t.mGM($n=t.lsd())&&(ct.listOfNzThAddOnComponent=$n)}},viewQuery:function(We,ct){if(1&We&&t.GBs(tn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.templateRef=sn.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},standalone:!0,features:[t.aNF],ngContentSelectors:ze,decls:3,vars:1,consts:[["contentTemplate",""],[3,"ngTemplateOutlet"]],template:function(We,ct){1&We&&(t.NAR(),t.DNE(0,rn,1,0,"ng-template",null,0,t.C5r)(2,Mn,1,1,null,1)),2&We&&(t.R7$(2),t.vxM(ct.isInsideTable?-1:2))},dependencies:[H.T3],encapsulation:2,changeDetection:0})}return Ze})(),ds=(()=>{class Ze{static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275mod=t.$C({type:Ze});static#n=this.\u0275inj=t.G2t({imports:[Uo,ao,eo,yr,Ms,sr,li,Qn,ei,wn,An]})}return Ze})()},9541:(Rt,De,c)=>{c.d(De,{JZ:()=>Ee,Tl:()=>q,hM:()=>re,rE:()=>dt,rM:()=>ue,v3:()=>te});var t=c(3953),r=c(7806),g=c(5103),e=c(4500),M=c(851),G=c(4085),L=c(7336),B=c(177),A=c(3726),w=c(8359),I=c(536),F=c(5007),X=c(1413),V=c(7673),x=c(7786),ne=c(6977),J=c(3798),be=c(9172),Oe=c(1594),he=c(5964),we=c(1986),me=c(2602),de=c(1868),H=c(946),z=c(5979),Z=c(8203),pe=c(713),E=c(1188),S=c(4707),R=c(6042),Y=c(3451),se=c(317);function Be(ze,gt){if(1&ze&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&ze){const Ke=gt.$implicit;t.R7$(),t.Y8G("nzType",Ke)}}const Pt=()=>({minWidth:"46px"}),vt=()=>({visible:!1});function wt(ze,gt){if(1&ze&&(t.qex(0),t.EFF(1),t.bVm()),2&ze){const Ke=t.XpG().$implicit;t.R7$(),t.SpI(" ",Ke.tab.label," ")}}function Le(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const Re=t.eBV(Ke).$implicit,$=t.XpG(2);return t.Njj($.onSelect(Re))})("contextmenu",function(Re){const $=t.eBV(Ke).$implicit,ce=t.XpG(2);return t.Njj(ce.onContextmenu($,Re))}),t.DNE(1,wt,2,1,"ng-container",9),t.k0s()}if(2&ze){const Ke=gt.$implicit;t.AVh("ant-tabs-dropdown-menu-item-disabled",Ke.disabled),t.Y8G("nzSelected",Ke.active)("nzDisabled",Ke.disabled),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ke.tab.label)("nzStringTemplateOutletContext",t.lJ4(6,vt))}}function zt(ze,gt){if(1&ze&&(t.j41(0,"ul",6),t.DNE(1,Le,2,7,"li",7),t.k0s()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngForOf",Ke.items)}}function xt(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",10),t.bIt("click",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.addClicked.emit())}),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("addIcon",Ke.addIcon)}}const st=["navWarp"],Ct=["navList"],It=["*"];function Tt(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.addClicked.emit())}),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("addIcon",Ke.addIcon),t.BMQ("tabindex",-1)}}function en(ze,gt){}function jt(ze,gt){if(1&ze&&(t.j41(0,"div",9),t.DNE(1,en,0,0,"ng-template",10),t.k0s()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ke.extraTemplate)}}const Vt=["nz-tab-body",""];function fn(ze,gt){}function Hn(ze,gt){if(1&ze&&(t.qex(0),t.DNE(1,fn,0,0,"ng-template",1),t.bVm()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ke.content)}}function zn(ze,gt){if(1&ze&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&ze){const Ke=gt.$implicit;t.R7$(),t.Y8G("nzType",Ke)}}const bt=["contentTemplate"],At=[[["","nz-tab-link",""]],"*"],Et=["[nz-tab-link]","*"];function Ot(ze,gt){1&ze&&t.SdG(0)}function Yt(ze,gt){1&ze&&t.SdG(0,1)}const Ue=()=>({visible:!0});function Ae(ze,gt){if(1&ze&&(t.qex(0),t.EFF(1),t.bVm()),2&ze){const Ke=t.XpG().$implicit;t.R7$(),t.JRh(Ke.label)}}function ie(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",10),t.bIt("click",function(Re){t.eBV(Ke);const $=t.XpG().index,ce=t.XpG(2);return t.Njj(ce.onClose($,Re))}),t.k0s()}if(2&ze){const Ke=t.XpG().$implicit;t.Y8G("closeIcon",Ke.nzCloseIcon)}}function _e(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"div",6),t.bIt("click",function(Re){const $=t.eBV(Ke),ce=$.$implicit,N=$.index,ke=t.XpG(2);return t.Njj(ke.clickNavItem(ce,N,Re))})("contextmenu",function(Re){const $=t.eBV(Ke).$implicit,ce=t.XpG(2);return t.Njj(ce.contextmenuNavItem($,Re))}),t.j41(1,"button",7),t.DNE(2,Ae,2,1,"ng-container",8)(3,ie,1,1,"button",9),t.k0s()()}if(2&ze){const Ke=gt.$implicit,Pe=gt.index,Re=t.XpG(2);t.xc7("margin-right","horizontal"===Re.position?Re.nzTabBarGutter:null,"px")("margin-bottom","vertical"===Re.position?Re.nzTabBarGutter:null,"px"),t.AVh("ant-tabs-tab-active",Re.nzSelectedIndex===Pe)("ant-tabs-tab-disabled",Ke.nzDisabled),t.R7$(),t.Y8G("id",Re.getTabContentId(Pe))("disabled",Ke.nzDisabled)("tab",Ke)("active",Re.nzSelectedIndex===Pe),t.BMQ("tabIndex",Re.getTabIndex(Ke,Pe))("aria-disabled",Ke.nzDisabled)("aria-selected",Re.nzSelectedIndex===Pe&&!Re.nzHideAll)("aria-controls",Re.getTabContentId(Pe)),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ke.label)("nzStringTemplateOutletContext",t.lJ4(19,Ue)),t.R7$(),t.Y8G("ngIf",Ke.nzClosable&&Re.closable&&!Ke.nzDisabled)}}function oe(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"nz-tabs-nav",4),t.bIt("tabScroll",function(Re){t.eBV(Ke);const $=t.XpG();return t.Njj($.nzTabListScroll.emit(Re))})("selectFocusedIndex",function(Re){t.eBV(Ke);const $=t.XpG();return t.Njj($.setSelectedIndex(Re))})("addClicked",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.onAdd())}),t.DNE(1,_e,4,20,"div",5),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("ngStyle",Ke.nzTabBarStyle)("selectedIndex",Ke.nzSelectedIndex||0)("inkBarAnimated",Ke.inkBarAnimated)("addable",Ke.addable)("addIcon",Ke.nzAddIcon)("hideBar",Ke.nzHideAll)("position",Ke.position)("extraTemplate",Ke.nzTabBarExtraContent),t.R7$(),t.Y8G("ngForOf",Ke.tabs)}}function Fe(ze,gt){if(1&ze&&t.nrm(0,"div",11),2&ze){const Ke=gt.$implicit,Pe=gt.index,Re=t.XpG();t.Y8G("id",Re.getTabContentId(Pe))("active",Re.nzSelectedIndex===Pe&&!Re.nzHideAll)("content",Ke.content)("forceRender",Ke.nzForceRender)("animated",Re.tabPaneAnimated),t.BMQ("aria-labelledby",Re.getTabContentId(Pe))}}let et=(()=>{class ze{constructor(Ke){this.elementRef=Ke,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({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"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Pe,Re){1&Pe&&t.DNE(0,Be,2,1,"ng-container",0),2&Pe&&t.Y8G("nzStringTemplateOutlet",Re.addIcon)},dependencies:[r.C,r.m,g.Y3,g.Dn],encapsulation:2})}return ze})(),ut=(()=>{class ze{get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}constructor(Ke,Pe,Re){this.elementRef=Ke,this.ngZone=Pe,this.animationMode=Re,this.position="horizontal",this.animated=!0}alignToElement(Ke){this.ngZone.runOutsideAngular(()=>{(0,e.j)(()=>this.setStyles(Ke))})}setStyles(Ke){const Pe=this.elementRef.nativeElement;"horizontal"===this.position?(Pe.style.top="",Pe.style.height="",Pe.style.left=this.getLeftPosition(Ke),Pe.style.width=this.getElementWidth(Ke)):(Pe.style.left="",Pe.style.width="",Pe.style.top=this.getTopPosition(Ke),Pe.style.height=this.getElementHeight(Ke))}getLeftPosition(Ke){return Ke?`${Ke.offsetLeft||0}px`:"0"}getElementWidth(Ke){return Ke?`${Ke.offsetWidth||0}px`:"0"}getTopPosition(Ke){return Ke?`${Ke.offsetTop||0}px`:"0"}getElementHeight(Ke){return Ke?`${Ke.offsetHeight||0}px`:"0"}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.bc$,8))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(Pe,Re){2&Pe&&t.AVh("ant-tabs-ink-bar-animated",Re._animated)},inputs:{position:"position",animated:"animated"},standalone:!0})}return ze})(),Kt=(()=>{class ze{constructor(Ke){this.elementRef=Ke,this.disabled=!1,this.active=!1,this.el=Ke.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}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",t.L39],tab:"tab",active:[2,"active","active",t.L39]},standalone:!0,features:[t.GFd]})}return ze})(),cn=(()=>{class ze{constructor(Ke,Pe){this.cdr=Ke,this.elementRef=Pe,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.bkB,this.selected=new t.bkB,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(Ke){Ke.disabled||(Ke.tab.nzClick.emit(),this.selected.emit(Ke))}onContextmenu(Ke,Pe){Ke.disabled||Ke.tab.nzContextmenu.emit(Pe)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(Ke){Ke||(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)}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.gRc),t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(Pe,Re){2&Pe&&t.AVh("ant-tabs-nav-operations-hidden",0===Re.items.length)},inputs:{items:"items",addable:[2,"addable","addable",t.L39],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],standalone:!0,features:[t.GFd,t.aNF],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nz-icon","","nzType","ellipsis"],["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,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(Pe,Re){if(1&Pe){const $=t.RV6();t.j41(0,"button",2,0),t.bIt("nzVisibleChange",function(N){return t.eBV($),t.Njj(Re.menuVisChange(N))})("mouseenter",function(){return t.eBV($),t.Njj(Re.showItems())}),t.nrm(2,"span",3),t.k0s(),t.j41(3,"nz-dropdown-menu",null,1),t.DNE(5,zt,2,1,"ul",4),t.k0s(),t.DNE(6,xt,1,1,"button",5)}if(2&Pe){const $=t.sdS(4);t.Y8G("nzDropdownMenu",$)("nzOverlayStyle",t.lJ4(5,Pt))("nzMatchWidthElement",null),t.R7$(5),t.Y8G("ngIf",Re.menuOpened),t.R7$(),t.Y8G("ngIf",Re.addable)}},dependencies:[g.Y3,g.Dn,B.bT,B.Sq,r.C,r.m,et,me.wQ,de.GP,de.jS,de.CU,me.j3],encapsulation:2,changeDetection:0})}return ze})();const Vn=.995**20;let Un=(()=>{class ze{constructor(Ke,Pe){this.ngZone=Ke,this.elementRef=Pe,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.bkB,this.tabScroll=new t.bkB,this.onTouchEnd=Re=>{if(!this.touchPosition)return;const $=this.lastOffset,ce=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,$){const N=$.x/ce,ke=$.y/ce,ve=Math.abs(N),K=Math.abs(ke);if(Math.max(ve,K)<.1)return;let U=N,ge=ke;this.motion=window.setInterval(()=>{Math.abs(U)<.01&&Math.abs(ge)<.01?window.clearInterval(this.motion):(U*=Vn,ge*=Vn,this.onOffset(20*U,20*ge,Re))},20)}},this.onTouchMove=Re=>{if(!this.touchPosition)return;Re.preventDefault();const{screenX:$,screenY:ce}=Re.touches[0],N=$-this.touchPosition.x,ke=ce-this.touchPosition.y;this.onOffset(N,ke,Re);const ve=Date.now();this.lastTimeDiff=ve-this.lastTimestamp,this.lastTimestamp=ve,this.lastOffset={x:N,y:ke},this.touchPosition={x:$,y:ce}},this.onTouchStart=Re=>{const{screenX:$,screenY:ce}=Re.touches[0];this.touchPosition={x:$,y:ce},window.clearInterval(this.motion)},this.onWheel=Re=>{const{deltaX:$,deltaY:ce}=Re;let N;const ke=Math.abs($),ve=Math.abs(ce);ke===ve?N="x"===this.lastWheelDirection?$:ce:ke>ve?(N=$,this.lastWheelDirection="x"):(N=ce,this.lastWheelDirection="y");const K=Date.now(),U=Math.abs(N);(K-this.lastWheelTimestamp>100||U-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-N,-N,Re),(Re.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=K,this.lastMixedWheel=U}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const Ke=this.elementRef.nativeElement,Pe=(0,A.R)(Ke,"wheel"),Re=(0,A.R)(Ke,"touchstart"),$=(0,A.R)(Ke,"touchmove"),ce=(0,A.R)(Ke,"touchend"),N=new w.yU;return N.add(this.subscribeWrap("wheel",Pe,this.onWheel)),N.add(this.subscribeWrap("touchstart",Re,this.onTouchStart)),N.add(this.subscribeWrap("touchmove",$,this.onTouchMove)),N.add(this.subscribeWrap("touchend",ce,this.onTouchEnd)),()=>{N.unsubscribe()}})}subscribeWrap(Ke,Pe,Re){return Pe.subscribe($=>{this.tabScroll.emit({type:Ke,event:$}),$.defaultPrevented||Re($)})}onOffset(Ke,Pe,Re){this.ngZone.run(()=>{this.offsetChange.emit({x:Ke,y:Pe,event:Re})})}ngOnDestroy(){this.unsubscribe()}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.SKi),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"},standalone:!0})}return ze})();const dn=typeof requestAnimationFrame<"u"?I.X:F.$;let On=(()=>{class ze{get selectedIndex(){return this._selectedIndex}set selectedIndex(Ke){const Pe=(0,G.OE)(Ke);this._selectedIndex!==Pe&&(this._selectedIndex=Ke,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(Ke))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(Ke){!this.isValidIndex(Ke)||this.focusIndex===Ke||!this.keyManager||this.keyManager.setActiveItem(Ke)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}constructor(Ke,Pe,Re,$,ce){this.cdr=Ke,this.ngZone=Pe,this.viewportRuler=Re,this.nzResizeObserver=$,this.dir=ce,this.indexFocused=new t.bkB,this.selectFocusedIndex=new t.bkB,this.addClicked=new t.bkB,this.tabScroll=new t.bkB,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 X.B,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}ngAfterViewInit(){const Ke=this.dir?this.dir.change.asObservable():(0,V.of)(null),Pe=this.viewportRuler.change(150),Re=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new M.Bu(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,e.j)(Re),(0,x.h)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,ne.Q)(this.destroy$),(0,J.Z)(16,dn)).subscribe(()=>{Re()}),(0,x.h)(Ke,Pe,this.items.changes).pipe((0,ne.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(Re),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,ne.Q)(this.destroy$)).subscribe($=>{this.indexFocused.emit($),this.setTabFocus($),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(Ke){const Pe=this.items.toArray().findIndex(Re=>Re===Ke);-1!==Pe&&(this.keyManager.updateActiveItem(Pe),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(Ke)))}onOffsetChange(Ke){if("horizontal"===this.position){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&Ke.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&Ke.x<0))return;Ke.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+Ke.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&Ke.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&Ke.y<0))return;Ke.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+Ke.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(Ke){const Pe=this.navWarpRef.nativeElement.contains(Ke.target);if(!(0,L.rp)(Ke)&&Pe)switch(Ke.keyCode){case L.UQ:case L.i7:case L.LE:case L.n6:this.lockAnimation(),this.keyManager.onKeydown(Ke);break;case L.Fm:case L.t6:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(Ke)}}isValidIndex(Ke){if(!this.items)return!0;const Pe=this.items?this.items.toArray()[Ke]:null;return!!Pe&&!Pe.disabled}scrollToTab(Ke){if(!this.items.find(Re=>Re===Ke))return;const Pe=this.items.toArray();if("horizontal"===this.position){let Re=this.transformX;if("rtl"===this.getLayoutDirection()){const $=Pe[0].left+Pe[0].width-Ke.left-Ke.width;$this.transformX+this.wrapperWidth&&(Re=$+Ke.width-this.wrapperWidth)}else Ke.left<-this.transformX?Re=-Ke.left:Ke.left+Ke.width>-this.transformX+this.wrapperWidth&&(Re=-(Ke.left+Ke.width-this.wrapperWidth));this.transformX=Re,this.transformY=0,this.setTransform(Re,0)}else{let Re=this.transformY;Ke.top<-this.transformY?Re=-Ke.top:Ke.top+Ke.height>-this.transformY+this.wrapperHeight&&(Re=-(Ke.top+Ke.height-this.wrapperHeight)),this.transformY=Re,this.transformX=0,this.setTransform(0,Re)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},150)})}setTransform(Ke,Pe){this.navListRef.nativeElement.style.transform=`translate(${Ke}px, ${Pe}px)`}clampTransformX(Ke){const Pe=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(Pe,Ke),0):Math.min(Math.max(Pe,Ke),0)}clampTransformY(Ke){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,Ke),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 Ke=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,Pe=Ke?Ke.elementRef.nativeElement:null;Pe&&this.inkBar.alignToElement(Pe.parentElement)}setPingStatus(){const Ke={top:!1,right:!1,bottom:!1,left:!1},Pe=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(Ke.right=this.transformX>0,Ke.left=this.transformX+this.wrapperWidth{const $=`ant-tabs-nav-wrap-ping-${Re}`;Ke[Re]?Pe.classList.add($):Pe.classList.remove($)})}setVisibleRange(){let Ke,Pe,Re,$,ce,N;const ke=this.items.toArray(),ve={width:0,height:0,left:0,top:0,right:0},K=Cn=>{let Zn;return Zn="right"===Pe?ke[0].left+ke[0].width-ke[Cn].left-ke[Cn].width:(ke[Cn]||ve)[Pe],Zn};"horizontal"===this.position?(Ke="width",$=this.wrapperWidth,ce=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),N=this.addButtonWidth,Re=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(Pe="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth$&&(U=$-N),!ke.length)return this.hiddenItems=[],void this.cdr.markForCheck();const ge=ke.length;let qe=ge;for(let Cn=0;CnRe+U){qe=Cn-1;break}let rt=0;for(let Cn=ge-1;Cn>=0;Cn-=1)if(K(Cn){class ze{constructor(){this.content=null,this.active=!1,this.animated=!0,this.forceRender=!1,this.hasBeenActive=!1}ngOnChanges(Ke){const{active:Pe}=Ke;Pe?.currentValue&&(this.hasBeenActive=!0)}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(Pe,Re){2&Pe&&(t.zvX("@tabSwitchMotion",Re.active?"enter":"leave")("@.disabled",!Re.animated),t.BMQ("tabindex",Re.active?0:-1)("aria-hidden",!Re.active),t.xc7("overflow-y",Re.animated?Re.active?null:"none":null),t.AVh("ant-tabs-tabpane-active",Re.active)("ant-tabs-tabpane-hidden",Re.animated?null:!Re.active))},inputs:{content:"content",active:"active",animated:"animated",forceRender:"forceRender"},exportAs:["nzTabBody"],standalone:!0,features:[t.OA$,t.aNF],attrs:Vt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(Pe,Re){1&Pe&&t.DNE(0,Hn,2,1,"ng-container",0),2&Pe&&t.Y8G("ngIf",Re.hasBeenActive||Re.forceRender)},dependencies:[B.bT,B.T3],encapsulation:2,data:{animation:[pe.eF]},changeDetection:0})}return ze})(),Ye=(()=>{class ze{constructor(){this.closeIcon="close"}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275cmp=t.VBU({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"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Pe,Re){1&Pe&&t.DNE(0,zn,2,1,"ng-container",0),2&Pe&&t.Y8G("nzStringTemplateOutlet",Re.closeIcon)},dependencies:[r.C,r.m,g.Y3,g.Dn],encapsulation:2})}return ze})(),ue=(()=>{class ze{constructor(Ke){this.templateRef=Ke}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.C4Q,1))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"],standalone:!0})}return ze})(),te=(()=>{class ze{constructor(Ke,Pe){this.elementRef=Ke,this.routerLink=Pe}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT),t.rXU(E.Wk,10))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"],standalone:!0})}return ze})(),q=(()=>{class ze{static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nz-tab",""]],exportAs:["nzTab"],standalone:!0})}return ze})();const Xe=new t.nKC("NZ_TAB_SET");let dt=(()=>{class ze{get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}constructor(Ke){this.closestTabSet=Ke,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.bkB,this.nzDeselect=new t.bkB,this.nzClick=new t.bkB,this.nzContextmenu=new t.bkB,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new X.B}ngOnChanges(Ke){const{nzTitle:Pe,nzDisabled:Re,nzForceRender:$}=Ke;(Pe||Re||$)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(Xe))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab"]],contentQueries:function(Pe,Re,$){if(1&Pe&&(t.wni($,ue,5),t.wni($,q,5,t.C4Q),t.wni($,te,5)),2&Pe){let ce;t.mGM(ce=t.lsd())&&(Re.nzTabLinkTemplateDirective=ce.first),t.mGM(ce=t.lsd())&&(Re.template=ce.first),t.mGM(ce=t.lsd())&&(Re.linkDirective=ce.first)}},viewQuery:function(Pe,Re){if(1&Pe&&t.GBs(bt,7),2&Pe){let $;t.mGM($=t.lsd())&&(Re.contentTemplate=$.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",t.L39],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzForceRender:[2,"nzForceRender","nzForceRender",t.L39]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:Et,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(Pe,Re){1&Pe&&(t.NAR(At),t.DNE(0,Ot,1,0,"ng-template",null,0,t.C5r)(2,Yt,1,0,"ng-template",null,1,t.C5r))},encapsulation:2,changeDetection:0})}return ze})();class at{}let Qe=0,Ee=(()=>{class ze{get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(Ke){this.indexToSelect=(0,G.OE)(Ke,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"boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane}constructor(Ke,Pe,Re,$,ce){this.nzConfigService=Ke,this.ngZone=Pe,this.cdr=Re,this.directionality=$,this.router=ce,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.bkB(!0),this.nzSelectedIndexChange=new t.bkB,this.nzTabListScroll=new t.bkB,this.nzClose=new t.bkB,this.nzAdd=new t.bkB,this.allTabs=new t.rOR,this.tabs=new t.rOR,this.dir="ltr",this.destroy$=new X.B,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=w.yU.EMPTY,this.tabsSubscription=w.yU.EMPTY,this.canDeactivateSubscription=w.yU.EMPTY,this.tabSetId=Qe++}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,ne.Q)(this.destroy$)).subscribe(Ke=>{this.dir=Ke,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 Pe=this.tabs.toArray();for(let Re=0;Re{this.tabs.forEach((Re,$)=>Re.isActive=$===Ke),Pe||this.nzSelectedIndexChange.emit(Ke)})}this.tabs.forEach((Pe,Re)=>{Pe.position=Re-Ke,null!=this.selectedIndex&&0===Pe.position&&!Pe.origin&&(Pe.origin=Ke-this.selectedIndex)}),this.selectedIndex!==Ke&&(this.selectedIndex=Ke,this.cdr.markForCheck())}onClose(Ke,Pe){Pe.preventDefault(),Pe.stopPropagation(),this.nzClose.emit({index:Ke})}onAdd(){this.nzAdd.emit()}clampTabIndex(Ke){return Math.min(this.tabs.length-1,Math.max(Ke||0,0))}createChangeEvent(Ke){const Pe=new at;return Pe.index=Ke,this.tabs&&this.tabs.length&&(Pe.tab=this.tabs.toArray()[Ke],this.tabs.forEach((Re,$)=>{$!==Ke&&Re.nzDeselect.emit()}),Pe.tab.nzSelect.emit()),Pe}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,x.h)(...this.tabs.map(Ke=>Ke.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,be.Z)(this.allTabs)).subscribe(Ke=>{this.tabs.reset(Ke.filter(Pe=>Pe.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(Ke,Pe){return"function"==typeof this.nzCanDeactivate?(0,se.cG)(this.nzCanDeactivate(Ke,Pe)).pipe((0,Oe.$)(),(0,ne.Q)(this.destroy$)):(0,V.of)(!0)}clickNavItem(Ke,Pe,Re){Ke.nzDisabled||(Ke.nzClick.emit(),this.isRouterLinkClickEvent(Pe,Re)||this.setSelectedIndex(Pe))}isRouterLinkClickEvent(Ke,Pe){const Re=Pe.target;return!!this.nzLinkRouter&&!!this.tabs.toArray()[Ke]?.linkDirective?.elementRef.nativeElement.contains(Re)}contextmenuNavItem(Ke,Pe){Ke.nzDisabled||Ke.nzContextmenu.emit(Pe)}setSelectedIndex(Ke){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,Ke).subscribe(Pe=>{Pe&&(this.nzSelectedIndex=Ke,this.tabNavBarRef.focusIndex=Ke,this.cdr.markForCheck())})}getTabIndex(Ke,Pe){return Ke.nzDisabled?null:this.selectedIndex===Pe?0:-1}getTabContentId(Ke){return`nz-tabs-${this.tabSetId}-tab-${Ke}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${Y.H3} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,ne.Q)(this.destroy$),(0,he.p)(Ke=>Ke instanceof E.wF),(0,be.Z)(!0),(0,we.c)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const Ke=this.findShouldActiveTabIndex();Ke!==this.selectedIndex&&this.setSelectedIndex(Ke),this.nzHideAll=-1===Ke}}findShouldActiveTabIndex(){const Ke=this.tabs.toArray(),Pe=this.isLinkActive(this.router);return Ke.findIndex(Re=>{const $=Re.linkDirective;return!!$&&Pe($.routerLink)})}isLinkActive(Ke){return Pe=>!!Pe&&Ke.isActive(Pe.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(R.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(Z.dS,8),t.rXU(E.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tabset"]],contentQueries:function(Pe,Re,$){if(1&Pe&&t.wni($,dt,5),2&Pe){let ce;t.mGM(ce=t.lsd())&&(Re.allTabs=ce)}},viewQuery:function(Pe,Re){if(1&Pe&&t.GBs(On,5),2&Pe){let $;t.mGM($=t.lsd())&&(Re.tabNavBarRef=$.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(Pe,Re){2&Pe&&t.AVh("ant-tabs-card","card"===Re.nzType||"editable-card"===Re.nzType)("ant-tabs-editable","editable-card"===Re.nzType)("ant-tabs-editable-card","editable-card"===Re.nzType)("ant-tabs-centered",Re.nzCentered)("ant-tabs-rtl","rtl"===Re.dir)("ant-tabs-top","top"===Re.nzTabPosition)("ant-tabs-bottom","bottom"===Re.nzTabPosition)("ant-tabs-left","left"===Re.nzTabPosition)("ant-tabs-right","right"===Re.nzTabPosition)("ant-tabs-default","default"===Re.nzSize)("ant-tabs-small","small"===Re.nzSize)("ant-tabs-large","large"===Re.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",t.L39],nzCentered:[2,"nzCentered","nzCentered",t.L39],nzHideAll:[2,"nzHideAll","nzHideAll",t.L39],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",t.L39],nzLinkExact:[2,"nzLinkExact","nzLinkExact",t.L39]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],standalone:!0,features:[t.Jv_([{provide:Xe,useExisting:ze}]),t.GFd,t.aNF],decls:4,vars:12,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated",4,"ngFor","ngForOf"],[3,"tabScroll","selectFocusedIndex","addClicked","ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate"],["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"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated"]],template:function(Pe,Re){1&Pe&&(t.DNE(0,oe,2,9,"nz-tabs-nav",0),t.j41(1,"div",1)(2,"div",2),t.DNE(3,Fe,1,6,"div",3),t.k0s()()),2&Pe&&(t.Y8G("ngIf",Re.tabs.length||Re.addable),t.R7$(2),t.AVh("ant-tabs-content-top","top"===Re.nzTabPosition)("ant-tabs-content-bottom","bottom"===Re.nzTabPosition)("ant-tabs-content-left","left"===Re.nzTabPosition)("ant-tabs-content-right","right"===Re.nzTabPosition)("ant-tabs-content-animated",Re.tabPaneAnimated),t.R7$(),t.Y8G("ngForOf",Re.tabs))},dependencies:[On,B.bT,B.B3,B.Sq,Kt,M.Pd,M.vR,r.C,r.m,Ye,Ut],encapsulation:2})}return(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzType",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzSize",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzAnimated",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzTabBarGutter",void 0),ze})(),re=(()=>{class ze{static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275mod=t.$C({type:ze});static#n=this.\u0275inj=t.G2t({imports:[Ee,On,cn,et,Ye]})}return ze})()},5699:(Rt,De,c)=>{c.d(De,{T:()=>I,s:()=>w});var t=c(177),r=c(3953),g=c(1413),e=c(6977),M=c(6006),G=c(5103),L=c(8203);const B=["*"];function A(F,X){if(1&F){const V=r.RV6();r.j41(0,"span",1),r.bIt("click",function(ne){r.eBV(V);const J=r.XpG();return r.Njj(J.closeTag(ne))}),r.k0s()}}let w=(()=>{class F{constructor(V,x,ne,J){this.cdr=V,this.renderer=x,this.elementRef=ne,this.directionality=J,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzBordered=!0,this.nzOnClose=new r.bkB,this.nzCheckedChange=new r.bkB,this.dir="ltr",this.destroy$=new g.B}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(V){this.nzOnClose.emit(V),V.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const V=this.elementRef.nativeElement,x=new RegExp(`(ant-tag-(?:${[...M.un,...M.PA].join("|")}))`,"g"),ne=V.classList.toString(),J=[];let be=x.exec(ne);for(;null!==be;)J.push(be[1]),be=x.exec(ne);V.classList.remove(...J)}setPresetColor(){const V=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,M.nP)(this.nzColor)||(0,M.uP)(this.nzColor)),this.isPresetColor&&V.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(V=>{this.dir=V,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(V){const{nzColor:x}=V;x&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(x){return new(x||F)(r.rXU(r.gRc),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(L.dS,8))};static#t=this.\u0275cmp=r.VBU({type:F,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(x,ne){1&x&&r.bIt("click",function(){return ne.updateCheckedStatus()}),2&x&&(r.xc7("background-color",ne.isPresetColor?"":ne.nzColor),r.AVh("ant-tag-has-color",ne.nzColor&&!ne.isPresetColor)("ant-tag-checkable","checkable"===ne.nzMode)("ant-tag-checkable-checked",ne.nzChecked)("ant-tag-rtl","rtl"===ne.dir)("ant-tag-borderless",!ne.nzBordered))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",r.L39],nzBordered:[2,"nzBordered","nzBordered",r.L39]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],ngContentSelectors:B,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(x,ne){1&x&&(r.NAR(),r.SdG(0),r.DNE(1,A,1,0,"span",0)),2&x&&(r.R7$(),r.Y8G("ngIf","closeable"===ne.nzMode))},dependencies:[G.Y3,G.Dn,t.bT],encapsulation:2,changeDetection:0})}return F})(),I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=r.$C({type:F});static#n=this.\u0275inj=r.G2t({imports:[w]})}return F})()},5154:(Rt,De,c)=>{c.d(De,{LH:()=>z,ME:()=>me,Qt:()=>pe,VJ:()=>Z,t:()=>H});var t=c(7987),r=c(177),g=c(3953),e=c(713),M=c(6006),G=c(6841),L=c(7806),B=c(5463),A=c(6860),w=c(1413),I=c(5007),F=c(3294),X=c(6977),V=c(5964),x=c(1986),ne=c(6042),J=c(317),be=c(8203);const Oe=["overlay"];function he(E,S){if(1&E&&(g.qex(0),g.EFF(1),g.bVm()),2&E){const R=g.XpG(2);g.R7$(),g.JRh(R.nzTitle)}}function we(E,S){if(1&E&&(g.j41(0,"div",2)(1,"div",3)(2,"div",4),g.nrm(3,"span",5),g.k0s(),g.j41(4,"div",6),g.DNE(5,he,2,1,"ng-container",7),g.k0s()()()),2&E){const R=g.XpG();g.AVh("ant-tooltip-rtl","rtl"===R.dir),g.Y8G("ngClass",R._classMap)("ngStyle",R.nzOverlayStyle)("@.disabled",!(null==R.noAnimation||!R.noAnimation.nzNoAnimation))("nzNoAnimation",null==R.noAnimation?null:R.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),g.R7$(3),g.Y8G("ngStyle",R._contentStyleMap),g.R7$(),g.Y8G("ngStyle",R._contentStyleMap),g.R7$(),g.Y8G("nzStringTemplateOutlet",R.nzTitle)("nzStringTemplateOutletContext",R.nzTitleContext)}}let me=(()=>{class E{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 R=this.placement;return Array.isArray(R)&&R.length>0?R:"string"==typeof R&&R?[R]:["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(R){this.componentType=R,this.visibleChange=new g.bkB,this.internalVisible=!1,this.destroy$=new w.B,this.triggerDisposables=[],this.elementRef=(0,g.WQX)(g.aKT),this.hostView=(0,g.WQX)(g.c1b),this.renderer=(0,g.WQX)(g.sFG),this.noAnimation=(0,g.WQX)(G.z,{host:!0,optional:!0}),this.nzConfigService=(0,g.WQX)(ne.yx),this.platformId=(0,g.WQX)(g.Agw)}ngAfterViewInit(){(0,r.UE)(this.platformId)&&(this.createComponent(),this.registerTriggers())}ngOnChanges(R){const{trigger:Y}=R;Y&&!Y.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(R)}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 R=this.hostView.createComponent(this.componentType);this.component=R.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),R.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();const Y=this.component.nzVisibleChange.pipe((0,F.F)());Y.pipe((0,X.Q)(this.destroy$)).subscribe(se=>{this.internalVisible=se,this.visibleChange.emit(se)}),Y.pipe((0,V.p)(se=>se),(0,x.c)(0,I.$),(0,V.p)(()=>!!this.component?.overlay?.overlayRef),(0,X.Q)(this.destroy$)).subscribe(()=>{this.component?.updatePosition()})}registerTriggers(){const R=this.elementRef.nativeElement,Y=this.trigger;if(this.removeTriggerListeners(),"hover"===Y){let se;this.triggerDisposables.push(this.renderer.listen(R,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(R,"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"===Y?(this.triggerDisposables.push(this.renderer.listen(R,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(R,"focusout",()=>this.hide()))):"click"===Y&&this.triggerDisposables.push(this.renderer.listen(R,"click",se=>{se.preventDefault(),this.show()}))}updatePropertiesByChanges(R){this.updatePropertiesByKeys(Object.keys(R))}updatePropertiesByKeys(R){const Y={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],cdkConnectedOverlayPush:["cdkConnectedOverlayPush",()=>this.cdkConnectedOverlayPush],...this.getProxyPropertyMap()};(R||Object.keys(Y).filter(se=>!se.startsWith("directive"))).forEach(se=>{if(Y[se]){const[Be,Pt]=Y[se];this.updateComponentValue(Be,Pt())}}),this.component?.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(R,Y){typeof Y<"u"&&(this.component[R]=Y)}delayEnterLeave(R,Y,se=-1){this.delayTimer?this.clearTogglingTimer():se>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,Y?this.show():this.hide()},1e3*se):Y&&R?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(R=>R()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(g.ZUJ))};static#t=this.\u0275dir=g.FsC({type:E,features:[g.OA$]})}return E})(),de=(()=>{class E{set nzVisible(R){const Y=(0,J.G4)(R);this._visible!==Y&&(this._visible=Y,this.nzVisibleChange.next(Y))}get nzVisible(){return this._visible}set nzTrigger(R){this._trigger=R}get nzTrigger(){return this._trigger}set nzPlacement(R){const Y=R.map(se=>B.pn[se]);this._positions=[...Y,...B.Js]}constructor(R,Y,se){this.cdr=R,this.directionality=Y,this.noAnimation=se,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.cdkConnectedOverlayPush=!0,this.nzVisibleChange=new w.B,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...B.Js],this.destroy$=new w.B}ngOnInit(){this.directionality.change?.pipe((0,X.Q)(this.destroy$)).subscribe(R=>{this.dir=R,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(R){this.preferredPlacement=(0,B.jj)(R),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(R){this.origin=R,this.cdr.markForCheck()}onClickOutside(R){const Y=(0,A.Fb)(R);!this.origin.nativeElement.contains(Y)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(g.gRc),g.rXU(be.dS,8),g.rXU(G.z))};static#t=this.\u0275dir=g.FsC({type:E,viewQuery:function(Y,se){if(1&Y&&g.GBs(Oe,5),2&Y){let Be;g.mGM(Be=g.lsd())&&(se.overlay=Be.first)}}})}return E})();function H(E){return!(E instanceof g.C4Q||""!==E&&(0,J.n9)(E))}let z=(()=>{class E extends me{constructor(){super(Z),this.titleContext=null,this.trigger="hover",this.placement="top",this.cdkConnectedOverlayPush=!0,this.visibleChange=new g.bkB}getProxyPropertyMap(){return{...super.getProxyPropertyMap(),nzTooltipColor:["nzColor",()=>this.nzTooltipColor],titleContext:["nzTitleContext",()=>this.titleContext]}}static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275dir=g.FsC({type:E,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(Y,se){2&Y&&g.AVh("ant-tooltip-open",se.visible)},inputs:{title:[0,"nzTooltipTitle","title"],titleContext:[0,"nzTooltipTitleContext","titleContext"],directiveTitle:[0,"nz-tooltip","directiveTitle"],trigger:[0,"nzTooltipTrigger","trigger"],placement:[0,"nzTooltipPlacement","placement"],origin:[0,"nzTooltipOrigin","origin"],visible:[0,"nzTooltipVisible","visible"],mouseEnterDelay:[0,"nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzTooltipOverlayClassName","overlayClassName"],overlayStyle:[0,"nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:[2,"nzTooltipArrowPointAtCenter","arrowPointAtCenter",g.L39],cdkConnectedOverlayPush:[2,"cdkConnectedOverlayPush","cdkConnectedOverlayPush",g.L39],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],standalone:!0,features:[g.GFd,g.Vt3]})}return E})(),Z=(()=>{class E extends de{constructor(R,Y,se){super(R,Y,se),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return H(this.nzTitle)}updateStyles(){const R=this.nzColor&&(0,M.nP)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:R},this._contentStyleMap={backgroundColor:this.nzColor&&!R?this.nzColor:null,"--antd-arrow-background-color":this.nzColor}}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(g.gRc),g.rXU(be.dS,8),g.rXU(G.z,9))};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],standalone:!0,features:[g.Vt3,g.aNF],decls:2,vars:5,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[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(Y,se){if(1&Y){const Be=g.RV6();g.DNE(0,we,6,11,"ng-template",1,0,g.C5r),g.bIt("overlayOutsideClick",function(vt){return g.eBV(Be),g.Njj(se.onClickOutside(vt))})("detach",function(){return g.eBV(Be),g.Njj(se.hide())})("positionChange",function(vt){return g.eBV(Be),g.Njj(se.onPositionChange(vt))})}2&Y&&g.Y8G("cdkConnectedOverlayOrigin",se.origin)("cdkConnectedOverlayOpen",se._visible)("cdkConnectedOverlayPositions",se._positions)("cdkConnectedOverlayPush",se.cdkConnectedOverlayPush)("nzArrowPointAtCenter",se.nzArrowPointAtCenter)},dependencies:[t.z_,t.WB,r.YU,r.B3,G.z,L.C,L.m,B.$_,B.vT],encapsulation:2,data:{animation:[e.uX]},changeDetection:0})}return E})(),pe=(()=>{class E{static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275mod=g.$C({type:E});static#n=this.\u0275inj=g.G2t({imports:[Z]})}return E})()},7391:(Rt,De,c)=>{c.d(De,{Di:()=>Yt,kT:()=>Ue});var t=c(3953),r=c(1413),g=c(4412),e=c(1985),M=c(3726),G=c(983),L=c(8359),B=c(6977),A=c(5558),w=c(1594),I=c(7806);let F=(()=>{class Ae{static#e=this.\u0275fac=function(oe){return new(oe||Ae)};static#t=this.\u0275dir=t.FsC({type:Ae,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(oe,Fe){2&oe&&t.xc7("border","0")("background","transparent")("padding","0")("line-height","inherit")},standalone:!0})}return Ae})(),X=(()=>{class Ae{static#e=this.\u0275fac=function(oe){return new(oe||Ae)};static#t=this.\u0275mod=t.$C({type:Ae});static#n=this.\u0275inj=t.G2t({})}return Ae})();var V=c(5103),x=c(5154),ne=c(3801),J=c(1377),be=c(7336),Oe=c(177),he=c(1025),we=c(1011),me=c(4707),de=c(6042),H=c(4500),z=c(317),Z=c(6860),pe=c(8203);function E(Ae,ie){if(1&Ae&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&Ae){const _e=ie.$implicit;t.R7$(),t.Y8G("nzType",_e)}}const S=["textarea"];function R(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"textarea",3,1),t.bIt("blur",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.confirm())}),t.k0s(),t.j41(2,"button",4),t.bIt("click",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.confirm())}),t.nrm(3,"span",5),t.k0s()}}function Y(Ae,ie){if(1&Ae&&(t.qex(0),t.nrm(1,"span",8),t.bVm()),2&Ae){const _e=ie.$implicit;t.R7$(),t.Y8G("nzType",_e)}}function se(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"button",6),t.bIt("click",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.onClick())}),t.DNE(1,Y,2,1,"ng-container",7),t.k0s()}if(2&Ae){const _e=t.XpG();t.Y8G("nzTooltipTitle",null===_e.tooltip?null:_e.tooltip||(null==_e.locale?null:_e.locale.edit)),t.R7$(),t.Y8G("nzStringTemplateOutlet",_e.icon)}}const Be=["ellipsisContainer"],Pt=["expandable"],vt=["contentTemplate"],wt=["*"],Le=Ae=>({content:Ae});function zt(Ae,ie){1&Ae&&t.SdG(0,0,["*ngIf","!content"])}function xt(Ae,ie){if(1&Ae&&(t.DNE(0,zt,1,0,"ng-content",4),t.EFF(1)),2&Ae){const _e=ie.content;t.Y8G("ngIf",!_e),t.R7$(),t.SpI(" ",_e," ")}}function st(Ae,ie){}function Ct(Ae,ie){if(1&Ae&&(t.qex(0),t.EFF(1),t.bVm()),2&Ae){const _e=t.XpG(3);t.R7$(),t.JRh(_e.nzSuffix)}}function It(Ae,ie){if(1&Ae&&(t.qex(0),t.DNE(1,st,0,0,"ng-template",8)(2,Ct,2,1,"ng-container",4),t.bVm()),2&Ae){const _e=t.XpG(2),oe=t.sdS(1);t.R7$(),t.Y8G("ngTemplateOutlet",oe)("ngTemplateOutletContext",t.eq3(3,Le,_e.nzContent)),t.R7$(),t.Y8G("ngIf",_e.nzSuffix)}}function Tt(Ae,ie){if(1&Ae&&(t.qex(0),t.EFF(1),t.bVm()),2&Ae){const _e=t.XpG(3);t.R7$(),t.JRh(_e.ellipsisStr)}}function en(Ae,ie){if(1&Ae&&(t.qex(0),t.EFF(1),t.bVm()),2&Ae){const _e=t.XpG(3);t.R7$(),t.JRh(_e.nzSuffix)}}function jt(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"a",10,3),t.bIt("click",function(){t.eBV(_e);const Fe=t.XpG(3);return t.Njj(Fe.onExpand())}),t.EFF(2),t.k0s()}if(2&Ae){const _e=t.XpG(3);t.R7$(2),t.SpI(" ",null==_e.locale?null:_e.locale.expand," ")}}function Vt(Ae,ie){if(1&Ae&&(t.nrm(0,"span",null,2),t.DNE(2,Tt,2,1,"ng-container",4)(3,en,2,1,"ng-container",4)(4,jt,3,1,"a",9)),2&Ae){const _e=t.XpG(2);t.R7$(2),t.Y8G("ngIf",_e.isEllipsis),t.R7$(),t.Y8G("ngIf",_e.nzSuffix),t.R7$(),t.Y8G("ngIf",_e.nzExpandable&&_e.isEllipsis)}}function fn(Ae,ie){if(1&Ae&&(t.qex(0),t.DNE(1,It,3,5,"ng-container",7)(2,Vt,5,3,"ng-template",null,1,t.C5r),t.bVm()),2&Ae){const _e=t.sdS(3),oe=t.XpG();t.R7$(),t.Y8G("ngIf",oe.expanded||!oe.hasOperationsWithEllipsis&&1===oe.nzEllipsisRows&&!oe.hasEllipsisObservers||oe.canCssEllipsis||oe.nzSuffix&&oe.expanded)("ngIfElse",_e)}}function Hn(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"nz-text-edit",11),t.bIt("endEditing",function(Fe){t.eBV(_e);const et=t.XpG();return t.Njj(et.onEndEditing(Fe))})("startEditing",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.onStartEditing())}),t.k0s()}if(2&Ae){const _e=t.XpG();t.Y8G("text",_e.nzContent)("icon",_e.nzEditIcon)("tooltip",_e.nzEditTooltip)}}function zn(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"nz-text-copy",12),t.bIt("textCopy",function(Fe){t.eBV(_e);const et=t.XpG();return t.Njj(et.onTextCopy(Fe))}),t.k0s()}if(2&Ae){const _e=t.XpG();t.Y8G("text",_e.copyText)("tooltips",_e.nzCopyTooltips)("icons",_e.nzCopyIcons)}}let bt=(()=>{class Ae{constructor(_e,oe,Fe,et){this.host=_e,this.cdr=oe,this.clipboard=Fe,this.i18n=et,this.copied=!1,this.nativeElement=this.host.nativeElement,this.copyTooltip=null,this.copedTooltip=null,this.copyIcon="copy",this.copedIcon="check",this.destroy$=new r.B,this.icons=["copy","check"],this.textCopy=new t.bkB}ngOnInit(){this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(_e){const{tooltips:oe,icons:Fe}=_e;oe&&this.updateTooltips(),Fe&&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 _e=this.text;this.textCopy.emit(_e),this.clipboard.copy(_e),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[_e,oe]=this.tooltips;this.copyTooltip=_e||this.locale?.copy,this.copedTooltip=oe||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){const[_e,oe]=this.icons;this.copyIcon=_e,this.copedIcon=oe,this.cdr.markForCheck()}static#e=this.\u0275fac=function(oe){return new(oe||Ae)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(ne.B0),t.rXU(J.Og))};static#t=this.\u0275cmp=t.VBU({type:Ae,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(oe,Fe){1&oe&&(t.j41(0,"button",0),t.bIt("click",function(){return Fe.onClick()}),t.DNE(1,E,2,1,"ng-container",1),t.k0s()),2&oe&&(t.AVh("ant-typography-copy-success",Fe.copied),t.Y8G("nzTooltipTitle",Fe.copied?Fe.copedTooltip:Fe.copyTooltip),t.R7$(),t.Y8G("nzStringTemplateOutlet",Fe.copied?Fe.copedIcon:Fe.copyIcon))},dependencies:[x.Qt,x.LH,X,F,V.Y3,V.Dn,I.C,I.m],encapsulation:2,changeDetection:0})}return Ae})(),At=(()=>{class Ae{set textarea(_e){this.textarea$.next(_e)}constructor(_e,oe,Fe,et,ut){this.ngZone=_e,this.host=oe,this.cdr=Fe,this.i18n=et,this.destroy$=ut,this.editing=!1,this.icon="edit",this.startEditing=new t.bkB,this.endEditing=new t.bkB(!0),this.nativeElement=this.host.nativeElement,this.textarea$=new g.t(null),this.injector=(0,t.WQX)(t.zZn)}ngOnInit(){this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe((0,A.n)(_e=>_e?new e.c(oe=>this.ngZone.runOutsideAngular(()=>(0,M.R)(_e.nativeElement,"keydown").subscribe(oe))):G.w),(0,B.Q)(this.destroy$)).subscribe(_e=>{_e.keyCode!==be._f&&_e.keyCode!==be.Fm||this.ngZone.run(()=>{_e.keyCode===be._f?this.onCancel():this.onEnter(_e),this.cdr.markForCheck()})}),this.textarea$.pipe((0,A.n)(_e=>_e?new e.c(oe=>this.ngZone.runOutsideAngular(()=>(0,M.R)(_e.nativeElement,"input").subscribe(oe))):G.w),(0,B.Q)(this.destroy$)).subscribe(_e=>{this.currentText=_e.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(_e){_e.stopPropagation(),_e.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){const{injector:_e}=this;(0,t.mal)(()=>{this.textarea$.pipe((0,w.$)(oe=>null!=oe),(0,B.Q)(this.destroy$)).subscribe(oe=>{oe.nativeElement.focus(),oe.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:_e})}static#e=this.\u0275fac=function(oe){return new(oe||Ae)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(J.Og),t.rXU(he.y4))};static#t=this.\u0275cmp=t.VBU({type:Ae,selectors:[["nz-text-edit"]],viewQuery:function(oe,Fe){if(1&oe&&(t.GBs(S,5),t.GBs(we.c9,5)),2&oe){let et;t.mGM(et=t.lsd())&&(Fe.textarea=et.first),t.mGM(et=t.lsd())&&(Fe.autosizeDirective=et.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],standalone:!0,features:[t.Jv_([he.y4]),t.aNF],decls:3,vars:2,consts:[["notEditing",""],["textarea",""],[3,"ngIf","ngIfElse"],["nz-input","","nzAutosize","",3,"blur"],["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,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(oe,Fe){if(1&oe&&t.DNE(0,R,4,0,"ng-template",2)(1,se,2,2,"ng-template",null,0,t.C5r),2&oe){const et=t.sdS(2);t.Y8G("ngIf",Fe.editing)("ngIfElse",et)}},dependencies:[Oe.bT,we.j,we.Sy,we.c9,X,F,V.Y3,V.Dn,x.Qt,x.LH,I.C,I.m],encapsulation:2,changeDetection:0})}return Ae})(),Yt=(()=>{class Ae{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(_e,oe,Fe,et,ut,Kt,cn,Tn,Wn,kn){this.nzConfigService=_e,this.host=oe,this.cdr=Fe,this.viewContainerRef=et,this.renderer=ut,this.platform=Kt,this.i18n=cn,this.resizeService=Wn,this.directionality=kn,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 t.bkB,this.nzCopy=new t.bkB,this.nzExpandChange=new t.bkB,this.nzOnEllipsis=new t.bkB,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 r.B,this.windowResizeSubscription=L.yU.EMPTY,this.document=Tn}onTextCopy(_e){this.nzCopy.emit(_e)}onStartEditing(){this.editing=!0}onEndEditing(_e){this.editing=!1,this.nzContentChange.emit(_e),this.nzContent===_e&&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,z.Fq)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,H.F)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,H.j)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const _e=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return _e.detectChanges(),{viewRef:_e,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(_e))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:_e,removeView:oe}=this.getOriginContentViewRef(),Fe=[this.textCopyRef,this.textEditRef].filter(Wn=>Wn&&Wn.nativeElement).map(Wn=>Wn.nativeElement),et=this.getExpandableBtnElement();et&&Fe.push(et);const{contentNodes:ut,text:Kt,ellipsis:cn}=(0,z.xP)(this.host.nativeElement,this.nzEllipsisRows,_e.rootNodes,Fe,this.ellipsisStr,this.nzSuffix);oe(),this.ellipsisText=Kt,cn!==this.isEllipsis&&(this.isEllipsis=cn,this.nzOnEllipsis.emit(cn));const Tn=this.ellipsisContainer.nativeElement;for(;Tn.firstChild;)this.renderer.removeChild(Tn,Tn.firstChild);ut.forEach(Wn=>{this.renderer.appendChild(Tn,Wn.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const _e=this.locale?this.locale.expand:"",oe=this.expandableBtnElementCache;if(!oe||oe.innerText===_e){const Fe=this.document.createElement("a");Fe.className="ant-typography-expand",Fe.innerText=_e,this.expandableBtnElementCache=Fe}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,B.Q)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe((0,B.Q)(this.destroy$)).subscribe(_e=>{this.dir=_e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(_e){const{nzCopyable:oe,nzEditable:Fe,nzExpandable:et,nzEllipsis:ut,nzContent:Kt,nzEllipsisRows:cn,nzSuffix:Tn}=_e;(oe||Fe||et||ut||Kt||cn||Tn)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}static#e=this.\u0275fac=function(oe){return new(oe||Ae)(t.rXU(de.yx),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.c1b),t.rXU(t.sFG),t.rXU(Z.OD),t.rXU(J.Og),t.rXU(Oe.qQ),t.rXU(he.cB),t.rXU(pe.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ae,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(oe,Fe){if(1&oe&&(t.GBs(At,5),t.GBs(bt,5),t.GBs(Be,5),t.GBs(Pt,5),t.GBs(vt,5)),2&oe){let et;t.mGM(et=t.lsd())&&(Fe.textEditRef=et.first),t.mGM(et=t.lsd())&&(Fe.textCopyRef=et.first),t.mGM(et=t.lsd())&&(Fe.ellipsisContainer=et.first),t.mGM(et=t.lsd())&&(Fe.expandableBtn=et.first),t.mGM(et=t.lsd())&&(Fe.contentTemplate=et.first)}},hostVars:26,hostBindings:function(oe,Fe){2&oe&&(t.xc7("-webkit-line-clamp",Fe.canCssEllipsis&&Fe.nzEllipsisRows>1?Fe.nzEllipsisRows:null),t.AVh("ant-typography",!Fe.editing)("ant-typography-rtl","rtl"===Fe.dir)("ant-typography-edit-content",Fe.editing)("ant-typography-secondary","secondary"===Fe.nzType)("ant-typography-warning","warning"===Fe.nzType)("ant-typography-danger","danger"===Fe.nzType)("ant-typography-success","success"===Fe.nzType)("ant-typography-disabled",Fe.nzDisabled)("ant-typography-ellipsis",Fe.nzEllipsis&&!Fe.expanded)("ant-typography-single-line",Fe.nzEllipsis&&1===Fe.nzEllipsisRows)("ant-typography-ellipsis-single-line",Fe.canCssEllipsis&&1===Fe.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",Fe.canCssEllipsis&&Fe.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",t.L39],nzEditable:[2,"nzEditable","nzEditable",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzExpandable:[2,"nzExpandable","nzExpandable",t.L39],nzEllipsis:[2,"nzEllipsis","nzEllipsis",t.L39],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",t.Udg],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:wt,decls:5,vars:3,consts:[["contentTemplate",""],["jsEllipsis",""],["ellipsisContainer",""],["expandable",""],[4,"ngIf"],[3,"text","icon","tooltip","endEditing","startEditing",4,"ngIf"],[3,"text","tooltips","icons","textCopy",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-typography-expand",3,"click",4,"ngIf"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(oe,Fe){1&oe&&(t.NAR(),t.DNE(0,xt,2,2,"ng-template",null,0,t.C5r)(2,fn,4,2,"ng-container",4)(3,Hn,1,3,"nz-text-edit",5)(4,zn,1,3,"nz-text-copy",6)),2&oe&&(t.R7$(2),t.Y8G("ngIf",!Fe.editing),t.R7$(),t.Y8G("ngIf",Fe.nzEditable),t.R7$(),t.Y8G("ngIf",Fe.nzCopyable&&!Fe.editing))},dependencies:[Oe.bT,Oe.T3,At,bt],encapsulation:2,changeDetection:0})}return(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzCopyTooltips",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzCopyIcons",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzEditTooltip",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzEditIcon",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzEllipsisRows",void 0),Ae})(),Ue=(()=>{class Ae{static#e=this.\u0275fac=function(oe){return new(oe||Ae)};static#t=this.\u0275mod=t.$C({type:Ae});static#n=this.\u0275inj=t.G2t({imports:[Yt,bt,At]})}return Ae})()},776:(Rt,De,c)=>{c.d(De,{J:()=>A,s:()=>w});var t=c(3953),r=c(177);const g=I=>["segment",I],e=(I,F)=>({"segment-main":!0,expandable:I,expanded:F});function M(I,F){1&I&&t.nrm(0,"div",9)}function G(I,F){if(1&I&&(t.j41(0,"span",10),t.EFF(1),t.k0s()),2&I){const X=t.XpG().$implicit;t.R7$(),t.JRh(X.description)}}function L(I,F){if(1&I&&(t.j41(0,"section",11),t.nrm(1,"ngx-json-viewer",12),t.k0s()),2&I){const X=t.XpG().$implicit,V=t.XpG();t.R7$(),t.Y8G("json",X.value)("expanded",V.expanded)("depth",V.depth)("_currentDepth",V._currentDepth+1)}}function B(I,F){if(1&I){const X=t.RV6();t.j41(0,"section",2)(1,"section",3),t.bIt("click",function(){const x=t.eBV(X).$implicit,ne=t.XpG();return t.Njj(ne.toggle(x))}),t.DNE(2,M,1,0,"div",4),t.j41(3,"span",5),t.EFF(4),t.k0s(),t.j41(5,"span",6),t.EFF(6,": "),t.k0s(),t.DNE(7,G,2,1,"span",7),t.k0s(),t.DNE(8,L,2,4,"section",8),t.k0s()}if(2&I){const X=F.$implicit,V=t.XpG();t.Y8G("ngClass",t.eq3(6,g,"segment-type-"+X.type)),t.R7$(),t.Y8G("ngClass",t.l_i(8,e,V.isExpandable(X),X.expanded)),t.R7$(),t.Y8G("ngIf",V.isExpandable(X)),t.R7$(2),t.JRh(X.key),t.R7$(3),t.Y8G("ngIf",!X.expanded||!V.isExpandable(X)),t.R7$(),t.Y8G("ngIf",X.expanded&&V.isExpandable(X))}}let A=(()=>{class I{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(X=>{this.segments.push(this.parseKeyValue(X,this.json[X]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(X){return"object"===X.type||"array"===X.type}toggle(X){this.isExpandable(X)&&(X.expanded=!X.expanded)}parseKeyValue(X,V){const x={key:X,value:V,type:void 0,description:""+V,expanded:this.isExpanded()};switch(typeof x.value){case"number":x.type="number";break;case"boolean":x.type="boolean";break;case"function":x.type="function";break;case"string":x.type="string",x.description='"'+x.value+'"';break;case"undefined":x.type="undefined",x.description="undefined";break;case"object":null===x.value?(x.type="null",x.description="null"):Array.isArray(x.value)?(x.type="array",x.description="Array["+x.value.length+"] "+JSON.stringify(x.value)):x.value instanceof Date?x.type="date":(x.type="object",x.description="Object "+JSON.stringify(x.value))}return x}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(X){const V=new WeakMap;return function x(ne,J){let be,Oe;return"object"!=typeof ne||null===ne||ne instanceof Boolean||ne instanceof Date||ne instanceof Number||ne instanceof RegExp||ne instanceof String?ne:(be=V.get(ne),void 0!==be?{$ref:be}:(V.set(ne,J),Array.isArray(ne)?(Oe=[],ne.forEach(function(he,we){Oe[we]=x(he,J+"["+we+"]")})):(Oe={},Object.keys(ne).forEach(function(he){Oe[he]=x(ne[he],J+"["+JSON.stringify(he)+"]")})),Oe))}(X,"$")}}return I.\u0275fac=function(X){return new(X||I)},I.\u0275cmp=t.VBU({type:I,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[t.OA$],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["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(X,V){1&X&&(t.j41(0,"section",0),t.DNE(1,B,9,11,"section",1),t.k0s()),2&X&&(t.R7$(),t.Y8G("ngForOf",V.segments))},dependencies:[r.YU,r.Sq,r.bT,I],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}']}),I})(),w=(()=>{class I{}return I.\u0275fac=function(X){return new(X||I)},I.\u0275mod=t.$C({type:I}),I.\u0275inj=t.G2t({imports:[r.MD]}),I})()},2081:(Rt,De,c)=>{c.d(De,{DX:()=>ne,yN:()=>At,LV:()=>Ue});const t=()=>Object.create(null),{forEach:r,slice:g}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class M{constructor(ie=!0,_e=t){this.weakness=ie,this.makeData=_e}lookup(...ie){return this.lookupArray(ie)}lookupArray(ie){let _e=this;return r.call(ie,oe=>_e=_e.getChildTrie(oe)),e.call(_e,"data")?_e.data:_e.data=this.makeData(g.call(ie))}peek(...ie){return this.peekArray(ie)}peekArray(ie){let _e=this;for(let oe=0,Fe=ie.length;_e&&oeie.push(_e)),ie};function E(Ae){const{unsubscribe:ie}=Ae;"function"==typeof ie&&(Ae.unsubscribe=void 0,ie())}const S=[],R=100;function Y(Ae,ie){if(!Ae)throw new Error(ie||"assertion failure")}function se(Ae,ie){const _e=Ae.length;return _e>0&&_e===ie.length&&Ae[_e-1]===ie[_e-1]}function Be(Ae){switch(Ae.length){case 0:throw new Error("unknown value");case 1:return Ae[0];case 2:throw Ae[1]}}function Pt(Ae){return Ae.slice(0)}let vt=(()=>{class Ae{constructor(_e){this.fn=_e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Ae.count}peek(){if(1===this.value.length&&!xt(this))return wt(this),this.value[0]}recompute(_e){return Y(!this.recomputing,"already recomputing"),wt(this),xt(this)?function Le(Ae,ie){return fn(Ae),H.withValue(Ae,zt,[Ae,ie]),function zn(Ae,ie){if("function"==typeof Ae.subscribe)try{E(Ae),Ae.unsubscribe=Ae.subscribe.apply(null,ie)}catch{return Ae.setDirty(),!1}return!0}(Ae,ie)&&function st(Ae){Ae.dirty=!1,!xt(Ae)&&It(Ae)}(Ae),Be(Ae.value)}(this,_e):Be(this.value)}setDirty(){this.dirty||(this.dirty=!0,Ct(this),E(this))}dispose(){this.setDirty(),fn(this),Tt(this,(_e,oe)=>{_e.setDirty(),Hn(_e,this)})}forget(){this.dispose()}dependOn(_e){_e.add(this),this.deps||(this.deps=S.pop()||new Set),this.deps.add(_e)}forgetDeps(){this.deps&&(pe(this.deps).forEach(_e=>_e.delete(this)),this.deps.clear(),S.push(this.deps),this.deps=null)}}return Ae.count=0,Ae})();function wt(Ae){const ie=H.getValue();if(ie)return Ae.parents.add(ie),ie.childValues.has(Ae)||ie.childValues.set(Ae,[]),xt(Ae)?en(ie,Ae):jt(ie,Ae),ie}function zt(Ae,ie){Ae.recomputing=!0;const{normalizeResult:_e}=Ae;let oe;_e&&1===Ae.value.length&&(oe=Pt(Ae.value)),Ae.value.length=0;try{if(Ae.value[0]=Ae.fn.apply(null,ie),_e&&oe&&!se(oe,Ae.value))try{Ae.value[0]=_e(Ae.value[0],oe[0])}catch{}}catch(Fe){Ae.value[1]=Fe}Ae.recomputing=!1}function xt(Ae){return Ae.dirty||!(!Ae.dirtyChildren||!Ae.dirtyChildren.size)}function Ct(Ae){Tt(Ae,en)}function It(Ae){Tt(Ae,jt)}function Tt(Ae,ie){const _e=Ae.parents.size;if(_e){const oe=pe(Ae.parents);for(let Fe=0;Fe<_e;++Fe)ie(oe[Fe],Ae)}}function en(Ae,ie){Y(Ae.childValues.has(ie)),Y(xt(ie));const _e=!xt(Ae);if(Ae.dirtyChildren){if(Ae.dirtyChildren.has(ie))return}else Ae.dirtyChildren=S.pop()||new Set;Ae.dirtyChildren.add(ie),_e&&Ct(Ae)}function jt(Ae,ie){Y(Ae.childValues.has(ie)),Y(!xt(ie));const _e=Ae.childValues.get(ie);0===_e.length?Ae.childValues.set(ie,Pt(ie.value)):se(_e,ie.value)||Ae.setDirty(),Vt(Ae,ie),!xt(Ae)&&It(Ae)}function Vt(Ae,ie){const _e=Ae.dirtyChildren;_e&&(_e.delete(ie),0===_e.size&&(S.length0&&Ae.childValues.forEach((ie,_e)=>{Hn(Ae,_e)}),Ae.forgetDeps(),Y(null===Ae.dirtyChildren)}function Hn(Ae,ie){ie.parents.delete(Ae),Ae.childValues.delete(ie),Vt(Ae,ie)}const bt={setDirty:!0,dispose:!0,forget:!0};function At(Ae){const ie=new Map,_e=Ae&&Ae.subscribe;function oe(Fe){const et=H.getValue();if(et){let ut=ie.get(Fe);ut||ie.set(Fe,ut=new Set),et.dependOn(ut),"function"==typeof _e&&(E(ut),ut.unsubscribe=_e(Fe))}}return oe.dirty=function(et,ut){const Kt=ie.get(et);if(Kt){const cn=ut&&Z.call(bt,ut)?ut:"setDirty";pe(Kt).forEach(Tn=>Tn[cn]()),ie.delete(et),E(Kt)}},oe}let Et;function Ot(...Ae){return(Et||(Et=new M("function"==typeof WeakMap))).lookupArray(Ae)}const Yt=new Set;function Ue(Ae,{max:ie=Math.pow(2,16),keyArgs:_e,makeCacheKey:oe=Ot,normalizeResult:Fe,subscribe:et,cache:ut=L.C}=Object.create(null)){const Kt="function"==typeof ut?new ut(ie,Vn=>Vn.dispose()):ut,cn=function(){const Vn=oe.apply(null,_e?_e.apply(null,arguments):arguments);if(void 0===Vn)return Ae.apply(null,arguments);let Un=Kt.get(Vn);Un||(Kt.set(Vn,Un=new vt(Ae)),Un.normalizeResult=Fe,Un.subscribe=et,Un.forget=()=>Kt.delete(Vn));const dn=Un.recompute(Array.prototype.slice.call(arguments));return Kt.set(Vn,Un),Yt.add(Kt),H.hasValue()||(Yt.forEach(qt=>qt.clean()),Yt.clear()),dn};function Tn(Vn){const Un=Vn&&Kt.get(Vn);Un&&Un.setDirty()}function Wn(Vn){const Un=Vn&&Kt.get(Vn);if(Un)return Un.peek()}function kn(Vn){return!!Vn&&Kt.delete(Vn)}return Object.defineProperty(cn,"size",{get:()=>Kt.size,configurable:!1,enumerable:!1}),Object.freeze(cn.options={max:ie,keyArgs:_e,makeCacheKey:oe,normalizeResult:Fe,subscribe:et,cache:Kt}),cn.dirtyKey=Tn,cn.dirty=function(){Tn(oe.apply(null,arguments))},cn.peekKey=Wn,cn.peek=function(){return Wn(oe.apply(null,arguments))},cn.forgetKey=kn,cn.forget=function(){return kn(oe.apply(null,arguments))},cn.makeCacheKey=oe,cn.getKey=_e?function(){return oe.apply(null,_e.apply(null,arguments))}:oe,Object.freeze(cn)}},7994:(Rt,De,c)=>{function g(z,Z){(null==Z||Z>z.length)&&(Z=z.length);for(var pe=0,E=new Array(Z);peH});var G=function(){return"function"==typeof Symbol},L=function(z){return G()&&!!Symbol[z]},B=function(z){return L(z)?Symbol[z]:"@@"+z};G()&&!L("observable")&&(Symbol.observable=Symbol("observable"));var A=B("iterator"),w=B("observable"),I=B("species");function F(z,Z){var pe=z[Z];if(null!=pe){if("function"!=typeof pe)throw new TypeError(pe+" is not a function");return pe}}function X(z){var Z=z.constructor;return void 0!==Z&&null===(Z=Z[I])&&(Z=void 0),void 0!==Z?Z:H}function x(z){x.log?x.log(z):setTimeout(function(){throw z})}function ne(z){Promise.resolve().then(function(){try{z()}catch(Z){x(Z)}})}function J(z){var Z=z._cleanup;if(void 0!==Z&&(z._cleanup=void 0,Z))try{if("function"==typeof Z)Z();else{var pe=F(Z,"unsubscribe");pe&&pe.call(Z)}}catch(E){x(E)}}function be(z){z._observer=void 0,z._queue=void 0,z._state="closed"}function he(z,Z,pe){z._state="running";var E=z._observer;try{var S=F(E,Z);switch(Z){case"next":S&&S.call(E,pe);break;case"error":if(be(z),!S)throw pe;S.call(E,pe);break;case"complete":be(z),S&&S.call(E)}}catch(R){x(R)}"closed"===z._state?J(z):"running"===z._state&&(z._state="ready")}function we(z,Z,pe){if("closed"!==z._state){if("buffering"===z._state)return void z._queue.push({type:Z,value:pe});if("ready"!==z._state)return z._state="buffering",z._queue=[{type:Z,value:pe}],void ne(function(){return function Oe(z){var Z=z._queue;if(Z){z._queue=void 0,z._state="ready";for(var pe=0;pe1,se=!1,Pt=arguments[1];return new R(function(vt){return S.subscribe({next:function(wt){var Le=!se;if(se=!0,!Le||Y)try{Pt=E(Pt,wt)}catch(zt){return vt.error(zt)}else Pt=wt},error:function(wt){vt.error(wt)},complete:function(){if(!se&&!Y)return vt.error(new TypeError("Cannot reduce an empty sequence"));vt.next(Pt),vt.complete()}})})},Z.concat=function(){for(var E=this,S=arguments.length,R=new Array(S),Y=0;Y=0&&se.splice(Le,1),Pt()}});se.push(wt)},error:function(vt){Y.error(vt)},complete:function(){Pt()}});function Pt(){Be.closed&&0===se.length&&Y.complete()}return function(){se.forEach(function(vt){return vt.unsubscribe()}),Be.unsubscribe()}})},Z[w]=function(){return this},z.from=function(E){var S="function"==typeof this?this:z;if(null==E)throw new TypeError(E+" is not an object");var R=F(E,w);if(R){var Y=R.call(E);if(Object(Y)!==Y)throw new TypeError(Y+" is not an object");return function V(z){return z instanceof H}(Y)&&Y.constructor===S?Y:new S(function(se){return Y.subscribe(se)})}if(L("iterator")&&(R=F(E,A)))return new S(function(se){ne(function(){if(!se.closed){for(var Pt,Be=function t(z,Z){var pe=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(pe)return(pe=pe.call(z)).next.bind(pe);if(Array.isArray(z)||(pe=function r(z,Z){if(z){if("string"==typeof z)return g(z,Z);var pe=Object.prototype.toString.call(z).slice(8,-1);if("Object"===pe&&z.constructor&&(pe=z.constructor.name),"Map"===pe||"Set"===pe)return Array.from(z);if("Arguments"===pe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return g(z,Z)}}(z))||Z&&z&&"number"==typeof z.length){pe&&(z=pe);var E=0;return function(){return E>=z.length?{done:!0}:{done:!1,value:z[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(R.call(E));!(Pt=Be()).done;)if(se.next(Pt.value),se.closed)return;se.complete()}})});if(Array.isArray(E))return new S(function(se){ne(function(){if(!se.closed){for(var Be=0;Be{function M(wt,Le,zt,xt){var It,st=arguments.length,Ct=st<3?Le:null===xt?xt=Object.getOwnPropertyDescriptor(Le,zt):xt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ct=Reflect.decorate(wt,Le,zt,xt);else for(var Tt=wt.length-1;Tt>=0;Tt--)(It=wt[Tt])&&(Ct=(st<3?It(Ct):st>3?It(Le,zt,Ct):It(Le,zt))||Ct);return st>3&&Ct&&Object.defineProperty(Le,zt,Ct),Ct}c.d(De,{Cg:()=>M}),"function"==typeof SuppressedError&&SuppressedError}},Rt=>{Rt(Rt.s=5500)}]); \ No newline at end of file diff --git a/server/public/main.1324b4a67652a1c2.js b/server/public/main.1324b4a67652a1c2.js deleted file mode 100644 index 38ffeb0d0..000000000 --- a/server/public/main.1324b4a67652a1c2.js +++ /dev/null @@ -1,5323 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8792],{4709:(Rt,De,a)=>{a.d(De,{H:()=>A,K6:()=>m,Me:()=>L,Ob:()=>j,YL:()=>M,_:()=>s,g8:()=>X,n6:()=>F,oS:()=>V,wE:()=>K});var t=a(9785);function s(x,oe,J){return{r:255*(0,t.Cg)(x,255),g:255*(0,t.Cg)(oe,255),b:255*(0,t.Cg)(J,255)}}function m(x,oe,J){x=(0,t.Cg)(x,255),oe=(0,t.Cg)(oe,255),J=(0,t.Cg)(J,255);var Ee=Math.max(x,oe,J),Oe=Math.min(x,oe,J),pe=0,Ie=0,ve=(Ee+Oe)/2;if(Ee===Oe)Ie=0,pe=0;else{var fe=Ee-Oe;switch(Ie=ve>.5?fe/(2-Ee-Oe):fe/(Ee+Oe),Ee){case x:pe=(oe-J)/fe+(oe1&&(J-=1),J<1/6?x+6*J*(oe-x):J<.5?oe:J<2/3?x+(oe-x)*(2/3-J)*6:x}function M(x,oe,J){var Ee,Oe,pe;if(x=(0,t.Cg)(x,360),oe=(0,t.Cg)(oe,100),J=(0,t.Cg)(J,100),0===oe)Oe=J,pe=J,Ee=J;else{var Ie=J<.5?J*(1+oe):J+oe-J*oe,ve=2*J-Ie;Ee=e(ve,Ie,x+1/3),Oe=e(ve,Ie,x),pe=e(ve,Ie,x-1/3)}return{r:255*Ee,g:255*Oe,b:255*pe}}function K(x,oe,J){x=(0,t.Cg)(x,255),oe=(0,t.Cg)(oe,255),J=(0,t.Cg)(J,255);var Ee=Math.max(x,oe,J),Oe=Math.min(x,oe,J),pe=0,Ie=Ee,ve=Ee-Oe,fe=0===Ee?0:ve/Ee;if(Ee===Oe)pe=0;else{switch(Ee){case x:pe=(oe-J)/ve+(oe>16,g:(65280&x)>>8,b:255&x}}},6681:(Rt,De,a)=>{a.d(De,{D:()=>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"}},4215:(Rt,De,a)=>{a.d(De,{RO:()=>e});var t=a(4709),s=a(6681),m=a(9785);function e(X){var V={r:0,g:0,b:0},x=1,oe=null,J=null,Ee=null,Oe=!1,pe=!1;return"string"==typeof X&&(X=function w(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var V=!1;if(s.D[X])X=s.D[X],V=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var x=I.rgb.exec(X);return x?{r:x[1],g:x[2],b:x[3]}:(x=I.rgba.exec(X))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=I.hsl.exec(X))?{h:x[1],s:x[2],l:x[3]}:(x=I.hsla.exec(X))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=I.hsv.exec(X))?{h:x[1],s:x[2],v:x[3]}:(x=I.hsva.exec(X))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=I.hex8.exec(X))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),a:(0,t.n6)(x[4]),format:V?"name":"hex8"}:(x=I.hex6.exec(X))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),format:V?"name":"hex"}:(x=I.hex4.exec(X))?{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),a:(0,t.n6)(x[4]+x[4]),format:V?"name":"hex8"}:!!(x=I.hex3.exec(X))&&{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),format:V?"name":"hex"}}(X)),"object"==typeof X&&(F(X.r)&&F(X.g)&&F(X.b)?(V=(0,t._)(X.r,X.g,X.b),Oe=!0,pe="%"===String(X.r).substr(-1)?"prgb":"rgb"):F(X.h)&&F(X.s)&&F(X.v)?(oe=(0,m.Px)(X.s),J=(0,m.Px)(X.v),V=(0,t.Me)(X.h,oe,J),Oe=!0,pe="hsv"):F(X.h)&&F(X.s)&&F(X.l)&&(oe=(0,m.Px)(X.s),Ee=(0,m.Px)(X.l),V=(0,t.YL)(X.h,oe,Ee),Oe=!0,pe="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(x=X.a)),x=(0,m.TV)(x),{ok:Oe,format:X.format||pe,r:Math.min(255,Math.max(V.r,0)),g:Math.min(255,Math.max(V.g,0)),b:Math.min(255,Math.max(V.b,0)),a:x}}var L="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),j="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),A="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),I={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+j),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+j),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+j),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 F(X){return!!I.CSS_UNIT.exec(String(X))}},9785:(Rt,De,a)=>{function t(j,A){(function m(j){return"string"==typeof j&&-1!==j.indexOf(".")&&1===parseFloat(j)})(j)&&(j="100%");var I=function e(j){return"string"==typeof j&&-1!==j.indexOf("%")}(j);return j=360===A?j:Math.min(A,Math.max(0,parseFloat(j))),I&&(j=parseInt(String(j*A),10)/100),Math.abs(j-A)<1e-6?1:j=360===A?(j<0?j%A+A:j%A)/parseFloat(String(A)):j%A/parseFloat(String(A))}function s(j){return Math.min(1,Math.max(0,j))}function M(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function K(j){return j<=1?"".concat(100*Number(j),"%"):j}function L(j){return 1===j.length?"0"+j:String(j)}a.d(De,{Cg:()=>t,J$:()=>s,Px:()=>K,TV:()=>M,wl:()=>L})},6726:(Rt,De,a)=>{a.d(De,{X:()=>E});var t=a(3953),s=a(177),m=a(1188),e=a(5103),M=a(5699),K=a(1236),L=a(9199),j=a(6354),A=a(5964),I=a(9145),w=a(5703),F=a(2e3),X=a(7679),V=a(1774),x=a(3075);function oe(S,R){if(1&S&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&S){const U=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",U.nctId," ")}}function J(S,R){if(1&S&&(t.j41(0,"cvc-link-tag",10),t.EFF(1," View on clinicaltrials.gov "),t.k0s()),2&S){const U=t.XpG().ngIf;t.Y8G("href",U.url)}}function Ee(S,R){if(1&S&&(t.qex(0),t.j41(1,"nz-card",4),t.DNE(2,oe,3,4,"ng-template",null,0,t.C5r)(4,J,2,1,"ng-template",null,1,t.C5r),t.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),t.EFF(8),t.k0s(),t.j41(9,"nz-descriptions-item",7),t.EFF(10),t.k0s(),t.j41(11,"nz-descriptions-item",8),t.EFF(12),t.k0s()()(),t.bVm()),2&S){const U=R.ngIf,se=t.sdS(3),Be=t.sdS(5);t.R7$(),t.Y8G("nzTitle",se)("nzExtra",Be),t.R7$(5),t.Y8G("nzColumn",2),t.R7$(2),t.SpI(" ",U.name," "),t.R7$(2),t.SpI(" ",U.sourceCount," "),t.R7$(2),t.SpI(" ",U.evidenceCount," ")}}let Oe=(()=>{class S{constructor(U){this.gql=U}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,j.T)(({data:U})=>U?.clinicalTrials.edges[0]?.node),(0,A.p)(L.kP))}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(I.hzv))};static#t=this.\u0275cmp=t.VBU({type:S,selectors:[["cvc-clinical-trial-popover"]],inputs:{clinicalTrialId:"clinicalTrialId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(se,Be){1&se&&(t.j41(0,"div",2),t.DNE(1,Ee,13,6,"ng-container",3),t.nI1(2,"ngrxPush"),t.k0s()),2&se&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,Be.clinicalTrial$)))},dependencies:[s.bT,w.cK,e.Dn,F.xA,F.gr,X.a,V.L9,x.R],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}"]})}return S})();function pe(S,R){}function Ie(S,R){if(1&S&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,pe,0,0,"ng-template",6),t.k0s(),t.bVm()),2&S){const U=t.XpG(),se=t.sdS(2);t.R7$(),t.Y8G("routerLink",U.clinicalTrial.link),t.R7$(),t.Y8G("ngTemplateOutlet",se)}}function ve(S,R){}function fe(S,R){if(1&S&&t.nrm(0,"cvc-clinical-trial-popover",8),2&S){const U=t.XpG(2);t.Y8G("clinicalTrialId",U.clinicalTrial.id)}}function Y(S,R){if(1&S&&(t.j41(0,"nz-tag",7),t.DNE(1,ve,0,0,"ng-template",6),t.k0s(),t.DNE(2,fe,1,1,"ng-template",null,3,t.C5r)),2&S){const U=t.sdS(3),se=t.XpG(),Be=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",U)("nzPopoverTrigger",se.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",Be)}}function z(S,R){}function Z(S,R){if(1&S&&t.DNE(0,z,0,0,"ng-template",6),2&S){t.XpG();const U=t.sdS(2);t.Y8G("ngTemplateOutlet",U)}}function he(S,R){if(1&S&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&S){const U=t.XpG();t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",U.clinicalTrial.nctId,"\n")}}let E=(()=>{class S{set clinicalTrial(U){if(!U)throw new Error("clinical-trial-tag clinicalTrial Input requires LinkableClinicalTrial.");this._clinicalTrial=U}get clinicalTrial(){return this._clinicalTrial}constructor(){this.linked=!0,this.enablePopover=!0}static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275cmp=t.VBU({type:S,selectors:[["cvc-clinical-trial-tag"]],inputs:{clinicalTrial:"clinicalTrial",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["clinicalTrialPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"clinicalTrialId"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"]],template:function(se,Be){if(1&se&&t.DNE(0,Ie,3,2,"ng-container",4)(1,Y,4,4,"ng-template",null,0,t.C5r)(3,Z,1,1,"ng-template",null,1,t.C5r)(5,he,3,4,"ng-template",null,2,t.C5r),2&se){const Pt=t.sdS(4);t.Y8G("ngIf",Be.linked)("ngIfElse",Pt)}},dependencies:[s.bT,s.T3,m.Wk,e.Dn,M.s,K.L_,Oe,x.R],styles:["[_nghost-%COMP%]{display:block}"]})}return S})()},9619:(Rt,De,a)=>{a.d(De,{u:()=>F});var t=a(177),s=a(1188),m=a(5699),e=a(1236),M=a(7054),K=a(4917),L=a(5703),j=a(2e3),A=a(5103),I=a(3953);let w=(()=>{class X{static#e=this.\u0275fac=function(oe){return new(oe||X)};static#t=this.\u0275mod=I.$C({type:X});static#n=this.\u0275inj=I.G2t({imports:[t.MD,L.Ti,A.Y3,j.WF,M.L,K.i]})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(oe){return new(oe||X)};static#t=this.\u0275mod=I.$C({type:X});static#n=this.\u0275inj=I.G2t({imports:[t.MD,s.iI,A.Y3,m.T,e.MC,w,K.i]})}return X})()},1289:(Rt,De,a)=>{a.d(De,{R:()=>Ie});var t=a(9199),s=a(6354),m=a(5964),e=a(3953),M=a(9145),K=a(177),L=a(5703),j=a(2e3),A=a(5103),I=a(7391),w=a(7679),F=a(1774),X=a(2287);function V(ve,fe){if(1&ve&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&ve){const Y=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,Y.name,50)," ")}}function x(ve,fe){if(1&ve&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&ve){const Y=e.XpG(2).ngIf;e.Y8G("href",Y.diseaseUrl),e.R7$(),e.SpI(" DOID: ",Y.doid," ")}}function oe(ve,fe){if(1&ve&&e.DNE(0,x,2,2,"cvc-link-tag",13),2&ve){const Y=e.XpG().ngIf,z=e.sdS(7);e.Y8G("ngIf",Y.doid)("ngIfElse",z)}}function J(ve,fe){1&ve&&(e.j41(0,"span",15),e.EFF(1,"No DOID"),e.k0s())}function Ee(ve,fe){if(1&ve&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&ve){const Y=e.XpG().ngIf;e.R7$(),e.SpI(" ",Y.name," ")}}function Oe(ve,fe){if(1&ve&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&ve){const Y=e.XpG().ngIf;e.R7$(),e.SpI(" ",Y.diseaseAliases.join(", ")," ")}}function pe(ve,fe){if(1&ve&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,V,3,4,"ng-template",null,0,e.C5r)(4,oe,1,2,"ng-template",null,1,e.C5r)(6,J,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,Ee,2,1,"nz-descriptions-item",7)(10,Oe,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&ve){const Y=fe.ngIf,z=e.sdS(3),Z=e.sdS(5);e.R7$(),e.Y8G("nzTitle",z)("nzExtra",Z),e.R7$(7),e.Y8G("nzColumn",1),e.R7$(),e.Y8G("ngIf",Y.name.length>50),e.R7$(),e.Y8G("ngIf",Y.diseaseAliases.length>0),e.R7$(2),e.SpI(" ",Y.assertionCount," "),e.R7$(2),e.SpI(" ",Y.evidenceItemCount," "),e.R7$(2),e.SpI(" ",Y.molecularProfileCount," ")}}let Ie=(()=>{class ve{constructor(Y){this.gql=Y}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,s.T)(({data:Y})=>Y?.diseasePopover),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(z){return new(z||ve)(e.rXU(M.cs4))};static#t=this.\u0275cmp=e.VBU({type:ve,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noDoid",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(z,Z){1&z&&(e.j41(0,"div",3),e.DNE(1,pe,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&z&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,Z.disease$)))},dependencies:[K.bT,L.cK,j.xA,j.gr,A.Dn,I.Di,w.a,F.L9,X.H],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}"]})}return ve})()},8156:(Rt,De,a)=>{a.d(De,{U:()=>A});var t=a(177),s=a(5703),m=a(2e3),e=a(5103),M=a(7054),K=a(7391),L=a(4917),j=a(3953);let A=(()=>{class I{static#e=this.\u0275fac=function(X){return new(X||I)};static#t=this.\u0275mod=j.$C({type:I});static#n=this.\u0275inj=j.G2t({imports:[t.MD,s.Ti,m.WF,e.Y3,K.kT,L.i,M.L]})}return I})()},9861:(Rt,De,a)=>{a.d(De,{Y:()=>Ie});var t=a(6514),s=a(3953),m=a(177),e=a(1188),M=a(5699),K=a(1236),L=a(5103),j=a(1289),A=a(2287);const I=ve=>({deprecated:ve});function w(ve,fe){}function F(ve,fe){if(1&ve&&(s.qex(0),s.j41(1,"a",6),s.DNE(2,w,0,0,"ng-template",7),s.k0s(),s.bVm()),2&ve){const Y=s.XpG(),z=s.sdS(2);s.R7$(),s.Y8G("routerLink",Y.disease.link),s.R7$(),s.Y8G("ngTemplateOutlet",z)}}function X(ve,fe){}function V(ve,fe){if(1&ve&&s.nrm(0,"cvc-disease-popover",9),2&ve){const Y=s.XpG(2);s.Y8G("diseaseId",Y.disease.id)}}function x(ve,fe){if(1&ve){const Y=s.RV6();s.j41(0,"nz-tag",8),s.bIt("nzOnClose",function(Z){s.eBV(Y);const he=s.XpG();return s.Njj(he.itemClosed(Z))}),s.DNE(1,X,0,0,"ng-template",7),s.k0s(),s.DNE(2,V,1,1,"ng-template",null,3,s.C5r)}if(2&ve){const Y=s.sdS(3),z=s.XpG(),Z=s.sdS(6);s.Y8G("ngClass",s.eq3(6,I,z.disease.deprecated))("nzPopoverMouseEnterDelay",z.onCloseClicked?0:.5)("nzPopoverContent",Y)("nzPopoverTrigger",z.enablePopover?"hover":null)("nzMode",z.onCloseClicked?"closeable":"default"),s.R7$(),s.Y8G("ngTemplateOutlet",Z)}}function oe(ve,fe){}function J(ve,fe){if(1&ve&&s.DNE(0,oe,0,0,"ng-template",7),2&ve){s.XpG();const Y=s.sdS(2);s.Y8G("ngTemplateOutlet",Y)}}function Ee(ve,fe){if(1&ve&&(s.qex(0),s.EFF(1),s.nI1(2,"truncate"),s.bVm()),2&ve){const Y=s.XpG(2);s.R7$(),s.SpI(" ",s.i5U(2,1,Y.disease.name,27)," ")}}function Oe(ve,fe){if(1&ve&&s.EFF(0),2&ve){const Y=s.XpG(2);s.SpI(" ",Y.disease.name," ")}}function pe(ve,fe){if(1&ve&&(s.nrm(0,"i",10),s.DNE(1,Ee,3,4,"ng-container",5)(2,Oe,1,1,"ng-template",null,4,s.C5r)),2&ve){const Y=s.sdS(3),z=s.XpG();s.R7$(),s.Y8G("ngIf",z.truncateLongName)("ngIfElse",Y)}}let Ie=(()=>{class ve extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set disease(Y){if(!Y)throw new Error("disease-tag disease Input requires LinkableDisease.");this._disease=Y}get disease(){return this._disease}idFunction(){return this.disease.id}static#e=this.\u0275fac=(()=>{let Y;return function(Z){return(Y||(Y=s.xGo(ve)))(Z||ve)}})();static#t=this.\u0275cmp=s.VBU({type:ve,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[s.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["diseasePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"diseaseId"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"]],template:function(z,Z){if(1&z&&s.DNE(0,F,3,2,"ng-container",5)(1,x,4,8,"ng-template",null,0,s.C5r)(3,J,1,1,"ng-template",null,1,s.C5r)(5,pe,4,2,"ng-template",null,2,s.C5r),2&z){const he=s.sdS(4);s.Y8G("ngIf",Z.linked)("ngIfElse",he)}},dependencies:[m.YU,m.bT,m.T3,e.Wk,M.s,K.L_,L.Dn,j.R,A.H],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}"],changeDetection:0})}return ve})()},9192:(Rt,De,a)=>{a.d(De,{J:()=>A});var t=a(177),s=a(1188),m=a(5699),e=a(1236),M=a(5103),K=a(8156),L=a(4917),j=a(3953);let A=(()=>{class I{static#e=this.\u0275fac=function(X){return new(X||I)};static#t=this.\u0275mod=j.$C({type:I});static#n=this.\u0275inj=j.G2t({imports:[t.MD,s.iI,m.T,e.MC,M.Y3,L.i,K.U]})}return I})()},8011:(Rt,De,a)=>{a.d(De,{S:()=>en});var t=a(6354),s=a(5964),m=a(9199),e=a(3953),M=a(9145),K=a(177),L=a(1188),j=a(5103),A=a(5703),I=a(7529),w=a(2e3),F=a(5699),X=a(7685),V=a(7391),x=a(9563),oe=a(9861),J=a(7047),Ee=a(9062),Oe=a(311),pe=a(5473),Ie=a(9973),ve=a(1774),fe=a(1677),Y=a(3075);function z(Ut,Lt){if(1&Ut&&(e.qex(0),e.nrm(1,"i",18),e.nI1(2,"entityColor"),e.EFF(3),e.bVm()),2&Ut){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"EvidenceItem")),e.R7$(2),e.SpI(" ",fn.name," ")}}function Z(Ut,Lt){if(1&Ut&&e.nrm(0,"cvc-status-tag",19),2&Ut){const fn=e.XpG(2).ngIf;e.Y8G("status",fn.status)}}function he(Ut,Lt){1&Ut&&(e.j41(0,"nz-space"),e.DNE(1,z,4,4,"ng-container",16)(2,Z,1,1,"cvc-status-tag",17),e.k0s())}function E(Ut,Lt){if(1&Ut&&e.nrm(0,"cvc-molecular-profile-tag",20),2&Ut){const fn=e.XpG().ngIf;e.Y8G("molecularProfile",fn.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function S(Ut,Lt){if(1&Ut&&(e.qex(0),e.EFF(1),e.bVm()),2&Ut){const fn=Lt.ngIf;e.R7$(),e.SpI(" ",fn," ")}}function R(Ut,Lt){if(1&Ut&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",22),e.nrm(2,"cvc-mp-tag-name",23),e.k0s(),e.j41(3,"nz-descriptions-item",24),e.nrm(4,"cvc-source-tag",25),e.k0s()()),2&Ut){const fn=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("nameSegments",fn.molecularProfile.parsedName)("enablePopover",!1),e.R7$(2),e.Y8G("source",fn.source)("enablePopover",!1)}}function U(Ut,Lt){if(1&Ut&&(e.qex(0),e.nrm(1,"cvc-disease-tag",35),e.bVm()),2&Ut){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("enablePopover",!1)("disease",fn.disease)("truncateLongName",!0)}}function se(Ut,Lt){1&Ut&&e.EFF(0," N/A ")}function Be(Ut,Lt){if(1&Ut&&(e.j41(0,"span"),e.nrm(1,"cvc-therapy-tag",38),e.k0s()),2&Ut){const fn=Lt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("therapy",fn)("truncateLongName",!0)}}function Pt(Ut,Lt){if(1&Ut&&(e.qex(0),e.EFF(1),e.nI1(2,"titlecase"),e.bVm()),2&Ut){const fn=e.XpG(3).ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,fn.therapyInteractionType)," ")}}function gt(Ut,Lt){if(1&Ut&&(e.j41(0,"nz-descriptions-item",36),e.DNE(1,Be,2,3,"span",37)(2,Pt,3,3,"ng-container",5),e.k0s()),2&Ut){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",fn.therapies),e.R7$(),e.Y8G("ngIf",fn.therapies.length>1)}}function wt(Ut,Lt){if(1&Ut&&(e.j41(0,"span"),e.nrm(1,"cvc-phenotype-tag",40),e.k0s()),2&Ut){const fn=Lt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("phenotype",fn)}}function Le(Ut,Lt){if(1&Ut&&(e.j41(0,"nz-descriptions-item",39),e.DNE(1,wt,2,2,"span",37),e.k0s()),2&Ut){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",fn.phenotypes)}}function zt(Ut,Lt){if(1&Ut&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",26),e.EFF(2),e.k0s(),e.j41(3,"nz-descriptions-item",27),e.EFF(4),e.nI1(5,"evidenceEnumDisplay"),e.k0s(),e.j41(6,"nz-descriptions-item",28),e.EFF(7),e.nI1(8,"evidenceEnumDisplay"),e.k0s(),e.j41(9,"nz-descriptions-item",29),e.EFF(10),e.nI1(11,"evidenceEnumDisplay"),e.k0s(),e.j41(12,"nz-descriptions-item",30),e.EFF(13),e.nrm(14,"i",31),e.k0s(),e.j41(15,"nz-descriptions-item",32),e.DNE(16,U,2,3,"ng-container",10)(17,se,1,0,"ng-template",null,3,e.C5r),e.k0s(),e.DNE(19,gt,3,2,"nz-descriptions-item",33)(20,Le,2,1,"nz-descriptions-item",34),e.k0s()),2&Ut){const fn=e.sdS(18),$n=e.XpG().ngIf;e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",$n.evidenceLevel," "),e.R7$(2),e.SpI(" ",e.bMT(5,10,$n.evidenceType)," "),e.R7$(3),e.SpI(" ",e.bMT(8,12,$n.evidenceDirection)," "),e.R7$(3),e.SpI(" ",e.bMT(11,14,$n.significance)," "),e.R7$(3),e.SpI(" ",$n.evidenceRating,""),e.R7$(3),e.Y8G("ngIf",$n.disease)("ngIfElse",fn),e.R7$(3),e.Y8G("ngIf",$n.therapies.length>0),e.R7$(),e.Y8G("ngIf",$n.phenotypes.length>0)}}function xt(Ut,Lt){if(1&Ut&&(e.j41(0,"a",41)(1,"nz-tag",42),e.nrm(2,"i",43),e.EFF(3),e.k0s()()),2&Ut){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/flags"),e.R7$(3),e.SpI(" Flags (",fn.flags.totalCount,") ")}}function st(Ut,Lt){if(1&Ut&&(e.j41(0,"a",41)(1,"nz-tag",44),e.nrm(2,"i",45),e.EFF(3),e.k0s()()),2&Ut){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",fn.revisions.totalCount,") ")}}function Ct(Ut,Lt){if(1&Ut&&(e.j41(0,"a",41)(1,"nz-tag",46),e.nrm(2,"i",47),e.EFF(3),e.k0s()()),2&Ut){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/comments"),e.R7$(3),e.SpI(" Comments (",fn.comments.totalCount,") ")}}function It(Ut,Lt){if(1&Ut&&(e.qex(0),e.j41(1,"nz-card",6),e.DNE(2,he,3,0,"ng-template",null,1,e.C5r)(4,E,1,3,"ng-template",null,2,e.C5r),e.j41(6,"nz-row")(7,"nz-col",7)(8,"div",8)(9,"p",9),e.DNE(10,S,2,1,"ng-container",10),e.k0s()()()(),e.j41(11,"nz-space",11),e.DNE(12,R,5,5,"nz-descriptions",12)(13,zt,21,16,"nz-descriptions",12),e.k0s(),e.j41(14,"nz-row",13)(15,"nz-col",7)(16,"nz-space",14),e.DNE(17,xt,4,3,"a",15)(18,st,4,3,"a",15)(19,Ct,4,3,"a",15),e.k0s()()()(),e.bVm()),2&Ut){const fn=Lt.ngIf,$n=e.sdS(3),zn=e.sdS(5);e.XpG();const bt=e.sdS(4);e.R7$(),e.Y8G("nzTitle",$n)("nzExtra",zn),e.R7$(8),e.Y8G("nzEllipsisRows",4),e.R7$(),e.Y8G("ngIf",fn.description)("ngIfElse",bt)}}function Tt(Ut,Lt){1&Ut&&e.EFF(0," Evidence item has not been provided a description.\n")}let en=(()=>{class Ut{constructor(fn){this.gql=fn}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.T)(({data:fn})=>fn?.evidenceItem),(0,s.p)(m.kP))}static#e=this.\u0275fac=function($n){return new($n||Ut)(e.rXU(M.XUB))};static#t=this.\u0275cmp=e.VBU({type:Ut,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["noDescription",""],["cardTitle",""],["molecularProfile",""],["noDisease",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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"],["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($n,zn){1&$n&&(e.j41(0,"div",4),e.DNE(1,It,20,5,"ng-container",5),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,Tt,1,0,"ng-template",null,0,e.C5r)),2&$n&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,zn.evidence$)))},dependencies:[K.Sq,K.bT,L.Wk,j.Dn,A.cK,I.Uq,I.e,w.xA,w.gr,F.s,X.U5,X.Dq,V.Di,x.R,oe.Y,J.A,Ee.D,Oe.g,pe.z,Ie.G,K.PV,ve.L9,fe.pW,Y.R],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}"]})}return Ut})()},4666:(Rt,De,a)=>{a.d(De,{v:()=>Oe});var t=a(177),s=a(5703),m=a(7529),e=a(2e3),M=a(1188),K=a(5699),L=a(9192),j=a(1542),A=a(7685),I=a(5103),w=a(4917),F=a(1209),X=a(9590),V=a(7391),x=a(1448),oe=a(996),J=a(9802),Ee=a(3953);let Oe=(()=>{class pe{static#e=this.\u0275fac=function(fe){return new(fe||pe)};static#t=this.\u0275mod=Ee.$C({type:pe});static#n=this.\u0275inj=Ee.G2t({imports:[t.MD,M.iI,I.Y3,s.Ti,m.f3,e.WF,K.T,A.pc,V.kT,w.i,J._,L.J,j.X,F.k,X.R,oe.o,x.B]})}return pe})()},1429:(Rt,De,a)=>{a.d(De,{X:()=>Y});var t=a(9199),s=a(6354),m=a(5964),e=a(3953),M=a(9145),K=a(177),L=a(1188),j=a(5703),A=a(7529),I=a(2e3),w=a(5699),F=a(5103),X=a(7685),V=a(1774),x=a(3075);function oe(z,Z){if(1&z&&(e.nrm(0,"i",12),e.nI1(1,"entityColor"),e.EFF(2)),2&z){const he=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,3,"Feature")),e.R7$(2),e.Lme(" ",he.featureInstance.__typename," - ",he.name," ")}}function J(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",13),e.EFF(1),e.k0s()),2&z){const he=e.XpG().ngIf;e.R7$(),e.SpI(" ",he.fullName," ")}}function Ee(z,Z){if(1&z&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&z){const he=Z.$implicit;e.R7$(),e.JRh(he)}}function Oe(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",14),e.DNE(1,Ee,2,1,"nz-tag",15),e.k0s()),2&z){const he=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",he.featureAliases)}}function pe(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",17),e.nrm(2,"i",18),e.EFF(3),e.k0s()()),2&z){const he=e.XpG().ngIf;e.Mz_("routerLink","/features/",he.id,"/flags"),e.R7$(3),e.SpI(" Flags (",he.flags.totalCount,") ")}}function Ie(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",19),e.nrm(2,"i",20),e.EFF(3," Revisions "),e.k0s()()),2&z){const he=e.XpG().ngIf;e.Mz_("routerLink","/features/",he.id,"/revisions")}}function ve(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",21),e.nrm(2,"i",22),e.EFF(3," Comments "),e.k0s()()),2&z){const he=e.XpG().ngIf;e.Mz_("routerLink","/features/",he.id,"/comments")}}function fe(z,Z){if(1&z&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,oe,3,5,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",4),e.DNE(5,J,2,1,"nz-descriptions-item",5)(6,Oe,2,1,"nz-descriptions-item",6),e.j41(7,"nz-descriptions-item",7),e.EFF(8),e.k0s()(),e.j41(9,"nz-row",8)(10,"nz-col",9)(11,"nz-space",10),e.DNE(12,pe,4,3,"a",11)(13,Ie,4,2,"a",11)(14,ve,4,2,"a",11),e.k0s()()()(),e.bVm()),2&z){const he=Z.ngIf,E=e.sdS(3);e.R7$(),e.Y8G("nzTitle",E),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",he.fullName),e.R7$(),e.Y8G("ngIf",he.featureAliases.length>0),e.R7$(2),e.SpI(" ",he.variants.totalCount," ")}}let Y=(()=>{class z{constructor(he){this.gql=he}ngOnInit(){if(null==this.featureId)throw new Error("cvc-feature-popover requires valid featureId input.");this.feature$=this.gql.watch({featureId:this.featureId}).valueChanges.pipe((0,s.T)(({data:he})=>he?.feature),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(E){return new(E||z)(e.rXU(M.AsH))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["cvc-feature-popover"]],inputs:{featureId:"featureId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","2","nzTitle","Full Name",4,"ngIf"],["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-feature",3,"nzTwotoneColor"],["nzSpan","2","nzTitle","Full Name"],["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(E,S){1&E&&(e.j41(0,"div",1),e.DNE(1,fe,15,5,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&E&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,S.feature$)))},dependencies:[K.Sq,K.bT,L.Wk,j.cK,A.Uq,A.e,I.xA,I.gr,w.s,F.Dn,X.U5,X.Dq,V.L9,x.R],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}"]})}return z})()},5928:(Rt,De,a)=>{a.d(De,{o:()=>w});var t=a(177),s=a(1188),m=a(4917),e=a(5703),M=a(2e3),K=a(7529),L=a(5103),j=a(7685),A=a(5699),I=a(3953);let w=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=I.$C({type:F});static#n=this.\u0275inj=I.G2t({imports:[t.MD,s.iI,e.Ti,K.f3,M.WF,A.T,L.Y3,j.pc,m.i]})}return F})()},3245:(Rt,De,a)=>{a.d(De,{_:()=>Y});var t=a(6514),s=a(505),m=a(3953),e=a(177),M=a(1188),K=a(5699),L=a(1236),j=a(5103),A=a(1429),I=a(2387),w=a(2287),F=a(3075);const X=z=>({deprecated:z});function V(z,Z){}function x(z,Z){if(1&z&&(m.qex(0),m.j41(1,"a",6),m.DNE(2,V,0,0,"ng-template",7),m.k0s(),m.bVm()),2&z){const he=m.XpG(),E=m.sdS(2);m.R7$(),m.Y8G("routerLink",he.feature.link),m.R7$(),m.Y8G("ngTemplateOutlet",E)}}function oe(z,Z){}function J(z,Z){if(1&z&&m.nrm(0,"cvc-feature-popover",9),2&z){const he=m.XpG(2);m.Y8G("featureId",he.feature.id)}}function Ee(z,Z){if(1&z){const he=m.RV6();m.j41(0,"nz-tag",8),m.bIt("nzOnClose",function(S){m.eBV(he);const R=m.XpG();return m.Njj(R.itemClosed(S))}),m.DNE(1,oe,0,0,"ng-template",7),m.k0s(),m.DNE(2,J,1,1,"ng-template",null,3,m.C5r)}if(2&z){const he=m.sdS(3),E=m.XpG(),S=m.sdS(6);m.Y8G("ngClass",m.eq3(6,X,E.feature.deprecated))("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",he)("nzPopoverTrigger",E.enablePopover?"hover":null)("nzMode",E.onCloseClicked?"closeable":"default"),m.R7$(),m.Y8G("ngTemplateOutlet",S)}}function Oe(z,Z){}function pe(z,Z){if(1&z&&m.DNE(0,Oe,0,0,"ng-template",7),2&z){m.XpG();const he=m.sdS(2);m.Y8G("ngTemplateOutlet",he)}}function Ie(z,Z){if(1&z&&(m.qex(0),m.EFF(1),m.nI1(2,"truncate"),m.bVm()),2&z){const he=m.XpG(2);m.R7$(),m.SpI(" ",m.i5U(2,1,he.feature.name,12)," ")}}function ve(z,Z){if(1&z&&m.EFF(0),2&z){const he=m.XpG(2);m.SpI(" ",he.feature.name," ")}}function fe(z,Z){if(1&z&&(m.j41(0,"cvc-icon-badges",10),m.nrm(1,"i",11),m.nI1(2,"entityColor"),m.k0s(),m.DNE(3,Ie,3,4,"ng-container",5)(4,ve,1,1,"ng-template",null,4,m.C5r)),2&z){const he=m.sdS(5),E=m.XpG();m.Y8G("flagged",E.feature.flagged)("entityColor",E.iconColor),m.R7$(),m.Y8G("nzTwotoneColor",m.bMT(2,5,"Feature")),m.R7$(2),m.Y8G("ngIf",E.truncateLongName)("ngIfElse",he)}}let Y=(()=>{class z extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,s.P)("Gene")}idFunction(){return this.feature.id}ngOnInit(){if(super.ngOnInit(),void 0===this.feature)throw new Error("cvc-feature-tag requires LinkableFeature input, none supplied.")}static#e=this.\u0275fac=function(E){return new(E||z)};static#t=this.\u0275cmp=m.VBU({type:z,selectors:[["cvc-feature-tag"]],inputs:{feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[m.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["featurePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"featureId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-feature","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,S){if(1&E&&m.DNE(0,x,3,2,"ng-container",5)(1,Ee,4,8,"ng-template",null,0,m.C5r)(3,pe,1,1,"ng-template",null,1,m.C5r)(5,fe,6,7,"ng-template",null,2,m.C5r),2&E){const R=m.sdS(4);m.Y8G("ngIf",S.linked)("ngIfElse",R)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,K.s,L.L_,j.Dn,A.X,I.N,w.H,F.R],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})}return z})()},6912:(Rt,De,a)=>{a.d(De,{l:()=>w});var t=a(177),s=a(1188),m=a(5699),e=a(5103),M=a(1236),K=a(4917),L=a(3146),j=a(4994),A=a(5928),I=a(3953);let w=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=I.$C({type:F});static#n=this.\u0275inj=I.G2t({imports:[t.MD,s.iI,m.T,M.MC,e.Y3,L.W2,K.i,A.o,j.a]})}return F})()},5761:(Rt,De,a)=>{a.d(De,{q:()=>he});var t=a(9199),s=a(6354),m=a(5964),e=a(3953),M=a(9145),K=a(177),L=a(1188),j=a(5703),A=a(7529),I=a(2e3),w=a(5699),F=a(5103),X=a(7685),V=a(7855),x=a(9973),oe=a(1774);function J(E,S){if(1&E&&(e.nrm(0,"i",16),e.EFF(1)),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.name," ")}}function Ee(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.evidenceItems.totalCount," ")}}function Oe(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",18),e.EFF(1),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.assertions.totalCount," ")}}function pe(E,S){if(1&E&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&E){const R=S.$implicit;e.R7$(),e.JRh(R)}}function Ie(E,S){if(1&E&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,pe,2,1,"nz-tag",19),e.k0s(),e.bVm()),2&E){const R=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",R.molecularProfileAliases)}}function ve(E,S){1&E&&(e.j41(0,"span",20),e.EFF(1,"None specified"),e.k0s())}function fe(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/flags"),e.R7$(3),e.SpI(" Flags (",R.flags.totalCount,") ")}}function Y(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",R.revisions.totalCount,") ")}}function z(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",26),e.nrm(2,"i",27),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/comments"),e.R7$(3),e.SpI(" Comments (",R.comments.totalCount,") ")}}function Z(E,S){if(1&E&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,J,2,1,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",5)(5,"nz-descriptions-item",6),e.nrm(6,"cvc-mp-tag-name",7),e.k0s(),e.DNE(7,Ee,2,1,"nz-descriptions-item",8)(8,Oe,2,1,"nz-descriptions-item",9),e.j41(9,"nz-descriptions-item",10),e.DNE(10,Ie,3,1,"ng-container",11)(11,ve,2,0,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(13,"nz-row",12)(14,"nz-col",13)(15,"nz-space",14),e.DNE(16,fe,4,3,"a",15)(17,Y,4,3,"a",15)(18,z,4,3,"a",15),e.k0s()()()(),e.bVm()),2&E){const R=S.ngIf,U=e.sdS(3),se=e.sdS(12);e.R7$(),e.Y8G("nzTitle",U),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("nameSegments",R.parsedName)("enablePopover",!1),e.R7$(),e.Y8G("ngIf",R.evidenceItems.totalCount>0),e.R7$(),e.Y8G("ngIf",R.assertions.totalCount>0),e.R7$(2),e.Y8G("ngIf",R.molecularProfileAliases.length>0)("ngIfElse",se)}}let he=(()=>{class E{constructor(R){this.gql=R}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,s.T)(({data:R})=>R?.molecularProfile),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(U){return new(U||E)(e.rXU(M.fvu))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-molecular-profile-popover"]],inputs:{molecularProfileId:"molecularProfileId"},decls:3,vars:3,consts:[["cardTitle",""],["noAliases",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["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"],["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(U,se){1&U&&(e.j41(0,"div",2),e.DNE(1,Z,19,8,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&U&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.molecularProfile$)))},dependencies:[K.Sq,K.bT,L.Wk,j.cK,A.Uq,A.e,I.xA,I.gr,w.s,F.Dn,X.U5,X.Dq,V.M,x.G,oe.L9],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}"]})}return E})()},8052:(Rt,De,a)=>{a.d(De,{b:()=>V});var t=a(177),s=a(1188),m=a(5703),e=a(7529),M=a(2e3),K=a(5699),L=a(5103),j=a(7685),A=a(7054),I=a(1448),w=a(2142),F=a(6912),X=a(3953);let V=(()=>{class x{static#e=this.\u0275fac=function(Ee){return new(Ee||x)};static#t=this.\u0275mod=X.$C({type:x});static#n=this.\u0275inj=X.G2t({imports:[t.MD,s.iI,m.Ti,e.f3,M.WF,K.T,L.Y3,j.pc,F.l,A.L,w.x,I.B]})}return x})()},9973:(Rt,De,a)=>{a.d(De,{G:()=>F});var t=a(3953),s=a(177),m=a(3100),e=a(3245),M=a(4247);const K=X=>[X];function L(X,V){if(1&X&&t.nrm(0,"span",3),2&X){const x=t.XpG().$implicit;t.Y8G("innerHtml",x.text,t.npT)}}function j(X,V){if(1&X&&t.nrm(0,"cvc-feature-tag",6),2&X){const x=t.XpG().$implicit,oe=t.XpG(3);t.Y8G("feature",x)("enablePopover",oe.enablePopover)}}function A(X,V){if(1&X&&(t.qex(0),t.DNE(1,j,1,2,"cvc-feature-tag",5),t.bVm()),2&X){const x=V.$implicit;t.R7$(),t.Y8G("ngIf","Feature"==x.__typename)}}function I(X,V){if(1&X&&(t.qex(0),t.j41(1,"cvc-tag-group"),t.DNE(2,A,2,1,"ng-container",0),t.nrm(3,"cvc-variant-tag",4),t.k0s(),t.bVm()),2&X){const x=t.XpG(),oe=x.$implicit,J=x.index,Ee=t.XpG();t.R7$(2),t.Y8G("ngForOf",t.eq3(3,K,Ee.nameSegments[J-1])),t.R7$(),t.Y8G("variant",oe)("enablePopover",Ee.enablePopover)}}function w(X,V){if(1&X&&(t.qex(0),t.DNE(1,L,1,1,"span",1)(2,I,4,5,"ng-container",2),t.bVm()),2&X){const x=V.$implicit;t.R7$(),t.Y8G("ngIf","MolecularProfileTextSegment"==x.__typename),t.R7$(),t.Y8G("ngIf","Variant"==x.__typename)}}let F=(()=>{class X{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.")}static#e=this.\u0275fac=function(oe){return new(oe||X)};static#t=this.\u0275cmp=t.VBU({type:X,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,"feature","enablePopover",4,"ngIf"],[3,"feature","enablePopover"]],template:function(oe,J){1&oe&&t.DNE(0,w,3,2,"ng-container",0),2&oe&&t.Y8G("ngForOf",J.nameSegments)},dependencies:[s.Sq,s.bT,m.V,e._,M.L],styles:[".text-segment[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;font-weight:700;color:#0009;font-size:14px;line-height:12px}"]})}return X})()},1448:(Rt,De,a)=>{a.d(De,{B:()=>j});var t=a(177),s=a(7051),m=a(5699),e=a(5103),M=a(2502),K=a(6912),L=a(3953);let j=(()=>{class A{static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275mod=L.$C({type:A});static#n=this.\u0275inj=L.G2t({imports:[t.MD,m.T,e.Y3,s.U,K.l,M.u]})}return A})()},5473:(Rt,De,a)=>{a.d(De,{z:()=>E});var t=a(6514),s=a(505),m=a(3953),e=a(177),M=a(1188),K=a(5699),L=a(1236),j=a(5103),A=a(5761),I=a(2387),w=a(2287),F=a(3075);const X=S=>({deprecated:S});function V(S,R){}function x(S,R){if(1&S&&(m.qex(0),m.j41(1,"a",7),m.DNE(2,V,0,0,"ng-template",8),m.k0s(),m.bVm()),2&S){const U=m.XpG(),se=m.sdS(2);m.R7$(),m.Y8G("routerLink",U.molecularProfile.link),m.R7$(),m.Y8G("ngTemplateOutlet",se)}}function oe(S,R){}function J(S,R){if(1&S){const U=m.RV6();m.j41(0,"nz-tag",10),m.bIt("nzOnClose",function(Be){m.eBV(U);const Pt=m.XpG(2);return m.Njj(Pt.itemClosed(Be))}),m.DNE(1,oe,0,0,"ng-template",8),m.k0s()}if(2&S){m.XpG();const U=m.sdS(2),se=m.XpG(),Be=m.sdS(8);m.Y8G("ngClass",m.eq3(5,X,se.molecularProfile.deprecated))("nzPopoverMouseEnterDelay",se.onCloseClicked?0:.5)("nzPopoverContent",U)("nzMode",se.onCloseClicked?"closeable":"default"),m.R7$(),m.Y8G("ngTemplateOutlet",Be)}}function Ee(S,R){if(1&S&&m.nrm(0,"cvc-molecular-profile-popover",12),2&S){const U=m.XpG(3);m.Y8G("molecularProfileId",U.molecularProfile.id)}}function Oe(S,R){if(1&S&&m.DNE(0,Ee,1,1,"cvc-molecular-profile-popover",11),2&S){const U=m.XpG(2);m.Y8G("ngIf",U.enablePopover)}}function pe(S,R){if(1&S&&m.DNE(0,J,2,7,"nz-tag",9)(1,Oe,1,1,"ng-template",null,4,m.C5r),2&S){const U=m.XpG(),se=m.sdS(4);m.Y8G("ngIf",U.enablePopover)("ngIfElse",se)}}function Ie(S,R){}function ve(S,R){if(1&S){const U=m.RV6();m.j41(0,"nz-tag",13),m.bIt("nzOnClose",function(Be){m.eBV(U);const Pt=m.XpG();return m.Njj(Pt.itemClosed(Be))}),m.DNE(1,Ie,0,0,"ng-template",8),m.k0s()}if(2&S){const U=m.XpG(),se=m.sdS(8);m.Y8G("nzMode",U.onCloseClicked?"closeable":"default")("ngClass",m.eq3(3,X,U.molecularProfile.deprecated)),m.R7$(),m.Y8G("ngTemplateOutlet",se)}}function fe(S,R){}function Y(S,R){if(1&S&&m.DNE(0,fe,0,0,"ng-template",8),2&S){m.XpG();const U=m.sdS(2);m.Y8G("ngTemplateOutlet",U)}}function z(S,R){if(1&S&&(m.qex(0),m.EFF(1),m.nI1(2,"truncate"),m.bVm()),2&S){const U=m.XpG(2);m.R7$(),m.SpI(" ",m.i5U(2,1,U.molecularProfile.name,U.truncationLength)," ")}}function Z(S,R){if(1&S&&m.EFF(0),2&S){const U=m.XpG(2);m.SpI(" ",U.molecularProfile.name," ")}}function he(S,R){if(1&S&&(m.j41(0,"cvc-icon-badges",14),m.nrm(1,"i",15),m.nI1(2,"entityColor"),m.k0s(),m.DNE(3,z,3,4,"ng-container",6)(4,Z,1,1,"ng-template",null,5,m.C5r)),2&S){const U=m.sdS(5),se=m.XpG();m.Y8G("flagged",se.molecularProfile.flagged)("entityColor",se.iconColor),m.R7$(),m.Y8G("nzTwotoneColor",m.bMT(2,5,"MolecularProfile")),m.R7$(2),m.Y8G("ngIf",se.truncateLongName)("ngIfElse",U)}}let E=(()=>{class S extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.truncationLength=20,this.iconColor=(0,s.P)("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(U=>"text"in U?U.text:U.name).join(" "))}static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275cmp=m.VBU({type:S,selectors:[["cvc-molecular-profile-tag"]],inputs:{molecularProfile:"molecularProfile",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[m.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["nz-popover","","nzPopoverTrigger","hover",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode"],[3,"molecularProfileId",4,"ngIf"],[3,"molecularProfileId"],[3,"nzOnClose","nzMode","ngClass"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-molecularprofile","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(se,Be){if(1&se&&m.DNE(0,x,3,2,"ng-container",6)(1,pe,3,2,"ng-template",null,0,m.C5r)(3,ve,2,5,"ng-template",null,1,m.C5r)(5,Y,1,1,"ng-template",null,2,m.C5r)(7,he,6,7,"ng-template",null,3,m.C5r),2&se){const Pt=m.sdS(6);m.Y8G("ngIf",Be.linked)("ngIfElse",Pt)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,K.s,L.L_,j.Dn,A.q,I.N,w.H,F.R],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})}return S})()},996:(Rt,De,a)=>{a.d(De,{o:()=>I});var t=a(177),s=a(1188),m=a(5699),e=a(5103),M=a(1236),K=a(4917),L=a(8052),j=a(4994),A=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(V){return new(V||w)};static#t=this.\u0275mod=A.$C({type:w});static#n=this.\u0275inj=A.G2t({imports:[t.MD,s.iI,m.T,M.MC,e.Y3,K.i,L.b,j.a]})}return w})()},6564:(Rt,De,a)=>{a.d(De,{F:()=>x});var t=a(9199),s=a(6354),m=a(5964),e=a(3953),M=a(9145),K=a(177),L=a(5103),j=a(5703),A=a(7679),I=a(2e3),w=a(1774);function F(oe,J){if(1&oe&&(e.nrm(0,"i",9),e.EFF(1)),2&oe){const Ee=e.XpG().ngIf;e.R7$(),e.SpI(" ",Ee.name," ")}}function X(oe,J){if(1&oe&&(e.j41(0,"cvc-link-tag",10),e.EFF(1),e.k0s()),2&oe){const Ee=e.XpG().ngIf;e.Y8G("href",Ee.url),e.R7$(),e.SpI(" ",Ee.hpoId," ")}}function V(oe,J){if(1&oe&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,F,2,1,"ng-template",null,0,e.C5r)(4,X,2,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",7),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",8),e.EFF(12),e.k0s()()(),e.bVm()),2&oe){const Ee=J.ngIf,Oe=e.sdS(3),pe=e.sdS(5);e.R7$(),e.Y8G("nzTitle",Oe)("nzExtra",pe),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",Ee.assertionCount," "),e.R7$(2),e.SpI(" ",Ee.evidenceItemCount," "),e.R7$(2),e.SpI(" ",Ee.molecularProfileCount," ")}}let x=(()=>{class oe{constructor(Ee){this.gql=Ee}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,s.T)(({data:Ee})=>Ee?.phenotypePopover),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(Oe){return new(Oe||oe)(e.rXU(M.WeE))};static#t=this.\u0275cmp=e.VBU({type:oe,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(Oe,pe){1&Oe&&(e.j41(0,"div",2),e.DNE(1,V,13,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Oe&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,pe.phenotype$)))},dependencies:[K.bT,L.Dn,j.cK,A.a,I.xA,I.gr,w.L9],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}"]})}return oe})()},2582:(Rt,De,a)=>{a.d(De,{y:()=>L});var t=a(177),s=a(5703),m=a(7054),e=a(2e3),M=a(5103),K=a(3953);let L=(()=>{class j{static#e=this.\u0275fac=function(w){return new(w||j)};static#t=this.\u0275mod=K.$C({type:j});static#n=this.\u0275inj=K.G2t({imports:[t.MD,M.Y3,s.Ti,m.L,e.WF]})}return j})()},7047:(Rt,De,a)=>{a.d(De,{A:()=>pe});var t=a(6514),s=a(3953),m=a(177),e=a(1188),M=a(5699),K=a(1236),L=a(5103),j=a(6564),A=a(3075);function I(Ie,ve){}function w(Ie,ve){if(1&Ie&&(s.qex(0),s.j41(1,"a",6),s.DNE(2,I,0,0,"ng-template",7),s.k0s(),s.bVm()),2&Ie){const fe=s.XpG(),Y=s.sdS(2);s.R7$(),s.Y8G("routerLink",fe.phenotype.link),s.R7$(),s.Y8G("ngTemplateOutlet",Y)}}function F(Ie,ve){}function X(Ie,ve){if(1&Ie&&s.nrm(0,"cvc-phenotype-popover",9),2&Ie){const fe=s.XpG(2);s.Y8G("phenotypeId",fe.phenotype.id)}}function V(Ie,ve){if(1&Ie){const fe=s.RV6();s.j41(0,"nz-tag",8),s.bIt("nzOnClose",function(z){s.eBV(fe);const Z=s.XpG();return s.Njj(Z.itemClosed(z))}),s.DNE(1,F,0,0,"ng-template",7),s.k0s(),s.DNE(2,X,1,1,"ng-template",null,4,s.C5r)}if(2&Ie){const fe=s.sdS(3),Y=s.XpG(),z=s.sdS(8);s.Y8G("nzPopoverMouseEnterDelay",Y.onCloseClicked?0:.5)("nzPopoverContent",fe)("nzPopoverTrigger",Y.enablePopover?"hover":null)("nzMode",Y.onCloseClicked?"closeable":"default"),s.R7$(),s.Y8G("ngTemplateOutlet",z)}}function x(Ie,ve){}function oe(Ie,ve){if(1&Ie){const fe=s.RV6();s.j41(0,"nz-tag",10),s.bIt("nzOnClose",function(z){s.eBV(fe);const Z=s.XpG();return s.Njj(Z.itemClosed(z))}),s.DNE(1,x,0,0,"ng-template",7),s.k0s()}if(2&Ie){const fe=s.XpG(),Y=s.sdS(8);s.Y8G("nzMode",fe.onCloseClicked?"closeable":"default"),s.R7$(),s.Y8G("ngTemplateOutlet",Y)}}function J(Ie,ve){}function Ee(Ie,ve){if(1&Ie&&s.DNE(0,J,0,0,"ng-template",7),2&Ie){s.XpG();const fe=s.sdS(2);s.Y8G("ngTemplateOutlet",fe)}}function Oe(Ie,ve){if(1&Ie&&(s.nrm(0,"i",11),s.nI1(1,"entityColor"),s.EFF(2)),2&Ie){const fe=s.XpG();s.Y8G("nzTwotoneColor",s.bMT(1,2,"Phenotype")),s.R7$(2),s.SpI(" ",fe.phenotype.name,"\n")}}let pe=(()=>{class Ie extends t.s{constructor(){super(...arguments),this.enablePopover=!0}set phenotype(fe){if(!fe)throw new Error("phenotype-tag phentype input requires LinkablePhenotype.");this._phenotype=fe}get phenotype(){return this._phenotype}idFunction(){return this.phenotype.id}static#e=this.\u0275fac=(()=>{let fe;return function(z){return(fe||(fe=s.xGo(Ie)))(z||Ie)}})();static#t=this.\u0275cmp=s.VBU({type:Ie,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[s.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["phenotypePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"phenotypeId"],[3,"nzOnClose","nzMode"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"]],template:function(Y,z){if(1&Y&&s.DNE(0,w,3,2,"ng-container",5)(1,V,4,5,"ng-template",null,0,s.C5r)(3,oe,2,2,"ng-template",null,1,s.C5r)(5,Ee,1,1,"ng-template",null,2,s.C5r)(7,Oe,3,4,"ng-template",null,3,s.C5r),2&Y){const Z=s.sdS(6);s.Y8G("ngIf",z.linked)("ngIfElse",Z)}},dependencies:[m.bT,m.T3,e.Wk,M.s,K.L_,L.Dn,j.F,A.R],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return Ie})()},1542:(Rt,De,a)=>{a.d(De,{X:()=>A});var t=a(177),s=a(1188),m=a(4917),e=a(5103),M=a(1236),K=a(5699),L=a(2582),j=a(3953);let A=(()=>{class I{static#e=this.\u0275fac=function(X){return new(X||I)};static#t=this.\u0275mod=j.$C({type:I});static#n=this.\u0275inj=j.G2t({imports:[t.MD,s.iI,K.T,M.MC,e.Y3,L.y,m.i]})}return I})()},2387:(Rt,De,a)=>{a.d(De,{N:()=>A});var t=a(505),s=a(3953),m=a(177);const e=["*"],M=I=>({background:I});function K(I,w){if(1&I&&s.nrm(0,"div",3),2&I){const F=s.XpG();s.Y8G("ngStyle",s.eq3(1,M,F.flagColor))}}function L(I,w){if(1&I&&s.nrm(0,"div",4),2&I){const F=s.XpG();s.Y8G("ngStyle",s.eq3(1,M,F.entityColor))}}function j(I,w){if(1&I&&s.nrm(0,"div",5),2&I){const F=s.XpG();s.Y8G("ngStyle",s.eq3(1,M,F.entityColor))}}let A=(()=>{class I{constructor(){this.hasRevisions=!1,this.flagged=!1,this.hasComments=!1,this.entityColor="#AAA",this.flagColor=(0,t.P)("Flag")}static#e=this.\u0275fac=function(X){return new(X||I)};static#t=this.\u0275cmp=s.VBU({type:I,selectors:[["cvc-icon-badges"]],inputs:{hasRevisions:"hasRevisions",flagged:"flagged",hasComments:"hasComments",entityColor:"entityColor"},ngContentSelectors:e,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(X,V){1&X&&(s.NAR(),s.SdG(0),s.DNE(1,K,1,3,"div",0)(2,L,1,3,"div",1)(3,j,1,3,"div",2)),2&X&&(s.R7$(),s.Y8G("ngIf",V.flagged),s.R7$(),s.Y8G("ngIf",V.hasRevisions),s.R7$(),s.Y8G("ngIf",V.hasComments))},dependencies:[m.bT,m.B3],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})}return I})()},4994:(Rt,De,a)=>{a.d(De,{a:()=>e});var t=a(177),s=a(4917),m=a(3953);let e=(()=>{class M{static#e=this.\u0275fac=function(j){return new(j||M)};static#t=this.\u0275mod=m.$C({type:M});static#n=this.\u0275inj=m.G2t({imports:[t.MD,s.i]})}return M})()},7679:(Rt,De,a)=>{a.d(De,{a:()=>K});var t=a(3953),s=a(5154),m=a(5699),e=a(5103);const M=["*"];let K=(()=>{class L{set href(A){if(!A)throw new Error("link-tag link Input requires string.");this._href=A}get href(){return this._href?this._href:""}static#e=this.\u0275fac=function(I){return new(I||L)};static#t=this.\u0275cmp=t.VBU({type:L,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:M,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,w){1&I&&(t.NAR(),t.j41(0,"a",0)(1,"nz-tag",1),t.nrm(2,"i",2),t.SdG(3),t.k0s()()),2&I&&(t.Y8G("href",w.href,t.B4B),t.R7$(),t.Y8G("nzTooltipTitle",w.tooltip)("nzTooltipTrigger",w.tooltip?"hover":null),t.R7$(),t.Y8G("nzType",w.iconName?w.iconName:"link"))},dependencies:[s.LH,m.s,e.Dn],encapsulation:2})}return L})()},7054:(Rt,De,a)=>{a.d(De,{L:()=>K});var t=a(177),s=a(5154),m=a(5699),e=a(5103),M=a(3953);let K=(()=>{class L{static#e=this.\u0275fac=function(I){return new(I||L)};static#t=this.\u0275mod=M.$C({type:L});static#n=this.\u0275inj=M.G2t({imports:[t.MD,s.Qt,m.T,e.Y3]})}return L})()},9214:(Rt,De,a)=>{a.d(De,{y:()=>M});var t=a(177),s=a(5103),m=a(5699),e=a(3953);let M=(()=>{class K{static#e=this.\u0275fac=function(A){return new(A||K)};static#t=this.\u0275mod=e.$C({type:K});static#n=this.\u0275inj=e.G2t({imports:[t.MD,m.T,s.Y3]})}return K})()},3296:(Rt,De,a)=>{a.d(De,{M:()=>I});var t=a(4412),s=a(605),m=a(1594),e=a(3953),M=a(177),K=a(5699),L=a(5103),j=a(1774);function A(w,F){1&w&&(e.j41(0,"nz-tag",1),e.nrm(1,"i",2),e.j41(2,"span"),e.EFF(3,"End of results reached"),e.k0s()())}let I=(()=>{class w{set cvcShowTag(X){void 0!==X&&X&&this.showTag()}constructor(X){this.cdr=X,this.showTag$=new t.t(!1)}showTag(){!1===this.showTag$.getValue()&&(this.showTag$.next(!0),(0,s.Y)(3e3).pipe((0,m.$)()).subscribe(()=>{this.showTag$.next(!1),this.cdr.detectChanges()}))}static#e=this.\u0275fac=function(V){return new(V||w)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:w,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(V,x){1&V&&(e.DNE(0,A,4,0,"nz-tag",0),e.nI1(1,"ngrxPush")),2&V&&e.Y8G("ngIf",e.bMT(1,1,x.showTag$))},dependencies:[M.bT,K.s,L.Dn,j.L9],encapsulation:2,changeDetection:0})}return w})()},2143:(Rt,De,a)=>{a.d(De,{n:()=>J});var t=a(3953),s=a(177),m=a(5699),e=a(5103),M=a(1236),K=a(2e3),L=a(2617),j=a(7679),A=a(8139);function I(Ee,Oe){1&Ee&&t.nrm(0,"i",5)}function w(Ee,Oe){1&Ee&&t.nrm(0,"i",6)}function F(Ee,Oe){if(1&Ee&&(t.j41(0,"nz-tag",2),t.nI1(1,"titlecase"),t.DNE(2,I,1,0,"i",3)(3,w,1,0,"i",4),t.EFF(4),t.nI1(5,"titlecase"),t.k0s()),2&Ee){const pe=t.XpG(),Ie=t.sdS(2);t.Y8G("nzColor",pe.tagStatus)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",Ie)("nzPopoverTitle","This Source has been identified by Retraction Watch as status: "+t.bMT(1,8,pe.retractionNature))("nzPopoverTrigger",pe.enablePopover?"hover":null),t.R7$(2),t.Y8G("ngIf","error"==pe.tagStatus),t.R7$(),t.Y8G("ngIf","warning"==pe.tagStatus),t.R7$(),t.SpI(" ",t.bMT(5,10,pe.retractionNature),"\n")}}function X(Ee,Oe){if(1&Ee&&(t.j41(0,"nz-descriptions-item",13),t.EFF(1),t.nI1(2,"timeAgo"),t.k0s()),2&Ee){const pe=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,pe.retractionDate))}}function V(Ee,Oe){if(1&Ee&&(t.j41(0,"nz-list-item"),t.EFF(1),t.k0s()),2&Ee){const pe=Oe.$implicit;t.R7$(),t.SpI(" ",pe.replace("+","")," ")}}function x(Ee,Oe){if(1&Ee&&(t.j41(0,"nz-descriptions-item",14)(1,"nz-list",15),t.DNE(2,V,2,1,"nz-list-item",16),t.k0s()()),2&Ee){const pe=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",pe.retractionReasons.split(";"))}}function oe(Ee,Oe){if(1&Ee&&(t.j41(0,"nz-descriptions",7),t.DNE(1,X,3,3,"nz-descriptions-item",8)(2,x,3,1,"nz-descriptions-item",9),t.j41(3,"nz-descriptions-item",10)(4,"cvc-link-tag",11),t.EFF(5," Retraction Watch Homepage "),t.k0s(),t.j41(6,"cvc-link-tag",12),t.EFF(7," Retraction Watch Database "),t.k0s()()()),2&Ee){const pe=t.XpG();t.Y8G("nzColumn",1),t.R7$(),t.Y8G("ngIf",pe.retractionDate),t.R7$(),t.Y8G("ngIf",pe.retractionReasons)}}let J=(()=>{class Ee{constructor(){this.enablePopover=!0}set retractionNature(pe){this._retractionNature=pe,pe&&("Retraction"==pe?(this.tagStatus="error",this.retracted=!0):(this.tagStatus="warning",this.retracted=!1))}get retractionNature(){return this._retractionNature}ngOnInit(){if(void 0===this.retractionNature)throw new Error("Must pass a valid retractionNature to cvc-status-tag component");if(void 0===this.retractionDate)throw new Error("Must pass a valid retractionDate to cvc-status-tag component");if(void 0===this.retractionReasons)throw new Error("Must pass a valid retractionReasons to cvc-status-tag component")}static#e=this.\u0275fac=function(Ie){return new(Ie||Ee)};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["cvc-retraction-status-tag"]],inputs:{retractionNature:"retractionNature",retractionDate:"retractionDate",retractionReasons:"retractionReasons",enablePopover:"enablePopover"},decls:3,vars:1,consts:[["retractionPopover",""],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger",4,"ngIf"],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger"],["nz-icon","","nzType","close-circle",4,"ngIf"],["nz-icon","","nzType","exclamation-circle",4,"ngIf"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Date",4,"ngIf"],["nzTitle","Reasons",4,"ngIf"],["nzTitle","Links"],["href","https://retractionwatch.com/"],["href","http://retractiondatabase.org/RetractionSearch.aspx?"],["nzTitle","Date"],["nzTitle","Reasons"],["nzSize","small"],[4,"ngFor","ngForOf"]],template:function(Ie,ve){1&Ie&&t.DNE(0,F,6,12,"nz-tag",1)(1,oe,8,3,"ng-template",null,0,t.C5r),2&Ie&&t.Y8G("ngIf",ve.tagStatus)},dependencies:[s.Sq,s.bT,m.s,e.Dn,M.L_,K.xA,K.gr,L.eE,L.lQ,j.a,s.PV,A.N],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}"]})}return Ee})()},174:(Rt,De,a)=>{a.d(De,{u:()=>I});var t=a(177),s=a(5699),m=a(5103),e=a(1236),M=a(2e3),K=a(2617),L=a(4917),j=a(7054),A=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(V){return new(V||w)};static#t=this.\u0275mod=A.$C({type:w});static#n=this.\u0275inj=A.G2t({imports:[t.MD,s.T,m.Y3,e.MC,M.WF,K.rD,L.i,j.L]})}return w})()},311:(Rt,De,a)=>{a.d(De,{g:()=>w});var t=a(3953),s=a(177),m=a(5699),e=a(5103);function M(F,X){1&F&&t.nrm(0,"i",7)}function K(F,X){1&F&&t.nrm(0,"i",8)}function L(F,X){1&F&&t.nrm(0,"i",9)}function j(F,X){1&F&&t.nrm(0,"i",10)}function A(F,X){1&F&&t.nrm(0,"i",10)}function I(F,X){if(1&F&&(t.j41(0,"nz-tag",1),t.qex(1,2),t.DNE(2,M,1,0,"i",3)(3,K,1,0,"i",4)(4,L,1,0,"i",5)(5,j,1,0,"i",6)(6,A,1,0,"i",6),t.bVm(),t.EFF(7),t.nI1(8,"titlecase"),t.k0s()),2&F){const V=t.XpG();t.Y8G("nzColor",V.tagStatus),t.R7$(),t.Y8G("ngSwitch",V.tagStatus),t.R7$(),t.Y8G("ngSwitchCase","success"),t.R7$(),t.Y8G("ngSwitchCase","error"),t.R7$(),t.Y8G("ngSwitchCase","warning"),t.R7$(),t.Y8G("ngSwitchCase","processing"),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(),t.SpI(" ",t.bMT(8,8,V.status),"\n")}}let w=(()=>{class F{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(V){this._status=V,V&&(this.tagStatus=this.statusColorMap[V])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus, RevisionStatus, or FlagState to cvc-status-tag component")}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275cmp=t.VBU({type:F,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(x,oe){1&x&&t.DNE(0,I,9,10,"nz-tag",0),2&x&&t.Y8G("ngIf",oe.tagStatus)},dependencies:[s.bT,s.ux,s.e1,m.s,e.Dn,s.PV],encapsulation:2})}return F})()},9590:(Rt,De,a)=>{a.d(De,{R:()=>M});var t=a(177),s=a(5699),m=a(5103),e=a(3953);let M=(()=>{class K{static#e=this.\u0275fac=function(A){return new(A||K)};static#t=this.\u0275mod=e.$C({type:K});static#n=this.\u0275inj=e.G2t({imports:[t.MD,s.T,m.Y3]})}return K})()},4247:(Rt,De,a)=>{a.d(De,{L:()=>m});var t=a(3953);const s=["*"];let m=(()=>{class e{constructor(){}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-group"]],ngContentSelectors:s,decls:1,vars:0,template:function(L,j){1&L&&(t.NAR(),t.SdG(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}"]})}return e})()},2502:(Rt,De,a)=>{a.d(De,{u:()=>m});var t=a(177),s=a(3953);let m=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=s.$C({type:e});static#n=this.\u0275inj=s.G2t({imports:[t.MD]})}return e})()},7855:(Rt,De,a)=>{a.d(De,{M:()=>m});var t=a(3953);const s=["*"];let m=(()=>{class e{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(L,j){2&L&&t.AVh("xs","xs"===j.size||!j.size)("sm","sm"===j.size)},inputs:{size:"size"},ngContentSelectors:s,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(L,j){1&L&&(t.NAR(),t.j41(0,"div",0),t.SdG(1),t.k0s())},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})}return e})()},2142:(Rt,De,a)=>{a.d(De,{x:()=>m});var t=a(177),s=a(3953);let m=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=s.$C({type:e});static#n=this.\u0275inj=s.G2t({imports:[t.MD]})}return e})()},5652:(Rt,De,a)=>{a.d(De,{u:()=>ve});var t=a(9199),s=a(6354),m=a(5964),e=a(3953),M=a(9145),K=a(177),L=a(5103),j=a(5703),A=a(2e3),I=a(7679),w=a(7855),F=a(6726),X=a(2143),V=a(1774);function x(fe,Y){if(1&fe&&(e.nrm(0,"i",12),e.EFF(1)),2&fe){const z=e.XpG().ngIf;e.R7$(),e.Lme(" ",z.displayType,":\xa0",z.citation," ")}}function oe(fe,Y){if(1&fe&&e.nrm(0,"cvc-retraction-status-tag",15),2&fe){const z=e.XpG(2).ngIf;e.Y8G("retractionNature",z.retractionNature)("retractionDate",z.retractionDate)("retractionReasons",z.retractionReasons)("enablePopover",!1)}}function J(fe,Y){if(1&fe&&(e.j41(0,"cvc-link-tag",13),e.EFF(1),e.k0s(),e.DNE(2,oe,1,4,"cvc-retraction-status-tag",14)),2&fe){const z=e.XpG().ngIf;e.Y8G("href",z.sourceUrl)("tooltip","View on "+z.displayType),e.R7$(),e.SpI(" ",z.displayType+":"+z.citationId," "),e.R7$(),e.Y8G("ngIf",z.retractionNature&&z.retractionDate&&z.retractionReasons)}}function Ee(fe,Y){1&fe&&e.nrm(0,"cvc-clinical-trial-tag",17),2&fe&&e.Y8G("clinicalTrial",Y.$implicit)("enablePopover",!1)}function Oe(fe,Y){if(1&fe&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Ee,1,2,"cvc-clinical-trial-tag",16),e.k0s(),e.bVm()),2&fe){const z=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",z.clinicalTrials)}}function pe(fe,Y){1&fe&&e.EFF(0," -- ")}function Ie(fe,Y){if(1&fe&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,x,2,2,"ng-template",null,0,e.C5r)(4,J,3,4,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",6)(7,"nz-descriptions-item",7),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.DNE(14,Oe,3,1,"ng-container",11)(15,pe,1,0,"ng-template",null,2,e.C5r),e.k0s()()(),e.bVm()),2&fe){const z=Y.ngIf,Z=e.sdS(3),he=e.sdS(5),E=e.sdS(16);e.R7$(),e.Y8G("nzTitle",Z)("nzExtra",he),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",z.title," "),e.R7$(2),e.SpI(" ",z.fullJournalTitle," "),e.R7$(2),e.SpI(" ",z.evidenceItemCount," "),e.R7$(2),e.Y8G("ngIf",z.clinicalTrials&&z.clinicalTrials.length>0)("ngIfElse",E)}}let ve=(()=>{class fe{constructor(z){this.gql=z}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,s.T)(({data:z})=>z?.sourcePopover),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(Z){return new(Z||fe)(e.rXU(M.jme))};static#t=this.\u0275cmp=e.VBU({type:fe,selectors:[["cvc-source-popover"]],inputs:{sourceId:"sourceId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noTrials",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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"],["nz-icon","","nzType","civic-source","nzTheme","twotone","nzTwotoneColor","#F9BA45"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover",4,"ngIf"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover"],[3,"clinicalTrial","enablePopover",4,"ngFor","ngForOf"],[3,"clinicalTrial","enablePopover"]],template:function(Z,he){1&Z&&(e.j41(0,"div",3),e.DNE(1,Ie,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&Z&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,he.source$)))},dependencies:[K.Sq,K.bT,L.Dn,j.cK,A.xA,A.gr,I.a,w.M,F.X,X.n,V.L9],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}"]})}return fe})()},7683:(Rt,De,a)=>{a.d(De,{B:()=>I});var t=a(177),s=a(5703),m=a(7054),e=a(2e3),M=a(2142),K=a(9619),L=a(5103),j=a(174),A=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(V){return new(V||w)};static#t=this.\u0275mod=A.$C({type:w});static#n=this.\u0275inj=A.G2t({imports:[t.MD,L.Y3,s.Ti,e.WF,m.L,M.x,K.u,j.u]})}return w})()},9062:(Rt,De,a)=>{a.d(De,{D:()=>z});var t=a(6514),s=a(3953),m=a(8335),e=a(177),M=a(1188),K=a(5103),L=a(1236),j=a(5699),A=a(5652),I=a(2287),w=a(3075);const F=Z=>({deprecated:Z});function X(Z,he){}function V(Z,he){if(1&Z&&(s.qex(0),s.j41(1,"a",6),s.DNE(2,X,0,0,"ng-template",7),s.k0s(),s.bVm()),2&Z){const E=s.XpG(),S=s.sdS(2);s.R7$(),s.Y8G("routerLink",E.source.link),s.R7$(),s.Y8G("ngTemplateOutlet",S)}}function x(Z,he){}function oe(Z,he){if(1&Z&&s.nrm(0,"cvc-source-popover",9),2&Z){const E=s.XpG(2);s.Y8G("sourceId",E.source.id)}}function J(Z,he){if(1&Z){const E=s.RV6();s.j41(0,"nz-tag",8),s.mxI("nzPopoverVisibleChange",function(R){s.eBV(E);const U=s.XpG();return s.DH7(U.popoverVisible,R)||(U.popoverVisible=R),s.Njj(R)}),s.bIt("nzOnClose",function(R){s.eBV(E);const U=s.XpG();return s.Njj(U.itemClosed(R))}),s.DNE(1,x,0,0,"ng-template",7),s.k0s(),s.DNE(2,oe,1,1,"ng-template",null,3,s.C5r)}if(2&Z){const E=s.sdS(3),S=s.XpG(),R=s.sdS(6);s.Y8G("ngClass",s.eq3(7,F,S.source.deprecated))("nzPopoverMouseEnterDelay",S.onCloseClicked?0:.5)("nzPopoverContent",E)("nzPopoverTrigger",S.enablePopover?"hover":null),s.R50("nzPopoverVisible",S.popoverVisible),s.Y8G("nzMode",S.onCloseClicked?"closeable":"default"),s.R7$(),s.Y8G("ngTemplateOutlet",R)}}function Ee(Z,he){}function Oe(Z,he){if(1&Z&&s.DNE(0,Ee,0,0,"ng-template",7),2&Z){s.XpG();const E=s.sdS(2);s.Y8G("ngTemplateOutlet",E)}}function pe(Z,he){if(1&Z&&(s.qex(0),s.EFF(1),s.nI1(2,"truncate"),s.bVm()),2&Z){const E=s.XpG(3);s.R7$(),s.SpI(" ",s.i5U(2,1,E.displayName,50)," ")}}function Ie(Z,he){if(1&Z&&(s.qex(0),s.EFF(1),s.bVm()),2&Z){const E=s.XpG(3);s.R7$(),s.SpI(" ",E.displayName," ")}}function ve(Z,he){if(1&Z&&(s.qex(0),s.DNE(1,pe,3,4,"ng-container",11)(2,Ie,2,1,"ng-container",11),s.bVm()),2&Z){const E=s.XpG(2);s.R7$(),s.Y8G("ngIf",E.truncateLongName),s.R7$(),s.Y8G("ngIf",!E.truncateLongName)}}function fe(Z,he){if(1&Z&&s.EFF(0),2&Z){const E=s.XpG(2);s.SpI(" SID:",E.source.id," ")}}function Y(Z,he){if(1&Z&&(s.nrm(0,"i",10),s.nI1(1,"entityColor"),s.DNE(2,ve,3,2,"ng-container",5)(3,fe,1,1,"ng-template",null,4,s.C5r)),2&Z){const E=s.sdS(4),S=s.XpG();s.Y8G("nzTwotoneColor",s.bMT(1,3,"Source")),s.R7$(2),s.Y8G("ngIf","normal"===S.mode)("ngIfElse",E)}}let z=(()=>{class Z extends t.s{set source(E){if(!E)throw new Error("source-tag source input requires SourceWithDisplayName or SourceWithCitation.");this._source=E,this.displayName="displayName"in this.source?this.source.displayName:this.sourceTypeDisplay.transform(this.source.sourceType)+": "+this.source.citation}get source(){return this._source}constructor(E){super(),this.sourceTypeDisplay=E,this.enablePopover=!0,this.linked=!0,this.mode="normal",this.truncateLongName=!1}idFunction(){return this.source.id}static#e=this.\u0275fac=function(S){return new(S||Z)(s.rXU(m.Q))};static#t=this.\u0275cmp=s.VBU({type:Z,selectors:[["cvc-source-tag"]],inputs:{source:"source",enablePopover:"enablePopover",linked:"linked",mode:"mode",truncateLongName:"truncateLongName"},features:[s.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["sourcePopover",""],["concise",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverVisibleChange","nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzPopoverVisible","nzMode"],[3,"sourceId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[4,"ngIf"]],template:function(S,R){if(1&S&&s.DNE(0,V,3,2,"ng-container",5)(1,J,4,9,"ng-template",null,0,s.C5r)(3,Oe,1,1,"ng-template",null,1,s.C5r)(5,Y,5,5,"ng-template",null,2,s.C5r),2&S){const U=s.sdS(4);s.Y8G("ngIf",R.linked)("ngIfElse",U)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,K.Dn,L.L_,j.s,A.u,I.H,w.R],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})}return Z})()},1209:(Rt,De,a)=>{a.d(De,{k:()=>A});var t=a(177),s=a(1236),m=a(1188),e=a(7683),M=a(5699),K=a(5103),L=a(4917),j=a(3953);let A=(()=>{class I{static#e=this.\u0275fac=function(X){return new(X||I)};static#t=this.\u0275mod=j.$C({type:I});static#n=this.\u0275inj=j.G2t({imports:[t.MD,m.iI,K.Y3,s.MC,M.T,e.B,L.i]})}return I})()},3287:(Rt,De,a)=>{a.d(De,{a:()=>Y});var t=a(6354),s=a(5964),m=a(9199),e=a(3953),M=a(9145),K=a(177),L=a(5703),j=a(2e3),A=a(5103),I=a(7391),w=a(5699),F=a(5154),X=a(7679),V=a(1774),x=a(2287);function oe(z,Z){if(1&z&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&z){const he=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,he.name,50)," ")}}function J(z,Z){if(1&z&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&z){const he=e.XpG(2).ngIf;e.Y8G("href",he.therapyUrl),e.R7$(),e.SpI(" ",he.ncitId," ")}}function Ee(z,Z){if(1&z&&e.DNE(0,J,2,2,"cvc-link-tag",13),2&z){const he=e.XpG().ngIf,E=e.sdS(7);e.Y8G("ngIf",he.ncitId)("ngIfElse",E)}}function Oe(z,Z){1&z&&(e.j41(0,"span",15),e.EFF(1,"No NCIt ID"),e.k0s())}function pe(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&z){const he=e.XpG().ngIf;e.R7$(),e.SpI(" ",he.name," ")}}function Ie(z,Z){if(1&z&&(e.j41(0,"nz-tag",19),e.EFF(1),e.nI1(2,"truncate"),e.k0s()),2&z){const he=Z.$implicit;e.Y8G("nzTooltipTitle",he),e.R7$(),e.JRh(e.bMT(2,2,he))}}function ve(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",17),e.DNE(1,Ie,3,4,"nz-tag",18),e.k0s()),2&z){const he=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",he.therapyAliases)}}function fe(z,Z){if(1&z&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,oe,3,4,"ng-template",null,0,e.C5r)(4,Ee,1,2,"ng-template",null,1,e.C5r)(6,Oe,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,pe,2,1,"nz-descriptions-item",7)(10,ve,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&z){const he=Z.ngIf,E=e.sdS(3),S=e.sdS(5);e.R7$(),e.Y8G("nzTitle",E)("nzExtra",S),e.R7$(7),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",he.name.length>50),e.R7$(),e.Y8G("ngIf",he.therapyAliases.length>0),e.R7$(2),e.SpI(" ",he.assertionCount," "),e.R7$(2),e.SpI(" ",he.evidenceItemCount," "),e.R7$(2),e.SpI(" ",he.molecularProfileCount," ")}}let Y=(()=>{class z{constructor(he){this.gql=he}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.T)(({data:he})=>he?.therapyPopover),(0,s.p)(m.kP))}static#e=this.\u0275fac=function(E){return new(E||z)(e.rXU(M.RQS))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["cvc-therapy-popover"]],inputs:{therapyId:"therapyId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noNcitId",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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(E,S){1&E&&(e.j41(0,"div",3),e.DNE(1,fe,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&E&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,S.therapy$)))},dependencies:[K.Sq,K.bT,L.cK,j.xA,j.gr,A.Dn,I.Di,w.s,F.LH,X.a,V.L9,x.H],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}"]})}return z})()},3126:(Rt,De,a)=>{a.d(De,{t:()=>F});var t=a(177),s=a(1188),m=a(5703),e=a(2e3),M=a(7054),K=a(5103),L=a(7391),j=a(4917),A=a(5699),I=a(5154),w=a(3953);let F=(()=>{class X{static#e=this.\u0275fac=function(oe){return new(oe||X)};static#t=this.\u0275mod=w.$C({type:X});static#n=this.\u0275inj=w.G2t({imports:[t.MD,s.iI,m.Ti,e.WF,K.Y3,L.kT,A.T,I.Qt,M.L,j.i]})}return X})()},9563:(Rt,De,a)=>{a.d(De,{R:()=>pe});var t=a(6514),s=a(3953),m=a(177),e=a(1188),M=a(5699),K=a(1236),L=a(5103),j=a(3287),A=a(2287);function I(Ie,ve){}function w(Ie,ve){if(1&Ie&&(s.qex(0),s.j41(1,"a",6),s.DNE(2,I,0,0,"ng-template",7),s.k0s(),s.bVm()),2&Ie){const fe=s.XpG(),Y=s.sdS(2);s.R7$(),s.Y8G("routerLink",fe.therapy.link),s.R7$(),s.Y8G("ngTemplateOutlet",Y)}}function F(Ie,ve){}function X(Ie,ve){if(1&Ie&&s.nrm(0,"cvc-therapy-popover",9),2&Ie){const fe=s.XpG(2);s.Y8G("therapyId",fe.therapy.id)}}function V(Ie,ve){if(1&Ie){const fe=s.RV6();s.j41(0,"nz-tag",8),s.bIt("nzOnClose",function(z){s.eBV(fe);const Z=s.XpG();return s.Njj(Z.itemClosed(z))}),s.DNE(1,F,0,0,"ng-template",7),s.k0s(),s.DNE(2,X,1,1,"ng-template",null,3,s.C5r)}if(2&Ie){const fe=s.sdS(3),Y=s.XpG(),z=s.sdS(6);s.Y8G("nzPopoverMouseEnterDelay",Y.onCloseClicked?0:.5)("nzPopoverContent",fe)("nzPopoverTrigger",Y.enablePopover?"hover":null)("nzMode",Y.onCloseClicked?"closeable":"default"),s.R7$(),s.Y8G("ngTemplateOutlet",z)}}function x(Ie,ve){}function oe(Ie,ve){if(1&Ie&&s.DNE(0,x,0,0,"ng-template",7),2&Ie){s.XpG();const fe=s.sdS(2);s.Y8G("ngTemplateOutlet",fe)}}function J(Ie,ve){if(1&Ie&&(s.qex(0),s.EFF(1),s.nI1(2,"truncate"),s.bVm()),2&Ie){const fe=s.XpG(2);s.R7$(),s.SpI(" ",s.i5U(2,1,fe.therapy.name,21)," ")}}function Ee(Ie,ve){if(1&Ie&&s.EFF(0),2&Ie){const fe=s.XpG(2);s.SpI(" ",fe.therapy.name," ")}}function Oe(Ie,ve){if(1&Ie&&(s.nrm(0,"i",10),s.DNE(1,J,3,4,"ng-container",5)(2,Ee,1,1,"ng-template",null,4,s.C5r)),2&Ie){const fe=s.sdS(3),Y=s.XpG();s.R7$(),s.Y8G("ngIf",Y.truncateLongName)("ngIfElse",fe)}}let pe=(()=>{class Ie extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set therapy(fe){if(!fe)throw new Error("therapy-tag Input requires LinkableTherapy.");this._therapy=fe}get therapy(){return this._therapy}idFunction(){return this.therapy.id}static#e=this.\u0275fac=(()=>{let fe;return function(z){return(fe||(fe=s.xGo(Ie)))(z||Ie)}})();static#t=this.\u0275cmp=s.VBU({type:Ie,selectors:[["cvc-therapy-tag"]],inputs:{therapy:"therapy",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[s.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["therapyPopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"therapyId"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"]],template:function(Y,z){if(1&Y&&s.DNE(0,w,3,2,"ng-container",5)(1,V,4,5,"ng-template",null,0,s.C5r)(3,oe,1,1,"ng-template",null,1,s.C5r)(5,Oe,4,2,"ng-template",null,2,s.C5r),2&Y){const Z=s.sdS(4);s.Y8G("ngIf",z.linked)("ngIfElse",Z)}},dependencies:[m.bT,m.T3,e.Wk,M.s,K.L_,L.Dn,j.a,A.H],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}"],changeDetection:0})}return Ie})()},9802:(Rt,De,a)=>{a.d(De,{_:()=>A});var t=a(177),s=a(1188),m=a(5699),e=a(1236),M=a(5103),K=a(4917),L=a(3126),j=a(3953);let A=(()=>{class I{static#e=this.\u0275fac=function(X){return new(X||I)};static#t=this.\u0275mod=j.$C({type:I});static#n=this.\u0275inj=j.G2t({imports:[t.MD,s.iI,m.T,e.MC,M.Y3,K.i,L.t]})}return I})()},3548:(Rt,De,a)=>{a.d(De,{A:()=>he});var t=a(9199),s=a(6354),m=a(5964),e=a(3953),M=a(9145),K=a(177),L=a(1188),j=a(5703),A=a(7529),I=a(2e3),w=a(5699),F=a(5103),X=a(7685),V=a(3245),x=a(7679),oe=a(1774),J=a(3075);function Ee(E,S){if(1&E&&(e.nrm(0,"i",13),e.nI1(1,"entityColor"),e.EFF(2)),2&E){const R=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",R.name," ")}}function Oe(E,S){if(1&E&&e.nrm(0,"cvc-feature-tag",14),2&E){const R=e.XpG().ngIf;e.Y8G("enablePopover",!1)("feature",R.feature)}}function pe(E,S){if(1&E&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&E){const R=S.$implicit;e.R7$(),e.JRh(R)}}function Ie(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",15),e.DNE(1,pe,2,1,"nz-tag",16),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",R.variantAliases)}}function ve(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",17)(1,"cvc-link-tag",18),e.EFF(2),e.k0s()()),2&E){const R=e.XpG().ngIf;e.R7$(),e.Mz_("href","https://reg.genome.network/allele/",R.alleleRegistryId,".html"),e.R7$(),e.SpI(" ",R.alleleRegistryId," ")}}function fe(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",20),e.nrm(2,"i",21),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/flags"),e.R7$(3),e.SpI(" Flags (",R.flags.totalCount,") ")}}function Y(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",R.revisions.totalCount,") ")}}function z(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/comments"),e.R7$(3),e.SpI(" Comments (",R.comments.totalCount,") ")}}function Z(E,S){if(1&E&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,Ee,3,4,"ng-template",null,0,e.C5r)(4,Oe,1,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5),e.DNE(7,Ie,2,1,"nz-descriptions-item",6)(8,ve,3,3,"nz-descriptions-item",7),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s()(),e.j41(11,"nz-row",9)(12,"nz-col",10)(13,"nz-space",11),e.DNE(14,fe,4,3,"a",12)(15,Y,4,3,"a",12)(16,z,4,3,"a",12),e.k0s()()()(),e.bVm()),2&E){const R=S.ngIf,U=e.sdS(3),se=e.sdS(5);e.R7$(),e.Y8G("nzTitle",U)("nzExtra",se),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",R.variantAliases.length>0),e.R7$(),e.Y8G("ngIf","GeneVariant"==R.__typename&&R.alleleRegistryId&&"unregistered"!=R.alleleRegistryId),e.R7$(2),e.SpI(" ",R.molecularProfiles.totalCount," ")}}let he=(()=>{class E{constructor(R){this.gql=R}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,s.T)(({data:R})=>R?.variant),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(U){return new(U||E)(e.rXU(M.l20))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["cardTitle",""],["feature",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["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","feature"],["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(U,se){1&U&&(e.j41(0,"div",2),e.DNE(1,Z,17,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&U&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.variant$)))},dependencies:[K.Sq,K.bT,L.Wk,j.cK,A.Uq,A.e,I.xA,I.gr,w.s,F.Dn,X.U5,X.Dq,V._,x.a,oe.L9,J.R],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}"]})}return E})()},6075:(Rt,De,a)=>{a.d(De,{$:()=>X});var t=a(177),s=a(1188),m=a(5703),e=a(7529),M=a(2e3),K=a(5699),L=a(5103),j=a(7685),A=a(7054),I=a(4917),w=a(6912),F=a(3953);let X=(()=>{class V{static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275mod=F.$C({type:V});static#n=this.\u0275inj=F.G2t({imports:[t.MD,s.iI,m.Ti,e.f3,M.WF,K.T,L.Y3,j.pc,I.i,w.l,A.L]})}return V})()},3100:(Rt,De,a)=>{a.d(De,{V:()=>Y});var t=a(6514),s=a(505),m=a(3953),e=a(177),M=a(1188),K=a(5699),L=a(1236),j=a(5103),A=a(3548),I=a(2387),w=a(2287);const F=z=>({deprecated:z});function X(z,Z){}function V(z,Z){if(1&z&&(m.qex(0),m.j41(1,"a",6),m.DNE(2,X,0,0,"ng-template",7),m.k0s(),m.bVm()),2&z){const he=m.XpG(),E=m.sdS(2);m.R7$(),m.Y8G("routerLink",he.variant.link),m.R7$(),m.Y8G("ngTemplateOutlet",E)}}function x(z,Z){}function oe(z,Z){if(1&z&&m.nrm(0,"cvc-variant-popover",10),2&z){const he=m.XpG(3);m.Y8G("variantId",he.variant.id)}}function J(z,Z){if(1&z&&m.DNE(0,oe,1,1,"cvc-variant-popover",9),2&z){const he=m.XpG(2);m.Y8G("ngIf",he.enablePopover)}}function Ee(z,Z){if(1&z){const he=m.RV6();m.j41(0,"nz-tag",8),m.bIt("nzOnClose",function(S){m.eBV(he);const R=m.XpG();return m.Njj(R.itemClosed(S))}),m.DNE(1,x,0,0,"ng-template",7),m.k0s(),m.DNE(2,J,1,1,"ng-template",null,3,m.C5r)}if(2&z){const he=m.sdS(3),E=m.XpG(),S=m.sdS(6);m.Y8G("ngClass",m.eq3(6,F,E.variant.deprecated))("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",he)("nzPopoverTrigger",E.enablePopover?"hover":null)("nzMode",E.onCloseClicked?"closeable":"default"),m.R7$(),m.Y8G("ngTemplateOutlet",S)}}function Oe(z,Z){}function pe(z,Z){if(1&z&&m.DNE(0,Oe,0,0,"ng-template",7),2&z){m.XpG();const he=m.sdS(2);m.Y8G("ngTemplateOutlet",he)}}function Ie(z,Z){if(1&z&&(m.qex(0),m.EFF(1),m.nI1(2,"truncate"),m.bVm()),2&z){const he=m.XpG(2);m.R7$(),m.SpI(" ",m.i5U(2,1,he.variant.name,20)," ")}}function ve(z,Z){if(1&z&&m.EFF(0),2&z){const he=m.XpG(2);m.SpI(" ",he.variant.name," ")}}function fe(z,Z){if(1&z&&(m.j41(0,"cvc-icon-badges",11),m.nrm(1,"i",12),m.k0s(),m.DNE(2,Ie,3,4,"ng-container",5)(3,ve,1,1,"ng-template",null,4,m.C5r)),2&z){const he=m.sdS(4),E=m.XpG();m.Y8G("flagged",E.variant.flagged)("entityColor",E.iconColor),m.R7$(),m.Y8G("nzTwotoneColor",E.iconColor),m.R7$(),m.Y8G("ngIf",E.truncateLongName)("ngIfElse",he)}}let Y=(()=>{class z extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,s.P)("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.")}static#e=this.\u0275fac=function(E){return new(E||z)};static#t=this.\u0275cmp=m.VBU({type:z,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[m.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,S){if(1&E&&m.DNE(0,V,3,2,"ng-container",5)(1,Ee,4,8,"ng-template",null,0,m.C5r)(3,pe,1,1,"ng-template",null,1,m.C5r)(5,fe,5,5,"ng-template",null,2,m.C5r),2&E){const R=m.sdS(4);m.Y8G("ngIf",S.linked)("ngIfElse",R)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,K.s,L.L_,j.Dn,A.A,I.N,w.H],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})}return z})()},7051:(Rt,De,a)=>{a.d(De,{U:()=>I});var t=a(177),s=a(1188),m=a(5699),e=a(5103),M=a(1236),K=a(6075),L=a(4917),j=a(4994),A=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(V){return new(V||w)};static#t=this.\u0275mod=A.$C({type:w});static#n=this.\u0275inj=A.G2t({imports:[t.MD,s.iI,m.T,M.MC,e.Y3,L.i,K.$,j.a]})}return w})()},463:(Rt,De,a)=>{a.d(De,{E:()=>s});var t=a(3953);let s=(()=>{class m{transform(M,K){return M?"verbose"==K?"TIER_I_LEVEL_A"===M?"Tier I - Level A":"TIER_I_LEVEL_B"===M?"Tier I - Level B":"TIER_II_LEVEL_C"===M?"Tier II - Level C":"TIER_II_LEVEL_D"===M?"Tier II - Level D":"TIER_III"===M?"Tier III":"TIER_IV"===M?"Tier IV":"Not Applicable":M.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}static#e=this.\u0275fac=function(K){return new(K||m)};static#t=this.\u0275pipe=t.EJ8({name:"formatAmp",type:m,pure:!0})}return m})()},3075:(Rt,De,a)=>{a.d(De,{R:()=>m});var t=a(505),s=a(3953);let m=(()=>{class e{transform(K){return(0,t.P)(K)}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275pipe=s.EJ8({name:"entityColor",type:e,pure:!0})}return e})()},1677:(Rt,De,a)=>{a.d(De,{pW:()=>K});var t=a(9145),s=a(896),m=a(3953);const e=new Map([[t.iHU.A,"Validated association"],[t.iHU.B,"Clinical evidence"],[t.iHU.C,"Case study"],[t.iHU.D,"Preclinical evidence"],[t.iHU.E,"Inferential association"]]),M=new Map([[1,"One Star"],[2,"Two Stars"],[3,"Three Stars"],[4,"Four Stars"],[5,"Five Stars"]]);let K=(()=>{class L{transform(A,I="display-string"){return null==A?"":"short-string"===I&&1===A.toString().length?"string"==typeof A?A:A.toString():"icon-name"===I?"number"==typeof A?`civic-rating${A}`:1===A.length?`civic-level${A.toLowerCase()}`:`civic-${A.replace(/_/g,"").toLowerCase()}`:"number"==typeof A?M.get(A)||A.toString():1===A.length?e.get(A)||A:(0,s.u)(A)}static#e=this.\u0275fac=function(I){return new(I||L)};static#t=this.\u0275pipe=m.EJ8({name:"evidenceEnumDisplay",type:L,pure:!0})}return L})()},8763:(Rt,De,a)=>{a.d(De,{k:()=>K});var t=a(9145);const s={evidenceType:{[t.M1P.Diagnostic]:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.M1P.Functional]:"Evidence pertains to a variant that alters biological function from the reference state",[t.M1P.Oncogenic]:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",[t.M1P.Predictive]:"Evidence pertains to a variant's effect on therapeutic response",[t.M1P.Predisposing]:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.M1P.Prognostic]:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival"},assertionType:{[t.XEW.Diagnostic]:"Assertion pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.XEW.Predictive]:"Assertion pertains to a variant's effect on therapeutic response",[t.XEW.Predisposing]:"Assertion pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.XEW.Prognostic]:"Assertion pertains to a variant's impact on disease progression, severity, or patient survival",[t.XEW.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.Kkj.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.Kkj.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.Kkj.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.Kkj.Unknown]:"The variant origin is uncertain based on the available evidence",[t.Kkj.Na]:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin",[t.Kkj.Combined]:"Variants in the Molecular Profile span multiple Origin types."},evidenceLevel:{[t.iHU.A]:"Proven/consensus association in human medicine",[t.iHU.B]:"Clinical trial or other primary patient data supports association",[t.iHU.C]:"Individual case reports from clinical journals",[t.iHU.D]:"In vivo or in vitro models support association",[t.iHU.E]:"Indirect evidence"},evidenceLevelBrief:{[t.iHU.A]:"Validated association",[t.iHU.B]:"Clinical evidence",[t.iHU.C]:"Case Study",[t.iHU.D]:"Preclinical evidence",[t.iHU.E]:"Inferential association"},therapyInteractionType:{[t.qld.Combination]:"The therapies listed were used as part of a combination therapy approach",[t.qld.Sequential]:"The therapies listed were used at separate timepoints in the same treatment plan",[t.qld.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"}},m={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 M=a(3953);let K=(()=>{class L{transform(A,I,w=void 0,F=void 0){return I&&A?function e(L,j,A,I){let w;return w=A&&I?m[L][A][j][I]:s[L][j],w||""}(I,A,w,F):""}static#e=this.\u0275fac=function(I){return new(I||L)};static#t=this.\u0275pipe=M.EJ8({name:"enumTooltip",type:L,pure:!0})}return L})()},1555:(Rt,De,a)=>{a.d(De,{M:()=>m});var t=a(3953),s=a(345);let m=(()=>{class e{constructor(K){this.sanitizer=K}transform(K,L){if(!L||""==L)return K;const j=new RegExp(L,"gi"),A=K.match(j);if(!A)return K;let I=K.replace(j,`${A[0]}`);return this.sanitizer.bypassSecurityTrustHtml(I)}static#e=this.\u0275fac=function(L){return new(L||e)(t.rXU(s.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"highlightTypeahead",type:e,pure:!0})}return e})()},4917:(Rt,De,a)=>{a.d(De,{i:()=>e});var t=a(177),s=a(8335),m=a(3953);let e=(()=>{class M{static#e=this.\u0275fac=function(j){return new(j||M)};static#t=this.\u0275mod=m.$C({type:M});static#n=this.\u0275inj=m.G2t({providers:[s.Q],imports:[t.MD]})}return M})()},8335:(Rt,De,a)=>{a.d(De,{Q:()=>m});var t=a(1427),s=a(3953);let m=(()=>{class e{transform(K){return K?(0,t.A)(K):""}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275pipe=s.EJ8({name:"sourceTypeDisplay",type:e,pure:!0})}return e})()},8139:(Rt,De,a)=>{a.d(De,{N:()=>w});var t=a(3953);const m=3600,e=24*m,K=365*e,j=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),I=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let w=(()=>{class F{transform(V){if(!V)return"--";let x;x="number"==typeof V?V:Date.parse(V);const oe=Date.now(),J=Math.round(Math.abs(oe-x)/1e3);if(J>=2592e3&&J=K){let Ie=new Date(x);return I.format(Ie)}let Ee,Oe;return J<60?(Ee=Math.round(J),Oe="second"):J1?"s":""} ago`}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275pipe=t.EJ8({name:"timeAgo",type:F,pure:!0})}return F})()},2287:(Rt,De,a)=>{a.d(De,{H:()=>s});var t=a(3953);let s=(()=>{class m{constructor(){}transform(M,K=25){if(M.length>K){let j=M.slice(0,K);var L=j.lastIndexOf(" ");return j.slice(0,L)+"\u2026"}return M}static#e=this.\u0275fac=function(K){return new(K||m)};static#t=this.\u0275pipe=t.EJ8({name:"truncate",type:m,pure:!0})}return m})()},4137:(Rt,De,a)=>{a.d(De,{o:()=>s});var t=a(3953);let s=(()=>{class m{transform(M){return M?M.endsWith("Variant")?"civic-variant":`civic-${M.replace(/_/g,"").toLowerCase()}`:""}static#e=this.\u0275fac=function(K){return new(K||m)};static#t=this.\u0275pipe=t.EJ8({name:"typenameToIcon",type:m,pure:!0})}return m})()},4222:(Rt,De,a)=>{a.d(De,{N:()=>m});var t=a(4412),s=a(3953);let m=(()=>{class e{constructor(){this.networkError$=new t.t(void 0)}clearErrors(){this.networkError$.next(void 0)}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275prov=s.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},1305:(Rt,De,a)=>{a.d(De,{q:()=>I});var t=a(1635),s=a(9145),m=a(9894),e=a(6354),M=a(9172),K=a(4668),L=a(4608),j=a(3953),A=a(1626);let I=class Af{constructor(F,X){function V(pe){return!(!pe||pe.role!==s.gG1.Admin)}function x(pe){return!(!pe||pe.role!==s.gG1.Editor&&pe.role!==s.gG1.Admin)}function oe(pe){return!(!pe||pe.role!==s.gG1.Curator)}function J(pe){return!(!pe||pe.role!==s.gG1.Curator&&pe.role!==s.gG1.Editor&&pe.role!==s.gG1.Admin)}function Ee(pe){return!(!pe||pe.role!==s.gG1.Editor&&pe.role!==s.gG1.Admin||!pe.mostRecentConflictOfInterestStatement||pe.mostRecentConflictOfInterestStatement?.coiStatus!=s.shk.Conflict&&pe.mostRecentConflictOfInterestStatement?.coiStatus!=s.shk.Valid)}function Oe(pe){if(pe.mostRecentOrganizationId)return pe.organizations.find(Ie=>Ie.id===pe.mostRecentOrganizationId)}this.viewerBaseGQL=F,this.http=X,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,L.E)("data","viewer"),(0,e.T)(pe=>({...pe,signedIn:null!=pe,signedOut:null==pe,canCurate:J(pe),canModerate:Ee(pe),isAdmin:V(pe),isEditor:x(pe),isCurator:oe(pe),organizations:null==pe?[]:pe.organizations,mostRecentOrg:null==pe?void 0:Oe(pe),invalidCoi:x(pe)&&(!pe.mostRecentConflictOfInterestStatement||pe.mostRecentConflictOfInterestStatement.coiStatus===s.shk.Expired||pe.mostRecentConflictOfInterestStatement.coiStatus===s.shk.Missing)})),(0,M.Z)(this.initialViewer),(0,K.t)(1)),this.signedIn$=this.viewer$.pipe((0,e.T)(pe=>pe.signedIn)),this.signedOut$=this.viewer$.pipe((0,e.T)(pe=>pe.signedOut)),this.isAdmin$=this.viewer$.pipe((0,e.T)(pe=>V(pe))),this.isEditor$=this.viewer$.pipe((0,e.T)(pe=>x(pe))),this.isCurator$=this.viewer$.pipe((0,e.T)(pe=>oe(pe))),this.canCurate$=this.viewer$.pipe((0,e.T)(pe=>J(pe))),this.canModerate$=this.viewer$.pipe((0,e.T)(pe=>Ee(pe)))}signOut(){this.http.get("/api/sign_out").pipe((0,m.s)(this)).subscribe(()=>this.queryRef.refetch())}refetch(){this.queryRef.refetch()}static#e=this.\u0275fac=function(X){return new(X||Af)(j.KVO(s.arH),j.KVO(A.Qq))};static#t=this.\u0275prov=j.jDH({token:Af,factory:Af.\u0275fac,providedIn:"root"})};I=(0,t.Cg)([(0,m.d)()],I)},6514:(Rt,De,a)=>{a.d(De,{s:()=>s});var t=a(3953);let s=(()=>{class m{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(M){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}static#e=this.\u0275fac=function(K){return new(K||m)};static#t=this.\u0275cmp=t.VBU({type:m,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(K,L){},encapsulation:2})}return m})()},896:(Rt,De,a)=>{function t(s){if("number"==typeof s||"boolean"==typeof s)return s;let m;if("NA"===s)m=["Not Applicable"];else if("SENSITIVITYRESPONSE"===s)m=["Sensitivity","/","Response"];else{m=s.toLowerCase().replace(/_/g," ").split(" ");for(var e=0;et})},1427:(Rt,De,a)=>{function t(s){switch(s){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";case"ASH":return"ASH";default:return s}}a.d(De,{A:()=>t})},505:(Rt,De,a)=>{a.d(De,{P:()=>s});const t=new Map([["Assertion","#7243b5"],["ClinicalTrial","#ac3996"],["CoordinateSystem","#f68f37"],["Disease","#e62f76"],["Event","#1db8a9"],["EvidenceItem","#2a63b6"],["Feature","#07aff0"],["MolecularProfile","#33b358"],["NccnGuideline","#49566D"],["Phenotype","#1db8a9"],["Source","#f9ba45"],["Therapy","#ac3996"],["Variant","#74d34c"],["GeneVariant","#74d34c"],["FactorVariant","#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 s(m){let e="#AAAAAA";if(m){const M=t.get(m);M&&(e=M)}return e}},1226:(Rt,De,a)=>{a.d(De,{E:()=>M});var t=a(1413),s=a(4412),m=a(6977),e=a(980);class M{constructor(L){this.networkErrorService=L}mutate(L,j,A,I){let w=new t.B,F={isSubmitting$:new s.t(!1),submitSuccess$:new s.t(!1),submitError$:new s.t([]),cleanup:()=>{w.next(),w.complete()}};return F.isSubmitting$.next(!0),L.mutate(j,A).pipe((0,m.Q)(w),(0,e.j)(()=>{F.isSubmitting$.next(!1)})).subscribe({next:X=>{X.data&&I&&I(X.data)},error:X=>{X.graphQLErrors.length>0?F.submitError$.next(X.graphQLErrors.map(V=>V.message)):X.networkError&&this.networkErrorService.networkError$.next(X.networkError),F.cleanup()},complete:()=>{F.submitError$.next([]),F.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),F.cleanup()}}),F}}},2242:(Rt,De,a)=>{a.d(De,{i:()=>m});var t=a(177),s=a(3953);let m=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=s.$C({type:e});static#n=this.\u0275inj=s.G2t({imports:[t.MD]})}return e})()},2033:(Rt,De,a)=>{a.d(De,{o:()=>X});var t=a(3953),s=a(177),m=a(5154);function e(V,x){1&V&&(t.qex(0),t.EFF(1," N/A "),t.bVm())}function M(V,x){1&V&&(t.qex(0),t.EFF(1," Not applicable "),t.bVm())}function K(V,x){if(1&V&&(t.j41(0,"span",4),t.qex(1,0),t.DNE(2,e,2,0,"ng-container",5)(3,M,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const oe=t.XpG();t.R7$(),t.Y8G("ngSwitch",oe.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function L(V,x){1&V&&(t.qex(0),t.EFF(1," \u2013\xa0\u2013 "),t.bVm())}function j(V,x){1&V&&(t.qex(0),t.EFF(1,"Not specified"),t.bVm())}function A(V,x){if(1&V&&(t.j41(0,"span",7),t.qex(1,0),t.DNE(2,L,2,0,"ng-container",5)(3,j,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const oe=t.XpG();t.R7$(),t.Y8G("ngSwitch",oe.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function I(V,x){1&V&&(t.qex(0),t.EFF(1,"!?"),t.bVm())}function w(V,x){1&V&&(t.qex(0),t.EFF(1,"Unspecified"),t.bVm())}function F(V,x){if(1&V&&(t.j41(0,"span",8),t.qex(1,0),t.DNE(2,I,2,0,"ng-container",5)(3,w,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const oe=t.XpG();t.R7$(),t.Y8G("ngSwitch",oe.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}let X=(()=>{class V{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,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(J,Ee){1&J&&(t.qex(0,0),t.DNE(1,K,4,2,"span",1)(2,A,4,2,"span",2)(3,F,4,2,"span",3),t.bVm()),2&J&&(t.Y8G("ngSwitch",Ee.cvcEmptyCategory),t.R7$(),t.Y8G("ngSwitchCase","not-applicable"),t.R7$(),t.Y8G("ngSwitchCase","unspecified"),t.R7$(),t.Y8G("ngSwitchCase","invalid"))},dependencies:[s.ux,s.e1,s.fG,m.LH],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}"]})}return V})()},7556:(Rt,De,a)=>{a.d(De,{F:()=>M});var t=a(177),s=a(5103),m=a(5154),e=a(3953);let M=(()=>{class K{static#e=this.\u0275fac=function(A){return new(A||K)};static#t=this.\u0275mod=e.$C({type:K});static#n=this.\u0275inj=e.G2t({imports:[t.MD,m.Qt,s.Y3]})}return K})()},2688:(Rt,De,a)=>{a.d(De,{b:()=>Wt});var t=a(3953),s=a(1661),m=a(177),e=a(5761),M=a(1289),K=a(5652),L=a(3287),j=a(6564),A=a(8011),I=a(1429),w=a(3548);function F(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-molecular-profile-popover",9),2&Ue){const te=t.XpG();t.Y8G("molecularProfileId",te.entity.entityId)}}function X(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-disease-popover",10),2&Ue){const te=t.XpG();t.Y8G("diseaseId",te.entity.entityId)}}function V(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-therapy-popover",11),2&Ue){const te=t.XpG();t.Y8G("therapyId",te.entity.entityId)}}function x(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-source-popover",12),2&Ue){const te=t.XpG();t.Y8G("sourceId",te.entity.entityId)}}function oe(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-phenotype-popover",13),2&Ue){const te=t.XpG();t.Y8G("phenotypeId",te.entity.entityId)}}function J(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-evidence-popover",14),2&Ue){const te=t.XpG();t.Y8G("evidenceId",te.entity.entityId)}}function Ee(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-feature-popover",15),2&Ue){const te=t.XpG();t.Y8G("featureId",te.entity.entityId)}}function Oe(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-variant-popover",16),2&Ue){const te=t.XpG();t.Y8G("variantId",te.entity.entityId)}}const pe=["MolecularProfile","Disease","Therapy","Phenotype","Source","Gene","Variant","EvidenceItem"];let Ie=(()=>{class Ue{ngOnInit(){if(null==this.entity)throw new Error("entity input is required for CvcEntityTagPopoverComponent")}static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275cmp=t.VBU({type:Ue,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,"featureId",4,"ngSwitchCase"],[3,"variantId",4,"ngSwitchCase"],[3,"molecularProfileId"],[3,"diseaseId"],[3,"therapyId"],[3,"sourceId"],[3,"phenotypeId"],[3,"evidenceId"],[3,"featureId"],[3,"variantId"]],template:function(_e,ie){1&_e&&(t.qex(0,0),t.DNE(1,F,1,1,"cvc-molecular-profile-popover",1)(2,X,1,1,"cvc-disease-popover",2)(3,V,1,1,"cvc-therapy-popover",3)(4,x,1,1,"cvc-source-popover",4)(5,oe,1,1,"cvc-phenotype-popover",5)(6,J,1,1,"cvc-evidence-popover",6)(7,Ee,1,1,"cvc-feature-popover",7)(8,Oe,1,1,"cvc-variant-popover",8),t.bVm()),2&_e&&(t.Y8G("ngSwitch",ie.entity.entityType),t.R7$(),t.Y8G("ngSwitchCase","MolecularProfile"),t.R7$(),t.Y8G("ngSwitchCase","Disease"),t.R7$(),t.Y8G("ngSwitchCase","Therapy"),t.R7$(),t.Y8G("ngSwitchCase","Source"),t.R7$(),t.Y8G("ngSwitchCase","Phenotype"),t.R7$(),t.Y8G("ngSwitchCase","EvidenceItem"),t.R7$(),t.Y8G("ngSwitchCase","Feature"),t.R7$(),t.Y8G("ngSwitchCase","Variant"))},dependencies:[m.ux,m.e1,e.q,M.R,K.u,L.a,j.F,A.S,I.X,w.A],encapsulation:2,changeDetection:0})}return Ue})();var ve=a(1188),fe=a(5103),Y=a(5699),z=a(5154),Z=a(1236),he=a(1555),E=a(3075),S=a(4137);function R(Ue,Fe){}function U(Ue,Fe){if(1&Ue){const te=t.RV6();t.j41(0,"span",9)(1,"nz-tag",10),t.bIt("nzCheckedChange",function(){t.eBV(te);const ie=t.XpG();return t.Njj(ie.cvcTagCheckedChange)})("nzOnClose",function(ie){t.eBV(te);const Pe=t.XpG();return t.Njj(Pe.cvcOnClose.next(ie))}),t.j41(2,"span",11),t.DNE(3,R,0,0,"ng-template",12),t.k0s()()()}if(2&Ue){const te=t.XpG(),_e=t.sdS(6),ie=t.sdS(8);t.R7$(),t.Y8G("nzMode",te.cvcMode)("nzChecked",te.cvcTagChecked),t.R7$(),t.Y8G("nzPopoverContent",te.cvcShowPopover&&te.popoverInput?_e:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",ie)}}function se(Ue,Fe){}function Be(Ue,Fe){if(1&Ue&&(t.j41(0,"span",16),t.DNE(1,se,0,0,"ng-template",12),t.k0s()),2&Ue){const te=t.XpG(2),_e=t.sdS(8);t.Y8G("nzTooltipTitle",te.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",_e)}}function Pt(Ue,Fe){if(1&Ue){const te=t.RV6();t.j41(0,"span",13)(1,"nz-tag",14),t.bIt("nzOnClose",function(ie){t.eBV(te);const Pe=t.XpG();return t.Njj(Pe.cvcOnClose.next(ie))}),t.DNE(2,Be,2,2,"span",15),t.k0s()()}if(2&Ue){const te=t.XpG(),_e=t.sdS(4);t.R7$(),t.Y8G("nzMode","closeable"),t.R7$(),t.Y8G("ngIf",te.entity&&te.entity.tooltip)("ngIfElse",_e)}}function gt(Ue,Fe){}function wt(Ue,Fe){if(1&Ue&&(t.j41(0,"span",16),t.DNE(1,gt,0,0,"ng-template",12),t.k0s()),2&Ue){const te=t.XpG(2),_e=t.sdS(8);t.Y8G("nzTooltipTitle",te.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",_e)}}function Le(Ue,Fe){if(1&Ue&&(t.j41(0,"span",17),t.DNE(1,wt,2,2,"span",15),t.k0s()),2&Ue){const te=t.XpG(),_e=t.sdS(4);t.R7$(),t.Y8G("ngIf",te.entity&&te.entity.tooltip)("ngIfElse",_e)}}function zt(Ue,Fe){}function xt(Ue,Fe){if(1&Ue&&(t.j41(0,"span",11),t.DNE(1,zt,0,0,"ng-template",12),t.k0s()),2&Ue){const te=t.XpG(),_e=t.sdS(6),ie=t.sdS(8);t.Y8G("nzPopoverContent",te.popoverInput?_e:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",ie)}}function st(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-entity-tag-popover",19),2&Ue){const te=t.XpG(2);t.Y8G("entity",te.popoverInput)}}function Ct(Ue,Fe){if(1&Ue&&t.DNE(0,st,1,1,"cvc-entity-tag-popover",18),2&Ue){const te=t.XpG();t.Y8G("ngIf",te.popoverInput)}}function It(Ue,Fe){if(1&Ue&&(t.j41(0,"span"),t.eu8(1,12),t.k0s()),2&Ue){t.XpG();const te=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",te)}}function Tt(Ue,Fe){if(1&Ue&&(t.j41(0,"a",23),t.eu8(1,12),t.k0s()),2&Ue){t.XpG();const te=t.sdS(4),_e=t.XpG(2);t.Y8G("routerLink",_e.entity.link),t.R7$(),t.Y8G("ngTemplateOutlet",te)}}function en(Ue,Fe){if(1&Ue&&(t.nrm(0,"span",26),t.nI1(1,"typenameToIcon"),t.nI1(2,"entityColor")),2&Ue){const te=t.XpG(4);t.Y8G("nzType",t.bMT(1,2,te.typename))("nzTwotoneColor",t.bMT(2,4,te.typename))}}function Ut(Ue,Fe){if(1&Ue&&(t.DNE(0,en,3,6,"span",24),t.nrm(1,"span",25),t.nI1(2,"highlightTypeahead")),2&Ue){t.XpG(2);const te=t.sdS(4),_e=t.XpG();t.Y8G("ngIf",_e.typename&&_e.cvcShowIcon)("ngIfElse",te),t.R7$(),t.Y8G("innerHtml",t.i5U(2,3,_e.entity.name,_e.cvcEmphasize),t.npT)}}function Lt(Ue,Fe){if(1&Ue&&(t.qex(0),t.DNE(1,It,2,1,"span",21)(2,Tt,2,2,"a",22)(3,Ut,3,6,"ng-template",null,5,t.C5r),t.bVm()),2&Ue){const te=t.XpG(2);t.R7$(),t.Y8G("ngIf",te.cvcDisableLink),t.R7$(),t.Y8G("ngIf",!te.cvcDisableLink)}}function fn(Ue,Fe){}function $n(Ue,Fe){if(1&Ue&&(t.DNE(0,fn,0,0,"ng-template",12),t.EFF(1)),2&Ue){t.XpG();const te=t.sdS(4),_e=t.XpG();t.Y8G("ngTemplateOutlet",te),t.R7$(),t.SpI(" CACHE-MISS (",_e.cvcCacheId,") ")}}function zn(Ue,Fe){1&Ue&&t.nrm(0,"span",27)}function bt(Ue,Fe){if(1&Ue&&t.DNE(0,Lt,5,2,"ng-container",20)(1,$n,2,2,"ng-template",null,3,t.C5r)(3,zn,1,0,"ng-template",null,4,t.C5r),2&Ue){const te=t.sdS(2),_e=t.XpG();t.Y8G("ngIf",_e.entity)("ngIfElse",te)}}function At(Ue,Fe){if(1&Ue&&t.nrm(0,"cvc-entity-tag-popover",19),2&Ue){const te=t.XpG(2);t.Y8G("entity",te.popoverInput)}}function Et(Ue,Fe){if(1&Ue&&t.DNE(0,At,1,1,"cvc-entity-tag-popover",18),2&Ue){const te=t.XpG();t.Y8G("ngIf",te.popoverInput)}}const St=Ue=>void 0!==Ue&&Ue.__typename&&Ue.id&&void 0!==Ue.name;let Wt=(()=>{class Ue{set cvcLinkableEntity(te){te&&this.setLinkableEntity(te)}set cvcCacheId(te){te&&this.setCachedLinkableEntity(te)}constructor(te){this.apollo=te,this.cvcContext="default",this.cvcMode="default",this.cvcDisableLink=!0,this.cvcTagChecked=!1,this.cvcHasTooltip=!1,this.cvcFullWidth=!1,this.cvcShowPopover=!1,this.cvcShowIcon=!0,this.cvcTagCheckedChange=new t.bkB,this.cvcOnClose=new t.bkB}hasPopover(te){return pe.includes(te)}setLinkableEntity(te){St(te)&&(this.typename=te.__typename,this.id=te.id,this.entity=te,this.setPopoverInput(te))}setCachedLinkableEntity(te){const[_e,ie]=te.split(":");if(this.typename=_e,this.id=+ie,!this.typename||!this.id)return void console.error(`entity-tag received an invalid cacheId: ${te}. Cache IDs must be in the format 'TYPENAME:ID'.`);let Pe;Pe=this.cvcDisableLink?this.cvcHasTooltip?{id:`${_e}:${ie}`,fragment:s.J1` - fragment Linkable${_e}Entity on ${_e} { - id - name - tooltip - } - `}:{id:`${_e}:${ie}`,fragment:s.J1` - fragment Linkable${_e}Entity on ${_e} { - id - name - } - `}:{id:`${_e}:${ie}`,fragment:s.J1` - fragment Linkable${_e}Entity on ${_e} { - id - name - link - } - `};const et=this.apollo.client.readFragment(Pe);St(et)?(this.setPopoverInput(et),this.entity=et):console.error(`entity-tag could not find cached entity ${te}`)}setPopoverInput(te){St(te)&&this.hasPopover(te.__typename)&&(this.popoverInput={entityId:te.id,entityType:te.__typename})}ngOnChanges(te){te.cvcMode&&"checkable"===te.cvcMode.currentValue&&(this.cvcDisableLink=!0),te.cvcContext&&"default"!==te.cvcContext.currentValue&&(this.cvcDisableLink=!0)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(t.rXU(s.Ic))};static#t=this.\u0275cmp=t.VBU({type:Ue,selectors:[["cvc-entity-tag"]],hostVars:40,hostBindings:function(_e,ie){2&_e&&t.AVh("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",cvcShowIcon:"cvcShowIcon",cvcTruncateLabel:"cvcTruncateLabel"},outputs:{cvcTagCheckedChange:"cvcTagCheckedChange",cvcOnClose:"cvcOnClose"},features:[t.OA$],decls:11,vars:3,consts:[["noTooltip",""],["popoverContent",""],["tagContent",""],["cacheMiss",""],["noIcon",""],["tagLabel",""],["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],[1,"default"],[3,"nzCheckedChange","nzOnClose","nzMode","nzChecked"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngTemplateOutlet"],[1,"select-item"],[3,"nzOnClose","nzMode"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",3,"nzTooltipTitle"],[1,"multi-select-item"],[3,"entity",4,"ngIf"],[3,"entity"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"routerLink",4,"ngIf"],[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"],[1,"tag-no-icon"]],template:function(_e,ie){1&_e&&t.DNE(0,U,4,4,"span",6)(1,Pt,3,3,"span",7)(2,Le,2,2,"span",8)(3,xt,2,2,"ng-template",null,0,t.C5r)(5,Ct,1,1,"ng-template",null,1,t.C5r)(7,bt,5,2,"ng-template",null,2,t.C5r)(9,Et,1,1,"ng-template",null,1,t.C5r),2&_e&&(t.Y8G("ngIf","default"===ie.cvcContext),t.R7$(),t.Y8G("ngIf","select-item"===ie.cvcContext),t.R7$(),t.Y8G("ngIf","multi-select-item"===ie.cvcContext))},dependencies:[m.bT,m.T3,ve.Wk,fe.Dn,Y.s,z.LH,Z.L_,Ie,he.M,E.R,S.o],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.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-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.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-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.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})}return Ue})()},181:(Rt,De,a)=>{a.d(De,{_:()=>Oe});var t=a(177),s=a(5103),m=a(5699),e=a(4917),M=a(5154),K=a(1188),L=a(3953);let j=(()=>{class pe{static#e=this.\u0275fac=function(fe){return new(fe||pe)};static#t=this.\u0275mod=L.$C({type:pe});static#n=this.\u0275inj=L.G2t({imports:[t.MD]})}return pe})();var A=a(1236),I=a(8156),w=a(4666),F=a(5928),X=a(8052),V=a(2582),x=a(7683),oe=a(3126),J=a(6075);let Ee=(()=>{class pe{static#e=this.\u0275fac=function(fe){return new(fe||pe)};static#t=this.\u0275mod=L.$C({type:pe});static#n=this.\u0275inj=L.G2t({imports:[t.MD,X.b,I.U,x.B,oe.t,V.y,w.v,F.o,J.$]})}return pe})(),Oe=(()=>{class pe{static#e=this.\u0275fac=function(fe){return new(fe||pe)};static#t=this.\u0275mod=L.$C({type:pe});static#n=this.\u0275inj=L.G2t({imports:[t.MD,K.iI,s.Y3,m.T,M.Qt,A.MC,j,e.i,Ee,j]})}return pe})()},8721:(Rt,De,a)=>{a.d(De,{G:()=>oe});var t=a(1635),s=a(9894),m=a(3953),e=a(1188),M=a(177),K=a(2983),L=a(3617),j=a(1774);const A=["*"];function I(J,Ee){if(1&J&&m.nrm(0,"nz-alert",6),2&J){m.XpG();const Oe=m.sdS(3),pe=m.XpG();m.Mz_("nzMessage","Error Submitting ",pe.entityType,""),m.Y8G("nzDescription",Oe)}}function w(J,Ee){if(1&J&&(m.j41(0,"li"),m.EFF(1),m.k0s()),2&J){const Oe=Ee.$implicit;m.R7$(),m.SpI(" ",Oe," ")}}function F(J,Ee){if(1&J&&(m.j41(0,"ul"),m.DNE(1,w,2,1,"li",7),m.k0s()),2&J){const Oe=m.XpG().ngIf;m.R7$(),m.Y8G("ngForOf",Oe)}}function X(J,Ee){if(1&J&&(m.qex(0),m.DNE(1,I,1,3,"nz-alert",5)(2,F,2,1,"ng-template",null,1,m.C5r),m.bVm()),2&J){const Oe=Ee.ngIf;m.R7$(),m.Y8G("ngIf",Oe.length>0)}}function V(J,Ee){if(1&J&&(m.qex(0),m.nrm(1,"nz-alert",8),m.bVm()),2&J){const Oe=m.XpG();m.R7$(),m.Mz_("nzMessage","",Oe.entityType," Submitted"),m.Y8G("nzDescription",Oe.successMessage?Oe.successMessage:null)}}function x(J,Ee){1&J&&m.SdG(0)}let oe=class b8{set mutationState(Ee){this._mutationState=Ee,this.currentTimer&&clearTimeout(this.currentTimer),Ee&&Ee.submitSuccess$.pipe((0,s.s)(this)).subscribe(Oe=>{Oe&&(this.currentTimer=setTimeout(()=>{this.redirectUrl&&this.router.navigateByUrl(this.redirectUrl)},2500))})}get mutationState(){return this._mutationState}constructor(Ee){this.router=Ee}ngOnInit(){}static#e=this.\u0275fac=function(Oe){return new(Oe||b8)(m.rXU(e.Ix))};static#t=this.\u0275cmp=m.VBU({type:b8,selectors:[["cvc-form-submission-status-display"]],inputs:{mutationState:"mutationState",entityType:"entityType",successMessage:"successMessage",redirectUrl:"redirectUrl"},ngContentSelectors:A,decls:8,vars:10,consts:[["form",""],["errorList",""],[3,"nzSpinning"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription"],[4,"ngFor","ngForOf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(Oe,pe){if(1&Oe&&(m.NAR(),m.j41(0,"nz-spin",2),m.nI1(1,"ngrxPush"),m.DNE(2,X,4,1,"ng-container",3),m.nI1(3,"ngrxPush"),m.DNE(4,V,2,3,"ng-container",4),m.nI1(5,"ngrxPush"),m.DNE(6,x,1,0,"ng-template",null,0,m.C5r),m.k0s()),2&Oe){const Ie=m.sdS(7);m.Y8G("nzSpinning",m.bMT(1,4,null==pe.mutationState?null:pe.mutationState.isSubmitting$)),m.R7$(2),m.Y8G("ngIf",m.bMT(3,6,null==pe.mutationState?null:pe.mutationState.submitError$)),m.R7$(2),m.Y8G("ngIf",m.bMT(5,8,null==pe.mutationState?null:pe.mutationState.submitSuccess$))("ngIfElse",Ie)}},dependencies:[M.Sq,M.bT,K.a,L.Y,j.L9],encapsulation:2,changeDetection:0})};oe=(0,t.Cg)([(0,s.d)()],oe)},5316:(Rt,De,a)=>{a.d(De,{P:()=>K});var t=a(177),s=a(3617),m=a(7685),e=a(2983),M=a(3953);let K=(()=>{class L{static#e=this.\u0275fac=function(I){return new(I||L)};static#t=this.\u0275mod=M.$C({type:L});static#n=this.\u0275inj=M.G2t({imports:[t.MD,e.V,s.$,m.pc]})}return L})()},2229:(Rt,De,a)=>{a.d(De,{m:()=>I0});var t=a(9417),s=a(1188),m=a(8524),e=a(3953),M=a(177),K=a(8927),L=a(7529);function j(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",4),e.EFF(2),e.k0s(),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("nzRequired",c.props.required&&!0!==c.props.hideRequiredMarker)("nzFor",c.id),e.R7$(),e.SpI(" ",c.props.label," ")}}function A(u,b){if(1&u&&e.nrm(0,"formly-validation-message",5),2&u){const c=e.XpG();e.Y8G("field",c.field)}}let I=(()=>{class u extends m.cm{get errorState(){return this.showError?"error":""}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-wrapper-nz-form-field"]],features:[e.Vt3],decls:7,vars:4,consts:[["fieldComponent",""],["errorTpl",""],[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip","nzExtra"],[3,"nzRequired","nzFor"],[3,"field"]],template:function(c,h){if(1&c&&(e.j41(0,"nz-form-item"),e.DNE(1,j,3,3,"ng-container",2),e.j41(2,"nz-form-control",3),e.eu8(3,null,0),e.DNE(5,A,1,1,"ng-template",null,1,e.C5r),e.k0s()()),2&c){const _=e.sdS(6);e.R7$(),e.Y8G("ngIf",h.props.label&&!0!==h.props.hideLabel),e.R7$(),e.Y8G("nzValidateStatus",h.errorState)("nzErrorTip",_)("nzExtra",h.props.description)}},dependencies:[K.Ls,K.Mo,K.zS,m.Nc,L.e,M.bT,L.Uq],encapsulation:2}),u})(),w=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,K.PQ,m.qy.forChild({wrappers:[{name:"form-field",component:I}]})]]}),u})();var F=a(1011),X=a(7336),V=a(1413),x=a(3726),oe=a(7786),J=a(3294),Ee=a(6977),Oe=a(9172),pe=a(5558),Ie=a(1397),ve=a(6354),fe=a(7891),Y=a(1025),z=a(317),Z=a(5103),he=a(851),E=a(8203),S=a(7806);const R=["upHandler"],U=["downHandler"],se=["inputElement"];function Be(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",10),2&u){const c=e.XpG();e.Y8G("status",c.status)}}const Pt=["nz-input-number-group-slot",""],gt=["*"];function wt(u,b){if(1&u&&e.nrm(0,"span",0),2&u){const c=e.XpG();e.Y8G("nzType",c.icon)}}function Le(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.JRh(c.template)}}function zt(u,b){if(1&u&&e.nrm(0,"div",3),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzAddOnBeforeIcon)("template",c.nzAddOnBefore)}}function xt(u,b){}function st(u,b){if(1&u&&(e.j41(0,"div",6),e.DNE(1,xt,0,0,"ng-template",5),e.k0s()),2&u){const c=e.XpG(2),h=e.sdS(3);e.AVh("ant-input-number-affix-wrapper-disabled",c.disabled)("ant-input-number-affix-wrapper-sm",c.isSmall)("ant-input-number-affix-wrapper-lg",c.isLarge)("ant-input-number-affix-wrapper-focused",c.focused),e.Y8G("ngClass",c.affixInGroupStatusCls),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Ct(u,b){}function It(u,b){if(1&u&&e.DNE(0,Ct,0,0,"ng-template",5),2&u){e.XpG(2);const c=e.sdS(5);e.Y8G("ngTemplateOutlet",c)}}function Tt(u,b){if(1&u&&e.nrm(0,"span",3),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzAddOnAfterIcon)("template",c.nzAddOnAfter)}}function en(u,b){if(1&u&&(e.j41(0,"span",2),e.DNE(1,zt,1,2,"div",3)(2,st,2,10,"div",4)(3,It,1,1,null,5)(4,Tt,1,2,"span",3),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.vxM(c.nzAddOnBefore||c.nzAddOnBeforeIcon?1:-1),e.R7$(),e.vxM(c.isAffix||c.hasFeedback?2:3),e.R7$(2),e.vxM(c.nzAddOnAfter||c.nzAddOnAfterIcon?4:-1)}}function Ut(u,b){}function Lt(u,b){if(1&u&&e.DNE(0,Ut,0,0,"ng-template",5),2&u){e.XpG(2);const c=e.sdS(3);e.Y8G("ngTemplateOutlet",c)}}function fn(u,b){}function $n(u,b){if(1&u&&e.DNE(0,fn,0,0,"ng-template",5),2&u){e.XpG(2);const c=e.sdS(5);e.Y8G("ngTemplateOutlet",c)}}function zn(u,b){if(1&u&&e.DNE(0,Lt,1,1,null,5)(1,$n,1,1,null,5),2&u){const c=e.XpG();e.vxM(c.isAffix?0:1)}}function bt(u,b){if(1&u&&e.nrm(0,"span",7),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzPrefixIcon)("template",c.nzPrefix)}}function At(u,b){}function Et(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const c=e.XpG(3);e.Y8G("status",c.status)}}function St(u,b){if(1&u&&(e.j41(0,"span",8),e.DNE(1,Et,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzSuffixIcon)("template",c.nzSuffix),e.R7$(),e.vxM(c.isFeedback?1:-1)}}function Wt(u,b){if(1&u&&e.DNE(0,bt,1,2,"span",7)(1,At,0,0,"ng-template",5)(2,St,2,3,"span",8),2&u){const c=e.XpG(),h=e.sdS(5);e.vxM(c.nzPrefix||c.nzPrefixIcon?0:-1),e.R7$(),e.Y8G("ngTemplateOutlet",h),e.R7$(),e.vxM(c.nzSuffix||c.nzSuffixIcon||c.isFeedback?2:-1)}}function Ue(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const c=e.XpG(3);e.Y8G("status",c.status)}}function Fe(u,b){if(1&u&&(e.j41(0,"span",10),e.DNE(1,Ue,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const c=e.XpG(2);e.R7$(),e.vxM(c.isFeedback?1:-1)}}function te(u,b){if(1&u&&(e.SdG(0),e.DNE(1,Fe,2,1,"span",10)),2&u){const c=e.XpG();e.R7$(),e.vxM(c.isAddOn||c.isAffix||!c.isFeedback?-1:1)}}let _e=(()=>{class u{onModelChange(c){this.parsedValue=this.nzParser(c),this.inputElement.nativeElement.value=`${this.parsedValue}`;const h=this.getCurrentValidValue(this.parsedValue);this.setValue(h)}getCurrentValidValue(c){let h=c;return h=""===h?"":this.isNotCompleteNumber(h)?this.value:`${this.getValidValue(h)}`,this.toNumber(h)}isNotCompleteNumber(c){return isNaN(c)||""===c||null===c||!(!c||c.toString().indexOf(".")!==c.toString().length-1)}getValidValue(c){let h=parseFloat(c);return isNaN(h)?c:(hthis.nzMax&&(h=this.nzMax),h)}toNumber(c){if(this.isNotCompleteNumber(c))return c;const h=String(c);if(h.indexOf(".")>=0&&(0,z.n9)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(c,this.nzPrecision);if("cut"===this.nzPrecisionMode){const _=h.split(".");return _[1]=_[1].slice(0,this.nzPrecision),Number(_.join("."))}return Number(Number(c).toFixed(this.nzPrecision))}return Number(c)}getRatio(c){let h=1;return c.metaKey||c.ctrlKey?h=.1:c.shiftKey&&(h=10),h}down(c,h){this.isFocused||this.focus(),this.step("down",c,h)}up(c,h){this.isFocused||this.focus(),this.step("up",c,h)}getPrecision(c){const h=c.toString();if(h.indexOf("e-")>=0)return parseInt(h.slice(h.indexOf("e-")+2),10);let _=0;return h.indexOf(".")>=0&&(_=h.length-h.indexOf(".")-1),_}getMaxPrecision(c,h){if((0,z.n9)(this.nzPrecision))return this.nzPrecision;const _=this.getPrecision(h),ne=this.getPrecision(this.nzStep),ut=this.getPrecision(c);return c?Math.max(ut,_+ne):_+ne}getPrecisionFactor(c,h){const _=this.getMaxPrecision(c,h);return Math.pow(10,_)}upStep(c,h){const _=this.getPrecisionFactor(c,h),ne=Math.abs(this.getMaxPrecision(c,h));let ut;return ut="number"==typeof c?((_*c+_*this.nzStep*h)/_).toFixed(ne):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(ut)}downStep(c,h){const _=this.getPrecisionFactor(c,h),ne=Math.abs(this.getMaxPrecision(c,h));let ut;return ut="number"==typeof c?((_*c-_*this.nzStep*h)/_).toFixed(ne):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(ut)}step(c,h,_=1){if(this.stop(),h.preventDefault(),this.nzDisabled)return;const ne=this.getCurrentValidValue(this.parsedValue)||0;let ut=0;"up"===c?ut=this.upStep(ne,_):"down"===c&&(ut=this.downStep(ne,_));const nn=ut>this.nzMax||utthis.nzMax?ut=this.nzMax:ut{this[c](h,_)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(c){if(`${this.value}`!=`${c}`&&this.onChange(c),this.value=c,this.parsedValue=c,this.disabledUp=this.disabledDown=!1,c||0===c){const h=Number(c);h>=this.nzMax&&(this.disabledUp=!0),h<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(c){const h=(0,z.n9)(this.nzFormatter(c))?this.nzFormatter(c):"";this.displayValue=h,this.inputElement.nativeElement.value=`${h}`}writeValue(c){this.value=c,this.setValue(c),this.updateDisplayValue(c),this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.disabled$.next(this.nzDisabled),this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(c,h,_,ne,ut,nn,Rn,Ii,So){this.ngZone=c,this.elementRef=h,this.cdr=_,this.focusMonitor=ne,this.renderer=ut,this.directionality=nn,this.destroy$=Rn,this.nzFormStatusService=Ii,this.nzFormNoStatusService=So,this.isNzDisableFirstChange=!0,this.isFocused=!1,this.disabled$=new V.B,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 e.bkB,this.nzFocus=new e.bkB,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=No=>No.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=No=>No}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,J.F)((c,h)=>c.status===h.status&&c.hasFeedback===h.hasFeedback),(0,Ee.Q)(this.destroy$)).subscribe(({status:c,hasFeedback:h})=>{this.setStatusStyles(c,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{c?(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,Ee.Q)(this.destroy$)).subscribe(c=>{this.dir=c}),this.setupHandlersListeners(),this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.inputElement.nativeElement,"keyup").pipe((0,Ee.Q)(this.destroy$)).subscribe(()=>this.stop()),(0,x.R)(this.inputElement.nativeElement,"keydown").pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{const{keyCode:h}=c;h!==X.i7&&h!==X.n6&&h!==X.Fm||this.ngZone.run(()=>{if(h===X.i7){const _=this.getRatio(c);this.up(c,_),this.stop()}else if(h===X.n6){const _=this.getRatio(c);this.down(c,_),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(c){const{nzStatus:h,nzDisabled:_}=c;if(c.nzFormatter&&!c.nzFormatter.isFirstChange()){const ne=this.getCurrentValidValue(this.parsedValue);this.setValue(ne),this.updateDisplayValue(ne)}_&&this.disabled$.next(this.nzDisabled),h&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef)}setupHandlersListeners(){this.ngZone.runOutsideAngular(()=>{(0,oe.h)((0,x.R)(this.upHandler.nativeElement,"mouseup"),(0,x.R)(this.upHandler.nativeElement,"mouseleave"),(0,x.R)(this.downHandler.nativeElement,"mouseup"),(0,x.R)(this.downHandler.nativeElement,"mouseleave")).pipe((0,Ee.Q)(this.destroy$)).subscribe(()=>this.stop())})}setStatusStyles(c,h){this.status=c,this.hasFeedback=h,this.cdr.markForCheck(),this.statusCls=(0,z.LP)(this.prefixCls,c,h),Object.keys(this.statusCls).forEach(_=>{this.statusCls[_]?this.renderer.addClass(this.elementRef.nativeElement,_):this.renderer.removeClass(this.elementRef.nativeElement,_)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(he.FN),e.rXU(e.sFG),e.rXU(E.dS,8),e.rXU(Y.y4),e.rXU(fe.is,8),e.rXU(fe.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number"]],viewQuery:function(h,_){if(1&h&&(e.GBs(R,7),e.GBs(U,7),e.GBs(se,7)),2&h){let ne;e.mGM(ne=e.lsd())&&(_.upHandler=ne.first),e.mGM(ne=e.lsd())&&(_.downHandler=ne.first),e.mGM(ne=e.lsd())&&(_.inputElement=ne.first)}},hostAttrs:[1,"ant-input-number"],hostVars:16,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-in-form-item",!!_.nzFormStatusService)("ant-input-number-focused",_.isFocused)("ant-input-number-lg","large"===_.nzSize)("ant-input-number-sm","small"===_.nzSize)("ant-input-number-disabled",_.nzDisabled)("ant-input-number-readonly",_.nzReadOnly)("ant-input-number-rtl","rtl"===_.dir)("ant-input-number-borderless",_.nzBorderless)},inputs:{nzSize:"nzSize",nzMin:[2,"nzMin","nzMin",e.Udg],nzMax:[2,"nzMax","nzMax",e.Udg],nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStatus:"nzStatus",nzStep:[2,"nzStep","nzStep",e.Udg],nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzReadOnly:[2,"nzReadOnly","nzReadOnly",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzBorderless:[2,"nzBorderless","nzBorderless",e.L39],nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],standalone:!0,features:[e.Jv_([{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0},Y.y4]),e.GFd,e.OA$,e.aNF],decls:11,vars:15,consts:[["upHandler",""],["downHandler",""],["inputElement",""],[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["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"],["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,"ngModelChange","disabled","placeholder","readOnly","ngModel"],[1,"ant-input-number-suffix",3,"status"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"div",3)(1,"span",4,0),e.bIt("mousedown",function(nn){return e.eBV(ne),e.Njj(_.up(nn))}),e.nrm(3,"span",5),e.k0s(),e.j41(4,"span",6,1),e.bIt("mousedown",function(nn){return e.eBV(ne),e.Njj(_.down(nn))}),e.nrm(6,"span",7),e.k0s()(),e.j41(7,"div",8)(8,"input",9,2),e.bIt("ngModelChange",function(nn){return e.eBV(ne),e.Njj(_.onModelChange(nn))}),e.k0s()(),e.DNE(10,Be,1,1,"nz-form-item-feedback-icon",10)}2&h&&(e.R7$(),e.AVh("ant-input-number-handler-up-disabled",_.disabledUp),e.R7$(3),e.AVh("ant-input-number-handler-down-disabled",_.disabledDown),e.R7$(4),e.Y8G("disabled",_.nzDisabled)("placeholder",_.nzPlaceHolder)("readOnly",_.nzReadOnly)("ngModel",_.displayValue),e.BMQ("id",_.nzId)("autofocus",_.nzAutoFocus?"autofocus":null)("min",_.nzMin)("max",_.nzMax)("step",_.nzStep)("inputmode",_.nzInputMode),e.R7$(2),e.vxM(_.hasFeedback&&_.status&&!_.nzFormNoStatusService?10:-1))},dependencies:[Z.Y3,Z.Dn,t.YN,t.me,t.BC,t.vS,fe.J1,fe.Xd],encapsulation:2,changeDetection:0})}return u})(),ie=(()=>{class u{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-input-number-group-slot",""]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group-addon","addon"===_.type)("ant-input-number-prefix","prefix"===_.type)("ant-input-number-suffix","suffix"===_.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[e.aNF],attrs:Pt,ngContentSelectors:gt,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,wt,1,1,"span",0)(1,Le,2,1,"ng-container",1),e.SdG(2)),2&h&&(e.vxM(_.icon?0:-1),e.R7$(),e.Y8G("nzStringTemplateOutlet",_.template))},dependencies:[Z.Y3,Z.Dn,S.C,S.m],encapsulation:2,changeDetection:0})}return u})(),et=(()=>{class u{constructor(c,h,_,ne,ut,nn,Rn){this.focusMonitor=c,this.elementRef=h,this.renderer=_,this.cdr=ne,this.directionality=ut,this.nzFormStatusService=nn,this.nzFormNoStatusService=Rn,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 V.B}updateChildrenInputSize(){this.listOfNzInputNumberComponent&&this.listOfNzInputNumberComponent.forEach(c=>c.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,J.F)((c,h)=>c.status===h.status&&c.hasFeedback===h.hasFeedback),(0,Ee.Q)(this.destroy$)).subscribe(({status:c,hasFeedback:h})=>{this.setStatusStyles(c,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.focused=!!c,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.dir=c})}ngAfterContentInit(){this.updateChildrenInputSize();const c=this.listOfNzInputNumberComponent.changes.pipe((0,Oe.Z)(this.listOfNzInputNumberComponent));c.pipe((0,pe.n)(h=>(0,oe.h)(c,...h.map(_=>_.disabled$))),(0,Ie.Z)(()=>c),(0,ve.T)(h=>h.some(_=>_.nzDisabled)),(0,Ee.Q)(this.destroy$)).subscribe(h=>{this.disabled=h,this.cdr.markForCheck()})}ngOnChanges(c){const{nzSize:h,nzSuffix:_,nzPrefix:ne,nzPrefixIcon:ut,nzSuffixIcon:nn,nzAddOnAfter:Rn,nzAddOnBefore:Ii,nzAddOnAfterIcon:So,nzAddOnBeforeIcon:No,nzStatus:sc}=c;h&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(_||ne||ut||nn)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Rn||Ii||So||No)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),sc&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(c,h){this.status=c,this.hasFeedback=h,this.isFeedback=!!c&&h,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&h,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,z.LP)(`${this.prefixCls}-affix-wrapper`,c,h):{},this.cdr.markForCheck(),this.affixStatusCls=(0,z.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":c,!this.isAddOn&&h),this.groupStatusCls=(0,z.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?c:"",!!this.isAddOn&&h);const ne={...this.affixStatusCls,...this.groupStatusCls};Object.keys(ne).forEach(ut=>{ne[ut]?this.renderer.addClass(this.elementRef.nativeElement,ut):this.renderer.removeClass(this.elementRef.nativeElement,ut)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(he.FN),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(E.dS,8),e.rXU(fe.is,8),e.rXU(fe.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number-group"]],contentQueries:function(h,_,ne){if(1&h&&e.wni(ne,_e,5),2&h){let ut;e.mGM(ut=e.lsd())&&(_.listOfNzInputNumberComponent=ut)}},hostVars:24,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group",_.nzCompact)("ant-input-number-group-compact",_.nzCompact)("ant-input-number-group-wrapper",_.isAddOn)("ant-input-number-group-wrapper-rtl",_.isAddOn&&"rtl"===_.dir)("ant-input-number-group-wrapper-lg",_.isAddOn&&_.isLarge)("ant-input-number-group-wrapper-sm",_.isAddOn&&_.isSmall)("ant-input-number-affix-wrapper",!_.isAddOn&&_.isAffix)("ant-input-number-affix-wrapper-rtl",!_.isAddOn&&"rtl"===_.dir)("ant-input-number-affix-wrapper-focused",!_.isAddOn&&_.isAffix&&_.focused)("ant-input-number-affix-wrapper-disabled",!_.isAddOn&&_.isAffix&&_.disabled)("ant-input-number-affix-wrapper-lg",!_.isAddOn&&_.isAffix&&_.isLarge)("ant-input-number-affix-wrapper-sm",!_.isAddOn&&_.isAffix&&_.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzCompact:[2,"nzCompact","nzCompact",e.L39]},exportAs:["nzInputNumberGroup"],standalone:!0,features:[e.Jv_([fe.n1]),e.GFd,e.OA$,e.aNF],ngContentSelectors:gt,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-number-wrapper","ant-input-number-group"],["nz-input-number-group-slot","","type","addon",3,"icon","template"],[1,"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"],[3,"ngTemplateOutlet"],[1,"ant-input-number-affix-wrapper",3,"ngClass"],["nz-input-number-group-slot","","type","prefix",3,"icon","template"],["nz-input-number-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-number-group-slot","","type","suffix"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,en,5,3,"span",2)(1,zn,2,1)(2,Wt,3,3,"ng-template",null,0,e.C5r)(4,te,2,1,"ng-template",null,1,e.C5r)),2&h&&e.vxM(_.isAddOn?0:1)},dependencies:[ie,M.YU,M.T3,fe.J1,fe.Xd],encapsulation:2,changeDetection:0})}return u})(),ht=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[_e,et,ie]})}return u})();function Kt(u,b){if(1&u&&e.nrm(0,"input",2),2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("type",c.props.type||"text")("formlyAttributes",c.field)}}function cn(u,b){if(1&u&&e.nrm(0,"nz-input-number",3),2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("formlyAttributes",c.field)}}let Tn=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes",4,"ngIf","ngIfElse"],["nz-input","",3,"formControl","type","formlyAttributes"],[3,"formControl","formlyAttributes"]],template:function(c,h){if(1&c&&e.DNE(0,Kt,1,3,"input",1)(1,cn,1,2,"ng-template",null,0,e.C5r),2&c){const _=e.sdS(2);e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",_)}},dependencies:[_e,M.bT,F.Sy,t.me,t.BC,t.l_,m.ch],encapsulation:2,changeDetection:0}),u})(),Wn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,F.j,ht,w,m.qy.forChild({types:[{name:"input",component:Tn,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]})]]}),u})(),kn=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(c,h){1&c&&e.nrm(0,"textarea",0),2&c&&e.Y8G("formControl",h.formControl)("formlyAttributes",h.field)},dependencies:[F.Sy,t.me,t.BC,t.l_,m.ch],encapsulation:2,changeDetection:0}),u})(),In=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,F.j,w,m.qy.forChild({types:[{name:"textarea",component:kn,wrappers:["form-field"]}]})]]}),u})();var Un=a(1985),dn=a(4412),qt=a(5964),wn=a(8141);let Vt=(()=>{class u{transform(c,h){return c instanceof Un.c?this.dispose():c=this.observableOf(c,h),c.pipe((0,ve.T)(_=>this.transformOptions(_,h)))}ngOnDestroy(){this.dispose()}transformOptions(c,h){const _=this.transformSelectProps(h),ne=[],ut={};return c?.forEach(nn=>{const Rn=this.transformOption(nn,_);if(Rn.group){const Ii=ut[Rn.label];void 0===Ii?ut[Rn.label]=ne.push(Rn)-1:Rn.group.forEach(So=>ne[Ii].group.push(So))}else ne.push(Rn)}),ne}transformOption(c,h){const _=h.groupProp(c);return Array.isArray(_)?{label:h.labelProp(c),group:_.map(ne=>this.transformOption(ne,h))}:(c={label:h.labelProp(c),value:h.valueProp(c),disabled:!!h.disabledProp(c)},_?{label:_,group:[c]}:c)}transformSelectProps(c){const h=c?.props||c?.templateOptions||{},_=ne=>"function"==typeof ne?ne:ut=>ut[ne];return{groupProp:_(h.groupProp||"group"),labelProp:_(h.labelProp||"label"),valueProp:_(h.valueProp||"value"),disabledProp:_(h.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(c,h){return this.dispose(),h&&h.options&&h.options.fieldChanges&&(this._subscription=h.options.fieldChanges.pipe((0,qt.p)(({property:_,type:ne,field:ut})=>"expressionChanges"===ne&&(0===_.indexOf("templateOptions.options")||0===_.indexOf("props.options"))&&ut===h&&Array.isArray(ut.props.options)&&!!this._options),(0,wn.M)(()=>this._options.next(h.props.options))).subscribe()),this._options=new dn.t(c),this._options.asObservable()}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275pipe=e.EJ8({name:"formlySelectOptions",type:u,pure:!0}),u})(),Ge=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({}),u})();var ue=a(3190);function q(u,b){if(1&u&&(e.j41(0,"label",2),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled),e.R7$(),e.SpI(" ",c.label," ")}}let ee=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-radio"]],features:[e.Vt3],decls:4,vars:7,consts:[[3,"ngModelChange","formControl"],["nz-radio","",3,"nzValue","nzDisabled",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue","nzDisabled"]],template:function(c,h){1&c&&(e.j41(0,"nz-radio-group",0),e.bIt("ngModelChange",function(ne){return h.props.change&&h.props.change(h.field,ne)}),e.DNE(1,q,2,3,"label",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&c&&(e.Y8G("formControl",h.formControl),e.R7$(),e.Y8G("ngForOf",e.bMT(3,5,e.i5U(2,2,h.props.options,h.field))))},dependencies:[ue.i3,ue.lx,t.BC,t.l_,M.Sq,M.Jj,Vt],encapsulation:2,changeDetection:0}),u})(),Xe=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,ue.Sw,w,Ge,m.qy.forChild({types:[{name:"radio",component:ee,wrappers:["form-field"]}]})]]}),u})();var dt=a(2986);let at=(()=>{class u extends m.PU{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(c,h){1&c&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ne){return h.props.change&&h.props.change(h.field,ne)}),e.EFF(1),e.k0s()),2&c&&(e.Y8G("nzIndeterminate",h.props.indeterminate&&null==h.formControl.value)("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.SpI(" ",h.props.label," "))},dependencies:[dt.$g,t.BC,t.l_,m.ch],encapsulation:2,changeDetection:0}),u})(),Ot=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,dt.IJ,w,m.qy.forChild({types:[{name:"checkbox",component:at,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]})]]}),u})();var Qe=a(1997);function be(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function Je(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,be,1,3,"nz-option",5),e.k0s()),2&u){const c=e.XpG().$implicit;e.Y8G("nzLabel",c.label),e.R7$(),e.Y8G("ngForOf",c.group)}}function re(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=e.XpG().$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function ze(u,b){if(1&u&&(e.qex(0),e.DNE(1,Je,2,2,"nz-option-group",2)(2,re,1,3,"nz-option",3),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",c.group),e.R7$(),e.Y8G("ngIf",!c.group)}}let mt=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(c,h){1&c&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(ne){return h.props.change&&h.props.change(h.field,ne)}),e.DNE(1,ze,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&c&&(e.AVh("ng-dirty",h.showError),e.Y8G("nzPlaceHolder",h.props.placeholder)("formControl",h.formControl)("formlyAttributes",h.field)("nzMode",h.props.multiple?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,h.props.options,h.field))))},dependencies:[Qe.WI,Qe.uX,Qe.ld,t.BC,t.l_,m.ch,M.Sq,M.bT,M.Jj,Vt],encapsulation:2,changeDetection:0}),u})(),Ke=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,Qe.DH,w,Ge,m.qy.forChild({types:[{name:"select",component:mt,wrappers:["form-field"]},{name:"enum",extends:"select"}]})]]}),u})(),xe=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[w,Wn,In,Xe,Ot,Ke]]}),u})();var Re=a(776);function B(u,b){return(0,J.F)((c,h)=>b?b(c[u],h[u]):c[u]===h[u])}const ce={paramKey:!0};class N{constructor(b){this.route=b,this.unSub$=new V.B}postPopulate(b){if(b.fieldGroup||b.fieldArray||!1===(b.props||{...ce}).paramKey||(this.paramKey=this.getParamKey(b),!this.paramKey))return;const h=this.getRouteSub(this.route,b),_=b.hooks?.onDestroy;h&&_&&(b.hooks={...b.hooks,onDestroy:ne=>{h.unsubscribe(),_(ne)}})}getParamKey(b){const c=b.props;if("string"==typeof c.paramKey)return c.paramKey;if(b.key){if("string"==typeof b.key)return b.key;console.warn(`observe-query-param cannot use field key ${JSON.stringify(b.key)} of type ${typeof b.key} to observe a query param. Use prop.paramKey to specify a query param string, or define a string field.key.`)}}getRouteSub(b,c){return b.queryParams.pipe(B(this.paramKey),(0,Ee.Q)(this.unSub$)).subscribe(h=>{const _=c.formControl,ne=h[this.paramKey];if(!ne)return void this.unSub$.next();let ut;try{ut=JSON.parse(ne)}catch(nn){return console.warn(`observe-query-param failed to parse query param ${this.paramKey} for field ${c.id}: ${nn}`),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 this.unSub$.next()}if(ut)return Object.keys(ut).length>0&&ut.constructor===Object?(console.warn(`observe-query-param may only set primitive types or arrays of primitive types, param ${this.paramKey} is an object: ${JSON.stringify(ut)}`),void this.unSub$.next()):void _.setValue(ut);this.unSub$.next()})}}function ke(u){return{extensions:[{name:"observeQueryParam",extension:new N(u)}]}}const H={extras:{immutable:!1,lazyRender:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minLength",message:(u,b)=>`This field has a minimum length of ${b.templateOptions?.minLength}.`},{name:"maxLength",message:(u,b)=>`This field has a maximum length of ${b.templateOptions?.maxLength}.`},{name:"min",message:(u,b)=>`This field has a minimum value of ${b.templateOptions?.min}.`},{name:"max",message:(u,b)=>`This field has a maximum value of ${b.templateOptions?.max}.`},{name:"pattern",message:(u,b)=>`This field's value must fit the pattern ${b.templateOptions?.pattern}.`},{name:"integer",message:(u,b)=>"Value must be an integer."},{name:"nucleotide",message:(u,b)=>"Value must only contain A, C, T, G, and/or /."},{name:"clinvar",message:(u,b)=>"Value must be an integer."}],validators:[{name:"integer",validation:(u,b)=>""===u.value||null==u.value||/^\d+$/.test(u.value)?null:{integer:!0}},{name:"nucleotide",validation:(u,b)=>""===u.value||null==u.value||/^[ACTG\/]+$/.test(u.value)?null:{nucleotide:!0}},{name:"clinvar",validation:(u,b)=>{for(var c of u.value)if(""!==c&&null!=c&&!/^\d+$/.test(c))return{clinvar:!0};return null}}]};var me=a(4917),qe=a(7391),rt=a(8928),Ft=a(181),rn=a(7685),Cn=a(3617),Jn=a(9448);let jn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(),Cn.$,Z.Y3,Qe.DH,F.j,K.PQ,qe.kT,rt.jl,rn.pc,Jn.g,Ft._,me.i]})}return u})();var Gn=a(5699);let zi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,Gn.T,me.i]})}return u})();const Oi=(u,b,c,h)=>({disabled:u,error:b,required:c,valid:h}),po=(u,b)=>({disabled:u,error:b});function Zi(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",6),e.nrm(2,"span",7),e.k0s(),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(6,po,c.props.disabled,c.showError))("nzRequired",c.props.required)("nzFor",c.id)("nzTooltipTitle",c.props.tooltip)("nzNoColon",!0),e.R7$(),e.Y8G("nzContent",c.props.label)}}function Vo(u,b){if(1&u&&e.nrm(0,"span",13),2&u){const c=e.XpG(2);e.Y8G("innerHTML",c.props.description,e.npT)}}function Co(u,b){if(1&u&&e.nrm(0,"span",14),2&u){const c=e.XpG(2);e.Y8G("innerHTML",c.props.description,e.npT)}}function zr(u,b){if(1&u&&e.nrm(0,"span",15),2&u){const c=e.XpG(2);e.Y8G("innerHTML",c.props.description,e.npT)}}function rr(u,b){if(1&u&&(e.j41(0,"div",8),e.qex(1,9),e.DNE(2,Vo,1,1,"span",10)(3,Co,1,1,"span",11)(4,zr,1,1,"span",12),e.bVm(),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngSwitch",c.props.extraType),e.R7$(),e.Y8G("ngSwitchCase","prompt"),e.R7$(),e.Y8G("ngSwitchCase","description")}}function lt(u,b){if(1&u&&e.nrm(0,"formly-validation-message",18),2&u){const c=e.XpG(2);e.Y8G("field",c.field)}}function Ht(u,b){if(1&u&&(e.j41(0,"div",16),e.DNE(1,lt,1,1,"formly-validation-message",17),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",c.props.showErrorTip)}}const $t={};let pn=(()=>{class u extends m.cm{get errorState(){return this.showError?"error":""}constructor(c){super(),this.cdr=c,this.formLayout="vertical",this.wrapperOptions={...$t}}ngOnInit(){this.props.showExtra=this.props.showExtra??!0,this.props.extraType=this.props.extraType??"prompt",this.props.showErrorTip=this.props.showErrorTip??!0,this.props.formFieldOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formFieldOptions}),this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}ngAfterViewInit(){this.cdr.detectChanges()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-field-wrapper"]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("layout-horizontal","horizontal"===_.formLayout)("layout-vertical","vertical"===_.formLayout)("layout-inline","inline"===_.formLayout)},features:[e.Vt3],decls:9,vars:10,consts:[["fieldComponent",""],["descriptionTpl",""],["errorTpl",""],[3,"ngClass"],[4,"ngIf"],[3,"nzExtra","nzValidateStatus","nzErrorTip"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon"],["nz-typography","","nzEllipsis","",1,"label",3,"nzContent"],[1,"form-field-description"],[3,"ngSwitch"],["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"],[3,"field",4,"ngIf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-form-item",3),e.DNE(1,Zi,3,9,"ng-container",4),e.j41(2,"nz-form-control",5),e.eu8(3,null,0),e.k0s()(),e.DNE(5,rr,5,3,"ng-template",null,1,e.C5r)(7,Ht,2,1,"ng-template",null,2,e.C5r)),2&h){const ne=e.sdS(6),ut=e.sdS(8);e.Y8G("ngClass",e.ziG(5,Oi,_.props.disabled,_.showError,_.props.required,"VALID"===_.field.formControl.status&&!0===_.field.formControl.touched)),e.R7$(),e.Y8G("ngIf",_.props.label&&!0!==_.props.hideLabel),e.R7$(),e.Y8G("nzExtra",_.props.showExtra&&!_.showError?ne:void 0)("nzValidateStatus",_.errorState)("nzErrorTip",ut)}},dependencies:[M.YU,M.bT,M.ux,M.e1,M.fG,L.Uq,L.e,K.Ls,K.Mo,K.zS,qe.Di,m.Nc],styles:['.typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{border-radius:4px;margin-top:8px;margin-bottom:0}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.label[_ngcontent-%COMP%]{color:#096dd9}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon{margin-left:.25em}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon path{color:#69c0ff}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] .form-row-wrapped[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%], .form-row-wrapped [_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border:1px solid #096dd9;height:1em;content:""}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#096dd9;font-weight:600}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#40a9ff}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#ff4d4f}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#73d13d}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#d9d9d9}.layout-vertical[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #e6f7ff;padding:4px 8px}.layout-vertical[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #69c0ff}.layout-vertical[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%]{background-color:#fff1f0;border:1px solid #ff7875}.layout-vertical[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%]{background-color:#f6ffed;border:1px solid #95de64}.layout-vertical[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%]{background-color:#f5f5f5;border:1px solid #f5f5f5}.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}'],changeDetection:0})}return u})();var hn=a(5154);const Hn={wrappers:[{name:"form-field",component:pn}]};let En=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,K.PQ,hn.Qt,qe.kT,m.qy.forChild(Hn)]})}return u})();var Xn=a(513),ci=a(2096),_i=a(1236),lo=a(896),bi=a(1635),mn=a(9894),Ui=a(4608);function Mi(){let u=class Dp extends m.PU{configureBaseField(){this.field?.options?.fieldChanges?(this.onModelChange$=this.field.options.fieldChanges.pipe((0,qt.p)(c=>c.field.id===this.field.id),(0,Ui.E)("value")),this.formControl.value?(this.onValueChange$=new dn.t(this.formControl.value),Array.isArray(this.formControl.value)?this.field.formControl.value.length>0&&this.formControl.markAsTouched():this.formControl.markAsTouched()):this.onValueChange$=new dn.t(void 0),this.onModelChange$.pipe((0,mn.s)(this)).subscribe(c=>{this.onValueChange$.next(c)}),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 c=`${this.field.key}$`;this.state&&this.state.fields[c]?(this.stateValueChange$=this.state.fields[c],this.onValueChange$.pipe((0,ve.T)(h=>null===h?void 0:h),(0,mn.s)(this)).subscribe(h=>{this.stateValueChange$&&this.stateValueChange$.next(h)})):console.warn(`${this.field.id} could not find state field ${c} on form state. State: `,this.state)}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(Dp)))(_||Dp)}})();static#t=this.\u0275prov=e.jDH({token:Dp,factory:Dp.\u0275fac})};return u=(0,bi.Cg)([(0,mn.d)()],u),u}var Ni=a(2771),oo=a(5245),Gi=a(3993),jo=a(7673),Ki=a(2806),Jo=a(3226),sr=a(9030),fo=a(9199),uo=a(4572);function pr(...u){let b=u[0],c=u[1];if(0===b.length)return(0,jo.of)(c?c([]):[]);const h=b.slice();return c&&h.push((..._)=>c(_)),uo.z.apply(null,h)}function Lo(){return function(b){return(()=>{class h extends b{configureEntitySelectField(ne){if(this.typeaheadQuery=ne.typeaheadQuery,this.tagQuery=ne.tagQuery,this.getTypeaheadVars=ne.getTypeaheadVarsFn,this.getTypeahedResults=ne.getTypeaheadResultsFn,this.getTagQueryVars=ne.getTagQueryVarsFn,this.getTagQueryResults=ne.getTagQueryResultsFn,this.getSelectedItemOption=ne.getSelectedItemOptionFn,this.getSelectOptions=ne.getSelectOptionsFn,this.typeaheadParam$=ne.typeaheadParam$,this.typeaheadParamName$=ne.typeaheadParamName$,this.selectOpen$=ne.selectOpen$||new Ni.m,this.selectComponent=ne.selectComponent,this.minSearchStrLength=ne.minSearchStrLength||0,this.cdr=ne.changeDetectorRef,this.onSearch$=new dn.t(void 0),this.isLoading$=new Un.c,this.result$=new dn.t([]),this.onPopulate$=new V.B,this.onTagClose$=new V.B,this.onOpenChange$=new V.B,this.onCreate$=new V.B,this.selectOption$=new dn.t(void 0),this.response$=this.onSearch$.pipe((0,oo.i)(1),(0,qt.p)(fo.kP),(0,qt.p)(ut=>0===this.minSearchStrLength||ut.length>=this.minSearchStrLength),(0,Gi.E)(void 0!==this.typeaheadParam$?this.typeaheadParam$:(0,jo.of)(void 0)),(0,pe.n)(([ut,nn])=>{const Rn=this.getTypeaheadVars(ut,nn),Ii=No=>(this.queryRef=this.typeaheadQuery.watch(No),this.isLoading$=this.queryRef.valueChanges.pipe((0,Ui.E)("loading"),(0,J.F)()),this.queryRef.valueChanges),So=No=>(0,Ki.H)(this.queryRef.refetch(No));return(0,Jo.T)(()=>void 0===this.queryRef,(0,sr.v)(()=>Ii(Rn)),(0,sr.v)(()=>So(Rn)))})),this.onOpenChange$.subscribe(ut=>{ut&&this.onSearch$.next("")}),this.response$.pipe((0,qt.p)(ut=>void 0!==ut.data),(0,ve.T)(ut=>this.getTypeahedResults(ut)),(0,mn.s)(this)).subscribe(ut=>{this.result$.next(ut),0===ut.length&&this.selectOption$.next([]),this.cdr.detectChanges()}),this.optionTemplates?this.optionTemplates.changes.pipe((0,Gi.E)(this.result$),(0,mn.s)(this)).subscribe(([ut,nn])=>{const Rn=this.getSelectOptions(nn,ut);this.selectOption$.next(Rn),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,mn.s)(this)).subscribe(ut=>{this.selectOption$.next(ut.map(nn=>({label:nn.name,value:nn.id})))})),this.onPopulate$.pipe((0,qt.p)(fo.kP),(0,pe.n)(ut=>pr(this.getTagQueries(ut))),(0,ve.T)(ut=>ut.map(nn=>this.getTagQueryResults(nn))),(0,wn.M)(ut=>{this.result$.next(ut)}),(0,mn.s)(this)).subscribe(ut=>{let nn;if(this.field.props&&this.field.props.isMultiSelect){const Rn=[];ut.forEach(Ii=>Rn.push(Ii?.id||void 0)),nn=Rn}else nn=ut[0].id;this.formControl.setValue(nn),this.selectOpen$.next(!1)}),this.formControl.value){const ut=this.formControl.value;if(Object.keys(ut).length>0&&ut.constructor===Object)return void console.error(`${this.field.id} prepopulated value must be a primitive or array of primitives, value is an object:`,ut);this.onPopulate$.next(ut)}this.onTagClose$.pipe((0,mn.s)(this)).subscribe(ut=>{this.resetField()})}getTagQueries(ne){return"number"==typeof ne&&(ne=[ne]),ne.map(nn=>this.tagQuery.fetch(this.getTagQueryVars(nn),{fetchPolicy:"cache-first"}).pipe((0,qt.p)(Rn=>!!Rn.data)))}resetField(){this.formControl.setValue(void 0),this.result$&&this.result$.next([])}static#e=this.\u0275fac=(()=>{let ne;return function(nn){return(ne||(ne=e.xGo(h)))(nn||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}const qi=function Ur(u){for(var b=arguments.length,c=new Array(b>1?b-1:0),h=1;h[],bs=(u,b,c)=>({$implicit:u,createMsg:b,model:c});function tt(u,b){1&u&&e.nrm(0,"span",5),2&u&&e.Y8G("nzType","loading")}function Ce(u,b){if(1&u&&(e.DNE(0,tt,1,1,"span",4),e.qex(1),e.EFF(2),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.Y8G("ngIf",c.showSpinner),e.R7$(2),e.SpI(" ",c.message," ")}}function Ve(u,b){if(1&u&&(e.nrm(0,"nz-divider"),e.j41(1,"div",6),e.eu8(2,7),e.k0s()),2&u){const c=e.XpG().ngrxLet,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcAddEntity)("ngTemplateOutletContext",e.sMw(2,bs,c.searchStr,c.message,h.cvcAddEntityModel))}}function nt(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-select",3),e.bIt("nzOpenChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onOpenChange$.next(_))})("nzOnSearch",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnSearch.next(_))})("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnModelChange.next(_))}),e.k0s(),e.DNE(2,Ce,3,2,"ng-template",null,0,e.C5r)(4,Ve,3,6,"ng-template",null,1,e.C5r),e.bVm()}if(2&u){const c=b.ngrxLet,h=e.sdS(3),_=e.sdS(5),ne=e.XpG();e.R7$(),e.AVh("ng-dirty",ne.cvcShowError),e.Y8G("nzDropdownMatchSelectWidth",!0)("formControl",ne.cvcFormControl)("formlyAttributes",ne.cvcFormlyAttributes)("nzMode",ne.cvcSelectMode)("nzPlaceHolder",ne.cvcPlaceholder||"Search "+ne.cvcEntityName.plural)("nzCustomTemplate",ne.cvcCustomTemplate||null)("nzOptionHeightPx",30)("nzDisabled",ne.cvcDisabled)("nzLoading",ne.cvcLoading)("nzAllowClear",ne.cvcAllowClear)("nzBorderless",ne.cvcBorderless)("nzSuffixIcon",ne.cvcSuffixIcon)("nzShowArrow",ne.cvcShowArrow)("nzAutoClearSearchValue",ne.cvcAutoClearSearchValue)("nzOptions",ne.cvcOptions||e.lJ4(20,Zo))("nzDropdownRender",c.showAddForm?_:null)("nzNotFoundContent",h)("nzOpen",ne.cvcSelectOpen)}}const Mt={search:(u,b,c)=>`Searching ${u} matching "${b}"...`,searchAll:(u,b,c)=>`Listing all ${u}...`,searchParam:(u,b,c)=>`Searching ${c} ${u} matching "${b}"...`,searchParamAll:(u,b,c)=>`Listing all ${c} ${u}...`,searchEnterQuery:(u,b,c,h)=>`Enter at least ${h} characters to search ${c} ${u}`,searchEnterQueryAll:(u,b,c,h)=>`Enter at least least ${h} characters to search ${u}`,empty:(u,b,c)=>`No ${u} found matching "${b}"`,emptyAll:(u,b,c)=>`No ${u} found.`,emptyParam:(u,b,c)=>`No ${c} ${u} found matching "${b}"`,emptyParamAll:(u,b,c)=>`No ${c} ${u} found`};let Yt=class E8{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=(b,c)=>b.length>this.cvcMinSearchStrLength&&0===c.length,this.cvcOnOpenChange=new e.bkB,this.cvcOnSearch=(new e.bkB).pipe((0,wr.c)(300,ls.E,{leading:!1,trailing:!0}),(0,qr.t)(1)),this.cvcOnModelChange=new e.bkB,this.cvcSelectComponent=new e.bkB,this.messageOptions=Mt,this.onParamName$=new dn.t(void 0),this.onOption$=new dn.t([]),this.onOpenChange$=new dn.t(!1),this.onLoading$=new dn.t(!1),this.notFoundDisplay$=new dn.t({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,mn.s)(this)).subscribe(b=>{this.cvcOnOpenChange.next(b)}),(0,uo.z)([this.onOpenChange$,this.cvcOnSearch,this.onParamName$,this.onOption$,this.onLoading$.pipe((0,J.F)())]).pipe((0,ve.T)(([b,c,h,_,ne])=>{const ut=this.cvcEntityName.plural,nn=this.cvcMinSearchStrLength,Rn=null!==this.cvcAddEntity,Ii=!1===this.previousIsOpen&&!0===b;if(this.previousIsOpen=b,Ii)return this.getSelectInitDisplay(ut,nn,h);if(ne&&c.length>=nn){const So=this.cvcAddEntityBehavior(c,this.cvcResults||[]);return this.getSelectSearchingDisplay(c,ut,nn,h,Rn,So)}return b&&!ne&&c.length>=nn&&0===_.length?this.getSelectEmptyDisplay(c,ut,h,Rn):{searchStr:"",showSpinner:!1,showAddForm:Rn&&this.cvcAddEntityBehavior(c,this.cvcResults||[]),message:""}}),(0,wn.M)(b=>{this.notFoundDisplay$.next(b)}),(0,mn.s)(this)).subscribe()):console.error(`${this.cvcEntityName.singular} entity-select could not gain reference to its nzSelectComponent, aborting AfterViewInit()`)}getSelectInitDisplay(b,c,h){let _=this.messageOptions.searchAll,ne=!1;return 0==c?(ne=!0,_=void 0===h?this.messageOptions.searchAll:this.messageOptions.searchParamAll):c>0&&(ne=!1,_=void 0===h?this.messageOptions.searchEnterQueryAll:this.messageOptions.searchEnterQuery),{message:_(b,"",h,c),showSpinner:ne,showAddForm:!1,searchStr:""}}getSelectSearchingDisplay(b,c,h,_,ne,ut=!1){let nn=this.messageOptions.searchAll;return nn=void 0===_?b.length>0?this.messageOptions.search:this.messageOptions.searchAll:b.length>0?this.messageOptions.searchParam:this.messageOptions.searchParamAll,{message:nn(c,b,_),showSpinner:!0,showAddForm:ne&&ut,searchStr:b}}getSelectEmptyDisplay(b,c,h,_){let ne=this.messageOptions.empty;return ne=void 0===h?b.length>0?this.messageOptions.empty:this.messageOptions.emptyAll:b.length>0?this.messageOptions.emptyParam:this.messageOptions.emptyParamAll,{message:ne(c,b,h),showSpinner:!1,showAddForm:_,searchStr:b}}ngOnChanges(b){if(b.cvcParamName&&this.onParamName$.next(b.cvcParamName.currentValue),b.cvcOptions){const c=b.cvcOptions.currentValue;void 0!==c&&this.onOption$.next(c)}if(b.cvcLoading){const c=b.cvcLoading.currentValue;void 0!==c&&this.onLoading$.next(c)}}static#e=this.\u0275fac=function(c){return new(c||E8)};static#t=this.\u0275cmp=e.VBU({type:E8,selectors:[["cvc-entity-select"]],viewQuery:function(c,h){if(1&c&&e.GBs(Qe.WI,5),2&c){let _;e.mGM(_=e.lsd())&&(h.nzSelectComponent=_.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.OA$],decls:1,vars:1,consts:[["searchMessages",""],["addForm",""],[4,"ngrxLet"],["nzShowSearch","","nzServerSearch","","nzAllowClear","",3,"nzOpenChange","nzOnSearch","ngModelChange","nzDropdownMatchSelectWidth","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzLoading","nzAllowClear","nzBorderless","nzSuffixIcon","nzShowArrow","nzAutoClearSearchValue","nzOptions","nzDropdownRender","nzNotFoundContent","nzOpen"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"add-form-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,h){1&c&&e.DNE(0,nt,6,21,"ng-container",2),2&c&&e.Y8G("ngrxLet",h.notFoundDisplay$)},dependencies:[M.bT,M.T3,t.BC,t.l_,yi.Nj,m.ch,Z.Dn,Qe.WI,Jn.j],styles:["nz-divider[_ngcontent-%COMP%]{margin:4px 0 0}.add-form-container[_ngcontent-%COMP%]{padding:4px 8px 8px}"],changeDetection:0})};Yt=(0,bi.Cg)([(0,mn.d)({arrayName:"stateSubscriptions"})],Yt);var tn=a(2688);const on=["optionTemplates"];function bn(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const c=e.XpG(2).$implicit;e.R7$(3),e.JRh(c.description)}}function Mn(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,bn,4,1,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.code),e.R7$(2),e.Y8G("ngIf",c.description)}}function Bn(u,b){1&u&&(e.qex(0),e.DNE(1,Mn,4,2,"ng-template",null,1,e.C5r),e.bVm())}function xn(u,b){if(1&u&&(e.qex(0),e.DNE(1,Bn,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Kn(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","AcmgCode:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const qn=qi(Mi(),Lo());let pi=(()=>{class u extends qn{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,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:(ne,ut)=>`Select an ${ne} Type to search associated ACMG Code(s)`}},this.placeholder$=new dn.t(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,uo.z)([this.onRequiresAcmgCode$,this.onEntityType$]).pipe((0,J.F)(),(0,mn.s)(this)).subscribe(([c,h])=>{!c&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,lo.u)(h)} ${this.state.entityName} does not include associated ACMG/AMP Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(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&&!h&&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,h){return c.map((_,ne)=>(console.log(_),{label:h.get(ne)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.Fd4),e.rXU(Zn.Mvn),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-acmg-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(on,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,xn,3,3,"ng-container",3)(7,Kn,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresAcmgCode$&&!e.bMT(4,18,_.onRequiresAcmgCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,yi.Nj,hn.LH,qe.Di,Gn.s,Yt,tn.b,yi.L9],changeDetection:0})}return u})();const ei={types:[{name:"acmg-code-select",wrappers:["form-field"],component:pi,defaultOptions:{props:{label:"ACMG/AMP Code"}}},{name:"acmg-code-multi-select",wrappers:["form-field"],component:pi,defaultOptions:{props:{isMultiSelect:!0,label:"ACMG/AMP Code(s)"}}}]};let li=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(ei),Cn.$,Xn.Zw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Gn.T,En,jn,me.i,Ft._,zi]})}return u})(),ai=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(),Z.Y3,K.PQ,Qe.DH,F.j,me.i]})}return u})();function mi(){return function(b){return(()=>{class h extends b{configureEnumSelectField(ne){this.selectOption$=new dn.t([]),this.onTagClose$=new V.B,this.optionEnum$=ne.optionEnum$,this.changeDetectorRef=ne.changeDetectorRef,this.optionTemplate$=ne.optionTemplate$?ne.optionTemplate$:new dn.t([]),this.optionTemplate$.pipe((0,Gi.E)(this.optionEnum$),(0,mn.s)(this)).subscribe(ut=>{this.emitSelectOptions(ut)}),this.onTagClose$.pipe((0,mn.s)(this)).subscribe(ut=>{this.resetField()})}emitSelectOptions([ne,ut]){this.selectOption$.next(ut.map((nn,Rn)=>({label:ne[Rn]||nn,value:nn}))),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)}static#e=this.\u0275fac=(()=>{let ne;return function(nn){return(ne||(ne=e.xGo(h)))(nn||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}var Ei=a(1018);const Xi=()=>[];let Si=(()=>{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.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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,"nzFocus","ngModelChange","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzOptions","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzAllowClear"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("nzFocus",function(){return _.cvcOnFocus.next()})("ngModelChange",function(ut){return _.cvcModelChange&&_.cvcModelChange(_.cvcFormlyAttributes,ut)}),e.k0s()),2&h&&(e.AVh("ng-dirty",_.cvcShowError),e.Y8G("formControl",_.cvcFormControl)("formlyAttributes",_.cvcFormlyAttributes)("nzMode",_.cvcSelectMode)("nzPlaceHolder",_.cvcPlaceholder?_.cvcPlaceholder:"Select Value")("nzOptions",_.cvcOptions?_.cvcOptions:e.lJ4(11,Xi))("nzCustomTemplate",_.cvcCustomTemplate?_.cvcCustomTemplate:null)("nzOptionHeightPx",30)("nzDisabled",_.cvcDisabled)("nzAllowClear",_.cvcAllowClear))},dependencies:[t.BC,t.l_,m.ch,Qe.WI],changeDetection:0})}return u})();var no=a(463);const ao=["optionTemplates"];function ro(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()(),e.j41(4,"span",4),e.EFF(5),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG();e.R7$(2),e.JRh(e.i5U(3,2,c,"verbose")),e.R7$(3),e.JRh(h.descriptionForCategory(c))}}function An(u,b){1&u&&(e.qex(0),e.DNE(1,ro,6,5,"ng-template",null,1,e.C5r),e.bVm())}function _o(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",8),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()()}if(2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(e.i5U(3,1,c.nzValue,"verbose"))}}function qo(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.nI1(2,"formatAmp"),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,c.nzValue,"verbose")," ")}}function Gr(u,b){if(1&u&&(e.j41(0,"div",5),e.DNE(1,_o,4,4,"nz-tag",6)(2,qo,3,4,"ng-container",7),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!c.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",c.props.isMultiSelect)}}const Do=new Map([[Zn.XJ.Na,"Not Applicable"],[Zn.XJ.TierILevelA,"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines."],[Zn.XJ.TierILevelB,"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field."],[Zn.XJ.TierIiLevelC,"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus."],[Zn.XJ.TierIiLevelD,"Biomarkers that show plausible therapeutic significance based on preclinical studies."],[Zn.XJ.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."],[Zn.XJ.TierIv,"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation."]]),Qo=qi(Mi(),mi());let Mr=(()=>{class u extends Qo{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 dn.t([])}descriptionForCategory(c){return Do.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,Ei.KF)(Zn.XJ).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,ve.T)(c=>c.map(h=>h))),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,mn.s)(this)).subscribe(c=>{c?(this.props.extraType=void 0,this.props.description=Do.get(c)):this.props.description="Select an Assertion Type to select its AMP Category"}))}configurePlaceholder(){this.placeholder$=new dn.t(this.props.placeholder),this.onRequiresAmpCategory$&&this.onRequiresAmpCategory$.pipe((0,J.F)(),(0,mn.s)(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()})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-amp-category-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(ao,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,An,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Gr,3,2,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.ampCategoryEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,qe.Di,Si,yi.L9,no.E]})}return u})();const vr={types:[{name:"amp-category-select",wrappers:["form-field"],component:Mr},{name:"amp-category-multi-select",wrappers:["form-field"],component:Mr,defaultOptions:{props:{label:"AMP/ASCO/CAP Categories",isMultiSelect:!0}}}]};let Sr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(vr),Gn.T,qe.kT,me.i,En,ai]})}return u})();const fr=qi(Mi()),$s={types:[{name:"checkbox",wrappers:["form-field"],component:(()=>{class u extends fr{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}ngAfterViewInit(){console.log(this.props)}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ut){return _.props.change&&_.props.change(_.field,ut)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,dt.$g,m.ch],changeDetection:0})}return u})()}]};let xr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,dt.IJ,m.qy.forChild($s),En]})}return u})();function Uo(u,b){if(1&u){const c=e.RV6();e.j41(0,"input",2),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.k0s()}if(2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("type",c.props.type||"text")("formlyAttributes",c.field)}}function es(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number",3),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.k0s()}if(2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("formlyAttributes",c.field)}}const zo=qi(Mi());let Es=(()=>{class u extends zo{constructor(){super()}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes","ngModelChange",4,"ngIf","ngIfElse"],["nz-input","",3,"ngModelChange","formControl","type","formlyAttributes"],[3,"ngModelChange","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,Uo,1,3,"input",1)(1,es,1,2,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf","number"!==_.props.type)("ngIfElse",ne)}},dependencies:[M.bT,t.me,t.BC,t.l_,F.Sy,_e,m.ch],encapsulation:2,changeDetection:0})}return u})(),us=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,F.j,ht,m.qy.forChild({types:[{name:"base-input",component:Es,wrappers:["form-field"]},{name:"base-string",extends:"base-input"},{name:"base-number",extends:"base-input",defaultOptions:{props:{type:"number"}}},{name:"base-integer",extends:"base-input",defaultOptions:{props:{type:"number"}}}]})]})}return u})();function Ze(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function Fn(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,Ze,1,3,"nz-option",5),e.k0s()),2&u){const c=e.XpG().$implicit;e.Y8G("nzLabel",c.label),e.R7$(),e.Y8G("ngForOf",c.group)}}function de(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=e.XpG().$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function We(u,b){if(1&u&&(e.qex(0),e.DNE(1,Fn,2,2,"nz-option-group",2)(2,de,1,3,"nz-option",3),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",c.group),e.R7$(),e.Y8G("ngIf",!c.group)}}const ct=qi(Mi());let sn=(()=>{class u extends ct{constructor(){super(),this.defaultOptions={props:{isMultiSelect:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(ut){return _.props.change&&_.props.change(_.field,ut)}),e.DNE(1,We,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&h&&(e.AVh("ng-dirty",_.showError),e.Y8G("nzPlaceHolder",void 0!==_.props.placeholder?_.props.placeholder:null)("formControl",_.formControl)("formlyAttributes",_.field)("nzMode",_.props.isMultiSelect?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,_.props.options,_.field))))},dependencies:[M.Sq,M.bT,t.BC,t.l_,Qe.ld,Qe.WI,Qe.uX,m.ch,M.Jj,Vt],encapsulation:2,changeDetection:0})}return u})(),Vn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,Qe.DH,w,Ge,m.qy.forChild({types:[{name:"base-select",component:sn,wrappers:["form-field"]},{name:"enum",extends:"select"},{name:"base-multi-select",extends:"level-select",defaultOptions:{props:{isMultiSelect:!0}}}]})]})}return u})();const Ln=qi(Mi()),ki={types:[{name:"base-textarea",component:(()=>{class u extends Ln{constructor(){super(),this.defaultOptions={props:{autosize:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:5,consts:[["nz-input","",3,"nzAutosize","rows","formControl","placeholder","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"textarea",0),2&h&&e.Y8G("nzAutosize",_.props.autosize)("rows",_.props.rows?_.props.rows:2)("formControl",_.formControl)("placeholder",_.props.placeholder)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,m.ch,F.Sy,F.c9],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let bo=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(ki),F.j,En]})}return u})();var hi=a(6389),ho=a(5930);const ts={types:[{name:"cvc-cancel-button",component:(()=>{class u extends m.PU{constructor(c){super(),this.location=c}cancelClicked(){this.location.back()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(M.aZ))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-cancel-button"]],features:[e.Vt3],decls:2,vars:0,consts:[["nz-button","","type","button","nzType","default","nzDanger","",1,"cancel-button",3,"click"]],template:function(h,_){1&h&&(e.j41(0,"button",0),e.bIt("click",function(){return _.cancelClicked()}),e.EFF(1," Cancel\n"),e.k0s())},dependencies:[Xn.aO,hi.c,ho.p],styles:[".cancel-button[_ngcontent-%COMP%]{margin-right:10px}"],changeDetection:0})}return u})()}]};let Ne=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(ts),Xn.Zw]})}return u})();const je=["optionTemplates"];function ye(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const c=e.XpG(2).$implicit;e.R7$(3),e.JRh(c.description)}}function pt(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,ye,4,1,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.code),e.R7$(2),e.Y8G("ngIf",c.description)}}function Jt(u,b){1&u&&(e.qex(0),e.DNE(1,pt,4,2,"ng-template",null,1,e.C5r),e.bVm())}function wi(u,b){if(1&u&&(e.qex(0),e.DNE(1,Jt,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Qi(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","ClingenCode:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const xo=qi(Mi(),Lo());let vi=(()=>{class u extends xo{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,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:(ne,ut)=>`Select an ${ne} Type to search associated ClinGen Code(s)`}},this.placeholder$=new dn.t(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,mn.s)(this)).subscribe(c=>{if(c&&Array.isArray(c)&&c.length>1){const h=c.find(_=>this.exclusiveCodes.has(_));h?(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([h])):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,uo.z)([this.onRequiresClingenCode$,this.onEntityType$]).pipe((0,J.F)(),(0,mn.s)(this)).subscribe(([c,h])=>{!c&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,lo.u)(h)} ${this.state.entityName} does not include associated ClinGen/CGC/VICC Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(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&&!h&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(c){return{code:c}}getTypeaheadResultsFn(c){return c.data.clingenCodesTypeahead.forEach(h=>{h.exclusive&&this.exclusiveCodes.add(h.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,h){return c.map((_,ne)=>({label:h.get(ne)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.FZ_),e.rXU(Zn.kp0),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-clingen-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(je,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,wi,3,3,"ng-container",3)(7,Qi,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresClingenCode$&&!e.bMT(4,18,_.onRequiresClingenCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,yi.Nj,hn.LH,qe.Di,Gn.s,Yt,tn.b,yi.L9],changeDetection:0})}return u})();const Fa={types:[{name:"clingen-code-select",wrappers:["form-field"],component:vi,defaultOptions:{props:{label:"ClinGen/CGC/VICC Code"}}},{name:"clingen-code-multi-select",wrappers:["form-field"],component:vi,defaultOptions:{props:{isMultiSelect:!0,label:"ClinGen/CGC/VICC Code(s)"}}}]};let Pc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(Fa),Cn.$,Xn.Zw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Gn.T,En,jn,me.i,Ft._,zi]})}return u})();function ma(u){return(()=>{class c extends u{configureStringTagField(){this.tagLabel$=new V.B,this.onTagClose$=new V.B,this.onTagClose$.pipe((0,mn.s)(this)).subscribe(_=>{this.formControl.setValue(void 0),this.tagLabel$.next(void 0)})}static#e=this.\u0275fac=(()=>{let _;return function(ut){return(_||(_=e.xGo(c)))(ut||c)}})();static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})()}var _r=a(5741);const uc=()=>[8,8];function mo(u,b){if(1&u&&(e.j41(0,"label",5),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzTooltipTitle",c.tooltip),e.R7$(),e.SpI(" ",c.label," ")}}function oa(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",2)(1,"nz-radio-group",3),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.existenceChange$.next(_))}),e.DNE(3,mo,2,3,"label",4),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(2,2,c.existenceModel$)),e.R7$(2),e.Y8G("ngForOf",c.selectOptions)}}function Yr(u,b){if(1&u&&e.nrm(0,"nz-option",8),2&u){const c=b.$implicit;e.Y8G("nzLabel",c)("nzValue",c)("nzHide",!0)}}function Zs(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",2)(1,"nz-select",6),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.DNE(2,Yr,1,3,"nz-option",7),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("formControl",c.formControl)("formlyAttributes",c.field),e.R7$(),e.Y8G("ngForOf",c.formControl.value)}}const Aa=qi(Mi(),ma);let mr=class T8 extends Aa{constructor(b){super(),this.cdr=b,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return",description:"Specify if Clinvar IDs exist, or if they are not applicable for this variant."}},this.clinvarIds$=new dn.t([]),this.values=new Set,this.showClinvarIdEntry$=new dn.t(!1),this.selectModel=void 0,this.selectOptions=[{value:void 0,label:"Unspecified",tooltip:"Existence of ClinVar IDs for this variant is unspecified."},{value:_r.cD.NotApplicable,label:"Not Applicable",tooltip:"ClinVar IDs are not applicable to this variant."},{value:_r.cD.NoneFound,label:"Were Not Found",tooltip:"A search was performed, and no ClinVar IDs were found."},{value:_r.cD.Found,label:"Were Found",tooltip:"A search was performed, and ClinVar IDs were found (enter IDs below)."}],this.existenceChange$=new V.B,this.existenceModel$=new dn.t(void 0),this.showTagSelect$=new dn.t(!1)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField(),this.onValueChange$.pipe((0,mn.s)(this)).subscribe(b=>{void 0===b?(this.existenceModel$.next(void 0),this.showTagSelect$.next(!1)):b.includes("NONE FOUND")||b.includes("NA")?(b.includes("NONE FOUND")?this.existenceModel$.next(_r.cD.NoneFound):b.includes("NA")&&this.existenceModel$.next(_r.cD.NotApplicable),this.showTagSelect$.next(!1)):(this.existenceModel$.next(_r.cD.Found),this.showTagSelect$.next(!0))}),this.existenceChange$.pipe((0,ve.T)(b=>{const c=this.formControl.value;void 0===b&&void 0!==this.formControl.value?this.formControl.setValue(void 0):b!==_r.cD.NoneFound||c.includes("NONE FOUND")?b!==_r.cD.NotApplicable||c.includes("NA")?b===_r.cD.Found&&(void 0===c||c.includes("NONE FOUND")||c.includes("NA"))&&this.formControl.setValue([]):this.formControl.setValue(["NA"]):this.formControl.setValue(["NONE FOUND"])}),(0,mn.s)(this)).subscribe()}static#e=this.\u0275fac=function(c){return new(c||T8)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:T8,selectors:[["cvc-clinvar-input"]],features:[e.Vt3],decls:4,vars:6,consts:[[3,"nzGutter"],["nzSpan","24",4,"ngIf"],["nzSpan","24"],["nzName","existence",3,"ngModelChange","ngModel"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle"],["nzMode","tags","nzPlaceHolder","Enter ClinVar IDs","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"]],template:function(c,h){1&c&&(e.j41(0,"nz-row",0),e.DNE(1,oa,4,4,"nz-col",1)(2,Zs,3,3,"nz-col",1),e.nI1(3,"ngrxPush"),e.k0s()),2&c&&(e.Y8G("nzGutter",e.lJ4(5,uc)),e.R7$(),e.Y8G("ngIf",h.props.showExistenceOptions),e.R7$(),e.Y8G("ngIf",e.bMT(3,3,h.showTagSelect$)))},dependencies:[M.Sq,M.bT,t.BC,t.vS,t.l_,m.ch,L.Uq,L.e,ue.lx,ue.i3,Qe.ld,Qe.WI,hn.LH,yi.L9],changeDetection:0})};mr=(0,bi.Cg)([(0,mn.d)()],mr);const ga={types:[{name:"clinvar-input",wrappers:["form-field"],component:mr,defaultOptions:{props:{isRepeatItem:!1,showExistenceOptions:!1}}},{name:"clinvar-multi-input",wrappers:["form-field"],component:mr,defaultOptions:{props:{isRepeatItem:!0,showExistenceOptions:!0}}}]};let Hs=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,m.qy.forChild(ga),K.PQ,L.f3,F.j,ue.Sw,Qe.DH,hn.Qt,me.i]})}return u})();var ds=a(6697);const dc=qi(Mi()),Wr={types:[{name:"fda-companion-test-checkbox",wrappers:["form-field"],component:(()=>{class u extends dc{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,qt.p)(c=>c),(0,ds.s)(1),(0,mn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.fields.fdaRegulatoryApproval$.pipe((0,mn.s)(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))})}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-companion-test-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ut){return _.props.change&&_.props.change(_.field,ut)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,dt.$g,m.ch],changeDetection:0})}return u})()}]};let xi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,dt.IJ,m.qy.forChild(Wr),En]})}return u})();const js=qi(Mi()),hs={types:[{name:"fda-regulatory-approval-checkbox",wrappers:["form-field"],component:(()=>{class u extends js{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,qt.p)(c=>c),(0,ds.s)(1),(0,mn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.requires.allowsFdaApproval$.pipe((0,mn.s)(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))})}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-regulatory-approval-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ut){return _.props.change&&_.props.change(_.field,ut)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,dt.$g,m.ch],changeDetection:0})}return u})()}]};let Na=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,dt.IJ,m.qy.forChild(hs),En]})}return u})(),Kr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Gn.T,Z.Y3,hn.Qt,me.i]})}return u})();var va=a(1677),Xr=a(1555);const Vu=u=>({"tag-icon-large":u});function pl(u,b){}function Lu(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",5)(1,"nz-tag",6),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnClose.next(_))}),e.DNE(2,pl,0,0,"ng-template",7),e.k0s()()}if(2&u){const c=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode",c.cvcMode)("nzTooltipTitle",c.cvcTooltip)("nzChecked",c.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function yr(u,b){}function Ts(u,b){if(1&u&&(e.j41(0,"span",8)(1,"nz-tag",9),e.DNE(2,yr,0,0,"ng-template",7),e.k0s()()),2&u){const c=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","checkable")("nzChecked",c.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function ka(u,b){}function sa(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",10)(1,"nz-tag",11),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnClose.next(_))}),e.DNE(2,ka,0,0,"ng-template",7),e.k0s()()}if(2&u){e.XpG();const c=e.sdS(5);e.R7$(),e.Y8G("nzMode","closeable"),e.R7$(),e.Y8G("ngTemplateOutlet",c)}}function Fc(u,b){}function zs(u,b){if(1&u&&(e.j41(0,"span",12)(1,"nz-tag",13),e.DNE(2,Fc,0,0,"ng-template",7),e.k0s()()),2&u){const c=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","default")("nzTooltipTitle",c.cvcTooltip),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Va(u,b){if(1&u&&(e.nrm(0,"i",16),e.nI1(1,"evidenceEnumDisplay")),2&u){const c=e.XpG(2);e.Y8G("nzType",!0===c.cvcShowIcon?e.i5U(1,5,c.cvcAttrValue,"icon-name"):c.cvcShowIcon)("nzTwotoneColor",c.cvcIconColor)("nzTheme",c.cvcIconTheme)("ngClass",e.eq3(8,Vu,!0===c.cvcZoomIcon)),e.BMQ("style","color: "+c.cvcIconColor,e.$dS)}}function hc(u,b){if(1&u&&(e.nrm(0,"span",17),e.nI1(1,"evidenceEnumDisplay"),e.nI1(2,"highlightTypeahead")),2&u){const c=e.XpG(2);e.Y8G("innerHtml",e.i5U(2,4,e.i5U(1,1,c.cvcAttrValue,"display-string"===c.cvcShowLabel?c.cvcShowLabel:"short-string"),c.cvcEmphasize),e.npT)}}function Vi(u,b){if(1&u&&e.DNE(0,Va,2,10,"i",14)(1,hc,3,7,"span",15),2&u){const c=e.XpG();e.Y8G("ngIf",c.cvcAttrValue&&c.cvcShowIcon),e.R7$(),e.Y8G("ngIf",c.cvcShowLabel)}}let eo=(()=>{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.bkB}ngOnChanges(c){c.cvcContext&&"compact"===c.cvcContext.currentValue&&(this.cvcShowIcon=!0,this.cvcShowLabel=!1,this.cvcZoomIcon=!0)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-attribute-tag"]],hostVars:2,hostBindings:function(h,_){2&h&&e.AVh("full-width",!0===_.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.OA$],decls:6,vars:4,consts:[["tagContent",""],["class","default",4,"ngIf"],["class","menu-item",4,"ngIf"],["class","select-item",4,"ngIf"],["class","compact",4,"ngIf"],[1,"default"],["nz-tooltip","",3,"nzOnClose","nzMode","nzTooltipTitle","nzChecked"],[3,"ngTemplateOutlet"],[1,"menu-item"],[3,"nzMode","nzChecked"],[1,"select-item"],[3,"nzOnClose","nzMode"],[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(h,_){1&h&&e.DNE(0,Lu,3,4,"span",1)(1,Ts,3,3,"span",2)(2,sa,3,2,"span",3)(3,zs,3,3,"span",4)(4,Vi,2,2,"ng-template",null,0,e.C5r),2&h&&(e.Y8G("ngIf","default"===_.cvcContext),e.R7$(),e.Y8G("ngIf","menu-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","select-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","compact"===_.cvcContext))},dependencies:[M.YU,M.bT,M.T3,Gn.s,Z.Dn,hn.LH,va.pW,Xr.M],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.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})}return u})();const pc=["optionTemplates"];function aa(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function Ac(u,b){1&u&&(e.qex(0),e.DNE(1,aa,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Rc(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Ms={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:"Supports 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"}}},Us=qi(Mi(),mi()),La={types:[{name:"direction-select",wrappers:["form-field"],component:(()=>{class u extends Us{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Direction",labelFn:h=>`${h} Direction`,required:!0,isMultiSelect:!1,placeholder:"Select Entity Direction",placeholderFn:(h,_)=>`Select ${_?_+" ":""}${h} Direction`,requireTypePromptFn:h=>`Select ${h} Type to select its Direction`}},this.directionEnum$=new dn.t([])}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 dn.t("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 dn.t(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,mn.s)(this)).subscribe(h=>{this.directionEnum$.next(h)}),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,ve.T)(h=>h.map(_=>_)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onEntityType$=this.state.fields[c],this.onEntityType$.pipe((0,oo.i)("add"===this.options.formState.formMode?0:1),(0,mn.s)(this)).subscribe(h=>{h?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName,(0,lo.u)(h)))):(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,Gi.E)(this.onEntityType$),(0,mn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.extraType="description",this.props.description=Ms[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${c} to populate Direction options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-direction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(pc,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Ac,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Rc,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.directionEnum$))}},dependencies:[M.Sq,Si,eo,yi.L9],changeDetection:0})}return u})()}]};let fc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(La),En,ai,Kr]})}return u})();var Go=a(5316),Vr=a(1226),ca=a(4222),Ss=a(8721);const Ba=()=>[0,0];function mc(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.JRh(c.successMessage)}}function G(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.SpI(' "',c.model.name,'" ')}}let it=class z8{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.addDiseaseMutator=new Vr.E(this.errors),this.fields=[{key:"doid",type:"base-input",props:{label:"DOID",keydown:(h,_)=>{"Tab"===_.code&&_.stopPropagation()}}},{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,mn.s)(this)).subscribe(h=>{h&&(this.model.name=h)}),this.onSubmit$.pipe((0,mn.s)(this)).subscribe(h=>{console.log("disease-quick-add form model submitted.",h),this.submitDisease(h)})}submitDisease(b){b.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.")}static#e=this.\u0275fac=function(c){return new(c||z8)(e.rXU(Zn.tas),e.rXU(ca.N))};static#t=this.\u0275cmp=e.VBU({type:z8,selectors:[["cvc-disease-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:11,vars:11,consts:[["success",""],["entityType","Disease",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],[4,"ngIf"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",1),e.DNE(1,mc,1,1,"ng-template",null,0,e.C5r),e.j41(3,"form",2),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(4,"nz-row",3)(5,"nz-col",4)(6,"formly-form",5),e.bIt("modelChange",function(ut){return e.eBV(_),e.Njj(h.model=ut)}),e.k0s()(),e.j41(7,"nz-col",4)(8,"button",6),e.EFF(9," Add Disease\xa0 "),e.DNE(10,G,2,1,"ng-container",7),e.k0s()()()()()}if(2&c){const _=e.sdS(2);e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,Ba)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(2),e.Y8G("ngIf",h.model.name)}},dependencies:[M.bT,t.qT,t.cb,t.j4,m.aF,Xn.aO,hi.c,ho.p,L.Uq,L.e,K.CA,Ss.G],encapsulation:2,changeDetection:0})};it=(0,bi.Cg)([(0,mn.d)()],it);const Te=["optionTemplates"];function Ye(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"DOID:"),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,c.doid,h),e.npT)}}function Nt(u,b){if(1&u&&(e.qex(0),e.EFF(1," \xa0 "),e.j41(2,"strong"),e.EFF(3,"Aliases: "),e.k0s(),e.j41(4,"em"),e.nrm(5,"span",10),e.nI1(6,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(5),e.Y8G("nzTooltipTitle",c.diseaseAliases.join(", "))("innerHtml",e.i5U(6,2,c.diseaseAliases.join(", "),h),e.npT)}}function gn(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,Ye,5,4,"ng-container",8)(3,Nt,7,5,"ng-container",8),e.EFF(4),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.doid),e.R7$(),e.Y8G("ngIf",c.diseaseAliases.length>0),e.R7$(),e.SpI(" ",h," ")}}function Pn(u,b){1&u&&(e.qex(0),e.DNE(1,gn,5,6,"ng-template",null,2,e.C5r),e.bVm())}function di(u,b){if(1&u&&(e.qex(0),e.DNE(1,Pn,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function yo(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Disease:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Yi(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-disease-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const Eo=qi(Mi(),Lo());let Yn=(()=>{class u extends Eo{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,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:(ne,ut)=>`Select an ${ne} Type to select an associated Disease${ut?"(s)":""}`,addFormTitle:"Add a New Disease"}},this.placeholder$=new dn.t(void 0),this.selectOpen$=new Ni.m}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,qt.p)(c=>c),(0,ds.s)(1),(0,mn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}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,uo.z)([this.onRequiresDisease$,this.onEntityType$,this.onValueChange$]).pipe((0,mn.s)(this)).subscribe(([c,h,_])=>{this.onStateUpdates(c,h,_)})}}onStateUpdates(c,h,_){!c&&h&&(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,lo.u)(h)} ${this.state.entityName} does not include associated diseases`,this.props.extraType="prompt",this.cdr.markForCheck()),this.props.requireType&&!h&&(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!==_||this.props.requireType&&!h&&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,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.O3Q),e.rXU(Zn.BOs),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-disease-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Te,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addDisease",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcAddEntity","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[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,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcSelectComponent",function(nn){return e.eBV(ne),e.Njj(_.selectComponent=nn)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(7,di,3,3,"ng-container",4)(8,yo,2,3,"ng-template",null,0,e.C5r)(10,Yi,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ne=e.sdS(9),ut=e.sdS(11);e.Y8G("cvcAddEntity",ut)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,14,_.placeholder$))("cvcResults",e.bMT(2,16,_.result$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresDisease$&&!e.bMT(4,20,_.onRequiresDisease$))("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,yi.Nj,hn.LH,qe.Di,Yt,tn.b,it,yi.L9,Xr.M],changeDetection:0})}return u})();const Io={types:[{name:"disease-select",wrappers:["form-field"],component:Yn,defaultOptions:{props:{label:"Disease"}}},{name:"disease-multi-select",wrappers:["form-field"],component:Yn,defaultOptions:{props:{isMultiSelect:!0,label:"Diseases"}}}]};let Wi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(Io),Cn.$,Xn.Zw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Gn.T,Go.P,En,jn,me.i,Ft._]})}return u})();const Po=["optionTemplates"];function Qr(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function Pr(u,b){1&u&&(e.qex(0),e.DNE(1,Qr,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Ds(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ps={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."},Lr=qi(Mi(),mi()),ms={types:[{name:"type-select",wrappers:["form-field"],component:(()=>{class u extends Lr{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 dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(c=>c),(0,ds.s)(1),(0,mn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.onValueChange$.pipe((0,mn.s)(this)).subscribe(c=>{c?(this.props.description=ps[c],this.props.extraType="description",this.field.formControl.markAsTouched()):(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,mn.s)(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,ve.T)(c=>c.map(h=>h))),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})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Po,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,Pr,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,Ds,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ne)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.typeEnums$))}},dependencies:[M.Sq,eo,Si,yi.L9],changeDetection:0})}return u})()}]};let gc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(ms),En,Kr,ai]})}return u})();var Os=a(9214);let vc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,qe.kT]})}return u})();var Yo=a(5703),ns=a(2602),to=a(9247),_a=a(2816),Is=a(152),is=a(1661),Bu=a(9869);const j1={isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},_c=u=>void 0!==u.sort,Jr=u=>void 0!==u.filter,kc={description:Zn.NVO.Description,disease:Zn.NVO.DiseaseName,evidenceDirection:Zn.NVO.EvidenceDirection,evidenceLevel:Zn.NVO.EvidenceLevel,evidenceRating:Zn.NVO.EvidenceRating,evidenceType:Zn.NVO.EvidenceType,id:Zn.NVO.Id,significance:Zn.NVO.Significance,status:Zn.NVO.Status,variantOrigin:Zn.NVO.VariantOrigin},la={molecularProfile:"molecularProfileName",disease:"diseaseName",therapies:"therapyName",evidenceItem:"id"},ua=["selected","id"];class Vc{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:b=>b?+b.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:{disabled:!0},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,Ei.KF)(Zn.qld))}},{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,Ei.KF)(Zn.M1P))}},{key:"evidenceLevel",label:"EL",tooltip:"Evidence Level",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(Zn.iHU))}},{key:"evidenceDirection",label:"ED",tooltip:"Evidence Direction",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(Zn.$Ni))}},{key:"significance",label:"SI",tooltip:"Significance",type:"enum-tag",align:"center",width:"40px",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(Zn.Vue))}},{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(b=>({value:b,text:`${b} stars`}))}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(b,c){return b.getValues().map(_=>({text:(0,lo.u)(_),value:_,byDefault:c===_}))}configureColumnStreams(b){return b.forEach(c=>{const h=c;if(_c(h)&&(h.sort.changes=new dn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),Jr(h)){const _=h.filter.options.find(ne=>ne.byDefault)?.value;h.filter.changes=new dn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}var ws=a(2033);const xs=(u,b,c)=>({$implicit:u,config:b,emphasize:c});function Zl(u,b){1&u&&e.eu8(0)}function Lc(u,b){if(1&u&&(e.qex(0),e.j41(1,"span",1),e.DNE(2,Zl,1,0,"ng-container",2),e.k0s(),e.bVm()),2&u){const c=b.$implicit,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcTagTemplate)("ngTemplateOutletContext",e.sMw(2,xs,c,h.config,null==h.config?null:h.config.emphasize))}}let Gs=class M8{set cvcTagListConfig(b){!b||!b.tagList||!b.tag||(this.config=b,this.setEntities(b.tagList,b.tag))}constructor(){this.entities=[]}setEntities(b,c){this.entities=b&&0!==b.length&&0!==c.maxTags?b:[]}static#e=this.\u0275fac=function(c){return new(c||M8)};static#t=this.\u0275cmp=e.VBU({type:M8,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(c,h){1&c&&e.DNE(0,Lc,3,6,"ng-container",0),2&c&&e.Y8G("ngForOf",h.entities)},dependencies:[M.Sq,M.T3],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{display:inline-block;margin-bottom:-4px}.tag-container[_ngcontent-%COMP%]{display:inline-block;margin-bottom:4px}"],changeDetection:0})};Gs=(0,bi.Cg)([(0,mn.d)()],Gs);var ml=a(3075),ya=a(4137);const gl=(u,b,c,h,_)=>({tagList:u,tag:b,showPopover:c,status:h,emphasize:_});function Bc(u,b){if(1&u&&(e.nrm(0,"span",7),e.nI1(1,"typenameToIcon"),e.nI1(2,"entityColor")),2&u){const c=b.$implicit;e.Y8G("nzType",e.bMT(1,2,c.__typename))("nzTwotoneColor",e.bMT(2,4,c.__typename))}}function gs(u,b){if(1&u&&(e.qex(0),e.DNE(1,Bc,3,6,"span",6),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",c.entities)}}function Ca(u,b){if(1&u&&(e.j41(0,"span",8)(1,"strong"),e.EFF(2),e.k0s()(),e.nrm(3,"span",7),e.nI1(4,"typenameToIcon"),e.nI1(5,"entityColor")),2&u){const c=e.XpG();e.R7$(2),e.JRh(c.entities.length),e.R7$(),e.Y8G("nzType",e.bMT(4,3,c.entities[0].__typename))("nzTwotoneColor",e.bMT(5,5,c.entities[0].__typename))}}function Hu(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag-list",11),2&u){const c=e.XpG(2);e.Y8G("cvcTagTemplate",c.cvcTagTemplate)("cvcTagListConfig",e.s1E(2,gl,c.entities,c.config.tag,c.config.showPopover,c.config.status,c.config.emphasize))}}function U1(u,b){1&u&&e.EFF(0," Invalid config specified for entity-tag-list. ")}function vs(u,b){if(1&u&&(e.j41(0,"div",9),e.DNE(1,Hu,1,8,"cvc-entity-tag-list",10),e.k0s(),e.DNE(2,U1,1,0,"ng-template",null,2,e.C5r)),2&u){const c=e.sdS(3),h=e.XpG();e.R7$(),e.Y8G("ngIf",h.config)("ngIfElse",c)}}let ql=(()=>{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:[]}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-entity-collection-tag"]],inputs:{cvcCollectionTagConfig:"cvcCollectionTagConfig",cvcTagTemplate:"cvcTagTemplate",cvcShowMaxIcons:"cvcShowMaxIcons",cvcShowFullLabels:"cvcShowFullLabels"},decls:9,vars:3,consts:[["showCount",""],["tagListPopover",""],["noConfig",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-typography","","nzType","secondary",1,"plus-sign"],[4,"ngIf","ngIfElse"],["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"],[3,"cvcTagTemplate","cvcTagListConfig"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-tag",3)(1,"span",4)(2,"strong"),e.EFF(3,"+"),e.k0s()(),e.DNE(4,gs,2,1,"ng-container",5)(5,Ca,6,7,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(7,vs,4,2,"ng-template",null,1,e.C5r)),2&h){const ne=e.sdS(6),ut=e.sdS(8);e.Y8G("nzPopoverContent",ut),e.R7$(4),e.Y8G("ngIf",_.entities.length<=_.cvcShowMaxIcons)("ngIfElse",ne)}},dependencies:[M.Sq,M.bT,Gn.s,qe.Di,_i.L_,Z.Dn,Gs,ml.R,ya.o],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})}return u})();var $c=a(3296);function P(u,b){if(1&u&&(e.j41(0,"span",1),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&u){const c=b.ngIf;e.R7$(),e.Lme(" ",e.bMT(2,2,c.edgeCount)," of ",e.bMT(3,4,c.filteredCount)," displayed\n")}}let ae=(()=>{class u{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,qt.p)(c=>null!=c.totalCount||null!=c.filteredCount),(0,ve.T)(c=>{const h=c.filteredCount,_=c.totalCount,ne=c.edges;return null==h&&null==_&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:ne.length,filteredCount:h??_}}))}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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(h,_){1&h&&(e.DNE(0,P,4,6,"span",0),e.nI1(1,"ngrxPush")),2&h&&e.Y8G("ngIf",e.bMT(1,1,_.tableCountsInfo$))},dependencies:[M.bT,qe.Di,M.QX,yi.L9],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0})}return u})();var k=a(1594),le=a(3946);let $e=class S8{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,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,k.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,wr.c)(this.onScrollThrottleTime,ls.E,{leading:!0,trailing:!0}),(0,wn.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Is.B)(this.onScrollDebounceTime),(0,mn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,ve.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,le.J)(),(0,qt.p)(([b,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(b){const c=this.cvcTableScrollerQueryRef;if(!b&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&c){const[h,_,ne]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ne)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ne})}}scrollToIndex(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(c){return new(c||S8)(e.rXU(to.CP))};static#t=this.\u0275dir=e.FsC({type:S8,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function ft(u,b){1&u&&e.nrm(0,"span",8)}function kt(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG();return _.value="",e.Njj(ne.cvcModelChange.next(null))}),e.k0s()}}function yn(u,b){if(1&u&&e.DNE(0,ft,1,0,"span",6)(1,kt,1,0,"span",7),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function ln(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,yn,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function ri(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let c;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(c=h.cvcPlaceholder)&&void 0!==c?c:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}$e=(0,bi.Cg)([(0,mn.d)()],$e);let Fi=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,ln,6,3,"ng-container",3)(1,ri,3,4,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ne)}},dependencies:[M.bT,t.me,t.BC,t.vS,hi.c,Z.Dn,F.Sy,F.tg,F.vN,_e,et],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"]})}return u})();var Ai=a(1868);function Fo(u,b){if(1&u){const c=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.cvcOptionChange.next({key:ne.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const c=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===c.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let os=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,Fo,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[M.Sq,eo,Xn.aO,hi.c,ho.p,Ai.jS,Ai.CU,Z.Dn],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_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})}return u})(),Cr=(()=>{class u{transform(c){return null!=c&&Array.isArray(c)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"isArray",type:u,pure:!0})}return u})(),Bi=(()=>{class u{transform(c,h){return h(c)?c:void 0}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"guardType",type:u,pure:!0})}return u})();const Mo=()=>[],er=()=>({x:"800px",y:"200px"}),qs=(u,b,c)=>({$implicit:u,config:b,emphasize:c}),tr=(u,b,c,h,_)=>({tagList:u,tag:b,showPopover:c,status:h,emphasize:_}),vl=()=>[6,6],_l=u=>({$implicit:u});function yl(u,b){if(1&u&&e.nrm(0,"th",28),2&u){let c;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Bd(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",29),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(2,"span",30),e.EFF(3),e.k0s()()}if(2&u){let c,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort&&!_.sort.disabled)("nzSortFn",!_.sort.disabled)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function $d(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function eu(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Hd(u,b){if(1&u&&(e.qex(0),e.DNE(1,yl,1,5,"th",25),e.nI1(2,"guardType"),e.DNE(3,Bd,4,12,"th",26),e.nI1(4,"guardType"),e.DNE(5,$d,2,7,"th",27),e.nI1(6,"guardType"),e.DNE(7,eu,2,7,"th",27),e.nI1(8,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,c,h.colGuards.isTextTagCol))}}function Hc(u,b){if(1&u&&(e.qex(0),e.DNE(1,Hd,9,16,"ng-container",24),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function ju(u,b){if(1&u&&(e.j41(0,"th",36),e.EFF(1," \xa0 "),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function jc(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-table-filter-input",39),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf,ut=e.XpG().ngIf;return e.Njj(ne.changes.next(ne.transform?{key:ut.key,value:ne.transform(_)}:{key:ut.key,value:_}))}),e.k0s()}if(2&u){const c=e.XpG().ngIf;e.Y8G("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function G1(u,b){if(1&u&&(e.j41(0,"th",37),e.DNE(1,jc,1,3,"cvc-table-filter-input",38),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function Cl(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",40,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(3,"nz-filter-trigger",41,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",42),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-enum-filter-menu",43),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ne=e.eBV(c).ngIf,ut=e.sdS(4);return ne.filter.changes.next(_),e.Njj(ut.nzVisible=!1)}),e.k0s()()()}if(2&u){let c,h,_;const ne=b.ngIf,ut=e.sdS(8);e.Y8G("nzColumnKey",ne.key)("nzWidth",ne.width)("nzAlign",null!==(c=ne.align)&&void 0!==c?c:"left")("nzLeft",ne.fixedLeft||!1)("nzRight",ne.fixedRight||!1)("nzShowSort",!ne.sort.disabled)("nzSortFn",!ne.sort.disabled)("nzSortOrder",(null==(h=e.bMT(2,15,ne.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ne.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",ut)("nzActive",null!==(null==(_=e.bMT(5,17,ne.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ne.key)("cvcFilterOptions",ne.filter.options)("cvcOption",e.bMT(10,19,ne.filter.changes))}}function Uu(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",44,4)(2,"nz-filter-trigger",41),e.nI1(3,"ngrxPush"),e.nrm(4,"span",45),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",46)(8,"div",47)(9,"cvc-table-filter-input",48),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.filter.changes.next({key:ne.key,value:_}))}),e.k0s()()()()()}if(2&u){let c,h;const _=b.ngIf,ne=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ne)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function bl(u,b){if(1&u&&(e.qex(0),e.DNE(1,ju,2,5,"th",32),e.nI1(2,"guardType"),e.DNE(3,G1,2,6,"th",33),e.nI1(4,"guardType"),e.DNE(5,Cl,11,21,"th",34),e.nI1(6,"guardType"),e.DNE(7,Uu,10,12,"th",35),e.nI1(8,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,c,h.colGuards.isTextTagCol))}}function tu(u,b){if(1&u&&(e.qex(0),e.DNE(1,bl,9,16,"ng-container",24),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function nu(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",21),e.DNE(2,Hc,2,1,"ng-container",22),e.k0s(),e.j41(3,"tr",23),e.DNE(4,tu,2,1,"ng-container",22),e.k0s()()),2&u){const c=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",c),e.R7$(2),e.Y8G("ngForOf",c)}}function ba(u,b){if(1&u){const c=e.RV6();e.j41(0,"td",53),e.bIt("nzCheckedChange",function(_){e.eBV(c);const ne=e.XpG(3).$implicit,ut=e.XpG(2);return e.Njj(ut.onRowSelected$.next({id:ne.id,selected:_}))}),e.k0s()}if(2&u){let c;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Gu(u,b){1&u&&e.eu8(0)}function El(u,b){if(1&u&&(e.qex(0),e.DNE(1,Gu,1,0,"ng-container",56),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let c;const h=e.XpG().ngIf,_=e.XpG().ngIf,ne=e.sdS(3),ut=e.sdS(5),nn=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,nn[h])?ne:ut)("ngTemplateOutletContext",e.sMw(6,qs,nn[h],_,null==(c=e.bMT(3,4,_.filter.changes))?null:c.value))}}function Uc(u,b){if(1&u&&(e.qex(0),e.DNE(1,El,4,10,"ng-container",55),e.bVm()),2&u){const c=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[c])("ngIfElse",h)}}function Yu(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",58),e.bVm()),2&u){const c=e.XpG(2),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const ut=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,tr,h.slice(_.tag.maxTags,h.length),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ne))("cvcTagTemplate",ut)("cvcShowFullLabels",!0)}}function Tl(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",57),e.DNE(2,Yu,2,9,"ng-container",24),e.bVm()),2&u){const c=e.XpG(),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const ut=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",ut)("cvcTagListConfig",e.s1E(3,tr,h.slice(0,_.tag.maxTags),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ne)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function Gc(u,b){if(1&u&&e.DNE(0,Tl,3,9,"ng-container",55),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",c.length>0)("ngIfElse",h)}}function _s(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",59),2&u){let c;const h=b.$implicit,_=b.config,ne=b.emphasize,ut=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ne)("cvcShowPopover",!ut.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(c=null==_.tag?null:_.tag.fullWidth)&&void 0!==c&&c)}}function Ha(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"not-applicable")}}function iu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,Uc,2,2,"ng-container",24)(2,Gc,1,2,"ng-template",null,8,e.C5r)(4,_s,1,6,"ng-template",null,9,e.C5r)(6,Ha,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function Wu(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",62),e.nI1(1,"evidenceEnumDisplay")),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[c.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[c.key]))}}function Ku(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",63),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function ou(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,Wu,2,5,"cvc-attribute-tag",61)(2,Ku,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function ja(u,b){if(1&u&&(e.j41(0,"nz-tag",65),e.nrm(1,"span",66),e.k0s()),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[c.key])}}function Xu(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Qu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,ja,2,1,"nz-tag",64)(2,Xu,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function Ju(u,b){if(1&u&&(e.qex(0),e.DNE(1,ba,1,4,"td",51),e.nI1(2,"guardType"),e.DNE(3,iu,8,4,"td",52),e.nI1(4,"guardType"),e.DNE(5,ou,4,5,"td",52),e.nI1(6,"guardType"),e.DNE(7,Qu,4,5,"td",52),e.nI1(8,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,c,h.colGuards.isTextTagCol))}}function zl(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ju,9,16,"ng-container",24),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function ru(u,b){if(1&u&&(e.j41(0,"tr",50),e.DNE(1,zl,2,1,"ng-container",22),e.k0s()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",c)}}function su(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,ru,2,1,"ng-template",49),e.k0s())}function Yc(u,b){1&u&&e.nrm(0,"span",71)}function Ua(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",72),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG().filter;return _.value="",e.Njj(ne.changes.next({key:ne.key,value:null}))}),e.k0s()}}function Zu(u,b){if(1&u&&e.DNE(0,Yc,1,0,"span",69)(1,Ua,1,0,"span",70),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function qu(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",67)(2,"input",68,14),e.bIt("nzFilterChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()(),e.DNE(4,Zu,2,2,"ng-template",null,15,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function gr(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",73)(1,"nz-input-number",74,14),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()()}if(2&u){const c=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function au(u,b){if(1&u&&e.DNE(0,qu,6,3,"ng-container",55)(1,gr,3,4,"ng-template",null,13,e.C5r),2&u){const c=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",h)}}function cu(u,b){1&u&&(e.j41(0,"nz-row",75)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect EIDs"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,vl))}function Wc(u,b){1&u&&(e.j41(0,"nz-tag",85),e.nrm(1,"i",86),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function Y1(u,b){if(1&u&&(e.j41(0,"nz-tag",88),e.nrm(1,"span",89),e.j41(2,"span",90),e.EFF(3),e.k0s()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,_l,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function e1(u,b){if(1&u&&(e.j41(0,"nz-tag",88)(1,"span",90)(2,"span",91)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,_l,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function t1(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.R7$(),e.SpI(" ",c.message," ")}}function n1(u,b){1&u&&e.DNE(0,t1,2,1,"div",22),2&u&&e.Y8G("ngForOf",b.$implicit)}function o1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Y1,4,5,"nz-tag",87)(2,e1,5,5,"nz-tag",87)(3,n1,1,1,"ng-template",null,17,e.C5r),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",c.query),e.R7$(),e.Y8G("ngIf",c.network)}}function r1(u,b){if(1&u&&(e.qex(0),e.DNE(1,o1,5,2,"ng-container",24),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c)}}function Ml(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",92)(1,"nz-checkbox-group",93),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,c.setPreference$))}}function Kc(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-row",75)(1,"nz-col",76),e.DNE(2,Wc,4,0,"nz-tag",77),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",78),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",76),e.DNE(8,r1,2,1,"ng-container",20),e.k0s(),e.j41(9,"nz-col",76),e.nrm(10,"cvc-table-counts2",79),e.k0s(),e.j41(11,"nz-col",80)(12,"nz-button-group")(13,"button",81),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",82),e.k0s(),e.j41(15,"button",83),e.nrm(16,"span",84),e.k0s()(),e.DNE(17,Ml,3,3,"ng-template",null,16,e.C5r),e.k0s()()}if(2&u){const c=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",c)("nzPopoverTrigger","click")}}let Ao=class D8{constructor(b,c,h){this.queryGQL=b,this.apollo=c,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=j1,this.onFetchMore$=new V.B,this.onPreferenceChange$=new dn.t([]),this.onResetFilter$=new V.B,this.onRowSelected$=new V.B,this.onScroll$=new dn.t("stop"),this.onSetSelectedRow$=new dn.t(new Set),this.queryError$=new V.B,this.queryRequest$=new V.B,this.queryResult$=new Ni.m(1),this.isFetchMore$=new dn.t(!1),this.noMoreRows$=new dn.t(!1),this.scrollToIndex$=new V.B,this.tableConfig=new Vc;const _=(0,uo.z)(this.tableConfig.getFilterStreams()),ne=(0,uo.z)(this.tableConfig.getSortStreams()).pipe((0,qt.p)(ut=>ut.filter(nn=>null!==nn.value).length<=1));this.refetch$=(0,uo.z)([ne,_]).pipe((0,ve.T)(([ut,nn])=>({query:"refetch",sort:ut,filter:nn}))),this.fetchMore$=this.onFetchMore$.pipe((0,ve.T)(ut=>({query:"fetchMore",fetchMore:{...ut}}))),(0,oe.h)(this.refetch$,this.fetchMore$).pipe((0,Is.B)(50),(0,mn.s)(this)).subscribe(ut=>{const nn=this.getQueryVars(ut);this.queryRef?(this.queryError$.next({}),"refetch"===ut.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(nn).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:nn}).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(nn),this.queryRef.valueChanges.pipe((0,mn.s)(this)).subscribe(Rn=>{this.queryResult$.next(Rn),(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))}),this.loading$=this.queryResult$.pipe((0,Ui.E)("loading"),(0,J.F)()),this.connection$=this.queryResult$.pipe((0,Ui.E)("data","evidenceItems"),(0,qt.p)(fo.kP)),this.pageInfo$=this.connection$.pipe((0,Ui.E)("pageInfo"),(0,qt.p)(fo.kP)),this.row$=(0,uo.z)([this.connection$.pipe((0,Ui.E)("edges"),(0,qt.p)(fo.kP),(0,ve.T)(ut=>ut.map(nn=>nn.node))),this.onSetSelectedRow$]).pipe((0,ve.T)(([ut,nn])=>ut.map(Rn=>{if(Rn)return{...Rn,evidenceItem:{__typename:"EvidenceItem",id:Rn.id,name:Rn.name,link:Rn.link,status:Rn.status},selected:nn.has(Rn.id)}}))),this.col$=new dn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,ve.T)(ut=>this.getColPrefsFromTableConfig(ut))),this.onPreferenceChange$.pipe((0,Gi.E)(this.col$),(0,ve.T)(([ut,nn])=>this.getTableConfigFromColPrefs(ut,nn)),(0,mn.s)(this)).subscribe(ut=>{this.col$.next(ut)}),this.onSetTableFilter$=new dn.t([]),this.onSetTableFilter$.pipe((0,mn.s)(this)).subscribe(ut=>{const nn=this.col$.getValue();ut.forEach(Rn=>{const Ii=nn.find(So=>So.key===Rn.key);if(void 0!==Ii.filter.inputType){const So=Ii.filter.options[0];if(null===Rn.value)return Ii.filter.options=[{...So,value:null}],void Ii.filter.changes.next(Rn);if(Array.isArray(Rn.value)&&0===Rn.value.length)return Ii.filter.options=[{...So,value:null}],void Ii.filter.changes.next({...Rn,value:null});let No;Array.isArray(Rn.value)?Rn.value.length>0&&(No=Rn.value[0]):No=Rn.value;const sc=Ii.filter.typename;if(!sc||!No)return void console.error(`evidence-manager requires column config '${Ii.key}' provide a typename for cvcTablePrefs Input to set its filter`);const dl=this.getEntityName(sc,No);if(!dl)return;Ii.filter.options=[{...So,value:dl}],Ii.filter.changes.next({...Rn,value:dl})}else Jr(Ii)&&Ii.filter.changes.next(Rn)})}),this.onSetTablePref$=new dn.t([]),this.onSetTablePref$.pipe((0,Gi.E)(this.setPreference$),(0,ve.T)(([ut,nn])=>{const Rn=[];return ut.forEach(Ii=>{let So=nn.find(No=>No.value===Ii.value);So?Rn.push({...So,...Ii}):console.warn(`evidence-manager onSetTablePref$ received updated preferences for column '${Ii.value}', but a column with that key could not be found.`)}),Rn}),(0,mn.s)(this)).subscribe(ut=>{this.onPreferenceChange$.next(ut)}),this.onRowSelected$.pipe((0,Gi.E)(this.onSetSelectedRow$),(0,mn.s)(this)).subscribe(([ut,nn])=>{ut.selected?nn.add(ut.id):nn.delete(ut.id),this.onSetSelectedRow$.next(nn),this.cvcSelectedIdsChange.next(Array.from(nn))}),this.onScroll$.pipe((0,ve.T)(ut=>"stop"!==ut),(0,J.F)(),(0,mn.s)(this)).subscribe(ut=>{this.isScrolling=ut,this.cdr.markForCheck()}),this.onScroll$.pipe((0,qt.p)(ut=>"bottom"===ut),(0,Gi.E)(this.pageInfo$),(0,ve.T)(([ut,nn])=>nn),(0,mn.s)(this)).subscribe(ut=>{ut.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,Gi.E)((0,jo.of)(this.tableConfig.get())),(0,mn.s)(this)).subscribe(([b,c])=>{const h=[];c.forEach(_=>{if(_c(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),Jr(_)){const ne=_.filter.options.find(ut=>1==ut.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ne||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const c=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...c,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ne=>null!==ne.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?Zn.UEL.Asc:Zn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let c={};return b.filter&&b.filter.forEach(h=>{c[la[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),c}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,c){return c.forEach(h=>{if(ua.find(ne=>ne===h.key))return;const _=b.find(ne=>ne.value===h.key);_&&(h.hidden=!_?.checked)}),[...c]}getColPrefsFromTableConfig(b){let c=[];return b.forEach(h=>{ua.find(_=>_===h.key)||c.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),c}getSortColumnFromColKey(b){return kc[b]}getEntityName(b,c){const h={id:`${b}:${c}`,fragment:Bu.J1` - fragment Linkable${b}Entity on ${b} { - id - name - link - }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`evidence-manager onSetTableFilter$ could not find cached entity ${b}:${c} to populate input filter`)}trackByIndex(b,c){return c?.id}ngOnChanges(b){if(b.cvcTableSettings){const c=b.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(b.cvcSelectedIds){const c=b.cvcSelectedIds.currentValue,h=new Set;void 0!==c&&c.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(c){return new(c||D8)(e.rXU(Zn.BaG),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:D8,selectors:[["cvc-evidence-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[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,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["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,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[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"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["cvcDisplayMode","small",3,"cvcEmptyCategory"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[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"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["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,"ngModelChange","ngModel"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-card",18)(1,"nz-table",19,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(ut){return e.eBV(_),e.Njj(h.onScroll$.next(ut))})("cvcTableScrollerOnFetch",function(ut){return e.eBV(_),e.Njj(h.onFetchMore$.next(ut))}),e.DNE(8,nu,5,2,"thead",20)(9,su,2,0,"tbody",20),e.k0s()(),e.DNE(10,au,3,2,"ng-template",null,1,e.C5r)(12,cu,4,2,"ng-template",null,2,e.C5r)(14,Kc,19,13,"ng-template",null,3,e.C5r)}if(2&c){const _=e.sdS(13),ne=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ne),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,Mo))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,er))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[M.Sq,M.bT,M.T3,eo,ws.o,ql,Gs,tn.b,$c.M,ae,t.me,t.BC,t.vS,yi.Nj,Xn.aO,Xn.dn,hi.c,ho.p,Yo.cK,dt.Ov,ns.wQ,L.Uq,L.e,Z.Dn,F.Sy,F.tg,F.vN,_e,et,_i.L_,to.CP,to.Cc,to.SO,to._4,to.GM,to.IL,to.aj,to.kt,to.CC,to.OL,to.Kg,to.jc,to.oZ,Gn.s,hn.LH,qe.Di,$e,Fi,os,Cr,va.pW,Bi,yi.L9],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})};Ao=(0,bi.Cg)([(0,mn.d)()],Ao);const ni=["optionTemplates"],Pi=()=>[6,6],cr=(u,b)=>({show:u,hide:b});function Ps(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",10)(1,"cvc-evidence-manager",11),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,2,c.onEid$))("cvcTableSettings",e.bMT(3,4,c.tableSettingsChange$))}}function Or(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",13),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h)}}function Br(u,b){1&u&&(e.qex(0),e.DNE(1,Or,1,3,"ng-template",null,1,e.C5r),e.bVm())}function Ga(u,b){if(1&u&&(e.qex(0),e.DNE(1,Br,3,0,"ng-container",12),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Ro(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",14)(1,"cvc-entity-tag",15),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","EvidenceItem:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const lr=qi(Mi(),Lo());let Fs=(()=>{class u extends lr{constructor(c,h,_,ne){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.apollo=ne,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 Ni.m,this.onShowMgrClick$=new V.B,this.showMgr$=this.onShowMgrClick$.pipe((0,_a.S)((ut,nn)=>!ut,!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}),void 0!==this.formControl.value&&0!==this.formControl.value.length&&this.onEid$.next(this.formControl.value),this.onValueChange$.pipe((0,Gi.E)(this.onEid$),(0,mn.s)(this)).subscribe(([c,h])=>{Array.isArray(c)&&this.onEid$.next(c)})}configureStateConnections(){this.state&&(this.synchronizedFieldToColMap.forEach((c,h)=>{const _=this.state.fields[`${h}$`];_&&this.synchronizedFields$.push(_.pipe((0,ve.T)(ne=>({key:h,value:ne??null}))))}),this.requiredFieldToColMap.forEach((c,h)=>{const _=this.state.requires[c];_&&this.synchronizedRequired$.push(_.pipe((0,ve.T)(ne=>({key:h,required:ne}))))}),this.onFieldsChange$=(0,uo.z)(this.synchronizedFields$).pipe((0,ve.T)(c=>{const h=[];return c.forEach(_=>{const ne=this.synchronizedFieldToColMap.get(_.key);ne&&h.push({key:ne,value:_.value})}),h})),this.onRequiredChange$=(0,uo.z)(this.synchronizedRequired$).pipe((0,ve.T)(c=>{const h=[];return c.forEach(_=>{h.push({value:_.key,checked:_.required})}),h})),this.tableSettingsChange$=(0,uo.z)([this.onFieldsChange$,this.onRequiredChange$]).pipe((0,ve.T)(([c,h])=>({filters:c,preferences:h})),(0,Is.B)(100),(0,qr.t)(1)))}getTypeaheadVarsFn(c,h){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,h){return c.map((_,ne)=>({label:h.get(ne)||`EID${_.id}`,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.ZLN),e.rXU(Zn.sZm),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-evidence-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(ni,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:18,vars:36,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"nzGutter"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcMinSearchStrLength","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],["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"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds","cvcTableSettings"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",2)(1,"nz-col",3)(2,"cvc-entity-select",4),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcSelectComponent",function(nn){return e.eBV(ne),e.Njj(_.selectComponent=nn)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()(),e.j41(7,"nz-col",5)(8,"button",6),e.bIt("click",function(){return e.eBV(ne),e.Njj(_.onShowMgrClick$.next())}),e.nrm(9,"span",7),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.EFF(12," Manager "),e.k0s()(),e.DNE(13,Ps,4,6,"nz-col",8),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,Ga,3,3,"ng-container",9)(16,Ro,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(17);e.Y8G("nzGutter",e.lJ4(32,Pi)),e.R7$(2),e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(3,18,_.result$))("cvcOptions",e.bMT(4,20,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngClass",e.l_i(33,cr,e.bMT(10,26,_.showMgr$),!e.bMT(11,28,_.showMgr$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(14,30,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.YU,M.Sq,M.bT,Yt,tn.b,yi.Nj,Xn.aO,hi.c,ho.p,L.Uq,L.e,Z.Dn,Ao,yi.L9],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})}return u})();var Ri=a(7556);let Ea=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,Gn.T,hn.Qt,qe.kT,me.i,Ft._]})}return u})(),Sl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Gn.T,qe.kT,_i.MC,Z.Y3,hn.Qt,me.i,Ea]})}return u})();const Ya={types:[{name:"evidence-select",wrappers:["form-field"],component:Fs},{name:"evidence-multi-select",wrappers:["form-field"],component:Fs,defaultOptions:{props:{label:"Evidence Items",isMultiSelect:!0}}}]};let Wo=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Kr,Ri.F,Sl,jn,Ea,Ft._,Os.y,me.i,vc,m.qy.forChild(Ya),t.YN,Xn.Zw,Yo.Ti,dt.IJ,ns.Cu,K.PQ,L.f3,Z.Y3,F.j,ht,_i.MC,to.$G,Gn.T,hn.Qt,qe.kT]})}return u})();const Ta=()=>[0,0];function Wa(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(2),e.JRh(c.message)}}function Ys(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG(2);e.JRh(c.successMessage)}}function Ka(u,b){if(1&u){const c=e.RV6();e.qex(0),e.DNE(1,Wa,3,1,"ng-container",2),e.j41(2,"cvc-form-submission-status-display",3),e.DNE(3,Ys,1,1,"ng-template",null,0,e.C5r),e.j41(5,"form",4),e.bIt("ngSubmit",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onSubmit$.next(_.model))}),e.j41(6,"nz-row",5)(7,"nz-col",6)(8,"formly-form",7),e.bIt("modelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.model=_)}),e.k0s()()()()(),e.bVm()}if(2&u){const c=e.sdS(4),h=e.XpG();e.R7$(),e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",c),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,Ta)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}}let yc=class O8{set cvcFeatureType(b){b&&this.featureType$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.showForm$=new dn.t(!1),this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.featureType$=new dn.t(void 0),this.formMessageDisplay$=new dn.t({message:"Feature does not exist, create it?"}),this.addFeatureMutator=new Vr.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureType",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Feature"}}],this.featureType$.pipe((0,mn.s)(this)).subscribe(h=>{Object.values(Zn.iby).includes(h)?(this.model.featureType=h,this.showForm$.next(!0)):this.showForm$.next(!1)}),this.searchString$.pipe((0,mn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("feature-quick-add form model submitted.",h),this.submitFeature(h)})}submitFeature(b){b.name&&b.featureType?this.mutationState=this.addFeatureMutator.mutate(this.query,{name:b.name,featureType:b.featureType,organizationId:b.organizationId},{},c=>{console.log("feature-quick-add submit data callback",c),c.createFeature&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{c&&c.createFeature&&this.cvcOnCreate.next({id:c.createFeature.feature.id,new:c.createFeature.new})},1e3))}):console.error("feature-quick-add form submitFeature requires model with valid name and featureType.")}ngOnChanges(b){if(b.cvcFeatureType){const c=b.cvcFeatureType.currentValue;this.featureType$.next(c),this.model={...this.model,featureType:c}}}static#e=this.\u0275fac=function(c){return new(c||O8)(e.rXU(Zn.r$P),e.rXU(ca.N))};static#t=this.\u0275cmp=e.VBU({type:O8,selectors:[["cvc-feature-quick-add-form"]],inputs:{cvcFeatureType:"cvcFeatureType",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:3,consts:[["success",""],[4,"ngIf"],[4,"ngrxLet"],["entityType","Feature",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(c,h){1&c&&(e.DNE(0,Ka,9,10,"ng-container",1),e.nI1(1,"ngrxPush")),2&c&&e.Y8G("ngIf",e.bMT(1,1,h.showForm$))},dependencies:[M.MD,M.bT,t.X1,t.qT,t.cb,t.j4,Go.P,Ss.G,yi.Nj,yi.L9,m.qy,m.aF,L.f3,L.Uq,L.e],encapsulation:2,changeDetection:0})};yc=(0,bi.Cg)([(0,mn.d)()],yc);const da=["optionTemplates"],Xc=()=>[6,6];function ys(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",16),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c.featureAliases.join(", "))("innerHtml",e.i5U(3,2,c.featureAliases.join(", "),h),e.npT)}}function Ti(u,b){1&u&&e.EFF(0,"--")}function Dl(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",13),e.j41(1,"span",14),e.DNE(2,ys,4,5,"ng-container",15)(3,Ti,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const c=e.sdS(4),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(2),e.Y8G("ngIf",h.featureAliases.length>0)("ngIfElse",c)}}function Cc(u,b){1&u&&(e.qex(0),e.DNE(1,Dl,5,5,"ng-template",null,2,e.C5r),e.bVm())}function Ws(u,b){if(1&u&&(e.qex(0),e.DNE(1,Cc,3,0,"ng-container",12),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Qc(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",17)(1,"cvc-entity-tag",18),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Feature:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Xa(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-feature-quick-add-form",19),e.nI1(1,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onSelectOrCreate(_))}),e.k0s()}if(2&u){const c=b.$implicit,h=e.XpG();e.Y8G("cvcSearchString",c)("cvcFeatureType",e.bMT(1,2,h.onFeatureType$))}}const ir=qi(Mi(),Lo());let za=class I8 extends ir{constructor(b,c,h){super(),this.taq=b,this.tq=c,this.changeDetectorRef=h,this.defaultOptions={props:{label:"Feature",placeholder:"Search Features",isMultiSelect:!1,entityName:{singular:"Feature",plural:"Features"},description:"Feature Name",featureType:Zn.Xiu.Gene,canChangeFeatureType:!0}},this.selectedFeatureType=this.props.featureType,this.onFeatureType$=new dn.t(void 0)}ngAfterViewInit(){this.selectedFeatureType=this.props.featureType,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(b){return{queryTerm:b,featureType:this.selectedFeatureType}}getTypeaheadResultsFn(b){return b.data.featureTypeahead}getTagQueryVarsFn(b){return{featureId:b}}getTagQueryResultsFn(b){return b.data.feature}getSelectedItemOptionFn(b){return{value:b.id,label:b.name}}getSelectOptionsFn(b,c){return b.map((h,_)=>({label:c.get(_)||h.name,value:h.id}))}showAddBehavior(b,c){const h=b.toLowerCase();return b.length>=3&&!c.some(_=>_.name.toLowerCase()===h)}onSelectOrCreate(b){this.onPopulate$.next(b.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(b.new)}static#e=this.\u0275fac=function(c){return new(c||I8)(e.rXU(Zn.kq4),e.rXU(Zn.$TJ),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:I8,selectors:[["cvc-feature-select"]],viewQuery:function(c,h){if(1&c&&e.GBs(da,5,e.C4Q),2&c){let _;e.mGM(_=e.lsd())&&(h.optionTemplates=_)}},features:[e.Vt3],decls:15,vars:23,consts:[["selectedTemplate",""],["addFeature",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","100px"],[3,"ngModelChange","disabled","ngModel"],["nzValue","GENE","nzLabel","Gene"],["nzValue","FACTOR","nzLabel","Factor"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcPlaceholder","cvcEntityName","cvcAddEntity","cvcAddEntityBehavior","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureType"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-row",4)(1,"nz-col",5)(2,"nz-select",6),e.mxI("ngModelChange",function(ut){return e.eBV(_),e.DH7(h.selectedFeatureType,ut)||(h.selectedFeatureType=ut),e.Njj(ut)}),e.bIt("ngModelChange",function(ut){return e.eBV(_),e.Njj(h.onFeatureType$.next(ut))}),e.nrm(3,"nz-option",7)(4,"nz-option",8),e.k0s()(),e.j41(5,"nz-col",9)(6,"cvc-entity-select",10),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.bIt("cvcOnSearch",function(ut){return e.eBV(_),e.Njj(h.onSearch$.next(ut))})("cvcOnOpenChange",function(ut){return e.eBV(_),e.Njj(h.onOpenChange$?h.onOpenChange$.next(ut):null)})("cvcSelectComponent",function(ut){return e.eBV(_),e.Njj(h.selectComponent=ut)})("cvcOnModelChange",function(ut){return e.eBV(_),e.Njj(h.props.change&&h.props.change(h.field,ut))}),e.k0s()()(),e.DNE(10,Ws,3,3,"ng-container",11)(11,Qc,2,3,"ng-template",null,0,e.C5r)(13,Xa,2,4,"ng-template",null,1,e.C5r)}if(2&c){const _=e.sdS(12),ne=e.sdS(14);e.Y8G("nzGutter",e.lJ4(22,Xc)),e.R7$(2),e.Y8G("disabled",!h.props.canChangeFeatureType),e.R50("ngModel",h.selectedFeatureType),e.R7$(4),e.Y8G("cvcSelectMode",h.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",_)("cvcFormControl",h.formControl)("cvcFormlyAttributes",h.field)("cvcPlaceholder",h.props.placeholder)("cvcEntityName",h.props.entityName)("cvcAddEntity",ne)("cvcAddEntityBehavior",h.showAddBehavior)("cvcResults",e.bMT(7,16,h.result$))("cvcOptions",e.bMT(8,18,h.selectOption$))("cvcShowError",h.showError)("cvcLoading",e.bMT(9,20,h.isLoading$)),e.R7$(4),e.Y8G("ngrxLet",h.onSearch$)}},dependencies:[M.Sq,M.bT,t.BC,t.vS,yi.Nj,Qe.ld,Qe.WI,hn.LH,L.Uq,L.e,qe.Di,Yt,tn.b,yc,yi.L9,Xr.M],changeDetection:0})};za=(0,bi.Cg)([(0,mn.d)()],za);const br={types:[{name:"feature-select",wrappers:["form-field"],component:za},{name:"feature-multi-select",wrappers:["form-field"],component:za,defaultOptions:{props:{label:"Features",isMultiSelect:!0}}}]};let Fr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,t.YN,m.qy.forChild(br),Cn.$,Xn.Zw,Qe.DH,Z.Y3,F.j,hn.Qt,K.PQ,rt.jl,qe.kT,Gn.T,En,jn,me.i,Ft._,yc]})}return u})();const Ol=["optionTemplates"];function Ma(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function Jc(u,b){1&u&&(e.qex(0),e.DNE(1,Ma,1,1,"ng-template",null,1,e.C5r),e.bVm())}function As(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const bc={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"},s1=qi(Mi(),mi()),Il={types:[{name:"interaction-select",wrappers:["form-field"],component:(()=>{class u extends s1{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"}},this.interactionEnum$=new dn.t([]),this.placeholder$=new dn.t(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,mn.s)(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,ve.T)(c=>c.map(h=>h))),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,mn.s)(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,mn.s)(this)).subscribe(c=>{c?(this.props.description=bc[c],this.props.extraType="description"):(this.props.extraType="prompt",this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's interaction$ to populate select.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-interaction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Ol,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Jc,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,As,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.interactionEnum$))}},dependencies:[M.Sq,Si,eo,yi.L9]})}return u})()}]};let lu=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(Il),En,ai,Kr]})}return u})();var a1=a(8763);const Zc=["optionTemplates"];function K1(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c),e.R7$(),e.SpI(" - ",e.i5U(4,2,c,"evidenceLevelBrief")," ")}}function X1(u,b){1&u&&(e.qex(0),e.DNE(1,K1,5,5,"ng-template",null,1,e.C5r),e.bVm())}function Q1(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()}if(2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,c.nzValue,"evidenceLevelBrief")," ")}}function J1(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,c.nzValue,"evidenceLevelBrief")," ")}}function Z1(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,Q1,5,5,"nz-tag",5)(2,J1,5,5,"ng-container",6),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!c.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",c.props.isMultiSelect)}}const q1=new Map([[Zn.iHU.A,"Evidence shows consensus association in human medicine"],[Zn.iHU.B,"Evidence supports association using clinical trial or other primary patient data"],[Zn.iHU.C,"Evidence supports association using individual case reports from clinical journals"],[Zn.iHU.D,"Evidence supports association using in vivo or in vitro models"],[Zn.iHU.E,"Evidential association is inferential or indirect"]]),ed=qi(Mi(),mi()),td={types:[{name:"level-select",wrappers:["form-field"],component:(()=>{class u extends ed{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Evidence Level",required:!1,isMultiSelect:!1,placeholder:"Select Evidence Level",extraType:"description"}},this.levelEnum$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(c=>c),(0,ds.s)(1),(0,mn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.props.tooltip="Type of study performed to produce the evidence statement",this.levelEnum$.next((0,Ei.KF)(Zn.iHU).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,ve.T)(c=>c.map(h=>h))),this.onValueChange$.pipe((0,mn.s)(this)).subscribe(c=>{c?(this.props.description=q1.get(c),this.field.formControl.markAsTouched()):this.props.description=void 0}),this.configureEnumSelectField({optionEnum$:this.levelEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-level-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Zc,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,X1,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,Z1,3,2,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ne)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.levelEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,Si,yi.L9,a1.k],changeDetection:0})}return u})()},{name:"level-multi-select",extends:"level-select",defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let nd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(td),Gn.T,me.i,En,ai]})}return u})();var id=a(1448),$r=a(2617),wl=a(713);const uu=/\(/g,od=/\)/g,c1=/AND|OR/i,rd=/^(?NOT\s)?\s*#VID(?\d+)$/i,sd=/\s+/,xl="EXPR";function Pl(u){return qc(u.replace(uu," ( ").replace(od," ) "))}function qc(u){let c,b=u.split(sd),h=0,_=[],ne=[],ut=[];for(let rs of b)if("("==rs)0!=h&&_.push(rs),h+=1;else if(")"==rs)if(h-=1,0==h){let ks=qc(_.join(" "));if("errorMessage"in ks)return ks;ut.push(ks),ne.push(xl),_=[]}else _.push(rs);else h>0?_.push(rs):ne.push(rs);const nn={errorType:"trailingBoolean",errorMessage:"Expressions may not end with AND / OR boolean operators."},Rn={errorType:"initialBoolean",errorMessage:"Expressions may not start with AND / OR boolean operators."},Ii={errorType:"multipleBoolean",errorMessage:"Multiple boolean operators found."},So={errorType:"incompleteExpression",errorMessage:"Ensure that parenthetical clauses are closed."};let No=0;for(let rs of ne){let ks=c1.test(rs);if(ks&&0==No)return Rn;if(ks&&No===b.length-1)return nn;if(ks&&!c)c=Fl(rs);else if(ks&&c&&Fl(rs)!==c)return Ii;No++}let sc=[],dl=ne.join(" ").split(c1);for(let rs of dl.map(ks=>ks.trim())){let ks=rd.exec(rs);if(null===ks){if(0===rs.length)return So;if("NOT"===rs||"NOT"===rs.split(" ").pop())return{errorType:"incompleteNOT",errorMessage:"NOT operator must be followed by a valid #VID."};if(rs!==xl)return{errorType:"invalidToken",errorMessage:`Token '${rs}' does not match the expected format.`}}else sc.push({not:!!ks[1],variantId:parseInt(ks[2])})}return{booleanOperator:c,variantComponents:sc,complexComponents:ut}}function Fl(u){return"AND"==u.toUpperCase()?Zn.l76.And:Zn.l76.Or}var l1=a(9350);function du(u,b){const c="object"==typeof b;return new Promise((h,_)=>{let ut,ne=!1;u.subscribe({next:nn=>{ut=nn,ne=!0},error:_,complete:()=>{ne?h(ut):c?h(b.defaultValue):_(new l1.G)}})})}var Al=a(1305),hu=a(9973);let pu=(()=>{class u{constructor(c){this.apollo=c,this.cvcOnSelect=new e.bkB,this.cvcOnVariantSelect=new e.bkB,this.modelChange$=new dn.t(void 0),this.finderState={formLayout:"horizontal",fields:{featureId$:new dn.t(void 0),variantId$:new dn.t(void 0),variantMolecularProfile$:new dn.t(void 0)}},this.form=new t.J3({}),this.model={featureId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["form-row"],props:{formRowOptions:{gutter:[8,0],span:12}},fieldGroup:[{key:"featureId",type:"feature-select",props:{placeholder:"Select MP Feature",hideLabel:!0,showExtra:!1,showErrorTip:!1,required:!0}},{key:"variantId",type:"variant-select",props:{placeholder:"Select MP Variant",hideLabel:!0,required:!0,showExtra:!1,showErrorTip:!1,requireFeature:!0}}]}]}modelChange(c){if(!c?.variantId)return;const h=this.getSelectedVariant(c.variantId);h&&(this.model={featureId:void 0,variantId:void 0},this.cvcOnSelect.next(h.singleVariantMolecularProfile),this.cvcOnVariantSelect.next(h))}getSelectedVariant(c){if(!c)return;const h={id:`Variant:${c}`,fragment:is.J1` - fragment VariantSelectQuery on Variant { - id - name - link - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } - } - `};let _;try{_=this.apollo.client.readFragment(h)}catch(ne){console.error(ne)}if(_)return _;console.error("MpFinderForm could not resolve its Variant from the cache")}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-mp-finder"]],outputs:{cvcOnSelect:"cvcOnSelect",cvcOnVariantSelect:"cvcOnVariantSelect"},decls:2,vars:6,consts:[["nz-form","",3,"formGroup","nzLayout"],[3,"modelChange","form","fields","model","options"]],template:function(h,_){1&h&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(ut){return _.modelChange(ut)}),e.k0s()()),2&h&&(e.Y8G("formGroup",_.form)("nzLayout",_.finderState.formLayout),e.R7$(),e.Y8G("form",_.form)("fields",_.config)("model",_.model)("options",_.options))},dependencies:[t.qT,t.cb,t.j4,m.aF,K.CA],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return u})();function el(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The expression contains open parentheses. Please ensure that all parenthetical expressions are closed. "),e.k0s(),e.bVm())}function u1(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function Ks(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," MP Expressions may not begin with an "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean. Ensure the expression begins with a "),e.j41(9,"strong"),e.EFF(10,"#VID"),e.k0s(),e.EFF(11," or "),e.j41(12,"strong"),e.EFF(13,"NOT #VID"),e.k0s(),e.EFF(14," token. "),e.k0s(),e.bVm())}function fu(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(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.k0s(),e.j41(3,"ul")(4,"li"),e.EFF(5," Variant Tokens - "),e.j41(6,"strong"),e.EFF(7,"#VID"),e.k0s(),e.EFF(8," or "),e.j41(9,"strong"),e.EFF(10,"NOT #VID"),e.k0s(),e.EFF(11,'followed by a valid Variant ID, e.g. "#VID123" '),e.k0s(),e.j41(12,"li"),e.EFF(13,"Boolean Tokens - "),e.j41(14,"strong"),e.EFF(15,"AND"),e.k0s(),e.EFF(16,", "),e.j41(17,"strong"),e.EFF(18,"OR"),e.k0s()(),e.j41(19,"li"),e.EFF(20," Parentheses - "),e.j41(21,"strong"),e.EFF(22,"("),e.k0s(),e.EFF(23," or "),e.j41(24,"strong"),e.EFF(25,")"),e.k0s(),e.EFF(26,", for grouping tokens into nested expressions "),e.k0s()(),e.j41(27,"p")(28,"strong"),e.EFF(29,"Invalid Token"),e.k0s(),e.EFF(30," errors occur if the parser encounters any text or token that does not match those listed above. "),e.k0s(),e.bVm())}function Rl(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," A single expression may not include more than one "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean operator. To construct complex expressions, use parentheses. "),e.k0s(),e.j41(9,"p"),e.EFF(10," For example, the expression "),e.j41(11,"strong"),e.EFF(12,"#VID12 AND #VID2220 OR #VID456"),e.k0s(),e.EFF(13," is invalid, but the expression "),e.j41(14,"strong"),e.EFF(15,"#VID12 AND (#VID2220 OR #VID456)"),e.k0s(),e.EFF(16," is valid. The parentheses create a nested expression independent of the outer expression. "),e.k0s(),e.bVm())}function vo(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function Nl(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(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.k0s(),e.j41(3,"ol")(4,"li"),e.EFF(5,"click the 'Variant' button,"),e.k0s(),e.j41(6,"li"),e.EFF(7,"enter a Gene name, then select a Gene"),e.k0s(),e.j41(8,"li"),e.EFF(9,"enter the Variant name"),e.k0s(),e.j41(10,"li"),e.EFF(11," click the 'Create Variant' button that will appear if name does not match any CIViC Variants "),e.k0s()(),e.bVm())}function Qa(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," An expression may not contain multiple instances of the same Variant. Either remove the variant or change the expression. For example, "),e.j41(3,"strong"),e.EFF(4,"(#VID123 AND #VID456) OR (#VID123 AND #VID789)"),e.k0s(),e.EFF(5,", which is invalid, is logically identical to the valid MP expression "),e.j41(6,"strong"),e.EFF(7,"#VID123 AND (#VID456 OR #VID789)"),e.k0s(),e.EFF(8,". "),e.k0s(),e.bVm())}function Hr(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(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.k0s(),e.j41(3,"blockquote")(4,"strong"),e.EFF(5,"#VID12 AND #VID2220"),e.k0s(),e.nrm(6,"br"),e.j41(7,"strong"),e.EFF(8,"#VID12 OR #VID2220"),e.k0s(),e.nrm(9,"br"),e.j41(10,"strong"),e.EFF(11,"#VID12 AND NOT #VID2220"),e.k0s(),e.nrm(12,"br"),e.j41(13,"strong"),e.EFF(14,"#VID12 AND #VID2220 AND (#VID456 OR #VID123)"),e.k0s(),e.nrm(15,"br"),e.j41(16,"strong"),e.EFF(17,"#VID12 OR #VID2220 OR (NOT #VID456 AND #VID123)"),e.k0s(),e.nrm(18,"br"),e.k0s(),e.j41(19,"p")(20,"strong"),e.EFF(21,"Variant Tokens"),e.k0s(),e.nrm(22,"br"),e.EFF(23," Variant tokens are composed of a CIViC Variant ID prepended with "),e.j41(24,"strong"),e.EFF(25,"#VID"),e.k0s(),e.EFF(26,", and refer to specific CIViC Variants. For example, "),e.j41(27,"strong"),e.EFF(28,"#VID12"),e.k0s(),e.EFF(29," refers to "),e.j41(30,"strong"),e.EFF(31,"BRAF V600E"),e.k0s(),e.EFF(32,"; "),e.j41(33,"strong"),e.EFF(34,"#VID2220"),e.k0s(),e.EFF(35," refers to "),e.j41(36,"strong"),e.EFF(37,"ALK FUSION"),e.k0s(),e.EFF(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.k0s(),e.j41(39,"p")(40,"strong"),e.EFF(41,"Boolean Operators"),e.k0s(),e.nrm(42,"br"),e.EFF(43," MP Expressions with more than a single variant must include boolean operators - "),e.j41(44,"strong"),e.EFF(45,"AND"),e.k0s(),e.EFF(46,", "),e.j41(47,"strong"),e.EFF(48,"OR"),e.k0s(),e.EFF(49,", and "),e.j41(50,"strong"),e.EFF(51,"NOT"),e.k0s(),e.EFF(52," - indicating their relationship. For example, the expression "),e.j41(53,"strong"),e.EFF(54,"#VID12 AND #VID2220"),e.k0s(),e.EFF(55," describes a MP that includes both "),e.j41(56,"strong"),e.EFF(57,"BRAF V600E"),e.k0s(),e.EFF(58," and "),e.j41(59,"strong"),e.EFF(60,"ALK FUSION"),e.k0s(),e.EFF(61,". "),e.k0s(),e.j41(62,"p")(63,"strong"),e.EFF(64,"Parentheses"),e.k0s(),e.nrm(65,"br"),e.EFF(66," Expressions cannot have both "),e.j41(67,"strong"),e.EFF(68,"AND"),e.k0s(),e.EFF(69," and "),e.j41(70,"strong"),e.EFF(71,"OR"),e.k0s(),e.EFF(72," operators within the same expression. To construct complex MPs that require multiple operators, one must use parentheses to create embedded expressions. "),e.k0s(),e.j41(73,"p")(74,"strong"),e.EFF(75,"NOTE:"),e.k0s(),e.EFF(76," Be sure to read the help text provided along with every alert message by hovering over 'Syntax Assistance'. "),e.k0s(),e.bVm())}let Ud=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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(h,_){1&h&&(e.j41(0,"div",0),e.qex(1,1),e.DNE(2,el,3,0,"ng-container",2)(3,u1,6,0,"ng-container",2)(4,Ks,15,0,"ng-container",2)(5,fu,31,0,"ng-container",2)(6,Rl,17,0,"ng-container",2)(7,vo,6,0,"ng-container",2)(8,Nl,12,0,"ng-container",2)(9,Qa,9,0,"ng-container",2)(10,Hr,77,0,"ng-container",3),e.bVm(),e.k0s()),2&h&&(e.R7$(),e.Y8G("ngSwitch",_.cvcErrorType),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","unknownVariant"),e.R7$(),e.Y8G("ngSwitchCase","identicalVariants"))},dependencies:[M.ux,M.e1,M.fG],styles:[".help-content[_ngcontent-%COMP%]{max-width:500px}blockquote[_ngcontent-%COMP%]{margin-left:1em}"]})}return u})();const kl=["expressionEditor"],Sa=()=>[6,8],Cs=u=>({active:u}),Ja=(u,b)=>({$implicit:u,helpContent:b});function mu(u,b){1&u&&e.EFF(0,"Added new Molecular Profile")}function Gd(u,b){if(1&u&&e.nrm(0,"cvc-mp-tag-name",38),2&u){const c=e.XpG().ngrxLet;e.Y8G("nameSegments",c)}}function Rs(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Valid Molecular Profile expressions will be previewed here. "),e.k0s())}function d1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Gd,1,1,"cvc-mp-tag-name",36)(2,Rs,2,0,"span",37),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c),e.R7$(),e.Y8G("ngIf",!c)}}function h1(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help")}function p1(u,b){if(1&u&&(e.j41(0,"button",41),e.nrm(1,"span",42),e.EFF(2," GETTING STARTED "),e.k0s(),e.DNE(3,h1,1,0,"ng-template",null,7,e.C5r)),2&u){const c=e.sdS(4);e.Y8G("nzPopoverContent",c)}}function Ec(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",40),e.DNE(2,p1,5,1,"ng-template",null,6,e.C5r),e.bVm()),2&u){const c=b.ngIf,h=e.sdS(3);e.R7$(),e.Y8G("nzMessage",c)("nzAction",h)}}function Za(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(c);const _=e.XpG(3).ngrxLet,ne=e.XpG();return e.Njj(ne.cvcOnSelect.next(_))}),e.EFF(1," Select this MP "),e.k0s()}}function Vl(u,b){if(1&u&&(e.EFF(0," Molecular Profile "),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," found. ")),2&u){const c=e.XpG(3).ngrxLet;e.R7$(2),e.JRh(c.name)}}function Ll(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,Za,2,0,"ng-template",null,8,e.C5r)(4,Vl,4,1,"ng-template",null,9,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",c)}}function gu(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(c);const _=e.XpG(4);return e.Njj(_.onCreateNewMp$.next())}),e.EFF(1," Create New MP "),e.k0s()}}function Xs(u,b){1&u&&e.EFF(0," Molecular Profile not found, create it? ")}function $i(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,gu,2,0,"ng-template",null,10,e.C5r)(4,Xs,1,0,"ng-template",null,11,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",c)}}function Bl(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ll,6,2,"ng-container",25)(2,$i,6,2,"ng-container",25),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",void 0!==c),e.R7$(),e.Y8G("ngIf",void 0===c)}}function $l(u,b){if(1&u&&(e.qex(0),e.DNE(1,Bl,3,2,"ng-container",25),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!e.bMT(2,1,c.expressionError$)&&!e.bMT(3,3,c.expressionMessage$))}}function f1(u,b){if(1&u&&(e.j41(0,"button",47),e.nrm(1,"span",42),e.EFF(2," SYNTAX ASSISTANCE "),e.k0s()),2&u){const c=e.XpG().helpContent;e.Y8G("nzPopoverContent",c)}}function ad(u,b){if(1&u&&(e.nrm(0,"nz-alert",46),e.DNE(1,f1,3,1,"ng-template",null,12,e.C5r)),2&u){const c=b.$implicit,h=e.sdS(2);e.Y8G("nzMessage",c.errorMessage)("nzAction",h)}}function m1(u,b){1&u&&e.eu8(0)}function cd(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",52)}function ld(u,b){if(1&u&&(e.qex(0),e.DNE(1,m1,1,0,"ng-container",51)(2,cd,1,0,"ng-template",null,13,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Ja,h,c))}}function g1(u,b){1&u&&e.eu8(0)}function qa(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",53)}function ud(u,b){if(1&u&&(e.qex(0),e.DNE(1,g1,1,0,"ng-container",51)(2,qa,1,0,"ng-template",null,14,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Ja,h,c))}}function dd(u,b){1&u&&e.eu8(0)}function hd(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",54)}function pd(u,b){if(1&u&&(e.qex(0),e.DNE(1,dd,1,0,"ng-container",51)(2,hd,1,0,"ng-template",null,15,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Ja,h,c))}}function fd(u,b){1&u&&e.eu8(0)}function Dn(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",55)}function io(u,b){if(1&u&&(e.qex(0),e.DNE(1,fd,1,0,"ng-container",51)(2,Dn,1,0,"ng-template",null,16,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Ja,h,c))}}function v1(u,b){1&u&&e.eu8(0)}function _1(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",56)}function wo(u,b){if(1&u&&(e.qex(0),e.DNE(1,v1,1,0,"ng-container",51)(2,_1,1,0,"ng-template",null,17,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Ja,h,c))}}function tl(u,b){1&u&&e.eu8(0)}function oi(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",57)}function $o(u,b){if(1&u&&(e.qex(0),e.DNE(1,tl,1,0,"ng-container",51)(2,oi,1,0,"ng-template",null,18,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Ja,h,c))}}function ec(u,b){1&u&&e.eu8(0)}function Tc(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",58),e.bVm())}function nl(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",59),e.bVm())}function vu(u,b){if(1&u&&e.DNE(0,Tc,2,0,"ng-container",25)(1,nl,2,0,"ng-container",25),2&u){const c=e.XpG(2).ngIf;e.Y8G("ngIf",c.errorMessage.split(" ").includes("multiple")),e.R7$(),e.Y8G("ngIf",c.errorMessage.split(" ").includes("found."))}}function Hl(u,b){if(1&u&&(e.qex(0),e.DNE(1,ec,1,0,"ng-container",51)(2,vu,2,2,"ng-template",null,19,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Ja,h,c))}}function ea(u,b){if(1&u&&(e.qex(0),e.j41(1,"pre"),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.bVm()),2&u){const c=e.XpG().ngIf;e.R7$(2),e.SpI(" ",e.bMT(3,1,c),"\n ")}}function y1(u,b){if(1&u&&(e.qex(0)(1,48),e.DNE(2,ld,4,5,"ng-container",49)(3,ud,4,5,"ng-container",49)(4,pd,4,5,"ng-container",49)(5,io,4,5,"ng-container",49)(6,wo,4,5,"ng-container",49)(7,$o,4,5,"ng-container",49)(8,Hl,4,5,"ng-container",49)(9,ea,4,3,"ng-container",50),e.bVm()()),2&u){const c=b.ngIf;e.R7$(),e.Y8G("ngSwitch",c.errorType),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","queryError")}}function _u(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Append: "),e.k0s())}function g(u,b){if(1&u&&(e.j41(0,"button",60)(1,"strong"),e.EFF(2,"Variant"),e.k0s()()),2&u){e.XpG();const c=e.sdS(37);e.Y8G("nzPopoverContent",c)}}function Ar(u,b){if(1&u&&(e.j41(0,"button",61)(1,"strong"),e.EFF(2,"NOT Variant"),e.k0s()()),2&u){e.XpG();const c=e.sdS(39);e.Y8G("nzPopoverContent",c)}}function Ae(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function vt(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next("AND"))}),e.j41(1,"strong"),e.EFF(2,"AND"),e.k0s()()}}function ha(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next("OR"))}),e.j41(1,"strong"),e.EFF(2,"OR"),e.k0s()()}}function yu(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function Yd(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next("("))}),e.j41(1,"strong"),e.EFF(2,"("),e.k0s()()}}function ji(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next(")"))}),e.j41(1,"strong"),e.EFF(2,")"),e.k0s()()}}function Wd(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onVariantSelect$.next({variant:_,prependNot:!1}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,Sa)))}function il(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID, prepended with NOT boolean. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onVariantSelect$.next({variant:_,prependNot:!0}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,Sa)))}function C1(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.nrm(3,"cvc-entity-tag",70),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.EFF(5),e.k0s()(),e.j41(6,"ul",71)(7,"nz-list-item-action")(8,"button",72),e.bIt("click",function(){const _=e.eBV(c).$implicit,ne=e.XpG(2);return e.Njj(ne.onSelectExample$.next(_))}),e.EFF(9," Select "),e.k0s()()()()}if(2&u){const c=b.$implicit;e.R7$(3),e.Y8G("cvcLinkableEntity",c.mp),e.R7$(2),e.SpI(" ",c.description," ")}}function zc(u,b){if(1&u&&(e.j41(0,"div",67)(1,"nz-list",68),e.DNE(2,C1,10,2,"nz-list-item",69),e.k0s()()),2&u){const c=e.XpG();e.R7$(2),e.Y8G("ngForOf",c.exampleExpressions)}}let Mc=class w8{constructor(b,c,h,_,ne){this.previewMpGql=b,this.createMolecularProfileGql=c,this.mpEditorPrepopulate=h,this.networkErrorService=_,this.viewerService=ne,this.cvcOnSelect=new e.bkB,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 Vr.E(this.networkErrorService),this.onInputChange$=new dn.t(void 0),this.onAppendInput$=new V.B,this.onVariantSelect$=new V.B,this.onCreateNewMp$=new V.B,this.onSelectExample$=new V.B,this.inputValue$=new dn.t(""),this.expressionError$=new dn.t(void 0),this.expressionHelp$=new dn.t(void 0),this.expressionMessage$=new dn.t(this.expressionMessages.initial),this.expressionSegment$=new V.B,this.existingMp$=new V.B,this.viewer$=this.viewerService.viewer$,this.mostRecentOrg$=this.viewer$.pipe((0,Ui.E)("mostRecentOrg"))}ngAfterViewInit(){this.mostRecentOrg$.pipe((0,mn.s)(this)).subscribe(b=>{this.mostRecentOrgId=b?.id}),this.onInputChange$.pipe((0,Is.B)(250),(0,wn.M)(b=>{b||this.expressionSegment$.next(void 0)}),(0,qt.p)(fo.kP),(0,wn.M)(b=>{0===b.length&&(this.expressionMessage$.next(this.expressionMessages.initial),this.expressionError$.next(void 0))}),(0,qt.p)(b=>b.length>0),(0,qt.p)(b=>" "!==b[b.length-1]),(0,ve.T)(b=>{let c=Pl(b);return"errorMessage"in c?c:this.previewQueryRef.refetch({mpStructure:c})}),(0,mn.s)(this)).subscribe(b=>{if(this.isMpParseError(b)){const c=b;this.expressionMessage$.next(void 0),this.expressionError$.next(c),this.expressionSegment$.next(void 0)}else b.then(({data:h,errors:_})=>{if(_)this.expressionMessage$.next(void 0),this.expressionError$.next({errorType:"queryError",errorMessage:_.map(ne=>ne.message).join("\n")}),this.expressionSegment$.next(void 0);else{this.expressionSegment$.next(h.previewMolecularProfileName.segments),this.expressionMessage$.next(void 0),this.expressionError$.next(void 0);this.existingMp$.next(h.previewMolecularProfileName.existingMolecularProfile||void 0)}})}),this.onAppendInput$.pipe((0,mn.s)(this)).subscribe(b=>{if(this.expressionEditor){const c=this.expressionEditor.nativeElement,_=`${c.value}${/\s+$/.test(b)?b:" "+b}`;c.value=_,this.inputValue$.next(_),this.onInputChange$.next(_)}}),this.onSelectExample$.pipe((0,mn.s)(this)).subscribe(b=>{this.expressionEditor&&(this.expressionEditor.nativeElement.value=b.expression,this.inputValue$.next(b.expression),this.onInputChange$.next(b.expression))}),this.onVariantSelect$.pipe((0,Gi.E)(this.onInputChange$),(0,ve.T)(([b,c])=>{const h=`${b.prependNot?"NOT ":""}#VID${b.variant.id}`;return c&&0!=c.trim().length?`${c.trim()} ${h}`:h}),(0,mn.s)(this)).subscribe(b=>{this.inputValue$.next(b),this.onInputChange$.next(b)}),this.previewQueryRef=this.previewMpGql.watch({}),this.previewMpName$=this.previewQueryRef.valueChanges.pipe((0,Ui.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,ve.T)(b=>b.segments),(0,mn.s)(this)),this.previewMpAlreadyExists$=this.previewQueryRef.valueChanges.pipe((0,Ui.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,ve.T)(b=>b.existingMolecularProfile),(0,mn.s)(this)),this.previewDeprecatedVariants$=this.previewQueryRef.valueChanges.pipe((0,Ui.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,ve.T)(b=>b.deprecatedVariants),(0,mn.s)(this)),this.onCreateNewMp$.pipe((0,Gi.E)(this.onInputChange$),(0,mn.s)(this)).subscribe(([b,c])=>{if(!c||0===c.length)return;let h=Pl(c);"errorMessage"in h||(this.state=this.createMolecularProfileMutator.mutate(this.createMolecularProfileGql,{mpStructure:h,organizationId:this.mostRecentOrgId},{},_=>{setTimeout(()=>{_.createMolecularProfile&&this.cvcOnSelect.next(_.createMolecularProfile.molecularProfile)},1e3)}))})}isMpParseError(b){return void 0!==b.errorMessage}prepopulateMp(b){if(!b)return this.expressionSegment$.next(void 0),this.expressionMessage$.next(this.expressionMessages.initial),void this.inputValue$.next("");du(this.mpEditorPrepopulate.fetch({mpId:b},{fetchPolicy:"cache-first"})).then(({data:c})=>{if(!c?.molecularProfile?.id)return void console.error(`MpExpressionEditor could not fetch MolecularProfile:${b} to prepolate editor fields.`);const h=c.molecularProfile.rawName.replace(/#GID(\d+)/g,"").trim();this.inputValue$.next(h),this.onInputChange$.next(h)})}ngOnChanges(b){b.cvcPrepopulateWithId&&this.prepopulateMp(b.cvcPrepopulateWithId.currentValue)}static#e=this.\u0275fac=function(c){return new(c||w8)(e.rXU(Zn.xKZ),e.rXU(Zn.Avr),e.rXU(Zn.uXu),e.rXU(ca.N),e.rXU(Al.q))};static#t=this.\u0275cmp=e.VBU({type:w8,selectors:[["cvc-mp-expression-editor"]],viewQuery:function(c,h){if(1&c&&e.GBs(kl,5),2&c){let _;e.mGM(_=e.lsd())&&(h.expressionEditor=_.first)}},inputs:{cvcPrepopulateWithId:"cvcPrepopulateWithId"},outputs:{cvcOnSelect:"cvcOnSelect"},features:[e.OA$],decls:42,vars:23,consts:[["success",""],["errorAlert",""],["expressionEditor",""],["appendVariant",""],["appendNotVariant",""],["expressionExamples",""],["messageAction",""],["gettingStartedHelp",""],["selectAction",""],["foundMessage",""],["createAction",""],["createMessage",""],["errorAction",""],["invalidTokenHelp",""],["trailingBooleanHelp",""],["initialBooleanHelp",""],["multipleBooleanHelp",""],["incompleteExpressionHelp",""],["incompleteNOTHelp",""],["queryErrorHelp",""],["entityType","Molecular Profile",3,"mutationState","successMessage"],[3,"nzGutter"],["nzSpan","24"],[1,"expression-preview",3,"ngClass"],[4,"ngrxLet"],[4,"ngIf"],["nz-input","","rows","1","placeholder","Enter or edit a Molecular Expression here.",2,"width","100%",3,"ngModelChange","ngModel"],[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"],[3,"nameSegments",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nameSegments"],["nz-typography","","nzType","secondary"],["nzType","info","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","dashed","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-icon","","nzType","question-circle","nzTheme","fill"],["nzType","success","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"click"],["type","button","nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],["nzType","error","nzShowIcon","",3,"nzMessage","nzAction"],["nz-button","","nzDanger","","nzType","text","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cvcErrorType","invalidToken"],["cvcErrorType","trailingBoolean"],["cvcErrorType","initialBoolean"],["cvcErrorType","multipleBoolean"],["cvcErrorType","incompleteExpression"],["cvcErrorType","incompleteNOT"],["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(c,h){if(1&c){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",20),e.DNE(1,mu,1,0,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",21)(4,"nz-col",22)(5,"div",23),e.nI1(6,"ngrxPush"),e.DNE(7,d1,3,2,"ng-container",24),e.nI1(8,"ngrxPush"),e.k0s()(),e.j41(9,"nz-col",22),e.DNE(10,Ec,4,2,"ng-container",25),e.nI1(11,"ngrxPush"),e.DNE(12,$l,4,5,"ng-container",24)(13,ad,3,2,"ng-template",null,1,e.C5r)(15,y1,10,8,"ng-container",25),e.nI1(16,"ngrxPush"),e.k0s(),e.j41(17,"nz-col",22)(18,"textarea",26,2),e.nI1(20,"ngrxPush"),e.bIt("ngModelChange",function(ut){return e.eBV(_),e.Njj(h.onInputChange$.next(ut))}),e.k0s()()(),e.j41(21,"nz-row",27)(22,"nz-col",28)(23,"button",29),e.EFF(24," Examples "),e.k0s()(),e.j41(25,"nz-col",30)(26,"nz-space"),e.DNE(27,_u,2,0,"span",31)(28,g,3,1,"button",32)(29,Ar,3,1,"button",33)(30,Ae,2,0,"span",34)(31,vt,3,0,"button",35)(32,ha,3,0,"button",35)(33,yu,2,0,"span",34)(34,Yd,3,0,"button",35)(35,ji,3,0,"button",35),e.k0s()(),e.DNE(36,Wd,7,2,"ng-template",null,3,e.C5r)(38,il,7,2,"ng-template",null,4,e.C5r)(40,zc,3,1,"ng-template",null,5,e.C5r),e.k0s()()}if(2&c){const _=e.sdS(2),ne=e.sdS(41);e.Y8G("mutationState",h.state)("successMessage",_),e.R7$(3),e.Y8G("nzGutter",e.lJ4(20,Sa)),e.R7$(2),e.Y8G("ngClass",e.eq3(21,Cs,void 0!==e.bMT(6,10,h.expressionSegment$))),e.R7$(2),e.Y8G("ngrxLet",e.bMT(8,12,h.expressionSegment$)),e.R7$(3),e.Y8G("ngIf",e.bMT(11,14,h.expressionMessage$)),e.R7$(2),e.Y8G("ngrxLet",h.existingMp$),e.R7$(3),e.Y8G("ngIf",e.bMT(16,16,h.expressionError$)),e.R7$(3),e.Y8G("ngModel",e.bMT(20,18,h.inputValue$)),e.R7$(5),e.Y8G("nzPopoverContent",ne)}},dependencies:[M.YU,M.Sq,M.bT,M.T3,M.ux,M.e1,M.fG,t.me,t.BC,t.vS,yi.Nj,Cn.Y,Xn.aO,hi.c,ho.p,Z.Dn,F.Sy,L.Uq,L.e,rn.U5,rn.Dq,qe.Di,_i.L_,$r.eE,$r.lQ,$r.qx,$r.mf,$r.YU,$r.MV,$r.Tc,Ss.G,hu.G,tn.b,pu,Ud,M.TG,yi.L9],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})};Mc=(0,bi.Cg)([(0,mn.d)()],Mc);const Ns=["optionTemplates"],Kd=()=>[8,12],md=(u,b)=>({show:u,hide:b});function b1(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-mp-finder",13),e.bIt("cvcOnSelect",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onMpSelect$.next(_))}),e.k0s()}}function Cu(u,b){1&u&&(e.j41(0,"div",14),e.EFF(1," \xa0 "),e.j41(2,"span",15)(3,"i"),e.EFF(4,"Select or create a Molecular Profile with the expression editor "),e.k0s()()())}function or(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",16)(1,"div",17)(2,"cvc-entity-select",18),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onSearch$.next(_))})("cvcOnModelChange",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.props.change&&ne.props.change(ne.field,_))}),e.k0s()()()}if(2&u){const c=e.XpG(2),h=e.sdS(13);e.R7$(2),e.Y8G("cvcSelectMode",c.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",h)("cvcFormControl",c.formControl)("cvcFormlyAttributes",c.field)("cvcEntityName",c.props.entityName)("cvcPlaceholder",c.props.placeholder)("cvcResults",e.bMT(3,15,c.result$))("cvcDisabled",c.props.disabled)("cvcAllowClear",!1)("cvcOptions",e.bMT(4,17,c.selectOption$))("cvcShowError",c.showError)("cvcLoading",e.bMT(5,19,c.isLoading$))("cvcBorderless",!0)("cvcSuffixIcon",null)("cvcShowArrow",!1)}}function Rr(u,b){if(1&u&&(e.qex(0),e.DNE(1,b1,1,0,"cvc-mp-finder",10)(2,Cu,5,0,"div",11)(3,or,6,21,"div",12),e.bVm()),2&u){const c=b.ngrxLet,h=e.XpG();e.R7$(),e.Y8G("ngIf",c.showFinder&&!h.editorOpen),e.R7$(),e.Y8G("ngIf",h.editorOpen),e.R7$(),e.Y8G("ngIf",c.showSelect&&!h.editorOpen)}}function ol(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",19)(1,"cvc-mp-expression-editor",20),e.nI1(2,"ngrxPush"),e.bIt("cvcOnSelect",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onMpSelect$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcPrepopulateWithId",e.bMT(2,1,c.onMpId$))}}function Xd(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",25),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,c.molecularProfileAliases.join(", "),h),e.npT)}}function jr(u,b){1&u&&e.EFF(0,"--")}function rl(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",22),e.j41(1,"span",23),e.EFF(2," Aliases: "),e.DNE(3,Xd,4,4,"ng-container",24)(4,jr,1,0,"ng-template",null,2,e.C5r),e.k0s()),2&u){const c=e.sdS(5),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(3),e.Y8G("ngIf",h.molecularProfileAliases.length>0)("ngIfElse",c)}}function Ko(u,b){1&u&&(e.qex(0),e.DNE(1,rl,6,5,"ng-template",null,1,e.C5r),e.bVm())}function Qd(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ko,3,0,"ng-container",21),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Jd(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",26)(1,"cvc-entity-tag",27),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","MolecularProfile:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Sc=qi(Mi(),Lo());let E1=(()=>{class u extends Sc{constructor(c,h,_,ne){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.apollo=ne,this.editorOpen=!1,this.defaultOptions={props:{label:"Molecular Profile",placeholder:"Search Molecular Profiles",tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated assertion.",isMultiSelect:!1,description:"Select a Gene and Variant to specify a simple Molecular Profile.",entityName:{singular:"Molecular Profile",plural:"Molecular Profiles"},minSearchStrLength:1}},this.onMpSelect$=new dn.t(void 0),this.onMpId$=new Ni.m,this.onShowExpClick$=new V.B,this.showExp$=this.onShowExpClick$.pipe((0,_a.S)((ut,nn)=>!ut,!1),(0,wn.M)(ut=>this.editorOpen=ut)),this.selectDisplay$=new dn.t({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,mn.s)(this)).subscribe(c=>{const h=void 0!==c;this.selectDisplay$.next({showFinder:!h,showSelect:h}),this.onMpId$.next(c),this.props.description=c?void 0:this.initialDescription}),this.onMpSelect$.pipe((0,mn.s)(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.field.formControl.markAsTouched()):this.selectDisplay$.next({showFinder:!0,showSelect:!1})})}configureStateConnections(){}getTypeaheadVarsFn(c,h){return{name:c,geneId:h}}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,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.nRJ),e.rXU(Zn.OLK),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(Ns,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:14,vars:16,consts:[["selectedTemplate",""],["optionTemplates",""],["noAliases",""],[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"],[3,"cvcOnSelect",4,"ngIf"],["class","editor-message",4,"ngIf"],["class","select-container",4,"ngIf"],[3,"cvcOnSelect"],[1,"editor-message"],["nz-typography","","nzEllipsis","","nzType","secondary"],[1,"select-container"],[1,"limit-select-width"],[3,"cvcOnSearch","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcAllowClear","cvcOptions","cvcShowError","cvcLoading","cvcBorderless","cvcSuffixIcon","cvcShowArrow"],["nzSpan","24",1,"editor-drawer"],[3,"cvcOnSelect","cvcPrepopulateWithId"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",3)(1,"nz-col",4),e.DNE(2,Rr,4,3,"ng-container",5),e.k0s(),e.j41(3,"nz-col",6)(4,"button",7),e.bIt("click",function(){return e.eBV(ne),e.Njj(_.onShowExpClick$.next())}),e.nrm(5,"span",8),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.EFF(8,"Editor "),e.k0s()(),e.DNE(9,ol,3,3,"nz-col",9),e.nI1(10,"ngrxPush"),e.k0s(),e.DNE(11,Qd,3,3,"ng-container",5)(12,Jd,2,3,"ng-template",null,0,e.C5r)}2&h&&(e.Y8G("nzGutter",e.lJ4(12,Kd)),e.R7$(2),e.Y8G("ngrxLet",_.selectDisplay$),e.R7$(3),e.Y8G("ngClass",e.l_i(13,md,e.bMT(6,6,_.showExp$),!e.bMT(7,8,_.showExp$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(10,10,_.showExp$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$))},dependencies:[M.YU,M.Sq,M.bT,yi.Nj,Xn.aO,hi.c,ho.p,Z.Dn,L.Uq,L.e,qe.Di,hn.LH,Yt,tn.b,Mc,pu,yi.L9,Xr.M],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}.select-container[_ngcontent-%COMP%]{padding:0;background-color:#fff;cursor:default;border-radius:2px;border:1px solid #d9d9d9}.select-container[_ngcontent-%COMP%] .limit-select-width[_ngcontent-%COMP%]{display:inline-block;margin-top:-1px;margin-bottom:-1px}"],data:{animation:[wl.U1,wl.LD]},changeDetection:0})}return u})();const sl={types:[{name:"molecular-profile-select",wrappers:["form-field"],component:E1},{name:"molecular-profile-multi-select",wrappers:["form-field"],component:E1,defaultOptions:{props:{label:"Molecular Profiles",isMultiSelect:!0}}}]};let Zd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,m.qy.forChild(sl),Cn.$,Xn.Zw,Qe.DH,ci.U6,Z.Y3,F.j,L.f3,rn.pc,K.PQ,rt.jl,qe.kT,hn.Qt,_i.MC,rn.pc,dt.IJ,$r.rD,Go.P,id.B,En,jn,me.i,Ft._]})}return u})();const jl=["optionTemplates"];function Qs(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.name)}}function gd(u,b){1&u&&(e.qex(0),e.DNE(1,Qs,2,1,"ng-template",null,1,e.C5r),e.bVm())}function bu(u,b){if(1&u&&(e.qex(0),e.DNE(1,gd,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Dc(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",6)(1,"cvc-entity-tag",7),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcCacheId","NccnGuideline:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")("cvcShowIcon",!1)}}const Eu=qi(Mi(),Lo());let Ul=(()=>{class u extends Eu{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,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 dn.t(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,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.qKP),e.rXU(Zn.ZVN),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(jl,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:8,vars:20,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcCacheId","cvcContext","cvcMode","cvcShowIcon"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(5,bu,3,3,"ng-container",3)(6,Dc,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",!1)("cvcLoading",e.bMT(4,18,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,yi.Nj,hn.LH,Gn.s,Yt,tn.b,yi.L9],changeDetection:0})}return u})();const vd={types:[{name:"nccn-guideline-select",wrappers:["form-field"],component:Ul,defaultOptions:{props:{label:"NCCN Guideline"}}},{name:"nccn-guideline-multi-select",wrappers:["form-field"],component:Ul,defaultOptions:{props:{isMultiSelect:!0,label:"NCCN Guideline(s)"}}}]};let tc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(vd),Cn.$,Xn.Zw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Gn.T,En,jn,me.i,Ft._,zi]})}return u})();const Bh=qi(Mi()),nc={types:[{name:"nccn-guideline-version-input",component:(()=>{class u extends Bh{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:h=>{if(h.value){if(/^\d{1,2}\.\d{4}$/.test(h.value)){let _=+h.value.split(".")[1];return _>=2e3&&_<=(new Date).getFullYear()+1}return!1}return!0},message:(h,_)=>`"${_.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,qt.p)(c=>c),(0,ds.s)(1),(0,mn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.state?.fields.nccnGuidelineId$.pipe((0,mn.s)(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))})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-version-input"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","","placeholder","ex: 1.2023",3,"formControl","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"input",0),2&h&&e.Y8G("formControl",_.formControl)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,m.ch,F.Sy],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let $h=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(nc),F.j,En]})}return u})();var zu=a(9438);let Gl=class x8{constructor(b){this.el=b,this.domChange=new e.bkB,this.changes=new MutationObserver(c=>{(0,Ki.H)(c).pipe((0,ve.T)(h=>{const _=h.target;return"class"===h.attributeName?{type:"class",change:_.classList.value,key:`${h.attributeName}:${_.classList.value}`}:"disabled"===h.attributeName?{type:"disabled",change:_.disabled,key:`${h.attributeName}:${_.disabled}`}:"hidden"===h.attributeName?{type:"hidden",change:_.hidden,key:`${h.attributeName}:${_.hidden}`}:{type:h.attributeName,change:"unknown change type",key:`${h.attributeName}:unknown-change-type`}}),B("key"),(0,mn.s)(this)).subscribe(h=>{this.domChange.emit(h)})}),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()}static#e=this.\u0275fac=function(c){return new(c||x8)(e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:x8,selectors:[["button","cvcOrgSubmitButton",""]],outputs:{domChange:"domChange"}})};Gl=(0,bi.Cg)([(0,mn.d)()],Gl);const Hh=(u,b,c)=>({"btn-right":u,"btn-left":b,"btn-center":c});function jh(u,b){if(1&u&&(e.j41(0,"button",3),e.EFF(1),e.k0s()),2&u){const c=b.ngrxLet,h=e.XpG();e.Y8G("disabled",!h.form.valid)("nzTooltipTrigger",c?"hover":null)("nzTooltipTitle","For "+(null==c?null:c.name)),e.R7$(),e.SpI(" ",h.props.submitLabel," ")}}let qd=class P8 extends m.PU{constructor(b,c,h){super(),this.viewerService=b,this.cdr=c,this.apollo=h,this.menuSelection$=new V.B,this.baseButtonClass="org-dropdown-btn",this.defaultOptions={props:{submitLabel:"Submit"}},this.viewer$=this.viewerService.viewer$,this.organizations$=this.viewer$.pipe((0,Ui.E)("organizations")),this.mostRecentOrg$=this.viewer$.pipe((0,Ui.E)("mostRecentOrg")),this.isDisabled$=new V.B,this.isHidden$=new V.B,this.buttonClass$=new dn.t(this.baseButtonClass),this.subscriptions=[]}ngOnInit(){this.menuSelection$.pipe((0,Gi.E)(this.viewer$)).subscribe(([_,ne])=>{const ut={id:`User:${ne.id}`,fragment:is.J1` - fragment UserMostRecentOrgId on User { - mostRecentOrganizationId - } - `,data:{mostRecentOrganizationId:_}};this.apollo.client.writeFragment(ut)}),this.formUpdate$=new dn.t(this.form.status);const b=this.form.statusChanges.subscribe(_=>this.formUpdate$.next(_)),c=this.formUpdate$.subscribe(_=>this.cdr.detectChanges()),h=this.mostRecentOrg$.pipe((0,Ui.E)("id"),(0,qt.p)(fo.kP)).subscribe(_=>{this.formControl.setValue(_)});this.subscriptions=this.subscriptions.concat([b,c,h])}ngAfterViewInit(){if(this.button&&this.button.domChange){const b=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(b)}}static#e=this.\u0275fac=function(c){return new(c||P8)(e.rXU(Al.q),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:P8,selectors:[["cvc-org-submit-button"]],viewQuery:function(c,h){if(1&c&&e.GBs(Gl,5),2&c){let _;e.mGM(_=e.lsd())&&(h.button=_.first)}},features:[e.Vt3],decls:3,vars:8,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"btn-aligner",3,"ngClass"],["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(c,h){1&c&&(e.nrm(0,"input",0),e.j41(1,"div",1),e.DNE(2,jh,2,4,"button",2),e.k0s()),2&c&&(e.Y8G("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.Y8G("ngClass",e.sMw(4,Hh,"right"===h.props.align,"left"===h.props.align,"center"===h.props.align)),e.R7$(),e.Y8G("ngrxLet",h.mostRecentOrg$))},dependencies:[M.YU,t.me,t.BC,t.l_,yi.Nj,m.ch,Xn.aO,hi.c,ho.p,hn.LH,Gl],styles:[".btn-aligner[_ngcontent-%COMP%]{width:100%}.btn-aligner.btn-right[_ngcontent-%COMP%]{text-align:right}.btn-aligner.btn-left[_ngcontent-%COMP%]{text-align:left}.btn-aligner.btn-center[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})};qd=(0,bi.Cg)([(0,mn.d)({arrayName:"subscriptions"})],qd);const e4={types:[{name:"org-submit-button",component:qd}]};let _d=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(e4),Z.Y3,zu.Yb,Xn.Zw,ns.Cu,hn.Qt]})}return u})();const pa=["optionTemplates"];function T1(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function Oc(u,b){1&u&&(e.qex(0),e.DNE(1,T1,1,1,"ng-template",null,1,e.C5r),e.bVm())}function eh(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const al=new Map([[Zn.Kkj.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."],[Zn.Kkj.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."],[Zn.Kkj.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."],[Zn.Kkj.Combined," Variants in the corresponding Complex Molecular Profile have heterogeneous origins."],[Zn.Kkj.Unknown,"The variant origin is uncertain based on the available evidence."],[Zn.Kkj.Na,"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."]]),yd=qi(Mi(),mi());let Mu=(()=>{class u extends yd{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 dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.originEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.originEnum$.next(Array.from(al.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,ve.T)(c=>c.map(h=>h))),this.onValueChange$.pipe((0,mn.s)(this)).subscribe(c=>{c?(this.props.description=al.get(c),this.props.extraType="description"):(this.props.description=void 0,this.props.extraType="prompt")})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-origin-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(pa,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,Oc,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,eh,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ne)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.originEnum$))}},dependencies:[M.Sq,Si,eo,yi.L9]})}return u})();const Su={types:[{name:"origin-select",wrappers:["form-field"],component:Mu},{name:"origin-multi-select",wrappers:["form-field"],component:Mu,defaultOptions:{props:{label:"Variant Origins",isMultiSelect:!0}}}]};let Du=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(Su),En,ai,Kr]})}return u})();const Cd=["optionTemplates"];function z1(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,c.hpoId,h),e.npT)}}function Uh(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,z1,4,4,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.hpoId)}}function fa(u,b){1&u&&(e.qex(0),e.DNE(1,Uh,3,4,"ng-template",null,1,e.C5r),e.bVm())}function th(u,b){if(1&u&&(e.qex(0),e.DNE(1,fa,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Ou(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Phenotype:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const bd=qi(Mi(),Lo());let M1=(()=>{class u extends bd{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,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:"prompt"}},this.placeholder$=new dn.t(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,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.Osm),e.rXU(Zn.$UJ),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-phenotype-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Cd,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,th,3,3,"ng-container",3)(7,Ou,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresPhenotype$&&!e.bMT(4,18,_.onRequiresPhenotype$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,yi.Nj,qe.Di,Yt,tn.b,yi.L9,Xr.M],changeDetection:0})}return u})();const Yl={types:[{name:"phenotype-select",wrappers:["form-field"],component:M1,defaultOptions:{props:{label:"Phenotype"}}},{name:"phenotype-multi-select",wrappers:["form-field"],component:M1,defaultOptions:{props:{isMultiSelect:!0,label:"Phenotypes"}}}]};let S1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(Yl),Cn.$,Xn.Zw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Gn.T,En,jn,me.i,Ft._]})}return u})();var D1=a(4707),O1=a(6042);const Ed=["nz-rate-item",""],I1=u=>({$implicit:u});function w1(u,b){}function x1(u,b){}function Iu(u,b){1&u&&e.nrm(0,"span",4)}const Ic=["ulElement"];function Gh(u,b){if(1&u){const c=e.RV6();e.j41(0,"li",2)(1,"div",3),e.bIt("itemHover",function(_){const ne=e.eBV(c).$index,ut=e.XpG();return e.Njj(ut.onItemHover(ne,_))})("itemClick",function(_){const ne=e.eBV(c).$index,ut=e.XpG();return e.Njj(ut.onItemClick(ne,_))}),e.k0s()()}if(2&u){const c=b.$index,h=e.XpG();e.Y8G("ngClass",h.starStyleArray[c]||"")("nzTooltipTitle",h.nzTooltips[c]),e.R7$(),e.Y8G("allowHalf",h.nzAllowHalf)("character",h.nzCharacter)("index",c)}}let P1=(()=>{class u{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new e.bkB,this.itemClick=new e.bkB}hoverRate(c){this.itemHover.next(c&&this.allowHalf)}clickRate(c){this.itemClick.next(c&&this.allowHalf)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:[2,"allowHalf","allowHalf",e.L39]},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],standalone:!0,features:[e.GFd,e.aNF],attrs:Ed,decls:6,vars:8,consts:[["defaultCharacter",""],[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"div",1),e.bIt("mouseover",function(nn){return e.eBV(ne),_.hoverRate(!1),e.Njj(nn.stopPropagation())})("click",function(){return e.eBV(ne),e.Njj(_.clickRate(!1))}),e.DNE(1,w1,0,0,"ng-template",2),e.k0s(),e.j41(2,"div",3),e.bIt("mouseover",function(nn){return e.eBV(ne),_.hoverRate(!0),e.Njj(nn.stopPropagation())})("click",function(){return e.eBV(ne),e.Njj(_.clickRate(!0))}),e.DNE(3,x1,0,0,"ng-template",2),e.k0s(),e.DNE(4,Iu,1,0,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",_.character||ne)("ngTemplateOutletContext",e.eq3(4,I1,_.index)),e.R7$(2),e.Y8G("ngTemplateOutlet",_.character||ne)("ngTemplateOutletContext",e.eq3(6,I1,_.index))}},dependencies:[M.T3,Z.Y3,Z.Dn],encapsulation:2,changeDetection:0})}return u})(),cl=(()=>{class u{get nzValue(){return this._value}set nzValue(c){this._value!==c&&(this._value=c,this.hasHalf=!Number.isInteger(c)&&this.nzAllowHalf,this.hoverValue=Math.ceil(c))}constructor(c,h,_,ne,ut,nn){this.nzConfigService=c,this.ngZone=h,this.renderer=_,this.cdr=ne,this.directionality=ut,this.destroy$=nn,this._nzModuleName="rate",this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new e.bkB,this.nzOnFocus=new e.bkB,this.nzOnHoverChange=new e.bkB,this.nzOnKeyDown=new e.bkB,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:h,nzCount:_,nzValue:ne}=c;if(h&&!h.isFirstChange()){const ut=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(ut,"autofocus","autofocus"):this.renderer.removeAttribute(ut,"autofocus")}_&&this.updateStarArray(),ne&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent("rate").pipe((0,Ee.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.ulElement.nativeElement,"focus").pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(c))}),(0,x.R)(this.ulElement.nativeElement,"blur").pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(c))})})}onItemClick(c,h){if(this.nzDisabled)return;this.hoverValue=c+1;const _=h?c+.5:c+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(c,h){this.nzDisabled||((this.hoverValue!==c+1||h!==this.hasHalf)&&(this.hoverValue=c+1,this.hasHalf=h,this.updateStarStyle()),this.nzOnHoverChange.emit(this.hoverValue))}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(c){const h=this.nzValue;c.keyCode===X.LE&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),h!==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,h)=>h),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(c=>{const h="ant-rate-star",_=c+1;return{[`${h}-full`]:_this.hoverValue,[`${h}-focused`]:this.hasHalf&&_===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}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(O1.yx),e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(E.dS,8),e.rXU(Y.y4))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-rate"]],viewQuery:function(h,_){if(1&h&&e.GBs(Ic,7),2&h){let ne;e.mGM(ne=e.lsd())&&(_.ulElement=ne.first)}},inputs:{nzAllowClear:[2,"nzAllowClear","nzAllowClear",e.L39],nzAllowHalf:[2,"nzAllowHalf","nzAllowHalf",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzCharacter:"nzCharacter",nzCount:[2,"nzCount","nzCount",e.Udg],nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],standalone:!0,features:[e.Jv_([Y.y4,{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0}]),e.GFd,e.OA$,e.aNF],decls:4,vars:6,consts:[["ulElement",""],[1,"ant-rate",3,"keydown","mouseleave","ngClass","tabindex"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"itemHover","itemClick","allowHalf","character","index"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"ul",1,0),e.bIt("keydown",function(nn){return e.eBV(ne),_.onKeyDown(nn),e.Njj(nn.preventDefault())})("mouseleave",function(nn){return e.eBV(ne),_.onRateLeave(),e.Njj(nn.stopPropagation())}),e.Z7z(2,Gh,2,5,"li",2,e.fX1),e.k0s()}2&h&&(e.AVh("ant-rate-disabled",_.nzDisabled)("ant-rate-rtl","rtl"===_.dir),e.Y8G("ngClass",_.classMap)("tabindex",_.nzDisabled?-1:1),e.R7$(2),e.Dyx(_.starArray))},dependencies:[M.YU,hn.Qt,hn.LH,P1],encapsulation:2,changeDetection:0})}return(0,D1.Cg)([(0,O1.H4)()],u.prototype,"nzAllowClear",void 0),(0,D1.Cg)([(0,O1.H4)()],u.prototype,"nzAllowHalf",void 0),u})(),wc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[cl,P1]})}return u})();const Er={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."},Yh=qi(Mi(),mi()),F1={types:[{name:"rating",wrappers:["form-field"],component:(()=>{class u extends Yh{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 dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.formControl.value&&this.rating$.next(this.formControl.value),Object.entries(Er).map(([c,h])=>{this.props.hoverText.push(h)}),this.rating$.pipe((0,mn.s)(this)).subscribe(c=>{this.formControl.setValue(c)}),this.onValueChange$.pipe((0,mn.s)(this)).subscribe(c=>{c&&0!==c?(this.props.description=Er[c],this.props.extraType="description"):(this.formControl.setValue(void 0),this.props.description=void 0,this.props.extraType="prompt")})}configureStateConnections(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-rating"]],features:[e.Vt3],decls:3,vars:5,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"rate-block"],[3,"ngModelChange","ngModel","nzCount","nzTooltips"]],template:function(h,_){1&h&&(e.nrm(0,"input",0),e.j41(1,"div",1)(2,"nz-rate",2),e.bIt("ngModelChange",function(ut){return _.rating$.next(ut)}),e.k0s()()),2&h&&(e.Y8G("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(2),e.Y8G("ngModel",_.formControl.value)("nzCount",_.props.count)("nzTooltips",_.props.hoverText))},dependencies:[t.me,t.BC,t.l_,t.vS,m.ch,cl],styles:["[_nghost-%COMP%] .rate-block[_ngcontent-%COMP%]{display:inline-block;background-color:#fff;border-radius:2px;padding:2px 4px;margin-top:-4px}[_nghost-%COMP%] nz-rate .anticon{font-size:160%}"],changeDetection:0})}return u})()}]};let ih=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,t.YN,m.qy.forChild(F1),wc,me.i,En,ai]})}return u})();const wu=["optionTemplates"];function xu(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s()()),2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c)}}function A1(u,b){1&u&&(e.qex(0),e.DNE(1,xu,3,1,"ng-template",null,1,e.C5r),e.bVm())}function Da(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s()()}if(2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c.nzValue)}}function oh(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",c.nzValue," ")}}function R1(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,Da,3,1,"nz-tag",5)(2,oh,2,1,"ng-container",6),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!c.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",c.props.isMultiSelect)}}const rh=qi(Mi(),mi());let sh=(()=>{class u extends rh{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 dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.buildEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.placeholder$=new dn.t(this.props.placeholder),this.buildEnum$.next((0,Ei.KF)(Zn.KRr).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,ve.T)(c=>c.map(h=>h)))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-reference-build-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(wu,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,A1,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,R1,3,2,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.buildEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,Si,yi.L9]})}return u})();const t4={types:[{name:"reference-build-select",wrappers:["form-field"],component:sh},{name:"reference-build-multi-select",wrappers:["form-field"],component:sh,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let n4=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(t4),Gn.T,me.i,En,ai]})}return u})();const Xo=["optionTemplates"];function Td(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function ah(u,b){1&u&&(e.qex(0),e.DNE(1,Td,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Kh(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Xh={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."}}},i4=qi(Mi(),mi()),ch={types:[{name:"significance-select",wrappers:["form-field"],component:(()=>{class u extends i4{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Significance",required:!0,isMultiSelect:!1,placeholder:"Select Significance",placeholderFn:h=>`Select ${h?h+" ":""} Significance`,requireTypePromptFn:h=>`Select ${h} Type to select its Significance`,tooltip:"Clinical impact of the variant"}},this.significanceEnum$=new dn.t([])}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 dn.t("ERROR: Form state not found"));if(this.placeholder$=new dn.t(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,mn.s)(this)).subscribe(h=>{this.significanceEnum$.next(h)}),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,ve.T)(h=>h.map(_=>_)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onTypeSelect$=this.state.fields[c],this.onTypeSelect$.pipe((0,oo.i)("add"===this.options.formState.formMode?0:1),(0,mn.s)(this)).subscribe(h=>{h?(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,Gi.E)(this.onTypeSelect$),(0,mn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.description=void 0,this.props.extraType="description",this.props.description=Xh[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${c} to populate Significance options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-significance-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Xo,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,ah,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Kh,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.significanceEnum$))}},dependencies:[M.Sq,Si,eo,yi.L9]})}return u})()}]};let Nr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(ch),En,ai,Kr]})}return u})();var N1=a(1427);const Jh=()=>[0,0];function o4(u,b){1&u&&e.nrm(0,"span",9),2&u&&e.Y8G("nzType","loading")}function lh(u,b){if(1&u&&(e.qex(0),e.DNE(1,o4,1,1,"span",8),e.EFF(2,"\xa0 "),e.j41(3,"span"),e.EFF(4),e.k0s(),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c.showSpinner),e.R7$(3),e.JRh(c.message)}}function r4(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.JRh(c.successMessage)}}function zd(u,b){1&u&&(e.j41(0,"button",10),e.EFF(1," Add Source "),e.k0s()),2&u&&e.Y8G("disabled",null===b.ngrxLet.citation)}let Js=class F8{constructor(b,c,h,_,ne){this.checkCitation=b,this.addRemoteCitation=c,this.errors=h,this.apollo=_,this.cdr=ne,this.cvcOnCreate=new e.bkB,this.messageOptions={empty:(ut,nn)=>`No ${nn} Source with a citation ID of "${ut}"`,searchCitation:(ut,nn)=>`Searching ${nn} for a citation ID of "${ut}"`,foundCitation:(ut,nn,Rn)=>`Found ${nn} citation "${Rn}" with ID ${ut}`,noCitation:(ut,nn)=>`No ${nn} Source with a citation ID of "${ut}" was found`},this.form=new t.J3({}),this.model={citationId:"",sourceType:Zn.tUL.Pubmed},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.citationId$=new dn.t(""),this.sourceType$=new dn.t(Zn.tUL.Pubmed),this.addSourceStubMutator=new Vr.E(this.errors),this.fields=[{key:"citationId",props:{hidden:!0}},{key:"sourceType",props:{hidden:!0}}],this.onSubmit$.pipe((0,mn.s)(this)).subscribe(ut=>{console.log("disease-quick-add form model submitted.",ut),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,ve.T)(b=>({loading:b.loading,citation:b.data?b.data.remoteCitation:null,model:this.model})),(0,wn.M)(b=>{this.citationString=b.citation?b.citation:void 0})),this.citationId$.pipe((0,mn.s)(this)).subscribe(b=>{this.model.sourceType&&this.queryRef.refetch({citationId:b,sourceType:this.model.sourceType})}),this.formMessageDisplay$=this.checkResult$.pipe((0,ve.T)(b=>{const c=b.loading,h=b.citation,_=b.model;return c?{message:this.messageOptions.searchCitation(_.citationId,_.sourceType),showSpinner:!0}:c||null===h?c||null!==h?{message:"UNHANDLED MESSAGE STATE",showSpinner:!1}:{message:this.messageOptions.noCitation(_.citationId,_.sourceType),showSpinner:!1}:{message:this.messageOptions.foundCitation(_.citationId,(0,N1.A)(_.sourceType),h),showSpinner:!1}}),(0,Oe.Z)({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}},{},b=>{if(console.log("source-quick-add submit data callback",b),b.addRemoteCitation){this.successMessage=`New Source "${this.citationString}" added.`;const c=b.addRemoteCitation.newSource,h=(0,N1.A)(this.model.sourceType),_=this.citationString?this.citationString:"NO CITATION",ne={query:is.J1` - query WriteLocalSource($id: Int!) { - source(id: $id) { - id - name - link - citation - citationId - sourceType - } - } - `,data:{source:{__typename:"Source",id:c.id,name:`${h}: ${_}`,link:`sources/${c.id}`,citation:_,citationId:this.model.citationId,sourceType:this.model.sourceType}},variables:{id:c.id}};this.apollo.client.cache.writeQuery(ne)||console.error("source-quick-add.form Source writeQuery failed.",ne),setTimeout(()=>{const nn={id:`Source:${c.id}`,fragment:is.J1` - fragment LinkableSource on Source { - id - name - link - } - `},Rn=this.apollo.client.cache.readFragment(nn);null!==Rn&&this.cvcOnCreate.next(Rn.id)},1e3)}}))}ngOnChanges(b){if(b.cvcSourceType){const c=b.cvcSourceType.currentValue;this.sourceType$.next(c),this.model={...this.model,sourceType:c}}if(b.cvcCitationId){const c=b.cvcCitationId.currentValue;this.citationId$.next(c),this.model={...this.model,citationId:c}}}static#e=this.\u0275fac=function(c){return new(c||F8)(e.rXU(Zn.RMT),e.rXU(Zn.Z3e),e.rXU(ca.N),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:F8,selectors:[["cvc-source-quick-add"]],inputs:{cvcSourceType:"cvcSourceType",cvcCitationId:"cvcCitationId"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:10,vars:11,consts:[["success",""],[4,"ngrxLet"],["entityType","Source",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["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(c,h){if(1&c){const _=e.RV6();e.DNE(0,lh,5,2,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,r4,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(ut){return e.eBV(_),e.Njj(h.model=ut)}),e.k0s()(),e.j41(8,"nz-col",5),e.DNE(9,zd,2,1,"button",7),e.k0s()()()()}if(2&c){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,Jh)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("ngrxLet",h.checkResult$)}},dependencies:[M.bT,t.qT,t.cb,t.j4,yi.Nj,m.aF,Xn.aO,hi.c,ho.p,Z.Dn,L.Uq,L.e,K.CA,Ss.G],changeDetection:0})};Js=(0,bi.Cg)([(0,mn.d)()],Js);const T=["optionTemplates"],d=()=>[6,6];function p(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",10)(1,"nz-select",11),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.sourceType$.next(_))}),e.nrm(3,"nz-option",12)(4,"nz-option",13)(5,"nz-option",14),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("nzOptionHeightPx",28)("ngModel",e.bMT(2,2,c.sourceType$))}}function v(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"PMID:"),e.k0s())}function C(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"ID:"),e.k0s())}function O(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"doi.org/"),e.k0s())}function Q(u,b){if(1&u&&(e.j41(0,"nz-col",15),e.qex(1,16),e.nI1(2,"ngrxPush"),e.DNE(3,v,2,0,"div",17)(4,C,2,0,"div",17)(5,O,2,0,"div",17),e.bVm(),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngSwitch",e.bMT(2,4,c.sourceType$)),e.R7$(2),e.Y8G("ngSwitchCase","PUBMED"),e.R7$(),e.Y8G("ngSwitchCase","ASCO"),e.R7$(),e.Y8G("ngSwitchCase","ASH")}}function Me(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",19),e.j41(1,"span",20),e.EFF(2," ID: "),e.nrm(3,"span",21),e.nI1(4,"highlightTypeahead"),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(3),e.Y8G("innerHtml",e.i5U(4,4,c.citationId.toString(),h),e.npT)}}function we(u,b){1&u&&(e.qex(0),e.DNE(1,Me,5,7,"ng-template",null,3,e.C5r),e.bVm())}function ot(u,b){if(1&u&&(e.qex(0),e.DNE(1,we,3,0,"ng-container",18),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function yt(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",22)(1,"cvc-entity-tag",23),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Source:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Dt(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-source-quick-add",24),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()}if(2&u){const c=b.model;e.Y8G("cvcCitationId",c.citationId)("cvcSourceType",c.sourceType)}}function Bt(u,b){1&u&&(e.j41(0,"button",25),e.EFF(1,"Add a New Source"),e.k0s())}const Xt=qi(Mi(),Lo());let Zt=(()=>{class u extends Xt{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.onModel$=new Un.c,this.defaultSourceType=Zn.tUL.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:ne=>`Search ${ne} Sources`},description:"Select Source type, then enter its ID to search Sources"}},this.sourceType$=new dn.t(this.defaultSourceType),this.sourceTypeName$=new dn.t((0,N1.A)(this.defaultSourceType)),this.placeholder$=new dn.t(this.defaultOptions.props.placeholders.contextualFn((0,N1.A)(this.defaultSourceType))),this.showTypeSelect$=new Un.c}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.initialDescription=this.props.description,this.showTypeSelect$=this.onValueChange$.pipe((0,ve.T)(c=>!!(!c||c&&Array.isArray(c)))),this.sourceType$.pipe((0,mn.s)(this)).subscribe(c=>{const h=(0,N1.A)(c);this.sourceTypeName$.next(h),this.placeholder$.next(this.props.placeholders.contextualFn(h))}),this.onModel$=(0,uo.z)([this.sourceType$,this.onSearch$]).pipe((0,ve.T)(([c,h])=>({citationId:h,sourceType:c}))),this.onValueChange$.pipe((0,mn.s)(this)).subscribe(c=>{this.props.description=c?void 0:this.initialDescription})}getTypeaheadVarsFn(c,h=Zn.tUL.Pubmed){return{partialCitationId:c,sourceType:h}}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,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.txm),e.rXU(Zn.mww),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-source-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(T,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:21,vars:39,consts:[["selectedTemplate",""],["addSource",""],["addSourceBtn",""],["optionTemplates",""],[1,"select-layout",3,"nzGutter"],["nzFlex","80px",4,"ngIf"],["nzFlex","60px","class","prefix",4,"ngIf"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnModelChange","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcParamName","cvcShowError","cvcDisabled","cvcLoading","cvcAddEntity","cvcAddEntityModel","cvcSelectOpen"],[4,"ngrxLet"],["nzFlex","80px"],["nzSize","default","nzBlock","",3,"ngModelChange","nzOptionHeightPx","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],["nzFlex","60px",1,"prefix"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcCitationId","cvcSourceType"],["type","button"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",4),e.DNE(1,p,6,4,"nz-col",5),e.nI1(2,"ngrxPush"),e.DNE(3,Q,6,6,"nz-col",6),e.nI1(4,"ngrxPush"),e.j41(5,"nz-col",7)(6,"cvc-entity-select",8),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.nI1(12,"ngrxPush"),e.nI1(13,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()()(),e.DNE(14,ot,3,3,"ng-container",9)(15,yt,2,3,"ng-template",null,0,e.C5r)(17,Dt,1,2,"ng-template",null,1,e.C5r)(19,Bt,2,0,"ng-template",null,2,e.C5r)}if(2&h){const ne=e.sdS(16),ut=e.sdS(18);e.Y8G("nzGutter",e.lJ4(38,d)),e.R7$(),e.Y8G("ngIf",e.bMT(2,20,_.showTypeSelect$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,22,_.showTypeSelect$)),e.R7$(3),e.Y8G("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(7,24,_.placeholder$))("cvcResults",e.bMT(8,26,_.result$))("cvcOptions",e.bMT(9,28,_.selectOption$))("cvcParamName",e.bMT(10,30,_.sourceTypeName$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(11,32,_.isLoading$))("cvcAddEntity",ut)("cvcAddEntityModel",e.bMT(12,34,_.onModel$))("cvcSelectOpen",e.bMT(13,36,_.selectOpen$)),e.R7$(8),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,M.ux,M.e1,t.BC,t.vS,yi.Nj,Qe.ld,Qe.WI,L.Uq,L.e,qe.Di,Yt,tn.b,Js,yi.L9,Xr.M],styles:[".prefix[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:right;line-height:28px;color:#999}.select-layout[_ngcontent-%COMP%]{flex-wrap:nowrap}"],changeDetection:0})}return u})();const vn={types:[{name:"source-select",wrappers:["form-field"],component:Zt,defaultOptions:{props:{label:"Source"}}},{name:"source-multi-select",wrappers:["form-field"],component:Zt,defaultOptions:{props:{label:"Sources",isMultiSelect:!0}}}]};let Sn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,m.qy.forChild(vn),Cn.$,Xn.Zw,ue.Sw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Jn.g,Gn.T,Go.P,En,jn,me.i,Ft._]})}return u})();function si(u,b){if(1&u&&e.nrm(0,"nz-option",7),2&u){const c=b.$implicit;e.Y8G("nzLabel",c)("nzValue",c)("nzHide",!0)}}function an(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-select",5),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.DNE(2,si,1,3,"nz-option",6),e.k0s(),e.bVm()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("formControl",c.formControl)("formlyAttributes",c.field),e.R7$(),e.Y8G("ngForOf",c.formControl.value)}}function _n(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",10),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.EFF(1),e.k0s()}if(2&u){const c=b.ngIf;e.Y8G("nzMode","closeable"),e.R7$(),e.SpI(" ",c," ")}}function ti(u,b){if(1&u){const c=e.RV6();e.j41(0,"input",12,2),e.bIt("keydown.enter",function(){e.eBV(c);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const c=e.XpG(3);e.Y8G("formControl",c.formControl)("type",c.props.type||"text")("formlyAttributes",c.field)}}function Qn(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number",13,3),e.bIt("keydown.enter",function(){e.eBV(c);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const c=e.XpG(3);e.Y8G("formControl",c.formControl)("formlyAttributes",c.field)}}function Ci(u,b){if(1&u&&(e.qex(0),e.DNE(1,ti,2,3,"input",11)(2,Qn,2,2,"ng-template",null,1,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG(2);e.R7$(),e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",c)}}function Li(u,b){if(1&u&&(e.DNE(0,_n,2,2,"nz-tag",8),e.nI1(1,"ngrxPush"),e.DNE(2,Ci,4,2,"ng-container",9),e.nI1(3,"ngrxPush")),2&u){const c=e.XpG();e.Y8G("ngIf",e.bMT(1,2,c.tagLabel$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(3,4,c.tagLabel$))}}const nr=qi(Mi(),ma);let ur=(()=>{class u extends nr{constructor(){super(),this.defaultOptions={props:{label:"Enter value"}}}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-tag-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["singleInputField",""],["numberTmp",""],["baseInputTxt",""],["baseInputNum",""],[4,"ngIf","ngIfElse"],["nzMode","tags","nzPlaceHolder","Please select","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"],[3,"nzMode","nzOnClose",4,"ngIf"],[4,"ngIf"],[3,"nzOnClose","nzMode"],["nz-input","",3,"formControl","type","formlyAttributes","keydown.enter",4,"ngIf","ngIfElse"],["nz-input","",3,"keydown.enter","formControl","type","formlyAttributes"],[3,"keydown.enter","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,an,3,3,"ng-container",4)(1,Li,4,6,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf",_.props.isMultiInput)("ngIfElse",ne)}},dependencies:[M.Sq,M.bT,t.me,t.BC,t.l_,m.ch,F.Sy,Qe.ld,Qe.WI,Gn.s,yi.L9],changeDetection:0})}return u})();const ic={types:[{name:"tag-input",wrappers:["form-field"],component:ur,defaultOptions:{modelOptions:{updateOn:"blur"}}},{name:"tag-multi-input",wrappers:["form-field"],component:ur,defaultOptions:{props:{isMultiInput:!0}}}]};let kr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(ic),K.PQ,F.j,Qe.DH,Gn.T,zi]})}return u})();const Oa=()=>[0,0];function Md(u,b){1&u&&e.nrm(0,"span",7)}function uh(u,b){1&u&&e.nrm(0,"span",8)}const Di={name:void 0};let gi=class A8{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.model=Di,this.form=new t.J3({}),this.options={},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.queryMutator=new Vr.E(this.errors),this.isSubmitting$=new dn.t(!1),this.submitSuccess$=new dn.t(!1),this.submitError$=new dn.t([]),this.addTherapyMutator=new Vr.E(this.errors),this.fields=[{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,mn.s)(this)).subscribe(h=>{this.model.name=h}),this.onSubmit$.pipe((0,mn.s)(this)).subscribe(h=>{this.submitTherapy(h)})}submitTherapy(b){if(!b.name)return void console.error("therapy-quick-add form submitTherapy requires model with valid name.");let c=this.addTherapyMutator.mutate(this.query,{name:b.name},{},h=>{console.log("therapy-quick-add submit data callback",h),h.addTherapy&&this.cvcOnCreate.next(h.addTherapy.therapy.id)});c.submitSuccess$.pipe((0,mn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitSuccess$",h),this.submitSuccess$.next(h)}),c.submitError$.pipe((0,mn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitError$",h),this.submitError$.next(h)}),c.isSubmitting$.pipe((0,mn.s)(this)).subscribe(h=>{this.isSubmitting$.next(h)})}static#e=this.\u0275fac=function(c){return new(c||A8)(e.rXU(Zn.G4Q),e.rXU(ca.N))};static#t=this.\u0275cmp=e.VBU({type:A8,selectors:[["cvc-therapy-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:14,vars:17,consts:[[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["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(c,h){1&c&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return h.onSubmit$.next(h.model)}),e.j41(1,"nz-row",1)(2,"nz-col",2)(3,"formly-form",3),e.bIt("modelChange",function(ne){return h.model=ne}),e.k0s()(),e.j41(4,"nz-col",2)(5,"button",4),e.DNE(6,Md,1,0,"span",5),e.nI1(7,"ngrxPush"),e.DNE(8,uh,1,0,"span",6),e.nI1(9,"ngrxPush"),e.EFF(10," Create Therapy\xa0"),e.j41(11,"i"),e.EFF(12),e.nI1(13,"ngrxPush"),e.k0s()()()()()),2&c&&(e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(16,Oa)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(),e.Y8G("ngIf",!e.bMT(7,10,h.isSubmitting$)),e.R7$(2),e.Y8G("ngIf",e.bMT(9,12,h.isSubmitting$)),e.R7$(4),e.JRh(e.bMT(13,14,h.searchString$)))},dependencies:[M.bT,t.qT,t.cb,t.j4,m.aF,Xn.aO,hi.c,ho.p,Z.Dn,L.Uq,L.e,yi.L9],encapsulation:2,changeDetection:0})};gi=(0,bi.Cg)([(0,mn.d)()],gi);const Hi=["optionTemplates"];function To(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"NCIt Code: "),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.EFF(5,"\xa0 "),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,c.ncitId,h),e.npT)}}function Tr(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"Aliases: "),e.k0s(),e.j41(3,"em"),e.nrm(4,"span",10),e.nI1(5,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(4),e.Y8G("nzTooltipTitle",c.therapyAliases.join(", "))("innerHtml",e.i5U(5,2,c.therapyAliases.join(", "),h),e.npT)}}function oc(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,To,6,4,"ng-container",8)(3,Tr,6,5,"ng-container",8),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.ncitId),e.R7$(),e.Y8G("ngIf",c.therapyAliases.length>0)}}function ta(u,b){1&u&&(e.qex(0),e.DNE(1,oc,4,5,"ng-template",null,2,e.C5r),e.bVm())}function dr(u,b){if(1&u&&(e.qex(0),e.DNE(1,ta,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Ho(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Therapy:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Sd(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-therapy-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const dh=qi(Mi(),Lo());let Zr=(()=>{class u extends dh{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,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:(ne,ut)=>`Select an ${ne} Type to search associated Therapies`}},this.placeholder$=new dn.t(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,uo.z)([this.onRequiresTherapy$,this.onEntityType$]).pipe((0,J.F)(),(0,mn.s)(this)).subscribe(([c,h])=>{!c&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,lo.u)(h)} ${this.state.entityName} does not include associated therapies`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(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&&!h&&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,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.f9r),e.rXU(Zn.a3n),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-therapy-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Hi,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addTherapy",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcCustomTemplate","cvcDisabled","cvcEntityName","cvcFormControl","cvcFormlyAttributes","cvcLoading","cvcOptions","cvcPlaceholder","cvcResults","cvcSelectMode","cvcShowError","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[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,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(7,dr,3,3,"ng-container",4)(8,Ho,2,3,"ng-template",null,0,e.C5r)(10,Sd,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ne=e.sdS(9),ut=e.sdS(11);e.Y8G("cvcAddEntity",ut)("cvcCustomTemplate",ne)("cvcDisabled",_.onRequiresTherapy$&&!e.bMT(1,14,_.onRequiresTherapy$))("cvcEntityName",_.props.entityName)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcLoading",e.bMT(2,16,_.isLoading$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcPlaceholder",e.bMT(4,20,_.placeholder$))("cvcResults",e.bMT(5,22,_.result$))("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcShowError",_.showError)("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,yi.Nj,hn.LH,qe.Di,Yt,tn.b,gi,yi.L9,Xr.M],changeDetection:0})}return u})();const rc={types:[{name:"therapy-select",wrappers:["form-field"],component:Zr,defaultOptions:{props:{label:"Therapy"}}},{name:"therapy-multi-select",wrappers:["form-field"],component:Zr,defaultOptions:{props:{label:"Therapies",isMultiSelect:!0}}}]};let na=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(rc),Cn.$,Xn.Zw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Gn.T,En,jn,me.i,Ft._]})}return u})();const Ip={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},Zh=u=>void 0!==u.sort,ph=u=>void 0!==u.filter,a4={diseases:Zn.wOP.DiseaseName,feature:Zn.wOP.FeatureName,therapies:Zn.wOP.TherapyName,variant:Zn.wOP.VariantName},c4={diseases:"diseaseName",therapies:"therapyName",variant:"variantName",feature:"featureName",aliases:"variantAlias"},e2=["selected","id"];class l4{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:"feature",label:"Feature",type:"entity-tag",width:"135px",tag:{truncateLabel:"125px"},sort:{},filter:{inputType:"default",options:[{key:"Filter Feature 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(b,c){return b.getValues().map(_=>({text:(0,lo.u)(_),value:_,byDefault:c===_}))}configureColumnStreams(b){return b.forEach(c=>{const h=c;if(Zh(h)&&(h.sort.changes=new dn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),ph(h)){const _=h.filter.options.find(ne=>ne.byDefault)?.value;h.filter.changes=new dn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}let t2=class R8{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,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,k.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,wr.c)(this.onScrollThrottleTime,ls.E,{leading:!0,trailing:!0}),(0,wn.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Is.B)(this.onScrollDebounceTime),(0,mn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,ve.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,le.J)(),(0,qt.p)(([b,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(b){const c=this.cvcTableScrollerQueryRef;if(!b&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&c){const[h,_,ne]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ne)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ne})}}scrollToIndex(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(c){return new(c||R8)(e.rXU(to.CP))};static#t=this.\u0275dir=e.FsC({type:R8,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function u4(u,b){1&u&&e.nrm(0,"span",8)}function d4(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG();return _.value="",e.Njj(ne.cvcModelChange.next(null))}),e.k0s()}}function wp(u,b){if(1&u&&e.DNE(0,u4,1,0,"span",6)(1,d4,1,0,"span",7),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function h4(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,wp,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function Vf(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let c;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(c=h.cvcPlaceholder)&&void 0!==c?c:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}t2=(0,bi.Cg)([(0,mn.d)()],t2);let p4=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,h4,6,3,"ng-container",3)(1,Vf,3,4,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ne)}},dependencies:[M.bT,t.me,t.BC,t.vS,hi.c,Z.Dn,F.Sy,F.tg,F.vN,_e,et]})}return u})();function xp(u,b){if(1&u){const c=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.cvcOptionChange.next({key:ne.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const c=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===c.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let Pp=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({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,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,xp,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[M.Sq,eo,Xn.aO,hi.c,ho.p,Z.Dn,Ai.jS,Ai.CU],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_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})}return u})();const Lf=()=>[],Fp=()=>({x:"800px",y:"200px"}),f4=(u,b,c)=>({$implicit:u,config:b,emphasize:c}),fh=(u,b,c,h,_)=>({tagList:u,tag:b,showPopover:c,status:h,emphasize:_}),m4=(u,b)=>({$implicit:u,emphasize:b}),Wl=()=>[6,6],Dd=u=>({$implicit:u});function Ap(u,b){if(1&u&&e.nrm(0,"th",31),2&u){let c;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function g4(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",32),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(2,"span",33),e.EFF(3),e.k0s()()}if(2&u){let c,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function n2(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Bf(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Rp(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Np(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ap,1,5,"th",28),e.nI1(2,"guardType"),e.DNE(3,g4,4,12,"th",29),e.nI1(4,"guardType"),e.DNE(5,n2,2,7,"th",30),e.nI1(6,"guardType"),e.DNE(7,Bf,2,7,"th",30),e.nI1(8,"guardType"),e.DNE(9,Rp,2,7,"th",30),e.nI1(10,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,c,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,c,h.colGuards.isDefaultCol))}}function kp(u,b){if(1&u&&(e.qex(0),e.DNE(1,Np,11,20,"ng-container",27),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function Vp(u,b){if(1&u&&(e.j41(0,"th",39),e.EFF(1," \xa0 "),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function $f(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-variant-table-filter-input",42),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf,ut=e.XpG().ngIf;return e.Njj(ne.changes.next({key:ut.key,value:_}))}),e.k0s()}if(2&u){const c=e.XpG().ngIf;e.Y8G("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function Hf(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,$f,1,3,"cvc-variant-table-filter-input",41),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function mh(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",43,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(3,"nz-filter-trigger",44,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",45),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-variant-enum-filter-menu",46),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ne=e.eBV(c).ngIf,ut=e.sdS(4);return ne.filter.changes.next(_),e.Njj(ut.nzVisible=!1)}),e.k0s()()()}if(2&u){let c,h,_;const ne=b.ngIf,ut=e.sdS(8);e.Y8G("nzColumnKey",ne.key)("nzWidth",ne.width)("nzAlign",null!==(c=ne.align)&&void 0!==c?c:"left")("nzLeft",ne.fixedLeft||!1)("nzRight",ne.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(2,15,ne.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ne.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",ut)("nzActive",null!==(null==(_=e.bMT(5,17,ne.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ne.key)("cvcFilterOptions",ne.filter.options)("cvcOption",e.bMT(10,19,ne.filter.changes))}}function Lp(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",47,4)(2,"nz-filter-trigger",44),e.nI1(3,"ngrxPush"),e.nrm(4,"span",48),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",49)(8,"div",50)(9,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.filter.changes.next({key:ne.key,value:_}))}),e.k0s()()()()()}if(2&u){let c,h;const _=b.ngIf,ne=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ne)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function o2(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf,ut=e.XpG().ngIf;return e.Njj(ne.changes.next({key:ut.key,value:_}))}),e.k0s()}if(2&u){const c=e.XpG().ngIf;e.Y8G("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function r2(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,o2,1,2,"cvc-variant-table-filter-input",52),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function k1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Vp,2,5,"th",35),e.nI1(2,"guardType"),e.DNE(3,Hf,2,6,"th",36),e.nI1(4,"guardType"),e.DNE(5,mh,11,21,"th",37),e.nI1(6,"guardType"),e.DNE(7,Lp,10,12,"th",38),e.nI1(8,"guardType"),e.DNE(9,r2,2,6,"th",36),e.nI1(10,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,c,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,c,h.colGuards.isDefaultCol))}}function gh(u,b){if(1&u&&(e.qex(0),e.DNE(1,k1,11,20,"ng-container",27),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function s2(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",24),e.DNE(2,kp,2,1,"ng-container",25),e.k0s(),e.j41(3,"tr",26),e.DNE(4,gh,2,1,"ng-container",25),e.k0s()()),2&u){const c=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",c),e.R7$(2),e.Y8G("ngForOf",c)}}function Od(u,b){if(1&u){const c=e.RV6();e.j41(0,"td",58),e.bIt("nzCheckedChange",function(_){e.eBV(c);const ne=e.XpG(3).$implicit,ut=e.XpG(2);return e.Njj(ut.onRowSelected$.next({id:ne.id,selected:_}))}),e.k0s()}if(2&u){let c;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function vh(u,b){1&u&&e.eu8(0)}function V1(u,b){if(1&u&&(e.qex(0),e.DNE(1,vh,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let c;const h=e.XpG().ngIf,_=e.XpG().ngIf,ne=e.sdS(3),ut=e.sdS(5),nn=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,nn[h])?ne:ut)("ngTemplateOutletContext",e.sMw(6,f4,nn[h],_,null==(c=e.bMT(3,4,_.filter.changes))?null:c.value))}}function a2(u,b){if(1&u&&(e.qex(0),e.DNE(1,V1,4,10,"ng-container",60),e.bVm()),2&u){const c=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[c])("ngIfElse",h)}}function _h(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",63),e.bVm()),2&u){const c=e.XpG(2),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const ut=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,fh,h.slice(_.tag.maxTags,h.length),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ne))("cvcTagTemplate",ut)("cvcShowFullLabels",!0)}}function Id(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",62),e.DNE(2,_h,2,9,"ng-container",27),e.bVm()),2&u){const c=e.XpG(),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const ut=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",ut)("cvcTagListConfig",e.s1E(3,fh,h.slice(0,_.tag.maxTags),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ne)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function c2(u,b){if(1&u&&e.DNE(0,Id,3,9,"ng-container",60),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",c.length>0)("ngIfElse",h)}}function jf(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",64),2&u){let c;const h=b.$implicit,_=b.config,ne=b.emphasize,ut=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ne)("cvcShowPopover",!ut.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(c=null==_.tag?null:_.tag.fullWidth)&&void 0!==c&&c)}}function l2(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function wd(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,a2,2,2,"ng-container",27)(2,c2,1,2,"ng-template",null,8,e.C5r)(4,jf,1,6,"ng-template",null,9,e.C5r)(6,l2,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function Bp(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",67),e.nI1(1,"evidenceEnumDisplay")),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[c.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[c.key]))}}function v4(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function $p(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,Bp,2,5,"cvc-attribute-tag",66)(2,v4,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function Hp(u,b){if(1&u&&(e.j41(0,"nz-tag",69),e.nrm(1,"span",70),e.k0s()),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[c.key])}}function u2(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function _4(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,Hp,2,1,"nz-tag",68)(2,u2,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function jp(u,b){1&u&&e.eu8(0)}function Up(u,b){if(1&u&&(e.qex(0),e.DNE(1,jp,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let c;const h=b.ngIf,_=e.XpG().ngIf,ne=e.sdS(3),ut=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,h)?ne:ut)("ngTemplateOutletContext",e.l_i(6,m4,h,null==(c=e.bMT(3,4,_.filter.changes))?null:c.value))}}function xd(u,b){1&u&&e.eu8(0)}function y4(u,b){1&u&&(e.qex(0),e.EFF(1,", "),e.bVm())}function d2(u,b){if(1&u&&(e.qex(0),e.DNE(1,xd,1,0,"ng-container",61)(2,y4,2,0,"ng-container",27),e.bVm()),2&u){const c=b.$implicit,h=b.last,_=e.XpG(2).emphasize;e.XpG();const ne=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",ne)("ngTemplateOutletContext",e.l_i(3,m4,c,_)),e.R7$(),e.Y8G("ngIf",!h)}}function Gp(u,b){if(1&u&&(e.qex(0),e.DNE(1,d2,3,6,"ng-container",25),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",c)}}function Yp(u,b){if(1&u&&e.DNE(0,Gp,2,1,"ng-container",60),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",c.length>0)("ngIfElse",h)}}function Uf(u,b){if(1&u&&(e.nrm(0,"span",72),e.nI1(1,"highlightTypeahead")),2&u){const c=b.$implicit,h=b.emphasize,_=e.XpG().ngIf;e.Y8G("innerHtml",e.i5U(1,1,_.objectKey?c[_.objectKey]:c,h),e.npT)}}function Pd(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Wp(u,b){if(1&u&&(e.j41(0,"td",71),e.DNE(1,Up,4,9,"ng-container",60)(2,Yp,1,2,"ng-template",null,13,e.C5r)(4,Uf,2,4,"ng-template",null,14,e.C5r)(6,Pd,1,1,"ng-template",null,15,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(7),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function yh(u,b){if(1&u&&(e.qex(0),e.DNE(1,Od,1,4,"td",55),e.nI1(2,"guardType"),e.DNE(3,wd,8,4,"td",56),e.nI1(4,"guardType"),e.DNE(5,$p,4,5,"td",56),e.nI1(6,"guardType"),e.DNE(7,_4,4,5,"td",56),e.nI1(8,"guardType"),e.DNE(9,Wp,8,5,"td",57),e.nI1(10,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,c,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,c,h.colGuards.isDefaultCol))}}function h2(u,b){if(1&u&&(e.qex(0),e.DNE(1,yh,11,20,"ng-container",27),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function C4(u,b){if(1&u&&(e.j41(0,"tr",54),e.DNE(1,h2,2,1,"ng-container",25),e.k0s()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",c)}}function Kp(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,C4,2,1,"ng-template",53),e.k0s())}function b4(u,b){1&u&&e.nrm(0,"span",77)}function p2(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",78),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG().filter;return _.value="",e.Njj(ne.changes.next({key:ne.key,value:null}))}),e.k0s()}}function E4(u,b){if(1&u&&e.DNE(0,b4,1,0,"span",75)(1,p2,1,0,"span",76),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function Fd(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",73)(2,"input",74,17),e.bIt("nzFilterChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()(),e.DNE(4,E4,2,2,"ng-template",null,18,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function T4(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",79)(1,"nz-input-number",80,17),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()()}if(2&u){const c=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function Ch(u,b){if(1&u&&e.DNE(0,Fd,6,3,"ng-container",60)(1,T4,3,4,"ng-template",null,16,e.C5r),2&u){const c=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",h)}}function z4(u,b){1&u&&(e.j41(0,"nz-row",81)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect Variants"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,Wl))}function M4(u,b){1&u&&(e.j41(0,"nz-tag",91),e.nrm(1,"i",92),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function S4(u,b){if(1&u&&(e.j41(0,"nz-tag",94),e.nrm(1,"span",95),e.j41(2,"span",96),e.EFF(3),e.k0s()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,Dd,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function bh(u,b){if(1&u&&(e.j41(0,"nz-tag",94)(1,"span",96)(2,"span",97)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,Dd,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function f2(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.R7$(),e.SpI(" ",c.message," ")}}function D4(u,b){1&u&&e.DNE(0,f2,2,1,"div",25),2&u&&e.Y8G("ngForOf",b.$implicit)}function Eh(u,b){if(1&u&&(e.qex(0),e.DNE(1,S4,4,5,"nz-tag",93)(2,bh,5,5,"nz-tag",93)(3,D4,1,1,"ng-template",null,20,e.C5r),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",c.query),e.R7$(),e.Y8G("ngIf",c.network)}}function m2(u,b){if(1&u&&(e.qex(0),e.DNE(1,Eh,5,2,"ng-container",27),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c)}}function L1(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",98)(1,"nz-checkbox-group",99),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,c.setPreference$))}}function Xp(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-row",81)(1,"nz-col",82),e.DNE(2,M4,4,0,"nz-tag",83),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",84),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",82),e.DNE(8,m2,2,1,"ng-container",23),e.k0s(),e.j41(9,"nz-col",82),e.nrm(10,"cvc-table-counts2",85),e.k0s(),e.j41(11,"nz-col",86)(12,"nz-button-group")(13,"button",87),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",88),e.k0s(),e.j41(15,"button",89),e.nrm(16,"span",90),e.k0s()(),e.DNE(17,L1,3,3,"ng-template",null,19,e.C5r),e.k0s()()}if(2&u){const c=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",c)("nzPopoverTrigger","click")}}let Th=class N8{constructor(b,c,h){this.queryGQL=b,this.apollo=c,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=Ip,this.onFetchMore$=new V.B,this.onPreferenceChange$=new dn.t([]),this.onResetFilter$=new V.B,this.onRowSelected$=new V.B,this.onScroll$=new dn.t("stop"),this.onSetSelectedRow$=new dn.t(new Set),this.queryError$=new V.B,this.queryRequest$=new V.B,this.queryResult$=new Ni.m(1),this.isFetchMore$=new dn.t(!1),this.noMoreRows$=new dn.t(!1),this.scrollToIndex$=new V.B,this.tableConfig=new l4;const _=(0,uo.z)(this.tableConfig.getFilterStreams()),ne=(0,uo.z)(this.tableConfig.getSortStreams()).pipe((0,qt.p)(ut=>ut.filter(nn=>null!==nn.value).length<=1));this.refetch$=(0,uo.z)([ne,_]).pipe((0,ve.T)(([ut,nn])=>({query:"refetch",sort:ut,filter:nn}))),this.fetchMore$=this.onFetchMore$.pipe((0,ve.T)(ut=>({query:"fetchMore",fetchMore:{...ut}}))),(0,oe.h)(this.refetch$,this.fetchMore$).pipe((0,Is.B)(50),(0,mn.s)(this)).subscribe(ut=>{const nn=this.getQueryVars(ut);this.queryRef?(this.queryError$.next({}),"refetch"===ut.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(nn).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:nn}).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(nn),this.queryRef.valueChanges.pipe((0,mn.s)(this)).subscribe(Rn=>{this.queryResult$.next(Rn),(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))}),this.loading$=this.queryResult$.pipe((0,Ui.E)("loading"),(0,J.F)()),this.connection$=this.queryResult$.pipe((0,Ui.E)("data","browseVariants"),(0,qt.p)(fo.kP)),this.pageInfo$=this.connection$.pipe((0,Ui.E)("pageInfo"),(0,qt.p)(fo.kP)),this.row$=(0,uo.z)([this.connection$.pipe((0,Ui.E)("edges"),(0,qt.p)(fo.kP),(0,ve.T)(ut=>ut.map(nn=>nn.node))),this.onSetSelectedRow$]).pipe((0,ve.T)(([ut,nn])=>ut.map(Rn=>{if(Rn)return{...Rn,variant:{__typename:"Variant",id:Rn.id,name:Rn.name,link:Rn.link},feature:{__typename:"Feature",id:Rn.featureId,name:Rn.featureName,link:Rn.featureLink},selected:nn.has(Rn.id)}}))),this.col$=new dn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,ve.T)(ut=>this.getColPrefsFromTableConfig(ut))),this.onPreferenceChange$.pipe((0,Gi.E)(this.col$),(0,ve.T)(([ut,nn])=>this.getTableConfigFromColPrefs(ut,nn)),(0,mn.s)(this)).subscribe(ut=>{this.col$.next(ut)}),this.onSetTableFilter$=new dn.t([]),this.onSetTableFilter$.pipe((0,mn.s)(this)).subscribe(ut=>{const nn=this.col$.getValue();ut.forEach(Rn=>{const Ii=nn.find(So=>So.key===Rn.key);if(void 0!==Ii.filter.inputType){const So=Ii.filter.options[0];if(null===Rn.value)return Ii.filter.options=[{...So,value:null}],void Ii.filter.changes.next(Rn);if(Array.isArray(Rn.value)&&0===Rn.value.length)return Ii.filter.options=[{...So,value:null}],void Ii.filter.changes.next({...Rn,value:null});let No;Array.isArray(Rn.value)?Rn.value.length>0&&(No=Rn.value[0]):No=Rn.value;const sc=Ii.filter.typename;if(!sc||!No)return void console.error(`variant-manager requires column config '${Ii.key}' provide a typename for cvcTablePrefs Input to set its filter`);const dl=this.getEntityName(sc,No);if(!dl)return;Ii.filter.options=[{...So,value:dl}],Ii.filter.changes.next({...Rn,value:dl})}else ph(Ii)&&Ii.filter.changes.next(Rn)})}),this.onSetTablePref$=new dn.t([]),this.onSetTablePref$.pipe((0,Gi.E)(this.setPreference$),(0,ve.T)(([ut,nn])=>{const Rn=[];return ut.forEach(Ii=>{let So=nn.find(No=>No.value===Ii.value);So?Rn.push({...So,...Ii}):console.warn(`variant-manager onSetTablePref$ received updated preferences for column '${Ii.value}', but a column with that key could not be found.`)}),Rn}),(0,mn.s)(this)).subscribe(ut=>{this.onPreferenceChange$.next(ut)}),this.onRowSelected$.pipe((0,Gi.E)(this.onSetSelectedRow$),(0,mn.s)(this)).subscribe(([ut,nn])=>{ut.selected?nn.add(ut.id):nn.delete(ut.id),this.onSetSelectedRow$.next(nn),this.cvcSelectedIdsChange.next(Array.from(nn))}),this.onScroll$.pipe((0,ve.T)(ut=>"stop"!==ut),(0,J.F)(),(0,mn.s)(this)).subscribe(ut=>{this.isScrolling=ut,this.cdr.detectChanges()}),this.onScroll$.pipe((0,qt.p)(ut=>"bottom"===ut),(0,Gi.E)(this.pageInfo$),(0,ve.T)(([ut,nn])=>nn),(0,mn.s)(this)).subscribe(ut=>{ut.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,Gi.E)((0,jo.of)(this.tableConfig.get())),(0,mn.s)(this)).subscribe(([b,c])=>{const h=[];c.forEach(_=>{if(Zh(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),ph(_)){const ne=_.filter.options.find(ut=>1==ut.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ne||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const c=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...c,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ne=>null!==ne.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?Zn.UEL.Asc:Zn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let c={};return b.filter&&b.filter.forEach(h=>{c[c4[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),c}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,c){return c.forEach(h=>{if(e2.find(ne=>ne===h.key))return;const _=b.find(ne=>ne.value===h.key);_&&(h.hidden=!_?.checked)}),[...c]}getColPrefsFromTableConfig(b){let c=[];return b.forEach(h=>{e2.find(_=>_===h.key)||c.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),c}getSortColumnFromColKey(b){return a4[b]}getEntityName(b,c){const h={id:`${b}:${c}`,fragment:Bu.J1` - fragment Linkable${b}Entity on ${b} { - id - name - link - }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`variant-manager onSetTableFilter$ could not find cached entity ${b}:${c} to populate input filter`)}trackByIndex(b,c){return c?.id}ngOnChanges(b){if(b.cvcTableSettings){const c=b.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(b.cvcSelectedIds){const c=b.cvcSelectedIds.currentValue,h=new Set;void 0!==c&&c.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(c){return new(c||N8)(e.rXU(Zn.ngC),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:N8,selectors:[["cvc-variant-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["staticList",""],["staticValue",""],["emptyDefaultCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[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,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["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,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],[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,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[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"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["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"],[3,"innerHtml"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["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,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[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"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["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,"ngModelChange","ngModel"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-card",21)(1,"nz-table",22,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(ut){return e.eBV(_),e.Njj(h.onScroll$.next(ut))})("cvcTableScrollerOnFetch",function(ut){return e.eBV(_),e.Njj(h.onFetchMore$.next(ut))}),e.DNE(8,s2,5,2,"thead",23)(9,Kp,2,0,"tbody",23),e.k0s()(),e.DNE(10,Ch,3,2,"ng-template",null,1,e.C5r)(12,z4,4,2,"ng-template",null,2,e.C5r)(14,Xp,19,13,"ng-template",null,3,e.C5r)}if(2&c){const _=e.sdS(13),ne=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ne),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,Lf))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,Fp))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[M.Sq,M.bT,M.T3,tn.b,ae,Gs,eo,ql,ws.o,$c.M,t.me,t.BC,t.vS,yi.Nj,Xn.aO,Xn.dn,hi.c,ho.p,L.Uq,L.e,Z.Dn,F.Sy,F.tg,F.vN,qe.Di,Yo.cK,dt.Ov,ns.wQ,_e,et,_i.L_,to.CP,to.Cc,to.SO,to._4,to.GM,to.IL,to.aj,to.kt,to.CC,to.OL,to.Kg,to.jc,to.oZ,Gn.s,hn.LH,t2,p4,Pp,Cr,va.pW,Xr.M,Bi,yi.L9],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})};Th=(0,bi.Cg)([(0,mn.d)()],Th);const Gf=()=>[0,0];function zh(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(2),e.JRh(c.message)}}function g2(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.JRh(c.successMessage)}}let Mh=class k8{set cvcFeatureId(b){b&&this.featureId$.next(b)}set cvcFeatureName(b){b&&this.featureName$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.featureName$=new dn.t(void 0),this.featureId$=new dn.t(void 0),this.formMessageDisplay$=new dn.t({message:"Variant does not exist, create it?"}),this.queryMutator=new Vr.E(this.errors),this.addVariantMutator=new Vr.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureId",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Variant"}}],this.featureId$.pipe((0,mn.s)(this)).subscribe(h=>{this.model.featureId=h}),this.searchString$.pipe((0,mn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("variant-quick-add form model submitted.",h),this.submitVariant(h)})}submitVariant(b){b.name&&b.featureId?this.mutationState=this.addVariantMutator.mutate(this.query,{name:b.name,featureId:b.featureId,organizationId:b.organizationId},{},c=>{console.log("variant-quick-add submit data callback",c),c.createVariant&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{c&&c.createVariant&&this.cvcOnCreate.next({id:c.createVariant.variant.id,new:c.createVariant.new})},1e3))}):console.error("variant-quick-add form submitVariant requires model with valid name and featureId.")}ngOnChanges(b){if(b.cvcFeatureId){const c=b.cvcFeatureId.currentValue;this.featureId$.next(c),this.model={...this.model,featureId:c}}b.cvcFeatureName&&this.featureName$.next(b.cvcFeatureName.currentValue)}static#e=this.\u0275fac=function(c){return new(c||k8)(e.rXU(Zn.wdL),e.rXU(ca.N))};static#t=this.\u0275cmp=e.VBU({type:k8,selectors:[["cvc-variant-quick-add-form"]],inputs:{cvcFeatureId:"cvcFeatureId",cvcFeatureName:"cvcFeatureName",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:8,vars:10,consts:[["success",""],[4,"ngrxLet"],["entityType","Variant",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(c,h){if(1&c){const _=e.RV6();e.DNE(0,zh,3,1,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,g2,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(ut){return e.eBV(_),e.Njj(h.model=ut)}),e.k0s()()()()()}if(2&c){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,Gf)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}},dependencies:[Ss.G,m.aF,t.qT,t.cb,yi.Nj,L.Uq,L.e,t.j4],encapsulation:2,changeDetection:0})};Mh=(0,bi.Cg)([(0,mn.d)()],Mh);const O4=["optionTemplates"],I4=()=>[6,6],Fu=(u,b)=>({show:u,hide:b});function Qp(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",11)(1,"button",12),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onShowMgrClick$.next())}),e.nrm(2,"span",13),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.EFF(5," Manager "),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(6,Fu,e.bMT(3,2,c.showMgr$),!e.bMT(4,4,c.showMgr$)))("nzType","caret-right")}}function Jp(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",14)(1,"cvc-variant-manager",15),e.nI1(2,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,1,c.onVid$))}}function w4(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",20),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c.variantAliases.join(", "))("innerHtml",e.i5U(3,2,c.variantAliases.join(", "),h),e.npT)}}function Zp(u,b){1&u&&e.EFF(0,"--")}function qp(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",17),e.j41(1,"span",18)(2,"strong"),e.EFF(3,"Aliases:"),e.k0s(),e.DNE(4,w4,4,5,"ng-container",19)(5,Zp,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const c=e.sdS(6),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(4),e.Y8G("ngIf",h.variantAliases.length>0)("ngIfElse",c)}}function ll(u,b){1&u&&(e.qex(0),e.DNE(1,qp,7,5,"ng-template",null,2,e.C5r),e.bVm())}function B1(u,b){if(1&u&&(e.qex(0),e.DNE(1,ll,3,0,"ng-container",16),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function e0(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",21)(1,"cvc-entity-tag",22),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Variant:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function t0(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-variant-quick-add-form",23),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onSelectOrCreate(_))}),e.k0s()}if(2&u){const c=b.$implicit,h=e.XpG();e.Y8G("cvcSearchString",c)("cvcFeatureId",e.bMT(1,3,h.onFeatureId$))("cvcFeatureName",e.bMT(2,5,h.onFeatureName$))}}const n0=qi(Mi(),Lo());let v2=(()=>{class u extends n0{constructor(c,h,_,ne){super(),this.taq=c,this.tq=h,this.featureQuery=_,this.changeDetectorRef=ne,this.onModel$=new Un.c,this.defaultOptions={props:{label:"Variant",placeholder:"Search Variants",requireFeature:!0,requireFeaturePlaceholderFn:ut=>`Search ${ut} Variants`,requireFeaturePrompt:"Select a Feature to search its Variants",isMultiSelect:!1,entityName:{singular:"Variant",plural:"Variants"},showManagerBtn:!1,minSearchStrLength:0}},this.onFeatureName$=new dn.t(void 0),this.onVid$=new Ni.m,this.onShowMgrClick$=new V.B,this.showMgr$=this.onShowMgrClick$.pipe((0,_a.S)((ut,nn)=>!ut,!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,qt.p)(c=>c),(0,ds.s)(1),(0,mn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.configureStateConnections(),this.onVid$.pipe((0,mn.s)(this)).subscribe(),this.onVid$.next(this.formControl.value),this.onModel$=(0,uo.z)([this.onFeatureId$,this.onSearch$]).pipe((0,ve.T)(([c,h])=>({featureId:c,name:h}))),this.onValueChange$.pipe((0,Gi.E)(this.onVid$),(0,mn.s)(this)).subscribe(([c,h])=>{Array.isArray(c)&&this.onVid$.next(c)})}configureStateConnections(){if(this.state&&this.props.requireFeature){if(!this.state?.fields.featureId$)return void console.error(`${this.field.id} requireFeature is set, but no featureId$ subject found on state.`);this.onFeatureId$=this.state.fields.featureId$,this.onFeatureId$.pipe((0,mn.s)(this)).subscribe(c=>{this.onFeatureId(c)})}}getTypeaheadVarsFn(c){return{name:c,featureId:this.selectedFeatureId}}getTypeaheadResultsFn(c){return c.data.variantsTypeahead}getTagQueryVarsFn(c){return{variantId:c}}getTagQueryResultsFn(c){return c.data.variant}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}showAddBehavior(c,h){const _=c.toLowerCase();return c.length>=3&&!h.some(ne=>ne.name.toLowerCase()===_)}onSelectOrCreate(c){this.onPopulate$.next(c.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(c.new)}onFeatureId(c){this.selectedFeatureId=c,!c&&this.props.requireFeature?(this.resetField(),this.props.description=this.props.requireFeaturePrompt,this.props.placeholder="Select a Variant",this.props.extraType="prompt",this.onFeatureName$.next(void 0)):c&&(this.props.description=void 0,this.props.extraType=void 0,du(this.featureQuery.fetch({featureId:c},{fetchPolicy:"cache-first"})).then(({data:h})=>{h?.feature?.name?(this.props.placeholder=this.props.requireFeature?this.props.requireFeaturePlaceholderFn(h.feature.name):this.props.placeholder,this.onFeatureName$.next(h.feature.name)):console.error(`${this.field.id} could not fetch feature name for Feature:${c}.`)}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.duD),e.rXU(Zn.y3W),e.rXU(Zn.Lm8),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(O4,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:20,vars:41,consts:[["selectedTemplate",""],["addVariant",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","auto"],["nz-tooltip","","nzTooltipTitle","Select a Feature to enable field.",3,"nzTooltipTrigger"],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcAddEntityModel","cvcAddEntityBehavior","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcOptions","cvcSelectOpen","cvcShowError","cvcLoading","cvcParamName"],["nzFlex","50px",4,"ngIf"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureId","cvcFeatureName"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",4)(1,"nz-col",5)(2,"span",6),e.nI1(3,"ngrxPush"),e.j41(4,"cvc-entity-select",7),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()()(),e.DNE(12,Qp,6,9,"nz-col",8)(13,Jp,3,3,"nz-col",9),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,B1,3,3,"ng-container",10)(16,e0,2,3,"ng-template",null,0,e.C5r)(18,t0,3,7,"ng-template",null,1,e.C5r)}if(2&h){const ne=e.sdS(17),ut=e.sdS(19);e.Y8G("nzGutter",e.lJ4(40,I4)),e.R7$(2),e.Y8G("nzTooltipTrigger",_.props.requireFeature&&!e.bMT(3,22,_.onFeatureId$)?"hover":null),e.R7$(2),e.Y8G("cvcAddEntity",ut)("cvcAddEntityModel",e.bMT(5,24,_.onModel$))("cvcAddEntityBehavior",_.showAddBehavior)("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(6,26,_.result$))("cvcDisabled",_.props.requireFeature&&!e.bMT(7,28,_.onFeatureId$))("cvcOptions",e.bMT(8,30,_.selectOption$))("cvcSelectOpen",e.bMT(9,32,_.selectOpen$))("cvcShowError",_.showError)("cvcLoading",e.bMT(10,34,_.isLoading$))("cvcParamName",e.bMT(11,36,_.onFeatureName$)),e.R7$(8),e.Y8G("ngIf",_.props.showManagerBtn),e.R7$(),e.Y8G("ngIf",e.bMT(14,38,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"],changeDetection:0})}return u})();const o0={types:[{name:"variant-select",wrappers:["form-field"],component:v2},{name:"variant-multi-select",wrappers:["form-field"],component:v2,defaultOptions:{props:{label:"Variants",isMultiSelect:!0}}}]};let r0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,jn,Ft._,En,Go.P,me.i,vc,Ea,Kr,Sl,Ri.F,Os.y,m.qy.forChild(o0),t.YN,Cn.$,rt.jl,Xn.Zw,K.PQ,L.f3,Z.Y3,F.j,ci.U6,Qe.DH,qe.kT,Xn.Zw,Yo.Ti,dt.IJ,ns.Cu,K.PQ,L.f3,Z.Y3,F.j,ht,_i.MC,to.$G,Gn.T,hn.Qt,qe.kT,t.X1]})}return u})();e.wjB(v2,function(){return[M.YU,M.Sq,M.bT,Yt,tn.b,yi.Nj,Xn.aO,hi.c,ho.p,L.Uq,L.e,Z.Dn,qe.Di,hn.LH,Th,Mh]},function(){return[Xr.M,yi.L9]});const x4=["optionTemplates"];function s0(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,c.soid,h),e.npT)}}function a0(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,s0,4,4,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.soid)}}function c0(u,b){1&u&&(e.qex(0),e.DNE(1,a0,3,4,"ng-template",null,1,e.C5r),e.bVm())}function l0(u,b){if(1&u&&(e.qex(0),e.DNE(1,c0,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Sh(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","VariantType:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ul=qi(Mi(),Lo());let $1=(()=>{class u extends ul{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,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.'}},this.placeholder$=new dn.t(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,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Zn.Rqb),e.rXU(Zn.q7o),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(x4,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:8,vars:19,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ne),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(5,l0,3,3,"ng-container",3)(6,Sh,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,11,_.placeholder$))("cvcResults",e.bMT(2,13,_.result$))("cvcOptions",e.bMT(3,15,_.selectOption$))("cvcShowError",_.showError)("cvcLoading",e.bMT(4,17,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,yi.Nj,qe.Di,Yt,tn.b,yi.L9,Xr.M],changeDetection:0})}return u})();const P4={types:[{name:"variant-type-select",wrappers:["form-field"],component:$1,defaultOptions:{props:{label:"Variant Type"}}},{name:"variant-type-multi-select",wrappers:["form-field"],component:$1,defaultOptions:{props:{isMultiSelect:!0,label:"Variant Types"}}}]};let F4=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,m.qy.forChild(P4),Cn.$,Xn.Zw,Qe.DH,_i.MC,ci.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,K.PQ,rt.jl,qe.kT,Gn.T,En,jn,me.i,Ft._]})}return u})(),A4=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,li,Sr,xr,us,Vn,bo,Ne,Pc,Hs,xi,Na,fc,Wi,gc,Wo,Fr,lu,nd,Zd,tc,$h,_d,Du,S1,ih,n4,Nr,Sn,kr,na,r0,F4]})}return u})();const Yf=()=>[6,6];function u0(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.SpI(" ",c.props.addFormTitle,"\n")}}let R4=class V8 extends m.cm{constructor(){super(),this.contentTemplate$=new Ni.m}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.`)}static#e=this.\u0275fac=function(c){return new(c||V8)};static#t=this.\u0275cmp=e.VBU({type:V8,selectors:[["cvc-add-entity-form-wrapper"]],features:[e.Vt3],decls:10,vars:7,consts:[["fieldComponent",""],["titleTemplate",""],[3,"nzGutter"],["nzFlex","auto"],["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"]],template:function(c,h){if(1&c&&(e.j41(0,"nz-row",2)(1,"nz-col",3),e.eu8(2,null,0),e.k0s(),e.j41(4,"nz-col",4)(5,"button",5),e.nI1(6,"ngrxPush"),e.nrm(7,"span",6),e.k0s()()(),e.DNE(8,u0,1,1,"ng-template",null,1,e.C5r)),2&c){const _=e.sdS(9);e.Y8G("nzGutter",e.lJ4(6,Yf)),e.R7$(5),e.Y8G("disabled",null==h.field.props?null:h.field.props.disabled)("nzPopoverTitle",_)("nzPopoverContent",e.bMT(6,4,h.contentTemplate$))}},dependencies:[Xn.aO,hi.c,ho.p,_i.L_,Z.Dn,L.Uq,L.e,yi.L9],styles:[".add-button[_ngcontent-%COMP%]{font-size:24px;color:#cfcfdf}"],changeDetection:0})};R4=(0,bi.Cg)([(0,mn.d)()],R4);const _2={wrappers:[{name:"add-entity-form",component:R4}]};let y2=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,m.qy.forChild(_2),Xn.Zw,_i.MC,Z.Y3,L.f3]})}return u})();function Wf(u,b){1&u&&e.nrm(0,"formly-field",2),2&u&&e.Y8G("field",b.$implicit)}const Kf={size:"default"},h0={wrappers:[{name:"form-card",component:(()=>{class u extends m.cm{get errorState(){return this.showError?"error":""}constructor(){super(),this.wrapperOptions={...Kf}}ngOnInit(){this.props.formCardOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formCardOptions})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-card"]],features:[e.Vt3],decls:2,vars:3,consts:[[3,"nzTitle","nzSize"],[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-card",0),e.DNE(1,Wf,1,1,"formly-field",1),e.k0s()),2&h){let ne;e.Y8G("nzTitle",_.wrapperOptions.title)("nzSize",null!==(ne=_.wrapperOptions.size)&&void 0!==ne?ne:"default"),e.R7$(),e.Y8G("ngForOf",_.field.fieldGroup)}},dependencies:[M.Sq,m.ac,Yo.cK]})}return u})()}]};let p0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,m.qy.forChild(h0),L.f3,Yo.Ti,dt.IJ]})}return u})();const N4={wrappers:[{name:"form-footer",component:(()=>{class u extends m.cm{ngOnInit(){}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-footer"]],features:[e.Vt3],decls:4,vars:0,consts:[["fieldComponent",""],[1,"form-footer"],["nzSpan","24",1,"submit-col"]],template:function(h,_){1&h&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s()())},dependencies:[L.Uq,L.e],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})}return u})()}]};let m0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,L.f3,m.qy.forChild(N4)]})}return u})();var g0=a(2242),k4=a(2e3),C2=a(9541);let v0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,L.f3,Yo.Ti,C2.hM,k4.WF,$r.rD,Gn.T,qe.kT,Re.s]})}return u})(),b2=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Xn.Zw,zu.Yb,ns.Cu]})}return u})();var _0=a(5312);const V4={VALID:"success",INVALID:"error",PENDING:"processing",DISABLED:"default"};let y0=(()=>{class u{constructor(){this.tagColor="default"}set cvcFormControlStatus(c){this._status=c,this.tagColor=c?V4[c]:"default"}get cvcFormControlStatus(){return this._status}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-status-tag"]],inputs:{cvcFormControlStatus:"cvcFormControlStatus"},decls:3,vars:4,consts:[[3,"nzColor"]],template:function(h,_){1&h&&(e.j41(0,"nz-tag",0),e.EFF(1),e.nI1(2,"lowercase"),e.k0s()),2&h&&(e.Y8G("nzColor",_.tagColor),e.R7$(),e.SpI(" ",_.cvcFormControlStatus?e.bMT(2,2,_.cvcFormControlStatus):"UNKNOWN","\n"))},dependencies:[Gn.s,M.GH]})}return u})();const Au=(u,b)=>({key:u,ctrl:b});function C0(u,b){if(1&u&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&u){const c=e.XpG(2).ctrl;e.R7$(),e.SpI(" ",c.value," ")}}function b0(u,b){1&u&&(e.j41(0,"span",9),e.EFF(1," undefined "),e.k0s())}function L4(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.EFF(3),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.DNE(5,C0,2,1,"span",6)(6,b0,2,0,"span",7),e.k0s()(),e.j41(7,"nz-list-item-extra"),e.nrm(8,"cvc-form-status-tag",8),e.k0s()()),2&u){const c=e.XpG(),h=c.ctrl,_=c.key;e.R7$(3),e.SpI(" ",_," "),e.R7$(2),e.Y8G("ngIf",h.value),e.R7$(),e.Y8G("ngIf",!h.value),e.R7$(2),e.Y8G("cvcFormControlStatus",h.status)}}function E0(u,b){}function Qf(u,b){if(1&u&&e.DNE(0,E0,0,0,"ng-template",12),2&u){const c=b.$implicit;e.XpG(3);const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,Au,c.key,c.value))}}function Jf(u,b){if(1&u&&(e.j41(0,"strong"),e.EFF(1),e.k0s()),2&u){const c=e.XpG(2).key;e.R7$(),e.JRh(c)}}function Zf(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-card",10)(2,"nz-list",11),e.DNE(3,Qf,1,5,null,5),e.nI1(4,"keyvalue"),e.k0s()(),e.DNE(5,Jf,2,1,"ng-template",null,2,e.C5r),e.k0s()),2&u){const c=e.XpG(),h=c.ctrl,_=c.key;e.R7$(),e.Y8G("nzTitle",_),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,2,h.controls))}}function qf(u,b){if(1&u&&e.DNE(0,L4,9,4,"nz-list-item",6)(1,Zf,7,4,"nz-list-item",6),2&u){const c=b.ctrl;e.Y8G("ngIf",!c.controls),e.R7$(),e.Y8G("ngIf",c.controls)}}function T0(u,b){}function $8(u,b){if(1&u&&e.DNE(0,T0,0,0,"ng-template",12),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,Au,c.key,c.value))}}function H8(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-list",4),e.DNE(2,qf,2,2,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(4,$8,1,5,null,5),e.nI1(5,"keyvalue"),e.bVm()),2&u){const c=b.ngIf;e.R7$(4),e.Y8G("ngForOf",e.bMT(5,1,c.controls))}}function Dh(u,b){1&u&&e.EFF(0," No AbstractFormControl provided. ")}let e3=(()=>{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(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-debug-field-list"]],inputs:{cvcAbstractControl:"cvcAbstractControl"},decls:3,vars:2,consts:[["noFormControl",""],["ctrlTemplateRef",""],["cardExtra",""],[4,"ngIf","ngIfElse"],["nzSize","small"],[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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,_){if(1&h&&e.DNE(0,H8,6,3,"ng-container",3)(1,Dh,1,0,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf",_.formControl)("ngIfElse",ne)}},dependencies:[M.Sq,M.bT,M.T3,Yo.cK,$r.eE,$r.lQ,$r.qx,$r.mf,$r.YU,$r.$2,y0,M.lG],styles:["[_nghost-%COMP%] nz-card .ant-card-body{padding:6px 0}"]})}return u})();function t3(u,b){if(1&u&&(e.qex(0),e.nrm(1,"ngx-json-viewer",9),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("json",c.watchModel)}}function n3(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-descriptions",10)(2,"nz-descriptions-item",11),e.nrm(3,"cvc-form-status-tag",12),e.k0s(),e.j41(4,"nz-descriptions-item",13),e.EFF(5),e.k0s(),e.j41(6,"nz-descriptions-item",14),e.EFF(7),e.k0s(),e.j41(8,"nz-descriptions-item",15),e.EFF(9),e.k0s(),e.j41(10,"nz-descriptions-item",16),e.EFF(11),e.k0s(),e.j41(12,"nz-descriptions-item",17),e.EFF(13),e.k0s()(),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.pending," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.touched," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.valid," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.dirty," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.enabled," ")}}function z0(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-form-debug-field-list",18),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcAbstractControl",c.cvcForm)}}function i3(u,b){1&u&&(e.qex(0),e.EFF(1," State Content "),e.bVm())}function o3(u,b){if(1&u&&(e.j41(0,"nz-row")(1,"nz-col",19),e.EFF(2," Form Details "),e.k0s(),e.j41(3,"nz-col",20),e.nrm(4,"cvc-form-status-tag",12),e.k0s()()),2&u){const c=e.XpG();e.R7$(4),e.Y8G("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status)}}let B4=class L8{constructor(b){this.cdr=b,this.selectedIndex=0}ngOnInit(){if(!this.cvcForm)throw new Error("cvc-form-debug requires valid cvcForm Input.");this.valueChange$=new dn.t(this.cvcForm.value),this.statusChange$=new dn.t(this.cvcForm.status),this.formChange$=pr([this.statusChange$,this.valueChange$]),this.watchModel=this.cvcModel,this.subscriptions=[this.cvcForm.valueChanges.subscribe(b=>{this.watchModel={...this.cvcModel},this.valueChange$.next(b)}),this.cvcForm.statusChanges.subscribe(b=>{this.statusChange$.next(b)}),this.formChange$.subscribe(b=>{this.cdr.detectChanges()})]}static#e=this.\u0275fac=function(c){return new(c||L8)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:L8,selectors:[["cvc-form-debug"]],inputs:{cvcForm:"cvcForm",cvcModel:"cvcModel"},decls:14,vars:7,consts:[["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzTitle"],["nzSize","small",3,"nzSelectedIndexChange","nzSelectedIndex"],["nzTitle","Model"],["nzTitle","Controls"],["nzTitle","State"],["nzTitle","Form Status"],[3,"ngSwitch"],[4,"ngSwitchCase"],[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(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-card",1)(1,"nz-card-tab")(2,"nz-tabset",2),e.mxI("nzSelectedIndexChange",function(ut){return e.eBV(_),e.DH7(h.selectedIndex,ut)||(h.selectedIndex=ut),e.Njj(ut)}),e.nrm(3,"nz-tab",3)(4,"nz-tab",4)(5,"nz-tab",5)(6,"nz-tab",6),e.k0s()(),e.qex(7,7),e.DNE(8,t3,2,1,"ng-container",8)(9,n3,14,7,"ng-container",8)(10,z0,2,1,"ng-container",8)(11,i3,2,0,"ng-container",8),e.bVm(),e.k0s(),e.DNE(12,o3,5,1,"ng-template",null,0,e.C5r)}if(2&c){const _=e.sdS(13);e.Y8G("nzTitle",_),e.R7$(2),e.R50("nzSelectedIndex",h.selectedIndex),e.R7$(5),e.Y8G("ngSwitch",h.selectedIndex),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2)}},dependencies:[M.ux,M.e1,L.Uq,L.e,Yo.cK,Yo.RO,C2.JZ,C2.rE,k4.xA,k4.gr,Re.J,e3,y0],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})};B4=(0,bi.Cg)([(0,mn.d)({arrayName:"subscriptions"})],B4);const r3=()=>[8,8];function s3(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"cvc-form-debug",5),e.k0s()),2&u){const c=e.XpG();e.Y8G("nzSpan",8),e.R7$(),e.Y8G("cvcForm",c.form)("cvcModel",c.model)}}let Oh=class B8 extends m.cm{constructor(){super()}get errorState(){return this.showError?"error":""}ngOnInit(){this.props.showDevPanel=!_0.c.production&&(this.props.showDevPanel||false)}static#e=this.\u0275fac=function(c){return new(c||B8)};static#t=this.\u0275cmp=e.VBU({type:B8,selectors:[["cvc-form-layout-wrapper"]],features:[e.Vt3],decls:5,vars:4,consts:[["fieldComponent",""],[3,"nzGutter"],[1,"form-col",3,"nzSpan"],["class","status-col",3,"nzSpan",4,"ngIf"],[1,"status-col",3,"nzSpan"],[3,"cvcForm","cvcModel"]],template:function(c,h){1&c&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s(),e.DNE(4,s3,2,3,"nz-col",3),e.k0s()),2&c&&(e.Y8G("nzGutter",e.lJ4(3,r3)),e.R7$(),e.Y8G("nzSpan",h.props.showDevPanel?16:24),e.R7$(3),e.Y8G("ngIf",h.props.showDevPanel))},dependencies:[M.bT,L.Uq,L.e,B4],changeDetection:0})};Oh=(0,bi.Cg)([(0,mn.d)({arrayName:"subscriptions"})],Oh);const j8={wrappers:[{name:"form-layout",component:Oh}]};let U8=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,m.qy.forChild(j8),Xn.Zw,Yo.Ti,Z.Y3,Gn.T,C2.hM,_i.MC,$r.rD,L.f3,g0.i,b2,v0,Re.s]})}return u})();function $4(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){let c;const h=b.$implicit,_=e.XpG(2);e.Y8G("nzSpan",null!==(c=_.wrapperOptions.span)&&void 0!==c?c:null),e.R7$(),e.Y8G("field",h)}}function G8(u,b){if(1&u&&e.DNE(0,$4,2,2,"nz-col",3),2&u){const c=e.XpG();e.Y8G("ngForOf",c.field.fieldGroup)}}function Y8(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const c=b.$implicit,h=e.XpG(3);e.Y8G("nzFlex",h.wrapperOptions.flex),e.R7$(),e.Y8G("field",c)}}function W8(u,b){if(1&u&&(e.qex(0),e.DNE(1,Y8,2,2,"nz-col",7),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function K8(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let c,h,_,ne,ut,nn;const Rn=b.$implicit,Ii=e.XpG(3);e.Y8G("nzXs",null!==(c=Ii.wrapperOptions.responsive.xs)&&void 0!==c?c:null)("nzSm",null!==(h=Ii.wrapperOptions.responsive.sm)&&void 0!==h?h:null)("nzMd",null!==(_=Ii.wrapperOptions.responsive.md)&&void 0!==_?_:null)("nzLg",null!==(ne=Ii.wrapperOptions.responsive.lg)&&void 0!==ne?ne:null)("nzXl",null!==(ut=Ii.wrapperOptions.responsive.xl)&&void 0!==ut?ut:null)("nzXXl",null!==(nn=Ii.wrapperOptions.responsive.xxl)&&void 0!==nn?nn:null),e.R7$(),e.Y8G("field",Rn)}}function X8(u,b){if(1&u&&(e.qex(0),e.DNE(1,K8,2,7,"nz-col",9),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function c3(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){const c=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzSpan",_.wrapperOptions.spanIndexed[h]),e.R7$(),e.Y8G("field",c)}}function E2(u,b){if(1&u&&(e.qex(0),e.DNE(1,c3,2,2,"nz-col",3),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function T2(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let c,h,_,ne,ut,nn;const Rn=b.$implicit,Ii=b.index,So=e.XpG(3);e.Y8G("nzXs",null!==(c=So.wrapperOptions.responsiveIndexed[Ii].xs)&&void 0!==c?c:null)("nzSm",null!==(h=So.wrapperOptions.responsiveIndexed[Ii].sm)&&void 0!==h?h:null)("nzMd",null!==(_=So.wrapperOptions.responsiveIndexed[Ii].md)&&void 0!==_?_:null)("nzLg",null!==(ne=So.wrapperOptions.responsiveIndexed[Ii].lg)&&void 0!==ne?ne:null)("nzXl",null!==(ut=So.wrapperOptions.responsiveIndexed[Ii].xl)&&void 0!==ut?ut:null)("nzXXl",null!==(nn=So.wrapperOptions.responsiveIndexed[Ii].xxl)&&void 0!==nn?nn:null),e.R7$(),e.Y8G("field",Rn)}}function M0(u,b){if(1&u&&(e.qex(0),e.DNE(1,T2,2,7,"nz-col",9),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function S0(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const c=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzFlex",_.wrapperOptions.flexIndexed[h]),e.R7$(),e.Y8G("field",c)}}function D0(u,b){if(1&u&&(e.qex(0),e.DNE(1,S0,2,2,"nz-col",7),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function O0(u,b){if(1&u&&(e.qex(0),e.DNE(1,W8,2,1,"ng-container",6)(2,X8,2,1,"ng-container",6)(3,E2,2,1,"ng-container",6)(4,M0,2,1,"ng-container",6)(5,D0,2,1,"ng-container",6),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",c.wrapperOptions.flex),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.responsive),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.spanIndexed),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.responsiveIndexed),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.flexIndexed)}}const l3={gutter:[8,8],span:24},Ad={wrappers:[{name:"form-row",component:(()=>{class u extends m.cm{constructor(){super(),this.wrapperOptions={...l3},this.topMargin="0"}ngOnInit(){this.props.formRowOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formRowOptions}),this.topMargin=Array.isArray(this.wrapperOptions.gutter)?this.wrapperOptions.gutter[1]>0?this.wrapperOptions.gutter[1]/2+"px":"0":this.wrapperOptions.gutter&&this.wrapperOptions.gutter>0?this.wrapperOptions.gutter+"px":"0"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-row"]],features:[e.Vt3],decls:5,vars:4,consts:[["defaultCol",""],[1,"form-row-wrapped",3,"nzGutter"],[4,"ngIf","ngIfElse"],[3,"nzSpan",4,"ngFor","ngForOf"],[3,"nzSpan"],[3,"field"],[4,"ngIf"],[3,"nzFlex",4,"ngFor","ngForOf"],[3,"nzFlex"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"]],template:function(h,_){if(1&h&&(e.j41(0,"div")(1,"nz-row",1),e.DNE(2,G8,1,1,"ng-template",null,0,e.C5r)(4,O0,6,5,"ng-container",2),e.k0s()()),2&h){let ne;const ut=e.sdS(3);e.BMQ("style","margin-top: "+_.topMargin,e.$dS),e.R7$(),e.Y8G("nzGutter",null!==(ne=_.wrapperOptions.gutter)&&void 0!==ne?ne:null),e.R7$(3),e.Y8G("ngIf",_.wrapperOptions.flex||_.wrapperOptions.flexIndexed||_.wrapperOptions.spanIndexed||_.wrapperOptions.responsive||_.wrapperOptions.responsiveIndexed)("ngIfElse",ut)}},dependencies:[M.Sq,M.bT,L.Uq,L.e,m.ac],changeDetection:0})}return u})()}]};let Ia=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,K.PQ,L.f3,m.qy.forChild(Ad)]})}return u})(),ia=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,U8,p0,m0,En,Ia,y2]})}return u})(),I0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({providers:[{provide:m.hL,multi:!0,useFactory:ke,deps:[s.nX]}],imports:[m.qy.forRoot(H),t.X1,K.PQ,xe,ia,Re.s,t.X1,m.qy,xe,K.PQ,ia,A4]})}return u})()},5741:(Rt,De,a)=>{function t(A){let I={value:void 0,unset:void 0};return A&&A.trim().length>0?I.value=A.trim():I.unset=!0,I}function s(A){let I={value:void 0,unset:void 0};return void 0!==A?I.value=A:I.unset=!0,I}a.d(De,{Kd:()=>j,cD:()=>m,pz:()=>s,q2:()=>t});var m=function(A){return A[A.NotApplicable=0]="NotApplicable",A[A.NoneFound=1]="NoneFound",A[A.Found=2]="Found",A}(m||{});const j=[{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"}]},9145:(Rt,De,a)=>{a.d(De,{$Ni:()=>pe,$Pl:()=>ou,$TJ:()=>Xc,$UJ:()=>W1,$Vg:()=>g1,$pU:()=>ra,$qW:()=>t1,$rM:()=>ru,AsH:()=>Qi,Avr:()=>br,BMV:()=>sa,BOs:()=>Fs,B_h:()=>vl,BaG:()=>Ea,BlQ:()=>Be,CFE:()=>ud,Ei5:()=>Oo,En6:()=>zn,FEq:()=>gr,FMZ:()=>Te,FP9:()=>Fo,FZ_:()=>Pi,Fd4:()=>Ml,Fll:()=>Wu,Fq8:()=>Fn,G4Q:()=>q1,GOU:()=>P,GUs:()=>et,GXf:()=>zt,G_G:()=>oe,H1z:()=>Ee,HAY:()=>ps,HKj:()=>el,HLX:()=>Gs,HnF:()=>Pc,I8L:()=>Na,INr:()=>Pn,IbX:()=>$o,IxG:()=>cu,J9f:()=>ga,JCx:()=>J,JTF:()=>Yu,KRr:()=>It,KiN:()=>Ks,Kkj:()=>ht,LJ9:()=>Yt,LXB:()=>G1,Lm8:()=>ql,M1P:()=>Z,MAo:()=>te,Mvn:()=>Ao,N47:()=>ea,NMX:()=>yo,NVO:()=>fe,Nac:()=>$l,Nel:()=>Pe,O3Q:()=>Ro,OLK:()=>Cc,OWv:()=>z,Osm:()=>bc,Phy:()=>S,Psd:()=>ad,Pw8:()=>$a,QVS:()=>Xu,QWP:()=>$i,QZR:()=>Ts,Qa$:()=>zo,Qfy:()=>R,Qt1:()=>Oe,RA2:()=>o1,RJ$:()=>Ct,RKe:()=>xt,RMT:()=>lu,RQS:()=>Nt,RSu:()=>hd,RSy:()=>tl,Rqb:()=>Pl,SPr:()=>h1,T31:()=>V,Thk:()=>Kt,Tj8:()=>Rs,ToY:()=>ns,UEL:()=>Ut,UK$:()=>Ju,ULh:()=>Cs,UN$:()=>vi,V1_:()=>yl,V3k:()=>Io,V9U:()=>At,VV8:()=>Mo,Vl8:()=>gu,Vue:()=>ve,W14:()=>Tt,WAS:()=>ya,WGp:()=>ua,WSr:()=>gc,WeE:()=>Vu,WgR:()=>Ha,XEW:()=>I,XJ:()=>M,XUB:()=>ye,XWi:()=>hc,Xiu:()=>E,XxZ:()=>Ne,YQp:()=>st,YSN:()=>Y,YW4:()=>j,Ye0:()=>Gc,Ype:()=>kl,Z3e:()=>Zc,ZC5:()=>Ec,ZFx:()=>zs,ZLN:()=>Ya,ZVN:()=>Jc,_f:()=>fn,a3n:()=>nd,aUH:()=>Rc,aX5:()=>tu,aZy:()=>ba,arH:()=>_c,bOY:()=>Zu,bPL:()=>ws,bz7:()=>ca,cO8:()=>en,cQZ:()=>Ra,cs4:()=>ki,d2V:()=>Ln,d52:()=>F,dbG:()=>io,duD:()=>c1,eHp:()=>Jt,eJL:()=>Po,eTd:()=>Nl,f9r:()=>jd,fQd:()=>Hr,fh2:()=>Wt,fqJ:()=>hu,fvu:()=>Yr,g1E:()=>Rl,gG1:()=>Fe,gUZ:()=>mu,gtA:()=>Yc,gwr:()=>fs,hGs:()=>We,hj:()=>kc,hzv:()=>us,iHU:()=>Ie,iSS:()=>hi,iby:()=>x,iyz:()=>ln,jaV:()=>Fi,jme:()=>G,k1Y:()=>Uu,kBo:()=>Dr,kHr:()=>mo,kKs:()=>du,kWO:()=>_a,kp0:()=>Ps,kq4:()=>yc,krZ:()=>Nc,kut:()=>Le,l20:()=>is,l76:()=>w,lBA:()=>Et,lD4:()=>U,lEz:()=>El,l_P:()=>vc,m7j:()=>$d,m9R:()=>Us,mDT:()=>fd,mRx:()=>Vl,mqi:()=>La,mww:()=>J1,nRJ:()=>Ti,ngC:()=>$r,npr:()=>Eo,oGI:()=>wt,oJ_:()=>Uo,oKj:()=>A,owd:()=>Lu,pCs:()=>Cr,paL:()=>Zl,pi3:()=>go,q7o:()=>Fl,qKP:()=>Ol,qld:()=>St,r$P:()=>Ys,rCZ:()=>Aa,rR2:()=>ds,rUT:()=>va,reo:()=>k,s91:()=>cd,sAe:()=>Tc,sZm:()=>Ta,shk:()=>X,tDA:()=>kt,tUL:()=>Lt,tas:()=>Br,txm:()=>X1,uXu:()=>ir,v8x:()=>$e,w7w:()=>L,wBW:()=>aa,wJE:()=>_r,wJP:()=>Ue,wOP:()=>cn,wVR:()=>$n,wdL:()=>uu,wkS:()=>qs,xKZ:()=>Qc,xNz:()=>xi,xPr:()=>eo,y3W:()=>sd,y5X:()=>sn,yLZ:()=>_u,yo9:()=>tt,yoY:()=>Go,ypY:()=>_e,ytN:()=>_1,zNY:()=>Pr,zf1:()=>vu});var t=a(1661),s=a(3953),M=function(g){return g.Na="NA",g.TierIii="TIER_III",g.TierIiLevelC="TIER_II_LEVEL_C",g.TierIiLevelD="TIER_II_LEVEL_D",g.TierIv="TIER_IV",g.TierILevelA="TIER_I_LEVEL_A",g.TierILevelB="TIER_I_LEVEL_B",g}(M||{}),L=function(g){return g.DoesNotSupport="DOES_NOT_SUPPORT",g.Supports="SUPPORTS",g}(L||{}),j=function(g){return g.AdverseResponse="ADVERSE_RESPONSE",g.Benign="BENIGN",g.BetterOutcome="BETTER_OUTCOME",g.LikelyBenign="LIKELY_BENIGN",g.LikelyOncogenic="LIKELY_ONCOGENIC",g.LikelyPathogenic="LIKELY_PATHOGENIC",g.Na="NA",g.Negative="NEGATIVE",g.Oncogenic="ONCOGENIC",g.Pathogenic="PATHOGENIC",g.PoorOutcome="POOR_OUTCOME",g.Positive="POSITIVE",g.ReducedSensitivity="REDUCED_SENSITIVITY",g.Resistance="RESISTANCE",g.Sensitivityresponse="SENSITIVITYRESPONSE",g.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",g}(j||{}),A=function(g){return g.AmpLevel="AMP_LEVEL",g.AssertionDirection="ASSERTION_DIRECTION",g.AssertionType="ASSERTION_TYPE",g.DiseaseName="DISEASE_NAME",g.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",g.Id="ID",g.Significance="SIGNIFICANCE",g.Status="STATUS",g.Summary="SUMMARY",g}(A||{}),I=function(g){return g.Diagnostic="DIAGNOSTIC",g.Oncogenic="ONCOGENIC",g.Predictive="PREDICTIVE",g.Predisposing="PREDISPOSING",g.Prognostic="PROGNOSTIC",g}(I||{}),w=function(g){return g.And="AND",g.Or="OR",g}(w||{}),F=function(g){return g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.Name="NAME",g.NctId="NCT_ID",g.SourceCount="SOURCE_COUNT",g}(F||{}),X=function(g){return g.Conflict="CONFLICT",g.Expired="EXPIRED",g.Missing="MISSING",g.Valid="VALID",g}(X||{}),V=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Source="SOURCE",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(V||{}),x=function(g){return g.Factor="FACTOR",g}(x||{}),oe=function(g){return g.Created="CREATED",g.LastModified="LAST_MODIFIED",g}(oe||{}),J=function(g){return g.AssertionCount="ASSERTION_COUNT",g.Doid="DOID",g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.FeatureCount="FEATURE_COUNT",g.Name="NAME",g.VariantCount="VARIANT_COUNT",g}(J||{}),Ee=function(g){return g.Accepted="ACCEPTED",g.AssertionAccepted="ASSERTION_ACCEPTED",g.AssertionRejected="ASSERTION_REJECTED",g.AssertionReverted="ASSERTION_REVERTED",g.AssertionSubmitted="ASSERTION_SUBMITTED",g.Commented="COMMENTED",g.CommentDeleted="COMMENT_DELETED",g.ComplexMolecularProfileCreated="COMPLEX_MOLECULAR_PROFILE_CREATED",g.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",g.DeprecatedFeature="DEPRECATED_FEATURE",g.DeprecatedMolecularProfile="DEPRECATED_MOLECULAR_PROFILE",g.DeprecatedVariant="DEPRECATED_VARIANT",g.FeatureCreated="FEATURE_CREATED",g.Flagged="FLAGGED",g.FlagResolved="FLAG_RESOLVED",g.PublicationSuggested="PUBLICATION_SUGGESTED",g.Rejected="REJECTED",g.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",g.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",g.Reverted="REVERTED",g.RevisionAccepted="REVISION_ACCEPTED",g.RevisionRejected="REVISION_REJECTED",g.RevisionSuggested="REVISION_SUGGESTED",g.RevisionSuperseded="REVISION_SUPERSEDED",g.Submitted="SUBMITTED",g.VariantCreated="VARIANT_CREATED",g}(Ee||{}),Oe=function(g){return g.Organization="ORGANIZATION",g.Subject="SUBJECT",g.Unscoped="UNSCOPED",g.User="USER",g}(Oe||{}),pe=function(g){return g.DoesNotSupport="DOES_NOT_SUPPORT",g.Na="NA",g.Supports="SUPPORTS",g}(pe||{}),Ie=function(g){return g.A="A",g.B="B",g.C="C",g.D="D",g.E="E",g}(Ie||{}),ve=function(g){return g.AdverseResponse="ADVERSE_RESPONSE",g.Benign="BENIGN",g.BetterOutcome="BETTER_OUTCOME",g.DominantNegative="DOMINANT_NEGATIVE",g.GainOfFunction="GAIN_OF_FUNCTION",g.LikelyBenign="LIKELY_BENIGN",g.LikelyPathogenic="LIKELY_PATHOGENIC",g.LossOfFunction="LOSS_OF_FUNCTION",g.Na="NA",g.Negative="NEGATIVE",g.Neomorphic="NEOMORPHIC",g.Oncogenicity="ONCOGENICITY",g.Pathogenic="PATHOGENIC",g.PoorOutcome="POOR_OUTCOME",g.Positive="POSITIVE",g.Predisposition="PREDISPOSITION",g.Protectiveness="PROTECTIVENESS",g.ReducedSensitivity="REDUCED_SENSITIVITY",g.Resistance="RESISTANCE",g.Sensitivityresponse="SENSITIVITYRESPONSE",g.UnalteredFunction="UNALTERED_FUNCTION",g.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",g.Unknown="UNKNOWN",g}(ve||{}),fe=function(g){return g.Description="DESCRIPTION",g.DiseaseName="DISEASE_NAME",g.EvidenceDirection="EVIDENCE_DIRECTION",g.EvidenceLevel="EVIDENCE_LEVEL",g.EvidenceRating="EVIDENCE_RATING",g.EvidenceType="EVIDENCE_TYPE",g.Id="ID",g.Significance="SIGNIFICANCE",g.Status="STATUS",g.VariantOrigin="VARIANT_ORIGIN",g}(fe||{}),Y=function(g){return g.Accepted="ACCEPTED",g.Rejected="REJECTED",g.Submitted="SUBMITTED",g}(Y||{}),z=function(g){return g.Accepted="ACCEPTED",g.All="ALL",g.NonRejected="NON_REJECTED",g.Rejected="REJECTED",g.Submitted="SUBMITTED",g}(z||{}),Z=function(g){return g.Diagnostic="DIAGNOSTIC",g.Functional="FUNCTIONAL",g.Oncogenic="ONCOGENIC",g.Predictive="PREDICTIVE",g.Predisposing="PREDISPOSING",g.Prognostic="PROGNOSTIC",g}(Z||{}),E=function(g){return g.Factor="FACTOR",g.Gene="GENE",g}(E||{}),S=function(g){return g.AssertionCount="assertionCount",g.DiseaseName="diseaseName",g.EvidenceItemCount="evidenceItemCount",g.FeatureAlias="featureAlias",g.FeatureFullName="featureFullName",g.FeatureName="featureName",g.MolecularProfileCount="molecularProfileCount",g.TherapyName="therapyName",g.VariantCount="variantCount",g}(S||{}),R=function(g){return g.Open="OPEN",g.Resolved="RESOLVED",g}(R||{}),U=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(U||{}),Be=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(Be||{}),wt=function(g){return g.All="ALL",g.WithAccepted="WITH_ACCEPTED",g.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",g.WithSubmitted="WITH_SUBMITTED",g}(wt||{}),Le=function(g){return g.AssertionCount="assertionCount",g.EvidenceItemCount="evidenceItemCount",g.MolecularProfileScore="molecularProfileScore",g.VariantCount="variantCount",g}(Le||{}),zt=function(g){return g.Mention="MENTION",g.Subscription="SUBSCRIPTION",g}(zt||{}),xt=function(g){return g.ActivityCount="ACTIVITY_COUNT",g.Id="ID",g.MemberCount="MEMBER_COUNT",g.MostRecentActivityTimestamp="MOST_RECENT_ACTIVITY_TIMESTAMP",g.Name="NAME",g}(xt||{}),st=function(g){return g.AssertionCount="ASSERTION_COUNT",g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.HpoId="HPO_ID",g.Name="NAME",g}(st||{}),Ct=function(g){return g.Read="READ",g.Unread="UNREAD",g}(Ct||{}),It=function(g){return g.Grch37="GRCH37",g.Grch38="GRCH38",g.Ncbi36="NCBI36",g}(It||{}),Tt=function(g){return g.Accepted="ACCEPTED",g.New="NEW",g.Rejected="REJECTED",g.Superseded="SUPERSEDED",g}(Tt||{}),en=function(g){return g.Assertion="ASSERTION",g.Disease="DISEASE",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Revision="REVISION",g.Therapy="THERAPY",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(en||{}),Ut=function(g){return g.Asc="ASC",g.Desc="DESC",g}(Ut||{}),Lt=function(g){return g.Asco="ASCO",g.Ash="ASH",g.Pubmed="PUBMED",g}(Lt||{}),fn=function(g){return g.Curated="CURATED",g.New="NEW",g.Rejected="REJECTED",g}(fn||{}),$n=function(g){return g.Citation="CITATION",g.CitationId="CITATION_ID",g.CreatedAt="CREATED_AT",g.DiseaseName="DISEASE_NAME",g.SourceType="SOURCE_TYPE",g.Submitter="SUBMITTER",g}($n||{}),zn=function(g){return g.Authors="AUTHORS",g.CitationId="CITATION_ID",g.EvidenceCount="EVIDENCE_COUNT",g.Journal="JOURNAL",g.Name="NAME",g.SourceType="SOURCE_TYPE",g.SuggestionCount="SUGGESTION_COUNT",g.Year="YEAR",g}(zn||{}),At=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Revision="REVISION",g.SourceSuggestion="SOURCE_SUGGESTION",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(At||{}),Et=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Revision="REVISION",g.Role="ROLE",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(Et||{}),St=function(g){return g.Combination="COMBINATION",g.Sequential="SEQUENTIAL",g.Substitutes="SUBSTITUTES",g}(St||{}),Wt=function(g){return g.AssertionCount="ASSERTION_COUNT",g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.Name="NAME",g.NcitId="NCIT_ID",g}(Wt||{}),Ue=function(g){return g.AllTime="ALL_TIME",g.LastMonth="LAST_MONTH",g.LastWeek="LAST_WEEK",g.LastYear="LAST_YEAR",g}(Ue||{}),Fe=function(g){return g.Admin="ADMIN",g.Curator="CURATOR",g.Editor="EDITOR",g}(Fe||{}),te=function(g){return g.EvidenceCount="EVIDENCE_COUNT",g.Id="ID",g.LastAction="LAST_ACTION",g.Name="NAME",g.RevisionCount="REVISION_COUNT",g.Role="ROLE",g}(te||{}),_e=function(g){return g.Factor="FACTOR",g.Gene="GENE",g}(_e||{}),Pe=function(g){return g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.GeneNames="GENE_NAMES",g.Name="NAME",g.VariantCount="VARIANT_COUNT",g.VariantNames="VARIANT_NAMES",g}(Pe||{}),et=function(g){return g.CoordinateEnd="COORDINATE_END",g.CoordinateStart="COORDINATE_START",g.Name="NAME",g}(et||{}),ht=function(g){return g.Combined="COMBINED",g.CommonGermline="COMMON_GERMLINE",g.Na="NA",g.RareGermline="RARE_GERMLINE",g.Somatic="SOMATIC",g.Unknown="UNKNOWN",g}(ht||{}),Kt=function(g){return g.Name="NAME",g.Soid="SOID",g.VariantCount="VARIANT_COUNT",g}(Kt||{}),cn=function(g){return g.DiseaseName="diseaseName",g.FeatureName="featureName",g.TherapyName="therapyName",g.VariantName="variantName",g}(cn||{});const Tn=t.J1` - fragment ActivityCard on ActivityInterface { - id - verbiage -} - `,Wn=t.J1` - fragment activityFeedNode on ActivityInterface { - id - verbiage - createdAt - organization { - id - name - profileImagePath(size: 32) - } - user { - id - username - displayName - role - profileImagePath(size: 32) - } - subject { - name - id - link - ... on Source { - citation - sourceType - } - ... on EvidenceItem { - status - flagged - } - ... on Assertion { - status - flagged - } - ... on Revision { - revisionSetId - } - ... on VariantInterface { - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - } - ... on MolecularProfile { - deprecated - flagged - } - ... on Feature { - deprecated - flagged - } - ... on VariantGroup { - flagged - } - __typename - } - ... on FlagEntityActivity { - flag { - id - name - link - } - } -} - `,kn=t.J1` - fragment activityFeed on ActivityInterfaceConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - edges { - cursor - node { - ...activityFeedNode - } - } -} - ${Wn}`,In=t.J1` - fragment MolecularProfileParsedName on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Feature { - id - name - link - deprecated - flagged - } - ... on Variant { - id - name - link - deprecated - flagged - } -} - `,Un=t.J1` - 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 - deprecated - } - therapyInteractionType - disease { - id - name - link - deprecated - } - phenotypes { - id - name - link - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${In}`,dn=t.J1` - fragment AssertionBrowseFields on Assertion { - id - name - link - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - } - disease { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - therapyInteractionType - summary - assertionType - assertionDirection - significance - ampLevel - evidenceItemsCount - status - flagged -} - ${In}`,qt=t.J1` - fragment clinicalTrialPopover on BrowseClinicalTrial { - id - name - nctId - url - sourceCount - evidenceCount -} - `,wn=t.J1` - fragment BrowseClinicalTrialsRowFields on BrowseClinicalTrial { - id - name - nctId - evidenceCount - sourceCount - link -} - `,Vt=t.J1` - fragment parsedCommentFragment on CommentBodySegment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTagSegmentFlagged { - entityId - displayName - tagType - flagged - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTagSegmentFlaggedAndWithStatus { - entityId - displayName - tagType - status - flagged - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTagSegmentFlaggedAndDeprecated { - entityId - displayName - tagType - flagged - deprecated - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } -} - `,Ge=t.J1` - fragment commentListNode on Comment { - id - title - comment - createdAt - deleted - deletedAt - commenter { - id - username - displayName - name - role - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - } - parsedComment { - ...parsedCommentFragment - } -} - ${Vt}`,ue=t.J1` - fragment commentPopover on Comment { - id - name - createdAt - title - comment - commenter { - id - displayName - role - } - commentable { - id - name - link - ... on Variant { - deprecated - feature { - id - name - link - deprecated - flagged - } - flagged - } - ... on Feature { - deprecated - flagged - } - ... on Source { - deprecated - sourceType - } - ... on Assertion { - flagged - status - } - ... on EvidenceItem { - flagged - status - } - __typename - } -} - `,q=t.J1` - fragment BrowseDiseaseRowFields on BrowseDisease { - id - name - doid - diseaseUrl - features { - id - name - link - } - assertionCount - evidenceItemCount - variantCount - featureCount - link - deprecated - diseaseAliases -} - `,ee=t.J1` - 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 - deprecated - } - ... on EvidenceItem { - status - flagged - } - ... on Assertion { - status - flagged - } - ... on Revision { - revisionSetId - } - ... on VariantInterface { - deprecated - flagged - feature { - id - link - name - deprecated - flagged - } - } - ... on Feature { - deprecated - flagged - id - link - name - } - ... on MolecularProfile { - deprecated - flagged - } - ... on VariantGroup { - flagged - } - __typename - } - originatingObject { - id - name - link - __typename - ... on Revision { - id - revisionSetId - } - ... on Comment { - id - } - ... on Flag { - id - } - } -} - `,Xe=t.J1` - 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 - } - } -} - ${ee}`,dt=t.J1` - fragment evidencePopover on EvidenceItem { - id - name - status - description - evidenceLevel - evidenceType - evidenceDirection - significance - variantOrigin - therapies { - id - name - link - deprecated - } - therapyInteractionType - disease { - id - name - link - deprecated - } - phenotypes { - id - name - link - } - evidenceRating - molecularProfile { - id - name - link - deprecated - flagged - parsedName { - ...MolecularProfileParsedName - } - } - source { - id - citation - sourceType - displayType - link - deprecated - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${In}`,at=t.J1` - fragment EvidenceGridFields on EvidenceItem { - id - name - link - disease { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - } - status - flagged - therapyInteractionType - description - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin -} - ${In}`,Ot=t.J1` - fragment featurePopover on Feature { - id - name - fullName - featureInstance { - __typename - } - featureAliases - variants { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,Qe=t.J1` - fragment BrowseFeaturesFields on BrowseFeature { - id - name - fullName - link - deprecated - flagged - featureAliases - diseases { - name - id - link - deprecated - } - therapies { - name - id - link - deprecated - } - variantCount - evidenceItemCount - assertionCount - molecularProfileCount - featureInstanceType -} - `,be=t.J1` - fragment flag on Flag { - id - state - flaggable { - id - name - link - ... on Variant { - deprecated - } - ... on Feature { - deprecated - } - ... on MolecularProfile { - deprecated - } - } - openActivity { - id - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - role - profileImagePath(size: 32) - } - } - resolutionActivity { - id - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${Vt}`,Je=t.J1` - 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 - } - } -} - ${be}`,re=t.J1` - fragment flagPopover on Flag { - id - name - state - flaggingUser { - id - displayName - role - } - flaggable { - id - link - name - ... on VariantInterface { - deprecated - feature { - id - name - link - deprecated - flagged - } - } - ... on Feature { - deprecated - } - ... on EvidenceItem { - status - } - ... on Assertion { - status - } - flagged - } - createdAt - openActivity { - parsedNote { - ...parsedCommentFragment - } - } -} - ${Vt}`,ze=t.J1` - fragment QuicksearchResult on SearchResult { - id - resultType - name - matchingText -} - `,mt=t.J1` - fragment molecularProfilePopoverFields on MolecularProfile { - id - name - parsedName { - ...MolecularProfileParsedName - } - molecularProfileAliases - evidenceItems { - totalCount - } - assertions { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - ${In}`,Ke=t.J1` - fragment BrowseMolecularProfilesFields on BrowseMolecularProfile { - id - name - evidenceItemCount - molecularProfileScore - assertionCount - variantCount - aliases { - name - } - variants { - id - name - link - matchText - feature { - id - link - name - } - } - therapies { - id - name - link - deprecated - } - diseases { - id - name - link - deprecated - } - link - deprecated -} - `,xe=t.J1` - fragment menuMolecularProfile on MolecularProfile { - id - name - link - flagged - deprecated -} - `,Re=t.J1` - fragment LeaderboardOrganizationFields on LeaderboardOrganization { - id - name - actionCount - rank - profileImagePath(size: 64) -} - `,B=t.J1` - fragment orgPopover on Organization { - id - profileImagePath(size: 64) - name - description - url -} - `,ce=t.J1` - fragment OrganizationBrowseTableRowFields on BrowseOrganization { - id - name - description - url - memberCount - activityCount - mostRecentActivityTimestamp - childOrganizations { - id - name - } -} - `,N=t.J1` - fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { - id - name - hpoId - url - assertionCount - evidenceCount - link -} - `,ke=t.J1` - fragment validationError on FieldValidationError { - fieldName - error -} - `,ge=t.J1` - fragment revisionPopover on Revision { - id - name - link - status - creationActivity { - user { - id - displayName - role - } - parsedNote { - ...parsedCommentFragment - } - } - subject { - id - link - name - ... on VariantInterface { - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - } - ... on Feature { - deprecated - flagged - } - ... on Assertion { - flagged - status - } - ... on EvidenceItem { - flagged - status - } - ... on VariantGroup { - flagged - } - } - createdAt - linkoutData { - name - } -} - ${Vt}`,W=t.J1` - fragment revision on Revision { - id - revisionSetId - createdAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - currentObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - addedObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - removedObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - keptObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - suggestedObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - creationActivity { - createdAt - user { - id - displayName - role - } - parsedNote { - ...parsedCommentFragment - } - organization { - id - name - } - } - resolutionActivity { - createdAt - user { - id - displayName - role - } - parsedNote { - ...parsedCommentFragment - } - } - status -} - ${Vt}`,H=t.J1` - fragment ContributorFields on ContributingUser { - user { - id - profileImagePath(size: 12) - } - uniqueActions { - action - count - } - lastActionDate - totalActionCount -} - `,me=t.J1` - fragment subscriptionId on Subscription { - id - __typename -} - `,qe=t.J1` - fragment TimepointCount on TimePointCounts { - allTime - newThisMonth - newThisWeek - newThisYear -} - `,rt=t.J1` - fragment BrowseSourceSuggestionRowFields on SourceSuggestion { - id - molecularProfile { - id - name - link - deprecated - } - disease { - id - name - link - deprecated - } - source { - link - id - citation - citationId - sourceType - sourceUrl - displayType - deprecated - } - user { - id - displayName - role - profileImagePath(size: 32) - } - creationActivity { - parsedNote { - ...parsedCommentFragment - } - } - lastStatusUpdateActivity { - parsedNote { - ...parsedCommentFragment - } - } - status - reason - createdAt -} - ${Vt}`,Ft=t.J1` - fragment sourcePopover on SourcePopover { - id - title - fullJournalTitle - evidenceItemCount - citation - citationId - displayType - sourceUrl - clinicalTrials { - id - nctId - link - } - retractionDate - retractionReasons - retractionNature -} - `,rn=t.J1` - fragment BrowseSourceRowFields on BrowseSource { - id - authors - citationId - evidenceItemCount - sourceSuggestionCount - journal - name - publicationYear - sourceType - citation - displayType - link - openAccess - deprecated -} - `,Cn=t.J1` - fragment TherapyBrowseTableRowFields on BrowseTherapy { - id - name - ncitId - therapyUrl - assertionCount - evidenceCount - link - deprecated - therapyAliases -} - `,Jn=t.J1` - fragment LeaderboardUserFields on LeaderboardUser { - id - name - displayName - actionCount - role - rank - profileImagePath(size: 64) -} - `,jn=t.J1` - fragment popoverUser on User { - id - profileImagePath(size: 64) - displayName - bio - role - organizations { - id - name - } -} - `,Gn=t.J1` - fragment UserBrowseTableRowFields on BrowseUser { - id - name - displayName - username - organizations { - id - name - } - role - evidenceCount - revisionCount - profileImagePath(size: 64) - mostRecentActivityTimestamp -} - `,zi=t.J1` - fragment variantGroupPopoverFields on VariantGroup { - id - name - description - variants { - edges { - node { - id - name - link - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - } - } - } - sources { - id - citation - sourceType - link - deprecated - } -} - `,Oi=t.J1` - fragment BrowseVariantGroupRowFields on BrowseVariantGroup { - id - name - link - featureNames - variantNames - variantCount - evidenceItemCount -} - `,po=t.J1` - fragment variantTypePopover on VariantTypePopover { - id - name - url - soid - variantCount -} - `,Zi=t.J1` - fragment VariantTypeBrowseTableRowFields on BrowseVariantType { - id - name - soid - url - variantCount - link -} - `,Vo=t.J1` - fragment CoordinatesCardFields on VariantInterface { - id - name - ... on GeneVariant { - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases - } -} - `,Co=t.J1` - fragment variantPopoverFields on VariantInterface { - id - name - variantAliases - ... on GeneVariant { - alleleRegistryId - } - feature { - id - name - link - deprecated - flagged - } - molecularProfiles { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,zr=t.J1` - fragment menuVariantType on BrowseVariantType { - id - name - link -} - `,rr=t.J1` - fragment menuVariant on VariantInterface { - id - name - link - flagged - deprecated -} - `,lt=t.J1` - fragment BrowseVariantsFields on BrowseVariant { - id - name - link - featureId - featureName - featureLink - category - featureDeprecated - featureFlagged - diseases { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - aliases { - name - } - variantTypes { - id - name - link - } - deprecated - flagged -} - `,Ht=t.J1` - 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 - } -} - `,$t=t.J1` - fragment MolecularProfileSelectTypeaheadFields on MolecularProfile { - id - name - link - molecularProfileAliases - deprecated - flagged -} - `,pn=t.J1` - fragment DiseaseSelectTypeaheadFields on Disease { - id - name - link - displayName - doid - diseaseAliases -} - `,hn=t.J1` - fragment TherapySelectTypeaheadFields on Therapy { - id - name - link - ncitId - therapyAliases -} - `,Hn=t.J1` - fragment PhenotypeSelectTypeaheadFields on Phenotype { - id - name - link - hpoId -} - `,En=t.J1` - fragment SourceSelectTypeaheadFields on Source { - id - name - link - citation - citationId - sourceType - deprecated -} - `,Xn=t.J1` - fragment RevisableEvidenceFields on EvidenceItem { - id - molecularProfile { - ...MolecularProfileSelectTypeaheadFields - } - variantOrigin - description - significance - disease { - ...DiseaseSelectTypeaheadFields - } - therapies { - ...TherapySelectTypeaheadFields - } - therapyInteractionType - evidenceDirection - evidenceLevel - evidenceType - phenotypes { - ...PhenotypeSelectTypeaheadFields - } - evidenceRating - source { - ...SourceSelectTypeaheadFields - } -} - ${$t} -${pn} -${hn} -${Hn} -${En}`,ci=t.J1` - fragment SubmittableEvidenceFields on EvidenceItem { - id - description - variantOrigin - evidenceType - significance - evidenceLevel - evidenceDirection - evidenceRating - therapyInteractionType - source { - id - citation - sourceType - deprecated - } - phenotypes { - id - name - } - therapies { - id - name - } - disease { - id - name - } -} - `,_i=t.J1` - fragment RevisableFactorFields on Feature { - id - name - fullName - description - sources { - id - sourceType - citation - citationId - } - featureAliases - featureInstance { - ... on Factor { - ncitId - } - } -} - `,lo=t.J1` - fragment RevisableFactorVariantFields on FactorVariant { - name - feature { - id - name - } - variantAliases - variantTypes { - id - name - soid - } - ncitId -} - `,bi=t.J1` - fragment RevisableGeneFields on Feature { - id - description - sources { - id - sourceType - citation - citationId - } -} - `,mn=t.J1` - fragment CoordinateFields on Coordinate { - chromosome - representativeTranscript - start - stop -} - `,Ui=t.J1` - fragment RevisableGeneVariantFields on GeneVariant { - name - feature { - id - name - } - variantAliases - alleleRegistryId - clinvarIds - ensemblVersion - hgvsDescriptions - referenceBuild - variantTypes { - id - name - soid - } - primaryCoordinates { - ...CoordinateFields - } - secondaryCoordinates { - ...CoordinateFields - } - referenceBases - variantBases -} - ${mn}`,Mi=t.J1` - fragment RevisableMolecularProfileFields on MolecularProfile { - id - description - sources { - id - sourceType - citation - citationId - } - molecularProfileAliases - isComplex -} - `,Ni=t.J1` - fragment VariantGroupRevisableFields on VariantGroup { - id - name - description - variants { - totalCount - edges { - cursor - node { - id - name - link - } - } - nodes { - id - name - link - } - } - sources { - id - name - link - } -} - `,oo=t.J1` - 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.J1` - fragment AcmgCodeSelectTypeaheadFields on AcmgCode { - id - code - name - description - tooltip -} - `,jo=t.J1` - fragment ClingenCodeSelectTypeaheadFields on ClingenCode { - id - code - name - description - tooltip - exclusive -} - `,Ki=t.J1` - fragment QuickAddDiseaseFields on AddDiseasePayload { - new - disease { - ...DiseaseSelectTypeaheadFields - } -} - ${pn}`,Jo=t.J1` - fragment EvidenceManagerFields on EvidenceItem { - id - name - link - disease { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - } - status - flagged - therapyInteractionType - description - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin -} - ${In}`,sr=t.J1` - fragment EvidenceSelectTypeaheadFields on EvidenceItem { - id - name - link - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin - status -} - `,fo=t.J1` - fragment GeneSummaryFields on Gene { - id - description - featureAliases - entrezId - name - sources { - id - citation - link - sourceUrl - displayType - sourceType - deprecated - } - myGeneInfoDetails -} - `,uo=t.J1` - fragment NcitDetails on NcitDetails { - synonyms { - name - source - } - definitions { - definition - source - } -} - `,pr=t.J1` - fragment FactorSummaryFields on Factor { - id - name - description - featureAliases - ncitId - deprecated - sources { - id - citation - link - sourceUrl - displayType - sourceType - deprecated - } - ncitDetails { - ...NcitDetails - } - creationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } - deprecationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } -} - ${uo}`,Lo=t.J1` - fragment FeatureSummaryFields on Feature { - id - name - fullName - link - deprecated - flagged - featureInstance { - __typename - ... on Gene { - ...GeneSummaryFields - } - ... on Factor { - ...FactorSummaryFields - } - } -} - ${fo} -${pr}`,Ur=t.J1` - fragment QuickAddFeatureFields on CreateFeaturePayload { - clientMutationId - new - feature { - ...FeatureSummaryFields - } -} - ${Lo}`,qi=t.J1` - fragment FeatureSelectTypeaheadFields on Feature { - id - name - featureAliases - link - featureInstance { - __typename - ... on Gene { - entrezId - } - ... on Factor { - ncitId - } - } -} - `,Zn=t.J1` - fragment PreviewMpName2 on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Feature { - id - name - link - deprecated - flagged - } - ... on Variant { - id - name - link - deprecated - flagged - } -} - `,yi=t.J1` - fragment NccnGuidelineSelectTypeaheadFields on NccnGuideline { - id - name -} - `,wr=t.J1` - fragment QuickAddTherapyFields on AddTherapyPayload { - new - therapy { - ...TherapySelectTypeaheadFields - } -} - ${hn}`,qr=(t.J1` - fragment VariantManagerFields on BrowseVariant { - id - name - link - featureId - featureName - featureLink - diseases { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - aliases { - name - } -} - `,t.J1` - fragment VariantSelectTypeaheadFields on VariantInterface { - id - name - link - deprecated - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } -} - `),Zo=t.J1` - fragment QuickAddVariantFields on CreateVariantPayload { - clientMutationId - new - variant { - ...VariantSelectTypeaheadFields - } -} - ${qr}`,bs=t.J1` - fragment VariantTypeSelectTypeaheadFields on VariantType { - id - name - link - soid -} - `,tt=t.J1` - fragment assertionSubmissionActivity on Assertion { - submissionActivity { - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - profileImagePath(size: 32) - } - } -} - ${Vt}`,Ce=t.J1` - fragment AssertionDetailFields on Assertion { - id - name - status - submissionEvent { - originatingUser { - id - } - } - molecularProfile { - id - name - link - deprecated - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - ...assertionSubmissionActivity -} - ${tt}`,Ve=t.J1` - fragment AssertionSummaryFields on Assertion { - id - name - summary - description - status - variantOrigin - disease { - id - name - link - deprecated - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - flagged - } - assertionType - assertionDirection - significance - therapies { - ncitId - name - link - id - deprecated - } - 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) - } - } - ...assertionSubmissionActivity - submissionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - rejectionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${In} -${tt}`,nt=t.J1` - fragment MyDiseaseInfoFields on MyDiseaseInfo { - diseaseOntologyExactSynonyms - diseaseOntologyRelatedSynonyms - mesh - icdo - icd10 - ncit - omim - doDef - doDefCitations - mondoDef - mondoId -} - `,Mt=t.J1` - fragment DiseasesSummaryFields on Disease { - id - name - doid - diseaseUrl - displayName - diseaseAliases - link - myDiseaseInfo { - ...MyDiseaseInfoFields - } - deprecated -} - ${nt}`,Yt=t.J1` - fragment evidenceSubmissionActivity on EvidenceItem { - submissionActivity { - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - profileImagePath(size: 32) - } - } -} - ${Vt}`,tn=t.J1` - fragment EvidenceDetailFields on EvidenceItem { - id - name - status - submissionEvent { - originatingUser { - id - } - } - molecularProfile { - id - name - link - deprecated - flagged - } - assertions { - id - name - link - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - ...evidenceSubmissionActivity -} - ${Yt}`,on=t.J1` - fragment EvidenceSummaryFields on EvidenceItem { - id - name - description - status - evidenceLevel - evidenceType - evidenceDirection - significance - variantOrigin - therapies { - id - name - link - deprecated - } - therapyInteractionType - disease { - id - name - link - deprecated - } - phenotypes { - id - name - link - } - source { - id - citation - citationId - sourceType - displayType - sourceUrl - ascoAbstractId - link - clinicalTrials { - nctId - id - link - } - retractionNature - deprecated - } - evidenceRating - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - submissionActivity { - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - displayName - profileImagePath(size: 32) - id - role - } - } - 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) - } - } -} - ${In} -${Vt}`,bn=t.J1` - fragment FeatureDetailFields on Feature { - id - name - fullName - deprecated - deprecationReason - deprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - featureInstance { - __typename - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${Vt}`,Mn=t.J1` - fragment MolecularProfileDetailFields on MolecularProfile { - id - name - deprecated - deprecationReason - complexMolecularProfileDeprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - deprecatedVariants { - deprecationReason - deprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - id - deprecated - flagged - name - link - feature { - id - name - link - deprecated - flagged - } - } - molecularProfileAliases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - variants { - id - } -} - ${Vt}`,Bn=t.J1` - 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 -} - `,xn=t.J1` - fragment GeneVariantSummaryFields on GeneVariant { - alleleRegistryId - openCravatUrl - maneSelectTranscript - hgvsDescriptions - clinvarIds - referenceBuild - ensemblVersion - primaryCoordinates { - representativeTranscript - chromosome - start - stop - } - secondaryCoordinates { - representativeTranscript - chromosome - start - stop - } - referenceBases - variantBases - myVariantInfo { - ...MyVariantInfoFields - } -} - ${Bn}`,Kn=t.J1` - fragment FactorVariantSummaryFields on FactorVariant { - ncitId - ncitDetails { - ...NcitDetails - } -} - ${uo}`,qn=t.J1` - fragment VariantMolecularProfileCardFields on VariantInterface { - id - name - link - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - molecularProfiles(first: 3) { - totalCount - nodes { - id - link - name - deprecated - flagged - } - } - ... on GeneVariant { - ...GeneVariantSummaryFields - } - ... on FactorVariant { - ...FactorVariantSummaryFields - } - variantAliases - variantTypes { - id - link - soid - name - } -} - ${xn} -${Kn}`,pi=t.J1` - fragment MolecularProfileSummaryFields on MolecularProfile { - id - name - description - molecularProfileAliases - molecularProfileScore - sources { - id - citation - link - sourceType - deprecated - } - variants { - ...VariantMolecularProfileCardFields - } - parsedName { - ...MolecularProfileParsedName - } - complexMolecularProfileCreationActivity { - createdAt - user { - id - displayName - role - profileImagePath(size: 32) - } - } - variantDeprecationActivity { - createdAt - user { - id - displayName - role - profileImagePath(size: 32) - } - } - complexMolecularProfileDeprecationActivity { - createdAt - user { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${qn} -${In}`,ei=t.J1` - 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 - } - } -} - `,li=t.J1` - 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 - } - } -} - `,ai=t.J1` - fragment OrganizationMembersFields on BrowseUser { - id - name - displayName - username - profileImagePath(size: 64) - role - url - areaOfExpertise - orcid - twitterHandle - facebookProfile - linkedinProfile - organizations { - id - name - url - } -} - `,mi=t.J1` - 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 - } -} - `,Ei=t.J1` - fragment SourceDetailFields on Source { - id - citation - sourceUrl - displayType - fullyCurated - citationId - comments { - totalCount - } -} - `,Xi=t.J1` - fragment SourceSummaryFields on Source { - id - citation - displayType - sourceUrl - title - abstract - publicationDate - citationId - fullJournalTitle - pmcId - authorString - ascoAbstractId - clinicalTrials { - nctId - id - link - } - retracted - retractionNature - retractionDate - retractionReasons - deprecated -} - `,Si=t.J1` - fragment MyChemInfoFields on MyChemInfo { - chebiId - chebiDefinition - fdaEpcCodes { - code - description - } - fdaMoaCodes { - code - description - } - firstApproval - chemblMoleculeType - chemblId - pubchemCid - pharmgkbId - rxnorm - inchikey - drugbankId - indications -} - `,no=t.J1` - fragment TherapiesSummaryFields on Therapy { - id - name - ncitId - therapyUrl - therapyAliases - link - myChemInfo { - ...MyChemInfoFields - } -} - ${Si}`,ao=t.J1` - 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 - } -} - `,ro=t.J1` - fragment notificationOrganization on Organization { - id - name -} - `,An=t.J1` - fragment notificationOriginatingUsers on User { - id - displayName -} - `,_o=t.J1` - fragment notificationFeedSubjects on EventSubjectWithCount { - subject { - id - __typename - name - } - occuranceCount -} - `,qo=t.J1` - fragment notificationNode on Notification { - id - type - event { - ...eventFeedNode - } - seen - subscription { - id - subscribable { - id - name - __typename - } - } -} - ${ee}`,Gr=t.J1` - fragment subscribable on Subscribable { - id - entityType - __typename -} - `,Do=t.J1` - fragment VariantGroupDetailFields on VariantGroup { - id - name - variants { - totalCount - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Qo=t.J1` - fragment VariantGroupSummaryFields on VariantGroup { - id - name - description - sources { - id - link - citation - sourceUrl - displayType - sourceType - deprecated - } -} - `,Mr=t.J1` - fragment VariantDetailFields on VariantInterface { - id - name - deprecated - deprecationReason - deprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - feature { - id - name - link - deprecated - flagged - } - variantAliases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${Vt}`,vr=t.J1` - fragment VariantSummaryFields on VariantInterface { - id - name - feature { - __typename - id - name - link - deprecated - flagged - } - variantAliases - variantTypes { - id - link - soid - name - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - lastSubmittedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - lastAcceptedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - creationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } - deprecationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } - ... on GeneVariant { - ...GeneVariantSummaryFields - } - ... on FactorVariant { - ...FactorVariantSummaryFields - } -} - ${xn} -${Kn}`;t.J1` - query ActivityCard($activityId: Int!) { - activity(id: $activityId) { - ...ActivityCard - } -} - ${Tn}`,t.J1` - query ActivityFeed($first: Int, $last: Int, $before: String, $after: String, $userId: [Int!]) { - activities( - first: $first - last: $last - before: $before - after: $after - userId: $userId - ) { - ...activityFeed - } -} - ${kn}`;const xr=t.J1` - query AssertionPopover($assertionId: Int!) { - assertion(id: $assertionId) { - ...assertionPopover - } -} - ${Un}`;let Uo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=xr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const es=t.J1` - 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 - } - } - } -} - ${dn}`;let zo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=es}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Es=t.J1` - query ClinicalTrialPopover($clinicalTrialId: Int!) { - clinicalTrials(id: $clinicalTrialId) { - edges { - node { - ...clinicalTrialPopover - } - } - } -} - ${qt}`;let us=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Es}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ze=t.J1` - 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 - } - } - } -} - ${wn}`;let Fn=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ze}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const de=t.J1` - mutation DeleteComment($input: DeleteCommentInput!) { - deleteComment(input: $input) { - comment { - ...commentListNode - } - } -} - ${Ge}`;let We=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=de}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ct=t.J1` - 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 - } - } - } -} - ${Ge}`;let sn=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ct}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vn=t.J1` - query CommentPopover($commentId: Int!) { - comment(id: $commentId) { - ...commentPopover - } -} - ${ue}`;let Ln=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Vn}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fi=t.J1` - query DiseasePopover($diseaseId: Int!) { - diseasePopover(id: $diseaseId) { - id - name - displayName - doid - diseaseUrl - diseaseAliases - assertionCount - evidenceItemCount - molecularProfileCount - link - deprecated - } -} - `;let ki=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=fi}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const bo=t.J1` - query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $diseaseAlias: String, $featureName: String) { - browseDiseases( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - doid: $doid - diseaseAlias: $diseaseAlias - featureName: $featureName - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - lastUpdated - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseDiseaseRowFields - } - } - } -} - ${q}`;let hi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=bo}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ho=t.J1` - 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 Oo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ho}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ts=t.J1` - 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 - } -} - ${Xe}`;let Ne=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ts}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const je=t.J1` - query EvidencePopover($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...evidencePopover - } -} - ${dt}`;let ye=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=je}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pt=t.J1` - 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 - } - } - } -} - ${at}`;let Jt=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pt}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const wi=t.J1` - query FeaturePopover($featureId: Int!) { - feature(id: $featureId) { - ...featurePopover - } -} - ${Ot}`;let Qi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=wi}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const xo=t.J1` - query BrowseFeatures($featureName: String, $featureFullName: String, $therapyName: String, $featureAlias: String, $diseaseName: String, $featureType: FeatureInstanceTypes, $sortBy: FeaturesSort, $first: Int, $last: Int, $before: String, $after: String) { - browseFeatures( - featureName: $featureName - featureFullName: $featureFullName - therapyName: $therapyName - featureAlias: $featureAlias - diseaseName: $diseaseName - featureType: $featureType - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - edges { - cursor - node { - ...BrowseFeaturesFields - } - } - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - lastUpdated - totalCount - filteredCount - pageCount - } -} - ${Qe}`;let vi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=xo}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Fa=t.J1` - 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 - } -} - ${Je}`;let Pc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Fa}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ma=t.J1` - query FlagPopover($flagId: Int!) { - flag(id: $flagId) { - ...flagPopover - } -} - ${re}`;let _r=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ma}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const uc=t.J1` - query Quicksearch($query: String!, $types: [SearchableEntities!], $highlightMatches: Boolean) { - search(query: $query, types: $types, highlightMatches: $highlightMatches) { - ...QuicksearchResult - } -} - ${ze}`;let mo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=uc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const oa=t.J1` - query MolecularProfilePopover($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...molecularProfilePopoverFields - } -} - ${mt}`;let Yr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=oa}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Zs=t.J1` - query BrowseMolecularProfiles($molecularProfileName: String, $variantName: String, $variantId: Int, $featureName: String, $diseaseName: String, $therapyName: String, $molecularProfileAlias: String, $sortBy: MolecularProfilesSort, $first: Int, $last: Int, $before: String, $after: String) { - browseMolecularProfiles( - molecularProfileName: $molecularProfileName - variantName: $variantName - variantId: $variantId - featureName: $featureName - 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 - } -} - ${Ke}`;let Aa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Zs}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const mr=t.J1` - query MolecularProfileMenu($geneId: Int, $featureId: Int, $mpName: String, $first: Int, $last: Int, $before: String, $after: String, $evidenceStatusFilter: MolecularProfileDisplayFilter) { - molecularProfiles( - geneId: $geneId - featureId: $featureId - name: $mpName - evidenceStatusFilter: $evidenceStatusFilter - first: $first - last: $last - before: $before - after: $after - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - cursor - node { - ...menuMolecularProfile - } - } - } -} - ${xe}`;let ga=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=mr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Hs=t.J1` - 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 - } - } - } -} - ${Re}`;let ds=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Hs}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const dc=t.J1` - 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 - } - } - } -} - ${Re}`;let ra=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=dc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Wr=t.J1` - 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 - } - } - } -} - ${Re}`;let xi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Wr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const js=t.J1` - 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 - } - } - } -} - ${Re}`;let Ra=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=js}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const hs=t.J1` - query OrgPopover($orgId: Int!) { - organization(id: $orgId) { - ...orgPopover - } -} - ${B}`;let Na=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=hs}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Kr=t.J1` - 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 - } - } - } -} - ${ce}`;let va=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Kr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Xr=t.J1` - query PhenotypePopover($phenotypeId: Int!) { - phenotypePopover(id: $phenotypeId) { - id - name - url - hpoId - assertionCount - evidenceItemCount - molecularProfileCount - link - } -} - `;let Vu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Xr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pl=t.J1` - 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 - } - } - } -} - ${N}`;let Lu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const yr=t.J1` - mutation AcceptRevision($input: AcceptRevisionsInput!) { - acceptRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let Ts=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=yr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ka=t.J1` - mutation RejectRevision($input: RejectRevisionsInput!) { - rejectRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let sa=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=ka}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Fc=t.J1` - query ValidateRevisionsForAcceptance($ids: [Int!]!) { - validateRevisionsForAcceptance(revisionIds: $ids) { - genericErrors - validationErrors { - ...validationError - } - } -} - ${ke}`;let zs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Fc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Va=t.J1` - query RevisionPopover($revisionId: Int!) { - revision(id: $revisionId) { - ...revisionPopover - } -} - ${ge}`;let hc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Va}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vi=t.J1` - 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 - } - } - } -} - ${W}`;let eo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Vi}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pc=t.J1` - query ContributorAvatars($subscribable: SubscribableInput!) { - contributors(subscribable: $subscribable) { - editors { - ...ContributorFields - } - curators { - ...ContributorFields - } - } -} - ${H}`;let aa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ac=t.J1` - query SubscriptionForEntity($subscribable: SubscribableInput!) { - subscriptionForEntity(subscribable: $subscribable) { - ...subscriptionId - } -} - ${me}`;let Rc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ac}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ms=t.J1` - mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { - moderateEvidenceItem(input: $input) { - evidenceItem { - id - } - } -} - `;let Us=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Ms}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const so=t.J1` - mutation ModerateAssertion($input: ModerateAssertionInput!) { - moderateAssertion(input: $input) { - assertion { - id - } - } -} - `;let La=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=so}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fc=t.J1` - query CivicStats { - timepointStats { - assertions { - ...TimepointCount - } - diseases { - ...TimepointCount - } - therapies { - ...TimepointCount - } - evidenceItems { - ...TimepointCount - } - features { - ...TimepointCount - } - revisions { - ...TimepointCount - } - sources { - ...TimepointCount - } - users { - ...TimepointCount - } - variants { - ...TimepointCount - } - comments { - ...TimepointCount - } - molecularProfiles { - ...TimepointCount - } - } -} - ${qe}`;let Go=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=fc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vr=t.J1` - 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 - } - } - } -} - ${rt}`;let ca=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Vr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` - mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } - } -} - `;const mc=t.J1` - query SourcePopover($sourceId: Int!) { - sourcePopover(id: $sourceId) { - ...sourcePopover - } -} - ${Ft}`;let G=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=mc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const it=t.J1` - 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 - } - } - } -} - ${rn}`;let Te=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=it}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ye=t.J1` - query TherapyPopover($therapyId: Int!) { - therapyPopover(id: $therapyId) { - id - name - therapyUrl - ncitId - therapyAliases - assertionCount - evidenceItemCount - molecularProfileCount - link - deprecated - } -} - `;let Nt=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ye}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const gn=t.J1` - query TherapiesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $therapyAlias: String, $sortBy: TherapySort) { - therapies( - first: $first - last: $last - before: $before - after: $after - name: $name - ncitId: $ncitId - therapyAlias: $therapyAlias - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...TherapyBrowseTableRowFields - } - } - } -} - ${Cn}`;let Pn=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=gn}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const di=t.J1` - 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 - } - } - } -} - ${Jn}`;let yo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=di}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Yi=t.J1` - 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 - } - } - } -} - ${Jn}`;let Eo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Yi}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Yn=t.J1` - 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 - } - } - } -} - ${Jn}`;let Io=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Yn}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Wi=t.J1` - 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 - } - } - } -} - ${Jn}`;let Po=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Wi}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Qr=t.J1` - query UserPopover($userId: Int!) { - user(id: $userId) { - ...popoverUser - } -} - ${jn}`;let Pr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Qr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ds=t.J1` - 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 - } - } - } -} - ${Gn}`;let ps=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ds}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Lr=t.J1` - query VariantGroupPopover($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...variantGroupPopoverFields - } -} - ${zi}`;let fs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Lr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ms=t.J1` - query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $featureNames: String, $variantNames: String) { - browseVariantGroups( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - featureNames: $featureNames - variantNames: $variantNames - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - lastUpdated - edges { - cursor - node { - ...BrowseVariantGroupRowFields - } - } - } -} - ${Oi}`;let gc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ms}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Os=t.J1` - query VariantTypePopover($variantTypeId: Int!) { - variantTypePopover(id: $variantTypeId) { - ...variantTypePopover - } -} - ${po}`;let vc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Os}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Yo=t.J1` - 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 - } - } - } -} - ${Zi}`;let ns=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Yo}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const to=t.J1` - query CoordinatesCard($variantId: Int!) { - variant(id: $variantId) { - ...CoordinatesCardFields - } -} - ${Vo}`;let _a=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=to}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Is=t.J1` - query VariantPopover($variantId: Int!) { - variant(id: $variantId) { - ...variantPopoverFields - } -} - ${Co}`;let is=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Is}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Bu=t.J1` - query VariantsMenu($featureId: Int, $variantName: String, $variantTypeIds: [Int!], $hasNoVariantType: Boolean, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { - variants( - featureId: $featureId - 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 - } - } - } -} - ${rr}`;let Nc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Bu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const $u=t.J1` - query VariantTypesForFeature($featureId: Int) { - variantTypes(featureId: $featureId, first: 50) { - edges { - node { - ...menuVariantType - } - } - } -} - ${zr}`;let Dr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=$u}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fl=t.J1` - query BrowseVariants($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $variantTypeName: String, $hasNoVariantType: Boolean, $variantCategory: VariantCategories, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { - browseVariants( - variantName: $variantName - featureName: $featureName - diseaseName: $diseaseName - therapyName: $therapyName - variantAlias: $variantAlias - variantTypeId: $variantTypeId - variantGroupId: $variantGroupId - variantTypeName: $variantTypeName - hasNoVariantType: $hasNoVariantType - category: $variantCategory - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - ...BrowseVariantsFields - } - } - totalCount - filteredCount - pageCount - lastUpdated - } -} - ${lt}`;let $a=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=fl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const j1=t.J1` - query ViewerBase { - viewer { - id - username - role - displayName - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - mostRecentConflictOfInterestStatement { - coiStatus - } - mostRecentOrganizationId - } -} - `;let _c=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=j1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Jr=t.J1` - query ViewerNotificationCount { - notifications { - unreadCount - } -} - `;let go=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Jr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ar=t.J1` - mutation AddComment($input: AddCommentInput!) { - addComment(input: $input) { - clientMutationId - comment { - ...commentListNode - } - } -} - ${Ge}`;let kc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=ar}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const la=t.J1` - query previewComment($commentText: String!) { - previewCommentText(commentText: $commentText) { - ...parsedCommentFragment - } -} - ${Vt}`;let ua=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=la}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vc=t.J1` - query userTypeahead($queryTerm: String!) { - userTypeahead(queryTerm: $queryTerm) { - username - } -} - `;let ws=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Vc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const xs=t.J1` - query entityTypeahead($queryTerm: String!) { - entityTypeahead(queryTerm: $queryTerm) { - entityId - tagType - displayName - } -} - `;let Zl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=xs}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Lc=t.J1` - mutation DeprecateComplexMolecularProfile($molecularProfileId: Int!, $deprecationReason: MolecularProfileDeprecationReasonMutationInput!, $comment: String!, $organizationId: Int) { - deprecateComplexMolecularProfile( - input: {molecularProfileId: $molecularProfileId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} - ) { - molecularProfile { - id - name - } - } -} - `;let Gs=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Lc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ml=t.J1` - query EvidenceCountsForMolecularProfile($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - id - name - link - evidenceCountsByStatus { - submittedCount - acceptedCount - } - } -} - `;let ya=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ml}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` - query LinkableGene($geneId: Int!) { - gene(id: $geneId) { - id - name - link - } -} - `,t.J1` - query LinkableVariant($variantId: Int!) { - variant(id: $variantId) { - id - name - link - } -} - `,t.J1` - query LinkableTherapy($therapyId: Int!) { - therapy(id: $therapyId) { - id - name - link - } -} - `;const vs=t.J1` - query LinkableFeature($featureId: Int!) { - feature(id: $featureId) { - id - name - link - } -} - `;let ql=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=vs}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const $c=t.J1` - mutation FlagEntity($input: FlagEntityInput!) { - flagEntity(input: $input) { - flag { - id - } - } -} - `;let P=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=$c}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ae=t.J1` - mutation ResolveFlag($input: ResolveFlagInput!) { - resolveFlag(input: $input) { - flag { - id - } - } -} - `;let k=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=ae}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const le=t.J1` - mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } - } -} - `;let $e=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=le}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ft=t.J1` - mutation UpdateCoi($input: UpdateCoiInput!) { - updateCoi(input: $input) { - coiStatement { - coiPresent - coiStatus - createdAt - id - } - } -} - `;let kt=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=ft}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const yn=t.J1` - mutation UpdateUserProfile($input: EditUserInput!) { - editUser(input: $input) { - user { - id - } - } -} - `;let ln=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=yn}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ri=t.J1` - query Countries { - countries { - id - name - } -} - `;let Fi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ri}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ai=t.J1` - mutation DeprecateVariant($variantId: Int!, $deprecationReason: VariantDeprecationReason!, $comment: String!, $organizationId: Int) { - deprecateVariant( - input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} - ) { - newlyDeprecatedMolecularProfiles { - id - } - variant { - id - name - } - } -} - `;let Fo=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Ai}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const os=t.J1` - query MolecularProfilesForVariant($variantId: Int!) { - molecularProfiles(variantId: $variantId, first: 50) { - nodes { - id - name - link - evidenceCountsByStatus { - submittedCount - acceptedCount - } - deprecated - flagged - } - } -} - `;let Cr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=os}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Bi=t.J1` - query AssertionRevisableFields($assertionId: Int!) { - assertion(id: $assertionId) { - ...RevisableAssertionFields - } -} - ${Ht}`;let Mo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Bi}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const er=t.J1` - mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { - suggestAssertionRevision(input: $input) { - clientMutationId - assertion { - id - } - results { - newlyCreated - } - } -} - `;let qs=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=er}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const tr=t.J1` - mutation SubmitAssertion($input: SubmitAssertionInput!) { - submitAssertion(input: $input) { - clientMutationId - assertion { - id - } - } -} - `;let vl=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=tr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _l=t.J1` - query EvidenceItemRevisableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...RevisableEvidenceFields - } -} - ${Xn}`;let yl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_l}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Bd=t.J1` - mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { - suggestEvidenceItemRevision(input: $input) { - clientMutationId - evidenceItem { - id - } - results { - newlyCreated - } - } -} - `;let $d=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Bd}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` - 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 - deprecated - } - } -} - `,t.J1` - query EvidenceSubmittableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...SubmittableEvidenceFields - } -} - ${ci}`;const jc=t.J1` - mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { - submitEvidence(input: $input) { - clientMutationId - evidenceItem { - id - } - } -} - `;let G1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=jc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Cl=t.J1` - query ExistingEvidenceCount($molecularProfileId: Int!, $sourceId: Int!) { - evidenceItems(molecularProfileId: $molecularProfileId, sourceId: $sourceId) { - totalCount - } -} - `;let Uu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Cl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const bl=t.J1` - query FullyCuratedSource($sourceId: Int!) { - source(id: $sourceId) { - fullyCurated - } -} - `;let tu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=bl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const nu=t.J1` - query FactorRevisableFields($featureId: Int!) { - feature(id: $featureId) { - ...RevisableFactorFields - } -} - ${_i}`;let ba=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=nu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Gu=t.J1` - mutation SuggestFactorRevision($input: SuggestFactorRevisionInput!) { - suggestFactorRevision(input: $input) { - clientMutationId - results { - newlyCreated - id - fieldName - } - } -} - `;let El=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Gu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Uc=t.J1` - query FactorVariantRevisableFields($variantId: Int!) { - variant(id: $variantId) { - id - ... on FactorVariant { - ...RevisableFactorVariantFields - } - } -} - ${lo}`;let Yu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Uc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Tl=t.J1` - mutation SuggestFactorVariantRevision($input: SuggestFactorVariantRevisionInput!) { - suggestFactorVariantRevision(input: $input) { - clientMutationId - variant { - id - } - results { - id - fieldName - newlyCreated - } - } -} - `;let Gc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Tl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _s=t.J1` - query GeneRevisableFields($featureId: Int!) { - feature(id: $featureId) { - ...RevisableGeneFields - } -} - ${bi}`;let Ha=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_s}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const iu=t.J1` - mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { - suggestGeneRevision(input: $input) { - clientMutationId - results { - newlyCreated - id - fieldName - } - } -} - `;let Wu=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=iu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ku=t.J1` - query GeneVariantRevisableFields($variantId: Int!) { - variant(id: $variantId) { - id - ... on GeneVariant { - ...RevisableGeneVariantFields - } - } -} - ${Ui}`;let ou=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ku}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ja=t.J1` - mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { - suggestGeneVariantRevision(input: $input) { - clientMutationId - variant { - id - } - results { - id - fieldName - newlyCreated - } - } -} - `;let Xu=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=ja}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Qu=t.J1` - query MolecularProfileRevisableFields($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...RevisableMolecularProfileFields - } -} - ${Mi}`;let Ju=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Qu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const zl=t.J1` - mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { - suggestMolecularProfileRevision(input: $input) { - clientMutationId - molecularProfile { - id - } - results { - newlyCreated - id - fieldName - } - } -} - `;let ru=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=zl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const su=t.J1` - mutation SubmitSource($input: SuggestSourceInput!) { - suggestSource(input: $input) { - clientMutationId - sourceSuggestion { - id - } - } -} - `;let Yc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=su}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ua=t.J1` - query SourceSuggestionChecks($sourceId: Int!) { - source(id: $sourceId) { - fullyCurated - } - sourceSuggestions(sourceId: $sourceId) { - filteredCount - } -} - `;let Zu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ua}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const qu=t.J1` - query VariantGroupRevisableFields($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupRevisableFields - } -} - ${Ni}`;let gr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=qu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const au=t.J1` - mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { - suggestVariantGroupRevision(input: $input) { - clientMutationId - variantGroup { - id - } - results { - newlyCreated - id - fieldName - } - } -} - `;let cu=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=au}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` - query VariantGroupSubmittableFields($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...SubmittableVariantGroupFields - } -} - ${oo}`;const e1=t.J1` - mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { - submitVariantGroup(input: $input) { - clientMutationId - variantGroup { - id - } - } -} - `;let t1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=e1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const n1=t.J1` - 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 o1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=n1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const r1=t.J1` - query AcmgCodeSelectTypeahead($code: String!) { - acmgCodesTypeahead(queryTerm: $code) { - ...AcmgCodeSelectTypeaheadFields - } -} - ${Gi}`;let Ml=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=r1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Kc=t.J1` - query AcmgCodeSelectTag($id: Int!) { - acmgCode(id: $id) { - ...AcmgCodeSelectTypeaheadFields - } -} - ${Gi}`;let Ao=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Kc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ni=t.J1` - query ClingenCodeSelectTypeahead($code: String!) { - clingenCodesTypeahead(queryTerm: $code) { - ...ClingenCodeSelectTypeaheadFields - } -} - ${jo}`;let Pi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ni}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const cr=t.J1` - query ClingenCodeSelectTag($id: Int!) { - clingenCode(id: $id) { - ...ClingenCodeSelectTypeaheadFields - } -} - ${jo}`;let Ps=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=cr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Or=t.J1` - mutation QuickAddDisease($name: String!, $doid: String) { - addDisease(input: {name: $name, doid: $doid}) { - ...QuickAddDiseaseFields - } -} - ${Ki}`;let Br=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Or}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ga=t.J1` - query DiseaseSelectTypeahead($name: String!) { - diseaseTypeahead(queryTerm: $name) { - ...DiseaseSelectTypeaheadFields - } -} - ${pn}`;let Ro=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ga}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const lr=t.J1` - query DiseaseSelectTag($id: Int!) { - disease(id: $id) { - ...DiseaseSelectTypeaheadFields - } -} - ${pn}`;let Fs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=lr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ri=t.J1` - 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 - } - } -} - ${Jo}`;let Ea=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ri}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Sl=t.J1` - query EvidenceSelectTypeahead($eid: Int!) { - evidenceItems(id: $eid) { - nodes { - ...EvidenceSelectTypeaheadFields - } - } -} - ${sr}`;let Ya=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Sl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Wo=t.J1` - query EvidenceSelectTag($eid: Int!) { - evidenceItem(id: $eid) { - ...EvidenceSelectTypeaheadFields - } -} - ${sr}`;let Ta=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Wo}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Wa=t.J1` - mutation QuickAddFeature($name: String!, $organizationId: Int, $featureType: CreateableFeatureTypes!) { - createFeature( - input: {name: $name, organizationId: $organizationId, featureType: $featureType} - ) { - ...QuickAddFeatureFields - } -} - ${Ur}`;let Ys=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Wa}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ka=t.J1` - query FeatureSelectTypeahead($queryTerm: String!, $featureType: FeatureInstanceTypes) { - featureTypeahead(queryTerm: $queryTerm, featureType: $featureType) { - ...FeatureSelectTypeaheadFields - } -} - ${qi}`;let yc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ka}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const da=t.J1` - query FeatureSelectTag($featureId: Int!) { - feature(id: $featureId) { - ...FeatureSelectTypeaheadFields - } -} - ${qi}`;let Xc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=da}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ys=t.J1` - query MolecularProfileSelectTypeahead($name: String!, $geneId: Int) { - molecularProfiles(name: $name, geneId: $geneId, first: 25) { - nodes { - ...MolecularProfileSelectTypeaheadFields - } - } -} - ${$t}`;let Ti=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ys}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Dl=t.J1` - query MolecularProfileSelectTag($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...MolecularProfileSelectTypeaheadFields - } -} - ${$t}`;let Cc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Dl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ws=t.J1` - query PreviewMolecularProfileName2($mpStructure: MolecularProfileComponentInput) { - previewMolecularProfileName(structure: $mpStructure) { - existingMolecularProfile { - id - name - link - deprecated - flagged - } - segments { - ...PreviewMpName2 - } - deprecatedVariants { - id - name - link - deprecated - flagged - } - } -} - ${Zn}`;let Qc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ws}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Xa=t.J1` - query MpExpressionEditorPrepopulate($mpId: Int!) { - molecularProfile(id: $mpId) { - id - parsedName { - ...MolecularProfileParsedName - } - rawName - deprecated - flagged - } -} - ${In}`;let ir=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Xa}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const za=t.J1` - mutation CreateMolecularProfile2($mpStructure: MolecularProfileComponentInput!, $organizationId: Int) { - createMolecularProfile( - input: {structure: $mpStructure, organizationId: $organizationId} - ) { - molecularProfile { - id - name - link - deprecated - flagged - } - } -} - `;let br=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=za}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Fr=t.J1` - query NccnGuidelineSelectTypeahead($name: String!) { - nccnGuidelinesTypeahead(queryTerm: $name) { - ...NccnGuidelineSelectTypeaheadFields - } -} - ${yi}`;let Ol=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Fr}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ma=t.J1` - query NccnGuidelineSelectTag($id: Int!) { - nccnGuideline(id: $id) { - ...NccnGuidelineSelectTypeaheadFields - } -} - ${yi}`;let Jc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ma}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const As=t.J1` - query PhenotypeSelectTypeahead($name: String!) { - phenotypeTypeahead(queryTerm: $name) { - ...PhenotypeSelectTypeaheadFields - } -} - ${Hn}`;let bc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=As}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const s1=t.J1` - query PhenotypeSelectTag($id: Int!) { - phenotype(id: $id) { - ...PhenotypeSelectTypeaheadFields - } -} - ${Hn}`;let W1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=s1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Il=t.J1` - query QuickAddSourceCheckCitation($sourceType: SourceSource!, $citationId: String!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) -} - `;let lu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Il}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const a1=t.J1` - mutation QuickAddSourceRemoteCitation($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - id - citationId - sourceType - } - } -} - `;let Zc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=a1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const K1=t.J1` - query SourceSelectTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceSelectTypeaheadFields - } -} - ${En}`;let X1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=K1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Q1=t.J1` - query SourceSelectTag($id: Int!) { - source(id: $id) { - ...SourceSelectTypeaheadFields - } -} - ${En}`;let J1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Q1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Z1=t.J1` - mutation QuickAddTherapy($name: String!, $ncitId: String) { - addTherapy(input: {name: $name, ncitId: $ncitId}) { - ...QuickAddTherapyFields - } -} - ${wr}`;let q1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Z1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ed=t.J1` - query TherapySelectTypeahead($name: String!) { - therapyTypeahead(queryTerm: $name) { - ...TherapySelectTypeaheadFields - } -} - ${hn}`;let jd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ed}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const td=t.J1` - query TherapySelectTag($id: Int!) { - therapy(id: $id) { - ...TherapySelectTypeaheadFields - } -} - ${hn}`;let nd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=td}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const id=t.J1` - query VariantManager($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { - browseVariants( - variantName: $variantName - featureName: $featureName - 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 - } -} - ${lt}`;let $r=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=id}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const wl=t.J1` - mutation QuickAddVariant($name: String!, $featureId: Int!, $organizationId: Int) { - createVariant( - input: {name: $name, featureId: $featureId, organizationId: $organizationId} - ) { - ...QuickAddVariantFields - } -} - ${Zo}`;let uu=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=wl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const od=t.J1` - query VariantSelectTypeahead($name: String!, $featureId: Int) { - variantsTypeahead(queryTerm: $name, featureId: $featureId) { - ...VariantSelectTypeaheadFields - } -} - ${qr}`;let c1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=od}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const rd=t.J1` - query VariantSelectTag($variantId: Int!) { - variant(id: $variantId) { - ... on Variant { - ...VariantSelectTypeaheadFields - } - ... on GeneVariant { - ...VariantSelectTypeaheadFields - } - ... on FactorVariant { - ...VariantSelectTypeaheadFields - } - } -} - ${qr}`;let sd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=rd}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const xl=t.J1` - query VariantTypeSelectTypeahead($name: String!) { - variantTypeTypeahead(queryTerm: $name) { - ...VariantTypeSelectTypeaheadFields - } -} - ${bs}`;let Pl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=xl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const qc=t.J1` - query VariantTypeSelectTag($id: Int!) { - variantType(id: $id) { - ...VariantTypeSelectTypeaheadFields - } -} - ${bs}`;let Fl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=qc}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const l1=t.J1` - query AssertionDetail($assertionId: Int!) { - assertion(id: $assertionId) { - ...AssertionDetailFields - } -} - ${Ce}`;let du=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=l1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Al=t.J1` - query AssertionSummary($assertionId: Int!) { - assertion(id: $assertionId) { - ...AssertionSummaryFields - } -} - ${Ve}`;let hu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Al}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pu=t.J1` - query ClinicalTrialDetail($clinicalTrialId: Int!) { - clinicalTrial(id: $clinicalTrialId) { - id - name - nctId - description - url - link - } -} - `;let el=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const u1=t.J1` - query ClinicalTrialSummary($clinicalTrialId: Int!) { - clinicalTrial(id: $clinicalTrialId) { - id - name - nctId - description - url - link - } -} - `;let Ks=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=u1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fu=t.J1` - query DiseaseDetail($diseaseId: Int!) { - disease(id: $diseaseId) { - id - name - doid - diseaseUrl - displayName - diseaseAliases - link - deprecated - } -} - `;let Rl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=fu}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const vo=t.J1` - query DiseasesSummary($diseaseId: Int!) { - disease(id: $diseaseId) { - ...DiseasesSummaryFields - } -} - ${Mt}`;let Nl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=vo}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Qa=t.J1` - query EvidenceDetail($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...EvidenceDetailFields - } -} - ${tn}`;let Hr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Qa}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ud=t.J1` - query EvidenceSummary($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...EvidenceSummaryFields - } -} - ${on}`;let kl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ud}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Sa=t.J1` - query FeatureDetail($featureId: Int!) { - feature(id: $featureId) { - ...FeatureDetailFields - } -} - ${bn}`;let Cs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Sa}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ja=t.J1` - query FeaturesSummary($featureId: Int!) { - feature(id: $featureId) { - ...FeatureSummaryFields - } -} - ${Lo}`;let mu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ja}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Gd=t.J1` - query MolecularProfileDetail($mpId: Int!) { - molecularProfile(id: $mpId) { - ...MolecularProfileDetailFields - } -} - ${Mn}`;let Rs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Gd}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const d1=t.J1` - query MolecularProfileSummary($mpId: Int!) { - molecularProfile(id: $mpId) { - ...MolecularProfileSummaryFields - } -} - ${pi}`;let h1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=d1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const p1=t.J1` - query OrganizationDetail($organizationId: Int!) { - organization(id: $organizationId) { - ...OrganizationDetailFields - } -} - ${ei}`;let Ec=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=p1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Za=t.J1` - query OrganizationGroups($organizationId: Int!) { - organization(id: $organizationId) { - subGroups { - ...OrganizationGroupsFields - } - } -} - ${li}`;let Vl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Za}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ll=t.J1` - 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 - } - } - } -} - ${ai}`;let gu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ll}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Xs=t.J1` - query PhenotypeDetail($phenotypeId: Int!) { - phenotype(id: $phenotypeId) { - id - name - description - hpoId - url - link - } -} - `;let $i=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Xs}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Bl=t.J1` - query DataReleases { - dataReleases { - ...Release - } -} - ${mi}`;let $l=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Bl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const f1=t.J1` - query SourceDetail($sourceId: Int!) { - source(id: $sourceId) { - ...SourceDetailFields - } -} - ${Ei}`;let ad=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=f1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const m1=t.J1` - query SourceSummary($sourceId: Int!) { - source(id: $sourceId) { - ...SourceSummaryFields - } -} - ${Xi}`;let cd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=m1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ld=t.J1` - query TherapyDetail($therapyId: Int!) { - therapy(id: $therapyId) { - id - name - ncitId - therapyUrl - therapyAliases - link - deprecated - } -} - `;let g1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ld}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const qa=t.J1` - query TherapiesSummary($therapyId: Int!) { - therapy(id: $therapyId) { - ...TherapiesSummaryFields - } -} - ${no}`;let ud=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=qa}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const dd=t.J1` - query UserDetail($userId: Int!) { - user(id: $userId) { - ...UserDetailFields - } -} - ${ao}`;let hd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=dd}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pd=t.J1` - 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 - } - } - } -} - ${_o} -${An} -${ro} -${qo}`;let fd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pd}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Dn=t.J1` - mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { - updateNotificationStatus(input: $input) { - notifications { - ...notificationNode - } - } -} - ${qo}`;let io=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Dn}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const v1=t.J1` - mutation Unsubscribe($input: UnsubscribeInput!) { - unsubscribe(input: $input) { - unsubscribedEntities { - ...subscribable - } - } -} - ${Gr}`;let _1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=v1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const wo=t.J1` - mutation Subscribe($input: SubscribeInput!) { - subscribe(input: $input) { - subscriptions { - id - } - } -} - `;let tl=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=wo}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const oi=t.J1` - query VariantGroupDetail($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupDetailFields - } -} - ${Do}`;let $o=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=oi}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ec=t.J1` - query VariantGroupsSummary($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupSummaryFields - } -} - ${Qo}`;let Tc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ec}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const nl=t.J1` - query VariantTypeDetail($variantTypeId: Int!) { - variantType(id: $variantTypeId) { - id - name - soid - description - url - link - } -} - `;let vu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=nl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Hl=t.J1` - query VariantDetail($variantId: Int!) { - variant(id: $variantId) { - ...VariantDetailFields - } -} - ${Mr}`;let ea=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Hl}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const y1=t.J1` - query VariantSummary($variantId: Int!) { - variant(id: $variantId) { - ...VariantSummaryFields - } -} - ${vr}`;let _u=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=y1}static#e=this.\u0275fac=function(vt){return new(vt||g)(s.KVO(t.Ic))};static#t=this.\u0275prov=s.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},5312:(Rt,De,a)=>{a.d(De,{c:()=>t});const t={production:!0}},5500:(Rt,De,a)=>{var t=a(345),s=a(3953),m=a(1985),e=a(7707),M=a(7673),K=a(9030),L=a(7786),j=a(5343);const A=new m.c(j.l);var w=a(1413),F=a(7468),X=a(4412),V=a(8359),x=a(4668),oe=a(983),J=a(8810),Ee=a(8071);class pe{constructor(d,p,v){this.kind=d,this.value=p,this.error=v,this.hasValue="N"===d}observe(d){return Ie(this,d)}do(d,p,v){const{kind:C,value:O,error:Q}=this;return"N"===C?d?.(O):"E"===C?p?.(Q):v?.()}accept(d,p,v){var C;return(0,Ee.T)(null===(C=d)||void 0===C?void 0:C.next)?this.observe(d):this.do(d,p,v)}toObservable(){const{kind:d,value:p,error:v}=this,C="N"===d?(0,M.of)(p):"E"===d?(0,J.$)(()=>v):"C"===d?oe.w:0;if(!C)throw new TypeError(`Unexpected notification kind ${d}`);return C}static createNext(d){return new pe("N",d)}static createError(d){return new pe("E",void 0,d)}static createComplete(){return pe.completeNotification}}function Ie(T,d){var p,v,C;const{kind:O,value:Q,error:Me}=T;if("string"!=typeof O)throw new TypeError('Invalid notification, missing "kind"');"N"===O?null===(p=d.next)||void 0===p||p.call(d,Q):"E"===O?null===(v=d.error)||void 0===v||v.call(d,Me):null===(C=d.complete)||void 0===C||C.call(d)}pe.completeNotification=new pe("C");var ve=a(9974),fe=a(4360),Z=a(3703),he=function(){},E=he;function R(T){E=T||he}var U=console;function se(T){if(T.error&&T.group&&T.groupCollapsed&&T.groupEnd&&T.warn)return T;var p=0;return{error:function(O){for(var Q=arguments.length,Me=new Array(Q>1?Q-1:0),we=1;we1?Q-1:0),we=1;we1?Q-1:0),we=1;we2?we-2:0),yt=2;yt"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 C,v=Wt(T);if(d){var O=Wt(this).constructor;C=Reflect.construct(v,arguments,O)}else C=v.apply(this,arguments);return function _e(T,d){return!d||"object"!=typeof d&&"function"!=typeof d?te(T):d}(this,C)}}function et(T){return function ht(T){if(Array.isArray(T))return kn(T)}(T)||function cn(T){if(typeof Symbol<"u"&&null!=T[Symbol.iterator]||null!=T["@@iterator"])return Array.from(T)}(T)||Wn(T)||function In(){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 Wn(T,d){if(T){if("string"==typeof T)return kn(T,d);var p=Object.prototype.toString.call(T).slice(8,-1);if("Object"===p&&T.constructor&&(p=T.constructor.name),"Map"===p||"Set"===p)return Array.from(T);if("Arguments"===p||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return kn(T,d)}}function kn(T,d){(null==d||d>T.length)&&(d=T.length);for(var p=0,v=new Array(d);p-1&&(yt=yt.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var Dt=yt.replace(/^\s+/,"").replace(/\(eval code/g,"("),Bt=Dt.match(/ (\((.+):(\d+):(\d+)\)$)/),jt=(Dt=Bt?Dt.replace(Bt[0],""):Dt).split(/\s+/).slice(1),Xt=this.extractLocation(Bt?Bt[1]:jt.pop()),Zt=jt.join(" ")||void 0,vn=["eval",""].indexOf(Xt[0])>-1?void 0:Xt[0];return new v({functionName:Zt,fileName:vn,lineNumber:Xt[1],columnNumber:Xt[2],source:yt})},this)},parseFFOrSafari:function(we){return we.stack.split("\n").filter(function(yt){return!yt.match(Q)},this).map(function(yt){if(yt.indexOf(" > eval")>-1&&(yt=yt.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===yt.indexOf("@")&&-1===yt.indexOf(":"))return new v({functionName:yt});var Dt=/((.*".+"[^@]*)?[^@]*)(?:@)/,Bt=yt.match(Dt),jt=Bt&&Bt[1]?Bt[1]:void 0,Xt=this.extractLocation(yt.replace(Dt,""));return new v({functionName:jt,fileName:Xt[0],lineNumber:Xt[1],columnNumber:Xt[2],source:yt})},this)},parseOpera:function(we){return!we.stacktrace||we.message.indexOf("\n")>-1&&we.message.split("\n").length>we.stacktrace.split("\n").length?this.parseOpera9(we):we.stack?this.parseOpera11(we):this.parseOpera10(we)},parseOpera9:function(we){for(var ot=/Line (\d+).*script (?:in )?(\S+)/i,yt=we.message.split("\n"),Dt=[],Bt=2,jt=yt.length;Bt/,"$2").replace(/\([^)]*\)/g,"")||void 0;jt.match(/\(([^)]*)\)/)&&(Zt=jt.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var vn=void 0===Zt||"[arguments not available]"===Zt?void 0:Zt.split(",");return new v({functionName:Xt,args:vn,fileName:Bt[0],lineNumber:Bt[1],columnNumber:Bt[2],source:yt})},this)}})}),q=wn(function(T,d){d.getArg=function p(an,_n,ti){if(_n in an)return an[_n];if(3===arguments.length)return ti;throw new Error('"'+_n+'" is a required argument.')};var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,C=/^data:.+\,.+$/;function O(an){var _n=an.match(v);return _n?{scheme:_n[1],auth:_n[2],host:_n[3],port:_n[4],path:_n[5]}:null}function Q(an){var _n="";return an.scheme&&(_n+=an.scheme+":"),_n+="//",an.auth&&(_n+=an.auth+"@"),an.host&&(_n+=an.host),an.port&&(_n+=":"+an.port),an.path&&(_n+=an.path),_n}function Me(an){var _n=an,ti=O(an);if(ti){if(!ti.path)return an;_n=ti.path}for(var Li,Qn=d.isAbsolute(_n),Ci=_n.split(/\/+/),nr=0,ur=Ci.length-1;ur>=0;ur--)"."===(Li=Ci[ur])?Ci.splice(ur,1):".."===Li?nr++:nr>0&&(""===Li?(Ci.splice(ur+1,nr),nr=0):(Ci.splice(ur,2),nr--));return""===(_n=Ci.join("/"))&&(_n=Qn?"/":"."),ti?(ti.path=_n,Q(ti)):_n}d.urlParse=O,d.urlGenerate=Q,d.normalize=Me,d.join=function we(an,_n){""===an&&(an="."),""===_n&&(_n=".");var ti=O(_n),Qn=O(an);if(Qn&&(an=Qn.path||"/"),ti&&!ti.scheme)return Qn&&(ti.scheme=Qn.scheme),Q(ti);if(ti||_n.match(C))return _n;if(Qn&&!Qn.host&&!Qn.path)return Qn.host=_n,Q(Qn);var Ci="/"===_n.charAt(0)?_n:Me(an.replace(/\/+$/,"")+"/"+_n);return Qn?(Qn.path=Ci,Q(Qn)):Ci},d.isAbsolute=function(an){return"/"===an.charAt(0)||!!an.match(v)},d.relative=function ot(an,_n){""===an&&(an="."),an=an.replace(/\/$/,"");for(var ti=0;0!==_n.indexOf(an+"/");){var Qn=an.lastIndexOf("/");if(Qn<0||(an=an.slice(0,Qn)).match(/^([^\/]+:\/)?\/*$/))return _n;++ti}return Array(ti+1).join("../")+_n.substr(an.length+1)};var yt=!("__proto__"in Object.create(null));function Dt(an){return an}function Xt(an){if(!an)return!1;var _n=an.length;if(_n<9||95!==an.charCodeAt(_n-1)||95!==an.charCodeAt(_n-2)||111!==an.charCodeAt(_n-3)||116!==an.charCodeAt(_n-4)||111!==an.charCodeAt(_n-5)||114!==an.charCodeAt(_n-6)||112!==an.charCodeAt(_n-7)||95!==an.charCodeAt(_n-8)||95!==an.charCodeAt(_n-9))return!1;for(var ti=_n-10;ti>=0;ti--)if(36!==an.charCodeAt(ti))return!1;return!0}function Sn(an,_n){return an===_n?0:an>_n?1:-1}d.toSetString=yt?Dt:function Bt(an){return Xt(an)?"$"+an:an},d.fromSetString=yt?Dt:function jt(an){return Xt(an)?an.slice(1):an},d.compareByOriginalPositions=function Zt(an,_n,ti){var Qn=an.source-_n.source;return 0!==Qn||0!=(Qn=an.originalLine-_n.originalLine)||0!=(Qn=an.originalColumn-_n.originalColumn)||ti||0!=(Qn=an.generatedColumn-_n.generatedColumn)||0!=(Qn=an.generatedLine-_n.generatedLine)?Qn:an.name-_n.name},d.compareByGeneratedPositionsDeflated=function vn(an,_n,ti){var Qn=an.generatedLine-_n.generatedLine;return 0!==Qn||0!=(Qn=an.generatedColumn-_n.generatedColumn)||ti||0!=(Qn=an.source-_n.source)||0!=(Qn=an.originalLine-_n.originalLine)||0!=(Qn=an.originalColumn-_n.originalColumn)?Qn:an.name-_n.name},d.compareByGeneratedPositionsInflated=function si(an,_n){var ti=an.generatedLine-_n.generatedLine;return 0!==ti||0!=(ti=an.generatedColumn-_n.generatedColumn)||0!==(ti=Sn(an.source,_n.source))||0!=(ti=an.originalLine-_n.originalLine)||0!=(ti=an.originalColumn-_n.originalColumn)?ti:Sn(an.name,_n.name)}}),ee=wn(function(T,d){function p(v,C,O,Q,Me,we){var ot=Math.floor((C-v)/2)+v,yt=Me(O,Q[ot],!0);return 0===yt?ot:yt>0?C-ot>1?p(ot,C,O,Q,Me,we):we==d.LEAST_UPPER_BOUND?C1?p(v,ot,O,Q,Me,we):we==d.LEAST_UPPER_BOUND?ot:v<0?-1:v}d.GREATEST_LOWER_BOUND=1,d.LEAST_UPPER_BOUND=2,d.search=function(C,O,Q,Me){if(0===O.length)return-1;var we=p(-1,O.length,C,O,Q,Me||d.GREATEST_LOWER_BOUND);if(we<0)return-1;for(;we-1>=0&&0===Q(O[we],O[we-1],!0);)--we;return we}}),Xe=Object.prototype.hasOwnProperty;function dt(){this._array=[],this._set=Object.create(null)}dt.fromArray=function(d,p){for(var v=new dt,C=0,O=d.length;C=0&&d=C)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(we=re_decode(d.charCodeAt(p++))))throw new Error("Invalid base64 digit: "+d.charAt(p-1));Me=!!(32&we),O+=(we&=31)<>1;return 1&~T?p:-p}(O),v.rest=p};function ge(T,d,p){var v=T[d];T[d]=T[p],T[p]=v}function H(T,d,p,v){if(p=0){var Q=this._originalMappings[O];if(void 0===d.column)for(var Me=Q.originalLine;Q&&Q.originalLine===Me;)C.push({line:q.getArg(Q,"generatedLine",null),column:q.getArg(Q,"generatedColumn",null),lastColumn:q.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++O];else for(var we=Q.originalColumn;Q&&Q.originalLine===p&&Q.originalColumn==we;)C.push({line:q.getArg(Q,"generatedLine",null),column:q.getArg(Q,"generatedColumn",null),lastColumn:q.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++O]}return C};var Cn=rn;function Jn(T){var d=T;"string"==typeof T&&(d=JSON.parse(T.replace(/^\)\]\}'/,"")));var p=q.getArg(d,"version"),v=q.getArg(d,"sources"),C=q.getArg(d,"names",[]),O=q.getArg(d,"sourceRoot",null),Q=q.getArg(d,"sourcesContent",null),Me=q.getArg(d,"mappings"),we=q.getArg(d,"file",null);if(p!=this._version)throw new Error("Unsupported version: "+p);v=v.map(String).map(q.normalize).map(function(ot){return O&&q.isAbsolute(O)&&q.isAbsolute(ot)?q.relative(O,ot):ot}),this._names=rt.fromArray(C.map(String),!0),this._sources=rt.fromArray(v,!0),this.sourceRoot=O,this.sourcesContent=Q,this._mappings=Me,this.file=we}function jn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}(Jn.prototype=Object.create(rn.prototype)).consumer=rn,Jn.fromSourceMap=function(d){var p=Object.create(Jn.prototype),v=p._names=rt.fromArray(d._names.toArray(),!0),C=p._sources=rt.fromArray(d._sources.toArray(),!0);p.sourceRoot=d._sourceRoot,p.sourcesContent=d._generateSourcesContent(p._sources.toArray(),p.sourceRoot),p.file=d._file;for(var O=d._mappings.toArray().slice(),Q=p.__generatedMappings=[],Me=p.__originalMappings=[],we=0,ot=O.length;we1&&(Zt.source=Me+Sn[1],Me+=Sn[1],Zt.originalLine=O+Sn[2],O=Zt.originalLine,Zt.originalLine+=1,Zt.originalColumn=Q+Sn[3],Q=Zt.originalColumn,Sn.length>4&&(Zt.name=we+Sn[4],we+=Sn[4])),Xt.push(Zt),"number"==typeof Zt.originalLine&&jt.push(Zt)}Ft(Xt,q.compareByGeneratedPositionsDeflated),this.__generatedMappings=Xt,Ft(jt,q.compareByOriginalPositions),this.__originalMappings=jt},Jn.prototype._findMapping=function(d,p,v,C,O,Q){if(d[v]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[v]);if(d[C]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[C]);return ee.search(d,p,O,Q)},Jn.prototype.computeColumnSpans=function(){for(var d=0;d=0){var C=this._generatedMappings[v];if(C.generatedLine===p.generatedLine){var O=q.getArg(C,"source",null);null!==O&&(O=this._sources.at(O),null!=this.sourceRoot&&(O=q.join(this.sourceRoot,O)));var Q=q.getArg(C,"name",null);return null!==Q&&(Q=this._names.at(Q)),{source:O,line:q.getArg(C,"originalLine",null),column:q.getArg(C,"originalColumn",null),name:Q}}}return{source:null,line:null,column:null,name:null}},Jn.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return null==d})},Jn.prototype.sourceContentFor=function(d,p){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(d=q.relative(this.sourceRoot,d)),this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];var v;if(null!=this.sourceRoot&&(v=q.urlParse(this.sourceRoot))){var C=d.replace(/^file:\/\//,"");if("file"==v.scheme&&this._sources.has(C))return this.sourcesContent[this._sources.indexOf(C)];if((!v.path||"/"==v.path)&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(p)return null;throw new Error('"'+d+'" is not in the SourceMap.')},Jn.prototype.generatedPositionFor=function(d){var p=q.getArg(d,"source");if(null!=this.sourceRoot&&(p=q.relative(this.sourceRoot,p)),!this._sources.has(p))return{line:null,column:null,lastColumn:null};var v={source:p=this._sources.indexOf(p),originalLine:q.getArg(d,"line"),originalColumn:q.getArg(d,"column")},C=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",q.compareByOriginalPositions,q.getArg(d,"bias",rn.GREATEST_LOWER_BOUND));if(C>=0){var O=this._originalMappings[C];if(O.source===v.source)return{line:q.getArg(O,"generatedLine",null),column:q.getArg(O,"generatedColumn",null),lastColumn:q.getArg(O,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Gn=Jn;function zi(T){var d=T;"string"==typeof T&&(d=JSON.parse(T.replace(/^\)\]\}'/,"")));var p=q.getArg(d,"version"),v=q.getArg(d,"sections");if(p!=this._version)throw new Error("Unsupported version: "+p);this._sources=new rt,this._names=new rt;var C={line:-1,column:0};this._sections=v.map(function(O){if(O.url)throw new Error("Support for url field in sections not implemented.");var Q=q.getArg(O,"offset"),Me=q.getArg(Q,"line"),we=q.getArg(Q,"column");if(Me=200&&Zt.status<300||"file://"===Bt.substr(0,7)&&Zt.responseText?jt(Zt.responseText):Xt(new Error("HTTP status: "+Zt.status+" retrieving "+Bt)))},Zt.send()})}function O(Bt){if(typeof window<"u"&&window.atob)return window.atob(Bt);throw new Error("You must supply a polyfill for window.atob in this environment")}function ot(Bt){if("object"!==$n(Bt))throw new TypeError("Given StackFrame is not an object");if("string"!=typeof Bt.fileName)throw new TypeError("Given file name is not a String");if("number"!=typeof Bt.lineNumber||Bt.lineNumber%1!=0||Bt.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if("number"!=typeof Bt.columnNumber||Bt.columnNumber%1!=0||Bt.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}return function Bt(jt){if(!(this instanceof Bt))return new Bt(jt);this.sourceCache=(jt=jt||{}).sourceCache||{},this.sourceMapConsumerCache=jt.sourceMapConsumerCache||{},this.ajax=jt.ajax||C,this._atob=jt.atob||O,this._get=function(Zt){return new Promise(function(vn,Sn){var si="data:"===Zt.substr(0,5);if(this.sourceCache[Zt])vn(this.sourceCache[Zt]);else if(jt.offline&&!si)Sn(new Error("Cannot make network requests in offline mode"));else if(si){var _n=Zt.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(_n){var Qn=Zt.substr(_n[0].length),Ci=this._atob(Qn);this.sourceCache[Zt]=Ci,vn(Ci)}else Sn(new Error("The encoding of the inline sourcemap is not supported"))}else{var Li=this.ajax(Zt,{method:"get"});this.sourceCache[Zt]=Li,Li.then(vn,Sn)}}.bind(this))},this._getSourceMapConsumer=function(Zt,vn){return new Promise(function(Sn){if(this.sourceMapConsumerCache[Zt])Sn(this.sourceMapConsumerCache[Zt]);else{var si=new Promise(function(an,_n){return this._get(Zt).then(function(ti){"string"==typeof ti&&(ti=function Q(Bt){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(Bt);throw new Error("You must supply a polyfill for JSON.parse in this environment")}(ti.replace(/^\)\]\}'/,""))),typeof ti.sourceRoot>"u"&&(ti.sourceRoot=vn),an(new p.SourceMapConsumer(ti))},_n)}.bind(this));this.sourceMapConsumerCache[Zt]=si,Sn(si)}}.bind(this))},this.pinpoint=function(Zt){return new Promise(function(vn,Sn){this.getMappedLocation(Zt).then(function(si){function an(){vn(si)}this.findFunctionName(si).then(vn,an).catch(an)}.bind(this),Sn)}.bind(this))},this.findFunctionName=function(Zt){return new Promise(function(vn,Sn){ot(Zt),this._get(Zt.fileName).then(function(an){var _n=Zt.lineNumber,ti=Zt.columnNumber,Qn=function Me(Bt,jt){for(var Xt=[/['"]?([$_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*=>/],Zt=Bt.split("\n"),vn="",Sn=Math.min(jt,20),si=0;si=0&&(an=an.substr(0,_n)),an){vn=an+vn;for(var ti=Xt.length,Qn=0;Qn0&&void 0!==arguments[0]?arguments[0]:{}).sourceMaps,Q=void 0!==O&&O;return zn(this,p),Et(te(v=d.call(this,"stackTrace")),"sourceCache_",void 0),Et(te(v),"sourceMaps_",void 0),v.sourceCache_={},v.sourceMaps_=Q,v}return At(p,[{key:"beforeSubscribe",value:function(C){var O=this,Q=this.getStackFrames_();this.sourceMaps_&&typeof window<"u"&&"file:"!==window.location.protocol?Hn(C,{mappedStackTrace:(0,K.v)(function(){var Me=new Vo({sourceCache:O.sourceCache_});return Promise.all(Q.map(function(we){return Me.pinpoint(we).catch(function(){return we})}))}).pipe((0,x.t)(1),Co()),stackTrace:Q}):Hn(C,{mappedStackTrace:(0,M.of)(Q).pipe(Co()),stackTrace:Q})}},{key:"teardown",value:function(){this.sourceCache_={}}},{key:"getStackFrames_",value:function(){try{throw new Error}catch(O){var C=!0;return ue.parse(O).filter(function(Q){var Me=!C;return/coreSubscribe_/.test(Q.functionName||"")&&(C=!1),Me})}}}]),p}(dn),Xn=Symbol("cycleDetected"),ci=Symbol("cycleWarned"),_i=function(T){St(p,T);var d=ie(p);function p(v,C){var O;return zn(this,p),Et(te(O=d.call(this,"cycle")),"logger_",void 0),Et(te(O),"nexts_",[]),Et(te(O),"spy_",void 0),O.logger_=se(C),O.spy_=v,O}return At(p,[{key:"afterNext",value:function(C,O){this.nexts_.pop()}},{key:"beforeNext",value:function(C,O){var Q=this.logger_,Me=this.nexts_,we=this.spy_,ot=C.observable,yt=C.subscription;if(-1!==Me.indexOf(C)&&!yt[Xn]&&(yt[Xn]=!0,-1===Me.findIndex(function(Xt){return Xt.subscription[ci]}))){yt[ci]=!0;var Dt=pn(C);0===Dt.length&&we.warnOnce(console,"Stack tracing is not enabled; add the StackTracePlugin before the CyclePlugin.");var Bt=Dt.length?"; subscribed at\n".concat(Dt.join("\n")):"",jt=zt(ot);Q.warn("Cyclic next detected; type = ".concat(jt,"; value = ").concat(O).concat(Bt))}Me.push(C)}}]),p}(dn),lo=function(T){St(p,T);var d=ie(p);function p(v,C){var O;return zn(this,p),Et(te(O=d.call(this,"debug(".concat(Ut(v),")"))),"notifications_",void 0),Et(te(O),"matcher_",void 0),O.notifications_=C,O.matcher_=function(Q,Me){return Tt(Q,v)&&-1!==O.notifications_.indexOf(Me)},O}return At(p,[{key:"beforeComplete",value:function(C){(0,this.matcher_)(C,"complete")}},{key:"beforeError",value:function(C,O){(0,this.matcher_)(C,"error")}},{key:"beforeNext",value:function(C,O){(0,this.matcher_)(C,"next")}},{key:"beforeSubscribe",value:function(C){(0,this.matcher_)(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){(0,this.matcher_)(C,"unsubscribe")}}]),p}(dn),bi=Symbol("graphRef");function mn(T){return T[bi]}var Mi=function(T){St(p,T);var d=ie(p);function p(){var v,O=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keptDuration,Q=void 0===O?3e4:O;return zn(this,p),Et(te(v=d.call(this,"graph")),"flushIntervalId_",void 0),Et(te(v),"flushQueue_",void 0),Et(te(v),"keptDuration_",void 0),Et(te(v),"notifications_",void 0),Et(te(v),"sentinel_",void 0),v.flushIntervalId_=void 0,v.flushQueue_=[],v.keptDuration_=Q,v.notifications_=[],v.sentinel_={depth:0,flattened:!1,flattenings:[],flatteningsFlushed:0,link:void 0,rootSink:void 0,sentinel:void 0,sink:void 0,sources:[],sourcesFlushed:0},v.sentinel_.link=v.sentinel_,v.sentinel_.sentinel=v.sentinel_,v}return At(p,[{key:"afterNext",value:function(C,O){this.notifications_.pop()}},{key:"afterSubscribe",value:function(C){this.notifications_.pop()}},{key:"afterUnsubscribe",value:function(C){this.notifications_.pop(),this.flush_(C)}},{key:"beforeNext",value:function(C,O){this.notifications_.push({notification:"next",ref:C})}},{key:"beforeSubscribe",value:function(C){var O=this.notifications_,Q=this.sentinel_,Me=function Ui(T,d){return T[bi]=d,d}(C,{depth:1,flattened:!1,flattenings:[],flatteningsFlushed:0,link:Q,rootSink:void 0,sentinel:Q,sink:void 0,sources:[],sourcesFlushed:0}),we=O.length;if(we>0&&"next"===O[we-1].notification){var ot=O[we-1].ref,yt=mn(ot);yt.flattenings.push(C),Me.link=yt,Me.flattened=!0,Me.rootSink=yt.rootSink||ot,Me.sink=ot}else for(var Dt=we-1;Dt>-1;--Dt)if("subscribe"===O[Dt].notification){var Bt=O[we-1].ref,jt=mn(Bt);jt.sources.push(C),Me.depth=jt.depth+1,Me.link=jt,Me.rootSink=jt.rootSink||Bt,Me.sink=Bt;break}Me.link===Me.sentinel&&Me.sentinel.sources.push(C),O.push({notification:"subscribe",ref:C})}},{key:"beforeUnsubscribe",value:function(C){this.notifications_.push({notification:"unsubscribe",ref:C})}},{key:"teardown",value:function(){void 0!==this.flushIntervalId_&&(clearInterval(this.flushIntervalId_),this.flushIntervalId_=void 0)}},{key:"flush_",value:function(C){var O=this,Q=mn(C),we=Q.sources;if(C.unsubscribed&&Q.flattenings.every(function(Bt){return Bt.unsubscribed})&&we.every(function(Bt){return Bt.unsubscribed})){var ot=this.keptDuration_,yt=Q.link,Dt=function(){var jt=yt.flattenings,Xt=yt.sources,Zt=jt.indexOf(C);-1!==Zt&&(jt.splice(Zt,1),++yt.flatteningsFlushed);var vn=Xt.indexOf(C);-1!==vn&&(Xt.splice(vn,1),++yt.sourcesFlushed)};0===ot?Dt():ot>0&&ot<1/0&&(this.flushQueue_.push({due:Date.now()+ot,flush:Dt}),void 0===this.flushIntervalId_&&(this.flushIntervalId_=setInterval(function(){var Bt=Date.now();O.flushQueue_=O.flushQueue_.filter(function(jt){return jt.due>Bt||(jt.flush(),!1)}),0===O.flushQueue_.length&&(clearInterval(O.flushIntervalId_),O.flushIntervalId_=void 0)},ot)))}}}]),p}(dn),Ni=function(T){St(p,T);var d=ie(p);function p(v,C){var O,Me=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).complete,we=void 0===Me||Me;return zn(this,p),Et(te(O=d.call(this,"let(".concat(Ut(v),")"))),"match_",void 0),Et(te(O),"select_",void 0),O.match_=v,O.select_=we?C:function(ot){return(0,L.h)(A,C(ot))},O}return At(p,[{key:"select",value:function(C){var Q=this.select_;if(Tt(C,this.match_))return Q}}]),p}(dn),oo=function(T){St(p,T);var d=ie(p);function p(v,C){var O;zn(this,p),Et(te(O=d.call(this,"log(".concat(Ut(C),")"))),"auditor_",void 0),Et(te(O),"logger_",void 0),Et(te(O),"notificationMatch_",void 0),Et(te(O),"tagMatch_",void 0),O.auditor_=v.auditor,O.tagMatch_=C;var Q=/.+/;switch(arguments.length<=2?0:arguments.length-2){case 0:O.notificationMatch_=Q,O.logger_=se(U);break;case 1:"function"==typeof(arguments.length<=2?void 0:arguments[2])?(O.notificationMatch_=arguments.length<=2?void 0:arguments[2],O.logger_=se(U)):(O.notificationMatch_=Q,O.logger_=se(arguments.length<=2?void 0:arguments[2]));break;default:O.notificationMatch_=arguments.length<=2?void 0:arguments[2],O.logger_=se(arguments.length<=3?void 0:arguments[3])}return O}return At(p,[{key:"beforeComplete",value:function(C){this.log_(C,"complete")}},{key:"beforeError",value:function(C,O){this.log_(C,"error",O)}},{key:"beforeNext",value:function(C,O){this.log_(C,"next",O)}},{key:"beforeSubscribe",value:function(C){this.log_(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){this.log_(C,"unsubscribe")}},{key:"log_",value:function(C,O,Q){var Me=this,we=this.auditor_,ot=this.notificationMatch_,yt=this.tagMatch_;Tt(C,yt)&&Tt(C,ot,O)&&we.audit(this,function(Dt){var Bt=Me.logger_,jt=C.observable,Xt=en(jt),Zt=zt(jt),vn="string"==typeof yt?"":"; matching ".concat(Ut(yt)),Sn=0===Dt?"":"; ignored ".concat(Dt),si=Xt?"Tag = ".concat(Xt,"; notification = ").concat(O).concat(vn).concat(Sn):"Type = ".concat(Zt,"; notification = ").concat(O).concat(vn).concat(Sn);switch(O){case"error":Bt.error("".concat(si,"; error ="),Q);break;case"next":Bt.log("".concat(si,"; value ="),Q);break;default:Bt.log(si)}})}}]),p}(dn),Gi=function(){function T(d){zn(this,T),Et(this,"teardown",void 0),Et(this,"match_",void 0),Et(this,"paused_",!0),Et(this,"states_",new Map),Et(this,"stats_",void 0),this.match_=d,this.stats_=new w.B}return At(T,[{key:"stats",get:function(){return this.stats_.asObservable()}},{key:"paused",get:function(){return this.paused_}},{key:"clear",value:function(){var p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};this.states_.forEach(function(v){v.notifications_=v.notifications_.filter(function(C){return!p(C)})}),this.broadcast_()}},{key:"log",value:function(){var v=se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:U);v.group("Deck matching ".concat(Ut(this.match_))),v.log("Paused =",this.paused_),this.states_.forEach(function(C){v.group("Observable; tag = ".concat(C.tag_)),v.log("Notifications =",C.notifications_),v.groupEnd()}),v.groupEnd()}},{key:"pause",value:function(){this.paused_=!0,this.broadcast_()}},{key:"resume",value:function(){this.states_.forEach(function(p){for(;p.notifications_.length>0;)p.subject_.next(p.notifications_.shift())}),this.paused_=!1,this.broadcast_()}},{key:"select",value:function(p){var v=this,C=p.observable;return function(O){var Q=v.states_.get(C);return Q?Q.subscription_.unsubscribe():(Q={notifications_:[],subject_:new w.B,subscription_:void 0,tag_:en(C)},v.states_.set(C,Q)),Q.subscription_=O.pipe(function Y(){return(0,ve.N)((T,d)=>{T.subscribe((0,fe._)(d,p=>{d.next(pe.createNext(p))},()=>{d.next(pe.createComplete()),d.complete()},p=>{d.next(pe.createError(p)),d.complete()}))})}(),Co()).subscribe({next:function(we){v.paused_?Q.notifications_.push(we):Q.subject_.next(we),v.broadcast_()}}),v.broadcast_(),Q.subject_.asObservable().pipe(function z(){return(0,ve.N)((T,d)=>{T.subscribe((0,fe._)(d,p=>Ie(p,d)))})}())}}},{key:"skip",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.notifications_.shift()}),this.broadcast_()}},{key:"step",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.subject_.next(p.notifications_.shift())}),this.broadcast_()}},{key:"unsubscribe",value:function(){this.states_.forEach(function(p){p.subscription_&&(p.subscription_.unsubscribe(),p.subscription_=void 0)}),this.broadcast_()}},{key:"broadcast_",value:function(){var p=this.paused_,C=this.stats_,O=0;this.states_.forEach(function(Q){return O+=Q.notifications_.length}),C.next({notifications:O,paused:p})}}]),T}(),jo=function(T){St(p,T);var d=ie(p);function p(v){var C;return zn(this,p),Et(te(C=d.call(this,"pause(".concat(Ut(v),")"))),"match_",void 0),Et(te(C),"deck_",void 0),C.deck_=new Gi(v),C.match_=v,C}return At(p,[{key:"deck",get:function(){return this.deck_}},{key:"match",get:function(){return this.match_}},{key:"select",value:function(C){var O=this.deck_;if(Tt(C,this.match_))return O.select(C)}},{key:"teardown",value:function(){var C=this.deck_;C&&(C.resume(),C.unsubscribe())}}]),p}(dn),Ki=Symbol("snapshotRef");function Jo(T){return T[Ki]}function sr(T){var d=[(0,M.of)(null)];return T.forEach(function(v){v.subscriptions?v.subscriptions.forEach(p):p(v)}),(0,F.p)(d).pipe((0,Z.u)(void 0),Co());function p(v){d.push(v.mappedStackTrace),v.rootSink&&d.push(v.rootSink.mappedStackTrace)}}var uo=function(T){St(p,T);var d=ie(p);function p(v){var C,Q=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).keptValues,Me=void 0===Q?4:Q;return zn(this,p),Et(te(C=d.call(this,"snapshot")),"keptValues_",void 0),Et(te(C),"sentinel_",void 0),Et(te(C),"spy_",void 0),C.keptValues_=Me,C.sentinel_=void 0,C.spy_=v,C}return At(p,[{key:"afterUnsubscribe",value:function(C){var O=Jo(C);O.tick=this.spy_.tick,O.unsubscribed=!0}},{key:"beforeComplete",value:function(C){var O=Jo(C);O.tick=this.spy_.tick,O.complete=!0}},{key:"beforeError",value:function(C,O){var Q=Jo(C);Q.tick=this.spy_.tick,Q.error=O}},{key:"beforeNext",value:function(C,O){var Q=this.spy_.tick,Me=Jo(C);Me.tick=Q,Me.values.push({tick:Q,timestamp:Date.now(),value:O});var ot=Me.values.length-this.keptValues_;ot>0&&(Me.values.splice(0,ot),Me.valuesFlushed+=ot)}},{key:"beforeSubscribe",value:function(C){!function fo(T,d){T[Ki]=d}(C,{complete:!1,error:void 0,tick:this.spy_.tick,timestamp:Date.now(),unsubscribed:!1,values:[],valuesFlushed:0});var O=mn(C);O?this.sentinel_=O.sentinel:this.spy_.warnOnce(console,"Graphing is not enabled; add the GraphPlugin before the SnapshotPlugin.")}},{key:"snapshotAll",value:function(){var O=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).since,Q=new Map,Me=new Map,we=new Map,ot=this.getSubscriptionRefs_();return ot.forEach(function(yt,Dt){var Bt,jt=Dt.observable,Xt=Dt.subscriber,Zt=Dt.subscription,vn=mn(Dt),Sn=vn.flatteningsFlushed,si=vn.sourcesFlushed,an=Jo(Dt),Qn=an.tick,Ci=an.timestamp,Li=an.unsubscribed,nr=an.values,ur=an.valuesFlushed,ic={complete:an.complete,error:an.error,flattenings:new Map,flatteningsFlushed:Sn,id:gt(Dt),mappedStackTrace:$t(Dt),observable:jt,rootSink:void 0,sink:void 0,sources:new Map,sourcesFlushed:si,stackTrace:pn(Dt),subscriber:Xt,subscription:Zt,tick:Qn,timestamp:Ci,unsubscribed:Li};we.set(Zt,ic);var kr=Me.get(Xt);kr||(kr={id:gt(Xt),subscriber:Xt,subscriptions:new Map,tick:Qn,values:[],valuesFlushed:0},Me.set(Xt,kr)),kr.subscriptions.set(Zt,ic),kr.tick=Math.max(kr.tick,Qn),(Bt=kr.values).push.apply(Bt,et(nr)),kr.valuesFlushed+=ur;var Oa=Q.get(jt);Oa||(Oa={id:gt(jt),observable:jt,path:Le(jt),subscriptions:new Map,tag:en(jt),tick:Qn,type:zt(jt)},Q.set(jt,Oa)),Oa.subscriptions.set(Zt,ic),Oa.tick=Math.max(Oa.tick,Qn)}),ot.forEach(function(yt,Dt){var Bt=mn(Dt),jt=we.get(Dt.subscription);Bt.sink&&(jt.sink=we.get(Bt.sink.subscription)),Bt.rootSink&&(jt.rootSink=we.get(Bt.rootSink.subscription)),Bt.flattenings.forEach(function(Xt){return jt.flattenings.set(Xt.subscription,we.get(Xt.subscription))}),Bt.sources.forEach(function(Xt){return jt.sources.set(Xt.subscription,we.get(Xt.subscription))})}),Me.forEach(function(yt){yt.values.sort(function(Dt,Bt){return Dt.tick-Bt.tick})}),void 0!==O&&(Q.forEach(function(yt,Dt){yt.tick<=O.tick&&Q.delete(Dt)}),Me.forEach(function(yt,Dt){yt.tick<=O.tick&&Me.delete(Dt)}),we.forEach(function(yt,Dt){yt.tick<=O.tick&&we.delete(Dt)})),{mapStackTraces:sr,observables:Q,subscribers:Me,subscriptions:we,tick:this.spy_.tick}}},{key:"snapshotObservable",value:function(C){return this.snapshotAll().observables.get(C.observable)}},{key:"snapshotSubscriber",value:function(C){return this.snapshotAll().subscribers.get(C.subscriber)}},{key:"addSubscriptionRefs_",value:function(C,O){var Q=this;O.set(C,!0);var Me=mn(C);Me.flattenings.forEach(function(we){return Q.addSubscriptionRefs_(we,O)}),Me.sources.forEach(function(we){return Q.addSubscriptionRefs_(we,O)})}},{key:"getSubscriptionRefs_",value:function(){var C=this,O=this.sentinel_,Q=new Map;return O&&O.sources.forEach(function(Me){return C.addSubscriptionRefs_(Me,Q)}),Q}}]),p}(dn),pr=function(T){St(p,T);var d=ie(p);function p(v){var C;return zn(this,p),Et(te(C=d.call(this,"stats")),"spy_",void 0),Et(te(C),"stats_",void 0),Et(te(C),"time_",void 0),C.spy_=v,C.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},C.time_=0,C}return At(p,[{key:"afterSubscribe",value:function(C){var O=this.stats_,Q=mn(C);if(Q){var Me=Q.depth,we=Q.flattened,ot=Q.flattenings,yt=Q.flatteningsFlushed,Bt=Q.sources,jt=Q.sourcesFlushed;Q.rootSink||(O.rootSubscribes+=1),we&&(O.flattenedSubscribes+=1),ot.length+yt+Bt.length+jt===0&&(O.maxDepth0&&(this.timeoutId_=setTimeout(function(){for(var Q=Date.now()-v;C.length>0&&C[0].timestamp<=Q;){var Me=C.shift();Me.task(Me.ignored)}p.timeoutId_=void 0,p.wait_()},Math.max(0,C[0].timestamp+v-Date.now())))}}]),T}(),Ur=function(){function T(d){zn(this,T),Et(this,"detectorRecords_",void 0),Et(this,"snapshotPlugin_",void 0),Et(this,"spy_",void 0),this.detectorRecords_=new Map,this.snapshotPlugin_=d.find(uo),this.spy_=d}return At(T,[{key:"detect",value:function(p){var v=this.detectorRecords_,C=this.snapshotPlugin_,O=this.spy_;if(C){var Q=v.get(p),Me=this.record_(C.snapshotAll());if(Q?Q.snapshotRecords.push(Me):v.set(p,Q={snapshotRecords:[Me]}),Q.snapshotRecords.length>2&&Q.snapshotRecords.shift(),!(Q.snapshotRecords.length<2)){var we=function Pe(T,d){return function Kt(T){if(Array.isArray(T))return T}(T)||function Tn(T,d){var p=T&&(typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"]);if(null!=p){var Q,Me,v=[],C=!0,O=!1;try{for(p=p.call(T);!(C=(Q=p.next()).done)&&(v.push(Q.value),!d||v.length!==d);C=!0);}catch(we){O=!0,Me=we}finally{try{!C&&null!=p.return&&p.return()}finally{if(O)throw Me}}return v}}(T,d)||Wn(T,d)||function Un(){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_(p,we[0],we[1])}}else O.warnOnce(console,"Snapshotting is not enabled.")}},{key:"compare_",value:function(p,v,C){var O=[],Q=[],Me=[],we=[],ot=v.rootSubscriptions,yt=C.rootSubscriptions;if(ot.forEach(function(Dt,Bt){yt.has(Bt)||Q.push(Dt)}),yt.forEach(function(Dt,Bt){var jt=ot.get(Bt);if(jt){var Xt=jt.flattenings,Zt=Dt.flattenings;Xt.forEach(function(vn,Sn){Zt.has(Sn)||we.push(vn)}),Zt.forEach(function(vn,Sn){Xt.has(Sn)||Me.push(vn)})}else O.push(Dt)}),0!==Me.length||0!==we.length||0!==O.length||0!==Q.length)return{flatteningSubscriptions:Me,flatteningUnsubscriptions:we,subscriptions:O.map(function(Dt){return Dt.subscriptionSnapshot}),unsubscriptions:Q.map(function(Dt){return Dt.subscriptionSnapshot})}}},{key:"findFlatteningSubscriptions_",value:function(p,v){var C=v.flattenings,O=v.subscriptionSnapshot;p.subscriptions.forEach(function(Q){Q.rootSink===O&&Q.flattenings.forEach(function(Me){var we=Me.subscription;we.closed||C.set(we,Me)})})}},{key:"findRootSubscriptions_",value:function(p,v){var C=this;p.observables.forEach(function(O){O.subscriptions.forEach(function(Q){var yt=Q.subscription;if(!(Q.complete||Q.error||Q.sink||yt.closed)){var Dt={flattenings:new Map,subscriptionSnapshot:Q};C.findFlatteningSubscriptions_(p,Dt),v.set(yt,Dt)}})})}},{key:"record_",value:function(p){var v=new Map;return this.findRootSubscriptions_(p,v),{rootSubscriptions:v,snapshot:p}}}]),T}();var yi=m.c.prototype.subscribe,wr={},ls=function(){function T(){var d=this,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(zn(this,T),Et(this,"auditor_",void 0),Et(this,"defaultLogger_",void 0),Et(this,"maxLogged_",20),Et(this,"plugins_",void 0),Et(this,"pluginsSubject_",void 0),Et(this,"teardown_",void 0),Et(this,"tick_",void 0),Et(this,"undos_",void 0),Et(this,"warned_",void 0),T.spy_)throw new Error("Already spying on Observable.prototype.subscribe.");p.warning&&console.warn("Spying on Observable.prototype.subscribe."),T.spy_=this,m.c.prototype.subscribe=T.coreSubscribe_,this.auditor_=new Lo(p.audit||0),this.defaultLogger_=p.defaultLogger||U,this.plugins_=!1===p.defaultPlugins?[]:[new En(p),new Mi(p),new uo(this,p),new _i(this,this.defaultLogger_),new pr(this)],this.pluginsSubject_=new X.t(this.plugins_),this.tick_=0,this.undos_=[],this.warned_={};var v=new Ur(this);R(function(C){return d.detect_(C,v)}),typeof window<"u"&&[p.global||"spy","rxSpy"].forEach(function(C){window.hasOwnProperty(C)&&(d.defaultLogger_.log("Overwriting window.".concat(C)),wr[C]=window[C]),window[C]=function Zn(T){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{deck:function(v){d();var C=T.findAll(jo);if(void 0!==v){var Q=C[v-1];return Q?Q.deck:void 0}var O=se(U);O.group("".concat(C.length," Deck(s)")),C.forEach(function(Me,we){return O.log("".concat(we+1," pause(").concat(Me.name,")"))}),O.groupEnd()},debug:function(){d();for(var v=arguments.length,C=new Array(v),O=0;O0&&void 0!==arguments[0]?arguments[0]:"";d(),function S(T){E(T)}(v)},flush:function(){d(),T.flush()},inferPath:Le,inferType:zt,let:function(){d();for(var v=arguments.length,C=new Array(v),O=0;O1?v-1:0),O=1;Oyt?ot.length-yt:0;Dt&&ot.splice(yt,Dt),we.group("".concat(ot.length+Dt," snapshot(s) found"));var Bt=ot.length>3?"groupCollapsed":"group";ot.forEach(function(jt){var Xt=jt.observable;we[Bt].call(we,Xt.tag?"Tag = ".concat(Xt.tag):"Type = ".concat(Xt.type)),we.log("Path =",Xt.path);var Zt=jt.subs,vn=jt.subs.length>3?"groupCollapsed":"group";we.group("".concat(Zt.length," subscriber(s)")),Zt.forEach(function(Sn){var si=Sn.subscription,an=Sn.subscriber,_n=an.values,ti=an.valuesFlushed;we[vn].call(we,"Subscriber"),we.log("Value count =",_n.length+ti),_n.length>0&&we.log("Last value =",_n[_n.length-1].value),Zo(we,si),Array.from(an.subscriptions.values()).filter(function(Ci){return Ci!==si}).forEach(function(Ci){we.groupCollapsed("Other subscription"),Zo(we,Ci),we.groupEnd()}),we.groupEnd()}),we.groupEnd(),we.groupEnd()}),Dt&&we.log("... another ".concat(Dt," snapshot(s) not logged.")),we.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"show",value:function(p,v){var C=/.+/;p?"function"==typeof p.log&&(v=p,p=C):p=C;var O=this.find(uo);if(O){var Q=O.snapshotAll(),Me=Array.from(Q.observables.values()).filter(function(Dt){return Tt(Dt.observable,p)}),we=se(v||this.defaultLogger_),ot=this.maxLogged_,yt=Me.length>ot?Me.length-ot:0;yt&&Me.splice(ot,yt),Q.mapStackTraces(Me).subscribe(function(){we.group("".concat(Me.length+yt," snapshot(s) matching ").concat(Ut(p)));var Dt=Me.length>3?"groupCollapsed":"group";Me.forEach(function(Bt){we[Dt].call(we,Bt.tag?"Tag = ".concat(Bt.tag):"Type = ".concat(Bt.type)),we.log("Path =",Bt.path);var jt=Bt.subscriptions,Xt=jt.size>3?"groupCollapsed":"group";we.group("".concat(jt.size," subscriber(s)")),jt.forEach(function(Zt){var vn=Q.subscribers.get(Zt.subscriber);if(vn){var Sn=vn.values,si=vn.valuesFlushed;we[Xt].call(we,"Subscriber"),we.log("Value count =",Sn.length+si),Sn.length>0&&we.log("Last value =",Sn[Sn.length-1].value),Zo(we,Zt),Array.from(vn.subscriptions.values()).filter(function(_n){return _n!==Zt}).forEach(function(_n){we.groupCollapsed("Other subscription"),Zo(we,_n),we.groupEnd()}),we.groupEnd()}else we.warn("Cannot find subscriber snapshot")}),we.groupEnd(),we.groupEnd()}),yt&&we.log("... another ".concat(yt," snapshot(s) not logged.")),we.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"stats",value:function(p){var v=this.find(pr);if(v){var C=v.stats,O=C.leafSubscribes,Q=C.maxDepth,Me=C.flattenedSubscribes,we=C.rootSubscribes,ot=C.totalDepth,yt=se(p||this.defaultLogger_);yt.group("Stats"),yt.log("Subscribes =",C.subscribes),we>0&&yt.log("Root subscribes =",we),O>0&&yt.log("Leaf subscribes =",O),Me>0&&yt.log("Flattened subscribes =",Me),yt.log("Unsubscribes =",C.unsubscribes),yt.log("Nexts =",C.nexts),yt.log("Errors =",C.errors),yt.log("Completes =",C.completes),Q>0&&(yt.log("Max. depth =",Q),yt.log("Avg. depth =",(ot/O).toFixed(1))),yt.log("Tick =",C.tick),yt.log("Timespan =",C.timespan),yt.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 p=this,v=arguments.length,C=new Array(v),O=0;O2?C-2:0),Q=2;Q2?O-2:0),Me=2;Me0){this.preSelectSubject||(this.preSelectSubject=new w.B),this.postSelectSubscription&&this.postSelectSubscription.unsubscribe();var vn=this.preSelectSubject.asObservable();Zt.forEach(function(Sn){return vn=Sn(vn)}),this.postSelectSubscription=vn.pipe(Co()).subscribe(Dt)}else this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0,this.preSelectSubject=void 0)},next:function(Xt){this.preSelectSubject?this.preSelectSubject.next(Xt):this.postSelectObserver.next(Xt)},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 we.add(v.pluginsSubject_.pipe(Co()).subscribe({next:function(Xt){return Bt.let(Xt)}})),Me(function(jt){return jt.beforeSubscribe(ot)},function(){we.add(yi.call(p,Bt)),we.add(function(){return Bt.unsubscribe()})},function(jt){return jt.afterSubscribe(ot)}),we}}]),T}();function Zo(T,d){var v=d.error,C=d.unsubscribed;T.log("State =",d.complete?"complete":v?"error":"incomplete"),v&&T.error("Error =",v),C&&T.log("Unsubscribed =",!0),function qr(T,d){var v=d.rootSink;(v?v.mappedStackTrace:d.mappedStackTrace).subscribe(function(O){return T.log("Root subscribe",O)})}(T,d)}Et(ls,"spy_",void 0);var Ve=a(177);const nt=void 0,Yt=["en",[["a","p"],["AM","PM"],nt],[["AM","PM"],nt,nt],[["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"]],nt,[["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"]],nt,[["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}",nt,"{1} 'at' {0}",nt],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mt(T){const p=Math.floor(Math.abs(T)),v=T.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===v?1:5}];var tn=a(1626),on=a(9969);function Mn(T){return new s.wOt(3e3,!1)}function We(T){switch(T.length){case 0:return new on.sf;case 1:return T[0];default:return new on.ui(T)}}function ct(T,d,p=new Map,v=new Map){const C=[],O=[];let Q=-1,Me=null;if(d.forEach(we=>{const ot=we.get("offset"),yt=ot==Q,Dt=yt&&Me||new Map;we.forEach((Bt,jt)=>{let Xt=jt,Zt=Bt;if("offset"!==jt)switch(Xt=T.normalizePropertyName(Xt,C),Zt){case on.FX:Zt=p.get(jt);break;case on.kp:Zt=v.get(jt);break;default:Zt=T.normalizeStyleValue(jt,Xt,Zt,C)}Dt.set(Xt,Zt)}),yt||O.push(Dt),Me=Dt,Q=ot}),C.length)throw function Sr(T){return new s.wOt(3502,!1)}();return O}function sn(T,d,p,v){switch(d){case"start":T.onStart(()=>v(p&&Vn(p,"start",T)));break;case"done":T.onDone(()=>v(p&&Vn(p,"done",T)));break;case"destroy":T.onDestroy(()=>v(p&&Vn(p,"destroy",T)))}}function Vn(T,d,p){const O=Ln(T.element,T.triggerName,T.fromState,T.toState,d||T.phaseName,p.totalTime??T.totalTime,!!p.disabled),Q=T._data;return null!=Q&&(O._data=Q),O}function Ln(T,d,p,v,C="",O=0,Q){return{element:T,triggerName:d,fromState:p,toState:v,phaseName:C,totalTime:O,disabled:!!Q}}function fi(T,d,p){let v=T.get(d);return v||T.set(d,v=p),v}function ki(T){const d=T.indexOf(":");return[T.substring(1,d),T.slice(d+1)]}const bo=typeof document>"u"?null:document.documentElement;function hi(T){const d=T.parentNode||T.host||null;return d===bo?null:d}let Oo=null,ts=!1;function pt(T,d){for(;d;){if(d===T)return!0;d=hi(d)}return!1}function Jt(T,d,p){if(p)return Array.from(T.querySelectorAll(d));const v=T.querySelector(d);return v?[v]:[]}let Qi=(()=>{class T{validateStyleProperty(p){return function Ne(T){Oo||(Oo=function ye(){return typeof document<"u"?document.body:null}()||{},ts=!!Oo.style&&"WebkitAppearance"in Oo.style);let d=!0;return Oo.style&&!function ho(T){return"ebkit"==T.substring(1,6)}(T)&&(d=T in Oo.style,!d&&ts&&(d="Webkit"+T.charAt(0).toUpperCase()+T.slice(1)in Oo.style)),d}(p)}containsElement(p,v){return pt(p,v)}getParentElement(p){return hi(p)}query(p,v,C){return Jt(p,v,C)}computeStyle(p,v,C){return C||""}animate(p,v,C,O,Q,Me=[],we){return new on.sf(C,O)}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275prov=s.jDH({token:T,factory:T.\u0275fac})}return T})();class xo{static#e=this.NOOP=new Qi}class vi{}const Pc=1e3,uc="ng-enter",mo="ng-leave",oa="ng-trigger",Yr=".ng-trigger",Zs="ng-animating",Aa=".ng-animating";function mr(T){if("number"==typeof T)return T;const d=T.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:ga(parseFloat(d[1]),d[2])}function ga(T,d){return"s"===d?T*Pc:T}function Hs(T,d,p){return T.hasOwnProperty("duration")?T:function ds(T,d,p){let C,O=0,Q="";if("string"==typeof T){const Me=T.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return d.push(Mn()),{duration:0,delay:0,easing:""};C=ga(parseFloat(Me[1]),Me[2]);const we=Me[3];null!=we&&(O=ga(parseFloat(we),Me[4]));const ot=Me[5];ot&&(Q=ot)}else C=T;if(!p){let Me=!1,we=d.length;C<0&&(d.push(function Bn(){return new s.wOt(3100,!1)}()),Me=!0),O<0&&(d.push(function xn(){return new s.wOt(3101,!1)}()),Me=!0),Me&&d.splice(we,0,Mn())}return{duration:C,delay:O,easing:Q}}(T,d,p)}function Wr(T,d,p){d.forEach((v,C)=>{const O=Xr(C);p&&!p.has(C)&&p.set(C,T.style[O]),T.style[O]=v})}function xi(T,d){d.forEach((p,v)=>{const C=Xr(v);T.style[C]=""})}function js(T){return Array.isArray(T)?1==T.length?T[0]:(0,on.K2)(T):T}const hs=new RegExp("{{\\s*(.+?)\\s*}}","g");function Na(T){let d=[];if("string"==typeof T){let p;for(;p=hs.exec(T);)d.push(p[1]);hs.lastIndex=0}return d}function Kr(T,d,p){const v=`${T}`,C=v.replace(hs,(O,Q)=>{let Me=d[Q];return null==Me&&(p.push(function qn(T){return new s.wOt(3003,!1)}()),Me=""),Me.toString()});return C==v?T:C}const va=/-+([a-z0-9])/g;function Xr(T){return T.replace(va,(...d)=>d[1].toUpperCase())}function yr(T,d,p){switch(d.type){case on.If.Trigger:return T.visitTrigger(d,p);case on.If.State:return T.visitState(d,p);case on.If.Transition:return T.visitTransition(d,p);case on.If.Sequence:return T.visitSequence(d,p);case on.If.Group:return T.visitGroup(d,p);case on.If.Animate:return T.visitAnimate(d,p);case on.If.Keyframes:return T.visitKeyframes(d,p);case on.If.Style:return T.visitStyle(d,p);case on.If.Reference:return T.visitReference(d,p);case on.If.AnimateChild:return T.visitAnimateChild(d,p);case on.If.AnimateRef:return T.visitAnimateRef(d,p);case on.If.Query:return T.visitQuery(d,p);case on.If.Stagger:return T.visitStagger(d,p);default:throw function pi(T){return new s.wOt(3004,!1)}()}}function Ts(T,d){return window.getComputedStyle(T)[d]}const ka=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 sa extends vi{normalizePropertyName(d,p){return Xr(d)}normalizeStyleValue(d,p,v,C){let O="";const Q=v.toString().trim();if(ka.has(p)&&0!==v&&"0"!==v)if("number"==typeof v)O="px";else{const Me=v.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&C.push(function ei(T,d){return new s.wOt(3005,!1)}())}return Q+O}}const pc="*";const Ms=new Set(["true","1"]),Us=new Set(["false","0"]);function so(T,d){const p=Ms.has(T)||Us.has(T),v=Ms.has(d)||Us.has(d);return(C,O)=>{let Q=T==pc||T==C,Me=d==pc||d==O;return!Q&&p&&"boolean"==typeof C&&(Q=C?Ms.has(T):Us.has(T)),!Me&&v&&"boolean"==typeof O&&(Me=O?Ms.has(d):Us.has(d)),Q&&Me}}const fc=new RegExp("s*:selfs*,?","g");function Go(T,d,p,v){return new ca(T).build(d,p,v)}class ca{constructor(d){this._driver=d}build(d,p,v){const C=new mc(p);return this._resetContextStyleTimingState(C),yr(this,js(d),C)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles=new Map,d.collectedStyles.set("",new Map),d.currentTime=0}visitTrigger(d,p){let v=p.queryCount=0,C=p.depCount=0;const O=[],Q=[];return"@"==d.name.charAt(0)&&p.errors.push(function li(){return new s.wOt(3006,!1)}()),d.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(p),Me.type==on.If.State){const we=Me,ot=we.name;ot.toString().split(/\s*,\s*/).forEach(yt=>{we.name=yt,O.push(this.visitState(we,p))}),we.name=ot}else if(Me.type==on.If.Transition){const we=this.visitTransition(Me,p);v+=we.queryCount,C+=we.depCount,Q.push(we)}else p.errors.push(function ai(){return new s.wOt(3007,!1)}())}),{type:on.If.Trigger,name:d.name,states:O,transitions:Q,queryCount:v,depCount:C,options:null}}visitState(d,p){const v=this.visitStyle(d.styles,p),C=d.options&&d.options.params||null;if(v.containsDynamicStyles){const O=new Set,Q=C||{};v.styles.forEach(Me=>{Me instanceof Map&&Me.forEach(we=>{Na(we).forEach(ot=>{Q.hasOwnProperty(ot)||O.add(ot)})})}),O.size&&p.errors.push(function mi(T,d){return new s.wOt(3008,!1)}(0,O.values()))}return{type:on.If.State,name:d.name,style:v,options:C?{params:C}:null}}visitTransition(d,p){p.queryCount=0,p.depCount=0;const v=yr(this,js(d.animation),p),C=function aa(T,d){const p=[];return"string"==typeof T?T.split(/\s*,\s*/).forEach(v=>function Ac(T,d,p){if(":"==T[0]){const we=function Rc(T,d){switch(T){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,v)=>parseFloat(v)>parseFloat(p);case":decrement":return(p,v)=>parseFloat(v) *"}}(T,p);if("function"==typeof we)return void d.push(we);T=we}const v=T.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return p.push(function Gr(T){return new s.wOt(3015,!1)}()),d;const C=v[1],O=v[2],Q=v[3];d.push(so(C,Q)),"<"==O[0]&&(C!=pc||Q!=pc)&&d.push(so(Q,C))}(v,p,d)):p.push(T),p}(d.expr,p.errors);return{type:on.If.Transition,matchers:C,animation:v,queryCount:p.queryCount,depCount:p.depCount,options:Te(d.options)}}visitSequence(d,p){return{type:on.If.Sequence,steps:d.steps.map(v=>yr(this,v,p)),options:Te(d.options)}}visitGroup(d,p){const v=p.currentTime;let C=0;const O=d.steps.map(Q=>{p.currentTime=v;const Me=yr(this,Q,p);return C=Math.max(C,p.currentTime),Me});return p.currentTime=C,{type:on.If.Group,steps:O,options:Te(d.options)}}visitAnimate(d,p){const v=function it(T,d){if(T.hasOwnProperty("duration"))return T;if("number"==typeof T)return Ye(Hs(T,d).duration,0,"");const p=T;if(p.split(/\s+/).some(O=>"{"==O.charAt(0)&&"{"==O.charAt(1))){const O=Ye(0,0,"");return O.dynamic=!0,O.strValue=p,O}const C=Hs(p,d);return Ye(C.duration,C.delay,C.easing)}(d.timings,p.errors);p.currentAnimateTimings=v;let C,O=d.styles?d.styles:(0,on.iF)({});if(O.type==on.If.Keyframes)C=this.visitKeyframes(O,p);else{let Q=d.styles,Me=!1;if(!Q){Me=!0;const ot={};v.easing&&(ot.easing=v.easing),Q=(0,on.iF)(ot)}p.currentTime+=v.duration+v.delay;const we=this.visitStyle(Q,p);we.isEmptyStep=Me,C=we}return p.currentAnimateTimings=null,{type:on.If.Animate,timings:v,style:C,options:null}}visitStyle(d,p){const v=this._makeStyleAst(d,p);return this._validateStyleAst(v,p),v}_makeStyleAst(d,p){const v=[],C=Array.isArray(d.styles)?d.styles:[d.styles];for(let Me of C)"string"==typeof Me?Me===on.kp?v.push(Me):p.errors.push(new s.wOt(3002,!1)):v.push(new Map(Object.entries(Me)));let O=!1,Q=null;return v.forEach(Me=>{if(Me instanceof Map&&(Me.has("easing")&&(Q=Me.get("easing"),Me.delete("easing")),!O))for(let we of Me.values())if(we.toString().indexOf("{{")>=0){O=!0;break}}),{type:on.If.Style,styles:v,easing:Q,offset:d.offset,containsDynamicStyles:O,options:null}}_validateStyleAst(d,p){const v=p.currentAnimateTimings;let C=p.currentTime,O=p.currentTime;v&&O>0&&(O-=v.duration+v.delay),d.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((Me,we)=>{const ot=p.collectedStyles.get(p.currentQuerySelector),yt=ot.get(we);let Dt=!0;yt&&(O!=C&&O>=yt.startTime&&C<=yt.endTime&&(p.errors.push(function Si(T,d,p,v,C){return new s.wOt(3010,!1)}()),Dt=!1),O=yt.startTime),Dt&&ot.set(we,{startTime:O,endTime:C}),p.options&&function Ra(T,d,p){const v=d.params||{},C=Na(T);C.length&&C.forEach(O=>{v.hasOwnProperty(O)||p.push(function Kn(T){return new s.wOt(3001,!1)}())})}(Me,p.options,p.errors)})})}visitKeyframes(d,p){const v={type:on.If.Keyframes,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push(function no(){return new s.wOt(3011,!1)}()),v;let O=0;const Q=[];let Me=!1,we=!1,ot=0;const yt=d.steps.map(Sn=>{const si=this._makeStyleAst(Sn,p);let an=null!=si.offset?si.offset:function G(T){if("string"==typeof T)return null;let d=null;if(Array.isArray(T))T.forEach(p=>{if(p instanceof Map&&p.has("offset")){const v=p;d=parseFloat(v.get("offset")),v.delete("offset")}});else if(T instanceof Map&&T.has("offset")){const p=T;d=parseFloat(p.get("offset")),p.delete("offset")}return d}(si.styles),_n=0;return null!=an&&(O++,_n=si.offset=an),we=we||_n<0||_n>1,Me=Me||_n0&&O{const an=Bt>0?si==jt?1:Bt*si:Q[si],_n=an*vn;p.currentTime=Xt+Zt.delay+_n,Zt.duration=_n,this._validateStyleAst(Sn,p),Sn.offset=an,v.styles.push(Sn)}),v}visitReference(d,p){return{type:on.If.Reference,animation:yr(this,js(d.animation),p),options:Te(d.options)}}visitAnimateChild(d,p){return p.depCount++,{type:on.If.AnimateChild,options:Te(d.options)}}visitAnimateRef(d,p){return{type:on.If.AnimateRef,animation:this.visitReference(d.animation,p),options:Te(d.options)}}visitQuery(d,p){const v=p.currentQuerySelector,C=d.options||{};p.queryCount++,p.currentQuery=d;const[O,Q]=function Ss(T){const d=!!T.split(/\s*,\s*/).find(p=>":self"==p);return d&&(T=T.replace(fc,"")),T=T.replace(/@\*/g,Yr).replace(/@\w+/g,p=>Yr+"-"+p.slice(1)).replace(/:animating/g,Aa),[T,d]}(d.selector);p.currentQuerySelector=v.length?v+" "+O:O,fi(p.collectedStyles,p.currentQuerySelector,new Map);const Me=yr(this,js(d.animation),p);return p.currentQuery=null,p.currentQuerySelector=v,{type:on.If.Query,selector:O,limit:C.limit||0,optional:!!C.optional,includeSelf:Q,animation:Me,originalSelector:d.selector,options:Te(d.options)}}visitStagger(d,p){p.currentQuery||p.errors.push(function _o(){return new s.wOt(3013,!1)}());const v="full"===d.timings?{duration:0,delay:0,easing:"full"}:Hs(d.timings,p.errors,!0);return{type:on.If.Stagger,animation:yr(this,js(d.animation),p),timings:v,options:null}}}class mc{constructor(d){this.errors=d,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 Te(T){return T?(T={...T}).params&&(T.params=function Ba(T){return T?{...T}:null}(T.params)):T={},T}function Ye(T,d,p){return{duration:T,delay:d,easing:p}}function Nt(T,d,p,v,C,O,Q=null,Me=!1){return{type:1,element:T,keyframes:d,preStyleProps:p,postStyleProps:v,duration:C,delay:O,totalTime:C+O,easing:Q,subTimeline:Me}}class gn{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,p){let v=this._map.get(d);v||this._map.set(d,v=[]),v.push(...p)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const yo=new RegExp(":enter","g"),Eo=new RegExp(":leave","g");function Yn(T,d,p,v,C,O=new Map,Q=new Map,Me,we,ot=[]){return(new Io).buildKeyframes(T,d,p,v,C,O,Q,Me,we,ot)}class Io{buildKeyframes(d,p,v,C,O,Q,Me,we,ot,yt=[]){ot=ot||new gn;const Dt=new Po(d,p,ot,C,O,yt,[]);Dt.options=we;const Bt=we.delay?mr(we.delay):0;Dt.currentTimeline.delayNextStep(Bt),Dt.currentTimeline.setStyles([Q],null,Dt.errors,we),yr(this,v,Dt);const jt=Dt.timelines.filter(Xt=>Xt.containsAnimation());if(jt.length&&Me.size){let Xt;for(let Zt=jt.length-1;Zt>=0;Zt--){const vn=jt[Zt];if(vn.element===p){Xt=vn;break}}Xt&&!Xt.allowOnlyTimelineStyles()&&Xt.setStyles([Me],null,Dt.errors,we)}return jt.length?jt.map(Xt=>Xt.buildKeyframes()):[Nt(p,[],[],[],0,Bt,"",!1)]}visitTrigger(d,p){}visitState(d,p){}visitTransition(d,p){}visitAnimateChild(d,p){const v=p.subInstructions.get(p.element);if(v){const C=p.createSubContext(d.options),O=p.currentTimeline.currentTime,Q=this._visitSubInstructions(v,C,C.options);O!=Q&&p.transformIntoNewTimeline(Q)}p.previousNode=d}visitAnimateRef(d,p){const v=p.createSubContext(d.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([d.options,d.animation.options],p,v),this.visitReference(d.animation,v),p.transformIntoNewTimeline(v.currentTimeline.currentTime),p.previousNode=d}_applyAnimationRefDelays(d,p,v){for(const C of d){const O=C?.delay;if(O){const Q="number"==typeof O?O:mr(Kr(O,C?.params??{},p.errors));v.delayNextStep(Q)}}}_visitSubInstructions(d,p,v){let O=p.currentTimeline.currentTime;const Q=null!=v.duration?mr(v.duration):null,Me=null!=v.delay?mr(v.delay):null;return 0!==Q&&d.forEach(we=>{const ot=p.appendInstructionToTimeline(we,Q,Me);O=Math.max(O,ot.duration+ot.delay)}),O}visitReference(d,p){p.updateOptions(d.options,!0),yr(this,d.animation,p),p.previousNode=d}visitSequence(d,p){const v=p.subContextCount;let C=p;const O=d.options;if(O&&(O.params||O.delay)&&(C=p.createSubContext(O),C.transformIntoNewTimeline(),null!=O.delay)){C.previousNode.type==on.If.Style&&(C.currentTimeline.snapshotCurrentStyles(),C.previousNode=Wi);const Q=mr(O.delay);C.delayNextStep(Q)}d.steps.length&&(d.steps.forEach(Q=>yr(this,Q,C)),C.currentTimeline.applyStylesToKeyframe(),C.subContextCount>v&&C.transformIntoNewTimeline()),p.previousNode=d}visitGroup(d,p){const v=[];let C=p.currentTimeline.currentTime;const O=d.options&&d.options.delay?mr(d.options.delay):0;d.steps.forEach(Q=>{const Me=p.createSubContext(d.options);O&&Me.delayNextStep(O),yr(this,Q,Me),C=Math.max(C,Me.currentTimeline.currentTime),v.push(Me.currentTimeline)}),v.forEach(Q=>p.currentTimeline.mergeTimelineCollectedStyles(Q)),p.transformIntoNewTimeline(C),p.previousNode=d}_visitTiming(d,p){if(d.dynamic){const v=d.strValue;return Hs(p.params?Kr(v,p.params,p.errors):v,p.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,p){const v=p.currentAnimateTimings=this._visitTiming(d.timings,p),C=p.currentTimeline;v.delay&&(p.incrementTime(v.delay),C.snapshotCurrentStyles());const O=d.style;O.type==on.If.Keyframes?this.visitKeyframes(O,p):(p.incrementTime(v.duration),this.visitStyle(O,p),C.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=d}visitStyle(d,p){const v=p.currentTimeline,C=p.currentAnimateTimings;!C&&v.hasCurrentStyleProperties()&&v.forwardFrame();const O=C&&C.easing||d.easing;d.isEmptyStep?v.applyEmptyStep(O):v.setStyles(d.styles,O,p.errors,p.options),p.previousNode=d}visitKeyframes(d,p){const v=p.currentAnimateTimings,C=p.currentTimeline.duration,O=v.duration,Me=p.createSubContext().currentTimeline;Me.easing=v.easing,d.styles.forEach(we=>{Me.forwardTime((we.offset||0)*O),Me.setStyles(we.styles,we.easing,p.errors,p.options),Me.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(Me),p.transformIntoNewTimeline(C+O),p.previousNode=d}visitQuery(d,p){const v=p.currentTimeline.currentTime,C=d.options||{},O=C.delay?mr(C.delay):0;O&&(p.previousNode.type===on.If.Style||0==v&&p.currentTimeline.hasCurrentStyleProperties())&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Wi);let Q=v;const Me=p.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!C.optional,p.errors);p.currentQueryTotal=Me.length;let we=null;Me.forEach((ot,yt)=>{p.currentQueryIndex=yt;const Dt=p.createSubContext(d.options,ot);O&&Dt.delayNextStep(O),ot===p.element&&(we=Dt.currentTimeline),yr(this,d.animation,Dt),Dt.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,Dt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Q),we&&(p.currentTimeline.mergeTimelineCollectedStyles(we),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=d}visitStagger(d,p){const v=p.parentContext,C=p.currentTimeline,O=d.timings,Q=Math.abs(O.duration),Me=Q*(p.currentQueryTotal-1);let we=Q*p.currentQueryIndex;switch(O.duration<0?"reverse":O.easing){case"reverse":we=Me-we;break;case"full":we=v.currentStaggerTime}const yt=p.currentTimeline;we&&yt.delayNextStep(we);const Dt=yt.currentTime;yr(this,d.animation,p),p.previousNode=d,v.currentStaggerTime=C.currentTime-Dt+(C.startTime-v.currentTimeline.startTime)}}const Wi={};class Po{constructor(d,p,v,C,O,Q,Me,we){this._driver=d,this.element=p,this.subInstructions=v,this._enterClassName=C,this._leaveClassName=O,this.errors=Q,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=we||new Qr(this._driver,p,0),Me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,p){if(!d)return;const v=d;let C=this.options;null!=v.duration&&(C.duration=mr(v.duration)),null!=v.delay&&(C.delay=mr(v.delay));const O=v.params;if(O){let Q=C.params;Q||(Q=this.options.params={}),Object.keys(O).forEach(Me=>{(!p||!Q.hasOwnProperty(Me))&&(Q[Me]=Kr(O[Me],Q,this.errors))})}}_copyOptions(){const d={};if(this.options){const p=this.options.params;if(p){const v=d.params={};Object.keys(p).forEach(C=>{v[C]=p[C]})}}return d}createSubContext(d=null,p,v){const C=p||this.element,O=new Po(this._driver,C,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(C,v||0));return O.previousNode=this.previousNode,O.currentAnimateTimings=this.currentAnimateTimings,O.options=this._copyOptions(),O.updateOptions(d),O.currentQueryIndex=this.currentQueryIndex,O.currentQueryTotal=this.currentQueryTotal,O.parentContext=this,this.subContextCount++,O}transformIntoNewTimeline(d){return this.previousNode=Wi,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,p,v){const C={duration:p??d.duration,delay:this.currentTimeline.currentTime+(v??0)+d.delay,easing:""},O=new Pr(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,C,d.stretchStartingKeyframe);return this.timelines.push(O),C}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,p,v,C,O,Q){let Me=[];if(C&&Me.push(this.element),d.length>0){d=(d=d.replace(yo,"."+this._enterClassName)).replace(Eo,"."+this._leaveClassName);let ot=this._driver.query(this.element,d,1!=v);0!==v&&(ot=v<0?ot.slice(ot.length+v,ot.length):ot.slice(0,v)),Me.push(...ot)}return!O&&0==Me.length&&Q.push(function qo(T){return new s.wOt(3014,!1)}()),Me}}class Qr{constructor(d,p,v,C){this._driver=d,this.element=p,this.startTime=v,this._elementTimelineStylesLookup=C,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(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,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(d){const p=1===this._keyframes.size&&this._pendingStyles.size;this.duration||p?(this.forwardTime(this.currentTime+d),p&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,p){return this.applyStylesToKeyframe(),new Qr(this._driver,d,p||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(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,p){this._localTimelineStyles.set(d,p),this._globalTimelineStyles.set(d,p),this._styleSummary.set(d,{time:this.currentTime,value:p})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&this._previousKeyframe.set("easing",d);for(let[p,v]of this._globalTimelineStyles)this._backFill.set(p,v||on.kp),this._currentKeyframe.set(p,on.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,p,v,C){p&&this._previousKeyframe.set("easing",p);const O=C&&C.params||{},Q=function ps(T,d){const p=new Map;let v;return T.forEach(C=>{if("*"===C){v??=d.keys();for(let O of v)p.set(O,on.kp)}else for(let[O,Q]of C)p.set(O,Q)}),p}(d,this._globalTimelineStyles);for(let[Me,we]of Q){const ot=Kr(we,O,v);this._pendingStyles.set(Me,ot),this._localTimelineStyles.has(Me)||this._backFill.set(Me,this._globalTimelineStyles.get(Me)??on.kp),this._updateStyle(Me,ot)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((d,p)=>{this._currentKeyframe.set(p,d)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((d,p)=>{this._currentKeyframe.has(p)||this._currentKeyframe.set(p,d)}))}snapshotCurrentStyles(){for(let[d,p]of this._localTimelineStyles)this._pendingStyles.set(d,p),this._updateStyle(d,p)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let p in this._currentKeyframe)d.push(p);return d}mergeTimelineCollectedStyles(d){d._styleSummary.forEach((p,v)=>{const C=this._styleSummary.get(v);(!C||p.time>C.time)&&this._updateStyle(v,p.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,p=new Set,v=1===this._keyframes.size&&0===this.duration;let C=[];this._keyframes.forEach((Me,we)=>{const ot=new Map([...this._backFill,...Me]);ot.forEach((yt,Dt)=>{yt===on.FX?d.add(Dt):yt===on.kp&&p.add(Dt)}),v||ot.set("offset",we/this.duration),C.push(ot)});const O=[...d.values()],Q=[...p.values()];if(v){const Me=C[0],we=new Map(Me);Me.set("offset",0),we.set("offset",1),C=[Me,we]}return Nt(this.element,C,O,Q,this.duration,this.startTime,this.easing,!1)}}class Pr extends Qr{constructor(d,p,v,C,O,Q,Me=!1){super(d,p,Q.delay),this.keyframes=v,this.preStyleProps=C,this.postStyleProps=O,this._stretchStartingKeyframe=Me,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:p,duration:v,easing:C}=this.timings;if(this._stretchStartingKeyframe&&p){const O=[],Q=v+p,Me=p/Q,we=new Map(d[0]);we.set("offset",0),O.push(we);const ot=new Map(d[0]);ot.set("offset",Ds(Me)),O.push(ot);const yt=d.length-1;for(let Dt=1;Dt<=yt;Dt++){let Bt=new Map(d[Dt]);const jt=Bt.get("offset");Bt.set("offset",Ds((p+jt*v)/Q)),O.push(Bt)}v=Q,p=0,C="",d=O}return Nt(this.element,d,this.preStyleProps,this.postStyleProps,v,p,C,!0)}}function Ds(T,d=3){const p=Math.pow(10,d-1);return Math.round(T*p)/p}function Lr(T,d,p,v,C,O,Q,Me,we,ot,yt,Dt,Bt){return{type:0,element:T,triggerName:d,isRemovalTransition:C,fromState:p,fromStyles:O,toState:v,toStyles:Q,timelines:Me,queriedElements:we,preStyleProps:ot,postStyleProps:yt,totalTime:Dt,errors:Bt}}const fs={};class ms{constructor(d,p,v){this._triggerName=d,this.ast=p,this._stateStyles=v}match(d,p,v,C){return function Os(T,d,p,v,C){return T.some(O=>O(d,p,v,C))}(this.ast.matchers,d,p,v,C)}buildStyles(d,p,v){let C=this._stateStyles.get("*");return void 0!==d&&(C=this._stateStyles.get(d?.toString())||C),C?C.buildStyles(p,v):new Map}build(d,p,v,C,O,Q,Me,we,ot,yt){const Dt=[],Bt=this.ast.options&&this.ast.options.params||fs,Xt=this.buildStyles(v,Me&&Me.params||fs,Dt),Zt=we&&we.params||fs,vn=this.buildStyles(C,Zt,Dt),Sn=new Set,si=new Map,an=new Map,_n="void"===C,ti={params:vc(Zt,Bt),delay:this.ast.options?.delay},Qn=yt?[]:Yn(d,p,this.ast.animation,O,Q,Xt,vn,ti,ot,Dt);let Ci=0;return Qn.forEach(Li=>{Ci=Math.max(Li.duration+Li.delay,Ci)}),Dt.length?Lr(p,this._triggerName,v,C,_n,Xt,vn,[],[],si,an,Ci,Dt):(Qn.forEach(Li=>{const nr=Li.element,ur=fi(si,nr,new Set);Li.preStyleProps.forEach(kr=>ur.add(kr));const ic=fi(an,nr,new Set);Li.postStyleProps.forEach(kr=>ic.add(kr)),nr!==p&&Sn.add(nr)}),Lr(p,this._triggerName,v,C,_n,Xt,vn,Qn,[...Sn.values()],si,an,Ci))}}function vc(T,d){const p={...d};return Object.entries(T).forEach(([v,C])=>{null!=C&&(p[v]=C)}),p}class Yo{constructor(d,p,v){this.styles=d,this.defaultParams=p,this.normalizer=v}buildStyles(d,p){const v=new Map,C=vc(d,this.defaultParams);return this.styles.styles.forEach(O=>{"string"!=typeof O&&O.forEach((Q,Me)=>{Q&&(Q=Kr(Q,C,p));const we=this.normalizer.normalizePropertyName(Me,p);Q=this.normalizer.normalizeStyleValue(Me,we,Q,p),v.set(Me,Q)})}),v}}class to{constructor(d,p,v){this.name=d,this.ast=p,this._normalizer=v,this.transitionFactories=[],this.states=new Map,p.states.forEach(C=>{this.states.set(C.name,new Yo(C.style,C.options&&C.options.params||{},v))}),Is(this.states,"true","1"),Is(this.states,"false","0"),p.transitions.forEach(C=>{this.transitionFactories.push(new ms(d,C,this.states))}),this.fallbackTransition=function _a(T,d,p){return new ms(T,{type:on.If.Transition,animation:{type:on.If.Sequence,steps:[],options:null},matchers:[(Q,Me)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,p,v,C){return this.transitionFactories.find(Q=>Q.match(d,p,v,C))||null}matchStyles(d,p,v){return this.fallbackTransition.buildStyles(d,p,v)}}function Is(T,d,p){T.has(d)?T.has(p)||T.set(p,T.get(d)):T.has(p)&&T.set(d,T.get(p))}const is=new gn;class Bu{constructor(d,p,v){this.bodyNode=d,this._driver=p,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(d,p){const v=[],O=Go(this._driver,p,v,[]);if(v.length)throw function fr(T){return new s.wOt(3503,!1)}();this._animations.set(d,O)}_buildPlayer(d,p,v){const C=d.element,O=ct(this._normalizer,d.keyframes,p,v);return this._driver.animate(C,O,d.duration,d.delay,d.easing,[],!0)}create(d,p,v={}){const C=[],O=this._animations.get(d);let Q;const Me=new Map;if(O?(Q=Yn(this._driver,p,O,uc,mo,new Map,new Map,v,is,C),Q.forEach(yt=>{const Dt=fi(Me,yt.element,new Map);yt.postStyleProps.forEach(Bt=>Dt.set(Bt,null))})):(C.push(function Bo(){return new s.wOt(3300,!1)}()),Q=[]),C.length)throw function $s(T){return new s.wOt(3504,!1)}();Me.forEach((yt,Dt)=>{yt.forEach((Bt,jt)=>{yt.set(jt,this._driver.computeStyle(Dt,jt,on.kp))})});const ot=We(Q.map(yt=>{const Dt=Me.get(yt.element);return this._buildPlayer(yt,new Map,Dt)}));return this._playersById.set(d,ot),ot.onDestroy(()=>this.destroy(d)),this.players.push(ot),ot}destroy(d){const p=this._getPlayer(d);p.destroy(),this._playersById.delete(d);const v=this.players.indexOf(p);v>=0&&this.players.splice(v,1)}_getPlayer(d){const p=this._playersById.get(d);if(!p)throw function xr(T){return new s.wOt(3301,!1)}();return p}listen(d,p,v,C){const O=Ln(p,"","","");return sn(this._getPlayer(d),v,O,C),()=>{}}command(d,p,v,C){if("register"==v)return void this.register(d,C[0]);if("create"==v)return void this.create(d,p,C[0]||{});const O=this._getPlayer(d);switch(v){case"play":O.play();break;case"pause":O.pause();break;case"reset":O.reset();break;case"restart":O.restart();break;case"finish":O.finish();break;case"init":O.init();break;case"setPosition":O.setPosition(parseFloat(C[0]));break;case"destroy":this.destroy(d)}}}const Nc="ng-animate-queued",Dr="ng-animate-disabled",_c=[],Jr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},go={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ar="__ng_removed";class kc{get params(){return this.options.params}constructor(d,p=""){this.namespaceId=p;const v=d&&d.hasOwnProperty("value");if(this.value=function Lc(T){return T??null}(v?d.value:d),v){const{value:O,...Q}=d;this.options=Q}else this.options={};this.options.params||(this.options.params={})}absorbOptions(d){const p=d.params;if(p){const v=this.options.params;Object.keys(p).forEach(C=>{null==v[C]&&(v[C]=p[C])})}}}const la="void",ua=new kc(la);class Vc{constructor(d,p,v){this.id=d,this.hostElement=p,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,gs(p,this._hostClassName)}listen(d,p,v,C){if(!this._triggers.has(p))throw function Uo(T,d){return new s.wOt(3302,!1)}();if(null==v||0==v.length)throw function es(T){return new s.wOt(3303,!1)}();if(!function ml(T){return"start"==T||"done"==T}(v))throw function zo(T,d){return new s.wOt(3400,!1)}();const O=fi(this._elementListeners,d,[]),Q={name:p,phase:v,callback:C};O.push(Q);const Me=fi(this._engine.statesByElement,d,new Map);return Me.has(p)||(gs(d,oa),gs(d,oa+"-"+p),Me.set(p,ua)),()=>{this._engine.afterFlush(()=>{const we=O.indexOf(Q);we>=0&&O.splice(we,1),this._triggers.has(p)||Me.delete(p)})}}register(d,p){return!this._triggers.has(d)&&(this._triggers.set(d,p),!0)}_getTrigger(d){const p=this._triggers.get(d);if(!p)throw function Es(T){return new s.wOt(3401,!1)}();return p}trigger(d,p,v,C=!0){const O=this._getTrigger(p),Q=new xs(this.id,p,d);let Me=this._engine.statesByElement.get(d);Me||(gs(d,oa),gs(d,oa+"-"+p),this._engine.statesByElement.set(d,Me=new Map));let we=Me.get(p);const ot=new kc(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&we&&ot.absorbOptions(we.options),Me.set(p,ot),we||(we=ua),ot.value!==la&&we.value===ot.value){if(!function ql(T,d){const p=Object.keys(T),v=Object.keys(d);if(p.length!=v.length)return!1;for(let C=0;C{xi(d,vn),Wr(d,Sn)})}return}const Bt=fi(this._engine.playersByElement,d,[]);Bt.forEach(Zt=>{Zt.namespaceId==this.id&&Zt.triggerName==p&&Zt.queued&&Zt.destroy()});let jt=O.matchTransition(we.value,ot.value,d,ot.params),Xt=!1;if(!jt){if(!C)return;jt=O.fallbackTransition,Xt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:p,transition:jt,fromState:we,toState:ot,player:Q,isFallbackTransition:Xt}),Xt||(gs(d,Nc),Q.onStart(()=>{Ca(d,Nc)})),Q.onDone(()=>{let Zt=this.players.indexOf(Q);Zt>=0&&this.players.splice(Zt,1);const vn=this._engine.playersByElement.get(d);if(vn){let Sn=vn.indexOf(Q);Sn>=0&&vn.splice(Sn,1)}}),this.players.push(Q),Bt.push(Q),Q}deregister(d){this._triggers.delete(d),this._engine.statesByElement.forEach(p=>p.delete(d)),this._elementListeners.forEach((p,v)=>{this._elementListeners.set(v,p.filter(C=>C.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const p=this._engine.playersByElement.get(d);p&&(p.forEach(v=>v.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,p){const v=this._engine.driver.query(d,Yr,!0);v.forEach(C=>{if(C[ar])return;const O=this._engine.fetchNamespacesByElement(C);O.size?O.forEach(Q=>Q.triggerLeaveAnimation(C,p,!1,!0)):this.clearElementCache(C)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(C=>this.clearElementCache(C)))}triggerLeaveAnimation(d,p,v,C){const O=this._engine.statesByElement.get(d),Q=new Map;if(O){const Me=[];if(O.forEach((we,ot)=>{if(Q.set(ot,we.value),this._triggers.has(ot)){const yt=this.trigger(d,ot,la,C);yt&&Me.push(yt)}}),Me.length)return this._engine.markElementAsRemoved(this.id,d,!0,p,Q),v&&We(Me).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const p=this._elementListeners.get(d),v=this._engine.statesByElement.get(d);if(p&&v){const C=new Set;p.forEach(O=>{const Q=O.name;if(C.has(Q))return;C.add(Q);const we=this._triggers.get(Q).fallbackTransition,ot=v.get(Q)||ua,yt=new kc(la),Dt=new xs(this.id,Q,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:Q,transition:we,fromState:ot,toState:yt,player:Dt,isFallbackTransition:!0})})}}removeNode(d,p){const v=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,p),this.triggerLeaveAnimation(d,p,!0))return;let C=!1;if(v.totalAnimations){const O=v.players.length?v.playersByQueriedElement.get(d):[];if(O&&O.length)C=!0;else{let Q=d;for(;Q=Q.parentNode;)if(v.statesByElement.get(Q)){C=!0;break}}}if(this.prepareLeaveAnimationListeners(d),C)v.markElementAsRemoved(this.id,d,!1,p);else{const O=d[ar];(!O||O===Jr)&&(v.afterFlush(()=>this.clearElementCache(d)),v.destroyInnerAnimations(d),v._onRemovalComplete(d,p))}}insertNode(d,p){gs(d,this._hostClassName)}drainQueuedTransitions(d){const p=[];return this._queue.forEach(v=>{const C=v.player;if(C.destroyed)return;const O=v.element,Q=this._elementListeners.get(O);Q&&Q.forEach(Me=>{if(Me.name==v.triggerName){const we=Ln(O,v.triggerName,v.fromState.value,v.toState.value);we._data=d,sn(v.player,Me.phase,we,Me.callback)}}),C.markedForDestroy?this._engine.afterFlush(()=>{C.destroy()}):p.push(v)}),this._queue=[],p.sort((v,C)=>{const O=v.transition.ast.depCount,Q=C.transition.ast.depCount;return 0==O||0==Q?O-Q:this._engine.driver.containsElement(v.element,C.element)?1:-1})}destroy(d){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}}class ws{_onRemovalComplete(d,p){this.onRemovalComplete(d,p)}constructor(d,p,v){this.bodyNode=d,this.driver=p,this._normalizer=v,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=(C,O)=>{}}get queuedPlayers(){const d=[];return this._namespaceList.forEach(p=>{p.players.forEach(v=>{v.queued&&d.push(v)})}),d}createNamespace(d,p){const v=new Vc(d,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(v,p):(this.newHostElements.set(p,v),this.collectEnterElement(p)),this._namespaceLookup[d]=v}_balanceNamespaceList(d,p){const v=this._namespaceList,C=this.namespacesByHostElement;if(v.length-1>=0){let Q=!1,Me=this.driver.getParentElement(p);for(;Me;){const we=C.get(Me);if(we){const ot=v.indexOf(we);v.splice(ot+1,0,d),Q=!0;break}Me=this.driver.getParentElement(Me)}Q||v.unshift(d)}else v.push(d);return C.set(p,d),d}register(d,p){let v=this._namespaceLookup[d];return v||(v=this.createNamespace(d,p)),v}registerTrigger(d,p,v){let C=this._namespaceLookup[d];C&&C.register(p,v)&&this.totalAnimations++}destroy(d,p){d&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(d);this.namespacesByHostElement.delete(v.hostElement);const C=this._namespaceList.indexOf(v);C>=0&&this._namespaceList.splice(C,1),v.destroy(p),delete this._namespaceLookup[d]}))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const p=new Set,v=this.statesByElement.get(d);if(v)for(let C of v.values())if(C.namespaceId){const O=this._fetchNamespace(C.namespaceId);O&&p.add(O)}return p}trigger(d,p,v,C){if(Gs(p)){const O=this._fetchNamespace(d);if(O)return O.trigger(p,v,C),!0}return!1}insertNode(d,p,v,C){if(!Gs(p))return;const O=p[ar];if(O&&O.setForRemoval){O.setForRemoval=!1,O.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(p);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(d){const Q=this._fetchNamespace(d);Q&&Q.insertNode(p,v)}C&&this.collectEnterElement(p)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,p){p?this.disabledNodes.has(d)||(this.disabledNodes.add(d),gs(d,Dr)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),Ca(d,Dr))}removeNode(d,p,v){if(Gs(p)){const C=d?this._fetchNamespace(d):null;C?C.removeNode(p,v):this.markElementAsRemoved(d,p,!1,v);const O=this.namespacesByHostElement.get(p);O&&O.id!==d&&O.removeNode(p,v)}else this._onRemovalComplete(p,v)}markElementAsRemoved(d,p,v,C,O){this.collectedLeaveElements.push(p),p[ar]={namespaceId:d,setForRemoval:C,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:O}}listen(d,p,v,C,O){return Gs(p)?this._fetchNamespace(d).listen(p,v,C,O):()=>{}}_buildInstruction(d,p,v,C,O){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,v,C,d.fromState.options,d.toState.options,p,O)}destroyInnerAnimations(d){let p=this.driver.query(d,Yr,!0);p.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(d,Aa,!0),p.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(d){const p=this.playersByElement.get(d);p&&p.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(d){const p=this.playersByQueriedElement.get(d);p&&p.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return We(this.players).onDone(()=>d());d()})}processLeaveNode(d){const p=d[ar];if(p&&p.setForRemoval){if(d[ar]=Jr,p.namespaceId){this.destroyInnerAnimations(d);const v=this._fetchNamespace(p.namespaceId);v&&v.clearElementCache(d)}this._onRemovalComplete(d,p.setForRemoval)}d.classList?.contains(Dr)&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(d=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,C)=>this._balanceNamespaceList(v,C)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],p.length?We(p).onDone(()=>{v.forEach(C=>C())}):v.forEach(C=>C())}}reportError(d){throw function us(T){return new s.wOt(3402,!1)}()}_flushAnimations(d,p){const v=new gn,C=[],O=new Map,Q=[],Me=new Map,we=new Map,ot=new Map,yt=new Set;this.disabledNodes.forEach(Di=>{yt.add(Di);const gi=this.driver.query(Di,".ng-animate-queued",!0);for(let Hi=0;Hi{const Hi=uc+Zt++;Xt.set(gi,Hi),Di.forEach(To=>gs(To,Hi))});const vn=[],Sn=new Set,si=new Set;for(let Di=0;DiSn.add(To)):si.add(gi))}const an=new Map,_n=Bc(Bt,Array.from(Sn));_n.forEach((Di,gi)=>{const Hi=mo+Zt++;an.set(gi,Hi),Di.forEach(To=>gs(To,Hi))}),d.push(()=>{jt.forEach((Di,gi)=>{const Hi=Xt.get(gi);Di.forEach(To=>Ca(To,Hi))}),_n.forEach((Di,gi)=>{const Hi=an.get(gi);Di.forEach(To=>Ca(To,Hi))}),vn.forEach(Di=>{this.processLeaveNode(Di)})});const ti=[],Qn=[];for(let Di=this._namespaceList.length-1;Di>=0;Di--)this._namespaceList[Di].drainQueuedTransitions(p).forEach(Hi=>{const To=Hi.player,Tr=Hi.element;if(ti.push(To),this.collectedEnterElements.length){const Zr=Tr[ar];if(Zr&&Zr.setForMove){if(Zr.previousTriggersValues&&Zr.previousTriggersValues.has(Hi.triggerName)){const rc=Zr.previousTriggersValues.get(Hi.triggerName),na=this.statesByElement.get(Hi.element);if(na&&na.has(Hi.triggerName)){const Pu=na.get(Hi.triggerName);Pu.value=rc,na.set(Hi.triggerName,Pu)}}return void To.destroy()}}const oc=!Dt||!this.driver.containsElement(Dt,Tr),ta=an.get(Tr),dr=Xt.get(Tr),Ho=this._buildInstruction(Hi,v,dr,ta,oc);if(Ho.errors&&Ho.errors.length)return void Qn.push(Ho);if(oc)return To.onStart(()=>xi(Tr,Ho.fromStyles)),To.onDestroy(()=>Wr(Tr,Ho.toStyles)),void C.push(To);if(Hi.isFallbackTransition)return To.onStart(()=>xi(Tr,Ho.fromStyles)),To.onDestroy(()=>Wr(Tr,Ho.toStyles)),void C.push(To);const Sd=[];Ho.timelines.forEach(Zr=>{Zr.stretchStartingKeyframe=!0,this.disabledNodes.has(Zr.element)||Sd.push(Zr)}),Ho.timelines=Sd,v.append(Tr,Ho.timelines),Q.push({instruction:Ho,player:To,element:Tr}),Ho.queriedElements.forEach(Zr=>fi(Me,Zr,[]).push(To)),Ho.preStyleProps.forEach((Zr,rc)=>{if(Zr.size){let na=we.get(rc);na||we.set(rc,na=new Set),Zr.forEach((Pu,hh)=>na.add(hh))}}),Ho.postStyleProps.forEach((Zr,rc)=>{let na=ot.get(rc);na||ot.set(rc,na=new Set),Zr.forEach((Pu,hh)=>na.add(hh))})});if(Qn.length){const Di=[];Qn.forEach(gi=>{Di.push(function Fn(T,d){return new s.wOt(3505,!1)}())}),ti.forEach(gi=>gi.destroy()),this.reportError(Di)}const Ci=new Map,Li=new Map;Q.forEach(Di=>{const gi=Di.element;v.has(gi)&&(Li.set(gi,gi),this._beforeAnimationBuild(Di.player.namespaceId,Di.instruction,Ci))}),C.forEach(Di=>{const gi=Di.element;this._getPreviousPlayers(gi,!1,Di.namespaceId,Di.triggerName,null).forEach(To=>{fi(Ci,gi,[]).push(To),To.destroy()})});const nr=vn.filter(Di=>$c(Di,we,ot)),ur=new Map;gl(ur,this.driver,si,ot,on.kp).forEach(Di=>{$c(Di,we,ot)&&nr.push(Di)});const kr=new Map;jt.forEach((Di,gi)=>{gl(kr,this.driver,new Set(Di),we,on.FX)}),nr.forEach(Di=>{const gi=ur.get(Di),Hi=kr.get(Di);ur.set(Di,new Map([...gi?.entries()??[],...Hi?.entries()??[]]))});const Oa=[],Md=[],uh={};Q.forEach(Di=>{const{element:gi,player:Hi,instruction:To}=Di;if(v.has(gi)){if(yt.has(gi))return Hi.onDestroy(()=>Wr(gi,To.toStyles)),Hi.disabled=!0,Hi.overrideTotalTime(To.totalTime),void C.push(Hi);let Tr=uh;if(Li.size>1){let ta=gi;const dr=[];for(;ta=ta.parentNode;){const Ho=Li.get(ta);if(Ho){Tr=Ho;break}dr.push(ta)}dr.forEach(Ho=>Li.set(Ho,Tr))}const oc=this._buildAnimation(Hi.namespaceId,To,Ci,O,kr,ur);if(Hi.setRealPlayer(oc),Tr===uh)Oa.push(Hi);else{const ta=this.playersByElement.get(Tr);ta&&ta.length&&(Hi.parentPlayer=We(ta)),C.push(Hi)}}else xi(gi,To.fromStyles),Hi.onDestroy(()=>Wr(gi,To.toStyles)),Md.push(Hi),yt.has(gi)&&C.push(Hi)}),Md.forEach(Di=>{const gi=O.get(Di.element);if(gi&&gi.length){const Hi=We(gi);Di.setRealPlayer(Hi)}}),C.forEach(Di=>{Di.parentPlayer?Di.syncPlayerEvents(Di.parentPlayer):Di.destroy()});for(let Di=0;Di!oc.destroyed);Tr.length?Hu(this,gi,Tr):this.processLeaveNode(gi)}return vn.length=0,Oa.forEach(Di=>{this.players.push(Di),Di.onDone(()=>{Di.destroy();const gi=this.players.indexOf(Di);this.players.splice(gi,1)}),Di.play()}),Oa}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,p,v,C,O){let Q=[];if(p){const Me=this.playersByQueriedElement.get(d);Me&&(Q=Me)}else{const Me=this.playersByElement.get(d);if(Me){const we=!O||O==la;Me.forEach(ot=>{ot.queued||!we&&ot.triggerName!=C||Q.push(ot)})}}return(v||C)&&(Q=Q.filter(Me=>!(v&&v!=Me.namespaceId||C&&C!=Me.triggerName))),Q}_beforeAnimationBuild(d,p,v){const O=p.element,Q=p.isRemovalTransition?void 0:d,Me=p.isRemovalTransition?void 0:p.triggerName;for(const we of p.timelines){const ot=we.element,yt=ot!==O,Dt=fi(v,ot,[]);this._getPreviousPlayers(ot,yt,Q,Me,p.toState).forEach(jt=>{const Xt=jt.getRealPlayer();Xt.beforeDestroy&&Xt.beforeDestroy(),jt.destroy(),Dt.push(jt)})}xi(O,p.fromStyles)}_buildAnimation(d,p,v,C,O,Q){const Me=p.triggerName,we=p.element,ot=[],yt=new Set,Dt=new Set,Bt=p.timelines.map(Xt=>{const Zt=Xt.element;yt.add(Zt);const vn=Zt[ar];if(vn&&vn.removedBeforeQueried)return new on.sf(Xt.duration,Xt.delay);const Sn=Zt!==we,si=function U1(T){const d=[];return vs(T,d),d}((v.get(Zt)||_c).map(Ci=>Ci.getRealPlayer())).filter(Ci=>!!Ci.element&&Ci.element===Zt),an=O.get(Zt),_n=Q.get(Zt),ti=ct(this._normalizer,Xt.keyframes,an,_n),Qn=this._buildPlayer(Xt,ti,si);if(Xt.subTimeline&&C&&Dt.add(Zt),Sn){const Ci=new xs(d,Me,Zt);Ci.setRealPlayer(Qn),ot.push(Ci)}return Qn});ot.forEach(Xt=>{fi(this.playersByQueriedElement,Xt.element,[]).push(Xt),Xt.onDone(()=>function Zl(T,d,p){let v=T.get(d);if(v){if(v.length){const C=v.indexOf(p);v.splice(C,1)}0==v.length&&T.delete(d)}return v}(this.playersByQueriedElement,Xt.element,Xt))}),yt.forEach(Xt=>gs(Xt,Zs));const jt=We(Bt);return jt.onDestroy(()=>{yt.forEach(Xt=>Ca(Xt,Zs)),Wr(we,p.toStyles)}),Dt.forEach(Xt=>{fi(C,Xt,[]).push(jt)}),jt}_buildPlayer(d,p,v){return p.length>0?this.driver.animate(d.element,p,d.duration,d.delay,d.easing,v):new on.sf(d.duration,d.delay)}}class xs{constructor(d,p,v){this.namespaceId=d,this.triggerName=p,this.element=v,this._player=new on.sf,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(d){this._containsRealPlayer||(this._player=d,this._queuedCallbacks.forEach((p,v)=>{p.forEach(C=>sn(d,v,void 0,C))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const p=this._player;p.triggerCallback&&d.onStart(()=>p.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,p){fi(this._queuedCallbacks,d,[]).push(p)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}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(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const p=this._player;p.triggerCallback&&p.triggerCallback(d)}}function Gs(T){return T&&1===T.nodeType}function ya(T,d){const p=T.style.display;return T.style.display=d??"none",p}function gl(T,d,p,v,C){const O=[];p.forEach(we=>O.push(ya(we)));const Q=[];v.forEach((we,ot)=>{const yt=new Map;we.forEach(Dt=>{const Bt=d.computeStyle(ot,Dt,C);yt.set(Dt,Bt),(!Bt||0==Bt.length)&&(ot[ar]=go,Q.push(ot))}),T.set(ot,yt)});let Me=0;return p.forEach(we=>ya(we,O[Me++])),Q}function Bc(T,d){const p=new Map;if(T.forEach(Me=>p.set(Me,[])),0==d.length)return p;const C=new Set(d),O=new Map;function Q(Me){if(!Me)return 1;let we=O.get(Me);if(we)return we;const ot=Me.parentNode;return we=p.has(ot)?ot:C.has(ot)?1:Q(ot),O.set(Me,we),we}return d.forEach(Me=>{const we=Q(Me);1!==we&&p.get(we).push(Me)}),p}function gs(T,d){T.classList?.add(d)}function Ca(T,d){T.classList?.remove(d)}function Hu(T,d,p){We(p).onDone(()=>T.processLeaveNode(d))}function vs(T,d){for(let p=0;pC.add(O)):d.set(T,v),p.delete(T),!0}class P{constructor(d,p,v){this._driver=p,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(C,O)=>{},this._transitionEngine=new ws(d.body,p,v),this._timelineEngine=new Bu(d.body,p,v),this._transitionEngine.onRemovalComplete=(C,O)=>this.onRemovalComplete(C,O)}registerTrigger(d,p,v,C,O){const Q=d+"-"+C;let Me=this._triggerCache[Q];if(!Me){const we=[],yt=Go(this._driver,O,we,[]);if(we.length)throw function vr(T,d){return new s.wOt(3404,!1)}();Me=function ns(T,d,p){return new to(T,d,p)}(C,yt,this._normalizer),this._triggerCache[Q]=Me}this._transitionEngine.registerTrigger(p,C,Me)}register(d,p){this._transitionEngine.register(d,p)}destroy(d,p){this._transitionEngine.destroy(d,p)}onInsert(d,p,v,C){this._transitionEngine.insertNode(d,p,v,C)}onRemove(d,p,v){this._transitionEngine.removeNode(d,p,v)}disableAnimations(d,p){this._transitionEngine.markElementAsDisabled(d,p)}process(d,p,v,C){if("@"==v.charAt(0)){const[O,Q]=ki(v);this._timelineEngine.command(O,p,Q,C)}else this._transitionEngine.trigger(d,p,v,C)}listen(d,p,v,C,O){if("@"==v.charAt(0)){const[Q,Me]=ki(v);return this._timelineEngine.listen(Q,p,Me,O)}return this._transitionEngine.listen(d,p,v,C,O)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(d){this._transitionEngine.afterFlushAnimationsDone(d)}}class k{static#e=this.initialStylesByElement=new WeakMap;constructor(d,p,v){this._element=d,this._startStyles=p,this._endStyles=v,this._state=0;let C=k.initialStylesByElement.get(d);C||k.initialStylesByElement.set(d,C=new Map),this._initialStyles=C}start(){this._state<1&&(this._startStyles&&Wr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wr(this._element,this._initialStyles),this._endStyles&&(Wr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(k.initialStylesByElement.delete(this._element),this._startStyles&&(xi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xi(this._element,this._endStyles),this._endStyles=null),Wr(this._element,this._initialStyles),this._state=3)}}function le(T){let d=null;return T.forEach((p,v)=>{(function $e(T){return"display"===T||"position"===T})(v)&&(d=d||new Map,d.set(v,p))}),d}class ft{constructor(d,p,v,C){this.element=d,this.keyframes=p,this.options=v,this._specialStyles=C,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=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:new Map;const p=()=>this._onFinish();this.domPlayer.addEventListener("finish",p),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",p)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(d){const p=[];return d.forEach(v=>{p.push(Object.fromEntries(v))}),p}_triggerWebAnimation(d,p,v){return d.animate(this._convertKeyframesToObject(p),v)}onStart(d){this._originalOnStartFns.push(d),this._onStartFns.push(d)}onDone(d){this._originalOnDoneFns.push(d),this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),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(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,C)=>{"offset"!==C&&d.set(C,this._finished?v:Ts(this.element,C))}),this.currentSnapshot=d}triggerCallback(d){const p="start"===d?this._onStartFns:this._onDoneFns;p.forEach(v=>v()),p.length=0}}class kt{validateStyleProperty(d){return!0}validateAnimatableStyleProperty(d){return!0}containsElement(d,p){return pt(d,p)}getParentElement(d){return hi(d)}query(d,p,v){return Jt(d,p,v)}computeStyle(d,p,v){return Ts(d,p)}animate(d,p,v,C,O,Q=[]){const we={duration:v,delay:C,fill:0==C?"both":"forwards"};O&&(we.easing=O);const ot=new Map,yt=Q.filter(jt=>jt instanceof ft);(function pl(T,d){return 0===T||0===d})(v,C)&&yt.forEach(jt=>{jt.currentSnapshot.forEach((Xt,Zt)=>ot.set(Zt,Xt))});let Dt=function dc(T){return T.length?T[0]instanceof Map?T:T.map(d=>new Map(Object.entries(d))):[]}(p).map(jt=>new Map(jt));Dt=function Lu(T,d,p){if(p.size&&d.length){let v=d[0],C=[];if(p.forEach((O,Q)=>{v.has(Q)||C.push(Q),v.set(Q,O)}),C.length)for(let O=1;OQ.set(Me,Ts(T,Me)))}}return d}(d,Dt,ot);const Bt=function ae(T,d){let p=null,v=null;return Array.isArray(d)&&d.length?(p=le(d[0]),d.length>1&&(v=le(d[d.length-1]))):d instanceof Map&&(p=le(d)),p||v?new k(T,p,v):null}(d,Dt);return new ft(d,Dt,we,Bt)}}const Fi="@.disabled";class Ai{constructor(d,p,v,C){this.namespaceId=d,this.delegate=p,this.engine=v,this._onDestroy=C,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(d){this.delegate.destroyNode?.(d)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(d,p){return this.delegate.createElement(d,p)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,p){this.delegate.appendChild(d,p),this.engine.onInsert(this.namespaceId,p,d,!1)}insertBefore(d,p,v,C=!0){this.delegate.insertBefore(d,p,v),this.engine.onInsert(this.namespaceId,p,d,C)}removeChild(d,p,v){this.engine.onRemove(this.namespaceId,p,this.delegate)}selectRootElement(d,p){return this.delegate.selectRootElement(d,p)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,p,v,C){this.delegate.setAttribute(d,p,v,C)}removeAttribute(d,p,v){this.delegate.removeAttribute(d,p,v)}addClass(d,p){this.delegate.addClass(d,p)}removeClass(d,p){this.delegate.removeClass(d,p)}setStyle(d,p,v,C){this.delegate.setStyle(d,p,v,C)}removeStyle(d,p,v){this.delegate.removeStyle(d,p,v)}setProperty(d,p,v){"@"==p.charAt(0)&&p==Fi?this.disableAnimations(d,!!v):this.delegate.setProperty(d,p,v)}setValue(d,p){this.delegate.setValue(d,p)}listen(d,p,v){return this.delegate.listen(d,p,v)}disableAnimations(d,p){this.engine.disableAnimations(d,p)}}class Fo extends Ai{constructor(d,p,v,C,O){super(p,v,C,O),this.factory=d,this.namespaceId=p}setProperty(d,p,v){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Fi?this.disableAnimations(d,v=void 0===v||!!v):this.engine.process(this.namespaceId,d,p.slice(1),v):this.delegate.setProperty(d,p,v)}listen(d,p,v){if("@"==p.charAt(0)){const C=function os(T){switch(T){case"body":return document.body;case"document":return document;case"window":return window;default:return T}}(d);let O=p.slice(1),Q="";return"@"!=O.charAt(0)&&([O,Q]=function Cr(T){const d=T.indexOf(".");return[T.substring(0,d),T.slice(d+1)]}(O)),this.engine.listen(this.namespaceId,C,O,Q,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,v,Me)})}return this.delegate.listen(d,p,v)}}class Bi{constructor(d,p,v){this.delegate=d,this.engine=p,this._zone=v,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,p.onRemovalComplete=(C,O)=>{const Q=O?.parentNode(C);Q&&O.removeChild(Q,C)}}createRenderer(d,p){const C=this.delegate.createRenderer(d,p);if(!d||!p?.data?.animation){const ot=this._rendererCache;let yt=ot.get(C);return yt||(yt=new Ai("",C,this.engine,()=>ot.delete(C)),ot.set(C,yt)),yt}const O=p.id,Q=p.id+"-"+this._currentId;this._currentId++,this.engine.register(Q,d);const Me=ot=>{Array.isArray(ot)?ot.forEach(Me):this.engine.registerTrigger(O,Q,d,ot.name,ot)};return p.data.animation.forEach(Me),new Fo(this,Q,C,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(d,p,v){if(d>=0&&dp(v));const C=this._animationCallbacksBuffer;0==C.length&&queueMicrotask(()=>{this._zone.run(()=>{C.forEach(O=>{const[Q,Me]=O;Q(Me)}),this._animationCallbacksBuffer=[]})}),C.push([p,v])}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()}}let Mo=(()=>{class T extends P{constructor(p,v,C){super(p,v,C)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(v){return new(v||T)(s.KVO(Ve.qQ),s.KVO(xo),s.KVO(vi))};static#t=this.\u0275prov=s.jDH({token:T,factory:T.\u0275fac})}return T})();const tr=[{provide:vi,useFactory:function er(){return new sa}},{provide:P,useClass:Mo},{provide:s._9s,useFactory:function qs(T,d,p){return new Bi(T,d,p)},deps:[t.B7,P,s.SKi]}],vl=[{provide:xo,useFactory:()=>new kt},{provide:s.bc$,useValue:"BrowserAnimations"},...tr],_l=[{provide:xo,useClass:Qi},{provide:s.bc$,useValue:"NoopAnimations"},...tr];let yl=(()=>{class T{static withConfig(p){return{ngModule:T,providers:p.disableAnimations?_l:vl}}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=s.$C({type:T});static#n=this.\u0275inj=s.G2t({providers:vl,imports:[t.Bb]})}return T})();a(8167);const Ja=[{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:"featureFullcolor",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:''}],mu=function Rs(T){const d=[];return T.forEach(p=>{const v={name:d1(p.name),theme:h1(p.name),icon:p.data};d.push(v)}),d}([{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:"featureOutline",data:''},{name:"featureTwotone",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 d1(T){return"civic-"+function Hd(T){return T.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(T.replace(/Outline|Fill|TwoTone/i,""))}function h1(T){return T.includes("Twotone")?"twotone":T.includes("Outline")?"outline":T.includes("Fill")?"fill":"outline"}var p1=a(776),Ec=a(1377),Za=a(1188);const Vl=[{path:"",loadChildren:()=>a.e(4178).then(a.bind(a,4178)).then(T=>T.LayoutModule)}],Ll={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let gu=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=s.$C({type:T});static#n=this.\u0275inj=s.G2t({imports:[Za.iI.forRoot(Vl,Ll),Za.iI]})}return T})();var Xs=a(5312),$i=a(5103),Bl=a(4222),$l=a(2096),f1=a(3801),ad=a(3617),m1=a(513),cd=a(6389),ld=a(5930),g1=a(1774);const qa=T=>({error:T});function ud(T,d){if(1&T&&s.EFF(0),2&T){const p=s.XpG().ngIf;s.Lme(" ",p.name," ",p.message," ")}}function dd(T,d){1&T&&s.eu8(0)}function hd(T,d){if(1&T&&s.DNE(0,dd,1,0,"ng-container",8),2&T){const p=s.XpG().ngIf,v=s.sdS(7);s.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",s.eq3(2,qa,p))}}function pd(T,d){if(1&T){const p=s.RV6();s.j41(0,"button",10),s.bIt("click",function(){s.eBV(p);const C=s.XpG().error;s.XpG();const O=s.sdS(9),Q=s.sdS(11),Me=s.XpG();return s.Njj(Me.showModal("Backtrace for '"+C.message+"'",C.backtrace,Q,O))}),s.EFF(1," View Backtrace "),s.k0s()}}function fd(T,d){if(1&T&&(s.EFF(0),s.DNE(1,pd,2,0,"button",9)),2&T){const p=d.error;s.SpI(" ",p.message," "),s.R7$(),s.Y8G("ngIf",p.backtrace.length>0)}}function Dn(T,d){if(1&T&&(s.j41(0,"pre",11),s.EFF(1),s.k0s()),2&T){const p=d.$implicit;s.R7$(),s.JRh(p.backtrace)}}function io(T,d){if(1&T){const p=s.RV6();s.j41(0,"button",12),s.bIt("click",function(){s.eBV(p);const C=s.XpG(2);return s.Njj(C.copyToClipboard())}),s.EFF(1," Copy to Clipboard "),s.k0s(),s.j41(2,"button",13),s.bIt("click",function(){const C=s.eBV(p).modalRef,O=s.XpG(2);return s.Njj(O.hideModal(C))}),s.EFF(3," OK "),s.k0s()}}function v1(T,d){if(1&T){const p=s.RV6();s.j41(0,"div",6)(1,"nz-alert",7),s.bIt("nzOnClose",function(){s.eBV(p);const C=s.XpG();return s.Njj(C.onClose())}),s.k0s(),s.DNE(2,ud,1,2,"ng-template",null,0,s.C5r)(4,hd,1,4,"ng-template",null,1,s.C5r)(6,fd,2,2,"ng-template",null,2,s.C5r)(8,Dn,2,1,"ng-template",null,3,s.C5r)(10,io,4,0,"ng-template",null,4,s.C5r),s.k0s()}if(2&T){const p=s.sdS(3),v=s.sdS(5);s.R7$(),s.Y8G("nzMessage",p)("nzDescription",v)}}let _1=(()=>{class T{constructor(p,v,C){this.modal=v,this.clipboard=C,this.modalVisible=!1,this.errors=p}showModal(p,v,C,O){this.modalContent=v.join("\n"),this.modal.create({nzTitle:p,nzFooter:C,nzContent:O,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzData:{backtrace:this.modalContent}})}hideModal(p){p.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}static#e=this.\u0275fac=function(v){return new(v||T)(s.rXU(Bl.N),s.rXU($l.N_),s.rXU(f1.B0))};static#t=this.\u0275cmp=s.VBU({type:T,selectors:[["cvc-network-error-alert"]],decls:2,vars:3,consts:[["alertMessage",""],["alertDescription",""],["errorDisplay",""],["modalContent",""],["modalFooter",""],["class","alert-container",4,"ngIf"],[1,"alert-container"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage","nzDescription"],[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(v,C){1&v&&(s.DNE(0,v1,12,2,"div",5),s.nI1(1,"ngrxPush")),2&v&&s.Y8G("ngIf",s.bMT(1,1,C.errors.networkError$))},dependencies:[Ve.bT,Ve.T3,ad.Y,m1.aO,cd.c,ld.p,g1.L9],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})}return T})(),wo=(()=>{class T{constructor(p,v){this.iconService=p,this.router=v,this.addIcons(Ja),Xs.c.production&&this.router.events.subscribe(C=>{C instanceof Za.wF&>ag("config","UA-60119642-1",{page_path:C.urlAfterRedirects})})}addIcons(p){p.forEach(v=>{const O="civic:"+v.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(O,v.data)})}static#e=this.\u0275fac=function(v){return new(v||T)(s.rXU($i.Rt),s.rXU(Za.Ix))};static#t=this.\u0275cmp=s.VBU({type:T,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(v,C){1&v&&(s.j41(0,"div",0),s.nrm(1,"cvc-network-error-alert"),s.k0s(),s.j41(2,"div",1),s.nrm(3,"router-outlet"),s.k0s())},dependencies:[Za.n3,_1],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}"]})}return T})();var tl=a(8008),oi=a(4626),$o=a(1404),ec=a(2081),Tc=a(9860),nl=a(6108),vu=a(2151),Hl=a(7994),ea=a(1115),y1=a(9055),_u=a(8782),g=a(9471),Ar=function(){function T(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,ec.LV)(nl.ct,{max:vu.v["cache.fragmentQueryDocuments"]||1e3,cache:y1.l})}return T.prototype.batch=function(d){var C,p=this;return this.performTransaction(function(){return C=d.update(p)},"string"==typeof d.optimistic?d.optimistic:!1===d.optimistic?null:void 0),C},T.prototype.recordOptimisticTransaction=function(d,p){this.performTransaction(d,p)},T.prototype.transformDocument=function(d){return d},T.prototype.transformForLink=function(d){return d},T.prototype.identify=function(d){},T.prototype.gc=function(){return[]},T.prototype.modify=function(d){return!1},T.prototype.readQuery=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,oi.Cl)((0,oi.Cl)({},d),{rootId:d.id||"ROOT_QUERY",optimistic:p}))},T.prototype.watchFragment=function(d){var Dt,p=this,v=d.fragment,C=d.fragmentName,O=d.from,Q=d.optimistic,Me=void 0===Q||Q,we=(0,oi.Tt)(d,["fragment","fragmentName","from","optimistic"]),ot=this.getFragmentDoc(v,C),yt=(0,oi.Cl)((0,oi.Cl)({},we),{returnPartialData:!0,id:"string"==typeof O?O:this.identify(O),query:ot,optimistic:Me});return new Hl.c(function(Bt){return p.watch((0,oi.Cl)((0,oi.Cl)({},yt),{immediate:!0,callback:function(jt){if(!Dt||!(0,g.a)(ot,{data:Dt?.result},{data:jt.result})){var Xt={data:jt.result,complete:!!jt.complete};jt.missing&&(Xt.missing=(0,ea.IM)(jt.missing.map(function(Zt){return Zt.missing}))),Dt=jt,Bt.next(Xt)}}}))})},T.prototype.readFragment=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,oi.Cl)((0,oi.Cl)({},d),{query:this.getFragmentDoc(d.fragment,d.fragmentName),rootId:d.id,optimistic:p}))},T.prototype.writeQuery=function(d){var p=d.id,v=d.data,C=(0,oi.Tt)(d,["id","data"]);return this.write(Object.assign(C,{dataId:p||"ROOT_QUERY",result:v}))},T.prototype.writeFragment=function(d){var p=d.id,v=d.data,C=d.fragment,O=d.fragmentName,Q=(0,oi.Tt)(d,["id","data","fragment","fragmentName"]);return this.write(Object.assign(Q,{query:this.getFragmentDoc(C,O),dataId:p,result:v}))},T.prototype.updateQuery=function(d,p){return this.batch({update:function(v){var C=v.readQuery(d),O=p(C);return null==O?C:(v.writeQuery((0,oi.Cl)((0,oi.Cl)({},d),{data:O})),O)}})},T.prototype.updateFragment=function(d,p){return this.batch({update:function(v){var C=v.readFragment(d),O=p(C);return null==O?C:(v.writeFragment((0,oi.Cl)((0,oi.Cl)({},d),{data:O})),O)}})},T}();!1!==globalThis.__DEV__&&(Ar.prototype.getMemoryInternals=_u.tQ);var Ae=function(T){function d(p,v,C,O){var Q,Me=T.call(this,p)||this;if(Me.message=p,Me.path=v,Me.query=C,Me.variables=O,Array.isArray(Me.path)){Me.missing=Me.message;for(var we=Me.path.length-1;we>=0;--we)Me.missing=((Q={})[Me.path[we]]=Me.missing,Q)}else Me.missing=Me.path;return Me.__proto__=d.prototype,Me}return(0,oi.C6)(d,T),d}(Error),vt=a(8926),ha=a(1601),yu=a(2130),Yd=a(1658),ji=a(1367),Wd=a(1955),il=a(6500),C1=a(120),zc=a(4229),Mc=a(4183),Ns=a(1181);function b1(T){return!1!==globalThis.__DEV__&&function Kd(T){var d=new Set([T]);return d.forEach(function(p){(0,Ns.U)(p)&&function md(T){if(!1!==globalThis.__DEV__&&!Object.isFrozen(T))try{Object.freeze(T)}catch(d){if(d instanceof TypeError)return null;throw d}return T}(p)===p&&Object.getOwnPropertyNames(p).forEach(function(v){(0,Ns.U)(p[v])&&d.add(p[v])})}),T}(T),T}var Cu=a(4420),or=a(7715),Rr=Object.prototype.hasOwnProperty;function ol(T){return null==T}function Xd(T,d){var p=T.__typename,v=T.id,C=T._id;if("string"==typeof p&&(d&&(d.keyObject=ol(v)?ol(C)?void 0:{_id:C}:{id:v}),ol(v)&&!ol(C)&&(v=C),!ol(v)))return"".concat(p,":").concat("number"==typeof v||"string"==typeof v?v:JSON.stringify(v))}var jr={dataIdFromObject:Xd,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Ko(T){var d=T.canonizeResults;return void 0===d?jr.canonizeResults:d}var Jd=/^[_a-z][_0-9a-z]*/i;function Sc(T){var d=T.match(Jd);return d?d[0]:T}function E1(T,d,p){return!!(0,Ns.U)(d)&&((0,or.c)(d)?d.every(function(v){return E1(T,v,p)}):T.selections.every(function(v){if((0,ji.dt)(v)&&(0,Mc.MS)(v,p)){var C=(0,ji.ue)(v);return Rr.call(d,C)&&(!v.selectionSet||E1(v.selectionSet,d[C],p))}return!0}))}function sl(T){return(0,Ns.U)(T)&&!(0,ji.A_)(T)&&!(0,or.c)(T)}function jl(T,d){var p=(0,nl.JG)((0,zc.zK)(T));return{fragmentMap:p,lookupFragment:function(v){var C=p[v];return!C&&d&&(C=d.lookup(v)),C||null}}}var T,d,Qs=Object.create(null),gd=function(){return Qs},bu=Object.create(null),Dc=function(){function T(d,p){var v=this;this.policies=d,this.group=p,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(C,O){return b1((0,ji.A_)(C)?v.get(C.__ref,O):C&&C[O])},this.canRead=function(C){return(0,ji.A_)(C)?v.has(C.__ref):"object"==typeof C},this.toReference=function(C,O){if("string"==typeof C)return(0,ji.WU)(C);if((0,ji.A_)(C))return C;var Q=v.policies.identify(C)[0];if(Q){var Me=(0,ji.WU)(Q);return O&&v.merge(Q,C),Me}}}return T.prototype.toObject=function(){return(0,oi.Cl)({},this.data)},T.prototype.has=function(d){return void 0!==this.lookup(d,!0)},T.prototype.get=function(d,p){if(this.group.depend(d,p),Rr.call(this.data,d)){var v=this.data[d];if(v&&Rr.call(v,p))return v[p]}return"__typename"===p&&Rr.call(this.policies.rootTypenamesById,d)?this.policies.rootTypenamesById[d]:this instanceof tc?this.parent.get(d,p):void 0},T.prototype.lookup=function(d,p){return p&&this.group.depend(d,"__exists"),Rr.call(this.data,d)?this.data[d]:this instanceof tc?this.parent.lookup(d,p):this.policies.rootTypenamesById[d]?Object.create(null):void 0},T.prototype.merge=function(d,p){var C,v=this;(0,ji.A_)(d)&&(d=d.__ref),(0,ji.A_)(p)&&(p=p.__ref);var O="string"==typeof d?this.lookup(C=d):d,Q="string"==typeof p?this.lookup(C=p):p;if(Q){(0,$o.V1)("string"==typeof C,1);var Me=new ea.ZI(Tu).merge(O,Q);if(this.data[C]=Me,Me!==O&&(delete this.refs[C],this.group.caching)){var we=Object.create(null);O||(we.__exists=1),Object.keys(Q).forEach(function(ot){if(!O||O[ot]!==Me[ot]){we[ot]=1;var yt=Sc(ot);yt!==ot&&!v.policies.hasKeyArgs(Me.__typename,yt)&&(we[yt]=1),void 0===Me[ot]&&!(v instanceof tc)&&delete Me[ot]}}),we.__typename&&!(O&&O.__typename)&&this.policies.rootTypenamesById[C]===Me.__typename&&delete we.__typename,Object.keys(we).forEach(function(ot){return v.group.dirty(C,ot)})}}},T.prototype.modify=function(d,p){var v=this,C=this.lookup(d);if(C){var O=Object.create(null),Q=!1,Me=!0,we={DELETE:Qs,INVALIDATE:bu,isReference:ji.A_,toReference:this.toReference,canRead:this.canRead,readField:function(ot,yt){return v.policies.readField("string"==typeof ot?{fieldName:ot,from:yt||(0,ji.WU)(d)}:ot,{store:v})}};if(Object.keys(C).forEach(function(ot){var yt=Sc(ot),Dt=C[ot];if(void 0!==Dt){var Bt="function"==typeof p?p:p[ot]||p[yt];if(Bt){var jt=Bt===gd?Qs:Bt(b1(Dt),(0,oi.Cl)((0,oi.Cl)({},we),{fieldName:yt,storeFieldName:ot,storage:v.getStorage(d,ot)}));if(jt===bu)v.group.dirty(d,ot);else if(jt===Qs&&(jt=void 0),jt!==Dt&&(O[ot]=jt,Q=!0,Dt=jt,!1!==globalThis.__DEV__)){var Xt=function(ti){if(void 0===v.lookup(ti.__ref))return!1!==globalThis.__DEV__&&$o.V1.warn(2,ti),!0};if((0,ji.A_)(jt))Xt(jt);else if(Array.isArray(jt))for(var Zt=!1,vn=void 0,Sn=0,si=jt;Sn0){var p=--this.rootIds[d];return p||delete this.rootIds[d],p}return 0},T.prototype.getRootIdSet=function(d){return void 0===d&&(d=new Set),Object.keys(this.rootIds).forEach(d.add,d),this instanceof tc?this.parent.getRootIdSet(d):Object.keys(this.policies.rootTypenamesById).forEach(d.add,d),d},T.prototype.gc=function(){var d=this,p=this.getRootIdSet(),v=this.toObject();p.forEach(function(Q){Rr.call(v,Q)&&(Object.keys(d.findChildRefIds(Q)).forEach(p.add,p),delete v[Q])});var C=Object.keys(v);if(C.length){for(var O=this;O instanceof tc;)O=O.parent;C.forEach(function(Q){return O.delete(Q)})}return C},T.prototype.findChildRefIds=function(d){if(!Rr.call(this.refs,d)){var p=this.refs[d]=Object.create(null),v=this.data[d];if(!v)return p;var C=new Set([v]);C.forEach(function(O){(0,ji.A_)(O)&&(p[O.__ref]=!0),(0,Ns.U)(O)&&Object.keys(O).forEach(function(Q){var Me=O[Q];(0,Ns.U)(Me)&&C.add(Me)})})}return this.refs[d]},T.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},T}(),Eu=function(){function T(d,p){void 0===p&&(p=null),this.caching=d,this.parent=p,this.d=null,this.resetCaching()}return T.prototype.resetCaching=function(){this.d=this.caching?(0,ec.yN)():null,this.keyMaker=new Cu.b(il.et)},T.prototype.depend=function(d,p){if(this.d){this.d(Ul(d,p));var v=Sc(p);v!==p&&this.d(Ul(d,v)),this.parent&&this.parent.depend(d,p)}},T.prototype.dirty=function(d,p){this.d&&this.d.dirty(Ul(d,p),"__exists"===p?"forget":"setDirty")},T}();function Ul(T,d){return d+"#"+T}function vd(T,d){nc(T)&&T.group.depend(d,"__exists")}d=function(p){function v(C){var Q=C.resultCaching,we=C.seed,ot=p.call(this,C.policies,new Eu(void 0===Q||Q))||this;return ot.stump=new Bh(ot),ot.storageTrie=new Cu.b(il.et),we&&ot.replace(we),ot}return(0,oi.C6)(v,p),v.prototype.addLayer=function(C,O){return this.stump.addLayer(C,O)},v.prototype.removeLayer=function(){return this},v.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},v}(T=Dc||(Dc={})),T.Root=d;var tc=function(T){function d(p,v,C,O){var Q=T.call(this,v.policies,O)||this;return Q.id=p,Q.parent=v,Q.replay=C,Q.group=O,C(Q),Q}return(0,oi.C6)(d,T),d.prototype.addLayer=function(p,v){return new d(p,this,v,this.group)},d.prototype.removeLayer=function(p){var v=this,C=this.parent.removeLayer(p);return p===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(O){var Q=v.data[O],Me=C.lookup(O);Me?Q?Q!==Me&&Object.keys(Q).forEach(function(we){(0,Tc.L)(Q[we],Me[we])||v.group.dirty(O,we)}):(v.group.dirty(O,"__exists"),Object.keys(Me).forEach(function(we){v.group.dirty(O,we)})):v.delete(O)}),C):C===this.parent?this:C.addLayer(this.id,this.replay)},d.prototype.toObject=function(){return(0,oi.Cl)((0,oi.Cl)({},this.parent.toObject()),this.data)},d.prototype.findChildRefIds=function(p){var v=this.parent.findChildRefIds(p);return Rr.call(this.data,p)?(0,oi.Cl)((0,oi.Cl)({},v),T.prototype.findChildRefIds.call(this,p)):v},d.prototype.getStorage=function(){for(var p=this.parent;p.parent;)p=p.parent;return p.getStorage.apply(p,arguments)},d}(Dc),Bh=function(T){function d(p){return T.call(this,"EntityStore.Stump",p,function(){},new Eu(p.group.caching,p.group))||this}return(0,oi.C6)(d,T),d.prototype.removeLayer=function(){return this},d.prototype.merge=function(p,v){return this.parent.merge(p,v)},d}(tc);function Tu(T,d,p){var v=T[p],C=d[p];return(0,Tc.L)(v,C)?v:C}function nc(T){return!!(T instanceof Dc&&T.group.caching)}var zu=function(){function T(){this.known=new(il.En?WeakSet:Set),this.pool=new Cu.b(il.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return T.prototype.isKnown=function(d){return(0,Ns.U)(d)&&this.known.has(d)},T.prototype.pass=function(d){if((0,Ns.U)(d)){var p=function $h(T){return(0,Ns.U)(T)?(0,or.c)(T)?T.slice(0):(0,oi.Cl)({__proto__:Object.getPrototypeOf(T)},T):T}(d);return this.passes.set(p,d),p}return d},T.prototype.admit=function(d){var p=this;if((0,Ns.U)(d)){var v=this.passes.get(d);if(v)return v;switch(Object.getPrototypeOf(d)){case Array.prototype:if(this.known.has(d))return d;var O=d.map(this.admit,this);return(Q=this.pool.lookupArray(O)).array||(this.known.add(Q.array=O),!1!==globalThis.__DEV__&&Object.freeze(O)),Q.array;case null:case Object.prototype:if(this.known.has(d))return d;var Me=Object.getPrototypeOf(d),we=[Me],ot=this.sortedKeys(d);we.push(ot.json);var Q,yt=we.length;if(ot.sorted.forEach(function(jt){we.push(p.admit(d[jt]))}),!(Q=this.pool.lookupArray(we)).object){var Dt=Q.object=Object.create(Me);this.known.add(Dt),ot.sorted.forEach(function(jt,Xt){Dt[jt]=we[yt+Xt]}),!1!==globalThis.__DEV__&&Object.freeze(Dt)}return Q.object}}return d},T.prototype.sortedKeys=function(d){var p=Object.keys(d),v=this.pool.lookupArray(p);if(!v.keys){p.sort();var C=JSON.stringify(p);(v.keys=this.keysByJSON.get(C))||this.keysByJSON.set(C,v.keys={sorted:p,json:C})}return v.keys},T}();function Gl(T){return[T.selectionSet,T.objectOrReference,T.context,T.context.canonizeResults]}var Hh=function(){function T(d){var p=this;this.knownResults=new(il.et?WeakMap:Map),this.config=(0,C1.o)(d,{addTypename:!1!==d.addTypename,canonizeResults:Ko(d)}),this.canon=d.canon||new zu,this.executeSelectionSet=(0,ec.LV)(function(v){var C,O=v.context.canonizeResults,Q=Gl(v);Q[3]=!O;var Me=(C=p.executeSelectionSet).peek.apply(C,Q);return Me?O?(0,oi.Cl)((0,oi.Cl)({},Me),{result:p.canon.admit(Me.result)}):Me:(vd(v.context.store,v.enclosingRef.__ref),p.execSelectionSetImpl(v))},{max:this.config.resultCacheMaxSize||vu.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Gl,makeCacheKey:function(v,C,O,Q){if(nc(O.store))return O.store.makeCacheKey(v,(0,ji.A_)(C)?C.__ref:C,O.varString,Q)}}),this.executeSubSelectedArray=(0,ec.LV)(function(v){return vd(v.context.store,v.enclosingRef.__ref),p.execSubSelectedArrayImpl(v)},{max:this.config.resultCacheMaxSize||vu.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(v){var C=v.field,O=v.array,Q=v.context;if(nc(Q.store))return Q.store.makeCacheKey(C,O,Q.varString)}})}return T.prototype.resetCanon=function(){this.canon=new zu},T.prototype.diffQueryAgainstStore=function(d){var p=d.store,v=d.query,C=d.rootId,O=void 0===C?"ROOT_QUERY":C,Q=d.variables,Me=d.returnPartialData,we=void 0===Me||Me,ot=d.canonizeResults,yt=void 0===ot?this.config.canonizeResults:ot,Dt=this.config.cache.policies;Q=(0,oi.Cl)((0,oi.Cl)({},(0,zc.wY)((0,zc.AT)(v))),Q);var Xt,Bt=(0,ji.WU)(O),jt=this.executeSelectionSet({selectionSet:(0,zc.Vn)(v).selectionSet,objectOrReference:Bt,enclosingRef:Bt,context:(0,oi.Cl)({store:p,query:v,policies:Dt,variables:Q,varString:(0,yu.M)(Q),canonizeResults:yt},jl(v,this.config.fragments))});if(jt.missing&&(Xt=[new Ae(jh(jt.missing),jt.missing,v,Q)],!we))throw Xt[0];return{result:jt.result,complete:!Xt,missing:Xt}},T.prototype.isFresh=function(d,p,v,C){if(nc(C.store)&&this.knownResults.get(d)===v){var O=this.executeSelectionSet.peek(v,p,C,this.canon.isKnown(d));if(O&&d===O.result)return!0}return!1},T.prototype.execSelectionSetImpl=function(d){var p=this,v=d.selectionSet,C=d.objectOrReference,O=d.enclosingRef,Q=d.context;if((0,ji.A_)(C)&&!Q.policies.rootTypenamesById[C.__ref]&&!Q.store.has(C.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(C.__ref," object")};var Bt,Me=Q.variables,we=Q.policies,yt=Q.store.getFieldValue(C,"__typename"),Dt=[],jt=new ea.ZI;function Xt(an,_n){var ti;return an.missing&&(Bt=jt.merge(Bt,((ti={})[_n]=an.missing,ti))),an.result}this.config.addTypename&&"string"==typeof yt&&!we.rootIdsByTypename[yt]&&Dt.push({__typename:yt});var Zt=new Set(v.selections);Zt.forEach(function(an){var _n,ti;if((0,Mc.MS)(an,Me))if((0,ji.dt)(an)){var Qn=we.readField({fieldName:an.name.value,field:an,variables:Q.variables,from:C},Q),Ci=(0,ji.ue)(an);void 0===Qn?ha.XY.added(an)||(Bt=jt.merge(Bt,((_n={})[Ci]="Can't find field '".concat(an.name.value,"' on ").concat((0,ji.A_)(C)?C.__ref+" object":"object "+JSON.stringify(C,null,2)),_n))):(0,or.c)(Qn)?Qn.length>0&&(Qn=Xt(p.executeSubSelectedArray({field:an,array:Qn,enclosingRef:O,context:Q}),Ci)):an.selectionSet?null!=Qn&&(Qn=Xt(p.executeSelectionSet({selectionSet:an.selectionSet,objectOrReference:Qn,enclosingRef:(0,ji.A_)(Qn)?Qn:O,context:Q}),Ci)):Q.canonizeResults&&(Qn=p.canon.pass(Qn)),void 0!==Qn&&Dt.push(((ti={})[Ci]=Qn,ti))}else{var Li=(0,nl.HQ)(an,Q.lookupFragment);if(!Li&&an.kind===Wd.b.FRAGMENT_SPREAD)throw(0,$o.vA)(9,an.name.value);Li&&we.fragmentMatches(Li,yt)&&Li.selectionSet.selections.forEach(Zt.add,Zt)}});var Sn={result:(0,ea.IM)(Dt),missing:Bt},si=Q.canonizeResults?this.canon.admit(Sn):b1(Sn);return si.result&&this.knownResults.set(si.result,v),si},T.prototype.execSubSelectedArrayImpl=function(d){var Me,p=this,v=d.field,C=d.array,O=d.enclosingRef,Q=d.context,we=new ea.ZI;function ot(yt,Dt){var Bt;return yt.missing&&(Me=we.merge(Me,((Bt={})[Dt]=yt.missing,Bt))),yt.result}return v.selectionSet&&(C=C.filter(Q.store.canRead)),C=C.map(function(yt,Dt){return null===yt?null:(0,or.c)(yt)?ot(p.executeSubSelectedArray({field:v,array:yt,enclosingRef:O,context:Q}),Dt):v.selectionSet?ot(p.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:yt,enclosingRef:(0,ji.A_)(yt)?yt:O,context:Q}),Dt):(!1!==globalThis.__DEV__&&function qd(T,d,p){if(!d.selectionSet){var v=new Set([p]);v.forEach(function(C){(0,Ns.U)(C)&&((0,$o.V1)(!(0,ji.A_)(C),10,function Qd(T,d){return(0,ji.A_)(d)?T.get(d.__ref,"__typename"):d&&d.__typename}(T,C),d.name.value),Object.values(C).forEach(v.add,v))})}}(Q.store,v,yt),yt)}),{result:Q.canonizeResults?this.canon.admit(C):C,missing:Me}},T}();function jh(T){try{JSON.stringify(T,function(d,p){if("string"==typeof p)throw p;return p})}catch(d){return d}}var e4=a(4246),_d=a(1687),pa=a(4141),T1=Object.create(null);function Oc(T){var d=JSON.stringify(T);return T1[d]||(T1[d]=Object.create(null))}function eh(T){var d=Oc(T);return d.keyFieldsFn||(d.keyFieldsFn=function(p,v){var C=function(Q,Me){return v.readField(Me,Q)},O=v.keyObject=yd(T,function(Q){var Me=Du(v.storeObject,Q,C);return void 0===Me&&p!==v.storeObject&&Rr.call(p,Q[0])&&(Me=Du(p,Q,Su)),(0,$o.V1)(void 0!==Me,4,Q.join("."),p),Me});return"".concat(v.typename,":").concat(JSON.stringify(O))})}function al(T){var d=Oc(T);return d.keyArgsFn||(d.keyArgsFn=function(p,v){var C=v.field,O=v.variables,Q=v.fieldName,Me=yd(T,function(ot){var yt=ot[0],Dt=yt.charAt(0);if("@"!==Dt)if("$"!==Dt){if(p)return Du(p,ot)}else{var Zt=yt.slice(1);if(O&&Rr.call(O,Zt)){var vn=ot.slice(0);return vn[0]=Zt,Du(O,vn)}}else if(C&&(0,or.E)(C.directives)){var Bt=yt.slice(1),jt=C.directives.find(function(Sn){return Sn.name.value===Bt}),Xt=jt&&(0,ji.MB)(jt,O);return Xt&&Du(Xt,ot.slice(1))}}),we=JSON.stringify(Me);return(p||"{}"!==we)&&(Q+=":"+we),Q})}function yd(T,d){var p=new ea.ZI;return Mu(T).reduce(function(v,C){var O,Q=d(C);if(void 0!==Q){for(var Me=C.length-1;Me>=0;--Me)(O={})[C[Me]]=Q,Q=O;v=p.merge(v,Q)}return v},Object.create(null))}function Mu(T){var d=Oc(T);if(!d.paths){var p=d.paths=[],v=[];T.forEach(function(C,O){(0,or.c)(C)?(Mu(C).forEach(function(Q){return p.push(v.concat(Q))}),v.length=0):(v.push(C),(0,or.c)(T[O+1])||(p.push(v.slice(0)),v.length=0))})}return d.paths}function Su(T,d){return T[d]}function Du(T,d,p){return p=p||Su,Cd(d.reduce(function v(C,O){return(0,or.c)(C)?C.map(function(Q){return v(Q,O)}):C&&p(C,O)},T))}function Cd(T){return(0,Ns.U)(T)?(0,or.c)(T)?T.map(Cd):yd(Object.keys(T).sort(),function(d){return Du(T,d)}):T}function z1(T){return void 0!==T.args?T.args:T.field?(0,ji.MB)(T.field,T.variables):null}var Uh=function(){},fa=function(T,d){return d.fieldName},th=function(T,d,p){return(0,p.mergeObjects)(T,d)},Ou=function(T,d){return d},bd=function(){function T(d){this.config=d,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,oi.Cl)({dataIdFromObject:Xd},d),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),d.possibleTypes&&this.addPossibleTypes(d.possibleTypes),d.typePolicies&&this.addTypePolicies(d.typePolicies)}return T.prototype.identify=function(d,p){var v,C=this,O=p&&(p.typename||(null===(v=p.storeObject)||void 0===v?void 0:v.__typename))||d.__typename;if(O===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var we,Q=p&&p.storeObject||d,Me=(0,oi.Cl)((0,oi.Cl)({},p),{typename:O,storeObject:Q,readField:p&&p.readField||function(){var Bt=Yl(arguments,Q);return C.readField(Bt,{store:C.cache.data,variables:Bt.variables})}}),ot=O&&this.getTypePolicy(O),yt=ot&&ot.keyFn||this.config.dataIdFromObject;yt;){var Dt=yt((0,oi.Cl)((0,oi.Cl)({},d),Q),Me);if(!(0,or.c)(Dt)){we=Dt;break}yt=eh(Dt)}return we=we?String(we):void 0,Me.keyObject?[we,Me.keyObject]:[we]},T.prototype.addTypePolicies=function(d){var p=this;Object.keys(d).forEach(function(v){var C=d[v],O=C.queryType,Q=C.mutationType,Me=C.subscriptionType,we=(0,oi.Tt)(C,["queryType","mutationType","subscriptionType"]);O&&p.setRootTypename("Query",v),Q&&p.setRootTypename("Mutation",v),Me&&p.setRootTypename("Subscription",v),Rr.call(p.toBeAdded,v)?p.toBeAdded[v].push(we):p.toBeAdded[v]=[we]})},T.prototype.updateTypePolicy=function(d,p){var v=this,C=this.getTypePolicy(d),O=p.keyFields,Q=p.fields;function Me(we,ot){we.merge="function"==typeof ot?ot:!0===ot?th:!1===ot?Ou:we.merge}Me(C,p.merge),C.keyFn=!1===O?Uh:(0,or.c)(O)?eh(O):"function"==typeof O?O:C.keyFn,Q&&Object.keys(Q).forEach(function(we){var ot=v.getFieldPolicy(d,we,!0),yt=Q[we];if("function"==typeof yt)ot.read=yt;else{var Dt=yt.keyArgs,Bt=yt.read,jt=yt.merge;ot.keyFn=!1===Dt?fa:(0,or.c)(Dt)?al(Dt):"function"==typeof Dt?Dt:ot.keyFn,"function"==typeof Bt&&(ot.read=Bt),Me(ot,jt)}ot.read&&ot.merge&&(ot.keyFn=ot.keyFn||fa)})},T.prototype.setRootTypename=function(d,p){void 0===p&&(p=d);var v="ROOT_"+d.toUpperCase(),C=this.rootTypenamesById[v];p!==C&&((0,$o.V1)(!C||C===d,5,d),C&&delete this.rootIdsByTypename[C],this.rootIdsByTypename[p]=v,this.rootTypenamesById[v]=p)},T.prototype.addPossibleTypes=function(d){var p=this;this.usingPossibleTypes=!0,Object.keys(d).forEach(function(v){p.getSupertypeSet(v,!0),d[v].forEach(function(C){p.getSupertypeSet(C,!0).add(v);var O=C.match(Jd);(!O||O[0]!==C)&&p.fuzzySubtypes.set(C,new RegExp(C))})})},T.prototype.getTypePolicy=function(d){var p=this;if(!Rr.call(this.typePolicies,d)){var v=this.typePolicies[d]=Object.create(null);v.fields=Object.create(null);var C=this.supertypeMap.get(d);!C&&this.fuzzySubtypes.size&&(C=this.getSupertypeSet(d,!0),this.fuzzySubtypes.forEach(function(Q,Me){if(Q.test(d)){var we=p.supertypeMap.get(Me);we&&we.forEach(function(ot){return C.add(ot)})}})),C&&C.size&&C.forEach(function(Q){var Me=p.getTypePolicy(Q),we=Me.fields,ot=(0,oi.Tt)(Me,["fields"]);Object.assign(v,ot),Object.assign(v.fields,we)})}var O=this.toBeAdded[d];return O&&O.length&&O.splice(0).forEach(function(Q){p.updateTypePolicy(d,Q)}),this.typePolicies[d]},T.prototype.getFieldPolicy=function(d,p,v){if(d){var C=this.getTypePolicy(d).fields;return C[p]||v&&(C[p]=Object.create(null))}},T.prototype.getSupertypeSet=function(d,p){var v=this.supertypeMap.get(d);return!v&&p&&this.supertypeMap.set(d,v=new Set),v},T.prototype.fragmentMatches=function(d,p,v,C){var O=this;if(!d.typeCondition)return!0;if(!p)return!1;var Q=d.typeCondition.name.value;if(p===Q)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(Q))for(var Me=this.getSupertypeSet(p,!0),we=[Me],ot=function(Xt){var Zt=O.getSupertypeSet(Xt,!1);Zt&&Zt.size&&we.indexOf(Zt)<0&&we.push(Zt)},yt=!(!v||!this.fuzzySubtypes.size),Dt=!1,Bt=0;Bt1?T[1]:d}:(Q=(0,oi.Cl)({},v),Rr.call(Q,"from")||(Q.from=d)),!1!==globalThis.__DEV__&&void 0===Q.from&&!1!==globalThis.__DEV__&&$o.V1.warn(7,(0,_d.p)(Array.from(T))),void 0===Q.variables&&(Q.variables=p),Q}function S1(T){return function(p,v){if((0,or.c)(p)||(0,or.c)(v))throw(0,$o.vA)(8);if((0,Ns.U)(p)&&(0,Ns.U)(v)){var C=T.getFieldValue(p,"__typename"),O=T.getFieldValue(v,"__typename");if(C&&O&&C!==O)return v;if((0,ji.A_)(p)&&sl(v))return T.merge(p.__ref,v),p;if(sl(p)&&(0,ji.A_)(v))return T.merge(p,v.__ref),v;if(sl(p)&&sl(v))return(0,oi.Cl)((0,oi.Cl)({},p),v)}return v}}function D1(T,d,p){var v="".concat(d).concat(p),C=T.flavors.get(v);return C||T.flavors.set(v,C=T.clientOnly===d&&T.deferred===p?T:(0,oi.Cl)((0,oi.Cl)({},T),{clientOnly:d,deferred:p})),C}var O1=function(){function T(d,p,v){this.cache=d,this.reader=p,this.fragments=v}return T.prototype.writeToStore=function(d,p){var v=this,C=p.query,O=p.result,Q=p.dataId,Me=p.variables,we=p.overwrite,ot=(0,zc.Vu)(C),yt=function Zd(){return new ea.ZI}();Me=(0,oi.Cl)((0,oi.Cl)({},(0,zc.wY)(ot)),Me);var Dt=(0,oi.Cl)((0,oi.Cl)({store:d,written:Object.create(null),merge:function(jt,Xt){return yt.merge(jt,Xt)},variables:Me,varString:(0,yu.M)(Me)},jl(C,this.fragments)),{overwrite:!!we,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),Bt=this.processSelectionSet({result:O||Object.create(null),dataId:Q,selectionSet:ot.selectionSet,mergeTree:{map:new Map},context:Dt});if(!(0,ji.A_)(Bt))throw(0,$o.vA)(11,O);return Dt.incomingById.forEach(function(jt,Xt){var Zt=jt.storeObject,vn=jt.mergeTree,Sn=jt.fieldNodeSet,si=(0,ji.WU)(Xt);if(vn&&vn.map.size){var an=v.applyMerges(vn,si,Zt,Dt);if((0,ji.A_)(an))return;Zt=an}if(!1!==globalThis.__DEV__&&!Dt.overwrite){var _n=Object.create(null);Sn.forEach(function(Ci){Ci.selectionSet&&(_n[Ci.name.value]=!0)}),Object.keys(Zt).forEach(function(Ci){(function(Ci){return!0===_n[Sc(Ci)]})(Ci)&&!function(Ci){var Li=vn&&vn.map.get(Ci);return!!(Li&&Li.info&&Li.info.merge)}(Ci)&&function Gh(T,d,p,v){var C=function(Dt){var Bt=v.getFieldValue(Dt,p);return"object"==typeof Bt&&Bt},O=C(T);if(O){var Q=C(d);if(Q&&!(0,ji.A_)(O)&&!(0,Tc.L)(O,Q)&&!Object.keys(O).every(function(Dt){return void 0!==v.getFieldValue(Q,Dt)})){var Me=v.getFieldValue(T,"__typename")||v.getFieldValue(d,"__typename"),we=Sc(p),ot="".concat(Me,".").concat(we);if(!Ic.has(ot)){Ic.add(ot);var yt=[];!(0,or.c)(O)&&!(0,or.c)(Q)&&[O,Q].forEach(function(Dt){var Bt=v.getFieldValue(Dt,"__typename");"string"==typeof Bt&&!yt.includes(Bt)&&yt.push(Bt)}),!1!==globalThis.__DEV__&&$o.V1.warn(14,we,Me,yt.length?"either ensure all objects of type "+yt.join(" and ")+" have an ID or a custom merge function, or ":"",ot,(0,oi.Cl)({},O),(0,oi.Cl)({},Q))}}}}(si,Zt,Ci,Dt.store)})}d.merge(Xt,Zt)}),d.retain(Bt.__ref),Bt},T.prototype.processSelectionSet=function(d){var p=this,v=d.dataId,C=d.result,O=d.selectionSet,Q=d.context,Me=d.mergeTree,we=this.cache.policies,ot=Object.create(null),yt=v&&we.rootTypenamesById[v]||(0,ji.D$)(C,O,Q.fragmentMap)||v&&Q.store.get(v,"__typename");"string"==typeof yt&&(ot.__typename=yt);var Dt=function(){var an=Yl(arguments,ot,Q.variables);if((0,ji.A_)(an.from)){var _n=Q.incomingById.get(an.from.__ref);if(_n){var ti=we.readField((0,oi.Cl)((0,oi.Cl)({},an),{from:_n.storeObject}),Q);if(void 0!==ti)return ti}}return we.readField(an,Q)},Bt=new Set;this.flattenFields(O,C,Q,yt).forEach(function(an,_n){var ti,Qn=(0,ji.ue)(_n),Ci=C[Qn];if(Bt.add(_n),void 0!==Ci){var Li=we.getStoreFieldName({typename:yt,fieldName:_n.name.value,field:_n,variables:an.variables}),nr=I1(Me,Li),ur=p.processFieldValue(Ci,_n,_n.selectionSet?D1(an,!1,!1):an,nr),ic=void 0;_n.selectionSet&&((0,ji.A_)(ur)||sl(ur))&&(ic=Dt("__typename",ur));var kr=we.getMergeFunction(yt,_n.name.value,ic);kr?nr.info={field:_n,typename:yt,merge:kr}:Iu(Me,Li),ot=an.merge(ot,((ti={})[Li]=ur,ti))}else!1!==globalThis.__DEV__&&!an.clientOnly&&!an.deferred&&!ha.XY.added(_n)&&!we.getReadFunction(yt,_n.name.value)&&!1!==globalThis.__DEV__&&$o.V1.error(12,(0,ji.ue)(_n),C)});try{var jt=we.identify(C,{typename:yt,selectionSet:O,fragmentMap:Q.fragmentMap,storeObject:ot,readField:Dt}),Zt=jt[1];v=v||jt[0],Zt&&(ot=Q.merge(ot,Zt))}catch(an){if(!v)throw an}if("string"==typeof v){var vn=(0,ji.WU)(v),Sn=Q.written[v]||(Q.written[v]=[]);if(Sn.indexOf(O)>=0||(Sn.push(O),this.reader&&this.reader.isFresh(C,vn,O,Q)))return vn;var si=Q.incomingById.get(v);return si?(si.storeObject=Q.merge(si.storeObject,ot),si.mergeTree=w1(si.mergeTree,Me),Bt.forEach(function(an){return si.fieldNodeSet.add(an)})):Q.incomingById.set(v,{storeObject:ot,mergeTree:x1(Me)?void 0:Me,fieldNodeSet:Bt}),vn}return ot},T.prototype.processFieldValue=function(d,p,v,C){var O=this;return p.selectionSet&&null!==d?(0,or.c)(d)?d.map(function(Q,Me){var we=O.processFieldValue(Q,p,v,I1(C,Me));return Iu(C,Me),we}):this.processSelectionSet({result:d,selectionSet:p.selectionSet,context:v,mergeTree:C}):!1!==globalThis.__DEV__?(0,e4.m)(d):d},T.prototype.flattenFields=function(d,p,v,C){void 0===C&&(C=(0,ji.D$)(p,d,v.fragmentMap));var O=new Map,Q=this.cache.policies,Me=new Cu.b(!1);return function we(ot,yt){var Dt=Me.lookup(ot,yt.clientOnly,yt.deferred);Dt.visited||(Dt.visited=!0,ot.selections.forEach(function(Bt){if((0,Mc.MS)(Bt,v.variables)){var jt=yt.clientOnly,Xt=yt.deferred;if(!(jt&&Xt)&&(0,or.E)(Bt.directives)&&Bt.directives.forEach(function(Sn){var si=Sn.name.value;if("client"===si&&(jt=!0),"defer"===si){var an=(0,ji.MB)(Sn,v.variables);(!an||!1!==an.if)&&(Xt=!0)}}),(0,ji.dt)(Bt)){var Zt=O.get(Bt);Zt&&(jt=jt&&Zt.clientOnly,Xt=Xt&&Zt.deferred),O.set(Bt,D1(v,jt,Xt))}else{var vn=(0,nl.HQ)(Bt,v.lookupFragment);if(!vn&&Bt.kind===Wd.b.FRAGMENT_SPREAD)throw(0,$o.vA)(13,Bt.name.value);vn&&Q.fragmentMatches(vn,C,p,v.variables)&&we(vn.selectionSet,D1(v,jt,Xt))}}}))}(d,v),O},T.prototype.applyMerges=function(d,p,v,C,O){var Q,Me=this;if(d.map.size&&!(0,ji.A_)(v)){var we=(0,or.c)(v)||!(0,ji.A_)(p)&&!sl(p)?void 0:p,ot=v;we&&!O&&(O=[(0,ji.A_)(we)?we.__ref:we]);var yt,Dt=function(Bt,jt){return(0,or.c)(Bt)?"number"==typeof jt?Bt[jt]:void 0:C.store.getFieldValue(Bt,String(jt))};d.map.forEach(function(Bt,jt){var Xt=Dt(we,jt),Zt=Dt(ot,jt);if(void 0!==Zt){O&&O.push(jt);var vn=Me.applyMerges(Bt,Xt,Zt,C,O);vn!==Zt&&(yt=yt||new Map).set(jt,vn),O&&(0,$o.V1)(O.pop()===jt)}}),yt&&(v=(0,or.c)(ot)?ot.slice(0):(0,oi.Cl)({},ot),yt.forEach(function(Bt,jt){v[jt]=Bt}))}return d.info?this.cache.policies.runMergeFunction(p,v,d.info,C,O&&(Q=C.store).getStorage.apply(Q,O)):v},T}(),Ed=[];function I1(T,d){var p=T.map;return p.has(d)||p.set(d,Ed.pop()||{map:new Map}),p.get(d)}function w1(T,d){if(T===d||!d||x1(d))return T;if(!T||x1(T))return d;var p=T.info&&d.info?(0,oi.Cl)((0,oi.Cl)({},T.info),d.info):T.info||d.info,v=T.map.size&&d.map.size,O={info:p,map:v?new Map:T.map.size?T.map:d.map};if(v){var Q=new Set(d.map.keys());T.map.forEach(function(Me,we){O.map.set(we,w1(Me,d.map.get(we))),Q.delete(we)}),Q.forEach(function(Me){O.map.set(Me,w1(d.map.get(Me),T.map.get(Me)))})}return O}function x1(T){return!T||!(T.info||T.map.size)}function Iu(T,d){var p=T.map,v=p.get(d);v&&x1(v)&&(Ed.push(v),p.delete(d))}var Ic=new Set,P1=function(T){function d(p){void 0===p&&(p={});var v=T.call(this)||this;return v.watches=new Set,v.addTypenameTransform=new vt.c(ha.XY),v.assumeImmutableResults=!0,v.makeVar=pa.UT,v.txCount=0,v.config=function rl(T){return(0,C1.o)(jr,T)}(p),v.addTypename=!!v.config.addTypename,v.policies=new bd({cache:v,dataIdFromObject:v.config.dataIdFromObject,possibleTypes:v.config.possibleTypes,typePolicies:v.config.typePolicies}),v.init(),v}return(0,oi.C6)(d,T),d.prototype.init=function(){var p=this.data=new Dc.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=p.stump,this.resetResultCache()},d.prototype.resetResultCache=function(p){var v=this,C=this.storeReader,O=this.config.fragments;this.storeWriter=new O1(this,this.storeReader=new Hh({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Ko(this.config),canon:p?void 0:C&&C.canon,fragments:O}),O),this.maybeBroadcastWatch=(0,ec.LV)(function(Q,Me){return v.broadcastWatch(Q,Me)},{max:this.config.resultCacheMaxSize||vu.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(Q){var Me=Q.optimistic?v.optimisticData:v.data;if(nc(Me))return Me.makeCacheKey(Q.query,Q.callback,(0,yu.M)({optimistic:Q.optimistic,id:Q.id,variables:Q.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(Q){return Q.resetCaching()})},d.prototype.restore=function(p){return this.init(),p&&this.data.replace(p),this},d.prototype.extract=function(p){return void 0===p&&(p=!1),(p?this.optimisticData:this.data).extract()},d.prototype.read=function(p){var v=p.returnPartialData,C=void 0!==v&&v;try{return this.storeReader.diffQueryAgainstStore((0,oi.Cl)((0,oi.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:C})).result||null}catch(O){if(O instanceof Ae)return null;throw O}},d.prototype.write=function(p){try{return++this.txCount,this.storeWriter.writeToStore(this.data,p)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.modify=function(p){if(Rr.call(p,"id")&&!p.id)return!1;var v=p.optimistic?this.optimisticData:this.data;try{return++this.txCount,v.modify(p.id||"ROOT_QUERY",p.fields)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.diff=function(p){return this.storeReader.diffQueryAgainstStore((0,oi.Cl)((0,oi.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,rootId:p.id||"ROOT_QUERY",config:this.config}))},d.prototype.watch=function(p){var v=this;return this.watches.size||(0,pa.MS)(this),this.watches.add(p),p.immediate&&this.maybeBroadcastWatch(p),function(){v.watches.delete(p)&&!v.watches.size&&(0,pa.WR)(v),v.maybeBroadcastWatch.forget(p)}},d.prototype.gc=function(p){var v;yu.M.reset(),Yd.y.reset(),this.addTypenameTransform.resetCache(),null===(v=this.config.fragments)||void 0===v||v.resetCaches();var C=this.optimisticData.gc();return p&&!this.txCount&&(p.resetResultCache?this.resetResultCache(p.resetResultIdentities):p.resetResultIdentities&&this.storeReader.resetCanon()),C},d.prototype.retain=function(p,v){return(v?this.optimisticData:this.data).retain(p)},d.prototype.release=function(p,v){return(v?this.optimisticData:this.data).release(p)},d.prototype.identify=function(p){if((0,ji.A_)(p))return p.__ref;try{return this.policies.identify(p)[0]}catch(v){!1!==globalThis.__DEV__&&$o.V1.warn(v)}},d.prototype.evict=function(p){if(!p.id){if(Rr.call(p,"id"))return!1;p=(0,oi.Cl)((0,oi.Cl)({},p),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(p,this.data)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.reset=function(p){var v=this;return this.init(),yu.M.reset(),p&&p.discardWatches?(this.watches.forEach(function(C){return v.maybeBroadcastWatch.forget(C)}),this.watches.clear(),(0,pa.WR)(this)):this.broadcastWatches(),Promise.resolve()},d.prototype.removeOptimistic=function(p){var v=this.optimisticData.removeLayer(p);v!==this.optimisticData&&(this.optimisticData=v,this.broadcastWatches())},d.prototype.batch=function(p){var ot,v=this,C=p.update,O=p.optimistic,Q=void 0===O||O,Me=p.removeOptimistic,we=p.onWatchUpdated,yt=function(Bt){var Xt=v.data,Zt=v.optimisticData;++v.txCount,Bt&&(v.data=v.optimisticData=Bt);try{return ot=C(v)}finally{--v.txCount,v.data=Xt,v.optimisticData=Zt}},Dt=new Set;return we&&!this.txCount&&this.broadcastWatches((0,oi.Cl)((0,oi.Cl)({},p),{onWatchUpdated:function(Bt){return Dt.add(Bt),!1}})),"string"==typeof Q?this.optimisticData=this.optimisticData.addLayer(Q,yt):!1===Q?yt(this.data):yt(),"string"==typeof Me&&(this.optimisticData=this.optimisticData.removeLayer(Me)),we&&Dt.size?(this.broadcastWatches((0,oi.Cl)((0,oi.Cl)({},p),{onWatchUpdated:function(Bt,jt){var Xt=we.call(this,Bt,jt);return!1!==Xt&&Dt.delete(Bt),Xt}})),Dt.size&&Dt.forEach(function(Bt){return v.maybeBroadcastWatch.dirty(Bt)})):this.broadcastWatches(p),ot},d.prototype.performTransaction=function(p,v){return this.batch({update:p,optimistic:v||null!==v})},d.prototype.transformDocument=function(p){return this.addTypenameToDocument(this.addFragmentsToDocument(p))},d.prototype.broadcastWatches=function(p){var v=this;this.txCount||this.watches.forEach(function(C){return v.maybeBroadcastWatch(C,p)})},d.prototype.addFragmentsToDocument=function(p){var v=this.config.fragments;return v?v.transform(p):p},d.prototype.addTypenameToDocument=function(p){return this.addTypename?this.addTypenameTransform.transformDocument(p):p},d.prototype.broadcastWatch=function(p,v){var C=p.lastDiff,O=this.diff(p);v&&(p.optimistic&&"string"==typeof v.optimistic&&(O.fromOptimisticTransaction=!0),v.onWatchUpdated&&!1===v.onWatchUpdated.call(this,p,O,C))||(!C||!(0,Tc.L)(C.result,O.result))&&p.callback(p.lastDiff=O,C)},d}(Ar);!1!==globalThis.__DEV__&&(P1.prototype.getMemoryInternals=_u.cM);const cl={possibleTypes:{ActivityInterface:["AcceptRevisionsActivity","CommentActivity","CreateComplexMolecularProfileActivity","CreateFeatureActivity","CreateVariantActivity","DeleteCommentActivity","DeprecateComplexMolecularProfileActivity","DeprecateFeatureActivity","DeprecateVariantActivity","FlagEntityActivity","ModerateAssertionActivity","ModerateEvidenceItemActivity","RejectRevisionsActivity","ResolveFlagActivity","SubmitAssertionActivity","SubmitEvidenceItemActivity","SuggestRevisionSetActivity","SuggestSourceActivity","UpdateSourceSuggestionStatusActivity"],CommentBodySegment:["CommentTagSegment","CommentTagSegmentFlagged","CommentTagSegmentFlaggedAndDeprecated","CommentTagSegmentFlaggedAndWithStatus","CommentTextSegment","User"],Commentable:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Flag","Gene","GeneVariant","MolecularProfile","Revision","Source","SourcePopover","Variant","VariantGroup"],EventOriginObject:["Assertion","Comment","EvidenceItem","Factor","FactorVariant","Feature","Flag","Gene","GeneVariant","MolecularProfile","Revision","SourceSuggestion","Variant"],EventSubject:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Flag","Gene","GeneVariant","MolecularProfile","Revision","RevisionSet","Source","SourcePopover","SourceSuggestion","Variant","VariantGroup"],FeatureInstance:["Factor","Gene"],Flaggable:["Assertion","BrowseFeature","EvidenceItem","Factor","FactorVariant","Feature","Gene","GeneVariant","MolecularProfile","Variant","VariantGroup"],ModeratedField:["ObjectField","ScalarField"],ModeratedFieldDiff:["ObjectFieldDiff","ScalarFieldDiff"],MolecularProfileComponent:["Factor","FactorVariant","Feature","Gene","GeneVariant","Variant"],MolecularProfileSegment:["Feature","MolecularProfileTextSegment","Variant"],VariantInterface:["FactorVariant","GeneVariant","Variant"],WithRevisions:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Gene","GeneVariant","MolecularProfile","Variant","VariantGroup"]}};var wc=a(1661),Er=a(3246),Yh=function(){function T(d){var p=d.batchDebounce,v=d.batchInterval,C=d.batchMax,O=d.batchHandler,Q=d.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=p,this.batchInterval=v,this.batchMax=C||0,this.batchHandler=O,this.batchKey=Q||function(){return""}}return T.prototype.enqueueRequest=function(d){var p=this,v=(0,oi.Cl)((0,oi.Cl)({},d),{next:[],error:[],complete:[],subscribers:new Set}),C=this.batchKey(d.operation);return v.observable||(v.observable=new Hl.c(function(O){var Q=p.batchesByKey.get(C);Q||p.batchesByKey.set(C,Q=new Set);var Me=0===Q.size,we=0===v.subscribers.size;return v.subscribers.add(O),we&&Q.add(v),O.next&&v.next.push(O.next.bind(O)),O.error&&v.error.push(O.error.bind(O)),O.complete&&v.complete.push(O.complete.bind(O)),(Me||p.batchDebounce)&&p.scheduleQueueConsumption(C),Q.size===p.batchMax&&p.consumeQueue(C),function(){var ot;v.subscribers.delete(O)&&v.subscribers.size<1&&Q.delete(v)&&Q.size<1&&(p.consumeQueue(C),null===(ot=Q.subscription)||void 0===ot||ot.unsubscribe())}})),v.observable},T.prototype.consumeQueue=function(d){void 0===d&&(d="");var p=this.batchesByKey.get(d);if(this.batchesByKey.delete(d),p&&p.size){var v=[],C=[],O=[],Q=[],Me=[],we=[];p.forEach(function(Dt){v.push(Dt.operation),C.push(Dt.forward),O.push(Dt.observable),Q.push(Dt.next),Me.push(Dt.error),we.push(Dt.complete)});var ot=this.batchHandler(v,C)||Hl.c.of(),yt=function(Dt){Me.forEach(function(Bt){Bt&&Bt.forEach(function(jt){return jt(Dt)})})};return p.subscription=ot.subscribe({next:function(Dt){if(Array.isArray(Dt)||(Dt=[Dt]),Q.length!==Dt.length){var Bt=new Error("server returned results with length ".concat(Dt.length,", expected length of ").concat(Q.length));return Bt.result=Dt,yt(Bt)}Dt.forEach(function(jt,Xt){Q[Xt]&&Q[Xt].forEach(function(Zt){return Zt(jt)})})},error:yt,complete:function(){we.forEach(function(Dt){Dt&&Dt.forEach(function(Bt){return Bt()})})}}),O}},T.prototype.scheduleQueueConsumption=function(d){var p=this;clearTimeout(this.scheduledBatchTimerByKey.get(d)),this.scheduledBatchTimerByKey.set(d,setTimeout(function(){p.consumeQueue(d),p.scheduledBatchTimerByKey.delete(d)},this.batchInterval))},T}();!function(T){function d(p){var v=T.call(this)||this,C=p||{},Q=C.batchInterval,we=C.batchMax,yt=C.batchHandler,Bt=C.batchKey;return v.batcher=new Yh({batchDebounce:C.batchDebounce,batchInterval:void 0===Q?10:Q,batchMax:void 0===we?0:we,batchHandler:void 0===yt?function(){return null}:yt,batchKey:void 0===Bt?function(){return""}:Bt}),p.batchHandler.length<=1&&(v.request=function(Xt){return v.batcher.enqueueRequest({operation:Xt})}),v}(0,oi.C6)(d,T),d.prototype.request=function(p,v){return this.batcher.enqueueRequest({operation:p,forward:v})}}(tl.C);const A1={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Da(T,d,p){return function wu(...T){return T.find(d=>typeof d<"u")}(T[p],d[p],A1[p])}class rh extends tl.C{httpClient;options;requester;print=Er.y;constructor(d,p){super(),this.httpClient=d,this.options=p,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=v=>new Hl.c(C=>{const O=v.getContext();let Q=Da(O,this.options,"method");const Me=Da(O,this.options,"includeQuery"),we=Da(O,this.options,"includeExtensions"),ot=Da(O,this.options,"uri"),yt=Da(O,this.options,"withCredentials"),Dt=Da(O,this.options,"useMultipart"),Bt=!0===this.options.useGETForQueries,jt=v.query.definitions.some(Sn=>"OperationDefinition"===Sn.kind&&"query"===Sn.operation);Bt&&jt&&(Q="GET");const Xt={method:Q,url:"function"==typeof ot?ot(v):ot,body:{operationName:v.operationName,variables:v.variables},options:{withCredentials:yt,useMultipart:Dt,headers:this.options.headers}};we&&(Xt.body.extensions=v.extensions),Me&&(Xt.body.query=this.print(v.query));const Zt=function xu(T){let d=T.headers&&T.headers instanceof tn.Lr?T.headers:new tn.Lr(T.headers);if(T.clientAwareness){const{name:p,version:v}=T.clientAwareness;p&&!d.has("apollographql-client-name")&&(d=d.set("apollographql-client-name",p)),v&&!d.has("apollographql-client-version")&&(d=d.set("apollographql-client-version",v))}return d}(O);Xt.options.headers=((T,d)=>T&&d?d.keys().reduce((v,C)=>v.set(C,d.getAll(C)),T):d||T)(Xt.options.headers,Zt);const vn=((T,d,p)=>{const v=-1!==["POST","PUT","PATCH"].indexOf(T.method.toUpperCase()),O=T.body.length;let Me,Q=T.options&&T.options.useMultipart;if(Q){if(O)return new m.c(ot=>ot.error(new Error("File upload is not available when combined with Batching")));if(!v)return new m.c(ot=>ot.error(new Error("File upload is not available when GET is used")));if(!p)return new m.c(ot=>ot.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));Me=p(T.body),Q=!!Me.files.size}let we={};if(O){if(!v)return new m.c(ot=>ot.error(new Error("Batching is not available for GET requests")));we={body:T.body}}else we=v?{body:Q?Me.clone:T.body}:{params:Object.keys(T.body).reduce((Dt,Bt)=>{const jt=T.body[Bt];return Dt[Bt]=-1!==["variables","extensions"].indexOf(Bt.toLowerCase())?JSON.stringify(jt):jt,Dt},{})};if(Q&&v){const ot=new FormData;ot.append("operations",JSON.stringify(we.body));const yt={},Dt=Me.files;let Bt=0;Dt.forEach(jt=>{yt[++Bt]=jt}),ot.append("map",JSON.stringify(yt)),Bt=0,Dt.forEach((jt,Xt)=>{ot.append(++Bt+"",Xt,Xt.name)}),we.body=ot}return d.request(T.method,T.url,{observe:"response",responseType:"json",reportProgress:!1,...we,...T.options})})(Xt,this.httpClient,this.options.extractFiles).subscribe({next:Sn=>{v.setContext({response:Sn}),C.next(Sn.body)},error:Sn=>C.error(Sn),complete:()=>C.complete()});return()=>{vn.closed||vn.unsubscribe()}})}request(d){return this.requester(d)}}let sh=(()=>{class T{httpClient;constructor(p){this.httpClient=p}create(p){return new rh(this.httpClient,p)}static \u0275fac=function(v){return new(v||T)(s.KVO(tn.Qq))};static \u0275prov=s.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();function Xo(T){return void 0===T&&(T=!1),{keyArgs:T,read:function(d,p){var v=p.canRead,C=p.readField;if(!d)return d;var O=[],Q="",Me="";d.edges.forEach(function(Dt){v(C("node",Dt))&&(O.push(Dt),Dt.cursor&&(Q=Q||Dt.cursor||"",Me=Dt.cursor||Me))}),O.length>1&&Q===Me&&(Q="");var we=d.pageInfo||{},ot=we.startCursor,yt=we.endCursor;return(0,oi.Cl)((0,oi.Cl)({},Td(d)),{edges:O,pageInfo:(0,oi.Cl)((0,oi.Cl)({},d.pageInfo),{startCursor:ot||Q,endCursor:yt||Me})})},merge:function(d,p,v){var C=v.args,O=v.isReference,Q=v.readField;if(d||(d={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!p)return d;var Me=p.edges?p.edges.map(function(Li){return O(Li=(0,oi.Cl)({},Li))&&(Li.cursor=Q("cursor",Li)),Li}):[];if(p.pageInfo){var we=p.pageInfo,ot=we.startCursor,yt=we.endCursor,Dt=Me[0],Bt=Me[Me.length-1];Dt&&ot&&(Dt.cursor=ot),Bt&&yt&&(Bt.cursor=yt);var jt=Dt&&Dt.cursor;jt&&!ot&&(p=(0,ea.D9)(p,{pageInfo:{startCursor:jt}}));var Xt=Bt&&Bt.cursor;Xt&&!yt&&(p=(0,ea.D9)(p,{pageInfo:{endCursor:Xt}}))}var Zt=d.edges,vn=[];if(C&&C.after)(Sn=Zt.findIndex(function(Li){return Li.cursor===C.after}))>=0&&(Zt=Zt.slice(0,Sn+1));else if(C&&C.before){var Sn;vn=(Sn=Zt.findIndex(function(nr){return nr.cursor===C.before}))<0?Zt:Zt.slice(Sn),Zt=[]}else p.edges&&(Zt=[]);var si=(0,oi.fX)((0,oi.fX)((0,oi.fX)([],Zt,!0),Me,!0),vn,!0),an=(0,oi.Cl)((0,oi.Cl)({},p.pageInfo),d.pageInfo);if(p.pageInfo){var _n=p.pageInfo,ti=_n.hasPreviousPage,Qn=_n.hasNextPage,Ci=(ot=_n.startCursor,yt=_n.endCursor,(0,oi.Tt)(_n,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(an,Ci),Zt.length||(void 0!==ti&&(an.hasPreviousPage=ti),void 0!==ot&&(an.startCursor=ot)),vn.length||(void 0!==Qn&&(an.hasNextPage=Qn),void 0!==yt&&(an.endCursor=yt))}return(0,oi.Cl)((0,oi.Cl)((0,oi.Cl)({},Td(d)),Td(p)),{edges:si,pageInfo:an})}}}var Td=function(T){return(0,oi.Tt)(T,ah)},ah=["edges","pageInfo"];const i4={Gene:{fields:{comments:Xo(),revisions:Xo(),events:Xo(),variants:Xo()}},Query:{fields:{browseFeatures:Xo(["name","featureType","therapyName","featureAlias","diseaseName"]),browseVariants:Xo(["variantName","entrezSymbol","diseaseName","therapayName","variantTypeId","variantGroupId","variantCategory"]),browseMolecularProfiles:Xo(["variantName","entrezSymbol","diseaseName","therapyName","molecularProfileScore","molecularProfileAlias","variantId"]),browseVariantGroups:Xo(["name","geneNames","variantNames","variantId"]),browseSources:Xo(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id","openAccess"]),sourceSuggestions:Xo(["sourceType","citationId","sourceId","molecularProfileName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:Xo(["name","doid","geneNames","id"]),events:Xo(["subject","organizationId","originatingUserId","eventType"]),variants:Xo(["featureId","name"]),molecularProfiles:Xo(["featureId","name","evidenceStatusFilter"]),comments:Xo(["originatingUserId","subject"]),evidenceItems:Xo(["diseaseName","therapayName","id","description","evidenceLevel","evidenceDirection","significance","evidenceType","evidenceRating","variantOrigin","variantId","molecularProfileId","assertionId","organizationId","userId","phenotypeId","diseaseId","therapayId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:Xo(["diseaseName","therapayName","id","name","summary","assertionDirection","significance","assertionType","variantId","molecularProfileId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","therapayId","status"]),organizations:Xo(["name","id"]),flags:Xo(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:Xo(["hpoId","name","id"]),variantTypes:Xo(["soid","name","id"]),therapies:Xo(["ncitId","name","id"]),clinicalTrials:Xo(["nctId","name","id"]),notifications:Xo(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:Xo(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:Xo(["userName","orgName","userRole"])}},User:{fields:{mostRecentOrg:{read:(T,{readField:d})=>{const p=d("mostRecentOrganizationId"),v=d("organizations");if(p&&v)return v.find(C=>C.__ref===`Organization:${p}`)}}}}},ch=i4;function Nr(T){let d=T.create({uri:"/api/graphql",withCredentials:!0});return{link:new tl.C((v,C)=>(v.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),C(v))).concat(d),cache:new P1({possibleTypes:cl.possibleTypes,typePolicies:ch}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!0}}}}let N1=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=s.$C({type:T});static#n=this.\u0275inj=s.G2t({providers:[{provide:wc.EM,useValue:{useInitialLoading:!0}},{provide:wc.$Y,useFactory:Nr,deps:[sh]}],imports:[wc._9]})}return T})();var Jh=a(7391);let o4=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=s.$C({type:T});static#n=this.\u0275inj=s.G2t({imports:[Ve.MD,ad.$,m1.Zw,$l.U6,Jh.kT]})}return T})(),lh=(()=>{class T{handleError(p){Xs.c.production?/Loading chunk [\d]+ failed/.test(p.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload():console.error(p)}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275prov=s.jDH({token:T,factory:T.\u0275fac})}return T})();var r4=a(2229);function zd(T){return()=>T.get("/api/status")}(0,Ve.EO)(Yt);let Js=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=s.$C({type:T,bootstrap:[wo]});static#n=this.\u0275inj=s.G2t({providers:[{provide:s.zcH,useClass:lh},{provide:Ec._N,useValue:Ec.Bh},{provide:s.hnV,useFactory:zd,deps:[tn.Qq],multi:!0},(0,tn.$R)((0,tn.Sx)(),(0,tn.YH)(),(0,tn.c2)({cookieName:"XSRF-TOKEN"}))],imports:[gu,yl,t.Bb,N1,p1.s,$i.Y3.forRoot(mu),r4.m,o4]})}return T})();if(Xs.c.production)(0,s.SmG)();else{const T=function bs(){return new ls(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}();T.unplug(T.find(_i)),T.show(),T.log()}t.sG().bootstrapModule(Js).catch(T=>console.error(T))},9869:(Rt,De,a)=>{a.d(De,{J1:()=>xe});var m=function(){return m=Object.assign||function(H){for(var me,qe=1,rt=arguments.length;qe=H)break;me=rt.index+rt[0].length,qe+=1}return{line:qe,column:H+1-me}}function Be(W,H){const me=W.locationOffset.column-1,qe="".padStart(me)+W.body,rt=H.line-1,rn=H.line+(W.locationOffset.line-1),Jn=H.column+(1===H.line?me:0),jn=`${W.name}:${rn}:${Jn}\n`,Gn=qe.split(/\r\n|[\n\r]/g),zi=Gn[rt];if(zi.length>120){const Oi=Math.floor(Jn/80),po=Jn%80,Zi=[];for(let Vo=0;Vo["|",Vo]),["|","^".padStart(po)],["|",Zi[Oi+1]]])}return jn+Pt([[rn-1+" |",Gn[rt-1]],[`${rn} |`,zi],["|","^".padStart(Jn)],[`${rn+1} |`,Gn[rt+1]]])}function Pt(W){const H=W.filter(([qe,rt])=>void 0!==rt),me=Math.max(...H.map(([qe])=>qe.length));return H.map(([qe,rt])=>qe.padStart(me)+(rt?" "+rt:"")).join("\n")}class wt extends Error{constructor(H,...me){var qe,rt,Ft;const{nodes:rn,source:Cn,positions:Jn,path:jn,originalError:Gn,extensions:zi}=function gt(W){const H=W[0];return null==H||"kind"in H||"length"in H?{nodes:H,source:W[1],positions:W[2],path:W[3],originalError:W[4],extensions:W[5]}:H}(me);super(H),this.name="GraphQLError",this.path=jn??void 0,this.originalError=Gn??void 0,this.nodes=Le(Array.isArray(rn)?rn:rn?[rn]:void 0);const Oi=Le(null===(qe=this.nodes)||void 0===qe?void 0:qe.map(Zi=>Zi.loc).filter(Zi=>null!=Zi));this.source=Cn??(null==Oi||null===(rt=Oi[0])||void 0===rt?void 0:rt.source),this.positions=Jn??Oi?.map(Zi=>Zi.start),this.locations=Jn&&Cn?Jn.map(Zi=>U(Cn,Zi)):Oi?.map(Zi=>U(Zi.source,Zi.start));const po=function E(W){return"object"==typeof W&&null!==W}(Gn?.extensions)?Gn?.extensions:void 0;this.extensions=null!==(Ft=zi??po)&&void 0!==Ft?Ft: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!=Gn&&Gn.stack?Object.defineProperty(this,"stack",{value:Gn.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,wt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let H=this.message;if(this.nodes)for(const me of this.nodes)me.loc&&(H+="\n\n"+Be((W=me.loc).source,U(W.source,W.start)));else if(this.source&&this.locations)for(const me of this.locations)H+="\n\n"+Be(this.source,me);var W;return H}toJSON(){const H={message:this.message};return null!=this.locations&&(H.locations=this.locations),null!=this.path&&(H.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(H.extensions=this.extensions),H}}function Le(W){return void 0===W||0===W.length?void 0:W}function st(W,H,me){return new wt(`Syntax Error: ${me}`,{source:W,positions:[H]})}var Ct=a(1222),It=function(W){return W.QUERY="QUERY",W.MUTATION="MUTATION",W.SUBSCRIPTION="SUBSCRIPTION",W.FIELD="FIELD",W.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",W.FRAGMENT_SPREAD="FRAGMENT_SPREAD",W.INLINE_FRAGMENT="INLINE_FRAGMENT",W.VARIABLE_DEFINITION="VARIABLE_DEFINITION",W.SCHEMA="SCHEMA",W.SCALAR="SCALAR",W.OBJECT="OBJECT",W.FIELD_DEFINITION="FIELD_DEFINITION",W.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",W.INTERFACE="INTERFACE",W.UNION="UNION",W.ENUM="ENUM",W.ENUM_VALUE="ENUM_VALUE",W.INPUT_OBJECT="INPUT_OBJECT",W.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",W}(It||{}),Tt=a(1955),en=a(5174),Ut=a(3725),Lt=function(W){return W.SOF="",W.EOF="",W.BANG="!",W.DOLLAR="$",W.AMP="&",W.PAREN_L="(",W.PAREN_R=")",W.SPREAD="...",W.COLON=":",W.EQUALS="=",W.AT="@",W.BRACKET_L="[",W.BRACKET_R="]",W.BRACE_L="{",W.PIPE="|",W.BRACE_R="}",W.NAME="Name",W.INT="Int",W.FLOAT="Float",W.STRING="String",W.BLOCK_STRING="BlockString",W.COMMENT="Comment",W}(Lt||{});class fn{constructor(H){const me=new Ct.ou(Lt.SOF,0,0,0,0);this.source=H,this.lastToken=me,this.token=me,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let H=this.token;if(H.kind!==Lt.EOF)do{if(H.next)H=H.next;else{const me=Ue(this,H.end);H.next=me,me.prev=H,H=me}}while(H.kind===Lt.COMMENT);return H}}function zn(W){return W>=0&&W<=55295||W>=57344&&W<=1114111}function bt(W,H){return At(W.charCodeAt(H))&&Et(W.charCodeAt(H+1))}function At(W){return W>=55296&&W<=56319}function Et(W){return W>=56320&&W<=57343}function St(W,H){const me=W.source.body.codePointAt(H);if(void 0===me)return Lt.EOF;if(me>=32&&me<=126){const qe=String.fromCodePoint(me);return'"'===qe?"'\"'":`"${qe}"`}return"U+"+me.toString(16).toUpperCase().padStart(4,"0")}function Wt(W,H,me,qe,rt){return new Ct.ou(H,me,qe,W.line,1+me-W.lineStart,rt)}function Ue(W,H){const me=W.source.body,qe=me.length;let rt=H;for(;rt=48&&W<=57?W-48:W>=65&&W<=70?W-55:W>=97&&W<=102?W-87:-1}function cn(W,H){const me=W.source.body;switch(me.charCodeAt(H+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 st(W.source,H,`Invalid character escape sequence: "${me.slice(H,H+2)}".`)}function Tn(W,H){const me=W.source.body,qe=me.length;let rt=W.lineStart,Ft=H+3,rn=Ft,Cn="";const Jn=[];for(;Ft0||(0,kn.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,kn.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ee{constructor(H,me={}){const qe=function wn(W){return dn(W,qt)}(H)?H:new qt(H);this._lexer=new fn(qe),this._options=me,this._tokenCounter=0}parseName(){const H=this.expectToken(Lt.NAME);return this.node(H,{kind:Tt.b.NAME,value:H.value})}parseDocument(){return this.node(this._lexer.token,{kind:Tt.b.DOCUMENT,definitions:this.many(Lt.SOF,this.parseDefinition,Lt.EOF)})}parseDefinition(){if(this.peek(Lt.BRACE_L))return this.parseOperationDefinition();const H=this.peekDescription(),me=H?this._lexer.lookahead():this._lexer.token;if(me.kind===Lt.NAME){switch(me.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(H)throw st(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(me.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(me)}parseOperationDefinition(){const H=this._lexer.token;if(this.peek(Lt.BRACE_L))return this.node(H,{kind:Tt.b.OPERATION_DEFINITION,operation:Ct.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const me=this.parseOperationType();let qe;return this.peek(Lt.NAME)&&(qe=this.parseName()),this.node(H,{kind:Tt.b.OPERATION_DEFINITION,operation:me,name:qe,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const H=this.expectToken(Lt.NAME);switch(H.value){case"query":return Ct.cE.QUERY;case"mutation":return Ct.cE.MUTATION;case"subscription":return Ct.cE.SUBSCRIPTION}throw this.unexpected(H)}parseVariableDefinitions(){return this.optionalMany(Lt.PAREN_L,this.parseVariableDefinition,Lt.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Tt.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Lt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Lt.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const H=this._lexer.token;return this.expectToken(Lt.DOLLAR),this.node(H,{kind:Tt.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Tt.b.SELECTION_SET,selections:this.many(Lt.BRACE_L,this.parseSelection,Lt.BRACE_R)})}parseSelection(){return this.peek(Lt.SPREAD)?this.parseFragment():this.parseField()}parseField(){const H=this._lexer.token,me=this.parseName();let qe,rt;return this.expectOptionalToken(Lt.COLON)?(qe=me,rt=this.parseName()):rt=me,this.node(H,{kind:Tt.b.FIELD,alias:qe,name:rt,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Lt.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(H){return this.optionalMany(Lt.PAREN_L,H?this.parseConstArgument:this.parseArgument,Lt.PAREN_R)}parseArgument(H=!1){const me=this._lexer.token,qe=this.parseName();return this.expectToken(Lt.COLON),this.node(me,{kind:Tt.b.ARGUMENT,name:qe,value:this.parseValueLiteral(H)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const H=this._lexer.token;this.expectToken(Lt.SPREAD);const me=this.expectOptionalKeyword("on");return!me&&this.peek(Lt.NAME)?this.node(H,{kind:Tt.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(H,{kind:Tt.b.INLINE_FRAGMENT,typeCondition:me?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const H=this._lexer.token;return this.expectKeyword("fragment"),this.node(H,!0===this._options.allowLegacyFragmentVariables?{kind:Tt.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:Tt.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(H){const me=this._lexer.token;switch(me.kind){case Lt.BRACKET_L:return this.parseList(H);case Lt.BRACE_L:return this.parseObject(H);case Lt.INT:return this.advanceLexer(),this.node(me,{kind:Tt.b.INT,value:me.value});case Lt.FLOAT:return this.advanceLexer(),this.node(me,{kind:Tt.b.FLOAT,value:me.value});case Lt.STRING:case Lt.BLOCK_STRING:return this.parseStringLiteral();case Lt.NAME:switch(this.advanceLexer(),me.value){case"true":return this.node(me,{kind:Tt.b.BOOLEAN,value:!0});case"false":return this.node(me,{kind:Tt.b.BOOLEAN,value:!1});case"null":return this.node(me,{kind:Tt.b.NULL});default:return this.node(me,{kind:Tt.b.ENUM,value:me.value})}case Lt.DOLLAR:if(H){if(this.expectToken(Lt.DOLLAR),this._lexer.token.kind===Lt.NAME)throw st(this._lexer.source,me.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(me)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const H=this._lexer.token;return this.advanceLexer(),this.node(H,{kind:Tt.b.STRING,value:H.value,block:H.kind===Lt.BLOCK_STRING})}parseList(H){return this.node(this._lexer.token,{kind:Tt.b.LIST,values:this.any(Lt.BRACKET_L,()=>this.parseValueLiteral(H),Lt.BRACKET_R)})}parseObject(H){return this.node(this._lexer.token,{kind:Tt.b.OBJECT,fields:this.any(Lt.BRACE_L,()=>this.parseObjectField(H),Lt.BRACE_R)})}parseObjectField(H){const me=this._lexer.token,qe=this.parseName();return this.expectToken(Lt.COLON),this.node(me,{kind:Tt.b.OBJECT_FIELD,name:qe,value:this.parseValueLiteral(H)})}parseDirectives(H){const me=[];for(;this.peek(Lt.AT);)me.push(this.parseDirective(H));return me}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(H){const me=this._lexer.token;return this.expectToken(Lt.AT),this.node(me,{kind:Tt.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(H)})}parseTypeReference(){const H=this._lexer.token;let me;if(this.expectOptionalToken(Lt.BRACKET_L)){const qe=this.parseTypeReference();this.expectToken(Lt.BRACKET_R),me=this.node(H,{kind:Tt.b.LIST_TYPE,type:qe})}else me=this.parseNamedType();return this.expectOptionalToken(Lt.BANG)?this.node(H,{kind:Tt.b.NON_NULL_TYPE,type:me}):me}parseNamedType(){return this.node(this._lexer.token,{kind:Tt.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Lt.STRING)||this.peek(Lt.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("schema");const qe=this.parseConstDirectives(),rt=this.many(Lt.BRACE_L,this.parseOperationTypeDefinition,Lt.BRACE_R);return this.node(H,{kind:Tt.b.SCHEMA_DEFINITION,description:me,directives:qe,operationTypes:rt})}parseOperationTypeDefinition(){const H=this._lexer.token,me=this.parseOperationType();this.expectToken(Lt.COLON);const qe=this.parseNamedType();return this.node(H,{kind:Tt.b.OPERATION_TYPE_DEFINITION,operation:me,type:qe})}parseScalarTypeDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("scalar");const qe=this.parseName(),rt=this.parseConstDirectives();return this.node(H,{kind:Tt.b.SCALAR_TYPE_DEFINITION,description:me,name:qe,directives:rt})}parseObjectTypeDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("type");const qe=this.parseName(),rt=this.parseImplementsInterfaces(),Ft=this.parseConstDirectives(),rn=this.parseFieldsDefinition();return this.node(H,{kind:Tt.b.OBJECT_TYPE_DEFINITION,description:me,name:qe,interfaces:rt,directives:Ft,fields:rn})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Lt.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Lt.BRACE_L,this.parseFieldDefinition,Lt.BRACE_R)}parseFieldDefinition(){const H=this._lexer.token,me=this.parseDescription(),qe=this.parseName(),rt=this.parseArgumentDefs();this.expectToken(Lt.COLON);const Ft=this.parseTypeReference(),rn=this.parseConstDirectives();return this.node(H,{kind:Tt.b.FIELD_DEFINITION,description:me,name:qe,arguments:rt,type:Ft,directives:rn})}parseArgumentDefs(){return this.optionalMany(Lt.PAREN_L,this.parseInputValueDef,Lt.PAREN_R)}parseInputValueDef(){const H=this._lexer.token,me=this.parseDescription(),qe=this.parseName();this.expectToken(Lt.COLON);const rt=this.parseTypeReference();let Ft;this.expectOptionalToken(Lt.EQUALS)&&(Ft=this.parseConstValueLiteral());const rn=this.parseConstDirectives();return this.node(H,{kind:Tt.b.INPUT_VALUE_DEFINITION,description:me,name:qe,type:rt,defaultValue:Ft,directives:rn})}parseInterfaceTypeDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("interface");const qe=this.parseName(),rt=this.parseImplementsInterfaces(),Ft=this.parseConstDirectives(),rn=this.parseFieldsDefinition();return this.node(H,{kind:Tt.b.INTERFACE_TYPE_DEFINITION,description:me,name:qe,interfaces:rt,directives:Ft,fields:rn})}parseUnionTypeDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("union");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseUnionMemberTypes();return this.node(H,{kind:Tt.b.UNION_TYPE_DEFINITION,description:me,name:qe,directives:rt,types:Ft})}parseUnionMemberTypes(){return this.expectOptionalToken(Lt.EQUALS)?this.delimitedMany(Lt.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("enum");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseEnumValuesDefinition();return this.node(H,{kind:Tt.b.ENUM_TYPE_DEFINITION,description:me,name:qe,directives:rt,values:Ft})}parseEnumValuesDefinition(){return this.optionalMany(Lt.BRACE_L,this.parseEnumValueDefinition,Lt.BRACE_R)}parseEnumValueDefinition(){const H=this._lexer.token,me=this.parseDescription(),qe=this.parseEnumValueName(),rt=this.parseConstDirectives();return this.node(H,{kind:Tt.b.ENUM_VALUE_DEFINITION,description:me,name:qe,directives:rt})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw st(this._lexer.source,this._lexer.token.start,`${Xe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("input");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseInputFieldsDefinition();return this.node(H,{kind:Tt.b.INPUT_OBJECT_TYPE_DEFINITION,description:me,name:qe,directives:rt,fields:Ft})}parseInputFieldsDefinition(){return this.optionalMany(Lt.BRACE_L,this.parseInputValueDef,Lt.BRACE_R)}parseTypeSystemExtension(){const H=this._lexer.lookahead();if(H.kind===Lt.NAME)switch(H.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(H)}parseSchemaExtension(){const H=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const me=this.parseConstDirectives(),qe=this.optionalMany(Lt.BRACE_L,this.parseOperationTypeDefinition,Lt.BRACE_R);if(0===me.length&&0===qe.length)throw this.unexpected();return this.node(H,{kind:Tt.b.SCHEMA_EXTENSION,directives:me,operationTypes:qe})}parseScalarTypeExtension(){const H=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const me=this.parseName(),qe=this.parseConstDirectives();if(0===qe.length)throw this.unexpected();return this.node(H,{kind:Tt.b.SCALAR_TYPE_EXTENSION,name:me,directives:qe})}parseObjectTypeExtension(){const H=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const me=this.parseName(),qe=this.parseImplementsInterfaces(),rt=this.parseConstDirectives(),Ft=this.parseFieldsDefinition();if(0===qe.length&&0===rt.length&&0===Ft.length)throw this.unexpected();return this.node(H,{kind:Tt.b.OBJECT_TYPE_EXTENSION,name:me,interfaces:qe,directives:rt,fields:Ft})}parseInterfaceTypeExtension(){const H=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const me=this.parseName(),qe=this.parseImplementsInterfaces(),rt=this.parseConstDirectives(),Ft=this.parseFieldsDefinition();if(0===qe.length&&0===rt.length&&0===Ft.length)throw this.unexpected();return this.node(H,{kind:Tt.b.INTERFACE_TYPE_EXTENSION,name:me,interfaces:qe,directives:rt,fields:Ft})}parseUnionTypeExtension(){const H=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const me=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseUnionMemberTypes();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(H,{kind:Tt.b.UNION_TYPE_EXTENSION,name:me,directives:qe,types:rt})}parseEnumTypeExtension(){const H=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const me=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseEnumValuesDefinition();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(H,{kind:Tt.b.ENUM_TYPE_EXTENSION,name:me,directives:qe,values:rt})}parseInputObjectTypeExtension(){const H=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const me=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseInputFieldsDefinition();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(H,{kind:Tt.b.INPUT_OBJECT_TYPE_EXTENSION,name:me,directives:qe,fields:rt})}parseDirectiveDefinition(){const H=this._lexer.token,me=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Lt.AT);const qe=this.parseName(),rt=this.parseArgumentDefs(),Ft=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const rn=this.parseDirectiveLocations();return this.node(H,{kind:Tt.b.DIRECTIVE_DEFINITION,description:me,name:qe,arguments:rt,repeatable:Ft,locations:rn})}parseDirectiveLocations(){return this.delimitedMany(Lt.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const H=this._lexer.token,me=this.parseName();if(Object.prototype.hasOwnProperty.call(It,me.value))return me;throw this.unexpected(H)}node(H,me){return!0!==this._options.noLocation&&(me.loc=new Ct.aZ(H,this._lexer.lastToken,this._lexer.source)),me}peek(H){return this._lexer.token.kind===H}expectToken(H){const me=this._lexer.token;if(me.kind===H)return this.advanceLexer(),me;throw st(this._lexer.source,me.start,`Expected ${dt(H)}, found ${Xe(me)}.`)}expectOptionalToken(H){return this._lexer.token.kind===H&&(this.advanceLexer(),!0)}expectKeyword(H){const me=this._lexer.token;if(me.kind!==Lt.NAME||me.value!==H)throw st(this._lexer.source,me.start,`Expected "${H}", found ${Xe(me)}.`);this.advanceLexer()}expectOptionalKeyword(H){const me=this._lexer.token;return me.kind===Lt.NAME&&me.value===H&&(this.advanceLexer(),!0)}unexpected(H){const me=H??this._lexer.token;return st(this._lexer.source,me.start,`Unexpected ${Xe(me)}.`)}any(H,me,qe){this.expectToken(H);const rt=[];for(;!this.expectOptionalToken(qe);)rt.push(me.call(this));return rt}optionalMany(H,me,qe){if(this.expectOptionalToken(H)){const rt=[];do{rt.push(me.call(this))}while(!this.expectOptionalToken(qe));return rt}return[]}many(H,me,qe){this.expectToken(H);const rt=[];do{rt.push(me.call(this))}while(!this.expectOptionalToken(qe));return rt}delimitedMany(H,me){this.expectOptionalToken(H);const qe=[];do{qe.push(me.call(this))}while(this.expectOptionalToken(H));return qe}advanceLexer(){const{maxTokens:H}=this._options,me=this._lexer.advance();if(void 0!==H&&me.kind!==Lt.EOF&&(++this._tokenCounter,this._tokenCounter>H))throw st(this._lexer.source,me.start,`Document contains more that ${H} tokens. Parsing aborted.`)}}function Xe(W){const H=W.value;return dt(W.kind)+(null!=H?` "${H}"`:"")}function dt(W){return function $n(W){return W===Lt.BANG||W===Lt.DOLLAR||W===Lt.AMP||W===Lt.PAREN_L||W===Lt.PAREN_R||W===Lt.SPREAD||W===Lt.COLON||W===Lt.EQUALS||W===Lt.AT||W===Lt.BRACKET_L||W===Lt.BRACKET_R||W===Lt.BRACE_L||W===Lt.PIPE||W===Lt.BRACE_R}(W)?`"${W}"`:W}var at=new Map,Ot=new Map,Qe=!0,be=!1;function Je(W){return W.replace(/[\s,]+/g," ").trim()}function Ke(W){var H=Je(W);if(!at.has(H)){var me=function Vt(W,H){return new ee(W,H).parseDocument()}(W,{experimentalFragmentVariables:be,allowLegacyFragmentVariables:be});if(!me||"Document"!==me.kind)throw new Error("Not a valid GraphQL document.");at.set(H,function mt(W){var H=new Set(W.definitions);H.forEach(function(qe){qe.loc&&delete qe.loc,Object.keys(qe).forEach(function(rt){var Ft=qe[rt];Ft&&"object"==typeof Ft&&H.add(Ft)})});var me=W.loc;return me&&(delete me.startToken,delete me.endToken),W}(function ze(W){var H=new Set,me=[];return W.definitions.forEach(function(qe){if("FragmentDefinition"===qe.kind){var rt=qe.name.value,Ft=function re(W){return Je(W.source.body.substring(W.start,W.end))}(qe.loc),rn=Ot.get(rt);rn&&!rn.has(Ft)?Qe&&console.warn("Warning: fragment with name "+rt+" 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"):rn||Ot.set(rt,rn=new Set),rn.add(Ft),H.has(Ft)||(H.add(Ft),me.push(qe))}else me.push(qe)}),m(m({},W),{definitions:me})}(me)))}return at.get(H)}function xe(W){for(var H=[],me=1;me{a.d(De,{E:()=>s});var t=a(9085);function s(...m){return e=>(0,t.E)(...m)(e)}},9199:(Rt,De,a)=>{function t(L){return null!=L}a.d(De,{Vq:()=>s,kP:()=>t});const s=t},4412:(Rt,De,a)=>{a.d(De,{t:()=>s});var t=a(1413);class s extends t.B{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const M=super._subscribe(e);return!M.closed&&e.next(this._value),M}getValue(){const{hasError:e,thrownError:M,_value:K}=this;if(e)throw M;return this._throwIfClosed(),K}next(e){super.next(this._value=e)}}},1985:(Rt,De,a)=>{a.d(De,{c:()=>j});var t=a(7707),s=a(8359),m=a(3494),e=a(1203),M=a(1026),K=a(8071),L=a(9786);let j=(()=>{class F{constructor(V){V&&(this._subscribe=V)}lift(V){const x=new F;return x.source=this,x.operator=V,x}subscribe(V,x,oe){const J=function w(F){return F&&F instanceof t.vU||function I(F){return F&&(0,K.T)(F.next)&&(0,K.T)(F.error)&&(0,K.T)(F.complete)}(F)&&(0,s.Uv)(F)}(V)?V:new t.Ms(V,x,oe);return(0,L.Y)(()=>{const{operator:Ee,source:Oe}=this;J.add(Ee?Ee.call(J,Oe):Oe?this._subscribe(J):this._trySubscribe(J))}),J}_trySubscribe(V){try{return this._subscribe(V)}catch(x){V.error(x)}}forEach(V,x){return new(x=A(x))((oe,J)=>{const Ee=new t.Ms({next:Oe=>{try{V(Oe)}catch(pe){J(pe),Ee.unsubscribe()}},error:J,complete:oe});this.subscribe(Ee)})}_subscribe(V){var x;return null===(x=this.source)||void 0===x?void 0:x.subscribe(V)}[m.s](){return this}pipe(...V){return(0,e.m)(V)(this)}toPromise(V){return new(V=A(V))((x,oe)=>{let J;this.subscribe(Ee=>J=Ee,Ee=>oe(Ee),()=>x(J))})}}return F.create=X=>new F(X),F})();function A(F){var X;return null!==(X=F??M.$.Promise)&&void 0!==X?X:Promise}},2771:(Rt,De,a)=>{a.d(De,{m:()=>m});var t=a(1413),s=a(6129);class m extends t.B{constructor(M=1/0,K=1/0,L=s.U){super(),this._bufferSize=M,this._windowTime=K,this._timestampProvider=L,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=K===1/0,this._bufferSize=Math.max(1,M),this._windowTime=Math.max(1,K)}next(M){const{isStopped:K,_buffer:L,_infiniteTimeWindow:j,_timestampProvider:A,_windowTime:I}=this;K||(L.push(M),!j&&L.push(A.now()+I)),this._trimBuffer(),super.next(M)}_subscribe(M){this._throwIfClosed(),this._trimBuffer();const K=this._innerSubscribe(M),{_infiniteTimeWindow:L,_buffer:j}=this,A=j.slice();for(let I=0;I{a.d(De,{B:()=>L});var t=a(1985),s=a(8359);const e=(0,a(1853).L)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var M=a(7908),K=a(9786);let L=(()=>{class A extends t.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const F=new j(this,this);return F.operator=w,F}_throwIfClosed(){if(this.closed)throw new e}next(w){(0,K.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const F of this.currentObservers)F.next(w)}})}error(w){(0,K.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:F}=this;for(;F.length;)F.shift().error(w)}})}complete(){(0,K.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:F,isStopped:X,observers:V}=this;return F||X?s.Kn:(this.currentObservers=null,V.push(w),new s.yU(()=>{this.currentObservers=null,(0,M.o)(V,w)}))}_checkFinalizedStatuses(w){const{hasError:F,thrownError:X,isStopped:V}=this;F?w.error(X):V&&w.complete()}asObservable(){const w=new t.c;return w.source=this,w}}return A.create=(I,w)=>new j(I,w),A})();class j extends L{constructor(I,w){super(),this.destination=I,this.source=w}next(I){var w,F;null===(F=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===F||F.call(w,I)}error(I){var w,F;null===(F=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===F||F.call(w,I)}complete(){var I,w;null===(w=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===w||w.call(I)}_subscribe(I){var w,F;return null!==(F=null===(w=this.source)||void 0===w?void 0:w.subscribe(I))&&void 0!==F?F:s.Kn}}},7707:(Rt,De,a)=>{a.d(De,{Ms:()=>oe,vU:()=>F});var t=a(8071),s=a(8359),m=a(1026),e=a(5334),M=a(5343);const K=A("C",void 0,void 0);function A(Ie,ve,fe){return{kind:Ie,value:ve,error:fe}}var I=a(9270),w=a(9786);class F extends s.yU{constructor(ve){super(),this.isStopped=!1,ve?(this.destination=ve,(0,s.Uv)(ve)&&ve.add(this)):this.destination=pe}static create(ve,fe,Y){return new oe(ve,fe,Y)}next(ve){this.isStopped?Oe(function j(Ie){return A("N",Ie,void 0)}(ve),this):this._next(ve)}error(ve){this.isStopped?Oe(function L(Ie){return A("E",void 0,Ie)}(ve),this):(this.isStopped=!0,this._error(ve))}complete(){this.isStopped?Oe(K,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ve){this.destination.next(ve)}_error(ve){try{this.destination.error(ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function V(Ie,ve){return X.call(Ie,ve)}class x{constructor(ve){this.partialObserver=ve}next(ve){const{partialObserver:fe}=this;if(fe.next)try{fe.next(ve)}catch(Y){J(Y)}}error(ve){const{partialObserver:fe}=this;if(fe.error)try{fe.error(ve)}catch(Y){J(Y)}else J(ve)}complete(){const{partialObserver:ve}=this;if(ve.complete)try{ve.complete()}catch(fe){J(fe)}}}class oe extends F{constructor(ve,fe,Y){let z;if(super(),(0,t.T)(ve)||!ve)z={next:ve??void 0,error:fe??void 0,complete:Y??void 0};else{let Z;this&&m.$.useDeprecatedNextContext?(Z=Object.create(ve),Z.unsubscribe=()=>this.unsubscribe(),z={next:ve.next&&V(ve.next,Z),error:ve.error&&V(ve.error,Z),complete:ve.complete&&V(ve.complete,Z)}):z=ve}this.destination=new x(z)}}function J(Ie){m.$.useDeprecatedSynchronousErrorHandling?(0,w.l)(Ie):(0,e.m)(Ie)}function Oe(Ie,ve){const{onStoppedNotification:fe}=m.$;fe&&I.f.setTimeout(()=>fe(Ie,ve))}const pe={closed:!0,next:M.l,error:function Ee(Ie){throw Ie},complete:M.l}},8359:(Rt,De,a)=>{a.d(De,{Kn:()=>K,yU:()=>M,Uv:()=>L});var t=a(8071);const m=(0,a(1853).L)(A=>function(w){A(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((F,X)=>`${X+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var e=a(7908);class M{constructor(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const V of w)V.remove(this);else w.remove(this);const{initialTeardown:F}=this;if((0,t.T)(F))try{F()}catch(V){I=V instanceof m?V.errors:[V]}const{_finalizers:X}=this;if(X){this._finalizers=null;for(const V of X)try{j(V)}catch(x){I=I??[],x instanceof m?I=[...I,...x.errors]:I.push(x)}}if(I)throw new m(I)}}add(I){var w;if(I&&I!==this)if(this.closed)j(I);else{if(I instanceof M){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(I)}}_hasParent(I){const{_parentage:w}=this;return w===I||Array.isArray(w)&&w.includes(I)}_addParent(I){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(I),w):w?[w,I]:I}_removeParent(I){const{_parentage:w}=this;w===I?this._parentage=null:Array.isArray(w)&&(0,e.o)(w,I)}remove(I){const{_finalizers:w}=this;w&&(0,e.o)(w,I),I instanceof M&&I._removeParent(this)}}M.EMPTY=(()=>{const A=new M;return A.closed=!0,A})();const K=M.EMPTY;function L(A){return A instanceof M||A&&"closed"in A&&(0,t.T)(A.remove)&&(0,t.T)(A.add)&&(0,t.T)(A.unsubscribe)}function j(A){(0,t.T)(A)?A():A.unsubscribe()}},1026:(Rt,De,a)=>{a.d(De,{$:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(Rt,De,a)=>{a.d(De,{G:()=>K});var t=a(1985),s=a(8359),m=a(9898),e=a(4360),M=a(9974);class K extends t.c{constructor(j,A){super(),this.source=j,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,M.S)(j)&&(this.lift=j.lift)}_subscribe(j){return this.getSubject().subscribe(j)}getSubject(){const j=this._subject;return(!j||j.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:j}=this;this._subject=this._connection=null,j?.unsubscribe()}connect(){let j=this._connection;if(!j){j=this._connection=new s.yU;const A=this.getSubject();j.add(this.source.subscribe((0,e._)(A,void 0,()=>{this._teardown(),A.complete()},I=>{this._teardown(),A.error(I)},()=>this._teardown()))),j.closed&&(this._connection=null,j=s.yU.EMPTY)}return j}refCount(){return(0,m.B)()(this)}}},4572:(Rt,De,a)=>{a.d(De,{z:()=>I});var t=a(1985),s=a(3073),m=a(2806),e=a(3669),M=a(6450),K=a(9326),L=a(8496),j=a(4360),A=a(5225);function I(...X){const V=(0,K.lI)(X),x=(0,K.ms)(X),{args:oe,keys:J}=(0,s.D)(X);if(0===oe.length)return(0,m.H)([],V);const Ee=new t.c(function w(X,V,x=e.D){return oe=>{F(V,()=>{const{length:J}=X,Ee=new Array(J);let Oe=J,pe=J;for(let Ie=0;Ie{const ve=(0,m.H)(X[Ie],V);let fe=!1;ve.subscribe((0,j._)(oe,Y=>{Ee[Ie]=Y,fe||(fe=!0,pe--),pe||oe.next(x(Ee.slice()))},()=>{--Oe||oe.complete()}))},oe)},oe)}}(oe,V,J?Oe=>(0,L.e)(J,Oe):e.D));return x?Ee.pipe((0,M.I)(x)):Ee}function F(X,V,x){X?(0,A.N)(x,X,V):V()}},8793:(Rt,De,a)=>{a.d(De,{x:()=>M});var t=a(6365),m=a(9326),e=a(2806);function M(...K){return function s(){return(0,t.U)(1)}()((0,e.H)(K,(0,m.lI)(K)))}},9030:(Rt,De,a)=>{a.d(De,{v:()=>m});var t=a(1985),s=a(8750);function m(e){return new t.c(M=>{(0,s.Tg)(e()).subscribe(M)})}},983:(Rt,De,a)=>{a.d(De,{w:()=>s});const s=new(a(1985).c)(M=>M.complete())},7468:(Rt,De,a)=>{a.d(De,{p:()=>j});var t=a(1985),s=a(3073),m=a(8750),e=a(9326),M=a(4360),K=a(6450),L=a(8496);function j(...A){const I=(0,e.ms)(A),{args:w,keys:F}=(0,s.D)(A),X=new t.c(V=>{const{length:x}=w;if(!x)return void V.complete();const oe=new Array(x);let J=x,Ee=x;for(let Oe=0;Oe{pe||(pe=!0,Ee--),oe[Oe]=Ie},()=>J--,void 0,()=>{(!J||!pe)&&(Ee||V.next(F?(0,L.e)(F,oe):oe),V.complete())}))}});return I?X.pipe((0,K.I)(I)):X}},2806:(Rt,De,a)=>{a.d(De,{H:()=>fe});var t=a(8750),s=a(941),m=a(9974);function e(Y,z=0){return(0,m.N)((Z,he)=>{he.add(Y.schedule(()=>Z.subscribe(he),z))})}var L=a(1985),A=a(4761),I=a(8071),w=a(5225);function X(Y,z){if(!Y)throw new Error("Iterable cannot be null");return new L.c(Z=>{(0,w.N)(Z,z,()=>{const he=Y[Symbol.asyncIterator]();(0,w.N)(Z,z,()=>{he.next().then(E=>{E.done?Z.complete():Z.next(E.value)})},0,!0)})})}var V=a(5055),x=a(9858),oe=a(7441),J=a(5397),Ee=a(7953),Oe=a(591),pe=a(5196);function fe(Y,z){return z?function ve(Y,z){if(null!=Y){if((0,V.l)(Y))return function M(Y,z){return(0,t.Tg)(Y).pipe(e(z),(0,s.Q)(z))}(Y,z);if((0,oe.X)(Y))return function j(Y,z){return new L.c(Z=>{let he=0;return z.schedule(function(){he===Y.length?Z.complete():(Z.next(Y[he++]),Z.closed||this.schedule())})})}(Y,z);if((0,x.y)(Y))return function K(Y,z){return(0,t.Tg)(Y).pipe(e(z),(0,s.Q)(z))}(Y,z);if((0,Ee.T)(Y))return X(Y,z);if((0,J.x)(Y))return function F(Y,z){return new L.c(Z=>{let he;return(0,w.N)(Z,z,()=>{he=Y[A.l](),(0,w.N)(Z,z,()=>{let E,S;try{({value:E,done:S}=he.next())}catch(R){return void Z.error(R)}S?Z.complete():Z.next(E)},0,!0)}),()=>(0,I.T)(he?.return)&&he.return()})}(Y,z);if((0,pe.U)(Y))return function Ie(Y,z){return X((0,pe.C)(Y),z)}(Y,z)}throw(0,Oe.L)(Y)}(Y,z):(0,t.Tg)(Y)}},3726:(Rt,De,a)=>{a.d(De,{R:()=>I});var t=a(8750),s=a(1985),m=a(1397),e=a(7441),M=a(8071),K=a(6450);const L=["addListener","removeListener"],j=["addEventListener","removeEventListener"],A=["on","off"];function I(x,oe,J,Ee){if((0,M.T)(J)&&(Ee=J,J=void 0),Ee)return I(x,oe,J).pipe((0,K.I)(Ee));const[Oe,pe]=function V(x){return(0,M.T)(x.addEventListener)&&(0,M.T)(x.removeEventListener)}(x)?j.map(Ie=>ve=>x[Ie](oe,ve,J)):function F(x){return(0,M.T)(x.addListener)&&(0,M.T)(x.removeListener)}(x)?L.map(w(x,oe)):function X(x){return(0,M.T)(x.on)&&(0,M.T)(x.off)}(x)?A.map(w(x,oe)):[];if(!Oe&&(0,e.X)(x))return(0,m.Z)(Ie=>I(Ie,oe,J))((0,t.Tg)(x));if(!Oe)throw new TypeError("Invalid event target");return new s.c(Ie=>{const ve=(...fe)=>Ie.next(1pe(ve)})}function w(x,oe){return J=>Ee=>x[J](oe,Ee)}},3226:(Rt,De,a)=>{a.d(De,{T:()=>s});var t=a(9030);function s(m,e,M){return(0,t.v)(()=>m()?e:M)}},8750:(Rt,De,a)=>{a.d(De,{Tg:()=>X});var t=a(7272),s=a(7441),m=a(9858),e=a(1985),M=a(5055),K=a(7953),L=a(591),j=a(5397),A=a(5196),I=a(8071),w=a(5334),F=a(3494);function X(Ie){if(Ie instanceof e.c)return Ie;if(null!=Ie){if((0,M.l)(Ie))return function V(Ie){return new e.c(ve=>{const fe=Ie[F.s]();if((0,I.T)(fe.subscribe))return fe.subscribe(ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ie);if((0,s.X)(Ie))return function x(Ie){return new e.c(ve=>{for(let fe=0;fe{Ie.then(fe=>{ve.closed||(ve.next(fe),ve.complete())},fe=>ve.error(fe)).then(null,w.m)})}(Ie);if((0,K.T)(Ie))return Ee(Ie);if((0,j.x)(Ie))return function J(Ie){return new e.c(ve=>{for(const fe of Ie)if(ve.next(fe),ve.closed)return;ve.complete()})}(Ie);if((0,A.U)(Ie))return function Oe(Ie){return Ee((0,A.C)(Ie))}(Ie)}throw(0,L.L)(Ie)}function Ee(Ie){return new e.c(ve=>{(function pe(Ie,ve){var fe,Y,z,Z;return(0,t.sH)(this,void 0,void 0,function*(){try{for(fe=(0,t.xN)(Ie);!(Y=yield fe.next()).done;)if(ve.next(Y.value),ve.closed)return}catch(he){z={error:he}}finally{try{Y&&!Y.done&&(Z=fe.return)&&(yield Z.call(fe))}finally{if(z)throw z.error}}ve.complete()})})(Ie,ve).catch(fe=>ve.error(fe))})}},605:(Rt,De,a)=>{a.d(De,{Y:()=>m});var t=a(3236),s=a(1584);function m(e=0,M=t.E){return e<0&&(e=0),(0,s.O)(e,e,M)}},7786:(Rt,De,a)=>{a.d(De,{h:()=>K});var t=a(6365),s=a(8750),m=a(983),e=a(9326),M=a(2806);function K(...L){const j=(0,e.lI)(L),A=(0,e.R0)(L,1/0),I=L;return I.length?1===I.length?(0,s.Tg)(I[0]):(0,t.U)(A)((0,M.H)(I,j)):m.w}},7673:(Rt,De,a)=>{a.d(De,{of:()=>m});var t=a(9326),s=a(2806);function m(...e){const M=(0,t.lI)(e);return(0,s.H)(e,M)}},8810:(Rt,De,a)=>{a.d(De,{$:()=>m});var t=a(1985),s=a(8071);function m(e,M){const K=(0,s.T)(e)?e:()=>e,L=j=>j.error(K());return new t.c(M?j=>M.schedule(L,0,j):L)}},1584:(Rt,De,a)=>{a.d(De,{O:()=>M});var t=a(1985),s=a(3236),m=a(9470);function M(K=0,L,j=s.b){let A=-1;return null!=L&&((0,m.m)(L)?j=L:A=L),new t.c(I=>{let w=function e(K){return K instanceof Date&&!isNaN(K)}(K)?+K-j.now():K;w<0&&(w=0);let F=0;return j.schedule(function(){I.closed||(I.next(F++),0<=A?this.schedule(void 0,A):I.complete())},w)})}},4360:(Rt,De,a)=>{a.d(De,{_:()=>s});var t=a(7707);function s(e,M,K,L,j){return new m(e,M,K,L,j)}class m extends t.vU{constructor(M,K,L,j,A,I){super(M),this.onFinalize=A,this.shouldUnsubscribe=I,this._next=K?function(w){try{K(w)}catch(F){M.error(F)}}:super._next,this._error=j?function(w){try{j(w)}catch(F){M.error(F)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(w){M.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var M;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:K}=this;super.unsubscribe(),!K&&(null===(M=this.onFinalize)||void 0===M||M.call(this))}}}},3798:(Rt,De,a)=>{a.d(De,{Z:()=>L});var t=a(3236),s=a(9974),m=a(8750),e=a(4360),K=a(1584);function L(j,A=t.E){return function M(j){return(0,s.N)((A,I)=>{let w=!1,F=null,X=null,V=!1;const x=()=>{if(X?.unsubscribe(),X=null,w){w=!1;const J=F;F=null,I.next(J)}V&&I.complete()},oe=()=>{X=null,V&&I.complete()};A.subscribe((0,e._)(I,J=>{w=!0,F=J,X||(0,m.Tg)(j(J)).subscribe(X=(0,e._)(I,x,oe))},()=>{V=!0,(!w||!X||X.closed)&&I.complete()}))})}(()=>(0,K.O)(j,A))}},9437:(Rt,De,a)=>{a.d(De,{W:()=>e});var t=a(8750),s=a(4360),m=a(9974);function e(M){return(0,m.N)((K,L)=>{let I,j=null,A=!1;j=K.subscribe((0,s._)(L,void 0,void 0,w=>{I=(0,t.Tg)(M(w,e(M)(K))),j?(j.unsubscribe(),j=null,I.subscribe(L)):A=!0})),A&&(j.unsubscribe(),j=null,I.subscribe(L))})}},274:(Rt,De,a)=>{a.d(De,{H:()=>m});var t=a(1397),s=a(8071);function m(e,M){return(0,s.T)(M)?(0,t.Z)(e,M,1):(0,t.Z)(e,1)}},152:(Rt,De,a)=>{a.d(De,{B:()=>e});var t=a(3236),s=a(9974),m=a(4360);function e(M,K=t.E){return(0,s.N)((L,j)=>{let A=null,I=null,w=null;const F=()=>{if(A){A.unsubscribe(),A=null;const V=I;I=null,j.next(V)}};function X(){const V=w+M,x=K.now();if(x{I=V,w=K.now(),A||(A=K.schedule(X,M),j.add(A))},()=>{F(),j.complete()},void 0,()=>{I=A=null}))})}},9901:(Rt,De,a)=>{a.d(De,{U:()=>m});var t=a(9974),s=a(4360);function m(e){return(0,t.N)((M,K)=>{let L=!1;M.subscribe((0,s._)(K,j=>{L=!0,K.next(j)},()=>{L||K.next(e),K.complete()}))})}},1986:(Rt,De,a)=>{a.d(De,{c:()=>X});var t=a(3236),s=a(8793),m=a(6697),e=a(9974),M=a(4360),K=a(5343),j=a(3703),A=a(1397),I=a(8750);function w(V,x){return x?oe=>(0,s.x)(x.pipe((0,m.s)(1),function L(){return(0,e.N)((V,x)=>{V.subscribe((0,M._)(x,K.l))})}()),oe.pipe(w(V))):(0,A.Z)((oe,J)=>(0,I.Tg)(V(oe,J)).pipe((0,m.s)(1),(0,j.u)(oe)))}var F=a(1584);function X(V,x=t.E){const oe=(0,F.O)(V,x);return w(()=>oe)}},3294:(Rt,De,a)=>{a.d(De,{F:()=>e});var t=a(3669),s=a(9974),m=a(4360);function e(K,L=t.D){return K=K??M,(0,s.N)((j,A)=>{let I,w=!0;j.subscribe((0,m._)(A,F=>{const X=L(F);(w||!K(I,X))&&(w=!1,I=X,A.next(F))}))})}function M(K,L){return K===L}},5964:(Rt,De,a)=>{a.d(De,{p:()=>m});var t=a(9974),s=a(4360);function m(e,M){return(0,t.N)((K,L)=>{let j=0;K.subscribe((0,s._)(L,A=>e.call(M,A,j++)&&L.next(A)))})}},980:(Rt,De,a)=>{a.d(De,{j:()=>s});var t=a(9974);function s(m){return(0,t.N)((e,M)=>{try{e.subscribe(M)}finally{M.add(m)}})}},1594:(Rt,De,a)=>{a.d(De,{$:()=>L});var t=a(9350),s=a(5964),m=a(6697),e=a(9901),M=a(3774),K=a(3669);function L(j,A){const I=arguments.length>=2;return w=>w.pipe(j?(0,s.p)((F,X)=>j(F,X,w)):K.D,(0,m.s)(1),I?(0,e.U)(A):(0,M.v)(()=>new t.G))}},6354:(Rt,De,a)=>{a.d(De,{T:()=>m});var t=a(9974),s=a(4360);function m(e,M){return(0,t.N)((K,L)=>{let j=0;K.subscribe((0,s._)(L,A=>{L.next(e.call(M,A,j++))}))})}},3703:(Rt,De,a)=>{a.d(De,{u:()=>s});var t=a(6354);function s(m){return(0,t.T)(()=>m)}},6365:(Rt,De,a)=>{a.d(De,{U:()=>m});var t=a(1397),s=a(3669);function m(e=1/0){return(0,t.Z)(s.D,e)}},1397:(Rt,De,a)=>{a.d(De,{Z:()=>j});var t=a(6354),s=a(8750),m=a(9974),e=a(5225),M=a(4360),L=a(8071);function j(A,I,w=1/0){return(0,L.T)(I)?j((F,X)=>(0,t.T)((V,x)=>I(F,V,X,x))((0,s.Tg)(A(F,X))),w):("number"==typeof I&&(w=I),(0,m.N)((F,X)=>function K(A,I,w,F,X,V,x,oe){const J=[];let Ee=0,Oe=0,pe=!1;const Ie=()=>{pe&&!J.length&&!Ee&&I.complete()},ve=Y=>Ee{V&&I.next(Y),Ee++;let z=!1;(0,s.Tg)(w(Y,Oe++)).subscribe((0,M._)(I,Z=>{X?.(Z),V?ve(Z):I.next(Z)},()=>{z=!0},void 0,()=>{if(z)try{for(Ee--;J.length&&Eefe(Z)):fe(Z)}Ie()}catch(Z){I.error(Z)}}))};return A.subscribe((0,M._)(I,ve,()=>{pe=!0,Ie()})),()=>{oe?.()}}(F,X,A,w)))}},941:(Rt,De,a)=>{a.d(De,{Q:()=>e});var t=a(5225),s=a(9974),m=a(4360);function e(M,K=0){return(0,s.N)((L,j)=>{L.subscribe((0,m._)(j,A=>(0,t.N)(j,M,()=>j.next(A),K),()=>(0,t.N)(j,M,()=>j.complete(),K),A=>(0,t.N)(j,M,()=>j.error(A),K)))})}},3946:(Rt,De,a)=>{a.d(De,{J:()=>m});var t=a(9974),s=a(4360);function m(){return(0,t.N)((e,M)=>{let K,L=!1;e.subscribe((0,s._)(M,j=>{const A=K;K=j,L&&M.next([A,j]),L=!0}))})}},9085:(Rt,De,a)=>{a.d(De,{E:()=>s});var t=a(6354);function s(...m){const e=m.length;if(0===e)throw new Error("list of properties cannot be empty.");return(0,t.T)(M=>{let K=M;for(let L=0;L{a.d(De,{B:()=>m});var t=a(9974),s=a(4360);function m(){return(0,t.N)((e,M)=>{let K=null;e._refCount++;const L=(0,s._)(M,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(K=null);const j=e._connection,A=K;K=null,j&&(!A||j===A)&&j.unsubscribe(),M.unsubscribe()});e.subscribe(L),L.closed||(K=e.connect())})}},2816:(Rt,De,a)=>{a.d(De,{S:()=>e});var t=a(9974),s=a(4360);function e(M,K){return(0,t.N)(function m(M,K,L,j,A){return(I,w)=>{let F=L,X=K,V=0;I.subscribe((0,s._)(w,x=>{const oe=V++;X=F?M(X,x,oe):(F=!0,x),j&&w.next(X)},A&&(()=>{F&&w.next(X),w.complete()})))}}(M,K,arguments.length>=2,!0))}},7647:(Rt,De,a)=>{a.d(De,{u:()=>M});var t=a(8750),s=a(1413),m=a(7707),e=a(9974);function M(L={}){const{connector:j=(()=>new s.B),resetOnError:A=!0,resetOnComplete:I=!0,resetOnRefCountZero:w=!0}=L;return F=>{let X,V,x,oe=0,J=!1,Ee=!1;const Oe=()=>{V?.unsubscribe(),V=void 0},pe=()=>{Oe(),X=x=void 0,J=Ee=!1},Ie=()=>{const ve=X;pe(),ve?.unsubscribe()};return(0,e.N)((ve,fe)=>{oe++,!Ee&&!J&&Oe();const Y=x=x??j();fe.add(()=>{oe--,0===oe&&!Ee&&!J&&(V=K(Ie,w))}),Y.subscribe(fe),!X&&oe>0&&(X=new m.Ms({next:z=>Y.next(z),error:z=>{Ee=!0,Oe(),V=K(pe,A,z),Y.error(z)},complete:()=>{J=!0,Oe(),V=K(pe,I),Y.complete()}}),(0,t.Tg)(ve).subscribe(X))})(F)}}function K(L,j,...A){if(!0===j)return void L();if(!1===j)return;const I=new m.Ms({next:()=>{I.unsubscribe(),L()}});return(0,t.Tg)(j(...A)).subscribe(I)}},4668:(Rt,De,a)=>{a.d(De,{t:()=>m});var t=a(2771),s=a(7647);function m(e,M,K){let L,j=!1;return e&&"object"==typeof e?({bufferSize:L=1/0,windowTime:M=1/0,refCount:j=!1,scheduler:K}=e):L=e??1/0,(0,s.u)({connector:()=>new t.m(L,M,K),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:j})}},5245:(Rt,De,a)=>{a.d(De,{i:()=>s});var t=a(5964);function s(m){return(0,t.p)((e,M)=>m<=M)}},9172:(Rt,De,a)=>{a.d(De,{Z:()=>e});var t=a(8793),s=a(9326),m=a(9974);function e(...M){const K=(0,s.lI)(M);return(0,m.N)((L,j)=>{(K?(0,t.x)(M,L,K):(0,t.x)(M,L)).subscribe(j)})}},5558:(Rt,De,a)=>{a.d(De,{n:()=>e});var t=a(8750),s=a(9974),m=a(4360);function e(M,K){return(0,s.N)((L,j)=>{let A=null,I=0,w=!1;const F=()=>w&&!A&&j.complete();L.subscribe((0,m._)(j,X=>{A?.unsubscribe();let V=0;const x=I++;(0,t.Tg)(M(X,x)).subscribe(A=(0,m._)(j,oe=>j.next(K?K(X,oe,x,V++):oe),()=>{A=null,F()}))},()=>{w=!0,F()}))})}},6697:(Rt,De,a)=>{a.d(De,{s:()=>e});var t=a(983),s=a(9974),m=a(4360);function e(M){return M<=0?()=>t.w:(0,s.N)((K,L)=>{let j=0;K.subscribe((0,m._)(L,A=>{++j<=M&&(L.next(A),M<=j&&L.complete())}))})}},6977:(Rt,De,a)=>{a.d(De,{Q:()=>M});var t=a(9974),s=a(4360),m=a(8750),e=a(5343);function M(K){return(0,t.N)((L,j)=>{(0,m.Tg)(K).subscribe((0,s._)(j,()=>j.complete(),e.l)),!j.closed&&L.subscribe(j)})}},7048:(Rt,De,a)=>{a.d(De,{v:()=>m});var t=a(9974),s=a(4360);function m(e,M=!1){return(0,t.N)((K,L)=>{let j=0;K.subscribe((0,s._)(L,A=>{const I=e(A,j++);(I||M)&&L.next(A),!I&&L.complete()}))})}},8141:(Rt,De,a)=>{a.d(De,{M:()=>M});var t=a(8071),s=a(9974),m=a(4360),e=a(3669);function M(K,L,j){const A=(0,t.T)(K)||L||j?{next:K,error:L,complete:j}:K;return A?(0,s.N)((I,w)=>{var F;null===(F=A.subscribe)||void 0===F||F.call(A);let X=!0;I.subscribe((0,m._)(w,V=>{var x;null===(x=A.next)||void 0===x||x.call(A,V),w.next(V)},()=>{var V;X=!1,null===(V=A.complete)||void 0===V||V.call(A),w.complete()},V=>{var x;X=!1,null===(x=A.error)||void 0===x||x.call(A,V),w.error(V)},()=>{var V,x;X&&(null===(V=A.unsubscribe)||void 0===V||V.call(A)),null===(x=A.finalize)||void 0===x||x.call(A)}))}):e.D}},3386:(Rt,De,a)=>{a.d(De,{c:()=>L});var t=a(3236),s=a(9974),m=a(4360),e=a(8750),K=a(1584);function L(j,A=t.E,I){const w=(0,K.O)(j,A);return function M(j,A){return(0,s.N)((I,w)=>{const{leading:F=!0,trailing:X=!1}=A??{};let V=!1,x=null,oe=null,J=!1;const Ee=()=>{oe?.unsubscribe(),oe=null,X&&(Ie(),J&&w.complete())},Oe=()=>{oe=null,J&&w.complete()},pe=ve=>oe=(0,e.Tg)(j(ve)).subscribe((0,m._)(w,Ee,Oe)),Ie=()=>{if(V){V=!1;const ve=x;x=null,w.next(ve),!J&&pe(ve)}};I.subscribe((0,m._)(w,ve=>{V=!0,x=ve,(!oe||oe.closed)&&(F?Ie():pe(ve))},()=>{J=!0,(!(X&&V&&oe)||oe.closed)&&w.complete()}))})}(()=>w,I)}},3774:(Rt,De,a)=>{a.d(De,{v:()=>e});var t=a(9350),s=a(9974),m=a(4360);function e(K=M){return(0,s.N)((L,j)=>{let A=!1;L.subscribe((0,m._)(j,I=>{A=!0,j.next(I)},()=>A?j.complete():j.error(K())))})}function M(){return new t.G}},3993:(Rt,De,a)=>{a.d(De,{E:()=>L});var t=a(9974),s=a(4360),m=a(8750),e=a(3669),M=a(5343),K=a(9326);function L(...j){const A=(0,K.ms)(j);return(0,t.N)((I,w)=>{const F=j.length,X=new Array(F);let V=j.map(()=>!1),x=!1;for(let oe=0;oe{X[oe]=J,!x&&!V[oe]&&(V[oe]=!0,(x=V.every(e.D))&&(V=null))},M.l));I.subscribe((0,s._)(w,oe=>{if(x){const J=[oe,...X];w.next(A?A(...J):J)}}))})}},6780:(Rt,De,a)=>{a.d(De,{R:()=>M});var t=a(8359);class s extends t.yU{constructor(L,j){super()}schedule(L,j=0){return this}}const m={setInterval(K,L,...j){const{delegate:A}=m;return A?.setInterval?A.setInterval(K,L,...j):setInterval(K,L,...j)},clearInterval(K){const{delegate:L}=m;return(L?.clearInterval||clearInterval)(K)},delegate:void 0};var e=a(7908);class M extends s{constructor(L,j){super(L,j),this.scheduler=L,this.work=j,this.pending=!1}schedule(L,j=0){var A;if(this.closed)return this;this.state=L;const I=this.id,w=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(w,I,j)),this.pending=!0,this.delay=j,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(w,this.id,j),this}requestAsyncId(L,j,A=0){return m.setInterval(L.flush.bind(L,this),A)}recycleAsyncId(L,j,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return j;null!=j&&m.clearInterval(j)}execute(L,j){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(L,j);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,j){let I,A=!1;try{this.work(L)}catch(w){A=!0,I=w||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),I}unsubscribe(){if(!this.closed){const{id:L,scheduler:j}=this,{actions:A}=j;this.work=this.state=this.scheduler=null,this.pending=!1,(0,e.o)(A,this),null!=L&&(this.id=this.recycleAsyncId(j,L,null)),this.delay=null,super.unsubscribe()}}}},9687:(Rt,De,a)=>{a.d(De,{q:()=>m});var t=a(6129);class s{constructor(M,K=s.now){this.schedulerActionCtor=M,this.now=K}schedule(M,K=0,L){return new this.schedulerActionCtor(this,M).schedule(L,K)}}s.now=t.U.now;class m extends s{constructor(M,K=s.now){super(M,K),this.actions=[],this._active=!1}flush(M){const{actions:K}=this;if(this._active)return void K.push(M);let L;this._active=!0;do{if(L=M.execute(M.state,M.delay))break}while(M=K.shift());if(this._active=!1,L){for(;M=K.shift();)M.unsubscribe();throw L}}}},536:(Rt,De,a)=>{a.d(De,{X:()=>L});var t=a(6780),s=a(8359);const m={schedule(A){let I=requestAnimationFrame,w=cancelAnimationFrame;const{delegate:F}=m;F&&(I=F.requestAnimationFrame,w=F.cancelAnimationFrame);const X=I(V=>{w=void 0,A(V)});return new s.yU(()=>w?.(X))},requestAnimationFrame(...A){const{delegate:I}=m;return(I?.requestAnimationFrame||requestAnimationFrame)(...A)},cancelAnimationFrame(...A){const{delegate:I}=m;return(I?.cancelAnimationFrame||cancelAnimationFrame)(...A)},delegate:void 0};var M=a(9687);const L=new class K extends M.q{flush(I){this._active=!0;const w=this._scheduled;this._scheduled=void 0;const{actions:F}=this;let X;I=I||F.shift();do{if(X=I.execute(I.state,I.delay))break}while((I=F[0])&&I.id===w&&F.shift());if(this._active=!1,X){for(;(I=F[0])&&I.id===w&&F.shift();)I.unsubscribe();throw X}}}(class e extends t.R{constructor(I,w){super(I,w),this.scheduler=I,this.work=w}requestAsyncId(I,w,F=0){return null!==F&&F>0?super.requestAsyncId(I,w,F):(I.actions.push(this),I._scheduled||(I._scheduled=m.requestAnimationFrame(()=>I.flush(void 0))))}recycleAsyncId(I,w,F=0){var X;if(null!=F?F>0:this.delay>0)return super.recycleAsyncId(I,w,F);const{actions:V}=I;null!=w&&(null===(X=V[V.length-1])||void 0===X?void 0:X.id)!==w&&(m.cancelAnimationFrame(w),I._scheduled=void 0)}})},5007:(Rt,De,a)=>{a.d(De,{$:()=>V});var t=a(6780);let m,s=1;const e={};function M(oe){return oe in e&&(delete e[oe],!0)}const K={setImmediate(oe){const J=s++;return e[J]=!0,m||(m=Promise.resolve()),m.then(()=>M(J)&&oe()),J},clearImmediate(oe){M(oe)}},{setImmediate:j,clearImmediate:A}=K,I={setImmediate(...oe){const{delegate:J}=I;return(J?.setImmediate||j)(...oe)},clearImmediate(oe){const{delegate:J}=I;return(J?.clearImmediate||A)(oe)},delegate:void 0};var F=a(9687);const V=new class X extends F.q{flush(J){this._active=!0;const Ee=this._scheduled;this._scheduled=void 0;const{actions:Oe}=this;let pe;J=J||Oe.shift();do{if(pe=J.execute(J.state,J.delay))break}while((J=Oe[0])&&J.id===Ee&&Oe.shift());if(this._active=!1,pe){for(;(J=Oe[0])&&J.id===Ee&&Oe.shift();)J.unsubscribe();throw pe}}}(class w extends t.R{constructor(J,Ee){super(J,Ee),this.scheduler=J,this.work=Ee}requestAsyncId(J,Ee,Oe=0){return null!==Oe&&Oe>0?super.requestAsyncId(J,Ee,Oe):(J.actions.push(this),J._scheduled||(J._scheduled=I.setImmediate(J.flush.bind(J,void 0))))}recycleAsyncId(J,Ee,Oe=0){var pe;if(null!=Oe?Oe>0:this.delay>0)return super.recycleAsyncId(J,Ee,Oe);const{actions:Ie}=J;null!=Ee&&(null===(pe=Ie[Ie.length-1])||void 0===pe?void 0:pe.id)!==Ee&&(I.clearImmediate(Ee),J._scheduled===Ee&&(J._scheduled=void 0))}})},3236:(Rt,De,a)=>{a.d(De,{E:()=>m,b:()=>e});var t=a(6780);const m=new(a(9687).q)(t.R),e=m},6129:(Rt,De,a)=>{a.d(De,{U:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},9270:(Rt,De,a)=>{a.d(De,{f:()=>t});const t={setTimeout(s,m,...e){const{delegate:M}=t;return M?.setTimeout?M.setTimeout(s,m,...e):setTimeout(s,m,...e)},clearTimeout(s){const{delegate:m}=t;return(m?.clearTimeout||clearTimeout)(s)},delegate:void 0}},4761:(Rt,De,a)=>{a.d(De,{l:()=>s});const s=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Rt,De,a)=>{a.d(De,{s:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Rt,De,a)=>{a.d(De,{G:()=>s});const s=(0,a(1853).L)(m=>function(){m(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Rt,De,a)=>{a.d(De,{R0:()=>K,lI:()=>M,ms:()=>e});var t=a(8071),s=a(9470);function m(L){return L[L.length-1]}function e(L){return(0,t.T)(m(L))?L.pop():void 0}function M(L){return(0,s.m)(m(L))?L.pop():void 0}function K(L,j){return"number"==typeof m(L)?L.pop():j}},3073:(Rt,De,a)=>{a.d(De,{D:()=>M});const{isArray:t}=Array,{getPrototypeOf:s,prototype:m,keys:e}=Object;function M(L){if(1===L.length){const j=L[0];if(t(j))return{args:j,keys:null};if(function K(L){return L&&"object"==typeof L&&s(L)===m}(j)){const A=e(j);return{args:A.map(I=>j[I]),keys:A}}}return{args:L,keys:null}}},7908:(Rt,De,a)=>{function t(s,m){if(s){const e=s.indexOf(m);0<=e&&s.splice(e,1)}}a.d(De,{o:()=>t})},1853:(Rt,De,a)=>{function t(s){const e=s(M=>{Error.call(M),M.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}a.d(De,{L:()=>t})},8496:(Rt,De,a)=>{function t(s,m){return s.reduce((e,M,K)=>(e[M]=m[K],e),{})}a.d(De,{e:()=>t})},9786:(Rt,De,a)=>{a.d(De,{Y:()=>m,l:()=>e});var t=a(1026);let s=null;function m(M){if(t.$.useDeprecatedSynchronousErrorHandling){const K=!s;if(K&&(s={errorThrown:!1,error:null}),M(),K){const{errorThrown:L,error:j}=s;if(s=null,L)throw j}}else M()}function e(M){t.$.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=M)}},5225:(Rt,De,a)=>{function t(s,m,e,M=0,K=!1){const L=m.schedule(function(){e(),K?s.add(this.schedule(null,M)):this.unsubscribe()},M);if(s.add(L),!K)return L}a.d(De,{N:()=>t})},3669:(Rt,De,a)=>{function t(s){return s}a.d(De,{D:()=>t})},7441:(Rt,De,a)=>{a.d(De,{X:()=>t});const t=s=>s&&"number"==typeof s.length&&"function"!=typeof s},7953:(Rt,De,a)=>{a.d(De,{T:()=>s});var t=a(8071);function s(m){return Symbol.asyncIterator&&(0,t.T)(m?.[Symbol.asyncIterator])}},8071:(Rt,De,a)=>{function t(s){return"function"==typeof s}a.d(De,{T:()=>t})},5055:(Rt,De,a)=>{a.d(De,{l:()=>m});var t=a(3494),s=a(8071);function m(e){return(0,s.T)(e[t.s])}},5397:(Rt,De,a)=>{a.d(De,{x:()=>m});var t=a(4761),s=a(8071);function m(e){return(0,s.T)(e?.[t.l])}},4402:(Rt,De,a)=>{a.d(De,{A:()=>m});var t=a(1985),s=a(8071);function m(e){return!!e&&(e instanceof t.c||(0,s.T)(e.lift)&&(0,s.T)(e.subscribe))}},9858:(Rt,De,a)=>{a.d(De,{y:()=>s});var t=a(8071);function s(m){return(0,t.T)(m?.then)}},5196:(Rt,De,a)=>{a.d(De,{C:()=>m,U:()=>e});var t=a(7272),s=a(8071);function m(M){return(0,t.AQ)(this,arguments,function*(){const L=M.getReader();try{for(;;){const{value:j,done:A}=yield(0,t.N3)(L.read());if(A)return yield(0,t.N3)(void 0);yield yield(0,t.N3)(j)}}finally{L.releaseLock()}})}function e(M){return(0,s.T)(M?.getReader)}},9470:(Rt,De,a)=>{a.d(De,{m:()=>s});var t=a(8071);function s(m){return m&&(0,t.T)(m.schedule)}},9974:(Rt,De,a)=>{a.d(De,{N:()=>m,S:()=>s});var t=a(8071);function s(e){return(0,t.T)(e?.lift)}function m(e){return M=>{if(s(M))return M.lift(function(K){try{return e(K,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Rt,De,a)=>{a.d(De,{I:()=>e});var t=a(6354);const{isArray:s}=Array;function e(M){return(0,t.T)(K=>function m(M,K){return s(K)?M(...K):M(K)}(M,K))}},5343:(Rt,De,a)=>{function t(){}a.d(De,{l:()=>t})},1203:(Rt,De,a)=>{a.d(De,{F:()=>s,m:()=>m});var t=a(3669);function s(...e){return m(e)}function m(e){return 0===e.length?t.D:1===e.length?e[0]:function(K){return e.reduce((L,j)=>j(L),K)}}},5334:(Rt,De,a)=>{a.d(De,{m:()=>m});var t=a(1026),s=a(9270);function m(e){s.f.setTimeout(()=>{const{onUnhandledError:M}=t.$;if(!M)throw e;M(e)})}},591:(Rt,De,a)=>{function t(s){return new TypeError(`You provided ${null!==s&&"object"==typeof s?"an invalid object":`'${s}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(De,{L:()=>t})},1018:(Rt,De,a)=>{function t(Y){return Y!==String(parseFloat(Y))}a.d(De,{KF:()=>fe});var M=Object.getOwnPropertyNames?function s(Y){return Object.getOwnPropertyNames(Y).filter(function(z){return Y.propertyIsEnumerable(z)&&t(z)})}:Object.keys?function m(Y){return Object.keys(Y).filter(t)}:function e(Y){var z=[];for(var Z in Y)Y.hasOwnProperty(Z)&&Y.propertyIsEnumerable(Z)&&t(Z)&&z.push(Z);return z},K=function(){function Y(z){this.enumObj=z,this.keysList=Object.freeze(M(z));for(var Z=this.keysList.length,he=new Array(Z),E=new Map,S=0;S=Z.length,value:Z.keysList[he]};return++he,S}})[Symbol.iterator]=function(){return this},z},Y.prototype.values=function(){var z,Z=this,he=0;return(z={next:function(){var S={done:he>=Z.length,value:Z.valuesList[he]};return++he,S}})[Symbol.iterator]=function(){return this},z},Y.prototype.entries=function(){var z,Z=this,he=0;return(z={next:function(){var S={done:he>=Z.length,value:Z[he]};return++he,S}})[Symbol.iterator]=function(){return this},z},Y.prototype[Symbol.iterator]=function(){return this.entries()},Y.prototype.forEach=function(z,Z){for(var he=this.length,E=0;E{a.d(De,{C6:()=>s,Cl:()=>m,Tt:()=>e,YH:()=>A,fX:()=>oe,sH:()=>j});var t=function(E,S){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,U){R.__proto__=U}||function(R,U){for(var se in U)Object.prototype.hasOwnProperty.call(U,se)&&(R[se]=U[se])})(E,S)};function s(E,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function R(){this.constructor=E}t(E,S),E.prototype=null===S?Object.create(S):(R.prototype=S.prototype,new R)}var m=function(){return m=Object.assign||function(S){for(var R,U=1,se=arguments.length;U0&&Be[Be.length-1])&&(6===Le[0]||2===Le[0])){R=0;continue}if(3===Le[0]&&(!Be||Le[1]>Be[0]&&Le[1]{function M(E,S,R,U){var Pt,se=arguments.length,Be=se<3?S:null===U?U=Object.getOwnPropertyDescriptor(S,R):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Be=Reflect.decorate(E,S,R,U);else for(var gt=E.length-1;gt>=0;gt--)(Pt=E[gt])&&(Be=(se<3?Pt(Be):se>3?Pt(S,R,Be):Pt(S,R))||Be);return se>3&&Be&&Object.defineProperty(S,R,Be),Be}a.d(De,{Cg:()=>M})},7272:(Rt,De,a)=>{function j(E,S,R,U){return new(R||(R=Promise))(function(Be,Pt){function gt(zt){try{Le(U.next(zt))}catch(xt){Pt(xt)}}function wt(zt){try{Le(U.throw(zt))}catch(xt){Pt(xt)}}function Le(zt){zt.done?Be(zt.value):function se(Be){return Be instanceof R?Be:new R(function(Pt){Pt(Be)})}(zt.value).then(gt,wt)}Le((U=U.apply(E,S||[])).next())})}function J(E){return this instanceof J?(this.v=E,this):new J(E)}function Ee(E,S,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,U=R.apply(E,S||[]),Be=[];return se={},Pt("next"),Pt("throw"),Pt("return"),se[Symbol.asyncIterator]=function(){return this},se;function Pt(st){U[st]&&(se[st]=function(Ct){return new Promise(function(It,Tt){Be.push([st,Ct,It,Tt])>1||gt(st,Ct)})})}function gt(st,Ct){try{!function wt(st){st.value instanceof J?Promise.resolve(st.value.v).then(Le,zt):xt(Be[0][2],st)}(U[st](Ct))}catch(It){xt(Be[0][3],It)}}function Le(st){gt("next",st)}function zt(st){gt("throw",st)}function xt(st,Ct){st(Ct),Be.shift(),Be.length&>(Be[0][0],Be[0][1])}}function pe(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R,S=E[Symbol.asyncIterator];return S?S.call(E):(E=function F(E){var S="function"==typeof Symbol&&Symbol.iterator,R=S&&E[S],U=0;if(R)return R.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&U>=E.length&&(E=void 0),{value:E&&E[U++],done:!E}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}(E),R={},U("next"),U("throw"),U("return"),R[Symbol.asyncIterator]=function(){return this},R);function U(Be){R[Be]=E[Be]&&function(Pt){return new Promise(function(gt,wt){!function se(Be,Pt,gt,wt){Promise.resolve(wt).then(function(Le){Be({value:Le,done:gt})},Pt)}(gt,wt,(Pt=E[Be](Pt)).done,Pt.value)})}}}a.d(De,{AQ:()=>Ee,N3:()=>J,sH:()=>j,xN:()=>pe})},4523:(Rt,De,a)=>{function t(m,e,M,K,L,j,A){try{var I=m[j](A),w=I.value}catch(F){return void M(F)}I.done?e(w):Promise.resolve(w).then(K,L)}function s(m){return function(){var e=this,M=arguments;return new Promise(function(K,L){var j=m.apply(e,M);function A(w){t(j,K,L,A,I,"next",w)}function I(w){t(j,K,L,A,I,"throw",w)}A(void 0)})}}a.d(De,{A:()=>s})},9969:(Rt,De,a)=>{a.d(De,{FX:()=>Z,If:()=>t,K2:()=>K,P:()=>V,hZ:()=>m,i0:()=>e,iF:()=>L,kY:()=>I,kp:()=>s,sf:()=>Y,ui:()=>z,wk:()=>j,yc:()=>x});var t=function(he){return he[he.State=0]="State",he[he.Transition=1]="Transition",he[he.Sequence=2]="Sequence",he[he.Group=3]="Group",he[he.Animate=4]="Animate",he[he.Keyframes=5]="Keyframes",he[he.Style=6]="Style",he[he.Trigger=7]="Trigger",he[he.Reference=8]="Reference",he[he.AnimateChild=9]="AnimateChild",he[he.AnimateRef=10]="AnimateRef",he[he.Query=11]="Query",he[he.Stagger=12]="Stagger",he}(t||{});const s="*";function m(he,E){return{type:t.Trigger,name:he,definitions:E,options:{}}}function e(he,E=null){return{type:t.Animate,styles:E,timings:he}}function K(he,E=null){return{type:t.Sequence,steps:he,options:E}}function L(he){return{type:t.Style,styles:he,offset:null}}function j(he,E,S){return{type:t.State,name:he,styles:E,options:S}}function I(he,E,S=null){return{type:t.Transition,expr:he,animation:E,options:S}}function V(he,E,S=null){return{type:t.Query,selector:he,animation:E,options:S}}function x(he,E){return{type:t.Stagger,timings:he,animation:E}}class Y{constructor(E=0,S=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=E+S}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(E=>E()),this._onDoneFns=[])}onStart(E){this._originalOnStartFns.push(E),this._onStartFns.push(E)}onDone(E){this._originalOnDoneFns.push(E),this._onDoneFns.push(E)}onDestroy(E){this._onDestroyFns.push(E)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(E=>E()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(E=>E()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(E){this._position=this.totalTime?E*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(E){const S="start"==E?this._onStartFns:this._onDoneFns;S.forEach(R=>R()),S.length=0}}class z{constructor(E){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=E;let S=0,R=0,U=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(Be=>{Be.onDone(()=>{++S==se&&this._onFinish()}),Be.onDestroy(()=>{++R==se&&this._onDestroy()}),Be.onStart(()=>{++U==se&&this._onStart()})}),this.totalTime=this.players.reduce((Be,Pt)=>Math.max(Be,Pt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(E=>E()),this._onDoneFns=[])}init(){this.players.forEach(E=>E.init())}onStart(E){this._onStartFns.push(E)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(E=>E()),this._onStartFns=[])}onDone(E){this._onDoneFns.push(E)}onDestroy(E){this._onDestroyFns.push(E)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(E=>E.play())}pause(){this.players.forEach(E=>E.pause())}restart(){this.players.forEach(E=>E.restart())}finish(){this._onFinish(),this.players.forEach(E=>E.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(E=>E.destroy()),this._onDestroyFns.forEach(E=>E()),this._onDestroyFns=[])}reset(){this.players.forEach(E=>E.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(E){const S=E*this.totalTime;this.players.forEach(R=>{const U=R.totalTime?Math.min(1,S/R.totalTime):1;R.setPosition(U)})}getPosition(){const E=this.players.reduce((S,R)=>null===S||R.totalTime>S.totalTime?R:S,null);return null!=E?E.getPosition():0}beforeDestroy(){this.players.forEach(E=>{E.beforeDestroy&&E.beforeDestroy()})}triggerCallback(E){const S="start"==E?this._onStartFns:this._onDoneFns;S.forEach(R=>R()),S.length=0}}const Z="!"},851:(Rt,De,a)=>{a.d(De,{Pd:()=>Qe,vR:()=>q,kB:()=>St,Bu:()=>wt,FN:()=>ue,GX:()=>Et,_G:()=>ie,w6:()=>Pe});var t=a(177),s=a(3953),m=a(6860),e=a(1413),M=a(8359),K=a(4412),L=a(7673),j=a(7336),A=a(8141),I=a(152),w=a(5964),F=a(6354),X=a(5245),V=a(3294),x=a(6977);let J=(()=>{class be{create(re){return typeof MutationObserver>"u"?null:new MutationObserver(re)}static#e=this.\u0275fac=function(ze){return new(ze||be)};static#t=this.\u0275prov=s.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),pe=(()=>{class be{static#e=this.\u0275fac=function(ze){return new(ze||be)};static#t=this.\u0275mod=s.$C({type:be});static#n=this.\u0275inj=s.G2t({providers:[J]})}return be})();var Ie=a(4085),ve=a(9327);class Pt{constructor(Je,re){this._items=Je,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new e.B,this._typeaheadSubscription=M.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ze=>ze.disabled,this._pressedLetters=[],this.tabOut=new e.B,this.change=new e.B,Je instanceof s.rOR?this._itemChangesSubscription=Je.changes.subscribe(ze=>this._itemsChanged(ze.toArray())):(0,s.Hps)(Je)&&(this._effectRef=(0,s.QZP)(()=>this._itemsChanged(Je()),{injector:re}))}skipPredicate(Je){return this._skipPredicateFn=Je,this}withWrap(Je=!0){return this._wrap=Je,this}withVerticalOrientation(Je=!0){return this._vertical=Je,this}withHorizontalOrientation(Je){return this._horizontal=Je,this}withAllowedModifierKeys(Je){return this._allowedModifierKeys=Je,this}withTypeAhead(Je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,A.M)(re=>this._pressedLetters.push(re)),(0,I.B)(Je),(0,w.p)(()=>this._pressedLetters.length>0),(0,F.T)(()=>this._pressedLetters.join(""))).subscribe(re=>{const ze=this._getItemsArray();for(let mt=1;mt!Je[Ke]||this._allowedModifierKeys.indexOf(Ke)>-1);switch(re){case j.wn:return void this.tabOut.next();case j.n6:if(this._vertical&&mt){this.setNextItemActive();break}return;case j.i7:if(this._vertical&&mt){this.setPreviousItemActive();break}return;case j.LE:if(this._horizontal&&mt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case j.UQ:if(this._horizontal&&mt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case j.yZ:if(this._homeAndEnd&&mt){this.setFirstItemActive();break}return;case j.Kp:if(this._homeAndEnd&&mt){this.setLastItemActive();break}return;case j.w_:if(this._pageUpAndDown.enabled&&mt){const Ke=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Ke>0?Ke:0,1);break}return;case j.dB:if(this._pageUpAndDown.enabled&&mt){const Ke=this._activeItemIndex+this._pageUpAndDown.delta,xe=this._getItemsArray().length;this._setActiveItemByIndex(Ke=j.A&&re<=j.Z||re>=j.f2&&re<=j.bn)&&this._letterKeyStream.next(String.fromCharCode(re))))}this._pressedLetters=[],Je.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._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Je){const re=this._getItemsArray(),ze="number"==typeof Je?Je:re.indexOf(Je);this._activeItem=re[ze]??null,this._activeItemIndex=ze}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Je){this._wrap?this._setActiveInWrapMode(Je):this._setActiveInDefaultMode(Je)}_setActiveInWrapMode(Je){const re=this._getItemsArray();for(let ze=1;ze<=re.length;ze++){const mt=(this._activeItemIndex+Je*ze+re.length)%re.length;if(!this._skipPredicateFn(re[mt]))return void this.setActiveItem(mt)}}_setActiveInDefaultMode(Je){this._setActiveItemByIndex(this._activeItemIndex+Je,Je)}_setActiveItemByIndex(Je,re){const ze=this._getItemsArray();if(ze[Je]){for(;this._skipPredicateFn(ze[Je]);)if(!ze[Je+=re])return;this.setActiveItem(Je)}}_getItemsArray(){return(0,s.Hps)(this._items)?this._items():this._items instanceof s.rOR?this._items.toArray():this._items}_itemsChanged(Je){if(this._activeItem){const re=Je.indexOf(this._activeItem);re>-1&&re!==this._activeItemIndex&&(this._activeItemIndex=re)}}}class wt extends Pt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Je){return this._origin=Je,this}setActiveItem(Je){super.setActiveItem(Je),this.activeItem&&this.activeItem.focus(this._origin)}}let zt=(()=>{class be{constructor(re){this._platform=re}isDisabled(re){return re.hasAttribute("disabled")}isVisible(re){return function st(be){return!!(be.offsetWidth||be.offsetHeight||"function"==typeof be.getClientRects&&be.getClientRects().length)}(re)&&"visible"===getComputedStyle(re).visibility}isTabbable(re){if(!this._platform.isBrowser)return!1;const ze=function xt(be){try{return be.frameElement}catch{return null}}(function bt(be){return be.ownerDocument&&be.ownerDocument.defaultView||window}(re));if(ze&&(-1===fn(ze)||!this.isVisible(ze)))return!1;let mt=re.nodeName.toLowerCase(),Ke=fn(re);return re.hasAttribute("contenteditable")?-1!==Ke:!("iframe"===mt||"object"===mt||this._platform.WEBKIT&&this._platform.IOS&&!function $n(be){let Je=be.nodeName.toLowerCase(),re="input"===Je&&be.type;return"text"===re||"password"===re||"select"===Je||"textarea"===Je}(re))&&("audio"===mt?!!re.hasAttribute("controls")&&-1!==Ke:"video"===mt?-1!==Ke&&(null!==Ke||this._platform.FIREFOX||re.hasAttribute("controls")):re.tabIndex>=0)}isFocusable(re,ze){return function zn(be){return!function It(be){return function en(be){return"input"==be.nodeName.toLowerCase()}(be)&&"hidden"==be.type}(be)&&(function Ct(be){let Je=be.nodeName.toLowerCase();return"input"===Je||"select"===Je||"button"===Je||"textarea"===Je}(be)||function Tt(be){return function Ut(be){return"a"==be.nodeName.toLowerCase()}(be)&&be.hasAttribute("href")}(be)||be.hasAttribute("contenteditable")||Lt(be))}(re)&&!this.isDisabled(re)&&(ze?.ignoreVisibility||this.isVisible(re))}static#e=this.\u0275fac=function(ze){return new(ze||be)(s.KVO(m.OD))};static#t=this.\u0275prov=s.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();function Lt(be){if(!be.hasAttribute("tabindex")||void 0===be.tabIndex)return!1;let Je=be.getAttribute("tabindex");return!(!Je||isNaN(parseInt(Je,10)))}function fn(be){if(!Lt(be))return null;const Je=parseInt(be.getAttribute("tabindex")||"",10);return isNaN(Je)?-1:Je}class At{get enabled(){return this._enabled}set enabled(Je){this._enabled=Je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}constructor(Je,re,ze,mt,Ke=!1,xe){this._element=Je,this._checker=re,this._ngZone=ze,this._document=mt,this._injector=xe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ke||this.attachAnchors()}destroy(){const Je=this._startAnchor,re=this._endAnchor;Je&&(Je.removeEventListener("focus",this.startAnchorListener),Je.remove()),re&&(re.removeEventListener("focus",this.endAnchorListener),re.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(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusInitialElement(Je)))})}focusFirstTabbableElementWhenReady(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusFirstTabbableElement(Je)))})}focusLastTabbableElementWhenReady(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusLastTabbableElement(Je)))})}_getRegionBoundary(Je){const re=this._element.querySelectorAll(`[cdk-focus-region-${Je}], [cdkFocusRegion${Je}], [cdk-focus-${Je}]`);return"start"==Je?re.length?re[0]:this._getFirstTabbableElement(this._element):re.length?re[re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Je){const re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(re){if(!this._checker.isFocusable(re)){const ze=this._getFirstTabbableElement(re);return ze?.focus(Je),!!ze}return re.focus(Je),!0}return this.focusFirstTabbableElement(Je)}focusFirstTabbableElement(Je){const re=this._getRegionBoundary("start");return re&&re.focus(Je),!!re}focusLastTabbableElement(Je){const re=this._getRegionBoundary("end");return re&&re.focus(Je),!!re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Je){if(this._checker.isFocusable(Je)&&this._checker.isTabbable(Je))return Je;const re=Je.children;for(let ze=0;ze=0;ze--){const mt=re[ze].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(re[ze]):null;if(mt)return mt}return null}_createAnchor(){const Je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Je),Je.classList.add("cdk-visually-hidden"),Je.classList.add("cdk-focus-trap-anchor"),Je.setAttribute("aria-hidden","true"),Je}_toggleAnchorTabIndex(Je,re){Je?re.setAttribute("tabindex","0"):re.removeAttribute("tabindex")}toggleAnchors(Je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}_executeOnStable(Je){this._injector?(0,s.mal)(Je,{injector:this._injector}):setTimeout(Je)}}let Et=(()=>{class be{constructor(re,ze,mt){this._checker=re,this._ngZone=ze,this._injector=(0,s.WQX)(s.zZn),this._document=mt}create(re,ze=!1){return new At(re,this._checker,this._ngZone,this._document,ze,this._injector)}static#e=this.\u0275fac=function(ze){return new(ze||be)(s.KVO(zt),s.KVO(s.SKi),s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),St=(()=>{class be{get enabled(){return this.focusTrap?.enabled||!1}set enabled(re){this.focusTrap&&(this.focusTrap.enabled=re)}constructor(re,ze,mt){this._elementRef=re,this._focusTrapFactory=ze,this._previouslyFocusedElement=null,(0,s.WQX)(m.OD).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(re){const ze=re.autoCapture;ze&&!ze.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,m.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(ze){return new(ze||be)(s.rXU(s.aKT),s.rXU(Et),s.rXU(t.qQ))};static#t=this.\u0275dir=s.FsC({type:be,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",s.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",s.L39]},exportAs:["cdkTrapFocus"],standalone:!0,features:[s.GFd,s.OA$]})}return be})();function ie(be){return 0===be.buttons||0===be.detail}function Pe(be){const Je=be.touches&&be.touches[0]||be.changedTouches&&be.changedTouches[0];return!(!Je||-1!==Je.identifier||null!=Je.radiusX&&1!==Je.radiusX||null!=Je.radiusY&&1!==Je.radiusY)}const et=new s.nKC("cdk-input-modality-detector-options"),ht={ignoreKeys:[j.A$,j.W3,j.eg,j.Ge,j.FX]},cn=(0,m.BQ)({passive:!0,capture:!0});let Tn=(()=>{class be{get mostRecentModality(){return this._modality.value}constructor(re,ze,mt,Ke){this._platform=re,this._mostRecentTarget=null,this._modality=new K.t(null),this._lastTouchMs=0,this._onKeydown=xe=>{this._options?.ignoreKeys?.some(Re=>Re===xe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.Fb)(xe))},this._onMousedown=xe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ie(xe)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.Fb)(xe))},this._onTouchstart=xe=>{Pe(xe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.Fb)(xe))},this._options={...ht,...Ke},this.modalityDetected=this._modality.pipe((0,X.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,V.F)()),re.isBrowser&&ze.runOutsideAngular(()=>{mt.addEventListener("keydown",this._onKeydown,cn),mt.addEventListener("mousedown",this._onMousedown,cn),mt.addEventListener("touchstart",this._onTouchstart,cn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cn),document.removeEventListener("mousedown",this._onMousedown,cn),document.removeEventListener("touchstart",this._onTouchstart,cn))}static#e=this.\u0275fac=function(ze){return new(ze||be)(s.KVO(m.OD),s.KVO(s.SKi),s.KVO(t.qQ),s.KVO(et,8))};static#t=this.\u0275prov=s.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();var wn=function(be){return be[be.IMMEDIATE=0]="IMMEDIATE",be[be.EVENTUAL=1]="EVENTUAL",be}(wn||{});const Vt=new s.nKC("cdk-focus-monitor-default-options"),Ge=(0,m.BQ)({passive:!0,capture:!0});let ue=(()=>{class be{constructor(re,ze,mt,Ke,xe){this._ngZone=re,this._platform=ze,this._inputModalityDetector=mt,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 e.B,this._rootNodeFocusAndBlurListener=Re=>{for(let ce=(0,m.Fb)(Re);ce;ce=ce.parentElement)"focus"===Re.type?this._onFocus(Re,ce):this._onBlur(Re,ce)},this._document=Ke,this._detectionMode=xe?.detectionMode||wn.IMMEDIATE}monitor(re,ze=!1){const mt=(0,Ie.i8)(re);if(!this._platform.isBrowser||1!==mt.nodeType)return(0,L.of)();const Ke=(0,m.KT)(mt)||this._getDocument(),xe=this._elementInfo.get(mt);if(xe)return ze&&(xe.checkChildren=!0),xe.subject;const Re={checkChildren:ze,subject:new e.B,rootNode:Ke};return this._elementInfo.set(mt,Re),this._registerGlobalListeners(Re),Re.subject}stopMonitoring(re){const ze=(0,Ie.i8)(re),mt=this._elementInfo.get(ze);mt&&(mt.subject.complete(),this._setClasses(ze),this._elementInfo.delete(ze),this._removeGlobalListeners(mt))}focusVia(re,ze,mt){const Ke=(0,Ie.i8)(re);Ke===this._getDocument().activeElement?this._getClosestElementsInfo(Ke).forEach(([Re,B])=>this._originChanged(Re,ze,B)):(this._setOrigin(ze),"function"==typeof Ke.focus&&Ke.focus(mt))}ngOnDestroy(){this._elementInfo.forEach((re,ze)=>this.stopMonitoring(ze))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:re&&this._isLastInteractionFromInputLabel(re)?"mouse":"program"}_shouldBeAttributedToTouch(re){return this._detectionMode===wn.EVENTUAL||!!re?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(re,ze){re.classList.toggle("cdk-focused",!!ze),re.classList.toggle("cdk-touch-focused","touch"===ze),re.classList.toggle("cdk-keyboard-focused","keyboard"===ze),re.classList.toggle("cdk-mouse-focused","mouse"===ze),re.classList.toggle("cdk-program-focused","program"===ze)}_setOrigin(re,ze=!1){this._ngZone.runOutsideAngular(()=>{this._origin=re,this._originFromTouchInteraction="touch"===re&&ze,this._detectionMode===wn.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(re,ze){const mt=this._elementInfo.get(ze),Ke=(0,m.Fb)(re);!mt||!mt.checkChildren&&ze!==Ke||this._originChanged(ze,this._getFocusOrigin(Ke),mt)}_onBlur(re,ze){const mt=this._elementInfo.get(ze);!mt||mt.checkChildren&&re.relatedTarget instanceof Node&&ze.contains(re.relatedTarget)||(this._setClasses(ze),this._emitOrigin(mt,null))}_emitOrigin(re,ze){re.subject.observers.length&&this._ngZone.run(()=>re.subject.next(ze))}_registerGlobalListeners(re){if(!this._platform.isBrowser)return;const ze=re.rootNode,mt=this._rootNodeFocusListenerCount.get(ze)||0;mt||this._ngZone.runOutsideAngular(()=>{ze.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ze.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(ze,mt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,x.Q)(this._stopInputModalityDetector)).subscribe(Ke=>{this._setOrigin(Ke,!0)}))}_removeGlobalListeners(re){const ze=re.rootNode;if(this._rootNodeFocusListenerCount.has(ze)){const mt=this._rootNodeFocusListenerCount.get(ze);mt>1?this._rootNodeFocusListenerCount.set(ze,mt-1):(ze.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),ze.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(ze))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(re,ze,mt){this._setClasses(re,ze),this._emitOrigin(mt,ze),this._lastFocusOrigin=ze}_getClosestElementsInfo(re){const ze=[];return this._elementInfo.forEach((mt,Ke)=>{(Ke===re||mt.checkChildren&&Ke.contains(re))&&ze.push([Ke,mt])}),ze}_isLastInteractionFromInputLabel(re){const{_mostRecentTarget:ze,mostRecentModality:mt}=this._inputModalityDetector;if("mouse"!==mt||!ze||ze===re||"INPUT"!==re.nodeName&&"TEXTAREA"!==re.nodeName||re.disabled)return!1;const Ke=re.labels;if(Ke)for(let xe=0;xe{class be{constructor(re,ze){this._elementRef=re,this._focusMonitor=ze,this._focusOrigin=null,this.cdkFocusChange=new s.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const re=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(re,1===re.nodeType&&re.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ze=>{this._focusOrigin=ze,this.cdkFocusChange.emit(ze)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(ze){return new(ze||be)(s.rXU(s.aKT),s.rXU(ue))};static#t=this.\u0275dir=s.FsC({type:be,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return be})();var ee=function(be){return be[be.NONE=0]="NONE",be[be.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",be[be.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",be}(ee||{});const Xe="cdk-high-contrast-black-on-white",dt="cdk-high-contrast-white-on-black",at="cdk-high-contrast-active";let Ot=(()=>{class be{constructor(re,ze){this._platform=re,this._document=ze,this._breakpointSubscription=(0,s.WQX)(ve.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ee.NONE;const re=this._document.createElement("div");re.style.backgroundColor="rgb(1,2,3)",re.style.position="absolute",this._document.body.appendChild(re);const ze=this._document.defaultView||window,mt=ze&&ze.getComputedStyle?ze.getComputedStyle(re):null,Ke=(mt&&mt.backgroundColor||"").replace(/ /g,"");switch(re.remove(),Ke){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ee.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ee.BLACK_ON_WHITE}return ee.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const re=this._document.body.classList;re.remove(at,Xe,dt),this._hasCheckedHighContrastMode=!0;const ze=this.getHighContrastMode();ze===ee.BLACK_ON_WHITE?re.add(at,Xe):ze===ee.WHITE_ON_BLACK&&re.add(at,dt)}}static#e=this.\u0275fac=function(ze){return new(ze||be)(s.KVO(m.OD),s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),Qe=(()=>{class be{constructor(re){re._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ze){return new(ze||be)(s.KVO(Ot))};static#t=this.\u0275mod=s.$C({type:be});static#n=this.\u0275inj=s.G2t({imports:[pe]})}return be})()},8203:(Rt,De,a)=>{a.d(De,{dS:()=>L,jI:()=>A});var t=a(3953),s=a(177);const m=new t.nKC("cdk-dir-doc",{providedIn:"root",factory:function e(){return(0,t.WQX)(s.qQ)}}),M=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let L=(()=>{class I{constructor(F){this.value="ltr",this.change=new t.bkB,F&&(this.value=function K(I){const w=I?.toLowerCase()||"";return"auto"===w&&typeof navigator<"u"&&navigator?.language?M.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((F.body?F.body.dir:null)||(F.documentElement?F.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(X){return new(X||I)(t.KVO(m,8))};static#t=this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),A=(()=>{class I{static#e=this.\u0275fac=function(X){return new(X||I)};static#t=this.\u0275mod=t.$C({type:I});static#n=this.\u0275inj=t.G2t({})}return I})()},3801:(Rt,De,a)=>{a.d(De,{B0:()=>e});var t=a(177),s=a(3953);class m{constructor(A,I){this._document=I;const w=this._textarea=this._document.createElement("textarea"),F=w.style;F.position="fixed",F.top=F.opacity="0",F.left="-999em",w.setAttribute("aria-hidden","true"),w.value=A,w.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(w)}copy(){const A=this._textarea;let I=!1;try{if(A){const w=this._document.activeElement;A.select(),A.setSelectionRange(0,A.value.length),I=this._document.execCommand("copy"),w&&w.focus()}}catch{}return I}destroy(){const A=this._textarea;A&&(A.remove(),this._textarea=void 0)}}let e=(()=>{class j{constructor(I){this._document=I}copy(I){const w=this.beginCopy(I),F=w.copy();return w.destroy(),F}beginCopy(I){return new m(I,this._document)}static#e=this.\u0275fac=function(w){return new(w||j)(s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},4085:(Rt,De,a)=>{a.d(De,{FG:()=>M,OE:()=>m,a1:()=>K,he:()=>s,i8:()=>L});var t=a(3953);function s(A){return null!=A&&"false"!=`${A}`}function m(A,I=0){return function e(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):I}function M(A){return Array.isArray(A)?A:[A]}function K(A){return null==A?"":"string"==typeof A?A:`${A}px`}function L(A){return A instanceof t.aKT?A.nativeElement:A}},1391:(Rt,De,a)=>{a.d(De,{Fb:()=>ue,T1:()=>dt});var t=a(3953),s=a(177),m=a(946),e=a(851),M=a(4085),K=a(6860),L=a(1413),j=a(8359),A=a(605),I=a(536),w=a(1985),F=a(7786),X=a(4412),V=a(6977),x=a(6354),oe=a(6697),J=a(8141),Ee=a(5558),Oe=a(9172),pe=a(8203);function Ie(Re){const B=Re.cloneNode(!0),ce=B.querySelectorAll("[id]"),N=Re.nodeName.toLowerCase();B.removeAttribute("id");for(let ke=0;ke=N&&ce<=ke&&B>=ge&&B<=W}function E(Re,B,ce){Re.top+=B,Re.bottom=Re.top+Re.height,Re.left+=ce,Re.right=Re.left+Re.width}function S(Re,B,ce,N){const{top:ke,right:ge,bottom:W,left:H,width:me,height:qe}=Re,rt=me*B,Ft=qe*B;return N>ke-Ft&&NH-rt&&ce{this.positions.set(ce,{scrollPosition:{top:ce.scrollTop,left:ce.scrollLeft},clientRect:Z(ce)})})}handleScroll(B){const ce=(0,K.Fb)(B),N=this.positions.get(ce);if(!N)return null;const ke=N.scrollPosition;let ge,W;if(ce===this._document){const qe=this.getViewportScrollPosition();ge=qe.top,W=qe.left}else ge=ce.scrollTop,W=ce.scrollLeft;const H=ke.top-ge,me=ke.left-W;return this.positions.forEach((qe,rt)=>{qe.clientRect&&ce!==rt&&ce.contains(rt)&&E(qe.clientRect,H,me)}),ke.top=ge,ke.left=W,{top:H,left:me}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function U(Re,B){const ce=Re.rootNodes;if(1===ce.length&&ce[0].nodeType===B.ELEMENT_NODE)return ce[0];const N=B.createElement("div");return ce.forEach(ke=>N.appendChild(ke)),N}function se(Re,B,ce){for(let N in B)if(B.hasOwnProperty(N)){const ke=B[N];ke?Re.setProperty(N,ke,ce?.has(N)?"important":""):Re.removeProperty(N)}return Re}function Be(Re,B){const ce=B?"":"none";se(Re.style,{"touch-action":B?"":"none","-webkit-user-drag":B?"":"none","-webkit-tap-highlight-color":B?"":"transparent","user-select":ce,"-ms-user-select":ce,"-webkit-user-select":ce,"-moz-user-select":ce})}function Pt(Re,B,ce){se(Re.style,{position:B?"":"fixed",top:B?"":"0",opacity:B?"":"0",left:B?"":"-999em"},ce)}function gt(Re,B){return B&&"none"!=B?Re+" "+B:Re}function wt(Re,B){Re.style.width=`${B.width}px`,Re.style.height=`${B.height}px`,Re.style.transform=Le(B.left,B.top)}function Le(Re,B){return`translate3d(${Math.round(Re)}px, ${Math.round(B)}px, 0)`}function zt(Re){const B=Re.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Re)*B}function st(Re,B){return Re.getPropertyValue(B).split(",").map(N=>N.trim())}const Ct=new Set(["position"]);class It{get element(){return this._preview}constructor(B,ce,N,ke,ge,W,H,me,qe){this._document=B,this._rootElement=ce,this._direction=N,this._initialDomRect=ke,this._previewTemplate=ge,this._previewClass=W,this._pickupPositionOnPage=H,this._initialTransform=me,this._zIndex=qe}attach(B){this._preview=this._createPreview(),B.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(B){this._preview.style.transform=B}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(B){this._preview.classList.add(B)}getTransitionDuration(){return function xt(Re){const B=getComputedStyle(Re),ce=st(B,"transition-property"),N=ce.find(H=>"transform"===H||"all"===H);if(!N)return 0;const ke=ce.indexOf(N),ge=st(B,"transition-duration"),W=st(B,"transition-delay");return zt(ge[ke])+zt(W[ke])}(this._preview)}addEventListener(B,ce){this._preview.addEventListener(B,ce)}removeEventListener(B,ce){this._preview.removeEventListener(B,ce)}_createPreview(){const B=this._previewTemplate,ce=this._previewClass,N=B?B.template:null;let ke;if(N&&B){const ge=B.matchSize?this._initialDomRect:null,W=B.viewContainer.createEmbeddedView(N,B.context);W.detectChanges(),ke=U(W,this._document),this._previewEmbeddedView=W,B.matchSize?wt(ke,ge):ke.style.transform=Le(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else ke=Ie(this._rootElement),wt(ke,this._initialDomRect),this._initialTransform&&(ke.style.transform=this._initialTransform);return se(ke.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Ct),Be(ke,!1),ke.classList.add("cdk-drag-preview"),ke.setAttribute("popover","manual"),ke.setAttribute("dir",this._direction),ce&&(Array.isArray(ce)?ce.forEach(ge=>ke.classList.add(ge)):ke.classList.add(ce)),ke}}const Tt=(0,K.BQ)({passive:!0}),en=(0,K.BQ)({passive:!1}),Ut=(0,K.BQ)({passive:!1,capture:!0}),fn=new Set(["position"]);class $n{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(B){B!==this._disabled&&(this._disabled=B,this._toggleNativeDragInteractions(),this._handles.forEach(ce=>Be(ce,B)))}constructor(B,ce,N,ke,ge,W){this._config=ce,this._document=N,this._ngZone=ke,this._viewportRuler=ge,this._dragDropRegistry=W,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=(0,t.vPA)(!1),this._moveEvents=new L.B,this._pointerMoveSubscription=j.yU.EMPTY,this._pointerUpSubscription=j.yU.EMPTY,this._scrollSubscription=j.yU.EMPTY,this._resizeSubscription=j.yU.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 L.B,this.started=new L.B,this.released=new L.B,this.ended=new L.B,this.entered=new L.B,this.exited=new L.B,this.dropped=new L.B,this.moved=this._moveEvents,this._pointerDown=H=>{if(this.beforeStarted.next(),this._handles.length){const me=this._getTargetHandle(H);me&&!this._disabledHandles.has(me)&&!this.disabled&&this._initializeDragSequence(me,H)}else this.disabled||this._initializeDragSequence(this._rootElement,H)},this._pointerMove=H=>{const me=this._getPointerPositionOnPage(H);if(!this._hasStartedDragging()){if(Math.abs(me.x-this._pickupPositionOnPage.x)+Math.abs(me.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Cn=Date.now()>=this._dragStartTime+this._getDragStartDelay(H),Jn=this._dropContainer;if(!Cn)return void this._endDragSequence(H);(!Jn||!Jn.isDragging()&&!Jn.isReceiving())&&(H.cancelable&&H.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(H)))}return}H.cancelable&&H.preventDefault();const qe=this._getConstrainedPointerPosition(me);if(this._hasMoved=!0,this._lastKnownPointerPosition=me,this._updatePointerDirectionDelta(qe),this._dropContainer)this._updateActiveDropContainer(qe,me);else{const rt=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,Ft=this._activeTransform;Ft.x=qe.x-rt.x+this._passiveTransform.x,Ft.y=qe.y-rt.y+this._passiveTransform.y,this._applyRootElementTransform(Ft.x,Ft.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:qe,event:H,distance:this._getDragDistance(qe),delta:this._pointerDirectionDelta})})},this._pointerUp=H=>{this._endDragSequence(H)},this._nativeDragStart=H=>{if(this._handles.length){const me=this._getTargetHandle(H);me&&!this._disabledHandles.has(me)&&!this.disabled&&H.preventDefault()}else this.disabled||H.preventDefault()},this.withRootElement(B).withParent(ce.parentDragRef||null),this._parentPositions=new R(N),W.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(B){this._handles=B.map(N=>(0,M.i8)(N)),this._handles.forEach(N=>Be(N,this.disabled)),this._toggleNativeDragInteractions();const ce=new Set;return this._disabledHandles.forEach(N=>{this._handles.indexOf(N)>-1&&ce.add(N)}),this._disabledHandles=ce,this}withPreviewTemplate(B){return this._previewTemplate=B,this}withPlaceholderTemplate(B){return this._placeholderTemplate=B,this}withRootElement(B){const ce=(0,M.i8)(B);return ce!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ce.addEventListener("mousedown",this._pointerDown,en),ce.addEventListener("touchstart",this._pointerDown,Tt),ce.addEventListener("dragstart",this._nativeDragStart,en)}),this._initialTransform=void 0,this._rootElement=ce),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(B){return this._boundaryElement=B?(0,M.i8)(B):null,this._resizeSubscription.unsubscribe(),B&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(B){return this._parentDragRef=B,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),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(B){!this._disabledHandles.has(B)&&this._handles.indexOf(B)>-1&&(this._disabledHandles.add(B),Be(B,!0))}enableHandle(B){this._disabledHandles.has(B)&&(this._disabledHandles.delete(B),Be(B,this.disabled))}withDirection(B){return this._direction=B,this}_withDropContainer(B){this._dropContainer=B}getFreeDragPosition(){const B=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:B.x,y:B.y}}setFreeDragPosition(B){return this._activeTransform={x:0,y:0},this._passiveTransform.x=B.x,this._passiveTransform.y=B.y,this._dropContainer||this._applyRootElementTransform(B.x,B.y),this}withPreviewContainer(B){return this._previewContainer=B,this}_sortFromLastPointerPosition(){const B=this._lastKnownPointerPosition;B&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(B),B)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",At,Ut)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(B){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging()))if(this.released.next({source:this,event:B}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(B),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ce=this._getPointerPositionOnPage(B);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ce),dropPoint:ce,event:B})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(B){bt(B)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ce=this._getShadowRoot(),N=this._dropContainer;if(ce&&this._ngZone.runOutsideAngular(()=>{ce.addEventListener("selectstart",At,Ut)}),N){const ke=this._rootElement,ge=ke.parentNode,W=this._placeholder=this._createPlaceholderElement(),H=this._anchor=this._anchor||this._document.createComment("");ge.insertBefore(H,ke),this._initialTransform=ke.style.transform||"",this._preview=new It(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(ge,ce)),Pt(ke,!1,fn),this._document.body.appendChild(ge.replaceChild(W,ke)),this.started.next({source:this,event:B}),N.start(),this._initialContainer=N,this._initialIndex=N.getItemIndex(this)}else this.started.next({source:this,event:B}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(N?N.getScrollableParents():[])}_initializeDragSequence(B,ce){this._parentDragRef&&ce.stopPropagation();const N=this.isDragging(),ke=bt(ce),ge=!ke&&0!==ce.button,W=this._rootElement,H=(0,K.Fb)(ce),me=!ke&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),qe=ke?(0,e.w6)(ce):(0,e._G)(ce);if(H&&H.draggable&&"mousedown"===ce.type&&ce.preventDefault(),N||ge||me||qe)return;if(this._handles.length){const rn=W.style;this._rootElementTapHighlight=rn.webkitTapHighlightColor||"",rn.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=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(rn=>this._updateOnScroll(rn)),this._boundaryElement&&(this._boundaryRect=Z(this._boundaryElement));const rt=this._previewTemplate;this._pickupPositionInElement=rt&&rt.template&&!rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,B,ce);const Ft=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ce);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Ft.x,y:Ft.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ce)}_cleanupDragArtifacts(B){Pt(this._rootElement,!0,fn),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ce=this._dropContainer,N=ce.getItemIndex(this),ke=this._getPointerPositionOnPage(B),ge=this._getDragDistance(ke),W=ce._isOverContainer(ke.x,ke.y);this.ended.next({source:this,distance:ge,dropPoint:ke,event:B}),this.dropped.next({item:this,currentIndex:N,previousIndex:this._initialIndex,container:ce,previousContainer:this._initialContainer,isPointerOverContainer:W,distance:ge,dropPoint:ke,event:B}),ce.drop(this,N,this._initialIndex,this._initialContainer,W,ge,ke,B),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:B,y:ce},{x:N,y:ke}){let ge=this._initialContainer._getSiblingContainerFromPosition(this,B,ce);!ge&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(B,ce)&&(ge=this._initialContainer),ge&&ge!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ge,this._dropContainer.enter(this,B,ce,ge===this._initialContainer&&ge.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ge,currentIndex:ge.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(N,ke),this._dropContainer._sortItem(this,B,ce,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(B,ce):this._applyPreviewTransform(B-this._pickupPositionInElement.x,ce-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const B=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(B.left,B.top);const ce=this._preview.getTransitionDuration();return 0===ce?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(N=>{const ke=W=>{(!W||this._preview&&(0,K.Fb)(W)===this._preview.element&&"transform"===W.propertyName)&&(this._preview?.removeEventListener("transitionend",ke),N(),clearTimeout(ge))},ge=setTimeout(ke,1.5*ce);this._preview.addEventListener("transitionend",ke)}))}_createPlaceholderElement(){const B=this._placeholderTemplate,ce=B?B.template:null;let N;return ce?(this._placeholderRef=B.viewContainer.createEmbeddedView(ce,B.context),this._placeholderRef.detectChanges(),N=U(this._placeholderRef,this._document)):N=Ie(this._rootElement),N.style.pointerEvents="none",N.classList.add("cdk-drag-placeholder"),N}_getPointerPositionInElement(B,ce,N){const ke=ce===this._rootElement?null:ce,ge=ke?ke.getBoundingClientRect():B,W=bt(N)?N.targetTouches[0]:N,H=this._getViewportScrollPosition();return{x:ge.left-B.left+(W.pageX-ge.left-H.left),y:ge.top-B.top+(W.pageY-ge.top-H.top)}}_getPointerPositionOnPage(B){const ce=this._getViewportScrollPosition(),N=bt(B)?B.touches[0]||B.changedTouches[0]||{pageX:0,pageY:0}:B,ke=N.pageX-ce.left,ge=N.pageY-ce.top;if(this._ownerSVGElement){const W=this._ownerSVGElement.getScreenCTM();if(W){const H=this._ownerSVGElement.createSVGPoint();return H.x=ke,H.y=ge,H.matrixTransform(W.inverse())}}return{x:ke,y:ge}}_getConstrainedPointerPosition(B){const ce=this._dropContainer?this._dropContainer.lockAxis:null;let{x:N,y:ke}=this.constrainPosition?this.constrainPosition(B,this,this._initialDomRect,this._pickupPositionInElement):B;if("x"===this.lockAxis||"x"===ce?ke=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===ce)&&(N=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:ge,y:W}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,H=this._boundaryRect,{width:me,height:qe}=this._getPreviewRect(),rt=H.top+W,Ft=H.bottom-(qe-W);N=zn(N,H.left+ge,H.right-(me-ge)),ke=zn(ke,rt,Ft)}return{x:N,y:ke}}_updatePointerDirectionDelta(B){const{x:ce,y:N}=B,ke=this._pointerDirectionDelta,ge=this._pointerPositionAtLastDirectionChange,W=Math.abs(ce-ge.x),H=Math.abs(N-ge.y);return W>this._config.pointerDirectionChangeThreshold&&(ke.x=ce>ge.x?1:-1,ge.x=ce),H>this._config.pointerDirectionChangeThreshold&&(ke.y=N>ge.y?1:-1,ge.y=N),ke}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const B=this._handles.length>0||!this.isDragging();B!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=B,Be(this._rootElement,B))}_removeRootElementListeners(B){B.removeEventListener("mousedown",this._pointerDown,en),B.removeEventListener("touchstart",this._pointerDown,Tt),B.removeEventListener("dragstart",this._nativeDragStart,en)}_applyRootElementTransform(B,ce){const N=Le(B,ce),ke=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=ke.transform&&"none"!=ke.transform?ke.transform:""),ke.transform=gt(N,this._initialTransform)}_applyPreviewTransform(B,ce){const N=this._previewTemplate?.template?void 0:this._initialTransform,ke=Le(B,ce);this._preview.setTransform(gt(ke,N))}_getDragDistance(B){const ce=this._pickupPositionOnPage;return ce?{x:B.x-ce.x,y:B.y-ce.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:B,y:ce}=this._passiveTransform;if(0===B&&0===ce||this.isDragging()||!this._boundaryElement)return;const N=this._rootElement.getBoundingClientRect(),ke=this._boundaryElement.getBoundingClientRect();if(0===ke.width&&0===ke.height||0===N.width&&0===N.height)return;const ge=ke.left-N.left,W=N.right-ke.right,H=ke.top-N.top,me=N.bottom-ke.bottom;ke.width>N.width?(ge>0&&(B+=ge),W>0&&(B-=W)):B=0,ke.height>N.height?(H>0&&(ce+=H),me>0&&(ce-=me)):ce=0,(B!==this._passiveTransform.x||ce!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ce,x:B})}_getDragStartDelay(B){const ce=this.dragStartDelay;return"number"==typeof ce?ce:bt(B)?ce.touch:ce?ce.mouse:0}_updateOnScroll(B){const ce=this._parentPositions.handleScroll(B);if(ce){const N=(0,K.Fb)(B);this._boundaryRect&&N!==this._boundaryElement&&N.contains(this._boundaryElement)&&E(this._boundaryRect,ce.top,ce.left),this._pickupPositionOnPage.x+=ce.left,this._pickupPositionOnPage.y+=ce.top,this._dropContainer||(this._activeTransform.x-=ce.left,this._activeTransform.y-=ce.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,K.KT)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(B,ce){const N=this._previewContainer||"global";if("parent"===N)return B;if("global"===N){const ke=this._document;return ce||ke.fullscreenElement||ke.webkitFullscreenElement||ke.mozFullScreenElement||ke.msFullscreenElement||ke.body}return(0,M.i8)(N)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(B){return this._handles.find(ce=>B.target&&(B.target===ce||ce.contains(B.target)))}}function zn(Re,B,ce){return Math.max(B,Math.min(ce,Re))}function bt(Re){return"t"===Re.type[0]}function At(Re){Re.preventDefault()}function Et(Re,B,ce){const N=Ue(B,Re.length-1),ke=Ue(ce,Re.length-1);if(N===ke)return;const ge=Re[N],W=ke0)return null;const H="horizontal"===this.orientation,me=ge.findIndex(Gn=>Gn.drag===B),qe=ge[W],Ft=qe.clientRect,rn=me>W?1:-1,Cn=this._getItemOffsetPx(ge[me].clientRect,Ft,rn),Jn=this._getSiblingOffsetPx(me,ge,rn),jn=ge.slice();return Et(ge,me,W),ge.forEach((Gn,zi)=>{if(jn[zi]===Gn)return;const Oi=Gn.drag===B,po=Oi?Cn:Jn,Zi=Oi?B.getPlaceholderElement():Gn.drag.getRootElement();Gn.offset+=po,H?(Zi.style.transform=gt(`translate3d(${Math.round(Gn.offset)}px, 0, 0)`,Gn.initialTransform),E(Gn.clientRect,0,po)):(Zi.style.transform=gt(`translate3d(0, ${Math.round(Gn.offset)}px, 0)`,Gn.initialTransform),E(Gn.clientRect,po,0))}),this._previousSwap.overlaps=he(Ft,ce,N),this._previousSwap.drag=qe.drag,this._previousSwap.delta=H?ke.x:ke.y,{previousIndex:me,currentIndex:W}}enter(B,ce,N,ke){const ge=null==ke||ke<0?this._getItemIndexFromPointerPosition(B,ce,N):ke,W=this._activeDraggables,H=W.indexOf(B),me=B.getPlaceholderElement();let qe=W[ge];if(qe===B&&(qe=W[ge+1]),!qe&&(null==ge||-1===ge||ge-1&&W.splice(H,1),qe&&!this._dragDropRegistry.isDragging(qe)){const rt=qe.getRootElement();rt.parentElement.insertBefore(me,rt),W.splice(ge,0,B)}else this._element.appendChild(me),W.push(B);me.style.transform="",this._cacheItemPositions()}withItems(B){this._activeDraggables=B.slice(),this._cacheItemPositions()}withSortPredicate(B){this._sortPredicate=B}reset(){this._activeDraggables?.forEach(B=>{const ce=B.getRootElement();if(ce){const N=this._itemPositions.find(ke=>ke.drag===B)?.initialTransform;ce.style.transform=N||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(B){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(N=>N.drag===B)}updateOnScroll(B,ce){this._itemPositions.forEach(({clientRect:N})=>{E(N,B,ce)}),this._itemPositions.forEach(({drag:N})=>{this._dragDropRegistry.isDragging(N)&&N._sortFromLastPointerPosition()})}withElementContainer(B){this._element=B}_cacheItemPositions(){const B="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(ce=>{const N=ce.getVisibleElement();return{drag:ce,offset:0,initialTransform:N.style.transform||"",clientRect:Z(N)}}).sort((ce,N)=>B?ce.clientRect.left-N.clientRect.left:ce.clientRect.top-N.clientRect.top)}_getItemOffsetPx(B,ce,N){const ke="horizontal"===this.orientation;let ge=ke?ce.left-B.left:ce.top-B.top;return-1===N&&(ge+=ke?ce.width-B.width:ce.height-B.height),ge}_getSiblingOffsetPx(B,ce,N){const ke="horizontal"===this.orientation,ge=ce[B].clientRect,W=ce[B+-1*N];let H=ge[ke?"width":"height"]*N;if(W){const me=ke?"left":"top",qe=ke?"right":"bottom";-1===N?H-=W.clientRect[me]-ge[qe]:H+=ge[me]-W.clientRect[qe]}return H}_shouldEnterAsFirstChild(B,ce){if(!this._activeDraggables.length)return!1;const N=this._itemPositions,ke="horizontal"===this.orientation;if(N[0].drag!==this._activeDraggables[0]){const W=N[N.length-1].clientRect;return ke?B>=W.right:ce>=W.bottom}{const W=N[0].clientRect;return ke?B<=W.left:ce<=W.top}}_getItemIndexFromPointerPosition(B,ce,N,ke){const ge="horizontal"===this.orientation,W=this._itemPositions.findIndex(({drag:H,clientRect:me})=>H!==B&&((!ke||H!==this._previousSwap.drag||!this._previousSwap.overlaps||(ge?ke.x:ke.y)!==this._previousSwap.delta)&&(ge?ce>=Math.floor(me.left)&&ce=Math.floor(me.top)&&Nme?rt.after(qe):rt.before(qe),Et(this._activeItems,me,ge);const Ft=this._getRootNode().elementFromPoint(ce,N);return W.deltaX=ke.x,W.deltaY=ke.y,W.drag=H,W.overlaps=rt===Ft||rt.contains(Ft),{previousIndex:me,currentIndex:ge}}enter(B,ce,N,ke){let ge=null==ke||ke<0?this._getItemIndexFromPointerPosition(B,ce,N):ke;-1===ge&&(ge=this._getClosestItemIndexToPointer(B,ce,N));const W=this._activeItems[ge],H=this._activeItems.indexOf(B);H>-1&&this._activeItems.splice(H,1),W&&!this._dragDropRegistry.isDragging(W)?(this._activeItems.splice(ge,0,B),W.getRootElement().before(B.getPlaceholderElement())):(this._activeItems.push(B),this._element.appendChild(B.getPlaceholderElement()))}withItems(B){this._activeItems=B.slice()}withSortPredicate(B){this._sortPredicate=B}reset(){const B=this._element,ce=this._previousSwap;for(let N=this._relatedNodes.length-1;N>-1;N--){const[ke,ge]=this._relatedNodes[N];ke.parentNode===B&&ke.nextSibling!==ge&&(null===ge?B.appendChild(ke):ge.parentNode===B&&B.insertBefore(ke,ge))}this._relatedNodes=[],this._activeItems=[],ce.drag=null,ce.deltaX=ce.deltaY=0,ce.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(B){return this._activeItems.indexOf(B)}updateOnScroll(){this._activeItems.forEach(B=>{this._dragDropRegistry.isDragging(B)&&B._sortFromLastPointerPosition()})}withElementContainer(B){B!==this._element&&(this._element=B,this._rootNode=void 0)}_getItemIndexFromPointerPosition(B,ce,N){const ke=this._getRootNode().elementFromPoint(Math.floor(ce),Math.floor(N)),ge=ke?this._activeItems.findIndex(W=>{const H=W.getRootElement();return ke===H||H.contains(ke)}):-1;return-1!==ge&&this._sortPredicate(ge,B)?ge:-1}_getRootNode(){return this._rootNode||(this._rootNode=(0,K.KT)(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(B,ce,N){if(0===this._activeItems.length)return-1;if(1===this._activeItems.length)return 0;let ke=1/0,ge=-1;for(let W=0;W!0,this.sortPredicate=()=>!0,this.beforeStarted=new L.B,this.entered=new L.B,this.exited=new L.B,this.dropped=new L.B,this.sorted=new L.B,this.receivingStarted=new L.B,this.receivingStopped=new L.B,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=j.yU.EMPTY,this._verticalScrollDirection=Pe.NONE,this._horizontalScrollDirection=et.NONE,this._stopScrollTimers=new L.B,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),(0,A.Y)(0,I.X).pipe((0,V.Q)(this._stopScrollTimers)).subscribe(()=>{const H=this._scrollNode,me=this.autoScrollStep;this._verticalScrollDirection===Pe.UP?H.scrollBy(0,-me):this._verticalScrollDirection===Pe.DOWN&&H.scrollBy(0,me),this._horizontalScrollDirection===et.LEFT?H.scrollBy(-me,0):this._horizontalScrollDirection===et.RIGHT&&H.scrollBy(me,0)})};const W=this.element=(0,M.i8)(B);this._document=N,this.withOrientation("vertical").withElementContainer(W),ce.registerDropContainer(this),this._parentPositions=new R(N)}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(B,ce,N,ke){this._draggingStarted(),null==ke&&this.sortingDisabled&&(ke=this._draggables.indexOf(B)),this._sortStrategy.enter(B,ce,N,ke),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:B,container:this,currentIndex:this.getItemIndex(B)})}exit(B){this._reset(),this.exited.next({item:B,container:this})}drop(B,ce,N,ke,ge,W,H,me={}){this._reset(),this.dropped.next({item:B,currentIndex:ce,previousIndex:N,container:this,previousContainer:ke,isPointerOverContainer:ge,distance:W,dropPoint:H,event:me})}withItems(B){const ce=this._draggables;return this._draggables=B,B.forEach(N=>N._withDropContainer(this)),this.isDragging()&&(ce.filter(ke=>ke.isDragging()).every(ke=>-1===B.indexOf(ke))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(B){return this._direction=B,this._sortStrategy instanceof Fe&&(this._sortStrategy.direction=B),this}connectedTo(B){return this._siblings=B.slice(),this}withOrientation(B){if("mixed"===B)this._sortStrategy=new te(this._document,this._dragDropRegistry);else{const ce=new Fe(this._dragDropRegistry);ce.direction=this._direction,ce.orientation=B,this._sortStrategy=ce}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((ce,N)=>this.sortPredicate(ce,N,this)),this}withScrollableParents(B){const ce=this._container;return this._scrollableElements=-1===B.indexOf(ce)?[ce,...B]:B.slice(),this}withElementContainer(B){if(B===this._container)return this;(0,M.i8)(this.element);const N=this._scrollableElements.indexOf(this._container),ke=this._scrollableElements.indexOf(B);return N>-1&&this._scrollableElements.splice(N,1),ke>-1&&this._scrollableElements.splice(ke,1),this._sortStrategy&&this._sortStrategy.withElementContainer(B),this._cachedShadowRoot=null,this._scrollableElements.unshift(B),this._container=B,this}getScrollableParents(){return this._scrollableElements}getItemIndex(B){return this._isDragging?this._sortStrategy.getItemIndex(B):this._draggables.indexOf(B)}isReceiving(){return this._activeSiblings.size>0}_sortItem(B,ce,N,ke){if(this.sortingDisabled||!this._domRect||!S(this._domRect,.05,ce,N))return;const ge=this._sortStrategy.sort(B,ce,N,ke);ge&&this.sorted.next({previousIndex:ge.previousIndex,currentIndex:ge.currentIndex,container:this,item:B})}_startScrollingIfNecessary(B,ce){if(this.autoScrollDisabled)return;let N,ke=Pe.NONE,ge=et.NONE;if(this._parentPositions.positions.forEach((W,H)=>{H===this._document||!W.clientRect||N||S(W.clientRect,.05,B,ce)&&([ke,ge]=function Tn(Re,B,ce,N,ke){const ge=Kt(B,ke),W=cn(B,N);let H=Pe.NONE,me=et.NONE;if(ge){const qe=Re.scrollTop;ge===Pe.UP?qe>0&&(H=Pe.UP):Re.scrollHeight-qe>Re.clientHeight&&(H=Pe.DOWN)}if(W){const qe=Re.scrollLeft;"rtl"===ce?W===et.RIGHT?qe<0&&(me=et.RIGHT):Re.scrollWidth+qe>Re.clientWidth&&(me=et.LEFT):W===et.LEFT?qe>0&&(me=et.LEFT):Re.scrollWidth-qe>Re.clientWidth&&(me=et.RIGHT)}return[H,me]}(H,W.clientRect,this._direction,B,ce),(ke||ge)&&(N=H))}),!ke&&!ge){const{width:W,height:H}=this._viewportRuler.getViewportSize(),me={width:W,height:H,top:0,right:W,bottom:H,left:0};ke=Kt(me,ce),ge=cn(me,B),N=window}N&&(ke!==this._verticalScrollDirection||ge!==this._horizontalScrollDirection||N!==this._scrollNode)&&(this._verticalScrollDirection=ke,this._horizontalScrollDirection=ge,this._scrollNode=N,(ke||ge)&&N?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const B=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=B.msScrollSnapType||B.scrollSnapType||"",B.scrollSnapType=B.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;const B=this._container.style;B.scrollSnapType=B.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(ce=>ce._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(B,ce){return null!=this._domRect&&he(this._domRect,B,ce)}_getSiblingContainerFromPosition(B,ce,N){return this._siblings.find(ke=>ke._canReceive(B,ce,N))}_canReceive(B,ce,N){if(!this._domRect||!he(this._domRect,ce,N)||!this.enterPredicate(B,this))return!1;const ke=this._getShadowRoot().elementFromPoint(ce,N);return!!ke&&(ke===this._container||this._container.contains(ke))}_startReceiving(B,ce){const N=this._activeSiblings;!N.has(B)&&ce.every(ke=>this.enterPredicate(ke,this)||this._draggables.indexOf(ke)>-1)&&(N.add(B),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:B,receiver:this,items:ce}))}_stopReceiving(B){this._activeSiblings.delete(B),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:B,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(B=>{if(this.isDragging()){const ce=this._parentPositions.handleScroll(B);ce&&this._sortStrategy.updateOnScroll(ce.top,ce.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const B=(0,K.KT)(this._container);this._cachedShadowRoot=B||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const B=this._sortStrategy.getActiveItemsSnapshot().filter(ce=>ce.isDragging());this._siblings.forEach(ce=>ce._startReceiving(this,B))}}function Kt(Re,B){const{top:ce,bottom:N,height:ke}=Re,ge=.05*ke;return B>=ce-ge&&B<=ce+ge?Pe.UP:B>=N-ge&&B<=N+ge?Pe.DOWN:Pe.NONE}function cn(Re,B){const{left:ce,right:N,width:ke}=Re,ge=.05*ke;return B>=ce-ge&&B<=ce+ge?et.LEFT:B>=N-ge&&B<=N+ge?et.RIGHT:et.NONE}const Wn=(0,K.BQ)({passive:!1,capture:!0}),kn=new Set;let In=(()=>{class Re{static#e=this.\u0275fac=function(N){return new(N||Re)};static#t=this.\u0275cmp=t.VBU({type:Re,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[t.aNF],decls:0,vars:0,template:function(N,ke){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}return Re})(),Un=(()=>{class Re{constructor(ce,N){this._ngZone=ce,this._appRef=(0,t.WQX)(t.o8S),this._environmentInjector=(0,t.WQX)(t.uvJ),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=(0,t.vPA)([]),this._globalListeners=new Map,this._draggingPredicate=ke=>ke.isDragging(),this.pointerMove=new L.B,this.pointerUp=new L.B,this.scroll=new L.B,this._preventDefaultWhileDragging=ke=>{this._activeDragInstances().length>0&&ke.preventDefault()},this._persistentTouchmoveListener=ke=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&ke.preventDefault(),this.pointerMove.next(ke))},this._document=N}registerDropContainer(ce){this._dropInstances.has(ce)||this._dropInstances.add(ce)}registerDragItem(ce){this._dragInstances.add(ce),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Wn)})}removeDropContainer(ce){this._dropInstances.delete(ce)}removeDragItem(ce){this._dragInstances.delete(ce),this.stopDragging(ce),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Wn)}startDragging(ce,N){if(!(this._activeDragInstances().indexOf(ce)>-1)&&(this._loadResets(),this._activeDragInstances.update(ke=>[...ke,ce]),1===this._activeDragInstances().length)){const ke=N.type.startsWith("touch");this._globalListeners.set(ke?"touchend":"mouseup",{handler:ge=>this.pointerUp.next(ge),options:!0}).set("scroll",{handler:ge=>this.scroll.next(ge),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Wn}),ke||this._globalListeners.set("mousemove",{handler:ge=>this.pointerMove.next(ge),options:Wn}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ge,W)=>{this._document.addEventListener(W,ge.handler,ge.options)})})}}stopDragging(ce){this._activeDragInstances.update(N=>{const ke=N.indexOf(ce);return ke>-1?(N.splice(ke,1),[...N]):N}),0===this._activeDragInstances().length&&this._clearGlobalListeners()}isDragging(ce){return this._activeDragInstances().indexOf(ce)>-1}scrolled(ce){const N=[this.scroll];return ce&&ce!==this._document&&N.push(new w.c(ke=>this._ngZone.runOutsideAngular(()=>{const W=H=>{this._activeDragInstances().length&&ke.next(H)};return ce.addEventListener("scroll",W,!0),()=>{ce.removeEventListener("scroll",W,!0)}}))),(0,F.h)(...N)}ngOnDestroy(){this._dragInstances.forEach(ce=>this.removeDragItem(ce)),this._dropInstances.forEach(ce=>this.removeDropContainer(ce)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ce,N)=>{this._document.removeEventListener(N,ce.handler,ce.options)}),this._globalListeners.clear()}_loadResets(){if(!kn.has(this._appRef)){kn.add(this._appRef);const ce=(0,t.a0P)(In,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{kn.delete(this._appRef),0===kn.size&&ce.destroy()})}}static#e=this.\u0275fac=function(N){return new(N||Re)(t.KVO(t.SKi),t.KVO(s.qQ))};static#t=this.\u0275prov=t.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();const dn={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qt=(()=>{class Re{constructor(ce,N,ke,ge){this._document=ce,this._ngZone=N,this._viewportRuler=ke,this._dragDropRegistry=ge}createDrag(ce,N=dn){return new $n(ce,N,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ce){return new ht(ce,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(N){return new(N||Re)(t.KVO(s.qQ),t.KVO(t.SKi),t.KVO(m.Xj),t.KVO(Un))};static#t=this.\u0275prov=t.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();const wn=new t.nKC("CDK_DRAG_PARENT"),Ge=new t.nKC("CdkDragHandle");let ue=(()=>{class Re{get disabled(){return this._disabled}set disabled(ce){this._disabled=ce,this._stateChanges.next(this)}constructor(ce,N){this.element=ce,this._parentDrag=N,this._stateChanges=new L.B,this._disabled=!1,N?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static#e=this.\u0275fac=function(N){return new(N||Re)(t.rXU(t.aKT),t.rXU(wn,12))};static#t=this.\u0275dir=t.FsC({type:Re,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",t.L39]},standalone:!0,features:[t.Jv_([{provide:Ge,useExisting:Re}]),t.GFd]})}return Re})();const q=new t.nKC("CDK_DRAG_CONFIG"),Xe=new t.nKC("CdkDropList");let dt=(()=>{class Re{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ce){this._disabled=ce,this._dragRef.disabled=this._disabled}constructor(ce,N,ke,ge,W,H,me,qe,rt,Ft,rn){this.element=ce,this.dropContainer=N,this._ngZone=ge,this._viewContainerRef=W,this._dir=me,this._changeDetectorRef=rt,this._selfHandle=Ft,this._parentDrag=rn,this._destroyed=new L.B,this._handles=new X.t([]),this.started=new t.bkB,this.released=new t.bkB,this.ended=new t.bkB,this.entered=new t.bkB,this.exited=new t.bkB,this.dropped=new t.bkB,this.moved=new w.c(Cn=>{const Jn=this._dragRef.moved.pipe((0,x.T)(jn=>({source:this,pointerPosition:jn.pointerPosition,event:jn.event,delta:jn.delta,distance:jn.distance}))).subscribe(Cn);return()=>{Jn.unsubscribe()}}),this._injector=(0,t.WQX)(t.zZn),this._dragRef=qe.createDrag(ce,{dragStartThreshold:H&&null!=H.dragStartThreshold?H.dragStartThreshold:5,pointerDirectionChangeThreshold:H&&null!=H.pointerDirectionChangeThreshold?H.pointerDirectionChangeThreshold:5,zIndex:H?.zIndex}),this._dragRef.data=this,Re._dragInstances.push(this),H&&this._assignDefaults(H),N&&(this._dragRef._withDropContainer(N._dropListRef),N.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(ce){this._dragRef.setFreeDragPosition(ce)}ngAfterViewInit(){(0,t.mal)(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(ce){const N=ce.rootElementSelector,ke=ce.freeDragPosition;N&&!N.firstChange&&this._updateRootElement(),ke&&!ke.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ce=Re._dragInstances.indexOf(this);ce>-1&&Re._dragInstances.splice(ce,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(ce){const N=this._handles.getValue();N.push(ce),this._handles.next(N)}_removeHandle(ce){const N=this._handles.getValue(),ke=N.indexOf(ce);ke>-1&&(N.splice(ke,1),this._handles.next(N))}_setPreviewTemplate(ce){this._previewTemplate=ce}_resetPreviewTemplate(ce){ce===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(ce){this._placeholderTemplate=ce}_resetPlaceholderTemplate(ce){ce===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const ce=this.element.nativeElement;let N=ce;this.rootElementSelector&&(N=void 0!==ce.closest?ce.closest(this.rootElementSelector):ce.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(N||ce)}_getBoundaryElement(){const ce=this.boundaryElement;return ce?"string"==typeof ce?this.element.nativeElement.closest(ce):(0,M.i8)(ce):null}_syncInputs(ce){ce.beforeStarted.subscribe(()=>{if(!ce.isDragging()){const N=this._dir,ke=this.dragStartDelay,ge=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,W=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ce.disabled=this.disabled,ce.lockAxis=this.lockAxis,ce.dragStartDelay="object"==typeof ke&&ke?ke:(0,M.OE)(ke),ce.constrainPosition=this.constrainPosition,ce.previewClass=this.previewClass,ce.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ge).withPreviewTemplate(W).withPreviewContainer(this.previewContainer||"global"),N&&ce.withDirection(N.value)}}),ce.beforeStarted.pipe((0,oe.s)(1)).subscribe(()=>{if(this._parentDrag)return void ce.withParent(this._parentDrag._dragRef);let N=this.element.nativeElement.parentElement;for(;N;){if(N.classList.contains("cdk-drag")){ce.withParent(Re._dragInstances.find(ke=>ke.element.nativeElement===N)?._dragRef||null);break}N=N.parentElement}})}_handleEvents(ce){ce.started.subscribe(N=>{this.started.emit({source:this,event:N.event}),this._changeDetectorRef.markForCheck()}),ce.released.subscribe(N=>{this.released.emit({source:this,event:N.event})}),ce.ended.subscribe(N=>{this.ended.emit({source:this,distance:N.distance,dropPoint:N.dropPoint,event:N.event}),this._changeDetectorRef.markForCheck()}),ce.entered.subscribe(N=>{this.entered.emit({container:N.container.data,item:this,currentIndex:N.currentIndex})}),ce.exited.subscribe(N=>{this.exited.emit({container:N.container.data,item:this})}),ce.dropped.subscribe(N=>{this.dropped.emit({previousIndex:N.previousIndex,currentIndex:N.currentIndex,previousContainer:N.previousContainer.data,container:N.container.data,isPointerOverContainer:N.isPointerOverContainer,item:this,distance:N.distance,dropPoint:N.dropPoint,event:N.event})})}_assignDefaults(ce){const{lockAxis:N,dragStartDelay:ke,constrainPosition:ge,previewClass:W,boundaryElement:H,draggingDisabled:me,rootElementSelector:qe,previewContainer:rt}=ce;this.disabled=me??!1,this.dragStartDelay=ke||0,N&&(this.lockAxis=N),ge&&(this.constrainPosition=ge),W&&(this.previewClass=W),H&&(this.boundaryElement=H),qe&&(this.rootElementSelector=qe),rt&&(this.previewContainer=rt)}_setupHandlesListener(){this._handles.pipe((0,J.M)(ce=>{const N=ce.map(ke=>ke.element);this._selfHandle&&this.rootElementSelector&&N.push(this.element),this._dragRef.withHandles(N)}),(0,Ee.n)(ce=>(0,F.h)(...ce.map(N=>N._stateChanges.pipe((0,Oe.Z)(N))))),(0,V.Q)(this._destroyed)).subscribe(ce=>{const N=this._dragRef,ke=ce.element.nativeElement;ce.disabled?N.disableHandle(ke):N.enableHandle(ke)})}static#t=this.\u0275fac=function(N){return new(N||Re)(t.rXU(t.aKT),t.rXU(Xe,12),t.rXU(s.qQ),t.rXU(t.SKi),t.rXU(t.c1b),t.rXU(q,8),t.rXU(pe.dS,8),t.rXU(qt),t.rXU(t.gRc),t.rXU(Ge,10),t.rXU(wn,12))};static#n=this.\u0275dir=t.FsC({type:Re,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(N,ke){2&N&&t.AVh("cdk-drag-disabled",ke.disabled)("cdk-drag-dragging",ke._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",t.L39],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t.Jv_([{provide:wn,useExisting:Re}]),t.GFd,t.OA$]})}return Re})()},7336:(Rt,De,a)=>{a.d(De,{A:()=>xt,A$:()=>j,FX:()=>K,Fm:()=>M,G_:()=>s,Ge:()=>Tn,Kp:()=>x,LE:()=>Oe,UQ:()=>J,W3:()=>L,Z:()=>cn,_f:()=>w,bn:()=>Pt,dB:()=>V,eg:()=>hn,f2:()=>z,i7:()=>Ee,n6:()=>pe,rp:()=>Hn,t6:()=>F,w_:()=>X,wn:()=>m,yZ:()=>oe});const s=8,m=9,M=13,K=16,L=17,j=18,w=27,F=32,X=33,V=34,x=35,oe=36,J=37,Ee=38,Oe=39,pe=40,z=48,Pt=57,xt=65,cn=90,Tn=91,hn=224;function Hn(En,...Xn){return Xn.length?Xn.some(ci=>En[ci]):En.altKey||En.shiftKey||En.ctrlKey||En.metaKey}},9327:(Rt,De,a)=>{a.d(De,{DY:()=>J,QP:()=>pe});var t=a(3953),s=a(4085),m=a(1413),e=a(4572),M=a(8793),K=a(1985),L=a(6697),j=a(5245),A=a(152),I=a(6354),w=a(9172),F=a(6977),X=a(6860);const x=new Set;let oe,J=(()=>{class fe{constructor(z,Z){this._platform=z,this._nonce=Z,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Oe}matchMedia(z){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ee(fe,Y){if(!x.has(fe))try{oe||(oe=document.createElement("style"),Y&&oe.setAttribute("nonce",Y),oe.setAttribute("type","text/css"),document.head.appendChild(oe)),oe.sheet&&(oe.sheet.insertRule(`@media ${fe} {body{ }}`,0),x.add(fe))}catch(z){console.error(z)}}(z,this._nonce),this._matchMedia(z)}static#e=this.\u0275fac=function(Z){return new(Z||fe)(t.KVO(X.OD),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})();function Oe(fe){return{matches:"all"===fe||""===fe,media:fe,addListener:()=>{},removeListener:()=>{}}}let pe=(()=>{class fe{constructor(z,Z){this._mediaMatcher=z,this._zone=Z,this._queries=new Map,this._destroySubject=new m.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(z){return Ie((0,s.FG)(z)).some(he=>this._registerQuery(he).mql.matches)}observe(z){const he=Ie((0,s.FG)(z)).map(S=>this._registerQuery(S).observable);let E=(0,e.z)(he);return E=(0,M.x)(E.pipe((0,L.s)(1)),E.pipe((0,j.i)(1),(0,A.B)(0))),E.pipe((0,I.T)(S=>{const R={matches:!1,breakpoints:{}};return S.forEach(({matches:U,query:se})=>{R.matches=R.matches||U,R.breakpoints[se]=U}),R}))}_registerQuery(z){if(this._queries.has(z))return this._queries.get(z);const Z=this._mediaMatcher.matchMedia(z),E={observable:new K.c(S=>{const R=U=>this._zone.run(()=>S.next(U));return Z.addListener(R),()=>{Z.removeListener(R)}}).pipe((0,w.Z)(Z),(0,I.T)(({matches:S})=>({query:z,matches:S})),(0,F.Q)(this._destroySubject)),mql:Z};return this._queries.set(z,E),E}static#e=this.\u0275fac=function(Z){return new(Z||fe)(t.KVO(J),t.KVO(t.SKi))};static#t=this.\u0275prov=t.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})();function Ie(fe){return fe.map(Y=>Y.split(",")).reduce((Y,z)=>Y.concat(z)).map(Y=>Y.trim())}},7987:(Rt,De,a)=>{a.d(De,{$Q:()=>Et,WB:()=>St,hJ:()=>zn,rR:()=>Y,uH:()=>z,yY:()=>gt,z_:()=>Fe});var t=a(946),s=a(177),m=a(3953),e=a(4085),M=a(6860),K=a(5964),L=a(6977),j=a(7048),A=a(8203),I=a(6939),w=a(1413),F=a(8359),X=a(7786),V=a(7336);const x=(0,M.CZ)();class oe{constructor(ie,Pe){this._viewportRuler=ie,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Pe}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,e.a1)(-this._previousScrollPosition.left),ie.style.top=(0,e.a1)(-this._previousScrollPosition.top),ie.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ie=this._document.documentElement,et=ie.style,ht=this._document.body.style,Kt=et.scrollBehavior||"",cn=ht.scrollBehavior||"";this._isEnabled=!1,et.left=this._previousHTMLStyles.left,et.top=this._previousHTMLStyles.top,ie.classList.remove("cdk-global-scrollblock"),x&&(et.scrollBehavior=ht.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),x&&(et.scrollBehavior=Kt,ht.scrollBehavior=cn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Pe=this._document.body,et=this._viewportRuler.getViewportSize();return Pe.scrollHeight>et.height||Pe.scrollWidth>et.width}}class Ee{constructor(ie,Pe,et,ht){this._scrollDispatcher=ie,this._ngZone=Pe,this._viewportRuler=et,this._config=ht,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,K.p)(Pe=>!Pe||!this._overlayRef.overlayElement.contains(Pe.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ie.subscribe(()=>{const Pe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Pe-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 Oe{enable(){}disable(){}attach(){}}function pe(_e,ie){return ie.some(Pe=>_e.bottomPe.bottom||_e.rightPe.right)}function Ie(_e,ie){return ie.some(Pe=>_e.topPe.bottom||_e.leftPe.right)}class ve{constructor(ie,Pe,et,ht){this._scrollDispatcher=ie,this._viewportRuler=Pe,this._ngZone=et,this._config=ht,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 Pe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:et,height:ht}=this._viewportRuler.getViewportSize();pe(Pe,[{width:et,height:ht,bottom:ht,right:et,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let fe=(()=>{class _e{constructor(Pe,et,ht,Kt){this._scrollDispatcher=Pe,this._viewportRuler=et,this._ngZone=ht,this.noop=()=>new Oe,this.close=cn=>new Ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,cn),this.block=()=>new oe(this._viewportRuler,this._document),this.reposition=cn=>new ve(this._scrollDispatcher,this._viewportRuler,this._ngZone,cn),this._document=Kt}static#e=this.\u0275fac=function(et){return new(et||_e)(m.KVO(t.R),m.KVO(t.Xj),m.KVO(m.SKi),m.KVO(s.qQ))};static#t=this.\u0275prov=m.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();class Y{constructor(ie){if(this.scrollStrategy=new Oe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ie){const Pe=Object.keys(ie);for(const et of Pe)void 0!==ie[et]&&(this[et]=ie[et])}}}class z{constructor(ie,Pe,et,ht,Kt){this.offsetX=et,this.offsetY=ht,this.panelClass=Kt,this.originX=ie.originX,this.originY=ie.originY,this.overlayX=Pe.overlayX,this.overlayY=Pe.overlayY}}class he{constructor(ie,Pe){this.connectionPair=ie,this.scrollableViewProperties=Pe}}let R=(()=>{class _e{constructor(Pe){this._attachedOverlays=[],this._document=Pe}ngOnDestroy(){this.detach()}add(Pe){this.remove(Pe),this._attachedOverlays.push(Pe)}remove(Pe){const et=this._attachedOverlays.indexOf(Pe);et>-1&&this._attachedOverlays.splice(et,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(et){return new(et||_e)(m.KVO(s.qQ))};static#t=this.\u0275prov=m.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),U=(()=>{class _e extends R{constructor(Pe,et){super(Pe),this._ngZone=et,this._keydownListener=ht=>{const Kt=this._attachedOverlays;for(let cn=Kt.length-1;cn>-1;cn--)if(Kt[cn]._keydownEvents.observers.length>0){const Tn=Kt[cn]._keydownEvents;this._ngZone?this._ngZone.run(()=>Tn.next(ht)):Tn.next(ht);break}}}add(Pe){super.add(Pe),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)}static#e=this.\u0275fac=function(et){return new(et||_e)(m.KVO(s.qQ),m.KVO(m.SKi,8))};static#t=this.\u0275prov=m.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),se=(()=>{class _e extends R{constructor(Pe,et,ht){super(Pe),this._platform=et,this._ngZone=ht,this._cursorStyleIsSet=!1,this._pointerDownListener=Kt=>{this._pointerDownEventTarget=(0,M.Fb)(Kt)},this._clickListener=Kt=>{const cn=(0,M.Fb)(Kt),Tn="click"===Kt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:cn;this._pointerDownEventTarget=null;const Wn=this._attachedOverlays.slice();for(let kn=Wn.length-1;kn>-1;kn--){const In=Wn[kn];if(In._outsidePointerEvents.observers.length<1||!In.hasAttached())continue;if(Be(In.overlayElement,cn)||Be(In.overlayElement,Tn))break;const Un=In._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Un.next(Kt)):Un.next(Kt)}}}add(Pe){if(super.add(Pe),!this._isAttached){const et=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(et)):this._addEventListeners(et),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=et.style.cursor,et.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Pe=this._document.body;Pe.removeEventListener("pointerdown",this._pointerDownListener,!0),Pe.removeEventListener("click",this._clickListener,!0),Pe.removeEventListener("auxclick",this._clickListener,!0),Pe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Pe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Pe){Pe.addEventListener("pointerdown",this._pointerDownListener,!0),Pe.addEventListener("click",this._clickListener,!0),Pe.addEventListener("auxclick",this._clickListener,!0),Pe.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(et){return new(et||_e)(m.KVO(s.qQ),m.KVO(M.OD),m.KVO(m.SKi,8))};static#t=this.\u0275prov=m.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function Be(_e,ie){const Pe=typeof ShadowRoot<"u"&&ShadowRoot;let et=ie;for(;et;){if(et===_e)return!0;et=Pe&&et instanceof ShadowRoot?et.host:et.parentNode}return!1}let Pt=(()=>{class _e{constructor(Pe,et){this._platform=et,this._document=Pe}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Pe="cdk-overlay-container";if(this._platform.isBrowser||(0,M.v8)()){const ht=this._document.querySelectorAll(`.${Pe}[platform="server"], .${Pe}[platform="test"]`);for(let Kt=0;Ktthis._backdropClick.next(dn),this._backdropTransitionendHandler=dn=>{this._disposeBackdrop(dn.target)},this._keydownEvents=new w.B,this._outsidePointerEvents=new w.B,this._renders=new w.B,ht.scrollStrategy&&(this._scrollStrategy=ht.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ht.positionStrategy,this._afterRenderRef=(0,m.O8t)(()=>(0,m.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}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 Pe=this._portalOutlet.attach(ie);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),(0,m.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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 Pe?.onDestroy&&Pe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Pe}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._detachContentWhenEmpty(),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(),this._afterRenderRef.destroy(),this._renders.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,e.a1)(this._config.width),ie.height=(0,e.a1)(this._config.height),ie.minWidth=(0,e.a1)(this._config.minWidth),ie.minHeight=(0,e.a1)(this._config.minHeight),ie.maxWidth=(0,e.a1)(this._config.maxWidth),ie.maxHeight=(0,e.a1)(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,Pe,et){const ht=(0,e.FG)(Pe||[]).filter(Kt=>!!Kt);ht.length&&(et?ie.classList.add(...ht):ie.classList.remove(...ht))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const ie=this._renders.pipe((0,L.Q)((0,X.h)(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 wt="cdk-overlay-connected-position-bounding-box",Le=/([A-Za-z%]+)$/;class zt{get positions(){return this._preferredPositions}constructor(ie,Pe,et,ht,Kt){this._viewportRuler=Pe,this._document=et,this._platform=ht,this._overlayContainer=Kt,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 w.B,this._resizeSubscription=F.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ie)}attach(ie){this._validatePositions(),ie.hostElement.classList.add(wt),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,Pe=this._overlayRect,et=this._viewportRect,ht=this._containerRect,Kt=[];let cn;for(let Tn of this._preferredPositions){let Wn=this._getOriginPoint(ie,ht,Tn),kn=this._getOverlayPoint(Wn,Pe,Tn),In=this._getOverlayFit(kn,Pe,et,Tn);if(In.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Tn,Wn);this._canFitWithFlexibleDimensions(In,kn,et)?Kt.push({position:Tn,origin:Wn,overlayRect:Pe,boundingBoxRect:this._calculateBoundingBoxRect(Wn,Tn)}):(!cn||cn.overlayFit.visibleAreaWn&&(Wn=In,Tn=kn)}return this._isPushed=!1,void this._applyPosition(Tn.position,Tn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(cn.position,cn.originPoint);this._applyPosition(cn.position,cn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&xt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wt),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 Pe=this._getOriginPoint(this._originRect,this._containerRect,ie);this._applyPosition(ie,Pe)}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,Pe,et){let ht,Kt;if("center"==et.originX)ht=ie.left+ie.width/2;else{const cn=this._isRtl()?ie.right:ie.left,Tn=this._isRtl()?ie.left:ie.right;ht="start"==et.originX?cn:Tn}return Pe.left<0&&(ht-=Pe.left),Kt="center"==et.originY?ie.top+ie.height/2:"top"==et.originY?ie.top:ie.bottom,Pe.top<0&&(Kt-=Pe.top),{x:ht,y:Kt}}_getOverlayPoint(ie,Pe,et){let ht,Kt;return ht="center"==et.overlayX?-Pe.width/2:"start"===et.overlayX?this._isRtl()?-Pe.width:0:this._isRtl()?0:-Pe.width,Kt="center"==et.overlayY?-Pe.height/2:"top"==et.overlayY?0:-Pe.height,{x:ie.x+ht,y:ie.y+Kt}}_getOverlayFit(ie,Pe,et,ht){const Kt=Ct(Pe);let{x:cn,y:Tn}=ie,Wn=this._getOffset(ht,"x"),kn=this._getOffset(ht,"y");Wn&&(cn+=Wn),kn&&(Tn+=kn);let dn=0-Tn,qt=Tn+Kt.height-et.height,wn=this._subtractOverflows(Kt.width,0-cn,cn+Kt.width-et.width),Vt=this._subtractOverflows(Kt.height,dn,qt),Ge=wn*Vt;return{visibleArea:Ge,isCompletelyWithinViewport:Kt.width*Kt.height===Ge,fitsInViewportVertically:Vt===Kt.height,fitsInViewportHorizontally:wn==Kt.width}}_canFitWithFlexibleDimensions(ie,Pe,et){if(this._hasFlexibleDimensions){const ht=et.bottom-Pe.y,Kt=et.right-Pe.x,cn=st(this._overlayRef.getConfig().minHeight),Tn=st(this._overlayRef.getConfig().minWidth);return(ie.fitsInViewportVertically||null!=cn&&cn<=ht)&&(ie.fitsInViewportHorizontally||null!=Tn&&Tn<=Kt)}return!1}_pushOverlayOnScreen(ie,Pe,et){if(this._previousPushAmount&&this._positionLocked)return{x:ie.x+this._previousPushAmount.x,y:ie.y+this._previousPushAmount.y};const ht=Ct(Pe),Kt=this._viewportRect,cn=Math.max(ie.x+ht.width-Kt.width,0),Tn=Math.max(ie.y+ht.height-Kt.height,0),Wn=Math.max(Kt.top-et.top-ie.y,0),kn=Math.max(Kt.left-et.left-ie.x,0);let In=0,Un=0;return In=ht.width<=Kt.width?kn||-cn:ie.xwn&&!this._isInitialRender&&!this._growAfterOpen&&(cn=ie.y-wn/2)}if("end"===Pe.overlayX&&!ht||"start"===Pe.overlayX&&ht)dn=et.width-ie.x+2*this._viewportMargin,In=ie.x-this._viewportMargin;else if("start"===Pe.overlayX&&!ht||"end"===Pe.overlayX&&ht)Un=ie.x,In=et.right-ie.x;else{const qt=Math.min(et.right-ie.x+et.left,ie.x),wn=this._lastBoundingBoxSize.width;In=2*qt,Un=ie.x-qt,In>wn&&!this._isInitialRender&&!this._growAfterOpen&&(Un=ie.x-wn/2)}return{top:cn,left:Un,bottom:Tn,right:dn,width:In,height:Kt}}_setBoundingBoxStyles(ie,Pe){const et=this._calculateBoundingBoxRect(ie,Pe);!this._isInitialRender&&!this._growAfterOpen&&(et.height=Math.min(et.height,this._lastBoundingBoxSize.height),et.width=Math.min(et.width,this._lastBoundingBoxSize.width));const ht={};if(this._hasExactPosition())ht.top=ht.left="0",ht.bottom=ht.right=ht.maxHeight=ht.maxWidth="",ht.width=ht.height="100%";else{const Kt=this._overlayRef.getConfig().maxHeight,cn=this._overlayRef.getConfig().maxWidth;ht.height=(0,e.a1)(et.height),ht.top=(0,e.a1)(et.top),ht.bottom=(0,e.a1)(et.bottom),ht.width=(0,e.a1)(et.width),ht.left=(0,e.a1)(et.left),ht.right=(0,e.a1)(et.right),ht.alignItems="center"===Pe.overlayX?"center":"end"===Pe.overlayX?"flex-end":"flex-start",ht.justifyContent="center"===Pe.overlayY?"center":"bottom"===Pe.overlayY?"flex-end":"flex-start",Kt&&(ht.maxHeight=(0,e.a1)(Kt)),cn&&(ht.maxWidth=(0,e.a1)(cn))}this._lastBoundingBoxSize=et,xt(this._boundingBox.style,ht)}_resetBoundingBoxStyles(){xt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ie,Pe){const et={},ht=this._hasExactPosition(),Kt=this._hasFlexibleDimensions,cn=this._overlayRef.getConfig();if(ht){const In=this._viewportRuler.getViewportScrollPosition();xt(et,this._getExactOverlayY(Pe,ie,In)),xt(et,this._getExactOverlayX(Pe,ie,In))}else et.position="static";let Tn="",Wn=this._getOffset(Pe,"x"),kn=this._getOffset(Pe,"y");Wn&&(Tn+=`translateX(${Wn}px) `),kn&&(Tn+=`translateY(${kn}px)`),et.transform=Tn.trim(),cn.maxHeight&&(ht?et.maxHeight=(0,e.a1)(cn.maxHeight):Kt&&(et.maxHeight="")),cn.maxWidth&&(ht?et.maxWidth=(0,e.a1)(cn.maxWidth):Kt&&(et.maxWidth="")),xt(this._pane.style,et)}_getExactOverlayY(ie,Pe,et){let ht={top:"",bottom:""},Kt=this._getOverlayPoint(Pe,this._overlayRect,ie);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,et)),"bottom"===ie.overlayY?ht.bottom=this._document.documentElement.clientHeight-(Kt.y+this._overlayRect.height)+"px":ht.top=(0,e.a1)(Kt.y),ht}_getExactOverlayX(ie,Pe,et){let cn,ht={left:"",right:""},Kt=this._getOverlayPoint(Pe,this._overlayRect,ie);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,et)),cn=this._isRtl()?"end"===ie.overlayX?"left":"right":"end"===ie.overlayX?"right":"left","right"===cn?ht.right=this._document.documentElement.clientWidth-(Kt.x+this._overlayRect.width)+"px":ht.left=(0,e.a1)(Kt.x),ht}_getScrollVisibility(){const ie=this._getOriginRect(),Pe=this._pane.getBoundingClientRect(),et=this._scrollables.map(ht=>ht.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ie(ie,et),isOriginOutsideView:pe(ie,et),isOverlayClipped:Ie(Pe,et),isOverlayOutsideView:pe(Pe,et)}}_subtractOverflows(ie,...Pe){return Pe.reduce((et,ht)=>et-Math.max(ht,0),ie)}_getNarrowedViewportRect(){const ie=this._document.documentElement.clientWidth,Pe=this._document.documentElement.clientHeight,et=this._viewportRuler.getViewportScrollPosition();return{top:et.top+this._viewportMargin,left:et.left+this._viewportMargin,right:et.left+ie-this._viewportMargin,bottom:et.top+Pe-this._viewportMargin,width:ie-2*this._viewportMargin,height:Pe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ie,Pe){return"x"===Pe?null==ie.offsetX?this._offsetX:ie.offsetX:null==ie.offsetY?this._offsetY:ie.offsetY}_validatePositions(){}_addPanelClasses(ie){this._pane&&(0,e.FG)(ie).forEach(Pe=>{""!==Pe&&-1===this._appliedPanelClasses.indexOf(Pe)&&(this._appliedPanelClasses.push(Pe),this._pane.classList.add(Pe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ie=>{this._pane.classList.remove(ie)}),this._appliedPanelClasses=[])}_getOriginRect(){const ie=this._origin;if(ie instanceof m.aKT)return ie.nativeElement.getBoundingClientRect();if(ie instanceof Element)return ie.getBoundingClientRect();const Pe=ie.width||0,et=ie.height||0;return{top:ie.y,bottom:ie.y+et,left:ie.x,right:ie.x+Pe,height:et,width:Pe}}}function xt(_e,ie){for(let Pe in ie)ie.hasOwnProperty(Pe)&&(_e[Pe]=ie[Pe]);return _e}function st(_e){if("number"!=typeof _e&&null!=_e){const[ie,Pe]=_e.split(Le);return Pe&&"px"!==Pe?null:parseFloat(ie)}return _e||null}function Ct(_e){return{top:Math.floor(_e.top),right:Math.floor(_e.right),bottom:Math.floor(_e.bottom),left:Math.floor(_e.left),width:Math.floor(_e.width),height:Math.floor(_e.height)}}const Ut="cdk-global-overlay-wrapper";class Lt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ie){const Pe=ie.getConfig();this._overlayRef=ie,this._width&&!Pe.width&&ie.updateSize({width:this._width}),this._height&&!Pe.height&&ie.updateSize({height:this._height}),ie.hostElement.classList.add(Ut),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,Pe=this._overlayRef.hostElement.style,et=this._overlayRef.getConfig(),{width:ht,height:Kt,maxWidth:cn,maxHeight:Tn}=et,Wn=!("100%"!==ht&&"100vw"!==ht||cn&&"100%"!==cn&&"100vw"!==cn),kn=!("100%"!==Kt&&"100vh"!==Kt||Tn&&"100%"!==Tn&&"100vh"!==Tn),In=this._xPosition,Un=this._xOffset,dn="rtl"===this._overlayRef.getConfig().direction;let qt="",wn="",Vt="";Wn?Vt="flex-start":"center"===In?(Vt="center",dn?wn=Un:qt=Un):dn?"left"===In||"end"===In?(Vt="flex-end",qt=Un):("right"===In||"start"===In)&&(Vt="flex-start",wn=Un):"left"===In||"start"===In?(Vt="flex-start",qt=Un):("right"===In||"end"===In)&&(Vt="flex-end",wn=Un),ie.position=this._cssPosition,ie.marginLeft=Wn?"0":qt,ie.marginTop=kn?"0":this._topOffset,ie.marginBottom=this._bottomOffset,ie.marginRight=Wn?"0":wn,Pe.justifyContent=Vt,Pe.alignItems=kn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ie=this._overlayRef.overlayElement.style,Pe=this._overlayRef.hostElement,et=Pe.style;Pe.classList.remove(Ut),et.justifyContent=et.alignItems=ie.marginTop=ie.marginBottom=ie.marginLeft=ie.marginRight=ie.position="",this._overlayRef=null,this._isDisposed=!0}}let fn=(()=>{class _e{constructor(Pe,et,ht,Kt){this._viewportRuler=Pe,this._document=et,this._platform=ht,this._overlayContainer=Kt}global(){return new Lt}flexibleConnectedTo(Pe){return new zt(Pe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(et){return new(et||_e)(m.KVO(t.Xj),m.KVO(s.qQ),m.KVO(M.OD),m.KVO(Pt))};static#t=this.\u0275prov=m.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),$n=0,zn=(()=>{class _e{constructor(Pe,et,ht,Kt,cn,Tn,Wn,kn,In,Un,dn,qt){this.scrollStrategies=Pe,this._overlayContainer=et,this._componentFactoryResolver=ht,this._positionBuilder=Kt,this._keyboardDispatcher=cn,this._injector=Tn,this._ngZone=Wn,this._document=kn,this._directionality=In,this._location=Un,this._outsideClickDispatcher=dn,this._animationsModuleType=qt}create(Pe){const et=this._createHostElement(),ht=this._createPaneElement(et),Kt=this._createPortalOutlet(ht),cn=new Y(Pe);return cn.direction=cn.direction||this._directionality.value,new gt(Kt,et,ht,cn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(m.uvJ))}position(){return this._positionBuilder}_createPaneElement(Pe){const et=this._document.createElement("div");return et.id="cdk-overlay-"+$n++,et.classList.add("cdk-overlay-pane"),Pe.appendChild(et),et}_createHostElement(){const Pe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Pe),Pe}_createPortalOutlet(Pe){return this._appRef||(this._appRef=this._injector.get(m.o8S)),new I.aI(Pe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(et){return new(et||_e)(m.KVO(fe),m.KVO(Pt),m.KVO(m.OM3),m.KVO(fn),m.KVO(U),m.KVO(m.zZn),m.KVO(m.SKi),m.KVO(s.qQ),m.KVO(A.dS),m.KVO(s.aZ),m.KVO(se),m.KVO(m.bc$,8))};static#t=this.\u0275prov=m.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();const bt=[{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"}],At=new m.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const _e=(0,m.WQX)(zn);return()=>_e.scrollStrategies.reposition()}});let Et=(()=>{class _e{constructor(Pe){this.elementRef=Pe}static#e=this.\u0275fac=function(et){return new(et||_e)(m.rXU(m.aKT))};static#t=this.\u0275dir=m.FsC({type:_e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return _e})(),St=(()=>{class _e{get offsetX(){return this._offsetX}set offsetX(Pe){this._offsetX=Pe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Pe){this._offsetY=Pe,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Pe){this._disposeOnNavigation=Pe}constructor(Pe,et,ht,Kt,cn){this._overlay=Pe,this._dir=cn,this._backdropSubscription=F.yU.EMPTY,this._attachSubscription=F.yU.EMPTY,this._detachSubscription=F.yU.EMPTY,this._positionSubscription=F.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,m.WQX)(m.SKi),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new m.bkB,this.positionChange=new m.bkB,this.attach=new m.bkB,this.detach=new m.bkB,this.overlayKeydown=new m.bkB,this.overlayOutsideClick=new m.bkB,this._templatePortal=new I.VA(et,ht),this._scrollStrategyFactory=Kt,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(Pe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Pe.origin&&this.open&&this._position.apply()),Pe.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bt);const Pe=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Pe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Pe.detachments().subscribe(()=>this.detach.emit()),Pe.keydownEvents().subscribe(et=>{this.overlayKeydown.next(et),et.keyCode===V._f&&!this.disableClose&&!(0,V.rp)(et)&&(et.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(et=>{const ht=this._getOriginElement(),Kt=(0,M.Fb)(et);(!ht||ht!==Kt&&!ht.contains(Kt))&&this.overlayOutsideClick.next(et)})}_buildConfig(){const Pe=this._position=this.positionStrategy||this._createPositionStrategy(),et=new Y({direction:this._dir,positionStrategy:Pe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(et.width=this.width),(this.height||0===this.height)&&(et.height=this.height),(this.minWidth||0===this.minWidth)&&(et.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(et.minHeight=this.minHeight),this.backdropClass&&(et.backdropClass=this.backdropClass),this.panelClass&&(et.panelClass=this.panelClass),et}_updatePositionStrategy(Pe){const et=this.positions.map(ht=>({originX:ht.originX,originY:ht.originY,overlayX:ht.overlayX,overlayY:ht.overlayY,offsetX:ht.offsetX||this.offsetX,offsetY:ht.offsetY||this.offsetY,panelClass:ht.panelClass||void 0}));return Pe.setOrigin(this._getOrigin()).withPositions(et).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Pe=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(Pe),Pe}_getOrigin(){return this.origin instanceof Et?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Et?this.origin.elementRef.nativeElement:this.origin instanceof m.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(Pe=>{this.backdropClick.emit(Pe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,j.v)(()=>this.positionChange.observers.length>0)).subscribe(Pe=>{this._ngZone.run(()=>this.positionChange.emit(Pe)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(et){return new(et||_e)(m.rXU(zn),m.rXU(m.C4Q),m.rXU(m.c1b),m.rXU(At),m.rXU(A.dS,8))};static#t=this.\u0275dir=m.FsC({type:_e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",m.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",m.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",m.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",m.L39],push:[2,"cdkConnectedOverlayPush","push",m.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",m.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[m.GFd,m.OA$]})}return _e})();const Ue={provide:At,deps:[zn],useFactory:function Wt(_e){return()=>_e.scrollStrategies.reposition()}};let Fe=(()=>{class _e{static#e=this.\u0275fac=function(et){return new(et||_e)};static#t=this.\u0275mod=m.$C({type:_e});static#n=this.\u0275inj=m.G2t({providers:[zn,Ue],imports:[A.jI,I.jc,t.E9,t.E9]})}return _e})()},6860:(Rt,De,a)=>{a.d(De,{BD:()=>oe,BQ:()=>w,CZ:()=>x,Fb:()=>Ie,IK:()=>M,KT:()=>Oe,OD:()=>e,r5:()=>F,v8:()=>ve,vc:()=>pe});var t=a(3953),s=a(177);let m;try{m=typeof Intl<"u"&&Intl.v8BreakIterator}catch{m=!1}let A,e=(()=>{class fe{constructor(z){this._platformId=z,this.isBrowser=this._platformId?(0,s.UE)(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&&!m)&&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}static#e=this.\u0275fac=function(Z){return new(Z||fe)(t.KVO(t.Agw))};static#t=this.\u0275prov=t.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})(),M=(()=>{class fe{static#e=this.\u0275fac=function(Z){return new(Z||fe)};static#t=this.\u0275mod=t.$C({type:fe});static#n=this.\u0275inj=t.G2t({})}return fe})();function w(fe){return function I(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?fe:!!fe.capture}var F=function(fe){return fe[fe.NORMAL=0]="NORMAL",fe[fe.NEGATED=1]="NEGATED",fe[fe.INVERTED=2]="INVERTED",fe}(F||{});let X,V,J;function x(){if(null==V){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return V=!1,V;if("scrollBehavior"in document.documentElement.style)V=!0;else{const fe=Element.prototype.scrollTo;V=!!fe&&!/\{\s*\[native code\]\s*\}/.test(fe.toString())}}return V}function oe(){if("object"!=typeof document||!document)return F.NORMAL;if(null==X){const fe=document.createElement("div"),Y=fe.style;fe.dir="rtl",Y.width="1px",Y.overflow="auto",Y.visibility="hidden",Y.pointerEvents="none",Y.position="absolute";const z=document.createElement("div"),Z=z.style;Z.width="2px",Z.height="1px",fe.appendChild(z),document.body.appendChild(fe),X=F.NORMAL,0===fe.scrollLeft&&(fe.scrollLeft=1,X=0===fe.scrollLeft?F.NEGATED:F.INVERTED),fe.remove()}return X}function Oe(fe){if(function Ee(){if(null==J){const fe=typeof document<"u"?document.head:null;J=!(!fe||!fe.createShadowRoot&&!fe.attachShadow)}return J}()){const Y=fe.getRootNode?fe.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Y instanceof ShadowRoot)return Y}return null}function pe(){let fe=typeof document<"u"&&document?document.activeElement:null;for(;fe&&fe.shadowRoot;){const Y=fe.shadowRoot.activeElement;if(Y===fe)break;fe=Y}return fe}function Ie(fe){return fe.composedPath?fe.composedPath()[0]:fe.target}function ve(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(Rt,De,a)=>{a.d(De,{A8:()=>I,I3:()=>Oe,VA:()=>w,aI:()=>x,jc:()=>Ie,lb:()=>X});var t=a(3953),s=a(177);class A{attach(Y){return this._attachedHost=Y,Y.attach(this)}detach(){let Y=this._attachedHost;null!=Y&&(this._attachedHost=null,Y.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Y){this._attachedHost=Y}}class I extends A{constructor(Y,z,Z,he,E){super(),this.component=Y,this.viewContainerRef=z,this.injector=Z,this.componentFactoryResolver=he,this.projectableNodes=E}}class w extends A{constructor(Y,z,Z,he){super(),this.templateRef=Y,this.viewContainerRef=z,this.context=Z,this.injector=he}get origin(){return this.templateRef.elementRef}attach(Y,z=this.context){return this.context=z,super.attach(Y)}detach(){return this.context=void 0,super.detach()}}class F extends A{constructor(Y){super(),this.element=Y instanceof t.aKT?Y.nativeElement:Y}}class X{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Y){return Y instanceof I?(this._attachedPortal=Y,this.attachComponentPortal(Y)):Y instanceof w?(this._attachedPortal=Y,this.attachTemplatePortal(Y)):this.attachDomPortal&&Y instanceof F?(this._attachedPortal=Y,this.attachDomPortal(Y)):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(Y){this._disposeFn=Y}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class x extends X{constructor(Y,z,Z,he,E){super(),this.outletElement=Y,this._componentFactoryResolver=z,this._appRef=Z,this._defaultInjector=he,this.attachDomPortal=S=>{const R=S.element,U=this._document.createComment("dom-portal");R.parentNode.insertBefore(U,R),this.outletElement.appendChild(R),this._attachedPortal=S,super.setDisposeFn(()=>{U.parentNode&&U.parentNode.replaceChild(R,U)})},this._document=E}attachComponentPortal(Y){const Z=(Y.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Y.component);let he;return Y.viewContainerRef?(he=Y.viewContainerRef.createComponent(Z,Y.viewContainerRef.length,Y.injector||Y.viewContainerRef.injector,Y.projectableNodes||void 0),this.setDisposeFn(()=>he.destroy())):(he=Z.create(Y.injector||this._defaultInjector||t.zZn.NULL),this._appRef.attachView(he.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(he.hostView),he.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(he)),this._attachedPortal=Y,he}attachTemplatePortal(Y){let z=Y.viewContainerRef,Z=z.createEmbeddedView(Y.templateRef,Y.context,{injector:Y.injector});return Z.rootNodes.forEach(he=>this.outletElement.appendChild(he)),Z.detectChanges(),this.setDisposeFn(()=>{let he=z.indexOf(Z);-1!==he&&z.remove(he)}),this._attachedPortal=Y,Z}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Y){return Y.hostView.rootNodes[0]}}let Oe=(()=>{class fe extends X{constructor(z,Z,he){super(),this._componentFactoryResolver=z,this._viewContainerRef=Z,this._isInitialized=!1,this.attached=new t.bkB,this.attachDomPortal=E=>{const S=E.element,R=this._document.createComment("dom-portal");E.setAttachedHost(this),S.parentNode.insertBefore(R,S),this._getRootNode().appendChild(S),this._attachedPortal=E,super.setDisposeFn(()=>{R.parentNode&&R.parentNode.replaceChild(S,R)})},this._document=he}get portal(){return this._attachedPortal}set portal(z){this.hasAttached()&&!z&&!this._isInitialized||(this.hasAttached()&&super.detach(),z&&super.attach(z),this._attachedPortal=z||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(z){z.setAttachedHost(this);const Z=null!=z.viewContainerRef?z.viewContainerRef:this._viewContainerRef,E=(z.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(z.component),S=Z.createComponent(E,Z.length,z.injector||Z.injector,z.projectableNodes||void 0);return Z!==this._viewContainerRef&&this._getRootNode().appendChild(S.hostView.rootNodes[0]),super.setDisposeFn(()=>S.destroy()),this._attachedPortal=z,this._attachedRef=S,this.attached.emit(S),S}attachTemplatePortal(z){z.setAttachedHost(this);const Z=this._viewContainerRef.createEmbeddedView(z.templateRef,z.context,{injector:z.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=z,this._attachedRef=Z,this.attached.emit(Z),Z}_getRootNode(){const z=this._viewContainerRef.element.nativeElement;return z.nodeType===z.ELEMENT_NODE?z:z.parentNode}static#e=this.\u0275fac=function(Z){return new(Z||fe)(t.rXU(t.OM3),t.rXU(t.c1b),t.rXU(s.qQ))};static#t=this.\u0275dir=t.FsC({type:fe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[t.Vt3]})}return fe})(),Ie=(()=>{class fe{static#e=this.\u0275fac=function(Z){return new(Z||fe)};static#t=this.\u0275mod=t.$C({type:fe});static#n=this.\u0275inj=t.G2t({})}return fe})()},946:(Rt,De,a)=>{a.d(De,{yg:()=>zt,E$:()=>bt,d6:()=>$n,R:()=>st,E9:()=>Wt,Xj:()=>Tt});var t=a(4085),s=a(3953),m=a(1413),e=a(7673),M=a(1985),K=a(3726),L=a(536),j=a(5007),A=a(8359),I=a(4402),w=a(3294),F=a(3798),X=a(5964),V=a(6977),x=a(9172),oe=a(3946),J=a(5558),Ee=a(4668),Oe=a(6860),pe=a(177),Ie=a(8203),ve=a(17);class fe{}class z extends fe{constructor(Fe){super(),this._data=Fe}connect(){return(0,I.A)(this._data)?this._data:(0,e.of)(this._data)}disconnect(){}}var Z=function(Ue){return Ue[Ue.REPLACED=0]="REPLACED",Ue[Ue.INSERTED=1]="INSERTED",Ue[Ue.MOVED=2]="MOVED",Ue[Ue.REMOVED=3]="REMOVED",Ue}(Z||{});const he=new s.nKC("_ViewRepeater");class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Fe,te,_e,ie,Pe){Fe.forEachOperation((et,ht,Kt)=>{let cn,Tn;null==et.previousIndex?(cn=this._insertView(()=>_e(et,ht,Kt),Kt,te,ie(et)),Tn=cn?Z.INSERTED:Z.REPLACED):null==Kt?(this._detachAndCacheView(ht,te),Tn=Z.REMOVED):(cn=this._moveView(ht,Kt,te,ie(et)),Tn=Z.MOVED),Pe&&Pe({context:cn?.context,operation:Tn,record:et})})}detach(){for(const Fe of this._viewCache)Fe.destroy();this._viewCache=[]}_insertView(Fe,te,_e,ie){const Pe=this._insertViewFromCache(te,_e);if(Pe)return void(Pe.context.$implicit=ie);const et=Fe();return _e.createEmbeddedView(et.templateRef,et.context,et.index)}_detachAndCacheView(Fe,te){const _e=te.detach(Fe);this._maybeCacheView(_e,te)}_moveView(Fe,te,_e,ie){const Pe=_e.get(Fe);return _e.move(Pe,te),Pe.context.$implicit=ie,Pe}_maybeCacheView(Fe,te){if(this._viewCache.length0?Pe/this._itemSize:0;if(te.end>ie){const Kt=Math.ceil(_e/this._itemSize),cn=Math.max(0,Math.min(et,ie-Kt));et!=cn&&(et=cn,Pe=cn*this._itemSize,te.start=Math.floor(et)),te.end=Math.max(0,Math.min(ie,te.start+Kt))}const ht=Pe-te.start*this._itemSize;if(ht0&&(te.end=Math.min(ie,te.end+cn),te.start=Math.max(0,Math.floor(et-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(te),this._viewport.setRenderedContentOffset(this._itemSize*te.start),this._scrolledIndexChange.next(Math.floor(et))}}function Le(Ue){return Ue._scrollStrategy}let zt=(()=>{class Ue{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new wt(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(te){this._itemSize=(0,t.OE)(te)}get minBufferPx(){return this._minBufferPx}set minBufferPx(te){this._minBufferPx=(0,t.OE)(te)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(te){this._maxBufferPx=(0,t.OE)(te)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275dir=s.FsC({type:Ue,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[s.Jv_([{provide:gt,useFactory:Le,deps:[(0,s.Rfq)(()=>Ue)]}]),s.OA$]})}return Ue})(),st=(()=>{class Ue{constructor(te,_e,ie){this._ngZone=te,this._platform=_e,this._scrolled=new m.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ie}register(te){this.scrollContainers.has(te)||this.scrollContainers.set(te,te.elementScrolled().subscribe(()=>this._scrolled.next(te)))}deregister(te){const _e=this.scrollContainers.get(te);_e&&(_e.unsubscribe(),this.scrollContainers.delete(te))}scrolled(te=20){return this._platform.isBrowser?new M.c(_e=>{this._globalSubscription||this._addGlobalListener();const ie=te>0?this._scrolled.pipe((0,F.Z)(te)).subscribe(_e):this._scrolled.subscribe(_e);return this._scrolledCount++,()=>{ie.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((te,_e)=>this.deregister(_e)),this._scrolled.complete()}ancestorScrolled(te,_e){const ie=this.getAncestorScrollContainers(te);return this.scrolled(_e).pipe((0,X.p)(Pe=>!Pe||ie.indexOf(Pe)>-1))}getAncestorScrollContainers(te){const _e=[];return this.scrollContainers.forEach((ie,Pe)=>{this._scrollableContainsElement(Pe,te)&&_e.push(Pe)}),_e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(te,_e){let ie=(0,t.i8)(_e),Pe=te.getElementRef().nativeElement;do{if(ie==Pe)return!0}while(ie=ie.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const te=this._getWindow();return(0,K.R)(te.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(s.KVO(s.SKi),s.KVO(Oe.OD),s.KVO(pe.qQ,8))};static#t=this.\u0275prov=s.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}return Ue})(),Ct=(()=>{class Ue{constructor(te,_e,ie,Pe){this.elementRef=te,this.scrollDispatcher=_e,this.ngZone=ie,this.dir=Pe,this._destroyed=new m.B,this._elementScrolled=new M.c(et=>this.ngZone.runOutsideAngular(()=>(0,K.R)(this.elementRef.nativeElement,"scroll").pipe((0,V.Q)(this._destroyed)).subscribe(et)))}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(te){const _e=this.elementRef.nativeElement,ie=this.dir&&"rtl"==this.dir.value;null==te.left&&(te.left=ie?te.end:te.start),null==te.right&&(te.right=ie?te.start:te.end),null!=te.bottom&&(te.top=_e.scrollHeight-_e.clientHeight-te.bottom),ie&&(0,Oe.BD)()!=Oe.r5.NORMAL?(null!=te.left&&(te.right=_e.scrollWidth-_e.clientWidth-te.left),(0,Oe.BD)()==Oe.r5.INVERTED?te.left=te.right:(0,Oe.BD)()==Oe.r5.NEGATED&&(te.left=te.right?-te.right:te.right)):null!=te.right&&(te.left=_e.scrollWidth-_e.clientWidth-te.right),this._applyScrollToOptions(te)}_applyScrollToOptions(te){const _e=this.elementRef.nativeElement;(0,Oe.CZ)()?_e.scrollTo(te):(null!=te.top&&(_e.scrollTop=te.top),null!=te.left&&(_e.scrollLeft=te.left))}measureScrollOffset(te){const _e="left",Pe=this.elementRef.nativeElement;if("top"==te)return Pe.scrollTop;if("bottom"==te)return Pe.scrollHeight-Pe.clientHeight-Pe.scrollTop;const et=this.dir&&"rtl"==this.dir.value;return"start"==te?te=et?"right":_e:"end"==te&&(te=et?_e:"right"),et&&(0,Oe.BD)()==Oe.r5.INVERTED?te==_e?Pe.scrollWidth-Pe.clientWidth-Pe.scrollLeft:Pe.scrollLeft:et&&(0,Oe.BD)()==Oe.r5.NEGATED?te==_e?Pe.scrollLeft+Pe.scrollWidth-Pe.clientWidth:-Pe.scrollLeft:te==_e?Pe.scrollLeft:Pe.scrollWidth-Pe.clientWidth-Pe.scrollLeft}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(s.rXU(s.aKT),s.rXU(st),s.rXU(s.SKi),s.rXU(Ie.dS,8))};static#t=this.\u0275dir=s.FsC({type:Ue,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Ue})(),Tt=(()=>{class Ue{constructor(te,_e,ie){this._platform=te,this._change=new m.B,this._changeListener=Pe=>{this._change.next(Pe)},this._document=ie,_e.runOutsideAngular(()=>{if(te.isBrowser){const Pe=this._getWindow();Pe.addEventListener("resize",this._changeListener),Pe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const te=this._getWindow();te.removeEventListener("resize",this._changeListener),te.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const te={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),te}getViewportRect(){const te=this.getViewportScrollPosition(),{width:_e,height:ie}=this.getViewportSize();return{top:te.top,left:te.left,bottom:te.top+ie,right:te.left+_e,height:ie,width:_e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const te=this._document,_e=this._getWindow(),ie=te.documentElement,Pe=ie.getBoundingClientRect();return{top:-Pe.top||te.body.scrollTop||_e.scrollY||ie.scrollTop||0,left:-Pe.left||te.body.scrollLeft||_e.scrollX||ie.scrollLeft||0}}change(te=20){return te>0?this._change.pipe((0,F.Z)(te)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const te=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:te.innerWidth,height:te.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(s.KVO(Oe.OD),s.KVO(s.SKi),s.KVO(pe.qQ,8))};static#t=this.\u0275prov=s.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}return Ue})();const en=new s.nKC("VIRTUAL_SCROLLABLE");let Ut=(()=>{class Ue extends Ct{constructor(te,_e,ie,Pe){super(te,_e,ie,Pe)}measureViewportSize(te){const _e=this.elementRef.nativeElement;return"horizontal"===te?_e.clientWidth:_e.clientHeight}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(s.rXU(s.aKT),s.rXU(st),s.rXU(s.SKi),s.rXU(Ie.dS,8))};static#t=this.\u0275dir=s.FsC({type:Ue,features:[s.Vt3]})}return Ue})();const fn=typeof requestAnimationFrame<"u"?L.X:j.$;let $n=(()=>{class Ue extends Ut{get orientation(){return this._orientation}set orientation(te){this._orientation!==te&&(this._orientation=te,this._calculateSpacerSize())}constructor(te,_e,ie,Pe,et,ht,Kt,cn){super(te,ht,ie,et),this.elementRef=te,this._changeDetectorRef=_e,this._scrollStrategy=Pe,this.scrollable=cn,this._platform=(0,s.WQX)(Oe.OD),this._detachedSubject=new m.B,this._renderedRangeSubject=new m.B,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new M.c(Tn=>this._scrollStrategy.scrolledIndexChange.subscribe(Wn=>Promise.resolve().then(()=>this.ngZone.run(()=>Tn.next(Wn))))),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.yU.EMPTY,this._injector=(0,s.WQX)(s.zZn),this._isDestroyed=!1,this._viewportChanges=Kt.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,x.Z)(null),(0,F.Z)(0,fn),(0,V.Q)(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(te){this.ngZone.runOutsideAngular(()=>{this._forOf=te,this._forOf.dataStream.pipe((0,V.Q)(this._detachedSubject)).subscribe(_e=>{const ie=_e.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(te){return this.getElementRef().nativeElement.getBoundingClientRect()[te]}setTotalContentSize(te){this._totalContentSize!==te&&(this._totalContentSize=te,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(te){(function Lt(Ue,Fe){return Ue.start==Fe.start&&Ue.end==Fe.end})(this._renderedRange,te)||(this.appendOnly&&(te={start:0,end:Math.max(this._renderedRange.end,te.end)}),this._renderedRangeSubject.next(this._renderedRange=te),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(te,_e="to-start"){te=this.appendOnly&&"to-start"===_e?0:te;const Pe="horizontal"==this.orientation,et=Pe?"X":"Y";let Kt=`translate${et}(${Number((Pe&&this.dir&&"rtl"==this.dir.value?-1:1)*te)}px)`;this._renderedContentOffset=te,"to-end"===_e&&(Kt+=` translate${et}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Kt&&(this._renderedContentTransform=Kt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(te,_e="auto"){const ie={behavior:_e};"horizontal"===this.orientation?ie.start=te:ie.top=te,this.scrollable.scrollTo(ie)}scrollToIndex(te,_e="auto"){this._scrollStrategy.scrollToIndex(te,_e)}measureScrollOffset(te){let _e;return _e=this.scrollable==this?ie=>super.measureScrollOffset(ie):ie=>this.scrollable.measureScrollOffset(ie),Math.max(0,_e(te??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(te){let _e;const et="rtl"==this.dir?.value;_e="start"==te?et?"right":"left":"end"==te?et?"left":"right":te||("horizontal"===this.orientation?"left":"top");const ht=this.scrollable.measureBoundingClientRectWithScrollOffset(_e);return this.elementRef.nativeElement.getBoundingClientRect()[_e]-ht}measureRenderedContentSize(){const te=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?te.offsetWidth:te.offsetHeight}measureRangeSize(te){return this._forOf?this._forOf.measureRangeSize(te,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(te){te&&this._runAfterChangeDetection.push(te),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,(0,s.mal)(()=>{this._isChangeDetectionPending=!1;const te=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const _e of te)_e()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(s.rXU(s.aKT),s.rXU(s.gRc),s.rXU(s.SKi),s.rXU(gt,8),s.rXU(Ie.dS,8),s.rXU(st),s.rXU(Tt),s.rXU(en,8))};static#t=this.\u0275cmp=s.VBU({type:Ue,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(_e,ie){if(1&_e&&s.GBs(Be,7),2&_e){let Pe;s.mGM(Pe=s.lsd())&&(ie._contentWrapper=Pe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(_e,ie){2&_e&&s.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===ie.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==ie.orientation)},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",s.L39]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[s.Jv_([{provide:Ct,useFactory:(te,_e)=>te||_e,deps:[[new s.Xx1,new s.y_5(en)],Ue]}]),s.GFd,s.Vt3,s.aNF],ngContentSelectors:Pt,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(_e,ie){1&_e&&(s.NAR(),s.j41(0,"div",1,0),s.SdG(2),s.k0s(),s.nrm(3,"div",2)),2&_e&&(s.R7$(3),s.xc7("width",ie._totalContentWidth)("height",ie._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})}return Ue})();function zn(Ue,Fe,te){if(!te.getBoundingClientRect)return 0;const ie=te.getBoundingClientRect();return"horizontal"===Ue?"start"===Fe?ie.left:ie.right:"start"===Fe?ie.top:ie.bottom}let bt=(()=>{class Ue{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(te){this._cdkVirtualForOf=te,function Y(Ue){return Ue&&"function"==typeof Ue.connect&&!(Ue instanceof ve.G)}(te)?this._dataSourceChanges.next(te):this._dataSourceChanges.next(new z((0,I.A)(te)?te:Array.from(te||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(te){this._needsUpdate=!0,this._cdkVirtualForTrackBy=te?(_e,ie)=>te(_e+(this._renderedRange?this._renderedRange.start:0),ie):void 0}set cdkVirtualForTemplate(te){te&&(this._needsUpdate=!0,this._template=te)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(te){this._viewRepeater.viewCacheSize=(0,t.OE)(te)}constructor(te,_e,ie,Pe,et,ht){this._viewContainerRef=te,this._template=_e,this._differs=ie,this._viewRepeater=Pe,this._viewport=et,this.viewChange=new m.B,this._dataSourceChanges=new m.B,this.dataStream=this._dataSourceChanges.pipe((0,x.Z)(null),(0,oe.J)(),(0,J.n)(([Kt,cn])=>this._changeDataSource(Kt,cn)),(0,Ee.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new m.B,this.dataStream.subscribe(Kt=>{this._data=Kt,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,V.Q)(this._destroyed)).subscribe(Kt=>{this._renderedRange=Kt,this.viewChange.observers.length&&ht.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(te,_e){if(te.start>=te.end)return 0;const ie=te.start-this._renderedRange.start,Pe=te.end-te.start;let et,ht;for(let Kt=0;Kt-1;Kt--){const cn=this._viewContainerRef.get(Kt+ie);if(cn&&cn.rootNodes.length){ht=cn.rootNodes[cn.rootNodes.length-1];break}}return et&&ht?zn(_e,"end",ht)-zn(_e,"start",et):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const te=this._differ.diff(this._renderedItems);te?this._applyChanges(te):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((te,_e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(te,_e):_e)),this._needsUpdate=!0)}_changeDataSource(te,_e){return te&&te.disconnect(this),this._needsUpdate=!0,_e?_e.connect(this):(0,e.of)()}_updateContext(){const te=this._data.length;let _e=this._viewContainerRef.length;for(;_e--;){const ie=this._viewContainerRef.get(_e);ie.context.index=this._renderedRange.start+_e,ie.context.count=te,this._updateComputedContextProperties(ie.context),ie.detectChanges()}}_applyChanges(te){this._viewRepeater.applyChanges(te,this._viewContainerRef,(Pe,et,ht)=>this._getEmbeddedViewArgs(Pe,ht),Pe=>Pe.item),te.forEachIdentityChange(Pe=>{this._viewContainerRef.get(Pe.currentIndex).context.$implicit=Pe.item});const _e=this._data.length;let ie=this._viewContainerRef.length;for(;ie--;){const Pe=this._viewContainerRef.get(ie);Pe.context.index=this._renderedRange.start+ie,Pe.context.count=_e,this._updateComputedContextProperties(Pe.context)}}_updateComputedContextProperties(te){te.first=0===te.index,te.last=te.index===te.count-1,te.even=te.index%2==0,te.odd=!te.even}_getEmbeddedViewArgs(te,_e){return{templateRef:this._template,context:{$implicit:te.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:_e}}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(s.rXU(s.c1b),s.rXU(s.C4Q),s.rXU(s._q3),s.rXU(he),s.rXU($n,4),s.rXU(s.SKi))};static#t=this.\u0275dir=s.FsC({type:Ue,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[s.Jv_([{provide:he,useClass:S}])]})}return Ue})(),St=(()=>{class Ue{static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275mod=s.$C({type:Ue});static#n=this.\u0275inj=s.G2t({})}return Ue})(),Wt=(()=>{class Ue{static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275mod=s.$C({type:Ue});static#n=this.\u0275inj=s.G2t({imports:[Ie.jI,St,Ie.jI,St]})}return Ue})()},177:(Rt,De,a)=>{a.d(De,{AJ:()=>qn,B3:()=>oo,EO:()=>po,GH:()=>Lo,IJ:()=>Mi,Jj:()=>pr,MD:()=>Kn,N0:()=>no,PV:()=>qi,Pc:()=>Zn,QT:()=>m,QX:()=>Yt,Sm:()=>oe,Sq:()=>$t,T3:()=>Gi,TG:()=>Ce,UE:()=>ei,VF:()=>M,Vy:()=>li,WO:()=>Ni,Xr:()=>mi,YU:()=>zr,ZD:()=>e,_b:()=>Zi,a:()=>Ct,aZ:()=>Ee,bT:()=>Hn,e1:()=>lo,fG:()=>bi,fw:()=>J,gz:()=>S,hb:()=>V,hj:()=>A,lG:()=>nt,pM:()=>$t,qQ:()=>L,ux:()=>_i,vh:()=>qr,xv:()=>ai});var t=a(3953);let s=null;function m(){return s}function e(G){s??=G}class M{}const L=new t.nKC("");let j=(()=>{class G{historyGo(Te){throw new Error("")}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275prov=t.jDH({token:G,factory:()=>(0,t.WQX)(I),providedIn:"platform"})}return G})();const A=new t.nKC("");let I=(()=>{class G extends j{constructor(){super(),this._doc=(0,t.WQX)(L),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(Te){const Ye=m().getGlobalEventTarget(this._doc,"window");return Ye.addEventListener("popstate",Te,!1),()=>Ye.removeEventListener("popstate",Te)}onHashChange(Te){const Ye=m().getGlobalEventTarget(this._doc,"window");return Ye.addEventListener("hashchange",Te,!1),()=>Ye.removeEventListener("hashchange",Te)}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(Te){this._location.pathname=Te}pushState(Te,Ye,Nt){this._history.pushState(Te,Ye,Nt)}replaceState(Te,Ye,Nt){this._history.replaceState(Te,Ye,Nt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Te=0){this._history.go(Te)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275prov=t.jDH({token:G,factory:()=>new G,providedIn:"platform"})}return G})();function w(G,it){if(0==G.length)return it;if(0==it.length)return G;let Te=0;return G.endsWith("/")&&Te++,it.startsWith("/")&&Te++,2==Te?G+it.substring(1):1==Te?G+it:G+"/"+it}function F(G){const it=G.match(/#|\?|$/),Te=it&&it.index||G.length;return G.slice(0,Te-("/"===G[Te-1]?1:0))+G.slice(Te)}function X(G){return G&&"?"!==G[0]?"?"+G:G}let V=(()=>{class G{historyGo(Te){throw new Error("")}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275prov=t.jDH({token:G,factory:()=>(0,t.WQX)(oe),providedIn:"root"})}return G})();const x=new t.nKC("");let oe=(()=>{class G extends V{constructor(Te,Ye){super(),this._platformLocation=Te,this._removeListenerFns=[],this._baseHref=Ye??this._platformLocation.getBaseHrefFromDOM()??(0,t.WQX)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Te){this._removeListenerFns.push(this._platformLocation.onPopState(Te),this._platformLocation.onHashChange(Te))}getBaseHref(){return this._baseHref}prepareExternalUrl(Te){return w(this._baseHref,Te)}path(Te=!1){const Ye=this._platformLocation.pathname+X(this._platformLocation.search),Nt=this._platformLocation.hash;return Nt&&Te?`${Ye}${Nt}`:Ye}pushState(Te,Ye,Nt,gn){const Pn=this.prepareExternalUrl(Nt+X(gn));this._platformLocation.pushState(Te,Ye,Pn)}replaceState(Te,Ye,Nt,gn){const Pn=this.prepareExternalUrl(Nt+X(gn));this._platformLocation.replaceState(Te,Ye,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Te=0){this._platformLocation.historyGo?.(Te)}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.KVO(j),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})(),J=(()=>{class G extends V{constructor(Te,Ye){super(),this._platformLocation=Te,this._baseHref="",this._removeListenerFns=[],null!=Ye&&(this._baseHref=Ye)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Te){this._removeListenerFns.push(this._platformLocation.onPopState(Te),this._platformLocation.onHashChange(Te))}getBaseHref(){return this._baseHref}path(Te=!1){const Ye=this._platformLocation.hash??"#";return Ye.length>0?Ye.substring(1):Ye}prepareExternalUrl(Te){const Ye=w(this._baseHref,Te);return Ye.length>0?"#"+Ye:Ye}pushState(Te,Ye,Nt,gn){let Pn=this.prepareExternalUrl(Nt+X(gn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.pushState(Te,Ye,Pn)}replaceState(Te,Ye,Nt,gn){let Pn=this.prepareExternalUrl(Nt+X(gn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.replaceState(Te,Ye,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Te=0){this._platformLocation.historyGo?.(Te)}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.KVO(j),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:G,factory:G.\u0275fac})}return G})(),Ee=(()=>{class G{constructor(Te){this._subject=new t.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Te;const Ye=this._locationStrategy.getBaseHref();this._basePath=function ve(G){if(new RegExp("^(https?:)?//").test(G)){const[,Te]=G.split(/\/\/[^\/]+/);return Te}return G}(F(Ie(Ye))),this._locationStrategy.onPopState(Nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Nt.state,type:Nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Te=!1){return this.normalize(this._locationStrategy.path(Te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Te,Ye=""){return this.path()==this.normalize(Te+X(Ye))}normalize(Te){return G.stripTrailingSlash(function pe(G,it){if(!G||!it.startsWith(G))return it;const Te=it.substring(G.length);return""===Te||["/",";","?","#"].includes(Te[0])?Te:it}(this._basePath,Ie(Te)))}prepareExternalUrl(Te){return Te&&"/"!==Te[0]&&(Te="/"+Te),this._locationStrategy.prepareExternalUrl(Te)}go(Te,Ye="",Nt=null){this._locationStrategy.pushState(Nt,"",Te,Ye),this._notifyUrlChangeListeners(this.prepareExternalUrl(Te+X(Ye)),Nt)}replaceState(Te,Ye="",Nt=null){this._locationStrategy.replaceState(Nt,"",Te,Ye),this._notifyUrlChangeListeners(this.prepareExternalUrl(Te+X(Ye)),Nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Te=0){this._locationStrategy.historyGo?.(Te)}onUrlChange(Te){return this._urlChangeListeners.push(Te),this._urlChangeSubscription??=this.subscribe(Ye=>{this._notifyUrlChangeListeners(Ye.url,Ye.state)}),()=>{const Ye=this._urlChangeListeners.indexOf(Te);this._urlChangeListeners.splice(Ye,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Te="",Ye){this._urlChangeListeners.forEach(Nt=>Nt(Te,Ye))}subscribe(Te,Ye,Nt){return this._subject.subscribe({next:Te,error:Ye,complete:Nt})}static#e=this.normalizeQueryParams=X;static#t=this.joinWithSlash=w;static#n=this.stripTrailingSlash=F;static#i=this.\u0275fac=function(Ye){return new(Ye||G)(t.KVO(V))};static#o=this.\u0275prov=t.jDH({token:G,factory:()=>function Oe(){return new Ee((0,t.KVO)(V))}(),providedIn:"root"})}return G})();function Ie(G){return G.replace(/\/index.html$/,"")}var Y=function(G){return G[G.Decimal=0]="Decimal",G[G.Percent=1]="Percent",G[G.Currency=2]="Currency",G[G.Scientific=3]="Scientific",G}(Y||{}),z=function(G){return G[G.Zero=0]="Zero",G[G.One=1]="One",G[G.Two=2]="Two",G[G.Few=3]="Few",G[G.Many=4]="Many",G[G.Other=5]="Other",G}(z||{}),Z=function(G){return G[G.Format=0]="Format",G[G.Standalone=1]="Standalone",G}(Z||{}),he=function(G){return G[G.Narrow=0]="Narrow",G[G.Abbreviated=1]="Abbreviated",G[G.Wide=2]="Wide",G[G.Short=3]="Short",G}(he||{}),E=function(G){return G[G.Short=0]="Short",G[G.Medium=1]="Medium",G[G.Long=2]="Long",G[G.Full=3]="Full",G}(E||{});const S={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function zt(G,it){return Et((0,t.H5H)(G)[t.KH2.DateFormat],it)}function xt(G,it){return Et((0,t.H5H)(G)[t.KH2.TimeFormat],it)}function st(G,it){return Et((0,t.H5H)(G)[t.KH2.DateTimeFormat],it)}function Ct(G,it){const Te=(0,t.H5H)(G),Ye=Te[t.KH2.NumberSymbols][it];if(typeof Ye>"u"){if(it===S.CurrencyDecimal)return Te[t.KH2.NumberSymbols][S.Decimal];if(it===S.CurrencyGroup)return Te[t.KH2.NumberSymbols][S.Group]}return Ye}const fn=t.mq5;function $n(G){if(!G[t.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${G[t.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Et(G,it){for(let Te=it;Te>-1;Te--)if(typeof G[Te]<"u")return G[Te];throw new Error("Locale data API: locale data undefined")}function St(G){const[it,Te]=G.split(":");return{hours:+it,minutes:+Te}}const te=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_e={},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 Pe=function(G){return G[G.Short=0]="Short",G[G.ShortGMT=1]="ShortGMT",G[G.Long=2]="Long",G[G.Extended=3]="Extended",G}(Pe||{}),et=function(G){return G[G.FullYear=0]="FullYear",G[G.Month=1]="Month",G[G.Date=2]="Date",G[G.Hours=3]="Hours",G[G.Minutes=4]="Minutes",G[G.Seconds=5]="Seconds",G[G.FractionalSeconds=6]="FractionalSeconds",G[G.Day=7]="Day",G}(et||{}),ht=function(G){return G[G.DayPeriods=0]="DayPeriods",G[G.Days=1]="Days",G[G.Months=2]="Months",G[G.Eras=3]="Eras",G}(ht||{});function Kt(G,it,Te,Ye){let Nt=function re(G){if(mt(G))return G;if("number"==typeof G&&!isNaN(G))return new Date(G);if("string"==typeof G){if(G=G.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(G)){const[Nt,gn=1,Pn=1]=G.split("-").map(di=>+di);return cn(Nt,gn-1,Pn)}const Te=parseFloat(G);if(!isNaN(G-Te))return new Date(Te);let Ye;if(Ye=G.match(te))return function ze(G){const it=new Date(0);let Te=0,Ye=0;const Nt=G[8]?it.setUTCFullYear:it.setFullYear,gn=G[8]?it.setUTCHours:it.setHours;G[9]&&(Te=Number(G[9]+G[10]),Ye=Number(G[9]+G[11])),Nt.call(it,Number(G[1]),Number(G[2])-1,Number(G[3]));const Pn=Number(G[4]||0)-Te,di=Number(G[5]||0)-Ye,yo=Number(G[6]||0),Yi=Math.floor(1e3*parseFloat("0."+(G[7]||0)));return gn.call(it,Pn,di,yo,Yi),it}(Ye)}const it=new Date(G);if(!mt(it))throw new Error(`Unable to convert "${G}" into a date`);return it}(G);it=Tn(Te,it)||it;let di,Pn=[];for(;it;){if(di=ie.exec(it),!di){Pn.push(it);break}{Pn=Pn.concat(di.slice(1));const Eo=Pn.pop();if(!Eo)break;it=Eo}}let yo=Nt.getTimezoneOffset();Ye&&(yo=Qe(Ye,yo),Nt=function Je(G,it,Te){const Ye=Te?-1:1,Nt=G.getTimezoneOffset();return function be(G,it){return(G=new Date(G.getTime())).setMinutes(G.getMinutes()+it),G}(G,Ye*(Qe(it,Nt)-Nt))}(Nt,Ye,!0));let Yi="";return Pn.forEach(Eo=>{const Yn=function Ot(G){if(at[G])return at[G];let it;switch(G){case"G":case"GG":case"GGG":it=qt(ht.Eras,he.Abbreviated);break;case"GGGG":it=qt(ht.Eras,he.Wide);break;case"GGGGG":it=qt(ht.Eras,he.Narrow);break;case"y":it=Un(et.FullYear,1,0,!1,!0);break;case"yy":it=Un(et.FullYear,2,0,!0,!0);break;case"yyy":it=Un(et.FullYear,3,0,!1,!0);break;case"yyyy":it=Un(et.FullYear,4,0,!1,!0);break;case"Y":it=dt(1);break;case"YY":it=dt(2,!0);break;case"YYY":it=dt(3);break;case"YYYY":it=dt(4);break;case"M":case"L":it=Un(et.Month,1,1);break;case"MM":case"LL":it=Un(et.Month,2,1);break;case"MMM":it=qt(ht.Months,he.Abbreviated);break;case"MMMM":it=qt(ht.Months,he.Wide);break;case"MMMMM":it=qt(ht.Months,he.Narrow);break;case"LLL":it=qt(ht.Months,he.Abbreviated,Z.Standalone);break;case"LLLL":it=qt(ht.Months,he.Wide,Z.Standalone);break;case"LLLLL":it=qt(ht.Months,he.Narrow,Z.Standalone);break;case"w":it=Xe(1);break;case"ww":it=Xe(2);break;case"W":it=Xe(1,!0);break;case"d":it=Un(et.Date,1);break;case"dd":it=Un(et.Date,2);break;case"c":case"cc":it=Un(et.Day,1);break;case"ccc":it=qt(ht.Days,he.Abbreviated,Z.Standalone);break;case"cccc":it=qt(ht.Days,he.Wide,Z.Standalone);break;case"ccccc":it=qt(ht.Days,he.Narrow,Z.Standalone);break;case"cccccc":it=qt(ht.Days,he.Short,Z.Standalone);break;case"E":case"EE":case"EEE":it=qt(ht.Days,he.Abbreviated);break;case"EEEE":it=qt(ht.Days,he.Wide);break;case"EEEEE":it=qt(ht.Days,he.Narrow);break;case"EEEEEE":it=qt(ht.Days,he.Short);break;case"a":case"aa":case"aaa":it=qt(ht.DayPeriods,he.Abbreviated);break;case"aaaa":it=qt(ht.DayPeriods,he.Wide);break;case"aaaaa":it=qt(ht.DayPeriods,he.Narrow);break;case"b":case"bb":case"bbb":it=qt(ht.DayPeriods,he.Abbreviated,Z.Standalone,!0);break;case"bbbb":it=qt(ht.DayPeriods,he.Wide,Z.Standalone,!0);break;case"bbbbb":it=qt(ht.DayPeriods,he.Narrow,Z.Standalone,!0);break;case"B":case"BB":case"BBB":it=qt(ht.DayPeriods,he.Abbreviated,Z.Format,!0);break;case"BBBB":it=qt(ht.DayPeriods,he.Wide,Z.Format,!0);break;case"BBBBB":it=qt(ht.DayPeriods,he.Narrow,Z.Format,!0);break;case"h":it=Un(et.Hours,1,-12);break;case"hh":it=Un(et.Hours,2,-12);break;case"H":it=Un(et.Hours,1);break;case"HH":it=Un(et.Hours,2);break;case"m":it=Un(et.Minutes,1);break;case"mm":it=Un(et.Minutes,2);break;case"s":it=Un(et.Seconds,1);break;case"ss":it=Un(et.Seconds,2);break;case"S":it=Un(et.FractionalSeconds,1);break;case"SS":it=Un(et.FractionalSeconds,2);break;case"SSS":it=Un(et.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":it=Vt(Pe.Short);break;case"ZZZZZ":it=Vt(Pe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":it=Vt(Pe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":it=Vt(Pe.Long);break;default:return null}return at[G]=it,it}(Eo);Yi+=Yn?Yn(Nt,Te,yo):"''"===Eo?"'":Eo.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Yi}function cn(G,it,Te){const Ye=new Date(0);return Ye.setFullYear(G,it,Te),Ye.setHours(0,0,0),Ye}function Tn(G,it){const Te=function U(G){return(0,t.H5H)(G)[t.KH2.LocaleId]}(G);if(_e[Te]??={},_e[Te][it])return _e[Te][it];let Ye="";switch(it){case"shortDate":Ye=zt(G,E.Short);break;case"mediumDate":Ye=zt(G,E.Medium);break;case"longDate":Ye=zt(G,E.Long);break;case"fullDate":Ye=zt(G,E.Full);break;case"shortTime":Ye=xt(G,E.Short);break;case"mediumTime":Ye=xt(G,E.Medium);break;case"longTime":Ye=xt(G,E.Long);break;case"fullTime":Ye=xt(G,E.Full);break;case"short":const Nt=Tn(G,"shortTime"),gn=Tn(G,"shortDate");Ye=Wn(st(G,E.Short),[Nt,gn]);break;case"medium":const Pn=Tn(G,"mediumTime"),di=Tn(G,"mediumDate");Ye=Wn(st(G,E.Medium),[Pn,di]);break;case"long":const yo=Tn(G,"longTime"),Yi=Tn(G,"longDate");Ye=Wn(st(G,E.Long),[yo,Yi]);break;case"full":const Eo=Tn(G,"fullTime"),Yn=Tn(G,"fullDate");Ye=Wn(st(G,E.Full),[Eo,Yn])}return Ye&&(_e[Te][it]=Ye),Ye}function Wn(G,it){return it&&(G=G.replace(/\{([^}]+)}/g,function(Te,Ye){return null!=it&&Ye in it?it[Ye]:Te})),G}function kn(G,it,Te="-",Ye,Nt){let gn="";(G<0||Nt&&G<=0)&&(Nt?G=1-G:(G=-G,gn=Te));let Pn=String(G);for(;Pn.length0||di>-Te)&&(di+=Te),G===et.Hours)0===di&&-12===Te&&(di=12);else if(G===et.FractionalSeconds)return function In(G,it){return kn(G,3).substring(0,it)}(di,it);const yo=Ct(Pn,S.MinusSign);return kn(di,it,yo,Ye,Nt)}}function qt(G,it,Te=Z.Format,Ye=!1){return function(Nt,gn){return function wn(G,it,Te,Ye,Nt,gn){switch(Te){case ht.Months:return function Pt(G,it,Te){const Ye=(0,t.H5H)(G),gn=Et([Ye[t.KH2.MonthsFormat],Ye[t.KH2.MonthsStandalone]],it);return Et(gn,Te)}(it,Nt,Ye)[G.getMonth()];case ht.Days:return function Be(G,it,Te){const Ye=(0,t.H5H)(G),gn=Et([Ye[t.KH2.DaysFormat],Ye[t.KH2.DaysStandalone]],it);return Et(gn,Te)}(it,Nt,Ye)[G.getDay()];case ht.DayPeriods:const Pn=G.getHours(),di=G.getMinutes();if(gn){const Yi=function zn(G){const it=(0,t.H5H)(G);return $n(it),(it[t.KH2.ExtraData][2]||[]).map(Ye=>"string"==typeof Ye?St(Ye):[St(Ye[0]),St(Ye[1])])}(it),Eo=function bt(G,it,Te){const Ye=(0,t.H5H)(G);$n(Ye);const gn=Et([Ye[t.KH2.ExtraData][0],Ye[t.KH2.ExtraData][1]],it)||[];return Et(gn,Te)||[]}(it,Nt,Ye),Yn=Yi.findIndex(Io=>{if(Array.isArray(Io)){const[Wi,Po]=Io,Qr=Pn>=Wi.hours&&di>=Wi.minutes,Pr=Pn0?Math.floor(Nt/60):Math.ceil(Nt/60);switch(G){case Pe.Short:return(Nt>=0?"+":"")+kn(Pn,2,gn)+kn(Math.abs(Nt%60),2,gn);case Pe.ShortGMT:return"GMT"+(Nt>=0?"+":"")+kn(Pn,1,gn);case Pe.Long:return"GMT"+(Nt>=0?"+":"")+kn(Pn,2,gn)+":"+kn(Math.abs(Nt%60),2,gn);case Pe.Extended:return 0===Ye?"Z":(Nt>=0?"+":"")+kn(Pn,2,gn)+":"+kn(Math.abs(Nt%60),2,gn);default:throw new Error(`Unknown zone width "${G}"`)}}}const Ge=0,ue=4;function ee(G){const it=G.getDay(),Te=0===it?-3:ue-it;return cn(G.getFullYear(),G.getMonth(),G.getDate()+Te)}function Xe(G,it=!1){return function(Te,Ye){let Nt;if(it){const gn=new Date(Te.getFullYear(),Te.getMonth(),1).getDay()-1,Pn=Te.getDate();Nt=1+Math.floor((Pn+gn)/7)}else{const gn=ee(Te),Pn=function q(G){const it=cn(G,Ge,1).getDay();return cn(G,0,1+(it<=ue?ue:ue+7)-it)}(gn.getFullYear()),di=gn.getTime()-Pn.getTime();Nt=1+Math.round(di/6048e5)}return kn(Nt,G,Ct(Ye,S.MinusSign))}}function dt(G,it=!1){return function(Te,Ye){return kn(ee(Te).getFullYear(),G,Ct(Ye,S.MinusSign),it)}}const at={};function Qe(G,it){G=G.replace(/:/g,"");const Te=Date.parse("Jan 01, 1970 00:00:00 "+G)/6e4;return isNaN(Te)?it:Te}function mt(G){return G instanceof Date&&!isNaN(G.valueOf())}const Ke=/^(\d+)?\.((\d+)(-(\d+))?)?$/,B="0";function jn(G){const it=parseInt(G);if(isNaN(it))throw new Error("Invalid integer literal when parsing "+G);return it}let Gn=(()=>{class G{static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275prov=t.jDH({token:G,factory:function(Ye){let Nt=null;return Ye?Nt=new Ye:(gn=t.KVO(t.xe9),Nt=new Oi(gn)),Nt;var gn},providedIn:"root"})}return G})();let Oi=(()=>{class G extends Gn{constructor(Te){super(),this.locale=Te}getPluralCategory(Te,Ye){switch(fn(Ye||this.locale)(Te)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.KVO(t.xe9))};static#t=this.\u0275prov=t.jDH({token:G,factory:G.\u0275fac})}return G})();function po(G,it,Te){return(0,t.XSP)(G,it,Te)}function Zi(G,it){it=encodeURIComponent(it);for(const Te of G.split(";")){const Ye=Te.indexOf("="),[Nt,gn]=-1==Ye?[Te,""]:[Te.slice(0,Ye),Te.slice(Ye+1)];if(Nt.trim()===it)return decodeURIComponent(gn)}return null}const Vo=/\s+/,Co=[];let zr=(()=>{class G{constructor(Te,Ye){this._ngEl=Te,this._renderer=Ye,this.initialClasses=Co,this.stateMap=new Map}set klass(Te){this.initialClasses=null!=Te?Te.trim().split(Vo):Co}set ngClass(Te){this.rawClass="string"==typeof Te?Te.trim().split(Vo):Te}ngDoCheck(){for(const Ye of this.initialClasses)this._updateState(Ye,!0);const Te=this.rawClass;if(Array.isArray(Te)||Te instanceof Set)for(const Ye of Te)this._updateState(Ye,!0);else if(null!=Te)for(const Ye of Object.keys(Te))this._updateState(Ye,!!Te[Ye]);this._applyStateDiff()}_updateState(Te,Ye){const Nt=this.stateMap.get(Te);void 0!==Nt?(Nt.enabled!==Ye&&(Nt.changed=!0,Nt.enabled=Ye),Nt.touched=!0):this.stateMap.set(Te,{enabled:Ye,changed:!0,touched:!0})}_applyStateDiff(){for(const Te of this.stateMap){const Ye=Te[0],Nt=Te[1];Nt.changed?(this._toggleClass(Ye,Nt.enabled),Nt.changed=!1):Nt.touched||(Nt.enabled&&this._toggleClass(Ye,!1),this.stateMap.delete(Ye)),Nt.touched=!1}}_toggleClass(Te,Ye){(Te=Te.trim()).length>0&&Te.split(Vo).forEach(Nt=>{Ye?this._renderer.addClass(this._ngEl.nativeElement,Nt):this._renderer.removeClass(this._ngEl.nativeElement,Nt)})}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return G})();class Ht{constructor(it,Te,Ye,Nt){this.$implicit=it,this.ngForOf=Te,this.index=Ye,this.count=Nt}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 $t=(()=>{class G{set ngForOf(Te){this._ngForOf=Te,this._ngForOfDirty=!0}set ngForTrackBy(Te){this._trackByFn=Te}get ngForTrackBy(){return this._trackByFn}constructor(Te,Ye,Nt){this._viewContainer=Te,this._template=Ye,this._differs=Nt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Te){Te&&(this._template=Te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Te=this._ngForOf;!this._differ&&Te&&(this._differ=this._differs.find(Te).create(this.ngForTrackBy))}if(this._differ){const Te=this._differ.diff(this._ngForOf);Te&&this._applyChanges(Te)}}_applyChanges(Te){const Ye=this._viewContainer;Te.forEachOperation((Nt,gn,Pn)=>{if(null==Nt.previousIndex)Ye.createEmbeddedView(this._template,new Ht(Nt.item,this._ngForOf,-1,-1),null===Pn?void 0:Pn);else if(null==Pn)Ye.remove(null===gn?void 0:gn);else if(null!==gn){const di=Ye.get(gn);Ye.move(di,Pn),pn(di,Nt)}});for(let Nt=0,gn=Ye.length;Nt{pn(Ye.get(Nt.currentIndex),Nt)})}static ngTemplateContextGuard(Te,Ye){return!0}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(t._q3))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return G})();function pn(G,it){G.context.$implicit=it.item}let Hn=(()=>{class G{constructor(Te,Ye){this._viewContainer=Te,this._context=new En,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ye}set ngIf(Te){this._context.$implicit=this._context.ngIf=Te,this._updateView()}set ngIfThen(Te){Xn("ngIfThen",Te),this._thenTemplateRef=Te,this._thenViewRef=null,this._updateView()}set ngIfElse(Te){Xn("ngIfElse",Te),this._elseTemplateRef=Te,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(Te,Ye){return!0}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return G})();class En{constructor(){this.$implicit=null,this.ngIf=null}}function Xn(G,it){if(it&&!it.createEmbeddedView)throw new Error(`${G} must be a TemplateRef, but received '${(0,t.Tbb)(it)}'.`)}class ci{constructor(it,Te){this._viewContainerRef=it,this._templateRef=Te,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(it){it&&!this._created?this.create():!it&&this._created&&this.destroy()}}let _i=(()=>{class G{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Te){this._ngSwitch=Te,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Te){this._defaultViews.push(Te)}_matchCase(Te){const Ye=Te===this._ngSwitch;return this._lastCasesMatched||=Ye,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ye}_updateDefaultCases(Te){if(this._defaultViews.length>0&&Te!==this._defaultUsed){this._defaultUsed=Te;for(const Ye of this._defaultViews)Ye.enforceState(Te)}}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return G})(),lo=(()=>{class G{constructor(Te,Ye,Nt){this.ngSwitch=Nt,Nt._addCase(),this._view=new ci(Te,Ye)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(_i,9))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return G})(),bi=(()=>{class G{constructor(Te,Ye,Nt){Nt._addDefault(new ci(Te,Ye))}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(_i,9))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return G})(),Mi=(()=>{class G{constructor(Te){this._localization=Te,this._caseViews={}}set ngPlural(Te){this._updateView(Te)}addCase(Te,Ye){this._caseViews[Te]=Ye}_updateView(Te){this._clearViews();const Nt=function zi(G,it,Te,Ye){let Nt=`=${G}`;if(it.indexOf(Nt)>-1||(Nt=Te.getPluralCategory(G,Ye),it.indexOf(Nt)>-1))return Nt;if(it.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${G}"`)}(Te,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[Nt])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(Te){Te&&(this._activeView=Te,this._activeView.create())}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(Gn))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}return G})(),Ni=(()=>{class G{constructor(Te,Ye,Nt,gn){this.value=Te;const Pn=!isNaN(Number(Te));gn.addCase(Pn?`=${Te}`:Te,new ci(Nt,Ye))}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.kS0("ngPluralCase"),t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(Mi,1))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngPluralCase",""]],standalone:!0})}return G})(),oo=(()=>{class G{constructor(Te,Ye,Nt){this._ngEl=Te,this._differs=Ye,this._renderer=Nt,this._ngStyle=null,this._differ=null}set ngStyle(Te){this._ngStyle=Te,!this._differ&&Te&&(this._differ=this._differs.find(Te).create())}ngDoCheck(){if(this._differ){const Te=this._differ.diff(this._ngStyle);Te&&this._applyChanges(Te)}}_setStyle(Te,Ye){const[Nt,gn]=Te.split("."),Pn=-1===Nt.indexOf("-")?void 0:t.czy.DashCase;null!=Ye?this._renderer.setStyle(this._ngEl.nativeElement,Nt,gn?`${Ye}${gn}`:Ye,Pn):this._renderer.removeStyle(this._ngEl.nativeElement,Nt,Pn)}_applyChanges(Te){Te.forEachRemovedItem(Ye=>this._setStyle(Ye.key,null)),Te.forEachAddedItem(Ye=>this._setStyle(Ye.key,Ye.currentValue)),Te.forEachChangedItem(Ye=>this._setStyle(Ye.key,Ye.currentValue))}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.aKT),t.rXU(t.MKu),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return G})(),Gi=(()=>{class G{constructor(Te){this._viewContainerRef=Te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Te){if(this._shouldRecreateView(Te)){const Ye=this._viewContainerRef;if(this._viewRef&&Ye.remove(Ye.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Nt=this._createContextForwardProxy();this._viewRef=Ye.createEmbeddedView(this.ngTemplateOutlet,Nt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(Te){return!!Te.ngTemplateOutlet||!!Te.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(Te,Ye,Nt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ye,Nt),get:(Te,Ye,Nt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ye,Nt)}})}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.c1b))};static#t=this.\u0275dir=t.FsC({type:G,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.OA$]})}return G})();function Ki(G,it){return new t.wOt(2100,!1)}class Jo{createSubscription(it,Te){return(0,t.O8t)(()=>it.subscribe({next:Te,error:Ye=>{throw Ye}}))}dispose(it){(0,t.O8t)(()=>it.unsubscribe())}}class sr{createSubscription(it,Te){return it.then(Te,Ye=>{throw Ye})}dispose(it){}}const fo=new sr,uo=new Jo;let pr=(()=>{class G{constructor(Te){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Te){if(!this._obj){if(Te)try{this.markForCheckOnValueUpdate=!1,this._subscribe(Te)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return Te!==this._obj?(this._dispose(),this.transform(Te)):this._latestValue}_subscribe(Te){this._obj=Te,this._strategy=this._selectStrategy(Te),this._subscription=this._strategy.createSubscription(Te,Ye=>this._updateLatestValue(Te,Ye))}_selectStrategy(Te){if((0,t.jNT)(Te))return fo;if((0,t.zjR)(Te))return uo;throw Ki()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Te,Ye){Te===this._obj&&(this._latestValue=Ye,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.gRc,16))};static#t=this.\u0275pipe=t.EJ8({name:"async",type:G,pure:!1,standalone:!0})}return G})(),Lo=(()=>{class G{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.toLowerCase()}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275pipe=t.EJ8({name:"lowercase",type:G,pure:!0,standalone:!0})}return G})();const Ur=/(?:[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 qi=(()=>{class G{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.replace(Ur,Ye=>Ye[0].toUpperCase()+Ye.slice(1).toLowerCase())}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275pipe=t.EJ8({name:"titlecase",type:G,pure:!0,standalone:!0})}return G})(),Zn=(()=>{class G{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.toUpperCase()}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275pipe=t.EJ8({name:"uppercase",type:G,pure:!0,standalone:!0})}return G})();const wr=new t.nKC(""),ls=new t.nKC("");let qr=(()=>{class G{constructor(Te,Ye,Nt){this.locale=Te,this.defaultTimezone=Ye,this.defaultOptions=Nt}transform(Te,Ye,Nt,gn){if(null==Te||""===Te||Te!=Te)return null;try{return Kt(Te,Ye??this.defaultOptions?.dateFormat??"mediumDate",gn||this.locale,Nt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pn){throw Ki()}}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.xe9,16),t.rXU(wr,24),t.rXU(ls,24))};static#t=this.\u0275pipe=t.EJ8({name:"date",type:G,pure:!0,standalone:!0})}return G})(),Ce=(()=>{class G{transform(Te){return JSON.stringify(Te,null,2)}static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275pipe=t.EJ8({name:"json",type:G,pure:!1,standalone:!0})}return G})(),nt=(()=>{class G{constructor(Te){this.differs=Te,this.keyValues=[],this.compareFn=Mt}transform(Te,Ye=Mt){if(!Te||!(Te instanceof Map)&&"object"!=typeof Te)return null;this.differ??=this.differs.find(Te).create();const Nt=this.differ.diff(Te),gn=Ye!==this.compareFn;return Nt&&(this.keyValues=[],Nt.forEachItem(Pn=>{this.keyValues.push(function Ve(G,it){return{key:G,value:it}}(Pn.key,Pn.currentValue))})),(Nt||gn)&&(this.keyValues.sort(Ye),this.compareFn=Ye),this.keyValues}static#e=this.\u0275fac=function(Ye){return new(Ye||G)(t.rXU(t.MKu,16))};static#t=this.\u0275pipe=t.EJ8({name:"keyvalue",type:G,pure:!1,standalone:!0})}return G})();function Mt(G,it){const Te=G.key,Ye=it.key;if(Te===Ye)return 0;if(void 0===Te)return 1;if(void 0===Ye)return-1;if(null===Te)return 1;if(null===Ye)return-1;if("string"==typeof Te&&"string"==typeof Ye)return Te{class G{constructor(Te){this._locale=Te}transform(Te,Ye,Nt){if(!function bn(G){return!(null==G||""===G||G!=G)}(Te))return null;Nt||=this._locale;try{return function rt(G,it,Te){return function H(G,it,Te,Ye,Nt,gn,Pn=!1){let di="",yo=!1;if(isFinite(G)){let Yi=function Cn(G){let Ye,Nt,gn,Pn,di,it=Math.abs(G)+"",Te=0;for((Nt=it.indexOf("."))>-1&&(it=it.replace(".","")),(gn=it.search(/e/i))>0?(Nt<0&&(Nt=gn),Nt+=+it.slice(gn+1),it=it.substring(0,gn)):Nt<0&&(Nt=it.length),gn=0;it.charAt(gn)===B;gn++);if(gn===(di=it.length))Ye=[0],Nt=1;else{for(di--;it.charAt(di)===B;)di--;for(Nt-=gn,Ye=[],Pn=0;gn<=di;gn++,Pn++)Ye[Pn]=Number(it.charAt(gn))}return Nt>22&&(Ye=Ye.splice(0,21),Te=Nt-1,Nt=1),{digits:Ye,exponent:Te,integerLen:Nt}}(G);Pn&&(Yi=function rn(G){if(0===G.digits[0])return G;const it=G.digits.length-G.integerLen;return G.exponent?G.exponent+=2:(0===it?G.digits.push(0,0):1===it&&G.digits.push(0),G.integerLen+=2),G}(Yi));let Eo=it.minInt,Yn=it.minFrac,Io=it.maxFrac;if(gn){const ps=gn.match(Ke);if(null===ps)throw new Error(`${gn} is not a valid digit info`);const Lr=ps[1],fs=ps[3],ms=ps[5];null!=Lr&&(Eo=jn(Lr)),null!=fs&&(Yn=jn(fs)),null!=ms?Io=jn(ms):null!=fs&&Yn>Io&&(Io=Yn)}!function Jn(G,it,Te){if(it>Te)throw new Error(`The minimum number of digits after fraction (${it}) is higher than the maximum (${Te}).`);let Ye=G.digits,Nt=Ye.length-G.integerLen;const gn=Math.min(Math.max(it,Nt),Te);let Pn=gn+G.integerLen,di=Ye[Pn];if(Pn>0){Ye.splice(Math.max(G.integerLen,Pn));for(let Yn=Pn;Yn=5)if(Pn-1<0){for(let Yn=0;Yn>Pn;Yn--)Ye.unshift(0),G.integerLen++;Ye.unshift(1),G.integerLen++}else Ye[Pn-1]++;for(;Nt=Yi?Po.pop():yo=!1),Io>=10?1:0},0);Eo&&(Ye.unshift(Eo),G.integerLen++)}(Yi,Yn,Io);let Wi=Yi.digits,Po=Yi.integerLen;const Qr=Yi.exponent;let Pr=[];for(yo=Wi.every(ps=>!ps);Po0?Pr=Wi.splice(Po,Wi.length):(Pr=Wi,Wi=[0]);const Ds=[];for(Wi.length>=it.lgSize&&Ds.unshift(Wi.splice(-it.lgSize,Wi.length).join(""));Wi.length>it.gSize;)Ds.unshift(Wi.splice(-it.gSize,Wi.length).join(""));Wi.length&&Ds.unshift(Wi.join("")),di=Ds.join(Ct(Te,Ye)),Pr.length&&(di+=Ct(Te,Nt)+Pr.join("")),Qr&&(di+=Ct(Te,S.Exponential)+"+"+Qr)}else di=Ct(Te,S.Infinity);return di=G<0&&!yo?it.negPre+di+it.negSuf:it.posPre+di+it.posSuf,di}(G,function Ft(G,it="-"){const Te={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ye=G.split(";"),Nt=Ye[0],gn=Ye[1],Pn=-1!==Nt.indexOf(".")?Nt.split("."):[Nt.substring(0,Nt.lastIndexOf(B)+1),Nt.substring(Nt.lastIndexOf(B)+1)],di=Pn[0],yo=Pn[1]||"";Te.posPre=di.substring(0,di.indexOf("#"));for(let Eo=0;Eo{class G{static#e=this.\u0275fac=function(Ye){return new(Ye||G)};static#t=this.\u0275mod=t.$C({type:G});static#n=this.\u0275inj=t.G2t({})}return G})();const qn="browser",pi="server";function ei(G){return G===qn}function li(G){return G===pi}const ai=new t.RxE("18.1.2");let mi=(()=>{class G{static#e=this.\u0275prov=(0,t.jDH)({token:G,providedIn:"root",factory:()=>ei((0,t.WQX)(t.Agw))?new Ei((0,t.WQX)(L),window):new Si})}return G})();class Ei{constructor(it,Te){this.document=it,this.window=Te,this.offset=()=>[0,0]}setOffset(it){this.offset=Array.isArray(it)?()=>it:it}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(it){this.window.scrollTo(it[0],it[1])}scrollToAnchor(it){const Te=function Xi(G,it){const Te=G.getElementById(it)||G.getElementsByName(it)[0];if(Te)return Te;if("function"==typeof G.createTreeWalker&&G.body&&"function"==typeof G.body.attachShadow){const Ye=G.createTreeWalker(G.body,NodeFilter.SHOW_ELEMENT);let Nt=Ye.currentNode;for(;Nt;){const gn=Nt.shadowRoot;if(gn){const Pn=gn.getElementById(it)||gn.querySelector(`[name="${it}"]`);if(Pn)return Pn}Nt=Ye.nextNode()}}return null}(this.document,it);Te&&(this.scrollToElement(Te),Te.focus())}setHistoryScrollRestoration(it){this.window.history.scrollRestoration=it}scrollToElement(it){const Te=it.getBoundingClientRect(),Ye=Te.left+this.window.pageXOffset,Nt=Te.top+this.window.pageYOffset,gn=this.offset();this.window.scrollTo(Ye-gn[0],Nt-gn[1])}}class Si{setOffset(it){}getScrollPosition(){return[0,0]}scrollToPosition(it){}scrollToAnchor(it){}setHistoryScrollRestoration(it){}}class no{}},1626:(Rt,De,a)=>{a.d(De,{$R:()=>Je,JV:()=>X,Lr:()=>V,Qq:()=>st,Sx:()=>mt,YH:()=>Re,c2:()=>Ke});var t=a(4523),s=a(3953),m=a(7673),e=a(1985),M=a(2806),K=a(274),L=a(5964),j=a(6354),A=a(980),I=a(5558),w=a(177);class F{}class X{}class V{constructor(Ht){this.normalizedNames=new Map,this.lazyUpdate=null,Ht?"string"==typeof Ht?this.lazyInit=()=>{this.headers=new Map,Ht.split("\n").forEach($t=>{const pn=$t.indexOf(":");if(pn>0){const hn=$t.slice(0,pn),Hn=hn.toLowerCase(),En=$t.slice(pn+1).trim();this.maybeSetNormalizedName(hn,Hn),this.headers.has(Hn)?this.headers.get(Hn).push(En):this.headers.set(Hn,[En])}})}:typeof Headers<"u"&&Ht instanceof Headers?(this.headers=new Map,Ht.forEach(($t,pn)=>{this.setHeaderEntries(pn,$t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Ht).forEach(([$t,pn])=>{this.setHeaderEntries($t,pn)})}:this.headers=new Map}has(Ht){return this.init(),this.headers.has(Ht.toLowerCase())}get(Ht){this.init();const $t=this.headers.get(Ht.toLowerCase());return $t&&$t.length>0?$t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ht){return this.init(),this.headers.get(Ht.toLowerCase())||null}append(Ht,$t){return this.clone({name:Ht,value:$t,op:"a"})}set(Ht,$t){return this.clone({name:Ht,value:$t,op:"s"})}delete(Ht,$t){return this.clone({name:Ht,value:$t,op:"d"})}maybeSetNormalizedName(Ht,$t){this.normalizedNames.has($t)||this.normalizedNames.set($t,Ht)}init(){this.lazyInit&&(this.lazyInit instanceof V?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ht=>this.applyUpdate(Ht)),this.lazyUpdate=null))}copyFrom(Ht){Ht.init(),Array.from(Ht.headers.keys()).forEach($t=>{this.headers.set($t,Ht.headers.get($t)),this.normalizedNames.set($t,Ht.normalizedNames.get($t))})}clone(Ht){const $t=new V;return $t.lazyInit=this.lazyInit&&this.lazyInit instanceof V?this.lazyInit:this,$t.lazyUpdate=(this.lazyUpdate||[]).concat([Ht]),$t}applyUpdate(Ht){const $t=Ht.name.toLowerCase();switch(Ht.op){case"a":case"s":let pn=Ht.value;if("string"==typeof pn&&(pn=[pn]),0===pn.length)return;this.maybeSetNormalizedName(Ht.name,$t);const hn=("a"===Ht.op?this.headers.get($t):void 0)||[];hn.push(...pn),this.headers.set($t,hn);break;case"d":const Hn=Ht.value;if(Hn){let En=this.headers.get($t);if(!En)return;En=En.filter(Xn=>-1===Hn.indexOf(Xn)),0===En.length?(this.headers.delete($t),this.normalizedNames.delete($t)):this.headers.set($t,En)}else this.headers.delete($t),this.normalizedNames.delete($t)}}setHeaderEntries(Ht,$t){const pn=(Array.isArray($t)?$t:[$t]).map(Hn=>Hn.toString()),hn=Ht.toLowerCase();this.headers.set(hn,pn),this.maybeSetNormalizedName(Ht,hn)}forEach(Ht){this.init(),Array.from(this.normalizedNames.keys()).forEach($t=>Ht(this.normalizedNames.get($t),this.headers.get($t)))}}class oe{encodeKey(Ht){return pe(Ht)}encodeValue(Ht){return pe(Ht)}decodeKey(Ht){return decodeURIComponent(Ht)}decodeValue(Ht){return decodeURIComponent(Ht)}}const Ee=/%(\d[a-f0-9])/gi,Oe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function pe(lt){return encodeURIComponent(lt).replace(Ee,(Ht,$t)=>Oe[$t]??Ht)}function Ie(lt){return`${lt}`}class ve{constructor(Ht={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ht.encoder||new oe,Ht.fromString){if(Ht.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function J(lt,Ht){const $t=new Map;return lt.length>0&<.replace(/^\?/,"").split("&").forEach(hn=>{const Hn=hn.indexOf("="),[En,Xn]=-1==Hn?[Ht.decodeKey(hn),""]:[Ht.decodeKey(hn.slice(0,Hn)),Ht.decodeValue(hn.slice(Hn+1))],ci=$t.get(En)||[];ci.push(Xn),$t.set(En,ci)}),$t}(Ht.fromString,this.encoder)}else Ht.fromObject?(this.map=new Map,Object.keys(Ht.fromObject).forEach($t=>{const pn=Ht.fromObject[$t],hn=Array.isArray(pn)?pn.map(Ie):[Ie(pn)];this.map.set($t,hn)})):this.map=null}has(Ht){return this.init(),this.map.has(Ht)}get(Ht){this.init();const $t=this.map.get(Ht);return $t?$t[0]:null}getAll(Ht){return this.init(),this.map.get(Ht)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ht,$t){return this.clone({param:Ht,value:$t,op:"a"})}appendAll(Ht){const $t=[];return Object.keys(Ht).forEach(pn=>{const hn=Ht[pn];Array.isArray(hn)?hn.forEach(Hn=>{$t.push({param:pn,value:Hn,op:"a"})}):$t.push({param:pn,value:hn,op:"a"})}),this.clone($t)}set(Ht,$t){return this.clone({param:Ht,value:$t,op:"s"})}delete(Ht,$t){return this.clone({param:Ht,value:$t,op:"d"})}toString(){return this.init(),this.keys().map(Ht=>{const $t=this.encoder.encodeKey(Ht);return this.map.get(Ht).map(pn=>$t+"="+this.encoder.encodeValue(pn)).join("&")}).filter(Ht=>""!==Ht).join("&")}clone(Ht){const $t=new ve({encoder:this.encoder});return $t.cloneFrom=this.cloneFrom||this,$t.updates=(this.updates||[]).concat(Ht),$t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ht=>this.map.set(Ht,this.cloneFrom.map.get(Ht))),this.updates.forEach(Ht=>{switch(Ht.op){case"a":case"s":const $t=("a"===Ht.op?this.map.get(Ht.param):void 0)||[];$t.push(Ie(Ht.value)),this.map.set(Ht.param,$t);break;case"d":if(void 0===Ht.value){this.map.delete(Ht.param);break}{let pn=this.map.get(Ht.param)||[];const hn=pn.indexOf(Ie(Ht.value));-1!==hn&&pn.splice(hn,1),pn.length>0?this.map.set(Ht.param,pn):this.map.delete(Ht.param)}}}),this.cloneFrom=this.updates=null)}}class Y{constructor(){this.map=new Map}set(Ht,$t){return this.map.set(Ht,$t),this}get(Ht){return this.map.has(Ht)||this.map.set(Ht,Ht.defaultValue()),this.map.get(Ht)}delete(Ht){return this.map.delete(Ht),this}has(Ht){return this.map.has(Ht)}keys(){return this.map.keys()}}function Z(lt){return typeof ArrayBuffer<"u"&< instanceof ArrayBuffer}function he(lt){return typeof Blob<"u"&< instanceof Blob}function E(lt){return typeof FormData<"u"&< instanceof FormData}class R{constructor(Ht,$t,pn,hn){let Hn;if(this.url=$t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ht.toUpperCase(),function z(lt){switch(lt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||hn?(this.body=void 0!==pn?pn:null,Hn=hn):Hn=pn,Hn&&(this.reportProgress=!!Hn.reportProgress,this.withCredentials=!!Hn.withCredentials,Hn.responseType&&(this.responseType=Hn.responseType),Hn.headers&&(this.headers=Hn.headers),Hn.context&&(this.context=Hn.context),Hn.params&&(this.params=Hn.params),this.transferCache=Hn.transferCache),this.headers??=new V,this.context??=new Y,this.params){const En=this.params.toString();if(0===En.length)this.urlWithParams=$t;else{const Xn=$t.indexOf("?");this.urlWithParams=$t+(-1===Xn?"?":Xn<$t.length-1?"&":"")+En}}else this.params=new ve,this.urlWithParams=$t}serializeBody(){return null===this.body?null:"string"==typeof this.body||Z(this.body)||he(this.body)||E(this.body)||function S(lt){return typeof URLSearchParams<"u"&< instanceof URLSearchParams}(this.body)?this.body:this.body instanceof ve?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||E(this.body)?null:he(this.body)?this.body.type||null:Z(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ve?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Ht={}){const $t=Ht.method||this.method,pn=Ht.url||this.url,hn=Ht.responseType||this.responseType,Hn=Ht.transferCache??this.transferCache,En=void 0!==Ht.body?Ht.body:this.body,Xn=Ht.withCredentials??this.withCredentials,ci=Ht.reportProgress??this.reportProgress;let _i=Ht.headers||this.headers,lo=Ht.params||this.params;const bi=Ht.context??this.context;return void 0!==Ht.setHeaders&&(_i=Object.keys(Ht.setHeaders).reduce((mn,Ui)=>mn.set(Ui,Ht.setHeaders[Ui]),_i)),Ht.setParams&&(lo=Object.keys(Ht.setParams).reduce((mn,Ui)=>mn.set(Ui,Ht.setParams[Ui]),lo)),new R($t,pn,En,{params:lo,headers:_i,context:bi,reportProgress:ci,responseType:hn,withCredentials:Xn,transferCache:Hn})}}var U=function(lt){return lt[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt}(U||{});class se{constructor(Ht,$t=200,pn="OK"){this.headers=Ht.headers||new V,this.status=void 0!==Ht.status?Ht.status:$t,this.statusText=Ht.statusText||pn,this.url=Ht.url||null,this.ok=this.status>=200&&this.status<300}}class Be extends se{constructor(Ht={}){super(Ht),this.type=U.ResponseHeader}clone(Ht={}){return new Be({headers:Ht.headers||this.headers,status:void 0!==Ht.status?Ht.status:this.status,statusText:Ht.statusText||this.statusText,url:Ht.url||this.url||void 0})}}class Pt extends se{constructor(Ht={}){super(Ht),this.type=U.Response,this.body=void 0!==Ht.body?Ht.body:null}clone(Ht={}){return new Pt({body:void 0!==Ht.body?Ht.body:this.body,headers:Ht.headers||this.headers,status:void 0!==Ht.status?Ht.status:this.status,statusText:Ht.statusText||this.statusText,url:Ht.url||this.url||void 0})}}class gt extends se{constructor(Ht){super(Ht,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ht.url||"(unknown url)"}`:`Http failure response for ${Ht.url||"(unknown url)"}: ${Ht.status} ${Ht.statusText}`,this.error=Ht.error||null}}function xt(lt,Ht){return{body:Ht,headers:lt.headers,context:lt.context,observe:lt.observe,params:lt.params,reportProgress:lt.reportProgress,responseType:lt.responseType,withCredentials:lt.withCredentials,transferCache:lt.transferCache}}let st=(()=>{class lt{constructor($t){this.handler=$t}request($t,pn,hn={}){let Hn;if($t instanceof R)Hn=$t;else{let ci,_i;ci=hn.headers instanceof V?hn.headers:new V(hn.headers),hn.params&&(_i=hn.params instanceof ve?hn.params:new ve({fromObject:hn.params})),Hn=new R($t,pn,void 0!==hn.body?hn.body:null,{headers:ci,context:hn.context,params:_i,reportProgress:hn.reportProgress,responseType:hn.responseType||"json",withCredentials:hn.withCredentials,transferCache:hn.transferCache})}const En=(0,m.of)(Hn).pipe((0,K.H)(ci=>this.handler.handle(ci)));if($t instanceof R||"events"===hn.observe)return En;const Xn=En.pipe((0,L.p)(ci=>ci instanceof Pt));switch(hn.observe||"body"){case"body":switch(Hn.responseType){case"arraybuffer":return Xn.pipe((0,j.T)(ci=>{if(null!==ci.body&&!(ci.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ci.body}));case"blob":return Xn.pipe((0,j.T)(ci=>{if(null!==ci.body&&!(ci.body instanceof Blob))throw new Error("Response is not a Blob.");return ci.body}));case"text":return Xn.pipe((0,j.T)(ci=>{if(null!==ci.body&&"string"!=typeof ci.body)throw new Error("Response is not a string.");return ci.body}));default:return Xn.pipe((0,j.T)(ci=>ci.body))}case"response":return Xn;default:throw new Error(`Unreachable: unhandled observe type ${hn.observe}}`)}}delete($t,pn={}){return this.request("DELETE",$t,pn)}get($t,pn={}){return this.request("GET",$t,pn)}head($t,pn={}){return this.request("HEAD",$t,pn)}jsonp($t,pn){return this.request("JSONP",$t,{params:(new ve).append(pn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($t,pn={}){return this.request("OPTIONS",$t,pn)}patch($t,pn,hn={}){return this.request("PATCH",$t,xt(hn,pn))}post($t,pn,hn={}){return this.request("POST",$t,xt(hn,pn))}put($t,pn,hn={}){return this.request("PUT",$t,xt(hn,pn))}static#e=this.\u0275fac=function(pn){return new(pn||lt)(s.KVO(F))};static#t=this.\u0275prov=s.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const Ct=/^\)\]\}',?\n/;function Tt(lt){if(lt.url)return lt.url;const Ht="X-Request-URL".toLocaleLowerCase();return lt.headers.get(Ht)}let en=(()=>{class lt{constructor(){this.fetchImpl=(0,s.WQX)(Ut,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,s.WQX)(s.SKi)}handle($t){return new e.c(pn=>{const hn=new AbortController;return this.doRequest($t,hn.signal,pn).then(Lt,Hn=>pn.error(new gt({error:Hn}))),()=>hn.abort()})}doRequest($t,pn,hn){var Hn=this;return(0,t.A)(function*(){const En=Hn.createRequestInit($t);let Xn;try{const Mi=Hn.ngZone.runOutsideAngular(()=>Hn.fetchImpl($t.urlWithParams,{signal:pn,...En}));(function fn(lt){lt.then(Lt,Lt)})(Mi),hn.next({type:U.Sent}),Xn=yield Mi}catch(Mi){return void hn.error(new gt({error:Mi,status:Mi.status??0,statusText:Mi.statusText,url:$t.urlWithParams,headers:Mi.headers}))}const ci=new V(Xn.headers),_i=Xn.statusText,lo=Tt(Xn)??$t.urlWithParams;let bi=Xn.status,mn=null;if($t.reportProgress&&hn.next(new Be({headers:ci,status:bi,statusText:_i,url:lo})),Xn.body){const Mi=Xn.headers.get("content-length"),Ni=[],oo=Xn.body.getReader();let jo,Ki,Gi=0;const Jo=typeof Zone<"u"&&Zone.current;yield Hn.ngZone.runOutsideAngular((0,t.A)(function*(){for(;;){const{done:fo,value:uo}=yield oo.read();if(fo)break;if(Ni.push(uo),Gi+=uo.length,$t.reportProgress){Ki="text"===$t.responseType?(Ki??"")+(jo??=new TextDecoder).decode(uo,{stream:!0}):void 0;const pr=()=>hn.next({type:U.DownloadProgress,total:Mi?+Mi:void 0,loaded:Gi,partialText:Ki});Jo?Jo.run(pr):pr()}}}));const sr=Hn.concatChunks(Ni,Gi);try{const fo=Xn.headers.get("Content-Type")??"";mn=Hn.parseBody($t,sr,fo)}catch(fo){return void hn.error(new gt({error:fo,headers:new V(Xn.headers),status:Xn.status,statusText:Xn.statusText,url:Tt(Xn)??$t.urlWithParams}))}}0===bi&&(bi=mn?200:0),bi>=200&&bi<300?(hn.next(new Pt({body:mn,headers:ci,status:bi,statusText:_i,url:lo})),hn.complete()):hn.error(new gt({error:mn,headers:ci,status:bi,statusText:_i,url:lo}))})()}parseBody($t,pn,hn){switch($t.responseType){case"json":const Hn=(new TextDecoder).decode(pn).replace(Ct,"");return""===Hn?null:JSON.parse(Hn);case"text":return(new TextDecoder).decode(pn);case"blob":return new Blob([pn],{type:hn});case"arraybuffer":return pn.buffer}}createRequestInit($t){const pn={},hn=$t.withCredentials?"include":void 0;if($t.headers.forEach((Hn,En)=>pn[Hn]=En.join(",")),$t.headers.has("Accept")||(pn.Accept="application/json, text/plain, */*"),!$t.headers.has("Content-Type")){const Hn=$t.detectContentTypeHeader();null!==Hn&&(pn["Content-Type"]=Hn)}return{body:$t.serializeBody(),method:$t.method,headers:pn,credentials:hn}}concatChunks($t,pn){const hn=new Uint8Array(pn);let Hn=0;for(const En of $t)hn.set(En,Hn),Hn+=En.length;return hn}static#e=this.\u0275fac=function(pn){return new(pn||lt)};static#t=this.\u0275prov=s.jDH({token:lt,factory:lt.\u0275fac})}return lt})();class Ut{}function Lt(){}function $n(lt,Ht){return Ht(lt)}function zn(lt,Ht){return($t,pn)=>Ht.intercept($t,{handle:hn=>lt(hn,pn)})}const At=new s.nKC(""),Et=new s.nKC(""),St=new s.nKC(""),Wt=new s.nKC("",{providedIn:"root",factory:()=>!0});function Ue(){let lt=null;return(Ht,$t)=>{null===lt&&(lt=((0,s.WQX)(At,{optional:!0})??[]).reduceRight(zn,$n));const pn=(0,s.WQX)(s.TgB);if((0,s.WQX)(Wt)){const Hn=pn.add();return lt(Ht,$t).pipe((0,A.j)(()=>pn.remove(Hn)))}return lt(Ht,$t)}}let Pe,_e=(()=>{class lt extends F{constructor($t,pn){super(),this.backend=$t,this.injector=pn,this.chain=null,this.pendingTasks=(0,s.WQX)(s.TgB),this.contributeToStability=(0,s.WQX)(Wt)}handle($t){if(null===this.chain){const pn=Array.from(new Set([...this.injector.get(Et),...this.injector.get(St,[])]));this.chain=pn.reduceRight((hn,Hn)=>function bt(lt,Ht,$t){return(pn,hn)=>(0,s.N4e)($t,()=>Ht(pn,Hn=>lt(Hn,hn)))}(hn,Hn,this.injector),$n)}if(this.contributeToStability){const pn=this.pendingTasks.add();return this.chain($t,hn=>this.backend.handle(hn)).pipe((0,A.j)(()=>this.pendingTasks.remove(pn)))}return this.chain($t,pn=>this.backend.handle(pn))}static#e=this.\u0275fac=function(pn){return new(pn||lt)(s.KVO(X),s.KVO(s.uvJ))};static#t=this.\u0275prov=s.jDH({token:lt,factory:lt.\u0275fac})}return lt})(),ie=0;class Tn{}function Wn(){return"object"==typeof window?window:{}}let kn=(()=>{class lt{constructor($t,pn){this.callbackMap=$t,this.document=pn,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ie++}handle($t){if("JSONP"!==$t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==$t.responseType)throw new Error("JSONP requests must use Json response type.");if($t.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new e.c(pn=>{const hn=this.nextCallback(),Hn=$t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${hn}$1`),En=this.document.createElement("script");En.src=Hn;let Xn=null,ci=!1;this.callbackMap[hn]=mn=>{delete this.callbackMap[hn],Xn=mn,ci=!0};const _i=()=>{En.parentNode&&En.parentNode.removeChild(En),delete this.callbackMap[hn]};return En.addEventListener("load",mn=>{this.resolvedPromise.then(()=>{_i(),ci?(pn.next(new Pt({body:Xn,status:200,statusText:"OK",url:Hn})),pn.complete()):pn.error(new gt({url:Hn,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),En.addEventListener("error",mn=>{_i(),pn.error(new gt({error:mn,status:0,statusText:"JSONP Error",url:Hn}))}),this.document.body.appendChild(En),pn.next({type:U.Sent}),()=>{ci||this.removeListeners(En),_i()}})}removeListeners($t){Pe??=this.document.implementation.createHTMLDocument(),Pe.adoptNode($t)}static#e=this.\u0275fac=function(pn){return new(pn||lt)(s.KVO(Tn),s.KVO(w.qQ))};static#t=this.\u0275prov=s.jDH({token:lt,factory:lt.\u0275fac})}return lt})();function In(lt,Ht){return"JSONP"===lt.method?(0,s.WQX)(kn).handle(lt):Ht(lt)}const dn=/^\)\]\}',?\n/;let wn=(()=>{class lt{constructor($t){this.xhrFactory=$t}handle($t){if("JSONP"===$t.method)throw new s.wOt(-2800,!1);const pn=this.xhrFactory;return(pn.\u0275loadImpl?(0,M.H)(pn.\u0275loadImpl()):(0,m.of)(null)).pipe((0,I.n)(()=>new e.c(Hn=>{const En=pn.build();if(En.open($t.method,$t.urlWithParams),$t.withCredentials&&(En.withCredentials=!0),$t.headers.forEach((Ni,oo)=>En.setRequestHeader(Ni,oo.join(","))),$t.headers.has("Accept")||En.setRequestHeader("Accept","application/json, text/plain, */*"),!$t.headers.has("Content-Type")){const Ni=$t.detectContentTypeHeader();null!==Ni&&En.setRequestHeader("Content-Type",Ni)}if($t.responseType){const Ni=$t.responseType.toLowerCase();En.responseType="json"!==Ni?Ni:"text"}const Xn=$t.serializeBody();let ci=null;const _i=()=>{if(null!==ci)return ci;const Ni=En.statusText||"OK",oo=new V(En.getAllResponseHeaders()),Gi=function qt(lt){return"responseURL"in lt&<.responseURL?lt.responseURL:/^X-Request-URL:/m.test(lt.getAllResponseHeaders())?lt.getResponseHeader("X-Request-URL"):null}(En)||$t.url;return ci=new Be({headers:oo,status:En.status,statusText:Ni,url:Gi}),ci},lo=()=>{let{headers:Ni,status:oo,statusText:Gi,url:jo}=_i(),Ki=null;204!==oo&&(Ki=typeof En.response>"u"?En.responseText:En.response),0===oo&&(oo=Ki?200:0);let Jo=oo>=200&&oo<300;if("json"===$t.responseType&&"string"==typeof Ki){const sr=Ki;Ki=Ki.replace(dn,"");try{Ki=""!==Ki?JSON.parse(Ki):null}catch(fo){Ki=sr,Jo&&(Jo=!1,Ki={error:fo,text:Ki})}}Jo?(Hn.next(new Pt({body:Ki,headers:Ni,status:oo,statusText:Gi,url:jo||void 0})),Hn.complete()):Hn.error(new gt({error:Ki,headers:Ni,status:oo,statusText:Gi,url:jo||void 0}))},bi=Ni=>{const{url:oo}=_i(),Gi=new gt({error:Ni,status:En.status||0,statusText:En.statusText||"Unknown Error",url:oo||void 0});Hn.error(Gi)};let mn=!1;const Ui=Ni=>{mn||(Hn.next(_i()),mn=!0);let oo={type:U.DownloadProgress,loaded:Ni.loaded};Ni.lengthComputable&&(oo.total=Ni.total),"text"===$t.responseType&&En.responseText&&(oo.partialText=En.responseText),Hn.next(oo)},Mi=Ni=>{let oo={type:U.UploadProgress,loaded:Ni.loaded};Ni.lengthComputable&&(oo.total=Ni.total),Hn.next(oo)};return En.addEventListener("load",lo),En.addEventListener("error",bi),En.addEventListener("timeout",bi),En.addEventListener("abort",bi),$t.reportProgress&&(En.addEventListener("progress",Ui),null!==Xn&&En.upload&&En.upload.addEventListener("progress",Mi)),En.send(Xn),Hn.next({type:U.Sent}),()=>{En.removeEventListener("error",bi),En.removeEventListener("abort",bi),En.removeEventListener("load",lo),En.removeEventListener("timeout",bi),$t.reportProgress&&(En.removeEventListener("progress",Ui),null!==Xn&&En.upload&&En.upload.removeEventListener("progress",Mi)),En.readyState!==En.DONE&&En.abort()}})))}static#e=this.\u0275fac=function(pn){return new(pn||lt)(s.KVO(w.N0))};static#t=this.\u0275prov=s.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const Vt=new s.nKC(""),ue=new s.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ee=new s.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Xe{}let dt=(()=>{class lt{constructor($t,pn,hn){this.doc=$t,this.platform=pn,this.cookieName=hn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $t=this.doc.cookie||"";return $t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w._b)($t,this.cookieName),this.lastCookieString=$t),this.lastToken}static#e=this.\u0275fac=function(pn){return new(pn||lt)(s.KVO(w.qQ),s.KVO(s.Agw),s.KVO(ue))};static#t=this.\u0275prov=s.jDH({token:lt,factory:lt.\u0275fac})}return lt})();function at(lt,Ht){const $t=lt.url.toLowerCase();if(!(0,s.WQX)(Vt)||"GET"===lt.method||"HEAD"===lt.method||$t.startsWith("http://")||$t.startsWith("https://"))return Ht(lt);const pn=(0,s.WQX)(Xe).getToken(),hn=(0,s.WQX)(ee);return null!=pn&&!lt.headers.has(hn)&&(lt=lt.clone({headers:lt.headers.set(hn,pn)})),Ht(lt)}var Qe=function(lt){return lt[lt.Interceptors=0]="Interceptors",lt[lt.LegacyInterceptors=1]="LegacyInterceptors",lt[lt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",lt[lt.NoXsrfProtection=3]="NoXsrfProtection",lt[lt.JsonpSupport=4]="JsonpSupport",lt[lt.RequestsMadeViaParent=5]="RequestsMadeViaParent",lt[lt.Fetch=6]="Fetch",lt}(Qe||{});function be(lt,Ht){return{\u0275kind:lt,\u0275providers:Ht}}function Je(...lt){const Ht=[st,wn,_e,{provide:F,useExisting:_e},{provide:X,useFactory:()=>(0,s.WQX)(en,{optional:!0})??(0,s.WQX)(wn)},{provide:Et,useValue:at,multi:!0},{provide:Vt,useValue:!0},{provide:Xe,useClass:dt}];for(const $t of lt)Ht.push(...$t.\u0275providers);return(0,s.EmA)(Ht)}const ze=new s.nKC("");function mt(){return be(Qe.LegacyInterceptors,[{provide:ze,useFactory:Ue},{provide:Et,useExisting:ze,multi:!0}])}function Ke({cookieName:lt,headerName:Ht}){const $t=[];return void 0!==lt&&$t.push({provide:ue,useValue:lt}),void 0!==Ht&&$t.push({provide:ee,useValue:Ht}),be(Qe.CustomXsrfConfiguration,$t)}function Re(){return be(Qe.JsonpSupport,[kn,{provide:Tn,useFactory:Wn},{provide:Et,useValue:In,multi:!0}])}},3953:(Rt,De,a)=>{function t(n,i){return Object.is(n,i)}a.d(De,{bc$:()=>Rp,iLQ:()=>Ef,sZ2:()=>Dd,hnV:()=>l_,Hbi:()=>vM,o8S:()=>Jl,BIS:()=>Np,gRc:()=>T_,Ql9:()=>Hz,OM3:()=>ip,rjb:()=>ig,Ocv:()=>Qz,Z63:()=>ar,aKT:()=>Bt,uvJ:()=>_s,zcH:()=>Js,bkB:()=>Sn,y_5:()=>ps,$GK:()=>so,nKC:()=>xi,zZn:()=>Nr,_q3:()=>g8,MKu:()=>v8,xe9:()=>Mf,Co$:()=>Zg,Vns:()=>Ah,SKi:()=>Ir,Xx1:()=>Lr,Agw:()=>n2,PLl:()=>g4,rOR:()=>an,sFG:()=>Zy,_9s:()=>B3,czy:()=>nn,WPN:()=>Au,FRM:()=>xl,kdw:()=>ms,C4Q:()=>K4,NYb:()=>Nz,giA:()=>a_,ZUJ:()=>cu,RxE:()=>q7,c1b:()=>K0,gXe:()=>ws,mal:()=>mg,Tzd:()=>fg,L39:()=>ZM,EWP:()=>tS,a0P:()=>aS,Ol2:()=>s6,w6W:()=>ZC,oH4:()=>y_,QZP:()=>r9,SmG:()=>nM,Rfq:()=>Vn,WQX:()=>Yn,naY:()=>tM,Hps:()=>t6,QuC:()=>qs,EmA:()=>eu,Udg:()=>qM,fpN:()=>gM,HJs:()=>cS,N4e:()=>ru,vPA:()=>Ag,O8t:()=>nS,H3F:()=>e_,zAP:()=>X_,H8p:()=>El,KH2:()=>X2,YHP:()=>sa,FOc:()=>U0,TgB:()=>Xt,wOt:()=>An,WHO:()=>r_,e01:()=>s_,lNU:()=>ro,h9k:()=>_0,$MX:()=>Sh,ZF7:()=>B1,Kcf:()=>t0,e5t:()=>r0,UyX:()=>v2,cWb:()=>n0,osQ:()=>o0,H5H:()=>R6,Zy3:()=>_o,xtB:()=>gi,mq5:()=>r5,JZv:()=>zo,LfX:()=>Aa,plB:()=>Rd,jNT:()=>r8,zjR:()=>c_,XSP:()=>OE,TL$:()=>m4,Tbb:()=>de,rcV:()=>ll,Vt3:()=>i6,GFd:()=>Jg,OA$:()=>qc,Jv_:()=>m7,aNF:()=>g7,R7$:()=>dm,BMQ:()=>y6,HbH:()=>Lv,ZvI:()=>Yv,AVh:()=>S6,BUC:()=>Wv,vxM:()=>Jv,wni:()=>B5,SS7:()=>K6,VBU:()=>ln,FsC:()=>os,jDH:()=>mo,G2t:()=>Yr,$C:()=>Ai,EJ8:()=>Cr,rXU:()=>M2,nrm:()=>x6,eu8:()=>P6,bVm:()=>hf,qex:()=>df,k0s:()=>uf,j41:()=>lf,RV6:()=>o5,xGo:()=>Wh,Mr5:()=>F6,KVO:()=>Yi,kS0:()=>xu,QTQ:()=>pm,bIt:()=>V6,lsd:()=>j5,qSk:()=>Qd,XpG:()=>w5,nI1:()=>P7,bMT:()=>F7,i5U:()=>A7,brH:()=>R7,ii3:()=>N7,SdG:()=>P5,NAR:()=>x5,Y8G:()=>T6,FS9:()=>$6,Mz_:()=>gf,FCK:()=>H6,lJ4:()=>C7,eq3:()=>b7,l_i:()=>E7,sMw:()=>T7,ziG:()=>z7,s1E:()=>M7,l4e:()=>S7,mGM:()=>H5,r8f:()=>p7,sdS:()=>U5,Dyx:()=>t5,Z7z:()=>e5,fX1:()=>qv,Vm6:()=>Zv,Njj:()=>_1,tSv:()=>O0,eBV:()=>v1,npT:()=>C0,$dS:()=>b0,B4B:()=>L4,n$t:()=>T0,wjB:()=>v7,bH3:()=>h7,Aen:()=>Kl,muq:()=>G5,xc7:()=>M6,Kam:()=>L6,zvX:()=>A6,DNE:()=>c6,C5r:()=>k7,EFF:()=>t7,JRh:()=>U6,SpI:()=>vf,Lme:()=>G6,DH7:()=>u7,mxI:()=>W6,R50:()=>Y6,GBs:()=>$5});let s=null,m=!1,e=1;const M=Symbol("SIGNAL");function K(n){const i=s;return s=n,i}const I={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function w(n){if(m)throw new Error("");if(null===s)return;s.consumerOnSignalRead(n);const i=s.nextProducerIndex++;Y(s),in.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function Oe(n){Y(n);for(let i=0;i0}function Y(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function z(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function Z(n){return void 0!==n.producerNode}const E=Symbol("UNSET"),S=Symbol("COMPUTING"),R=Symbol("ERRORED"),U={...I,value:E,dirty:!0,error:null,equal:t,producerMustRecompute:n=>n.value===E||n.value===S,producerRecomputeValue(n){if(n.value===S)throw new Error("Detected cycle in computations.");const i=n.value;n.value=S;const o=J(n);let r;try{r=n.computation()}catch(l){r=R,n.error=l}finally{Ee(n,o)}i!==E&&i!==R&&r!==R&&n.equal(i,r)?n.value=i:(n.value=r,n.version++)}};let Be=function se(){throw new Error};function Pt(){Be()}let wt=null;function st(n,i){x()||Pt(),n.equal(n.value,i)||(n.value=i,function en(n){n.version++,function F(){e++}(),V(n),wt?.()}(n))}const Tt={...I,equal:t,value:void 0};const Lt=()=>{},fn={...I,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{null!==n.schedule&&n.schedule(n.ref)},hasRun:!1,cleanupFn:Lt};var zn=a(4412),bt=a(1413),At=a(8359),Et=a(6354);typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const ro="https://g.co/ng/security#xss";class An extends Error{constructor(i,o){super(_o(i,o)),this.code=i}}function _o(n,i){return`NG0${Math.abs(n)}${i?": "+i:""}`}function vr(n){return{toString:n}.toString()}const fr="__parameters__";function Uo(n,i,o){return vr(()=>{const r=function xr(n){return function(...o){if(n){const r=n(...o);for(const l in r)this[l]=r[l]}}}(i);function l(...f){if(this instanceof l)return r.apply(this,f),this;const y=new l(...f);return D.annotation=y,D;function D($,Se,He){const _t=$.hasOwnProperty(fr)?$[fr]:Object.defineProperty($,fr,{value:[]})[fr];for(;_t.length<=He;)_t.push(null);return(_t[He]=_t[He]||[]).push(y),$}}return o&&(l.prototype=Object.create(o.prototype)),l.prototype.ngMetadataName=n,l.annotationCls=l,l})}const zo=globalThis;function Ze(n){for(let i in n)if(n[i]===Ze)return i;throw Error("Could not find renamed property on target object.")}function Fn(n,i){for(const o in i)i.hasOwnProperty(o)&&!n.hasOwnProperty(o)&&(n[o]=i[o])}function de(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(de).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const i=n.toString();if(null==i)return""+i;const o=i.indexOf("\n");return-1===o?i:i.substring(0,o)}function We(n,i){return null==n||""===n?null===i?"":i:null==i||""===i?n:n+" "+i}const sn=Ze({__forward_ref__:Ze});function Vn(n){return n.__forward_ref__=Vn,n.toString=function(){return de(this())},n}function Ln(n){return fi(n)?n():n}function fi(n){return"function"==typeof n&&n.hasOwnProperty(sn)&&n.__forward_ref__===Vn}function mo(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Yr(n){return{providers:n.providers||[],imports:n.imports||[]}}function Zs(n){return mr(n,ds)||mr(n,ra)}function Aa(n){return null!==Zs(n)}function mr(n,i){return n.hasOwnProperty(i)?n[i]:null}function Hs(n){return n&&(n.hasOwnProperty(dc)||n.hasOwnProperty(Wr))?n[dc]:null}const ds=Ze({\u0275prov:Ze}),dc=Ze({\u0275inj:Ze}),ra=Ze({ngInjectableDef:Ze}),Wr=Ze({ngInjectorDef:Ze});class xi{constructor(i,o){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=mo({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function yr(n){return n&&!!n.\u0275providers}const Ts=Ze({\u0275cmp:Ze}),ka=Ze({\u0275dir:Ze}),sa=Ze({\u0275pipe:Ze}),Fc=Ze({\u0275mod:Ze}),zs=Ze({\u0275fac:Ze}),Va=Ze({__NG_ELEMENT_ID__:Ze}),hc=Ze({__NG_ENV_ID__:Ze});function Vi(n){return"string"==typeof n?n:null==n?"":String(n)}function Us(n,i){throw new An(-201,!1)}var so=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(so||{});let La;function fc(){return La}function Go(n){const i=La;return La=n,i}function Vr(n,i,o){const r=Zs(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:o&so.Optional?null:void 0!==i?i:void Us()}const Ba={},mc="__NG_DI_FLAG__",G="ngTempTokenPath",Te=/\n/gm,Nt="__source";let gn;function di(n){const i=gn;return gn=n,i}function yo(n,i=so.Default){if(void 0===gn)throw new An(-203,!1);return null===gn?Vr(n,void 0,i):gn.get(n,i&so.Optional?null:void 0,i)}function Yi(n,i=so.Default){return(fc()||yo)(Ln(n),i)}function Yn(n,i=so.Default){return Yi(n,Io(i))}function Io(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Wi(n){const i=[];for(let o=0;o({token:n})),-1),Lr=Po(Uo("Optional"),8),ms=Po(Uo("SkipSelf"),4);function Os(n,i){return n.hasOwnProperty(zs)?n[zs]:null}function ns(n,i){n.forEach(o=>Array.isArray(o)?ns(o,i):i(o))}function to(n,i,o){i>=n.length?n.push(o):n.splice(i,0,o)}function _a(n,i){return i>=n.length-1?n.pop():n.splice(i,1)[0]}function Dr(n,i,o){let r=$a(n,i);return r>=0?n[1|r]=o:(r=~r,function Nc(n,i,o,r){let l=n.length;if(l==i)n.push(o,r);else if(1===l)n.push(r,n[0]),n[0]=o;else{for(l--,n.push(n[l-1],n[l]);l>i;)n[l]=n[l-2],l--;n[i]=o,n[i+1]=r}}(n,r,i,o)),r}function fl(n,i){const o=$a(n,i);if(o>=0)return n[1|o]}function $a(n,i){return function _c(n,i,o){let r=0,l=n.length>>o;for(;l!==r;){const f=r+(l-r>>1),y=n[f<i?l=f:r=f+1}return~(l<i){y=f-1;break}}}for(;f-1){let f;for(;++lf?"":l[He+1].toLowerCase(),2&r&&Se!==_t){if(vs(r))return!1;y=!0}}}}else{if(!y&&!vs(r)&&!vs($))return!1;if(y&&vs($))continue;y=!1,r=$|1&r}}return vs(r)||y}function vs(n){return!(1&n)}function ql(n,i,o,r){if(null===i)return-1;let l=0;if(r||!o){let f=!1;for(;l-1)for(o++;o0?'="'+D+'"':"")+"]"}else 8&r?l+="."+y:4&r&&(l+=" "+y);else""!==l&&!vs(y)&&(i+=$e(f,l),l=""),r=y,f=f||!vs(r);o++}return""!==l&&(i+=$e(f,l)),i}function ln(n){return vr(()=>{const i=vl(n),o={...i,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Vc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||ws.Emulated,styles:n.styles||go,_:null,schemas:n.schemas||null,tView:null,id:""};_l(o);const r=n.dependencies;return o.directiveDefs=yl(r,!1),o.pipeDefs=yl(r,!0),o.id=function $d(n){let i=0;const o=[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 l of o)i=Math.imul(31,i)+l.charCodeAt(0)|0;return i+=2147483648,"c"+i}(o),o})}function ri(n){return Bi(n)||Mo(n)}function Fi(n){return null!==n}function Ai(n){return vr(()=>({type:n.type,bootstrap:n.bootstrap||go,declarations:n.declarations||go,imports:n.imports||go,exports:n.exports||go,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Fo(n,i){if(null==n)return Jr;const o={};for(const r in n)if(n.hasOwnProperty(r)){const l=n[r];let f,y,D=xs.None;Array.isArray(l)?(D=l[0],f=l[1],y=l[2]??f):(f=l,y=l),i?(o[f]=D!==xs.None?[r,D]:r,i[f]=y):o[f]=r}return o}function os(n){return vr(()=>{const i=vl(n);return _l(i),i})}function Cr(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 Bi(n){return n[Ts]||null}function Mo(n){return n[ka]||null}function er(n){return n[sa]||null}function qs(n){const i=Bi(n)||Mo(n)||er(n);return null!==i&&i.standalone}function tr(n,i){const o=n[Fc]||null;if(!o&&!0===i)throw new Error(`Type ${de(n)} does not have '\u0275mod' property.`);return o}function vl(n){const i={};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:i,inputTransforms:null,inputConfig:n.inputs||Jr,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||go,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Fo(n.inputs,i),outputs:Fo(n.outputs),debugInfo:null}}function _l(n){n.features?.forEach(i=>i(n))}function yl(n,i){if(!n)return null;const o=i?er:ri;return()=>("function"==typeof n?n():n).map(r=>o(r)).filter(Fi)}function eu(n){return{\u0275providers:n}}function Hd(...n){return{\u0275providers:Hc(0,n),\u0275fromNgModule:!0}}function Hc(n,...i){const o=[],r=new Set;let l;const f=y=>{o.push(y)};return ns(i,y=>{const D=y;jc(D,f,[],r)&&(l||=[],l.push(D))}),void 0!==l&&ju(l,f),o}function ju(n,i){for(let o=0;o{i(f,r)})}}function jc(n,i,o,r){if(!(n=Ln(n)))return!1;let l=null,f=Hs(n);const y=!f&&Bi(n);if(f||y){if(y&&!y.standalone)return!1;l=n}else{const $=n.ngModule;if(f=Hs($),!f)return!1;l=$}const D=r.has(l);if(y){if(D)return!1;if(r.add(l),y.dependencies){const $="function"==typeof y.dependencies?y.dependencies():y.dependencies;for(const Se of $)jc(Se,i,o,r)}}else{if(!f)return!1;{if(null!=f.imports&&!D){let Se;r.add(l);try{ns(f.imports,He=>{jc(He,i,o,r)&&(Se||=[],Se.push(He))})}finally{}void 0!==Se&&ju(Se,i)}if(!D){const Se=Os(l)||(()=>new l);i({provide:l,useFactory:Se,deps:go},l),i({provide:la,useValue:l,multi:!0},l),i({provide:ar,useValue:()=>Yi(l),multi:!0},l)}const $=f.providers;if(null!=$&&!D){const Se=n;Cl($,He=>{i(He,Se)})}}}return l!==n&&void 0!==n.providers}function Cl(n,i){for(let o of n)yr(o)&&(o=o.\u0275providers),Array.isArray(o)?Cl(o,i):i(o)}const Uu=Ze({provide:String,useValue:Ze});function bl(n){return null!==n&&"object"==typeof n&&Uu in n}function ba(n){return"function"==typeof n}const El=new xi(""),Uc={},Yu={};let Tl;function Gc(){return void 0===Tl&&(Tl=new ua),Tl}class _s{}class Ha extends _s{get destroyed(){return this._destroyed}constructor(i,o,r,l){super(),this.parent=o,this.source=r,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,zl(i,y=>this.processProvider(y)),this.records.set(kc,ja(void 0,this)),l.has("environment")&&this.records.set(_s,ja(void 0,this));const f=this.records.get(El);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get(la,go,so.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const i=K(null);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(),K(i)}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const o=di(this),r=Go(void 0);try{return i()}finally{di(o),Go(r)}}get(i,o=Ba,r=so.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(hc))return i[hc](this);r=Io(r);const f=di(this),y=Go(void 0);try{if(!(r&so.SkipSelf)){let $=this.records.get(i);if(void 0===$){const Se=function Ju(n){return"function"==typeof n||"object"==typeof n&&n instanceof xi}(i)&&Zs(i);$=Se&&this.injectableDefInScope(Se)?ja(iu(i),Uc):null,this.records.set(i,$)}if(null!=$)return this.hydrate(i,$)}return(r&so.Self?Gc():this.parent).get(i,o=r&so.Optional&&o===Ba?null:o)}catch(D){if("NullInjectorError"===D.name){if((D[G]=D[G]||[]).unshift(de(i)),f)throw D;return function Pr(n,i,o,r){const l=n[G];throw i[Nt]&&l.unshift(i[Nt]),n.message=function Ds(n,i,o,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let l=de(i);if(Array.isArray(i))l=i.map(de).join(" -> ");else if("object"==typeof i){let f=[];for(let y in i)if(i.hasOwnProperty(y)){let D=i[y];f.push(y+":"+("string"==typeof D?JSON.stringify(D):de(D)))}l=`{${f.join(", ")}}`}return`${o}${r?"("+r+")":""}[${l}]: ${n.replace(Te,"\n ")}`}("\n"+n.message,l,o,r),n.ngTokenPath=l,n[G]=null,n}(D,i,"R3InjectorError",this.source)}throw D}finally{Go(y),di(f)}}resolveInjectorInitializers(){const i=K(null),o=di(this),r=Go(void 0);try{const f=this.get(ar,go,so.Self);for(const y of f)y()}finally{di(o),Go(r),K(i)}}toString(){const i=[],o=this.records;for(const r of o.keys())i.push(de(r));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new An(205,!1)}processProvider(i){let o=ba(i=Ln(i))?i:Ln(i&&i.provide);const r=function Ku(n){return bl(n)?ja(void 0,n.useValue):ja(ou(n),Uc)}(i);if(!ba(i)&&!0===i.multi){let l=this.records.get(o);l||(l=ja(void 0,Uc,!0),l.factory=()=>Wi(l.multi),this.records.set(o,l)),o=i,l.multi.push(i)}this.records.set(o,r)}hydrate(i,o){const r=K(null);try{return o.value===Uc&&(o.value=Yu,o.value=o.factory()),"object"==typeof o.value&&o.value&&function Qu(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}finally{K(r)}}injectableDefInScope(i){if(!i.providedIn)return!1;const o=Ln(i.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}removeOnDestroy(i){const o=this._onDestroyHooks.indexOf(i);-1!==o&&this._onDestroyHooks.splice(o,1)}}function iu(n){const i=Zs(n),o=null!==i?i.factory:Os(n);if(null!==o)return o;if(n instanceof xi)throw new An(204,!1);if(n instanceof Function)return function Wu(n){if(n.length>0)throw new An(204,!1);const o=function ga(n){return n&&(n[ds]||n[ra])||null}(n);return null!==o?()=>o.factory(n):()=>new n}(n);throw new An(204,!1)}function ou(n,i,o){let r;if(ba(n)){const l=Ln(n);return Os(l)||iu(l)}if(bl(n))r=()=>Ln(n.useValue);else if(function nu(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...Wi(n.deps||[]));else if(function tu(n){return!(!n||!n.useExisting)}(n))r=()=>Yi(Ln(n.useExisting));else{const l=Ln(n&&(n.useClass||n.provide));if(!function Xu(n){return!!n.deps}(n))return Os(l)||iu(l);r=()=>new l(...Wi(n.deps))}return r}function ja(n,i,o=!1){return{factory:n,value:i,multi:o?[]:void 0}}function zl(n,i){for(const o of n)Array.isArray(o)?zl(o,i):o&&yr(o)?zl(o.\u0275providers,i):i(o)}function ru(n,i){n instanceof Ha&&n.assertNotDestroyed();const r=di(n),l=Go(void 0);try{return i()}finally{di(r),Go(l)}}function su(){return void 0!==fc()||null!=function Pn(){return gn}()}function Yc(n){if(!su())throw new An(-203,!1)}const cu=Function;const Ao=0,ni=1,Pi=2,cr=3,Ps=4,Or=5,Br=6,Ga=7,Ro=8,lr=9,Fs=10,Ri=11,Ea=12,Sl=13,Ya=14,Wo=15,Ta=16,Wa=17,Ys=18,Ka=19,yc=20,da=21,Xc=22,ys=23,Ti=25,Dl=1,Ws=7,Xa=9,ir=10;var za=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(za||{});function br(n){return Array.isArray(n)&&"object"==typeof n[Dl]}function Fr(n){return Array.isArray(n)&&!0===n[Dl]}function Ol(n){return!!(4&n.flags)}function Ma(n){return n.componentOffset>-1}function Jc(n){return!(1&~n.flags)}function As(n){return!!n.template}function bc(n){return!!(512&n[Pi])}class xl{constructor(i,o,r){this.previousValue=i,this.currentValue=o,this.firstChange=r}isFirstChange(){return this.firstChange}}function Pl(n,i,o,r){null!==i?i.applyValueToInputSignal(i,r):n[o]=r}function qc(){return Fl}function Fl(n){return n.type.prototype.ngOnChanges&&(n.setInput=du),l1}function l1(){const n=hu(this),i=n?.current;if(i){const o=n.previous;if(o===Jr)n.previous=i;else for(let r in i)o[r]=i[r];n.current=null,this.ngOnChanges(i)}}function du(n,i,o,r,l){const f=this.declaredInputs[r],y=hu(n)||function pu(n,i){return n[Al]=i}(n,{previous:Jr,current:null}),D=y.current||(y.current={}),$=y.previous,Se=$[f];D[f]=new xl(Se&&Se.currentValue,o,$===Jr),Pl(n,i,l,o)}qc.ngInherit=!0;const Al="__ngSimpleChanges__";function hu(n){return n[Al]||null}const Ks=function(n,i,o){},fu="svg";function vo(n){for(;Array.isArray(n);)n=n[Ao];return n}function Qa(n,i){return vo(i[n])}function Hr(n,i){return vo(i[n.index])}function kl(n,i){return n.data[i]}function Sa(n,i){return n[i]}function Cs(n,i){const o=i[n];return br(o)?o:o[Ao]}function mu(n){return!(128&~n[Pi])}function Rs(n,i){return null==i?null:n[i]}function d1(n){n[Wa]=0}function h1(n){1024&n[Pi]||(n[Pi]|=1024,mu(n)&&Vl(n))}function Ec(n){return!!(9216&n[Pi]||n[ys]?.dirty)}function Za(n){n[Fs].changeDetectionScheduler?.notify(7),64&n[Pi]&&(n[Pi]|=1024),Ec(n)&&Vl(n)}function Vl(n){n[Fs].changeDetectionScheduler?.notify(0);let i=Xs(n);for(;null!==i&&!(8192&i[Pi])&&(i[Pi]|=8192,mu(i));)i=Xs(i)}function Ll(n,i){if(!(256&~n[Pi]))throw new An(911,!1);null===n[da]&&(n[da]=[]),n[da].push(i)}function Xs(n){const i=n[cr];return Fr(i)?i[cr]:i}const $i={lFrame:Cu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let f1=!1;function g1(){return $i.bindingsEnabled}function qa(){return null!==$i.skipHydrationRootTNode}function Dn(){return $i.lFrame.lView}function io(){return $i.lFrame.tView}function v1(n){return $i.lFrame.contextLView=n,n[Ro]}function _1(n){return $i.lFrame.contextLView=null,n}function wo(){let n=tl();for(;null!==n&&64===n.type;)n=n.parent;return n}function tl(){return $i.lFrame.currentTNode}function $o(n,i){const o=$i.lFrame;o.currentTNode=n,o.isParent=i}function ec(){return $i.lFrame.isParent}function Tc(){$i.lFrame.isParent=!1}function nl(){return $i.lFrame.contextLView}function y1(){return f1}function _u(n){f1=n}function g(){const n=$i.lFrame;let i=n.bindingRootIndex;return-1===i&&(i=n.bindingRootIndex=n.tView.bindingStartIndex),i}function vt(){return $i.lFrame.bindingIndex++}function ha(n){const i=$i.lFrame,o=i.bindingIndex;return i.bindingIndex=i.bindingIndex+n,o}function ji(n,i){const o=$i.lFrame;o.bindingIndex=o.bindingRootIndex=n,il(i)}function il(n){$i.lFrame.currentDirectiveIndex=n}function C1(n){const i=$i.lFrame.currentDirectiveIndex;return-1===i?null:n[i]}function zc(){return $i.lFrame.currentQueryIndex}function Mc(n){$i.lFrame.currentQueryIndex=n}function Ns(n){const i=n[ni];return 2===i.type?i.declTNode:1===i.type?n[Or]:null}function Kd(n,i,o){if(o&so.SkipSelf){let l=i,f=n;for(;!(l=l.parent,null!==l||o&so.Host||(l=Ns(f),null===l||(f=f[Ya],10&l.type))););if(null===l)return!1;i=l,n=f}const r=$i.lFrame=b1();return r.currentTNode=i,r.lView=n,!0}function md(n){const i=b1(),o=n[ni];$i.lFrame=i,i.currentTNode=o.firstChild,i.lView=n,i.tView=o,i.contextLView=n,i.bindingIndex=o.bindingStartIndex,i.inI18n=!1}function b1(){const n=$i.lFrame,i=null===n?null:n.child;return null===i?Cu(n):i}function Cu(n){const i={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=i),i}function or(){const n=$i.lFrame;return $i.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Rr=or;function ol(){const n=or();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 jr(){return $i.lFrame.selectedIndex}function rl(n){$i.lFrame.selectedIndex=n}function Ko(){const n=$i.lFrame;return kl(n.tView,n.selectedIndex)}function Qd(){$i.lFrame.currentNamespace=fu}let Zd=!0;function jl(){return Zd}function Qs(n){Zd=n}function bu(n,i){for(let o=i.directiveStart,r=i.directiveEnd;o=r)break}else i[$]<0&&(n[Wa]+=65536),(D>14>16&&(3&n[Pi])===i&&(n[Pi]+=16384,tc(D,f)):tc(D,f)}const Tu=-1;class nc{constructor(i,o,r){this.factory=i,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=r}}const _d={};class pa{constructor(i,o){this.injector=i,this.parentInjector=o}get(i,o,r){r=Io(r);const l=this.injector.get(i,_d,r);return l!==_d||o===_d?l:this.parentInjector.get(i,o,r)}}function T1(n){return n!==Tu}function Oc(n){return 32767&n}function al(n,i){let o=function eh(n){return n>>16}(n),r=i;for(;o>0;)r=r[Ya],o--;return r}let Mu=!0;function Su(n){const i=Mu;return Mu=n,i}const Cd=255,z1=5;let Uh=0;const fa={};function Ou(n,i){const o=M1(n,i);if(-1!==o)return o;const r=i[ni];r.firstCreatePass&&(n.injectorIndex=i.length,bd(r.data,n),bd(i,null),bd(r.blueprint,null));const l=Yl(n,i),f=n.injectorIndex;if(T1(l)){const y=Oc(l),D=al(l,i),$=D[ni].data;for(let Se=0;Se<8;Se++)i[f+Se]=D[y+Se]|$[y+Se]}return i[f+8]=l,f}function bd(n,i){n.push(0,0,0,0,0,0,0,0,i)}function M1(n,i){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===i[n.injectorIndex+8]?-1:n.injectorIndex}function Yl(n,i){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let o=0,r=null,l=i;for(;null!==l;){if(r=wu(l),null===r)return Tu;if(o++,l=l[Ya],-1!==r.injectorIndex)return r.injectorIndex|o<<16}return Tu}function S1(n,i,o){!function th(n,i,o){let r;"string"==typeof o?r=o.charCodeAt(0)||0:o.hasOwnProperty(Va)&&(r=o[Va]),null==r&&(r=o[Va]=Uh++);const l=r&Cd;i.data[n+(l>>z1)]|=1<=0?i&Cd:Yh:i}(o);if("function"==typeof f){if(!Kd(i,n,r))return r&so.Host?O1(l,0,r):Ed(i,o,r,l);try{let y;if(y=f(r),null!=y||r&so.Optional)return y;Us()}finally{Rr()}}else if("number"==typeof f){let y=null,D=M1(n,i),$=Tu,Se=r&so.Host?i[Wo][Or]:null;for((-1===D||r&so.SkipSelf)&&($=-1===D?Yl(n,i):i[D+8],$!==Tu&&nh(r,!1)?(y=i[ni],D=Oc($),i=al($,i)):D=-1);-1!==D;){const He=i[ni];if(P1(f,D,He.data)){const _t=x1(D,i,o,y,r,Se);if(_t!==fa)return _t}$=i[D+8],$!==Tu&&nh(r,i[ni].data[D+8]===Se)&&P1(f,D,i)?(y=He,D=Oc($),i=al($,i)):D=-1}}return l}function x1(n,i,o,r,l,f){const y=i[ni],D=y.data[n+8],He=Iu(D,y,o,null==r?Ma(D)&&Mu:r!=y&&!!(3&D.type),l&so.Host&&f===D);return null!==He?Ic(i,y,He,D):fa}function Iu(n,i,o,r,l){const f=n.providerIndexes,y=i.data,D=1048575&f,$=n.directiveStart,He=f>>20,Gt=l?D+He:n.directiveEnd;for(let Qt=r?D:D+He;Qt=$&&un.type===o)return Qt}if(l){const Qt=y[$];if(Qt&&As(Qt)&&Qt.type===o)return $}return null}function Ic(n,i,o,r){let l=n[o];const f=i.data;if(function $h(n){return n instanceof nc}(l)){const y=l;y.resolving&&function Ac(n,i){throw i&&i.join(" > "),new An(-200,n)}(function eo(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Vi(n)}(f[o]));const D=Su(y.canSeeViewProviders);y.resolving=!0;const Se=y.injectImpl?Go(y.injectImpl):null;Kd(n,r,so.Default);try{l=n[o]=y.factory(void 0,f,n,r),i.firstCreatePass&&o>=r.directiveStart&&function gd(n,i,o){const{ngOnChanges:r,ngOnInit:l,ngDoCheck:f}=i.type.prototype;if(r){const y=Fl(i);(o.preOrderHooks??=[]).push(n,y),(o.preOrderCheckHooks??=[]).push(n,y)}l&&(o.preOrderHooks??=[]).push(0-n,l),f&&((o.preOrderHooks??=[]).push(n,f),(o.preOrderCheckHooks??=[]).push(n,f))}(o,f[o],i)}finally{null!==Se&&Go(Se),Su(D),y.resolving=!1,Rr()}}return l}function P1(n,i,o){return!!(o[i+(n>>z1)]&1<{const i=n.prototype.constructor,o=i[zs]||F1(i),r=Object.prototype;let l=Object.getPrototypeOf(n.prototype).constructor;for(;l&&l!==r;){const f=l[zs]||F1(l);if(f&&f!==o)return f;l=Object.getPrototypeOf(l)}return f=>new f})}function F1(n){return fi(n)?()=>{const i=F1(Ln(n));return i&&i()}:Os(n)}function wu(n){const i=n[ni],o=i.type;return 2===o?i.declTNode:1===o?n[Or]:null}function xu(n){return function D1(n,i){if("class"===i)return n.classes;if("style"===i)return n.styles;const o=n.attrs;if(o){const r=o.length;let l=0;for(;lYi(kc)});static#i=this.__NG_ELEMENT_ID__=-1}new xi("").__NG_ELEMENT_ID__=n=>{const i=wo();if(null===i)throw new An(204,!1);if(2&i.type)return i.value;if(n&so.Optional)return null;throw new An(204,!1)};function zd(n){return n.ngOriginalError}class Js{constructor(){this._console=console}handleError(i){const o=this._findOriginalError(i);this._console.error("ERROR",i),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(i){let o=i&&zd(i);for(;o&&zd(o);)o=zd(o);return o||null}}const T=new xi("",{providedIn:"root",factory:()=>Yn(Js).handleError.bind(void 0)});let d=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=v;static#t=this.__NG_ENV_ID__=o=>o}return n})();class p extends d{constructor(i){super(),this._lView=i}onDestroy(i){return Ll(this._lView,i),()=>function gu(n,i){if(null===n[da])return;const o=n[da].indexOf(i);-1!==o&&n[da].splice(o,1)}(this._lView,i)}}function v(){return new p(Dn())}function yt(){return Dt(wo(),Dn())}function Dt(n,i){return new Bt(Hr(n,i))}let Bt=(()=>{class n{constructor(o){this.nativeElement=o}static#e=this.__NG_ELEMENT_ID__=yt}return n})();function jt(n){return n instanceof Bt?n.nativeElement:n}let Xt=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new zn.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new n})}return n})();const Sn=class vn extends bt.B{constructor(i=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=i,su()&&(this.destroyRef=Yn(d,{optional:!0})??void 0,this.pendingTasks=Yn(Xt,{optional:!0})??void 0)}emit(i){const o=K(null);try{super.next(i)}finally{K(o)}}subscribe(i,o,r){let l=i,f=o||(()=>null),y=r;if(i&&"object"==typeof i){const $=i;l=$.next?.bind($),f=$.error?.bind($),y=$.complete?.bind($)}this.__isAsync&&(f=this.wrapInTimeout(f),l&&(l=this.wrapInTimeout(l)),y&&(y=this.wrapInTimeout(y)));const D=super.subscribe({next:l,error:f,complete:y});return i instanceof At.yU&&i.add(D),D}wrapInTimeout(i){return o=>{const r=this.pendingTasks?.add();setTimeout(()=>{i(o),void 0!==r&&this.pendingTasks?.remove(r)})}}};function si(){return this._results[Symbol.iterator]()}class an{static#e=Symbol.iterator;get changes(){return this._changes??=new Sn}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const o=an.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=si)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,o){return this._results.reduce(i,o)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,o){this.dirty=!1;const r=function Yo(n){return n.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function vc(n,i,o){if(n.length!==i.length)return!1;for(let r=0;r=0){const D=vo(f[y]),$=Hi(f,y,D);dr(D,$),i=$;break}}}}return i||null}function Hi(n,i,o){return new Di(n[Ka],i,o)}const Tr="__ngContext__";function dr(n,i){br(i)?(n[Tr]=i[Ka],function Oa(n){ur.set(n[Ka],n)}(i)):n[Tr]=i}function Ho(n){const i=n[Tr];return"number"==typeof i?Md(i):i||null}function dh(n){return n&&n.constructor&&n.constructor.\u0275cmp}function rc(n,i){const o=n[ni];for(let r=Ti;rAp}),Ap="ng",g4=new xi(""),n2=new xi("",{providedIn:"platform",factory:()=>"unknown"}),Rp=new xi(""),Np=new xi("",{providedIn:"root",factory:()=>Wl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let v4=()=>null;function u2(n,i,o=!1){return v4(n,i,o)}const M4=new xi("",{providedIn:"root",factory:()=>!1});let Eh,zh;function L1(n){return function m2(){if(void 0===Eh&&(Eh=null,zo.trustedTypes))try{Eh=zo.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Eh}()?.createHTML(n)||n}function g2(){if(void 0===zh&&(zh=null,zo.trustedTypes))try{zh=zo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return zh}function Mh(n){return g2()?.createHTML(n)||n}function I4(n){return g2()?.createScriptURL(n)||n}class Fu{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ro})`}}class Qp extends Fu{getTypeName(){return"HTML"}}class Jp extends Fu{getTypeName(){return"Style"}}class w4 extends Fu{getTypeName(){return"Script"}}class Zp extends Fu{getTypeName(){return"URL"}}class qp extends Fu{getTypeName(){return"ResourceURL"}}function ll(n){return n instanceof Fu?n.changingThisBreaksApplicationSecurity:n}function B1(n,i){const o=function e0(n){return n instanceof Fu&&n.getTypeName()||null}(n);if(null!=o&&o!==i){if("ResourceURL"===o&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${o} (see ${ro})`)}return o===i}function t0(n){return new Qp(n)}function n0(n){return new Jp(n)}function v2(n){return new w4(n)}function o0(n){return new Zp(n)}function r0(n){return new qp(n)}class s0{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const o=(new window.DOMParser).parseFromString(L1(i),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(i):(o.removeChild(o.firstChild),o)}catch{return null}}}class a0{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const o=this.inertDocument.createElement("template");return o.innerHTML=L1(i),o}}const l0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Sh(n){return(n=String(n)).match(l0)?n:"unsafe:"+n}function ul(n){const i={};for(const o of n.split(","))i[o]=!0;return i}function $1(...n){const i={};for(const o of n)for(const r in o)o.hasOwnProperty(r)&&(i[r]=!0);return i}const P4=ul("area,br,col,hr,img,wbr"),F4=ul("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),A4=ul("rp,rt"),_2=$1(P4,$1(F4,ul("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")),$1(A4,ul("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")),$1(A4,F4)),y2=ul("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),d0=$1(y2,ul("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"),ul("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")),h0=ul("script,style,template");class p0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let o=i.firstChild,r=!0,l=[];for(;o;)if(o.nodeType===Node.ELEMENT_NODE?r=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,r&&o.firstChild)l.push(o),o=N4(o);else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let f=f0(o);if(f){o=f;break}o=l.pop()}return this.buf.join("")}startElement(i){const o=m0(i).toLowerCase();if(!_2.hasOwnProperty(o))return this.sanitizedSomething=!0,!h0.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const r=i.attributes;for(let l=0;l"),!0}endElement(i){const o=m0(i).toLowerCase();_2.hasOwnProperty(o)&&!P4.hasOwnProperty(o)&&(this.buf.push(""))}chars(i){this.buf.push(v0(i))}}function f0(n){const i=n.nextSibling;if(i&&n!==i.previousSibling)throw g0(i);return i}function N4(n){const i=n.firstChild;if(i&&function Xf(n,i){return(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,i))throw g0(i);return i}function m0(n){const i=n.nodeName;return"string"==typeof i?i:"FORM"}function g0(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const k4=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C2=/([^\#-~ |!])/g;function v0(n){return n.replace(/&/g,"&").replace(k4,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(C2,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let b2;function _0(n,i){let o=null;try{b2=b2||function x4(n){const i=new a0(n);return function c0(){try{return!!(new window.DOMParser).parseFromString(L1(""),"text/html")}catch{return!1}}()?new s0(i):i}(n);let r=i?String(i):"";o=b2.getInertBodyElement(r);let l=5,f=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=f,f=o.innerHTML,o=b2.getInertBodyElement(r)}while(r!==f);return L1((new p0).sanitizeChildren(V4(o)||o))}finally{if(o){const r=V4(o)||o;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function V4(n){return"content"in n&&function y0(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Au=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Au||{});function C0(n){const i=Dh();return i?Mh(i.sanitize(Au.HTML,n)||""):B1(n,"HTML")?Mh(ll(n)):_0(Wl(),Vi(n))}function b0(n){const i=Dh();return i?i.sanitize(Au.STYLE,n)||"":B1(n,"Style")?ll(n):Vi(n)}function L4(n){const i=Dh();return i?i.sanitize(Au.URL,n)||"":B1(n,"URL")?ll(n):Sh(Vi(n))}function E0(n){const i=Dh();if(i)return I4(i.sanitize(Au.RESOURCE_URL,n)||"");if(B1(n,"ResourceURL"))return I4(ll(n));throw new An(904,!1)}function T0(n,i,o){return function qf(n,i){return"src"===i&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===i&&("base"===n||"link"===n)?E0:L4}(i,o)(n)}function Dh(){const n=Dn();return n&&n[Fs].sanitizer}const e3=/^>|^->||--!>|)/g,n3="\u200b$1\u200b";function O0(n){return n.ownerDocument.defaultView}function Ia(n){return n instanceof Function?n():n}function ia(n){return"browser"===(n??Yn(Nr)).get(n2)}var nn=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(nn||{});let Rn;function Ii(n,i){return Rn(n,i)}function No(n,i,o,r,l){if(null!=r){let f,y=!1;Fr(r)?f=r:br(r)&&(y=!0,r=r[Ao]);const D=vo(r);0===n&&null!==o?null==l?em(i,o,D):Ih(i,o,D,l||null,!0):1===n&&null!==o?Ih(i,o,D,l||null,!0):2===n?function j4(n,i,o){const r=x0(n,i);r&&function h9(n,i,o,r){n.removeChild(i,o,r)}(n,r,i,o)}(i,D,y):3===n&&i.destroyNode(D),null!=f&&function m9(n,i,o,r,l){const f=o[Ws];f!==vo(o)&&No(i,n,r,f,l);for(let D=ir;Di.replace(t3,n3))}(i))}function ks(n,i,o){return n.createElement(i,o)}function J8(n,i){i[Fs].changeDetectionScheduler?.notify(8),F0(n,i,i[Ri],2,null,null)}function Z8(n,i){const o=n[Xa],r=i[cr];(br(r)||i[Wo]!==r[cr][Wo])&&(n[Pi]|=za.HasTransplantedViews),null===o?n[Xa]=[i]:o.push(i)}function d3(n,i){const o=n[Xa],r=o.indexOf(i);o.splice(r,1)}function H4(n,i){if(n.length<=ir)return;const o=ir+i,r=n[o];if(r){const l=r[Ta];null!==l&&l!==n&&d3(l,r),i>0&&(n[o-1][Ps]=r[Ps]);const f=_a(n,ir+i);!function Q8(n,i){J8(n,i),i[Ao]=null,i[Or]=null}(r[ni],r);const y=f[Ys];null!==y&&y.detachView(f[ni]),r[cr]=null,r[Ps]=null,r[Pi]&=-129}return r}function w0(n,i){if(!(256&i[Pi])){const o=i[Ri];o.destroyNode&&F0(n,i,o,3,null,null),function c9(n){let i=n[Ea];if(!i)return h3(n[ni],n);for(;i;){let o=null;if(br(i))o=i[Ea];else{const r=i[ir];r&&(o=r)}if(!o){for(;i&&!i[Ps]&&i!==n;)br(i)&&h3(i[ni],i),i=i[cr];null===i&&(i=n),br(i)&&h3(i[ni],i),o=i&&i[Ps]}i=o}}(i)}}function h3(n,i){if(256&i[Pi])return;const o=K(null);try{i[Pi]&=-129,i[Pi]|=256,i[ys]&&pe(i[ys]),function d9(n,i){let o;if(null!=n&&null!=(o=n.destroyHooks))for(let r=0;r=0?r[y]():r[-y].unsubscribe(),f+=2}else o[f].call(r[o[f+1]]);null!==r&&(i[Ga]=null);const l=i[da];if(null!==l){i[da]=null;for(let f=0;f-1){const{encapsulation:f}=n.data[r.directiveStart+l];if(f===ws.None||f===ws.Emulated)return null}return Hr(r,o)}}(n,i.parent,o)}function Ih(n,i,o,r,l){n.insertBefore(i,o,r,l)}function em(n,i,o){n.appendChild(i,o)}function tm(n,i,o,r,l){null!==r?Ih(n,i,o,r,l):em(n,i,o)}function x0(n,i){return n.parentNode(i)}function nm(n,i,o){return om(n,i,o)}let f3,om=function im(n,i,o){return 40&n.type?Hr(n,o):null};function P0(n,i,o,r){const l=p3(n,r,i),f=i[Ri],D=nm(r.parent||i[Or],r,i);if(null!=l)if(Array.isArray(o))for(let $=0;$Ti&&hm(n,i,Ti,!1),Ks(y?2:0,l),o(r,l)}finally{rl(f),Ks(y?3:1,l)}}function _3(n,i,o){if(Ol(i)){const r=K(null);try{const f=i.directiveEnd;for(let y=i.directiveStart;ynull;function _m(n,i,o,r,l){for(let f in i){if(!i.hasOwnProperty(f))continue;const y=i[f];if(void 0===y)continue;r??={};let D,$=xs.None;Array.isArray(y)?(D=y[0],$=y[1]):D=y;let Se=f;if(null!==l){if(!l.hasOwnProperty(f))continue;Se=l[f]}0===n?ym(r,o,Se,D,$):ym(r,o,Se,D)}return r}function ym(n,i,o,r,l){let f;n.hasOwnProperty(o)?(f=n[o]).push(i,r):f=n[o]=[i,r],void 0!==l&&f.push(l)}function ac(n,i,o,r,l,f,y,D){const $=Hr(i,o);let He,Se=i.inputs;!D&&null!=Se&&(He=Se[r])?(S3(n,o,He,r,l),Ma(i)&&function O9(n,i){const o=Cs(i,n);16&o[Pi]||(o[Pi]|=64)}(o,i.index)):3&i.type&&(r=function D9(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(r),l=null!=y?y(l,i.value||"",r):l,f.setProperty($,r,l))}function E3(n,i,o,r){if(g1()){const l=null===r?null:{"":-1},f=function A9(n,i){const o=n.directiveRegistry;let r=null,l=null;if(o)for(let f=0;f0;){const o=n[--i];if("number"==typeof o&&o<0)return o}return 0})(y)!=D&&y.push(D),y.push(o,r,f)}}(n,i,r,U4(n,o,l.hostVars,co),l)}function Ru(n,i,o,r,l,f){const y=Hr(n,i);!function z3(n,i,o,r,l,f,y){if(null==f)n.removeAttribute(i,l,o);else{const D=null==y?Vi(f):y(f,r||"",l);n.setAttribute(i,l,D,o)}}(i[Ri],y,f,n.value,o,r,l)}function B9(n,i,o,r,l,f){const y=f[i];if(null!==y)for(let D=0;D0&&(o[l-1][Ps]=i),r{Vl(n.lView)},consumerOnSignalRead(){this.lView[ys]=this}},Q9={...I,consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{let i=Xs(n.lView);for(;i&&!wm(i[ni]);)i=Xs(i);i&&h1(i)},consumerOnSignalRead(){this.lView[ys]=this}};function wm(n){return 2!==n.type}const J9=100;function k0(n,i=!0,o=0){const r=n[Fs],l=r.rendererFactory;l.begin?.();try{!function Z9(n,i){const o=y1();try{_u(!0),I3(n,i);let r=0;for(;Ec(n);){if(r===J9)throw new An(103,!1);r++,I3(n,1)}}finally{_u(o)}}(n,o)}catch(y){throw i&&N0(n,y),y}finally{l.end?.(),r.inlineEffectRunner?.flush()}}function q9(n,i,o,r){const l=i[Pi];if(!(256&~l))return;i[Fs].inlineEffectRunner?.flush(),md(i);let D=!0,$=null,Se=null;wm(n)?(Se=function G9(n){return n[ys]??function Y9(n){const i=Im.pop()??Object.create(K9);return i.lView=n,i}(n)}(i),$=J(Se)):null===function L(){return s}()?(D=!1,Se=function X9(n){const i=n[ys]??Object.create(Q9);return i.lView=n,i}(i),$=J(Se)):i[ys]&&(pe(i[ys]),i[ys]=null);try{d1(i),function Ae(n){return $i.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==o&&mm(n,i,o,2,r);const He=!(3&~l);if(He){const Qt=n.preOrderCheckHooks;null!==Qt&&Dc(i,Qt,null)}else{const Qt=n.preOrderHooks;null!==Qt&&Eu(i,Qt,0,null),Ul(i,0)}if(function ey(n){for(let i=Zh(n);null!==i;i=ph(i)){if(!(i[Pi]&za.HasTransplantedViews))continue;const o=i[Xa];for(let r=0;r-1&&(H4(i,r),_a(o,r))}this._attachedToViewContainer=!1}w0(this._lView[ni],this._lView)}onDestroy(i){Ll(this._lView,i)}markForCheck(){Y4(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Pi]&=-129}reattach(){Za(this._lView),this._lView[Pi]|=128}detectChanges(){this._lView[Pi]|=1024,k0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new An(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const i=bc(this._lView),o=this._lView[Ta];null!==o&&!i&&d3(o,this._lView),J8(this._lView[ni],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new An(902,!1);this._appRef=i;const o=bc(this._lView),r=this._lView[Ta];null!==r&&!o&&Z8(r,this._lView),Za(this._lView)}}let K4=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=oy}return n})();const ny=K4,iy=class extends ny{constructor(i,o,r){super(),this._declarationLView=i,this._declarationTContainer=o,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,o){return this.createEmbeddedViewImpl(i,o)}createEmbeddedViewImpl(i,o,r){const l=S2(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:o,dehydratedView:r});return new W4(l)}};function oy(){return V0(wo(),Dn())}function V0(n,i){return 4&n.type?new iy(i,n,Dt(n,i)):null}let tg=()=>null;function Fh(n,i){return tg(n,i)}class I2{}const np=new xi("",{providedIn:"root",factory:()=>!1}),ng=new xi("");class ig{}class og{}class Jy{resolveComponentFactory(i){throw function Qy(n){const i=Error(`No component factory found for ${de(n)}.`);return i.ngComponent=n,i}(i)}}class ip{static#e=this.NULL=new Jy}class B3{}let Zy=(()=>{class n{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function qy(){const n=Dn(),o=Cs(wo().index,n);return(br(o)?o:n)[Ri]}()}return n})(),eC=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>null})}return n})();const sg=new Set;function wa(n){sg.has(n)||(sg.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function ag(n){let i=!0;return setTimeout(()=>{i&&(i=!1,n())}),"function"==typeof zo.requestAnimationFrame&&zo.requestAnimationFrame(()=>{i&&(i=!1,n())}),()=>{i=!1}}function cg(n){let i=!0;return queueMicrotask(()=>{i&&n()}),()=>{i=!1}}function lg(...n){}class Ir{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Sn(!1),this.onMicrotaskEmpty=new Sn(!1),this.onStable=new Sn(!1),this.onError=new Sn(!1),typeof Zone>"u")throw new An(908,!1);Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!r&&o,l.shouldCoalesceRunChangeDetection=r,l.callbackScheduled=!1,function iC(n){const i=()=>{!function nC(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{ag(()=>{n.callbackScheduled=!1,H3(n),n.isCheckStableRunning=!0,$3(n),n.isCheckStableRunning=!1})}),H3(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,r,l,f,y,D)=>{if(function oC(n){return hg(n,"__ignore_ng_zone__")}(D))return o.invokeTask(l,f,y,D);try{return ug(n),o.invokeTask(l,f,y,D)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||n.shouldCoalesceRunChangeDetection)&&i(),dg(n)}},onInvoke:(o,r,l,f,y,D,$)=>{try{return ug(n),o.invoke(l,f,y,D,$)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function rC(n){return hg(n,"__scheduler_tick__")}(D)&&i(),dg(n)}},onHasTask:(o,r,l,f)=>{o.hasTask(l,f),r===l&&("microTask"==f.change?(n._hasPendingMicrotasks=f.microTask,H3(n),$3(n)):"macroTask"==f.change&&(n.hasPendingMacrotasks=f.macroTask))},onHandleError:(o,r,l,f)=>(o.handleError(l,f),n.runOutsideAngular(()=>n.onError.emit(f)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ir.isInAngularZone())throw new An(909,!1)}static assertNotInAngularZone(){if(Ir.isInAngularZone())throw new An(909,!1)}run(i,o,r){return this._inner.run(i,o,r)}runTask(i,o,r,l){const f=this._inner,y=f.scheduleEventTask("NgZoneEvent: "+l,i,tC,lg,lg);try{return f.runTask(y,o,r)}finally{f.cancelTask(y)}}runGuarded(i,o,r){return this._inner.runGuarded(i,o,r)}runOutsideAngular(i){return this._outer.run(i)}}const tC={};function $3(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 H3(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function ug(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function dg(n){n._nesting--,$3(n)}class U0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Sn,this.onMicrotaskEmpty=new Sn,this.onStable=new Sn,this.onError=new Sn}run(i,o,r){return i.apply(o,r)}runGuarded(i,o,r){return i.apply(o,r)}runOutsideAngular(i){return i()}runTask(i,o,r,l){return i.apply(o,r)}}function hg(n,i){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[i]}var xa=function(n){return n[n.EarlyRead=0]="EarlyRead",n[n.Write=1]="Write",n[n.MixedReadWrite=2]="MixedReadWrite",n[n.Read=3]="Read",n}(xa||{});const pg={destroy(){}};function fg(n,i){!i&&Yc();const o=i?.injector??Yn(Nr);return ia(o)?(wa("NgAfterRender"),gg(n,o,!1,i?.phase??xa.MixedReadWrite)):pg}function mg(n,i){!i&&Yc();const o=i?.injector??Yn(Nr);return ia(o)?(wa("NgAfterNextRender"),gg(n,o,!0,i?.phase??xa.MixedReadWrite)):pg}function gg(n,i,o,r){const l=function aC(n,i){if(n instanceof Function)switch(i){case xa.EarlyRead:return{earlyRead:n};case xa.Write:return{write:n};case xa.MixedReadWrite:return{mixedReadWrite:n};case xa.Read:return{read:n}}return n}(n,r),f=i.get(G0),y=f.handler??=new lC,D=[],$=[],Se=()=>{for(const Qt of $)y.unregister(Qt);He()},He=i.get(d).onDestroy(Se);let _t=0;const Gt=(Qt,un)=>{if(!un)return;const On=o?(...ui)=>(_t--,_t<1&&Se(),un(...ui)):un,ii=ru(i,()=>new cC(Qt,D,On));y.register(ii),$.push(ii),_t++};return Gt(xa.EarlyRead,l.earlyRead),Gt(xa.Write,l.write),Gt(xa.MixedReadWrite,l.mixedReadWrite),Gt(xa.Read,l.read),{destroy:Se}}class cC{constructor(i,o,r){this.phase=i,this.pipelinedArgs=o,this.callbackFn=r,this.zone=Yn(Ir),this.errorHandler=Yn(Js,{optional:!0}),Yn(I2,{optional:!0})?.notify(6)}invoke(){try{const i=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,i)}catch(i){this.errorHandler?.handleError(i)}}}class lC{constructor(){this.executingCallbacks=!1,this.buckets={[xa.EarlyRead]:new Set,[xa.Write]:new Set,[xa.MixedReadWrite]:new Set,[xa.Read]:new Set},this.deferredCallbacks=new Set}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){this.executingCallbacks=!0;for(const i of Object.values(this.buckets))for(const o of i)o.invoke();this.executingCallbacks=!1;for(const i of this.deferredCallbacks)this.buckets[i.phase].add(i);this.deferredCallbacks.clear()}destroy(){for(const i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}}let G0=(()=>{class n{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of o)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new n})}return n})();function Rd(n){return!!tr(n)}function W0(n,i,o){let r=o?n.styles:null,l=o?n.classes:null,f=0;if(null!==i)for(let y=0;y0&&lm(n,o,f.join(" "))}}(Qt,Bs,On,r),void 0!==o&&function yC(n,i,o){const r=n.projection=[];for(let l=0;l{class n{static#e=this.__NG_ELEMENT_ID__=bC}return n})();function bC(){return Tg(wo(),Dn())}const EC=K0,bg=class extends EC{constructor(i,o,r){super(),this._lContainer=i,this._hostTNode=o,this._hostLView=r}get element(){return Dt(this._hostTNode,this._hostLView)}get injector(){return new Er(this._hostTNode,this._hostLView)}get parentInjector(){const i=Yl(this._hostTNode,this._hostLView);if(T1(i)){const o=al(i,this._hostLView),r=Oc(i);return new Er(o[ni].data[r+8],o)}return new Er(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const o=Eg(this._lContainer);return null!==o&&o[i]||null}get length(){return this._lContainer.length-ir}createEmbeddedView(i,o,r){let l,f;"number"==typeof r?l=r:null!=r&&(l=r.index,f=r.injector);const y=Fh(this._lContainer,i.ssrId),D=i.createEmbeddedViewImpl(o||{},f,y);return this.insertImpl(D,l,xh(this._hostTNode,y)),D}createComponent(i,o,r,l,f){const y=i&&!function Wc(n){return"function"==typeof n}(i);let D;if(y)D=o;else{const un=o||{};D=un.index,r=un.injector,l=un.projectableNodes,f=un.environmentInjector||un.ngModuleRef}const $=y?i:new sp(Bi(i)),Se=r||this.parentInjector;if(!f&&null==$.ngModule){const On=(y?Se:this.parentInjector).get(_s,null);On&&(f=On)}const He=Bi($.componentType??{}),_t=Fh(this._lContainer,He?.id??null),Qt=$.create(Se,l,_t?.firstChild??null,f);return this.insertImpl(Qt.hostView,D,xh(this._hostTNode,_t)),Qt}insert(i,o){return this.insertImpl(i,o,!0)}insertImpl(i,o,r){const l=i._lView;if(function Gd(n){return Fr(n[cr])}(l)){const D=this.indexOf(i);if(-1!==D)this.detach(D);else{const $=l[cr],Se=new bg($,$[Or],$[cr]);Se.detach(Se.indexOf(i))}}const f=this._adjustIndex(o),y=this._lContainer;return D2(y,l,f,r),i.attachToViewContainerRef(),to(Y3(y),f,i),i}move(i,o){return this.insert(i,o)}indexOf(i){const o=Eg(this._lContainer);return null!==o?o.indexOf(i):-1}remove(i){const o=this._adjustIndex(i,-1),r=H4(this._lContainer,o);r&&(_a(Y3(this._lContainer),o),w0(r[ni],r))}detach(i){const o=this._adjustIndex(i,-1),r=H4(this._lContainer,o);return r&&null!=_a(Y3(this._lContainer),o)?new W4(r):null}_adjustIndex(i,o=0){return i??this.length+o}};function Eg(n){return n[8]}function Y3(n){return n[8]||(n[8]=[])}function Tg(n,i){let o;const r=i[n.index];return Fr(r)?o=r:(o=Em(r,i,null,n),i[n.index]=o,R0(i,o)),zg(o,i,n,r),new bg(o,n,i)}let zg=function Sg(n,i,o,r){if(n[Ws])return;let l;l=8&o.type?vo(r):function TC(n,i){const o=n[Ri],r=o.createComment(""),l=Hr(i,n);return Ih(o,x0(o,l),r,function p9(n,i){return n.nextSibling(i)}(o,l),!1),r}(i,o),n[Ws]=l},W3=()=>!1;class K3{constructor(i){this.queryList=i,this.matches=null}clone(){return new K3(this.queryList)}setDirty(){this.queryList.setDirty()}}class X3{constructor(i=[]){this.queries=i}createEmbeddedView(i){const o=i.queries;if(null!==o){const r=null!==i.contentQueries?i.contentQueries[0]:o.length,l=[];for(let f=0;fi.trim())}(i):i}}class Q3{constructor(i=[]){this.queries=i}elementStart(i,o){for(let r=0;r0)r.push(y[D/2]);else{const Se=f[D+1],He=i[-$];for(let _t=ir;_t(w(i),i.value);return o[M]=i,o}(n),r=o[M];return i?.equal&&(r.equal=i.equal),o.set=l=>st(r,l),o.update=l=>function Ct(n,i){x()||Pt(),st(n,i(n.value))}(r,l),o.asReadonly=Rg.bind(o),o}function Rg(){const n=this[M];if(void 0===n.readonlyFn){const i=()=>this();i[M]=n,n.readonlyFn=i}return n.readonlyFn}function Ng(n){return t6(n)&&"function"==typeof n.set}function i6(n){let i=function Wg(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),o=!0;const r=[n];for(;i;){let l;if(As(n))l=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new An(903,!1);l=i.\u0275dir}if(l){if(o){r.push(l);const y=n;y.inputs=Q0(n.inputs),y.inputTransforms=Q0(n.inputTransforms),y.declaredInputs=Q0(n.declaredInputs),y.outputs=Q0(n.outputs);const D=l.hostBindings;D&&YC(n,D);const $=l.viewQuery,Se=l.contentQueries;if($&&UC(n,$),Se&&GC(n,Se),HC(n,l),Fn(n.outputs,l.outputs),As(l)&&l.data.animation){const He=n.data;He.animation=(He.animation||[]).concat(l.data.animation)}}const f=l.features;if(f)for(let y=0;y=0;r--){const l=n[r];l.hostVars=i+=l.hostVars,l.hostAttrs=ya(l.hostAttrs,o=ya(o,l.hostAttrs))}}(r)}function HC(n,i){for(const o in i.inputs){if(!i.inputs.hasOwnProperty(o)||n.inputs.hasOwnProperty(o))continue;const r=i.inputs[o];if(void 0!==r&&(n.inputs[o]=r,n.declaredInputs[o]=i.declaredInputs[o],null!==i.inputTransforms)){const l=Array.isArray(r)?r[0]:r;if(!i.inputTransforms.hasOwnProperty(l))continue;n.inputTransforms??={},n.inputTransforms[l]=i.inputTransforms[l]}}}function Q0(n){return n===Jr?{}:n===go?[]:n}function UC(n,i){const o=n.viewQuery;n.viewQuery=o?(r,l)=>{i(r,l),o(r,l)}:i}function GC(n,i){const o=n.contentQueries;n.contentQueries=o?(r,l,f)=>{i(r,l,f),o(r,l,f)}:i}function YC(n,i){const o=n.hostBindings;n.hostBindings=o?(r,l)=>{i(r,l),o(r,l)}:i}function Jg(n){const i=n.inputConfig,o={};for(const r in i)if(i.hasOwnProperty(r)){const l=i[r];Array.isArray(l)&&l[3]&&(o[r]=l[3])}n.inputTransforms=o}class Ah{}class Zg{}function ZC(n,i){return new o6(n,i??null,[])}class o6 extends Ah{constructor(i,o,r){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yg(this);const l=tr(i);this._bootstrapComponents=Ia(l.bootstrap),this._r3Injector=ch(i,o,[{provide:Ah,useValue:this},{provide:ip,useValue:this.componentFactoryResolver},...r],de(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class r6 extends Zg{constructor(i){super(),this.moduleType=i}create(i){return new o6(this.moduleType,i,[])}}class qg extends Ah{constructor(i){super(),this.componentFactoryResolver=new yg(this),this.instance=null;const o=new Ha([...i.providers,{provide:Ah,useValue:this},{provide:ip,useValue:this.componentFactoryResolver}],i.parent||Gc(),i.debugName,new Set(["environment"]));this.injector=o,i.runEnvironmentInitializers&&o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function s6(n,i,o=null){return new qg({providers:n,parent:i,debugName:o,runEnvironmentInitializers:!0}).injector}function J0(n){return!!a6(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function a6(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Nu(n,i,o){return n[i]=o}function cp(n,i){return n[i]}function ss(n,i,o){return!Object.is(n[i],o)&&(n[i]=o,!0)}function Rh(n,i,o,r){const l=ss(n,i,o);return ss(n,i+1,r)||l}function hl(n,i,o,r,l,f){const y=Rh(n,i,o,r);return Rh(n,i+2,l,f)||y}function lp(n,i,o,r,l,f,y,D,$,Se){const He=o+Ti,_t=i.firstCreatePass?function ob(n,i,o,r,l,f,y,D,$){const Se=i.consts,He=wh(i,n,4,y||null,D||null);E3(i,o,He,Rs(Se,$)),bu(i,He);const _t=He.tView=b3(2,He,r,l,f,i.directiveRegistry,i.pipeRegistry,null,i.schemas,Se,null);return null!==i.queries&&(i.queries.template(i,He),_t.queries=i.queries.embeddedTView(He)),He}(He,i,n,r,l,f,y,D,$):i.data[He];$o(_t,!1);const Gt=ev(i,n,_t,o);jl()&&P0(i,n,Gt,_t),dr(Gt,n);const Qt=Em(Gt,n,Gt,_t);return n[He]=Qt,R0(n,Qt),function Mg(n,i,o){return W3(n,i,o)}(Qt,_t,n),Jc(_t)&&y3(i,n,_t),null!=$&&C3(n,_t,Se),_t}function c6(n,i,o,r,l,f,y,D){const $=Dn(),Se=io();return lp($,Se,n,i,o,r,l,Rs(Se.consts,f),y,D),c6}let ev=function tv(n,i,o,r){return Qs(!0),i[Ri].createComment("")};function y6(n,i,o,r){const l=Dn();return ss(l,vt(),i)&&(io(),Ru(Ko(),l,n,i,o,r)),y6}function L2(n,i,o,r){return ss(n,vt(),o)?i+Vi(o)+r:co}function B2(n,i,o,r,l,f){const D=Rh(n,function Ar(){return $i.lFrame.bindingIndex}(),o,l);return ha(2),D?i+Vi(o)+r+Vi(l)+f:co}function sf(n,i){return n<<17|i<<2}function Vd(n){return n>>17&32767}function C6(n){return 2|n}function kh(n){return(131068&n)>>2}function b6(n,i){return-131069&n|i<<2}function E6(n){return 1|n}function Pv(n,i,o,r){const l=n[o+1],f=null===i;let y=r?Vd(l):kh(l),D=!1;for(;0!==y&&(!1===D||f);){const Se=n[y+1];jb(n[y],i)&&(D=!0,n[y+1]=r?E6(Se):C6(Se)),y=r?Vd(Se):kh(Se)}D&&(n[o+1]=r?C6(l):E6(l))}function jb(n,i){return null===n||null==i||(Array.isArray(n)?n[1]:n)===i||!(!Array.isArray(n)||"string"!=typeof i)&&$a(n,i)>=0}const Vs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fv(n){return n.substring(Vs.key,Vs.keyEnd)}function Ub(n){return n.substring(Vs.value,Vs.valueEnd)}function Av(n,i){const o=Vs.textEnd;return o===i?-1:(i=Vs.keyEnd=function Wb(n,i,o){for(;i32;)i++;return i}(n,Vs.key=i,o),W2(n,i,o))}function Rv(n,i){const o=Vs.textEnd;let r=Vs.key=W2(n,i,o);return o===r?-1:(r=Vs.keyEnd=function Kb(n,i,o){let r;for(;i=65&&(-33&r)<=90||r>=48&&r<=57);)i++;return i}(n,r,o),r=kv(n,r,o),r=Vs.value=W2(n,r,o),r=Vs.valueEnd=function Xb(n,i,o){let r=-1,l=-1,f=-1,y=i,D=y;for(;y32&&(D=y),f=l,l=r,r=-33&$}return D}(n,r,o),kv(n,r,o))}function Nv(n){Vs.key=0,Vs.keyEnd=0,Vs.value=0,Vs.valueEnd=0,Vs.textEnd=n.length}function W2(n,i,o){for(;i=0;o=Rv(i,o))Hv(n,Fv(i),Ub(i))}function Lv(n){Ql(nE,ku,n,!0)}function ku(n,i){for(let o=function Gb(n){return Nv(n),Av(n,W2(n,0,Vs.textEnd))}(i);o>=0;o=Av(i,o))Dr(n,Fv(i),!0)}function Xl(n,i,o,r){const l=Dn(),f=io(),y=ha(2);f.firstUpdatePass&&$v(f,n,y,r),i!==co&&ss(l,y,i)&&jv(f,f.data[jr()],l,l[Ri],n,l[y+1]=function oE(n,i){return null==n||""===n||("string"==typeof i?n+=i:"object"==typeof n&&(n=de(ll(n)))),n}(i,o),r,y)}function Ql(n,i,o,r){const l=io(),f=ha(2);l.firstUpdatePass&&$v(l,null,f,r);const y=Dn();if(o!==co&&ss(y,f,o)){const D=l.data[jr()];if(Gv(D,r)&&!Bv(l,f)){let $=r?D.classesWithoutHost:D.stylesWithoutHost;null!==$&&(o=We($,o||"")),z6(l,D,y,o,r)}else!function iE(n,i,o,r,l,f,y,D){l===co&&(l=go);let $=0,Se=0,He=0=n.expandoStartIndex}function $v(n,i,o,r){const l=n.data;if(null===l[o+1]){const f=l[jr()],y=Bv(n,o);Gv(f,r)&&null===i&&!y&&(i=!1),i=function Jb(n,i,o,r){const l=C1(n);let f=r?i.residualClasses:i.residualStyles;if(null===l)0===(r?i.classBindings:i.styleBindings)&&(o=pp(o=D6(null,n,i,o,r),i.attrs,r),f=null);else{const y=i.directiveStylingLast;if(-1===y||n[y]!==l)if(o=D6(l,n,i,o,r),null===f){let $=function Zb(n,i,o){const r=o?i.classBindings:i.styleBindings;if(0!==kh(r))return n[Vd(r)]}(n,i,r);void 0!==$&&Array.isArray($)&&($=D6(null,n,i,$[1],r),$=pp($,i.attrs,r),function qb(n,i,o,r){n[Vd(o?i.classBindings:i.styleBindings)]=r}(n,i,r,$))}else f=function eE(n,i,o){let r;const l=i.directiveEnd;for(let f=1+i.directiveStylingLast;f0)&&(Se=!0)):He=o,l)if(0!==$){const Gt=Vd(n[D+1]);n[r+1]=sf(Gt,D),0!==Gt&&(n[Gt+1]=b6(n[Gt+1],r)),n[D+1]=function Lb(n,i){return 131071&n|i<<17}(n[D+1],r)}else n[r+1]=sf(D,0),0!==D&&(n[D+1]=b6(n[D+1],r)),D=r;else n[r+1]=sf($,0),0===D?D=r:n[$+1]=b6(n[$+1],r),$=r;Se&&(n[r+1]=C6(n[r+1])),Pv(n,He,r,!0),Pv(n,He,r,!1),function Hb(n,i,o,r,l){const f=l?n.residualClasses:n.residualStyles;null!=f&&"string"==typeof i&&$a(f,i)>=0&&(o[r+1]=E6(o[r+1]))}(i,He,n,r,f),y=sf(D,$),f?i.classBindings=y:i.styleBindings=y}(l,f,i,o,y,r)}}function D6(n,i,o,r,l){let f=null;const y=o.directiveEnd;let D=o.directiveStylingLast;for(-1===D?D=o.directiveStart:D++;D0;){const $=n[l],Se=Array.isArray($),He=Se?$[1]:$,_t=null===He;let Gt=o[l+1];Gt===co&&(Gt=_t?go:void 0);let Qt=_t?fl(Gt,r):He===r?Gt:void 0;if(Se&&!af(Qt)&&(Qt=fl($,r)),af(Qt)&&(D=Qt,y))return D;const un=n[l+1];l=y?Vd(un):kh(un)}if(null!==i){let $=f?i.residualClasses:i.residualStyles;null!=$&&(D=fl($,r))}return D}function af(n){return void 0!==n}function Gv(n,i){return!!(n.flags&(i?8:16))}function Yv(n,i,o){Ql(Dr,ku,L2(Dn(),n,i,o),!0)}function Wv(){return Dn()[Wo][Ro]}class pE{destroy(i){}updateValue(i,o){}swap(i,o){const r=Math.min(i,o),l=Math.max(i,o),f=this.detach(l);if(l-r>1){const y=this.detach(r);this.attach(r,f),this.attach(l,y)}else this.attach(r,f)}move(i,o){this.attach(o,this.detach(i))}}function O6(n,i,o,r,l){return n===o&&Object.is(i,r)?1:Object.is(l(n,i),l(o,r))?-1:0}function I6(n,i,o,r){return!(void 0===i||!i.has(r)||(n.attach(o,i.get(r)),i.delete(r),0))}function Kv(n,i,o,r,l){if(I6(n,i,r,o(r,l)))n.updateValue(r,l);else{const f=n.create(r,l);n.attach(r,f)}}function Xv(n,i,o,r){const l=new Set;for(let f=i;f<=o;f++)l.add(r(f,n.at(f)));return l}class Qv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;const o=this.kvMap.get(i);return void 0!==this._vMap&&this._vMap.has(o)?(this.kvMap.set(i,this._vMap.get(o)),this._vMap.delete(o)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,o){if(this.kvMap.has(i)){let r=this.kvMap.get(i);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(r);)r=l.get(r);l.set(r,o)}else this.kvMap.set(i,o)}forEach(i){for(let[o,r]of this.kvMap)if(i(r,o),void 0!==this._vMap){const l=this._vMap;for(;l.has(r);)r=l.get(r),i(r,o)}}}function Jv(n,i){wa("NgControlFlow");const o=Dn(),r=vt(),l=o[r]!==co?o[r]:-1,f=-1!==l?cf(o,Ti+l):void 0;if(ss(o,r,n)){const D=K(null);try{if(void 0!==f&&O3(f,0),-1!==n){const $=Ti+n,Se=cf(o,$),He=w6(o[ni],$),_t=Fh(Se,He.tView.ssrId);D2(Se,S2(o,He,i,{dehydratedView:_t}),0,xh(He,_t))}}finally{K(D)}}else if(void 0!==f){const D=Dm(f,0);void 0!==D&&(D[Ro]=i)}}class mE{constructor(i,o,r){this.lContainer=i,this.$implicit=o,this.$index=r}get $count(){return this.lContainer.length-ir}}function Zv(n){return n}function qv(n,i){return i}class gE{constructor(i,o,r){this.hasEmptyBlock=i,this.trackByFn=o,this.liveCollection=r}}function e5(n,i,o,r,l,f,y,D,$,Se,He,_t,Gt){wa("NgControlFlow");const Qt=Dn(),un=io(),On=void 0!==$,ii=Dn(),ui=D?y.bind(ii[Wo][Ro]):y,Nn=new gE(On,ui);ii[Ti+n]=Nn,lp(Qt,un,n+1,i,o,r,l,Rs(un.consts,f)),On&&lp(Qt,un,n+2,$,Se,He,_t,Rs(un.consts,Gt))}class vE extends pE{constructor(i,o,r){super(),this.lContainer=i,this.hostLView=o,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ir}at(i){return this.getLView(i)[Ro].$implicit}attach(i,o){const r=o[Br];this.needsIndexUpdate||=i!==this.length,D2(this.lContainer,o,i,xh(this.templateTNode,r))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,function _E(n,i){return H4(n,i)}(this.lContainer,i)}create(i,o){const r=Fh(this.lContainer,this.templateTNode.tView.ssrId),l=S2(this.hostLView,this.templateTNode,new mE(this.lContainer,o,i),{dehydratedView:r});return this.operationsCounter?.recordCreate(),l}destroy(i){w0(i[ni],i),this.operationsCounter?.recordDestroy()}updateValue(i,o){this.getLView(i)[Ro].$implicit=o}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i{n.destroy($)})}($,n,f.trackByFn),$.updateIndexes(),f.hasEmptyBlock){const Se=vt(),He=0===$.length;if(ss(r,Se,He)){const _t=o+2,Gt=cf(r,_t);if(He){const Qt=w6(l,_t),un=Fh(Gt,Qt.tView.ssrId);D2(Gt,S2(r,Qt,void 0,{dehydratedView:un}),0,xh(Qt,un))}else O3(Gt,0)}}}finally{K(i)}}function cf(n,i){return n[i]}function w6(n,i){return kl(n,i)}function lf(n,i,o,r){const l=Dn(),f=io(),y=Ti+n,D=l[Ri],$=f.firstCreatePass?function CE(n,i,o,r,l,f){const y=i.consts,$=wh(i,n,2,r,Rs(y,l));return E3(i,o,$,Rs(y,f)),null!==$.attrs&&W0($,$.attrs,!1),null!==$.mergedAttrs&&W0($,$.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,$),$}(y,f,l,i,o,r):f.data[y],Se=n5(f,l,$,D,i,n);l[y]=Se;const He=Jc($);return $o($,!0),um(D,Se,$),!function x2(n){return!(32&~n.flags)}($)&&jl()&&P0(f,l,Se,$),0===function m1(){return $i.lFrame.elementDepthCount}()&&dr(Se,l),function cd(){$i.lFrame.elementDepthCount++}(),He&&(y3(f,l,$),_3(f,$,l)),null!==r&&C3(l,$),lf}function uf(){let n=wo();ec()?Tc():(n=n.parent,$o(n,!1));const i=n;(function ud(n){return $i.skipHydrationRootTNode===n})(i)&&function fd(){$i.skipHydrationRootTNode=null}(),function ld(){$i.lFrame.elementDepthCount--}();const o=io();return o.firstCreatePass&&(bu(o,n),Ol(n)&&o.queries.elementEnd(n)),null!=i.classesWithoutHost&&function Hh(n){return!!(8&n.flags)}(i)&&z6(o,i,Dn(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function jh(n){return!!(16&n.flags)}(i)&&z6(o,i,Dn(),i.stylesWithoutHost,!1),uf}function x6(n,i,o,r){return lf(n,i,o,r),uf(),x6}let n5=(n,i,o,r,l,f)=>(Qs(!0),ks(r,l,function sl(){return $i.lFrame.currentNamespace}()));function df(n,i,o){const r=Dn(),l=io(),f=n+Ti,y=l.firstCreatePass?function TE(n,i,o,r,l){const f=i.consts,y=Rs(f,r),D=wh(i,n,8,"ng-container",y);return null!==y&&W0(D,y,!0),E3(i,o,D,Rs(f,l)),null!==i.queries&&i.queries.elementStart(i,D),D}(f,l,r,i,o):l.data[f];$o(y,!0);const D=i5(l,r,y,n);return r[f]=D,jl()&&P0(l,r,D,y),dr(D,r),Jc(y)&&(y3(l,r,y),_3(l,y,r)),null!=o&&C3(r,y),df}function hf(){let n=wo();const i=io();return ec()?Tc():(n=n.parent,$o(n,!1)),i.firstCreatePass&&(bu(i,n),Ol(n)&&i.queries.elementEnd(n)),hf}function P6(n,i,o){return df(n,i,o),hf(),P6}let i5=(n,i,o,r)=>(Qs(!0),rs(i[Ri],""));function o5(){return Dn()}function F6(n,i,o){const r=Dn();return ss(r,vt(),i)&&ac(io(),Ko(),r,n,i,r[Ri],o,!0),F6}function A6(n,i,o){const r=Dn();if(ss(r,vt(),i)){const f=io(),y=Ko();ac(f,y,r,n,i,Sm(C1(f.data),y,r),o,!0)}return A6}const Vh=void 0;var DE=["en",[["a","p"],["AM","PM"],Vh],[["AM","PM"],Vh,Vh],[["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"]],Vh,[["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"]],Vh,[["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}",Vh,"{1} 'at' {0}",Vh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function SE(n){const o=Math.floor(Math.abs(n)),r=n.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===r?1:5}];let K2={};function OE(n,i,o){"string"!=typeof i&&(o=i,i=n[X2.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),K2[i]=n,o&&(K2[i][X2.ExtraData]=o)}function R6(n){const i=function IE(n){return n.toLowerCase().replace(/_/g,"-")}(n);let o=s5(i);if(o)return o;const r=i.split("-")[0];if(o=s5(r),o)return o;if("en"===r)return DE;throw new An(701,!1)}function r5(n){return R6(n)[X2.PluralCase]}function s5(n){return n in K2||(K2[n]=zo.ng&&zo.ng.common&&zo.ng.common.locales&&zo.ng.common.locales[n]),K2[n]}var X2=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(X2||{});const Q2="en-US";let a5=Q2;let S5=(n,i,o)=>{};function V6(n,i,o,r){const l=Dn(),f=io(),y=wo();return B6(f,l,l[Ri],y,n,i,r),V6}function L6(n,i){const o=wo(),r=Dn(),l=io();return B6(l,r,Sm(C1(l.data),o,r),o,n,i),L6}function B6(n,i,o,r,l,f,y){const D=Jc(r),Se=n.firstCreatePass&&Mm(n),He=i[Ro],_t=zm(i);let Gt=!0;if(3&r.type||y){const On=Hr(r,i),ii=y?y(On):On,ui=_t.length,Nn=y?ko=>y(vo(ko[r.index])):r.index;let Ji=null;if(!y&&D&&(Ji=function gT(n,i,o,r){const l=n.cleanup;if(null!=l)for(let f=0;f$?D[$]:null}"string"==typeof y&&(f+=2)}return null}(n,i,l,r.index)),null!==Ji)(Ji.__ngLastListenerFn__||Ji).__ngNextListenerFn__=f,Ji.__ngLastListenerFn__=f,Gt=!1;else{f=I5(r,i,He,f),S5(On,l,f);const ko=o.listen(ii,l,f);_t.push(f,ko),Se&&Se.push(l,Nn,ui,ui+1)}}else f=I5(r,i,He,f);const Qt=r.outputs;let un;if(Gt&&null!==Qt&&(un=Qt[l])){const On=un.length;if(On)for(let ii=0;ii-1?Cs(n.index,i):i,5);let D=O5(i,o,r,f),$=l.__ngNextListenerFn__;for(;$;)D=O5(i,o,$,f)&&D,$=$.__ngNextListenerFn__;return D}}function w5(n=1){return function Xd(n){return($i.lFrame.contextLView=function p1(n,i){for(;n>0;)i=i[Ya],n--;return i}(n,$i.lFrame.contextLView))[Ro]}(n)}function vT(n,i){let o=null;const r=function P(n){const i=n.attrs;if(null!=i){const o=i.indexOf(5);if(!(1&o))return i[o+1]}return null}(n);for(let l=0;l=n.data.length&&(n.data[o]=null,n.blueprint[o]=null),i[o]=r}function U5(n){return Sa(nl(),Ti+n)}function G5(n,i,o){Kl(L2(Dn(),n,i,o))}function t7(n,i=""){const o=Dn(),r=io(),l=n+Ti,f=r.firstCreatePass?wh(r,l,1,i,null):r.data[l],y=n7(r,o,f,i,n);o[l]=y,jl()&&P0(r,o,y,f),$o(f,!1)}let n7=(n,i,o,r,l)=>(Qs(!0),function sc(n,i){return n.createText(i)}(i[Ri],r));function U6(n){return vf("",n,""),U6}function vf(n,i,o){const r=Dn(),l=L2(r,n,i,o);return l!==co&&H1(r,jr(),l),vf}function G6(n,i,o,r,l){const f=Dn(),y=B2(f,n,i,o,r,l);return y!==co&&H1(f,jr(),y),G6}function Y6(n,i,o){Ng(i)&&(i=i());const r=Dn();return ss(r,vt(),i)&&ac(io(),Ko(),r,n,i,r[Ri],o,!1),Y6}function u7(n,i){const o=Ng(n);return o&&n.set(i),o}function W6(n,i){const o=Dn(),r=io(),l=wo();return B6(r,o,o[Ri],l,n,i),W6}const d7={};function K6(n){const i=io(),o=Dn(),r=n+Ti;return $o(wh(i,r,128,null,null),!1),j6(i,o,r,d7),K6}function h7(n){return wa("NgLet"),j6(io(),Dn(),jr(),n),n}function p7(n){const o=Sa(nl(),Ti+n);if(o===d7)throw new An(314,!1);return o}function X6(n,i,o,r,l){if(n=Ln(n),Array.isArray(n))for(let f=0;f>20;if(ba(n)||!n.multi){const Qt=new nc(Se,l,M2),un=J6($,i,l?He:He+Gt,_t);-1===un?(S1(Ou(D,y),f,$),Q6(f,n,i.length),i.push($),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),o.push(Qt),y.push(Qt)):(o[un]=Qt,y[un]=Qt)}else{const Qt=J6($,i,He+Gt,_t),un=J6($,i,He,He+Gt),ii=un>=0&&o[un];if(l&&!ii||!l&&!(Qt>=0&&o[Qt])){S1(Ou(D,y),f,$);const ui=function RT(n,i,o,r,l){const f=new nc(n,o,M2);return f.multi=[],f.index=i,f.componentProviders=0,f7(f,l,r&&!o),f}(l?AT:FT,o.length,l,r,Se);!l&&ii&&(o[un].providerFactory=ui),Q6(f,n,i.length,0),i.push($),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),o.push(ui),y.push(ui)}else Q6(f,n,Qt>-1?Qt:un,f7(o[l?un:Qt],Se,!l&&r));!l&&r&&ii&&o[un].componentProviders++}}}function Q6(n,i,o,r){const l=ba(i),f=function Gu(n){return!!n.useClass}(i);if(l||f){const $=(f?Ln(i.useClass):i).prototype.ngOnDestroy;if($){const Se=n.destroyHooks||(n.destroyHooks=[]);if(!l&&i.multi){const He=Se.indexOf(o);-1===He?Se.push(o,[r,$]):Se[He+1].push(r,$)}else Se.push(o,$)}}}function f7(n,i,o){return o&&n.componentProviders++,n.multi.push(i)-1}function J6(n,i,o,r){for(let l=o;l{o.providersResolver=(r,l)=>function PT(n,i,o){const r=io();if(r.firstCreatePass){const l=As(n);X6(o,r.data,r.blueprint,l,!0),X6(i,r.data,r.blueprint,l,!1)}}(r,l?l(n):n,i)}}let NT=(()=>{class n{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const r=Hc(0,o.type),l=r.length>0?s6([r],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,l)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=mo({token:n,providedIn:"environment",factory:()=>new n(Yi(_s))})}return n})();function g7(n){wa("NgStandalone"),n.getStandaloneInjector=i=>i.get(NT).getOrCreateStandaloneInjector(n)}function v7(n,i,o){const r=n.\u0275cmp;r.directiveDefs=yl(i,!1),r.pipeDefs=yl(o,!0)}function C7(n,i,o){const r=g()+n,l=Dn();return l[r]===co?Nu(l,r,o?i.call(o):i()):cp(l,r)}function b7(n,i,o,r){return D7(Dn(),g(),n,i,o,r)}function E7(n,i,o,r,l){return O7(Dn(),g(),n,i,o,r,l)}function T7(n,i,o,r,l,f){return I7(Dn(),g(),n,i,o,r,l,f)}function z7(n,i,o,r,l,f,y){return w7(Dn(),g(),n,i,o,r,l,f,y)}function M7(n,i,o,r,l,f,y,D){const $=g()+n,Se=Dn(),He=hl(Se,$,o,r,l,f);return ss(Se,$+4,y)||He?Nu(Se,$+5,D?i.call(D,o,r,l,f,y):i(o,r,l,f,y)):cp(Se,$+5)}function S7(n,i,o,r,l,f,y,D,$){const Se=g()+n,He=Dn(),_t=hl(He,Se,o,r,l,f);return Rh(He,Se+4,y,D)||_t?Nu(He,Se+6,$?i.call($,o,r,l,f,y,D):i(o,r,l,f,y,D)):cp(He,Se+6)}function yp(n,i){const o=n[i];return o===co?void 0:o}function D7(n,i,o,r,l,f){const y=i+o;return ss(n,y,l)?Nu(n,y+1,f?r.call(f,l):r(l)):yp(n,y+1)}function O7(n,i,o,r,l,f,y){const D=i+o;return Rh(n,D,l,f)?Nu(n,D+2,y?r.call(y,l,f):r(l,f)):yp(n,D+2)}function I7(n,i,o,r,l,f,y,D){const $=i+o;return function Z0(n,i,o,r,l){const f=Rh(n,i,o,r);return ss(n,i+2,l)||f}(n,$,l,f,y)?Nu(n,$+3,D?r.call(D,l,f,y):r(l,f,y)):yp(n,$+3)}function w7(n,i,o,r,l,f,y,D,$){const Se=i+o;return hl(n,Se,l,f,y,D)?Nu(n,Se+4,$?r.call($,l,f,y,D):r(l,f,y,D)):yp(n,Se+4)}function P7(n,i){const o=io();let r;const l=n+Ti;o.firstCreatePass?(r=function HT(n,i){if(i)for(let o=i.length-1;o>=0;o--){const r=i[o];if(n===r.name)return r}}(i,o.pipeRegistry),o.data[l]=r,r.onDestroy&&(o.destroyHooks??=[]).push(l,r.onDestroy)):r=o.data[l];const f=r.factory||(r.factory=Os(r.type)),D=Go(M2);try{const $=Su(!1),Se=f();return Su($),j6(o,Dn(),l,Se),Se}finally{Go(D)}}function F7(n,i,o){const r=n+Ti,l=Dn(),f=Sa(l,r);return Cp(l,r)?D7(l,g(),i,f.transform,o,f):f.transform(o)}function A7(n,i,o,r){const l=n+Ti,f=Dn(),y=Sa(f,l);return Cp(f,l)?O7(f,g(),i,y.transform,o,r,y):y.transform(o,r)}function R7(n,i,o,r,l){const f=n+Ti,y=Dn(),D=Sa(y,f);return Cp(y,f)?I7(y,g(),i,D.transform,o,r,l,D):D.transform(o,r,l)}function N7(n,i,o,r,l,f){const y=n+Ti,D=Dn(),$=Sa(D,y);return Cp(D,y)?w7(D,g(),i,$.transform,o,r,l,f,$):$.transform(o,r,l,f)}function Cp(n,i){return n[ni].data[i].pure}function k7(n,i){return V0(n,i)}class q7{constructor(i){this.full=i;const o=i.split(".");this.major=o[0],this.minor=o[1],this.patch=o.slice(2).join(".")}}let e_=(()=>{class n{log(o){console.log(o)}warn(o){console.warn(o)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const r_=new xi(""),s_=new xi("");let o8,Nz=(()=>{class n{constructor(o,r,l){this._ngZone=o,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,o8||(function kz(n){o8=n}(l),l.addToWindow(r)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ir.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(o)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,r,l){let f=-1;r&&r>0&&(f=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==f),o()},r)),this._callbacks.push({doneCb:o,timeoutId:f,updateCb:l})}whenStable(o,r,l){if(l&&!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(o,r,l),this._runCallbacksIfReady()}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,r,l){return[]}static#e=this.\u0275fac=function(r){return new(r||n)(Yi(Ir),Yi(a_),Yi(s_))};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac})}return n})(),a_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(o,r){this._applications.set(o,r)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,r=!0){return o8?.findTestabilityInTree(this,o,r)??null}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function r8(n){return!!n&&"function"==typeof n.then}function c_(n){return!!n&&"function"==typeof n.subscribe}const l_=new xi("");let s8=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,r)=>{this.resolve=o,this.reject=r}),this.appInits=Yn(l_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const o=[];for(const l of this.appInits){const f=l();if(r8(f))o.push(f);else if(c_(f)){const y=new Promise((D,$)=>{f.subscribe({complete:D,error:$})});o.push(y)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{r()}).catch(l=>{this.reject(l)}),0===o.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Ef=new xi("");function h_(n,i){return Array.isArray(i)?i.reduce(h_,n):{...n,...i}}let Jl=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Yn(T),this.afterRenderEffectManager=Yn(G0),this.zonelessEnabled=Yn(np),this.externalTestViews=new Set,this.beforeRender=new bt.B,this.afterTick=new bt.B,this.componentTypes=[],this.components=[],this.isStable=Yn(Xt).hasPendingTasks.pipe((0,Et.T)(o=>!o)),this._injector=Yn(_s)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,r){const l=o instanceof og;if(!this._injector.get(s8).done)throw!l&&qs(o),new An(405,!1);let y;y=l?o:this._injector.get(ip).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const D=function Vz(n){return n.isBoundToModule}(y)?void 0:this._injector.get(Ah),Se=y.create(Nr.NULL,[],r||y.selector,D),He=Se.location.nativeElement,_t=Se.injector.get(r_,null);return _t?.registerApplication(He),Se.onDestroy(()=>{this.detachView(Se.hostView),Tf(this.components,Se),_t?.unregisterApplication(He)}),this._loadComponent(Se),Se}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new An(101,!1);const r=K(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,K(r),this.afterTick.next()}}detectChangesInAttachedViews(o){let r=null;this._injector.destroyed||(r=this._injector.get(B3,null,{optional:!0}));let l=0;const f=this.afterRenderEffectManager;for(;l<10;){const y=0===l;if(o||!y){this.beforeRender.next(y);for(let{_lView:D,notifyErrorHandler:$}of this._views)Bz(D,$,y,this.zonelessEnabled)}else r?.begin?.(),r?.end?.();if(l++,f.executeInternalCallbacks(),!this.allViews.some(({_lView:D})=>Ec(D))&&(f.execute(),!this.allViews.some(({_lView:D})=>Ec(D))))break}}attachView(o){const r=o;this._views.push(r),r.attachToAppRef(this)}detachView(o){const r=o;Tf(this._views,r),r.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const r=this._injector.get(Ef,[]);[...this._bootstrapListeners,...r].forEach(l=>l(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>Tf(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new An(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Tf(n,i){const o=n.indexOf(i);o>-1&&n.splice(o,1)}function Bz(n,i,o,r){(o||Ec(n))&&k0(n,i,o&&!r?0:1)}class $z{constructor(i,o){this.ngModuleFactory=i,this.componentFactories=o}}let Hz=(()=>{class n{compileModuleSync(o){return new r6(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const r=this.compileModuleSync(o),f=Ia(tr(o).declarations).reduce((y,D)=>{const $=Bi(D);return $&&y.push(new sp($)),y},[]);return new $z(r,f)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Gz=(()=>{class n{constructor(){this.zone=Yn(Ir),this.changeDetectionScheduler=Yn(I2),this.applicationRef=Yn(Jl)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function a8({ngZoneFactory:n,ignoreChangesOutsideZone:i}){return n??=()=>new Ir(c8()),[{provide:Ir,useFactory:n},{provide:ar,multi:!0,useFactory:()=>{const o=Yn(Gz,{optional:!0});return()=>o.initialize()}},{provide:ar,multi:!0,useFactory:()=>{const o=Yn(Kz);return()=>{o.initialize()}}},{provide:T,useFactory:Wz},!0===i?{provide:ng,useValue:!0}:[]]}function Wz(){const n=Yn(Ir),i=Yn(Js);return o=>n.runOutsideAngular(()=>i.handleError(o))}function c8(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let Kz=(()=>{class n{constructor(){this.subscription=new At.yU,this.initialized=!1,this.zone=Yn(Ir),this.pendingTasks=Yn(Xt)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ir.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ir.assertInAngularZone(),o??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Tp=(()=>{class n{constructor(){this.appRef=Yn(Jl),this.taskService=Yn(Xt),this.ngZone=Yn(Ir),this.zonelessEnabled=Yn(np),this.disableScheduling=Yn(ng,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new At.yU,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof U0||!this.zoneIsDefined)}notify(o){if(!this.zonelessEnabled&&5===o)return;switch(o){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?cg:ag;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Ir.isInAngularZone())}tick(o){if(this.runningTick||this.appRef.destroyed)return;const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(o)},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(r),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,cg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const o=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(o)}}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Mf=new xi("",{providedIn:"root",factory:()=>Yn(Mf,so.Optional|so.SkipSelf)||function Xz(){return typeof $localize<"u"&&$localize.locale||Q2}()}),Qz=new xi("",{providedIn:"root",factory:()=>"USD"}),u8=new xi("");let v_=(()=>{class n{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,r){const l=function sC(n="zone.js",i){return"noop"===n?new U0:"zone.js"===n?new Ir(i):n}(r?.ngZone,c8({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return l.run(()=>{const f=r?.ignoreChangesOutsideZone,y=function qC(n,i,o){return new o6(n,i,o)}(o.moduleType,this.injector,[...a8({ngZoneFactory:()=>l,ignoreChangesOutsideZone:f}),{provide:I2,useExisting:Tp}]),D=y.injector.get(Js,null);return l.runOutsideAngular(()=>{const $=l.onError.subscribe({next:Se=>{D.handleError(Se)}});y.onDestroy(()=>{Tf(this._modules,y),$.unsubscribe()})}),function d_(n,i,o){try{const r=o();return r8(r)?r.catch(l=>{throw i.runOutsideAngular(()=>n.handleError(l)),l}):r}catch(r){throw i.runOutsideAngular(()=>n.handleError(r)),r}}(D,l,()=>{const $=y.injector.get(s8);return $.runInitializers(),$.donePromise.then(()=>(function c5(n){"string"==typeof n&&(a5=n.toLowerCase().replace(/_/g,"-"))}(y.injector.get(Mf,Q2)||Q2),this._moduleDoBootstrap(y),y))})})}bootstrapModule(o,r=[]){const l=h_({},r);return function Uz(n,i,o){const r=new r6(o);return Promise.resolve(r)}(0,0,o).then(f=>this.bootstrapModuleFactory(f,l))}_moduleDoBootstrap(o){const r=o.injector.get(Jl);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(l=>r.bootstrap(l));else{if(!o.instance.ngDoBootstrap)throw new An(-403,!1);o.instance.ngDoBootstrap(r)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new An(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const o=this._injector.get(u8,null);o&&(o.forEach(r=>r()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||n)(Yi(Nr))};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})(),Ld=null;const __=new xi("");function y_(n,i,o=[]){const r=`Platform: ${i}`,l=new xi(r);return(f=[])=>{let y=d8();if(!y||y.injector.get(__,!1)){const D=[...o,...f,{provide:l,useValue:!0}];n?n(D):function Zz(n){if(Ld&&!Ld.get(__,!1))throw new An(400,!1);(function u_(){!function gt(n){Be=n}(()=>{throw new An(600,!1)})})(),Ld=n;const i=n.get(v_);(function b_(n){n.get(g4,null)?.forEach(o=>o())})(n)}(function C_(n=[],i){return Nr.create({name:i,providers:[{provide:El,useValue:"platform"},{provide:u8,useValue:new Set([()=>Ld=null])},...n]})}(D,r))}return function qz(n){const i=d8();if(!i)throw new An(401,!1);return i}()}}function d8(){return Ld?.get(v_)??null}function tM(){return!1}function nM(){}let T_=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=iM}return n})();function iM(n){return function oM(n,i,o){if(Ma(n)&&!o){const r=Cs(n.index,i);return new W4(r,r)}return 175&n.type?new W4(i[Wo],i):null}(wo(),Dn(),!(16&~n))}class D_{constructor(){}supports(i){return J0(i)}create(i){return new lM(i)}}const cM=(n,i)=>i;class lM{constructor(i){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=i||cM}forEachItem(i){let o;for(o=this._itHead;null!==o;o=o._next)i(o)}forEachOperation(i){let o=this._itHead,r=this._removalsHead,l=0,f=null;for(;o||r;){const y=!r||o&&o.currentIndex{y=this._trackByFn(l,D),null!==o&&Object.is(o.trackById,y)?(r&&(o=this._verifyReinsertion(o,D,y,l)),Object.is(o.item,D)||this._addIdentityChange(o,D)):(o=this._mismatch(o,D,y,l),r=!0),o=o._next,l++}),this.length=l;return this._truncate(o),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,o,r,l){let f;return null===i?f=this._itTail:(f=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._reinsertAfter(i,f,l)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(r,l))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._moveAfter(i,f,l)):i=this._addAfter(new uM(o,r),f,l),i}_verifyReinsertion(i,o,r,l){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==f?i=this._reinsertAfter(f,i._prev,l):i.currentIndex!=l&&(i.currentIndex=l,this._addToMoves(i,l)),i}_truncate(i){for(;null!==i;){const o=i._next;this._addToRemovals(this._unlink(i)),i=o}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(i,o,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const l=i._prevRemoved,f=i._nextRemoved;return null===l?this._removalsHead=f:l._nextRemoved=f,null===f?this._removalsTail=l:f._prevRemoved=l,this._insertAfter(i,o,r),this._addToMoves(i,r),i}_moveAfter(i,o,r){return this._unlink(i),this._insertAfter(i,o,r),this._addToMoves(i,r),i}_addAfter(i,o,r){return this._insertAfter(i,o,r),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,o,r){const l=null===o?this._itHead:o._next;return i._next=l,i._prev=o,null===l?this._itTail=i:l._prev=i,null===o?this._itHead=i:o._next=i,null===this._linkedRecords&&(this._linkedRecords=new O_),this._linkedRecords.put(i),i.currentIndex=r,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const o=i._prev,r=i._next;return null===o?this._itHead=r:o._next=r,null===r?this._itTail=o:r._prev=o,i}_addToMoves(i,o){return i.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new O_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,o){return i.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class uM{constructor(i,o){this.item=i,this.trackById=o,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 dM{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,o){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===o||o<=r.currentIndex)&&Object.is(r.trackById,i))return r;return null}remove(i){const o=i._prevDup,r=i._nextDup;return null===o?this._head=r:o._nextDup=r,null===r?this._tail=o:r._prevDup=o,null===this._head}}class O_{constructor(){this.map=new Map}put(i){const o=i.trackById;let r=this.map.get(o);r||(r=new dM,this.map.set(o,r)),r.add(i)}get(i,o){const l=this.map.get(i);return l?l.get(i,o):null}remove(i){const o=i.trackById;return this.map.get(o).remove(i)&&this.map.delete(o),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function I_(n,i,o){const r=n.previousIndex;if(null===r)return r;let l=0;return o&&r{if(o&&o.key===l)this._maybeAddToChanges(o,r),this._appendAfter=o,o=o._next;else{const f=this._getOrCreateRecordForKey(l,r);o=this._insertBeforeOrAppend(o,f)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let r=o;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,o){if(i){const r=i._prev;return o._next=i,o._prev=r,i._prev=o,r&&(r._next=o),i===this._mapHead&&(this._mapHead=o),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(i,o){if(this._records.has(i)){const l=this._records.get(i);this._maybeAddToChanges(l,o);const f=l._prev,y=l._next;return f&&(f._next=y),y&&(y._prev=f),l._next=null,l._prev=null,l}const r=new pM(i);return this._records.set(i,r),r.currentValue=o,this._addToAdditions(r),r}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,o){Object.is(o,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=o,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,o){i instanceof Map?i.forEach(o):Object.keys(i).forEach(r=>o(i[r],r))}}class pM{constructor(i){this.key=i,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 x_(){return new g8([new D_])}let g8=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:x_});constructor(o){this.factories=o}static create(o,r){if(null!=r){const l=r.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:r=>n.create(o,r||x_()),deps:[[n,new ms,new Lr]]}}find(o){const r=this.factories.find(l=>l.supports(o));if(null!=r)return r;throw new An(901,!1)}}return n})();function P_(){return new v8([new w_])}let v8=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:P_});constructor(o){this.factories=o}static create(o,r){if(r){const l=r.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:r=>n.create(o,r||P_()),deps:[[n,new ms,new Lr]]}}find(o){const r=this.factories.find(l=>l.supports(o));if(r)return r;throw new An(901,!1)}}return n})();const gM=y_(null,"core",[]);let vM=(()=>{class n{constructor(o){}static#e=this.\u0275fac=function(r){return new(r||n)(Yi(Jl))};static#t=this.\u0275mod=Ai({type:n});static#n=this.\u0275inj=Yr({})}return n})();const X_=new xi("");function ZM(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function qM(n,i=NaN){return isNaN(parseFloat(n))||isNaN(Number(n))?i:Number(n)}function tS(n,i){wa("NgSignals");const o=function he(n){const i=Object.create(U);i.computation=n;const o=()=>{if(X(i),w(i),i.value===R)throw i.error;return i.value};return o[M]=i,o}(n);return i?.equal&&(o[M].equal=i.equal),o}function nS(n){const i=K(null);try{return n()}finally{K(i)}}const iS=new xi("",{providedIn:"root",factory:()=>Yn(oS)});let oS=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new rS})}return n})();class rS{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Yn(Xt),this.taskId=null}scheduleEffect(i){if(this.enqueue(i),null===this.taskId){const o=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(o),this.taskId=null})}}enqueue(i){const o=i.creationZone;this.queues.has(o)||this.queues.set(o,new Set);const r=this.queues.get(o);r.has(i)||(this.queuedEffectCount++,r.add(i))}flush(){for(;this.queuedEffectCount>0;)for(const[i,o]of this.queues)null===i?this.flushQueue(o):i.run(()=>this.flushQueue(o))}flushQueue(i){for(const o of i)i.delete(o),this.queuedEffectCount--,o.run()}}class sS{constructor(i,o,r,l,f,y){this.scheduler=i,this.effectFn=o,this.creationZone=r,this.injector=f,this.watcher=function Ut(n,i,o){const r=Object.create(fn);o&&(r.consumerAllowSignalWrites=!0),r.fn=n,r.schedule=i;const l=$=>{r.cleanupFn=$};return r.ref={notify:()=>oe(r),run:()=>{if(null===r.fn)return;if(function j(){return m}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Oe(r))return;r.hasRun=!0;const $=J(r);try{r.cleanupFn(),r.cleanupFn=Lt,r.fn(l)}finally{Ee(r,$)}},cleanup:()=>r.cleanupFn(),destroy:()=>function y($){(function f($){return null===$.fn&&null===$.schedule})($)||(pe($),$.cleanupFn(),$.fn=null,$.schedule=null,$.cleanupFn=Lt)}(r),[M]:r},r.ref}(D=>this.runEffect(D),()=>this.schedule(),y),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(i){try{this.effectFn(i)}catch(o){this.injector.get(Js,null,{optional:!0})?.handleError(o)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function r9(n,i){wa("NgSignals"),!i?.injector&&Yc();const o=i?.injector??Yn(Nr),r=!0!==i?.manualCleanup?o.get(d):null,l=new sS(o.get(iS),n,typeof Zone>"u"?null:Zone.current,r,o,i?.allowSignalWrites??!1),f=o.get(T_,null,{optional:!0});return f&&8&f._lView[Pi]?(f._lView[Xc]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function aS(n,i){const o=Bi(n),r=i.elementInjector||Gc();return new sp(o).create(r,i.projectableNodes,i.hostElement,i.environmentInjector)}function cS(n){const i=Bi(n);if(!i)return null;const o=new sp(i);return{get selector(){return o.selector},get type(){return o.componentType},get inputs(){return o.inputs},get outputs(){return o.outputs},get ngContentSelectors(){return o.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}},9417:(Rt,De,a)=>{a.d(De,{BC:()=>Wt,EL:()=>ce,J3:()=>ge,JD:()=>qn,MJ:()=>Ni,X1:()=>ts,YN:()=>Oo,YS:()=>fr,Yp:()=>sn,Zm:()=>w,cV:()=>mn,cb:()=>Ue,gE:()=>N,j4:()=>tn,k0:()=>Ie,kq:()=>A,l_:()=>Mt,mP:()=>V,me:()=>x,qT:()=>Zn,vO:()=>bt,vS:()=>qi});var t=a(3953),s=a(177),m=a(2806),e=a(7468),M=a(1413),K=a(6354);let L=(()=>{class Ne{constructor(ye,pt){this._renderer=ye,this._elementRef=pt,this.onChange=Jt=>{},this.onTouched=()=>{}}setProperty(ye,pt){this._renderer.setProperty(this._elementRef.nativeElement,ye,pt)}registerOnTouched(ye){this.onTouched=ye}registerOnChange(ye){this.onChange=ye}setDisabledState(ye){this.setProperty("disabled",ye)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ne})}return Ne})(),j=(()=>{class Ne extends L{static#e=this.\u0275fac=(()=>{let ye;return function(Jt){return(ye||(ye=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,features:[t.Vt3]})}return Ne})();const A=new t.nKC(""),I={provide:A,useExisting:(0,t.Rfq)(()=>w),multi:!0};let w=(()=>{class Ne extends j{writeValue(ye){this.setProperty("checked",ye)}static#e=this.\u0275fac=(()=>{let ye;return function(Jt){return(ye||(ye=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(pt,Jt){1&pt&&t.bIt("change",function(Qi){return Jt.onChange(Qi.target.checked)})("blur",function(){return Jt.onTouched()})},features:[t.Jv_([I]),t.Vt3]})}return Ne})();const F={provide:A,useExisting:(0,t.Rfq)(()=>x),multi:!0},V=new t.nKC("");let x=(()=>{class Ne extends L{constructor(ye,pt,Jt){super(ye,pt),this._compositionMode=Jt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function X(){const Ne=(0,s.QT)()?(0,s.QT)().getUserAgent():"";return/android (\d+)/.test(Ne.toLowerCase())}())}writeValue(ye){this.setProperty("value",ye??"")}_handleInput(ye){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ye)}_compositionStart(){this._composing=!0}_compositionEnd(ye){this._composing=!1,this._compositionMode&&this.onChange(ye)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(V,8))};static#t=this.\u0275dir=t.FsC({type:Ne,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(pt,Jt){1&pt&&t.bIt("input",function(Qi){return Jt._handleInput(Qi.target.value)})("blur",function(){return Jt.onTouched()})("compositionstart",function(){return Jt._compositionStart()})("compositionend",function(Qi){return Jt._compositionEnd(Qi.target.value)})},features:[t.Jv_([F]),t.Vt3]})}return Ne})();function oe(Ne){return null==Ne||("string"==typeof Ne||Array.isArray(Ne))&&0===Ne.length}function J(Ne){return null!=Ne&&"number"==typeof Ne.length}const Ee=new t.nKC(""),Oe=new t.nKC(""),pe=/^(?=.{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 Ie{static min(je){return function ve(Ne){return je=>{if(oe(je.value)||oe(Ne))return null;const ye=parseFloat(je.value);return!isNaN(ye)&&ye{if(oe(je.value)||oe(Ne))return null;const ye=parseFloat(je.value);return!isNaN(ye)&&ye>Ne?{max:{max:Ne,actual:je.value}}:null}}(je)}static required(je){return Y(je)}static requiredTrue(je){return function z(Ne){return!0===Ne.value?null:{required:!0}}(je)}static email(je){return function Z(Ne){return oe(Ne.value)||pe.test(Ne.value)?null:{email:!0}}(je)}static minLength(je){return function he(Ne){return je=>oe(je.value)||!J(je.value)?null:je.value.lengthJ(je.value)&&je.value.length>Ne?{maxlength:{requiredLength:Ne,actualLength:je.value.length}}:null}(je)}static pattern(je){return function S(Ne){if(!Ne)return R;let je,ye;return"string"==typeof Ne?(ye="","^"!==Ne.charAt(0)&&(ye+="^"),ye+=Ne,"$"!==Ne.charAt(Ne.length-1)&&(ye+="$"),je=new RegExp(ye)):(ye=Ne.toString(),je=Ne),pt=>{if(oe(pt.value))return null;const Jt=pt.value;return je.test(Jt)?null:{pattern:{requiredPattern:ye,actualValue:Jt}}}}(je)}static nullValidator(je){return null}static compose(je){return Le(je)}static composeAsync(je){return xt(je)}}function Y(Ne){return oe(Ne.value)?{required:!0}:null}function R(Ne){return null}function U(Ne){return null!=Ne}function se(Ne){return(0,t.jNT)(Ne)?(0,m.H)(Ne):Ne}function Be(Ne){let je={};return Ne.forEach(ye=>{je=null!=ye?{...je,...ye}:je}),0===Object.keys(je).length?null:je}function Pt(Ne,je){return je.map(ye=>ye(Ne))}function wt(Ne){return Ne.map(je=>function gt(Ne){return!Ne.validate}(je)?je:ye=>je.validate(ye))}function Le(Ne){if(!Ne)return null;const je=Ne.filter(U);return 0==je.length?null:function(ye){return Be(Pt(ye,je))}}function zt(Ne){return null!=Ne?Le(wt(Ne)):null}function xt(Ne){if(!Ne)return null;const je=Ne.filter(U);return 0==je.length?null:function(ye){const pt=Pt(ye,je).map(se);return(0,e.p)(pt).pipe((0,K.T)(Be))}}function st(Ne){return null!=Ne?xt(wt(Ne)):null}function Ct(Ne,je){return null===Ne?[je]:Array.isArray(Ne)?[...Ne,je]:[Ne,je]}function It(Ne){return Ne._rawValidators}function Tt(Ne){return Ne._rawAsyncValidators}function en(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}function Ut(Ne,je){return Array.isArray(Ne)?Ne.includes(je):Ne===je}function Lt(Ne,je){const ye=en(je);return en(Ne).forEach(Jt=>{Ut(ye,Jt)||ye.push(Jt)}),ye}function fn(Ne,je){return en(je).filter(ye=>!Ut(Ne,ye))}class $n{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(je){this._rawValidators=je||[],this._composedValidatorFn=zt(this._rawValidators)}_setAsyncValidators(je){this._rawAsyncValidators=je||[],this._composedAsyncValidatorFn=st(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(je){this._onDestroyCallbacks.push(je)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(je=>je()),this._onDestroyCallbacks=[]}reset(je=void 0){this.control&&this.control.reset(je)}hasError(je,ye){return!!this.control&&this.control.hasError(je,ye)}getError(je,ye){return this.control?this.control.getError(je,ye):null}}class zn extends $n{get formDirective(){return null}get path(){return null}}class bt extends $n{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class At{constructor(je){this._cd=je}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Wt=(()=>{class Ne extends At{constructor(ye){super(ye)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(bt,2))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(pt,Jt){2&pt&&t.AVh("ng-untouched",Jt.isUntouched)("ng-touched",Jt.isTouched)("ng-pristine",Jt.isPristine)("ng-dirty",Jt.isDirty)("ng-valid",Jt.isValid)("ng-invalid",Jt.isInvalid)("ng-pending",Jt.isPending)},features:[t.Vt3]})}return Ne})(),Ue=(()=>{class Ne extends At{constructor(ye){super(ye)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(zn,10))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(pt,Jt){2&pt&&t.AVh("ng-untouched",Jt.isUntouched)("ng-touched",Jt.isTouched)("ng-pristine",Jt.isPristine)("ng-dirty",Jt.isDirty)("ng-valid",Jt.isValid)("ng-invalid",Jt.isInvalid)("ng-pending",Jt.isPending)("ng-submitted",Jt.isSubmitted)},features:[t.Vt3]})}return Ne})();const Ge="VALID",ue="INVALID",q="PENDING",ee="DISABLED";class Xe{}class dt extends Xe{constructor(je,ye){super(),this.value=je,this.source=ye}}class at extends Xe{constructor(je,ye){super(),this.pristine=je,this.source=ye}}class Ot extends Xe{constructor(je,ye){super(),this.touched=je,this.source=ye}}class Qe extends Xe{constructor(je,ye){super(),this.status=je,this.source=ye}}class be extends Xe{constructor(je){super(),this.source=je}}class Je extends Xe{constructor(je){super(),this.source=je}}function re(Ne){return(xe(Ne)?Ne.validators:Ne)||null}function mt(Ne,je){return(xe(je)?je.asyncValidators:Ne)||null}function xe(Ne){return null!=Ne&&!Array.isArray(Ne)&&"object"==typeof Ne}function Re(Ne,je,ye){const pt=Ne.controls;if(!(je?Object.keys(pt):pt).length)throw new t.wOt(1e3,"");if(!pt[ye])throw new t.wOt(1001,"")}function B(Ne,je,ye){Ne._forEachChild((pt,Jt)=>{if(void 0===ye[Jt])throw new t.wOt(1002,"")})}class ce{constructor(je,ye){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,t.EWP)(()=>this.statusReactive()),this.statusReactive=(0,t.vPA)(void 0),this._pristine=(0,t.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,t.vPA)(!0),this._touched=(0,t.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,t.vPA)(!1),this._events=new M.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(je),this._assignAsyncValidators(ye)}get validator(){return this._composedValidatorFn}set validator(je){this._rawValidators=this._composedValidatorFn=je}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(je){this._rawAsyncValidators=this._composedAsyncValidatorFn=je}get parent(){return this._parent}get status(){return(0,t.O8t)(this.statusReactive)}set status(je){(0,t.O8t)(()=>this.statusReactive.set(je))}get valid(){return this.status===Ge}get invalid(){return this.status===ue}get pending(){return this.status==q}get disabled(){return this.status===ee}get enabled(){return this.status!==ee}get pristine(){return(0,t.O8t)(this.pristineReactive)}set pristine(je){(0,t.O8t)(()=>this.pristineReactive.set(je))}get dirty(){return!this.pristine}get touched(){return(0,t.O8t)(this.touchedReactive)}set touched(je){(0,t.O8t)(()=>this.touchedReactive.set(je))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(je){this._assignValidators(je)}setAsyncValidators(je){this._assignAsyncValidators(je)}addValidators(je){this.setValidators(Lt(je,this._rawValidators))}addAsyncValidators(je){this.setAsyncValidators(Lt(je,this._rawAsyncValidators))}removeValidators(je){this.setValidators(fn(je,this._rawValidators))}removeAsyncValidators(je){this.setAsyncValidators(fn(je,this._rawAsyncValidators))}hasValidator(je){return Ut(this._rawValidators,je)}hasAsyncValidator(je){return Ut(this._rawAsyncValidators,je)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(je={}){const ye=!1===this.touched;this.touched=!0;const pt=je.sourceControl??this;this._parent&&!je.onlySelf&&this._parent.markAsTouched({...je,sourceControl:pt}),ye&&!1!==je.emitEvent&&this._events.next(new Ot(!0,pt))}markAllAsTouched(je={}){this.markAsTouched({onlySelf:!0,emitEvent:je.emitEvent,sourceControl:this}),this._forEachChild(ye=>ye.markAllAsTouched(je))}markAsUntouched(je={}){const ye=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const pt=je.sourceControl??this;this._forEachChild(Jt=>{Jt.markAsUntouched({onlySelf:!0,emitEvent:je.emitEvent,sourceControl:pt})}),this._parent&&!je.onlySelf&&this._parent._updateTouched(je,pt),ye&&!1!==je.emitEvent&&this._events.next(new Ot(!1,pt))}markAsDirty(je={}){const ye=!0===this.pristine;this.pristine=!1;const pt=je.sourceControl??this;this._parent&&!je.onlySelf&&this._parent.markAsDirty({...je,sourceControl:pt}),ye&&!1!==je.emitEvent&&this._events.next(new at(!1,pt))}markAsPristine(je={}){const ye=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const pt=je.sourceControl??this;this._forEachChild(Jt=>{Jt.markAsPristine({onlySelf:!0,emitEvent:je.emitEvent})}),this._parent&&!je.onlySelf&&this._parent._updatePristine(je,pt),ye&&!1!==je.emitEvent&&this._events.next(new at(!0,pt))}markAsPending(je={}){this.status=q;const ye=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new Qe(this.status,ye)),this.statusChanges.emit(this.status)),this._parent&&!je.onlySelf&&this._parent.markAsPending({...je,sourceControl:ye})}disable(je={}){const ye=this._parentMarkedDirty(je.onlySelf);this.status=ee,this.errors=null,this._forEachChild(Jt=>{Jt.disable({...je,onlySelf:!0})}),this._updateValue();const pt=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new dt(this.value,pt)),this._events.next(new Qe(this.status,pt)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...je,skipPristineCheck:ye},this),this._onDisabledChange.forEach(Jt=>Jt(!0))}enable(je={}){const ye=this._parentMarkedDirty(je.onlySelf);this.status=Ge,this._forEachChild(pt=>{pt.enable({...je,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent}),this._updateAncestors({...je,skipPristineCheck:ye},this),this._onDisabledChange.forEach(pt=>pt(!1))}_updateAncestors(je,ye){this._parent&&!je.onlySelf&&(this._parent.updateValueAndValidity(je),je.skipPristineCheck||this._parent._updatePristine({},ye),this._parent._updateTouched({},ye))}setParent(je){this._parent=je}getRawValue(){return this.value}updateValueAndValidity(je={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const pt=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ge||this.status===q)&&this._runAsyncValidator(pt,je.emitEvent)}const ye=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new dt(this.value,ye)),this._events.next(new Qe(this.status,ye)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!je.onlySelf&&this._parent.updateValueAndValidity({...je,sourceControl:ye})}_updateTreeValidity(je={emitEvent:!0}){this._forEachChild(ye=>ye._updateTreeValidity(je)),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ee:Ge}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(je,ye){if(this.asyncValidator){this.status=q,this._hasOwnPendingAsyncValidator={emitEvent:!1!==ye};const pt=se(this.asyncValidator(this));this._asyncValidationSubscription=pt.subscribe(Jt=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Jt,{emitEvent:ye,shouldHaveEmitted:je})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const je=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,je}return!1}setErrors(je,ye={}){this.errors=je,this._updateControlsErrors(!1!==ye.emitEvent,this,ye.shouldHaveEmitted)}get(je){let ye=je;return null==ye||(Array.isArray(ye)||(ye=ye.split(".")),0===ye.length)?null:ye.reduce((pt,Jt)=>pt&&pt._find(Jt),this)}getError(je,ye){const pt=ye?this.get(ye):this;return pt&&pt.errors?pt.errors[je]:null}hasError(je,ye){return!!this.getError(je,ye)}get root(){let je=this;for(;je._parent;)je=je._parent;return je}_updateControlsErrors(je,ye,pt){this.status=this._calculateStatus(),je&&this.statusChanges.emit(this.status),(je||pt)&&this._events.next(new Qe(this.status,ye)),this._parent&&this._parent._updateControlsErrors(je,ye,pt)}_initObservables(){this.valueChanges=new t.bkB,this.statusChanges=new t.bkB}_calculateStatus(){return this._allControlsDisabled()?ee:this.errors?ue:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(q)?q:this._anyControlsHaveStatus(ue)?ue:Ge}_anyControlsHaveStatus(je){return this._anyControls(ye=>ye.status===je)}_anyControlsDirty(){return this._anyControls(je=>je.dirty)}_anyControlsTouched(){return this._anyControls(je=>je.touched)}_updatePristine(je,ye){const pt=!this._anyControlsDirty(),Jt=this.pristine!==pt;this.pristine=pt,this._parent&&!je.onlySelf&&this._parent._updatePristine(je,ye),Jt&&this._events.next(new at(this.pristine,ye))}_updateTouched(je={},ye){this.touched=this._anyControlsTouched(),this._events.next(new Ot(this.touched,ye)),this._parent&&!je.onlySelf&&this._parent._updateTouched(je,ye)}_registerOnCollectionChange(je){this._onCollectionChange=je}_setUpdateStrategy(je){xe(je)&&null!=je.updateOn&&(this._updateOn=je.updateOn)}_parentMarkedDirty(je){return!je&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(je){return null}_assignValidators(je){this._rawValidators=Array.isArray(je)?je.slice():je,this._composedValidatorFn=function ze(Ne){return Array.isArray(Ne)?zt(Ne):Ne||null}(this._rawValidators)}_assignAsyncValidators(je){this._rawAsyncValidators=Array.isArray(je)?je.slice():je,this._composedAsyncValidatorFn=function Ke(Ne){return Array.isArray(Ne)?st(Ne):Ne||null}(this._rawAsyncValidators)}}class N extends ce{constructor(je,ye,pt){super(re(ye),mt(pt,ye)),this.controls=je,this._initObservables(),this._setUpdateStrategy(ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(je,ye){return this.controls[je]?this.controls[je]:(this.controls[je]=ye,ye.setParent(this),ye._registerOnCollectionChange(this._onCollectionChange),ye)}addControl(je,ye,pt={}){this.registerControl(je,ye),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}removeControl(je,ye={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],this.updateValueAndValidity({emitEvent:ye.emitEvent}),this._onCollectionChange()}setControl(je,ye,pt={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],ye&&this.registerControl(je,ye),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}contains(je){return this.controls.hasOwnProperty(je)&&this.controls[je].enabled}setValue(je,ye={}){B(this,0,je),Object.keys(je).forEach(pt=>{Re(this,!0,pt),this.controls[pt].setValue(je[pt],{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye)}patchValue(je,ye={}){null!=je&&(Object.keys(je).forEach(pt=>{const Jt=this.controls[pt];Jt&&Jt.patchValue(je[pt],{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye))}reset(je={},ye={}){this._forEachChild((pt,Jt)=>{pt.reset(je?je[Jt]:null,{onlySelf:!0,emitEvent:ye.emitEvent})}),this._updatePristine(ye,this),this._updateTouched(ye,this),this.updateValueAndValidity(ye)}getRawValue(){return this._reduceChildren({},(je,ye,pt)=>(je[pt]=ye.getRawValue(),je))}_syncPendingControls(){let je=this._reduceChildren(!1,(ye,pt)=>!!pt._syncPendingControls()||ye);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){Object.keys(this.controls).forEach(ye=>{const pt=this.controls[ye];pt&&je(pt,ye)})}_setUpControls(){this._forEachChild(je=>{je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(je){for(const[ye,pt]of Object.entries(this.controls))if(this.contains(ye)&&je(pt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ye,pt,Jt)=>((pt.enabled||this.disabled)&&(ye[Jt]=pt.value),ye))}_reduceChildren(je,ye){let pt=je;return this._forEachChild((Jt,wi)=>{pt=ye(pt,Jt,wi)}),pt}_allControlsDisabled(){for(const je of Object.keys(this.controls))if(this.controls[je].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(je){return this.controls.hasOwnProperty(je)?this.controls[je]:null}}const ge=N,qe=new t.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>rt}),rt="always";function Ft(Ne,je){return[...je.path,Ne]}function rn(Ne,je,ye=rt){Gn(Ne,je),je.valueAccessor.writeValue(Ne.value),(Ne.disabled||"always"===ye)&&je.valueAccessor.setDisabledState?.(Ne.disabled),function Oi(Ne,je){je.valueAccessor.registerOnChange(ye=>{Ne._pendingValue=ye,Ne._pendingChange=!0,Ne._pendingDirty=!0,"change"===Ne.updateOn&&Zi(Ne,je)})}(Ne,je),function Vo(Ne,je){const ye=(pt,Jt)=>{je.valueAccessor.writeValue(pt),Jt&&je.viewToModelUpdate(pt)};Ne.registerOnChange(ye),je._registerOnDestroy(()=>{Ne._unregisterOnChange(ye)})}(Ne,je),function po(Ne,je){je.valueAccessor.registerOnTouched(()=>{Ne._pendingTouched=!0,"blur"===Ne.updateOn&&Ne._pendingChange&&Zi(Ne,je),"submit"!==Ne.updateOn&&Ne.markAsTouched()})}(Ne,je),function jn(Ne,je){if(je.valueAccessor.setDisabledState){const ye=pt=>{je.valueAccessor.setDisabledState(pt)};Ne.registerOnDisabledChange(ye),je._registerOnDestroy(()=>{Ne._unregisterOnDisabledChange(ye)})}}(Ne,je)}function Cn(Ne,je,ye=!0){const pt=()=>{};je.valueAccessor&&(je.valueAccessor.registerOnChange(pt),je.valueAccessor.registerOnTouched(pt)),zi(Ne,je),Ne&&(je._invokeOnDestroyCallbacks(),Ne._registerOnCollectionChange(()=>{}))}function Jn(Ne,je){Ne.forEach(ye=>{ye.registerOnValidatorChange&&ye.registerOnValidatorChange(je)})}function Gn(Ne,je){const ye=It(Ne);null!==je.validator?Ne.setValidators(Ct(ye,je.validator)):"function"==typeof ye&&Ne.setValidators([ye]);const pt=Tt(Ne);null!==je.asyncValidator?Ne.setAsyncValidators(Ct(pt,je.asyncValidator)):"function"==typeof pt&&Ne.setAsyncValidators([pt]);const Jt=()=>Ne.updateValueAndValidity();Jn(je._rawValidators,Jt),Jn(je._rawAsyncValidators,Jt)}function zi(Ne,je){let ye=!1;if(null!==Ne){if(null!==je.validator){const Jt=It(Ne);if(Array.isArray(Jt)&&Jt.length>0){const wi=Jt.filter(Qi=>Qi!==je.validator);wi.length!==Jt.length&&(ye=!0,Ne.setValidators(wi))}}if(null!==je.asyncValidator){const Jt=Tt(Ne);if(Array.isArray(Jt)&&Jt.length>0){const wi=Jt.filter(Qi=>Qi!==je.asyncValidator);wi.length!==Jt.length&&(ye=!0,Ne.setAsyncValidators(wi))}}}const pt=()=>{};return Jn(je._rawValidators,pt),Jn(je._rawAsyncValidators,pt),ye}function Zi(Ne,je){Ne._pendingDirty&&Ne.markAsDirty(),Ne.setValue(Ne._pendingValue,{emitModelToViewChange:!1}),je.viewToModelUpdate(Ne._pendingValue),Ne._pendingChange=!1}function Co(Ne,je){Gn(Ne,je)}function hn(Ne,je){if(!Ne.hasOwnProperty("model"))return!1;const ye=Ne.model;return!!ye.isFirstChange()||!Object.is(je,ye.currentValue)}function En(Ne,je){Ne._syncPendingControls(),je.forEach(ye=>{const pt=ye.control;"submit"===pt.updateOn&&pt._pendingChange&&(ye.viewToModelUpdate(pt._pendingValue),pt._pendingChange=!1)})}function Xn(Ne,je){if(!je)return null;let ye,pt,Jt;return Array.isArray(je),je.forEach(wi=>{wi.constructor===x?ye=wi:function Hn(Ne){return Object.getPrototypeOf(Ne.constructor)===j}(wi)?pt=wi:Jt=wi}),Jt||pt||ye||null}const lo={provide:zn,useExisting:(0,t.Rfq)(()=>mn)},bi=Promise.resolve();let mn=(()=>{class Ne extends zn{get submitted(){return(0,t.O8t)(this.submittedReactive)}constructor(ye,pt,Jt){super(),this.callSetDisabledState=Jt,this._submitted=(0,t.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,t.vPA)(!1),this._directives=new Set,this.ngSubmit=new t.bkB,this.form=new N({},zt(ye),st(pt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ye){bi.then(()=>{const pt=this._findContainer(ye.path);ye.control=pt.registerControl(ye.name,ye.control),rn(ye.control,ye,this.callSetDisabledState),ye.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ye)})}getControl(ye){return this.form.get(ye.path)}removeControl(ye){bi.then(()=>{const pt=this._findContainer(ye.path);pt&&pt.removeControl(ye.name),this._directives.delete(ye)})}addFormGroup(ye){bi.then(()=>{const pt=this._findContainer(ye.path),Jt=new N({});Co(Jt,ye),pt.registerControl(ye.name,Jt),Jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ye){bi.then(()=>{const pt=this._findContainer(ye.path);pt&&pt.removeControl(ye.name)})}getFormGroup(ye){return this.form.get(ye.path)}updateModel(ye,pt){bi.then(()=>{this.form.get(ye.path).setValue(pt)})}setValue(ye){this.control.setValue(ye)}onSubmit(ye){return this.submittedReactive.set(!0),En(this.form,this._directives),this.ngSubmit.emit(ye),"dialog"===ye?.target?.method}onReset(){this.resetForm()}resetForm(ye=void 0){this.form.reset(ye),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ye){return ye.pop(),ye.length?this.form.get(ye):this.form}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(Ee,10),t.rXU(Oe,10),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(pt,Jt){1&pt&&t.bIt("submit",function(Qi){return Jt.onSubmit(Qi)})("reset",function(){return Jt.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([lo]),t.Vt3]})}return Ne})();function Ui(Ne,je){const ye=Ne.indexOf(je);ye>-1&&Ne.splice(ye,1)}function Mi(Ne){return"object"==typeof Ne&&null!==Ne&&2===Object.keys(Ne).length&&"value"in Ne&&"disabled"in Ne}const Ni=class extends ce{constructor(je=null,ye,pt){super(re(ye),mt(pt,ye)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(je),this._setUpdateStrategy(ye),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xe(ye)&&(ye.nonNullable||ye.initialValueIsDefault)&&(this.defaultValue=Mi(je)?je.value:je)}setValue(je,ye={}){this.value=this._pendingValue=je,this._onChange.length&&!1!==ye.emitModelToViewChange&&this._onChange.forEach(pt=>pt(this.value,!1!==ye.emitViewToModelChange)),this.updateValueAndValidity(ye)}patchValue(je,ye={}){this.setValue(je,ye)}reset(je=this.defaultValue,ye={}){this._applyFormState(je),this.markAsPristine(ye),this.markAsUntouched(ye),this.setValue(this.value,ye),this._pendingChange=!1}_updateValue(){}_anyControls(je){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(je){this._onChange.push(je)}_unregisterOnChange(je){Ui(this._onChange,je)}registerOnDisabledChange(je){this._onDisabledChange.push(je)}_unregisterOnDisabledChange(je){Ui(this._onDisabledChange,je)}_forEachChild(je){}_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(je){Mi(je)?(this.value=this._pendingValue=je.value,je.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=je}},Lo={provide:bt,useExisting:(0,t.Rfq)(()=>qi)},Ur=Promise.resolve();let qi=(()=>{class Ne extends bt{constructor(ye,pt,Jt,wi,Qi,xo){super(),this._changeDetectorRef=Qi,this.callSetDisabledState=xo,this.control=new Ni,this._registered=!1,this.name="",this.update=new t.bkB,this._parent=ye,this._setValidators(pt),this._setAsyncValidators(Jt),this.valueAccessor=Xn(0,wi)}ngOnChanges(ye){if(this._checkForErrors(),!this._registered||"name"in ye){if(this._registered&&(this._checkName(),this.formDirective)){const pt=ye.name.previousValue;this.formDirective.removeControl({name:pt,path:this._getPath(pt)})}this._setUpControl()}"isDisabled"in ye&&this._updateDisabled(ye),hn(ye,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(ye){this.viewModel=ye,this.update.emit(ye)}_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(){rn(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(ye){Ur.then(()=>{this.control.setValue(ye,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(ye){const pt=ye.isDisabled.currentValue,Jt=0!==pt&&(0,t.L39)(pt);Ur.then(()=>{Jt&&!this.control.disabled?this.control.disable():!Jt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(ye){return this._parent?Ft(ye,this._parent):[ye]}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(zn,9),t.rXU(Ee,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(t.gRc,8),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.Jv_([Lo]),t.Vt3,t.OA$]})}return Ne})(),Zn=(()=>{class Ne{static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ne})();const Ve=new t.nKC(""),nt={provide:bt,useExisting:(0,t.Rfq)(()=>Mt)};let Mt=(()=>{class Ne extends bt{set isDisabled(ye){}static#e=this._ngModelWarningSentOnce=!1;constructor(ye,pt,Jt,wi,Qi){super(),this._ngModelWarningConfig=wi,this.callSetDisabledState=Qi,this.update=new t.bkB,this._ngModelWarningSent=!1,this._setValidators(ye),this._setAsyncValidators(pt),this.valueAccessor=Xn(0,Jt)}ngOnChanges(ye){if(this._isControlChanged(ye)){const pt=ye.form.previousValue;pt&&Cn(pt,this,!1),rn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}hn(ye,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ye){this.viewModel=ye,this.update.emit(ye)}_isControlChanged(ye){return ye.hasOwnProperty("form")}static#t=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(Ee,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(Ve,8),t.rXU(qe,8))};static#n=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.Jv_([nt]),t.Vt3,t.OA$]})}return Ne})();const Yt={provide:zn,useExisting:(0,t.Rfq)(()=>tn)};let tn=(()=>{class Ne extends zn{get submitted(){return(0,t.O8t)(this._submittedReactive)}set submitted(ye){this._submittedReactive.set(ye)}constructor(ye,pt,Jt){super(),this.callSetDisabledState=Jt,this._submitted=(0,t.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,t.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.bkB,this._setValidators(ye),this._setAsyncValidators(pt)}ngOnChanges(ye){this._checkFormPresent(),ye.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(zi(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ye){const pt=this.form.get(ye.path);return rn(pt,ye,this.callSetDisabledState),pt.updateValueAndValidity({emitEvent:!1}),this.directives.push(ye),pt}getControl(ye){return this.form.get(ye.path)}removeControl(ye){Cn(ye.control||null,ye,!1),function ci(Ne,je){const ye=Ne.indexOf(je);ye>-1&&Ne.splice(ye,1)}(this.directives,ye)}addFormGroup(ye){this._setUpFormContainer(ye)}removeFormGroup(ye){this._cleanUpFormContainer(ye)}getFormGroup(ye){return this.form.get(ye.path)}addFormArray(ye){this._setUpFormContainer(ye)}removeFormArray(ye){this._cleanUpFormContainer(ye)}getFormArray(ye){return this.form.get(ye.path)}updateModel(ye,pt){this.form.get(ye.path).setValue(pt)}onSubmit(ye){return this._submittedReactive.set(!0),En(this.form,this.directives),this.ngSubmit.emit(ye),this.form._events.next(new be(this.control)),"dialog"===ye?.target?.method}onReset(){this.resetForm()}resetForm(ye=void 0){this.form.reset(ye),this._submittedReactive.set(!1),this.form._events.next(new Je(this.form))}_updateDomValue(){this.directives.forEach(ye=>{const pt=ye.control,Jt=this.form.get(ye.path);pt!==Jt&&(Cn(pt||null,ye),(Ne=>Ne instanceof Ni)(Jt)&&(rn(Jt,ye,this.callSetDisabledState),ye.control=Jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ye){const pt=this.form.get(ye.path);Co(pt,ye),pt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ye){if(this.form){const pt=this.form.get(ye.path);pt&&function zr(Ne,je){return zi(Ne,je)}(pt,ye)&&pt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Gn(this.form,this),this._oldForm&&zi(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(Ee,10),t.rXU(Oe,10),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formGroup",""]],hostBindings:function(pt,Jt){1&pt&&t.bIt("submit",function(Qi){return Jt.onSubmit(Qi)})("reset",function(){return Jt.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([Yt]),t.Vt3,t.OA$]})}return Ne})();const Kn={provide:bt,useExisting:(0,t.Rfq)(()=>qn)};let qn=(()=>{class Ne extends bt{set isDisabled(ye){}static#e=this._ngModelWarningSentOnce=!1;constructor(ye,pt,Jt,wi,Qi){super(),this._ngModelWarningConfig=Qi,this._added=!1,this.name=null,this.update=new t.bkB,this._ngModelWarningSent=!1,this._parent=ye,this._setValidators(pt),this._setAsyncValidators(Jt),this.valueAccessor=Xn(0,wi)}ngOnChanges(ye){this._added||this._setUpControl(),hn(ye,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(ye){this.viewModel=ye,this.update.emit(ye)}get path(){return Ft(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}static#t=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(zn,13),t.rXU(Ee,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(Ve,8))};static#n=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.Jv_([Kn]),t.Vt3,t.OA$]})}return Ne})(),qo=(()=>{class Ne{constructor(){this._validator=R}ngOnChanges(ye){if(this.inputName in ye){const pt=this.normalizeInput(ye[this.inputName].currentValue);this._enabled=this.enabled(pt),this._validator=this._enabled?this.createValidator(pt):R,this._onChange&&this._onChange()}}validate(ye){return this._validator(ye)}registerOnValidatorChange(ye){this._onChange=ye}enabled(ye){return null!=ye}static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275dir=t.FsC({type:Ne,features:[t.OA$]})}return Ne})();const vr={provide:Ee,useExisting:(0,t.Rfq)(()=>fr),multi:!0};let fr=(()=>{class Ne extends qo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.L39,this.createValidator=ye=>Y}enabled(ye){return ye}static#e=this.\u0275fac=(()=>{let ye;return function(Jt){return(ye||(ye=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(pt,Jt){2&pt&&t.BMQ("required",Jt._enabled?"":null)},inputs:{required:"required"},features:[t.Jv_([vr]),t.Vt3]})}return Ne})(),ct=(()=>{class Ne{static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({})}return Ne})();class sn extends ce{constructor(je,ye,pt){super(re(ye),mt(pt,ye)),this.controls=je,this._initObservables(),this._setUpdateStrategy(ye),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(je){return this.controls[this._adjustIndex(je)]}push(je,ye={}){this.controls.push(je),this._registerControl(je),this.updateValueAndValidity({emitEvent:ye.emitEvent}),this._onCollectionChange()}insert(je,ye,pt={}){this.controls.splice(je,0,ye),this._registerControl(ye),this.updateValueAndValidity({emitEvent:pt.emitEvent})}removeAt(je,ye={}){let pt=this._adjustIndex(je);pt<0&&(pt=0),this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),this.controls.splice(pt,1),this.updateValueAndValidity({emitEvent:ye.emitEvent})}setControl(je,ye,pt={}){let Jt=this._adjustIndex(je);Jt<0&&(Jt=0),this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),this.controls.splice(Jt,1),ye&&(this.controls.splice(Jt,0,ye),this._registerControl(ye)),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(je,ye={}){B(this,0,je),je.forEach((pt,Jt)=>{Re(this,!1,Jt),this.at(Jt).setValue(pt,{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye)}patchValue(je,ye={}){null!=je&&(je.forEach((pt,Jt)=>{this.at(Jt)&&this.at(Jt).patchValue(pt,{onlySelf:!0,emitEvent:ye.emitEvent})}),this.updateValueAndValidity(ye))}reset(je=[],ye={}){this._forEachChild((pt,Jt)=>{pt.reset(je[Jt],{onlySelf:!0,emitEvent:ye.emitEvent})}),this._updatePristine(ye,this),this._updateTouched(ye,this),this.updateValueAndValidity(ye)}getRawValue(){return this.controls.map(je=>je.getRawValue())}clear(je={}){this.controls.length<1||(this._forEachChild(ye=>ye._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:je.emitEvent}))}_adjustIndex(je){return je<0?je+this.length:je}_syncPendingControls(){let je=this.controls.reduce((ye,pt)=>!!pt._syncPendingControls()||ye,!1);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){this.controls.forEach((ye,pt)=>{je(ye,pt)})}_updateValue(){this.value=this.controls.filter(je=>je.enabled||this.disabled).map(je=>je.value)}_anyControls(je){return this.controls.some(ye=>ye.enabled&&je(ye))}_setUpControls(){this._forEachChild(je=>this._registerControl(je))}_allControlsDisabled(){for(const je of this.controls)if(je.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(je){je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)}_find(je){return this.at(je)??null}}let Oo=(()=>{class Ne{static withConfig(ye){return{ngModule:Ne,providers:[{provide:qe,useValue:ye.callSetDisabledState??rt}]}}static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({imports:[ct]})}return Ne})(),ts=(()=>{class Ne{static withConfig(ye){return{ngModule:Ne,providers:[{provide:Ve,useValue:ye.warnOnNgModelWithFormControl??"always"},{provide:qe,useValue:ye.callSetDisabledState??rt}]}}static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({imports:[ct]})}return Ne})()},345:(Rt,De,a)=>{a.d(De,{B7:()=>z,Bb:()=>At,W8:()=>Et,hE:()=>Wt,sG:()=>fn,up:()=>Un});var t=a(177),s=a(3953);class m extends t.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class e extends m{static makeCurrent(){(0,t.ZD)(new e)}onAndCancel(Ot,Qe,be){return Ot.addEventListener(Qe,be),()=>{Ot.removeEventListener(Qe,be)}}dispatchEvent(Ot,Qe){Ot.dispatchEvent(Qe)}remove(Ot){Ot.parentNode&&Ot.parentNode.removeChild(Ot)}createElement(Ot,Qe){return(Qe=Qe||this.getDefaultDocument()).createElement(Ot)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ot){return Ot.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ot){return Ot instanceof DocumentFragment}getGlobalEventTarget(Ot,Qe){return"window"===Qe?window:"document"===Qe?Ot:"body"===Qe?Ot.body:null}getBaseHref(Ot){const Qe=function K(){return M=M||document.querySelector("base"),M?M.getAttribute("href"):null}();return null==Qe?null:function L(at){return new URL(at,document.baseURI).pathname}(Qe)}resetBaseElement(){M=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ot){return(0,t._b)(document.cookie,Ot)}}let M=null,A=(()=>{class at{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(be){return new(be||at)};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac})}return at})();const I=new s.nKC("");let w=(()=>{class at{constructor(Qe,be){this._zone=be,this._eventNameToPlugin=new Map,Qe.forEach(Je=>{Je.manager=this}),this._plugins=Qe.slice().reverse()}addEventListener(Qe,be,Je){return this._findPluginFor(be).addEventListener(Qe,be,Je)}getZone(){return this._zone}_findPluginFor(Qe){let be=this._eventNameToPlugin.get(Qe);if(be)return be;if(be=this._plugins.find(re=>re.supports(Qe)),!be)throw new s.wOt(5101,!1);return this._eventNameToPlugin.set(Qe,be),be}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(I),s.KVO(s.SKi))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac})}return at})();class F{constructor(Ot){this._doc=Ot}}const X="ng-app-id";let V=(()=>{class at{constructor(Qe,be,Je,re={}){this.doc=Qe,this.appId=be,this.nonce=Je,this.platformId=re,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,t.Vy)(re),this.resetHostNodes()}addStyles(Qe){for(const be of Qe)1===this.changeUsageCount(be,1)&&this.onStyleAdded(be)}removeStyles(Qe){for(const be of Qe)this.changeUsageCount(be,-1)<=0&&this.onStyleRemoved(be)}ngOnDestroy(){const Qe=this.styleNodesInDOM;Qe&&(Qe.forEach(be=>be.remove()),Qe.clear());for(const be of this.getAllStyles())this.onStyleRemoved(be);this.resetHostNodes()}addHost(Qe){this.hostNodes.add(Qe);for(const be of this.getAllStyles())this.addStyleToHost(Qe,be)}removeHost(Qe){this.hostNodes.delete(Qe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Qe){for(const be of this.hostNodes)this.addStyleToHost(be,Qe)}onStyleRemoved(Qe){const be=this.styleRef;be.get(Qe)?.elements?.forEach(Je=>Je.remove()),be.delete(Qe)}collectServerRenderedStyles(){const Qe=this.doc.head?.querySelectorAll(`style[${X}="${this.appId}"]`);if(Qe?.length){const be=new Map;return Qe.forEach(Je=>{null!=Je.textContent&&be.set(Je.textContent,Je)}),be}return null}changeUsageCount(Qe,be){const Je=this.styleRef;if(Je.has(Qe)){const re=Je.get(Qe);return re.usage+=be,re.usage}return Je.set(Qe,{usage:be,elements:[]}),be}getStyleElement(Qe,be){const Je=this.styleNodesInDOM,re=Je?.get(be);if(re?.parentNode===Qe)return Je.delete(be),re.removeAttribute(X),re;{const ze=this.doc.createElement("style");return this.nonce&&ze.setAttribute("nonce",this.nonce),ze.textContent=be,this.platformIsServer&&ze.setAttribute(X,this.appId),Qe.appendChild(ze),ze}}addStyleToHost(Qe,be){const Je=this.getStyleElement(Qe,be),re=this.styleRef,ze=re.get(be)?.elements;ze?ze.push(Je):re.set(be,{elements:[Je],usage:1})}resetHostNodes(){const Qe=this.hostNodes;Qe.clear(),Qe.add(this.doc.head)}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(t.qQ),s.KVO(s.sZ2),s.KVO(s.BIS,8),s.KVO(s.Agw))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac})}return at})();const x={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/Math/MathML"},oe=/%COMP%/g,J="%COMP%",Ee=`_nghost-${J}`,Oe=`_ngcontent-${J}`,Ie=new s.nKC("",{providedIn:"root",factory:()=>!0});function Y(at,Ot){return Ot.map(Qe=>Qe.replace(oe,at))}let z=(()=>{class at{constructor(Qe,be,Je,re,ze,mt,Ke,xe=null){this.eventManager=Qe,this.sharedStylesHost=be,this.appId=Je,this.removeStylesOnCompDestroy=re,this.doc=ze,this.platformId=mt,this.ngZone=Ke,this.nonce=xe,this.rendererByCompId=new Map,this.platformIsServer=(0,t.Vy)(mt),this.defaultRenderer=new Z(Qe,ze,Ke,this.platformIsServer)}createRenderer(Qe,be){if(!Qe||!be)return this.defaultRenderer;this.platformIsServer&&be.encapsulation===s.gXe.ShadowDom&&(be={...be,encapsulation:s.gXe.Emulated});const Je=this.getOrCreateRenderer(Qe,be);return Je instanceof se?Je.applyToHost(Qe):Je instanceof U&&Je.applyStyles(),Je}getOrCreateRenderer(Qe,be){const Je=this.rendererByCompId;let re=Je.get(be.id);if(!re){const ze=this.doc,mt=this.ngZone,Ke=this.eventManager,xe=this.sharedStylesHost,Re=this.removeStylesOnCompDestroy,B=this.platformIsServer;switch(be.encapsulation){case s.gXe.Emulated:re=new se(Ke,xe,be,this.appId,Re,ze,mt,B);break;case s.gXe.ShadowDom:return new R(Ke,xe,Qe,be,ze,mt,this.nonce,B);default:re=new U(Ke,xe,be,Re,ze,mt,B)}Je.set(be.id,re)}return re}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(w),s.KVO(V),s.KVO(s.sZ2),s.KVO(Ie),s.KVO(t.qQ),s.KVO(s.Agw),s.KVO(s.SKi),s.KVO(s.BIS))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac})}return at})();class Z{constructor(Ot,Qe,be,Je){this.eventManager=Ot,this.doc=Qe,this.ngZone=be,this.platformIsServer=Je,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Ot,Qe){return Qe?this.doc.createElementNS(x[Qe]||Qe,Ot):this.doc.createElement(Ot)}createComment(Ot){return this.doc.createComment(Ot)}createText(Ot){return this.doc.createTextNode(Ot)}appendChild(Ot,Qe){(S(Ot)?Ot.content:Ot).appendChild(Qe)}insertBefore(Ot,Qe,be){Ot&&(S(Ot)?Ot.content:Ot).insertBefore(Qe,be)}removeChild(Ot,Qe){Ot&&Ot.removeChild(Qe)}selectRootElement(Ot,Qe){let be="string"==typeof Ot?this.doc.querySelector(Ot):Ot;if(!be)throw new s.wOt(-5104,!1);return Qe||(be.textContent=""),be}parentNode(Ot){return Ot.parentNode}nextSibling(Ot){return Ot.nextSibling}setAttribute(Ot,Qe,be,Je){if(Je){Qe=Je+":"+Qe;const re=x[Je];re?Ot.setAttributeNS(re,Qe,be):Ot.setAttribute(Qe,be)}else Ot.setAttribute(Qe,be)}removeAttribute(Ot,Qe,be){if(be){const Je=x[be];Je?Ot.removeAttributeNS(Je,Qe):Ot.removeAttribute(`${be}:${Qe}`)}else Ot.removeAttribute(Qe)}addClass(Ot,Qe){Ot.classList.add(Qe)}removeClass(Ot,Qe){Ot.classList.remove(Qe)}setStyle(Ot,Qe,be,Je){Je&(s.czy.DashCase|s.czy.Important)?Ot.style.setProperty(Qe,be,Je&s.czy.Important?"important":""):Ot.style[Qe]=be}removeStyle(Ot,Qe,be){be&s.czy.DashCase?Ot.style.removeProperty(Qe):Ot.style[Qe]=""}setProperty(Ot,Qe,be){null!=Ot&&(Ot[Qe]=be)}setValue(Ot,Qe){Ot.nodeValue=Qe}listen(Ot,Qe,be){if("string"==typeof Ot&&!(Ot=(0,t.QT)().getGlobalEventTarget(this.doc,Ot)))throw new Error(`Unsupported event target ${Ot} for event ${Qe}`);return this.eventManager.addEventListener(Ot,Qe,this.decoratePreventDefault(be))}decoratePreventDefault(Ot){return Qe=>{if("__ngUnwrap__"===Qe)return Ot;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ot(Qe)):Ot(Qe))&&Qe.preventDefault()}}}function S(at){return"TEMPLATE"===at.tagName&&void 0!==at.content}class R extends Z{constructor(Ot,Qe,be,Je,re,ze,mt,Ke){super(Ot,re,ze,Ke),this.sharedStylesHost=Qe,this.hostEl=be,this.shadowRoot=be.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const xe=Y(Je.id,Je.styles);for(const Re of xe){const B=document.createElement("style");mt&&B.setAttribute("nonce",mt),B.textContent=Re,this.shadowRoot.appendChild(B)}}nodeOrShadowRoot(Ot){return Ot===this.hostEl?this.shadowRoot:Ot}appendChild(Ot,Qe){return super.appendChild(this.nodeOrShadowRoot(Ot),Qe)}insertBefore(Ot,Qe,be){return super.insertBefore(this.nodeOrShadowRoot(Ot),Qe,be)}removeChild(Ot,Qe){return super.removeChild(this.nodeOrShadowRoot(Ot),Qe)}parentNode(Ot){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ot)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class U extends Z{constructor(Ot,Qe,be,Je,re,ze,mt,Ke){super(Ot,re,ze,mt),this.sharedStylesHost=Qe,this.removeStylesOnCompDestroy=Je,this.styles=Ke?Y(Ke,be.styles):be.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class se extends U{constructor(Ot,Qe,be,Je,re,ze,mt,Ke){const xe=Je+"-"+be.id;super(Ot,Qe,be,re,ze,mt,Ke,xe),this.contentAttr=function ve(at){return Oe.replace(oe,at)}(xe),this.hostAttr=function fe(at){return Ee.replace(oe,at)}(xe)}applyToHost(Ot){this.applyStyles(),this.setAttribute(Ot,this.hostAttr,"")}createElement(Ot,Qe){const be=super.createElement(Ot,Qe);return super.setAttribute(be,this.contentAttr,""),be}}let Be=(()=>{class at extends F{constructor(Qe){super(Qe)}supports(Qe){return!0}addEventListener(Qe,be,Je){return Qe.addEventListener(be,Je,!1),()=>this.removeEventListener(Qe,be,Je)}removeEventListener(Qe,be,Je){return Qe.removeEventListener(be,Je)}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac})}return at})(),Pt=(()=>{class at extends F{constructor(Qe){super(Qe),this.delegate=(0,s.WQX)(s.zAP,{optional:!0})}supports(Qe){return!!this.delegate&&this.delegate.supports(Qe)}addEventListener(Qe,be,Je){return this.delegate.addEventListener(Qe,be,Je)}removeEventListener(Qe,be,Je){return this.delegate.removeEventListener(Qe,be,Je)}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac})}return at})();const gt=["alt","control","meta","shift"],wt={"\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"},Le={alt:at=>at.altKey,control:at=>at.ctrlKey,meta:at=>at.metaKey,shift:at=>at.shiftKey};let zt=(()=>{class at extends F{constructor(Qe){super(Qe)}supports(Qe){return null!=at.parseEventName(Qe)}addEventListener(Qe,be,Je){const re=at.parseEventName(be),ze=at.eventCallback(re.fullKey,Je,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.QT)().onAndCancel(Qe,re.domEventName,ze))}static parseEventName(Qe){const be=Qe.toLowerCase().split("."),Je=be.shift();if(0===be.length||"keydown"!==Je&&"keyup"!==Je)return null;const re=at._normalizeKey(be.pop());let ze="",mt=be.indexOf("code");if(mt>-1&&(be.splice(mt,1),ze="code."),gt.forEach(xe=>{const Re=be.indexOf(xe);Re>-1&&(be.splice(Re,1),ze+=xe+".")}),ze+=re,0!=be.length||0===re.length)return null;const Ke={};return Ke.domEventName=Je,Ke.fullKey=ze,Ke}static matchEventFullKeyCode(Qe,be){let Je=wt[Qe.key]||Qe.key,re="";return be.indexOf("code.")>-1&&(Je=Qe.code,re="code."),!(null==Je||!Je)&&(Je=Je.toLowerCase()," "===Je?Je="space":"."===Je&&(Je="dot"),gt.forEach(ze=>{ze!==Je&&(0,Le[ze])(Qe)&&(re+=ze+".")}),re+=Je,re===be)}static eventCallback(Qe,be,Je){return re=>{at.matchEventFullKeyCode(re,Qe)&&Je.runGuarded(()=>be(re))}}static _normalizeKey(Qe){return"esc"===Qe?"escape":Qe}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac})}return at})();const fn=(0,s.oH4)(s.fpN,"browser",[{provide:s.Agw,useValue:t.AJ},{provide:s.PLl,useValue:function Tt(){e.makeCurrent()},multi:!0},{provide:t.qQ,useFactory:function Ut(){return(0,s.TL$)(document),document},deps:[]}]),$n=new s.nKC(""),zn=[{provide:s.e01,useClass:class j{addToWindow(Ot){s.JZv.getAngularTestability=(be,Je=!0)=>{const re=Ot.findTestabilityInTree(be,Je);if(null==re)throw new s.wOt(5103,!1);return re},s.JZv.getAllAngularTestabilities=()=>Ot.getAllTestabilities(),s.JZv.getAllAngularRootElements=()=>Ot.getAllRootElements(),s.JZv.frameworkStabilizers||(s.JZv.frameworkStabilizers=[]),s.JZv.frameworkStabilizers.push(be=>{const Je=s.JZv.getAllAngularTestabilities();let re=Je.length;const ze=function(){re--,0==re&&be()};Je.forEach(mt=>{mt.whenStable(ze)})})}findTestabilityInTree(Ot,Qe,be){return null==Qe?null:Ot.getTestability(Qe)??(be?(0,t.QT)().isShadowRoot(Qe)?this.findTestabilityInTree(Ot,Qe.host,!0):this.findTestabilityInTree(Ot,Qe.parentElement,!0):null)}},deps:[]},{provide:s.WHO,useClass:s.NYb,deps:[s.SKi,s.giA,s.e01]},{provide:s.NYb,useClass:s.NYb,deps:[s.SKi,s.giA,s.e01]}],bt=[{provide:s.H8p,useValue:"root"},{provide:s.zcH,useFactory:function en(){return new s.zcH},deps:[]},{provide:I,useClass:Be,multi:!0,deps:[t.qQ,s.SKi,s.Agw]},{provide:I,useClass:zt,multi:!0,deps:[t.qQ]},{provide:I,useClass:Pt,multi:!0},z,V,w,{provide:s._9s,useExisting:z},{provide:t.N0,useClass:A,deps:[]},[]];let At=(()=>{class at{constructor(Qe){}static withServerTransition(Qe){return{ngModule:at,providers:[{provide:s.sZ2,useValue:Qe.appId}]}}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO($n,12))};static#t=this.\u0275mod=s.$C({type:at});static#n=this.\u0275inj=s.G2t({providers:[...bt,...zn],imports:[t.MD,s.Hbi]})}return at})(),Et=(()=>{class at{constructor(Qe){this._doc=Qe,this._dom=(0,t.QT)()}addTag(Qe,be=!1){return Qe?this._getOrCreateElement(Qe,be):null}addTags(Qe,be=!1){return Qe?Qe.reduce((Je,re)=>(re&&Je.push(this._getOrCreateElement(re,be)),Je),[]):[]}getTag(Qe){return Qe&&this._doc.querySelector(`meta[${Qe}]`)||null}getTags(Qe){if(!Qe)return[];const be=this._doc.querySelectorAll(`meta[${Qe}]`);return be?[].slice.call(be):[]}updateTag(Qe,be){if(!Qe)return null;be=be||this._parseSelector(Qe);const Je=this.getTag(be);return Je?this._setMetaElementAttributes(Qe,Je):this._getOrCreateElement(Qe,!0)}removeTag(Qe){this.removeTagElement(this.getTag(Qe))}removeTagElement(Qe){Qe&&this._dom.remove(Qe)}_getOrCreateElement(Qe,be=!1){if(!be){const ze=this._parseSelector(Qe),mt=this.getTags(ze).filter(Ke=>this._containsAttributes(Qe,Ke))[0];if(void 0!==mt)return mt}const Je=this._dom.createElement("meta");return this._setMetaElementAttributes(Qe,Je),this._doc.getElementsByTagName("head")[0].appendChild(Je),Je}_setMetaElementAttributes(Qe,be){return Object.keys(Qe).forEach(Je=>be.setAttribute(this._getMetaKeyMap(Je),Qe[Je])),be}_parseSelector(Qe){const be=Qe.name?"name":"property";return`${be}="${Qe[be]}"`}_containsAttributes(Qe,be){return Object.keys(Qe).every(Je=>be.getAttribute(this._getMetaKeyMap(Je))===Qe[Je])}_getMetaKeyMap(Qe){return St[Qe]||Qe}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})();const St={httpEquiv:"http-equiv"};let Wt=(()=>{class at{constructor(Qe){this._doc=Qe}getTitle(){return this._doc.title}setTitle(Qe){this._doc.title=Qe||""}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})(),Un=(()=>{class at{static#e=this.\u0275fac=function(be){return new(be||at)};static#t=this.\u0275prov=s.jDH({token:at,factory:function(be){let Je=null;return Je=be?new(be||at):s.KVO(dn),Je},providedIn:"root"})}return at})(),dn=(()=>{class at extends Un{constructor(Qe){super(),this._doc=Qe}sanitize(Qe,be){if(null==be)return null;switch(Qe){case s.WPN.NONE:return be;case s.WPN.HTML:return(0,s.ZF7)(be,"HTML")?(0,s.rcV)(be):(0,s.h9k)(this._doc,String(be)).toString();case s.WPN.STYLE:return(0,s.ZF7)(be,"Style")?(0,s.rcV)(be):be;case s.WPN.SCRIPT:if((0,s.ZF7)(be,"Script"))return(0,s.rcV)(be);throw new s.wOt(5200,!1);case s.WPN.URL:return(0,s.ZF7)(be,"URL")?(0,s.rcV)(be):(0,s.$MX)(String(be));case s.WPN.RESOURCE_URL:if((0,s.ZF7)(be,"ResourceURL"))return(0,s.rcV)(be);throw new s.wOt(5201,!1);default:throw new s.wOt(5202,!1)}}bypassSecurityTrustHtml(Qe){return(0,s.Kcf)(Qe)}bypassSecurityTrustStyle(Qe){return(0,s.cWb)(Qe)}bypassSecurityTrustScript(Qe){return(0,s.UyX)(Qe)}bypassSecurityTrustUrl(Qe){return(0,s.osQ)(Qe)}bypassSecurityTrustResourceUrl(Qe){return(0,s.e5t)(Qe)}static#e=this.\u0275fac=function(be){return new(be||at)(s.KVO(t.qQ))};static#t=this.\u0275prov=s.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})()},1188:(Rt,De,a)=>{a.d(De,{nX:()=>xn,wF:()=>pn,Xk:()=>Ct,Ix:()=>Wi,Wk:()=>Pr,wQ:()=>Ds,iI:()=>Zl,n3:()=>Xi});var t=a(3953),s=a(4402),m=a(2806),e=a(7673),M=a(4412),K=a(4572),L=a(9350),j=a(8793),A=a(9030),I=a(1203),w=a(8810),F=a(983),X=a(17),V=a(1413),x=a(8359),oe=a(177),J=a(6354),Ee=a(5558),Oe=a(6697),pe=a(9172),Ie=a(5964),ve=a(1397),fe=a(1594),Y=a(274),z=a(8141),Z=a(9437),he=a(2816),E=a(9901),S=a(9974),R=a(4360);function U(P){return P<=0?()=>F.w:(0,S.N)((ae,k)=>{let le=[];ae.subscribe((0,R._)(k,$e=>{le.push($e),P{for(const $e of le)k.next($e);k.complete()},void 0,()=>{le=null}))})}var se=a(3774),Be=a(3669),gt=a(3703),wt=a(980),Le=a(9898),zt=a(6977),xt=a(6365),st=a(345);const Ct="primary",It=Symbol("RouteTitle");class Tt{constructor(ae){this.params=ae||{}}has(ae){return Object.prototype.hasOwnProperty.call(this.params,ae)}get(ae){if(this.has(ae)){const k=this.params[ae];return Array.isArray(k)?k[0]:k}return null}getAll(ae){if(this.has(ae)){const k=this.params[ae];return Array.isArray(k)?k:[k]}return[]}get keys(){return Object.keys(this.params)}}function en(P){return new Tt(P)}function Ut(P,ae,k){const le=k.path.split("/");if(le.length>P.length||"full"===k.pathMatch&&(ae.hasChildren()||le.lengthle[ft]===$e)}return P===ae}function bt(P){return P.length>0?P[P.length-1]:null}function At(P){return(0,s.A)(P)?P:(0,t.jNT)(P)?(0,m.H)(Promise.resolve(P)):(0,e.of)(P)}const Et={exact:function Fe(P,ae,k){if(!Tn(P.segments,ae.segments)||!Pe(P.segments,ae.segments,k)||P.numberOfChildren!==ae.numberOfChildren)return!1;for(const le in ae.children)if(!P.children[le]||!Fe(P.children[le],ae.children[le],k))return!1;return!0},subset:_e},St={exact:function Ue(P,ae){return fn(P,ae)},subset:function te(P,ae){return Object.keys(ae).length<=Object.keys(P).length&&Object.keys(ae).every(k=>zn(P[k],ae[k]))},ignored:()=>!0};function Wt(P,ae,k){return Et[k.paths](P.root,ae.root,k.matrixParams)&&St[k.queryParams](P.queryParams,ae.queryParams)&&!("exact"===k.fragment&&P.fragment!==ae.fragment)}function _e(P,ae,k){return ie(P,ae,ae.segments,k)}function ie(P,ae,k,le){if(P.segments.length>k.length){const $e=P.segments.slice(0,k.length);return!(!Tn($e,k)||ae.hasChildren()||!Pe($e,k,le))}if(P.segments.length===k.length){if(!Tn(P.segments,k)||!Pe(P.segments,k,le))return!1;for(const $e in ae.children)if(!P.children[$e]||!_e(P.children[$e],ae.children[$e],le))return!1;return!0}{const $e=k.slice(0,P.segments.length),ft=k.slice(P.segments.length);return!!(Tn(P.segments,$e)&&Pe(P.segments,$e,le)&&P.children[Ct])&&ie(P.children[Ct],ae,ft,le)}}function Pe(P,ae,k){return ae.every((le,$e)=>St[k](P[$e].parameters,le.parameters))}class et{constructor(ae=new ht([],{}),k={},le=null){this.root=ae,this.queryParams=k,this.fragment=le}get queryParamMap(){return this._queryParamMap??=en(this.queryParams),this._queryParamMap}toString(){return Un.serialize(this)}}class ht{constructor(ae,k){this.segments=ae,this.children=k,this.parent=null,Object.values(k).forEach(le=>le.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dn(this)}}class Kt{constructor(ae,k){this.path=ae,this.parameters=k}get parameterMap(){return this._parameterMap??=en(this.parameters),this._parameterMap}toString(){return Xe(this)}}function Tn(P,ae){return P.length===ae.length&&P.every((k,le)=>k.path===ae[le].path)}let kn=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>new In,providedIn:"root"})}return P})();class In{parse(ae){const k=new xe(ae);return new et(k.parseRootSegment(),k.parseQueryParams(),k.parseFragment())}serialize(ae){const k=`/${qt(ae.root,!0)}`,le=function at(P){const ae=Object.entries(P).map(([k,le])=>Array.isArray(le)?le.map($e=>`${Vt(k)}=${Vt($e)}`).join("&"):`${Vt(k)}=${Vt(le)}`).filter(k=>k);return ae.length?`?${ae.join("&")}`:""}(ae.queryParams);return`${k}${le}${"string"==typeof ae.fragment?`#${function Ge(P){return encodeURI(P)}(ae.fragment)}`:""}`}}const Un=new In;function dn(P){return P.segments.map(ae=>Xe(ae)).join("/")}function qt(P,ae){if(!P.hasChildren())return dn(P);if(ae){const k=P.children[Ct]?qt(P.children[Ct],!1):"",le=[];return Object.entries(P.children).forEach(([$e,ft])=>{$e!==Ct&&le.push(`${$e}:${qt(ft,!1)}`)}),le.length>0?`${k}(${le.join("//")})`:k}{const k=function Wn(P,ae){let k=[];return Object.entries(P.children).forEach(([le,$e])=>{le===Ct&&(k=k.concat(ae($e,le)))}),Object.entries(P.children).forEach(([le,$e])=>{le!==Ct&&(k=k.concat(ae($e,le)))}),k}(P,(le,$e)=>$e===Ct?[qt(P.children[Ct],!1)]:[`${$e}:${qt(le,!1)}`]);return 1===Object.keys(P.children).length&&null!=P.children[Ct]?`${dn(P)}/${k[0]}`:`${dn(P)}/(${k.join("//")})`}}function wn(P){return encodeURIComponent(P).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vt(P){return wn(P).replace(/%3B/gi,";")}function ue(P){return wn(P).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function q(P){return decodeURIComponent(P)}function ee(P){return q(P.replace(/\+/g,"%20"))}function Xe(P){return`${ue(P.path)}${function dt(P){return Object.entries(P).map(([ae,k])=>`;${ue(ae)}=${ue(k)}`).join("")}(P.parameters)}`}const Ot=/^[^\/()?;#]+/;function Qe(P){const ae=P.match(Ot);return ae?ae[0]:""}const be=/^[^\/()?;=#]+/,re=/^[^=?&#]+/,mt=/^[^&#]+/;class xe{constructor(ae){this.url=ae,this.remaining=ae}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const ae={};if(this.consumeOptional("?"))do{this.parseQueryParam(ae)}while(this.consumeOptional("&"));return ae}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ae=[];for(this.peekStartsWith("(")||ae.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ae.push(this.parseSegment());let k={};this.peekStartsWith("/(")&&(this.capture("/"),k=this.parseParens(!0));let le={};return this.peekStartsWith("(")&&(le=this.parseParens(!1)),(ae.length>0||Object.keys(k).length>0)&&(le[Ct]=new ht(ae,k)),le}parseSegment(){const ae=Qe(this.remaining);if(""===ae&&this.peekStartsWith(";"))throw new t.wOt(4009,!1);return this.capture(ae),new Kt(q(ae),this.parseMatrixParams())}parseMatrixParams(){const ae={};for(;this.consumeOptional(";");)this.parseParam(ae);return ae}parseParam(ae){const k=function Je(P){const ae=P.match(be);return ae?ae[0]:""}(this.remaining);if(!k)return;this.capture(k);let le="";if(this.consumeOptional("=")){const $e=Qe(this.remaining);$e&&(le=$e,this.capture(le))}ae[q(k)]=q(le)}parseQueryParam(ae){const k=function ze(P){const ae=P.match(re);return ae?ae[0]:""}(this.remaining);if(!k)return;this.capture(k);let le="";if(this.consumeOptional("=")){const kt=function Ke(P){const ae=P.match(mt);return ae?ae[0]:""}(this.remaining);kt&&(le=kt,this.capture(le))}const $e=ee(k),ft=ee(le);if(ae.hasOwnProperty($e)){let kt=ae[$e];Array.isArray(kt)||(kt=[kt],ae[$e]=kt),kt.push(ft)}else ae[$e]=ft}parseParens(ae){const k={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const le=Qe(this.remaining),$e=this.remaining[le.length];if("/"!==$e&&")"!==$e&&";"!==$e)throw new t.wOt(4010,!1);let ft;le.indexOf(":")>-1?(ft=le.slice(0,le.indexOf(":")),this.capture(ft),this.capture(":")):ae&&(ft=Ct);const kt=this.parseChildren();k[ft]=1===Object.keys(kt).length?kt[Ct]:new ht([],kt),this.consumeOptional("//")}return k}peekStartsWith(ae){return this.remaining.startsWith(ae)}consumeOptional(ae){return!!this.peekStartsWith(ae)&&(this.remaining=this.remaining.substring(ae.length),!0)}capture(ae){if(!this.consumeOptional(ae))throw new t.wOt(4011,!1)}}function Re(P){return P.segments.length>0?new ht([],{[Ct]:P}):P}function B(P){const ae={};for(const[le,$e]of Object.entries(P.children)){const ft=B($e);if(le===Ct&&0===ft.segments.length&&ft.hasChildren())for(const[kt,yn]of Object.entries(ft.children))ae[kt]=yn;else(ft.segments.length>0||ft.hasChildren())&&(ae[le]=ft)}return function ce(P){if(1===P.numberOfChildren&&P.children[Ct]){const ae=P.children[Ct];return new ht(P.segments.concat(ae.segments),ae.children)}return P}(new ht(P.segments,ae))}function N(P){return P instanceof et}function ge(P){let ae;const $e=Re(function k(ft){const kt={};for(const ln of ft.children){const ri=k(ln);kt[ln.outlet]=ri}const yn=new ht(ft.url,kt);return ft===P&&(ae=yn),yn}(P.root));return ae??$e}function W(P,ae,k,le){let $e=P;for(;$e.parent;)$e=$e.parent;if(0===ae.length)return qe($e,$e,$e,k,le);const ft=function rn(P){if("string"==typeof P[0]&&1===P.length&&"/"===P[0])return new Ft(!0,0,P);let ae=0,k=!1;const le=P.reduce(($e,ft,kt)=>{if("object"==typeof ft&&null!=ft){if(ft.outlets){const yn={};return Object.entries(ft.outlets).forEach(([ln,ri])=>{yn[ln]="string"==typeof ri?ri.split("/"):ri}),[...$e,{outlets:yn}]}if(ft.segmentPath)return[...$e,ft.segmentPath]}return"string"!=typeof ft?[...$e,ft]:0===kt?(ft.split("/").forEach((yn,ln)=>{0==ln&&"."===yn||(0==ln&&""===yn?k=!0:".."===yn?ae++:""!=yn&&$e.push(yn))}),$e):[...$e,ft]},[]);return new Ft(k,ae,le)}(ae);if(ft.toRoot())return qe($e,$e,new ht([],{}),k,le);const kt=function Jn(P,ae,k){if(P.isAbsolute)return new Cn(ae,!0,0);if(!k)return new Cn(ae,!1,NaN);if(null===k.parent)return new Cn(k,!0,0);const le=H(P.commands[0])?0:1;return function jn(P,ae,k){let le=P,$e=ae,ft=k;for(;ft>$e;){if(ft-=$e,le=le.parent,!le)throw new t.wOt(4005,!1);$e=le.segments.length}return new Cn(le,!1,$e-ft)}(k,k.segments.length-1+le,P.numberOfDoubleDots)}(ft,$e,P),yn=kt.processChildren?Oi(kt.segmentGroup,kt.index,ft.commands):zi(kt.segmentGroup,kt.index,ft.commands);return qe($e,kt.segmentGroup,yn,k,le)}function H(P){return"object"==typeof P&&null!=P&&!P.outlets&&!P.segmentPath}function me(P){return"object"==typeof P&&null!=P&&P.outlets}function qe(P,ae,k,le,$e){let kt,ft={};le&&Object.entries(le).forEach(([ln,ri])=>{ft[ln]=Array.isArray(ri)?ri.map(Fi=>`${Fi}`):`${ri}`}),kt=P===ae?k:rt(P,ae,k);const yn=Re(B(kt));return new et(yn,ft,$e)}function rt(P,ae,k){const le={};return Object.entries(P.children).forEach(([$e,ft])=>{le[$e]=ft===ae?k:rt(ft,ae,k)}),new ht(P.segments,le)}class Ft{constructor(ae,k,le){if(this.isAbsolute=ae,this.numberOfDoubleDots=k,this.commands=le,ae&&le.length>0&&H(le[0]))throw new t.wOt(4003,!1);const $e=le.find(me);if($e&&$e!==bt(le))throw new t.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cn{constructor(ae,k,le){this.segmentGroup=ae,this.processChildren=k,this.index=le}}function zi(P,ae,k){if(P??=new ht([],{}),0===P.segments.length&&P.hasChildren())return Oi(P,ae,k);const le=function po(P,ae,k){let le=0,$e=ae;const ft={match:!1,pathIndex:0,commandIndex:0};for(;$e=k.length)return ft;const kt=P.segments[$e],yn=k[le];if(me(yn))break;const ln=`${yn}`,ri=le0&&void 0===ln)break;if(ln&&ri&&"object"==typeof ri&&void 0===ri.outlets){if(!zr(ln,ri,kt))return ft;le+=2}else{if(!zr(ln,{},kt))return ft;le++}$e++}return{match:!0,pathIndex:$e,commandIndex:le}}(P,ae,k),$e=k.slice(le.commandIndex);if(le.match&&le.pathIndexft!==Ct)&&P.children[Ct]&&1===P.numberOfChildren&&0===P.children[Ct].segments.length){const ft=Oi(P.children[Ct],ae,k);return new ht(P.segments,ft.children)}return Object.entries(le).forEach(([ft,kt])=>{"string"==typeof kt&&(kt=[kt]),null!==kt&&($e[ft]=zi(P.children[ft],ae,kt))}),Object.entries(P.children).forEach(([ft,kt])=>{void 0===le[ft]&&($e[ft]=kt)}),new ht(P.segments,$e)}}function Zi(P,ae,k){const le=P.segments.slice(0,ae);let $e=0;for(;$e{"string"==typeof le&&(le=[le]),null!==le&&(ae[k]=Zi(new ht([],{}),0,le))}),ae}function Co(P){const ae={};return Object.entries(P).forEach(([k,le])=>ae[k]=`${le}`),ae}function zr(P,ae,k){return P==k.path&&fn(ae,k.parameters)}const rr="imperative";var lt=function(P){return P[P.NavigationStart=0]="NavigationStart",P[P.NavigationEnd=1]="NavigationEnd",P[P.NavigationCancel=2]="NavigationCancel",P[P.NavigationError=3]="NavigationError",P[P.RoutesRecognized=4]="RoutesRecognized",P[P.ResolveStart=5]="ResolveStart",P[P.ResolveEnd=6]="ResolveEnd",P[P.GuardsCheckStart=7]="GuardsCheckStart",P[P.GuardsCheckEnd=8]="GuardsCheckEnd",P[P.RouteConfigLoadStart=9]="RouteConfigLoadStart",P[P.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",P[P.ChildActivationStart=11]="ChildActivationStart",P[P.ChildActivationEnd=12]="ChildActivationEnd",P[P.ActivationStart=13]="ActivationStart",P[P.ActivationEnd=14]="ActivationEnd",P[P.Scroll=15]="Scroll",P[P.NavigationSkipped=16]="NavigationSkipped",P}(lt||{});class Ht{constructor(ae,k){this.id=ae,this.url=k}}class $t extends Ht{constructor(ae,k,le="imperative",$e=null){super(ae,k),this.type=lt.NavigationStart,this.navigationTrigger=le,this.restoredState=$e}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class pn extends Ht{constructor(ae,k,le){super(ae,k),this.urlAfterRedirects=le,this.type=lt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var hn=function(P){return P[P.Redirect=0]="Redirect",P[P.SupersededByNewNavigation=1]="SupersededByNewNavigation",P[P.NoDataFromResolver=2]="NoDataFromResolver",P[P.GuardRejected=3]="GuardRejected",P}(hn||{}),Hn=function(P){return P[P.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",P[P.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",P}(Hn||{});class En extends Ht{constructor(ae,k,le,$e){super(ae,k),this.reason=le,this.code=$e,this.type=lt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xn extends Ht{constructor(ae,k,le,$e){super(ae,k),this.reason=le,this.code=$e,this.type=lt.NavigationSkipped}}class ci extends Ht{constructor(ae,k,le,$e){super(ae,k),this.error=le,this.target=$e,this.type=lt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _i extends Ht{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lo extends Ht{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bi extends Ht{constructor(ae,k,le,$e,ft){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.shouldActivate=ft,this.type=lt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class mn extends Ht{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ui extends Ht{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mi{constructor(ae){this.route=ae,this.type=lt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ni{constructor(ae){this.route=ae,this.type=lt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oo{constructor(ae){this.snapshot=ae,this.type=lt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gi{constructor(ae){this.snapshot=ae,this.type=lt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jo{constructor(ae){this.snapshot=ae,this.type=lt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ki{constructor(ae){this.snapshot=ae,this.type=lt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jo{constructor(ae,k,le){this.routerEvent=ae,this.position=k,this.anchor=le,this.type=lt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class sr{}class fo{constructor(ae,k){this.url=ae,this.navigationBehaviorOptions=k}}function Zo(P){return P.outlet||Ct}function tt(P){if(!P)return null;if(P.routeConfig?._injector)return P.routeConfig._injector;for(let ae=P.parent;ae;ae=ae.parent){const k=ae.routeConfig;if(k?._loadedInjector)return k._loadedInjector;if(k?._injector)return k._injector}return null}class Ce{get injector(){return tt(this.route?.snapshot)??this.rootInjector}set injector(ae){}constructor(ae){this.rootInjector=ae,this.outlet=null,this.route=null,this.children=new Ve(this.rootInjector),this.attachRef=null}}let Ve=(()=>{class P{constructor(k){this.rootInjector=k,this.contexts=new Map}onChildOutletCreated(k,le){const $e=this.getOrCreateContext(k);$e.outlet=le,this.contexts.set(k,$e)}onChildOutletDestroyed(k){const le=this.getContext(k);le&&(le.outlet=null,le.attachRef=null)}onOutletDeactivated(){const k=this.contexts;return this.contexts=new Map,k}onOutletReAttached(k){this.contexts=k}getOrCreateContext(k){let le=this.getContext(k);return le||(le=new Ce(this.rootInjector),this.contexts.set(k,le)),le}getContext(k){return this.contexts.get(k)||null}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(t.uvJ))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();class nt{constructor(ae){this._root=ae}get root(){return this._root.value}parent(ae){const k=this.pathFromRoot(ae);return k.length>1?k[k.length-2]:null}children(ae){const k=Mt(ae,this._root);return k?k.children.map(le=>le.value):[]}firstChild(ae){const k=Mt(ae,this._root);return k&&k.children.length>0?k.children[0].value:null}siblings(ae){const k=Yt(ae,this._root);return k.length<2?[]:k[k.length-2].children.map($e=>$e.value).filter($e=>$e!==ae)}pathFromRoot(ae){return Yt(ae,this._root).map(k=>k.value)}}function Mt(P,ae){if(P===ae.value)return ae;for(const k of ae.children){const le=Mt(P,k);if(le)return le}return null}function Yt(P,ae){if(P===ae.value)return[ae];for(const k of ae.children){const le=Yt(P,k);if(le.length)return le.unshift(ae),le}return[]}class tn{constructor(ae,k){this.value=ae,this.children=k}toString(){return`TreeNode(${this.value})`}}function on(P){const ae={};return P&&P.children.forEach(k=>ae[k.value.outlet]=k),ae}class bn extends nt{constructor(ae,k){super(ae),this.snapshot=k,ei(this,ae)}toString(){return this.snapshot.toString()}}function Mn(P){const ae=function Bn(P){const ft=new qn([],{},{},"",{},Ct,P,null,{});return new pi("",new tn(ft,[]))}(P),k=new M.t([new Kt("",{})]),le=new M.t({}),$e=new M.t({}),ft=new M.t({}),kt=new M.t(""),yn=new xn(k,le,ft,kt,$e,Ct,P,ae.root);return yn.snapshot=ae.root,new bn(new tn(yn,[]),ae)}class xn{constructor(ae,k,le,$e,ft,kt,yn,ln){this.urlSubject=ae,this.paramsSubject=k,this.queryParamsSubject=le,this.fragmentSubject=$e,this.dataSubject=ft,this.outlet=kt,this.component=yn,this._futureSnapshot=ln,this.title=this.dataSubject?.pipe((0,J.T)(ri=>ri[It]))??(0,e.of)(void 0),this.url=ae,this.params=k,this.queryParams=le,this.fragment=$e,this.data=ft}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,J.T)(ae=>en(ae))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,J.T)(ae=>en(ae))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Kn(P,ae,k="emptyOnly"){let le;const{routeConfig:$e}=P;return le=null===ae||"always"!==k&&""!==$e?.path&&(ae.component||ae.routeConfig?.loadComponent)?{params:{...P.params},data:{...P.data},resolve:{...P.data,...P._resolvedData??{}}}:{params:{...ae.params,...P.params},data:{...ae.data,...P.data},resolve:{...P.data,...ae.data,...$e?.data,...P._resolvedData}},$e&&Ei($e)&&(le.resolve[It]=$e.title),le}class qn{get title(){return this.data?.[It]}constructor(ae,k,le,$e,ft,kt,yn,ln,ri){this.url=ae,this.params=k,this.queryParams=le,this.fragment=$e,this.data=ft,this.outlet=kt,this.component=yn,this.routeConfig=ln,this._resolve=ri}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??=en(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=en(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(le=>le.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pi extends nt{constructor(ae,k){super(k),this.url=ae,ei(this,k)}toString(){return li(this._root)}}function ei(P,ae){ae.value._routerState=P,ae.children.forEach(k=>ei(P,k))}function li(P){const ae=P.children.length>0?` { ${P.children.map(li).join(", ")} } `:"";return`${P.value}${ae}`}function ai(P){if(P.snapshot){const ae=P.snapshot,k=P._futureSnapshot;P.snapshot=k,fn(ae.queryParams,k.queryParams)||P.queryParamsSubject.next(k.queryParams),ae.fragment!==k.fragment&&P.fragmentSubject.next(k.fragment),fn(ae.params,k.params)||P.paramsSubject.next(k.params),function Lt(P,ae){if(P.length!==ae.length)return!1;for(let k=0;kfn(k.parameters,ae[le].parameters))}(P.url,ae.url);return k&&!(!P.parent!=!ae.parent)&&(!P.parent||mi(P.parent,ae.parent))}function Ei(P){return"string"==typeof P.title||null===P.title}let Xi=(()=>{class P{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ct,this.activateEvents=new t.bkB,this.deactivateEvents=new t.bkB,this.attachEvents=new t.bkB,this.detachEvents=new t.bkB,this.parentContexts=(0,t.WQX)(Ve),this.location=(0,t.WQX)(t.c1b),this.changeDetector=(0,t.WQX)(t.gRc),this.inputBinder=(0,t.WQX)(no,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(k){if(k.name){const{firstChange:le,previousValue:$e}=k.name;if(le)return;this.isTrackedInParentContexts($e)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed($e)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(k){return this.parentContexts.getContext(k)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const k=this.parentContexts.getContext(this.name);k?.route&&(k.attachRef?this.attach(k.attachRef,k.route):this.activateWith(k.route,k.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.wOt(4012,!1);this.location.detach();const k=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(k.instance),k}attach(k,le){this.activated=k,this._activatedRoute=le,this.location.insert(k.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(k.instance)}deactivate(){if(this.activated){const k=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(k)}}activateWith(k,le){if(this.isActivated)throw new t.wOt(4013,!1);this._activatedRoute=k;const $e=this.location,kt=k.snapshot.component,yn=this.parentContexts.getOrCreateContext(this.name).children,ln=new Si(k,yn,$e.injector);this.activated=$e.createComponent(kt,{index:$e.length,injector:ln,environmentInjector:le}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.OA$]})}return P})();class Si{__ngOutletInjector(ae){return new Si(this.route,this.childContexts,ae)}constructor(ae,k,le){this.route=ae,this.childContexts=k,this.parent=le}get(ae,k){return ae===xn?this.route:ae===Ve?this.childContexts:this.parent.get(ae,k)}}const no=new t.nKC("");let ao=(()=>{class P{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(k){this.unsubscribeFromRouteData(k),this.subscribeToRouteData(k)}unsubscribeFromRouteData(k){this.outletDataSubscriptions.get(k)?.unsubscribe(),this.outletDataSubscriptions.delete(k)}subscribeToRouteData(k){const{activatedRoute:le}=k,$e=(0,K.z)([le.queryParams,le.params,le.data]).pipe((0,Ee.n)(([ft,kt,yn],ln)=>(yn={...ft,...kt,...yn},0===ln?(0,e.of)(yn):Promise.resolve(yn)))).subscribe(ft=>{if(!k.isActivated||!k.activatedComponentRef||k.activatedRoute!==le||null===le.component)return void this.unsubscribeFromRouteData(k);const kt=(0,t.HJs)(le.component);if(kt)for(const{templateName:yn}of kt.inputs)k.activatedComponentRef.setInput(yn,ft[yn]);else this.unsubscribeFromRouteData(k)});this.outletDataSubscriptions.set(k,$e)}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})();function An(P,ae,k){if(k&&P.shouldReuseRoute(ae.value,k.value.snapshot)){const le=k.value;le._futureSnapshot=ae.value;const $e=function _o(P,ae,k){return ae.children.map(le=>{for(const $e of k.children)if(P.shouldReuseRoute(le.value,$e.value.snapshot))return An(P,le,$e);return An(P,le)})}(P,ae,k);return new tn(le,$e)}{if(P.shouldAttach(ae.value)){const ft=P.retrieve(ae.value);if(null!==ft){const kt=ft.route;return kt.value._futureSnapshot=ae.value,kt.children=ae.children.map(yn=>An(P,yn)),kt}}const le=function qo(P){return new xn(new M.t(P.url),new M.t(P.params),new M.t(P.queryParams),new M.t(P.fragment),new M.t(P.data),P.outlet,P.component,P)}(ae.value),$e=ae.children.map(ft=>An(P,ft));return new tn(le,$e)}}class Gr{constructor(ae,k){this.redirectTo=ae,this.navigationBehaviorOptions=k}}const Do="ngNavigationCancelingError";function Qo(P,ae){const{redirectTo:k,navigationBehaviorOptions:le}=N(ae)?{redirectTo:ae,navigationBehaviorOptions:void 0}:ae,$e=Mr(!1,hn.Redirect);return $e.url=k,$e.navigationBehaviorOptions=le,$e}function Mr(P,ae){const k=new Error(`NavigationCancelingError: ${P||""}`);return k[Do]=!0,k.cancellationCode=ae,k}function Sr(P){return!!P&&P[Do]}class $s{constructor(ae,k,le,$e,ft){this.routeReuseStrategy=ae,this.futureState=k,this.currState=le,this.forwardEvent=$e,this.inputBindingEnabled=ft}activate(ae){const k=this.futureState._root,le=this.currState?this.currState._root:null;this.deactivateChildRoutes(k,le,ae),ai(this.futureState.root),this.activateChildRoutes(k,le,ae)}deactivateChildRoutes(ae,k,le){const $e=on(k);ae.children.forEach(ft=>{const kt=ft.value.outlet;this.deactivateRoutes(ft,$e[kt],le),delete $e[kt]}),Object.values($e).forEach(ft=>{this.deactivateRouteAndItsChildren(ft,le)})}deactivateRoutes(ae,k,le){const $e=ae.value,ft=k?k.value:null;if($e===ft)if($e.component){const kt=le.getContext($e.outlet);kt&&this.deactivateChildRoutes(ae,k,kt.children)}else this.deactivateChildRoutes(ae,k,le);else ft&&this.deactivateRouteAndItsChildren(k,le)}deactivateRouteAndItsChildren(ae,k){ae.value.component&&this.routeReuseStrategy.shouldDetach(ae.value.snapshot)?this.detachAndStoreRouteSubtree(ae,k):this.deactivateRouteAndOutlet(ae,k)}detachAndStoreRouteSubtree(ae,k){const le=k.getContext(ae.value.outlet),$e=le&&ae.value.component?le.children:k,ft=on(ae);for(const kt of Object.values(ft))this.deactivateRouteAndItsChildren(kt,$e);if(le&&le.outlet){const kt=le.outlet.detach(),yn=le.children.onOutletDeactivated();this.routeReuseStrategy.store(ae.value.snapshot,{componentRef:kt,route:ae,contexts:yn})}}deactivateRouteAndOutlet(ae,k){const le=k.getContext(ae.value.outlet),$e=le&&ae.value.component?le.children:k,ft=on(ae);for(const kt of Object.values(ft))this.deactivateRouteAndItsChildren(kt,$e);le&&(le.outlet&&(le.outlet.deactivate(),le.children.onOutletDeactivated()),le.attachRef=null,le.route=null)}activateChildRoutes(ae,k,le){const $e=on(k);ae.children.forEach(ft=>{this.activateRoutes(ft,$e[ft.value.outlet],le),this.forwardEvent(new Ki(ft.value.snapshot))}),ae.children.length&&this.forwardEvent(new Gi(ae.value.snapshot))}activateRoutes(ae,k,le){const $e=ae.value,ft=k?k.value:null;if(ai($e),$e===ft)if($e.component){const kt=le.getOrCreateContext($e.outlet);this.activateChildRoutes(ae,k,kt.children)}else this.activateChildRoutes(ae,k,le);else if($e.component){const kt=le.getOrCreateContext($e.outlet);if(this.routeReuseStrategy.shouldAttach($e.snapshot)){const yn=this.routeReuseStrategy.retrieve($e.snapshot);this.routeReuseStrategy.store($e.snapshot,null),kt.children.onOutletReAttached(yn.contexts),kt.attachRef=yn.componentRef,kt.route=yn.route.value,kt.outlet&&kt.outlet.attach(yn.componentRef,yn.route.value),ai(yn.route.value),this.activateChildRoutes(ae,null,kt.children)}else kt.attachRef=null,kt.route=$e,kt.outlet&&kt.outlet.activateWith($e,kt.injector),this.activateChildRoutes(ae,null,kt.children)}else this.activateChildRoutes(ae,null,le)}}class xr{constructor(ae){this.path=ae,this.route=this.path[this.path.length-1]}}class Uo{constructor(ae,k){this.component=ae,this.route=k}}function es(P,ae,k){const le=P._root;return us(le,ae?ae._root:null,k,[le.value])}function Es(P,ae){const k=Symbol(),le=ae.get(P,k);return le===k?"function"!=typeof P||(0,t.LfX)(P)?ae.get(P):P:le}function us(P,ae,k,le,$e={canDeactivateChecks:[],canActivateChecks:[]}){const ft=on(ae);return P.children.forEach(kt=>{(function Ze(P,ae,k,le,$e={canDeactivateChecks:[],canActivateChecks:[]}){const ft=P.value,kt=ae?ae.value:null,yn=k?k.getContext(P.value.outlet):null;if(kt&&ft.routeConfig===kt.routeConfig){const ln=function Fn(P,ae,k){if("function"==typeof k)return k(P,ae);switch(k){case"pathParamsChange":return!Tn(P.url,ae.url);case"pathParamsOrQueryParamsChange":return!Tn(P.url,ae.url)||!fn(P.queryParams,ae.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mi(P,ae)||!fn(P.queryParams,ae.queryParams);default:return!mi(P,ae)}}(kt,ft,ft.routeConfig.runGuardsAndResolvers);ln?$e.canActivateChecks.push(new xr(le)):(ft.data=kt.data,ft._resolvedData=kt._resolvedData),us(P,ae,ft.component?yn?yn.children:null:k,le,$e),ln&&yn&&yn.outlet&&yn.outlet.isActivated&&$e.canDeactivateChecks.push(new Uo(yn.outlet.component,kt))}else kt&&de(ae,yn,$e),$e.canActivateChecks.push(new xr(le)),us(P,null,ft.component?yn?yn.children:null:k,le,$e)})(kt,ft[kt.value.outlet],k,le.concat([kt.value]),$e),delete ft[kt.value.outlet]}),Object.entries(ft).forEach(([kt,yn])=>de(yn,k.getContext(kt),$e)),$e}function de(P,ae,k){const le=on(P),$e=P.value;Object.entries(le).forEach(([ft,kt])=>{de(kt,$e.component?ae?ae.children.getContext(ft):null:ae,k)}),k.canDeactivateChecks.push(new Uo($e.component&&ae&&ae.outlet&&ae.outlet.isActivated?ae.outlet.component:null,$e))}function We(P){return"function"==typeof P}function bo(P){return P instanceof L.G||"EmptyError"===P?.name}const hi=Symbol("INITIAL_VALUE");function ho(){return(0,Ee.n)(P=>(0,K.z)(P.map(ae=>ae.pipe((0,Oe.s)(1),(0,pe.Z)(hi)))).pipe((0,J.T)(ae=>{for(const k of ae)if(!0!==k){if(k===hi)return hi;if(!1===k||Oo(k))return k}return!0}),(0,Ie.p)(ae=>ae!==hi),(0,Oe.s)(1)))}function Oo(P){return N(P)||P instanceof Gr}function vi(P){return(0,I.F)((0,z.M)(ae=>{if("boolean"!=typeof ae)throw Qo(0,ae)}),(0,J.T)(ae=>!0===ae))}class Pc{constructor(ae){this.segmentGroup=ae||null}}class ma extends Error{constructor(ae){super(),this.urlTree=ae}}function _r(P){return(0,w.$)(new Pc(P))}class Yr{constructor(ae,k){this.urlSerializer=ae,this.urlTree=k}lineralizeSegments(ae,k){let le=[],$e=k.root;for(;;){if(le=le.concat($e.segments),0===$e.numberOfChildren)return(0,e.of)(le);if($e.numberOfChildren>1||!$e.children[Ct])return(0,w.$)(new t.wOt(4e3,!1));$e=$e.children[Ct]}}applyRedirectCommands(ae,k,le,$e,ft){if("string"!=typeof k){const yn=k,{queryParams:ln,fragment:ri,routeConfig:Fi,url:Ai,outlet:Fo,params:os,data:Cr,title:Bi}=$e,Mo=(0,t.N4e)(ft,()=>yn({params:os,data:Cr,queryParams:ln,fragment:ri,routeConfig:Fi,url:Ai,outlet:Fo,title:Bi}));if(Mo instanceof et)throw new ma(Mo);k=Mo}const kt=this.applyRedirectCreateUrlTree(k,this.urlSerializer.parse(k),ae,le);if("/"===k[0])throw new ma(kt);return kt}applyRedirectCreateUrlTree(ae,k,le,$e){const ft=this.createSegmentGroup(ae,k.root,le,$e);return new et(ft,this.createQueryParams(k.queryParams,this.urlTree.queryParams),k.fragment)}createQueryParams(ae,k){const le={};return Object.entries(ae).forEach(([$e,ft])=>{if("string"==typeof ft&&":"===ft[0]){const yn=ft.substring(1);le[$e]=k[yn]}else le[$e]=ft}),le}createSegmentGroup(ae,k,le,$e){const ft=this.createSegments(ae,k.segments,le,$e);let kt={};return Object.entries(k.children).forEach(([yn,ln])=>{kt[yn]=this.createSegmentGroup(ae,ln,le,$e)}),new ht(ft,kt)}createSegments(ae,k,le,$e){return k.map(ft=>":"===ft.path[0]?this.findPosParam(ae,ft,$e):this.findOrReturn(ft,le))}findPosParam(ae,k,le){const $e=le[k.path.substring(1)];if(!$e)throw new t.wOt(4001,!1);return $e}findOrReturn(ae,k){let le=0;for(const $e of k){if($e.path===ae.path)return k.splice(le),$e;le++}return ae}}const Zs={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Aa(P,ae,k,le,$e){const ft=mr(P,ae,k);return ft.matched?(le=function pr(P,ae){return P.providers&&!P._injector&&(P._injector=(0,t.Ol2)(P.providers,ae,`Route: ${P.path}`)),P._injector??ae}(ae,le),function Fa(P,ae,k,le){const $e=ae.canMatch;if(!$e||0===$e.length)return(0,e.of)(!0);const ft=$e.map(kt=>{const yn=Es(kt,P);return At(function ki(P){return P&&We(P.canMatch)}(yn)?yn.canMatch(ae,k):(0,t.N4e)(P,()=>yn(ae,k)))});return(0,e.of)(ft).pipe(ho(),vi())}(le,ae,k).pipe((0,J.T)(kt=>!0===kt?ft:{...Zs}))):(0,e.of)(ft)}function mr(P,ae,k){if("**"===ae.path)return function ga(P){return{matched:!0,parameters:P.length>0?bt(P).parameters:{},consumedSegments:P,remainingSegments:[],positionalParamSegments:{}}}(k);if(""===ae.path)return"full"===ae.pathMatch&&(P.hasChildren()||k.length>0)?{...Zs}:{matched:!0,consumedSegments:[],remainingSegments:k,parameters:{},positionalParamSegments:{}};const $e=(ae.matcher||Ut)(k,P,ae);if(!$e)return{...Zs};const ft={};Object.entries($e.posParams??{}).forEach(([yn,ln])=>{ft[yn]=ln.path});const kt=$e.consumed.length>0?{...ft,...$e.consumed[$e.consumed.length-1].parameters}:ft;return{matched:!0,consumedSegments:$e.consumed,remainingSegments:k.slice($e.consumed.length),parameters:kt,positionalParamSegments:$e.posParams??{}}}function Hs(P,ae,k,le){return k.length>0&&function ra(P,ae,k){return k.some(le=>xi(P,ae,le)&&Zo(le)!==Ct)}(P,k,le)?{segmentGroup:new ht(ae,dc(le,new ht(k,P.children))),slicedSegments:[]}:0===k.length&&function Wr(P,ae,k){return k.some(le=>xi(P,ae,le))}(P,k,le)?{segmentGroup:new ht(P.segments,ds(P,k,le,P.children)),slicedSegments:k}:{segmentGroup:new ht(P.segments,P.children),slicedSegments:k}}function ds(P,ae,k,le){const $e={};for(const ft of k)if(xi(P,ae,ft)&&!le[Zo(ft)]){const kt=new ht([],{});$e[Zo(ft)]=kt}return{...le,...$e}}function dc(P,ae){const k={};k[Ct]=ae;for(const le of P)if(""===le.path&&Zo(le)!==Ct){const $e=new ht([],{});k[Zo(le)]=$e}return k}function xi(P,ae,k){return(!(P.hasChildren()||ae.length>0)||"full"!==k.pathMatch)&&""===k.path}class hs{}class va{constructor(ae,k,le,$e,ft,kt,yn){this.injector=ae,this.configLoader=k,this.rootComponentType=le,this.config=$e,this.urlTree=ft,this.paramsInheritanceStrategy=kt,this.urlSerializer=yn,this.applyRedirects=new Yr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(ae){return new t.wOt(4002,`'${ae.segmentGroup}'`)}recognize(){const ae=Hs(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(ae).pipe((0,J.T)(({children:k,rootSnapshot:le})=>{const $e=new tn(le,k),ft=new pi("",$e),kt=function ke(P,ae,k=null,le=null){return W(ge(P),ae,k,le)}(le,[],this.urlTree.queryParams,this.urlTree.fragment);return kt.queryParams=this.urlTree.queryParams,ft.url=this.urlSerializer.serialize(kt),{state:ft,tree:kt}}))}match(ae){const k=new qn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ct,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,ae,Ct,k).pipe((0,J.T)(le=>({children:le,rootSnapshot:k})),(0,Z.W)(le=>{if(le instanceof ma)return this.urlTree=le.urlTree,this.match(le.urlTree.root);throw le instanceof Pc?this.noMatchError(le):le}))}processSegmentGroup(ae,k,le,$e,ft){return 0===le.segments.length&&le.hasChildren()?this.processChildren(ae,k,le,ft):this.processSegment(ae,k,le,le.segments,$e,!0,ft).pipe((0,J.T)(kt=>kt instanceof tn?[kt]:[]))}processChildren(ae,k,le,$e){const ft=[];for(const kt of Object.keys(le.children))"primary"===kt?ft.unshift(kt):ft.push(kt);return(0,m.H)(ft).pipe((0,Y.H)(kt=>{const yn=le.children[kt],ln=function bs(P,ae){const k=P.filter(le=>Zo(le)===ae);return k.push(...P.filter(le=>Zo(le)!==ae)),k}(k,kt);return this.processSegmentGroup(ae,ln,yn,kt,$e)}),(0,he.S)((kt,yn)=>(kt.push(...yn),kt)),(0,E.U)(null),function Pt(P,ae){const k=arguments.length>=2;return le=>le.pipe(P?(0,Ie.p)(($e,ft)=>P($e,ft,le)):Be.D,U(1),k?(0,E.U)(ae):(0,se.v)(()=>new L.G))}(),(0,ve.Z)(kt=>{if(null===kt)return _r(le);const yn=pl(kt);return function Xr(P){P.sort((ae,k)=>ae.value.outlet===Ct?-1:k.value.outlet===Ct?1:ae.value.outlet.localeCompare(k.value.outlet))}(yn),(0,e.of)(yn)}))}processSegment(ae,k,le,$e,ft,kt,yn){return(0,m.H)(k).pipe((0,Y.H)(ln=>this.processSegmentAgainstRoute(ln._injector??ae,k,ln,le,$e,ft,kt,yn).pipe((0,Z.W)(ri=>{if(ri instanceof Pc)return(0,e.of)(null);throw ri}))),(0,fe.$)(ln=>!!ln),(0,Z.W)(ln=>{if(bo(ln))return function Ra(P,ae,k){return 0===ae.length&&!P.children[k]}(le,$e,ft)?(0,e.of)(new hs):_r(le);throw ln}))}processSegmentAgainstRoute(ae,k,le,$e,ft,kt,yn,ln){return function js(P,ae,k,le){return!!(Zo(P)===le||le!==Ct&&xi(ae,k,P))&&mr(ae,P,k).matched}(le,$e,ft,kt)?void 0===le.redirectTo?this.matchSegmentAgainstRoute(ae,$e,le,ft,kt,ln):this.allowRedirects&&yn?this.expandSegmentAgainstRouteUsingRedirect(ae,$e,k,le,ft,kt,ln):_r($e):_r($e)}expandSegmentAgainstRouteUsingRedirect(ae,k,le,$e,ft,kt,yn){const{matched:ln,parameters:ri,consumedSegments:Fi,positionalParamSegments:Ai,remainingSegments:Fo}=mr(k,$e,ft);if(!ln)return _r(k);"string"==typeof $e.redirectTo&&"/"===$e.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const os=new qn(ft,ri,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yr($e),Zo($e),$e.component??$e._loadedComponent??null,$e,Ts($e)),Cr=Kn(os,yn,this.paramsInheritanceStrategy);os.params=Object.freeze(Cr.params),os.data=Object.freeze(Cr.data);const Bi=this.applyRedirects.applyRedirectCommands(Fi,$e.redirectTo,Ai,os,ae);return this.applyRedirects.lineralizeSegments($e,Bi).pipe((0,ve.Z)(Mo=>this.processSegment(ae,le,k,Mo.concat(Fo),kt,!1,yn)))}matchSegmentAgainstRoute(ae,k,le,$e,ft,kt){const yn=Aa(k,le,$e,ae);return"**"===le.path&&(k.children={}),yn.pipe((0,Ee.n)(ln=>ln.matched?this.getChildConfig(ae=le._injector??ae,le,$e).pipe((0,Ee.n)(({routes:ri})=>{const Fi=le._loadedInjector??ae,{parameters:Ai,consumedSegments:Fo,remainingSegments:os}=ln,Cr=new qn(Fo,Ai,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yr(le),Zo(le),le.component??le._loadedComponent??null,le,Ts(le)),Bi=Kn(Cr,kt,this.paramsInheritanceStrategy);Cr.params=Object.freeze(Bi.params),Cr.data=Object.freeze(Bi.data);const{segmentGroup:Mo,slicedSegments:er}=Hs(k,Fo,os,ri);if(0===er.length&&Mo.hasChildren())return this.processChildren(Fi,ri,Mo,Cr).pipe((0,J.T)(tr=>new tn(Cr,tr)));if(0===ri.length&&0===er.length)return(0,e.of)(new tn(Cr,[]));const qs=Zo(le)===ft;return this.processSegment(Fi,ri,Mo,er,qs?Ct:ft,!0,Cr).pipe((0,J.T)(tr=>new tn(Cr,tr instanceof tn?[tr]:[])))})):_r(k)))}getChildConfig(ae,k,le){return k.children?(0,e.of)({routes:k.children,injector:ae}):k.loadChildren?void 0!==k._loadedRoutes?(0,e.of)({routes:k._loadedRoutes,injector:k._loadedInjector}):function xo(P,ae,k,le){const $e=ae.canLoad;if(void 0===$e||0===$e.length)return(0,e.of)(!0);const ft=$e.map(kt=>{const yn=Es(kt,P);return At(function sn(P){return P&&We(P.canLoad)}(yn)?yn.canLoad(ae,k):(0,t.N4e)(P,()=>yn(ae,k)))});return(0,e.of)(ft).pipe(ho(),vi())}(ae,k,le).pipe((0,ve.Z)($e=>$e?this.configLoader.loadChildren(ae,k).pipe((0,z.M)(ft=>{k._loadedRoutes=ft.routes,k._loadedInjector=ft.injector})):function oa(P){return(0,w.$)(Mr(!1,hn.GuardRejected))}())):(0,e.of)({routes:[],injector:ae})}}function Vu(P){const ae=P.value.routeConfig;return ae&&""===ae.path}function pl(P){const ae=[],k=new Set;for(const le of P){if(!Vu(le)){ae.push(le);continue}const $e=ae.find(ft=>le.value.routeConfig===ft.value.routeConfig);void 0!==$e?($e.children.push(...le.children),k.add($e)):ae.push(le)}for(const le of k){const $e=pl(le.children);ae.push(new tn(le.value,$e))}return ae.filter(le=>!k.has(le))}function yr(P){return P.data||{}}function Ts(P){return P.resolve||{}}function Fc(P){const ae=P.children.map(k=>Fc(k)).flat();return[P,...ae]}function Vi(P){return(0,Ee.n)(ae=>{const k=P(ae);return k?(0,m.H)(k).pipe((0,J.T)(()=>ae)):(0,e.of)(ae)})}let eo=(()=>{class P{buildTitle(k){let le,$e=k.root;for(;void 0!==$e;)le=this.getResolvedTitleForRoute($e)??le,$e=$e.children.find(ft=>ft.outlet===Ct);return le}getResolvedTitleForRoute(k){return k.data[It]}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(pc),providedIn:"root"})}return P})(),pc=(()=>{class P extends eo{constructor(k){super(),this.title=k}updateTitle(k){const le=this.buildTitle(k);void 0!==le&&this.title.setTitle(le)}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(st.hE))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const aa=new t.nKC("",{providedIn:"root",factory:()=>({})});let Ac=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275cmp=t.VBU({type:P,selectors:[["ng-component"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(le,$e){1&le&&t.nrm(0,"router-outlet")},dependencies:[Xi],encapsulation:2})}return P})();function Rc(P){const ae=P.children&&P.children.map(Rc),k=ae?{...P,children:ae}:{...P};return!k.component&&!k.loadComponent&&(ae||k.loadChildren)&&k.outlet&&k.outlet!==Ct&&(k.component=Ac),k}const Ms=new t.nKC("");let Us=(()=>{class P{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.WQX)(t.Ql9)}loadComponent(k){if(this.componentLoaders.get(k))return this.componentLoaders.get(k);if(k._loadedComponent)return(0,e.of)(k._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(k);const le=At(k.loadComponent()).pipe((0,J.T)(fc),(0,z.M)(ft=>{this.onLoadEndListener&&this.onLoadEndListener(k),k._loadedComponent=ft}),(0,wt.j)(()=>{this.componentLoaders.delete(k)})),$e=new X.G(le,()=>new V.B).pipe((0,Le.B)());return this.componentLoaders.set(k,$e),$e}loadChildren(k,le){if(this.childrenLoaders.get(le))return this.childrenLoaders.get(le);if(le._loadedRoutes)return(0,e.of)({routes:le._loadedRoutes,injector:le._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(le);const ft=function so(P,ae,k,le){return At(P.loadChildren()).pipe((0,J.T)(fc),(0,ve.Z)($e=>$e instanceof t.Co$||Array.isArray($e)?(0,e.of)($e):(0,m.H)(ae.compileModuleAsync($e))),(0,J.T)($e=>{le&&le(P);let ft,kt,yn=!1;return Array.isArray($e)?(kt=$e,!0):(ft=$e.create(k).injector,kt=ft.get(Ms,[],{optional:!0,self:!0}).flat()),{routes:kt.map(Rc),injector:ft}}))}(le,this.compiler,k,this.onLoadEndListener).pipe((0,wt.j)(()=>{this.childrenLoaders.delete(le)})),kt=new X.G(ft,()=>new V.B).pipe((0,Le.B)());return this.childrenLoaders.set(le,kt),kt}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function fc(P){return function La(P){return P&&"object"==typeof P&&"default"in P}(P)?P.default:P}let Go=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(Vr),providedIn:"root"})}return P})(),Vr=(()=>{class P{shouldProcessUrl(k){return!0}extract(k){return k}merge(k,le){return k}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const ca=new t.nKC(""),Ss=new t.nKC("");function Ba(P,ae,k){const le=P.get(Ss),$e=P.get(oe.qQ);return P.get(t.SKi).runOutsideAngular(()=>{if(!$e.startViewTransition||le.skipNextTransition)return le.skipNextTransition=!1,new Promise(ri=>setTimeout(ri));let ft;const kt=new Promise(ri=>{ft=ri}),yn=$e.startViewTransition(()=>(ft(),function mc(P){return new Promise(ae=>{(0,t.mal)({read:()=>setTimeout(ae)},{injector:P})})}(P))),{onViewTransitionCreated:ln}=le;return ln&&(0,t.N4e)(P,()=>ln({transition:yn,from:ae,to:k})),kt})}const G=new t.nKC("");let it=(()=>{class P{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new V.B,this.transitionAbortSubject=new V.B,this.configLoader=(0,t.WQX)(Us),this.environmentInjector=(0,t.WQX)(t.uvJ),this.urlSerializer=(0,t.WQX)(kn),this.rootContexts=(0,t.WQX)(Ve),this.location=(0,t.WQX)(oe.aZ),this.inputBindingEnabled=null!==(0,t.WQX)(no,{optional:!0}),this.titleStrategy=(0,t.WQX)(eo),this.options=(0,t.WQX)(aa,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,t.WQX)(Go),this.createViewTransition=(0,t.WQX)(ca,{optional:!0}),this.navigationErrorHandler=(0,t.WQX)(G,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,e.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=$e=>this.events.next(new Ni($e)),this.configLoader.onLoadStartListener=$e=>this.events.next(new Mi($e))}complete(){this.transitions?.complete()}handleNavigationRequest(k){const le=++this.navigationId;this.transitions?.next({...this.transitions.value,...k,id:le})}setupNavigations(k,le,$e){return this.transitions=new M.t({id:0,currentUrlTree:le,currentRawUrl:le,extractedUrl:this.urlHandlingStrategy.extract(le),urlAfterRedirects:this.urlHandlingStrategy.extract(le),rawUrl:le,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:rr,restoredState:null,currentSnapshot:$e.snapshot,targetSnapshot:null,currentRouterState:$e,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ie.p)(ft=>0!==ft.id),(0,J.T)(ft=>({...ft,extractedUrl:this.urlHandlingStrategy.extract(ft.rawUrl)})),(0,Ee.n)(ft=>{let kt=!1,yn=!1;return(0,e.of)(ft).pipe((0,Ee.n)(ln=>{if(this.navigationId>ft.id)return this.cancelNavigationTransition(ft,"",hn.SupersededByNewNavigation),F.w;this.currentTransition=ft,this.currentNavigation={id:ln.id,initialUrl:ln.rawUrl,extractedUrl:ln.extractedUrl,targetBrowserUrl:"string"==typeof ln.extras.browserUrl?this.urlSerializer.parse(ln.extras.browserUrl):ln.extras.browserUrl,trigger:ln.source,extras:ln.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const ri=!k.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!ri&&"reload"!==(ln.extras.onSameUrlNavigation??k.onSameUrlNavigation)){const Ai="";return this.events.next(new Xn(ln.id,this.urlSerializer.serialize(ln.rawUrl),Ai,Hn.IgnoredSameUrlNavigation)),ln.resolve(!1),F.w}if(this.urlHandlingStrategy.shouldProcessUrl(ln.rawUrl))return(0,e.of)(ln).pipe((0,Ee.n)(Ai=>{const Fo=this.transitions?.getValue();return this.events.next(new $t(Ai.id,this.urlSerializer.serialize(Ai.extractedUrl),Ai.source,Ai.restoredState)),Fo!==this.transitions?.getValue()?F.w:Promise.resolve(Ai)}),function ka(P,ae,k,le,$e,ft){return(0,ve.Z)(kt=>function Na(P,ae,k,le,$e,ft,kt="emptyOnly"){return new va(P,ae,k,le,$e,kt,ft).recognize()}(P,ae,k,le,kt.extractedUrl,$e,ft).pipe((0,J.T)(({state:yn,tree:ln})=>({...kt,targetSnapshot:yn,urlAfterRedirects:ln}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,k.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,z.M)(Ai=>{ft.targetSnapshot=Ai.targetSnapshot,ft.urlAfterRedirects=Ai.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ai.urlAfterRedirects};const Fo=new _i(Ai.id,this.urlSerializer.serialize(Ai.extractedUrl),this.urlSerializer.serialize(Ai.urlAfterRedirects),Ai.targetSnapshot);this.events.next(Fo)}));if(ri&&this.urlHandlingStrategy.shouldProcessUrl(ln.currentRawUrl)){const{id:Ai,extractedUrl:Fo,source:os,restoredState:Cr,extras:Bi}=ln,Mo=new $t(Ai,this.urlSerializer.serialize(Fo),os,Cr);this.events.next(Mo);const er=Mn(this.rootComponentType).snapshot;return this.currentTransition=ft={...ln,targetSnapshot:er,urlAfterRedirects:Fo,extras:{...Bi,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Fo,(0,e.of)(ft)}{const Ai="";return this.events.next(new Xn(ln.id,this.urlSerializer.serialize(ln.extractedUrl),Ai,Hn.IgnoredByUrlHandlingStrategy)),ln.resolve(!1),F.w}}),(0,z.M)(ln=>{const ri=new lo(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects),ln.targetSnapshot);this.events.next(ri)}),(0,J.T)(ln=>(this.currentTransition=ft={...ln,guards:es(ln.targetSnapshot,ln.currentSnapshot,this.rootContexts)},ft)),function ts(P,ae){return(0,ve.Z)(k=>{const{targetSnapshot:le,currentSnapshot:$e,guards:{canActivateChecks:ft,canDeactivateChecks:kt}}=k;return 0===kt.length&&0===ft.length?(0,e.of)({...k,guardsResult:!0}):function Ne(P,ae,k,le){return(0,m.H)(P).pipe((0,ve.Z)($e=>function Qi(P,ae,k,le,$e){const ft=ae&&ae.routeConfig?ae.routeConfig.canDeactivate:null;if(!ft||0===ft.length)return(0,e.of)(!0);const kt=ft.map(yn=>{const ln=tt(ae)??$e,ri=Es(yn,ln);return At(function fi(P){return P&&We(P.canDeactivate)}(ri)?ri.canDeactivate(P,ae,k,le):(0,t.N4e)(ln,()=>ri(P,ae,k,le))).pipe((0,fe.$)())});return(0,e.of)(kt).pipe(ho())}($e.component,$e.route,k,ae,le)),(0,fe.$)($e=>!0!==$e,!0))}(kt,le,$e,P).pipe((0,ve.Z)(yn=>yn&&function ct(P){return"boolean"==typeof P}(yn)?function je(P,ae,k,le){return(0,m.H)(ae).pipe((0,Y.H)($e=>(0,j.x)(function pt(P,ae){return null!==P&&ae&&ae(new oo(P)),(0,e.of)(!0)}($e.route.parent,le),function ye(P,ae){return null!==P&&ae&&ae(new jo(P)),(0,e.of)(!0)}($e.route,le),function wi(P,ae,k){const le=ae[ae.length-1],ft=ae.slice(0,ae.length-1).reverse().map(kt=>function zo(P){const ae=P.routeConfig?P.routeConfig.canActivateChild:null;return ae&&0!==ae.length?{node:P,guards:ae}:null}(kt)).filter(kt=>null!==kt).map(kt=>(0,A.v)(()=>{const yn=kt.guards.map(ln=>{const ri=tt(kt.node)??k,Fi=Es(ln,ri);return At(function Ln(P){return P&&We(P.canActivateChild)}(Fi)?Fi.canActivateChild(le,P):(0,t.N4e)(ri,()=>Fi(le,P))).pipe((0,fe.$)())});return(0,e.of)(yn).pipe(ho())}));return(0,e.of)(ft).pipe(ho())}(P,$e.path,k),function Jt(P,ae,k){const le=ae.routeConfig?ae.routeConfig.canActivate:null;if(!le||0===le.length)return(0,e.of)(!0);const $e=le.map(ft=>(0,A.v)(()=>{const kt=tt(ae)??k,yn=Es(ft,kt);return At(function Vn(P){return P&&We(P.canActivate)}(yn)?yn.canActivate(ae,P):(0,t.N4e)(kt,()=>yn(ae,P))).pipe((0,fe.$)())}));return(0,e.of)($e).pipe(ho())}(P,$e.route,k))),(0,fe.$)($e=>!0!==$e,!0))}(le,ft,P,ae):(0,e.of)(yn)),(0,J.T)(yn=>({...k,guardsResult:yn})))})}(this.environmentInjector,ln=>this.events.next(ln)),(0,z.M)(ln=>{if(ft.guardsResult=ln.guardsResult,ln.guardsResult&&"boolean"!=typeof ln.guardsResult)throw Qo(0,ln.guardsResult);const ri=new bi(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects),ln.targetSnapshot,!!ln.guardsResult);this.events.next(ri)}),(0,Ie.p)(ln=>!!ln.guardsResult||(this.cancelNavigationTransition(ln,"",hn.GuardRejected),!1)),Vi(ln=>{if(ln.guards.canActivateChecks.length)return(0,e.of)(ln).pipe((0,z.M)(ri=>{const Fi=new mn(ri.id,this.urlSerializer.serialize(ri.extractedUrl),this.urlSerializer.serialize(ri.urlAfterRedirects),ri.targetSnapshot);this.events.next(Fi)}),(0,Ee.n)(ri=>{let Fi=!1;return(0,e.of)(ri).pipe(function sa(P,ae){return(0,ve.Z)(k=>{const{targetSnapshot:le,guards:{canActivateChecks:$e}}=k;if(!$e.length)return(0,e.of)(k);const ft=new Set($e.map(ln=>ln.route)),kt=new Set;for(const ln of ft)if(!kt.has(ln))for(const ri of Fc(ln))kt.add(ri);let yn=0;return(0,m.H)(kt).pipe((0,Y.H)(ln=>ft.has(ln)?function zs(P,ae,k,le){const $e=P.routeConfig,ft=P._resolve;return void 0!==$e?.title&&!Ei($e)&&(ft[It]=$e.title),function Va(P,ae,k,le){const $e=$n(P);if(0===$e.length)return(0,e.of)({});const ft={};return(0,m.H)($e).pipe((0,ve.Z)(kt=>function hc(P,ae,k,le){const $e=tt(ae)??le,ft=Es(P,$e);return At(ft.resolve?ft.resolve(ae,k):(0,t.N4e)($e,()=>ft(ae,k)))}(P[kt],ae,k,le).pipe((0,fe.$)(),(0,z.M)(yn=>{if(yn instanceof Gr)throw Qo(new In,yn);ft[kt]=yn}))),U(1),(0,gt.u)(ft),(0,Z.W)(kt=>bo(kt)?F.w:(0,w.$)(kt)))}(ft,P,ae,le).pipe((0,J.T)(kt=>(P._resolvedData=kt,P.data=Kn(P,P.parent,k).resolve,null)))}(ln,le,P,ae):(ln.data=Kn(ln,ln.parent,P).resolve,(0,e.of)(void 0))),(0,z.M)(()=>yn++),U(1),(0,ve.Z)(ln=>yn===kt.size?(0,e.of)(k):F.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,z.M)({next:()=>Fi=!0,complete:()=>{Fi||this.cancelNavigationTransition(ri,"",hn.NoDataFromResolver)}}))}),(0,z.M)(ri=>{const Fi=new Ui(ri.id,this.urlSerializer.serialize(ri.extractedUrl),this.urlSerializer.serialize(ri.urlAfterRedirects),ri.targetSnapshot);this.events.next(Fi)}))}),Vi(ln=>{const ri=Fi=>{const Ai=[];Fi.routeConfig?.loadComponent&&!Fi.routeConfig._loadedComponent&&Ai.push(this.configLoader.loadComponent(Fi.routeConfig).pipe((0,z.M)(Fo=>{Fi.component=Fo}),(0,J.T)(()=>{})));for(const Fo of Fi.children)Ai.push(...ri(Fo));return Ai};return(0,K.z)(ri(ln.targetSnapshot.root)).pipe((0,E.U)(null),(0,Oe.s)(1))}),Vi(()=>this.afterPreactivation()),(0,Ee.n)(()=>{const{currentSnapshot:ln,targetSnapshot:ri}=ft,Fi=this.createViewTransition?.(this.environmentInjector,ln.root,ri.root);return Fi?(0,m.H)(Fi).pipe((0,J.T)(()=>ft)):(0,e.of)(ft)}),(0,J.T)(ln=>{const ri=function ro(P,ae,k){const le=An(P,ae._root,k?k._root:void 0);return new bn(le,ae)}(k.routeReuseStrategy,ln.targetSnapshot,ln.currentRouterState);return this.currentTransition=ft={...ln,targetRouterState:ri},this.currentNavigation.targetRouterState=ri,ft}),(0,z.M)(()=>{this.events.next(new sr)}),((P,ae,k,le)=>(0,J.T)($e=>(new $s(ae,$e.targetRouterState,$e.currentRouterState,k,le).activate(P),$e)))(this.rootContexts,k.routeReuseStrategy,ln=>this.events.next(ln),this.inputBindingEnabled),(0,Oe.s)(1),(0,z.M)({next:ln=>{kt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new pn(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects))),this.titleStrategy?.updateTitle(ln.targetRouterState.snapshot),ln.resolve(!0)},complete:()=>{kt=!0}}),(0,zt.Q)(this.transitionAbortSubject.pipe((0,z.M)(ln=>{throw ln}))),(0,wt.j)(()=>{!kt&&!yn&&this.cancelNavigationTransition(ft,"",hn.SupersededByNewNavigation),this.currentTransition?.id===ft.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Z.W)(ln=>{if(yn=!0,Sr(ln))this.events.next(new En(ft.id,this.urlSerializer.serialize(ft.extractedUrl),ln.message,ln.cancellationCode)),function vr(P){return Sr(P)&&N(P.url)}(ln)?this.events.next(new fo(ln.url,ln.navigationBehaviorOptions)):ft.resolve(!1);else{const ri=new ci(ft.id,this.urlSerializer.serialize(ft.extractedUrl),ln,ft.targetSnapshot??void 0);try{const Fi=(0,t.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(ri));if(Fi instanceof Gr){const{message:Ai,cancellationCode:Fo}=Qo(0,Fi);this.events.next(new En(ft.id,this.urlSerializer.serialize(ft.extractedUrl),Ai,Fo)),this.events.next(new fo(Fi.redirectTo,Fi.navigationBehaviorOptions))}else{this.events.next(ri);const Ai=k.errorHandler(ln);ft.resolve(!!Ai)}}catch(Fi){this.options.resolveNavigationPromiseOnError?ft.resolve(!1):ft.reject(Fi)}}return F.w}))}))}cancelNavigationTransition(k,le,$e){const ft=new En(k.id,this.urlSerializer.serialize(k.extractedUrl),le,$e);this.events.next(ft),k.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const k=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),le=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return k.toString()!==le?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function Te(P){return P!==rr}let Ye=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(gn),providedIn:"root"})}return P})();class Nt{shouldDetach(ae){return!1}store(ae,k){}shouldAttach(ae){return!1}retrieve(ae){return null}shouldReuseRoute(ae,k){return ae.routeConfig===k.routeConfig}}let gn=(()=>{class P extends Nt{static#e=this.\u0275fac=(()=>{let k;return function($e){return(k||(k=t.xGo(P)))($e||P)}})();static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Pn=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(di),providedIn:"root"})}return P})(),di=(()=>{class P extends Pn{constructor(){super(...arguments),this.location=(0,t.WQX)(oe.aZ),this.urlSerializer=(0,t.WQX)(kn),this.options=(0,t.WQX)(aa,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,t.WQX)(Go),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new et,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Mn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(k){return this.location.subscribe(le=>{"popstate"===le.type&&k(le.url,le.state)})}handleRouterEvent(k,le){if(k instanceof $t)this.stateMemento=this.createStateMemento();else if(k instanceof Xn)this.rawUrlTree=le.initialUrl;else if(k instanceof _i){if("eager"===this.urlUpdateStrategy&&!le.extras.skipLocationChange){const $e=this.urlHandlingStrategy.merge(le.finalUrl,le.initialUrl);this.setBrowserUrl(le.targetBrowserUrl??$e,le)}}else k instanceof sr?(this.currentUrlTree=le.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(le.finalUrl,le.initialUrl),this.routerState=le.targetRouterState,"deferred"===this.urlUpdateStrategy&&!le.extras.skipLocationChange&&this.setBrowserUrl(le.targetBrowserUrl??this.rawUrlTree,le)):k instanceof En&&(k.code===hn.GuardRejected||k.code===hn.NoDataFromResolver)?this.restoreHistory(le):k instanceof ci?this.restoreHistory(le,!0):k instanceof pn&&(this.lastSuccessfulId=k.id,this.currentPageId=this.browserPageId)}setBrowserUrl(k,le){const $e=k instanceof et?this.urlSerializer.serialize(k):k;if(this.location.isCurrentPathEqualTo($e)||le.extras.replaceUrl){const kt={...le.extras.state,...this.generateNgRouterState(le.id,this.browserPageId)};this.location.replaceState($e,"",kt)}else{const ft={...le.extras.state,...this.generateNgRouterState(le.id,this.browserPageId+1)};this.location.go($e,"",ft)}}restoreHistory(k,le=!1){if("computed"===this.canceledNavigationResolution){const ft=this.currentPageId-this.browserPageId;0!==ft?this.location.historyGo(ft):this.currentUrlTree===k.finalUrl&&0===ft&&(this.resetState(k),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(le&&this.resetState(k),this.resetUrlToCurrentUrlTree())}resetState(k){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,k.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(k,le){return"computed"===this.canceledNavigationResolution?{navigationId:k,\u0275routerPageId:le}:{navigationId:k}}static#e=this.\u0275fac=(()=>{let k;return function($e){return(k||(k=t.xGo(P)))($e||P)}})();static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();var yo=function(P){return P[P.COMPLETE=0]="COMPLETE",P[P.FAILED=1]="FAILED",P[P.REDIRECTING=2]="REDIRECTING",P}(yo||{});function Yi(P,ae){P.events.pipe((0,Ie.p)(k=>k instanceof pn||k instanceof En||k instanceof ci||k instanceof Xn),(0,J.T)(k=>k instanceof pn||k instanceof Xn?yo.COMPLETE:k instanceof En&&(k.code===hn.Redirect||k.code===hn.SupersededByNewNavigation)?yo.REDIRECTING:yo.FAILED),(0,Ie.p)(k=>k!==yo.REDIRECTING),(0,Oe.s)(1)).subscribe(()=>{ae()})}function Eo(P){throw P}const Yn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Io={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wi=(()=>{class P{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,t.WQX)(t.H3F),this.stateManager=(0,t.WQX)(Pn),this.options=(0,t.WQX)(aa,{optional:!0})||{},this.pendingTasks=(0,t.WQX)(t.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,t.WQX)(it),this.urlSerializer=(0,t.WQX)(kn),this.location=(0,t.WQX)(oe.aZ),this.urlHandlingStrategy=(0,t.WQX)(Go),this._events=new V.B,this.errorHandler=this.options.errorHandler||Eo,this.navigated=!1,this.routeReuseStrategy=(0,t.WQX)(Ye),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,t.WQX)(Ms,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,t.WQX)(no,{optional:!0}),this.eventsSubscription=new x.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:k=>{this.console.warn(k)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const k=this.navigationTransitions.events.subscribe(le=>{try{const $e=this.navigationTransitions.currentTransition,ft=this.navigationTransitions.currentNavigation;if(null!==$e&&null!==ft)if(this.stateManager.handleRouterEvent(le,ft),le instanceof En&&le.code!==hn.Redirect&&le.code!==hn.SupersededByNewNavigation)this.navigated=!0;else if(le instanceof pn)this.navigated=!0;else if(le instanceof fo){const kt=le.navigationBehaviorOptions,yn=this.urlHandlingStrategy.merge(le.url,$e.currentRawUrl),ln={browserUrl:$e.extras.browserUrl,info:$e.extras.info,skipLocationChange:$e.extras.skipLocationChange,replaceUrl:$e.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Te($e.source),...kt};this.scheduleNavigation(yn,rr,null,ln,{resolve:$e.resolve,reject:$e.reject,promise:$e.promise})}(function Qr(P){return!(P instanceof sr||P instanceof fo)})(le)&&this._events.next(le)}catch($e){this.navigationTransitions.transitionAbortSubject.next($e)}});this.eventsSubscription.add(k)}resetRootComponentType(k){this.routerState.root.component=k,this.navigationTransitions.rootComponentType=k}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),rr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((k,le)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(k,"popstate",le)},0)})}navigateToSyncWithBrowser(k,le,$e){const ft={replaceUrl:!0},kt=$e?.navigationId?$e:null;if($e){const ln={...$e};delete ln.navigationId,delete ln.\u0275routerPageId,0!==Object.keys(ln).length&&(ft.state=ln)}const yn=this.parseUrl(k);this.scheduleNavigation(yn,le,kt,ft)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(k){this.config=k.map(Rc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(k,le={}){const{relativeTo:$e,queryParams:ft,fragment:kt,queryParamsHandling:yn,preserveFragment:ln}=le,ri=ln?this.currentUrlTree.fragment:kt;let Ai,Fi=null;switch(yn){case"merge":Fi={...this.currentUrlTree.queryParams,...ft};break;case"preserve":Fi=this.currentUrlTree.queryParams;break;default:Fi=ft||null}null!==Fi&&(Fi=this.removeEmptyProps(Fi));try{Ai=ge($e?$e.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof k[0]||"/"!==k[0][0])&&(k=[]),Ai=this.currentUrlTree.root}return W(Ai,k,Fi,ri??null)}navigateByUrl(k,le={skipLocationChange:!1}){const $e=N(k)?k:this.parseUrl(k),ft=this.urlHandlingStrategy.merge($e,this.rawUrlTree);return this.scheduleNavigation(ft,rr,null,le)}navigate(k,le={skipLocationChange:!1}){return function Po(P){for(let ae=0;ae(null!=ft&&(le[$e]=ft),le),{})}scheduleNavigation(k,le,$e,ft,kt){if(this.disposed)return Promise.resolve(!1);let yn,ln,ri;kt?(yn=kt.resolve,ln=kt.reject,ri=kt.promise):ri=new Promise((Ai,Fo)=>{yn=Ai,ln=Fo});const Fi=this.pendingTasks.add();return Yi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Fi))}),this.navigationTransitions.handleNavigationRequest({source:le,restoredState:$e,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:k,extras:ft,resolve:yn,reject:ln,promise:ri,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ri.catch(Ai=>Promise.reject(Ai))}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Pr=(()=>{class P{constructor(k,le,$e,ft,kt,yn){this.router=k,this.route=le,this.tabIndexAttribute=$e,this.renderer=ft,this.el=kt,this.locationStrategy=yn,this.href=null,this.onChanges=new V.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const ln=kt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ln||"area"===ln,this.isAnchorElement?this.subscription=k.events.subscribe(ri=>{ri instanceof pn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(k){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",k)}ngOnChanges(k){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(k){null==k?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=N(k)||Array.isArray(k)?k:[k],this.setTabIndexIfNotOnNativeEl("0"))}onClick(k,le,$e,ft,kt){const yn=this.urlTree;return!!(null===yn||this.isAnchorElement&&(0!==k||le||$e||ft||kt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(yn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const k=this.urlTree;this.href=null!==k&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(k)):null;const le=null===this.href?null:(0,t.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",le)}applyAttributeValue(k,le){const $e=this.renderer,ft=this.el.nativeElement;null!==le?$e.setAttribute(ft,k,le):$e.removeAttribute(ft,k)}get urlTree(){return null===this.routerLinkInput?null:N(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(le){return new(le||P)(t.rXU(Wi),t.rXU(xn),t.kS0("tabindex"),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(oe.hb))};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(le,$e){1&le&&t.bIt("click",function(kt){return $e.onClick(kt.button,kt.ctrlKey,kt.shiftKey,kt.altKey,kt.metaKey)}),2&le&&t.BMQ("target",$e.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",t.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",t.L39],replaceUrl:[2,"replaceUrl","replaceUrl",t.L39],routerLink:"routerLink"},standalone:!0,features:[t.GFd,t.OA$]})}return P})(),Ds=(()=>{class P{get isActive(){return this._isActive}constructor(k,le,$e,ft,kt){this.router=k,this.element=le,this.renderer=$e,this.cdr=ft,this.link=kt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.bkB,this.routerEventsSubscription=k.events.subscribe(yn=>{yn instanceof pn&&this.update()})}ngAfterContentInit(){(0,e.of)(this.links.changes,(0,e.of)(null)).pipe((0,xt.U)()).subscribe(k=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const k=[...this.links.toArray(),this.link].filter(le=>!!le).map(le=>le.onChanges);this.linkInputChangesSubscription=(0,m.H)(k).pipe((0,xt.U)()).subscribe(le=>{this._isActive!==this.isLinkActive(this.router)(le)&&this.update()})}set routerLinkActive(k){const le=Array.isArray(k)?k:k.split(" ");this.classes=le.filter($e=>!!$e)}ngOnChanges(k){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const k=this.hasActiveLinks();this.classes.forEach(le=>{k?this.renderer.addClass(this.element.nativeElement,le):this.renderer.removeClass(this.element.nativeElement,le)}),k&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==k&&(this._isActive=k,this.cdr.markForCheck(),this.isActiveChange.emit(k))})}isLinkActive(k){const le=function ps(P){return!!P.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return $e=>{const ft=$e.urlTree;return!!ft&&k.isActive(ft,le)}}hasActiveLinks(){const k=this.isLinkActive(this.router);return this.link&&k(this.link)||this.links.some(k)}static#e=this.\u0275fac=function(le){return new(le||P)(t.rXU(Wi),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(Pr,8))};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["","routerLinkActive",""]],contentQueries:function(le,$e,ft){if(1&le&&t.wni(ft,Pr,5),2&le){let kt;t.mGM(kt=t.lsd())&&($e.links=kt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.OA$]})}return P})();class Lr{}let gc=(()=>{class P{constructor(k,le,$e,ft,kt){this.router=k,this.injector=$e,this.preloadingStrategy=ft,this.loader=kt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ie.p)(k=>k instanceof pn),(0,Y.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(k,le){const $e=[];for(const ft of le){ft.providers&&!ft._injector&&(ft._injector=(0,t.Ol2)(ft.providers,k,`Route: ${ft.path}`));const kt=ft._injector??k,yn=ft._loadedInjector??kt;(ft.loadChildren&&!ft._loadedRoutes&&void 0===ft.canLoad||ft.loadComponent&&!ft._loadedComponent)&&$e.push(this.preloadConfig(kt,ft)),(ft.children||ft._loadedRoutes)&&$e.push(this.processRoutes(yn,ft.children??ft._loadedRoutes))}return(0,m.H)($e).pipe((0,xt.U)())}preloadConfig(k,le){return this.preloadingStrategy.preload(le,()=>{let $e;$e=le.loadChildren&&void 0===le.canLoad?this.loader.loadChildren(k,le):(0,e.of)(null);const ft=$e.pipe((0,ve.Z)(kt=>null===kt?(0,e.of)(void 0):(le._loadedRoutes=kt.routes,le._loadedInjector=kt.injector,this.processRoutes(kt.injector??k,kt.routes))));if(le.loadComponent&&!le._loadedComponent){const kt=this.loader.loadComponent(le);return(0,m.H)([ft,kt]).pipe((0,xt.U)())}return ft})}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(Wi),t.KVO(t.Ql9),t.KVO(t.uvJ),t.KVO(Lr),t.KVO(Us))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const Os=new t.nKC("");let vc=(()=>{class P{constructor(k,le,$e,ft,kt={}){this.urlSerializer=k,this.transitions=le,this.viewportScroller=$e,this.zone=ft,this.options=kt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},kt.scrollPositionRestoration||="disabled",kt.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(k=>{k instanceof $t?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=k.navigationTrigger,this.restoredId=k.restoredState?k.restoredState.navigationId:0):k instanceof pn?(this.lastId=k.id,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.urlAfterRedirects).fragment)):k instanceof Xn&&k.code===Hn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(k=>{k instanceof Jo&&(k.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(k.position):k.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(k.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(k,le){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Jo(k,"popstate"===this.lastSource?this.store[this.restoredId]:null,le))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(le){t.QTQ()};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})();function to(P,ae){return{\u0275kind:P,\u0275providers:ae}}function Nc(){const P=(0,t.WQX)(t.zZn);return ae=>{const k=P.get(t.o8S);if(ae!==k.components[0])return;const le=P.get(Wi),$e=P.get($u);1===P.get(Dr)&&le.initialNavigation(),P.get(_c,null,t.$GK.Optional)?.setUpPreloading(),P.get(Os,null,t.$GK.Optional)?.init(),le.resetRootComponentType(k.componentTypes[0]),$e.closed||($e.next(),$e.complete(),$e.unsubscribe())}}const $u=new t.nKC("",{factory:()=>new V.B}),Dr=new t.nKC("",{providedIn:"root",factory:()=>1}),_c=new t.nKC("");function Jr(P){return to(0,[{provide:_c,useExisting:gc},{provide:Lr,useExisting:P}])}function ua(P){return to(9,[{provide:ca,useValue:Ba},{provide:Ss,useValue:{skipNextTransition:!!P?.skipInitialTransition,...P}}])}const ws=new t.nKC("ROUTER_FORROOT_GUARD"),xs=[oe.aZ,{provide:kn,useClass:In},Wi,Ve,{provide:xn,useFactory:function ns(P){return P.routerState.root},deps:[Wi]},Us,[]];let Zl=(()=>{class P{constructor(k){}static forRoot(k,le){return{ngModule:P,providers:[xs,[],{provide:Ms,multi:!0,useValue:k},{provide:ws,useFactory:ya,deps:[[Wi,new t.Xx1,new t.kdw]]},{provide:aa,useValue:le||{}},le?.useHash?{provide:oe.hb,useClass:oe.fw}:{provide:oe.hb,useClass:oe.Sm},{provide:Os,useFactory:()=>{const P=(0,t.WQX)(oe.Xr),ae=(0,t.WQX)(t.SKi),k=(0,t.WQX)(aa),le=(0,t.WQX)(it),$e=(0,t.WQX)(kn);return k.scrollOffset&&P.setOffset(k.scrollOffset),new vc($e,le,P,ae,k)}},le?.preloadingStrategy?Jr(le.preloadingStrategy).\u0275providers:[],le?.initialNavigation?gl(le):[],le?.bindToComponentInputs?to(8,[ao,{provide:no,useExisting:ao}]).\u0275providers:[],le?.enableViewTransitions?ua().\u0275providers:[],[{provide:Bc,useFactory:Nc},{provide:t.iLQ,multi:!0,useExisting:Bc}]]}}static forChild(k){return{ngModule:P,providers:[{provide:Ms,multi:!0,useValue:k}]}}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(ws,8))};static#t=this.\u0275mod=t.$C({type:P});static#n=this.\u0275inj=t.G2t({})}return P})();function ya(P){return"guarded"}function gl(P){return["disabled"===P.initialNavigation?to(3,[{provide:t.hnV,multi:!0,useFactory:()=>{const ae=(0,t.WQX)(Wi);return()=>{ae.setUpLocationChangeListener()}}},{provide:Dr,useValue:2}]).\u0275providers:[],"enabledBlocking"===P.initialNavigation?to(2,[{provide:Dr,useValue:0},{provide:t.hnV,multi:!0,deps:[t.zZn],useFactory:ae=>{const k=ae.get(oe.hj,Promise.resolve());return()=>k.then(()=>new Promise(le=>{const $e=ae.get(Wi),ft=ae.get($u);Yi($e,()=>{le(!0)}),ae.get(it).afterPreactivation=()=>(le(!0),ft.closed?(0,e.of)(void 0):ft),$e.initialNavigation()}))}}]).\u0275providers:[]]}const Bc=new t.nKC("")},8167:(Rt,De,a)=>{a.d(De,{$ix:()=>Is,DT4:()=>Ti,DXx:()=>Ni,Dnx:()=>Oc,FmF:()=>rn,HCk:()=>Mi,HSk:()=>Th,Hb1:()=>R1,Hcp:()=>lo,KKJ:()=>uc,MTO:()=>Kr,MxV:()=>Qa,N$r:()=>Gn,Nk1:()=>Xr,O9N:()=>ao,OgO:()=>us,PR6:()=>Rl,QQ_:()=>fs,R9X:()=>os,RR4:()=>w4,SFT:()=>W,U1s:()=>Ss,U97:()=>Ri,XEL:()=>mn,XTv:()=>u0,XkU:()=>Lt,Y6F:()=>ra,Z1x:()=>ze,a5L:()=>d4,aB7:()=>jn,cuh:()=>Hu,drJ:()=>hc,eNq:()=>N4,eiI:()=>rc,ekG:()=>Ys,f0d:()=>vi,gA6:()=>Zc,gZ6:()=>f0,hl9:()=>el,iOx:()=>Ft,j4r:()=>io,kGj:()=>A1,lWl:()=>_r,qZ3:()=>Yp,rHI:()=>ge,rXM:()=>Aa,wx$:()=>u4,zt9:()=>yt});const Lt={name:"bars",theme:"outline",icon:''},ze={name:"calendar",theme:"outline",icon:''},ge={name:"caret-down",theme:"fill",icon:''},W={name:"caret-down",theme:"outline",icon:''},Ft={name:"caret-up",theme:"fill",icon:''},rn={name:"caret-up",theme:"outline",icon:''},jn={name:"check-circle",theme:"fill",icon:''},Gn={name:"check-circle",theme:"outline",icon:''},lo={name:"close-circle",theme:"outline",icon:''},mn={name:"close",theme:"outline",icon:''},Mi={name:"check",theme:"outline",icon:''},Ni={name:"clock-circle",theme:"outline",icon:''},ao={name:"copy",theme:"outline",icon:''},us={name:"delete",theme:"outline",icon:''},vi={name:"dashboard",theme:"outline",icon:''},_r={name:"double-left",theme:"outline",icon:''},uc={name:"double-right",theme:"outline",icon:''},Aa={name:"down",theme:"outline",icon:''},ra={name:"close-circle",theme:"fill",icon:''},Kr={name:"ellipsis",theme:"outline",icon:''},Xr={name:"edit",theme:"outline",icon:''},hc={name:"exclamation-circle",theme:"fill",icon:''},Ss={name:"eye",theme:"outline",icon:''},fs={name:"file",theme:"fill",icon:''},Is={name:"file",theme:"outline",icon:''},Hu={name:"filter",theme:"fill",icon:''},os={name:"form",theme:"outline",icon:''},Ri={name:"info-circle",theme:"fill",icon:''},Ys={name:"exclamation-circle",theme:"outline",icon:''},Ti={name:"info-circle",theme:"outline",icon:''},Zc={name:"left",theme:"outline",icon:''},el={name:"loading",theme:"outline",icon:''},Rl={name:"menu-fold",theme:"outline",icon:''},Qa={name:"menu-unfold",theme:"outline",icon:''},io={name:"paper-clip",theme:"outline",icon:''},Oc={name:"question-circle",theme:"outline",icon:''},A1={name:"rotate-right",theme:"outline",icon:''},R1={name:"right",theme:"outline",icon:''},yt={name:"search",theme:"outline",icon:''},rc={name:"star",theme:"fill",icon:''},u4={name:"swap",theme:"outline",icon:''},d4={name:"swap-right",theme:"outline",icon:''},Yp={name:"up",theme:"outline",icon:''},Th={name:"rotate-left",theme:"outline",icon:''},w4={name:"vertical-align-top",theme:"outline",icon:''},u0={name:"zoom-in",theme:"outline",icon:''},f0={name:"zoom-out",theme:"outline",icon:''},N4={name:"upload",theme:"outline",icon:''}},4141:(Rt,De,a)=>{a.d(De,{MS:()=>K,UT:()=>L,WR:()=>M,bl:()=>s});var t=a(2081),s=new t.DX,m=new WeakMap;function e(A){var I=m.get(A);return I||m.set(A,I={vars:new Set,dep:(0,t.yN)()}),I}function M(A){e(A).vars.forEach(function(I){return I.forgetCache(A)})}function K(A){e(A).vars.forEach(function(I){return I.attachCache(A)})}function L(A){var I=new Set,w=new Set,F=function(V){if(arguments.length>0){if(A!==V){A=V,I.forEach(function(J){e(J).dep.dirty(F),function j(A){A.broadcastWatches&&A.broadcastWatches()}(J)});var x=Array.from(w);w.clear(),x.forEach(function(J){return J(A)})}}else{var oe=s.getValue();oe&&(X(oe),e(oe).dep(F))}return A};F.onNextChange=function(V){return w.add(V),function(){w.delete(V)}};var X=F.attachCache=function(V){return I.add(V),e(V).vars.add(F),F};return F.forgetCache=function(V){return I.delete(V)},F}},9471:(Rt,De,a)=>{a.d(De,{a:()=>L});var t=a(4626),s=a(9860),m=a(4229),e=a(6108),M=a(4183),K=a(1367);function L(w,F,X,V){var x=F.data,oe=(0,t.Tt)(F,["data"]),J=X.data,Ee=(0,t.Tt)(X,["data"]);return(0,s.A)(oe,Ee)&&j((0,m.Vn)(w).selectionSet,x,J,{fragmentMap:(0,e.JG)((0,m.zK)(w)),variables:V})}function j(w,F,X,V){if(F===X)return!0;var x=new Set;return w.selections.every(function(oe){if(x.has(oe)||(x.add(oe),!(0,M.MS)(oe,V.variables))||A(oe))return!0;if((0,K.dt)(oe)){var J=(0,K.ue)(oe),Ee=F&&F[J],Oe=X&&X[J],pe=oe.selectionSet;if(!pe)return(0,s.A)(Ee,Oe);var Ie=Array.isArray(Ee),ve=Array.isArray(Oe);if(Ie!==ve)return!1;if(Ie&&ve){var fe=Ee.length;if(Oe.length!==fe)return!1;for(var Y=0;Y{a.d(De,{C:()=>w});var t=a(1404),s=a(7994),m=a(4626),M=a(4229);function j(F,X){return X?X(F):s.c.of()}function A(F){return"function"==typeof F?new w(F):F}function I(F){return F.request.length<=1}var w=function(){function F(X){X&&(this.request=X)}return F.empty=function(){return new F(function(){return s.c.of()})},F.from=function(X){return 0===X.length?F.empty():X.map(A).reduce(function(V,x){return V.concat(x)})},F.split=function(X,V,x){var Ee,oe=A(V),J=A(x||new F(j));return Ee=I(oe)&&I(J)?new F(function(Oe){return X(Oe)?oe.request(Oe)||s.c.of():J.request(Oe)||s.c.of()}):new F(function(Oe,pe){return X(Oe)?oe.request(Oe,pe)||s.c.of():J.request(Oe,pe)||s.c.of()}),Object.assign(Ee,{left:oe,right:J})},F.execute=function(X,V){return X.request(function e(F,X){var V=(0,m.Cl)({},F);return Object.defineProperty(X,"setContext",{enumerable:!1,value:function(J){V=(0,m.Cl)((0,m.Cl)({},V),"function"==typeof J?J(V):J)}}),Object.defineProperty(X,"getContext",{enumerable:!1,value:function(){return(0,m.Cl)({},V)}}),X}(V.context,function K(F){var X={variables:F.variables||{},extensions:F.extensions||{},operationName:F.operationName,query:F.query};return X.operationName||(X.operationName="string"!=typeof X.query?(0,M.n4)(X.query)||void 0:""),X}(function L(F){for(var X=["query","operationName","variables","extensions","context"],V=0,x=Object.keys(F);V{a.d(De,{A:()=>M,V:()=>K});var t=a(9055),s=a(6476),m=new WeakSet;function e(L){L.size<=(L.max||-1)||m.has(L)||(m.add(L),setTimeout(function(){L.clean(),m.delete(L)},100))}var M=function(L,j){var A=new t.l(L,j);return A.set=function(I,w){var F=t.l.prototype.set.call(this,I,w);return e(this),F},A},K=function(L,j){var A=new s.C(L,j);return A.set=function(I,w){var F=s.C.prototype.set.call(this,I,w);return e(this),F},A}},8782:(Rt,De,a)=>{a.d(De,{D_:()=>e,cM:()=>K,ep:()=>M,tQ:()=>L});var t=a(4626),s=a(2151),m={};function e(Ee,Oe){m[Ee]=Oe}var M=!1!==globalThis.__DEV__?function A(){var Ee,Oe,pe,Ie,ve;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(Oe){var pe=Oe[0];return[pe,s.v[pe]||Oe[1]]})),sizes:(0,t.Cl)({print:null===(Ee=m.print)||void 0===Ee?void 0:Ee.call(m),parser:null===(Oe=m.parser)||void 0===Oe?void 0:Oe.call(m),canonicalStringify:null===(pe=m.canonicalStringify)||void 0===pe?void 0:pe.call(m),links:J(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:x(this.queryManager.documentTransform)}},null===(ve=(Ie=this.cache).getMemoryInternals)||void 0===ve?void 0:ve.call(Ie))}}:void 0,K=!1!==globalThis.__DEV__?function w(){var Ee=this.config.fragments;return(0,t.Cl)((0,t.Cl)({},I.apply(this)),{addTypenameDocumentTransform:x(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:X(this.storeReader.executeSelectionSet),executeSubSelectedArray:X(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:X(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:X(Ee?.findFragmentSpreads),lookup:X(Ee?.lookup),transform:X(Ee?.transform)}})}:void 0,L=!1!==globalThis.__DEV__?I:void 0;function I(){return{cache:{fragmentQueryDocuments:X(this.getFragmentDoc)}}}function X(Ee){return function F(Ee){return!!Ee&&"dirtyKey"in Ee}(Ee)?Ee.size:void 0}function V(Ee){return null!=Ee}function x(Ee){return oe(Ee).map(function(Oe){return{cache:Oe}})}function oe(Ee){return Ee?(0,t.fX)((0,t.fX)([X(Ee?.performWork)],oe(Ee?.left),!0),oe(Ee?.right),!0).filter(V):[]}function J(Ee){var Oe;return Ee?(0,t.fX)((0,t.fX)([null===(Oe=Ee?.getMemoryInternals)||void 0===Oe?void 0:Oe.call(Ee)],J(Ee?.left),!0),J(Ee?.right),!0).filter(V):[]}},2151:(Rt,De,a)=>{a.d(De,{v:()=>e});var t=a(4626),s=a(1404),m=Symbol.for("apollo.cacheSize"),e=(0,t.Cl)({},s.Sf[m])},7715:(Rt,De,a)=>{a.d(De,{E:()=>s,c:()=>t});var t=Array.isArray;function s(m){return Array.isArray(m)&&m.length>0}},6500:(Rt,De,a)=>{a.d(De,{En:()=>e,et:()=>m,ol:()=>M,uJ:()=>K});var t=a(1404),s="ReactNative"==(0,t.no)(function(){return navigator.product}),m="function"==typeof WeakMap&&!(s&&!global.HermesInternal),e="function"==typeof WeakSet,M="function"==typeof Symbol&&"function"==typeof Symbol.for,K=M&&Symbol.asyncIterator;(0,t.no)(function(){return window.document.createElement}),(0,t.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},2130:(Rt,De,a)=>{a.d(De,{M:()=>e});var M,t=a(2170),s=a(2151),m=a(8782),e=Object.assign(function(A){return JSON.stringify(A,K)},{reset:function(){M=new t.V(s.v.canonicalStringify||1e3)}});function K(j,A){if(A&&"object"==typeof A){var I=Object.getPrototypeOf(A);if(I===Object.prototype||null===I){var w=Object.keys(A);if(w.every(L))return A;var F=JSON.stringify(w),X=M.get(F);if(!X){w.sort();var V=JSON.stringify(w);X=M.get(V)||w,M.set(F,X),M.set(V,X)}var x=Object.create(I);return X.forEach(function(oe){x[oe]=A[oe]}),x}}return A}function L(j,A,I){return 0===A||I[A-1]<=j}!1!==globalThis.__DEV__&&(0,m.D_)("canonicalStringify",function(){return M.size}),e.reset()},4246:(Rt,De,a)=>{a.d(De,{m:()=>s});var t=Object.prototype.toString;function s(e){return m(e)}function m(e,M){switch(t.call(e)){case"[object Array]":if((M=M||new Map).has(e))return M.get(e);var K=e.slice(0);return M.set(e,K),K.forEach(function(j,A){K[A]=m(j,M)}),K;case"[object Object]":if((M=M||new Map).has(e))return M.get(e);var L=Object.create(Object.getPrototypeOf(e));return M.set(e,L),Object.keys(e).forEach(function(j){L[j]=m(e[j],M)}),L;default:return e}}},120:(Rt,De,a)=>{function t(){for(var s=[],m=0;mt})},9977:(Rt,De,a)=>{a.d(De,{v:()=>s});var t=new Map;function s(m){var e=t.get(m)||1;return t.set(m,e+1),"".concat(m,":").concat(e,":").concat(Math.random().toString(36).slice(2))}},1115:(Rt,De,a)=>{a.d(De,{D9:()=>e,IM:()=>M,ZI:()=>L});var t=a(4626),s=a(1181),m=Object.prototype.hasOwnProperty;function e(){for(var j=[],A=0;A1)for(var w=new L,F=1;F{function t(m){return null!==m&&"object"==typeof m}a.d(De,{U:()=>t})},1687:(Rt,De,a)=>{a.d(De,{p:()=>s});var t=a(9977);function s(m,e){void 0===e&&(e=0);var M=(0,t.v)("stringifyForDisplay");return JSON.stringify(m,function(K,L){return void 0===L?M:L},e).split(JSON.stringify(M)).join("")}},1404:(Rt,De,a)=>{a.d(De,{Sf:()=>st,V1:()=>Tt,no:()=>xt,vA:()=>en});var t=function(bt,At){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Et,St){Et.__proto__=St}||function(Et,St){for(var Wt in St)Object.prototype.hasOwnProperty.call(St,Wt)&&(Et[Wt]=St[Wt])})(bt,At)},E="Invariant Violation",S=Object.setPrototypeOf,R=void 0===S?function(bt,At){return bt.__proto__=At,bt}:S,U=function(bt){function At(Et){void 0===Et&&(Et=E);var St=bt.call(this,"number"==typeof Et?E+": "+Et+" (see https://github.com/apollographql/invariant-packages)":Et)||this;return St.framesToPop=1,St.name=E,R(St,At.prototype),St}return function s(bt,At){if("function"!=typeof At&&null!==At)throw new TypeError("Class extends value "+String(At)+" is not a constructor or null");function Et(){this.constructor=bt}t(bt,At),bt.prototype=null===At?Object.create(At):(Et.prototype=At.prototype,new Et)}(At,bt),At}(Error);function se(bt,At){if(!bt)throw new U(At)}var bt,Be=["debug","log","warn","error","silent"],Pt=Be.indexOf("log");function gt(bt){return function(){if(Be.indexOf(bt)>=Pt)return(console[bt]||console.log).apply(console,arguments)}}(bt=se||(se={})).debug=gt("debug"),bt.log=gt("log"),bt.warn=gt("warn"),bt.error=gt("error");var zt=a(560);function xt(bt){try{return bt()}catch{}}const st=xt(function(){return globalThis})||xt(function(){return window})||xt(function(){return self})||xt(function(){return global})||xt(function(){return xt.constructor("return this")()});var Ct=a(1687);function It(bt){return function(At){for(var Et=[],St=1;St"}}function fn(bt,At){if(void 0===At&&(At=[]),bt)return st[Ut]&&st[Ut](bt,At.map(Lt))}function $n(bt,At){if(void 0===At&&(At=[]),bt)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:zt.r,message:bt,args:At.map(Lt)})))}globalThis},8926:(Rt,De,a)=>{a.d(De,{c:()=>A});var t=a(4420),s=a(6500),m=a(4229),e=a(1404),M=a(9055),K=a(2081),L=a(2151);function j(I){return I}var A=function(){function I(w,F){void 0===F&&(F=Object.create(null)),this.resultCache=s.En?new WeakSet:new Set,this.transform=w,F.getCacheKey&&(this.getCacheKey=F.getCacheKey),this.cached=!1!==F.cache,this.resetCache()}return I.prototype.getCacheKey=function(w){return[w]},I.identity=function(){return new I(j,{cache:!1})},I.split=function(w,F,X){return void 0===X&&(X=I.identity()),Object.assign(new I(function(V){return(w(V)?F:X).transformDocument(V)},{cache:!1}),{left:F,right:X})},I.prototype.resetCache=function(){var w=this;if(this.cached){var F=new t.b(s.et);this.performWork=(0,K.LV)(I.prototype.performWork.bind(this),{makeCacheKey:function(X){var V=w.getCacheKey(X);if(V)return(0,e.V1)(Array.isArray(V),68),F.lookupArray(V)},max:L.v["documentTransform.cache"],cache:M.l})}},I.prototype.performWork=function(w){return(0,m.sw)(w),this.transform(w)},I.prototype.transformDocument=function(w){if(this.resultCache.has(w))return w;var F=this.performWork(w);return this.resultCache.add(F),F},I.prototype.concat=function(w){var F=this;return Object.assign(new I(function(X){return w.transformDocument(F.transformDocument(X))},{cache:!1}),{left:this,right:w})},I}()},4183:(Rt,De,a)=>{a.d(De,{MS:()=>m,d8:()=>L,f2:()=>j});var t=a(1404),s=a(8540);function m(w,F){var X=w.directives;return!X||!X.length||function I(w){var F=[];return w&&w.length&&w.forEach(function(X){if(function A(w){var F=w.name.value;return"skip"===F||"include"===F}(X)){var V=X.arguments,x=X.name.value;(0,t.V1)(V&&1===V.length,70,x);var oe=V[0];(0,t.V1)(oe.name&&"if"===oe.name.value,71,x);var J=oe.value;(0,t.V1)(J&&("Variable"===J.kind||"BooleanValue"===J.kind),72,x),F.push({directive:X,ifArgument:oe})}}),F}(X).every(function(V){var x=V.directive,oe=V.ifArgument,J=!1;return"Variable"===oe.value.kind?(0,t.V1)(void 0!==(J=F&&F[oe.value.name.value]),69,x.name.value):J=oe.value.value,"skip"===x.name.value?!J:J})}function L(w,F,X){var V=new Set(w),x=V.size;return(0,s.YR)(F,{Directive:function(oe){if(V.delete(oe.name.value)&&(!X||!V.size))return s.sP}}),X?!V.size:V.size{a.d(De,{HQ:()=>M,JG:()=>e,ct:()=>m});var t=a(4626),s=a(1404);function m(K,L){var j=L,A=[];return K.definitions.forEach(function(w){if("OperationDefinition"===w.kind)throw(0,s.vA)(73,w.operation,w.name?" named '".concat(w.name.value,"'"):"");"FragmentDefinition"===w.kind&&A.push(w)}),typeof j>"u"&&((0,s.V1)(1===A.length,74,A.length),j=A[0].name.value),(0,t.Cl)((0,t.Cl)({},K),{definitions:(0,t.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:j}}]}}],K.definitions,!0)})}function e(K){void 0===K&&(K=[]);var L={};return K.forEach(function(j){L[j.name.value]=j}),L}function M(K,L){switch(K.kind){case"InlineFragment":return K;case"FragmentSpread":var j=K.name.value;if("function"==typeof L)return L(j);var A=L&&L[j];return(0,s.V1)(A,75,j),A||null;default:return null}}},4229:(Rt,De,a)=>{a.d(De,{AT:()=>L,E4:()=>j,Vn:()=>A,Vu:()=>e,n4:()=>M,sw:()=>m,wY:()=>I,zK:()=>K});var t=a(1404),s=a(1367);function m(w){(0,t.V1)(w&&"Document"===w.kind,76);var F=w.definitions.filter(function(X){return"FragmentDefinition"!==X.kind}).map(function(X){if("OperationDefinition"!==X.kind)throw(0,t.vA)(77,X.kind);return X});return(0,t.V1)(F.length<=1,78,F.length),w}function e(w){return m(w),w.definitions.filter(function(F){return"OperationDefinition"===F.kind})[0]}function M(w){return w.definitions.filter(function(F){return"OperationDefinition"===F.kind&&!!F.name}).map(function(F){return F.name.value})[0]||null}function K(w){return w.definitions.filter(function(F){return"FragmentDefinition"===F.kind})}function L(w){var F=e(w);return(0,t.V1)(F&&"query"===F.operation,79),F}function j(w){(0,t.V1)("Document"===w.kind,80),(0,t.V1)(w.definitions.length<=1,81);var F=w.definitions[0];return(0,t.V1)("FragmentDefinition"===F.kind,82),F}function A(w){m(w);for(var F,X=0,V=w.definitions;X{a.d(De,{y:()=>K});var M,t=a(3246),s=a(2170),m=a(2151),e=a(8782),K=Object.assign(function(L){var j=M.get(L);return j||(j=(0,t.y)(L),M.set(L,j)),j},{reset:function(){M=new s.A(m.v.print||2e3)}});K.reset(),!1!==globalThis.__DEV__&&(0,e.D_)("print",function(){return M?M.size:0})},1367:(Rt,De,a)=>{a.d(De,{A_:()=>K,D$:()=>Y,Ii:()=>Ee,J:()=>J,Kc:()=>L,MB:()=>ve,WU:()=>M,dt:()=>z,kd:()=>Z,o5:()=>Ie,ue:()=>fe});var t=a(1404),s=a(1181),m=a(6108),e=a(2130);function M(he){return{__ref:String(he)}}function K(he){return!(!he||"object"!=typeof he||"string"!=typeof he.__ref)}function L(he){return(0,s.U)(he)&&"Document"===he.kind&&Array.isArray(he.definitions)}function J(he,E,S,R){if(function I(he){return"IntValue"===he.kind}(S)||function w(he){return"FloatValue"===he.kind}(S))he[E.value]=Number(S.value);else if(function A(he){return"BooleanValue"===he.kind}(S)||function j(he){return"StringValue"===he.kind}(S))he[E.value]=S.value;else if(function X(he){return"ObjectValue"===he.kind}(S)){var U={};S.fields.map(function(Be){return J(U,Be.name,Be.value,R)}),he[E.value]=U}else if(function F(he){return"Variable"===he.kind}(S))he[E.value]=(R||{})[S.name.value];else if(function V(he){return"ListValue"===he.kind}(S))he[E.value]=S.values.map(function(Be){var Pt={};return J(Pt,E,Be,R),Pt[E.value]});else if(function x(he){return"EnumValue"===he.kind}(S))he[E.value]=S.value;else{if(!function oe(he){return"NullValue"===he.kind}(S))throw(0,t.vA)(84,E.value,S.kind);he[E.value]=null}}function Ee(he,E){var S=null;he.directives&&(S={},he.directives.forEach(function(U){S[U.name.value]={},U.arguments&&U.arguments.forEach(function(se){return J(S[U.name.value],se.name,se.value,E)})}));var R=null;return he.arguments&&he.arguments.length&&(R={},he.arguments.forEach(function(U){return J(R,U.name,U.value,E)})),Ie(he.name.value,R,S)}var Oe=["connection","include","skip","client","rest","export","nonreactive"],pe=e.M,Ie=Object.assign(function(he,E,S){if(E&&S&&S.connection&&S.connection.key){if(S.connection.filter&&S.connection.filter.length>0){var R=S.connection.filter?S.connection.filter:[];R.sort();var U={};return R.forEach(function(Pt){U[Pt]=E[Pt]}),"".concat(S.connection.key,"(").concat(pe(U),")")}return S.connection.key}var se=he;if(E){var Be=pe(E);se+="(".concat(Be,")")}return S&&Object.keys(S).forEach(function(Pt){-1===Oe.indexOf(Pt)&&(S[Pt]&&Object.keys(S[Pt]).length?se+="@".concat(Pt,"(").concat(pe(S[Pt]),")"):se+="@".concat(Pt))}),se},{setStringify:function(he){var E=pe;return pe=he,E}});function ve(he,E){if(he.arguments&&he.arguments.length){var S={};return he.arguments.forEach(function(R){return J(S,R.name,R.value,E)}),S}return null}function fe(he){return he.alias?he.alias.value:he.name.value}function Y(he,E,S){for(var R,U=0,se=E.selections;U{a.d(De,{XY:()=>x,er:()=>Y,iz:()=>V,zc:()=>fe});var t=a(4626),s=a(1404),m=a(1955),e=a(8540),M=a(4229),K=a(1367),L=a(6108),j=a(7715),A={kind:m.b.FIELD,name:{kind:m.b.NAME,value:"__typename"}};function I(z,Z){return!z||z.selectionSet.selections.every(function(he){return he.kind===m.b.FRAGMENT_SPREAD&&I(Z[he.name.value],Z)})}function w(z){return I((0,M.Vu)(z)||(0,M.E4)(z),(0,L.JG)((0,M.zK)(z)))?null:z}function X(z){var Z=new Map;return function(E){void 0===E&&(E=z);var S=Z.get(E);return S||Z.set(E,S={variables:new Set,fragmentSpreads:new Set}),S}}function V(z,Z){(0,M.sw)(Z);for(var he=X(""),E=X(""),S=function(It){for(var Tt=0,en=void 0;Tt=0;--U)Z.definitions[U].kind===m.b.OPERATION_DEFINITION&&++R;var se=function F(z){var Z=new Map,he=new Map;return z.forEach(function(E){E&&(E.name?Z.set(E.name,E):E.test&&he.set(E.test,E))}),function(E){var S=Z.get(E.name.value);return!S&&he.size&&he.forEach(function(R,U){U(E)&&(S=R)}),S}}(z),Be=function(It){return(0,j.E)(It)&&It.map(se).some(function(Tt){return Tt&&Tt.remove})},Pt=new Map,gt=!1,wt={enter:function(It){if(Be(It.directives))return gt=!0,null}},Le=(0,e.YR)(Z,{Field:wt,InlineFragment:wt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(It,Tt,en,Ut,Lt){var fn=S(Lt);fn&&fn.variables.add(It.name.value)}},FragmentSpread:{enter:function(It,Tt,en,Ut,Lt){if(Be(It.directives))return gt=!0,null;var fn=S(Lt);fn&&fn.fragmentSpreads.add(It.name.value)}},FragmentDefinition:{enter:function(It,Tt,en,Ut){Pt.set(JSON.stringify(Ut),It)},leave:function(It,Tt,en,Ut){return It===Pt.get(JSON.stringify(Ut))?It:R>0&&It.selectionSet.selections.every(function(fn){return fn.kind===m.b.FIELD&&"__typename"===fn.name.value})?(E(It.name.value).removed=!0,gt=!0,null):void 0}},Directive:{leave:function(It){if(se(It))return gt=!0,null}}});if(!gt)return Z;var zt=function(It){return It.transitiveVars||(It.transitiveVars=new Set(It.variables),It.removed||It.fragmentSpreads.forEach(function(Tt){zt(E(Tt)).transitiveVars.forEach(function(en){It.transitiveVars.add(en)})})),It},xt=new Set;Le.definitions.forEach(function(It){It.kind===m.b.OPERATION_DEFINITION?zt(he(It.name&&It.name.value)).fragmentSpreads.forEach(function(Tt){xt.add(Tt)}):It.kind===m.b.FRAGMENT_DEFINITION&&0===R&&!E(It.name.value).removed&&xt.add(It.name.value)}),xt.forEach(function(It){zt(E(It)).fragmentSpreads.forEach(function(Tt){xt.add(Tt)})});var Ct={enter:function(It){if(function(It){return!(xt.has(It)&&!E(It).removed)}(It.name.value))return null}};return w((0,e.YR)(Le,{FragmentSpread:Ct,FragmentDefinition:Ct,OperationDefinition:{leave:function(It){if(It.variableDefinitions){var Tt=zt(he(It.name&&It.name.value)).transitiveVars;if(Tt.size{a.d(De,{r:()=>t});var t="3.11.1"},9894:(Rt,De,a)=>{a.d(De,{d:()=>Ie,s:()=>R});var t=a(1413),s=a(8359),m=a(2806),e=a(983),M=a(3953),K=a(1397),L=a(6977);const j=M.YHP,I=Symbol("__destroy"),w=Symbol("__decoratorApplied");function F(se){return"string"==typeof se?Symbol(`__destroy__${se}`):I}function V(se,Be){se[Be]||(se[Be]=new t.B)}function x(se,Be){se[Be]&&(se[Be].next(),se[Be].complete(),se[Be]=null)}function oe(se){se instanceof s.yU&&se.unsubscribe()}function Ee(se,Be){return function(){if(se&&se.call(this),x(this,F()),Be.arrayName&&function J(se){Array.isArray(se)&&se.forEach(oe)}(this[Be.arrayName]),Be.checkProperties)for(const Pt in this)Be.blackList?.includes(Pt)||oe(this[Pt])}}function Ie(se={}){return Be=>{!function A(se){return!!se[j]}(Be)?function Oe(se,Be){se.prototype.ngOnDestroy=Ee(se.prototype.ngOnDestroy,Be)}(Be,se):function pe(se,Be){const Pt=se.\u0275pipe;Pt.onDestroy=Ee(Pt.onDestroy,Be)}(Be,se),function X(se){se.prototype[w]=!0}(Be)}}const ve=7,fe=Symbol("CheckerHasBeenSet");function Z(se){const Be=M.JZv.Zone;return Be&&"function"==typeof Be.root?.run?Be.root.run(se):se()}const E=!1;function R(se,Be){return Pt=>{const gt=F(Be);"string"==typeof Be?function S(se,Be,Pt){const gt=se[Be];if(E&&"function"!=typeof gt)throw new Error(`${se.constructor.name} is using untilDestroyed but doesn't implement ${Be}`);V(se,Pt),se[Be]=function(){gt.apply(this,arguments),x(this,Pt),se[Be]=gt}}(se,Be,gt):(E&&function U(se){const Be=Object.getPrototypeOf(se);if(!(w in Be))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(se),V(se,gt));const wt=se[gt];return E&&function Y(se,Be){se[fe]||function z(){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)}()||(Z(()=>(0,m.H)(Promise.resolve()).pipe((0,K.Z)(()=>{let Pt;try{Pt=(0,M.xtB)(se)}catch{Pt=null}const gt=Pt?.lView;if(null==gt)return e.w;const wt=gt[ve]||(gt[ve]=[]),Le=new t.B;return wt.push(function(){Z(()=>{Le.next(),Le.complete()})}),Le}),(0,K.Z)(()=>Promise.resolve())).subscribe(()=>{(Be.observed??Be.observers.length>0)&&console.warn(function he(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[fe]=!0)}(se,wt),Pt.pipe((0,L.Q)(wt))}}},1774:(Rt,De,a)=>{a.d(De,{L9:()=>E,Nj:()=>he});var t=a(3953),s=a(4402),m=a(4572),e=a(2806),M=a(1985),K=a(2771),L=a(1203),j=a(8359),A=a(3294),I=a(8141),w=a(5558);let X=(()=>{class S{static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275prov=t.jDH({token:S,factory:()=>function F(S){return S instanceof t.SKi}((0,t.WQX)(t.SKi))?new x:(0,t.WQX)(V),providedIn:"root"})}return S})(),V=(()=>{class S extends X{constructor(U){super(),this.appRef=U,this.isScheduled=!1}schedule(){this.isScheduled||(this.isScheduled=!0,requestAnimationFrame(()=>{this.appRef.tick(),this.isScheduled=!1}))}static#e=this.\u0275fac=function(se){return new(se||S)(t.KVO(t.o8S))};static#t=this.\u0275prov=t.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();class x extends X{schedule(){}}let oe=(()=>{class S{constructor(U,se){this.cdRef=U,this.tickScheduler=se}schedule(){this.cdRef.markForCheck(),this.tickScheduler.schedule()}static#e=this.\u0275fac=function(se){return new(se||S)(t.KVO(t.gRc),t.KVO(X))};static#t=this.\u0275prov=t.jDH({token:S,factory:S.\u0275fac})}return S})();function Y(S){const R=function Ee(S){return R=>S[R.type]?.(R)}(S),U=new K.m(1);return{nextPotentialObservable(se){U.next(se)},handlePotentialObservableChanges:()=>U.pipe((0,A.F)(),function z(){return(0,L.F)((0,w.n)(S=>{const R=function Oe(S){return(0,s.A)(S)?S:function Ie(S){return function ve(S){return!!S&&"object"==typeof S&&!Array.isArray(S)}(S)&&Object.keys(S).length>0&&Object.values(S).every(s.A)}(S)?(0,m.z)(function fe(S){return Object.keys(S).reduce((R,U)=>({...R,[U]:S[U].pipe((0,A.F)())}),{})}(S)):function pe(S){return"function"==typeof S?.then}(S)?(0,e.H)(S):new M.c(R=>{R.next(S)})}(S);let U=!0,se=!0;return new M.c(Be=>{const Pt=(0,t.O8t)(()=>R.subscribe({next(gt){Be.next({type:"next",value:gt,reset:U,synchronous:se}),U=!1},error(gt){Be.next({type:"error",error:gt,reset:U,synchronous:se}),U=!1},complete(){Be.next({type:"complete",reset:U,synchronous:se}),U=!1}}));return U&&(Be.next({type:"suspense",reset:U,synchronous:!0}),U=!1),se=!1,Pt})}))}(),(0,A.F)(Z),(0,I.M)(R))}}function Z(S,R){return S.type===R.type&&S.reset===R.reset&&("next"===R.type?S.value===R.value:"error"!==R.type||S.error===R.error)}let he=(()=>{class S{set ngrxLet(U){this.renderEventManager.nextPotentialObservable(U)}constructor(U,se,Be,Pt){this.mainTemplateRef=U,this.viewContainerRef=se,this.errorHandler=Be,this.renderScheduler=Pt,this.isMainViewCreated=!1,this.isSuspenseViewCreated=!1,this.viewContext={$implicit:void 0,ngrxLet:void 0,error:void 0,complete:!1},this.renderEventManager=Y({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 j.yU}static ngTemplateContextGuard(U,se){return!0}ngOnInit(){this.subscription.add(this.renderEventManager.handlePotentialObservableChanges().subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}renderMainView(U){this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!1,this.viewContainerRef.clear()),this.isMainViewCreated||(this.isMainViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.mainTemplateRef,this.viewContext)),U||this.renderScheduler.schedule()}renderSuspenseView(){this.isMainViewCreated&&(this.isMainViewCreated=!1,this.viewContainerRef.clear()),this.suspenseTemplateRef&&!this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.suspenseTemplateRef))}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(t.zcH),t.rXU(oe))};static#t=this.\u0275dir=t.FsC({type:S,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet",suspenseTemplateRef:[0,"ngrxLetSuspenseTpl","suspenseTemplateRef"]},standalone:!0,features:[t.Jv_([oe])]})}return S})(),E=(()=>{class S{constructor(U){this.errorHandler=U,this.renderScheduler=function J(){return new oe((0,t.WQX)(t.gRc),(0,t.WQX)(X))}(),this.renderEventManager=Y({suspense:se=>this.setRenderedValue(void 0,se.synchronous),next:se=>this.setRenderedValue(se.value,se.synchronous),error:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous),this.errorHandler.handleError(se.error)},complete:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous)}}),this.subscription=this.renderEventManager.handlePotentialObservableChanges().subscribe()}transform(U){return this.renderEventManager.nextPotentialObservable(U),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}setRenderedValue(U,se){U!==this.renderedValue&&(this.renderedValue=U,se||this.renderScheduler.schedule())}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(t.zcH,16))};static#t=this.\u0275pipe=t.EJ8({name:"ngrxPush",type:S,pure:!1,standalone:!0})}return S})()},8524:(Rt,De,a)=>{a.d(De,{Nc:()=>ht,PU:()=>Pe,aF:()=>_e,ac:()=>te,ch:()=>ie,cm:()=>cn,hL:()=>fn,qy:()=>Vt});var t=a(3953),s=a(9417),m=a(4402),e=a(7673),M=a(7786),K=a(1985),L=a(1413),j=a(3294),A=a(6354),I=a(9172),w=a(152),F=a(5964),X=a(5558),V=a(6697),x=a(8141),oe=a(177),J=a(345);const Ee=["container"];function Oe(Ge,ue){}const pe=["*"];function Ie(Ge,ue){1&Ge&&t.nrm(0,"formly-field",1),2&Ge&&t.Y8G("field",ue.$implicit)}const ve=["fieldComponent"];function Y(Ge,ue,q){if(ue.id)return ue.id;let ee=ue.type;return!ee&&ue.template&&(ee="template"),ee instanceof t.ZUJ&&(ee=ee.prototype.constructor.name),[Ge,ee,ue.key,q].join("_")}function z(Ge){return!se(Ge.key)&&""!==Ge.key&&(!Array.isArray(Ge.key)||Ge.key.length>0)}function Z(Ge){if(!z(Ge))return[];if(Ge._keyPath?.key!==Ge.key){let ue=[];if("string"==typeof Ge.key){const q=-1===Ge.key.indexOf("[")?Ge.key:Ge.key.replace(/\[(\w+)\]/g,".$1");ue=-1!==q.indexOf(".")?q.split("."):[q]}else ue=Array.isArray(Ge.key)?Ge.key.slice(0):[`${Ge.key}`];st(Ge,"_keyPath",{key:Ge.key,path:ue})}return Ge._keyPath.path.slice(0)}const he=["required","pattern","minLength","maxLength","min","max"];function E(Ge,ue){let q=Z(Ge);if(0===q.length)return;let ee=Ge;for(;ee.parent;)ee=ee.parent,q=[...Z(ee),...q];if(void 0===ue&&Ge.resetOnHide){const Xe=q.pop();delete q.reduce((at,Ot)=>at[Ot]||{},ee.model)[Xe]}else!function S(Ge,ue,q){for(let ee=0;ee{for(const ee in q)se(Ge[ee])||Pt(Ge[ee])?Ge[ee]=xt(q[ee]):wt(Ge[ee],q[ee])&&U(Ge[ee],q[ee])}),Ge}function se(Ge){return null==Ge}function Be(Ge){return void 0===Ge}function Pt(Ge){return""===Ge}function gt(Ge){return"function"==typeof Ge}function wt(Ge,ue){return Le(Ge)&&Le(ue)&&Object.getPrototypeOf(Ge)===Object.getPrototypeOf(ue)&&!(Array.isArray(Ge)||Array.isArray(ue))}function Le(Ge){return null!=Ge&&"object"==typeof Ge}function xt(Ge){if(!Le(Ge)||(0,m.A)(Ge)||Ge instanceof t.C4Q||Ge.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(Ge.constructor.name))return Ge;if(Ge instanceof Set)return new Set(Ge);if(Ge instanceof Map)return new Map(Ge);if(Ge instanceof Uint8Array)return new Uint8Array(Ge);if(Ge instanceof Uint16Array)return new Uint16Array(Ge);if(Ge instanceof Uint32Array)return new Uint32Array(Ge);if(Ge._isAMomentObject&>(Ge.clone))return Ge.clone();if(Ge instanceof s.EL)return null;if(Ge instanceof Date)return new Date(Ge.getTime());if(Array.isArray(Ge))return Ge.slice(0).map(ee=>xt(ee));const ue=Object.getPrototypeOf(Ge);let q=Object.create(ue);return q=Object.setPrototypeOf(q,ue),Object.keys(Ge).reduce((ee,Xe)=>{const dt=Object.getOwnPropertyDescriptor(Ge,Xe);return dt.get?Object.defineProperty(ee,Xe,dt):ee[Xe]=xt(Ge[Xe]),ee},q)}function st(Ge,ue,q){Object.defineProperty(Ge,ue,{enumerable:!1,writable:!0,configurable:!0}),Ge[ue]=q}function Ct(Ge,ue,q){let ee=[];const Xe=()=>{ee.forEach(at=>at()),ee=[]},dt=It(Ge,ue,({firstChange:at,currentValue:Ot})=>{!at&&q(),Xe(),Le(Ot)&&"Object"===Ot.constructor.name&&Object.keys(Ot).forEach(Qe=>{ee.push(Ct(Ge,[...ue,Qe],q))})});return()=>{dt.unsubscribe(),Xe()}}function It(Ge,ue,q){Ge._observers||st(Ge,"_observers",{});let ee=Ge;for(let Ot=0;Ot=1&&Le(ee))){const{enumerable:Ot}=Object.getOwnPropertyDescriptor(ee,Xe)||{enumerable:!0};Object.defineProperty(ee,Xe,{enumerable:Ot,configurable:!0,get:()=>at.value,set:Qe=>{if(Qe!==at.value){const be=at.value;at.value=Qe,at.onChange.forEach(Je=>Je({previousValue:be,currentValue:Qe,firstChange:!1}))}}})}return{setValue(Ot,Qe=!0){if(Ot===at.value)return;const be=at.value;at.value=Ot,at.onChange.forEach(Je=>{Je!==q&&Qe&&Je({previousValue:be,currentValue:Ot,firstChange:!1})})},unsubscribe(){at.onChange=at.onChange.filter(Ot=>Ot!==q),0===at.onChange.length&&delete Ge._observers[dt]}}}function Tt(Ge,ue){if(ue=Array.isArray(ue)?ue.join("."):ue,Ge.fieldGroup)for(let q=0,ee=Ge.fieldGroup.length;q{ue instanceof t.rjb?ue.injector.get(t.gRc).markForCheck():ue.markForCheck()})}function Lt(Ge){const ue=ee=>ee.hide||ee.expressions?.hide||ee.hideExpression;let q=!Ge.resetOnHide||!ue(Ge);if(!ue(Ge)&&Ge.resetOnHide){let ee=Ge.parent;for(;ee&&!ue(ee);)ee=ee.parent;q=!ee||!ue(ee)}return!q}const fn=new t.nKC("FORMLY_CONFIG");let $n=(()=>{class Ge{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError:q=>q.formControl?.invalid&&(q.formControl?.touched||q.options.parentForm?.submitted||!!q.field.validation?.show)},this.extensions={},this.presets={},this.extensionsByPriority={}}addConfig(q){q.types&&q.types.forEach(ee=>this.setType(ee)),q.validators&&q.validators.forEach(ee=>this.setValidator(ee)),q.wrappers&&q.wrappers.forEach(ee=>this.setWrapper(ee)),q.validationMessages&&q.validationMessages.forEach(ee=>this.addValidatorMessage(ee.name,ee.message)),q.extensions&&this.setSortedExtensions(q.extensions),q.extras&&(this.extras={...this.extras,...q.extras}),q.presets&&(this.presets={...this.presets,...q.presets.reduce((ee,Xe)=>({...ee,[Xe.name]:Xe.config}),{})})}setType(q){Array.isArray(q)?q.forEach(ee=>this.setType(ee)):(this.types[q.name]||(this.types[q.name]={name:q.name}),["component","extends","defaultOptions","wrappers"].forEach(ee=>{q.hasOwnProperty(ee)&&(this.types[q.name][ee]=q[ee])}))}getType(q,ee=!1){if(q instanceof t.ZUJ)return{component:q,name:q.prototype.constructor.name};if(!this.types[q]){if(ee)throw new Error(`[Formly Error] The type "${q}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(q),this.types[q]}getMergedField(q={}){const ee=this.getType(q.type);if(!ee)return;ee.defaultOptions&&U(q,ee.defaultOptions);const Xe=ee.extends&&this.getType(ee.extends).defaultOptions;Xe&&U(q,Xe),q?.optionsTypes&&q.optionsTypes.forEach(at=>{const Ot=this.getType(at).defaultOptions;Ot&&U(q,Ot)});const dt=this.resolveFieldTypeRef(q);dt?.instance?.defaultOptions&&U(q,dt.instance.defaultOptions),!q.wrappers&&ee.wrappers&&(q.wrappers=[...ee.wrappers])}resolveFieldTypeRef(q={}){const ee=this.getType(q.type);if(!ee)return null;if(!ee.component||ee._componentRef)return ee._componentRef;const{_viewContainerRef:Xe,_injector:dt}=q.options;if(!Xe||!dt)return null;const at=Xe.createComponent(ee.component,{injector:dt});st(ee,"_componentRef",at);try{at.destroy()}catch(Ot){console.error(`An error occurred while destroying the Formly component type "${q.type}"`,Ot)}return ee._componentRef}setWrapper(q){this.wrappers[q.name]=q,q.types&&q.types.forEach(ee=>{this.setTypeWrapper(ee,q.name)})}getWrapper(q){if(q instanceof t.ZUJ)return{component:q,name:q.prototype.constructor.name};if(!this.wrappers[q])throw new Error(`[Formly Error] The wrapper "${q}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[q]}setTypeWrapper(q,ee){this.types[q]||(this.types[q]={}),this.types[q].wrappers||(this.types[q].wrappers=[]),-1===this.types[q].wrappers.indexOf(ee)&&this.types[q].wrappers.push(ee)}setValidator(q){this.validators[q.name]=q}getValidator(q){if(!this.validators[q])throw new Error(`[Formly Error] The validator "${q}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[q]}addValidatorMessage(q,ee){this.messages[q]=ee}getValidatorMessage(q){return this.messages[q]}setSortedExtensions(q){q.forEach(ee=>{const Xe=ee.priority??1;this.extensionsByPriority[Xe]={...this.extensionsByPriority[Xe],[ee.name]:ee.extension}}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((ee,Xe)=>ee-Xe).reduce((ee,Xe)=>({...ee,...this.extensionsByPriority[Xe]}),{})}mergeExtendedType(q){if(!this.types[q].extends)return;const ee=this.getType(this.types[q].extends);this.types[q].component||(this.types[q].component=ee.component),this.types[q].wrappers||(this.types[q].wrappers=ee.wrappers)}}return Ge.\u0275fac=function(q){return new(q||Ge)},Ge.\u0275prov=t.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),zn=(()=>{class Ge{constructor(q,ee,Xe,dt){this.config=q,this.injector=ee,this.viewContainerRef=Xe,this.parentForm=dt}buildForm(q,ee=[],Xe,dt){this.build({fieldGroup:ee,model:Xe,form:q,options:dt})}build(q){if(!this.config.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");q.parent||this._setOptions(q),function fe(Ge,ue){const q=Ge._updateTreeValidity.bind(Ge);Ge._updateTreeValidity=()=>{},ue(),Ge._updateTreeValidity=q}(q.form,()=>{if(this._build(q),!q.parent||q.fieldArray){const ee=q.options;q.parent&&Lt(q)&&ee._hiddenFieldsForCheck?.push(q),ee.checkExpressions?.(q,!0),ee._detectChanges?.(q)}})}_build(q){if(!q)return;const ee=Object.values(this.config.extensions);ee.forEach(Xe=>Xe.prePopulate?.(q)),ee.forEach(Xe=>Xe.onPopulate?.(q)),q.fieldGroup?.forEach(Xe=>this._build(Xe)),ee.forEach(Xe=>Xe.postPopulate?.(q))}_setOptions(q){q.form=q.form||new s.gE({}),q.model=q.model||{},q.options=q.options||{};const ee=q.options;ee._viewContainerRef||st(ee,"_viewContainerRef",this.viewContainerRef),ee._injector||st(ee,"_injector",this.injector),ee.build||(ee._buildForm=()=>{console.warn("Formly: 'options._buildForm' is deprecated since v6.0, use 'options.build' instead."),this.build(q)},ee.build=(Xe=q)=>(this.build(Xe),Xe)),!ee.parentForm&&this.parentForm&&(st(ee,"parentForm",this.parentForm),It(ee,["parentForm","submitted"],({firstChange:Xe})=>{Xe||ee.detectChanges(q)}))}}return Ge.\u0275fac=function(q){return new(q||Ge)(t.KVO($n),t.KVO(t.zZn),t.KVO(t.c1b,8),t.KVO(s.j4,8))},Ge.\u0275prov=t.jDH({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();function Et(Ge,ue,q=!1){if((ue=ue||Ge.formControl)._fields||st(ue,"_fields",[]),-1===ue._fields.indexOf(Ge)&&ue._fields.push(Ge),!Ge.formControl&&ue){st(Ge,"formControl",ue),ue.setValidators(null),ue.setAsyncValidators(null),Ge.props.disabled=!!Ge.props.disabled;const Ot=It(Ge,["props","disabled"],({firstChange:Qe,currentValue:be})=>{Qe||(be?Ge.formControl.disable():Ge.formControl.enable())});ue instanceof s.MJ&&ue.registerOnDisabledChange(Ot.setValue)}if(!Ge.form||!z(Ge))return;let ee=Ge.form;const Xe=Z(Ge),dt=R(Ge);(!se(ue.value)||!se(dt))&&ue.value!==dt&&ue instanceof s.MJ&&ue.patchValue(dt);for(let Ot=0;OtWt(ue))}let Ue=(()=>{class Ge{constructor(q){this.ref=q}ngOnChanges(){this.name=this.name||"formly-group"}}return Ge.\u0275fac=function(q){return new(q||Ge)(t.rXU(t.C4Q))},Ge.\u0275dir=t.FsC({type:Ge,selectors:[["","formlyTemplate",""]],inputs:{name:[0,"formlyTemplate","name"]},features:[t.OA$]}),Ge})(),Fe=(()=>{class Ge{}return Ge.\u0275fac=function(q){return new(q||Ge)},Ge.\u0275prov=t.jDH({token:Ge,factory:Ge.\u0275fac}),Ge})(),te=(()=>{class Ge{constructor(q,ee,Xe,dt,at){this.config=q,this.renderer=ee,this._elementRef=Xe,this.hostContainerRef=dt,this.form=at,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.rjb?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(q){this.triggerHook("onChanges",q)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(q=>q.unsubscribe()),this.hooksObservers.forEach(q=>q()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(q,ee,Xe=[]){if(this.containerRef===q&&(this.resetRefs(this.field),this.containerRef.clear(),Xe=this.field?.wrappers),Xe?.length>0){const[dt,...at]=Xe,{component:Ot}=this.config.getWrapper(dt),Qe=q.createComponent(Ot);this.attachComponentRef(Qe,ee),It(Qe.instance,["fieldComponent"],({currentValue:be,previousValue:Je,firstChange:re})=>{if(be){if(Je&&Je._lContainer===be._lContainer)return;const ze=Je?Je.detach():null;ze&&!ze.destroyed?be.insert(ze):this.renderField(be,ee,at),!re&&Qe.changeDetectorRef.detectChanges()}})}else if(ee?.type){const dt=this.form?.templates?.find(Ot=>Ot.name===ee.type);let at;if(dt)at=q.createEmbeddedView(dt.ref,{$implicit:ee});else{const{component:Ot}=this.config.getType(ee.type,!0);at=q.createComponent(Ot)}this.attachComponentRef(at,ee)}}triggerHook(q,ee){if(("onInit"===q||"onChanges"===q&&ee.field&&!ee.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[q]&&(!ee||ee.field)){const Xe=this.field.hooks[q](this.field);if((0,m.A)(Xe)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(q)){const dt=Xe.subscribe();this.hooksObservers.push(()=>dt.unsubscribe())}}"onChanges"===q&&ee.field&&(this.resetRefs(ee.field.previousValue),this.render())}attachComponentRef(q,ee){this.componentRefs.push(q),ee._componentRefs.push(q),q instanceof t.rjb&&Object.assign(q.instance,{field:ee})}render(){if(this.field)if(this.field.options)if(this.detectFieldBuild=!1,this.hostObservers.forEach(ee=>ee.unsubscribe()),this.hostObservers=[It(this.field,["hide"],({firstChange:ee,currentValue:Xe})=>{const dt=this.containerRef;!1===this.config.extras.lazyRender?(ee&&this.renderField(dt,this.field),(!ee||ee&&Xe)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",Xe?"none":"")):Xe?(dt.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(dt,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!ee&&this.field.options.detectChanges(this.field)}),It(this.field,["className"],({firstChange:ee,currentValue:Xe})=>{(!ee||ee&&Xe)&&(!this.config.extras.lazyRender||!0!==this.field.hide)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",Xe)})],+oe.xv.major>=18&&+oe.xv.minor>=1){if(this.field.formControl){const ee=this.field.formControl.statusChanges.pipe((0,j.F)()).subscribe(()=>en(this.field));this.hostObservers.push(ee)}}else["touched","pristine","status"].forEach(ee=>this.hostObservers.push(It(this.field,["formControl",ee],({firstChange:Xe})=>!Xe&&en(this.field))));else this.detectFieldBuild=!0}resetRefs(q){q&&(q._localFields?q._localFields=[]:st(this.field,"_localFields",[]),q._componentRefs?q._componentRefs=q._componentRefs.filter(ee=>-1===this.componentRefs.indexOf(ee)):st(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(q){if(!q)return()=>{};const ee=[Ct(q,["props"],()=>q.options.detectChanges(q))];q.options&&ee.push(Ct(q.options,["formState"],()=>q.options.detectChanges(q)));for(const dt of Object.keys(q._expressions||{})){const at=It(q,["_expressions",dt],({currentValue:Ot,previousValue:Qe})=>{Qe?.subscription&&(Qe.subscription.unsubscribe(),Qe.subscription=null),(0,m.A)(Ot.value$)&&(Ot.subscription=Ot.value$.subscribe())});ee.push(()=>{q._expressions[dt]?.subscription&&q._expressions[dt].subscription.unsubscribe(),at.unsubscribe()})}for(const dt of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){const at=It(q,dt,({firstChange:Ot})=>!Ot&&q.options.detectChanges(q));ee.push(()=>at.unsubscribe())}if(q.formControl&&!q.fieldGroup){const dt=q.formControl;let at=dt.valueChanges.pipe((0,A.T)(Je=>(q.parsers?.map(re=>Je=re(Je,q)),Object.is(Je,q.formControl.value)||q.formControl.setValue(Je),Je)),(0,j.F)((Je,re)=>!(Je!==re||Array.isArray(Je)||Le(Je))));dt.value!==R(q)&&(at=at.pipe((0,I.Z)(dt.value)));const{updateOn:Ot,debounce:Qe}=q.modelOptions;(!Ot||"change"===Ot)&&Qe?.default>0&&(at=dt.valueChanges.pipe((0,w.B)(Qe.default)));const be=at.subscribe(Je=>{dt._fields?.length>1&&dt instanceof s.MJ&&dt.patchValue(Je,{emitEvent:!1,onlySelf:!0}),z(q)&&E(q,Je),q.options.fieldChanges.next({value:Je,field:q,type:"valueChanges"})});ee.push(()=>be.unsubscribe())}let Xe=[];return It(q,["_localFields"],({currentValue:dt})=>{Xe.forEach(at=>at()),Xe=(dt||[]).map(at=>this.fieldChanges(at))}),()=>{ee.forEach(dt=>dt()),Xe.forEach(dt=>dt())}}}return Ge.\u0275fac=function(q){return new(q||Ge)(t.rXU($n),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(t.c1b),t.rXU(Fe,8))},Ge.\u0275cmp=t.VBU({type:Ge,selectors:[["formly-field"]],viewQuery:function(q,ee){if(1&q&&t.GBs(Ee,7,t.c1b),2&q){let Xe;t.mGM(Xe=t.lsd())&&(ee.viewContainerRef=Xe.first)}},inputs:{field:"field"},features:[t.OA$],decls:2,vars:0,consts:[["container",""]],template:function(q,ee){1&q&&t.DNE(0,Oe,0,0,"ng-template",null,0,t.C5r)},styles:["[_nghost-%COMP%]:empty{display:none}"]}),Ge})(),_e=(()=>{class Ge{constructor(q,ee,Xe,dt){this.builder=q,this.config=ee,this.ngZone=Xe,this.fieldTemplates=dt,this.modelChange=new t.bkB,this.field={type:"formly-group"},this._modelChangeValue={},this.valueChangesUnsubscribe=()=>{}}set form(q){this.field.form=q}get form(){return this.field.form}set model(q){this.config.extras.immutable&&this._modelChangeValue===q||this.setField({model:q})}get model(){return this.field.model}set fields(q){this.setField({fieldGroup:q})}get fields(){return this.field.fieldGroup}set options(q){this.setField({options:q})}get options(){return this.field.options}set templates(q){this.fieldTemplates.templates=q}ngDoCheck(){"changeDetectionCheck"===this.config.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(q){q.fields&&this.form&&Wt(this.form),(q.fields||q.form||q.model&&this._modelChangeValue!==q.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 q=this.field.options.fieldChanges.pipe((0,F.p)(({field:ee,type:Xe})=>z(ee)&&"valueChanges"===Xe),(0,X.n)(()=>function Ut(Ge){return Ge instanceof t.FOc}(this.ngZone)?(0,e.of)(null):this.ngZone.onStable.asObservable().pipe((0,V.s)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=xt(this.model))}));return()=>q.unsubscribe()}setField(q){this.config.extras.immutable?this.field={...this.field,...xt(q)}:Object.keys(q).forEach(ee=>this.field[ee]=q[ee])}}return Ge.\u0275fac=function(q){return new(q||Ge)(t.rXU(zn),t.rXU($n),t.rXU(t.SKi),t.rXU(Fe))},Ge.\u0275cmp=t.VBU({type:Ge,selectors:[["formly-form"]],contentQueries:function(q,ee,Xe){if(1&q&&t.wni(Xe,Ue,4),2&q){let dt;t.mGM(dt=t.lsd())&&(ee.templates=dt)}},inputs:{form:"form",model:"model",fields:"fields",options:"options"},outputs:{modelChange:"modelChange"},features:[t.Jv_([zn,Fe]),t.OA$],decls:1,vars:1,consts:[[3,"field"]],template:function(q,ee){1&q&&t.nrm(0,"formly-field",0),2&q&&t.Y8G("field",ee.field)},dependencies:[te],encapsulation:2,changeDetection:0}),Ge})(),ie=(()=>{class Ge{constructor(q,ee,Xe){this.renderer=q,this.elementRef=ee,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(dt,at)=>{switch(dt){case"focus":return this.onFocus(at);case"blur":return this.onBlur(at);case"change":return this.onChange(at);default:return this.props[dt](this.field,at)}}},this.document=Xe}get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}ngOnChanges(q){q.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(ee=>ee()),this.uiEvents.events.forEach(ee=>{(this.props?.[ee]||-1!==["focus","blur","change"].indexOf(ee))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,ee,Xe=>this.uiEvents.callback(ee,Xe)))}),this.props?.attributes&&It(this.field,["props","attributes"],({currentValue:ee,previousValue:Xe})=>{Xe&&Object.keys(Xe).forEach(dt=>this.removeAttribute(dt)),ee&&Object.keys(ee).forEach(dt=>{null!=ee[dt]&&this.setAttribute(dt,ee[dt])})}),this.detachElementRef(q.field.previousValue),this.attachElementRef(q.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=It(this.field,["focus"],({currentValue:ee})=>{this.toggleFocus(ee)}))),q.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const q=this.elementRef.nativeElement;this.uiAttributes=[...he,"tabindex","placeholder","readonly","disabled","step"].filter(ee=>!q.hasAttribute||!q.hasAttribute(ee))}for(let q=0;qq()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(q){const ee=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!ee||!ee.nativeElement.focus)return;const Xe=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:dt})=>this.document.activeElement===dt||dt.contains(this.document.activeElement));q&&!Xe?Promise.resolve().then(()=>ee.nativeElement.focus()):!q&&Xe&&Promise.resolve().then(()=>ee.nativeElement.blur())}onFocus(q){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,q)}onBlur(q){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,q)}onHostChange(q){q instanceof Event||this.onChange(q)}onChange(q){this.props.change?.(this.field,q),this.field.formControl?.markAsDirty()}attachElementRef(q){q&&(-1===q._elementRefs?.indexOf(this.elementRef)?q._elementRefs.push(this.elementRef):st(q,"_elementRefs",[this.elementRef]))}detachElementRef(q){const ee=q?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==ee&&q._elementRefs.splice(ee,1)}setAttribute(q,ee){this.renderer.setAttribute(this.elementRef.nativeElement,q,ee)}removeAttribute(q){this.renderer.removeAttribute(this.elementRef.nativeElement,q)}}return Ge.\u0275fac=function(q){return new(q||Ge)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(oe.qQ))},Ge.\u0275dir=t.FsC({type:Ge,selectors:[["","formlyAttributes",""]],hostBindings:function(q,ee){1&q&&t.bIt("change",function(dt){return ee.onHostChange(dt)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[t.OA$]}),Ge})(),Pe=(()=>{class Ge{constructor(){this.field={}}set _formlyControls(q){this.field._localFields=q.map(Xe=>Xe.control._fields||[]).flat().filter(Xe=>Xe.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 Ge.\u0275fac=function(q){return new(q||Ge)},Ge.\u0275dir=t.FsC({type:Ge,viewQuery:function(q,ee){if(1&q&&t.GBs(s.vO,5),2&q){let Xe;t.mGM(Xe=t.lsd())&&(ee._formlyControls=Xe)}},inputs:{field:"field"}}),Ge})(),et=(()=>{class Ge extends Pe{}return Ge.\u0275fac=(()=>{let ue;return function(ee){return(ue||(ue=t.xGo(Ge)))(ee||Ge)}})(),Ge.\u0275cmp=t.VBU({type:Ge,selectors:[["formly-group"]],hostVars:2,hostBindings:function(q,ee){2&q&&t.HbH(ee.field.fieldGroupClassName||"")},features:[t.Vt3],ngContentSelectors:pe,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(q,ee){1&q&&(t.NAR(),t.DNE(0,Ie,1,1,"formly-field",0),t.SdG(1)),2&q&&t.Y8G("ngForOf",ee.field.fieldGroup)},dependencies:[te,oe.Sq],encapsulation:2,changeDetection:0}),Ge})(),ht=(()=>{class Ge{constructor(q){this.config=q}ngOnChanges(){const q=he.map(ee=>`templateOptions.${ee}`);this.errorMessage$=(0,M.h)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,F.p)(({field:ee,type:Xe,property:dt})=>ee===this.field&&"expressionChanges"===Xe&&(-1!==dt.indexOf("validation")||-1!==q.indexOf(dt)))):(0,e.of)(null)).pipe((0,I.Z)(null),(0,X.n)(()=>(0,m.A)(this.errorMessage)?this.errorMessage:(0,e.of)(this.errorMessage)))}get errorMessage(){const q=this.field.formControl;for(const ee in q.errors)if(q.errors.hasOwnProperty(ee)){let Xe=this.config.getValidatorMessage(ee);if(Le(q.errors[ee])){if(q.errors[ee].errorPath)return;q.errors[ee].message&&(Xe=q.errors[ee].message)}return this.field.validation?.messages?.[ee]&&(Xe=this.field.validation.messages[ee]),this.field.validators?.[ee]?.message&&(Xe=this.field.validators[ee].message),this.field.asyncValidators?.[ee]?.message&&(Xe=this.field.asyncValidators[ee].message),"function"==typeof Xe?Xe(q.errors[ee],this.field):Xe}}}return Ge.\u0275fac=function(q){return new(q||Ge)(t.rXU($n))},Ge.\u0275cmp=t.VBU({type:Ge,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[t.OA$],decls:2,vars:3,template:function(q,ee){1&q&&(t.EFF(0),t.nI1(1,"async")),2&q&&t.JRh(t.bMT(1,1,ee.errorMessage$))},dependencies:[oe.Jj],encapsulation:2,changeDetection:0}),Ge})(),cn=(()=>{class Ge extends Pe{set _formlyControls(q){}set _staticContent(q){this.fieldComponent=q}}return Ge.\u0275fac=(()=>{let ue;return function(ee){return(ue||(ue=t.xGo(Ge)))(ee||Ge)}})(),Ge.\u0275dir=t.FsC({type:Ge,viewQuery:function(q,ee){if(1&q&&(t.GBs(ve,5,t.c1b),t.GBs(ve,7,t.c1b)),2&q){let Xe;t.mGM(Xe=t.lsd())&&(ee.fieldComponent=Xe.first),t.mGM(Xe=t.lsd())&&(ee._staticContent=Xe.first)}},features:[t.Vt3]}),Ge})(),Tn=(()=>{class Ge extends Pe{constructor(q){super(),this.sanitizer=q,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 Ge.\u0275fac=function(q){return new(q||Ge)(t.rXU(J.up))},Ge.\u0275cmp=t.VBU({type:Ge,selectors:[["formly-template"]],features:[t.Vt3],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(q,ee){1&q&&t.nrm(0,"div",0),2&q&&t.Y8G("innerHtml",ee.template,t.npT)},encapsulation:2,changeDetection:0}),Ge})();class In{onPopulate(ue){if(ue._expressions)return;st(ue,"_expressions",{}),It(ue,["hide"],({currentValue:ee,firstChange:Xe})=>{st(ue,"_hide",!!ee),(!Xe||Xe&&!0===ee)&&(ue.props.hidden=ee,ue.options._hiddenFieldsForCheck.push(ue))}),ue.hideExpression&&It(ue,["hideExpression"],({currentValue:ee})=>{ue._expressions.hide=this.parseExpressions(ue,"hide","boolean"==typeof ee?()=>ee:ee)});const q=(ee,Xe)=>{"string"==typeof Xe||gt(Xe)?ue._expressions[ee]=this.parseExpressions(ue,ee,Xe):Xe instanceof K.c&&(ue._expressions[ee]={value$:Xe.pipe((0,x.M)(dt=>{this.evalExpr(ue,ee,dt),ue.options._detectChanges(ue)}))})};ue.expressions=ue.expressions||{};for(const ee of Object.keys(ue.expressions))It(ue,["expressions",ee],({currentValue:Xe})=>{q(ee,gt(Xe)?(...dt)=>Xe(ue,dt[3]):Xe)});ue.expressionProperties=ue.expressionProperties||{};for(const ee of Object.keys(ue.expressionProperties))It(ue,["expressionProperties",ee],({currentValue:Xe})=>q(ee,Xe))}postPopulate(ue){if(!ue.parent&&!ue.options.checkExpressions){let q=!1;ue.options.checkExpressions=(ee,Xe)=>{if(q)return;q=!0;const dt=this.checkExpressions(ee,Xe),at=ue.options;at._hiddenFieldsForCheck.sort(Ot=>Ot.hide?-1:1).forEach(Ot=>this.changeHideState(Ot,Ot.hide,!Xe)),at._hiddenFieldsForCheck=[],dt&&this.checkExpressions(ue),q=!1},ue.options._checkField=(ee,Xe)=>{console.warn("Formly: 'options._checkField' is deprecated since v6.0, use 'options.checkExpressions' instead."),ue.options.checkExpressions(ee,Xe)}}}parseExpressions(ue,q,ee){let Xe,dt;if(ue.parent&&["hide","props.disabled"].includes(q)){const at=Ot=>"hide"===q?Ot.hide:Ot.props.disabled;Xe=()=>{let Ot=ue.parent;for(;Ot.parent&&!at(Ot);)Ot=Ot.parent;return at(Ot)}}return"string"==typeof(ee=ee||(()=>!1))&&(ee=function Wn(Ge,ue){try{return Function(...ue,`return ${Ge};`)}catch(q){console.error(q)}}(ee,["model","formState","field"])),{callback:at=>{try{const Ot=function kn(Ge,ue,q){return"function"==typeof Ge?Ge.apply(ue,q):!!Ge}(Xe?(...Qe)=>Xe(ue)||ee(...Qe):ee,{field:ue},[ue.model,ue.options.formState,ue,at]);return!(!at&&(dt===Ot||Le(Ot)&&!(0,m.A)(Ot)&&JSON.stringify(Ot)===JSON.stringify(dt))||(dt=Ot,this.evalExpr(ue,q,Ot),0))}catch(Ot){throw Ot.message=`[Formly Error] [Expression "${q}"] ${Ot.message}`,Ot}}}}checkExpressions(ue,q=!1){if(!ue)return!1;let ee=!1;if(ue._expressions)for(const Xe of Object.keys(ue._expressions))ue._expressions[Xe].callback?.(q)&&(ee=!0);return ue.fieldGroup?.forEach(Xe=>this.checkExpressions(Xe,q)&&(ee=!0)),ee}changeDisabledState(ue,q){ue.fieldGroup&&ue.fieldGroup.filter(ee=>!ee._expressions.hasOwnProperty("props.disabled")).forEach(ee=>this.changeDisabledState(ee,q)),z(ue)&&ue.props.disabled!==q&&(ue.props.disabled=q)}changeHideState(ue,q,ee){if(ue.fieldGroup&&ue.fieldGroup.filter(Xe=>Xe&&!Xe._expressions.hide).forEach(Xe=>this.changeHideState(Xe,q,ee)),ue.formControl&&z(ue)){st(ue,"_hide",!(!q&&!ue.hide));const Xe=ue.formControl;Xe._fields?.length>1&&St(Xe),!0!==q||Xe._fields&&!Xe._fields.every(dt=>!!dt._hide)?!1===q&&(ue.resetOnHide&&!Be(ue.defaultValue)&&Be(R(ue))&&E(ue,ue.defaultValue),Et(ue,void 0,!0),ue.resetOnHide&&ue.fieldArray&&ue.fieldGroup?.length!==ue.model?.length&&ue.options.build(ue)):(function bt(Ge,ue=!1){const q=Ge.formControl,ee=q._fields?q._fields.indexOf(Ge):-1;-1!==ee&&q._fields.splice(ee,1);const Xe=q.parent;if(!Xe)return;const dt={emitEvent:ue};if(Xe instanceof s.Yp){const at=Xe.controls.findIndex(Ot=>Ot===q);-1!==at&&Xe.removeAt(at,dt)}else if(Xe instanceof s.gE){const at=Z(Ge),Ot=at[at.length-1];Xe.get([Ot])===q&&Xe.removeControl(Ot,dt)}q.setParent(null)}(ue,!0),ee&&ue.resetOnHide&&(E(ue,void 0),ue.formControl.reset({value:void 0,disabled:ue.formControl.disabled}),ue.options.fieldChanges.next({value:void 0,field:ue,type:"valueChanges"}),ue.fieldGroup&&ue.formControl instanceof s.Yp&&(ue.fieldGroup.length=0)))}ue.options.fieldChanges&&ue.options.fieldChanges.next({field:ue,type:"hidden",value:q})}evalExpr(ue,q,ee){if(0===q.indexOf("model.")){const Xe=q.replace(/^model\./,""),dt=ue.fieldGroup?ue:ue.parent;let at=ue?.key===Xe?ue.formControl:ue.form.get(Xe);!at&&ue.get(Xe)&&(at=ue.get(Xe).formControl),E({key:Xe,parent:dt,model:ue.model},ee),at&&(!se(at.value)||!se(ee))&&at.value!==ee&&at.patchValue(ee)}else{try{let Xe=ue;const dt=this._evalExpressionPath(ue,q),at=dt.length-1;for(let Ot=0;OtXe).forEach(Xe=>{const dt=Xe.match(/['|"](.*?)['|"]/);dt?ee.push(dt[1]):ee.push(...Xe.split(".").filter(at=>at))}),ue._expressions[q]&&(ue._expressions[q].paths=ee),ee}}class Un{constructor(ue){this.config=ue}onPopulate(ue){this.initFieldValidation(ue,"validators"),this.initFieldValidation(ue,"asyncValidators")}initFieldValidation(ue,q){const ee=[];if("validators"===q&&!(ue.hasOwnProperty("fieldGroup")&&!z(ue))&&ee.push(this.getPredefinedFieldValidation(ue)),ue[q])for(const Xe of Object.keys(ue[q]))"validation"===Xe?ee.push(...ue[q].validation.map(dt=>this.wrapNgValidatorFn(ue,dt))):ee.push(this.wrapNgValidatorFn(ue,ue[q][Xe],Xe));st(ue,"_"+q,ee)}getPredefinedFieldValidation(ue){let q=[];return he.forEach(ee=>It(ue,["props",ee],({currentValue:Xe,firstChange:dt})=>{q=q.filter(at=>at!==ee),"required"===ee&&null!=Xe&&"boolean"!=typeof Xe&&console.warn(`Formly: Invalid prop 'required' of type '${typeof Xe}', expected 'boolean' (Field:${ue.key}).`),null!=Xe&&!1!==Xe&&q.push(ee),!dt&&ue.formControl&&St(ue.formControl)})),ee=>0===q.length?null:s.k0.compose(q.map(Xe=>()=>{const dt=ue.props[Xe];switch(Xe){case"required":return s.k0.required(ee);case"pattern":return s.k0.pattern(dt)(ee);case"minLength":const at=s.k0.minLength(dt)(ee),Ot=this.config.getValidatorMessage("minlength")||ue.validation?.messages?.minlength?"minlength":"minLength";return at?{[Ot]:at.minlength}:null;case"maxLength":const Qe=s.k0.maxLength(dt)(ee),be=this.config.getValidatorMessage("maxlength")||ue.validation?.messages?.maxlength?"maxlength":"maxLength";return Qe?{[be]:Qe.maxlength}:null;case"min":return s.k0.min(dt)(ee);case"max":return s.k0.max(dt)(ee);default:return null}}))(ee)}wrapNgValidatorFn(ue,q,ee){let Xe;if("string"==typeof q&&(Xe=xt(this.config.getValidator(q))),"object"==typeof q&&q.name&&(Xe=xt(this.config.getValidator(q.name)),q.options&&(Xe.options=q.options)),"object"==typeof q&&q.expression){const{expression:dt,...at}=q;Xe={name:ee,validation:dt,options:Object.keys(at).length>0?at:null}}return"function"==typeof q&&(Xe={name:ee,validation:q}),dt=>{const at=Xe.validation(dt,ue,Xe.options);return function zt(Ge){return!!Ge&&"function"==typeof Ge.then}(at)?at.then(Ot=>this.handleResult(ue,ee?!!Ot:Ot,Xe)):(0,m.A)(at)?at.pipe((0,A.T)(Ot=>this.handleResult(ue,ee?!!Ot:Ot,Xe))):this.handleResult(ue,ee?!!at:at,Xe)}}handleResult(ue,q,{name:ee,options:Xe}){"boolean"==typeof q&&(q=q?null:{[ee]:Xe||!0});const dt=ue.formControl;return dt?._childrenErrors?.[ee]?.(),Le(q)&&Object.keys(q).forEach(at=>{const Ot=q[at].errorPath?q[at].errorPath:Xe?.errorPath,Qe=Ot?ue.formControl.get(Ot):null;if(Qe){const{errorPath:be,...Je}=q[at];Qe.setErrors({...Qe.errors||{},[at]:Je}),!dt._childrenErrors&&st(dt,"_childrenErrors",{}),dt._childrenErrors[at]=()=>{const{[at]:re,...ze}=Qe.errors||{};Qe.setErrors(0===Object.keys(ze).length?null:ze)}}}),q}}class dn{prePopulate(ue){this.root||(this.root=ue),ue.parent&&Object.defineProperty(ue,"form",{get:()=>ue.parent.formControl,configurable:!0})}onPopulate(ue){ue.hasOwnProperty("fieldGroup")&&!z(ue)?st(ue,"formControl",ue.form):this.addFormControl(ue)}postPopulate(ue){if(this.root===ue&&(this.root=null,this.setValidators(ue)&&ue.parent)){let ee=ue.parent;for(;ee;)(z(ee)||!ee.parent)&&St(ee.formControl,!0),ee=ee.parent}}addFormControl(ue){let q=function At(Ge){return Ge.formControl?Ge.formControl:!1===Ge.shareFormControl?null:Ge.form?.get(Z(Ge))}(ue);if(!ue.fieldArray){if(q){if(q instanceof s.MJ){const ee=z(ue)?R(ue):ue.defaultValue;q.defaultValue=ee}}else{const ee={updateOn:ue.modelOptions.updateOn};if(ue.fieldGroup)q=new s.gE({},ee);else{const Xe=z(ue)?R(ue):ue.defaultValue;q=new s.MJ({value:Xe,disabled:!!ue.props.disabled},{...ee,initialValueIsDefault:!0})}}Et(ue,q)}}setValidators(ue,q=!1){!1===q&&z(ue)&&ue.props?.disabled&&(q=!0);let ee=!1;if(ue.fieldGroup?.forEach(Xe=>Xe&&this.setValidators(Xe,q)&&(ee=!0)),z(ue)||!ue.parent||!z(ue)&&!ue.fieldGroup){const{formControl:Xe}=ue;if(Xe&&(z(ue)&&Xe instanceof s.MJ&&(q&&Xe.enabled&&(Xe.disable({emitEvent:!1,onlySelf:!0}),ee=!0),!q&&Xe.disabled&&(Xe.enable({emitEvent:!1,onlySelf:!0}),ee=!0)),null===Xe.validator&&this.hasValidators(ue,"_validators")&&(Xe.setValidators(()=>{const dt=s.k0.compose(this.mergeValidators(ue,"_validators"));return dt?dt(Xe):null}),ee=!0),null===Xe.asyncValidator&&this.hasValidators(ue,"_asyncValidators")&&(Xe.setAsyncValidators(()=>{const dt=s.k0.composeAsync(this.mergeValidators(ue,"_asyncValidators"));return dt?dt(Xe):(0,e.of)(null)}),ee=!0),ee)){St(Xe,!0);let dt=Xe.parent;for(let at=1;at1&&ee._fields.some(Xe=>Xe[q].length>0)||ue[q].length>0)||ue.fieldGroup?.some(Xe=>Xe?.fieldGroup&&!z(Xe)&&this.hasValidators(Xe,q))}mergeValidators(ue,q){const ee=[],Xe=ue.formControl;return Xe?._fields?.length>1?Xe._fields.filter(dt=>!dt._hide).forEach(dt=>ee.push(...dt[q])):ue[q]&&ee.push(...ue[q]),ue.fieldGroup&&ue.fieldGroup.filter(dt=>dt?.fieldGroup&&!z(dt)).forEach(dt=>ee.push(...this.mergeValidators(dt,q))),ee}}class qt{constructor(ue){this.config=ue,this.formId=0}prePopulate(ue){const q=ue.parent;this.initRootOptions(ue),this.initFieldProps(ue),q&&(Object.defineProperty(ue,"options",{get:()=>q.options,configurable:!0}),Object.defineProperty(ue,"model",{get:()=>z(ue)&&ue.fieldGroup?R(ue):q.model,configurable:!0})),Object.defineProperty(ue,"get",{value:ee=>Tt(ue,ee),configurable:!0}),this.getFieldComponentInstance(ue).prePopulate?.(ue)}onPopulate(ue){this.initFieldOptions(ue),this.getFieldComponentInstance(ue).onPopulate?.(ue),ue.fieldGroup&&ue.fieldGroup.forEach((q,ee)=>{q&&(Object.defineProperty(q,"parent",{get:()=>ue,configurable:!0}),Object.defineProperty(q,"index",{get:()=>ee,configurable:!0})),this.formId++})}postPopulate(ue){this.getFieldComponentInstance(ue).postPopulate?.(ue)}initFieldProps(ue){ue.props??(ue.props=ue.templateOptions),Object.defineProperty(ue,"templateOptions",{get:()=>ue.props,set:q=>ue.props=q,configurable:!0})}initRootOptions(ue){if(ue.parent)return;const q=ue.options;ue.options.formState=ue.options.formState||{},q.showError||(q.showError=this.config.extras.showError),q.fieldChanges||st(q,"fieldChanges",new L.B),q._hiddenFieldsForCheck||(q._hiddenFieldsForCheck=[]),q._markForCheck=ee=>{console.warn("Formly: 'options._markForCheck' is deprecated since v6.0, use 'options.detectChanges' instead."),q.detectChanges(ee)},q._detectChanges=ee=>{ee._componentRefs&&en(ee),ee.fieldGroup?.forEach(Xe=>Xe&&q._detectChanges(Xe))},q.detectChanges=ee=>{ee.options.checkExpressions?.(ee),q._detectChanges(ee)},q.resetModel=ee=>{ee=xt(ee??q._initialModel),ue.model&&(Object.keys(ue.model).forEach(Xe=>delete ue.model[Xe]),Object.assign(ue.model,ee||{})),It(q,["parentForm","submitted"]).setValue(!1,!1),q.build(ue),ue.form.reset(ue.model)},q.updateInitialValue=ee=>q._initialModel=xt(ee??ue.model),ue.options.updateInitialValue()}initFieldOptions(ue){U(ue,{id:Y(`formly_${this.formId}`,ue,ue.index),hooks:{},modelOptions:{},validation:{messages:{}},props:ue.type&&z(ue)?{label:"",placeholder:"",disabled:!1}:{}}),this.config.extras.resetFieldOnHide&&!1!==ue.resetOnHide&&(ue.resetOnHide=!0),"formly-template"!==ue.type&&(ue.template||ue.expressions?.template||ue.expressionProperties?.template)&&(ue.type="formly-template"),!ue.type&&ue.fieldGroup&&(ue.type="formly-group"),ue.type&&this.config.getMergedField(ue),z(ue)&&!Be(ue.defaultValue)&&Be(R(ue))&&!Lt(ue)&&E(ue,ue.defaultValue),ue.wrappers=ue.wrappers||[]}getFieldComponentInstance(ue){const q=()=>{let ee=this.config.resolveFieldTypeRef(ue);const Xe=ue._componentRefs?.slice(-1)[0];return Xe instanceof t.rjb&&Xe?.componentType===ee?.componentType&&(ee=Xe),ee?.instance};return ue._proxyInstance||st(ue,"_proxyInstance",new Proxy({},{get:(ee,Xe)=>q()?.[Xe],set:(ee,Xe,dt)=>q()[Xe]=dt})),ue._proxyInstance}}function wn(Ge){return{types:[{name:"formly-group",component:et},{name:"formly-template",component:Tn}],extensions:[{name:"core",extension:new qt(Ge),priority:-250},{name:"field-validation",extension:new Un(Ge),priority:-200},{name:"field-form",extension:new dn,priority:-150},{name:"field-expression",extension:new In,priority:-100}]}}let Vt=(()=>{class Ge{constructor(q,ee=[]){ee&&ee.forEach(Xe=>q.addConfig(Xe))}static forRoot(q={}){return{ngModule:Ge,providers:[{provide:fn,multi:!0,useFactory:wn,deps:[$n]},{provide:fn,useValue:q,multi:!0},$n,zn]}}static forChild(q={}){return{ngModule:Ge,providers:[{provide:fn,multi:!0,useFactory:wn,deps:[$n]},{provide:fn,useValue:q,multi:!0},zn]}}}return Ge.\u0275fac=function(q){return new(q||Ge)(t.KVO($n),t.KVO(fn,8))},Ge.\u0275mod=t.$C({type:Ge}),Ge.\u0275inj=t.G2t({imports:[[oe.MD]]}),Ge})()},6476:(Rt,De,a)=>{function t(){}a.d(De,{C:()=>s});class s{constructor(e=1/0,M=t){this.max=e,this.dispose=M,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const M=this.getNode(e);return M&&M.value}get size(){return this.map.size}getNode(e){const M=this.map.get(e);if(M&&M!==this.newest){const{older:K,newer:L}=M;L&&(L.older=K),K&&(K.newer=L),M.older=this.newest,M.older.newer=M,M.newer=null,this.newest=M,M===this.oldest&&(this.oldest=L)}return M}set(e,M){let K=this.getNode(e);return K?K.value=M:(K={key:e,value:M,newer:null,older:this.newest},this.newest&&(this.newest.newer=K),this.newest=K,this.oldest=this.oldest||K,this.map.set(e,K),K.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const M=this.map.get(e);return!!M&&(M===this.newest&&(this.newest=M.older),M===this.oldest&&(this.oldest=M.newer),M.newer&&(M.newer.older=M.older),M.older&&(M.older.newer=M.newer),this.map.delete(e),this.dispose(M.value,e),!0)}}},9055:(Rt,De,a)=>{function t(){}a.d(De,{l:()=>L});const s=t,m=typeof WeakRef<"u"?WeakRef:function(j){return{deref:()=>j}},e=typeof WeakMap<"u"?WeakMap:Map,M=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:t,unregister:t}};class L{constructor(A=1/0,I=s){this.max=A,this.dispose=I,this.map=new e,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const w=this.unfinalizedNodes.values();for(let F=0;F<10024;F++){const X=w.next().value;if(!X)break;this.unfinalizedNodes.delete(X);const V=X.key;delete X.key,X.keyRef=new m(V),this.registry.register(V,X,X)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new M(this.deleteNode.bind(this))}has(A){return this.map.has(A)}get(A){const I=this.getNode(A);return I&&I.value}getNode(A){const I=this.map.get(A);if(I&&I!==this.newest){const{older:w,newer:F}=I;F&&(F.older=w),w&&(w.newer=F),I.older=this.newest,I.older.newer=I,I.newer=null,this.newest=I,I===this.oldest&&(this.oldest=F)}return I}set(A,I){let w=this.getNode(A);return w?w.value=I:(w={key:A,value:I,newer:null,older:this.newest},this.newest&&(this.newest.newer=w),this.newest=w,this.oldest=this.oldest||w,this.scheduleFinalization(w),this.map.set(A,w),this.size++,w.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(A){A===this.newest&&(this.newest=A.older),A===this.oldest&&(this.oldest=A.newer),A.newer&&(A.newer.older=A.older),A.older&&(A.older.newer=A.newer),this.size--;const I=A.key||A.keyRef&&A.keyRef.deref();this.dispose(A.value,I),A.keyRef?this.registry.unregister(A):this.unfinalizedNodes.delete(A),I&&this.map.delete(I)}delete(A){const I=this.map.get(A);return!!I&&(this.deleteNode(I),!0)}scheduleFinalization(A){this.unfinalizedNodes.add(A),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},9860:(Rt,De,a)=>{a.d(De,{A:()=>K,L:()=>M});const{toString:t,hasOwnProperty:s}=Object.prototype,m=Function.prototype.toString,e=new Map;function M(X,V){try{return L(X,V)}finally{e.clear()}}const K=M;function L(X,V){if(X===V)return!0;const x=t.call(X);if(x!==t.call(V))return!1;switch(x){case"[object Array]":if(X.length!==V.length)return!1;case"[object Object]":{if(F(X,V))return!0;const J=j(X),Ee=j(V),Oe=J.length;if(Oe!==Ee.length)return!1;for(let pe=0;pe=0&&X.indexOf(V,x)===x}(J,I)}}return!1}function j(X){return Object.keys(X).filter(A,X)}function A(X){return void 0!==this[X]}const I="{ [native code] }";function F(X,V){let x=e.get(X);if(x){if(x.has(V))return!0}else e.set(X,x=new Set);return x.add(V),!1}},4420:(Rt,De,a)=>{a.d(De,{b:()=>M});const t=()=>Object.create(null),{forEach:s,slice:m}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class M{constructor(j=!0,A=t){this.weakness=j,this.makeData=A}lookup(){return this.lookupArray(arguments)}lookupArray(j){let A=this;return s.call(j,I=>A=A.getChildTrie(I)),e.call(A,"data")?A.data:A.data=this.makeData(m.call(j))}peek(){return this.peekArray(arguments)}peekArray(j){let A=this;for(let I=0,w=j.length;A&&I{a.d(De,{EM:()=>sr,$Y:()=>fo,Ic:()=>Lo,_9:()=>Zn,sM:()=>wr,XK:()=>yi,J1:()=>Zo});var t=a(3953),s=a(1985),m=a(6780),M=a(9687);const L=new class K extends M.q{}(class e extends m.R{constructor(Ce,Ve){super(Ce,Ve),this.scheduler=Ce,this.work=Ve}schedule(Ce,Ve=0){return Ve>0?super.schedule(Ce,Ve):(this.delay=Ve,this.state=Ce,this.scheduler.flush(this),this)}execute(Ce,Ve){return Ve>0||this.closed?super.execute(Ce,Ve):this._execute(Ce,Ve)}requestAsyncId(Ce,Ve,nt=0){return null!=nt&&nt>0||null==nt&&this.delay>0?super.requestAsyncId(Ce,Ve,nt):(Ce.flush(this),0)}});var A=a(3494),I=a(2806),w=function(tt){return tt[tt.loading=1]="loading",tt[tt.setVariables=2]="setVariables",tt[tt.fetchMore=3]="fetchMore",tt[tt.refetch=4]="refetch",tt[tt.poll=6]="poll",tt[tt.ready=7]="ready",tt[tt.error=8]="error",tt}(w||{});function F(tt){return!!tt&&tt<7}var V=a(4626),x=a(1404),oe=a(8008),J=oe.C.execute,Ee=a(560),Oe=a(4183),pe=a(7994),Ie=function(tt,Ce){var Ve;try{Ve=JSON.stringify(tt)}catch(Mt){var nt=(0,x.vA)(39,Ce,Mt.message);throw nt.parseError=Mt,nt}return Ve},fe=a(6500);function he(tt){var Ce={next:function(){return tt.read()}};return fe.uJ&&(Ce[Symbol.asyncIterator]=function(){return this}),Ce}function Pt(tt){var Ce=tt;if(function E(tt){return!!tt.body}(tt)&&(Ce=tt.body),function R(tt){return!(!fe.uJ||!tt[Symbol.asyncIterator])}(Ce))return function Y(tt){var Ce,Ve=tt[Symbol.asyncIterator]();return(Ce={next:function(){return Ve.next()}})[Symbol.asyncIterator]=function(){return this},Ce}(Ce);if(function S(tt){return!!tt.getReader}(Ce))return he(Ce.getReader());if(function U(tt){return!!tt.stream}(Ce))return he(Ce.stream().getReader());if(function se(tt){return!!tt.arrayBuffer}(Ce))return function Z(tt){var Ce=!1,Ve={next:function(){return Ce?Promise.resolve({value:void 0,done:!0}):(Ce=!0,new Promise(function(nt,Mt){tt.then(function(Yt){nt({value:Yt,done:!1})}).catch(Mt)}))}};return fe.uJ&&(Ve[Symbol.asyncIterator]=function(){return this}),Ve}(Ce.arrayBuffer());if(function Be(tt){return!!tt.pipe}(Ce))return function z(tt){var Ce=null,Ve=null,nt=!1,Mt=[],Yt=[];function tn(xn){if(!Ve){if(Yt.length){var Kn=Yt.shift();if(Array.isArray(Kn)&&Kn[0])return Kn[0]({value:xn,done:!1})}Mt.push(xn)}}function on(xn){Ve=xn,Yt.slice().forEach(function(qn){qn[1](xn)}),!Ce||Ce()}function bn(){nt=!0,Yt.slice().forEach(function(Kn){Kn[0]({value:void 0,done:!0})}),!Ce||Ce()}Ce=function(){Ce=null,tt.removeListener("data",tn),tt.removeListener("error",on),tt.removeListener("end",bn),tt.removeListener("finish",bn),tt.removeListener("close",bn)},tt.on("data",tn),tt.on("error",on),tt.on("end",bn),tt.on("finish",bn),tt.on("close",bn);var Bn={next:function(){return function Mn(){return new Promise(function(xn,Kn){return Ve?Kn(Ve):Mt.length?xn({value:Mt.shift(),done:!1}):nt?xn({value:void 0,done:!0}):void Yt.push([xn,Kn])})}()}};return fe.uJ&&(Bn[Symbol.asyncIterator]=function(){return this}),Bn}(Ce);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var gt=function(tt,Ce,Ve){var nt=new Error(Ve);throw nt.name="ServerError",nt.response=tt,nt.statusCode=tt.status,nt.result=Ce,nt},wt=a(1181),Le=Symbol(),Ct=function(tt){function Ce(Ve){var nt=Ve.graphQLErrors,Mt=Ve.protocolErrors,Yt=Ve.clientErrors,tn=Ve.networkError,on=Ve.errorMessage,bn=Ve.extraInfo,Mn=tt.call(this,on)||this;return Mn.name="ApolloError",Mn.graphQLErrors=nt||[],Mn.protocolErrors=Mt||[],Mn.clientErrors=Yt||[],Mn.networkError=tn||null,Mn.message=on||function(tt){var Ce=(0,V.fX)((0,V.fX)((0,V.fX)([],tt.graphQLErrors,!0),tt.clientErrors,!0),tt.protocolErrors,!0);return tt.networkError&&Ce.push(tt.networkError),Ce.map(function(Ve){return(0,wt.U)(Ve)&&Ve.message||"Error message not found."}).join("\n")}(Mn),Mn.extraInfo=bn,Mn.cause=(0,V.fX)((0,V.fX)((0,V.fX)([tn],nt||[],!0),Mt||[],!0),Yt||[],!0).find(function(Bn){return!!Bn})||null,Mn.__proto__=Ce.prototype,Mn}return(0,V.C6)(Ce,tt),Ce}(Error),It=a(7715),Tt=a(1115);function en(tt){return"incremental"in tt}function fn(tt){return(0,wt.U)(tt)&&"payload"in tt}function $n(tt,Ce){var Ve=tt,nt=new Tt.ZI;return en(Ce)&&(0,It.E)(Ce.incremental)&&Ce.incremental.forEach(function(Mt){for(var Yt=Mt.data,tn=Mt.path,on=tn.length-1;on>=0;--on){var bn=tn[on],Bn=isNaN(+bn)?{}:[];Bn[bn]=Yt,Yt=Bn}Ve=nt.merge(Ve,Yt)}),Ve}var zn=Object.prototype.hasOwnProperty;function At(tt){var Ce={};return tt.split("\n").forEach(function(Ve){var nt=Ve.indexOf(":");if(nt>-1){var Mt=Ve.slice(0,nt).trim().toLowerCase(),Yt=Ve.slice(nt+1).trim();Ce[Mt]=Yt}}),Ce}function Et(tt,Ce){tt.status>=300&>(tt,function(){try{return JSON.parse(Ce)}catch{return Ce}}(),"Response not successful: Received status code ".concat(tt.status));try{return JSON.parse(Ce)}catch(Mt){var nt=Mt;throw nt.name="ServerParseError",nt.response=tt,nt.statusCode=tt.status,nt.bodyText=Ce,nt}}var Fe=a(1658),Pe={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},et=function(tt,Ce){return Ce(tt)};function Wn(tt){return new pe.c(function(Ce){Ce.error(tt)})}var kn=a(8540),Un=a(1601),dn=a(4229),qt=(0,x.no)(function(){return fetch}),wn=function(tt){void 0===tt&&(tt={});var Ce=tt.uri,Ve=void 0===Ce?"/graphql":Ce,nt=tt.fetch,Mt=tt.print,Yt=void 0===Mt?et:Mt,tn=tt.includeExtensions,on=tt.preserveHeaderCase,bn=tt.useGETForQueries,Mn=tt.includeUnusedVariables,Bn=void 0!==Mn&&Mn,xn=(0,V.Tt)(tt,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(tt){if(!tt&&typeof fetch>"u")throw(0,x.vA)(37)}(nt||qt);var Kn={http:{includeExtensions:tn,preserveHeaderCase:on},options:xn.fetchOptions,credentials:xn.credentials,headers:xn.headers};return new oe.C(function(qn){var pi=function(tt,Ce){return tt.getContext().uri||("function"==typeof Ce?Ce(tt):Ce||"/graphql")}(qn,Ve),ei=qn.getContext(),li={};if(ei.clientAwareness){var ai=ei.clientAwareness,mi=ai.name,Ei=ai.version;mi&&(li["apollographql-client-name"]=mi),Ei&&(li["apollographql-client-version"]=Ei)}var Xi=(0,V.Cl)((0,V.Cl)({},li),ei.headers),Si={http:ei.http,options:ei.fetchOptions,credentials:ei.credentials,headers:Xi};if((0,Oe.d8)(["client"],qn.query)){var no=(0,Un.er)(qn.query);if(!no)return Wn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));qn.query=no}var _o,ao=function Kt(tt,Ce){for(var Ve=[],nt=2;nt-1;){if(li=void 0,ao=[on.slice(0,ei),on.slice(ei+tn.length)],on=ao[1],ai=(li=ao[0]).indexOf("\r\n\r\n"),mi=At(li.slice(0,ai)),(Ei=mi["content-type"])&&-1===Ei.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(Xi=li.slice(ai))if(Si=Et(tt,Xi),Object.keys(Si).length>1||"data"in Si||"incremental"in Si||"errors"in Si||"payload"in Si)if(fn(Si)){if(no={},"payload"in Si){if(1===Object.keys(Si).length&&null===Si.payload)return[2];no=(0,V.Cl)({},Si.payload)}"errors"in Si&&(no=(0,V.Cl)((0,V.Cl)({},no),{extensions:(0,V.Cl)((0,V.Cl)({},"extensions"in no?no.extensions:null),(ro={},ro[Le]=Si.errors,ro))})),Ce(no)}else Ce(Si);else if(1===Object.keys(Si).length&&"hasNext"in Si&&!Si.hasNext)return[2];ei=on.indexOf(tn)}return[3,1];case 3:return[2]}})})}(Uo,xr):function Wt(tt){return function(Ce){return Ce.text().then(function(Ve){return Et(Ce,Ve)}).then(function(Ve){return!Array.isArray(Ve)&&!zn.call(Ve,"data")&&!zn.call(Ve,"errors")&>(Ce,Ve,"Server response was missing for query '".concat(Array.isArray(tt)?tt.map(function(nt){return nt.operationName}):tt.operationName,"'.")),Ve})}}(qn)(Uo).then(xr)}).then(function(){_o=void 0,Bo.complete()}).catch(function(Uo){_o=void 0,function St(tt,Ce){tt.result&&tt.result.errors&&tt.result.data&&Ce.next(tt.result),Ce.error(tt)}(Uo,Bo)}),function(){_o&&_o.abort()}})})},Vt=function(tt){function Ce(Ve){void 0===Ve&&(Ve={});var nt=tt.call(this,wn(Ve).request)||this;return nt.options=Ve,nt}return(0,V.C6)(Ce,tt),Ce}(oe.C),Ge=a(9860),ue=a(2130),q=a(8926);function ee(tt,Ce,Ve){return new pe.c(function(nt){var Mt={then:function(bn){return new Promise(function(Mn){return Mn(bn())})}};function Yt(bn,Mn){return function(Bn){if(bn){var xn=function(){return nt.closed?0:bn(Bn)};Mt=Mt.then(xn,xn).then(function(Kn){return nt.next(Kn)},function(Kn){return nt.error(Kn)})}else nt[Mn](Bn)}}var tn={next:Yt(Ce,"next"),error:Yt(Ve,"error"),complete:function(){Mt.then(function(){return nt.complete()})}},on=tt.subscribe(tn);return function(){return on.unsubscribe()}})}function Xe(tt){var Ce=dt(tt);return(0,It.E)(Ce)}function dt(tt){var Ce=(0,It.E)(tt.errors)?tt.errors.slice(0):[];return en(tt)&&(0,It.E)(tt.incremental)&&tt.incremental.forEach(function(Ve){Ve.errors&&Ce.push.apply(Ce,Ve.errors)}),Ce}var at=a(1367),Ot=a(9977);function Qe(tt,Ce,Ve){var nt=[];tt.forEach(function(Mt){return Mt[Ce]&&nt.push(Mt)}),nt.forEach(function(Mt){return Mt[Ce](Ve)})}function be(tt){function Ce(Ve){Object.defineProperty(tt,Ve,{value:pe.c})}return fe.ol&&Symbol.species&&Ce(Symbol.species),Ce("@@species"),tt}function Je(tt){return tt&&"function"==typeof tt.then}var re=function(tt){function Ce(Ve){var nt=tt.call(this,function(Mt){return nt.addObserver(Mt),function(){return nt.removeObserver(Mt)}})||this;return nt.observers=new Set,nt.promise=new Promise(function(Mt,Yt){nt.resolve=Mt,nt.reject=Yt}),nt.handlers={next:function(Mt){null!==nt.sub&&(nt.latest=["next",Mt],nt.notify("next",Mt),Qe(nt.observers,"next",Mt))},error:function(Mt){var Yt=nt.sub;null!==Yt&&(Yt&&setTimeout(function(){return Yt.unsubscribe()}),nt.sub=null,nt.latest=["error",Mt],nt.reject(Mt),nt.notify("error",Mt),Qe(nt.observers,"error",Mt))},complete:function(){var Yt=nt.sub,tn=nt.sources;if(null!==Yt){var bn=(void 0===tn?[]:tn).shift();bn?Je(bn)?bn.then(function(Mn){return nt.sub=Mn.subscribe(nt.handlers)},nt.handlers.error):nt.sub=bn.subscribe(nt.handlers):(Yt&&setTimeout(function(){return Yt.unsubscribe()}),nt.sub=null,nt.latest&&"next"===nt.latest[0]?nt.resolve(nt.latest[1]):nt.resolve(),nt.notify("complete"),Qe(nt.observers,"complete"))}}},nt.nextResultListeners=new Set,nt.cancel=function(Mt){nt.reject(Mt),nt.sources=[],nt.handlers.complete()},nt.promise.catch(function(Mt){}),"function"==typeof Ve&&(Ve=[new pe.c(Ve)]),Je(Ve)?Ve.then(function(Mt){return nt.start(Mt)},nt.handlers.error):nt.start(Ve),nt}return(0,V.C6)(Ce,tt),Ce.prototype.start=function(Ve){void 0===this.sub&&(this.sources=Array.from(Ve),this.handlers.complete())},Ce.prototype.deliverLastMessage=function(Ve){if(this.latest){var nt=this.latest[0],Mt=Ve[nt];Mt&&Mt.call(Ve,this.latest[1]),null===this.sub&&"next"===nt&&Ve.complete&&Ve.complete()}},Ce.prototype.addObserver=function(Ve){this.observers.has(Ve)||(this.deliverLastMessage(Ve),this.observers.add(Ve))},Ce.prototype.removeObserver=function(Ve){this.observers.delete(Ve)&&this.observers.size<1&&this.handlers.complete()},Ce.prototype.notify=function(Ve,nt){var Mt=this.nextResultListeners;Mt.size&&(this.nextResultListeners=new Set,Mt.forEach(function(Yt){return Yt(Ve,nt)}))},Ce.prototype.beforeNext=function(Ve){var nt=!1;this.nextResultListeners.add(function(Mt,Yt){nt||(nt=!0,Ve(Mt,Yt))})},Ce}(pe.c);be(re);var ze=a(120),mt=a(4246),Ke=a(9471),xe=Object.assign,Re=Object.hasOwnProperty,B=function(tt){function Ce(Ve){var nt=Ve.queryManager,Mt=Ve.queryInfo,Yt=Ve.options,tn=tt.call(this,function(li){try{var ai=li._subscription._observer;ai&&!ai.error&&(ai.error=N)}catch{}var mi=!tn.observers.size;tn.observers.add(li);var Ei=tn.last;return Ei&&Ei.error?li.error&&li.error(Ei.error):Ei&&Ei.result&&li.next&&li.next(Ei.result),mi&&tn.reobserve().catch(function(){}),function(){tn.observers.delete(li)&&!tn.observers.size&&tn.tearDownQuery()}})||this;tn.observers=new Set,tn.subscriptions=new Set,tn.queryInfo=Mt,tn.queryManager=nt,tn.waitForOwnResult=ge(Yt.fetchPolicy),tn.isTornDown=!1,tn.subscribeToMore=tn.subscribeToMore.bind(tn);var on=nt.defaultOptions.watchQuery,Mn=(void 0===on?{}:on).fetchPolicy,Bn=void 0===Mn?"cache-first":Mn,xn=Yt.fetchPolicy,Kn=void 0===xn?Bn:xn,qn=Yt.initialFetchPolicy,pi=void 0===qn?"standby"===Kn?Bn:Kn:qn;tn.options=(0,V.Cl)((0,V.Cl)({},Yt),{initialFetchPolicy:pi,fetchPolicy:Kn}),tn.queryId=Mt.queryId||nt.generateQueryId();var ei=(0,dn.Vu)(tn.query);return tn.queryName=ei&&ei.name&&ei.name.value,tn}return(0,V.C6)(Ce,tt),Object.defineProperty(Ce.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),Ce.prototype.result=function(){var Ve=this;return new Promise(function(nt,Mt){var Yt={next:function(on){nt(on),Ve.observers.delete(Yt),Ve.observers.size||Ve.queryManager.removeQuery(Ve.queryId),setTimeout(function(){tn.unsubscribe()},0)},error:Mt},tn=Ve.subscribe(Yt)})},Ce.prototype.resetDiff=function(){this.queryInfo.resetDiff()},Ce.prototype.getCurrentResult=function(Ve){void 0===Ve&&(Ve=!0);var nt=this.getLastResult(!0),Mt=this.queryInfo.networkStatus||nt&&nt.networkStatus||w.ready,Yt=(0,V.Cl)((0,V.Cl)({},nt),{loading:F(Mt),networkStatus:Mt}),tn=this.options.fetchPolicy,on=void 0===tn?"cache-first":tn;if(!ge(on)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var bn=this.queryInfo.getDiff();(bn.complete||this.options.returnPartialData)&&(Yt.data=bn.result),(0,Ge.L)(Yt.data,{})&&(Yt.data=void 0),bn.complete?(delete Yt.partial,bn.complete&&Yt.networkStatus===w.loading&&("cache-first"===on||"cache-only"===on)&&(Yt.networkStatus=w.ready,Yt.loading=!1)):Yt.partial=!0,!1!==globalThis.__DEV__&&!bn.complete&&!this.options.partialRefetch&&!Yt.loading&&!Yt.data&&!Yt.error&&ke(bn.missing)}return Ve&&this.updateLastResult(Yt),Yt},Ce.prototype.isDifferentFromLastResult=function(Ve,nt){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,Ke.a)(this.query,this.last.result,Ve,this.variables):!(0,Ge.L)(this.last.result,Ve))||nt&&!(0,Ge.L)(this.last.variables,nt)},Ce.prototype.getLast=function(Ve,nt){var Mt=this.last;if(Mt&&Mt[Ve]&&(!nt||(0,Ge.L)(Mt.variables,this.variables)))return Mt[Ve]},Ce.prototype.getLastResult=function(Ve){return this.getLast("result",Ve)},Ce.prototype.getLastError=function(Ve){return this.getLast("error",Ve)},Ce.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},Ce.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},Ce.prototype.refetch=function(Ve){var nt,Mt={pollInterval:0},Yt=this.options.fetchPolicy;if(Mt.fetchPolicy="cache-and-network"===Yt?Yt:"no-cache"===Yt?"no-cache":"network-only",!1!==globalThis.__DEV__&&Ve&&Re.call(Ve,"variables")){var tn=(0,dn.AT)(this.query),on=tn.variableDefinitions;(!on||!on.some(function(bn){return"variables"===bn.variable.name.value}))&&!1!==globalThis.__DEV__&&x.V1.warn(20,Ve,(null===(nt=tn.name)||void 0===nt?void 0:nt.value)||tn)}return Ve&&!(0,Ge.L)(this.options.variables,Ve)&&(Mt.variables=this.options.variables=(0,V.Cl)((0,V.Cl)({},this.options.variables),Ve)),this.queryInfo.resetLastWrite(),this.reobserve(Mt,w.refetch)},Ce.prototype.fetchMore=function(Ve){var nt=this,Mt=(0,V.Cl)((0,V.Cl)({},Ve.query?Ve:(0,V.Cl)((0,V.Cl)((0,V.Cl)((0,V.Cl)({},this.options),{query:this.options.query}),Ve),{variables:(0,V.Cl)((0,V.Cl)({},this.options.variables),Ve.variables)})),{fetchPolicy:"no-cache"});Mt.query=this.transformDocument(Mt.query);var Yt=this.queryManager.generateQueryId();this.lastQuery=Ve.query?this.transformDocument(this.options.query):Mt.query;var tn=this.queryInfo,on=tn.networkStatus;tn.networkStatus=w.fetchMore,Mt.notifyOnNetworkStatusChange&&this.observe();var bn=new Set;return this.queryManager.fetchQuery(Yt,Mt,w.fetchMore).then(function(Mn){return nt.queryManager.removeQuery(Yt),tn.networkStatus===w.fetchMore&&(tn.networkStatus=on),nt.queryManager.cache.batch({update:function(Bn){var xn=Ve.updateQuery;xn?Bn.updateQuery({query:nt.query,variables:nt.variables,returnPartialData:!0,optimistic:!1},function(Kn){return xn(Kn,{fetchMoreResult:Mn.data,variables:Mt.variables})}):Bn.writeQuery({query:Mt.query,variables:Mt.variables,data:Mn.data})},onWatchUpdated:function(Bn){bn.add(Bn.query)}}),Mn}).finally(function(){bn.has(nt.query)||ce(nt)})},Ce.prototype.subscribeToMore=function(Ve){var nt=this,Mt=this.queryManager.startGraphQLSubscription({query:Ve.document,variables:Ve.variables,context:Ve.context}).subscribe({next:function(Yt){var tn=Ve.updateQuery;tn&&nt.updateQuery(function(on,bn){return tn(on,{subscriptionData:Yt,variables:bn.variables})})},error:function(Yt){Ve.onError?Ve.onError(Yt):!1!==globalThis.__DEV__&&x.V1.error(21,Yt)}});return this.subscriptions.add(Mt),function(){nt.subscriptions.delete(Mt)&&Mt.unsubscribe()}},Ce.prototype.setOptions=function(Ve){return this.reobserve(Ve)},Ce.prototype.silentSetOptions=function(Ve){var nt=(0,ze.o)(this.options,Ve||{});xe(this.options,nt)},Ce.prototype.setVariables=function(Ve){return(0,Ge.L)(this.variables,Ve)?this.observers.size?this.result():Promise.resolve():(this.options.variables=Ve,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:Ve},w.setVariables):Promise.resolve())},Ce.prototype.updateQuery=function(Ve){var nt=this.queryManager,Yt=Ve(nt.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});Yt&&(nt.cache.writeQuery({query:this.options.query,data:Yt,variables:this.variables}),nt.broadcastQueries())},Ce.prototype.startPolling=function(Ve){this.options.pollInterval=Ve,this.updatePolling()},Ce.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},Ce.prototype.applyNextFetchPolicy=function(Ve,nt){if(nt.nextFetchPolicy){var Mt=nt.fetchPolicy,Yt=void 0===Mt?"cache-first":Mt,tn=nt.initialFetchPolicy,on=void 0===tn?Yt:tn;"standby"===Yt||(nt.fetchPolicy="function"==typeof nt.nextFetchPolicy?nt.nextFetchPolicy(Yt,{reason:Ve,options:nt,observable:this,initialFetchPolicy:on}):"variables-changed"===Ve?on:nt.nextFetchPolicy)}return nt.fetchPolicy},Ce.prototype.fetch=function(Ve,nt,Mt){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,Ve,nt,Mt)},Ce.prototype.updatePolling=function(){var Ve=this;if(!this.queryManager.ssrMode){var Mt=this.pollingInfo,Yt=this.options.pollInterval;if(!Yt||!this.hasObservers())return void(Mt&&(clearTimeout(Mt.timeout),delete this.pollingInfo));if(!Mt||Mt.interval!==Yt){(0,x.V1)(Yt,22),(Mt||(this.pollingInfo={})).interval=Yt;var on=function(){var Mn,Bn;Ve.pollingInfo&&(F(Ve.queryInfo.networkStatus)||null!==(Bn=(Mn=Ve.options).skipPollAttempt)&&void 0!==Bn&&Bn.call(Mn)?bn():Ve.reobserve({fetchPolicy:"no-cache"===Ve.options.initialFetchPolicy?"no-cache":"network-only"},w.poll).then(bn,bn))},bn=function(){var Mn=Ve.pollingInfo;Mn&&(clearTimeout(Mn.timeout),Mn.timeout=setTimeout(on,Mn.interval))};bn()}}},Ce.prototype.updateLastResult=function(Ve,nt){void 0===nt&&(nt=this.variables);var Mt=this.getLastError();return Mt&&this.last&&!(0,Ge.L)(nt,this.last.variables)&&(Mt=void 0),this.last=(0,V.Cl)({result:this.queryManager.assumeImmutableResults?Ve:(0,mt.m)(Ve),variables:nt},Mt?{error:Mt}:null)},Ce.prototype.reobserveAsConcast=function(Ve,nt){var Mt=this;this.isTornDown=!1;var Yt=nt===w.refetch||nt===w.fetchMore||nt===w.poll,tn=this.options.variables,on=this.options.fetchPolicy,bn=(0,ze.o)(this.options,Ve||{}),Mn=Yt?bn:xe(this.options,bn),Bn=this.transformDocument(Mn.query);this.lastQuery=Bn,Yt||(this.updatePolling(),Ve&&Ve.variables&&!(0,Ge.L)(Ve.variables,tn)&&"standby"!==Mn.fetchPolicy&&(Mn.fetchPolicy===on||"function"==typeof Mn.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",Mn),void 0===nt&&(nt=w.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=ge(Mn.fetchPolicy));var xn=function(){Mt.concast===pi&&(Mt.waitForOwnResult=!1)},Kn=Mn.variables&&(0,V.Cl)({},Mn.variables),qn=this.fetch(Mn,nt,Bn),pi=qn.concast,li={next:function(ai){(0,Ge.L)(Mt.variables,Kn)&&(xn(),Mt.reportResult(ai,Kn))},error:function(ai){(0,Ge.L)(Mt.variables,Kn)&&(xn(),Mt.reportError(ai,Kn))}};return!Yt&&(qn.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=pi,this.observer=li),pi.addObserver(li),pi},Ce.prototype.reobserve=function(Ve,nt){return this.reobserveAsConcast(Ve,nt).promise},Ce.prototype.resubscribeAfterError=function(){for(var Ve=[],nt=0;nt0},Ce.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(Ve){return Ve.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},Ce.prototype.transformDocument=function(Ve){return this.queryManager.transform(Ve)},Ce}(pe.c);function ce(tt){var Ce=tt.options,Ve=Ce.fetchPolicy,nt=Ce.nextFetchPolicy;return"cache-and-network"===Ve||"network-only"===Ve?tt.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(Mt,Yt){return this.nextFetchPolicy=nt,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(Mt,Yt):Ve}}):tt.reobserve()}function N(tt){!1!==globalThis.__DEV__&&x.V1.error(23,tt.message,tt.stack)}function ke(tt){!1!==globalThis.__DEV__&&tt&&!1!==globalThis.__DEV__&&x.V1.debug(24,tt)}function ge(tt){return"network-only"===tt||"no-cache"===tt||"standby"===tt}be(B);var W=new(fe.et?WeakMap:Map);function H(tt,Ce){var Ve=tt[Ce];"function"==typeof Ve&&(tt[Ce]=function(){return W.set(tt,(W.get(tt)+1)%1e15),Ve.apply(this,arguments)})}function me(tt){tt.notifyTimeout&&(clearTimeout(tt.notifyTimeout),tt.notifyTimeout=void 0)}var qe=function(){function tt(Ce,Ve){void 0===Ve&&(Ve=Ce.generateQueryId()),this.queryId=Ve,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var nt=this.cache=Ce.cache;W.has(nt)||(W.set(nt,0),H(nt,"evict"),H(nt,"modify"),H(nt,"reset"))}return tt.prototype.init=function(Ce){var Ve=Ce.networkStatus||w.loading;return this.variables&&this.networkStatus!==w.loading&&!(0,Ge.L)(this.variables,Ce.variables)&&(Ve=w.setVariables),(0,Ge.L)(Ce.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:Ce.document,variables:Ce.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:Ve}),Ce.observableQuery&&this.setObservableQuery(Ce.observableQuery),Ce.lastRequestId&&(this.lastRequestId=Ce.lastRequestId),this},tt.prototype.reset=function(){me(this),this.dirty=!1},tt.prototype.resetDiff=function(){this.lastDiff=void 0},tt.prototype.getDiff=function(){var Ce=this.getDiffOptions();if(this.lastDiff&&(0,Ge.L)(Ce,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var Ve=this.observableQuery;if(Ve&&"no-cache"===Ve.options.fetchPolicy)return{complete:!1};var nt=this.cache.diff(Ce);return this.updateLastDiff(nt,Ce),nt},tt.prototype.updateLastDiff=function(Ce,Ve){this.lastDiff=Ce?{diff:Ce,options:Ve||this.getDiffOptions()}:void 0},tt.prototype.getDiffOptions=function(Ce){var Ve;return void 0===Ce&&(Ce=this.variables),{query:this.document,variables:Ce,returnPartialData:!0,optimistic:!0,canonizeResults:null===(Ve=this.observableQuery)||void 0===Ve?void 0:Ve.options.canonizeResults}},tt.prototype.setDiff=function(Ce){var nt,Ve=this,Mt=this.lastDiff&&this.lastDiff.diff;Ce&&!Ce.complete&&null!==(nt=this.observableQuery)&&void 0!==nt&&nt.getLastError()||(this.updateLastDiff(Ce),!this.dirty&&!(0,Ge.L)(Mt&&Mt.result,Ce&&Ce.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return Ve.notify()},0))))},tt.prototype.setObservableQuery=function(Ce){var Ve=this;Ce!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=Ce,Ce?(Ce.queryInfo=this,this.listeners.add(this.oqListener=function(){Ve.getDiff().fromOptimisticTransaction?Ce.observe():ce(Ce)})):delete this.oqListener)},tt.prototype.notify=function(){var Ce=this;me(this),this.shouldNotify()&&this.listeners.forEach(function(Ve){return Ve(Ce)}),this.dirty=!1},tt.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(F(this.networkStatus)&&this.observableQuery){var Ce=this.observableQuery.options.fetchPolicy;if("cache-only"!==Ce&&"cache-and-network"!==Ce)return!1}return!0},tt.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=tt.prototype.cancel;var Ce=this.observableQuery;Ce&&Ce.stopPolling()}},tt.prototype.cancel=function(){},tt.prototype.updateWatch=function(Ce){var Ve=this;void 0===Ce&&(Ce=this.variables);var nt=this.observableQuery;if(!nt||"no-cache"!==nt.options.fetchPolicy){var Mt=(0,V.Cl)((0,V.Cl)({},this.getDiffOptions(Ce)),{watcher:this,callback:function(Yt){return Ve.setDiff(Yt)}});(!this.lastWatch||!(0,Ge.L)(Mt,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=Mt))}},tt.prototype.resetLastWrite=function(){this.lastWrite=void 0},tt.prototype.shouldWrite=function(Ce,Ve){var nt=this.lastWrite;return!(nt&&nt.dmCount===W.get(this.cache)&&(0,Ge.L)(Ve,nt.variables)&&(0,Ge.L)(Ce.data,nt.result.data))},tt.prototype.markResult=function(Ce,Ve,nt,Mt){var Yt=this,tn=new Tt.ZI,on=(0,It.E)(Ce.errors)?Ce.errors.slice(0):[];if(this.reset(),"incremental"in Ce&&(0,It.E)(Ce.incremental)){var bn=$n(this.getDiff().result,Ce);Ce.data=bn}else if("hasNext"in Ce&&Ce.hasNext){var Mn=this.getDiff();Ce.data=tn.merge(Mn.result,Ce.data)}this.graphQLErrors=on,"no-cache"===nt.fetchPolicy?this.updateLastDiff({result:Ce.data,complete:!0},this.getDiffOptions(nt.variables)):0!==Mt&&(rt(Ce,nt.errorPolicy)?this.cache.performTransaction(function(Bn){if(Yt.shouldWrite(Ce,nt.variables))Bn.writeQuery({query:Ve,data:Ce.data,variables:nt.variables,overwrite:1===Mt}),Yt.lastWrite={result:Ce,variables:nt.variables,dmCount:W.get(Yt.cache)};else if(Yt.lastDiff&&Yt.lastDiff.diff.complete)return void(Ce.data=Yt.lastDiff.diff.result);var xn=Yt.getDiffOptions(nt.variables),Kn=Bn.diff(xn);!Yt.stopped&&(0,Ge.L)(Yt.variables,nt.variables)&&Yt.updateWatch(nt.variables),Yt.updateLastDiff(Kn,xn),Kn.complete&&(Ce.data=Kn.result)}):this.lastWrite=void 0)},tt.prototype.markReady=function(){return this.networkError=null,this.networkStatus=w.ready},tt.prototype.markError=function(Ce){return this.networkStatus=w.error,this.lastWrite=void 0,this.reset(),Ce.graphQLErrors&&(this.graphQLErrors=Ce.graphQLErrors),Ce.networkError&&(this.networkError=Ce.networkError),Ce},tt}();function rt(tt,Ce){void 0===Ce&&(Ce="none");var Ve="ignore"===Ce||"all"===Ce,nt=!Xe(tt);return!nt&&Ve&&tt.data&&(nt=!0),nt}var Ft=a(4420),rn=a(2170),Cn=a(2151),Jn=Object.prototype.hasOwnProperty,jn=Object.create(null),Gn=function(){function tt(Ce){var Ve=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new rn.A(Cn.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Ft.b(!1);var nt=new q.c(function(Yt){return Ve.cache.transformDocument(Yt)},{cache:!1});this.cache=Ce.cache,this.link=Ce.link,this.defaultOptions=Ce.defaultOptions,this.queryDeduplication=Ce.queryDeduplication,this.clientAwareness=Ce.clientAwareness,this.localState=Ce.localState,this.ssrMode=Ce.ssrMode,this.assumeImmutableResults=Ce.assumeImmutableResults;var Mt=Ce.documentTransform;this.documentTransform=Mt?nt.concat(Mt).concat(nt):nt,this.defaultContext=Ce.defaultContext||Object.create(null),(this.onBroadcast=Ce.onBroadcast)&&(this.mutationStore=Object.create(null))}return tt.prototype.stop=function(){var Ce=this;this.queries.forEach(function(Ve,nt){Ce.stopQueryNoBroadcast(nt)}),this.cancelPendingFetches((0,x.vA)(25))},tt.prototype.cancelPendingFetches=function(Ce){this.fetchCancelFns.forEach(function(Ve){return Ve(Ce)}),this.fetchCancelFns.clear()},tt.prototype.mutate=function(Ce){return(0,V.sH)(this,arguments,void 0,function(Ve){var nt,Mt,Yt,tn,on,bn,Mn,Bn=Ve.mutation,xn=Ve.variables,Kn=Ve.optimisticResponse,qn=Ve.updateQueries,pi=Ve.refetchQueries,ei=void 0===pi?[]:pi,li=Ve.awaitRefetchQueries,ai=void 0!==li&&li,mi=Ve.update,Ei=Ve.onQueryUpdated,Xi=Ve.fetchPolicy,Si=void 0===Xi?(null===(bn=this.defaultOptions.mutate)||void 0===bn?void 0:bn.fetchPolicy)||"network-only":Xi,no=Ve.errorPolicy,ao=void 0===no?(null===(Mn=this.defaultOptions.mutate)||void 0===Mn?void 0:Mn.errorPolicy)||"none":no,ro=Ve.keepRootFields,An=Ve.context;return(0,V.YH)(this,function(_o){switch(_o.label){case 0:return(0,x.V1)(Bn,26),(0,x.V1)("network-only"===Si||"no-cache"===Si,27),nt=this.generateMutationId(),Bn=this.cache.transformForLink(this.transform(Bn)),Mt=this.getDocumentInfo(Bn).hasClientExports,xn=this.getVariables(Bn,xn),Mt?[4,this.localState.addExportedVariables(Bn,xn,An)]:[3,2];case 1:xn=_o.sent(),_o.label=2;case 2:return Yt=this.mutationStore&&(this.mutationStore[nt]={mutation:Bn,variables:xn,loading:!0,error:null}),tn=Kn&&this.markMutationOptimistic(Kn,{mutationId:nt,document:Bn,variables:xn,fetchPolicy:Si,errorPolicy:ao,context:An,updateQueries:qn,update:mi,keepRootFields:ro}),this.broadcastQueries(),on=this,[2,new Promise(function(qo,Gr){return ee(on.getObservableFromLink(Bn,(0,V.Cl)((0,V.Cl)({},An),{optimisticResponse:tn?Kn:void 0}),xn,{},!1),function(Do){if(Xe(Do)&&"none"===ao)throw new Ct({graphQLErrors:dt(Do)});Yt&&(Yt.loading=!1,Yt.error=null);var Qo=(0,V.Cl)({},Do);return"function"==typeof ei&&(ei=ei(Qo)),"ignore"===ao&&Xe(Qo)&&delete Qo.errors,on.markMutationResult({mutationId:nt,result:Qo,document:Bn,variables:xn,fetchPolicy:Si,errorPolicy:ao,context:An,update:mi,updateQueries:qn,awaitRefetchQueries:ai,refetchQueries:ei,removeOptimistic:tn?nt:void 0,onQueryUpdated:Ei,keepRootFields:ro})}).subscribe({next:function(Do){on.broadcastQueries(),(!("hasNext"in Do)||!1===Do.hasNext)&&qo(Do)},error:function(Do){Yt&&(Yt.loading=!1,Yt.error=Do),tn&&on.cache.removeOptimistic(nt),on.broadcastQueries(),Gr(Do instanceof Ct?Do:new Ct({networkError:Do}))}})})]}})})},tt.prototype.markMutationResult=function(Ce,Ve){var nt=this;void 0===Ve&&(Ve=this.cache);var Mt=Ce.result,Yt=[],tn="no-cache"===Ce.fetchPolicy;if(!tn&&rt(Mt,Ce.errorPolicy)){if(en(Mt)||Yt.push({result:Mt.data,dataId:"ROOT_MUTATION",query:Ce.document,variables:Ce.variables}),en(Mt)&&(0,It.E)(Mt.incremental)){var on=Ve.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(Ce.document).asQuery,variables:Ce.variables,optimistic:!1,returnPartialData:!0}),bn=void 0;on.result&&(bn=$n(on.result,Mt)),typeof bn<"u"&&(Mt.data=bn,Yt.push({result:bn,dataId:"ROOT_MUTATION",query:Ce.document,variables:Ce.variables}))}var Mn=Ce.updateQueries;Mn&&this.queries.forEach(function(xn,Kn){var qn=xn.observableQuery,pi=qn&&qn.queryName;if(pi&&Jn.call(Mn,pi)){var ei=Mn[pi],li=nt.queries.get(Kn),ai=li.document,mi=li.variables,Ei=Ve.diff({query:ai,variables:mi,returnPartialData:!0,optimistic:!1}),Xi=Ei.result;if(Ei.complete&&Xi){var no=ei(Xi,{mutationResult:Mt,queryName:ai&&(0,dn.n4)(ai)||void 0,queryVariables:mi});no&&Yt.push({result:no,dataId:"ROOT_QUERY",query:ai,variables:mi})}}})}if(Yt.length>0||(Ce.refetchQueries||"").length>0||Ce.update||Ce.onQueryUpdated||Ce.removeOptimistic){var Bn=[];if(this.refetchQueries({updateCache:function(xn){tn||Yt.forEach(function(ei){return xn.write(ei)});var Kn=Ce.update,qn=!function Lt(tt){return en(tt)||function Ut(tt){return"hasNext"in tt&&"data"in tt}(tt)}(Mt)||en(Mt)&&!Mt.hasNext;if(Kn){if(!tn){var pi=xn.diff({id:"ROOT_MUTATION",query:nt.getDocumentInfo(Ce.document).asQuery,variables:Ce.variables,optimistic:!1,returnPartialData:!0});pi.complete&&("incremental"in(Mt=(0,V.Cl)((0,V.Cl)({},Mt),{data:pi.result}))&&delete Mt.incremental,"hasNext"in Mt&&delete Mt.hasNext)}qn&&Kn(xn,Mt,{context:Ce.context,variables:Ce.variables})}!tn&&!Ce.keepRootFields&&qn&&xn.modify({id:"ROOT_MUTATION",fields:function(ei,li){return"__typename"===li.fieldName?ei:li.DELETE}})},include:Ce.refetchQueries,optimistic:!1,removeOptimistic:Ce.removeOptimistic,onQueryUpdated:Ce.onQueryUpdated||null}).forEach(function(xn){return Bn.push(xn)}),Ce.awaitRefetchQueries||Ce.onQueryUpdated)return Promise.all(Bn).then(function(){return Mt})}return Promise.resolve(Mt)},tt.prototype.markMutationOptimistic=function(Ce,Ve){var nt=this,Mt="function"==typeof Ce?Ce(Ve.variables,{IGNORE:jn}):Ce;return Mt!==jn&&(this.cache.recordOptimisticTransaction(function(Yt){try{nt.markMutationResult((0,V.Cl)((0,V.Cl)({},Ve),{result:{data:Mt}}),Yt)}catch(tn){!1!==globalThis.__DEV__&&x.V1.error(tn)}},Ve.mutationId),!0)},tt.prototype.fetchQuery=function(Ce,Ve,nt){return this.fetchConcastWithInfo(Ce,Ve,nt).concast.promise},tt.prototype.getQueryStore=function(){var Ce=Object.create(null);return this.queries.forEach(function(Ve,nt){Ce[nt]={variables:Ve.variables,networkStatus:Ve.networkStatus,networkError:Ve.networkError,graphQLErrors:Ve.graphQLErrors}}),Ce},tt.prototype.resetErrors=function(Ce){var Ve=this.queries.get(Ce);Ve&&(Ve.networkError=void 0,Ve.graphQLErrors=[])},tt.prototype.transform=function(Ce){return this.documentTransform.transformDocument(Ce)},tt.prototype.getDocumentInfo=function(Ce){var Ve=this.transformCache;if(!Ve.has(Ce)){var nt={hasClientExports:(0,Oe.f2)(Ce),hasForcedResolvers:this.localState.shouldForceResolvers(Ce),hasNonreactiveDirective:(0,Oe.d8)(["nonreactive"],Ce),clientQuery:this.localState.clientQuery(Ce),serverQuery:(0,Un.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],Ce),defaultVars:(0,dn.wY)((0,dn.Vu)(Ce)),asQuery:(0,V.Cl)((0,V.Cl)({},Ce),{definitions:Ce.definitions.map(function(Mt){return"OperationDefinition"===Mt.kind&&"query"!==Mt.operation?(0,V.Cl)((0,V.Cl)({},Mt),{operation:"query"}):Mt})})};Ve.set(Ce,nt)}return Ve.get(Ce)},tt.prototype.getVariables=function(Ce,Ve){return(0,V.Cl)((0,V.Cl)({},this.getDocumentInfo(Ce).defaultVars),Ve)},tt.prototype.watchQuery=function(Ce){var Ve=this.transform(Ce.query);typeof(Ce=(0,V.Cl)((0,V.Cl)({},Ce),{variables:this.getVariables(Ve,Ce.variables)})).notifyOnNetworkStatusChange>"u"&&(Ce.notifyOnNetworkStatusChange=!1);var nt=new qe(this),Mt=new B({queryManager:this,queryInfo:nt,options:Ce});return Mt.lastQuery=Ve,this.queries.set(Mt.queryId,nt),nt.init({document:Ve,observableQuery:Mt,variables:Mt.variables}),Mt},tt.prototype.query=function(Ce,Ve){var nt=this;return void 0===Ve&&(Ve=this.generateQueryId()),(0,x.V1)(Ce.query,28),(0,x.V1)("Document"===Ce.query.kind,29),(0,x.V1)(!Ce.returnPartialData,30),(0,x.V1)(!Ce.pollInterval,31),this.fetchQuery(Ve,(0,V.Cl)((0,V.Cl)({},Ce),{query:this.transform(Ce.query)})).finally(function(){return nt.stopQuery(Ve)})},tt.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},tt.prototype.generateRequestId=function(){return this.requestIdCounter++},tt.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},tt.prototype.stopQueryInStore=function(Ce){this.stopQueryInStoreNoBroadcast(Ce),this.broadcastQueries()},tt.prototype.stopQueryInStoreNoBroadcast=function(Ce){var Ve=this.queries.get(Ce);Ve&&Ve.stop()},tt.prototype.clearStore=function(Ce){return void 0===Ce&&(Ce={discardWatches:!0}),this.cancelPendingFetches((0,x.vA)(32)),this.queries.forEach(function(Ve){Ve.observableQuery?Ve.networkStatus=w.loading:Ve.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(Ce)},tt.prototype.getObservableQueries=function(Ce){var Ve=this;void 0===Ce&&(Ce="active");var nt=new Map,Mt=new Map,Yt=new Set;return Array.isArray(Ce)&&Ce.forEach(function(tn){"string"==typeof tn?Mt.set(tn,!1):(0,at.Kc)(tn)?Mt.set(Ve.transform(tn),!1):(0,wt.U)(tn)&&tn.query&&Yt.add(tn)}),this.queries.forEach(function(tn,on){var bn=tn.observableQuery,Mn=tn.document;if(bn){if("all"===Ce)return void nt.set(on,bn);var Bn=bn.queryName;if("standby"===bn.options.fetchPolicy||"active"===Ce&&!bn.hasObservers())return;("active"===Ce||Bn&&Mt.has(Bn)||Mn&&Mt.has(Mn))&&(nt.set(on,bn),Bn&&Mt.set(Bn,!0),Mn&&Mt.set(Mn,!0))}}),Yt.size&&Yt.forEach(function(tn){var on=(0,Ot.v)("legacyOneTimeQuery"),bn=Ve.getQuery(on).init({document:tn.query,variables:tn.variables}),Mn=new B({queryManager:Ve,queryInfo:bn,options:(0,V.Cl)((0,V.Cl)({},tn),{fetchPolicy:"network-only"})});(0,x.V1)(Mn.queryId===on),bn.setObservableQuery(Mn),nt.set(on,Mn)}),!1!==globalThis.__DEV__&&Mt.size&&Mt.forEach(function(tn,on){tn||!1!==globalThis.__DEV__&&x.V1.warn("string"==typeof on?33:34,on)}),nt},tt.prototype.reFetchObservableQueries=function(Ce){var Ve=this;void 0===Ce&&(Ce=!1);var nt=[];return this.getObservableQueries(Ce?"all":"active").forEach(function(Mt,Yt){var tn=Mt.options.fetchPolicy;Mt.resetLastResults(),(Ce||"standby"!==tn&&"cache-only"!==tn)&&nt.push(Mt.refetch()),Ve.getQuery(Yt).setDiff(null)}),this.broadcastQueries(),Promise.all(nt)},tt.prototype.setObservableQuery=function(Ce){this.getQuery(Ce.queryId).setObservableQuery(Ce)},tt.prototype.startGraphQLSubscription=function(Ce){var Ve=this,nt=Ce.query,Mt=Ce.fetchPolicy,Yt=Ce.errorPolicy,tn=void 0===Yt?"none":Yt,on=Ce.variables,bn=Ce.context,Mn=void 0===bn?{}:bn,Bn=Ce.extensions,xn=void 0===Bn?{}:Bn;nt=this.transform(nt),on=this.getVariables(nt,on);var Kn=function(pi){return Ve.getObservableFromLink(nt,Mn,pi,xn).map(function(ei){"no-cache"!==Mt&&(rt(ei,tn)&&Ve.cache.write({query:nt,result:ei.data,dataId:"ROOT_SUBSCRIPTION",variables:pi}),Ve.broadcastQueries());var li=Xe(ei),ai=function zt(tt){return!!tt.extensions&&Array.isArray(tt.extensions[Le])}(ei);if(li||ai){var mi={};if(li&&(mi.graphQLErrors=ei.errors),ai&&(mi.protocolErrors=ei.extensions[Le]),"none"===tn||ai)throw new Ct(mi)}return"ignore"===tn&&delete ei.errors,ei})};if(this.getDocumentInfo(nt).hasClientExports){var qn=this.localState.addExportedVariables(nt,on,Mn).then(Kn);return new pe.c(function(pi){var ei=null;return qn.then(function(li){return ei=li.subscribe(pi)},pi.error),function(){return ei&&ei.unsubscribe()}})}return Kn(on)},tt.prototype.stopQuery=function(Ce){this.stopQueryNoBroadcast(Ce),this.broadcastQueries()},tt.prototype.stopQueryNoBroadcast=function(Ce){this.stopQueryInStoreNoBroadcast(Ce),this.removeQuery(Ce)},tt.prototype.removeQuery=function(Ce){this.fetchCancelFns.delete(Ce),this.queries.has(Ce)&&(this.getQuery(Ce).stop(),this.queries.delete(Ce))},tt.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(Ce){return Ce.notify()})},tt.prototype.getLocalState=function(){return this.localState},tt.prototype.getObservableFromLink=function(Ce,Ve,nt,Mt,Yt){var on,tn=this;void 0===Yt&&(Yt=null!==(on=Ve?.queryDeduplication)&&void 0!==on?on:this.queryDeduplication);var bn,Mn=this.getDocumentInfo(Ce),Bn=Mn.serverQuery,xn=Mn.clientQuery;if(Bn){var qn=this.inFlightLinkObservables,pi=this.link,ei={query:Bn,variables:nt,operationName:(0,dn.n4)(Bn)||void 0,context:this.prepareContext((0,V.Cl)((0,V.Cl)({},Ve),{forceFetch:!Yt})),extensions:Mt};if(Ve=ei.context,Yt){var li=(0,Fe.y)(Bn),ai=(0,ue.M)(nt),mi=qn.lookup(li,ai);if(!(bn=mi.observable)){var Ei=new re([J(pi,ei)]);bn=mi.observable=Ei,Ei.beforeNext(function(){qn.remove(li,ai)})}}else bn=new re([J(pi,ei)])}else bn=new re([pe.c.of({data:{}})]),Ve=this.prepareContext(Ve);return xn&&(bn=ee(bn,function(Xi){return tn.localState.runResolvers({document:xn,remoteResult:Xi,context:Ve,variables:nt})})),bn},tt.prototype.getResultsFromLink=function(Ce,Ve,nt){var Mt=Ce.lastRequestId=this.generateRequestId(),Yt=this.cache.transformForLink(nt.query);return ee(this.getObservableFromLink(Yt,nt.context,nt.variables),function(tn){var on=dt(tn),bn=on.length>0;if(Mt>=Ce.lastRequestId){if(bn&&"none"===nt.errorPolicy)throw Ce.markError(new Ct({graphQLErrors:on}));Ce.markResult(tn,Yt,nt,Ve),Ce.markReady()}var Mn={data:tn.data,loading:!1,networkStatus:w.ready};return bn&&"ignore"!==nt.errorPolicy&&(Mn.errors=on,Mn.networkStatus=w.error),Mn},function(tn){var on=function xt(tt){return tt.hasOwnProperty("graphQLErrors")}(tn)?tn:new Ct({networkError:tn});throw Mt>=Ce.lastRequestId&&Ce.markError(on),on})},tt.prototype.fetchConcastWithInfo=function(Ce,Ve,nt,Mt){var Yt=this;void 0===nt&&(nt=w.loading),void 0===Mt&&(Mt=Ve.query);var no,ao,tn=this.getVariables(Mt,Ve.variables),on=this.getQuery(Ce),bn=this.defaultOptions.watchQuery,Mn=Ve.fetchPolicy,xn=Ve.errorPolicy,qn=Ve.returnPartialData,ei=Ve.notifyOnNetworkStatusChange,ai=Ve.context,Ei=Object.assign({},Ve,{query:Mt,variables:tn,fetchPolicy:void 0===Mn?bn&&bn.fetchPolicy||"cache-first":Mn,errorPolicy:void 0===xn?bn&&bn.errorPolicy||"none":xn,returnPartialData:void 0!==qn&&qn,notifyOnNetworkStatusChange:void 0!==ei&&ei,context:void 0===ai?{}:ai}),Xi=function(An){Ei.variables=An;var _o=Yt.fetchQueryByPolicy(on,Ei,nt);return"standby"!==Ei.fetchPolicy&&_o.sources.length>0&&on.observableQuery&&on.observableQuery.applyNextFetchPolicy("after-fetch",Ve),_o},Si=function(){return Yt.fetchCancelFns.delete(Ce)};if(this.fetchCancelFns.set(Ce,function(An){Si(),setTimeout(function(){return no.cancel(An)})}),this.getDocumentInfo(Ei.query).hasClientExports)no=new re(this.localState.addExportedVariables(Ei.query,Ei.variables,Ei.context).then(Xi).then(function(An){return An.sources})),ao=!0;else{var ro=Xi(Ei.variables);ao=ro.fromLink,no=new re(ro.sources)}return no.promise.then(Si,Si),{concast:no,fromLink:ao}},tt.prototype.refetchQueries=function(Ce){var Ve=this,nt=Ce.updateCache,Mt=Ce.include,Yt=Ce.optimistic,tn=void 0!==Yt&&Yt,on=Ce.removeOptimistic,bn=void 0===on?tn?(0,Ot.v)("refetchQueries"):void 0:on,Mn=Ce.onQueryUpdated,Bn=new Map;Mt&&this.getObservableQueries(Mt).forEach(function(Kn,qn){Bn.set(qn,{oq:Kn,lastDiff:Ve.getQuery(qn).getDiff()})});var xn=new Map;return nt&&this.cache.batch({update:nt,optimistic:tn&&bn||!1,removeOptimistic:bn,onWatchUpdated:function(Kn,qn,pi){var ei=Kn.watcher instanceof qe&&Kn.watcher.observableQuery;if(ei){if(Mn){Bn.delete(ei.queryId);var li=Mn(ei,qn,pi);return!0===li&&(li=ei.refetch()),!1!==li&&xn.set(ei,li),li}null!==Mn&&Bn.set(ei.queryId,{oq:ei,lastDiff:pi,diff:qn})}}}),Bn.size&&Bn.forEach(function(Kn,qn){var ai,pi=Kn.oq,ei=Kn.lastDiff,li=Kn.diff;if(Mn){if(!li){var mi=pi.queryInfo;mi.reset(),li=mi.getDiff()}ai=Mn(pi,li,ei)}(!Mn||!0===ai)&&(ai=pi.refetch()),!1!==ai&&xn.set(pi,ai),qn.indexOf("legacyOneTimeQuery")>=0&&Ve.stopQueryNoBroadcast(qn)}),bn&&this.cache.removeOptimistic(bn),xn},tt.prototype.fetchQueryByPolicy=function(Ce,Ve,nt){var Mt=this,Yt=Ve.query,tn=Ve.variables,on=Ve.fetchPolicy,bn=Ve.refetchWritePolicy,Mn=Ve.errorPolicy,Bn=Ve.returnPartialData,xn=Ve.context,Kn=Ve.notifyOnNetworkStatusChange,qn=Ce.networkStatus;Ce.init({document:Yt,variables:tn,networkStatus:nt});var pi=function(){return Ce.getDiff()},ei=function(Xi,Si){void 0===Si&&(Si=Ce.networkStatus||w.loading);var no=Xi.result;!1!==globalThis.__DEV__&&!Bn&&!(0,Ge.L)(no,{})&&ke(Xi.missing);var ao=function(ro){return pe.c.of((0,V.Cl)({data:ro,loading:F(Si),networkStatus:Si},Xi.complete?null:{partial:!0}))};return no&&Mt.getDocumentInfo(Yt).hasForcedResolvers?Mt.localState.runResolvers({document:Yt,remoteResult:{data:no},context:xn,variables:tn,onlyRunForcedResolvers:!0}).then(function(ro){return ao(ro.data||void 0)}):"none"===Mn&&Si===w.refetch&&Array.isArray(Xi.missing)?ao(void 0):ao(no)},li="no-cache"===on?0:nt===w.refetch&&"merge"!==bn?1:2,ai=function(){return Mt.getResultsFromLink(Ce,li,{query:Yt,variables:tn,context:xn,fetchPolicy:on,errorPolicy:Mn})},mi=Kn&&"number"==typeof qn&&qn!==nt&&F(nt);switch(on){default:case"cache-first":return(Ei=pi()).complete?{fromLink:!1,sources:[ei(Ei,Ce.markReady())]}:Bn||mi?{fromLink:!0,sources:[ei(Ei),ai()]}:{fromLink:!0,sources:[ai()]};case"cache-and-network":var Ei;return(Ei=pi()).complete||Bn||mi?{fromLink:!0,sources:[ei(Ei),ai()]}:{fromLink:!0,sources:[ai()]};case"cache-only":return{fromLink:!1,sources:[ei(pi(),Ce.markReady())]};case"network-only":return mi?{fromLink:!0,sources:[ei(pi()),ai()]}:{fromLink:!0,sources:[ai()]};case"no-cache":return mi?{fromLink:!0,sources:[ei(Ce.getDiff()),ai()]}:{fromLink:!0,sources:[ai()]};case"standby":return{fromLink:!1,sources:[]}}},tt.prototype.getQuery=function(Ce){return Ce&&!this.queries.has(Ce)&&this.queries.set(Ce,new qe(this,Ce)),this.queries.get(Ce)},tt.prototype.prepareContext=function(Ce){void 0===Ce&&(Ce={});var Ve=this.localState.prepareContext(Ce);return(0,V.Cl)((0,V.Cl)((0,V.Cl)({},this.defaultContext),Ve),{clientAwareness:this.clientAwareness})},tt}(),zi=a(1955);function Zi(tt){return tt.kind===zi.b.FIELD||tt.kind===zi.b.FRAGMENT_SPREAD||tt.kind===zi.b.INLINE_FRAGMENT}var pn=a(6108),hn=a(4141),Hn=function(){function tt(Ce){var Ve=Ce.cache,nt=Ce.client,Mt=Ce.resolvers,Yt=Ce.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=Ve,nt&&(this.client=nt),Mt&&this.addResolvers(Mt),Yt&&this.setFragmentMatcher(Yt)}return tt.prototype.addResolvers=function(Ce){var Ve=this;this.resolvers=this.resolvers||{},Array.isArray(Ce)?Ce.forEach(function(nt){Ve.resolvers=(0,Tt.D9)(Ve.resolvers,nt)}):this.resolvers=(0,Tt.D9)(this.resolvers,Ce)},tt.prototype.setResolvers=function(Ce){this.resolvers={},this.addResolvers(Ce)},tt.prototype.getResolvers=function(){return this.resolvers||{}},tt.prototype.runResolvers=function(Ce){return(0,V.sH)(this,arguments,void 0,function(Ve){var nt=Ve.document,Mt=Ve.remoteResult,Yt=Ve.context,tn=Ve.variables,on=Ve.onlyRunForcedResolvers,bn=void 0!==on&&on;return(0,V.YH)(this,function(Mn){return nt?[2,this.resolveDocument(nt,Mt.data,Yt,tn,this.fragmentMatcher,bn).then(function(Bn){return(0,V.Cl)((0,V.Cl)({},Mt),{data:Bn.result})})]:[2,Mt]})})},tt.prototype.setFragmentMatcher=function(Ce){this.fragmentMatcher=Ce},tt.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},tt.prototype.clientQuery=function(Ce){return(0,Oe.d8)(["client"],Ce)&&this.resolvers?Ce:null},tt.prototype.serverQuery=function(Ce){return(0,Un.er)(Ce)},tt.prototype.prepareContext=function(Ce){var Ve=this.cache;return(0,V.Cl)((0,V.Cl)({},Ce),{cache:Ve,getCacheKey:function(nt){return Ve.identify(nt)}})},tt.prototype.addExportedVariables=function(Ce){return(0,V.sH)(this,arguments,void 0,function(Ve,nt,Mt){return void 0===nt&&(nt={}),void 0===Mt&&(Mt={}),(0,V.YH)(this,function(Yt){return Ve?[2,this.resolveDocument(Ve,this.buildRootValueFromCache(Ve,nt)||{},this.prepareContext(Mt),nt).then(function(tn){return(0,V.Cl)((0,V.Cl)({},nt),tn.exportedVariables)})]:[2,(0,V.Cl)({},nt)]})})},tt.prototype.shouldForceResolvers=function(Ce){var Ve=!1;return(0,kn.YR)(Ce,{Directive:{enter:function(nt){if("client"===nt.name.value&&nt.arguments&&(Ve=nt.arguments.some(function(Mt){return"always"===Mt.name.value&&"BooleanValue"===Mt.value.kind&&!0===Mt.value.value})))return kn.sP}}}),Ve},tt.prototype.buildRootValueFromCache=function(Ce,Ve){return this.cache.diff({query:(0,Un.zc)(Ce),variables:Ve,returnPartialData:!0,optimistic:!1}).result},tt.prototype.resolveDocument=function(Ce,Ve){return(0,V.sH)(this,arguments,void 0,function(nt,Mt,Yt,tn,on,bn){var Mn,Bn,xn,Kn,qn,pi,ei,li,ai,mi;return void 0===Yt&&(Yt={}),void 0===tn&&(tn={}),void 0===on&&(on=function(){return!0}),void 0===bn&&(bn=!1),(0,V.YH)(this,function(Xi){return Mn=(0,dn.Vn)(nt),Bn=(0,dn.zK)(nt),xn=(0,pn.JG)(Bn),Kn=this.collectSelectionsToResolve(Mn,xn),pi=(qn=Mn.operation)?qn.charAt(0).toUpperCase()+qn.slice(1):"Query",li=(ei=this).cache,ai=ei.client,mi={fragmentMap:xn,context:(0,V.Cl)((0,V.Cl)({},Yt),{cache:li,client:ai}),variables:tn,fragmentMatcher:on,defaultOperationType:pi,exportedVariables:{},selectionsToResolve:Kn,onlyRunForcedResolvers:bn},[2,this.resolveSelectionSet(Mn.selectionSet,!1,Mt,mi).then(function(Si){return{result:Si,exportedVariables:mi.exportedVariables}})]})})},tt.prototype.resolveSelectionSet=function(Ce,Ve,nt,Mt){return(0,V.sH)(this,void 0,void 0,function(){var Yt,tn,on,bn,Bn=this;return(0,V.YH)(this,function(xn){return Yt=Mt.fragmentMap,tn=Mt.context,on=Mt.variables,bn=[nt],[2,Promise.all(Ce.selections.map(function(Kn){return(0,V.sH)(Bn,void 0,void 0,function(){var qn;return(0,V.YH)(this,function(ei){return(Ve||Mt.selectionsToResolve.has(Kn))&&(0,Oe.MS)(Kn,on)?(0,at.dt)(Kn)?[2,this.resolveField(Kn,Ve,nt,Mt).then(function(li){var ai;typeof li<"u"&&bn.push(((ai={})[(0,at.ue)(Kn)]=li,ai))})]:((0,at.kd)(Kn)?qn=Kn:(0,x.V1)(qn=Yt[Kn.name.value],18,Kn.name.value),qn&&qn.typeCondition&&Mt.fragmentMatcher(nt,qn.typeCondition.name.value,tn)?[2,this.resolveSelectionSet(qn.selectionSet,Ve,nt,Mt).then(function(li){bn.push(li)})]:[2]):[2]})})})).then(function(){return(0,Tt.IM)(bn)})]})})},tt.prototype.resolveField=function(Ce,Ve,nt,Mt){return(0,V.sH)(this,void 0,void 0,function(){var Yt,tn,on,bn,Mn,Bn,xn,Kn,qn,pi=this;return(0,V.YH)(this,function(ei){return nt?(Yt=Mt.variables,tn=Ce.name.value,on=(0,at.ue)(Ce),bn=tn!==on,Mn=nt[on]||nt[tn],Bn=Promise.resolve(Mn),(!Mt.onlyRunForcedResolvers||this.shouldForceResolvers(Ce))&&(xn=nt.__typename||Mt.defaultOperationType,(Kn=this.resolvers&&this.resolvers[xn])&&(qn=Kn[bn?tn:on])&&(Bn=Promise.resolve(hn.bl.withValue(this.cache,qn,[nt,(0,at.MB)(Ce,Yt),Mt.context,{field:Ce,fragmentMap:Mt.fragmentMap}])))),[2,Bn.then(function(li){var ai,mi;if(void 0===li&&(li=Mn),Ce.directives&&Ce.directives.forEach(function(Xi){"export"===Xi.name.value&&Xi.arguments&&Xi.arguments.forEach(function(Si){"as"===Si.name.value&&"StringValue"===Si.value.kind&&(Mt.exportedVariables[Si.value.value]=li)})}),!Ce.selectionSet||null==li)return li;var Ei=null!==(mi=null===(ai=Ce.directives)||void 0===ai?void 0:ai.some(function(Xi){return"client"===Xi.name.value}))&&void 0!==mi&&mi;return Array.isArray(li)?pi.resolveSubSelectedArray(Ce,Ve||Ei,li,Mt):Ce.selectionSet?pi.resolveSelectionSet(Ce.selectionSet,Ve||Ei,li,Mt):void 0})]):[2,null]})})},tt.prototype.resolveSubSelectedArray=function(Ce,Ve,nt,Mt){var Yt=this;return Promise.all(nt.map(function(tn){return null===tn?null:Array.isArray(tn)?Yt.resolveSubSelectedArray(Ce,Ve,tn,Mt):Ce.selectionSet?Yt.resolveSelectionSet(Ce.selectionSet,Ve,tn,Mt):void 0}))},tt.prototype.collectSelectionsToResolve=function(Ce,Ve){var nt=function(tn){return!Array.isArray(tn)},Mt=this.selectionsToResolveCache;return function Yt(tn){if(!Mt.has(tn)){var on=new Set;Mt.set(tn,on),(0,kn.YR)(tn,{Directive:function(bn,Mn,Bn,xn,Kn){"client"===bn.name.value&&Kn.forEach(function(qn){nt(qn)&&Zi(qn)&&on.add(qn)})},FragmentSpread:function(bn,Mn,Bn,xn,Kn){var qn=Ve[bn.name.value];(0,x.V1)(qn,19,bn.name.value);var pi=Yt(qn);pi.size>0&&(Kn.forEach(function(ei){nt(ei)&&Zi(ei)&&on.add(ei)}),on.add(bn),pi.forEach(function(ei){on.add(ei)}))}})}return Mt.get(tn)}(Ce)},tt}();function En(tt,Ce){return(0,ze.o)(tt,Ce,Ce.variables&&{variables:(0,ze.o)((0,V.Cl)((0,V.Cl)({},tt&&tt.variables),Ce.variables))})}var Xn=a(8782),ci=!1,_i=function(){function tt(Ce){var Ve=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!Ce.cache)throw(0,x.vA)(15);var nt=Ce.uri,tn=Ce.cache,on=Ce.documentTransform,bn=Ce.ssrMode,Mn=void 0!==bn&&bn,Bn=Ce.ssrForceFetchDelay,xn=void 0===Bn?0:Bn,Kn=Ce.connectToDevTools,qn=Ce.queryDeduplication,pi=void 0===qn||qn,ei=Ce.defaultOptions,li=Ce.defaultContext,ai=Ce.assumeImmutableResults,mi=void 0===ai?tn.assumeImmutableResults:ai,Ei=Ce.resolvers,Xi=Ce.typeDefs,Si=Ce.fragmentMatcher,no=Ce.name,ao=Ce.version,ro=Ce.devtools,An=Ce.link;An||(An=nt?new Vt({uri:nt,credentials:Ce.credentials,headers:Ce.headers}):oe.C.empty()),this.link=An,this.cache=tn,this.disableNetworkFetches=Mn||xn>0,this.queryDeduplication=pi,this.defaultOptions=ei||Object.create(null),this.typeDefs=Xi,this.devtoolsConfig=(0,V.Cl)((0,V.Cl)({},ro),{enabled:ro?.enabled||Kn}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),xn&&setTimeout(function(){return Ve.disableNetworkFetches=!1},xn),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Ee.r,this.localState=new Hn({cache:tn,client:this,resolvers:Ei,fragmentMatcher:Si}),this.queryManager=new Gn({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:li,documentTransform:on,queryDeduplication:pi,ssrMode:Mn,clientAwareness:{name:no,version:ao},localState:this.localState,assumeImmutableResults:mi,onBroadcast:this.devtoolsConfig.enabled?function(){Ve.devToolsHookCb&&Ve.devToolsHookCb({action:{},state:{queries:Ve.queryManager.getQueryStore(),mutations:Ve.queryManager.mutationStore||{}},dataWithOptimisticResults:Ve.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return tt.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var Ce=window,Ve=Symbol.for("apollo.devtools");(Ce[Ve]=Ce[Ve]||[]).push(this),Ce.__APOLLO_CLIENT__=this,!ci&&!1!==globalThis.__DEV__&&(ci=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var nt=window.navigator,Mt=nt&&nt.userAgent,Yt=void 0;"string"==typeof Mt&&(Mt.indexOf("Chrome/")>-1?Yt="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Mt.indexOf("Firefox/")>-1&&(Yt="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),Yt&&!1!==globalThis.__DEV__&&x.V1.log("Download the Apollo DevTools for a better development experience: %s",Yt)}},1e4))}},Object.defineProperty(tt.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),tt.prototype.stop=function(){this.queryManager.stop()},tt.prototype.watchQuery=function(Ce){return this.defaultOptions.watchQuery&&(Ce=En(this.defaultOptions.watchQuery,Ce)),this.disableNetworkFetches&&("network-only"===Ce.fetchPolicy||"cache-and-network"===Ce.fetchPolicy)&&(Ce=(0,V.Cl)((0,V.Cl)({},Ce),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(Ce)},tt.prototype.query=function(Ce){return this.defaultOptions.query&&(Ce=En(this.defaultOptions.query,Ce)),(0,x.V1)("cache-and-network"!==Ce.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===Ce.fetchPolicy&&(Ce=(0,V.Cl)((0,V.Cl)({},Ce),{fetchPolicy:"cache-first"})),this.queryManager.query(Ce)},tt.prototype.mutate=function(Ce){return this.defaultOptions.mutate&&(Ce=En(this.defaultOptions.mutate,Ce)),this.queryManager.mutate(Ce)},tt.prototype.subscribe=function(Ce){return this.queryManager.startGraphQLSubscription(Ce)},tt.prototype.readQuery=function(Ce,Ve){return void 0===Ve&&(Ve=!1),this.cache.readQuery(Ce,Ve)},tt.prototype.watchFragment=function(Ce){return this.cache.watchFragment(Ce)},tt.prototype.readFragment=function(Ce,Ve){return void 0===Ve&&(Ve=!1),this.cache.readFragment(Ce,Ve)},tt.prototype.writeQuery=function(Ce){var Ve=this.cache.writeQuery(Ce);return!1!==Ce.broadcast&&this.queryManager.broadcastQueries(),Ve},tt.prototype.writeFragment=function(Ce){var Ve=this.cache.writeFragment(Ce);return!1!==Ce.broadcast&&this.queryManager.broadcastQueries(),Ve},tt.prototype.__actionHookForDevTools=function(Ce){this.devToolsHookCb=Ce},tt.prototype.__requestRaw=function(Ce){return J(this.link,Ce)},tt.prototype.resetStore=function(){var Ce=this;return Promise.resolve().then(function(){return Ce.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(Ce.resetStoreCallbacks.map(function(Ve){return Ve()}))}).then(function(){return Ce.reFetchObservableQueries()})},tt.prototype.clearStore=function(){var Ce=this;return Promise.resolve().then(function(){return Ce.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(Ce.clearStoreCallbacks.map(function(Ve){return Ve()}))})},tt.prototype.onResetStore=function(Ce){var Ve=this;return this.resetStoreCallbacks.push(Ce),function(){Ve.resetStoreCallbacks=Ve.resetStoreCallbacks.filter(function(nt){return nt!==Ce})}},tt.prototype.onClearStore=function(Ce){var Ve=this;return this.clearStoreCallbacks.push(Ce),function(){Ve.clearStoreCallbacks=Ve.clearStoreCallbacks.filter(function(nt){return nt!==Ce})}},tt.prototype.reFetchObservableQueries=function(Ce){return this.queryManager.reFetchObservableQueries(Ce)},tt.prototype.refetchQueries=function(Ce){var Ve=this.queryManager.refetchQueries(Ce),nt=[],Mt=[];Ve.forEach(function(tn,on){nt.push(on),Mt.push(tn)});var Yt=Promise.all(Mt);return Yt.queries=nt,Yt.results=Mt,Yt.catch(function(tn){!1!==globalThis.__DEV__&&x.V1.debug(17,tn)}),Yt},tt.prototype.getObservableQueries=function(Ce){return void 0===Ce&&(Ce="active"),this.queryManager.getObservableQueries(Ce)},tt.prototype.extract=function(Ce){return this.cache.extract(Ce)},tt.prototype.restore=function(Ce){return this.cache.restore(Ce)},tt.prototype.addResolvers=function(Ce){this.localState.addResolvers(Ce)},tt.prototype.setResolvers=function(Ce){this.localState.setResolvers(Ce)},tt.prototype.getResolvers=function(){return this.localState.getResolvers()},tt.prototype.setLocalStateFragmentMatcher=function(Ce){this.localState.setFragmentMatcher(Ce)},tt.prototype.setLink=function(Ce){this.link=this.queryManager.link=Ce},Object.defineProperty(tt.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),tt}();!1!==globalThis.__DEV__&&(_i.prototype.getMemoryInternals=Xn.ep);var lo=a(9869),bi=a(6354),mn=a(9172),Ui=a(941);function Mi(tt){return new s.c(Ce=>(tt().then(Ve=>{Ce.closed||(Ce.next(Ve),Ce.complete())},Ve=>{Ce.closed||Ce.error(Ve)}),()=>Ce.unsubscribe()))}class oo{zone;constructor(Ce){this.zone=Ce}now=Date.now?Date.now:()=>+new Date;schedule(Ce,Ve=0,nt){return this.zone.run(()=>L.schedule(Ce,Ve,nt))}}function Gi(tt){return tt[A.s]=()=>tt,tt}function jo(tt,Ce){return tt.pipe((0,Ui.Q)(new oo(Ce)))}class Jo{obsQuery;valueChanges;queryId;constructor(Ce,Ve,nt){this.obsQuery=Ce;const Mt=jo((0,I.H)(Gi(this.obsQuery)),Ve);this.valueChanges=nt.useInitialLoading?Mt.pipe(function Ki(tt){return function(Ve){return new s.c(function(Mt){const Yt=tt.getCurrentResult(),{loading:tn,errors:on,error:bn,partial:Mn,data:Bn}=Yt,{partialRefetch:xn,fetchPolicy:Kn}=tt.options,qn=on||bn;return xn&&Mn&&(!Bn||0===Object.keys(Bn).length)&&"cache-only"!==Kn&&!tn&&!qn&&Mt.next({...Yt,loading:!0,networkStatus:w.loading}),Ve.subscribe(Mt)})}}(this.obsQuery)):Mt,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(Ce){return this.obsQuery.refetch(Ce)}fetchMore(Ce){return this.obsQuery.fetchMore(Ce)}subscribeToMore(Ce){return this.obsQuery.subscribeToMore(Ce)}updateQuery(Ce){return this.obsQuery.updateQuery(Ce)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(Ce){return this.obsQuery.startPolling(Ce)}setOptions(Ce){return this.obsQuery.setOptions(Ce)}setVariables(Ce){return this.obsQuery.setVariables(Ce)}}const sr=new t.nKC("APOLLO_FLAGS"),fo=new t.nKC("APOLLO_OPTIONS"),uo=new t.nKC("APOLLO_NAMED_OPTIONS");class pr{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(Ce,Ve,nt){this.ngZone=Ce,this.flags=Ve,this._client=nt,this.useInitialLoading=Ve?.useInitialLoading??!1,this.useMutationLoading=Ve?.useMutationLoading??!1}watchQuery(Ce){return new Jo(this.ensureClient().watchQuery({...Ce}),this.ngZone,{useInitialLoading:this.useInitialLoading,...Ce})}query(Ce){return Mi(()=>this.ensureClient().query({...Ce}))}mutate(Ce){return function Ni(tt,Ce){return Ce?tt.pipe((0,mn.Z)({loading:!0}),(0,bi.T)(Ve=>({...Ve,loading:!!Ve.loading}))):tt.pipe((0,bi.T)(Ve=>({...Ve,loading:!1})))}(Mi(()=>this.ensureClient().mutate({...Ce})),Ce.useMutationLoading??this.useMutationLoading)}subscribe(Ce,Ve){const nt=(0,I.H)(Gi(this.ensureClient().subscribe({...Ce})));return Ve&&!0!==Ve.useZone?nt:jo(nt,this.ngZone)}get client(){return this.ensureClient()}set client(Ce){if(this._client)throw new Error("Client has been already defined");this._client=Ce}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}}let Lo=(()=>{class tt extends pr{map=new Map;constructor(Ve,nt,Mt,Yt){if(super(Ve,Yt),nt&&this.createDefault(nt),Mt&&"object"==typeof Mt)for(let tn in Mt)Mt.hasOwnProperty(tn)&&this.create(Mt[tn],tn)}create(Ve,nt){Ur(nt)?this.createNamed(nt,Ve):this.createDefault(Ve)}default(){return this}use(Ve){return Ur(Ve)?this.map.get(Ve):this.default()}createDefault(Ve){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new _i(Ve))}createNamed(Ve,nt){if(this.map.has(Ve))throw new Error(`Client ${Ve} has been already created`);this.map.set(Ve,new pr(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new _i(nt))))}removeClient(Ve){Ur(Ve)?this.map.delete(Ve):this._client=void 0}static \u0275fac=function(nt){return new(nt||tt)(t.KVO(t.SKi),t.KVO(fo,8),t.KVO(uo,8),t.KVO(sr,8))};static \u0275prov=t.jDH({token:tt,factory:tt.\u0275fac})}return tt})();function Ur(tt){return!!tt&&"default"!==tt}const qi=[Lo];let Zn=(()=>{class tt{static \u0275fac=function(nt){return new(nt||tt)};static \u0275mod=t.$C({type:tt});static \u0275inj=t.G2t({providers:qi})}return tt})(),yi=(()=>{class tt{apollo;client="default";constructor(Ve){this.apollo=Ve}watch(Ve,nt){return this.apollo.use(this.client).watchQuery({...nt,variables:Ve,query:this.document})}fetch(Ve,nt){return this.apollo.use(this.client).query({...nt,variables:Ve,query:this.document})}static \u0275fac=function(nt){return new(nt||tt)(t.KVO(Lo))};static \u0275prov=t.jDH({token:tt,factory:tt.\u0275fac})}return tt})(),wr=(()=>{class tt{apollo;client="default";constructor(Ve){this.apollo=Ve}mutate(Ve,nt){return this.apollo.use(this.client).mutate({...nt,variables:Ve,mutation:this.document})}static \u0275fac=function(nt){return new(nt||tt)(t.KVO(Lo))};static \u0275prov=t.jDH({token:tt,factory:tt.\u0275fac})}return tt})();const Zo=function qr(tt,...Ce){return(0,lo.J1)(tt,...Ce)}},6005:(Rt,De,a)=>{function t(s,m){if(!s)throw new Error(m)}a.d(De,{U:()=>t})},7250:(Rt,De,a)=>{a.d(De,{N:()=>m});const t=10,s=2;function m(I){return e(I,[])}function e(I,w){switch(typeof I){case"string":return JSON.stringify(I);case"function":return I.name?`[function ${I.name}]`:"[function]";case"object":return function M(I,w){if(null===I)return"null";if(w.includes(I))return"[Circular]";const F=[...w,I];if(function K(I){return"function"==typeof I.toJSON}(I)){const X=I.toJSON();if(X!==I)return"string"==typeof X?X:e(X,F)}else if(Array.isArray(I))return function j(I,w){if(0===I.length)return"[]";if(w.length>s)return"[Array]";const F=Math.min(t,I.length),X=I.length-F,V=[];for(let x=0;x1&&V.push(`... ${X} more items`),"["+V.join(", ")+"]"}(I,F);return function L(I,w){const F=Object.entries(I);return 0===F.length?"{}":w.length>s?"["+function A(I){const w=Object.prototype.toString.call(I).replace(/^\[object /,"").replace(/]$/,"");if("Object"===w&&"function"==typeof I.constructor){const F=I.constructor.name;if("string"==typeof F&&""!==F)return F}return w}(I)+"]":"{ "+F.map(([V,x])=>V+": "+e(x,w)).join(", ")+" }"}(I,F)}(I,w);default:return String(I)}}},1222:(Rt,De,a)=>{a.d(De,{Ll:()=>M,aD:()=>m,aZ:()=>t,cE:()=>K,ou:()=>s});class t{constructor(j,A,I){this.start=j.start,this.end=A.end,this.startToken=j,this.endToken=A,this.source=I}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class s{constructor(j,A,I,w,F,X){this.kind=j,this.start=A,this.end=I,this.line=w,this.column=F,this.value=X,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 m={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"]},e=new Set(Object.keys(m));function M(L){const j=L?.kind;return"string"==typeof j&&e.has(j)}var K=function(L){return L.QUERY="query",L.MUTATION="mutation",L.SUBSCRIPTION="subscription",L}(K||{})},5174:(Rt,De,a)=>{a.d(De,{OC:()=>s,yo:()=>M});var t=a(3725);function s(K){var L;let j=Number.MAX_SAFE_INTEGER,A=null,I=-1;for(let F=0;F0===X?F:F.slice(j)).slice(null!==(L=A)&&void 0!==L?L:0,I+1)}function m(K){let L=0;for(;L1&&A.slice(1).every(Oe=>0===Oe.length||(0,t.i0)(Oe.charCodeAt(0))),F=j.endsWith('\\"""'),X=K.endsWith('"')&&!F,V=K.endsWith("\\"),x=X||V,oe=!(null!=L&&L.minimize)&&(!I||K.length>70||x||w||F);let J="";const Ee=I&&(0,t.i0)(K.charCodeAt(0));return(oe&&!Ee||w)&&(J+="\n"),J+=j,(oe||x)&&(J+="\n"),'"""'+J+'"""'}},3725:(Rt,De,a)=>{function t(K){return 9===K||32===K}function s(K){return K>=48&&K<=57}function m(K){return K>=97&&K<=122||K>=65&&K<=90}function e(K){return m(K)||95===K}function M(K){return m(K)||s(K)||95===K}a.d(De,{i0:()=>t,un:()=>e,xr:()=>M,yp:()=>s})},1955:(Rt,De,a)=>{a.d(De,{b:()=>t});var t=function(s){return s.NAME="Name",s.DOCUMENT="Document",s.OPERATION_DEFINITION="OperationDefinition",s.VARIABLE_DEFINITION="VariableDefinition",s.SELECTION_SET="SelectionSet",s.FIELD="Field",s.ARGUMENT="Argument",s.FRAGMENT_SPREAD="FragmentSpread",s.INLINE_FRAGMENT="InlineFragment",s.FRAGMENT_DEFINITION="FragmentDefinition",s.VARIABLE="Variable",s.INT="IntValue",s.FLOAT="FloatValue",s.STRING="StringValue",s.BOOLEAN="BooleanValue",s.NULL="NullValue",s.ENUM="EnumValue",s.LIST="ListValue",s.OBJECT="ObjectValue",s.OBJECT_FIELD="ObjectField",s.DIRECTIVE="Directive",s.NAMED_TYPE="NamedType",s.LIST_TYPE="ListType",s.NON_NULL_TYPE="NonNullType",s.SCHEMA_DEFINITION="SchemaDefinition",s.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",s.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",s.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",s.FIELD_DEFINITION="FieldDefinition",s.INPUT_VALUE_DEFINITION="InputValueDefinition",s.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",s.UNION_TYPE_DEFINITION="UnionTypeDefinition",s.ENUM_TYPE_DEFINITION="EnumTypeDefinition",s.ENUM_VALUE_DEFINITION="EnumValueDefinition",s.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",s.DIRECTIVE_DEFINITION="DirectiveDefinition",s.SCHEMA_EXTENSION="SchemaExtension",s.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",s.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",s.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",s.UNION_TYPE_EXTENSION="UnionTypeExtension",s.ENUM_TYPE_EXTENSION="EnumTypeExtension",s.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",s}(t||{})},3246:(Rt,De,a)=>{a.d(De,{y:()=>L});var t=a(5174);const m=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function e(x){return M[x.charCodeAt(0)]}const M=["\\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 K=a(8540);function L(x){return(0,K.YR)(x,A)}const A={Name:{leave:x=>x.value},Variable:{leave:x=>"$"+x.name},Document:{leave:x=>I(x.definitions,"\n\n")},OperationDefinition:{leave(x){const oe=F("(",I(x.variableDefinitions,", "),")"),J=I([x.operation,I([x.name,oe]),I(x.directives," ")]," ");return("query"===J?"":J+" ")+x.selectionSet}},VariableDefinition:{leave:({variable:x,type:oe,defaultValue:J,directives:Ee})=>x+": "+oe+F(" = ",J)+F(" ",I(Ee," "))},SelectionSet:{leave:({selections:x})=>w(x)},Field:{leave({alias:x,name:oe,arguments:J,directives:Ee,selectionSet:Oe}){const pe=F("",x,": ")+oe;let Ie=pe+F("(",I(J,", "),")");return Ie.length>80&&(Ie=pe+F("(\n",X(I(J,"\n")),"\n)")),I([Ie,I(Ee," "),Oe]," ")}},Argument:{leave:({name:x,value:oe})=>x+": "+oe},FragmentSpread:{leave:({name:x,directives:oe})=>"..."+x+F(" ",I(oe," "))},InlineFragment:{leave:({typeCondition:x,directives:oe,selectionSet:J})=>I(["...",F("on ",x),I(oe," "),J]," ")},FragmentDefinition:{leave:({name:x,typeCondition:oe,variableDefinitions:J,directives:Ee,selectionSet:Oe})=>`fragment ${x}${F("(",I(J,", "),")")} on ${oe} ${F("",I(Ee," ")," ")}`+Oe},IntValue:{leave:({value:x})=>x},FloatValue:{leave:({value:x})=>x},StringValue:{leave:({value:x,block:oe})=>oe?(0,t.yo)(x):function s(x){return`"${x.replace(m,e)}"`}(x)},BooleanValue:{leave:({value:x})=>x?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:x})=>x},ListValue:{leave:({values:x})=>"["+I(x,", ")+"]"},ObjectValue:{leave:({fields:x})=>"{"+I(x,", ")+"}"},ObjectField:{leave:({name:x,value:oe})=>x+": "+oe},Directive:{leave:({name:x,arguments:oe})=>"@"+x+F("(",I(oe,", "),")")},NamedType:{leave:({name:x})=>x},ListType:{leave:({type:x})=>"["+x+"]"},NonNullType:{leave:({type:x})=>x+"!"},SchemaDefinition:{leave:({description:x,directives:oe,operationTypes:J})=>F("",x,"\n")+I(["schema",I(oe," "),w(J)]," ")},OperationTypeDefinition:{leave:({operation:x,type:oe})=>x+": "+oe},ScalarTypeDefinition:{leave:({description:x,name:oe,directives:J})=>F("",x,"\n")+I(["scalar",oe,I(J," ")]," ")},ObjectTypeDefinition:{leave:({description:x,name:oe,interfaces:J,directives:Ee,fields:Oe})=>F("",x,"\n")+I(["type",oe,F("implements ",I(J," & ")),I(Ee," "),w(Oe)]," ")},FieldDefinition:{leave:({description:x,name:oe,arguments:J,type:Ee,directives:Oe})=>F("",x,"\n")+oe+(V(J)?F("(\n",X(I(J,"\n")),"\n)"):F("(",I(J,", "),")"))+": "+Ee+F(" ",I(Oe," "))},InputValueDefinition:{leave:({description:x,name:oe,type:J,defaultValue:Ee,directives:Oe})=>F("",x,"\n")+I([oe+": "+J,F("= ",Ee),I(Oe," ")]," ")},InterfaceTypeDefinition:{leave:({description:x,name:oe,interfaces:J,directives:Ee,fields:Oe})=>F("",x,"\n")+I(["interface",oe,F("implements ",I(J," & ")),I(Ee," "),w(Oe)]," ")},UnionTypeDefinition:{leave:({description:x,name:oe,directives:J,types:Ee})=>F("",x,"\n")+I(["union",oe,I(J," "),F("= ",I(Ee," | "))]," ")},EnumTypeDefinition:{leave:({description:x,name:oe,directives:J,values:Ee})=>F("",x,"\n")+I(["enum",oe,I(J," "),w(Ee)]," ")},EnumValueDefinition:{leave:({description:x,name:oe,directives:J})=>F("",x,"\n")+I([oe,I(J," ")]," ")},InputObjectTypeDefinition:{leave:({description:x,name:oe,directives:J,fields:Ee})=>F("",x,"\n")+I(["input",oe,I(J," "),w(Ee)]," ")},DirectiveDefinition:{leave:({description:x,name:oe,arguments:J,repeatable:Ee,locations:Oe})=>F("",x,"\n")+"directive @"+oe+(V(J)?F("(\n",X(I(J,"\n")),"\n)"):F("(",I(J,", "),")"))+(Ee?" repeatable":"")+" on "+I(Oe," | ")},SchemaExtension:{leave:({directives:x,operationTypes:oe})=>I(["extend schema",I(x," "),w(oe)]," ")},ScalarTypeExtension:{leave:({name:x,directives:oe})=>I(["extend scalar",x,I(oe," ")]," ")},ObjectTypeExtension:{leave:({name:x,interfaces:oe,directives:J,fields:Ee})=>I(["extend type",x,F("implements ",I(oe," & ")),I(J," "),w(Ee)]," ")},InterfaceTypeExtension:{leave:({name:x,interfaces:oe,directives:J,fields:Ee})=>I(["extend interface",x,F("implements ",I(oe," & ")),I(J," "),w(Ee)]," ")},UnionTypeExtension:{leave:({name:x,directives:oe,types:J})=>I(["extend union",x,I(oe," "),F("= ",I(J," | "))]," ")},EnumTypeExtension:{leave:({name:x,directives:oe,values:J})=>I(["extend enum",x,I(oe," "),w(J)]," ")},InputObjectTypeExtension:{leave:({name:x,directives:oe,fields:J})=>I(["extend input",x,I(oe," "),w(J)]," ")}};function I(x,oe=""){var J;return null!==(J=x?.filter(Ee=>Ee).join(oe))&&void 0!==J?J:""}function w(x){return F("{\n",X(I(x,"\n")),"\n}")}function F(x,oe,J=""){return null!=oe&&""!==oe?x+oe+J:""}function X(x){return F(" ",x.replace(/\n/g,"\n "))}function V(x){var oe;return null!==(oe=x?.some(J=>J.includes("\n")))&&void 0!==oe&&oe}},8540:(Rt,De,a)=>{a.d(De,{YR:()=>K,sP:()=>M});var t=a(6005),s=a(7250),m=a(1222),e=a(1955);const M=Object.freeze({});function K(I,w,F=m.aD){const X=new Map;for(const he of Object.values(e.b))X.set(he,j(w,he));let V,pe,Ie,x=Array.isArray(I),oe=[I],J=-1,Ee=[],Oe=I;const ve=[],fe=[];do{J++;const he=J===oe.length,E=he&&0!==Ee.length;if(he){if(pe=0===fe.length?void 0:ve[ve.length-1],Oe=Ie,Ie=fe.pop(),E)if(x){Oe=Oe.slice();let R=0;for(const[U,se]of Ee){const Be=U-R;null===se?(Oe.splice(Be,1),R++):Oe[Be]=se}}else{Oe=Object.defineProperties({},Object.getOwnPropertyDescriptors(Oe));for(const[R,U]of Ee)Oe[R]=U}J=V.index,oe=V.keys,Ee=V.edits,x=V.inArray,V=V.prev}else if(Ie){if(pe=x?J:oe[J],Oe=Ie[pe],null==Oe)continue;ve.push(pe)}let S;if(!Array.isArray(Oe)){var Y,z;(0,m.Ll)(Oe)||(0,t.U)(!1,`Invalid AST Node: ${(0,s.N)(Oe)}.`);const R=he?null===(Y=X.get(Oe.kind))||void 0===Y?void 0:Y.leave:null===(z=X.get(Oe.kind))||void 0===z?void 0:z.enter;if(S=R?.call(w,Oe,pe,Ie,ve,fe),S===M)break;if(!1===S){if(!he){ve.pop();continue}}else if(void 0!==S&&(Ee.push([pe,S]),!he)){if(!(0,m.Ll)(S)){ve.pop();continue}Oe=S}}var Z;void 0===S&&E&&Ee.push([pe,Oe]),he?ve.pop():(V={inArray:x,index:J,keys:oe,edits:Ee,prev:V},x=Array.isArray(Oe),oe=x?Oe:null!==(Z=F[Oe.kind])&&void 0!==Z?Z:[],J=-1,Ee=[],Ie&&fe.push(Ie),Ie=Oe)}while(void 0!==V);return 0!==Ee.length?Ee[Ee.length-1][1]:I}function j(I,w){const F=I[w];return"object"==typeof F?F:"function"==typeof F?{enter:F,leave:void 0}:{enter:I.enter,leave:I.leave}}},3617:(Rt,De,a)=>{a.d(De,{$:()=>E,Y:()=>he});var t=a(4707),s=a(3953),m=a(1413),e=a(6977),M=a(713),K=a(6042),L=a(7806),j=a(5103),A=a(8203);function I(S,R){1&S&&s.eu8(0)}function w(S,R){if(1&S&&s.DNE(0,I,1,0,"ng-container",7),2&S){const U=s.XpG(3);s.Y8G("nzStringTemplateOutlet",U.nzIcon)}}function F(S,R){if(1&S&&s.nrm(0,"span",6),2&S){const U=s.XpG(3);s.Y8G("nzType",U.nzIconType||U.inferredIconType)("nzTheme",U.iconTheme)}}function X(S,R){if(1&S&&(s.j41(0,"div",2),s.DNE(1,w,1,1,"ng-container")(2,F,1,2,"span",6),s.k0s()),2&S){const U=s.XpG(2);s.R7$(),s.vxM(U.nzIcon?1:2)}}function V(S,R){if(1&S&&(s.qex(0),s.EFF(1),s.bVm()),2&S){const U=s.XpG(4);s.R7$(),s.JRh(U.nzMessage)}}function x(S,R){if(1&S&&(s.j41(0,"span",8),s.DNE(1,V,2,1,"ng-container",7),s.k0s()),2&S){const U=s.XpG(3);s.R7$(),s.Y8G("nzStringTemplateOutlet",U.nzMessage)}}function oe(S,R){if(1&S&&(s.qex(0),s.EFF(1),s.bVm()),2&S){const U=s.XpG(4);s.R7$(),s.JRh(U.nzDescription)}}function J(S,R){if(1&S&&(s.j41(0,"span",9),s.DNE(1,oe,2,1,"ng-container",7),s.k0s()),2&S){const U=s.XpG(3);s.R7$(),s.Y8G("nzStringTemplateOutlet",U.nzDescription)}}function Ee(S,R){if(1&S&&(s.j41(0,"div",3),s.DNE(1,x,2,1,"span",8)(2,J,2,1,"span",9),s.k0s()),2&S){const U=s.XpG(2);s.R7$(),s.vxM(U.nzMessage?1:-1),s.R7$(),s.vxM(U.nzDescription?2:-1)}}function Oe(S,R){if(1&S&&(s.qex(0),s.EFF(1),s.bVm()),2&S){const U=s.XpG(3);s.R7$(),s.JRh(U.nzAction)}}function pe(S,R){if(1&S&&(s.j41(0,"div",4),s.DNE(1,Oe,2,1,"ng-container",7),s.k0s()),2&S){const U=s.XpG(2);s.R7$(),s.Y8G("nzStringTemplateOutlet",U.nzAction)}}function Ie(S,R){if(1&S&&(s.qex(0),s.j41(1,"span",12),s.EFF(2),s.k0s(),s.bVm()),2&S){const U=s.XpG(4);s.R7$(2),s.JRh(U.nzCloseText)}}function ve(S,R){if(1&S&&s.DNE(0,Ie,3,1,"ng-container",7),2&S){const U=s.XpG(3);s.Y8G("nzStringTemplateOutlet",U.nzCloseText)}}function fe(S,R){1&S&&s.nrm(0,"span",11)}function Y(S,R){if(1&S){const U=s.RV6();s.j41(0,"button",10),s.bIt("click",function(){s.eBV(U);const Be=s.XpG(2);return s.Njj(Be.closeAlert())}),s.DNE(1,ve,1,1,"ng-container")(2,fe,1,0,"span",11),s.k0s()}if(2&S){const U=s.XpG(2);s.R7$(),s.vxM(U.nzCloseText?1:2)}}function z(S,R){if(1&S){const U=s.RV6();s.j41(0,"div",1),s.bIt("@slideAlertMotion.done",function(){s.eBV(U);const Be=s.XpG();return s.Njj(Be.onFadeAnimationDone())}),s.DNE(1,X,3,1,"div",2)(2,Ee,3,2,"div",3)(3,pe,2,1,"div",4)(4,Y,3,1,"button",5),s.k0s()}if(2&S){const U=s.XpG();s.AVh("ant-alert-rtl","rtl"===U.dir)("ant-alert-success","success"===U.nzType)("ant-alert-info","info"===U.nzType)("ant-alert-warning","warning"===U.nzType)("ant-alert-error","error"===U.nzType)("ant-alert-no-icon",!U.nzShowIcon)("ant-alert-banner",U.nzBanner)("ant-alert-closable",U.nzCloseable)("ant-alert-with-description",!!U.nzDescription),s.Y8G("@.disabled",U.nzNoAnimation)("@slideAlertMotion",void 0),s.R7$(),s.vxM(U.nzShowIcon?1:-1),s.R7$(),s.vxM(U.nzMessage||U.nzDescription?2:-1),s.R7$(),s.vxM(U.nzAction?3:-1),s.R7$(),s.vxM(U.nzCloseable||U.nzCloseText?4:-1)}}const Z="alert";let he=(()=>{class S{constructor(U,se,Be){this.nzConfigService=U,this.cdr=se,this.directionality=Be,this._nzModuleName=Z,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 s.bkB,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new m.B,this.nzConfigService.getConfigChangeEventForComponent(Z).pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(U=>{this.dir=U,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(U){const{nzShowIcon:se,nzDescription:Be,nzType:Pt,nzBanner:gt}=U;if(se&&(this.isShowIconSet=!0),Pt)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"}Be&&(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()}static#e=this.\u0275fac=function(se){return new(se||S)(s.rXU(K.yx),s.rXU(s.gRc),s.rXU(A.dS,8))};static#t=this.\u0275cmp=s.VBU({type:S,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",s.L39],nzShowIcon:[2,"nzShowIcon","nzShowIcon",s.L39],nzBanner:[2,"nzBanner","nzBanner",s.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",s.L39],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],standalone:!0,features:[s.GFd,s.OA$,s.aNF],decls:1,vars:1,consts:[[1,"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"],[1,"ant-alert"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],["nz-icon","",3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(se,Be){1&se&&s.DNE(0,z,5,24,"div",0),2&se&&s.vxM(Be.closed?-1:0)},dependencies:[j.Y3,j.Dn,L.C,L.m],encapsulation:2,data:{animation:[M.Sn]},changeDetection:0})}return(0,t.Cg)([(0,K.H4)()],S.prototype,"nzCloseable",void 0),(0,t.Cg)([(0,K.H4)()],S.prototype,"nzShowIcon",void 0),S})(),E=(()=>{class S{static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275mod=s.$C({type:S});static#n=this.\u0275inj=s.G2t({imports:[he]})}return S})()},8928:(Rt,De,a)=>{a.d(De,{jl:()=>Pt});var t=a(3953),s=a(7806),m=a(1413),e=a(6977),M=a(8141),K=a(1986),L=a(5964),j=a(7336),A=a(7987),I=a(6939),w=a(177),F=a(9417),X=a(1011);const V=[[["nz-auto-option"]]],x=["nz-auto-option"];function oe(gt,wt){if(1>&&(t.qex(0),t.EFF(1),t.bVm()),2>){const Le=t.XpG();t.R7$(),t.JRh(Le.nzLabel)}}let Z=(()=>{class gt{constructor(){}static#e=this.\u0275fac=function(zt){return new(zt||gt)};static#t=this.\u0275cmp=t.VBU({type:gt,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],standalone:!0,features:[t.aNF],ngContentSelectors:x,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(zt,xt){1&zt&&(t.NAR(V),t.j41(0,"div",0),t.DNE(1,oe,2,1,"ng-container",1),t.k0s(),t.SdG(2)),2&zt&&(t.R7$(),t.Y8G("nzStringTemplateOutlet",xt.nzLabel))},dependencies:[s.C,s.m],encapsulation:2,changeDetection:0})}return gt})();const S={provide:F.kq,useExisting:(0,t.Rfq)(()=>U),multi:!0};let U=(()=>{class gt{get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}constructor(Le,zt,xt,st,Ct,It){this.ngZone=Le,this.elementRef=zt,this.overlay=xt,this.viewContainerRef=st,this.nzInputGroupWhitSuffixOrPrefixDirective=Ct,this.document=It,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new m.B,this.overlayRef=null,this.portal=null,this.previousValue=null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,e.Q)(this.destroy$)).subscribe(Le=>{"void"===Le.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(Le){this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setTriggerValue(Le)))}registerOnChange(Le){this.onChange=Le}registerOnTouched(Le){this.onTouched=Le}setDisabledState(Le){this.elementRef.nativeElement.disabled=Le,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(Le){const zt=Le.keyCode,xt=zt===j.i7||zt===j.n6;zt===j._f&&Le.preventDefault(),!this.panelOpen||zt!==j._f&&zt!==j.wn?this.panelOpen&&zt===j.Fm?this.nzAutocomplete.showPanel&&(Le.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&xt&&this.nzAutocomplete.showPanel&&(Le.stopPropagation(),Le.preventDefault(),zt===j.i7?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(Le){const zt=Le.target,xt=this.document;let st=zt.value;"number"===zt.type&&(st=""===st?null:parseFloat(st)),this.previousValue!==st&&(this.previousValue=st,this.onChange(st),this.canOpen()&&xt.activeElement===Le.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,M.M)(()=>this.positionStrategy.reapplyLastPosition()),(0,K.c)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(Le=>{this.setValueAndClose(Le)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,L.p)(Le=>!this.elementRef.nativeElement.contains(Le.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function R(){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 I.VA(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,e.Q)(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 A.rR({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 Le=[new A.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new A.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(Le).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const Le=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==Le?(this.nzAutocomplete.setActiveItem(Le),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(Le){const zt=Le.nzValue;this.setTriggerValue(Le.getLabel()),this.onChange(zt),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(Le){const zt=this.nzAutocomplete.getOption(Le),xt=zt?zt.getLabel():Le;this.elementRef.nativeElement.value=xt??"",this.nzAutocomplete.nzBackfill||(this.previousValue=xt)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const Le=this.elementRef.nativeElement;return!Le.readOnly&&!Le.disabled}static#e=this.\u0275fac=function(zt){return new(zt||gt)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(A.hJ),t.rXU(t.c1b),t.rXU(X.vN,8),t.rXU(w.qQ,8))};static#t=this.\u0275dir=t.FsC({type:gt,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(zt,xt){1&zt&&t.bIt("focusin",function(){return xt.handleFocus()})("blur",function(){return xt.handleBlur()})("input",function(Ct){return xt.handleInput(Ct)})("keydown",function(Ct){return xt.handleKeydown(Ct)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],standalone:!0,features:[t.Jv_([S])]})}return gt})(),Pt=(()=>{class gt{static#e=this.\u0275fac=function(zt){return new(zt||gt)};static#t=this.\u0275mod=t.$C({type:gt});static#n=this.\u0275inj=t.G2t({imports:[Z]})}return gt})()},9438:(Rt,De,a)=>{a.d(De,{PM:()=>F,Yb:()=>V});var t=a(4707),s=a(6860),m=a(3953),e=a(6042),M=a(5103);const K=["textEl"];function L(x,oe){if(1&x&&m.nrm(0,"span",1),2&x){const J=m.XpG();m.Y8G("nzType",J.nzIcon)}}function j(x,oe){if(1&x){const J=m.RV6();m.j41(0,"img",4),m.bIt("error",function(Oe){m.eBV(J);const pe=m.XpG();return m.Njj(pe.imgError(Oe))}),m.k0s()}if(2&x){const J=m.XpG();m.Y8G("src",J.nzSrc,m.B4B),m.BMQ("srcset",J.nzSrcSet)("alt",J.nzAlt)}}function A(x,oe){if(1&x&&(m.j41(0,"span",3,0),m.EFF(2),m.k0s()),2&x){const J=m.XpG();m.R7$(2),m.JRh(J.nzText)}}let F=(()=>{class x{constructor(J,Ee,Oe){this.nzConfigService=J,this.elementRef=Ee,this.cdr=Oe,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new m.bkB,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(J){this.nzError.emit(J),J.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.calcStringSize())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.calcStringSize()}ngAfterViewInit(){this.calcStringSize()}calcStringSize(){if(!this.hasText||!this.textEl)return;const J=this.textEl.nativeElement,Ee=J.offsetWidth,Oe=this.el.getBoundingClientRect?.().width??0,pe=2*this.nzGap{class x{static#e=this.\u0275fac=function(Ee){return new(Ee||x)};static#t=this.\u0275mod=m.$C({type:x});static#n=this.\u0275inj=m.G2t({imports:[F]})}return x})()},3146:(Rt,De,a)=>{a.d(De,{KI:()=>Z,W2:()=>he,dz:()=>z});var t=a(4707),s=a(177),m=a(3953),e=a(1413),M=a(6977),K=a(713),L=a(6042),j=a(7806),A=a(6841),I=a(8203);function w(E,S){if(1&E&&(m.j41(0,"p",3),m.EFF(1),m.k0s()),2&E){const R=S.$implicit,U=m.XpG(2).$index,se=m.XpG(2);m.AVh("current",R===se.countArray[U]),m.R7$(),m.SpI(" ",R," ")}}function F(E,S){if(1&E&&m.Z7z(0,w,2,3,"p",2,m.fX1),2&E){const R=m.XpG(3);m.Dyx(R.countSingleArray)}}function X(E,S){if(1&E&&(m.j41(0,"span",1),m.DNE(1,F,2,0),m.k0s()),2&E){const R=S.$index,U=m.XpG(2);m.xc7("transform","translateY("+100*-U.countArray[R]+"%)"),m.Y8G("nzNoAnimation",U.noAnimation),m.R7$(),m.vxM(U.nzDot||void 0===U.countArray[R]?-1:1)}}function V(E,S){if(1&E&&m.Z7z(0,X,2,4,"span",0,m.fX1),2&E){const R=m.XpG();m.Dyx(R.maxNumberArray)}}function x(E,S){if(1&E&&m.EFF(0),2&E){const R=m.XpG();m.SpI(" ",R.nzOverflowCount,"+ ")}}const oe=["*"];function J(E,S){if(1&E&&(m.qex(0),m.EFF(1),m.bVm()),2&E){const R=m.XpG(2);m.R7$(),m.JRh(R.nzText)}}function Ee(E,S){if(1&E&&(m.nrm(0,"span",1),m.j41(1,"span",2),m.DNE(2,J,2,1,"ng-container",0),m.k0s()),2&E){const R=m.XpG();m.ZvI("ant-badge-status-dot ant-badge-status-",R.nzStatus||R.presetColor,""),m.xc7("background",!R.presetColor&&R.nzColor),m.Y8G("ngStyle",R.nzStyle),m.R7$(2),m.Y8G("nzStringTemplateOutlet",R.nzText)}}function Oe(E,S){if(1&E&&m.nrm(0,"nz-badge-sup",3),2&E){const R=m.XpG(2);m.Y8G("nzOffset",R.nzOffset)("nzSize",R.nzSize)("nzTitle",R.nzTitle)("nzStyle",R.nzStyle)("nzDot",R.nzDot)("nzOverflowCount",R.nzOverflowCount)("disableAnimation",!!(R.nzStandalone||R.nzStatus||R.nzColor||null!=R.noAnimation&&R.noAnimation.nzNoAnimation))("nzCount",R.nzCount)("noAnimation",!(null==R.noAnimation||!R.noAnimation.nzNoAnimation))}}function pe(E,S){if(1&E&&(m.qex(0),m.DNE(1,Oe,1,9,"nz-badge-sup",3),m.bVm()),2&E){const R=m.XpG();m.R7$(),m.vxM(R.showSup?1:-1)}}function Ie(E,S){if(1&E&&(m.qex(0),m.j41(1,"span",3),m.EFF(2),m.k0s(),m.bVm()),2&E){const R=m.XpG();m.R7$(2),m.JRh(R.nzText)}}let ve=(()=>{class E{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(R){const{nzOverflowCount:U,nzCount:se}=R;se&&"number"==typeof se.currentValue&&(this.count=Math.max(0,se.currentValue),this.countArray=this.count.toString().split("").map(Be=>+Be)),U&&this.generateMaxNumberArray()}static#e=this.\u0275fac=function(U){return new(U||E)};static#t=this.\u0275cmp=m.VBU({type:E,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(U,se){2&U&&(m.zvX("@.disabled",se.disableAnimation)("@zoomBadgeMotion",void 0),m.BMQ("title",null===se.nzTitle?"":se.nzTitle||se.nzCount),m.Aen(se.nzStyle),m.xc7("right",se.nzOffset&&se.nzOffset[0]?-se.nzOffset[0]:null,"px")("margin-top",se.nzOffset&&se.nzOffset[1]?se.nzOffset[1]:null,"px"),m.AVh("ant-badge-count",!se.nzDot)("ant-badge-count-sm","small"===se.nzSize)("ant-badge-dot",se.nzDot)("ant-badge-multiple-words",se.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:[2,"nzOverflowCount","nzOverflowCount",m.Udg],disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},exportAs:["nzBadgeSup"],standalone:!0,features:[m.GFd,m.OA$,m.aNF],decls:2,vars:1,consts:[[1,"ant-scroll-number-only",3,"nzNoAnimation","transform"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[1,"ant-scroll-number-only-unit",3,"current"],[1,"ant-scroll-number-only-unit"]],template:function(U,se){1&U&&m.DNE(0,V,2,0)(1,x,1,1),2&U&&m.vxM(se.count<=se.nzOverflowCount?0:1)},dependencies:[A.z],encapsulation:2,data:{animation:[K.bS]},changeDetection:0})}return E})();const fe=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let z=(()=>{class E{constructor(R,U,se,Be,Pt,gt){this.nzConfigService=R,this.renderer=U,this.cdr=se,this.elementRef=Be,this.directionality=Pt,this.noAnimation=gt,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new e.B,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,M.Q)(this.destroy$)).subscribe(R=>{this.dir=R,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(R){const{nzColor:U,nzShowDot:se,nzDot:Be,nzCount:Pt,nzShowZero:gt}=R;U&&(this.presetColor=this.nzColor&&-1!==fe.indexOf(this.nzColor)?this.nzColor:null),(se||Be||Pt||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()}static#e=this.\u0275fac=function(U){return new(U||E)(m.rXU(L.yx),m.rXU(m.sFG),m.rXU(m.gRc),m.rXU(m.aKT),m.rXU(I.dS,8),m.rXU(A.z,9))};static#t=this.\u0275cmp=m.VBU({type:E,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(U,se){2&U&&m.AVh("ant-badge-status",se.nzStatus)("ant-badge-not-a-wrapper",!!(se.nzStandalone||se.nzStatus||se.nzColor))},inputs:{nzShowZero:[2,"nzShowZero","nzShowZero",m.L39],nzShowDot:[2,"nzShowDot","nzShowDot",m.L39],nzStandalone:[2,"nzStandalone","nzStandalone",m.L39],nzDot:[2,"nzDot","nzDot",m.L39],nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],standalone:!0,features:[m.GFd,m.OA$,m.aNF],ngContentSelectors:oe,decls:3,vars:2,consts:[[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(U,se){1&U&&(m.NAR(),m.DNE(0,Ee,3,7),m.SdG(1),m.DNE(2,pe,2,1,"ng-container",0)),2&U&&(m.vxM(se.nzStatus||se.nzColor?0:-1),m.R7$(2),m.Y8G("nzStringTemplateOutlet",se.nzCount))},dependencies:[s.B3,ve,j.C,j.m],encapsulation:2,data:{animation:[K.bS]},changeDetection:0})}return(0,t.Cg)([(0,L.H4)()],E.prototype,"nzOverflowCount",void 0),(0,t.Cg)([(0,L.H4)()],E.prototype,"nzColor",void 0),E})(),Z=(()=>{class E{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(R){const{nzColor:U}=R;U&&(this.presetColor=this.nzColor&&-1!==fe.indexOf(this.nzColor)?this.nzColor:null)}static#e=this.\u0275fac=function(U){return new(U||E)};static#t=this.\u0275cmp=m.VBU({type:E,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],standalone:!0,features:[m.OA$,m.aNF],ngContentSelectors:oe,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(U,se){1&U&&(m.NAR(),m.SdG(0),m.j41(1,"div",0),m.DNE(2,Ie,3,1,"ng-container",1),m.nrm(3,"div",2),m.k0s()),2&U&&(m.R7$(),m.HbH(se.presetColor&&"ant-ribbon-color-"+se.presetColor),m.xc7("background-color",!se.presetColor&&se.nzColor),m.AVh("ant-ribbon-placement-end","end"===se.nzPlacement)("ant-ribbon-placement-start","start"===se.nzPlacement),m.R7$(),m.Y8G("nzStringTemplateOutlet",se.nzText),m.R7$(),m.xc7("color",!se.presetColor&&se.nzColor))},dependencies:[j.C,j.m],encapsulation:2,changeDetection:0})}return E})(),he=(()=>{class E{static#e=this.\u0275fac=function(U){return new(U||E)};static#t=this.\u0275mod=m.$C({type:E});static#n=this.\u0275inj=m.G2t({imports:[z,Z]})}return E})()},513:(Rt,De,a)=>{a.d(De,{Zw:()=>Oe,aO:()=>J,dn:()=>Ee});var t=a(4707),s=a(3953),m=a(1413),e=a(3726),M=a(6977),K=a(9172),L=a(5964),j=a(6042),A=a(5103),I=a(8203),w=a(6389),F=a(5930);const X=["nz-button",""],V=["*"];function x(pe,Ie){1&pe&&s.nrm(0,"span",0)}let J=(()=>{class pe{insertSpan(ve,fe){ve.forEach(Y=>{if("#text"===Y.nodeName){const z=fe.createElement("span"),Z=fe.parentNode(Y);fe.insertBefore(Z,z,Y),fe.appendChild(z,Y)}})}get iconOnly(){const ve=Array.from(this.elementRef?.nativeElement?.childNodes||[]),fe=ve.every(z=>"#text"!==z.nodeName),Y=0==ve.filter(z=>!("#comment"===z.nodeName||z?.attributes?.getNamedItem("nz-icon"))).length;return!!this.nzIconDirectiveElement&&Y&&fe}constructor(ve,fe,Y,z,Z,he){this.ngZone=ve,this.elementRef=fe,this.cdr=Y,this.renderer=z,this.nzConfigService=Z,this.directionality=he,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 m.B,this.loading$=new m.B,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,M.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(ve=>{this.dir=ve,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click",{capture:!0}).pipe((0,M.Q)(this.destroy$)).subscribe(ve=>{(this.disabled&&"A"===ve.target?.tagName||this.nzLoading)&&(ve.preventDefault(),ve.stopImmediatePropagation())})})}ngOnChanges(ve){const{nzLoading:fe}=ve;fe&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,K.Z)(this.nzLoading),(0,L.p)(()=>!!this.nzIconDirectiveElement),(0,M.Q)(this.destroy$)).subscribe(ve=>{const fe=this.nzIconDirectiveElement.nativeElement;ve?this.renderer.setStyle(fe,"display","none"):this.renderer.removeStyle(fe,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(fe){return new(fe||pe)(s.rXU(s.SKi),s.rXU(s.aKT),s.rXU(s.gRc),s.rXU(s.sFG),s.rXU(j.yx),s.rXU(I.dS,8))};static#t=this.\u0275cmp=s.VBU({type:pe,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(fe,Y,z){if(1&fe&&s.wni(z,A.Dn,5,s.aKT),2&fe){let Z;s.mGM(Z=s.lsd())&&(Y.nzIconDirectiveElement=Z.first)}},hostAttrs:[1,"ant-btn"],hostVars:34,hostBindings:function(fe,Y){2&fe&&(s.BMQ("tabindex",Y.disabled?-1:null===Y.tabIndex?null:Y.tabIndex)("disabled",Y.disabled||null),s.AVh("ant-btn-default","default"===Y.nzType)("ant-btn-primary","primary"===Y.nzType)("ant-btn-dashed","dashed"===Y.nzType)("ant-btn-link","link"===Y.nzType)("ant-btn-text","text"===Y.nzType)("ant-btn-circle","circle"===Y.nzShape)("ant-btn-round","round"===Y.nzShape)("ant-btn-lg","large"===Y.nzSize)("ant-btn-sm","small"===Y.nzSize)("ant-btn-dangerous",Y.nzDanger)("ant-btn-loading",Y.nzLoading)("ant-btn-background-ghost",Y.nzGhost)("ant-btn-block",Y.nzBlock)("ant-input-search-button",Y.nzSearch)("ant-btn-rtl","rtl"===Y.dir)("ant-btn-icon-only",Y.iconOnly))},inputs:{nzBlock:[2,"nzBlock","nzBlock",s.L39],nzGhost:[2,"nzGhost","nzGhost",s.L39],nzSearch:[2,"nzSearch","nzSearch",s.L39],nzLoading:[2,"nzLoading","nzLoading",s.L39],nzDanger:[2,"nzDanger","nzDanger",s.L39],disabled:[2,"disabled","disabled",s.L39],tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],standalone:!0,features:[s.GFd,s.OA$,s.aNF],attrs:X,ngContentSelectors:V,decls:2,vars:1,consts:[["nz-icon","","nzType","loading"]],template:function(fe,Y){1&fe&&(s.NAR(),s.DNE(0,x,1,0,"span",0),s.SdG(1)),2&fe&&s.vxM(Y.nzLoading?0:-1)},dependencies:[A.Y3,A.Dn],encapsulation:2,changeDetection:0})}return(0,t.Cg)([(0,j.H4)()],pe.prototype,"nzSize",void 0),pe})(),Ee=(()=>{class pe{constructor(ve){this.directionality=ve,this.nzSize="default",this.dir="ltr",this.destroy$=new m.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(ve=>{this.dir=ve})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(fe){return new(fe||pe)(s.rXU(I.dS,8))};static#t=this.\u0275cmp=s.VBU({type:pe,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(fe,Y){2&fe&&s.AVh("ant-btn-group-lg","large"===Y.nzSize)("ant-btn-group-sm","small"===Y.nzSize)("ant-btn-group-rtl","rtl"===Y.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],standalone:!0,features:[s.aNF],ngContentSelectors:V,decls:1,vars:0,template:function(fe,Y){1&fe&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return pe})(),Oe=(()=>{class pe{static#e=this.\u0275fac=function(fe){return new(fe||pe)};static#t=this.\u0275mod=s.$C({type:pe});static#n=this.\u0275inj=s.G2t({imports:[J,w.p,F.o7]})}return pe})()},5703:(Rt,De,a)=>{a.d(De,{RO:()=>wt,Ti:()=>xt,cK:()=>zt,ls:()=>gt});var t=a(3953),s=a(177),m=a(7806),e=a(4707),M=a(1413),K=a(6977),L=a(6042),j=a(1912),A=a(8203);function I(st,Ct){}function w(st,Ct){if(1&st&&(t.j41(0,"div",0),t.DNE(1,I,0,0,"ng-template",2),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",It.nzAvatar)}}function F(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzTitle)}}function X(st,Ct){if(1&st&&(t.j41(0,"div",3),t.DNE(1,F,2,1,"ng-container",5),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzTitle)}}function V(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzDescription)}}function x(st,Ct){if(1&st&&(t.j41(0,"div",4),t.DNE(1,V,2,1,"ng-container",5),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzDescription)}}function oe(st,Ct){if(1&st&&(t.j41(0,"div",1),t.DNE(1,X,2,1,"div",3)(2,x,2,1,"div",4),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.vxM(It.nzTitle?1:-1),t.R7$(),t.vxM(It.nzDescription?2:-1)}}const J=["*"];function Ee(st,Ct){1&st&&t.SdG(0)}const Oe=()=>({rows:4});function pe(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzTitle)}}function Ie(st,Ct){if(1&st&&(t.j41(0,"div",6),t.DNE(1,pe,2,1,"ng-container",9),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzTitle)}}function ve(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzExtra)}}function fe(st,Ct){if(1&st&&(t.j41(0,"div",7),t.DNE(1,ve,2,1,"ng-container",9),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzExtra)}}function Y(st,Ct){}function z(st,Ct){if(1&st&&t.DNE(0,Y,0,0,"ng-template",8),2&st){const It=t.XpG(2);t.Y8G("ngTemplateOutlet",It.listOfNzCardTabComponent.template)}}function Z(st,Ct){if(1&st&&(t.j41(0,"div",0)(1,"div",5),t.DNE(2,Ie,2,1,"div",6)(3,fe,2,1,"div",7),t.k0s(),t.DNE(4,z,1,1,null,8),t.k0s()),2&st){const It=t.XpG();t.R7$(2),t.vxM(It.nzTitle?2:-1),t.R7$(),t.vxM(It.nzExtra?3:-1),t.R7$(),t.vxM(It.listOfNzCardTabComponent?4:-1)}}function he(st,Ct){}function E(st,Ct){if(1&st&&(t.j41(0,"div",1),t.DNE(1,he,0,0,"ng-template",8),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",It.nzCover)}}function S(st,Ct){1&st&&t.nrm(0,"nz-skeleton",3),2&st&&t.Y8G("nzActive",!0)("nzTitle",!1)("nzParagraph",t.lJ4(3,Oe))}function R(st,Ct){1&st&&t.SdG(0)}function U(st,Ct){}function se(st,Ct){if(1&st&&(t.j41(0,"li")(1,"span"),t.DNE(2,U,0,0,"ng-template",8),t.k0s()()),2&st){const It=Ct.$implicit,Tt=t.XpG(2);t.xc7("width",100/Tt.nzActions.length,"%"),t.R7$(2),t.Y8G("ngTemplateOutlet",It)}}function Be(st,Ct){if(1&st&&(t.j41(0,"ul",4),t.Z7z(1,se,3,3,"li",10,t.Vm6),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Dyx(It.nzActions)}}let Pt=(()=>{class st{constructor(){this.nzHoverable=!0}static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275dir=t.FsC({type:st,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(Tt,en){2&Tt&&t.AVh("ant-card-hoverable",en.nzHoverable)},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",t.L39]},exportAs:["nzCardGrid"],standalone:!0,features:[t.GFd]})}return st})(),gt=(()=>{class st{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(Tt,en){1&Tt&&t.DNE(0,w,2,1,"div",0)(1,oe,3,2,"div",1),2&Tt&&(t.vxM(en.nzAvatar?0:-1),t.R7$(),t.vxM(en.nzTitle||en.nzDescription?1:-1))},dependencies:[s.T3,m.C,m.m],encapsulation:2,changeDetection:0})}return st})(),wt=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card-tab"]],viewQuery:function(Tt,en){if(1&Tt&&t.GBs(t.C4Q,7),2&Tt){let Ut;t.mGM(Ut=t.lsd())&&(en.template=Ut.first)}},exportAs:["nzCardTab"],standalone:!0,features:[t.aNF],ngContentSelectors:J,decls:1,vars:0,template:function(Tt,en){1&Tt&&(t.NAR(),t.DNE(0,Ee,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return st})(),zt=(()=>{class st{constructor(It,Tt,en){this.nzConfigService=It,this.cdr=Tt,this.directionality=en,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 M.B,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,K.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,K.Q)(this.destroy$)).subscribe(It=>{this.dir=It,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(t.rXU(L.yx),t.rXU(t.gRc),t.rXU(A.dS,8))};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card"]],contentQueries:function(Tt,en,Ut){if(1&Tt&&(t.wni(Ut,wt,5),t.wni(Ut,Pt,4)),2&Tt){let Lt;t.mGM(Lt=t.lsd())&&(en.listOfNzCardTabComponent=Lt.first),t.mGM(Lt=t.lsd())&&(en.listOfNzCardGridDirective=Lt)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(Tt,en){2&Tt&&t.AVh("ant-card-loading",en.nzLoading)("ant-card-bordered",!1===en.nzBorderless&&en.nzBordered)("ant-card-hoverable",en.nzHoverable)("ant-card-small","small"===en.nzSize)("ant-card-contain-grid",en.listOfNzCardGridDirective&&en.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===en.nzType)("ant-card-contain-tabs",!!en.listOfNzCardTabComponent)("ant-card-rtl","rtl"===en.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzHoverable:[2,"nzHoverable","nzHoverable",t.L39],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:J,decls:6,vars:5,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body",3,"ngStyle"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(Tt,en){1&Tt&&(t.NAR(),t.DNE(0,Z,5,3,"div",0)(1,E,2,1,"div",1),t.j41(2,"div",2),t.DNE(3,S,1,4,"nz-skeleton",3)(4,R,1,0),t.k0s(),t.DNE(5,Be,3,0,"ul",4)),2&Tt&&(t.vxM(en.nzTitle||en.nzExtra||en.listOfNzCardTabComponent?0:-1),t.R7$(),t.vxM(en.nzCover?1:-1),t.R7$(),t.Y8G("ngStyle",en.nzBodyStyle),t.R7$(),t.vxM(en.nzLoading?3:4),t.R7$(2),t.vxM(en.nzActions.length?5:-1))},dependencies:[m.C,m.m,s.T3,s.B3,j.i3,j.Bi],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,L.H4)()],st.prototype,"nzBordered",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzBorderless",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzHoverable",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzSize",void 0),st})(),xt=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=t.$C({type:st});static#n=this.\u0275inj=t.G2t({imports:[zt,gt,A.jI]})}return st})()},5979:(Rt,De,a)=>{a.d(De,{xH:()=>K});var t=a(3953),s=a(4085),m=a(1985),e=a(1413);let M=(()=>{class A{create(w){return typeof ResizeObserver>"u"?null:new ResizeObserver(w)}static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275prov=t.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),K=(()=>{class A{constructor(w){this.nzResizeObserverFactory=w,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((w,F)=>this.cleanupObserver(F))}observe(w){const F=(0,s.i8)(w);return new m.c(X=>{const x=this.observeElement(F).subscribe(X);return()=>{x.unsubscribe(),this.unobserveElement(F)}})}observeElement(w){if(this.observedElements.has(w))this.observedElements.get(w).count++;else{const F=new e.B,X=this.nzResizeObserverFactory.create(V=>F.next(V));X&&X.observe(w),this.observedElements.set(w,{observer:X,stream:F,count:1})}return this.observedElements.get(w).stream}unobserveElement(w){this.observedElements.has(w)&&(this.observedElements.get(w).count--,this.observedElements.get(w).count||this.cleanupObserver(w))}cleanupObserver(w){if(this.observedElements.has(w)){const{observer:F,stream:X}=this.observedElements.get(w);F&&F.disconnect(),X.complete(),this.observedElements.delete(w)}}static#e=this.\u0275fac=function(F){return new(F||A)(t.KVO(M))};static#t=this.\u0275prov=t.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},2986:(Rt,De,a)=>{a.d(De,{$g:()=>x,IJ:()=>J,Ov:()=>oe,wG:()=>V});var t=a(3953),s=a(9417),m=a(1413),e=a(3726),M=a(6977),K=a(851),L=a(8203),j=a(7891);const A=["*"],I=["inputElement"],w=["nz-checkbox",""],F=(Ee,Oe)=>Oe.value;function X(Ee,Oe){if(1&Ee){const pe=t.RV6();t.j41(0,"label",1),t.bIt("nzCheckedChange",function(ve){const fe=t.eBV(pe).$implicit,Y=t.XpG();return t.Njj(Y.onCheckedChange(fe,ve))}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&Ee){const pe=Oe.$implicit,Ie=t.XpG();t.Y8G("nzDisabled",pe.disabled||Ie.nzDisabled)("nzChecked",pe.checked),t.R7$(2),t.JRh(pe.label)}}let V=(()=>{class Ee{constructor(){this.nzOnChange=new t.bkB,this.checkboxList=[]}addCheckbox(pe){this.checkboxList.push(pe)}removeCheckbox(pe){this.checkboxList.splice(this.checkboxList.indexOf(pe),1)}onChange(){const pe=this.checkboxList.filter(Ie=>Ie.nzChecked).map(Ie=>Ie.nzValue);this.nzOnChange.emit(pe)}static#e=this.\u0275fac=function(Ie){return new(Ie||Ee)};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],standalone:!0,features:[t.aNF],ngContentSelectors:A,decls:1,vars:0,template:function(Ie,ve){1&Ie&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return Ee})(),x=(()=>{class Ee{innerCheckedChange(pe){this.nzDisabled||(this.nzChecked=pe,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(pe){this.nzChecked=pe,this.cdr.markForCheck()}registerOnChange(pe){this.onChange=pe}registerOnTouched(pe){this.onTouched=pe}setDisabledState(pe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||pe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(pe,Ie,ve,fe,Y,z,Z){this.ngZone=pe,this.elementRef=Ie,this.nzCheckboxWrapperComponent=ve,this.cdr=fe,this.focusMonitor=Y,this.directionality=z,this.nzFormStatusService=Z,this.dir="ltr",this.destroy$=new m.B,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.bkB,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,M.Q)(this.destroy$)).subscribe(pe=>{pe||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,M.Q)(this.destroy$)).subscribe(pe=>{this.dir=pe,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,M.Q)(this.destroy$)).subscribe(pe=>{pe.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,M.Q)(this.destroy$)).subscribe(pe=>pe.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ie){return new(Ie||Ee)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(V,8),t.rXU(t.gRc),t.rXU(K.FN),t.rXU(L.dS,8),t.rXU(j.is,8))};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["","nz-checkbox",""]],viewQuery:function(Ie,ve){if(1&Ie&&t.GBs(I,7),2&Ie){let fe;t.mGM(fe=t.lsd())&&(ve.inputElement=fe.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(Ie,ve){2&Ie&&t.AVh("ant-checkbox-wrapper-in-form-item",!!ve.nzFormStatusService)("ant-checkbox-wrapper-checked",ve.nzChecked)("ant-checkbox-rtl","rtl"===ve.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",t.L39],nzChecked:[2,"nzChecked","nzChecked",t.L39],nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],standalone:!0,features:[t.Jv_([{provide:s.kq,useExisting:(0,t.Rfq)(()=>Ee),multi:!0}]),t.GFd,t.aNF],attrs:w,ngContentSelectors:A,decls:6,vars:11,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(Ie,ve){if(1&Ie){const fe=t.RV6();t.NAR(),t.j41(0,"span",1)(1,"input",2,0),t.bIt("ngModelChange",function(z){return t.eBV(fe),t.Njj(ve.innerCheckedChange(z))}),t.k0s(),t.nrm(3,"span",3),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()}2&Ie&&(t.AVh("ant-checkbox-checked",ve.nzChecked&&!ve.nzIndeterminate)("ant-checkbox-disabled",ve.nzDisabled)("ant-checkbox-indeterminate",ve.nzIndeterminate),t.R7$(),t.Y8G("checked",ve.nzChecked)("ngModel",ve.nzChecked)("disabled",ve.nzDisabled),t.BMQ("autofocus",ve.nzAutoFocus?"autofocus":null)("id",ve.nzId))},dependencies:[s.YN,s.Zm,s.BC,s.vS],encapsulation:2,changeDetection:0})}return Ee})(),oe=(()=>{class Ee{onCheckedChange(pe,Ie){pe.checked=Ie,this.onChange(this.options)}constructor(pe,Ie,ve,fe){this.elementRef=pe,this.focusMonitor=Ie,this.cdr=ve,this.directionality=fe,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new m.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,M.Q)(this.destroy$)).subscribe(pe=>{pe||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(pe=>{this.dir=pe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(pe){this.options=pe,this.cdr.markForCheck()}registerOnChange(pe){this.onChange=pe}registerOnTouched(pe){this.onTouched=pe}setDisabledState(pe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||pe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#e=this.\u0275fac=function(Ie){return new(Ie||Ee)(t.rXU(t.aKT),t.rXU(K.FN),t.rXU(t.gRc),t.rXU(L.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(Ie,ve){2&Ie&&t.AVh("ant-checkbox-group-rtl","rtl"===ve.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39]},exportAs:["nzCheckboxGroup"],standalone:!0,features:[t.Jv_([{provide:s.kq,useExisting:(0,t.Rfq)(()=>Ee),multi:!0}]),t.GFd,t.aNF],decls:2,vars:0,consts:[["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzCheckedChange","nzDisabled","nzChecked"]],template:function(Ie,ve){1&Ie&&t.Z7z(0,X,3,3,"label",0,F),2&Ie&&t.Dyx(ve.options)},dependencies:[x],encapsulation:2})}return Ee})(),J=(()=>{class Ee{static#e=this.\u0275fac=function(Ie){return new(Ie||Ee)};static#t=this.\u0275mod=t.$C({type:Ee});static#n=this.\u0275inj=t.G2t({imports:[x,oe]})}return Ee})()},713:(Rt,De,a)=>{a.d(De,{GE:()=>e,LD:()=>L,Sn:()=>V,U1:()=>X,W4:()=>j,bS:()=>Ee,eF:()=>x,uX:()=>J});var t=a(9969);let s=(()=>{class Oe{static#e=this.SLOW="0.3s";static#t=this.BASE="0.2s";static#n=this.FAST="0.1s"}return Oe})(),m=(()=>{class Oe{static#e=this.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)";static#t=this.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)";static#n=this.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)";static#i=this.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)";static#o=this.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)";static#r=this.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)";static#s=this.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)";static#a=this.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)";static#c=this.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)";static#l=this.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)";static#u=this.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)";static#d=this.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)";static#h=this.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)";static#p=this.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)"}return Oe})();const e=(0,t.hZ)("collapseMotion",[(0,t.wk)("expanded",(0,t.iF)({height:"*"})),(0,t.wk)("collapsed",(0,t.iF)({height:0,overflow:"hidden"})),(0,t.wk)("hidden",(0,t.iF)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,t.kY)("expanded => collapsed",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`)),(0,t.kY)("expanded => hidden",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`)),(0,t.kY)("collapsed => expanded",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`)),(0,t.kY)("hidden => expanded",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`))]),L=((0,t.hZ)("treeCollapseMotion",[(0,t.kY)("* => *",[(0,t.P)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,t.iF)({overflow:"hidden"}),(0,t.yc)(0,[(0,t.i0)(`150ms ${m.EASE_IN_OUT}`,(0,t.iF)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,t.P)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,t.iF)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,t.yc)(0,[(0,t.i0)(`150ms ${m.EASE_IN_OUT}`,(0,t.iF)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,t.hZ)("drawerMaskMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${s.SLOW}`,(0,t.iF)({opacity:1}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${s.SLOW}`,(0,t.iF)({opacity:0}))])]),(0,t.hZ)("fadeMotion",[(0,t.kY)("* => enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${s.BASE}`,(0,t.iF)({opacity:1}))]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${s.BASE}`,(0,t.iF)({opacity:0}))])])),j=(0,t.hZ)("helpMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"translateY(-5px)"}),(0,t.i0)(`${s.SLOW} ${m.EASE_IN_OUT}`,(0,t.iF)({opacity:1,transform:"translateY(0)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"translateY(0)"}),(0,t.i0)(`${s.SLOW} ${m.EASE_IN_OUT}`,(0,t.iF)({opacity:0,transform:"translateY(-5px)"}))])]),w=((0,t.hZ)("moveUpMotion",[(0,t.kY)("* => enter",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,t.i0)(`${s.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,t.kY)("* => leave",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,t.i0)(`${s.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,t.hZ)("notificationMotion",[(0,t.wk)("enterRight",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterRight",[(0,t.iF)({opacity:0,transform:"translateX(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterLeft",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterLeft",[(0,t.iF)({opacity:0,transform:"translateX(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterTop",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterTop",[(0,t.iF)({opacity:0,transform:"translateY(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterBottom",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterBottom",[(0,t.iF)({opacity:0,transform:"translateY(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("leave",(0,t.iF)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,t.kY)("* => leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)("100ms linear")])]),`${s.BASE} ${m.EASE_OUT_QUINT}`),F=`${s.BASE} ${m.EASE_IN_QUINT}`,X=(0,t.hZ)("slideMotion",[(0,t.wk)("void",(0,t.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,t.wk)("enter",(0,t.iF)({opacity:1,transform:"scaleY(1)"})),(0,t.kY)("void => *",[(0,t.i0)(w)]),(0,t.kY)("* => void",[(0,t.i0)(F)])]),V=(0,t.hZ)("slideAlertMotion",[(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)(`${s.SLOW} ${m.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),x=(0,t.hZ)("tabSwitchMotion",[(0,t.wk)("leave",(0,t.iF)({display:"none"})),(0,t.kY)("* => enter",[(0,t.iF)({display:"block",opacity:0}),(0,t.i0)(s.SLOW)]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({position:"absolute",top:0,left:0,width:"100%"}),(0,t.i0)(s.SLOW,(0,t.iF)({opacity:0})),(0,t.iF)({display:"none"})])]),J=((0,t.hZ)("thumbMotion",[(0,t.wk)("from",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:0,width:0}}),(0,t.wk)("to",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:100,width:0}}),(0,t.kY)("from => to",(0,t.i0)(`300ms ${m.EASE_IN_OUT}`))]),(0,t.hZ)("zoomBigMotion",[(0,t.kY)("void => active",[(0,t.iF)({opacity:0,transform:"scale(0.8)"}),(0,t.i0)(`${s.BASE} ${m.EASE_OUT_CIRC}`,(0,t.iF)({opacity:1,transform:"scale(1)"}))]),(0,t.kY)("active => void",[(0,t.iF)({opacity:1,transform:"scale(1)"}),(0,t.i0)(`${s.BASE} ${m.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scale(0.8)"}))])])),Ee=(0,t.hZ)("zoomBadgeMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,t.i0)(`${s.SLOW} ${m.EASE_OUT_BACK}`,(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,t.i0)(`${s.SLOW} ${m.EASE_IN_BACK}`,(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},6006:(Rt,De,a)=>{a.d(De,{PA:()=>m,cM:()=>Ie,nP:()=>M,uP:()=>K,un:()=>e});var t=a(4709),s=a(4215);const m=["success","processing","error","default","warning"],e=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function M(ve){return-1!==e.indexOf(ve)}function K(ve){return-1!==m.indexOf(ve)}const L=2,j=.16,A=.05,I=.05,w=.15,F=5,X=4,V=[{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 x({r:ve,g:fe,b:Y}){const z=(0,t.wE)(ve,fe,Y);return{h:360*z.h,s:z.s,v:z.v}}function oe({r:ve,g:fe,b:Y}){return`#${(0,t.Ob)(ve,fe,Y,!1)}`}function Ee(ve,fe,Y){let z;return z=Math.round(ve.h)>=60&&Math.round(ve.h)<=240?Y?Math.round(ve.h)-L*fe:Math.round(ve.h)+L*fe:Y?Math.round(ve.h)+L*fe:Math.round(ve.h)-L*fe,z<0?z+=360:z>=360&&(z-=360),z}function Oe(ve,fe,Y){if(0===ve.h&&0===ve.s)return ve.s;let z;return z=Y?ve.s-j*fe:fe===X?ve.s+j:ve.s+A*fe,z>1&&(z=1),Y&&fe===F&&z>.1&&(z=.1),z<.06&&(z=.06),Number(z.toFixed(2))}function pe(ve,fe,Y){let z;return z=Y?ve.v+I*fe:ve.v-w*fe,z>1&&(z=1),Number(z.toFixed(2))}function Ie(ve,fe={}){const Y=[],z=(0,s.RO)(ve);for(let Z=F;Z>0;Z-=1){const he=x(z),E=oe((0,s.RO)({h:Ee(he,Z,!0),s:Oe(he,Z,!0),v:pe(he,Z,!0)}));Y.push(E)}Y.push(oe(z));for(let Z=1;Z<=X;Z+=1){const he=x(z),E=oe((0,s.RO)({h:Ee(he,Z),s:Oe(he,Z),v:pe(he,Z)}));Y.push(E)}return"dark"===fe.theme?V.map(({index:Z,opacity:he})=>oe(function J(ve,fe,Y){const z=Y/100;return{r:(fe.r-ve.r)*z+ve.r,g:(fe.g-ve.g)*z+ve.g,b:(fe.b-ve.b)*z+ve.b}}((0,s.RO)(fe.backgroundColor||"#141414"),(0,s.RO)(Y[Z]),100*he))):Y}},6042:(Rt,De,a)=>{a.d(De,{yx:()=>Ie,H4:()=>ve});var t=a(3953),s=a(1413),m=a(5964),e=a(3703),M=a(4709),K=a(6681),L=a(4215),j=a(9785),A=function(){function fe(Y,z){var Z;if(void 0===Y&&(Y=""),void 0===z&&(z={}),Y instanceof fe)return Y;"number"==typeof Y&&(Y=(0,M.oS)(Y)),this.originalInput=Y;var he=(0,L.RO)(Y);this.originalInput=Y,this.r=he.r,this.g=he.g,this.b=he.b,this.a=he.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Z=z.format)&&void 0!==Z?Z:he.format,this.gradientType=z.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=he.ok}return fe.prototype.isDark=function(){return this.getBrightness()<128},fe.prototype.isLight=function(){return!this.isDark()},fe.prototype.getBrightness=function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},fe.prototype.getLuminance=function(){var Y=this.toRgb(),E=Y.r/255,S=Y.g/255,R=Y.b/255;return.2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))+.0722*(R<=.03928?R/12.92:Math.pow((R+.055)/1.055,2.4))},fe.prototype.getAlpha=function(){return this.a},fe.prototype.setAlpha=function(Y){return this.a=(0,j.TV)(Y),this.roundA=Math.round(100*this.a)/100,this},fe.prototype.isMonochrome=function(){return 0===this.toHsl().s},fe.prototype.toHsv=function(){var Y=(0,M.wE)(this.r,this.g,this.b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this.a}},fe.prototype.toHsvString=function(){var Y=(0,M.wE)(this.r,this.g,this.b),z=Math.round(360*Y.h),Z=Math.round(100*Y.s),he=Math.round(100*Y.v);return 1===this.a?"hsv(".concat(z,", ").concat(Z,"%, ").concat(he,"%)"):"hsva(".concat(z,", ").concat(Z,"%, ").concat(he,"%, ").concat(this.roundA,")")},fe.prototype.toHsl=function(){var Y=(0,M.K6)(this.r,this.g,this.b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this.a}},fe.prototype.toHslString=function(){var Y=(0,M.K6)(this.r,this.g,this.b),z=Math.round(360*Y.h),Z=Math.round(100*Y.s),he=Math.round(100*Y.l);return 1===this.a?"hsl(".concat(z,", ").concat(Z,"%, ").concat(he,"%)"):"hsla(".concat(z,", ").concat(Z,"%, ").concat(he,"%, ").concat(this.roundA,")")},fe.prototype.toHex=function(Y){return void 0===Y&&(Y=!1),(0,M.Ob)(this.r,this.g,this.b,Y)},fe.prototype.toHexString=function(Y){return void 0===Y&&(Y=!1),"#"+this.toHex(Y)},fe.prototype.toHex8=function(Y){return void 0===Y&&(Y=!1),(0,M.H)(this.r,this.g,this.b,this.a,Y)},fe.prototype.toHex8String=function(Y){return void 0===Y&&(Y=!1),"#"+this.toHex8(Y)},fe.prototype.toHexShortString=function(Y){return void 0===Y&&(Y=!1),1===this.a?this.toHexString(Y):this.toHex8String(Y)},fe.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},fe.prototype.toRgbString=function(){var Y=Math.round(this.r),z=Math.round(this.g),Z=Math.round(this.b);return 1===this.a?"rgb(".concat(Y,", ").concat(z,", ").concat(Z,")"):"rgba(".concat(Y,", ").concat(z,", ").concat(Z,", ").concat(this.roundA,")")},fe.prototype.toPercentageRgb=function(){var Y=function(z){return"".concat(Math.round(100*(0,j.Cg)(z,255)),"%")};return{r:Y(this.r),g:Y(this.g),b:Y(this.b),a:this.a}},fe.prototype.toPercentageRgbString=function(){var Y=function(z){return Math.round(100*(0,j.Cg)(z,255))};return 1===this.a?"rgb(".concat(Y(this.r),"%, ").concat(Y(this.g),"%, ").concat(Y(this.b),"%)"):"rgba(".concat(Y(this.r),"%, ").concat(Y(this.g),"%, ").concat(Y(this.b),"%, ").concat(this.roundA,")")},fe.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var Y="#"+(0,M.Ob)(this.r,this.g,this.b,!1),z=0,Z=Object.entries(K.D);z=0&&(Y.startsWith("hex")||"name"===Y)?"name"===Y&&0===this.a?this.toName():this.toRgbString():("rgb"===Y&&(Z=this.toRgbString()),"prgb"===Y&&(Z=this.toPercentageRgbString()),("hex"===Y||"hex6"===Y)&&(Z=this.toHexString()),"hex3"===Y&&(Z=this.toHexString(!0)),"hex4"===Y&&(Z=this.toHex8String(!0)),"hex8"===Y&&(Z=this.toHex8String()),"name"===Y&&(Z=this.toName()),"hsl"===Y&&(Z=this.toHslString()),"hsv"===Y&&(Z=this.toHsvString()),Z||this.toHexString())},fe.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},fe.prototype.clone=function(){return new fe(this.toString())},fe.prototype.lighten=function(Y){void 0===Y&&(Y=10);var z=this.toHsl();return z.l+=Y/100,z.l=(0,j.J$)(z.l),new fe(z)},fe.prototype.brighten=function(Y){void 0===Y&&(Y=10);var z=this.toRgb();return z.r=Math.max(0,Math.min(255,z.r-Math.round(-Y/100*255))),z.g=Math.max(0,Math.min(255,z.g-Math.round(-Y/100*255))),z.b=Math.max(0,Math.min(255,z.b-Math.round(-Y/100*255))),new fe(z)},fe.prototype.darken=function(Y){void 0===Y&&(Y=10);var z=this.toHsl();return z.l-=Y/100,z.l=(0,j.J$)(z.l),new fe(z)},fe.prototype.tint=function(Y){return void 0===Y&&(Y=10),this.mix("white",Y)},fe.prototype.shade=function(Y){return void 0===Y&&(Y=10),this.mix("black",Y)},fe.prototype.desaturate=function(Y){void 0===Y&&(Y=10);var z=this.toHsl();return z.s-=Y/100,z.s=(0,j.J$)(z.s),new fe(z)},fe.prototype.saturate=function(Y){void 0===Y&&(Y=10);var z=this.toHsl();return z.s+=Y/100,z.s=(0,j.J$)(z.s),new fe(z)},fe.prototype.greyscale=function(){return this.desaturate(100)},fe.prototype.spin=function(Y){var z=this.toHsl(),Z=(z.h+Y)%360;return z.h=Z<0?360+Z:Z,new fe(z)},fe.prototype.mix=function(Y,z){void 0===z&&(z=50);var Z=this.toRgb(),he=new fe(Y).toRgb(),E=z/100;return new fe({r:(he.r-Z.r)*E+Z.r,g:(he.g-Z.g)*E+Z.g,b:(he.b-Z.b)*E+Z.b,a:(he.a-Z.a)*E+Z.a})},fe.prototype.analogous=function(Y,z){void 0===Y&&(Y=6),void 0===z&&(z=30);var Z=this.toHsl(),he=360/z,E=[this];for(Z.h=(Z.h-(he*Y>>1)+720)%360;--Y;)Z.h=(Z.h+he)%360,E.push(new fe(Z));return E},fe.prototype.complement=function(){var Y=this.toHsl();return Y.h=(Y.h+180)%360,new fe(Y)},fe.prototype.monochromatic=function(Y){void 0===Y&&(Y=6);for(var z=this.toHsv(),Z=z.h,he=z.s,E=z.v,S=[],R=1/Y;Y--;)S.push(new fe({h:Z,s:he,v:E})),E=(E+R)%1;return S},fe.prototype.splitcomplement=function(){var Y=this.toHsl(),z=Y.h;return[this,new fe({h:(z+72)%360,s:Y.s,l:Y.l}),new fe({h:(z+216)%360,s:Y.s,l:Y.l})]},fe.prototype.onBackground=function(Y){var z=this.toRgb(),Z=new fe(Y).toRgb(),he=z.a+Z.a*(1-z.a);return new fe({r:(z.r*z.a+Z.r*Z.a*(1-z.a))/he,g:(z.g*z.a+Z.g*Z.a*(1-z.a))/he,b:(z.b*z.a+Z.b*Z.a*(1-z.a))/he,a:he})},fe.prototype.triad=function(){return this.polyad(3)},fe.prototype.tetrad=function(){return this.polyad(4)},fe.prototype.polyad=function(Y){for(var z=this.toHsl(),Z=z.h,he=[this],E=360/Y,S=1;S{let U=S.clone();return U=R?.(U)||U,U.toRgbString()},he=(S,R)=>{const U=new A(S),se=(0,w.cM)(U.toRgbString());z[`${R}-color`]=Z(U),z[`${R}-color-disabled`]=se[1],z[`${R}-color-hover`]=se[4],z[`${R}-color-active`]=se[7],z[`${R}-color-outline`]=U.clone().setAlpha(.2).toRgbString(),z[`${R}-color-deprecated-bg`]=se[1],z[`${R}-color-deprecated-border`]=se[3]};if(Y.primaryColor){he(Y.primaryColor,"primary");const S=new A(Y.primaryColor),R=(0,w.cM)(S.toRgbString());R.forEach((se,Be)=>{z[`primary-${Be+1}`]=se}),z["primary-color-deprecated-l-35"]=Z(S,se=>se.lighten(35)),z["primary-color-deprecated-l-20"]=Z(S,se=>se.lighten(20)),z["primary-color-deprecated-t-20"]=Z(S,se=>se.tint(20)),z["primary-color-deprecated-t-50"]=Z(S,se=>se.tint(50)),z["primary-color-deprecated-f-12"]=Z(S,se=>se.setAlpha(.12*se.getAlpha()));const U=new A(R[0]);z["primary-color-active-deprecated-f-30"]=Z(U,se=>se.setAlpha(.3*se.getAlpha())),z["primary-color-active-deprecated-d-02"]=Z(U,se=>se.darken(2))}return Y.successColor&&he(Y.successColor,"success"),Y.warningColor&&he(Y.warningColor,"warning"),Y.errorColor&&he(Y.errorColor,"error"),Y.infoColor&&he(Y.infoColor,"info"),`\n :root {\n ${Object.keys(z).map(S=>`--${fe}-${S}: ${z[S]};`).join("\n")}\n }\n `.trim()}(fe,Y);(0,X.OC)()?(0,X.BD)(Z,`${oe}-dynamic-theme`,{cspNonce:z}):(0,F.R8)("NzConfigService: SSR do not support dynamic theme with css variables.")}const Oe=function(fe){return void 0!==fe};let Ie=(()=>{class fe{constructor(z,Z){this.configUpdated$=new s.B,this.config=z||{},this.cspNonce=Z,this.config.theme&&Ee(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,Z)}getConfig(){return this.config}getConfigForComponent(z){return this.config[z]}getConfigChangeEventForComponent(z){return this.configUpdated$.pipe((0,m.p)(Z=>Z===z),(0,e.u)(void 0))}set(z,Z){this.config[z]={...this.config[z],...Z},"theme"===z&&this.config.theme&&Ee(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,this.cspNonce),this.configUpdated$.next(z)}static#e=this.\u0275fac=function(Z){return new(Z||fe)(t.KVO(V,8),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})();function ve(){return function(Y,z,Z){const he=`$$__zorroConfigDecorator__${z}`;return Object.defineProperty(Y,he,{configurable:!0,writable:!0,enumerable:!1}),{get(){const E=Z?.get?Z.get.bind(this)():this[he],S=(this.propertyAssignCounter?.[z]||0)>1,R=this.nzConfigService.getConfigForComponent(this._nzModuleName)?.[z];return S&&Oe(E)?E:Oe(R)?R:E},set(E){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[z]=(this.propertyAssignCounter[z]||0)+1,Z?.set?Z.set.bind(this)(E):this[he]=E},configurable:!0,enumerable:!0}}}},7891:(Rt,De,a)=>{a.d(De,{J1:()=>w,Xd:()=>I,is:()=>L,n1:()=>j});var t=a(3953),s=a(2771),m=a(4412),e=a(177),M=a(5103);function K(F,X){if(1&F&&t.nrm(0,"span",1),2&F){const V=t.XpG();t.Y8G("nzType",V.iconType)}}let L=(()=>{class F{constructor(){this.formStatusChanges=new s.m(1)}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})(),j=(()=>{class F{constructor(){this.noFormStatus=new m.t(!1)}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})();const A={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let I=(()=>{class F{constructor(V){this.cdr=V,this.status="",this.iconType=null}ngOnChanges(V){this.updateIcon()}updateIcon(){this.iconType=this.status?A[this.status]:null,this.cdr.markForCheck()}static#e=this.\u0275fac=function(x){return new(x||F)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:F,selectors:[["nz-form-item-feedback-icon"]],hostAttrs:[1,"ant-form-item-feedback-icon"],hostVars:8,hostBindings:function(x,oe){2&x&&t.AVh("ant-form-item-feedback-icon-error","error"===oe.status)("ant-form-item-feedback-icon-warning","warning"===oe.status)("ant-form-item-feedback-icon-success","success"===oe.status)("ant-form-item-feedback-icon-validating","validating"===oe.status)},inputs:{status:"status"},exportAs:["nzFormFeedbackIcon"],features:[t.OA$],decls:1,vars:1,consts:[["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(x,oe){1&x&&t.DNE(0,K,1,1,"span",0),2&x&&t.Y8G("ngIf",oe.iconType)},dependencies:[e.bT,M.Dn],encapsulation:2,changeDetection:0})}return F})(),w=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=t.$C({type:F});static#n=this.\u0275inj=t.G2t({imports:[e.MD,M.Y3]})}return F})()},3451:(Rt,De,a)=>{a.d(De,{H3:()=>e,R8:()=>L});var t=a(3953);const m={},e="[NG-ZORRO]:";const L=(...I)=>function K(I,...w){(0,t.naY)()&&function M(...I){const w=I.reduce((F,X)=>F+X.toString(),"");return!m[w]&&(m[w]=!0,!0)}(...w)&&I(...w)}((...w)=>console.warn(e,...w),...I)},6841:(Rt,De,a)=>{a.d(De,{z:()=>s});var t=a(3953);let s=(()=>{class e{constructor(){this.animationType=(0,t.WQX)(t.bc$,{optional:!0}),this.nzNoAnimation=!1}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","nzNoAnimation",""]],hostVars:2,hostBindings:function(L,j){2&L&&t.AVh("nz-animate-disabled",j.nzNoAnimation||"NoopAnimations"===j.animationType)},inputs:{nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",t.L39]},exportAs:["nzNoAnimation"],standalone:!0,features:[t.GFd]})}return e})()},7806:(Rt,De,a)=>{a.d(De,{C:()=>e,m:()=>s});var t=a(3953);let s=(()=>{class M{static ngTemplateContextGuard(L,j){return!0}recreateView(){this.viewContainer.clear();const L=this.nzStringTemplateOutlet instanceof t.C4Q;this.embeddedViewRef=this.viewContainer.createEmbeddedView(L?this.nzStringTemplateOutlet:this.templateRef,L?this.nzStringTemplateOutletContext:this.context)}updateContext(){const j=this.nzStringTemplateOutlet instanceof t.C4Q?this.nzStringTemplateOutletContext:this.context,A=this.embeddedViewRef.context;if(j)for(const I of Object.keys(j))A[I]=j[I]}constructor(L,j){this.viewContainer=L,this.templateRef=j,this.embeddedViewRef=null,this.context=new m,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}ngOnChanges(L){const{nzStringTemplateOutletContext:j,nzStringTemplateOutlet:A}=L;A&&(this.context.$implicit=A.currentValue),(()=>{let F=!1;return A&&(F=!!A.firstChange||(A.previousValue instanceof t.C4Q||A.currentValue instanceof t.C4Q)),j&&(x=>{const oe=Object.keys(x.previousValue||{}),J=Object.keys(x.currentValue||{});if(oe.length===J.length){for(const Ee of J)if(-1===oe.indexOf(Ee))return!0;return!1}return!0})(j)||F})()?this.recreateView():this.updateContext()}static#e=this.\u0275fac=function(j){return new(j||M)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:M,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],standalone:!0,features:[t.OA$]})}return M})();class m{}let e=(()=>{class M{static#e=this.\u0275fac=function(j){return new(j||M)};static#t=this.\u0275mod=t.$C({type:M});static#n=this.\u0275inj=t.G2t({})}return M})()},5463:(Rt,De,a)=>{a.d(De,{$_:()=>V,G5:()=>x,Ib:()=>j,Js:()=>K,MV:()=>A,jj:()=>I,pn:()=>M,vT:()=>X});var t=a(7987),s=a(3953),m=a(6977),e=a(1025);const M={top:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new t.uH({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new t.uH({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new t.uH({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new t.uH({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new t.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},K=[M.top,M.right,M.bottom,M.left],j=[new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],A=[M.bottomLeft,new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function I(oe){for(const J in M)if(oe.connectionPair.originX===M[J].originX&&oe.connectionPair.originY===M[J].originY&&oe.connectionPair.overlayX===M[J].overlayX&&oe.connectionPair.overlayY===M[J].overlayY)return J}new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},void 0,2),new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,-2),new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"},void 0,2),new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,-2);let X=(()=>{class oe{constructor(Ee,Oe){this.cdkConnectedOverlay=Ee,this.nzDestroyService=Oe,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,m.Q)(this.nzDestroyService)).subscribe(pe=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(pe)})}updateArrowPosition(Ee){const Oe=this.getOriginRect(),pe=I(Ee);let Ie=0,ve=0;"topLeft"===pe||"bottomLeft"===pe?Ie=Oe.width/2-14:"topRight"===pe||"bottomRight"===pe?Ie=-(Oe.width/2-14):"leftTop"===pe||"rightTop"===pe?ve=Oe.height/2-10:("leftBottom"===pe||"rightBottom"===pe)&&(ve=-(Oe.height/2-10)),(this.cdkConnectedOverlay.offsetX!==Ie||this.cdkConnectedOverlay.offsetY!==ve)&&(this.cdkConnectedOverlay.offsetY=ve,this.cdkConnectedOverlay.offsetX=Ie,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof t.$Q?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const Ee=this.getFlexibleConnectedPositionStrategyOrigin();if(Ee instanceof s.aKT)return Ee.nativeElement.getBoundingClientRect();if(Ee instanceof Element)return Ee.getBoundingClientRect();const Oe=Ee.width||0,pe=Ee.height||0;return{top:Ee.y,bottom:Ee.y+pe,left:Ee.x,right:Ee.x+Oe,height:pe,width:Oe}}static#e=this.\u0275fac=function(Oe){return new(Oe||oe)(s.rXU(t.WB),s.rXU(e.y4))};static#t=this.\u0275dir=s.FsC({type:oe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:[2,"nzArrowPointAtCenter","nzArrowPointAtCenter",s.L39]},exportAs:["nzConnectedOverlay"],features:[s.Jv_([e.y4]),s.GFd]})}return oe})(),V=(()=>{class oe{static#e=this.\u0275fac=function(Oe){return new(Oe||oe)};static#t=this.\u0275mod=s.$C({type:oe});static#n=this.\u0275inj=s.G2t({})}return oe})();function x(oe,J){J&&(oe._host.style.zIndex=`${J}`)}},4500:(Rt,De,a)=>{a.d(De,{F:()=>e,j:()=>M});const t=["moz","ms","webkit"];function e(K){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(K);const L=t.filter(j=>`${j}CancelAnimationFrame`in window||`${j}CancelRequestAnimationFrame`in window)[0];return L?(window[`${L}CancelAnimationFrame`]||window[`${L}CancelRequestAnimationFrame`]).call(this,K):clearTimeout(K)}const M=function m(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const K=t.filter(L=>`${L}RequestAnimationFrame`in window)[0];return K?window[`${K}RequestAnimationFrame`]:function s(){let K=0;return function(L){const j=(new Date).getTime(),A=Math.max(0,16-(j-K)),I=window.setTimeout(()=>{L(j+A)},A);return K=j+A,I}}()}()},1025:(Rt,De,a)=>{a.d(De,{cB:()=>X,fe:()=>Ie,jp:()=>fe,pt:()=>pe,qH:()=>J,y4:()=>Y,yY:()=>ve});var t=a(3953),s=a(1413),m=a(3798),e=a(980),M=a(6354),K=a(5964),L=a(6977),j=a(9172),A=a(3294),I=a(317),w=a(9327);const F=()=>{};let X=(()=>{class Z{constructor(E,S){this.ngZone=E,this.rendererFactory2=S,this.resizeSource$=new s.B,this.listeners=0,this.disposeHandle=F,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=F}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,m.Z)(16),(0,e.j)(()=>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=F)}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(t.SKi),t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),J=(()=>{class Z{constructor(E){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=E.createRenderer(null,null)}requestDraggingSequence(E){return this.handleRegistry.size||this.registerDraggingHandler((0,I.kH)(E)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function oe(Z){const he=(0,I.q1)(Z);return{x:he.pageX,y:he.pageY}}(E),this.currentDraggingSequence=new s.B,this.currentDraggingSequence.pipe((0,M.T)(S=>({x:S.pageX-this.currentStartingPoint.x,y:S.pageY-this.currentStartingPoint.y})),(0,K.p)(S=>Math.abs(S.x)>this.draggingThreshold||Math.abs(S.y)>this.draggingThreshold),(0,e.j)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(E){E?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",S=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(S.touches[0]||S.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",S=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(S)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})();var pe=function(Z){return Z.xxl="xxl",Z.xl="xl",Z.lg="lg",Z.md="md",Z.sm="sm",Z.xs="xs",Z}(pe||{});const Ie={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ve={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 fe=(()=>{class Z{constructor(E,S){this.resizeService=E,this.mediaMatcher=S,this.destroy$=new s.B,this.resizeService.subscribe().pipe((0,L.Q)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(E,S){if(S){const R=()=>this.matchMedia(E,!0);return this.resizeService.subscribe().pipe((0,M.T)(R),(0,j.Z)(R()),(0,A.F)((U,se)=>U[0]===se[0]),(0,M.T)(U=>U[1]))}{const R=()=>this.matchMedia(E);return this.resizeService.subscribe().pipe((0,M.T)(R),(0,j.Z)(R()),(0,A.F)())}}matchMedia(E,S){let R=pe.md;const U={};return Object.keys(E).map(se=>{const Be=se,Pt=this.mediaMatcher.matchMedia(Ie[Be]).matches;U[se]=Pt,Pt&&(R=Be)}),S?[R,U]:R}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(X),t.KVO(w.DY))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),Y=(()=>{class Z extends s.B{ngOnDestroy(){this.next(),this.complete()}static#e=this.\u0275fac=(()=>{let E;return function(R){return(E||(E=t.xGo(Z)))(R||Z)}})();static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac})}return Z})()},6389:(Rt,De,a)=>{a.d(De,{c:()=>s,p:()=>m});var t=a(3953);let s=(()=>{class e{setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}constructor(K,L){this.elementRef=K,this.renderer=L,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}static#e=this.\u0275fac=function(L){return new(L||e)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:e,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"},standalone:!0,features:[t.OA$]})}return e})(),m=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({})}return e})()},317:(Rt,De,a)=>{a.d(De,{BD:()=>ue,BV:()=>xt,CF:()=>se,Fq:()=>zn,G4:()=>oe,LP:()=>q,Mk:()=>he,OC:()=>kn,OM:()=>U,Ro:()=>Oe,cG:()=>Wn,cj:()=>J,cz:()=>Ct,gD:()=>F,ho:()=>fn,ij:()=>Tn,j3:()=>pe,kH:()=>E,n9:()=>w,nI:()=>st,nS:()=>Kt,q1:()=>S,r1:()=>A,xP:()=>ie,yL:()=>gt});var t=a(3953),s=a(4085),m=a(1413),e=a(4402),M=a(2806),K=a(7673),L=a(6697);function A(ee,Xe){if(!ee||!Xe||ee.length!==Xe.length)return!1;const dt=ee.length;for(let at=0;at"u"||null===ee}function oe(ee){return(0,s.he)(ee)}function J(ee){return(0,t.Udg)(ee,0)}function Oe(ee,Xe=0){return(0,s.OE)(ee,Xe)}function pe(ee){return(0,s.a1)(ee)}function he(ee){if(!ee.getClientRects().length)return{top:0,left:0};const Xe=ee.getBoundingClientRect(),dt=ee.ownerDocument.defaultView;return{top:Xe.top+dt.pageYOffset,left:Xe.left+dt.pageXOffset}}function E(ee){return ee.type.startsWith("touch")}function S(ee){return E(ee)?ee.touches[0]||ee.changedTouches[0]:ee}function U(ee,Xe="@"){if("string"!=typeof ee)return[];const dt=function R(ee){const Xe=Array.isArray(ee)?ee:[ee];let dt=Xe.join("").replace(/(\$|\^)/g,"\\$1");return Xe.length>1&&(dt=`[${dt}]`),new RegExp(`(\\s|^)(${dt})[^\\s]*`,"g")}(Xe),at=ee.match(dt);return null!==at?at.map(Ot=>Ot.trim()):[]}function se(ee,Xe,dt){if(ee.length>Xe)return ee;const at=`${function Pt(ee,Xe){return Array(ee).fill(Xe).join("")}(Xe,dt)}${ee}`;return at.slice(at.length-Xe,at.length)}function gt(ee){return!!ee&&"function"==typeof ee.then&&"function"==typeof ee.catch}function xt(ee){return"number"==typeof ee&&isFinite(ee)}function st(ee,Xe){return Math.round(ee*Math.pow(10,Xe))/Math.pow(10,Xe)}function Ct(ee,Xe=0){return ee.reduce((dt,at)=>dt+at,Xe)}const Tt=["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"],en=typeof window<"u",Ut=en&&null!=window.mozInnerScreenX,Lt=ee=>parseInt(ee,10);function fn(ee,Xe,dt){if(!en)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const at=dt&&dt.debug||!1;if(at){const mt=document.querySelector("#input-textarea-caret-position-mirror-div");mt&&mt.parentNode.removeChild(mt)}const Ot=document.createElement("div");Ot.id="input-textarea-caret-position-mirror-div",document.body.appendChild(Ot);const Qe=Ot.style,be=window.getComputedStyle?window.getComputedStyle(ee):ee.currentStyle,Je="INPUT"===ee.nodeName;Qe.whiteSpace="pre-wrap",Je||(Qe.wordWrap="break-word"),Qe.position="absolute",at||(Qe.visibility="hidden"),Tt.forEach(mt=>{Je&&"lineHeight"===mt?Qe.lineHeight=be.height:Qe[mt]=be[mt]}),Ut?ee.scrollHeight>Lt(be.height)&&(Qe.overflowY="scroll"):Qe.overflow="hidden",Ot.textContent=ee.value.substring(0,Xe),Je&&(Ot.textContent=Ot.textContent.replace(/\s/g,"\xa0"));const re=document.createElement("span");re.textContent=ee.value.substring(Xe)||".",Ot.appendChild(re);const ze={top:re.offsetTop+Lt(be.borderTopWidth),left:re.offsetLeft+Lt(be.borderLeftWidth),height:Lt(be.lineHeight)};return at?(re.style.backgroundColor="#eee",function $n(ee,Xe){const dt=getComputedStyle(ee).getPropertyValue("font-size"),at=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(at),at.id="DEBUG",at.style.position="absolute",at.style.backgroundColor="red",at.style.height=dt,at.style.width="1px",at.style.top=`${ee.getBoundingClientRect().top-ee.scrollTop+window.pageYOffset+Xe.top}px`,at.style.left=`${ee.getBoundingClientRect().left-ee.scrollLeft+window.pageXOffset+Xe.left}px`}(ee,ze)):document.body.removeChild(Ot),ze}function zn(ee){if(typeof window<"u"&&window.document&&window.document.documentElement){const Xe=Array.isArray(ee)?ee:[ee],{documentElement:dt}=window.document;return Xe.some(at=>at in dt.style)}return!1}const At=1,Et=3,St=8;let Wt;const Ue={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function Fe(ee){if(!ee)return 0;const Xe=ee.match(/^\d*(\.\d*)?/);return Xe?Number(Xe[0]):0}function ie(ee,Xe,dt,at,Ot,Qe=""){Wt||(Wt=document.createElement("div"),Wt.setAttribute("aria-hidden","true"),document.body.appendChild(Wt));const be=window.getComputedStyle(ee),Je=function te(ee){return Array.prototype.slice.apply(ee).map(dt=>`${dt}: ${ee.getPropertyValue(dt)};`).join("")}(be),re=Fe(be.lineHeight),ze=Math.round(re*(Xe+1)+Fe(be.paddingTop)+Fe(be.paddingBottom));Wt.setAttribute("style",Je),Wt.style.position="fixed",Wt.style.left="0",Wt.style.height="auto",Wt.style.minHeight="auto",Wt.style.maxHeight="auto",Wt.style.top="-999999px",Wt.style.zIndex="-1000",Wt.style.textOverflow="clip",Wt.style.whiteSpace="normal",Wt.style.webkitLineClamp="none";const mt=function _e(ee){const Xe=[];return ee.forEach(dt=>{const at=Xe[Xe.length-1];at&&dt.nodeType===Et&&at.nodeType===Et?at.data+=dt.data:Xe.push(dt)}),Xe}(dt),Ke=document.createElement("div"),xe=document.createElement("span"),Re=document.createTextNode(Qe),B=document.createElement("span");function ce(){return Wt.offsetHeight{xe.appendChild(rn)}),xe.appendChild(Re),at.forEach(rn=>{B.appendChild(rn.cloneNode(!0))}),Ke.appendChild(xe),Ke.appendChild(B),Wt.appendChild(Ke),ce()){const rn=Wt.innerHTML;return Wt.removeChild(Ke),{contentNodes:dt,text:rn,ellipsis:!1}}const N=Array.prototype.slice.apply(Wt.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:rn})=>rn!==St),ke=Array.prototype.slice.apply(Wt.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Wt.removeChild(Ke),Wt.innerHTML="";const ge=document.createElement("span");Wt.appendChild(ge);const W=document.createTextNode(Ot+Qe);function me(rn,Cn,Jn=0,jn=Cn.length,Gn=0){const zi=Math.floor((Jn+jn)/2);if(rn.textContent=Cn.slice(0,zi),Jn>=jn-1)for(let Oi=jn;Oi>=Jn;Oi-=1){const po=Cn.slice(0,Oi);if(rn.textContent=po,ce()||!po)return Oi===Cn.length?{finished:!1,node:document.createTextNode(Cn)}:{finished:!0,node:document.createTextNode(po)}}return ce()?me(rn,Cn,zi,jn,zi):me(rn,Cn,Jn,zi,Gn)}function qe(rn,Cn){const Jn=rn.nodeType;if(Jn===At)return ce()?{finished:!1,node:mt[Cn]}:(ge.removeChild(rn),{finished:!0,node:null});if(Jn===Et){const jn=rn.textContent||"",Gn=document.createTextNode(jn);return function H(rn){ge.insertBefore(rn,W)}(Gn),me(Gn,jn)}return{finished:!1,node:null}}ge.appendChild(W),ke.forEach(rn=>{Wt.appendChild(rn)});const rt=[];N.some((rn,Cn)=>{const{finished:Jn,node:jn}=qe(rn,Cn);return jn&&rt.push(jn),Jn});const Ft={contentNodes:rt,text:Wt.innerHTML,ellipsis:!0};for(;Wt.firstChild;)Wt.removeChild(Wt.firstChild);return Ft}let Pe,et;const ht={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function Kt(ee="vertical",Xe="ant"){if(typeof document>"u"||typeof window>"u")return 0;const dt="vertical"===ee;if(dt&&Pe)return Pe;if(!dt&&et)return et;const at=document.createElement("div");Object.keys(ht).forEach(Qe=>{at.style[Qe]=ht[Qe]}),at.className=`${Xe}-hide-scrollbar scroll-div-append-to-body`,dt?at.style.overflowY="scroll":at.style.overflowX="scroll",document.body.appendChild(at);let Ot=0;return dt?(Ot=at.offsetWidth-at.clientWidth,Pe=Ot):(Ot=at.offsetHeight-at.clientHeight,et=Ot),document.body.removeChild(at),Ot}function Tn(){const ee=new m.B;return Promise.resolve().then(()=>ee.next()),ee.pipe((0,L.s)(1))}function Wn(ee){return(0,e.A)(ee)?ee:gt(ee)?(0,M.H)(Promise.resolve(ee)):(0,K.of)(ee)}function kn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const In="rc-util-key";function Un({mark:ee}={}){return ee?ee.startsWith("data-")?ee:`data-${ee}`:In}function dn(ee){return ee.attachTo?ee.attachTo:document.querySelector("head")||document.body}function qt(ee,Xe={}){if(!kn())return null;const dt=document.createElement("style");Xe.cspNonce&&(dt.nonce=Xe.cspNonce),dt.innerHTML=ee;const at=dn(Xe),{firstChild:Ot}=at;return Xe.prepend&&at.prepend?at.prepend(dt):Xe.prepend&&Ot?at.insertBefore(dt,Ot):at.appendChild(dt),dt}const wn=new Map;function ue(ee,Xe,dt={}){const at=dn(dt);if(!wn.has(at)){const be=qt("",dt),{parentNode:Je}=be;wn.set(at,Je),Je.removeChild(be)}const Ot=function Vt(ee,Xe={}){const dt=dn(Xe);return Array.from(wn.get(dt)?.children||[]).find(at=>"STYLE"===at.tagName&&at.getAttribute(Un(Xe))===ee)}(Xe,dt);if(Ot)return dt.cspNonce&&Ot.nonce!==dt.cspNonce&&(Ot.nonce=dt.cspNonce),Ot.innerHTML!==ee&&(Ot.innerHTML=ee),Ot;const Qe=qt(ee,dt);return Qe?.setAttribute(Un(dt),Xe),Qe}function q(ee,Xe,dt){return{[`${ee}-status-success`]:"success"===Xe,[`${ee}-status-warning`]:"warning"===Xe,[`${ee}-status-error`]:"error"===Xe,[`${ee}-status-validating`]:"validating"===Xe,[`${ee}-has-feedback`]:dt}}},5930:(Rt,De,a)=>{a.d(De,{o7:()=>j,p:()=>L});var t=a(6860),s=a(3953);class m{get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}constructor(I,w,F,X,V){this.triggerElement=I,this.ngZone=w,this.insertExtraNode=F,this.platformId=X,this.cspNonce=V,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=x=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===x.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.OD(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 I=this.triggerElement,w=this.getWaveColor(I);I.setAttribute(this.waveAttributeName,"true"),!(Date.now(){I.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(I){return!!I&&"#ffffff"!==I&&"rgb(255, 255, 255)"!==I&&this.isNotGrey(I)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(I)&&"transparent"!==I}isNotGrey(I){const w=I.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(w&&w[1]&&w[2]&&w[3]&&w[1]===w[2]&&w[2]===w[3])}getWaveColor(I){const w=getComputedStyle(I);return w.getPropertyValue("border-top-color")||w.getPropertyValue("border-color")||w.getPropertyValue("background-color")}runTimeoutOutsideZone(I,w){this.ngZone.runOutsideAngular(()=>setTimeout(I,w))}}const e={disabled:!1},M=new s.nKC("nz-wave-global-options");function K(A){return(0,s.EmA)([{provide:M,useValue:A}])}let L=(()=>{class A{get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}constructor(w,F,X,V,x,oe){this.ngZone=w,this.elementRef=F,this.config=X,this.animationType=V,this.platformId=x,this.cspNonce=oe,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}isConfigDisabled(){let w=!1;return this.config&&"boolean"==typeof this.config.disabled&&(w=this.config.disabled),"NoopAnimations"===this.animationType&&(w=!0),w}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new m(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId,this.cspNonce))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}static#e=this.\u0275fac=function(F){return new(F||A)(s.rXU(s.SKi),s.rXU(s.aKT),s.rXU(M,8),s.rXU(s.bc$,8),s.rXU(s.Agw),s.rXU(s.BIS,8))};static#t=this.\u0275dir=s.FsC({type:A,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"],standalone:!0})}return A})(),j=(()=>{class A{static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275mod=s.$C({type:A});static#n=this.\u0275inj=s.G2t({providers:[K(e)]})}return A})()},2e3:(Rt,De,a)=>{a.d(De,{WF:()=>zn,gr:()=>Ut,xA:()=>$n});var t=a(3953),s=a(1413),m=a(7786),e=a(4707),M=a(177),K=a(6977),L=a(9172),j=a(5558),A=a(3798),I=a(8141),w=a(6042),F=a(3451),X=a(7806),V=a(1025),x=a(8203);const oe=["*"];function J(bt,At){1&bt&&t.SdG(0)}function Ee(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(3);t.R7$(),t.JRh(Et.nzTitle)}}function Oe(bt,At){if(1&bt&&(t.j41(0,"div",2),t.DNE(1,Ee,2,1,"ng-container",4),t.k0s()),2&bt){const Et=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.nzTitle)}}function pe(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(3);t.R7$(),t.JRh(Et.nzExtra)}}function Ie(bt,At){if(1&bt&&(t.j41(0,"div",3),t.DNE(1,pe,2,1,"ng-container",4),t.k0s()),2&bt){const Et=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.nzExtra)}}function ve(bt,At){if(1&bt&&(t.j41(0,"div",0),t.DNE(1,Oe,2,1,"div",2)(2,Ie,2,1,"div",3),t.k0s()),2&bt){const Et=t.XpG();t.R7$(),t.vxM(Et.nzTitle?1:-1),t.R7$(),t.vxM(Et.nzExtra?2:-1)}}function fe(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function Y(bt,At){}function z(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,fe,2,1,"ng-container",4),t.k0s(),t.j41(4,"span",9),t.DNE(5,Y,0,0,"ng-template",10),t.k0s()()()),2&bt){const Et=t.XpG().$implicit,St=t.XpG(3);t.Y8G("colSpan",Et.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!St.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title),t.R7$(2),t.Y8G("ngTemplateOutlet",Et.content)}}function Z(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function he(bt,At){}function E(bt,At){if(1&bt&&(t.j41(0,"td",8),t.DNE(1,Z,2,1,"ng-container",4),t.k0s(),t.j41(2,"td",11),t.DNE(3,he,0,0,"ng-template",10),t.k0s()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title),t.R7$(),t.Y8G("colSpan",2*Et.span-1),t.R7$(),t.Y8G("ngTemplateOutlet",Et.content)}}function S(bt,At){if(1&bt&&t.DNE(0,z,6,5,"td",6)(1,E,4,3),2&bt){const Et=t.XpG(3);t.vxM(Et.nzBordered?1:0)}}function R(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,S,2,1,null,null,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et)}}function U(bt,At){if(1&bt&&t.Z7z(0,R,3,0,"tr",5,t.fX1),2&bt){const Et=t.XpG();t.Dyx(Et.itemMatrix)}}function se(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function Be(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,se,2,1,"ng-container",4),t.k0s()()()),2&bt){const Et=At.$implicit,St=t.XpG(4);t.Y8G("colSpan",Et.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!St.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title)}}function Pt(bt,At){}function gt(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",9),t.DNE(3,Pt,0,0,"ng-template",10),t.k0s()()()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(3),t.Y8G("ngTemplateOutlet",Et.content)}}function wt(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,Be,4,4,"td",6,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,gt,4,2,"td",6,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et),t.R7$(3),t.Dyx(Et)}}function Le(bt,At){if(1&bt&&t.Z7z(0,wt,6,0,null,null,t.fX1),2&bt){const Et=t.XpG(2);t.Dyx(Et.itemMatrix)}}function zt(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function xt(bt,At){if(1&bt&&(t.j41(0,"td",12),t.DNE(1,zt,2,1,"ng-container",4),t.k0s()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title)}}function st(bt,At){}function Ct(bt,At){if(1&bt&&(t.j41(0,"td",11),t.DNE(1,st,0,0,"ng-template",10),t.k0s()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(),t.Y8G("ngTemplateOutlet",Et.content)}}function It(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,xt,2,2,"td",12,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,Ct,2,2,"td",11,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et),t.R7$(3),t.Dyx(Et)}}function Tt(bt,At){if(1&bt&&t.Z7z(0,It,6,0,null,null,t.fX1),2&bt){const Et=t.XpG(2);t.Dyx(Et.itemMatrix)}}function en(bt,At){if(1&bt&&t.DNE(0,Le,2,0)(1,Tt,2,0),2&bt){const Et=t.XpG();t.vxM(Et.nzBordered?1:0)}}let Ut=(()=>{class bt{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new s.B}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}static#e=this.\u0275fac=function(St){return new(St||bt)};static#t=this.\u0275cmp=t.VBU({type:bt,selectors:[["nz-descriptions-item"]],viewQuery:function(St,Wt){if(1&St&&t.GBs(t.C4Q,7),2&St){let Ue;t.mGM(Ue=t.lsd())&&(Wt.content=Ue.first)}},inputs:{nzSpan:[2,"nzSpan","nzSpan",t.Udg],nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:oe,decls:1,vars:0,template:function(St,Wt){1&St&&(t.NAR(),t.DNE(0,J,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return bt})();const fn={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let $n=(()=>{class bt{constructor(Et,St,Wt,Ue){this.nzConfigService=Et,this.cdr=St,this.breakpointService=Wt,this.directionality=Ue,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=fn,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=V.pt.md,this.destroy$=new s.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,K.Q)(this.destroy$)).subscribe(Et=>{this.dir=Et})}ngOnChanges(Et){Et.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const Et=this.items.changes.pipe((0,L.Z)(this.items),(0,K.Q)(this.destroy$));(0,m.h)(Et,Et.pipe((0,j.n)(()=>(0,m.h)(...this.items.map(St=>St.inputChange$)).pipe((0,A.Z)(16)))),this.breakpointService.subscribe(V.fe).pipe((0,I.M)(St=>this.breakpoint=St))).pipe((0,K.Q)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let Et=[],St=0;const Wt=this.realColumn=this.getColumn(),Ue=this.items.toArray(),Fe=Ue.length,te=[],_e=()=>{te.push(Et),Et=[],St=0};for(let ie=0;ie=Wt?(St>Wt&&(0,F.R8)(`"nzColumn" is ${Wt} but we have row length ${St}`),Et.push({title:et,content:ht,span:Wt-(St-Kt)}),_e()):ie===Fe-1?(Et.push({title:et,content:ht,span:Wt-(St-Kt)}),_e()):Et.push({title:et,content:ht,span:Kt})}this.itemMatrix=te}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}static#e=this.\u0275fac=function(St){return new(St||bt)(t.rXU(w.yx),t.rXU(t.gRc),t.rXU(V.jp),t.rXU(x.dS,8))};static#t=this.\u0275cmp=t.VBU({type:bt,selectors:[["nz-descriptions"]],contentQueries:function(St,Wt,Ue){if(1&St&&t.wni(Ue,Ut,4),2&St){let Fe;t.mGM(Fe=t.lsd())&&(Wt.items=Fe)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(St,Wt){2&St&&t.AVh("ant-descriptions-bordered",Wt.nzBordered)("ant-descriptions-middle","middle"===Wt.nzSize)("ant-descriptions-small","small"===Wt.nzSize)("ant-descriptions-rtl","rtl"===Wt.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:[2,"nzColon","nzColon",t.L39]},exportAs:["nzDescriptions"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:6,vars:3,consts:[[1,"ant-descriptions-header"],[1,"ant-descriptions-view"],[1,"ant-descriptions-title"],[1,"ant-descriptions-extra"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-row"],[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(St,Wt){1&St&&(t.DNE(0,ve,3,2,"div",0),t.j41(1,"div",1)(2,"table")(3,"tbody"),t.DNE(4,U,2,0)(5,en,2,1),t.k0s()()()),2&St&&(t.vxM(Wt.nzTitle||Wt.nzExtra?0:-1),t.R7$(4),t.vxM("horizontal"===Wt.nzLayout?4:-1),t.R7$(),t.vxM("vertical"===Wt.nzLayout?5:-1))},dependencies:[X.C,X.m,M.T3],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,w.H4)()],bt.prototype,"nzBordered",void 0),(0,e.Cg)([(0,w.H4)()],bt.prototype,"nzColumn",void 0),(0,e.Cg)([(0,w.H4)()],bt.prototype,"nzSize",void 0),(0,e.Cg)([(0,w.H4)()],bt.prototype,"nzColon",void 0),bt})(),zn=(()=>{class bt{static#e=this.\u0275fac=function(St){return new(St||bt)};static#t=this.\u0275mod=t.$C({type:bt});static#n=this.\u0275inj=t.G2t({imports:[$n]})}return bt})()},9448:(Rt,De,a)=>{a.d(De,{g:()=>K,j:()=>M});var t=a(3953),s=a(7806);function m(L,j){if(1&L&&(t.qex(0),t.EFF(1),t.bVm()),2&L){const A=t.XpG(2);t.R7$(),t.JRh(A.nzText)}}function e(L,j){if(1&L&&(t.j41(0,"span",0),t.DNE(1,m,2,1,"ng-container",1),t.k0s()),2&L){const A=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",A.nzText)}}let M=(()=>{class L{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}static#e=this.\u0275fac=function(I){return new(I||L)};static#t=this.\u0275cmp=t.VBU({type:L,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(I,w){2&I&&t.AVh("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:[2,"nzDashed","nzDashed",t.L39],nzPlain:[2,"nzPlain","nzPlain",t.L39]},exportAs:["nzDivider"],standalone:!0,features:[t.GFd,t.aNF],decls:1,vars:1,consts:[[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(I,w){1&I&&t.DNE(0,e,2,1,"span",0),2&I&&t.vxM(w.nzText?0:-1)},dependencies:[s.C,s.m],encapsulation:2,changeDetection:0})}return L})(),K=(()=>{class L{static#e=this.\u0275fac=function(I){return new(I||L)};static#t=this.\u0275mod=t.$C({type:L});static#n=this.\u0275inj=t.G2t({imports:[M]})}return L})()},2602:(Rt,De,a)=>{a.d(De,{Cu:()=>Le,h4:()=>gt,j3:()=>se,wQ:()=>wt});var t=a(4707),s=a(7336),m=a(6939),e=a(3953),M=a(1413),K=a(4412),L=a(7786),j=a(3726),A=a(983),I=a(4572),w=a(3703),F=a(6354),X=a(5558),V=a(5964),x=a(3798),oe=a(3294),J=a(6977),Ee=a(6042),Oe=a(5463),pe=a(7987),Ie=a(6860),ve=a(1868),fe=a(513),Y=a(177),z=a(713),Z=a(6841),he=a(8203);const E=["*"];function S(st,Ct){if(1&st){const It=e.RV6();e.j41(0,"div",0),e.bIt("@slideMotion.done",function(en){e.eBV(It);const Ut=e.XpG();return e.Njj(Ut.onAnimationEvent(en))})("mouseenter",function(){e.eBV(It);const en=e.XpG();return e.Njj(en.setMouseState(!0))})("mouseleave",function(){e.eBV(It);const en=e.XpG();return e.Njj(en.setMouseState(!1))}),e.SdG(1),e.k0s()}if(2&st){const It=e.XpG();e.AVh("ant-dropdown-rtl","rtl"===It.dir),e.Y8G("ngClass",It.nzOverlayClassName)("ngStyle",It.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",!(null==It.noAnimation||!It.noAnimation.nzNoAnimation))("nzNoAnimation",null==It.noAnimation?null:It.noAnimation.nzNoAnimation)}}const U=[Oe.pn.bottomLeft,Oe.pn.bottomRight,Oe.pn.topRight,Oe.pn.topLeft];let se=(()=>{class st{setDropdownMenuValue(It,Tt){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(It,Tt)}constructor(It,Tt,en,Ut,Lt,fn){this.nzConfigService=It,this.elementRef=Tt,this.overlay=en,this.renderer=Ut,this.viewContainerRef=Lt,this.platform=fn,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new M.B,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new K.t(!1),this.nzTrigger$=new K.t("hover"),this.overlayClose$=new M.B,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 e.bkB}ngAfterViewInit(){if(this.nzDropdownMenu){const It=this.elementRef.nativeElement,Tt=(0,L.h)((0,j.R)(It,"mouseenter").pipe((0,w.u)(!0)),(0,j.R)(It,"mouseleave").pipe((0,w.u)(!1))),Ut=(0,L.h)(this.nzDropdownMenu.mouseState$,Tt),Lt=(0,j.R)(It,"click").pipe((0,F.T)(()=>!this.nzVisible)),fn=this.nzTrigger$.pipe((0,X.n)(At=>"hover"===At?Ut:"click"===At?Lt:A.w)),$n=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,V.p)(()=>this.nzClickHide),(0,w.u)(!1)),zn=(0,L.h)(fn,$n,this.overlayClose$).pipe((0,V.p)(()=>!this.nzDisabled)),bt=(0,L.h)(this.inputVisible$,zn);(0,I.z)([bt,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,F.T)(([At,Et])=>At||Et),(0,x.Z)(150),(0,oe.F)(),(0,V.p)(()=>this.platform.isBrowser),(0,J.Q)(this.destroy$)).subscribe(At=>{const St=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:It).getBoundingClientRect().width;this.nzVisible!==At&&this.nzVisibleChange.emit(At),this.nzVisible=At,At?(this.overlayRef?this.overlayRef.getConfig().minWidth=St:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:St,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,L.h)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,V.p)(Wt=>!this.elementRef.nativeElement.contains(Wt.target))),this.overlayRef.keydownEvents().pipe((0,V.p)(Wt=>Wt.keyCode===s._f&&!(0,s.rp)(Wt)))).pipe((0,J.Q)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([Oe.pn[this.nzPlacement],...U]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new m.VA(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,J.Q)(this.destroy$)).subscribe(At=>{"void"===At.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(It){const{nzVisible:Tt,nzDisabled:en,nzOverlayClassName:Ut,nzOverlayStyle:Lt,nzTrigger:fn}=It;if(fn&&this.nzTrigger$.next(this.nzTrigger),Tt&&this.inputVisible$.next(this.nzVisible),en){const $n=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute($n,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute($n,"disabled")}Ut&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Lt&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(Ee.yx),e.rXU(e.aKT),e.rXU(pe.hJ),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(Ie.OD))};static#t=this.\u0275dir=e.FsC({type:st,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",e.L39],nzClickHide:[2,"nzClickHide","nzClickHide",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],standalone:!0,features:[e.GFd,e.OA$]})}return(0,t.Cg)([(0,Ee.H4)()],st.prototype,"nzBackdrop",void 0),st})(),Be=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=e.$C({type:st});static#n=this.\u0275inj=e.G2t({})}return st})(),gt=(()=>{class st{constructor(It,Tt,en){this.renderer=It,this.nzButtonGroupComponent=Tt,this.elementRef=en}ngAfterViewInit(){const It=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&It&&this.renderer.addClass(It,"ant-dropdown-button")}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(e.sFG),e.rXU(fe.dn,9),e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:st,selectors:[["","nz-button","","nz-dropdown",""]],standalone:!0})}return st})(),wt=(()=>{class st{onAnimationEvent(It){this.animationStateChange$.emit(It)}setMouseState(It){this.mouseState$.next(It)}setValue(It,Tt){this[It]=Tt,this.cdr.markForCheck()}constructor(It,Tt,en,Ut,Lt,fn,$n){this.cdr=It,this.elementRef=Tt,this.renderer=en,this.viewContainerRef=Ut,this.nzMenuService=Lt,this.directionality=fn,this.noAnimation=$n,this.mouseState$=new K.t(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new e.bkB,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new M.B}ngOnInit(){this.directionality.change?.pipe((0,J.Q)(this.destroy$)).subscribe(It=>{this.dir=It,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()}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(ve.$1),e.rXU(he.dS,8),e.rXU(Z.z,9))};static#t=this.\u0275cmp=e.VBU({type:st,selectors:[["nz-dropdown-menu"]],viewQuery:function(Tt,en){if(1&Tt&&e.GBs(e.C4Q,7),2&Tt){let Ut;e.mGM(Ut=e.lsd())&&(en.templateRef=Ut.first)}},exportAs:["nzDropdownMenu"],standalone:!0,features:[e.Jv_([ve.$1,{provide:ve.ek,useValue:!0}]),e.aNF],ngContentSelectors:E,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","ngClass","ngStyle","nzNoAnimation"]],template:function(Tt,en){1&Tt&&(e.NAR(),e.DNE(0,S,2,7,"ng-template"))},dependencies:[Y.YU,Y.B3,Z.z],encapsulation:2,data:{animation:[z.U1]},changeDetection:0})}return st})(),Le=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=e.$C({type:st});static#n=this.\u0275inj=e.G2t({imports:[Be,ve.GP]})}return st})();new pe.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new pe.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new pe.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new pe.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},1672:(Rt,De,a)=>{a.d(De,{E8:()=>Be,RW:()=>U,_v:()=>Pt});var t=a(6939),s=a(3953),m=a(1413),e=a(6977),M=a(9172),K=a(7806),L=a(1377),j=a(6042);function A(gt,wt){if(1>&&(s.qex(0),s.nrm(1,"img",4),s.bVm()),2>){const Le=s.XpG(2);s.R7$(),s.Y8G("src",Le.nzNotFoundImage,s.B4B)("alt",Le.isContentString?Le.nzNotFoundContent:"empty")}}function I(gt,wt){if(1>&&s.DNE(0,A,2,2,"ng-container",3),2>){const Le=s.XpG();s.Y8G("nzStringTemplateOutlet",Le.nzNotFoundImage)}}function w(gt,wt){1>&&s.nrm(0,"nz-empty-simple")}function F(gt,wt){1>&&s.nrm(0,"nz-empty-default")}function X(gt,wt){if(1>&&s.DNE(0,w,1,0,"nz-empty-simple")(1,F,1,0,"nz-empty-default"),2>){const Le=s.XpG();s.vxM("simple"===Le.nzNotFoundImage?0:1)}}function V(gt,wt){if(1>&&(s.qex(0),s.EFF(1),s.bVm()),2>){const Le=s.XpG(2);s.R7$(),s.SpI(" ",Le.isContentString?Le.nzNotFoundContent:Le.locale.description," ")}}function x(gt,wt){if(1>&&(s.j41(0,"p",1),s.DNE(1,V,2,1,"ng-container",3),s.k0s()),2>){const Le=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",Le.nzNotFoundContent)}}function oe(gt,wt){if(1>&&(s.qex(0),s.EFF(1),s.bVm()),2>){const Le=s.XpG(2);s.R7$(),s.SpI(" ",Le.nzNotFoundFooter," ")}}function J(gt,wt){if(1>&&(s.j41(0,"div",2),s.DNE(1,oe,2,1,"ng-container",3),s.k0s()),2>){const Le=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",Le.nzNotFoundFooter)}}function Ee(gt,wt){if(1>&&s.EFF(0),2>){const Le=s.XpG(2);s.SpI(" ",Le.content," ")}}function Oe(gt,wt){}function pe(gt,wt){if(1>&&s.DNE(0,Oe,0,0,"ng-template",0),2>){const Le=s.XpG(2);s.Y8G("cdkPortalOutlet",Le.contentPortal)}}function Ie(gt,wt){if(1>&&s.DNE(0,Ee,1,1)(1,pe,1,1,null,0),2>){const Le=s.XpG();s.vxM("string"===Le.contentType?0:1)}}function ve(gt,wt){1>&&s.nrm(0,"nz-empty",1)}function fe(gt,wt){1>&&s.nrm(0,"nz-empty",2)}function Y(gt,wt){1>&&s.nrm(0,"nz-empty")}function z(gt,wt){if(1>&&s.DNE(0,ve,1,0,"nz-empty",1)(1,fe,1,0,"nz-empty",2)(2,Y,1,0,"nz-empty"),2>){let Le;const zt=s.XpG(2);s.vxM("normal"===(Le=zt.size)?0:"small"===Le?1:2)}}function Z(gt,wt){if(1>&&s.DNE(0,z,3,1),2>){const Le=s.XpG();s.vxM(null!==Le.specificContent?0:-1)}}const he=new s.nKC("nz-empty-component-name");let E=(()=>{class gt{static#e=this.\u0275fac=function(zt){return new(zt||gt)};static#t=this.\u0275cmp=s.VBU({type:gt,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],standalone:!0,features:[s.aNF],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(zt,xt){1&zt&&(s.qSk(),s.j41(0,"svg",0)(1,"g",1)(2,"g",2),s.nrm(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),s.k0s(),s.nrm(8,"path",8),s.j41(9,"g",9),s.nrm(10,"ellipse",10)(11,"path",11),s.k0s()()())},encapsulation:2,changeDetection:0})}return gt})(),S=(()=>{class gt{static#e=this.\u0275fac=function(zt){return new(zt||gt)};static#t=this.\u0275cmp=s.VBU({type:gt,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],standalone:!0,features:[s.aNF],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(zt,xt){1&zt&&(s.qSk(),s.j41(0,"svg",0)(1,"g",1),s.nrm(2,"ellipse",2),s.j41(3,"g",3),s.nrm(4,"path",4)(5,"path",5),s.k0s()()())},encapsulation:2,changeDetection:0})}return gt})();const R=["default","simple"];let U=(()=>{class gt{constructor(Le,zt){this.i18n=Le,this.cdr=zt,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new m.B}ngOnChanges(Le){const{nzNotFoundContent:zt,nzNotFoundImage:xt}=Le;if(zt&&(this.isContentString="string"==typeof zt.currentValue),xt){const st=xt.currentValue||"default";this.isImageBuildIn=R.findIndex(Ct=>Ct===st)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(zt){return new(zt||gt)(s.rXU(L.Og),s.rXU(s.gRc))};static#t=this.\u0275cmp=s.VBU({type:gt,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],standalone:!0,features:[s.OA$,s.aNF],decls:5,vars:3,consts:[[1,"ant-empty-image"],[1,"ant-empty-description"],[1,"ant-empty-footer"],[4,"nzStringTemplateOutlet"],[3,"src","alt"]],template:function(zt,xt){1&zt&&(s.j41(0,"div",0),s.DNE(1,I,1,1,"ng-container")(2,X,2,1),s.k0s(),s.DNE(3,x,2,1,"p",1)(4,J,2,1,"div",2)),2&zt&&(s.R7$(),s.vxM(xt.isImageBuildIn?2:1),s.R7$(2),s.vxM(null!==xt.nzNotFoundContent?3:-1),s.R7$(),s.vxM(xt.nzNotFoundFooter?4:-1))},dependencies:[K.C,K.m,E,S],encapsulation:2,changeDetection:0})}return gt})(),Be=(()=>{class gt{constructor(Le,zt,xt,st){this.configService=Le,this.viewContainerRef=zt,this.cdr=xt,this.injector=st,this.contentType="string",this.size="",this.destroy$=new m.B}ngOnChanges(Le){Le.nzComponentName&&(this.size=function se(gt){switch(gt){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(Le.nzComponentName.currentValue)),Le.specificContent&&!Le.specificContent.isFirstChange()&&(this.content=Le.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const Le=this.content;if("string"==typeof Le)this.contentType="string";else if(Le instanceof s.C4Q){const zt={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.VA(Le,this.viewContainerRef,zt)}else if(Le instanceof s.ZUJ){const zt=s.zZn.create({parent:this.injector,providers:[{provide:he,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.A8(Le,this.viewContainerRef,zt)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,M.Z)(!0),(0,e.Q)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}static#e=this.\u0275fac=function(zt){return new(zt||gt)(s.rXU(j.yx),s.rXU(s.c1b),s.rXU(s.gRc),s.rXU(s.zZn))};static#t=this.\u0275cmp=s.VBU({type:gt,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],standalone:!0,features:[s.OA$,s.aNF],decls:2,vars:1,consts:[[3,"cdkPortalOutlet"],["nzNotFoundImage","simple",1,"ant-empty-normal"],["nzNotFoundImage","simple",1,"ant-empty-small"]],template:function(zt,xt){1&zt&&s.DNE(0,Ie,2,1)(1,Z,1,1),2&zt&&s.vxM(xt.content?0:1)},dependencies:[U,t.jc,t.I3],encapsulation:2,changeDetection:0})}return gt})(),Pt=(()=>{class gt{static#e=this.\u0275fac=function(zt){return new(zt||gt)};static#t=this.\u0275mod=s.$C({type:gt});static#n=this.\u0275inj=s.G2t({imports:[U,Be]})}return gt})()},8927:(Rt,De,a)=>{a.d(De,{CA:()=>Pt,Ls:()=>U,Mo:()=>Le,PQ:()=>st,zS:()=>gt});var t=a(3953),s=a(7529),m=a(177),e=a(9417),M=a(1413),K=a(8359),L=a(5964),j=a(6354),A=a(6977),I=a(9172),w=a(8141),F=a(713),X=a(7891),V=a(7806),x=a(317),oe=a(1377),J=a(4707),Ee=a(6042),Oe=a(8203),pe=a(5103),Ie=a(5154);const ve=["*"],fe=Ct=>[Ct],Y=Ct=>({$implicit:Ct});function z(Ct,It){if(1&Ct&&(t.qex(0),t.EFF(1),t.bVm()),2&Ct){const Tt=t.XpG(2);t.R7$(),t.JRh(Tt.innerTip)}}function Z(Ct,It){if(1&Ct&&(t.j41(0,"div",2)(1,"div",4),t.DNE(2,z,2,1,"ng-container",5),t.k0s()()),2&Ct){const Tt=t.XpG();t.Y8G("@helpMotion",void 0),t.R7$(),t.Y8G("ngClass",t.eq3(4,fe,"ant-form-item-explain-"+Tt.status)),t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.innerTip)("nzStringTemplateOutletContext",t.eq3(6,Y,Tt.validateControl))}}function he(Ct,It){if(1&Ct&&(t.qex(0),t.EFF(1),t.bVm()),2&Ct){const Tt=t.XpG(2);t.R7$(),t.JRh(Tt.nzExtra)}}function E(Ct,It){if(1&Ct&&(t.j41(0,"div",3),t.DNE(1,he,2,1,"ng-container",6),t.k0s()),2&Ct){const Tt=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.nzExtra)}}function S(Ct,It){if(1&Ct&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&Ct){const Tt=It.$implicit,en=t.XpG(2);t.R7$(),t.Y8G("nzType",Tt)("nzTheme",en.tooltipIcon.theme)}}function R(Ct,It){if(1&Ct&&(t.j41(0,"span",0),t.DNE(1,S,2,2,"ng-container",1),t.k0s()),2&Ct){const Tt=t.XpG();t.Y8G("nzTooltipTitle",Tt.nzTooltipTitle),t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.tooltipIcon.type)}}let U=(()=>{class Ct{setWithHelpViaTips(Tt){this.withHelpClass=Tt,this.cdr.markForCheck()}setStatus(Tt){this.status=Tt,this.cdr.markForCheck()}setHasFeedback(Tt){this.hasFeedback=Tt,this.cdr.markForCheck()}constructor(Tt){this.cdr=Tt,this.status="",this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new M.B}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(en,Ut){2&en&&t.AVh("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"],standalone:!0,features:[t.aNF],ngContentSelectors:ve,decls:1,vars:0,template:function(en,Ut){1&en&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return Ct})();const Be={type:"question-circle",theme:"outline"};let Pt=(()=>{class Ct{getInputObservable(Tt){return this.inputChanges$.pipe((0,L.p)(en=>Tt in en),(0,j.T)(en=>en[Tt]))}constructor(Tt,en){this.nzConfigService=Tt,this.directionality=en,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Be,this.nzLabelAlign="right",this.nzLabelWrap=!1,this.dir="ltr",this.destroy$=new M.B,this.inputChanges$=new M.B,this.dir=this.directionality.value,this.directionality.change?.pipe((0,A.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut})}ngOnChanges(Tt){this.inputChanges$.next(Tt)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(Ee.yx),t.rXU(Oe.dS,8))};static#t=this.\u0275dir=t.FsC({type:Ct,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(en,Ut){2&en&&t.AVh("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:[2,"nzNoColon","nzNoColon",t.L39],nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzForm"],standalone:!0,features:[t.GFd,t.OA$]})}return(0,J.Cg)([(0,Ee.H4)()],Ct.prototype,"nzNoColon",void 0),(0,J.Cg)([(0,Ee.H4)()],Ct.prototype,"nzAutoTips",void 0),(0,J.Cg)([(0,Ee.H4)()],Ct.prototype,"nzTooltipIcon",void 0),(0,J.Cg)([(0,Ee.H4)()],Ct.prototype,"nzLabelWrap",void 0),Ct})(),gt=(()=>{class Ct{get disableAutoTips(){return void 0!==this.nzDisableAutoTips?(0,x.G4)(this.nzDisableAutoTips):this.nzFormDirective?.nzDisableAutoTips}set nzHasFeedback(Tt){this._hasFeedback=Tt,this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(Tt){Tt instanceof e.EL||Tt instanceof e.vS?(this.validateControl=Tt,this.validateString=null,this.watchControl()):Tt instanceof e.JD?(this.validateControl=Tt.control,this.validateString=null,this.watchControl()):(this.validateString=Tt,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,I.Z)(null),(0,A.Q)(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(Tt){let en;return en="warning"===Tt||this.validateControlStatus("INVALID","warning")?"warning":"error"===Tt||this.validateControlStatus("INVALID")?"error":"validating"===Tt||"pending"===Tt||this.validateControlStatus("PENDING")?"validating":"success"===Tt||this.validateControlStatus("VALID")?"success":"",en}validateControlStatus(Tt,en){if(this.validateControl){const{dirty:Ut,touched:Lt,status:fn}=this.validateControl;return(!!Ut||!!Lt)&&(en?this.validateControl.hasError(en):fn===Tt)}return!1}getInnerTip(Tt){switch(Tt){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 Tt=this.validateControl.errors||{};let en="";for(const Ut in Tt)if(Tt.hasOwnProperty(Ut)&&(en=Tt[Ut]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[Ut]??this.nzAutoTips.default?.[Ut]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[Ut]??this.nzFormDirective?.nzAutoTips.default?.[Ut]),en)break;this.autoErrorTip=en}}subscribeAutoTips(Tt){Tt?.pipe((0,A.Q)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}constructor(Tt,en,Ut,Lt,fn){this.nzFormItemComponent=Tt,this.cdr=en,this.nzFormDirective=Lt,this.nzFormStatusService=fn,this._hasFeedback=!1,this.validateChanges=K.yU.EMPTY,this.validateString=null,this.destroyed$=new M.B,this.status="",this.validateControl=null,this.innerTip=null,this.nzAutoTips={},this.subscribeAutoTips(Ut.localeChange.pipe((0,w.M)($n=>this.localeId=$n.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe((0,L.p)(()=>void 0===this.nzDisableAutoTips)))}ngOnChanges(Tt){const{nzDisableAutoTips:en,nzAutoTips:Ut,nzSuccessTip:Lt,nzWarningTip:fn,nzErrorTip:$n,nzValidatingTip:zn}=Tt;en||Ut?(this.updateAutoErrorTip(),this.setStatus()):(Lt||fn||$n||zn)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof e.l_?this.defaultValidateControl.control:this.defaultValidateControl)}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(U,9),t.rXU(t.gRc),t.rXU(oe.Og),t.rXU(Pt,8),t.rXU(X.is))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-control"]],contentQueries:function(en,Ut,Lt){if(1&en&&t.wni(Lt,e.vO,5),2&en){let fn;t.mGM(fn=t.lsd())&&(Ut.defaultValidateControl=fn.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzHasFeedback:[2,"nzHasFeedback","nzHasFeedback",t.L39],nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],standalone:!0,features:[t.Jv_([X.is]),t.GFd,t.OA$,t.aNF],ngContentSelectors:ve,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],[1,"ant-form-item-extra"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[4,"nzStringTemplateOutlet"]],template:function(en,Ut){1&en&&(t.NAR(),t.j41(0,"div",0)(1,"div",1),t.SdG(2),t.k0s()(),t.DNE(3,Z,3,8,"div",2)(4,E,2,1,"div",3)),2&en&&(t.R7$(3),t.vxM(Ut.innerTip?3:-1),t.R7$(),t.vxM(Ut.nzExtra?4:-1))},dependencies:[m.YU,V.C,V.m],encapsulation:2,data:{animation:[F.W4]},changeDetection:0})}return Ct})();function wt(Ct){return{...Be,..."string"==typeof Ct?{type:Ct}:Ct}}let Le=(()=>{class Ct{set nzNoColon(Tt){this.noColon=Tt}get nzNoColon(){return"default"!==this.noColon?this.noColon:this.nzFormDirective?.nzNoColon}set nzTooltipIcon(Tt){this._tooltipIcon=wt(Tt)}get tooltipIcon(){return"default"!==this._tooltipIcon?this._tooltipIcon:wt(this.nzFormDirective?.nzTooltipIcon||Be)}set nzLabelAlign(Tt){this.labelAlign=Tt}get nzLabelAlign(){return"default"!==this.labelAlign?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}set nzLabelWrap(Tt){this.labelWrap=Tt}get nzLabelWrap(){return"default"!==this.labelWrap?this.labelWrap:this.nzFormDirective?.nzLabelWrap}constructor(Tt,en){this.cdr=Tt,this.nzFormDirective=en,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.labelAlign="default",this.labelWrap="default",this.destroy$=new M.B,this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,L.p)(()=>"default"===this.noColon),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,L.p)(()=>"default"===this._tooltipIcon),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe((0,L.p)(()=>"default"===this.labelAlign),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe((0,L.p)(()=>"default"===this.labelWrap),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(t.gRc),t.rXU(Pt,12))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(en,Ut){2&en&&t.AVh("ant-form-item-label-left","left"===Ut.nzLabelAlign)("ant-form-item-label-wrap",Ut.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:[2,"nzRequired","nzRequired",t.L39],nzNoColon:[2,"nzNoColon","nzNoColon",t.L39],nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzFormLabel"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:ve,decls:3,vars:6,consts:[["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(en,Ut){1&en&&(t.NAR(),t.j41(0,"label"),t.SdG(1),t.DNE(2,R,2,2,"span",0),t.k0s()),2&en&&(t.AVh("ant-form-item-no-colon",Ut.nzNoColon)("ant-form-item-required",Ut.nzRequired),t.BMQ("for",Ut.nzFor),t.R7$(2),t.vxM(Ut.nzTooltipTitle?2:-1))},dependencies:[V.C,V.m,Ie.LH,pe.Y3,pe.Dn],encapsulation:2,changeDetection:0})}return Ct})(),st=(()=>{class Ct{static#e=this.\u0275fac=function(en){return new(en||Ct)};static#t=this.\u0275mod=t.$C({type:Ct});static#n=this.\u0275inj=t.G2t({imports:[Le,gt,s.f3]})}return Ct})()},7529:(Rt,De,a)=>{a.d(De,{Uq:()=>w,e:()=>I,f3:()=>F});var t=a(3953),s=a(2771),m=a(1413),e=a(6977),M=a(1025),K=a(9327),L=a(6860),j=a(8203),A=a(317);let I=(()=>{class X{getGutter(){const x=[null,null],oe=this.nzGutter||0;return(Array.isArray(oe)?oe:[oe,null]).forEach((Ee,Oe)=>{"object"==typeof Ee&&null!==Ee?(x[Oe]=null,Object.keys(M.fe).map(pe=>{const Ie=pe;this.mediaMatcher.matchMedia(M.fe[Ie]).matches&&Ee[Ie]&&(x[Oe]=Ee[Ie])})):x[Oe]=Number(Ee)||null}),x}setGutterStyle(){const[x,oe]=this.getGutter();this.actualGutter$.next([x,oe]);const J=(Ee,Oe)=>{null!==Oe&&this.renderer.setStyle(this.elementRef.nativeElement,Ee,`-${Oe/2}px`)};J("margin-left",x),J("margin-right",x),J("margin-top",oe),J("margin-bottom",oe)}constructor(x,oe,J,Ee,Oe,pe,Ie){this.elementRef=x,this.renderer=oe,this.mediaMatcher=J,this.ngZone=Ee,this.platform=Oe,this.breakpointService=pe,this.directionality=Ie,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new s.m(1),this.dir="ltr",this.destroy$=new m.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x}),this.setGutterStyle()}ngOnChanges(x){x.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(M.fe).pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(oe){return new(oe||X)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(K.DY),t.rXU(t.SKi),t.rXU(L.OD),t.rXU(M.jp),t.rXU(j.dS,8))};static#t=this.\u0275dir=t.FsC({type:X,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(oe,J){2&oe&&t.AVh("ant-row-top","top"===J.nzAlign)("ant-row-middle","middle"===J.nzAlign)("ant-row-bottom","bottom"===J.nzAlign)("ant-row-start","start"===J.nzJustify)("ant-row-end","end"===J.nzJustify)("ant-row-center","center"===J.nzJustify)("ant-row-space-around","space-around"===J.nzJustify)("ant-row-space-between","space-between"===J.nzJustify)("ant-row-space-evenly","space-evenly"===J.nzJustify)("ant-row-rtl","rtl"===J.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],standalone:!0,features:[t.OA$]})}return X})(),w=(()=>{class X{setHostClassMap(){const x={"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,A.n9)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,A.n9)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,A.n9)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,A.n9)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,A.n9)(this.nzPush),"ant-col-rtl":"rtl"===this.dir,...this.generateClass()};for(const oe in this.classMap)this.classMap.hasOwnProperty(oe)&&this.renderer.removeClass(this.elementRef.nativeElement,oe);this.classMap={...x};for(const oe in this.classMap)this.classMap.hasOwnProperty(oe)&&this.classMap[oe]&&this.renderer.addClass(this.elementRef.nativeElement,oe)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(x){return"number"==typeof x?`${x} ${x} auto`:"string"==typeof x&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(x)?`0 0 ${x}`:x}generateClass(){const oe={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(J=>{const Ee=J.replace("nz","").toLowerCase();if((0,A.n9)(this[J]))if("number"==typeof this[J]||"string"==typeof this[J])oe[`ant-col-${Ee}-${this[J]}`]=!0;else{const Oe=this[J];["span","pull","push","offset","order"].forEach(Ie=>{oe[`ant-col-${Ee}${"span"===Ie?"-":`-${Ie}-`}${Oe[Ie]}`]=Oe&&(0,A.n9)(Oe[Ie])})}}),oe}constructor(x,oe,J,Ee){this.elementRef=x,this.nzRowDirective=oe,this.renderer=J,this.directionality=Ee,this.classMap={},this.destroy$=new m.B,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,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(x){this.setHostClassMap();const{nzFlex:oe}=x;oe&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,e.Q)(this.destroy$)).subscribe(([x,oe])=>{const J=(Ee,Oe)=>{null!==Oe&&this.renderer.setStyle(this.elementRef.nativeElement,Ee,Oe/2+"px")};J("padding-left",x),J("padding-right",x),J("padding-top",oe),J("padding-bottom",oe)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(oe){return new(oe||X)(t.rXU(t.aKT),t.rXU(I,9),t.rXU(t.sFG),t.rXU(j.dS,8))};static#t=this.\u0275dir=t.FsC({type:X,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(oe,J){2&oe&&t.xc7("flex",J.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"],standalone:!0,features:[t.OA$]})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(oe){return new(oe||X)};static#t=this.\u0275mod=t.$C({type:X});static#n=this.\u0275inj=t.G2t({})}return X})()},1377:(Rt,De,a)=>{a.d(De,{Bh:()=>e,Og:()=>A,Vc:()=>I,_N:()=>K,bP:()=>w});var t=a(3953),s=a(4412),m=a(3451),e={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"],rangeQuarterPlaceholder:["Start quarter","End quarter"],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"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},M={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",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"],rangeQuarterPlaceholder:["\u5f00\u59cb\u5b63\u5ea6","\u7ed3\u675f\u5b63\u5ea6"],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"},QRCode:{expired:"\u4e8c\u7ef4\u7801\u8fc7\u671f",refresh:"\u70b9\u51fb\u5237\u65b0",scanned:"\u5df2\u626b\u63cf"}};const K=new t.nKC("nz-i18n"),j=new t.nKC("nz-date-locale");let A=(()=>{class Qe{get localeChange(){return this._change.asObservable()}constructor(Je,re){this._change=new s.t(this._locale),this.setLocale(Je||M),this.setDateLocale(re||null)}translate(Je,re){let ze=this._getObjectPath(this._locale,Je);return"string"==typeof ze?(re&&Object.keys(re).forEach(mt=>ze=ze.replace(new RegExp(`%${mt}%`,"g"),re[mt])),ze):Je}setLocale(Je){this._locale&&this._locale.locale===Je.locale||(this._locale=Je,this._change.next(Je))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Je){this.dateLocale=Je}getDateLocale(){return this.dateLocale}getLocaleData(Je,re){const ze=Je?this._getObjectPath(this._locale,Je):this._locale;return!ze&&!re&&(0,m.R8)(`Missing translations for "${Je}" 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`),ze||re||this._getObjectPath(e,Je)||{}}_getObjectPath(Je,re){let ze=Je;const mt=re.split("."),Ke=mt.length;let xe=0;for(;ze&&xe{class Qe{constructor(Je){this._locale=Je}transform(Je,re){return this._locale.translate(Je,re)}static#e=this.\u0275fac=function(re){return new(re||Qe)(t.rXU(A,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzI18n",type:Qe,pure:!0,standalone:!0})}return Qe})(),w=(()=>{class Qe{static#e=this.\u0275fac=function(re){return new(re||Qe)};static#t=this.\u0275mod=t.$C({type:Qe});static#n=this.\u0275inj=t.G2t({})}return Qe})();new t.nKC("date-config")},5103:(Rt,De,a)=>{a.d(De,{Dn:()=>xe,Y3:()=>Re,Rt:()=>ze});var t=a(3953),s=a(1413),m=a(2806),e=a(6977),M=a(4709),K=a(4215),L=2,j=.16,A=.05,I=.05,w=.15,F=5,X=4,V=[{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 x(B){var ge=(0,M.wE)(B.r,B.g,B.b);return{h:360*ge.h,s:ge.s,v:ge.v}}function oe(B){return"#".concat((0,M.Ob)(B.r,B.g,B.b,!1))}function Ee(B,ce,N){var ke;return(ke=Math.round(B.h)>=60&&Math.round(B.h)<=240?N?Math.round(B.h)-L*ce:Math.round(B.h)+L*ce:N?Math.round(B.h)+L*ce:Math.round(B.h)-L*ce)<0?ke+=360:ke>=360&&(ke-=360),ke}function Oe(B,ce,N){return 0===B.h&&0===B.s?B.s:((ke=N?B.s-j*ce:ce===X?B.s+j:B.s+A*ce)>1&&(ke=1),N&&ce===F&&ke>.1&&(ke=.1),ke<.06&&(ke=.06),Number(ke.toFixed(2)));var ke}function pe(B,ce,N){var ke;return(ke=N?B.v+I*ce:B.v-w*ce)>1&&(ke=1),Number(ke.toFixed(2))}function Ie(B){for(var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},N=[],ke=(0,K.RO)(B),ge=F;ge>0;ge-=1){var W=x(ke),H=oe((0,K.RO)({h:Ee(W,ge,!0),s:Oe(W,ge,!0),v:pe(W,ge,!0)}));N.push(H)}N.push(oe(ke));for(var me=1;me<=X;me+=1){var qe=x(ke),rt=oe((0,K.RO)({h:Ee(qe,me),s:Oe(qe,me),v:pe(qe,me)}));N.push(rt)}return"dark"===ce.theme?V.map(function(Ft){var rn=Ft.index,Cn=Ft.opacity,Jn=oe(function J(B,ce,N){var ke=N/100;return{r:(ce.r-B.r)*ke+B.r,g:(ce.g-B.g)*ke+B.g,b:(ce.b-B.b)*ke+B.b}}((0,K.RO)(ce.backgroundColor||"#141414"),(0,K.RO)(N[rn]),100*Cn));return Jn}):N}var ve={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"},fe={},Y={};Object.keys(ve).forEach(function(B){fe[B]=Ie(ve[B]),fe[B].primary=fe[B][5],Y[B]=Ie(ve[B],{theme:"dark",backgroundColor:"#141414"}),Y[B].primary=Y[B][5]});var xt=a(177),st=a(1626),Ct=a(7673),It=a(1985),Tt=a(6354),en=a(8141),Ut=a(980),Lt=a(9437),fn=a(7647),$n=a(5964),zn=a(6697),bt=a(345);const At="[@ant-design/icons-angular]:";function St(B){(0,t.naY)()&&console.warn(`${At} ${B}.`)}function Wt(B){return Ie(B)[0]}function Ue(B,ce){switch(ce){case"fill":return`${B}-fill`;case"outline":return`${B}-o`;case"twotone":return`${B}-twotone`;case void 0:return B;default:throw new Error(`${At}Theme "${ce}" is not a recognized theme!`)}}function ie(B){return"object"==typeof B&&"string"==typeof B.name&&("string"==typeof B.theme||void 0===B.theme)&&"string"==typeof B.icon}function Kt(B){const ce=B.split(":");switch(ce.length){case 1:return[B,""];case 2:return[ce[1],ce[0]];default:throw new Error(`${At}The icon type ${B} is not valid!`)}}function Wn(B){return new Error(`${At}the icon ${B} does not exist or is not registered.`)}function Un(){return new Error(`${At} tag not found.`)}const wn=new t.nKC("ant_icons");let Vt=(()=>{class B{set twoToneColor({primaryColor:N,secondaryColor:ke}){this._twoToneColorPalette.primaryColor=N,this._twoToneColorPalette.secondaryColor=ke||Wt(N)}get twoToneColor(){return{...this._twoToneColorPalette}}get _disableDynamicLoading(){return!1}constructor(N,ke,ge,W,H){this._rendererFactory=N,this._handler=ke,this._document=ge,this.sanitizer=W,this._antIcons=H,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 s.B,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new st.Qq(this._handler)),this._antIcons&&this.addIcon(...this._antIcons)}useJsonpLoading(){this._enableJsonpLoading?St("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=N=>{this._jsonpIconLoad$.next(N)})}changeAssetsSource(N){this._assetsUrlRoot=N.endsWith("/")?N:N+"/"}addIcon(...N){N.forEach(ke=>{this._svgDefinitions.set(Ue(ke.name,ke.theme),ke)})}addIconLiteral(N,ke){const[ge,W]=Kt(N);if(!W)throw function Tn(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:N,icon:ke})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(N,ke){const ge=ie(N)?N:this._svgDefinitions.get(N)||null;if(!ge&&this._disableDynamicLoading)throw Wn(N);return(ge?(0,Ct.of)(ge):this._loadIconDynamically(N)).pipe((0,Tt.T)(H=>{if(!H)throw Wn(N);return this._loadSVGFromCacheOrCreateNew(H,ke)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(N){if(!this._http&&!this._enableJsonpLoading)return(0,Ct.of)(function kn(){return function Et(B){console.error(`${At} ${B}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let ke=this._inProgressFetches.get(N);if(!ke){const[ge,W]=Kt(N),H=W?{name:N,icon:""}:function Pe(B){const ce=B.split("-"),N=function te(B){return"o"===B?"outline":B}(ce.splice(ce.length-1,1)[0]);return{name:ce.join("-"),theme:N,icon:""}}(ge),qe=(W?`${this._assetsUrlRoot}assets/${W}/${ge}`:`${this._assetsUrlRoot}assets/${H.theme}/${H.name}`)+(this._enableJsonpLoading?".js":".svg"),rt=this.sanitizer.sanitize(t.WPN.URL,qe);if(!rt)throw function In(B){return new Error(`${At}The url "${B}" is unsafe.`)}(qe);ke=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(H,rt):this._http.get(rt,{responseType:"text"}).pipe((0,Tt.T)(rn=>({...H,icon:rn})))).pipe((0,en.M)(rn=>this.addIcon(rn)),(0,Ut.j)(()=>this._inProgressFetches.delete(N)),(0,Lt.W)(()=>(0,Ct.of)(null)),(0,fn.u)()),this._inProgressFetches.set(N,ke)}return ke}_loadIconDynamicallyWithJsonp(N,ke){return new It.c(ge=>{const W=this._document.createElement("script"),H=setTimeout(()=>{me(),ge.error(function dn(){return new Error(`${At}Importing timeout error.`)}())},6e3);function me(){W.parentNode.removeChild(W),clearTimeout(H)}W.src=ke,this._document.body.appendChild(W),this._jsonpIconLoad$.pipe((0,$n.p)(qe=>qe.name===N.name&&qe.theme===N.theme),(0,zn.s)(1)).subscribe(qe=>{ge.next(qe),me()})})}_loadSVGFromCacheOrCreateNew(N,ke){let ge;const W=ke||this._twoToneColorPalette.primaryColor,H=Wt(W)||this._twoToneColorPalette.secondaryColor,me="twotone"===N.theme?function Fe(B,ce,N,ke){return`${Ue(B,ce)}-${N}-${ke}`}(N.name,N.theme,W,H):void 0===N.theme?N.name:Ue(N.name,N.theme),qe=this._svgRenderedDefinitions.get(me);return qe?ge=qe.icon:(ge=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function cn(B){return""!==Kt(B)[1]}(N.name)?N.icon:function ht(B){return B.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(N.icon)),"twotone"===N.theme,W,H)),this._svgRenderedDefinitions.set(me,{...N,icon:ge})),function et(B){return B.cloneNode(!0)}(ge)}_createSVGElementFromString(N){const ke=this._document.createElement("div");ke.innerHTML=N;const ge=ke.querySelector("svg");if(!ge)throw Un;return ge}_setSVGAttribute(N){return this._renderer.setAttribute(N,"width","1em"),this._renderer.setAttribute(N,"height","1em"),N}_colorizeSVGIcon(N,ke,ge,W){if(ke){const H=N.childNodes,me=H.length;for(let qe=0;qe{class B{constructor(N,ke,ge){this._iconService=N,this._elementRef=ke,this._renderer=ge}ngOnChanges(N){(N.type||N.theme||N.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(N=>{if(!this.type)return this._clearSVGElement(),void N(null);const ke=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(ge=>{const W=this._getSelfRenderMeta();!function Ge(B,ce){return B.type===ce.type&&B.theme===ce.theme&&B.twoToneColor===ce.twoToneColor}(ke,W)?N(null):(this._setSVGElement(ge),N(ge))})})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(N,ke){if(ie(N))return N;{const[ge,W]=Kt(N);return W?N:function _e(B){return B.endsWith("-fill")||B.endsWith("-o")||B.endsWith("-twotone")}(ge)?(ke&&St(`'type' ${ge} already gets a theme inside so 'theme' ${ke} would be ignored`),ge):Ue(ge,ke||this._iconService.defaultTheme)}}_setSVGElement(N){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,N)}_clearSVGElement(){const N=this._elementRef.nativeElement,ke=N.childNodes;for(let W=ke.length-1;W>=0;W--){const H=ke[W];"svg"===H.tagName?.toLowerCase()&&this._renderer.removeChild(N,H)}}static#e=this.\u0275fac=function(ke){return new(ke||B)(t.rXU(Vt),t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:B,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[t.OA$]})}return B})();var Xe=a(3451),dt=a(8167),at=a(6042),Ot=a(6860);const Qe=[dt.XkU,dt.Z1x,dt.iOx,dt.FmF,dt.rHI,dt.SFT,dt.aB7,dt.N$r,dt.HCk,dt.DXx,dt.Hcp,dt.Y6F,dt.XEL,dt.O9N,dt.OgO,dt.lWl,dt.KKJ,dt.rXM,dt.Nk1,dt.MTO,dt.drJ,dt.ekG,dt.U1s,dt.QQ_,dt.$ix,dt.cuh,dt.U97,dt.DT4,dt.gA6,dt.hl9,dt.j4r,dt.Dnx,dt.Hb1,dt.kGj,dt.HSk,dt.eiI,dt.zt9,dt.eiI,dt.eNq,dt.RR4,dt.qZ3,dt.wx$,dt.a5L,dt.XTv,dt.gZ6],be=new t.nKC("nz_icons"),re=(new t.nKC("nz_icon_default_twotone_color"),"#1890ff");let ze=(()=>{class B extends Vt{get _disableDynamicLoading(){return!this.platform.isBrowser}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(N){N.getAttribute("viewBox")||this._renderer.setAttribute(N,"viewBox","0 0 1024 1024"),(!N.getAttribute("width")||!N.getAttribute("height"))&&(this._renderer.setAttribute(N,"width","1em"),this._renderer.setAttribute(N,"height","1em")),N.getAttribute("fill")||this._renderer.setAttribute(N,"fill","currentColor")}fetchFromIconfont(N){const{scriptUrl:ke}=N;if(this._document&&!this.iconfontCache.has(ke)){const ge=this._renderer.createElement("script");this._renderer.setAttribute(ge,"src",ke),this._renderer.setAttribute(ge,"data-namespace",ke.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,ge),this.iconfontCache.add(ke)}}createIconfontIcon(N){return this._createSVGElementFromString(``)}constructor(N,ke,ge,W,H,me,qe){super(N,H,me,ke,[...Qe,...qe||[]]),this.nzConfigService=ge,this.platform=W,this.configUpdated$=new s.B,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 N=this.getConfig();this.defaultTheme=N.nzTheme||"outline"}configDefaultTwotoneColor(){const ke=this.getConfig().nzTwotoneColor||re;let ge=re;ke&&(ke.startsWith("#")?ge=ke:(0,Xe.R8)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:ge}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}static#e=this.\u0275fac=function(ke){return new(ke||B)(t.KVO(t._9s),t.KVO(bt.up),t.KVO(at.yx),t.KVO(Ot.OD),t.KVO(st.JV,8),t.KVO(xt.qQ,8),t.KVO(be,8))};static#t=this.\u0275prov=t.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})();const mt=new t.nKC("nz_icons_patch");let Ke=(()=>{class B{constructor(N,ke){this.extraIcons=N,this.rootIconService=ke,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(N=>this.rootIconService.addIcon(N)),this.patched=!0)}static#e=this.\u0275fac=function(ke){return new(ke||B)(t.KVO(mt,2),t.KVO(ze))};static#t=this.\u0275prov=t.jDH({token:B,factory:B.\u0275fac})}return B})(),xe=(()=>{class B extends ue{set nzSpin(N){this.spin=N}set nzType(N){this.type=N}set nzTheme(N){this.theme=N}set nzTwotoneColor(N){this.twoToneColor=N}set nzIconfont(N){this.iconfont=N}constructor(N,ke,ge,W,H,me){super(W,ge,H),this.ngZone=N,this.changeDetectorRef=ke,this.iconService=W,this.renderer=H,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new s.B,me&&me.doPatch(),this.el=ge.nativeElement}ngOnChanges(N){const{nzType:ke,nzTwotoneColor:ge,nzSpin:W,nzTheme:H,nzRotate:me}=N;ke||ge||W||H?this.changeIcon2():me?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 N=this.el.children;let ke=N.length;if(!this.type&&N.length)for(;ke--;){const ge=N[ke];"svg"===ge.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(ge)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,m.H)(this._changeIcon()).pipe((0,e.Q)(this.destroy$)).subscribe({next:N=>{this.ngZone.run(()=>{this.changeDetectorRef.detectChanges(),N&&(this.setSVGData(N),this.handleSpin(N),this.handleRotate(N))})},error:Xe.R8})})}handleSpin(N){this.spin||"loading"===this.type?this.renderer.addClass(N,"anticon-spin"):this.renderer.removeClass(N,"anticon-spin")}handleRotate(N){this.nzRotate?this.renderer.setAttribute(N,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(N,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(N){this.renderer.setAttribute(N,"data-icon",this.type),this.renderer.setAttribute(N,"aria-hidden","true")}static#e=this.\u0275fac=function(ke){return new(ke||B)(t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(ze),t.rXU(t.sFG),t.rXU(Ke,8))};static#t=this.\u0275dir=t.FsC({type:B,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(ke,ge){2&ke&&t.AVh("anticon",!0)},inputs:{nzSpin:[2,"nzSpin","nzSpin",t.L39],nzRotate:[2,"nzRotate","nzRotate",t.Udg],nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],standalone:!0,features:[t.GFd,t.Vt3,t.OA$]})}return B})(),Re=(()=>{class B{static forRoot(N){return{ngModule:B,providers:[{provide:be,useValue:N}]}}static forChild(N){return{ngModule:B,providers:[Ke,{provide:mt,useValue:N}]}}static#e=this.\u0275fac=function(ke){return new(ke||B)};static#t=this.\u0275mod=t.$C({type:B});static#n=this.\u0275inj=t.G2t({})}return B})()},1011:(Rt,De,a)=>{a.d(De,{Sy:()=>fn,c9:()=>bt,j:()=>Et,tg:()=>zn,vN:()=>$n});var t=a(177),s=a(3953),m=a(1413),e=a(7786),M=a(3294),K=a(6977),L=a(5964),j=a(9172),A=a(5558),I=a(1397),w=a(6354),F=a(7891),X=a(317),V=a(7806),x=a(5103),oe=a(9417),J=a(8203),Ee=a(851),Oe=a(6860),pe=a(1025);const Ie=["nz-input-group-slot",""],ve=["*"];function fe(St,Wt){if(1&St&&s.nrm(0,"span",0),2&St){const Ue=s.XpG();s.Y8G("nzType",Ue.icon)}}function Y(St,Wt){if(1&St&&(s.qex(0),s.EFF(1),s.bVm()),2&St){const Ue=s.XpG();s.R7$(),s.JRh(Ue.template)}}function z(St,Wt){if(1&St&&s.nrm(0,"span",3),2&St){const Ue=s.XpG(2);s.Y8G("icon",Ue.nzAddOnBeforeIcon)("template",Ue.nzAddOnBefore)}}function Z(St,Wt){}function he(St,Wt){if(1&St&&(s.j41(0,"span",6),s.DNE(1,Z,0,0,"ng-template",5),s.k0s()),2&St){const Ue=s.XpG(2),Fe=s.sdS(3);s.AVh("ant-input-affix-wrapper-disabled",Ue.disabled)("ant-input-affix-wrapper-sm",Ue.isSmall)("ant-input-affix-wrapper-lg",Ue.isLarge)("ant-input-affix-wrapper-focused",Ue.focused),s.Y8G("ngClass",Ue.affixInGroupStatusCls),s.R7$(),s.Y8G("ngTemplateOutlet",Fe)}}function E(St,Wt){}function S(St,Wt){if(1&St&&s.DNE(0,E,0,0,"ng-template",5),2&St){s.XpG(2);const Ue=s.sdS(5);s.Y8G("ngTemplateOutlet",Ue)}}function R(St,Wt){if(1&St&&s.nrm(0,"span",3),2&St){const Ue=s.XpG(2);s.Y8G("icon",Ue.nzAddOnAfterIcon)("template",Ue.nzAddOnAfter)}}function U(St,Wt){if(1&St&&(s.j41(0,"span",2),s.DNE(1,z,1,2,"span",3)(2,he,2,10,"span",4)(3,S,1,1,null,5)(4,R,1,2,"span",3),s.k0s()),2&St){const Ue=s.XpG();s.R7$(),s.vxM(Ue.nzAddOnBefore||Ue.nzAddOnBeforeIcon?1:-1),s.R7$(),s.vxM(Ue.isAffix||Ue.hasFeedback?2:3),s.R7$(2),s.vxM(Ue.nzAddOnAfter||Ue.nzAddOnAfterIcon?4:-1)}}function se(St,Wt){}function Be(St,Wt){if(1&St&&s.DNE(0,se,0,0,"ng-template",5),2&St){s.XpG(2);const Ue=s.sdS(3);s.Y8G("ngTemplateOutlet",Ue)}}function Pt(St,Wt){}function gt(St,Wt){if(1&St&&s.DNE(0,Pt,0,0,"ng-template",5),2&St){s.XpG(2);const Ue=s.sdS(5);s.Y8G("ngTemplateOutlet",Ue)}}function wt(St,Wt){if(1&St&&s.DNE(0,Be,1,1,null,5)(1,gt,1,1,null,5),2&St){const Ue=s.XpG();s.vxM(Ue.isAffix?0:1)}}function Le(St,Wt){if(1&St&&s.nrm(0,"span",7),2&St){const Ue=s.XpG(2);s.Y8G("icon",Ue.nzPrefixIcon)("template",Ue.nzPrefix)}}function zt(St,Wt){}function xt(St,Wt){if(1&St&&s.nrm(0,"nz-form-item-feedback-icon",9),2&St){const Ue=s.XpG(3);s.Y8G("status",Ue.status)}}function st(St,Wt){if(1&St&&(s.j41(0,"span",8),s.DNE(1,xt,1,1,"nz-form-item-feedback-icon",9),s.k0s()),2&St){const Ue=s.XpG(2);s.Y8G("icon",Ue.nzSuffixIcon)("template",Ue.nzSuffix),s.R7$(),s.vxM(Ue.isFeedback?1:-1)}}function Ct(St,Wt){if(1&St&&s.DNE(0,Le,1,2,"span",7)(1,zt,0,0,"ng-template",5)(2,st,2,3,"span",8),2&St){const Ue=s.XpG(),Fe=s.sdS(5);s.vxM(Ue.nzPrefix||Ue.nzPrefixIcon?0:-1),s.R7$(),s.Y8G("ngTemplateOutlet",Fe),s.R7$(),s.vxM(Ue.nzSuffix||Ue.nzSuffixIcon||Ue.isFeedback?2:-1)}}function It(St,Wt){if(1&St&&(s.j41(0,"span",10),s.nrm(1,"nz-form-item-feedback-icon",9),s.k0s()),2&St){const Ue=s.XpG(2);s.R7$(),s.Y8G("status",Ue.status)}}function Tt(St,Wt){if(1&St&&(s.SdG(0),s.DNE(1,It,2,1,"span",10)),2&St){const Ue=s.XpG();s.R7$(),s.vxM(Ue.isAddOn||Ue.isAffix||!Ue.isFeedback?-1:1)}}let Lt=(()=>{class St{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(Fe){return new(Fe||St)};static#t=this.\u0275cmp=s.VBU({type:St,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(Fe,te){2&Fe&&s.AVh("ant-input-group-addon","addon"===te.type)("ant-input-prefix","prefix"===te.type)("ant-input-suffix","suffix"===te.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[s.aNF],attrs:Ie,ngContentSelectors:ve,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(Fe,te){1&Fe&&(s.NAR(),s.DNE(0,fe,1,1,"span",0)(1,Y,2,1,"ng-container",1),s.SdG(2)),2&Fe&&(s.vxM(te.icon?0:-1),s.R7$(),s.Y8G("nzStringTemplateOutlet",te.template))},dependencies:[x.Y3,x.Dn,V.C,V.m],encapsulation:2,changeDetection:0})}return St})(),fn=(()=>{class St{get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ue){this._disabled=Ue}constructor(Ue,Fe,te,_e,ie,Pe,et){this.ngControl=Ue,this.renderer=Fe,this.elementRef=te,this.hostView=_e,this.directionality=ie,this.nzFormStatusService=Pe,this.nzFormNoStatusService=et,this.nzBorderless=!1,this.nzSize="default",this.nzStepperless=!0,this.nzStatus="",this._disabled=!1,this.disabled$=new m.B,this.dir="ltr",this.prefixCls="ant-input",this.status="",this.statusCls={},this.hasFeedback=!1,this.feedbackRef=null,this.components=[],this.destroy$=new m.B}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,M.F)((Ue,Fe)=>Ue.status===Fe.status&&Ue.hasFeedback===Fe.hasFeedback),(0,K.Q)(this.destroy$)).subscribe(({status:Ue,hasFeedback:Fe})=>{this.setStatusStyles(Ue,Fe)}),this.ngControl&&this.ngControl.statusChanges?.pipe((0,L.p)(()=>null!==this.ngControl.disabled),(0,K.Q)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,K.Q)(this.destroy$)).subscribe(Ue=>{this.dir=Ue})}ngOnChanges(Ue){const{disabled:Fe,nzStatus:te}=Ue;Fe&&this.disabled$.next(this.disabled),te&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ue,Fe){this.status=Ue,this.hasFeedback=Fe,this.renderFeedbackIcon(),this.statusCls=(0,X.LP)(this.prefixCls,Ue,Fe),Object.keys(this.statusCls).forEach(te=>{this.statusCls[te]?this.renderer.addClass(this.elementRef.nativeElement,te):this.renderer.removeClass(this.elementRef.nativeElement,te)})}renderFeedbackIcon(){if(!this.status||!this.hasFeedback||this.nzFormNoStatusService)return this.hostView.clear(),void(this.feedbackRef=null);this.feedbackRef=this.feedbackRef||this.hostView.createComponent(F.Xd),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.instance.status=this.status,this.feedbackRef.instance.updateIcon()}static#e=this.\u0275fac=function(Fe){return new(Fe||St)(s.rXU(oe.vO,10),s.rXU(s.sFG),s.rXU(s.aKT),s.rXU(s.c1b),s.rXU(J.dS,8),s.rXU(F.is,8),s.rXU(F.n1,8))};static#t=this.\u0275dir=s.FsC({type:St,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:13,hostBindings:function(Fe,te){2&Fe&&(s.BMQ("disabled",te.disabled||null),s.AVh("ant-input-disabled",te.disabled)("ant-input-borderless",te.nzBorderless)("ant-input-lg","large"===te.nzSize)("ant-input-sm","small"===te.nzSize)("ant-input-rtl","rtl"===te.dir)("ant-input-stepperless",te.nzStepperless))},inputs:{nzBorderless:[2,"nzBorderless","nzBorderless",s.L39],nzSize:"nzSize",nzStepperless:[2,"nzStepperless","nzStepperless",s.L39],nzStatus:"nzStatus",disabled:[2,"disabled","disabled",s.L39]},exportAs:["nzInput"],standalone:!0,features:[s.GFd,s.OA$]})}return St})(),$n=(()=>{class St{constructor(Ue){this.elementRef=Ue}static#e=this.\u0275fac=function(Fe){return new(Fe||St)(s.rXU(s.aKT))};static#t=this.\u0275dir=s.FsC({type:St,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]],standalone:!0})}return St})(),zn=(()=>{class St{constructor(Ue,Fe,te,_e,ie,Pe,et){this.focusMonitor=Ue,this.elementRef=Fe,this.renderer=te,this.cdr=_e,this.directionality=ie,this.nzFormStatusService=Pe,this.nzFormNoStatusService=et,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 m.B}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(Ue=>Ue.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,M.F)((Ue,Fe)=>Ue.status===Fe.status&&Ue.hasFeedback===Fe.hasFeedback),(0,K.Q)(this.destroy$)).subscribe(({status:Ue,hasFeedback:Fe})=>{this.setStatusStyles(Ue,Fe)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,K.Q)(this.destroy$)).subscribe(Ue=>{this.focused=!!Ue,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,K.Q)(this.destroy$)).subscribe(Ue=>{this.dir=Ue})}ngAfterContentInit(){this.updateChildrenInputSize();const Ue=this.listOfNzInputDirective.changes.pipe((0,j.Z)(this.listOfNzInputDirective));Ue.pipe((0,A.n)(Fe=>(0,e.h)(Ue,...Fe.map(te=>te.disabled$))),(0,I.Z)(()=>Ue),(0,w.T)(Fe=>Fe.some(te=>te.disabled)),(0,K.Q)(this.destroy$)).subscribe(Fe=>{this.disabled=Fe,this.cdr.markForCheck()})}ngOnChanges(Ue){const{nzSize:Fe,nzSuffix:te,nzPrefix:_e,nzPrefixIcon:ie,nzSuffixIcon:Pe,nzAddOnAfter:et,nzAddOnBefore:ht,nzAddOnAfterIcon:Kt,nzAddOnBeforeIcon:cn,nzStatus:Tn}=Ue;Fe&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(te||_e||ie||Pe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(et||ht||Kt||cn)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),Tn&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ue,Fe){this.status=Ue,this.hasFeedback=Fe,this.isFeedback=!!Ue&&Fe,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&Fe,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,X.LP)(`${this.prefixCls}-affix-wrapper`,Ue,Fe):{},this.cdr.markForCheck(),this.affixStatusCls=(0,X.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":Ue,!this.isAddOn&&Fe),this.groupStatusCls=(0,X.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?Ue:"",!!this.isAddOn&&Fe);const _e={...this.affixStatusCls,...this.groupStatusCls};Object.keys(_e).forEach(ie=>{_e[ie]?this.renderer.addClass(this.elementRef.nativeElement,ie):this.renderer.removeClass(this.elementRef.nativeElement,ie)})}static#e=this.\u0275fac=function(Fe){return new(Fe||St)(s.rXU(Ee.FN),s.rXU(s.aKT),s.rXU(s.sFG),s.rXU(s.gRc),s.rXU(J.dS,8),s.rXU(F.is,8),s.rXU(F.n1,8))};static#t=this.\u0275cmp=s.VBU({type:St,selectors:[["nz-input-group"]],contentQueries:function(Fe,te,_e){if(1&Fe&&s.wni(_e,fn,4),2&Fe){let ie;s.mGM(ie=s.lsd())&&(te.listOfNzInputDirective=ie)}},hostVars:40,hostBindings:function(Fe,te){2&Fe&&s.AVh("ant-input-group-compact",te.nzCompact)("ant-input-search-enter-button",te.nzSearch)("ant-input-search",te.nzSearch)("ant-input-search-rtl","rtl"===te.dir)("ant-input-search-sm",te.nzSearch&&te.isSmall)("ant-input-search-large",te.nzSearch&&te.isLarge)("ant-input-group-wrapper",te.isAddOn)("ant-input-group-wrapper-rtl","rtl"===te.dir)("ant-input-group-wrapper-lg",te.isAddOn&&te.isLarge)("ant-input-group-wrapper-sm",te.isAddOn&&te.isSmall)("ant-input-affix-wrapper",te.isAffix&&!te.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===te.dir)("ant-input-affix-wrapper-focused",te.isAffix&&te.focused)("ant-input-affix-wrapper-disabled",te.isAffix&&te.disabled)("ant-input-affix-wrapper-lg",te.isAffix&&!te.isAddOn&&te.isLarge)("ant-input-affix-wrapper-sm",te.isAffix&&!te.isAddOn&&te.isSmall)("ant-input-group",!te.isAffix&&!te.isAddOn)("ant-input-group-rtl","rtl"===te.dir)("ant-input-group-lg",!te.isAffix&&!te.isAddOn&&te.isLarge)("ant-input-group-sm",!te.isAffix&&!te.isAddOn&&te.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:[2,"nzSearch","nzSearch",s.L39],nzCompact:[2,"nzCompact","nzCompact",s.L39]},exportAs:["nzInputGroup"],standalone:!0,features:[s.Jv_([F.n1]),s.GFd,s.OA$,s.aNF],ngContentSelectors:ve,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"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"],[3,"ngTemplateOutlet"],[1,"ant-input-affix-wrapper",3,"ngClass"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-group-slot","","type","suffix"]],template:function(Fe,te){1&Fe&&(s.NAR(),s.DNE(0,U,5,3,"span",2)(1,wt,2,1)(2,Ct,3,3,"ng-template",null,0,s.C5r)(4,Tt,2,1,"ng-template",null,1,s.C5r)),2&Fe&&s.vxM(te.isAddOn?0:1)},dependencies:[Lt,t.YU,t.T3,F.J1,F.Xd],encapsulation:2,changeDetection:0})}return St})(),bt=(()=>{class St{set nzAutosize(Ue){var te;"string"==typeof Ue||!0===Ue?this.autosize=!0:"string"!=typeof(te=Ue)&&"boolean"!=typeof te&&(te.maxRows||te.minRows)&&(this.autosize=!0,this.minRows=Ue.minRows,this.maxRows=Ue.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(Ue=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const Fe=this.el,te=Fe.value;if(!Ue&&this.minRows===this.previousMinRows&&te===this.previousValue)return;const _e=Fe.placeholder;Fe.classList.add("nz-textarea-autosize-measuring"),Fe.placeholder="";let ie=Math.round((Fe.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&ie>this.maxHeight&&(ie=this.maxHeight),null!==this.minHeight&&ierequestAnimationFrame(()=>{const{selectionStart:Pe,selectionEnd:et}=Fe;!this.destroy$.isStopped&&document.activeElement===Fe&&Fe.setSelectionRange(Pe,et)})),this.previousValue=te,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const Ue=this.el.cloneNode(!1);Ue.rows=1,Ue.style.position="absolute",Ue.style.visibility="hidden",Ue.style.border="none",Ue.style.padding="0",Ue.style.height="",Ue.style.minHeight="",Ue.style.maxHeight="",Ue.style.overflow="hidden",this.el.parentNode.appendChild(Ue),this.cachedLineHeight=Ue.clientHeight-this.inputGap,this.el.parentNode.removeChild(Ue),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const Ue=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==Ue&&(this.el.style.minHeight=`${Ue}px`),Ue}setMaxHeight(){const Ue=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==Ue&&(this.el.style.maxHeight=`${Ue}px`),Ue}noopInputHandler(){}constructor(Ue,Fe,te,_e){this.elementRef=Ue,this.ngZone=Fe,this.platform=te,this.resizeService=_e,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new m.B,this.inputGap=10}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,K.Q)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}static#e=this.\u0275fac=function(Fe){return new(Fe||St)(s.rXU(s.aKT),s.rXU(s.SKi),s.rXU(Oe.OD),s.rXU(pe.cB))};static#t=this.\u0275dir=s.FsC({type:St,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(Fe,te){1&Fe&&s.bIt("input",function(){return te.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"],standalone:!0})}return St})(),Et=(()=>{class St{static#e=this.\u0275fac=function(Fe){return new(Fe||St)};static#t=this.\u0275mod=s.$C({type:St});static#n=this.\u0275inj=s.G2t({imports:[zn,Lt]})}return St})()},2617:(Rt,De,a)=>{a.d(De,{$2:()=>q,MV:()=>Xe,Tc:()=>ee,Xo:()=>at,YU:()=>Vt,eE:()=>re,lQ:()=>ze,mf:()=>wn,nt:()=>dt,qx:()=>ue,rD:()=>Ke});var t=a(177),s=a(3953),m=a(7806),e=a(9438),M=a(1413),K=a(9030),L=a(7673),j=a(7786),A=a(4412),I=a(1397),w=a(9172),F=a(6977),X=a(1025),V=a(7529),x=a(2983),oe=a(1672),J=a(8203);const Ee=["*"];function Oe(xe,Re){if(1&xe&&s.nrm(0,"nz-avatar",1),2&xe){const B=s.XpG();s.Y8G("nzSrc",B.nzSrc)}}function pe(xe,Re){1&xe&&s.SdG(0)}const Ie=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],ve=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function fe(xe,Re){if(1&xe&&s.nrm(0,"nz-list-item-meta-avatar",0),2&xe){const B=s.XpG();s.Y8G("nzSrc",B.avatarStr)}}function Y(xe,Re){if(1&xe&&(s.j41(0,"nz-list-item-meta-avatar"),s.eu8(1,2),s.k0s()),2&xe){const B=s.XpG();s.R7$(),s.Y8G("ngTemplateOutlet",B.avatarTpl)}}function z(xe,Re){if(1&xe&&(s.qex(0),s.EFF(1),s.bVm()),2&xe){const B=s.XpG(3);s.R7$(),s.JRh(B.nzTitle)}}function Z(xe,Re){if(1&xe&&(s.j41(0,"nz-list-item-meta-title"),s.DNE(1,z,2,1,"ng-container",3),s.k0s()),2&xe){const B=s.XpG(2);s.R7$(),s.Y8G("nzStringTemplateOutlet",B.nzTitle)}}function he(xe,Re){if(1&xe&&(s.qex(0),s.EFF(1),s.bVm()),2&xe){const B=s.XpG(3);s.R7$(),s.JRh(B.nzDescription)}}function E(xe,Re){if(1&xe&&(s.j41(0,"nz-list-item-meta-description"),s.DNE(1,he,2,1,"ng-container",3),s.k0s()),2&xe){const B=s.XpG(2);s.R7$(),s.Y8G("nzStringTemplateOutlet",B.nzDescription)}}function S(xe,Re){if(1&xe&&(s.j41(0,"div",1),s.DNE(1,Z,2,1,"nz-list-item-meta-title")(2,E,2,1,"nz-list-item-meta-description"),s.SdG(3,1),s.SdG(4,2),s.k0s()),2&xe){const B=s.XpG();s.R7$(),s.vxM(B.nzTitle&&!B.titleComponent?1:-1),s.R7$(),s.vxM(B.nzDescription&&!B.descriptionComponent?2:-1)}}function R(xe,Re){1&xe&&s.SdG(0)}const U=["nz-list-item-actions",""];function se(xe,Re){}function Be(xe,Re){1&xe&&s.nrm(0,"em",1)}function Pt(xe,Re){if(1&xe&&(s.j41(0,"li"),s.DNE(1,se,0,0,"ng-template",0)(2,Be,1,0,"em",1),s.k0s()),2&xe){const B=Re.$implicit,ce=Re.$index,N=Re.$count;s.R7$(),s.Y8G("ngTemplateOutlet",B),s.R7$(),s.vxM(ce!==N-1?2:-1)}}const gt=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],wt=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"],Le=(xe,Re)=>({$implicit:xe,index:Re});function zt(xe,Re){if(1&xe&&(s.qex(0),s.EFF(1),s.bVm()),2&xe){const B=s.XpG(2);s.R7$(),s.JRh(B.nzHeader)}}function xt(xe,Re){if(1&xe&&(s.j41(0,"nz-list-header"),s.DNE(1,zt,2,1,"ng-container",6),s.k0s()),2&xe){const B=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",B.nzHeader)}}function st(xe,Re){1&xe&&s.nrm(0,"div"),2&xe&&s.xc7("min-height",53,"px")}function Ct(xe,Re){}function It(xe,Re){if(1&xe&&(s.j41(0,"div",7),s.DNE(1,Ct,0,0,"ng-template",8),s.k0s()),2&xe){const B=Re.$implicit,ce=Re.$index,N=s.XpG(2);s.Y8G("nzSpan",N.nzGrid.span||null)("nzXs",N.nzGrid.xs||null)("nzSm",N.nzGrid.sm||null)("nzMd",N.nzGrid.md||null)("nzLg",N.nzGrid.lg||null)("nzXl",N.nzGrid.xl||null)("nzXXl",N.nzGrid.xxl||null),s.R7$(),s.Y8G("ngTemplateOutlet",N.nzRenderItem)("ngTemplateOutletContext",s.l_i(9,Le,B,ce))}}function Tt(xe,Re){if(1&xe&&(s.j41(0,"div",2),s.Z7z(1,It,2,12,"div",7,s.fX1),s.k0s()),2&xe){const B=s.XpG();s.Y8G("nzGutter",B.nzGrid.gutter||null),s.R7$(),s.Dyx(B.nzDataSource)}}function en(xe,Re){}function Ut(xe,Re){if(1&xe&&(s.qex(0),s.DNE(1,en,0,0,"ng-template",8),s.bVm()),2&xe){const B=Re.$implicit,ce=Re.$index,N=s.XpG(2);s.R7$(),s.Y8G("ngTemplateOutlet",N.nzRenderItem)("ngTemplateOutletContext",s.l_i(2,Le,B,ce))}}function Lt(xe,Re){if(1&xe&&(s.j41(0,"div",3),s.Z7z(1,Ut,2,5,"ng-container",null,s.fX1),s.SdG(3,4),s.k0s()),2&xe){const B=s.XpG();s.R7$(),s.Dyx(B.nzDataSource)}}function fn(xe,Re){if(1&xe&&s.nrm(0,"nz-list-empty",4),2&xe){const B=s.XpG();s.Y8G("nzNoResult",B.nzNoResult)}}function $n(xe,Re){if(1&xe&&(s.qex(0),s.EFF(1),s.bVm()),2&xe){const B=s.XpG(2);s.R7$(),s.JRh(B.nzFooter)}}function zn(xe,Re){if(1&xe&&(s.j41(0,"nz-list-footer"),s.DNE(1,$n,2,1,"ng-container",6),s.k0s()),2&xe){const B=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",B.nzFooter)}}function bt(xe,Re){}function At(xe,Re){}function Et(xe,Re){if(1&xe&&(s.j41(0,"nz-list-pagination"),s.DNE(1,At,0,0,"ng-template",5),s.k0s()),2&xe){const B=s.XpG();s.R7$(),s.Y8G("ngTemplateOutlet",B.nzPagination)}}const St=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Wt=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];function Ue(xe,Re){if(1&xe&&s.nrm(0,"ul",3),2&xe){const B=s.XpG(2);s.Y8G("nzActions",B.nzActions)}}function Fe(xe,Re){if(1&xe&&(s.DNE(0,Ue,1,1,"ul",3),s.SdG(1)),2&xe){const B=s.XpG();s.vxM(B.nzActions&&B.nzActions.length>0?0:-1)}}function te(xe,Re){if(1&xe&&(s.qex(0),s.EFF(1),s.bVm()),2&xe){const B=s.XpG(3);s.R7$(),s.JRh(B.nzContent)}}function _e(xe,Re){if(1&xe&&s.DNE(0,te,2,1,"ng-container",4),2&xe){const B=s.XpG(2);s.Y8G("nzStringTemplateOutlet",B.nzContent)}}function ie(xe,Re){if(1&xe&&(s.SdG(0,1),s.SdG(1,2),s.DNE(2,_e,1,1,"ng-container")),2&xe){const B=s.XpG();s.R7$(2),s.vxM(B.nzContent?2:-1)}}function Pe(xe,Re){1&xe&&s.SdG(0,3)}function et(xe,Re){}function ht(xe,Re){}function Kt(xe,Re){}function cn(xe,Re){if(1&xe&&(s.j41(0,"nz-list-item-extra"),s.DNE(1,Kt,0,0,"ng-template",6),s.k0s()),2&xe){const B=s.XpG(2);s.R7$(),s.Y8G("ngTemplateOutlet",B.nzExtra)}}function Tn(xe,Re){}function Wn(xe,Re){if(1&xe&&(s.j41(0,"div",5),s.DNE(1,et,0,0,"ng-template",6)(2,ht,0,0,"ng-template",6),s.k0s(),s.DNE(3,cn,2,1,"nz-list-item-extra")(4,Tn,0,0,"ng-template",6)),2&xe){const B=s.XpG(),ce=s.sdS(1),N=s.sdS(3),ke=s.sdS(5);s.R7$(),s.Y8G("ngTemplateOutlet",N),s.R7$(),s.Y8G("ngTemplateOutlet",ce),s.R7$(),s.vxM(B.nzExtra?3:-1),s.R7$(),s.Y8G("ngTemplateOutlet",ke)}}function kn(xe,Re){}function In(xe,Re){}function Un(xe,Re){}function dn(xe,Re){}function qt(xe,Re){if(1&xe&&s.DNE(0,kn,0,0,"ng-template",6)(1,In,0,0,"ng-template",6)(2,Un,0,0,"ng-template",6)(3,dn,0,0,"ng-template",6),2&xe){const B=s.XpG(),ce=s.sdS(1),N=s.sdS(3),ke=s.sdS(5);s.Y8G("ngTemplateOutlet",N),s.R7$(),s.Y8G("ngTemplateOutlet",B.nzExtra),s.R7$(),s.Y8G("ngTemplateOutlet",ke),s.R7$(),s.Y8G("ngTemplateOutlet",ce)}}let wn=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(ce,N){1&ce&&(s.NAR(),s.j41(0,"h4",0),s.SdG(1),s.k0s())},encapsulation:2,changeDetection:0})}return xe})(),Vt=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(ce,N){1&ce&&(s.NAR(),s.j41(0,"div",0),s.SdG(1),s.k0s())},encapsulation:2,changeDetection:0})}return xe})(),Ge=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:3,vars:1,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc"]],template:function(ce,N){1&ce&&(s.NAR(),s.j41(0,"div",0),s.DNE(1,Oe,1,1,"nz-avatar",1)(2,pe,1,0),s.k0s()),2&ce&&(s.R7$(),s.vxM(N.nzSrc?1:2))},dependencies:[e.Yb,e.PM],encapsulation:2,changeDetection:0})}return xe})(),ue=(()=>{class xe{set nzAvatar(B){B instanceof s.C4Q?(this.avatarStr="",this.avatarTpl=B):this.avatarStr=B}constructor(B){this.elementRef=B,this.avatarStr=""}static#e=this.\u0275fac=function(ce){return new(ce||xe)(s.rXU(s.aKT))};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(ce,N,ke){if(1&ce&&(s.wni(ke,Vt,5),s.wni(ke,wn,5)),2&ce){let ge;s.mGM(ge=s.lsd())&&(N.descriptionComponent=ge.first),s.mGM(ge=s.lsd())&&(N.titleComponent=ge.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],standalone:!0,features:[s.aNF],ngContentSelectors:ve,decls:4,vars:3,consts:[[3,"nzSrc"],[1,"ant-list-item-meta-content"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"]],template:function(ce,N){1&ce&&(s.NAR(Ie),s.DNE(0,fe,1,1,"nz-list-item-meta-avatar",0)(1,Y,2,1,"nz-list-item-meta-avatar"),s.SdG(2),s.DNE(3,S,5,2,"div",1)),2&ce&&(s.vxM(N.avatarStr?0:-1),s.R7$(),s.vxM(N.avatarTpl?1:-1),s.R7$(2),s.vxM(N.nzTitle||N.nzDescription||N.descriptionComponent||N.titleComponent?3:-1))},dependencies:[Ge,t.T3,wn,m.C,m.m,Vt],encapsulation:2,changeDetection:0})}return xe})(),q=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(ce,N){1&ce&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return xe})(),ee=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-item-action"]],viewQuery:function(ce,N){if(1&ce&&s.GBs(s.C4Q,7),2&ce){let ke;s.mGM(ke=s.lsd())&&(N.templateRef=ke.first)}},exportAs:["nzListItemAction"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(ce,N){1&ce&&(s.NAR(),s.DNE(0,R,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return xe})(),Xe=(()=>{class xe{constructor(B,ce){this.nzActions=[],this.actions=[],this.inputActionChanges$=new M.B,this.contentChildrenChanges$=(0,K.v)(()=>this.nzListItemActions?(0,L.of)(null):this.initialized.pipe((0,I.Z)(()=>this.nzListItemActions.changes.pipe((0,w.Z)(this.nzListItemActions))))),this.initialized=new M.B,(0,j.h)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,F.Q)(ce)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(N=>N.templateRef),B.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngAfterContentInit(){this.initialized.next(),this.initialized.complete()}static#e=this.\u0275fac=function(ce){return new(ce||xe)(s.rXU(s.gRc),s.rXU(X.y4))};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(ce,N,ke){if(1&ce&&s.wni(ke,ee,4),2&ce){let ge;s.mGM(ge=s.lsd())&&(N.nzListItemActions=ge)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],standalone:!0,features:[s.Jv_([X.y4]),s.OA$,s.aNF],attrs:U,decls:2,vars:0,consts:[[3,"ngTemplateOutlet"],[1,"ant-list-item-action-split"]],template:function(ce,N){1&ce&&s.Z7z(0,Pt,3,2,"li",null,s.fX1),2&ce&&s.Dyx(N.actions)},dependencies:[t.T3],encapsulation:2,changeDetection:0})}return xe})(),dt=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],standalone:!0,features:[s.aNF],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(ce,N){1&ce&&s.nrm(0,"nz-embed-empty",0),2&ce&&s.Y8G("nzComponentName","list")("specificContent",N.nzNoResult)},dependencies:[oe._v,oe.E8],encapsulation:2,changeDetection:0})}return xe})(),at=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(ce,N){1&ce&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return xe})(),Ot=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(ce,N){1&ce&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return xe})(),Qe=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],standalone:!0,features:[s.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(ce,N){1&ce&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return xe})(),be=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275dir=s.FsC({type:xe,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"],standalone:!0})}return xe})(),re=(()=>{class xe{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor(B){this.directionality=B,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 A.t(this.nzItemLayout),this.destroy$=new M.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(B=>{this.dir=B})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(B){B.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}static#e=this.\u0275fac=function(ce){return new(ce||xe)(s.rXU(J.dS,8))};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(ce,N,ke){if(1&ce&&(s.wni(ke,Ot,5),s.wni(ke,Qe,5),s.wni(ke,be,5)),2&ce){let ge;s.mGM(ge=s.lsd())&&(N.nzListFooterComponent=ge.first),s.mGM(ge=s.lsd())&&(N.nzListPaginationComponent=ge.first),s.mGM(ge=s.lsd())&&(N.nzListLoadMoreDirective=ge.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(ce,N){2&ce&&s.AVh("ant-list-rtl","rtl"===N.dir)("ant-list-vertical","vertical"===N.nzItemLayout)("ant-list-lg","large"===N.nzSize)("ant-list-sm","small"===N.nzSize)("ant-list-split",N.nzSplit)("ant-list-bordered",N.nzBordered)("ant-list-loading",N.nzLoading)("ant-list-something-after-last-item",N.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:[2,"nzBordered","nzBordered",s.L39],nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:[2,"nzLoading","nzLoading",s.L39],nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:[2,"nzSplit","nzSplit",s.L39],nzNoResult:"nzNoResult"},exportAs:["nzList"],standalone:!0,features:[s.GFd,s.OA$,s.aNF],ngContentSelectors:wt,decls:14,vars:8,consts:[[3,"nzSpinning"],[3,"min-height"],["nz-row","",3,"nzGutter"],[1,"ant-list-items"],[3,"nzNoResult"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ce,N){1&ce&&(s.NAR(gt),s.DNE(0,xt,2,1,"nz-list-header"),s.SdG(1),s.j41(2,"nz-spin",0),s.qex(3),s.DNE(4,st,1,2,"div",1)(5,Tt,3,1,"div",2)(6,Lt,4,0,"div",3)(7,fn,1,1,"nz-list-empty",4),s.bVm(),s.k0s(),s.DNE(8,zn,2,1,"nz-list-footer"),s.SdG(9,1),s.DNE(10,bt,0,0,"ng-template",5),s.SdG(11,2),s.DNE(12,Et,2,1,"nz-list-pagination"),s.SdG(13,3)),2&ce&&(s.vxM(N.nzHeader?0:-1),s.R7$(2),s.Y8G("nzSpinning",N.nzLoading),s.R7$(2),s.vxM(N.nzLoading&&N.nzDataSource&&0===N.nzDataSource.length?4:-1),s.R7$(),s.vxM(N.nzGrid&&N.nzDataSource?5:6),s.R7$(2),s.vxM(!N.nzLoading&&N.nzDataSource&&0===N.nzDataSource.length?7:-1),s.R7$(),s.vxM(N.nzFooter?8:-1),s.R7$(2),s.Y8G("ngTemplateOutlet",N.nzLoadMore),s.R7$(2),s.vxM(N.nzPagination?12:-1))},dependencies:[t.T3,at,m.C,m.m,x.V,x.a,V.f3,V.Uq,V.e,dt,Ot,Qe],encapsulation:2,changeDetection:0})}return xe})(),ze=(()=>{class xe{get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}constructor(B,ce){this.parentComp=B,this.cdr=ce,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(B=>{this.itemLayout=B,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}static#e=this.\u0275fac=function(ce){return new(ce||xe)(s.rXU(re),s.rXU(s.gRc))};static#t=this.\u0275cmp=s.VBU({type:xe,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(ce,N,ke){if(1&ce&&s.wni(ke,q,5),2&ce){let ge;s.mGM(ge=s.lsd())&&(N.listItemExtraDirective=ge.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(ce,N){2&ce&&s.AVh("ant-list-item-no-flex",N.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:[2,"nzNoFlex","nzNoFlex",s.L39]},exportAs:["nzListItem"],standalone:!0,features:[s.GFd,s.aNF],ngContentSelectors:Wt,decls:8,vars:1,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["nz-list-item-actions","",3,"nzActions"],[4,"nzStringTemplateOutlet"],[1,"ant-list-item-main"],[3,"ngTemplateOutlet"]],template:function(ce,N){1&ce&&(s.NAR(St),s.DNE(0,Fe,2,1,"ng-template",null,0,s.C5r)(2,ie,3,1,"ng-template",null,1,s.C5r)(4,Pe,1,0,"ng-template",null,2,s.C5r)(6,Wn,5,4)(7,qt,4,4)),2&ce&&(s.R7$(6),s.vxM(N.isVerticalAndExtra?6:7))},dependencies:[Xe,m.C,m.m,t.T3,q],encapsulation:2,changeDetection:0})}return xe})(),Ke=(()=>{class xe{static#e=this.\u0275fac=function(ce){return new(ce||xe)};static#t=this.\u0275mod=s.$C({type:xe});static#n=this.\u0275inj=s.G2t({imports:[re,dt,ze,ue,Ge]})}return xe})()},1868:(Rt,De,a)=>{a.d(De,{$1:()=>Ue,CU:()=>te,GP:()=>dn,WQ:()=>In,ek:()=>St,jS:()=>Wn,sD:()=>Un});var t=a(3953),s=a(1413),m=a(4412),e=a(7786),M=a(4572),K=a(6354),L=a(1397),j=a(5964),A=a(3703),I=a(3798),w=a(3294),F=a(6977),X=a(9172),V=a(5558),x=a(1188),oe=a(317),J=a(8203),Ee=a(7987),Oe=a(6841),pe=a(5463),Ie=a(177),ve=a(713),fe=a(7806),Y=a(5103),z=a(6860);const Z=["nz-menu-item",""],he=["*"],E=["nz-submenu-inline-child",""];function S(qt,wn){}const R=["nz-submenu-none-inline-child",""];function U(qt,wn){}const se=["nz-submenu-title",""];function Be(qt,wn){if(1&qt&&t.nrm(0,"span",0),2&qt){const Vt=t.XpG();t.Y8G("nzType",Vt.nzIcon)}}function Pt(qt,wn){if(1&qt&&(t.qex(0),t.j41(1,"span",4),t.EFF(2),t.k0s(),t.bVm()),2&qt){const Vt=t.XpG();t.R7$(2),t.JRh(Vt.nzTitle)}}function gt(qt,wn){1&qt&&t.nrm(0,"span",5)}function wt(qt,wn){1&qt&&t.nrm(0,"span",6)}function Le(qt,wn){if(1&qt&&(t.j41(0,"span",2),t.DNE(1,gt,1,0,"span",5)(2,wt,1,0,"span",6),t.k0s()),2&qt){let Vt;const Ge=t.XpG();t.R7$(),t.vxM("rtl"===(Vt=Ge.dir)?1:2)}}function zt(qt,wn){1&qt&&t.nrm(0,"span",3)}const xt=["nz-submenu",""],st=[[["","title",""]],"*"],Ct=["[title]","*"];function It(qt,wn){1&qt&&t.SdG(0)}function Tt(qt,wn){if(1&qt&&t.nrm(0,"div",3),2&qt){const Vt=t.XpG(),Ge=t.sdS(6);t.Y8G("mode",Vt.mode)("nzOpen",Vt.nzOpen)("@.disabled",!(null==Vt.noAnimation||!Vt.noAnimation.nzNoAnimation))("nzNoAnimation",null==Vt.noAnimation?null:Vt.noAnimation.nzNoAnimation)("menuClass",Vt.nzMenuClassName)("templateOutlet",Ge)}}function en(qt,wn){if(1&qt){const Vt=t.RV6();t.j41(0,"div",6),t.bIt("subMenuMouseState",function(ue){t.eBV(Vt);const q=t.XpG(2);return t.Njj(q.setMouseEnterState(ue))}),t.k0s()}if(2&qt){const Vt=t.XpG(2),Ge=t.sdS(6);t.Y8G("theme",Vt.theme)("mode",Vt.mode)("nzOpen",Vt.nzOpen)("position",Vt.position)("nzDisabled",Vt.nzDisabled)("isMenuInsideDropDown",Vt.isMenuInsideDropDown)("templateOutlet",Ge)("menuClass",Vt.nzMenuClassName)("@.disabled",!(null==Vt.noAnimation||!Vt.noAnimation.nzNoAnimation))("nzNoAnimation",null==Vt.noAnimation?null:Vt.noAnimation.nzNoAnimation)}}function Ut(qt,wn){if(1&qt){const Vt=t.RV6();t.DNE(0,en,1,10,"ng-template",5),t.bIt("positionChange",function(ue){t.eBV(Vt);const q=t.XpG();return t.Njj(q.onPositionChange(ue))})}if(2&qt){const Vt=t.XpG(),Ge=t.sdS(1);t.Y8G("cdkConnectedOverlayPositions",Vt.overlayPositions)("cdkConnectedOverlayOrigin",Ge)("cdkConnectedOverlayWidth",Vt.triggerWidth)("cdkConnectedOverlayOpen",Vt.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function Lt(qt,wn){1&qt&&t.SdG(0,1)}const fn=["titleElement"],$n=["nz-menu-group",""],zn=["*",[["","title",""]]],bt=["*","[title]"];function At(qt,wn){if(1&qt&&(t.qex(0),t.EFF(1),t.bVm()),2&qt){const Vt=t.XpG();t.R7$(),t.JRh(Vt.nzTitle)}}function Et(qt,wn){1&qt&&t.SdG(0,1)}const St=new t.nKC("NzIsInDropDownMenuToken"),Wt=new t.nKC("NzMenuServiceLocalToken");let Ue=(()=>{class qt{constructor(){this.descendantMenuItemClick$=new s.B,this.childMenuItemClick$=new s.B,this.theme$=new m.t("light"),this.mode$=new m.t("vertical"),this.inlineIndent$=new m.t(24),this.isChildSubMenuOpen$=new m.t(!1)}onDescendantMenuItemClick(Vt){this.descendantMenuItemClick$.next(Vt)}onChildMenuItemClick(Vt){this.childMenuItemClick$.next(Vt)}setMode(Vt){this.mode$.next(Vt)}setTheme(Vt){this.theme$.next(Vt)}setInlineIndent(Vt){this.inlineIndent$.next(Vt)}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)};static#t=this.\u0275prov=t.jDH({token:qt,factory:qt.\u0275fac})}return qt})(),Fe=(()=>{class qt{onChildMenuItemClick(Vt){this.childMenuItemClick$.next(Vt)}setOpenStateWithoutDebounce(Vt){this.isCurrentSubMenuOpen$.next(Vt)}setMouseEnterTitleOrOverlayState(Vt){this.isMouseEnterTitleOrOverlay$.next(Vt)}constructor(Vt,Ge,ue){this.nzHostSubmenuService=Vt,this.nzMenuService=Ge,this.isMenuInsideDropDown=ue,this.mode$=this.nzMenuService.mode$.pipe((0,K.T)(dt=>"inline"===dt?"inline":"vertical"===dt||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new m.t(!1),this.isChildSubMenuOpen$=new m.t(!1),this.isMouseEnterTitleOrOverlay$=new s.B,this.childMenuItemClick$=new s.B,this.destroy$=new s.B,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const q=this.childMenuItemClick$.pipe((0,L.Z)(()=>this.mode$),(0,j.p)(dt=>"inline"!==dt||this.isMenuInsideDropDown),(0,A.u)(!1)),ee=(0,e.h)(this.isMouseEnterTitleOrOverlay$,q);(0,M.z)([this.isChildSubMenuOpen$,ee]).pipe((0,K.T)(([dt,at])=>dt||at),(0,I.Z)(150),(0,w.F)(),(0,F.Q)(this.destroy$)).pipe((0,w.F)()).subscribe(dt=>{this.setOpenStateWithoutDebounce(dt),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(dt):this.nzMenuService.isChildSubMenuOpen$.next(dt)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.KVO(qt,12),t.KVO(Ue),t.KVO(St))};static#t=this.\u0275prov=t.jDH({token:qt,factory:qt.\u0275fac})}return qt})(),te=(()=>{class qt{clickMenuItem(Vt){this.nzDisabled?(Vt.preventDefault(),Vt.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(Vt){this.nzSelected=Vt,this.selected$.next(Vt)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const Vt=this.hasActiveLinks();this.nzSelected!==Vt&&(this.nzSelected=Vt,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const Vt=this.isLinkActive(this.router);return this.routerLink&&Vt(this.routerLink)||this.listOfRouterLink.some(Vt)}isLinkActive(Vt){return Ge=>Vt.isActive(Ge.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(Vt,Ge,ue,q,ee,Xe,dt){this.nzMenuService=Vt,this.cdr=Ge,this.nzSubmenuService=ue,this.isMenuInsideDropDown=q,this.directionality=ee,this.routerLink=Xe,this.router=dt,this.destroy$=new s.B,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new s.B,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,dt&&this.router.events.pipe((0,F.Q)(this.destroy$),(0,j.p)(at=>at instanceof x.wF)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){(0,M.z)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Vt,Ge])=>{this.inlinePaddingLeft="inline"===Vt?this.level*Ge:null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.dir=Vt})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,F.Q)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(Vt){Vt.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(Ue),t.rXU(t.gRc),t.rXU(Fe,8),t.rXU(St),t.rXU(J.dS,8),t.rXU(x.Wk,8),t.rXU(x.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-menu-item",""]],contentQueries:function(Ge,ue,q){if(1&Ge&&t.wni(q,x.Wk,5),2&Ge){let ee;t.mGM(ee=t.lsd())&&(ue.listOfRouterLink=ee)}},hostVars:20,hostBindings:function(Ge,ue){1&Ge&&t.bIt("click",function(ee){return ue.clickMenuItem(ee)}),2&Ge&&(t.xc7("padding-left","rtl"===ue.dir?null:ue.nzPaddingLeft||ue.inlinePaddingLeft,"px")("padding-right","rtl"===ue.dir?ue.nzPaddingLeft||ue.inlinePaddingLeft:null,"px"),t.AVh("ant-dropdown-menu-item",ue.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",ue.isMenuInsideDropDown&&ue.nzSelected)("ant-dropdown-menu-item-danger",ue.isMenuInsideDropDown&&ue.nzDanger)("ant-dropdown-menu-item-disabled",ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-menu-item",!ue.isMenuInsideDropDown)("ant-menu-item-selected",!ue.isMenuInsideDropDown&&ue.nzSelected)("ant-menu-item-danger",!ue.isMenuInsideDropDown&&ue.nzDanger)("ant-menu-item-disabled",!ue.isMenuInsideDropDown&&ue.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",oe.cj],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzSelected:[2,"nzSelected","nzSelected",t.L39],nzDanger:[2,"nzDanger","nzDanger",t.L39],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",t.L39],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",t.L39]},exportAs:["nzMenuItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:Z,ngContentSelectors:he,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(Ge,ue){1&Ge&&(t.NAR(),t.j41(0,"span",0),t.SdG(1),t.k0s())},encapsulation:2,changeDetection:0})}return qt})(),_e=(()=>{class qt{constructor(Vt,Ge,ue){this.elementRef=Vt,this.renderer=Ge,this.directionality=ue,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new s.B}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.dir=Vt})}ngOnChanges(Vt){const{mode:Ge,nzOpen:ue,menuClass:q}=Vt;(Ge||ue)&&this.calcMotionState(),q&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(ee=>!!ee).forEach(ee=>{this.renderer.removeClass(this.elementRef.nativeElement,ee)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(ee=>!!ee).forEach(ee=>{this.renderer.addClass(this.elementRef.nativeElement,ee)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(Ge,ue){2&Ge&&(t.zvX("@collapseMotion",ue.expandState),t.AVh("ant-menu-rtl","rtl"===ue.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:E,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(Ge,ue){1&Ge&&t.DNE(0,S,0,0,"ng-template",0),2&Ge&&t.Y8G("ngTemplateOutlet",ue.templateOutlet)},dependencies:[Ie.T3],encapsulation:2,data:{animation:[ve.GE]},changeDetection:0})}return qt})(),ie=(()=>{class qt{constructor(Vt){this.directionality=Vt,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 t.bkB,this.expandState="collapsed",this.dir="ltr",this.destroy$=new s.B}setMouseState(Vt){this.nzDisabled||this.subMenuMouseState.next(Vt)}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,F.Q)(this.destroy$)).subscribe(Vt=>{this.dir=Vt})}ngOnChanges(Vt){const{mode:Ge,nzOpen:ue}=Vt;(Ge||ue)&&this.calcMotionState()}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(Ge,ue){1&Ge&&t.bIt("mouseenter",function(){return ue.setMouseState(!0)})("mouseleave",function(){return ue.setMouseState(!1)}),2&Ge&&(t.zvX("@slideMotion",ue.expandState)("@zoomBigMotion",ue.expandState),t.AVh("ant-menu-light","light"===ue.theme)("ant-menu-dark","dark"===ue.theme)("ant-menu-submenu-placement-bottom","horizontal"===ue.mode)("ant-menu-submenu-placement-right","vertical"===ue.mode&&"right"===ue.position)("ant-menu-submenu-placement-left","vertical"===ue.mode&&"left"===ue.position)("ant-menu-submenu-rtl","rtl"===ue.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:R,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(Ge,ue){1&Ge&&(t.j41(0,"div",0),t.DNE(1,U,0,0,"ng-template",1),t.k0s()),2&Ge&&(t.AVh("ant-dropdown-menu",ue.isMenuInsideDropDown)("ant-menu",!ue.isMenuInsideDropDown)("ant-dropdown-menu-vertical",ue.isMenuInsideDropDown)("ant-menu-vertical",!ue.isMenuInsideDropDown)("ant-dropdown-menu-sub",ue.isMenuInsideDropDown)("ant-menu-sub",!ue.isMenuInsideDropDown)("ant-menu-rtl","rtl"===ue.dir),t.Y8G("ngClass",ue.menuClass),t.R7$(),t.Y8G("ngTemplateOutlet",ue.templateOutlet))},dependencies:[Ie.YU,Ie.T3],encapsulation:2,data:{animation:[ve.uX,ve.U1]},changeDetection:0})}return qt})(),Pe=(()=>{class qt{constructor(Vt,Ge){this.cdr=Vt,this.directionality=Ge,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new t.bkB,this.subMenuMouseState=new t.bkB,this.dir="ltr",this.destroy$=new s.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.dir=Vt,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(Vt){this.nzDisabled||this.subMenuMouseState.next(Vt)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(t.gRc),t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(Ge,ue){1&Ge&&t.bIt("click",function(){return ue.clickTitle()})("mouseenter",function(){return ue.setMouseState(!0)})("mouseleave",function(){return ue.setMouseState(!1)}),2&Ge&&(t.xc7("padding-left","rtl"===ue.dir?null:ue.paddingLeft,"px")("padding-right","rtl"===ue.dir?ue.paddingLeft:null,"px"),t.AVh("ant-dropdown-menu-submenu-title",ue.isMenuInsideDropDown)("ant-menu-submenu-title",!ue.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],standalone:!0,features:[t.aNF],attrs:se,ngContentSelectors:he,decls:5,vars:3,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(Ge,ue){1&Ge&&(t.NAR(),t.DNE(0,Be,1,1,"span",0)(1,Pt,3,1,"ng-container",1),t.SdG(2),t.DNE(3,Le,3,1,"span",2)(4,zt,1,0,"span",3)),2&Ge&&(t.vxM(ue.nzIcon?0:-1),t.R7$(),t.Y8G("nzStringTemplateOutlet",ue.nzTitle),t.R7$(2),t.vxM(ue.isMenuInsideDropDown?3:4))},dependencies:[Y.Y3,Y.Dn,fe.C,fe.m],encapsulation:2,changeDetection:0})}return qt})();const et=[pe.pn.rightTop,pe.pn.right,pe.pn.rightBottom,pe.pn.leftTop,pe.pn.left,pe.pn.leftBottom],ht=[pe.pn.bottomLeft,pe.pn.bottomRight,pe.pn.topRight,pe.pn.topLeft];let Kt=(()=>{class qt{setOpenStateWithoutDebounce(Vt){this.nzSubmenuService.setOpenStateWithoutDebounce(Vt)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(Vt){this.isActive=Vt,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(Vt)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&"bottomLeft"===this.nzPlacement&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(Vt){const Ge=(0,pe.jj)(Vt);"rightTop"===Ge||"rightBottom"===Ge||"right"===Ge?this.position="right":("leftTop"===Ge||"leftBottom"===Ge||"left"===Ge)&&(this.position="left")}constructor(Vt,Ge,ue,q,ee,Xe,dt){this.nzMenuService=Vt,this.cdr=Ge,this.nzSubmenuService=ue,this.platform=q,this.isMenuInsideDropDown=ee,this.directionality=Xe,this.noAnimation=dt,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new t.bkB,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new s.B,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=et,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}ngOnInit(){this.nzMenuService.theme$.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.theme=Vt,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.mode=Vt,"horizontal"===Vt?this.overlayPositions=[pe.pn[this.nzPlacement],...ht]:"vertical"===Vt&&(this.overlayPositions=et),this.cdr.markForCheck()}),(0,M.z)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Vt,Ge])=>{this.inlinePaddingLeft="inline"===Vt?this.level*Ge:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.isActive=Vt,Vt!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=Vt,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.dir=Vt,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const Vt=this.listOfNzMenuItemDirective,Ge=Vt.changes,ue=(0,e.h)(Ge,...Vt.map(q=>q.selected$));Ge.pipe((0,X.Z)(Vt),(0,V.n)(()=>ue),(0,X.Z)(!0),(0,K.T)(()=>Vt.some(q=>q.nzSelected)),(0,F.Q)(this.destroy$)).subscribe(q=>{this.isSelected=q,this.cdr.markForCheck()})}ngOnChanges(Vt){const{nzOpen:Ge}=Vt;Ge&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(Ue),t.rXU(t.gRc),t.rXU(Fe),t.rXU(z.OD),t.rXU(St),t.rXU(J.dS,8),t.rXU(Oe.z,9))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu",""]],contentQueries:function(Ge,ue,q){if(1&Ge&&(t.wni(q,qt,5),t.wni(q,te,5)),2&Ge){let ee;t.mGM(ee=t.lsd())&&(ue.listOfNzSubMenuComponent=ee),t.mGM(ee=t.lsd())&&(ue.listOfNzMenuItemDirective=ee)}},viewQuery:function(Ge,ue){if(1&Ge&&t.GBs(Ee.$Q,7,t.aKT),2&Ge){let q;t.mGM(q=t.lsd())&&(ue.cdkOverlayOrigin=q.first)}},hostVars:34,hostBindings:function(Ge,ue){2&Ge&&t.AVh("ant-dropdown-menu-submenu",ue.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-dropdown-menu-submenu-open",ue.isMenuInsideDropDown&&ue.nzOpen)("ant-dropdown-menu-submenu-selected",ue.isMenuInsideDropDown&&ue.isSelected)("ant-dropdown-menu-submenu-vertical",ue.isMenuInsideDropDown&&"vertical"===ue.mode)("ant-dropdown-menu-submenu-horizontal",ue.isMenuInsideDropDown&&"horizontal"===ue.mode)("ant-dropdown-menu-submenu-inline",ue.isMenuInsideDropDown&&"inline"===ue.mode)("ant-dropdown-menu-submenu-active",ue.isMenuInsideDropDown&&ue.isActive)("ant-menu-submenu",!ue.isMenuInsideDropDown)("ant-menu-submenu-disabled",!ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-menu-submenu-open",!ue.isMenuInsideDropDown&&ue.nzOpen)("ant-menu-submenu-selected",!ue.isMenuInsideDropDown&&ue.isSelected)("ant-menu-submenu-vertical",!ue.isMenuInsideDropDown&&"vertical"===ue.mode)("ant-menu-submenu-horizontal",!ue.isMenuInsideDropDown&&"horizontal"===ue.mode)("ant-menu-submenu-inline",!ue.isMenuInsideDropDown&&"inline"===ue.mode)("ant-menu-submenu-active",!ue.isMenuInsideDropDown&&ue.isActive)("ant-menu-submenu-rtl","rtl"===ue.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:[2,"nzOpen","nzOpen",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],standalone:!0,features:[t.Jv_([Fe]),t.GFd,t.OA$,t.aNF],attrs:xt,ngContentSelectors:Ct,decls:7,vars:8,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation"]],template:function(Ge,ue){if(1&Ge){const q=t.RV6();t.NAR(st),t.j41(0,"div",2,0),t.bIt("subMenuMouseState",function(Xe){return t.eBV(q),t.Njj(ue.setMouseEnterState(Xe))})("toggleSubMenu",function(){return t.eBV(q),t.Njj(ue.toggleSubMenu())}),t.DNE(2,It,1,0),t.k0s(),t.DNE(3,Tt,1,6,"div",3)(4,Ut,1,5,null,4)(5,Lt,1,0,"ng-template",null,1,t.C5r)}2&Ge&&(t.Y8G("nzIcon",ue.nzIcon)("nzTitle",ue.nzTitle)("mode",ue.mode)("nzDisabled",ue.nzDisabled)("isMenuInsideDropDown",ue.isMenuInsideDropDown)("paddingLeft",ue.nzPaddingLeft||ue.inlinePaddingLeft),t.R7$(2),t.vxM(ue.nzTitle?-1:2),t.R7$(),t.vxM("inline"===ue.mode?3:4))},dependencies:[Pe,_e,Oe.z,ie,Ee.z_,Ee.WB,Ee.$Q],encapsulation:2,changeDetection:0})}return qt})();function cn(){const qt=(0,t.WQX)(Ue,{skipSelf:!0,optional:!0}),wn=(0,t.WQX)(Wt);return qt??wn}function Tn(){return(0,t.WQX)(St,{skipSelf:!0,optional:!0})??!1}let Wn=(()=>{class qt{setInlineCollapsed(Vt){this.nzInlineCollapsed=Vt,this.inlineCollapsed$.next(Vt)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(Vt=>Vt.nzOpen),this.listOfNzSubMenuComponent.forEach(Vt=>Vt.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(Vt=>Vt.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(Vt,Ge,ue,q){this.nzMenuService=Vt,this.isMenuInsideDropDown=Ge,this.cdr=ue,this.directionality=q,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new t.bkB,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new m.t(this.nzInlineCollapsed),this.mode$=new m.t(this.nzMode),this.destroy$=new s.B,this.listOfOpenedNzSubMenuComponent=[]}ngOnInit(){(0,M.z)([this.inlineCollapsed$,this.mode$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Vt,Ge])=>{this.actualMode=Vt?"vertical":Ge,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.nzClick.emit(Vt),this.nzSelectable&&!Vt.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(Ge=>Ge.setSelectedState(Ge===Vt))}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Vt=>{this.dir=Vt,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,F.Q)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(Vt){const{nzInlineCollapsed:Ge,nzInlineIndent:ue,nzTheme:q,nzMode:ee}=Vt;Ge&&this.inlineCollapsed$.next(this.nzInlineCollapsed),ue&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),q&&this.nzMenuService.setTheme(this.nzTheme),ee&&(this.mode$.next(this.nzMode),!Vt.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(Xe=>Xe.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(Ue),t.rXU(St),t.rXU(t.gRc),t.rXU(J.dS,8))};static#t=this.\u0275dir=t.FsC({type:qt,selectors:[["","nz-menu",""]],contentQueries:function(Ge,ue,q){if(1&Ge&&(t.wni(q,te,5),t.wni(q,Kt,5)),2&Ge){let ee;t.mGM(ee=t.lsd())&&(ue.listOfNzMenuItemDirective=ee),t.mGM(ee=t.lsd())&&(ue.listOfNzSubMenuComponent=ee)}},hostVars:34,hostBindings:function(Ge,ue){2&Ge&&t.AVh("ant-dropdown-menu",ue.isMenuInsideDropDown)("ant-dropdown-menu-root",ue.isMenuInsideDropDown)("ant-dropdown-menu-light",ue.isMenuInsideDropDown&&"light"===ue.nzTheme)("ant-dropdown-menu-dark",ue.isMenuInsideDropDown&&"dark"===ue.nzTheme)("ant-dropdown-menu-vertical",ue.isMenuInsideDropDown&&"vertical"===ue.actualMode)("ant-dropdown-menu-horizontal",ue.isMenuInsideDropDown&&"horizontal"===ue.actualMode)("ant-dropdown-menu-inline",ue.isMenuInsideDropDown&&"inline"===ue.actualMode)("ant-dropdown-menu-inline-collapsed",ue.isMenuInsideDropDown&&ue.nzInlineCollapsed)("ant-menu",!ue.isMenuInsideDropDown)("ant-menu-root",!ue.isMenuInsideDropDown)("ant-menu-light",!ue.isMenuInsideDropDown&&"light"===ue.nzTheme)("ant-menu-dark",!ue.isMenuInsideDropDown&&"dark"===ue.nzTheme)("ant-menu-vertical",!ue.isMenuInsideDropDown&&"vertical"===ue.actualMode)("ant-menu-horizontal",!ue.isMenuInsideDropDown&&"horizontal"===ue.actualMode)("ant-menu-inline",!ue.isMenuInsideDropDown&&"inline"===ue.actualMode)("ant-menu-inline-collapsed",!ue.isMenuInsideDropDown&&ue.nzInlineCollapsed)("ant-menu-rtl","rtl"===ue.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",t.L39],nzSelectable:[2,"nzSelectable","nzSelectable",t.L39]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],standalone:!0,features:[t.Jv_([{provide:Wt,useClass:Ue},{provide:Ue,useFactory:cn},{provide:St,useFactory:Tn}]),t.GFd,t.OA$]})}return qt})();function kn(){return(0,t.WQX)(St,{optional:!0,skipSelf:!0})??!1}let In=(()=>{class qt{constructor(Vt,Ge,ue){this.elementRef=Vt,this.renderer=Ge,this.isMenuInsideDropDown=ue,this.renderer.addClass(Vt.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const Vt=this.titleElement.nativeElement.nextElementSibling;Vt&&this.renderer.addClass(Vt,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(St))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-menu-group",""]],viewQuery:function(Ge,ue){if(1&Ge&&t.GBs(fn,5),2&Ge){let q;t.mGM(q=t.lsd())&&(ue.titleElement=q.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],standalone:!0,features:[t.Jv_([{provide:St,useFactory:kn}]),t.aNF],attrs:$n,ngContentSelectors:bt,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(Ge,ue){1&Ge&&(t.NAR(zn),t.j41(0,"div",null,0),t.DNE(2,At,2,1,"ng-container",1)(3,Et,1,0),t.k0s(),t.SdG(4)),2&Ge&&(t.AVh("ant-menu-item-group-title",!ue.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",ue.isMenuInsideDropDown),t.R7$(2),t.Y8G("nzStringTemplateOutlet",ue.nzTitle),t.R7$(),t.vxM(ue.nzTitle?-1:3))},dependencies:[fe.C,fe.m],encapsulation:2,changeDetection:0})}return qt})(),Un=(()=>{class qt{constructor(Vt){this.elementRef=Vt}static#e=this.\u0275fac=function(Ge){return new(Ge||qt)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:qt,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"],standalone:!0})}return qt})(),dn=(()=>{class qt{static#e=this.\u0275fac=function(Ge){return new(Ge||qt)};static#t=this.\u0275mod=t.$C({type:qt});static#n=this.\u0275inj=t.G2t({imports:[Kt,In,Pe]})}return qt})()},2096:(Rt,De,a)=>{a.d(De,{A9:()=>ee,F2:()=>at,N_:()=>q,U6:()=>Ot});var t=a(4523),s=a(7987),m=a(6939),e=a(3953),M=a(1413),K=a(3726),L=a(9030),j=a(6977),A=a(5964),I=a(6697),w=a(9172),F=a(3451),X=a(5463),V=a(317),x=a(177),oe=a(513),J=a(7806),Ee=a(5103),Oe=a(3384),pe=a(9969),Ie=a(4500),ve=a(851),fe=a(6042),Y=a(1377),z=a(6389),Z=a(5930),he=a(1391),E=a(7336),S=a(8203);const R=["nz-modal-close",""];function U(be,Je){if(1&be&&(e.qex(0),e.nrm(1,"span",2),e.bVm()),2&be){const re=Je.$implicit;e.R7$(),e.Y8G("nzType",re)}}const se=["modalElement"];function Be(be,Je){if(1&be){const re=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(re);const mt=e.XpG();return e.Njj(mt.onCloseClick())}),e.k0s()}}function Pt(be,Je){if(1&be&&(e.qex(0),e.nrm(1,"span",12),e.bVm()),2&be){const re=e.XpG();e.R7$(),e.Y8G("innerHTML",re.config.nzTitle,e.npT)}}function gt(be,Je){}function wt(be,Je){if(1&be&&e.nrm(0,"div",12),2&be){const re=e.XpG();e.Y8G("innerHTML",re.config.nzContent,e.npT)}}function Le(be,Je){if(1&be){const re=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(re);const mt=e.XpG();return e.Njj(mt.onCancel())}),e.EFF(1),e.k0s()}if(2&be){const re=e.XpG();e.Y8G("nzLoading",re.config.nzCancelLoading)("disabled",re.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzCancelText||re.locale.cancelText," ")}}function zt(be,Je){if(1&be){const re=e.RV6();e.j41(0,"button",18),e.bIt("click",function(){e.eBV(re);const mt=e.XpG();return e.Njj(mt.onOk())}),e.EFF(1),e.k0s()}if(2&be){const re=e.XpG();e.Y8G("nzType",re.config.nzOkType)("nzLoading",re.config.nzOkLoading)("disabled",re.config.nzOkDisabled)("nzDanger",re.config.nzOkDanger),e.BMQ("cdkFocusInitial","ok"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzOkText||re.locale.okText," ")}}const xt=["nz-modal-footer",""],st=(be,Je)=>({$implicit:be,modalRef:Je});function Ct(be,Je){if(1&be){const re=e.RV6();e.j41(0,"button",3),e.bIt("click",function(){const mt=e.eBV(re).$implicit,Ke=e.XpG(4);return e.Njj(Ke.onButtonClick(mt))}),e.EFF(1),e.k0s()}if(2&be){const re=Je.$implicit,ze=e.XpG(4);e.Y8G("hidden",!ze.getButtonCallableProp(re,"show"))("nzLoading",ze.getButtonCallableProp(re,"loading"))("disabled",ze.getButtonCallableProp(re,"disabled"))("nzType",re.type)("nzDanger",re.danger)("nzShape",re.shape)("nzSize",re.size)("nzGhost",re.ghost),e.R7$(),e.SpI(" ",re.label," ")}}function It(be,Je){if(1&be&&e.Z7z(0,Ct,2,9,"button",2,e.fX1),2&be){const re=e.XpG(3);e.Dyx(re.buttons)}}function Tt(be,Je){if(1&be&&e.nrm(0,"div",1),2&be){const re=e.XpG(3);e.Y8G("innerHTML",re.config.nzFooter,e.npT)}}function en(be,Je){if(1&be&&(e.qex(0),e.DNE(1,It,2,0)(2,Tt,1,1,"div",1),e.bVm()),2&be){const re=e.XpG(2);e.R7$(),e.vxM(re.buttonsFooter?1:2)}}function Ut(be,Je){if(1&be&&e.DNE(0,en,3,1,"ng-container",0),2&be){const re=e.XpG();e.Y8G("nzStringTemplateOutlet",re.config.nzFooter)("nzStringTemplateOutletContext",e.l_i(2,st,re.config.nzData,re.modalRef))}}function Lt(be,Je){if(1&be){const re=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(re);const mt=e.XpG(2);return e.Njj(mt.onCancel())}),e.EFF(1),e.k0s()}if(2&be){const re=e.XpG(2);e.Y8G("nzLoading",re.config.nzCancelLoading)("disabled",re.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzCancelText||re.locale.cancelText," ")}}function fn(be,Je){if(1&be){const re=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(re);const mt=e.XpG(2);return e.Njj(mt.onOk())}),e.EFF(1),e.k0s()}if(2&be){const re=e.XpG(2);e.Y8G("nzType",re.config.nzOkType)("nzDanger",re.config.nzOkDanger)("nzLoading",re.config.nzOkLoading)("disabled",re.config.nzOkDisabled),e.BMQ("cdkFocusInitial","ok"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzOkText||re.locale.okText," ")}}function $n(be,Je){if(1&be&&e.DNE(0,Lt,2,4,"button",4)(1,fn,2,6,"button",5),2&be){const re=e.XpG();e.vxM(null!==re.config.nzCancelText?0:-1),e.R7$(),e.vxM(null!==re.config.nzOkText?1:-1)}}const zn=["nz-modal-title",""];function bt(be,Je){if(1&be&&(e.qex(0),e.nrm(1,"div",2),e.bVm()),2&be){const re=e.XpG();e.R7$(),e.Y8G("innerHTML",re.config.nzTitle,e.npT)}}function At(be,Je){if(1&be){const re=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(re);const mt=e.XpG();return e.Njj(mt.onCloseClick())}),e.k0s()}}function Et(be,Je){if(1&be&&e.nrm(0,"div",10),2&be){const re=e.XpG();e.xc7("cursor",re.config.nzDraggable?"move":"auto")}}function St(be,Je){}function Wt(be,Je){if(1&be&&e.nrm(0,"div",7),2&be){const re=e.XpG();e.Y8G("innerHTML",re.config.nzContent,e.npT)}}function Ue(be,Je){if(1&be){const re=e.RV6();e.j41(0,"div",11),e.bIt("cancelTriggered",function(){e.eBV(re);const mt=e.XpG();return e.Njj(mt.onCloseClick())})("okTriggered",function(){e.eBV(re);const mt=e.XpG();return e.Njj(mt.onOkClick())}),e.k0s()}if(2&be){const re=e.XpG();e.Y8G("modalRef",re.modalRef)}}const Fe=()=>{};class te{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzDraggable=!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=Fe,this.nzOnOk=Fe,this.nzIconType="question-circle"}}const Pe="ant-modal-mask",et="modal",ht=new e.nKC("NZ_MODAL_DATA"),Kt={modalContainer:(0,pe.hZ)("modalContainer",[(0,pe.wk)("void, exit",(0,pe.iF)({})),(0,pe.wk)("enter",(0,pe.iF)({})),(0,pe.kY)("* => enter",(0,pe.i0)(".24s",(0,pe.iF)({}))),(0,pe.kY)("* => void, * => exit",(0,pe.i0)(".2s",(0,pe.iF)({})))])};let cn=(()=>{class be{constructor(re){this.config=re}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(te))};static#t=this.\u0275cmp=e.VBU({type:be,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],standalone:!0,features:[e.aNF],attrs:R,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(ze,mt){1&ze&&(e.j41(0,"span",0),e.DNE(1,U,2,1,"ng-container",1),e.k0s()),2&ze&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",mt.config.nzCloseIcon))},dependencies:[Ee.Y3,Ee.Dn,J.C,J.m],encapsulation:2,changeDetection:0})}return be})();function Wn(be,Je,re){return typeof be>"u"?typeof Je>"u"?re:Je:be}function kn(be){const{nzCentered:Je,nzMask:re,nzMaskClosable:ze,nzClosable:mt,nzOkLoading:Ke,nzOkDisabled:xe,nzCancelDisabled:Re,nzCancelLoading:B,nzKeyboard:ce,nzNoAnimation:N,nzDraggable:ke,nzContent:ge,nzFooter:W,nzZIndex:H,nzWidth:me,nzWrapClassName:qe,nzClassName:rt,nzStyle:Ft,nzTitle:rn,nzCloseIcon:Cn,nzMaskStyle:Jn,nzBodyStyle:jn,nzOkText:Gn,nzCancelText:zi,nzOkType:Oi,nzOkDanger:po,nzIconType:Zi,nzModalType:Vo,nzOnOk:Co,nzOnCancel:zr,nzAfterOpen:rr,nzAfterClose:lt,nzCloseOnNavigation:Ht,nzAutofocus:$t}=be;return{nzCentered:Je,nzMask:re,nzMaskClosable:ze,nzDraggable:ke,nzClosable:mt,nzOkLoading:Ke,nzOkDisabled:xe,nzCancelDisabled:Re,nzCancelLoading:B,nzKeyboard:ce,nzNoAnimation:N,nzContent:ge,nzFooter:W,nzZIndex:H,nzWidth:me,nzWrapClassName:qe,nzClassName:rt,nzStyle:Ft,nzTitle:rn,nzCloseIcon:Cn,nzMaskStyle:Jn,nzBodyStyle:jn,nzOkText:Gn,nzCancelText:zi,nzOkType:Oi,nzOkDanger:po,nzIconType:Zi,nzModalType:Vo,nzOnOk:Co,nzOnCancel:zr,nzAfterOpen:rr,nzAfterClose:lt,nzCloseOnNavigation:Ht,nzAutofocus:$t}}function In(){throw Error("Attempting to attach modal content after content is already attached")}let Un=(()=>{class be extends m.lb{get showMask(){const re=this.nzConfigService.getConfigForComponent(et)||{};return!!Wn(this.config.nzMask,re.nzMask,!0)}get maskClosable(){const re=this.nzConfigService.getConfigForComponent(et)||{};return!!Wn(this.config.nzMaskClosable,re.nzMaskClosable,!0)}constructor(re,ze,mt,Ke,xe,Re,B,ce,N,ke){super(),this.ngZone=re,this.host=ze,this.focusTrapFactory=mt,this.cdr=Ke,this.render=xe,this.overlayRef=Re,this.nzConfigService=B,this.config=ce,this.animationType=ke,this.animationStateChanged=new e.bkB,this.containerClick=new e.bkB,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new M.B,this.document=N,this.dir=Re.getDirection(),this.isStringContent="string"==typeof ce.nzContent,this.nzConfigService.getConfigChangeEventForComponent(et).pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}onContainerClick(re){re.target===re.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(re){return this.portalOutlet.hasAttached()&&In(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(re)}attachTemplatePortal(re){return this.portalOutlet.hasAttached()&&In(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(re)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const re=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const ze=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),mt=(0,V.Mk)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(re,"transform-origin",`${mt.left+ze.width/2-re.offsetLeft}px ${mt.top+ze.height/2-re.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,Ie.j)(()=>this.host.nativeElement.focus())))}trapFocus(){const re=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const ze=this.document.activeElement;ze!==re&&!re.contains(ze)&&re.focus()}}restoreFocus(){const re=this.elementFocusedBeforeModalWasOpened;if(re&&"function"==typeof re.focus){const ze=this.document.activeElement,mt=this.host.nativeElement;(!ze||ze===this.document.body||ze===mt||mt.contains(ze))&&re.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const re=this.modalElementRef.nativeElement,ze=this.overlayRef.backdropElement;re.classList.add("ant-zoom-enter"),re.classList.add("ant-zoom-enter-active"),ze&&(ze.classList.add("ant-fade-enter"),ze.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const re=this.modalElementRef.nativeElement;re.classList.add("ant-zoom-leave"),re.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(re=!1){const ze=this.overlayRef.backdropElement;if(ze){if(this.animationDisabled()||re)return void ze.classList.remove(Pe);ze.classList.add("ant-fade-leave"),ze.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const re=this.overlayRef.backdropElement,ze=this.modalElementRef.nativeElement;re&&(re.classList.remove("ant-fade-enter"),re.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 re=this.overlayRef.backdropElement;re&&(0,V.n9)(this.config.nzZIndex)&&this.render.setStyle(re,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const re=this.overlayRef.backdropElement;if(re&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(mt=>{this.render.removeStyle(re,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(re,mt,ze[mt])}),this.oldMaskStyle=ze}}updateMaskClassname(){const re=this.overlayRef.backdropElement;re&&(this.showMask?re.classList.add(Pe):re.classList.remove(Pe))}onAnimationDone(re){"enter"===re.toState?this.trapFocus():"exit"===re.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(re)}onAnimationStart(re){"enter"===re.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===re.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(re)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(!0),this.destroy$.complete()}setupMouseListeners(re){this.ngZone.runOutsideAngular(()=>{(0,K.R)(this.host.nativeElement,"mouseup").pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,K.R)(re.nativeElement,"mousedown").pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}static#e=this.\u0275fac=function(ze){e.QTQ()};static#t=this.\u0275dir=e.FsC({type:be,features:[e.Vt3]})}return be})(),dn=(()=>{class be extends Un{constructor(re,ze,mt,Ke,xe,Re,B,ce,N,ke,ge){super(re,mt,Ke,xe,Re,B,ce,N,ke,ge),this.i18n=ze,this.config=N,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.i18n.localeChange.pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(e.SKi),e.rXU(Y.Og),e.rXU(e.aKT),e.rXU(ve.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(s.yY),e.rXU(fe.yx),e.rXU(te),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:be,selectors:[["nz-modal-confirm-container"]],viewQuery:function(ze,mt){if(1&ze&&(e.GBs(m.I3,7),e.GBs(se,7)),2&ze){let Ke;e.mGM(Ke=e.lsd())&&(mt.portalOutlet=Ke.first),e.mGM(Ke=e.lsd())&&(mt.modalElementRef=Ke.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ze,mt){1&ze&&(e.Kam("@modalContainer.start",function(xe){return mt.onAnimationStart(xe)})("@modalContainer.done",function(xe){return mt.onAnimationDone(xe)}),e.bIt("click",function(xe){return mt.onContainerClick(xe)})),2&ze&&(e.zvX("@.disabled",mt.config.nzNoAnimation)("@modalContainer",mt.state),e.HbH(mt.config.nzWrapClassName?"ant-modal-wrap "+mt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",mt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===mt.dir)("ant-modal-centered",mt.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:17,vars:13,consts:[["modalElement",""],["role","document",1,"ant-modal",3,"ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],[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"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(ze,mt){1&ze&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,Be,1,0,"button",3),e.j41(5,"div",4)(6,"div",5)(7,"div",6),e.nrm(8,"span",7),e.j41(9,"span",8),e.DNE(10,Pt,2,1,"ng-container",9),e.k0s(),e.j41(11,"div",10),e.DNE(12,gt,0,0,"ng-template",11)(13,wt,1,1,"div",12),e.k0s()(),e.j41(14,"div",13),e.DNE(15,Le,2,4,"button",14)(16,zt,2,6,"button",15),e.k0s()()()()()),2&ze&&(e.xc7("width",e.bMT(2,11,null==mt.config?null:mt.config.nzWidth)),e.Y8G("ngClass",mt.config.nzClassName)("ngStyle",mt.config.nzStyle),e.R7$(4),e.vxM(mt.config.nzClosable?4:-1),e.R7$(),e.Y8G("ngStyle",mt.config.nzBodyStyle),e.R7$(3),e.Y8G("nzType",mt.config.nzIconType),e.R7$(2),e.Y8G("nzStringTemplateOutlet",mt.config.nzTitle),e.R7$(3),e.vxM(mt.isStringContent?13:-1),e.R7$(2),e.vxM(null!==mt.config.nzCancelText?15:-1),e.R7$(),e.vxM(null!==mt.config.nzOkText?16:-1))},dependencies:[x.YU,x.B3,Oe.Qe,Oe.Zu,Ee.Y3,Ee.Dn,cn,J.C,J.m,m.jc,m.I3,oe.Zw,oe.aO,z.c,Z.p],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return be})(),qt=(()=>{class be{constructor(re,ze){this.i18n=re,this.config=ze,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.destroy$=new M.B,Array.isArray(ze.nzFooter)&&(this.buttonsFooter=!0,this.buttons=ze.nzFooter.map(wn)),this.i18n.localeChange.pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(re,ze){const mt=re[ze],Ke=this.modalRef.getContentComponent();return"function"==typeof mt?mt.apply(re,Ke&&[Ke]):mt}onButtonClick(re){if(!this.getButtonCallableProp(re,"loading")){const mt=this.getButtonCallableProp(re,"onClick");re.autoLoading&&(0,V.yL)(mt)&&(re.loading=!0,mt.then(()=>re.loading=!1).catch(Ke=>{throw re.loading=!1,Ke}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(Y.Og),e.rXU(te))};static#t=this.\u0275cmp=e.VBU({type:be,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],standalone:!0,features:[e.aNF],attrs:xt,decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(ze,mt){1&ze&&e.DNE(0,Ut,1,5,"ng-container")(1,$n,2,2),2&ze&&e.vxM(mt.config.nzFooter?0:1)},dependencies:[J.C,J.m,oe.Zw,oe.aO,z.c,Z.p],encapsulation:2})}return be})();function wn(be){return{type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1,...be}}let Vt=(()=>{class be{constructor(re){this.config=re}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(te))};static#t=this.\u0275cmp=e.VBU({type:be,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],standalone:!0,features:[e.aNF],attrs:zn,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(ze,mt){1&ze&&(e.j41(0,"div",0),e.DNE(1,bt,2,1,"ng-container",1),e.k0s()),2&ze&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",mt.config.nzTitle))},dependencies:[J.C,J.m],encapsulation:2,changeDetection:0})}return be})(),Ge=(()=>{class be extends Un{constructor(re,ze,mt,Ke,xe,Re,B,ce,N,ke){super(re,ze,mt,Ke,xe,Re,B,ce,N,ke),this.config=ce}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(ve.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(s.yY),e.rXU(fe.yx),e.rXU(te),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:be,selectors:[["nz-modal-container"]],viewQuery:function(ze,mt){if(1&ze&&(e.GBs(m.I3,7),e.GBs(se,7)),2&ze){let Ke;e.mGM(Ke=e.lsd())&&(mt.portalOutlet=Ke.first),e.mGM(Ke=e.lsd())&&(mt.modalElementRef=Ke.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ze,mt){1&ze&&(e.Kam("@modalContainer.start",function(xe){return mt.onAnimationStart(xe)})("@modalContainer.done",function(xe){return mt.onAnimationDone(xe)}),e.bIt("click",function(xe){return mt.onContainerClick(xe)})),2&ze&&(e.zvX("@.disabled",mt.config.nzNoAnimation)("@modalContainer",mt.state),e.HbH(mt.config.nzWrapClassName?"ant-modal-wrap "+mt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",mt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===mt.dir)("ant-modal-centered",mt.config.nzCentered))},exportAs:["nzModalContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:10,vars:12,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragDisabled","ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(ze,mt){1&ze&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,At,1,0,"button",3)(5,Et,1,2,"div",4),e.j41(6,"div",5),e.DNE(7,St,0,0,"ng-template",6)(8,Wt,1,1,"div",7),e.k0s(),e.DNE(9,Ue,1,1,"div",8),e.k0s()()),2&ze&&(e.xc7("width",e.bMT(2,10,null==mt.config?null:mt.config.nzWidth)),e.Y8G("cdkDragDisabled",!mt.config.nzDraggable)("ngClass",mt.config.nzClassName)("ngStyle",mt.config.nzStyle),e.R7$(4),e.vxM(mt.config.nzClosable?4:-1),e.R7$(),e.vxM(mt.config.nzTitle?5:-1),e.R7$(),e.Y8G("ngStyle",mt.config.nzBodyStyle),e.R7$(2),e.vxM(mt.isStringContent?8:-1),e.R7$(),e.vxM(null!==mt.config.nzFooter?9:-1))},dependencies:[x.YU,x.B3,cn,Vt,m.jc,m.I3,qt,Oe.Qe,Oe.Zu,he.T1,he.Fb],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return be})();class ue{constructor(Je,re,ze){this.overlayRef=Je,this.config=re,this.containerInstance=ze,this.componentInstance=null,this.componentRef=null,this.state=0,this.afterClose=new M.B,this.afterOpen=new M.B,this.destroy$=new M.B,ze.animationStateChanged.pipe((0,A.p)(mt=>"done"===mt.phaseName&&"enter"===mt.toState),(0,I.s)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),re.nzAfterOpen instanceof e.bkB&&re.nzAfterOpen.emit()}),ze.animationStateChanged.pipe((0,A.p)(mt=>"done"===mt.phaseName&&"exit"===mt.toState),(0,I.s)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),ze.containerClick.pipe((0,j.Q)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),Je.keydownEvents().pipe((0,A.p)(mt=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&mt.keyCode===E._f&&!(0,E.rp)(mt))).subscribe(mt=>{mt.preventDefault(),this.trigger("cancel")}),ze.cancelTriggered.pipe((0,j.Q)(this.destroy$)).subscribe(()=>this.trigger("cancel")),ze.okTriggered.pipe((0,j.Q)(this.destroy$)).subscribe(()=>this.trigger("ok")),Je.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),re.nzAfterClose instanceof e.bkB&&re.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(Je){this.close(Je)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(Je){0===this.state&&(this.result=Je,this.containerInstance.animationStateChanged.pipe((0,A.p)(re=>"start"===re.phaseName),(0,I.s)(1)).subscribe(re=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},re.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(Je){Object.assign(this.config,Je),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(Je){var re=this;return(0,t.A)(function*(){if(1===re.state)return;const ze={ok:re.config.nzOnOk,cancel:re.config.nzOnCancel}[Je],mt={ok:"nzOkLoading",cancel:"nzCancelLoading"}[Je];if(!re.config[mt])if(ze instanceof e.bkB)ze.emit(re.getContentComponent());else if("function"==typeof ze){const xe=ze(re.getContentComponent());if((0,V.yL)(xe)){re.config[mt]=!0;let Re=!1;try{Re=yield xe}finally{re.config[mt]=!1,re.closeWhitResult(Re)}}else re.closeWhitResult(xe)}})()}closeWhitResult(Je){!1!==Je&&this.close(Je)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let q=(()=>{class be{get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const re=this.parentModal;return re?re._afterAllClosed:this.afterAllClosedAtThisLevel}constructor(re,ze,mt,Ke,xe){this.overlay=re,this.injector=ze,this.nzConfigService=mt,this.parentModal=Ke,this.directionality=xe,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new M.B,this.afterAllClose=(0,L.v)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,w.Z)(void 0)))}create(re){return this.open(re.nzContent,re)}closeAll(){this.closeModals(this.openModals)}confirm(re={},ze="confirm"){return"nzFooter"in re&&(0,F.R8)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in re||(re.nzWidth=416),"nzMaskClosable"in re||(re.nzMaskClosable=!1),re.nzModalType="confirm",re.nzClassName=`ant-modal-confirm ant-modal-confirm-${ze} ${re.nzClassName||""}`,this.create(re)}info(re={}){return this.confirmFactory(re,"info")}success(re={}){return this.confirmFactory(re,"success")}error(re={}){return this.confirmFactory(re,"error")}warning(re={}){return this.confirmFactory(re,"warning")}open(re,ze){const mt=function Tn(be,Je){return{...Je,...be}}(ze||{},new te),Ke=this.createOverlay(mt),xe=this.attachModalContainer(Ke,mt),Re=this.attachModalContent(re,xe,Ke,mt);return xe.modalRef=Re,(0,X.G5)(Ke,ze?.nzZIndex),this.openModals.push(Re),Re.afterClose.subscribe(()=>this.removeOpenModal(Re)),Re}removeOpenModal(re){const ze=this.openModals.indexOf(re);ze>-1&&(this.openModals.splice(ze,1),this.openModals.length||this._afterAllClosed.next())}closeModals(re){let ze=re.length;for(;ze--;)re[ze].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(re){const ze=this.nzConfigService.getConfigForComponent(et)||{},mt=new s.rR({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Wn(re.nzCloseOnNavigation,ze.nzCloseOnNavigation,!0),direction:Wn(re.nzDirection,ze.nzDirection,this.directionality.value)});return Wn(re.nzMask,ze.nzMask,!0)&&(mt.backdropClass=Pe),this.overlay.create(mt)}attachModalContainer(re,ze){const Ke=e.zZn.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:s.yY,useValue:re},{provide:te,useValue:ze}]}),Re=new m.A8("confirm"===ze.nzModalType?dn:Ge,ze.nzViewContainerRef,Ke);return re.attach(Re).instance}attachModalContent(re,ze,mt,Ke){const xe=new ue(mt,Ke,ze);if(re instanceof e.C4Q)ze.attachTemplatePortal(new m.VA(re,null,{$implicit:Ke.nzData,modalRef:xe}));else if((0,V.n9)(re)&&"string"!=typeof re){const Re=this.createInjector(xe,Ke),B=ze.attachComponentPortal(new m.A8(re,Ke.nzViewContainerRef,Re));xe.componentRef=B,xe.componentInstance=B.instance}else ze.attachStringContent();return xe}createInjector(re,ze){return e.zZn.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:ue,useValue:re},{provide:ht,useValue:ze.nzData}]})}confirmFactory(re={},ze){return"nzIconType"in re||(re.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[ze]),"nzCancelText"in re||(re.nzCancelText=null),this.confirm(re,ze)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.KVO(s.hJ),e.KVO(e.zZn),e.KVO(fe.yx),e.KVO(be,12),e.KVO(S.dS,8))};static#t=this.\u0275prov=e.jDH({token:be,factory:be.\u0275fac})}return be})(),ee=(()=>{class be{constructor(re){this.templateRef=re}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:be,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"],standalone:!0})}return be})(),Xe=(()=>{class be{constructor(re,ze){this.nzModalRef=re,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(ue,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:be,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"],standalone:!0})}return be})(),dt=(()=>{class be{constructor(re,ze){this.nzModalRef=re,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(ue,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:be,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"],standalone:!0})}return be})(),at=(()=>{class be{set modalTitle(re){re&&this.setTitleWithTemplate(re)}set modalFooter(re){re&&this.setFooterWithTemplate(re)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(re,ze,mt){this.cdr=re,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.nzDraggable=!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 e.bkB,this.nzOnCancel=new e.bkB,this.nzAfterOpen=new e.bkB,this.nzAfterClose=new e.bkB,this.nzVisibleChange=new e.bkB,this.modalRef=null,this.destroy$=new M.B}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const re=this.getConfig();this.modalRef=this.modal.create(re),this.modalRef.afterClose.asObservable().pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.close()})}}close(re){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(re),this.modalRef=null)}destroy(re){this.close(re)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(re){this.nzTitle=re,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(re){this.nzFooter=re,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const re=kn(this);return re.nzViewContainerRef=this.viewContainerRef,re.nzContent=this.nzContent||this.contentFromContentChild,re}ngOnChanges(re){const{nzVisible:ze,...mt}=re;Object.keys(mt).length&&this.modalRef&&this.modalRef.updateConfig(kn(this)),ze&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){this.modalRef?._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||be)(e.rXU(e.gRc),e.rXU(q),e.rXU(e.c1b))};static#t=this.\u0275cmp=e.VBU({type:be,selectors:[["nz-modal"]],contentQueries:function(ze,mt,Ke){if(1&ze&&(e.wni(Ke,dt,7,e.C4Q),e.wni(Ke,ee,7,e.C4Q),e.wni(Ke,Xe,7,e.C4Q)),2&ze){let xe;e.mGM(xe=e.lsd())&&(mt.modalTitle=xe.first),e.mGM(xe=e.lsd())&&(mt.contentFromContentChild=xe.first),e.mGM(xe=e.lsd())&&(mt.modalFooter=xe.first)}},inputs:{nzMask:[2,"nzMask","nzMask",e.L39],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",e.L39],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzClosable:[2,"nzClosable","nzClosable",e.L39],nzOkLoading:[2,"nzOkLoading","nzOkLoading",e.L39],nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",e.L39],nzCancelDisabled:[2,"nzCancelDisabled","nzCancelDisabled",e.L39],nzCancelLoading:[2,"nzCancelLoading","nzCancelLoading",e.L39],nzKeyboard:[2,"nzKeyboard","nzKeyboard",e.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",e.L39],nzCentered:[2,"nzCentered","nzCentered",e.L39],nzDraggable:[2,"nzDraggable","nzDraggable",e.L39],nzContent:"nzContent",nzFooter:"nzFooter",nzZIndex:[2,"nzZIndex","nzZIndex",e.Udg],nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:[2,"nzOkDanger","nzOkDanger",e.L39],nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],standalone:!0,features:[e.GFd,e.OA$,e.aNF],decls:0,vars:0,template:function(ze,mt){},encapsulation:2,changeDetection:0})}return be})(),Ot=(()=>{class be{static#e=this.\u0275fac=function(ze){return new(ze||be)};static#t=this.\u0275mod=e.$C({type:be});static#n=this.\u0275inj=e.G2t({providers:[q],imports:[cn,qt,Vt,Ge,dn]})}return be})()},3384:(Rt,De,a)=>{a.d(De,{Qe:()=>F,Zu:()=>K,ec:()=>A});var t=a(3953),s=a(317),m=a(345);class M{static#e=this.formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(V,x=0,oe="B",J){if(!((0,s.BV)(V)&&(0,s.BV)(x)&&x%1==0&&x>=0))return V;let Ee=V,Oe=oe;for(;"B"!==Oe;)Ee*=1024,Oe=M.formats[Oe].prev;if(J){const Ie=(0,s.nI)(M.calculateResult(M.formats[J],Ee),x);return M.formatResult(Ie,J)}for(const pe in M.formats)if(M.formats.hasOwnProperty(pe)){const Ie=M.formats[pe];if(Ee{class X{transform(x,oe="px"){return"number"==typeof x?`${x}${oe}`:x}static#e=this.\u0275fac=function(oe){return new(oe||X)};static#t=this.\u0275pipe=t.EJ8({name:"nzToCssUnit",type:X,pure:!0,standalone:!0})}return X})(),A=(()=>{class X{constructor(x){this.sanitizer=x}transform(x,oe="html"){switch(oe){case"html":return this.sanitizer.bypassSecurityTrustHtml(x);case"style":return this.sanitizer.bypassSecurityTrustStyle(x);case"url":return this.sanitizer.bypassSecurityTrustUrl(x);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(x);default:throw new Error("Invalid safe type specified")}}static#e=this.\u0275fac=function(oe){return new(oe||X)(t.rXU(m.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzSanitizer",type:X,pure:!0,standalone:!0})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(oe){return new(oe||X)};static#t=this.\u0275mod=t.$C({type:X});static#n=this.\u0275inj=t.G2t({})}return X})()},1236:(Rt,De,a)=>{a.d(De,{L_:()=>J,MC:()=>Oe});var t=a(4707),s=a(7987),m=a(177),e=a(3953),M=a(713),K=a(6042),L=a(6841),j=a(7806),A=a(5463),I=a(5154),w=a(8203);function F(pe,Ie){if(1&pe&&(e.qex(0),e.EFF(1),e.bVm()),2&pe){const ve=e.XpG(3);e.R7$(),e.JRh(ve.nzTitle)}}function X(pe,Ie){if(1&pe&&(e.j41(0,"div",7),e.DNE(1,F,2,1,"ng-container",9),e.k0s()),2&pe){const ve=e.XpG(2);e.R7$(),e.Y8G("nzStringTemplateOutlet",ve.nzTitle)}}function V(pe,Ie){if(1&pe&&(e.qex(0),e.EFF(1),e.bVm()),2&pe){const ve=e.XpG(2);e.R7$(),e.JRh(ve.nzContent)}}function x(pe,Ie){if(1&pe&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.nrm(3,"span",5),e.k0s(),e.j41(4,"div",6)(5,"div"),e.DNE(6,X,2,1,"div",7),e.j41(7,"div",8),e.DNE(8,V,2,1,"ng-container",9),e.k0s()()()()()),2&pe){const ve=e.XpG();e.AVh("ant-popover-rtl","rtl"===ve.dir),e.Y8G("ngClass",ve._classMap)("ngStyle",ve.nzOverlayStyle)("@.disabled",!(null==ve.noAnimation||!ve.noAnimation.nzNoAnimation))("nzNoAnimation",null==ve.noAnimation?null:ve.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),e.R7$(6),e.vxM(ve.nzTitle?6:-1),e.R7$(2),e.Y8G("nzStringTemplateOutlet",ve.nzContent)}}let J=(()=>{class pe extends I.ME{getProxyPropertyMap(){return{nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop],...super.getProxyPropertyMap()}}constructor(){super(Ee),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new e.bkB}static#e=this.\u0275fac=function(fe){return new(fe||pe)};static#t=this.\u0275dir=e.FsC({type:pe,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(fe,Y){2&fe&&e.AVh("ant-popover-open",Y.visible)},inputs:{arrowPointAtCenter:[2,"nzPopoverArrowPointAtCenter","arrowPointAtCenter",e.L39],title:[0,"nzPopoverTitle","title"],content:[0,"nzPopoverContent","content"],directiveTitle:[0,"nz-popover","directiveTitle"],trigger:[0,"nzPopoverTrigger","trigger"],placement:[0,"nzPopoverPlacement","placement"],origin:[0,"nzPopoverOrigin","origin"],visible:[0,"nzPopoverVisible","visible"],mouseEnterDelay:[0,"nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopoverOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],standalone:!0,features:[e.GFd,e.Vt3]})}return(0,t.Cg)([(0,K.H4)()],pe.prototype,"nzPopoverBackdrop",void 0),pe})(),Ee=(()=>{class pe extends I.VJ{constructor(ve,fe,Y){super(ve,fe,Y),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,I.t)(this.nzTitle)&&(0,I.t)(this.nzContent)}static#e=this.\u0275fac=function(fe){return new(fe||pe)(e.rXU(e.gRc),e.rXU(w.dS,8),e.rXU(L.z,9))};static#t=this.\u0275cmp=e.VBU({type:pe,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],standalone:!0,features:[e.Vt3,e.aNF],decls:2,vars:6,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[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"],[1,"ant-popover-title"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"]],template:function(fe,Y){if(1&fe){const z=e.RV6();e.DNE(0,x,9,9,"ng-template",1,0,e.C5r),e.bIt("overlayOutsideClick",function(he){return e.eBV(z),e.Njj(Y.onClickOutside(he))})("detach",function(){return e.eBV(z),e.Njj(Y.hide())})("positionChange",function(he){return e.eBV(z),e.Njj(Y.onPositionChange(he))})}2&fe&&e.Y8G("cdkConnectedOverlayHasBackdrop",Y.hasBackdrop)("cdkConnectedOverlayOrigin",Y.origin)("cdkConnectedOverlayPositions",Y._positions)("cdkConnectedOverlayOpen",Y._visible)("cdkConnectedOverlayPush",Y.cdkConnectedOverlayPush)("nzArrowPointAtCenter",Y.nzArrowPointAtCenter)},dependencies:[s.z_,s.WB,A.$_,A.vT,m.YU,m.B3,L.z,j.C,j.m],encapsulation:2,data:{animation:[M.uX]},changeDetection:0})}return pe})(),Oe=(()=>{class pe{static#e=this.\u0275fac=function(fe){return new(fe||pe)};static#t=this.\u0275mod=e.$C({type:pe});static#n=this.\u0275inj=e.G2t({imports:[Ee]})}return pe})()},3190:(Rt,De,a)=>{a.d(De,{Sw:()=>oe,i3:()=>V,lx:()=>x});var t=a(3953),s=a(9417),m=a(2771),e=a(1413),M=a(3726),K=a(6977),L=a(8203),j=a(851),A=a(7891);const I=["*"],w=["inputElement"],F=["nz-radio",""];let X=(()=>{class J{constructor(){this.selected$=new m.m(1),this.touched$=new e.B,this.disabled$=new m.m(1),this.name$=new m.m(1)}touch(){this.touched$.next()}select(Oe){this.selected$.next(Oe)}setDisabled(Oe){this.disabled$.next(Oe)}setName(Oe){this.name$.next(Oe)}static#e=this.\u0275fac=function(pe){return new(pe||J)};static#t=this.\u0275prov=t.jDH({token:J,factory:J.\u0275fac})}return J})(),V=(()=>{class J{constructor(Oe,pe,Ie){this.cdr=Oe,this.nzRadioService=pe,this.directionality=Ie,this.value=null,this.destroy$=new e.B,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,K.Q)(this.destroy$)).subscribe(Oe=>{this.value!==Oe&&(this.value=Oe,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,K.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,K.Q)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(Oe){const{nzDisabled:pe,nzName:Ie}=Oe;pe&&this.nzRadioService.setDisabled(this.nzDisabled),Ie&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(Oe){this.value=Oe,this.nzRadioService.select(Oe),this.cdr.markForCheck()}registerOnChange(Oe){this.onChange=Oe}registerOnTouched(Oe){this.onTouched=Oe}setDisabledState(Oe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#e=this.\u0275fac=function(pe){return new(pe||J)(t.rXU(t.gRc),t.rXU(X),t.rXU(L.dS,8))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(pe,Ie){2&pe&&t.AVh("ant-radio-group-large","large"===Ie.nzSize)("ant-radio-group-small","small"===Ie.nzSize)("ant-radio-group-solid","solid"===Ie.nzButtonStyle)("ant-radio-group-rtl","rtl"===Ie.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],standalone:!0,features:[t.Jv_([X,{provide:s.kq,useExisting:(0,t.Rfq)(()=>J),multi:!0}]),t.GFd,t.OA$,t.aNF],ngContentSelectors:I,decls:1,vars:0,template:function(pe,Ie){1&pe&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return J})(),x=(()=>{class J{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(Oe,pe,Ie,ve,fe,Y,z){this.ngZone=Oe,this.elementRef=pe,this.cdr=Ie,this.focusMonitor=ve,this.directionality=fe,this.nzRadioService=Y,this.nzFormStatusService=z,this.isNgModel=!1,this.destroy$=new e.B,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.isRadioButton=!1,this.dir="ltr"}setDisabledState(Oe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(Oe){this.isChecked=Oe,this.cdr.markForCheck()}registerOnChange(Oe){this.isNgModel=!0,this.onChange=Oe}registerOnTouched(Oe){this.onTouched=Oe}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,K.Q)(this.destroy$)).subscribe(Oe=>{this.name=Oe,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,K.Q)(this.destroy$)).subscribe(Oe=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,K.Q)(this.destroy$)).subscribe(Oe=>{const pe=this.isChecked;this.isChecked=this.nzValue===Oe,this.isNgModel&&pe!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,K.Q)(this.destroy$)).subscribe(Oe=>{Oe||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,K.Q)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,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,M.R)(this.elementRef.nativeElement,"click").pipe((0,K.Q)(this.destroy$)).subscribe(Oe=>{Oe.stopPropagation(),Oe.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()})})})}static#e=this.\u0275fac=function(pe){return new(pe||J)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(j.FN),t.rXU(L.dS,8),t.rXU(X,8),t.rXU(A.is,8))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(pe,Ie){if(1&pe&&t.GBs(w,7),2&pe){let ve;t.mGM(ve=t.lsd())&&(Ie.inputElement=ve.first)}},hostVars:18,hostBindings:function(pe,Ie){2&pe&&t.AVh("ant-radio-wrapper-in-form-item",!!Ie.nzFormStatusService)("ant-radio-wrapper",!Ie.isRadioButton)("ant-radio-button-wrapper",Ie.isRadioButton)("ant-radio-wrapper-checked",Ie.isChecked&&!Ie.isRadioButton)("ant-radio-button-wrapper-checked",Ie.isChecked&&Ie.isRadioButton)("ant-radio-wrapper-disabled",Ie.nzDisabled&&!Ie.isRadioButton)("ant-radio-button-wrapper-disabled",Ie.nzDisabled&&Ie.isRadioButton)("ant-radio-wrapper-rtl",!Ie.isRadioButton&&"rtl"===Ie.dir)("ant-radio-button-wrapper-rtl",Ie.isRadioButton&&"rtl"===Ie.dir)},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],isRadioButton:[2,"nz-radio-button","isRadioButton",t.L39]},exportAs:["nzRadio"],standalone:!0,features:[t.Jv_([{provide:s.kq,useExisting:(0,t.Rfq)(()=>J),multi:!0}]),t.GFd,t.aNF],attrs:F,ngContentSelectors:I,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(pe,Ie){1&pe&&(t.NAR(),t.j41(0,"span"),t.nrm(1,"input",1,0)(3,"span"),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()),2&pe&&(t.AVh("ant-radio",!Ie.isRadioButton)("ant-radio-checked",Ie.isChecked&&!Ie.isRadioButton)("ant-radio-disabled",Ie.nzDisabled&&!Ie.isRadioButton)("ant-radio-button",Ie.isRadioButton)("ant-radio-button-checked",Ie.isChecked&&Ie.isRadioButton)("ant-radio-button-disabled",Ie.nzDisabled&&Ie.isRadioButton),t.R7$(),t.AVh("ant-radio-input",!Ie.isRadioButton)("ant-radio-button-input",Ie.isRadioButton),t.Y8G("disabled",Ie.nzDisabled)("checked",Ie.isChecked),t.BMQ("autofocus",Ie.nzAutoFocus?"autofocus":null)("name",Ie.name),t.R7$(2),t.AVh("ant-radio-inner",!Ie.isRadioButton)("ant-radio-button-inner",Ie.isRadioButton))},encapsulation:2,changeDetection:0})}return J})(),oe=(()=>{class J{static#e=this.\u0275fac=function(pe){return new(pe||J)};static#t=this.\u0275mod=t.$C({type:J});static#n=this.\u0275inj=t.G2t({})}return J})()},1997:(Rt,De,a)=>{a.d(De,{DH:()=>ce,WI:()=>B,ld:()=>Qe,uX:()=>Xe});var t=a(3953),s=a(1413),m=a(3726),e=a(4412),M=a(7673),K=a(4572),L=a(7786),j=a(7987),A=a(946),I=a(177),w=a(5463),F=a(1672),X=a(7806),V=a(6977),x=a(9172),oe=a(3294),J=a(3993),Ee=a(6354),Oe=a(5558),pe=a(1025),Ie=a(5103),ve=a(4707),fe=a(7336),Y=a(6860),z=a(9417),Z=a(713),he=a(6042),E=a(7891),S=a(6841),R=a(4500),U=a(317),se=a(851),Be=a(8203);const Pt=["*"];function gt(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ge=t.XpG();t.R7$(),t.JRh(ge.nzLabel)}}function wt(N,ke){}function Le(N,ke){if(1&N&&t.DNE(0,wt,0,0,"ng-template",4),2&N){const ge=t.XpG();t.Y8G("ngTemplateOutlet",ge.template)}}function zt(N,ke){if(1&N&&t.EFF(0),2&N){const ge=t.XpG();t.JRh(ge.label)}}function xt(N,ke){1&N&&t.nrm(0,"span",7)}function st(N,ke){if(1&N&&(t.j41(0,"div",5),t.DNE(1,xt,1,0,"span",6),t.k0s()),2&N){const ge=t.XpG();t.R7$(),t.Y8G("ngIf",!ge.icon)("ngIfElse",ge.icon)}}function Ct(N,ke){if(1&N&&(t.j41(0,"div",4),t.nrm(1,"nz-embed-empty",5),t.k0s()),2&N){const ge=t.XpG();t.R7$(),t.Y8G("specificContent",ge.notFoundContent)}}function It(N,ke){if(1&N&&t.nrm(0,"nz-option-item-group",9),2&N){const ge=t.XpG().$implicit;t.Y8G("nzLabel",ge.groupLabel)}}function Tt(N,ke){if(1&N){const ge=t.RV6();t.j41(0,"nz-option-item",10),t.bIt("itemHover",function(H){t.eBV(ge);const me=t.XpG(2);return t.Njj(me.onItemHover(H))})("itemClick",function(H){t.eBV(ge);const me=t.XpG(2);return t.Njj(me.onItemClick(H))}),t.k0s()}if(2&N){const ge=t.XpG().$implicit,W=t.XpG();t.Y8G("icon",W.menuItemSelectedIcon)("customContent",ge.nzCustomContent)("template",ge.template)("grouped",!!ge.groupLabel)("disabled",ge.nzDisabled||W.isMaxLimitReached&&!W.listOfSelectedValue.includes(ge.nzValue))("showState","tags"===W.mode||"multiple"===W.mode)("title",ge.nzTitle)("label",ge.nzLabel)("compareWith",W.compareWith)("activatedValue",W.activatedValue)("listOfSelectedValue",W.listOfSelectedValue)("value",ge.nzValue)}}function en(N,ke){1&N&&(t.qex(0,6),t.DNE(1,It,1,1,"nz-option-item-group",7)(2,Tt,1,12,"nz-option-item",8),t.bVm()),2&N&&(t.Y8G("ngSwitch",ke.$implicit.type),t.R7$(),t.Y8G("ngSwitchCase","group"),t.R7$(),t.Y8G("ngSwitchCase","item"))}function Ut(N,ke){}function Lt(N,ke){1&N&&t.SdG(0)}function fn(N,ke){if(1&N&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.bVm()),2&N){const ge=t.XpG();t.R7$(2),t.Lme("",ge.listOfValue.length," / ",ge.nzMaxMultipleCount,"")}}function $n(N,ke){1&N&&t.nrm(0,"span",5)}function zn(N,ke){1&N&&t.nrm(0,"span",9)}function bt(N,ke){1&N&&t.nrm(0,"span",10)}function At(N,ke){if(1&N&&(t.qex(0),t.DNE(1,zn,1,0,"span",7)(2,bt,1,0,"span",8),t.bVm()),2&N){const ge=t.XpG(2);t.R7$(),t.Y8G("ngIf",!ge.search),t.R7$(),t.Y8G("ngIf",ge.search)}}function Et(N,ke){if(1&N&&t.nrm(0,"span",12),2&N){const ge=t.XpG().$implicit;t.Y8G("nzType",ge)}}function St(N,ke){if(1&N&&(t.qex(0),t.DNE(1,Et,1,1,"span",11),t.bVm()),2&N){const ge=ke.$implicit;t.R7$(),t.Y8G("ngIf",ge)}}function Wt(N,ke){if(1&N&&t.DNE(0,St,2,1,"ng-container",4),2&N){const ge=t.XpG(2);t.Y8G("nzStringTemplateOutlet",ge.suffixIcon)}}function Ue(N,ke){if(1&N&&t.DNE(0,At,3,2,"ng-container",6)(1,Wt,1,1,"ng-template",null,1,t.C5r),2&N){const ge=t.sdS(2),W=t.XpG();t.Y8G("ngIf",W.showArrow&&!W.suffixIcon)("ngIfElse",ge)}}function Fe(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ge=t.XpG();t.R7$(),t.JRh(ge.feedbackIcon)}}function te(N,ke){1&N&&t.nrm(0,"span",1)}const _e=N=>({$implicit:N});function ie(N,ke){if(1&N&&(t.j41(0,"div",4),t.EFF(1),t.k0s()),2&N){const ge=t.XpG(2);t.R7$(),t.JRh(ge.label)}}function Pe(N,ke){if(1&N&&t.EFF(0),2&N){const ge=t.XpG(2);t.JRh(ge.label)}}function et(N,ke){if(1&N&&(t.qex(0),t.DNE(1,ie,2,1,"div",3)(2,Pe,1,1,"ng-template",null,0,t.C5r),t.bVm()),2&N){const ge=t.sdS(3),W=t.XpG();t.R7$(),t.Y8G("ngIf",W.deletable)("ngIfElse",ge)}}function ht(N,ke){1&N&&t.nrm(0,"span",7)}function Kt(N,ke){if(1&N){const ge=t.RV6();t.j41(0,"span",5),t.bIt("click",function(H){t.eBV(ge);const me=t.XpG();return t.Njj(me.onDelete(H))}),t.DNE(1,ht,1,0,"span",6),t.k0s()}if(2&N){const ge=t.XpG();t.R7$(),t.Y8G("ngIf",!ge.removeIcon)("ngIfElse",ge.removeIcon)}}function cn(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ge=t.XpG();t.R7$(),t.SpI(" ",ge.placeholder," ")}}const Tn=["inputElement"],Wn=["mirrorElement"];function kn(N,ke){1&N&&t.nrm(0,"span",4,1)}function In(N,ke){if(1&N&&t.nrm(0,"nz-select-item",6),2&N){const ge=t.XpG(2);t.Y8G("deletable",!1)("disabled",!1)("removeIcon",ge.removeIcon)("label",ge.listOfTopItem[0].nzLabel)("contentTemplateOutlet",ge.customTemplate)("contentTemplateOutletContext",ge.listOfTopItem[0])}}function Un(N,ke){if(1&N){const ge=t.RV6();t.qex(0),t.j41(1,"nz-select-search",4),t.bIt("isComposingChange",function(H){t.eBV(ge);const me=t.XpG();return t.Njj(me.isComposingChange(H))})("valueChange",function(H){t.eBV(ge);const me=t.XpG();return t.Njj(me.onInputValueChange(H))}),t.k0s(),t.DNE(2,In,1,6,"nz-select-item",5),t.bVm()}if(2&N){const ge=t.XpG();t.R7$(),t.Y8G("nzId",ge.nzId)("disabled",ge.disabled)("value",ge.inputValue)("showInput",ge.showSearch)("mirrorSync",!1)("autofocus",ge.autofocus)("focusTrigger",ge.open),t.R7$(),t.Y8G("ngIf",ge.isShowSingleLabel)}}function dn(N,ke){if(1&N){const ge=t.RV6();t.j41(0,"nz-select-item",9),t.bIt("delete",function(){const H=t.eBV(ge).$implicit,me=t.XpG(2);return t.Njj(me.onDeleteItem(H.contentTemplateOutletContext))}),t.k0s()}if(2&N){const ge=ke.$implicit,W=t.XpG(2);t.Y8G("removeIcon",W.removeIcon)("label",ge.nzLabel)("disabled",ge.nzDisabled||W.disabled)("contentTemplateOutlet",ge.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",ge.contentTemplateOutletContext)}}function qt(N,ke){if(1&N){const ge=t.RV6();t.qex(0),t.DNE(1,dn,1,6,"nz-select-item",7),t.j41(2,"nz-select-search",8),t.bIt("isComposingChange",function(H){t.eBV(ge);const me=t.XpG();return t.Njj(me.isComposingChange(H))})("valueChange",function(H){t.eBV(ge);const me=t.XpG();return t.Njj(me.onInputValueChange(H))}),t.k0s(),t.bVm()}if(2&N){const ge=t.XpG();t.R7$(),t.Y8G("ngForOf",ge.listOfSlicedItem)("ngForTrackBy",ge.trackValue),t.R7$(),t.Y8G("nzId",ge.nzId)("disabled",ge.disabled)("value",ge.inputValue)("autofocus",ge.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",ge.open)}}function wn(N,ke){if(1&N&&t.nrm(0,"nz-select-placeholder",10),2&N){const ge=t.XpG();t.Y8G("placeholder",ge.placeHolder)}}function Vt(N,ke){if(1&N&&t.nrm(0,"nz-form-item-feedback-icon",8),2&N){const ge=t.XpG(3);t.Y8G("status",ge.status)}}function Ge(N,ke){if(1&N&&t.DNE(0,Vt,1,1,"nz-form-item-feedback-icon",7),2&N){const ge=t.XpG(2);t.Y8G("ngIf",ge.hasFeedback&&!!ge.status)}}function ue(N,ke){if(1&N&&(t.j41(0,"nz-select-arrow",6),t.DNE(1,Ge,1,1,"ng-template",null,1,t.C5r),t.k0s()),2&N){const ge=t.sdS(2),W=t.XpG();t.Y8G("showArrow",W.nzShowArrow)("loading",W.nzLoading)("search",W.nzOpen&&W.nzShowSearch)("suffixIcon",W.nzSuffixIcon)("feedbackIcon",ge)("nzMaxMultipleCount",W.nzMaxMultipleCount)("listOfValue",W.listOfValue)("isMaxTagCountSet",W.isMaxTagCountSet)}}function q(N,ke){if(1&N){const ge=t.RV6();t.j41(0,"nz-select-clear",9),t.bIt("clear",function(){t.eBV(ge);const H=t.XpG();return t.Njj(H.onClearSelection())}),t.k0s()}if(2&N){const ge=t.XpG();t.Y8G("clearIcon",ge.nzClearIcon)}}function ee(N,ke){if(1&N){const ge=t.RV6();t.j41(0,"nz-option-container",10),t.bIt("keydown",function(H){t.eBV(ge);const me=t.XpG();return t.Njj(me.onKeyDown(H))})("itemClick",function(H){t.eBV(ge);const me=t.XpG();return t.Njj(me.onItemClick(H))})("scrollToBottom",function(){t.eBV(ge);const H=t.XpG();return t.Njj(H.nzScrollToBottom.emit())}),t.k0s()}if(2&N){const ge=t.XpG();t.AVh("ant-select-dropdown-placement-bottomLeft","bottomLeft"===ge.dropDownPosition)("ant-select-dropdown-placement-topLeft","topLeft"===ge.dropDownPosition)("ant-select-dropdown-placement-bottomRight","bottomRight"===ge.dropDownPosition)("ant-select-dropdown-placement-topRight","topRight"===ge.dropDownPosition),t.Y8G("ngStyle",ge.nzDropdownStyle)("itemSize",ge.nzOptionHeightPx)("maxItemLength",ge.nzOptionOverflowSize)("matchWidth",ge.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!(null==ge.noAnimation||!ge.noAnimation.nzNoAnimation))("nzNoAnimation",null==ge.noAnimation?null:ge.noAnimation.nzNoAnimation)("listOfContainerItem",ge.listOfContainerItem)("menuItemSelectedIcon",ge.nzMenuItemSelectedIcon)("notFoundContent",ge.nzNotFoundContent)("activatedValue",ge.activatedValue)("listOfSelectedValue",ge.listOfValue)("dropdownRender",ge.nzDropdownRender)("compareWith",ge.compareWith)("mode",ge.nzMode)("isMaxLimitReached",ge.isMaxLimitReached)}}let Xe=(()=>{class N{constructor(){this.nzLabel=null,this.changes=new s.B}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],standalone:!0,features:[t.OA$,t.aNF],ngContentSelectors:Pt,decls:1,vars:0,template:function(W,H){1&W&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return N})(),dt=(()=>{class N{constructor(){this.nzLabel=null}static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(W,H){1&W&&t.DNE(0,gt,2,1,"ng-container",0),2&W&&t.Y8G("nzStringTemplateOutlet",H.nzLabel)},dependencies:[X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),at=(()=>{class N{constructor(ge,W,H){this.elementRef=ge,this.ngZone=W,this.destroy$=H,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.bkB,this.itemHover=new t.bkB}ngOnChanges(ge){const{value:W,activatedValue:H,listOfSelectedValue:me}=ge;(W||me)&&(this.selected=this.listOfSelectedValue.some(qe=>this.compareWith(qe,this.value))),(W||H)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.elementRef.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),(0,m.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}static#e=this.\u0275fac=function(W){return new(W||N)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(pe.y4))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(W,H){2&W&&(t.BMQ("title",H.title),t.AVh("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",title:"title",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},standalone:!0,features:[t.Jv_([pe.y4]),t.OA$,t.aNF],decls:5,vars:3,consts:[["noCustomContent",""],[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["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(W,H){if(1&W&&(t.j41(0,"div",1),t.DNE(1,Le,1,1,"ng-template",2)(2,zt,1,1,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(4,st,2,2,"div",3)),2&W){const me=t.sdS(3);t.R7$(),t.Y8G("ngIf",H.customContent)("ngIfElse",me),t.R7$(3),t.Y8G("ngIf",H.showState&&H.selected)}},dependencies:[I.bT,I.T3,Ie.Y3,Ie.Dn],encapsulation:2,changeDetection:0})}return N})(),Ot=(()=>{class N{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.isMaxLimitReached=!1,this.listOfContainerItem=[],this.itemClick=new t.bkB,this.scrollToBottom=new t.bkB,this.scrolledIndex=0,this.ngZone=(0,t.WQX)(t.SKi),this.platformId=(0,t.WQX)(t.Agw)}onItemClick(ge){this.itemClick.emit(ge)}onItemHover(ge){this.activatedValue=ge}trackValue(ge,W){return W.key}onScrolledIndexChange(ge){this.scrolledIndex=ge,ge===this.listOfContainerItem.length-this.maxItemLength-1&&this.scrollToBottom.emit()}scrollToActivatedValue(){const ge=this.listOfContainerItem.findIndex(W=>this.compareWith(W.key,this.activatedValue));(ge=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(ge||0)}ngOnChanges(ge){const{listOfContainerItem:W,activatedValue:H}=ge;(W||H)&&this.scrollToActivatedValue()}ngAfterViewInit(){(0,I.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-container"]],viewQuery:function(W,H){if(1&W&&t.GBs(A.d6,7),2&W){let me;t.mGM(me=t.lsd())&&(H.cdkVirtualScrollViewport=me.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",isMaxLimitReached:"isMaxLimitReached",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],standalone:!0,features:[t.OA$,t.aNF],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"scrolledIndexChange","itemSize","maxBufferPx","minBufferPx"],["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","title","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"itemHover","itemClick","icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"]],template:function(W,H){1&W&&(t.j41(0,"div"),t.DNE(1,Ct,2,1,"div",0),t.j41(2,"cdk-virtual-scroll-viewport",1),t.bIt("scrolledIndexChange",function(qe){return H.onScrolledIndexChange(qe)}),t.DNE(3,en,3,3,"ng-template",2),t.k0s(),t.DNE(4,Ut,0,0,"ng-template",3),t.k0s()),2&W&&(t.R7$(),t.Y8G("ngIf",0===H.listOfContainerItem.length),t.R7$(),t.xc7("height",H.listOfContainerItem.length*H.itemSize,"px")("max-height",H.itemSize*H.maxItemLength,"px"),t.AVh("full-width",!H.matchWidth),t.Y8G("itemSize",H.itemSize)("maxBufferPx",H.itemSize*H.maxItemLength)("minBufferPx",H.itemSize*H.maxItemLength),t.R7$(),t.Y8G("cdkVirtualForOf",H.listOfContainerItem)("cdkVirtualForTrackBy",H.trackValue)("cdkVirtualForTemplateCacheSize",0),t.R7$(),t.Y8G("ngTemplateOutlet",H.dropdownRender))},dependencies:[F._v,F.E8,I.bT,I.ux,dt,I.e1,at,I.T3,j.z_,A.yg,A.E$,A.d6,w.$_],encapsulation:2,changeDetection:0})}return N})(),Qe=(()=>{class N{constructor(ge,W){this.nzOptionGroupComponent=ge,this.destroy$=W,this.changes=new s.B,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,x.Z)(!0),(0,V.Q)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(W){return new(W||N)(t.rXU(Xe,8),t.rXU(pe.y4))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option"]],viewQuery:function(W,H){if(1&W&&t.GBs(t.C4Q,7),2&W){let me;t.mGM(me=t.lsd())&&(H.template=me.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzHide:[2,"nzHide","nzHide",t.L39],nzCustomContent:[2,"nzCustomContent","nzCustomContent",t.L39]},exportAs:["nzOption"],standalone:!0,features:[t.Jv_([pe.y4]),t.GFd,t.OA$,t.aNF],ngContentSelectors:Pt,decls:1,vars:0,template:function(W,H){1&W&&(t.NAR(),t.DNE(0,Lt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return N})(),be=(()=>{class N{constructor(){this.listOfValue=[],this.loading=!1,this.search=!1,this.showArrow=!1,this.isMaxTagCountSet=!1,this.suffixIcon=null,this.feedbackIcon=null,this.nzMaxMultipleCount=1/0}static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(W,H){2&W&&t.AVh("ant-select-arrow-loading",H.loading)},inputs:{listOfValue:"listOfValue",loading:"loading",search:"search",showArrow:"showArrow",isMaxTagCountSet:"isMaxTagCountSet",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",t.Udg]},standalone:!0,features:[t.GFd,t.aNF],decls:5,vars:4,consts:[["defaultArrow",""],["suffixTemplate",""],[4,"ngIf"],["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["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(W,H){if(1&W&&t.DNE(0,fn,3,2,"ng-container",2)(1,$n,1,0,"span",3)(2,Ue,3,2,"ng-template",null,0,t.C5r)(4,Fe,2,1,"ng-container",4),2&W){const me=t.sdS(3);t.Y8G("ngIf",H.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",H.loading)("ngIfElse",me),t.R7$(3),t.Y8G("nzStringTemplateOutlet",H.feedbackIcon)}},dependencies:[Ie.Y3,Ie.Dn,I.bT,X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),Je=(()=>{class N{constructor(){this.clearIcon=null,this.clear=new t.bkB}onClick(ge){ge.preventDefault(),ge.stopPropagation(),this.clear.emit(ge)}static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(W,H){1&W&&t.bIt("click",function(qe){return H.onClick(qe)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},standalone:!0,features:[t.aNF],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(W,H){1&W&&t.DNE(0,te,1,0,"span",0),2&W&&t.Y8G("ngIf",!H.clearIcon)("ngIfElse",H.clearIcon)},dependencies:[Ie.Y3,Ie.Dn,I.bT],encapsulation:2,changeDetection:0})}return N})(),re=(()=>{class N{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.bkB}onDelete(ge){ge.preventDefault(),ge.stopPropagation(),this.disabled||this.delete.next(ge)}static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(W,H){2&W&&(t.BMQ("title",H.label),t.AVh("ant-select-selection-item-disabled",H.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[["labelTemplate",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],[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(W,H){1&W&&t.DNE(0,et,4,2,"ng-container",1)(1,Kt,2,2,"span",2),2&W&&(t.Y8G("nzStringTemplateOutlet",H.contentTemplateOutlet)("nzStringTemplateOutletContext",t.eq3(3,_e,H.contentTemplateOutletContext)),t.R7$(),t.Y8G("ngIf",H.deletable&&!H.disabled))},dependencies:[X.C,X.m,I.bT,Ie.Y3,Ie.Dn],encapsulation:2,changeDetection:0})}return N})(),ze=(()=>{class N{constructor(){this.placeholder=null}static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(W,H){1&W&&t.DNE(0,cn,2,1,"ng-container",0),2&W&&t.Y8G("nzStringTemplateOutlet",H.placeholder)},dependencies:[X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),mt=(()=>{class N{setCompositionState(ge){this.isComposingChange.next(ge)}onValueChange(ge){this.value=ge,this.valueChange.next(ge),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const ge=this.mirrorElement.nativeElement,W=this.elementRef.nativeElement,H=this.inputElement.nativeElement;this.renderer.removeStyle(W,"width"),this.renderer.setProperty(ge,"textContent",`${H.value}\xa0`),this.renderer.setStyle(W,"width",`${ge.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(ge,W,H){this.elementRef=ge,this.renderer=W,this.focusMonitor=H,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.bkB,this.isComposingChange=new t.bkB}ngOnChanges(ge){const W=this.inputElement.nativeElement,{focusTrigger:H,showInput:me}=ge;me&&(this.showInput?this.renderer.removeAttribute(W,"readonly"):this.renderer.setAttribute(W,"readonly","readonly")),H&&!0===H.currentValue&&!1===H.previousValue&&W.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}static#e=this.\u0275fac=function(W){return new(W||N)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(se.FN))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-search"]],viewQuery:function(W,H){if(1&W&&(t.GBs(Tn,7),t.GBs(Wn,5)),2&W){let me;t.mGM(me=t.lsd())&&(H.inputElement=me.first),t.mGM(me=t.lsd())&&(H.mirrorElement=me.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"},standalone:!0,features:[t.Jv_([{provide:z.mP,useValue:!1}]),t.OA$,t.aNF],decls:3,vars:7,consts:[["inputElement",""],["mirrorElement",""],["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModelChange","compositionstart","compositionend","ngModel","disabled"],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"]],template:function(W,H){if(1&W){const me=t.RV6();t.j41(0,"input",2,0),t.bIt("ngModelChange",function(rt){return t.eBV(me),t.Njj(H.onValueChange(rt))})("compositionstart",function(){return t.eBV(me),t.Njj(H.setCompositionState(!0))})("compositionend",function(){return t.eBV(me),t.Njj(H.setCompositionState(!1))}),t.k0s(),t.DNE(2,kn,2,0,"span",3)}2&W&&(t.xc7("opacity",H.showInput?null:0),t.Y8G("ngModel",H.value)("disabled",H.disabled),t.BMQ("id",H.nzId)("autofocus",H.autofocus?"autofocus":null),t.R7$(2),t.Y8G("ngIf",H.mirrorSync))},dependencies:[z.YN,z.me,z.BC,z.vS,I.bT],encapsulation:2,changeDetection:0})}return N})(),Ke=(()=>{class N{updateTemplateVariable(){const ge=0===this.listOfTopItem.length;this.isShowPlaceholder=ge&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!ge&&!this.isComposing&&!this.inputValue}isComposingChange(ge){this.isComposing=ge,this.updateTemplateVariable()}onInputValueChange(ge){ge!==this.inputValue&&(this.inputValue=ge,this.updateTemplateVariable(),this.inputValueChange.emit(ge),this.tokenSeparate(ge,this.tokenSeparators))}tokenSeparate(ge,W){if(ge&&ge.length&&W.length&&"default"!==this.mode&&((qe,rt)=>{for(let Ft=0;Ft0)return!0;return!1})(ge,W)){const qe=((qe,rt)=>{const Ft=new RegExp(`[${rt.join()}]`),rn=qe.split(Ft).filter(Cn=>Cn);return[...new Set(rn)]})(ge,W);this.tokenize.next(qe)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(ge,W){return W.nzValue}onDeleteItem(ge){!this.disabled&&!ge.nzDisabled&&this.deleteItem.next(ge)}constructor(ge,W,H){this.elementRef=ge,this.ngZone=W,this.noAnimation=H,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.bkB,this.inputValueChange=new t.bkB,this.deleteItem=new t.bkB,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new s.B}ngOnChanges(ge){const{listOfTopItem:W,maxTagCount:H,customTemplate:me,maxTagPlaceholder:qe}=ge;if(W&&this.updateTemplateVariable(),W||H||me||qe){const rt=this.listOfTopItem.slice(0,this.maxTagCount).map(Ft=>({nzLabel:Ft.nzLabel,nzValue:Ft.nzValue,nzDisabled:Ft.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:Ft}));if(this.listOfTopItem.length>this.maxTagCount){const Ft=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,rn=this.listOfTopItem.map(Jn=>Jn.nzValue),Cn={nzLabel:Ft,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:rn.slice(this.maxTagCount)};rt.push(Cn)}this.listOfSlicedItem=rt}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.elementRef.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(ge=>{ge.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,m.R)(this.elementRef.nativeElement,"keydown").pipe((0,V.Q)(this.destroy$)).subscribe(ge=>{ge.target instanceof HTMLInputElement&&ge.keyCode===fe.G_&&"default"!==this.mode&&!ge.target.value&&this.listOfTopItem.length>0&&(ge.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))})})}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(W){return new(W||N)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(S.z,9))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-top-control"]],viewQuery:function(W,H){if(1&W&&t.GBs(mt,5),2&W){let me;t.mGM(me=t.lsd())&&(H.nzSelectSearchComponent=me.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:[2,"maxTagCount","maxTagCount",t.Udg],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"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"isComposingChange","valueChange","nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger"],[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,"isComposingChange","valueChange","nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger"],[3,"delete","removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext"],[3,"placeholder"]],template:function(W,H){1&W&&(t.qex(0,0),t.DNE(1,Un,3,8,"ng-container",1)(2,qt,3,9,"ng-container",2),t.bVm(),t.DNE(3,wn,1,1,"nz-select-placeholder",3)),2&W&&(t.Y8G("ngSwitch",H.mode),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(2),t.Y8G("ngIf",H.isShowPlaceholder))},dependencies:[I.ux,mt,I.e1,re,I.bT,I.fG,I.pM,ze],encapsulation:2,changeDetection:0})}return N})();const xe=(N,ke)=>!(!ke||!ke.nzLabel)&&ke.nzLabel.toString().toLowerCase().indexOf(N.toLowerCase())>-1;let B=(()=>{class N{set nzShowArrow(ge){this._nzShowArrow=ge}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}get isMaxTagCountSet(){return this.nzMaxMultipleCount!==1/0}generateTagItem(ge){return{nzValue:ge,nzLabel:ge,type:"item"}}onItemClick(ge){if(this.activatedValue=ge,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],ge))&&this.updateListOfValue([ge]),this.setOpenState(!1);else{const W=this.listOfValue.findIndex(H=>this.compareWith(H,ge));if(-1!==W){const H=this.listOfValue.filter((me,qe)=>qe!==W);this.updateListOfValue(H)}else if(this.listOfValue.length!this.compareWith(H,ge.nzValue));this.updateListOfValue(W),this.clearInput()}updateListOfContainerItem(){let ge=this.listOfTagAndTemplateItem.filter(me=>!me.nzHide).filter(me=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,me));if("tags"===this.nzMode&&this.searchValue){const me=this.listOfTagAndTemplateItem.find(qe=>qe.nzLabel===this.searchValue);if(me)this.activatedValue=me.nzValue;else{const qe=this.generateTagItem(this.searchValue);ge=[qe,...ge],this.activatedValue=qe.nzValue}}const W=ge.find(me=>me.nzLabel===this.searchValue)||ge.find(me=>this.compareWith(me.nzValue,this.activatedValue))||ge.find(me=>this.compareWith(me.nzValue,this.listOfValue[0]))||ge[0];this.activatedValue=W&&W.nzValue||null;let H=[];this.isReactiveDriven?H=[...new Set(this.nzOptions.filter(me=>me.groupLabel).map(me=>me.groupLabel))]:this.listOfNzOptionGroupComponent&&(H=this.listOfNzOptionGroupComponent.map(me=>me.nzLabel)),H.forEach(me=>{const qe=ge.findIndex(rt=>me===rt.groupLabel);qe>-1&&ge.splice(qe,0,{groupLabel:me,type:"group",key:me})}),this.listOfContainerItem=[...ge],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(ge){const H=((me,qe)=>"default"===this.nzMode?me.length>0?me[0]:null:me)(ge);this.value!==H&&(this.listOfValue=ge,this.listOfValue$.next(ge),this.value=H,this.onChange(this.value)),this.isMaxLimitReached=this.nzMaxMultipleCount!==1/0&&this.listOfValue.length===this.nzMaxMultipleCount}onTokenSeparate(ge){const W=this.listOfTagAndTemplateItem.filter(H=>-1!==ge.findIndex(me=>me===H.nzLabel)).map(H=>H.nzValue).filter(H=>-1===this.listOfValue.findIndex(me=>this.compareWith(me,H)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...W]);else if("tags"===this.nzMode){const H=ge.filter(me=>-1===this.listOfTagAndTemplateItem.findIndex(qe=>qe.nzLabel===me));this.updateListOfValue([...this.listOfValue,...W,...H])}this.clearInput()}onKeyDown(ge){if(this.nzDisabled)return;const W=this.listOfContainerItem.filter(me=>"item"===me.type).filter(me=>!me.nzDisabled),H=W.findIndex(me=>this.compareWith(me.nzValue,this.activatedValue));switch(ge.keyCode){case fe.i7:ge.preventDefault(),this.nzOpen&&W.length>0&&(this.activatedValue=W[H>0?H-1:W.length-1].nzValue);break;case fe.n6:ge.preventDefault(),this.nzOpen&&W.length>0?this.activatedValue=W[H{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,ge!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,R.j)(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(ge,W,H,me,qe,rt,Ft,rn,Cn,Jn,jn,Gn){this.ngZone=ge,this.destroy$=W,this.nzConfigService=H,this.cdr=me,this.host=qe,this.renderer=rt,this.platform=Ft,this.focusMonitor=rn,this.directionality=Cn,this.noAnimation=Jn,this.nzFormStatusService=jn,this.nzFormNoStatusService=Gn,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=xe,this.compareWith=(zi,Oi)=>zi===Oi,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.bkB,this.nzScrollToBottom=new t.bkB,this.nzOpenChange=new t.bkB,this.nzBlur=new t.bkB,this.nzFocus=new t.bkB,this.listOfValue$=new e.t([]),this.listOfTemplateItem$=new e.t([]),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.isMaxLimitReached=!1,this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(ge){if(this.value!==ge){this.value=ge;const H=((me,qe)=>null==me?[]:"default"===this.nzMode?[me]:me)(ge);this.listOfValue=H,this.listOfValue$.next(H),this.cdr.markForCheck()}}registerOnChange(ge){this.onChange=ge}registerOnTouched(ge){this.onTouched=ge}setDisabledState(ge){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||ge,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(ge){const{nzOpen:W,nzDisabled:H,nzOptions:me,nzStatus:qe,nzPlacement:rt}=ge;if(W&&this.onOpenChange(),H&&this.nzDisabled&&this.setOpenState(!1),me){this.isReactiveDriven=!0;const rn=(this.nzOptions||[]).map(Cn=>({template:Cn.label instanceof t.C4Q?Cn.label:null,nzTitle:this.getTitle(Cn.title,Cn.label),nzLabel:"string"==typeof Cn.label||"number"==typeof Cn.label?Cn.label:null,nzValue:Cn.value,nzDisabled:Cn.disabled||!1,nzHide:Cn.hide||!1,nzCustomContent:Cn.label instanceof t.C4Q,groupLabel:Cn.groupLabel||null,type:"item",key:void 0===Cn.key?Cn.value:Cn.key}));this.listOfTemplateItem$.next(rn)}if(qe&&this.setStatusStyles(this.nzStatus,this.hasFeedback),rt){const{currentValue:Ft}=rt;this.dropDownPosition=Ft;const rn=["bottomLeft","topLeft","bottomRight","topRight"];this.positions=Ft&&rn.includes(Ft)?[w.pn[Ft]]:rn.map(Cn=>w.pn[Cn])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,oe.F)((ge,W)=>ge.status===W.status&&ge.hasFeedback===W.hasFeedback),(0,J.E)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,M.of)(!1)),(0,Ee.T)(([{status:ge,hasFeedback:W},H])=>({status:H?"":ge,hasFeedback:W})),(0,V.Q)(this.destroy$)).subscribe(({status:ge,hasFeedback:W})=>{this.setStatusStyles(ge,W)}),this.focusMonitor.monitor(this.host,!0).pipe((0,V.Q)(this.destroy$)).subscribe(ge=>{ge?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,K.z)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,V.Q)(this.destroy$)).subscribe(([ge,W])=>{const H=ge.filter(()=>"tags"===this.nzMode).filter(me=>-1===W.findIndex(qe=>this.compareWith(qe.nzValue,me))).map(me=>this.listOfTopItem.find(qe=>this.compareWith(qe.nzValue,me))||this.generateTagItem(me));this.listOfTagAndTemplateItem=[...W,...H],this.listOfTopItem=this.listOfValue.map(me=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(qe=>this.compareWith(me,qe.nzValue))).filter(me=>!!me),this.updateListOfContainerItem()}),this.directionality.change?.pipe((0,V.Q)(this.destroy$)).subscribe(ge=>{this.dir=ge,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>(0,m.R)(this.host.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe((0,V.Q)(this.destroy$)).subscribe(ge=>{ge.keyCode===fe._f&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||(0,L.h)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,x.Z)(!0),(0,Oe.n)(()=>(0,L.h)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(ge=>ge.changes),...this.listOfNzOptionGroupComponent.map(ge=>ge.changes)).pipe((0,x.Z)(!0))),(0,V.Q)(this.destroy$)).subscribe(()=>{const ge=this.listOfNzOptionComponent.toArray().map(W=>{const{template:H,nzLabel:me,nzValue:qe,nzKey:rt,nzDisabled:Ft,nzHide:rn,nzCustomContent:Cn,groupLabel:Jn}=W;return{template:H,nzLabel:me,nzValue:qe,nzDisabled:Ft,nzHide:rn,nzCustomContent:Cn,groupLabel:Jn,nzTitle:this.getTitle(W.nzTitle,W.nzLabel),type:"item",key:void 0===rt?qe:rt}});this.listOfTemplateItem$.next(ge),this.cdr.markForCheck()})}ngOnDestroy(){(0,R.F)(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(ge,W){this.status=ge,this.hasFeedback=W,this.cdr.markForCheck(),this.statusCls=(0,U.LP)(this.prefixCls,ge,W),Object.keys(this.statusCls).forEach(H=>{this.statusCls[H]?this.renderer.addClass(this.host.nativeElement,H):this.renderer.removeClass(this.host.nativeElement,H)})}getTitle(ge,W){let H;return void 0===ge?("string"==typeof W||"number"==typeof W)&&(H=W.toString()):("string"==typeof ge||"number"==typeof ge)&&(H=ge.toString()),H}static#e=this.\u0275fac=function(W){return new(W||N)(t.rXU(t.SKi),t.rXU(pe.y4),t.rXU(he.yx),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(Y.OD),t.rXU(se.FN),t.rXU(Be.dS,8),t.rXU(S.z,9),t.rXU(E.is,8),t.rXU(E.n1,8))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select"]],contentQueries:function(W,H,me){if(1&W&&(t.wni(me,Qe,5),t.wni(me,Xe,5)),2&W){let qe;t.mGM(qe=t.lsd())&&(H.listOfNzOptionComponent=qe),t.mGM(qe=t.lsd())&&(H.listOfNzOptionGroupComponent=qe)}},viewQuery:function(W,H){if(1&W&&(t.GBs(j.$Q,7,t.aKT),t.GBs(j.WB,7),t.GBs(Ke,7),t.GBs(Xe,7,t.aKT),t.GBs(Ke,7,t.aKT)),2&W){let me;t.mGM(me=t.lsd())&&(H.originElement=me.first),t.mGM(me=t.lsd())&&(H.cdkConnectedOverlay=me.first),t.mGM(me=t.lsd())&&(H.nzSelectTopControlComponent=me.first),t.mGM(me=t.lsd())&&(H.nzOptionGroupComponentElement=me.first),t.mGM(me=t.lsd())&&(H.nzSelectTopControlComponentElement=me.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(W,H){2&W&&t.AVh("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:[2,"nzAllowClear","nzAllowClear",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzShowSearch:[2,"nzShowSearch","nzShowSearch",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzAutoClearSearchValue:[2,"nzAutoClearSearchValue","nzAutoClearSearchValue",t.L39],nzServerSearch:[2,"nzServerSearch","nzServerSearch",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzOpen:[2,"nzOpen","nzOpen",t.L39],nzSelectOnTab:[2,"nzSelectOnTab","nzSelectOnTab",t.L39],nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39],nzOptions:"nzOptions",nzShowArrow:[2,"nzShowArrow","nzShowArrow",t.L39]},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],standalone:!0,features:[t.Jv_([pe.y4,{provide:z.kq,useExisting:(0,t.Rfq)(()=>N),multi:!0}]),t.GFd,t.OA$,t.aNF],decls:5,vars:25,consts:[["origin","cdkOverlayOrigin"],["feedbackIconTpl",""],["cdkOverlayOrigin","",3,"inputValueChange","tokenize","deleteItem","keydown","nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet"],[3,"status",4,"ngIf"],[3,"status"],[3,"clear","clearIcon"],[3,"keydown","itemClick","scrollToBottom","ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","isMaxLimitReached"]],template:function(W,H){if(1&W){const me=t.RV6();t.j41(0,"nz-select-top-control",2,0),t.bIt("inputValueChange",function(rt){return t.eBV(me),t.Njj(H.onInputValueChange(rt))})("tokenize",function(rt){return t.eBV(me),t.Njj(H.onTokenSeparate(rt))})("deleteItem",function(rt){return t.eBV(me),t.Njj(H.onItemDelete(rt))})("keydown",function(rt){return t.eBV(me),t.Njj(H.onKeyDown(rt))}),t.k0s(),t.DNE(2,ue,3,8,"nz-select-arrow",3)(3,q,1,1,"nz-select-clear",4)(4,ee,1,24,"ng-template",5),t.bIt("overlayOutsideClick",function(rt){return t.eBV(me),t.Njj(H.onClickOutside(rt))})("detach",function(){return t.eBV(me),t.Njj(H.setOpenState(!1))})("positionChange",function(rt){return t.eBV(me),t.Njj(H.onPositionChange(rt))})}if(2&W){const me=t.sdS(1);t.Y8G("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.R7$(2),t.Y8G("ngIf",H.nzShowArrow||H.hasFeedback&&!!H.status||H.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",H.nzAllowClear&&!H.nzDisabled&&H.listOfValue.length),t.R7$(),t.Y8G("cdkConnectedOverlayHasBackdrop",H.nzBackdrop)("cdkConnectedOverlayMinWidth",H.nzDropdownMatchSelectWidth?null:H.triggerWidth)("cdkConnectedOverlayWidth",H.nzDropdownMatchSelectWidth?H.triggerWidth:null)("cdkConnectedOverlayOrigin",me)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",H.nzDropdownClassName)("cdkConnectedOverlayOpen",H.nzOpen)("cdkConnectedOverlayPositions",H.positions)}},dependencies:[Ke,j.$Q,S.z,be,I.bT,E.J1,E.Xd,Je,j.WB,w.$_,w.vT,Ot,I.B3],encapsulation:2,data:{animation:[Z.U1]},changeDetection:0})}return(0,ve.Cg)([(0,he.H4)()],N.prototype,"nzOptionHeightPx",void 0),(0,ve.Cg)([(0,he.H4)()],N.prototype,"nzSuffixIcon",void 0),(0,ve.Cg)([(0,he.H4)()],N.prototype,"nzBorderless",void 0),(0,ve.Cg)([(0,he.H4)()],N.prototype,"nzBackdrop",void 0),N})(),ce=(()=>{class N{static#e=this.\u0275fac=function(W){return new(W||N)};static#t=this.\u0275mod=t.$C({type:N});static#n=this.\u0275inj=t.G2t({imports:[B,Ot,at,Ke,mt,re,Je,be,ze,dt]})}return N})()},1912:(Rt,De,a)=>{a.d(De,{Bi:()=>pe,i3:()=>Ie});var t=a(177),s=a(3953),m=a(317);const M=["nzType","avatar"],j=["*"];function A(ve,fe){if(1&ve&&(s.j41(0,"div",5),s.nrm(1,"nz-skeleton-element",6),s.k0s()),2&ve){const Y=s.XpG(2);s.R7$(),s.Y8G("nzSize",Y.avatar.size||"default")("nzShape",Y.avatar.shape||"circle")}}function I(ve,fe){if(1&ve&&s.nrm(0,"h3",7),2&ve){const Y=s.XpG(2);s.xc7("width",Y.toCSSUnit(Y.title.width))}}function w(ve,fe){if(1&ve&&s.nrm(0,"li"),2&ve){const Y=fe.index,z=s.XpG(3);s.xc7("width",z.toCSSUnit(z.widthList[Y]))}}function F(ve,fe){if(1&ve&&(s.j41(0,"ul",8),s.DNE(1,w,1,2,"li",9),s.k0s()),2&ve){const Y=s.XpG(2);s.R7$(),s.Y8G("ngForOf",Y.rowsList)}}function X(ve,fe){if(1&ve&&(s.qex(0),s.DNE(1,A,2,2,"div",1),s.j41(2,"div",2),s.DNE(3,I,1,2,"h3",3)(4,F,2,1,"ul",4),s.k0s(),s.bVm()),2&ve){const Y=s.XpG();s.R7$(),s.Y8G("ngIf",!!Y.nzAvatar),s.R7$(2),s.Y8G("ngIf",!!Y.nzTitle),s.R7$(),s.Y8G("ngIf",!!Y.nzParagraph)}}function V(ve,fe){1&ve&&(s.qex(0),s.SdG(1),s.bVm())}let x=(()=>{class ve{constructor(){this.nzActive=!1,this.nzBlock=!1}static#e=this.\u0275fac=function(z){return new(z||ve)};static#t=this.\u0275dir=s.FsC({type:ve,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(z,Z){2&z&&s.AVh("ant-skeleton-active",Z.nzActive)("ant-skeleton-block",Z.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",s.L39],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",s.L39]},standalone:!0,features:[s.GFd]})}return ve})(),J=(()=>{class ve{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(Y){if(Y.nzSize&&"number"==typeof this.nzSize){const z=`${this.nzSize}px`;this.styleMap={width:z,height:z,"line-height":z}}else this.styleMap={}}static#e=this.\u0275fac=function(z){return new(z||ve)};static#t=this.\u0275cmp=s.VBU({type:ve,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},standalone:!0,features:[s.OA$,s.aNF],attrs:M,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(z,Z){1&z&&s.nrm(0,"span",0),2&z&&(s.AVh("ant-skeleton-avatar-square","square"===Z.nzShape)("ant-skeleton-avatar-circle","circle"===Z.nzShape)("ant-skeleton-avatar-lg","large"===Z.nzSize)("ant-skeleton-avatar-sm","small"===Z.nzSize),s.Y8G("ngStyle",Z.styleMap))},dependencies:[t.B3],encapsulation:2,changeDetection:0})}return ve})(),pe=(()=>{class ve{constructor(Y){this.cdr=Y,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[]}toCSSUnit(Y=""){return(0,m.j3)(Y)}getTitleProps(){const Y=!!this.nzAvatar,z=!!this.nzParagraph;let Z="";return!Y&&z?Z="38%":Y&&z&&(Z="50%"),{width:Z,...this.getProps(this.nzTitle)}}getAvatarProps(){return{shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large",...this.getProps(this.nzAvatar)}}getParagraphProps(){const Y=!!this.nzAvatar,z=!!this.nzTitle,Z={};return(!Y||!z)&&(Z.width="61%"),Z.rows=!Y&&z?3:2,{...Z,...this.getProps(this.nzParagraph)}}getProps(Y){return Y&&"object"==typeof Y?Y:{}}getWidthList(){const{width:Y,rows:z}=this.paragraph;let Z=[];return Y&&Array.isArray(Y)?Z=Y:Y&&!Array.isArray(Y)&&(Z=[],Z[z-1]=Y),Z}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(Y){(Y.nzTitle||Y.nzAvatar||Y.nzParagraph)&&this.updateProps()}static#e=this.\u0275fac=function(z){return new(z||ve)(s.rXU(s.gRc))};static#t=this.\u0275cmp=s.VBU({type:ve,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(z,Z){2&z&&s.AVh("ant-skeleton-with-avatar",!!Z.nzAvatar)("ant-skeleton-active",Z.nzActive)("ant-skeleton-round",!!Z.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],standalone:!0,features:[s.OA$,s.aNF],ngContentSelectors:j,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(z,Z){1&z&&(s.NAR(),s.DNE(0,X,5,3,"ng-container",0)(1,V,2,0,"ng-container",0)),2&z&&(s.Y8G("ngIf",Z.nzLoading),s.R7$(),s.Y8G("ngIf",!Z.nzLoading))},dependencies:[x,J,t.bT,t.Sq],encapsulation:2,changeDetection:0})}return ve})(),Ie=(()=>{class ve{static#e=this.\u0275fac=function(z){return new(z||ve)};static#t=this.\u0275mod=s.$C({type:ve});static#n=this.\u0275inj=s.G2t({})}return ve})()},7685:(Rt,De,a)=>{a.d(De,{Dq:()=>F,U5:()=>x,pc:()=>oe});var t=a(3953),s=a(4707),m=a(177),e=a(1413),M=a(6977),K=a(6042);const L=["*"],j=J=>({$implicit:J});function A(J,Ee){}function I(J,Ee){if(1&J&&(t.j41(0,"span",4),t.DNE(1,A,0,0,"ng-template",5),t.k0s()),2&J){const Oe=t.XpG(),pe=Oe.last,Ie=Oe.index,ve=t.XpG();t.xc7("margin-bottom","vertical"===ve.nzDirection?pe?null:ve.spaceSize:null,"px")("margin-right","horizontal"===ve.nzDirection?pe?null:ve.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",ve.nzSplit)("ngTemplateOutletContext",t.eq3(6,j,Ie))}}function w(J,Ee){if(1&J&&(t.j41(0,"div",1),t.eu8(1,2),t.k0s(),t.DNE(2,I,2,8,"span",3)),2&J){const Oe=Ee.$implicit,pe=Ee.last,Ie=t.XpG();t.xc7("margin-bottom","vertical"===Ie.nzDirection?pe?null:Ie.spaceSize:null,"px")("margin-right","horizontal"===Ie.nzDirection?pe?null:Ie.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",Oe),t.R7$(),t.Y8G("ngIf",Ie.nzSplit&&!pe)}}let F=(()=>{class J{constructor(){}static#e=this.\u0275fac=function(pe){return new(pe||J)};static#t=this.\u0275dir=t.FsC({type:J,selectors:[["","nzSpaceItem",""]],standalone:!0})}return J})();const V={small:8,middle:16,large:24};let x=(()=>{class J{constructor(Oe,pe){this.nzConfigService=Oe,this.cdr=pe,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=V.small,this.destroy$=new e.B}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?V[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,M.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}static#e=this.\u0275fac=function(pe){return new(pe||J)(t.rXU(K.yx),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(pe,Ie,ve){if(1&pe&&t.wni(ve,F,4,t.C4Q),2&pe){let fe;t.mGM(fe=t.lsd())&&(Ie.items=fe)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(pe,Ie){2&pe&&(t.xc7("flex-wrap",Ie.nzWrap?"wrap":null),t.AVh("ant-space-horizontal","horizontal"===Ie.nzDirection)("ant-space-vertical","vertical"===Ie.nzDirection)("ant-space-align-start","start"===Ie.mergedAlign)("ant-space-align-end","end"===Ie.mergedAlign)("ant-space-align-center","center"===Ie.mergedAlign)("ant-space-align-baseline","baseline"===Ie.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:[2,"nzWrap","nzWrap",t.L39],nzSize:"nzSize"},exportAs:["NzSpace"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:L,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(pe,Ie){1&pe&&(t.NAR(),t.SdG(0),t.DNE(1,w,3,6,"ng-template",0)),2&pe&&(t.R7$(),t.Y8G("ngForOf",Ie.items))},dependencies:[m.T3,m.bT,m.Sq],encapsulation:2,changeDetection:0})}return(0,s.Cg)([(0,K.H4)()],J.prototype,"nzSize",void 0),J})(),oe=(()=>{class J{static#e=this.\u0275fac=function(pe){return new(pe||J)};static#t=this.\u0275mod=t.$C({type:J});static#n=this.\u0275inj=t.G2t({})}return J})()},2983:(Rt,De,a)=>{a.d(De,{a:()=>Z,V:()=>he});var t=a(4707),s=a(177),m=a(3953),e=a(1413),M=a(4412),K=a(2771),L=a(1584),j=a(9172),A=a(3294),I=a(5558),w=a(9974),F=a(5343),X=a(4360),V=a(8750),oe=a(6977),J=a(6042),Ee=a(8203);const Oe=["*"];function pe(E,S){1&E&&(m.j41(0,"span",3),m.nrm(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),m.k0s())}function Ie(E,S){}function ve(E,S){if(1&E&&(m.j41(0,"div",8),m.EFF(1),m.k0s()),2&E){const R=m.XpG(2);m.R7$(),m.JRh(R.nzTip)}}function fe(E,S){if(1&E&&(m.j41(0,"div")(1,"div",5),m.DNE(2,Ie,0,0,"ng-template",6)(3,ve,2,1,"div",7),m.k0s()()),2&E){const R=m.XpG(),U=m.sdS(1);m.R7$(),m.AVh("ant-spin-rtl","rtl"===R.dir)("ant-spin-spinning",R.isLoading)("ant-spin-lg","large"===R.nzSize)("ant-spin-sm","small"===R.nzSize)("ant-spin-show-text",R.nzTip),m.R7$(),m.Y8G("ngTemplateOutlet",R.nzIndicator||U),m.R7$(),m.Y8G("ngIf",R.nzTip)}}function Y(E,S){if(1&E&&(m.j41(0,"div",9),m.SdG(1),m.k0s()),2&E){const R=m.XpG();m.AVh("ant-spin-blur",R.isLoading)}}const z="spin";let Z=(()=>{class E{constructor(R,U,se){this.nzConfigService=R,this.cdr=U,this.directionality=se,this._nzModuleName=z,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new e.B,this.spinning$=new M.t(this.nzSpinning),this.delay$=new K.m(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe((0,j.Z)(this.nzDelay),(0,A.F)(),(0,I.n)(U=>0===U?this.spinning$:this.spinning$.pipe(function x(E){return(0,w.N)((S,R)=>{let U=!1,se=null,Be=null;const Pt=()=>{if(Be?.unsubscribe(),Be=null,U){U=!1;const gt=se;se=null,R.next(gt)}};S.subscribe((0,X._)(R,gt=>{Be?.unsubscribe(),U=!0,se=gt,Be=(0,X._)(R,Pt,F.l),(0,V.Tg)(E(gt)).subscribe(Be)},()=>{Pt(),R.complete()},void 0,()=>{se=Be=null}))})}(se=>(0,L.O)(se?U:0)))),(0,oe.Q)(this.destroy$)).subscribe(U=>{this.isLoading=U,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(z).pipe((0,oe.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe((0,oe.Q)(this.destroy$)).subscribe(U=>{this.dir=U,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(R){const{nzSpinning:U,nzDelay:se}=R;U&&this.spinning$.next(this.nzSpinning),se&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(U){return new(U||E)(m.rXU(J.yx),m.rXU(m.gRc),m.rXU(Ee.dS,8))};static#t=this.\u0275cmp=m.VBU({type:E,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(U,se){2&U&&m.AVh("ant-spin-nested-loading",!se.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",m.Udg],nzSimple:[2,"nzSimple","nzSimple",m.L39],nzSpinning:[2,"nzSpinning","nzSpinning",m.L39]},exportAs:["nzSpin"],standalone:!0,features:[m.GFd,m.OA$,m.aNF],ngContentSelectors:Oe,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(U,se){1&U&&(m.NAR(),m.DNE(0,pe,5,0,"ng-template",null,0,m.C5r)(2,fe,4,12,"div",1)(3,Y,2,2,"div",2)),2&U&&(m.R7$(2),m.Y8G("ngIf",se.isLoading),m.R7$(),m.Y8G("ngIf",!se.nzSimple))},dependencies:[s.bT,s.T3],encapsulation:2})}return(0,t.Cg)([(0,J.H4)()],E.prototype,"nzIndicator",void 0),E})(),he=(()=>{class E{static#e=this.\u0275fac=function(U){return new(U||E)};static#t=this.\u0275mod=m.$C({type:E});static#n=this.\u0275inj=m.G2t({})}return E})()},9247:(Rt,De,a)=>{a.d(De,{jc:()=>_o,OL:()=>ai,Kg:()=>xn,SO:()=>Ei,CP:()=>Uo,$G:()=>us,CC:()=>Bo,aj:()=>Sr,GM:()=>no,Cc:()=>ao,_4:()=>ro,oZ:()=>An,IL:()=>zo,kt:()=>es});var t=a(3953),s=a(4707),m=a(3726),e=a(1413),M=a(2771),K=a(4412),L=a(4572),j=a(7786),A=a(983),I=a(7673),w=a(6977),F=a(6354),X=a(3294),V=a(152),x=a(5245),oe=a(5964),J=a(5558),Ee=a(9172),Oe=a(1986),pe=a(1397),Ie=a(6042),ve=a(1025),fe=a(2602),Y=a(177),z=a(9417),Z=a(513),he=a(2986),E=a(317),S=a(5103),R=a(3190),U=a(1377),se=a(1868),Be=a(6389),Pt=a(5930),gt=a(946),wt=a(1672),Le=a(5979),zt=a(6860),xt=a(1997),st=a(8203);const Ct=["nz-pagination-item",""],It=(Ze,Fn)=>({$implicit:Ze,page:Fn});function Tt(Ze,Fn){if(1&Ze&&(t.j41(0,"a"),t.EFF(1),t.k0s()),2&Ze){const de=t.XpG().page;t.R7$(),t.JRh(de)}}function en(Ze,Fn){1&Ze&&t.nrm(0,"span",4)}function Ut(Ze,Fn){1&Ze&&t.nrm(0,"span",5)}function Lt(Ze,Fn){if(1&Ze&&(t.j41(0,"button",2),t.DNE(1,en,1,0,"span",4)(2,Ut,1,0,"span",5),t.k0s()),2&Ze){const de=t.XpG(2);t.Y8G("disabled",de.disabled),t.BMQ("title",de.locale.prev_page),t.R7$(),t.vxM("rtl"===de.direction?1:2)}}function fn(Ze,Fn){1&Ze&&t.nrm(0,"span",5)}function $n(Ze,Fn){1&Ze&&t.nrm(0,"span",4)}function zn(Ze,Fn){if(1&Ze&&(t.j41(0,"button",2),t.DNE(1,fn,1,0,"span",5)(2,$n,1,0,"span",4),t.k0s()),2&Ze){const de=t.XpG(2);t.Y8G("disabled",de.disabled),t.BMQ("title",de.locale.next_page),t.R7$(),t.vxM("rtl"===de.direction?1:2)}}function bt(Ze,Fn){1&Ze&&t.nrm(0,"span",8)}function At(Ze,Fn){1&Ze&&t.nrm(0,"span",9)}function Et(Ze,Fn){if(1&Ze&&t.DNE(0,bt,1,0,"span",8)(1,At,1,0,"span",9),2&Ze){const de=t.XpG(3);t.vxM("rtl"===de.direction?0:1)}}function St(Ze,Fn){1&Ze&&t.nrm(0,"span",9)}function Wt(Ze,Fn){1&Ze&&t.nrm(0,"span",8)}function Ue(Ze,Fn){if(1&Ze&&t.DNE(0,St,1,0,"span",9)(1,Wt,1,0,"span",8),2&Ze){const de=t.XpG(3);t.vxM("rtl"===de.direction?0:1)}}function Fe(Ze,Fn){if(1&Ze&&(t.j41(0,"a",3)(1,"div",6),t.DNE(2,Et,2,1)(3,Ue,2,1),t.j41(4,"span",7),t.EFF(5,"\u2022\u2022\u2022"),t.k0s()()()),2&Ze){let de;const We=t.XpG().$implicit;t.R7$(2),t.vxM("prev_5"===(de=We)?2:"next_5"===de?3:-1)}}function te(Ze,Fn){if(1&Ze&&t.DNE(0,Tt,2,1,"a")(1,Lt,3,3,"button",2)(2,zn,3,3,"button",2)(3,Fe,6,1,"a",3),2&Ze){let de;t.vxM("page"===(de=Fn.$implicit)?0:"prev"===de?1:"next"===de?2:3)}}function _e(Ze,Fn){}const ie=["nz-pagination-options",""],Pe=(Ze,Fn)=>Fn.value;function et(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-option",3),2&Ze){const de=Fn.$implicit;t.Y8G("nzLabel",de.label)("nzValue",de.value)}}function ht(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"nz-select",2),t.bIt("ngModelChange",function(ct){t.eBV(de);const sn=t.XpG();return t.Njj(sn.onPageSizeChange(ct))}),t.Z7z(1,et,1,2,"nz-option",3,Pe),t.k0s()}if(2&Ze){const de=t.XpG();t.Y8G("nzDisabled",de.disabled)("nzSize",de.nzSize)("ngModel",de.pageSize),t.R7$(),t.Dyx(de.listOfPageSizeOption)}}function Kt(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"div",1),t.EFF(1),t.j41(2,"input",4),t.bIt("keydown.enter",function(ct){t.eBV(de);const sn=t.XpG();return t.Njj(sn.jumpToPageViaInput(ct))}),t.k0s(),t.EFF(3),t.k0s()}if(2&Ze){const de=t.XpG();t.R7$(),t.SpI(" ",de.locale.jump_to," "),t.R7$(),t.Y8G("disabled",de.disabled),t.R7$(),t.SpI(" ",de.locale.page," ")}}const cn=["containerTemplate"],Tn=(Ze,Fn)=>({$implicit:Ze,range:Fn});function Wn(Ze,Fn){}function kn(Ze,Fn){if(1&Ze&&(t.j41(0,"li",1),t.DNE(1,Wn,0,0,"ng-template",4),t.k0s()),2&Ze){const de=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",de.showTotal)("ngTemplateOutletContext",t.l_i(2,Tn,de.total,de.ranges))}}function In(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"li",5),t.bIt("gotoIndex",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.jumpPage(ct))})("diffIndex",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.jumpDiff(ct))}),t.k0s()}if(2&Ze){const de=Fn.$implicit,We=t.XpG(2);t.Y8G("locale",We.locale)("type",de.type)("index",de.index)("disabled",!!de.disabled)("itemRender",We.itemRender)("active",We.pageIndex===de.index)("direction",We.dir)}}function Un(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"li",6),t.bIt("pageIndexChange",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.onPageIndexChange(ct))})("pageSizeChange",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.onPageSizeChange(ct))}),t.k0s()}if(2&Ze){const de=t.XpG(2);t.Y8G("total",de.total)("locale",de.locale)("disabled",de.disabled)("nzSize",de.nzSize)("showSizeChanger",de.showSizeChanger)("showQuickJumper",de.showQuickJumper)("pageIndex",de.pageIndex)("pageSize",de.pageSize)("pageSizeOptions",de.pageSizeOptions)}}function dn(Ze,Fn){if(1&Ze&&(t.j41(0,"ul"),t.DNE(1,kn,2,5,"li",1),t.Z7z(2,In,1,7,"li",2,t.BUC().trackByPageItem,!0),t.DNE(4,Un,1,9,"li",3),t.k0s()),2&Ze){const de=t.XpG();t.R7$(),t.vxM(de.showTotal?1:-1),t.R7$(),t.Dyx(de.listOfPageItem),t.R7$(2),t.vxM(de.showQuickJumper||de.showSizeChanger?4:-1)}}function qt(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"ul")(1,"li",1),t.bIt("click",function(){t.eBV(de);const ct=t.XpG();return t.Njj(ct.prePage())}),t.k0s(),t.j41(2,"li",2)(3,"input",3),t.bIt("keydown.enter",function(ct){t.eBV(de);const sn=t.XpG();return t.Njj(sn.jumpToPageViaInput(ct))}),t.k0s(),t.j41(4,"span",4),t.EFF(5,"/"),t.k0s(),t.EFF(6),t.k0s(),t.j41(7,"li",5),t.bIt("click",function(){t.eBV(de);const ct=t.XpG();return t.Njj(ct.nextPage())}),t.k0s()()}if(2&Ze){const de=t.XpG();t.R7$(),t.Y8G("locale",de.locale)("disabled",de.isFirstIndex)("direction",de.dir)("itemRender",de.itemRender),t.BMQ("title",de.locale.prev_page),t.R7$(),t.BMQ("title",de.pageIndex+"/"+de.lastIndex),t.R7$(),t.Y8G("disabled",de.disabled)("value",de.pageIndex),t.R7$(3),t.SpI(" ",de.lastIndex," "),t.R7$(),t.Y8G("locale",de.locale)("disabled",de.isLastIndex)("direction",de.dir)("itemRender",de.itemRender),t.BMQ("title",null==de.locale?null:de.locale.next_page)}}function wn(Ze,Fn){}function Vt(Ze,Fn){if(1&Ze&&t.DNE(0,wn,0,0,"ng-template",4),2&Ze){t.XpG(2);const de=t.sdS(2);t.Y8G("ngTemplateOutlet",de.template)}}function Ge(Ze,Fn){}function ue(Ze,Fn){if(1&Ze&&t.DNE(0,Ge,0,0,"ng-template",4),2&Ze){t.XpG(2);const de=t.sdS(4);t.Y8G("ngTemplateOutlet",de.template)}}function q(Ze,Fn){if(1&Ze&&t.DNE(0,Vt,1,1,null,4)(1,ue,1,1,null,4),2&Ze){const de=t.XpG();t.vxM(de.nzSimple?0:1)}}let ee=(()=>{class Ze{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new t.bkB,this.gotoIndex=new t.bkB,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(de){const{locale:We,index:ct,type:sn}=de;(We||ct||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])}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(We,ct){1&We&&t.bIt("click",function(){return ct.clickItem()}),2&We&&(t.BMQ("title",ct.title),t.AVh("ant-pagination-prev","prev"===ct.type)("ant-pagination-next","next"===ct.type)("ant-pagination-item","page"===ct.type)("ant-pagination-jump-prev","prev_5"===ct.type)("ant-pagination-jump-prev-custom-icon","prev_5"===ct.type)("ant-pagination-jump-next","next_5"===ct.type)("ant-pagination-jump-next-custom-icon","next_5"===ct.type)("ant-pagination-disabled",ct.disabled)("ant-pagination-item-active",ct.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},standalone:!0,features:[t.OA$,t.aNF],attrs:Ct,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",1,"ant-pagination-item-link",3,"disabled"],[1,"ant-pagination-item-link"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],[1,"ant-pagination-item-container"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"]],template:function(We,ct){if(1&We&&t.DNE(0,te,4,1,"ng-template",null,0,t.C5r)(2,_e,0,0,"ng-template",1),2&We){const sn=t.sdS(1);t.R7$(2),t.Y8G("ngTemplateOutlet",ct.itemRender||sn)("ngTemplateOutletContext",t.l_i(2,It,ct.type,ct.index))}},dependencies:[S.Y3,S.Dn,Y.T3],encapsulation:2,changeDetection:0})}return Ze})(),Xe=(()=>{class Ze{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 t.bkB,this.pageSizeChange=new t.bkB,this.listOfPageSizeOption=[]}onPageSizeChange(de){this.pageSize!==de&&this.pageSizeChange.next(de)}jumpToPageViaInput(de){const We=de.target,ct=Math.floor((0,E.Ro)(We.value,this.pageIndex));this.pageIndexChange.next(ct),We.value=""}ngOnChanges(de){const{pageSize:We,pageSizeOptions:ct,locale:sn}=de;(We||ct||sn)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(Vn=>({value:Vn,label:`${Vn} ${this.locale.items_per_page}`})))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,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"},standalone:!0,features:[t.OA$,t.aNF],attrs:ie,decls:2,vars:2,consts:[[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel"],[1,"ant-pagination-options-quick-jumper"],[1,"ant-pagination-options-size-changer",3,"ngModelChange","nzDisabled","nzSize","ngModel"],[3,"nzLabel","nzValue"],[3,"keydown.enter","disabled"]],template:function(We,ct){1&We&&t.DNE(0,ht,3,3,"nz-select",0)(1,Kt,4,3,"div",1),2&We&&(t.vxM(ct.showSizeChanger?0:-1),t.R7$(),t.vxM(ct.showQuickJumper?1:-1))},dependencies:[xt.DH,xt.ld,xt.WI,z.YN,z.BC,z.vS],encapsulation:2,changeDetection:0})}return Ze})(),dt=(()=>{class Ze{constructor(de,We,ct,sn){this.cdr=de,this.renderer=We,this.elementRef=ct,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 t.bkB,this.pageSizeChange=new t.bkB,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new e.B,We.removeChild(We.parentNode(ct.nativeElement),ct.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(de=>{this.dir=de,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(de){this.onPageIndexChange(de)}jumpDiff(de){this.jumpPage(this.pageIndex+de)}trackByPageItem(de,We){return`${We.type}-${We.index}`}onPageIndexChange(de){this.pageIndexChange.next(de)}onPageSizeChange(de){this.pageSizeChange.next(de)}getLastIndex(de,We){return Math.ceil(de/We)}buildIndexes(){const de=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,de)}getListOfPageItem(de,We){const sn=(Vn,Ln)=>{const fi=[];for(let ki=Vn;ki<=Ln;ki++)fi.push({index:ki,type:"page"});return fi};return Vn=We<=9?sn(1,We):((Ln,fi)=>{let ki=[];const bo={type:"prev_5"},hi={type:"next_5"},ho=sn(1,1),Oo=sn(We,We);return ki=Ln<5?[...sn(2,4===Ln?6:5),hi]:Ln{class Ze{constructor(de,We,ct,sn){this.cdr=de,this.renderer=We,this.elementRef=ct,this.directionality=sn,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new t.bkB,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new e.B,We.removeChild(We.parentNode(ct.nativeElement),ct.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(de=>{this.dir=de,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(de){const We=de.target,ct=(0,E.Ro)(We.value,this.pageIndex);this.onPageIndexChange(ct),We.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(de){this.pageIndexChange.next(de)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(de){const{pageIndex:We,total:ct,pageSize:sn}=de;(We||ct||sn)&&this.updateBindingValue()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.gRc),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-pagination-simple"]],viewQuery:function(We,ct){if(1&We&&t.GBs(cn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.template=sn.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"click","locale","disabled","direction","itemRender"],[1,"ant-pagination-simple-pager"],["size","3",3,"keydown.enter","disabled","value"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"click","locale","disabled","direction","itemRender"]],template:function(We,ct){1&We&&t.DNE(0,qt,8,14,"ng-template",null,0,t.C5r)},dependencies:[ee],encapsulation:2,changeDetection:0})}return Ze})(),Qe=(()=>{class Ze{validatePageIndex(de,We){return de>We?We:de<1?1:de}onPageIndexChange(de){const We=this.getLastIndex(this.nzTotal,this.nzPageSize),ct=this.validatePageIndex(de,We);ct!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=ct,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(de){this.nzPageSize=de,this.nzPageSizeChange.emit(de);const We=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>We&&this.onPageIndexChange(We)}onTotalChange(de){const We=this.getLastIndex(de,this.nzPageSize);this.nzPageIndex>We&&Promise.resolve().then(()=>{this.onPageIndexChange(We),this.cdr.markForCheck()})}getLastIndex(de,We){return Math.ceil(de/We)}constructor(de,We,ct,sn,Vn){this.i18n=de,this.cdr=We,this.breakpointService=ct,this.nzConfigService=sn,this.directionality=Vn,this._nzModuleName="pagination",this.nzPageSizeChange=new t.bkB,this.nzPageIndexChange=new t.bkB,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 e.B,this.total$=new M.m(1)}ngOnInit(){this.i18n.localeChange.pipe((0,w.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,w.Q)(this.destroy$)).subscribe(de=>{this.onTotalChange(de)}),this.breakpointService.subscribe(ve.fe).pipe((0,w.Q)(this.destroy$)).subscribe(de=>{this.nzResponsive&&(this.size=de===ve.pt.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(de=>{this.dir=de,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(de){const{nzHideOnSinglePage:We,nzTotal:ct,nzPageSize:sn,nzSize:Vn}=de;ct&&this.total$.next(this.nzTotal),(We||ct||sn)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),Vn&&(this.size=Vn.currentValue)}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(U.Og),t.rXU(t.gRc),t.rXU(ve.jp),t.rXU(Ie.yx),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(We,ct){2&We&&t.AVh("ant-pagination-simple",ct.nzSimple)("ant-pagination-disabled",ct.nzDisabled)("ant-pagination-mini",!ct.nzSimple&&"small"===ct.size)("ant-pagination-rtl","rtl"===ct.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzResponsive:[2,"nzResponsive","nzResponsive",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzTotal:[2,"nzTotal","nzTotal",t.Udg],nzPageIndex:[2,"nzPageIndex","nzPageIndex",t.Udg],nzPageSize:[2,"nzPageSize","nzPageSize",t.Udg]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:5,vars:18,consts:[["simplePagination",""],["defaultPagination",""],[3,"pageIndexChange","disabled","itemRender","locale","pageSize","total","pageIndex"],[3,"pageIndexChange","pageSizeChange","nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet"]],template:function(We,ct){if(1&We){const sn=t.RV6();t.DNE(0,q,2,1),t.j41(1,"nz-pagination-simple",2,0),t.bIt("pageIndexChange",function(Ln){return t.eBV(sn),t.Njj(ct.onPageIndexChange(Ln))}),t.k0s(),t.j41(3,"nz-pagination-default",3,1),t.bIt("pageIndexChange",function(Ln){return t.eBV(sn),t.Njj(ct.onPageIndexChange(Ln))})("pageSizeChange",function(Ln){return t.eBV(sn),t.Njj(ct.onPageSizeChange(Ln))}),t.k0s()}2&We&&(t.vxM(ct.showPagination?0:-1),t.R7$(),t.Y8G("disabled",ct.nzDisabled)("itemRender",ct.nzItemRender)("locale",ct.locale)("pageSize",ct.nzPageSize)("total",ct.nzTotal)("pageIndex",ct.nzPageIndex),t.R7$(2),t.Y8G("nzSize",ct.size)("itemRender",ct.nzItemRender)("showTotal",ct.nzShowTotal)("disabled",ct.nzDisabled)("locale",ct.locale)("showSizeChanger",ct.nzShowSizeChanger)("showQuickJumper",ct.nzShowQuickJumper)("total",ct.nzTotal)("pageIndex",ct.nzPageIndex)("pageSize",ct.nzPageSize)("pageSizeOptions",ct.nzPageSizeOptions))},dependencies:[Y.T3,at,dt],encapsulation:2,changeDetection:0})}return(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSize",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzPageSizeOptions",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowSizeChanger",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowQuickJumper",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSimple",void 0),Ze})(),be=(()=>{class Ze{static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275mod=t.$C({type:Ze});static#n=this.\u0275inj=t.G2t({imports:[Qe,at,Xe,ee,dt]})}return Ze})();var Je=a(2983),re=a(7806);const ze=["*"],mt=(Ze,Fn)=>Fn.value;function Ke(Ze,Fn){}function xe(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"label",14),t.bIt("ngModelChange",function(){t.eBV(de);const ct=t.XpG().$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.k0s()}if(2&Ze){const de=t.XpG().$implicit;t.Y8G("ngModel",de.checked)}}function Re(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"label",15),t.bIt("ngModelChange",function(){t.eBV(de);const ct=t.XpG().$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.k0s()}if(2&Ze){const de=t.XpG().$implicit;t.Y8G("ngModel",de.checked)}}function B(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"li",11),t.bIt("click",function(){const ct=t.eBV(de).$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.DNE(1,xe,1,1,"label",12)(2,Re,1,1,"label",13),t.j41(3,"span"),t.EFF(4),t.k0s()()}if(2&Ze){const de=Fn.$implicit,We=t.XpG(2);t.Y8G("nzSelected",de.checked),t.R7$(),t.vxM(We.filterMultiple?2:1),t.R7$(3),t.JRh(de.text)}}function ce(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"nz-filter-trigger",3),t.bIt("nzVisibleChange",function(ct){t.eBV(de);const sn=t.XpG();return t.Njj(sn.onVisibleChange(ct))}),t.nrm(1,"span",4),t.k0s(),t.j41(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),t.Z7z(6,B,5,3,"li",7,mt),t.k0s(),t.j41(8,"div",8)(9,"button",9),t.bIt("click",function(){t.eBV(de);const ct=t.XpG();return t.Njj(ct.reset())}),t.EFF(10),t.k0s(),t.j41(11,"button",10),t.bIt("click",function(){t.eBV(de);const ct=t.XpG();return t.Njj(ct.confirm())}),t.EFF(12),t.k0s()()()()}if(2&Ze){const de=t.sdS(3),We=t.XpG();t.Y8G("nzVisible",We.isVisible)("nzActive",We.isChecked)("nzDropdownMenu",de),t.R7$(6),t.Dyx(We.listOfParsedFilter),t.R7$(3),t.Y8G("disabled",!We.isChecked),t.R7$(),t.SpI(" ",We.locale.filterReset," "),t.R7$(2),t.JRh(We.locale.filterConfirm)}}function N(Ze,Fn){if(1&Ze&&t.eu8(0,2),2&Ze){const de=t.XpG();t.Y8G("ngTemplateOutlet",de.extraTemplate)}}function ke(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"label",3),t.bIt("ngModelChange",function(ct){t.eBV(de);const sn=t.XpG();return t.Njj(sn.onCheckedChange(ct))}),t.k0s()}if(2&Ze){const de=t.XpG();t.AVh("ant-table-selection-select-all-custom",de.showRowSelection),t.Y8G("ngModel",de.checked)("nzDisabled",de.disabled)("nzIndeterminate",de.indeterminate),t.BMQ("aria-label",de.label)}}function ge(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const ct=t.eBV(de).$implicit;return t.Njj(ct.onSelect())}),t.EFF(1),t.k0s()}if(2&Ze){const de=Fn.$implicit;t.R7$(),t.SpI(" ",de.text," ")}}function W(Ze,Fn){if(1&Ze&&(t.j41(0,"div",2)(1,"span",4),t.nrm(2,"span",5),t.k0s(),t.j41(3,"nz-dropdown-menu",null,0)(5,"ul",6),t.Z7z(6,ge,2,1,"li",7,t.fX1),t.k0s()()()),2&Ze){const de=t.sdS(4),We=t.XpG();t.R7$(),t.Y8G("nzDropdownMenu",de),t.R7$(5),t.Dyx(We.listOfSelections)}}function H(Ze,Fn){}function me(Ze,Fn){if(1&Ze&&t.nrm(0,"span",6),2&Ze){const de=t.XpG();t.AVh("active","ascend"===de.sortOrder)}}function qe(Ze,Fn){if(1&Ze&&t.nrm(0,"span",7),2&Ze){const de=t.XpG();t.AVh("active","descend"===de.sortOrder)}}const rt=["nzChecked",""];function Ft(Ze,Fn){}function rn(Ze,Fn){if(1&Ze&&t.DNE(0,Ft,0,0,"ng-template",2),2&Ze){const de=t.XpG(2);t.Y8G("ngTemplateOutlet",de.nzExpandIcon)}}function Cn(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"button",4),t.bIt("expandChange",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.onExpandChange(ct))}),t.k0s()}if(2&Ze){const de=t.XpG(2);t.Y8G("expand",de.nzExpand)("spaceMode",!de.nzShowExpand)}}function Jn(Ze,Fn){if(1&Ze&&(t.nrm(0,"nz-row-indent",1),t.DNE(1,rn,1,1,null,2)(2,Cn,1,2,"button",3)),2&Ze){const de=t.XpG();t.Y8G("indentSize",de.nzIndentSize),t.R7$(),t.vxM(de.nzExpandIcon?1:2)}}function jn(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"label",5),t.bIt("ngModelChange",function(ct){t.eBV(de);const sn=t.XpG();return t.Njj(sn.onCheckedChange(ct))}),t.k0s()}if(2&Ze){const de=t.XpG();t.Y8G("nzDisabled",de.nzDisabled)("ngModel",de.nzChecked)("nzIndeterminate",de.nzIndeterminate),t.BMQ("aria-label",de.nzLabel)}}const Gn=["nzColumnKey",""],zi=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Oi=["[nz-th-extra]","nz-filter-trigger","*"];function po(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"nz-table-filter",6),t.bIt("filterChange",function(ct){t.eBV(de);const sn=t.XpG();return t.Njj(sn.onFilterValueChange(ct))}),t.k0s()}if(2&Ze){const de=t.XpG(),We=t.sdS(3),ct=t.sdS(5);t.Y8G("contentTemplate",We)("extraTemplate",ct)("customFilter",de.nzCustomFilter)("filterMultiple",de.nzFilterMultiple)("listOfFilter",de.nzFilters)}}function Zi(Ze,Fn){if(1&Ze&&t.eu8(0,5),2&Ze){t.XpG();const de=t.sdS(3);t.Y8G("ngTemplateOutlet",de)}}function Vo(Ze,Fn){}function Co(Ze,Fn){if(1&Ze&&t.DNE(0,Vo,0,0,"ng-template",5),2&Ze){const de=t.XpG(),We=t.sdS(7),ct=t.sdS(9);t.Y8G("ngTemplateOutlet",de.nzShowSort?We:ct)}}function zr(Ze,Fn){1&Ze&&(t.SdG(0),t.SdG(1,1))}function rr(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-sorters",7),2&Ze){const de=t.XpG(),We=t.sdS(9);t.Y8G("sortOrder",de.sortOrder)("sortDirections",de.sortDirections)("contentTemplate",We)}}function lt(Ze,Fn){1&Ze&&t.SdG(0,2)}const Ht=["nzSelections",""],$t=["nz-table-content",""];function pn(Ze,Fn){if(1&Ze&&t.nrm(0,"col"),2&Ze){const de=Fn.$implicit;t.xc7("width",de)("min-width",de)}}function hn(Ze,Fn){}function Hn(Ze,Fn){if(1&Ze&&(t.j41(0,"thead",1),t.DNE(1,hn,0,0,"ng-template",2),t.k0s()),2&Ze){const de=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",de.theadTemplate)}}function En(Ze,Fn){}const Xn=["tdElement"],ci=["nz-table-fixed-row",""];function _i(Ze,Fn){}function lo(Ze,Fn){if(1&Ze&&(t.j41(0,"div",5),t.nI1(1,"async"),t.DNE(2,_i,0,0,"ng-template",4),t.k0s()),2&Ze){const de=t.XpG(),We=t.sdS(6);t.xc7("width",t.bMT(1,3,de.hostWidth$),"px"),t.R7$(2),t.Y8G("ngTemplateOutlet",We)}}function bi(Ze,Fn){}function mn(Ze,Fn){if(1&Ze&&t.DNE(0,bi,0,0,"ng-template",4),2&Ze){t.XpG();const de=t.sdS(6);t.Y8G("ngTemplateOutlet",de)}}function Ui(Ze,Fn){1&Ze&&t.SdG(0)}const Mi=["nz-table-measure-row",""];function Ni(Ze,Fn){1&Ze&&t.nrm(0,"td",1,0)}function oo(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"tr",2),t.bIt("listOfAutoWidth",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.onListOfAutoWidthChange(ct))}),t.k0s()}if(2&Ze){const de=t.XpG();t.Y8G("listOfMeasureColumn",de)}}function Gi(Ze,Fn){if(1&Ze&&t.DNE(0,oo,1,1,"tr",1),2&Ze){const de=t.XpG();t.vxM(de.isInsideTable&&Fn.length?0:-1)}}function jo(Ze,Fn){if(1&Ze&&(t.j41(0,"tr",0),t.nrm(1,"nz-embed-empty",3),t.nI1(2,"async"),t.k0s()),2&Ze){const de=t.XpG();t.R7$(),t.Y8G("specificContent",t.bMT(2,1,de.noResult$))}}const Ki=["tableHeaderElement"],Jo=["tableBodyElement"],sr=(Ze,Fn)=>({$implicit:Ze,index:Fn});function fo(Ze,Fn){if(1&Ze&&(t.j41(0,"div",5,1),t.nrm(2,"table",7),t.k0s()),2&Ze){const de=t.XpG(2);t.Y8G("ngStyle",de.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",de.scrollX)("listOfColWidth",de.listOfColWidth)("contentTemplate",de.contentTemplate)}}function uo(Ze,Fn){}function pr(Ze,Fn){if(1&Ze&&(t.qex(0),t.DNE(1,uo,0,0,"ng-template",11),t.bVm()),2&Ze){const de=Fn.$implicit,We=Fn.index,ct=t.XpG(3);t.R7$(),t.Y8G("ngTemplateOutlet",ct.virtualTemplate)("ngTemplateOutletContext",t.l_i(2,sr,de,We))}}function Lo(Ze,Fn){if(1&Ze&&(t.j41(0,"cdk-virtual-scroll-viewport",8,1)(2,"table",9)(3,"tbody"),t.DNE(4,pr,2,5,"ng-container",10),t.k0s()()()),2&Ze){const de=t.XpG(2);t.xc7("height",de.data.length?de.scrollY:de.noDataVirtualHeight),t.Y8G("itemSize",de.virtualItemSize)("maxBufferPx",de.virtualMaxBufferPx)("minBufferPx",de.virtualMinBufferPx),t.R7$(2),t.Y8G("scrollX",de.scrollX)("listOfColWidth",de.listOfColWidth),t.R7$(2),t.Y8G("cdkVirtualForOf",de.data)("cdkVirtualForTrackBy",de.virtualForTrackBy)}}function Ur(Ze,Fn){if(1&Ze&&(t.j41(0,"div",3,0),t.nrm(2,"table",4),t.k0s(),t.DNE(3,fo,3,4,"div",5)(4,Lo,5,9,"cdk-virtual-scroll-viewport",6)),2&Ze){const de=t.XpG();t.Y8G("ngStyle",de.headerStyleMap),t.R7$(2),t.Y8G("scrollX",de.scrollX)("listOfColWidth",de.listOfColWidth)("theadTemplate",de.theadTemplate),t.R7$(),t.vxM(de.virtualTemplate?4:3)}}function qi(Ze,Fn){if(1&Ze&&(t.j41(0,"div",2,1),t.nrm(2,"table",12),t.k0s()),2&Ze){const de=t.XpG();t.Y8G("ngStyle",de.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",de.scrollX)("listOfColWidth",de.listOfColWidth)("theadTemplate",de.theadTemplate)("contentTemplate",de.contentTemplate)}}function Zn(Ze,Fn){if(1&Ze&&(t.qex(0),t.EFF(1),t.bVm()),2&Ze){const de=t.XpG();t.R7$(),t.JRh(de.title)}}function yi(Ze,Fn){if(1&Ze&&(t.qex(0),t.EFF(1),t.bVm()),2&Ze){const de=t.XpG();t.R7$(),t.JRh(de.footer)}}function wr(Ze,Fn){}function ls(Ze,Fn){if(1&Ze&&t.DNE(0,wr,0,0,"ng-template",4),2&Ze){t.XpG();const de=t.sdS(10);t.Y8G("ngTemplateOutlet",de)}}function qr(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-title-footer",6),2&Ze){const de=t.XpG();t.Y8G("title",de.nzTitle)}}function Zo(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-inner-scroll",7),2&Ze){const de=t.XpG(),We=t.sdS(3),ct=t.sdS(12);t.Y8G("data",de.data)("scrollX",de.scrollX)("scrollY",de.scrollY)("contentTemplate",ct)("listOfColWidth",de.listOfAutoColWidth)("theadTemplate",de.theadTemplate)("verticalScrollBarWidth",de.verticalScrollBarWidth)("virtualTemplate",de.nzVirtualScrollDirective?de.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",de.nzVirtualItemSize)("virtualMaxBufferPx",de.nzVirtualMaxBufferPx)("virtualMinBufferPx",de.nzVirtualMinBufferPx)("tableMainElement",We)("virtualForTrackBy",de.nzVirtualForTrackBy)("noDataVirtualHeight",de.noDataVirtualHeight)}}function bs(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-inner-default",8),2&Ze){const de=t.XpG(),We=t.sdS(12);t.Y8G("tableLayout",de.nzTableLayout)("listOfColWidth",de.listOfManualColWidth)("theadTemplate",de.theadTemplate)("contentTemplate",We)}}function tt(Ze,Fn){if(1&Ze&&t.nrm(0,"nz-table-title-footer",9),2&Ze){const de=t.XpG();t.Y8G("footer",de.nzFooter)}}function Ce(Ze,Fn){}function Ve(Ze,Fn){if(1&Ze&&t.DNE(0,Ce,0,0,"ng-template",4),2&Ze){t.XpG();const de=t.sdS(10);t.Y8G("ngTemplateOutlet",de)}}function nt(Ze,Fn){if(1&Ze){const de=t.RV6();t.j41(0,"nz-pagination",11),t.bIt("nzPageSizeChange",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.onPageSizeChange(ct))})("nzPageIndexChange",function(ct){t.eBV(de);const sn=t.XpG(2);return t.Njj(sn.onPageIndexChange(ct))}),t.k0s()}if(2&Ze){const de=t.XpG(2);t.Y8G("hidden",!de.showPagination)("nzShowSizeChanger",de.nzShowSizeChanger)("nzPageSizeOptions",de.nzPageSizeOptions)("nzItemRender",de.nzItemRender)("nzShowQuickJumper",de.nzShowQuickJumper)("nzHideOnSinglePage",de.nzHideOnSinglePage)("nzShowTotal",de.nzShowTotal)("nzSize","small"===de.nzPaginationType?"small":"default"===de.nzSize?"default":"small")("nzPageSize",de.nzPageSize)("nzTotal",de.nzTotal)("nzSimple",de.nzSimple)("nzPageIndex",de.nzPageIndex)}}function Mt(Ze,Fn){if(1&Ze&&t.DNE(0,nt,1,12,"nz-pagination",10),2&Ze){const de=t.XpG();t.vxM(de.nzShowPagination&&de.data.length?0:-1)}}function Yt(Ze,Fn){1&Ze&&t.SdG(0)}const tn=["contentTemplate"];function on(Ze,Fn){1&Ze&&t.SdG(0)}function bn(Ze,Fn){}function Mn(Ze,Fn){if(1&Ze&&t.DNE(0,bn,0,0,"ng-template",1),2&Ze){t.XpG();const de=t.sdS(1);t.Y8G("ngTemplateOutlet",de)}}let xn=(()=>{class Ze{onVisibleChange(de){this.nzVisible=de,this.nzVisibleChange.next(de)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}constructor(de,We,ct,sn){this.nzConfigService=de,this.ngZone=We,this.cdr=ct,this.destroy$=sn,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.nzDropdown.nativeElement,"click").pipe((0,w.Q)(this.destroy$)).subscribe(de=>{de.stopPropagation()})})}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(Ie.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(ve.y4))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-filter-trigger"]],viewQuery:function(We,ct){if(1&We&&t.GBs(fe.j3,7,t.aKT),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.nzDropdown=sn.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],standalone:!0,features:[t.Jv_([ve.y4]),t.GFd,t.aNF],ngContentSelectors:ze,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"span",0),t.bIt("nzVisibleChange",function(Vn){return ct.onVisibleChange(Vn)}),t.SdG(1),t.k0s()),2&We&&(t.AVh("active",ct.nzActive)("ant-table-filter-open",ct.nzVisible),t.Y8G("nzBackdrop",ct.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",ct.nzDropdownMenu)("nzVisible",ct.nzVisible))},dependencies:[fe.Cu,fe.j3],encapsulation:2,changeDetection:0})}return(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzBackdrop",void 0),Ze})(),Kn=(()=>{class Ze{check(de){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(We=>We===de?{...We,checked:!de.checked}:We),de.checked=!de.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(We=>({...We,checked:We===de})),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(de){this.isVisible=de,de?this.listOfChecked=this.listOfParsedFilter.filter(We=>We.checked).map(We=>We.value):this.emitFilterData()}emitFilterData(){const de=this.listOfParsedFilter.filter(We=>We.checked).map(We=>We.value);(0,E.r1)(this.listOfChecked,de)||this.filterChange.emit(this.filterMultiple?de:de.length>0?de[0]:null)}parseListOfFilter(de,We){return de.map(ct=>({text:ct.text,value:ct.value,checked:!We&&!!ct.byDefault}))}getCheckedStatus(de){return de.some(We=>We.checked)}constructor(de,We){this.cdr=de,this.i18n=We,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new t.bkB,this.destroy$=new e.B,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}ngOnInit(){this.i18n.localeChange.pipe((0,w.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(de){const{listOfFilter:We}=de;We&&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()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.gRc),t.rXU(U.Og))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[t.OA$,t.aNF],decls:4,vars:2,consts:[["filterMenu","nzDropdownMenu"],[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[3,"nzVisibleChange","nzVisible","nzActive","nzDropdownMenu"],["nz-icon","","nzType","filter","nzTheme","fill"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"click","disabled"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"click","nzSelected"],["nz-radio","",3,"ngModel"],["nz-checkbox","",3,"ngModel"],["nz-radio","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(We,ct){1&We&&(t.j41(0,"span",1),t.DNE(1,Ke,0,0,"ng-template",2),t.k0s(),t.DNE(2,ce,13,6)(3,N,1,1,"ng-container",2)),2&We&&(t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate),t.R7$(),t.vxM(ct.customFilter?3:2))},dependencies:[Y.T3,xn,S.Y3,S.Dn,fe.Cu,se.jS,se.CU,fe.wQ,R.lx,he.IJ,he.$g,z.YN,z.BC,z.vS,Z.Zw,Z.aO,Be.c,Pt.p],encapsulation:2,changeDetection:0})}return Ze})(),qn=(()=>{class Ze{constructor(){this.expand=!1,this.spaceMode=!1,this.expandChange=new t.bkB}onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(We,ct){1&We&&t.bIt("click",function(){return ct.onHostClick()}),2&We&&(t.Mr5("type","button"),t.AVh("ant-table-row-expand-icon-expanded",!ct.spaceMode&&!0===ct.expand)("ant-table-row-expand-icon-collapsed",!ct.spaceMode&&!1===ct.expand)("ant-table-row-expand-icon-spaced",ct.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"},standalone:!0})}return Ze})(),pi=(()=>{class Ze{constructor(){this.indentSize=0}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(We,ct){2&We&&t.xc7("padding-left",ct.indentSize,"px")},inputs:{indentSize:"indentSize"},standalone:!0})}return Ze})(),ei=(()=>{class Ze{constructor(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.label=null,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new t.bkB}onCheckedChange(de){this.checked=de,this.checkedChange.emit(de)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["selectionMenu","nzDropdownMenu"],["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate"],[1,"ant-table-selection-extra"],["nz-checkbox","",3,"ngModelChange","ngModel","nzDisabled","nzIndeterminate"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(We,ct){1&We&&t.DNE(0,ke,1,6,"label",1)(1,W,8,1,"div",2),2&We&&(t.vxM(ct.showCheckbox?0:-1),t.R7$(),t.vxM(ct.showRowSelection?1:-1))},dependencies:[z.YN,z.BC,z.vS,he.IJ,he.$g,fe.Cu,se.jS,se.CU,fe.j3,fe.wQ,S.Y3,S.Dn],encapsulation:2,changeDetection:0})}return Ze})(),li=(()=>{class Ze{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(de){const{sortDirections:We}=de;We&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},standalone:!0,features:[t.OA$,t.aNF],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",1,"ant-table-column-sorter-up",3,"active"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down",3,"active"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(We,ct){1&We&&(t.j41(0,"span",0),t.DNE(1,H,0,0,"ng-template",1),t.k0s(),t.j41(2,"span",2)(3,"span",3),t.DNE(4,me,1,2,"span",4)(5,qe,1,2,"span",5),t.k0s()()),2&We&&(t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate),t.R7$(),t.AVh("ant-table-column-sorter-full",ct.isDown&&ct.isUp),t.R7$(2),t.vxM(ct.isUp?4:-1),t.R7$(),t.vxM(ct.isDown?5:-1))},dependencies:[S.Y3,S.Dn,Y.T3],encapsulation:2,changeDetection:0})}return Ze})(),ai=(()=>{class Ze{setAutoLeftWidth(de){this.renderer.setStyle(this.elementRef.nativeElement,"left",de)}setAutoRightWidth(de){this.renderer.setStyle(this.elementRef.nativeElement,"right",de)}setIsFirstRight(de){this.setFixClass(de,"ant-table-cell-fix-right-first")}setIsLastLeft(de){this.setFixClass(de,"ant-table-cell-fix-left-last")}setFixClass(de,We){this.renderer.removeClass(this.elementRef.nativeElement,We),de&&this.renderer.addClass(this.elementRef.nativeElement,We)}constructor(de,We){this.renderer=de,this.elementRef=We,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new e.B,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 de=We=>"string"==typeof We&&""!==We?We:null;this.setAutoLeftWidth(de(this.nzLeft)),this.setAutoRightWidth(de(this.nzRight)),this.changes$.next()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(We,ct){2&We&&(t.xc7("position",ct.isFixed?"sticky":null),t.AVh("ant-table-cell-fix-right",ct.isFixedRight)("ant-table-cell-fix-left",ct.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},standalone:!0,features:[t.OA$]})}return Ze})(),mi=(()=>{class Ze{setTheadTemplate(de){this.theadTemplate$.next(de)}setHasFixLeft(de){this.hasFixLeft$.next(de)}setHasFixRight(de){this.hasFixRight$.next(de)}setTableWidthConfig(de){this.tableWidthConfigPx$.next(de)}setListOfTh(de){let We=0;de.forEach(sn=>{We+=sn.colspan&&+sn.colspan||sn.colSpan&&+sn.colSpan||1});const ct=de.map(sn=>sn.nzWidth);this.columnCount$.next(We),this.listOfThWidthConfigPx$.next(ct)}setListOfMeasureColumn(de){const We=[];de.forEach(ct=>{const sn=ct.colspan&&+ct.colspan||ct.colSpan&&+ct.colSpan||1;for(let Vn=0;Vn`${We}px`))}setShowEmpty(de){this.showEmpty$.next(de)}setNoResult(de){this.noResult$.next(de)}setScroll(de,We){const ct=!(!de&&!We);ct||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(ct)}constructor(){this.theadTemplate$=new M.m(1),this.hasFixLeft$=new M.m(1),this.hasFixRight$=new M.m(1),this.hostWidth$=new M.m(1),this.columnCount$=new M.m(1),this.showEmpty$=new M.m(1),this.noResult$=new M.m(1),this.listOfThWidthConfigPx$=new K.t([]),this.tableWidthConfigPx$=new K.t([]),this.manualWidthConfigPx$=(0,L.z)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,F.T)(([de,We])=>de.length?de:We)),this.listOfAutoWidthPx$=new M.m(1),this.listOfListOfThWidthPx$=(0,j.h)(this.manualWidthConfigPx$,(0,L.z)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,F.T)(([de,We])=>de.length===We.length?de.map((ct,sn)=>"0px"===ct?We[sn]||null:We[sn]||ct):We))),this.listOfMeasureColumn$=new M.m(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,F.T)(de=>de.map(We=>parseInt(We,10)))),this.enableAutoMeasure$=new M.m(1)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275prov=t.jDH({token:Ze,factory:Ze.\u0275fac})}return Ze})(),Ei=(()=>{class Ze{constructor(de){this.isInsideTable=!1,this.isInsideTable=!!de}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-cell",ct.isInsideTable)},standalone:!0})}return Ze})(),Xi=(()=>{class Ze{updatePageSize(de){this.pageSize$.next(de)}updateFrontPagination(de){this.frontPagination$.next(de)}updatePageIndex(de){this.pageIndex$.next(de)}updateListOfData(de){this.listOfData$.next(de)}updateListOfCustomColumn(de){this.listOfCustomColumn$.next(de)}constructor(){this.destroy$=new e.B,this.pageIndex$=new K.t(1),this.frontPagination$=new K.t(!0),this.pageSize$=new K.t(10),this.listOfData$=new K.t([]),this.listOfCustomColumn$=new K.t([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,X.F)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,X.F)()),this.listOfCalcOperator$=new K.t([]),this.queryParams$=(0,L.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,V.B)(0),(0,x.i)(1),(0,F.T)(([de,We,ct])=>({pageIndex:de,pageSize:We,sort:ct.filter(sn=>sn.sortFn).map(sn=>({key:sn.key,value:sn.sortOrder})),filter:ct.filter(sn=>sn.filterFn).map(sn=>({key:sn.key,value:sn.filterValue}))}))),this.listOfDataAfterCalc$=(0,L.z)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,F.T)(([de,We])=>{let ct=[...de];const sn=We.filter(Ln=>{const{filterValue:fi,filterFn:ki}=Ln;return!(null==fi||Array.isArray(fi)&&0===fi.length)&&"function"==typeof ki});for(const Ln of sn){const{filterFn:fi,filterValue:ki}=Ln;ct=ct.filter(bo=>fi(ki,bo))}const Vn=We.filter(Ln=>null!==Ln.sortOrder&&"function"==typeof Ln.sortFn).sort((Ln,fi)=>+fi.sortPriority-+Ln.sortPriority);return We.length&&ct.sort((Ln,fi)=>{for(const ki of Vn){const{sortFn:bo,sortOrder:hi}=ki;if(bo&&hi){const ho=bo(Ln,fi,hi);if(0!==ho)return"ascend"===hi?ho:-ho}}return 0}),ct})),this.listOfFrontEndCurrentPageData$=(0,L.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,w.Q)(this.destroy$),(0,oe.p)(de=>{const[We,ct,sn]=de;return We<=(Math.ceil(sn.length/ct)||1)}),(0,F.T)(([de,We,ct])=>ct.slice((de-1)*We,de*We))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,J.n)(de=>de?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,J.n)(de=>de?this.listOfDataAfterCalc$:this.listOfData$),(0,F.T)(de=>de.length),(0,X.F)())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275prov=t.jDH({token:Ze,factory:Ze.\u0275fac})}return Ze})(),no=(()=>{class Ze{constructor(){this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzIndentSize=0,this.nzShowExpand=!1,this.nzShowCheckbox=!1,this.nzExpand=!1,this.nzExpandIcon=null,this.nzCheckedChange=new t.bkB,this.nzExpandChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(de){this.nzChecked=de,this.nzCheckedChange.emit(de)}onExpandChange(de){this.nzExpand=de,this.nzExpandChange.emit(de)}ngOnChanges(de){const We=fi=>fi&&fi.firstChange&&void 0!==fi.currentValue,{nzExpand:ct,nzChecked:sn,nzShowExpand:Vn,nzShowCheckbox:Ln}=de;Vn&&(this.isNzShowExpandChanged=!0),Ln&&(this.isNzShowCheckboxChanged=!0),We(ct)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),We(sn)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-cell-with-append",ct.nzShowExpand||ct.nzIndentSize>0)("ant-table-selection-column",ct.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",t.L39],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzExpand:[2,"nzExpand","nzExpand",t.L39],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:rt,ngContentSelectors:ze,decls:3,vars:2,consts:[["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate"],[3,"indentSize"],[3,"ngTemplateOutlet"],["nz-row-expand-button","",3,"expand","spaceMode"],["nz-row-expand-button","",3,"expandChange","expand","spaceMode"],["nz-checkbox","",3,"ngModelChange","nzDisabled","ngModel","nzIndeterminate"]],template:function(We,ct){1&We&&(t.NAR(),t.DNE(0,Jn,3,2)(1,jn,1,4,"label",0),t.SdG(2)),2&We&&(t.vxM(ct.nzShowExpand||ct.nzIndentSize>0?0:-1),t.R7$(),t.vxM(ct.nzShowCheckbox?1:-1))},dependencies:[pi,qn,Y.T3,he.IJ,he.$g,z.YN,z.BC,z.vS],encapsulation:2,changeDetection:0})}return Ze})(),ao=(()=>{class Ze{getNextSortDirection(de,We){const ct=de.indexOf(We);return ct===de.length-1?de[0]:de[ct+1]}setSortOrder(de){this.sortOrderChange$.next(de)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(de){this.nzFilterChange.emit(de),this.nzFilterValue=de,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}constructor(de,We,ct,sn){this.host=de,this.cdr=We,this.ngZone=ct,this.destroy$=sn,this.manualClickOrder$=new e.B,this.calcOperatorChange$=new e.B,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new e.B,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 t.bkB,this.nzSortOrderChange=new t.bkB,this.nzFilterChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,m.R)(this.host.nativeElement,"click").pipe((0,oe.p)(()=>this.nzShowSort),(0,w.Q)(this.destroy$)).subscribe(()=>{const de=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(de),this.manualClickOrder$.next(this)})})),this.sortOrderChange$.pipe((0,w.Q)(this.destroy$)).subscribe(de=>{this.sortOrder!==de&&(this.sortOrder=de,this.nzSortOrderChange.emit(de)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(de){const{nzSortDirections:We,nzFilters:ct,nzSortOrder:sn,nzSortFn:Vn,nzFilterFn:Ln,nzSortPriority:fi,nzFilterMultiple:ki,nzShowSort:bo,nzShowFilter:hi}=de;We&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),sn&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),bo&&(this.isNzShowSortChanged=!0),hi&&(this.isNzShowFilterChanged=!0);const ho=Oo=>Oo&&Oo.firstChange&&void 0!==Oo.currentValue;if((ho(sn)||ho(Vn))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),ho(ct)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(ct||ki)&&this.nzShowFilter){const Oo=this.nzFilters.filter(ts=>ts.byDefault).map(ts=>ts.value);this.nzFilterValue=this.nzFilterMultiple?Oo:Oo[0]||null}(Vn||Ln||fi||ct)&&this.updateCalcOperator()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.SKi),t.rXU(ve.y4))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-column-has-sorters",ct.nzShowSort)("ant-table-column-sort","descend"===ct.sortOrder||"ascend"===ct.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",t.L39],nzShowFilter:[2,"nzShowFilter","nzShowFilter",t.L39],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},standalone:!0,features:[t.Jv_([ve.y4]),t.GFd,t.OA$,t.aNF],attrs:Gn,ngContentSelectors:Oi,decls:10,vars:1,consts:[["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"ngTemplateOutlet"],[3,"filterChange","contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(We,ct){1&We&&(t.NAR(zi),t.DNE(0,po,1,5,"nz-table-filter",4)(1,Zi,1,1,"ng-container",5)(2,Co,1,1,"ng-template",null,0,t.C5r)(4,zr,2,0,"ng-template",null,1,t.C5r)(6,rr,1,3,"ng-template",null,2,t.C5r)(8,lt,1,0,"ng-template",null,3,t.C5r)),2&We&&t.vxM(ct.nzShowFilter||ct.nzCustomFilter?0:1)},dependencies:[Kn,Y.T3,li],encapsulation:2,changeDetection:0})}return Ze})(),ro=(()=>{class Ze{constructor(de,We){this.renderer=de,this.elementRef=We,this.changes$=new e.B,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(de){const{nzWidth:We,colspan:ct,rowspan:sn,colSpan:Vn,rowSpan:Ln}=de;if(ct||Vn){const fi=this.colspan||this.colSpan;(0,E.gD)(fi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${fi}`)}if(sn||Ln){const fi=this.rowspan||this.rowSpan;(0,E.gD)(fi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${fi}`)}(We||ct)&&this.changes$.next()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},standalone:!0,features:[t.OA$]})}return Ze})(),An=(()=>{class Ze{constructor(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(de){this.nzChecked=de,this.nzCheckedChange.emit(de)}ngOnChanges(de){const We=fi=>fi&&fi.firstChange&&void 0!==fi.currentValue,{nzChecked:ct,nzSelections:sn,nzShowExpand:Vn,nzShowCheckbox:Ln}=de;Vn&&(this.isNzShowExpandChanged=!0),Ln&&(this.isNzShowCheckboxChanged=!0),We(sn)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),We(ct)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:Ht,ngContentSelectors:ze,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"nz-table-selection",0),t.bIt("checkedChange",function(Vn){return ct.onCheckedChange(Vn)}),t.k0s(),t.SdG(1)),2&We&&t.Y8G("checked",ct.nzChecked)("disabled",ct.nzDisabled)("indeterminate",ct.nzIndeterminate)("label",ct.nzLabel)("listOfSelections",ct.nzSelections)("showCheckbox",ct.nzShowCheckbox)("showRowSelection",ct.nzShowRowSelection)},dependencies:[ei],encapsulation:2,changeDetection:0})}return Ze})(),_o=(()=>{class Ze{constructor(){this.nzAlign=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(We,ct){2&We&&t.xc7("text-align",ct.nzAlign)},inputs:{nzAlign:"nzAlign"},standalone:!0})}return Ze})(),Do=(()=>{class Ze{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(We,ct){2&We&&(t.xc7("table-layout",ct.tableLayout)("width",ct.scrollX)("min-width",ct.scrollX?"100%":null),t.AVh("ant-table-fixed",ct.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},standalone:!0,features:[t.aNF],attrs:$t,ngContentSelectors:ze,decls:5,vars:2,consts:[[3,"width","minWidth"],[1,"ant-table-thead"],[3,"ngTemplateOutlet"]],template:function(We,ct){1&We&&(t.NAR(),t.Z7z(0,pn,1,4,"col",0,t.Vm6),t.DNE(2,Hn,2,1,"thead",1)(3,En,0,0,"ng-template",2),t.SdG(4)),2&We&&(t.Dyx(ct.listOfColWidth),t.R7$(2),t.vxM(ct.theadTemplate?2:-1),t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate))},dependencies:[Y.T3],encapsulation:2,changeDetection:0})}return Ze})(),Qo=(()=>{class Ze{constructor(de,We){this.nzTableStyleService=de,this.renderer=We,this.hostWidth$=new K.t(null),this.enableAutoMeasure$=new K.t(!1),this.destroy$=new e.B}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:de,hostWidth$:We}=this.nzTableStyleService;de.pipe((0,w.Q)(this.destroy$)).subscribe(this.enableAutoMeasure$),We.pipe((0,w.Q)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,w.Q)(this.destroy$)).subscribe(de=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${de}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi),t.rXU(t.sFG))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(We,ct){if(1&We&&t.GBs(Xn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.tdElement=sn.first)}},standalone:!0,features:[t.aNF],attrs:ci,ngContentSelectors:ze,decls:7,vars:3,consts:[["tdElement",""],["contentTemplate",""],[1,"nz-disable-td","ant-table-cell"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden",3,"width"],[3,"ngTemplateOutlet"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"td",2,0),t.DNE(2,lo,3,5,"div",3),t.nI1(3,"async"),t.DNE(4,mn,1,1,null,4),t.k0s(),t.DNE(5,Ui,1,0,"ng-template",null,1,t.C5r)),2&We&&(t.R7$(2),t.vxM(t.bMT(3,1,ct.enableAutoMeasure$)?2:4))},dependencies:[Y.Jj,Y.T3],encapsulation:2,changeDetection:0})}return Ze})(),Mr=(()=>{class Ze{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},standalone:!0,features:[t.aNF],decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(We,ct){1&We&&(t.j41(0,"div",0),t.nrm(1,"table",1),t.k0s()),2&We&&(t.R7$(),t.Y8G("contentTemplate",ct.contentTemplate)("tableLayout",ct.tableLayout)("listOfColWidth",ct.listOfColWidth)("theadTemplate",ct.theadTemplate))},dependencies:[Do],encapsulation:2,changeDetection:0})}return Ze})(),vr=(()=>{class Ze{constructor(de,We){this.nzResizeObserver=de,this.ngZone=We,this.listOfMeasureColumn=[],this.listOfAutoWidth=new t.bkB,this.destroy$=new e.B}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Ee.Z)(this.listOfTdElement)).pipe((0,J.n)(de=>(0,L.z)(de.toArray().map(We=>this.nzResizeObserver.observe(We).pipe((0,F.T)(([ct])=>{const{width:sn}=ct.target.getBoundingClientRect();return Math.floor(sn)}))))),(0,V.B)(16),(0,w.Q)(this.destroy$)).subscribe(de=>{this.ngZone instanceof t.SKi&&t.SKi.isInAngularZone()?this.listOfAutoWidth.next(de):this.ngZone.run(()=>this.listOfAutoWidth.next(de))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(Le.xH),t.rXU(t.SKi))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(We,ct){if(1&We&&t.GBs(Xn,5),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.listOfTdElement=sn)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},standalone:!0,features:[t.aNF],attrs:Mi,decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(We,ct){1&We&&t.Z7z(0,Ni,2,0,"td",1,t.Vm6),2&We&&t.Dyx(ct.listOfMeasureColumn)},encapsulation:2,changeDetection:0})}return Ze})(),Sr=(()=>{class Ze{constructor(de){if(this.nzTableStyleService=de,this.isInsideTable=!1,this.showEmpty$=new K.t(!1),this.noResult$=new K.t(void 0),this.listOfMeasureColumn$=new K.t([]),this.destroy$=new e.B,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:We,noResult$:ct,listOfMeasureColumn$:sn}=this.nzTableStyleService;ct.pipe((0,w.Q)(this.destroy$)).subscribe(this.noResult$),sn.pipe((0,w.Q)(this.destroy$)).subscribe(this.listOfMeasureColumn$),We.pipe((0,w.Q)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(de){this.nzTableStyleService.setListOfAutoWidth(de)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tbody"]],hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-tbody",ct.isInsideTable)},standalone:!0,features:[t.aNF],ngContentSelectors:ze,decls:5,vars:6,consts:[["nz-table-fixed-row","",1,"ant-table-placeholder"],["nz-table-measure-row","",3,"listOfMeasureColumn"],["nz-table-measure-row","",3,"listOfAutoWidth","listOfMeasureColumn"],["nzComponentName","table",3,"specificContent"]],template:function(We,ct){if(1&We&&(t.NAR(),t.DNE(0,Gi,1,1),t.nI1(1,"async"),t.SdG(2),t.DNE(3,jo,3,3,"tr",0),t.nI1(4,"async")),2&We){let sn;t.vxM((sn=t.bMT(1,2,ct.listOfMeasureColumn$))?0:-1,sn),t.R7$(3),t.vxM(t.bMT(4,4,ct.showEmpty$)?3:-1)}},dependencies:[Y.Jj,vr,Qo,wt._v,wt.E8],encapsulation:2,changeDetection:0})}return Ze})(),fr=(()=>{class Ze{setScrollPositionClassName(de=!1){const{scrollWidth:We,scrollLeft:ct,clientWidth:sn}=this.tableBodyElement.nativeElement,Vn="ant-table-ping-left",Ln="ant-table-ping-right";We===sn&&0!==We||de?(this.renderer.removeClass(this.tableMainElement,Vn),this.renderer.removeClass(this.tableMainElement,Ln)):0===ct?(this.renderer.removeClass(this.tableMainElement,Vn),this.renderer.addClass(this.tableMainElement,Ln)):We===ct+sn?(this.renderer.removeClass(this.tableMainElement,Ln),this.renderer.addClass(this.tableMainElement,Vn)):(this.renderer.addClass(this.tableMainElement,Vn),this.renderer.addClass(this.tableMainElement,Ln))}constructor(de,We,ct,sn){this.renderer=de,this.ngZone=We,this.platform=ct,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=Vn=>Vn,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDataVirtualHeight="182px",this.data$=new e.B,this.scroll$=new e.B,this.destroy$=new e.B}ngOnChanges(de){const{scrollX:We,scrollY:ct,data:sn}=de;(We||ct)&&(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 de=this.scroll$.pipe((0,Ee.Z)(null),(0,Oe.c)(0),(0,J.n)(()=>(0,m.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Ee.Z)(!0))),(0,w.Q)(this.destroy$)),We=this.resizeService.subscribe().pipe((0,w.Q)(this.destroy$)),ct=this.data$.pipe((0,w.Q)(this.destroy$));(0,j.h)(de,We,ct,this.scroll$).pipe((0,Ee.Z)(!0),(0,Oe.c)(0),(0,w.Q)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),de.pipe((0,oe.p)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.SKi),t.rXU(zt.OD),t.rXU(ve.cB))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-inner-scroll"]],viewQuery:function(We,ct){if(1&We&&(t.GBs(Ki,5,t.aKT),t.GBs(Jo,5,t.aKT),t.GBs(gt.d6,5,gt.d6)),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.tableHeaderElement=sn.first),t.mGM(sn=t.lsd())&&(ct.tableBodyElement=sn.first),t.mGM(sn=t.lsd())&&(ct.cdkVirtualScrollViewport=sn.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",noDataVirtualHeight:"noDataVirtualHeight"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:1,consts:[["tableHeaderElement",""],["tableBodyElement",""],[1,"ant-table-content",3,"ngStyle"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],[1,"ant-table-body",3,"ngStyle"],[3,"itemSize","maxBufferPx","minBufferPx","height"],["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"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(We,ct){1&We&&t.DNE(0,Ur,5,5)(1,qi,3,5,"div",2),2&We&&t.vxM(ct.scrollY?0:1)},dependencies:[Do,Y.B3,gt.E9,gt.yg,gt.E$,gt.d6,Y.T3,Sr],encapsulation:2,changeDetection:0})}return Ze})(),Bo=(()=>{class Ze{constructor(de){this.templateRef=de}static ngTemplateContextGuard(de,We){return!0}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"],standalone:!0})}return Ze})(),$s=(()=>{class Ze{constructor(){this.title=null,this.footer=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-title",null!==ct.title)("ant-table-footer",null!==ct.footer)},inputs:{title:"title",footer:"footer"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(We,ct){1&We&&t.DNE(0,Zn,2,1,"ng-container",0)(1,yi,2,1,"ng-container",0),2&We&&(t.Y8G("nzStringTemplateOutlet",ct.title),t.R7$(),t.Y8G("nzStringTemplateOutlet",ct.footer))},dependencies:[re.C,re.m],encapsulation:2,changeDetection:0})}return Ze})(),Uo=(()=>{class Ze{onPageSizeChange(de){this.nzTableDataService.updatePageSize(de)}onPageIndexChange(de){this.nzTableDataService.updatePageIndex(de)}constructor(de,We,ct,sn,Vn,Ln,fi){this.elementRef=de,this.nzResizeObserver=We,this.nzConfigService=ct,this.cdr=sn,this.nzTableStyleService=Vn,this.nzTableDataService=Ln,this.directionality=fi,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=ki=>ki,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.noDataVirtualHeight="182px",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 t.bkB,this.nzPageIndexChange=new t.bkB,this.nzQueryParams=new t.bkB,this.nzCurrentPageDataChange=new t.bkB,this.nzCustomColumnChange=new t.bkB,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 e.B,this.templateMode$=new K.t(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,w.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){const{pageIndexDistinct$:de,pageSizeDistinct$:We,listOfCurrentPageData$:ct,total$:sn,queryParams$:Vn,listOfCustomColumn$:Ln}=this.nzTableDataService,{theadTemplate$:fi,hasFixLeft$:ki,hasFixRight$:bo}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.dir=hi,this.cdr.detectChanges()}),Vn.pipe((0,w.Q)(this.destroy$)).subscribe(this.nzQueryParams),de.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{hi!==this.nzPageIndex&&(this.nzPageIndex=hi,this.nzPageIndexChange.next(hi))}),We.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{hi!==this.nzPageSize&&(this.nzPageSize=hi,this.nzPageSizeChange.next(hi))}),sn.pipe((0,w.Q)(this.destroy$),(0,oe.p)(()=>this.nzFrontPagination)).subscribe(hi=>{hi!==this.nzTotal&&(this.nzTotal=hi,this.cdr.markForCheck())}),ct.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.data=hi,this.nzCurrentPageDataChange.next(hi),this.cdr.markForCheck()}),Ln.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.nzCustomColumn=hi,this.nzCustomColumnChange.next(hi),this.cdr.markForCheck()}),fi.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.theadTemplate=hi,this.cdr.markForCheck()}),ki.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.hasFixLeft=hi,this.cdr.markForCheck()}),bo.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.hasFixRight=hi,this.cdr.markForCheck()}),(0,L.z)([sn,this.templateMode$]).pipe((0,F.T)(([hi,ho])=>0===hi&&!ho),(0,w.Q)(this.destroy$)).subscribe(hi=>{this.nzTableStyleService.setShowEmpty(hi)}),this.verticalScrollBarWidth=(0,E.nS)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.listOfAutoColWidth=hi,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,w.Q)(this.destroy$)).subscribe(hi=>{this.listOfManualColWidth=hi,this.cdr.markForCheck()})}ngOnChanges(de){const{nzScroll:We,nzPageIndex:ct,nzPageSize:sn,nzFrontPagination:Vn,nzData:Ln,nzCustomColumn:fi,nzWidthConfig:ki,nzNoResult:bo,nzTemplateMode:hi}=de;ct&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),sn&&this.nzTableDataService.updatePageSize(this.nzPageSize),Ln&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),fi&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),Vn&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),We&&this.setScrollOnChanges(),ki&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),hi&&this.templateMode$.next(this.nzTemplateMode),bo&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,F.T)(([de])=>{const{width:We}=de.target.getBoundingClientRect();return Math.floor(We-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,w.Q)(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}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(Le.xH),t.rXU(Ie.yx),t.rXU(t.gRc),t.rXU(mi),t.rXU(Xi),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table"]],contentQueries:function(We,ct,sn){if(1&We&&t.wni(sn,Bo,5),2&We){let Vn;t.mGM(Vn=t.lsd())&&(ct.nzVirtualScrollDirective=Vn.first)}},viewQuery:function(We,ct){if(1&We&&t.GBs(fr,5),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.nzTableInnerScrollComponent=sn.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-wrapper-rtl","rtl"===ct.dir)("ant-table-custom-column",ct.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",noDataVirtualHeight:"noDataVirtualHeight",nzPaginationType:"nzPaginationType",nzFrontPagination:[2,"nzFrontPagination","nzFrontPagination",t.L39],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",t.L39],nzShowPagination:[2,"nzShowPagination","nzShowPagination",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",t.L39],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",t.L39],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],standalone:!0,features:[t.Jv_([mi,Xi]),t.GFd,t.OA$,t.aNF],ngContentSelectors:ze,decls:13,vars:26,consts:[["tableMainElement",""],["paginationTemplate",""],["contentTemplate",""],[3,"nzDelay","nzSpinning","nzIndicator"],[3,"ngTemplateOutlet"],[1,"ant-table"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy","noDataVirtualHeight"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzPageSizeChange","nzPageIndexChange","hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"nz-spin",3),t.DNE(1,ls,1,1,null,4),t.j41(2,"div",5,0),t.DNE(4,qr,1,1,"nz-table-title-footer",6)(5,Zo,1,14,"nz-table-inner-scroll",7)(6,bs,1,4,"nz-table-inner-default",8)(7,tt,1,1,"nz-table-title-footer",9),t.k0s(),t.DNE(8,Ve,1,1,null,4),t.k0s(),t.DNE(9,Mt,1,1,"ng-template",null,1,t.C5r)(11,Yt,1,0,"ng-template",null,2,t.C5r)),2&We&&(t.Y8G("nzDelay",ct.nzLoadingDelay)("nzSpinning",ct.nzLoading)("nzIndicator",ct.nzLoadingIndicator),t.R7$(),t.vxM("both"===ct.nzPaginationPosition||"top"===ct.nzPaginationPosition?1:-1),t.R7$(),t.AVh("ant-table-rtl","rtl"===ct.dir)("ant-table-fixed-header",ct.nzData.length&&ct.scrollY)("ant-table-fixed-column",ct.scrollX)("ant-table-has-fix-left",ct.hasFixLeft)("ant-table-has-fix-right",ct.hasFixRight)("ant-table-bordered",ct.nzBordered)("nz-table-out-bordered",ct.nzOuterBordered&&!ct.nzBordered)("ant-table-middle","middle"===ct.nzSize)("ant-table-small","small"===ct.nzSize),t.R7$(2),t.vxM(ct.nzTitle?4:-1),t.R7$(),t.vxM(ct.scrollY||ct.scrollX?5:6),t.R7$(2),t.vxM(ct.nzFooter?7:-1),t.R7$(),t.vxM("both"===ct.nzPaginationPosition||"bottom"===ct.nzPaginationPosition?8:-1))},dependencies:[Je.a,Y.T3,$s,fr,Mr,be,Qe],encapsulation:2,changeDetection:0})}return(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzLoadingIndicator",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzBordered",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSize",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowSizeChanger",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzHideOnSinglePage",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowQuickJumper",void 0),(0,s.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSimple",void 0),Ze})(),es=(()=>{class Ze{constructor(de){this.nzTableStyleService=de,this.destroy$=new e.B,this.listOfFixedColumns$=new M.m(1),this.listOfColumns$=new M.m(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,J.n)(We=>(0,j.h)(this.listOfFixedColumns$,...We.map(ct=>ct.changes$)).pipe((0,pe.Z)(()=>this.listOfFixedColumns$))),(0,w.Q)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,F.T)(We=>We.filter(ct=>!1!==ct.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,F.T)(We=>We.filter(ct=>!1!==ct.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,J.n)(We=>(0,j.h)(this.listOfColumns$,...We.map(ct=>ct.changes$)).pipe((0,pe.Z)(()=>this.listOfColumns$))),(0,w.Q)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!de}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Ee.Z)(this.listOfCellFixedDirective),(0,w.Q)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Ee.Z)(this.listOfNzThDirective),(0,w.Q)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(de=>{de.forEach(We=>We.setIsLastLeft(We===de[de.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(de=>{de.forEach(We=>We.setIsFirstRight(We===de[0]))}),(0,L.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,w.Q)(this.destroy$)).subscribe(([de,We])=>{We.forEach((ct,sn)=>{if(ct.isAutoLeft){const Ln=We.slice(0,sn).reduce((ki,bo)=>ki+(bo.colspan||bo.colSpan||1),0),fi=de.slice(0,Ln).reduce((ki,bo)=>ki+bo,0);ct.setAutoLeftWidth(`${fi}px`)}})}),(0,L.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,w.Q)(this.destroy$)).subscribe(([de,We])=>{We.forEach((ct,sn)=>{const Vn=We[We.length-sn-1];if(Vn.isAutoRight){const fi=We.slice(We.length-sn,We.length).reduce((bo,hi)=>bo+(hi.colspan||hi.colSpan||1),0),ki=de.slice(de.length-fi,de.length).reduce((bo,hi)=>bo+hi,0);Vn.setAutoRightWidth(`${ki}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(We,ct,sn){if(1&We&&(t.wni(sn,ro,4),t.wni(sn,ai,4)),2&We){let Vn;t.mGM(Vn=t.lsd())&&(ct.listOfNzThDirective=Vn),t.mGM(Vn=t.lsd())&&(ct.listOfCellFixedDirective=Vn)}},hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-row",ct.isInsideTable)},standalone:!0})}return Ze})(),zo=(()=>{class Ze{constructor(de,We,ct,sn){this.elementRef=de,this.renderer=We,this.nzTableStyleService=ct,this.nzTableDataService=sn,this.destroy$=new e.B,this.isInsideTable=!1,this.nzSortOrderChange=new t.bkB,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const de=this.listOfNzTrDirective.changes.pipe((0,Ee.Z)(this.listOfNzTrDirective),(0,F.T)(Vn=>Vn&&Vn.first)),We=de.pipe((0,J.n)(Vn=>Vn?Vn.listOfColumnsChanges$:A.w),(0,w.Q)(this.destroy$));We.subscribe(Vn=>this.nzTableStyleService.setListOfTh(Vn)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,J.n)(Vn=>Vn?We:(0,I.of)([]))).pipe((0,w.Q)(this.destroy$)).subscribe(Vn=>this.nzTableStyleService.setListOfMeasureColumn(Vn));const ct=de.pipe((0,J.n)(Vn=>Vn?Vn.listOfFixedLeftColumnChanges$:A.w),(0,w.Q)(this.destroy$)),sn=de.pipe((0,J.n)(Vn=>Vn?Vn.listOfFixedRightColumnChanges$:A.w),(0,w.Q)(this.destroy$));ct.subscribe(Vn=>{this.nzTableStyleService.setHasFixLeft(0!==Vn.length)}),sn.subscribe(Vn=>{this.nzTableStyleService.setHasFixRight(0!==Vn.length)})}if(this.nzTableDataService){const de=this.listOfNzThAddOnComponent.changes.pipe((0,Ee.Z)(this.listOfNzThAddOnComponent));de.pipe((0,J.n)(()=>(0,j.h)(...this.listOfNzThAddOnComponent.map(sn=>sn.manualClickOrder$))),(0,w.Q)(this.destroy$)).subscribe(sn=>{this.nzSortOrderChange.emit({key:sn.nzColumnKey,value:sn.sortOrder}),sn.nzSortFn&&!1===sn.nzSortPriority&&this.listOfNzThAddOnComponent.filter(Ln=>Ln!==sn).forEach(Ln=>Ln.clearSortOrder())}),de.pipe((0,J.n)(sn=>(0,j.h)(de,...sn.map(Vn=>Vn.calcOperatorChange$)).pipe((0,pe.Z)(()=>de))),(0,F.T)(sn=>sn.filter(Vn=>!!Vn.nzSortFn||!!Vn.nzFilterFn).map(Vn=>{const{nzSortFn:Ln,sortOrder:fi,nzFilterFn:ki,nzFilterValue:bo,nzSortPriority:hi,nzColumnKey:ho}=Vn;return{key:ho,sortFn:Ln,sortPriority:hi,sortOrder:fi,filterFn:ki,filterValue:bo}})),(0,Oe.c)(0),(0,w.Q)(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()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(mi,8),t.rXU(Xi,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(We,ct,sn){if(1&We&&(t.wni(sn,es,5),t.wni(sn,ao,5)),2&We){let Vn;t.mGM(Vn=t.lsd())&&(ct.listOfNzTrDirective=Vn),t.mGM(Vn=t.lsd())&&(ct.listOfNzThAddOnComponent=Vn)}},viewQuery:function(We,ct){if(1&We&&t.GBs(tn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.templateRef=sn.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},standalone:!0,features:[t.aNF],ngContentSelectors:ze,decls:3,vars:1,consts:[["contentTemplate",""],[3,"ngTemplateOutlet"]],template:function(We,ct){1&We&&(t.NAR(),t.DNE(0,on,1,0,"ng-template",null,0,t.C5r)(2,Mn,1,1,null,1)),2&We&&(t.R7$(2),t.vxM(ct.isInsideTable?-1:2))},dependencies:[Y.T3],encapsulation:2,changeDetection:0})}return Ze})(),us=(()=>{class Ze{static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275mod=t.$C({type:Ze});static#n=this.\u0275inj=t.G2t({imports:[Uo,ao,no,Sr,$s,fr,li,Kn,ei,xn,An]})}return Ze})()},9541:(Rt,De,a)=>{a.d(De,{JZ:()=>be,hM:()=>re,rE:()=>dt,rM:()=>ue,v3:()=>q});var t=a(3953),s=a(7806),m=a(5103),e=a(4500),M=a(851),K=a(4085),L=a(7336),j=a(177),A=a(3726),I=a(8359),w=a(536),F=a(5007),X=a(1413),V=a(7673),x=a(7786),oe=a(6977),J=a(3798),Ee=a(9172),Oe=a(1594),pe=a(5964),Ie=a(1986),ve=a(2602),fe=a(1868),Y=a(946),z=a(5979),Z=a(8203),he=a(713),E=a(1188),S=a(4707),R=a(6042),U=a(3451),se=a(317);function Be(ze,mt){if(1&ze&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&ze){const Ke=mt.$implicit;t.R7$(),t.Y8G("nzType",Ke)}}const Pt=()=>({minWidth:"46px"}),gt=()=>({visible:!1});function wt(ze,mt){if(1&ze&&(t.qex(0),t.EFF(1),t.bVm()),2&ze){const Ke=t.XpG().$implicit;t.R7$(),t.SpI(" ",Ke.tab.label," ")}}function Le(ze,mt){if(1&ze){const Ke=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const Re=t.eBV(Ke).$implicit,B=t.XpG(2);return t.Njj(B.onSelect(Re))})("contextmenu",function(Re){const B=t.eBV(Ke).$implicit,ce=t.XpG(2);return t.Njj(ce.onContextmenu(B,Re))}),t.DNE(1,wt,2,1,"ng-container",9),t.k0s()}if(2&ze){const Ke=mt.$implicit;t.AVh("ant-tabs-dropdown-menu-item-disabled",Ke.disabled),t.Y8G("nzSelected",Ke.active)("nzDisabled",Ke.disabled),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ke.tab.label)("nzStringTemplateOutletContext",t.lJ4(6,gt))}}function zt(ze,mt){if(1&ze&&(t.j41(0,"ul",6),t.DNE(1,Le,2,7,"li",7),t.k0s()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngForOf",Ke.items)}}function xt(ze,mt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",10),t.bIt("click",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.addClicked.emit())}),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("addIcon",Ke.addIcon)}}const st=["navWarp"],Ct=["navList"],It=["*"];function Tt(ze,mt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.addClicked.emit())}),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("addIcon",Ke.addIcon),t.BMQ("tabindex",-1)}}function en(ze,mt){}function Ut(ze,mt){if(1&ze&&(t.j41(0,"div",9),t.DNE(1,en,0,0,"ng-template",10),t.k0s()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ke.extraTemplate)}}const Lt=["nz-tab-body",""];function fn(ze,mt){}function $n(ze,mt){if(1&ze&&(t.qex(0),t.DNE(1,fn,0,0,"ng-template",1),t.bVm()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ke.content)}}function zn(ze,mt){if(1&ze&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&ze){const Ke=mt.$implicit;t.R7$(),t.Y8G("nzType",Ke)}}const bt=["contentTemplate"],At=[[["","nz-tab-link",""]],"*"],Et=["[nz-tab-link]","*"];function St(ze,mt){1&ze&&t.SdG(0)}function Wt(ze,mt){1&ze&&t.SdG(0,1)}const Ue=()=>({visible:!0});function Fe(ze,mt){if(1&ze&&(t.qex(0),t.EFF(1),t.bVm()),2&ze){const Ke=t.XpG().$implicit;t.R7$(),t.JRh(Ke.label)}}function te(ze,mt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",10),t.bIt("click",function(Re){t.eBV(Ke);const B=t.XpG().index,ce=t.XpG(2);return t.Njj(ce.onClose(B,Re))}),t.k0s()}if(2&ze){const Ke=t.XpG().$implicit;t.Y8G("closeIcon",Ke.nzCloseIcon)}}function _e(ze,mt){if(1&ze){const Ke=t.RV6();t.j41(0,"div",6),t.bIt("click",function(Re){const B=t.eBV(Ke),ce=B.$implicit,N=B.index,ke=t.XpG(2);return t.Njj(ke.clickNavItem(ce,N,Re))})("contextmenu",function(Re){const B=t.eBV(Ke).$implicit,ce=t.XpG(2);return t.Njj(ce.contextmenuNavItem(B,Re))}),t.j41(1,"button",7),t.DNE(2,Fe,2,1,"ng-container",8)(3,te,1,1,"button",9),t.k0s()()}if(2&ze){const Ke=mt.$implicit,xe=mt.index,Re=t.XpG(2);t.xc7("margin-right","horizontal"===Re.position?Re.nzTabBarGutter:null,"px")("margin-bottom","vertical"===Re.position?Re.nzTabBarGutter:null,"px"),t.AVh("ant-tabs-tab-active",Re.nzSelectedIndex===xe)("ant-tabs-tab-disabled",Ke.nzDisabled),t.R7$(),t.Y8G("id",Re.getTabContentId(xe))("disabled",Ke.nzDisabled)("tab",Ke)("active",Re.nzSelectedIndex===xe),t.BMQ("tabIndex",Re.getTabIndex(Ke,xe))("aria-disabled",Ke.nzDisabled)("aria-selected",Re.nzSelectedIndex===xe&&!Re.nzHideAll)("aria-controls",Re.getTabContentId(xe)),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ke.label)("nzStringTemplateOutletContext",t.lJ4(19,Ue)),t.R7$(),t.Y8G("ngIf",Ke.nzClosable&&Re.closable&&!Ke.nzDisabled)}}function ie(ze,mt){if(1&ze){const Ke=t.RV6();t.j41(0,"nz-tabs-nav",4),t.bIt("tabScroll",function(Re){t.eBV(Ke);const B=t.XpG();return t.Njj(B.nzTabListScroll.emit(Re))})("selectFocusedIndex",function(Re){t.eBV(Ke);const B=t.XpG();return t.Njj(B.setSelectedIndex(Re))})("addClicked",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.onAdd())}),t.DNE(1,_e,4,20,"div",5),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("ngStyle",Ke.nzTabBarStyle)("selectedIndex",Ke.nzSelectedIndex||0)("inkBarAnimated",Ke.inkBarAnimated)("addable",Ke.addable)("addIcon",Ke.nzAddIcon)("hideBar",Ke.nzHideAll)("position",Ke.position)("extraTemplate",Ke.nzTabBarExtraContent),t.R7$(),t.Y8G("ngForOf",Ke.tabs)}}function Pe(ze,mt){if(1&ze&&t.nrm(0,"div",11),2&ze){const Ke=mt.$implicit,xe=mt.index,Re=t.XpG();t.Y8G("id",Re.getTabContentId(xe))("active",Re.nzSelectedIndex===xe&&!Re.nzHideAll)("content",Ke.content)("forceRender",Ke.nzForceRender)("animated",Re.tabPaneAnimated),t.BMQ("aria-labelledby",Re.getTabContentId(xe))}}let et=(()=>{class ze{constructor(Ke){this.elementRef=Ke,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({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"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(xe,Re){1&xe&&t.DNE(0,Be,2,1,"ng-container",0),2&xe&&t.Y8G("nzStringTemplateOutlet",Re.addIcon)},dependencies:[s.C,s.m,m.Y3,m.Dn],encapsulation:2})}return ze})(),ht=(()=>{class ze{get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}constructor(Ke,xe,Re){this.elementRef=Ke,this.ngZone=xe,this.animationMode=Re,this.position="horizontal",this.animated=!0}alignToElement(Ke){this.ngZone.runOutsideAngular(()=>{(0,e.j)(()=>this.setStyles(Ke))})}setStyles(Ke){const xe=this.elementRef.nativeElement;"horizontal"===this.position?(xe.style.top="",xe.style.height="",xe.style.left=this.getLeftPosition(Ke),xe.style.width=this.getElementWidth(Ke)):(xe.style.left="",xe.style.width="",xe.style.top=this.getTopPosition(Ke),xe.style.height=this.getElementHeight(Ke))}getLeftPosition(Ke){return Ke?`${Ke.offsetLeft||0}px`:"0"}getElementWidth(Ke){return Ke?`${Ke.offsetWidth||0}px`:"0"}getTopPosition(Ke){return Ke?`${Ke.offsetTop||0}px`:"0"}getElementHeight(Ke){return Ke?`${Ke.offsetHeight||0}px`:"0"}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.bc$,8))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(xe,Re){2&xe&&t.AVh("ant-tabs-ink-bar-animated",Re._animated)},inputs:{position:"position",animated:"animated"},standalone:!0})}return ze})(),Kt=(()=>{class ze{constructor(Ke){this.elementRef=Ke,this.disabled=!1,this.active=!1,this.el=Ke.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}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",t.L39],tab:"tab",active:[2,"active","active",t.L39]},standalone:!0,features:[t.GFd]})}return ze})(),cn=(()=>{class ze{constructor(Ke,xe){this.cdr=Ke,this.elementRef=xe,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.bkB,this.selected=new t.bkB,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(Ke){Ke.disabled||(Ke.tab.nzClick.emit(),this.selected.emit(Ke))}onContextmenu(Ke,xe){Ke.disabled||Ke.tab.nzContextmenu.emit(xe)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(Ke){Ke||(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)}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(t.gRc),t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(xe,Re){2&xe&&t.AVh("ant-tabs-nav-operations-hidden",0===Re.items.length)},inputs:{items:"items",addable:[2,"addable","addable",t.L39],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],standalone:!0,features:[t.GFd,t.aNF],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nz-icon","","nzType","ellipsis"],["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,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(xe,Re){if(1&xe){const B=t.RV6();t.j41(0,"button",2,0),t.bIt("nzVisibleChange",function(N){return t.eBV(B),t.Njj(Re.menuVisChange(N))})("mouseenter",function(){return t.eBV(B),t.Njj(Re.showItems())}),t.nrm(2,"span",3),t.k0s(),t.j41(3,"nz-dropdown-menu",null,1),t.DNE(5,zt,2,1,"ul",4),t.k0s(),t.DNE(6,xt,1,1,"button",5)}if(2&xe){const B=t.sdS(4);t.Y8G("nzDropdownMenu",B)("nzOverlayStyle",t.lJ4(5,Pt))("nzMatchWidthElement",null),t.R7$(5),t.Y8G("ngIf",Re.menuOpened),t.R7$(),t.Y8G("ngIf",Re.addable)}},dependencies:[m.Y3,m.Dn,j.bT,j.Sq,s.C,s.m,et,ve.wQ,fe.GP,fe.jS,fe.CU,ve.j3],encapsulation:2,changeDetection:0})}return ze})();const In=.995**20;let Un=(()=>{class ze{constructor(Ke,xe){this.ngZone=Ke,this.elementRef=xe,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.bkB,this.tabScroll=new t.bkB,this.onTouchEnd=Re=>{if(!this.touchPosition)return;const B=this.lastOffset,ce=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,B){const N=B.x/ce,ke=B.y/ce,ge=Math.abs(N),W=Math.abs(ke);if(Math.max(ge,W)<.1)return;let H=N,me=ke;this.motion=window.setInterval(()=>{Math.abs(H)<.01&&Math.abs(me)<.01?window.clearInterval(this.motion):(H*=In,me*=In,this.onOffset(20*H,20*me,Re))},20)}},this.onTouchMove=Re=>{if(!this.touchPosition)return;Re.preventDefault();const{screenX:B,screenY:ce}=Re.touches[0],N=B-this.touchPosition.x,ke=ce-this.touchPosition.y;this.onOffset(N,ke,Re);const ge=Date.now();this.lastTimeDiff=ge-this.lastTimestamp,this.lastTimestamp=ge,this.lastOffset={x:N,y:ke},this.touchPosition={x:B,y:ce}},this.onTouchStart=Re=>{const{screenX:B,screenY:ce}=Re.touches[0];this.touchPosition={x:B,y:ce},window.clearInterval(this.motion)},this.onWheel=Re=>{const{deltaX:B,deltaY:ce}=Re;let N;const ke=Math.abs(B),ge=Math.abs(ce);ke===ge?N="x"===this.lastWheelDirection?B:ce:ke>ge?(N=B,this.lastWheelDirection="x"):(N=ce,this.lastWheelDirection="y");const W=Date.now(),H=Math.abs(N);(W-this.lastWheelTimestamp>100||H-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-N,-N,Re),(Re.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=W,this.lastMixedWheel=H}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const Ke=this.elementRef.nativeElement,xe=(0,A.R)(Ke,"wheel"),Re=(0,A.R)(Ke,"touchstart"),B=(0,A.R)(Ke,"touchmove"),ce=(0,A.R)(Ke,"touchend"),N=new I.yU;return N.add(this.subscribeWrap("wheel",xe,this.onWheel)),N.add(this.subscribeWrap("touchstart",Re,this.onTouchStart)),N.add(this.subscribeWrap("touchmove",B,this.onTouchMove)),N.add(this.subscribeWrap("touchend",ce,this.onTouchEnd)),()=>{N.unsubscribe()}})}subscribeWrap(Ke,xe,Re){return xe.subscribe(B=>{this.tabScroll.emit({type:Ke,event:B}),B.defaultPrevented||Re(B)})}onOffset(Ke,xe,Re){this.ngZone.run(()=>{this.offsetChange.emit({x:Ke,y:xe,event:Re})})}ngOnDestroy(){this.unsubscribe()}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(t.SKi),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"},standalone:!0})}return ze})();const dn=typeof requestAnimationFrame<"u"?w.X:F.$;let wn=(()=>{class ze{get selectedIndex(){return this._selectedIndex}set selectedIndex(Ke){const xe=(0,K.OE)(Ke);this._selectedIndex!==xe&&(this._selectedIndex=Ke,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(Ke))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(Ke){!this.isValidIndex(Ke)||this.focusIndex===Ke||!this.keyManager||this.keyManager.setActiveItem(Ke)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}constructor(Ke,xe,Re,B,ce){this.cdr=Ke,this.ngZone=xe,this.viewportRuler=Re,this.nzResizeObserver=B,this.dir=ce,this.indexFocused=new t.bkB,this.selectFocusedIndex=new t.bkB,this.addClicked=new t.bkB,this.tabScroll=new t.bkB,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 X.B,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}ngAfterViewInit(){const Ke=this.dir?this.dir.change.asObservable():(0,V.of)(null),xe=this.viewportRuler.change(150),Re=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new M.Bu(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,e.j)(Re),(0,x.h)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,oe.Q)(this.destroy$),(0,J.Z)(16,dn)).subscribe(()=>{Re()}),(0,x.h)(Ke,xe,this.items.changes).pipe((0,oe.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(Re),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,oe.Q)(this.destroy$)).subscribe(B=>{this.indexFocused.emit(B),this.setTabFocus(B),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(Ke){const xe=this.items.toArray().findIndex(Re=>Re===Ke);-1!==xe&&(this.keyManager.updateActiveItem(xe),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(Ke)))}onOffsetChange(Ke){if("horizontal"===this.position){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&Ke.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&Ke.x<0))return;Ke.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+Ke.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&Ke.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&Ke.y<0))return;Ke.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+Ke.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(Ke){const xe=this.navWarpRef.nativeElement.contains(Ke.target);if(!(0,L.rp)(Ke)&&xe)switch(Ke.keyCode){case L.UQ:case L.i7:case L.LE:case L.n6:this.lockAnimation(),this.keyManager.onKeydown(Ke);break;case L.Fm:case L.t6:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(Ke)}}isValidIndex(Ke){if(!this.items)return!0;const xe=this.items?this.items.toArray()[Ke]:null;return!!xe&&!xe.disabled}scrollToTab(Ke){if(!this.items.find(Re=>Re===Ke))return;const xe=this.items.toArray();if("horizontal"===this.position){let Re=this.transformX;if("rtl"===this.getLayoutDirection()){const B=xe[0].left+xe[0].width-Ke.left-Ke.width;Bthis.transformX+this.wrapperWidth&&(Re=B+Ke.width-this.wrapperWidth)}else Ke.left<-this.transformX?Re=-Ke.left:Ke.left+Ke.width>-this.transformX+this.wrapperWidth&&(Re=-(Ke.left+Ke.width-this.wrapperWidth));this.transformX=Re,this.transformY=0,this.setTransform(Re,0)}else{let Re=this.transformY;Ke.top<-this.transformY?Re=-Ke.top:Ke.top+Ke.height>-this.transformY+this.wrapperHeight&&(Re=-(Ke.top+Ke.height-this.wrapperHeight)),this.transformY=Re,this.transformX=0,this.setTransform(0,Re)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},150)})}setTransform(Ke,xe){this.navListRef.nativeElement.style.transform=`translate(${Ke}px, ${xe}px)`}clampTransformX(Ke){const xe=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(xe,Ke),0):Math.min(Math.max(xe,Ke),0)}clampTransformY(Ke){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,Ke),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 Ke=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,xe=Ke?Ke.elementRef.nativeElement:null;xe&&this.inkBar.alignToElement(xe.parentElement)}setPingStatus(){const Ke={top:!1,right:!1,bottom:!1,left:!1},xe=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(Ke.right=this.transformX>0,Ke.left=this.transformX+this.wrapperWidth{const B=`ant-tabs-nav-wrap-ping-${Re}`;Ke[Re]?xe.classList.add(B):xe.classList.remove(B)})}setVisibleRange(){let Ke,xe,Re,B,ce,N;const ke=this.items.toArray(),ge={width:0,height:0,left:0,top:0,right:0},W=Cn=>{let Jn;return Jn="right"===xe?ke[0].left+ke[0].width-ke[Cn].left-ke[Cn].width:(ke[Cn]||ge)[xe],Jn};"horizontal"===this.position?(Ke="width",B=this.wrapperWidth,ce=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),N=this.addButtonWidth,Re=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(xe="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidthB&&(H=B-N),!ke.length)return this.hiddenItems=[],void this.cdr.markForCheck();const me=ke.length;let qe=me;for(let Cn=0;CnRe+H){qe=Cn-1;break}let rt=0;for(let Cn=me-1;Cn>=0;Cn-=1)if(W(Cn){class ze{constructor(){this.content=null,this.active=!1,this.animated=!0,this.forceRender=!1,this.hasBeenActive=!1}ngOnChanges(Ke){const{active:xe}=Ke;xe?.currentValue&&(this.hasBeenActive=!0)}static#e=this.\u0275fac=function(xe){return new(xe||ze)};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(xe,Re){2&xe&&(t.zvX("@tabSwitchMotion",Re.active?"enter":"leave")("@.disabled",!Re.animated),t.BMQ("tabindex",Re.active?0:-1)("aria-hidden",!Re.active),t.xc7("overflow-y",Re.animated?Re.active?null:"none":null),t.AVh("ant-tabs-tabpane-active",Re.active)("ant-tabs-tabpane-hidden",Re.animated?null:!Re.active))},inputs:{content:"content",active:"active",animated:"animated",forceRender:"forceRender"},exportAs:["nzTabBody"],standalone:!0,features:[t.OA$,t.aNF],attrs:Lt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(xe,Re){1&xe&&t.DNE(0,$n,2,1,"ng-container",0),2&xe&&t.Y8G("ngIf",Re.hasBeenActive||Re.forceRender)},dependencies:[j.bT,j.T3],encapsulation:2,data:{animation:[he.eF]},changeDetection:0})}return ze})(),Ge=(()=>{class ze{constructor(){this.closeIcon="close"}static#e=this.\u0275fac=function(xe){return new(xe||ze)};static#t=this.\u0275cmp=t.VBU({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"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(xe,Re){1&xe&&t.DNE(0,zn,2,1,"ng-container",0),2&xe&&t.Y8G("nzStringTemplateOutlet",Re.closeIcon)},dependencies:[s.C,s.m,m.Y3,m.Dn],encapsulation:2})}return ze})(),ue=(()=>{class ze{constructor(Ke){this.templateRef=Ke}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(t.C4Q,1))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"],standalone:!0})}return ze})(),q=(()=>{class ze{constructor(Ke,xe){this.elementRef=Ke,this.routerLink=xe}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(t.aKT),t.rXU(E.Wk,10))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"],standalone:!0})}return ze})(),ee=(()=>{class ze{static#e=this.\u0275fac=function(xe){return new(xe||ze)};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nz-tab",""]],exportAs:["nzTab"],standalone:!0})}return ze})();const Xe=new t.nKC("NZ_TAB_SET");let dt=(()=>{class ze{get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}constructor(Ke){this.closestTabSet=Ke,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.bkB,this.nzDeselect=new t.bkB,this.nzClick=new t.bkB,this.nzContextmenu=new t.bkB,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new X.B}ngOnChanges(Ke){const{nzTitle:xe,nzDisabled:Re,nzForceRender:B}=Ke;(xe||Re||B)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(Xe))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab"]],contentQueries:function(xe,Re,B){if(1&xe&&(t.wni(B,ue,5),t.wni(B,ee,5,t.C4Q),t.wni(B,q,5)),2&xe){let ce;t.mGM(ce=t.lsd())&&(Re.nzTabLinkTemplateDirective=ce.first),t.mGM(ce=t.lsd())&&(Re.template=ce.first),t.mGM(ce=t.lsd())&&(Re.linkDirective=ce.first)}},viewQuery:function(xe,Re){if(1&xe&&t.GBs(bt,7),2&xe){let B;t.mGM(B=t.lsd())&&(Re.contentTemplate=B.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",t.L39],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzForceRender:[2,"nzForceRender","nzForceRender",t.L39]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:Et,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(xe,Re){1&xe&&(t.NAR(At),t.DNE(0,St,1,0,"ng-template",null,0,t.C5r)(2,Wt,1,0,"ng-template",null,1,t.C5r))},encapsulation:2,changeDetection:0})}return ze})();class at{}let Qe=0,be=(()=>{class ze{get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(Ke){this.indexToSelect=(0,K.OE)(Ke,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"boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane}constructor(Ke,xe,Re,B,ce){this.nzConfigService=Ke,this.ngZone=xe,this.cdr=Re,this.directionality=B,this.router=ce,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.bkB(!0),this.nzSelectedIndexChange=new t.bkB,this.nzTabListScroll=new t.bkB,this.nzClose=new t.bkB,this.nzAdd=new t.bkB,this.allTabs=new t.rOR,this.tabs=new t.rOR,this.dir="ltr",this.destroy$=new X.B,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=I.yU.EMPTY,this.tabsSubscription=I.yU.EMPTY,this.canDeactivateSubscription=I.yU.EMPTY,this.tabSetId=Qe++}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,oe.Q)(this.destroy$)).subscribe(Ke=>{this.dir=Ke,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 xe=this.tabs.toArray();for(let Re=0;Re{this.tabs.forEach((Re,B)=>Re.isActive=B===Ke),xe||this.nzSelectedIndexChange.emit(Ke)})}this.tabs.forEach((xe,Re)=>{xe.position=Re-Ke,null!=this.selectedIndex&&0===xe.position&&!xe.origin&&(xe.origin=Ke-this.selectedIndex)}),this.selectedIndex!==Ke&&(this.selectedIndex=Ke,this.cdr.markForCheck())}onClose(Ke,xe){xe.preventDefault(),xe.stopPropagation(),this.nzClose.emit({index:Ke})}onAdd(){this.nzAdd.emit()}clampTabIndex(Ke){return Math.min(this.tabs.length-1,Math.max(Ke||0,0))}createChangeEvent(Ke){const xe=new at;return xe.index=Ke,this.tabs&&this.tabs.length&&(xe.tab=this.tabs.toArray()[Ke],this.tabs.forEach((Re,B)=>{B!==Ke&&Re.nzDeselect.emit()}),xe.tab.nzSelect.emit()),xe}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,x.h)(...this.tabs.map(Ke=>Ke.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,Ee.Z)(this.allTabs)).subscribe(Ke=>{this.tabs.reset(Ke.filter(xe=>xe.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(Ke,xe){return"function"==typeof this.nzCanDeactivate?(0,se.cG)(this.nzCanDeactivate(Ke,xe)).pipe((0,Oe.$)(),(0,oe.Q)(this.destroy$)):(0,V.of)(!0)}clickNavItem(Ke,xe,Re){Ke.nzDisabled||(Ke.nzClick.emit(),this.isRouterLinkClickEvent(xe,Re)||this.setSelectedIndex(xe))}isRouterLinkClickEvent(Ke,xe){const Re=xe.target;return!!this.nzLinkRouter&&!!this.tabs.toArray()[Ke]?.linkDirective?.elementRef.nativeElement.contains(Re)}contextmenuNavItem(Ke,xe){Ke.nzDisabled||Ke.nzContextmenu.emit(xe)}setSelectedIndex(Ke){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,Ke).subscribe(xe=>{xe&&(this.nzSelectedIndex=Ke,this.tabNavBarRef.focusIndex=Ke,this.cdr.markForCheck())})}getTabIndex(Ke,xe){return Ke.nzDisabled?null:this.selectedIndex===xe?0:-1}getTabContentId(Ke){return`nz-tabs-${this.tabSetId}-tab-${Ke}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${U.H3} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,oe.Q)(this.destroy$),(0,pe.p)(Ke=>Ke instanceof E.wF),(0,Ee.Z)(!0),(0,Ie.c)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const Ke=this.findShouldActiveTabIndex();Ke!==this.selectedIndex&&this.setSelectedIndex(Ke),this.nzHideAll=-1===Ke}}findShouldActiveTabIndex(){const Ke=this.tabs.toArray(),xe=this.isLinkActive(this.router);return Ke.findIndex(Re=>{const B=Re.linkDirective;return!!B&&xe(B.routerLink)})}isLinkActive(Ke){return xe=>!!xe&&Ke.isActive(xe.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}static#e=this.\u0275fac=function(xe){return new(xe||ze)(t.rXU(R.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(Z.dS,8),t.rXU(E.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tabset"]],contentQueries:function(xe,Re,B){if(1&xe&&t.wni(B,dt,5),2&xe){let ce;t.mGM(ce=t.lsd())&&(Re.allTabs=ce)}},viewQuery:function(xe,Re){if(1&xe&&t.GBs(wn,5),2&xe){let B;t.mGM(B=t.lsd())&&(Re.tabNavBarRef=B.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(xe,Re){2&xe&&t.AVh("ant-tabs-card","card"===Re.nzType||"editable-card"===Re.nzType)("ant-tabs-editable","editable-card"===Re.nzType)("ant-tabs-editable-card","editable-card"===Re.nzType)("ant-tabs-centered",Re.nzCentered)("ant-tabs-rtl","rtl"===Re.dir)("ant-tabs-top","top"===Re.nzTabPosition)("ant-tabs-bottom","bottom"===Re.nzTabPosition)("ant-tabs-left","left"===Re.nzTabPosition)("ant-tabs-right","right"===Re.nzTabPosition)("ant-tabs-default","default"===Re.nzSize)("ant-tabs-small","small"===Re.nzSize)("ant-tabs-large","large"===Re.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",t.L39],nzCentered:[2,"nzCentered","nzCentered",t.L39],nzHideAll:[2,"nzHideAll","nzHideAll",t.L39],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",t.L39],nzLinkExact:[2,"nzLinkExact","nzLinkExact",t.L39]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],standalone:!0,features:[t.Jv_([{provide:Xe,useExisting:ze}]),t.GFd,t.aNF],decls:4,vars:12,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated",4,"ngFor","ngForOf"],[3,"tabScroll","selectFocusedIndex","addClicked","ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate"],["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"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated"]],template:function(xe,Re){1&xe&&(t.DNE(0,ie,2,9,"nz-tabs-nav",0),t.j41(1,"div",1)(2,"div",2),t.DNE(3,Pe,1,6,"div",3),t.k0s()()),2&xe&&(t.Y8G("ngIf",Re.tabs.length||Re.addable),t.R7$(2),t.AVh("ant-tabs-content-top","top"===Re.nzTabPosition)("ant-tabs-content-bottom","bottom"===Re.nzTabPosition)("ant-tabs-content-left","left"===Re.nzTabPosition)("ant-tabs-content-right","right"===Re.nzTabPosition)("ant-tabs-content-animated",Re.tabPaneAnimated),t.R7$(),t.Y8G("ngForOf",Re.tabs))},dependencies:[wn,j.bT,j.B3,j.Sq,Kt,M.Pd,M.vR,s.C,s.m,Ge,Vt],encapsulation:2})}return(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzType",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzSize",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzAnimated",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzTabBarGutter",void 0),ze})(),re=(()=>{class ze{static#e=this.\u0275fac=function(xe){return new(xe||ze)};static#t=this.\u0275mod=t.$C({type:ze});static#n=this.\u0275inj=t.G2t({imports:[be,wn,cn,et,Ge]})}return ze})()},5699:(Rt,De,a)=>{a.d(De,{T:()=>w,s:()=>I});var t=a(177),s=a(3953),m=a(1413),e=a(6977),M=a(6006),K=a(5103),L=a(8203);const j=["*"];function A(F,X){if(1&F){const V=s.RV6();s.j41(0,"span",1),s.bIt("click",function(oe){s.eBV(V);const J=s.XpG();return s.Njj(J.closeTag(oe))}),s.k0s()}}let I=(()=>{class F{constructor(V,x,oe,J){this.cdr=V,this.renderer=x,this.elementRef=oe,this.directionality=J,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzBordered=!0,this.nzOnClose=new s.bkB,this.nzCheckedChange=new s.bkB,this.dir="ltr",this.destroy$=new m.B}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(V){this.nzOnClose.emit(V),V.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const V=this.elementRef.nativeElement,x=new RegExp(`(ant-tag-(?:${[...M.un,...M.PA].join("|")}))`,"g"),oe=V.classList.toString(),J=[];let Ee=x.exec(oe);for(;null!==Ee;)J.push(Ee[1]),Ee=x.exec(oe);V.classList.remove(...J)}setPresetColor(){const V=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,M.nP)(this.nzColor)||(0,M.uP)(this.nzColor)),this.isPresetColor&&V.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(V=>{this.dir=V,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(V){const{nzColor:x}=V;x&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(x){return new(x||F)(s.rXU(s.gRc),s.rXU(s.sFG),s.rXU(s.aKT),s.rXU(L.dS,8))};static#t=this.\u0275cmp=s.VBU({type:F,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(x,oe){1&x&&s.bIt("click",function(){return oe.updateCheckedStatus()}),2&x&&(s.xc7("background-color",oe.isPresetColor?"":oe.nzColor),s.AVh("ant-tag-has-color",oe.nzColor&&!oe.isPresetColor)("ant-tag-checkable","checkable"===oe.nzMode)("ant-tag-checkable-checked",oe.nzChecked)("ant-tag-rtl","rtl"===oe.dir)("ant-tag-borderless",!oe.nzBordered))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",s.L39],nzBordered:[2,"nzBordered","nzBordered",s.L39]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],standalone:!0,features:[s.GFd,s.OA$,s.aNF],ngContentSelectors:j,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(x,oe){1&x&&(s.NAR(),s.SdG(0),s.DNE(1,A,1,0,"span",0)),2&x&&(s.R7$(),s.Y8G("ngIf","closeable"===oe.nzMode))},dependencies:[K.Y3,K.Dn,t.bT],encapsulation:2,changeDetection:0})}return F})(),w=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=s.$C({type:F});static#n=this.\u0275inj=s.G2t({imports:[I]})}return F})()},5154:(Rt,De,a)=>{a.d(De,{LH:()=>z,ME:()=>ve,Qt:()=>he,VJ:()=>Z,t:()=>Y});var t=a(7987),s=a(177),m=a(3953),e=a(713),M=a(6006),K=a(6841),L=a(7806),j=a(5463),A=a(6860),I=a(1413),w=a(5007),F=a(3294),X=a(6977),V=a(5964),x=a(1986),oe=a(6042),J=a(317),Ee=a(8203);const Oe=["overlay"];function pe(E,S){if(1&E&&(m.qex(0),m.EFF(1),m.bVm()),2&E){const R=m.XpG(2);m.R7$(),m.JRh(R.nzTitle)}}function Ie(E,S){if(1&E&&(m.j41(0,"div",2)(1,"div",3)(2,"div",4),m.nrm(3,"span",5),m.k0s(),m.j41(4,"div",6),m.DNE(5,pe,2,1,"ng-container",7),m.k0s()()()),2&E){const R=m.XpG();m.AVh("ant-tooltip-rtl","rtl"===R.dir),m.Y8G("ngClass",R._classMap)("ngStyle",R.nzOverlayStyle)("@.disabled",!(null==R.noAnimation||!R.noAnimation.nzNoAnimation))("nzNoAnimation",null==R.noAnimation?null:R.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),m.R7$(3),m.Y8G("ngStyle",R._contentStyleMap),m.R7$(),m.Y8G("ngStyle",R._contentStyleMap),m.R7$(),m.Y8G("nzStringTemplateOutlet",R.nzTitle)("nzStringTemplateOutletContext",R.nzTitleContext)}}let ve=(()=>{class E{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 R=this.placement;return Array.isArray(R)&&R.length>0?R:"string"==typeof R&&R?[R]:["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(R){this.componentType=R,this.visibleChange=new m.bkB,this.internalVisible=!1,this.destroy$=new I.B,this.triggerDisposables=[],this.elementRef=(0,m.WQX)(m.aKT),this.hostView=(0,m.WQX)(m.c1b),this.renderer=(0,m.WQX)(m.sFG),this.noAnimation=(0,m.WQX)(K.z,{host:!0,optional:!0}),this.nzConfigService=(0,m.WQX)(oe.yx),this.platformId=(0,m.WQX)(m.Agw)}ngAfterViewInit(){(0,s.UE)(this.platformId)&&(this.createComponent(),this.registerTriggers())}ngOnChanges(R){const{trigger:U}=R;U&&!U.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(R)}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 R=this.hostView.createComponent(this.componentType);this.component=R.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),R.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();const U=this.component.nzVisibleChange.pipe((0,F.F)());U.pipe((0,X.Q)(this.destroy$)).subscribe(se=>{this.internalVisible=se,this.visibleChange.emit(se)}),U.pipe((0,V.p)(se=>se),(0,x.c)(0,w.$),(0,V.p)(()=>!!this.component?.overlay?.overlayRef),(0,X.Q)(this.destroy$)).subscribe(()=>{this.component?.updatePosition()})}registerTriggers(){const R=this.elementRef.nativeElement,U=this.trigger;if(this.removeTriggerListeners(),"hover"===U){let se;this.triggerDisposables.push(this.renderer.listen(R,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(R,"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"===U?(this.triggerDisposables.push(this.renderer.listen(R,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(R,"focusout",()=>this.hide()))):"click"===U&&this.triggerDisposables.push(this.renderer.listen(R,"click",se=>{se.preventDefault(),this.show()}))}updatePropertiesByChanges(R){this.updatePropertiesByKeys(Object.keys(R))}updatePropertiesByKeys(R){const U={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],cdkConnectedOverlayPush:["cdkConnectedOverlayPush",()=>this.cdkConnectedOverlayPush],...this.getProxyPropertyMap()};(R||Object.keys(U).filter(se=>!se.startsWith("directive"))).forEach(se=>{if(U[se]){const[Be,Pt]=U[se];this.updateComponentValue(Be,Pt())}}),this.component?.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(R,U){typeof U<"u"&&(this.component[R]=U)}delayEnterLeave(R,U,se=-1){this.delayTimer?this.clearTogglingTimer():se>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,U?this.show():this.hide()},1e3*se):U&&R?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(R=>R()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}static#e=this.\u0275fac=function(U){return new(U||E)(m.rXU(m.ZUJ))};static#t=this.\u0275dir=m.FsC({type:E,features:[m.OA$]})}return E})(),fe=(()=>{class E{set nzVisible(R){const U=(0,J.G4)(R);this._visible!==U&&(this._visible=U,this.nzVisibleChange.next(U))}get nzVisible(){return this._visible}set nzTrigger(R){this._trigger=R}get nzTrigger(){return this._trigger}set nzPlacement(R){const U=R.map(se=>j.pn[se]);this._positions=[...U,...j.Js]}constructor(R,U,se){this.cdr=R,this.directionality=U,this.noAnimation=se,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.cdkConnectedOverlayPush=!0,this.nzVisibleChange=new I.B,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...j.Js],this.destroy$=new I.B}ngOnInit(){this.directionality.change?.pipe((0,X.Q)(this.destroy$)).subscribe(R=>{this.dir=R,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(R){this.preferredPlacement=(0,j.jj)(R),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(R){this.origin=R,this.cdr.markForCheck()}onClickOutside(R){const U=(0,A.Fb)(R);!this.origin.nativeElement.contains(U)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}static#e=this.\u0275fac=function(U){return new(U||E)(m.rXU(m.gRc),m.rXU(Ee.dS,8),m.rXU(K.z))};static#t=this.\u0275dir=m.FsC({type:E,viewQuery:function(U,se){if(1&U&&m.GBs(Oe,5),2&U){let Be;m.mGM(Be=m.lsd())&&(se.overlay=Be.first)}}})}return E})();function Y(E){return!(E instanceof m.C4Q||""!==E&&(0,J.n9)(E))}let z=(()=>{class E extends ve{constructor(){super(Z),this.titleContext=null,this.trigger="hover",this.placement="top",this.cdkConnectedOverlayPush=!0,this.visibleChange=new m.bkB}getProxyPropertyMap(){return{...super.getProxyPropertyMap(),nzTooltipColor:["nzColor",()=>this.nzTooltipColor],titleContext:["nzTitleContext",()=>this.titleContext]}}static#e=this.\u0275fac=function(U){return new(U||E)};static#t=this.\u0275dir=m.FsC({type:E,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(U,se){2&U&&m.AVh("ant-tooltip-open",se.visible)},inputs:{title:[0,"nzTooltipTitle","title"],titleContext:[0,"nzTooltipTitleContext","titleContext"],directiveTitle:[0,"nz-tooltip","directiveTitle"],trigger:[0,"nzTooltipTrigger","trigger"],placement:[0,"nzTooltipPlacement","placement"],origin:[0,"nzTooltipOrigin","origin"],visible:[0,"nzTooltipVisible","visible"],mouseEnterDelay:[0,"nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzTooltipOverlayClassName","overlayClassName"],overlayStyle:[0,"nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:[2,"nzTooltipArrowPointAtCenter","arrowPointAtCenter",m.L39],cdkConnectedOverlayPush:[2,"cdkConnectedOverlayPush","cdkConnectedOverlayPush",m.L39],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],standalone:!0,features:[m.GFd,m.Vt3]})}return E})(),Z=(()=>{class E extends fe{constructor(R,U,se){super(R,U,se),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return Y(this.nzTitle)}updateStyles(){const R=this.nzColor&&(0,M.nP)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:R},this._contentStyleMap={backgroundColor:this.nzColor&&!R?this.nzColor:null,"--antd-arrow-background-color":this.nzColor}}static#e=this.\u0275fac=function(U){return new(U||E)(m.rXU(m.gRc),m.rXU(Ee.dS,8),m.rXU(K.z,9))};static#t=this.\u0275cmp=m.VBU({type:E,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],standalone:!0,features:[m.Vt3,m.aNF],decls:2,vars:5,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(U,se){if(1&U){const Be=m.RV6();m.DNE(0,Ie,6,11,"ng-template",1,0,m.C5r),m.bIt("overlayOutsideClick",function(gt){return m.eBV(Be),m.Njj(se.onClickOutside(gt))})("detach",function(){return m.eBV(Be),m.Njj(se.hide())})("positionChange",function(gt){return m.eBV(Be),m.Njj(se.onPositionChange(gt))})}2&U&&m.Y8G("cdkConnectedOverlayOrigin",se.origin)("cdkConnectedOverlayOpen",se._visible)("cdkConnectedOverlayPositions",se._positions)("cdkConnectedOverlayPush",se.cdkConnectedOverlayPush)("nzArrowPointAtCenter",se.nzArrowPointAtCenter)},dependencies:[t.z_,t.WB,s.YU,s.B3,K.z,L.C,L.m,j.$_,j.vT],encapsulation:2,data:{animation:[e.uX]},changeDetection:0})}return E})(),he=(()=>{class E{static#e=this.\u0275fac=function(U){return new(U||E)};static#t=this.\u0275mod=m.$C({type:E});static#n=this.\u0275inj=m.G2t({imports:[Z]})}return E})()},7391:(Rt,De,a)=>{a.d(De,{Di:()=>Wt,kT:()=>Ue});var t=a(3953),s=a(1413),m=a(4412),e=a(1985),M=a(3726),K=a(983),L=a(8359),j=a(6977),A=a(5558),I=a(1594),w=a(7806);let F=(()=>{class Fe{static#e=this.\u0275fac=function(ie){return new(ie||Fe)};static#t=this.\u0275dir=t.FsC({type:Fe,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(ie,Pe){2&ie&&t.xc7("border","0")("background","transparent")("padding","0")("line-height","inherit")},standalone:!0})}return Fe})(),X=(()=>{class Fe{static#e=this.\u0275fac=function(ie){return new(ie||Fe)};static#t=this.\u0275mod=t.$C({type:Fe});static#n=this.\u0275inj=t.G2t({})}return Fe})();var V=a(5103),x=a(5154),oe=a(3801),J=a(1377),Ee=a(7336),Oe=a(177),pe=a(1025),Ie=a(1011),ve=a(4707),fe=a(6042),Y=a(4500),z=a(317),Z=a(6860),he=a(8203);function E(Fe,te){if(1&Fe&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&Fe){const _e=te.$implicit;t.R7$(),t.Y8G("nzType",_e)}}const S=["textarea"];function R(Fe,te){if(1&Fe){const _e=t.RV6();t.j41(0,"textarea",3,1),t.bIt("blur",function(){t.eBV(_e);const Pe=t.XpG();return t.Njj(Pe.confirm())}),t.k0s(),t.j41(2,"button",4),t.bIt("click",function(){t.eBV(_e);const Pe=t.XpG();return t.Njj(Pe.confirm())}),t.nrm(3,"span",5),t.k0s()}}function U(Fe,te){if(1&Fe&&(t.qex(0),t.nrm(1,"span",8),t.bVm()),2&Fe){const _e=te.$implicit;t.R7$(),t.Y8G("nzType",_e)}}function se(Fe,te){if(1&Fe){const _e=t.RV6();t.j41(0,"button",6),t.bIt("click",function(){t.eBV(_e);const Pe=t.XpG();return t.Njj(Pe.onClick())}),t.DNE(1,U,2,1,"ng-container",7),t.k0s()}if(2&Fe){const _e=t.XpG();t.Y8G("nzTooltipTitle",null===_e.tooltip?null:_e.tooltip||(null==_e.locale?null:_e.locale.edit)),t.R7$(),t.Y8G("nzStringTemplateOutlet",_e.icon)}}const Be=["ellipsisContainer"],Pt=["expandable"],gt=["contentTemplate"],wt=["*"],Le=Fe=>({content:Fe});function zt(Fe,te){1&Fe&&t.SdG(0,0,["*ngIf","!content"])}function xt(Fe,te){if(1&Fe&&(t.DNE(0,zt,1,0,"ng-content",4),t.EFF(1)),2&Fe){const _e=te.content;t.Y8G("ngIf",!_e),t.R7$(),t.SpI(" ",_e," ")}}function st(Fe,te){}function Ct(Fe,te){if(1&Fe&&(t.qex(0),t.EFF(1),t.bVm()),2&Fe){const _e=t.XpG(3);t.R7$(),t.JRh(_e.nzSuffix)}}function It(Fe,te){if(1&Fe&&(t.qex(0),t.DNE(1,st,0,0,"ng-template",8)(2,Ct,2,1,"ng-container",4),t.bVm()),2&Fe){const _e=t.XpG(2),ie=t.sdS(1);t.R7$(),t.Y8G("ngTemplateOutlet",ie)("ngTemplateOutletContext",t.eq3(3,Le,_e.nzContent)),t.R7$(),t.Y8G("ngIf",_e.nzSuffix)}}function Tt(Fe,te){if(1&Fe&&(t.qex(0),t.EFF(1),t.bVm()),2&Fe){const _e=t.XpG(3);t.R7$(),t.JRh(_e.ellipsisStr)}}function en(Fe,te){if(1&Fe&&(t.qex(0),t.EFF(1),t.bVm()),2&Fe){const _e=t.XpG(3);t.R7$(),t.JRh(_e.nzSuffix)}}function Ut(Fe,te){if(1&Fe){const _e=t.RV6();t.j41(0,"a",10,3),t.bIt("click",function(){t.eBV(_e);const Pe=t.XpG(3);return t.Njj(Pe.onExpand())}),t.EFF(2),t.k0s()}if(2&Fe){const _e=t.XpG(3);t.R7$(2),t.SpI(" ",null==_e.locale?null:_e.locale.expand," ")}}function Lt(Fe,te){if(1&Fe&&(t.nrm(0,"span",null,2),t.DNE(2,Tt,2,1,"ng-container",4)(3,en,2,1,"ng-container",4)(4,Ut,3,1,"a",9)),2&Fe){const _e=t.XpG(2);t.R7$(2),t.Y8G("ngIf",_e.isEllipsis),t.R7$(),t.Y8G("ngIf",_e.nzSuffix),t.R7$(),t.Y8G("ngIf",_e.nzExpandable&&_e.isEllipsis)}}function fn(Fe,te){if(1&Fe&&(t.qex(0),t.DNE(1,It,3,5,"ng-container",7)(2,Lt,5,3,"ng-template",null,1,t.C5r),t.bVm()),2&Fe){const _e=t.sdS(3),ie=t.XpG();t.R7$(),t.Y8G("ngIf",ie.expanded||!ie.hasOperationsWithEllipsis&&1===ie.nzEllipsisRows&&!ie.hasEllipsisObservers||ie.canCssEllipsis||ie.nzSuffix&&ie.expanded)("ngIfElse",_e)}}function $n(Fe,te){if(1&Fe){const _e=t.RV6();t.j41(0,"nz-text-edit",11),t.bIt("endEditing",function(Pe){t.eBV(_e);const et=t.XpG();return t.Njj(et.onEndEditing(Pe))})("startEditing",function(){t.eBV(_e);const Pe=t.XpG();return t.Njj(Pe.onStartEditing())}),t.k0s()}if(2&Fe){const _e=t.XpG();t.Y8G("text",_e.nzContent)("icon",_e.nzEditIcon)("tooltip",_e.nzEditTooltip)}}function zn(Fe,te){if(1&Fe){const _e=t.RV6();t.j41(0,"nz-text-copy",12),t.bIt("textCopy",function(Pe){t.eBV(_e);const et=t.XpG();return t.Njj(et.onTextCopy(Pe))}),t.k0s()}if(2&Fe){const _e=t.XpG();t.Y8G("text",_e.copyText)("tooltips",_e.nzCopyTooltips)("icons",_e.nzCopyIcons)}}let bt=(()=>{class Fe{constructor(_e,ie,Pe,et){this.host=_e,this.cdr=ie,this.clipboard=Pe,this.i18n=et,this.copied=!1,this.nativeElement=this.host.nativeElement,this.copyTooltip=null,this.copedTooltip=null,this.copyIcon="copy",this.copedIcon="check",this.destroy$=new s.B,this.icons=["copy","check"],this.textCopy=new t.bkB}ngOnInit(){this.i18n.localeChange.pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(_e){const{tooltips:ie,icons:Pe}=_e;ie&&this.updateTooltips(),Pe&&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 _e=this.text;this.textCopy.emit(_e),this.clipboard.copy(_e),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[_e,ie]=this.tooltips;this.copyTooltip=_e||this.locale?.copy,this.copedTooltip=ie||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){const[_e,ie]=this.icons;this.copyIcon=_e,this.copedIcon=ie,this.cdr.markForCheck()}static#e=this.\u0275fac=function(ie){return new(ie||Fe)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(oe.B0),t.rXU(J.Og))};static#t=this.\u0275cmp=t.VBU({type:Fe,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(ie,Pe){1&ie&&(t.j41(0,"button",0),t.bIt("click",function(){return Pe.onClick()}),t.DNE(1,E,2,1,"ng-container",1),t.k0s()),2&ie&&(t.AVh("ant-typography-copy-success",Pe.copied),t.Y8G("nzTooltipTitle",Pe.copied?Pe.copedTooltip:Pe.copyTooltip),t.R7$(),t.Y8G("nzStringTemplateOutlet",Pe.copied?Pe.copedIcon:Pe.copyIcon))},dependencies:[x.Qt,x.LH,X,F,V.Y3,V.Dn,w.C,w.m],encapsulation:2,changeDetection:0})}return Fe})(),At=(()=>{class Fe{set textarea(_e){this.textarea$.next(_e)}constructor(_e,ie,Pe,et,ht){this.ngZone=_e,this.host=ie,this.cdr=Pe,this.i18n=et,this.destroy$=ht,this.editing=!1,this.icon="edit",this.startEditing=new t.bkB,this.endEditing=new t.bkB(!0),this.nativeElement=this.host.nativeElement,this.textarea$=new m.t(null),this.injector=(0,t.WQX)(t.zZn)}ngOnInit(){this.i18n.localeChange.pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe((0,A.n)(_e=>_e?new e.c(ie=>this.ngZone.runOutsideAngular(()=>(0,M.R)(_e.nativeElement,"keydown").subscribe(ie))):K.w),(0,j.Q)(this.destroy$)).subscribe(_e=>{_e.keyCode!==Ee._f&&_e.keyCode!==Ee.Fm||this.ngZone.run(()=>{_e.keyCode===Ee._f?this.onCancel():this.onEnter(_e),this.cdr.markForCheck()})}),this.textarea$.pipe((0,A.n)(_e=>_e?new e.c(ie=>this.ngZone.runOutsideAngular(()=>(0,M.R)(_e.nativeElement,"input").subscribe(ie))):K.w),(0,j.Q)(this.destroy$)).subscribe(_e=>{this.currentText=_e.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(_e){_e.stopPropagation(),_e.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){const{injector:_e}=this;(0,t.mal)(()=>{this.textarea$.pipe((0,I.$)(ie=>null!=ie),(0,j.Q)(this.destroy$)).subscribe(ie=>{ie.nativeElement.focus(),ie.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:_e})}static#e=this.\u0275fac=function(ie){return new(ie||Fe)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(J.Og),t.rXU(pe.y4))};static#t=this.\u0275cmp=t.VBU({type:Fe,selectors:[["nz-text-edit"]],viewQuery:function(ie,Pe){if(1&ie&&(t.GBs(S,5),t.GBs(Ie.c9,5)),2&ie){let et;t.mGM(et=t.lsd())&&(Pe.textarea=et.first),t.mGM(et=t.lsd())&&(Pe.autosizeDirective=et.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],standalone:!0,features:[t.Jv_([pe.y4]),t.aNF],decls:3,vars:2,consts:[["notEditing",""],["textarea",""],[3,"ngIf","ngIfElse"],["nz-input","","nzAutosize","",3,"blur"],["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,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(ie,Pe){if(1&ie&&t.DNE(0,R,4,0,"ng-template",2)(1,se,2,2,"ng-template",null,0,t.C5r),2&ie){const et=t.sdS(2);t.Y8G("ngIf",Pe.editing)("ngIfElse",et)}},dependencies:[Oe.bT,Ie.j,Ie.Sy,Ie.c9,X,F,V.Y3,V.Dn,x.Qt,x.LH,w.C,w.m],encapsulation:2,changeDetection:0})}return Fe})(),Wt=(()=>{class Fe{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(_e,ie,Pe,et,ht,Kt,cn,Tn,Wn,kn){this.nzConfigService=_e,this.host=ie,this.cdr=Pe,this.viewContainerRef=et,this.renderer=ht,this.platform=Kt,this.i18n=cn,this.resizeService=Wn,this.directionality=kn,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 t.bkB,this.nzCopy=new t.bkB,this.nzExpandChange=new t.bkB,this.nzOnEllipsis=new t.bkB,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 s.B,this.windowResizeSubscription=L.yU.EMPTY,this.document=Tn}onTextCopy(_e){this.nzCopy.emit(_e)}onStartEditing(){this.editing=!0}onEndEditing(_e){this.editing=!1,this.nzContentChange.emit(_e),this.nzContent===_e&&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,z.Fq)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,Y.F)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,Y.j)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const _e=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return _e.detectChanges(),{viewRef:_e,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(_e))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:_e,removeView:ie}=this.getOriginContentViewRef(),Pe=[this.textCopyRef,this.textEditRef].filter(Wn=>Wn&&Wn.nativeElement).map(Wn=>Wn.nativeElement),et=this.getExpandableBtnElement();et&&Pe.push(et);const{contentNodes:ht,text:Kt,ellipsis:cn}=(0,z.xP)(this.host.nativeElement,this.nzEllipsisRows,_e.rootNodes,Pe,this.ellipsisStr,this.nzSuffix);ie(),this.ellipsisText=Kt,cn!==this.isEllipsis&&(this.isEllipsis=cn,this.nzOnEllipsis.emit(cn));const Tn=this.ellipsisContainer.nativeElement;for(;Tn.firstChild;)this.renderer.removeChild(Tn,Tn.firstChild);ht.forEach(Wn=>{this.renderer.appendChild(Tn,Wn.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const _e=this.locale?this.locale.expand:"",ie=this.expandableBtnElementCache;if(!ie||ie.innerText===_e){const Pe=this.document.createElement("a");Pe.className="ant-typography-expand",Pe.innerText=_e,this.expandableBtnElementCache=Pe}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,j.Q)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe((0,j.Q)(this.destroy$)).subscribe(_e=>{this.dir=_e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(_e){const{nzCopyable:ie,nzEditable:Pe,nzExpandable:et,nzEllipsis:ht,nzContent:Kt,nzEllipsisRows:cn,nzSuffix:Tn}=_e;(ie||Pe||et||ht||Kt||cn||Tn)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}static#e=this.\u0275fac=function(ie){return new(ie||Fe)(t.rXU(fe.yx),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.c1b),t.rXU(t.sFG),t.rXU(Z.OD),t.rXU(J.Og),t.rXU(Oe.qQ),t.rXU(pe.cB),t.rXU(he.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Fe,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(ie,Pe){if(1&ie&&(t.GBs(At,5),t.GBs(bt,5),t.GBs(Be,5),t.GBs(Pt,5),t.GBs(gt,5)),2&ie){let et;t.mGM(et=t.lsd())&&(Pe.textEditRef=et.first),t.mGM(et=t.lsd())&&(Pe.textCopyRef=et.first),t.mGM(et=t.lsd())&&(Pe.ellipsisContainer=et.first),t.mGM(et=t.lsd())&&(Pe.expandableBtn=et.first),t.mGM(et=t.lsd())&&(Pe.contentTemplate=et.first)}},hostVars:26,hostBindings:function(ie,Pe){2&ie&&(t.xc7("-webkit-line-clamp",Pe.canCssEllipsis&&Pe.nzEllipsisRows>1?Pe.nzEllipsisRows:null),t.AVh("ant-typography",!Pe.editing)("ant-typography-rtl","rtl"===Pe.dir)("ant-typography-edit-content",Pe.editing)("ant-typography-secondary","secondary"===Pe.nzType)("ant-typography-warning","warning"===Pe.nzType)("ant-typography-danger","danger"===Pe.nzType)("ant-typography-success","success"===Pe.nzType)("ant-typography-disabled",Pe.nzDisabled)("ant-typography-ellipsis",Pe.nzEllipsis&&!Pe.expanded)("ant-typography-single-line",Pe.nzEllipsis&&1===Pe.nzEllipsisRows)("ant-typography-ellipsis-single-line",Pe.canCssEllipsis&&1===Pe.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",Pe.canCssEllipsis&&Pe.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",t.L39],nzEditable:[2,"nzEditable","nzEditable",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzExpandable:[2,"nzExpandable","nzExpandable",t.L39],nzEllipsis:[2,"nzEllipsis","nzEllipsis",t.L39],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",t.Udg],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:wt,decls:5,vars:3,consts:[["contentTemplate",""],["jsEllipsis",""],["ellipsisContainer",""],["expandable",""],[4,"ngIf"],[3,"text","icon","tooltip","endEditing","startEditing",4,"ngIf"],[3,"text","tooltips","icons","textCopy",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-typography-expand",3,"click",4,"ngIf"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(ie,Pe){1&ie&&(t.NAR(),t.DNE(0,xt,2,2,"ng-template",null,0,t.C5r)(2,fn,4,2,"ng-container",4)(3,$n,1,3,"nz-text-edit",5)(4,zn,1,3,"nz-text-copy",6)),2&ie&&(t.R7$(2),t.Y8G("ngIf",!Pe.editing),t.R7$(),t.Y8G("ngIf",Pe.nzEditable),t.R7$(),t.Y8G("ngIf",Pe.nzCopyable&&!Pe.editing))},dependencies:[Oe.bT,Oe.T3,At,bt],encapsulation:2,changeDetection:0})}return(0,ve.Cg)([(0,fe.H4)()],Fe.prototype,"nzCopyTooltips",void 0),(0,ve.Cg)([(0,fe.H4)()],Fe.prototype,"nzCopyIcons",void 0),(0,ve.Cg)([(0,fe.H4)()],Fe.prototype,"nzEditTooltip",void 0),(0,ve.Cg)([(0,fe.H4)()],Fe.prototype,"nzEditIcon",void 0),(0,ve.Cg)([(0,fe.H4)()],Fe.prototype,"nzEllipsisRows",void 0),Fe})(),Ue=(()=>{class Fe{static#e=this.\u0275fac=function(ie){return new(ie||Fe)};static#t=this.\u0275mod=t.$C({type:Fe});static#n=this.\u0275inj=t.G2t({imports:[Wt,bt,At]})}return Fe})()},776:(Rt,De,a)=>{a.d(De,{J:()=>A,s:()=>I});var t=a(3953),s=a(177);const m=w=>["segment",w],e=(w,F)=>({"segment-main":!0,expandable:w,expanded:F});function M(w,F){1&w&&t.nrm(0,"div",9)}function K(w,F){if(1&w&&(t.j41(0,"span",10),t.EFF(1),t.k0s()),2&w){const X=t.XpG().$implicit;t.R7$(),t.JRh(X.description)}}function L(w,F){if(1&w&&(t.j41(0,"section",11),t.nrm(1,"ngx-json-viewer",12),t.k0s()),2&w){const X=t.XpG().$implicit,V=t.XpG();t.R7$(),t.Y8G("json",X.value)("expanded",V.expanded)("depth",V.depth)("_currentDepth",V._currentDepth+1)}}function j(w,F){if(1&w){const X=t.RV6();t.j41(0,"section",2)(1,"section",3),t.bIt("click",function(){const x=t.eBV(X).$implicit,oe=t.XpG();return t.Njj(oe.toggle(x))}),t.DNE(2,M,1,0,"div",4),t.j41(3,"span",5),t.EFF(4),t.k0s(),t.j41(5,"span",6),t.EFF(6,": "),t.k0s(),t.DNE(7,K,2,1,"span",7),t.k0s(),t.DNE(8,L,2,4,"section",8),t.k0s()}if(2&w){const X=F.$implicit,V=t.XpG();t.Y8G("ngClass",t.eq3(6,m,"segment-type-"+X.type)),t.R7$(),t.Y8G("ngClass",t.l_i(8,e,V.isExpandable(X),X.expanded)),t.R7$(),t.Y8G("ngIf",V.isExpandable(X)),t.R7$(2),t.JRh(X.key),t.R7$(3),t.Y8G("ngIf",!X.expanded||!V.isExpandable(X)),t.R7$(),t.Y8G("ngIf",X.expanded&&V.isExpandable(X))}}let A=(()=>{class w{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(X=>{this.segments.push(this.parseKeyValue(X,this.json[X]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(X){return"object"===X.type||"array"===X.type}toggle(X){this.isExpandable(X)&&(X.expanded=!X.expanded)}parseKeyValue(X,V){const x={key:X,value:V,type:void 0,description:""+V,expanded:this.isExpanded()};switch(typeof x.value){case"number":x.type="number";break;case"boolean":x.type="boolean";break;case"function":x.type="function";break;case"string":x.type="string",x.description='"'+x.value+'"';break;case"undefined":x.type="undefined",x.description="undefined";break;case"object":null===x.value?(x.type="null",x.description="null"):Array.isArray(x.value)?(x.type="array",x.description="Array["+x.value.length+"] "+JSON.stringify(x.value)):x.value instanceof Date?x.type="date":(x.type="object",x.description="Object "+JSON.stringify(x.value))}return x}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(X){const V=new WeakMap;return function x(oe,J){let Ee,Oe;return"object"!=typeof oe||null===oe||oe instanceof Boolean||oe instanceof Date||oe instanceof Number||oe instanceof RegExp||oe instanceof String?oe:(Ee=V.get(oe),void 0!==Ee?{$ref:Ee}:(V.set(oe,J),Array.isArray(oe)?(Oe=[],oe.forEach(function(pe,Ie){Oe[Ie]=x(pe,J+"["+Ie+"]")})):(Oe={},Object.keys(oe).forEach(function(pe){Oe[pe]=x(oe[pe],J+"["+JSON.stringify(pe)+"]")})),Oe))}(X,"$")}}return w.\u0275fac=function(X){return new(X||w)},w.\u0275cmp=t.VBU({type:w,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[t.OA$],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["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(X,V){1&X&&(t.j41(0,"section",0),t.DNE(1,j,9,11,"section",1),t.k0s()),2&X&&(t.R7$(),t.Y8G("ngForOf",V.segments))},dependencies:[s.YU,s.Sq,s.bT,w],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}']}),w})(),I=(()=>{class w{}return w.\u0275fac=function(X){return new(X||w)},w.\u0275mod=t.$C({type:w}),w.\u0275inj=t.G2t({imports:[s.MD]}),w})()},2081:(Rt,De,a)=>{a.d(De,{DX:()=>oe,yN:()=>At,LV:()=>Ue});const t=()=>Object.create(null),{forEach:s,slice:m}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class M{constructor(te=!0,_e=t){this.weakness=te,this.makeData=_e}lookup(...te){return this.lookupArray(te)}lookupArray(te){let _e=this;return s.call(te,ie=>_e=_e.getChildTrie(ie)),e.call(_e,"data")?_e.data:_e.data=this.makeData(m.call(te))}peek(...te){return this.peekArray(te)}peekArray(te){let _e=this;for(let ie=0,Pe=te.length;_e&&iete.push(_e)),te};function E(Fe){const{unsubscribe:te}=Fe;"function"==typeof te&&(Fe.unsubscribe=void 0,te())}const S=[],R=100;function U(Fe,te){if(!Fe)throw new Error(te||"assertion failure")}function se(Fe,te){const _e=Fe.length;return _e>0&&_e===te.length&&Fe[_e-1]===te[_e-1]}function Be(Fe){switch(Fe.length){case 0:throw new Error("unknown value");case 1:return Fe[0];case 2:throw Fe[1]}}function Pt(Fe){return Fe.slice(0)}let gt=(()=>{class Fe{constructor(_e){this.fn=_e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Fe.count}peek(){if(1===this.value.length&&!xt(this))return wt(this),this.value[0]}recompute(_e){return U(!this.recomputing,"already recomputing"),wt(this),xt(this)?function Le(Fe,te){return fn(Fe),Y.withValue(Fe,zt,[Fe,te]),function zn(Fe,te){if("function"==typeof Fe.subscribe)try{E(Fe),Fe.unsubscribe=Fe.subscribe.apply(null,te)}catch{return Fe.setDirty(),!1}return!0}(Fe,te)&&function st(Fe){Fe.dirty=!1,!xt(Fe)&&It(Fe)}(Fe),Be(Fe.value)}(this,_e):Be(this.value)}setDirty(){this.dirty||(this.dirty=!0,Ct(this),E(this))}dispose(){this.setDirty(),fn(this),Tt(this,(_e,ie)=>{_e.setDirty(),$n(_e,this)})}forget(){this.dispose()}dependOn(_e){_e.add(this),this.deps||(this.deps=S.pop()||new Set),this.deps.add(_e)}forgetDeps(){this.deps&&(he(this.deps).forEach(_e=>_e.delete(this)),this.deps.clear(),S.push(this.deps),this.deps=null)}}return Fe.count=0,Fe})();function wt(Fe){const te=Y.getValue();if(te)return Fe.parents.add(te),te.childValues.has(Fe)||te.childValues.set(Fe,[]),xt(Fe)?en(te,Fe):Ut(te,Fe),te}function zt(Fe,te){Fe.recomputing=!0;const{normalizeResult:_e}=Fe;let ie;_e&&1===Fe.value.length&&(ie=Pt(Fe.value)),Fe.value.length=0;try{if(Fe.value[0]=Fe.fn.apply(null,te),_e&&ie&&!se(ie,Fe.value))try{Fe.value[0]=_e(Fe.value[0],ie[0])}catch{}}catch(Pe){Fe.value[1]=Pe}Fe.recomputing=!1}function xt(Fe){return Fe.dirty||!(!Fe.dirtyChildren||!Fe.dirtyChildren.size)}function Ct(Fe){Tt(Fe,en)}function It(Fe){Tt(Fe,Ut)}function Tt(Fe,te){const _e=Fe.parents.size;if(_e){const ie=he(Fe.parents);for(let Pe=0;Pe<_e;++Pe)te(ie[Pe],Fe)}}function en(Fe,te){U(Fe.childValues.has(te)),U(xt(te));const _e=!xt(Fe);if(Fe.dirtyChildren){if(Fe.dirtyChildren.has(te))return}else Fe.dirtyChildren=S.pop()||new Set;Fe.dirtyChildren.add(te),_e&&Ct(Fe)}function Ut(Fe,te){U(Fe.childValues.has(te)),U(!xt(te));const _e=Fe.childValues.get(te);0===_e.length?Fe.childValues.set(te,Pt(te.value)):se(_e,te.value)||Fe.setDirty(),Lt(Fe,te),!xt(Fe)&&It(Fe)}function Lt(Fe,te){const _e=Fe.dirtyChildren;_e&&(_e.delete(te),0===_e.size&&(S.length0&&Fe.childValues.forEach((te,_e)=>{$n(Fe,_e)}),Fe.forgetDeps(),U(null===Fe.dirtyChildren)}function $n(Fe,te){te.parents.delete(Fe),Fe.childValues.delete(te),Lt(Fe,te)}const bt={setDirty:!0,dispose:!0,forget:!0};function At(Fe){const te=new Map,_e=Fe&&Fe.subscribe;function ie(Pe){const et=Y.getValue();if(et){let ht=te.get(Pe);ht||te.set(Pe,ht=new Set),et.dependOn(ht),"function"==typeof _e&&(E(ht),ht.unsubscribe=_e(Pe))}}return ie.dirty=function(et,ht){const Kt=te.get(et);if(Kt){const cn=ht&&Z.call(bt,ht)?ht:"setDirty";he(Kt).forEach(Tn=>Tn[cn]()),te.delete(et),E(Kt)}},ie}let Et;function St(...Fe){return(Et||(Et=new M("function"==typeof WeakMap))).lookupArray(Fe)}const Wt=new Set;function Ue(Fe,{max:te=Math.pow(2,16),keyArgs:_e,makeCacheKey:ie=St,normalizeResult:Pe,subscribe:et,cache:ht=L.C}=Object.create(null)){const Kt="function"==typeof ht?new ht(te,In=>In.dispose()):ht,cn=function(){const In=ie.apply(null,_e?_e.apply(null,arguments):arguments);if(void 0===In)return Fe.apply(null,arguments);let Un=Kt.get(In);Un||(Kt.set(In,Un=new gt(Fe)),Un.normalizeResult=Pe,Un.subscribe=et,Un.forget=()=>Kt.delete(In));const dn=Un.recompute(Array.prototype.slice.call(arguments));return Kt.set(In,Un),Wt.add(Kt),Y.hasValue()||(Wt.forEach(qt=>qt.clean()),Wt.clear()),dn};function Tn(In){const Un=In&&Kt.get(In);Un&&Un.setDirty()}function Wn(In){const Un=In&&Kt.get(In);if(Un)return Un.peek()}function kn(In){return!!In&&Kt.delete(In)}return Object.defineProperty(cn,"size",{get:()=>Kt.size,configurable:!1,enumerable:!1}),Object.freeze(cn.options={max:te,keyArgs:_e,makeCacheKey:ie,normalizeResult:Pe,subscribe:et,cache:Kt}),cn.dirtyKey=Tn,cn.dirty=function(){Tn(ie.apply(null,arguments))},cn.peekKey=Wn,cn.peek=function(){return Wn(ie.apply(null,arguments))},cn.forgetKey=kn,cn.forget=function(){return kn(ie.apply(null,arguments))},cn.makeCacheKey=ie,cn.getKey=_e?function(){return ie.apply(null,_e.apply(null,arguments))}:ie,Object.freeze(cn)}},7994:(Rt,De,a)=>{function m(z,Z){(null==Z||Z>z.length)&&(Z=z.length);for(var he=0,E=new Array(Z);heY});var K=function(){return"function"==typeof Symbol},L=function(z){return K()&&!!Symbol[z]},j=function(z){return L(z)?Symbol[z]:"@@"+z};K()&&!L("observable")&&(Symbol.observable=Symbol("observable"));var A=j("iterator"),I=j("observable"),w=j("species");function F(z,Z){var he=z[Z];if(null!=he){if("function"!=typeof he)throw new TypeError(he+" is not a function");return he}}function X(z){var Z=z.constructor;return void 0!==Z&&null===(Z=Z[w])&&(Z=void 0),void 0!==Z?Z:Y}function x(z){x.log?x.log(z):setTimeout(function(){throw z})}function oe(z){Promise.resolve().then(function(){try{z()}catch(Z){x(Z)}})}function J(z){var Z=z._cleanup;if(void 0!==Z&&(z._cleanup=void 0,Z))try{if("function"==typeof Z)Z();else{var he=F(Z,"unsubscribe");he&&he.call(Z)}}catch(E){x(E)}}function Ee(z){z._observer=void 0,z._queue=void 0,z._state="closed"}function pe(z,Z,he){z._state="running";var E=z._observer;try{var S=F(E,Z);switch(Z){case"next":S&&S.call(E,he);break;case"error":if(Ee(z),!S)throw he;S.call(E,he);break;case"complete":Ee(z),S&&S.call(E)}}catch(R){x(R)}"closed"===z._state?J(z):"running"===z._state&&(z._state="ready")}function Ie(z,Z,he){if("closed"!==z._state){if("buffering"===z._state)return void z._queue.push({type:Z,value:he});if("ready"!==z._state)return z._state="buffering",z._queue=[{type:Z,value:he}],void oe(function(){return function Oe(z){var Z=z._queue;if(Z){z._queue=void 0,z._state="ready";for(var he=0;he1,se=!1,Pt=arguments[1];return new R(function(gt){return S.subscribe({next:function(wt){var Le=!se;if(se=!0,!Le||U)try{Pt=E(Pt,wt)}catch(zt){return gt.error(zt)}else Pt=wt},error:function(wt){gt.error(wt)},complete:function(){if(!se&&!U)return gt.error(new TypeError("Cannot reduce an empty sequence"));gt.next(Pt),gt.complete()}})})},Z.concat=function(){for(var E=this,S=arguments.length,R=new Array(S),U=0;U=0&&se.splice(Le,1),Pt()}});se.push(wt)},error:function(gt){U.error(gt)},complete:function(){Pt()}});function Pt(){Be.closed&&0===se.length&&U.complete()}return function(){se.forEach(function(gt){return gt.unsubscribe()}),Be.unsubscribe()}})},Z[I]=function(){return this},z.from=function(E){var S="function"==typeof this?this:z;if(null==E)throw new TypeError(E+" is not an object");var R=F(E,I);if(R){var U=R.call(E);if(Object(U)!==U)throw new TypeError(U+" is not an object");return function V(z){return z instanceof Y}(U)&&U.constructor===S?U:new S(function(se){return U.subscribe(se)})}if(L("iterator")&&(R=F(E,A)))return new S(function(se){oe(function(){if(!se.closed){for(var Pt,Be=function t(z,Z){var he=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(he)return(he=he.call(z)).next.bind(he);if(Array.isArray(z)||(he=function s(z,Z){if(z){if("string"==typeof z)return m(z,Z);var he=Object.prototype.toString.call(z).slice(8,-1);if("Object"===he&&z.constructor&&(he=z.constructor.name),"Map"===he||"Set"===he)return Array.from(z);if("Arguments"===he||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(he))return m(z,Z)}}(z))||Z&&z&&"number"==typeof z.length){he&&(z=he);var E=0;return function(){return E>=z.length?{done:!0}:{done:!1,value:z[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(R.call(E));!(Pt=Be()).done;)if(se.next(Pt.value),se.closed)return;se.complete()}})});if(Array.isArray(E))return new S(function(se){oe(function(){if(!se.closed){for(var Be=0;Be{function M(wt,Le,zt,xt){var It,st=arguments.length,Ct=st<3?Le:null===xt?xt=Object.getOwnPropertyDescriptor(Le,zt):xt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ct=Reflect.decorate(wt,Le,zt,xt);else for(var Tt=wt.length-1;Tt>=0;Tt--)(It=wt[Tt])&&(Ct=(st<3?It(Ct):st>3?It(Le,zt,Ct):It(Le,zt))||Ct);return st>3&&Ct&&Object.defineProperty(Le,zt,Ct),Ct}a.d(De,{Cg:()=>M}),"function"==typeof SuppressedError&&SuppressedError}},Rt=>{Rt(Rt.s=5500)}]); \ No newline at end of file diff --git a/server/public/runtime.1025049778e40ccd.js b/server/public/runtime.1025049778e40ccd.js deleted file mode 100644 index 10d224281..000000000 --- a/server/public/runtime.1025049778e40ccd.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var f=m[e]={exports:{}};return v[e](f,f.exports,a),f.exports}a.m=v,e=[],a.O=(t,f,d,n)=>{if(!f){var r=1/0;for(c=0;c=n)&&Object.keys(a.O).every(p=>a.O[p](f[b]))?f.splice(b--,1):(u=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[f,d,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var 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=>(2076===e?"common":e)+"."+{13:"1c95157fcb863e15",262:"84b17d4caba014bf",326:"0f2f111f3db5a3fd",394:"52d47ba056af62ef",863:"1bc41fd372b9f778",1110:"7b52c463f194aaaa",1136:"bfedce7cea07aeba",1234:"a5bc84469342b6bc",1250:"7756c9d578470c45",1778:"26829d77868bc4e7",1781:"59c44933bf424ffb",2076:"9755d85bff8f8ffd",2613:"5189fb0b37846b42",2849:"a8b9bc216e845c4a",2971:"c181025f2ccc41e8",3023:"31d21676d630e8fb",3118:"9952f68334417347",3197:"83d467cd90147705",3232:"fdb5ba754cbd3bcc",3236:"208b28fc63a25c38",3428:"cdb600b9282e6049",3967:"22bbfdd34bbdd00f",4009:"0491870acf12d3e0",4021:"1bd5b451e923b91d",4178:"54cf940d01f8fd98",4391:"9ca93707540c2116",4514:"ef370664c4d41745",4623:"90254fe308f3807e",4705:"38b079f6c98d8b64",4712:"87afb00358a3ec56",5076:"92a5de69b080b4be",5231:"50ca04a47aafec5f",5384:"fb870c30c6349468",5399:"bd6342aebeaba60b",5439:"6ebe3bb6b34df19f",5514:"93eccc1ac8358eda",5528:"a700c24685191052",5615:"885b32b0e5e22600",5627:"603ab01f65c98827",5813:"049dbb50f172d76e",5827:"b8ec7796a12e1d9f",5861:"b84a2f2b82db2c2a",5892:"804bee8cc1360cb5",6024:"72cfcf7047b0c3fa",6148:"5309740a6ef7c896",6161:"5ccd616390bbce6a",6390:"c966e51ae3610b92",6508:"7666392f9795c9b9",6618:"1122c81efe8fd01c",7240:"fd39301c3de5112e",7732:"16b892f1b795df30",8191:"7e7c5c5efad7b93e",8414:"2326e76d85377afd",8584:"83bb6d98d4288ac4",8696:"e163a7f5de3d179b",8733:"72f4f037f4e2a419",8997:"653e5c80735d2d6e",9034:"558479e1ac1c528e",9452:"273b315fa5f5db6a",9611:"3aa036277a3e0516"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(f,d,n,c)=>{if(e[f])e[f].push(d);else{var r,u;if(void 0!==n)for(var b=document.getElementsByTagName("script"),o=0;o{r.onerror=r.onload=null,clearTimeout(s);var _=e[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={9121:0};a.f.j=(d,n)=>{var c=a.o(e,d)?e[d]:void 0;if(0!==c)if(c)n.push(c[2]);else if(9121!=d){var r=new Promise((i,l)=>c=e[d]=[i,l]);n.push(c[2]=r);var u=a.p+a.u(d),b=new Error;a.l(u,i=>{if(a.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;b.message="Loading chunk "+d+" failed.\n("+l+": "+s+")",b.name="ChunkLoadError",b.type=l,b.request=s,c[1](b)}},"chunk-"+d,d)}else e[d]=0},a.O.j=d=>0===e[d];var t=(d,n)=>{var b,o,[c,r,u]=n,i=0;if(c.some(s=>0!==e[s])){for(b in r)a.o(r,b)&&(a.m[b]=r[b]);if(u)var l=u(a)}for(d&&d(n);i{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var d=m[e]={exports:{}};return v[e](d,d.exports,a),d.exports}a.m=v,e=[],a.O=(t,d,c,n)=>{if(!d){var r=1/0;for(f=0;f=n)&&Object.keys(a.O).every(p=>a.O[p](d[b]))?d.splice(b--,1):(u=!1,n0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[d,c,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var d in t)a.o(t,d)&&!a.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:t[d]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,d)=>(a.f[d](e,t),t),[])),a.u=e=>(2076===e?"common":e)+"."+{262:"84b17d4caba014bf",326:"0f2f111f3db5a3fd",394:"52d47ba056af62ef",424:"acb6891de8df93dd",445:"0c27ca3df1eab994",863:"1bc41fd372b9f778",1110:"7b52c463f194aaaa",1136:"bfedce7cea07aeba",1234:"0175203b1807da01",1250:"7756c9d578470c45",1778:"26829d77868bc4e7",1781:"59c44933bf424ffb",2076:"421f2e2f96784e20",2553:"5b65a8e1a951c61a",2971:"c61f992b790e48cb",3023:"31d21676d630e8fb",3118:"9952f68334417347",3232:"48f4d793b40ba3aa",3236:"208b28fc63a25c38",3428:"eeb00a3f80b3d9a5",3967:"22bbfdd34bbdd00f",4009:"eea4f50908983d43",4021:"1bd5b451e923b91d",4178:"66d6bc4365e46b51",4334:"357a0ca21f42d9e5",4391:"9ca93707540c2116",4514:"ef370664c4d41745",4705:"f3d30f81278ccfa3",4712:"87afb00358a3ec56",5076:"92a5de69b080b4be",5231:"50ca04a47aafec5f",5384:"c698918596b093b6",5399:"bd6342aebeaba60b",5439:"c92ef8fe0adc2bdc",5514:"93eccc1ac8358eda",5528:"2bc117ecfc08ac24",5615:"eb9a848847a2a17d",5627:"603ab01f65c98827",5716:"df9a59ea9e5a2763",5813:"2754cd76fca31059",5827:"b8ec7796a12e1d9f",5892:"804bee8cc1360cb5",5958:"50527ae55cd0fe6e",6024:"2cf87d0897668d31",6148:"069dfef439190e01",6161:"5ccd616390bbce6a",6508:"3dbedc63f5fddab6",6618:"1122c81efe8fd01c",7038:"ff8a7202cc6f84c1",7240:"fd39301c3de5112e",7732:"16b892f1b795df30",8191:"7e7c5c5efad7b93e",8414:"2326e76d85377afd",8584:"fa76254f1fc877d6",8696:"e163a7f5de3d179b",8733:"72f4f037f4e2a419",9034:"558479e1ac1c528e",9373:"1426b85d2fdfe1ad",9452:"273b315fa5f5db6a",9611:"3aa036277a3e0516"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(d,c,n,f)=>{if(e[d])e[d].push(c);else{var r,u;if(void 0!==n)for(var b=document.getElementsByTagName("script"),o=0;o{r.onerror=r.onload=null,clearTimeout(s);var _=e[d];if(delete e[d],r.parentNode&&r.parentNode.removeChild(r),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),u&&document.head.appendChild(r)}}})(),a.r=e=>{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={9121:0};a.f.j=(c,n)=>{var f=a.o(e,c)?e[c]:void 0;if(0!==f)if(f)n.push(f[2]);else if(9121!=c){var r=new Promise((i,l)=>f=e[c]=[i,l]);n.push(f[2]=r);var u=a.p+a.u(c),b=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(f=e[c])&&(e[c]=void 0),f)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;b.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",b.name="ChunkLoadError",b.type=l,b.request=s,f[1](b)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,n)=>{var b,o,[f,r,u]=n,i=0;if(f.some(s=>0!==e[s])){for(b in r)a.o(r,b)&&(a.m[b]=r[b]);if(u)var l=u(a)}for(c&&c(n);i