@duplicati/ngclient 0.0.84 → 0.0.88

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 (93) hide show
  1. package/chunk-25GEPULG.js +1 -0
  2. package/{chunk-DNDOALN6.js → chunk-2D7EACVA.js} +1 -1
  3. package/chunk-3BNXVXL5.js +1 -0
  4. package/{chunk-3YTSQTLM.js → chunk-3CXMAX4S.js} +1 -1
  5. package/{chunk-DURFGYD7.js → chunk-3T23UBO4.js} +1 -1
  6. package/{chunk-WWJFELTU.js → chunk-453FQ4EQ.js} +1 -1
  7. package/{chunk-C5EHOW7U.js → chunk-4RXMJUN5.js} +1 -1
  8. package/{chunk-DALX7AMG.js → chunk-5JYSV4UD.js} +1 -1
  9. package/chunk-5KNWZI2J.js +3 -0
  10. package/chunk-5OX72VKG.js +1 -0
  11. package/{chunk-GJSG762N.js → chunk-5XP5TOQE.js} +1 -1
  12. package/chunk-7CDKTUA7.js +6 -0
  13. package/chunk-AM4I6XHR.js +1 -0
  14. package/{chunk-W4MEGIZH.js → chunk-AUVMOLMG.js} +1 -1
  15. package/{chunk-BRMUJELY.js → chunk-BIVRH4JH.js} +1 -1
  16. package/{chunk-RTVM3BJK.js → chunk-BRWHKZV2.js} +1 -1
  17. package/{chunk-L5D4JLN3.js → chunk-C2JCNHTZ.js} +1 -1
  18. package/chunk-CDH4KG7H.js +1 -0
  19. package/{chunk-7LP2EQ7M.js → chunk-CKQFBLHP.js} +1 -1
  20. package/chunk-CLJTLGUH.js +1 -0
  21. package/chunk-DJD73EPX.js +1 -0
  22. package/{chunk-77PHTQYN.js → chunk-F4QKO25T.js} +1 -1
  23. package/chunk-FDQ7IWYZ.js +1 -0
  24. package/{chunk-KXU2UTG4.js → chunk-G3LEXMG4.js} +1 -1
  25. package/{chunk-KIB4MYBL.js → chunk-G76GVTZW.js} +1 -1
  26. package/{chunk-4YHGG4LR.js → chunk-GLM4XFEI.js} +1 -1
  27. package/chunk-GMW5Y454.js +1 -0
  28. package/{chunk-UI6ZWFOT.js → chunk-GUJTHKVP.js} +1 -1
  29. package/{chunk-KH7GOUWD.js → chunk-GWK5ZGTC.js} +1 -1
  30. package/chunk-H3MGI3SF.js +1 -0
  31. package/chunk-IOCSGWZ3.js +1 -0
  32. package/chunk-JJOXLPZI.js +1 -0
  33. package/{chunk-4A4CWPH7.js → chunk-K3LOA2DX.js} +1 -1
  34. package/chunk-KD4DXWHW.js +1 -0
  35. package/{chunk-YOP6HOXH.js → chunk-KDCTRSPO.js} +1 -1
  36. package/chunk-KL4KTR4Z.js +1 -0
  37. package/chunk-KTUAPEOD.js +1 -0
  38. package/chunk-LVA7V7CT.js +1 -0
  39. package/chunk-M5PD5WBV.js +1 -0
  40. package/{chunk-NBBSISDC.js → chunk-MHTKXCYS.js} +1 -1
  41. package/chunk-N7DO2BHU.js +1 -0
  42. package/chunk-N7MNI34K.js +1 -0
  43. package/{chunk-AFQ6FL3D.js → chunk-O4ZJY3TF.js} +1 -1
  44. package/chunk-ODIN2IGP.js +1 -0
  45. package/chunk-OEVX57MC.js +1 -0
  46. package/{chunk-VAAQUFLX.js → chunk-Q3SDBZEH.js} +1 -1
  47. package/{chunk-4IO6Y7PY.js → chunk-RZ4FUSBJ.js} +1 -1
  48. package/{chunk-RSXKKDD4.js → chunk-SK5UJPNU.js} +1 -1
  49. package/{chunk-ZWADJ4OM.js → chunk-SXPBIWPS.js} +1 -1
  50. package/{chunk-PPRHD3ZV.js → chunk-UIOTKB6J.js} +1 -1
  51. package/{chunk-2AYDM3FG.js → chunk-UJMJKY2E.js} +1 -1
  52. package/{chunk-7LJ7CTKL.js → chunk-UK7OJJ5S.js} +1 -1
  53. package/{chunk-UZM3TLJO.js → chunk-UUNZQKSW.js} +1 -1
  54. package/{chunk-AXHB6A4N.js → chunk-W3VTD2H4.js} +1 -1
  55. package/{chunk-MCLDJCPW.js → chunk-W4YAOQRI.js} +1 -1
  56. package/chunk-W7Y2VKMS.js +6 -0
  57. package/{chunk-7LRQSKYZ.js → chunk-WJQN3BOF.js} +1 -1
  58. package/{chunk-7IRVNC4S.js → chunk-WYTHNCNI.js} +1 -1
  59. package/{chunk-XRL6GPXW.js → chunk-Z4U4LDKL.js} +1 -1
  60. package/{chunk-YA3PYBIG.js → chunk-Z55AE6ZP.js} +1 -1
  61. package/{chunk-NNUHZ2L7.js → chunk-ZHFVGIIO.js} +1 -1
  62. package/{chunk-2M52SFS6.js → chunk-ZSSQBIRK.js} +6 -6
  63. package/chunk-ZZPLRWQP.js +1 -0
  64. package/index.html +2 -2
  65. package/{main-SOHQOOGR.js → main-QHLXX2KA.js} +1 -1
  66. package/package.json +1 -1
  67. package/styles-EJ7NNNKB.css +1 -0
  68. package/chunk-34SHHWMR.js +0 -6
  69. package/chunk-6KER52JR.js +0 -1
  70. package/chunk-6RMLOIRD.js +0 -1
  71. package/chunk-7DD5DAWU.js +0 -1
  72. package/chunk-BGBEOEU2.js +0 -1
  73. package/chunk-BKSXG3Z5.js +0 -1
  74. package/chunk-C52XP2RC.js +0 -1
  75. package/chunk-D6NUBCKD.js +0 -1
  76. package/chunk-DL6QZSL6.js +0 -1
  77. package/chunk-FUH4327W.js +0 -1
  78. package/chunk-H2DNOMMP.js +0 -1
  79. package/chunk-LJ3ULEOG.js +0 -1
  80. package/chunk-MADB4EX7.js +0 -1
  81. package/chunk-MEFACGK4.js +0 -6
  82. package/chunk-ODDKCMXA.js +0 -1
  83. package/chunk-P724RQTD.js +0 -1
  84. package/chunk-PN3DBUJI.js +0 -1
  85. package/chunk-PNJEVGID.js +0 -1
  86. package/chunk-R2HH6TYJ.js +0 -1
  87. package/chunk-RAUCDBVO.js +0 -1
  88. package/chunk-RCPMSNTW.js +0 -1
  89. package/chunk-RE4L7JTP.js +0 -1
  90. package/chunk-RLYI2YCZ.js +0 -3
  91. package/chunk-TZYGTULV.js +0 -1
  92. package/chunk-XKAASYKO.js +0 -1
  93. package/styles-5VTLDYYE.css +0 -1
