@kosdev-code/kos-ui-sdk 0.1.0-dev.5168 → 0.1.0-dev.5170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -5,16 +5,16 @@ import C from "loglevel";
5
5
  import { runInAction as X, makeAutoObservable as Pe, observable as se, makeObservable as so, action as ro, createAtom as Eu, autorun as Ds, observe as Xi, isComputedProp as _u, reaction as xs, when as Ps, ObservableMap as no, computed as ea, isObservable as Tu } from "mobx";
6
6
  import { makeAutoObservable as FT, makeObservable as NT } from "mobx";
7
7
  import { createMachine as ms, invoke as De, state as Z, transition as D, action as q, interpret as ys, immediate as Pt } from "robot3";
8
- import { format as ct, parseISO as $u } from "date-fns";
8
+ import { format as lt, parseISO as $u } from "date-fns";
9
9
  import { jsx as w, jsxs as bs, Fragment as Iu } from "@emotion/react/jsx-runtime";
10
10
  import oo from "@emotion/styled";
11
11
  import { createPortal as ta } from "react-dom";
12
12
  import { keyframes as Ou, css as Ot } from "@emotion/react";
13
- import mt, { createContext as As, useContext as ut, useState as _, useCallback as re, useMemo as W, Suspense as Su, useEffect as S, useRef as qr, useReducer as Cu } from "react";
13
+ import mt, { createContext as As, useContext as dt, useState as _, useCallback as re, useMemo as W, Suspense as Su, useEffect as S, useRef as qr, useReducer as Cu } from "react";
14
14
  import { observer as sa } from "mobx-react-lite";
15
- import { observer as BT } from "mobx-react-lite";
15
+ import { observer as jT } from "mobx-react-lite";
16
16
  import { useGesture as Du } from "@use-gesture/react";
17
- const io = "method", xu = "topic", Rs = "url", Kr = "request-id", ao = "response-id", ra = "status", Xe = "dst-addr", Pu = "src-addr", qe = "type", na = "ordered", oa = "tracker", Au = "Content-Type", Ru = "Cache-Control", ku = "requestId", Lu = process.env.KOS_LOGIN_URL || "http://localhost", Fu = process.env.KOS_APP_PORT || "8080", LM = `${Lu}:${Fu}`, kn = "{MODEL_ID}";
17
+ const io = "method", xu = "topic", Rs = "url", Kr = "request-id", ao = "response-id", ra = "status", et = "dst-addr", Pu = "src-addr", Ke = "type", na = "ordered", oa = "tracker", Au = "Content-Type", Ru = "Cache-Control", ku = "requestId", Lu = process.env.KOS_LOGIN_URL || "http://localhost", Fu = process.env.KOS_APP_PORT || "8080", LM = `${Lu}:${Fu}`, kn = "{MODEL_ID}";
18
18
  var Vr = /* @__PURE__ */ ((t) => (t.SEND = "/ws/log/msg/send", t.RECEIVED = "/ws/log/msg/receive", t))(Vr || {}), Nu = /* @__PURE__ */ ((t) => (t.MSG_RECEIVE = "/mock/msg/receive", t))(Nu || {});
19
19
  const ia = "/kos/model/ready/";
20
20
  C.info("Initializing event bus");
@@ -59,7 +59,7 @@ function G(t, e, s = {}) {
59
59
  subscribers: r
60
60
  };
61
61
  }
62
- function Bu() {
62
+ function ju() {
63
63
  C.warn("Resetting event bus"), Object.keys(K).forEach((t) => delete K[t]);
64
64
  }
65
65
  function aa(t, e) {
@@ -84,7 +84,7 @@ const FM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
84
84
  hasEventSubscriptions: co,
85
85
  once: aa,
86
86
  publish: G,
87
- reset: Bu,
87
+ reset: ju,
88
88
  subscribe: O,
89
89
  waitFor: lo
90
90
  }, Symbol.toStringTag, { value: "Module" }));
@@ -236,7 +236,7 @@ async function* ba(t) {
236
236
  r.unsubscribe();
237
237
  }
238
238
  }
239
- const ju = {
239
+ const Bu = {
240
240
  once: Gr,
241
241
  waitFor: Yr,
242
242
  waitForAll: ca,
@@ -253,7 +253,7 @@ const ju = {
253
253
  eventIterator: ba
254
254
  }, NM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
255
255
  __proto__: null,
256
- EventBusFunctional: ju,
256
+ EventBusFunctional: Bu,
257
257
  buffer: pa,
258
258
  debounce: ha,
259
259
  eventIterator: ba,
@@ -445,7 +445,7 @@ const Hu = {
445
445
  subscribeWithInitialState: va,
446
446
  waitForAllWithState: ho,
447
447
  waitForOrGetState: Wr
448
- }, Symbol.toStringTag, { value: "Module" })), BM = (t, e = 0) => {
448
+ }, Symbol.toStringTag, { value: "Module" })), jM = (t, e = 0) => {
449
449
  if (!+t)
450
450
  return {
451
451
  value: 0,
@@ -486,7 +486,7 @@ function Gt() {
486
486
  return (t == "x" ? e : e & 3 | 8).toString(16);
487
487
  });
488
488
  }
