@duplicati/ngclient 0.0.43 → 0.0.45
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.
- package/assets/spk.woff2 +0 -0
- package/chunk-24YPS3CV.js +1 -0
- package/chunk-2JO4W5FR.js +1 -0
- package/chunk-2YS2DW25.js +1 -0
- package/{chunk-FCHQLLN2.js → chunk-3IE7QZ4D.js} +1 -1
- package/{chunk-ARZ3SWC2.js → chunk-4WKXZKTC.js} +1 -1
- package/chunk-5522ZDTF.js +1 -0
- package/chunk-55X7NAJI.js +1 -0
- package/{chunk-5ZK3D2RS.js → chunk-65UFWL3O.js} +1 -1
- package/chunk-67RPUUUD.js +1 -0
- package/chunk-74JHDVI6.js +1 -0
- package/chunk-7FNERKST.js +1 -0
- package/{chunk-EUZXGGH4.js → chunk-7SHJPVM2.js} +1 -1
- package/chunk-7TRDO7JO.js +1 -0
- package/{chunk-J3H4BCHI.js → chunk-7WQR24NO.js} +1 -1
- package/{chunk-6M3MNJ52.js → chunk-AC2LD55W.js} +1 -1
- package/chunk-AQETBV7M.js +1 -0
- package/{chunk-KL64745B.js → chunk-ARPRGK23.js} +1 -1
- package/{chunk-LTYC3AYW.js → chunk-AYGRA5MA.js} +1 -1
- package/{chunk-P7FSPM3M.js → chunk-AZAFLOEO.js} +1 -1
- package/{chunk-66TOS62R.js → chunk-BDFM44OC.js} +15 -15
- package/{chunk-4TN5W4QO.js → chunk-BNGZWBKC.js} +1 -1
- package/chunk-BV3HBNH3.js +1 -0
- package/{chunk-DGBBEZNN.js → chunk-BWR2LHUK.js} +1 -1
- package/chunk-CVLCJRED.js +1 -0
- package/chunk-F7AUCVVD.js +1 -0
- package/{chunk-K7H3KYW7.js → chunk-FBAABDBH.js} +1 -1
- package/chunk-FSY6N6QG.js +1 -0
- package/{chunk-N35HGIXN.js → chunk-GH3U5NF5.js} +1 -1
- package/chunk-HHNBFONH.js +1 -0
- package/chunk-IBZEQWFY.js +1 -0
- package/chunk-JEGJAUF7.js +1 -0
- package/{chunk-ZVU4LS6E.js → chunk-JIBWXS4Q.js} +1 -1
- package/{chunk-5XX7BU4I.js → chunk-JQGZUGRK.js} +2 -2
- package/chunk-K5R45UNO.js +1 -0
- package/{chunk-MXEBWT5C.js → chunk-KWEPVNDD.js} +1 -1
- package/{chunk-4237W7DB.js → chunk-LM6FM44S.js} +1 -1
- package/{chunk-27GCJTV5.js → chunk-MN2U4RJK.js} +1 -1
- package/{chunk-OQEYKIKK.js → chunk-NIFWUYP5.js} +1 -1
- package/{chunk-7TWD5GBS.js → chunk-NN3K5WJK.js} +1 -1
- package/chunk-NUXXITWB.js +1 -0
- package/{chunk-3NZI2UZ4.js → chunk-OAL3AILX.js} +1 -1
- package/{chunk-OVIL3KMN.js → chunk-QJZQNKYK.js} +1 -1
- package/chunk-R47UOCMB.js +1 -0
- package/chunk-R5PXH3UQ.js +1 -0
- package/{chunk-MTJ4JC4K.js → chunk-RHX2BKJQ.js} +1 -1
- package/{chunk-HEBDWN5N.js → chunk-STY2S4SE.js} +1 -1
- package/chunk-TEBYIIAM.js +1 -0
- package/{chunk-AKLJ23OZ.js → chunk-UUC5AIWR.js} +1 -1
- package/chunk-UYXZTHXX.js +7 -0
- package/chunk-VZ377A5M.js +1 -0
- package/{chunk-2HOCLZ5J.js → chunk-XC5IIBG3.js} +1 -1
- package/chunk-XEK5PR4Q.js +1 -0
- package/{chunk-UYK4G7KS.js → chunk-XPH3GUDU.js} +1 -1
- package/{chunk-6CG2PO47.js → chunk-YEWPXKXM.js} +1 -1
- package/{chunk-XGN4FDKH.js → chunk-YF43IPBW.js} +1 -1
- package/chunk-YZP7MR43.js +6 -0
- package/index.html +2 -2
- package/main-WZQB5GLN.js +1 -0
- package/package.json +1 -1
- package/styles-DLE2HCON.css +1 -0
- package/chunk-45JBSR2F.js +0 -6
- package/chunk-6HO4XDHH.js +0 -1
- package/chunk-7CADWXFT.js +0 -1
- package/chunk-BEZGDXHL.js +0 -1
- package/chunk-CN3765MU.js +0 -1
- package/chunk-ED3PEZLO.js +0 -1
- package/chunk-HZVRWBX3.js +0 -1
- package/chunk-IH5A7VZA.js +0 -1
- package/chunk-KFGIVU27.js +0 -1
- package/chunk-KMNTAMUY.js +0 -1
- package/chunk-M2HNXB57.js +0 -1
- package/chunk-MR4RE3IB.js +0 -7
- package/chunk-N5EDV26Z.js +0 -1
- package/chunk-P6LV5I2K.js +0 -1
- package/chunk-RIZNMDZX.js +0 -1
- package/chunk-SXQDKOHO.js +0 -1
- package/chunk-WUBH66KM.js +0 -1
- package/chunk-WWJ757LM.js +0 -1
- package/chunk-XFX4WAZJ.js +0 -1
- package/chunk-YKAKSXUG.js +0 -1
- package/main-VLMX3T2V.js +0 -1
- package/styles-DO5TEHSB.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as R,b as te}from"./chunk-DNHLTHLR.js";import{b as G}from"./chunk-
|
|
1
|
+
import{a as R,b as te}from"./chunk-DNHLTHLR.js";import{b as G}from"./chunk-5522ZDTF.js";import{a as oe}from"./chunk-7SHJPVM2.js";import{a as L,b as K,c as S,d as U,e as z,h as j,l as V,o as q,p as H,r as Q}from"./chunk-NN3K5WJK.js";import{a as W,f as J,g as Y,l as Z,w as ee}from"./chunk-IBZEQWFY.js";import{a as v}from"./chunk-UUC5AIWR.js";import{H as b,X as w,Y as B}from"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import{c as h}from"./chunk-JQGZUGRK.js";import"./chunk-65UFWL3O.js";import{Ab as D,E,Eb as r,Fb as n,Gb as a,Kc as O,L as M,Qb as l,Ra as s,Rb as c,Sb as f,Wb as P,X as _,Za as g,fb as I,ic as k,lb as x,lc as y,rc as X,vb as C,xb as T}from"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";var ne=()=>["/"];function ie(d,e){d&1&&(r(0,"spk-form-field")(1,"label",17),f(2,6),n(),a(3,"input",18),n(),r(4,"spk-form-field")(5,"label",19),f(6,7),n(),a(7,"input",20),n())}var u=new H,N=class d{#o=_(v);#e=_(b);#t=_(w);#n=_(h);#i=_(oe);isExporting=g(!1);exportType=g("file");exportedCmd=g(null);exportForm=u.group({exportPasswords:u.control(!0),encryption:u.control(!1,[S.required,te()]),password:u.control("",[R(e=>e?.value.encryption,[S.required])]),repeatPassword:u.control("",[R(e=>e?.value.encryption,[S.required])])});exportFormSignal=G(this.exportForm.valueChanges);encryptionFieldSignal=O(()=>this.exportFormSignal()?.encryption??!1);activeBackup=O(()=>this.#i.backups().find(e=>e.Backup?.ID===this.#e.snapshot.params.id));submit(){this.isExporting.set(!0),this.exportType()==="file"?this.#o.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe(M(e=>{let i=t=>{let o=Object.entries(t);return o?"?"+o.map(([F,m])=>`${F}=${m}`).join("&"):""};return this.#n.get(`/api/v1/backup/${this.#e.snapshot.params.id}/export${i({exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0,token:e.Token})}`,{responseType:"blob"})}),E(()=>this.isExporting.set(!1))).subscribe({next:e=>{let t=this.activeBackup()?.Backup?.Name??"Backup",o=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(e,`${t}.${o}`),this.#t.navigate(["/"])},error:e=>{console.log("err",e)}}):this.#o.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(E(()=>this.isExporting.set(!1))).subscribe({next:e=>{console.log("res",e),this.exportedCmd.set(e.Command??null)},error:e=>{console.log("err",e)}})}downloadFile(e,i){let t=window.URL.createObjectURL(e),o=document.createElement("a");o.href=t,o.download=i,o.click(),window.URL.revokeObjectURL(t)}static \u0275fac=function(i){return new(i||d)};static \u0275cmp=I({type:d,selectors:[["app-export"]],decls:27,vars:12,consts:()=>{let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;i=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Export `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: As command line `;let o;o=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: To file `;let F;F=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let m;m=$localize` Encrypt file ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let A;A=$localize`Password`;let $;return $=$localize`Repeat password`,[e,i,t,o,F,m,A,$,[1,"actions"],["spk-button","",1,"outlined",3,"routerLink"],["spk-button","",1,"raised","primary",3,"click"],["autocomplete","off",3,"formGroup"],["type","button",3,"click"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],["type","checkbox","formControlName","encryption"],["for","password"],["type","password","id","password","formControlName","password"],["for","repeatPassword"],["type","password","id","repeatPassword","formControlName","repeatPassword"]]},template:function(i,t){if(i&1&&(r(0,"header")(1,"h3"),k(2," Export backup configuration "),r(3,"div",8)(4,"button",9),l(5,0),a(6,"spk-icon"),c(),n(),r(7,"button",10),P("click",function(){return t.submit()}),l(8,1),a(9,"spk-icon"),c(),n()()(),r(10,"p"),k(11),n()(),r(12,"form",11)(13,"spk-button-group")(14,"button",12),P("click",function(){return t.exportType.set("cmd")}),l(15,2),a(16,"spk-icon"),c(),n(),r(17,"button",12),P("click",function(){return t.exportType.set("file")}),l(18,3),a(19,"spk-icon"),c(),n()(),r(20,"spk-toggle",13),l(21,4),a(22,"input",14),c(),n(),r(23,"spk-toggle",15),l(24,5),a(25,"input",16),c(),n(),x(26,ie,8,0),n()),i&2){let o;s(4),C("routerLink",X(11,ne)),s(3),T("loading",t.isExporting()),s(4),y("#",(o=t.activeBackup())==null||o.Backup==null?null:o.Backup.ID,": ",(o=t.activeBackup())==null||o.Backup==null?null:o.Backup.Name,""),s(),C("formGroup",t.exportForm),s(2),T("active",t.exportType()==="cmd"),s(3),T("active",t.exportType()==="file"),s(9),D(t.encryptionFieldSignal()?26:-1)}},dependencies:[Q,j,K,L,U,z,V,q,B,J,ee,W,Z,Y],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as L}from"./chunk-
|
|
1
|
+
import{a as L}from"./chunk-7SHJPVM2.js";import{o as w}from"./chunk-IBZEQWFY.js";import{a as M,b as x}from"./chunk-UUC5AIWR.js";import{a as G}from"./chunk-QJZQNKYK.js";import{Ab as E,E as g,Eb as r,Fb as o,Gb as R,Kc as p,L as b,Mc as v,R as B,Ra as u,Sb as f,X as l,Xb as _,Za as i,fb as A,ib as I,ic as h,l as T,lb as D,lc as k,p as C,vb as y,vc as N,wc as O}from"./chunk-UYXZTHXX.js";import{a as d,b as S}from"./chunk-C6Q5SG76.js";var c=class a{#t=l(G);transform(e,...t){return this.#t.locale(),this.#t(e).fromNow()}static \u0275fac=function(t){return new(t||a)};static \u0275pipe=I({name:"appRelativeTime",type:a,pure:!0})};var m=class a{#t=1e3;#d=l(x);#o=l(M);#n=l(L);#e=i(!1);#i=i(!1);#u=i(this.#t);#p=i(null);#l=i(!1);#s=i(!1);#a=i(null);#S=i(!1);statusData=this.#p.asReadonly();serverState=p(()=>{let e=this.#a();return e?(e.ProposedSchedule=e?.ProposedSchedule?.map(t=>{let s=t.Item1?this.#n.getBackupById(t.Item1):null;return S(d({},t),{backup:s})}),e):null});isFetching=this.#i.asReadonly();#r=null;#g=v(()=>{let e=this.#e(),t=this.#u();if(!e||!t||t<this.#t){this.#r&&window.clearInterval(this.#r);return}this.#r=window.setInterval(()=>{this.#m()},t)});start(){this.#l.set(!0),this.#c()}stop(){this.#l.set(!1)}startPollingProgress(){this.#m(),this.#e.set(!0)}stopPollingProgress(){this.#e.set(!1)}setProgressStatePollingInterval(e){if(e<this.#t){console.error(`Polling interval must be at least ${this.#t}ms`);return}this.#u.set(e)}serverStateEffect=v(()=>{if(this.#S()){this.stopPollingProgress();return}!this.#s()&&this.#l()?setTimeout(()=>{this.startPollingProgress(),this.#c()},1e3):this.stopPollingProgress()});#c(){if(this.#s())return;this.#s.set(!0);let e=this.#a()?.LastEventID,t=e==null?{}:{lastEventId:e,longpoll:!0,duration:"299s"};this.#o.getApiV1Serverstate(t).pipe(g(()=>this.#s.set(!1))).subscribe({next:s=>{this.#a()?.LastDataUpdateID!==s.LastDataUpdateID&&this.#n.getBackups(),this.#a.set(s)}})}#m(){this.#i.set(!0),this.#d.getApiV1Progressstate().pipe(b(e=>{let t=e.TaskID??null;return t===null?T(e):this.#o.getApiV1TaskByTaskid({taskid:t}).pipe(C(s=>S(d({},e),{task:s??null})))}),g(()=>this.#i.set(!1))).subscribe({next:e=>{let t=e.TaskID??null,s=e.BackupID??null;if(t!==null&&s!==null){let n=this.#n.getBackupById(s);e.backup=n}e.task?.Status==="Completed"?this.#e.set(!1):this.#e.set(!0),this.#p.set(e)},error:e=>{e.status===404&&this.#e.set(!1)}})}static \u0275fac=function(t){return new(t||a)};static \u0275prov=B({token:a,factory:a.\u0275fac,providedIn:"root"})};function V(a,e){if(a&1&&(r(0,"div",4),h(1),o(),R(2,"spk-progress-bar",5)),a&2){let t,s,n=_();u(),k("",(t=n.statusData())==null||t.task==null?null:t.task.Status," - ",(t=n.statusData())==null||t.backup==null||t.backup.Backup==null?null:t.backup.Backup.Name,""),u(),y("value",(s=n.statusData())!=null&&s.OverallProgress?((s=n.statusData())==null?null:s.OverallProgress)*100:3)}}function j(a,e){if(a&1&&(r(0,"div",4),h(1),N(2,"appRelativeTime"),o()),a&2){let t,s=_();u(),k("",(t=s.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",O(2,2,s.nextBackup().time),"")}}function F(a,e){a&1&&(r(0,"div",4),f(1,0),o())}function X(a,e){a&1&&(r(0,"div",4),f(1,1),o())}var U=new Date,P=class a{#t=l(m);minsAgo=U.setMinutes(U.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;nextBackup=p(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#t.start()}ngOnDestroy(){this.#t.stop()}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=A({type:a,selectors:[["app-status-bar"]],decls:6,vars:1,consts:()=>{let e;e=$localize`No scheduled tasks`;let t;return t=$localize`Loading...`,[e,t,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"raised","primary",3,"value"]]},template:function(t,s){if(t&1&&(r(0,"div",2)(1,"div",3),D(2,V,3,3)(3,j,3,4,"div",4)(4,F,2,0,"div",4)(5,X,2,0,"div",4),o()()),t&2){let n;u(2),E(!((n=s.statusData())==null||n.task==null)&&n.task.Status&&((n=s.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:s.nextBackup().backup||s.nextBackup().time?3:!s.statusData()||((n=s.statusData())==null||n.task==null?null:n.task.Status)==="Completed"?4:5)}},dependencies:[w,c],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{P as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-MN2U4RJK.js";import"./chunk-7SHJPVM2.js";import{a as T,g as M,h as f}from"./chunk-IBZEQWFY.js";import"./chunk-UUC5AIWR.js";import{Y as S}from"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import"./chunk-JQGZUGRK.js";import"./chunk-QJZQNKYK.js";import"./chunk-65UFWL3O.js";import{Eb as e,Fb as n,Gb as _,Qb as s,Ra as c,Rb as l,Sb as i,fb as D,rc as d,vb as r}from"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";var E=()=>["/backup/new"],F=()=>["/backup/import"],u=class C{static \u0275fac=function(t){return new(t||C)};static \u0275cmp=D({type:C,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let p;p=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import you can adjust the setings.`;let m;return m=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[a,t,p,A,g,P,m,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["spk-button","",1,"raised","primary",3,"routerLink"]]},template:function(t,p){t&1&&(_(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"spk-card",8),_(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),s(12,3),_(13,"spk-icon"),l(),n()(),e(14,"spk-card",8),_(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),s(21,6),_(22,"spk-icon"),l(),n()()()()),t&2&&(c(11),r("routerLink",d(2,E)),c(9),r("routerLink",d(3,F)))},dependencies:[k,M,f,T,S],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:700px}spk-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}spk-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:300px}spk-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as se}from"./chunk-5ZK3D2RS.js";import{Ec as Ae,Ic as Me,Kc as O,Lc as m,O as j,Q as f,R as ie,S as B,Sa as o,U as y,Wa as H,Wb as D,X as Ve,Za as N,da as I,g as _e,gb as L,ha as S,hb as l,ja as De,jb as u,k as ve,ma as C,nb as be,p as ye,qc as p,sa as U,v as Ce,xb as re}from"./chunk-MR4RE3IB.js";import{a as d,b as h}from"./chunk-C6Q5SG76.js";var Pe=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(o(H),o(U))};static \u0275dir=l({type:n})}return n})(),ee=(()=>{class n extends Pe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,features:[u]})}return n})(),V=new y(""),rt={provide:V,useExisting:f(()=>st),multi:!0},st=(()=>{class n extends ee{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&D("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[p([rt]),u]})}return n})(),ot={provide:V,useExisting:f(()=>ke),multi:!0};function at(){let n=se()?se().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var lt=new y(""),ke=(()=>{class n extends Pe{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!at())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(o(H),o(U),o(lt,8))};static \u0275dir=l({type:n,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(i,r){i&1&&D("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[p([ot]),u]})}return n})();function _(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function Ge(n){return n!=null&&typeof n.length=="number"}var E=new y(""),F=new y(""),ut=/^(?=.{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])?)*$/,Ee=class{static min(t){return dt(t)}static max(t){return ct(t)}static required(t){return ht(t)}static requiredTrue(t){return ft(t)}static email(t){return pt(t)}static minLength(t){return gt(t)}static maxLength(t){return mt(t)}static pattern(t){return _t(t)}static nullValidator(t){return Re(t)}static compose(t){return Le(t)}static composeAsync(t){return We(t)}};function dt(n){return t=>{if(_(t.value)||_(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function ct(n){return t=>{if(_(t.value)||_(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function ht(n){return _(n.value)?{required:!0}:null}function ft(n){return n.value===!0?null:{required:!0}}function pt(n){return _(n.value)||ut.test(n.value)?null:{email:!0}}function gt(n){return t=>_(t.value)||!Ge(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function mt(n){return t=>Ge(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function _t(n){if(!n)return Re;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(_(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Re(n){return null}function Te(n){return n!=null}function je(n){return be(n)?ve(n):n}function Be(n){let t={};return n.forEach(e=>{t=e!=null?d(d({},t),e):t}),Object.keys(t).length===0?null:t}function Ue(n,t){return t.map(e=>e(n))}function vt(n){return!n.validate}function He(n){return n.map(t=>vt(t)?t:e=>t.validate(e))}function Le(n){if(!n)return null;let t=n.filter(Te);return t.length==0?null:function(e){return Be(Ue(e,t))}}function $e(n){return n!=null?Le(He(n)):null}function We(n){if(!n)return null;let t=n.filter(Te);return t.length==0?null:function(e){let i=Ue(e,t).map(je);return Ce(i).pipe(ye(Be))}}function qe(n){return n!=null?We(He(n)):null}function Fe(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function ze(n){return n._rawValidators}function Ze(n){return n._rawAsyncValidators}function oe(n){return n?Array.isArray(n)?n:[n]:[]}function W(n,t){return Array.isArray(n)?n.includes(t):n===t}function we(n,t){let e=oe(t);return oe(n).forEach(r=>{W(e,r)||e.push(r)}),e}function Ie(n,t){return oe(t).filter(e=>!W(n,e))}var q=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(t){this._rawValidators=t||[],this._composedValidatorFn=$e(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=qe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},c=class extends q{name;get formDirective(){return null}get path(){return null}},g=class extends q{_parent=null;name=null;valueAccessor=null},z=class{_cd;constructor(t){this._cd=t}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}},yt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},hn=h(d({},yt),{"[class.ng-submitted]":"isSubmitted"}),fn=(()=>{class n extends z{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(g,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[u]})}return n})(),pn=(()=>{class n extends z{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(c,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[u]})}return n})();var x="VALID",$="INVALID",b="PENDING",P="DISABLED",v=class{},Z=class extends v{value;source;constructor(t,e){super(),this.value=t,this.source=e}},k=class extends v{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends v{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},A=class extends v{status;source;constructor(t,e){super(),this.status=t,this.source=e}},ae=class extends v{source;constructor(t){super(),this.source=t}},le=class extends v{source;constructor(t){super(),this.source=t}};function ce(n){return(te(n)?n.validators:n)||null}function Ct(n){return Array.isArray(n)?$e(n):n||null}function he(n,t){return(te(t)?t.asyncValidators:n)||null}function Vt(n){return Array.isArray(n)?qe(n):n||null}function te(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Xe(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new j(1e3,"");if(!i[e])throw new j(1001,"")}function Ye(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new j(1002,"")})}var M=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}_status=O(()=>this.statusReactive());statusReactive=N(void 0);get valid(){return this.status===x}get invalid(){return this.status===$}get pending(){return this.status==b}get disabled(){return this.status===P}get enabled(){return this.status!==P}errors;get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}_pristine=O(()=>this.pristineReactive());pristineReactive=N(!0);get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}_touched=O(()=>this.touchedReactive());touchedReactive=N(!1);get untouched(){return!this.touched}_events=new _e;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(we(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(we(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ie(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ie(t,this._rawAsyncValidators))}hasValidator(t){return W(this._rawValidators,t)}hasAsyncValidator(t){return W(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(h(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new G(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(h(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new k(!0,i))}markAsPending(t={}){this.status=b;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new A(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(h(d({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(h(d({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Z(this.value,i)),this._events.next(new A(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(h(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(i=>{i.enable(h(d({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(h(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===b)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Z(this.value,e)),this._events.next(new A(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(h(d({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=b,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=je(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new A(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new C,this.statusChanges=new C}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?$:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(b)?b:this._anyControlsHaveStatus($)?$:x}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){te(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ct(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Vt(this._rawAsyncValidators)}},X=class extends M{constructor(t,e,i){super(ce(e),he(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Ye(this,!0,t),Object.keys(t).forEach(i=>{Xe(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ue=class extends X{};var w=new y("CallSetDisabledState",{providedIn:"root",factory:()=>T}),T="always";function ne(n,t){return[...t.path,n]}function Y(n,t,e=T){fe(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),bt(n,t),Mt(n,t),At(n,t),Dt(n,t)}function K(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Q(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function J(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Dt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function fe(n,t){let e=ze(n);t.validator!==null?n.setValidators(Fe(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=Ze(n);t.asyncValidator!==null?n.setAsyncValidators(Fe(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();J(t._rawValidators,r),J(t._rawAsyncValidators,r)}function Q(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=ze(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(t.asyncValidator!==null){let r=Ze(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}let i=()=>{};return J(t._rawValidators,i),J(t._rawAsyncValidators,i),e}function bt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Ke(n,t)})}function At(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Ke(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function Ke(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Mt(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function Et(n,t){n==null,fe(n,t)}function Ft(n,t){return Q(n,t)}function pe(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function wt(n){return Object.getPrototypeOf(n.constructor)===ee}function It(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ge(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(s=>{s.constructor===ke?e=s:wt(s)?i=s:r=s}),r||i||e||null}function St(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Se(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Ne(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var R=class extends M{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(ce(e),he(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),te(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ne(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Se(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Se(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Ne(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Nt=n=>n instanceof R,Ot=(()=>{class n extends c{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[u]})}return n})();var xt={provide:g,useExisting:f(()=>Pt)},Oe=Promise.resolve(),Pt=(()=>{class n extends g{_changeDetectorRef;callSetDisabledState;control=new R;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new C;constructor(e,i,r,s,a,it){super(),this._changeDetectorRef=a,this.callSetDisabledState=it,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ge(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Y(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Oe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Me(i);Oe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ne(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(o(c,9),o(E,10),o(F,10),o(V,10),o(Ae,8),o(w,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[p([xt]),u,I]})}return n})(),mn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),kt={provide:V,useExisting:f(()=>Gt),multi:!0},Gt=(()=>{class n extends ee{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&D("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[p([kt]),u]})}return n})(),Rt={provide:V,useExisting:f(()=>jt),multi:!0};var Tt=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:!1}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ie({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),jt=(()=>{class n extends ee{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=Ve(w,{optional:!0})??T;constructor(e,i,r,s){super(e,i),this._registry=r,this._injector=s}ngOnInit(){this._control=this._injector.get(g),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(i){return new(i||n)(o(H),o(U),o(Tt),o(De))};static \u0275dir=l({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,r){i&1&&D("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[p([Rt]),u]})}return n})();var me=new y(""),Bt={provide:g,useExisting:f(()=>Ut)},Ut=(()=>{class n extends g{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new C;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ge(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&K(i,this,!1),Y(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}pe(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&K(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||n)(o(E,10),o(F,10),o(V,10),o(me,8),o(w,8))};static \u0275dir=l({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[p([Bt]),u,I]})}return n})(),Ht={provide:c,useExisting:f(()=>Je)},Je=(()=>{class n extends c{callSetDisabledState;get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=O(()=>this._submittedReactive());_submittedReactive=N(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new C;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return Y(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){K(e.control||null,e,!1),St(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),It(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ae(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new le(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(K(i||null,e),Nt(r)&&(Y(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);Et(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&Ft(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){fe(this.form,this),this._oldForm&&Q(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(i){return new(i||n)(o(E,10),o(F,10),o(w,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&D("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[p([Ht]),u,I]})}return n})(),Lt={provide:c,useExisting:f(()=>Qe)},Qe=(()=>{class n extends Ot{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){tt(this._parent)}static \u0275fac=function(i){return new(i||n)(o(c,13),o(E,10),o(F,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[p([Lt]),u]})}return n})(),$t={provide:c,useExisting:f(()=>et)},et=(()=>{class n extends c{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){tt(this._parent)}static \u0275fac=function(i){return new(i||n)(o(c,13),o(E,10),o(F,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[p([$t]),u]})}return n})();function tt(n){return!(n instanceof Qe)&&!(n instanceof Je)&&!(n instanceof et)}var Wt={provide:g,useExisting:f(()=>qt)},qt=(()=>{class n extends g{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new C;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ge(this,s)}ngOnChanges(e){this._added||this._setUpControl(),pe(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(o(c,13),o(E,10),o(F,10),o(V,10),o(me,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[p([Wt]),u,I]})}return n})();var nt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=B({})}return n})(),de=class extends M{constructor(t,e,i){super(ce(e),he(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Ye(this,!1,t),t.forEach((i,r)=>{Xe(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function xe(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var _n=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),s={};return xe(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new X(r,s)}record(e,i=null){let r=this._reduceControls(e);return new ue(r,i)}control(e,i,r){let s={};return this.useNonNullable?(xe(i)?s=i:(s.validators=i,s.asyncValidators=r),new R(e,h(d({},s),{nonNullable:!0}))):new R(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new de(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof R)return e;if(e instanceof M)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ie({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var vn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:w,useValue:e.callSetDisabledState??T}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=B({imports:[nt]})}return n})(),yn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:me,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:w,useValue:e.callSetDisabledState??T}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=B({imports:[nt]})}return n})();export{st as a,ke as b,Ee as c,fn as d,pn as e,R as f,Pt as g,mn as h,Gt as i,jt as j,Ut as k,Je as l,Qe as m,et as n,qt as o,_n as p,vn as q,yn as r};
|
|
1
|
+
import{a as se}from"./chunk-65UFWL3O.js";import{Ec as Ae,Ic as Me,Kc as O,Lc as m,O as j,Q as f,R as ie,S as B,Sa as o,U as y,Wa as H,Wb as D,X as Ve,Za as N,da as I,g as _e,gb as L,ha as S,hb as l,ja as De,jb as u,k as ve,ma as C,nb as be,p as ye,qc as p,sa as U,v as Ce,xb as re}from"./chunk-UYXZTHXX.js";import{a as d,b as h}from"./chunk-C6Q5SG76.js";var Pe=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(o(H),o(U))};static \u0275dir=l({type:n})}return n})(),ee=(()=>{class n extends Pe{static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,features:[u]})}return n})(),V=new y(""),rt={provide:V,useExisting:f(()=>st),multi:!0},st=(()=>{class n extends ee{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&D("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[p([rt]),u]})}return n})(),ot={provide:V,useExisting:f(()=>ke),multi:!0};function at(){let n=se()?se().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var lt=new y(""),ke=(()=>{class n extends Pe{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!at())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(o(H),o(U),o(lt,8))};static \u0275dir=l({type:n,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(i,r){i&1&&D("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[p([ot]),u]})}return n})();function _(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function Ge(n){return n!=null&&typeof n.length=="number"}var E=new y(""),F=new y(""),ut=/^(?=.{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])?)*$/,Ee=class{static min(t){return dt(t)}static max(t){return ct(t)}static required(t){return ht(t)}static requiredTrue(t){return ft(t)}static email(t){return pt(t)}static minLength(t){return gt(t)}static maxLength(t){return mt(t)}static pattern(t){return _t(t)}static nullValidator(t){return Re(t)}static compose(t){return Le(t)}static composeAsync(t){return We(t)}};function dt(n){return t=>{if(_(t.value)||_(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function ct(n){return t=>{if(_(t.value)||_(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function ht(n){return _(n.value)?{required:!0}:null}function ft(n){return n.value===!0?null:{required:!0}}function pt(n){return _(n.value)||ut.test(n.value)?null:{email:!0}}function gt(n){return t=>_(t.value)||!Ge(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function mt(n){return t=>Ge(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function _t(n){if(!n)return Re;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(_(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Re(n){return null}function Te(n){return n!=null}function je(n){return be(n)?ve(n):n}function Be(n){let t={};return n.forEach(e=>{t=e!=null?d(d({},t),e):t}),Object.keys(t).length===0?null:t}function Ue(n,t){return t.map(e=>e(n))}function vt(n){return!n.validate}function He(n){return n.map(t=>vt(t)?t:e=>t.validate(e))}function Le(n){if(!n)return null;let t=n.filter(Te);return t.length==0?null:function(e){return Be(Ue(e,t))}}function $e(n){return n!=null?Le(He(n)):null}function We(n){if(!n)return null;let t=n.filter(Te);return t.length==0?null:function(e){let i=Ue(e,t).map(je);return Ce(i).pipe(ye(Be))}}function qe(n){return n!=null?We(He(n)):null}function Fe(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function ze(n){return n._rawValidators}function Ze(n){return n._rawAsyncValidators}function oe(n){return n?Array.isArray(n)?n:[n]:[]}function W(n,t){return Array.isArray(n)?n.includes(t):n===t}function we(n,t){let e=oe(t);return oe(n).forEach(r=>{W(e,r)||e.push(r)}),e}function Ie(n,t){return oe(t).filter(e=>!W(n,e))}var q=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(t){this._rawValidators=t||[],this._composedValidatorFn=$e(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=qe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},c=class extends q{name;get formDirective(){return null}get path(){return null}},g=class extends q{_parent=null;name=null;valueAccessor=null},z=class{_cd;constructor(t){this._cd=t}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}},yt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},hn=h(d({},yt),{"[class.ng-submitted]":"isSubmitted"}),fn=(()=>{class n extends z{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(g,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[u]})}return n})(),pn=(()=>{class n extends z{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(c,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&re("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[u]})}return n})();var x="VALID",$="INVALID",b="PENDING",P="DISABLED",v=class{},Z=class extends v{value;source;constructor(t,e){super(),this.value=t,this.source=e}},k=class extends v{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends v{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},A=class extends v{status;source;constructor(t,e){super(),this.status=t,this.source=e}},ae=class extends v{source;constructor(t){super(),this.source=t}},le=class extends v{source;constructor(t){super(),this.source=t}};function ce(n){return(te(n)?n.validators:n)||null}function Ct(n){return Array.isArray(n)?$e(n):n||null}function he(n,t){return(te(t)?t.asyncValidators:n)||null}function Vt(n){return Array.isArray(n)?qe(n):n||null}function te(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Xe(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new j(1e3,"");if(!i[e])throw new j(1001,"")}function Ye(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new j(1002,"")})}var M=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}_status=O(()=>this.statusReactive());statusReactive=N(void 0);get valid(){return this.status===x}get invalid(){return this.status===$}get pending(){return this.status==b}get disabled(){return this.status===P}get enabled(){return this.status!==P}errors;get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}_pristine=O(()=>this.pristineReactive());pristineReactive=N(!0);get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}_touched=O(()=>this.touchedReactive());touchedReactive=N(!1);get untouched(){return!this.touched}_events=new _e;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(we(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(we(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Ie(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Ie(t,this._rawAsyncValidators))}hasValidator(t){return W(this._rawValidators,t)}hasAsyncValidator(t){return W(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(h(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new G(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(h(d({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new k(!0,i))}markAsPending(t={}){this.status=b;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new A(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(h(d({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(h(d({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Z(this.value,i)),this._events.next(new A(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(h(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(i=>{i.enable(h(d({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(h(d({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===b)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Z(this.value,e)),this._events.next(new A(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(h(d({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=b,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=je(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new A(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new C,this.statusChanges=new C}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?$:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(b)?b:this._anyControlsHaveStatus($)?$:x}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){te(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ct(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Vt(this._rawAsyncValidators)}},X=class extends M{constructor(t,e,i){super(ce(e),he(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Ye(this,!0,t),Object.keys(t).forEach(i=>{Xe(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ue=class extends X{};var w=new y("CallSetDisabledState",{providedIn:"root",factory:()=>T}),T="always";function ne(n,t){return[...t.path,n]}function Y(n,t,e=T){fe(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),bt(n,t),Mt(n,t),At(n,t),Dt(n,t)}function K(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Q(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function J(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Dt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function fe(n,t){let e=ze(n);t.validator!==null?n.setValidators(Fe(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=Ze(n);t.asyncValidator!==null?n.setAsyncValidators(Fe(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();J(t._rawValidators,r),J(t._rawAsyncValidators,r)}function Q(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=ze(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(t.asyncValidator!==null){let r=Ze(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}let i=()=>{};return J(t._rawValidators,i),J(t._rawAsyncValidators,i),e}function bt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Ke(n,t)})}function At(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Ke(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function Ke(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Mt(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function Et(n,t){n==null,fe(n,t)}function Ft(n,t){return Q(n,t)}function pe(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function wt(n){return Object.getPrototypeOf(n.constructor)===ee}function It(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ge(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(s=>{s.constructor===ke?e=s:wt(s)?i=s:r=s}),r||i||e||null}function St(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Se(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Ne(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var R=class extends M{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(ce(e),he(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),te(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ne(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Se(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Se(this._onDisabledChange,t)}_forEachChild(t){}_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(t){Ne(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Nt=n=>n instanceof R,Ot=(()=>{class n extends c{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[u]})}return n})();var xt={provide:g,useExisting:f(()=>Pt)},Oe=Promise.resolve(),Pt=(()=>{class n extends g{_changeDetectorRef;callSetDisabledState;control=new R;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new C;constructor(e,i,r,s,a,it){super(),this._changeDetectorRef=a,this.callSetDisabledState=it,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ge(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pe(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){Y(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Oe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Me(i);Oe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ne(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(o(c,9),o(E,10),o(F,10),o(V,10),o(Ae,8),o(w,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[p([xt]),u,I]})}return n})(),mn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),kt={provide:V,useExisting:f(()=>Gt),multi:!0},Gt=(()=>{class n extends ee{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=S(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&D("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[p([kt]),u]})}return n})(),Rt={provide:V,useExisting:f(()=>jt),multi:!0};var Tt=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i])}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value)})}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:!1}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ie({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),jt=(()=>{class n extends ee{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=Ve(w,{optional:!0})??T;constructor(e,i,r,s){super(e,i),this._registry=r,this._injector=s}ngOnInit(){this._control=this._injector.get(g),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(i){return new(i||n)(o(H),o(U),o(Tt),o(De))};static \u0275dir=l({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,r){i&1&&D("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[p([Rt]),u]})}return n})();var me=new y(""),Bt={provide:g,useExisting:f(()=>Ut)},Ut=(()=>{class n extends g{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new C;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=ge(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&K(i,this,!1),Y(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}pe(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&K(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||n)(o(E,10),o(F,10),o(V,10),o(me,8),o(w,8))};static \u0275dir=l({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[p([Bt]),u,I]})}return n})(),Ht={provide:c,useExisting:f(()=>Je)},Je=(()=>{class n extends c{callSetDisabledState;get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=O(()=>this._submittedReactive());_submittedReactive=N(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new C;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return Y(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){K(e.control||null,e,!1),St(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),It(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ae(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new le(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(K(i||null,e),Nt(r)&&(Y(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);Et(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&Ft(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){fe(this.form,this),this._oldForm&&Q(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(i){return new(i||n)(o(E,10),o(F,10),o(w,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&D("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[p([Ht]),u,I]})}return n})(),Lt={provide:c,useExisting:f(()=>Qe)},Qe=(()=>{class n extends Ot{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){tt(this._parent)}static \u0275fac=function(i){return new(i||n)(o(c,13),o(E,10),o(F,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[p([Lt]),u]})}return n})(),$t={provide:c,useExisting:f(()=>et)},et=(()=>{class n extends c{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){tt(this._parent)}static \u0275fac=function(i){return new(i||n)(o(c,13),o(E,10),o(F,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[p([$t]),u]})}return n})();function tt(n){return!(n instanceof Qe)&&!(n instanceof Je)&&!(n instanceof et)}var Wt={provide:g,useExisting:f(()=>qt)},qt=(()=>{class n extends g{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new C;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ge(this,s)}ngOnChanges(e){this._added||this._setUpControl(),pe(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ne(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(o(c,13),o(E,10),o(F,10),o(V,10),o(me,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[p([Wt]),u,I]})}return n})();var nt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=B({})}return n})(),de=class extends M{constructor(t,e,i){super(ce(e),he(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Ye(this,!1,t),t.forEach((i,r)=>{Xe(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function xe(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var _n=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),s={};return xe(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new X(r,s)}record(e,i=null){let r=this._reduceControls(e);return new ue(r,i)}control(e,i,r){let s={};return this.useNonNullable?(xe(i)?s=i:(s.validators=i,s.asyncValidators=r),new R(e,h(d({},s),{nonNullable:!0}))):new R(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new de(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof R)return e;if(e instanceof M)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ie({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var vn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:w,useValue:e.callSetDisabledState??T}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=B({imports:[nt]})}return n})(),yn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:me,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:w,useValue:e.callSetDisabledState??T}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=L({type:n});static \u0275inj=B({imports:[nt]})}return n})();export{st as a,ke as b,Ee as c,fn as d,pn as e,R as f,Pt as g,mn as h,Gt as i,jt as j,Ut as k,Je as l,Qe as m,et as n,qt as o,_n as p,vn as q,yn as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-QJZQNKYK.js";import{X as i,ib as s}from"./chunk-UYXZTHXX.js";var p=class r{#t=i(o);transform(t,...e){if(!t)return"";let n=t.split(".")[0],a=parseInt(n.split(":")[0])??0,m=parseInt(n.split(":")[1])??0,u=parseInt(n.split(":")[2])??0;return this.#t.duration({hours:a,minutes:m,seconds:u}).humanize()}static \u0275fac=function(e){return new(e||r)};static \u0275pipe=s({name:"durationFormat",type:r,pure:!0})};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as p}from"./chunk-
|
|
1
|
+
import{b as p}from"./chunk-5522ZDTF.js";import{a as f}from"./chunk-UUC5AIWR.js";import{E as s,Kc as l,N as i,R as n,X as a,Za as o}from"./chunk-UYXZTHXX.js";var m=class t{#e=a(f);isLoaded=o(!1);systemInfo=o(null);filterGroups=p(this.#e.getApiV1SysteminfoFiltergroups());backendModules=l(()=>this.systemInfo()?.BackendModules??[]);preload(r=!1){let e=this.#e.getApiV1Systeminfo().pipe(i(c=>this.systemInfo.set(c)),s(()=>this.isLoaded.set(!0)));if(r)return e;e.subscribe()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"})};export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as Wt}from"./chunk-MR4RE3IB.js";import{d as _t,e as Yt}from"./chunk-C6Q5SG76.js";var Ot=_t((Nt,Ht)=>{"use strict";(function(o,t){typeof Nt=="object"&&typeof Ht<"u"?Ht.exports=t():typeof define=="function"&&define.amd?define(t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=t()})(Nt,function(){"use strict";var o=1e3,t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",c="day",h="week",l="month",_="quarter",D="year",v="date",Y="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(m){var d=["th","st","nd","rd"],a=m%100;return"["+m+(d[(a-20)%10]||d[a]||d[0])+"]"}},E=function(m,d,a){var f=String(m);return!f||f.length>=d?m:""+Array(d+1-f.length).join(a)+m},L={s:E,z:function(m){var d=-m.utcOffset(),a=Math.abs(d),f=Math.floor(a/60),u=a%60;return(d<=0?"+":"-")+E(f,2,"0")+":"+E(u,2,"0")},m:function m(d,a){if(d.date()<a.date())return-m(a,d);var f=12*(a.year()-d.year())+(a.month()-d.month()),u=d.clone().add(f,l),M=a-u<0,$=d.clone().add(f+(M?-1:1),l);return+(-(f+(a-u)/(M?u-$:$-u))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:l,y:D,w:h,d:c,D:v,h:i,m:s,s:n,ms:r,Q:_}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},S="en",C={};C[S]=k;var W="$isDayjsObject",Z=function(m){return m instanceof Mt||!(!m||!m[W])},mt=function m(d,a,f){var u;if(!d)return S;if(typeof d=="string"){var M=d.toLowerCase();C[M]&&(u=M),a&&(C[M]=a,u=M);var $=d.split("-");if(!u&&$.length>1)return m($[0])}else{var g=d.name;C[g]=d,u=g}return!f&&u&&(S=u),u||!f&&S},w=function(m,d){if(Z(m))return m.clone();var a=typeof d=="object"?d:{};return a.date=m,a.args=arguments,new Mt(a)},y=L;y.l=mt,y.i=Z,y.w=function(m,d){return w(m,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var Mt=function(){function m(a){this.$L=mt(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[W]=!0}var d=m.prototype;return d.parse=function(a){this.$d=function(f){var u=f.date,M=f.utc;if(u===null)return new Date(NaN);if(y.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var $=u.match(N);if($){var g=$[2]-1||0,O=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)):new Date($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)}}return new Date(u)}(a),this.init()},d.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},d.$utils=function(){return y},d.isValid=function(){return this.$d.toString()!==Y},d.isSame=function(a,f){var u=w(a);return this.startOf(f)<=u&&u<=this.endOf(f)},d.isAfter=function(a,f){return w(a)<this.startOf(f)},d.isBefore=function(a,f){return this.endOf(f)<w(a)},d.$g=function(a,f,u){return y.u(a)?this[f]:this.set(u,a)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(a,f){var u=this,M=!!y.u(f)||f,$=y.p(a),g=function(X,b){var G=y.w(u.$u?Date.UTC(u.$y,b,X):new Date(u.$y,b,X),u);return M?G:G.endOf(c)},O=function(X,b){return y.w(u.toDate()[X].apply(u.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(b)),u)},T=this.$W,A=this.$M,j=this.$D,nt="set"+(this.$u?"UTC":"");switch($){case D:return M?g(1,0):g(31,11);case l:return M?g(1,A):g(0,A+1);case h:var Q=this.$locale().weekStart||0,at=(T<Q?T+7:T)-Q;return g(M?j-at:j+(6-at),A);case c:case v:return O(nt+"Hours",0);case i:return O(nt+"Minutes",1);case s:return O(nt+"Seconds",2);case n:return O(nt+"Milliseconds",3);default:return this.clone()}},d.endOf=function(a){return this.startOf(a,!1)},d.$set=function(a,f){var u,M=y.p(a),$="set"+(this.$u?"UTC":""),g=(u={},u[c]=$+"Date",u[v]=$+"Date",u[l]=$+"Month",u[D]=$+"FullYear",u[i]=$+"Hours",u[s]=$+"Minutes",u[n]=$+"Seconds",u[r]=$+"Milliseconds",u)[M],O=M===c?this.$D+(f-this.$W):f;if(M===l||M===D){var T=this.clone().set(v,1);T.$d[g](O),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else g&&this.$d[g](O);return this.init(),this},d.set=function(a,f){return this.clone().$set(a,f)},d.get=function(a){return this[y.p(a)]()},d.add=function(a,f){var u,M=this;a=Number(a);var $=y.p(f),g=function(A){var j=w(M);return y.w(j.date(j.date()+Math.round(A*a)),M)};if($===l)return this.set(l,this.$M+a);if($===D)return this.set(D,this.$y+a);if($===c)return g(1);if($===h)return g(7);var O=(u={},u[s]=t,u[i]=e,u[n]=o,u)[$]||1,T=this.$d.getTime()+a*O;return y.w(T,this)},d.subtract=function(a,f){return this.add(-1*a,f)},d.format=function(a){var f=this,u=this.$locale();if(!this.isValid())return u.invalidDate||Y;var M=a||"YYYY-MM-DDTHH:mm:ssZ",$=y.z(this),g=this.$H,O=this.$m,T=this.$M,A=u.weekdays,j=u.months,nt=u.meridiem,Q=function(b,G,ot,$t){return b&&(b[G]||b(f,M))||ot[G].slice(0,$t)},at=function(b){return y.s(g%12||12,b,"0")},X=nt||function(b,G,ot){var $t=b<12?"AM":"PM";return ot?$t.toLowerCase():$t};return M.replace(U,function(b,G){return G||function(ot){switch(ot){case"YY":return String(f.$y).slice(-2);case"YYYY":return y.s(f.$y,4,"0");case"M":return T+1;case"MM":return y.s(T+1,2,"0");case"MMM":return Q(u.monthsShort,T,j,3);case"MMMM":return Q(j,T);case"D":return f.$D;case"DD":return y.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return Q(u.weekdaysMin,f.$W,A,2);case"ddd":return Q(u.weekdaysShort,f.$W,A,3);case"dddd":return A[f.$W];case"H":return String(g);case"HH":return y.s(g,2,"0");case"h":return at(1);case"hh":return at(2);case"a":return X(g,O,!0);case"A":return X(g,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(f.$s);case"ss":return y.s(f.$s,2,"0");case"SSS":return y.s(f.$ms,3,"0");case"Z":return $}return null}(b)||$.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(a,f,u){var M,$=this,g=y.p(f),O=w(a),T=(O.utcOffset()-this.utcOffset())*t,A=this-O,j=function(){return y.m($,O)};switch(g){case D:M=j()/12;break;case l:M=j();break;case _:M=j()/3;break;case h:M=(A-T)/6048e5;break;case c:M=(A-T)/864e5;break;case i:M=A/e;break;case s:M=A/t;break;case n:M=A/o;break;default:M=A}return u?M:y.a(M)},d.daysInMonth=function(){return this.endOf(l).$D},d.$locale=function(){return C[this.$L]},d.locale=function(a,f){if(!a)return this.$L;var u=this.clone(),M=mt(a,f,!0);return M&&(u.$L=M),u},d.clone=function(){return y.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},m}(),Ut=Mt.prototype;return w.prototype=Ut,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",c],["$M",l],["$y",D],["$D",v]].forEach(function(m){Ut[m[1]]=function(d){return this.$g(d,m[0],m[1])}}),w.extend=function(m,d){return m.$i||(m(d,Mt,w),m.$i=!0),w},w.locale=mt,w.isDayjs=Z,w.unix=function(m){return w(1e3*m)},w.en=C[S],w.Ls=C,w.p={},w})});var ne=_t((Et,bt)=>{"use strict";(function(o,t){typeof Et=="object"&&typeof bt<"u"?bt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_da=t(o.dayjs)})(Et,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(n){return n+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};return e.default.locale(r,null,!0),r})});var se=_t((kt,jt)=>{"use strict";(function(o,t){typeof kt=="object"&&typeof jt<"u"?jt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_de=t(o.dayjs)})(kt,function(o){"use strict";function t(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var e=t(o),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(i,c,h){var l=r[h];return Array.isArray(l)&&(l=l[c?0:1]),l.replace("%d",i)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(i){return i+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return e.default.locale(s,null,!0),s})});var ie=_t((xt,Ft)=>{"use strict";(function(o,t){typeof xt=="object"&&typeof Ft<"u"?Ft.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_fr=t(o.dayjs)})(xt,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(n){return""+n+(n===1?"er":"")}};return e.default.locale(r,null,!0),r})});var Jt=60,Rt=Jt*60,Pt=Rt*24,ce=Pt*7,J=1e3,q=Jt*J,K=Rt*J,tt=Pt*J,vt=ce*J,ut="millisecond",R="second",P="minute",z="hour",x="day",st="week",H="month",St="quarter",F="year",B="date",zt="YYYY-MM-DDTHH:mm:ssZ",Lt="Invalid Date",Vt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,yt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var Zt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var Tt=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},fe=function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+Tt(n,2,"0")+":"+Tt(s,2,"0")},he=function o(t,e){if(t.date()<e.date())return-o(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),n=t.clone().add(r,H),s=e-n<0,i=t.clone().add(r+(s?-1:1),H);return+(-(r+(e-n)/(s?n-i:i-n))||0)},le=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},me=function(t){var e={M:H,y:F,w:st,d:x,D:B,h:z,m:P,s:R,ms:ut,Q:St};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},Me=function(t){return t===void 0},Gt={s:Tt,z:fe,m:he,a:le,p:me,u:Me};var dt="en",et={};et[dt]=Zt;var qt="$isDayjsObject",It=function(t){return t instanceof Dt||!!(t&&t[qt])},pt=function o(t,e,r){var n;if(!t)return dt;if(typeof t=="string"){var s=t.toLowerCase();et[s]&&(n=s),e&&(et[s]=e,n=s);var i=t.split("-");if(!n&&i.length>1)return o(i[0])}else{var c=t.name;et[c]=t,n=c}return!r&&n&&(dt=n),n||!r&&dt},I=function(t,e){if(It(t))return t.clone();var r=typeof e=="object"?e:{};return r.date=t,r.args=arguments,new Dt(r)},$e=function(t,e){return I(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},p=Gt;p.l=pt;p.i=It;p.w=$e;var _e=function(t){var e=t.date,r=t.utc;if(e===null)return new Date(NaN);if(p.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var n=e.match(Vt);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)},Dt=function(){function o(e){this.$L=pt(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[qt]=!0}var t=o.prototype;return t.parse=function(r){this.$d=_e(r),this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return p},t.isValid=function(){return this.$d.toString()!==Lt},t.isSame=function(r,n){var s=I(r);return this.startOf(n)<=s&&s<=this.endOf(n)},t.isAfter=function(r,n){return I(r)<this.startOf(n)},t.isBefore=function(r,n){return this.endOf(n)<I(r)},t.$g=function(r,n,s){return p.u(r)?this[n]:this.set(s,r)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(r,n){var s=this,i=p.u(n)?!0:n,c=p.p(r),h=function(E,L){var S=p.w(s.$u?Date.UTC(s.$y,L,E):new Date(s.$y,L,E),s);return i?S:S.endOf(x)},l=function(E,L){var S=[0,0,0,0],C=[23,59,59,999];return p.w(s.toDate()[E].apply(s.toDate("s"),(i?S:C).slice(L)),s)},_=this.$W,D=this.$M,v=this.$D,Y="set"+(this.$u?"UTC":"");switch(c){case F:return i?h(1,0):h(31,11);case H:return i?h(1,D):h(0,D+1);case st:{var N=this.$locale().weekStart||0,U=(_<N?_+7:_)-N;return h(i?v-U:v+(6-U),D)}case x:case B:return l(Y+"Hours",0);case z:return l(Y+"Minutes",1);case P:return l(Y+"Seconds",2);case R:return l(Y+"Milliseconds",3);default:return this.clone()}},t.endOf=function(r){return this.startOf(r,!1)},t.$set=function(r,n){var s,i=p.p(r),c="set"+(this.$u?"UTC":""),h=(s={},s[x]=c+"Date",s[B]=c+"Date",s[H]=c+"Month",s[F]=c+"FullYear",s[z]=c+"Hours",s[P]=c+"Minutes",s[R]=c+"Seconds",s[ut]=c+"Milliseconds",s)[i],l=i===x?this.$D+(n-this.$W):n;if(i===H||i===F){var _=this.clone().set(B,1);_.$d[h](l),_.init(),this.$d=_.set(B,Math.min(this.$D,_.daysInMonth())).$d}else h&&this.$d[h](l);return this.init(),this},t.set=function(r,n){return this.clone().$set(r,n)},t.get=function(r){return this[p.p(r)]()},t.add=function(r,n){var s=this,i;r=Number(r);var c=p.p(n),h=function(v){var Y=I(s);return p.w(Y.date(Y.date()+Math.round(v*r)),s)};if(c===H)return this.set(H,this.$M+r);if(c===F)return this.set(F,this.$y+r);if(c===x)return h(1);if(c===st)return h(7);var l=(i={},i[P]=q,i[z]=K,i[R]=J,i)[c]||1,_=this.$d.getTime()+r*l;return p.w(_,this)},t.subtract=function(r,n){return this.add(r*-1,n)},t.format=function(r){var n=this,s=this.$locale();if(!this.isValid())return s.invalidDate||Lt;var i=r||zt,c=p.z(this),h=this.$H,l=this.$m,_=this.$M,D=s.weekdays,v=s.months,Y=s.meridiem,N=function(S,C,W,Z){return S&&(S[C]||S(n,i))||W[C].slice(0,Z)},U=function(S){return p.s(h%12||12,S,"0")},k=Y||function(L,S,C){var W=L<12?"AM":"PM";return C?W.toLowerCase():W},E=function(S){switch(S){case"YY":return String(n.$y).slice(-2);case"YYYY":return p.s(n.$y,4,"0");case"M":return _+1;case"MM":return p.s(_+1,2,"0");case"MMM":return N(s.monthsShort,_,v,3);case"MMMM":return N(v,_);case"D":return n.$D;case"DD":return p.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return N(s.weekdaysMin,n.$W,D,2);case"ddd":return N(s.weekdaysShort,n.$W,D,3);case"dddd":return D[n.$W];case"H":return String(h);case"HH":return p.s(h,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return k(h,l,!0);case"A":return k(h,l,!1);case"m":return String(l);case"mm":return p.s(l,2,"0");case"s":return String(n.$s);case"ss":return p.s(n.$s,2,"0");case"SSS":return p.s(n.$ms,3,"0");case"Z":return c;default:break}return null};return i.replace(yt,function(L,S){return S||E(L)||c.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(r,n,s){var i=this,c=p.p(n),h=I(r),l=(h.utcOffset()-this.utcOffset())*q,_=this-h,D=function(){return p.m(i,h)},v;switch(c){case F:v=D()/12;break;case H:v=D();break;case St:v=D()/3;break;case st:v=(_-l)/vt;break;case x:v=(_-l)/tt;break;case z:v=_/K;break;case P:v=_/q;break;case R:v=_/J;break;default:v=_;break}return s?v:p.a(v)},t.daysInMonth=function(){return this.endOf(H).$D},t.$locale=function(){return et[this.$L]},t.locale=function(r,n){if(!r)return this.$L;var s=this.clone(),i=pt(r,n,!0);return i&&(s.$L=i),s},t.clone=function(){return p.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},o}(),Bt=Dt.prototype;I.prototype=Bt;[["$ms",ut],["$s",R],["$m",P],["$H",z],["$W",x],["$M",H],["$y",F],["$D",B]].forEach(function(o){Bt[o[1]]=function(t){return this.$g(t,o[0],o[1])}});I.extend=function(o,t){return o.$i||(o(t,Dt,I),o.$i=!0),I};I.locale=pt;I.isDayjs=It;I.unix=function(o){return I(o*1e3)};I.en=et[dt];I.Ls=et;I.p={};var ct=I;var Ct=tt*365,At=Ct/12,ve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ft={years:Ct,months:At,days:tt,hours:K,minutes:q,seconds:J,milliseconds:1,weeks:vt},gt=function(t){return t instanceof te},Xt,V,lt=function(t,e,r){return new te(t,r,e.$l)},ht=function(t){return V.p(t)+"s"},Kt=function(t){return t<0},rt=function(t){return Kt(t)?Math.ceil(t):Math.floor(t)},Se=function(t){return Math.abs(t)},it=function(t,e){return t?Kt(t)?{negative:!0,format:""+Se(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},te=function(){function o(e,r,n){var s=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return lt(e*ft[ht(r)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach(function(l){s.$d[ht(l)]=e[l]}),this.calMilliseconds(),this;if(typeof e=="string"){var i=e.match(ve);if(i){var c=i.slice(2),h=c.map(function(l){return l!=null?Number(l):0});return this.$d.years=h[0],this.$d.months=h[1],this.$d.weeks=h[2],this.$d.days=h[3],this.$d.hours=h[4],this.$d.minutes=h[5],this.$d.seconds=h[6],this.calMilliseconds(),this}}return this}var t=o.prototype;return t.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(n,s){return n+(r.$d[s]||0)*ft[s]},0)},t.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=rt(r/Ct),r%=Ct,this.$d.months=rt(r/At),r%=At,this.$d.days=rt(r/tt),r%=tt,this.$d.hours=rt(r/K),r%=K,this.$d.minutes=rt(r/q),r%=q,this.$d.seconds=rt(r/J),r%=J,this.$d.milliseconds=r},t.toISOString=function(){var r=it(this.$d.years,"Y"),n=it(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=it(s,"D"),c=it(this.$d.hours,"H"),h=it(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(l*1e3)/1e3);var _=it(l,"S"),D=r.negative||n.negative||i.negative||c.negative||h.negative||_.negative,v=c.format||h.format||_.format?"T":"",Y=D?"-":"",N=Y+"P"+r.format+n.format+i.format+v+c.format+h.format+_.format;return N==="P"||N==="-P"?"P0D":N},t.toJSON=function(){return this.toISOString()},t.format=function(r){var n=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:V.s(this.$d.years,2,"0"),YYYY:V.s(this.$d.years,4,"0"),M:this.$d.months,MM:V.s(this.$d.months,2,"0"),D:this.$d.days,DD:V.s(this.$d.days,2,"0"),H:this.$d.hours,HH:V.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:V.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:V.s(this.$d.seconds,2,"0"),SSS:V.s(this.$d.milliseconds,3,"0")};return n.replace(yt,function(i,c){return c||String(s[i])})},t.as=function(r){return this.$ms/ft[ht(r)]},t.get=function(r){var n=this.$ms,s=ht(r);return s==="milliseconds"?n%=1e3:s==="weeks"?n=rt(n/ft[s]):n=this.$d[s],n||0},t.add=function(r,n,s){var i;return n?i=r*ft[ht(n)]:gt(r)?i=r.$ms:i=lt(r,this).$ms,lt(this.$ms+i*(s?-1:1),this)},t.subtract=function(r,n){return this.add(r,n,!0)},t.locale=function(r){var n=this.clone();return n.$l=r,n},t.clone=function(){return lt(this.$ms,this)},t.humanize=function(r){return Xt().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},o}(),Qt=function(t,e,r){return t.add(e.years()*r,"y").add(e.months()*r,"M").add(e.days()*r,"d").add(e.hours()*r,"h").add(e.minutes()*r,"m").add(e.seconds()*r,"s").add(e.milliseconds()*r,"ms")},ee=function(o,t,e){Xt=e,V=e().$utils(),e.duration=function(s,i){var c=e.locale();return lt(s,{$l:c},i)},e.isDuration=gt;var r=t.prototype.add,n=t.prototype.subtract;t.prototype.add=function(s,i){return gt(s)?Qt(this,s,1):r.bind(this)(s,i)},t.prototype.subtract=function(s,i){return gt(s)?Qt(this,s,-1):n.bind(this)(s,i)}};var re=function(o,t,e){o=o||{};var r=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};e.en.relativeTime=n,r.fromToBase=function(c,h,l,_,D){for(var v=l.$locale().relativeTime||n,Y=o.thresholds||[{l:"s",r:44,d:R},{l:"m",r:89},{l:"mm",r:44,d:P},{l:"h",r:89},{l:"hh",r:21,d:z},{l:"d",r:35},{l:"dd",r:25,d:x},{l:"M",r:45},{l:"MM",r:10,d:H},{l:"y",r:17},{l:"yy",d:F}],N=Y.length,U,k,E,L=0;L<N;L+=1){var S=Y[L];S.d&&(U=_?e(c).diff(l,S.d,!0):l.diff(c,S.d,!0));var C=(o.rounding||Math.round)(Math.abs(U));if(E=U>0,C<=S.r||!S.r){C<=1&&L>0&&(S=Y[L-1]);var W=v[S.l];D&&(C=D(""+C)),typeof W=="string"?k=W.replace("%d",C):k=W(C,h,S.l,E);break}}if(h)return k;var Z=E?v.future:v.past;return typeof Z=="function"?Z(k):Z.replace("%s",k)};function s(c,h,l,_){return r.fromToBase(c,h,l,_)}r.to=function(c,h){return s(c,h,this,!0)},r.from=function(c,h){return s(c,h,this)};var i=function(h){return h.$u?e.utc():e()};r.toNow=function(c){return this.to(i(this),c)},r.fromNow=function(c){return this.from(i(this),c)}};var ae=Yt(ne()),oe=Yt(se()),ue=Yt(ie()),de={da:ae.default,de:oe.default,fr:ue.default};var ye=new Wt("Dayjs"),ke={provide:ye,useFactory:()=>{let t=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return ct.extend(re),ct.extend(ee),ct.locale(de[t]),ct}};export{ye as a,ke as b};
|
|
1
|
+
import{U as Wt}from"./chunk-UYXZTHXX.js";import{d as _t,e as Yt}from"./chunk-C6Q5SG76.js";var Ot=_t((Nt,Ht)=>{"use strict";(function(o,t){typeof Nt=="object"&&typeof Ht<"u"?Ht.exports=t():typeof define=="function"&&define.amd?define(t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs=t()})(Nt,function(){"use strict";var o=1e3,t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",c="day",h="week",l="month",_="quarter",D="year",v="date",Y="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(m){var d=["th","st","nd","rd"],a=m%100;return"["+m+(d[(a-20)%10]||d[a]||d[0])+"]"}},E=function(m,d,a){var f=String(m);return!f||f.length>=d?m:""+Array(d+1-f.length).join(a)+m},L={s:E,z:function(m){var d=-m.utcOffset(),a=Math.abs(d),f=Math.floor(a/60),u=a%60;return(d<=0?"+":"-")+E(f,2,"0")+":"+E(u,2,"0")},m:function m(d,a){if(d.date()<a.date())return-m(a,d);var f=12*(a.year()-d.year())+(a.month()-d.month()),u=d.clone().add(f,l),M=a-u<0,$=d.clone().add(f+(M?-1:1),l);return+(-(f+(a-u)/(M?u-$:$-u))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:l,y:D,w:h,d:c,D:v,h:i,m:s,s:n,ms:r,Q:_}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},S="en",C={};C[S]=k;var W="$isDayjsObject",Z=function(m){return m instanceof Mt||!(!m||!m[W])},mt=function m(d,a,f){var u;if(!d)return S;if(typeof d=="string"){var M=d.toLowerCase();C[M]&&(u=M),a&&(C[M]=a,u=M);var $=d.split("-");if(!u&&$.length>1)return m($[0])}else{var g=d.name;C[g]=d,u=g}return!f&&u&&(S=u),u||!f&&S},w=function(m,d){if(Z(m))return m.clone();var a=typeof d=="object"?d:{};return a.date=m,a.args=arguments,new Mt(a)},y=L;y.l=mt,y.i=Z,y.w=function(m,d){return w(m,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var Mt=function(){function m(a){this.$L=mt(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[W]=!0}var d=m.prototype;return d.parse=function(a){this.$d=function(f){var u=f.date,M=f.utc;if(u===null)return new Date(NaN);if(y.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var $=u.match(N);if($){var g=$[2]-1||0,O=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)):new Date($[1],g,$[3]||1,$[4]||0,$[5]||0,$[6]||0,O)}}return new Date(u)}(a),this.init()},d.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},d.$utils=function(){return y},d.isValid=function(){return this.$d.toString()!==Y},d.isSame=function(a,f){var u=w(a);return this.startOf(f)<=u&&u<=this.endOf(f)},d.isAfter=function(a,f){return w(a)<this.startOf(f)},d.isBefore=function(a,f){return this.endOf(f)<w(a)},d.$g=function(a,f,u){return y.u(a)?this[f]:this.set(u,a)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(a,f){var u=this,M=!!y.u(f)||f,$=y.p(a),g=function(X,b){var G=y.w(u.$u?Date.UTC(u.$y,b,X):new Date(u.$y,b,X),u);return M?G:G.endOf(c)},O=function(X,b){return y.w(u.toDate()[X].apply(u.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(b)),u)},T=this.$W,A=this.$M,j=this.$D,nt="set"+(this.$u?"UTC":"");switch($){case D:return M?g(1,0):g(31,11);case l:return M?g(1,A):g(0,A+1);case h:var Q=this.$locale().weekStart||0,at=(T<Q?T+7:T)-Q;return g(M?j-at:j+(6-at),A);case c:case v:return O(nt+"Hours",0);case i:return O(nt+"Minutes",1);case s:return O(nt+"Seconds",2);case n:return O(nt+"Milliseconds",3);default:return this.clone()}},d.endOf=function(a){return this.startOf(a,!1)},d.$set=function(a,f){var u,M=y.p(a),$="set"+(this.$u?"UTC":""),g=(u={},u[c]=$+"Date",u[v]=$+"Date",u[l]=$+"Month",u[D]=$+"FullYear",u[i]=$+"Hours",u[s]=$+"Minutes",u[n]=$+"Seconds",u[r]=$+"Milliseconds",u)[M],O=M===c?this.$D+(f-this.$W):f;if(M===l||M===D){var T=this.clone().set(v,1);T.$d[g](O),T.init(),this.$d=T.set(v,Math.min(this.$D,T.daysInMonth())).$d}else g&&this.$d[g](O);return this.init(),this},d.set=function(a,f){return this.clone().$set(a,f)},d.get=function(a){return this[y.p(a)]()},d.add=function(a,f){var u,M=this;a=Number(a);var $=y.p(f),g=function(A){var j=w(M);return y.w(j.date(j.date()+Math.round(A*a)),M)};if($===l)return this.set(l,this.$M+a);if($===D)return this.set(D,this.$y+a);if($===c)return g(1);if($===h)return g(7);var O=(u={},u[s]=t,u[i]=e,u[n]=o,u)[$]||1,T=this.$d.getTime()+a*O;return y.w(T,this)},d.subtract=function(a,f){return this.add(-1*a,f)},d.format=function(a){var f=this,u=this.$locale();if(!this.isValid())return u.invalidDate||Y;var M=a||"YYYY-MM-DDTHH:mm:ssZ",$=y.z(this),g=this.$H,O=this.$m,T=this.$M,A=u.weekdays,j=u.months,nt=u.meridiem,Q=function(b,G,ot,$t){return b&&(b[G]||b(f,M))||ot[G].slice(0,$t)},at=function(b){return y.s(g%12||12,b,"0")},X=nt||function(b,G,ot){var $t=b<12?"AM":"PM";return ot?$t.toLowerCase():$t};return M.replace(U,function(b,G){return G||function(ot){switch(ot){case"YY":return String(f.$y).slice(-2);case"YYYY":return y.s(f.$y,4,"0");case"M":return T+1;case"MM":return y.s(T+1,2,"0");case"MMM":return Q(u.monthsShort,T,j,3);case"MMMM":return Q(j,T);case"D":return f.$D;case"DD":return y.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return Q(u.weekdaysMin,f.$W,A,2);case"ddd":return Q(u.weekdaysShort,f.$W,A,3);case"dddd":return A[f.$W];case"H":return String(g);case"HH":return y.s(g,2,"0");case"h":return at(1);case"hh":return at(2);case"a":return X(g,O,!0);case"A":return X(g,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(f.$s);case"ss":return y.s(f.$s,2,"0");case"SSS":return y.s(f.$ms,3,"0");case"Z":return $}return null}(b)||$.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(a,f,u){var M,$=this,g=y.p(f),O=w(a),T=(O.utcOffset()-this.utcOffset())*t,A=this-O,j=function(){return y.m($,O)};switch(g){case D:M=j()/12;break;case l:M=j();break;case _:M=j()/3;break;case h:M=(A-T)/6048e5;break;case c:M=(A-T)/864e5;break;case i:M=A/e;break;case s:M=A/t;break;case n:M=A/o;break;default:M=A}return u?M:y.a(M)},d.daysInMonth=function(){return this.endOf(l).$D},d.$locale=function(){return C[this.$L]},d.locale=function(a,f){if(!a)return this.$L;var u=this.clone(),M=mt(a,f,!0);return M&&(u.$L=M),u},d.clone=function(){return y.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},m}(),Ut=Mt.prototype;return w.prototype=Ut,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",c],["$M",l],["$y",D],["$D",v]].forEach(function(m){Ut[m[1]]=function(d){return this.$g(d,m[0],m[1])}}),w.extend=function(m,d){return m.$i||(m(d,Mt,w),m.$i=!0),w},w.locale=mt,w.isDayjs=Z,w.unix=function(m){return w(1e3*m)},w.en=C[S],w.Ls=C,w.p={},w})});var ne=_t((Et,bt)=>{"use strict";(function(o,t){typeof Et=="object"&&typeof bt<"u"?bt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_da=t(o.dayjs)})(Et,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(n){return n+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};return e.default.locale(r,null,!0),r})});var se=_t((kt,jt)=>{"use strict";(function(o,t){typeof kt=="object"&&typeof jt<"u"?jt.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_de=t(o.dayjs)})(kt,function(o){"use strict";function t(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var e=t(o),r={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(i,c,h){var l=r[h];return Array.isArray(l)&&(l=l[c?0:1]),l.replace("%d",i)}var s={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(i){return i+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return e.default.locale(s,null,!0),s})});var ie=_t((xt,Ft)=>{"use strict";(function(o,t){typeof xt=="object"&&typeof Ft<"u"?Ft.exports=t(Ot()):typeof define=="function"&&define.amd?define(["dayjs"],t):(o=typeof globalThis<"u"?globalThis:o||self).dayjs_locale_fr=t(o.dayjs)})(xt,function(o){"use strict";function t(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var e=t(o),r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(n){return""+n+(n===1?"er":"")}};return e.default.locale(r,null,!0),r})});var Jt=60,Rt=Jt*60,Pt=Rt*24,ce=Pt*7,J=1e3,q=Jt*J,K=Rt*J,tt=Pt*J,vt=ce*J,ut="millisecond",R="second",P="minute",z="hour",x="day",st="week",H="month",St="quarter",F="year",B="date",zt="YYYY-MM-DDTHH:mm:ssZ",Lt="Invalid Date",Vt=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,yt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var Zt={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var Tt=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},fe=function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+Tt(n,2,"0")+":"+Tt(s,2,"0")},he=function o(t,e){if(t.date()<e.date())return-o(e,t);var r=(e.year()-t.year())*12+(e.month()-t.month()),n=t.clone().add(r,H),s=e-n<0,i=t.clone().add(r+(s?-1:1),H);return+(-(r+(e-n)/(s?n-i:i-n))||0)},le=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},me=function(t){var e={M:H,y:F,w:st,d:x,D:B,h:z,m:P,s:R,ms:ut,Q:St};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},Me=function(t){return t===void 0},Gt={s:Tt,z:fe,m:he,a:le,p:me,u:Me};var dt="en",et={};et[dt]=Zt;var qt="$isDayjsObject",It=function(t){return t instanceof Dt||!!(t&&t[qt])},pt=function o(t,e,r){var n;if(!t)return dt;if(typeof t=="string"){var s=t.toLowerCase();et[s]&&(n=s),e&&(et[s]=e,n=s);var i=t.split("-");if(!n&&i.length>1)return o(i[0])}else{var c=t.name;et[c]=t,n=c}return!r&&n&&(dt=n),n||!r&&dt},I=function(t,e){if(It(t))return t.clone();var r=typeof e=="object"?e:{};return r.date=t,r.args=arguments,new Dt(r)},$e=function(t,e){return I(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},p=Gt;p.l=pt;p.i=It;p.w=$e;var _e=function(t){var e=t.date,r=t.utc;if(e===null)return new Date(NaN);if(p.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var n=e.match(Vt);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)},Dt=function(){function o(e){this.$L=pt(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[qt]=!0}var t=o.prototype;return t.parse=function(r){this.$d=_e(r),this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return p},t.isValid=function(){return this.$d.toString()!==Lt},t.isSame=function(r,n){var s=I(r);return this.startOf(n)<=s&&s<=this.endOf(n)},t.isAfter=function(r,n){return I(r)<this.startOf(n)},t.isBefore=function(r,n){return this.endOf(n)<I(r)},t.$g=function(r,n,s){return p.u(r)?this[n]:this.set(s,r)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(r,n){var s=this,i=p.u(n)?!0:n,c=p.p(r),h=function(E,L){var S=p.w(s.$u?Date.UTC(s.$y,L,E):new Date(s.$y,L,E),s);return i?S:S.endOf(x)},l=function(E,L){var S=[0,0,0,0],C=[23,59,59,999];return p.w(s.toDate()[E].apply(s.toDate("s"),(i?S:C).slice(L)),s)},_=this.$W,D=this.$M,v=this.$D,Y="set"+(this.$u?"UTC":"");switch(c){case F:return i?h(1,0):h(31,11);case H:return i?h(1,D):h(0,D+1);case st:{var N=this.$locale().weekStart||0,U=(_<N?_+7:_)-N;return h(i?v-U:v+(6-U),D)}case x:case B:return l(Y+"Hours",0);case z:return l(Y+"Minutes",1);case P:return l(Y+"Seconds",2);case R:return l(Y+"Milliseconds",3);default:return this.clone()}},t.endOf=function(r){return this.startOf(r,!1)},t.$set=function(r,n){var s,i=p.p(r),c="set"+(this.$u?"UTC":""),h=(s={},s[x]=c+"Date",s[B]=c+"Date",s[H]=c+"Month",s[F]=c+"FullYear",s[z]=c+"Hours",s[P]=c+"Minutes",s[R]=c+"Seconds",s[ut]=c+"Milliseconds",s)[i],l=i===x?this.$D+(n-this.$W):n;if(i===H||i===F){var _=this.clone().set(B,1);_.$d[h](l),_.init(),this.$d=_.set(B,Math.min(this.$D,_.daysInMonth())).$d}else h&&this.$d[h](l);return this.init(),this},t.set=function(r,n){return this.clone().$set(r,n)},t.get=function(r){return this[p.p(r)]()},t.add=function(r,n){var s=this,i;r=Number(r);var c=p.p(n),h=function(v){var Y=I(s);return p.w(Y.date(Y.date()+Math.round(v*r)),s)};if(c===H)return this.set(H,this.$M+r);if(c===F)return this.set(F,this.$y+r);if(c===x)return h(1);if(c===st)return h(7);var l=(i={},i[P]=q,i[z]=K,i[R]=J,i)[c]||1,_=this.$d.getTime()+r*l;return p.w(_,this)},t.subtract=function(r,n){return this.add(r*-1,n)},t.format=function(r){var n=this,s=this.$locale();if(!this.isValid())return s.invalidDate||Lt;var i=r||zt,c=p.z(this),h=this.$H,l=this.$m,_=this.$M,D=s.weekdays,v=s.months,Y=s.meridiem,N=function(S,C,W,Z){return S&&(S[C]||S(n,i))||W[C].slice(0,Z)},U=function(S){return p.s(h%12||12,S,"0")},k=Y||function(L,S,C){var W=L<12?"AM":"PM";return C?W.toLowerCase():W},E=function(S){switch(S){case"YY":return String(n.$y).slice(-2);case"YYYY":return p.s(n.$y,4,"0");case"M":return _+1;case"MM":return p.s(_+1,2,"0");case"MMM":return N(s.monthsShort,_,v,3);case"MMMM":return N(v,_);case"D":return n.$D;case"DD":return p.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return N(s.weekdaysMin,n.$W,D,2);case"ddd":return N(s.weekdaysShort,n.$W,D,3);case"dddd":return D[n.$W];case"H":return String(h);case"HH":return p.s(h,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return k(h,l,!0);case"A":return k(h,l,!1);case"m":return String(l);case"mm":return p.s(l,2,"0");case"s":return String(n.$s);case"ss":return p.s(n.$s,2,"0");case"SSS":return p.s(n.$ms,3,"0");case"Z":return c;default:break}return null};return i.replace(yt,function(L,S){return S||E(L)||c.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(r,n,s){var i=this,c=p.p(n),h=I(r),l=(h.utcOffset()-this.utcOffset())*q,_=this-h,D=function(){return p.m(i,h)},v;switch(c){case F:v=D()/12;break;case H:v=D();break;case St:v=D()/3;break;case st:v=(_-l)/vt;break;case x:v=(_-l)/tt;break;case z:v=_/K;break;case P:v=_/q;break;case R:v=_/J;break;default:v=_;break}return s?v:p.a(v)},t.daysInMonth=function(){return this.endOf(H).$D},t.$locale=function(){return et[this.$L]},t.locale=function(r,n){if(!r)return this.$L;var s=this.clone(),i=pt(r,n,!0);return i&&(s.$L=i),s},t.clone=function(){return p.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},o}(),Bt=Dt.prototype;I.prototype=Bt;[["$ms",ut],["$s",R],["$m",P],["$H",z],["$W",x],["$M",H],["$y",F],["$D",B]].forEach(function(o){Bt[o[1]]=function(t){return this.$g(t,o[0],o[1])}});I.extend=function(o,t){return o.$i||(o(t,Dt,I),o.$i=!0),I};I.locale=pt;I.isDayjs=It;I.unix=function(o){return I(o*1e3)};I.en=et[dt];I.Ls=et;I.p={};var ct=I;var Ct=tt*365,At=Ct/12,ve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,ft={years:Ct,months:At,days:tt,hours:K,minutes:q,seconds:J,milliseconds:1,weeks:vt},gt=function(t){return t instanceof te},Xt,V,lt=function(t,e,r){return new te(t,r,e.$l)},ht=function(t){return V.p(t)+"s"},Kt=function(t){return t<0},rt=function(t){return Kt(t)?Math.ceil(t):Math.floor(t)},Se=function(t){return Math.abs(t)},it=function(t,e){return t?Kt(t)?{negative:!0,format:""+Se(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},te=function(){function o(e,r,n){var s=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return lt(e*ft[ht(r)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach(function(l){s.$d[ht(l)]=e[l]}),this.calMilliseconds(),this;if(typeof e=="string"){var i=e.match(ve);if(i){var c=i.slice(2),h=c.map(function(l){return l!=null?Number(l):0});return this.$d.years=h[0],this.$d.months=h[1],this.$d.weeks=h[2],this.$d.days=h[3],this.$d.hours=h[4],this.$d.minutes=h[5],this.$d.seconds=h[6],this.calMilliseconds(),this}}return this}var t=o.prototype;return t.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(n,s){return n+(r.$d[s]||0)*ft[s]},0)},t.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=rt(r/Ct),r%=Ct,this.$d.months=rt(r/At),r%=At,this.$d.days=rt(r/tt),r%=tt,this.$d.hours=rt(r/K),r%=K,this.$d.minutes=rt(r/q),r%=q,this.$d.seconds=rt(r/J),r%=J,this.$d.milliseconds=r},t.toISOString=function(){var r=it(this.$d.years,"Y"),n=it(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=it(s,"D"),c=it(this.$d.hours,"H"),h=it(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(l*1e3)/1e3);var _=it(l,"S"),D=r.negative||n.negative||i.negative||c.negative||h.negative||_.negative,v=c.format||h.format||_.format?"T":"",Y=D?"-":"",N=Y+"P"+r.format+n.format+i.format+v+c.format+h.format+_.format;return N==="P"||N==="-P"?"P0D":N},t.toJSON=function(){return this.toISOString()},t.format=function(r){var n=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:V.s(this.$d.years,2,"0"),YYYY:V.s(this.$d.years,4,"0"),M:this.$d.months,MM:V.s(this.$d.months,2,"0"),D:this.$d.days,DD:V.s(this.$d.days,2,"0"),H:this.$d.hours,HH:V.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:V.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:V.s(this.$d.seconds,2,"0"),SSS:V.s(this.$d.milliseconds,3,"0")};return n.replace(yt,function(i,c){return c||String(s[i])})},t.as=function(r){return this.$ms/ft[ht(r)]},t.get=function(r){var n=this.$ms,s=ht(r);return s==="milliseconds"?n%=1e3:s==="weeks"?n=rt(n/ft[s]):n=this.$d[s],n||0},t.add=function(r,n,s){var i;return n?i=r*ft[ht(n)]:gt(r)?i=r.$ms:i=lt(r,this).$ms,lt(this.$ms+i*(s?-1:1),this)},t.subtract=function(r,n){return this.add(r,n,!0)},t.locale=function(r){var n=this.clone();return n.$l=r,n},t.clone=function(){return lt(this.$ms,this)},t.humanize=function(r){return Xt().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},t.valueOf=function(){return this.asMilliseconds()},t.milliseconds=function(){return this.get("milliseconds")},t.asMilliseconds=function(){return this.as("milliseconds")},t.seconds=function(){return this.get("seconds")},t.asSeconds=function(){return this.as("seconds")},t.minutes=function(){return this.get("minutes")},t.asMinutes=function(){return this.as("minutes")},t.hours=function(){return this.get("hours")},t.asHours=function(){return this.as("hours")},t.days=function(){return this.get("days")},t.asDays=function(){return this.as("days")},t.weeks=function(){return this.get("weeks")},t.asWeeks=function(){return this.as("weeks")},t.months=function(){return this.get("months")},t.asMonths=function(){return this.as("months")},t.years=function(){return this.get("years")},t.asYears=function(){return this.as("years")},o}(),Qt=function(t,e,r){return t.add(e.years()*r,"y").add(e.months()*r,"M").add(e.days()*r,"d").add(e.hours()*r,"h").add(e.minutes()*r,"m").add(e.seconds()*r,"s").add(e.milliseconds()*r,"ms")},ee=function(o,t,e){Xt=e,V=e().$utils(),e.duration=function(s,i){var c=e.locale();return lt(s,{$l:c},i)},e.isDuration=gt;var r=t.prototype.add,n=t.prototype.subtract;t.prototype.add=function(s,i){return gt(s)?Qt(this,s,1):r.bind(this)(s,i)},t.prototype.subtract=function(s,i){return gt(s)?Qt(this,s,-1):n.bind(this)(s,i)}};var re=function(o,t,e){o=o||{};var r=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};e.en.relativeTime=n,r.fromToBase=function(c,h,l,_,D){for(var v=l.$locale().relativeTime||n,Y=o.thresholds||[{l:"s",r:44,d:R},{l:"m",r:89},{l:"mm",r:44,d:P},{l:"h",r:89},{l:"hh",r:21,d:z},{l:"d",r:35},{l:"dd",r:25,d:x},{l:"M",r:45},{l:"MM",r:10,d:H},{l:"y",r:17},{l:"yy",d:F}],N=Y.length,U,k,E,L=0;L<N;L+=1){var S=Y[L];S.d&&(U=_?e(c).diff(l,S.d,!0):l.diff(c,S.d,!0));var C=(o.rounding||Math.round)(Math.abs(U));if(E=U>0,C<=S.r||!S.r){C<=1&&L>0&&(S=Y[L-1]);var W=v[S.l];D&&(C=D(""+C)),typeof W=="string"?k=W.replace("%d",C):k=W(C,h,S.l,E);break}}if(h)return k;var Z=E?v.future:v.past;return typeof Z=="function"?Z(k):Z.replace("%s",k)};function s(c,h,l,_){return r.fromToBase(c,h,l,_)}r.to=function(c,h){return s(c,h,this,!0)},r.from=function(c,h){return s(c,h,this)};var i=function(h){return h.$u?e.utc():e()};r.toNow=function(c){return this.to(i(this),c)},r.fromNow=function(c){return this.from(i(this),c)}};var ae=Yt(ne()),oe=Yt(se()),ue=Yt(ie()),de={da:ae.default,de:oe.default,fr:ue.default};var ye=new Wt("Dayjs"),ke={provide:ye,useFactory:()=>{let t=(localStorage.getItem("v1:duplicati:locale")??"en-US").split("-")[0];return ct.extend(re),ct.extend(ee),ct.locale(de[t]),ct}};export{ye as a,ke as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ee}from"./chunk-K5R45UNO.js";import{b as X,c as z}from"./chunk-5522ZDTF.js";import{a as q,g as J,k as H,o as U,v as Q}from"./chunk-IBZEQWFY.js";import{a as $}from"./chunk-UUC5AIWR.js";import{H as W}from"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import"./chunk-JQGZUGRK.js";import{a as Y}from"./chunk-NUXXITWB.js";import"./chunk-QJZQNKYK.js";import{a as Z}from"./chunk-BV3HBNH3.js";import{pa as F,sa as w}from"./chunk-65UFWL3O.js";import{Ab as g,Bb as M,Cb as S,Db as h,Eb as n,Fb as t,Gb as c,Hb as T,Ib as I,Kb as N,Ra as i,Sb as k,Wb as E,X as P,Xb as s,Za as f,ea as G,fa as B,fb as b,ic as a,jc as C,kc as d,lb as _,lc as x,p as O,ra as A,vb as y,vc as p,wc as m,xb as L,xc as u}from"./chunk-UYXZTHXX.js";import{a as D}from"./chunk-C6Q5SG76.js";function ie(o,r){o&1&&c(0,"spk-progress-bar",2)}function ae(o,r){if(o&1&&(n(0,"code"),a(1),p(2,"json"),t()),o&2){let e=r.$implicit;i(),C(m(2,1,e))}}function oe(o,r){o&1&&(n(0,"p"),a(1,"No errors"),t())}function re(o,r){if(o&1&&(n(0,"code"),a(1),p(2,"json"),t()),o&2){let e=r.$implicit;i(),C(m(2,1,e))}}function le(o,r){if(o&1&&(n(0,"section",6)(1,"app-toggle-card",7),T(2,8),n(3,"h3"),k(4,0),t(),I(),T(5,9),n(6,"p"),a(7),p(8,"date"),t(),n(9,"p"),a(10),p(11,"date"),t(),n(12,"p"),a(13),p(14,"durationFormat"),t(),I(),t(),n(15,"app-toggle-card",7),T(16,8),n(17,"h3"),k(18,1),t(),I(),T(19,9),n(20,"p"),a(21),p(22,"bytes"),t(),n(23,"p"),a(24),p(25,"bytes"),t(),n(26,"p"),a(27),p(28,"bytes"),t(),n(29,"p"),a(30),p(31,"bytes"),t(),n(32,"p"),a(33),t(),n(34,"p"),a(35),t(),n(36,"p"),a(37),t(),I(),t(),n(38,"div",10),c(39,"spk-divider"),n(40,"details",11)(41,"summary")(42,"spk-icon"),a(43,"circle-half-tilt"),t(),a(44," Test phase "),t(),n(45,"div",12)(46,"p"),a(47),p(48,"date"),t(),n(49,"p"),a(50),p(51,"date"),t(),n(52,"p"),a(53),p(54,"durationFormat"),t(),n(55,"p"),a(56),t(),c(57,"spk-divider"),n(58,"p"),a(59),t(),n(60,"p"),a(61),t()()(),n(62,"details",11)(63,"summary")(64,"spk-icon"),a(65,"file-archive"),t(),a(66," Compression phase "),t(),n(67,"div",12)(68,"p"),a(69),p(70,"date"),t(),n(71,"p"),a(72),p(73,"date"),t(),n(74,"p"),a(75),p(76,"durationFormat"),t(),c(77,"spk-divider"),n(78,"p"),a(79),p(80,"bytes"),t(),n(81,"p"),a(82),p(83,"bytes"),t(),n(84,"p"),a(85),p(86,"bytes"),t(),c(87,"spk-divider"),n(88,"p"),a(89),t(),n(90,"p"),a(91),t()()(),n(92,"details",11)(93,"summary")(94,"spk-icon"),a(95,"warning-circle"),t(),a(96),t(),n(97,"div",12),S(98,ae,3,3,"code",null,M),t()(),n(100,"details",11)(101,"summary")(102,"spk-icon"),a(103,"warning"),t(),a(104),t(),n(105,"div",12),_(106,oe,2,0,"p"),S(107,re,3,3,"code",null,M),t()(),c(109,"spk-divider"),n(110,"details")(111,"summary")(112,"spk-icon"),a(113,"notepad"),t(),a(114," Complete log "),n(115,"div",13)(116,"button",14),a(117,"Copy"),t()()(),n(118,"code"),a(119),p(120,"json"),t()()()()),o&2){let e=s().$implicit;i(),y("disallowToggle",!0),i(6),d("Start: ",u(8,37,e.data.BeginTime,"medium"),""),i(3),d("End: ",u(11,40,e.data.EndTime,"medium"),""),i(3),d("Duration: ",m(14,43,e.data.Duration),""),i(2),y("disallowToggle",!0),i(6),x("Evaluated: ",e.data.ExaminedFiles," (",m(22,45,e.data.SizeOfExaminedFiles),")"),i(3),x("Opened: ",e.data.OpenedFiles," (",m(25,47,e.data.SizeOfOpenedFiles),")"),i(3),x("Added: ",e.data.AddedFiles," (",m(28,49,e.data.SizeOfAddedFiles),")"),i(3),x("Modified: ",e.data.ModifiedFiles," (",m(31,51,e.data.SizeOfModifiedFiles),")"),i(3),d("Deleted: ",e.data.DeletedFiles,""),i(2),d("Too large: ",e.data.TooLargeFiles,""),i(2),d("Files with error: ",e.data.FilesWithError,""),i(10),d("Start: ",u(48,53,e.data.TestResults.BeginTime,"medium"),""),i(3),d("End: ",u(51,56,e.data.TestResults.EndTime,"medium"),""),i(3),d("Duration: ",m(54,59,e.data.TestResults.Duration),""),i(3),d("Verifications: ",e.data.TestResults.VerificationsActualLength,""),i(3),d("Warnings: ",e.data.TestResults.WarningsActualLength,""),i(2),d("Errors: ",e.data.TestResults.ErrorsActualLength,""),i(8),d("Start: ",u(70,61,e.data.CompactResults.BeginTime,"medium"),""),i(3),d("End: ",u(73,64,e.data.CompactResults.EndTime,"medium"),""),i(3),d("Duration: ",m(76,67,e.data.CompactResults.Duration),""),i(4),x(" Deleted files: ",e.data.CompactResults.DeletedFileCount," (",m(80,69,e.data.CompactResults.DeletedFileSize),") "),i(3),x(" Downloaded files: ",e.data.CompactResults.DownloadedFileCount," (",m(83,71,e.data.CompactResults.DownloadedFileSize),") "),i(3),x(" Uploaded files: ",e.data.CompactResults.UploadedFileCount," (",m(86,73,e.data.CompactResults.UploadedFileSize),") "),i(4),d("Warnings: ",e.data.CompactResults.WarningsActualLength,""),i(2),d("Errors: ",e.data.CompactResults.ErrorsActualLength,""),i(5),d(" Warnings ",e.data.WarningsActualLength," "),i(2),h(e.data.Warnings),i(6),d(" Errors ",e.data.ErrorsActualLength," "),i(2),g(e.data.Errors.length===0?106:-1),i(),h(e.data.Errors),i(12),C(m(120,75,e.data))}}function pe(o,r){if(o&1){let e=N();n(0,"article",3)(1,"header",4),E("click",function(){let v=G(e).$implicit,R=s();return B(R.toggleOpenEntry(v.id))}),c(2,"div",5),n(3,"h3"),a(4),p(5,"date"),t(),n(6,"p"),a(7),t()(),_(8,le,121,77,"section",6),t()}if(o&2){let e=r.$implicit,l=s();i(2),L("error",e.exception),i(2),C(u(5,5,e.timestamp,"medium")),i(3),C(e.data.MainOperation),i(),g(e.id===l.openEntry()?8:-1)}}var V=class o{#e=P($);backupId=A.required();openEntry=f(null);pagination=f({offset:0,pagesize:100});resource=z({request:()=>D({id:this.backupId()},this.pagination()),loader:({request:r})=>this.#e.getApiV1BackupByIdLog({id:r.id}).pipe(O(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(r){if(this.openEntry()===r){this.openEntry.set(null);return}this.openEntry.set(r)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let r;r=$localize`Time`;let e;return e=$localize`Source files`,[r,e,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"content"],[1,"actions"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(_(0,ie,1,0,"spk-progress-bar",2),S(1,pe,9,8,"article",3,M)),e&2&&(g(l.resource.isLoading()?0:-1),i(),h(l.resource.value()))},dependencies:[ee,H,U,J,q,Z,F,Y,w],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-level-20)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-level-30)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:none;justify-content:flex-end;flex:1 0;gap:.5rem}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function de(o,r){o&1&&c(0,"spk-progress-bar",0)}function me(o,r){if(o&1&&(n(0,"section",3)(1,"code"),a(2),p(3,"json"),t()()),o&2){let e=s().$implicit;i(2),C(m(3,1,e.data))}}function ce(o,r){if(o&1){let e=N();n(0,"article",1)(1,"header",2),E("click",function(){let v=G(e).$implicit,R=s();return B(R.toggleOpenEntry(v.id))}),n(2,"h3"),a(3),p(4,"date"),t()(),_(5,me,4,3,"section",3),t()}if(o&2){let e=r.$implicit,l=s();i(3),C(u(4,2,e.timestamp,"medium")),i(2),g(e.id===l.openEntry()?5:-1)}}var j=class o{#e=P($);backupId=A.required();openEntry=f(null);pagination=f({offset:0,pagesize:100});resource=z({request:()=>D({id:this.backupId()},this.pagination()),loader:({request:r})=>this.#e.getApiV1BackupByIdRemotelog({id:r.id}).pipe(O(e=>e.map((l,v)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(r){if(this.openEntry()===r){this.openEntry.set(null);return}this.openEntry.set(r)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:[[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"log-content"]],template:function(e,l){e&1&&(_(0,de,1,0,"spk-progress-bar",0),S(1,ce,6,5,"article",1,M)),e&2&&(g(l.resource.isLoading()?0:-1),i(),h(l.resource.value()))},dependencies:[w,U,F],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-level-20)}"],changeDetection:0})};function se(o,r){if(o&1&&c(0,"app-general-log",4),o&2){let e=s();y("backupId",e.backupId())}}function ge(o,r){if(o&1&&c(0,"app-remote-log",4),o&2){let e=s();y("backupId",e.backupId())}}var K=class o{#e=P(W);backupId=X(this.#e.params.pipe(O(r=>r.id)));activeTab=f("general");static \u0275fac=function(e){return new(e||o)};static \u0275cmp=b({type:o,selectors:[["app-log"]],decls:7,vars:6,consts:()=>{let r;r=$localize`General`;let e;return e=$localize` Destination `,[r,e,[1,"primary"],["tab","",3,"click"],[3,"backupId"]]},template:function(e,l){e&1&&(n(0,"spk-tabs",2)(1,"button",3),E("click",function(){return l.activeTab.set("general")}),k(2,0),t(),n(3,"button",3),E("click",function(){return l.activeTab.set("destination")}),k(4,1),t()(),_(5,se,1,1,"app-general-log",4)(6,ge,1,1,"app-remote-log",4)),e&2&&(i(),L("active",l.activeTab()==="general"),i(2),L("active",l.activeTab()==="destination"),i(2),g(l.activeTab()==="general"?5:-1),i(),g(l.activeTab()==="destination"?6:-1))},dependencies:[Q,V,j],styles:["[_nghost-%COMP%]{display:block;padding:0 .75rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-level-40);background-color:var(--base-level-10);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-level-20)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-level-60)}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};export{K as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as a,k as b}from"./chunk-YZP7MR43.js";import"./chunk-TEBYIIAM.js";import"./chunk-K5R45UNO.js";import"./chunk-DNHLTHLR.js";import"./chunk-OAL3AILX.js";import"./chunk-5522ZDTF.js";import"./chunk-NN3K5WJK.js";import"./chunk-IBZEQWFY.js";import"./chunk-UUC5AIWR.js";import"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import"./chunk-JQGZUGRK.js";import"./chunk-65UFWL3O.js";import"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as j}from"./chunk-
|
|
1
|
+
import{a as j}from"./chunk-7SHJPVM2.js";import{a as D,b as $,d as b,e as h,h as B,l as v,o as G,p as L,r as K}from"./chunk-NN3K5WJK.js";import{a as w,c as U,g as X,l as x,w as z,y as V}from"./chunk-IBZEQWFY.js";import{a as y}from"./chunk-UUC5AIWR.js";import{X as A,Y as N}from"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import"./chunk-JQGZUGRK.js";import"./chunk-65UFWL3O.js";import{Ab as k,E as I,Eb as r,Fb as n,Gb as l,Qb as S,Ra as c,Rb as T,Sb as m,Wb as g,X as _,Za as u,fb as F,ic as P,lb as O,rc as E,vb as f,xb as R}from"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";var q=()=>["/"];function H(d,t){d&1&&(r(0,"spk-form-field")(1,"label",19),m(2,5),n(),l(3,"input",20),n())}var s=new L,C=class d{#e=_(U);#t=_(y);#o=_(j);#n=_(A);isImporting=u(!1);isSecureFile=u(!1);importForm=s.group({config:s.control(""),cmdline:s.control(!1),importMetadata:s.control(!1),direct:s.control(!1),passphrase:s.control("")});selectedFile=u(null);onFileDropped(t){let e=t.target?.files?.item(0);if(e){let i=new FileReader;this.isSecureFile.set(e.type!=="application/json"),i.onload=this.#i.bind(this),i.readAsArrayBuffer(e)}}#i(t){let o=t.target?.result;this.importForm.patchValue({config:this.#r(o)})}#r(t){let o=new Uint8Array(t),e=o.byteLength,i="";for(let a=0;a<e;a++)i+=String.fromCharCode(o[a]);return btoa(i)}submit(){this.isImporting.set(!0),this.#t.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(I(()=>this.isImporting.set(!1))).subscribe({next:t=>{let o=this.#o.addDraftBackup(t.data);this.#n.navigate(["/backup-draft",o])},error:t=>{this.#e.error(t.message)}})}static \u0275fac=function(o){return new(o||d)};static \u0275cmp=F({type:d,selectors:[["app-import"]],decls:26,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let o;o=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:download-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: Import `;let e;e=$localize`Select a configuration file`;let i;i=$localize`Import Metadata`;let a;a=$localize`Save now`;let M;return M=$localize`Passphrase`,[t,o,e,i,a,M,[1,"actions"],["spk-button","","type","button",1,"outlined",3,"routerLink"],["spk-button","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["spkDragDrop","",3,"fileDropped"],["for","file"],["type","file","accept",".json,.aes",3,"change"],["suffix",""],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","importMetadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","formControlName","passphrase"]]},template:function(o,e){o&1&&(r(0,"header")(1,"h3"),P(2," Import backup configuration "),r(3,"div",6)(4,"button",7),S(5,0),l(6,"spk-icon"),T(),n(),r(7,"button",8),g("click",function(){return e.submit()}),S(8,1),l(9,"spk-icon"),T(),n()()()(),r(10,"form",9)(11,"spk-form-field",10),g("fileDropped",function(a){return e.onFileDropped(a)}),r(12,"label",11),m(13,2),n(),r(14,"input",12),g("change",function(a){return e.onFileDropped(a)}),n(),r(15,"spk-icon",13),P(16,"upload"),n()(),O(17,H,4,0,"spk-form-field"),r(18,"spk-toggle",14)(19,"label",15),m(20,3),n(),l(21,"input",16),n(),r(22,"spk-toggle",14)(23,"label",17),m(24,4),n(),l(25,"input",18),n()()),o&2&&(c(4),f("routerLink",E(6,q)),c(3),R("loader",e.isImporting()),f("disabled",e.isImporting()),c(3),f("formGroup",e.importForm),c(7),k(e.isSecureFile()?17:-1))},dependencies:[K,B,$,D,b,h,v,G,N,V,x,w,X,z],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}"],changeDetection:0})};export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,y,z}from"./chunk-
|
|
1
|
+
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,y,z}from"./chunk-7WQR24NO.js";import"./chunk-FSY6N6QG.js";import"./chunk-JQGZUGRK.js";import"./chunk-65UFWL3O.js";import"./chunk-UYXZTHXX.js";import"./chunk-C6Q5SG76.js";export{H as ActivatedRoute,I as ActivatedRouteSnapshot,C as ActivationEnd,B as ActivationStart,V as BaseRouteReuseStrategy,A as ChildActivationEnd,z as ChildActivationStart,F as ChildrenOutletContexts,O as DefaultTitleStrategy,h as DefaultUrlSerializer,j as EventType,u as GuardsCheckEnd,t as GuardsCheckStart,p as NavigationCancel,n as NavigationCancellationCode,m as NavigationEnd,r as NavigationError,q as NavigationSkipped,o as NavigationSkippedCode,l as NavigationStart,aa as NoPreloading,E as OutletContext,a as PRIMARY_OUTLET,$ as PreloadAllModules,_ as PreloadingStrategy,P as ROUTER_CONFIGURATION,qa as ROUTER_INITIALIZER,K as ROUTER_OUTLET_DATA,R as ROUTES,M as RedirectCommand,w as ResolveEnd,v as ResolveStart,y as RouteConfigLoadEnd,x as RouteConfigLoadStart,U as RouteReuseStrategy,X as Router,k as RouterEvent,Y as RouterLink,Z as RouterLinkActive,Y as RouterLinkWithHref,pa as RouterModule,L as RouterOutlet,ba as RouterPreloader,G as RouterState,J as RouterStateSnapshot,s as RoutesRecognized,D as Scroll,N as TitleStrategy,T as UrlHandlingStrategy,f as UrlSegment,e as UrlSegmentGroup,g as UrlSerializer,d as UrlTree,wa as VERSION,b as convertToParamMap,i as createUrlTreeFromSnapshot,c as defaultUrlMatcher,sa as mapToCanActivate,ta as mapToCanActivateChild,ua as mapToCanDeactivate,ra as mapToCanMatch,va as mapToResolve,ca as provideRouter,da as provideRoutes,ma as withComponentInputBinding,ha as withDebugTracing,ga as withDisabledInitialNavigation,fa as withEnabledBlockingInitialNavigation,ka as withHashLocation,ea as withInMemoryScrolling,la as withNavigationErrorHandler,ia as withPreloading,ja as withRouterConfig,na as withViewTransitions,Q as \u0275EmptyOutletComponent,oa as \u0275ROUTER_PROVIDERS,W as \u0275afterNextNavigation,S as \u0275loadChildren};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ce}from"./chunk-OAL3AILX.js";import{q as de}from"./chunk-NN3K5WJK.js";import{a as pe,f as ue,l as he,m as _e,o as ge,w as fe}from"./chunk-IBZEQWFY.js";import{a as ae}from"./chunk-UUC5AIWR.js";import{ia as le}from"./chunk-65UFWL3O.js";import{Ab as b,Cb as J,Db as Y,E as B,Eb as _,Fb as f,Gb as Z,Jb as G,Kb as k,Kc as W,Mc as w,Ra as g,Sb as R,Tb as ee,Ub as te,Wb as S,X as D,Xb as p,Yb as ne,Za as x,Zb as I,_a as H,ea as y,fa as O,fb as z,fc as q,gc as ie,hc as K,ic as N,kc as oe,lb as P,qa as V,ra as C,sc as L,tc as re,v as Q,vb as j,wb as U,xb as v,yc as se}from"./chunk-UYXZTHXX.js";import{a as A,b as $}from"./chunk-C6Q5SG76.js";var ve=["treeContainer"],Te=["formRef"],xe=[[["label"]],[["label"]],[["input"]]],be=["label","label","input"],Me=(r,t)=>t.id,Fe=r=>({children:r,level:0}),me=r=>({$implicit:r}),ye=(r,t)=>({children:r,level:t});function Oe(r,t){if(r&1){let e=k();_(0,"spk-button-group")(1,"button",13),S("click",function(){y(e);let s=p();return O(s.pathDiscoveryMethod.set("browse"))}),R(2,4),f(),_(3,"button",13),S("click",function(){y(e);let s=p();return O(s.pathDiscoveryMethod.set("path"))}),R(4,5),f()()}if(r&2){let e=p();g(),v("active",e.pathDiscoveryMethod()==="browse"),g(2),v("active",e.pathDiscoveryMethod()==="path")}}function Se(r,t){r&1&&Z(0,"spk-progress-bar",9)}function Ne(r,t){r&1&&(_(0,"spk-icon",16),N(1,"folder-open"),f())}function we(r,t){r&1&&(_(0,"spk-icon"),N(1,"file"),f())}function ke(r,t){r&1&&(_(0,"spk-icon",16),N(1,"folder"),f())}function Re(r,t){if(r&1&&P(0,Ne,2,0,"spk-icon",16)(1,we,2,0,"spk-icon")(2,ke,2,0,"spk-icon",16),r&2){let e=p(2).$implicit;b(e.children.length?0:e.cls==="file"?1:2)}}function Ie(r,t){r&1&&(_(0,"spk-icon",16),N(1,"desktop-tower"),f())}function Le(r,t){r&1&&G(0)}function We(r,t){if(r&1&&P(0,Le,1,0,"ng-container",10),r&2){let e=p(2).$implicit,n=p().$implicit;p();let s=K(7);j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(5,me,re(2,ye,e.children,n.level+1)))}}function Ae(r,t){if(r&1){let e=k();_(0,"div",14,3),S("click",function(){y(e);let s=p().$implicit,i=p(2);return O(i.toggleNode(s.id,s))}),_(2,"div",15),P(3,Re,3,1)(4,Ie,2,0,"spk-icon",16),f(),_(5,"div",17),S("click",function(s){y(e);let i=p().$implicit,o=p(2);return O(o.toggleSelectedNode(s,i))}),N(6),f()(),P(7,We,1,7,"ng-container")}if(r&2){let e=p().$implicit,n=p(2);v("accepted",e.accepted===!0)("active",e.evalState===n.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden),g(3),b(e.id!=="/"?3:4),g(3),oe(" ",e.text," "),g(),b(e.children.length>0?7:-1)}}function $e(r,t){if(r&1&&P(0,Ae,8,13),r&2){let e=t.$implicit,n=p(2);b(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Be(r,t){if(r&1&&(_(0,"spk-list"),J(1,$e,1,1,null,null,Me),f()),r&2){let e=t.$implicit;U("padding-left",e.level*.5,"rem"),g(),Y(e.children)}}function De(r,t){r&1&&G(0)}function Ve(r,t){if(r&1){let e=k();_(0,"spk-toggle",18),S("click",function(){y(e);let s=p();return O(s._showHiddenNodes.set(!s._showHiddenNodes()))}),R(1,6),f()}if(r&2){let e=p();v("active",e._showHiddenNodes()),g(),ee(e.showFiles()?"files":"folders"),te(1)}}var Ce=(i=>(i[i.ExcludedByParent=-2]="ExcludedByParent",i[i.Excluded=-1]="Excluded",i[i.None=0]="None",i[i.Included=1]="Included",i[i.IncludedByParent=2]="IncludedByParent",i))(Ce||{}),X=class r{#t=D(ae);#r=D(ce);multiSelect=C(!1);disabled=C(!1);showFiles=C(!1);selectFiles=C(!1);accepts=C(null);startingPath=C(null);rootPath=C(void 0);backupSettings=C(null);showHiddenNodes=C(!1);includes=V();excludes=V();_showHiddenNodes=x(!1);treeContainerRef=H("treeContainer");formRef=H("formRef");pathDiscoveryMethod=x("browse");isLoading=x(!1);currentPath=x("/");#e=x(null);treeSearchQuery=x("");treeNodes=x([]);filterGroups=this.#r.filterGroups();isByBackupSettings=W(()=>this.rootPath()&&this.backupSettings()?.id&&this.backupSettings()?.time);searchableTreeNodes=W(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Ce;treeStructure=W(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(a=>a!==""&&a!=="/"),n=structuredClone(e);for(let a=0;a<n.length;a++){let u=n[a].slice(1);if(u.startsWith("{")&&u.endsWith("}")){let h=u.slice(1,-1),d=this.filterGroups?.FilterGroups[h];if(d&&d.length){let T=d.map(E=>`-${E}`);n.splice(a,1,...T)}}}let s=this.searchableTreeNodes(),i=new Map,o=this.rootPath(),m=this.accepts(),l=o?{id:o,resolvedpath:o,text:o?.replaceAll("/",""),parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}:{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1};m&&(l.accepted=!0),i.set("/",l);for(let a of s){let u=a.id.replace(o??"","").split("/").filter(Boolean),h="",d=l;for(let T of u){if(h+="/"+T,!i.has(h)){let E=a.hidden===!0&&t?0:this.#s(n,a.id,a.cls,d),M={id:a.id,isIndeterminate:this.isIndeterminate(n,a.id),evalState:E,parentPath:h,resolvedpath:a.id?.startsWith("%")?a.resolvedpath+"/":h,hidden:a.hidden,text:a.text,cls:a.cls,children:[]};m&&(M.accepted=this.matchAccepts(m,M)),i.set(h,M),d.children.push(M)}d=i.get(h)}}return[l]});#s(t,e,n,s){if(s.evalState===-1)return-2;let i=0,o=t.filter(l=>!l.startsWith("-")&&!l.startsWith("+")),m=t.filter(l=>l.startsWith("-")||l.startsWith("+"));if(o.length===0)return i;for(let l=0;l<o.length;l++){let a=o[l];if(e?.startsWith(a)){i=1;break}}if(m.length===0)return i;for(let l=0;l<m.length;l++){let a=m[l],c=a.slice(1),u=a.startsWith("-")?"exclude":"include";if(c.startsWith("/")&&c.endsWith("/")){if(n!=="folder")continue;if(e===c){i=u==="include"?1:-1;break}}if(c.startsWith("*")&&c.endsWith("*/")){if(n!=="folder")continue;let d=c.slice(1,-2);if(d==="")break;if(e?.includes(d+"/")){i=u==="include"?1:-1;break}}if(c.startsWith("[.*")&&c.endsWith("[^\\/]*]")){if(n!=="file")continue;let d=c.slice(3,-7);if(new RegExp(d).test(e)){i=u==="include"?1:-1;break}}if(c.startsWith("[")&&c.endsWith("]")){let d=c.slice(1,-1),T=this.translateCSharpRegex(d);if(new RegExp(`${T}`).test(e)){i=u==="include"?1:-1;break}}if(c.startsWith("*.")){if(n!=="file"||c.replace("*.","").length===0)continue;if(this.#n(e,c,!0)){i=u==="include"?1:-1;break}}if(c==="")continue;if(this.#n(e,c,!0)){i=u==="include"?1:-1;break}}return i}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(s,i,o)=>`(${o})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#n(t,e,n=!1){let s=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${s}${n?"$":""}`).test(t)}showHiddenNodesEffect=w(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=w(()=>{let t=this.pathDiscoveryMethod(),e=this.#e();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let s="."+e.id.slice(e.id.indexOf("."));return s?n.some(i=>s.endsWith(i)):!1}currentPathEffect=w(()=>{let t=this.#e();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=w(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#l(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#e.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();t?(this.currentPath.set(t),this.#d(t)):this.#o(null,this.rootPath())}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let s=this.currentPath().split("\0").filter(o=>o!==""&&o!=="/"),i=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?s.includes(e.id)?this.currentPath.set(s.filter(o=>o!==e.id).join("\0")):s.some(o=>o.startsWith(i))?this.currentPath.set(s.filter(o=>o!==i).join("\0")):this.currentPath.set([...s,i].join("\0")):s.includes(e.id)?this.currentPath.set(s.filter(o=>o!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(s=>!s.id?.startsWith(e.id)||s.id===e.id)):this.#o(e,t))}#l(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#a(t){return this.#t.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#c(t){let e=this.backupSettings(),n={id:e.id,time:e.time,prefixOnly:!1,folderContents:!0};return t&&(n.filter="@"+t),this.#t.getApiV1BackupByIdFiles(n)}#i(t){return this.isByBackupSettings()?this.#c(t):this.#a(t)}#d(t){let e=t.split("\0").filter(o=>o.startsWith("-")).map(o=>o.slice(1,-1)),n=t.split("\0").filter(o=>!o.startsWith("-")).filter(Boolean),s=n.map(o=>o.split("/").filter(Boolean)),i=[this.rootPath()??"/"];s.forEach(o=>{o.forEach((m,l)=>{let a=o.slice(0,l+1).join("/"),c=a.startsWith("%")?a:"/"+a;i.includes(c)||i.push(c)})}),this.isLoading.set(!0),Q([...i.map(o=>this.#i(o))]).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:o=>{this.treeNodes.update(m=>{let l=o.flatMap(c=>c.map(u=>{let h=u.id,d=h&&h.split("/").filter(Boolean).slice(0,-1).join("/"),E="/"+(h&&h.split("/").filter(Boolean).join("/")),M=n.findIndex(F=>this.multiSelect()?E.startsWith(F):E===F)>-1,Ee=n.findIndex(F=>F===h)>-1,Pe=e.findIndex(F=>F===E)>-1;return $(A({},u),{parentPath:d.startsWith("%")?d:"/"+d,isSelected:M&&!Pe||Ee})}));return[...new Map([...m,...l].map(c=>[c.resolvedpath??c.id,c])).values()]})}})}#o(t=null,e="/"){this.isLoading.set(!0),this.#i(e).pipe(B(()=>this.isLoading.set(!1))).subscribe({next:n=>{let s=this.isByBackupSettings()?n.Files.map(i=>({text:i.Path.split("/").filter(o=>o!=="").pop(),id:i.Path,cls:i.Path.endsWith("/")?"folder":"file",leaf:t!==null,resolvedpath:i.Path,hidden:!1})):n;this.treeNodes.update(i=>{let o=s.map(l=>{let a=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith("/")?"folder":"file";return $(A({},l),{cls:a,parentPath:e})});return[...new Map([...i,...o].map(l=>[l.resolvedpath??l.id,l])).values()]})}})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=z({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(q(n.treeContainerRef,ve,5),q(n.formRef,Te,5)),e&2&&ie(2)},hostVars:2,hostBindings:function(e,n){e&2&&v("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPath:[1,"rootPath"],backupSettings:[1,"backupSettings"],showHiddenNodes:[1,"showHiddenNodes"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:be,decls:15,vars:15,consts:()=>{let t;t=$localize` Browser path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"spk-primary"],[1,"text",3,"click"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(ne(xe),P(0,Oe,5,4,"spk-button-group"),_(1,"div",7),I(2,0,["ngProjectAs","label",5,["label"]]),_(3,"div",8,0),P(5,Se,1,0,"spk-progress-bar",9)(6,Be,3,2,"ng-template",null,1,se)(8,De,1,0,"ng-container",10),f(),P(9,Ve,2,3,"spk-toggle",11),f(),_(10,"div",12,2)(12,"spk-form-field"),I(13,1,["ngProjectAs","label",5,["label"]]),I(14,2,["ngProjectAs","input",5,["input"]]),f()()),e&2){let s=K(7);b(n.multiSelect()?-1:0),g(),v("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),v("visualize-accepted",n.accepts()),g(2),b(n.isLoading()?5:-1),g(3),j("ngTemplateOutlet",s)("ngTemplateOutletContext",L(13,me,L(11,Fe,n.treeStructure()))),g(),b(n.accepts()?-1:9),g(),v("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[ue,fe,pe,he,_e,ge,le,de],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] spk-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-level-10);position:relative}.browse-files[_ngcontent-%COMP%] spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-level-30);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:.25rem;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:var(--base-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-level-40)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-level-60R)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{X as a};
|