@duplicati/ngclient 0.0.25 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/chunk-26IRMVIY.js +2 -0
  2. package/chunk-2PUTRWRI.js +1 -0
  3. package/{chunk-2TLPGRQA.js → chunk-2SYB6ABM.js} +1 -1
  4. package/chunk-3EBWYIH7.js +1 -0
  5. package/chunk-47O5BYLZ.js +1 -0
  6. package/chunk-4Y76KESB.js +2 -0
  7. package/chunk-57W6Z6XZ.js +1 -0
  8. package/chunk-5X5UJ7CP.js +1 -0
  9. package/chunk-6TFXXYVK.js +1 -0
  10. package/chunk-7O44NQO3.js +1 -0
  11. package/{chunk-647BVHNL.js → chunk-AIQQJSGP.js} +1 -1
  12. package/chunk-B7SRENJI.js +1 -0
  13. package/chunk-BR45PK72.js +1 -0
  14. package/{chunk-E6PE2QMZ.js → chunk-BVTTY2FQ.js} +1 -1
  15. package/chunk-C4S5PKAB.js +1 -0
  16. package/chunk-C5O62M3L.js +6 -0
  17. package/chunk-CGWELGPM.js +1 -0
  18. package/chunk-DESW2TCQ.js +1 -0
  19. package/chunk-DOGZZDWG.js +1 -0
  20. package/chunk-EPVXOSHI.js +1 -0
  21. package/chunk-FAAAWY76.js +1 -0
  22. package/chunk-GAJ43GZE.js +1 -0
  23. package/chunk-GBWXFIBZ.js +1 -0
  24. package/chunk-HH2EA6LF.js +1 -0
  25. package/chunk-L7M2MTRL.js +1 -0
  26. package/chunk-LUAN4O53.js +1 -0
  27. package/chunk-MFLGWG77.js +1 -0
  28. package/chunk-MHCUWVA2.js +1 -0
  29. package/chunk-P7LAQN3J.js +1 -0
  30. package/chunk-PD6257G7.js +1 -0
  31. package/chunk-QL753AWG.js +1 -0
  32. package/chunk-QNP3LI3Y.js +1 -0
  33. package/chunk-RJDP2FPE.js +7 -0
  34. package/chunk-RMZR2OAY.js +1 -0
  35. package/chunk-SDVRKDZS.js +1 -0
  36. package/{chunk-KM4HDQ4D.js → chunk-T6ENXWPD.js} +1 -1
  37. package/chunk-TLFDZKKI.js +1 -0
  38. package/chunk-UGZKHGQT.js +1 -0
  39. package/chunk-UMY3Y7LR.js +1 -0
  40. package/chunk-UPIWGO32.js +1 -0
  41. package/chunk-UVZO552H.js +1 -0
  42. package/chunk-VAAI6C2V.js +1 -0
  43. package/chunk-VJACGH6X.js +1 -0
  44. package/chunk-WV3AOW4R.js +1 -0
  45. package/chunk-YDJZQ6GS.js +1 -0
  46. package/chunk-ZAREJJZA.js +1 -0
  47. package/chunk-ZAVS5NW7.js +1 -0
  48. package/chunk-ZVT4YXH5.js +1 -0
  49. package/index.html +3 -3
  50. package/main-EG6BYVG5.js +1 -0
  51. package/package.json +1 -1
  52. package/styles-JDUV6AV5.css +1 -0
  53. package/chunk-2WWTJWN7.js +0 -1
  54. package/chunk-43IGTI7W.js +0 -1
  55. package/chunk-4X4FROQQ.js +0 -1
  56. package/chunk-56SGMJT3.js +0 -1
  57. package/chunk-67F45CIQ.js +0 -1
  58. package/chunk-6SKK76PT.js +0 -1
  59. package/chunk-7TGAK2FS.js +0 -6
  60. package/chunk-7UN5GSLX.js +0 -1
  61. package/chunk-ANRVMVA2.js +0 -7
  62. package/chunk-B7BKD6BW.js +0 -1
  63. package/chunk-CYXH6TL7.js +0 -1
  64. package/chunk-D4OIIBBT.js +0 -1
  65. package/chunk-D5XBMU7U.js +0 -1
  66. package/chunk-DC5NQO2Y.js +0 -1
  67. package/chunk-EF6PZOYI.js +0 -1
  68. package/chunk-EUKWBJHZ.js +0 -1
  69. package/chunk-JBKTYIJI.js +0 -1
  70. package/chunk-KJNFJK32.js +0 -1
  71. package/chunk-KMTWZOSJ.js +0 -1
  72. package/chunk-KOPVATUY.js +0 -1
  73. package/chunk-KOXLMQOL.js +0 -1
  74. package/chunk-LKYD5PU5.js +0 -1
  75. package/chunk-LSSI4MGJ.js +0 -1
  76. package/chunk-MW756ZMH.js +0 -1
  77. package/chunk-ND2MJYUF.js +0 -1
  78. package/chunk-NNYK7AHA.js +0 -1
  79. package/chunk-OGV5E7WV.js +0 -1
  80. package/chunk-OLXQO3ZT.js +0 -1
  81. package/chunk-OUZOHOAK.js +0 -2
  82. package/chunk-OYOFQEI3.js +0 -1
  83. package/chunk-PBQATFTG.js +0 -1
  84. package/chunk-QM3Q3TUI.js +0 -1
  85. package/chunk-QQ7JWBVZ.js +0 -1
  86. package/chunk-RH4RL6FL.js +0 -1
  87. package/chunk-RPNE5OZL.js +0 -1
  88. package/chunk-TUN6QDZQ.js +0 -2
  89. package/chunk-UAAHGB26.js +0 -1
  90. package/chunk-UXD4TQLV.js +0 -1
  91. package/chunk-WCMY57ZO.js +0 -1
  92. package/chunk-WVXHNI46.js +0 -1
  93. package/chunk-XCCXG27R.js +0 -1
  94. package/chunk-ZO7IMOR6.js +0 -1
  95. package/main-B5HGTFQ3.js +0 -1
  96. package/styles-LL6J7JBI.css +0 -1