package/chunk-6KER52JR.js DELETED
@@ -1 +0,0 @@
1
- import{ia as be}from"./chunk-7IRVNC4S.js";import{$a as M,Ab as ee,Bb as r,Cb as l,Db as H,Fc as Oe,Gb as G,Hb as T,Lc as x,Nc as b,Pc as fe,Ra as m,S as ae,Ta as pe,Tb as y,Ub as d,Va as ke,Vb as w,Wb as p,Y as I,Ya as F,Za as K,_a as de,cc as z,da as h,dc as P,ea as f,eb as S,ec as L,fc as De,gb as ye,gc as C,hc as xe,ic as U,jb as D,lc as te,mc as ie,nc as ne,oa as le,ob as we,oc as he,pa as W,pc as Y,qa as u,qc as A,ra as q,sb as N,sc as oe,ta as ce,tb as j,tc as se,ua as _,ub as V,vb as ue,wb as Q,xb as O,yb as J,zb as Z}from"./chunk-2M52SFS6.js";import{a as B,b as X,c as Se}from"./chunk-C6Q5SG76.js";var E=["*"],Fe=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Pe=["[icon]","[title]","*","[content]"];function Ae(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function je(n,c){n&1&&(r(0,"spk-icon",3),C(1,"info"),l())}function He(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning"),l())}function Le(n,c){n&1&&(r(0,"spk-icon",3),C(1,"warning-octagon"),l())}function Be(n,c){n&1&&(r(0,"spk-icon",3),C(1,"check-circle"),l())}function We(n,c){n&1&&(r(0,"spk-icon",3),C(1,"question"),l())}function qe(n,c){if(n&1){let e=T();r(0,"spk-icon",7),y("click",function(){h(e);let i=d();return f(i.removeAlert())}),C(1,"plus"),l()}}var Ne=["dialogRef"];function Qe(n,c){if(n&1){let e=T();r(0,"div",4),y("click",function(){h(e);let i=d();return f(i.isOpen.set(!1))}),l()}}var Ue=["spk-button",""];var Ee=["triggerRef"],$e=["popoverRef"],ze=[[["","trigger",""]],"*"],Ye=["[trigger]","*"];var Xe=()=>({closeOnButton:!1,closeOnEsc:!0});var Ge=["inputWrap"];var Ke=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Je=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var Ze=["option"],et=["*",[["","menu",""]]],tt=["*","[menu]"];var it=["input"],nt=["textarea"],ot=["optionsWrap"],st=[[["label"]],[["input"]],[["textarea"]]],rt=["label","input","textarea"],Me=()=>({closeOnButton:!1,closeOnEsc:!1}),ge=n=>({$implicit:n});function at(n,c){n&1&&G(0)}function lt(n,c){if(n&1&&D(0,at,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ct(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function pt(n,c){if(n&1){let e=T();r(0,"spk-chip",11),D(1,lt,1,4,"ng-container")(2,ct,1,1),r(3,"spk-icon",12),y("click",function(i){h(e);let o=d(2).$index,s=d(2);return f(s.removeSelectedOptionByIndex(i,o))}),C(4,"x-bold"),l()()}if(n&2){let e=d(4),t=A(6);Q(e.selectClasses()),m(),O(t?1:2)}}function dt(n,c){n&1&&G(0)}function ut(n,c){if(n&1&&D(0,dt,1,0,"ng-container",13),n&2){let e=d(3).$implicit;d(2);let t=A(6);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function ht(n,c){if(n&1&&C(0),n&2){let e=d(3).$implicit,t=d(2);U(" ",t.getLabel(e)," ")}}function ft(n,c){if(n&1&&D(0,ut,1,4,"ng-container")(1,ht,1,1),n&2){d(4);let e=A(6);O(e?0:1)}}function mt(n,c){if(n&1&&D(0,pt,5,3,"spk-chip",10)(1,ft,2,1),n&2){d(3);let e=A(8);O(e?0:1)}}function gt(n,c){if(n&1&&D(0,mt,2,1),n&2){let e=c.$implicit;O(e?0:-1)}}function vt(n,c){if(n&1&&Z(0,gt,1,1,null,null,J),n&2){d();let e=A(4);ee(e)}}function _t(n,c){n&1&&G(0)}function Ct(n,c){if(n&1&&D(0,_t,1,0,"ng-container",14),n&2){d(2);let e=A(0);N("ngTemplateOutlet",e)}}function St(n,c){if(n&1&&C(0),n&2){let e,t=d(2);U(" ",(e=t.placeholderText())!==null&&e!==void 0?e:""," ")}}function kt(n,c){if(n&1&&D(0,Ct,1,1,"ng-container")(1,St,1,1),n&2){d();let e=A(0);O(e?0:1)}}function yt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-down"),l())}function wt(n,c){n&1&&H(0,"spk-spinner",7)}function Dt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"list-magnifying-glass"),l())}function xt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"magnifying-glass"),l())}function Ot(n,c){if(n&1){let e=T();r(0,"spk-icon",15),y("click",function(i){h(e);let o=d();return f(o.clear(i))}),C(1,"x-bold"),l()}}function bt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"check"),l())}function Tt(n,c){n&1&&(r(0,"spk-icon",6),C(1,"caret-up"),l())}function Et(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=d().$index,t=d();Q(t.selectClasses()),V("active",t.isSelected(e))}}function Mt(n,c){n&1&&G(0)}function It(n,c){if(n&1&&D(0,Mt,1,0,"ng-container",13),n&2){let e=d().$implicit;d();let t=A(7);N("ngTemplateOutlet",t)("ngTemplateOutletContext",se(2,ge,e))}}function Vt(n,c){if(n&1&&C(0),n&2){let e=d().$implicit,t=d();U(" ",t.getLabel(e)," ")}}function Rt(n,c){if(n&1){let e=T();r(0,"li",16),y("click",function(){let i=h(e).$index,o=d();return f(o.toggleOptionByIndex(i))}),D(1,Et,1,4,"spk-checkbox",17)(2,It,1,4,"ng-container")(3,Vt,1,1),l()}if(n&2){let e=c.$index,t=d(),i=A(7);V("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),m(),O(t.selectMultiple()?1:-1),m(),O(i?2:3)}}var Ft=["optionsRef"],Pt=["formFieldWrapper"],At=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],jt=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function Ht(n,c){if(n&1){let e=T();r(0,"spk-chip",12),y("click",function(i){let o=h(e).$implicit,s=d(3);return f(s.toggleOption(o,i))}),C(1),r(2,"spk-icon"),C(3,"x-bold"),l()()}if(n&2){let e,t=c.$implicit,i=d(3);Q(i.chipClass()),m(),U(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Lt(n,c){if(n&1&&Z(0,Ht,4,3,"spk-chip",11,J),n&2){let e=d(2);ee(e.inputValue().split(","))}}function Bt(n,c){if(n&1&&(r(0,"div",6),D(1,Lt,2,0),l()),n&2){let e=d();m(),O(e.inputValue().length>0?1:-1)}}function Wt(n,c){if(n&1&&(r(0,"div",6),C(1),l()),n&2){let e=d();m(),xe(e._displayValue())}}function qt(n,c){if(n&1){let e=T();r(0,"div",13),y("click",function(i){h(e);let o=d();return f(o.deselect(i))}),p(1,3),r(2,"spk-icon",14),C(3,"x-bold"),l()()}}function Nt(n,c){n&1&&(r(0,"div",8),p(1,4),r(2,"spk-icon",14),C(3,"magnifying-glass"),l()())}function Qt(n,c){if(n&1&&(r(0,"div",15),p(1,5),r(2,"spk-icon",14),C(3,"caret-down"),l()()),n&2){let e=d();V("open",e.isOpen())}}var Ut=["dragImageElement"],$t=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],zt=["[sidenav]","[sidenav-closed-topbar]","*"];function Yt(n,c){n&1&&H(0,"div",1,0)}function Xt(n,c){if(n&1){let e=T();r(0,"div",7),y("drop",function(i){h(e);let o=d();return f(o.drop(i))})("dragover",function(i){h(e);let o=d();return f(o.dragOver(i))})("dragenter",function(){h(e);let i=d();return f(i.dragEnter())})("dragleave",function(){h(e);let i=d();return f(i.dragLeave())}),l()}}function Gt(n,c){if(n&1){let e=T();r(0,"div",8),y("dragstart",function(i){h(e);let o=d();return f(o.dragStart(i))})("dragend",function(i){h(e);let o=d();return f(o.dragEnd(i))})("drag",function(i){h(e);let o=d();return f(o.drag(i))})("touchstart",function(i){h(e);let o=d();return f(o.touchStart(i))})("touchmove",function(i){h(e);let o=d();return f(o.touchMove(i))})("touchend",function(i){h(e);let o=d();return f(o.touchEnd(i))})("touchcancel",function(i){h(e);let o=d();return f(o.touchCancel(i))}),l()}}var Kt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Jt=["[table-header]","*","[table-no-rows]"];function Zt(n,c){n&1&&H(0,"spk-progress-bar",0)}function ei(n,c){n&1&&(r(0,"div",1),p(1,2),l())}var ti=["tooltipRef"];var me=["bold","thin","light","fill"],re=(()=>{class n{#e=I(q);get currentClass(){let e=this.#e.nativeElement.innerText;for(let t=0;t<me.length;t++)if(e.endsWith(me[t]))return me[t];return""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&Q(i.currentClass)},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Mi=(()=>{class n{constructor(){this._el=I(q),this.alertService=u(null),this.id=u(null),this.alertClasses=x(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Pe,decls:18,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(w(Fe),r(0,"div",1)(1,"div",2,0),p(3),l(),r(4,"div",2),he(5),D(6,Ae,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,He,2,0,"spk-icon",3)(9,Le,2,0,"spk-icon",3)(10,Be,2,0,"spk-icon",3)(11,We,2,0,"spk-icon",3),l(),r(12,"div",4),p(13,1),p(14,2),l(),D(15,qe,2,0,"spk-icon",5),r(16,"div",6),p(17,3),l()()),t&2){let o=De(2);m(),j("display",o.children.length?"block":"none");let s=i.alertClasses();m(5),O(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),m(9),O(i.id()?15:-1)}},dependencies:[re],encapsulation:2,changeDetection:0})}}return n})();function ve(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ii=(()=>{class n{constructor(){this.alertHistory=_([]),this.alertHistoryIsOpen=_(!1),this.alertHistoryIsHidden=_(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=ve();this.alertHistory.update(i=>[X(B({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>X(B({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>X(B({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>X(B({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ii={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ni=(()=>{class n{constructor(){this.dialogRef=F("dialogRef"),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ii),this.options())),this.abortController=null,this.isOpenEffect=b(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&P(i.dialogRef,Ne,5),t&2&&L()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(w(),r(0,"dialog",1,0)(2,"div",2),p(3),l(),D(4,Qe,1,0,"div",3),l()),t&2){let o,s,a,k;j("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(a=i.defaultOptionMerge().maxHeight)!==null&&a!==void 0?a:"")("height",(k=i.defaultOptionMerge().height)!==null&&k!==void 0?k:""),m(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Vi=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#i=I(we),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#i;open(e,t){let i=this.#i.injector,o=this.#s(),Ce=t||{},{data:s,closed:a}=Ce,k=Se(Ce,["data","closed"]);this.compRef&&this.#t(),this.insertedCompRef=fe(e,{environmentInjector:i}),this.compRef=fe(ni,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let g=this.insertedCompRef.instance?.data,v=this.insertedCompRef.instance?.closed;if(s){if(ce(g))this.insertedCompRef.setInput("data",s);else if(!ce(g))throw new Error("data is not an input signal on the passed component")}v instanceof le&&(this.closedFieldSub=v.subscribe((...Re)=>{a?.(...Re),this.#t()})),this.#i.attachView(this.insertedCompRef.hostView),this.#i.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",k),this.compRef.instance.closed.subscribe(()=>$());let R=this;function $(){v&&v instanceof le?v.emit(!1):a?.(void 0),R.#t()}return this.insertedCompRef.instance}#s(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#t(){this.insertedCompRef&&(this.#i.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#i.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#t()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=ae({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ri=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),oi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:Ue,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Fi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),si=(()=>{class n{#e=I(q);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(w(),r(0,"div",0)(1,"spk-icon",1),C(2,"check"),l(),r(3,"spk-icon",2),C(4,"minus"),l()(),p(5))},dependencies:[re],encapsulation:2,changeDetection:0})}}return n})(),Ie=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var ri=["scroll","auto"],ai={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},_e=(()=>{class n{constructor(){this.#e=I(Oe),this.#i=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=u(!1),this.right=u(!1),this.markForCheck=u(null),this._above=_(this.above()),this._right=_(this.right()),this.disableOpenByClick=u(!1),this.isOpen=M(!1),this.options=u(),this.closed=W(),this.defaultOptionMerge=x(()=>B(B({},ai),this.options())),this.triggerRef=F.required("triggerRef"),this.popoverRef=F.required("popoverRef"),this.id=_("--"+ve()),this.menuStyle=_(null),this.openAbort=null,this.openEffect=b(()=>{let e=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};e?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#s(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#t(),i),window.addEventListener("resize",()=>this.#t(),i),this.#t()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=b(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#i;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}#s(e){let t=e.parentElement;for(;t;){if(ri.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#t(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,a=o+this.#i,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(s=i,a=o+this.#i,g){let R=e.top-t.height-this.#i;R<0||(a=R)}k&&(s=e.right-t.width,s<0&&(s=0));let v={left:s+"px",top:a+"px"};this.menuStyle.set(v)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(P(i.triggerRef,Ee,5),P(i.popoverRef,$e,5)),t&2&&L(2)},hostVars:4,hostBindings:function(t,i){t&2&&V("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ye,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();w(ze),r(0,"div",2,0),y("click",function(a){return h(o),f(i.toggleIsOpen(a))}),r(2,"div",3),p(3),l(),r(4,"button",4),C(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),y("click",function(a){return h(o),f(i.isOpen()&&i.eventClose(a))}),l(),p(9,1),l()}t&2&&(j("anchor-name",i.id()),m(6),ue(i.menuStyle()),j("position-anchor",i.id()))},dependencies:[oi],encapsulation:2,changeDetection:0})}}return n})();var Pi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),Ve=(()=>{class n{#e=I(q);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let s=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},a=function(){window.setTimeout(s,0)};var i=s,o=a;t.addEventListener("change",s),t.addEventListener("cut",a),t.addEventListener("paste",a),t.addEventListener("drop",a),t.addEventListener("keydown",a),t.focus(),t.select(),s()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:Je,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(w(Ke),p(0),r(1,"div",0)(2,"div",1),p(3,1),p(4,2),l(),H(5,"div",2),p(6,3),p(7,4),p(8,5),H(9,"div",3),p(10,6),l(),r(11,"div",4)(12,"div",5),p(13,7),l(),r(14,"div",6),p(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})();var Ai=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{constructor(){this.above=u(!1),this.right=u(!1),this.keepClickedOptionActive=u(!1),this.isOpen=M(!1),this.closed=W(),this.activeOptionIndex=_(-1),this.options=de("option"),this.optionsEl=x(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=b(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&z(o,i.options,Ze,4),t&2&&L()},hostBindings:function(t,i){t&1&&y("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:tt,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();w(et),r(0,"spk-popover",1,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close("fromPopover"))}),r(2,"div",2),y("click",function(){return h(o),f(i.isOpen.set(!0))}),p(3),l(),r(4,"div",3),y("click",function(){return h(o),f(i.close("active"))}),p(5,1),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",oe(5,Xe)))},dependencies:[_e],encapsulation:2,changeDetection:0})}}return n})(),li=(()=>{class n{constructor(){this.value=u(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&H(0,"div",0),t&2&&j("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Hi=(()=>{class n{#e=I(q);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(w(),H(0,"div",0),p(1))},encapsulation:2,changeDetection:0})}}return n})();var ci=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),Li=(()=>{class n{constructor(){this.#e=I(q),this.value=u(),this.label=u(),this.placeholder=u(),this.readonly=M(!1),this.lazySearch=u(!1),this.inlineSearch=u(!1),this.asText=u(!1),this.isClearable=u(!0),this.selectMultiple=u(!1),this.optionTemplate=u(null),this.selectedOptionTemplate=u(null),this.placeholderTemplate=u(null),this.isOpen=M(!1),this.isLoading=M(!1),this.options=M([]),this.selectedOptions=M([]),this.cleared=W(),this.inlineTemplate=K(pe),this.optionsWrapRef=F.required("optionsWrap"),this.inputRefInput=K("input"),this.textareaRefInput=K("textarea"),this.inputValue=_(""),this.prevInputValue=_(null),this.focusedOptionIndex=_(-1),this._isClearable=x(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=x(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=x(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=x(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(i=>this.#o(i,t)):e}),this.filteredOptions=x(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:!i||o===""?e:e.filter(s=>(t?(this.#o(s,t)??"").toString().toLowerCase():(s??"").toString().toLowerCase()).includes(o))}),this.#i=b(()=>{let e=this.inputRefEl();e&&(e.disabled=this.readonly())}),this.inputRefEl=x(()=>{let e=this.inputRefInput(),t=this.textareaRefInput(),i=e?e.nativeElement:t?t.nativeElement:null;return i?(i.autocomplete="off",this.#r(i),i.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&i.addEventListener("input",o=>{let s=o.target.value,a=this.inputValue();s!==a&&(this.focusedOptionIndex.set(0),this.inputValue.set(s),this.updateInputElValue())}),i.addEventListener("inputValueChanged",o=>{let s=o.detail.value,a=this.inputValue();if(s!==a){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromSelectedOptions(),this.#t()}}),i):(console.warn("<spk-select> input element not found are you missing #input or #textarea on the projected element?"),null)}),this.openAbortController=null,this.isOpenEffect=b(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl();if(!t)return;t.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=b(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=b(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.setSelectedOptionsFromValue(e.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=x(()=>{let e=this.selectedOptions();return this.label()?e.map(i=>this.getLabel(i)).join(", "):e.join(", ")}),this.inputState=x(()=>this.selectedOptions().length>0&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=x(()=>this.inlineSearch()||this.lazySearch()),this.#s=b(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i)})}#e;#i;#s;setSelectedOptionsFromValue(e){let t=this.options(),i=this.value(),o=this.selectMultiple(),s=e.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let a=o?s:[s[0]],k=t.filter(g=>{let v=i?this.#o(g,i)?.toString():g?.toString();return v&&a.includes(v)});this.selectedOptions.set(o?k:[k[0]])}setInputValueFromSelectedOptions(){let e=this.selectedOptions(),t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=e.map(o=>t?this.#o(o,t):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(e){let t=this.label();return t?this.#o(e,t):e}toggleOptionByIndex(e,t){let i=this.filteredOptions()[e];if(!i)throw new Error("Option not found: this should never happen if it does report it as an issue on github");t&&t.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),a=this.value(),k=this.selectedOptionValues(),g=a?this.#o(i,a):i;this.prevInputValue.set(null),this.selectedOptions.update(v=>{let R=k.indexOf(g);if(R>-1){let $=[...v.slice(0,R),...v.slice(R+1)];return s||$.length>0?$:v}else return this.focusedOptionIndex.set(e),o?[...v,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,t),...i.slice(t+1)]),this.setInputValueFromSelectedOptions()}isSelected(e){let t=this.value(),i=this.filteredOptions()[e],o=t?this.#o(i,t):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#t())}#t(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let i=this.filteredOptions().findIndex(o=>t?this.#o(o,t)===e:o===e);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue();this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromSelectedOptions()),this.hasSearch()&&this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#o(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}#r(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select-new"]],contentQueries:function(t,i,o){t&1&&(z(o,i.inlineTemplate,pe,5),z(o,i.inputRefInput,it,5),z(o,i.textareaRefInput,nt,5)),t&2&&L(3)},viewQuery:function(t,i){t&1&&P(i.optionsWrapRef,ot,5),t&2&&L()},hostVars:2,hostBindings:function(t,i){t&2&&V("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:rt,decls:31,vars:19,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(t,i){if(t&1){let o=T();w(st),he(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),r(10,"spk-popover",2,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(12,"spk-form-field",3),y("click",function(){return h(o),f(i.open())}),p(13,0,["ngProjectAs","label",5,["label"]]),r(14,"div",4)(15,"div",5),D(16,vt,2,0)(17,kt,2,1),p(18,1),p(19,2),l()(),D(20,yt,2,0,"spk-icon",6)(21,wt,1,0,"spk-spinner",7)(22,Dt,2,0,"spk-icon",6)(23,xt,2,0,"spk-icon",6)(24,Ot,2,0,"spk-icon",6)(25,bt,2,0,"spk-icon",6)(26,Tt,2,0,"spk-icon",6),l(),r(27,"div",8,1),Z(29,Rt,4,6,"li",9,J),l()()}if(t&2){Y(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),a=i.inlineTemplate();m(4);let k=Y(i.selectedOptions()),g=i.inputState();m(2),Y(s||o||a),m(),Y(o||a),m();let v=Y(!i.asText()&&i.selectMultiple()),R=i.hasSearch()&&i.isOpen()&&v;m(2),te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(18,Me)),m(2),Q(i.readonly()?"readonly":""),V("autosize",i.selectMultiple()),m(2),V("show-search-text",R),m(),V("is-selected",g==="selected"),m(),O(k.length>0?16:R?-1:17),m(4),O(g==="closed"?20:g==="loading"?21:g==="open-searching"?22:g==="searching"?23:g==="selected"&&i._isClearable()?24:g==="selected"&&!i._isClearable()?25:26),m(9),ee(i.filteredOptions())}},dependencies:[be,_e,Ve,re,si,ci,Ie],encapsulation:2,changeDetection:0})}}return n})(),Te=(()=>{class n{constructor(){this.#e=I(q),this.value=u(null),this.#i=b(()=>{this.#e.nativeElement.value=this.value()})}#e;#i;hasAttribute(e){return this.#e.nativeElement.hasAttribute(e)}removeAttribute(e){this.#e.nativeElement.removeAttribute(e)}setAttribute(e,t){this.#e.nativeElement.setAttribute(e,t)}getAttribute(e){return this.#e.nativeElement.getAttribute(e)}addClass(e){this.#e.nativeElement.classList.add(e)}removeClass(e){this.#e.nativeElement.classList.remove(e)}scrollIntoView(e){this.#e.nativeElement.scrollIntoView(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})(),pi=["primary","accent","warn","error","success"],Bi=(()=>{class n{constructor(){this.#e=I(ke),this.#i=I(q),this.optionsRef=F("optionsRef"),this.options=de(Te),this.formFieldWrapperRef=F.required("formFieldWrapper"),this.inputWrapRef=F.required("inputWrap"),this.inputValue=M(""),this.readonly=u(!1),this.isFreeText=u(!1),this.selectMultiple=u(!1),this.hideClearButton=u(!1),this.displayValue=u(""),this.displayFn=u(e=>`${e}`),this.above=u(!1),this.right=u(!1),this.change=W(),this.#s=_(!1),this.#t=_(null),this.#o=_(null),this.#r=_(!1),this.#n=_(-1),this.isOpen=_(!1),this._isOpen=_(!1),this.isSearchInput=x(()=>this.#t()?.type==="search"),this.chipClass=x(()=>Array.from(this.#i.nativeElement.classList).filter(e=>pi.includes(e)).join(" ")),this._displayValue=x(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=x(()=>this.#o()?this.options().find(e=>e.value()===this.#o()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#p=b(()=>{this.#s();let e=this.#i.nativeElement.querySelector("input");e&&(e.disabled=this.readonly(),this.#v(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#l()}),this.#t.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#d=b(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#t();e&&(e.addEventListener("focus",()=>{this.isOpen.set(!0)}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.options().length-1?this.#n.set(this.#c()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.options().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal}))}),this.#u=b(()=>{this.isOpen()&&this.#g()}),this.#h=b(()=>{let e=this.inputValue();this.#t()&&(this.#t().value=e??"",this.#t().dispatchEvent(new Event("input")))}),this.#a=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#s.set(!this.#s())})}#e;#i;#s;#t;#o;#r;#n;#p;#d;#u;#h;ngOnInit(){typeof MutationObserver<"u"&&this.#a.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.options()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#t()?.blur())}selected(e){if(!e)return;let t=e.value(),i=this.options().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.options().length;o++){let s=this.options()[o];s.value()===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#r.set(!1),this.#o.set(null),this.selectMultiple()?this.#t()?.focus():(this.isOpen.set(!1),this.#t()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#t()?.value;for(let o=0;o<e.length;o++){let s=e[o];s.value()===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){let t=this.#o();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#r.set(!1),e||this.#t()?.blur(),this.#m()}open(e){e.preventDefault(),this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#t().focus(),this.#t().value="",this.#t().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#t().focus(),this.isOpen.set(!0),this.#r.set(!0),this.#f(),this.#l()}#f(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsRef()?.nativeElement?.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("spk-option"),i=this.options().find(o=>o.value()===t.value);i&&this.selected(i)},{signal:this.clickController?.signal})}#m(){this.clickController&&this.clickController.abort()}#g(){for(let e=0;e<this.options().length;e++){let t=this.options()[e];t.removeClass("focused"),this.#n()===e&&(t.addClass("focused"),t.scrollIntoView({block:"center"}))}}#l(){let e=this.#t();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.options();for(let o=0;o<i.length;o++){let s=i[o].value();s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#c(){let e=this.options();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#a;#v(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&this.#a.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(t,i,o){t&1&&z(o,i.options,Te,4),t&2&&L()},viewQuery:function(t,i){t&1&&(P(i.optionsRef,Ft,5),P(i.formFieldWrapperRef,Pt,5),P(i.inputWrapRef,Ge,5)),t&2&&L(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:jt,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();w(At),r(0,"spk-popover",3,0),ne("isOpenChange",function(a){return h(o),ie(i.isOpen,a)||(i.isOpen=a),f(a)}),y("closed",function(){return h(o),f(i.close())}),r(2,"spk-form-field",4),y("click",function(a){return h(o),f(i.open(a))}),p(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),D(6,Bt,2,1,"div",6)(7,Wt,2,1,"div",6),p(8,1),l(),D(9,qt,4,0,"div",7)(10,Nt,4,0,"div",8)(11,Qt,4,2,"div",9),l(),r(12,"div",10,2),p(14,2),l()()}t&2&&(te("isOpen",i.isOpen),N("disableOpenByClick",!0)("options",oe(7,Me)),m(2),Q(i.readonly()?"readonly":""),m(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),m(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Ve,re,Ie,_e],encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=u(!1),this.isOpen=M(!1),this.type=u(""),this.dragImageElement=F.required("dragImageElement"),this.dragIsEnding=_(!1),this.dragIsOnScreen=_(!0),this.isDragging=_(!1),this.dragPositionX=_(0),this.dragActualPositionX=x(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=x(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=b(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#i(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#i(e)}#i(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#i(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&P(i.dragImageElement,Ut,5),t&2&&L()},hostVars:10,hostBindings:function(t,i){t&2&&V("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:zt,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(w($t),D(0,Yt,2,0,"div",1)(1,Xt,1,0,"div",2),r(2,"div",3),p(3),l(),r(4,"div",4),D(5,Gt,1,0,"div",5),r(6,"div",6),p(7,1),l(),r(8,"main"),p(9,2),l()()),t&2&&(O(i.type()==="overlay"?0:-1),m(),O(i.type()==="overlay"&&i.isDragging()?1:-1),m(3),j("transform",i.draggingStyle()),m(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{constructor(){this.tableColumns=u([]),this.loading=u(!1),this.columnSizes=x(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=u([]),this.dataChange=W(),this.#e=null,this.#i=_(!1),this.sortByColumn=M(null),this.e=b(()=>{let e=this.sortByColumn();if(e===null)return this.#i()||(this.#e=this.data(),this.#i.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,a)=>{let k=s[t],g=a[t],v=0;return typeof k=="number"&&typeof g=="number"&&(v=k-g),k instanceof Date&&g instanceof Date&&(v=k.getTime()-g.getTime()),typeof k=="string"&&typeof g=="string"&&(v=k.localeCompare(g,void 0,{sensitivity:"base"})),i?-v:v});this.dataChange.emit(o)})}#e;#i;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&j("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Jt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(w(Kt),r(0,"thead"),p(1),D(2,Zt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),p(4,1),l(),D(5,ei,2,0,"div",1)),t&2&&(m(2),O(i.loading()?2:-1),m(3),O(i.loading()?-1:5))},dependencies:[li],encapsulation:2,changeDetection:0})}}return n})(),Qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(w(),p(0))},encapsulation:2,changeDetection:0})}}return n})();var Ui=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:E,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(w(),r(0,"div",0),H(1,"div",1),l(),p(2))},encapsulation:2,changeDetection:0})}}return n})(),$i=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=u(!1),this.above=u(!1),this.right=u(!1),this._above=_(this.above()),this._right=_(this.right()),this.message=u.required(),this.isOpen=M(!1),this.closed=W(),this.triggerRef=F.required("triggerRef"),this.tooltipRef=F.required("tooltipRef"),this.id=_("--"+ve()),this.menuStyle=_(null),this.isCalculatingPosition=x(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=b(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#i(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#i(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,a=o+this.#e,k=s+t.width>window.innerWidth,g=a+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(g),this._right.set(k);else{if(this.above()){let v=e.top-t.height-this.#e;v>=0&&(a=v)}else g&&(a=e.top-t.height-this.#e);if(this.right()){let v=e.right-t.width;v>=0&&(s=v)}else k&&(a=g?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:a+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(P(i.triggerRef,Ee,5),P(i.tooltipRef,ti,5)),t&2&&L(2)},hostVars:6,hostBindings:function(t,i){t&2&&V("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();w(),r(0,"div",2,0),y("mouseover",function(){return h(o),f(i.isOpen.set(!0))})("mouseout",function(){return h(o),f(i.isOpen.set(!1))}),p(2),l(),r(3,"div",3,1),C(5),l()}t&2&&(j("anchor-name",i.id()),m(3),ue(i.menuStyle()),j("position-anchor",i.id()),m(2),U(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var zi=(()=>{class n{constructor(){this.filesOver=_(!1),this.filesDropped=W()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=ye({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&y("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&V("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{re as a,Mi as b,Ii as c,ni as d,Vi as e,Ri as f,oi as g,Fi as h,si as i,Ie as j,Pi as k,Ve as l,Ai as m,ji as n,li as o,Hi as p,Li as q,Te as r,Bi as s,Wi as t,qi as u,Ni as v,Qi as w,Ui as x,$i as y,zi as z};
package/chunk-6RMLOIRD.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-DALX7AMG.js";import"./chunk-DNDOALN6.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as DurationFormatPipe};
package/chunk-7DD5DAWU.js DELETED
@@ -1 +0,0 @@
1
- import{a as m}from"./chunk-W4MEGIZH.js";import{b as N}from"./chunk-PPRHD3ZV.js";import{C as o,E as h,Lc as u,O as d,S as l,Y as r,l as c,ua as s,v as f,y as p}from"./chunk-2M52SFS6.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),console.log("notifications",i),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
package/chunk-BGBEOEU2.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b,e as c}from"./chunk-MEFACGK4.js";import"./chunk-DURFGYD7.js";import"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-RTVM3BJK.js";import"./chunk-XKAASYKO.js";import"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
package/chunk-BKSXG3Z5.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-TZYGTULV.js";import"./chunk-DURFGYD7.js";import"./chunk-BRMUJELY.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-XKAASYKO.js";import"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};
package/chunk-C52XP2RC.js DELETED
@@ -1 +0,0 @@
1
- import{o as Ae}from"./chunk-MEFACGK4.js";import{a as Kt}from"./chunk-DURFGYD7.js";import{a as Qt}from"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import{a as we,b as te}from"./chunk-PNJEVGID.js";import{a as Ge}from"./chunk-KIB4MYBL.js";import{a as ce}from"./chunk-YOP6HOXH.js";import{a as Ht}from"./chunk-WWJFELTU.js";import"./chunk-RTVM3BJK.js";import{a as bt}from"./chunk-7LP2EQ7M.js";import{a as Wt}from"./chunk-DL6QZSL6.js";import"./chunk-7LRQSKYZ.js";import"./chunk-L5D4JLN3.js";import"./chunk-W4MEGIZH.js";import"./chunk-AXHB6A4N.js";import{a as Vt,b as j,d as H,e as de,g as me,h as ue,i as Dt,l as Se,m as ge,o as Te,p as fe,q as Ce,r as Ee}from"./chunk-XKAASYKO.js";import"./chunk-MADB4EX7.js";import{b as k}from"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import{a as Ne,b as Lt,g as he,i as Xt,k as zt,l as W,n as Bt,o as Ut,p as qt,q as jt,r as Oe,s as Me,x as Pe,y as Ie}from"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-DNDOALN6.js";import{Ab as x,Bb as s,Cb as o,D as Fe,Db as E,E as w,Eb as le,Fb as _e,Gb as yt,Hb as h,L as b,Lc as U,Mc as kt,Nb as D,Nc as q,Ob as L,Pa as Ot,Pb as p,Qb as Y,Ra as r,Rb as ee,S as ae,Sb as pe,Tb as g,Ub as l,Xb as F,Y as N,Ya as Mt,Zb as O,aa as Ct,b as St,ba as Et,c as re,da as m,dc as Rt,ea as u,eb as V,ec as vt,fc as Ft,gc as c,hc as $,ia as Nt,ic as I,jb as C,k as gt,l as Z,lc as X,mc as z,n as Tt,nc as B,p as ft,pb as Pt,q as ve,qb as It,rc as wt,sb as S,sc as At,ta as ht,tc as Gt,ua as f,ub as P,uc as xt,xb as T,y as J,yb as A,zb as G,zc as $t}from"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";function Zt(i,n,e){!n&&Et(i);let t=n??N(Nt);return e?Ct(t,e):t}function xe(...i){let{normalizedSources:n,hasInitValue:e,operator:t,options:a}=nn(i),_=Zt(xe,a?.injector);return e?te(ve(n).pipe(t),{initialValue:a.initialValue,injector:_}):te(ve(n).pipe(t),{injector:_,requireSync:!0})}function nn(i){if(!i||!i.length||typeof i[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof i[1]=="function";if(i.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||i.splice(1,0,St);let[e,t,a]=i,_=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((R,[M,v])=>{if(ht(v))R[M]=we(v,{injector:a?.injector}).pipe(b(kt(v)));else if(Tt(v))R[M]=v.pipe(Fe());else if(typeof v=="function"){let oe=U(v);R[M]=we(oe,{injector:a?.injector}).pipe(b(v()))}else R[M]=gt(v).pipe(Fe());return R},Array.isArray(e)?[]:{}),operator:t,hasInitValue:_,options:a}}var K=class i{#e=N(k);#i=te(this.#e.getApiV1Serversettings());#t=f(void 0);serverSettings=U(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}withRefresh(){return re(w(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};var on=["formRef"],sn=()=>[import("./chunk-4A4CWPH7.js").then(i=>i.NgTemplateOutlet)],rn=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),an=i=>({$implicit:i});function ln(i,n){if(i&1){let e=h();D(0,3,1),s(1,"button",13,2),g("click",function(){let a=m(e).$implicit,_=l();return u(_.addNewOption(a))}),o(),L()}if(i&2){let e=n.$implicit;r(),Y(e.name),ee(0)}}function _n(i,n){i&1&&yt(0)}function pn(i,n){if(i&1&&C(0,_n,1,0,"ng-container",14),i&2){let e=n.$implicit,t=n.$index;l(2);let a=Ft(15);S("ngTemplateOutlet",a)("ngTemplateOutletContext",Gt(5,an,xt(2,rn,t,e)))}}function cn(i,n){if(i&1&&G(0,pn,1,7,"ng-container",null,A),i&2){let e=l();x(e.selectedOptions())}}function dn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function mn(i,n){if(i&1&&(s(0,"app-file-tree",17)(1,"label",23),c(2),C(3,dn,3,1,"spk-tooltip",24),o(),E(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();S("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function un(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function Sn(i,n){if(i&1&&(s(0,"app-file-tree",18)(1,"label",23),c(2),C(3,un,3,1,"spk-tooltip",24),o(),E(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();S("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function gn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function Tn(i,n){i&1&&(s(0,"spk-icon",26),c(1,"link"),o())}function fn(i,n){i&1&&(s(0,"spk-icon",26),c(1,"textbox"),o())}function Cn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),C(3,gn,3,1,"spk-tooltip",24),o(),E(4,"input",25),C(5,Tn,2,0,"spk-icon",26)(6,fn,2,0,"spk-icon",26),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),r(),T(t.formView.type==="Path"?5:6)}}function En(i,n){if(i&1){let e=h();s(0,"span",30),g("click",function(){m(e);let a=l(2).$implicit,_=l();return u(_.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function Nn(i,n){i&1&&(s(0,"spk-icon",26),c(1,"password"),o())}function hn(i,n){if(i&1){let e=h();s(0,"spk-icon",31),g("click",function(){m(e);let a=l(2).$implicit;return u(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function On(i,n){if(i&1){let e=h();s(0,"spk-icon",31),g("click",function(){m(e);let a=l(2).$implicit;return u(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function Mn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),o(),E(3,"input",27),C(4,En,2,0,"span",28)(5,Nn,2,0,"spk-icon",26)(6,hn,2,0,"spk-icon",29)(7,On,2,0,"spk-icon",29),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),S("type",t.formView.showPassword?"text":"password"),r(),T(t.oauthField===t.formView.name?4:5),r(2),T(t.formView.showPassword?6:7)}}function Pn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function In(i,n){if(i&1&&(s(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;S("value",e),r(),$(e)}}function yn(i,n){if(i&1&&(s(0,"spk-select")(1,"label",23),c(2),C(3,Pn,3,1,"spk-tooltip",24),o(),E(4,"input",32),G(5,In,2,2,"spk-option",33,A),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),r(),x(t.formView.options)}}function Rn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function vn(i,n){if(i&1&&(s(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;S("value",e),r(),$(e)}}function Fn(i,n){if(i&1&&(s(0,"div",19)(1,"label",23),c(2),C(3,Rn,3,1,"spk-tooltip",24),o(),s(4,"div",34)(5,"spk-form-field"),E(6,"input",35),s(7,"spk-icon",26),c(8,"resize"),o()(),s(9,"spk-select"),E(10,"label")(11,"input",36),G(12,vn,2,2,"spk-option",33,A),o()()()),i&2){let e,t=l().$implicit,a=l();S("formGroupName",t.formView.name),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(3),O("id","destination-",t.formGroupName,"-",t.index,""),r(6),x(a.sizeOptions())}}function wn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function An(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),C(3,wn,3,1,"spk-tooltip",24),o(),E(4,"input",37),s(5,"spk-icon",26),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function Gn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function xn(i,n){if(i&1&&(s(0,"spk-toggle",20)(1,"label",23),c(2),C(3,Gn,3,1,"spk-tooltip",24),o(),E(4,"input",38),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function $n(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function kn(i,n){i&1&&(s(0,"spk-option",40),c(1,"None"),o()),i&2&&S("value","None")}function bn(i,n){if(i&1&&(s(0,"spk-option",33),c(1),E(2,"spk-checkbox",41),o()),i&2){let e=l().$implicit;S("value",e),r(),I(" ",e," ")}}function Vn(i,n){if(i&1&&C(0,kn,2,1,"spk-option",40)(1,bn,3,2,"spk-option",33),i&2){let e=n.$implicit;T(e==="None"?0:1)}}function Dn(i,n){if(i&1&&(s(0,"spk-select",21)(1,"label",23),c(2),C(3,$n,3,1,"spk-tooltip",24),o(),E(4,"input",39),G(5,Vn,2,1,null,null,A),o()),i&2){let e,t=l().$implicit;S("selectMultiple",!0),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),F("formControlName",t.formView.name),r(),x(t.formView.options)}}function Ln(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function Xn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),C(3,Ln,3,1,"spk-tooltip",24),o(),E(4,"input",25),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function zn(i,n){if(i&1){let e=h();s(0,"div",15),le(1,16),C(2,mn,5,14,"app-file-tree",17)(3,Sn,5,10,"app-file-tree",18)(4,Cn,7,10,"spk-form-field")(5,Mn,8,11,"spk-form-field")(6,yn,7,9,"spk-select")(7,Fn,14,9,"div",19)(8,An,7,9,"spk-form-field")(9,xn,5,9,"spk-toggle",20)(10,Dn,7,7,"spk-select",21)(11,Xn,5,9,"spk-form-field"),_e(),s(12,"button",22),g("click",function(){let a=m(e).$implicit,_=l();return u(_.removeFormView(a.formView))}),s(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;r(),S("formGroupName",e.formGroupName),r(),T(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 bi=new fe,Bn=["Bytes","KB","MB","GB","TB","PB"],Vi=[{value:"",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],Di=1024*1024*1024*2,Li=1024*1024*5;var ne=class i{#e=N(Ae);#i=N(K);#t=N(k);formRef=Mt.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=f(!1);isLoadingOptions=f(!0);sizeOptions=f(Bn);serverSettingsEffect=q(()=>{let n=this.#i.serverSettings();if(n===void 0)return;this.isLoadingOptions.set(!0);let e=this.#e.nonSelectedOptions(),t=Object.entries(n);t.forEach(([a,_],y)=>{if(a.startsWith("--")){let R=a.replace("--",""),M=e.find(v=>v.name===R);M!==void 0?this.addNewOption(M,_):this.addFreeTextOption(R,_)}y===t.length-1&&this.isLoadingOptions.set(!1)})});oauthStartTokenCreation(n){}getFormFieldValue(n,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(n){let e="--"+n.name;this.#t.patchApiV1Serversettings({requestBody:{[e]:null}}).subscribe({next:t=>{window.location.reload()}})}addNewOption(n,e){this.#e.addOptionToFormGroup(n,e)}addFreeTextOption(n,e){this.#e.addFreeTextOption(n,e,{})}submit(){this.isSubmitting.set(!0);let n=this.optionsForm.value.advancedOptions;if(!n)return;let e=this.#n(n);this.#t.patchApiV1Serversettings({requestBody:e}).pipe(w(()=>this.isSubmitting.set(!1))).subscribe()}#n(n){let e={};for(let t in n)e[`--${t}`]=n[t];return e}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Rt(t.formRef,on,5),e&2&&vt()},features:[wt([Ae])],decls:20,vars:5,consts:()=>{let n;n=$localize` Advanced options ${"\uFFFD#5\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#8\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*10:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*10:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_MENU:`,n=pe(n);let e;return e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `,[["formRef",""],["fieldTemplate",""],["option",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["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"],[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"]]},template:function(e,t){if(e&1){let a=h();s(0,"form",5,0),g("submit",function(){return m(a),u(t.submit())}),s(2,"app-toggle-card",6),le(3,7),D(4,3),s(5,"spk-menu")(6,"button",8),E(7,"spk-icon"),o(),le(8,9),G(9,ln,3,1,"button",10,A),_e(),o(),L(),_e(),C(11,cn,2,0),Pt(12,11,sn),o(),C(14,zn,15,2,"ng-template",null,1,$t),s(16,"div",11)(17,"button",12),D(18,4),E(19,"spk-icon"),L(),o()()()}e&2&&(S("formGroup",t.optionsForm),r(2),S("disallowToggle",!0),r(7),x(t.nonSelectedOptions()),r(3),It(!t.isLoadingOptions()),r(5),P("loader",t.isSubmitting()))},dependencies:[Ee,ue,j,Dt,Vt,H,de,Se,Te,ge,Bt,Me,he,Ne,W,Pe,Xt,Oe,Ie,Kt,Qt],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}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.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 Q=class i{#e=N(k);#i=N(ce);repeatRegisterTimer=null;state=f("unknown");claimUrl=f(null);registerUrl=f("");status=U(()=>{let n=this.state();return n==="enabled"?"Remote control is enabled but not connected":n==="connected"?"Remote control is connected":n==="registering"?"Registering machine...":n==="registeringfaulted"?"Registration failed":n==="registered"?"Registered, waiting for accept":n==="disabled"?"Remote control is configured but not enabled":n==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=q(()=>{let n=this.#i.systemInfo();n&&this.registerUrl.set(n.RemoteControlRegistrationUrl??"")});#t(n){n.RegistrationUrl&&this.claimUrl.set(n.RegistrationUrl),n.IsConnected?this.state.set("connected"):n.IsEnabled?this.state.set("enabled"):n.CanEnable?this.state.set("disabled"):n.IsRegisteringFaulted?this.state.set("registeringfaulted"):n.IsRegistering?n.RegistrationUrl!=null&&n.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();console.log("currentState: ",e),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),n.IsRegistering&&n.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t)})}#n(n){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}deleteRemoteControl(){let n=this;confirm("Are you sure you want to delete the remote control registration?")&&n.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>n.#t(e),error:e=>n.#n(e)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};function Un(i,n){if(i&1){let e=h();s(0,"spk-form-field",10)(1,"input",11),B("ngModelChange",function(a){m(e);let _=l(2);return z(_.registerUrl,a)||(_.registerUrl=a),u(a)}),o()(),s(2,"button",12),g("click",function(){m(e);let a=l(2);return u(a.register())}),p(3,0),o()}if(i&2){let e=l(2);r(),X("ngModel",e.registerUrl)}}function qn(i,n){if(i&1&&(s(0,"div",8)(1,"label"),p(2,1),o(),s(3,"a",13),c(4),o()()),i&2){let e=l(2);r(3),F("href",e.claimUrl(),Ot),r(),$(e.claimUrl())}}function jn(i,n){i&1&&(s(0,"div",8)(1,"label"),p(2,2),o()())}function Hn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){m(e);let a=l(2);return u(a.cancel())}),p(1,3),o()}}function Wn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){m(e);let a=l(2);return u(a.disable())}),p(1,4),o()}}function Kn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){m(e);let a=l(2);return u(a.enable())}),p(1,5),o(),s(2,"button",14),g("click",function(){m(e);let a=l(2);return u(a.delete())}),p(3,6),o()}}function Qn(i,n){if(i&1&&(s(0,"div",7),C(1,Un,4,1)(2,qn,5,2,"div",8)(3,jn,3,0,"div",8)(4,Hn,2,0,"button",9)(5,Wn,2,0,"button",9)(6,Kn,4,0),o()),i&2){let e=l();r(),T(e.state()==="inactive"?1:-1),r(),T(e.state()==="registered"?2:-1),r(),T(e.state()==="registering"?3:-1),r(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),r(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),r(),T(e.state()==="disabled"?6:-1)}}var Re=class i{#e=N(Q);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let n;n=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let t;t=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let _;_=$localize`Disable remote control`;let y;y=$localize`Enable remote control`;let R;return R=$localize`Delete remote control setup`,[n,e,t,a,_,y,R,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,t){e&1&&C(0,Qn,7,6,"div",7),e&2&&T(t.state()!=="unknown"?0:-1)},dependencies:[Ce,j,H,me,W],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Zn=()=>({standalone:!0});function Jn(i,n){i&1&&(s(0,"spk-icon",74),c(1,"check"),o())}function Yn(i,n){i&1&&(s(0,"spk-icon",75),c(1,"prohibit"),o())}function ei(i,n){if(i&1){let e=h();s(0,"button",79),g("click",function(){m(e);let a=l(2);return u(a.updatePassphrase())}),p(1,36),o()}if(i&2){let e=l(2);P("loader",e.isUpdating())}}function ti(i,n){if(i&1){let e=h();s(0,"spk-tooltip",78)(1,"button",80),g("click",function(){m(e);let a=l(2);return u(a.updatePassphrase())}),p(2,37),o()()}if(i&2){let e=l(2);r(),P("loader",e.isUpdating()),S("disabled",!0)}}function ni(i,n){if(i&1){let e=h();s(0,"spk-form-field")(1,"label",70),p(2,33),o(),s(3,"input",71),B("ngModelChange",function(a){m(e);let _=l();return z(_.passphrase,a)||(_.passphrase=a),u(a)}),o()(),s(4,"spk-form-field")(5,"label",72),p(6,34),o(),s(7,"input",73),B("ngModelChange",function(a){m(e);let _=l();return z(_.repeatPassphrase,a)||(_.repeatPassphrase=a),u(a)}),o(),C(8,Jn,2,0,"spk-icon",74)(9,Yn,2,0,"spk-icon",75),o(),s(10,"div",51)(11,"button",76),g("click",function(){m(e);let a=l();return u(a.cancelPasswordChange())}),p(12,35),o(),C(13,ei,2,2,"button",77)(14,ti,3,3,"spk-tooltip",78),o()}if(i&2){let e=l();r(3),X("ngModel",e.passphrase),r(4),S("disabled",e.passphrase().length===0),X("ngModel",e.repeatPassphrase),r(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),r(3),P("loader",e.isUpdating()),r(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function ii(i,n){i&1&&(s(0,"spk-icon",81),c(1,"check"),o())}function oi(i,n){if(i&1){let e=h();s(0,"div",51)(1,"button",76),g("click",function(){m(e);let a=l();return u(a.openPassphraseForm())}),p(2,38),o(),C(3,ii,2,0,"spk-icon",81),o()}if(i&2){let e=l();r(3),T(e.passwordUpdated()?3:-1)}}function si(i,n){if(i&1){let e=h();s(0,"spk-form-field")(1,"label",82),p(2,39),o(),s(3,"textarea",83),B("ngModelChange",function(a){m(e);let _=l();return z(_.allowedHostnames,a)||(_.allowedHostnames=a),u(a)}),o()(),s(4,"spk-alert",84),p(5,40),o(),s(6,"button",79),g("click",function(){m(e);let a=l();return u(a.updateAllowedHostnames())}),p(7,41),o()}if(i&2){let e=l();r(3),X("ngModel",e.allowedHostnames),r(3),P("loader",e.updatingAllowedHosts())}}function ri(i,n){if(i&1&&c(0),i&2){let e,t=l();I(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function ai(i,n){i&1&&E(0,"spk-progress-bar",56)}function li(i,n){if(i&1&&(s(0,"spk-option",64),c(1),o()),i&2){let e=n.$implicit;S("value",e),r(),$(e)}}function _i(i,n){if(i&1){let e=h();s(0,"spk-option",85),g("click",function(){let a=m(e).$implicit,_=l();return u(_.pauseSettings.controls.timeType.setValue(a.value))}),c(1),o()}if(i&2){let e=n.$implicit;S("value",e.value),r(),I(" ",e.label," ")}}function pi(i,n){if(i&1&&(s(0,"spk-option",64),c(1),o()),i&2){let e=n.$implicit;S("value",e.value),r(),I(" ",e.label," ")}}var ie=new fe,en=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],tn=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],$e=class i{#e=N(Ht);#i=N(ce);#t=N(k);#n=N(K);#r=N(Q);#o=N(bt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=f("list");previousLang=this.#s;langCtrl=f(this.#s);remoteControlStatus=this.#r.status;settingsForm=ie.group({pauseSettings:ie.group({time:ie.control(0),timeType:ie.control("s")}),usageStatistics:ie.control("")});updatingChannel=f(!1);updateChannel=f("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(this.#n.withRefresh(),w(()=>this.updatingChannel.set(!1)),J(()=>(this.updateChannel.set(e),Z(null)))).subscribe()}allowRemoteAccess=f(!1);allowedHostnames=f("");loadedAllowedHostnames=f("");updatingRemoteAccess=f(!1);updatingAllowedHosts=f(!1);updateRemoteAccess(){let n=this.allowRemoteAccess(),e=!n;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),w(()=>this.updatingRemoteAccess.set(!1)),J(()=>(this.allowRemoteAccess.set(n),Z(null)))).subscribe()}updateAllowedHostnames(){let n=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),w(()=>this.updatingAllowedHosts.set(!1)),J(()=>(this.allowedHostnames.set(n),Z(null)))).subscribe()}updatingDisableTrayIconLogin=f(!1);disableTrayIconLogin=f(!1);saveDisableTrayIconLogin(){let n=this.disableTrayIconLogin(),e=!n;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),w(()=>this.updatingDisableTrayIconLogin.set(!1)),J(()=>(this.disableTrayIconLogin.set(n),Z(null)))).subscribe()}showPassphraseForm=f(!1);isUpdating=f(!1);passphrase=f("");repeatPassphrase=f("");passwordUpdated=f(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),w(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=f(Ge);usageStatisticsOptions=f(tn);timeTypeOptions=f(en);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(b("s")),this.pauseSettings.controls.time.valueChanges.pipe(b(null))],re(ft(([n,e])=>{let t=this.#a(n);return e!==null?t.filter(a=>a.toString().includes(e.toString())):t}),b([])));#a(n){let e=n==="h"?25:61;return new Array(e).fill(0).map((t,a)=>a)}updateLocale(n){let t=n[0]?.value??"";!t||t===""||t===this.previousLang||(this.#o.setItem("locale",t),window.location.reload())}submit(){let n=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":n==="0s"?"":n}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=q(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),_=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:_.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]}),this.disableTrayIconLogin.set(n["disable-tray-icon-login"]!=="False"),this.updateChannel.set(n["update-channel"]),this.allowRemoteAccess.set(n["server-listen-interface"]==="any"),this.allowedHostnames.set(n["allowed-hostnames"]),this.loadedAllowedHostnames.set(n["allowed-hostnames"])});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Ge.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:en.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:tn.find(t=>t.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-settings"]],decls:139,vars:37,consts:()=>{let n;n=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let t;t=$localize` Save changes `;let a;a=$localize`Remote access control`;let _;_=$localize`Color theme`;let y;y=$localize`Customize your application theme`;let R;R=$localize`Passwords`;let M;M=$localize`Change server passphrase`;let v;v=$localize`Language`;let oe;oe=$localize`Select a language for the platform`;let ke;ke=$localize`Allow remote access (requires restart)`;let be;be=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Ve;Ve=$localize`Allow remote access`;let De;De=$localize`Prevent tray icon automatic log-in`;let Le;Le=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Xe;Xe=$localize`Prevent tray icon automatic log-in`;let ze;ze=$localize`Update channel`;let Be;Be=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ue;Ue=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Stable`;let je;je=$localize`Official releases`;let He;He=$localize`Beta`;let We;We=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let Ke;Ke=$localize` Experimental `;let Qe;Qe=$localize`Specific builds for developers only. Not for use with important data.`;let Ze;Ze=$localize`Canary`;let Je;Je=$localize`Individual builds for developers only. Not for use with important data.`;let Ye;Ye=$localize`Pause after startup or hibernation`;let et;et=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let tt;tt=$localize`Usage statistics`;let se;se=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#125\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#125\uFFFD"}:CLOSE_LINK:${"[\uFFFD#126\uFFFD\uFFFD/#126\uFFFD|\uFFFD#127\uFFFD\uFFFD/#127\uFFFD]"}:LINE_BREAK:${"[\uFFFD#126\uFFFD\uFFFD/#126\uFFFD|\uFFFD#127\uFFFD\uFFFD/#127\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,se=pe(se);let nt;nt=$localize`Advanced options`;let it;it=$localize`Enter new password`;let ot;ot=$localize`Repeat password`;let st;st=$localize`Password have to be filled and have to match`;let rt;rt=$localize`Passphrase`;let at;at=$localize`Repeat passphrase`;let lt;lt=$localize`Cancel`;let _t;_t=$localize` Update passphrase `;let pt;pt=$localize` Update passphrase `;let ct;ct=$localize`Change password`;let dt;dt=$localize`Allowed hostnames`;let mt;mt=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let ut;return ut=$localize` Update allowed hostnames `,[["input",""],n,e,t,a,_,y,R,M,v,oe,ke,be,Ve,De,Le,Xe,ze,Be,Ue,qe,je,He,We,Ke,Qe,Ze,Je,Ye,et,tt,se,nt,rt,at,lt,_t,pt,ct,dt,mt,ut,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",it,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",ot,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",st,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,t){if(e&1){let a=h();E(0,"app-status-bar"),s(1,"div",42)(2,"header")(3,"div",43)(4,"h2"),p(5,1),o(),s(6,"p"),p(7,2),o()(),s(8,"button",44),g("click",function(){return m(a),u(t.submit())}),p(9,3),o()(),s(10,"section")(11,"div",45)(12,"h3"),p(13,4),o(),s(14,"p"),c(15),o()(),s(16,"div",46),E(17,"app-remote-control"),o()(),s(18,"section")(19,"div",45)(20,"h3"),p(21,5),o(),s(22,"p"),p(23,6),o()(),s(24,"div",46)(25,"div",47)(26,"img",48),g("click",function(){return m(a),u(t.setLightMode())}),o(),s(27,"img",49),g("click",function(){return m(a),u(t.setDarkMode())}),o()()()(),s(28,"section")(29,"div",45)(30,"h3"),p(31,7),o(),s(32,"p"),p(33,8),o()(),s(34,"div",50),C(35,ni,15,7)(36,oi,4,1,"div",51),o()(),s(37,"section")(38,"div",45)(39,"h3"),p(40,9),o(),s(41,"p"),p(42,10),o()(),s(43,"div",46)(44,"spk-select-new",52),g("selectedOptionsChange",function(y){return m(a),u(t.updateLocale(y))}),E(45,"input",53,0),o()()(),s(47,"section")(48,"div",45)(49,"h3"),p(50,11),o(),s(51,"p"),p(52,12),o()(),s(53,"div",54)(54,"spk-toggle",55),g("click",function(){return m(a),u(t.updateRemoteAccess())}),s(55,"label"),p(56,13),o()(),C(57,si,8,3),o()(),s(58,"section")(59,"div",45)(60,"h3"),p(61,14),o(),s(62,"p"),p(63,15),o()(),s(64,"div",46)(65,"spk-toggle",55),g("click",function(){return m(a),u(t.saveDisableTrayIconLogin())}),s(66,"label"),p(67,16),o()()()(),s(68,"section")(69,"div",45)(70,"h3"),p(71,17),o(),s(72,"p"),C(73,ri,1,1),o(),C(74,ai,1,0,"spk-progress-bar",56),o(),s(75,"div",57)(76,"div",58),g("click",function(){return m(a),u(t.setNewChannel(""))}),s(77,"spk-radio",59),p(78,18),o(),s(79,"p"),p(80,19),o()(),s(81,"div",58),g("click",function(){return m(a),u(t.setNewChannel("stable"))}),s(82,"spk-radio",59),p(83,20),o(),s(84,"p"),p(85,21),o()(),s(86,"div",58),g("click",function(){return m(a),u(t.setNewChannel("beta"))}),s(87,"spk-radio",59),p(88,22),o(),s(89,"p"),p(90,23),o()(),s(91,"div",58),g("click",function(){return m(a),u(t.setNewChannel("experimental"))}),s(92,"spk-radio",59),p(93,24),o(),s(94,"p"),p(95,25),o()(),s(96,"div",58),g("click",function(){return m(a),u(t.setNewChannel("canary"))}),s(97,"spk-radio",59),p(98,26),o(),s(99,"p"),p(100,27),o()()()()(),E(101,"spk-divider"),s(102,"form",60),g("submit",function(){return m(a),u(t.submit())}),s(103,"section")(104,"div",45)(105,"h3"),p(106,28),o(),s(107,"p"),p(108,29),o()(),s(109,"div",46)(110,"div",61)(111,"spk-select",62),E(112,"input",63),G(113,li,2,2,"spk-option",64,A),o(),s(115,"spk-select",65),E(116,"input",66),G(117,_i,2,2,"spk-option",64,A),o()()()(),s(119,"section")(120,"div",45)(121,"h3"),p(122,30),o(),s(123,"p"),D(124,31),E(125,"a",67)(126,"br")(127,"br"),L(),o()(),s(128,"div",46)(129,"spk-select",68),E(130,"input",69),G(131,pi,2,2,"spk-option",64,A),o()()(),s(133,"section")(134,"div",45)(135,"h3"),p(136,32),o()(),s(137,"div",46),E(138,"app-advanced-options-settings"),o()()()}if(e&2){let a,_,y;r(8),S("disabled",t.settingsForm.untouched),r(7),$(t.remoteControlStatus()),r(11),P("active",!t.isDarkMode()),r(),P("active",t.isDarkMode()),r(8),T(t.showPassphraseForm()?35:36),r(9),S("options",t.languageOptions())("isClearable",!1)("inlineSearch",!0),r(),S("ngModel",t.langCtrl())("ngModelOptions",At(36,Zn)),r(9),P("active",t.allowRemoteAccess()),r(3),T(t.allowRemoteAccess()?57:-1),r(8),P("active",t.disableTrayIconLogin()),r(8),T(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?73:-1),r(),T(t.updatingChannel()?74:-1),r(3),P("active",t.updateChannel()===""),r(),Y((_=t.sysinfo())==null?null:_.DefaultUpdateChannel),ee(78),r(2),Y((y=t.sysinfo())==null?null:y.ServerVersionType),ee(80),r(2),P("active",t.updateChannel()==="stable"),r(5),P("active",t.updateChannel()==="beta"),r(5),P("active",t.updateChannel()==="experimental"),r(5),P("active",t.updateChannel()==="canary"),r(5),S("formGroup",t.settingsForm),r(9),S("hideClearButton",!0),r(2),x(t.timeOptions()),r(2),S("displayFn",t.typeDisplay())("hideClearButton",!0),r(2),x(t.timeTypeOptions()),r(12),S("displayFn",t.usageDisplay()),r(2),x(t.usageStatisticsOptions())}},dependencies:[Ce,ue,j,H,de,me,Ee,Se,Te,ge,Wt,Re,ne,Oe,he,qt,Me,Ut,Pe,Ie,W,Ne,zt,Lt,jt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{$e as default};
package/chunk-D6NUBCKD.js DELETED
@@ -1 +0,0 @@
1
- import{k as a,l as b}from"./chunk-MEFACGK4.js";import"./chunk-DURFGYD7.js";import"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-RTVM3BJK.js";import"./chunk-XKAASYKO.js";import"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
package/chunk-DL6QZSL6.js DELETED
@@ -1 +0,0 @@
1
- import{a as ie}from"./chunk-7LRQSKYZ.js";import{b as oe,d as ae,g as se,i as le,q as b}from"./chunk-XKAASYKO.js";import{a as ne}from"./chunk-MADB4EX7.js";import{b as A}from"./chunk-PPRHD3ZV.js";import{a as _e,b as re,e as pe,g as ue,i as v,l as ce,o as de,p as Se,r as Te,s as me}from"./chunk-6KER52JR.js";import{pa as te}from"./chunk-7IRVNC4S.js";import{a as ge}from"./chunk-DNDOALN6.js";import{Ab as N,Bb as l,Cb as s,Db as h,E,Hb as j,Lc as w,Nb as F,Ob as y,Pb as p,Ra as _,Sb as q,Tb as u,Ub as O,Y as c,da as K,ea as W,eb as C,gc as m,hb as V,hc as $,ic as Z,jb as G,jc as J,kc as Y,lc as M,mc as D,nc as R,pa as k,sb as T,ua as r,ub as d,wc as x,xb as U,xc as Q,yb as f,yc as ee,zb as P}from"./chunk-2M52SFS6.js";var L=class o{#e=c(ge);transform(n,...t){return this.#e.locale(),this.#e(n).fromNow()}static \u0275fac=function(t){return new(t||o)};static \u0275pipe=V({name:"appRelativeTime",type:o,pure:!0})};function Pe(o,n){if(o&1){let t=j();l(0,"spk-radio",10),u("click",function(){let i=K(t).$implicit,a=O();return W(a.pauseOption.set(i.value))}),m(1),s()}if(o&2){let t=n.$implicit,e=O();d("active",e.pauseOption()===t.value),_(),Z(" ",t.label," ")}}var Ne=[{label:$localize`5 minuts`,value:"5m"},{label:$localize`10 minuts`,value:"10m"},{label:$localize`15 minuts`,value:"15m"},{label:$localize`30 minuts`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],B=class o{#e=c(A);pauseOptions=r(Ne);closed=k();isSubmitting=r(!1);pauseTransfers=r(!1);pauseOption=r(void 0);submit(){this.isSubmitting.set(!0);let n=this.pauseTransfers()||null,t=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:t,pauseTransfers:n}).pipe(E(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit()}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:4,consts:()=>{let n;n=$localize`Pause settings`;let t;t=$localize` Also pause transfers `;let e;e=$localize`If you pause transfers they could time out and cause retries or failures.`;let i;i=$localize`Cancel`;let a;return a=$localize` Update settings `,[n,t,e,i,a,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"active"],[1,"check-wrap"],[1,"primary","raised",3,"click"],["type","warning"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(l(0,"header",5)(1,"h3"),p(2,0),s()(),l(3,"div",6)(4,"div",7),P(5,Pe,2,3,"spk-radio",8,f),s(),l(7,"div",9)(8,"spk-checkbox",10),u("click",function(){return e.pauseTransfers.set(!e.pauseTransfers())}),p(9,1),s(),l(10,"spk-alert",11),p(11,2),s()()(),l(12,"footer",12)(13,"button",13),u("click",function(){return e.closed.emit()}),p(14,3),s(),l(15,"button",14),u("click",function(){return e.submit()}),p(16,4),s()()),t&2&&(_(5),N(e.pauseOptions()),_(3),d("active",e.pauseTransfers()),_(7),d("loader",e.isSubmitting()))},dependencies:[b,Se,v,re],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"],changeDetection:0})};function Me(o,n){if(o&1&&(l(0,"spk-option",14),m(1),s()),o&2){let t=n.$implicit;T("value",t),_(),$(t)}}function De(o,n){if(o&1&&(l(0,"spk-option",14),m(1),s()),o&2){let t=n.$implicit;T("value",t),_(),$(t)}}var Re=["Byte/s","KByte/s","MByte/s","GByte/s","TByte/s","PByte/s"],X={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ce=Object.entries(X).reduce((o,[n,t])=>(o[t]=n,o),{}),I=class o{#e=c(A);closed=k();isSubmitting=r(!1);sizeOptions=r(Re);maxUploadActive=r(!1);maxDownloadActive=r(!1);maxUpload=r(0);maxDownload=r(0);maxUploadUnit=r("MByte/s");maxDownloadUnit=r("MByte/s");ngOnInit(){this.init()}init(){this.#e.getApiV1Serversettings().subscribe({next:n=>{let t=n?.["max-upload-speed"]?.split(/(\d+)/),e=n?.["max-download-speed"]?.split(/(\d+)/),i=t[1]??"",a=e[1]??"",S=t[2]??"MB",g=e[2]??"MB",Ae=i===""?10:parseInt(i),fe=a===""?10:parseInt(a);this.maxUploadUnit.set(Ce[S]+"/s"),this.maxDownloadUnit.set(Ce[g]+"/s"),this.maxUploadActive.set(i!==""),this.maxDownloadActive.set(a!==""),this.maxUpload.set(Ae),this.maxDownload.set(fe)}})}blockDecimalKeys(n){if([".",","].includes(n.key))return n.preventDefault()}cleanupInputAfterPasting(n){n.preventDefault();let t=n.clipboardData?.getData("text/plain");if(!t)return;let e=t.replaceAll(/[\.,]/g,"");n.target.value=e}submit(){this.isSubmitting.set(!0);let n=this.maxUploadActive()?`${this.maxUpload()}${X[this.maxUploadUnit().replace("/s","")]}`:"",t=this.maxDownloadActive()?`${this.maxDownload()}${X[this.maxDownloadUnit().replace("/s","")]}`:"";this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":n,"max-download-speed":t}}).pipe(E(()=>this.isSubmitting.set(!1))).subscribe({next:e=>{this.closed.emit(!0)}})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:30,vars:14,consts:()=>{let n;n=$localize`Throttle network speed`;let t;t=$localize` Max upload speed `;let e;e=$localize` Max download speed `;let i;i=$localize` Note that speeds are entered in bytes, and line speeds are typically reported in bits. Use a factor of 8 to convert, such that an 8 mbit/s line is equivalent to 1 MByte/s. `;let a;a=$localize`Cancel`;let S;return S=$localize` Update settings `,[n,t,e,i,a,S,["header",""],["content",""],[1,"column"],[1,"field-row"],[1,"primary","raised",3,"click"],["type","number",3,"paste","keydown","ngModelChange","ngModel","disabled"],[3,"hideClearButton"],["type","text",3,"ngModelChange","ngModel"],[3,"value"],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"click"]]},template:function(t,e){t&1&&(l(0,"header",6)(1,"h3"),p(2,0),s()(),l(3,"div",7)(4,"div",8)(5,"div",9)(6,"spk-checkbox",10),u("click",function(){return e.maxUploadActive.set(!e.maxUploadActive())}),p(7,1),s(),l(8,"spk-form-field")(9,"input",11),u("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(e.maxUpload,a)||(e.maxUpload=a),a}),s()(),l(10,"spk-select",12)(11,"input",13),R("ngModelChange",function(a){return D(e.maxUploadUnit,a)||(e.maxUploadUnit=a),a}),s(),P(12,Me,2,2,"spk-option",14,f),s()(),l(14,"div",9)(15,"spk-checkbox",10),u("click",function(){return e.maxDownloadActive.set(!e.maxDownloadActive())}),p(16,2),s(),l(17,"spk-form-field")(18,"input",11),u("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),R("ngModelChange",function(a){return D(e.maxDownload,a)||(e.maxDownload=a),a}),s()(),l(19,"spk-select",12)(20,"input",13),R("ngModelChange",function(a){return D(e.maxDownloadUnit,a)||(e.maxDownloadUnit=a),a}),s(),P(21,De,2,2,"spk-option",14,f),s()(),l(23,"p"),p(24,3),s()()(),l(25,"footer",15)(26,"button",16),u("click",function(){return e.closed.emit(!1)}),p(27,4),s(),l(28,"button",17),u("click",function(){return e.submit()}),p(29,5),s()()),t&2&&(_(6),d("active",e.maxUploadActive()),_(3),M("ngModel",e.maxUpload),T("disabled",!e.maxUploadActive()),_(),T("hideClearButton",!0),_(),M("ngModel",e.maxUploadUnit),_(),N(e.sizeOptions()),_(3),d("active",e.maxDownloadActive()),_(3),M("ngModel",e.maxDownload),T("disabled",!e.maxDownloadActive()),_(),T("hideClearButton",!0),_(),M("ngModel",e.maxDownloadUnit),_(),N(e.sizeOptions()),_(7),d("loader",e.isSubmitting()))},dependencies:[b,oe,le,ae,se,me,Te,ce,v],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;width:100%}"],changeDetection:0})};function Ie(o,n){if(o&1&&(l(0,"div"),m(1),s(),h(2,"spk-progress-bar",8)),o&2){let t=O();_(),J("",t.statusData().actionText," - ",t.statusData().statusText,""),_(),T("value",t.statusData().progress*100)}}function ke(o,n){if(o&1&&(l(0,"div",5),m(1),x(2,"appRelativeTime"),x(3,"date"),s()),o&2){let t,e=O();_(),Y(" ",(t=e.nextBackup().backup)==null||t.Backup==null?null:t.Backup.Name," - ",Q(2,3,e.nextBackup().time)," at ",ee(3,5,e.nextBackup().time,"shortTime")," ")}}function he(o,n){o&1&&(l(0,"div",5),p(1,1),s())}function Fe(o,n){o&1&&(l(0,"div",5),p(1,2),s())}function ye(o,n){o&1&&(F(0,0,1),h(1,"spk-icon"),y())}function be(o,n){o&1&&(F(0,0,2),h(1,"spk-icon"),y())}var Oe=new Date,H=class o{#e=c(A);#t=c(ie);#n=c(pe);#i=c(ne);minsAgo=Oe.setMinutes(Oe.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;isRunning=w(()=>this.serverState()?.ProgramState==="Running");isResuming=r(!1);nextBackup=w(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));openThrottleSettingsDialog(){this.#n.open(I,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(B,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.isRunning()){this.openPauseDialog();return}this.isResuming.set(!0),this.#e.postApiV1ServerstateResume().pipe(E(()=>this.isResuming.set(!1))).subscribe()}ngAfterViewInit(){let n=this.#i.relayIsEnabled()?"longpoll":"websocket";this.#t.setConnectionMethod(n)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=C({type:o,selectors:[["app-status-bar"]],decls:14,vars:4,consts:()=>{let n;n=$localize`${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Pause ${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Start ${"\uFFFD/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,n=q(n);let t;t=$localize`No scheduled tasks`;let e;return e=$localize`Loading...`,[n,t,e,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"current-backup-actions"],["spk-button","",3,"click"],[1,"raised","primary",3,"value"]]},template:function(t,e){if(t&1&&(l(0,"div",3)(1,"div",4),G(2,Ie,3,3)(3,ke,4,8,"div",5)(4,he,2,0,"div",5)(5,Fe,2,0,"div",5),s(),l(6,"div",6)(7,"button",7),u("click",function(){return e.pauseResume()}),F(8,0),G(9,ye,2,0)(10,be,2,0),y(),s(),l(11,"button",7),u("click",function(){return e.openThrottleSettingsDialog()}),l(12,"spk-icon"),m(13,"speedometer"),s()()()()),t&2){let i;_(2),U((i=e.serverState())!=null&&i.ActiveTask&&(!((i=e.statusData())==null||i.task==null)&&i.task.Status)&&((i=e.statusData())==null||i.task==null?null:i.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:(i=e.serverState())!=null&&i.ActiveTask?5:4),_(5),d("loader",e.isResuming()),_(2),U(e.isRunning()?9:10)}},dependencies:[de,L,te,_e,ue],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-level-40)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{H as a};
package/chunk-FUH4327W.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-TZYGTULV.js";import"./chunk-DURFGYD7.js";import"./chunk-BRMUJELY.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-XKAASYKO.js";import"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as createEncryptionForm,b as default};
package/chunk-H2DNOMMP.js DELETED
@@ -1 +0,0 @@
1
- import{i as a,j as b}from"./chunk-MEFACGK4.js";import"./chunk-DURFGYD7.js";import"./chunk-BRMUJELY.js";import"./chunk-DNHLTHLR.js";import"./chunk-PNJEVGID.js";import"./chunk-YOP6HOXH.js";import"./chunk-RTVM3BJK.js";import"./chunk-XKAASYKO.js";import"./chunk-PPRHD3ZV.js";import"./chunk-LJ3ULEOG.js";import"./chunk-C5EHOW7U.js";import"./chunk-6KER52JR.js";import"./chunk-MCLDJCPW.js";import"./chunk-7IRVNC4S.js";import"./chunk-2M52SFS6.js";import"./chunk-C6Q5SG76.js";export{a as createOptionsForm,b as default};
package/chunk-LJ3ULEOG.js DELETED
@@ -1 +0,0 @@
1
- import{b as xr}from"./chunk-C5EHOW7U.js";import{j as vt,n as _e}from"./chunk-7IRVNC4S.js";import{$ as je,$b as Or,B as ut,Bc as gt,C as ee,Db as Dr,E as Pe,F as H,Fc as Le,G as ct,H as or,J as sr,Jc as ke,L as ar,M as x,N as ur,O as S,P as w,Qa as vr,Qc as Er,S as b,Tb as Mr,U as cr,V as P,Va as pt,W as lt,Wa as j,X as ht,Xa as mr,Y as g,Z as lr,a as er,aa as _,ac as Tr,bb as yr,bc as Ur,c as tr,ca as Ne,db as Rr,e as it,eb as Sr,f as ot,g as V,ga as dt,gb as $e,h as M,ha as hr,ia as dr,j as k,ja as fr,k as O,ka as pr,kb as Cr,l as d,la as te,lb as wr,m as de,n as rr,nb as br,o as nr,ob as Ir,p as m,q as xe,qa as gr,r as T,ra as ft,rb as Ar,s as st,t as ir,u as at,w as X,y as J,z as fe}from"./chunk-2M52SFS6.js";import{a as l,b as I}from"./chunk-C6Q5SG76.js";var p="primary",Oe=Symbol("RouteTitle"),Ct=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Ct(t)}function yn(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let o=0;o<n.length;o++){let s=n[o],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Rn(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!L(t[e],r[e]))return!1;return!0}function L(t,r){let e=t?wt(t):void 0,n=r?wt(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!qr(t[i],r[i]))return!1;return!0}function wt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function qr(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Br(t){return t.length>0?t[t.length-1]:null}function W(t){return rr(t)?t:wr(t)?O(Promise.resolve(t)):d(t)}var Sn={exact:Hr,subset:Wr},Vr={exact:Cn,subset:wn,ignored:()=>!0};function Pr(t,r,e){return Sn[e.paths](t.root,r.root,e.matrixParams)&&Vr[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Cn(t,r){return L(t,r)}function Hr(t,r,e){if(!Q(t.segments,r.segments)||!qe(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Hr(t.children[n],r.children[n],e))return!1;return!0}function wn(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>qr(t[e],r[e]))}function Wr(t,r,e){return Gr(t,r,r.segments,e)}function Gr(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!Q(i,e)||r.hasChildren()||!qe(i,e,n))}else if(t.segments.length===e.length){if(!Q(t.segments,e)||!qe(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Wr(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!Q(t.segments,i)||!qe(t.segments,i,n)||!t.children[p]?!1:Gr(t.children[p],r,o,n)}}function qe(t,r,e){return r.every((n,i)=>Vr[e](t[i].parameters,n.parameters))}var F=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return An.serialize(this)}},v=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Be(this)}},G=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return Kr(this)}};function bn(t,r){return Q(t,r)&&t.every((e,n)=>L(e.parameters,r[n].parameters))}function Q(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function In(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Qt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>new Re,providedIn:"root"})}return t})(),Re=class{parse(r){let e=new It(r);return new F(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${pe(r.root,!0)}`,n=On(r.queryParams),i=typeof r.fragment=="string"?`#${Dn(r.fragment)}`:"";return`${e}${n}${i}`}},An=new Re;function Be(t){return t.segments.map(r=>Kr(r)).join("/")}function pe(t,r){if(!t.hasChildren())return Be(t);if(r){let e=t.children[p]?pe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${pe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=In(t,(n,i)=>i===p?[pe(t.children[p],!1)]:[`${i}:${pe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Be(t)}/${e[0]}`:`${Be(t)}/(${e.join("//")})`}}function Qr(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ze(t){return Qr(t).replace(/%3B/gi,";")}function Dn(t){return encodeURI(t)}function bt(t){return Qr(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ve(t){return decodeURIComponent(t)}function jr(t){return Ve(t.replace(/\+/g,"%20"))}function Kr(t){return`${bt(t.path)}${Mn(t.parameters)}`}function Mn(t){return Object.entries(t).map(([r,e])=>`;${bt(r)}=${bt(e)}`).join("")}function On(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${ze(e)}=${ze(i)}`).join("&"):`${ze(e)}=${ze(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Tn=/^[^\/()?;#]+/;function mt(t){let r=t.match(Tn);return r?r[0]:""}var Un=/^[^\/()?;=#]+/;function En(t){let r=t.match(Un);return r?r[0]:""}var xn=/^[^=?&#]+/;function Pn(t){let r=t.match(xn);return r?r[0]:""}var jn=/^[^&#]+/;function Nn(t){let r=t.match(jn);return r?r[0]:""}var It=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[p]=new v(r,e)),n}parseSegment(){let r=mt(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(r),new G(Ve(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=En(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=mt(this.remaining);i&&(n=i,this.capture(n))}r[Ve(e)]=Ve(n)}parseQueryParam(r){let e=Pn(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=Nn(this.remaining);s&&(n=s,this.capture(n))}let i=jr(e),o=jr(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=mt(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new w(4011,!1)}};function Zr(t){return t.segments.length>0?new v([],{[p]:t}):t}function Yr(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Yr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))r[s]=u;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new v(t.segments,r);return $n(e)}function $n(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new v(t.segments.concat(r.segments),r.children)}return t}function K(t){return t instanceof F}function Ln(t,r,e=null,n=null){let i=Xr(t);return Jr(i,r,e,n)}function Xr(t){let r;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new v(o.url,s);return o===t&&(r=u),u}let n=e(t.root),i=Zr(n);return r??i}function Jr(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return yt(i,i,i,e,n);let o=kn(r);if(o.toRoot())return yt(i,i,new v([],{}),e,n);let s=_n(o,i,t),u=s.processChildren?ve(s.segmentGroup,s.index,o.commands):tn(s.segmentGroup,s.index,o.commands);return yt(i,s.segmentGroup,u,e,n)}function He(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Se(t){return typeof t=="object"&&t!=null&&t.outlets}function yt(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(h=>`${h}`):`${c}`});let s;t===r?s=e:s=en(t,r,e);let u=Zr(Yr(s));return new F(u,o,i)}function en(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=en(o,r,e)}),new v(t.segments,n)}var We=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&He(n[0]))throw new w(4003,!1);let i=n.find(Se);if(i&&i!==Br(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kn(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new We(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?r++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new We(e,r,n)}var ie=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function _n(t,r,e){if(t.isAbsolute)return new ie(r,!0,0);if(!e)return new ie(r,!1,NaN);if(e.parent===null)return new ie(e,!0,0);let n=He(t.commands[0])?0:1,i=e.segments.length-1+n;return zn(e,i,t.numberOfDoubleDots)}function zn(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new ie(n,!1,i-o)}function Fn(t){return Se(t[0])?t[0].outlets:{[p]:t}}function tn(t,r,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return ve(t,r,e);let n=qn(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(t.segments.slice(n.pathIndex),t.children),ve(o,0,i)}else return n.match&&i.length===0?new v(t.segments,{}):n.match&&!t.hasChildren()?At(t,r,e):n.match?ve(t,0,i):At(t,r,e)}function ve(t,r,e){if(e.length===0)return new v(t.segments,{});{let n=Fn(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ve(t.children[p],r,e);return new v(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=tn(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function qn(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],u=e[n];if(Se(u))break;let a=`${u}`,c=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!$r(a,c,s))return o;n+=2}else{if(!$r(a,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function At(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(Se(o)){let a=Bn(o.outlets);return new v(n,a)}if(i===0&&He(e[0])){let a=t.segments[r];n.push(new G(a.path,Nr(e[0]))),i++;continue}let s=Se(o)?o.outlets[p]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&He(u)?(n.push(new G(s,Nr(u))),i+=2):(n.push(new G(s,{})),i++)}return new v(n,{})}function Bn(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=At(new v([],{}),0,n))}),r}function Nr(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function $r(t,r,e){return t==e.path&&L(r,e.parameters)}var me="imperative",R=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(R||{}),U=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ce=class extends U{type=R.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},q=class extends U{urlAfterRedirects;type=R.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},D=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(D||{}),Dt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Dt||{}),z=class extends U{reason;code;type=R.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Z=class extends U{reason;code;type=R.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},we=class extends U{error;target;type=R.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ge=class extends U{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mt=class extends U{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ot=class extends U{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Tt=class extends U{urlAfterRedirects;state;type=R.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ut=class extends U{urlAfterRedirects;state;type=R.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Et=class{route;type=R.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},xt=class{route;type=R.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Pt=class{snapshot;type=R.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jt=class{snapshot;type=R.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nt=class{snapshot;type=R.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$t=class{snapshot;type=R.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var be=class{},ue=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function Vn(t,r){return t.providers&&!t._injector&&(t._injector=Rr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function N(t){return t.outlet||p}function Hn(t,r){let e=t.filter(n=>N(n)===r);return e.push(...t.filter(n=>N(n)!==r)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Lt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new et(this.rootInjector)}},et=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Lt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ht(je))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qe=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=kt(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=kt(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=_t(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return _t(r,this._root).map(e=>e.value)}};function kt(t,r){if(t===r.value)return r;for(let e of r.children){let n=kt(t,e);if(n)return n}return null}function _t(t,r){if(t===r.value)return[r];for(let e of r.children){let n=_t(t,e);if(n.length)return n.unshift(r),n}return[]}var A=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ne(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var Ke=class extends Qe{snapshot;constructor(r,e){super(r),this.snapshot=e,Kt(this,r)}toString(){return this.snapshot.toString()}};function rn(t){let r=Wn(t),e=new M([new G("",{})]),n=new M({}),i=new M({}),o=new M({}),s=new M(""),u=new Y(e,n,o,s,i,p,t,r.root);return u.snapshot=r.root,new Ke(new A(u,[]),r)}function Wn(t){let r={},e={},n={},i="",o=new oe([],r,n,i,e,p,t,null,{});return new Ye("",new A(o,[]))}var Y=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,u,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(m(c=>c[Oe]))??d(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(m(r=>ae(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(m(r=>ae(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ze(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:l(l({},r.params),t.params),data:l(l({},r.data),t.data),resolve:l(l(l(l({},t.data),r.data),i?.data),t._resolvedData)}:n={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&on(i)&&(n.resolve[Oe]=i.title),n}var oe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(r,e,n,i,o,s,u,a,c){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Ye=class extends Qe{url;constructor(r,e){super(e),this.url=r,Kt(this,e)}toString(){return nn(this._root)}};function Kt(t,r){r.value._routerState=t,r.children.forEach(e=>Kt(t,e))}function nn(t){let r=t.children.length>0?` { ${t.children.map(nn).join(", ")} } `:"";return`${t.value}${r}`}function Rt(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,L(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),L(r.params,e.params)||t.paramsSubject.next(e.params),Rn(r.url,e.url)||t.urlSubject.next(e.url),L(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function zt(t,r){let e=L(t.params,r.params)&&bn(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||zt(t.parent,r.parent))}function on(t){return typeof t.title=="string"||t.title===null}var Gn=new P(""),Qn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new te;deactivateEvents=new te;attachEvents=new te;detachEvents=new te;routerOutletData=gr(void 0);parentContexts=g(et);location=g(mr);changeDetector=g(Le);inputBinder=g(tt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new Ft(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ne]})}return t})(),Ft=class t{route;childContexts;parent;outletData;__ngOutletInjector(r){return new t(this.route,this.childContexts,r,this.outletData)}constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===Y?this.route:r===et?this.childContexts:r===Gn?this.outletData:this.parent.get(r,e)}},tt=new P(""),Lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=xe([n.queryParams,n.params,n.data]).pipe(x(([o,s,u],a)=>(u=l(l(l({},o),s),u),a===0?d(u):Promise.resolve(u)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let s=Er(n.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:u}of s.inputs)e.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();function Kn(t,r,e){let n=Ie(t,r._root,e?e._root:void 0);return new Ke(n,r)}function Ie(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Zn(t,r,e);return new A(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(u=>Ie(t,u)),s}}let n=Yn(r.value),i=r.children.map(o=>Ie(t,o));return new A(n,i)}}function Zn(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ie(t,n,i);return Ie(t,n)})}function Yn(t){return new Y(new M(t.url),new M(t.params),new M(t.queryParams),new M(t.fragment),new M(t.data),t.outlet,t.component,t)}var Ae=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},sn="ngNavigationCancelingError";function Xe(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=K(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=an(!1,D.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function an(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[sn]=!0,e.cancellationCode=r,e}function Xn(t){return un(t)&&K(t.url)}function un(t){return!!t&&t[sn]}var Jn=(t,r,e,n)=>m(i=>(new qt(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),qt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Rt(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),u=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:u})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ne(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new $t(o.value.snapshot))}),r.children.length&&this.forwardEvent(new jt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Rt(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Rt(u.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Je=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},se=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ei(t,r,e){let n=t._root,i=r?r._root:null;return ge(n,i,e,[n.value])}function ti(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function le(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!cr(t)?t:r.get(t):n}function ge(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ne(r);return t.children.forEach(s=>{ri(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>ye(u,e.getContext(s),i)),i}function ri(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=ni(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Je(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ge(t,r,u?u.children:null,n,i):ge(t,r,e,n,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new se(u.outlet.component,s))}else s&&ye(r,u,i),i.canActivateChecks.push(new Je(n)),o.component?ge(t,null,u?u.children:null,n,i):ge(t,null,e,n,i);return i}function ni(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!Q(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Q(t.url,r.url)||!L(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zt(t,r)||!L(t.queryParams,r.queryParams);case"paramsChange":default:return!zt(t,r)}}function ye(t,r,e){let n=ne(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?ye(s,r.children.getContext(o),e):ye(s,null,e):ye(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new se(r.outlet.component,i)):e.canDeactivateChecks.push(new se(null,i)):e.canDeactivateChecks.push(new se(null,i))}function Ue(t){return typeof t=="function"}function ii(t){return typeof t=="boolean"}function oi(t){return t&&Ue(t.canLoad)}function si(t){return t&&Ue(t.canActivate)}function ai(t){return t&&Ue(t.canActivateChild)}function ui(t){return t&&Ue(t.canDeactivate)}function ci(t){return t&&Ue(t.canMatch)}function cn(t){return t instanceof nr||t?.name==="EmptyError"}var Fe=Symbol("INITIAL_VALUE");function ce(){return x(t=>xe(t.map(r=>r.pipe(ee(1),ar(Fe)))).pipe(m(r=>{for(let e of r)if(e!==!0){if(e===Fe)return Fe;if(e===!1||li(e))return e}return!0}),X(r=>r!==Fe),ee(1)))}function li(t){return K(t)||t instanceof Ae}function hi(t,r){return T(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?d(I(l({},e),{guardsResult:!0})):di(s,n,i,t).pipe(T(u=>u&&ii(u)?fi(n,o,t,r):d(u)),m(u=>I(l({},e),{guardsResult:u})))})}function di(t,r,e,n){return O(t).pipe(T(i=>yi(i.component,i.route,e,r,n)),H(i=>i!==!0,!0))}function fi(t,r,e,n){return O(r).pipe(fe(i=>ir(gi(i.route.parent,n),pi(i.route,n),mi(t,i.path,e),vi(t,i.route,e))),H(i=>i!==!0,!0))}function pi(t,r){return t!==null&&r&&r(new Nt(t)),d(!0)}function gi(t,r){return t!==null&&r&&r(new Pt(t)),d(!0)}function vi(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return d(!0);let i=n.map(o=>at(()=>{let s=Te(r)??e,u=le(o,s),a=si(u)?u.canActivate(r,t):_(s,()=>u(r,t));return W(a).pipe(H())}));return d(i).pipe(ce())}function mi(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>ti(s)).filter(s=>s!==null).map(s=>at(()=>{let u=s.guards.map(a=>{let c=Te(s.node)??e,h=le(a,c),f=ai(h)?h.canActivateChild(n,t):_(c,()=>h(n,t));return W(f).pipe(H())});return d(u).pipe(ce())}));return d(o).pipe(ce())}function yi(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return d(!0);let s=o.map(u=>{let a=Te(r)??i,c=le(u,a),h=ui(c)?c.canDeactivate(t,r,e,n):_(a,()=>c(t,r,e,n));return W(h).pipe(H())});return d(s).pipe(ce())}function Ri(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=oi(u)?u.canLoad(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}function ln(t){return tr(S(r=>{if(typeof r!="boolean")throw Xe(t,r)}),m(r=>r===!0))}function Si(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return d(!0);let o=i.map(s=>{let u=le(s,t),a=ci(u)?u.canMatch(r,e):_(t,()=>u(r,e));return W(a)});return d(o).pipe(ce(),ln(n))}var De=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},Me=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function re(t){return de(new De(t))}function Ci(t){return de(new w(4e3,!1))}function wi(t){return de(an(!1,D.GuardRejected))}var Bt=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return d(n);if(i.numberOfChildren>1||!i.children[p])return Ci(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,params:$,data:C,title:B}=i,E=_(o,()=>u({params:$,data:C,queryParams:a,fragment:c,routeConfig:h,url:f,outlet:y,title:B}));if(E instanceof F)throw new Me(E);e=E}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new Me(s);return s}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new F(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);n[i]=e[u]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(r,a,n,i)}),new v(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},Vt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function bi(t,r,e,n,i){let o=hn(t,r,e);return o.matched?(n=Vn(r,n),Si(n,r,e,i).pipe(m(s=>s===!0?o:l({},Vt)))):d(o)}function hn(t,r,e){if(r.path==="**")return Ii(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Vt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||yn)(e,t,r);if(!i)return l({},Vt);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ii(t){return{matched:!0,parameters:t.length>0?Br(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function kr(t,r,e,n){return e.length>0&&Mi(t,e,n)?{segmentGroup:new v(r,Di(n,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Oi(t,e,n)?{segmentGroup:new v(t.segments,Ai(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Ai(t,r,e,n){let i={};for(let o of e)if(rt(t,r,o)&&!n[N(o)]){let s=new v([],{});i[N(o)]=s}return l(l({},n),i)}function Di(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&N(n)!==p){let i=new v([],{});e[N(n)]=i}return e}function Mi(t,r,e){return e.some(n=>rt(t,r,n)&&N(n)!==p)}function Oi(t,r,e){return e.some(n=>rt(t,r,n))}function rt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Ti(t,r,e){return r.length===0&&!t.children[e]}var Ht=class{};function Ui(t,r,e,n,i,o,s="emptyOnly"){return new Wt(t,r,e,n,i,s,o).recognize()}var Ei=31,Wt=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,u){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.applyRedirects=new Bt(this.urlSerializer,this.urlTree)}noMatchError(r){return new w(4002,`'${r.segmentGroup}'`)}recognize(){let r=kr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(m(({children:e,rootSnapshot:n})=>{let i=new A(n,e),o=new Ye("",i),s=Ln(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new oe([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(m(n=>({children:n,rootSnapshot:e})),J(n=>{if(n instanceof Me)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof De?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(m(s=>s instanceof A?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return O(o).pipe(fe(s=>{let u=n.children[s],a=Hn(e,s);return this.processSegmentGroup(r,a,u,s,i)}),sr((s,u)=>(s.push(...u),s)),ut(null),or(),T(s=>{if(s===null)return re(n);let u=dn(s);return xi(u),d(u)}))}processSegment(r,e,n,i,o,s,u){return O(e).pipe(fe(a=>this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,o,s,u).pipe(J(c=>{if(c instanceof De)return d(null);throw c}))),H(a=>!!a),J(a=>{if(cn(a))return Ti(n,i,o)?d(new Ht):re(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,o,s,u,a){return N(n)!==s&&(s===p||!rt(i,o,n))?re(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,a):this.allowRedirects&&u?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,a):re(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,u){let{matched:a,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:y}=hn(e,i,o);if(!a)return re(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ei&&(this.allowRedirects=!1));let $=new oe(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(i),N(i),i.component??i._loadedComponent??null,i,zr(i)),C=Ze($,u,this.paramsInheritanceStrategy);$.params=Object.freeze(C.params),$.data=Object.freeze(C.data);let B=this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,$,r);return this.applyRedirects.lineralizeSegments(i,B).pipe(T(E=>this.processSegment(r,n,e,E.concat(y),s,!1,u)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let u=bi(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),u.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:c})=>{let h=n._loadedInjector??r,{parameters:f,consumedSegments:y,remainingSegments:$}=a,C=new oe(y,f,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,_r(n),N(n),n.component??n._loadedComponent??null,n,zr(n)),B=Ze(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(B.params),C.data=Object.freeze(B.data);let{segmentGroup:E,slicedSegments:he}=kr(e,y,$,c);if(he.length===0&&E.hasChildren())return this.processChildren(h,c,E,C).pipe(m(Ee=>new A(C,Ee)));if(c.length===0&&he.length===0)return d(new A(C,[]));let mn=N(n)===o;return this.processSegment(h,c,E,he,mn?p:o,!0,C).pipe(m(Ee=>new A(C,Ee instanceof A?[Ee]:[])))}))):re(e)))}getChildConfig(r,e,n){return e.children?d({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?d({routes:e._loadedRoutes,injector:e._loadedInjector}):Ri(r,e,n,this.urlSerializer).pipe(T(i=>i?this.configLoader.loadChildren(r,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):wi(e))):d({routes:[],injector:r})}};function xi(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Pi(t){let r=t.value.routeConfig;return r&&r.path===""}function dn(t){let r=[],e=new Set;for(let n of t){if(!Pi(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=dn(n.children);r.push(new A(n.value,i))}return r.filter(n=>!e.has(n))}function _r(t){return t.data||{}}function zr(t){return t.resolve||{}}function ji(t,r,e,n,i,o){return T(s=>Ui(t,r,e,n,s.extractedUrl,i,o).pipe(m(({state:u,tree:a})=>I(l({},s),{targetSnapshot:u,urlAfterRedirects:a}))))}function Ni(t,r){return T(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return d(e);let o=new Set(i.map(a=>a.route)),s=new Set;for(let a of o)if(!s.has(a))for(let c of fn(a))s.add(c);let u=0;return O(s).pipe(fe(a=>o.has(a)?$i(a,n,t,r):(a.data=Ze(a,a.parent,t).resolve,d(void 0))),S(()=>u++),ct(1),T(a=>u===s.size?d(e):k))})}function fn(t){let r=t.children.map(e=>fn(e)).flat();return[t,...r]}function $i(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!on(i)&&(o[Oe]=i.title),Li(o,t,r,n).pipe(m(s=>(t._resolvedData=s,t.data=Ze(t,t.parent,e).resolve,null)))}function Li(t,r,e,n){let i=wt(t);if(i.length===0)return d({});let o={};return O(i).pipe(T(s=>ki(t[s],r,e,n).pipe(H(),S(u=>{if(u instanceof Ae)throw Xe(new Re,u);o[s]=u}))),ct(1),m(()=>o),J(s=>cn(s)?k:de(s)))}function ki(t,r,e,n){let i=Te(r)??n,o=le(t,i),s=o.resolve?o.resolve(r,e):_(i,()=>o(r,e));return W(s)}function St(t){return x(r=>{let e=t(r);return e?O(e).pipe(m(()=>r)):d(r)})}var pn=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Oe]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(_i),providedIn:"root"})}return t})(),_i=(()=>{class t extends pn{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(ht(xr))};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zt=new P("",{providedIn:"root",factory:()=>({})}),zi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Sr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Dr(0,"router-outlet")},dependencies:[Qn],encapsulation:2})}return t})();function Yt(t){let r=t.children&&t.children.map(Yt),e=r?I(l({},t),{children:r}):l({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=zi),e}var Xt=new P(""),Fi=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(gt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return d(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=W(e.loadComponent()).pipe(m(gn),S(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Pe(()=>{this.componentLoaders.delete(e)})),i=new ot(n,()=>new V).pipe(it());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return d({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=qi(n,this.compiler,e,this.onLoadEndListener).pipe(Pe(()=>{this.childrenLoaders.delete(n)})),s=new ot(o,()=>new V).pipe(it());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qi(t,r,e,n){return W(t.loadChildren()).pipe(m(gn),T(i=>i instanceof yr||Array.isArray(i)?d(i):O(r.compileModuleAsync(i))),m(i=>{n&&n(t);let o,s,u=!1;return Array.isArray(i)?(s=i,u=!0):(o=i.create(e).injector,s=o.get(Xt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yt),injector:o}}))}function Bi(t){return t&&typeof t=="object"&&"default"in t}function gn(t){return Bi(t)?t.default:t}var Jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Vi),providedIn:"root"})}return t})(),Vi=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hi=new P("");var Wi=new P(""),Gi=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new V;transitionAbortSubject=new V;configLoader=g(Fi);environmentInjector=g(je);destroyRef=g(fr);urlSerializer=g(Qt);rootContexts=g(et);location=g(_e);inputBindingEnabled=g(tt,{optional:!0})!==null;titleStrategy=g(pn);options=g(Zt,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(Jt);createViewTransition=g(Hi,{optional:!0});navigationErrorHandler=g(Wi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>d(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new Et(i)),n=i=>this.events.next(new xt(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(I(l(l({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new M({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:me,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(X(o=>o.id!==0),m(o=>I(l({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{let s=!1,u=!1;return d(o).pipe(x(a=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),k;this.currentTransition=o,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?I(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&h!=="reload"){let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.rawUrl),f,Dt.IgnoredSameUrlNavigation)),a.resolve(!1),k}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return d(a).pipe(x(f=>{let y=this.transitions?.getValue();return this.events.next(new Ce(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),y!==this.transitions?.getValue()?k:Promise.resolve(f)}),ji(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=I(l({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let y=new Ge(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(y)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:y,source:$,restoredState:C,extras:B}=a,E=new Ce(f,this.urlSerializer.serialize(y),$,C);this.events.next(E);let he=rn(this.rootComponentType).snapshot;return this.currentTransition=o=I(l({},a),{targetSnapshot:he,urlAfterRedirects:y,extras:I(l({},B),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,d(o)}else{let f="";return this.events.next(new Z(a.id,this.urlSerializer.serialize(a.extractedUrl),f,Dt.IgnoredByUrlHandlingStrategy)),a.resolve(!1),k}}),S(a=>{let c=new Mt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),m(a=>(this.currentTransition=o=I(l({},a),{guards:ei(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),o)),hi(this.environmentInjector,a=>this.events.next(a)),S(a=>{if(o.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Xe(this.urlSerializer,a.guardsResult);let c=new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(c)}),X(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",D.GuardRejected),!1)),St(a=>{if(a.guards.canActivateChecks.length)return d(a).pipe(S(c=>{let h=new Tt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}),x(c=>{let h=!1;return d(c).pipe(Ni(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>h=!0,complete:()=>{h||this.cancelNavigationTransition(c,"",D.NoDataFromResolver)}}))}),S(c=>{let h=new Ut(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(h)}))}),St(a=>{let c=h=>{let f=[];h.routeConfig?.loadComponent&&!h.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(h.routeConfig).pipe(S(y=>{h.component=y}),m(()=>{})));for(let y of h.children)f.push(...c(y));return f};return xe(c(a.targetSnapshot.root)).pipe(ut(null),ee(1))}),St(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:c}=o,h=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return h?O(h).pipe(m(()=>o)):d(o)}),m(a=>{let c=Kn(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=o=I(l({},a),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),S(()=>{this.events.next(new be)}),Jn(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),ee(1),S({next:a=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{s=!0}}),ur(this.transitionAbortSubject.pipe(S(a=>{throw a}))),Pe(()=>{!s&&!u&&this.cancelNavigationTransition(o,"",D.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),J(a=>{if(this.destroyed)return o.resolve(!1),k;if(u=!0,un(a))this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),a.message,a.cancellationCode)),Xn(a)?this.events.next(new ue(a.url,a.navigationBehaviorOptions)):o.resolve(!1);else{let c=new we(o.id,this.urlSerializer.serialize(o.extractedUrl),a,o.targetSnapshot??void 0);try{let h=_(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(h instanceof Ae){let{message:f,cancellationCode:y}=Xe(this.urlSerializer,h);this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),f,y)),this.events.next(new ue(h.redirectTo,h.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(h){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(h)}}return k}))}))}cancelNavigationTransition(e,n,i){let o=new z(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Qi(t){return t!==me}var Ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Zi),providedIn:"root"})}return t})(),Gt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},Zi=(()=>{class t extends Gt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:()=>g(Yi),providedIn:"root"})}return t})(),Yi=(()=>{class t extends vn{location=g(_e);urlSerializer=g(Qt);options=g(Zt,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=g(Jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new F;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=rn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof Ce)this.stateMemento=this.createStateMemento();else if(e instanceof Z)this.rawUrlTree=n.initialUrl;else if(e instanceof Ge){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else e instanceof be?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof z&&(e.code===D.GuardRejected||e.code===D.NoDataFromResolver)?this.restoreHistory(n):e instanceof we?this.restoreHistory(n,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof F?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let o=this.browserPageId,s=l(l({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(i,"",s)}else{let o=l(l({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=dt(t)))(i||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xi(t,r){t.events.pipe(X(e=>e instanceof q||e instanceof z||e instanceof we||e instanceof Z),m(e=>e instanceof q||e instanceof Z?0:(e instanceof z?e.code===D.Redirect||e.code===D.SupersededByNewNavigation:!1)?2:1),X(e=>e!==2),ee(1)).subscribe(()=>{r()})}var Ji={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},nt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(Cr);stateManager=g(vn);options=g(Zt,{optional:!0})||{};pendingTasks=g(pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Gi);urlSerializer=g(Qt);location=g(_e);urlHandlingStrategy=g(Jt);_events=new V;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(Ki);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(Xt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(tt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new er;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof z&&n.code!==D.Redirect&&n.code!==D.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof q)this.navigated=!0;else if(n instanceof ue){let s=n.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Qi(i.source)},s);this.scheduleNavigation(u,me,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ro(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),me,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let a=l({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(o.state=a)}let u=this.parseUrl(e);this.scheduleNavigation(u,n,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Yt),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=n,c=a?this.currentUrlTree.fragment:s,h=null;switch(u??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let y=i?i.snapshot:this.routerState.snapshot.root;f=Xr(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Jr(f,e,h,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=K(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,me,null,n)}navigate(e,n={skipLocationChange:!1}){return to(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=l({},Ji):n===!1?i=l({},eo):i=n,K(e))return Pr(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Pr(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((f,y)=>{u=f,a=y});let h=this.pendingTasks.add();return Xi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function to(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new w(4008,!1)}function ro(t){return!(t instanceof be)&&!(t instanceof ue)}var Fr=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new V;constructor(e,n,i,o,s,u){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof q&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(K(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let u=this.urlTree;if(u===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:vr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:K(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(j(nt),j(Y),hr("tabindex"),j(pt),j(ft),j(vt))};static \u0275dir=$e({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Mr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Ar("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ke],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ke],replaceUrl:[2,"replaceUrl","replaceUrl",ke],routerLink:"routerLink"},features:[Ne]})}return t})(),Go=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new te;constructor(e,n,i,o,s){this.router=e,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(u=>{u instanceof q&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(st()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(e).pipe(st()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=no(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(j(nt),j(ft),j(pt),j(Le),j(Fr,8))};static \u0275dir=$e({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&Or(o,Fr,5),n&2){let s;Tr(s=Ur())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ne]})}return t})();function no(t){return!!t.paths}var io=new P("");function Qo(t,...r){return lr([{provide:Xt,multi:!0,useValue:t},[],{provide:Y,useFactory:oo,deps:[nt]},{provide:br,multi:!0,useFactory:ao},r.map(e=>e.\u0275providers)])}function oo(t){return t.routerState.root}function so(t,r){return{\u0275kind:t,\u0275providers:r}}function ao(){let t=g(dr);return r=>{let e=t.get(Ir);if(r!==e.components[0])return;let n=t.get(nt),i=t.get(uo);t.get(co)===1&&n.initialNavigation(),t.get(lo,null,lt.Optional)?.setUpPreloading(),t.get(io,null,lt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var uo=new P("",{factory:()=>new V}),co=new P("",{providedIn:"root",factory:()=>1});var lo=new P("");function Ko(){return so(8,[Lr,{provide:tt,useExisting:Lr}])}export{Y as a,Qn as b,nt as c,Fr as d,Go as e,Qo as f,Ko as g};
package/chunk-MADB4EX7.js DELETED
@@ -1 +0,0 @@
1
- import{b as A}from"./chunk-PPRHD3ZV.js";import{c as I}from"./chunk-LJ3ULEOG.js";import{a as y,c as k}from"./chunk-MCLDJCPW.js";import{C as o,E as m,O as l,S as a,Y as r,d as p,i as h,l as u,p as g,ua as i,y as d}from"./chunk-2M52SFS6.js";var c=class s{#i=i(null);#n=window.self!==window.top;#e=i(this.#n);relayIsEnabled=this.#e.asReadonly();config=this.#i.asReadonly();configLoaded=this.#n?new h:null;isLoading=i(this.#n);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#t(),this.#n&&(this.#e.set(!0),this.parentIframeListner=new AbortController,this.#s("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let t=e.data.replace("access:",""),n=JSON.parse(t);if(!n?.accessToken||!n?.clientId){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.clientId!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.accessToken!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}console.info("postMessage config set"),this.#i.set(n),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#s("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#s(e){window.parent.postMessage(e,"*")}#t(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#i.set(e)}clearConfig(){this.#i.set(null)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};var f="PROXY_AUTHED_FAKE_TOKEN",b=class s{#i=r(I);#n=r(k);#e=r(A);#s=r(c);#t=i(null);#r=i(!1);token=this.#t.asReadonly();isLoggingOut=this.#r.asReadonly();login(e){return this.#e.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(o(1),l(t=>t.AccessToken&&this.#t.set(t.AccessToken)))}refreshToken(){return this.#s.relayIsEnabled()?(this.#t.set(f),new p(e=>{e.next({AccessToken:f}),e.complete()})):this.#e.postApiV1AuthRefresh().pipe(o(1),l(e=>e.AccessToken&&this.#t.set(e.AccessToken)))}checkProxyAuthed(){let e=new y({"custom-proxy-check":"true"});return this.#n.get("/api/v1/systeminfo",{headers:e}).pipe(g(()=>(this.#t.set(f),!0)),d(()=>u(!1)))}logout(){this.#r.set(!0),this.#e.postApiV1AuthRefreshLogout().pipe(o(1),m(()=>{this.#r.set(!1),this.#t.set(null),this.#i.navigate(["/login"])})).subscribe()}static \u0275fac=function(t){return new(t||s)};static \u0275prov=a({token:s,factory:s.\u0275fac,providedIn:"root"})};export{c as a,f as b,b as c};