@signalk/freeboard-sk 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/package.json +5 -2
  2. package/public/{chunk-RQKGK2KO.js → chunk-3HHS54E4.js} +1 -1
  3. package/public/{chunk-D4A5NW5G.js → chunk-3HSIX7SC.js} +1 -1
  4. package/public/{chunk-4UBQTQSK.js → chunk-3LS56QZI.js} +1 -1
  5. package/public/chunk-4GN5KO3L.js +1 -0
  6. package/public/{chunk-GFDZNVNU.js → chunk-5UXNTYSY.js} +70 -70
  7. package/public/{chunk-OVB2ZLN5.js → chunk-7Z7GI4ZY.js} +1 -1
  8. package/public/{chunk-BCS6VHKX.js → chunk-DBGL657U.js} +1 -1
  9. package/public/{chunk-USYMWMPO.js → chunk-DX34XOH2.js} +1 -1
  10. package/public/chunk-HVGGQ65L.js +1 -0
  11. package/public/{chunk-7OBOGNNY.js → chunk-IAPJVEYW.js} +1 -1
  12. package/public/{chunk-5SYZI253.js → chunk-IQZW2T75.js} +1 -1
  13. package/public/{chunk-6ZXMFU55.js → chunk-IUPTBCPS.js} +1 -1
  14. package/public/{chunk-YB4RBYE2.js → chunk-IWEZGJPC.js} +1 -1
  15. package/public/{chunk-BNCDJR4Z.js → chunk-JWBOMKMB.js} +1 -1
  16. package/public/{chunk-BJKB23AZ.js → chunk-LNNAK44C.js} +1 -1
  17. package/public/{chunk-R7YVRRY3.js → chunk-NO274VZU.js} +1 -1
  18. package/public/chunk-OS23ZF5N.js +1 -0
  19. package/public/chunk-PPBXI4I6.js +1 -0
  20. package/public/{chunk-P57WKW3G.js → chunk-TWWDZIBY.js} +1 -1
  21. package/public/{chunk-RRYFRHFP.js → chunk-VAI3YHUS.js} +1 -1
  22. package/public/{chunk-GBMW6IJP.js → chunk-XUGRUSQE.js} +1 -1
  23. package/public/chunk-YROCNGFN.js +1 -0
  24. package/public/{chunk-XZM7Q5WP.js → chunk-ZU72P2HZ.js} +1 -1
  25. package/public/index.html +1 -1
  26. package/public/{main-LYWXFV5I.js → main-BZXS6MPD.js} +10 -10
  27. package/public/chunk-A2UDMCI5.js +0 -1
  28. package/public/chunk-EDKY4MXN.js +0 -1
  29. package/public/chunk-H54CRRPU.js +0 -1
  30. package/public/chunk-HT6GODHM.js +0 -1
  31. package/public/chunk-XXGLBGHG.js +0 -1