@@ -0,0 +1,6 @@
1
+ import{a as Me,b as ve}from"./chunk-2PUTRWRI.js";import{a as ht,b as Bt}from"./chunk-DNHLTHLR.js";import{a as tt}from"./chunk-TLFDZKKI.js";import{b as M}from"./chunk-ZVT4YXH5.js";import{a as xe,b as q,c as _e,d as K,e as se,f as nt,g as Gt,h as pe,i as ye,k as it,l as me,m as we,n as Mt,o as ce,p as Q,q as Y,r as L,s as ot,t as de}from"./chunk-6TFXXYVK.js";import{a as Ie}from"./chunk-BVTTY2FQ.js";import{a as Z,b as rt,d as $t,e as At,g as Se,i as at,k as J,m as lt,n as Rt,p as st,q as X,t as ke,u as Ge}from"./chunk-QL753AWG.js";import{H as le,X as j}from"./chunk-PD6257G7.js";import{c as It}from"./chunk-4Y76KESB.js";import{ia as et}from"./chunk-DESW2TCQ.js";import{$b as oe,Ab as _,Bb as T,Cb as V,Db as b,Dc as G,E as Le,Eb as a,Fb as o,Fc as Xe,Gb as f,Hb as k,Ib as v,Jb as Ve,Kb as w,Qb as C,R as he,Ra as s,Rb as p,Ub as P,Vb as I,Wb as N,X as y,Za as S,_a as ie,ac as re,bc as ae,cc as l,dc as E,ea as h,ec as D,fa as x,fb as H,fc as bt,gc as Dt,hc as Ot,ic as Et,ja as Vt,kc as Nt,lb as d,lc as be,mc as Pt,nc as ze,p as He,qa as We,ra as Ze,rc as Je,vb as c,xb as fe}from"./chunk-RJDP2FPE.js";import{a as U,c as Tt}from"./chunk-7CGTOI24.js";function Yt(n,i){if(n&1&&(a(0,"p"),l(1),o()),n&2){let e=p();s(),E(e._data().message)}}var Zt={title:"Are you sure?",confirmText:"Confirm",cancelText:"Cancel"},De=class n{data=Ze();_data=G(()=>U(U({},Zt),this.data()));closed=We();close(i="confirm"){this.closed.emit(i==="confirm")}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=H({type:n,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:10,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(e,t){e&1&&(a(0,"header",0)(1,"h3"),l(2),o()(),a(3,"div",1),d(4,Yt,2,1,"p"),o(),a(5,"footer",2)(6,"button",3),C("click",function(){return t.close("cancel")}),l(7),o(),a(8,"button",4),C("click",function(){return t.close("confirm")}),l(9),o()()),e&2&&(s(2),E(t._data().title),s(2),_(t._data().message?4:-1),s(3),E(t._data().cancelText),s(2),E(t._data().confirmText))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};var pt=class n{fromString(i){if(!i)return null;let e=i.match(/(\d+)([smhDWMY])/);return e&&{value:parseInt(e[1]),unit:e[2]}}toString(i,e){return`${i}${e}`}static \u0275fac=function(e){return new(e||n)};static \u0275prov=he({token:n,factory:n.\u0275fac,providedIn:"root"})};var Oe=class n{#e=y(Ie);s3Providers=M(this.getS3Config("Providers"));s3Regions=M(this.getS3Config("Regions"));s3RegionHosts=M(this.getS3Config("RegionHosts"));s3StorageClasses=M(this.getS3Config("StorageClasses"));storjSatellites=M(this.getStorjConfig("Satellites"));storjAuthenticationMethods=M(this.getStorjConfig("AuthenticationMethods"));openstackProviders=M(this.getOpenstackConfig("Providers"));openstackVersions=M(this.getOpenstackConfig("Versions"));gcsLocations=M(this.getGcsConfig("Locations"));gcsStorageClasses=M(this.getGcsConfig("StorageClasses"));getS3Config(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":i}}).pipe(He(e=>this.#n(e)))}createS3IamUser(i,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":i,"s3-password":e}})}createS3PolicyIAM(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:i}})}getStorjConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":i}}).pipe(He(e=>this.#n(e)))}getOpenstackConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":i}}).pipe(He(e=>this.#n(e)))}getGcsConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":i}}).pipe(He(e=>this.#n(e)))}#n(i){return(i.Result&&typeof i.Result=="object"&&Object.entries(i.Result).map(([e,t])=>({key:e,value:t})))??[]}static \u0275fac=function(e){return new(e||n)};static \u0275prov=he({token:n,factory:n.\u0275fac,providedIn:"root"})};var Fe=new L,je={file:{customFields:{path:{type:"FolderTree",name:"path",shortDescription:"File path",longDescription:"The path to store the backup",formElement:n=>Fe.control(n??"")}}},ssh:{customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:n=>Fe.control(n??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:n=>Fe.control(n??"",[_e.required,_e.max(65535)])},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:n=>Fe.control(n??"")}},dynamicFields:["auth-username"],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:"This is a path to a private key file locally on the machine",longDescription:"This is a path to a private key file locally on the machine"}]},s3:{customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:n=>Fe.control(n??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:n=>Fe.control(n??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:"Server",type:"NonValidatedSelectableString",loadOptions:n=>n.get(Oe).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:n=>n.get(Oe).s3StorageClasses}]},gcs:{oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:n=>Fe.control(n??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:n=>n.get(Oe).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:n=>n.get(Oe).gcsStorageClasses},"authid"]},googledrive:{oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:n=>Fe.control(n??"")}},dynamicFields:["authid"]}};function Ae(n,i){let e={},t={};return i.searchParams.forEach((r,m)=>{je[n].dynamicFields?.includes(m)?t[m]=decodeURIComponent(r):e[m]=decodeURIComponent(r)}),{advanced:e,dynamic:t}}function qe(n){let i=n.map(([e,t])=>`${e}=${t?encodeURIComponent(t.toString()):""}`).join("&");return i?"?"+i:""}var Re={file:{to:n=>{let i=qe([...Object.entries(n.advanced),...Object.entries(n.dynamic)]);return`${n.destinationType}://${n.custom.path}${i}`},from:(n,i,e)=>{let t=e.indexOf("file:///")===0,r=e.split(t?"///":"//")[1].substring(0,1)+i.hostname.substring(1);return U({destinationType:n,custom:{path:`${t?"/":""}${r}${i.pathname}`}},Ae(n,i))}},ssh:{to:n=>{let i=qe([...Object.entries(n.advanced),...Object.entries(n.dynamic)]);return`${n.destinationType}://${n.custom.server}${n.custom.port?":"+n.custom.port:""}${n.custom.path.startsWith("/")?n.custom.path:"/"+n.custom.path}${i}`},from:(n,i,e)=>U({destinationType:n,custom:{server:i.hostname,port:i.port,path:i.pathname}},Ae(n,i))},s3:{to:n=>{let i=qe([...Object.entries(n.advanced),...Object.entries(n.dynamic)]);return`${n.destinationType}://${n.custom.bucket}${n.custom.path.startsWith("/")?n.custom.path:"/"+n.custom.path}${i}`},from:(n,i,e)=>U({destinationType:n,custom:{path:i.pathname,bucket:i.hostname}},Ae(n,i))},gcs:{to:n=>{let i=qe([...Object.entries(n.advanced),...Object.entries(n.dynamic)]);return`${n.destinationType}://${n.custom.path}${i}`},from:(n,i,e)=>{let{advanced:t,dynamic:r}=Ae(n,i);return{destinationType:n,custom:{path:i.hostname+i.pathname},dynamic:r,advanced:t}}},googledrive:{to:n=>{let i=n.custom.path,e=qe([...Object.entries(n.advanced),...Object.entries(n.dynamic)]);return`${n.destinationType}://${i}${e}`},from:(n,i,e)=>{let{advanced:t,dynamic:r}=Ae(n,i);return{destinationType:n,custom:{path:i.hostname+i.pathname},dynamic:r,advanced:t}}},fallbackMapper:{to:n=>"",from:(n,i,e)=>U({destinationType:n},Ae(n,i))}};function mt(n){let i=n.destinationType;return!i||!Re.hasOwnProperty(i)?Re.fallbackMapper.to(n)??"":Re[i].to(n)??""}function xt(n){let i=URL.canParse(n),e=n.split("://")[0],t="http://"+n.split("://")[1],r=new URL(t);if(!Re.hasOwnProperty(e))return Re.fallbackMapper.from(e,r);if(!i)throw new Error("Invalid target path");return Re[e].from(e,r,n)}var Ut=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,ct=class n{generate(i,e=Ut){let t;do t=this.generatePassword(i,e);while(this.calculatePasswordStrength(t)<5);return t}generatePassword(i,e=Ut){let t=this;return Array.apply(null,{length:i}).map(()=>{let r;for(;;)if(r=String.fromCharCode(t.#e()),e.test(r))return r},this).join("")}calculatePasswordStrength(i){let e=1;return i.length>=8&&e++,i.match(/[a-z]/)&&i.match(/[A-Z]/)&&e++,i.match(/\d+/)&&e++,i.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&e++,Math.min(e,5)}#e(){if(window.crypto&&window.crypto.getRandomValues){let i=new Uint8Array(1);return window.crypto.getRandomValues(i),i[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let i=new Uint8Array(1);return window.msCrypto.getRandomValues(i),i[0]}else return Math.floor(Math.random()*256)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=he({token:n,factory:n.\u0275fac,providedIn:"root"})};var Jt=["formRef"];function Xt(n,i){if(n&1&&(a(0,"option",14),l(1),o()),n&2){let e=i.$implicit;c("value",e.Key),s(),E(e.DisplayName)}}function en(n,i){if(n&1&&f(0,"spk-progress-bar",25),n&2){let e=p(3);fe("warn",e.calculatePasswordStrength()===1)("tertiary",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),c("value",e.calculatePasswordStrength()*(100/5))}}function tn(n,i){n&1&&(a(0,"span",20),l(1,"Passwords do not match"),o())}function nn(n,i){n&1&&(a(0,"spk-icon"),l(1,"eye-slash"),o(),l(2," hide "))}function on(n,i){n&1&&(a(0,"spk-icon"),l(1,"eye"),o(),l(2," show "))}function rn(n,i){n&1&&(a(0,"spk-icon",27),l(1,"check"),o())}function an(n,i){n&1&&(a(0,"spk-icon"),l(1,"copy"),o())}function ln(n,i){if(n&1){let e=w();a(0,"button",26),C("click",function(){h(e);let r=p(3);return x(r.copyPassword())}),d(1,rn,2,0,"spk-icon",27)(2,an,2,0,"spk-icon"),l(3),o()}if(n&2){let e=p(3);s(),_(e.copiedPassword()?1:2),s(2),D(" ",e.copiedPassword()?"Copied":"Copy"," password ")}}function sn(n,i){n&1&&(a(0,"spk-alert",24),l(1," Tip: Be sure to save your password. If you loose it you will lose access to your backups. "),o())}function pn(n,i){if(n&1){let e=w();a(0,"div",15)(1,"spk-form-field")(2,"label",16),l(3," Create a password "),a(4,"sup"),l(5,"*"),o()(),f(6,"input",17),o(),d(7,en,1,9,"spk-progress-bar",18),a(8,"spk-form-field"),f(9,"input",19),d(10,tn,2,0,"span",20),o(),a(11,"div",21)(12,"button",22),C("click",function(){h(e);let r=p(2);return x(r.showPassword.set(!r.showPassword()))}),d(13,nn,3,0)(14,on,3,0),o(),a(15,"button",22),C("click",function(){h(e);let r=p(2);return x(r.generatePassword())}),a(16,"spk-icon"),l(17,"password"),o(),l(18," Generate password "),o(),d(19,ln,4,2,"button",23),o(),d(20,sn,2,0,"spk-alert",24),o()}if(n&2){let e=p(2);s(6),c("type",e.showPassword()?"text":"password"),s(),_(e.generalForm.value.password?7:-1),s(2),c("type",e.showPassword()?"text":"password"),s(),_(e.generalForm.value.repeatPassword&&e.generalForm.value.repeatPassword!==e.generalForm.value.password?10:-1),s(3),_(e.showPassword()?13:14),s(6),_(e.showCopyPassword()?19:-1),s(),_(e.generalForm.value.password&&e.generalForm.value.password===e.generalForm.value.repeatPassword?20:-1)}}function mn(n,i){if(n&1&&(a(0,"spk-select",11)(1,"label",12),l(2,"Encryption"),o(),f(3,"input",13),V(4,Xt,2,2,"option",14,T),o(),d(6,pn,21,7,"div",15)),n&2){let e=p();c("displayFn",e.displayFn()),s(4),b(e.encryptionOptions()),s(2),_(e.encryptionFieldSignal()!==""?6:-1)}}function cn(n,i){if(n&1&&(a(0,"button",9),l(1," Continue "),a(2,"spk-icon"),l(3,"arrow-right"),o()()),n&2){let e=p();c("disabled",e.generalForm.invalid)}}function dn(n,i){if(n&1&&(a(0,"spk-tooltip",10)(1,"button",9),l(2," Continue "),a(3,"spk-icon"),l(4,"arrow-right"),o()()()),n&2){let e=p();c("disabled",!(e.showCopyPassword()&&!e.copiedPassword())),s(),c("disabled",e.generalForm.invalid||e.showCopyPassword()&&!e.copiedPassword())}}var Be=new L,Ht=(n={name:"",description:"",encryption:"",password:"",repeatPassword:""})=>Be.group({name:Be.control(n.name,[_e.required]),description:Be.control(n.description),encryption:Be.control(n.encryption,[Bt()]),password:Be.control(n.password,[ht(i=>i?.value.encryption!=="",[_e.required])]),repeatPassword:Be.control(n.repeatPassword,[ht(i=>i?.value.encryption!=="",[_e.required])])}),wt={Key:"",DisplayName:"None"},yt=class n{#e=y(j);#n=y(le);#i=y(ct);#o=y(ee);#t=y(tt);formRef=ie.required("formRef");generalForm=this.#o.generalForm;generalFormSignal=this.#o.generalFormSignal;encryptionFieldSignal=this.#o.encryptionFieldSignal;encryptionOptions=this.#o.encryptionOptions;isNew=this.#o.isNew;showPassword=S(!1);copiedPassword=S(!1);showCopyPassword=S(!1);encryptionEffect=Xe(()=>{this.encryptionFieldSignal()===""&&(this.copiedPassword.set(!1),this.showCopyPassword.set(!1))});calculatePasswordStrength=G(()=>{let e=this.generalFormSignal()?.password??"";return this.#i.calculatePasswordStrength(e)});ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#o.exit()}async copyPassword(){let i=this.generalForm.controls.password.value;await this.#r(i??""),this.copiedPassword.set(!0)}async#r(i){try{await navigator.clipboard.writeText(i)}catch{try{let t=document.createElement("textarea");t.value=i,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}catch(t){console.error("Failed to copy text: ",t)}}}displayFn(){let i=this.#t.systemInfo()?.EncryptionModules??[];return e=>{let t=[wt,...i].find(r=>r.Key===e);return t?`${t.DisplayName}`:""}}generatePassword(){this.copiedPassword.set(!1);let i=this.#i.generate(16);this.generalForm.controls.password.setValue(i),this.generalForm.controls.repeatPassword.setValue(i),this.showCopyPassword.set(!0)}next(){this.#e.navigate(["destination"],{relativeTo:this.#n.parent})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=H({type:n,selectors:[["app-general"]],viewQuery:function(e,t){e&1&&oe(t.formRef,Jt,5),e&2&&re()},decls:22,vars:3,consts:[["formRef",""],["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],["for","backupName"],["type","text","tabindex","1","placeholder","Your backup name","formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder","Your backup description","formControlName","description"],[1,"form-actions"],["type","button","spk-button","",3,"click"],["spk-button","","type","submit",1,"raised","primary",3,"disabled"],["message","Remember to copy the password",1,"primary",3,"disabled"],[3,"displayFn"],["for","encryption"],["type","text","id","encryption","tabindex","3","placeholder","Encryption","formControlName","encryption"],[3,"value"],[1,"passwords"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder","Password","formControlName","password",3,"type"],[1,"raised",3,"warn","tertiary","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder","Repeat password","formControlName","repeatPassword",3,"type"],["error",""],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],["type","primary"],[1,"raised",3,"value"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]],template:function(e,t){if(e&1){let r=w();a(0,"form",1,0),C("submit",function(){return h(r),x(t.next())}),a(2,"h3",2),l(3,"General backup settings"),o(),a(4,"spk-form-field")(5,"label",3),l(6," Backup name "),a(7,"sup"),l(8,"*"),o()(),f(9,"input",4),o(),a(10,"spk-form-field")(11,"label",5),l(12,"Backup description"),o(),f(13,"textarea",6),o(),d(14,mn,7,2),a(15,"div",7)(16,"button",8),C("click",function(){return h(r),x(t.exit())}),a(17,"spk-icon"),l(18,"arrow-left"),o(),l(19," Exit "),o(),d(20,cn,4,1,"button",9)(21,dn,5,2,"spk-tooltip",10),o()()}e&2&&(c("formGroup",t.generalForm),s(14),_(t.isNew()?14:-1),s(6),_(t.encryptionFieldSignal()===""?20:21))},dependencies:[de,pe,Q,Y,q,K,se,me,ce,J,X,Se,Z,Rt,rt,Ge],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}sup[_ngcontent-%COMP%]{padding:0 .125rem;color:var(--warn-500)}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-500)}"],changeDetection:0})};var un=["formRef"],fn=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),_n=n=>({$implicit:n});function gn(n,i){if(n&1&&(a(0,"option",11),l(1),o()),n&2){let e=i.$implicit;c("value",e),s(),E(e)}}function Cn(n,i){if(n&1&&(a(0,"option",11),l(1),o()),n&2){let e=i.$implicit;c("value",e.value),s(),E(e.name)}}function hn(n,i){if(n&1){let e=w();a(0,"button",23,2),C("click",function(){let r=h(e).$implicit,m=p();return x(m.addNewOption(r))}),l(2),o()}if(n&2){let e=i.$implicit;s(2),E(e.name)}}function xn(n,i){n&1&&Ve(0)}function yn(n,i){if(n&1&&d(0,xn,1,0,"ng-container",24),n&2){let e=i.$implicit,t=i.$index;p();let r=ae(39);c("ngTemplateOutlet",r)("ngTemplateOutletContext",be(5,_n,Pt(2,fn,t,e)))}}function wn(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Sn(n,i){if(n&1&&(a(0,"app-file-tree",27)(1,"label",33),l(2),d(3,wn,3,1,"spk-tooltip",34),o(),f(4,"input",35),o()),n&2){let e,t=p().$implicit,r=p();c("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name)}}function kn(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function vn(n,i){if(n&1&&(a(0,"app-file-tree",28)(1,"label",33),l(2),d(3,kn,3,1,"spk-tooltip",34),o(),f(4,"input",35),o()),n&2){let e,t=p().$implicit,r=p();c("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name)),s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name)}}function Fn(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Tn(n,i){n&1&&(a(0,"spk-icon",36),l(1,"link"),o())}function Vn(n,i){n&1&&(a(0,"spk-icon",36),l(1,"textbox"),o())}function bn(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",33),l(2),d(3,Fn,3,1,"spk-tooltip",34),o(),f(4,"input",35),d(5,Tn,2,0,"spk-icon",36)(6,Vn,2,0,"spk-icon",36),o()),n&2){let e,t=p().$implicit;s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name),s(),_(t.formView.type==="Path"?5:6)}}function Dn(n,i){if(n&1){let e=w();a(0,"span",40),C("click",function(){h(e);let r=p(2).$implicit,m=p();return x(m.oauthStartTokenCreation(r.formViewType))}),l(1,"AuthID"),o()}}function On(n,i){n&1&&(a(0,"spk-icon",36),l(1,"password"),o())}function En(n,i){if(n&1){let e=w();a(0,"spk-icon",41),C("click",function(){h(e);let r=p(2).$implicit;return x(r.formView.showPassword=!r.formView.showPassword)}),l(1," eye "),o()}}function Nn(n,i){if(n&1){let e=w();a(0,"spk-icon",41),C("click",function(){h(e);let r=p(2).$implicit;return x(r.formView.showPassword=!r.formView.showPassword)}),l(1," eye-slash "),o()}}function Pn(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",33),l(2),o(),f(3,"input",37),d(4,Dn,2,0,"span",38)(5,On,2,0,"spk-icon",36)(6,En,2,0,"spk-icon",39)(7,Nn,2,0,"spk-icon",39),o()),n&2){let e,t=p().$implicit;s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name),c("type",t.formView.showPassword?"text":"password"),s(),_(t.oauthField===t.formView.name?4:5),s(2),_(t.formView.showPassword?6:7)}}function In(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Gn(n,i){if(n&1&&(a(0,"option",11),l(1),o()),n&2){let e=i.$implicit;c("value",e),s(),E(e)}}function Mn(n,i){if(n&1&&(a(0,"spk-select")(1,"label",33),l(2),d(3,In,3,1,"spk-tooltip",34),o(),f(4,"input",42),k(5,10),V(6,Gn,2,2,"option",11,T),v(),o()),n&2){let e,t=p().$implicit;s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name),s(2),b(t.formView.options)}}function $n(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function An(n,i){if(n&1&&(a(0,"option",11),l(1),o()),n&2){let e=i.$implicit;c("value",e),s(),E(e)}}function Rn(n,i){if(n&1&&(a(0,"div",29)(1,"label",33),l(2),d(3,$n,3,1,"spk-tooltip",34),o(),a(4,"div",43)(5,"spk-form-field"),f(6,"input",44),a(7,"spk-icon",36),l(8,"resize"),o()(),a(9,"spk-select"),f(10,"label")(11,"input",45),k(12,10),V(13,An,2,2,"option",11,T),v(),o()()()),n&2){let e,t=p().$implicit,r=p();c("formGroupName",t.formView.name),s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(3),I("id","destination-",t.formGroupName,"-",t.index,""),s(7),b(r.sizeOptions())}}function Bn(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Un(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",33),l(2),d(3,Bn,3,1,"spk-tooltip",34),o(),f(4,"input",46),a(5,"spk-icon",36),l(6,"numpad"),o()()),n&2){let e,t=p().$implicit;s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name)}}function Hn(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Ln(n,i){if(n&1&&(a(0,"spk-toggle",30)(1,"label",33),l(2),d(3,Hn,3,1,"spk-tooltip",34),o(),f(4,"input",47),o()),n&2){let e,t=p().$implicit;s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name)}}function Wn(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function zn(n,i){n&1&&(a(0,"spk-option",49),l(1,"None"),o()),n&2&&c("value","None")}function jn(n,i){if(n&1&&(a(0,"spk-option",11),l(1),f(2,"spk-checkbox",50),o()),n&2){let e=p().$implicit;c("value",e),s(),D(" ",e," ")}}function qn(n,i){if(n&1&&d(0,zn,2,1,"spk-option",49)(1,jn,3,2,"spk-option",11),n&2){let e=i.$implicit;_(e==="None"?0:1)}}function Kn(n,i){if(n&1&&(a(0,"spk-select",31)(1,"label",33),l(2),d(3,Wn,3,1,"spk-tooltip",34),o(),f(4,"input",48),k(5,10),V(6,qn,2,1,null,null,T),v(),o()),n&2){let e,t=p().$implicit;c("selectMultiple",!0),s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),P("formControlName",t.formView.name),s(2),b(t.formView.options)}}function Qn(n,i){if(n&1&&(a(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Yn(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",33),l(2),d(3,Qn,3,1,"spk-tooltip",34),o(),f(4,"input",35),o()),n&2){let e,t=p().$implicit;s(),I("for","destination-",t.formGroupName,"-",t.index,""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),I("id","destination-",t.formGroupName,"-",t.index,""),P("formControlName",t.formView.name)}}function Zn(n,i){if(n&1){let e=w();a(0,"div",25),k(1,26),d(2,Sn,5,14,"app-file-tree",27)(3,vn,5,10,"app-file-tree",28)(4,bn,7,10,"spk-form-field")(5,Pn,8,11,"spk-form-field")(6,Mn,8,9,"spk-select")(7,Rn,15,9,"div",29)(8,Un,7,9,"spk-form-field")(9,Ln,5,9,"spk-toggle",30)(10,Kn,8,7,"spk-select",31)(11,Yn,5,9,"spk-form-field"),v(),a(12,"button",32),C("click",function(){let r=h(e).$implicit,m=p();return x(m.removeFormView(r.formView,0))}),a(13,"spk-icon"),l(14,"x-circle"),o()()()}if(n&2){let e=i.$implicit;s(),c("formGroupName",e.formGroupName),s(),_(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var ge=new L,Jn=["Bytes","KB","MB","GB","TB","PB"],Xn=[{value:"",name:"Keep all backups"},{value:"time",name:"Delete backups that are older than"},{value:"versions",name:"Keep a specific number of backups"},{value:"smart",name:"Smart backup retention"},{value:"custom",name:"Custom backup retention"}],Lt=(n={remoteVolumeSize:50,size:"MB",backupRetention:"",advancedOptions:[]})=>ge.group({remoteVolumeSize:ge.group({size:ge.control(n.remoteVolumeSize),unit:ge.control(n.size)}),backupRetention:ge.control(n.backupRetention),advancedOptions:ge.group({})}),mr=(n,i)=>ge.group({name:ge.control(n),value:ge.control(i)}),St=class n{#e=y(ee);#n=y(j);#i=y(le);formRef=ie.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;sizeOptions=S(Jn);rentationOptions=S(Xn);oauthStartTokenCreation(i){}getFormFieldValue(i,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){this.#e.addOptionToFormGroup(i)}retentionOptionDisplayFn(){let i=this.rentationOptions();return e=>{let t=i.find(r=>r.value===e);return t?t.name:""}}displayFn(){let i=this.#e.advancedOptions();return e=>{let t=i.find(r=>r.name===e);return t?`${t.name}`:""}}goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#i.parent})}submit(){this.#e.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=H({type:n,selectors:[["app-options"]],viewQuery:function(e,t){e&1&&oe(t.formRef,un,5),e&2&&re()},decls:49,vars:5,consts:[["formRef",""],["fieldTemplate",""],["option",""],[3,"submit","formGroup"],[1,"title-30"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder","Select an option...","formControlName","unit"],["options",""],[3,"value"],["href","#",1,"spk-primary"],[3,"displayFn"],["type","text","formControlName","backupRetention"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]],template:function(e,t){if(e&1){let r=w();a(0,"form",3,0),C("submit",function(){return h(r),x(t.submit())}),a(2,"h3",4),l(3,"Options"),o(),a(4,"div",5)(5,"div",6)(6,"spk-form-field")(7,"label",7),l(8,"Remote volume size"),o(),f(9,"input",8),o(),a(10,"spk-select"),f(11,"input",9),k(12,10),V(13,gn,2,2,"option",11,T),v(),o()(),a(15,"p"),l(16," The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. "),a(17,"a",12),l(18,"Read more"),o()()(),a(19,"spk-select",13)(20,"label",7),l(21,"Backup retention"),o(),f(22,"input",14),V(23,Cn,2,2,"option",11,T),o(),a(25,"app-toggle-card",15),k(26,16),l(27," Advanced options "),a(28,"spk-menu")(29,"button",17),l(30," Add advanced option "),a(31,"spk-icon"),l(32,"plus"),o()(),k(33,18),V(34,hn,3,1,"button",19,T),v(),o(),v(),V(36,yn,1,7,"ng-container",null,T),o(),d(38,Zn,15,2,"ng-template",null,1,Je),a(40,"div",20)(41,"button",21),C("click",function(){return h(r),x(t.goBack())}),a(42,"spk-icon"),l(43,"arrow-left"),o(),l(44," Go back "),o(),a(45,"button",22)(46,"spk-icon"),l(47,"arrow-right"),o(),l(48," Submit "),o()()()}e&2&&(c("formGroup",t.optionsForm),s(13),b(t.sizeOptions()),s(6),c("displayFn",t.retentionOptionDisplayFn()),s(4),b(t.rentationOptions()),s(2),c("disallowToggle",!0),s(9),b(t.nonSelectedOptions()),s(2),b(t.selectedOptions()),s(9),fe("loader",t.isSubmitting()))},dependencies:[de,pe,Q,Y,q,ye,xe,K,se,me,ce,we,et,lt,X,Se,Z,J,ke,at,st,Ge,Me,ve],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var ei=["formRef"];function ti(n,i){if(n&1&&(a(0,"option",24),l(1),o()),n&2){let e=i.$implicit;c("value",e.key),s(),E(e.label)}}function ni(n,i){if(n&1){let e=w();a(0,"div",11)(1,"spk-form-field")(2,"label",12),l(3,"Next time"),o(),a(4,"input",13,1),C("focus",function(){h(e);let r=ae(5);return x(r.showPicker())}),o(),a(6,"spk-icon",14),l(7,"clock"),o()(),a(8,"spk-form-field"),f(9,"label",15),a(10,"input",16,2),C("focus",function(){h(e);let r=ae(11);return x(r.showPicker())}),o(),a(12,"spk-icon",14),l(13,"calendar"),o()()(),k(14,17),a(15,"div",18)(16,"spk-form-field")(17,"label",19),l(18,"Run again every"),o(),f(19,"input",20),o(),a(20,"spk-select",21),f(21,"input",22),k(22,23),V(23,ti,2,2,"option",24,T),v(),o()(),a(25,"app-toggle-card",25),k(26,26),l(27,"Allowed days"),v(),a(28,"div",27)(29,"spk-toggle",6),l(30," Monday "),f(31,"input",28),o(),a(32,"spk-toggle",6),l(33," Tuesday "),f(34,"input",29),o(),a(35,"spk-toggle",6),l(36," Wednesday "),f(37,"input",30),o(),a(38,"spk-toggle",6),l(39," Thursday "),f(40,"input",31),o(),a(41,"spk-toggle",6),l(42," Friday "),f(43,"input",32),o(),a(44,"spk-toggle",6),l(45," Saturday "),f(46,"input",33),o(),a(47,"spk-toggle",6),l(48," Sunday "),f(49,"input",34),o()()(),v()}if(n&2){let e=p();s(20),c("displayFn",e.displayFn),s(3),b(e.unitOptions),s(2),c("disallowToggle",!0)}}var A=new L,Wt=[{key:"s",label:"Seconds"},{key:"m",label:"Minutes"},{key:"h",label:"Hours"},{key:"D",label:"Days"},{key:"W",label:"Weeks"},{key:"M",label:"Months"},{key:"Y",label:"Years"}],zt=(n={autoRun:!1,nextTime:{time:"13:00",date:new Date().toISOString().split("T")[0]},runAgain:{repeatValue:1,repeatUnit:"D",allowedDays:{mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,sun:!1}}})=>A.group({autoRun:A.control(n.autoRun),nextTime:A.group({time:A.control(n.nextTime.time),date:A.control(n.nextTime.date)}),runAgain:A.group({repeatValue:A.control(n.runAgain.repeatValue),repeatUnit:A.control(n.runAgain.repeatUnit),allowedDays:A.group({mon:A.control(n.runAgain.allowedDays.mon),tue:A.control(n.runAgain.allowedDays.tue),wed:A.control(n.runAgain.allowedDays.wed),thu:A.control(n.runAgain.allowedDays.thu),fri:A.control(n.runAgain.allowedDays.fri),sat:A.control(n.runAgain.allowedDays.sat),sun:A.control(n.runAgain.allowedDays.sun)})})}),kt=class n{#e=y(ee);#n=y(j);#i=y(le);formRef=ie.required("formRef");scheduleForm=this.#e.scheduleForm;scheduleFormSignal=this.#e.scheduleFormSignal;unitOptions=Wt;displayFn(i){let e=Wt.find(t=>t.key===i);return e?`${e.label}`:""}goBack(){this.#n.navigate(["source-data"],{relativeTo:this.#i.parent})}next(){this.#n.navigate(["options"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=H({type:n,selectors:[["app-schedule"]],viewQuery:function(e,t){e&1&&oe(t.formRef,ei,5),e&2&&re()},decls:20,vars:2,consts:[["formRef",""],["timeRef",""],["dateRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"toggle-wrap"],[1,"raised","primary"],["type","checkbox","formControlName","autoRun"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["formGroupName","nextTime",1,"row-inputs"],["for","time"],["type","time","id","time","formControlName","time",3,"focus"],["suffix",""],["for","date"],["type","date","id","date","formControlName","date",3,"focus"],["formGroupName","runAgain"],[1,"row-inputs"],["for","repeatValue"],["type","number","id","repeatValue","formControlName","repeatValue"],[3,"displayFn"],["type","text","id","repeatUnit","formControlName","repeatUnit"],["options",""],[3,"value"],["formGroupName","allowedDays",3,"disallowToggle"],["title",""],[1,"days-wrap"],["type","checkbox","formControlName","mon"],["type","checkbox","formControlName","tue"],["type","checkbox","formControlName","wed"],["type","checkbox","formControlName","thu"],["type","checkbox","formControlName","fri"],["type","checkbox","formControlName","sat"],["type","checkbox","formControlName","sun"]],template:function(e,t){if(e&1){let r=w();a(0,"form",3,0),C("submit",function(){return h(r),x(t.next())}),a(2,"h3",4),l(3,"Schedule"),o(),a(4,"div",5)(5,"spk-toggle",6),l(6," Automatically run backups "),f(7,"input",7),o(),a(8,"p"),l(9,"If a date was missed, the job will run as soon as possible."),o()(),d(10,ni,50,2),a(11,"div",8)(12,"button",9),C("click",function(){return h(r),x(t.goBack())}),a(13,"spk-icon"),l(14,"arrow-left"),o(),l(15," Go back "),o(),a(16,"button",10)(17,"spk-icon"),l(18,"arrow-right"),o(),l(19," Continue "),o()()()}if(e&2){let r;c("formGroup",t.scheduleForm),s(10),_((r=t.scheduleFormSignal())!=null&&r.autoRun?10:-1)}},dependencies:[de,pe,Q,Y,q,ye,xe,K,se,me,ce,we,J,X,ke,Z,Se,ve],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.toggle-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.days-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function ii(n,i){if(n&1&&(a(0,"option",3),l(1),o()),n&2){let e=i.$implicit;c("value",e.value),s(),E(e.key)}}function oi(n,i){if(n&1&&(a(0,"option",3),l(1),o()),n&2){let e=i.$implicit;c("value",e.value),s(),E(e.key)}}function ri(n,i){if(n&1){let e=w();a(0,"spk-select",0)(1,"input",6),C("ngModelChange",function(r){h(e);let m=p(2);return x(m.updateStateExpression(r))}),o(),V(2,oi,2,2,"option",3,T),o()}if(n&2){let e,t=p(2);c("hideClearButton",!0)("displayFn",t.displayFn),s(),c("ngModel",(e=t.pathState())==null?null:e.expression),s(),b(t.fileGroupOptions())}}function ai(n,i){if(n&1){let e=w();a(0,"spk-form-field")(1,"input",6),C("ngModelChange",function(r){h(e);let m=p(2);return x(m.updateStateExpression(r))}),o()()}if(n&2){let e,t=p(2);s(),c("ngModel",(e=t.pathState())==null?null:e.expression)}}function li(n,i){if(n&1){let e=w();a(0,"spk-select",0)(1,"input",1),C("ngModelChange",function(r){h(e);let m=p();return x(m.updateStateType(r))}),o(),k(2,2),V(3,ii,2,2,"option",3,T),v(),o(),d(5,ri,4,3,"spk-select",0)(6,ai,2,1,"spk-form-field"),a(7,"div",4),C("click",function(){h(e);let r=p();return x(r.removeFilter())}),a(8,"spk-icon",5),l(9,"x-circle"),o()()}if(n&2){let e,t,r=p();c("hideClearButton",!0)("displayFn",r.displayFn),s(),c("ngModel",(e=r.pathState())==null?null:e.type),s(2),b(r.expressionOptions()),s(2),_(((t=r.pathState())==null?null:t.type)==="-FileGroup"||((t=r.pathState())==null?null:t.type)==="+FileGroup"?5:6)}}var jt=[{key:"Excludes folders where name contains",value:"-FolderNameIncludes"},{key:"Excludes folder",value:"-Folder"},{key:"Excludes files where name contains",value:"-FileNameIncludes"},{key:"Excludes file extension",value:"-Extension"},{key:"Excludes files where name matches regex",value:"-Regex"},{key:"Includes files where name matches regex",value:"+Regex"},{key:"Excludes file group",value:"-FileGroup"},{key:"Includes expression",value:"+Expression"},{key:"Excludes expression",value:"-Expression"}],si=[{key:"Applications",value:"Applications"},{key:"CacheFiles",value:"Cache Files"},{key:"TemporaryFiles",value:"Temporary Files"},{key:"OperatingSystem",value:"Operating System"},{key:"SystemFiles",value:"System Files"},{key:"DefaultExcludes",value:"Standard Excludes"}],dt=class n{path=Ze.required();pathChange=We();remove=We();expressionOptions=S(jt);fileGroupOptions=S(si);pathState=S(null);pathEffect=Xe(()=>{let i=this.path(),e=i.slice(1),t=i.startsWith("-")?"-":"+";return e.startsWith("/")&&e.endsWith("/")?this.pathState.set({type:`${t}Folder`,path:e,expression:e}):e.startsWith("*")&&e.endsWith("*/")?this.pathState.set({type:`${t}FolderNameIncludes`,path:e,expression:e.slice(1,-2)}):e.startsWith("[.*")&&e.endsWith("[^\\/]*]")?this.pathState.set({type:`${t}FileNameIncludes`,path:e,expression:e.slice(3,-7)}):e.startsWith("{")&&e.endsWith("}")?this.pathState.set({type:`${t}FileGroup`,path:e,expression:e.slice(1,-1)}):e.startsWith("[")&&e.endsWith("]")?this.pathState.set({type:`${t}Regex`,path:e,expression:e.slice(1,-1)}):e.startsWith("*.")?this.pathState.set({type:`${t}Extension`,path:e,expression:e.slice(2)}):this.pathState.set({type:`${t}Expression`,path:e,expression:e})});updateStateType(i){this.pathState.update(e=>(e.type=i,e.path=this.#e(e),e)),this.pathChange.emit(this.pathState().path)}updateStateExpression(i){this.pathState.update(e=>(e.expression=i,e.path=this.#e(e),e)),this.pathChange.emit(this.pathState().path)}#e(i){let e=i.type.slice(0,1),t=i.type.slice(1);if(t==="Folder"){let r=i.expression.endsWith("/"),m=i.expression.startsWith("/");return r&&m?`${e}${i.expression}`:r?`${e}${i.expression}/`:m?`${e}/${i.expression}`:`${e}/${i.expression}/`}return t==="FolderNameIncludes"?`${e}*${i.expression}*/`:t==="FileNameIncludes"?`${e}[.*${i.expression}[^\\/]*]`:t==="FileGroup"?`${e}{${i.expression}}`:t==="Regex"?`${e}[${i.expression}]`:t==="Extension"?`${e}*.${i.expression}`:`${e}${i.expression}`}removeFilter(){this.remove.emit()}displayFn(i){let e=jt.find(t=>t.value===i);return e?e.key:""}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=H({type:n,selectors:[["app-filter"]],inputs:{path:[1,"path"]},outputs:{pathChange:"pathChange",remove:"remove"},decls:1,vars:1,consts:[[3,"hideClearButton","displayFn"],["type","text","placeholder","Select an option...",3,"ngModelChange","ngModel"],["options",""],[3,"value"],[1,"filter-removal",3,"click"],[1,"spk-primary"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,t){e&1&&d(0,li,10,4),e&2&&_(t.pathState()?0:-1)},dependencies:[ot,Q,Y,q,K,Gt,X,Z,J],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:13.125rem 1fr 1.875rem;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{--miw: initial}[_nghost-%COMP%] .filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var pi=["formRef"];function mi(n,i){if(n&1){let e=w();a(0,"app-filter",26),C("pathChange",function(r){let m=h(e).$index,u=p();return x(u.patchPathAt(r,m))})("remove",function(){let r=h(e).$index,m=p();return x(m.removePathAt(r))}),o()}if(n&2){let e=i.$implicit;c("path",e)}}function ci(n,i){if(n&1&&(a(0,"option",30),l(1),o()),n&2){let e=i.$implicit;c("value",e),s(),E(e)}}function di(n,i){if(n&1&&(a(0,"div",25)(1,"spk-form-field"),f(2,"input",27),o(),a(3,"spk-select"),f(4,"input",28),k(5,29),V(6,ci,2,2,"option",30,T),v(),o()()),n&2){let e=p();s(6),b(e.sizeOptions())}}var Ce=new L,ui=["Bytes","KB","MB","GB","TB","PB"],qt=(n={path:"",filters:[],excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>Ce.group({path:Ce.control(n.path),excludes:Ce.group({hidden:Ce.control(n.excludes.hidden),system:Ce.control(n.excludes.system),temporary:Ce.control(n.excludes.temporary),filesLargerThan:Ce.group({size:Ce.control(null),unit:Ce.control(null)})})}),vt=class n{#e=y(ee);#n=y(j);#i=y(le);formRef=ie.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;newPathCtrl=new nt("");filesLargerThan=G(()=>this.sourceDataFormSignal()?.excludes?.filesLargerThan?.size!==null);sizeOptions=S(ui);pathSignal=M(this.sourceDataForm.controls.path.valueChanges);pathArray=G(()=>this.pathSignal()?.split("\0").filter(i=>i.startsWith("-")||i.startsWith("+"))??[]);addFilter(i="-*"){let e=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${e}\0${i}`)}patchPathAt(i,e){let r=this.sourceDataForm.controls.path.value.split("\0").filter(u=>!u.startsWith("-")&&!u.startsWith("+")).join("\0"),m=this.pathArray().map((u,$)=>$===e?`${i}`:`${u}`).join("\0");this.sourceDataForm.controls.path.setValue(`${r}\0${m}`)}removePathAt(i){let t=this.sourceDataForm.controls.path.value.split("\0").filter(m=>!m.startsWith("-")&&!m.startsWith("+")).join("\0"),r=this.pathArray().filter((m,u)=>u!==i).join("\0");this.sourceDataForm.controls.path.setValue(`${t}\0${r}`)}getPath(){return this.sourceDataForm.value.path??null}toggleFilesLargerThan(){this.sourceDataForm.controls.excludes.value.filesLargerThan?.size===null?this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:50,unit:"MB"}):this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:null,unit:null})}addNewPath(){let i=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${i}\0${this.newPathCtrl.value}`),this.newPathCtrl.setValue("")}goBack(){this.#n.navigate(["destination"],{relativeTo:this.#i.parent})}next(){this.#n.navigate(["schedule"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=H({type:n,selectors:[["app-source-data"]],viewQuery:function(e,t){e&1&&oe(t.formRef,pi,5),e&2&&re()},decls:58,vars:11,consts:[["formRef",""],[3,"submit","formGroup"],[1,"left"],[1,"title-30"],[1,"fill",3,"multiSelect","startingPath","showFiles"],["for","path"],["type","text","id","path","tabindex","4","placeholder","Path","formControlName","path"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[1,"right"],[3,"disallowToggle"],["title",""],["description",""],[1,"row-inputs"],["type","text","placeholder","Add a direct path",3,"formControl"],["spk-button","","type","button",1,"raised","primary",3,"click"],["type","button","spk-button","","action","",3,"click"],[3,"path"],["formGroupName","excludes",3,"disallowToggle"],[1,"raised","primary"],["type","checkbox","placeholder","Hidden files","formControlName","hidden"],["type","checkbox","placeholder","System files","formControlName","system"],["type","checkbox","placeholder","Temporary files","formControlName","temporary"],[1,"raised","primary",3,"click"],["formGroupName","filesLargerThan",1,"row-inputs"],[3,"pathChange","remove","path"],["type","number","formControlName","size"],["type","text","formControlName","unit","placeholder","Select an option..."],["options",""],[3,"value"]],template:function(e,t){if(e&1){let r=w();a(0,"form",1,0),C("submit",function(){return h(r),x(t.next())}),a(2,"div",2)(3,"h3",3),l(4,"Source Data"),o(),a(5,"app-file-tree",4)(6,"label",5),l(7,"Folder path"),o(),f(8,"input",6),o(),a(9,"div",7)(10,"button",8),C("click",function(){return h(r),x(t.goBack())}),a(11,"spk-icon"),l(12,"arrow-left"),o(),l(13," Go back "),o(),a(14,"button",9)(15,"spk-icon"),l(16,"arrow-right"),o(),l(17," Continue "),o()()(),a(18,"div",10)(19,"h3",3),l(20,"Source Data"),o(),a(21,"app-toggle-card",11),k(22,12),l(23,"Add Path"),v(),a(24,"p",13),l(25,"Add a path directly from your machine."),o(),a(26,"div",14)(27,"spk-form-field"),f(28,"input",15),o(),a(29,"button",16),C("click",function(){return h(r),x(t.addNewPath())}),a(30,"spk-icon"),l(31,"plus"),o()()()(),a(32,"app-toggle-card",11),k(33,12),l(34,"Filters"),v(),a(35,"p",13),l(36,"Customize your filters."),o(),a(37,"button",17),C("click",function(){return h(r),x(t.addFilter())}),l(38,"Add filter"),o(),V(39,mi,1,1,"app-filter",18,T),o(),a(41,"app-toggle-card",19),k(42,12),l(43,"Exclude"),v(),a(44,"p",13),l(45,"Choose if there\u2019s any files you want to exclude."),o(),a(46,"spk-toggle",20),l(47," Hidden files "),f(48,"input",21),o(),a(49,"spk-toggle",20),l(50," System files "),f(51,"input",22),o(),a(52,"spk-toggle",20),l(53," Temporary files "),f(54,"input",23),o(),a(55,"spk-toggle",24),C("click",function(){return h(r),x(t.toggleFilesLargerThan())}),l(56," Files larger than "),o(),d(57,di,8,0,"div",25),o()()()}e&2&&(c("formGroup",t.sourceDataForm),s(5),c("multiSelect",!0)("startingPath",t.getPath())("showFiles",!0),s(16),c("disallowToggle",!0),s(7),c("formControl",t.newPathCtrl),s(4),c("disallowToggle",!0),s(7),b(t.pathArray()),s(2),c("disallowToggle",!0),s(14),fe("active",t.filesLargerThan()),s(2),_(t.filesLargerThan()?57:-1))},dependencies:[ot,pe,Q,Y,q,ye,xe,K,se,de,it,me,ce,we,J,Z,Se,X,ke,Me,ve,dt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1 0;overflow:hidden}form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;flex:1 0;overflow:hidden}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:1.5rem}.left[_ngcontent-%COMP%]{padding:2.5rem;overflow:hidden;border-right:1px solid var(--base-level-40)}.right[_ngcontent-%COMP%]{padding:2.5rem 1.5rem;overflow:auto}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.5rem}"],changeDetection:0})};var te=new L,ee=class n{#e=y(j);#n=y(tt);#i=y(Ie);#o=y(pt);generalForm=Ht();sourceDataForm=qt();scheduleForm=zt();destinationForm=Kt();optionsForm=Lt();isDraft=S(!1);backupId=S(null);isSubmitting=S(!1);finishedLoading=S(!1);backupDefaults=S(null);isNew=G(()=>this.backupId()==="new");selectedOptions=S([]);selectedAdvancedFormPair=S([]);destinationFormPair=S({oauthField:null,custom:[],dynamic:[],advanced:[]});notSelectedAdvancedFormPair=G(()=>{let i=this.destinationFormPair()?.advanced??[],e=this.selectedAdvancedFormPair()??[];return i.filter(t=>e.findIndex(r=>r.name===t.name)===-1)});selectedHttpOptions=S([]);notSelectedHttpOptions=G(()=>{let i=this.httpOptions(),e=this.selectedHttpOptions()??[];return i.filter(t=>e.findIndex(r=>r.name===t.name)===-1)});sourceDataFormSignal=M(this.sourceDataForm.valueChanges);destinationFormSignal=M(this.destinationForm.valueChanges);generalFormSignal=M(this.generalForm.valueChanges);encryptionFieldSignal=M(this.generalForm.controls.encryption.valueChanges);scheduleFormSignal=M(this.scheduleForm.valueChanges);destinationOptions=G(()=>this.#n.backendModules()??[]);httpOptions=G(()=>this.#n.systemInfo()?.GenericModules?.find(i=>i.Key==="http-options")?.Options?.map(this.#t)??[]);advancedOptions=G(()=>this.#n.systemInfo()?.Options?.map(this.#t)??[]);#t(i){return{name:i.Name,type:i.Type,shortDescription:i.ShortDescription??void 0,longDescription:i.LongDescription??void 0,options:i.ValidValues}}encryptionOptions=G(()=>{let i=this.#n.systemInfo()?.EncryptionModules??[];return[wt,...i]});nonSelectedOptions=G(()=>this.advancedOptions().sort((i,e)=>i?.name&&e?.name?i?.name.localeCompare(e?.name):0).filter(i=>this.selectedOptions()?.findIndex(e=>e.name===i.name)===-1));addAdvancedFormPairByName(i,e,t){let r=this.notSelectedAdvancedFormPair().find(m=>m.name===i);r&&this.addAdvancedFormPair(r,e,t)}addHttpOptionByName(i,e,t){let r=this.notSelectedHttpOptions().find(m=>m.name===i);r&&this.addHttpOption(r,e,t)}addAdvancedFormPair(i,e,t){let r=this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced,m=t??i.defaultValue;this.createFormField(r,i,m),this.selectedAdvancedFormPair.set([...this.selectedAdvancedFormPair(),i])}addHttpOption(i,e,t){let r=this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced,m=t??i.defaultValue;this.createFormField(r,i,m),this.selectedHttpOptions.set([...this.selectedHttpOptions(),i])}removeAdvancedFormPair(i,e){this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced.removeControl(i.name),this.selectedAdvancedFormPair().findIndex(r=>r.name===i.name)!==-1?this.selectedAdvancedFormPair.update(r=>(r=r.filter(m=>m.name!==i.name),r)):this.selectedHttpOptions.update(r=>(r=r.filter(m=>m.name!==i.name),r))}removeHttpOption(i,e){this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced.removeControl(i.name),this.selectedHttpOptions.update(t=>(t=t.filter(r=>r.name!==i.name),t))}submit(){this.isSubmitting.set(!0);let i=this.#s(),e=this.backupId();e==="new"||!e||this.isDraft()?this.#i.postApiV1Backups({requestBody:i}).pipe(Le(()=>this.isSubmitting.set(!1))).subscribe({next:t=>{console.log("submitted res",t),this.exit()},error:t=>{console.error("submitted error",t)}}):this.#i.putApiV1BackupById({id:e,requestBody:i}).pipe(Le(()=>this.isSubmitting.set(!1))).subscribe({next:t=>{console.log("submitted res",t),this.exit()},error:t=>{console.error("submitted error",t)}})}exit(){this.#m(),this.#e.navigate(["/"])}updateFieldsFromTargetUrl(i){this.#r(),setTimeout(()=>{this.#l(i)})}#r(){this.destinationFormPair.set({oauthField:null,custom:[],dynamic:[],advanced:[]}),this.selectedAdvancedFormPair.set([]),this.selectedHttpOptions.set([]),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset()}mapSourceDataToForm(i){let e=i.Sources??"",t=i.Filters?.map(R=>`${R.Include?"":"-"}${R.Expression}`)??[],r=i.Settings?.find(R=>R.Name==="--exclude-files-attributes")?.Value??"",m=i.Settings?.find(R=>R.Name==="--skip-files-larger-than")??null,u=m?.Value.replace(/[0-9]/g,"")??null,$=m?.Value.replace(/[^0-9]/g,"")??null,B={path:[...e,...t].join("\0"),excludes:{hiddenFiles:r.includes("hidden"),systemFiles:r.includes("system"),tempFiles:r.includes("temporary"),filesLargerThan:u&&$?{size:parseInt($),unit:u.toUpperCase()}:null}};this.sourceDataForm.patchValue(B)}mapDestinationToForm(i){let e=i.TargetURL?xt(i.TargetURL):null;e&&this.addDestinationFormGroup(e.destinationType,{custom:e.custom,dynamic:e.dynamic,advanced:e.advanced},!0)}#l(i){let e=xt(i);e&&this.addDestinationFormGroup(e.destinationType,{custom:e.custom,dynamic:e.dynamic,advanced:e.advanced},!0)}mapGeneralToForm(i){let e=i.Settings?.find(m=>m.Name==="encryption-module"),t=e?.Value&&e.Value.length?e.Value:"",r={name:i.Name??"",description:i.Description??""};t&&t!==""&&(r.encryption=t),this.generalForm.patchValue(r)}mapScheduleToForm(i){if(!i){this.scheduleForm.patchValue({autoRun:!0});return}let e=this.#o.fromString(i.Repeat)??null,r={nextTime:this.#p(i.Time),runAgain:{repeatValue:e?.value??1,repeatUnit:e?.unit??"D",allowedDays:{mon:i.AllowedDays?.includes("mon")??!1,tue:i.AllowedDays?.includes("tue")??!1,wed:i.AllowedDays?.includes("wed")??!1,thu:i.AllowedDays?.includes("thu")??!1,fri:i.AllowedDays?.includes("fri")??!1,sat:i.AllowedDays?.includes("sat")??!1,sun:i.AllowedDays?.includes("sun")??!1}}};this.scheduleForm.patchValue(r)}mapOptionsToForms(i){let e=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than"],t=this.advancedOptions();i.Settings?.forEach(r=>{if(r.Name==="encryption-module")return this.generalForm.controls.encryption.setValue(r.Value??"");if(!(r.Name&&e.includes(r.Name))){if(r.Name==="dblock-size"){let m=r.Value?.replace(/[^0-9]/g,""),u=r.Value?.replace(/[0-9]/g,"");return this.optionsForm.controls.remoteVolumeSize.setValue({size:m?parseInt(m):null,unit:u?u.toUpperCase():null})}if(r.Name&&r.Value){let m=t.find(u=>u.name===r.Name);if(!m)return;this.addOptionToFormGroup(m,r.Value)}}})}getCurrentTargetUrl(){return this.#a(this.destinationForm.controls.destinations)}#s(){let i=this.generalForm.value,e=this.optionsForm.value,t=this.scheduleForm.value,r=this.sourceDataForm.value,u=this.destinationForm.value.destinations?.length?this.#a(this.destinationForm.controls.destinations):[],$=null;t.runAgain?.repeatUnit&&t.runAgain?.repeatValue&&($=this.#o.toString(t.runAgain.repeatValue,t.runAgain.repeatUnit));let B=t.runAgain?.allowedDays?Object.entries(t.runAgain?.allowedDays).filter(([g,F])=>F).map(([g,F])=>g):[],R=r.path?.split("\0")??[],_t=i.encryption===""?{Name:"--no-encryption",Value:"True"}:{Name:"encryption-module",Value:i.encryption??null},gt=this.advancedOptions(),Qe=Object.entries(e.advancedOptions??{}).filter(([g,F])=>g&&F).map(([g,F])=>{let W=gt.find(z=>z.name===g);return W?.type==="Size"?{Name:g,Value:`${F.size}${F.unit.toLowerCase()}`}:W?.type==="Integer"?{Name:g,Value:F.toString()}:W?.type==="Boolean"?{Name:g,Value:F.toString()}:{Name:g,Value:F}}),Ee=[_t,...Qe],Ne=Object.entries(r.excludes??{}).filter(([g,F])=>F&&g!=="filesLargerThan").map(([g])=>g),O=r.excludes?.filesLargerThan;return Ne.length&&Ee.push({Name:"--exclude-files-attributes",Value:Ne.join(",")}),O&&O.size!==null&&O.unit!==null&&Ee.push({Name:"--skip-files-larger-than",Value:`${O.size}${O.unit}`}),{Backup:{Name:i.name,Description:i.description,TargetURL:u[0]??null,Sources:R.filter(g=>!g.startsWith("-")),Settings:Ee,Filters:R.filter(g=>g.startsWith("-")).map((g,F)=>({Order:F,Include:!1,Expression:g.slice(1)}))},Schedule:t.autoRun?{Repeat:$,Time:t.nextTime?.date?new Date(`${t.nextTime.date}T${t.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:B}:null}}#a(i){return i.controls.map(e=>mt(e.value))}#p(i){if(!i||i?.indexOf("T")===-1)return{time:i??"13:00"};let e=new Date(i),t={time:`${(""+e.getHours()).padStart(2,"0")}:${(""+e.getMinutes()).padStart(2,"0")}`};return i.indexOf("T")!==-1&&(t.date=e.toISOString().split("T")[0]),t}removeOptionFromFormGroup(i){let e=i.name;e&&(this.optionsForm.controls.advancedOptions.removeControl(e),this.selectedOptions.update(t=>(t=t.filter(r=>r.name!==e),t)))}addOptionToFormGroup(i,e){let t=this.optionsForm.controls.advancedOptions;this.createFormField(t,i,e??i.defaultValue),this.selectedOptions.update(r=>(r.push(i),r))}createFormField(i,e,t){if(e.type==="String"||e.type==="FileTree"||e.type==="FolderTree"||e.type==="Password"||e.type==="Enumeration"||e.type==="NonValidatedSelectableString"||e.type==="Path"){i.addControl(e.name,te.control(t));return}if(e.type==="Size"){let r=t.replace(/[0-9]/g,""),m=t.replace(/[^0-9]/g,"");i.addControl(e.name,te.group({size:te.control(m?parseInt(m):50),unit:te.control(r?r.toUpperCase():"MB")}));return}if(e.type==="Integer"){i.addControl(e.name,te.control(t?parseInt(t):0));return}if(e.type==="Boolean"){i.addControl(e.name,te.control(t==="true"));return}if(e.type==="Flags"){i.addControl(e.name,te.control(t??""));return}if(e.type==="Timespan"){i.addControl(e.name,te.control(t,[_e.pattern(/([-+]?\d{1,3}[smhDWMY])+/)]));return}}addDestinationFormGroup(i,e,t=!1){let r=this.destinationOptions().find(O=>O.Key===i),m=this.httpOptions();if(!r||!r.Options)return;let u=je.hasOwnProperty(i)&&je[i],$=u&&u.oauthField?u.oauthField:null,B=u&&u.customFields?u.customFields:{},R=u&&u.dynamicFields?u.dynamicFields:[],_t=u&&u.advancedFields?u.advancedFields:[],gt=u&&u.ignoredAdvancedFields?u.ignoredAdvancedFields:[];this.destinationFormPair.set({oauthField:$,custom:[],dynamic:[],advanced:[]});let Qe=te.group({}),Ee=te.group({}),Ne=te.group({});B&&Object.entries(B).forEach(([O,g],F)=>{let Te=g,{formElement:W}=Te,z=Tt(Te,["formElement"]);Qe.addControl(O,W(e?.custom[O])),this.destinationFormPair.update(Pe=>(Pe.custom.push(U({order:900+F},z)),Pe))});for(let O=0;O<r.Options.length;O++){let g=r.Options[O];if(g.Deprecated)continue;let F=R.find(W=>W===g.Name||W.name===g.Name);if(F){let W=F&&typeof F!="string",z={name:g.Name,type:g.Type,shortDescription:g.ShortDescription??void 0,longDescription:g.LongDescription??void 0,options:g.ValidValues,order:900+O},Te=W?U(U({},z),F):z,Ye=e?.dynamic[g.Name]??g.DefaultValue;this.createFormField(Ee,Te,Ye),this.destinationFormPair.update(Ue=>(Ue.dynamic.push(Te),Ue))}else{if(gt.find(ne=>ne===g.Name))continue;let z=_t.find(ne=>ne===g.Name||ne.name===g.Name),Te=z&&typeof z!="string",Pe=e?.advanced[g.Name],Ye=Pe??g.DefaultValue,Ue={name:g.Name,type:g.Type,shortDescription:g.ShortDescription??void 0,longDescription:g.LongDescription??void 0,options:g.ValidValues,defaultValue:Ye,order:900+O},Ct=Te?U(U({},Ue),z):Ue;t&&Pe&&(this.createFormField(Ne,Ct,Ye),this.selectedAdvancedFormPair.update(ne=>(ne.push(Ct),ne))),this.destinationFormPair.update(ne=>(ne.advanced.push(Ct),ne))}}for(let O=0;O<m.length;O++){let g=m[O],F=e?.advanced[g.name],W=F??g.defaultValue;t&&F&&(this.createFormField(Ne,g,W),this.selectedHttpOptions.update(z=>(z.push(g),z)))}this.destinationFormPair.update(O=>({oauthField:O.oauthField,custom:O.custom.sort((g,F)=>g.order-F.order),dynamic:O.dynamic.sort((g,F)=>g.order-F.order),advanced:O.advanced.sort((g,F)=>g.order-F.order)})),this.destinationForm.controls.destinations.push(Qt({key:r.Key,customGroup:Qe,dynamicGroup:Ee,advancedGroup:Ne}))}#m(){this.generalForm.reset(),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset(),this.sourceDataForm.reset(),this.scheduleForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=he({token:n,factory:n.\u0275fac,providedIn:"root"})};var fi=["formRef"],_i=(n,i,e,t)=>({index:n,formView:i,formGroupName:"custom",destinationType:e,oauthField:t}),ft=n=>({$implicit:n}),gi=(n,i,e,t)=>({index:n,formView:i,formGroupName:"dynamic",destinationType:e,oauthField:t}),Ci=(n,i,e,t)=>({index:n,formView:i,formGroupName:"advanced",destinationType:e,oauthField:t}),hi=(n,i,e,t)=>({index:n,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:e,oauthField:t}),xi=()=>({maxWidth:"700px",width:"100%"});function yi(n,i){n&1&&(l(0," Connected "),a(1,"spk-icon"),l(2,"check"),o())}function wi(n,i){n&1&&l(0," Test destination ")}function Si(n,i){if(n&1){let e=w();a(0,"button",8),C("click",function(){h(e);let r=p();return x(r.testDestination())}),d(1,yi,3,0)(2,wi,1,0),o()}if(n&2){let e=p();fe("success",e.successfulTest()),s(),_(e.successfulTest()?1:2)}}function ki(n,i){if(n&1){let e=w();a(0,"p",14),C("click",function(){h(e);let r=p();return x(r.removeDestinationFormGroup(r.destinationCount()-1))}),l(1," Want to select another destination? "),a(2,"span",15),l(3,"Click here"),o()()}}function vi(n,i){if(n&1){let e=w();a(0,"div",16)(1,"div",17),C("click",function(){h(e);let r=p();return x(r.addDestinationFormGroup("file"))}),a(2,"h3"),l(3,"File system"),o(),a(4,"p"),l(5,"Store backups on your local file system."),o()(),a(6,"div",17),C("click",function(){h(e);let r=p();return x(r.addDestinationFormGroup("gcs"))}),a(7,"h3"),l(8,"Google Cloud Storage"),o(),a(9,"p"),l(10,"Store backups in Google Cloud Storage."),o()(),a(11,"div",17),C("click",function(){h(e);let r=p();return x(r.addDestinationFormGroup("s3"))}),a(12,"h3"),l(13,"S3 compatible bucket"),o(),a(14,"p"),l(15,"Store backups in any S3 compatible bucket."),o()(),a(16,"div",17),C("click",function(){h(e);let r=p();return x(r.addDestinationFormGroup("ssh"))}),a(17,"h3"),l(18,"SSH"),o(),a(19,"p"),l(20,"Store backups in SSH."),o()(),a(21,"div",17),C("click",function(){h(e);let r=p();return x(r.addDestinationFormGroup("googledrive"))}),a(22,"h3"),l(23,"Google Drive"),o(),a(24,"p"),l(25,"Store backups in Google Drive."),o()()(),a(26,"p"),l(27,"More destinations are coming soon."),o()}}function Fi(n,i){n&1&&Ve(0)}function Ti(n,i){if(n&1&&d(0,Fi,1,0,"ng-container",23),n&2){let e,t=i.$implicit,r=i.$index;p();let m=ae(33),u=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",be(7,ft,ze(2,_i,r,t,(e=u.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Vi(n,i){n&1&&Ve(0)}function bi(n,i){if(n&1&&d(0,Vi,1,0,"ng-container",23),n&2){let e,t=i.$implicit,r=i.$index;p();let m=ae(33),u=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",be(7,ft,ze(2,gi,r,t,(e=u.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Di(n,i){if(n&1){let e=w();a(0,"button",24),C("click",function(){let r=h(e).$implicit,m=p(2);return x(m.addAdvancedFormPair(r,0))}),l(1),o()}if(n&2){let e=i.$implicit;s(),D(" ",e.name," ")}}function Oi(n,i){n&1&&Ve(0)}function Ei(n,i){if(n&1&&d(0,Oi,1,0,"ng-container",23),n&2){let e,t=i.$implicit,r=i.$index;p();let m=ae(33),u=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",be(7,ft,ze(2,Ci,r,t,(e=u.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Ni(n,i){if(n&1){let e=w();a(0,"button",24),C("click",function(){let r=h(e).$implicit,m=p(2);return x(m.addHttpOption(r,0))}),l(1),o()}if(n&2){let e=i.$implicit;s(),D(" ",e.name," ")}}function Pi(n,i){n&1&&Ve(0)}function Ii(n,i){if(n&1&&d(0,Pi,1,0,"ng-container",23),n&2){let e,t=i.$implicit,r=i.$index;p();let m=ae(33),u=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",be(7,ft,ze(2,hi,r,t,(e=u.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Gi(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Mi(n,i){if(n&1&&(a(0,"app-file-tree",27)(1,"label",34),l(2),d(3,Gi,3,1,"spk-tooltip",35),o(),f(4,"input",36),o()),n&2){let e,t=p().$implicit,r=p(2);c("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name)}}function $i(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Ai(n,i){if(n&1&&(a(0,"app-file-tree",28)(1,"label",34),l(2),d(3,$i,3,1,"spk-tooltip",35),o(),f(4,"input",36),o()),n&2){let e,t=p().$implicit,r=p(2);c("startingPath",r.getFormFieldValue(0,t.formGroupName,t.formView.name)),s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name)}}function Ri(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Bi(n,i){n&1&&(a(0,"spk-icon",37),l(1,"link"),o())}function Ui(n,i){n&1&&(a(0,"spk-icon",37),l(1,"textbox"),o())}function Hi(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",34),l(2),d(3,Ri,3,1,"spk-tooltip",35),o(),f(4,"input",36),d(5,Bi,2,0,"spk-icon",37)(6,Ui,2,0,"spk-icon",37),o()),n&2){let e,t=p().$implicit;s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name),s(),_(t.formView.type==="Path"?5:6)}}function Li(n,i){if(n&1){let e=w();a(0,"span",41),C("click",function(){h(e);let r=p(2).$implicit,m=p(2);return x(m.oauthStartTokenCreation(r.destinationType))}),l(1,"AuthID"),o()}}function Wi(n,i){n&1&&(a(0,"spk-icon",37),l(1,"password"),o())}function zi(n,i){if(n&1){let e=w();a(0,"spk-icon",42),C("click",function(){h(e);let r=p(2).$implicit;return x(r.formView.showPassword=!r.formView.showPassword)}),l(1," eye "),o()}}function ji(n,i){if(n&1){let e=w();a(0,"spk-icon",42),C("click",function(){h(e);let r=p(2).$implicit;return x(r.formView.showPassword=!r.formView.showPassword)}),l(1," eye-slash "),o()}}function qi(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",34),l(2),o(),f(3,"input",38),d(4,Li,2,0,"span",39)(5,Wi,2,0,"spk-icon",37)(6,zi,2,0,"spk-icon",40)(7,ji,2,0,"spk-icon",40),o()),n&2){let e,t=p().$implicit;s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name),c("type",t.formView.showPassword?"text":"password"),s(),_(t.oauthField===t.formView.name?4:5),s(2),_(t.formView.showPassword?6:7)}}function Ki(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Qi(n,i){if(n&1&&(a(0,"option",45),l(1),o()),n&2){let e=i.$implicit;c("value",e),s(),E(e)}}function Yi(n,i){if(n&1&&(a(0,"spk-select")(1,"label",34),l(2),d(3,Ki,3,1,"spk-tooltip",35),o(),f(4,"input",43),k(5,44),V(6,Qi,2,2,"option",45,T),v(),o()),n&2){let e,t=p().$implicit;s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name),s(2),b(t.formView.options)}}function Zi(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Ji(n,i){if(n&1&&(a(0,"option",45),l(1),o()),n&2){let e=i.$implicit;c("value",e.value),s(),bt(" ",e.key," ",e.value?"("+e.value+")":""," ")}}function Xi(n,i){if(n&1&&(a(0,"spk-select",29)(1,"label",34),l(2),d(3,Zi,3,1,"spk-tooltip",35),o(),f(4,"input",43),k(5,44),V(6,Ji,2,3,"option",45,T),v(),o()),n&2){let e,t=p().$implicit,r=p(2);c("isFreeText",!0),s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name),s(2),b(t.formView.loadOptions(r.injector)())}}function eo(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function to(n,i){if(n&1&&(a(0,"option",45),l(1),o()),n&2){let e=i.$implicit;c("value",e),s(),E(e)}}function no(n,i){if(n&1&&(a(0,"div",30)(1,"label",34),l(2),d(3,eo,3,1,"spk-tooltip",35),o(),a(4,"div",46)(5,"spk-form-field"),f(6,"input",47),a(7,"spk-icon",37),l(8,"resize"),o()(),a(9,"spk-select"),f(10,"label")(11,"input",48),k(12,44),V(13,to,2,2,"option",45,T),v(),o()()()),n&2){let e,t=p().$implicit,r=p(2);c("formGroupName",t.formView.name),s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(3),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(7),b(r.sizeOptions())}}function io(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function oo(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",34),l(2),d(3,io,3,1,"spk-tooltip",35),o(),f(4,"input",49),a(5,"spk-icon",37),l(6,"numpad"),o()()),n&2){let e,t=p().$implicit;s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name)}}function ro(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function ao(n,i){if(n&1&&(a(0,"spk-toggle",31)(1,"label",34),l(2),d(3,ro,3,1,"spk-tooltip",35),o(),f(4,"input",50),o()),n&2){let e,t=p().$implicit;s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name)}}function lo(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function so(n,i){n&1&&(a(0,"spk-option",52),l(1,"None"),o()),n&2&&c("value","None")}function po(n,i){if(n&1&&(a(0,"spk-option",45),l(1),f(2,"spk-checkbox",53),o()),n&2){let e=p().$implicit;c("value",e),s(),D(" ",e," ")}}function mo(n,i){if(n&1&&d(0,so,2,1,"spk-option",52)(1,po,3,2,"spk-option",45),n&2){let e=i.$implicit;_(e==="None"?0:1)}}function co(n,i){if(n&1&&(a(0,"spk-select",32)(1,"label",34),l(2),d(3,lo,3,1,"spk-tooltip",35),o(),f(4,"input",51),k(5,44),V(6,mo,2,1,null,null,T),v(),o()),n&2){let e,t=p().$implicit;c("selectMultiple",!0),s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),P("formControlName",t.formView.name),s(2),b(t.formView.options)}}function uo(n,i){if(n&1&&(a(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),n&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function fo(n,i){if(n&1&&(a(0,"spk-form-field")(1,"label",34),l(2),d(3,uo,3,1,"spk-tooltip",35),o(),f(4,"input",36),o()),n&2){let e,t=p().$implicit;s(),N("for","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),s(),D(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),s(),_(t.formView.longDescription?3:-1),s(),N("id","destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other",""),P("formControlName",t.formView.name)}}function _o(n,i){if(n&1){let e=w();a(0,"button",54),C("click",function(){h(e);let r=p().$implicit,m=p(2);return x(m.removeFormView(r.formView,0))}),a(1,"spk-icon"),l(2,"x-circle"),o()()}}function go(n,i){if(n&1&&(a(0,"div",25),k(1,26),d(2,Mi,5,16,"app-file-tree",27)(3,Ai,5,12,"app-file-tree",28)(4,Hi,7,12,"spk-form-field")(5,qi,8,13,"spk-form-field")(6,Yi,8,11,"spk-select")(7,Xi,8,12,"spk-select",29)(8,no,15,11,"div",30)(9,oo,7,11,"spk-form-field")(10,ao,5,11,"spk-toggle",31)(11,co,8,8,"spk-select",32)(12,fo,5,11,"spk-form-field"),v(),d(13,_o,3,0,"button",33),o()),n&2){let e=i.$implicit;fe("single-field",e.formGroupName!=="advanced"),s(),c("formGroupName",e.formGroupName),s(),_(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="NonValidatedSelectableString"?7:e.formView.type==="Size"?8:e.formView.type==="Integer"?9:e.formView.type==="Boolean"?10:e.formView.type==="Flags"?11:e.formView.type==="Timespan"?12:-1),s(11),_(e.formGroupName==="advanced"?13:-1)}}function Co(n,i){if(n&1&&(k(0,9)(1,18),V(2,Ti,1,9,"ng-container",null,T),V(4,bi,1,9,"ng-container",null,T),a(6,"app-toggle-card",19),k(7,20),l(8," Advanced options "),a(9,"spk-menu")(10,"button",21),l(11," Add advanced option "),a(12,"spk-icon"),l(13,"plus"),o()(),k(14,7),V(15,Di,2,1,"button",22,T),v(),o(),v(),V(17,Ei,1,9,"ng-container",null,T),o(),a(19,"app-toggle-card",19),k(20,20),l(21," Http options "),a(22,"spk-menu")(23,"button",21),l(24," Add http option "),a(25,"spk-icon"),l(26,"plus"),o()(),k(27,7),V(28,Ni,2,1,"button",22,T),v(),o(),v(),V(30,Ii,1,9,"ng-container",null,T),o(),d(32,go,14,5,"ng-template",null,1,Je),v()()),n&2){let e=p();s(2),b(e.destinationFormPair().custom),s(2),b(e.destinationFormPair().dynamic),s(2),c("disallowToggle",!0),s(4),c("disabled",e.notSelectedAdvancedFormPair().length===0),s(5),b(e.notSelectedAdvancedFormPair()),s(2),b(e.selectedAdvancedFormPair()),s(2),c("disallowToggle",!0),s(4),c("disabled",e.notSelectedHttpOptions().length===0),s(5),b(e.notSelectedHttpOptions()),s(2),b(e.selectedHttpOptions())}}function ho(n,i){if(n&1){let e=w();a(0,"spk-dialog",55),Et("isOpenChange",function(r){h(e);let m=p();return Ot(m.targetUrlDialogOpen,r)||(m.targetUrlDialogOpen=r),x(r)}),a(1,"header",56)(2,"h2"),l(3,"Edit target URL"),o(),a(4,"spk-alert",57),l(5,"Be careful, this will overwrite everything you have in your destination."),o()(),a(6,"div",58)(7,"spk-form-field"),f(8,"textarea",59),o()(),a(9,"footer",60)(10,"button",11),C("click",function(){h(e);let r=p();return x(r.closeTargetUrlDialog(!1))}),l(11,"Cancel"),o(),a(12,"button",61),C("click",function(){h(e);let r=p();return x(r.closeTargetUrlDialog(!0))}),l(13," Override target URLc "),a(14,"spk-icon"),l(15,"swap"),o()()()()}if(n&2){let e=p();Dt("isOpen",e.targetUrlDialogOpen),c("options",Nt(3,xi)),s(8),c("formControl",e.targetUrlCtrl)}}var xo=["Bytes","KB","MB","GB","TB","PB"],ut=new L,Kt=(n={destinations:[]})=>ut.group({destinations:ut.array(n.destinations)}),Qt=({key:n,customGroup:i,dynamicGroup:e,advancedGroup:t})=>ut.group({destinationType:ut.control(n),custom:i,dynamic:e,advanced:t}),Ft=class n{#e=y(j);#n=y(le);#i=y(It);#o=y(Ie);#t=y(ee);#r=y(At);injector=y(Vt);formRef=ie.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=G(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=S(xo);successfulTest=S(!1);getFormFieldValue(i,e,t){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[e]).controls[t].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,e){this.#t.addAdvancedFormPair(i,e)}removeFormView(i,e){this.#t.removeAdvancedFormPair(i,e)}addHttpOption(i,e){this.#t.addHttpOption(i,e)}targetUrl=G(()=>this.#t.getCurrentTargetUrl()[0]);targetUrlCtrl=new nt;targetUrlInitial=S(null);targetUrlDialogOpen=S(!1);openTargetUrlDialog(){let e=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(e),this.targetUrlInitial.set(e),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let e=this.targetUrlCtrl.value,t=this.targetUrlInitial();!i||e===t||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let t=this.#t.getCurrentTargetUrl()[i];t&&this.#o.postApiV1RemoteoperationTest({requestBody:{path:t}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:r=>{let m=r.error.error.Error;if(m==="missing-folder"&&this.#r.open(De,{data:{title:"Create folder",message:"The remote destination folder does not exist, do you want to create it?"},closed:u=>{u&&this.#o.postApiV1RemoteoperationCreate({requestBody:{path:t}}).subscribe()}}),m.startsWith("incorrect-cert:")){let u=m.split("incorrect-cert:")[1];this.#r.open(De,{maxWidth:"500px",data:{title:"Trust the certificate",message:`The server is using a certificate that is not trusted.
2
+ If this is a self-signed certificate, you can choose to trust this certificate.
3
+ The server reported the certificate hash: ${u}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:$=>{$&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",u)}})}if(m.startsWith("incorrect-host-key:")){let u=m.split('incorrect-host-key:"')[1].split('",')[0],$=m.split('accepted-host-key:"')[1].split('",')[0];$?this.#r.open(De,{maxWidth:"500px",data:{title:"The host key has changed",message:`The host key has changed, please check with the server administrator if this is correct,
4
+ otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
5
+ Do you want to REPLACE your CURRENT host key ${$}
6
+ with the REPORTED host key: ${u}?`,confirmText:"Approve",cancelText:"Cancel"},closed:B=>{B&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,u)}}):this.#r.open(De,{maxWidth:"500px",data:{title:"Approve host key?",message:`No certificate was specified, please verify that the reported host key is correct: ${u}`,confirmText:"Approve",cancelText:"Cancel"},closed:B=>{B&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,u)}})}}})}mapToTargetUrl(i){return mt(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let e=this.destinationOptions().find(t=>t.Key===i);return e?`${e.DisplayName}`:""}goBack(){this.#e.navigate(["general"],{relativeTo:this.#n.parent})}next(){this.#e.navigate(["source-data"],{relativeTo:this.#n.parent})}#l=S("https://duplicati-oauth-handler.appspot.com/").asReadonly();#s=S(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#a=S(!1);#p=S(null);keyCreation(){}oauthStartTokenCreation(i){this.#a.set(!0);let e=450,t=600,r=this.#l()+"?type="+i+"&token="+this.#s(),m=screen.width/2-e/2,u=screen.height/2-t/2,$=window.open(r,"_blank","height="+t+",width="+e+",menubar=0,status=0,titlebar=0,toolbar=0,left="+m+",top="+u);$?.addEventListener("blur",B=>{console.log("event blur",B)}),$?.addEventListener("beforeunload",B=>{console.log("event beforeunload",B),this.#i.get(this.#l()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#s()}}).pipe(Le(()=>this.#a.set(!1))).subscribe({next:R=>{console.log("res",R),R?.authid&&this.#p.set(R.authid)}})})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=H({type:n,selectors:[["app-destination"]],viewQuery:function(e,t){e&1&&oe(t.formRef,fi,5),e&2&&re()},decls:29,vars:6,consts:[["formRef",""],["fieldTemplate",""],[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],["item","","type","button"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["item","","type","button",3,"click"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],["options",""],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]],template:function(e,t){if(e&1){let r=w();a(0,"form",2,0),C("submit",function(){return h(r),x(t.next())}),a(2,"header")(3,"h3",3),l(4," Backup destination "),a(5,"div",4),d(6,Si,3,3,"button",5),a(7,"spk-menu")(8,"button",6)(9,"spk-icon"),l(10,"dots-three-vertical"),o()(),k(11,7),a(12,"button",8),C("click",function(){return h(r),x(t.openTargetUrlDialog())}),a(13,"spk-icon"),l(14,"link"),o(),l(15," Edit target URL "),o(),v(),o()()(),d(16,ki,4,0,"p"),o(),d(17,vi,28,0)(18,Co,34,4,"ng-container",9),a(19,"div",10)(20,"button",11),C("click",function(){return h(r),x(t.goBack())}),a(21,"spk-icon"),l(22,"arrow-left"),o(),l(23," Go back "),o(),a(24,"button",12)(25,"spk-icon"),l(26,"arrow-right"),o(),l(27," Continue "),o()()(),d(28,ho,16,4,"spk-dialog",13)}if(e&2){let r;c("formGroup",t.destinationForm),s(6),_(t.destinationCount()>0?6:-1),s(10),_(t.destinationCount()>0?16:-1),s(),_(t.destinationCount()===0?17:-1),s(),_(!((r=t.destinationFormSignal())==null||r.destinations==null)&&r.destinations.length?18:-1),s(10),_(t.targetUrlDialogOpen()?28:-1)}},dependencies:[de,pe,Q,Y,q,ye,xe,K,se,it,me,ce,we,Mt,et,J,X,lt,at,st,Z,ke,Ge,$t,rt,ve,Me],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{Kt as a,Qt as b,Ft as c,Ht as d,wt as e,yt as f,Lt as g,mr as h,St as i,zt as j,kt as k,qt as l,vt as m,ee as n};
@@ -0,0 +1 @@
1
+ import{d as a,e as b,f as c}from"./chunk-C5O62M3L.js";import"./chunk-2PUTRWRI.js";import"./chunk-DNHLTHLR.js";import"./chunk-TLFDZKKI.js";import"./chunk-ZVT4YXH5.js";import"./chunk-6TFXXYVK.js";import"./chunk-BVTTY2FQ.js";import"./chunk-QL753AWG.js";import"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
@@ -0,0 +1 @@
1
+ import{Aa as tt,Bc as K,Cc as Ee,Da as nt,Ec as ye,Lb as lt,Mb as y,Nb as ft,O as Y,Ob as ht,P as Ke,Pb as f,Qa as it,R as v,S as Xe,Sa as a,U as P,Ua as j,W as T,Wa as W,X as A,Xa as x,bb as rt,da as Q,db as st,g as We,gb as ot,hb as I,ia as qe,ib as b,ja as Je,kb as ut,na as Qe,nb as at,ob as ct,sa as Z,sc as gt,vc as z,wa as me,wb as dt,wc as Dt,xc as ee,ya as et,yc as pt,za as Ce,zc as Fe}from"./chunk-RJDP2FPE.js";import{a as Ye,b as Ze}from"./chunk-7CGTOI24.js";var Bt=null;function we(){return Bt}function _i(e){Bt??=e}var mt=class{},bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=v({token:e,factory:()=>window.navigation,providedIn:"platform"})}return e})(),le=new P(""),Pe=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=v({token:e,factory:()=>A(Vt),providedIn:"platform"})}return e})(),vi=new P(""),Vt=(()=>{class e extends Pe{_location;_history;_doc=A(le);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return we().getBaseHref(this._doc)}onPopState(t){let n=we().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=we().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=v({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ne(e,i){if(e.length==0)return i;if(i.length==0)return e;let t=0;return e.endsWith("/")&&t++,i.startsWith("/")&&t++,t==2?e+i.substring(1):t==1?e+i:e+"/"+i}function Ct(e){let i=e.match(/#|\?|$/),t=i&&i.index||e.length,n=t-(e[t-1]==="/"?1:0);return e.slice(0,n)+e.slice(t)}function k(e){return e&&e[0]!=="?"?"?"+e:e}var fe=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=v({token:e,factory:()=>A(jt),providedIn:"root"})}return e})(),Ot=new P(""),jt=(()=>{class e extends fe{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??A(le).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ne(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+k(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+k(s));this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+k(s));this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(T(Pe),T(Ot,8))};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ii=(()=>{class e extends fe{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=Ne(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+k(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+k(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(T(Pe),T(Ot,8))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})(),Gt=(()=>{class e{_subject=new We;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=Zt(Ct(Ft(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+k(n))}normalize(t){return e.stripTrailingSlash(Yt(this._basePath,Ft(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+k(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+k(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=k;static joinWithSlash=Ne;static stripTrailingSlash=Ct;static \u0275fac=function(n){return new(n||e)(T(fe))};static \u0275prov=v({token:e,factory:()=>Ht(),providedIn:"root"})}return e})();function Ht(){return new Gt(T(fe))}function Yt(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function Ft(e){return e.replace(/\/index.html$/,"")}function Zt(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var Rt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},he=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(he||{}),G=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}(G||{}),_=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(_||{}),h=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(h||{}),M=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(M||{}),E={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13},Wt=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}(Wt||{});function Kt(e){return y(e)[f.LocaleId]}function Xt(e,i,t){let n=y(e),r=[n[f.DayPeriodsFormat],n[f.DayPeriodsStandalone]],s=B(r,i);return B(s,t)}function qt(e,i,t){let n=y(e),r=[n[f.DaysFormat],n[f.DaysStandalone]],s=B(r,i);return B(s,t)}function Jt(e,i,t){let n=y(e),r=[n[f.MonthsFormat],n[f.MonthsStandalone]],s=B(r,i);return B(s,t)}function Qt(e,i){let n=y(e)[f.Eras];return B(n,i)}function Mi(e){return y(e)[f.FirstDayOfWeek]}function Li(e){return y(e)[f.WeekendRange]}function te(e,i){let t=y(e);return B(t[f.DateFormat],i)}function ne(e,i){let t=y(e);return B(t[f.TimeFormat],i)}function ie(e,i){let n=y(e)[f.DateTimeFormat];return B(n,i)}function L(e,i){let t=y(e),n=t[f.NumberSymbols][i];if(typeof n>"u"){if(i===E.CurrencyDecimal)return t[f.NumberSymbols][E.Decimal];if(i===E.CurrencyGroup)return t[f.NumberSymbols][E.Group]}return n}function ke(e,i){return y(e)[f.NumberFormats][i]}function Bi(e){return y(e)[f.CurrencySymbol]||null}function Oi(e){return y(e)[f.CurrencyName]||null}function Ri(e){return ft(e)}function en(e){return y(e)[f.Currencies]}var tn=ht;function Tt(e){if(!e[f.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[f.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nn(e){let i=y(e);return Tt(i),(i[f.ExtraData][2]||[]).map(n=>typeof n=="string"?Ae(n):[Ae(n[0]),Ae(n[1])])}function rn(e,i,t){let n=y(e);Tt(n);let r=[n[f.ExtraData][0],n[f.ExtraData][1]],s=B(r,i)||[];return B(s,t)||[]}function Ti(e){return y(e)[f.Directionality]}function B(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function Ae(e){let[i,t]=e.split(":");return{hours:+i,minutes:+t}}function sn(e,i,t="en"){let n=en(t)[e]||Rt[e]||[],r=n[1];return i==="narrow"&&typeof r=="string"?r:n[0]||e}var on=2;function un(e){let i,t=Rt[e];return t&&(i=t[2]),typeof i=="number"?i:on}var an=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,re={},cn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,$=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}($||{}),l=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(l||{}),d=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(d||{});function dn(e,i,t,n){let r=Fn(e);i=N(t,i)||i;let o=[],u;for(;i;)if(u=cn.exec(i),u){o=o.concat(u.slice(1));let m=o.pop();if(!m)break;i=m}else{o.push(i);break}let D=r.getTimezoneOffset();n&&(D=Nt(n,D),r=Cn(r,n,!0));let p="";return o.forEach(m=>{let c=pn(m);p+=c?c(r,t,D):m==="''"?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),p}function ce(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function N(e,i){let t=Kt(e);if(re[t]??={},re[t][i])return re[t][i];let n="";switch(i){case"shortDate":n=te(e,M.Short);break;case"mediumDate":n=te(e,M.Medium);break;case"longDate":n=te(e,M.Long);break;case"fullDate":n=te(e,M.Full);break;case"shortTime":n=ne(e,M.Short);break;case"mediumTime":n=ne(e,M.Medium);break;case"longTime":n=ne(e,M.Long);break;case"fullTime":n=ne(e,M.Full);break;case"short":let r=N(e,"shortTime"),s=N(e,"shortDate");n=se(ie(e,M.Short),[r,s]);break;case"medium":let o=N(e,"mediumTime"),u=N(e,"mediumDate");n=se(ie(e,M.Medium),[o,u]);break;case"long":let D=N(e,"longTime"),p=N(e,"longDate");n=se(ie(e,M.Long),[D,p]);break;case"full":let m=N(e,"fullTime"),c=N(e,"fullDate");n=se(ie(e,M.Full),[m,c]);break}return n&&(re[t][i]=n),n}function se(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return i!=null&&n in i?i[n]:t})),e}function O(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function ln(e,i){return O(e,3).substring(0,i)}function F(e,i,t=0,n=!1,r=!1){return function(s,o){let u=fn(e,s);if((t>0||u>-t)&&(u+=t),e===l.Hours)u===0&&t===-12&&(u=12);else if(e===l.FractionalSeconds)return ln(u,i);let D=L(o,E.MinusSign);return O(u,i,D,n,r)}}function fn(e,i){switch(e){case l.FullYear:return i.getFullYear();case l.Month:return i.getMonth();case l.Date:return i.getDate();case l.Hours:return i.getHours();case l.Minutes:return i.getMinutes();case l.Seconds:return i.getSeconds();case l.FractionalSeconds:return i.getMilliseconds();case l.Day:return i.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function g(e,i,t=_.Format,n=!1){return function(r,s){return hn(r,s,e,i,t,n)}}function hn(e,i,t,n,r,s){switch(t){case d.Months:return Jt(i,r,n)[e.getMonth()];case d.Days:return qt(i,r,n)[e.getDay()];case d.DayPeriods:let o=e.getHours(),u=e.getMinutes();if(s){let p=nn(i),m=rn(i,r,n),c=p.findIndex(w=>{if(Array.isArray(w)){let[C,S]=w,H=o>=C.hours&&u>=C.minutes,U=o<S.hours||o===S.hours&&u<S.minutes;if(C.hours<S.hours){if(H&&U)return!0}else if(H||U)return!0}else if(w.hours===o&&w.minutes===u)return!0;return!1});if(c!==-1)return m[c]}return Xt(i,r,n)[o<12?0:1];case d.Eras:return Qt(i,n)[e.getFullYear()<=0?0:1];default:let D=t;throw new Error(`unexpected translation type ${D}`)}}function oe(e){return function(i,t,n){let r=-1*n,s=L(t,E.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case $.Short:return(r>=0?"+":"")+O(o,2,s)+O(Math.abs(r%60),2,s);case $.ShortGMT:return"GMT"+(r>=0?"+":"")+O(o,1,s);case $.Long:return"GMT"+(r>=0?"+":"")+O(o,2,s)+":"+O(Math.abs(r%60),2,s);case $.Extended:return n===0?"Z":(r>=0?"+":"")+O(o,2,s)+":"+O(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}var gn=0,ae=4;function Dn(e){let i=ce(e,gn,1).getDay();return ce(e,0,1+(i<=ae?ae:ae+7)-i)}function Pt(e){let i=e.getDay(),t=i===0?-3:ae-i;return ce(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Se(e,i=!1){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7)}else{let s=Pt(t),o=Dn(s.getFullYear()),u=s.getTime()-o.getTime();r=1+Math.round(u/6048e5)}return O(r,e,L(n,E.MinusSign))}}function ue(e,i=!1){return function(t,n){let s=Pt(t).getFullYear();return O(s,e,L(n,E.MinusSign),i)}}var _e={};function pn(e){if(_e[e])return _e[e];let i;switch(e){case"G":case"GG":case"GGG":i=g(d.Eras,h.Abbreviated);break;case"GGGG":i=g(d.Eras,h.Wide);break;case"GGGGG":i=g(d.Eras,h.Narrow);break;case"y":i=F(l.FullYear,1,0,!1,!0);break;case"yy":i=F(l.FullYear,2,0,!0,!0);break;case"yyy":i=F(l.FullYear,3,0,!1,!0);break;case"yyyy":i=F(l.FullYear,4,0,!1,!0);break;case"Y":i=ue(1);break;case"YY":i=ue(2,!0);break;case"YYY":i=ue(3);break;case"YYYY":i=ue(4);break;case"M":case"L":i=F(l.Month,1,1);break;case"MM":case"LL":i=F(l.Month,2,1);break;case"MMM":i=g(d.Months,h.Abbreviated);break;case"MMMM":i=g(d.Months,h.Wide);break;case"MMMMM":i=g(d.Months,h.Narrow);break;case"LLL":i=g(d.Months,h.Abbreviated,_.Standalone);break;case"LLLL":i=g(d.Months,h.Wide,_.Standalone);break;case"LLLLL":i=g(d.Months,h.Narrow,_.Standalone);break;case"w":i=Se(1);break;case"ww":i=Se(2);break;case"W":i=Se(1,!0);break;case"d":i=F(l.Date,1);break;case"dd":i=F(l.Date,2);break;case"c":case"cc":i=F(l.Day,1);break;case"ccc":i=g(d.Days,h.Abbreviated,_.Standalone);break;case"cccc":i=g(d.Days,h.Wide,_.Standalone);break;case"ccccc":i=g(d.Days,h.Narrow,_.Standalone);break;case"cccccc":i=g(d.Days,h.Short,_.Standalone);break;case"E":case"EE":case"EEE":i=g(d.Days,h.Abbreviated);break;case"EEEE":i=g(d.Days,h.Wide);break;case"EEEEE":i=g(d.Days,h.Narrow);break;case"EEEEEE":i=g(d.Days,h.Short);break;case"a":case"aa":case"aaa":i=g(d.DayPeriods,h.Abbreviated);break;case"aaaa":i=g(d.DayPeriods,h.Wide);break;case"aaaaa":i=g(d.DayPeriods,h.Narrow);break;case"b":case"bb":case"bbb":i=g(d.DayPeriods,h.Abbreviated,_.Standalone,!0);break;case"bbbb":i=g(d.DayPeriods,h.Wide,_.Standalone,!0);break;case"bbbbb":i=g(d.DayPeriods,h.Narrow,_.Standalone,!0);break;case"B":case"BB":case"BBB":i=g(d.DayPeriods,h.Abbreviated,_.Format,!0);break;case"BBBB":i=g(d.DayPeriods,h.Wide,_.Format,!0);break;case"BBBBB":i=g(d.DayPeriods,h.Narrow,_.Format,!0);break;case"h":i=F(l.Hours,1,-12);break;case"hh":i=F(l.Hours,2,-12);break;case"H":i=F(l.Hours,1);break;case"HH":i=F(l.Hours,2);break;case"m":i=F(l.Minutes,1);break;case"mm":i=F(l.Minutes,2);break;case"s":i=F(l.Seconds,1);break;case"ss":i=F(l.Seconds,2);break;case"S":i=F(l.FractionalSeconds,1);break;case"SS":i=F(l.FractionalSeconds,2);break;case"SSS":i=F(l.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=oe($.Short);break;case"ZZZZZ":i=oe($.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=oe($.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=oe($.Long);break;default:return null}return _e[e]=i,i}function Nt(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function mn(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function Cn(e,i,t){let n=t?-1:1,r=e.getTimezoneOffset(),s=Nt(i,r);return mn(e,n*(s-r))}function Fn(e){if(Et(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(u=>+u);return ce(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(an))return En(n)}let i=new Date(e);if(!Et(i))throw new Error(`Unable to convert "${e}" into a date`);return i}function En(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,u=Number(e[5]||0)-n,D=Number(e[6]||0),p=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,u,D,p),i}function Et(e){return e instanceof Date&&!isNaN(e.valueOf())}var yn=/^(\d+)?\.((\d+)(-(\d+))?)?$/,yt=22,de=".",X="0",wn=";",An=",",be="#",wt="\xA4",Sn="%";function $e(e,i,t,n,r,s,o=!1){let u="",D=!1;if(!isFinite(e))u=L(t,E.Infinity);else{let p=Mn(e);o&&(p=In(p));let m=i.minInt,c=i.minFrac,w=i.maxFrac;if(s){let V=s.match(yn);if(V===null)throw new Error(`${s} is not a valid digit info`);let Ge=V[1],pe=V[3],He=V[5];Ge!=null&&(m=ve(Ge)),pe!=null&&(c=ve(pe)),He!=null?w=ve(He):pe!=null&&c>w&&(w=c)}Ln(p,c,w);let C=p.digits,S=p.integerLen,H=p.exponent,U=[];for(D=C.every(V=>!V);S<m;S++)C.unshift(0);for(;S<0;S++)C.unshift(0);S>0?U=C.splice(S,C.length):(U=C,C=[0]);let J=[];for(C.length>=i.lgSize&&J.unshift(C.splice(-i.lgSize,C.length).join(""));C.length>i.gSize;)J.unshift(C.splice(-i.gSize,C.length).join(""));C.length&&J.unshift(C.join("")),u=J.join(L(t,n)),U.length&&(u+=L(t,r)+U.join("")),H&&(u+=L(t,E.Exponential)+"+"+H)}return e<0&&!D?u=i.negPre+u+i.negSuf:u=i.posPre+u+i.posSuf,u}function _n(e,i,t,n,r){let s=ke(i,he.Currency),o=xe(s,L(i,E.MinusSign));return o.minFrac=un(n),o.maxFrac=o.minFrac,$e(e,o,i,E.CurrencyGroup,E.CurrencyDecimal,r).replace(wt,t).replace(wt,"").trim()}function bn(e,i,t){let n=ke(i,he.Percent),r=xe(n,L(i,E.MinusSign));return $e(e,r,i,E.Group,E.Decimal,t,!0).replace(new RegExp(Sn,"g"),L(i,E.PercentSign))}function vn(e,i,t){let n=ke(i,he.Decimal),r=xe(n,L(i,E.MinusSign));return $e(e,r,i,E.Group,E.Decimal,t)}function xe(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(wn),r=n[0],s=n[1],o=r.indexOf(de)!==-1?r.split(de):[r.substring(0,r.lastIndexOf(X)+1),r.substring(r.lastIndexOf(X)+1)],u=o[0],D=o[1]||"";t.posPre=u.substring(0,u.indexOf(be));for(let m=0;m<D.length;m++){let c=D.charAt(m);c===X?t.minFrac=t.maxFrac=m+1:c===be?t.maxFrac=m+1:t.posSuf+=c}let p=u.split(An);if(t.gSize=p[1]?p[1].length:0,t.lgSize=p[2]||p[1]?(p[2]||p[1]).length:0,s){let m=r.length-t.posPre.length-t.posSuf.length,c=s.indexOf(be);t.negPre=s.substring(0,c).replace(/'/g,""),t.negSuf=s.slice(c+m).replace(/'/g,"")}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function In(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function Mn(e){let i=Math.abs(e)+"",t=0,n,r,s,o,u;for((r=i.indexOf(de))>-1&&(i=i.replace(de,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===X;s++);if(s===(u=i.length))n=[0],r=1;else{for(u--;i.charAt(u)===X;)u--;for(r-=s,n=[],o=0;s<=u;s++,o++)n[o]=Number(i.charAt(s))}return r>yt&&(n=n.splice(0,yt-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function Ln(e,i,t){if(i>t)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${t}).`);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,u=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let c=o;c<n.length;c++)n[c]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let c=1;c<o;c++)n[c]=0}if(u>=5)if(o-1<0){for(let c=0;c>o;c--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let D=s!==0,p=i+e.integerLen,m=n.reduceRight(function(c,w,C,S){return w=w+c,S[C]=w<10?w:w-10,D&&(S[C]===0&&C>=p?S.pop():D=!1),w>=10?1:0},0);m&&(n.unshift(m),e.integerLen++)}function ve(e){let i=parseInt(e);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+e);return i}var Ue=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=v({token:e,factory:function(n){let r=null;return n?r=new n:r=(s=>new Bn(s))(T(z)),r},providedIn:"root"})}return e})();function kt(e,i,t,n){let r=`=${e}`;if(i.indexOf(r)>-1||(r=t.getPluralCategory(e,n),i.indexOf(r)>-1))return r;if(i.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}var Bn=(()=>{class e extends Ue{locale;constructor(t){super(),this.locale=t}getPluralCategory(t,n){switch(tn(n||this.locale)(t)){case G.Zero:return"zero";case G.One:return"one";case G.Two:return"two";case G.Few:return"few";case G.Many:return"many";default:return"other"}}static \u0275fac=function(n){return new(n||e)(T(z))};static \u0275prov=v({token:e,factory:e.\u0275fac})}return e})();function Pi(e,i,t){return lt(e,i,t)}function Ni(e,i){i=encodeURIComponent(i);for(let t of e.split(";")){let n=t.indexOf("="),[r,s]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(r.trim()===i)return decodeURIComponent(s)}return null}var Ie=/\s+/,At=[],ki=(()=>{class e{_ngEl;_renderer;initialClasses=At;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(Ie):At}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Ie):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(Ie).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(a(Z),a(W))};static \u0275dir=I({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),$i=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=st(this.ngComponentOutletNgModule,St(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(St(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[n,r]of this._inputsUsed)r?(t.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(t.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||e)(a(x))};static \u0275dir=I({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Q]})}return e})();function St(e){return e.get(rt).injector}var Me=class{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},xi=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;if(!this._differ&&t)if(0)try{}catch{}else this._differ=this._differs.find(t).create(this.ngForTrackBy)}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((r,s,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new Me(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let u=n.get(s);n.move(u,o),_t(u,r)}});for(let r=0,s=n.length;r<s;r++){let u=n.get(r).context;u.index=r,u.count=s,u.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);_t(s,r)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(a(x),a(j),a(pt))};static \u0275dir=I({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function _t(e,i){e.context.$implicit=i.item}var Ui=(()=>{class e{_viewContainer;_context=new Le;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){bt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){bt("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(a(x),a(j))};static \u0275dir=I({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Le=class{$implicit=null;ngIf=null};function bt(e,i){if(!!!(!i||i.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Ke(i)}'.`)}var q=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,t){this._viewContainerRef=i,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},$t=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=I({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),zi=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,n,r){this.ngSwitch=r,r._addCase(),this._view=new q(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(a(x),a(j),a($t,9))};static \u0275dir=I({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})(),Vi=(()=>{class e{constructor(t,n,r){r._addDefault(new q(t,n))}static \u0275fac=function(n){return new(n||e)(a(x),a(j),a($t,9))};static \u0275dir=I({type:e,selectors:[["","ngSwitchDefault",""]]})}return e})();var On=(()=>{class e{_localization;_activeView;_caseViews={};constructor(t){this._localization=t}set ngPlural(t){this._updateView(t)}addCase(t,n){this._caseViews[t]=n}_updateView(t){this._clearViews();let n=Object.keys(this._caseViews),r=kt(t,n,this._localization);this._activateView(this._caseViews[r])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}static \u0275fac=function(n){return new(n||e)(a(Ue))};static \u0275dir=I({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}})}return e})(),ji=(()=>{class e{value;constructor(t,n,r,s){this.value=t;let o=!isNaN(Number(t));s.addCase(o?`=${t}`:t,new q(r,n))}static \u0275fac=function(n){return new(n||e)(qe("ngPluralCase"),a(j),a(x),a(On,1))};static \u0275dir=I({type:e,selectors:[["","ngPluralCase",""]]})}return e})(),Gi=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:it.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(a(Z),a(Fe),a(W))};static \u0275dir=I({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Hi=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(a(x))};static \u0275dir=I({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Q]})}return e})();function R(e,i){return new Y(2100,!1)}var Be=class{createSubscription(i,t){return ye(()=>i.subscribe({next:t,error:n=>{throw n}}))}dispose(i){ye(()=>i.unsubscribe())}},Oe=class{createSubscription(i,t){return i.then(t,n=>{throw n})}dispose(i){}},Rn=new Oe,Tn=new Be,Yi=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(at(t))return Rn;if(ct(t))return Tn;throw R(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(a(ee,16))};static \u0275pipe=b({name:"async",type:e,pure:!1})}return e})(),Zi=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw R(e,t);return t.toLowerCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=b({name:"lowercase",type:e,pure:!0})}return e})(),Pn=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Wi=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw R(e,t);return t.replace(Pn,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=b({name:"titlecase",type:e,pure:!0})}return e})(),Ki=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw R(e,t);return t.toUpperCase()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=b({name:"uppercase",type:e,pure:!0})}return e})(),Nn="mediumDate",kn=new P(""),$n=new P(""),Xi=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??Nn,u=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return dn(t,o,s||this.locale,u)}catch(o){throw R(e,o.message)}}static \u0275fac=function(n){return new(n||e)(a(z,16),a(kn,24),a($n,24))};static \u0275pipe=b({name:"date",type:e,pure:!0})}return e})(),xn=/#/g,qi=(()=>{class e{_localization;constructor(t){this._localization=t}transform(t,n,r){if(t==null)return"";if(typeof n!="object"||n===null)throw R(e,n);let s=kt(t,Object.keys(n),this._localization,r);return n[s].replace(xn,t.toString())}static \u0275fac=function(n){return new(n||e)(a(Ue,16))};static \u0275pipe=b({name:"i18nPlural",type:e,pure:!0})}return e})(),Ji=(()=>{class e{transform(t,n){if(t==null)return"";if(typeof n!="object"||typeof t!="string")throw R(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=b({name:"i18nSelect",type:e,pure:!0})}return e})(),Qi=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=b({name:"json",type:e,pure:!1})}return e})();function Un(e,i){return{key:e,value:i}}var er=(()=>{class e{differs;constructor(t){this.differs=t}differ;keyValues=[];compareFn=vt;transform(t,n=vt){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let r=this.differ.diff(t),s=n!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(o=>{this.keyValues.push(Un(o.key,o.currentValue))})),(r||s)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||e)(a(Fe,16))};static \u0275pipe=b({name:"keyvalue",type:e,pure:!1})}return e})();function vt(e,i){let t=e.key,n=i.key;if(t===n)return 0;if(t===void 0)return 1;if(n===void 0)return-1;if(t===null)return 1;if(n===null)return-1;if(typeof t=="string"&&typeof n=="string")return t<n?-1:1;if(typeof t=="number"&&typeof n=="number")return t-n;if(typeof t=="boolean"&&typeof n=="boolean")return t<n?-1:1;let r=String(t),s=String(n);return r==s?0:r<s?-1:1}var tr=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!ze(t))return null;r||=this._locale;try{let s=Ve(t);return vn(s,r,n)}catch(s){throw R(e,s.message)}}static \u0275fac=function(n){return new(n||e)(a(z,16))};static \u0275pipe=b({name:"number",type:e,pure:!0})}return e})(),nr=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!ze(t))return null;r||=this._locale;try{let s=Ve(t);return bn(s,r,n)}catch(s){throw R(e,s.message)}}static \u0275fac=function(n){return new(n||e)(a(z,16))};static \u0275pipe=b({name:"percent",type:e,pure:!0})}return e})(),ir=(()=>{class e{_locale;_defaultCurrencyCode;constructor(t,n="USD"){this._locale=t,this._defaultCurrencyCode=n}transform(t,n=this._defaultCurrencyCode,r="symbol",s,o){if(!ze(t))return null;o||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let u=n||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?u=sn(u,r==="symbol"?"wide":"narrow",o):u=r);try{let D=Ve(t);return _n(D,o,u,n,s)}catch(D){throw R(e,D.message)}}static \u0275fac=function(n){return new(n||e)(a(z,16),a(Dt,16))};static \u0275pipe=b({name:"currency",type:e,pure:!0})}return e})();function ze(e){return!(e==null||e===""||e!==e)}function Ve(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var rr=(()=>{class e{transform(t,n,r){if(t==null)return null;if(!this.supports(t))throw R(e,t);return t.slice(n,r)}supports(t){return typeof t=="string"||Array.isArray(t)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=b({name:"slice",type:e,pure:!1})}return e})();var sr=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=ot({type:e});static \u0275inj=Xe({})}return e})(),zn="browser",Vn="server";function jn(e){return e===zn}function Gn(e){return e===Vn}var or=new gt("19.0.1"),ur=(()=>{class e{static \u0275prov=v({token:e,providedIn:"root",factory:()=>jn(A(me))?new Re(A(le),window):new Te})}return e})(),Re=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let t=Hn(this.document,i);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let t=i.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function Hn(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var Te=class{setOffset(i){}getScrollPosition(){return[0,0]}scrollToPosition(i){}scrollToAnchor(i){}setHistoryScrollRestoration(i){}},It=class{},ge="20";function xt(e){return/^https?:\/\//.test(e)}function Ut(e){if(!(typeof e=="string")||e.trim()==="")return!1;try{let t=new URL(e);return!0}catch{return!1}}function Yn(e){return e.endsWith("/")?e.slice(0,-1):e}function Zn(e){return e.startsWith("/")?e.slice(1):e}var zt=e=>e.src,je=new P("",{providedIn:"root",factory:()=>zt});function De(e,i){return function(n){return Ut(n)||Wn(n,i||[]),n=Yn(n),[{provide:je,useValue:o=>(xt(o.src)&&Kn(n,o.src),e(n,Ze(Ye({},o),{src:Zn(o.src)})))}]}}function Wn(e,i){throw new Y(2959,!1)}function Kn(e,i){throw new Y(2959,!1)}var ar=De(Xn,void 0);function Xn(e,i){let t="format=auto";return i.width&&(t+=`,width=${i.width}`),i.isPlaceholder&&(t+=`,quality=${ge}`),`${e}/cdn-cgi/image/${t}/${i.src}`}var cr=De(qn,void 0);function qn(e,i){let n=`f_auto,${i.isPlaceholder?"q_auto:low":"q_auto"}`;return i.width&&(n+=`,w_${i.width}`),i.loaderParams?.rounded&&(n+=",r_max"),`${e}/image/upload/${n}/${i.src}`}var dr=De(Jn,void 0);function Jn(e,i){let{src:t,width:n}=i,r=[];n&&r.push(`w-${n}`),i.isPlaceholder&&r.push(`q-${ge}`);let s=r.length?[e,`tr:${r.join(",")}`,t]:[e,t];return new URL(s.join("/")).href}var lr=De(Qn,void 0);function Qn(e,i){let t=new URL(`${e}/${i.src}`);return t.searchParams.set("auto","format"),i.width&&t.searchParams.set("w",i.width.toString()),i.isPlaceholder&&t.searchParams.set("q",ge),t.href}function fr(e){if(e&&!Ut(e))throw new Y(2959,!1);return e&&(e=new URL(e).origin),[{provide:je,useValue:n=>ei(n,e)}]}var Mt=new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]);function ei(e,i){let t=new URL(i??"https://a/");t.pathname="/.netlify/images",!xt(e.src)&&!e.src.startsWith("/")&&(e.src="/"+e.src),t.searchParams.set("url",e.src),e.width&&t.searchParams.set("w",e.width.toString());let n=e.loaderParams?.quality??e.loaderParams?.q;e.isPlaceholder&&!n&&t.searchParams.set("q",ge);for(let[r,s]of Object.entries(e.loaderParams??{}))Mt.has(r)&&t.searchParams.set(Mt.get(r),s.toString());return t.hostname==="a"?t.href.replace(t.origin,""):t.href}var hr=new P("");var ti=new P("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),ni=(()=>{class e{preloadedImages=A(ti);document=A(le);createPreloadLinkTag(t,n,r,s){if(this.preloadedImages.has(n))return;this.preloadedImages.add(n);let o=t.createElement("link");t.setAttribute(o,"as","image"),t.setAttribute(o,"href",n),t.setAttribute(o,"rel","preload"),t.setAttribute(o,"fetchpriority","high"),s&&t.setAttribute(o,"imageSizes",s),r&&t.setAttribute(o,"imageSrcset",r),t.appendChild(this.document.head,o)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=v({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Lt=/^((\s*\d+w\s*(,|$)){1,})$/;var ii=[1,2],ri=640;var si=1920,oi=1080;var gr=(()=>{class e{imageLoader=A(je);config=ui(A(Ce));renderer=A(W);imgElement=A(Z).nativeElement;injector=A(Je);isServer=Gn(A(me));preloadLinkCreator=A(ni);lcpObserver=null;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;ngOnInit(){tt("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&Lt.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw"),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),t,this.sizes)}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let n=this._renderedSrc;this.updateSrcAndSrcset(!0);let r=this._renderedSrc;this.lcpObserver!==null&&n&&r&&n!==r&&this.injector.get(Qe).runOutsideAngular(()=>{this.lcpObserver?.updateImage(n,r)})}}callImageLoader(t){let n=t;return this.loaderParams&&(n.loaderParams=this.loaderParams),this.imageLoader(n)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=Lt.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let s=t?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,n=t;return this.sizes?.trim()==="100vw"&&(n=t.filter(s=>s>=ri)),n.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let n=this.getRewrittenSrc();this.setHostAttribute("src",n);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return ii.map(n=>`${this.callImageLoader({src:this.ngSrc,width:this.width*n})} ${n}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>si||this.height>oi),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==zt&&!t}generatePlaceholder(t){let{placeholderResolution:n}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:n,isPlaceholder:!0})})`:typeof t=="string"?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let n=()=>{let o=this.injector.get(ee);r(),s(),this.placeholder=!1,o.markForCheck()},r=this.renderer.listen(t,"load",n),s=this.renderer.listen(t,"error",n);ai(t,n)}ngOnDestroy(){}setHostAttribute(t,n){this.renderer.setAttribute(this.imgElement,t,n)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=I({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(n,r){n&2&&dt("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",ci],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Ee],height:[2,"height","height",Ee],loading:"loading",priority:[2,"priority","priority",K],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",K],fill:[2,"fill","fill",K],placeholder:[2,"placeholder","placeholder",di],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[ut,Q]})}return e})();function ui(e){let i={};return e.breakpoints&&(i.breakpoints=e.breakpoints.sort((t,n)=>t-n)),Object.assign({},et,e,i)}function ai(e,i){e.complete&&e.naturalWidth&&i()}function ci(e){return typeof e=="string"?e:nt(e)}function di(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:K(e)}export{we as a,_i as b,mt as c,bi as d,le as e,Pe as f,vi as g,Vt as h,k as i,fe as j,Ot as k,jt as l,Ii as m,Gt as n,he as o,G as p,_ as q,h as r,M as s,E as t,Wt as u,Kt as v,Xt as w,qt as x,Jt as y,Qt as z,Mi as A,Li as B,te as C,ne as D,ie as E,L as F,ke as G,Bi as H,Oi as I,Ri as J,tn as K,nn as L,rn as M,Ti as N,sn as O,un as P,dn as Q,_n as R,bn as S,vn as T,Ue as U,Bn as V,Pi as W,Ni as X,ki as Y,$i as Z,Me as _,xi as $,Ui as aa,Le as ba,$t as ca,zi as da,Vi as ea,On as fa,ji as ga,Gi as ha,Hi as ia,Yi as ja,Zi as ka,Wi as la,Ki as ma,kn as na,$n as oa,Xi as pa,qi as qa,Ji as ra,Qi as sa,er as ta,tr as ua,nr as va,ir as wa,rr as xa,sr as ya,zn as za,Vn as Aa,jn as Ba,Gn as Ca,or as Da,ur as Ea,Te as Fa,It as Ga,je as Ha,ar as Ia,cr as Ja,dr as Ka,lr as La,fr as Ma,hr as Na,gr as Oa};
@@ -0,0 +1 @@
1
+ import{g as a,h as b,i as c}from"./chunk-C5O62M3L.js";import"./chunk-2PUTRWRI.js";import"./chunk-DNHLTHLR.js";import"./chunk-TLFDZKKI.js";import"./chunk-ZVT4YXH5.js";import"./chunk-6TFXXYVK.js";import"./chunk-BVTTY2FQ.js";import"./chunk-QL753AWG.js";import"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";export{b as createAdvancedOption,a as createOptionsForm,c as default};
@@ -0,0 +1 @@
1
+ import{j as a,k as b}from"./chunk-C5O62M3L.js";import"./chunk-2PUTRWRI.js";import"./chunk-DNHLTHLR.js";import"./chunk-TLFDZKKI.js";import"./chunk-ZVT4YXH5.js";import"./chunk-6TFXXYVK.js";import"./chunk-BVTTY2FQ.js";import"./chunk-QL753AWG.js";import"./chunk-PD6257G7.js";import"./chunk-B7SRENJI.js";import"./chunk-4Y76KESB.js";import"./chunk-DESW2TCQ.js";import"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";export{a as createScheduleForm,b as default};
@@ -0,0 +1 @@
1
+ import{b}from"./chunk-ZVT4YXH5.js";import{a as d}from"./chunk-BVTTY2FQ.js";import"./chunk-4Y76KESB.js";import{sa as f}from"./chunk-DESW2TCQ.js";import{Eb as t,Fb as i,Ra as a,X as s,cc as n,dc as c,fb as p,oc as l,pc as m}from"./chunk-RJDP2FPE.js";import"./chunk-7CGTOI24.js";var o=class r{#e=s(d);licenses=b(this.#e.getApiV1Licenses());static \u0275fac=function(e){return new(e||r)};static \u0275cmp=p({type:r,selectors:[["app-libraries"]],decls:5,vars:3,template:function(e,u){e&1&&(t(0,"h3"),n(1,"Libraries"),i(),t(2,"pre"),n(3),l(4,"json"),i()),e&2&&(a(3),c(m(4,1,u.licenses())))},dependencies:[f],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{o as default};