-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2981.77e45267ba6ef0ed.js
1 lines (1 loc) · 60.5 KB
/
2981.77e45267ba6ef0ed.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[2981],{7768:(Tt,N,_)=>{_.d(N,{FK:()=>ht,Up:()=>E,VI:()=>C,nb:()=>S,oX:()=>p,uY:()=>q,v5:()=>ct,x8:()=>b});var i=_(8617),v=_(8203),O=_(7336),a=_(4438),R=_(6860),L=_(5286),P=_(4421),M=_(3176),V=_(7605);const H=["*"];function w(c,pt){1&c&&a.SdG(0)}let p=(()=>{class c{constructor(o){this._elementRef=o}focus(){this._elementRef.nativeElement.focus()}static#t=this.\u0275fac=function(l){return new(l||c)(a.rXU(a.aKT))};static#e=this.\u0275dir=a.FsC({type:c,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0})}return c})(),S=(()=>{class c{constructor(o){this.template=o}static#t=this.\u0275fac=function(l){return new(l||c)(a.rXU(a.C4Q))};static#e=this.\u0275dir=a.FsC({type:c,selectors:[["","cdkStepLabel",""]],standalone:!0})}return c})(),m=0;const b=new a.nKC("STEPPER_GLOBAL_OPTIONS");let C=(()=>{class c{get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(o){this._completedOverride=o}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(o){this._customError=o}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(o,l){this._stepper=o,this.interacted=!1,this.interactedStream=new a.bkB,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=l||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}static#t=this.\u0275fac=function(l){return new(l||c)(a.rXU((0,a.Rfq)(()=>E)),a.rXU(b,8))};static#e=this.\u0275cmp=a.VBU({type:c,selectors:[["cdk-step"]],contentQueries:function(l,f,y){if(1&l&&a.wni(y,S,5),2&l){let A;a.mGM(A=a.lsd())&&(f.stepLabel=A.first)}},viewQuery:function(l,f){if(1&l&&a.GBs(a.C4Q,7),2&l){let y;a.mGM(y=a.lsd())&&(f.content=y.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",a.L39],optional:[2,"optional","optional",a.L39],completed:[2,"completed","completed",a.L39],hasError:[2,"hasError","hasError",a.L39]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[a.GFd,a.OA$,a.aNF],ngContentSelectors:H,decls:1,vars:0,template:function(l,f){1&l&&(a.NAR(),a.DNE(0,w,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return c})(),E=(()=>{class c{get selectedIndex(){return this._selectedIndex}set selectedIndex(o){this.steps&&this._steps?(this._isValidIndex(o),this.selected?._markAsInteracted(),this._selectedIndex!==o&&!this._anyControlsInvalidOrPending(o)&&(o>=this._selectedIndex||this.steps.toArray()[o].editable)&&this._updateSelectedItemIndex(o)):this._selectedIndex=o}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(o){this.selectedIndex=o&&this.steps?this.steps.toArray().indexOf(o):-1}get orientation(){return this._orientation}set orientation(o){this._orientation=o,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===o)}constructor(o,l,f){this._dir=o,this._changeDetectorRef=l,this._elementRef=f,this._destroyed=new L.B7,this.steps=new a.rOR,this._sortedHeaders=new a.rOR,this.linear=!1,this._selectedIndex=0,this.selectionChange=new a.bkB,this.selectedIndexChange=new a.bkB,this._orientation="horizontal",this._groupId=m++}ngAfterContentInit(){this._steps.changes.pipe((0,M.Z)(this._steps),(0,V.Q)(this._destroyed)).subscribe(o=>{this.steps.reset(o.filter(l=>l._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,M.Z)(this._stepHeader),(0,V.Q)(this._destroyed)).subscribe(o=>{this._sortedHeaders.reset(o.toArray().sort((l,f)=>l._elementRef.nativeElement.compareDocumentPosition(f._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new i.Bu(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,P.of)()).pipe((0,M.Z)(this._layoutDirection()),(0,V.Q)(this._destroyed)).subscribe(o=>this._keyManager.withHorizontalOrientation(o)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(o=>o.reset()),this._stateChanged()}_getStepLabelId(o){return`cdk-step-label-${this._groupId}-${o}`}_getStepContentId(o){return`cdk-step-content-${this._groupId}-${o}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(o){const l=o-this._selectedIndex;return l<0?"rtl"===this._layoutDirection()?"next":"previous":l>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(o,l="number"){const f=this.steps.toArray()[o],y=this._isCurrentStep(o);return f._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(f,y):this._getGuidelineLogic(f,y,l)}_getDefaultIndicatorLogic(o,l){return o._showError()&&o.hasError&&!l?"error":!o.completed||l?"number":o.editable?"edit":"done"}_getGuidelineLogic(o,l,f="number"){return o._showError()&&o.hasError&&!l?"error":o.completed&&!l?"done":o.completed&&l?f:o.editable&&l?"edit":f}_isCurrentStep(o){return this._selectedIndex===o}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(o){const l=this.steps.toArray();this.selectionChange.emit({selectedIndex:o,previouslySelectedIndex:this._selectedIndex,selectedStep:l[o],previouslySelectedStep:l[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(o):this._keyManager.updateActiveItem(o),this._selectedIndex=o,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(o){const l=(0,O.rp)(o),f=o.keyCode,y=this._keyManager;null==y.activeItemIndex||l||f!==O.t6&&f!==O.Fm?y.setFocusOrigin("keyboard").onKeydown(o):(this.selectedIndex=y.activeItemIndex,o.preventDefault())}_anyControlsInvalidOrPending(o){return!!(this.linear&&o>=0)&&this.steps.toArray().slice(0,o).some(l=>{const f=l.stepControl;return(f?f.invalid||f.pending||!l.interacted:!l.completed)&&!l.optional&&!l._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const o=this._elementRef.nativeElement,l=(0,R.vc)();return o===l||o.contains(l)}_isValidIndex(o){return o>-1&&(!this.steps||o<this.steps.length)}static#t=this.\u0275fac=function(l){return new(l||c)(a.rXU(v.dS,8),a.rXU(a.gRc),a.rXU(a.aKT))};static#e=this.\u0275dir=a.FsC({type:c,selectors:[["","cdkStepper",""]],contentQueries:function(l,f,y){if(1&l&&(a.wni(y,C,5),a.wni(y,p,5)),2&l){let A;a.mGM(A=a.lsd())&&(f._steps=A),a.mGM(A=a.lsd())&&(f._stepHeader=A)}},inputs:{linear:[2,"linear","linear",a.L39],selectedIndex:[2,"selectedIndex","selectedIndex",a.Udg],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"],standalone:!0,features:[a.GFd]})}return c})(),ct=(()=>{class c{constructor(o){this._stepper=o,this.type="submit"}static#t=this.\u0275fac=function(l){return new(l||c)(a.rXU(E))};static#e=this.\u0275dir=a.FsC({type:c,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(l,f){1&l&&a.bIt("click",function(){return f._stepper.next()}),2&l&&a.Mr5("type",f.type)},inputs:{type:"type"},standalone:!0})}return c})(),ht=(()=>{class c{constructor(o){this._stepper=o,this.type="button"}static#t=this.\u0275fac=function(l){return new(l||c)(a.rXU(E))};static#e=this.\u0275dir=a.FsC({type:c,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(l,f){1&l&&a.bIt("click",function(){return f._stepper.previous()}),2&l&&a.Mr5("type",f.type)},inputs:{type:"type"},standalone:!0})}return c})(),q=(()=>{class c{static#t=this.\u0275fac=function(l){return new(l||c)};static#e=this.\u0275mod=a.$C({type:c});static#n=this.\u0275inj=a.G2t({imports:[v.jI]})}return c})()},2981:(Tt,N,_)=>{_.r(N),_.d(N,{CdkCustomStepperWithoutFormExample:()=>M,CdkLinearStepperWithFormExample:()=>H,CustomLinearStepper:()=>w,CustomStepper:()=>V});var i=_(4438),v=_(7768),O=_(177),a=_(9417);function R(p,S){if(1&p){const m=i.RV6();i.j41(0,"button",6),i.bIt("click",function(){const d=i.eBV(m).$index,b=i.XpG();return i.Njj(b.selectStepByIndex(d))}),i.EFF(1),i.k0s()}if(2&p){const m=S.$index,g=i.XpG();i.AVh("example-active",g.selectedIndex===m),i.R7$(),i.SpI("Step ",m+1,"")}}function L(p,S){if(1&p){const m=i.RV6();i.j41(0,"button",6),i.bIt("click",function(){const d=i.eBV(m).$index,b=i.XpG();return i.Njj(b.selectStepByIndex(d))}),i.EFF(1),i.k0s()}if(2&p){const m=S.$index,g=i.XpG();i.AVh("example-active",g.selectedIndex===m),i.R7$(),i.SpI("Step ",m+1,"")}}let M=(()=>{class p{static#t=this.\u0275fac=function(g){return new(g||p)};static#e=this.\u0275cmp=i.VBU({type:p,selectors:[["cdk-custom-stepper-without-form-example"]],standalone:!0,features:[i.aNF],decls:7,vars:0,template:function(g,d){1&g&&(i.j41(0,"example-custom-stepper")(1,"cdk-step")(2,"p"),i.EFF(3,'This is any content of "Step 1"'),i.k0s()(),i.j41(4,"cdk-step")(5,"p"),i.EFF(6,'This is any content of "Step 2"'),i.k0s()()())},dependencies:()=>[V,v.uY,v.VI]})}return p})(),V=(()=>{class p extends v.Up{selectStepByIndex(m){this.selectedIndex=m}static#t=this.\u0275fac=(()=>{let m;return function(d){return(m||(m=i.xGo(p)))(d||p)}})();static#e=this.\u0275cmp=i.VBU({type:p,selectors:[["example-custom-stepper"]],standalone:!0,features:[i.Jv_([{provide:v.Up,useExisting:p}]),i.Vt3,i.aNF],decls:12,vars:3,consts:[[1,"example-container"],[3,"ngTemplateOutlet"],[1,"example-step-navigation-bar"],["cdkStepperPrevious","",1,"example-nav-button"],[1,"example-step",3,"example-active"],["cdkStepperNext","",1,"example-nav-button"],[1,"example-step",3,"click"]],template:function(g,d){1&g&&(i.j41(0,"section",0)(1,"header")(2,"h2"),i.EFF(3),i.k0s()(),i.nrm(4,"div",1),i.j41(5,"footer",2)(6,"button",3),i.EFF(7,"\u2190"),i.k0s(),i.Z7z(8,R,2,3,"button",4,i.fX1),i.j41(10,"button",5),i.EFF(11,"\u2192"),i.k0s()()()),2&g&&(i.R7$(3),i.Lme("Step ",d.selectedIndex+1,"/",d.steps.length,""),i.R7$(),i.Y8G("ngTemplateOutlet",d.selected?d.selected.content:null),i.R7$(4),i.Dyx(d.steps))},dependencies:[O.T3,v.uY,v.v5,v.FK],styles:[".example-container[_ngcontent-%COMP%] {\n border: 1px solid;\n padding: 10px;\n margin: 10px;\n}\n\n.example-step-navigation-bar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-start;\n margin-top: 10px;\n}\n\n.example-step[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n margin: 0 10px;\n padding: 10px;\n color: inherit;\n}\n\n.example-step.example-active[_ngcontent-%COMP%] {\n border-bottom: 1px solid;\n font-weight: 600;\n}\n\n.example-nav-button[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n color: inherit;\n}"]})}return p})(),H=(()=>{class p{constructor(m){this._formBuilder=m,this.isLinear=!0,this.firstFormGroup=this._formBuilder.group({firstControl:["",a.k0.required]}),this.secondFormGroup=this._formBuilder.group({secondControl:["",a.k0.required]})}toggleLinearity(){this.isLinear=!this.isLinear}static#t=this.\u0275fac=function(g){return new(g||p)(i.rXU(a.ok))};static#e=this.\u0275cmp=i.VBU({type:p,selectors:[["cdk-linear-stepper-with-form-example"]],standalone:!0,features:[i.aNF],decls:13,vars:6,consts:[[3,"linear"],[3,"stepControl"],["for","stepOneInput"],[3,"formGroup"],["placeholder","Input","formControlName","firstControl","id","stepOneInput","required",""],["for","stepTwoInput"],["placeholder","Input","formControlName","secondControl","id","stepTwoInput","required",""],[1,"example-toggle-linear-button",3,"click"]],template:function(g,d){1&g&&(i.j41(0,"example-custom-linear-stepper",0)(1,"cdk-step",1)(2,"label",2),i.EFF(3,"Step 1 input"),i.k0s(),i.j41(4,"form",3),i.nrm(5,"input",4),i.k0s()(),i.j41(6,"cdk-step",1)(7,"label",5),i.EFF(8,"Step 2 input"),i.k0s(),i.j41(9,"form",3),i.nrm(10,"input",6),i.k0s()()(),i.j41(11,"button",7),i.bIt("click",function(){return d.toggleLinearity()}),i.EFF(12),i.k0s()),2&g&&(i.Y8G("linear",d.isLinear),i.R7$(),i.Y8G("stepControl",d.firstFormGroup),i.R7$(3),i.Y8G("formGroup",d.firstFormGroup),i.R7$(2),i.Y8G("stepControl",d.secondFormGroup),i.R7$(3),i.Y8G("formGroup",d.secondFormGroup),i.R7$(3),i.SpI(" ",d.isLinear?"Disable linear mode":"Enable linear mode","\n"))},dependencies:()=>[w,v.uY,v.VI,a.YN,a.qT,a.me,a.BC,a.cb,a.YS,a.X1,a.j4,a.JD],styles:[".example-toggle-linear-button[_ngcontent-%COMP%] {\n margin-left: 10px;\n}"]})}return p})(),w=(()=>{class p extends v.Up{selectStepByIndex(m){this.selectedIndex=m}static#t=this.\u0275fac=(()=>{let m;return function(d){return(m||(m=i.xGo(p)))(d||p)}})();static#e=this.\u0275cmp=i.VBU({type:p,selectors:[["example-custom-linear-stepper"]],standalone:!0,features:[i.Jv_([{provide:v.Up,useExisting:p}]),i.Vt3,i.aNF],decls:12,vars:3,consts:[[1,"example-container"],[3,"ngTemplateOutlet"],[1,"example-step-navigation-bar"],["cdkStepperPrevious","",1,"example-nav-button"],[1,"example-step",3,"example-active"],["cdkStepperNext","",1,"example-nav-button"],[1,"example-step",3,"click"]],template:function(g,d){1&g&&(i.j41(0,"section",0)(1,"header")(2,"h2"),i.EFF(3),i.k0s()(),i.nrm(4,"div",1),i.j41(5,"footer",2)(6,"button",3),i.EFF(7,"\u2190"),i.k0s(),i.Z7z(8,L,2,3,"button",4,i.fX1),i.j41(10,"button",5),i.EFF(11,"\u2192"),i.k0s()()()),2&g&&(i.R7$(3),i.Lme("Step ",d.selectedIndex+1,"/",d.steps.length,""),i.R7$(),i.Y8G("ngTemplateOutlet",d.selected?d.selected.content:null),i.R7$(4),i.Dyx(d.steps))},dependencies:[O.T3,v.uY,v.v5,v.FK],styles:[".example-container[_ngcontent-%COMP%] {\n border: 1px solid;\n padding: 10px;\n margin: 10px;\n}\n\n.example-step-navigation-bar[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-start;\n margin-top: 10px;\n}\n\n.example-step[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n margin: 0 10px;\n padding: 10px;\n color: inherit;\n}\n\n.example-step.example-active[_ngcontent-%COMP%] {\n border-bottom: 1px solid;\n font-weight: 600;\n}\n\n.example-nav-button[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n color: inherit;\n}"]})}return p})()},9417:(Tt,N,_)=>{_.d(N,{BC:()=>Zt,JD:()=>Nt,MJ:()=>G,MR:()=>Ot,Q0:()=>xt,X1:()=>Mn,YN:()=>Dn,YS:()=>ut,ZU:()=>D,Zm:()=>w,cV:()=>ot,cb:()=>te,cz:()=>C,gE:()=>T,j4:()=>at,k0:()=>ht,kq:()=>V,l_:()=>St,me:()=>g,ok:()=>Vn,qT:()=>fe,vO:()=>F,vS:()=>Ft,wz:()=>lt,xH:()=>ye,xq:()=>Ut,y7:()=>Ce});var i=_(4438),v=_(177),O=_(4787),a=_(696),R=_(5286),L=_(5006);let P=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(i.sFG),i.rXU(i.aKT))};static#e=this.\u0275dir=i.FsC({type:e})}return e})(),M=(()=>{class e extends P{static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,features:[i.Vt3]})}return e})();const V=new i.nKC(""),H={provide:V,useExisting:(0,i.Rfq)(()=>w),multi:!0};let w=(()=>{class e extends M{writeValue(t){this.setProperty("checked",t)}static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){1&r&&i.bIt("change",function(h){return s.onChange(h.target.checked)})("blur",function(){return s.onTouched()})},features:[i.Jv_([H]),i.Vt3]})}return e})();const p={provide:V,useExisting:(0,i.Rfq)(()=>g),multi:!0},m=new i.nKC("");let g=(()=>{class e extends P{constructor(t,r,s){super(t,r),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function S(){const e=(0,v.QT)()?(0,v.QT)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(m,8))};static#e=this.\u0275dir=i.FsC({type:e,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(r,s){1&r&&i.bIt("input",function(h){return s._handleInput(h.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(h){return s._compositionEnd(h.target.value)})},features:[i.Jv_([p]),i.Vt3]})}return e})();function d(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function b(e){return null!=e&&"number"==typeof e.length}const C=new i.nKC(""),E=new i.nKC(""),ct=/^(?=.{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 ht{static min(n){return function q(e){return n=>{if(d(n.value)||d(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}(n)}static max(n){return function c(e){return n=>{if(d(n.value)||d(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return pt(n)}static requiredTrue(n){return o(n)}static email(n){return function l(e){return d(e.value)||ct.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function f(e){return n=>d(n.value)||!b(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static maxLength(n){return function y(e){return n=>b(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function A(e){if(!e)return J;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(d(r.value))return null;const s=r.value;return n.test(s)?null:{pattern:{requiredPattern:t,actualValue:s}}}}(n)}static nullValidator(n){return null}static compose(n){return jt(n)}static composeAsync(n){return Wt(n)}}function pt(e){return d(e.value)?{required:!0}:null}function o(e){return!0===e.value?null:{required:!0}}function J(e){return null}function Gt(e){return null!=e}function Rt(e){return(0,i.jNT)(e)?(0,O.H)(e):e}function Lt(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function Ht(e,n){return n.map(t=>t(e))}function $t(e){return e.map(n=>function Ie(e){return!e.validate}(n)?n:t=>n.validate(t))}function jt(e){if(!e)return null;const n=e.filter(Gt);return 0==n.length?null:function(t){return Lt(Ht(t,n))}}function ft(e){return null!=e?jt($t(e)):null}function Wt(e){if(!e)return null;const n=e.filter(Gt);return 0==n.length?null:function(t){const r=Ht(t,n).map(Rt);return(0,a.p)(r).pipe((0,L.T)(Lt))}}function mt(e){return null!=e?Wt($t(e)):null}function Xt(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Kt(e){return e._rawValidators}function qt(e){return e._rawAsyncValidators}function gt(e){return e?Array.isArray(e)?e:[e]:[]}function z(e,n){return Array.isArray(e)?e.includes(n):e===n}function Jt(e,n){const t=gt(n);return gt(e).forEach(s=>{z(t,s)||t.push(s)}),t}function zt(e,n){return gt(n).filter(t=>!z(e,t))}class Qt{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(n){this._rawValidators=n||[],this._composedValidatorFn=ft(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class D extends Qt{get formDirective(){return null}get path(){return null}}class F extends Qt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Yt{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Zt=(()=>{class e extends Yt{constructor(t){super(t)}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(F,2))};static#e=this.\u0275dir=i.FsC({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){2&r&&i.AVh("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[i.Vt3]})}return e})(),te=(()=>{class e extends Yt{constructor(t){super(t)}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(D,10))};static#e=this.\u0275dir=i.FsC({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,s){2&r&&i.AVh("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[i.Vt3]})}return e})();const $="VALID",Y="INVALID",U="PENDING",j="DISABLED";class B{}class ne extends B{constructor(n,t){super(),this.value=n,this.source=t}}class vt extends B{constructor(n,t){super(),this.pristine=n,this.source=t}}class Ct extends B{constructor(n,t){super(),this.touched=n,this.source=t}}class Z extends B{constructor(n,t){super(),this.status=n,this.source=t}}class Be extends B{constructor(n){super(),this.source=n}}class Te extends B{constructor(n){super(),this.source=n}}function Vt(e){return(tt(e)?e.validators:e)||null}function Dt(e,n){return(tt(n)?n.asyncValidators:e)||null}function tt(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function re(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new i.wOt(1e3,"");if(!r[t])throw new i.wOt(1001,"")}function ie(e,n,t){e._forEachChild((r,s)=>{if(void 0===t[s])throw new i.wOt(1002,"")})}class et{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new R.B7,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===$}get invalid(){return this.status===Y}get pending(){return this.status==U}get disabled(){return this.status===j}get enabled(){return this.status!==j}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Jt(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Jt(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(zt(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(zt(n,this._rawAsyncValidators))}hasValidator(n){return z(this._rawValidators,n)}hasAsyncValidator(n){return z(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){const t=!1===this.touched;this.touched=!0;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new Ct(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){const t=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const r=n.sourceControl??this;this._forEachChild(s=>{s.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),t&&!1!==n.emitEvent&&this._events.next(new Ct(!1,r))}markAsDirty(n={}){const t=!0===this.pristine;this.pristine=!1;const r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty({...n,sourceControl:r}),t&&!1!==n.emitEvent&&this._events.next(new vt(!1,r))}markAsPristine(n={}){const t=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const r=n.sourceControl??this;this._forEachChild(s=>{s.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),t&&!1!==n.emitEvent&&this._events.next(new vt(!0,r))}markAsPending(n={}){this.status=U;const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new Z(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending({...n,sourceControl:t})}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=j,this.errors=null,this._forEachChild(s=>{s.disable({...n,onlySelf:!0})}),this._updateValue();const r=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new ne(this.value,r)),this._events.next(new Z(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(s=>s(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=$,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t},this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$||this.status===U)&&this._runAsyncValidator(r,n.emitEvent)}const t=n.sourceControl??this;!1!==n.emitEvent&&(this._events.next(new ne(this.value,t)),this._events.next(new Z(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity({...n,sourceControl:t})}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?j:$}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=U,this._hasOwnPendingAsyncValidator={emitEvent:!1!==t};const r=Rt(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(s=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(s,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent,this,t.shouldHaveEmitted)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,s)=>r&&r._find(s),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,t,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new Z(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?j:this.errors?Y:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(U)?U:this._anyControlsHaveStatus(Y)?Y:$}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,t){const r=!this._anyControlsDirty(),s=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),s&&this._events.next(new vt(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Ct(this.touched,t)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){tt(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Ge(e){return Array.isArray(e)?ft(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function Re(e){return Array.isArray(e)?mt(e):e||null}(this._rawAsyncValidators)}}class T extends et{constructor(n,t,r){super(Vt(t),Dt(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){ie(this,0,n),Object.keys(n).forEach(r=>{re(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const s=this.controls[r];s&&s.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,s)=>{r.reset(n?n[s]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,s)=>((r.enabled||this.disabled)&&(t[s]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((s,u)=>{r=t(r,s,u)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class se extends T{}const I=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>W}),W="always";function nt(e,n){return[...n.path,e]}function X(e,n,t=W){Mt(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function He(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&oe(e,n)})}(e,n),function je(e,n){const t=(r,s)=>{n.valueAccessor.writeValue(r),s&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function $e(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&oe(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function Le(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function rt(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),st(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function it(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Mt(e,n){const t=Kt(e);null!==n.validator?e.setValidators(Xt(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=qt(e);null!==n.asyncValidator?e.setAsyncValidators(Xt(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const s=()=>e.updateValueAndValidity();it(n._rawValidators,s),it(n._rawAsyncValidators,s)}function st(e,n){let t=!1;if(null!==e){if(null!==n.validator){const s=Kt(e);if(Array.isArray(s)&&s.length>0){const u=s.filter(h=>h!==n.validator);u.length!==s.length&&(t=!0,e.setValidators(u))}}if(null!==n.asyncValidator){const s=qt(e);if(Array.isArray(s)&&s.length>0){const u=s.filter(h=>h!==n.asyncValidator);u.length!==s.length&&(t=!0,e.setAsyncValidators(u))}}}const r=()=>{};return it(n._rawValidators,r),it(n._rawAsyncValidators,r),t}function oe(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ae(e,n){Mt(e,n)}function bt(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function le(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function At(e,n){if(!n)return null;let t,r,s;return Array.isArray(n),n.forEach(u=>{u.constructor===g?t=u:function Ke(e){return Object.getPrototypeOf(e.constructor)===M}(u)?r=u:s=u}),s||r||t||null}const Je={provide:D,useExisting:(0,i.Rfq)(()=>ot)},K=Promise.resolve();let ot=(()=>{class e extends D{constructor(t,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.bkB,this.form=new T({},ft(t),mt(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){K.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),X(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){K.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){K.then(()=>{const r=this._findContainer(t.path),s=new T({});ae(s,t),r.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){K.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){K.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,le(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(C,10),i.rXU(E,10),i.rXU(I,8))};static#e=this.\u0275dir=i.FsC({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,s){1&r&&i.bIt("submit",function(h){return s.onSubmit(h)})("reset",function(){return s.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([Je]),i.Vt3]})}return e})();function ue(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function de(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const G=class extends et{constructor(n=null,t,r){super(Vt(t),Dt(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),tt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=de(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){ue(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){ue(this._onDisabledChange,n)}_forEachChild(n){}_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(n){de(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},Ye={provide:F,useExisting:(0,i.Rfq)(()=>Ft)},pe=Promise.resolve();let Ft=(()=>{class e extends F{constructor(t,r,s,u,h,x){super(),this._changeDetectorRef=h,this.callSetDisabledState=x,this.control=new G,this._registered=!1,this.name="",this.update=new i.bkB,this._parent=t,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=At(0,u)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),bt(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){X(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(t){pe.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,s=0!==r&&(0,i.L39)(r);pe.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?nt(t,this._parent):[t]}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(D,9),i.rXU(C,10),i.rXU(E,10),i.rXU(V,10),i.rXU(i.gRc,8),i.rXU(I,8))};static#e=this.\u0275dir=i.FsC({type:e,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:[i.Jv_([Ye]),i.Vt3,i.OA$]})}return e})(),fe=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=i.FsC({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})();const Ze={provide:V,useExisting:(0,i.Rfq)(()=>xt),multi:!0};let xt=(()=>{class e extends M{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,s){1&r&&i.bIt("input",function(h){return s.onChange(h.target.value)})("blur",function(){return s.onTouched()})},features:[i.Jv_([Ze]),i.Vt3]})}return e})();const nn={provide:V,useExisting:(0,i.Rfq)(()=>Ot),multi:!0};let Ot=(()=>{class e extends M{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(r,s){1&r&&i.bIt("change",function(h){return s.onChange(h.target.value)})("input",function(h){return s.onChange(h.target.value)})("blur",function(){return s.onTouched()})},features:[i.Jv_([nn]),i.Vt3]})}return e})();const wt=new i.nKC(""),rn={provide:F,useExisting:(0,i.Rfq)(()=>St)};let St=(()=>{class e extends F{set isDisabled(t){}static#t=this._ngModelWarningSentOnce=!1;constructor(t,r,s,u,h){super(),this._ngModelWarningConfig=u,this.callSetDisabledState=h,this.update=new i.bkB,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=At(0,s)}ngOnChanges(t){if(this._isControlChanged(t)){const r=t.form.previousValue;r&&rt(r,this,!1),X(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}bt(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static#e=this.\u0275fac=function(r){return new(r||e)(i.rXU(C,10),i.rXU(E,10),i.rXU(V,10),i.rXU(wt,8),i.rXU(I,8))};static#n=this.\u0275dir=i.FsC({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Jv_([rn]),i.Vt3,i.OA$]})}return e})();const sn={provide:D,useExisting:(0,i.Rfq)(()=>at)};let at=(()=>{class e extends D{constructor(t,r,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.bkB,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(st(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return X(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){rt(t.control||null,t,!1),function qe(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,le(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Be(this.control)),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1,this.form._events.next(new Te(this.form))}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,s=this.form.get(t.path);r!==s&&(rt(r||null,t),(e=>e instanceof G)(s)&&(X(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);ae(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function We(e,n){return st(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Mt(this.form,this),this._oldForm&&st(this._oldForm,this)}_checkFormPresent(){}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(C,10),i.rXU(E,10),i.rXU(I,8))};static#e=this.\u0275dir=i.FsC({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,s){1&r&&i.bIt("submit",function(h){return s.onSubmit(h)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([sn]),i.Vt3,i.OA$]})}return e})();const ln={provide:F,useExisting:(0,i.Rfq)(()=>Nt)};let Nt=(()=>{class e extends F{set isDisabled(t){}static#t=this._ngModelWarningSentOnce=!1;constructor(t,r,s,u,h){super(),this._ngModelWarningConfig=h,this._added=!1,this.name=null,this.update=new i.bkB,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=At(0,u)}ngOnChanges(t){this._added||this._setUpControl(),bt(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return nt(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#e=this.\u0275fac=function(r){return new(r||e)(i.rXU(D,13),i.rXU(C,10),i.rXU(E,10),i.rXU(V,10),i.rXU(wt,8))};static#n=this.\u0275dir=i.FsC({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Jv_([ln]),i.Vt3,i.OA$]})}return e})();const un={provide:V,useExisting:(0,i.Rfq)(()=>lt),multi:!0};function _e(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let lt=(()=>{class e extends M{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const s=_e(this._getOptionId(t),t);this.setProperty("value",s)}registerOnChange(t){this.onChange=r=>{this.value=this._getOptionValue(r),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),t))return r;return null}_getOptionValue(t){const r=function dn(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r):t}static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,s){1&r&&i.bIt("change",function(h){return s.onChange(h.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Jv_([un]),i.Vt3]})}return e})(),ye=(()=>{class e{constructor(t,r,s){this._element=t,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(_e(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(lt,9))};static#e=this.\u0275dir=i.FsC({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})();const cn={provide:V,useExisting:(0,i.Rfq)(()=>Pt),multi:!0};function ve(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Pt=(()=>{class e extends M{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let r;if(this.value=t,Array.isArray(t)){const s=t.map(u=>this._getOptionId(u));r=(u,h)=>{u._setSelected(s.indexOf(h.toString())>-1)}}else r=(s,u)=>{s._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(t){this.onChange=r=>{const s=[],u=r.selectedOptions;if(void 0!==u){const h=u;for(let x=0;x<h.length;x++){const Bt=this._getOptionValue(h[x].value);s.push(Bt)}}else{const h=r.options;for(let x=0;x<h.length;x++){const dt=h[x];if(dt.selected){const Bt=this._getOptionValue(dt.value);s.push(Bt)}}}this.value=s,t(s)}}_registerOption(t){const r=(this._idCounter++).toString();return this._optionMap.set(r,t),r}_getOptionId(t){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,t))return r;return null}_getOptionValue(t){const r=function hn(e){return e.split(":")[0]}(t);return this._optionMap.has(r)?this._optionMap.get(r)._value:t}static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,s){1&r&&i.bIt("change",function(h){return s.onChange(h.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Jv_([cn]),i.Vt3]})}return e})(),Ce=(()=>{class e{constructor(t,r,s){this._element=t,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(ve(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(ve(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#t=this.\u0275fac=function(r){return new(r||e)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(Pt,9))};static#e=this.\u0275dir=i.FsC({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return e})(),k=(()=>{class e{constructor(){this._validator=J}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):J,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275dir=i.FsC({type:e,features:[i.OA$]})}return e})();const mn={provide:C,useExisting:(0,i.Rfq)(()=>ut),multi:!0},gn={provide:C,useExisting:(0,i.Rfq)(()=>Ut),multi:!0};let ut=(()=>{class e extends k{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.L39,this.createValidator=t=>pt}enabled(t){return t}static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,s){2&r&&i.BMQ("required",s._enabled?"":null)},inputs:{required:"required"},features:[i.Jv_([mn]),i.Vt3]})}return e})(),Ut=(()=>{class e extends ut{constructor(){super(...arguments),this.createValidator=t=>o}static#t=this.\u0275fac=(()=>{let t;return function(s){return(t||(t=i.xGo(e)))(s||e)}})();static#e=this.\u0275dir=i.FsC({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(r,s){2&r&&i.BMQ("required",s._enabled?"":null)},features:[i.Jv_([gn]),i.Vt3]})}return e})(),Oe=(()=>{class e{static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=i.$C({type:e});static#n=this.\u0275inj=i.G2t({})}return e})();class we extends et{constructor(n,t,r){super(Vt(t),Dt(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let s=this._adjustIndex(n);s<0&&(s=0),this.controls[s]&&this.controls[s]._registerOnCollectionChange(()=>{}),this.controls.splice(s,1),t&&(this.controls.splice(s,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){ie(this,0,n),n.forEach((r,s)=>{re(this,!1,s),this.at(s).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,s)=>{this.at(s)&&this.at(s).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,s)=>{r.reset(n[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function Se(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let Vn=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const s=this._reduceControls(t);let u={};return Se(r)?u=r:null!==r&&(u.validators=r.validator,u.asyncValidators=r.asyncValidator),new T(s,u)}record(t,r=null){const s=this._reduceControls(t);return new se(s,r)}control(t,r,s){let u={};return this.useNonNullable?(Se(r)?u=r:(u.validators=r,u.asyncValidators=s),new G(t,{...u,nonNullable:!0})):new G(t,r,s)}array(t,r,s){const u=t.map(h=>this._createControl(h));return new we(u,r,s)}_reduceControls(t){const r={};return Object.keys(t).forEach(s=>{r[s]=this._createControl(t[s])}),r}_createControl(t){return t instanceof G||t instanceof et?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Dn=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:I,useValue:t.callSetDisabledState??W}]}}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=i.$C({type:e});static#n=this.\u0275inj=i.G2t({imports:[Oe]})}return e})(),Mn=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:wt,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:I,useValue:t.callSetDisabledState??W}]}}static#t=this.\u0275fac=function(r){return new(r||e)};static#e=this.\u0275mod=i.$C({type:e});static#n=this.\u0275inj=i.G2t({imports:[Oe]})}return e})()}}]);