vendor: 4,307 bytes, line 1
1import{Aa as h,Da as Ke,Gb as a,Ha as ve,Hb as u,I as g,Ia as v,Ib as O,Jb as Zt,K as j,Kb as Xe,L as We,La as te,M as pe,Ma as D,Nb as Ye,O as C,Pb as Ze,Q as p,Qb as Qe,Ra as Yt,Rb as Qt,T as Q,Tb as Je,Y as A,Z as Wt,_ as ye,a as c,aa as B,b as m,c as $e,d as Lt,ea as _,fa as Kt,fb as ne,g as Ut,ha as zt,ia as G,j as Ht,ja as J,ka as L,ma as Xt,na as ee,p as qt,pb as ze,v as $t,xa as R,xb as N}from"./chunk-YEMCP27T.js";var un=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,r){this._renderer=t,this._elementRef=r}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 \u0275fac=function(r){return new(r||n)(h(R),h(ee))};static \u0275dir=v({type:n})}return n})(),ar=(()=>{class n extends un{static \u0275fac=(()=>{let t;return function(i){return(t||(t=L(n)))(i||n)}})();static \u0275dir=v({type:n,features:[D]})}return n})(),le=new C("");var ur={provide:le,useExisting:j(()=>ln),multi:!0};function lr(){let n=Je()?Je().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var dr=new C(""),ln=(()=>{class n extends un{_compositionMode;_composing=!1;constructor(t,r,i){super(t,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!lr())}writeValue(t){let r=t??"";this.setProperty("value",r)}_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 \u0275fac=function(r){return new(r||n)(h(R),h(ee),h(dr,8))};static \u0275dir=v({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&ne("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},standalone:!1,features:[N([ur]),D]})}return n})();function st(n){return n==null||ot(n)===0}function ot(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var $=new C(""),at=new C(""),cr=/^(?=.{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])?)*$/,q=class{static min(e){return hr(e)}static max(e){return fr(e)}static required(e){return dn(e)}static requiredTrue(e){return gr(e)}static email(e){return mr(e)}static minLength(e){return pr(e)}static maxLength(e){return yr(e)}static pattern(e){return vr(e)}static nullValidator(e){return Ce()}static compose(e){return pn(e)}static composeAsync(e){return vn(e)}};function hr(n){return e=>{if(e.value==null||n==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}function fr(n){return e=>{if(e.value==null||n==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}function dn(n){return st(n.value)?{required:!0}:null}function gr(n){return n.value===!0?null:{required:!0}}function mr(n){return st(n.value)||cr.test(n.value)?null:{email:!0}}function pr(n){return e=>{let t=e.value?.length??ot(e.value);return t===null||t===0?null:t<n?{minlength:{requiredLength:n,actualLength:t}}:null}}function yr(n){return e=>{let t=e.value?.length??ot(e.value);return t!==null&&t>n?{maxlength:{requiredLength:n,actualLength:t}}:null}}function vr(n){if(!n)return Ce;let e,t;return typeof n=="string"?(t="",n.charAt(0)!=="^"&&(t+="^"),t+=n,n.charAt(n.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),r=>{if(st(r.value))return null;let i=r.value;return e.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function Ce(n){return null}function cn(n){return n!=null}function hn(n){return Ke(n)?Ht(n):n}function fn(n){let e={};
vendor: 6,062 bytes, line 1
1return n.forEach(t=>{e=t!=null?c(c({},e),t):e}),Object.keys(e).length===0?null:e}function gn(n,e){return e.map(t=>t(n))}function _r(n){return!n.validate}function mn(n){return n.map(e=>_r(e)?e:t=>e.validate(t))}function pn(n){if(!n)return null;let e=n.filter(cn);return e.length==0?null:function(t){return fn(gn(t,e))}}function yn(n){return n!=null?pn(mn(n)):null}function vn(n){if(!n)return null;let e=n.filter(cn);return e.length==0?null:function(t){let r=gn(t,e).map(hn);return $t(r).pipe(qt(fn))}}function _n(n){return n!=null?vn(mn(n)):null}function Jt(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Cn(n){return n._rawValidators}function bn(n){return n._rawAsyncValidators}function et(n){return n?Array.isArray(n)?n:[n]:[]}function be(n,e){return Array.isArray(n)?n.includes(e):n===e}function en(n,e){let t=et(e);return et(n).forEach(i=>{be(t,i)||t.push(i)}),t}function tn(n,e){return et(e).filter(t=>!be(n,t))}var De=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=yn(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=_n(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control?.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},T=class extends De{name;get formDirective(){return null}get path(){return null}};var re="VALID",_e="INVALID",U="PENDING",ie="DISABLED",w=class{},Me=class extends w{value;source;constructor(e,t){super(),this.value=e,this.source=t}},se=class extends w{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},oe=class extends w{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},H=class extends w{status;source;constructor(e,t){super(),this.status=e,this.source=t}},tt=class extends w{source;constructor(e){super(),this.source=e}},P=class extends w{source;constructor(e){super(),this.source=e}};function ut(n){return(we(n)?n.validators:n)||null}function Cr(n){return Array.isArray(n)?yn(n):n||null}function lt(n,e){return(we(e)?e.asyncValidators:n)||null}function br(n){return Array.isArray(n)?_n(n):n||null}function we(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Dn(n,e,t){let r=n.controls;if(!(e?Object.keys(r):r).length)throw new g(1e3,"");if(!Vn(r,t))throw new g(1001,"")}function Mn(n,e,t){n._forEachChild((r,i)=>{if(t[i]===void 0)throw new g(-1002,"")})}var S=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_hasRequired=_(!1);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e,this._updateHasRequiredValidator()}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return u(this.statusReactive)}set status(e){u(()=>this.statusReactive.set(e))}_status=a(()=>this.statusReactive());statusReactive=_(void 0);get valid(){return this.status===re}get invalid(){return this.status===_e}get pending(){return this.status===U}get disabled(){return this.status===ie}get enabled(){return this.status!==ie}errors;get pristine(){return u(this.pristineReactive)}set pristine(e){u(()=>this.pristineReactive.set(e))}_pristine=a(()=>this.pristineReactive());pristineReactive=_(!0);get dirty(){return!this.pristine}get touched(){return u(this.touchedReactive)}set touched(e){u(()=>this.touchedReactive.set(e))}_touched=a(()=>this.touchedReactive());touchedReactive=_(!1);get untouched(){return!this.touched}_events=new Ut;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(en(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(en(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(tn(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(tn(e,this._rawAsyncValidators))}hasValidator(e){return be(this._rawValidators,e)}hasAsyncValidator(e){return be(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;e.onlySelf||this._parent?.markAsTouched(m(c({},e),{sourceControl:r})),t&&e.emitEvent!==!1&&this._events.next(new oe(!0,r))}
1markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),e.onlySelf||this._parent?._updateTouched(e,r),t&&e.emitEvent!==!1&&this._events.next(new oe(!1,r))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;e.onlySelf||this._parent?.markAsDirty(m(c({},e),{sourceControl:r})),t&&e.emitEvent!==!1&&this._events.next(new se(!1,r))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),e.onlySelf||this._parent?._updatePristine(e,r),t&&e.emitEvent!==!1&&this._events.next(new se(!0,r))}markAsPending(e={}){this.status=U;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new H(this.status,t)),this.statusChanges.emit(this.status)),e.onlySelf||this._parent?.markAsPending(m(c({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=ie,this.errors=null,this._forEachChild(i=>{i.disable(m(c({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Me(this.value,r)),this._events.next(new H(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=re,this._forEachChild(r=>{r.enable(m(c({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(m(c({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,t){e.onlySelf||(this._parent?.updateValueAndValidity(e),e.skipPristineCheck||this._parent?._updatePristine({},t),this._parent?._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===re||this.status===U)&&this._runAsyncValidator(r,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Me(this.value,t)),this._events.next(new H(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),e.onlySelf||this._parent?.updateValueAndValidity(m(c({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ie:re}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=U,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let r=hn(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((r,i)=>r&&r._find(i),this)}getError(e,t){let r=t?this.get(t):this;return r?.errors?r.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new H(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,r)}_initObservables(){this.valueChanges=new B,this.statusChanges=new B}_calculateStatus(){return this._allControlsDisabled()?ie:this.errors?_e:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(U)?U:this._anyControlsHaveStatus(_e)?_e:re}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}
1_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,e.onlySelf||this._parent?._updatePristine(e,t),i&&this._events.next(new se(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new oe(this.touched,t)),e.onlySelf||this._parent?._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){we(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Cr(this._rawValidators),this._updateHasRequiredValidator()}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=br(this._rawAsyncValidators)}_updateHasRequiredValidator(){u(()=>this._hasRequired.set(this.hasValidator(q.required)))}};function Vn(n,e){return Object.hasOwn(n,e)}function dt(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function En(n){if(n.tagName!=="INPUT")return!1;let e=n.type;return e==="number"||e==="range"||e==="date"||e==="month"}function An(n){return n.tagName==="INPUT"||n.tagName==="TEXTAREA"}function de(n,e,t,r){switch(t){case"name":n.setAttribute(e,t,r);break;case"disabled":case"readonly":case"required":r?n.setAttribute(e,t,""):n.removeAttribute(e,t);break;case"max":case"min":case"minLength":case"maxLength":r!==void 0?n.setAttribute(e,t,r.toString()):n.removeAttribute(e,t);break}}var nt=class{kind;context;control;message;constructor({kind:e,context:t,control:r}){this.kind=e,this.context=t,this.control=r}};var Dr=(()=>{class n{_validator=Ce;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Ce,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static \u0275fac=function(r){return new(r||n)};static \u0275dir=v({type:n,features:[J]})}return n})();var Mr={provide:$,useExisting:j(()=>Nn),multi:!0};var Nn=(()=>{class n extends Dr{required;inputName="required";normalizeInput=Qe;createValidator=t=>dn;enabled(t){return t}static \u0275fac=(()=>{let t;return function(i){return(t||(t=L(n)))(i||n)}})();static \u0275dir=v({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,i){r&2&&Yt("required",i._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[N([Mr]),D]})}return n})();var ct=new C(""),Se=new C("",{factory:()=>Fe}),Fe="always";function wn(n,e){return[...e.path,n]}function rt(n,e,t=Fe){ht(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),Er(n,e),Nr(n,e),Ar(n,e),Vr(n,e)}function nn(n,e,t=!0){let r=()=>{};e?.valueAccessor?.registerOnChange(r),e?.valueAccessor?.registerOnTouched(r),Ee(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Ve(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Vr(n,e){if(e.valueAccessor.setDisabledState){let t=r=>{e.valueAccessor.setDisabledState(r)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function ht(n,e){let t=Cn(n);e.validator!==null?n.setValidators(Jt(t,e.validator)):typeof t=="function"&&n.setValidators([t]);let r=bn(n);e.asyncValidator!==null?n.setAsyncValidators(Jt(r,e.asyncValidator)):typeof r=="function"&&n.setAsyncValidators([r]);let i=()=>n.updateValueAndValidity();Ve(e._rawValidators,i),Ve(e._rawAsyncValidators,i)}function Ee(n,e){let t=!1;if(n!==null){if(e.validator!==null){let i=Cn(n);if(Array.isArray(i)&&i.length>0){let s=i.filter(o=>o!==e.validator);s.length!==i.length&&(t=!0,n.setValidators(s))}}if(e.asyncValidator!==null){let i=bn(n);if(Array.isArray(i)&&i.length>0){let s=i.filter(o=>o!==e.asyncValidator);s.length!==i.length&&(t=!0,n.setAsyncValidators(s))}}}let r=()=>{};return Ve(e._rawValidators,r),Ve(e._rawAsyncValidators,r),t}function Er(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Sn(n,e)})}function Ar(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Sn(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function Sn(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Nr(n,e){let t=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)}
1)}function wr(n,e){n==null,ht(n,e)}function Sr(n,e){return Ee(n,e)}function Fn(n,e){if(!n.hasOwnProperty("model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Fr(n){return Object.getPrototypeOf(n.constructor)===ar}function Ir(n,e){n._syncPendingControls(),e.forEach(t=>{let r=t.control;r.updateOn==="submit"&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function ft(n,e){if(!e)return null;Array.isArray(e);let t,r,i;return e.forEach(s=>{s.constructor===ln?t=s:Fr(s)?r=s:i=s}),i||r||t||null}function Rr(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}var In={provide:ct,useFactory:()=>{let n=p(M,{self:!0});return{setParseErrors:e=>{n.setParseErrorSource(e)},set onReset(e){n.onReset=e}}}},M=class extends De{_parent=null;name=null;valueAccessor=null;isCustomControlBased=!1;userOnReset;resetSubscription;set onReset(e){this.userOnReset=e,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(t=>{t instanceof P&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription?.add(this.resetSubscription))}isNativeFormElement=!1;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=ft(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(e,t,r){super(),this.injector=e,this.renderer=t,this.rawValueAccessors=r,this.injector?.get(ye)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe()})}setupCustomControl(){this.subscription?.unsubscribe();let e=this.injector?.get(Ze);if(!this.control||!e)return;let t=e.markForCheck.bind(e);this.subscription=new Lt,this.subscription.add(this.control.valueChanges.subscribe(t)),this.subscription.add(this.control.statusChanges.subscribe(t)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(r=>{r instanceof P&&this.control&&this.userOnReset?.(this.control.value)}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator)}ngControlCreate(e){!e.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!e.customControl||(this.isCustomControlBased=!0,e.listenToCustomControlModel(i=>{this.control?.setValue(i,{emitModelToViewChange:!1}),this.control?.markAsDirty(),this.viewToModelUpdate(i)}),e.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched()}),this.customControlBindings={},this.isNativeFormElement=dt(e.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(i=>i instanceof Nn))}ngControlUpdate(e,t){if(!this.isCustomControlBased)return;let r=this.control,i=this.customControlBindings;Object.is(i.value,r.value)||(i.value=r.value,e.setCustomControlModelInput(r.value)),this.bindControlProperty(e,i,"touched",r.touched),this.bindControlProperty(e,i,"dirty",r.dirty),this.bindControlProperty(e,i,"valid",r.valid),this.bindControlProperty(e,i,"invalid",r.invalid),this.bindControlProperty(e,i,"pending",r.pending),this.bindControlProperty(e,i,"disabled",r.disabled),this.shouldBindRequired&&this.bindControlProperty(e,i,"required",this.isRequired);let s=r.errors;if(i.errors!==s){i.errors=s;let o=this._convertErrors(s);e.setInputOnDirectives("errors",o)}}get isRequired(){return(this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??!1}get shouldBindRequired(){return!0}bindControlProperty(e,t,r,i){if(t[r]===i)return;t[r]=i;let s=e.setInputOnDirectives(r,i);this.isNativeFormElement&&!s&&(r==="disabled"||r==="required")&&this.renderer&&de(this.renderer,e.nativeElement,r,i)}_convertErrors(e){if(e===null)return[];let t=this.control;return Object.entries(e).map(([r,i])=>new nt({context:i,kind:r,control:t}))}setParseErrorSource(e){if(e===void 0)return;let t=null,r=a(()=>{let i=e();return i.length===0?null:i.reduce((s,o)=>(s[o.kind]=o,s),{})});this.parseErrorsValidator=(()=>t).bind(this),G(()=>{t=r(),this.control?.updateValueAndValidity({emitEvent:!1})},{injector:this.injector})}removeParseErrorsValidator(e){this.parseErrorsValidator&&(e?.removeValidators(this.parseErrorsValidator),e?.updateValueAndValidity({emitEvent:!1}))}},Ae=class{_cd;constructor(e){this._cd=e}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}
vendor: 4,172 bytes, line 1
1get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var $i=(()=>{class n extends Ae{constructor(t){super(t)}static \u0275fac=function(r){return new(r||n)(h(M,2))};static \u0275dir=v({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&ze("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[D]})}return n})(),Wi=(()=>{class n extends Ae{constructor(t){super(t)}static \u0275fac=function(r){return new(r||n)(h(T,10))};static \u0275dir=v({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&ze("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[D]})}return n})(),ue=class extends S{constructor(e,t,r){super(ut(t),lt(r,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){let r=this._find(e);return r||(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,r={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){let r=this._find(e);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,r={}){let i=this._find(e);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this._find(e)?.enabled===!0}setValue(e,t={}){u(()=>{Mn(this,!0,e),Object.keys(e).forEach(r=>{Dn(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)})}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(r=>{let i=this._find(r);i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,m(c({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new P(this))}getRawValue(){return this._reduceChildren({},(e,t,r)=>(e[r]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,r)=>r._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let r=this.controls[t];r&&e(r,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,r]of Object.entries(this.controls))if(this.contains(t)&&e(r))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,r,i)=>((r.enabled||this.disabled)&&(t[i]=r.value),t))}_reduceChildren(e,t){let r=e;return this._forEachChild((i,s)=>{r=t(r,i,s)}),r}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return Vn(this.controls,e)?this.controls[e]:null}};var it=class extends ue{};function rn(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function sn(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var ae=class extends S{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,r){super(ut(t),lt(r,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initOb
1servables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),we(t)&&(t.nonNullable||t.initialValueIsDefault)&&(sn(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){u(()=>{this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)})}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new P(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){rn(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){rn(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){sn(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Or=n=>n instanceof ae;var Tr={provide:M,useExisting:j(()=>Pr)},on=Promise.resolve(),Pr=(()=>{class n extends M{_changeDetectorRef;callSetDisabledState;control=new ae;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new B;constructor(t,r,i,s,o,l,d,f){super(d,f,s),this._changeDetectorRef=o,this.callSetDisabledState=l,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Fn(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}\u0275ngControlCreate(t){super.ngControlCreate(t)}\u0275ngControlUpdate(t){super.ngControlUpdate(t,!1)}get shouldBindRequired(){return!1}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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,rt(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:!1})}_setupWithForm(t){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,rt(this.control,this,t))}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){on.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,i=r!==0&&Qe(r);on.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?wn(t,this._parent):[t]}static \u0275fac=function(r){return new(r||n)(h(T,9),h($,10),h(at,10),h(le,10),h(Ze,8),h(Se,8),h(A,8),h(R,8))};static \u0275dir=v({type:n,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"],standalone:!1,features:[N([Tr,In]),D,J,te(null)]})}return n})();var zi=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275dir=v({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})();var Ne=class extends S{constructor(e,t,r){super(ut(t),lt(r,t)),this.controls=e,this._initOb
vendor: 3,595 bytes, line 1
1servables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(r=>{this.controls.push(r),this._registerControl(r)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,r={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,r={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){u(()=>{Mn(this,!1,e),e.forEach((r,i)=>{Dn(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)})}patchValue(e,t={}){e!=null&&(e.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((r,i)=>{r.reset(e[i],m(c({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new P(this))}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,r)=>r._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,r)=>{e(t,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var kr=(()=>{class n extends T{callSetDisabledState;get submitted(){return u(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=a(()=>this._submittedReactive());_submittedReactive=_(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(t,r,i){super(),this.callSetDisabledState=i,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this.onChanges(t)}ngOnDestroy(){this.onDestroy()}onChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Ee(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(t){let r=this.form.get(t.path);return t._setupWithForm(r,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}
1removeControl(t){nn(t.control||null,t,!1),Rr(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}getFormArray(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}updateModel(t,r){this.form.get(t.path).setValue(r)}onReset(){this.resetForm()}resetForm(t=void 0,r={}){this.form.reset(t,r),this._submittedReactive.set(!1)}onSubmit(t){return this.submitted=!0,Ir(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new tt(this.control)),t?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(t=>{let r=t.control,i=this.form.get(t.path);r!==i&&(nn(r||null,t),Or(i)&&t._setupWithForm(i,this.callSetDisabledState))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let r=this.form.get(t.path);wr(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){let r=this.form?.get(t.path);r&&Sr(r,t)&&r.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ht(this.form,this),this._oldForm&&Ee(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||n)(h($,10),h(at,10),h(Se,8))};static \u0275dir=v({type:n,features:[D,J]})}return n})();var Rn=new C("");var xr={provide:M,useExisting:j(()=>jr)},jr=(()=>{class n extends M{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new B;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,r,i,s,o,l,d){super(d,l,s),this._ngModelWarningConfig=o,this._parent=t,this._setValidators(r),this._setAsyncValidators(i)}_setupWithForm(t,r){this.control=t,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,rt(t,this,r))}ngOnChanges(t){this._added||this._setUpControl(),Fn(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return wn(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}\u0275ngControlCreate(t){super.ngControlCreate(t)}\u0275ngControlUpdate(t){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(t,!0))}static \u0275fac=function(r){return new(r||n)(h(T,13),h($,10),h(at,10),h(le,10),h(Rn,8),h(R,8),h(A,8))};static \u0275dir=v({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[N([xr,In]),D,J,te(null)]})}return n})();var Br={provide:T,useExisting:j(()=>Gr)},Gr=(()=>{class n extends kr{form=null;ngSubmit=new B;get control(){return this.form}static \u0275fac=(()=>{let t;return function(i){return(t||(t=L(n)))(i||n)}})();static \u0275dir=v({type:n,selectors:[["","formGroup",""]],hostBindings:function(r,i){r&1&&ne("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[N([Br]),D]})}return n})();var On=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275mod=ve({type:n});static \u0275inj=pe({})}return n})();function an(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Xi=(()=>{class n{useNonNullable=!1;get nonNullable(){let t=new n;return t.useNonNullable=!0,t}group(t,r=null){let i=this._reduceControls(t),s={};return an(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new ue(i,s)}record(t,r=null){let i=this._reduceControls(t);return new it(i,r)}control(t,r,i){let s={};return this.useNonNullable?(an(r)?s=r:(s.validators=r,s.asyncValidators=i),new ae(t,m(c({},s),{nonNullable:!0}))):new ae(t,r,i)}array(t,r,i){let s=t.map(o=>this._createControl(o));return new Ne(s,r,i)}_reduceControls(t){let r={};return Object.keys(t).forEach(i=>
1{r[i]=this._createControl(t[i])}),r}_createControl(t){if(t instanceof ae)return t;if(t instanceof S)return t;if(Array.isArray(t)){let r=t[0],i=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(r,i,s)}else return this.control(t)}static \u0275fac=function(r){return new(r||n)};static \u0275prov=Xt({token:n,factory:n.\u0275fac})}return n})();var Yi=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Se,useValue:t.callSetDisabledState??Fe}]}}static \u0275fac=function(r){return new(r||n)};static \u0275mod=ve({type:n});static \u0275inj=pe({imports:[On]})}return n})(),Zi=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Rn,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Se,useValue:t.callSetDisabledState??Fe}]}}static \u0275fac=function(r){return new(r||n)};static \u0275mod=ve({type:n});static \u0275inj=pe({imports:[On]})}return n})();var gt=0;function Lr(){return gt}function F(n,e){return(...t)=>{try{return gt=e,n(...t)}finally{gt=0}}}function Ur(n){return!n}function Tn(n){return n}function V(n){return Array.isArray(n)}function Re(n){return(typeof n=="object"||typeof n=="function")&&n!=null}var k=Symbol(),Ge=Symbol(),he=class{predicates;fns=[];constructor(e){this.predicates=e}push(e){this.fns.push(Pn(this.predicates,e))}mergeIn(e){let t=this.predicates?e.fns.map(r=>Pn(this.predicates,r)):e.fns;this.fns.push(...t)}hasRules(){return this.fns.length>0}},Oe=class extends he{get defaultValue(){return!1}compute(e){return this.fns.some(t=>{let r=t(e);return r&&r!==Ge})}},K=class n extends he{ignore;static ignoreNull(e){return new n(e,t=>t===null)}constructor(e,t){super(e),this.ignore=t}get defaultValue(){return[]}compute(e){return this.fns.reduce((t,r)=>{let i=r(e);return i===void 0||i===Ge?t:V(i)?[...t,...this.ignore?i.filter(s=>!this.ignore(s)):i]:this.ignore&&this.ignore(i)?t:[...t,i]},[])}},mt=class extends K{constructor(e){super(e,void 0)}},pt=class extends he{key;get defaultValue(){return this.key.reducer.getInitial()}constructor(e,t){super(e),this.key=t}compute(e){if(this.fns.length===0)return this.key.reducer.getInitial();let t=this.key.reducer.getInitial();for(let r=0;r<this.fns.length;r++){let i=this.fns[r](e);i!==Ge&&(t=this.key.reducer.reduce(t,i))}return t}};function Pn(n,e){return n.length===0?e:t=>{for(let r of n){let i=t.stateOf(r.path),s=u(i.structure.pathKeys).length-r.depth;for(let o=0;o<s;o++)i=i.structure.parent;if(!r.fn(i.context))return Ge}return e(t)}}var z=class{predicates;hidden;disabledReasons;readonly;syncErrors;syncTreeErrors;asyncErrors;metadata=new Map;constructor(e){this.predicates=e,this.hidden=new Oe(e),this.disabledReasons=new mt(e),this.readonly=new Oe(e),this.syncErrors=K.ignoreNull(e),this.syncTreeErrors=K.ignoreNull(e),this.asyncErrors=K.ignoreNull(e)}hasAnyLogic(){return this.hidden.hasRules()||this.disabledReasons.hasRules()||this.readonly.hasRules()||this.syncErrors.hasRules()||this.syncTreeErrors.hasRules()||this.asyncErrors.hasRules()||this.metadata.size>0}hasMetadata(e){return this.metadata.has(e)}hasMetadataKeys(){return this.metadata.size>0}getMetadataKeys(){return this.metadata.keys()}getMetadata(e){return this.metadata.has(e)||this.metadata.set(e,new pt(this.predicates,e)),this.metadata.get(e)}mergeIn(e){this.hidden.mergeIn(e.hidden),this.disabledReasons.mergeIn(e.disabledReasons),this.readonly.mergeIn(e.readonly),this.syncErrors.mergeIn(e.syncErrors),this.syncTreeErrors.mergeIn(e.syncTreeErrors),this.asyncErrors.mergeIn(e.asyncErrors);for(let t of e.getMetadataKeys()){let r=e.metadata.get(t);this.getMetadata(t).mergeIn(r)}}},Te=class{depth;constructor(e){this.depth=e}build(){return new Pe(this,[],0)}},X=class n extends Te{constructor(e){super(e)}current;all=[];addHiddenRule(e){this.getCurrent().addHiddenRule(e)}addDisabledReasonRule(e){this.getCurrent().addDisabledReasonRule(e)}addReadonlyRule(e){this.getCurrent().addReadonlyRule(e)}addSyncErrorRule(e){this.getCurrent().addSyncErrorRule(e)}addSyncTreeErrorRule(e){this.getCurrent().addSyncTreeErrorRule(e)}addAsyncErrorRule(e){this.getCurrent().addAsyncErrorRule(e)}addMetadataRule(e,t){this.getCurrent().addMetadataRule(e,t)}getChild(e){if(e===k){let t=this.getCurrent().children;t.size>(t.has(k)?1:0)&&(this.current=void 0)}return this.getCurrent().getChild(e)}hasLogic(e){return this===e?!0:this.all.some(({builder:t})=>t.hasLogic(e))}hasRules(){return this.all.length>0}anyChildHasLogic(){return this.all.some(({builder:e})=>e.anyChildHasLogic())}mergeIn(e,t){t?this.all.push({builder:e,predicate:{fn:F(t.fn,this.depth),path:t.path}}):this.all.push({builder:e}),this.current=void 0}
1getCurrent(){return this.current===void 0&&(this.current=new fe(this.depth),this.all.push({builder:this.current})),this.current}static newRoot(){return new n(0)}},fe=class extends Te{logic=new z([]);children=new Map;constructor(e){super(e)}addHiddenRule(e){this.logic.hidden.push(F(e,this.depth))}addDisabledReasonRule(e){this.logic.disabledReasons.push(F(e,this.depth))}addReadonlyRule(e){this.logic.readonly.push(F(e,this.depth))}addSyncErrorRule(e){this.logic.syncErrors.push(F(e,this.depth))}addSyncTreeErrorRule(e){this.logic.syncTreeErrors.push(F(e,this.depth))}addAsyncErrorRule(e){this.logic.asyncErrors.push(F(e,this.depth))}addMetadataRule(e,t){this.logic.getMetadata(e).push(F(t,this.depth))}getChild(e){return this.children.has(e)||this.children.set(e,new X(this.depth+1)),this.children.get(e)}hasLogic(e){return this===e}hasRules(){return this.logic.hasAnyLogic()||this.children.size>0}anyChildHasLogic(){for(let e of this.children.values())if(e.hasRules())return!0;return!1}},Pe=class n{builder;predicates;depth;logic;constructor(e,t,r){this.builder=e,this.predicates=t,this.depth=r,this.logic=e?Hr(e,t,r):new z([])}getChild(e){let t=this.builder?jn(this.builder,e):[];if(t.length===0)return new n(void 0,[],this.depth+1);if(t.length===1){let{builder:r,predicates:i}=t[0];return new n(r,[...this.predicates,...i.map(s=>vt(s,this.depth))],this.depth+1)}else{let r=t.map(({builder:i,predicates:s})=>new n(i,[...this.predicates,...s.map(o=>vt(o,this.depth))],this.depth+1));return new yt(r)}}hasLogic(e){return this.builder?this.builder.hasLogic(e):!1}hasRules(){return this.builder?this.builder.hasRules():!1}anyChildHasLogic(){return this.builder?this.builder.anyChildHasLogic():!1}},yt=class n{all;logic;constructor(e){this.all=e,this.logic=new z([]);for(let t of e)this.logic.mergeIn(t.logic)}getChild(e){return new n(this.all.flatMap(t=>t.getChild(e)))}hasLogic(e){return this.all.some(t=>t.hasLogic(e))}hasRules(){return this.all.some(e=>e.hasRules())}anyChildHasLogic(){return this.all.some(e=>e.anyChildHasLogic())}};function jn(n,e){if(n instanceof X)return n.all.flatMap(({builder:t,predicate:r})=>{let i=jn(t,e);return r?i.map(({builder:s,predicates:o})=>({builder:s,predicates:[...o,r]})):i});if(n instanceof fe)return[...e!==k&&n.children.has(k)?[{builder:n.getChild(k),predicates:[]}]:[],...n.children.has(e)?[{builder:n.getChild(e),predicates:[]}]:[]];throw new g(1909,!1)}function Hr(n,e,t){let r=new z(e);if(n instanceof X){let i=n.all.map(({builder:s,predicate:o})=>new Pe(s,o?[...e,vt(o,t)]:e,t));for(let s of i)r.mergeIn(s.logic)}else if(n instanceof fe)r.mergeIn(n.logic);else throw new g(1909,!1);return r}function vt(n,e){return m(c({},n),{depth:e})}var Bn=Symbol("PATH"),E=class n{keys;parent;keyInParent;root;children=new Map;fieldPathProxy=new Proxy(this,qr);logicBuilder;
1constructor(e,t,r,i){this.keys=e,this.parent=r,this.keyInParent=i,this.root=t??this,r||(this.logicBuilder=X.newRoot())}get builder(){return this.logicBuilder?this.logicBuilder:this.parent.builder.getChild(this.keyInParent)}getChild(e){return this.children.has(e)||this.children.set(e,new n([...this.keys,e],this.root,this,e)),this.children.get(e)}mergeIn(e,t){let r=e.compile();this.builder.mergeIn(r.builder,t)}static unwrapFieldPath(e){return e[Bn]}static newRoot(){return new n([],void 0,void 0,void 0)}},qr={get(n,e){return e===Bn?n:n.getChild(e).fieldPathProxy}},Ie,ce=new Map,ke=class n{schemaFn;constructor(e){this.schemaFn=e}compile(){if(ce.has(this))return ce.get(this);let e=E.newRoot();ce.set(this,e);let t=Ie;try{Ie=e,this.schemaFn(e.fieldPathProxy)}finally{Ie=t}return e}static create(e){return e instanceof n?e:new n(e)}static rootCompile(e){try{return ce.clear(),e===void 0?E.newRoot():e instanceof n?e.compile():new n(e).compile()}finally{ce.clear()}}};function $r(n){return n instanceof ke||typeof n=="function"}function St(n){if(Ie!==E.unwrapFieldPath(n).root)throw new g(1908,!1)}function Ft(n,e,t){return St(n),E.unwrapFieldPath(n).builder.addMetadataRule(e,t),e}var Y={list(){return{reduce:(n,e)=>e===void 0?n:[...n,e],getInitial:()=>[]}},min(){return{reduce:(n,e)=>n===void 0||e===void 0?n??e:e<n?e:n,getInitial:()=>{}}},max(){return{reduce:(n,e)=>n===void 0||e===void 0?n??e:e>n?e:n,getInitial:()=>{}}},or(){return{reduce:(n,e)=>n||e,getInitial:()=>!1}},and(){return{reduce:(n,e)=>n&&e,getInitial:()=>!0}},override:Wr};function Wr(n){return{reduce:(e,t)=>t,getInitial:()=>n?.()}}var It=Symbol("IS_ASYNC_VALIDATION_RESOURCE"),xe=class{reducer;create;brand;[It];constructor(e,t){this.reducer=e,this.create=t}};function I(n){return new xe(n??Y.override())}function Rt(){return I()}var Ot=I(Y.or()),Gn=Rt();var Ln=Rt();var Un=I(Y.max()),Hn=I(Y.min()),qn=I(Y.list());function b(n,e){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(!Object.is(n[t],e[t]))return!1;return!0}function Kr(n){return n.errors().length>0?"invalid":n.pending()?"unknown":"valid"}var _t=class{node;constructor(e){this.node=e}rawSyncTreeErrors=a(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.syncTreeErrors.compute(this.node.context),...this.node.structure.parent?.validationState.rawSyncTreeErrors()??[]],{equal:b});syncErrors=a(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.syncErrors.compute(this.node.context),...this.syncTreeErrors(),...zr(this.node.submitState.submissionErrors())],{equal:b});syncValid=a(()=>this.shouldSkipValidation()?!0:this.node.structure.reduceChildren(this.syncErrors().length===0,(e,t)=>t&&e.validationState.syncValid(),Ur));syncTreeErrors=a(()=>this.rawSyncTreeErrors().filter(e=>e.fieldTree===this.node.fieldTree),{equal:b});rawAsyncErrors=a(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.asyncErrors.compute(this.node.context),...this.node.structure.parent?.validationState.rawAsyncErrors()??[]],{equal:b});asyncErrors=a(()=>this.shouldSkipValidation()?[]:this.rawAsyncErrors().filter(e=>e==="pending"||e.fieldTree===this.node.fieldTree),{equal:b});parseErrors=a(()=>this.node.formFieldBindings().flatMap(e=>e.parseErrors()),{equal:b});errors=a(()=>[...this.parseErrors(),...this.syncErrors(),...this.asyncErrors().filter(e=>e!=="pending")],{equal:b});errorSummary=a(()=>{let e=this.node.structure.reduceChildren(this.errors(),(t,r)=>[...r,...t.errorSummary()]);return u(()=>e.sort(Xr)),e},{equal:b});pending=a(()=>this.node.structure.reduceChildren(this.asyncErrors().includes("pending"),(e,t)=>t||e.validationState.asyncErrors().includes("pending")));status=a(()=>{if(this.shouldSkipValidation())return"valid";let e=Kr(this);return this.node.structure.reduceChildren(e,(t,r)=>r==="invalid"||t.validationState.status()==="invalid"?"invalid":r==="unknown"||t.validationState.status()==="unknown"?"unknown":"valid",t=>t==="invalid")});valid=a(()=>this.status()==="valid");invalid=a(()=>this.status()==="invalid");shouldSkipValidation=a(()=>this.node.hidden()||this.node.disabled()||this.node.readonly()||this.node.structure.isOrphaned())};function zr(n){return n===void 0?[]:V(n)?n:[n]}function Tt(n,e){if(V(n))for(let t of n)t.fieldTree??=e;else n&&(n.fieldTree??=e);return n}function kn(n){return n.formField?n.formField.element:n.fieldTree().formFieldBindings().reduce((e,t)=>
1!e||!t.element?e??t.element:e.compareDocumentPosition(t.element)&Node.DOCUMENT_POSITION_PRECEDING?t.element:e,void 0)}function Xr(n,e){let t=kn(n),r=kn(e);return t===r?0:t===void 0||r===void 0?t===void 0?1:-1:t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}var Ct=I(),bt=class{node;cache=new WeakMap;constructor(e){this.node=e,this.fieldTreeOf=this.fieldTreeOf.bind(this),this.stateOf=this.stateOf.bind(this)}resolve(e){if(!this.cache.has(e)){let t=a(()=>{let r=E.unwrapFieldPath(e),i=this.node,s=Lr();for(;s>0||!i.structure.logic.hasLogic(r.root.builder);)if(s--,i=i.structure.parent,i===void 0)throw new g(1900,!1);for(let o of r.keys)if(i=i.structure.getChild(o),i===void 0)throw new g(1901,!1);return i.fieldTree});this.cache.set(e,t)}return this.cache.get(e)()}get fieldTree(){return this.node.fieldProxy}get state(){return this.node}get value(){return this.node.structure.value}get key(){return this.node.structure.keyInParent}get pathKeys(){return this.node.structure.pathKeys}index=a(()=>{let e=this.key();if(!V(u(this.node.structure.parent.value)))throw new g(1906,!1);return Number(e)});fieldTreeOf(e){return this.resolve(e)}stateOf(e){return this.resolve(e)()}valueOf=e=>{let t=this.resolve(e)().value();if(t instanceof S)throw new g(1907,!1);return t}},Dt=class{node;metadata=new Map;constructor(e){this.node=e}runMetadataCreateLifecycle(){if(!this.node.logicNode.logic.hasMetadataKeys())return;let e=Zt();e&&Xe(!1);try{u(()=>Q(this.node.structure.injector,()=>{for(let t of this.node.logicNode.logic.getMetadataKeys())if(t.create){let r=this.node.logicNode.logic.getMetadata(t),i=t.create(this.node,a(()=>r.compute(this.node.context)));this.metadata.set(t,i)}}))}finally{e&&Xe(!0)}}get(e){if(this.has(e)&&!this.metadata.has(e)){if(e.create)throw new g(1912,!1);let t=this.node.logicNode.logic.getMetadata(e);this.metadata.set(e,a(()=>t.compute(this.node.context)))}return this.metadata.get(e)}has(e){return this.node.logicNode.logic.hasMetadata(e)}},Yr={get(n,e,t){let r=n(),i=r.structure.getChild(e);if(i!==void 0)return i.fieldTree;let s=u(r.value);if(V(s)){if(e==="length")return r.value().length;if(e===Symbol.iterator)return()=>(r.value(),Array.prototype[Symbol.iterator].apply(r.fieldTree))}if(Re(s)&&e===Symbol.iterator)return function*(){for(let o in t)yield[o,t[o]]}},getOwnPropertyDescriptor(n,e){let t=u(n().value),r=Reflect.getOwnPropertyDescriptor(t,e);return r&&!r.configurable&&(r.configurable=!0),r},ownKeys(n){let e=u(n().value);return typeof e=="object"&&e!==null?Reflect.ownKeys(e):[]}};function Zr(n,e){let t=a(()=>n()[e()]);return t[$e]=n[$e],t.set=r=>{Object.is(u(t),r)||n.update(i=>Qr(i,r,e()))},t.update=r=>{t.set(r(u(t)))},t.asReadonly=()=>t,t}function Qr(n,e,t){if(V(n)){let r=[...n];return r[t]=e,r}else return m(c({},n),{[t]:e})}var W=Symbol(""),$n=a(()=>!1),je=class{logic;node;createChildNode;identitySymbol=Symbol();_injector=void 0;_anyChildHasLogic;get injector(){return this._injector??=A.create({providers:[],parent:this.fieldManager.injector}),this._injector}constructor(e,t,r){this.logic=e,this.node=t,this.createChildNode=r}children(){this.ensureChildrenMap();let e=this.childrenMap();return e===void 0?[]:Array.from(e.byPropertyKey.values()).map(t=>u(t.reader))}materializedChildren(){let e=this.childrenMap();return e===void 0?[]:Array.from(e.byPropertyKey.values()).map(t=>t.node)}_areChildrenMaterialized(){return u(this.childrenMap)!==void 0}ensureChildrenMap(){this._areChildrenMaterialized()||u(()=>{this.childrenMap.update(e=>this.computeChildrenMap(this.value(),e,!0))})}getChild(e){this.ensureChildrenMap();let t=e.toString(),r=u(this.childrenMap)?.byPropertyKey.get(t)?.reader;return r||(r=this.createReader(t)),r()}reduceChildren(e,t,r){let i=this.childrenMap();if(!i)return e;let s=e;for(let o of i.byPropertyKey.values()){if(r?.(s))break;s=t(u(o.reader),s)}return s}destroy(){this.injector.destroy()}createKeyOrOrphanSignals(e,t,r){if(e==="root")return{keyInParent:Wn,isOrphaned:$n};let i=this.parent,s=r,o=a(()=>{if(i.structure.isOrphaned())return W;let f=i.structure.childrenMap();if(!f)return W;let y=f.byPropertyKey.get(s);if(y&&y.node===this.node)return s;if(t===void 0)return W;
1for(let[Z,qe]of f.byPropertyKey)if(qe.node===this.node)return s=Z;return W}),l=a(()=>o()===W);return{keyInParent:a(()=>{let f=o();if(f===W)throw t===void 0?new g(-1902,!1):new g(1904,!1);return f}),isOrphaned:l}}createChildrenMap(){return O({source:this.value,computation:(e,t)=>this.computeChildrenMap(e,t?.value,!1)})}computeChildrenMap(e,t,r){if(!Re(e)||!r&&t===void 0&&!(this._anyChildHasLogic??=this.logic.anyChildHasLogic()))return;t??={byPropertyKey:new Map};let i,s=V(e);t!==void 0&&(s?i=ei(t,e,this.identitySymbol):i=ti(t,e));for(let o of Object.keys(e)){let l,d=e[o];if(d===void 0){t.byPropertyKey.has(o)&&(i??=c({},t),i.byPropertyKey.delete(o));continue}s&&Re(d)&&!V(d)&&(l=d[this.identitySymbol]??=Symbol(""));let f;l&&(t.byTrackingKey?.has(l)||(i??=c({},t),i.byTrackingKey??=new Map,i.byTrackingKey.set(l,this.createChildNode(o,l,s))),f=(i??t).byTrackingKey.get(l));let y=t.byPropertyKey.get(o);y===void 0?(i??=c({},t),i.byPropertyKey.set(o,{reader:this.createReader(o),node:f??this.createChildNode(o,l,s)})):f&&f!==y.node&&(i??=c({},t),y.node=f)}return i??t}createReader(e){return a(()=>this.childrenMap()?.byPropertyKey.get(e)?.node)}},Mt=class extends je{fieldManager;value;get parent(){}get root(){return this.node}get pathKeys(){return Jr}get keyInParent(){return Wn}isOrphaned=$n;childrenMap;constructor(e,t,r,i,s){super(t,e,s),this.fieldManager=r,this.value=i,this.childrenMap=this.createChildrenMap()}},Vt=class extends je{logic;parent;root;pathKeys;keyInParent;value;childrenMap;isOrphaned;get fieldManager(){return this.root.structure.fieldManager}constructor(e,t,r,i,s,o){super(t,e,o),this.logic=t,this.parent=r,this.root=this.parent.structure.root;let l=this.createKeyOrOrphanSignals("child",i,s);this.isOrphaned=l.isOrphaned,this.keyInParent=l.keyInParent,this.pathKeys=a(()=>[...r.structure.pathKeys(),this.keyInParent()]),this.value=Zr(this.parent.structure.value,this.keyInParent),this.childrenMap=this.createChildrenMap(),this.fieldManager.structures.add(this)}};var Jr=a(()=>[]),Wn=a(()=>{throw new g(1905,!1)});function ei(n,e,t){let r,i=new Set(n.byPropertyKey.keys()),s=n.byTrackingKey&&new Set(n.byTrackingKey.keys());for(let o=0;o<e.length;o++){let l=e[o];i.delete(o.toString()),s&&Re(l)&&Object.hasOwn(l,t)&&s.delete(l[t])}if(i.size>0){r??=c({},n);for(let o of i)r.byPropertyKey.delete(o)}if(s&&s.size>0){r??=c({},n);for(let o of s)r.byTrackingKey.delete(o)}return r}function ti(n,e){let t;for(let r of n.byPropertyKey.keys())e.hasOwnProperty(r)||(t??=c({},n),t.byPropertyKey.delete(r));return t}var Et=class{node;selfSubmitting=_(!1);submissionErrors;constructor(e){this.node=e,this.submissionErrors=O({source:this.node.structure.value,computation:()=>[]})}submitting=a(()=>this.selfSubmitting()||(this.node.structure.parent?.submitting()??!1))},ge=class{structure;validationState;metadataState;nodeState;submitState;fieldAdapter;controlValue;_context=void 0;get context(){return this._context??=new bt(this)}fieldProxy=new Proxy(()=>this,Yr);pathNode;constructor(e){this.pathNode=e.pathNode,this.fieldAdapter=e.fieldAdapter,this.structure=this.fieldAdapter.createStructure(this,e),this.validationState=this.fieldAdapter.createValidationState(this,e),this.nodeState=this.fieldAdapter.createNodeState(this,e),this.metadataState=new Dt(this),this.submitState=new Et(this),this.controlValue=this.controlValueSignal(),this.metadataState.runMetadataCreateLifecycle()}focusBoundControl(e){this.getBindingForFocus()?.focus(e)}getBindingForFocus(){let e=this.formFieldBindings().filter(t=>t.focus!==void 0).reduce(xn,void 0);return e||this.structure.children().map(t=>t.getBindingForFocus()).reduce(xn,void 0)}pendingSync=O({source:()=>this.value(),computation:(e,t)=>{t?.value?.abort()}});get fieldTree(){return this.fieldProxy}get logicNode(){return this.structure.logic}get value(){return this.structure.value}get keyInParent(){return this.structure.keyInParent}get errors(){return this.validationState.errors}get parseErrors(){return this.validationState.parseErrors}get errorSummary(){return this.validationState.errorSummary}get pending(){return this.validationState.pending}get valid(){return this.validationState.valid}
1get invalid(){return this.validationState.invalid}get dirty(){return this.nodeState.dirty}get touched(){return this.nodeState.touched}get disabled(){return this.nodeState.disabled}get disabledReasons(){return this.nodeState.disabledReasons}get hidden(){return this.nodeState.hidden}get readonly(){return this.nodeState.readonly}get formFieldBindings(){return this.nodeState.formFieldBindings}get submitting(){return this.submitState.submitting}get name(){return this.nodeState.name}get max(){let e=this.metadata(Ln)?.();return e?this.metadata(e):void 0}get maxLength(){return this.metadata(Hn)}get min(){let e=this.metadata(Gn)?.();return e?this.metadata(e):void 0}get minLength(){return this.metadata(Un)}get pattern(){return this.metadata(qn)??ni}get required(){return this.metadata(Ot)??ri}metadata(e){return this.metadataState.get(e)}getError(e){return this.errors().find(t=>t.kind===e)}hasMetadata(e){return this.metadataState.has(e)}markAsTouched(e){this.structure.isOrphaned()||u(()=>{this.markAsTouchedInternal(e),this.flushSync()})}markAsTouchedInternal(e){if(!this.structure.isOrphaned()&&!this.validationState.shouldSkipValidation()&&(this.nodeState.markAsTouched(),!e?.skipDescendants))for(let t of this.structure.children())t.markAsTouchedInternal()}markAsDirty(){this.nodeState.markAsDirty()}markAsPristine(){this.nodeState.markAsPristine()}markAsUntouched(){this.nodeState.markAsUntouched()}reset(e){u(()=>this._reset(e))}_reset(e){this.pendingSync()?.abort(),e!==void 0&&this.value.set(e),this.controlValue.rawSet(this.value()),this.nodeState.markAsUntouched(),this.nodeState.markAsPristine();for(let t of this.formFieldBindings())t.reset();for(let t of this.structure.materializedChildren())t._reset()}reloadValidation(){u(()=>this._reloadValidation())}_reloadValidation(){let e=this.logicNode.logic.getMetadataKeys();for(let t of e)t[It]&&this.metadata(t).reload?.();for(let t of this.structure.children())t._reloadValidation()}controlValueSignal(){let e=O(this.value);e.rawSet=e.set,e.set=r=>{e.rawSet(r),this.markAsDirty(),this.debounceSync()};let t=e.update;return e.update=r=>{t(r),this.markAsDirty(),this.debounceSync()},e}sync(){this.value.set(this.controlValue())}flushSync(){let e=this.pendingSync();e&&!e.signal.aborted&&(e.abort(),this.sync())}async debounceSync(){let e=u(()=>(this.pendingSync()?.abort(),this.nodeState.debouncer()));if(e){let t=new AbortController,r=e(t.signal);if(r&&(this.pendingSync.set(t),await r,t.signal.aborted))return}this.structure.isOrphaned()||this.sync()}static newRoot(e,t,r,i){return i.newRoot(e,t,r,i)}createStructure(e){return e.kind==="root"?new Mt(this,e.logic,e.fieldManager,e.value,this.newChild.bind(this)):new Vt(this,e.logic,e.parent,e.identityInParent,e.initialKeyInParent,this.newChild.bind(this))}newChild(e,t,r){let i,s;return r?(i=this.pathNode.getChild(k),s=this.structure.logic.getChild(k)):(i=this.pathNode.getChild(e),s=this.structure.logic.getChild(e)),this.fieldAdapter.newChild({kind:"child",parent:this,pathNode:i,logic:s,initialKeyInParent:e,identityInParent:t,fieldAdapter:this.fieldAdapter})}},ni=a(()=>[]),ri=a(()=>!1);function xn(n,e){return n?e&&n.element.compareDocumentPosition(e.element)&Node.DOCUMENT_POSITION_PRECEDING?e:n:e}var At=class{node;selfTouched=_(!1);selfDirty=_(!1);markAsTouched(){this.selfTouched.set(!0)}markAsDirty(){this.selfDirty.set(!0)}markAsPristine(){this.selfDirty.set(!1)}markAsUntouched(){this.selfTouched.set(!1)}formFieldBindings=_([]);constructor(e){this.node=e}dirty=a(()=>{let e=this.selfDirty()&&!this.isNonInteractive();return this.node.structure.reduceChildren(e,(t,r)=>r||t.nodeState.dirty(),Tn)});touched=a(()=>{let e=this.selfTouched()&&!this.isNonInteractive();return this.node.structure.reduceChildren(e,(t,r)=>r||t.nodeState.touched(),Tn)});disabledReasons=a(()=>[...this.node.structure.parent?.nodeState.disabledReasons()??[],...this.node.logicNode.logic.disabledReasons.compute(this.node.context)],{equal:b});disabled=a(()=>!!this.disabledReasons().length);readonly=a(()=>(this.node.structure.parent?.nodeState.readonly()||this.node.logicNode.logic.readonly.compute(this.node.context))??!1);hidden=a(()=>(this.node.structure.parent?.nodeState.hidden()||this.node.logicNode.logic.hidden.compute(this.node.context))??!1);name=a(()=>{let e=this.node.structure.parent;return e?`${e.name()}.${this.node.structure.keyInParent()}`:this.node.structure.fieldManager.rootName});debouncer=a(()=>
1{if(this.node.logicNode.logic.hasMetadata(Ct)){let t=this.node.logicNode.logic.getMetadata(Ct).compute(this.node.context);if(t)return r=>t(this.node.context,r)}return this.node.structure.parent?.nodeState.debouncer?.()});isNonInteractive=a(()=>this.hidden()||this.disabled()||this.readonly())},Nt=class{newRoot(e,t,r,i){return new ge({kind:"root",fieldManager:e,value:t,pathNode:r,logic:r.builder.build(),fieldAdapter:i})}newChild(e){return new ge(e)}createNodeState(e){return new At(e)}createValidationState(e){return new _t(e)}createStructure(e,t){return e.createStructure(t)}},wt=class{injector;rootName;submitOptions;constructor(e,t,r){this.injector=e,this.rootName=t??`${this.injector.get(Kt)}.form${ii++}`,this.submitOptions=r}structures=new Set;createFieldManagementEffect(e){G(()=>{let t=new Set;this.markStructuresLive(e,t);for(let r of this.structures)t.has(r)||(this.structures.delete(r),u(()=>r.destroy()))},{injector:this.injector})}markStructuresLive(e,t){t.add(e);for(let r of e.children())this.markStructuresLive(r.structure,t)}},ii=0,Kn=new C("");function si(n){let e,t,r;return n.length===3?[e,t,r]=n:n.length===2?$r(n[1])?[e,t]=n:[e,r]=n:[e]=n,[e,t,r]}function oi(...n){let[e,t,r]=si(n),i=r?.injector??p(A),s=Q(i,()=>ke.rootCompile(t)),o=new wt(i,r?.name,r?.submission),l=r?.adapter??new Nt,d=ge.newRoot(o,e,s,l);o.createFieldManagementEffect(d.structure);let{experimentalWebMcpTool:f}=r??{};if(f){let y=Q(i,()=>p(Kn,{optional:!0}));y&&Q(i,()=>y(d.fieldTree,{name:f.name,description:f.description}))}return d.fieldTree}async function zn(n,e){let t=u(n);if(u(t.submitState.submitting))return!1;let r=e===void 0?t.structure.root.fieldProxy:n,i={root:t.structure.root.fieldProxy,submitted:n};e=typeof e=="function"?{action:e}:e??t.structure.fieldManager.submitOptions;let s=e?.action;if(!s)throw new g(1915,!1);t.markAsTouched();let o=e?.onInvalid,l=ai(t,e?.ignoreValidators);try{if(l){t.submitState.selfSubmitting.set(!0);let d=await u(()=>s?.(r,i));return d&&ui(t,d),!d||V(d)&&d.length===0}else u(()=>o?.(r,i));return!1}finally{t.submitState.selfSubmitting.set(!1)}}function ai(n,e){switch(e){case"all":return!0;case"none":return u(n.valid);default:return!u(n.invalid)}}function ui(n,e){V(e)||(e=[e]);let t=new Map;for(let r of e){let i=Tt(r,n.fieldTree),s=i.fieldTree(),o=t.get(s);o||(o=[],t.set(s,o)),o.push(i)}for(let[r,i]of t)r.submitState.submissionErrors.set(i)}var Be=class{kind="compat";control;fieldTree;context;message;constructor({context:e,kind:t,control:r}){this.context=e,this.kind=t,this.control=r}};function Xn(n){if(n.length===0)return null;let e={};for(let t of n)e[t.kind]=t instanceof Be?t.context:t;return e}function Yn(n,e){return n===null?[]:Object.entries(n).map(([t,r])=>new Be({context:r,kind:t,control:e}))}var li=new C("");function Le(n,e){return n instanceof Function?n(e):n}function tr(n){return typeof n=="number"?isNaN(n):n===""||n===!1||n==null}function Zn(n){return n===void 0?[]:Array.isArray(n)?n:[n]}function nr(n,e){St(n),E.unwrapFieldPath(n).builder.addSyncErrorRule(r=>Tt(e(r),r.fieldTree))}function di(n){return new Pt(n)}function ci(n){return new kt(n)}var me=class{__brand=void 0;kind="";fieldTree;message;constructor(e){e&&Object.assign(this,e)}},Pt=class extends me{kind="required"};var kt=class extends me{kind="email"},Ue=class extends me{kind="parse"};var hi=/^(?=.{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])?)*$/;function ws(n,e){nr(n,t=>{if(!(e?.when&&!e.when(t))&&!tr(t.value())&&!hi.test(t.value()))return e?.error?Le(e.error,t):ci({message:Le(e?.message,t)})})}function Ss(n,e){let t=Ft(n,I(),r=>e?.when?e.when(r):!0);Ft(n,Ot,({state:r})=>r.metadata(t)()),nr(n,r=>{if(r.state.metadata(t)()&&tr(r.value()))return e?.error?Le(e.error,r):di({message:Le(e?.message,r)})})}function fi(n,e,t){let r=O({source:n,computation:()=>[],equal:b}),i=o=>{let l=t(o);r.set(Zn(l.error)),l.value!==void 0&&e(l.value),r.set(Zn(l.error))},s=()=>{r.set([])};return{errors:r.asReadonly(),setRawValue:i,reset:s}}var xt=class{field;constructor(e){this.field=e}
1control=this;get value(){return this.field().controlValue()}get valid(){return this.field().valid()}get invalid(){return this.field().invalid()}get pending(){return this.field().pending()}get disabled(){return this.field().disabled()}get enabled(){return!this.field().disabled()}get errors(){return Xn(this.field().errors())}get pristine(){return!this.field().dirty()}get dirty(){return this.field().dirty()}get touched(){return this.field().touched()}get untouched(){return!this.field().touched()}get status(){if(this.field().disabled())return"DISABLED";if(this.field().valid())return"VALID";if(this.field().invalid())return"INVALID";if(this.field().pending())return"PENDING";throw new g(1910,!1)}valueAccessor=null;hasValidator(e){return e===q.required?this.field().required():!1}updateValueAndValidity(){}},jt={disabled:"disabled",disabledReasons:"disabledReasons",dirty:"dirty",errors:"errors",hidden:"hidden",invalid:"invalid",max:"max",maxLength:"maxLength",min:"min",minLength:"minLength",name:"name",pattern:"pattern",pending:"pending",readonly:"readonly",required:"required",touched:"touched"},gi=(()=>{let n={};for(let e of Object.keys(jt))n[jt[e]]=e;return n})();function Bt(n,e){let t=gi[e];return n[t]?.()}var Gt=Object.values(jt);function He(){return{}}function x(n,e,t){return Object.is(n[e],t)?!1:(n[e]=t,!0)}function mi(n,e,t){let r;if(rr(n)&&t.isBadInput(n))return{error:new Ue};switch(n.type){case"checkbox":return{value:n.checked};case"number":case"range":case"datetime-local":if(r=u(e),typeof r=="number"||r===null)return{value:n.value===""?null:n.valueAsNumber};break;case"date":case"month":case"time":case"week":if(r=u(e),r===null||r instanceof Date)return{value:n.valueAsDate};if(typeof r=="number")return{value:n.valueAsNumber};break}if(n.tagName==="INPUT"&&n.type==="text"&&(r??=u(e),typeof r=="number"||r===null)){if(n.value==="")return{value:null};let i=pi(n.value);return i===void 0?{error:new Ue}:{value:i}}return{value:n.value}}function Qn(n,e){switch(n.type){case"checkbox":n.checked=e;return;case"radio":n.checked=e===n.value;return;case"number":case"range":case"datetime-local":if(typeof e=="number"){Jn(n,e);return}else if(e===null){n.value="";return}break;case"date":case"month":case"time":case"week":if(e===null||e instanceof Date){n.valueAsDate=e;return}else if(typeof e=="number"){Jn(n,e);return}}if(n.tagName==="INPUT"&&n.type==="text"){if(typeof e=="number"){n.value=isNaN(e)?"":String(e);return}if(e===null){n.value="";return}}n.value=e}function pi(n){let e=Number(n);if(!(Number.isNaN(e)||!Object.is(e,parseFloat(n))))return e}function Jn(n,e){isNaN(e)?n.value="":n.valueAsNumber=e}function rr(n){return n.tagName==="INPUT"}function yi(n){return n.type==="date"||n.type==="datetime-local"||n.type==="month"||n.type==="time"||n.type==="week"}function vi(n,e){let t=n.getUTCFullYear(),r=String(n.getUTCMonth()+1).padStart(2,"0");if(e==="month")return`${t}-${r}`;let i=String(n.getUTCDate()).padStart(2,"0");return`${t}-${r}-${i}`}function ir(n,e,t){return e instanceof Date&&(n==="min"||n==="max")&&(t==="date"||t==="month")?vi(e,t):e}function _i(n,e){n.listenToCustomControlModel(r=>e.state().controlValue.set(r)),n.listenToCustomControlOutput("touch",()=>e.state().markAsTouched()),e.registerAsBinding(n.customControl);let t=He();return()=>{let r=e.state(),i=r.controlValue();x(t,"controlValue",i)&&n.setCustomControlModelInput(i);for(let s of Gt){let o;if(s==="errors"?o=e.errors():o=Bt(r,s),x(t,s,o)&&(n.setInputOnDirectives(s,o),e.elementAcceptsNativeProperty(s)&&!n.customControlHasInput(s))){let l=ir(s,o,e.nativeFormElement.type);de(e.renderer,e.nativeFormElement,s,l)}}}}function Ci(n){return typeof n=="object"&&n!==null}function bi(n,e){let t=He();e.controlValueAccessor.registerOnChange(i=>{t.controlValue=i,e.state().controlValue.set(i)}),e.controlValueAccessor.registerOnTouched(()=>e.state().markAsTouched());let r=e.injector.get($,null,{optional:!0,self:!0});if(r){let i;for(let d of r)Ci(d)&&d.registerOnValidatorChange&&(i??=_(0),d.registerOnValidatorChange(()=>{i.update(f=>f+1)}));let s=r.map(d=>typeof d=="function"?d:d.validate.bind(d)),o=q.compose(s),l=a(()=>{i?.();let d=o?o(e.interopNgControl.control):null;return Yn(d,e.interopNgControl.control)});e.parseErrorsSource.set(l)}return e.registerAsBinding({reset:()=>
1{let i=e.state().value();t.controlValue=i,u(()=>e.controlValueAccessor.writeValue(i))}}),()=>{let i=e.state(),s=i.controlValue();x(t,"controlValue",s)&&u(()=>e.controlValueAccessor.writeValue(s));for(let o of Gt){let l=Bt(i,o);if(x(t,o,l)){let d=n.setInputOnDirectives(o,l);o==="disabled"&&e.controlValueAccessor.setDisabledState?u(()=>e.controlValueAccessor.setDisabledState(l)):!d&&e.elementAcceptsNativeProperty(o)&&de(e.renderer,e.nativeFormElement,o,l)}}}}function Di(n,e,t){if(typeof MutationObserver!="function")return;let r=new MutationObserver(i=>{i.some(s=>Mi(s))&&e()});r.observe(n,{attributes:!0,attributeFilter:["value"],characterData:!0,childList:!0,subtree:!0}),t.onDestroy(()=>r.disconnect())}function Mi(n){if(n.type==="childList"||n.type==="characterData"){if(n.target instanceof Comment)return!1;for(let e of n.addedNodes)if(!(e instanceof Comment))return!0;for(let e of n.removedNodes)if(!(e instanceof Comment))return!0;return!1}return n.type==="attributes"&&n.target instanceof HTMLOptionElement}function Vi(n,e,t,r){let i=!1,s=e.nativeFormElement,o=He(),l=fi(()=>e.state().value(),d=>{o.controlValue=d,e.state().controlValue.set(d)},d=>mi(s,e.state().value,r));return t.set(l.errors),e.onReset=()=>{l.reset();let d=e.state().value();o.controlValue=d,Qn(s,d)},n.listenToDom("input",()=>l.setRawValue(void 0)),n.listenToDom("blur",()=>e.state().markAsTouched()),rr(s)&&yi(s)&&r.watchValidity(e.destroyRef,s,()=>l.setRawValue(void 0)),e.registerAsBinding(),s.tagName==="SELECT"&&Di(s,()=>{i&&(s.value=e.state().controlValue())},e.destroyRef),()=>{let d=e.state();for(let y of Gt){let Z=Bt(d,y);if(x(o,y,Z)&&(n.setInputOnDirectives(y,Z),e.elementAcceptsNativeProperty(y))){let qe=ir(y,Z,s.type);de(e.renderer,s,y,qe)}}let f=d.controlValue();x(o,"controlValue",f)&&Qn(s,f),i=!0}}var sr=(()=>{class n{static \u0275fac=function(r){return new(r||n)};static \u0275prov=We({token:n,factory:t=>Ei.\u0275fac(t),providedIn:"root"})}return n})(),Ei=(()=>{class n extends sr{document=p(Wt);cspNonce=p(zt,{optional:!0});injectedStyles=new WeakMap;watchValidity(t,r,i){let s=r.getRootNode();this.injectedStyles.has(s)||this.injectedStyles.set(s,this.createTransitionStyle(s));let o=l=>{let d=l;(d.animationName==="ng-valid"||d.animationName==="ng-invalid")&&i()};r.addEventListener("animationstart",o),t.onDestroy(()=>{r.removeEventListener("animationstart",o)})}isBadInput(t){return t.validity?.badInput??!1}createTransitionStyle(t){let r=this.document.createElement("style");return this.cspNonce&&(r.nonce=this.cspNonce),r.textContent=` 2 @keyframes ng-valid {} 3 @keyframes ng-invalid {} 4 input:valid, textarea:valid { 5 animation: ng-valid 0.001s; 6 } 7 input:invalid, textarea:invalid { 8 animation: ng-invalid 0.001s; 9 } 10 `,t.nodeType===9?t.head?.appendChild(r):t.appendChild(r),r}ngOnDestroy(){this.injectedStyles.get(this.document)?.remove()}static \u0275fac=(()=>{let t;return function(i){return(t||(t=L(n)))(i||n)}})();static \u0275prov=We({token:n,factory:n.\u0275fac})}return n})(),Ai=Symbol(),er=new C(""),Fs=(()=>{class n{field=Ye.required({alias:"formField"});state=a(()=>this.field()());renderer=p(R);destroyRef=p(ye);injector=p(A);element=p(ee).nativeElement;elementIsNativeFormElement=dt(this.element);elementAcceptsTextualValues=An(this.element);_elementAcceptsMinMax;nativeFormElement=this.elementIsNativeFormElement?this.element:void 0;focuser=t=>this.element.focus(t);controlValueAccessors=p(le,{optional:!0,self:!0});config=p(li,{optional:!0});validityMonitor=p(sr);parseErrorsSource=_(void 0);_interopNgControl;get interopNgControl(){return this._interopNgControl??=new xt(this.state)}parseErrors=a(()=>this.parseErrorsSource()?.().map(t=>m(c({},t),{fieldTree:u(this.state).fieldTree,formField:this}))??[],{equal:b});errors=a(()=>this.state().errors().filter(t=>!t.formField||t.formField===this),{equal:b});isFieldBinding=!1;resetter=()=>{};parseErrorsResetCallback;setParseErrors(t){this.parseErrorsSource.set(t)}set onReset(t){this.parseErrorsResetCallback=t}get onReset(){return this.parseErrorsResetCallback}get controlValueAccessor(){return!this.controlValueAccessors||this.controlValueAccessors.length===0?this.interopNgControl?.valueAccessor??void 0:ft(this.interopNgControl,this.controlValueAccessors)??void 0}installClassBindingEffect(){let t=Object.entries(this.config?.classes??{}).map(([i,s])=>[i,a(()=>s(this))]);if(t.length===0)return;let r=He();Qt({write:()=>{for(let[i,s]of t){let o=s();x(r,i,o)&&(o?this.renderer.addClass(this.element,i):this.renderer.removeClass(this.element,i))}}},{injector:this.injector})}focus(t){this.focuser(t)}reset(){this.resetter(),this.parseErrorsResetCallback?.(this.state().value(
10))}registerAsBinding(t){if(this.isFieldBinding)throw new g(1913,!1);this.isFieldBinding=!0,this.installClassBindingEffect(),t?.focus&&(this.focuser=r=>t.focus(r)),t?.reset&&(this.resetter=()=>t.reset()),G(r=>{let i=this.state();i.nodeState.formFieldBindings.update(s=>[...s,this]),r(()=>{i.nodeState.formFieldBindings.update(s=>s.filter(o=>o!==this))})},{injector:this.injector})}[Ai];\u0275ngControlCreate(t){if(!t.hasPassThrough)if(this.controlValueAccessor)this.\u0275ngControlUpdate=bi(t,this);else if(t.customControl)this.\u0275ngControlUpdate=_i(t,this);else if(this.elementIsNativeFormElement)this.\u0275ngControlUpdate=Vi(t,this,this.parseErrorsSource,this.validityMonitor);else throw new g(1914,!1)}\u0275ngControlUpdate;elementAcceptsNativeProperty(t){if(!this.elementIsNativeFormElement)return!1;switch(t){case"min":case"max":return this._elementAcceptsMinMax??=En(this.element);case"minLength":case"maxLength":return this.elementAcceptsTextualValues;case"disabled":case"required":case"readonly":case"name":return!0;default:return!1}}static \u0275fac=function(r){return new(r||n)};static \u0275dir=v({type:n,selectors:[["","formField",""]],inputs:{field:[1,"formField","field"]},exportAs:["formField"],features:[N([{provide:er,useExisting:n},{provide:M,useFactory:()=>p(n).interopNgControl},{provide:ct,useFactory:()=>p(er,{self:!0})}]),te("formField")]})}return n})(),Is=(()=>{class n{fieldTree=Ye.required({alias:"formRoot"});onSubmit(t){t.preventDefault(),u(()=>{let r=this.fieldTree();r().structure.fieldManager.submitOptions&&zn(r)})}static \u0275fac=function(r){return new(r||n)};static \u0275dir=v({type:n,selectors:[["form","formRoot",""]],hostAttrs:["novalidate",""],hostBindings:function(r,i){r&1&&ne("submit",function(o){return i.onSubmit(o)})},inputs:{fieldTree:[1,"formRoot","fieldTree"]}})}return n})();export{ln as a,q as b,$i as c,Wi as d,Pr as e,zi as f,jr as g,Gr as h,Xi as i,Yi as j,Zi as k,oi as l,nr as m,ws as n,Ss as o,Fs as p,Is as q};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.