aiservermanager 0.6.1 → 0.6.3
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.
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
<style>html{--mat-sys-on-surface:initial}html{--mat-app-background-color:#fafafa;--mat-app-text-color:rgba(0, 0, 0, .87);--mat-app-elevation-shadow-level-0:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-1:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-2:0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-3:0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-4:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-5:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-6:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-7:0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-8:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-9:0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-10:0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-11:0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-12:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-13:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-14:0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-15:0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-16:0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-17:0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-18:0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-19:0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-20:0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-21:0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-22:0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-23:0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--mat-app-elevation-shadow-level-24:0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html{--mat-option-selected-state-label-text-color:#3f51b5;--mat-option-label-text-color:rgba(0, 0, 0, .87);--mat-option-hover-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-option-focus-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-option-selected-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html{--mat-optgroup-label-text-color:rgba(0, 0, 0, .87)}html{--mat-pseudo-checkbox-full-selected-icon-color:#ff4081;--mat-pseudo-checkbox-full-selected-checkmark-color:#fafafa;--mat-pseudo-checkbox-full-unselected-icon-color:rgba(0, 0, 0, .54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color:#fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color:#ff4081;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html{--mat-option-label-text-font:Roboto, sans-serif;--mat-option-label-text-line-height:24px;--mat-option-label-text-size:16px;--mat-option-label-text-tracking:.03125em;--mat-option-label-text-weight:400}html{--mat-optgroup-label-text-font:Roboto, sans-serif;--mat-optgroup-label-text-line-height:24px;--mat-optgroup-label-text-size:16px;--mat-optgroup-label-text-tracking:.03125em;--mat-optgroup-label-text-weight:400}html{--mat-card-elevated-container-shape:4px;--mat-card-outlined-container-shape:4px;--mat-card-filled-container-shape:4px;--mat-card-outlined-outline-width:1px}html{--mat-card-elevated-container-color:white;--mat-card-elevated-container-elevation:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-card-outlined-container-color:white;--mat-card-outlined-container-elevation:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-card-outlined-outline-color:rgba(0, 0, 0, .12);--mat-card-subtitle-text-color:rgba(0, 0, 0, .54);--mat-card-filled-container-color:white;--mat-card-filled-container-elevation:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}html{--mat-card-title-text-font:Roboto, sans-serif;--mat-card-title-text-line-height:32px;--mat-card-title-text-size:20px;--mat-card-title-text-tracking:.0125em;--mat-card-title-text-weight:500;--mat-card-subtitle-text-font:Roboto, sans-serif;--mat-card-subtitle-text-line-height:22px;--mat-card-subtitle-text-size:14px;--mat-card-subtitle-text-tracking:.0071428571em;--mat-card-subtitle-text-weight:500}html{--mat-progress-bar-active-indicator-height:4px;--mat-progress-bar-track-height:4px;--mat-progress-bar-track-shape:0}html{--mat-tooltip-container-shape:4px;--mat-tooltip-supporting-text-line-height:16px}html{--mat-tooltip-container-color:#424242;--mat-tooltip-supporting-text-color:white}html{--mat-tooltip-supporting-text-font:Roboto, sans-serif;--mat-tooltip-supporting-text-size:12px;--mat-tooltip-supporting-text-weight:400;--mat-tooltip-supporting-text-tracking:.0333333333em}html{--mat-form-field-filled-active-indicator-height:1px;--mat-form-field-filled-focus-active-indicator-height:2px;--mat-form-field-filled-container-shape:4px;--mat-form-field-outlined-outline-width:1px;--mat-form-field-outlined-focus-outline-width:2px;--mat-form-field-outlined-container-shape:4px}html{--mat-form-field-focus-select-arrow-color:color-mix(in srgb, #3f51b5 87%, transparent);--mat-form-field-filled-caret-color:#3f51b5;--mat-form-field-filled-focus-active-indicator-color:#3f51b5;--mat-form-field-filled-focus-label-text-color:color-mix(in srgb, #3f51b5 87%, transparent);--mat-form-field-outlined-caret-color:#3f51b5;--mat-form-field-outlined-focus-outline-color:#3f51b5;--mat-form-field-outlined-focus-label-text-color:color-mix(in srgb, #3f51b5 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-state-layer-color:rgba(0, 0, 0, .87);--mat-form-field-error-text-color:#f44336;--mat-form-field-select-option-text-color:inherit;--mat-form-field-select-disabled-option-text-color:GrayText;--mat-form-field-leading-icon-color:unset;--mat-form-field-disabled-leading-icon-color:unset;--mat-form-field-trailing-icon-color:unset;--mat-form-field-disabled-trailing-icon-color:unset;--mat-form-field-error-focus-trailing-icon-color:unset;--mat-form-field-error-hover-trailing-icon-color:unset;--mat-form-field-error-trailing-icon-color:unset;--mat-form-field-enabled-select-arrow-color:rgba(0, 0, 0, .54);--mat-form-field-disabled-select-arrow-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-hover-state-layer-opacity:.04;--mat-form-field-focus-state-layer-opacity:.12;--mat-form-field-filled-container-color:#f6f6f6;--mat-form-field-filled-disabled-container-color:color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-form-field-filled-label-text-color:rgba(0, 0, 0, .54);--mat-form-field-filled-hover-label-text-color:rgba(0, 0, 0, .54);--mat-form-field-filled-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-filled-input-text-color:rgba(0, 0, 0, .87);--mat-form-field-filled-disabled-input-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-filled-input-text-placeholder-color:rgba(0, 0, 0, .54);--mat-form-field-filled-error-hover-label-text-color:#f44336;--mat-form-field-filled-error-focus-label-text-color:#f44336;--mat-form-field-filled-error-label-text-color:#f44336;--mat-form-field-filled-error-caret-color:#f44336;--mat-form-field-filled-active-indicator-color:rgba(0, 0, 0, .54);--mat-form-field-filled-disabled-active-indicator-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-form-field-filled-hover-active-indicator-color:rgba(0, 0, 0, .87);--mat-form-field-filled-error-active-indicator-color:#f44336;--mat-form-field-filled-error-focus-active-indicator-color:#f44336;--mat-form-field-filled-error-hover-active-indicator-color:#f44336;--mat-form-field-outlined-label-text-color:rgba(0, 0, 0, .54);--mat-form-field-outlined-hover-label-text-color:rgba(0, 0, 0, .87);--mat-form-field-outlined-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-outlined-input-text-color:rgba(0, 0, 0, .87);--mat-form-field-outlined-disabled-input-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color:rgba(0, 0, 0, .54);--mat-form-field-outlined-error-caret-color:#f44336;--mat-form-field-outlined-error-focus-label-text-color:#f44336;--mat-form-field-outlined-error-label-text-color:#f44336;--mat-form-field-outlined-error-hover-label-text-color:#f44336;--mat-form-field-outlined-outline-color:rgba(0, 0, 0, .38);--mat-form-field-outlined-disabled-outline-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-form-field-outlined-hover-outline-color:rgba(0, 0, 0, .87);--mat-form-field-outlined-error-focus-outline-color:#f44336;--mat-form-field-outlined-error-hover-outline-color:#f44336;--mat-form-field-outlined-error-outline-color:#f44336}html{--mat-form-field-container-height:56px;--mat-form-field-filled-label-display:block;--mat-form-field-container-vertical-padding:16px;--mat-form-field-filled-with-label-container-padding-top:24px;--mat-form-field-filled-with-label-container-padding-bottom:8px}html{--mat-form-field-container-text-font:Roboto, sans-serif;--mat-form-field-container-text-line-height:24px;--mat-form-field-container-text-size:16px;--mat-form-field-container-text-tracking:.03125em;--mat-form-field-container-text-weight:400;--mat-form-field-outlined-label-text-populated-size:16px;--mat-form-field-subscript-text-font:Roboto, sans-serif;--mat-form-field-subscript-text-line-height:20px;--mat-form-field-subscript-text-size:12px;--mat-form-field-subscript-text-tracking:.0333333333em;--mat-form-field-subscript-text-weight:400;--mat-form-field-filled-label-text-font:Roboto, sans-serif;--mat-form-field-filled-label-text-size:16px;--mat-form-field-filled-label-text-tracking:.03125em;--mat-form-field-filled-label-text-weight:400;--mat-form-field-outlined-label-text-font:Roboto, sans-serif;--mat-form-field-outlined-label-text-size:16px;--mat-form-field-outlined-label-text-tracking:.03125em;--mat-form-field-outlined-label-text-weight:400}html{--mat-select-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-select-panel-background-color:white;--mat-select-enabled-trigger-text-color:rgba(0, 0, 0, .87);--mat-select-disabled-trigger-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-placeholder-text-color:rgba(0, 0, 0, .54);--mat-select-enabled-arrow-color:rgba(0, 0, 0, .54);--mat-select-disabled-arrow-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-select-focused-arrow-color:#3f51b5;--mat-select-invalid-arrow-color:#f44336}html{--mat-select-arrow-transform:translateY(-8px)}html{--mat-select-trigger-text-font:Roboto, sans-serif;--mat-select-trigger-text-line-height:24px;--mat-select-trigger-text-size:16px;--mat-select-trigger-text-tracking:.03125em;--mat-select-trigger-text-weight:400}html{--mat-autocomplete-container-shape:4px;--mat-autocomplete-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-autocomplete-background-color:white}html{--mat-dialog-container-shape:4px;--mat-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--mat-dialog-container-max-width:80vw;--mat-dialog-container-small-max-width:80vw;--mat-dialog-container-min-width:0;--mat-dialog-actions-alignment:start;--mat-dialog-actions-padding:8px;--mat-dialog-content-padding:20px 24px;--mat-dialog-with-actions-content-padding:20px 24px;--mat-dialog-headline-padding:0 24px 9px}html{--mat-dialog-container-color:white;--mat-dialog-subhead-color:rgba(0, 0, 0, .87);--mat-dialog-supporting-text-color:rgba(0, 0, 0, .54)}html{--mat-dialog-subhead-font:Roboto, sans-serif;--mat-dialog-subhead-line-height:32px;--mat-dialog-subhead-size:20px;--mat-dialog-subhead-weight:500;--mat-dialog-subhead-tracking:.0125em;--mat-dialog-supporting-text-font:Roboto, sans-serif;--mat-dialog-supporting-text-line-height:24px;--mat-dialog-supporting-text-size:16px;--mat-dialog-supporting-text-weight:400;--mat-dialog-supporting-text-tracking:.03125em}html{--mat-slide-toggle-disabled-handle-opacity:.38;--mat-slide-toggle-disabled-selected-handle-opacity:.38;--mat-slide-toggle-disabled-selected-icon-opacity:.38;--mat-slide-toggle-disabled-track-opacity:.12;--mat-slide-toggle-disabled-unselected-handle-opacity:.38;--mat-slide-toggle-disabled-unselected-icon-opacity:.38;--mat-slide-toggle-disabled-unselected-track-outline-color:transparent;--mat-slide-toggle-disabled-unselected-track-outline-width:1px;--mat-slide-toggle-handle-height:20px;--mat-slide-toggle-handle-shape:10px;--mat-slide-toggle-handle-width:20px;--mat-slide-toggle-hidden-track-opacity:1;--mat-slide-toggle-hidden-track-transition:transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--mat-slide-toggle-pressed-handle-size:20px;--mat-slide-toggle-selected-focus-state-layer-opacity:.12;--mat-slide-toggle-selected-handle-horizontal-margin:0;--mat-slide-toggle-selected-handle-size:20px;--mat-slide-toggle-selected-hover-state-layer-opacity:.04;--mat-slide-toggle-selected-icon-size:18px;--mat-slide-toggle-selected-pressed-handle-horizontal-margin:0;--mat-slide-toggle-selected-pressed-state-layer-opacity:.12;--mat-slide-toggle-selected-track-outline-color:transparent;--mat-slide-toggle-selected-track-outline-width:1px;--mat-slide-toggle-selected-with-icon-handle-horizontal-margin:0;--mat-slide-toggle-track-height:14px;--mat-slide-toggle-track-outline-color:transparent;--mat-slide-toggle-track-outline-width:1px;--mat-slide-toggle-track-shape:7px;--mat-slide-toggle-track-width:36px;--mat-slide-toggle-unselected-focus-state-layer-opacity:.12;--mat-slide-toggle-unselected-handle-horizontal-margin:0;--mat-slide-toggle-unselected-handle-size:20px;--mat-slide-toggle-unselected-hover-state-layer-opacity:.12;--mat-slide-toggle-unselected-icon-size:18px;--mat-slide-toggle-unselected-pressed-handle-horizontal-margin:0;--mat-slide-toggle-unselected-pressed-state-layer-opacity:.1;--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin:0;--mat-slide-toggle-visible-track-opacity:1;--mat-slide-toggle-visible-track-transition:transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--mat-slide-toggle-with-icon-handle-size:20px;--mat-slide-toggle-touch-target-size:48px}html{--mat-slide-toggle-selected-icon-color:white;--mat-slide-toggle-disabled-selected-icon-color:white;--mat-slide-toggle-selected-focus-state-layer-color:#3f51b5;--mat-slide-toggle-selected-handle-color:#3f51b5;--mat-slide-toggle-selected-hover-state-layer-color:#3f51b5;--mat-slide-toggle-selected-pressed-state-layer-color:#3f51b5;--mat-slide-toggle-selected-focus-handle-color:#3f51b5;--mat-slide-toggle-selected-hover-handle-color:#3f51b5;--mat-slide-toggle-selected-pressed-handle-color:#3f51b5;--mat-slide-toggle-selected-focus-track-color:#7986cb;--mat-slide-toggle-selected-hover-track-color:#7986cb;--mat-slide-toggle-selected-pressed-track-color:#7986cb;--mat-slide-toggle-selected-track-color:#7986cb;--mat-slide-toggle-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-slide-toggle-disabled-handle-elevation-shadow:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-disabled-selected-handle-color:rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-selected-track-color:rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-unselected-handle-color:rgba(0, 0, 0, .87);--mat-slide-toggle-disabled-unselected-icon-color:#f6f6f6;--mat-slide-toggle-disabled-unselected-track-color:rgba(0, 0, 0, .87);--mat-slide-toggle-handle-elevation-shadow:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slide-toggle-handle-surface-color:white;--mat-slide-toggle-label-text-color:rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-hover-handle-color:#424242;--mat-slide-toggle-unselected-focus-handle-color:#424242;--mat-slide-toggle-unselected-focus-state-layer-color:rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-focus-track-color:rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-icon-color:#f6f6f6;--mat-slide-toggle-unselected-handle-color:rgba(0, 0, 0, .54);--mat-slide-toggle-unselected-hover-state-layer-color:rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-hover-track-color:rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-pressed-handle-color:#424242;--mat-slide-toggle-unselected-pressed-track-color:rgba(0, 0, 0, .12);--mat-slide-toggle-unselected-pressed-state-layer-color:rgba(0, 0, 0, .87);--mat-slide-toggle-unselected-track-color:rgba(0, 0, 0, .12)}html{--mat-slide-toggle-state-layer-size:40px;--mat-slide-toggle-touch-target-display:block}html{--mat-slide-toggle-label-text-font:Roboto, sans-serif;--mat-slide-toggle-label-text-line-height:20px;--mat-slide-toggle-label-text-size:14px;--mat-slide-toggle-label-text-tracking:.0178571429em;--mat-slide-toggle-label-text-weight:400}html{--mat-radio-disabled-selected-icon-opacity:.38;--mat-radio-disabled-unselected-icon-opacity:.38;--mat-radio-state-layer-size:40px;--mat-radio-touch-target-size:48px}html{--mat-radio-state-layer-size:40px;--mat-radio-touch-target-display:block}html{--mat-radio-label-text-font:Roboto, sans-serif;--mat-radio-label-text-line-height:20px;--mat-radio-label-text-size:14px;--mat-radio-label-text-tracking:.0178571429em;--mat-radio-label-text-weight:400}html{--mat-slider-active-track-height:6px;--mat-slider-active-track-shape:9999px;--mat-slider-handle-elevation:0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-slider-handle-height:20px;--mat-slider-handle-shape:50%;--mat-slider-handle-width:20px;--mat-slider-inactive-track-height:4px;--mat-slider-inactive-track-shape:9999px;--mat-slider-value-indicator-border-radius:4px;--mat-slider-value-indicator-caret-display:block;--mat-slider-value-indicator-container-transform:translateX(-50%);--mat-slider-value-indicator-height:32px;--mat-slider-value-indicator-padding:0 12px;--mat-slider-value-indicator-text-transform:none;--mat-slider-value-indicator-width:auto;--mat-slider-with-overlap-handle-outline-width:1px;--mat-slider-with-tick-marks-active-container-opacity:.6;--mat-slider-with-tick-marks-container-shape:50%;--mat-slider-with-tick-marks-container-size:2px;--mat-slider-with-tick-marks-inactive-container-opacity:.6;--mat-slider-value-indicator-transform-origin:bottom}html{--mat-slider-active-track-color:#3f51b5;--mat-slider-focus-handle-color:#3f51b5;--mat-slider-handle-color:#3f51b5;--mat-slider-hover-handle-color:#3f51b5;--mat-slider-focus-state-layer-color:color-mix(in srgb, #3f51b5 12%, transparent);--mat-slider-hover-state-layer-color:color-mix(in srgb, #3f51b5 4%, transparent);--mat-slider-inactive-track-color:#3f51b5;--mat-slider-ripple-color:#3f51b5;--mat-slider-with-tick-marks-active-container-color:white;--mat-slider-with-tick-marks-inactive-container-color:#3f51b5;--mat-slider-disabled-active-track-color:rgba(0, 0, 0, .87);--mat-slider-disabled-handle-color:rgba(0, 0, 0, .87);--mat-slider-disabled-inactive-track-color:rgba(0, 0, 0, .87);--mat-slider-label-container-color:#424242;--mat-slider-label-label-text-color:white;--mat-slider-value-indicator-opacity:1;--mat-slider-with-overlap-handle-outline-color:rgba(0, 0, 0, .87);--mat-slider-with-tick-marks-disabled-container-color:rgba(0, 0, 0, .87)}html{--mat-slider-label-label-text-font:Roboto, sans-serif;--mat-slider-label-label-text-size:14px;--mat-slider-label-label-text-line-height:22px;--mat-slider-label-label-text-tracking:.0071428571em;--mat-slider-label-label-text-weight:500}html{--mat-menu-container-shape:4px;--mat-menu-divider-bottom-spacing:0;--mat-menu-divider-top-spacing:0;--mat-menu-item-spacing:16px;--mat-menu-item-icon-size:24px;--mat-menu-item-leading-spacing:16px;--mat-menu-item-trailing-spacing:16px;--mat-menu-item-with-icon-leading-spacing:16px;--mat-menu-item-with-icon-trailing-spacing:16px;--mat-menu-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-color:rgba(0, 0, 0, .87);--mat-menu-item-icon-color:rgba(0, 0, 0, .87);--mat-menu-item-hover-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-menu-item-focus-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-menu-container-color:white;--mat-menu-divider-color:rgba(0, 0, 0, .12)}html{--mat-menu-item-label-text-font:Roboto, sans-serif;--mat-menu-item-label-text-size:16px;--mat-menu-item-label-text-tracking:.03125em;--mat-menu-item-label-text-line-height:24px;--mat-menu-item-label-text-weight:400}html{--mat-list-active-indicator-color:transparent;--mat-list-active-indicator-shape:4px;--mat-list-list-item-container-shape:0;--mat-list-list-item-leading-avatar-shape:50%;--mat-list-list-item-container-color:transparent;--mat-list-list-item-selected-container-color:transparent;--mat-list-list-item-leading-avatar-color:transparent;--mat-list-list-item-leading-icon-size:24px;--mat-list-list-item-leading-avatar-size:40px;--mat-list-list-item-trailing-icon-size:24px;--mat-list-list-item-disabled-state-layer-color:transparent;--mat-list-list-item-disabled-state-layer-opacity:0;--mat-list-list-item-disabled-label-text-opacity:.38;--mat-list-list-item-disabled-leading-icon-opacity:.38;--mat-list-list-item-disabled-trailing-icon-opacity:.38}html{--mat-list-list-item-label-text-color:rgba(0, 0, 0, .87);--mat-list-list-item-supporting-text-color:rgba(0, 0, 0, .54);--mat-list-list-item-leading-icon-color:rgba(0, 0, 0, .54);--mat-list-list-item-trailing-supporting-text-color:rgba(0, 0, 0, .54);--mat-list-list-item-trailing-icon-color:rgba(0, 0, 0, .54);--mat-list-list-item-selected-trailing-icon-color:rgba(0, 0, 0, .54);--mat-list-list-item-disabled-label-text-color:rgba(0, 0, 0, .87);--mat-list-list-item-disabled-leading-icon-color:rgba(0, 0, 0, .87);--mat-list-list-item-disabled-trailing-icon-color:rgba(0, 0, 0, .87);--mat-list-list-item-hover-label-text-color:rgba(0, 0, 0, .87);--mat-list-list-item-hover-leading-icon-color:rgba(0, 0, 0, .54);--mat-list-list-item-hover-state-layer-color:rgba(0, 0, 0, .87);--mat-list-list-item-hover-state-layer-opacity:.04;--mat-list-list-item-hover-trailing-icon-color:rgba(0, 0, 0, .54);--mat-list-list-item-focus-label-text-color:rgba(0, 0, 0, .87);--mat-list-list-item-focus-state-layer-color:rgba(0, 0, 0, .87);--mat-list-list-item-focus-state-layer-opacity:.12}html{--mat-list-list-item-leading-icon-start-space:16px;--mat-list-list-item-leading-icon-end-space:32px;--mat-list-list-item-one-line-container-height:48px;--mat-list-list-item-two-line-container-height:64px;--mat-list-list-item-three-line-container-height:88px}html{--mat-list-list-item-label-text-font:Roboto, sans-serif;--mat-list-list-item-label-text-line-height:24px;--mat-list-list-item-label-text-size:16px;--mat-list-list-item-label-text-tracking:.03125em;--mat-list-list-item-label-text-weight:400;--mat-list-list-item-supporting-text-font:Roboto, sans-serif;--mat-list-list-item-supporting-text-line-height:20px;--mat-list-list-item-supporting-text-size:14px;--mat-list-list-item-supporting-text-tracking:.0178571429em;--mat-list-list-item-supporting-text-weight:400;--mat-list-list-item-trailing-supporting-text-font:Roboto, sans-serif;--mat-list-list-item-trailing-supporting-text-line-height:20px;--mat-list-list-item-trailing-supporting-text-size:12px;--mat-list-list-item-trailing-supporting-text-tracking:.0333333333em;--mat-list-list-item-trailing-supporting-text-weight:400}html{--mat-paginator-page-size-select-width:84px;--mat-paginator-page-size-select-touch-target-height:48px}html{--mat-paginator-container-text-color:rgba(0, 0, 0, .87);--mat-paginator-container-background-color:white;--mat-paginator-enabled-icon-color:rgba(0, 0, 0, .54);--mat-paginator-disabled-icon-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html{--mat-paginator-container-size:56px;--mat-paginator-form-field-container-height:40px;--mat-paginator-form-field-container-vertical-padding:8px;--mat-paginator-touch-target-display:block}html{--mat-paginator-container-text-font:Roboto, sans-serif;--mat-paginator-container-text-line-height:20px;--mat-paginator-container-text-size:12px;--mat-paginator-container-text-tracking:.0333333333em;--mat-paginator-container-text-weight:400;--mat-paginator-select-trigger-text-size:12px}html{--mat-tab-container-height:48px;--mat-tab-divider-color:transparent;--mat-tab-divider-height:0;--mat-tab-active-indicator-height:2px;--mat-tab-active-indicator-shape:0}html{--mat-checkbox-disabled-selected-checkmark-color:white;--mat-checkbox-selected-focus-state-layer-opacity:.12;--mat-checkbox-selected-hover-state-layer-opacity:.04;--mat-checkbox-selected-pressed-state-layer-opacity:.12;--mat-checkbox-unselected-focus-state-layer-opacity:.12;--mat-checkbox-unselected-hover-state-layer-opacity:.04;--mat-checkbox-unselected-pressed-state-layer-opacity:.12;--mat-checkbox-touch-target-size:48px}html{--mat-checkbox-disabled-label-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-label-text-color:rgba(0, 0, 0, .87);--mat-checkbox-disabled-selected-icon-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-checkbox-selected-checkmark-color:white;--mat-checkbox-selected-focus-icon-color:#ff4081;--mat-checkbox-selected-hover-icon-color:#ff4081;--mat-checkbox-selected-icon-color:#ff4081;--mat-checkbox-selected-pressed-icon-color:#ff4081;--mat-checkbox-unselected-focus-icon-color:rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-icon-color:rgba(0, 0, 0, .87);--mat-checkbox-unselected-icon-color:rgba(0, 0, 0, .54);--mat-checkbox-selected-focus-state-layer-color:#ff4081;--mat-checkbox-selected-hover-state-layer-color:#ff4081;--mat-checkbox-selected-pressed-state-layer-color:#ff4081;--mat-checkbox-unselected-focus-state-layer-color:rgba(0, 0, 0, .87);--mat-checkbox-unselected-hover-state-layer-color:rgba(0, 0, 0, .87);--mat-checkbox-unselected-pressed-state-layer-color:rgba(0, 0, 0, .87)}html{--mat-checkbox-touch-target-display:block;--mat-checkbox-state-layer-size:40px}html{--mat-checkbox-label-text-font:Roboto, sans-serif;--mat-checkbox-label-text-line-height:20px;--mat-checkbox-label-text-size:14px;--mat-checkbox-label-text-tracking:.0178571429em;--mat-checkbox-label-text-weight:400}html{--mat-button-filled-container-shape:4px;--mat-button-filled-horizontal-padding:16px;--mat-button-filled-icon-offset:-4px;--mat-button-filled-icon-spacing:8px;--mat-button-filled-touch-target-size:48px;--mat-button-outlined-container-shape:4px;--mat-button-outlined-horizontal-padding:15px;--mat-button-outlined-icon-offset:-4px;--mat-button-outlined-icon-spacing:8px;--mat-button-outlined-keep-touch-target:false;--mat-button-outlined-outline-width:1px;--mat-button-outlined-touch-target-size:48px;--mat-button-protected-container-elevation-shadow:0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-button-protected-container-shape:4px;--mat-button-protected-disabled-container-elevation-shadow:0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-button-protected-focus-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-button-protected-horizontal-padding:16px;--mat-button-protected-hover-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-button-protected-icon-offset:-4px;--mat-button-protected-icon-spacing:8px;--mat-button-protected-pressed-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-button-protected-touch-target-size:48px;--mat-button-text-container-shape:4px;--mat-button-text-horizontal-padding:8px;--mat-button-text-icon-offset:0;--mat-button-text-icon-spacing:8px;--mat-button-text-with-icon-horizontal-padding:8px;--mat-button-text-touch-target-size:48px;--mat-button-tonal-container-shape:4px;--mat-button-tonal-horizontal-padding:16px;--mat-button-tonal-icon-offset:-4px;--mat-button-tonal-icon-spacing:8px;--mat-button-tonal-touch-target-size:48px}html{--mat-button-filled-container-color:white;--mat-button-filled-disabled-container-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-filled-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-button-filled-focus-state-layer-opacity:.12;--mat-button-filled-hover-state-layer-opacity:.04;--mat-button-filled-label-text-color:rgba(0, 0, 0, .87);--mat-button-filled-pressed-state-layer-opacity:.12;--mat-button-filled-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-filled-state-layer-color:rgba(0, 0, 0, .87);--mat-button-outlined-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-outlined-disabled-outline-color:rgba(0, 0, 0, .12);--mat-button-outlined-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-button-outlined-focus-state-layer-opacity:.12;--mat-button-outlined-hover-state-layer-opacity:.04;--mat-button-outlined-label-text-color:rgba(0, 0, 0, .87);--mat-button-outlined-outline-color:rgba(0, 0, 0, .12);--mat-button-outlined-pressed-state-layer-opacity:.12;--mat-button-outlined-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-outlined-state-layer-color:rgba(0, 0, 0, .87);--mat-button-protected-container-color:white;--mat-button-protected-disabled-container-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-protected-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-button-protected-focus-state-layer-opacity:.12;--mat-button-protected-hover-state-layer-opacity:.04;--mat-button-protected-label-text-color:rgba(0, 0, 0, .87);--mat-button-protected-pressed-state-layer-opacity:.12;--mat-button-protected-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-protected-state-layer-color:rgba(0, 0, 0, .87);--mat-button-text-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-text-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-button-text-focus-state-layer-opacity:.12;--mat-button-text-hover-state-layer-opacity:.04;--mat-button-text-label-text-color:rgba(0, 0, 0, .87);--mat-button-text-pressed-state-layer-opacity:.12;--mat-button-text-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-text-state-layer-color:rgba(0, 0, 0, .87);--mat-button-tonal-container-color:white;--mat-button-tonal-disabled-container-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-disabled-label-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-tonal-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-button-tonal-focus-state-layer-opacity:.12;--mat-button-tonal-hover-state-layer-opacity:.04;--mat-button-tonal-label-text-color:rgba(0, 0, 0, .87);--mat-button-tonal-pressed-state-layer-opacity:.12;--mat-button-tonal-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-tonal-state-layer-color:rgba(0, 0, 0, .87)}html{--mat-button-filled-container-height:36px;--mat-button-filled-touch-target-display:block;--mat-button-outlined-container-height:36px;--mat-button-outlined-touch-target-display:block;--mat-button-protected-container-height:36px;--mat-button-protected-touch-target-display:block;--mat-button-text-container-height:36px;--mat-button-text-touch-target-display:block;--mat-button-tonal-container-height:36px;--mat-button-tonal-touch-target-display:block}html{--mat-button-filled-label-text-font:Roboto, sans-serif;--mat-button-filled-label-text-size:14px;--mat-button-filled-label-text-tracking:.0892857143em;--mat-button-filled-label-text-transform:none;--mat-button-filled-label-text-weight:500;--mat-button-outlined-label-text-font:Roboto, sans-serif;--mat-button-outlined-label-text-size:14px;--mat-button-outlined-label-text-tracking:.0892857143em;--mat-button-outlined-label-text-transform:none;--mat-button-outlined-label-text-weight:500;--mat-button-protected-label-text-font:Roboto, sans-serif;--mat-button-protected-label-text-size:14px;--mat-button-protected-label-text-tracking:.0892857143em;--mat-button-protected-label-text-transform:none;--mat-button-protected-label-text-weight:500;--mat-button-text-label-text-font:Roboto, sans-serif;--mat-button-text-label-text-size:14px;--mat-button-text-label-text-tracking:.0892857143em;--mat-button-text-label-text-transform:none;--mat-button-text-label-text-weight:500;--mat-button-tonal-label-text-font:Roboto, sans-serif;--mat-button-tonal-label-text-size:14px;--mat-button-tonal-label-text-tracking:.0892857143em;--mat-button-tonal-label-text-transform:none;--mat-button-tonal-label-text-weight:500}html{--mat-icon-button-icon-size:24px;--mat-icon-button-container-shape:50%;--mat-icon-button-touch-target-size:48px}html{--mat-icon-button-disabled-icon-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-icon-button-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-icon-button-focus-state-layer-opacity:.12;--mat-icon-button-hover-state-layer-opacity:.04;--mat-icon-button-icon-color:inherit;--mat-icon-button-pressed-state-layer-opacity:.12;--mat-icon-button-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-icon-button-state-layer-color:rgba(0, 0, 0, .87)}html{--mat-icon-button-touch-target-display:block}html{--mat-fab-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-container-shape:50%;--mat-fab-touch-target-size:48px;--mat-fab-extended-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-extended-container-height:48px;--mat-fab-extended-container-shape:24px;--mat-fab-extended-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-extended-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-extended-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-fab-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-fab-small-container-elevation-shadow:0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-fab-small-container-shape:50%;--mat-fab-small-touch-target-size:48px;--mat-fab-small-focus-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-small-hover-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-fab-small-pressed-container-elevation-shadow:0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html{--mat-fab-container-color:white;--mat-fab-disabled-state-container-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-disabled-state-foreground-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-fab-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-fab-focus-state-layer-opacity:.12;--mat-fab-foreground-color:rgba(0, 0, 0, .87);--mat-fab-hover-state-layer-opacity:.04;--mat-fab-pressed-state-layer-opacity:.12;--mat-fab-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-container-color:white;--mat-fab-small-disabled-state-container-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-disabled-state-foreground-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-fab-small-disabled-state-layer-color:rgba(0, 0, 0, .54);--mat-fab-small-focus-state-layer-opacity:.12;--mat-fab-small-foreground-color:rgba(0, 0, 0, .87);--mat-fab-small-hover-state-layer-opacity:.04;--mat-fab-small-pressed-state-layer-opacity:.12;--mat-fab-small-ripple-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-fab-small-state-layer-color:rgba(0, 0, 0, .87);--mat-fab-state-layer-color:rgba(0, 0, 0, .87)}html{--mat-fab-small-touch-target-display:block;--mat-fab-touch-target-display:block}html{--mat-fab-extended-label-text-font:Roboto, sans-serif;--mat-fab-extended-label-text-size:14px;--mat-fab-extended-label-text-tracking:.0892857143em;--mat-fab-extended-label-text-weight:500}html{--mat-snack-bar-container-shape:4px}html{--mat-snack-bar-container-color:#424242;--mat-snack-bar-supporting-text-color:white;--mat-snack-bar-button-color:#7986cb}html{--mat-snack-bar-supporting-text-font:Roboto, sans-serif;--mat-snack-bar-supporting-text-line-height:20px;--mat-snack-bar-supporting-text-size:14px;--mat-snack-bar-supporting-text-weight:400}html{--mat-table-row-item-outline-width:1px}html{--mat-table-background-color:white;--mat-table-header-headline-color:rgba(0, 0, 0, .87);--mat-table-row-item-label-text-color:rgba(0, 0, 0, .87);--mat-table-row-item-outline-color:rgba(0, 0, 0, .12)}html{--mat-table-header-container-height:56px;--mat-table-footer-container-height:52px;--mat-table-row-item-container-height:52px}html{--mat-table-header-headline-font:Roboto, sans-serif;--mat-table-header-headline-line-height:22px;--mat-table-header-headline-size:14px;--mat-table-header-headline-weight:500;--mat-table-header-headline-tracking:.0071428571em;--mat-table-row-item-label-text-font:Roboto, sans-serif;--mat-table-row-item-label-text-line-height:20px;--mat-table-row-item-label-text-size:14px;--mat-table-row-item-label-text-weight:400;--mat-table-row-item-label-text-tracking:.0178571429em;--mat-table-footer-supporting-text-font:Roboto, sans-serif;--mat-table-footer-supporting-text-line-height:20px;--mat-table-footer-supporting-text-size:14px;--mat-table-footer-supporting-text-weight:400;--mat-table-footer-supporting-text-tracking:.0178571429em}html{--mat-progress-spinner-active-indicator-width:4px;--mat-progress-spinner-size:48px}html{--mat-progress-spinner-active-indicator-color:#3f51b5}html{--mat-badge-container-shape:50%;--mat-badge-container-size:unset;--mat-badge-small-size-container-size:unset;--mat-badge-large-size-container-size:unset;--mat-badge-legacy-container-size:22px;--mat-badge-legacy-small-size-container-size:16px;--mat-badge-legacy-large-size-container-size:28px;--mat-badge-container-offset:-11px 0;--mat-badge-small-size-container-offset:-8px 0;--mat-badge-large-size-container-offset:-14px 0;--mat-badge-container-overlap-offset:-11px;--mat-badge-small-size-container-overlap-offset:-8px;--mat-badge-large-size-container-overlap-offset:-14px;--mat-badge-container-padding:0;--mat-badge-small-size-container-padding:0;--mat-badge-large-size-container-padding:0}html{--mat-badge-background-color:#3f51b5;--mat-badge-text-color:white;--mat-badge-disabled-state-background-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-badge-disabled-state-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html{--mat-badge-text-font:Roboto, sans-serif;--mat-badge-line-height:22px;--mat-badge-text-size:12px;--mat-badge-text-weight:600;--mat-badge-small-size-text-size:9px;--mat-badge-small-size-line-height:16px;--mat-badge-large-size-text-size:24px;--mat-badge-large-size-line-height:28px}html{--mat-bottom-sheet-container-shape:4px}html{--mat-bottom-sheet-container-text-color:rgba(0, 0, 0, .87);--mat-bottom-sheet-container-background-color:white}html{--mat-bottom-sheet-container-text-font:Roboto, sans-serif;--mat-bottom-sheet-container-text-line-height:20px;--mat-bottom-sheet-container-text-size:14px;--mat-bottom-sheet-container-text-tracking:.0178571429em;--mat-bottom-sheet-container-text-weight:400}html{--mat-button-toggle-focus-state-layer-opacity:.12;--mat-button-toggle-hover-state-layer-opacity:.04;--mat-button-toggle-legacy-focus-state-layer-opacity:1;--mat-button-toggle-legacy-height:36px;--mat-button-toggle-legacy-shape:2px;--mat-button-toggle-shape:4px}html{--mat-button-toggle-background-color:white;--mat-button-toggle-disabled-selected-state-background-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-disabled-selected-state-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-disabled-state-background-color:white;--mat-button-toggle-disabled-state-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-divider-color:rgba(0, 0, 0, .12);--mat-button-toggle-legacy-disabled-selected-state-background-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-disabled-state-background-color:white;--mat-button-toggle-legacy-disabled-state-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-button-toggle-legacy-selected-state-background-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-selected-state-text-color:rgba(0, 0, 0, .87);--mat-button-toggle-legacy-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-legacy-text-color:rgba(0, 0, 0, .87);--mat-button-toggle-selected-state-background-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-button-toggle-selected-state-text-color:rgba(0, 0, 0, .87);--mat-button-toggle-state-layer-color:rgba(0, 0, 0, .87);--mat-button-toggle-text-color:rgba(0, 0, 0, .87)}html{--mat-button-toggle-height:48px}html{--mat-button-toggle-label-text-font:Roboto, sans-serif;--mat-button-toggle-label-text-line-height:24px;--mat-button-toggle-label-text-size:16px;--mat-button-toggle-label-text-tracking:.03125em;--mat-button-toggle-label-text-weight:400;--mat-button-toggle-legacy-label-text-font:Roboto, sans-serif;--mat-button-toggle-legacy-label-text-line-height:24px;--mat-button-toggle-legacy-label-text-size:16px;--mat-button-toggle-legacy-label-text-tracking:.03125em;--mat-button-toggle-legacy-label-text-weight:400}html{--mat-datepicker-calendar-container-shape:4px;--mat-datepicker-calendar-container-touch-shape:4px;--mat-datepicker-calendar-container-elevation-shadow:0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--mat-datepicker-calendar-container-touch-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html{--mat-datepicker-calendar-date-in-range-state-background-color:color-mix(in srgb, #3f51b5 20%, transparent);--mat-datepicker-calendar-date-in-comparison-range-state-background-color:color-mix(in srgb, #ff4081 20%, transparent);--mat-datepicker-calendar-date-in-overlap-range-state-background-color:#a8dab5;--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color:rgb(69.5241935484, 163.4758064516, 93.9516129032);--mat-datepicker-calendar-date-selected-state-text-color:white;--mat-datepicker-calendar-date-selected-state-background-color:#3f51b5;--mat-datepicker-calendar-date-selected-disabled-state-background-color:color-mix(in srgb, #3f51b5 38%, transparent);--mat-datepicker-calendar-date-today-selected-state-outline-color:white;--mat-datepicker-calendar-date-focus-state-background-color:color-mix(in srgb, #3f51b5 12%, transparent);--mat-datepicker-calendar-date-hover-state-background-color:color-mix(in srgb, #3f51b5 4%, transparent);--mat-datepicker-toggle-active-state-icon-color:#3f51b5;--mat-datepicker-toggle-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-body-label-text-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-period-button-text-color:rgba(0, 0, 0, .87);--mat-datepicker-calendar-period-button-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-navigation-button-icon-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-header-divider-color:rgba(0, 0, 0, .12);--mat-datepicker-calendar-header-text-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-outline-color:rgba(0, 0, 0, .54);--mat-datepicker-calendar-date-today-disabled-state-outline-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-text-color:rgba(0, 0, 0, .87);--mat-datepicker-calendar-date-outline-color:transparent;--mat-datepicker-calendar-date-disabled-state-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-date-preview-state-outline-color:rgba(0, 0, 0, .54);--mat-datepicker-range-input-separator-color:rgba(0, 0, 0, .87);--mat-datepicker-range-input-disabled-state-separator-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-range-input-disabled-state-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-datepicker-calendar-container-background-color:white;--mat-datepicker-calendar-container-text-color:rgba(0, 0, 0, .87)}html{--mat-datepicker-calendar-text-font:Roboto, sans-serif;--mat-datepicker-calendar-text-size:13px;--mat-datepicker-calendar-body-label-text-size:14px;--mat-datepicker-calendar-body-label-text-weight:500;--mat-datepicker-calendar-period-button-text-size:14px;--mat-datepicker-calendar-period-button-text-weight:500;--mat-datepicker-calendar-header-text-size:11px;--mat-datepicker-calendar-header-text-weight:400}html{--mat-divider-width:1px}html{--mat-divider-color:rgba(0, 0, 0, .12)}html{--mat-expansion-container-shape:4px;--mat-expansion-container-elevation-shadow:0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--mat-expansion-legacy-header-indicator-display:inline-block;--mat-expansion-header-indicator-display:none}html{--mat-expansion-container-background-color:white;--mat-expansion-container-text-color:rgba(0, 0, 0, .87);--mat-expansion-actions-divider-color:rgba(0, 0, 0, .12);--mat-expansion-header-hover-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-expansion-header-focus-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-expansion-header-disabled-state-text-color:color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--mat-expansion-header-text-color:rgba(0, 0, 0, .87);--mat-expansion-header-description-color:rgba(0, 0, 0, .54);--mat-expansion-header-indicator-color:rgba(0, 0, 0, .54)}html{--mat-expansion-header-collapsed-state-height:48px;--mat-expansion-header-expanded-state-height:64px}html{--mat-expansion-header-text-font:Roboto, sans-serif;--mat-expansion-header-text-size:14px;--mat-expansion-header-text-weight:500;--mat-expansion-header-text-line-height:inherit;--mat-expansion-header-text-tracking:inherit;--mat-expansion-container-text-font:Roboto, sans-serif;--mat-expansion-container-text-line-height:20px;--mat-expansion-container-text-size:14px;--mat-expansion-container-text-tracking:.0178571429em;--mat-expansion-container-text-weight:400}html{--mat-grid-list-tile-header-primary-text-size:14px;--mat-grid-list-tile-header-secondary-text-size:12px;--mat-grid-list-tile-footer-primary-text-size:14px;--mat-grid-list-tile-footer-secondary-text-size:12px}html{--mat-icon-color:inherit}html{--mat-sidenav-container-shape:0;--mat-sidenav-container-elevation-shadow:0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--mat-sidenav-container-width:auto}html{--mat-sidenav-container-divider-color:rgba(0, 0, 0, .12);--mat-sidenav-container-background-color:white;--mat-sidenav-container-text-color:rgba(0, 0, 0, .87);--mat-sidenav-content-background-color:#fafafa;--mat-sidenav-content-text-color:rgba(0, 0, 0, .87);--mat-sidenav-scrim-color:rgba(0, 0, 0, .6)}html{--mat-stepper-header-focus-state-layer-shape:0;--mat-stepper-header-hover-state-layer-shape:0}html{--mat-stepper-header-icon-foreground-color:white;--mat-stepper-header-selected-state-icon-background-color:#3f51b5;--mat-stepper-header-selected-state-icon-foreground-color:white;--mat-stepper-header-done-state-icon-background-color:#3f51b5;--mat-stepper-header-done-state-icon-foreground-color:white;--mat-stepper-header-edit-state-icon-background-color:#3f51b5;--mat-stepper-header-edit-state-icon-foreground-color:white;--mat-stepper-container-color:white;--mat-stepper-line-color:rgba(0, 0, 0, .12);--mat-stepper-header-hover-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--mat-stepper-header-focus-state-layer-color:color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--mat-stepper-header-label-text-color:rgba(0, 0, 0, .54);--mat-stepper-header-optional-label-text-color:rgba(0, 0, 0, .54);--mat-stepper-header-selected-state-label-text-color:rgba(0, 0, 0, .87);--mat-stepper-header-error-state-label-text-color:#f44336;--mat-stepper-header-icon-background-color:rgba(0, 0, 0, .54);--mat-stepper-header-error-state-icon-foreground-color:#f44336;--mat-stepper-header-error-state-icon-background-color:transparent}html{--mat-stepper-header-height:72px}html{--mat-stepper-container-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-font:Roboto, sans-serif;--mat-stepper-header-label-text-size:14px;--mat-stepper-header-label-text-weight:400;--mat-stepper-header-error-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-size:16px;--mat-stepper-header-selected-state-label-text-weight:400}html{--mat-sort-arrow-color:rgba(0, 0, 0, .87)}html{--mat-toolbar-container-background-color:white;--mat-toolbar-container-text-color:rgba(0, 0, 0, .87)}html{--mat-toolbar-standard-height:64px;--mat-toolbar-mobile-height:56px}html{--mat-toolbar-title-text-font:Roboto, sans-serif;--mat-toolbar-title-text-line-height:32px;--mat-toolbar-title-text-size:20px;--mat-toolbar-title-text-tracking:.0125em;--mat-toolbar-title-text-weight:500}html{--mat-tree-container-background-color:white;--mat-tree-node-text-color:rgba(0, 0, 0, .87)}html{--mat-tree-node-min-height:48px}html{--mat-tree-node-text-font:Roboto, sans-serif;--mat-tree-node-text-size:14px;--mat-tree-node-text-weight:400}html{--mat-timepicker-container-shape:4px;--mat-timepicker-container-elevation-shadow:0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-timepicker-container-background-color:white}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;overflow:hidden}body{font-family:Roboto,Helvetica Neue,sans-serif;background-color:#f5f5f5}</style><link rel="stylesheet" href="styles-QBUDNRKH.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-QBUDNRKH.css"></noscript></head>
|
|
12
12
|
<body>
|
|
13
13
|
<app-root></app-root>
|
|
14
|
-
<link rel="modulepreload" href="chunk-JGNPKRLU.js"><script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-
|
|
14
|
+
<link rel="modulepreload" href="chunk-JGNPKRLU.js"><script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-T23EQT2S.js" type="module"></script></body>
|
|
15
15
|
</html>
|
|
@@ -3016,7 +3016,7 @@ input.mat-mdc-chip-input {
|
|
|
3016
3016
|
margin-left: 0;
|
|
3017
3017
|
margin-right: 0;
|
|
3018
3018
|
}
|
|
3019
|
-
`],encapsulation:2})}return i})();var Ao=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({providers:[ko,{provide:Bv,useValue:{separatorKeyCodes:[13]}}],imports:[Fi,se]})}return i})();function jv(i,o){if(i&1&&(s(0,"td",14),m(1),l()),i&2){let e=o.$implicit;c(),O(e.gpuIndex)}}function Hv(i,o){if(i&1&&(s(0,"td",15)(1,"mat-chip",16),m(2),l()()),i&2){let e=o.$implicit,t=_();c(),x("ngClass",t.getVendorCssClass(e)),c(),ie(" ",t.makeGpuNameShort(e.name)+" / "+e.brand," ")}}function Uv(i,o){if(i&1&&(s(0,"td",17)(1,"div",18)(2,"span",19),m(3),Wo(4,"number"),Wo(5,"number"),l(),s(6,"div",20),v(7,"div",21),l()()()),i&2){let e=o.$implicit,t=_();c(3),fi(" ",qo(4,6,e.vramUsed,"1.0-0")," / ",qo(5,9,e.vramTotal,"1.0-0")," GB "),c(4),Be("width",t.vramPercent(e),"%")("background",t.colorForUsage(t.vramPercent(e)))}}function $v(i,o){if(i&1&&(s(0,"td",22)(1,"div",23)(2,"span",24),m(3),l(),s(4,"div",25),v(5,"div",26),l()()()),i&2){let e=o.$implicit,t=_();c(2),Be("color",t.colorForUsage(e.usage)),c(),ie(" ",e.usage,"% "),c(2),Be("width",e.usage,"%")("background",t.colorForUsage(e.usage))}}function Gv(i,o){if(i&1&&(s(0,"td",27)(1,"span",28),m(2),l()()),i&2){let e=o.$implicit,t=_();c(),Be("color",t.colorForTemp(e.temperature)),c(),ie(" ",e.temperature,"\xB0C ")}}function Wv(i,o){if(i&1&&(s(0,"td",29),m(1),l()),i&2){let e=o.$implicit;c(),O(e.pciBusId)}}function qv(i,o){i&1&&v(0,"tr",30)}var Ph=(()=>{class i{constructor(){this.gpus=lo.required(),this.displayedColumns=["index","name","vram","usage","temperature","pciBusId"]}getVendorCssClass(e){return{"gpu-name":!0,"gpu-vendor-nvidia":e.vendor==="NVIDIA","gpu-vendor-amd":e.vendor==="AMD","gpu-vendor-other":!["NVIDIA","AMD"].includes(e.vendor)}}vramPercent(e){return e.vramTotal===0?0:Math.round(e.vramUsed/e.vramTotal*100)}colorForUsage(e){return e<40?"#4caf50":e<75?"#ff9800":"#f44336"}colorForTemp(e){return e<60?"#4caf50":e<80?"#ff9800":"#f44336"}makeGpuNameShort(e){return e=e.replace(/^AMD Radeon RX /,"RX "),e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-gpu-table"]],inputs:{gpus:[1,"gpus"]},decls:16,vars:2,consts:[["mat-table","",1,"gpu-table",3,"dataSource"],["matColumnDef","index"],["mat-cell","","class","index-cell","title","#",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","title","Name",4,"matCellDef"],["matColumnDef","vram"],["mat-cell","","title","VRAM",4,"matCellDef"],["matColumnDef","usage"],["mat-cell","","title","GPU Usage",4,"matCellDef"],["matColumnDef","temperature"],["mat-cell","","title","Temp \xB0C",4,"matCellDef"],["matColumnDef","pciBusId"],["mat-cell","","class","pci-cell","title","PCI Bus",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","","title","#",1,"index-cell"],["mat-cell","","title","Name"],[1,"gpu-name",3,"ngClass"],["mat-cell","","title","VRAM"],[1,"vram-cell"],[1,"vram-text"],[1,"vram-bar-bg"],[1,"vram-bar-fill"],["mat-cell","","title","GPU Usage"],[1,"usage-cell"],[1,"usage-value"],[1,"usage-bar-bg"],[1,"usage-bar-fill"],["mat-cell","","title","Temp \xB0C"],[1,"temp-value"],["mat-cell","","title","PCI Bus",1,"pci-cell"],["mat-row",""]],template:function(t,n){t&1&&(s(0,"mat-card")(1,"mat-card-content")(2,"table",0),hi(3,1),He(4,jv,2,1,"td",2),pi(),hi(5,3),He(6,Hv,3,2,"td",4),pi(),hi(7,5),He(8,Uv,8,12,"td",6),pi(),hi(9,7),He(10,$v,6,7,"td",8),pi(),hi(11,9),He(12,Gv,3,3,"td",10),pi(),hi(13,11),He(14,Wv,2,1,"td",12),pi(),He(15,qv,1,0,"tr",13),l()()()),t&2&&(c(2),x("dataSource",n.gpus()),c(13),x("matRowDefColumns",n.displayedColumns))},dependencies:[Pe,ml,Sh,bh,Ch,yh,wh,xh,Dh,rn,on,an,Ao,Pa,pl],styles:[".gpu-table[_ngcontent-%COMP%]{width:100%;white-space:nowrap}.gpu-name[_ngcontent-%COMP%]{font-weight:500}.gpu-vendor-nvidia[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #a4f021}.gpu-vendor-amd[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #ffa1a1}.gpu-vendor-other[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #b6e7ff}.index-cell[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.pci-cell[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;font-size:.85rem;color:#666}.vram-cell[_ngcontent-%COMP%]{min-width:160px}.vram-text[_ngcontent-%COMP%]{display:block;margin-bottom:4px;font-size:.85rem}.vram-bar-bg[_ngcontent-%COMP%]{height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden}.vram-bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:4px;transition:width .4s ease,background .4s ease}.usage-cell[_ngcontent-%COMP%]{min-width:130px}.usage-value[_ngcontent-%COMP%]{display:block;margin-bottom:4px;font-weight:500;font-size:.9rem}.usage-bar-bg[_ngcontent-%COMP%]{height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden}.usage-bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:4px;transition:width .4s ease,background .4s ease}.temp-value[_ngcontent-%COMP%]{font-weight:500;font-size:.95rem}.mat-row[_ngcontent-%COMP%]{transition:background .2s ease;height:44px}.mat-row[_ngcontent-%COMP%]:hover{background:#fafafa}mat-card-content[_ngcontent-%COMP%]{overflow-x:hidden}"]})}}return i})();var Fa=class{_attachedHost=null;attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;o!=null&&(this._attachedHost=null,o.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(o){this._attachedHost=o}},wi=class extends Fa{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(o,e,t,n,a,r){super(),this.component=o,this.viewContainerRef=e,this.injector=t,this.projectableNodes=n,this.bindings=a||null,this.directives=r||null}},Rt=class extends Fa{templateRef;viewContainerRef;context;injector;constructor(o,e,t,n){super(),this.templateRef=o,this.viewContainerRef=e,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(o,e=this.context){return this.context=e,super.attach(o)}detach(){return this.context=void 0,super.detach()}},Mc=class extends Fa{element;constructor(o){super(),this.element=o instanceof L?o.nativeElement:o}},yn=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(o){if(o instanceof wi)return this._attachedPortal=o,this.attachComponentPortal(o);if(o instanceof Rt)return this._attachedPortal=o,this.attachTemplatePortal(o);if(this.attachDomPortal&&o instanceof Mc)return this._attachedPortal=o,this.attachDomPortal(o)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Na=class extends yn{outletElement;_appRef;_defaultInjector;constructor(o,e,t){super(),this.outletElement=o,this._appRef=e,this._defaultInjector=t}attachComponentPortal(o){let e;if(o.viewContainerRef){let t=o.injector||o.viewContainerRef.injector,n=t.get(rr,null,{optional:!0})||void 0;e=o.viewContainerRef.createComponent(o.component,{index:o.viewContainerRef.length,injector:t,ngModuleRef:n,projectableNodes:o.projectableNodes||void 0,bindings:o.bindings||void 0,directives:o.directives||void 0}),this.setDisposeFn(()=>e.destroy())}else{let t=this._appRef,n=o.injector||this._defaultInjector||Z.NULL,a=n.get(ui,t.injector);e=cr(o.component,{elementInjector:n,environmentInjector:a,projectableNodes:o.projectableNodes||void 0,bindings:o.bindings||void 0,directives:o.directives||void 0}),t.attachView(e.hostView),this.setDisposeFn(()=>{t.viewCount>0&&t.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=o,e}attachTemplatePortal(o){let e=o.viewContainerRef,t=e.createEmbeddedView(o.templateRef,o.context,{injector:o.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=e.indexOf(t);n!==-1&&e.remove(n)}),this._attachedPortal=o,t}attachDomPortal=o=>{let e=o.element;e.parentNode;let t=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=o,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}};var Ni=(()=>{class i extends yn{_moduleRef=d(rr,{optional:!0});_document=d(K);_viewContainerRef=d(Qe);_isInitialized=!1;_attachedRef=null;get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new Y;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let t=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,n=t.createComponent(e.component,{index:t.length,injector:e.injector||t.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0});return t!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(e){e.setAttachedHost(this);let t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[J]})}return i})(),Li=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({})}return i})();var Fh=Lr();function Oo(i){return new hs(i.get(Yt),i.get(K))}var hs=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(o,e){this._viewportRuler=o,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=Je(-this._previousScrollPosition.left),o.style.top=Je(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let o=this._document.documentElement,e=this._document.body,t=o.style,n=e.style,a=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),Fh&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Fh&&(t.scrollBehavior=a,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};function Hh(i,o){return new ps(i.get(bn),i.get($),i.get(Yt),o)}var ps=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(o,e,t,n){this._scrollDispatcher=o,this._ngZone=e,this._viewportRuler=t,this._config=n}attach(o){this._overlayRef,this._overlayRef=o}enable(){if(this._scrollSubscription)return;let o=this._scrollDispatcher.scrolled(0).pipe(Se(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var La=class{enable(){}disable(){}attach(){}};function Ec(i,o){return o.some(e=>{let t=i.bottom<e.top,n=i.top>e.bottom,a=i.right<e.left,r=i.left>e.right;return t||n||a||r})}function Nh(i,o){return o.some(e=>{let t=i.top<e.top,n=i.bottom>e.bottom,a=i.left<e.left,r=i.right>e.right;return t||n||a||r})}function Di(i,o){return new fs(i.get(bn),i.get(Yt),i.get($),o)}var fs=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(o,e,t,n){this._scrollDispatcher=o,this._viewportRuler=e,this._ngZone=t,this._config=n}attach(o){this._overlayRef,this._overlayRef=o}enable(){if(!this._scrollSubscription){let o=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(o).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();Ec(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Uh=(()=>{class i{_injector=d(Z);noop=()=>new La;close=e=>Hh(this._injector,e);block=()=>Oo(this._injector);reposition=e=>Di(this._injector,e);static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})(),Zt=class{positionStrategy;scrollStrategy=new La;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(o){if(o){let e=Object.keys(o);for(let t of e)o[t]!==void 0&&(this[t]=o[t])}}};var gs=class{connectionPair;scrollableViewProperties;constructor(o,e){this.connectionPair=o,this.scrollableViewProperties=e}};var $h=(()=>{class i{_attachedOverlays=[];_document=d(K);_isAttached=!1;ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,t,n){return n.observers.length<1?!1:e.eventPredicate?e.eventPredicate(t):!0}static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})(),Gh=(()=>{class i extends $h{_ngZone=d($);_renderer=d(ot).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--){let a=t[n];if(this.canReceiveEvent(a,e,a._keydownEvents)){this._ngZone.run(()=>a._keydownEvents.next(e));break}}};static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})(),Wh=(()=>{class i extends $h{_platform=d(fe);_ngZone=d($);_renderer=d(ot).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let t=this._document.body,n={capture:!0},a=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[a.listen(t,"pointerdown",this._pointerDownListener,n),a.listen(t,"click",this._clickListener,n),a.listen(t,"auxclick",this._clickListener,n),a.listen(t,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=st(e)};_clickListener=e=>{let t=st(e),n=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let a=this._attachedOverlays.slice();for(let r=a.length-1;r>-1;r--){let u=a[r],h=u._outsidePointerEvents;if(!(!u.hasAttached()||!this.canReceiveEvent(u,e,h))){if(Lh(u.overlayElement,t)||Lh(u.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>h.next(e)):h.next(e)}}};static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})();function Lh(i,o){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=o;for(;t;){if(t===i)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var qh=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
3019
|
+
`],encapsulation:2})}return i})();var Ao=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({providers:[ko,{provide:Bv,useValue:{separatorKeyCodes:[13]}}],imports:[Fi,se]})}return i})();function jv(i,o){if(i&1&&(s(0,"td",14),m(1),l()),i&2){let e=o.$implicit;c(),O(e.gpuIndex)}}function Hv(i,o){if(i&1&&(s(0,"td",15)(1,"mat-chip",16),m(2),l()()),i&2){let e=o.$implicit,t=_();c(),x("ngClass",t.getVendorCssClass(e)),c(),ie(" ",t.makeGpuNameShort(e.name)+" / "+e.brand," ")}}function Uv(i,o){if(i&1&&(s(0,"td",17)(1,"div",18)(2,"span",19),m(3),Wo(4,"number"),Wo(5,"number"),l(),s(6,"div",20),v(7,"div",21),l()()()),i&2){let e=o.$implicit,t=_();c(3),fi(" ",qo(4,6,e.vramUsed,"1.0-0")," / ",qo(5,9,e.vramTotal,"1.0-0")," GB "),c(4),Be("width",t.vramPercent(e),"%")("background",t.colorForUsage(t.vramPercent(e)))}}function $v(i,o){if(i&1&&(s(0,"td",22)(1,"div",23)(2,"span",24),m(3),l(),s(4,"div",25),v(5,"div",26),l()()()),i&2){let e=o.$implicit,t=_();c(2),Be("color",t.colorForUsage(e.usage)),c(),ie(" ",e.usage,"% "),c(2),Be("width",e.usage,"%")("background",t.colorForUsage(e.usage))}}function Gv(i,o){if(i&1&&(s(0,"td",27)(1,"span",28),m(2),l()()),i&2){let e=o.$implicit,t=_();c(),Be("color",t.colorForTemp(e.temperature)),c(),ie(" ",e.temperature,"\xB0C ")}}function Wv(i,o){if(i&1&&(s(0,"td",29),m(1),l()),i&2){let e=o.$implicit;c(),O(e.pciBusId)}}function qv(i,o){i&1&&v(0,"tr",30)}var Ph=(()=>{class i{constructor(){this.gpus=lo.required(),this.displayedColumns=["index","name","vram","usage","temperature","pciBusId"]}getVendorCssClass(e){return{"gpu-name":!0,"gpu-vendor-nvidia":e.vendor==="NVIDIA","gpu-vendor-amd":e.vendor==="AMD","gpu-vendor-other":!["NVIDIA","AMD"].includes(e.vendor)}}vramPercent(e){return e.vramTotal===0?0:Math.round(e.vramUsed/e.vramTotal*100)}colorForUsage(e){return e<40?"#4caf50":e<75?"#ff9800":"#f44336"}colorForTemp(e){return e<60?"#4caf50":e<80?"#ff9800":"#f44336"}makeGpuNameShort(e){return e=e.replace(/^AMD Radeon RX /,"RX "),e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-gpu-table"]],inputs:{gpus:[1,"gpus"]},decls:16,vars:2,consts:[["mat-table","",1,"gpu-table",3,"dataSource"],["matColumnDef","index"],["mat-cell","","class","index-cell","title","#",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","title","Name",4,"matCellDef"],["matColumnDef","vram"],["mat-cell","","title","VRAM",4,"matCellDef"],["matColumnDef","usage"],["mat-cell","","title","GPU Usage",4,"matCellDef"],["matColumnDef","temperature"],["mat-cell","","title","Temp \xB0C",4,"matCellDef"],["matColumnDef","pciBusId"],["mat-cell","","class","pci-cell","title","PCI Bus",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","","title","#",1,"index-cell"],["mat-cell","","title","Name"],[1,"gpu-name",3,"ngClass"],["mat-cell","","title","VRAM"],[1,"vram-cell"],[1,"vram-text"],[1,"vram-bar-bg"],[1,"vram-bar-fill"],["mat-cell","","title","GPU Usage"],[1,"usage-cell"],[1,"usage-value"],[1,"usage-bar-bg"],[1,"usage-bar-fill"],["mat-cell","","title","Temp \xB0C"],[1,"temp-value"],["mat-cell","","title","PCI Bus",1,"pci-cell"],["mat-row",""]],template:function(t,n){t&1&&(s(0,"mat-card")(1,"mat-card-content")(2,"table",0),hi(3,1),He(4,jv,2,1,"td",2),pi(),hi(5,3),He(6,Hv,3,2,"td",4),pi(),hi(7,5),He(8,Uv,8,12,"td",6),pi(),hi(9,7),He(10,$v,6,7,"td",8),pi(),hi(11,9),He(12,Gv,3,3,"td",10),pi(),hi(13,11),He(14,Wv,2,1,"td",12),pi(),He(15,qv,1,0,"tr",13),l()()()),t&2&&(c(2),x("dataSource",n.gpus()),c(13),x("matRowDefColumns",n.displayedColumns))},dependencies:[Pe,ml,Sh,bh,Ch,yh,wh,xh,Dh,rn,on,an,Ao,Pa,pl],styles:["mat-card[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}mat-card-content[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto}.gpu-table[_ngcontent-%COMP%]{width:100%;white-space:nowrap}.gpu-name[_ngcontent-%COMP%]{font-weight:500}.gpu-vendor-nvidia[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #a4f021}.gpu-vendor-amd[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #ffa1a1}.gpu-vendor-other[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #b6e7ff}.index-cell[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.pci-cell[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;font-size:.85rem;color:#666}.vram-cell[_ngcontent-%COMP%]{min-width:160px}.vram-text[_ngcontent-%COMP%]{display:block;margin-bottom:4px;font-size:.85rem}.vram-bar-bg[_ngcontent-%COMP%]{height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden}.vram-bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:4px;transition:width .4s ease,background .4s ease}.usage-cell[_ngcontent-%COMP%]{min-width:130px}.usage-value[_ngcontent-%COMP%]{display:block;margin-bottom:4px;font-weight:500;font-size:.9rem}.usage-bar-bg[_ngcontent-%COMP%]{height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden}.usage-bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:4px;transition:width .4s ease,background .4s ease}.temp-value[_ngcontent-%COMP%]{font-weight:500;font-size:.95rem}.mat-row[_ngcontent-%COMP%]{transition:background .2s ease;height:44px}.mat-row[_ngcontent-%COMP%]:hover{background:#fafafa}"]})}}return i})();var Fa=class{_attachedHost=null;attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;o!=null&&(this._attachedHost=null,o.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(o){this._attachedHost=o}},wi=class extends Fa{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(o,e,t,n,a,r){super(),this.component=o,this.viewContainerRef=e,this.injector=t,this.projectableNodes=n,this.bindings=a||null,this.directives=r||null}},Rt=class extends Fa{templateRef;viewContainerRef;context;injector;constructor(o,e,t,n){super(),this.templateRef=o,this.viewContainerRef=e,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(o,e=this.context){return this.context=e,super.attach(o)}detach(){return this.context=void 0,super.detach()}},Mc=class extends Fa{element;constructor(o){super(),this.element=o instanceof L?o.nativeElement:o}},yn=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(o){if(o instanceof wi)return this._attachedPortal=o,this.attachComponentPortal(o);if(o instanceof Rt)return this._attachedPortal=o,this.attachTemplatePortal(o);if(this.attachDomPortal&&o instanceof Mc)return this._attachedPortal=o,this.attachDomPortal(o)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Na=class extends yn{outletElement;_appRef;_defaultInjector;constructor(o,e,t){super(),this.outletElement=o,this._appRef=e,this._defaultInjector=t}attachComponentPortal(o){let e;if(o.viewContainerRef){let t=o.injector||o.viewContainerRef.injector,n=t.get(rr,null,{optional:!0})||void 0;e=o.viewContainerRef.createComponent(o.component,{index:o.viewContainerRef.length,injector:t,ngModuleRef:n,projectableNodes:o.projectableNodes||void 0,bindings:o.bindings||void 0,directives:o.directives||void 0}),this.setDisposeFn(()=>e.destroy())}else{let t=this._appRef,n=o.injector||this._defaultInjector||Z.NULL,a=n.get(ui,t.injector);e=cr(o.component,{elementInjector:n,environmentInjector:a,projectableNodes:o.projectableNodes||void 0,bindings:o.bindings||void 0,directives:o.directives||void 0}),t.attachView(e.hostView),this.setDisposeFn(()=>{t.viewCount>0&&t.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=o,e}attachTemplatePortal(o){let e=o.viewContainerRef,t=e.createEmbeddedView(o.templateRef,o.context,{injector:o.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=e.indexOf(t);n!==-1&&e.remove(n)}),this._attachedPortal=o,t}attachDomPortal=o=>{let e=o.element;e.parentNode;let t=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=o,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}};var Ni=(()=>{class i extends yn{_moduleRef=d(rr,{optional:!0});_document=d(K);_viewContainerRef=d(Qe);_isInitialized=!1;_attachedRef=null;get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new Y;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let t=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,n=t.createComponent(e.component,{index:t.length,injector:e.injector||t.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0});return t!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(e){e.setAttachedHost(this);let t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[J]})}return i})(),Li=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({})}return i})();var Fh=Lr();function Oo(i){return new hs(i.get(Yt),i.get(K))}var hs=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(o,e){this._viewportRuler=o,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=Je(-this._previousScrollPosition.left),o.style.top=Je(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let o=this._document.documentElement,e=this._document.body,t=o.style,n=e.style,a=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),Fh&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Fh&&(t.scrollBehavior=a,n.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};function Hh(i,o){return new ps(i.get(bn),i.get($),i.get(Yt),o)}var ps=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(o,e,t,n){this._scrollDispatcher=o,this._ngZone=e,this._viewportRuler=t,this._config=n}attach(o){this._overlayRef,this._overlayRef=o}enable(){if(this._scrollSubscription)return;let o=this._scrollDispatcher.scrolled(0).pipe(Se(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var La=class{enable(){}disable(){}attach(){}};function Ec(i,o){return o.some(e=>{let t=i.bottom<e.top,n=i.top>e.bottom,a=i.right<e.left,r=i.left>e.right;return t||n||a||r})}function Nh(i,o){return o.some(e=>{let t=i.top<e.top,n=i.bottom>e.bottom,a=i.left<e.left,r=i.right>e.right;return t||n||a||r})}function Di(i,o){return new fs(i.get(bn),i.get(Yt),i.get($),o)}var fs=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(o,e,t,n){this._scrollDispatcher=o,this._viewportRuler=e,this._ngZone=t,this._config=n}attach(o){this._overlayRef,this._overlayRef=o}enable(){if(!this._scrollSubscription){let o=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(o).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();Ec(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Uh=(()=>{class i{_injector=d(Z);noop=()=>new La;close=e=>Hh(this._injector,e);block=()=>Oo(this._injector);reposition=e=>Di(this._injector,e);static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})(),Zt=class{positionStrategy;scrollStrategy=new La;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(o){if(o){let e=Object.keys(o);for(let t of e)o[t]!==void 0&&(this[t]=o[t])}}};var gs=class{connectionPair;scrollableViewProperties;constructor(o,e){this.connectionPair=o,this.scrollableViewProperties=e}};var $h=(()=>{class i{_attachedOverlays=[];_document=d(K);_isAttached=!1;ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,t,n){return n.observers.length<1?!1:e.eventPredicate?e.eventPredicate(t):!0}static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})(),Gh=(()=>{class i extends $h{_ngZone=d($);_renderer=d(ot).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--){let a=t[n];if(this.canReceiveEvent(a,e,a._keydownEvents)){this._ngZone.run(()=>a._keydownEvents.next(e));break}}};static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})(),Wh=(()=>{class i extends $h{_platform=d(fe);_ngZone=d($);_renderer=d(ot).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let t=this._document.body,n={capture:!0},a=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[a.listen(t,"pointerdown",this._pointerDownListener,n),a.listen(t,"click",this._clickListener,n),a.listen(t,"auxclick",this._clickListener,n),a.listen(t,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=st(e)};_clickListener=e=>{let t=st(e),n=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let a=this._attachedOverlays.slice();for(let r=a.length-1;r>-1;r--){let u=a[r],h=u._outsidePointerEvents;if(!(!u.hasAttached()||!this.canReceiveEvent(u,e,h))){if(Lh(u.overlayElement,t)||Lh(u.overlayElement,n))break;this._ngZone?this._ngZone.run(()=>h.next(e)):h.next(e)}}};static \u0275fac=function(t){return new(t||i)};static \u0275prov=X({token:i,factory:i.\u0275fac})}return i})();function Lh(i,o){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=o;for(;t;){if(t===i)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var qh=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=I({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
|
|
3020
3020
|
pointer-events: none;
|
|
3021
3021
|
top: 0;
|
|
3022
3022
|
left: 0;
|
|
@@ -5218,7 +5218,7 @@ mat-action-list button::-moz-focus-inner {
|
|
|
5218
5218
|
.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated {
|
|
5219
5219
|
background-color: var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container));
|
|
5220
5220
|
}
|
|
5221
|
-
`,p0=["unscopedContent"],f0=["text"],g0=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],_0=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var v0=new w("ListOption"),b0=(()=>{class i{_elementRef=d(L);static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),y0=(()=>{class i{_elementRef=d(L);static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),C0=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),dp=(()=>{class i{_listOption=d(v0,{optional:!0});_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,hostVars:4,hostBindings:function(t,n){t&2&&p("mdc-list-item__start",n._isAlignedAtStart())("mdc-list-item__end",!n._isAlignedAtStart())}})}return i})(),x0=(()=>{class i extends dp{static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[J]})}return i})(),w0=(()=>{class i extends dp{static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[J]})}return i})(),D0=new w("MAT_LIST_CONFIG"),$c=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ut(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(ut(e))}_disabled=A(!1);_defaultOptions=d(D0,{optional:!0});static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,hostVars:1,hostBindings:function(t,n){t&2&&Q("aria-disabled",n.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),S0=(()=>{class i{_elementRef=d(L);_ngZone=d($);_listBase=d($c,{optional:!0});_platform=d(fe);_hostElement;_isButtonElement;_noopAnimations=be();_avatars;_icons;set lines(e){this._explicitLines=qt(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=ut(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(ut(e))}_disabled=A(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(Ve).load(It);let e=d(Wn,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Gn(this,this._ngZone,this._hostElement,this._platform,d(Z)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Ge(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let t=this._explicitLines??this._inferLinesFromContent(),n=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",t===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",t===3),this._hasUnscopedTextContent){let a=this._titles.length===0&&t===1;n.classList.toggle("mdc-list-item__primary-text",a),n.classList.toggle("mdc-list-item__secondary-text",!a)}else n.classList.remove("mdc-list-item__primary-text"),n.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,contentQueries:function(t,n,a){if(t&1&&rt(a,x0,4)(a,w0,4),t&2){let r;F(r=N())&&(n._avatars=r),F(r=N())&&(n._icons=r)}},hostVars:4,hostBindings:function(t,n){t&2&&(Q("aria-disabled",n.disabled)("disabled",n._isButtonElement&&n.disabled||null),p("mdc-list-item--disabled",n.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var mp=(()=>{class i extends $c{static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275cmp=I({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[re([{provide:$c,useExisting:i}]),J],ngContentSelectors:u0,decls:1,vars:0,template:function(t,n){t&1&&(ge(),G(0))},styles:[h0],encapsulation:2})}return i})(),up=(()=>{class i extends S0{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=ut(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275cmp=I({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,n,a){if(t&1&&rt(a,y0,5)(a,b0,5)(a,C0,5),t&2){let r;F(r=N())&&(n._lines=r),F(r=N())&&(n._titles=r),F(r=N())&&(n._meta=r)}},viewQuery:function(t,n){if(t&1&&Te(p0,5)(f0,5),t&2){let a;F(a=N())&&(n._unscopedContent=a.first),F(a=N())&&(n._itemText=a.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(t,n){t&2&&(Q("aria-current",n._getAriaCurrent()),p("mdc-list-item--activated",n.activated)("mdc-list-item--with-leading-avatar",n._avatars.length!==0)("mdc-list-item--with-leading-icon",n._icons.length!==0)("mdc-list-item--with-trailing-meta",n._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("_mat-animation-noopable",n._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[J],ngContentSelectors:_0,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(t,n){t&1&&(ge(g0),G(0),s(1,"span",1),G(2,1),G(3,2),s(4,"span",2,0),M("cdkObserveContent",function(){return n._updateItemLines(!0)}),G(6,3),l()(),G(7,4),G(8,5),v(9,"div",3))},dependencies:[Hm],encapsulation:2})}return i})();var hp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({imports:[vo,Fi,Is,se,zo]})}return i})();function k0(i,o){i&1&&v(0,"mat-progress-bar",5)}function M0(i,o){i&1&&(s(0,"span",13),m(1,"(removed)"),l())}function E0(i,o){i&1&&(s(0,"mat-icon"),m(1,"check_box"),l())}function T0(i,o){i&1&&(s(0,"mat-icon"),m(1,"check_box_outline_blank"),l())}function A0(i,o){if(i&1){let e=ve();s(0,"mat-list-item")(1,"div",11)(2,"span",12),m(3),l(),S(4,M0,2,0,"span",13),s(5,"button",14),M("click",function(){let n=ee(e).$implicit,a=_(3);return te(a.toggle(n))}),S(6,E0,2,0,"mat-icon")(7,T0,2,0,"mat-icon"),l()()()}if(i&2){let e=o.$implicit,t=_(3);p("orphaned",t.isOrphaned(e)),c(3),O(e),c(),k(t.isOrphaned(e)?4:-1),c(),Q("aria-label","Toggle "+e),c(),k(t.isManaged(e)?6:7)}}function I0(i,o){if(i&1&&(s(0,"mat-list"),oe(1,A0,8,6,"mat-list-item",10,at),l()),i&2){let e=_(2);c(),ae(e.filteredServices)}}function R0(i,o){if(i&1&&m(0),i&2){let e=_(3);ie(' No services match "',e.filter(),'" ')}}function O0(i,o){i&1&&m(0," No installed services found ")}function P0(i,o){if(i&1&&(s(0,"p",9),S(1,R0,1,1)(2,O0,1,0),l()),i&2){let e=_(2);c(),k(e.filter()?1:2)}}function F0(i,o){if(i&1&&(s(0,"div",6),S(1,I0,3,0,"mat-list")(2,P0,3,1,"p",9),l()),i&2){let e=_();c(),k(e.filteredServices.length>0?1:2)}}var pp=(()=>{class i{constructor(){this.serviceService=d(xt),this.dialogRef=d(ht),this.available=A([]),this.managed=A(new Set),this.orphaned=A(new Set),this.loading=A(!0),this.filter=A("")}ngOnInit(){return q(this,null,function*(){try{let[e,t]=yield Promise.all([le(this.serviceService.listAvailableServices()),le(this.serviceService.listManagedServices())]);this.available.set(e),this.managed.set(new Set(t));let n=new Set(e),a=t.filter(r=>!n.has(r));this.orphaned.set(new Set(a))}catch(e){console.error("[ManagedServicesDialog] load error:",e)}finally{this.loading.set(!1)}})}get filteredServices(){let e=this.available(),t=this.orphaned(),n=[...new Set([...e,...t])].sort(),a=this.filter();if(!a)return n;let r=a.toLowerCase();return n.filter(u=>u.toLowerCase().includes(r))}isOrphaned(e){return this.orphaned().has(e)}isManaged(e){return this.managed().has(e)}toggle(e){return q(this,null,function*(){try{this.isManaged(e)?yield le(this.serviceService.removeManagedService(e)):yield le(this.serviceService.addManagedService(e));let t=new Set(this.managed());t.has(e)?t.delete(e):t.add(e),this.managed.set(t)}catch(t){console.error(`[ManagedServicesDialog] toggle error (${e}):`,t)}})}close(){this.dialogRef.close(!0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-managed-services-dialog"]],decls:13,vars:2,consts:[[1,"dialog-container"],["mat-dialog-title",""],[1,"dialog-description"],["appearance","outline",1,"filter-field"],["matInput","","placeholder","Filter services...",3,"input","value"],["mode","indeterminate"],[1,"services-list"],["align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"no-services"],[3,"orphaned"],[1,"service-row"],[1,"service-name"],[1,"orphaned-hint"],["mat-icon-button","",3,"click"]],template:function(t,n){t&1&&(s(0,"div",0)(1,"h2",1),m(2,"Manage services"),l(),s(3,"mat-dialog-content")(4,"p",2),m(5,"Select which system services to control."),l(),s(6,"mat-form-field",3)(7,"input",4),M("input",function(r){return n.filter.set(r.target.value)}),l()(),S(8,k0,1,0,"mat-progress-bar",5)(9,F0,3,1,"div",6),l(),s(10,"mat-dialog-actions",7)(11,"button",8),M("click",function(){return n.close()}),m(12,"Done"),l()()()),t&2&&(c(7),x("value",n.filter()),c(),k(n.loading()?8:9))},dependencies:[Pe,Ke,Xe,vi,Ct,Bt,jt,zt,Bo,hp,mp,up,ni,Ii,At,Tt,ri,ai,yt,bt],styles:[".dialog-container[_ngcontent-%COMP%]{min-width:400px;max-width:500px}mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:8px}.dialog-description[_ngcontent-%COMP%]{margin:0 0 12px;color:#666;font-size:.9rem}.filter-field[_ngcontent-%COMP%]{width:100%;margin-bottom:8px}.services-list[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto}.service-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%}.service-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:0}.service-name[_ngcontent-%COMP%]{font-family:monospace;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.no-services[_ngcontent-%COMP%]{text-align:center;color:#999;font-size:.9rem;padding:16px 0}mat-list-item.orphaned[_ngcontent-%COMP%] .service-name[_ngcontent-%COMP%]{color:#999}mat-list-item.orphaned[_ngcontent-%COMP%] .orphaned-hint[_ngcontent-%COMP%]{color:#bbb;font-size:.8rem;font-style:italic;margin-right:8px}"]})}}return i})();var N0=(i,o)=>o.name;function L0(i,o){i&1&&v(0,"mat-progress-bar",4)}function V0(i,o){if(i&1){let e=ve();s(0,"button",14),M("click",function(){ee(e);let n=_().$implicit,a=_(2);return te(a.restore(n.name))}),s(1,"mat-icon"),m(2,"restore"),l()()}if(i&2){let e=_(3);x("disabled",e.busy()!==null)}}function B0(i,o){if(i&1){let e=ve();s(0,"button",15),M("click",function(){ee(e);let n=_().$implicit,a=_(2);return te(a.archive(n.name))}),s(1,"mat-icon"),m(2,"inventory_2"),l()()}if(i&2){let e=_(3);x("disabled",e.busy()!==null)}}function z0(i,o){if(i&1){let e=ve();s(0,"div",9)(1,"span",10),m(2),l(),S(3,V0,3,1,"button",11)(4,B0,3,1,"button",12),s(5,"button",13),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.remove(n.name,n.archived))}),s(6,"mat-icon"),m(7,"delete"),l()()()}if(i&2){let e=o.$implicit,t=_(2);c(),p("archived",e.archived),x("title",e.name),c(),O(e.name),c(),k(e.archived?3:4),c(2),x("disabled",t.busy()!==null)}}function j0(i,o){if(i&1&&(s(0,"div",5),oe(1,z0,8,6,"div",9,N0),l()),i&2){let e=_();c(),ae(e.filtered())}}function H0(i,o){if(i&1&&m(0),i&2){let e=_(2);ie(' No services match "',e.filter().trim(),'". ')}}function U0(i,o){i&1&&m(0," No services configured. ")}function $0(i,o){if(i&1&&(s(0,"p",6),S(1,H0,1,1)(2,U0,1,0),l()),i&2){let e=_();c(),k(e.filter().trim()?1:2)}}var fp=(()=>{class i{constructor(){this.serviceService=d(xt),this.dialogRef=d(ht),this.snackBar=d(ks),this.active=A([]),this.archived=A([]),this.loading=A(!0),this.busy=A(null),this.filter=A(""),this.entries=U(()=>[...this.active().map(e=>({name:e.name,archived:!1})),...this.archived().map(e=>({name:e.name,archived:!0}))].sort((e,t)=>e.name.localeCompare(t.name))),this.filtered=U(()=>{let e=this.filter().trim().toLowerCase(),t=this.entries();return e?t.filter(n=>n.name.toLowerCase().includes(e)):t}),this.dirty=!1}onFilterInput(e){this.filter.set(e.target.value)}ngOnInit(){return q(this,null,function*(){try{let[e,t]=yield Promise.all([le(this.serviceService.fetchConfigs()),le(this.serviceService.fetchArchivedConfigs())]);this.active.set(e),this.archived.set(t)}catch(e){console.error("[ArchiveDialog] load error:",e)}finally{this.loading.set(!1)}})}archive(e){return q(this,null,function*(){this.busy.set(e);try{let t=this.active().find(n=>n.name===e);yield le(this.serviceService.archiveService(e)),t&&(this.active.set(this.active().filter(n=>n.name!==e)),this.archived.set([...this.archived(),t])),this.dirty=!0}catch(t){this.showError(`Archive "${e}": ${this.errorText(t)}`)}finally{this.busy.set(null)}})}restore(e){return q(this,null,function*(){this.busy.set(e);try{let t=this.archived().find(n=>n.name===e);yield le(this.serviceService.restoreService(e)),t&&(this.archived.set(this.archived().filter(n=>n.name!==e)),this.active.set([...this.active(),t])),this.dirty=!0}catch(t){this.showError(`Restore "${e}": ${this.errorText(t)}`)}finally{this.busy.set(null)}})}remove(e,t){return q(this,null,function*(){let n=t?`Delete archived service "${e}"? Its config will be permanently removed.`:`Delete service "${e}"? Its systemd unit will be uninstalled and its config permanently removed.`;if(confirm(n)){this.busy.set(e);try{yield le(this.serviceService.deleteConfig(e)),this.active.set(this.active().filter(a=>a.name!==e)),this.archived.set(this.archived().filter(a=>a.name!==e)),this.dirty=!0}catch(a){this.showError(`Delete "${e}": ${this.errorText(a)}`)}finally{this.busy.set(null)}}})}showError(e){this.snackBar.open(e,"Dismiss",{duration:6e3,horizontalPosition:"center",verticalPosition:"top"})}errorText(e){return e instanceof Wt?e.error?.error??e.message:String(e)}close(){this.dialogRef.close(this.dirty)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-archive-dialog"]],decls:13,vars:2,consts:[[1,"dialog-container"],["mat-dialog-title",""],[1,"dialog-description"],["type","text","placeholder","Filter by name\u2026",1,"archive-filter",3,"input","value"],["mode","indeterminate"],[1,"entry-list"],[1,"empty-panel"],["align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"entry"],[1,"entry-name",3,"title"],["mat-icon-button","","title","Restore from archive",1,"entry-btn",3,"disabled"],["mat-icon-button","","title","Move to archive",1,"entry-btn",3,"disabled"],["mat-icon-button","","title","Delete service",1,"entry-btn","delete-btn",3,"click","disabled"],["mat-icon-button","","title","Restore from archive",1,"entry-btn",3,"click","disabled"],["mat-icon-button","","title","Move to archive",1,"entry-btn",3,"click","disabled"]],template:function(t,n){t&1&&(s(0,"div",0)(1,"h2",1),m(2,"Archive"),l(),s(3,"mat-dialog-content")(4,"p",2),m(5," Archive a service to stop, uninstall, and shelve its config \u2014 restore it any time. Archived services are shown grayed out. "),l(),s(6,"input",3),M("input",function(r){return n.onFilterInput(r)}),l(),S(7,L0,1,0,"mat-progress-bar",4)(8,j0,3,0,"div",5)(9,$0,3,1,"p",6),l(),s(10,"mat-dialog-actions",7)(11,"button",8),M("click",function(){return n.close()}),m(12,"Done"),l()()()),t&2&&(c(6),x("value",n.filter()),c(),k(n.loading()?7:n.filtered().length>0?8:9))},dependencies:[Pe,Ke,Xe,vi,Ct,Bt,jt,zt,ni,Ii,yt,bt],styles:['@charset "UTF-8";.dialog-container[_ngcontent-%COMP%]{min-width:560px;max-width:640px}mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:8px}.dialog-description[_ngcontent-%COMP%]{margin:0 0 12px;color:#666;font-size:.9rem}.archive-filter[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:8px 10px;margin-bottom:8px;font-size:.9rem;border:1px solid #e0e0e0;border-radius:6px;background-color:#fafafa;color:#333}.archive-filter[_ngcontent-%COMP%]:focus{outline:none;border-color:#9e9e9e}.entry-list[_ngcontent-%COMP%]{border:1px solid #e0e0e0;border-radius:8px;padding:4px 0;max-height:calc(100vh - 400px);min-height:120px;overflow-y:auto}.entry[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:4px 12px}.entry[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.entry-name[_ngcontent-%COMP%]{flex:1;font-family:monospace;font-size:.9rem;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-name.archived[_ngcontent-%COMP%]{color:#999}.entry-btn[_ngcontent-%COMP%]{flex-shrink:0}.delete-btn[_ngcontent-%COMP%]{color:#b71c1c}.empty-panel[_ngcontent-%COMP%]{text-align:center;color:#999;font-size:.9rem;padding:16px 0;margin:0}']})}}return i})();var gp=new w("CdkAccordion");var _p=(()=>{class i{accordion=d(gp,{optional:!0,skipSelf:!0});_changeDetectorRef=d(ce);_expansionDispatcher=d(Oa);_openCloseAllSubscription=ke.EMPTY;closed=new Y;opened=new Y;destroyed=new Y;expandedChange=new Y;id=d(De).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=A(!1);_removeUniqueSelectionListener=()=>{};ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[re([{provide:gp,useValue:void 0}])]})}return i})(),vp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({})}return i})();var G0=["body"],W0=["bodyWrapper"],q0=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],K0=["mat-expansion-panel-header","*","mat-action-row"];function Y0(i,o){}var X0=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Z0=["mat-panel-title","mat-panel-description","*"];function Q0(i,o){i&1&&(Re(0,"span",1),Ei(),Re(1,"svg",2),ft(2,"path",3),Ue()())}var bp=new w("MAT_ACCORDION"),yp=new w("MAT_EXPANSION_PANEL"),J0=(()=>{class i{_template=d(Ze);_expansionPanel=d(yp,{optional:!0});static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]})}return i})(),Cp=new w("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Wa=(()=>{class i extends _p{_viewContainerRef=d(Qe);_animationsDisabled=be();_document=d(K);_ngZone=d($);_elementRef=d(L);_renderer=d(we);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new Y;afterCollapse=new Y;_inputChanges=new R;accordion=d(bp,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=d(De).getId("mat-expansion-panel-header-");constructor(){super();let e=d(Cp,{optional:!0});this._expansionDispatcher=d(Oa),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Me(null),Se(()=>this.expanded&&!this._portal),dt(1)).subscribe(()=>{this._portal=new Rt(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:t})=>{e===this._bodyWrapper?.nativeElement&&t==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=I({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(t,n,a){if(t&1&&rt(a,J0,5),t&2){let r;F(r=N())&&(n._lazyContent=r.first)}},viewQuery:function(t,n){if(t&1&&Te(G0,5)(W0,5),t&2){let a;F(a=N())&&(n._body=a.first),F(a=N())&&(n._bodyWrapper=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(t,n){t&2&&p("mat-expanded",n.expanded)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[re([{provide:bp,useValue:void 0},{provide:yp,useExisting:i}]),J,Ee],ngContentSelectors:K0,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,n){t&1&&(ge(q0),G(0),s(1,"div",2,0)(3,"div",3,1)(5,"div",4),G(6,1),He(7,Y0,0,0,"ng-template",5),l(),G(8,2),l()()),t&2&&(c(),Q("inert",n.expanded?null:""),c(2),x("id",n.id),Q("aria-labelledby",n._headerId),c(4),x("cdkPortalOutlet",n._portal))},dependencies:[Ni],styles:[`.mat-expansion-panel {
|
|
5221
|
+
`,p0=["unscopedContent"],f0=["text"],g0=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],_0=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var v0=new w("ListOption"),b0=(()=>{class i{_elementRef=d(L);static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),y0=(()=>{class i{_elementRef=d(L);static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),C0=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),dp=(()=>{class i{_listOption=d(v0,{optional:!0});_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,hostVars:4,hostBindings:function(t,n){t&2&&p("mdc-list-item__start",n._isAlignedAtStart())("mdc-list-item__end",!n._isAlignedAtStart())}})}return i})(),x0=(()=>{class i extends dp{static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[J]})}return i})(),w0=(()=>{class i extends dp{static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275dir=E({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[J]})}return i})(),D0=new w("MAT_LIST_CONFIG"),$c=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ut(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(ut(e))}_disabled=A(!1);_defaultOptions=d(D0,{optional:!0});static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,hostVars:1,hostBindings:function(t,n){t&2&&Q("aria-disabled",n.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),S0=(()=>{class i{_elementRef=d(L);_ngZone=d($);_listBase=d($c,{optional:!0});_platform=d(fe);_hostElement;_isButtonElement;_noopAnimations=be();_avatars;_icons;set lines(e){this._explicitLines=qt(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=ut(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(ut(e))}_disabled=A(!1);_subscriptions=new ke;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(Ve).load(It);let e=d(Wn,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Gn(this,this._ngZone,this._hostElement,this._platform,d(Z)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Ge(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let t=this._explicitLines??this._inferLinesFromContent(),n=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",t===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",t===3),this._hasUnscopedTextContent){let a=this._titles.length===0&&t===1;n.classList.toggle("mdc-list-item__primary-text",a),n.classList.toggle("mdc-list-item__secondary-text",!a)}else n.classList.remove("mdc-list-item__primary-text"),n.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,contentQueries:function(t,n,a){if(t&1&&rt(a,x0,4)(a,w0,4),t&2){let r;F(r=N())&&(n._avatars=r),F(r=N())&&(n._icons=r)}},hostVars:4,hostBindings:function(t,n){t&2&&(Q("aria-disabled",n.disabled)("disabled",n._isButtonElement&&n.disabled||null),p("mdc-list-item--disabled",n.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var mp=(()=>{class i extends $c{static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275cmp=I({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[re([{provide:$c,useExisting:i}]),J],ngContentSelectors:u0,decls:1,vars:0,template:function(t,n){t&1&&(ge(),G(0))},styles:[h0],encapsulation:2})}return i})(),up=(()=>{class i extends S0{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=ut(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=xe(i)))(n||i)}})();static \u0275cmp=I({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,n,a){if(t&1&&rt(a,y0,5)(a,b0,5)(a,C0,5),t&2){let r;F(r=N())&&(n._lines=r),F(r=N())&&(n._titles=r),F(r=N())&&(n._meta=r)}},viewQuery:function(t,n){if(t&1&&Te(p0,5)(f0,5),t&2){let a;F(a=N())&&(n._unscopedContent=a.first),F(a=N())&&(n._itemText=a.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(t,n){t&2&&(Q("aria-current",n._getAriaCurrent()),p("mdc-list-item--activated",n.activated)("mdc-list-item--with-leading-avatar",n._avatars.length!==0)("mdc-list-item--with-leading-icon",n._icons.length!==0)("mdc-list-item--with-trailing-meta",n._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("_mat-animation-noopable",n._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[J],ngContentSelectors:_0,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(t,n){t&1&&(ge(g0),G(0),s(1,"span",1),G(2,1),G(3,2),s(4,"span",2,0),M("cdkObserveContent",function(){return n._updateItemLines(!0)}),G(6,3),l()(),G(7,4),G(8,5),v(9,"div",3))},dependencies:[Hm],encapsulation:2})}return i})();var hp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({imports:[vo,Fi,Is,se,zo]})}return i})();function k0(i,o){i&1&&v(0,"mat-progress-bar",5)}function M0(i,o){i&1&&(s(0,"span",13),m(1,"(removed)"),l())}function E0(i,o){i&1&&(s(0,"mat-icon"),m(1,"check_box"),l())}function T0(i,o){i&1&&(s(0,"mat-icon"),m(1,"check_box_outline_blank"),l())}function A0(i,o){if(i&1){let e=ve();s(0,"mat-list-item")(1,"div",11)(2,"span",12),m(3),l(),S(4,M0,2,0,"span",13),s(5,"button",14),M("click",function(){let n=ee(e).$implicit,a=_(3);return te(a.toggle(n))}),S(6,E0,2,0,"mat-icon")(7,T0,2,0,"mat-icon"),l()()()}if(i&2){let e=o.$implicit,t=_(3);p("orphaned",t.isOrphaned(e)),c(3),O(e),c(),k(t.isOrphaned(e)?4:-1),c(),Q("aria-label","Toggle "+e),c(),k(t.isManaged(e)?6:7)}}function I0(i,o){if(i&1&&(s(0,"mat-list"),oe(1,A0,8,6,"mat-list-item",10,at),l()),i&2){let e=_(2);c(),ae(e.filteredServices)}}function R0(i,o){if(i&1&&m(0),i&2){let e=_(3);ie(' No services match "',e.filter(),'" ')}}function O0(i,o){i&1&&m(0," No installed services found ")}function P0(i,o){if(i&1&&(s(0,"p",9),S(1,R0,1,1)(2,O0,1,0),l()),i&2){let e=_(2);c(),k(e.filter()?1:2)}}function F0(i,o){if(i&1&&(s(0,"div",6),S(1,I0,3,0,"mat-list")(2,P0,3,1,"p",9),l()),i&2){let e=_();c(),k(e.filteredServices.length>0?1:2)}}var pp=(()=>{class i{constructor(){this.serviceService=d(xt),this.dialogRef=d(ht),this.available=A([]),this.managed=A(new Set),this.orphaned=A(new Set),this.loading=A(!0),this.filter=A("")}ngOnInit(){return q(this,null,function*(){try{let[e,t]=yield Promise.all([le(this.serviceService.listAvailableServices()),le(this.serviceService.listManagedServices())]);this.available.set(e),this.managed.set(new Set(t));let n=new Set(e),a=t.filter(r=>!n.has(r));this.orphaned.set(new Set(a))}catch(e){console.error("[ManagedServicesDialog] load error:",e)}finally{this.loading.set(!1)}})}get filteredServices(){let e=this.available(),t=this.orphaned(),n=[...new Set([...e,...t])].sort(),a=this.filter();if(!a)return n;let r=a.toLowerCase();return n.filter(u=>u.toLowerCase().includes(r))}isOrphaned(e){return this.orphaned().has(e)}isManaged(e){return this.managed().has(e)}toggle(e){return q(this,null,function*(){try{this.isManaged(e)?yield le(this.serviceService.removeManagedService(e)):yield le(this.serviceService.addManagedService(e));let t=new Set(this.managed());t.has(e)?t.delete(e):t.add(e),this.managed.set(t)}catch(t){console.error(`[ManagedServicesDialog] toggle error (${e}):`,t)}})}close(){this.dialogRef.close(!0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-managed-services-dialog"]],decls:13,vars:2,consts:[[1,"dialog-container"],["mat-dialog-title",""],[1,"dialog-description"],["appearance","outline",1,"filter-field"],["matInput","","placeholder","Filter services...",3,"input","value"],["mode","indeterminate"],[1,"services-list"],["align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"no-services"],[3,"orphaned"],[1,"service-row"],[1,"service-name"],[1,"orphaned-hint"],["mat-icon-button","",3,"click"]],template:function(t,n){t&1&&(s(0,"div",0)(1,"h2",1),m(2,"Manage services"),l(),s(3,"mat-dialog-content")(4,"p",2),m(5,"Select which system services to control."),l(),s(6,"mat-form-field",3)(7,"input",4),M("input",function(r){return n.filter.set(r.target.value)}),l()(),S(8,k0,1,0,"mat-progress-bar",5)(9,F0,3,1,"div",6),l(),s(10,"mat-dialog-actions",7)(11,"button",8),M("click",function(){return n.close()}),m(12,"Done"),l()()()),t&2&&(c(7),x("value",n.filter()),c(),k(n.loading()?8:9))},dependencies:[Pe,Ke,Xe,vi,Ct,Bt,jt,zt,Bo,hp,mp,up,ni,Ii,At,Tt,ri,ai,yt,bt],styles:[".dialog-container[_ngcontent-%COMP%]{min-width:400px;max-width:500px}mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:8px}.dialog-description[_ngcontent-%COMP%]{margin:0 0 12px;color:#666;font-size:.9rem}.filter-field[_ngcontent-%COMP%]{width:100%;margin-bottom:8px}.services-list[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto}.service-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%}.service-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:0}.service-name[_ngcontent-%COMP%]{font-family:monospace;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.no-services[_ngcontent-%COMP%]{text-align:center;color:#999;font-size:.9rem;padding:16px 0}mat-list-item.orphaned[_ngcontent-%COMP%] .service-name[_ngcontent-%COMP%]{color:#999}mat-list-item.orphaned[_ngcontent-%COMP%] .orphaned-hint[_ngcontent-%COMP%]{color:#bbb;font-size:.8rem;font-style:italic;margin-right:8px}"]})}}return i})();var N0=(i,o)=>o.name;function L0(i,o){i&1&&v(0,"mat-progress-bar",4)}function V0(i,o){if(i&1){let e=ve();s(0,"button",14),M("click",function(){ee(e);let n=_().$implicit,a=_(2);return te(a.restore(n.name))}),s(1,"mat-icon"),m(2,"restore"),l()()}if(i&2){let e=_(3);x("disabled",e.busy()!==null)}}function B0(i,o){if(i&1){let e=ve();s(0,"button",15),M("click",function(){ee(e);let n=_().$implicit,a=_(2);return te(a.archive(n.name))}),s(1,"mat-icon"),m(2,"inventory_2"),l()()}if(i&2){let e=_(3);x("disabled",e.busy()!==null)}}function z0(i,o){if(i&1){let e=ve();s(0,"div",9)(1,"span",10),m(2),l(),S(3,V0,3,1,"button",11)(4,B0,3,1,"button",12),s(5,"button",13),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.remove(n.name,n.archived))}),s(6,"mat-icon"),m(7,"delete"),l()()()}if(i&2){let e=o.$implicit,t=_(2);c(),p("archived",e.archived),x("title",e.name),c(),O(e.name),c(),k(e.archived?3:4),c(2),x("disabled",t.busy()!==null)}}function j0(i,o){if(i&1&&(s(0,"div",5),oe(1,z0,8,6,"div",9,N0),l()),i&2){let e=_();c(),ae(e.filtered())}}function H0(i,o){if(i&1&&m(0),i&2){let e=_(2);ie(' No services match "',e.filter().trim(),'". ')}}function U0(i,o){i&1&&m(0," No services configured. ")}function $0(i,o){if(i&1&&(s(0,"p",6),S(1,H0,1,1)(2,U0,1,0),l()),i&2){let e=_();c(),k(e.filter().trim()?1:2)}}var fp=(()=>{class i{constructor(){this.serviceService=d(xt),this.dialogRef=d(ht),this.snackBar=d(ks),this.active=A([]),this.archived=A([]),this.loading=A(!0),this.busy=A(null),this.filter=A(""),this.entries=U(()=>[...this.active().map(e=>({name:e.name,archived:!1})),...this.archived().map(e=>({name:e.name,archived:!0}))].sort((e,t)=>e.name.localeCompare(t.name))),this.filtered=U(()=>{let e=this.filter().trim().toLowerCase(),t=this.entries();return e?t.filter(n=>n.name.toLowerCase().includes(e)):t}),this.dirty=!1}onFilterInput(e){this.filter.set(e.target.value)}ngOnInit(){return q(this,null,function*(){try{let[e,t]=yield Promise.all([le(this.serviceService.fetchConfigs()),le(this.serviceService.fetchArchivedConfigs())]);this.active.set(e),this.archived.set(t)}catch(e){console.error("[ArchiveDialog] load error:",e)}finally{this.loading.set(!1)}})}archive(e){return q(this,null,function*(){this.busy.set(e);try{let t=this.active().find(n=>n.name===e);yield le(this.serviceService.archiveService(e)),t&&(this.active.set(this.active().filter(n=>n.name!==e)),this.archived.set([...this.archived(),t])),this.dirty=!0}catch(t){this.showError(`Archive "${e}": ${this.errorText(t)}`)}finally{this.busy.set(null)}})}restore(e){return q(this,null,function*(){this.busy.set(e);try{let t=this.archived().find(n=>n.name===e);yield le(this.serviceService.restoreService(e)),t&&(this.archived.set(this.archived().filter(n=>n.name!==e)),this.active.set([...this.active(),t])),this.dirty=!0}catch(t){this.showError(`Restore "${e}": ${this.errorText(t)}`)}finally{this.busy.set(null)}})}remove(e,t){return q(this,null,function*(){let n=t?`Delete archived service "${e}"? Its config will be permanently removed.`:`Delete service "${e}"? Its systemd unit will be uninstalled and its config permanently removed.`;if(confirm(n)){this.busy.set(e);try{yield le(this.serviceService.deleteConfig(e)),this.active.set(this.active().filter(a=>a.name!==e)),this.archived.set(this.archived().filter(a=>a.name!==e)),this.dirty=!0}catch(a){this.showError(`Delete "${e}": ${this.errorText(a)}`)}finally{this.busy.set(null)}}})}showError(e){this.snackBar.open(e,"Dismiss",{duration:6e3,horizontalPosition:"center",verticalPosition:"top"})}errorText(e){return e instanceof Wt?e.error?.error??e.message:String(e)}close(){this.dialogRef.close(this.dirty)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-archive-dialog"]],decls:13,vars:2,consts:[[1,"dialog-container"],["mat-dialog-title",""],[1,"dialog-description"],["type","text","placeholder","Filter by name\u2026",1,"archive-filter",3,"input","value"],["mode","indeterminate"],[1,"entry-list"],[1,"empty-panel"],["align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"entry"],[1,"entry-name",3,"title"],["mat-icon-button","","title","Restore from archive",1,"entry-btn",3,"disabled"],["mat-icon-button","","title","Move to archive",1,"entry-btn",3,"disabled"],["mat-icon-button","","title","Delete service",1,"entry-btn","delete-btn",3,"click","disabled"],["mat-icon-button","","title","Restore from archive",1,"entry-btn",3,"click","disabled"],["mat-icon-button","","title","Move to archive",1,"entry-btn",3,"click","disabled"]],template:function(t,n){t&1&&(s(0,"div",0)(1,"h2",1),m(2,"Archive"),l(),s(3,"mat-dialog-content")(4,"p",2),m(5," Archive a service to stop, uninstall, and shelve its config \u2014 restore it any time. Archived services are shown grayed out. "),l(),s(6,"input",3),M("input",function(r){return n.onFilterInput(r)}),l(),S(7,L0,1,0,"mat-progress-bar",4)(8,j0,3,0,"div",5)(9,$0,3,1,"p",6),l(),s(10,"mat-dialog-actions",7)(11,"button",8),M("click",function(){return n.close()}),m(12,"Done"),l()()()),t&2&&(c(6),x("value",n.filter()),c(),k(n.loading()?7:n.filtered().length>0?8:9))},dependencies:[Pe,Ke,Xe,vi,Ct,Bt,jt,zt,ni,Ii,yt,bt],styles:['@charset "UTF-8";.dialog-container[_ngcontent-%COMP%]{min-width:560px;max-width:640px;height:80vh;display:flex;flex-direction:column}mat-dialog-title[_ngcontent-%COMP%]{flex:0 0 auto;margin-bottom:8px}mat-dialog-content[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}.dialog-description[_ngcontent-%COMP%]{flex:0 0 auto;margin:0 0 12px;color:#666;font-size:.9rem}.archive-filter[_ngcontent-%COMP%]{flex:0 0 auto;width:100%;box-sizing:border-box;padding:8px 10px;margin-bottom:8px;font-size:.9rem;border:1px solid #e0e0e0;border-radius:6px;background-color:#fafafa;color:#333}.archive-filter[_ngcontent-%COMP%]:focus{outline:none;border-color:#9e9e9e}mat-dialog-actions[_ngcontent-%COMP%]{flex:0 0 auto}.entry-list[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;border:1px solid #e0e0e0;border-radius:8px;padding:4px 0}.entry[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:4px 12px}.entry[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.entry-name[_ngcontent-%COMP%]{flex:1;font-family:monospace;font-size:.9rem;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-name.archived[_ngcontent-%COMP%]{color:#999}.entry-btn[_ngcontent-%COMP%]{flex-shrink:0}.delete-btn[_ngcontent-%COMP%]{color:#b71c1c}.empty-panel[_ngcontent-%COMP%]{text-align:center;color:#999;font-size:.9rem;padding:16px 0;margin:0}']})}}return i})();var gp=new w("CdkAccordion");var _p=(()=>{class i{accordion=d(gp,{optional:!0,skipSelf:!0});_changeDetectorRef=d(ce);_expansionDispatcher=d(Oa);_openCloseAllSubscription=ke.EMPTY;closed=new Y;opened=new Y;destroyed=new Y;expandedChange=new Y;id=d(De).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=A(!1);_removeUniqueSelectionListener=()=>{};ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",V],disabled:[2,"disabled","disabled",V]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[re([{provide:gp,useValue:void 0}])]})}return i})(),vp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=H({type:i});static \u0275inj=j({})}return i})();var G0=["body"],W0=["bodyWrapper"],q0=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],K0=["mat-expansion-panel-header","*","mat-action-row"];function Y0(i,o){}var X0=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Z0=["mat-panel-title","mat-panel-description","*"];function Q0(i,o){i&1&&(Re(0,"span",1),Ei(),Re(1,"svg",2),ft(2,"path",3),Ue()())}var bp=new w("MAT_ACCORDION"),yp=new w("MAT_EXPANSION_PANEL"),J0=(()=>{class i{_template=d(Ze);_expansionPanel=d(yp,{optional:!0});static \u0275fac=function(t){return new(t||i)};static \u0275dir=E({type:i,selectors:[["ng-template","matExpansionPanelContent",""]]})}return i})(),Cp=new w("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Wa=(()=>{class i extends _p{_viewContainerRef=d(Qe);_animationsDisabled=be();_document=d(K);_ngZone=d($);_elementRef=d(L);_renderer=d(we);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new Y;afterCollapse=new Y;_inputChanges=new R;accordion=d(bp,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=d(De).getId("mat-expansion-panel-header-");constructor(){super();let e=d(Cp,{optional:!0});this._expansionDispatcher=d(Oa),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Me(null),Se(()=>this.expanded&&!this._portal),dt(1)).subscribe(()=>{this._portal=new Rt(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:t})=>{e===this._bodyWrapper?.nativeElement&&t==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=I({type:i,selectors:[["mat-expansion-panel"]],contentQueries:function(t,n,a){if(t&1&&rt(a,J0,5),t&2){let r;F(r=N())&&(n._lazyContent=r.first)}},viewQuery:function(t,n){if(t&1&&Te(G0,5)(W0,5),t&2){let a;F(a=N())&&(n._body=a.first),F(a=N())&&(n._bodyWrapper=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(t,n){t&2&&p("mat-expanded",n.expanded)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",V],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[re([{provide:bp,useValue:void 0},{provide:yp,useExisting:i}]),J,Ee],ngContentSelectors:K0,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,n){t&1&&(ge(q0),G(0),s(1,"div",2,0)(3,"div",3,1)(5,"div",4),G(6,1),He(7,Y0,0,0,"ng-template",5),l(),G(8,2),l()()),t&2&&(c(),Q("inert",n.expanded?null:""),c(2),x("id",n.id),Q("aria-labelledby",n._headerId),c(4),x("cdkPortalOutlet",n._portal))},dependencies:[Ni],styles:[`.mat-expansion-panel {
|
|
5222
5222
|
box-sizing: content-box;
|
|
5223
5223
|
display: block;
|
|
5224
5224
|
margin: 0;
|
|
@@ -5594,7 +5594,7 @@ HSA_OVERRIDE_GFX_VERSION=11.0.0`,"matTooltip","Environment variables for the ser
|
|
|
5594
5594
|
`)){let h=u.trim();h&&h.startsWith("--")&&e.push(h)}return e}parseEnvironment(){let e={};for(let t of this.form.controls.envText.value.split(`
|
|
5595
5595
|
`)){let n=t.trim();if(!n||n.startsWith("#"))continue;let a=n.indexOf("=");a<=0||(e[n.slice(0,a).trim()]=n.slice(a+1))}return e}save(){if(this.form.invalid)return;let e=this.parseEnvironment(),t=B({name:this.form.controls.name.value.trim(),type:"vllm",command:this.form.controls.command.value.trim(),flags:this.buildFlags()},Object.keys(e).length?{environment:e}:{}),n=(this.form.controls.user.value??"").trim(),a=(this.form.controls.group.value??"").trim(),r=this.form.controls.restart.value;n&&(t.user=n),a&&(t.group=a),r&&r!=="no"&&(t.restart=r),this.dialogRef.close(t)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-vllm-dialog"]],decls:279,vars:108,consts:[["commandAuto","matAutocomplete"],["modelAuto","matAutocomplete"],["maxLenAuto","matAutocomplete"],["hostAuto","matAutocomplete"],["mat-dialog-title",""],[1,"vllm-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name","placeholder","e.g. vllm-qwen-bf16-4gpu",3,"disabled"],["matInput","","formControlName","command","placeholder","/path/to/vllm/run.sh",3,"matAutocomplete"],[3,"value"],["expanded",""],["matInput","","formControlName","model","placeholder","unsloth/Qwen3.8-27B or /path/to/model","matTooltip","Model to serve. HF repo id or local path. Passed as the positional argument to 'vllm serve'",3,"matAutocomplete"],["matInput","","formControlName","servedModelName","type","text","placeholder","e.g. qwen-256k, qwen-256k-fast","matTooltip","Name(s) the model is served under. List several separated by commas \u2014 emitted as a single --served-model-name flag with names separated by spaces"],[1,"form-row"],["appearance","outline",1,"form-col"],["matInput","","formControlName","tokenizer","type","text","matTooltip","Tokenizer path (HF repo id or local). Defaults to the model path"],["formControlName","dtype","matTooltip","Data type for model weights and activations"],["matInput","","formControlName","tensorParallelSize","type","number","matTooltip","Number of tensor-parallel replicas (GPUs sharding each model copy). 1 = single GPU"],["matInput","","formControlName","pipelineParallelSize","type","number","matTooltip","Number of pipeline-parallel replicas (model split in stages across GPU groups)"],["matInput","","formControlName","maxParallelLoadingWorkers","type","number","matTooltip","Max number of parallel workers for safetensors loading. 0 = default"],["matInput","","formControlName","gpuMemoryUtilization","type","number","step","0.05","min","0","max","1","matTooltip","Fraction of GPU memory to reserve for the model and KV cache (0.0\u20131.0)"],["matInput","","formControlName","swapSpace","type","number","matTooltip","CPU offload space per GPU (GiB)"],["matInput","","formControlName","cpuOffloadGb","type","number","matTooltip","Space to offload model weights to CPU (GiB). 0 = disabled"],["matInput","","formControlName","device","type","text","placeholder","auto","matTooltip","Device(s) for vLLM execution, e.g. 'auto', 'cuda:0,1' or 'rocm'"],["formControlName","attentionBackend","matTooltip","Attention kernel backend override. TRITON_ATTN is the tested choice on ROCm (4x RX 7900 XTX). Empty = auto"],["value",""],["matInput","","formControlName","kvCacheMemory","type","number","matTooltip","Explicit KV cache size in bytes. 0 = auto (derived from GPU memory utilization)"],["matInput","","formControlName","maxModelLen","type","text","placeholder","e.g. 24K, 262144","matTooltip","Model context length. Supports: 20000, 20K. Empty = model's max. Large values need more KV cache",3,"blur","keyup.enter","matAutocomplete"],["matInput","","formControlName","maxNumSeqs","type","number","matTooltip","Maximum number of sequences per iteration (concurrent requests)"],["formControlName","enableChunkedPrefill","matTooltip","Split long prompts into chunks for continuous batching. auto = decided by vLLM"],["value","auto"],["value","on"],["value","off"],["matInput","","formControlName","maxNumBatchedTokens","type","number","matTooltip","Max number of tokens per batch (prefill+decode budget). 0 = default"],["matInput","","formControlName","blockSize","type","number","matTooltip","Token block size for the paged KV cache. 0 = default (platform-specific)"],["formControlName","specMethod","matTooltip","Speculative decoding method. draft-model variants use a separate draft model"],["matInput","","formControlName","specTokens","type","number","matTooltip","Number of speculative tokens (proposal length). 0 = method default"],["matInput","","formControlName","temperature","type","number","matTooltip","Default temperature. 1.0 = default"],["matInput","","formControlName","topP","type","number","step","0.05","matTooltip","Nucleus sampling. 1.0 = default"],["matInput","","formControlName","topK","type","number","matTooltip","Top-K sampling. -1 = disabled (default)"],["matInput","","formControlName","minP","type","number","step","0.05","matTooltip","Min-P sampling threshold. 0.0 = disabled (default)"],["matInput","","formControlName","seed","type","number","matTooltip","RNG seed. -1 = random (default)"],["matInput","","formControlName","repetitionPenalty","type","number","step","0.05","matTooltip","Penalty for repeating tokens. 1.0 = disabled (default)"],["matInput","","formControlName","maxNumSeq","type","number","matTooltip","Maximum number of tokens per sequence. 0 = model default"],["formControlName","trustRemoteCode"],["formControlName","enableAutoToolChoice"],["formControlName","toolCallParser","matTooltip","Parser for tool calls. Requires --enable-auto-tool-choice",3,"disabled"],["formControlName","reasoningParser","matTooltip","Parser separating reasoning content from final content in chat completions"],["formControlName","enablePrefixCaching","matTooltip","Cache prefixes of prompts to speed up repeated requests. auto = decided by vLLM"],["matInput","","formControlName","host","type","text","matTooltip","IP address to listen (default: 127.0.0.1)",3,"matAutocomplete"],["matInput","","formControlName","port","type","number","matTooltip","Port to listen (default: 8000)"],["matInput","","formControlName","apiKey","type","text","matTooltip","API key for authentication. Leave empty if the launcher adds it itself (e.g. run.sh reads keys.ini)"],["matInput","","formControlName","extraFlags","rows","4","wrap","off","placeholder",`--enforce-eager
|
|
5596
5596
|
--disable-log-requests`,"matTooltip","Any vLLM flags not covered by the fields above (one per line). Pass-through \u2014 not validated",1,"flags-textarea"],["matInput","","formControlName","envText","rows","4","wrap","off","placeholder",`HF_TOKEN=hf_xxx
|
|
5597
|
-
HIP_VISIBLE_DEVICES=0,1,2,3`,"matTooltip","Environment variables for the service process (KEY=VALUE, one per line)",1,"env-textarea"],["matInput","","formControlName","user","placeholder","llama","matTooltip","systemd User=, empty \u2192 root"],["matInput","","formControlName","group","placeholder","ai","matTooltip","systemd Group="],["formControlName","restart"],["align","end"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"auto-path"],[1,"auto-from"],[1,"subsection-label"],["appearance","outline",1,"form-col-60"],["matInput","","formControlName","specDraftModel","type","text","placeholder","/path/to/draft-model or HF repo id","matTooltip","Draft model for speculative decoding (draft-model methods)"],["matInput","","formControlName","specDraftTensorParallelSize","type","number","matTooltip","Tensor parallel size of the draft model. 0 = same as main model"],["matInput","","formControlName","specNumDraftTokens","type","number","matTooltip","Number of tokens the draft model proposes in one step. 0 = default"]],template:function(t,n){if(t&1&&(s(0,"h2",4),m(1),l(),s(2,"mat-dialog-content")(3,"form",5)(4,"mat-form-field",6),v(5,"input",7),y(),s(6,"mat-label"),m(7,"Service Name"),l(),S(8,zy,2,0,"mat-error")(9,jy,2,0,"mat-error"),l(),s(10,"mat-form-field",6),v(11,"input",8),y(),s(12,"mat-label"),m(13,"Command (launcher or binary)"),l(),S(14,Hy,2,0,"mat-error"),l(),s(15,"mat-autocomplete",null,0),oe(17,Uy,5,3,"mat-option",9,Ny),l(),s(19,"mat-expansion-panel",10)(20,"mat-expansion-panel-header")(21,"mat-panel-title"),m(22,"Model"),l()(),s(23,"mat-form-field",6),v(24,"input",11),y(),s(25,"mat-label"),m(26,"Model (serve)"),l(),S(27,$y,2,0,"mat-error"),l(),s(28,"mat-autocomplete",null,1),oe(30,Gy,5,2,"mat-option",9,at),l(),s(32,"mat-form-field",6),v(33,"input",12),y(),s(34,"mat-label"),m(35,"Served Model Name"),l()(),s(36,"div",13)(37,"mat-form-field",14),v(38,"input",15),y(),s(39,"mat-label"),m(40,"Tokenizer"),l()(),s(41,"mat-form-field",14)(42,"mat-select",16),oe(43,Wy,2,2,"mat-option",9,at),l(),y(),s(45,"mat-label"),m(46,"Dtype"),l()()()(),s(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),m(50,"Parallelism & Memory"),l()(),s(51,"div",13)(52,"mat-form-field",14),v(53,"input",17),y(),s(54,"mat-label"),m(55,"Tensor Parallel Size"),l()(),s(56,"mat-form-field",14),v(57,"input",18),y(),s(58,"mat-label"),m(59,"Pipeline Parallel Size"),l()(),s(60,"mat-form-field",14),v(61,"input",19),y(),s(62,"mat-label"),m(63,"Loading Workers"),l()()(),s(64,"div",13)(65,"mat-form-field",14),v(66,"input",20),y(),s(67,"mat-label"),m(68,"GPU Memory Utilization"),l()(),s(69,"mat-form-field",14),v(70,"input",21),y(),s(71,"mat-label"),m(72,"Swap Space (GiB)"),l()(),s(73,"mat-form-field",14),v(74,"input",22),y(),s(75,"mat-label"),m(76,"CPU Offload (GiB)"),l()(),s(77,"mat-form-field",14),v(78,"input",23),y(),s(79,"mat-label"),m(80,"Device"),l()()(),s(81,"div",13)(82,"mat-form-field",14)(83,"mat-select",24)(84,"mat-option",25),m(85,"(auto)"),l(),oe(86,qy,2,2,"mat-option",9,at),l(),y(),s(88,"mat-label"),m(89,"Attention Backend"),l()(),s(90,"mat-form-field",14),v(91,"input",26),y(),s(92,"mat-label"),m(93,"KV Cache Memory (bytes)"),l()()()(),s(94,"mat-expansion-panel")(95,"mat-expansion-panel-header")(96,"mat-panel-title"),m(97,"Context & Scheduling"),l()(),s(98,"div",13)(99,"mat-form-field",14)(100,"input",27),M("blur",function(){return n.onMaxLenInput()})("keyup.enter",function(){return n.onMaxLenInput()}),l(),y(),s(101,"mat-label"),m(102,"Max Model Len"),l()(),s(103,"mat-autocomplete",null,2),oe(105,Ky,2,2,"mat-option",9,Ly),l(),s(107,"mat-form-field",14),v(108,"input",28),y(),s(109,"mat-label"),m(110,"Max Num Seqs"),l()(),s(111,"mat-form-field",14)(112,"mat-select",29)(113,"mat-option",30),m(114,"auto"),l(),s(115,"mat-option",31),m(116,"on"),l(),s(117,"mat-option",32),m(118,"off"),l()(),y(),s(119,"mat-label"),m(120,"Chunked Prefill"),l()()(),s(121,"div",13)(122,"mat-form-field",14),v(123,"input",33),y(),s(124,"mat-label"),m(125,"Max Batched Tokens"),l()(),s(126,"mat-form-field",14),v(127,"input",34),y(),s(128,"mat-label"),m(129,"Block Size"),l()()()(),s(130,"mat-expansion-panel")(131,"mat-expansion-panel-header")(132,"mat-panel-title"),m(133,"Speculative Decoding"),l(),s(134,"mat-panel-description"),m(135,"Draft method and speculative options"),l()(),s(136,"div",13)(137,"mat-form-field",14)(138,"mat-select",35),oe(139,Yy,2,2,"mat-option",9,Vy),l(),y(),s(141,"mat-label"),m(142,"Spec Method"),l()(),s(143,"mat-form-field",14),v(144,"input",36),y(),s(145,"mat-label"),m(146,"Spec Tokens"),l()()(),S(147,Xy,15,6),l(),s(148,"mat-expansion-panel")(149,"mat-expansion-panel-header")(150,"mat-panel-title"),m(151,"Sampling Defaults"),l(),s(152,"mat-panel-description"),m(153,"Default sampling parameters for generation"),l()(),s(154,"div",13)(155,"mat-form-field",14),v(156,"input",37),y(),s(157,"mat-label"),m(158,"Temperature"),l()(),s(159,"mat-form-field",14),v(160,"input",38),y(),s(161,"mat-label"),m(162,"Top-P"),l()(),s(163,"mat-form-field",14),v(164,"input",39),y(),s(165,"mat-label"),m(166,"Top-K"),l()(),s(167,"mat-form-field",14),v(168,"input",40),y(),s(169,"mat-label"),m(170,"Min-P"),l()()(),s(171,"div",13)(172,"mat-form-field",14),v(173,"input",41),y(),s(174,"mat-label"),m(175,"Seed"),l()(),s(176,"mat-form-field",14),v(177,"input",42),y(),s(178,"mat-label"),m(179,"Repetition Penalty"),l()(),s(180,"mat-form-field",14),v(181,"input",43),y(),s(182,"mat-label"),m(183,"Max Tokens (seq)"),l()()()(),s(184,"mat-expansion-panel")(185,"mat-expansion-panel-header")(186,"mat-panel-title"),m(187,"Tools & Chat"),l(),s(188,"mat-panel-description"),m(189,"Tool calling, reasoning and cache options"),l()(),s(190,"div",13)(191,"mat-checkbox",44),m(192," Trust Remote Code "),l(),y(),s(193,"mat-checkbox",45),m(194," Enable Auto Tool Choice "),l(),y(),l(),s(195,"div",13)(196,"mat-form-field",14)(197,"mat-select",46),oe(198,Zy,2,2,"mat-option",9,at),l(),y(),s(200,"mat-label"),m(201,"Tool Call Parser"),l()(),s(202,"mat-form-field",14)(203,"mat-select",47),oe(204,Qy,2,2,"mat-option",9,at),l(),y(),s(206,"mat-label"),m(207,"Reasoning Parser"),l()(),s(208,"mat-form-field",14)(209,"mat-select",48)(210,"mat-option",30),m(211,"auto"),l(),s(212,"mat-option",31),m(213,"on"),l(),s(214,"mat-option",32),m(215,"off"),l()(),y(),s(216,"mat-label"),m(217,"Prefix Caching"),l()()()(),s(218,"mat-expansion-panel")(219,"mat-expansion-panel-header")(220,"mat-panel-title"),m(221,"Server & Network"),l()(),s(222,"div",13)(223,"mat-form-field",14),v(224,"input",49),y(),s(225,"mat-label"),m(226,"Host"),l()(),s(227,"mat-autocomplete",null,3),oe(229,Jy,5,3,"mat-option",9,By),l(),s(231,"mat-form-field",14),v(232,"input",50),y(),s(233,"mat-label"),m(234,"Port"),l()(),s(235,"mat-form-field",14),v(236,"input",51),y(),s(237,"mat-label"),m(238,"API Key"),l()()()(),s(239,"mat-expansion-panel")(240,"mat-expansion-panel-header")(241,"mat-panel-title"),m(242,"Additional"),l(),s(243,"mat-panel-description"),m(244,"Extra CLI flags and environment variables"),l()(),s(245,"mat-form-field",6),v(246,"textarea",52),y(),s(247,"mat-label"),m(248,"Extra CLI Flags (one per line)"),l()(),s(249,"mat-form-field",6),v(250,"textarea",53),y(),s(251,"mat-label"),m(252,"Environment variables (KEY=VALUE, one per line)"),l()()(),s(253,"mat-expansion-panel")(254,"mat-expansion-panel-header")(255,"mat-panel-title"),m(256,"Service unit"),l(),s(257,"mat-panel-description"),m(258,"systemd User / Group / Restart policy"),l()(),s(259,"div",13)(260,"mat-form-field",14),v(261,"input",54),y(),s(262,"mat-label"),m(263,"Run as user"),l()(),s(264,"mat-form-field",14),v(265,"input",55),y(),s(266,"mat-label"),m(267,"Run as group"),l()(),s(268,"mat-form-field",14)(269,"mat-select",56),oe(270,eC,2,2,"mat-option",9,at),l(),y(),s(272,"mat-label"),m(273,"Restart policy"),l()()()()()(),s(274,"mat-dialog-actions",57)(275,"button",58),M("click",function(){return n.cancel()}),m(276,"Cancel"),l(),s(277,"button",59),M("click",function(){return n.save()}),m(278),l()()),t&2){let a=Le(16),r=Le(29),u=Le(104),h=Le(228);c(),ie("",n.isClone?"Clone":n.isEdit?"Edit":"Add"," vllm service"),c(2),x("formGroup",n.form),c(),p("changed",n.isControlChanged("name")),c(),x("disabled",n.isEdit&&!n.isClone),C(),c(3),k(n.form.controls.name.errors?.required?8:n.form.controls.name.errors?.pattern?9:-1),c(2),p("changed",n.isControlChanged("command")),c(),x("matAutocomplete",a),C(),c(3),k(n.form.controls.command.errors?.required?14:-1),c(3),ae(n.filteredCommands()),c(2),p("has-changed",n.isSectionChanged("model","tokenizer","dtype","servedModelName")),c(4),p("changed",n.isControlChanged("model")),c(),x("matAutocomplete",r),C(),c(3),k(n.form.controls.model.errors?.required?27:-1),c(3),ae(n.existingModelPaths()),c(2),p("changed",n.isControlChanged("servedModelName")),c(),C(),c(4),p("changed",n.isControlChanged("tokenizer")),c(),C(),c(3),p("changed",n.isControlChanged("dtype")),c(),C(),c(),ae(n.dtypeOptions),c(4),p("has-changed",n.isSectionChanged("tensorParallelSize","pipelineParallelSize","maxParallelLoadingWorkers","gpuMemoryUtilization","swapSpace","cpuOffloadGb","kvCacheMemory","device","attentionBackend")),c(5),p("changed",n.isControlChanged("tensorParallelSize")),c(),C(),c(3),p("changed",n.isControlChanged("pipelineParallelSize")),c(),C(),c(3),p("changed",n.isControlChanged("maxParallelLoadingWorkers")),c(),C(),c(4),p("changed",n.isControlChanged("gpuMemoryUtilization")),c(),C(),c(3),p("changed",n.isControlChanged("swapSpace")),c(),C(),c(3),p("changed",n.isControlChanged("cpuOffloadGb")),c(),C(),c(3),p("changed",n.isControlChanged("device")),c(),C(),c(4),p("changed",n.isControlChanged("attentionBackend")),c(),C(),c(3),ae(n.attentionBackends),c(4),p("changed",n.isControlChanged("kvCacheMemory")),c(),C(),c(3),p("has-changed",n.isSectionChanged("maxModelLen","maxNumSeqs","maxNumBatchedTokens","blockSize","enableChunkedPrefill")),c(5),p("changed",n.isControlChanged("maxModelLen")),c(),x("matAutocomplete",u),C(),c(5),ae(n.maxLenPresets()),c(2),p("changed",n.isControlChanged("maxNumSeqs")),c(),C(),c(3),p("changed",n.isControlChanged("enableChunkedPrefill")),c(),C(),c(10),p("changed",n.isControlChanged("maxNumBatchedTokens")),c(),C(),c(3),p("changed",n.isControlChanged("blockSize")),c(),C(),c(3),p("has-changed",n.isSectionChanged("specMethod","specTokens","specDraftModel","specDraftTensorParallelSize","specNumDraftTokens")),c(7),p("changed",n.isControlChanged("specMethod")),c(),C(),c(),ae(n.specMethods),c(4),p("changed",n.isControlChanged("specTokens")),c(),C(),c(3),k(n.showSpecDraftParams()?147:-1),c(),p("has-changed",n.isSectionChanged("temperature","topP","topK","minP","seed","repetitionPenalty","maxNumSeq")),c(7),p("changed",n.isControlChanged("temperature")),c(),C(),c(3),p("changed",n.isControlChanged("topP")),c(),C(),c(3),p("changed",n.isControlChanged("topK")),c(),C(),c(3),p("changed",n.isControlChanged("minP")),c(),C(),c(4),p("changed",n.isControlChanged("seed")),c(),C(),c(3),p("changed",n.isControlChanged("repetitionPenalty")),c(),C(),c(3),p("changed",n.isControlChanged("maxNumSeq")),c(),C(),c(3),p("has-changed",n.isSectionChanged("trustRemoteCode","enableAutoToolChoice","toolCallParser","reasoningParser","enablePrefixCaching")),c(7),p("changed",n.isControlChanged("trustRemoteCode")),C(),c(2),p("changed",n.isControlChanged("enableAutoToolChoice")),C(),c(3),p("changed",n.isControlChanged("toolCallParser")),c(),x("disabled",n.isToolCallParserDisabled()),C(),c(),ae(n.toolCallParsers),c(4),p("changed",n.isControlChanged("reasoningParser")),c(),C(),c(),ae(n.reasoningParsers),c(4),p("changed",n.isControlChanged("enablePrefixCaching")),c(),C(),c(9),p("has-changed",n.isSectionChanged("host","port","apiKey")),c(5),p("changed",n.isControlChanged("host")),c(),x("matAutocomplete",h),C(),c(5),ae(n.filteredHosts()),c(2),p("changed",n.isControlChanged("port")),c(),C(),c(3),p("changed",n.isControlChanged("apiKey")),c(),C(),c(3),p("has-changed",n.isSectionChanged("extraFlags","envText")),c(6),p("changed",n.isControlChanged("extraFlags")),c(),C(),c(3),p("changed",n.isControlChanged("envText")),c(),C(),c(11),C(),c(4),C(),c(4),C(),c(),ae(n.restartOptions),c(7),x("disabled",n.form.invalid),c(),ie(" ",n.isEdit&&!n.isClone?"Save":"Create"," ")}},dependencies:[Pe,fn,Do,Oi,Da,Pi,hn,rc,ac,gn,Kt,Gi,Sn,Dn,wt,Yi,Ke,Xe,Bo,Uc,Ns,Wa,Os,Fs,Ps,At,Tt,Lt,_n,ri,ai,Ct,Bt,jt,zt,Mn,kn,Ls,qa],styles:['@charset "UTF-8";.vllm-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;min-width:640px}.form-row[_ngcontent-%COMP%]{display:flex;gap:12px;margin-bottom:4px;align-items:center}.form-col[_ngcontent-%COMP%]{flex:1}.form-col-60[_ngcontent-%COMP%]{flex:3}.full-width[_ngcontent-%COMP%]{width:100%}.auto-path[_ngcontent-%COMP%]{font-family:monospace}.auto-from[_ngcontent-%COMP%]{margin-left:8px;opacity:.6;font-size:12px}.flags-textarea[_ngcontent-%COMP%], .env-textarea[_ngcontent-%COMP%]{overflow-x:auto}mat-dialog-content[_ngcontent-%COMP%]{padding-top:10px!important;max-height:80vh}mat-expansion-panel[_ngcontent-%COMP%]{margin-bottom:0}mat-dialog-actions[_ngcontent-%COMP%]{gap:8px}.subsection-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#0009;margin:4px 0 14px;text-transform:uppercase;letter-spacing:.5px}mat-expansion-panel.has-changed[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%]{font-weight:700}mat-form-field.changed[_ngcontent-%COMP%] .mat-mdc-form-field-infix input, mat-form-field.changed[_ngcontent-%COMP%] .mat-mdc-form-field-infix .mat-mdc-select{font-weight:700}mat-checkbox.changed[_ngcontent-%COMP%] label{font-weight:700}']})}}return i})();function Si(i,o,e){let t=jo(i,o);return t!==null?t:e}function Ot(i,o,e){let t=jo(i,o);if(t!==null){let n=parseInt(t,10);return isNaN(n)?e:n}return e}function Jn(i,o,e){let t=jo(i,o);if(t!==null){let n=parseFloat(t);return isNaN(n)?e:n}return e}function lC(i,o,e,t){let n=null;for(let a of i){let[r,...u]=a.split(/\s+/);r===o?u.join(" ").trim()==="false"?n="off":n="on":r===e&&(n="off")}return n??t}var cC=(i,o)=>o.name;function dC(i,o){if(i&1){let e=ve();s(0,"button",23),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"start"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"play_arrow"),l(),m(3," Start "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function mC(i,o){if(i&1){let e=ve();s(0,"button",24),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"stop"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"stop"),l(),m(3," Stop "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function uC(i,o){if(i&1){let e=ve();s(0,"button",25),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"disable"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"lock"),l(),m(3," Disable "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function hC(i,o){if(i&1){let e=ve();s(0,"button",25),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"enable"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"lock_open"),l(),m(3," Enable "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",e.enabled||t.busy()?.name===e.name)}}function pC(i,o){if(i&1&&(S(0,dC,4,1,"button",18)(1,mC,4,1,"button",21),S(2,uC,4,1,"button",22)(3,hC,4,1,"button",22)),i&2){let e=_().$implicit;k(e.running?1:0),c(2),k(e.enabled?2:3)}}function fC(i,o){if(i&1){let e=ve();s(0,"button",23),M("click",function(n){ee(e);let a=_().$implicit;return _(2).installService(a.name),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"download"),l(),m(3," Install "),l()}if(i&2){let e=_().$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function gC(i,o){if(i&1){let e=ve();s(0,"tr",13),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.selectedServiceService.select(n.name))}),s(1,"td")(2,"div",14),v(3,"span",15),s(4,"span",16),m(5),l()()(),s(6,"td",17),S(7,pC,4,2)(8,fC,4,1,"button",18),l(),s(9,"td",17)(10,"div")(11,"button",19)(12,"mat-icon"),m(13,"more_vert"),l()(),s(14,"mat-menu",20,2)(16,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.editService(n))}),s(17,"mat-icon"),m(18,"edit"),l(),s(19,"span"),m(20,"Edit"),l()(),s(21,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.cloneService(n))}),s(22,"mat-icon"),m(23,"content_copy"),l(),s(24,"span"),m(25,"Clone"),l()(),s(26,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.archiveService(n.name))}),s(27,"mat-icon"),m(28,"inventory_2"),l(),s(29,"span"),m(30,"Move to Archive"),l()(),s(31,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.deleteService(n.name))}),s(32,"mat-icon"),m(33,"delete"),l(),s(34,"span"),m(35,"Delete"),l()()()()()()}if(i&2){let e=o.$implicit,t=Le(15);p("custom",e.hasConfig),c(3),p("running",e.running),c(),p("disabled",!e.enabled),c(),O(e.name),c(2),k(e.installed?7:e.hasConfig?8:-1),c(3),Be("visibility",e.hasConfig?"visible":"hidden"),c(),x("matMenuTriggerFor",t)}}function _C(i,o){if(i&1&&(s(0,"table",10)(1,"tbody"),oe(2,gC,36,11,"tr",12,cC),l()()),i&2){let e=_();c(2),ae(e.filtered())}}function vC(i,o){if(i&1&&(s(0,"p"),m(1),l()),i&2){let e=_(2);c(),ie('No services match "',e.filter().trim(),'".')}}function bC(i,o){i&1&&(s(0,"p"),m(1,'No services configured. Click "Managed services" to select system services or "Custom service" to create one.'),l())}function yC(i,o){if(i&1&&(s(0,"div",11),S(1,vC,2,1,"p")(2,bC,2,0,"p"),l()),i&2){let e=_();c(),k(e.filter().trim()?1:2)}}var Ip=(()=>{class i{constructor(){this.serviceService=d(xt),this.serviceList=d(Es),this.selectedServiceService=d(Ms),this.dialog=d(Po),this.snackBar=d(ks),this.services=this.serviceList.services,this.configs=A([]),this.loading=A(!0),this.busy=A(null),this.unified=U(()=>{let e=this.services(),t=this.configs(),n=new Map;for(let u of t)n.set(u.name,u);let a=e.filter(u=>n.has(u.name)).map(u=>{let h=n.get(u.name)??null;return{name:u.name,running:u.running,enabled:u.enabled,installed:u.installed,pid:u.pid,error:u.error,config:h,hasConfig:!0}}),r=e.filter(u=>!n.has(u.name)).map(u=>Fe(B({},u),{config:null,hasConfig:!1}));return[...a,...r]}),this.filter=A(""),this.filtered=U(()=>{let e=this.filter().trim().toLowerCase(),t=this.unified();return e?t.filter(n=>n.name.toLowerCase().includes(e)):t})}onFilterInput(e){this.filter.set(e.target.value)}ngOnInit(){this.load()}load(){return q(this,null,function*(){this.loading.set(!0);try{yield this.serviceList.refresh(),this.configs.set(yield le(this.serviceService.fetchConfigs()))}catch(e){console.error("[ServicesComponent] load error:",e)}finally{this.loading.set(!1)}})}control(e,t){return q(this,null,function*(){let n=this.busy();if(!(n&&n.name===e&&n.action===t)){this.selectedServiceService.select(e),this.busy.set({name:e,action:t});try{let a=yield le(this.serviceService.control(e,t));a.error&&this.showError(`${e}: ${a.error}`),yield this.load()}catch(a){this.showError(`${e}: ${this.errorText(a)}`)}finally{this.busy.set(null)}}})}installService(e){return q(this,null,function*(){let t=this.busy();if(!(t&&t.name===e&&t.action==="install")){this.selectedServiceService.select(e),this.busy.set({name:e,action:"install"});try{let n=yield le(this.serviceService.installService(e));n.error&&this.showError(`${e}: ${n.error}`),yield this.load()}catch(n){this.showError(`Install "${e}": ${this.errorText(n)}`)}finally{this.busy.set(null)}}})}showError(e){this.snackBar.open(e,"Dismiss",{duration:8e3,horizontalPosition:"center",verticalPosition:"top"})}errorText(e){return e instanceof Wt?e.error?.error??e.message:String(e)}manageServices(){this.dialog.open(pp,{maxWidth:"600px"}).afterClosed().subscribe(t=>{t&&this.load()})}archiveServices(){this.dialog.open(fp,{minWidth:"560px"}).afterClosed().subscribe(t=>{t&&this.load()})}addService(e){this.openDialog(null,e)}editService(e){this.selectedServiceService.select(e.name),this.openDialog(e.config,e.config?.type)}cloneService(e){if(!e.config)return;let t=Fe(B({},e.config),{name:this.uniqueCloneName(e.name)});this.openDialog(t,t.type,!0)}uniqueCloneName(e){let t=new Set(this.configs().map(a=>a.name));if(!t.has(`${e}-copy`))return`${e}-copy`;let n=2;for(;t.has(`${e}-copy-${n}`);)n++;return`${e}-copy-${n}`}deleteService(e){return q(this,null,function*(){if(confirm(`Delete service "${e}"? Its systemd unit will be uninstalled and the config removed.`)){this.selectedServiceService.select(e);try{yield le(this.serviceService.deleteConfig(e)),yield this.load()}catch(t){this.showError(`Delete "${e}": ${this.errorText(t)}`)}}})}archiveService(e){return q(this,null,function*(){if(confirm(`Move service "${e}" to the archive? It will be stopped, uninstalled, and its config shelved. You can restore it from the archive.`)){this.selectedServiceService.select(e);try{yield le(this.serviceService.archiveService(e)),yield this.load()}catch(t){this.showError(`Archive "${e}": ${this.errorText(t)}`)}}})}hasFlags(e){return e.flags.length>0}openDialog(e,t,n=!1){let a=t??e?.type??"generic";if(a==="llama-server"){let r={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Ep,{data:r,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="vllm"){let r={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Ap,{data:r,minWidth:"800px"});this.handleDialogResult(u,e,n)}else{let r={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(lp,{data:r,minWidth:"1000px"});this.handleDialogResult(u,e,n)}}handleDialogResult(e,t,n=!1){e.afterClosed().subscribe(a=>q(this,null,function*(){if(a)try{if(n)yield le(this.serviceService.saveConfig(a));else{let r=t?.name??null;if(r!==null&&r!==a.name){let h=this.unified().find(D=>D.name===r),g=h?.running??!1,b=h?.enabled??!1;yield le(this.serviceService.deleteConfig(r)),yield le(this.serviceService.saveConfig(a)),b&&(yield le(this.serviceService.control(a.name,"enable"))),g&&(yield le(this.serviceService.control(a.name,"start")))}else yield le(this.serviceService.saveConfig(a))}}catch(r){this.showError(`Save: ${this.errorText(r)}`)}finally{yield this.load()}}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-services"]],decls:44,vars:4,consts:[["servicesMenu","matMenu"],["addMenu",""],["serviceMenu","matMenu"],[1,"services-card"],[1,"section-header"],["type","text","placeholder","Filter by name\u2026",1,"service-filter",3,"input","value"],["mat-icon-button","","title","Services actions",1,"header-menu-btn",3,"matMenuTriggerFor"],["xPosition","before"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],[1,"services-list"],[1,"empty"],[3,"custom"],[3,"click"],[1,"service-name"],[1,"status-dot"],[1,"name-text"],[1,"service-actions-cell"],["mat-raised-button","","color","primary",3,"disabled"],["mat-icon-button","","title","Service actions",3,"matMenuTriggerFor"],["yPosition","below"],["mat-raised-button","","color","warn",3,"disabled"],["mat-stroked-button","",3,"disabled"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","warn",3,"click","disabled"],["mat-stroked-button","",3,"click","disabled"]],template:function(t,n){if(t&1&&(s(0,"div",3)(1,"div",4)(2,"h2"),m(3,"Services"),l(),s(4,"input",5),M("input",function(r){return n.onFilterInput(r)}),l(),s(5,"button",6)(6,"mat-icon"),m(7,"more_vert"),l()(),s(8,"mat-menu",7,0)(10,"button",8),M("click",function(){return n.manageServices()}),s(11,"mat-icon"),m(12,"tune"),l(),s(13,"span"),m(14,"Managed services"),l()(),s(15,"button",8),M("click",function(){return n.archiveServices()}),s(16,"mat-icon"),m(17,"inventory_2"),l(),s(18,"span"),m(19,"Archive"),l()(),s(20,"button",9)(21,"mat-icon"),m(22,"add"),l(),s(23,"span"),m(24,"Custom service"),l()()(),s(25,"mat-menu",null,1)(27,"button",8),M("click",function(){return n.addService("generic")}),s(28,"mat-icon"),m(29,"settings"),l(),s(30,"span"),m(31,"Generic service"),l()(),s(32,"button",8),M("click",function(){return n.addService("llama-server")}),s(33,"mat-icon"),m(34,"smart_toy"),l(),s(35,"span"),m(36,"llama-server"),l()(),s(37,"button",8),M("click",function(){return n.addService("vllm")}),s(38,"mat-icon"),m(39,"bolt"),l(),s(40,"span"),m(41,"vllm"),l()()()(),S(42,_C,4,0,"table",10)(43,yC,3,1,"div",11),l()),t&2){let a=Le(9),r=Le(26);c(4),x("value",n.filter()),c(),x("matMenuTriggerFor",a),c(15),x("matMenuTriggerFor",r),c(22),k(n.filtered().length>0?42:n.loading()?-1:43)}},dependencies:[Pe,Ke,Xe,vi,Ao,Ss,wn,Xn,Ds,yt,bt],styles:[".section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.section-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:#333}.section-header[_ngcontent-%COMP%] .header-menu-btn[_ngcontent-%COMP%]{color:#666}.section-header[_ngcontent-%COMP%] .service-filter[_ngcontent-%COMP%]{flex:1 1 240px;max-width:320px;min-width:140px;margin:0 16px;padding:6px 12px;font-size:.9rem;border:1px solid #cfcfcf;border-radius:16px;outline:none;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.section-header[_ngcontent-%COMP%] .service-filter[_ngcontent-%COMP%]::placeholder{color:#9e9e9e}.section-header[_ngcontent-%COMP%] .service-filter[_ngcontent-%COMP%]:focus{border-color:#7c4dff;box-shadow:0 0 0 2px #7c4dff26}.services-list[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.services-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #e0e0e0;transition:background-color .2s ease}.services-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#fff}.services-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.services-list[_ngcontent-%COMP%] tr.custom[_ngcontent-%COMP%], .services-list[_ngcontent-%COMP%] tr.custom[_ngcontent-%COMP%]:first-child td[_ngcontent-%COMP%]:first-child{border-left:3px solid #7c4dff}.services-list[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:4px 12px;vertical-align:middle}.service-name[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;white-space:nowrap;display:flex;align-items:center;gap:8px}.service-name[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%;background-color:#bdbdbd}.service-name[_ngcontent-%COMP%] .status-dot.running[_ngcontent-%COMP%]{background-color:#4caf50}.service-name[_ngcontent-%COMP%] .name-text[_ngcontent-%COMP%]{color:#212121}.service-name[_ngcontent-%COMP%] .name-text.disabled[_ngcontent-%COMP%]{color:#9e9e9e}.service-actions-cell[_ngcontent-%COMP%]{white-space:nowrap}.service-actions-cell[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:8px}.status-chip[_ngcontent-%COMP%], .enabled-chip[_ngcontent-%COMP%]{font-size:.8rem;font-weight:500}.status-chip.running[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #a5d6a7}.status-chip.stopped[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #ef9a9a}.enabled-chip.enabled[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #90caf9}.enabled-chip.disabled[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #bdbdbd}.empty[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#999;font-size:.9rem}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}"]})}}return i})();var CC=["journalBody"],xC=(i,o)=>o.name;function wC(i,o){if(i&1&&(s(0,"mat-option",7),m(1),l()),i&2){let e=o.$implicit;x("value",e.name),c(),O(e.name)}}function DC(i,o){if(i&1){let e=ve();s(0,"button",10),M("click",function(){ee(e);let n=_(2);return te(n.toggleWordWrap())}),s(1,"mat-icon"),m(2,"wrap_text"),l()()}}function SC(i,o){if(i&1){let e=ve();s(0,"button",11),M("click",function(){ee(e);let n=_(2);return te(n.toggleWordWrap())}),s(1,"mat-icon"),m(2,"wrap_text"),l()()}}function kC(i,o){if(i&1){let e=ve();s(0,"mat-select",6),M("ngModelChange",function(n){ee(e);let a=_();return te(a.onServiceChange(n))}),s(1,"mat-option",7),m(2,"\u2014 None \u2014"),l(),oe(3,wC,2,2,"mat-option",7,xC),l(),y(),S(5,DC,3,0,"button",8)(6,SC,3,0,"button",9)}if(i&2){let e=_();x("ngModel",e.selectedService()),C(),c(),x("value",null),c(2),ae(e.services()),c(2),k(e.wordWrap()?5:6)}}function MC(i,o){if(i&1&&(s(0,"div",3),m(1),l()),i&2){let e=_();c(),O(e.error())}}function EC(i,o){if(i&1&&(s(0,"div",4,0)(2,"pre"),m(3),l()()),i&2){let e=_();c(2),p("wrap-on",e.wordWrap()),c(),O(e.journalText())}}function TC(i,o){i&1&&(s(0,"div",5)(1,"p"),m(2,"No service selected"),l()())}var AC=40,Rp=(()=>{class i{toggleWordWrap(){this.wordWrap.update(e=>!e)}constructor(){this.serviceService=d(xt),this.selectedServiceService=d(Ms),this.serviceList=d(Es),this.cdr=d(ce),this.services=this.serviceList.services,this.servicesLoaded=this.serviceList.loaded,this.journalLines=A([]),this.journalLoading=A(!1),this.journalError=A(null),this.error=U(()=>this.serviceList.error()??this.journalError()),this.selectedService=U(()=>this.selectedServiceService.selectedService()),this.wordWrap=A(!0),this.journalText=U(()=>{let e=this.journalLines();return e.length===0?"":e.map(t=>t.timestamp?`${t.timestamp} ${t.message}`:t.message).join(`
|
|
5597
|
+
HIP_VISIBLE_DEVICES=0,1,2,3`,"matTooltip","Environment variables for the service process (KEY=VALUE, one per line)",1,"env-textarea"],["matInput","","formControlName","user","placeholder","llama","matTooltip","systemd User=, empty \u2192 root"],["matInput","","formControlName","group","placeholder","ai","matTooltip","systemd Group="],["formControlName","restart"],["align","end"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"auto-path"],[1,"auto-from"],[1,"subsection-label"],["appearance","outline",1,"form-col-60"],["matInput","","formControlName","specDraftModel","type","text","placeholder","/path/to/draft-model or HF repo id","matTooltip","Draft model for speculative decoding (draft-model methods)"],["matInput","","formControlName","specDraftTensorParallelSize","type","number","matTooltip","Tensor parallel size of the draft model. 0 = same as main model"],["matInput","","formControlName","specNumDraftTokens","type","number","matTooltip","Number of tokens the draft model proposes in one step. 0 = default"]],template:function(t,n){if(t&1&&(s(0,"h2",4),m(1),l(),s(2,"mat-dialog-content")(3,"form",5)(4,"mat-form-field",6),v(5,"input",7),y(),s(6,"mat-label"),m(7,"Service Name"),l(),S(8,zy,2,0,"mat-error")(9,jy,2,0,"mat-error"),l(),s(10,"mat-form-field",6),v(11,"input",8),y(),s(12,"mat-label"),m(13,"Command (launcher or binary)"),l(),S(14,Hy,2,0,"mat-error"),l(),s(15,"mat-autocomplete",null,0),oe(17,Uy,5,3,"mat-option",9,Ny),l(),s(19,"mat-expansion-panel",10)(20,"mat-expansion-panel-header")(21,"mat-panel-title"),m(22,"Model"),l()(),s(23,"mat-form-field",6),v(24,"input",11),y(),s(25,"mat-label"),m(26,"Model (serve)"),l(),S(27,$y,2,0,"mat-error"),l(),s(28,"mat-autocomplete",null,1),oe(30,Gy,5,2,"mat-option",9,at),l(),s(32,"mat-form-field",6),v(33,"input",12),y(),s(34,"mat-label"),m(35,"Served Model Name"),l()(),s(36,"div",13)(37,"mat-form-field",14),v(38,"input",15),y(),s(39,"mat-label"),m(40,"Tokenizer"),l()(),s(41,"mat-form-field",14)(42,"mat-select",16),oe(43,Wy,2,2,"mat-option",9,at),l(),y(),s(45,"mat-label"),m(46,"Dtype"),l()()()(),s(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),m(50,"Parallelism & Memory"),l()(),s(51,"div",13)(52,"mat-form-field",14),v(53,"input",17),y(),s(54,"mat-label"),m(55,"Tensor Parallel Size"),l()(),s(56,"mat-form-field",14),v(57,"input",18),y(),s(58,"mat-label"),m(59,"Pipeline Parallel Size"),l()(),s(60,"mat-form-field",14),v(61,"input",19),y(),s(62,"mat-label"),m(63,"Loading Workers"),l()()(),s(64,"div",13)(65,"mat-form-field",14),v(66,"input",20),y(),s(67,"mat-label"),m(68,"GPU Memory Utilization"),l()(),s(69,"mat-form-field",14),v(70,"input",21),y(),s(71,"mat-label"),m(72,"Swap Space (GiB)"),l()(),s(73,"mat-form-field",14),v(74,"input",22),y(),s(75,"mat-label"),m(76,"CPU Offload (GiB)"),l()(),s(77,"mat-form-field",14),v(78,"input",23),y(),s(79,"mat-label"),m(80,"Device"),l()()(),s(81,"div",13)(82,"mat-form-field",14)(83,"mat-select",24)(84,"mat-option",25),m(85,"(auto)"),l(),oe(86,qy,2,2,"mat-option",9,at),l(),y(),s(88,"mat-label"),m(89,"Attention Backend"),l()(),s(90,"mat-form-field",14),v(91,"input",26),y(),s(92,"mat-label"),m(93,"KV Cache Memory (bytes)"),l()()()(),s(94,"mat-expansion-panel")(95,"mat-expansion-panel-header")(96,"mat-panel-title"),m(97,"Context & Scheduling"),l()(),s(98,"div",13)(99,"mat-form-field",14)(100,"input",27),M("blur",function(){return n.onMaxLenInput()})("keyup.enter",function(){return n.onMaxLenInput()}),l(),y(),s(101,"mat-label"),m(102,"Max Model Len"),l()(),s(103,"mat-autocomplete",null,2),oe(105,Ky,2,2,"mat-option",9,Ly),l(),s(107,"mat-form-field",14),v(108,"input",28),y(),s(109,"mat-label"),m(110,"Max Num Seqs"),l()(),s(111,"mat-form-field",14)(112,"mat-select",29)(113,"mat-option",30),m(114,"auto"),l(),s(115,"mat-option",31),m(116,"on"),l(),s(117,"mat-option",32),m(118,"off"),l()(),y(),s(119,"mat-label"),m(120,"Chunked Prefill"),l()()(),s(121,"div",13)(122,"mat-form-field",14),v(123,"input",33),y(),s(124,"mat-label"),m(125,"Max Batched Tokens"),l()(),s(126,"mat-form-field",14),v(127,"input",34),y(),s(128,"mat-label"),m(129,"Block Size"),l()()()(),s(130,"mat-expansion-panel")(131,"mat-expansion-panel-header")(132,"mat-panel-title"),m(133,"Speculative Decoding"),l(),s(134,"mat-panel-description"),m(135,"Draft method and speculative options"),l()(),s(136,"div",13)(137,"mat-form-field",14)(138,"mat-select",35),oe(139,Yy,2,2,"mat-option",9,Vy),l(),y(),s(141,"mat-label"),m(142,"Spec Method"),l()(),s(143,"mat-form-field",14),v(144,"input",36),y(),s(145,"mat-label"),m(146,"Spec Tokens"),l()()(),S(147,Xy,15,6),l(),s(148,"mat-expansion-panel")(149,"mat-expansion-panel-header")(150,"mat-panel-title"),m(151,"Sampling Defaults"),l(),s(152,"mat-panel-description"),m(153,"Default sampling parameters for generation"),l()(),s(154,"div",13)(155,"mat-form-field",14),v(156,"input",37),y(),s(157,"mat-label"),m(158,"Temperature"),l()(),s(159,"mat-form-field",14),v(160,"input",38),y(),s(161,"mat-label"),m(162,"Top-P"),l()(),s(163,"mat-form-field",14),v(164,"input",39),y(),s(165,"mat-label"),m(166,"Top-K"),l()(),s(167,"mat-form-field",14),v(168,"input",40),y(),s(169,"mat-label"),m(170,"Min-P"),l()()(),s(171,"div",13)(172,"mat-form-field",14),v(173,"input",41),y(),s(174,"mat-label"),m(175,"Seed"),l()(),s(176,"mat-form-field",14),v(177,"input",42),y(),s(178,"mat-label"),m(179,"Repetition Penalty"),l()(),s(180,"mat-form-field",14),v(181,"input",43),y(),s(182,"mat-label"),m(183,"Max Tokens (seq)"),l()()()(),s(184,"mat-expansion-panel")(185,"mat-expansion-panel-header")(186,"mat-panel-title"),m(187,"Tools & Chat"),l(),s(188,"mat-panel-description"),m(189,"Tool calling, reasoning and cache options"),l()(),s(190,"div",13)(191,"mat-checkbox",44),m(192," Trust Remote Code "),l(),y(),s(193,"mat-checkbox",45),m(194," Enable Auto Tool Choice "),l(),y(),l(),s(195,"div",13)(196,"mat-form-field",14)(197,"mat-select",46),oe(198,Zy,2,2,"mat-option",9,at),l(),y(),s(200,"mat-label"),m(201,"Tool Call Parser"),l()(),s(202,"mat-form-field",14)(203,"mat-select",47),oe(204,Qy,2,2,"mat-option",9,at),l(),y(),s(206,"mat-label"),m(207,"Reasoning Parser"),l()(),s(208,"mat-form-field",14)(209,"mat-select",48)(210,"mat-option",30),m(211,"auto"),l(),s(212,"mat-option",31),m(213,"on"),l(),s(214,"mat-option",32),m(215,"off"),l()(),y(),s(216,"mat-label"),m(217,"Prefix Caching"),l()()()(),s(218,"mat-expansion-panel")(219,"mat-expansion-panel-header")(220,"mat-panel-title"),m(221,"Server & Network"),l()(),s(222,"div",13)(223,"mat-form-field",14),v(224,"input",49),y(),s(225,"mat-label"),m(226,"Host"),l()(),s(227,"mat-autocomplete",null,3),oe(229,Jy,5,3,"mat-option",9,By),l(),s(231,"mat-form-field",14),v(232,"input",50),y(),s(233,"mat-label"),m(234,"Port"),l()(),s(235,"mat-form-field",14),v(236,"input",51),y(),s(237,"mat-label"),m(238,"API Key"),l()()()(),s(239,"mat-expansion-panel")(240,"mat-expansion-panel-header")(241,"mat-panel-title"),m(242,"Additional"),l(),s(243,"mat-panel-description"),m(244,"Extra CLI flags and environment variables"),l()(),s(245,"mat-form-field",6),v(246,"textarea",52),y(),s(247,"mat-label"),m(248,"Extra CLI Flags (one per line)"),l()(),s(249,"mat-form-field",6),v(250,"textarea",53),y(),s(251,"mat-label"),m(252,"Environment variables (KEY=VALUE, one per line)"),l()()(),s(253,"mat-expansion-panel")(254,"mat-expansion-panel-header")(255,"mat-panel-title"),m(256,"Service unit"),l(),s(257,"mat-panel-description"),m(258,"systemd User / Group / Restart policy"),l()(),s(259,"div",13)(260,"mat-form-field",14),v(261,"input",54),y(),s(262,"mat-label"),m(263,"Run as user"),l()(),s(264,"mat-form-field",14),v(265,"input",55),y(),s(266,"mat-label"),m(267,"Run as group"),l()(),s(268,"mat-form-field",14)(269,"mat-select",56),oe(270,eC,2,2,"mat-option",9,at),l(),y(),s(272,"mat-label"),m(273,"Restart policy"),l()()()()()(),s(274,"mat-dialog-actions",57)(275,"button",58),M("click",function(){return n.cancel()}),m(276,"Cancel"),l(),s(277,"button",59),M("click",function(){return n.save()}),m(278),l()()),t&2){let a=Le(16),r=Le(29),u=Le(104),h=Le(228);c(),ie("",n.isClone?"Clone":n.isEdit?"Edit":"Add"," vllm service"),c(2),x("formGroup",n.form),c(),p("changed",n.isControlChanged("name")),c(),x("disabled",n.isEdit&&!n.isClone),C(),c(3),k(n.form.controls.name.errors?.required?8:n.form.controls.name.errors?.pattern?9:-1),c(2),p("changed",n.isControlChanged("command")),c(),x("matAutocomplete",a),C(),c(3),k(n.form.controls.command.errors?.required?14:-1),c(3),ae(n.filteredCommands()),c(2),p("has-changed",n.isSectionChanged("model","tokenizer","dtype","servedModelName")),c(4),p("changed",n.isControlChanged("model")),c(),x("matAutocomplete",r),C(),c(3),k(n.form.controls.model.errors?.required?27:-1),c(3),ae(n.existingModelPaths()),c(2),p("changed",n.isControlChanged("servedModelName")),c(),C(),c(4),p("changed",n.isControlChanged("tokenizer")),c(),C(),c(3),p("changed",n.isControlChanged("dtype")),c(),C(),c(),ae(n.dtypeOptions),c(4),p("has-changed",n.isSectionChanged("tensorParallelSize","pipelineParallelSize","maxParallelLoadingWorkers","gpuMemoryUtilization","swapSpace","cpuOffloadGb","kvCacheMemory","device","attentionBackend")),c(5),p("changed",n.isControlChanged("tensorParallelSize")),c(),C(),c(3),p("changed",n.isControlChanged("pipelineParallelSize")),c(),C(),c(3),p("changed",n.isControlChanged("maxParallelLoadingWorkers")),c(),C(),c(4),p("changed",n.isControlChanged("gpuMemoryUtilization")),c(),C(),c(3),p("changed",n.isControlChanged("swapSpace")),c(),C(),c(3),p("changed",n.isControlChanged("cpuOffloadGb")),c(),C(),c(3),p("changed",n.isControlChanged("device")),c(),C(),c(4),p("changed",n.isControlChanged("attentionBackend")),c(),C(),c(3),ae(n.attentionBackends),c(4),p("changed",n.isControlChanged("kvCacheMemory")),c(),C(),c(3),p("has-changed",n.isSectionChanged("maxModelLen","maxNumSeqs","maxNumBatchedTokens","blockSize","enableChunkedPrefill")),c(5),p("changed",n.isControlChanged("maxModelLen")),c(),x("matAutocomplete",u),C(),c(5),ae(n.maxLenPresets()),c(2),p("changed",n.isControlChanged("maxNumSeqs")),c(),C(),c(3),p("changed",n.isControlChanged("enableChunkedPrefill")),c(),C(),c(10),p("changed",n.isControlChanged("maxNumBatchedTokens")),c(),C(),c(3),p("changed",n.isControlChanged("blockSize")),c(),C(),c(3),p("has-changed",n.isSectionChanged("specMethod","specTokens","specDraftModel","specDraftTensorParallelSize","specNumDraftTokens")),c(7),p("changed",n.isControlChanged("specMethod")),c(),C(),c(),ae(n.specMethods),c(4),p("changed",n.isControlChanged("specTokens")),c(),C(),c(3),k(n.showSpecDraftParams()?147:-1),c(),p("has-changed",n.isSectionChanged("temperature","topP","topK","minP","seed","repetitionPenalty","maxNumSeq")),c(7),p("changed",n.isControlChanged("temperature")),c(),C(),c(3),p("changed",n.isControlChanged("topP")),c(),C(),c(3),p("changed",n.isControlChanged("topK")),c(),C(),c(3),p("changed",n.isControlChanged("minP")),c(),C(),c(4),p("changed",n.isControlChanged("seed")),c(),C(),c(3),p("changed",n.isControlChanged("repetitionPenalty")),c(),C(),c(3),p("changed",n.isControlChanged("maxNumSeq")),c(),C(),c(3),p("has-changed",n.isSectionChanged("trustRemoteCode","enableAutoToolChoice","toolCallParser","reasoningParser","enablePrefixCaching")),c(7),p("changed",n.isControlChanged("trustRemoteCode")),C(),c(2),p("changed",n.isControlChanged("enableAutoToolChoice")),C(),c(3),p("changed",n.isControlChanged("toolCallParser")),c(),x("disabled",n.isToolCallParserDisabled()),C(),c(),ae(n.toolCallParsers),c(4),p("changed",n.isControlChanged("reasoningParser")),c(),C(),c(),ae(n.reasoningParsers),c(4),p("changed",n.isControlChanged("enablePrefixCaching")),c(),C(),c(9),p("has-changed",n.isSectionChanged("host","port","apiKey")),c(5),p("changed",n.isControlChanged("host")),c(),x("matAutocomplete",h),C(),c(5),ae(n.filteredHosts()),c(2),p("changed",n.isControlChanged("port")),c(),C(),c(3),p("changed",n.isControlChanged("apiKey")),c(),C(),c(3),p("has-changed",n.isSectionChanged("extraFlags","envText")),c(6),p("changed",n.isControlChanged("extraFlags")),c(),C(),c(3),p("changed",n.isControlChanged("envText")),c(),C(),c(11),C(),c(4),C(),c(4),C(),c(),ae(n.restartOptions),c(7),x("disabled",n.form.invalid),c(),ie(" ",n.isEdit&&!n.isClone?"Save":"Create"," ")}},dependencies:[Pe,fn,Do,Oi,Da,Pi,hn,rc,ac,gn,Kt,Gi,Sn,Dn,wt,Yi,Ke,Xe,Bo,Uc,Ns,Wa,Os,Fs,Ps,At,Tt,Lt,_n,ri,ai,Ct,Bt,jt,zt,Mn,kn,Ls,qa],styles:['@charset "UTF-8";.vllm-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;min-width:640px}.form-row[_ngcontent-%COMP%]{display:flex;gap:12px;margin-bottom:4px;align-items:center}.form-col[_ngcontent-%COMP%]{flex:1}.form-col-60[_ngcontent-%COMP%]{flex:3}.full-width[_ngcontent-%COMP%]{width:100%}.auto-path[_ngcontent-%COMP%]{font-family:monospace}.auto-from[_ngcontent-%COMP%]{margin-left:8px;opacity:.6;font-size:12px}.flags-textarea[_ngcontent-%COMP%], .env-textarea[_ngcontent-%COMP%]{overflow-x:auto}mat-dialog-content[_ngcontent-%COMP%]{padding-top:10px!important;max-height:80vh}mat-expansion-panel[_ngcontent-%COMP%]{margin-bottom:0}mat-dialog-actions[_ngcontent-%COMP%]{gap:8px}.subsection-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#0009;margin:4px 0 14px;text-transform:uppercase;letter-spacing:.5px}mat-expansion-panel.has-changed[_ngcontent-%COMP%] mat-panel-title[_ngcontent-%COMP%]{font-weight:700}mat-form-field.changed[_ngcontent-%COMP%] .mat-mdc-form-field-infix input, mat-form-field.changed[_ngcontent-%COMP%] .mat-mdc-form-field-infix .mat-mdc-select{font-weight:700}mat-checkbox.changed[_ngcontent-%COMP%] label{font-weight:700}']})}}return i})();function Si(i,o,e){let t=jo(i,o);return t!==null?t:e}function Ot(i,o,e){let t=jo(i,o);if(t!==null){let n=parseInt(t,10);return isNaN(n)?e:n}return e}function Jn(i,o,e){let t=jo(i,o);if(t!==null){let n=parseFloat(t);return isNaN(n)?e:n}return e}function lC(i,o,e,t){let n=null;for(let a of i){let[r,...u]=a.split(/\s+/);r===o?u.join(" ").trim()==="false"?n="off":n="on":r===e&&(n="off")}return n??t}var cC=(i,o)=>o.name;function dC(i,o){if(i&1){let e=ve();s(0,"button",24),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"start"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"play_arrow"),l(),m(3," Start "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function mC(i,o){if(i&1){let e=ve();s(0,"button",25),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"stop"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"stop"),l(),m(3," Stop "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function uC(i,o){if(i&1){let e=ve();s(0,"button",26),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"disable"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"lock"),l(),m(3," Disable "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function hC(i,o){if(i&1){let e=ve();s(0,"button",26),M("click",function(n){ee(e);let a=_(2).$implicit;return _(2).control(a.name,"enable"),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"lock_open"),l(),m(3," Enable "),l()}if(i&2){let e=_(2).$implicit,t=_(2);x("disabled",e.enabled||t.busy()?.name===e.name)}}function pC(i,o){if(i&1&&(S(0,dC,4,1,"button",19)(1,mC,4,1,"button",22),S(2,uC,4,1,"button",23)(3,hC,4,1,"button",23)),i&2){let e=_().$implicit;k(e.running?1:0),c(2),k(e.enabled?2:3)}}function fC(i,o){if(i&1){let e=ve();s(0,"button",24),M("click",function(n){ee(e);let a=_().$implicit;return _(2).installService(a.name),te(n.stopPropagation())}),s(1,"mat-icon"),m(2,"download"),l(),m(3," Install "),l()}if(i&2){let e=_().$implicit,t=_(2);x("disabled",t.busy()?.name===e.name)}}function gC(i,o){if(i&1){let e=ve();s(0,"tr",14),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.selectedServiceService.select(n.name))}),s(1,"td")(2,"div",15),v(3,"span",16),s(4,"span",17),m(5),l()()(),s(6,"td",18),S(7,pC,4,2)(8,fC,4,1,"button",19),l(),s(9,"td",18)(10,"div")(11,"button",20)(12,"mat-icon"),m(13,"more_vert"),l()(),s(14,"mat-menu",21,2)(16,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.editService(n))}),s(17,"mat-icon"),m(18,"edit"),l(),s(19,"span"),m(20,"Edit"),l()(),s(21,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.cloneService(n))}),s(22,"mat-icon"),m(23,"content_copy"),l(),s(24,"span"),m(25,"Clone"),l()(),s(26,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.archiveService(n.name))}),s(27,"mat-icon"),m(28,"inventory_2"),l(),s(29,"span"),m(30,"Move to Archive"),l()(),s(31,"button",8),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.deleteService(n.name))}),s(32,"mat-icon"),m(33,"delete"),l(),s(34,"span"),m(35,"Delete"),l()()()()()()}if(i&2){let e=o.$implicit,t=Le(15);p("custom",e.hasConfig),c(3),p("running",e.running),c(),p("disabled",!e.enabled),c(),O(e.name),c(2),k(e.installed?7:e.hasConfig?8:-1),c(3),Be("visibility",e.hasConfig?"visible":"hidden"),c(),x("matMenuTriggerFor",t)}}function _C(i,o){if(i&1&&(s(0,"div",10)(1,"table",12)(2,"tbody"),oe(3,gC,36,11,"tr",13,cC),l()()()),i&2){let e=_();c(3),ae(e.filtered())}}function vC(i,o){if(i&1&&(s(0,"p"),m(1),l()),i&2){let e=_(2);c(),ie('No services match "',e.filter().trim(),'".')}}function bC(i,o){i&1&&(s(0,"p"),m(1,'No services configured. Click "Managed services" to select system services or "Custom service" to create one.'),l())}function yC(i,o){if(i&1&&(s(0,"div",11),S(1,vC,2,1,"p")(2,bC,2,0,"p"),l()),i&2){let e=_();c(),k(e.filter().trim()?1:2)}}var Ip=(()=>{class i{constructor(){this.serviceService=d(xt),this.serviceList=d(Es),this.selectedServiceService=d(Ms),this.dialog=d(Po),this.snackBar=d(ks),this.services=this.serviceList.services,this.configs=A([]),this.loading=A(!0),this.busy=A(null),this.unified=U(()=>{let e=this.services(),t=this.configs(),n=new Map;for(let u of t)n.set(u.name,u);let a=e.filter(u=>n.has(u.name)).map(u=>{let h=n.get(u.name)??null;return{name:u.name,running:u.running,enabled:u.enabled,installed:u.installed,pid:u.pid,error:u.error,config:h,hasConfig:!0}}),r=e.filter(u=>!n.has(u.name)).map(u=>Fe(B({},u),{config:null,hasConfig:!1}));return[...a,...r]}),this.filter=A(""),this.filtered=U(()=>{let e=this.filter().trim().toLowerCase(),t=this.unified();return e?t.filter(n=>n.name.toLowerCase().includes(e)):t})}onFilterInput(e){this.filter.set(e.target.value)}ngOnInit(){this.load()}load(){return q(this,null,function*(){this.loading.set(!0);try{yield this.serviceList.refresh(),this.configs.set(yield le(this.serviceService.fetchConfigs()))}catch(e){console.error("[ServicesComponent] load error:",e)}finally{this.loading.set(!1)}})}control(e,t){return q(this,null,function*(){let n=this.busy();if(!(n&&n.name===e&&n.action===t)){this.selectedServiceService.select(e),this.busy.set({name:e,action:t});try{let a=yield le(this.serviceService.control(e,t));a.error&&this.showError(`${e}: ${a.error}`),yield this.load()}catch(a){this.showError(`${e}: ${this.errorText(a)}`)}finally{this.busy.set(null)}}})}installService(e){return q(this,null,function*(){let t=this.busy();if(!(t&&t.name===e&&t.action==="install")){this.selectedServiceService.select(e),this.busy.set({name:e,action:"install"});try{let n=yield le(this.serviceService.installService(e));n.error&&this.showError(`${e}: ${n.error}`),yield this.load()}catch(n){this.showError(`Install "${e}": ${this.errorText(n)}`)}finally{this.busy.set(null)}}})}showError(e){this.snackBar.open(e,"Dismiss",{duration:8e3,horizontalPosition:"center",verticalPosition:"top"})}errorText(e){return e instanceof Wt?e.error?.error??e.message:String(e)}manageServices(){this.dialog.open(pp,{maxWidth:"600px"}).afterClosed().subscribe(t=>{t&&this.load()})}archiveServices(){this.dialog.open(fp,{minWidth:"560px"}).afterClosed().subscribe(t=>{t&&this.load()})}addService(e){this.openDialog(null,e)}editService(e){this.selectedServiceService.select(e.name),this.openDialog(e.config,e.config?.type)}cloneService(e){if(!e.config)return;let t=Fe(B({},e.config),{name:this.uniqueCloneName(e.name)});this.openDialog(t,t.type,!0)}uniqueCloneName(e){let t=new Set(this.configs().map(a=>a.name));if(!t.has(`${e}-copy`))return`${e}-copy`;let n=2;for(;t.has(`${e}-copy-${n}`);)n++;return`${e}-copy-${n}`}deleteService(e){return q(this,null,function*(){if(confirm(`Delete service "${e}"? Its systemd unit will be uninstalled and the config removed.`)){this.selectedServiceService.select(e);try{yield le(this.serviceService.deleteConfig(e)),yield this.load()}catch(t){this.showError(`Delete "${e}": ${this.errorText(t)}`)}}})}archiveService(e){return q(this,null,function*(){if(confirm(`Move service "${e}" to the archive? It will be stopped, uninstalled, and its config shelved. You can restore it from the archive.`)){this.selectedServiceService.select(e);try{yield le(this.serviceService.archiveService(e)),yield this.load()}catch(t){this.showError(`Archive "${e}": ${this.errorText(t)}`)}}})}hasFlags(e){return e.flags.length>0}openDialog(e,t,n=!1){let a=t??e?.type??"generic";if(a==="llama-server"){let r={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Ep,{data:r,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="vllm"){let r={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Ap,{data:r,minWidth:"800px"});this.handleDialogResult(u,e,n)}else{let r={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(lp,{data:r,minWidth:"1000px"});this.handleDialogResult(u,e,n)}}handleDialogResult(e,t,n=!1){e.afterClosed().subscribe(a=>q(this,null,function*(){if(a)try{if(n)yield le(this.serviceService.saveConfig(a));else{let r=t?.name??null;if(r!==null&&r!==a.name){let h=this.unified().find(D=>D.name===r),g=h?.running??!1,b=h?.enabled??!1;yield le(this.serviceService.deleteConfig(r)),yield le(this.serviceService.saveConfig(a)),b&&(yield le(this.serviceService.control(a.name,"enable"))),g&&(yield le(this.serviceService.control(a.name,"start")))}else yield le(this.serviceService.saveConfig(a))}}catch(r){this.showError(`Save: ${this.errorText(r)}`)}finally{yield this.load()}}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-services"]],decls:44,vars:4,consts:[["servicesMenu","matMenu"],["addMenu",""],["serviceMenu","matMenu"],[1,"services-card"],[1,"section-header"],["type","text","placeholder","Filter by name\u2026",1,"service-filter",3,"input","value"],["mat-icon-button","","title","Services actions",1,"header-menu-btn",3,"matMenuTriggerFor"],["xPosition","before"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],[1,"services-scroll"],[1,"empty"],[1,"services-list"],[3,"custom"],[3,"click"],[1,"service-name"],[1,"status-dot"],[1,"name-text"],[1,"service-actions-cell"],["mat-raised-button","","color","primary",3,"disabled"],["mat-icon-button","","title","Service actions",3,"matMenuTriggerFor"],["yPosition","below"],["mat-raised-button","","color","warn",3,"disabled"],["mat-stroked-button","",3,"disabled"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","color","warn",3,"click","disabled"],["mat-stroked-button","",3,"click","disabled"]],template:function(t,n){if(t&1&&(s(0,"div",3)(1,"div",4)(2,"h2"),m(3,"Services"),l(),s(4,"input",5),M("input",function(r){return n.onFilterInput(r)}),l(),s(5,"button",6)(6,"mat-icon"),m(7,"more_vert"),l()(),s(8,"mat-menu",7,0)(10,"button",8),M("click",function(){return n.manageServices()}),s(11,"mat-icon"),m(12,"tune"),l(),s(13,"span"),m(14,"Managed services"),l()(),s(15,"button",8),M("click",function(){return n.archiveServices()}),s(16,"mat-icon"),m(17,"inventory_2"),l(),s(18,"span"),m(19,"Archive"),l()(),s(20,"button",9)(21,"mat-icon"),m(22,"add"),l(),s(23,"span"),m(24,"Custom service"),l()()(),s(25,"mat-menu",null,1)(27,"button",8),M("click",function(){return n.addService("generic")}),s(28,"mat-icon"),m(29,"settings"),l(),s(30,"span"),m(31,"Generic service"),l()(),s(32,"button",8),M("click",function(){return n.addService("llama-server")}),s(33,"mat-icon"),m(34,"smart_toy"),l(),s(35,"span"),m(36,"llama-server"),l()(),s(37,"button",8),M("click",function(){return n.addService("vllm")}),s(38,"mat-icon"),m(39,"bolt"),l(),s(40,"span"),m(41,"vllm"),l()()()(),S(42,_C,5,0,"div",10)(43,yC,3,1,"div",11),l()),t&2){let a=Le(9),r=Le(26);c(4),x("value",n.filter()),c(),x("matMenuTriggerFor",a),c(15),x("matMenuTriggerFor",r),c(22),k(n.filtered().length>0?42:n.loading()?-1:43)}},dependencies:[Pe,Ke,Xe,vi,Ao,Ss,wn,Xn,Ds,yt,bt],styles:[".services-card[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.section-header[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.section-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:#333}.section-header[_ngcontent-%COMP%] .header-menu-btn[_ngcontent-%COMP%]{color:#666}.section-header[_ngcontent-%COMP%] .service-filter[_ngcontent-%COMP%]{flex:1 1 240px;max-width:320px;min-width:140px;margin:0 16px;padding:6px 12px;font-size:.9rem;border:1px solid #cfcfcf;border-radius:16px;outline:none;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.section-header[_ngcontent-%COMP%] .service-filter[_ngcontent-%COMP%]::placeholder{color:#9e9e9e}.section-header[_ngcontent-%COMP%] .service-filter[_ngcontent-%COMP%]:focus{border-color:#7c4dff;box-shadow:0 0 0 2px #7c4dff26}.services-scroll[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto}.services-list[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}.services-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #e0e0e0;transition:background-color .2s ease}.services-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#fff}.services-list[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.services-list[_ngcontent-%COMP%] tr.custom[_ngcontent-%COMP%], .services-list[_ngcontent-%COMP%] tr.custom[_ngcontent-%COMP%]:first-child td[_ngcontent-%COMP%]:first-child{border-left:3px solid #7c4dff}.services-list[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:4px 12px;vertical-align:middle}.service-name[_ngcontent-%COMP%]{font-size:1rem;font-weight:600;white-space:nowrap;display:flex;align-items:center;gap:8px}.service-name[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%;background-color:#bdbdbd}.service-name[_ngcontent-%COMP%] .status-dot.running[_ngcontent-%COMP%]{background-color:#4caf50}.service-name[_ngcontent-%COMP%] .name-text[_ngcontent-%COMP%]{color:#212121}.service-name[_ngcontent-%COMP%] .name-text.disabled[_ngcontent-%COMP%]{color:#9e9e9e}.service-actions-cell[_ngcontent-%COMP%]{white-space:nowrap}.service-actions-cell[_ngcontent-%COMP%] button[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{margin-left:8px}.status-chip[_ngcontent-%COMP%], .enabled-chip[_ngcontent-%COMP%]{font-size:.8rem;font-weight:500}.status-chip.running[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #a5d6a7}.status-chip.stopped[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #ef9a9a}.enabled-chip.enabled[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #90caf9}.enabled-chip.disabled[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #bdbdbd}.empty[_ngcontent-%COMP%]{text-align:center;padding:24px;color:#999;font-size:.9rem}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}"]})}}return i})();var CC=["journalBody"],xC=(i,o)=>o.name;function wC(i,o){if(i&1&&(s(0,"mat-option",7),m(1),l()),i&2){let e=o.$implicit;x("value",e.name),c(),O(e.name)}}function DC(i,o){if(i&1){let e=ve();s(0,"button",10),M("click",function(){ee(e);let n=_(2);return te(n.toggleWordWrap())}),s(1,"mat-icon"),m(2,"wrap_text"),l()()}}function SC(i,o){if(i&1){let e=ve();s(0,"button",11),M("click",function(){ee(e);let n=_(2);return te(n.toggleWordWrap())}),s(1,"mat-icon"),m(2,"wrap_text"),l()()}}function kC(i,o){if(i&1){let e=ve();s(0,"mat-select",6),M("ngModelChange",function(n){ee(e);let a=_();return te(a.onServiceChange(n))}),s(1,"mat-option",7),m(2,"\u2014 None \u2014"),l(),oe(3,wC,2,2,"mat-option",7,xC),l(),y(),S(5,DC,3,0,"button",8)(6,SC,3,0,"button",9)}if(i&2){let e=_();x("ngModel",e.selectedService()),C(),c(),x("value",null),c(2),ae(e.services()),c(2),k(e.wordWrap()?5:6)}}function MC(i,o){if(i&1&&(s(0,"div",3),m(1),l()),i&2){let e=_();c(),O(e.error())}}function EC(i,o){if(i&1&&(s(0,"div",4,0)(2,"pre"),m(3),l()()),i&2){let e=_();c(2),p("wrap-on",e.wordWrap()),c(),O(e.journalText())}}function TC(i,o){i&1&&(s(0,"div",5)(1,"p"),m(2,"No service selected"),l()())}var AC=40,Rp=(()=>{class i{toggleWordWrap(){this.wordWrap.update(e=>!e)}constructor(){this.serviceService=d(xt),this.selectedServiceService=d(Ms),this.serviceList=d(Es),this.cdr=d(ce),this.services=this.serviceList.services,this.servicesLoaded=this.serviceList.loaded,this.journalLines=A([]),this.journalLoading=A(!1),this.journalError=A(null),this.error=U(()=>this.serviceList.error()??this.journalError()),this.selectedService=U(()=>this.selectedServiceService.selectedService()),this.wordWrap=A(!0),this.journalText=U(()=>{let e=this.journalLines();return e.length===0?"":e.map(t=>t.timestamp?`${t.timestamp} ${t.message}`:t.message).join(`
|
|
5598
5598
|
`)}),$t(()=>{if(!this.servicesLoaded())return;let e=this.selectedService();e!==null&&!this.services().some(t=>t.name===e)&&this.selectedServiceService.select(null)}),$t(()=>{if(!this.servicesLoaded())return;this.selectedService()?(this.journalLines.set([]),this.journalError.set(null),this.restartPolling()):(this.stopPolling(),this.journalLines.set([]))}),this.serviceList.refresh()}ngAfterViewInit(){this.scrollToBottom()}ngOnDestroy(){this.stopPolling()}onServiceChange(e){this.selectedServiceService.select(e)}restartPolling(){this.stopPolling(),this.fetchJournal(),this.journalSub=er(0,1e3).subscribe(()=>this.fetchJournal())}stopPolling(){this.journalSub&&(this.journalSub.unsubscribe(),this.journalSub=void 0)}fetchJournal(){let e=this.selectedService();e&&(this.isTextSelected()||(this.journalLoading.set(!0),this.serviceService.fetchJournal(e,100).subscribe({next:t=>{let n=this.isScrolledToBottom();this.journalLines.set(t),this.journalError.set(null),this.journalLoading.set(!1),this.cdr.markForCheck(),requestAnimationFrame(()=>{n&&this.scrollToBottom()})},error:t=>{this.journalError.set(t.message),this.journalLoading.set(!1),this.cdr.markForCheck()}})))}get scrollContainer(){return this.journalBody?.nativeElement??null}isTextSelected(){let e=typeof window<"u"?window:null;if(!e)return!1;let t=e.getSelection();if(!t||t.isCollapsed||!t.rangeCount)return!1;let n=this.scrollContainer;return n?n.contains(t.anchorNode):!1}isScrolledToBottom(){let e=this.scrollContainer;return e?e.scrollHeight-e.scrollTop-e.clientHeight<=AC:!0}scrollToBottom(){let e=this.scrollContainer;e&&(e.scrollTop=e.scrollHeight)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-journal-panel"]],viewQuery:function(t,n){if(t&1&&Te(CC,5),t&2){let a;F(a=N())&&(n.journalBody=a.first)}},decls:9,vars:3,consts:[["journalBody",""],[1,"journal-card"],[1,"journal-header"],[1,"journal-error"],[1,"journal-body"],[1,"journal-body","journal-empty"],["disableOptionCentering","",1,"service-select",3,"ngModelChange","ngModel"],[3,"value"],["mat-flat-button","","color","primary","aria-label","Disable word wrap"],["mat-stroked-button","","aria-label","Enable word wrap"],["mat-flat-button","","color","primary","aria-label","Disable word wrap",3,"click"],["mat-stroked-button","","aria-label","Enable word wrap",3,"click"]],template:function(t,n){t&1&&(s(0,"mat-card",1)(1,"mat-card-content")(2,"div",2)(3,"h2"),m(4,"Journal"),l(),S(5,kC,7,3),l(),S(6,MC,2,1,"div",3),S(7,EC,4,3,"div",4)(8,TC,3,0,"div",5),l()()),t&2&&(c(5),k(n.servicesLoaded()&&n.services().length>0?5:-1),c(),k(n.error()?6:-1),c(),k(n.selectedService()?7:8))},dependencies:[Pe,rn,on,an,Mn,kn,wt,Ke,Xe,yt,bt,ni,fn,Pi,lc],styles:[".journal-card[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;overflow:hidden}.journal-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;overflow:hidden;padding-bottom:8px}.journal-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-shrink:0}.journal-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:500}.service-select[_ngcontent-%COMP%]{flex:1;min-width:150px}.journal-error[_ngcontent-%COMP%]{color:#f44336;font-size:13px;margin-bottom:8px;flex-shrink:0}.journal-body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;background:#1e1e1e;border-radius:4px;padding:8px;min-height:0}.journal-body[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.journal-body[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#2d2d2d;border-radius:4px}.journal-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#555;border-radius:4px}.journal-body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#777}.journal-body[_ngcontent-%COMP%]{scrollbar-width:thin;scrollbar-color:#555 #2d2d2d}.journal-body[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0;font-family:Courier New,Courier,monospace;font-size:12px;line-height:1.6;color:#d4d4d4;white-space:pre}.journal-body[_ngcontent-%COMP%] pre.wrap-on[_ngcontent-%COMP%]{white-space:pre-wrap}.journal-empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.journal-empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:#888;font-size:14px}[_nghost-%COMP%] .mdc-button{min-width:32px}[_nghost-%COMP%] .mat-mdc-unelevated-button>.mat-icon, [_nghost-%COMP%] .mat-mdc-outlined-button>.mat-icon{margin-right:0}"]})}}return i})();var Vs=(()=>{class i{constructor(){this.http=d(vt),this.baseUrl="/api/system"}reboot(){return q(this,null,function*(){yield le(this.http.post(`${this.baseUrl}/reboot`,null))})}shutdown(){return q(this,null,function*(){yield le(this.http.post(`${this.baseUrl}/shutdown`,null))})}getSystemInfo(){return q(this,null,function*(){return le(this.http.get(`${this.baseUrl}/info`))})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Bs=(()=>{class i{constructor(){this.http=d(vt),this.baseUrl="/api/hf"}getStatus(){return q(this,null,function*(){return le(this.http.get(`${this.baseUrl}/status`))})}getDownloads(){return q(this,null,function*(){return le(this.http.get(`${this.baseUrl}/downloads`))})}getLocalModels(){return q(this,null,function*(){return le(this.http.get(`${this.baseUrl}/models`))})}deleteLocalModel(e){return q(this,null,function*(){let[t,...n]=e.split("/");yield le(this.http.delete(`${this.baseUrl}/models/${t}/${n.join("/")}`))})}deleteLocalModelFile(e,t){return q(this,null,function*(){let[n,...a]=e.split("/");yield le(this.http.delete(`${this.baseUrl}/models/${n}/${a.join("/")}/files/${encodeURIComponent(t)}`))})}getOrphanBlobs(){return q(this,null,function*(){return le(this.http.get(`${this.baseUrl}/models/orphans`))})}cleanupOrphanBlobs(){return q(this,null,function*(){return le(this.http.post(`${this.baseUrl}/models/orphans/cleanup`,{}))})}action(e,t){return q(this,null,function*(){yield le(this.http.post(`${this.baseUrl}/downloads/action`,{action:e,repoId:t.repoId,dest:t.dest}))})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var IC=(i,o)=>o.device,RC=(i,o)=>o.path;function OC(i,o){i&1&&v(0,"mat-progress-bar",2)}function PC(i,o){if(i&1&&(s(0,"p",3),m(1),l()),i&2){let e=_();c(),O(e.error())}}function FC(i,o){if(i&1&&(s(0,"span",11),m(1),l()),i&2){let e=_(2);c(),O(e.info().uptime)}}function NC(i,o){if(i&1&&(s(0,"div",12)(1,"span",13),m(2,"Version"),l(),s(3,"span",14),m(4),l()()),i&2){let e=_(2);c(4),O(e.info().os.version)}}function LC(i,o){if(i&1&&(s(0,"div",16)(1,"div",18)(2,"span",19),m(3),l(),s(4,"span",20),m(5),l()(),s(6,"div",21),v(7,"div",22),l(),s(8,"div",23)(9,"span"),m(10),l(),s(11,"span"),m(12),l()()()),i&2){let e=o.$implicit,t=_(2);c(3),O(e.device),c(2),O(e.mountPoint),c(2),Be("width",e.usePercent,"%")("background",e.usePercent>90?"#f44336":e.usePercent>75?"#ff9800":"#4caf50"),c(3),fi("",t.formatBytes(e.available)," free of ",t.formatBytes(e.total)),c(2),ie("",e.usePercent,"% used")}}function VC(i,o){if(i&1&&(s(0,"div",27)(1,"span",31),m(2,"Last"),l(),s(3,"span",32),m(4),Wo(5,"date"),l()()),i&2){let e=_(3);c(4),O(qo(5,1,e.info().timeshift.lastSnapshot,"medium"))}}function BC(i,o){if(i&1&&(s(0,"mat-chip",33),m(1),l()),i&2){let e=o.$implicit;c(),O(e)}}function zC(i,o){if(i&1&&(s(0,"mat-chip-set"),oe(1,BC,2,1,"mat-chip",33,at),l()),i&2){let e=_(3);c(),ae(e.info().timeshift.schedules)}}function jC(i,o){if(i&1&&(s(0,"div",6)(1,"h3"),m(2,"Timeshift Backup"),l(),s(3,"div",7)(4,"div",8)(5,"mat-chip-set")(6,"mat-chip",24),m(7),l(),s(8,"mat-chip",25),m(9),l()(),s(10,"span",26),m(11),l()(),S(12,VC,6,4,"div",27),s(13,"div",28),v(14,"div",29),l(),s(15,"div",30)(16,"span"),m(17),l(),S(18,zC,3,0,"mat-chip-set"),l()()(),v(19,"mat-divider",15)),i&2){let e=_(2);c(7),O(e.info().timeshift.mode),c(2),O(e.info().timeshift.device),c(2),ie("",e.info().timeshift.snapshots," snapshots"),c(),k(e.info().timeshift.lastSnapshot?12:-1),c(2),Be("width",e.info().timeshift.totalSpace>0?(e.info().timeshift.totalSpace-e.info().timeshift.freeSpace)/e.info().timeshift.totalSpace*100:0,"%")("background",e.info().timeshift.totalSpace>0&&(e.info().timeshift.totalSpace-e.info().timeshift.freeSpace)/e.info().timeshift.totalSpace>.9?"#f44336":e.info().timeshift.totalSpace>0&&(e.info().timeshift.totalSpace-e.info().timeshift.freeSpace)/e.info().timeshift.totalSpace>.75?"#ff9800":"#4caf50"),c(3),fi("",e.formatBytes(e.info().timeshift.freeSpace)," free of ",e.formatBytes(e.info().timeshift.totalSpace)),c(),k(e.info().timeshift.schedules.length>0?18:-1)}}function HC(i,o){if(i&1&&m(0),i&2){let e=_().$implicit,t=_(2);ie(" ",t.formatBytes(e.size)," ")}}function UC(i,o){i&1&&m(0," \u2014 ")}function $C(i,o){if(i&1&&(s(0,"div",17)(1,"span",34),m(2),l(),s(3,"span",35),S(4,HC,1,1)(5,UC,1,0),l()()),i&2){let e=o.$implicit;c(2),O(e.path),c(2),k(e.exists?4:5)}}function GC(i,o){if(i&1&&(s(0,"div",6)(1,"h3"),m(2,"Operating System"),l(),s(3,"div",7)(4,"div",8)(5,"mat-chip-set")(6,"mat-chip",9),m(7),l(),s(8,"mat-chip",10),m(9),l()(),S(10,FC,2,1,"span",11),l(),S(11,NC,5,1,"div",12),s(12,"div",12)(13,"span",13),m(14,"Kernel"),l(),s(15,"span",14),m(16),l()()()(),v(17,"mat-divider",15),s(18,"div",6)(19,"h3"),m(20,"Disks"),l(),oe(21,LC,13,9,"div",16,IC),l(),v(23,"mat-divider",15),S(24,jC,20,11),s(25,"div",6)(26,"h3"),m(27,"System Logs"),l(),oe(28,$C,6,2,"div",17,RC),l()),i&2){let e=_();c(7),O(e.info().hostname),c(2),O(e.info().os.name),c(),k(e.info().uptime?10:-1),c(),k(e.info().os.version?11:-1),c(5),O(e.info().kernel),c(5),ae(e.info().disks),c(3),k(e.info().timeshift?24:-1),c(4),ae(e.info().logs)}}var Op=(()=>{class i{constructor(){this.systemService=d(Vs),this.dialogRef=d(ht),this.loading=A(!0),this.info=A(null),this.error=A(null)}ngOnInit(){return q(this,null,function*(){try{let e=yield this.systemService.getSystemInfo();this.info.set(e)}catch(e){this.error.set(e instanceof Error?e.message:"Failed to load system info")}finally{this.loading.set(!1)}})}formatBytes(e){return e===0?"0 B":`${(e/(1024*1024*1024)).toFixed(1)} GB`}close(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-system-info-dialog"]],decls:12,vars:1,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mode","indeterminate"],[1,"dialog-error"],["align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"info-section"],[1,"info-card"],[1,"info-card-header"],[1,"hostname-chip"],[1,"distro-chip"],[1,"os-uptime"],[1,"info-row"],[1,"info-label"],[1,"info-value"],[1,"section-divider"],[1,"disk-row"],[1,"log-row"],[1,"disk-header"],[1,"disk-device"],[1,"disk-mount"],[1,"disk-bar-bg"],[1,"disk-bar-fill"],[1,"disk-details"],[1,"mode-chip"],[1,"device-chip"],[1,"timeshift-snapshots"],[1,"timeshift-row"],[1,"timeshift-disk-bar-bg"],[1,"timeshift-disk-bar-fill"],[1,"timeshift-disk-details"],[1,"timeshift-label"],[1,"timeshift-value"],[1,"schedule-chip"],[1,"log-path"],[1,"log-size"]],template:function(t,n){t&1&&(s(0,"div",0)(1,"h2",1)(2,"mat-icon"),m(3,"info"),l(),m(4," System Info "),l(),s(5,"mat-dialog-content"),S(6,OC,1,0,"mat-progress-bar",2)(7,PC,2,1,"p",3)(8,GC,30,6),l(),s(9,"mat-dialog-actions",4)(10,"button",5),M("click",function(){return n.close()}),m(11,"OK"),l()()()),t&2&&(c(6),k(n.loading()?6:n.error()?7:n.info()?8:-1))},dependencies:[Pe,Ke,Xe,Ct,Bt,jt,zt,ni,Ii,zo,Ga,yt,bt,Ao,Pa,Rh,hl],styles:[".dialog-container[_ngcontent-%COMP%]{min-width:480px}.dialog-error[_ngcontent-%COMP%]{color:#f44336;padding:8px 0}.info-section[_ngcontent-%COMP%]{margin-bottom:8px}.info-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 8px;font-size:14px;font-weight:600;color:#666;text-transform:uppercase;letter-spacing:.5px}.info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:4px 0}.info-row[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{color:#666;font-size:14px}.info-row[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-family:monospace;font-size:13px;color:#333}.section-divider[_ngcontent-%COMP%]{margin:12px 0}.disk-row[_ngcontent-%COMP%]{margin-bottom:12px}.disk-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:4px}.disk-header[_ngcontent-%COMP%] .disk-device[_ngcontent-%COMP%]{font-family:monospace;font-size:13px}.disk-header[_ngcontent-%COMP%] .disk-mount[_ngcontent-%COMP%]{font-size:13px;color:#666}.disk-bar-bg[_ngcontent-%COMP%]{height:6px;background:#e0e0e0;border-radius:3px;overflow:hidden;margin-bottom:2px}.disk-bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:3px}.disk-details[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:12px;color:#666}.info-card[_ngcontent-%COMP%]{background:#f5f5f5;border-radius:8px;padding:12px}.info-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.info-card-header[_ngcontent-%COMP%] .hostname-chip[_ngcontent-%COMP%]{font-family:monospace;background:#e8eaf6!important;color:#303f9f!important}.info-card-header[_ngcontent-%COMP%] .distro-chip[_ngcontent-%COMP%], .info-card-header[_ngcontent-%COMP%] .mode-chip[_ngcontent-%COMP%]{font-weight:600;background:#e3f2fd!important;color:#1976d2!important}.info-card-header[_ngcontent-%COMP%] .device-chip[_ngcontent-%COMP%]{font-family:monospace;background:#e8eaf6!important;color:#303f9f!important}.os-uptime[_ngcontent-%COMP%], .timeshift-snapshots[_ngcontent-%COMP%]{font-size:13px;color:#666;white-space:nowrap}.timeshift-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:4px 0;margin-bottom:6px}.timeshift-row[_ngcontent-%COMP%] .timeshift-label[_ngcontent-%COMP%]{color:#666;font-size:13px}.timeshift-row[_ngcontent-%COMP%] .timeshift-value[_ngcontent-%COMP%]{font-size:13px;color:#333}.timeshift-disk-bar-bg[_ngcontent-%COMP%]{height:6px;background:#e0e0e0;border-radius:3px;overflow:hidden;margin-bottom:4px}.timeshift-disk-bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:3px}.timeshift-disk-details[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#666}.timeshift-disk-details[_ngcontent-%COMP%] .schedule-chip[_ngcontent-%COMP%]{font-size:11px;background:#fff3e0!important;color:#e65100!important}.log-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:4px 0}.log-row[_ngcontent-%COMP%] .log-path[_ngcontent-%COMP%]{font-family:monospace;font-size:13px}.log-row[_ngcontent-%COMP%] .log-size[_ngcontent-%COMP%]{font-family:monospace;font-size:13px;color:#333}"]})}}return i})();var Pp=(()=>{class i{constructor(){this.http=d(vt),this.baseUrl="/api/lmstudio"}getModels(){return q(this,null,function*(){return le(this.http.get(`${this.baseUrl}/models`))})}deleteModel(e){return q(this,null,function*(){let[t,...n]=e.split("/");yield le(this.http.delete(`${this.baseUrl}/models/${t}/${n.join("/")}`))})}deleteModelFile(e,t){return q(this,null,function*(){let[n,...a]=e.split("/");yield le(this.http.delete(`${this.baseUrl}/models/${n}/${a.join("/")}/files/${encodeURIComponent(t)}`))})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var zs=(i,o)=>o.name,WC=(i,o)=>o.repoId+o.dest;function qC(i,o){i&1&&(s(0,"div",2),m(1),l()),i&2&&(c(),O(o))}function KC(i,o){i&1&&(s(0,"div",4),m(1,"Loading\u2026"),l())}function YC(i,o){i&1&&(s(0,"div",5),m(1,"Loading\u2026"),l())}function XC(i,o){i&1&&(s(0,"div",6),m(1,"No models in the Hugging Face cache"),l())}function ZC(i,o){if(i&1&&(s(0,"mat-icon",22),m(1),l(),s(2,"span",17),m(3),l(),s(4,"span",23),m(5),l()),i&2){let e=_().$implicit,t=_(3);c(),ie(" ",t.expanded()==="hf:"+e.name?"expand_more":"chevron_right"," "),c(2),O(e.name),c(2),ie("",t.hfFiles(e).length," file(s)")}}function QC(i,o){if(i&1&&(s(0,"span",17),m(1),l()),i&2){let e=_().$implicit;c(),O(e.name)}}function JC(i,o){if(i&1&&(s(0,"span",26),m(1),l()),i&2){let e=_().$implicit;c(),ie("",e.shards.length," shards")}}function ex(i,o){if(i&1){let e=ve();s(0,"div",24)(1,"span",25),m(2),l(),S(3,JC,2,1,"span",26),s(4,"span",19),m(5),l(),s(6,"button",27),M("click",function(){let n=ee(e).$implicit,a=_(2).$implicit,r=_(3);return te(r.deleteHfFile(a,n))}),s(7,"mat-icon"),m(8,"delete"),l()()()}if(i&2){let e=o.$implicit,t=_(2).$implicit,n=_(3);c(),x("title",e.shards?e.shards.join(`
|
|
5599
5599
|
`):e.name),c(),O(e.name),c(),k(e.shards?3:-1),c(2),O(n.formatBytes(e.size)),c(),x("disabled",n.fileDeleting()==="hf:"+t.name+"/"+e.name)}}function tx(i,o){if(i&1&&(s(0,"div",21),oe(1,ex,9,5,"div",24,zs),l()),i&2){let e=_().$implicit,t=_(3);c(),ae(t.hfFiles(e))}}function ix(i,o){if(i&1){let e=ve();s(0,"div",14)(1,"div",15),M("click",function(){let n=ee(e).$implicit,a=_(3);return te(a.hfFiles(n).length>0&&a.toggleExpand("hf:"+n.name))}),s(2,"div",16),S(3,ZC,6,3)(4,QC,2,1,"span",17),l(),s(5,"span",18),m(6),l()(),s(7,"span",19),m(8),l(),s(9,"button",20),M("click",function(){let n=ee(e).$implicit,a=_(3);return te(a.deleteModel(n))}),s(10,"mat-icon"),m(11,"delete"),l()()(),S(12,tx,3,0,"div",21)}if(i&2){let e=o.$implicit,t=_(3);c(),p("expandable",t.hfFiles(e).length>0),c(2),k(t.hfFiles(e).length>0?3:4),c(2),x("title",e.dir),c(),O(e.dir),c(2),O(t.formatBytes(e.size)),c(),x("disabled",t.deleting()===e.name),c(3),k(t.expanded()==="hf:"+e.name?12:-1)}}function nx(i,o){if(i&1&&(s(0,"div",7),oe(1,ix,13,8,null,null,zs),l()),i&2){let e=_(2);c(),ae(e.staticModels())}}function ox(i,o){i&1&&(s(0,"div",6),m(1,"No active downloads"),l())}function ax(i,o){if(i&1&&(s(0,"span",31),m(1),l()),i&2){let e=_().$implicit;c(),ie("pid ",e.pids.join(", "))}}function rx(i,o){if(i&1){let e=ve();s(0,"button",42),M("click",function(){ee(e);let n=_().$implicit,a=_(3);return te(a.resume(n))}),s(1,"mat-icon"),m(2,"play_arrow"),l()()}}function sx(i,o){if(i&1){let e=ve();s(0,"button",43),M("click",function(){ee(e);let n=_().$implicit,a=_(3);return te(a.pause(n))}),s(1,"mat-icon"),m(2,"pause"),l()()}}function lx(i,o){if(i&1){let e=ve();s(0,"div",28)(1,"div",29)(2,"div",16)(3,"span",17),m(4),l(),s(5,"span",30),m(6),l(),S(7,ax,2,1,"span",31),l(),s(8,"div",18),m(9),l(),v(10,"mat-progress-bar",32),s(11,"div",33)(12,"span",34),m(13),l(),s(14,"span",35),m(15),l(),s(16,"span",36),m(17),l(),s(18,"span",37),m(19),l()()(),s(20,"div",38),S(21,rx,3,0,"button",39)(22,sx,3,0,"button",40),s(23,"button",41),M("click",function(){let n=ee(e).$implicit,a=_(3);return te(a.cancel(n))}),s(24,"mat-icon"),m(25,"cancel"),l()()()()}if(i&2){let e=o.$implicit,t=_(3);c(4),O(e.repoId),c(),p("paused",e.status==="paused"),c(),O(e.status),c(),k(e.pids.length>0?7:-1),c(),x("title",e.dest),c(),O(e.dest),c(),x("mode",t.progressMode(e))("value",t.percent(e)??0),c(3),fi(" ",t.formatBytes(e.doneBytes)," / ",e.totalBytes>0?t.formatBytes(e.totalBytes):"\u2026"," "),c(2),fi("",e.filesDone," / ",e.filesTotal," files"),c(2),O(t.formatSpeed(e.speedBps)),c(2),O(e.status==="paused"?"paused":"\u2248 "+t.formatEta(e.etaSeconds)),c(2),k(e.status==="paused"?21:22)}}function cx(i,o){if(i&1&&(s(0,"div",11),oe(1,lx,26,16,"div",28,WC),l()),i&2){let e=_(2);c(),ae(e.downloads())}}function dx(i,o){if(i&1&&(s(0,"span",12),m(1),l()),i&2){let e=_(2);c(),fi(" \u2014 ",e.orphans().length," file(s), ",e.formatBytes(e.totalOrphanBytes()))}}function mx(i,o){i&1&&(s(0,"div",5),m(1,"Loading\u2026"),l())}function ux(i,o){i&1&&(s(0,"div",6),m(1,"No orphaned blobs"),l())}function hx(i,o){if(i&1){let e=ve();s(0,"div",13)(1,"button",44),M("click",function(){ee(e);let n=_(2);return te(n.cleanupOrphans())}),m(2),l()()}if(i&2){let e=_(2);c(),x("disabled",e.cleaning()),c(),ie(" ",e.cleaning()?"Cleaning\u2026":"Cleanup ("+e.formatBytes(e.totalOrphanBytes())+")"," ")}}function px(i,o){if(i&1&&(s(0,"div",10),m(1,"Downloaded models"),l(),S(2,YC,2,0,"div",5)(3,XC,2,0,"div",6)(4,nx,3,0,"div",7),s(5,"div",10),m(6,"Downloading"),l(),S(7,ox,2,0,"div",6)(8,cx,3,0,"div",11),s(9,"div",10),m(10," Orphaned blobs "),S(11,dx,2,2,"span",12),l(),S(12,mx,2,0,"div",5)(13,ux,2,0,"div",6)(14,hx,3,2,"div",13)),i&2){let e=_();c(2),k(e.modelsLoading()?2:e.staticModels().length===0?3:4),c(5),k(e.downloads().length===0?7:8),c(4),k(!e.orphansLoading()&&e.orphans().length>0?11:-1),c(),k(e.orphansLoading()?12:e.orphans().length===0?13:14)}}function fx(i,o){i&1&&(s(0,"div",5),m(1,"Loading\u2026"),l())}function gx(i,o){i&1&&(s(0,"div",6),m(1,"No models in ~/.lmstudio/models"),l())}function _x(i,o){if(i&1&&(s(0,"span",26),m(1),l()),i&2){let e=_().$implicit;c(),ie("",e.shards.length," shards")}}function vx(i,o){if(i&1){let e=ve();s(0,"div",24)(1,"span",25),m(2),l(),S(3,_x,2,1,"span",26),s(4,"span",19),m(5),l(),s(6,"button",27),M("click",function(){let n=ee(e).$implicit,a=_(2).$implicit,r=_(2);return te(r.deleteLmFile(a,n))}),s(7,"mat-icon"),m(8,"delete"),l()()()}if(i&2){let e=o.$implicit,t=_(2).$implicit,n=_(2);c(),x("title",e.shards?e.shards.join(`
|
|
5600
|
-
`):e.name),c(),O(e.name),c(),k(e.shards?3:-1),c(2),O(n.formatBytes(e.size)),c(),x("disabled",n.fileDeleting()==="lm:"+t.name+"/"+e.name)}}function bx(i,o){i&1&&(s(0,"div",6),m(1,"No .gguf files"),l())}function yx(i,o){if(i&1&&(s(0,"div",21),oe(1,vx,9,5,"div",24,zs,!1,bx,2,0,"div",6),l()),i&2){let e=_().$implicit;c(),ae(e.files)}}function Cx(i,o){if(i&1){let e=ve();s(0,"div",45)(1,"div",46),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.toggleExpand("lm:"+n.name))}),s(2,"div",16)(3,"mat-icon",22),m(4),l(),s(5,"span",17),m(6),l(),s(7,"span",23),m(8),l()(),s(9,"span",18),m(10),l()(),s(11,"span",19),m(12),l(),s(13,"button",20),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.deleteLmModel(n))}),s(14,"mat-icon"),m(15,"delete"),l()()(),S(16,yx,4,1,"div",21)}if(i&2){let e=o.$implicit,t=_(2);c(4),O(t.expanded()==="lm:"+e.name?"expand_more":"chevron_right"),c(2),O(e.name),c(2),ie("",e.files.length," file(s)"),c(),x("title",e.dir),c(),O(e.dir),c(2),O(t.formatBytes(e.size)),c(),x("disabled",t.lmDeleting()===e.name),c(3),k(t.expanded()==="lm:"+e.name?16:-1)}}function xx(i,o){if(i&1&&(s(0,"div",7),oe(1,Cx,17,8,null,null,zs),l()),i&2){let e=_();c(),ae(e.lmModels())}}var wx=2e3,Fp=(()=>{class i{constructor(){this.hfService=d(Bs),this.lmStudioService=d(Pp),this.dialogRef=d(ht),this.downloads=A([]),this.models=A([]),this.loading=A(!0),this.modelsLoading=A(!0),this.error=A(null),this.deleting=A(null),this.lmModels=A([]),this.lmLoading=A(!0),this.lmDeleting=A(null),this.expanded=A(null),this.fileDeleting=A(null),this.staticModels=U(()=>{let e=new Set(this.downloads().map(t=>t.dest));return this.models().filter(t=>!e.has(t.dir))}),this.orphans=A([]),this.orphansLoading=A(!0),this.cleaning=A(!1),this.totalOrphanBytes=U(()=>this.orphans().reduce((e,t)=>e+t.size,0)),this.timer=null,this.busy=!1}ngOnInit(){this.refresh(),this.refreshModels(),this.refreshOrphans(),this.refreshLmModels(),this.timer=setInterval(()=>{this.refresh()},wx)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}refresh(){return q(this,null,function*(){try{this.downloads.set(yield this.hfService.getDownloads()),this.error.set(null)}catch(e){this.error.set(this.errorText(e,"Failed to load downloads"))}finally{this.loading.set(!1)}})}refreshModels(){return q(this,null,function*(){try{this.models.set(yield this.hfService.getLocalModels())}catch(e){this.error.set(this.errorText(e,"Failed to load models"))}finally{this.modelsLoading.set(!1)}})}refreshLmModels(){return q(this,null,function*(){try{this.lmModels.set(yield this.lmStudioService.getModels())}catch(e){this.error.set(this.errorText(e,"Failed to load LM Studio models"))}finally{this.lmLoading.set(!1)}})}toggleExpand(e){this.expanded.set(this.expanded()===e?null:e)}hfFiles(e){return e.files??[]}deleteLmModel(e){return q(this,null,function*(){if(!this.lmDeleting()&&confirm(`Delete model ${e.name} (${this.formatBytes(e.size)}) from the LM Studio folder?`)){this.lmDeleting.set(e.name);try{yield this.lmStudioService.deleteModel(e.name),yield this.refreshLmModels()}catch(t){this.error.set(this.errorText(t,`Failed to delete ${e.name}`))}finally{this.lmDeleting.set(null)}}})}deleteLmFile(e,t){return q(this,null,function*(){let n=t.shards??[t.name],a=`lm:${e.name}/${t.name}`;if(this.fileDeleting())return;let r=t.shards?`${t.name} (${t.shards.length} shard files)`:t.name;if(confirm(`Delete file ${r} (${this.formatBytes(t.size)})?`)){this.fileDeleting.set(a);try{for(let u of n)yield this.lmStudioService.deleteModelFile(e.name,u);yield this.refreshLmModels()}catch(u){this.error.set(this.errorText(u,`Failed to delete ${t.name}`))}finally{this.fileDeleting.set(null)}}})}deleteHfFile(e,t){return q(this,null,function*(){let n=t.shards??[t.name],a=`hf:${e.name}/${t.name}`;if(this.fileDeleting())return;let r=t.shards?`${t.name} (${t.shards.length} shard files)`:t.name;if(confirm(`Delete ${r} (${this.formatBytes(t.size)}) from the Hugging Face cache?`)){this.fileDeleting.set(a);try{for(let u of n)yield this.hfService.deleteLocalModelFile(e.name,u);yield this.refreshModels(),yield this.refreshOrphans()}catch(u){this.error.set(this.errorText(u,`Failed to delete ${t.name}`))}finally{this.fileDeleting.set(null)}}})}refreshOrphans(){return q(this,null,function*(){try{this.orphans.set(yield this.hfService.getOrphanBlobs())}catch(e){this.error.set(this.errorText(e,"Failed to load orphaned blobs"))}finally{this.orphansLoading.set(!1)}})}errorText(e,t){return e instanceof Wt?e.error?.error??e.message:e instanceof Error?e.message:t}pause(e){return q(this,null,function*(){yield this.act("pause",e)})}resume(e){return q(this,null,function*(){yield this.act("resume",e)})}cancel(e){return q(this,null,function*(){confirm(`Cancel download of ${e.repoId}? Partial files will be kept for resume.`)&&(yield this.act("cancel",e))})}deleteModel(e){return q(this,null,function*(){if(!this.deleting()&&confirm(`Delete model ${e.name} (${this.formatBytes(e.size)}) from the Hugging Face cache?`)){this.deleting.set(e.name);try{yield this.hfService.deleteLocalModel(e.name),yield this.refreshModels(),yield this.refreshOrphans()}catch(t){this.error.set(this.errorText(t,`Failed to delete ${e.name}`))}finally{this.deleting.set(null)}}})}cleanupOrphans(){return q(this,null,function*(){if(this.cleaning())return;let e=this.orphans().length;if(confirm(`Delete ${e} orphaned blob file(s) (${this.formatBytes(this.totalOrphanBytes())})?`)){this.cleaning.set(!0);try{yield this.hfService.cleanupOrphanBlobs(),yield this.refreshOrphans()}catch(t){this.error.set(this.errorText(t,"Failed to clean up orphaned blobs"))}finally{this.cleaning.set(!1)}}})}act(e,t){return q(this,null,function*(){if(!this.busy){this.busy=!0;try{yield this.hfService.action(e,t),yield this.refresh()}catch(n){this.error.set(this.errorText(n,`Failed to ${e} download`))}finally{this.busy=!1}}})}percent(e){return e.totalBytes<=0?null:Math.min(100,e.doneBytes/e.totalBytes*100)}progressMode(e){return e.totalBytes>0?"determinate":"indeterminate"}formatBytes(e){if(e<=0)return"0 B";let t=e/1024**3;return t>=1?`${t.toFixed(1)} GB`:`${(e/1024**2).toFixed(0)} MB`}formatSpeed(e){return e<=0?"\u2014":`${(e/(1024*1024)).toFixed(1)} MB/s`}formatEta(e){if(e===null)return"\u2014";if(e<60)return`${e} s`;let t=Math.floor(e/3600),n=Math.round(e%3600/60);return t>0?`${t} h ${n} m`:`${n} m`}close(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-llm-models-dialog"]],decls:23,vars:3,consts:[[1,"dialog-container"],["mat-dialog-title",""],[1,"error"],[1,"section-title"],[1,"state"],[1,"state","small"],[1,"empty"],[1,"model-list"],["align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"subsection-title"],[1,"download-list"],[1,"orphan-total"],[1,"orphan-actions"],[1,"model-row"],[1,"row-main",3,"click"],[1,"row-title"],[1,"repo"],[1,"row-dest",3,"title"],[1,"size"],["mat-icon-button","","color","warn","title","Delete model",3,"click","disabled"],[1,"file-list"],[1,"expand-icon"],[1,"file-count"],[1,"file-row"],[1,"file-name",3,"title"],[1,"shard-count"],["mat-icon-button","","color","warn","title","Delete quantization",3,"click","disabled"],[1,"download-row"],[1,"row-main"],[1,"status-chip"],[1,"pids"],[3,"mode","value"],[1,"row-meta"],[1,"progress-text"],[1,"files"],[1,"speed"],[1,"eta"],[1,"row-actions"],["mat-icon-button","","color","primary","title","Resume"],["mat-icon-button","","title","Pause"],["mat-icon-button","","color","warn","title","Cancel",3,"click"],["mat-icon-button","","color","primary","title","Resume",3,"click"],["mat-icon-button","","title","Pause",3,"click"],["mat-raised-button","","color","warn",3,"click","disabled"],[1,"model-row","lm"],[1,"row-main","expandable",3,"click"]],template:function(t,n){if(t&1&&(s(0,"div",0)(1,"h2",1)(2,"mat-icon"),m(3,"model_training"),l(),m(4," LLM Models "),l(),s(5,"mat-dialog-content"),S(6,qC,2,1,"div",2),s(7,"h3",3)(8,"mat-icon"),m(9,"cloud"),l(),m(10," HuggingFace "),l(),S(11,KC,2,0,"div",4)(12,px,15,4),s(13,"h3",3)(14,"mat-icon"),m(15,"computer"),l(),m(16," LM Studio "),l(),S(17,fx,2,0,"div",5)(18,gx,2,0,"div",6)(19,xx,3,0,"div",7),l(),s(20,"mat-dialog-actions",8)(21,"button",9),M("click",function(){return n.close()}),m(22,"Close"),l()()()),t&2){let a;c(6),k((a=n.error())?6:-1,a),c(5),k(n.loading()?11:12),c(6),k(n.lmLoading()?17:n.lmModels().length===0?18:19)}},dependencies:[Pe,Ke,Xe,vi,Ct,Bt,jt,zt,ni,Ii,yt,bt],styles:['@charset "UTF-8";.dialog-container[_ngcontent-%COMP%]{min-width:480px}mat-dialog-content[_ngcontent-%COMP%]{max-height:72vh;overflow-y:auto}.error[_ngcontent-%COMP%]{margin:0 0 12px;padding:8px 12px;border-radius:6px;background:#f443361a;color:#d32f2f;font-size:13px}.section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin:4px 0 12px;font-size:15px;font-weight:500;color:#333}.section-title[_ngcontent-%COMP%]:not(:first-of-type){margin-top:20px}.section-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:#666}.subsection-title[_ngcontent-%COMP%]{margin:16px 0 8px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.6px;color:#666}.subsection-title[_ngcontent-%COMP%]:first-of-type{margin-top:0}.orphan-total[_ngcontent-%COMP%]{text-transform:none;letter-spacing:0;font-weight:400;color:#999}.orphan-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:8px}.state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 0;color:#999;font-size:14px}.state.small[_ngcontent-%COMP%]{padding:16px 0}.state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:36px;width:36px;height:36px}.empty[_ngcontent-%COMP%]{padding:8px 4px;color:#999;font-size:13px}.model-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.model-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;border:1px solid #e0e0e0;background:#fafafa}.model-row[_ngcontent-%COMP%] .row-main[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.model-row[_ngcontent-%COMP%] .repo[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row[_ngcontent-%COMP%] .row-dest[_ngcontent-%COMP%]{font-family:monospace;font-size:11px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row[_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{flex-shrink:0;font-size:13px;color:#666}.model-row[_ngcontent-%COMP%] .row-main.expandable[_ngcontent-%COMP%]{cursor:pointer}.model-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;min-width:0}.model-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;color:#999;flex-shrink:0}.model-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .file-count[_ngcontent-%COMP%]{font-size:11px;color:#999;flex-shrink:0}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin:-4px 0 8px 28px;padding:4px 8px;border-left:2px solid #e0e0e0}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:2px 4px;border-radius:6px}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%]:hover{background:#f0f0f0}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{flex:1;min-width:0;font-family:monospace;font-size:12px;color:#444;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%] .shard-count[_ngcontent-%COMP%]{flex-shrink:0;font-size:10px;text-transform:uppercase;letter-spacing:.4px;padding:2px 8px;border-radius:10px;background:#e3f2fd;color:#1565c0}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{flex-shrink:0;font-size:12px;color:#666}.download-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.download-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:12px;border-radius:8px;border:1px solid #e0e0e0;background:#fafafa}.download-row[_ngcontent-%COMP%] .row-main[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.download-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.download-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .repo[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .pids[_ngcontent-%COMP%]{font-size:11px;color:#999}.download-row[_ngcontent-%COMP%] .status-chip[_ngcontent-%COMP%]{font-size:10px;text-transform:uppercase;letter-spacing:.4px;padding:2px 8px;border-radius:10px;background:#e8f5e9;color:#2e7d32}.download-row[_ngcontent-%COMP%] .status-chip.paused[_ngcontent-%COMP%]{background:#fff3e0;color:#e65100}.download-row[_ngcontent-%COMP%] .row-dest[_ngcontent-%COMP%]{font-family:monospace;font-size:11px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-row[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:4px 0}.download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%]{display:flex;gap:16px;font-size:12px;color:#333}.download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%] .files[_ngcontent-%COMP%], .download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%] .speed[_ngcontent-%COMP%], .download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%] .eta[_ngcontent-%COMP%]{color:#666}.download-row[_ngcontent-%COMP%] .row-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}']})}}return i})();function Dx(i,o){if(i&1){let e=ve();s(0,"button",14),M("click",function(){ee(e);let n=_();return te(n.openLlmModels())}),s(1,"mat-icon"),m(2,"model_training"),l(),s(3,"span"),m(4,"LLM Models"),l()()}}var Np=(()=>{class i{constructor(){this.systemInfo=lo.required(),this.systemService=d(Vs),this.hfService=d(Bs),this.dialog=d(Po),this.hfInstalled=A(!1)}ngOnInit(){this.hfService.getStatus().then(e=>this.hfInstalled.set(e.installed)).catch(()=>this.hfInstalled.set(!1))}openSystemInfo(){this.dialog.open(Op,{disableClose:!1})}openLlmModels(){this.dialog.open(Fp,{width:"760px",maxWidth:"95vw",disableClose:!1})}reboot(){return q(this,null,function*(){confirm("Reboot the server?")&&(yield this.systemService.reboot())})}shutdown(){return q(this,null,function*(){confirm("Shutdown the server?")&&(yield this.systemService.shutdown())})}formatBytes(e){let t=e/1073741824;return`${Math.ceil(t)} GB`}ceilCpu(e){return Math.ceil(e)}colorForUsage(e){return e<40?"#4caf50":e<75?"#ff9800":"#f44336"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-system-bar"]],inputs:{systemInfo:[1,"systemInfo"]},decls:50,vars:17,consts:[["menu","matMenu"],[1,"system-bar"],[1,"system-panel"],[1,"panel-body"],[1,"panel-icon"],[1,"panel-content"],[1,"panel-header"],[1,"panel-label"],[1,"panel-value"],[1,"bar-bg"],[1,"bar-fill"],[1,"server-controls"],["mat-icon-button","","color","warn","title","Server actions",3,"matMenuTriggerFor"],["yPosition","below"],["mat-menu-item","",3,"click"],["mat-menu-item",""]],template:function(t,n){if(t&1&&(s(0,"div",1)(1,"mat-card",2)(2,"mat-card-content")(3,"div",3)(4,"mat-icon",4),m(5,"dynamic_feed"),l(),s(6,"div",5)(7,"div",6)(8,"span",7),m(9,"CPU"),l(),s(10,"span",8),m(11),l()(),s(12,"div",9),v(13,"div",10),l()()()()(),s(14,"mat-card",2)(15,"mat-card-content")(16,"div",3)(17,"mat-icon",4),m(18,"memory"),l(),s(19,"div",5)(20,"div",6)(21,"span",7),m(22,"RAM"),l(),s(23,"span",8),m(24),l()(),s(25,"div",9),v(26,"div",10),l()()()()(),s(27,"div",11)(28,"button",12)(29,"mat-icon"),m(30,"more_vert"),l()(),s(31,"mat-menu",13,0)(33,"button",14),M("click",function(){return n.reboot()}),s(34,"mat-icon"),m(35,"restart_alt"),l(),s(36,"span"),m(37,"Reboot server"),l()(),s(38,"button",14),M("click",function(){return n.shutdown()}),s(39,"mat-icon"),m(40,"power_settings_new"),l(),s(41,"span"),m(42,"Shutdown server"),l()(),v(43,"mat-divider"),s(44,"button",14),M("click",function(){return n.openSystemInfo()}),s(45,"mat-icon"),m(46,"info"),l(),s(47,"span"),m(48,"System info"),l()(),S(49,Dx,5,0,"button",15),l()()()),t&2){let a=Le(32);c(10),Be("color",n.colorForUsage(n.systemInfo().cpuUsage)),c(),ie(" ",n.ceilCpu(n.systemInfo().cpuUsage),"% "),c(2),Be("width",n.systemInfo().cpuUsage,"%")("background",n.colorForUsage(n.systemInfo().cpuUsage)),c(10),Be("color",n.colorForUsage(n.systemInfo().memoryPercent)),c(),fi(" ",n.formatBytes(n.systemInfo().memoryUsed)," / ",n.formatBytes(n.systemInfo().memoryTotal)," "),c(2),Be("width",n.systemInfo().memoryPercent,"%")("background",n.colorForUsage(n.systemInfo().memoryPercent)),c(2),x("matMenuTriggerFor",a),c(21),k(n.hfInstalled()?49:-1)}},dependencies:[Pe,rn,on,an,yt,bt,Ke,vi,Ss,wn,Xn,Ds,zo,Ga,Ct],styles:[".system-bar[_ngcontent-%COMP%]{display:flex;gap:16px;margin-bottom:16px;align-items:stretch}.system-panel[_ngcontent-%COMP%]{flex:1}.server-controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.panel-body[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.panel-icon[_ngcontent-%COMP%]{color:#757575;font-size:24px;width:24px;height:24px}.panel-content[_ngcontent-%COMP%]{flex:1;min-width:0}.panel-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}.panel-label[_ngcontent-%COMP%]{font-weight:500;font-size:.85rem;color:#555;text-transform:uppercase;letter-spacing:.5px}.panel-value[_ngcontent-%COMP%]{font-weight:500;font-size:.9rem;white-space:nowrap}.bar-bg[_ngcontent-%COMP%]{height:6px;background:#e0e0e0;border-radius:3px;overflow:hidden}.bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:3px;transition:width .4s ease,background .4s ease}"]})}}return i})();function Sx(i,o){if(i&1&&(s(0,"div",8)(1,"mat-icon",10),m(2,"warning"),l(),m(3),l()),i&2){let e=_(2);c(3),ie(" ",e.loginError()," ")}}function kx(i,o){if(i&1){let e=ve();s(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"mat-icon",3),m(5,"lock"),l(),s(6,"h2"),m(7,"Authentication Required"),l(),s(8,"p",4),m(9,"Enter your system password to continue"),l()(),s(10,"form",5),M("submit",function(n){return ee(e),_().onLogin(),te(n.preventDefault())}),s(11,"mat-form-field",6)(12,"mat-label"),m(13,"Password"),l(),s(14,"input",7),M("input",function(n){ee(e);let a=_();return te(a.loginPassword.set(n.target.value))}),l()(),S(15,Sx,4,1,"div",8),s(16,"button",9),m(17,"Sign In"),l()()()()()}if(i&2){let e=_();c(14),x("value",e.loginPassword()),c(),k(e.loginError()?15:-1)}}function Mx(i,o){i&1&&v(0,"mat-progress-bar",11)}function Ex(i,o){if(i&1&&(s(0,"mat-card",14)(1,"mat-card-content")(2,"mat-icon",15),m(3," error_outline "),l(),s(4,"p"),m(5),l(),s(6,"p",4),m(7,"Make sure the backend is running on port 4242."),l()()()),i&2){let e=_(2);c(5),O(e.error())}}function Tx(i,o){i&1&&(s(0,"mat-card",19)(1,"mat-card-content")(2,"p"),m(3,"No GPUs detected."),l(),s(4,"p",4),m(5," Ensure nvidia-smi or rocm-smi is available on this system. "),l()()())}function Ax(i,o){if(i&1&&v(0,"app-gpu-table",20),i&2){let e=_(3);x("gpus",e.gpus())}}function Ix(i,o){if(i&1){let e=ve();s(0,"div",16)(1,"div",17),v(2,"app-system-bar",18),S(3,Tx,6,0,"mat-card",19)(4,Ax,1,1,"app-gpu-table",20),l(),s(5,"div",21),M("mousedown",function(n){ee(e);let a=_(2);return te(a.startGpuColDrag(n))}),v(6,"span",22),l(),s(7,"div",23),v(8,"app-services"),l()(),s(9,"div",24),M("mousedown",function(n){ee(e);let a=_(2);return te(a.startJournalHeightDrag(n))}),v(10,"span",22),l(),s(11,"div",25),v(12,"app-journal-panel"),l()}if(i&2){let e=_(2);c(),Be("width",e.gpuColWidth(),"px"),c(),x("systemInfo",e.systemInfo()),c(),k(e.hasGpus()?4:3),c(8),Be("height",e.journalHeight(),"px")}}function Rx(i,o){if(i&1&&(S(0,Mx,1,0,"mat-progress-bar",11),s(1,"div",12)(2,"div",13),S(3,Ex,8,1,"mat-card",14)(4,Ix,13,6),l()()),i&2){let e=_();k(e.loading()?0:-1),c(),p("dragging",e.isDragging()),c(2),k(e.error()?3:4)}}var Lp=160,Vp=800,Ox=320,Bp=360,zp=1400,Px=560,jp=(()=>{class i{ngOnInit(){this.authService.authState.subscribe(n=>{this.isAuthenticated.set(n),n&&(this.loginError.set(null),this.loginPassword.set(""))});let e=localStorage.getItem("journal-bottom-height");if(e){let n=parseInt(e,10);n>=Lp&&n<=Vp&&this.journalHeight.set(n)}let t=localStorage.getItem("gpu-col-width");if(t){let n=parseInt(t,10);n>=Bp&&n<=zp&&this.gpuColWidth.set(n)}}ngOnDestroy(){}onLogin(){return q(this,null,function*(){this.loginError.set(null),(yield this.authService.login(this.loginPassword()))?(this.loading.set(!0),this.initGpus()):this.loginError.set("Invalid password")})}startJournalHeightDrag(e){this.beginDrag("journalHeight",e.clientY,this.journalHeight())}startGpuColDrag(e){this.beginDrag("gpuColWidth",e.clientX,this.gpuColWidth())}beginDrag(e,t,n){this.dragTarget=e,this.dragStartCoord=t,this.dragStartValue=n,this.isDragging.set(!0)}onDrag(e){if(!(!this.isDragging()||!this.dragTarget)){if(this.dragTarget==="journalHeight"){let t=this.dragStartCoord-e.clientY;this.journalHeight.set(this.clamp(this.dragStartValue+t,Lp,Vp))}else if(this.dragTarget==="gpuColWidth"){let t=e.clientX-this.dragStartCoord;this.gpuColWidth.set(this.clamp(this.dragStartValue+t,Bp,zp))}}}onDragEnd(){!this.isDragging()||!this.dragTarget||(this.dragTarget==="journalHeight"?localStorage.setItem("journal-bottom-height",String(this.journalHeight())):this.dragTarget==="gpuColWidth"&&localStorage.setItem("gpu-col-width",String(this.gpuColWidth())),this.dragTarget=null,this.isDragging.set(!1))}clamp(e,t,n){return Math.max(t,Math.min(n,e))}constructor(){this.gpuService=d(dh),this.authService=d(Or),this.gpus=A([]),this.systemInfo=A({cpuUsage:0,memoryTotal:0,memoryUsed:0,memoryPercent:0}),this.loading=A(!0),this.error=A(null),this.hasGpus=U(()=>this.gpus().length>0),this.isAuthenticated=A(this.authService.isAuthenticated()),this.loginPassword=A(""),this.loginError=A(null),this.journalHeight=A(Ox),this.gpuColWidth=A(Px),this.isDragging=A(!1),this.dragTarget=null,this.dragStartCoord=0,this.dragStartValue=0,this.isAuthenticated()&&this.initGpus()}initGpus(e=0){this.gpuService.fetchGpus().subscribe({next:t=>{if(t.length===0){e<3?setTimeout(()=>this.initGpus(e+1),5e3):this.loading.set(!1);return}let n=t.map(a=>Fe(B({},a),{key:a.pciBusId,usage:0,temperature:0,vramUsed:0}));this.gpus.set(n),this.loading.set(!1),this.error.set(null),this.gpuService.watchStatus(3e3).subscribe({next:a=>{this.systemInfo.set(a.system),this.mergeUsage(a.gpus)},error:a=>{console.error("[AppComponent] status poll error:",a)}})},error:t=>{console.error("[AppComponent] static fetch error:",t),this.error.set(`Failed to fetch GPU data: ${t.message}`),this.loading.set(!1)}})}mergeUsage(e){let t=new Map;for(let n of e)t.set(n.key,n);this.gpus.update(n=>n.map(a=>{let r=t.get(a.pciBusId);return Fe(B({},a),{key:a.pciBusId,usage:r?.usage??0,temperature:r?.temperature??0,vramUsed:r?.vramUsed??0})}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-root"]],hostBindings:function(t,n){t&1&&M("mousemove",function(r){return n.onDrag(r)},Ys)("mouseup",function(){return n.onDragEnd()},Ys)},decls:2,vars:1,consts:[[1,"login-container"],[1,"login-card"],[1,"login-header"],[1,"login-icon"],[1,"mat-body-2",2,"color","#999"],[1,"login-form",3,"submit"],["appearance","outline",1,"full-width"],["matInput","","type","password","autofocus","",3,"input","value"],[1,"login-error"],["mat-raised-button","","color","primary","type","submit",1,"login-btn"],[2,"font-size","20px","vertical-align","middle"],["mode","query","color","primary"],[1,"layout"],[1,"main-content"],[1,"error-card"],[2,"color","#f44336","font-size","48px","float","left","margin-right","16px"],[1,"top-row-horizontal"],[1,"gpu-col"],[3,"systemInfo"],[1,"empty-card"],[3,"gpus"],[1,"splitter",3,"mousedown"],[1,"splitter-line"],[1,"services-col"],[1,"splitter","splitter-h",3,"mousedown"],[1,"journal-bottom"]],template:function(t,n){t&1&&S(0,kx,18,2,"div",0)(1,Rx,5,4),t&2&&k(n.isAuthenticated()?1:0)},dependencies:[Pe,ni,Ii,rn,on,an,ri,ai,Tt,Lt,At,Ke,Xe,yt,bt,Ph,Ip,Rp,Np],styles:[".spacer[_ngcontent-%COMP%]{flex:1 1 auto}.login-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 56px);padding:24px;background:#f5f5f5}.login-card[_ngcontent-%COMP%]{width:100%;max-width:400px}.login-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:24px}.login-header[_ngcontent-%COMP%] .login-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;line-height:48px;background:#e3f2fd;border-radius:50%;padding:8px;color:#1976d2}.login-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:16px 0 4px;font-size:22px;font-weight:500}.login-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.login-error[_ngcontent-%COMP%]{color:#d32f2f;font-size:14px;text-align:center;padding:8px;background:#ffebee;border-radius:4px}.login-btn[_ngcontent-%COMP%]{width:100%;margin-top:8px}.full-width[_ngcontent-%COMP%]{width:100%}.layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.layout.dragging[_ngcontent-%COMP%]{user-select:none;-webkit-user-select:none}.main-content[_ngcontent-%COMP%]{flex:1;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:24px;max-width:100%}.top-row-horizontal[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex:1;min-height:0}.gpu-col[_ngcontent-%COMP%]{flex-shrink:0;overflow-y:auto}.services-col[_ngcontent-%COMP%]{flex:1;min-width:0;overflow-y:auto}.services-col[_ngcontent-%COMP%] app-services[_ngcontent-%COMP%]{margin-top:0}.splitter[_ngcontent-%COMP%]{width:8px;flex-shrink:0;cursor:col-resize;margin:0 8px;display:flex;align-items:center;justify-content:center;background:transparent;transition:background .15s}.splitter[_ngcontent-%COMP%]:hover{background:#0000000a}.splitter[_ngcontent-%COMP%] .splitter-line[_ngcontent-%COMP%]{width:2px;height:32px;border-radius:1px;background:#bdbdbd;transition:background .15s,width .15s}.splitter[_ngcontent-%COMP%]:hover .splitter-line[_ngcontent-%COMP%]{background:#757575;width:3px}.splitter-h[_ngcontent-%COMP%]{width:100%;height:8px;flex-shrink:0;cursor:row-resize;margin:8px 0;display:flex;align-items:center;justify-content:center;background:transparent;transition:background .15s}.splitter-h[_ngcontent-%COMP%]:hover{background:#0000000a}.splitter-h[_ngcontent-%COMP%] .splitter-line[_ngcontent-%COMP%]{width:32px;height:2px;border-radius:1px;background:#bdbdbd;transition:background .15s,height .15s}.splitter-h[_ngcontent-%COMP%]:hover .splitter-line[_ngcontent-%COMP%]{background:#757575;height:3px}.journal-bottom[_ngcontent-%COMP%]{flex-shrink:0;overflow-y:auto}.error-card[_ngcontent-%COMP%], .empty-card[_ngcontent-%COMP%]{margin-top:32px;max-width:600px;margin-left:auto;margin-right:auto}[_nghost-%COMP%] mat-card-content{padding-top:10px!important;padding-bottom:10px!important}app-services[_ngcontent-%COMP%]{display:block;margin-top:24px}"]})}}return i})();xl(jp,xm).catch(i=>console.error(i));
|
|
5600
|
+
`):e.name),c(),O(e.name),c(),k(e.shards?3:-1),c(2),O(n.formatBytes(e.size)),c(),x("disabled",n.fileDeleting()==="lm:"+t.name+"/"+e.name)}}function bx(i,o){i&1&&(s(0,"div",6),m(1,"No .gguf files"),l())}function yx(i,o){if(i&1&&(s(0,"div",21),oe(1,vx,9,5,"div",24,zs,!1,bx,2,0,"div",6),l()),i&2){let e=_().$implicit;c(),ae(e.files)}}function Cx(i,o){if(i&1){let e=ve();s(0,"div",45)(1,"div",46),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.toggleExpand("lm:"+n.name))}),s(2,"div",16)(3,"mat-icon",22),m(4),l(),s(5,"span",17),m(6),l(),s(7,"span",23),m(8),l()(),s(9,"span",18),m(10),l()(),s(11,"span",19),m(12),l(),s(13,"button",20),M("click",function(){let n=ee(e).$implicit,a=_(2);return te(a.deleteLmModel(n))}),s(14,"mat-icon"),m(15,"delete"),l()()(),S(16,yx,4,1,"div",21)}if(i&2){let e=o.$implicit,t=_(2);c(4),O(t.expanded()==="lm:"+e.name?"expand_more":"chevron_right"),c(2),O(e.name),c(2),ie("",e.files.length," file(s)"),c(),x("title",e.dir),c(),O(e.dir),c(2),O(t.formatBytes(e.size)),c(),x("disabled",t.lmDeleting()===e.name),c(3),k(t.expanded()==="lm:"+e.name?16:-1)}}function xx(i,o){if(i&1&&(s(0,"div",7),oe(1,Cx,17,8,null,null,zs),l()),i&2){let e=_();c(),ae(e.lmModels())}}var wx=2e3,Fp=(()=>{class i{constructor(){this.hfService=d(Bs),this.lmStudioService=d(Pp),this.dialogRef=d(ht),this.downloads=A([]),this.models=A([]),this.loading=A(!0),this.modelsLoading=A(!0),this.error=A(null),this.deleting=A(null),this.lmModels=A([]),this.lmLoading=A(!0),this.lmDeleting=A(null),this.expanded=A(null),this.fileDeleting=A(null),this.staticModels=U(()=>{let e=new Set(this.downloads().map(t=>t.dest));return this.models().filter(t=>!e.has(t.dir))}),this.orphans=A([]),this.orphansLoading=A(!0),this.cleaning=A(!1),this.totalOrphanBytes=U(()=>this.orphans().reduce((e,t)=>e+t.size,0)),this.timer=null,this.busy=!1}ngOnInit(){this.refresh(),this.refreshModels(),this.refreshOrphans(),this.refreshLmModels(),this.timer=setInterval(()=>{this.refresh()},wx)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}refresh(){return q(this,null,function*(){try{this.downloads.set(yield this.hfService.getDownloads()),this.error.set(null)}catch(e){this.error.set(this.errorText(e,"Failed to load downloads"))}finally{this.loading.set(!1)}})}refreshModels(){return q(this,null,function*(){try{this.models.set(yield this.hfService.getLocalModels())}catch(e){this.error.set(this.errorText(e,"Failed to load models"))}finally{this.modelsLoading.set(!1)}})}refreshLmModels(){return q(this,null,function*(){try{this.lmModels.set(yield this.lmStudioService.getModels())}catch(e){this.error.set(this.errorText(e,"Failed to load LM Studio models"))}finally{this.lmLoading.set(!1)}})}toggleExpand(e){this.expanded.set(this.expanded()===e?null:e)}hfFiles(e){return e.files??[]}deleteLmModel(e){return q(this,null,function*(){if(!this.lmDeleting()&&confirm(`Delete model ${e.name} (${this.formatBytes(e.size)}) from the LM Studio folder?`)){this.lmDeleting.set(e.name);try{yield this.lmStudioService.deleteModel(e.name),yield this.refreshLmModels()}catch(t){this.error.set(this.errorText(t,`Failed to delete ${e.name}`))}finally{this.lmDeleting.set(null)}}})}deleteLmFile(e,t){return q(this,null,function*(){let n=t.shards??[t.name],a=`lm:${e.name}/${t.name}`;if(this.fileDeleting())return;let r=t.shards?`${t.name} (${t.shards.length} shard files)`:t.name;if(confirm(`Delete file ${r} (${this.formatBytes(t.size)})?`)){this.fileDeleting.set(a);try{for(let u of n)yield this.lmStudioService.deleteModelFile(e.name,u);yield this.refreshLmModels()}catch(u){this.error.set(this.errorText(u,`Failed to delete ${t.name}`))}finally{this.fileDeleting.set(null)}}})}deleteHfFile(e,t){return q(this,null,function*(){let n=t.shards??[t.name],a=`hf:${e.name}/${t.name}`;if(this.fileDeleting())return;let r=t.shards?`${t.name} (${t.shards.length} shard files)`:t.name;if(confirm(`Delete ${r} (${this.formatBytes(t.size)}) from the Hugging Face cache?`)){this.fileDeleting.set(a);try{for(let u of n)yield this.hfService.deleteLocalModelFile(e.name,u);yield this.refreshModels(),yield this.refreshOrphans()}catch(u){this.error.set(this.errorText(u,`Failed to delete ${t.name}`))}finally{this.fileDeleting.set(null)}}})}refreshOrphans(){return q(this,null,function*(){try{this.orphans.set(yield this.hfService.getOrphanBlobs())}catch(e){this.error.set(this.errorText(e,"Failed to load orphaned blobs"))}finally{this.orphansLoading.set(!1)}})}errorText(e,t){return e instanceof Wt?e.error?.error??e.message:e instanceof Error?e.message:t}pause(e){return q(this,null,function*(){yield this.act("pause",e)})}resume(e){return q(this,null,function*(){yield this.act("resume",e)})}cancel(e){return q(this,null,function*(){confirm(`Cancel download of ${e.repoId}? Partial files will be kept for resume.`)&&(yield this.act("cancel",e))})}deleteModel(e){return q(this,null,function*(){if(!this.deleting()&&confirm(`Delete model ${e.name} (${this.formatBytes(e.size)}) from the Hugging Face cache?`)){this.deleting.set(e.name);try{yield this.hfService.deleteLocalModel(e.name),yield this.refreshModels(),yield this.refreshOrphans()}catch(t){this.error.set(this.errorText(t,`Failed to delete ${e.name}`))}finally{this.deleting.set(null)}}})}cleanupOrphans(){return q(this,null,function*(){if(this.cleaning())return;let e=this.orphans().length;if(confirm(`Delete ${e} orphaned blob file(s) (${this.formatBytes(this.totalOrphanBytes())})?`)){this.cleaning.set(!0);try{yield this.hfService.cleanupOrphanBlobs(),yield this.refreshOrphans()}catch(t){this.error.set(this.errorText(t,"Failed to clean up orphaned blobs"))}finally{this.cleaning.set(!1)}}})}act(e,t){return q(this,null,function*(){if(!this.busy){this.busy=!0;try{yield this.hfService.action(e,t),yield this.refresh()}catch(n){this.error.set(this.errorText(n,`Failed to ${e} download`))}finally{this.busy=!1}}})}percent(e){return e.totalBytes<=0?null:Math.min(100,e.doneBytes/e.totalBytes*100)}progressMode(e){return e.totalBytes>0?"determinate":"indeterminate"}formatBytes(e){if(e<=0)return"0 B";let t=e/1024**3;return t>=1?`${t.toFixed(1)} GB`:`${(e/1024**2).toFixed(0)} MB`}formatSpeed(e){return e<=0?"\u2014":`${(e/(1024*1024)).toFixed(1)} MB/s`}formatEta(e){if(e===null)return"\u2014";if(e<60)return`${e} s`;let t=Math.floor(e/3600),n=Math.round(e%3600/60);return t>0?`${t} h ${n} m`:`${n} m`}close(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-llm-models-dialog"]],decls:23,vars:3,consts:[[1,"dialog-container"],["mat-dialog-title",""],[1,"error"],[1,"section-title"],[1,"state"],[1,"state","small"],[1,"empty"],[1,"model-list"],["align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"subsection-title"],[1,"download-list"],[1,"orphan-total"],[1,"orphan-actions"],[1,"model-row"],[1,"row-main",3,"click"],[1,"row-title"],[1,"repo"],[1,"row-dest",3,"title"],[1,"size"],["mat-icon-button","","color","warn","title","Delete model",3,"click","disabled"],[1,"file-list"],[1,"expand-icon"],[1,"file-count"],[1,"file-row"],[1,"file-name",3,"title"],[1,"shard-count"],["mat-icon-button","","color","warn","title","Delete quantization",3,"click","disabled"],[1,"download-row"],[1,"row-main"],[1,"status-chip"],[1,"pids"],[3,"mode","value"],[1,"row-meta"],[1,"progress-text"],[1,"files"],[1,"speed"],[1,"eta"],[1,"row-actions"],["mat-icon-button","","color","primary","title","Resume"],["mat-icon-button","","title","Pause"],["mat-icon-button","","color","warn","title","Cancel",3,"click"],["mat-icon-button","","color","primary","title","Resume",3,"click"],["mat-icon-button","","title","Pause",3,"click"],["mat-raised-button","","color","warn",3,"click","disabled"],[1,"model-row","lm"],[1,"row-main","expandable",3,"click"]],template:function(t,n){if(t&1&&(s(0,"div",0)(1,"h2",1)(2,"mat-icon"),m(3,"model_training"),l(),m(4," LLM Models "),l(),s(5,"mat-dialog-content"),S(6,qC,2,1,"div",2),s(7,"h3",3)(8,"mat-icon"),m(9,"cloud"),l(),m(10," HuggingFace "),l(),S(11,KC,2,0,"div",4)(12,px,15,4),s(13,"h3",3)(14,"mat-icon"),m(15,"computer"),l(),m(16," LM Studio "),l(),S(17,fx,2,0,"div",5)(18,gx,2,0,"div",6)(19,xx,3,0,"div",7),l(),s(20,"mat-dialog-actions",8)(21,"button",9),M("click",function(){return n.close()}),m(22,"Close"),l()()()),t&2){let a;c(6),k((a=n.error())?6:-1,a),c(5),k(n.loading()?11:12),c(6),k(n.lmLoading()?17:n.lmModels().length===0?18:19)}},dependencies:[Pe,Ke,Xe,vi,Ct,Bt,jt,zt,ni,Ii,yt,bt],styles:['@charset "UTF-8";.dialog-container[_ngcontent-%COMP%]{min-width:480px}mat-dialog-content[_ngcontent-%COMP%]{max-height:72vh;overflow-y:auto}.error[_ngcontent-%COMP%]{margin:0 0 12px;padding:8px 12px;border-radius:6px;background:#f443361a;color:#d32f2f;font-size:13px}.section-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin:4px 0 12px;font-size:15px;font-weight:500;color:#333}.section-title[_ngcontent-%COMP%]:not(:first-of-type){margin-top:20px}.section-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:#666}.subsection-title[_ngcontent-%COMP%]{margin:16px 0 8px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.6px;color:#666}.subsection-title[_ngcontent-%COMP%]:first-of-type{margin-top:0}.orphan-total[_ngcontent-%COMP%]{text-transform:none;letter-spacing:0;font-weight:400;color:#999}.orphan-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:8px}.state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 0;color:#999;font-size:14px}.state.small[_ngcontent-%COMP%]{padding:16px 0}.state[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:36px;width:36px;height:36px}.empty[_ngcontent-%COMP%]{padding:8px 4px;color:#999;font-size:13px}.model-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.model-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;border:1px solid #e0e0e0;background:#fafafa}.model-row[_ngcontent-%COMP%] .row-main[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.model-row[_ngcontent-%COMP%] .repo[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row[_ngcontent-%COMP%] .row-dest[_ngcontent-%COMP%]{font-family:monospace;font-size:11px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-row[_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{flex-shrink:0;font-size:13px;color:#666}.model-row[_ngcontent-%COMP%] .row-main.expandable[_ngcontent-%COMP%]{cursor:pointer}.model-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;min-width:0}.model-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .expand-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px;color:#999;flex-shrink:0}.model-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .file-count[_ngcontent-%COMP%]{font-size:11px;color:#999;flex-shrink:0}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin:-4px 0 8px 28px;padding:4px 8px;border-left:2px solid #e0e0e0}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:2px 4px;border-radius:6px}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%]:hover{background:#f0f0f0}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{flex:1;min-width:0;font-family:monospace;font-size:12px;color:#444;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%] .shard-count[_ngcontent-%COMP%]{flex-shrink:0;font-size:10px;text-transform:uppercase;letter-spacing:.4px;padding:2px 8px;border-radius:10px;background:#e3f2fd;color:#1565c0}.file-list[_ngcontent-%COMP%] .file-row[_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{flex-shrink:0;font-size:12px;color:#666}.download-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.download-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:12px;border-radius:8px;border:1px solid #e0e0e0;background:#fafafa}.download-row[_ngcontent-%COMP%] .row-main[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.download-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.download-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .repo[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-row[_ngcontent-%COMP%] .row-title[_ngcontent-%COMP%] .pids[_ngcontent-%COMP%]{font-size:11px;color:#999}.download-row[_ngcontent-%COMP%] .status-chip[_ngcontent-%COMP%]{font-size:10px;text-transform:uppercase;letter-spacing:.4px;padding:2px 8px;border-radius:10px;background:#e8f5e9;color:#2e7d32}.download-row[_ngcontent-%COMP%] .status-chip.paused[_ngcontent-%COMP%]{background:#fff3e0;color:#e65100}.download-row[_ngcontent-%COMP%] .row-dest[_ngcontent-%COMP%]{font-family:monospace;font-size:11px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-row[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:4px 0}.download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%]{display:flex;gap:16px;font-size:12px;color:#333}.download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%] .files[_ngcontent-%COMP%], .download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%] .speed[_ngcontent-%COMP%], .download-row[_ngcontent-%COMP%] .row-meta[_ngcontent-%COMP%] .eta[_ngcontent-%COMP%]{color:#666}.download-row[_ngcontent-%COMP%] .row-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}']})}}return i})();function Dx(i,o){if(i&1){let e=ve();s(0,"button",14),M("click",function(){ee(e);let n=_();return te(n.openLlmModels())}),s(1,"mat-icon"),m(2,"model_training"),l(),s(3,"span"),m(4,"LLM Models"),l()()}}var Np=(()=>{class i{constructor(){this.systemInfo=lo.required(),this.systemService=d(Vs),this.hfService=d(Bs),this.dialog=d(Po),this.hfInstalled=A(!1)}ngOnInit(){this.hfService.getStatus().then(e=>this.hfInstalled.set(e.installed)).catch(()=>this.hfInstalled.set(!1))}openSystemInfo(){this.dialog.open(Op,{disableClose:!1})}openLlmModels(){this.dialog.open(Fp,{width:"760px",maxWidth:"95vw",disableClose:!1})}reboot(){return q(this,null,function*(){confirm("Reboot the server?")&&(yield this.systemService.reboot())})}shutdown(){return q(this,null,function*(){confirm("Shutdown the server?")&&(yield this.systemService.shutdown())})}formatBytes(e){let t=e/1073741824;return`${Math.ceil(t)} GB`}ceilCpu(e){return Math.ceil(e)}colorForUsage(e){return e<40?"#4caf50":e<75?"#ff9800":"#f44336"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-system-bar"]],inputs:{systemInfo:[1,"systemInfo"]},decls:50,vars:17,consts:[["menu","matMenu"],[1,"system-bar"],[1,"system-panel"],[1,"panel-body"],[1,"panel-icon"],[1,"panel-content"],[1,"panel-header"],[1,"panel-label"],[1,"panel-value"],[1,"bar-bg"],[1,"bar-fill"],[1,"server-controls"],["mat-icon-button","","color","warn","title","Server actions",3,"matMenuTriggerFor"],["yPosition","below"],["mat-menu-item","",3,"click"],["mat-menu-item",""]],template:function(t,n){if(t&1&&(s(0,"div",1)(1,"mat-card",2)(2,"mat-card-content")(3,"div",3)(4,"mat-icon",4),m(5,"dynamic_feed"),l(),s(6,"div",5)(7,"div",6)(8,"span",7),m(9,"CPU"),l(),s(10,"span",8),m(11),l()(),s(12,"div",9),v(13,"div",10),l()()()()(),s(14,"mat-card",2)(15,"mat-card-content")(16,"div",3)(17,"mat-icon",4),m(18,"memory"),l(),s(19,"div",5)(20,"div",6)(21,"span",7),m(22,"RAM"),l(),s(23,"span",8),m(24),l()(),s(25,"div",9),v(26,"div",10),l()()()()(),s(27,"div",11)(28,"button",12)(29,"mat-icon"),m(30,"more_vert"),l()(),s(31,"mat-menu",13,0)(33,"button",14),M("click",function(){return n.reboot()}),s(34,"mat-icon"),m(35,"restart_alt"),l(),s(36,"span"),m(37,"Reboot server"),l()(),s(38,"button",14),M("click",function(){return n.shutdown()}),s(39,"mat-icon"),m(40,"power_settings_new"),l(),s(41,"span"),m(42,"Shutdown server"),l()(),v(43,"mat-divider"),s(44,"button",14),M("click",function(){return n.openSystemInfo()}),s(45,"mat-icon"),m(46,"info"),l(),s(47,"span"),m(48,"System info"),l()(),S(49,Dx,5,0,"button",15),l()()()),t&2){let a=Le(32);c(10),Be("color",n.colorForUsage(n.systemInfo().cpuUsage)),c(),ie(" ",n.ceilCpu(n.systemInfo().cpuUsage),"% "),c(2),Be("width",n.systemInfo().cpuUsage,"%")("background",n.colorForUsage(n.systemInfo().cpuUsage)),c(10),Be("color",n.colorForUsage(n.systemInfo().memoryPercent)),c(),fi(" ",n.formatBytes(n.systemInfo().memoryUsed)," / ",n.formatBytes(n.systemInfo().memoryTotal)," "),c(2),Be("width",n.systemInfo().memoryPercent,"%")("background",n.colorForUsage(n.systemInfo().memoryPercent)),c(2),x("matMenuTriggerFor",a),c(21),k(n.hfInstalled()?49:-1)}},dependencies:[Pe,rn,on,an,yt,bt,Ke,vi,Ss,wn,Xn,Ds,zo,Ga,Ct],styles:[".system-bar[_ngcontent-%COMP%]{display:flex;gap:16px;margin-bottom:16px;align-items:stretch}.system-panel[_ngcontent-%COMP%]{flex:1}.server-controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}.panel-body[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.panel-icon[_ngcontent-%COMP%]{color:#757575;font-size:24px;width:24px;height:24px}.panel-content[_ngcontent-%COMP%]{flex:1;min-width:0}.panel-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}.panel-label[_ngcontent-%COMP%]{font-weight:500;font-size:.85rem;color:#555;text-transform:uppercase;letter-spacing:.5px}.panel-value[_ngcontent-%COMP%]{font-weight:500;font-size:.9rem;white-space:nowrap}.bar-bg[_ngcontent-%COMP%]{height:6px;background:#e0e0e0;border-radius:3px;overflow:hidden}.bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:3px;transition:width .4s ease,background .4s ease}"]})}}return i})();function Sx(i,o){if(i&1&&(s(0,"div",8)(1,"mat-icon",10),m(2,"warning"),l(),m(3),l()),i&2){let e=_(2);c(3),ie(" ",e.loginError()," ")}}function kx(i,o){if(i&1){let e=ve();s(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"mat-icon",3),m(5,"lock"),l(),s(6,"h2"),m(7,"Authentication Required"),l(),s(8,"p",4),m(9,"Enter your system password to continue"),l()(),s(10,"form",5),M("submit",function(n){return ee(e),_().onLogin(),te(n.preventDefault())}),s(11,"mat-form-field",6)(12,"mat-label"),m(13,"Password"),l(),s(14,"input",7),M("input",function(n){ee(e);let a=_();return te(a.loginPassword.set(n.target.value))}),l()(),S(15,Sx,4,1,"div",8),s(16,"button",9),m(17,"Sign In"),l()()()()()}if(i&2){let e=_();c(14),x("value",e.loginPassword()),c(),k(e.loginError()?15:-1)}}function Mx(i,o){i&1&&v(0,"mat-progress-bar",11)}function Ex(i,o){if(i&1&&(s(0,"mat-card",14)(1,"mat-card-content")(2,"mat-icon",15),m(3," error_outline "),l(),s(4,"p"),m(5),l(),s(6,"p",4),m(7,"Make sure the backend is running on port 4242."),l()()()),i&2){let e=_(2);c(5),O(e.error())}}function Tx(i,o){i&1&&(s(0,"mat-card",19)(1,"mat-card-content")(2,"p"),m(3,"No GPUs detected."),l(),s(4,"p",4),m(5," Ensure nvidia-smi or rocm-smi is available on this system. "),l()()())}function Ax(i,o){if(i&1&&v(0,"app-gpu-table",20),i&2){let e=_(3);x("gpus",e.gpus())}}function Ix(i,o){if(i&1){let e=ve();s(0,"div",16)(1,"div",17),v(2,"app-system-bar",18),S(3,Tx,6,0,"mat-card",19)(4,Ax,1,1,"app-gpu-table",20),l(),s(5,"div",21),M("mousedown",function(n){ee(e);let a=_(2);return te(a.startGpuColDrag(n))}),v(6,"span",22),l(),s(7,"div",23),v(8,"app-services"),l()(),s(9,"div",24),M("mousedown",function(n){ee(e);let a=_(2);return te(a.startJournalHeightDrag(n))}),v(10,"span",22),l(),s(11,"div",25),v(12,"app-journal-panel"),l()}if(i&2){let e=_(2);c(),Be("width",e.gpuColWidth(),"px"),c(),x("systemInfo",e.systemInfo()),c(),k(e.hasGpus()?4:3),c(8),Be("height",e.journalHeight(),"px")}}function Rx(i,o){if(i&1&&(S(0,Mx,1,0,"mat-progress-bar",11),s(1,"div",12)(2,"div",13),S(3,Ex,8,1,"mat-card",14)(4,Ix,13,6),l()()),i&2){let e=_();k(e.loading()?0:-1),c(),p("dragging",e.isDragging()),c(2),k(e.error()?3:4)}}var Lp=160,Vp=800,Ox=320,Bp=360,zp=1400,Px=560,jp=(()=>{class i{ngOnInit(){this.authService.authState.subscribe(n=>{this.isAuthenticated.set(n),n&&(this.loginError.set(null),this.loginPassword.set(""))});let e=localStorage.getItem("journal-bottom-height");if(e){let n=parseInt(e,10);n>=Lp&&n<=Vp&&this.journalHeight.set(n)}let t=localStorage.getItem("gpu-col-width");if(t){let n=parseInt(t,10);n>=Bp&&n<=zp&&this.gpuColWidth.set(n)}}ngOnDestroy(){}onLogin(){return q(this,null,function*(){this.loginError.set(null),(yield this.authService.login(this.loginPassword()))?(this.loading.set(!0),this.initGpus()):this.loginError.set("Invalid password")})}startJournalHeightDrag(e){this.beginDrag("journalHeight",e.clientY,this.journalHeight())}startGpuColDrag(e){this.beginDrag("gpuColWidth",e.clientX,this.gpuColWidth())}beginDrag(e,t,n){this.dragTarget=e,this.dragStartCoord=t,this.dragStartValue=n,this.isDragging.set(!0)}onDrag(e){if(!(!this.isDragging()||!this.dragTarget)){if(this.dragTarget==="journalHeight"){let t=this.dragStartCoord-e.clientY;this.journalHeight.set(this.clamp(this.dragStartValue+t,Lp,Vp))}else if(this.dragTarget==="gpuColWidth"){let t=e.clientX-this.dragStartCoord;this.gpuColWidth.set(this.clamp(this.dragStartValue+t,Bp,zp))}}}onDragEnd(){!this.isDragging()||!this.dragTarget||(this.dragTarget==="journalHeight"?localStorage.setItem("journal-bottom-height",String(this.journalHeight())):this.dragTarget==="gpuColWidth"&&localStorage.setItem("gpu-col-width",String(this.gpuColWidth())),this.dragTarget=null,this.isDragging.set(!1))}clamp(e,t,n){return Math.max(t,Math.min(n,e))}constructor(){this.gpuService=d(dh),this.authService=d(Or),this.gpus=A([]),this.systemInfo=A({cpuUsage:0,memoryTotal:0,memoryUsed:0,memoryPercent:0}),this.loading=A(!0),this.error=A(null),this.hasGpus=U(()=>this.gpus().length>0),this.isAuthenticated=A(this.authService.isAuthenticated()),this.loginPassword=A(""),this.loginError=A(null),this.journalHeight=A(Ox),this.gpuColWidth=A(Px),this.isDragging=A(!1),this.dragTarget=null,this.dragStartCoord=0,this.dragStartValue=0,this.isAuthenticated()&&this.initGpus()}initGpus(e=0){this.gpuService.fetchGpus().subscribe({next:t=>{if(t.length===0){e<3?setTimeout(()=>this.initGpus(e+1),5e3):this.loading.set(!1);return}let n=t.map(a=>Fe(B({},a),{key:a.pciBusId,usage:0,temperature:0,vramUsed:0}));this.gpus.set(n),this.loading.set(!1),this.error.set(null),this.gpuService.watchStatus(3e3).subscribe({next:a=>{this.systemInfo.set(a.system),this.mergeUsage(a.gpus)},error:a=>{console.error("[AppComponent] status poll error:",a)}})},error:t=>{console.error("[AppComponent] static fetch error:",t),this.error.set(`Failed to fetch GPU data: ${t.message}`),this.loading.set(!1)}})}mergeUsage(e){let t=new Map;for(let n of e)t.set(n.key,n);this.gpus.update(n=>n.map(a=>{let r=t.get(a.pciBusId);return Fe(B({},a),{key:a.pciBusId,usage:r?.usage??0,temperature:r?.temperature??0,vramUsed:r?.vramUsed??0})}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=I({type:i,selectors:[["app-root"]],hostBindings:function(t,n){t&1&&M("mousemove",function(r){return n.onDrag(r)},Ys)("mouseup",function(){return n.onDragEnd()},Ys)},decls:2,vars:1,consts:[[1,"login-container"],[1,"login-card"],[1,"login-header"],[1,"login-icon"],[1,"mat-body-2",2,"color","#999"],[1,"login-form",3,"submit"],["appearance","outline",1,"full-width"],["matInput","","type","password","autofocus","",3,"input","value"],[1,"login-error"],["mat-raised-button","","color","primary","type","submit",1,"login-btn"],[2,"font-size","20px","vertical-align","middle"],["mode","query","color","primary"],[1,"layout"],[1,"main-content"],[1,"error-card"],[2,"color","#f44336","font-size","48px","float","left","margin-right","16px"],[1,"top-row-horizontal"],[1,"gpu-col"],[3,"systemInfo"],[1,"empty-card"],[3,"gpus"],[1,"splitter",3,"mousedown"],[1,"splitter-line"],[1,"services-col"],[1,"splitter","splitter-h",3,"mousedown"],[1,"journal-bottom"]],template:function(t,n){t&1&&S(0,kx,18,2,"div",0)(1,Rx,5,4),t&2&&k(n.isAuthenticated()?1:0)},dependencies:[Pe,ni,Ii,rn,on,an,ri,ai,Tt,Lt,At,Ke,Xe,yt,bt,Ph,Ip,Rp,Np],styles:[".spacer[_ngcontent-%COMP%]{flex:1 1 auto}.login-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 56px);padding:24px;background:#f5f5f5}.login-card[_ngcontent-%COMP%]{width:100%;max-width:400px}.login-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:24px}.login-header[_ngcontent-%COMP%] .login-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;line-height:48px;background:#e3f2fd;border-radius:50%;padding:8px;color:#1976d2}.login-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:16px 0 4px;font-size:22px;font-weight:500}.login-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.login-error[_ngcontent-%COMP%]{color:#d32f2f;font-size:14px;text-align:center;padding:8px;background:#ffebee;border-radius:4px}.login-btn[_ngcontent-%COMP%]{width:100%;margin-top:8px}.full-width[_ngcontent-%COMP%]{width:100%}.layout[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.layout.dragging[_ngcontent-%COMP%]{user-select:none;-webkit-user-select:none}.main-content[_ngcontent-%COMP%]{flex:1;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:24px;max-width:100%}.top-row-horizontal[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex:1;min-height:0}.gpu-col[_ngcontent-%COMP%]{flex-shrink:0;overflow:hidden;display:flex;flex-direction:column}.gpu-col[_ngcontent-%COMP%] app-system-bar[_ngcontent-%COMP%]{flex:0 0 auto}.gpu-col[_ngcontent-%COMP%] app-gpu-table[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.gpu-col[_ngcontent-%COMP%] .empty-card[_ngcontent-%COMP%]{flex-shrink:0}.services-col[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;display:flex;flex-direction:column}.services-col[_ngcontent-%COMP%] app-services[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin-top:0}.splitter[_ngcontent-%COMP%]{width:8px;flex-shrink:0;cursor:col-resize;margin:0 8px;display:flex;align-items:center;justify-content:center;background:transparent;transition:background .15s}.splitter[_ngcontent-%COMP%]:hover{background:#0000000a}.splitter[_ngcontent-%COMP%] .splitter-line[_ngcontent-%COMP%]{width:2px;height:32px;border-radius:1px;background:#bdbdbd;transition:background .15s,width .15s}.splitter[_ngcontent-%COMP%]:hover .splitter-line[_ngcontent-%COMP%]{background:#757575;width:3px}.splitter-h[_ngcontent-%COMP%]{width:100%;height:8px;flex-shrink:0;cursor:row-resize;margin:8px 0;display:flex;align-items:center;justify-content:center;background:transparent;transition:background .15s}.splitter-h[_ngcontent-%COMP%]:hover{background:#0000000a}.splitter-h[_ngcontent-%COMP%] .splitter-line[_ngcontent-%COMP%]{width:32px;height:2px;border-radius:1px;background:#bdbdbd;transition:background .15s,height .15s}.splitter-h[_ngcontent-%COMP%]:hover .splitter-line[_ngcontent-%COMP%]{background:#757575;height:3px}.journal-bottom[_ngcontent-%COMP%]{flex-shrink:0;overflow-y:auto}.error-card[_ngcontent-%COMP%], .empty-card[_ngcontent-%COMP%]{margin-top:32px;max-width:600px;margin-left:auto;margin-right:auto}[_nghost-%COMP%] mat-card-content{padding-top:10px!important;padding-bottom:10px!important}app-services[_ngcontent-%COMP%]{display:block;margin-top:24px}"]})}}return i})();xl(jp,xm).catch(i=>console.error(i));
|