@@ -1 +1 @@
1
- import{c as y,d as S,e as k,g as E,k as R,o as B}from"./chunk-BNCDJR4Z.js";import"./chunk-XZM7Q5WP.js";import"./chunk-USYMWMPO.js";import{Ed as b,Fd as I,Hd as L,Ia as f,Id as C,Ja as u,Jd as w,Kd as P,La as e,Ma as a,Md as W,Nd as v,R as s,S as g,Ua as M,Wa as c,Xd as T,Ya as _,_d as h,ja as l,lb as o,mb as D,nb as A,oa as r,ob as x,ra as p}from"./chunk-BCS6VHKX.js";import"./chunk-NCEQPEJE.js";var F=(n,i)=>i.extension+"/"+i.widget.id;function O(n,i){if(n&1){let t=M();e(0,"button",4),c("click",function(){let m=s(t).$implicit,j=_();return g(j.dialogRef.close(m))}),e(1,"span",5),o(2),a(),e(3,"span",6),o(4),a()()}if(n&2){let t=i.$implicit;l(2),D(t.widget.title),l(2),x("",t.extensionName," \xB7 ",t.widget.size)}}var N=class n{constructor(i,t){this.dialogRef=i;this.data=t;this.anchorLabel=B[t.anchor]}dialogRef;data;anchorLabel;static \u0275fac=function(t){return new(t||n)(r(b),r(I))};static \u0275cmp=p({type:n,selectors:[["fb-plotterext-add-widget"]],decls:12,vars:1,consts:[["mat-dialog-title","",1,"pe-add-title"],["mat-list-item",""],["align","end"],["mat-button","",3,"click"],["mat-list-item","",3,"click"],["matListItemTitle",""],["matListItemLine",""]],template:function(t,d){t&1&&(e(0,"div",0)(1,"mat-icon"),o(2,"widgets"),a(),e(3,"span"),o(4),a()(),e(5,"mat-dialog-content")(6,"mat-action-list"),f(7,O,5,3,"button",1,F),a()(),e(9,"mat-dialog-actions",2)(10,"button",3),c("click",function(){return d.dialogRef.close()}),o(11,"Cancel"),a()()),t&2&&(l(4),A("Add widget \u2014 ",d.anchorLabel),l(3),u(d.data.candidates))},dependencies:[P,L,w,C,h,T,v,W,R,k,E,S,y],styles:[".pe-add-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}"]})};export{N as PlotterAddWidgetDialog};
1
+ import{c as y,d as S,e as k,g as E,k as R,o as B}from"./chunk-JWBOMKMB.js";import"./chunk-ZU72P2HZ.js";import"./chunk-DX34XOH2.js";import{$d as h,Fd as b,Gd as I,Id as L,Ja as f,Jd as C,Ka as u,Kd as w,Ld as P,Ma as e,Na as a,Nd as W,Od as v,S as s,T as g,Va as M,Xa as c,Yd as T,Za as _,ka as l,mb as o,nb as D,ob as A,pa as r,pb as x,sa as p}from"./chunk-DBGL657U.js";import"./chunk-NCEQPEJE.js";var F=(n,i)=>i.extension+"/"+i.widget.id;function O(n,i){if(n&1){let t=M();e(0,"button",4),c("click",function(){let m=s(t).$implicit,j=_();return g(j.dialogRef.close(m))}),e(1,"span",5),o(2),a(),e(3,"span",6),o(4),a()()}if(n&2){let t=i.$implicit;l(2),D(t.widget.title),l(2),x("",t.extensionName," \xB7 ",t.widget.size)}}var N=class n{constructor(i,t){this.dialogRef=i;this.data=t;this.anchorLabel=B[t.anchor]}dialogRef;data;anchorLabel;static \u0275fac=function(t){return new(t||n)(r(b),r(I))};static \u0275cmp=p({type:n,selectors:[["fb-plotterext-add-widget"]],decls:12,vars:1,consts:[["mat-dialog-title","",1,"pe-add-title"],["mat-list-item",""],["align","end"],["mat-button","",3,"click"],["mat-list-item","",3,"click"],["matListItemTitle",""],["matListItemLine",""]],template:function(t,d){t&1&&(e(0,"div",0)(1,"mat-icon"),o(2,"widgets"),a(),e(3,"span"),o(4),a()(),e(5,"mat-dialog-content")(6,"mat-action-list"),f(7,O,5,3,"button",1,F),a()(),e(9,"mat-dialog-actions",2)(10,"button",3),c("click",function(){return d.dialogRef.close()}),o(11,"Cancel"),a()()),t&2&&(l(4),A("Add widget \u2014 ",d.anchorLabel),l(3),u(d.data.candidates))},dependencies:[P,L,w,C,h,T,v,W,R,k,E,S,y],styles:[".pe-add-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}"]})};export{N as PlotterAddWidgetDialog};
@@ -1706,4 +1706,4 @@ ${t.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
1706
1706
  .mat-mdc-extended-fab .mat-mdc-button-touch-target {
1707
1707
  width: 100%;
1708
1708
  }
1709
- `],encapsulation:2,changeDetection:0})}return e})(),IY=(()=>{class e extends Us{_options=f(AE,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||$s,this.color=this._options.color||$s.color}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=ce({type:e,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[W],attrs:pR,ngContentSelectors:Wp,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Ot(Gp),Xe(0,"span",0),Ae(1),cn(2,"span",1),Ae(3,1),ln(),Ae(4,2),Xe(5,"span",2)(6,"span",3)),r&2&&De("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[mR],encapsulation:2,changeDetection:0})}return e})();var SY=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({imports:[TE,at]})}return e})();var VE=(()=>{class e{_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||e)(H(Ke),H(B))};static \u0275dir=N({type:e})}return e})(),jE=(()=>{class e extends VE{static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,features:[W]})}return e})(),iu=new g("");var vR={provide:iu,useExisting:Te(()=>BE),multi:!0};function yR(){let e=pt()?pt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var _R=new g(""),BE=(()=>{class e extends VE{_compositionMode;_composing=!1;constructor(t,r,o){super(t,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!yR())}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||e)(H(Ke),H(B),H(_R,8))};static \u0275dir=N({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,o){r&1&&Gn("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Fe([vR]),W]})}return e})();function Zp(e){return e==null||Kp(e)===0}function Kp(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Jn=new g(""),su=new g(""),bR=/^(?=.{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])?)*$/,NE=class{static min(n){return HE(n)}static max(n){return UE(n)}static required(n){return $E(n)}static requiredTrue(n){return DR(n)}static email(n){return ER(n)}static minLength(n){return CR(n)}static maxLength(n){return wR(n)}static pattern(n){return zE(n)}static nullValidator(n){return Yl()}static compose(n){return KE(n)}static composeAsync(n){return XE(n)}};function HE(e){return n=>{if(n.value==null||e==null)return null;let t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}function UE(e){return n=>{if(n.value==null||e==null)return null;let t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}function $E(e){return Zp(e.value)?{required:!0}:null}function DR(e){return e.value===!0?null:{required:!0}}function ER(e){return Zp(e.value)||bR.test(e.value)?null:{email:!0}}function CR(e){return n=>{let t=n.value?.length??Kp(n.value);return t===null||t===0?null:t<e?{minlength:{requiredLength:e,actualLength:t}}:null}}function wR(e){return n=>{let t=n.value?.length??Kp(n.value);return t!==null&&t>e?{maxlength:{requiredLength:e,actualLength:t}}:null}}function zE(e){if(!e)return Yl;let n,t;return typeof e=="string"?(t="",e.charAt(0)!=="^"&&(t+="^"),t+=e,e.charAt(e.length-1)!=="$"&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Zp(r.value))return null;let o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function Yl(e){return null}function GE(e){return e!=null}function WE(e){return Uo(e)?ct(e):e}function qE(e){let n={};return e.forEach(t=>{n=t!=null?E(E({},n),t):n}),Object.keys(n).length===0?null:n}function YE(e,n){return n.map(t=>t(e))}function IR(e){return!e.validate}function ZE(e){return e.map(n=>IR(n)?n:t=>n.validate(t))}function KE(e){if(!e)return null;let n=e.filter(GE);return n.length==0?null:function(t){return qE(YE(t,n))}}function Xp(e){return e!=null?KE(ZE(e)):null}function XE(e){if(!e)return null;let n=e.filter(GE);return n.length==0?null:function(t){let r=YE(t,n).map(WE);return vi(r).pipe(Q(qE))}}function Qp(e){return e!=null?XE(ZE(e)):null}function RE(e,n){return e===null?[n]:Array.isArray(e)?[...e,n]:[e,n]}function QE(e){return e._rawValidators}function JE(e){return e._rawAsyncValidators}function qp(e){return e?Array.isArray(e)?e:[e]:[]}function Zl(e,n){return Array.isArray(e)?e.includes(n):e===n}function OE(e,n){let t=qp(n);return qp(e).forEach(o=>{Zl(t,o)||t.push(o)}),t}function kE(e,n){return qp(n).filter(t=>!Zl(e,t))}var Kl=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(n){this._rawValidators=n||[],this._composedValidatorFn=Xp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Qp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,t){return this.control?this.control.hasError(n,t):!1}getError(n,t){return this.control?this.control.getError(n,t):null}},qr=class extends Kl{name;get formDirective(){return null}get path(){return null}},Yr=class extends Kl{_parent=null;name=null;valueAccessor=null},Yp=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var $Y=(()=>{class e extends Yp{constructor(t){super(t)}static \u0275fac=function(r){return new(r||e)(H(Yr,2))};static \u0275dir=N({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&De("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[W]})}return e})();var zs="VALID",ql="INVALID",si="PENDING",Gs="DISABLED",Qn=class{},Xl=class extends Qn{value;source;constructor(n,t){super(),this.value=n,this.source=t}},qs=class extends Qn{pristine;source;constructor(n,t){super(),this.pristine=n,this.source=t}},Ys=class extends Qn{touched;source;constructor(n,t){super(),this.touched=n,this.source=t}},ai=class extends Qn{status;source;constructor(n,t){super(),this.status=n,this.source=t}},Ql=class extends Qn{source;constructor(n){super(),this.source=n}},Jl=class extends Qn{source;constructor(n){super(),this.source=n}};function eC(e){return(au(e)?e.validators:e)||null}function SR(e){return Array.isArray(e)?Xp(e):e||null}function tC(e,n){return(au(n)?n.asyncValidators:e)||null}function MR(e){return Array.isArray(e)?Qp(e):e||null}function au(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function TR(e,n,t){let r=e.controls;if(!(n?Object.keys(r):r).length)throw new b(1e3,"");if(!r[t])throw new b(1001,"")}function xR(e,n,t){e._forEachChild((r,o)=>{if(t[o]===void 0)throw new b(-1002,"")})}var eu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,t){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 status(){return le(this.statusReactive)}set status(n){le(()=>this.statusReactive.set(n))}_status=Qe(()=>this.statusReactive());statusReactive=ae(void 0);get valid(){return this.status===zs}get invalid(){return this.status===ql}get pending(){return this.status===si}get disabled(){return this.status===Gs}get enabled(){return this.status!==Gs}errors;get pristine(){return le(this.pristineReactive)}set pristine(n){le(()=>this.pristineReactive.set(n))}_pristine=Qe(()=>this.pristineReactive());pristineReactive=ae(!0);get dirty(){return!this.pristine}get touched(){return le(this.touchedReactive)}set touched(n){le(()=>this.touchedReactive.set(n))}_touched=Qe(()=>this.touchedReactive());touchedReactive=ae(!1);get untouched(){return!this.touched}_events=new w;events=this._events.asObservable();valueChanges;statusChanges;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(OE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(OE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(kE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(kE(n,this._rawAsyncValidators))}hasValidator(n){return Zl(this._rawValidators,n)}hasAsyncValidator(n){return Zl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let t=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(U(E({},n),{sourceControl:r})),t&&n.emitEvent!==!1&&this._events.next(new Ys(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),n.onlySelf||this._parent?._updateTouched(n,r),t&&n.emitEvent!==!1&&this._events.next(new Ys(!1,r))}markAsDirty(n={}){let t=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(U(E({},n),{sourceControl:r})),t&&n.emitEvent!==!1&&this._events.next(new qs(!1,r))}markAsPristine(n={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,r),t&&n.emitEvent!==!1&&this._events.next(new qs(!0,r))}markAsPending(n={}){this.status=si;let t=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new ai(this.status,t)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(U(E({},n),{sourceControl:t}))}disable(n={}){let t=this._parentMarkedDirty(n.onlySelf);this.status=Gs,this.errors=null,this._forEachChild(o=>{o.disable(U(E({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Xl(this.value,r)),this._events.next(new ai(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(E({},n),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let t=this._parentMarkedDirty(n.onlySelf);this.status=zs,this._forEachChild(r=>{r.enable(U(E({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(U(E({},n),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){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){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zs||this.status===si)&&this._runAsyncValidator(r,n.emitEvent)}let t=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Xl(this.value,t)),this._events.next(new ai(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(U(E({},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()?Gs:zs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:n!==!1};let r=WE(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(n){let t=n;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){let r=t?this.get(t):this;return 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 ai(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new $,this.statusChanges=new $}_calculateStatus(){return this._allControlsDisabled()?Gs:this.errors?ql:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(ql)?ql:zs}_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){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,n.onlySelf||this._parent?._updatePristine(n,t),o&&this._events.next(new qs(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Ys(this.touched,t)),n.onlySelf||this._parent?._updateTouched(n,t)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){au(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=SR(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=MR(this._rawAsyncValidators)}},tu=class extends eu{constructor(n,t,r){super(eC(t),tC(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;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={}){xR(this,!0,n),Object.keys(n).forEach(r=>{TR(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){n!=null&&(Object.keys(n).forEach(r=>{let o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,U(E({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new Jl(this))}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>r._syncPendingControls()?!0:t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{let 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(let[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_allControlsDisabled(){for(let 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}};var ci=new g("",{factory:()=>cu}),cu="always";function AR(e,n){return[...n.path,e]}function Zs(e,n,t=cu){Jp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||t==="always")&&n.valueAccessor.setDisabledState?.(e.disabled),RR(e,n),kR(e,n),OR(e,n),NR(e,n)}function nu(e,n,t=!0){let r=()=>{};n?.valueAccessor?.registerOnChange(r),n?.valueAccessor?.registerOnTouched(r),ou(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ru(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function NR(e,n){if(n.valueAccessor.setDisabledState){let t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}function Jp(e,n){let t=QE(e);n.validator!==null?e.setValidators(RE(t,n.validator)):typeof t=="function"&&e.setValidators([t]);let r=JE(e);n.asyncValidator!==null?e.setAsyncValidators(RE(r,n.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();ru(n._rawValidators,o),ru(n._rawAsyncValidators,o)}function ou(e,n){let t=!1;if(e!==null){if(n.validator!==null){let o=QE(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.validator);i.length!==o.length&&(t=!0,e.setValidators(i))}}if(n.asyncValidator!==null){let o=JE(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(t=!0,e.setAsyncValidators(i))}}}let r=()=>{};return ru(n._rawValidators,r),ru(n._rawAsyncValidators,r),t}function RR(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&nC(e,n)})}function OR(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&nC(e,n),e.updateOn!=="submit"&&e.markAsTouched()})}function nC(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function kR(e,n){let t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}function rC(e,n){e==null,Jp(e,n)}function FR(e,n){return ou(e,n)}function oC(e,n){if(!e.hasOwnProperty("model"))return!1;let t=e.model;return t.isFirstChange()?!0:!Object.is(n,t.currentValue)}function PR(e){return Object.getPrototypeOf(e.constructor)===jE}function iC(e,n){e._syncPendingControls(),n.forEach(t=>{let r=t.control;r.updateOn==="submit"&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function sC(e,n){if(!n)return null;Array.isArray(n);let t,r,o;return n.forEach(i=>{i.constructor===BE?t=i:PR(i)?r=i:o=i}),o||r||t||null}function LR(e,n){let t=e.indexOf(n);t>-1&&e.splice(t,1)}var VR={provide:qr,useExisting:Te(()=>jR)},Ws=Promise.resolve(),jR=(()=>{class e extends qr{callSetDisabledState;get submitted(){return le(this.submittedReactive)}_submitted=Qe(()=>this.submittedReactive());submittedReactive=ae(!1);_directives=new Set;form;ngSubmit=new $;options;constructor(t,r,o){super(),this.callSetDisabledState=o,this.form=new tu({},Xp(t),Qp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ws.then(()=>{let r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Zs(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ws.then(()=>{this._findContainer(t.path)?.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ws.then(()=>{let r=this._findContainer(t.path),o=new tu({});rC(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ws.then(()=>{this._findContainer(t.path)?.removeControl?.(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Ws.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),iC(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new Ql(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(r){return new(r||e)(H(Jn,10),H(su,10),H(ci,8))};static \u0275dir=N({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&Gn("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Fe([VR]),W]})}return e})();function FE(e,n){let t=e.indexOf(n);t>-1&&e.splice(t,1)}function PE(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var aC=class extends eu{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,t,r){super(eC(t),tC(r,t)),this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),au(t)&&(t.nonNullable||t.initialValueIsDefault)&&(PE(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,t.emitViewToModelChange!==!1)),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),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new Jl(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){FE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){FE(this._onDisabledChange,n)}_forEachChild(n){}_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(n){PE(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}};var BR=e=>e instanceof aC;var HR={provide:Yr,useExisting:Te(()=>UR)},LE=Promise.resolve(),UR=(()=>{class e extends Yr{_changeDetectorRef;callSetDisabledState;control=new aC;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new $;constructor(t,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=sC(this,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),oC(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Zs(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){LE.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,o=r!==0&&oe(r);LE.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?AR(t,this._parent):[t]}static \u0275fac=function(r){return new(r||e)(H(qr,9),H(Jn,10),H(su,10),H(iu,10),H(Pr,8),H(ci,8))};static \u0275dir=N({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"],standalone:!1,features:[Fe([HR]),W,He]})}return e})();var $R={provide:iu,useExisting:Te(()=>zR),multi:!0},zR=(()=>{class e extends jE{writeValue(t){let r=t??"";this.setProperty("value",r)}registerOnChange(t){this.onChange=r=>{t(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&Gn("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Fe([$R]),W]})}return e})();var GR=(()=>{class e extends qr{callSetDisabledState;get submitted(){return le(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=Qe(()=>this._submittedReactive());_submittedReactive=ae(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(t,r,o){super(),this.callSetDisabledState=o,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&&(ou(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 Zs(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){nu(t.control||null,t,!1),LR(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,iC(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Ql(this.control)),t?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(t=>{let r=t.control,o=this.form.get(t.path);r!==o&&(nu(r||null,t),BR(o)&&(Zs(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let r=this.form.get(t.path);rC(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){let r=this.form?.get(t.path);r&&FR(r,t)&&r.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){Jp(this.form,this),this._oldForm&&ou(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||e)(H(Jn,10),H(su,10),H(ci,8))};static \u0275dir=N({type:e,features:[W,He]})}return e})();var cC=new g(""),WR={provide:Yr,useExisting:Te(()=>qR)},qR=(()=>{class e extends Yr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new $;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,r,o,i,s){super(),this._ngModelWarningConfig=i,this.callSetDisabledState=s,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sC(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let r=t.form.previousValue;r&&nu(r,this,!1),Zs(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}oC(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&nu(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 \u0275fac=function(r){return new(r||e)(H(Jn,10),H(su,10),H(iu,10),H(cC,8),H(ci,8))};static \u0275dir=N({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Fe([WR]),W,He]})}return e})();var YR={provide:qr,useExisting:Te(()=>ZR)},ZR=(()=>{class e extends GR{form=null;ngSubmit=new $;get control(){return this.form}static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&Gn("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Fe([YR]),W]})}return e})();function lC(e){return typeof e=="number"?e:parseFloat(e)}var lu=(()=>{class e{_validator=Yl;_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):Yl,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||e)};static \u0275dir=N({type:e,features:[He]})}return e})(),KR={provide:Jn,useExisting:Te(()=>XR),multi:!0},XR=(()=>{class e extends lu{max;inputName="max";normalizeInput=t=>lC(t);createValidator=t=>UE(t);static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ke("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[Fe([KR]),W]})}return e})(),QR={provide:Jn,useExisting:Te(()=>JR),multi:!0},JR=(()=>{class e extends lu{min;inputName="min";normalizeInput=t=>lC(t);createValidator=t=>HE(t);static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ke("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[Fe([QR]),W]})}return e})(),eO={provide:Jn,useExisting:Te(()=>tO),multi:!0};var tO=(()=>{class e extends lu{required;inputName="required";normalizeInput=oe;createValidator=t=>$E;enabled(t){return t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&ke("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Fe([eO]),W]})}return e})();var nO={provide:Jn,useExisting:Te(()=>rO),multi:!0},rO=(()=>{class e extends lu{pattern;inputName="pattern";normalizeInput=t=>t;createValidator=t=>zE(t);static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ke("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[Fe([nO]),W]})}return e})();var uC=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({})}return e})();var GY=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ci,useValue:t.callSetDisabledState??cu}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({imports:[uC]})}return e})(),WY=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:cC,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ci,useValue:t.callSetDisabledState??cu}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({imports:[uC]})}return e})();export{j as a,R as b,w as c,or as d,gu as e,_u as f,bu as g,mi as h,pe as i,Zt as j,pC as k,Q as l,Cu as m,no as n,gi as o,vi as p,yi as q,FC as r,wu as s,Ce as t,ro as u,_i as v,PC as w,Iu as x,Dn as y,Ge as z,LC as A,ar as B,jC as C,Su as D,Tu as E,Di as F,Vt as G,io as H,Kt as I,En as J,Te as K,y as L,G as M,g as N,T as O,f as P,K as Q,pg as R,mg as S,Mg as T,Tg as U,O as V,x as W,We as X,$ as Y,M as Z,ae as _,Sr as $,He as aa,xe as ba,Ff as ca,B as da,on as ea,UI as fa,$I as ga,zI as ha,qI as ia,Qf as ja,Rt as ka,Ye as la,Se as ma,Ke as na,H as oa,cM as pa,ot as qa,ce as ra,q as sa,N as ta,Hc as ua,W as va,Vo as wa,m_ as xa,Ho as ya,it as za,RT as Aa,OT as Ba,M_ as Ca,ke as Da,FT as Ea,PT as Fa,LT as Ga,VT as Ha,jT as Ia,BT as Ja,T_ as Ka,No as La,ss as Ma,x_ as Na,cn as Oa,ln as Pa,Xe as Qa,Th as Ra,xh as Sa,N_ as Ta,WT as Ua,as as Va,Gn as Wa,O_ as Xa,XT as Ya,Ot as Za,Ae as _a,F_ as $a,$o as ab,ls as bb,us as cb,P_ as db,L_ as eb,e0 as fb,t0 as gb,zc as hb,De as ib,p0 as jb,ds as kb,I0 as lb,K_ as mb,Ah as nb,X_ as ob,J_ as pb,T0 as qb,eb as rb,nb as sb,x0 as tb,A0 as ub,N0 as vb,Fe as wb,F0 as xb,P0 as yb,L0 as zb,V0 as Ab,j0 as Bb,B0 as Cb,U0 as Db,z0 as Eb,G0 as Fb,W0 as Gb,q0 as Hb,fs as Ib,le as Jb,Qe as Kb,Rh as Lb,K0 as Mb,Kc as Nb,A8 as Ob,N8 as Pb,R8 as Qb,O8 as Rb,k8 as Sb,F8 as Tb,P8 as Ub,L8 as Vb,V8 as Wb,Pr as Xb,Qc as Yb,oe as Zb,Eb as _b,B8 as $b,Xx as ac,Qx as bc,tA as cc,nA as dc,zb as ec,gA as fc,qn as gc,ws as hc,_l as ic,$A as jc,zA as kc,Is as lc,se as mc,up as nc,jr as oc,$e as pc,vt as qc,Ko as rc,Ft as sc,gt as tc,hn as uc,VD as vc,As as wc,kl as xc,at as yc,bN as zc,Ns as Ac,Rs as Bc,$r as Cc,UD as Dc,SN as Ec,MN as Fc,Ip as Gc,Sp as Hc,Yt as Ic,ei as Jc,Kn as Kc,ti as Lc,Fl as Mc,_q as Nc,ks as Oc,zr as Pc,Zn as Qc,ri as Rc,Rp as Sc,Wr as Tc,Ps as Uc,kp as Vc,Bl as Wc,oi as Xc,Fp as Yc,Ls as Zc,Ap as _c,ON as $c,Vs as ad,Ss as bd,Ms as cd,Zo as dd,YA as ed,Cl as fd,wl as gd,hp as hd,D4 as id,SD as jd,Sl as kd,Ml as ld,lN as md,dN as nd,mp as od,Lp as pd,Vp as qd,iE as rd,M6 as sd,T6 as td,N6 as ud,BN as vd,pn as wd,gp as xd,vp as yd,yp as zd,m5 as Ad,hN as Bd,pN as Cd,T5 as Dd,zl as Ed,WN as Fd,dE as Gd,t9 as Hd,n9 as Id,r9 as Jd,o9 as Kd,vE as Ld,I9 as Md,S9 as Nd,T9 as Od,yt as Pd,Hs as Qd,Up as Rd,z9 as Sd,IE as Td,SE as Ud,dR as Vd,TE as Wd,CY as Xd,wY as Yd,IY as Zd,SY as _d,iu as $d,BE as ae,Jn as be,NE as ce,qr as de,Yr as ee,$Y as fe,jR as ge,aC as he,UR as ie,zR as je,qR as ke,ZR as le,XR as me,JR as ne,tO as oe,rO as pe,GY as qe,WY as re};
1709
+ `],encapsulation:2,changeDetection:0})}return e})(),IY=(()=>{class e extends Us{_options=f(AE,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||$s,this.color=this._options.color||$s.color}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=ce({type:e,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[W],attrs:pR,ngContentSelectors:Wp,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Ot(Gp),Xe(0,"span",0),Ae(1),cn(2,"span",1),Ae(3,1),ln(),Ae(4,2),Xe(5,"span",2)(6,"span",3)),r&2&&De("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[mR],encapsulation:2,changeDetection:0})}return e})();var SY=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({imports:[TE,at]})}return e})();var VE=(()=>{class e{_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||e)(H(Ke),H(B))};static \u0275dir=N({type:e})}return e})(),jE=(()=>{class e extends VE{static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,features:[W]})}return e})(),iu=new g("");var vR={provide:iu,useExisting:Te(()=>BE),multi:!0};function yR(){let e=pt()?pt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var _R=new g(""),BE=(()=>{class e extends VE{_compositionMode;_composing=!1;constructor(t,r,o){super(t,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!yR())}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||e)(H(Ke),H(B),H(_R,8))};static \u0275dir=N({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,o){r&1&&Gn("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Fe([vR]),W]})}return e})();function Zp(e){return e==null||Kp(e)===0}function Kp(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Jn=new g(""),su=new g(""),bR=/^(?=.{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])?)*$/,NE=class{static min(n){return HE(n)}static max(n){return UE(n)}static required(n){return $E(n)}static requiredTrue(n){return DR(n)}static email(n){return ER(n)}static minLength(n){return CR(n)}static maxLength(n){return wR(n)}static pattern(n){return zE(n)}static nullValidator(n){return Yl()}static compose(n){return KE(n)}static composeAsync(n){return XE(n)}};function HE(e){return n=>{if(n.value==null||e==null)return null;let t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}function UE(e){return n=>{if(n.value==null||e==null)return null;let t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}function $E(e){return Zp(e.value)?{required:!0}:null}function DR(e){return e.value===!0?null:{required:!0}}function ER(e){return Zp(e.value)||bR.test(e.value)?null:{email:!0}}function CR(e){return n=>{let t=n.value?.length??Kp(n.value);return t===null||t===0?null:t<e?{minlength:{requiredLength:e,actualLength:t}}:null}}function wR(e){return n=>{let t=n.value?.length??Kp(n.value);return t!==null&&t>e?{maxlength:{requiredLength:e,actualLength:t}}:null}}function zE(e){if(!e)return Yl;let n,t;return typeof e=="string"?(t="",e.charAt(0)!=="^"&&(t+="^"),t+=e,e.charAt(e.length-1)!=="$"&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Zp(r.value))return null;let o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function Yl(e){return null}function GE(e){return e!=null}function WE(e){return Uo(e)?ct(e):e}function qE(e){let n={};return e.forEach(t=>{n=t!=null?E(E({},n),t):n}),Object.keys(n).length===0?null:n}function YE(e,n){return n.map(t=>t(e))}function IR(e){return!e.validate}function ZE(e){return e.map(n=>IR(n)?n:t=>n.validate(t))}function KE(e){if(!e)return null;let n=e.filter(GE);return n.length==0?null:function(t){return qE(YE(t,n))}}function Xp(e){return e!=null?KE(ZE(e)):null}function XE(e){if(!e)return null;let n=e.filter(GE);return n.length==0?null:function(t){let r=YE(t,n).map(WE);return vi(r).pipe(Q(qE))}}function Qp(e){return e!=null?XE(ZE(e)):null}function RE(e,n){return e===null?[n]:Array.isArray(e)?[...e,n]:[e,n]}function QE(e){return e._rawValidators}function JE(e){return e._rawAsyncValidators}function qp(e){return e?Array.isArray(e)?e:[e]:[]}function Zl(e,n){return Array.isArray(e)?e.includes(n):e===n}function OE(e,n){let t=qp(n);return qp(e).forEach(o=>{Zl(t,o)||t.push(o)}),t}function kE(e,n){return qp(n).filter(t=>!Zl(e,t))}var Kl=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(n){this._rawValidators=n||[],this._composedValidatorFn=Xp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Qp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,t){return this.control?this.control.hasError(n,t):!1}getError(n,t){return this.control?this.control.getError(n,t):null}},qr=class extends Kl{name;get formDirective(){return null}get path(){return null}},Yr=class extends Kl{_parent=null;name=null;valueAccessor=null},Yp=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var $Y=(()=>{class e extends Yp{constructor(t){super(t)}static \u0275fac=function(r){return new(r||e)(H(Yr,2))};static \u0275dir=N({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&De("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[W]})}return e})();var zs="VALID",ql="INVALID",si="PENDING",Gs="DISABLED",Qn=class{},Xl=class extends Qn{value;source;constructor(n,t){super(),this.value=n,this.source=t}},qs=class extends Qn{pristine;source;constructor(n,t){super(),this.pristine=n,this.source=t}},Ys=class extends Qn{touched;source;constructor(n,t){super(),this.touched=n,this.source=t}},ai=class extends Qn{status;source;constructor(n,t){super(),this.status=n,this.source=t}},Ql=class extends Qn{source;constructor(n){super(),this.source=n}},Jl=class extends Qn{source;constructor(n){super(),this.source=n}};function eC(e){return(au(e)?e.validators:e)||null}function SR(e){return Array.isArray(e)?Xp(e):e||null}function tC(e,n){return(au(n)?n.asyncValidators:e)||null}function MR(e){return Array.isArray(e)?Qp(e):e||null}function au(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function TR(e,n,t){let r=e.controls;if(!(n?Object.keys(r):r).length)throw new b(1e3,"");if(!r[t])throw new b(1001,"")}function xR(e,n,t){e._forEachChild((r,o)=>{if(t[o]===void 0)throw new b(-1002,"")})}var eu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,t){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 status(){return le(this.statusReactive)}set status(n){le(()=>this.statusReactive.set(n))}_status=Qe(()=>this.statusReactive());statusReactive=ae(void 0);get valid(){return this.status===zs}get invalid(){return this.status===ql}get pending(){return this.status===si}get disabled(){return this.status===Gs}get enabled(){return this.status!==Gs}errors;get pristine(){return le(this.pristineReactive)}set pristine(n){le(()=>this.pristineReactive.set(n))}_pristine=Qe(()=>this.pristineReactive());pristineReactive=ae(!0);get dirty(){return!this.pristine}get touched(){return le(this.touchedReactive)}set touched(n){le(()=>this.touchedReactive.set(n))}_touched=Qe(()=>this.touchedReactive());touchedReactive=ae(!1);get untouched(){return!this.touched}_events=new w;events=this._events.asObservable();valueChanges;statusChanges;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(OE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(OE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(kE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(kE(n,this._rawAsyncValidators))}hasValidator(n){return Zl(this._rawValidators,n)}hasAsyncValidator(n){return Zl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let t=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(U(E({},n),{sourceControl:r})),t&&n.emitEvent!==!1&&this._events.next(new Ys(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(n))}markAsUntouched(n={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),n.onlySelf||this._parent?._updateTouched(n,r),t&&n.emitEvent!==!1&&this._events.next(new Ys(!1,r))}markAsDirty(n={}){let t=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(U(E({},n),{sourceControl:r})),t&&n.emitEvent!==!1&&this._events.next(new qs(!1,r))}markAsPristine(n={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,r),t&&n.emitEvent!==!1&&this._events.next(new qs(!0,r))}markAsPending(n={}){this.status=si;let t=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new ai(this.status,t)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(U(E({},n),{sourceControl:t}))}disable(n={}){let t=this._parentMarkedDirty(n.onlySelf);this.status=Gs,this.errors=null,this._forEachChild(o=>{o.disable(U(E({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Xl(this.value,r)),this._events.next(new ai(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(E({},n),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let t=this._parentMarkedDirty(n.onlySelf);this.status=zs,this._forEachChild(r=>{r.enable(U(E({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(U(E({},n),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,t){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){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zs||this.status===si)&&this._runAsyncValidator(r,n.emitEvent)}let t=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Xl(this.value,t)),this._events.next(new ai(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(U(E({},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()?Gs:zs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,t){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:n!==!1};let r=WE(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(n){let t=n;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){let r=t?this.get(t):this;return 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 ai(this.status,t)),this._parent&&this._parent._updateControlsErrors(n,t,r)}_initObservables(){this.valueChanges=new $,this.statusChanges=new $}_calculateStatus(){return this._allControlsDisabled()?Gs:this.errors?ql:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(ql)?ql:zs}_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){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,n.onlySelf||this._parent?._updatePristine(n,t),o&&this._events.next(new qs(this.pristine,t))}_updateTouched(n={},t){this.touched=this._anyControlsTouched(),this._events.next(new Ys(this.touched,t)),n.onlySelf||this._parent?._updateTouched(n,t)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){au(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=SR(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=MR(this._rawAsyncValidators)}},tu=class extends eu{constructor(n,t,r){super(eC(t),tC(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;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={}){xR(this,!0,n),Object.keys(n).forEach(r=>{TR(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){n!=null&&(Object.keys(n).forEach(r=>{let o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,U(E({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new Jl(this))}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>r._syncPendingControls()?!0:t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{let 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(let[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_allControlsDisabled(){for(let 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}};var ci=new g("",{factory:()=>cu}),cu="always";function AR(e,n){return[...n.path,e]}function Zs(e,n,t=cu){Jp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||t==="always")&&n.valueAccessor.setDisabledState?.(e.disabled),RR(e,n),kR(e,n),OR(e,n),NR(e,n)}function nu(e,n,t=!0){let r=()=>{};n?.valueAccessor?.registerOnChange(r),n?.valueAccessor?.registerOnTouched(r),ou(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function ru(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function NR(e,n){if(n.valueAccessor.setDisabledState){let t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}function Jp(e,n){let t=QE(e);n.validator!==null?e.setValidators(RE(t,n.validator)):typeof t=="function"&&e.setValidators([t]);let r=JE(e);n.asyncValidator!==null?e.setAsyncValidators(RE(r,n.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();ru(n._rawValidators,o),ru(n._rawAsyncValidators,o)}function ou(e,n){let t=!1;if(e!==null){if(n.validator!==null){let o=QE(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.validator);i.length!==o.length&&(t=!0,e.setValidators(i))}}if(n.asyncValidator!==null){let o=JE(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(t=!0,e.setAsyncValidators(i))}}}let r=()=>{};return ru(n._rawValidators,r),ru(n._rawAsyncValidators,r),t}function RR(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&nC(e,n)})}function OR(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&nC(e,n),e.updateOn!=="submit"&&e.markAsTouched()})}function nC(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function kR(e,n){let t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}function rC(e,n){e==null,Jp(e,n)}function FR(e,n){return ou(e,n)}function oC(e,n){if(!e.hasOwnProperty("model"))return!1;let t=e.model;return t.isFirstChange()?!0:!Object.is(n,t.currentValue)}function PR(e){return Object.getPrototypeOf(e.constructor)===jE}function iC(e,n){e._syncPendingControls(),n.forEach(t=>{let r=t.control;r.updateOn==="submit"&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function sC(e,n){if(!n)return null;Array.isArray(n);let t,r,o;return n.forEach(i=>{i.constructor===BE?t=i:PR(i)?r=i:o=i}),o||r||t||null}function LR(e,n){let t=e.indexOf(n);t>-1&&e.splice(t,1)}var VR={provide:qr,useExisting:Te(()=>jR)},Ws=Promise.resolve(),jR=(()=>{class e extends qr{callSetDisabledState;get submitted(){return le(this.submittedReactive)}_submitted=Qe(()=>this.submittedReactive());submittedReactive=ae(!1);_directives=new Set;form;ngSubmit=new $;options;constructor(t,r,o){super(),this.callSetDisabledState=o,this.form=new tu({},Xp(t),Qp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ws.then(()=>{let r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Zs(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ws.then(()=>{this._findContainer(t.path)?.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ws.then(()=>{let r=this._findContainer(t.path),o=new tu({});rC(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ws.then(()=>{this._findContainer(t.path)?.removeControl?.(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Ws.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),iC(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new Ql(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(r){return new(r||e)(H(Jn,10),H(su,10),H(ci,8))};static \u0275dir=N({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&Gn("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Fe([VR]),W]})}return e})();function FE(e,n){let t=e.indexOf(n);t>-1&&e.splice(t,1)}function PE(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var aC=class extends eu{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,t,r){super(eC(t),tC(r,t)),this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),au(t)&&(t.nonNullable||t.initialValueIsDefault)&&(PE(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,t.emitViewToModelChange!==!1)),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),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new Jl(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){FE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){FE(this._onDisabledChange,n)}_forEachChild(n){}_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(n){PE(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}};var BR=e=>e instanceof aC;var HR={provide:Yr,useExisting:Te(()=>UR)},LE=Promise.resolve(),UR=(()=>{class e extends Yr{_changeDetectorRef;callSetDisabledState;control=new aC;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new $;constructor(t,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=sC(this,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),oC(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Zs(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){LE.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,o=r!==0&&oe(r);LE.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?AR(t,this._parent):[t]}static \u0275fac=function(r){return new(r||e)(H(qr,9),H(Jn,10),H(su,10),H(iu,10),H(Pr,8),H(ci,8))};static \u0275dir=N({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"],standalone:!1,features:[Fe([HR]),W,He]})}return e})();var $R={provide:iu,useExisting:Te(()=>zR),multi:!0},zR=(()=>{class e extends jE{writeValue(t){let r=t??"";this.setProperty("value",r)}registerOnChange(t){this.onChange=r=>{t(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&Gn("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Fe([$R]),W]})}return e})();var GR=(()=>{class e extends qr{callSetDisabledState;get submitted(){return le(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=Qe(()=>this._submittedReactive());_submittedReactive=ae(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(t,r,o){super(),this.callSetDisabledState=o,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&&(ou(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 Zs(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){nu(t.control||null,t,!1),LR(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,iC(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Ql(this.control)),t?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(t=>{let r=t.control,o=this.form.get(t.path);r!==o&&(nu(r||null,t),BR(o)&&(Zs(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let r=this.form.get(t.path);rC(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){let r=this.form?.get(t.path);r&&FR(r,t)&&r.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){Jp(this.form,this),this._oldForm&&ou(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||e)(H(Jn,10),H(su,10),H(ci,8))};static \u0275dir=N({type:e,features:[W,He]})}return e})();var cC=new g(""),WR={provide:Yr,useExisting:Te(()=>qR)},qR=(()=>{class e extends Yr{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new $;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,r,o,i,s){super(),this._ngModelWarningConfig=i,this.callSetDisabledState=s,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sC(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let r=t.form.previousValue;r&&nu(r,this,!1),Zs(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}oC(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&nu(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 \u0275fac=function(r){return new(r||e)(H(Jn,10),H(su,10),H(iu,10),H(cC,8),H(ci,8))};static \u0275dir=N({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Fe([WR]),W,He]})}return e})();var YR={provide:qr,useExisting:Te(()=>ZR)},ZR=(()=>{class e extends GR{form=null;ngSubmit=new $;get control(){return this.form}static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&Gn("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Fe([YR]),W]})}return e})();function lC(e){return typeof e=="number"?e:parseFloat(e)}var lu=(()=>{class e{_validator=Yl;_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):Yl,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||e)};static \u0275dir=N({type:e,features:[He]})}return e})(),KR={provide:Jn,useExisting:Te(()=>XR),multi:!0},XR=(()=>{class e extends lu{max;inputName="max";normalizeInput=t=>lC(t);createValidator=t=>UE(t);static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ke("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[Fe([KR]),W]})}return e})(),QR={provide:Jn,useExisting:Te(()=>JR),multi:!0},JR=(()=>{class e extends lu{min;inputName="min";normalizeInput=t=>lC(t);createValidator=t=>HE(t);static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ke("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[Fe([QR]),W]})}return e})(),eO={provide:Jn,useExisting:Te(()=>tO),multi:!0};var tO=(()=>{class e extends lu{required;inputName="required";normalizeInput=oe;createValidator=t=>$E;enabled(t){return t}static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&ke("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Fe([eO]),W]})}return e})();var nO={provide:Jn,useExisting:Te(()=>rO),multi:!0},rO=(()=>{class e extends lu{pattern;inputName="pattern";normalizeInput=t=>t;createValidator=t=>zE(t);static \u0275fac=(()=>{let t;return function(o){return(t||(t=xe(e)))(o||e)}})();static \u0275dir=N({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&ke("pattern",o._enabled?o.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[Fe([nO]),W]})}return e})();var uC=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({})}return e})();var GY=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:ci,useValue:t.callSetDisabledState??cu}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({imports:[uC]})}return e})(),WY=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:cC,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:ci,useValue:t.callSetDisabledState??cu}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=q({type:e});static \u0275inj=G({imports:[uC]})}return e})();export{j as a,R as b,w as c,or as d,gu as e,_u as f,bu as g,mi as h,pe as i,Zt as j,pC as k,Q as l,Cu as m,no as n,gi as o,vi as p,yi as q,FC as r,wu as s,Ce as t,ro as u,_i as v,PC as w,Iu as x,Dn as y,Ge as z,LC as A,ar as B,oo as C,jC as D,Su as E,Tu as F,Di as G,Vt as H,io as I,Kt as J,En as K,Te as L,y as M,G as N,g as O,T as P,f as Q,K as R,pg as S,mg as T,Mg as U,Tg as V,O as W,x as X,We as Y,$ as Z,M as _,ae as $,Sr as aa,He as ba,xe as ca,Ff as da,B as ea,on as fa,UI as ga,$I as ha,zI as ia,qI as ja,Qf as ka,Rt as la,Ye as ma,Se as na,Ke as oa,H as pa,cM as qa,ot as ra,ce as sa,q as ta,N as ua,Hc as va,W as wa,Vo as xa,m_ as ya,Ho as za,it as Aa,RT as Ba,OT as Ca,M_ as Da,ke as Ea,FT as Fa,PT as Ga,LT as Ha,VT as Ia,jT as Ja,BT as Ka,T_ as La,No as Ma,ss as Na,x_ as Oa,cn as Pa,ln as Qa,Xe as Ra,Th as Sa,xh as Ta,N_ as Ua,WT as Va,as as Wa,Gn as Xa,O_ as Ya,XT as Za,Ot as _a,Ae as $a,F_ as ab,$o as bb,ls as cb,us as db,P_ as eb,L_ as fb,e0 as gb,t0 as hb,zc as ib,De as jb,p0 as kb,ds as lb,I0 as mb,K_ as nb,Ah as ob,X_ as pb,J_ as qb,T0 as rb,eb as sb,nb as tb,x0 as ub,A0 as vb,N0 as wb,Fe as xb,F0 as yb,P0 as zb,L0 as Ab,V0 as Bb,j0 as Cb,B0 as Db,U0 as Eb,z0 as Fb,G0 as Gb,W0 as Hb,q0 as Ib,fs as Jb,le as Kb,Qe as Lb,Rh as Mb,K0 as Nb,Kc as Ob,A8 as Pb,N8 as Qb,R8 as Rb,O8 as Sb,k8 as Tb,F8 as Ub,P8 as Vb,L8 as Wb,V8 as Xb,Pr as Yb,Qc as Zb,oe as _b,Eb as $b,B8 as ac,Xx as bc,Qx as cc,tA as dc,nA as ec,zb as fc,gA as gc,qn as hc,ws as ic,_l as jc,$A as kc,zA as lc,Is as mc,se as nc,up as oc,jr as pc,$e as qc,vt as rc,Ko as sc,Ft as tc,gt as uc,hn as vc,VD as wc,As as xc,kl as yc,at as zc,bN as Ac,Ns as Bc,Rs as Cc,$r as Dc,UD as Ec,SN as Fc,MN as Gc,Ip as Hc,Sp as Ic,Yt as Jc,ei as Kc,Kn as Lc,ti as Mc,Fl as Nc,_q as Oc,ks as Pc,zr as Qc,Zn as Rc,ri as Sc,Rp as Tc,Wr as Uc,Ps as Vc,kp as Wc,Bl as Xc,oi as Yc,Fp as Zc,Ls as _c,Ap as $c,ON as ad,Vs as bd,Ss as cd,Ms as dd,Zo as ed,YA as fd,Cl as gd,wl as hd,hp as id,D4 as jd,SD as kd,Sl as ld,Ml as md,lN as nd,dN as od,mp as pd,Lp as qd,Vp as rd,iE as sd,M6 as td,T6 as ud,N6 as vd,BN as wd,pn as xd,gp as yd,vp as zd,yp as Ad,m5 as Bd,hN as Cd,pN as Dd,T5 as Ed,zl as Fd,WN as Gd,dE as Hd,t9 as Id,n9 as Jd,r9 as Kd,o9 as Ld,vE as Md,I9 as Nd,S9 as Od,T9 as Pd,yt as Qd,Hs as Rd,Up as Sd,z9 as Td,IE as Ud,SE as Vd,dR as Wd,TE as Xd,CY as Yd,wY as Zd,IY as _d,SY as $d,iu as ae,BE as be,Jn as ce,NE as de,qr as ee,Yr as fe,$Y as ge,jR as he,aC as ie,UR as je,zR as ke,qR as le,ZR as me,XR as ne,JR as oe,tO as pe,rO as qe,GY as re,WY as se};
@@ -1 +1 @@
1
- import{L as f,c as u,wc as o}from"./chunk-BCS6VHKX.js";var d=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new u;constructor(e=!1,t,s=!0,n){this._multiple=e,this._emitChanges=s,this.compareWith=n,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,s=new Set(e.map(i=>this._getConcreteValue(i)));e.forEach(i=>this._markSelected(i)),t.filter(i=>!s.has(this._getConcreteValue(i,s))).forEach(i=>this._unmarkSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}else return e}};var p=(()=>{class r{_listeners=[];notify(t,s){for(let n of this._listeners)n(t,s)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(s=>t!==s)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(s){return new(s||r)};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var g=class{applyChanges(e,t,s,n,i){e.forEachOperation((c,a,_)=>{let h,l;if(c.previousIndex==null){let m=s(c,a,_);h=t.createEmbeddedView(m.templateRef,m.context,m.index),l=o.INSERTED}else _==null?(t.remove(a),l=o.REMOVED):(h=t.get(a),t.move(h,_),l=o.MOVED);i&&i({context:h?.context,operation:l,record:c})})}detach(){}};export{d as a,p as b,g as c};
1
+ import{M as f,c as u,xc as o}from"./chunk-DBGL657U.js";var d=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new u;constructor(e=!1,t,s=!0,n){this._multiple=e,this._emitChanges=s,this.compareWith=n,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,s=new Set(e.map(i=>this._getConcreteValue(i)));e.forEach(i=>this._markSelected(i)),t.filter(i=>!s.has(this._getConcreteValue(i,s))).forEach(i=>this._unmarkSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}else return e}};var p=(()=>{class r{_listeners=[];notify(t,s){for(let n of this._listeners)n(t,s)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(s=>t!==s)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(s){return new(s||r)};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var g=class{applyChanges(e,t,s,n,i){e.forEachOperation((c,a,_)=>{let h,l;if(c.previousIndex==null){let m=s(c,a,_);h=t.createEmbeddedView(m.templateRef,m.context,m.index),l=o.INSERTED}else _==null?(t.remove(a),l=o.REMOVED):(h=t.get(a),t.move(h,_),l=o.MOVED);i&&i({context:h?.context,operation:l,record:c})})}detach(){}};export{d as a,p as b,g as c};
@@ -0,0 +1 @@
1
+ import{Ta as a}from"./chunk-5UXNTYSY.js";import"./chunk-VAI3YHUS.js";import"./chunk-3LS56QZI.js";import"./chunk-IQZW2T75.js";import"./chunk-LNNAK44C.js";import"./chunk-3HSIX7SC.js";import"./chunk-XUGRUSQE.js";import"./chunk-JWBOMKMB.js";import"./chunk-ZU72P2HZ.js";import"./chunk-DX34XOH2.js";import"./chunk-DBGL657U.js";import"./chunk-NCEQPEJE.js";export{a as Trail2RouteDialog};
@@ -1,4 +1,4 @@
1
- import{a as It,b as Nt,c as Bt,d as Vt}from"./chunk-R7YVRRY3.js";import{a as Mt,b as Ft,c as Tt,d as Ot,e as Et,g as Pt}from"./chunk-RRYFRHFP.js";import{a as St}from"./chunk-BJKB23AZ.js";import{e as Ct,f as vt,i as Dt,j as xt,n as bt,o as kt}from"./chunk-GBMW6IJP.js";import{c as Rt}from"./chunk-USYMWMPO.js";import{$ as Ke,$a as ke,Cc as rt,Da as W,Db as Ye,Dc as at,Ea as y,Ed as dt,Fa as C,Fb as Xe,Ga as De,Hc as st,I as Q,Ia as xe,Ja as be,Ka as P,Kb as ae,Kd as ut,La as s,M as de,Ma as l,Md as mt,N as ve,Na as ee,Nb as Ge,Nd as ft,P as d,R as g,Ra as K,S as w,Sa as Y,Ta as S,Ua as T,V as qe,Vd as ht,W as Qe,Wa as k,Xb as Ze,Y as We,Ya as u,Yb as te,Za as fe,Zb as A,_ as j,_a as $,_d as _t,aa as ue,ae as pt,ba as E,bb as L,c as Z,cb as U,cc as Je,d as ze,da as B,f as Le,fe as gt,g as Ue,ga as ie,hb as re,i as Ce,ib as q,ie as wt,j as je,ja as c,ka as oe,la as H,lb as f,m as ce,mb as R,mc as et,md as lt,nb as X,od as ct,qa as J,qe as yt,ra as V,sa as me,ta as p,u as $e,uc as tt,va as b,vc as he,wa as z,wb as I,wc as nt,xc as it,yc as ot}from"./chunk-BCS6VHKX.js";import{g as He}from"./chunk-NCEQPEJE.js";var rn=[[["caption"]],[["colgroup"],["col"]],"*"],an=["caption","colgroup, col","*"];function sn(n,o){n&1&&$(0,2)}function ln(n,o){n&1&&(s(0,"thead",0),S(1,1),l(),s(2,"tbody",0),S(3,2)(4,3),l(),s(5,"tfoot",0),S(6,4),l())}function cn(n,o){n&1&&S(0,1)(1,2)(2,3)(3,4)}var N=new ve("CDK_TABLE");var ge=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellDef",""]]})}return n})(),we=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderCellDef",""]]})}return n})(),Lt=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterCellDef",""]]})}return n})(),ne=(()=>{class n{_table=d(N,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,ge,5)(r,we,5)(r,Lt,5),t&2){let a;L(a=U())&&(i.cell=a.first),L(a=U())&&(i.headerCell=a.first),L(a=U())&&(i.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",A],stickyEnd:[2,"stickyEnd","stickyEnd",A]}})}return n})(),pe=class{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}},Ut=(()=>{class n extends pe{constructor(){super(d(ne),d(B))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[b]})}return n})();var jt=(()=>{class n extends pe{constructor(){let e=d(ne),t=d(B);super(e,t);let i=e._table?._getCellRole();i&&t.nativeElement.setAttribute("role",i)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[b]})}return n})();var Se=(()=>{class n{template=d(H);_differs=d(te);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof le?e.headerCell.template:this instanceof Me?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,features:[ue]})}return n})(),le=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),Me=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),ye=(()=>{class n extends Se{_table=d(N,{optional:!0});when;constructor(){super(d(H),d(te))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[b]})}return n})(),G=(()=>{class n{_viewContainer=d(J);cells;context;static mostRecentCellOutlet=null;constructor(){n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellOutlet",""]]})}return n})(),Fe=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})();var Te=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})(),$t=(()=>{class n{templateRef=d(H);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["ng-template","cdkNoDataRow",""]]})}return n})(),At=["top","bottom","left","right"],Re=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(o=>this._updateCachedSizes(o)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(o,e,t=!0,i=!0,r,a,m){this._isNativeHtmlTable=o,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=i,this.direction=r,this._positionListener=a,this._tableInjector=m,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(o);let t=[];for(let i of o)i.nodeType===i.ELEMENT_NODE&&t.push(i,...Array.from(i.children));oe({write:()=>{for(let i of t)this._removeStickyStyle(i,e)}},{injector:this._tableInjector})}updateStickyColumns(o,e,t,i=!0,r=!0){if(!o.length||!this._isBrowser||!(e.some(O=>O)||t.some(O=>O))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=o[0],m=a.children.length,h=this.direction==="rtl",_=h?"right":"left",v=h?"left":"right",F=e.lastIndexOf(!0),D=t.indexOf(!0),x,Be,Ve;r&&this._updateStickyColumnReplayQueue({rows:[...o],stickyStartStates:[...e],stickyEndStates:[...t]}),oe({earlyRead:()=>{x=this._getCellWidths(a,i),Be=this._getStickyStartColumnPositions(x,e),Ve=this._getStickyEndColumnPositions(x,t)},write:()=>{for(let O of o)for(let M=0;M<m;M++){let Ae=O.children[M];e[M]&&this._addStickyStyle(Ae,_,Be[M],M===F),t[M]&&this._addStickyStyle(Ae,v,Ve[M],M===D)}this._positionListener&&x.some(O=>!!O)&&(this._positionListener.stickyColumnsUpdated({sizes:F===-1?[]:x.slice(0,F+1).map((O,M)=>e[M]?O:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:x.slice(D).map((O,M)=>t[M+D]?O:null).reverse()}))}},{injector:this._tableInjector})}stickRows(o,e,t){if(!this._isBrowser)return;let i=t==="bottom"?o.slice().reverse():o,r=t==="bottom"?e.slice().reverse():e,a=[],m=[],h=[];oe({earlyRead:()=>{for(let _=0,v=0;_<i.length;_++){if(!r[_])continue;a[_]=v;let F=i[_];h[_]=this._isNativeHtmlTable?Array.from(F.children):[F];let D=this._retrieveElementSize(F).height;v+=D,m[_]=D}},write:()=>{let _=r.lastIndexOf(!0);for(let v=0;v<i.length;v++){if(!r[v])continue;let F=a[v],D=v===_;for(let x of h[v])this._addStickyStyle(x,t,F,D)}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:m,offsets:a,elements:h}):this._positionListener?.stickyFooterRowsUpdated({sizes:m,offsets:a,elements:h})}},{injector:this._tableInjector})}updateStickyFooterContainer(o,e){this._isNativeHtmlTable&&oe({write:()=>{let t=o.querySelector("tfoot");t&&(e.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(o,e){if(!o.classList.contains(this._stickCellCss))return;for(let i of e)o.style[i]="",o.classList.remove(this._borderCellCss[i]);At.some(i=>e.indexOf(i)===-1&&o.style[i])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,i){o.classList.add(this._stickCellCss),i&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){let e={top:100,bottom:10,left:1,right:1},t=0;for(let i of At)o.style[i]&&(t+=e[i]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=o.children;for(let r=0;r<i.length;r++){let a=i[r];t.push(this._retrieveElementSize(a).width)}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(o,e){let t=[],i=0;for(let r=0;r<o.length;r++)e[r]&&(t[r]=i,i+=o[r]);return t}_getStickyEndColumnPositions(o,e){let t=[],i=0;for(let r=o.length;r>0;r--)e[r]&&(t[r]=i,i+=o[r]);return t}_retrieveElementSize(o){let e=this._elemSizeCache.get(o);if(e)return e;let t=o.getBoundingClientRect(),i={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(o,i),this._resizeObserver.observe(o,{box:"border-box"})),i}_updateStickyColumnReplayQueue(o){this._removeFromStickyColumnReplayQueue(o.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(o)}_removeFromStickyColumnReplayQueue(o){let e=new Set(o);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(i=>!e.has(i));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(o){let e=!1;for(let t of o){let i=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};i.width!==this._elemSizeCache.get(t.target)?.width&&dn(t.target)&&(e=!0),this._elemSizeCache.set(t.target,i)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function dn(n){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(o=>n.classList.contains(o))}var se=new ve("STICKY_POSITIONING_LISTENER");var Oe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","rowOutlet",""]]})}return n})(),Ee=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","headerRowOutlet",""]]})}return n})(),Pe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","footerRowOutlet",""]]})}return n})(),Ie=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","noDataRowOutlet",""]]})}return n})(),Ne=(()=>{class n{_differs=d(te);_changeDetectorRef=d(Ze);_elementRef=d(B);_dir=d(tt,{optional:!0});_platform=d(et);_viewRepeater;_viewportRuler=d(rt);_injector=d(qe);_virtualScrollViewport=d(at,{optional:!0,host:!0});_positionListener=d(se,{optional:!0})||d(se,{optional:!0,skipSelf:!0});_document=d(Qe);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new We;viewChange=new ze({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){d(new Ge("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Q(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new it:new Rt,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),he(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(i,r,a)=>this._getEmbeddedViewArgs(i.item,a),i=>i.item.data,i=>{i.operation===nt.INSERTED&&i.context&&this._renderCellTemplateForItem(i.record.item.rowDef,i.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(i=>{let r=t.get(i.currentIndex);r.context.$implicit=i.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._headerRowOutlet,"thead");i&&(i.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._footerRowOutlet,"tfoot");i&&(i.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let m=0;m<t.length;m++)this._renderRows[m].rowDef===r&&a.push(t[m]);this._addStickyColumnStyles(a,r)}),i.forEach((r,a)=>{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],t=Math.min(this._data.length,this._renderedRange.end),i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r<t;r++){let a=this._data[r],m=this._getRenderRowsForData(a,r,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(let h=0;h<m.length;h++){let _=m[h],v=this._cachedRenderRowsMap.get(_.data);v.has(_.rowDef)?v.get(_.rowDef).push(_):v.set(_.rowDef,[_]),e.push(_)}}return e}_getRenderRowsForData(e,t,i){return this._getRowDefs(e,t).map(a=>{let m=i&&i.has(a)?i.get(a):[];if(m.length){let h=m.shift();return h.dataIndex=t,h}else return{data:e,rowDef:a,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_e(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_e(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_e(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_e(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,m)=>{let h=!!m.getColumnsDiff();return a||h},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),t||i||r}_switchDataSource(e){this._data=[],he(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;he(this.dataSource)?e=this.dataSource.connect(this):je(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ce(this.dataSource)),this._renderChangeSubscription=ce([e,this.viewChange]).pipe(Q(this._onDestroy)).subscribe(([t,i])=>{this._data=t||[],this._renderedRange=i,this._dataStream.next(t),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let i=Array.from(t?.columns||[]).map(m=>{let h=this._columnDefsByName.get(m);return h}),r=i.map(m=>m.sticky),a=i.map(m=>m.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let i=0;i<e.viewContainer.length;i++){let r=e.viewContainer.get(i);t.push(r.rootNodes[0])}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return[this._rowDefs[0]];let i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter(r=>!r.when||r.when(t,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(t,e))||this._defaultRowDef;r&&i.push(r)}return i.length,i}_getEmbeddedViewArgs(e,t){let i=e.rowDef,r={$implicit:e.data};return{templateRef:i.template,context:r,index:t}}_renderRow(e,t,i,r={}){let a=e.viewContainer.createEmbeddedView(t.template,r,i);return this._renderCellTemplateForItem(t,r),a}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))G.mostRecentCellOutlet&&G.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t<i;t++){let a=e.get(t).context;a.count=i,a.first=t===0,a.last=t===i-1,a.even=t%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[t].dataIndex,a.renderIndex=t):a.index=this._renderRows[t].dataIndex}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,t=>{let i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,i)=>t||i.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new Re(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:Ce()).pipe(Q(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Ue:Le;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe($e(0,t),Q(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(i,r)=>this._measureRangeSize(i,r)}),ce([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m){let h=r.offsets[a],_=i!==0?Math.max(i-h,h):-h;for(let v of m)v.style.top=`${-_}px`}}}),ce([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m)for(let h of m)h.style.bottom=`${i+r.offsets[a]}px`}})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let i=this._noDataRowOutlet.viewContainer;if(t){let r=i.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let m=a.querySelectorAll(e._cellSelector);for(let h=0;h<m.length;h++)m[h].classList.add(...e._cellClassNames)}}else i.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck()}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let i=this.viewChange.value,r=this._rowOutlet.viewContainer;e.start<i.start||e.end>i.end;let a=e.start-i.start,m=e.end-e.start,h,_;for(let D=0;D<m;D++){let x=r.get(D+a);if(x&&x.rootNodes.length){h=_=x.rootNodes[0];break}}for(let D=m-1;D>-1;D--){let x=r.get(D+a);if(x&&x.rootNodes.length){_=x.rootNodes[x.rootNodes.length-1];break}}let v=h?.getBoundingClientRect?.(),F=_?.getBoundingClientRect?.();return v&&F?F.bottom-v.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,$t,5)(r,ne,5)(r,ye,5)(r,le,5)(r,Me,5),t&2){let a;L(a=U())&&(i._noDataRow=a.first),L(a=U())&&(i._contentColumnDefs=a),L(a=U())&&(i._contentRowDefs=a),L(a=U())&&(i._contentHeaderRowDefs=a),L(a=U())&&(i._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){t&2&&q("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",A],fixedLayout:[2,"fixedLayout","fixedLayout",A],recycleRows:[2,"recycleRows","recycleRows",A]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[I([{provide:N,useExisting:n},{provide:se,useValue:null}])],ngContentSelectors:an,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(fe(rn),$(0),$(1,1),y(2,sn,1,0),y(3,ln,7,0)(4,cn,4,0)),t&2&&(c(2),C(i._isServer?2:-1),c(),C(i._isNativeHtmlTable?3:4))},dependencies:[Ee,Oe,Ie,Pe],styles:[`.cdk-table-fixed-layout {
1
+ import{a as It,b as Nt,c as Bt,d as Vt}from"./chunk-NO274VZU.js";import{a as Mt,b as Ft,c as Tt,d as Ot,e as Et,g as Pt}from"./chunk-VAI3YHUS.js";import{a as St}from"./chunk-LNNAK44C.js";import{e as Ct,f as vt,i as Dt,j as xt,n as bt,o as kt}from"./chunk-XUGRUSQE.js";import{c as Rt}from"./chunk-DX34XOH2.js";import{$ as j,$a as $,$d as _t,Dc as rt,Ea as W,Eb as Ye,Ec as at,Fa as y,Fd as dt,Ga as C,Gb as Xe,Ha as De,Ic as st,J as Q,Ja as xe,Ka as be,La as P,Lb as ae,Ld as ut,Ma as s,N as de,Na as l,Nd as mt,O as ve,Oa as ee,Ob as Ge,Od as ft,Q as d,S as g,Sa as K,T as w,Ta as Y,Ua as S,Va as T,W as qe,Wd as ht,X as Qe,Xa as k,Yb as Ze,Z as We,Za as u,Zb as te,_a as fe,_b as A,aa as Ke,ab as ke,ba as ue,be as pt,c as Z,ca as E,cb as L,d as ze,db as U,dc as Je,ea as B,f as Le,g as Ue,ge as gt,ha as ie,i as Ce,ib as re,j as je,jb as q,je as wt,ka as c,la as oe,m as ce,ma as H,mb as f,nb as R,nc as et,nd as lt,ob as X,pd as ct,ra as J,re as yt,sa as V,ta as me,u as $e,ua as p,vc as tt,wa as b,wc as he,xa as z,xb as I,xc as nt,yc as it,zc as ot}from"./chunk-DBGL657U.js";import{g as He}from"./chunk-NCEQPEJE.js";var rn=[[["caption"]],[["colgroup"],["col"]],"*"],an=["caption","colgroup, col","*"];function sn(n,o){n&1&&$(0,2)}function ln(n,o){n&1&&(s(0,"thead",0),S(1,1),l(),s(2,"tbody",0),S(3,2)(4,3),l(),s(5,"tfoot",0),S(6,4),l())}function cn(n,o){n&1&&S(0,1)(1,2)(2,3)(3,4)}var N=new ve("CDK_TABLE");var ge=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellDef",""]]})}return n})(),we=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderCellDef",""]]})}return n})(),Lt=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterCellDef",""]]})}return n})(),ne=(()=>{class n{_table=d(N,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,ge,5)(r,we,5)(r,Lt,5),t&2){let a;L(a=U())&&(i.cell=a.first),L(a=U())&&(i.headerCell=a.first),L(a=U())&&(i.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",A],stickyEnd:[2,"stickyEnd","stickyEnd",A]}})}return n})(),pe=class{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}},Ut=(()=>{class n extends pe{constructor(){super(d(ne),d(B))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[b]})}return n})();var jt=(()=>{class n extends pe{constructor(){let e=d(ne),t=d(B);super(e,t);let i=e._table?._getCellRole();i&&t.nativeElement.setAttribute("role",i)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[b]})}return n})();var Se=(()=>{class n{template=d(H);_differs=d(te);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof le?e.headerCell.template:this instanceof Me?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,features:[ue]})}return n})(),le=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),Me=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),ye=(()=>{class n extends Se{_table=d(N,{optional:!0});when;constructor(){super(d(H),d(te))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[b]})}return n})(),G=(()=>{class n{_viewContainer=d(J);cells;context;static mostRecentCellOutlet=null;constructor(){n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellOutlet",""]]})}return n})(),Fe=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})();var Te=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})(),$t=(()=>{class n{templateRef=d(H);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["ng-template","cdkNoDataRow",""]]})}return n})(),At=["top","bottom","left","right"],Re=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(o=>this._updateCachedSizes(o)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(o,e,t=!0,i=!0,r,a,m){this._isNativeHtmlTable=o,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=i,this.direction=r,this._positionListener=a,this._tableInjector=m,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(o);let t=[];for(let i of o)i.nodeType===i.ELEMENT_NODE&&t.push(i,...Array.from(i.children));oe({write:()=>{for(let i of t)this._removeStickyStyle(i,e)}},{injector:this._tableInjector})}updateStickyColumns(o,e,t,i=!0,r=!0){if(!o.length||!this._isBrowser||!(e.some(O=>O)||t.some(O=>O))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=o[0],m=a.children.length,h=this.direction==="rtl",_=h?"right":"left",v=h?"left":"right",F=e.lastIndexOf(!0),D=t.indexOf(!0),x,Be,Ve;r&&this._updateStickyColumnReplayQueue({rows:[...o],stickyStartStates:[...e],stickyEndStates:[...t]}),oe({earlyRead:()=>{x=this._getCellWidths(a,i),Be=this._getStickyStartColumnPositions(x,e),Ve=this._getStickyEndColumnPositions(x,t)},write:()=>{for(let O of o)for(let M=0;M<m;M++){let Ae=O.children[M];e[M]&&this._addStickyStyle(Ae,_,Be[M],M===F),t[M]&&this._addStickyStyle(Ae,v,Ve[M],M===D)}this._positionListener&&x.some(O=>!!O)&&(this._positionListener.stickyColumnsUpdated({sizes:F===-1?[]:x.slice(0,F+1).map((O,M)=>e[M]?O:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:x.slice(D).map((O,M)=>t[M+D]?O:null).reverse()}))}},{injector:this._tableInjector})}stickRows(o,e,t){if(!this._isBrowser)return;let i=t==="bottom"?o.slice().reverse():o,r=t==="bottom"?e.slice().reverse():e,a=[],m=[],h=[];oe({earlyRead:()=>{for(let _=0,v=0;_<i.length;_++){if(!r[_])continue;a[_]=v;let F=i[_];h[_]=this._isNativeHtmlTable?Array.from(F.children):[F];let D=this._retrieveElementSize(F).height;v+=D,m[_]=D}},write:()=>{let _=r.lastIndexOf(!0);for(let v=0;v<i.length;v++){if(!r[v])continue;let F=a[v],D=v===_;for(let x of h[v])this._addStickyStyle(x,t,F,D)}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:m,offsets:a,elements:h}):this._positionListener?.stickyFooterRowsUpdated({sizes:m,offsets:a,elements:h})}},{injector:this._tableInjector})}updateStickyFooterContainer(o,e){this._isNativeHtmlTable&&oe({write:()=>{let t=o.querySelector("tfoot");t&&(e.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(o,e){if(!o.classList.contains(this._stickCellCss))return;for(let i of e)o.style[i]="",o.classList.remove(this._borderCellCss[i]);At.some(i=>e.indexOf(i)===-1&&o.style[i])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,i){o.classList.add(this._stickCellCss),i&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){let e={top:100,bottom:10,left:1,right:1},t=0;for(let i of At)o.style[i]&&(t+=e[i]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=o.children;for(let r=0;r<i.length;r++){let a=i[r];t.push(this._retrieveElementSize(a).width)}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(o,e){let t=[],i=0;for(let r=0;r<o.length;r++)e[r]&&(t[r]=i,i+=o[r]);return t}_getStickyEndColumnPositions(o,e){let t=[],i=0;for(let r=o.length;r>0;r--)e[r]&&(t[r]=i,i+=o[r]);return t}_retrieveElementSize(o){let e=this._elemSizeCache.get(o);if(e)return e;let t=o.getBoundingClientRect(),i={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(o,i),this._resizeObserver.observe(o,{box:"border-box"})),i}_updateStickyColumnReplayQueue(o){this._removeFromStickyColumnReplayQueue(o.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(o)}_removeFromStickyColumnReplayQueue(o){let e=new Set(o);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(i=>!e.has(i));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(o){let e=!1;for(let t of o){let i=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};i.width!==this._elemSizeCache.get(t.target)?.width&&dn(t.target)&&(e=!0),this._elemSizeCache.set(t.target,i)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function dn(n){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(o=>n.classList.contains(o))}var se=new ve("STICKY_POSITIONING_LISTENER");var Oe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","rowOutlet",""]]})}return n})(),Ee=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","headerRowOutlet",""]]})}return n})(),Pe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","footerRowOutlet",""]]})}return n})(),Ie=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","noDataRowOutlet",""]]})}return n})(),Ne=(()=>{class n{_differs=d(te);_changeDetectorRef=d(Ze);_elementRef=d(B);_dir=d(tt,{optional:!0});_platform=d(et);_viewRepeater;_viewportRuler=d(rt);_injector=d(qe);_virtualScrollViewport=d(at,{optional:!0,host:!0});_positionListener=d(se,{optional:!0})||d(se,{optional:!0,skipSelf:!0});_document=d(Qe);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new We;viewChange=new ze({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){d(new Ge("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Q(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new it:new Rt,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),he(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(i,r,a)=>this._getEmbeddedViewArgs(i.item,a),i=>i.item.data,i=>{i.operation===nt.INSERTED&&i.context&&this._renderCellTemplateForItem(i.record.item.rowDef,i.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(i=>{let r=t.get(i.currentIndex);r.context.$implicit=i.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._headerRowOutlet,"thead");i&&(i.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._footerRowOutlet,"tfoot");i&&(i.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let m=0;m<t.length;m++)this._renderRows[m].rowDef===r&&a.push(t[m]);this._addStickyColumnStyles(a,r)}),i.forEach((r,a)=>{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],t=Math.min(this._data.length,this._renderedRange.end),i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r<t;r++){let a=this._data[r],m=this._getRenderRowsForData(a,r,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(let h=0;h<m.length;h++){let _=m[h],v=this._cachedRenderRowsMap.get(_.data);v.has(_.rowDef)?v.get(_.rowDef).push(_):v.set(_.rowDef,[_]),e.push(_)}}return e}_getRenderRowsForData(e,t,i){return this._getRowDefs(e,t).map(a=>{let m=i&&i.has(a)?i.get(a):[];if(m.length){let h=m.shift();return h.dataIndex=t,h}else return{data:e,rowDef:a,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_e(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_e(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_e(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_e(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,m)=>{let h=!!m.getColumnsDiff();return a||h},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),t||i||r}_switchDataSource(e){this._data=[],he(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;he(this.dataSource)?e=this.dataSource.connect(this):je(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ce(this.dataSource)),this._renderChangeSubscription=ce([e,this.viewChange]).pipe(Q(this._onDestroy)).subscribe(([t,i])=>{this._data=t||[],this._renderedRange=i,this._dataStream.next(t),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let i=Array.from(t?.columns||[]).map(m=>{let h=this._columnDefsByName.get(m);return h}),r=i.map(m=>m.sticky),a=i.map(m=>m.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let i=0;i<e.viewContainer.length;i++){let r=e.viewContainer.get(i);t.push(r.rootNodes[0])}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return[this._rowDefs[0]];let i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter(r=>!r.when||r.when(t,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(t,e))||this._defaultRowDef;r&&i.push(r)}return i.length,i}_getEmbeddedViewArgs(e,t){let i=e.rowDef,r={$implicit:e.data};return{templateRef:i.template,context:r,index:t}}_renderRow(e,t,i,r={}){let a=e.viewContainer.createEmbeddedView(t.template,r,i);return this._renderCellTemplateForItem(t,r),a}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))G.mostRecentCellOutlet&&G.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t<i;t++){let a=e.get(t).context;a.count=i,a.first=t===0,a.last=t===i-1,a.even=t%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[t].dataIndex,a.renderIndex=t):a.index=this._renderRows[t].dataIndex}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,t=>{let i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,i)=>t||i.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new Re(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:Ce()).pipe(Q(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Ue:Le;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe($e(0,t),Q(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(i,r)=>this._measureRangeSize(i,r)}),ce([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m){let h=r.offsets[a],_=i!==0?Math.max(i-h,h):-h;for(let v of m)v.style.top=`${-_}px`}}}),ce([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m)for(let h of m)h.style.bottom=`${i+r.offsets[a]}px`}})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let i=this._noDataRowOutlet.viewContainer;if(t){let r=i.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let m=a.querySelectorAll(e._cellSelector);for(let h=0;h<m.length;h++)m[h].classList.add(...e._cellClassNames)}}else i.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck()}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let i=this.viewChange.value,r=this._rowOutlet.viewContainer;e.start<i.start||e.end>i.end;let a=e.start-i.start,m=e.end-e.start,h,_;for(let D=0;D<m;D++){let x=r.get(D+a);if(x&&x.rootNodes.length){h=_=x.rootNodes[0];break}}for(let D=m-1;D>-1;D--){let x=r.get(D+a);if(x&&x.rootNodes.length){_=x.rootNodes[x.rootNodes.length-1];break}}let v=h?.getBoundingClientRect?.(),F=_?.getBoundingClientRect?.();return v&&F?F.bottom-v.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,$t,5)(r,ne,5)(r,ye,5)(r,le,5)(r,Me,5),t&2){let a;L(a=U())&&(i._noDataRow=a.first),L(a=U())&&(i._contentColumnDefs=a),L(a=U())&&(i._contentRowDefs=a),L(a=U())&&(i._contentHeaderRowDefs=a),L(a=U())&&(i._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){t&2&&q("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",A],fixedLayout:[2,"fixedLayout","fixedLayout",A],recycleRows:[2,"recycleRows","recycleRows",A]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[I([{provide:N,useExisting:n},{provide:se,useValue:null}])],ngContentSelectors:an,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(fe(rn),$(0),$(1,1),y(2,sn,1,0),y(3,ln,7,0)(4,cn,4,0)),t&2&&(c(2),C(i._isServer?2:-1),c(),C(i._isNativeHtmlTable?3:4))},dependencies:[Ee,Oe,Ie,Pe],styles:[`.cdk-table-fixed-layout {
2
2
  table-layout: fixed;
3
3
  }
4
4
  `],encapsulation:2})}return n})();function _e(n,o){return n.concat(Array.from(o))}function Ht(n,o){let e=o.toUpperCase(),t=n.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===e)return t;if(i==="TABLE")break;t=t.parentNode}return null}var qt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=me({type:n});static \u0275inj=de({imports:[st]})}return n})();var un=[[["caption"]],[["colgroup"],["col"]],"*"],mn=["caption","colgroup, col","*"];function fn(n,o){n&1&&$(0,2)}function hn(n,o){n&1&&(s(0,"thead",0),S(1,1),l(),s(2,"tbody",2),S(3,3)(4,4),l(),s(5,"tfoot",0),S(6,5),l())}function _n(n,o){n&1&&S(0,1)(1,3)(2,4)(3,5)}var Qt=(()=>{class n extends Ne{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(n)))(i||n)}})();static \u0275cmp=V({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,i){t&2&&q("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[I([{provide:Ne,useExisting:n},{provide:N,useExisting:n},{provide:se,useValue:null}]),b],ngContentSelectors:mn,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(fe(un),$(0),$(1,1),y(2,fn,1,0),y(3,hn,7,0)(4,_n,4,0)),t&2&&(c(2),C(i._isServer?2:-1),c(),C(i._isNativeHtmlTable?3:4))},dependencies:[Ee,Oe,Ie,Pe],styles:[`.mat-mdc-table-sticky {
@@ -1,4 +1,4 @@
1
- import{a as Ga}from"./chunk-BJKB23AZ.js";import{b as Ra,d as Pa,f as La,g as Ct,h as $e,i as Na,j as Xe,k as Ya,l as Ba,m as Ha,n as za,o as Wa}from"./chunk-GBMW6IJP.js";import{a as ja,b as qa}from"./chunk-XZM7Q5WP.js";import{a as Ka}from"./chunk-USYMWMPO.js";import{$a as Be,$c as gt,$d as xa,Bd as ba,Cc as na,Cd as ft,Da as C,Ea as R,Ed as ya,Fa as P,G as se,Gc as Ke,H as it,Ha as Ve,Hd as va,I as _e,Ia as $,Ib as ea,Ic as ne,Id as Da,Ja as X,Jc as ht,Jd as Ca,K as rt,Ka as u,Kd as wa,L as ge,La as d,M as le,Ma as c,Md as Ma,N as E,Na as w,Nb as We,Nd as ka,O as jt,Oa as N,Oc as ut,P as s,Pa as Y,Pc as ia,Qa as Xt,Qc as T,R as b,Rc as ra,S as y,Sc as je,Sd as Aa,T as de,Tc as oa,U as ot,Ua as Z,Ud as Ge,V as fe,Va as J,Vc as sa,Vd as bt,W as qt,Wa as g,Wc as la,Wd as Sa,Xa as Zt,Xb as V,Xc as da,Xd as Oe,Y as p,Ya as h,Yc as ca,Z as st,Za as me,Zb as M,Zc as pa,_,_a as ee,_b as pt,_c as _t,_d as Qe,a as W,aa as Q,ab as B,ad as qe,ae as Ea,ba as Gt,bb as v,be as Ia,c as S,cb as D,ce as Ue,da as U,ed as ma,ee as yt,fd as ve,fe as Va,gb as He,ge as vt,hb as ze,i as Ne,ib as I,ie as Ta,ja as l,ka as lt,kb as be,l as nt,lb as m,le as Dt,mb as x,mc as ta,md as ha,na as Ee,nb as ae,nd as ua,o as Kt,ob as ct,oc as mt,od as _a,oe as Oa,pa as Qt,pb as K,pc as aa,qa as Ut,qb as j,qc as he,qe as Fa,ra as k,rb as q,s as te,sa as ce,t as xe,ta as pe,td as ga,uc as ue,va as dt,wa as Ie,wb as G,wd as Te,xb as Jt,xd as fa,ya as $t,yc as ye,z as Ye}from"./chunk-BCS6VHKX.js";import{a as zt,b as Wt}from"./chunk-NCEQPEJE.js";var yn=["text"],vn=[[["mat-icon"]],"*"],Dn=["mat-icon","*"];function Cn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",1),i&2){let e=h();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=h();u("disabled",e.disabled)}}function Mn(i,o){if(i&1&&(d(0,"span",4),m(1),c()),i&2){let e=h();l(),ae("(",e.group.label,")")}}var Mt=new E("MAT_OPTION_PARENT_COMPONENT"),kt=new E("MatOptgroup");var wt=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},De=(()=>{class i{_element=s(U);_changeDetectorRef=s(V);_parent=s(Mt,{optional:!0});group=s(kt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(ne).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=_(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new p;_text;_stateChanges=new S;constructor(){let e=s(he);e.load(Ge),e.load(ve),this._signalDisableRipple=!!this._parent&&$t(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!T(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new wt(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&B(yn,7),t&2){let n;v(n=D())&&(a._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(J("id",a.id),C("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),I("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",M]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Dn,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(me(vn),R(0,Cn,1,2,"mat-pseudo-checkbox",1),ee(1),d(2,"span",2,0),ee(4,1),c(),R(5,wn,1,1,"mat-pseudo-checkbox",3),R(6,Mn,2,1,"span",4),w(7,"div",5)),t&2&&(P(a.multiple?0:-1),l(5),P(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),P(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[ja,Aa],styles:[`.mat-mdc-option {
1
+ import{a as Ga}from"./chunk-LNNAK44C.js";import{b as Ra,d as Pa,f as La,g as Ct,h as $e,i as Na,j as Xe,k as Ya,l as Ba,m as Ha,n as za,o as Wa}from"./chunk-XUGRUSQE.js";import{a as ja,b as qa}from"./chunk-ZU72P2HZ.js";import{a as Ka}from"./chunk-DX34XOH2.js";import{$ as _,$a as ee,$b as pt,$c as _t,$d as Qe,Cd as ba,Dc as na,Dd as ft,Ea as C,Fa as R,Fd as ya,Ga as P,H as se,Hc as Ke,I as it,Ia as Ve,Id as va,J as _e,Ja as $,Jb as ea,Jc as ne,Jd as Da,Ka as X,Kc as ht,Kd as Ca,L as rt,La as u,Ld as wa,M as ge,Ma as d,N as le,Na as c,Nd as Ma,O as E,Oa as w,Ob as We,Od as ka,P as jt,Pa as N,Pc as ut,Q as s,Qa as Y,Qc as ia,Ra as Xt,Rc as T,S as b,Sc as ra,T as y,Tc as je,Td as Aa,U as de,Uc as oa,V as ot,Va as Z,Vd as Ge,W as fe,Wa as J,Wc as sa,Wd as bt,X as qt,Xa as g,Xc as la,Xd as Sa,Ya as Zt,Yb as V,Yc as da,Yd as Oe,Z as p,Za as h,Zc as ca,_ as st,_a as me,_b as M,_c as pa,a as W,ab as Be,ad as gt,ae as xa,ba as Q,bb as B,bd as qe,be as Ea,c as S,ca as Gt,cb as v,ce as Ia,db as D,de as Ue,ea as U,fd as ma,fe as yt,gd as ve,ge as Va,hb as He,he as vt,i as Ne,ib as ze,jb as I,je as Ta,ka as l,l as nt,la as lt,lb as be,mb as m,me as Dt,nb as x,nc as ta,nd as ha,o as Kt,oa as Ee,ob as ae,od as ua,pb as ct,pc as mt,pd as _a,pe as Oa,qa as Qt,qb as K,qc as aa,ra as Ut,rb as j,rc as he,re as Fa,s as te,sa as k,sb as q,t as xe,ta as ce,ua as pe,ud as ga,vc as ue,wa as dt,xa as Ie,xb as G,xd as Te,yb as Jt,yd as fa,z as Ye,za as $t,zc as ye}from"./chunk-DBGL657U.js";import{a as zt,b as Wt}from"./chunk-NCEQPEJE.js";var yn=["text"],vn=[[["mat-icon"]],"*"],Dn=["mat-icon","*"];function Cn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",1),i&2){let e=h();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wn(i,o){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=h();u("disabled",e.disabled)}}function Mn(i,o){if(i&1&&(d(0,"span",4),m(1),c()),i&2){let e=h();l(),ae("(",e.group.label,")")}}var Mt=new E("MAT_OPTION_PARENT_COMPONENT"),kt=new E("MatOptgroup");var wt=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},De=(()=>{class i{_element=s(U);_changeDetectorRef=s(V);_parent=s(Mt,{optional:!0});group=s(kt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(ne).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=_(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new p;_text;_stateChanges=new S;constructor(){let e=s(he);e.load(Ge),e.load(ve),this._signalDisableRipple=!!this._parent&&$t(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!T(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new wt(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&B(yn,7),t&2){let n;v(n=D())&&(a._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(J("id",a.id),C("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),I("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",M]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Dn,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(me(vn),R(0,Cn,1,2,"mat-pseudo-checkbox",1),ee(1),d(2,"span",2,0),ee(4,1),c(),R(5,wn,1,1,"mat-pseudo-checkbox",3),R(6,Mn,2,1,"span",4),w(7,"div",5)),t&2&&(P(a.multiple?0:-1),l(5),P(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),P(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[ja,Aa],styles:[`.mat-mdc-option {
2
2
  -webkit-user-select: none;
3
3
  user-select: none;
4
4
  -moz-osx-font-smoothing: grayscale;
@@ -1 +1 @@
1
- import{I as z}from"./chunk-GFDZNVNU.js";import"./chunk-RRYFRHFP.js";import"./chunk-4UBQTQSK.js";import"./chunk-5SYZI253.js";import"./chunk-BJKB23AZ.js";import"./chunk-D4A5NW5G.js";import"./chunk-GBMW6IJP.js";import"./chunk-BNCDJR4Z.js";import"./chunk-XZM7Q5WP.js";import"./chunk-USYMWMPO.js";import{Ea as m,Ed as C,Fa as d,Fd as w,Hd as S,Id as R,Jd as E,Ka as _,Kd as O,La as a,Ma as o,Md as T,Na as v,Nd as A,R as f,S as u,Ua as D,Vd as k,Wa as p,Xd as j,Ya as g,_d as V,ab as b,bb as x,cb as y,ha as h,ja as s,lb as r,lc as I,mb as M,oa as c,ra as P}from"./chunk-BCS6VHKX.js";import"./chunk-NCEQPEJE.js";var U=["frame"];function Q(n,e){if(n&1&&(a(0,"mat-dialog-content",3),v(1,"iframe",6,0),o()),n&2){let t=g();s(),_("src",t.url,h)("title",t.data.panel.title)}}function B(n,e){n&1&&(a(0,"mat-dialog-content",4),r(1," This widget has no settings. "),o())}function F(n,e){if(n&1){let t=D();a(0,"mat-dialog-actions",5)(1,"button",7),p("click",function(){f(t);let l=g();return u(l.removeWidget())}),a(2,"mat-icon"),r(3,"delete"),o(),r(4," Remove widget "),o()()}}var W=class n{constructor(e,t,i,l){this.dialogRef=e;this.data=t;this.service=i;this.sanitizer=l}dialogRef;data;service;sanitizer;frame;url;detach=null;ngOnInit(){let e=this.data.panel;e&&(this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.url?this.service.resolveAssetUrl(e.url):"about:blank"))}ngAfterViewInit(){let e=this.data.panel;!e||!this.frame||(this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.data.extension,panel:e,targetInstance:this.data.targetInstance,targetWidget:this.data.targetWidget,close:()=>this.dialogRef.close()}))}removeWidget(){this.data.targetInstance&&this.service.removeWidget(this.data.targetInstance),this.dialogRef.close()}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(t){return new(t||n)(c(C),c(w),c(z),c(I))};static \u0275cmp=P({type:n,selectors:[["fb-plotterext-panel-dialog"]],viewQuery:function(t,i){if(t&1&&b(U,5),t&2){let l;x(l=y())&&(i.frame=l.first)}},decls:9,vars:3,consts:[["frame",""],["mat-dialog-title","",1,"pe-panel-header"],["mat-icon-button","","aria-label","Close",3,"click"],[1,"pe-panel-content"],[1,"pe-panel-noconfig"],[1,"pe-panel-actions"],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"],["mat-button","",1,"pe-remove",3,"click"]],template:function(t,i){t&1&&(a(0,"div",1)(1,"span"),r(2),o(),a(3,"button",2),p("click",function(){return i.dialogRef.close()}),a(4,"mat-icon"),r(5,"close"),o()()(),m(6,Q,3,2,"mat-dialog-content",3)(7,B,2,0,"mat-dialog-content",4),m(8,F,5,0,"mat-dialog-actions",5)),t&2&&(s(2),M(i.data.panel?i.data.panel.title:i.data.title),s(4),d(i.data.panel?6:7),s(2),d(i.data.targetInstance?8:-1))},dependencies:[O,S,E,R,V,j,k,A,T],styles:[".pe-panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-right:8px}.pe-panel-content[_ngcontent-%COMP%]{padding:0;height:60vh}.pe-panel-noconfig[_ngcontent-%COMP%]{padding:16px 24px}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}.pe-panel-actions[_ngcontent-%COMP%]{justify-content:flex-start}.pe-remove[_ngcontent-%COMP%]{color:#d32f2f}"]})};export{W as PlotterPanelDialog};
1
+ import{I as z}from"./chunk-5UXNTYSY.js";import"./chunk-VAI3YHUS.js";import"./chunk-3LS56QZI.js";import"./chunk-IQZW2T75.js";import"./chunk-LNNAK44C.js";import"./chunk-3HSIX7SC.js";import"./chunk-XUGRUSQE.js";import"./chunk-JWBOMKMB.js";import"./chunk-ZU72P2HZ.js";import"./chunk-DX34XOH2.js";import{$d as V,Fa as m,Fd as C,Ga as d,Gd as w,Id as S,Jd as R,Kd as E,La as _,Ld as O,Ma as a,Na as o,Nd as T,Oa as v,Od as A,S as f,T as u,Va as D,Wd as k,Xa as p,Yd as j,Za as g,bb as b,cb as x,db as y,ia as h,ka as s,mb as r,mc as I,nb as M,pa as c,sa as P}from"./chunk-DBGL657U.js";import"./chunk-NCEQPEJE.js";var U=["frame"];function Q(n,e){if(n&1&&(a(0,"mat-dialog-content",3),v(1,"iframe",6,0),o()),n&2){let t=g();s(),_("src",t.url,h)("title",t.data.panel.title)}}function B(n,e){n&1&&(a(0,"mat-dialog-content",4),r(1," This widget has no settings. "),o())}function F(n,e){if(n&1){let t=D();a(0,"mat-dialog-actions",5)(1,"button",7),p("click",function(){f(t);let l=g();return u(l.removeWidget())}),a(2,"mat-icon"),r(3,"delete"),o(),r(4," Remove widget "),o()()}}var W=class n{constructor(e,t,i,l){this.dialogRef=e;this.data=t;this.service=i;this.sanitizer=l}dialogRef;data;service;sanitizer;frame;url;detach=null;ngOnInit(){let e=this.data.panel;e&&(this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.url?this.service.resolveAssetUrl(e.url):"about:blank"))}ngAfterViewInit(){let e=this.data.panel;!e||!this.frame||(this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.data.extension,panel:e,targetInstance:this.data.targetInstance,targetWidget:this.data.targetWidget,close:()=>this.dialogRef.close()}))}removeWidget(){this.data.targetInstance&&this.service.removeWidget(this.data.targetInstance),this.dialogRef.close()}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(t){return new(t||n)(c(C),c(w),c(z),c(I))};static \u0275cmp=P({type:n,selectors:[["fb-plotterext-panel-dialog"]],viewQuery:function(t,i){if(t&1&&b(U,5),t&2){let l;x(l=y())&&(i.frame=l.first)}},decls:9,vars:3,consts:[["frame",""],["mat-dialog-title","",1,"pe-panel-header"],["mat-icon-button","","aria-label","Close",3,"click"],[1,"pe-panel-content"],[1,"pe-panel-noconfig"],[1,"pe-panel-actions"],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"],["mat-button","",1,"pe-remove",3,"click"]],template:function(t,i){t&1&&(a(0,"div",1)(1,"span"),r(2),o(),a(3,"button",2),p("click",function(){return i.dialogRef.close()}),a(4,"mat-icon"),r(5,"close"),o()()(),m(6,Q,3,2,"mat-dialog-content",3)(7,B,2,0,"mat-dialog-content",4),m(8,F,5,0,"mat-dialog-actions",5)),t&2&&(s(2),M(i.data.panel?i.data.panel.title:i.data.title),s(4),d(i.data.panel?6:7),s(2),d(i.data.targetInstance?8:-1))},dependencies:[O,S,E,R,V,j,k,A,T],styles:[".pe-panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-right:8px}.pe-panel-content[_ngcontent-%COMP%]{padding:0;height:60vh}.pe-panel-noconfig[_ngcontent-%COMP%]{padding:16px 24px}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}.pe-panel-actions[_ngcontent-%COMP%]{justify-content:flex-start}.pe-remove[_ngcontent-%COMP%]{color:#d32f2f}"]})};export{W as PlotterPanelDialog};
@@ -1 +1 @@
1
- import{Ua as $,q as Y,z as Z}from"./chunk-GFDZNVNU.js";import{a as q,b as Q,c as X}from"./chunk-RRYFRHFP.js";import{j as B,l as N}from"./chunk-4UBQTQSK.js";import{a as z,b as G,d as J}from"./chunk-5SYZI253.js";import{a as U}from"./chunk-BJKB23AZ.js";import"./chunk-D4A5NW5G.js";import{b as K,i as W,o as H}from"./chunk-GBMW6IJP.js";import"./chunk-BNCDJR4Z.js";import"./chunk-XZM7Q5WP.js";import"./chunk-USYMWMPO.js";import{Ea as u,Ed as P,Fa as g,Fd as R,Ha as C,Ia as M,Id as k,Ja as I,Ka as _,Kd as T,La as i,Ma as t,Md as V,Na as b,Nd as A,R as d,S as p,Ua as h,Vd as F,Wa as f,Xd as O,Ya as c,_d as j,ja as r,lb as n,mb as w,nb as v,oa as m,pb as D,qb as S,qe as L,ra as y,rb as E}from"./chunk-BCS6VHKX.js";import"./chunk-NCEQPEJE.js";function te(o,a){if(o&1&&(i(0,"mat-option",10),n(1),t()),o&2){let e=a.$implicit;_("value",e),r(),w(e)}}function ie(o,a){if(o&1){let e=h();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}o&2&&(r(),_("astext",!0))}function ne(o,a){if(o&1){let e=h();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),b(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),b(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function oe(o,a){o&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function ae(o,a){if(o&1){let e=h();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),b(27,"br"),n(28,"\xA0 "),u(29,oe,2,0,"div",16),t()()()}if(o&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),v(" ",e.source.name," "),r(4),v(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class o{constructor(a,e,s,l){this.app=a;this.skclient=e;this.dialogRef=s;this.data=l}app;skclient;dialogRef;data;resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};unsubscribe=[];ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(a=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(a).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}ngOnDestroy(){this.unsubscribe.forEach(a=>a.unsubscribe())}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(a){this.source=a,this.source.type="Unknown";try{let e=JSON.parse(a.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||o)(m($),m(Y),m(P),m(R))};static \u0275cmp=y({type:o,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,ae,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,H,W,K,J,G,z,X,U,A,V,B,j,O,F,Q,q,N,T,k,Z],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
1
+ import{Ua as $,q as Y,z as Z}from"./chunk-5UXNTYSY.js";import{a as q,b as Q,c as X}from"./chunk-VAI3YHUS.js";import{j as B,l as N}from"./chunk-3LS56QZI.js";import{a as z,b as G,d as J}from"./chunk-IQZW2T75.js";import{a as U}from"./chunk-LNNAK44C.js";import"./chunk-3HSIX7SC.js";import{b as K,i as W,o as H}from"./chunk-XUGRUSQE.js";import"./chunk-JWBOMKMB.js";import"./chunk-ZU72P2HZ.js";import"./chunk-DX34XOH2.js";import{$d as j,Fa as u,Fd as P,Ga as g,Gd as R,Ia as C,Ja as M,Jd as k,Ka as I,La as _,Ld as T,Ma as i,Na as t,Nd as V,Oa as b,Od as A,S as d,T as p,Va as h,Wd as F,Xa as f,Yd as O,Za as c,ka as r,mb as n,nb as w,ob as v,pa as m,qb as D,rb as S,re as L,sa as y,sb as E}from"./chunk-DBGL657U.js";import"./chunk-NCEQPEJE.js";function te(o,a){if(o&1&&(i(0,"mat-option",10),n(1),t()),o&2){let e=a.$implicit;_("value",e),r(),w(e)}}function ie(o,a){if(o&1){let e=h();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}o&2&&(r(),_("astext",!0))}function ne(o,a){if(o&1){let e=h();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),b(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),b(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function oe(o,a){o&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function ae(o,a){if(o&1){let e=h();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),b(27,"br"),n(28,"\xA0 "),u(29,oe,2,0,"div",16),t()()()}if(o&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),v(" ",e.source.name," "),r(4),v(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class o{constructor(a,e,s,l){this.app=a;this.skclient=e;this.dialogRef=s;this.data=l}app;skclient;dialogRef;data;resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};unsubscribe=[];ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(a=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(a).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}ngOnDestroy(){this.unsubscribe.forEach(a=>a.unsubscribe())}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(a){this.source=a,this.source.type="Unknown";try{let e=JSON.parse(a.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||o)(m($),m(Y),m(P),m(R))};static \u0275cmp=y({type:o,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,ae,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,H,W,K,J,G,z,X,U,A,V,B,j,O,F,Q,q,N,T,k,Z],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
@@ -1,4 +1,4 @@
1
- import{b as xt}from"./chunk-XZM7Q5WP.js";import{a as U}from"./chunk-USYMWMPO.js";import{$a as S,$d as vt,Da as C,Ea as T,Fa as z,Hb as B,I as V,K as tt,Ka as f,La as l,M as E,Ma as _,N as R,Na as L,P as c,Qc as dt,Qd as gt,Rd as bt,T as it,U as et,Ud as ut,V as nt,Wa as D,Wd as ft,Xb as W,Y as Q,Ya as v,Z as H,Za as I,_ as F,_a as r,a as Y,aa as at,ab as G,ba as w,bb as d,bc as st,c as $,cb as h,da as O,gb as M,ib as x,id as q,ja as p,jd as ht,mc as ct,na as ot,oc as rt,qc as lt,ra as g,s as J,sa as P,sc as mt,sd as m,ta as b,va as u,wa as y,wb as A,wd as pt,yc as j,yd as _t}from"./chunk-BCS6VHKX.js";var Ot=(()=>{class i{get vertical(){return this._vertical}set vertical(t){this._vertical=m(t)}_vertical=!1;get inset(){return this._inset}set inset(t){this._inset=m(t)}_inset=!1;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,n){e&2&&(C("aria-orientation",n.vertical?"vertical":"horizontal"),x("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,n){},styles:[`.mat-divider {
1
+ import{b as xt}from"./chunk-ZU72P2HZ.js";import{a as U}from"./chunk-DX34XOH2.js";import{$ as F,$a as r,Ea as C,Fa as T,Ga as z,Ib as B,J as V,L as tt,La as f,Ma as l,N as E,Na as _,O as R,Oa as L,Q as c,Rc as dt,Rd as gt,Sd as bt,U as it,V as et,Vd as ut,W as nt,Xa as D,Xd as ft,Yb as W,Z as Q,Za as v,_ as H,_a as I,a as Y,ab as S,ae as vt,ba as at,bb as G,c as $,ca as w,cb as d,cc as st,db as h,ea as O,hb as M,jb as x,jd as q,ka as p,kd as ht,nc as ct,oa as ot,pc as rt,rc as lt,s as J,sa as g,ta as P,tc as mt,td as m,ua as b,wa as u,xa as y,xb as A,xd as pt,zc as j,zd as _t}from"./chunk-DBGL657U.js";var Ot=(()=>{class i{get vertical(){return this._vertical}set vertical(t){this._vertical=m(t)}_vertical=!1;get inset(){return this._inset}set inset(t){this._inset=m(t)}_inset=!1;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=g({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,n){e&2&&(C("aria-orientation",n.vertical?"vertical":"horizontal"),x("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,n){},styles:[`.mat-divider {
2
2
  display: block;
3
3
  margin: 0;
4
4
  border-top-style: solid;