489
- function jM(t, e) {
489
+ function BM(t, e) {
490
490
  e.forEach((s) => {
491
491
  Object.getOwnPropertyNames(s.prototype).forEach((r) => {
492
492
  const n = Object.getOwnPropertyDescriptor(
@@ -750,7 +750,7 @@ class QM {
750
750
  return this.extensions;
751
751
  }
752
752
  }
753
- const Ie = (t = null) => (t || window.location.search.replace("?", "")).split("&").map((e) => {
753
+ const Oe = (t = null) => (t || window.location.search.replace("?", "")).split("&").map((e) => {
754
754
  const [s, r] = e.split("=");
755
755
  return [s, decodeURIComponent(r || "")];
756
756
  }).reduce((e, [s, r]) => (e[s] = r, e), {}), Xu = "studio.tools.preview", ZM = "studio.relax.store.validation", ed = "studio.log.debug", td = "studio.log.info", sd = {
@@ -763,7 +763,7 @@ const Pa = xa, nd = () => Pa.profiles || [], Wo = (t) => nd().includes(t), JM =
763
763
  const t = Wo(ed), e = Wo(td);
764
764
  return t ? "DEBUG" : e ? "INFO" : void 0;
765
765
  }, id = () => {
766
- const t = Ie(), e = od(), r = t.kosLogLevel ?? e ?? window.kosLogLevel ?? process.env.KOS_LOG_LEVEL;
766
+ const t = Oe(), e = od(), r = t.kosLogLevel ?? e ?? window.kosLogLevel ?? process.env.KOS_LOG_LEVEL;
767
767
  return r || "WARN";
768
768
  }, ad = () => window.kosMessageLogging || process.env.KOS_MESSAGE_LOGGING === "true", cd = () => window.kosMessageStudioLogging || process.env.KOS_MESSAGE_STUDIO_LOGGING === "true", Aa = "ws-log", ld = C.methodFactory, Ra = ad(), ud = cd();
769
769
  C.methodFactory = function(t, e, s) {
@@ -807,14 +807,14 @@ const dd = [
807
807
  "text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3)",
808
808
  "box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 5px 3px -5px rgba(0, 0, 0, 0.5), 0 -13px 5px -10px rgba(255, 255, 255, 0.4) inset",
809
809
  "font-weight: bold"
810
- ].join(";"), js = (t) => (e) => {
810
+ ].join(";"), Bs = (t) => (e) => {
811
811
  C.getLevel() <= t && e();
812
812
  }, g = {
813
813
  ...C,
814
- ifDebug: js(C.levels.DEBUG),
815
- ifInfo: js(C.levels.INFO),
816
- ifWarn: js(C.levels.WARN),
817
- ifError: js(C.levels.ERROR),
814
+ ifDebug: Bs(C.levels.DEBUG),
815
+ ifInfo: Bs(C.levels.INFO),
816
+ ifWarn: Bs(C.levels.WARN),
817
+ ifError: Bs(C.levels.ERROR),
818
818
  getLogger: (t) => C.getLogger(`kos::${t}`),
819
819
  getLoggers: () => C.getLoggers(),
820
820
  createLogger: ({ name: t, group: e }) => {
@@ -900,9 +900,9 @@ const gd = window.KosFeatureFlags, md = (t, e, s) => {
900
900
  X(() => {
901
901
  Object.assign(e, r);
902
902
  });
903
- }, ae = Symbol("SubscriptionHandlers"), F = Symbol("DependencyModels"), nr = Symbol("FutureService"), lt = Symbol("ChildModels"), or = Symbol("ParentModel"), ir = Symbol("LogConfig"), bn = Symbol("ReferenceConfig"), La = Symbol("KosModelSymbol"), At = Symbol("ModelEffects"), dt = Symbol("CompanionParentModel"), Fa = Symbol("FutureContainerSetup"), Na = Symbol(
903
+ }, ae = Symbol("SubscriptionHandlers"), F = Symbol("DependencyModels"), nr = Symbol("FutureService"), ut = Symbol("ChildModels"), or = Symbol("ParentModel"), ir = Symbol("LogConfig"), bn = Symbol("ReferenceConfig"), La = Symbol("KosModelSymbol"), At = Symbol("ModelEffects"), ht = Symbol("CompanionParentModel"), Fa = Symbol("FutureContainerSetup"), Na = Symbol(
904
904
  "MultipleFutureContainerSetup"
905
- ), ar = Symbol("FutureAliases"), Ua = Symbol("TroubleAwareSetup"), Ba = Symbol("LoggerSetup"), ja = Symbol("ContainerAwareSetup"), Zr = Symbol("StateMachineSetup"), ps = Symbol("StateEntryHandlers"), cr = Symbol("StateExitHandlers"), tE = Symbol("StateActionHandlers"), Jr = Symbol("OptionsRequired"), wd = g.createLogger({ group: "decorators", name: "fsm-injection" });
905
+ ), ar = Symbol("FutureAliases"), Ua = Symbol("TroubleAwareSetup"), ja = Symbol("LoggerSetup"), Ba = Symbol("ContainerAwareSetup"), Zr = Symbol("StateMachineSetup"), ps = Symbol("StateEntryHandlers"), cr = Symbol("StateExitHandlers"), tE = Symbol("StateActionHandlers"), Jr = Symbol("OptionsRequired"), wd = g.createLogger({ group: "decorators", name: "fsm-injection" });
906
906
  function Md(t) {
907
907
  const e = t[Zr];
908
908
  if (!e)
@@ -1056,14 +1056,14 @@ function Ud(t, e) {
1056
1056
  if (!s)
1057
1057
  return;
1058
1058
  const { config: r, options: n } = s, { stateProperty: o } = n;
1059
- r.initializeAt === e && (t._fsmInitialized || (Bd(t, o, r.initial), t._fsmInitialized = !0, jd(t, r.initial, n), Hd(t, r.initial), wd.debug(
1059
+ r.initializeAt === e && (t._fsmInitialized || (jd(t, o, r.initial), t._fsmInitialized = !0, Bd(t, r.initial, n), Hd(t, r.initial), wd.debug(
1060
1060
  `FSM initialized for model ${t.id} at lifecycle ${e} with initial state "${r.initial}"`
1061
1061
  )));
1062
1062
  }
1063
- function Bd(t, e, s) {
1063
+ function jd(t, e, s) {
1064
1064
  t[e] = s;
1065
1065
  }
1066
- function jd(t, e, s) {
1066
+ function Bd(t, e, s) {
1067
1067
  s.trackHistory && t.stateHistory && t.stateHistory.push({
1068
1068
  state: e,
1069
1069
  timestamp: /* @__PURE__ */ new Date()
@@ -1073,8 +1073,8 @@ function Hd(t, e) {
1073
1073
  const r = (t.constructor.prototype[ps] || /* @__PURE__ */ new Map()).get(e);
1074
1074
  r && typeof t[r] == "function" && t[r]();
1075
1075
  }
1076
- const Ke = (t, e) => {
1077
- t[lt] = t[lt] || {}, t[lt][e] = !0;
1076
+ const Ve = (t, e) => {
1077
+ t[ut] = t[ut] || {}, t[ut][e] = !0;
1078
1078
  }, Yt = (t) => `{PROP_${String(t)}}`, sE = (t) => `{PROP_${String(t)}}`, zd = Yt("kosParentId"), po = (t) => (e) => {
1079
1079
  e[or] = e[or] || {};
1080
1080
  const s = (t == null ? void 0 : t.parentId) || zd;
@@ -1083,7 +1083,7 @@ const Ke = (t, e) => {
1083
1083
  function rE(t) {
1084
1084
  return (e) => {
1085
1085
  const s = (t == null ? void 0 : t.mode) || "decorator", r = (t == null ? void 0 : t.parentProperty) || "companionParent", n = (t == null ? void 0 : t.excludeProperties) || [], o = t == null ? void 0 : t.lifecycle;
1086
- return po()(e), e.prototype[dt] = {
1086
+ return po()(e), e.prototype[ht] = {
1087
1087
  mode: s,
1088
1088
  parentProperty: r,
1089
1089
  excludeProperties: n,
@@ -1094,7 +1094,7 @@ function rE(t) {
1094
1094
  function qd(t) {
1095
1095
  return (e) => {
1096
1096
  const s = t != null && t.legacy ? "_models" : (t == null ? void 0 : t.containerProperty) || "container", r = (t == null ? void 0 : t.includeMethods) !== !1, n = (t == null ? void 0 : t.includeGetters) !== !1, o = (t == null ? void 0 : t.modelsProperty) || "models", i = (t == null ? void 0 : t.containerOptions) || {};
1097
- return e.prototype[ja] = {
1097
+ return e.prototype[Ba] = {
1098
1098
  containerProperty: s,
1099
1099
  includeMethods: r,
1100
1100
  includeGetters: n,
@@ -1133,22 +1133,22 @@ function iE(t) {
1133
1133
  }, e;
1134
1134
  };
1135
1135
  }
1136
- var x = /* @__PURE__ */ ((t) => (t.INIT = "init", t.LOAD = "load", t.READY = "ready", t.ACTIVATE = "activate", t.ONLINE = "online", t))(x || {}), ot = /* @__PURE__ */ ((t) => (t.CREATE = "create", t.CONTINUE = "continue", t.FAIL = "fail", t))(ot || {});
1136
+ var x = /* @__PURE__ */ ((t) => (t.INIT = "init", t.LOAD = "load", t.READY = "ready", t.ACTIVATE = "activate", t.ONLINE = "online", t))(x || {}), it = /* @__PURE__ */ ((t) => (t.CREATE = "create", t.CONTINUE = "continue", t.FAIL = "fail", t))(it || {});
1137
1137
  const aE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1138
1138
  __proto__: null,
1139
1139
  DependencyLifecycle: x,
1140
- DependencyResolutionPolicy: ot
1141
- }, Symbol.toStringTag, { value: "Module" })), Qe = Symbol("HttpRouteHandlers"), Zo = "__httpBrowserRouter";
1140
+ DependencyResolutionPolicy: it
1141
+ }, Symbol.toStringTag, { value: "Module" })), Ze = Symbol("HttpRouteHandlers"), Zo = "__httpBrowserRouter";
1142
1142
  function Xr(t) {
1143
1143
  return function(s) {
1144
1144
  return function(r, n, o) {
1145
- r[Qe] = r[Qe] || [];
1145
+ r[Ze] = r[Ze] || [];
1146
1146
  const i = {
1147
1147
  method: t,
1148
1148
  path: s,
1149
1149
  handler: n
1150
1150
  };
1151
- return r[Qe].push(i), r[F] = r[F] || {}, r[F][Zo] || (r[F][Zo] = {
1151
+ return r[Ze].push(i), r[F] = r[F] || {}, r[F][Zo] || (r[F][Zo] = {
1152
1152
  modelType: "browser-router-model",
1153
1153
  // This is the MODEL_TYPE from BrowserRouter
1154
1154
  lifecycle: x.INIT
@@ -1158,10 +1158,10 @@ function Xr(t) {
1158
1158
  }
1159
1159
  const Kd = Xr("GET"), en = Xr("POST"), cE = Xr("PUT"), Vd = Xr("DELETE"), lE = Vd;
1160
1160
  function Ln(t) {
1161
- return !!(t != null && t[Qe]) && t[Qe].length > 0;
1161
+ return !!(t != null && t[Ze]) && t[Ze].length > 0;
1162
1162
  }
1163
1163
  function Gd(t) {
1164
- return (t == null ? void 0 : t[Qe]) || [];
1164
+ return (t == null ? void 0 : t[Ze]) || [];
1165
1165
  }
1166
1166
  const uE = ({ group: t } = { group: "" }) => (e) => {
1167
1167
  e[ir] = e[ir] || {}, e[ir] = { group: t };
@@ -1175,7 +1175,7 @@ class za {
1175
1175
  function Yd(t) {
1176
1176
  return (e) => {
1177
1177
  const s = (t == null ? void 0 : t.loggerProperty) || "logger", r = t == null ? void 0 : t.loggerContext;
1178
- e.prototype[Ba] = {
1178
+ e.prototype[ja] = {
1179
1179
  loggerProperty: s,
1180
1180
  loggerContext: r
1181
1181
  };
@@ -1212,7 +1212,7 @@ function Wd(t) {
1212
1212
  }
1213
1213
  const dE = (t) => (e, s) => {
1214
1214
  e[bn] = e[bn] || {}, e[bn][s] = t;
1215
- }, vn = g.createLogger({ name: "resolve-parameters" }), _e = ({
1215
+ }, vn = g.createLogger({ name: "resolve-parameters" }), Te = ({
1216
1216
  value: t,
1217
1217
  modelId: e,
1218
1218
  modelData: s
@@ -1223,7 +1223,7 @@ const dE = (t) => (e, s) => {
1223
1223
  if (typeof r != "string" && typeof r != "object")
1224
1224
  return r;
1225
1225
  if (typeof r == "object")
1226
- r = Object.keys(r).reduce((n, o) => (n[o] = _e({
1226
+ r = Object.keys(r).reduce((n, o) => (n[o] = Te({
1227
1227
  value: r[o],
1228
1228
  modelId: e,
1229
1229
  modelData: s
@@ -1272,7 +1272,7 @@ function Wt(t) {
1272
1272
  if (!p)
1273
1273
  throw new Error("Service request metadata not found for method");
1274
1274
  try {
1275
- const { default: m } = await Promise.resolve().then(() => ec), b = _e({
1275
+ const { default: m } = await Promise.resolve().then(() => ec), b = Te({
1276
1276
  value: p.path,
1277
1277
  modelId: this.id,
1278
1278
  modelData: this
@@ -1287,22 +1287,22 @@ function Wt(t) {
1287
1287
  ...(f == null ? void 0 : f.requestOptions) || {}
1288
1288
  }, E = {};
1289
1289
  Object.keys(v).length > 0 && (E.path = v), Object.keys(M).length > 0 && (E.query = M);
1290
- const V = (p.method || "get").toLowerCase(), B = m, [te, Ye] = V === "get" ? await B.get(b, E, $) : V === "post" ? await B.post(
1290
+ const V = (p.method || "get").toLowerCase(), j = m, [te, We] = V === "get" ? await j.get(b, E, $) : V === "post" ? await j.post(
1291
1291
  b,
1292
1292
  E,
1293
1293
  k,
1294
1294
  $
1295
- ) : V === "put" ? await B.put(
1295
+ ) : V === "put" ? await j.put(
1296
1296
  b,
1297
1297
  E,
1298
1298
  k,
1299
1299
  $
1300
- ) : V === "delete" ? await B.delete(
1300
+ ) : V === "delete" ? await j.delete(
1301
1301
  b,
1302
1302
  E,
1303
1303
  k,
1304
1304
  $
1305
- ) : await B.get(b, E, $);
1305
+ ) : await j.get(b, E, $);
1306
1306
  if (te) {
1307
1307
  if (p.errorHandler)
1308
1308
  switch (p.errorHandler.strategy) {
@@ -1321,8 +1321,8 @@ function Wt(t) {
1321
1321
  }
1322
1322
  return [te, null];
1323
1323
  }
1324
- let We = Ye;
1325
- return p.transform && (We = p.transform(Ye)), [null, We];
1324
+ let Qe = We;
1325
+ return p.transform && (Qe = p.transform(We)), [null, Qe];
1326
1326
  } catch (m) {
1327
1327
  return [m.message || "Unknown error", null];
1328
1328
  }
@@ -1342,7 +1342,7 @@ function Wt(t) {
1342
1342
  return r;
1343
1343
  };
1344
1344
  }
1345
- var Qd = /* @__PURE__ */ ((t) => (t.GET = "GET", t.PUT = "PUT", t.POST = "POST", t.DELETE = "DELETE", t))(Qd || {}), ye = /* @__PURE__ */ ((t) => (t.IMMEDIATE = "immediate", t.SINGLE = "single", t.TTL = "ttl", t.PERMANENT = "permanent", t.MANUAL = "manual", t))(ye || {}), Dt = /* @__PURE__ */ ((t) => (t.ALL = "all", t.AFTER_REQUEST = "after-request", t.AFTER_RESPONSE = "after-response", t.NONE = "none", t))(Dt || {});
1345
+ var Qd = /* @__PURE__ */ ((t) => (t.GET = "GET", t.PUT = "PUT", t.POST = "POST", t.DELETE = "DELETE", t))(Qd || {}), be = /* @__PURE__ */ ((t) => (t.IMMEDIATE = "immediate", t.SINGLE = "single", t.TTL = "ttl", t.PERMANENT = "permanent", t.MANUAL = "manual", t))(be || {}), Dt = /* @__PURE__ */ ((t) => (t.ALL = "all", t.AFTER_REQUEST = "after-request", t.AFTER_RESPONSE = "after-response", t.NONE = "none", t))(Dt || {});
1346
1346
  const Zd = g.createLogger({ name: "kos-state-machine" });
1347
1347
  function hE(t, e) {
1348
1348
  return (s) => (s.prototype[Zr] = {
@@ -1575,7 +1575,7 @@ function th(t, e) {
1575
1575
  }
1576
1576
  });
1577
1577
  }
1578
- const Ue = (t) => {
1578
+ const je = (t) => {
1579
1579
  const e = th(qa, t);
1580
1580
  return new e(t);
1581
1581
  };
@@ -1588,7 +1588,7 @@ class Ka {
1588
1588
  l(this, "_map");
1589
1589
  l(this, "_key");
1590
1590
  l(this, "data");
1591
- this._container = e, this._map = se.map(/* @__PURE__ */ new Map()), this._key = s, this.data = Ue(), this.generateIndex(), Ds(() => {
1591
+ this._container = e, this._map = se.map(/* @__PURE__ */ new Map()), this._key = s, this.data = je(), this.generateIndex(), Ds(() => {
1592
1592
  this._container.revision && this.generateIndex();
1593
1593
  }), Pe(this);
1594
1594
  }
@@ -1652,8 +1652,8 @@ function rh(t, e, s = []) {
1652
1652
  )
1653
1653
  );
1654
1654
  }
1655
- const Se = g.createLogger({ name: "kos-container-model" });
1656
- class Ve {
1655
+ const le = g.createLogger({ name: "kos-container-model" });
1656
+ class Ge {
1657
1657
  constructor(e) {
1658
1658
  l(this, "_data");
1659
1659
  l(this, "_sortKey");
@@ -1678,7 +1678,7 @@ class Ve {
1678
1678
  ) : {}, r = (e == null ? void 0 : e.indexMap) || {};
1679
1679
  this._optionsMap = { ...r, ...s };
1680
1680
  const n = e != null && e.indexMap ? Object.keys(e.indexMap).reduce((o, i) => (o[i] = void 0, o), {}) : {};
1681
- this._index = se.map(n), this.idx = Ue(), this._parentId = e == null ? void 0 : e.parentId, this._maxCapacity = e == null ? void 0 : e.maxCapacity, this._evictionStrategy = (e == null ? void 0 : e.evictionStrategy) || "fifo", this._evictionBatchSize = (e == null ? void 0 : e.evictionBatchSize) ?? Math.max(10, Math.ceil(((e == null ? void 0 : e.maxCapacity) ?? 100) * 0.1)), this._customEvictionFilter = e == null ? void 0 : e.customEvictionFilter, this._evictionStrategy === "lru" && this._maxCapacity && (this._accessTimes = se.map(/* @__PURE__ */ new Map())), Pe(this), this.init();
1681
+ this._index = se.map(n), this.idx = je(), this._parentId = e == null ? void 0 : e.parentId, this._maxCapacity = e == null ? void 0 : e.maxCapacity, this._evictionStrategy = (e == null ? void 0 : e.evictionStrategy) || "fifo", this._evictionBatchSize = (e == null ? void 0 : e.evictionBatchSize) ?? Math.max(10, Math.ceil(((e == null ? void 0 : e.maxCapacity) ?? 100) * 0.1)), this._customEvictionFilter = e == null ? void 0 : e.customEvictionFilter, this._evictionStrategy === "lru" && this._maxCapacity && (this._accessTimes = se.map(/* @__PURE__ */ new Map())), Pe(this), this.init();
1682
1682
  }
1683
1683
  init() {
1684
1684
  Object.keys(this._optionsMap).forEach((e) => {
@@ -1729,6 +1729,66 @@ class Ve {
1729
1729
  e.forEach((s) => this.removeModel(s, !0)), this.increment();
1730
1730
  });
1731
1731
  }
1732
+ /**
1733
+ * Remove a model from the container and destroy it.
1734
+ * This is a convenience method that combines removeModel() and destroyKosModel().
1735
+ *
1736
+ * Use this when:
1737
+ * - The model is being permanently removed from the system
1738
+ * - The model should be cleaned up and disposed
1739
+ *
1740
+ * Use removeModel() alone when:
1741
+ * - Moving models between containers
1742
+ * - Temporarily removing without destroying
1743
+ * - Managing models that may be re-added later
1744
+ *
1745
+ * @param id - The unique identifier of the model to remove and destroy
1746
+ */
1747
+ async removeAndDestroy(e) {
1748
+ const s = this.getModel(e);
1749
+ if (!s) {
1750
+ le.debug(`Model ${e} not found in container, skipping destroy`);
1751
+ return;
1752
+ }
1753
+ this.removeModel(e);
1754
+ try {
1755
+ await Ue(s);
1756
+ } catch (r) {
1757
+ throw le.error(`Failed to destroy model ${e}:`, r), r;
1758
+ }
1759
+ }
1760
+ /**
1761
+ * Remove multiple models from the container and destroy them.
1762
+ * This is a convenience method that combines removeAll() and destroyKosModel().
1763
+ *
1764
+ * Operations are performed in parallel for efficiency, but each destruction
1765
+ * is independent - failures in one won't prevent others from being destroyed.
1766
+ *
1767
+ * @param ids - Array of unique identifiers of the models to remove and destroy
1768
+ * @returns Promise that resolves when all models have been removed and destroyed
1769
+ */
1770
+ async removeAndDestroyAll(e) {
1771
+ const s = e.map((o) => this.getModel(o)).filter((o) => o !== void 0);
1772
+ if (s.length === 0) {
1773
+ le.debug("No models found to destroy");
1774
+ return;
1775
+ }
1776
+ this.removeAll(e);
1777
+ const r = await Promise.allSettled(
1778
+ s.map((o) => Ue(o))
1779
+ );
1780
+ r.forEach((o, i) => {
1781
+ o.status === "rejected" && le.error(
1782
+ `Failed to destroy model ${s[i].id}:`,
1783
+ o.reason
1784
+ );
1785
+ });
1786
+ const n = r.filter((o) => o.status === "rejected");
1787
+ if (n.length > 0)
1788
+ throw new Error(
1789
+ `Failed to destroy ${n.length} of ${s.length} models`
1790
+ );
1791
+ }
1732
1792
  /**
1733
1793
  * Add a model to the container (Zone 2: Workflow orchestration)
1734
1794
  *
@@ -1806,20 +1866,20 @@ class Ve {
1806
1866
  return s && this._accessTimes && this._accessTimes.set(e, Date.now()), s;
1807
1867
  }
1808
1868
  getIndexKeys(e) {
1809
- return this.index.has(e) ? this.index.get(e).keys ?? [] : (Se.info(
1869
+ return this.index.has(e) ? this.index.get(e).keys ?? [] : (le.info(
1810
1870
  `index ${e} not found in ${Array.from(this.index.keys())}`
1811
1871
  ), []);
1812
1872
  }
1813
1873
  getIndexByKey(e, s) {
1814
1874
  if (this.index.has(e)) {
1815
1875
  const r = this.index.get(e);
1816
- return r.index.has(s) ? r.getByKey(s) : (Se.info(
1876
+ return r.index.has(s) ? r.getByKey(s) : (le.info(
1817
1877
  `key ${s} not found in ${e} index: ${Array.from(
1818
1878
  r.index.keys()
1819
1879
  )}`
1820
1880
  ), []);
1821
1881
  } else
1822
- return Se.info(
1882
+ return le.info(
1823
1883
  `index ${e} not found in ${Array.from(this.index.keys())}`
1824
1884
  ), [];
1825
1885
  }
@@ -1844,7 +1904,7 @@ class Ve {
1844
1904
  * @private
1845
1905
  */
1846
1906
  _logCapacityWarning(e) {
1847
- Se.warn(
1907
+ le.warn(
1848
1908
  `Container capacity exceeded (${this._data.size}/${this._maxCapacity}). Evicting ${e} models using ${this._evictionStrategy} strategy. This may indicate missing cleanup handlers or data inconsistency.`,
1849
1909
  { parentId: this._parentId }
1850
1910
  );
@@ -1896,7 +1956,7 @@ class Ve {
1896
1956
  * @private
1897
1957
  */
1898
1958
  _selectCustomModels(e) {
1899
- return this._customEvictionFilter ? this._customEvictionFilter(this.data).slice(0, e) : (Se.error(
1959
+ return this._customEvictionFilter ? this._customEvictionFilter(this.data).slice(0, e) : (le.error(
1900
1960
  "Custom eviction strategy specified but no customEvictionFilter provided. Falling back to FIFO.",
1901
1961
  { parentId: this._parentId }
1902
1962
  ), this._selectFifoModels(e));
@@ -1907,15 +1967,15 @@ class Ve {
1907
1967
  */
1908
1968
  async _removeEvictedModels(e) {
1909
1969
  for (const s of e)
1910
- Se.warn(
1970
+ le.warn(
1911
1971
  `Evicting model: ${s.id} (type: ${s.constructor.name})`,
1912
1972
  {
1913
1973
  modelId: s.id,
1914
1974
  parentId: this._parentId,
1915
1975
  strategy: this._evictionStrategy
1916
1976
  }
1917
- ), this.removeModel(s.id, !0), ht(s).catch(
1918
- (r) => Se.error(`Failed to destroy evicted model ${s.id}:`, r)
1977
+ ), this.removeModel(s.id, !0), Ue(s).catch(
1978
+ (r) => le.error(`Failed to destroy evicted model ${s.id}:`, r)
1919
1979
  );
1920
1980
  }
1921
1981
  /**
@@ -1923,7 +1983,7 @@ class Ve {
1923
1983
  * @private
1924
1984
  */
1925
1985
  _logEvictionComplete(e) {
1926
- Se.info(
1986
+ le.info(
1927
1987
  `Evicted ${e} models. Current size: ${this._data.size}/${this._maxCapacity}`,
1928
1988
  { parentId: this._parentId }
1929
1989
  );
@@ -1931,9 +1991,9 @@ class Ve {
1931
1991
  async clear() {
1932
1992
  this._data.forEach((e) => {
1933
1993
  const s = e.id;
1934
- ht(e).then(() => {
1935
- Se.debug(`${s} destroyed, removing from map`), this.removeModel(s, !0);
1936
- }).catch((r) => Se.error(r));
1994
+ Ue(e).then(() => {
1995
+ le.debug(`${s} destroyed, removing from map`), this.removeModel(s, !0);
1996
+ }).catch((r) => le.error(r));
1937
1997
  }), this.increment();
1938
1998
  }
1939
1999
  filter(e, s) {
@@ -1959,7 +2019,7 @@ class Ve {
1959
2019
  }
1960
2020
  }
1961
2021
  var y = /* @__PURE__ */ ((t) => (t.CREATING = "creating", t.CREATED = "created", t.INITIALIZING = "initializing", t.INITIALIZED = "initialized", t.LOADING = "loading", t.LOADED = "loaded", t.ONLINE = "online", t.READYING = "readying", t.READY = "ready", t.READY_FAILED = "ready_failed", t.RESETTING = "resetting", t.RESET = "reset", t.OFFLINE = "offline", t.UNLOADING = "unloading", t.UNLOADED = "unloaded", t.FAILED = "failed", t.INACTIVE = "inactive", t.ACTIVE = "active", t.ACTIVATING = "activating", t.DEACTIVATING = "deactivating", t))(y || {}), L = /* @__PURE__ */ ((t) => (t.CREATE = "create", t.INITIALIZE = "init", t.LOAD = "load", t.READY = "ready", t.GO_ONLINE = "go_online", t.GO_OFFLINE = "go_offline", t.RESET = "go_offline", t.UNLOAD = "unload", t.FAILED = "failed", t.GO_ACTIVE = "go_active", t.GO_INACTIVE = "go_inactive", t.TIMEOUT = "timeout", t))(L || {});
1962
- const we = async (t) => {
2022
+ const Me = async (t) => {
1963
2023
  if (t.id) {
1964
2024
  const e = T.getInstance().modelManager.getModelById(t.id);
1965
2025
  if (!e)
@@ -1968,7 +2028,7 @@ const we = async (t) => {
1968
2028
  } else
1969
2029
  throw new Error("Data model must have a valid ID");
1970
2030
  return t;
1971
- }, ht = async (t) => {
2031
+ }, Ue = async (t) => {
1972
2032
  await T.getInstance().whenReady(), await T.getInstance().modelManager.initiateDestroyModel(t);
1973
2033
  }, yE = async (t) => {
1974
2034
  if (await T.getInstance().whenReady(), !t.id)
@@ -1978,7 +2038,7 @@ const we = async (t) => {
1978
2038
  }, bE = async (t) => {
1979
2039
  await T.getInstance().whenReady(), await T.getInstance().modelManager.reloadModel(t), g.debug(
1980
2040
  `reload model initiated for model ${t.id}, model ready: ${Fn(t)} - ${Date.now()} `
1981
- ), await we(t), g.debug(
2041
+ ), await Me(t), g.debug(
1982
2042
  `reload model complete for model ${t.id}, model ready: ${Fn(t)} - ${Date.now()} `
1983
2043
  );
1984
2044
  }, vE = async (t) => {
@@ -2052,7 +2112,7 @@ const we = async (t) => {
2052
2112
  ), Error(`No factory found for model type ${e}`);
2053
2113
  return r.build(t, s);
2054
2114
  }
2055
- }, pe = {
2115
+ }, ge = {
2056
2116
  Factory: {
2057
2117
  create: (t) => (e) => (s, r) => (r && J.setParentContext(e, r), lr.getModelInstance(
2058
2118
  e,
@@ -2149,12 +2209,12 @@ class Va {
2149
2209
  P.model.register({})(this.registration()), this.registerRelatedModels();
2150
2210
  }
2151
2211
  }
2152
- class Oe extends Va {
2212
+ class Se extends Va {
2153
2213
  constructor(e) {
2154
2214
  super({
2155
2215
  ...e,
2156
2216
  singleton: !1,
2157
- factory: pe.Factory.create(e.type)
2217
+ factory: ge.Factory.create(e.type)
2158
2218
  });
2159
2219
  }
2160
2220
  instance(e) {
@@ -2214,7 +2274,7 @@ class Re extends Va {
2214
2274
  super({
2215
2275
  ...e,
2216
2276
  singleton: !0,
2217
- factory: pe.Singleton.create(e.type)
2277
+ factory: ge.Singleton.create(e.type)
2218
2278
  });
2219
2279
  }
2220
2280
  instance() {
@@ -2281,7 +2341,7 @@ function uh(t, e, s) {
2281
2341
  const r = (o = t[or]) == null ? void 0 : o.parentId;
2282
2342
  if (!r)
2283
2343
  return;
2284
- const n = _e({
2344
+ const n = Te({
2285
2345
  value: r,
2286
2346
  modelData: s,
2287
2347
  modelId: e
@@ -2297,12 +2357,12 @@ function dh(t) {
2297
2357
  function hh(t, e) {
2298
2358
  const s = t[F] || {};
2299
2359
  Object.entries(s).forEach(([r, n]) => {
2300
- const o = _e({
2360
+ const o = Te({
2301
2361
  value: n.id || n.modelType,
2302
2362
  modelData: t,
2303
2363
  modelId: e
2304
2364
  }), i = Object.entries((n == null ? void 0 : n.options) || {}).reduce(
2305
- (a, [c, u]) => (a[c] = _e({
2365
+ (a, [c, u]) => (a[c] = Te({
2306
2366
  value: u,
2307
2367
  modelData: t,
2308
2368
  modelId: e
@@ -2481,7 +2541,7 @@ function gh(t) {
2481
2541
  });
2482
2542
  }
2483
2543
  function mh(t, e) {
2484
- const s = t[ja];
2544
+ const s = t[Ba];
2485
2545
  if (!s)
2486
2546
  return;
2487
2547
  const {
@@ -2495,12 +2555,16 @@ function mh(t, e) {
2495
2555
  ...a,
2496
2556
  // If parentId is not provided, use the modelId (first constructor parameter)
2497
2557
  parentId: a.parentId || e
2498
- }, d = new Ve(u);
2499
- t[r] = d, t[lt] || (t[lt] = {}), t[lt][r] = d, n && (t.getModel = (h) => d.getModel(h), t.addModel = (h) => {
2558
+ }, d = new Ge(u);
2559
+ t[r] = d, t[ut] || (t[ut] = {}), t[ut][r] = d, n && (t.getModel = (h) => d.getModel(h), t.addModel = (h) => {
2500
2560
  d.addModel(h);
2501
2561
  }, t.removeModel = (h) => {
2502
2562
  d.removeModel(h);
2503
- }), o && (Object.defineProperty(t, i, {
2563
+ }, t.addAll = (h) => {
2564
+ d.addAll(h);
2565
+ }, t.removeAll = (h) => {
2566
+ d.removeAll(h);
2567
+ }, t.removeAndDestroy = async (h) => d.removeAndDestroy(h), t.removeAndDestroyAll = async (h) => d.removeAndDestroyAll(h)), o && (Object.defineProperty(t, i, {
2504
2568
  get() {
2505
2569
  return d;
2506
2570
  },
@@ -2515,7 +2579,7 @@ function mh(t, e) {
2515
2579
  }));
2516
2580
  }
2517
2581
  function yh(t, e) {
2518
- const s = t.constructor.prototype[dt];
2582
+ const s = t.constructor.prototype[ht];
2519
2583
  if (!s)
2520
2584
  return;
2521
2585
  const { mode: r, parentProperty: n, excludeProperties: o } = s, i = e[n];
@@ -2594,7 +2658,7 @@ const vh = {
2594
2658
  var c;
2595
2659
  const [s, r = {}] = e, n = J.createContext(s);
2596
2660
  uh(t, s, r);
2597
- const i = !!t.prototype[Ba] ? null : g.createLogger({
2661
+ const i = !!t.prototype[ja] ? null : g.createLogger({
2598
2662
  name: t.prototype.modelTypeId,
2599
2663
  group: ((c = t[ir]) == null ? void 0 : c.group) ?? "kos-model"
2600
2664
  }), a = new t(s, r, {
@@ -2617,7 +2681,7 @@ function R(t) {
2617
2681
  r.singleton ? a = new Re({
2618
2682
  class: n,
2619
2683
  type: r.modelTypeId
2620
- }) : a = new Oe({
2684
+ }) : a = new Se({
2621
2685
  class: n,
2622
2686
  type: r.modelTypeId
2623
2687
  }), Object.defineProperty(n, "Registration", {
@@ -2946,7 +3010,7 @@ function si(t, e) {
2946
3010
  });
2947
3011
  }
2948
3012
  const Uh = (t) => typeof t == "function", qs = g.createLogger({ name: "kos-companion-instantiator" });
2949
- class Bh {
3013
+ class jh {
2950
3014
  constructor(e, s, r) {
2951
3015
  this.registry = e, this.cache = s, this.createModel = r;
2952
3016
  }
@@ -3020,7 +3084,7 @@ class Bh {
3020
3084
  const s = this.registry.models[e];
3021
3085
  if (!(s != null && s.class))
3022
3086
  return;
3023
- const r = s.class.prototype[dt];
3087
+ const r = s.class.prototype[ht];
3024
3088
  return r == null ? void 0 : r.lifecycle;
3025
3089
  }
3026
3090
  /**
@@ -3082,10 +3146,10 @@ class Bh {
3082
3146
  * Attach companion to parent model
3083
3147
  */
3084
3148
  attachCompanionToParent(e, s) {
3085
- e[dt] = s, s.addCompanionModel(e);
3149
+ e[ht] = s, s.addCompanionModel(e);
3086
3150
  }
3087
3151
  }
3088
- function jh(t, e) {
3152
+ function Bh(t, e) {
3089
3153
  return `${ia}${t}${e ? `/${e}` : `/${t}`}`;
3090
3154
  }
3091
3155
  function Hh(t) {
@@ -3152,17 +3216,17 @@ const Qa = (t, e, s) => {
3152
3216
  }
3153
3217
  }, Qh = (t, e) => {
3154
3218
  var f;
3155
- const s = e.id || e.modelType, r = _e({
3219
+ const s = e.id || e.modelType, r = Te({
3156
3220
  value: s,
3157
3221
  modelData: t.modelData,
3158
3222
  modelId: t.modelId
3159
- }), n = e.resolutionPolicy || ot.CREATE;
3223
+ }), n = e.resolutionPolicy || it.CREATE;
3160
3224
  g.debug(
3161
3225
  `Resolving dependent model ${e.modelType} with id ${r} (policy: ${n})`
3162
3226
  );
3163
3227
  const o = Object.keys((e == null ? void 0 : e.options) || {}).reduce((p, m) => {
3164
3228
  const b = e.options[m];
3165
- return p[m] = _e({
3229
+ return p[m] = Te({
3166
3230
  value: b,
3167
3231
  modelData: t.modelData,
3168
3232
  modelId: t.modelId
@@ -3178,7 +3242,7 @@ const Qa = (t, e, s) => {
3178
3242
  - Parent Model: ${t.modelTypeName}
3179
3243
  - Parent Model ID: ${t.modelId}
3180
3244
  - Error: ${p}`
3181
- ), n === ot.CONTINUE)
3245
+ ), n === it.CONTINUE)
3182
3246
  return g.warn(
3183
3247
  `Model type not registered (policy: CONTINUE) - Model ${t.modelId} will continue without dependency ${e.modelType} [${r}]`
3184
3248
  ), { dependentModel: null, dataModelId: r, success: !1 };
@@ -3199,7 +3263,7 @@ const Qa = (t, e, s) => {
3199
3263
  - Parent Model ID: ${t.modelId}
3200
3264
  - Found Model Type: ${c.modelTypeName}
3201
3265
  - Error: ${p}`
3202
- ), n === ot.CONTINUE)
3266
+ ), n === it.CONTINUE)
3203
3267
  return g.warn(
3204
3268
  `Model type mismatch (policy: CONTINUE) - Model ${t.modelId} will continue without dependency`
3205
3269
  ), { dependentModel: null, dataModelId: r, success: !1 };
@@ -3217,7 +3281,7 @@ const Qa = (t, e, s) => {
3217
3281
  }
3218
3282
  if (g.debug(
3219
3283
  `Model ${e.modelType} [${r}] does not exist. Applying resolution policy: ${n}`
3220
- ), n === ot.CONTINUE)
3284
+ ), n === it.CONTINUE)
3221
3285
  return g.warn(
3222
3286
  `Model ${e.modelType} [${r}] not found (policy: CONTINUE) - Model ${t.modelId} will continue without this dependency`
3223
3287
  ), { dependentModel: null, dataModelId: r, success: !1 };
@@ -3258,7 +3322,7 @@ const Qa = (t, e, s) => {
3258
3322
  - Parent Model ID: ${t.modelId}
3259
3323
  - Provided Options: ${JSON.stringify(o, null, 2)}
3260
3324
  - Error: ${m}`
3261
- ), n === ot.FAIL ? new Error(
3325
+ ), n === it.FAIL ? new Error(
3262
3326
  `Dependency resolution failed (policy: FAIL) - Model ${t.modelId} cannot resolve dependency ${e.modelType} [${r}]: ${m}`
3263
3327
  ) : p;
3264
3328
  }
@@ -3533,7 +3597,7 @@ class sf {
3533
3597
  }
3534
3598
  getResolvedDecoratedChildren() {
3535
3599
  var s;
3536
- const e = ((s = this.model.modelData) == null ? void 0 : s[lt]) || {};
3600
+ const e = ((s = this.model.modelData) == null ? void 0 : s[ut]) || {};
3537
3601
  return Object.keys(e).map((r) => Wh(this.model.modelData[r])).filter((r) => !!r).flat();
3538
3602
  }
3539
3603
  getAdditionalChildren() {
@@ -4176,7 +4240,7 @@ class pf {
4176
4240
  this.unsubscribers.forEach((e) => e()), this.unsubscribers = [];
4177
4241
  }
4178
4242
  }
4179
- const gf = () => ({ isMock: !1, URL: ge }), mf = g.createLogger({ name: "kos-service-request" }), yf = "errUnknown";
4243
+ const gf = () => ({ isMock: !1, URL: me }), mf = g.createLogger({ name: "kos-service-request" }), yf = "errUnknown";
4180
4244
  async function Vs(t, e, s, r, n) {
4181
4245
  const o = r != null && r.path ? Object.keys(r.path).reduce(
4182
4246
  (h, f) => String(h).replace(`{${f}}`, r == null ? void 0 : r.path[f]),
@@ -4192,7 +4256,7 @@ async function Vs(t, e, s, r, n) {
4192
4256
  const u = await Le(a, c);
4193
4257
  return u.status < 200 || u.status >= 400 ? [`${u.statusText || yf}`, null] : [null, (await u.json()).data];
4194
4258
  }
4195
- function et() {
4259
+ function tt() {
4196
4260
  return {
4197
4261
  get: (t, e, s) => Vs(t, "get", s, e),
4198
4262
  post: (t, e, s, r) => Vs(t, "post", r, e, s),
@@ -4206,10 +4270,10 @@ function et() {
4206
4270
  )
4207
4271
  };
4208
4272
  }
4209
- const ke = et(), ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4273
+ const ke = tt(), ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4210
4274
  __proto__: null,
4211
4275
  default: ke
4212
- }, Symbol.toStringTag, { value: "Module" })), nt = g.createLogger({
4276
+ }, Symbol.toStringTag, { value: "Module" })), ot = g.createLogger({
4213
4277
  name: "kos-service-request-manager",
4214
4278
  group: "Model"
4215
4279
  });
@@ -4217,7 +4281,7 @@ function bf(t, e) {
4217
4281
  return !t.condition || t.condition(e);
4218
4282
  }
4219
4283
  function vf(t, e) {
4220
- return _e({
4284
+ return Te({
4221
4285
  value: t.path,
4222
4286
  modelId: e.id,
4223
4287
  modelData: e
@@ -4225,7 +4289,7 @@ function vf(t, e) {
4225
4289
  }
4226
4290
  function wf(t, e) {
4227
4291
  if (t.pathParams)
4228
- return _e({
4292
+ return Te({
4229
4293
  value: typeof t.pathParams == "function" ? t.pathParams(e) : t.pathParams,
4230
4294
  modelId: e.id,
4231
4295
  modelData: e
@@ -4233,7 +4297,7 @@ function wf(t, e) {
4233
4297
  }
4234
4298
  function Mf(t, e) {
4235
4299
  if (t.queryParams)
4236
- return _e({
4300
+ return Te({
4237
4301
  value: typeof t.queryParams == "function" ? t.queryParams(e) : t.queryParams,
4238
4302
  modelId: e.id,
4239
4303
  modelData: e
@@ -4241,7 +4305,7 @@ function Mf(t, e) {
4241
4305
  }
4242
4306
  function Ef(t, e) {
4243
4307
  if (t.body)
4244
- return _e({
4308
+ return Te({
4245
4309
  value: typeof t.body == "function" ? t.body(e) : t.body,
4246
4310
  modelId: e.id,
4247
4311
  modelData: e
@@ -4257,7 +4321,7 @@ function tc(t) {
4257
4321
  return t == null;
4258
4322
  }
4259
4323
  function Tf(t, e, s, r) {
4260
- r && tc(t) && nt.warn(
4324
+ r && tc(t) && ot.warn(
4261
4325
  `Required field '${e}' is missing in response for ${s}`
4262
4326
  );
4263
4327
  }
@@ -4279,7 +4343,7 @@ class If {
4279
4343
  Object.values(s).forEach((r) => {
4280
4344
  const n = r.lifecycle;
4281
4345
  this.handlers.has(n) || this.handlers.set(n, []), this.handlers.get(n).push(r);
4282
- }), Object.keys(s).length > 0 && nt.debug(
4346
+ }), Object.keys(s).length > 0 && ot.debug(
4283
4347
  `Discovered ${Object.keys(s).length} service request handlers for model ${this.model.id}`
4284
4348
  );
4285
4349
  }
@@ -4290,7 +4354,7 @@ class If {
4290
4354
  */
4291
4355
  async executeForLifecycle(e) {
4292
4356
  const s = this.handlers.get(e);
4293
- !s || s.length === 0 || (nt.debug(
4357
+ !s || s.length === 0 || (ot.debug(
4294
4358
  `Executing ${s.length} service requests for lifecycle ${e}`
4295
4359
  ), await Promise.all(s.map((r) => this.executeHandler(r))));
4296
4360
  }
@@ -4312,7 +4376,7 @@ class If {
4312
4376
  * Zone 2: Validates request preconditions
4313
4377
  */
4314
4378
  shouldProcessRequest(e) {
4315
- return bf(e, this.model) ? !0 : (nt.debug(`Skipping request ${e.path} - condition returned false`), !1);
4379
+ return bf(e, this.model) ? !0 : (ot.debug(`Skipping request ${e.path} - condition returned false`), !1);
4316
4380
  }
4317
4381
  /**
4318
4382
  * Zone 2: Coordinates request preparation, execution, and timing capture
@@ -4402,7 +4466,7 @@ class If {
4402
4466
  */
4403
4467
  async storeAndInvokeHandler(e, s, r, n, o) {
4404
4468
  const i = s.cache || {
4405
- retention: ye.SINGLE
4469
+ retention: be.SINGLE
4406
4470
  }, a = ni(r, s.method || "get");
4407
4471
  this.responseStore.set(
4408
4472
  a,
@@ -4487,7 +4551,7 @@ class If {
4487
4551
  case "json":
4488
4552
  return typeof e == "string" ? JSON.parse(e) : e;
4489
4553
  default:
4490
- return nt.warn(`Unknown transformer: ${s}`), e;
4554
+ return ot.warn(`Unknown transformer: ${s}`), e;
4491
4555
  }
4492
4556
  }
4493
4557
  /**
@@ -4505,7 +4569,7 @@ class If {
4505
4569
  );
4506
4570
  const a = s.modelFactory;
4507
4571
  return typeof a == "function" ? a(i)(o) : a.instance(i).options(o).build();
4508
- }) : r.map((n) => s.mappings && s.mappings.length > 0 ? this.applyMappings(n, s) : n) : (nt.warn(
4572
+ }) : r.map((n) => s.mappings && s.mappings.length > 0 ? this.applyMappings(n, s) : n) : (ot.warn(
4509
4573
  `iterateOver path '${s.iterateOver}' did not resolve to an array`
4510
4574
  ), []);
4511
4575
  }
@@ -4518,7 +4582,7 @@ class If {
4518
4582
  case "throw":
4519
4583
  throw e;
4520
4584
  case "log":
4521
- nt.error(
4585
+ ot.error(
4522
4586
  `Service request failed for ${s.path}:`,
4523
4587
  e.message
4524
4588
  );
@@ -4534,7 +4598,7 @@ class If {
4534
4598
  this.responseStore.set(
4535
4599
  n,
4536
4600
  r.defaultValue,
4537
- s.cache || { retention: ye.SINGLE }
4601
+ s.cache || { retention: be.SINGLE }
4538
4602
  );
4539
4603
  }
4540
4604
  break;
@@ -4595,8 +4659,8 @@ const Sf = ({
4595
4659
  return n += `topic:${t}
4596
4660
  `, n += `${Rs}:${t}
4597
4661
  `, n += `${Kr}:${e}
4598
- `, r && (n += `${Xe}:${r}
4599
- `), n += `${qe}:kos.studio.request
4662
+ `, r && (n += `${et}:${r}
4663
+ `), n += `${Ke}:kos.studio.request
4600
4664
  `, n += `
4601
4665
  `, n;
4602
4666
  }, Cf = ({
@@ -4612,10 +4676,10 @@ const Sf = ({
4612
4676
  return i += `${io}:${s}
4613
4677
  `, i += `${Rs}:${t}
4614
4678
  `, i += `${ku}:${e}
4615
- `, r && (i += `${Xe}:${r}
4679
+ `, r && (i += `${et}:${r}
4616
4680
  `), n && (i += `${na}:true
4617
4681
  `), o && (i += `${oa}:${o}
4618
- `), i += `${qe}:fos.http.request
4682
+ `), i += `${Ke}:fos.http.request
4619
4683
  `, i += `
4620
4684
  `, i;
4621
4685
  }, Df = ({
@@ -4632,13 +4696,13 @@ const Sf = ({
4632
4696
  `;
4633
4697
  return c += `${Rs}:${t}
4634
4698
  `, c += `${Kr}:${e}
4635
- `, r && (c += `${Xe}:${r}
4699
+ `, r && (c += `${et}:${r}
4636
4700
  `), n && (c += `${na}:true
4637
4701
  `), o && (c += `${oa}:${o}
4638
4702
  `), a && Object.keys(a).forEach((u) => {
4639
4703
  c += `${u}:${a[u]}
4640
4704
  `;
4641
- }), c += `${qe}:${i ? "fos" : "kos"}.http.request
4705
+ }), c += `${Ke}:${i ? "fos" : "kos"}.http.request
4642
4706
  `, c += `
4643
4707
  `, c;
4644
4708
  }, yt = (t, e) => {
@@ -4707,8 +4771,8 @@ const xf = ({
4707
4771
  `;
4708
4772
  return r += `${Rs}:${t}
4709
4773
  `, r += `${Kr}:${e}
4710
- `, r += `${Xe}:${s}
4711
- `, r += `${qe}:kos.studio.request
4774
+ `, r += `${et}:${s}
4775
+ `, r += `${Ke}:kos.studio.request
4712
4776
  `, r += `
4713
4777
  `, r;
4714
4778
  }, Pf = ({
@@ -4719,8 +4783,8 @@ const xf = ({
4719
4783
  }) => {
4720
4784
  let n = `${Kr}:${t}
4721
4785
  `;
4722
- return n += `${Xe}:${e}
4723
- `, n += `${qe}:${s}
4786
+ return n += `${et}:${e}
4787
+ `, n += `${Ke}:${s}
4724
4788
  `, r && Object.keys(r).forEach((o) => {
4725
4789
  n += `${o}:${r[o]}
4726
4790
  `;
@@ -4743,8 +4807,8 @@ const xf = ({
4743
4807
  return n += `${Rs}:${t}
4744
4808
  `, e && (n += `${ao}:${e}
4745
4809
  `), n += `${ra}:${s}
4746
- `, n += `${Xe}:${r}
4747
- `, n += `${qe}:kos.studio.response
4810
+ `, n += `${et}:${r}
4811
+ `, n += `${Ke}:kos.studio.response
4748
4812
  `, n += `
4749
4813
  `, n;
4750
4814
  }, CE = (t, e) => {
@@ -4764,7 +4828,7 @@ const xf = ({
4764
4828
  }) => {
4765
4829
  let e = `topic:${t}
4766
4830
  `;
4767
- return e += `${qe}:kos.broker.send
4831
+ return e += `${Ke}:kos.broker.send
4768
4832
  `, e += `
4769
4833
  `, e;
4770
4834
  }, kf = ({
@@ -4776,9 +4840,9 @@ const xf = ({
4776
4840
  }) => {
4777
4841
  let o = `${ao}:${t}
4778
4842
  `;
4779
- return o += `${Xe}:${e}
4843
+ return o += `${et}:${e}
4780
4844
  `, o += `${Pu}:${r}
4781
- `, o += `${qe}:${s ?? "kos.message.request"}
4845
+ `, o += `${Ke}:${s ?? "kos.message.request"}
4782
4846
  `, o += `${ra}:${n}
4783
4847
  `, o += `${Au}:application/json
4784
4848
  `, o += `${Ru}:no-cache
@@ -4793,8 +4857,8 @@ const xf = ({
4793
4857
  let n = `topic:${t}
4794
4858
  `;
4795
4859
  return e && (n += `${ao}:${e}
4796
- `), n += `${Xe}:${s}
4797
- `, n += `${qe}:${r ?? "kos.message.request"}
4860
+ `), n += `${et}:${s}
4861
+ `, n += `${Ke}:${r ?? "kos.message.request"}
4798
4862
  `, n += `
4799
4863
  `, n;
4800
4864
  }, xE = ({
@@ -4987,7 +5051,7 @@ class Uf {
4987
5051
  return { ...this.stats };
4988
5052
  }
4989
5053
  }
4990
- class Bf extends WebSocket {
5054
+ class jf extends WebSocket {
4991
5055
  constructor(e) {
4992
5056
  super(e);
4993
5057
  }
@@ -5005,7 +5069,7 @@ function ai(t) {
5005
5069
  body: o
5006
5070
  };
5007
5071
  }
5008
- function jf(t) {
5072
+ function Bf(t) {
5009
5073
  const e = `
5010
5074
 
5011
5075
  `, s = `
@@ -5026,7 +5090,7 @@ class bo {
5026
5090
  alias: n,
5027
5091
  onConnectionEstablished: o,
5028
5092
  onConnectionLost: i,
5029
- Transport: a = Bf
5093
+ Transport: a = jf
5030
5094
  }) {
5031
5095
  l(this, "host");
5032
5096
  l(this, "port");
@@ -5069,7 +5133,7 @@ class bo {
5069
5133
  if (n) {
5070
5134
  let o = r, i = s;
5071
5135
  if (n === "kos.sniffer.msg") {
5072
- const { headers: a, body: c } = jf(e.data);
5136
+ const { headers: a, body: c } = Bf(e.data);
5073
5137
  o = c, i = {
5074
5138
  ...s,
5075
5139
  ...a
@@ -5262,12 +5326,12 @@ class ci {
5262
5326
  });
5263
5327
  }
5264
5328
  }
5265
- const Vf = Ie();
5329
+ const Vf = Oe();
5266
5330
  Vf.fos && (window.kosUseFos = !0);
5267
5331
  const li = process.env.KOS_FOS_PORT;
5268
5332
  window.kosUseFos = !!(window.kosUseFos || process.env.KOS_USE_FOS === "true");
5269
5333
  window.kosFosPort = li ? parseInt(li) : 0;
5270
- const st = C.getLogger("web-socket-transport");
5334
+ const rt = C.getLogger("web-socket-transport");
5271
5335
  var Gf = /* @__PURE__ */ ((t) => (t.NOT_INITIALIZED = "not_initialized", t.INITIALIZED = "initialized", t.OFFLINE = "OFFLINE", t.ONLINE = "ONLINE", t))(Gf || {}), hr = /* @__PURE__ */ ((t) => (t.CONNECTED = "websocket.connected", t.DISCONNECTED = "websocket.disconnected", t.RELOAD = "websocket.reload", t))(hr || {});
5272
5336
  class vs {
5273
5337
  constructor({
@@ -5301,7 +5365,7 @@ class vs {
5301
5365
  }), xs(
5302
5366
  () => this.connectionEstablished,
5303
5367
  (u) => {
5304
- u && (st.warn("Connection Established"), G(
5368
+ u && (rt.warn("Connection Established"), G(
5305
5369
  "websocket.connected",
5306
5370
  "websocket.connected"
5307
5371
  /* CONNECTED */
@@ -5329,7 +5393,7 @@ class vs {
5329
5393
  protocol: this.protocol,
5330
5394
  alias: this.alias,
5331
5395
  onConnectionLost: () => {
5332
- st.error("Connection Lost"), G(
5396
+ rt.error("Connection Lost"), G(
5333
5397
  "websocket.disconnected",
5334
5398
  "websocket.disconnected"
5335
5399
  /* DISCONNECTED */
@@ -5345,9 +5409,9 @@ class vs {
5345
5409
  }
5346
5410
  _sendSubscriptionMessage(e, s, r = !1, n = !1, o) {
5347
5411
  var f, p, m, b;
5348
- st.debug(`${s} to topic ${e}`);
5349
- const i = Ie(), a = i == null ? void 0 : i.connId, c = o ?? a ?? ((f = window == null ? void 0 : window.kosBridge) == null ? void 0 : f.call(window, "connId"));
5350
- st.debug(`subscribing with connId ${c}`);
5412
+ rt.debug(`${s} to topic ${e}`);
5413
+ const i = Oe(), a = i == null ? void 0 : i.connId, c = o ?? a ?? ((f = window == null ? void 0 : window.kosBridge) == null ? void 0 : f.call(window, "connId"));
5414
+ rt.debug(`subscribing with connId ${c}`);
5351
5415
  const u = c ? `dst-addr:${c}
5352
5416
  ` : "", d = r ? `subscribe:${e}` : n ? `type:fos.broker
5353
5417
  cmd:${s}
@@ -5359,7 +5423,7 @@ ${u}topics:${e}
5359
5423
  const v = r ? this.fosSocket : this.socket;
5360
5424
  (b = v == null ? void 0 : v.socket) == null || b.send(d);
5361
5425
  } else {
5362
- st.debug("no connection adding to offline messages");
5426
+ rt.debug("no connection adding to offline messages");
5363
5427
  const v = r ? this.fosSocket : this.socket;
5364
5428
  v == null || v.addOfflineMessage(d);
5365
5429
  }
@@ -5372,7 +5436,7 @@ ${u}topics:${e}
5372
5436
  destinationAddress: o
5373
5437
  }) {
5374
5438
  const { unsubscribe: i, count: a } = O(e, s);
5375
- return st.debug(`Topic ${e} currently has ${a} subscribers`), this._sendSubscriptionMessage(
5439
+ return rt.debug(`Topic ${e} currently has ${a} subscribers`), this._sendSubscriptionMessage(
5376
5440
  e,
5377
5441
  "subscribe",
5378
5442
  r,
@@ -5380,7 +5444,7 @@ ${u}topics:${e}
5380
5444
  o
5381
5445
  ), () => {
5382
5446
  const { count: c } = i();
5383
- st.debug(`Topic ${e} currently has ${c} subscribers`), c === 0 && this._sendSubscriptionMessage(
5447
+ rt.debug(`Topic ${e} currently has ${c} subscribers`), c === 0 && this._sendSubscriptionMessage(
5384
5448
  e,
5385
5449
  "unsubscribe",
5386
5450
  r,
@@ -5782,14 +5846,14 @@ function Qf(t) {
5782
5846
  return !!(t != null && t[ae]) && Object.keys(t[ae]).length > 0;
5783
5847
  }
5784
5848
  function Zf(t) {
5785
- return !!(t != null && t[Qe]) && t[Qe].length > 0;
5849
+ return !!(t != null && t[Ze]) && t[Ze].length > 0;
5786
5850
  }
5787
5851
  function Jf(t) {
5788
5852
  const e = Object.getPrototypeOf(t);
5789
5853
  return !!(e != null && e[Rt]) && Object.keys(e[Rt]).length > 0;
5790
5854
  }
5791
5855
  function Xf(t) {
5792
- return t.retention === ye.TTL && t.extendOnRefresh === !0 && t.ttl !== void 0;
5856
+ return t.retention === be.TTL && t.extendOnRefresh === !0 && t.ttl !== void 0;
5793
5857
  }
5794
5858
  function ep(t, e) {
5795
5859
  return t.has(e);
@@ -5817,7 +5881,7 @@ class sp {
5817
5881
  * @param receivedAt - When the response was received (for temporal tracking)
5818
5882
  * @returns true if response was stored, false if refresh extended existing TTL
5819
5883
  */
5820
- set(e, s, r = { retention: ye.SINGLE }, n = Date.now(), o = Date.now()) {
5884
+ set(e, s, r = { retention: be.SINGLE }, n = Date.now(), o = Date.now()) {
5821
5885
  if (this.shouldExtendTTL(e, r))
5822
5886
  return this.extendExistingTTL(e, r.ttl), !1;
5823
5887
  const i = this.createCachedResponse(
@@ -5904,7 +5968,7 @@ class sp {
5904
5968
  */
5905
5969
  shouldCleanupAfterHandler(e) {
5906
5970
  const s = this.retentionPolicies.get(e);
5907
- return (s == null ? void 0 : s.retention) === ye.IMMEDIATE;
5971
+ return (s == null ? void 0 : s.retention) === be.IMMEDIATE;
5908
5972
  }
5909
5973
  /**
5910
5974
  * Zone 2: Evaluates if TTL should be extended instead of replacing data
@@ -5954,7 +6018,7 @@ class sp {
5954
6018
  * Calculate expiration timestamp based on config
5955
6019
  */
5956
6020
  calculateExpiresAt(e) {
5957
- return e.retention === ye.TTL && e.ttl ? Date.now() + e.ttl : void 0;
6021
+ return e.retention === be.TTL && e.ttl ? Date.now() + e.ttl : void 0;
5958
6022
  }
5959
6023
  /**
5960
6024
  * Store response with retention policy
@@ -5967,9 +6031,9 @@ class sp {
5967
6031
  */
5968
6032
  applyRetentionPolicy(e, s) {
5969
6033
  switch (s.retention) {
5970
- case ye.IMMEDIATE:
6034
+ case be.IMMEDIATE:
5971
6035
  break;
5972
- case ye.TTL:
6036
+ case be.TTL:
5973
6037
  s.ttl && ui(
5974
6038
  e,
5975
6039
  s.ttl,
@@ -5977,10 +6041,10 @@ class sp {
5977
6041
  (r) => this.delete(r)
5978
6042
  );
5979
6043
  break;
5980
- case ye.SINGLE:
6044
+ case be.SINGLE:
5981
6045
  break;
5982
- case ye.PERMANENT:
5983
- case ye.MANUAL:
6046
+ case be.PERMANENT:
6047
+ case be.MANUAL:
5984
6048
  break;
5985
6049
  }
5986
6050
  }
@@ -6256,7 +6320,7 @@ class op {
6256
6320
  modelType: this.modelTypeName
6257
6321
  };
6258
6322
  G(
6259
- jh(this.modelTypeName, this.modelId),
6323
+ Bh(this.modelTypeName, this.modelId),
6260
6324
  i
6261
6325
  ), G(Hh(this.modelTypeName), i);
6262
6326
  } catch (o) {
@@ -6265,7 +6329,7 @@ class op {
6265
6329
  }
6266
6330
  async load() {
6267
6331
  var n, o, i, a, c, u;
6268
- const e = this[dt];
6332
+ const e = this[ht];
6269
6333
  e && await e.whenLoaded();
6270
6334
  const { modelTypeName: s, modelId: r } = this;
6271
6335
  if (this.fsm.current === y.LOADED || this.fsm.current === y.LOADING) {
@@ -6318,7 +6382,7 @@ class op {
6318
6382
  }
6319
6383
  async init() {
6320
6384
  var o, i, a, c;
6321
- const e = this[dt];
6385
+ const e = this[ht];
6322
6386
  e && await e.whenInitialized();
6323
6387
  const { modelId: s, modelTypeName: r } = this, n = J.getContext(s);
6324
6388
  N.debug(`Initializing model ${r} with id ${s}`), await Ks(this, x.INIT);
@@ -6381,7 +6445,7 @@ const In = g.createLogger({ name: "kos-model-instantiator" });
6381
6445
  class ip {
6382
6446
  constructor(e, s) {
6383
6447
  l(this, "companionInstantiator");
6384
- this.registry = e, this.cache = s, this.companionInstantiator = new Bh(
6448
+ this.registry = e, this.cache = s, this.companionInstantiator = new jh(
6385
6449
  e,
6386
6450
  s,
6387
6451
  this.createModelInstance.bind(this)
@@ -6928,10 +6992,10 @@ const up = (t) => {
6928
6992
  (o) => C.debug(o.machine.current)
6929
6993
  ), online: s };
6930
6994
  }, Q = g.createLogger({ name: "kos-core" }), dp = () => {
6931
- const t = Ie(), e = t == null ? void 0 : t.alias, s = process.env.KOS_CONNECTION_ALIAS;
6995
+ const t = Oe(), e = t == null ? void 0 : t.alias, s = process.env.KOS_CONNECTION_ALIAS;
6932
6996
  return e || s || void 0;
6933
6997
  }, hp = () => {
6934
- const t = window.location.protocol, e = Ie(), s = e == null ? void 0 : e.host;
6998
+ const t = window.location.protocol, e = Oe(), s = e == null ? void 0 : e.host;
6935
6999
  let r;
6936
7000
  try {
6937
7001
  r = new URL(s).protocol === "https:" ? "wss://" : "ws://";
@@ -6939,7 +7003,7 @@ const up = (t) => {
6939
7003
  }
6940
7004
  return r || (t === "https:" ? "wss://" : "ws://");
6941
7005
  }, fp = () => {
6942
- const t = window.location.hostname, e = process.env.KOS_HOST, s = Ie(), r = s == null ? void 0 : s.host;
7006
+ const t = window.location.hostname, e = process.env.KOS_HOST, s = Oe(), r = s == null ? void 0 : s.host;
6943
7007
  let n;
6944
7008
  try {
6945
7009
  n = new URL(r).hostname;
@@ -6947,7 +7011,7 @@ const up = (t) => {
6947
7011
  }
6948
7012
  return n ?? e ?? t;
6949
7013
  }, pp = () => {
6950
- const t = window.location.port, e = process.env.KOS_PORT, s = Ie(), r = s == null ? void 0 : s.host;
7014
+ const t = window.location.port, e = process.env.KOS_PORT, s = Oe(), r = s == null ? void 0 : s.host;
6951
7015
  let n;
6952
7016
  try {
6953
7017
  n = new URL(r).port;
@@ -7135,7 +7199,7 @@ class T {
7135
7199
  if (typeof h == "string") {
7136
7200
  const p = e.models[h];
7137
7201
  if (p != null && p.class) {
7138
- const m = p.class.prototype[dt];
7202
+ const m = p.class.prototype[ht];
7139
7203
  f = m == null ? void 0 : m.lifecycle;
7140
7204
  }
7141
7205
  }
@@ -7354,8 +7418,8 @@ const Ws = g.createLogger({ name: "kos-fetch" }), Tp = process.env.KOS_WS_TIMEOU
7354
7418
  if (U === "base64" && $)
7355
7419
  try {
7356
7420
  E = bp($);
7357
- } catch (B) {
7358
- Ws.error("Failed to decode base64 response", B);
7421
+ } catch (j) {
7422
+ Ws.error("Failed to decode base64 response", j);
7359
7423
  }
7360
7424
  const V = {
7361
7425
  headers: Gs(M),
@@ -7377,28 +7441,28 @@ const Ws = g.createLogger({ name: "kos-fetch" }), Tp = process.env.KOS_WS_TIMEOU
7377
7441
  arrayBuffer: async () => E instanceof ArrayBuffer ? E : new TextEncoder().encode(E).buffer,
7378
7442
  blob: async () => E instanceof ArrayBuffer ? wp(E, k) : new Blob([E], { type: k }),
7379
7443
  formData: async () => {
7380
- const B = new FormData();
7444
+ const j = new FormData();
7381
7445
  if (k === "multipart/form-data" && typeof E == "string")
7382
7446
  try {
7383
7447
  const te = JSON.parse(E);
7384
- te.fields && Object.entries(te.fields).forEach(([Ye, We]) => {
7385
- B.append(Ye, We);
7448
+ te.fields && Object.entries(te.fields).forEach(([We, Qe]) => {
7449
+ j.append(We, Qe);
7386
7450
  }), te.files && Ws.warn(
7387
7451
  "File reconstruction in FormData not fully implemented"
7388
7452
  );
7389
7453
  } catch {
7390
7454
  throw new Error("Failed to parse FormData");
7391
7455
  }
7392
- return B;
7456
+ return j;
7393
7457
  },
7394
- body: e != null && e.stream ? Ep(async (B) => {
7458
+ body: e != null && e.stream ? Ep(async (j) => {
7395
7459
  if (E instanceof ArrayBuffer)
7396
- B.enqueue(new Uint8Array(E));
7460
+ j.enqueue(new Uint8Array(E));
7397
7461
  else {
7398
7462
  const te = new TextEncoder();
7399
- B.enqueue(te.encode(E));
7463
+ j.enqueue(te.encode(E));
7400
7464
  }
7401
- B.close();
7465
+ j.close();
7402
7466
  }) : Ys(typeof E == "string" ? E : ""),
7403
7467
  redirected: !1,
7404
7468
  statusText: "",
@@ -7418,10 +7482,10 @@ const Ws = g.createLogger({ name: "kos-fetch" }), Tp = process.env.KOS_WS_TIMEOU
7418
7482
  b == null || b.send(d);
7419
7483
  });
7420
7484
  };
7421
- let ge = "kos:", Le = Op;
7485
+ let me = "kos:", Le = Op;
7422
7486
  if (process.env.KOS_MOCK_FETCH === "true") {
7423
7487
  const t = process.env.KOS_PORT || "9999";
7424
- Le = fetch, ge = `http://localhost:${t}`;
7488
+ Le = fetch, me = `http://localhost:${t}`;
7425
7489
  }
7426
7490
  const Sp = g.createLogger({
7427
7491
  name: "kos-model-visitor",
@@ -7562,7 +7626,7 @@ async function NE(t, e) {
7562
7626
  }
7563
7627
  throw new Error("All attempts failed");
7564
7628
  }
7565
- const Pp = g.createLogger({ name: "kos-service-request" }), me = (t) => ({ isMock: !1, URL: ge }), Ap = (t, e, s) => async ({
7629
+ const Pp = g.createLogger({ name: "kos-service-request" }), ye = (t) => ({ isMock: !1, URL: me }), Ap = (t, e, s) => async ({
7566
7630
  id: r,
7567
7631
  tracker: n,
7568
7632
  urlOverride: o,
@@ -7615,7 +7679,7 @@ const Pp = g.createLogger({ name: "kos-service-request" }), me = (t) => ({ isMoc
7615
7679
  m = await f.json();
7616
7680
  } catch {
7617
7681
  }
7618
- throw new Te(
7682
+ throw new $e(
7619
7683
  `There was a problem retrieving the model; returned status ${f.status}`,
7620
7684
  m
7621
7685
  );
@@ -7651,7 +7715,7 @@ const Pp = g.createLogger({ name: "kos-service-request" }), me = (t) => ({ isMoc
7651
7715
  b = await p.json();
7652
7716
  } catch {
7653
7717
  }
7654
- throw new Te(
7718
+ throw new $e(
7655
7719
  `There was a problem retrieving the model; returned status ${p.status}`,
7656
7720
  b
7657
7721
  );
@@ -7685,14 +7749,14 @@ const Pp = g.createLogger({ name: "kos-service-request" }), me = (t) => ({ isMoc
7685
7749
  b = await p.json();
7686
7750
  } catch {
7687
7751
  }
7688
- throw new Te(
7752
+ throw new $e(
7689
7753
  `There was a problem retrieving the model; returned status ${p.status}`,
7690
7754
  b
7691
7755
  );
7692
7756
  }
7693
7757
  return await p.json();
7694
7758
  };
7695
- class Te extends Error {
7759
+ class $e extends Error {
7696
7760
  constructor(s, r) {
7697
7761
  super(s);
7698
7762
  l(this, "payload");
@@ -7729,7 +7793,7 @@ const pi = (t, e, s) => async ({
7729
7793
  b = await p.json();
7730
7794
  } catch {
7731
7795
  }
7732
- throw new Te(
7796
+ throw new $e(
7733
7797
  `There was a problem sending the POST data; returned status ${p.status}`,
7734
7798
  b
7735
7799
  );
@@ -7765,7 +7829,7 @@ const pi = (t, e, s) => async ({
7765
7829
  v = await m.json();
7766
7830
  } catch {
7767
7831
  }
7768
- throw new Te(
7832
+ throw new $e(
7769
7833
  `There was a problem modifying the model; returned status ${m.status}`,
7770
7834
  v
7771
7835
  );
@@ -7774,7 +7838,7 @@ const pi = (t, e, s) => async ({
7774
7838
  // <--- KosServiceResponse<any> should be KosServiceResponse<Request>...
7775
7839
  await m.json()
7776
7840
  );
7777
- }, de = {
7841
+ }, he = {
7778
7842
  /**
7779
7843
  * Builds a service instance with the specified configuration.
7780
7844
  *
@@ -7900,11 +7964,11 @@ function UE(t, e, s = "get") {
7900
7964
  if (r)
7901
7965
  return r.getByPath(e, s);
7902
7966
  }
7903
- function BE(t, e, s = "get") {
7967
+ function jE(t, e, s = "get") {
7904
7968
  const r = t.serviceResponses;
7905
7969
  return r ? r.has(`${s.toUpperCase()}:${e}`) : !1;
7906
7970
  }
7907
- function jE(t, e, s = "get") {
7971
+ function BE(t, e, s = "get") {
7908
7972
  const r = t.serviceResponses;
7909
7973
  r && r.delete(`${s.toUpperCase()}:${e}`);
7910
7974
  }
@@ -7952,7 +8016,7 @@ const Fp = Gt(), Np = () => `kos-${Fp}`, qE = (t) => !!t && !t.includes("VM_SERV
7952
8016
  if (o.error)
7953
8017
  throw Error(o.error);
7954
8018
  return o;
7955
- }, be = /* @__PURE__ */ new Map();
8019
+ }, ve = /* @__PURE__ */ new Map();
7956
8020
  class Up {
7957
8021
  constructor(e) {
7958
8022
  l(this, "_context");
@@ -7987,13 +8051,13 @@ class Up {
7987
8051
  if (this.companionModels.length > 0) {
7988
8052
  const n = this.companionModels.find((o) => {
7989
8053
  var i;
7990
- return !o.id || !be.has(o.id) ? !1 : (i = be.get(o.id)) == null ? void 0 : i.context.has(e);
8054
+ return !o.id || !ve.has(o.id) ? !1 : (i = ve.get(o.id)) == null ? void 0 : i.context.has(e);
7991
8055
  });
7992
8056
  if (n)
7993
- return (s = be.get(n.id)) == null ? void 0 : s.get(e);
8057
+ return (s = ve.get(n.id)) == null ? void 0 : s.get(e);
7994
8058
  }
7995
8059
  if (this._parent)
7996
- return (r = be.get(this._parent)) == null ? void 0 : r.get(e);
8060
+ return (r = ve.get(this._parent)) == null ? void 0 : r.get(e);
7997
8061
  }
7998
8062
  set(e, s) {
7999
8063
  this._context.set(e, s);
@@ -8007,29 +8071,29 @@ class Up {
8007
8071
  }
8008
8072
  const J = {
8009
8073
  createContext: (t, e) => {
8010
- const s = be.get(t) ?? new Up(t);
8074
+ const s = ve.get(t) ?? new Up(t);
8011
8075
  if (e) {
8012
- if (!be.has(e))
8076
+ if (!ve.has(e))
8013
8077
  throw new Error(`Parent context ${e} does not exist`);
8014
8078
  s.setParent(e);
8015
8079
  } else
8016
8080
  t !== "root" && s.setParent("root");
8017
- return be.set(t, s), s;
8081
+ return ve.set(t, s), s;
8018
8082
  },
8019
- getContext: (t) => be.get(t),
8083
+ getContext: (t) => ve.get(t),
8020
8084
  deleteContext: (t) => {
8021
- be.delete(t);
8085
+ ve.delete(t);
8022
8086
  },
8023
8087
  setParentContext: (t, e) => {
8024
8088
  var s;
8025
- if (!be.has(e))
8089
+ if (!ve.has(e))
8026
8090
  throw new Error(`Parent context ${e} does not exist`);
8027
- (s = be.get(t)) == null || s.setParent(e);
8091
+ (s = ve.get(t)) == null || s.setParent(e);
8028
8092
  },
8029
- rootContext: () => be.get("root")
8093
+ rootContext: () => ve.get("root")
8030
8094
  };
8031
8095
  J.createContext("root");
8032
- const GE = (t) => J.getContext(t.id), rt = g.createLogger({ name: "kos-data-container" });
8096
+ const GE = (t) => J.getContext(t.id), nt = g.createLogger({ name: "kos-data-container" });
8033
8097
  class rc {
8034
8098
  constructor(e) {
8035
8099
  l(this, "_data");
@@ -8050,7 +8114,7 @@ class rc {
8050
8114
  l(this, "_customEvictionFilter");
8051
8115
  this._data = se.map(/* @__PURE__ */ new Map()), this._sortKey = e == null ? void 0 : e.sortKey, this._revision = 1, this._optionsMap = (e == null ? void 0 : e.indexMap) || {};
8052
8116
  const s = e != null && e.indexMap ? Object.keys(e.indexMap).reduce((r, n) => (r[n] = void 0, r), {}) : {};
8053
- this._index = se.map(s), this.idx = Ue(), this._maxCapacity = e == null ? void 0 : e.maxCapacity, this._evictionStrategy = (e == null ? void 0 : e.evictionStrategy) || "fifo", this._evictionBatchSize = (e == null ? void 0 : e.evictionBatchSize) ?? Math.max(10, Math.ceil(((e == null ? void 0 : e.maxCapacity) ?? 100) * 0.1)), this._customEvictionFilter = e == null ? void 0 : e.customEvictionFilter, this._evictionStrategy === "lru" && this._maxCapacity && (this._accessTimes = se.map(/* @__PURE__ */ new Map())), Pe(this, {}), this.init();
8117
+ this._index = se.map(s), this.idx = je(), this._maxCapacity = e == null ? void 0 : e.maxCapacity, this._evictionStrategy = (e == null ? void 0 : e.evictionStrategy) || "fifo", this._evictionBatchSize = (e == null ? void 0 : e.evictionBatchSize) ?? Math.max(10, Math.ceil(((e == null ? void 0 : e.maxCapacity) ?? 100) * 0.1)), this._customEvictionFilter = e == null ? void 0 : e.customEvictionFilter, this._evictionStrategy === "lru" && this._maxCapacity && (this._accessTimes = se.map(/* @__PURE__ */ new Map())), Pe(this, {}), this.init();
8054
8118
  }
8055
8119
  init() {
8056
8120
  Object.keys(this._optionsMap).forEach((e) => {
@@ -8175,20 +8239,20 @@ class rc {
8175
8239
  return s && this._accessTimes && this._accessTimes.set(e, Date.now()), s;
8176
8240
  }
8177
8241
  getIndexKeys(e) {
8178
- return this.index.has(e) ? this.index.get(e).keys ?? [] : (rt.info(
8242
+ return this.index.has(e) ? this.index.get(e).keys ?? [] : (nt.info(
8179
8243
  `index ${e} not found in ${Array.from(this.index.keys())}`
8180
8244
  ), []);
8181
8245
  }
8182
8246
  getIndexByKey(e, s) {
8183
8247
  if (this.index.has(e)) {
8184
8248
  const r = this.index.get(e);
8185
- return r.index.has(s) ? r.getByKey(s) : (rt.info(
8249
+ return r.index.has(s) ? r.getByKey(s) : (nt.info(
8186
8250
  `key ${s} not found in ${e} index: ${Array.from(
8187
8251
  r.index.keys()
8188
8252
  )}`
8189
8253
  ), []);
8190
8254
  } else
8191
- return rt.info(
8255
+ return nt.info(
8192
8256
  `index ${e} not found in ${Array.from(this.index.keys())}`
8193
8257
  ), [];
8194
8258
  }
@@ -8214,7 +8278,7 @@ class rc {
8214
8278
  * @private
8215
8279
  */
8216
8280
  _logDataCapacityWarning(e) {
8217
- rt.warn(
8281
+ nt.warn(
8218
8282
  `Data container capacity exceeded (${this._data.size}/${this._maxCapacity}). Evicting ${e} items using ${this._evictionStrategy} strategy. This may indicate missing cleanup handlers or data inconsistency.`
8219
8283
  );
8220
8284
  }
@@ -8261,7 +8325,7 @@ class rc {
8261
8325
  * @private
8262
8326
  */
8263
8327
  _selectCustomData(e) {
8264
- return this._customEvictionFilter ? this._customEvictionFilter(this.data).slice(0, e).map((r) => r.id) : (rt.error(
8328
+ return this._customEvictionFilter ? this._customEvictionFilter(this.data).slice(0, e).map((r) => r.id) : (nt.error(
8265
8329
  "Custom eviction strategy specified but no customEvictionFilter provided. Falling back to FIFO."
8266
8330
  ), this._selectFifoData(e));
8267
8331
  }
@@ -8273,7 +8337,7 @@ class rc {
8273
8337
  e.forEach((s) => {
8274
8338
  var n;
8275
8339
  const r = this._data.get(s);
8276
- rt.warn(`Evicting data item: ${s}`, {
8340
+ nt.warn(`Evicting data item: ${s}`, {
8277
8341
  itemId: s,
8278
8342
  itemType: r ? (n = r.constructor) == null ? void 0 : n.name : "unknown",
8279
8343
  strategy: this._evictionStrategy
@@ -8285,7 +8349,7 @@ class rc {
8285
8349
  * @private
8286
8350
  */
8287
8351
  _logDataEvictionComplete(e) {
8288
- rt.info(
8352
+ nt.info(
8289
8353
  `Evicted ${e} data items. Current size: ${this._data.size}/${this._maxCapacity}`
8290
8354
  );
8291
8355
  }
@@ -8321,7 +8385,7 @@ class YE {
8321
8385
  this.type = e, this.model = s, this.childRegistration = r;
8322
8386
  }
8323
8387
  get factory() {
8324
- return pe.Factory.create(this.type);
8388
+ return ge.Factory.create(this.type);
8325
8389
  }
8326
8390
  get registration() {
8327
8391
  return {
@@ -8345,7 +8409,7 @@ class WE {
8345
8409
  this.type = e, this.model = s, this.childRegistration = r;
8346
8410
  }
8347
8411
  get factory() {
8348
- return pe.Singleton.create(this.type);
8412
+ return ge.Singleton.create(this.type);
8349
8413
  }
8350
8414
  get registration() {
8351
8415
  return {
@@ -8361,7 +8425,7 @@ class WE {
8361
8425
  return Ae(this.type);
8362
8426
  }
8363
8427
  }
8364
- class Bp {
8428
+ class jp {
8365
8429
  constructor() {
8366
8430
  l(this, "_token");
8367
8431
  Pe(this), O("token", (e) => {
@@ -8375,7 +8439,7 @@ class Bp {
8375
8439
  this._token = e;
8376
8440
  }
8377
8441
  }
8378
- class jp {
8442
+ class Bp {
8379
8443
  constructor() {
8380
8444
  l(this, "routes", []);
8381
8445
  l(this, "openApiRoutes", []);
@@ -8601,7 +8665,7 @@ var xe = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.T
8601
8665
  const cc = g.createLogger({
8602
8666
  name: "config-bean-service",
8603
8667
  group: "Services"
8604
- }), vo = ge, qp = (t) => (t == null ? void 0 : t.decimals) !== void 0, { postModel: Kp, getOne: Vp } = de.build({
8668
+ }), vo = me, qp = (t) => (t == null ? void 0 : t.decimals) !== void 0, { postModel: Kp, getOne: Vp } = he.build({
8605
8669
  destinationAddress: "",
8606
8670
  basePath: `${vo}/kos/config/`
8607
8671
  }), Gp = async (t, e, s = "/api/kos/config") => (cc.debug(`sending modify request for ConfigBean: ${t}`), Kp({
@@ -8691,7 +8755,7 @@ let wr = class {
8691
8755
  modifyConfigBean: s = Gp,
8692
8756
  getConfigBean: r = Yp
8693
8757
  } = e;
8694
- this._modifyConfigBean = s, this._getConfigBean = r, this.props = Ue(), this.prevProps = Ue();
8758
+ this._modifyConfigBean = s, this._getConfigBean = r, this.props = je(), this.prevProps = je();
8695
8759
  }
8696
8760
  /**
8697
8761
  * Gets current configuration property values.
@@ -8812,7 +8876,7 @@ dc([
8812
8876
  wr = dc([
8813
8877
  R(Mo)
8814
8878
  ], wr);
8815
- const Mr = new Oe({
8879
+ const Mr = new Se({
8816
8880
  class: wr,
8817
8881
  type: Mo
8818
8882
  }), Eo = ({ path: t, lazy: e, serviceBasePath: s }) => (r, n) => {
@@ -8826,7 +8890,7 @@ const Mr = new Oe({
8826
8890
  lifecycle: x.INIT,
8827
8891
  lazy: e
8828
8892
  };
8829
- }, { URL: hc } = me(), { getOne: rg, getAll: ng } = de.build({
8893
+ }, { URL: hc } = ye(), { getOne: rg, getAll: ng } = he.build({
8830
8894
  basePath: `${hc}/api/kos/regions/info`
8831
8895
  }), fc = async () => {
8832
8896
  try {
@@ -8847,7 +8911,7 @@ const Mr = new Oe({
8847
8911
  getRegionInfo: fc,
8848
8912
  getRegions: pc
8849
8913
  }, Symbol.toStringTag, { value: "Module" }));
8850
- var fe = /* @__PURE__ */ ((t) => (t[t.family = 0] = "family", t[t.scale = 1] = "scale", t[t.offset = 2] = "offset", t[t.decimals = 3] = "decimals", t[t.alias = 4] = "alias", t[t.system = 5] = "system", t))(fe || {});
8914
+ var pe = /* @__PURE__ */ ((t) => (t[t.family = 0] = "family", t[t.scale = 1] = "scale", t[t.offset = 2] = "offset", t[t.decimals = 3] = "decimals", t[t.alias = 4] = "alias", t[t.system = 5] = "system", t))(pe || {});
8851
8915
  const gc = {
8852
8916
  s: ["time", 1, 0, 0],
8853
8917
  second: ["time", 1, 0, 0],
@@ -9072,7 +9136,7 @@ let ws = class {
9072
9136
  this.unitSystemMap
9073
9137
  ).join(", ")}`
9074
9138
  );
9075
- return s[fe.system];
9139
+ return s[pe.system];
9076
9140
  }
9077
9141
  getUnitMeasure(t) {
9078
9142
  const e = t === "drt" ? "second" : t, s = this.unitSystemMap[e];
@@ -9082,7 +9146,7 @@ let ws = class {
9082
9146
  this.unitSystemMap
9083
9147
  ).join(", ")}`
9084
9148
  );
9085
- return s[fe.family];
9149
+ return s[pe.family];
9086
9150
  }
9087
9151
  /**
9088
9152
  *@internal
@@ -9111,7 +9175,7 @@ let ws = class {
9111
9175
  o
9112
9176
  ).join(", ")}`
9113
9177
  );
9114
- return i[fe.decimals];
9178
+ return i[pe.decimals];
9115
9179
  }
9116
9180
  /**
9117
9181
  *@internal
@@ -9139,11 +9203,11 @@ let ws = class {
9139
9203
  *@internal
9140
9204
  */
9141
9205
  convertByUnit(t, e, s) {
9142
- if (e[fe.family] !== s[fe.family])
9206
+ if (e[pe.family] !== s[pe.family])
9143
9207
  throw new Error(
9144
- `Cannot convert between units of different families: ${e[fe.family]} and ${s[fe.family]}`
9208
+ `Cannot convert between units of different families: ${e[pe.family]} and ${s[pe.family]}`
9145
9209
  );
9146
- const r = e[fe.offset], n = e[fe.scale], o = s[fe.scale], i = s[fe.offset], a = s[fe.decimals];
9210
+ const r = e[pe.offset], n = e[pe.scale], o = s[pe.scale], i = s[pe.offset], a = s[pe.decimals];
9147
9211
  return ((t - r) / (n / o) + i).toFixed(a);
9148
9212
  }
9149
9213
  /**
@@ -9245,7 +9309,7 @@ _o([
9245
9309
  ws = _o([
9246
9310
  R(gr)
9247
9311
  ], ws);
9248
- const le = {
9312
+ const ue = {
9249
9313
  registration: {
9250
9314
  [gr]: {
9251
9315
  class: ws,
@@ -9253,7 +9317,7 @@ const le = {
9253
9317
  }
9254
9318
  },
9255
9319
  type: gr,
9256
- factory: pe.Singleton.create(gr)
9320
+ factory: ge.Singleton.create(gr)
9257
9321
  }, Er = ({
9258
9322
  source: t,
9259
9323
  defaultSystem: e = "si",
@@ -9263,7 +9327,7 @@ const le = {
9263
9327
  return typeof t == "string" ? r = { ...r, unit: t } : r = { ...r, ...t }, r;
9264
9328
  }, mc = (t, e, s) => {
9265
9329
  const { model: r } = Be(
9266
- le.type
9330
+ ue.type
9267
9331
  );
9268
9332
  if (!r)
9269
9333
  throw new Error("RegionInfo model not found");
@@ -9292,7 +9356,7 @@ function yi(t, e, s) {
9292
9356
  }
9293
9357
  const o_ = (t, e, s, r) => {
9294
9358
  const n = mc(t, e, s), o = Er({ source: e }), { model: i } = Be(
9295
- le.type
9359
+ ue.type
9296
9360
  );
9297
9361
  if (!i)
9298
9362
  throw new Error("RegionInfo model not found");
@@ -9437,7 +9501,7 @@ function mg(t, e) {
9437
9501
  const s = /* @__PURE__ */ new Date();
9438
9502
  s.setHours(0, 0, 0, 0);
9439
9503
  const r = new Date(s.getTime() + t * 1e3);
9440
- return ct(r, e);
9504
+ return lt(r, e);
9441
9505
  }
9442
9506
  const mr = "config-bean-prop-model", Tt = g.createLogger({ name: "config-bean-prop-model" }), yg = Yt("path"), bg = Yt("serviceBasePath");
9443
9507
  let Ms = class {
@@ -9808,7 +9872,7 @@ let Ms = class {
9808
9872
  }
9809
9873
  };
9810
9874
  To([
9811
- ks({ modelType: le.type })
9875
+ ks({ modelType: ue.type })
9812
9876
  ], Ms.prototype, "regionInfo", 2);
9813
9877
  To([
9814
9878
  Eo({ path: yg, serviceBasePath: bg })
@@ -9824,7 +9888,7 @@ const Zt = {
9824
9888
  }
9825
9889
  },
9826
9890
  type: mr,
9827
- factory: pe.Factory.create(
9891
+ factory: ge.Factory.create(
9828
9892
  mr
9829
9893
  )
9830
9894
  };
@@ -9857,9 +9921,9 @@ function i_(t) {
9857
9921
  }
9858
9922
  const vg = "future-model", Fs = Ls(
9859
9923
  vg
9860
- ), tn = g.createLogger({ name: "future-service", group: "Services" }), { isMock: wg, URL: Ns } = me();
9924
+ ), tn = g.createLogger({ name: "future-service", group: "Services" }), { isMock: wg, URL: Ns } = ye();
9861
9925
  var ft = /* @__PURE__ */ ((t) => (t.Success = "SUCCESS", t.Fail = "FAIL", t.Aborted = "ABORT", t.Canceled = "CANCEL", t))(ft || {});
9862
- const { getAll: Mg, modifyModel: Eg, addModel: _g, deleteModel: Tg, postModel: $g } = de.build({
9926
+ const { getAll: Mg, modifyModel: Eg, addModel: _g, deleteModel: Tg, postModel: $g } = he.build({
9863
9927
  destinationAddress: "",
9864
9928
  basePath: `${Ns}/api/future`,
9865
9929
  mock: wg
@@ -9923,7 +9987,7 @@ let _r = class {
9923
9987
  Object.assign(this, e), this.logger = s.logger, this.id = t, this.futureId = e.id, this.namespace = e.namespace || "kos", this._cancelFuture = Sg, mi(
9924
9988
  () => this.status === ft.Success || this.status === ft.Fail,
9925
9989
  () => {
9926
- On.info(`Future ${this.id} has completed with status ${this.status}`), ht(this);
9990
+ On.info(`Future ${this.id} has completed with status ${this.status}`), Ue(this);
9927
9991
  }
9928
9992
  );
9929
9993
  }
@@ -10026,7 +10090,7 @@ wc([
10026
10090
  _r = wc([
10027
10091
  R(Fs.type)
10028
10092
  ], _r);
10029
- const Pg = _r, Ag = et();
10093
+ const Pg = _r, Ag = tt();
10030
10094
  var Rg = Object.defineProperty, kg = Object.getOwnPropertyDescriptor, Mc = (t, e, s, r) => {
10031
10095
  for (var n = r > 1 ? void 0 : r ? kg(e, s) : e, o = t.length - 1, i; o >= 0; o--)
10032
10096
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
@@ -10041,7 +10105,7 @@ let Tr = class {
10041
10105
  l(this, "logger");
10042
10106
  /** Internal HTTP router instance handling middleware chains */
10043
10107
  l(this, "router");
10044
- this._id = t, this.logger = s.logger, this.router = new jp();
10108
+ this._id = t, this.logger = s.logger, this.router = new Bp();
10045
10109
  }
10046
10110
  /** Model instance identifier */
10047
10111
  get id() {
@@ -10142,18 +10206,18 @@ const _c = new Re({
10142
10206
  pt.type,
10143
10207
  {}
10144
10208
  ).addFutureModel(e), e;
10145
- }, Bg = (t) => pt.build(
10209
+ }, jg = (t) => pt.build(
10146
10210
  pt.type,
10147
10211
  {}
10148
10212
  ).getFuture(String(t)), Nt = {
10149
10213
  buildFutureModel: Tc,
10150
10214
  initiateFuture: Ug,
10151
- getFuture: Bg
10215
+ getFuture: jg
10152
10216
  };
10153
- var jg = Object.defineProperty, Hg = Object.getOwnPropertyDescriptor, $o = (t, e, s, r) => {
10217
+ var Bg = Object.defineProperty, Hg = Object.getOwnPropertyDescriptor, $o = (t, e, s, r) => {
10154
10218
  for (var n = r > 1 ? void 0 : r ? Hg(e, s) : e, o = t.length - 1, i; o >= 0; o--)
10155
10219
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
10156
- return r && n && jg(e, s, n), n;
10220
+ return r && n && Bg(e, s, n), n;
10157
10221
  };
10158
10222
  const Zs = g.getLogger(pt.type);
10159
10223
  let Es = class {
@@ -10166,7 +10230,7 @@ let Es = class {
10166
10230
  l(this, "createModel");
10167
10231
  l(this, "deleteModel");
10168
10232
  const { deleteFuture: r = Ig, addFuture: n = Og } = e;
10169
- this.logger = s.logger, this._deleteFuture = r, this._addFuture = n, this.id = t, this._futures = new Ve(), this.createModel = this.createFuture, this.deleteModel = this.removeFuture;
10233
+ this.logger = s.logger, this._deleteFuture = r, this._addFuture = n, this.id = t, this._futures = new Ge(), this.createModel = this.createFuture, this.deleteModel = this.removeFuture;
10170
10234
  }
10171
10235
  /**
10172
10236
  * @category Computed
@@ -10300,7 +10364,7 @@ let Es = class {
10300
10364
  }
10301
10365
  };
10302
10366
  $o([
10303
- Ke
10367
+ Ve
10304
10368
  ], Es.prototype, "_futures", 2);
10305
10369
  $o([
10306
10370
  H({
@@ -10310,9 +10374,9 @@ $o([
10310
10374
  Es = $o([
10311
10375
  R(pt.type)
10312
10376
  ], Es);
10313
- const zg = Es, { URL: Us } = me(), { getOne: qg, postModel: Kg, deleteModel: $c } = de.build({
10377
+ const zg = Es, { URL: Us } = ye(), { getOne: qg, postModel: Kg, deleteModel: $c } = he.build({
10314
10378
  basePath: `${Us}/api/keyVal`
10315
- }), Bn = g.createLogger({
10379
+ }), jn = g.createLogger({
10316
10380
  name: "key-value-service",
10317
10381
  group: "Services"
10318
10382
  }), Ic = async (t, e) => {
@@ -10326,17 +10390,17 @@ const zg = Es, { URL: Us } = me(), { getOne: qg, postModel: Kg, deleteModel: $c
10326
10390
  model: s.toString()
10327
10391
  });
10328
10392
  if ((r == null ? void 0 : r.status) !== 200)
10329
- throw Bn.error("Failed to update key-value data", r), new Error(
10393
+ throw jn.error("Failed to update key-value data", r), new Error(
10330
10394
  `Failed to update key-value data for namespace ${t}`
10331
10395
  );
10332
10396
  return r.data;
10333
10397
  }, Sc = async (t = "studio") => {
10334
- Bn.debug(`Retrieving all key-value data for namespace: ${t}`);
10398
+ jn.debug(`Retrieving all key-value data for namespace: ${t}`);
10335
10399
  const e = await qg({
10336
10400
  urlOverride: `${Us}/api/keyVal/${t}`
10337
10401
  });
10338
10402
  if ((e == null ? void 0 : e.status) !== 200)
10339
- throw Bn.error("Failed to retrieve key-value data", e), new Error(
10403
+ throw jn.error("Failed to retrieve key-value data", e), new Error(
10340
10404
  `Failed to retrieve key-value data for namespace ${t}`
10341
10405
  );
10342
10406
  return e.data;
@@ -10364,7 +10428,7 @@ let _s = class {
10364
10428
  l(this, "logger");
10365
10429
  l(this, "namespace");
10366
10430
  l(this, "data");
10367
- this.id = t, this.logger = s.logger, this.data = Ue(), this.namespace = e.namespace || "studio";
10431
+ this.id = t, this.logger = s.logger, this.data = je(), this.namespace = e.namespace || "studio";
10368
10432
  }
10369
10433
  /**
10370
10434
  * @internal
@@ -10420,21 +10484,21 @@ Io([
10420
10484
  _s = Io([
10421
10485
  R(Cc)
10422
10486
  ], _s);
10423
- const Dc = new Oe({
10487
+ const Dc = new Se({
10424
10488
  class: _s,
10425
10489
  type: Cc
10426
10490
  });
10427
- var ve = "INUMBER", Jt = "IOP1", Xt = "IOP2", es = "IOP3", je = "IVAR", gt = "IVARNAME", Ut = "IFUNCALL", sn = "IFUNDEF", ue = "IEXPR", Oo = "IEXPREVAL", bt = "IMEMBER", rn = "IENDSTATEMENT", Bt = "IARRAY";
10491
+ var we = "INUMBER", Jt = "IOP1", Xt = "IOP2", es = "IOP3", He = "IVAR", gt = "IVARNAME", Ut = "IFUNCALL", sn = "IFUNDEF", de = "IEXPR", Oo = "IEXPREVAL", bt = "IMEMBER", rn = "IENDSTATEMENT", jt = "IARRAY";
10428
10492
  function A(t, e) {
10429
10493
  this.type = t, this.value = e ?? 0;
10430
10494
  }
10431
10495
  A.prototype.toString = function() {
10432
10496
  switch (this.type) {
10433
- case ve:
10497
+ case we:
10434
10498
  case Jt:
10435
10499
  case Xt:
10436
10500
  case es:
10437
- case je:
10501
+ case He:
10438
10502
  case gt:
10439
10503
  case rn:
10440
10504
  return this.value;
@@ -10442,7 +10506,7 @@ A.prototype.toString = function() {
10442
10506
  return "CALL " + this.value;
10443
10507
  case sn:
10444
10508
  return "DEF " + this.value;
10445
- case Bt:
10509
+ case jt:
10446
10510
  return "ARRAY " + this.value;
10447
10511
  case bt:
10448
10512
  return "." + this.value;
@@ -10453,33 +10517,33 @@ A.prototype.toString = function() {
10453
10517
  function nn(t) {
10454
10518
  return new A(Jt, t);
10455
10519
  }
10456
- function Ge(t) {
10520
+ function Ye(t) {
10457
10521
  return new A(Xt, t);
10458
10522
  }
10459
10523
  function xc(t) {
10460
10524
  return new A(es, t);
10461
10525
  }
10462
- function jn(t, e, s, r, n) {
10526
+ function Bn(t, e, s, r, n) {
10463
10527
  for (var o = [], i = [], a, c, u, d, h = 0; h < t.length; h++) {
10464
10528
  var f = t[h], p = f.type;
10465
- if (p === ve || p === gt)
10466
- Array.isArray(f.value) ? o.push.apply(o, jn(f.value.map(function(m) {
10467
- return new A(ve, m);
10468
- }).concat(new A(Bt, f.value.length)), e, s, r, n)) : o.push(f);
10469
- else if (p === je && n.hasOwnProperty(f.value))
10470
- f = new A(ve, n[f.value]), o.push(f);
10529
+ if (p === we || p === gt)
10530
+ Array.isArray(f.value) ? o.push.apply(o, Bn(f.value.map(function(m) {
10531
+ return new A(we, m);
10532
+ }).concat(new A(jt, f.value.length)), e, s, r, n)) : o.push(f);
10533
+ else if (p === He && n.hasOwnProperty(f.value))
10534
+ f = new A(we, n[f.value]), o.push(f);
10471
10535
  else if (p === Xt && o.length > 1)
10472
- c = o.pop(), a = o.pop(), d = s[f.value], f = new A(ve, d(a.value, c.value)), o.push(f);
10536
+ c = o.pop(), a = o.pop(), d = s[f.value], f = new A(we, d(a.value, c.value)), o.push(f);
10473
10537
  else if (p === es && o.length > 2)
10474
- u = o.pop(), c = o.pop(), a = o.pop(), f.value === "?" ? o.push(a.value ? c.value : u.value) : (d = r[f.value], f = new A(ve, d(a.value, c.value, u.value)), o.push(f));
10538
+ u = o.pop(), c = o.pop(), a = o.pop(), f.value === "?" ? o.push(a.value ? c.value : u.value) : (d = r[f.value], f = new A(we, d(a.value, c.value, u.value)), o.push(f));
10475
10539
  else if (p === Jt && o.length > 0)
10476
- a = o.pop(), d = e[f.value], f = new A(ve, d(a.value)), o.push(f);
10477
- else if (p === ue) {
10540
+ a = o.pop(), d = e[f.value], f = new A(we, d(a.value)), o.push(f);
10541
+ else if (p === de) {
10478
10542
  for (; o.length > 0; )
10479
10543
  i.push(o.shift());
10480
- i.push(new A(ue, jn(f.value, e, s, r, n)));
10544
+ i.push(new A(de, Bn(f.value, e, s, r, n)));
10481
10545
  } else if (p === bt && o.length > 0)
10482
- a = o.pop(), o.push(new A(ve, a.value[f.value]));
10546
+ a = o.pop(), o.push(new A(we, a.value[f.value]));
10483
10547
  else {
10484
10548
  for (; o.length > 0; )
10485
10549
  i.push(o.shift());
@@ -10493,29 +10557,29 @@ function jn(t, e, s, r, n) {
10493
10557
  function Pc(t, e, s) {
10494
10558
  for (var r = [], n = 0; n < t.length; n++) {
10495
10559
  var o = t[n], i = o.type;
10496
- if (i === je && o.value === e)
10560
+ if (i === He && o.value === e)
10497
10561
  for (var a = 0; a < s.tokens.length; a++) {
10498
10562
  var c = s.tokens[a], u;
10499
- c.type === Jt ? u = nn(c.value) : c.type === Xt ? u = Ge(c.value) : c.type === es ? u = xc(c.value) : u = new A(c.type, c.value), r.push(u);
10563
+ c.type === Jt ? u = nn(c.value) : c.type === Xt ? u = Ye(c.value) : c.type === es ? u = xc(c.value) : u = new A(c.type, c.value), r.push(u);
10500
10564
  }
10501
10565
  else
10502
- i === ue ? r.push(new A(ue, Pc(o.value, e, s))) : r.push(o);
10566
+ i === de ? r.push(new A(de, Pc(o.value, e, s))) : r.push(o);
10503
10567
  }
10504
10568
  return r;
10505
10569
  }
10506
- function it(t, e, s) {
10570
+ function at(t, e, s) {
10507
10571
  var r = [], n, o, i, a, c, u;
10508
10572
  if (So(t))
10509
10573
  return Fe(t, s);
10510
10574
  for (var d = t.length, h = 0; h < d; h++) {
10511
10575
  var f = t[h], p = f.type;
10512
- if (p === ve || p === gt)
10576
+ if (p === we || p === gt)
10513
10577
  r.push(f.value);
10514
10578
  else if (p === Xt)
10515
- o = r.pop(), n = r.pop(), f.value === "and" ? r.push(n ? !!it(o, e, s) : !1) : f.value === "or" ? r.push(n ? !0 : !!it(o, e, s)) : f.value === "=" ? (a = e.binaryOps[f.value], r.push(a(n, it(o, e, s), s))) : (a = e.binaryOps[f.value], r.push(a(Fe(n, s), Fe(o, s))));
10579
+ o = r.pop(), n = r.pop(), f.value === "and" ? r.push(n ? !!at(o, e, s) : !1) : f.value === "or" ? r.push(n ? !0 : !!at(o, e, s)) : f.value === "=" ? (a = e.binaryOps[f.value], r.push(a(n, at(o, e, s), s))) : (a = e.binaryOps[f.value], r.push(a(Fe(n, s), Fe(o, s))));
10516
10580
  else if (p === es)
10517
- i = r.pop(), o = r.pop(), n = r.pop(), f.value === "?" ? r.push(it(n ? o : i, e, s)) : (a = e.ternaryOps[f.value], r.push(a(Fe(n, s), Fe(o, s), Fe(i, s))));
10518
- else if (p === je)
10581
+ i = r.pop(), o = r.pop(), n = r.pop(), f.value === "?" ? r.push(at(n ? o : i, e, s)) : (a = e.ternaryOps[f.value], r.push(a(Fe(n, s), Fe(o, s), Fe(i, s))));
10582
+ else if (p === He)
10519
10583
  if (f.value in e.functions)
10520
10584
  r.push(e.functions[f.value]);
10521
10585
  else if (f.value in e.unaryOps && e.parser.isOperatorEnabled(f.value))
@@ -10543,14 +10607,14 @@ function it(t, e, s) {
10543
10607
  var k = r.pop(), U = function() {
10544
10608
  for (var $ = Object.assign({}, s), E = 0, V = v.length; E < V; E++)
10545
10609
  $[v[E]] = arguments[E];
10546
- return it(b, e, $);
10610
+ return at(b, e, $);
10547
10611
  };
10548
10612
  return Object.defineProperty(U, "name", {
10549
10613
  value: k,
10550
10614
  writable: !1
10551
10615
  }), s[k] = U, U;
10552
10616
  }());
10553
- else if (p === ue)
10617
+ else if (p === de)
10554
10618
  r.push(Wg(f, e));
10555
10619
  else if (p === Oo)
10556
10620
  r.push(f);
@@ -10558,7 +10622,7 @@ function it(t, e, s) {
10558
10622
  n = r.pop(), r.push(n[f.value]);
10559
10623
  else if (p === rn)
10560
10624
  r.pop();
10561
- else if (p === Bt) {
10625
+ else if (p === jt) {
10562
10626
  for (u = f.value, c = []; u-- > 0; )
10563
10627
  c.unshift(r.pop());
10564
10628
  r.push(c);
@@ -10573,7 +10637,7 @@ function Wg(t, e, s) {
10573
10637
  return So(t) ? t : {
10574
10638
  type: Oo,
10575
10639
  value: function(r) {
10576
- return it(t.value, e, r);
10640
+ return at(t.value, e, r);
10577
10641
  }
10578
10642
  };
10579
10643
  }
@@ -10586,7 +10650,7 @@ function Fe(t, e) {
10586
10650
  function Co(t, e) {
10587
10651
  for (var s = [], r, n, o, i, a, c, u = 0; u < t.length; u++) {
10588
10652
  var d = t[u], h = d.type;
10589
- if (h === ve)
10653
+ if (h === we)
10590
10654
  typeof d.value == "number" && d.value < 0 ? s.push("(" + d.value + ")") : Array.isArray(d.value) ? s.push("[" + d.value.map(wi).join(", ") + "]") : s.push(wi(d.value));
10591
10655
  else if (h === Xt)
10592
10656
  n = s.pop(), r = s.pop(), i = d.value, e ? i === "^" ? s.push("Math.pow(" + r + ", " + n + ")") : i === "and" ? s.push("(!!" + r + " && !!" + n + ")") : i === "or" ? s.push("(!!" + r + " || !!" + n + ")") : i === "||" ? s.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }((" + r + "),(" + n + ")))") : i === "==" ? s.push("(" + r + " === " + n + ")") : i === "!=" ? s.push("(" + r + " !== " + n + ")") : i === "[" ? s.push(r + "[(" + n + ") | 0]") : s.push("(" + r + " " + i + " " + n + ")") : i === "[" ? s.push(r + "[" + n + "]") : s.push("(" + r + " " + i + " " + n + ")");
@@ -10595,7 +10659,7 @@ function Co(t, e) {
10595
10659
  s.push("(" + r + " ? " + n + " : " + o + ")");
10596
10660
  else
10597
10661
  throw new Error("invalid Expression");
10598
- else if (h === je || h === gt)
10662
+ else if (h === He || h === gt)
10599
10663
  s.push(d.value);
10600
10664
  else if (h === Jt)
10601
10665
  r = s.pop(), i = d.value, i === "-" || i === "+" ? s.push("(" + i + r + ")") : e ? i === "not" ? s.push("(!" + r + ")") : i === "!" ? s.push("fac(" + r + ")") : s.push(i + "(" + r + ")") : i === "!" ? s.push("(" + r + "!)") : s.push("(" + i + " " + r + ")");
@@ -10609,11 +10673,11 @@ function Co(t, e) {
10609
10673
  r = s.pop(), e ? s.push("(" + r + " = function(" + a.join(", ") + ") { return " + n + " })") : s.push("(" + r + "(" + a.join(", ") + ") = " + n + ")");
10610
10674
  } else if (h === bt)
10611
10675
  r = s.pop(), s.push(r + "." + d.value);
10612
- else if (h === Bt) {
10676
+ else if (h === jt) {
10613
10677
  for (c = d.value, a = []; c-- > 0; )
10614
10678
  a.unshift(s.pop());
10615
10679
  s.push("[" + a.join(", ") + "]");
10616
- } else if (h === ue)
10680
+ } else if (h === de)
10617
10681
  s.push("(" + Co(d.value, e) + ")");
10618
10682
  else if (h !== rn)
10619
10683
  throw new Error("invalid Expression");
@@ -10633,31 +10697,31 @@ function Do(t, e, s) {
10633
10697
  s = s || {};
10634
10698
  for (var r = !!s.withMembers, n = null, o = 0; o < t.length; o++) {
10635
10699
  var i = t[o];
10636
- i.type === je || i.type === gt ? !r && !xt(e, i.value) ? e.push(i.value) : (n !== null && (xt(e, n) || e.push(n)), n = i.value) : i.type === bt && r && n !== null ? n += "." + i.value : i.type === ue ? Do(i.value, e, s) : n !== null && (xt(e, n) || e.push(n), n = null);
10700
+ i.type === He || i.type === gt ? !r && !xt(e, i.value) ? e.push(i.value) : (n !== null && (xt(e, n) || e.push(n)), n = i.value) : i.type === bt && r && n !== null ? n += "." + i.value : i.type === de ? Do(i.value, e, s) : n !== null && (xt(e, n) || e.push(n), n = null);
10637
10701
  }
10638
10702
  n !== null && !xt(e, n) && e.push(n);
10639
10703
  }
10640
- function Ee(t, e) {
10704
+ function _e(t, e) {
10641
10705
  this.tokens = t, this.parser = e, this.unaryOps = e.unaryOps, this.binaryOps = e.binaryOps, this.ternaryOps = e.ternaryOps, this.functions = e.functions;
10642
10706
  }
10643
- Ee.prototype.simplify = function(t) {
10644
- return t = t || {}, new Ee(jn(this.tokens, this.unaryOps, this.binaryOps, this.ternaryOps, t), this.parser);
10707
+ _e.prototype.simplify = function(t) {
10708
+ return t = t || {}, new _e(Bn(this.tokens, this.unaryOps, this.binaryOps, this.ternaryOps, t), this.parser);
10645
10709
  };
10646
- Ee.prototype.substitute = function(t, e) {
10647
- return e instanceof Ee || (e = this.parser.parse(String(e))), new Ee(Pc(this.tokens, t, e), this.parser);
10710
+ _e.prototype.substitute = function(t, e) {
10711
+ return e instanceof _e || (e = this.parser.parse(String(e))), new _e(Pc(this.tokens, t, e), this.parser);
10648
10712
  };
10649
- Ee.prototype.evaluate = function(t) {
10650
- return t = t || {}, it(this.tokens, this, t);
10713
+ _e.prototype.evaluate = function(t) {
10714
+ return t = t || {}, at(this.tokens, this, t);
10651
10715
  };
10652
- Ee.prototype.toString = function() {
10716
+ _e.prototype.toString = function() {
10653
10717
  return Co(this.tokens, !1);
10654
10718
  };
10655
- Ee.prototype.symbols = function(t) {
10719
+ _e.prototype.symbols = function(t) {
10656
10720
  t = t || {};
10657
10721
  var e = [];
10658
10722
  return Do(this.tokens, e, t), e;
10659
10723
  };
10660
- Ee.prototype.variables = function(t) {
10724
+ _e.prototype.variables = function(t) {
10661
10725
  t = t || {};
10662
10726
  var e = [];
10663
10727
  Do(this.tokens, e, t);
@@ -10666,13 +10730,13 @@ Ee.prototype.variables = function(t) {
10666
10730
  return !(r in s);
10667
10731
  });
10668
10732
  };
10669
- Ee.prototype.toJSFunction = function(t, e) {
10733
+ _e.prototype.toJSFunction = function(t, e) {
10670
10734
  var s = this, r = new Function(t, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " + Co(this.simplify(e).tokens, !0) + "; }");
10671
10735
  return function() {
10672
10736
  return r.apply(s, arguments);
10673
10737
  };
10674
10738
  };
10675
- var Ts = "TEOF", j = "TOP", on = "TNUMBER", Ac = "TSTRING", He = "TPAREN", jt = "TBRACKET", an = "TCOMMA", xo = "TNAME", Po = "TSEMICOLON";
10739
+ var Ts = "TEOF", B = "TOP", on = "TNUMBER", Ac = "TSTRING", ze = "TPAREN", Bt = "TBRACKET", an = "TCOMMA", xo = "TNAME", Po = "TSEMICOLON";
10676
10740
  function Rc(t, e, s) {
10677
10741
  this.type = t, this.value = e, this.index = s;
10678
10742
  }
@@ -10715,11 +10779,11 @@ Y.prototype.isString = function() {
10715
10779
  };
10716
10780
  Y.prototype.isParen = function() {
10717
10781
  var t = this.expression.charAt(this.pos);
10718
- return t === "(" || t === ")" ? (this.current = this.newToken(He, t), this.pos++, !0) : !1;
10782
+ return t === "(" || t === ")" ? (this.current = this.newToken(ze, t), this.pos++, !0) : !1;
10719
10783
  };
10720
10784
  Y.prototype.isBracket = function() {
10721
10785
  var t = this.expression.charAt(this.pos);
10722
- return (t === "[" || t === "]") && this.isOperatorEnabled("[") ? (this.current = this.newToken(jt, t), this.pos++, !0) : !1;
10786
+ return (t === "[" || t === "]") && this.isOperatorEnabled("[") ? (this.current = this.newToken(Bt, t), this.pos++, !0) : !1;
10723
10787
  };
10724
10788
  Y.prototype.isComma = function() {
10725
10789
  var t = this.expression.charAt(this.pos);
@@ -10751,7 +10815,7 @@ Y.prototype.isNamedOp = function() {
10751
10815
  if (e > t) {
10752
10816
  var r = this.expression.substring(t, e);
10753
10817
  if (this.isOperatorEnabled(r) && (r in this.binaryOps || r in this.unaryOps || r in this.ternaryOps))
10754
- return this.current = this.newToken(j, r), this.pos += r.length, !0;
10818
+ return this.current = this.newToken(B, r), this.pos += r.length, !0;
10755
10819
  }
10756
10820
  return !1;
10757
10821
  };
@@ -10874,22 +10938,22 @@ Y.prototype.isNumber = function() {
10874
10938
  Y.prototype.isOperator = function() {
10875
10939
  var t = this.pos, e = this.expression.charAt(this.pos);
10876
10940
  if (e === "+" || e === "-" || e === "*" || e === "/" || e === "%" || e === "^" || e === "?" || e === ":" || e === ".")
10877
- this.current = this.newToken(j, e);
10941
+ this.current = this.newToken(B, e);
10878
10942
  else if (e === "∙" || e === "•")
10879
- this.current = this.newToken(j, "*");
10943
+ this.current = this.newToken(B, "*");
10880
10944
  else if (e === ">")
10881
- this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(j, ">="), this.pos++) : this.current = this.newToken(j, ">");
10945
+ this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, ">="), this.pos++) : this.current = this.newToken(B, ">");
10882
10946
  else if (e === "<")
10883
- this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(j, "<="), this.pos++) : this.current = this.newToken(j, "<");
10947
+ this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, "<="), this.pos++) : this.current = this.newToken(B, "<");
10884
10948
  else if (e === "|")
10885
10949
  if (this.expression.charAt(this.pos + 1) === "|")
10886
- this.current = this.newToken(j, "||"), this.pos++;
10950
+ this.current = this.newToken(B, "||"), this.pos++;
10887
10951
  else
10888
10952
  return !1;
10889
10953
  else if (e === "=")
10890
- this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(j, "=="), this.pos++) : this.current = this.newToken(j, e);
10954
+ this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, "=="), this.pos++) : this.current = this.newToken(B, e);
10891
10955
  else if (e === "!")
10892
- this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(j, "!="), this.pos++) : this.current = this.newToken(j, e);
10956
+ this.expression.charAt(this.pos + 1) === "=" ? (this.current = this.newToken(B, "!="), this.pos++) : this.current = this.newToken(B, e);
10893
10957
  else
10894
10958
  return !1;
10895
10959
  return this.pos++, this.isOperatorEnabled(this.current.value) ? !0 : (this.pos = t, !1);
@@ -10941,20 +11005,20 @@ z.prototype.parseAtom = function(t) {
10941
11005
  function s(n) {
10942
11006
  return n.value in e;
10943
11007
  }
10944
- if (this.accept(xo) || this.accept(j, s))
10945
- t.push(new A(je, this.current.value));
11008
+ if (this.accept(xo) || this.accept(B, s))
11009
+ t.push(new A(He, this.current.value));
10946
11010
  else if (this.accept(on))
10947
- t.push(new A(ve, this.current.value));
11011
+ t.push(new A(we, this.current.value));
10948
11012
  else if (this.accept(Ac))
10949
- t.push(new A(ve, this.current.value));
10950
- else if (this.accept(He, "("))
10951
- this.parseExpression(t), this.expect(He, ")");
10952
- else if (this.accept(jt, "["))
10953
- if (this.accept(jt, "]"))
10954
- t.push(new A(Bt, 0));
11013
+ t.push(new A(we, this.current.value));
11014
+ else if (this.accept(ze, "("))
11015
+ this.parseExpression(t), this.expect(ze, ")");
11016
+ else if (this.accept(Bt, "["))
11017
+ if (this.accept(Bt, "]"))
11018
+ t.push(new A(jt, 0));
10955
11019
  else {
10956
11020
  var r = this.parseArrayList(t);
10957
- t.push(new A(Bt, r));
11021
+ t.push(new A(jt, r));
10958
11022
  }
10959
11023
  else
10960
11024
  throw new Error("unexpected " + this.nextToken);
@@ -10968,69 +11032,69 @@ z.prototype.pushExpression = function(t, e) {
10968
11032
  t.push(e[s]);
10969
11033
  };
10970
11034
  z.prototype.parseUntilEndStatement = function(t, e) {
10971
- return this.accept(Po) ? (this.nextToken && this.nextToken.type !== Ts && !(this.nextToken.type === He && this.nextToken.value === ")") && e.push(new A(rn)), this.nextToken.type !== Ts && this.parseExpression(e), t.push(new A(ue, e)), !0) : !1;
11035
+ return this.accept(Po) ? (this.nextToken && this.nextToken.type !== Ts && !(this.nextToken.type === ze && this.nextToken.value === ")") && e.push(new A(rn)), this.nextToken.type !== Ts && this.parseExpression(e), t.push(new A(de, e)), !0) : !1;
10972
11036
  };
10973
11037
  z.prototype.parseArrayList = function(t) {
10974
- for (var e = 0; !this.accept(jt, "]"); )
11038
+ for (var e = 0; !this.accept(Bt, "]"); )
10975
11039
  for (this.parseExpression(t), ++e; this.accept(an); )
10976
11040
  this.parseExpression(t), ++e;
10977
11041
  return e;
10978
11042
  };
10979
11043
  z.prototype.parseVariableAssignmentExpression = function(t) {
10980
- for (this.parseConditionalExpression(t); this.accept(j, "="); ) {
11044
+ for (this.parseConditionalExpression(t); this.accept(B, "="); ) {
10981
11045
  var e = t.pop(), s = [], r = t.length - 1;
10982
11046
  if (e.type === Ut) {
10983
11047
  if (!this.tokens.isOperatorEnabled("()="))
10984
11048
  throw new Error("function definition is not permitted");
10985
11049
  for (var n = 0, o = e.value + 1; n < o; n++) {
10986
11050
  var i = r - n;
10987
- t[i].type === je && (t[i] = new A(gt, t[i].value));
11051
+ t[i].type === He && (t[i] = new A(gt, t[i].value));
10988
11052
  }
10989
- this.parseVariableAssignmentExpression(s), t.push(new A(ue, s)), t.push(new A(sn, e.value));
11053
+ this.parseVariableAssignmentExpression(s), t.push(new A(de, s)), t.push(new A(sn, e.value));
10990
11054
  continue;
10991
11055
  }
10992
- if (e.type !== je && e.type !== bt)
11056
+ if (e.type !== He && e.type !== bt)
10993
11057
  throw new Error("expected variable for assignment");
10994
- this.parseVariableAssignmentExpression(s), t.push(new A(gt, e.value)), t.push(new A(ue, s)), t.push(Ge("="));
11058
+ this.parseVariableAssignmentExpression(s), t.push(new A(gt, e.value)), t.push(new A(de, s)), t.push(Ye("="));
10995
11059
  }
10996
11060
  };
10997
11061
  z.prototype.parseConditionalExpression = function(t) {
10998
- for (this.parseOrExpression(t); this.accept(j, "?"); ) {
11062
+ for (this.parseOrExpression(t); this.accept(B, "?"); ) {
10999
11063
  var e = [], s = [];
11000
- this.parseConditionalExpression(e), this.expect(j, ":"), this.parseConditionalExpression(s), t.push(new A(ue, e)), t.push(new A(ue, s)), t.push(xc("?"));
11064
+ this.parseConditionalExpression(e), this.expect(B, ":"), this.parseConditionalExpression(s), t.push(new A(de, e)), t.push(new A(de, s)), t.push(xc("?"));
11001
11065
  }
11002
11066
  };
11003
11067
  z.prototype.parseOrExpression = function(t) {
11004
- for (this.parseAndExpression(t); this.accept(j, "or"); ) {
11068
+ for (this.parseAndExpression(t); this.accept(B, "or"); ) {
11005
11069
  var e = [];
11006
- this.parseAndExpression(e), t.push(new A(ue, e)), t.push(Ge("or"));
11070
+ this.parseAndExpression(e), t.push(new A(de, e)), t.push(Ye("or"));
11007
11071
  }
11008
11072
  };
11009
11073
  z.prototype.parseAndExpression = function(t) {
11010
- for (this.parseComparison(t); this.accept(j, "and"); ) {
11074
+ for (this.parseComparison(t); this.accept(B, "and"); ) {
11011
11075
  var e = [];
11012
- this.parseComparison(e), t.push(new A(ue, e)), t.push(Ge("and"));
11076
+ this.parseComparison(e), t.push(new A(de, e)), t.push(Ye("and"));
11013
11077
  }
11014
11078
  };
11015
11079
  var Zg = ["==", "!=", "<", "<=", ">=", ">", "in"];
11016
11080
  z.prototype.parseComparison = function(t) {
11017
- for (this.parseAddSub(t); this.accept(j, Zg); ) {
11081
+ for (this.parseAddSub(t); this.accept(B, Zg); ) {
11018
11082
  var e = this.current;
11019
- this.parseAddSub(t), t.push(Ge(e.value));
11083
+ this.parseAddSub(t), t.push(Ye(e.value));
11020
11084
  }
11021
11085
  };
11022
11086
  var Jg = ["+", "-", "||"];
11023
11087
  z.prototype.parseAddSub = function(t) {
11024
- for (this.parseTerm(t); this.accept(j, Jg); ) {
11088
+ for (this.parseTerm(t); this.accept(B, Jg); ) {
11025
11089
  var e = this.current;
11026
- this.parseTerm(t), t.push(Ge(e.value));
11090
+ this.parseTerm(t), t.push(Ye(e.value));
11027
11091
  }
11028
11092
  };
11029
11093
  var Xg = ["*", "/", "%"];
11030
11094
  z.prototype.parseTerm = function(t) {
11031
- for (this.parseFactor(t); this.accept(j, Xg); ) {
11095
+ for (this.parseFactor(t); this.accept(B, Xg); ) {
11032
11096
  var e = this.current;
11033
- this.parseFactor(t), t.push(Ge(e.value));
11097
+ this.parseFactor(t), t.push(Ye(e.value));
11034
11098
  }
11035
11099
  };
11036
11100
  z.prototype.parseFactor = function(t) {
@@ -11038,12 +11102,12 @@ z.prototype.parseFactor = function(t) {
11038
11102
  function s(n) {
11039
11103
  return n.value in e;
11040
11104
  }
11041
- if (this.save(), this.accept(j, s)) {
11105
+ if (this.save(), this.accept(B, s)) {
11042
11106
  if (this.current.value !== "-" && this.current.value !== "+") {
11043
- if (this.nextToken.type === He && this.nextToken.value === "(") {
11107
+ if (this.nextToken.type === ze && this.nextToken.value === "(") {
11044
11108
  this.restore(), this.parseExponential(t);
11045
11109
  return;
11046
- } else if (this.nextToken.type === Po || this.nextToken.type === an || this.nextToken.type === Ts || this.nextToken.type === He && this.nextToken.value === ")") {
11110
+ } else if (this.nextToken.type === Po || this.nextToken.type === an || this.nextToken.type === Ts || this.nextToken.type === ze && this.nextToken.value === ")") {
11047
11111
  this.restore(), this.parseAtom(t);
11048
11112
  return;
11049
11113
  }
@@ -11054,11 +11118,11 @@ z.prototype.parseFactor = function(t) {
11054
11118
  this.parseExponential(t);
11055
11119
  };
11056
11120
  z.prototype.parseExponential = function(t) {
11057
- for (this.parsePostfixExpression(t); this.accept(j, "^"); )
11058
- this.parseFactor(t), t.push(Ge("^"));
11121
+ for (this.parsePostfixExpression(t); this.accept(B, "^"); )
11122
+ this.parseFactor(t), t.push(Ye("^"));
11059
11123
  };
11060
11124
  z.prototype.parsePostfixExpression = function(t) {
11061
- for (this.parseFunctionCall(t); this.accept(j, "!"); )
11125
+ for (this.parseFunctionCall(t); this.accept(B, "!"); )
11062
11126
  t.push(nn("!"));
11063
11127
  };
11064
11128
  z.prototype.parseFunctionCall = function(t) {
@@ -11066,12 +11130,12 @@ z.prototype.parseFunctionCall = function(t) {
11066
11130
  function s(o) {
11067
11131
  return o.value in e;
11068
11132
  }
11069
- if (this.accept(j, s)) {
11133
+ if (this.accept(B, s)) {
11070
11134
  var r = this.current;
11071
11135
  this.parseAtom(t), t.push(nn(r.value));
11072
11136
  } else
11073
- for (this.parseMemberExpression(t); this.accept(He, "("); )
11074
- if (this.accept(He, ")"))
11137
+ for (this.parseMemberExpression(t); this.accept(ze, "("); )
11138
+ if (this.accept(ze, ")"))
11075
11139
  t.push(new A(Ut, 0));
11076
11140
  else {
11077
11141
  var n = this.parseArgumentList(t);
@@ -11079,13 +11143,13 @@ z.prototype.parseFunctionCall = function(t) {
11079
11143
  }
11080
11144
  };
11081
11145
  z.prototype.parseArgumentList = function(t) {
11082
- for (var e = 0; !this.accept(He, ")"); )
11146
+ for (var e = 0; !this.accept(ze, ")"); )
11083
11147
  for (this.parseExpression(t), ++e; this.accept(an); )
11084
11148
  this.parseExpression(t), ++e;
11085
11149
  return e;
11086
11150
  };
11087
11151
  z.prototype.parseMemberExpression = function(t) {
11088
- for (this.parseAtom(t); this.accept(j, ".") || this.accept(jt, "["); ) {
11152
+ for (this.parseAtom(t); this.accept(B, ".") || this.accept(Bt, "["); ) {
11089
11153
  var e = this.current;
11090
11154
  if (e.value === ".") {
11091
11155
  if (!this.allowMemberAccess)
@@ -11094,7 +11158,7 @@ z.prototype.parseMemberExpression = function(t) {
11094
11158
  } else if (e.value === "[") {
11095
11159
  if (!this.tokens.isOperatorEnabled("["))
11096
11160
  throw new Error('unexpected "[]", arrays are disabled');
11097
- this.parseExpression(t), this.expect(jt, "]"), t.push(Ge("["));
11161
+ this.parseExpression(t), this.expect(Bt, "]"), t.push(Ye("["));
11098
11162
  } else
11099
11163
  throw new Error("unexpected symbol: " + e.value);
11100
11164
  }
@@ -11296,10 +11360,10 @@ var $i = 1 / 3;
11296
11360
  function Um(t) {
11297
11361
  return t < 0 ? -Math.pow(-t, $i) : Math.pow(t, $i);
11298
11362
  }
11299
- function Bm(t) {
11363
+ function jm(t) {
11300
11364
  return Math.exp(t) - 1;
11301
11365
  }
11302
- function jm(t) {
11366
+ function Bm(t) {
11303
11367
  return Math.log(1 + t);
11304
11368
  }
11305
11369
  function Hm(t) {
@@ -11326,8 +11390,8 @@ function vt(t) {
11326
11390
  ln: Math.log,
11327
11391
  lg: Math.log10 || Mi,
11328
11392
  log10: Math.log10 || Mi,
11329
- expm1: Math.expm1 || Bm,
11330
- log1p: Math.log1p || jm,
11393
+ expm1: Math.expm1 || jm,
11394
+ log1p: Math.log1p || Bm,
11331
11395
  abs: Math.abs,
11332
11396
  ceil: Math.ceil,
11333
11397
  floor: Math.floor,
@@ -11392,7 +11456,7 @@ vt.prototype.parse = function(t) {
11392
11456
  new Y(this, t),
11393
11457
  { allowMemberAccess: this.options.allowMemberAccess }
11394
11458
  );
11395
- return s.parseExpression(e), s.expect(Ts, "EOF"), new Ee(e, this);
11459
+ return s.parseExpression(e), s.expect(Ts, "EOF"), new _e(e, this);
11396
11460
  };
11397
11461
  vt.prototype.evaluate = function(t, e) {
11398
11462
  return this.parse(t).evaluate(e);
@@ -11488,7 +11552,7 @@ let $r = class {
11488
11552
  // Use ObservableData for results to handle dynamic properties properly
11489
11553
  l(this, "_results");
11490
11554
  l(this, "_contextRevision", 0);
11491
- this.id = t, this.logger = s.logger, this._data = Ue(), this._results = Ue(), this.parser = new vt();
11555
+ this.id = t, this.logger = s.logger, this._data = je(), this._results = je(), this.parser = new vt();
11492
11556
  }
11493
11557
  /**
11494
11558
  * Get the current context data that expressions are evaluated against.
@@ -11894,8 +11958,8 @@ Ht = cn([
11894
11958
  const oy = new Re({
11895
11959
  class: Ht,
11896
11960
  type: Fc
11897
- }), { URL: Bs } = me(), { postModel: Ro, getOne: iy } = de.build({
11898
- basePath: `${Bs}/api/kos-time`
11961
+ }), { URL: js } = ye(), { postModel: Ro, getOne: iy } = he.build({
11962
+ basePath: `${js}/api/kos-time`
11899
11963
  });
11900
11964
  g.createLogger({
11901
11965
  name: "kos-time-service",
@@ -11904,7 +11968,7 @@ g.createLogger({
11904
11968
  const Nc = async (t) => {
11905
11969
  const e = await Ro({
11906
11970
  model: t,
11907
- urlOverride: `${Bs}/api/kos/time/time`
11971
+ urlOverride: `${js}/api/kos/time/time`
11908
11972
  });
11909
11973
  if ((e == null ? void 0 : e.status) !== 200)
11910
11974
  throw Error("Failed to set time");
@@ -11912,32 +11976,32 @@ const Nc = async (t) => {
11912
11976
  }, Uc = async (t) => {
11913
11977
  const e = await Ro({
11914
11978
  model: t,
11915
- urlOverride: `${Bs}/api/kos/time/date`
11979
+ urlOverride: `${js}/api/kos/time/date`
11916
11980
  });
11917
11981
  if ((e == null ? void 0 : e.status) !== 200)
11918
11982
  throw Error("Failed to set time");
11919
11983
  return e.data;
11920
- }, Bc = async (t) => {
11984
+ }, jc = async (t) => {
11921
11985
  const e = await Ro({
11922
11986
  model: {},
11923
- urlOverride: `${Bs}/api/kos/time/timezone?tz=${t}`
11987
+ urlOverride: `${js}/api/kos/time/timezone?tz=${t}`
11924
11988
  });
11925
11989
  if ((e == null ? void 0 : e.status) !== 200)
11926
11990
  throw Error("Failed to set timezone");
11927
11991
  return e.data;
11928
- }, jc = async () => {
11992
+ }, Bc = async () => {
11929
11993
  const t = await iy({
11930
- urlOverride: `${Bs}/api/kos/time/timezone`
11994
+ urlOverride: `${js}/api/kos/time/timezone`
11931
11995
  });
11932
11996
  if ((t == null ? void 0 : t.status) !== 200)
11933
11997
  throw Error("Failed to set timezone");
11934
11998
  return t.data.timeZone;
11935
11999
  }, d_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11936
12000
  __proto__: null,
11937
- getTimezone: jc,
12001
+ getTimezone: Bc,
11938
12002
  setDate: Uc,
11939
12003
  setTime: Nc,
11940
- setTimezone: Bc
12004
+ setTimezone: jc
11941
12005
  }, Symbol.toStringTag, { value: "Module" }));
11942
12006
  var ay = Object.defineProperty, cy = Object.getOwnPropertyDescriptor, ln = (t, e, s, r) => {
11943
12007
  for (var n = r > 1 ? void 0 : r ? cy(e, s) : e, o = t.length - 1, i; o >= 0; o--)
@@ -11973,7 +12037,7 @@ let zt = class {
11973
12037
  * @param timezone - The timezone to set the system timezone to
11974
12038
  */
11975
12039
  async updateSystemTimezone(t) {
11976
- await Bc(t);
12040
+ await jc(t);
11977
12041
  }
11978
12042
  handleTimeChange() {
11979
12043
  G(pr.TIME_CHANGE, {});
@@ -11992,7 +12056,7 @@ let zt = class {
11992
12056
  this.logger.debug(`initializing kos-time ${this.id}`);
11993
12057
  }
11994
12058
  async retrieveTimezone() {
11995
- const t = await jc();
12059
+ const t = await Bc();
11996
12060
  this.setTimezone(t);
11997
12061
  }
11998
12062
  setTimezone(t) {
@@ -12026,7 +12090,7 @@ const Hn = {
12026
12090
  },
12027
12091
  type: os,
12028
12092
  predicate: Ae(os),
12029
- factory: pe.Singleton.create(os)
12093
+ factory: ge.Singleton.create(os)
12030
12094
  };
12031
12095
  var hy = Object.defineProperty, fy = Object.getOwnPropertyDescriptor, Hc = (t, e, s, r) => {
12032
12096
  for (var n = r > 1 ? void 0 : r ? fy(e, s) : e, o = t.length - 1, i; o >= 0; o--)
@@ -12039,7 +12103,7 @@ let Ir = class {
12039
12103
  l(this, "id");
12040
12104
  l(this, "logger");
12041
12105
  l(this, "_models");
12042
- this.id = t, this.logger = s.logger, this._models = new Ve({
12106
+ this.id = t, this.logger = s.logger, this._models = new Ge({
12043
12107
  parentId: t,
12044
12108
  sortKey: "blockNum"
12045
12109
  });
@@ -12068,7 +12132,7 @@ let Ir = class {
12068
12132
  }
12069
12133
  };
12070
12134
  Hc([
12071
- Ke
12135
+ Ve
12072
12136
  ], Ir.prototype, "_models", 2);
12073
12137
  Ir = Hc([
12074
12138
  R(zc)
@@ -12078,7 +12142,7 @@ const py = g.createLogger({
12078
12142
  group: "Services"
12079
12143
  }), qc = () => {
12080
12144
  var r;
12081
- const t = Ie(), s = (t == null ? void 0 : t.connId) || ((r = window == null ? void 0 : window.kosBridge) == null ? void 0 : r.call(window, "connId"));
12145
+ const t = Oe(), s = (t == null ? void 0 : t.connId) || ((r = window == null ? void 0 : window.kosBridge) == null ? void 0 : r.call(window, "connId"));
12082
12146
  return g.error(`getKosConnectionId: ${s}`), s;
12083
12147
  }, ts = qc(), gy = "/api/kos/logs/node/{nodeId}/streams", Kc = async () => (py.debug("sending GET for log-stream-container"), await ke.get(
12084
12148
  gy,
@@ -12211,10 +12275,10 @@ let zn = class {
12211
12275
  zn = by([
12212
12276
  R(Qc)
12213
12277
  ], zn);
12214
- const Or = new Oe({
12278
+ const Or = new Se({
12215
12279
  class: zn,
12216
12280
  type: Qc
12217
- }), ko = new Oe({
12281
+ }), ko = new Se({
12218
12282
  class: Ir,
12219
12283
  type: zc
12220
12284
  });
@@ -12384,12 +12448,12 @@ let Sr = class {
12384
12448
  }
12385
12449
  };
12386
12450
  Zc([
12387
- Ke
12451
+ Ve
12388
12452
  ], Sr.prototype, "_blocks", 2);
12389
12453
  Sr = Zc([
12390
12454
  R(Jc)
12391
12455
  ], Sr);
12392
- const yr = new Oe({
12456
+ const yr = new Se({
12393
12457
  class: Sr,
12394
12458
  type: Jc
12395
12459
  });
@@ -12399,7 +12463,7 @@ var My = Object.defineProperty, Ey = Object.getOwnPropertyDescriptor, wt = (t, e
12399
12463
  return r && n && My(e, s, n), n;
12400
12464
  };
12401
12465
  const Xc = "log-stream-container-model", _y = "/kos/logs/subscription/addBlock/*", Ty = "/kos/logs/subscription/updateBlock/*", $y = "/kos/logs/subscription/removeBlock/*", Iy = "/kos/logs/subscription/lines/*", el = "/kos/logs/streams/add/*";
12402
- let ze = class {
12466
+ let qe = class {
12403
12467
  constructor(t, e, s) {
12404
12468
  /** Unique identifier for the container model instance */
12405
12469
  l(this, "id");
@@ -12408,7 +12472,7 @@ let ze = class {
12408
12472
  /** Currently selected log stream for UI display purposes */
12409
12473
  l(this, "selectedStream");
12410
12474
  l(this, "_models");
12411
- this.id = t, this.logger = s.logger, this._models = new Ve({ parentId: t }), this.selectedStream = void 0;
12475
+ this.id = t, this.logger = s.logger, this._models = new Ge({ parentId: t }), this.selectedStream = void 0;
12412
12476
  }
12413
12477
  getModel(t) {
12414
12478
  return this._models.getModel(t);
@@ -12493,43 +12557,43 @@ let ze = class {
12493
12557
  }
12494
12558
  };
12495
12559
  wt([
12496
- Ke
12497
- ], ze.prototype, "_models", 2);
12560
+ Ve
12561
+ ], qe.prototype, "_models", 2);
12498
12562
  wt([
12499
12563
  H({
12500
12564
  topic: [el],
12501
12565
  websocket: !0
12502
12566
  })
12503
- ], ze.prototype, "handleStreamAdded", 1);
12567
+ ], qe.prototype, "handleStreamAdded", 1);
12504
12568
  wt([
12505
12569
  H({
12506
12570
  topic: [_y],
12507
12571
  websocket: !0
12508
12572
  })
12509
- ], ze.prototype, "handleAddBlock", 1);
12573
+ ], qe.prototype, "handleAddBlock", 1);
12510
12574
  wt([
12511
12575
  H({
12512
12576
  topic: [$y],
12513
12577
  websocket: !0
12514
12578
  })
12515
- ], ze.prototype, "handleRemoveBlock", 1);
12579
+ ], qe.prototype, "handleRemoveBlock", 1);
12516
12580
  wt([
12517
12581
  H({
12518
12582
  topic: [Ty],
12519
12583
  websocket: !0
12520
12584
  })
12521
- ], ze.prototype, "handleUpdateBlock", 1);
12585
+ ], qe.prototype, "handleUpdateBlock", 1);
12522
12586
  wt([
12523
12587
  H({
12524
12588
  topic: [Iy],
12525
12589
  websocket: !0
12526
12590
  })
12527
- ], ze.prototype, "handleLogLine", 1);
12528
- ze = wt([
12591
+ ], qe.prototype, "handleLogLine", 1);
12592
+ qe = wt([
12529
12593
  R(Xc)
12530
- ], ze);
12594
+ ], qe);
12531
12595
  const un = new Re({
12532
- class: ze,
12596
+ class: qe,
12533
12597
  type: Xc
12534
12598
  });
12535
12599
  un.addRelatedModel(yr);
@@ -12544,7 +12608,7 @@ const Oy = (t) => t.rank !== void 0, Sy = (t) => t.visibleRole !== void 0, Cy =
12544
12608
  }, Py = (t) => {
12545
12609
  const e = t.info;
12546
12610
  return Sy(e) ? e.visibleRole : "TECHNICIAN";
12547
- }, { URL: dn } = me(), { getAll: Ay, postModel: tl } = de.build({
12611
+ }, { URL: dn } = ye(), { getAll: Ay, postModel: tl } = he.build({
12548
12612
  basePath: `${dn}/api/kos/troubles`
12549
12613
  }), sl = async (t) => await Ay({
12550
12614
  urlOverride: `${dn}${t}`
@@ -12675,8 +12739,8 @@ class $t {
12675
12739
  }
12676
12740
  }
12677
12741
  }
12678
- var Uy = Object.defineProperty, By = Object.getOwnPropertyDescriptor, nl = (t, e, s, r) => {
12679
- for (var n = r > 1 ? void 0 : r ? By(e, s) : e, o = t.length - 1, i; o >= 0; o--)
12742
+ var Uy = Object.defineProperty, jy = Object.getOwnPropertyDescriptor, nl = (t, e, s, r) => {
12743
+ for (var n = r > 1 ? void 0 : r ? jy(e, s) : e, o = t.length - 1, i; o >= 0; o--)
12680
12744
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
12681
12745
  return r && n && Uy(e, s, n), n;
12682
12746
  };
@@ -12806,10 +12870,10 @@ const Dr = {
12806
12870
  },
12807
12871
  type: is,
12808
12872
  predicate: Ae(is),
12809
- factory: pe.Factory.create(is)
12873
+ factory: ge.Factory.create(is)
12810
12874
  };
12811
- var ol = Object.defineProperty, jy = Object.getOwnPropertyDescriptor, Hy = (t, e, s) => e in t ? ol(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Lo = (t, e, s, r) => {
12812
- for (var n = r > 1 ? void 0 : r ? jy(e, s) : e, o = t.length - 1, i; o >= 0; o--)
12875
+ var ol = Object.defineProperty, By = Object.getOwnPropertyDescriptor, Hy = (t, e, s) => e in t ? ol(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Lo = (t, e, s, r) => {
12876
+ for (var n = r > 1 ? void 0 : r ? By(e, s) : e, o = t.length - 1, i; o >= 0; o--)
12813
12877
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
12814
12878
  return r && n && ol(e, s, n), n;
12815
12879
  }, zy = (t, e, s) => (Hy(t, e + "", s), s);
@@ -12838,9 +12902,9 @@ function Ci(t) {
12838
12902
  ) : Py(t)).toLowerCase();
12839
12903
  }
12840
12904
  const qy = "trouble-container-model";
12841
- class Me {
12905
+ class Ee {
12842
12906
  }
12843
- l(Me, "INDEX_TROUBLES_BY_IFACE", "byIface"), l(Me, "INDEX_TROUBLES_BY_TYPE", "byType"), l(Me, "INDEX_TROUBLES_BY_GROUP", "byGroup"), l(Me, "INDEX_TROUBLES_BY_DEFERRED", "byDeferred"), l(Me, "SORT_KEY_RANK", "rank"), l(Me, "TROUBLES_DEFERRED", "true");
12907
+ l(Ee, "INDEX_TROUBLES_BY_IFACE", "byIface"), l(Ee, "INDEX_TROUBLES_BY_TYPE", "byType"), l(Ee, "INDEX_TROUBLES_BY_GROUP", "byGroup"), l(Ee, "INDEX_TROUBLES_BY_DEFERRED", "byDeferred"), l(Ee, "SORT_KEY_RANK", "rank"), l(Ee, "TROUBLES_DEFERRED", "true");
12844
12908
  let qt = class {
12845
12909
  constructor(t, e) {
12846
12910
  l(this, "id");
@@ -12869,7 +12933,7 @@ let qt = class {
12869
12933
  }
12870
12934
  handleTroubleRemoved(t) {
12871
12935
  const e = `trouble-${t}`, s = this.troubles.getModel(e);
12872
- this.troubles.removeModel(e), s && ht(s);
12936
+ this.troubles.removeModel(e), s && Ue(s);
12873
12937
  }
12874
12938
  handleTroubleAdded(t) {
12875
12939
  const e = {
@@ -12904,16 +12968,16 @@ qt = Lo([
12904
12968
  containerProperty: "troubles",
12905
12969
  containerOptions: {
12906
12970
  indexMap: {
12907
- [Me.INDEX_TROUBLES_BY_IFACE]: ky,
12908
- [Me.INDEX_TROUBLES_BY_TYPE]: "type",
12909
- [Me.INDEX_TROUBLES_BY_GROUP]: "group",
12910
- [Me.INDEX_TROUBLES_BY_DEFERRED]: "deferred"
12971
+ [Ee.INDEX_TROUBLES_BY_IFACE]: ky,
12972
+ [Ee.INDEX_TROUBLES_BY_TYPE]: "type",
12973
+ [Ee.INDEX_TROUBLES_BY_GROUP]: "group",
12974
+ [Ee.INDEX_TROUBLES_BY_DEFERRED]: "deferred"
12911
12975
  },
12912
- sortKey: Me.SORT_KEY_RANK
12976
+ sortKey: Ee.SORT_KEY_RANK
12913
12977
  }
12914
12978
  })
12915
12979
  ], qt);
12916
- const $s = qt.Registration, { URL: il } = me(), { getAll: Ky } = de.build({
12980
+ const $s = qt.Registration, { URL: il } = ye(), { getAll: Ky } = he.build({
12917
12981
  basePath: `${il}/api/kos/ota`
12918
12982
  }), Di = g.createLogger({
12919
12983
  name: "ota-service",
@@ -13111,7 +13175,7 @@ const Dn = g.createLogger({
13111
13175
  signal: t
13112
13176
  });
13113
13177
  if (!s)
13114
- throw t != null && t.aborted ? (Dn.debug("Request was aborted"), new Te("Request was aborted")) : (Dn.error("Failed to fetch software-info", e), new Te("Failed to fetch software-info"));
13178
+ throw t != null && t.aborted ? (Dn.debug("Request was aborted"), new $e("Request was aborted")) : (Dn.error("Failed to fetch software-info", e), new $e("Failed to fetch software-info"));
13115
13179
  return s;
13116
13180
  }, Zy = Qy(Fo), p_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13117
13181
  __proto__: null,
@@ -13169,7 +13233,7 @@ let Vn = class {
13169
13233
  this.nodes = r;
13170
13234
  });
13171
13235
  } catch (t) {
13172
- t instanceof Te && this.logger.error("Failed to fetch software-info", t);
13236
+ t instanceof $e && this.logger.error("Failed to fetch software-info", t);
13173
13237
  }
13174
13238
  }
13175
13239
  };
@@ -13185,10 +13249,10 @@ const Gn = {
13185
13249
  },
13186
13250
  type: as,
13187
13251
  predicate: Ae(as),
13188
- factory: pe.Factory.create(
13252
+ factory: ge.Factory.create(
13189
13253
  as
13190
13254
  )
13191
- }, { URL: cl } = me(), { getOne: eb } = de.build({
13255
+ }, { URL: cl } = ye(), { getOne: eb } = he.build({
13192
13256
  basePath: `${cl}/api/kos/state`
13193
13257
  }), tb = g.createLogger({
13194
13258
  name: "state-bean-service",
@@ -13274,7 +13338,7 @@ const Pr = {
13274
13338
  },
13275
13339
  type: cs,
13276
13340
  predicate: Ae(cs),
13277
- factory: pe.Factory.create(cs)
13341
+ factory: ge.Factory.create(cs)
13278
13342
  };
13279
13343
  var ob = Object.defineProperty, ib = Object.getOwnPropertyDescriptor, dl = (t, e, s, r) => {
13280
13344
  for (var n = r > 1 ? void 0 : r ? ib(e, s) : e, o = t.length - 1, i; o >= 0; o--)
@@ -13340,8 +13404,8 @@ const hl = {
13340
13404
  },
13341
13405
  type: ls,
13342
13406
  predicate: Ae(ls),
13343
- factory: pe.Factory.create(ls)
13344
- }, { URL: ab } = me(), { getAll: cb } = de.build({
13407
+ factory: ge.Factory.create(ls)
13408
+ }, { URL: ab } = ye(), { getAll: cb } = he.build({
13345
13409
  basePath: `${ab}/api/state-prop`
13346
13410
  }), lb = g.createLogger({
13347
13411
  name: "state-prop-service",
@@ -13349,13 +13413,13 @@ const hl = {
13349
13413
  }), ub = async () => (lb.debug("sending GET for state-prop"), await cb({})), m_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13350
13414
  __proto__: null,
13351
13415
  getStateProps: ub
13352
- }, Symbol.toStringTag, { value: "Module" })), { URL: No } = me(), { getOne: fl } = de.build({
13416
+ }, Symbol.toStringTag, { value: "Module" })), { URL: No } = ye(), { getOne: fl } = he.build({
13353
13417
  basePath: `${No}/api/translation`
13354
13418
  }), gs = g.createLogger({
13355
13419
  name: "translation-service",
13356
13420
  group: "Services"
13357
13421
  }), db = () => {
13358
- const t = window.location.origin, e = Ie();
13422
+ const t = window.location.origin, e = Oe();
13359
13423
  return (e == null ? void 0 : e.host) || t;
13360
13424
  }, hb = async (t, e) => {
13361
13425
  gs.debug(`Loading translations from: ${t}`);
@@ -13593,7 +13657,7 @@ const Qn = {
13593
13657
  },
13594
13658
  type: us,
13595
13659
  predicate: Ae(us),
13596
- factory: pe.Factory.create(us)
13660
+ factory: ge.Factory.create(us)
13597
13661
  };
13598
13662
  var yb = Object.defineProperty, bb = Object.getOwnPropertyDescriptor, yl = (t, e, s, r) => {
13599
13663
  for (var n = r > 1 ? void 0 : r ? bb(e, s) : e, o = t.length - 1, i; o >= 0; o--)
@@ -13629,7 +13693,7 @@ let Rr = class {
13629
13693
  /** Array tracking registered namespace identifiers */
13630
13694
  l(this, "namespaces", []);
13631
13695
  l(this, "_models");
13632
- this.id = t, this.lang = e.lang || "en", this.descriptor = e.descriptor, this._defaultNamespace = e.defaultNamespace, this.descriptorUrl = e.descriptorUrl, this.rootUrl = e.rootUrl, this.resolver = e.resolver || wb.bind(this), s.kosContext.set(pl, this.resolver), this.logger = s.logger, this._models = new Ve({
13696
+ this.id = t, this.lang = e.lang || "en", this.descriptor = e.descriptor, this._defaultNamespace = e.defaultNamespace, this.descriptorUrl = e.descriptorUrl, this.rootUrl = e.rootUrl, this.resolver = e.resolver || wb.bind(this), s.kosContext.set(pl, this.resolver), this.logger = s.logger, this._models = new Ge({
13633
13697
  parentId: t
13634
13698
  });
13635
13699
  }
@@ -13653,7 +13717,7 @@ let Rr = class {
13653
13717
  async reload() {
13654
13718
  for (const t of this.namespaces) {
13655
13719
  const e = this.resolveNamespace(t);
13656
- await we(e);
13720
+ await Me(e);
13657
13721
  }
13658
13722
  }
13659
13723
  resolveNamespace(t) {
@@ -13710,12 +13774,12 @@ let Rr = class {
13710
13774
  }
13711
13775
  };
13712
13776
  yl([
13713
- Ke
13777
+ Ve
13714
13778
  ], Rr.prototype, "_models", 2);
13715
13779
  Rr = yl([
13716
13780
  R(ds)
13717
13781
  ], Rr);
13718
- const Ze = {
13782
+ const Je = {
13719
13783
  registration: {
13720
13784
  [ds]: {
13721
13785
  class: Rr,
@@ -13724,20 +13788,20 @@ const Ze = {
13724
13788
  },
13725
13789
  type: ds,
13726
13790
  predicate: Ae(ds),
13727
- factory: pe.Singleton.create(ds)
13791
+ factory: ge.Singleton.create(ds)
13728
13792
  }, b_ = {
13729
13793
  set(t, e) {
13730
- const s = J.getContext(Ze.type);
13794
+ const s = J.getContext(Je.type);
13731
13795
  s && s.set(t, e);
13732
13796
  },
13733
13797
  get(t) {
13734
- const e = J.getContext(Ze.type);
13798
+ const e = J.getContext(Je.type);
13735
13799
  return e == null ? void 0 : e.get(t);
13736
13800
  }
13737
13801
  }, Mb = {
13738
13802
  async init(t) {
13739
- const e = Ze.factory(t);
13740
- return await we(e), { translations: e };
13803
+ const e = Je.factory(t);
13804
+ return await Me(e), { translations: e };
13741
13805
  }
13742
13806
  };
13743
13807
  function v_(t) {
@@ -13805,8 +13869,8 @@ Uo([
13805
13869
  Is = Uo([
13806
13870
  R(bl.type)
13807
13871
  ], Is);
13808
- const Ai = Ie(), Ib = Ai.debug === "true" || Ai.debug === !0, Ob = "/api/system/canvas", vl = async (t, e) => {
13809
- const r = `${ge}${e || Ob}`;
13872
+ const Ai = Oe(), Ib = Ai.debug === "true" || Ai.debug === !0, Ob = "/api/system/canvas", vl = async (t, e) => {
13873
+ const r = `${me}${e || Ob}`;
13810
13874
  await Le(r, {
13811
13875
  method: "POST",
13812
13876
  headers: {
@@ -13986,7 +14050,7 @@ wl([
13986
14050
  kr = wl([
13987
14051
  R(Ml)
13988
14052
  ], kr);
13989
- const El = new Oe({
14053
+ const El = new Se({
13990
14054
  class: kr,
13991
14055
  type: Ml
13992
14056
  });
@@ -14283,7 +14347,7 @@ class Mt {
14283
14347
  return this.ctx.getImageData(0, 0, e, s).data;
14284
14348
  }
14285
14349
  }
14286
- function Bo(t) {
14350
+ function jo(t) {
14287
14351
  class e extends t {
14288
14352
  constructor() {
14289
14353
  super(...arguments);
@@ -14309,7 +14373,7 @@ function Bo(t) {
14309
14373
  }
14310
14374
  return e;
14311
14375
  }
14312
- const Pb = Bo(Mt);
14376
+ const Pb = jo(Mt);
14313
14377
  class Ab extends Pb {
14314
14378
  constructor({
14315
14379
  colors: s = ["red", "yellow", "green"],
@@ -14338,7 +14402,7 @@ class Ab extends Pb {
14338
14402
  }), this.ctx.fillStyle = i, this.ctx.fillRect(0, 0, s, r), !this.loop && !this.isOneShotDone && this.signalDoneIfNeeded();
14339
14403
  }
14340
14404
  }
14341
- const Rb = Bo(Mt);
14405
+ const Rb = jo(Mt);
14342
14406
  class Tl extends Rb {
14343
14407
  constructor({ src: s }) {
14344
14408
  super();
@@ -14979,7 +15043,7 @@ class Ub extends Mt {
14979
15043
  this.completionCallback = null;
14980
15044
  }
14981
15045
  }
14982
- class Bb {
15046
+ class jb {
14983
15047
  constructor(e) {
14984
15048
  l(this, "patterns");
14985
15049
  l(this, "currentPatternIndex", 0);
@@ -15068,8 +15132,8 @@ class Bb {
15068
15132
  this.patternStore = e, this.patterns.length > 0 && this.loadCurrentPattern();
15069
15133
  }
15070
15134
  }
15071
- const jb = Bo(Mt);
15072
- class Hb extends jb {
15135
+ const Bb = jo(Mt);
15136
+ class Hb extends Bb {
15073
15137
  constructor(s = { r: 0, g: 0, b: 0 }) {
15074
15138
  super();
15075
15139
  l(this, "color");
@@ -15195,7 +15259,7 @@ I[ce].register(
15195
15259
  I[ce].register("drop", xb);
15196
15260
  I[ce].register(
15197
15261
  "sequence",
15198
- Bb
15262
+ jb
15199
15263
  );
15200
15264
  I[ce].register(
15201
15265
  "text",
@@ -15241,7 +15305,7 @@ function Yb(t) {
15241
15305
  b: e & 255
15242
15306
  };
15243
15307
  }
15244
- let Je = class {
15308
+ let Xe = class {
15245
15309
  constructor(t, e, s) {
15246
15310
  l(this, "id");
15247
15311
  l(this, "logger");
@@ -15251,7 +15315,7 @@ let Je = class {
15251
15315
  // Note: BrowserRouter is automatically injected when using HTTP decorators!
15252
15316
  l(this, "pattern");
15253
15317
  l(this, "data");
15254
- this.id = t, this.logger = s.logger, this._endpointRenderers = new Ve();
15318
+ this.id = t, this.logger = s.logger, this._endpointRenderers = new Ge();
15255
15319
  }
15256
15320
  addNamedEndpoint(t, e) {
15257
15321
  this._endpointRenderers.getModel(t) && this.logger.warn(`Endpoint "${t}" already exists. Overwriting.`);
@@ -15348,37 +15412,37 @@ let Je = class {
15348
15412
  }
15349
15413
  };
15350
15414
  ss([
15351
- Ke
15352
- ], Je.prototype, "_endpointRenderers", 2);
15415
+ Ve
15416
+ ], Xe.prototype, "_endpointRenderers", 2);
15353
15417
  ss([
15354
15418
  en("/api/ui/canvas/patterns")
15355
- ], Je.prototype, "handlePatternsPost", 1);
15419
+ ], Xe.prototype, "handlePatternsPost", 1);
15356
15420
  ss([
15357
15421
  en("/api/ui/canvas/pattern/:endpoint/:pattern")
15358
- ], Je.prototype, "handlePatternApplication", 1);
15422
+ ], Xe.prototype, "handlePatternApplication", 1);
15359
15423
  ss([
15360
15424
  en("/api/ui/canvas/color/:endpoint/:color")
15361
- ], Je.prototype, "handleColorApplication", 1);
15425
+ ], Xe.prototype, "handleColorApplication", 1);
15362
15426
  ss([
15363
15427
  en("/api/ui/canvas/endpoint")
15364
- ], Je.prototype, "handleEndpointCreation", 1);
15365
- Je = ss([
15428
+ ], Xe.prototype, "handleEndpointCreation", 1);
15429
+ Xe = ss([
15366
15430
  R(Ol)
15367
- ], Je);
15431
+ ], Xe);
15368
15432
  const Os = new Re({
15369
- class: Je,
15433
+ class: Xe,
15370
15434
  type: Ol
15371
- }), { URL: jo } = me(), { getOne: Sl } = de.build({
15372
- basePath: `${jo}/api/device`
15435
+ }), { URL: Bo } = ye(), { getOne: Sl } = he.build({
15436
+ basePath: `${Bo}/api/device`
15373
15437
  }), Nr = g.createLogger({ name: "device-service", group: "Services" }), Cl = async () => {
15374
15438
  Nr.debug("sending GET for device serial number");
15375
15439
  try {
15376
15440
  const t = await Sl({
15377
- urlOverride: `${jo}/api/kos/device/serialNumber`
15441
+ urlOverride: `${Bo}/api/kos/device/serialNumber`
15378
15442
  });
15379
15443
  return [void 0, t == null ? void 0 : t.data.serialNumber];
15380
15444
  } catch (t) {
15381
- if (t instanceof Te)
15445
+ if (t instanceof $e)
15382
15446
  return Nr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
15383
15447
  }
15384
15448
  return ["unknownError", void 0];
@@ -15386,11 +15450,11 @@ const Os = new Re({
15386
15450
  Nr.debug("sending GET for device details");
15387
15451
  try {
15388
15452
  const t = await Sl({
15389
- urlOverride: `${jo}/api/kos/device`
15453
+ urlOverride: `${Bo}/api/kos/device`
15390
15454
  });
15391
15455
  return t ? [void 0, t.data] : ["unknownError", void 0];
15392
15456
  } catch (t) {
15393
- if (t instanceof Te)
15457
+ if (t instanceof $e)
15394
15458
  return Nr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
15395
15459
  }
15396
15460
  return ["unknownError", void 0];
@@ -15668,10 +15732,10 @@ let Jn = class {
15668
15732
  Jn = ev([
15669
15733
  R(Al)
15670
15734
  ], Jn);
15671
- const Rl = new Oe({
15735
+ const Rl = new Se({
15672
15736
  class: Jn,
15673
15737
  type: Al
15674
- }), { URL: tv } = me(), { getAll: sv } = de.build({
15738
+ }), { URL: tv } = ye(), { getAll: sv } = he.build({
15675
15739
  basePath: `${tv}/api/kos/network/interfaces`
15676
15740
  }), Li = g.createLogger({
15677
15741
  name: "network-interface-service",
@@ -15682,7 +15746,7 @@ const Rl = new Oe({
15682
15746
  const t = await sv({});
15683
15747
  return [void 0, t == null ? void 0 : t.data];
15684
15748
  } catch (t) {
15685
- if (t instanceof Te)
15749
+ if (t instanceof $e)
15686
15750
  return Li.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
15687
15751
  }
15688
15752
  return ["unknownError", void 0];
@@ -15696,14 +15760,14 @@ var rv = Object.defineProperty, nv = Object.getOwnPropertyDescriptor, Ll = (t, e
15696
15760
  return r && n && rv(e, s, n), n;
15697
15761
  };
15698
15762
  const Fl = "network-interface-container-model";
15699
- let Br = class {
15763
+ let jr = class {
15700
15764
  constructor(t, e, s) {
15701
15765
  /** Unique identifier for the container model instance */
15702
15766
  l(this, "id");
15703
15767
  /** Context logger for debugging and network interface operations */
15704
15768
  l(this, "logger");
15705
15769
  l(this, "_models");
15706
- this.id = t, this.logger = s.logger, this._models = new Ve({
15770
+ this.id = t, this.logger = s.logger, this._models = new Ge({
15707
15771
  parentId: t,
15708
15772
  indexMap: {
15709
15773
  byCategory: "category"
@@ -15758,17 +15822,17 @@ let Br = class {
15758
15822
  }
15759
15823
  };
15760
15824
  Ll([
15761
- Ke
15762
- ], Br.prototype, "_models", 2);
15763
- Br = Ll([
15825
+ Ve
15826
+ ], jr.prototype, "_models", 2);
15827
+ jr = Ll([
15764
15828
  R(Fl)
15765
- ], Br);
15766
- const jr = new Re({
15767
- class: Br,
15829
+ ], jr);
15830
+ const Br = new Re({
15831
+ class: jr,
15768
15832
  type: Fl
15769
15833
  });
15770
- jr.addRelatedModel(Rl);
15771
- const { URL: ov } = me(), { getAll: iv } = de.build({
15834
+ Br.addRelatedModel(Rl);
15835
+ const { URL: ov } = ye(), { getAll: iv } = he.build({
15772
15836
  basePath: `${ov}/api/kos/storage/devices`
15773
15837
  }), Fi = g.createLogger({
15774
15838
  name: "storage-device-service",
@@ -15838,7 +15902,7 @@ Xn = cv([
15838
15902
  po(),
15839
15903
  R(Ul)
15840
15904
  ], Xn);
15841
- const eo = new Oe({
15905
+ const eo = new Se({
15842
15906
  class: Xn,
15843
15907
  type: Ul
15844
15908
  });
@@ -15847,13 +15911,13 @@ var lv = Object.defineProperty, uv = Object.getOwnPropertyDescriptor, Ho = (t, e
15847
15911
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
15848
15912
  return r && n && lv(e, s, n), n;
15849
15913
  };
15850
- const Bl = "storage-device-container-model", dv = "/kos/storage";
15914
+ const jl = "storage-device-container-model", dv = "/kos/storage";
15851
15915
  let Ss = class {
15852
15916
  constructor(t, e, s) {
15853
15917
  l(this, "id");
15854
15918
  l(this, "logger");
15855
15919
  l(this, "_models");
15856
- this.id = t, this.logger = s.logger, this._models = new Ve({
15920
+ this.id = t, this.logger = s.logger, this._models = new Ge({
15857
15921
  parentId: t
15858
15922
  });
15859
15923
  }
@@ -15919,7 +15983,7 @@ let Ss = class {
15919
15983
  }
15920
15984
  };
15921
15985
  Ho([
15922
- Ke
15986
+ Ve
15923
15987
  ], Ss.prototype, "_models", 2);
15924
15988
  Ho([
15925
15989
  H({
@@ -15928,19 +15992,19 @@ Ho([
15928
15992
  })
15929
15993
  ], Ss.prototype, "handleStorageAvailability", 1);
15930
15994
  Ss = Ho([
15931
- R(Bl)
15995
+ R(jl)
15932
15996
  ], Ss);
15933
15997
  const Cs = new Re({
15934
15998
  class: Ss,
15935
- type: Bl
15999
+ type: jl
15936
16000
  });
15937
16001
  Cs.addRelatedModel(eo);
15938
- const { URL: zo } = me(), { getAll: hv, postModel: fv } = de.build({
16002
+ const { URL: zo } = ye(), { getAll: hv, postModel: fv } = he.build({
15939
16003
  basePath: `${zo}/api/kos/update/available`
15940
16004
  }), Ni = g.createLogger({
15941
16005
  name: "usb-update-service",
15942
16006
  group: "Services"
15943
- }), jl = async () => {
16007
+ }), Bl = async () => {
15944
16008
  Ni.debug("sending GET for usb-update");
15945
16009
  const t = await hv({
15946
16010
  urlOverride: `${zo}/api/kos/update/available`
@@ -15960,7 +16024,7 @@ const { URL: zo } = me(), { getAll: hv, postModel: fv } = de.build({
15960
16024
  return r.data;
15961
16025
  }, T_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15962
16026
  __proto__: null,
15963
- getAvailableUpdates: jl,
16027
+ getAvailableUpdates: Bl,
15964
16028
  installUpdate: Hl
15965
16029
  }, Symbol.toStringTag, { value: "Module" }));
15966
16030
  var pv = Object.defineProperty, gv = Object.getOwnPropertyDescriptor, zl = (t, e, s, r) => {
@@ -16012,7 +16076,7 @@ zl([
16012
16076
  Hr = zl([
16013
16077
  R(ql)
16014
16078
  ], Hr);
16015
- const Kl = new Oe({
16079
+ const Kl = new Se({
16016
16080
  class: Hr,
16017
16081
  type: ql
16018
16082
  });
@@ -16030,7 +16094,7 @@ let Vt = class {
16030
16094
  l(this, "_activeUpdate");
16031
16095
  l(this, "logger");
16032
16096
  l(this, "_models");
16033
- this.id = t, this.logger = s.logger, this._models = new Ve({ parentId: t });
16097
+ this.id = t, this.logger = s.logger, this._models = new Ge({ parentId: t });
16034
16098
  }
16035
16099
  getModel(t) {
16036
16100
  return this._models.getModel(t);
@@ -16067,7 +16131,7 @@ let Vt = class {
16067
16131
  return this._models.data.length > 0;
16068
16132
  }
16069
16133
  async syncAvailableUpdates() {
16070
- const t = await jl();
16134
+ const t = await Bl();
16071
16135
  oe(() => {
16072
16136
  const e = t.map(
16073
16137
  (s) => `${s.deviceId}-${s.manifestId}`
@@ -16102,7 +16166,7 @@ pn([
16102
16166
  ks({ modelType: Cs.type })
16103
16167
  ], Vt.prototype, "storageService", 2);
16104
16168
  pn([
16105
- Ke
16169
+ Ve
16106
16170
  ], Vt.prototype, "_models", 2);
16107
16171
  pn([
16108
16172
  Wd({ dependencies: (t) => [t.isUsbInserted] })
@@ -16123,11 +16187,11 @@ const bv = () => ({ ...{
16123
16187
  class: zg,
16124
16188
  singleton: !0
16125
16189
  },
16126
- ...le.registration,
16190
+ ...ue.registration,
16127
16191
  ...Zt.registration,
16128
16192
  ...$s.registration,
16129
16193
  ...Qn.registration,
16130
- ...Ze.registration,
16194
+ ...Je.registration,
16131
16195
  [bl.type]: {
16132
16196
  class: Is,
16133
16197
  singleton: !0
@@ -16140,24 +16204,24 @@ const bv = () => ({ ...{
16140
16204
  preloadModels: []
16141
16205
  }, Ui = !0, vv = (t) => () => {
16142
16206
  const e = Gl;
16143
- return lh(Bi)(Dr).model($s).model(Cs).model(zr).model(Zn).model(Kn).model(Mr).model(Gn).model(Dc).model(jr).model(Os).model(El).model(Zm).model(_c, Ui).model(un).model(oy, Ui), Object.keys(e).forEach((s) => {
16207
+ return lh(ji)(Dr).model($s).model(Cs).model(zr).model(Zn).model(Kn).model(Mr).model(Gn).model(Dc).model(Br).model(Os).model(El).model(Zm).model(_c, Ui).model(un).model(oy, Ui), Object.keys(e).forEach((s) => {
16144
16208
  const r = e[s];
16145
- ch(Bi)(s, r);
16209
+ ch(ji)(s, r);
16146
16210
  }), {
16147
16211
  preload: P.model.preloadModel(t),
16148
16212
  model: P.model.register(t),
16149
16213
  companion: P.companion.register(t),
16150
16214
  legacy: P.model.registerLegacyModel(t)
16151
16215
  };
16152
- }, $e = {};
16153
- $e.core = {
16154
- models: vv($e)
16216
+ }, Ie = {};
16217
+ Ie.core = {
16218
+ models: vv(Ie)
16155
16219
  };
16156
- $e.preload = P.model.preloadModel($e);
16157
- $e.model = P.model.register($e);
16158
- $e.companion = P.companion.register($e);
16159
- $e.legacy = P.model.registerLegacyModel($e);
16160
- const Bi = $e;
16220
+ Ie.preload = P.model.preloadModel(Ie);
16221
+ Ie.model = P.model.register(Ie);
16222
+ Ie.companion = P.companion.register(Ie);
16223
+ Ie.legacy = P.model.registerLegacyModel(Ie);
16224
+ const ji = Ie;
16161
16225
  class I_ {
16162
16226
  /**
16163
16227
  * Maps the rank property of the trouble into the {@link TroubleModel}
@@ -16195,7 +16259,7 @@ class I_ {
16195
16259
  }
16196
16260
  const O_ = async (t, e) => {
16197
16261
  const s = Dc.instance(t).options({}).build(), r = e ? `${e}-` : "";
16198
- return await we(s), {
16262
+ return await Me(s), {
16199
16263
  getState: (n) => s.data[`${r}${n}`],
16200
16264
  updateState: async (n, o) => {
16201
16265
  await s.updateState(`${r}${n}`, o);
@@ -16205,7 +16269,7 @@ const O_ = async (t, e) => {
16205
16269
  await s.updateState(`${r}${n}`, void 0);
16206
16270
  },
16207
16271
  unsubscribe: () => {
16208
- ht(s);
16272
+ Ue(s);
16209
16273
  }
16210
16274
  };
16211
16275
  }, Yl = "kos:service:region", Wl = "regionId", wv = `${Yl}-${Wl}`, Mv = async (t) => {
@@ -16213,21 +16277,21 @@ const O_ = async (t, e) => {
16213
16277
  path: Yl,
16214
16278
  attribute: Wl
16215
16279
  });
16216
- await we(e), e.updateProperty(t);
16280
+ await Me(e), e.updateProperty(t);
16217
16281
  };
16218
16282
  function Ev(t) {
16219
16283
  return Wt(t);
16220
16284
  }
16221
- const ji = et(), S_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16285
+ const Bi = tt(), S_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16222
16286
  __proto__: null,
16223
- api: ji,
16224
- default: ji,
16287
+ api: Bi,
16288
+ default: Bi,
16225
16289
  kosServiceRequest: Ev
16226
16290
  }, Symbol.toStringTag, { value: "Module" }));
16227
16291
  function _v(t) {
16228
16292
  return Wt(t);
16229
16293
  }
16230
- const Hi = et(), C_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16294
+ const Hi = tt(), C_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16231
16295
  __proto__: null,
16232
16296
  api: Hi,
16233
16297
  default: Hi,
@@ -16236,7 +16300,7 @@ const Hi = et(), C_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
16236
16300
  function Tv(t) {
16237
16301
  return Wt(t);
16238
16302
  }
16239
- const zi = et(), D_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16303
+ const zi = tt(), D_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16240
16304
  __proto__: null,
16241
16305
  api: zi,
16242
16306
  default: zi,
@@ -16245,7 +16309,7 @@ const zi = et(), D_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
16245
16309
  function $v(t) {
16246
16310
  return Wt(t);
16247
16311
  }
16248
- const qi = et(), x_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16312
+ const qi = tt(), x_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16249
16313
  __proto__: null,
16250
16314
  api: qi,
16251
16315
  default: qi,
@@ -16254,7 +16318,7 @@ const qi = et(), x_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
16254
16318
  function Iv(t) {
16255
16319
  return Wt(t);
16256
16320
  }
16257
- const Ki = et(), P_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16321
+ const Ki = tt(), P_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16258
16322
  __proto__: null,
16259
16323
  api: Ki,
16260
16324
  default: Ki,
@@ -16263,7 +16327,7 @@ const Ki = et(), P_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
16263
16327
  function Ov(t) {
16264
16328
  return Wt(t);
16265
16329
  }
16266
- const Vi = et(), A_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16330
+ const Vi = tt(), A_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16267
16331
  __proto__: null,
16268
16332
  api: Vi,
16269
16333
  default: Vi,
@@ -16484,7 +16548,7 @@ const fs = /* @__PURE__ */ new Map(), It = (t, e) => {
16484
16548
  path: Xl,
16485
16549
  attribute: eu
16486
16550
  });
16487
- await we(e), e.updateProperty(t);
16551
+ await Me(e), e.updateProperty(t);
16488
16552
  }, Pv = (t) => !t || !t.data;
16489
16553
  function tu(t = {}) {
16490
16554
  const {
@@ -16506,7 +16570,7 @@ function tu(t = {}) {
16506
16570
  tracker: h,
16507
16571
  id: ac
16508
16572
  });
16509
- s && (m.namespace = s), g.debug(`waiting for future ${m.id} to be ready`), await we(m), g.debug(`future ${m.id} is ready`), oe(() => {
16573
+ s && (m.namespace = s), g.debug(`waiting for future ${m.id} to be ready`), await Me(m), g.debug(`future ${m.id} is ready`), oe(() => {
16510
16574
  g.debug(`Adding future ${m.id} to futureHandler`), this.futureHandler.addFuture(m, e);
16511
16575
  }), r && f && (p = ee(() => {
16512
16576
  (m.status === "CANCELLED" || m.endState === ft.Canceled) && (g.debug(`Future ${m.id} cancelled, aborting request`), f == null || f.abort());
@@ -16594,7 +16658,7 @@ function k_(t) {
16594
16658
  };
16595
16659
  };
16596
16660
  }
16597
- const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (t, e) => Av(t, e, `${ge}/api/server/login`), Av = async (t, e, s = `${ge}/api/login`) => {
16661
+ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (t, e) => Av(t, e, `${me}/api/server/login`), Av = async (t, e, s = `${me}/api/login`) => {
16598
16662
  const r = await Le(`${s}`, {
16599
16663
  method: "POST",
16600
16664
  destinationAddress: "",
@@ -16608,7 +16672,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
16608
16672
  throw Error(`${o == null ? void 0 : o.error}`);
16609
16673
  }
16610
16674
  return await r.json();
16611
- }, F_ = async (t) => Rv(t, `${ge}/api/server/startPasswordReset`, ""), Rv = async (t, e = `${ge}/api/startPasswordReset`, s = "server") => {
16675
+ }, F_ = async (t) => Rv(t, `${me}/api/server/startPasswordReset`, ""), Rv = async (t, e = `${me}/api/startPasswordReset`, s = "server") => {
16612
16676
  const r = await Le(`${e}?email=${t}`, {
16613
16677
  method: "POST",
16614
16678
  destinationAddress: s
@@ -16618,7 +16682,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
16618
16682
  `There was a problem reseting config; returned status ${r.status}`
16619
16683
  );
16620
16684
  return await r.json();
16621
- }, N_ = async (t, e) => kv(t, e, `${ge}/api/server/resetPassword`), kv = async (t, e, s = `${ge}/api/resetPassword`) => {
16685
+ }, N_ = async (t, e) => kv(t, e, `${me}/api/server/resetPassword`), kv = async (t, e, s = `${me}/api/resetPassword`) => {
16622
16686
  Lt.debug(
16623
16687
  `resetting password with token ${t} and password ${e.replace(
16624
16688
  /./g,
@@ -16645,8 +16709,8 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
16645
16709
  t,
16646
16710
  e,
16647
16711
  s,
16648
- `${ge}/api/server/acceptInvite`
16649
- ), Lv = async (t, e, s, r = `${ge}/api/server/acceptInvite`) => {
16712
+ `${me}/api/server/acceptInvite`
16713
+ ), Lv = async (t, e, s, r = `${me}/api/server/acceptInvite`) => {
16650
16714
  Lt.debug(
16651
16715
  `accepting invite with token ${t} and password ${e.replace(
16652
16716
  /./g,
@@ -16671,7 +16735,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
16671
16735
  }
16672
16736
  return await n.json();
16673
16737
  };
16674
- function B_(t, e, s, r) {
16738
+ function j_(t, e, s, r) {
16675
16739
  const n = t instanceof Promise ? { promise: t, abortController: e, cancelFuture: s, future: r } : t, {
16676
16740
  promise: o,
16677
16741
  abortController: i,
@@ -16736,16 +16800,16 @@ const Fv = Ou`
16736
16800
  animation: ${Fv} ease-in-out infinite alternate;
16737
16801
  animation-duration: 1.2s;
16738
16802
  `, Uv = ({ children: t }) => ta(t, document.body);
16739
- function Bv({
16803
+ function jv({
16740
16804
  message: t = "Wait a moment while we load your app.",
16741
16805
  theme: e = "light"
16742
16806
  }) {
16743
- return /* @__PURE__ */ w(Uv, { children: /* @__PURE__ */ bs(jv, { theme: e, children: [
16807
+ return /* @__PURE__ */ w(Uv, { children: /* @__PURE__ */ bs(Bv, { theme: e, children: [
16744
16808
  t,
16745
16809
  /* @__PURE__ */ w("div", { css: Nv, children: "." })
16746
16810
  ] }) });
16747
16811
  }
16748
- const jv = oo.div`
16812
+ const Bv = oo.div`
16749
16813
  padding-inline: 20px;
16750
16814
  width: 100%;
16751
16815
  height: 100vh;
@@ -16785,7 +16849,7 @@ const zv = {
16785
16849
  normal: "#B5F7F6",
16786
16850
  warn: "#F3D78A",
16787
16851
  error: "#FC8486"
16788
- }, j_ = ({
16852
+ }, B_ = ({
16789
16853
  value: t = 0,
16790
16854
  title: e,
16791
16855
  status: s = "normal",
@@ -16840,7 +16904,7 @@ const zv = {
16840
16904
  }, qv = {
16841
16905
  setModel: () => !1
16842
16906
  }, qo = As(qv), H_ = () => {
16843
- const t = ut(qo);
16907
+ const t = dt(qo);
16844
16908
  if (t == null)
16845
16909
  throw new Error("useModels must be used within a KosModelProvider");
16846
16910
  return t.model;
@@ -16866,7 +16930,7 @@ const zv = {
16866
16930
  );
16867
16931
  return /* @__PURE__ */ w(Ko.Provider, { value: { models: e, addModel: r }, children: t });
16868
16932
  }, Gv = () => !0, Yv = (t) => {
16869
- const e = ut(Ko);
16933
+ const e = dt(Ko);
16870
16934
  if (!e)
16871
16935
  throw new Error(
16872
16936
  "useContextModelHierarchy must be used within a KosModelCollectionProvider"
@@ -16882,7 +16946,7 @@ const zv = {
16882
16946
  return (r == null ? void 0 : r.type) === t;
16883
16947
  }
16884
16948
  })[0], Wv = g.createLogger({ name: "kos-model-loader" }), Qv = () => /* @__PURE__ */ w("div", {}), Zv = ({ fallback: t, children: e, ...s }) => /* @__PURE__ */ w(Kv, { children: /* @__PURE__ */ w(Hv, { fallback: t, children: /* @__PURE__ */ w(Su, { children: /* @__PURE__ */ w(Jv, { ...s, children: e }) }) }) }), Jv = (t) => {
16885
- const [e, s] = _(), [r, n] = _(!1), { setModel: o } = ut(qo), i = ut(Ko);
16949
+ const [e, s] = _(), [r, n] = _(!1), { setModel: o } = dt(qo), i = dt(Ko);
16886
16950
  if (S(() => {
16887
16951
  t.model && (s(t.model), o(t.model), n(!0), i && i.addModel(t.model));
16888
16952
  }, [i, t.model, o]), t.error)
@@ -16939,10 +17003,10 @@ const ru = mt.createContext(void 0), V_ = (t = { models: {}, preloadModels: [] }
16939
17003
  setTimeout(() => {
16940
17004
  e(!0);
16941
17005
  }, 2 ** t * 10);
16942
- }), at = /* @__PURE__ */ new Map();
17006
+ }), ct = /* @__PURE__ */ new Map();
16943
17007
  function nw(t, e) {
16944
- if (at.has(t)) {
16945
- const s = at.get(t);
17008
+ if (ct.has(t)) {
17009
+ const s = ct.get(t);
16946
17010
  if (s.status === "finished") {
16947
17011
  const r = T.getInstance().modelManager.getModelById(t);
16948
17012
  return { kosModel: r, model: r == null ? void 0 : r.modelData };
@@ -16951,13 +17015,13 @@ function nw(t, e) {
16951
17015
  } else {
16952
17016
  const s = e().then(
16953
17017
  () => {
16954
- at.set(t, { status: "finished", key: t });
17018
+ ct.set(t, { status: "finished", key: t });
16955
17019
  },
16956
17020
  (n) => {
16957
- throw at.set(t, { status: "error", error: n }), n;
17021
+ throw ct.set(t, { status: "error", error: n }), n;
16958
17022
  }
16959
17023
  ), r = { status: "pending", promise: s };
16960
- throw at.set(t, r), s;
17024
+ throw ct.set(t, r), s;
16961
17025
  }
16962
17026
  }
16963
17027
  function ow(t, e) {
@@ -17017,15 +17081,15 @@ const ne = (t) => {
17017
17081
  m == null || m.fsm.transitionTo(L.GO_INACTIVE, y.INACTIVE).then(() => {
17018
17082
  if (n) {
17019
17083
  const b = h.id;
17020
- ht(h).then(() => {
17021
- at.delete(b), p == null || p();
17084
+ Ue(h).then(() => {
17085
+ ct.delete(b), p == null || p();
17022
17086
  });
17023
17087
  }
17024
17088
  });
17025
17089
  }
17026
17090
  } else
17027
- n && h && ht(h).then(() => {
17028
- at.delete(e), p == null || p();
17091
+ n && h && Ue(h).then(() => {
17092
+ ct.delete(e), p == null || p();
17029
17093
  });
17030
17094
  };
17031
17095
  }, [
@@ -17057,7 +17121,7 @@ const ne = (t) => {
17057
17121
  const { model: e, ready: s } = nu(), r = W(() => s && e ? { model: e } : {}, [s, e]);
17058
17122
  return /* @__PURE__ */ w(ou.Provider, { value: r, children: t });
17059
17123
  }, Y_ = () => {
17060
- const t = ut(ou);
17124
+ const t = dt(ou);
17061
17125
  if (!t)
17062
17126
  throw new Error("useKosTimeContext must be used within a KosTimeProvider");
17063
17127
  return t;
@@ -17081,18 +17145,18 @@ const au = As(
17081
17145
  const { model: e, ready: s } = iu(), r = W(() => s && e ? { model: e } : {}, [s, e]);
17082
17146
  return /* @__PURE__ */ w(au.Provider, { value: r, children: t });
17083
17147
  }, Z_ = () => {
17084
- const t = ut(au);
17148
+ const t = dt(au);
17085
17149
  if (!t)
17086
17150
  throw new Error(
17087
17151
  "useSoftwareInfoContext must be used within a SoftwareInfoProvider"
17088
17152
  );
17089
17153
  return t;
17090
- }, cu = new Bp(), aw = mt.createContext(cu);
17154
+ }, cu = new jp(), aw = mt.createContext(cu);
17091
17155
  function J_({ children: t }) {
17092
17156
  return /* @__PURE__ */ w(aw.Provider, { value: cu, children: t });
17093
17157
  }
17094
17158
  const lu = As(void 0), cw = () => {
17095
- const t = window.location.origin, e = Ie();
17159
+ const t = window.location.origin, e = Oe();
17096
17160
  return (e == null ? void 0 : e.host) || t;
17097
17161
  }, X_ = ({
17098
17162
  children: t,
@@ -17111,14 +17175,14 @@ const lu = As(void 0), cw = () => {
17111
17175
  return;
17112
17176
  }
17113
17177
  return V.value;
17114
- }).filter((V) => !!V).reverse().reduce((V, B) => {
17115
- const te = B.path;
17116
- return Object.keys(B.namespaces).forEach((Ye) => {
17117
- const We = B.namespaces[Ye];
17118
- We.basePath = te;
17178
+ }).filter((V) => !!V).reverse().reduce((V, j) => {
17179
+ const te = j.path;
17180
+ return Object.keys(j.namespaces).forEach((We) => {
17181
+ const Qe = j.namespaces[We];
17182
+ Qe.basePath = te;
17119
17183
  }), {
17120
17184
  ...V,
17121
- namespaces: { ...V.namespaces, ...B.namespaces }
17185
+ namespaces: { ...V.namespaces, ...j.namespaces }
17122
17186
  };
17123
17187
  }, {});
17124
17188
  u(E);
@@ -17150,7 +17214,7 @@ const lu = As(void 0), cw = () => {
17150
17214
  }, [i, d]), b = i ? t : null;
17151
17215
  return /* @__PURE__ */ w(lu.Provider, { value: m, children: b });
17152
17216
  }, eT = () => {
17153
- const t = ut(lu);
17217
+ const t = dt(lu);
17154
17218
  if (!t)
17155
17219
  throw new Error(
17156
17220
  "useTranslationContainerContext must be used within a TranslationContainerProvider"
@@ -17291,10 +17355,10 @@ function nT(t) {
17291
17355
  };
17292
17356
  }
17293
17357
  const bw = () => {
17294
- const t = jr.type;
17358
+ const t = Br.type;
17295
17359
  return ne({
17296
17360
  modelId: t,
17297
- modelType: jr.type,
17361
+ modelType: Br.type,
17298
17362
  options: {}
17299
17363
  });
17300
17364
  };
@@ -17341,7 +17405,7 @@ const cT = (t) => {
17341
17405
  return S(() => {
17342
17406
  async function d(h) {
17343
17407
  try {
17344
- h && (await we(h), o(!0));
17408
+ h && (await Me(h), o(!0));
17345
17409
  } catch (f) {
17346
17410
  a(f.message);
17347
17411
  }
@@ -17477,19 +17541,19 @@ function Yi(t, e) {
17477
17541
  return Sw(t, e);
17478
17542
  }
17479
17543
  const Cw = async () => {
17480
- const t = await nh(Ze.type);
17481
- return await we(t.model), t.model;
17544
+ const t = await nh(Je.type);
17545
+ return await Me(t.model), t.model;
17482
17546
  }, Dw = async (t, e, s) => {
17483
17547
  const r = t.resolveNamespace(e);
17484
- await we(r);
17548
+ await Me(r);
17485
17549
  for (const n of s) {
17486
17550
  const o = t.resolveNamespace(n);
17487
- await we(o), Ct.set(n, { status: "finished", result: o });
17551
+ await Me(o), Ct.set(n, { status: "finished", result: o });
17488
17552
  }
17489
17553
  return r;
17490
17554
  }, hT = (t, e) => {
17491
17555
  const s = [t].flat(), [r, ...n] = s, o = Yi(
17492
- Ze.type,
17556
+ Je.type,
17493
17557
  Cw
17494
17558
  ), i = s.join("__"), a = Yi(
17495
17559
  i,
@@ -17510,10 +17574,10 @@ const Cw = async () => {
17510
17574
  [e == null ? void 0 : e.keyPrefix, t, a]
17511
17575
  ), i18n: c };
17512
17576
  }, xw = () => {
17513
- const t = Ze.type;
17577
+ const t = Je.type;
17514
17578
  return ne({
17515
17579
  modelId: t,
17516
- modelType: Ze.type,
17580
+ modelType: Je.type,
17517
17581
  options: {}
17518
17582
  });
17519
17583
  };
@@ -17634,7 +17698,7 @@ const bT = ({ path: t, propKey: e }) => {
17634
17698
  return S(() => {
17635
17699
  async function u(d) {
17636
17700
  try {
17637
- d && (await we(d), r(!0));
17701
+ d && (await Me(d), r(!0));
17638
17702
  } catch (h) {
17639
17703
  o(h.message);
17640
17704
  }
@@ -17736,7 +17800,7 @@ function Ce(t) {
17736
17800
  function MT(t) {
17737
17801
  return typeof t == "string" ? new Date(Date.parse(`01 ${t.substring(0, 3)} 2023`)).getMonth() + 1 : t;
17738
17802
  }
17739
- function Bw(t, e, s) {
17803
+ function jw(t, e, s) {
17740
17804
  const r = Ce(e), n = new Date(r, t, 1).getDay(), o = new Date(r, t + 1, 0).getDate();
17741
17805
  return [...Array(42).keys()].map((a) => a < n || a > o + n - 1 ? { label: "", value: 0, disabled: !0 } : s[a - n]);
17742
17806
  }
@@ -17747,7 +17811,7 @@ function sr(t, e, s) {
17747
17811
  function rr(t, e) {
17748
17812
  return new Date(t, e, 0).getDate();
17749
17813
  }
17750
- function jw(t = "en-US", e = "short") {
17814
+ function Bw(t = "en-US", e = "short") {
17751
17815
  const s = new Intl.DateTimeFormat(t, { weekday: e }).format;
17752
17816
  return [...Array(7).keys()].map(
17753
17817
  (r) => s(new Date(Date.UTC(2021, 5, r)))
@@ -17836,7 +17900,7 @@ function Gw(t, e, s = "en-US", r = []) {
17836
17900
  }
17837
17901
  function Yw(t = "en-US", e = "short") {
17838
17902
  return W(
17839
- () => jw(t, e),
17903
+ () => Bw(t, e),
17840
17904
  [t, e]
17841
17905
  );
17842
17906
  }
@@ -17847,11 +17911,11 @@ function Ww({
17847
17911
  formatString: r
17848
17912
  }) {
17849
17913
  const n = e, o = new Date(t, n, s);
17850
- return { formattedDate: ct(o, r) };
17914
+ return { formattedDate: lt(o, r) };
17851
17915
  }
17852
17916
  function Qw(t, e, s) {
17853
17917
  return W(
17854
- () => Bw(t, e, s),
17918
+ () => jw(t, e, s),
17855
17919
  [t, e, s]
17856
17920
  );
17857
17921
  }
@@ -17892,9 +17956,9 @@ function ET({
17892
17956
  monthsArray: $,
17893
17957
  monthsOptionsArray: E,
17894
17958
  daysArray: V,
17895
- daysOptionsArray: B,
17959
+ daysOptionsArray: j,
17896
17960
  calendarDayArray: te,
17897
- dayNamesArray: Ye
17961
+ dayNamesArray: We
17898
17962
  } = Hw({
17899
17963
  locale: t,
17900
17964
  year: d,
@@ -17906,7 +17970,7 @@ function ET({
17906
17970
  dayFormat: i
17907
17971
  },
17908
17972
  daysOfWeekFilter: u
17909
- }), { formattedDate: We } = Ww({
17973
+ }), { formattedDate: Qe } = Ww({
17910
17974
  year: d,
17911
17975
  month: m,
17912
17976
  day: v,
@@ -17919,37 +17983,37 @@ function ET({
17919
17983
  setMonth: b,
17920
17984
  setDay: M,
17921
17985
  nextMonth: () => {
17922
- const ie = m < 11 ? Ce(d) : Ce(d + 1), he = m < 11 ? m + 1 : 0;
17923
- if (!sr(ie, he, v)) {
17924
- const tt = rr(ie, he);
17925
- M(tt);
17986
+ const ie = m < 11 ? Ce(d) : Ce(d + 1), fe = m < 11 ? m + 1 : 0;
17987
+ if (!sr(ie, fe, v)) {
17988
+ const st = rr(ie, fe);
17989
+ M(st);
17926
17990
  }
17927
- he === 0 && h(ie), b(he);
17991
+ fe === 0 && h(ie), b(fe);
17928
17992
  },
17929
17993
  previousMonth: () => {
17930
- const ie = Ce(m === 0 ? d - 1 : d), he = m === 0 ? 11 : m - 1;
17931
- if (!sr(ie, he, v)) {
17932
- const tt = rr(ie, he);
17933
- M(tt);
17994
+ const ie = Ce(m === 0 ? d - 1 : d), fe = m === 0 ? 11 : m - 1;
17995
+ if (!sr(ie, fe, v)) {
17996
+ const st = rr(ie, fe);
17997
+ M(st);
17934
17998
  }
17935
- he === 11 && h(ie), b(he);
17999
+ fe === 11 && h(ie), b(fe);
17936
18000
  },
17937
18001
  nextYear: () => {
17938
- const ie = d < f[1] ? d + 1 : f[0], he = Ce(ie);
17939
- if (sr(he, m, v))
18002
+ const ie = d < f[1] ? d + 1 : f[0], fe = Ce(ie);
18003
+ if (sr(fe, m, v))
17940
18004
  h(ie);
17941
18005
  else {
17942
- const tt = rr(Ce(d + 1), m);
17943
- M(tt), h(ie);
18006
+ const st = rr(Ce(d + 1), m);
18007
+ M(st), h(ie);
17944
18008
  }
17945
18009
  },
17946
18010
  previousYear: () => {
17947
- const ie = d > f[0] ? d - 1 : f[0], he = Ce(ie);
17948
- if (sr(he, m, v))
18011
+ const ie = d > f[0] ? d - 1 : f[0], fe = Ce(ie);
18012
+ if (sr(fe, m, v))
17949
18013
  h(ie);
17950
18014
  else {
17951
- const tt = rr(Ce(d - 1), m);
17952
- M(tt), h(ie);
18015
+ const st = rr(Ce(d - 1), m);
18016
+ M(st), h(ie);
17953
18017
  }
17954
18018
  }
17955
18019
  },
@@ -17963,10 +18027,10 @@ function ET({
17963
18027
  monthsArray: $,
17964
18028
  monthsOptionsArray: E,
17965
18029
  daysArray: V,
17966
- daysOptionsArray: B,
17967
- calendarDayNames: Ye,
18030
+ daysOptionsArray: j,
18031
+ calendarDayNames: We,
17968
18032
  calendarDayArray: te,
17969
- formattedDate: We
18033
+ formattedDate: Qe
17970
18034
  }
17971
18035
  };
17972
18036
  }
@@ -17977,20 +18041,20 @@ function Jw({
17977
18041
  options: r = {}
17978
18042
  }) {
17979
18043
  const [n, o] = _("Formatting Time..."), [i, a] = _("Formatting Date..."), c = !!r.ignoreDateFormat, { model: u, ready: d } = ne({
17980
- modelId: le.type,
17981
- modelType: le.type,
18044
+ modelId: ue.type,
18045
+ modelType: ue.type,
17982
18046
  options: {}
17983
18047
  }), h = typeof t == "string" ? $u(t) : t;
17984
18048
  return S(() => {
17985
- c ? a("") : e ? a(ct(h, e)) : d && a(
17986
- ct(
18049
+ c ? a("") : e ? a(lt(h, e)) : d && a(
18050
+ lt(
17987
18051
  h,
17988
18052
  u != null && u.selectedDateFormat ? u == null ? void 0 : u.selectedDateFormat : ""
17989
18053
  )
17990
18054
  );
17991
18055
  }, [c, t, e, h, u, d]), S(() => {
17992
- s ? o(ct(h, s)) : d && o(
17993
- ct(
18056
+ s ? o(lt(h, s)) : d && o(
18057
+ lt(
17994
18058
  h,
17995
18059
  u != null && u.selectedTimeFormat ? u == null ? void 0 : u.selectedTimeFormat : ""
17996
18060
  )
@@ -18063,8 +18127,8 @@ function TT(t, e = {}) {
18063
18127
  }
18064
18128
  const eM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, children: t.format }, t.id), $T = (t = eM) => {
18065
18129
  const [e, s] = _([]), [r, n] = _(), { model: o, ready: i } = ne({
18066
- modelType: le.type,
18067
- modelId: le.type,
18130
+ modelType: ue.type,
18131
+ modelId: ue.type,
18068
18132
  options: {}
18069
18133
  });
18070
18134
  S(() => {
@@ -18107,8 +18171,8 @@ const eM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18107
18171
  };
18108
18172
  }, tM = (t) => /* @__PURE__ */ w("option", { title: t, value: t, children: t }, t), pu = "kos:service:region:settings", gu = "timeZone", sM = `${pu}-${gu}`, IT = (t = tM) => {
18109
18173
  const [e, s] = _([]), [r, n] = _(""), { model: o, ready: i } = ne({
18110
- modelType: le.type,
18111
- modelId: le.type,
18174
+ modelType: ue.type,
18175
+ modelId: ue.type,
18112
18176
  options: {}
18113
18177
  }), a = Zt.factory(
18114
18178
  sM
@@ -18151,8 +18215,8 @@ const eM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18151
18215
  };
18152
18216
  }, mu = "kos:service:region", yu = "regionId", rM = `${mu}-${yu}`, nM = (t) => /* @__PURE__ */ w("option", { title: t, value: t, children: t }, t), oM = (t = nM) => {
18153
18217
  const [e, s] = _([]), [r, n] = _("factory"), { model: o, ready: i } = ne({
18154
- modelType: le.type,
18155
- modelId: le.type,
18218
+ modelType: ue.type,
18219
+ modelId: ue.type,
18156
18220
  options: {}
18157
18221
  }), a = Zt.factory(
18158
18222
  rM
@@ -18194,8 +18258,8 @@ const eM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18194
18258
  };
18195
18259
  }, iM = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, children: t.format }, t.id), OT = (t = iM) => {
18196
18260
  const [e, s] = _([]), [r, n] = _(), { model: o, ready: i } = ne({
18197
- modelType: le.type,
18198
- modelId: le.type,
18261
+ modelType: ue.type,
18262
+ modelId: ue.type,
18199
18263
  options: {}
18200
18264
  });
18201
18265
  S(() => {
@@ -18371,7 +18435,7 @@ function hM({
18371
18435
  };
18372
18436
  }
18373
18437
  function fM(t, e) {
18374
- return ct(t, e);
18438
+ return lt(t, e);
18375
18439
  }
18376
18440
  function pM({
18377
18441
  formatOptions: t,
@@ -18426,7 +18490,7 @@ const xT = (t) => {
18426
18490
  function PT(t) {
18427
18491
  return (e) => {
18428
18492
  const [s] = lM();
18429
- return s ? /* @__PURE__ */ w(Bv, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ w(t, { ...e });
18493
+ return s ? /* @__PURE__ */ w(jv, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ w(t, { ...e });
18430
18494
  };
18431
18495
  }
18432
18496
  const Qi = g.createLogger({
@@ -18467,7 +18531,7 @@ let to = class {
18467
18531
  l(this, "logger");
18468
18532
  /** Observable data store for Studio properties */
18469
18533
  l(this, "data");
18470
- this.id = t, this.logger = s.logger, this.data = Ue(), this.connectionId = e.connectionId;
18534
+ this.id = t, this.logger = s.logger, this.data = je(), this.connectionId = e.connectionId;
18471
18535
  }
18472
18536
  // -------------------LIFECYCLE----------------------------
18473
18537
  /**
@@ -18536,24 +18600,24 @@ let to = class {
18536
18600
  to = yM([
18537
18601
  R(vu)
18538
18602
  ], to);
18539
- const RT = new Oe({
18603
+ const RT = new Se({
18540
18604
  class: to,
18541
18605
  type: vu
18542
18606
  });
18543
18607
  export {
18544
18608
  yp as AuthState,
18545
- ge as BASE_URL,
18546
- jp as BrowserKosRouter,
18609
+ me as BASE_URL,
18610
+ Bp as BrowserKosRouter,
18547
18611
  _c as BrowserRouter,
18548
18612
  Os as CanvasDispatcher,
18549
18613
  w_ as CanvasDispatcherServices,
18550
18614
  El as CanvasRenderer,
18551
18615
  tT as CanvasStreamer,
18552
18616
  pw as CanvasStreamerBase,
18553
- lt as ChildModels,
18554
- dt as CompanionParentModel,
18617
+ ut as ChildModels,
18618
+ ht as CompanionParentModel,
18555
18619
  Mr as ConfigBean,
18556
- ja as ContainerAwareSetup,
18620
+ Ba as ContainerAwareSetup,
18557
18621
  I_ as CoreExtensionManager,
18558
18622
  Gl as CoreModels,
18559
18623
  Xv as CreateModelTranslationsContext,
@@ -18562,7 +18626,7 @@ export {
18562
18626
  GM as DateHelpers,
18563
18627
  x as DependencyLifecycle,
18564
18628
  F as DependencyModels,
18565
- ot as DependencyResolutionPolicy,
18629
+ it as DependencyResolutionPolicy,
18566
18630
  Zn as Device,
18567
18631
  M_ as DeviceServices,
18568
18632
  cM as DomIntersectionStrategy,
@@ -18582,7 +18646,7 @@ export {
18582
18646
  vg as FUTURE_MODEL_TYPE,
18583
18647
  ac as FUTURE_NOT_ASSIGNED,
18584
18648
  pd as FeatureFlagService,
18585
- Te as FetchError,
18649
+ $e as FetchError,
18586
18650
  ar as FutureAliases,
18587
18651
  pt as FutureContainerFactory,
18588
18652
  zg as FutureContainerModel,
@@ -18595,18 +18659,18 @@ export {
18595
18659
  nr as FutureService,
18596
18660
  Ru as HEADER_CACHE_CONTROL,
18597
18661
  Au as HEADER_CONTENT_TYPE,
18598
- Xe as HEADER_DESTINATION_ADDR,
18662
+ et as HEADER_DESTINATION_ADDR,
18599
18663
  ku as HEADER_FOS_REQUEST_ID,
18600
18664
  io as HEADER_METHOD,
18601
18665
  na as HEADER_ORDERED,
18602
18666
  Kr as HEADER_REQUEST_ID,
18603
- qe as HEADER_REQUEST_TYPE,
18667
+ Ke as HEADER_REQUEST_TYPE,
18604
18668
  ao as HEADER_RESPONSE_ID,
18605
18669
  Pu as HEADER_SOURCE_ADDR,
18606
18670
  xu as HEADER_TOPIC,
18607
18671
  Rs as HEADER_URL,
18608
18672
  oa as HEADER_WORK_TRACKER,
18609
- Qe as HttpRouteHandlers,
18673
+ Ze as HttpRouteHandlers,
18610
18674
  go as KOS_EXECUTION_CONTEXT,
18611
18675
  kn as KOS_MODEL_ID,
18612
18676
  D_ as KOS_SERVICE,
@@ -18614,7 +18678,7 @@ export {
18614
18678
  C_ as KOS_SERVICE_1_8_1,
18615
18679
  Dc as KeyValue,
18616
18680
  l_ as KeyValueServices,
18617
- pe as Kos,
18681
+ ge as Kos,
18618
18682
  Zt as KosConfigPropertySpec,
18619
18683
  Ka as KosContainerIndex,
18620
18684
  Up as KosContextBean,
@@ -18635,7 +18699,7 @@ export {
18635
18699
  Nu as KosMockEvents,
18636
18700
  op as KosModel,
18637
18701
  z_ as KosModelCollectionProvider,
18638
- Ve as KosModelContainer,
18702
+ Ge as KosModelContainer,
18639
18703
  qo as KosModelContext,
18640
18704
  L as KosModelEvents,
18641
18705
  lr as KosModelFactory,
@@ -18643,8 +18707,8 @@ export {
18643
18707
  Jv as KosModelLoaderDisplay,
18644
18708
  lp as KosModelManager,
18645
18709
  Kv as KosModelProvider,
18646
- Oe as KosModelRegistrationFactory,
18647
- Bi as KosModelRegistry,
18710
+ Se as KosModelRegistrationFactory,
18711
+ ji as KosModelRegistry,
18648
18712
  y as KosModelState,
18649
18713
  La as KosModelSymbol,
18650
18714
  AE as KosModelVisitor,
@@ -18656,7 +18720,7 @@ export {
18656
18720
  G_ as KosTimeProvider,
18657
18721
  d_ as KosTimeServices,
18658
18722
  Cv as KosTimer,
18659
- Bp as KosToken,
18723
+ jp as KosToken,
18660
18724
  X_ as KosTranslationProvider,
18661
18725
  Mb as KosTranslations,
18662
18726
  Gf as KosWSTransportStatus,
@@ -18664,14 +18728,14 @@ export {
18664
18728
  XM as LOADER_FEATURE_FLAG,
18665
18729
  Lu as LOGIN_HOST,
18666
18730
  LM as LOGIN_URL,
18667
- Bv as LoadingMessage,
18731
+ jv as LoadingMessage,
18668
18732
  Or as LogBlock,
18669
18733
  ko as LogBlockContainer,
18670
18734
  ir as LogConfig,
18671
18735
  yr as LogStream,
18672
18736
  un as LogStreamContainer,
18673
18737
  h_ as LogStreamServices,
18674
- Ba as LoggerSetup,
18738
+ ja as LoggerSetup,
18675
18739
  cp as MODEL_DELETION_DELAY,
18676
18740
  Cp as MiddlewareChain,
18677
18741
  At as ModelEffects,
@@ -18680,9 +18744,9 @@ export {
18680
18744
  Jd as MultipleFutureHandler,
18681
18745
  Ko as NestedModelContext,
18682
18746
  Rl as NetworkInterface,
18683
- jr as NetworkInterfaceContainer,
18747
+ Br as NetworkInterfaceContainer,
18684
18748
  E_ as NetworkInterfaceServices,
18685
- Ue as ObservableData,
18749
+ je as ObservableData,
18686
18750
  Jr as OptionsRequired,
18687
18751
  Kn as Ota,
18688
18752
  aT as OutsideAlerter,
@@ -18694,16 +18758,16 @@ export {
18694
18758
  Xu as PROFILE_TOOLS_PREVIEW,
18695
18759
  or as ParentModel,
18696
18760
  QM as PluginExtensionManager,
18697
- j_ as ProgressBar,
18761
+ B_ as ProgressBar,
18698
18762
  bn as ReferenceConfig,
18699
- le as RegionInfo,
18763
+ ue as RegionInfo,
18700
18764
  n_ as RegionServices,
18701
18765
  P as RegistrationManager,
18702
18766
  $_ as Registry,
18703
18767
  Dt as ReplayStrategy,
18704
- ye as ResponseRetention,
18768
+ be as ResponseRetention,
18705
18769
  ra as STATUS,
18706
- de as ServiceFactory,
18770
+ he as ServiceFactory,
18707
18771
  Rt as ServiceRequestHandlers,
18708
18772
  Re as SingletonKosModelRegistrationFactory,
18709
18773
  Gn as SoftwareInfo,
@@ -18735,7 +18799,7 @@ export {
18735
18799
  $n as TransitionMap,
18736
18800
  Wa as Transitions,
18737
18801
  Qn as Translation,
18738
- Ze as TranslationContainer,
18802
+ Je as TranslationContainer,
18739
18803
  lu as TranslationContainerContext,
18740
18804
  b_ as TranslationContext,
18741
18805
  ci as TransportFactory,
@@ -18743,7 +18807,7 @@ export {
18743
18807
  Ua as TroubleAwareSetup,
18744
18808
  $s as TroubleContainer,
18745
18809
  f_ as TroubleServices,
18746
- Me as Troubles,
18810
+ Ee as Troubles,
18747
18811
  Kl as UsbUpdate,
18748
18812
  zr as UsbUpdateContainer,
18749
18813
  T_ as UsbUpdateServices,
@@ -18760,7 +18824,7 @@ export {
18760
18824
  Og as addFuture,
18761
18825
  qu as addMonthsToDate,
18762
18826
  Ag as api,
18763
- jM as applyMixins,
18827
+ BM as applyMixins,
18764
18828
  HM as arraysEqual,
18765
18829
  r_ as buildConfigBeanModel,
18766
18830
  vc as buildFuture,
@@ -18770,14 +18834,14 @@ export {
18770
18834
  Mh as checkWildcardPattern,
18771
18835
  zE as clearAllServiceResponses,
18772
18836
  HE as clearPath,
18773
- jE as clearServiceResponse,
18837
+ BE as clearServiceResponse,
18774
18838
  mc as convert,
18775
- BM as convertFileSizeRaw,
18839
+ jM as convertFileSizeRaw,
18776
18840
  o_ as convertWithUnits,
18777
18841
  Df as createBaseMessage,
18778
18842
  Rf as createBroadcastMessageResponse,
18779
- B_ as createCancellablePromise,
18780
- et as createClient,
18843
+ j_ as createCancellablePromise,
18844
+ tt as createClient,
18781
18845
  Cf as createFosBaseMessage,
18782
18846
  Gs as createHeaders,
18783
18847
  kf as createKosHtpMessageResponse,
@@ -18794,7 +18858,7 @@ export {
18794
18858
  Wu as debounce,
18795
18859
  Vd as del,
18796
18860
  Ig as deleteFuture,
18797
- ht as destroyKosModel,
18861
+ Ue as destroyKosModel,
18798
18862
  Wp as evaluateScopes,
18799
18863
  Xh as executeChildrenModelLifecycle,
18800
18864
  Ks as executeDependentModelLifecycle,
@@ -18808,9 +18872,9 @@ export {
18808
18872
  Gu as formatTime,
18809
18873
  Kd as get,
18810
18874
  ih as getAllKosCompanionModels,
18811
- Bw as getCalendarMonthArray,
18875
+ jw as getCalendarMonthArray,
18812
18876
  Yp as getConfigBean,
18813
- jw as getDayStrings,
18877
+ Bw as getDayStrings,
18814
18878
  vT as getDays,
18815
18879
  Lw as getDaysArray,
18816
18880
  Oa as getDaysInMonth,
@@ -18836,12 +18900,12 @@ export {
18836
18900
  ii as getMessageBody,
18837
18901
  Fw as getMonthsArray,
18838
18902
  EE as getObservableCompanions,
18839
- Ie as getQueryParams,
18903
+ Oe as getQueryParams,
18840
18904
  UE as getServiceResponse,
18841
18905
  e_ as getStartedApps,
18842
18906
  hb as getTranslations,
18843
18907
  Nw as getYearsArray,
18844
- BE as hasCachedResponse,
18908
+ jE as hasCachedResponse,
18845
18909
  qp as hasDecimals,
18846
18910
  Ln as hasHttpRouteHandlers,
18847
18911
  Wo as hasKosProfile,
@@ -18867,9 +18931,9 @@ export {
18867
18931
  sr as isValidDate,
18868
18932
  oe as kosAction,
18869
18933
  ee as kosAutoEffect,
18870
- Ke as kosChild,
18934
+ Ve as kosChild,
18871
18935
  rE as kosCompanion,
18872
- BT as kosComponent,
18936
+ jT as kosComponent,
18873
18937
  oc as kosComputed,
18874
18938
  Eo as kosConfigBean,
18875
18939
  i_ as kosConfigProperty,
@@ -18908,7 +18972,7 @@ export {
18908
18972
  bc as mapDtoToFutureModel,
18909
18973
  yc as mapDtoToFutureOptions,
18910
18974
  Zp as mapUpdateDtoToConfigBeanModel,
18911
- jh as modelEventTopicFactory,
18975
+ Bh as modelEventTopicFactory,
18912
18976
  Ls as modelFactory,
18913
18977
  Hh as modelTypeEventTopicFactory,
18914
18978
  Gp as modifyConfigBean,
@@ -18937,7 +19001,7 @@ export {
18937
19001
  GE as resolveKosContext,
18938
19002
  nd as resolveKosProfiles,
18939
19003
  qM as resolveListDeltas,
18940
- me as resolveServiceUrl,
19004
+ ye as resolveServiceUrl,
18941
19005
  bd as resolveVariable,
18942
19006
  NE as retryWithExponentialBackoff,
18943
19007
  ZE as sendAsyncIntent,
@@ -19024,7 +19088,7 @@ export {
19024
19088
  JE as waitForAppToStart,
19025
19089
  Hp as waitForAppsToStart,
19026
19090
  sc as waitForRequest,
19027
- we as whenReady,
19091
+ Me as whenReady,
19028
19092
  sT as withDevice,
19029
19093
  nT as withKosTime,
19030
19094
  oT as withNetworkInterfaceContainer,