aiservermanager 0.7.11 → 0.7.12

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.
@@ -157,8 +157,12 @@ let ServiceConfigController = class ServiceConfigController {
157
157
  return { ok: true };
158
158
  }
159
159
  /**
160
- * Archive a service: stop if running → uninstall OS service → move config to the archive.
161
- * Unlike deleteService, the config file is kept (in services-archive/) for later restore.
160
+ * Archive a service: uninstall the OS service (stop + disable + remove the unit)
161
+ * → move config to the archive. Unlike deleteService, the config file is kept
162
+ * (in services-archive/) for later restore.
163
+ * A failed uninstall aborts the archive: an archived service has no card in the
164
+ * UI, so a surviving unit would keep running and starting at boot with no way
165
+ * left to remove it. The config stays in services/ for a retry.
162
166
  * @returns { ok, error? }
163
167
  */
164
168
  async archiveService(name) {
@@ -167,12 +171,15 @@ let ServiceConfigController = class ServiceConfigController {
167
171
  return { ok: false, error: `Config "${name}" not found` };
168
172
  }
169
173
  const controller = await this.getActiveController();
170
- // Uninstall OS service first (best-effort). The config must still live in
171
- // services/ here so the controller's hasCustomConfig() gates sudo correctly.
174
+ // Uninstall OS service first. The config must still live in services/ here
175
+ // so the controller's hasCustomConfig() gates sudo correctly.
172
176
  if (controller) {
173
177
  const uninstallResult = await controller.uninstall(name);
174
178
  if (!uninstallResult.ok) {
175
- console.warn(`[ServiceConfigController] uninstall warning for "${name}":`, uninstallResult.error);
179
+ return {
180
+ ok: false,
181
+ error: `Failed to uninstall the OS service "${name}", it is still registered — nothing was archived: ${uninstallResult.error}`,
182
+ };
176
183
  }
177
184
  }
178
185
  // Move config file to the archive
@@ -1 +1 @@
1
- {"version":3,"file":"serviceConfigController.js","sourceRoot":"","sources":["../../src/services/serviceConfigController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAAwC;AACxC,2DAOiC;AACjC,mDAAgD;AAGhD,MAAM,UAAU,GAAG,gCAAgC,CAAC;AAEpD;;;GAGG;AACH,IAAa,uBAAuB,GAApC,MA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AAC,oBAAoB,CAAC,CAAA;;GAJzB,uBAAuB,CA0NnC"}
1
+ {"version":3,"file":"serviceConfigController.js","sourceRoot":"","sources":["../../src/services/serviceConfigController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAAwC;AACxC,2DAOiC;AACjC,mDAAgD;AAGhD,MAAM,UAAU,GAAG,gCAAgC,CAAC;AAEpD;;;GAGG;AACH,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAKf;IAJF,aAAa,GAAG,IAAI,6BAAa,EAAE,CAAC;IAErD,YAEmB,WAAgC;QAAhC,gBAAW,GAAX,WAAW,CAAqB;IAChD,CAAC;IAEJ,sCAAsC;IACtC,WAAW;QACT,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;IAED,yCAAyC;IACzC,mBAAmB;QACjB,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC;IAC3C,CAAC;IAED,mCAAmC;IACnC,SAAS,CAAC,IAAY;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAEO,KAAK,CAAC,mBAAmB;QAC/B,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACjC,IAAI,MAAM,CAAC,CAAC,WAAW,EAAE;gBAAE,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAAC,GAAkB;QACrC,gBAAgB;QAChB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,OAAO;gBACL,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,sGAAsG;aAC9G,CAAC;QACJ,CAAC;QAED,mBAAmB;QACnB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;YACxB,OAAO,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CAAC,CAAC;YAClE,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;gBACjB,qEAAqE;gBACrE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;YAC5C,CAAC;QACH,CAAC;QAED,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;IACtB,CAAC;CACF,CAAA;AAjOY,0DAAuB;kCAAvB,uBAAuB;IAI/B,WAAA,IAAA,uBAAW,EAAC,oBAAoB,CAAC,CAAA;;GAJzB,uBAAuB,CAiOnC"}
@@ -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-LRJHLP7N.js"><script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-OFWCCXYZ.js" type="module"></script></body>
14
+ <link rel="modulepreload" href="chunk-LRJHLP7N.js"><script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-C647B6KX.js" type="module"></script></body>
15
15
  </html>
@@ -5608,7 +5608,7 @@ GGML_MOE_CACHE_LAYER_DEVICE=ROCm0`,"matTooltip","Environment variables for the s
5608
5608
  `)){let a=n.trim();if(!a||a.startsWith("#"))continue;let s=a.indexOf("=");s<=0||(t[a.slice(0,s).trim()]=a.slice(s+1))}return t}addIf(e,t,n,a){let s=oo(n).trim();s&&s!==oo(a)&&e.push(`${t} ${s}`)}addWhenSet(e,t,n){let a=oo(n).trim();a&&e.push(`${t} ${a}`)}buildFlags(){let e=[],t=this.form.controls;this.addIf(e,"--model",t.model.value,$.model),this.addIf(e,"--pack",t.pack.value,$.pack),this.addIf(e,"--mmproj",t.mmproj.value,$.mmproj),this.addIf(e,"--data-dir",t.dataDir.value,$.dataDir),this.addIf(e,"--rocm",t.rocm.value,$.rocm),this.addIf(e,"--keys-ini",t.keysIni.value,$.keysIni),this.addIf(e,"--mtp",t.mtp.value,$.mtp),this.addIf(e,"--gpus",ef(t.gpus.value),$.gpus),this.addIf(e,"--tp",t.tp.value,$.tp),this.addIf(e,"--layer-split",ef(t.layerSplit.value),$.layerSplit),this.addIf(e,"--pipeline-windows",t.pipelineWindows.value,$.pipelineWindows),this.addIf(e,"--ctx",+Ut(t.ctxSize.value??""),$.ctxSize),this.addIf(e,"--conv-cache-mib",t.convCacheMib.value,$.convCacheMib),this.addWhenSet(e,"--conv-slots",t.convSlots.value),this.addWhenSet(e,"--kv-resident",t.kvResident.value),this.addIf(e,"--ple-io",t.pleIo.value,$.pleIo),this.addIf(e,"--vision",t.vision.value,$.vision),this.isVisionOn()&&this.addIf(e,"--vision-dev",t.visionDev.value,$.visionDev),this.addWhenSet(e,"--vram-reserve-mib",t.vramReserveMib.value),this.addIf(e,"--megakernel",t.megakernel.value,$.megakernel),this.addIf(e,"--toolcall",t.toolcall.value,$.toolcall),this.isToolcallOn()&&(this.addIf(e,"--reasoning-effort",t.reasoningEffort.value,$.reasoningEffort),this.addWhenSet(e,"--reasoning-budget",t.reasoningBudget.value)),this.addIf(e,"--port",t.port.value,$.port);for(let n of t.extraFlags.value.split(`
5609
5609
  `)){let a=n.trim();a&&a.startsWith("--")&&e.push(a)}return e}save(){if(this.form.invalid)return;let e=this.parseEnvironment(this.form.controls.envText.value),t=N({name:this.form.controls.name.value.trim(),type:"strata-rdna3",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(),s=this.form.controls.restart.value;n&&(t.user=n),a&&(t.group=a),s&&s!=="no"&&(t.restart=s),this.data.config?.workingDirectory&&(t.workingDirectory=this.data.config.workingDirectory),this.data.config?.stopCommand&&(t.stopCommand=this.data.config.stopCommand),this.dialogRef.close(t)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=P({type:i,selectors:[["app-strata-rdna3-dialog"]],decls:232,vars:80,consts:[["commandAuto","matAutocomplete"],["ctxAuto","matAutocomplete"],["visionDevAuto","matAutocomplete"],["mat-dialog-title",""],[1,"strata-form",3,"formGroup"],["appearance","outline",1,"full-width"],["matInput","","formControlName","name","placeholder","e.g. strata-qwen3_8_flash-q8-4gpu-256k"],["matInput","","formControlName","command","placeholder","/path/to/strata-rdna3/run.sh",3,"matAutocomplete"],[3,"value"],["expanded",""],["formControlName","model","label","Model \u2014 first GGUF shard (--model)","placeholder","/home/.../Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf","fieldClass","full-width",3,"existingPaths"],["formControlName","pack","label","Expert pack (--pack)","placeholder","/home/yar/.lmstudio/packs/unsloth-ud-iq4_xs","fieldClass","full-width",3,"existingPaths"],[1,"hint"],[1,"subsection-label"],["formControlName","mmproj","label","mmproj for vision (--mmproj)","placeholder","/home/yar/.lmstudio/models/mmproj-Qwen3.8-Flash-Next-BF16.gguf","fieldClass","full-width",3,"existingPaths"],[1,"form-row"],["appearance","outline",1,"form-col"],["matInput","","formControlName","dataDir","placeholder","/home/yar/.lmstudio","matTooltip","Root the launcher resolves default model and pack paths from (--data-dir). Default: /home/yar/.lmstudio"],["matInput","","formControlName","rocm","placeholder","/opt/rocm-7.2.2","matTooltip","ROCm root whose lib/ the engine loads (--rocm). Default: /opt/rocm-7.2.2"],["matInput","","formControlName","keysIni","placeholder","../llama/keys.ini","matTooltip","File the API key is read from (--keys-ini). The key never becomes an argument \u2014 argv is visible in ps. Default: ../llama/keys.ini, overridable with the API_KEY environment variable below"],["matInput","","formControlName","gpus","type","text","placeholder","0,1",3,"matTooltip"],["formControlName","tp","matTooltip","Tensor parallel. The engine accepts 1|2 only, so more than two cards needs none \u2014 layer split alone. none emits --tp none; the launcher drops the flag entirely"],["matInput","","formControlName","layerSplit","placeholder","auto","matTooltip","First layer of every next card (--layer-split). auto lets the engine decide; four cards are usually 12,24,36"],["matInput","","formControlName","pipelineWindows","type","number","min","0","matTooltip","Pipeline stages (--pipeline-windows). 0 runs the stages one after another \u2014 measured best short decode and prefill on two cards"],["role","alert",1,"hint","hint-warning"],["matInput","","formControlName","ctxSize","type","text","placeholder","e.g. 256K, 262144","matTooltip","Context length (--ctx). Supports 20000, 20K. Default: 256K",3,"blur","keyup.enter","matAutocomplete"],["matInput","","formControlName","convCacheMib","type","number","min","0","matTooltip","Conversation cache in MiB (--conv-cache-mib). 0 \u2014 nothing is reused between requests. Default: 0"],["matInput","","formControlName","convSlots","type","text","placeholder","fork default (8)","matTooltip","Conversation cache slots (--conv-slots). Empty leaves the pair the fork's config carries; a typed value replaces it"],["matInput","","formControlName","kvResident","type","text","placeholder","fork default (32768)","matTooltip","Tokens that stay resident in VRAM (--kv-resident). 0 puts the whole KV in VRAM; empty leaves the fork's config value"],["matInput","","formControlName","vramReserveMib","type","text","placeholder","fork default (512)","matTooltip","VRAM left free per card (--vram-reserve-mib). 2048 when the vision encoder shares a card with the model \u2014 below that the encoder is killed"],["formControlName","pleIo","matTooltip","Where the PLE table lives (--ple-io). direct reads it from SSD on every token and costs 4-5x the speed (22 against 95 tok/s on two cards)"],["formControlName","mtp","matTooltip","MTP draft head (--mtp). On two cards it costs ~30% at 50K context and gains ~25% on short prompts; with the expert cache above 90% it pays off. Default: on"],["value","on"],["value","off"],["formControlName","megakernel","matTooltip","Persistent verify kernel (--megakernel). It wants every CU of the card, so it is wrong while the card is shared with vision or ComfyUI. Default: off"],["formControlName","vision","matTooltip","Image encoder (--vision). off saves the VRAM the projector needs. Default: off"],["matInput","","formControlName","visionDev","type","number","min","0","matTooltip","Card the encoder runs on (--vision-dev). Pick one the model does not use, or leave a VRAM reserve of 2048 MiB and above",3,"matAutocomplete"],["formControlName","toolcall","matTooltip","Agent mode (--toolcall): temperature 0.2, top_p 0.9 and tool_call_recovery on. Default: off"],["formControlName","reasoningEffort","matTooltip","Default reasoning level (--reasoning-effort). A request carrying its own reasoning_effort still wins. run.sh applies this only in toolcall mode, so the field is locked while tool calling is off. Default: medium"],["matInput","","formControlName","reasoningBudget","type","text","placeholder","not set","matTooltip","Reasoning budget in tokens (--reasoning-budget). Empty leaves it unset \u2014 a budget cuts hard on complex tasks"],["matInput","","formControlName","port","type","number","matTooltip","API port (--port). Default: 4239"],["matInput","","formControlName","extraFlags","rows","3","wrap","off","placeholder","--some-new-option 3","matTooltip","Launcher arguments kept verbatim, one per line. Loaded from the existing config and written back untouched; the flags above belong to their fields and are ignored here",1,"flags-textarea"],["matInput","","formControlName","envText","rows","3","wrap","off","placeholder",`API_KEY=sk-...
5610
5610
  PATH=/opt/rocm-7.2.2/bin:/usr/bin`,"matTooltip","Environment variables for the service process (KEY=VALUE, one per line). API_KEY overrides the keys file",1,"env-textarea"],["matInput","","formControlName","user","placeholder","yar",3,"matTooltip"],["matInput","","formControlName","group","placeholder","ai",3,"matTooltip"],["formControlName","restart"],["align","end"],["mat-stroked-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"auto-path"],[1,"auto-from"]],template:function(t,n){if(t&1&&(r(0,"h2",3),d(1),l(),r(2,"mat-dialog-content")(3,"form",4)(4,"mat-form-field",5),v(5,"input",6),g(),r(6,"mat-label"),d(7,"Service Name"),l(),w(8,dx,2,0,"mat-error")(9,mx,2,0,"mat-error")(10,ux,2,0,"mat-error"),l(),r(11,"mat-form-field",5),v(12,"input",7),g(),r(13,"mat-label"),d(14,"Command (Strata rdna3 launcher)"),l(),w(15,hx,2,0,"mat-error"),l(),r(16,"mat-autocomplete",null,0),Y(18,px,5,3,"mat-option",8,lx),l(),r(20,"mat-expansion-panel",9)(21,"mat-expansion-panel-header")(22,"mat-panel-title"),d(23,"Model & Pack"),l(),r(24,"mat-panel-description"),d(25,"Empty = the path built into run.sh"),l()(),v(26,"app-file-autocomplete",10),g(),v(27,"app-file-autocomplete",11),g(),r(28,"div",12)(29,"mat-icon"),d(30,"info"),l(),r(31,"span"),d(32," The pack is a directory holding index.txt, built by the fork's iq_pack.py \u2014 run.sh refuses to start without it. "),l()(),r(33,"div",13),d(34,"Vision & roots"),l(),v(35,"app-file-autocomplete",14),g(),r(36,"div",15)(37,"mat-form-field",16),v(38,"input",17),g(),r(39,"mat-label"),d(40,"Data dir (--data-dir)"),l()(),r(41,"mat-form-field",16),v(42,"input",18),g(),r(43,"mat-label"),d(44,"ROCm root (--rocm)"),l()()(),r(45,"div",15)(46,"mat-form-field",16),v(47,"input",19),g(),r(48,"mat-label"),d(49,"API key file (--keys-ini)"),l()()()(),r(50,"mat-expansion-panel",9)(51,"mat-expansion-panel-header")(52,"mat-panel-title"),d(53,"Card Layout"),l(),r(54,"mat-panel-description"),d(55,"Which cards the model and the encoder get"),l()(),r(56,"div",15)(57,"mat-form-field",16),v(58,"input",20),g(),r(59,"mat-label"),d(60,"Cards (--gpus)"),l()(),r(61,"mat-form-field",16)(62,"mat-select",21),Y(63,fx,2,2,"mat-option",8,Pe),l(),g(),r(65,"mat-label"),d(66,"Tensor parallel (--tp)"),l()()(),r(67,"div",15)(68,"mat-form-field",16),v(69,"input",22),g(),r(70,"mat-label"),d(71,"Layer split (--layer-split)"),l()(),r(72,"mat-form-field",16),v(73,"input",23),g(),r(74,"mat-label"),d(75,"Pipeline windows (--pipeline-windows)"),l()()(),w(76,gx,5,2,"div",24),l(),r(77,"mat-expansion-panel")(78,"mat-expansion-panel-header")(79,"mat-panel-title"),d(80,"Context & Cache"),l(),r(81,"mat-panel-description"),d(82,"Empty fields keep the launcher's or the fork's value"),l()(),r(83,"div",15)(84,"mat-form-field",16)(85,"input",25),D("blur",function(){return n.onCtxSizeInput()})("keyup.enter",function(){return n.onCtxSizeInput()}),l(),g(),r(86,"mat-label"),d(87,"Context (--ctx)"),l()(),r(88,"mat-autocomplete",null,1),Y(90,_x,2,2,"mat-option",8,cx),l(),r(92,"mat-form-field",16),v(93,"input",26),g(),r(94,"mat-label"),d(95,"Conversation cache, MiB"),l()(),r(96,"mat-form-field",16),v(97,"input",27),g(),r(98,"mat-label"),d(99,"Conversation slots (--conv-slots)"),l()()(),r(100,"div",15)(101,"mat-form-field",16),v(102,"input",28),g(),r(103,"mat-label"),d(104,"KV resident (--kv-resident)"),l()(),r(105,"mat-form-field",16),v(106,"input",29),g(),r(107,"mat-label"),d(108,"VRAM reserve, MiB (--vram-reserve-mib)"),l()(),r(109,"mat-form-field",16)(110,"mat-select",30),Y(111,vx,2,2,"mat-option",8,Pe),l(),g(),r(113,"mat-label"),d(114,"PLE table (--ple-io)"),l()()(),w(115,bx,5,0,"div",24),l(),r(116,"mat-expansion-panel")(117,"mat-expansion-panel-header")(118,"mat-panel-title"),d(119,"Modes"),l(),r(120,"mat-panel-description"),d(121,"MTP draft, vision, megakernel, agent mode"),l()(),r(122,"div",15)(123,"mat-form-field",16)(124,"mat-select",31)(125,"mat-option",32),d(126,"on"),l(),r(127,"mat-option",33),d(128,"off"),l()(),g(),r(129,"mat-label"),d(130,"MTP draft (--mtp)"),l()(),r(131,"mat-form-field",16)(132,"mat-select",34)(133,"mat-option",32),d(134,"on"),l(),r(135,"mat-option",33),d(136,"off"),l()(),g(),r(137,"mat-label"),d(138,"Megakernel (--megakernel)"),l()()(),r(139,"div",15)(140,"mat-form-field",16)(141,"mat-select",35)(142,"mat-option",32),d(143,"on"),l(),r(144,"mat-option",33),d(145,"off"),l()(),g(),r(146,"mat-label"),d(147,"Vision (--vision)"),l()(),r(148,"mat-form-field",16),v(149,"input",36),g(),r(150,"mat-label"),d(151,"Vision card (--vision-dev)"),l()(),r(152,"mat-autocomplete",null,2),Y(154,yx,2,2,"mat-option",8,Pe),l()(),w(156,Cx,5,4,"div",24),r(157,"div",15)(158,"mat-form-field",16)(159,"mat-select",37)(160,"mat-option",32),d(161,"on"),l(),r(162,"mat-option",33),d(163,"off"),l()(),g(),r(164,"mat-label"),d(165,"Tool calling (--toolcall)"),l()(),r(166,"mat-form-field",16)(167,"mat-select",38),Y(168,xx,2,2,"mat-option",8,Pe),l(),g(),r(170,"mat-label"),d(171,"Reasoning effort (--reasoning-effort)"),l()(),r(172,"mat-form-field",16),v(173,"input",39),g(),r(174,"mat-label"),d(175,"Reasoning budget (--reasoning-budget)"),l()()()(),r(176,"mat-expansion-panel")(177,"mat-expansion-panel-header")(178,"mat-panel-title"),d(179,"Server"),l(),r(180,"mat-panel-description"),d(181,"run.sh binds 127.0.0.1; the key comes from the environment"),l()(),r(182,"div",15)(183,"mat-form-field",16),v(184,"input",40),g(),r(185,"mat-label"),d(186,"Port"),l()()(),r(187,"div",12)(188,"mat-icon"),d(189,"info"),l(),r(190,"span"),d(191," The launcher keeps the key out of argv: it reads API_KEY or the keys file above. Without a key anyone who reaches the port uses the model, and requests through frp get 403 on the host check. "),l()()(),r(192,"mat-expansion-panel")(193,"mat-expansion-panel-header")(194,"mat-panel-title"),d(195,"Additional"),l(),r(196,"mat-panel-description"),d(197,"Options this dialog has no field for"),l()(),r(198,"mat-form-field",5),v(199,"textarea",41),g(),r(200,"mat-label"),d(201,"Other launcher arguments (one per line)"),l()(),r(202,"mat-form-field",5),v(203,"textarea",42),g(),r(204,"mat-label"),d(205,"Environment variables (KEY=VALUE, one per line)"),l()()(),r(206,"mat-expansion-panel")(207,"mat-expansion-panel-header")(208,"mat-panel-title"),d(209,"Service unit"),l(),r(210,"mat-panel-description"),d(211,"systemd User / Group / Restart policy"),l()(),r(212,"div",15)(213,"mat-form-field",16),v(214,"input",43),g(),r(215,"mat-label"),d(216,"Run as user"),l()(),r(217,"mat-form-field",16),v(218,"input",44),g(),r(219,"mat-label"),d(220,"Run as group"),l()(),r(221,"mat-form-field",16)(222,"mat-select",45),Y(223,wx,2,2,"mat-option",8,Pe),l(),g(),r(225,"mat-label"),d(226,"Restart policy"),l()()()()()(),r(227,"mat-dialog-actions",46)(228,"button",47),D("click",function(){return n.cancel()}),d(229,"Cancel"),l(),r(230,"button",48),D("click",function(){return n.save()}),d(231),l()()),t&2){let a=Ce(17),s=Ce(89),u=Ce(153);c(),J(" ",n.isClone?"Clone":n.isEdit?"Edit":"Add",` Strata (rdna3) service
5611
- `),c(2),x("formGroup",n.form),c(),p("changed",n.isControlChanged("name")),c(),_(),c(3),S(n.form.controls.name.errors?.required?8:n.form.controls.name.errors?.pattern?9:n.form.controls.name.errors?.nameTaken?10:-1),c(3),p("changed",n.isControlChanged("command")),c(),x("matAutocomplete",a),_(),c(3),S(n.form.controls.command.errors?.required?15:-1),c(3),Z(n.filteredCommands()),c(2),p("has-changed",n.isSectionChanged("model","pack","mmproj","dataDir","rocm","keysIni")),c(6),x("existingPaths",n.existingModelPaths()),_(),c(),x("existingPaths",n.existingPackPaths()),_(),c(8),x("existingPaths",n.existingMmprojPaths()),_(),c(2),p("changed",n.isControlChanged("dataDir")),c(),_(),c(3),p("changed",n.isControlChanged("rocm")),c(),_(),c(4),p("changed",n.isControlChanged("keysIni")),c(),_(),c(3),p("has-changed",n.isSectionChanged("gpus","tp","layerSplit","pipelineWindows")),c(7),p("changed",n.isControlChanged("gpus")),c(),x("matTooltip",n.gpuTooltip()),_(),c(3),p("changed",n.isControlChanged("tp")),c(),_(),c(),Z(n.tpOptions),c(5),p("changed",n.isControlChanged("layerSplit")),c(),_(),c(3),p("changed",n.isControlChanged("pipelineWindows")),c(),_(),c(3),S(n.isTensorParallelTooNarrow()?76:-1),c(),p("has-changed",n.isSectionChanged("ctxSize","convCacheMib","convSlots","kvResident","vramReserveMib","pleIo")),c(7),p("changed",n.isControlChanged("ctxSize")),c(),x("matAutocomplete",s),_(),c(5),Z(n.ctxPresets()),c(2),p("changed",n.isControlChanged("convCacheMib")),c(),_(),c(3),p("changed",n.isControlChanged("convSlots")),c(),_(),c(4),p("changed",n.isControlChanged("kvResident")),c(),_(),c(3),p("changed",n.isControlChanged("vramReserveMib")),c(),_(),c(3),p("changed",n.isControlChanged("pleIo")),c(),_(),c(),Z(n.pleIoOptions),c(4),S(n.isPleIoSlow()?115:-1),c(),p("has-changed",n.isSectionChanged("mtp","vision","visionDev","megakernel","toolcall","reasoningEffort","reasoningBudget")),c(7),p("changed",n.isControlChanged("mtp")),c(),_(),c(7),p("changed",n.isControlChanged("megakernel")),c(),_(),c(8),p("changed",n.isControlChanged("vision")),c(),_(),c(7),p("changed",n.isControlChanged("visionDev")),c(),x("matAutocomplete",u),_(),c(5),Z(n.gpuIndices()),c(2),S(n.isVisionCardClash()?156:-1),c(2),p("changed",n.isControlChanged("toolcall")),c(),_(),c(7),p("changed",n.isControlChanged("reasoningEffort")),c(),_(),c(),Z(n.reasoningEfforts),c(4),p("changed",n.isControlChanged("reasoningBudget")),c(),_(),c(3),p("has-changed",n.isSectionChanged("port")),c(7),p("changed",n.isControlChanged("port")),c(),_(),c(8),p("has-changed",n.isSectionChanged("extraFlags","envText")),c(6),p("changed",n.isControlChanged("extraFlags")),c(),_(),c(3),p("changed",n.isControlChanged("envText")),c(),_(),c(11),x("matTooltip",n.runAs.userHint()),_(),c(4),x("matTooltip",n.runAs.groupHint()),_(),c(4),_(),c(),Z(n.restartOptions),c(7),x("disabled",n.form.invalid),c(),J(" ",n.isEdit&&!n.isClone?"Save":"Create"," ")}},dependencies:[ke,ri,tn,Bt,yn,zt,Di,bo,Mi,Ft,mi,Ri,Ii,gt,_i,Fe,je,to,Dn,Qn,eo,Jn,Ct,rt,dt,Ei,Et,Mt,it,ht,ft,pt,ut,mt,Oi,Pi,io,kn,ma],styles:['@charset "UTF-8";.strata-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}.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}.hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.45;color:#666;background:#f5f5f5;border:1px solid #e0e0e0;border-radius:6px;padding:8px 10px;margin:4px 0 8px}.hint[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#999}.hint-warning[_ngcontent-%COMP%]{color:#e65100;background:#fff3e0;border-color:#ffe0b2}.hint-warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#e65100}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}']})}}return i})();var Ax=(i,o)=>o.name;function Ix(i,o){if(i&1&&(r(0,"div",10)(1,"mat-icon"),d(2,"warning"),l(),r(3,"span"),d(4),l()()),i&2){let e=y();c(4),Er(" Backend pid ",e.serverIdentity().pid," on ",e.serverIdentity().host,":",e.serverIdentity().port," is not elevated, so services cannot be started, stopped or installed. Stop every backend instance and launch one as Administrator \u2014 port ",e.serverIdentity().port," may still be held by an older, non-elevated instance. ")}}function Rx(i,o){if(i&1){let e=ve();r(0,"button",26),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"start"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"play_arrow"),l(),d(3," Start "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Px(i,o){if(i&1){let e=ve();r(0,"button",27),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"stop"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"stop"),l(),d(3," Stop "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Ox(i,o){if(i&1){let e=ve();r(0,"button",28),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"disable"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"lock"),l(),d(3," Disable "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Fx(i,o){if(i&1){let e=ve();r(0,"button",28),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"enable"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"lock_open"),l(),d(3," Enable "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",e.enabled||t.busy()?.name===e.name)}}function Nx(i,o){if(i&1&&(w(0,Rx,4,1,"button",20)(1,Px,4,1,"button",24),w(2,Ox,4,1,"button",25)(3,Fx,4,1,"button",25)),i&2){let e=y().$implicit;S(e.running?1:0),c(2),S(e.enabled?2:3)}}function Lx(i,o){if(i&1){let e=ve();r(0,"button",26),D("click",function(n){oe(e);let a=y().$implicit;return y(2).installService(a.name),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"download"),l(),d(3," Install "),l()}if(i&2){let e=y().$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Vx(i,o){if(i&1){let e=ve();r(0,"button",8),D("click",function(){oe(e);let n=y().$implicit,a=y(2);return ae(a.reinstallService(n.name))}),r(1,"mat-icon"),d(2,"refresh"),l(),r(3,"span"),d(4,"Reinstall"),l()()}}function Bx(i,o){if(i&1){let e=ve();r(0,"tr",15),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.selectedServiceService.select(n.name))}),r(1,"td")(2,"div",16),v(3,"span",17),r(4,"span",18),d(5),l()()(),r(6,"td",19),w(7,Nx,4,2)(8,Lx,4,1,"button",20),l(),r(9,"td",19)(10,"div")(11,"button",21)(12,"mat-icon"),d(13,"more_vert"),l()(),r(14,"mat-menu",22,2)(16,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.editService(n))}),r(17,"mat-icon"),d(18,"edit"),l(),r(19,"span"),d(20,"Edit"),l()(),r(21,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.cloneService(n))}),r(22,"mat-icon"),d(23,"content_copy"),l(),r(24,"span"),d(25,"Clone"),l()(),w(26,Vx,5,0,"button",23),r(27,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.archiveService(n.name))}),r(28,"mat-icon"),d(29,"inventory_2"),l(),r(30,"span"),d(31,"Move to Archive"),l()(),r(32,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.deleteService(n.name))}),r(33,"mat-icon"),d(34,"delete"),l(),r(35,"span"),d(36,"Delete"),l()()()()()()}if(i&2){let e=o.$implicit,t=Ce(15);p("custom",e.hasConfig),c(3),p("running",e.running),c(),p("disabled",!e.enabled),c(),A(e.name),c(2),S(e.installed?7:e.hasConfig?8:-1),c(3),Ge("visibility",e.hasConfig?"visible":"hidden"),c(),x("matMenuTriggerFor",t),c(15),S(e.installed?26:-1)}}function zx(i,o){if(i&1&&(r(0,"div",11)(1,"table",13)(2,"tbody"),Y(3,Bx,37,12,"tr",14,Ax),l()()()),i&2){let e=y();c(3),Z(e.filtered())}}function jx(i,o){if(i&1&&(r(0,"p"),d(1),l()),i&2){let e=y(2);c(),J('No services match "',e.filter().trim(),'".')}}function Hx(i,o){i&1&&(r(0,"p"),d(1,'No services configured. Click "Managed services" to select system services or "Custom service" to create one.'),l())}function Ux(i,o){if(i&1&&(r(0,"div",12),w(1,jx,2,1,"p")(2,Hx,2,0,"p"),l()),i&2){let e=y();c(),S(e.filter().trim()?1:2)}}var nf=(()=>{class i{constructor(){this.serviceService=m(Tt),this.serviceList=m(Ks),this.systemService=m(At),this.accountPassword=m(Qs),this.selectedServiceService=m(qs),this.dialog=m(Xn),this.snackBar=m(Ws),this.services=this.serviceList.services,this.configs=T([]),this.loading=T(!0),this.serverIdentity=T(null),this.busy=T(null),this.unified=E(()=>{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}}),s=e.filter(u=>!n.has(u.name)).map(u=>Ve(N({},u),{config:null,hasConfig:!1}));return[...a,...s]}),this.filter=T(""),this.filtered=E(()=>{let e=this.filter().trim().toLowerCase(),t=this.unified();return e?t.filter(n=>n.name.toLowerCase().includes(e)):t}),this.backendUnprivileged=E(()=>{let e=this.serverIdentity();return e!==null&&!e.privileged})}onFilterInput(e){this.filter.set(e.target.value)}ngOnInit(){this.load(),this.loadServerIdentity()}loadServerIdentity(){this.systemService.getSystemInfo().then(e=>this.serverIdentity.set(e.server??null)).catch(()=>this.serverIdentity.set(null))}load(){return K(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 K(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 K(this,null,function*(){let t=this.busy();if(t&&t.name===e&&t.action==="install")return;let n=yield this.accountPassword.askFor(this.configOf(e));if(n!==null){this.selectedServiceService.select(e),this.busy.set({name:e,action:"install"});try{let a=yield le(this.serviceService.installService(e,n??void 0));a.error&&this.showError(`${e}: ${a.error}`),yield this.load()}catch(a){this.showError(`Install "${e}": ${this.errorText(a)}`)}finally{this.busy.set(null)}}})}configOf(e){return this.configs().find(t=>t.name===e)}reinstallService(e){return K(this,null,function*(){confirm(`Reinstall service "${e}" from its current config? A running instance will be stopped.`)&&(yield this.installService(e))})}showError(e){this.snackBar.open(e,"Dismiss",{duration:8e3,horizontalPosition:"center",verticalPosition:"top"})}errorText(e){return e instanceof Xt?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=Ve(N({},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 K(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 K(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 s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Gp,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="vllm"){let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(qp,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="avalon"){let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Qp,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="strata-rdna3"){let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(tf,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else{let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Mp,{data:s,minWidth:"1000px"});this.handleDialogResult(u,e,n)}}handleDialogResult(e,t,n=!1){e.afterClosed().subscribe(a=>K(this,null,function*(){if(!a)return;let s=yield this.accountPassword.askFor(a);if(s===null)return;let u=s?Ve(N({},a),{runAsPassword:s}):a;try{if(n)yield le(this.serviceService.saveConfig(u));else{let h=t?.name??null;if(h!==null&&h!==a.name){let C=this.unified().find(W=>W.name===h),k=C?.running??!1,j=C?.enabled??!1;yield le(this.serviceService.deleteConfig(h)),yield le(this.serviceService.saveConfig(u)),j&&(yield le(this.serviceService.control(a.name,"enable"))),k&&(yield le(this.serviceService.control(a.name,"start")))}else yield le(this.serviceService.saveConfig(u))}}catch(h){this.showError(`Save: ${this.errorText(h)}`)}finally{yield this.load()}}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=P({type:i,selectors:[["app-services"]],decls:55,vars:5,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"],["role","alert",1,"privilege-warning"],[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-menu-item",""],["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&&(r(0,"div",3)(1,"div",4)(2,"h2"),d(3,"Services"),l(),r(4,"input",5),D("input",function(s){return n.onFilterInput(s)}),l(),r(5,"button",6)(6,"mat-icon"),d(7,"more_vert"),l()(),r(8,"mat-menu",7,0)(10,"button",8),D("click",function(){return n.manageServices()}),r(11,"mat-icon"),d(12,"tune"),l(),r(13,"span"),d(14,"Managed services"),l()(),r(15,"button",8),D("click",function(){return n.archiveServices()}),r(16,"mat-icon"),d(17,"inventory_2"),l(),r(18,"span"),d(19,"Archive"),l()(),r(20,"button",9)(21,"mat-icon"),d(22,"add"),l(),r(23,"span"),d(24,"Custom service"),l()()(),r(25,"mat-menu",null,1)(27,"button",8),D("click",function(){return n.addService("generic")}),r(28,"mat-icon"),d(29,"settings"),l(),r(30,"span"),d(31,"Generic service"),l()(),r(32,"button",8),D("click",function(){return n.addService("llama-server")}),r(33,"mat-icon"),d(34,"smart_toy"),l(),r(35,"span"),d(36,"llama-server"),l()(),r(37,"button",8),D("click",function(){return n.addService("vllm")}),r(38,"mat-icon"),d(39,"bolt"),l(),r(40,"span"),d(41,"vllm"),l()(),r(42,"button",8),D("click",function(){return n.addService("avalon")}),r(43,"mat-icon"),d(44,"hub"),l(),r(45,"span"),d(46,"Avalon"),l()(),r(47,"button",8),D("click",function(){return n.addService("strata-rdna3")}),r(48,"mat-icon"),d(49,"grid_view"),l(),r(50,"span"),d(51,"Strata (rdna3)"),l()()()(),w(52,Ix,5,4,"div",10),w(53,zx,5,0,"div",11)(54,Ux,3,1,"div",12),l()),t&2){let a=Ce(9),s=Ce(26);c(4),x("value",n.filter()),c(),x("matMenuTriggerFor",a),c(15),x("matMenuTriggerFor",s),c(32),S(n.backendUnprivileged()?52:-1),c(),S(n.filtered().length>0?53:n.loading()?-1:54)}},dependencies:[ke,Fe,je,Ui,ia,Gs,Yn,So,$s,ut,mt],styles:[".services-card[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.privilege-warning[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:flex-start;gap:8px;margin-bottom:8px;padding:8px 12px;border-radius:6px;background:#ffebee;color:#c62828;font-size:.85rem;line-height:1.4}.privilege-warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.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 $x=["journalBody"],Gx=(i,o)=>o.name;function Wx(i,o){if(i&1&&(r(0,"mat-option",7),d(1),l()),i&2){let e=o.$implicit;x("value",e.name),c(),A(e.name)}}function qx(i,o){if(i&1){let e=ve();r(0,"button",10),D("click",function(){oe(e);let n=y(2);return ae(n.toggleWordWrap())}),r(1,"mat-icon"),d(2,"wrap_text"),l()()}}function Kx(i,o){if(i&1){let e=ve();r(0,"button",11),D("click",function(){oe(e);let n=y(2);return ae(n.toggleWordWrap())}),r(1,"mat-icon"),d(2,"wrap_text"),l()()}}function Xx(i,o){if(i&1){let e=ve();r(0,"mat-select",6),D("ngModelChange",function(n){oe(e);let a=y();return ae(a.onServiceChange(n))}),r(1,"mat-option",7),d(2,"\u2014 None \u2014"),l(),Y(3,Wx,2,2,"mat-option",7,Gx),l(),g(),w(5,qx,3,0,"button",8)(6,Kx,3,0,"button",9)}if(i&2){let e=y();x("ngModel",e.selectedService()),_(),c(),x("value",null),c(2),Z(e.services()),c(2),S(e.wordWrap()?5:6)}}function Yx(i,o){if(i&1&&(r(0,"div",3),d(1),l()),i&2){let e=y();c(),A(e.error())}}function Zx(i,o){if(i&1&&(r(0,"div",4,0)(2,"pre"),d(3),l()()),i&2){let e=y();c(2),p("wrap-on",e.wordWrap()),c(),A(e.journalText())}}function Qx(i,o){i&1&&(r(0,"div",5)(1,"p"),d(2,"No service selected"),l()())}var Jx=40,of=(()=>{class i{toggleWordWrap(){this.wordWrap.update(e=>!e)}constructor(){this.serviceService=m(Tt),this.selectedServiceService=m(qs),this.serviceList=m(Ks),this.cdr=m(re),this.services=this.serviceList.services,this.servicesLoaded=this.serviceList.loaded,this.journalLines=T([]),this.journalLoading=T(!1),this.journalError=T(null),this.error=E(()=>this.serviceList.error()??this.journalError()),this.selectedService=E(()=>this.selectedServiceService.selectedService()),this.wordWrap=T(!0),this.journalText=E(()=>{let e=this.journalLines();return e.length===0?"":e.map(t=>t.timestamp?`${t.timestamp} ${t.message}`:t.message).join(`
5611
+ `),c(2),x("formGroup",n.form),c(),p("changed",n.isControlChanged("name")),c(),_(),c(3),S(n.form.controls.name.errors?.required?8:n.form.controls.name.errors?.pattern?9:n.form.controls.name.errors?.nameTaken?10:-1),c(3),p("changed",n.isControlChanged("command")),c(),x("matAutocomplete",a),_(),c(3),S(n.form.controls.command.errors?.required?15:-1),c(3),Z(n.filteredCommands()),c(2),p("has-changed",n.isSectionChanged("model","pack","mmproj","dataDir","rocm","keysIni")),c(6),x("existingPaths",n.existingModelPaths()),_(),c(),x("existingPaths",n.existingPackPaths()),_(),c(8),x("existingPaths",n.existingMmprojPaths()),_(),c(2),p("changed",n.isControlChanged("dataDir")),c(),_(),c(3),p("changed",n.isControlChanged("rocm")),c(),_(),c(4),p("changed",n.isControlChanged("keysIni")),c(),_(),c(3),p("has-changed",n.isSectionChanged("gpus","tp","layerSplit","pipelineWindows")),c(7),p("changed",n.isControlChanged("gpus")),c(),x("matTooltip",n.gpuTooltip()),_(),c(3),p("changed",n.isControlChanged("tp")),c(),_(),c(),Z(n.tpOptions),c(5),p("changed",n.isControlChanged("layerSplit")),c(),_(),c(3),p("changed",n.isControlChanged("pipelineWindows")),c(),_(),c(3),S(n.isTensorParallelTooNarrow()?76:-1),c(),p("has-changed",n.isSectionChanged("ctxSize","convCacheMib","convSlots","kvResident","vramReserveMib","pleIo")),c(7),p("changed",n.isControlChanged("ctxSize")),c(),x("matAutocomplete",s),_(),c(5),Z(n.ctxPresets()),c(2),p("changed",n.isControlChanged("convCacheMib")),c(),_(),c(3),p("changed",n.isControlChanged("convSlots")),c(),_(),c(4),p("changed",n.isControlChanged("kvResident")),c(),_(),c(3),p("changed",n.isControlChanged("vramReserveMib")),c(),_(),c(3),p("changed",n.isControlChanged("pleIo")),c(),_(),c(),Z(n.pleIoOptions),c(4),S(n.isPleIoSlow()?115:-1),c(),p("has-changed",n.isSectionChanged("mtp","vision","visionDev","megakernel","toolcall","reasoningEffort","reasoningBudget")),c(7),p("changed",n.isControlChanged("mtp")),c(),_(),c(7),p("changed",n.isControlChanged("megakernel")),c(),_(),c(8),p("changed",n.isControlChanged("vision")),c(),_(),c(7),p("changed",n.isControlChanged("visionDev")),c(),x("matAutocomplete",u),_(),c(5),Z(n.gpuIndices()),c(2),S(n.isVisionCardClash()?156:-1),c(2),p("changed",n.isControlChanged("toolcall")),c(),_(),c(7),p("changed",n.isControlChanged("reasoningEffort")),c(),_(),c(),Z(n.reasoningEfforts),c(4),p("changed",n.isControlChanged("reasoningBudget")),c(),_(),c(3),p("has-changed",n.isSectionChanged("port")),c(7),p("changed",n.isControlChanged("port")),c(),_(),c(8),p("has-changed",n.isSectionChanged("extraFlags","envText")),c(6),p("changed",n.isControlChanged("extraFlags")),c(),_(),c(3),p("changed",n.isControlChanged("envText")),c(),_(),c(11),x("matTooltip",n.runAs.userHint()),_(),c(4),x("matTooltip",n.runAs.groupHint()),_(),c(4),_(),c(),Z(n.restartOptions),c(7),x("disabled",n.form.invalid),c(),J(" ",n.isEdit&&!n.isClone?"Save":"Create"," ")}},dependencies:[ke,ri,tn,Bt,yn,zt,Di,bo,Mi,Ft,mi,Ri,Ii,gt,_i,Fe,je,to,Dn,Qn,eo,Jn,Ct,rt,dt,Ei,Et,Mt,it,ht,ft,pt,ut,mt,Oi,Pi,io,kn,ma],styles:['@charset "UTF-8";.strata-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}.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}.hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.45;color:#666;background:#f5f5f5;border:1px solid #e0e0e0;border-radius:6px;padding:8px 10px;margin:4px 0 8px}.hint[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#999}.hint-warning[_ngcontent-%COMP%]{color:#e65100;background:#fff3e0;border-color:#ffe0b2}.hint-warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#e65100}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}']})}}return i})();var Ax=(i,o)=>o.name;function Ix(i,o){if(i&1&&(r(0,"div",10)(1,"mat-icon"),d(2,"warning"),l(),r(3,"span"),d(4),l()()),i&2){let e=y();c(4),Er(" Backend pid ",e.serverIdentity().pid," on ",e.serverIdentity().host,":",e.serverIdentity().port," is not elevated, so services cannot be started, stopped or installed. Stop every backend instance and launch one as Administrator \u2014 port ",e.serverIdentity().port," may still be held by an older, non-elevated instance. ")}}function Rx(i,o){if(i&1){let e=ve();r(0,"button",26),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"start"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"play_arrow"),l(),d(3," Start "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Px(i,o){if(i&1){let e=ve();r(0,"button",27),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"stop"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"stop"),l(),d(3," Stop "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Ox(i,o){if(i&1){let e=ve();r(0,"button",28),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"disable"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"lock"),l(),d(3," Disable "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Fx(i,o){if(i&1){let e=ve();r(0,"button",28),D("click",function(n){oe(e);let a=y(2).$implicit;return y(2).control(a.name,"enable"),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"lock_open"),l(),d(3," Enable "),l()}if(i&2){let e=y(2).$implicit,t=y(2);x("disabled",e.enabled||t.busy()?.name===e.name)}}function Nx(i,o){if(i&1&&(w(0,Rx,4,1,"button",20)(1,Px,4,1,"button",24),w(2,Ox,4,1,"button",25)(3,Fx,4,1,"button",25)),i&2){let e=y().$implicit;S(e.running?1:0),c(2),S(e.enabled?2:3)}}function Lx(i,o){if(i&1){let e=ve();r(0,"button",26),D("click",function(n){oe(e);let a=y().$implicit;return y(2).installService(a.name),ae(n.stopPropagation())}),r(1,"mat-icon"),d(2,"download"),l(),d(3," Install "),l()}if(i&2){let e=y().$implicit,t=y(2);x("disabled",t.busy()?.name===e.name)}}function Vx(i,o){if(i&1){let e=ve();r(0,"button",8),D("click",function(){oe(e);let n=y().$implicit,a=y(2);return ae(a.reinstallService(n.name))}),r(1,"mat-icon"),d(2,"refresh"),l(),r(3,"span"),d(4,"Reinstall"),l()()}}function Bx(i,o){if(i&1){let e=ve();r(0,"tr",15),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.selectedServiceService.select(n.name))}),r(1,"td")(2,"div",16),v(3,"span",17),r(4,"span",18),d(5),l()()(),r(6,"td",19),w(7,Nx,4,2)(8,Lx,4,1,"button",20),l(),r(9,"td",19)(10,"div")(11,"button",21)(12,"mat-icon"),d(13,"more_vert"),l()(),r(14,"mat-menu",22,2)(16,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.editService(n))}),r(17,"mat-icon"),d(18,"edit"),l(),r(19,"span"),d(20,"Edit"),l()(),r(21,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.cloneService(n))}),r(22,"mat-icon"),d(23,"content_copy"),l(),r(24,"span"),d(25,"Clone"),l()(),w(26,Vx,5,0,"button",23),r(27,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.archiveService(n))}),r(28,"mat-icon"),d(29,"inventory_2"),l(),r(30,"span"),d(31,"Move to Archive"),l()(),r(32,"button",8),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.deleteService(n.name))}),r(33,"mat-icon"),d(34,"delete"),l(),r(35,"span"),d(36,"Delete"),l()()()()()()}if(i&2){let e=o.$implicit,t=Ce(15);p("custom",e.hasConfig),c(3),p("running",e.running),c(),p("disabled",!e.enabled),c(),A(e.name),c(2),S(e.installed?7:e.hasConfig?8:-1),c(3),Ge("visibility",e.hasConfig?"visible":"hidden"),c(),x("matMenuTriggerFor",t),c(15),S(e.installed?26:-1)}}function zx(i,o){if(i&1&&(r(0,"div",11)(1,"table",13)(2,"tbody"),Y(3,Bx,37,12,"tr",14,Ax),l()()()),i&2){let e=y();c(3),Z(e.filtered())}}function jx(i,o){if(i&1&&(r(0,"p"),d(1),l()),i&2){let e=y(2);c(),J('No services match "',e.filter().trim(),'".')}}function Hx(i,o){i&1&&(r(0,"p"),d(1,'No services configured. Click "Managed services" to select system services or "Custom service" to create one.'),l())}function Ux(i,o){if(i&1&&(r(0,"div",12),w(1,jx,2,1,"p")(2,Hx,2,0,"p"),l()),i&2){let e=y();c(),S(e.filter().trim()?1:2)}}var nf=(()=>{class i{constructor(){this.serviceService=m(Tt),this.serviceList=m(Ks),this.systemService=m(At),this.accountPassword=m(Qs),this.selectedServiceService=m(qs),this.dialog=m(Xn),this.snackBar=m(Ws),this.services=this.serviceList.services,this.configs=T([]),this.loading=T(!0),this.serverIdentity=T(null),this.busy=T(null),this.unified=E(()=>{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}}),s=e.filter(u=>!n.has(u.name)).map(u=>Ve(N({},u),{config:null,hasConfig:!1}));return[...a,...s]}),this.filter=T(""),this.filtered=E(()=>{let e=this.filter().trim().toLowerCase(),t=this.unified();return e?t.filter(n=>n.name.toLowerCase().includes(e)):t}),this.backendUnprivileged=E(()=>{let e=this.serverIdentity();return e!==null&&!e.privileged})}onFilterInput(e){this.filter.set(e.target.value)}ngOnInit(){this.load(),this.loadServerIdentity()}loadServerIdentity(){this.systemService.getSystemInfo().then(e=>this.serverIdentity.set(e.server??null)).catch(()=>this.serverIdentity.set(null))}load(){return K(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 K(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 K(this,null,function*(){let t=this.busy();if(t&&t.name===e&&t.action==="install")return;let n=yield this.accountPassword.askFor(this.configOf(e));if(n!==null){this.selectedServiceService.select(e),this.busy.set({name:e,action:"install"});try{let a=yield le(this.serviceService.installService(e,n??void 0));a.error&&this.showError(`${e}: ${a.error}`),yield this.load()}catch(a){this.showError(`Install "${e}": ${this.errorText(a)}`)}finally{this.busy.set(null)}}})}configOf(e){return this.configs().find(t=>t.name===e)}reinstallService(e){return K(this,null,function*(){confirm(`Reinstall service "${e}" from its current config? A running instance will be stopped.`)&&(yield this.installService(e))})}showError(e){this.snackBar.open(e,"Dismiss",{duration:8e3,horizontalPosition:"center",verticalPosition:"top"})}errorText(e){return e instanceof Xt?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=Ve(N({},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 K(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 K(this,null,function*(){let t=e.name;if(!(e.running&&!confirm(`Move running service "${t}" to the archive? It will be stopped, uninstalled, and its config shelved. You can restore it from the archive.`))){this.selectedServiceService.select(t);try{yield le(this.serviceService.archiveService(t)),yield this.load()}catch(n){this.showError(`Archive "${t}": ${this.errorText(n)}`)}}})}hasFlags(e){return e.flags.length>0}openDialog(e,t,n=!1){let a=t??e?.type??"generic";if(a==="llama-server"){let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Gp,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="vllm"){let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(qp,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="avalon"){let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Qp,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else if(a==="strata-rdna3"){let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(tf,{data:s,minWidth:"800px"});this.handleDialogResult(u,e,n)}else{let s={config:e,allConfigs:this.configs(),clone:n},u=this.dialog.open(Mp,{data:s,minWidth:"1000px"});this.handleDialogResult(u,e,n)}}handleDialogResult(e,t,n=!1){e.afterClosed().subscribe(a=>K(this,null,function*(){if(!a)return;let s=yield this.accountPassword.askFor(a);if(s===null)return;let u=s?Ve(N({},a),{runAsPassword:s}):a;try{if(n)yield le(this.serviceService.saveConfig(u));else{let h=t?.name??null;if(h!==null&&h!==a.name){let C=this.unified().find(W=>W.name===h),k=C?.running??!1,j=C?.enabled??!1;yield le(this.serviceService.deleteConfig(h)),yield le(this.serviceService.saveConfig(u)),j&&(yield le(this.serviceService.control(a.name,"enable"))),k&&(yield le(this.serviceService.control(a.name,"start")))}else yield le(this.serviceService.saveConfig(u))}}catch(h){this.showError(`Save: ${this.errorText(h)}`)}finally{yield this.load()}}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=P({type:i,selectors:[["app-services"]],decls:55,vars:5,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"],["role","alert",1,"privilege-warning"],[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-menu-item",""],["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&&(r(0,"div",3)(1,"div",4)(2,"h2"),d(3,"Services"),l(),r(4,"input",5),D("input",function(s){return n.onFilterInput(s)}),l(),r(5,"button",6)(6,"mat-icon"),d(7,"more_vert"),l()(),r(8,"mat-menu",7,0)(10,"button",8),D("click",function(){return n.manageServices()}),r(11,"mat-icon"),d(12,"tune"),l(),r(13,"span"),d(14,"Managed services"),l()(),r(15,"button",8),D("click",function(){return n.archiveServices()}),r(16,"mat-icon"),d(17,"inventory_2"),l(),r(18,"span"),d(19,"Archive"),l()(),r(20,"button",9)(21,"mat-icon"),d(22,"add"),l(),r(23,"span"),d(24,"Custom service"),l()()(),r(25,"mat-menu",null,1)(27,"button",8),D("click",function(){return n.addService("generic")}),r(28,"mat-icon"),d(29,"settings"),l(),r(30,"span"),d(31,"Generic service"),l()(),r(32,"button",8),D("click",function(){return n.addService("llama-server")}),r(33,"mat-icon"),d(34,"smart_toy"),l(),r(35,"span"),d(36,"llama-server"),l()(),r(37,"button",8),D("click",function(){return n.addService("vllm")}),r(38,"mat-icon"),d(39,"bolt"),l(),r(40,"span"),d(41,"vllm"),l()(),r(42,"button",8),D("click",function(){return n.addService("avalon")}),r(43,"mat-icon"),d(44,"hub"),l(),r(45,"span"),d(46,"Avalon"),l()(),r(47,"button",8),D("click",function(){return n.addService("strata-rdna3")}),r(48,"mat-icon"),d(49,"grid_view"),l(),r(50,"span"),d(51,"Strata (rdna3)"),l()()()(),w(52,Ix,5,4,"div",10),w(53,zx,5,0,"div",11)(54,Ux,3,1,"div",12),l()),t&2){let a=Ce(9),s=Ce(26);c(4),x("value",n.filter()),c(),x("matMenuTriggerFor",a),c(15),x("matMenuTriggerFor",s),c(32),S(n.backendUnprivileged()?52:-1),c(),S(n.filtered().length>0?53:n.loading()?-1:54)}},dependencies:[ke,Fe,je,Ui,ia,Gs,Yn,So,$s,ut,mt],styles:[".services-card[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.privilege-warning[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:flex-start;gap:8px;margin-bottom:8px;padding:8px 12px;border-radius:6px;background:#ffebee;color:#c62828;font-size:.85rem;line-height:1.4}.privilege-warning[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.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 $x=["journalBody"],Gx=(i,o)=>o.name;function Wx(i,o){if(i&1&&(r(0,"mat-option",7),d(1),l()),i&2){let e=o.$implicit;x("value",e.name),c(),A(e.name)}}function qx(i,o){if(i&1){let e=ve();r(0,"button",10),D("click",function(){oe(e);let n=y(2);return ae(n.toggleWordWrap())}),r(1,"mat-icon"),d(2,"wrap_text"),l()()}}function Kx(i,o){if(i&1){let e=ve();r(0,"button",11),D("click",function(){oe(e);let n=y(2);return ae(n.toggleWordWrap())}),r(1,"mat-icon"),d(2,"wrap_text"),l()()}}function Xx(i,o){if(i&1){let e=ve();r(0,"mat-select",6),D("ngModelChange",function(n){oe(e);let a=y();return ae(a.onServiceChange(n))}),r(1,"mat-option",7),d(2,"\u2014 None \u2014"),l(),Y(3,Wx,2,2,"mat-option",7,Gx),l(),g(),w(5,qx,3,0,"button",8)(6,Kx,3,0,"button",9)}if(i&2){let e=y();x("ngModel",e.selectedService()),_(),c(),x("value",null),c(2),Z(e.services()),c(2),S(e.wordWrap()?5:6)}}function Yx(i,o){if(i&1&&(r(0,"div",3),d(1),l()),i&2){let e=y();c(),A(e.error())}}function Zx(i,o){if(i&1&&(r(0,"div",4,0)(2,"pre"),d(3),l()()),i&2){let e=y();c(2),p("wrap-on",e.wordWrap()),c(),A(e.journalText())}}function Qx(i,o){i&1&&(r(0,"div",5)(1,"p"),d(2,"No service selected"),l()())}var Jx=40,of=(()=>{class i{toggleWordWrap(){this.wordWrap.update(e=>!e)}constructor(){this.serviceService=m(Tt),this.selectedServiceService=m(qs),this.serviceList=m(Ks),this.cdr=m(re),this.services=this.serviceList.services,this.servicesLoaded=this.serviceList.loaded,this.journalLines=T([]),this.journalLoading=T(!1),this.journalError=T(null),this.error=E(()=>this.serviceList.error()??this.journalError()),this.selectedService=E(()=>this.selectedServiceService.selectedService()),this.wordWrap=T(!0),this.journalText=E(()=>{let e=this.journalLines();return e.length===0?"":e.map(t=>t.timestamp?`${t.timestamp} ${t.message}`:t.message).join(`
5612
5612
  `)}),Wt(()=>{if(!this.servicesLoaded())return;let e=this.selectedService();e!==null&&!this.services().some(t=>t.name===e)&&this.selectedServiceService.select(null)}),Wt(()=>{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=br(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<=Jx:!0}scrollToBottom(){let e=this.scrollContainer;e&&(e.scrollTop=e.scrollHeight)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=P({type:i,selectors:[["app-journal-panel"]],viewQuery:function(t,n){if(t&1&&Oe($x,5),t&2){let a;L(a=V())&&(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&&(r(0,"mat-card",1)(1,"mat-card-content")(2,"div",2)(3,"h2"),d(4,"Journal"),l(),w(5,Xx,7,3),l(),w(6,Yx,2,1,"div",3),w(7,Zx,4,3,"div",4)(8,Qx,3,0,"div",5),l()()),t&2&&(c(5),S(n.servicesLoaded()&&n.services().length>0?5:-1),c(),S(n.error()?6:-1),c(),S(n.selectedService()?7:8))},dependencies:[ke,Nn,On,Fn,Oi,Pi,gt,Fe,je,ut,mt,wi,ri,zt,qa],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 il=(()=>{class i{constructor(){this.http=m(Vt),this.baseUrl="/api/hf"}getStatus(){return K(this,null,function*(){return le(this.http.get(`${this.baseUrl}/status`))})}getDownloads(){return K(this,null,function*(){return le(this.http.get(`${this.baseUrl}/downloads`))})}getLocalModels(){return K(this,null,function*(){return le(this.http.get(`${this.baseUrl}/models`))})}deleteLocalModel(e){return K(this,null,function*(){let[t,...n]=e.split("/");yield le(this.http.delete(`${this.baseUrl}/models/${t}/${n.join("/")}`))})}deleteLocalModelFile(e,t){return K(this,null,function*(){let[n,...a]=e.split("/");yield le(this.http.delete(`${this.baseUrl}/models/${n}/${a.join("/")}/files/${encodeURIComponent(t)}`))})}getOrphanBlobs(){return K(this,null,function*(){return le(this.http.get(`${this.baseUrl}/models/orphans`))})}cleanupOrphanBlobs(){return K(this,null,function*(){return le(this.http.post(`${this.baseUrl}/models/orphans/cleanup`,{}))})}action(e,t){return K(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=se({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ew=(i,o)=>o.device,tw=(i,o)=>o.path;function iw(i,o){i&1&&v(0,"mat-progress-bar",2)}function nw(i,o){if(i&1&&(r(0,"p",3),d(1),l()),i&2){let e=y();c(),A(e.error())}}function ow(i,o){if(i&1&&(r(0,"span",11),d(1),l()),i&2){let e=y(2);c(),A(e.info().uptime)}}function aw(i,o){if(i&1&&(r(0,"div",12)(1,"span",13),d(2,"Version"),l(),r(3,"span",14),d(4),l()()),i&2){let e=y(2);c(4),A(e.info().os.version)}}function rw(i,o){i&1&&(r(0,"p",19),d(1," Without elevated rights the backend cannot start, stop or install services. Stop every backend instance and launch one elevated \u2014 an older instance may still own the port. "),l())}function sw(i,o){if(i&1&&(r(0,"div",6)(1,"h3"),d(2,"Backend"),l(),r(3,"div",7)(4,"div",8)(5,"mat-chip-set")(6,"mat-chip",18),d(7),l(),r(8,"mat-chip",9),d(9),l()()(),r(10,"div",12)(11,"span",13),d(12,"Listening on"),l(),r(13,"span",14),d(14),l()(),r(15,"div",12)(16,"span",13),d(17,"Started"),l(),r(18,"span",14),d(19),Fo(20,"date"),l()(),r(21,"div",12)(22,"span",13),d(23,"Platform"),l(),r(24,"span",14),d(25),l()(),w(26,rw,2,0,"p",19),l()(),v(27,"mat-divider",15)),i&2){let e=y(2);c(6),p("server-chip-ok",e.info().server.privileged)("server-chip-warn",!e.info().server.privileged),c(),J(" ",e.info().server.privileged?"privileged":"not privileged"," "),c(2),J("pid ",e.info().server.pid),c(5),ii("",e.info().server.host,":",e.info().server.port),c(5),A(No(20,11,e.info().server.startedAt,"medium")),c(6),A(e.info().server.platform),c(),S(e.info().server.privileged?-1:26)}}function lw(i,o){if(i&1&&(r(0,"div",16)(1,"div",20)(2,"span",21),d(3),l(),r(4,"span",22),d(5),l()(),r(6,"div",23),v(7,"div",24),l(),r(8,"div",25)(9,"span"),d(10),l(),r(11,"span"),d(12),l()()()),i&2){let e=o.$implicit,t=y(2);c(3),A(e.device),c(2),A(e.mountPoint),c(2),Ge("width",e.usePercent,"%")("background",e.usePercent>90?"#f44336":e.usePercent>75?"#ff9800":"#4caf50"),c(3),ii("",t.formatBytes(e.available)," free of ",t.formatBytes(e.total)),c(2),J("",e.usePercent,"% used")}}function cw(i,o){if(i&1&&(r(0,"div",29)(1,"span",33),d(2,"Last"),l(),r(3,"span",34),d(4),Fo(5,"date"),l()()),i&2){let e=y(3);c(4),A(No(5,1,e.info().timeshift.lastSnapshot,"medium"))}}function dw(i,o){if(i&1&&(r(0,"mat-chip",35),d(1),l()),i&2){let e=o.$implicit;c(),A(e)}}function mw(i,o){if(i&1&&(r(0,"mat-chip-set"),Y(1,dw,2,1,"mat-chip",35,Pe),l()),i&2){let e=y(3);c(),Z(e.info().timeshift.schedules)}}function uw(i,o){if(i&1&&(r(0,"div",6)(1,"h3"),d(2,"Timeshift Backup"),l(),r(3,"div",7)(4,"div",8)(5,"mat-chip-set")(6,"mat-chip",26),d(7),l(),r(8,"mat-chip",27),d(9),l()(),r(10,"span",28),d(11),l()(),w(12,cw,6,4,"div",29),r(13,"div",30),v(14,"div",31),l(),r(15,"div",32)(16,"span"),d(17),l(),w(18,mw,3,0,"mat-chip-set"),l()()(),v(19,"mat-divider",15)),i&2){let e=y(2);c(7),A(e.info().timeshift.mode),c(2),A(e.info().timeshift.device),c(2),J("",e.info().timeshift.snapshots," snapshots"),c(),S(e.info().timeshift.lastSnapshot?12:-1),c(2),Ge("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),ii("",e.formatBytes(e.info().timeshift.freeSpace)," free of ",e.formatBytes(e.info().timeshift.totalSpace)),c(),S(e.info().timeshift.schedules.length>0?18:-1)}}function hw(i,o){if(i&1&&d(0),i&2){let e=y().$implicit,t=y(2);J(" ",t.formatBytes(e.size)," ")}}function pw(i,o){i&1&&d(0," \u2014 ")}function fw(i,o){if(i&1&&(r(0,"div",17)(1,"span",36),d(2),l(),r(3,"span",37),w(4,hw,1,1)(5,pw,1,0),l()()),i&2){let e=o.$implicit;c(2),A(e.path),c(2),S(e.exists?4:5)}}function gw(i,o){if(i&1&&(r(0,"div",6)(1,"h3"),d(2,"Operating System"),l(),r(3,"div",7)(4,"div",8)(5,"mat-chip-set")(6,"mat-chip",9),d(7),l(),r(8,"mat-chip",10),d(9),l()(),w(10,ow,2,1,"span",11),l(),w(11,aw,5,1,"div",12),r(12,"div",12)(13,"span",13),d(14,"Kernel"),l(),r(15,"span",14),d(16),l()()()(),v(17,"mat-divider",15),w(18,sw,28,14),r(19,"div",6)(20,"h3"),d(21,"Disks"),l(),Y(22,lw,13,9,"div",16,ew),l(),v(24,"mat-divider",15),w(25,uw,20,11),r(26,"div",6)(27,"h3"),d(28,"System Logs"),l(),Y(29,fw,6,2,"div",17,tw),l()),i&2){let e=y();c(7),A(e.info().hostname),c(2),A(e.info().os.name),c(),S(e.info().uptime?10:-1),c(),S(e.info().os.version?11:-1),c(5),A(e.info().kernel),c(2),S(e.info().server?18:-1),c(4),Z(e.info().disks),c(3),S(e.info().timeshift?25:-1),c(4),Z(e.info().logs)}}var af=(()=>{class i{constructor(){this.systemService=m(At),this.dialogRef=m(Qe),this.loading=T(!0),this.info=T(null),this.error=T(null)}ngOnInit(){return K(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=P({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,"server-chip"],[1,"server-warning"],[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&&(r(0,"div",0)(1,"h2",1)(2,"mat-icon"),d(3,"info"),l(),d(4," System Info "),l(),r(5,"mat-dialog-content"),w(6,iw,1,0,"mat-progress-bar",2)(7,nw,2,1,"p",3)(8,gw,31,7),l(),r(9,"mat-dialog-actions",4)(10,"button",5),D("click",function(){return n.close()}),d(11,"OK"),l()()()),t&2&&(c(6),S(n.loading()?6:n.error()?7:n.info()?8:-1))},dependencies:[ke,Fe,je,it,ht,ft,pt,wi,Ji,da,ur,ut,mt,ia,ir,Zh,Al],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}.info-card-header[_ngcontent-%COMP%] .server-chip-ok[_ngcontent-%COMP%]{font-weight:600;background:#e8f5e9!important;color:#2e7d32!important}.info-card-header[_ngcontent-%COMP%] .server-chip-warn[_ngcontent-%COMP%]{font-weight:600;background:#ffebee!important;color:#c62828!important}.server-warning[_ngcontent-%COMP%]{margin:8px 0 0;font-size:13px;color:#c62828}.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 rf=(()=>{class i{constructor(){this.http=m(Vt),this.baseUrl="/api/lmstudio"}getModels(){return K(this,null,function*(){return le(this.http.get(`${this.baseUrl}/models`))})}deleteModel(e){return K(this,null,function*(){let[t,...n]=e.split("/");yield le(this.http.delete(`${this.baseUrl}/models/${t}/${n.join("/")}`))})}deleteModelFile(e,t){return K(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=se({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var nl=(i,o)=>o.name,_w=(i,o)=>o.repoId+o.dest;function vw(i,o){i&1&&(r(0,"div",2),d(1),l()),i&2&&(c(),A(o))}function bw(i,o){i&1&&(r(0,"div",4),d(1,"Loading\u2026"),l())}function yw(i,o){i&1&&(r(0,"div",5),d(1,"Loading\u2026"),l())}function Cw(i,o){i&1&&(r(0,"div",6),d(1,"No models in the Hugging Face cache"),l())}function xw(i,o){if(i&1&&(r(0,"mat-icon",22),d(1),l(),r(2,"span",17),d(3),l(),r(4,"span",23),d(5),l()),i&2){let e=y().$implicit,t=y(3);c(),J(" ",t.expanded()==="hf:"+e.name?"expand_more":"chevron_right"," "),c(2),A(e.name),c(2),J("",t.hfFiles(e).length," file(s)")}}function ww(i,o){if(i&1&&(r(0,"span",17),d(1),l()),i&2){let e=y().$implicit;c(),A(e.name)}}function Sw(i,o){if(i&1&&(r(0,"span",26),d(1),l()),i&2){let e=y().$implicit;c(),J("",e.shards.length," shards")}}function Dw(i,o){if(i&1){let e=ve();r(0,"div",24)(1,"span",25),d(2),l(),w(3,Sw,2,1,"span",26),r(4,"span",19),d(5),l(),r(6,"button",27),D("click",function(){let n=oe(e).$implicit,a=y(2).$implicit,s=y(3);return ae(s.deleteHfFile(a,n))}),r(7,"mat-icon"),d(8,"delete"),l()()()}if(i&2){let e=o.$implicit,t=y(2).$implicit,n=y(3);c(),x("title",e.shards?e.shards.join(`
5613
5613
  `):e.name),c(),A(e.name),c(),S(e.shards?3:-1),c(2),A(n.formatBytes(e.size)),c(),x("disabled",n.fileDeleting()==="hf:"+t.name+"/"+e.name)}}function kw(i,o){if(i&1&&(r(0,"div",21),Y(1,Dw,9,5,"div",24,nl),l()),i&2){let e=y().$implicit,t=y(3);c(),Z(t.hfFiles(e))}}function Mw(i,o){if(i&1){let e=ve();r(0,"div",14)(1,"div",15),D("click",function(){let n=oe(e).$implicit,a=y(3);return ae(a.hfFiles(n).length>0&&a.toggleExpand("hf:"+n.name))}),r(2,"div",16),w(3,xw,6,3)(4,ww,2,1,"span",17),l(),r(5,"span",18),d(6),l()(),r(7,"span",19),d(8),l(),r(9,"button",20),D("click",function(){let n=oe(e).$implicit,a=y(3);return ae(a.deleteModel(n))}),r(10,"mat-icon"),d(11,"delete"),l()()(),w(12,kw,3,0,"div",21)}if(i&2){let e=o.$implicit,t=y(3);c(),p("expandable",t.hfFiles(e).length>0),c(2),S(t.hfFiles(e).length>0?3:4),c(2),x("title",e.dir),c(),A(e.dir),c(2),A(t.formatBytes(e.size)),c(),x("disabled",t.deleting()===e.name),c(3),S(t.expanded()==="hf:"+e.name?12:-1)}}function Ew(i,o){if(i&1&&(r(0,"div",7),Y(1,Mw,13,8,null,null,nl),l()),i&2){let e=y(2);c(),Z(e.staticModels())}}function Tw(i,o){i&1&&(r(0,"div",6),d(1,"No active downloads"),l())}function Aw(i,o){if(i&1&&(r(0,"span",31),d(1),l()),i&2){let e=y().$implicit;c(),J("pid ",e.pids.join(", "))}}function Iw(i,o){if(i&1){let e=ve();r(0,"button",42),D("click",function(){oe(e);let n=y().$implicit,a=y(3);return ae(a.resume(n))}),r(1,"mat-icon"),d(2,"play_arrow"),l()()}}function Rw(i,o){if(i&1){let e=ve();r(0,"button",43),D("click",function(){oe(e);let n=y().$implicit,a=y(3);return ae(a.pause(n))}),r(1,"mat-icon"),d(2,"pause"),l()()}}function Pw(i,o){if(i&1){let e=ve();r(0,"div",28)(1,"div",29)(2,"div",16)(3,"span",17),d(4),l(),r(5,"span",30),d(6),l(),w(7,Aw,2,1,"span",31),l(),r(8,"div",18),d(9),l(),v(10,"mat-progress-bar",32),r(11,"div",33)(12,"span",34),d(13),l(),r(14,"span",35),d(15),l(),r(16,"span",36),d(17),l(),r(18,"span",37),d(19),l()()(),r(20,"div",38),w(21,Iw,3,0,"button",39)(22,Rw,3,0,"button",40),r(23,"button",41),D("click",function(){let n=oe(e).$implicit,a=y(3);return ae(a.cancel(n))}),r(24,"mat-icon"),d(25,"cancel"),l()()()()}if(i&2){let e=o.$implicit,t=y(3);c(4),A(e.repoId),c(),p("paused",e.status==="paused"),c(),A(e.status),c(),S(e.pids.length>0?7:-1),c(),x("title",e.dest),c(),A(e.dest),c(),x("mode",t.progressMode(e))("value",t.percent(e)??0),c(3),ii(" ",t.formatBytes(e.doneBytes)," / ",e.totalBytes>0?t.formatBytes(e.totalBytes):"\u2026"," "),c(2),ii("",e.filesDone," / ",e.filesTotal," files"),c(2),A(t.formatSpeed(e.speedBps)),c(2),A(e.status==="paused"?"paused":"\u2248 "+t.formatEta(e.etaSeconds)),c(2),S(e.status==="paused"?21:22)}}function Ow(i,o){if(i&1&&(r(0,"div",11),Y(1,Pw,26,16,"div",28,_w),l()),i&2){let e=y(2);c(),Z(e.downloads())}}function Fw(i,o){if(i&1&&(r(0,"span",12),d(1),l()),i&2){let e=y(2);c(),ii(" \u2014 ",e.orphans().length," file(s), ",e.formatBytes(e.totalOrphanBytes()))}}function Nw(i,o){i&1&&(r(0,"div",5),d(1,"Loading\u2026"),l())}function Lw(i,o){i&1&&(r(0,"div",6),d(1,"No orphaned blobs"),l())}function Vw(i,o){if(i&1){let e=ve();r(0,"div",13)(1,"button",44),D("click",function(){oe(e);let n=y(2);return ae(n.cleanupOrphans())}),d(2),l()()}if(i&2){let e=y(2);c(),x("disabled",e.cleaning()),c(),J(" ",e.cleaning()?"Cleaning\u2026":"Cleanup ("+e.formatBytes(e.totalOrphanBytes())+")"," ")}}function Bw(i,o){if(i&1&&(r(0,"div",10),d(1,"Downloaded models"),l(),w(2,yw,2,0,"div",5)(3,Cw,2,0,"div",6)(4,Ew,3,0,"div",7),r(5,"div",10),d(6,"Downloading"),l(),w(7,Tw,2,0,"div",6)(8,Ow,3,0,"div",11),r(9,"div",10),d(10," Orphaned blobs "),w(11,Fw,2,2,"span",12),l(),w(12,Nw,2,0,"div",5)(13,Lw,2,0,"div",6)(14,Vw,3,2,"div",13)),i&2){let e=y();c(2),S(e.modelsLoading()?2:e.staticModels().length===0?3:4),c(5),S(e.downloads().length===0?7:8),c(4),S(!e.orphansLoading()&&e.orphans().length>0?11:-1),c(),S(e.orphansLoading()?12:e.orphans().length===0?13:14)}}function zw(i,o){i&1&&(r(0,"div",5),d(1,"Loading\u2026"),l())}function jw(i,o){i&1&&(r(0,"div",6),d(1,"No models in ~/.lmstudio/models"),l())}function Hw(i,o){if(i&1&&(r(0,"span",26),d(1),l()),i&2){let e=y().$implicit;c(),J("",e.shards.length," shards")}}function Uw(i,o){if(i&1){let e=ve();r(0,"div",24)(1,"span",25),d(2),l(),w(3,Hw,2,1,"span",26),r(4,"span",19),d(5),l(),r(6,"button",27),D("click",function(){let n=oe(e).$implicit,a=y(2).$implicit,s=y(2);return ae(s.deleteLmFile(a,n))}),r(7,"mat-icon"),d(8,"delete"),l()()()}if(i&2){let e=o.$implicit,t=y(2).$implicit,n=y(2);c(),x("title",e.shards?e.shards.join(`
5614
5614
  `):e.name),c(),A(e.name),c(),S(e.shards?3:-1),c(2),A(n.formatBytes(e.size)),c(),x("disabled",n.fileDeleting()==="lm:"+t.name+"/"+e.name)}}function $w(i,o){i&1&&(r(0,"div",6),d(1,"No .gguf files"),l())}function Gw(i,o){if(i&1&&(r(0,"div",21),Y(1,Uw,9,5,"div",24,nl,!1,$w,2,0,"div",6),l()),i&2){let e=y().$implicit;c(),Z(e.files)}}function Ww(i,o){if(i&1){let e=ve();r(0,"div",45)(1,"div",46),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.toggleExpand("lm:"+n.name))}),r(2,"div",16)(3,"mat-icon",22),d(4),l(),r(5,"span",17),d(6),l(),r(7,"span",23),d(8),l()(),r(9,"span",18),d(10),l()(),r(11,"span",19),d(12),l(),r(13,"button",20),D("click",function(){let n=oe(e).$implicit,a=y(2);return ae(a.deleteLmModel(n))}),r(14,"mat-icon"),d(15,"delete"),l()()(),w(16,Gw,4,1,"div",21)}if(i&2){let e=o.$implicit,t=y(2);c(4),A(t.expanded()==="lm:"+e.name?"expand_more":"chevron_right"),c(2),A(e.name),c(2),J("",e.files.length," file(s)"),c(),x("title",e.dir),c(),A(e.dir),c(2),A(t.formatBytes(e.size)),c(),x("disabled",t.lmDeleting()===e.name),c(3),S(t.expanded()==="lm:"+e.name?16:-1)}}function qw(i,o){if(i&1&&(r(0,"div",7),Y(1,Ww,17,8,null,null,nl),l()),i&2){let e=y();c(),Z(e.lmModels())}}var Kw=2e3,sf=(()=>{class i{constructor(){this.hfService=m(il),this.lmStudioService=m(rf),this.dialogRef=m(Qe),this.downloads=T([]),this.models=T([]),this.loading=T(!0),this.modelsLoading=T(!0),this.error=T(null),this.deleting=T(null),this.lmModels=T([]),this.lmLoading=T(!0),this.lmDeleting=T(null),this.expanded=T(null),this.fileDeleting=T(null),this.staticModels=E(()=>{let e=new Set(this.downloads().map(t=>t.dest));return this.models().filter(t=>!e.has(t.dir))}),this.orphans=T([]),this.orphansLoading=T(!0),this.cleaning=T(!1),this.totalOrphanBytes=E(()=>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()},Kw)}ngOnDestroy(){this.timer&&clearInterval(this.timer)}refresh(){return K(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 K(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 K(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 K(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 K(this,null,function*(){let n=t.shards??[t.name],a=`lm:${e.name}/${t.name}`;if(this.fileDeleting())return;let s=t.shards?`${t.name} (${t.shards.length} shard files)`:t.name;if(confirm(`Delete file ${s} (${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 K(this,null,function*(){let n=t.shards??[t.name],a=`hf:${e.name}/${t.name}`;if(this.fileDeleting())return;let s=t.shards?`${t.name} (${t.shards.length} shard files)`:t.name;if(confirm(`Delete ${s} (${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 K(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 Xt?e.error?.error??e.message:e instanceof Error?e.message:t}pause(e){return K(this,null,function*(){yield this.act("pause",e)})}resume(e){return K(this,null,function*(){yield this.act("resume",e)})}cancel(e){return K(this,null,function*(){confirm(`Cancel download of ${e.repoId}? Partial files will be kept for resume.`)&&(yield this.act("cancel",e))})}deleteModel(e){return K(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 K(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 K(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=P({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&&(r(0,"div",0)(1,"h2",1)(2,"mat-icon"),d(3,"model_training"),l(),d(4," LLM Models "),l(),r(5,"mat-dialog-content"),w(6,vw,2,1,"div",2),r(7,"h3",3)(8,"mat-icon"),d(9,"cloud"),l(),d(10," HuggingFace "),l(),w(11,bw,2,0,"div",4)(12,Bw,15,4),r(13,"h3",3)(14,"mat-icon"),d(15,"computer"),l(),d(16," LM Studio "),l(),w(17,zw,2,0,"div",5)(18,jw,2,0,"div",6)(19,qw,3,0,"div",7),l(),r(20,"mat-dialog-actions",8)(21,"button",9),D("click",function(){return n.close()}),d(22,"Close"),l()()()),t&2){let a;c(6),S((a=n.error())?6:-1,a),c(5),S(n.loading()?11:12),c(6),S(n.lmLoading()?17:n.lmModels().length===0?18:19)}},dependencies:[ke,Fe,je,Ui,it,ht,ft,pt,wi,Ji,ut,mt],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 Xw(i,o){if(i&1){let e=ve();r(0,"button",14),D("click",function(){oe(e);let n=y();return ae(n.openLlmModels())}),r(1,"mat-icon"),d(2,"model_training"),l(),r(3,"span"),d(4,"LLM Models"),l()()}}var lf=(()=>{class i{constructor(){this.systemInfo=Lo.required(),this.systemService=m(At),this.hfService=m(il),this.dialog=m(Xn),this.hfInstalled=T(!1)}ngOnInit(){this.hfService.getStatus().then(e=>this.hfInstalled.set(e.installed)).catch(()=>this.hfInstalled.set(!1))}openSystemInfo(){this.dialog.open(af,{disableClose:!1})}openLlmModels(){this.dialog.open(sf,{width:"760px",maxWidth:"95vw",disableClose:!1})}reboot(){return K(this,null,function*(){confirm("Reboot the server?")&&(yield this.systemService.reboot())})}shutdown(){return K(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=P({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&&(r(0,"div",1)(1,"mat-card",2)(2,"mat-card-content")(3,"div",3)(4,"mat-icon",4),d(5,"dynamic_feed"),l(),r(6,"div",5)(7,"div",6)(8,"span",7),d(9,"CPU"),l(),r(10,"span",8),d(11),l()(),r(12,"div",9),v(13,"div",10),l()()()()(),r(14,"mat-card",2)(15,"mat-card-content")(16,"div",3)(17,"mat-icon",4),d(18,"memory"),l(),r(19,"div",5)(20,"div",6)(21,"span",7),d(22,"RAM"),l(),r(23,"span",8),d(24),l()(),r(25,"div",9),v(26,"div",10),l()()()()(),r(27,"div",11)(28,"button",12)(29,"mat-icon"),d(30,"more_vert"),l()(),r(31,"mat-menu",13,0)(33,"button",14),D("click",function(){return n.reboot()}),r(34,"mat-icon"),d(35,"restart_alt"),l(),r(36,"span"),d(37,"Reboot server"),l()(),r(38,"button",14),D("click",function(){return n.shutdown()}),r(39,"mat-icon"),d(40,"power_settings_new"),l(),r(41,"span"),d(42,"Shutdown server"),l()(),v(43,"mat-divider"),r(44,"button",14),D("click",function(){return n.openSystemInfo()}),r(45,"mat-icon"),d(46,"info"),l(),r(47,"span"),d(48,"System info"),l()(),w(49,Xw,5,0,"button",15),l()()()),t&2){let a=Ce(32);c(10),Ge("color",n.colorForUsage(n.systemInfo().cpuUsage)),c(),J(" ",n.ceilCpu(n.systemInfo().cpuUsage),"% "),c(2),Ge("width",n.systemInfo().cpuUsage,"%")("background",n.colorForUsage(n.systemInfo().cpuUsage)),c(10),Ge("color",n.colorForUsage(n.systemInfo().memoryPercent)),c(),ii(" ",n.formatBytes(n.systemInfo().memoryUsed)," / ",n.formatBytes(n.systemInfo().memoryTotal)," "),c(2),Ge("width",n.systemInfo().memoryPercent,"%")("background",n.colorForUsage(n.systemInfo().memoryPercent)),c(2),x("matMenuTriggerFor",a),c(21),S(n.hfInstalled()?49:-1)}},dependencies:[ke,Nn,On,Fn,ut,mt,Fe,Ui,Gs,Yn,So,$s,da,ur,it],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 Yw(i,o){if(i&1&&(r(0,"div",8)(1,"mat-icon",10),d(2,"warning"),l(),d(3),l()),i&2){let e=y(2);c(3),J(" ",e.loginError()," ")}}function Zw(i,o){if(i&1){let e=ve();r(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"mat-icon",3),d(5,"lock"),l(),r(6,"h2"),d(7,"Authentication Required"),l(),r(8,"p",4),d(9,"Enter your system password to continue"),l()(),r(10,"form",5),D("submit",function(n){return oe(e),y().onLogin(),ae(n.preventDefault())}),r(11,"mat-form-field",6)(12,"mat-label"),d(13,"Password"),l(),r(14,"input",7),D("input",function(n){oe(e);let a=y();return ae(a.loginPassword.set(n.target.value))}),l()(),w(15,Yw,4,1,"div",8),r(16,"button",9),d(17,"Sign In"),l()()()()()}if(i&2){let e=y();c(14),x("value",e.loginPassword()),c(),S(e.loginError()?15:-1)}}function Qw(i,o){i&1&&v(0,"mat-progress-bar",11)}function Jw(i,o){if(i&1&&(r(0,"mat-card",14)(1,"mat-card-content")(2,"mat-icon",15),d(3," error_outline "),l(),r(4,"p"),d(5),l(),r(6,"p",4),d(7,"Make sure the backend is running on port 4242."),l()()()),i&2){let e=y(2);c(5),A(e.error())}}function e1(i,o){i&1&&(r(0,"mat-card",19)(1,"mat-card-content")(2,"p"),d(3,"No GPUs detected."),l(),r(4,"p",4),d(5," Ensure nvidia-smi or rocm-smi is available on this system. "),l()()())}function t1(i,o){if(i&1&&v(0,"app-gpu-table",20),i&2){let e=y(3);x("gpus",e.gpus())}}function i1(i,o){if(i&1){let e=ve();r(0,"div",16)(1,"div",17),v(2,"app-system-bar",18),w(3,e1,6,0,"mat-card",19)(4,t1,1,1,"app-gpu-table",20),l(),r(5,"div",21),D("mousedown",function(n){oe(e);let a=y(2);return ae(a.startGpuColDrag(n))}),v(6,"span",22),l(),r(7,"div",23),v(8,"app-services"),l()(),r(9,"div",24),D("mousedown",function(n){oe(e);let a=y(2);return ae(a.startJournalHeightDrag(n))}),v(10,"span",22),l(),r(11,"div",25),v(12,"app-journal-panel"),l()}if(i&2){let e=y(2);c(),Ge("width",e.gpuColWidth(),"px"),c(),x("systemInfo",e.systemInfo()),c(),S(e.hasGpus()?4:3),c(8),Ge("height",e.journalHeight(),"px")}}function n1(i,o){if(i&1&&(w(0,Qw,1,0,"mat-progress-bar",11),r(1,"div",12)(2,"div",13),w(3,Jw,8,1,"mat-card",14)(4,i1,13,6),l()()),i&2){let e=y();S(e.loading()?0:-1),c(),p("dragging",e.isDragging()),c(2),S(e.error()?3:4)}}var cf=160,df=800,o1=320,mf=360,uf=1400,a1=560,hf=(()=>{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>=cf&&n<=df&&this.journalHeight.set(n)}let t=localStorage.getItem("gpu-col-width");if(t){let n=parseInt(t,10);n>=mf&&n<=uf&&this.gpuColWidth.set(n)}}ngOnDestroy(){}onLogin(){return K(this,null,function*(){this.loginError.set(null);let e=yield this.authService.login(this.loginPassword());e.ok?(this.loading.set(!0),this.initGpus()):this.loginError.set(e.message)})}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,cf,df))}else if(this.dragTarget==="gpuColWidth"){let t=e.clientX-this.dragStartCoord;this.gpuColWidth.set(this.clamp(this.dragStartValue+t,mf,uf))}}}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=m($n),this.authService=m(Jr),this.gpus=T([]),this.systemInfo=T({cpuUsage:0,memoryTotal:0,memoryUsed:0,memoryPercent:0}),this.loading=T(!0),this.error=T(null),this.hasGpus=E(()=>this.gpus().length>0),this.isAuthenticated=T(this.authService.isAuthenticated()),this.loginPassword=T(""),this.loginError=T(null),this.journalHeight=T(o1),this.gpuColWidth=T(a1),this.isDragging=T(!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=>Ve(N({},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 s=t.get(a.pciBusId);return Ve(N({},a),{key:a.pciBusId,usage:s?.usage??0,temperature:s?.temperature??0,vramUsed:s?.vramUsed??0})}))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=P({type:i,selectors:[["app-root"]],hostBindings:function(t,n){t&1&&D("mousemove",function(s){return n.onDrag(s)},ul)("mouseup",function(){return n.onDragEnd()},ul)},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&&w(0,Zw,18,2,"div",0)(1,n1,5,4),t&2&&S(n.isAuthenticated()?1:0)},dependencies:[ke,wi,Ji,Nn,On,Fn,Et,Mt,rt,dt,Ct,Fe,je,ut,mt,Jh,nf,of,lf],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})();Bl(hf,Hm).catch(i=>console.error(i));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiservermanager",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "description": "GPU server monitoring and AI service manager web dashboard",
5
5
  "main": "backend/dist/index.js",
6
6
  "bin": {