@kosdev-code/kos-ui-sdk 2.1.30 → 2.1.32

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
@@ -2,9 +2,9 @@ var wu = Object.defineProperty;
2
2
  var Mu = (t, e, s) => e in t ? wu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var l = (t, e, s) => (Mu(t, typeof e != "symbol" ? e + "" : e, s), s);
4
4
  import C from "loglevel";
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";
5
+ import { runInAction as X, makeAutoObservable as Ae, 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
- import { createMachine as ms, invoke as De, state as Z, transition as D, action as q, interpret as ys, immediate as Pt } from "robot3";
7
+ import { createMachine as ms, invoke as xe, state as Z, transition as D, action as q, interpret as ys, immediate as Pt } from "robot3";
8
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";
@@ -14,7 +14,7 @@ import mt, { createContext as As, useContext as dt, useState as _, useCallback a
14
14
  import { observer as sa } from "mobx-react-lite";
15
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", 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}";
17
+ const io = "method", xu = "topic", Rs = "url", Kr = "request-id", ao = "response-id", ra = "status", et = "dst-addr", Pu = "src-addr", Ve = "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");
@@ -750,7 +750,7 @@ class QM {
750
750
  return this.extensions;
751
751
  }
752
752
  }
753
- const Oe = (t = null) => (t || window.location.search.replace("?", "")).split("&").map((e) => {
753
+ const Se = (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 = Oe(), e = od(), r = t.kosLogLevel ?? e ?? window.kosLogLevel ?? process.env.KOS_LOG_LEVEL;
766
+ const t = Se(), 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) {
@@ -900,7 +900,7 @@ 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"), 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(
903
+ }, ae = Symbol("SubscriptionHandlers"), N = 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
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) {
@@ -1073,7 +1073,7 @@ 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 Ve = (t, e) => {
1076
+ const Ge = (t, e) => {
1077
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] || {};
@@ -1148,7 +1148,7 @@ function Xr(t) {
1148
1148
  path: s,
1149
1149
  handler: n
1150
1150
  };
1151
- return r[Ze].push(i), r[F] = r[F] || {}, r[F][Zo] || (r[F][Zo] = {
1151
+ return r[Ze].push(i), r[N] = r[N] || {}, r[N][Zo] || (r[N][Zo] = {
1152
1152
  modelType: "browser-router-model",
1153
1153
  // This is the MODEL_TYPE from BrowserRouter
1154
1154
  lifecycle: x.INIT
@@ -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" }), Te = ({
1215
+ }, vn = g.createLogger({ name: "resolve-parameters" }), $e = ({
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] = Te({
1226
+ r = Object.keys(r).reduce((n, o) => (n[o] = $e({
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 = Te({
1275
+ const { default: m } = await Promise.resolve().then(() => ec), b = $e({
1276
1276
  value: p.path,
1277
1277
  modelId: this.id,
1278
1278
  modelData: this
@@ -1287,7 +1287,7 @@ 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(), j = m, [te, We] = V === "get" ? await j.get(b, E, $) : V === "post" ? await j.post(
1290
+ const V = (p.method || "get").toLowerCase(), j = m, [te, Ee] = V === "get" ? await j.get(b, E, $) : V === "post" ? await j.post(
1291
1291
  b,
1292
1292
  E,
1293
1293
  k,
@@ -1307,7 +1307,9 @@ function Wt(t) {
1307
1307
  if (p.errorHandler)
1308
1308
  switch (p.errorHandler.strategy) {
1309
1309
  case "log":
1310
- return console.error(`Service request error: ${te}`), p.errorHandler.onError && p.errorHandler.onError(
1310
+ return console.error(
1311
+ `Service request status ${Ee == null ? void 0 : Ee.status} error: ${te}`
1312
+ ), p.errorHandler.onError && p.errorHandler.onError(
1311
1313
  new Error(te),
1312
1314
  this
1313
1315
  ), [null, p.errorHandler.defaultValue];
@@ -1321,8 +1323,8 @@ function Wt(t) {
1321
1323
  }
1322
1324
  return [te, null];
1323
1325
  }
1324
- let Qe = We;
1325
- return p.transform && (Qe = p.transform(We)), [null, Qe];
1326
+ let Qe = Ee;
1327
+ return p.transform && (Qe = p.transform(Ee)), [null, Qe];
1326
1328
  } catch (m) {
1327
1329
  return [m.message || "Unknown error", null];
1328
1330
  }
@@ -1396,7 +1398,7 @@ function mE(t) {
1396
1398
  const s = (t == null ? void 0 : t.pathProperty) || "path";
1397
1399
  return e.prototype[Ua] = {
1398
1400
  pathProperty: s
1399
- }, e.prototype[F] = e.prototype[F] || {}, e.prototype[F].troubleContainer = {
1401
+ }, e.prototype[N] = e.prototype[N] || {}, e.prototype[N].troubleContainer = {
1400
1402
  modelType: "trouble-container-model",
1401
1403
  id: "trouble-container-model",
1402
1404
  // TroubleContainer is a singleton
@@ -1414,7 +1416,7 @@ const ks = ({
1414
1416
  lifecycle: r,
1415
1417
  resolutionPolicy: n
1416
1418
  }) => (o, i) => {
1417
- o[F] = o[F] || {}, o[F][i] = {
1419
+ o[N] = o[N] || {}, o[N][i] = {
1418
1420
  modelType: t,
1419
1421
  id: e,
1420
1422
  options: s,
@@ -1429,7 +1431,7 @@ class Jd {
1429
1431
  l(this, "context");
1430
1432
  l(this, "disposers", /* @__PURE__ */ new Map());
1431
1433
  l(this, "container");
1432
- this.futures = ic.map(/* @__PURE__ */ new Map()), this.context = "", this.defaultContext = s || "", this.container = e, Pe(this);
1434
+ this.futures = ic.map(/* @__PURE__ */ new Map()), this.context = "", this.defaultContext = s || "", this.container = e, Ae(this);
1433
1435
  }
1434
1436
  get allFutures() {
1435
1437
  return Array.from(this.futures.values());
@@ -1462,7 +1464,7 @@ class mo {
1462
1464
  l(this, "_future");
1463
1465
  l(this, "container");
1464
1466
  l(this, "onFutureUpdate");
1465
- this._future = void 0, this.container = e, Pe(this);
1467
+ this._future = void 0, this.container = e, Ae(this);
1466
1468
  }
1467
1469
  removeFuture() {
1468
1470
  var e;
@@ -1575,7 +1577,7 @@ function th(t, e) {
1575
1577
  }
1576
1578
  });
1577
1579
  }
1578
- const je = (t) => {
1580
+ const Be = (t) => {
1579
1581
  const e = th(qa, t);
1580
1582
  return new e(t);
1581
1583
  };
@@ -1588,9 +1590,9 @@ class Ka {
1588
1590
  l(this, "_map");
1589
1591
  l(this, "_key");
1590
1592
  l(this, "data");
1591
- this._container = e, this._map = se.map(/* @__PURE__ */ new Map()), this._key = s, this.data = je(), this.generateIndex(), Ds(() => {
1593
+ this._container = e, this._map = se.map(/* @__PURE__ */ new Map()), this._key = s, this.data = Be(), this.generateIndex(), Ds(() => {
1592
1594
  this._container.revision && this.generateIndex();
1593
- }), Pe(this);
1595
+ }), Ae(this);
1594
1596
  }
1595
1597
  refresh() {
1596
1598
  this.generateIndex();
@@ -1653,7 +1655,7 @@ function rh(t, e, s = []) {
1653
1655
  );
1654
1656
  }
1655
1657
  const le = g.createLogger({ name: "kos-container-model" });
1656
- class Ge {
1658
+ class Ye {
1657
1659
  constructor(e) {
1658
1660
  l(this, "_data");
1659
1661
  l(this, "_sortKey");
@@ -1678,7 +1680,7 @@ class Ge {
1678
1680
  ) : {}, r = (e == null ? void 0 : e.indexMap) || {};
1679
1681
  this._optionsMap = { ...r, ...s };
1680
1682
  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 = 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();
1683
+ this._index = se.map(n), this.idx = Be(), 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())), Ae(this), this.init();
1682
1684
  }
1683
1685
  init() {
1684
1686
  Object.keys(this._optionsMap).forEach((e) => {
@@ -1752,7 +1754,7 @@ class Ge {
1752
1754
  }
1753
1755
  this.removeModel(e);
1754
1756
  try {
1755
- await Ue(s);
1757
+ await je(s);
1756
1758
  } catch (r) {
1757
1759
  throw le.error(`Failed to destroy model ${e}:`, r), r;
1758
1760
  }
@@ -1775,7 +1777,7 @@ class Ge {
1775
1777
  }
1776
1778
  this.removeAll(e);
1777
1779
  const r = await Promise.allSettled(
1778
- s.map((o) => Ue(o))
1780
+ s.map((o) => je(o))
1779
1781
  );
1780
1782
  r.forEach((o, i) => {
1781
1783
  o.status === "rejected" && le.error(
@@ -1974,7 +1976,7 @@ class Ge {
1974
1976
  parentId: this._parentId,
1975
1977
  strategy: this._evictionStrategy
1976
1978
  }
1977
- ), this.removeModel(s.id, !0), Ue(s).catch(
1979
+ ), this.removeModel(s.id, !0), je(s).catch(
1978
1980
  (r) => le.error(`Failed to destroy evicted model ${s.id}:`, r)
1979
1981
  );
1980
1982
  }
@@ -1991,7 +1993,7 @@ class Ge {
1991
1993
  async clear() {
1992
1994
  this._data.forEach((e) => {
1993
1995
  const s = e.id;
1994
- Ue(e).then(() => {
1996
+ je(e).then(() => {
1995
1997
  le.debug(`${s} destroyed, removing from map`), this.removeModel(s, !0);
1996
1998
  }).catch((r) => le.error(r));
1997
1999
  }), this.increment();
@@ -2028,7 +2030,7 @@ const Me = async (t) => {
2028
2030
  } else
2029
2031
  throw new Error("Data model must have a valid ID");
2030
2032
  return t;
2031
- }, Ue = async (t) => {
2033
+ }, je = async (t) => {
2032
2034
  await T.getInstance().whenReady(), await T.getInstance().modelManager.initiateDestroyModel(t);
2033
2035
  }, yE = async (t) => {
2034
2036
  if (await T.getInstance().whenReady(), !t.id)
@@ -2051,7 +2053,7 @@ const Me = async (t) => {
2051
2053
  throw new Error("Model ID is required");
2052
2054
  const e = T.getInstance().modelManager.getModelById(t);
2053
2055
  return { model: e == null ? void 0 : e.modelData, type: e == null ? void 0 : e.modelTypeName };
2054
- }, Be = (t) => {
2056
+ }, He = (t) => {
2055
2057
  if (!t)
2056
2058
  throw new Error("Model ID is required");
2057
2059
  const e = T.getInstance().modelManager.getModelById(t);
@@ -2095,7 +2097,7 @@ const Me = async (t) => {
2095
2097
  return Array.from(s.companionModels.all()).find(
2096
2098
  (n) => e(n.modelData)
2097
2099
  );
2098
- }, Ae = (t) => (e) => Object.getPrototypeOf(e).modelTypeId === t, Fn = (t) => {
2100
+ }, Re = (t) => (e) => Object.getPrototypeOf(e).modelTypeId === t, Fn = (t) => {
2099
2101
  const e = T.getInstance().modelManager.getModelById(t.id);
2100
2102
  if (!e)
2101
2103
  throw new Error("Model not found");
@@ -2197,7 +2199,7 @@ class Va {
2197
2199
  l(this, "guard");
2198
2200
  l(this, "factory");
2199
2201
  l(this, "relatedModels", []);
2200
- this.singleton = e.singleton, this.guard = Ae(e.type), this.type = e.type, this.loader = `kos.extension.model.loader.${e.type}`, this.factory = e.factory, this.class = e.class;
2202
+ this.singleton = e.singleton, this.guard = Re(e.type), this.type = e.type, this.loader = `kos.extension.model.loader.${e.type}`, this.factory = e.factory, this.class = e.class;
2201
2203
  }
2202
2204
  addRelatedModel(e) {
2203
2205
  this.relatedModels.push(e);
@@ -2209,7 +2211,7 @@ class Va {
2209
2211
  P.model.register({})(this.registration()), this.registerRelatedModels();
2210
2212
  }
2211
2213
  }
2212
- class Se extends Va {
2214
+ class Ce extends Va {
2213
2215
  constructor(e) {
2214
2216
  super({
2215
2217
  ...e,
@@ -2221,7 +2223,7 @@ class Se extends Va {
2221
2223
  const s = this.factory(e);
2222
2224
  return {
2223
2225
  get: () => {
2224
- const r = Be(e);
2226
+ const r = He(e);
2225
2227
  if (!r)
2226
2228
  throw new Error("Model not found with id " + e);
2227
2229
  if (this.guard(r))
@@ -2269,7 +2271,7 @@ class Se extends Va {
2269
2271
  };
2270
2272
  }
2271
2273
  }
2272
- class Re extends Va {
2274
+ class ke extends Va {
2273
2275
  constructor(e) {
2274
2276
  super({
2275
2277
  ...e,
@@ -2281,7 +2283,7 @@ class Re extends Va {
2281
2283
  const e = this.factory;
2282
2284
  return {
2283
2285
  get: () => {
2284
- const r = Be(this.type);
2286
+ const r = He(this.type);
2285
2287
  if (!r)
2286
2288
  throw new Error("Model not found with id " + this.type);
2287
2289
  if (this.guard(r))
@@ -2341,7 +2343,7 @@ function uh(t, e, s) {
2341
2343
  const r = (o = t[or]) == null ? void 0 : o.parentId;
2342
2344
  if (!r)
2343
2345
  return;
2344
- const n = Te({
2346
+ const n = $e({
2345
2347
  value: r,
2346
2348
  modelData: s,
2347
2349
  modelId: e
@@ -2355,14 +2357,14 @@ function dh(t) {
2355
2357
  });
2356
2358
  }
2357
2359
  function hh(t, e) {
2358
- const s = t[F] || {};
2360
+ const s = t[N] || {};
2359
2361
  Object.entries(s).forEach(([r, n]) => {
2360
- const o = Te({
2362
+ const o = $e({
2361
2363
  value: n.id || n.modelType,
2362
2364
  modelData: t,
2363
2365
  modelId: e
2364
2366
  }), i = Object.entries((n == null ? void 0 : n.options) || {}).reduce(
2365
- (a, [c, u]) => (a[c] = Te({
2367
+ (a, [c, u]) => (a[c] = $e({
2366
2368
  value: u,
2367
2369
  modelData: t,
2368
2370
  modelId: e
@@ -2555,7 +2557,7 @@ function mh(t, e) {
2555
2557
  ...a,
2556
2558
  // If parentId is not provided, use the modelId (first constructor parameter)
2557
2559
  parentId: a.parentId || e
2558
- }, d = new Ge(u);
2560
+ }, d = new Ye(u);
2559
2561
  t[r] = d, t[ut] || (t[ut] = {}), t[ut][r] = d, n && (t.getModel = (h) => d.getModel(h), t.addModel = (h) => {
2560
2562
  d.addModel(h);
2561
2563
  }, t.removeModel = (h) => {
@@ -2653,7 +2655,7 @@ function yh(t, e) {
2653
2655
  }
2654
2656
  function bh(t) {
2655
2657
  try {
2656
- return Pe(t);
2658
+ return Ae(t);
2657
2659
  } catch (e) {
2658
2660
  return Nn.error("Failed to make observable:", e), t;
2659
2661
  }
@@ -2677,16 +2679,16 @@ function R(t) {
2677
2679
  return (e) => {
2678
2680
  var o, i;
2679
2681
  const s = e, r = typeof t == "string" ? { modelTypeId: t, autoRegister: !1 } : { autoRegister: !1, ...t };
2680
- s.prototype.modelTypeId = r.modelTypeId, s.prototype[La] = !0, (o = s.prototype)[ae] ?? (o[ae] = {}), (i = s.prototype)[F] ?? (i[F] = {}), r.optionsRequired && (s.prototype[Jr] = !0), g.ifDebug(() => {
2682
+ s.prototype.modelTypeId = r.modelTypeId, s.prototype[La] = !0, (o = s.prototype)[ae] ?? (o[ae] = {}), (i = s.prototype)[N] ?? (i[N] = {}), r.optionsRequired && (s.prototype[Jr] = !0), g.ifDebug(() => {
2681
2683
  g.debug(`Registering model with id ${r.modelTypeId}`);
2682
2684
  });
2683
2685
  const n = new Proxy(s, vh);
2684
2686
  if (r.singleton !== void 0) {
2685
2687
  let a;
2686
- r.singleton ? a = new Re({
2688
+ r.singleton ? a = new ke({
2687
2689
  class: n,
2688
2690
  type: r.modelTypeId
2689
- }) : a = new Se({
2691
+ }) : a = new Ce({
2690
2692
  class: n,
2691
2693
  type: r.modelTypeId
2692
2694
  }), Object.defineProperty(n, "Registration", {
@@ -3208,7 +3210,7 @@ const Qa = (t, e, s) => {
3208
3210
  }), cancel: () => {
3209
3211
  r && clearTimeout(r);
3210
3212
  } };
3211
- }, IE = (t) => typeof t.toJSON == "function", dr = (t) => t[F] !== void 0, Za = (t) => t.revision !== void 0 && t.index !== void 0, Wh = (t) => {
3213
+ }, IE = (t) => typeof t.toJSON == "function", dr = (t) => t[N] !== void 0, Za = (t) => t.revision !== void 0 && t.index !== void 0, Wh = (t) => {
3212
3214
  if (t) {
3213
3215
  if (dr(t))
3214
3216
  return t;
@@ -3221,7 +3223,7 @@ const Qa = (t, e, s) => {
3221
3223
  }
3222
3224
  }, Qh = (t, e) => {
3223
3225
  var f;
3224
- const s = e.id || e.modelType, r = Te({
3226
+ const s = e.id || e.modelType, r = $e({
3225
3227
  value: s,
3226
3228
  modelData: t.modelData,
3227
3229
  modelId: t.modelId
@@ -3231,7 +3233,7 @@ const Qa = (t, e, s) => {
3231
3233
  );
3232
3234
  const o = Object.keys((e == null ? void 0 : e.options) || {}).reduce((p, m) => {
3233
3235
  const b = e.options[m];
3234
- return p[m] = Te({
3236
+ return p[m] = $e({
3235
3237
  value: b,
3236
3238
  modelData: t.modelData,
3237
3239
  modelId: t.modelId
@@ -3333,7 +3335,7 @@ const Qa = (t, e, s) => {
3333
3335
  }
3334
3336
  }, Zh = (t, e = x.READY) => {
3335
3337
  var n;
3336
- const s = ((n = t.modelData) == null ? void 0 : n[F]) || {};
3338
+ const s = ((n = t.modelData) == null ? void 0 : n[N]) || {};
3337
3339
  return Object.keys(s).length === 0 ? (g.debug(`${t.modelId} has no dependencies. Returning`), []) : Object.keys(s).filter((o) => s[o].lifecycle === e).map((o) => {
3338
3340
  const i = s[o], a = Qh(t, i);
3339
3341
  if (!a.success || !a.dependentModel)
@@ -3533,7 +3535,7 @@ function tf(t, e, s, r) {
3533
3535
  configurable: !0,
3534
3536
  get() {
3535
3537
  var a, c, u;
3536
- const n = ((a = r.getChildren) == null ? void 0 : a.call(r)) || [], o = ((c = r.companionManager) == null ? void 0 : c.all()) || [], i = r.modelData[F] || {};
3538
+ const n = ((a = r.getChildren) == null ? void 0 : a.call(r)) || [], o = ((c = r.companionManager) == null ? void 0 : c.all()) || [], i = r.modelData[N] || {};
3537
3539
  return {
3538
3540
  id: s,
3539
3541
  type: e,
@@ -3668,7 +3670,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
3668
3670
  [y.INACTIVE]: Z(
3669
3671
  D(L.GO_ACTIVE, y.ACTIVATING)
3670
3672
  ),
3671
- [y.ACTIVATING]: De(
3673
+ [y.ACTIVATING]: xe(
3672
3674
  () => (t.activeStatus = y.ACTIVATING, t.activate()),
3673
3675
  D(
3674
3676
  "done",
@@ -3688,7 +3690,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
3688
3690
  [y.ACTIVE]: Z(
3689
3691
  D(L.GO_INACTIVE, y.DEACTIVATING)
3690
3692
  ),
3691
- [y.DEACTIVATING]: De(
3693
+ [y.DEACTIVATING]: xe(
3692
3694
  () => (t.activeStatus = y.DEACTIVATING, t.deactivate()),
3693
3695
  D(
3694
3696
  "done",
@@ -3746,7 +3748,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
3746
3748
  D(L.CREATE, y.CREATED)
3747
3749
  ),
3748
3750
  [y.CREATED]: Z(Pt(y.INITIALIZING)),
3749
- [y.INITIALIZING]: De(
3751
+ [y.INITIALIZING]: xe(
3750
3752
  () => (oe(() => {
3751
3753
  t.status = y.INITIALIZING;
3752
3754
  }), t.init()),
@@ -3768,7 +3770,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
3768
3770
  )
3769
3771
  ),
3770
3772
  [y.INITIALIZED]: Z(Pt(y.LOADING)),
3771
- [y.LOADING]: De(
3773
+ [y.LOADING]: xe(
3772
3774
  () => (oe(() => {
3773
3775
  t.status = y.LOADING;
3774
3776
  }), t.load()),
@@ -3791,7 +3793,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
3791
3793
  Pt(y.READYING),
3792
3794
  D(L.UNLOAD, y.UNLOADING)
3793
3795
  ),
3794
- [y.RESETTING]: De(
3796
+ [y.RESETTING]: xe(
3795
3797
  () => {
3796
3798
  var n;
3797
3799
  return oe(() => {
@@ -3806,7 +3808,7 @@ const of = g.createLogger({ name: "model-active-machine" }), af = (t) => {
3806
3808
  })
3807
3809
  )
3808
3810
  ),
3809
- [y.READYING]: De(
3811
+ [y.READYING]: xe(
3810
3812
  () => (oe(() => {
3811
3813
  t.status = y.READYING;
3812
3814
  }), t.ready()),
@@ -3952,7 +3954,7 @@ class Xa {
3952
3954
  break;
3953
3955
  }
3954
3956
  }
3955
- if (e || (e = (s = Be(
3957
+ if (e || (e = (s = He(
3956
3958
  Ja
3957
3959
  )) == null ? void 0 : s.model), !e)
3958
3960
  throw this.logger.error(
@@ -4089,7 +4091,7 @@ class Xa {
4089
4091
  function OE(t, e) {
4090
4092
  if (!Ln(t))
4091
4093
  return;
4092
- const s = Be(Ja);
4094
+ const s = He(Ja);
4093
4095
  if (!(s != null && s.model))
4094
4096
  throw e.error(
4095
4097
  "Cannot register HTTP routes: BrowserRouter not found. Make sure to include BrowserRouter in your model dependencies or create an instance."
@@ -4262,7 +4264,7 @@ async function Vs(t, e, s, r, n) {
4262
4264
  ...s
4263
4265
  };
4264
4266
  n && (c.body = JSON.stringify(n));
4265
- const u = await Le(a, c);
4267
+ const u = await Fe(a, c);
4266
4268
  return u.status < 200 || u.status >= 400 ? [`${u.statusText || yf}`, null] : [null, (await u.json()).data];
4267
4269
  }
4268
4270
  function tt() {
@@ -4279,9 +4281,9 @@ function tt() {
4279
4281
  )
4280
4282
  };
4281
4283
  }
4282
- const ke = tt(), ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4284
+ const Le = tt(), ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4283
4285
  __proto__: null,
4284
- default: ke
4286
+ default: Le
4285
4287
  }, Symbol.toStringTag, { value: "Module" })), ot = g.createLogger({
4286
4288
  name: "kos-service-request-manager",
4287
4289
  group: "Model"
@@ -4290,7 +4292,7 @@ function bf(t, e) {
4290
4292
  return !t.condition || t.condition(e);
4291
4293
  }
4292
4294
  function vf(t, e) {
4293
- return Te({
4295
+ return $e({
4294
4296
  value: t.path,
4295
4297
  modelId: e.id,
4296
4298
  modelData: e
@@ -4298,7 +4300,7 @@ function vf(t, e) {
4298
4300
  }
4299
4301
  function wf(t, e) {
4300
4302
  if (t.pathParams)
4301
- return Te({
4303
+ return $e({
4302
4304
  value: typeof t.pathParams == "function" ? t.pathParams(e) : t.pathParams,
4303
4305
  modelId: e.id,
4304
4306
  modelData: e
@@ -4306,7 +4308,7 @@ function wf(t, e) {
4306
4308
  }
4307
4309
  function Mf(t, e) {
4308
4310
  if (t.queryParams)
4309
- return Te({
4311
+ return $e({
4310
4312
  value: typeof t.queryParams == "function" ? t.queryParams(e) : t.queryParams,
4311
4313
  modelId: e.id,
4312
4314
  modelData: e
@@ -4314,7 +4316,7 @@ function Mf(t, e) {
4314
4316
  }
4315
4317
  function Ef(t, e) {
4316
4318
  if (t.body)
4317
- return Te({
4319
+ return $e({
4318
4320
  value: typeof t.body == "function" ? t.body(e) : t.body,
4319
4321
  modelId: e.id,
4320
4322
  modelData: e
@@ -4497,7 +4499,7 @@ class If {
4497
4499
  * Make HTTP request using existing KOS API client
4498
4500
  */
4499
4501
  async makeRequest(e, s, r, n) {
4500
- const o = ke;
4502
+ const o = Le;
4501
4503
  switch (s) {
4502
4504
  case "get":
4503
4505
  return await o.get(e, r);
@@ -4669,7 +4671,7 @@ const Sf = ({
4669
4671
  `, n += `${Rs}:${t}
4670
4672
  `, n += `${Kr}:${e}
4671
4673
  `, r && (n += `${et}:${r}
4672
- `), n += `${Ke}:kos.studio.request
4674
+ `), n += `${Ve}:kos.studio.request
4673
4675
  `, n += `
4674
4676
  `, n;
4675
4677
  }, Cf = ({
@@ -4688,7 +4690,7 @@ const Sf = ({
4688
4690
  `, r && (i += `${et}:${r}
4689
4691
  `), n && (i += `${na}:true
4690
4692
  `), o && (i += `${oa}:${o}
4691
- `), i += `${Ke}:fos.http.request
4693
+ `), i += `${Ve}:fos.http.request
4692
4694
  `, i += `
4693
4695
  `, i;
4694
4696
  }, Df = ({
@@ -4711,7 +4713,7 @@ const Sf = ({
4711
4713
  `), a && Object.keys(a).forEach((u) => {
4712
4714
  c += `${u}:${a[u]}
4713
4715
  `;
4714
- }), c += `${Ke}:${i ? "fos" : "kos"}.http.request
4716
+ }), c += `${Ve}:${i ? "fos" : "kos"}.http.request
4715
4717
  `, c += `
4716
4718
  `, c;
4717
4719
  }, yt = (t, e) => {
@@ -4781,7 +4783,7 @@ const xf = ({
4781
4783
  return r += `${Rs}:${t}
4782
4784
  `, r += `${Kr}:${e}
4783
4785
  `, r += `${et}:${s}
4784
- `, r += `${Ke}:kos.studio.request
4786
+ `, r += `${Ve}:kos.studio.request
4785
4787
  `, r += `
4786
4788
  `, r;
4787
4789
  }, Pf = ({
@@ -4793,7 +4795,7 @@ const xf = ({
4793
4795
  let n = `${Kr}:${t}
4794
4796
  `;
4795
4797
  return n += `${et}:${e}
4796
- `, n += `${Ke}:${s}
4798
+ `, n += `${Ve}:${s}
4797
4799
  `, r && Object.keys(r).forEach((o) => {
4798
4800
  n += `${o}:${r[o]}
4799
4801
  `;
@@ -4817,7 +4819,7 @@ const xf = ({
4817
4819
  `, e && (n += `${ao}:${e}
4818
4820
  `), n += `${ra}:${s}
4819
4821
  `, n += `${et}:${r}
4820
- `, n += `${Ke}:kos.studio.response
4822
+ `, n += `${Ve}:kos.studio.response
4821
4823
  `, n += `
4822
4824
  `, n;
4823
4825
  }, CE = (t, e) => {
@@ -4837,7 +4839,7 @@ const xf = ({
4837
4839
  }) => {
4838
4840
  let e = `topic:${t}
4839
4841
  `;
4840
- return e += `${Ke}:kos.broker.send
4842
+ return e += `${Ve}:kos.broker.send
4841
4843
  `, e += `
4842
4844
  `, e;
4843
4845
  }, kf = ({
@@ -4851,7 +4853,7 @@ const xf = ({
4851
4853
  `;
4852
4854
  return o += `${et}:${e}
4853
4855
  `, o += `${Pu}:${r}
4854
- `, o += `${Ke}:${s ?? "kos.message.request"}
4856
+ `, o += `${Ve}:${s ?? "kos.message.request"}
4855
4857
  `, o += `${ra}:${n}
4856
4858
  `, o += `${Au}:application/json
4857
4859
  `, o += `${Ru}:no-cache
@@ -4867,7 +4869,7 @@ const xf = ({
4867
4869
  `;
4868
4870
  return e && (n += `${ao}:${e}
4869
4871
  `), n += `${et}:${s}
4870
- `, n += `${Ke}:${r ?? "kos.message.request"}
4872
+ `, n += `${Ve}:${r ?? "kos.message.request"}
4871
4873
  `, n += `
4872
4874
  `, n;
4873
4875
  }, xE = ({
@@ -5335,7 +5337,7 @@ class ci {
5335
5337
  });
5336
5338
  }
5337
5339
  }
5338
- const Vf = Oe();
5340
+ const Vf = Se();
5339
5341
  Vf.fos && (window.kosUseFos = !0);
5340
5342
  const li = process.env.KOS_FOS_PORT;
5341
5343
  window.kosUseFos = !!(window.kosUseFos || process.env.KOS_USE_FOS === "true");
@@ -5419,7 +5421,7 @@ class vs {
5419
5421
  _sendSubscriptionMessage(e, s, r = !1, n = !1, o) {
5420
5422
  var f, p, m, b;
5421
5423
  rt.debug(`${s} to topic ${e}`);
5422
- 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"));
5424
+ const i = Se(), a = i == null ? void 0 : i.connId, c = o ?? a ?? ((f = window == null ? void 0 : window.kosBridge) == null ? void 0 : f.call(window, "connId"));
5423
5425
  rt.debug(`subscribing with connId ${c}`);
5424
5426
  const u = c ? `dst-addr:${c}
5425
5427
  ` : "", d = r ? `subscribe:${e}` : n ? `type:fos.broker
@@ -5569,7 +5571,7 @@ class Yf {
5569
5571
  bridge: e.bridge,
5570
5572
  destinationAddress: o
5571
5573
  });
5572
- this.disposers.push(i);
5574
+ n ? this.activatableDisposers.push(i) : this.disposers.push(i);
5573
5575
  } else {
5574
5576
  this.log.debug(`Subscribing to EventBus topic: ${s}`);
5575
5577
  const { unsubscribe: i } = O(s, r);
@@ -6151,7 +6153,7 @@ class rp {
6151
6153
  )), h;
6152
6154
  }
6153
6155
  }
6154
- const N = C.getLogger("kos-model"), np = "kos.extension.model.loader";
6156
+ const F = C.getLogger("kos-model"), np = "kos.extension.model.loader";
6155
6157
  class op {
6156
6158
  constructor({ modelTypeName: e, id: s, modelData: r }) {
6157
6159
  l(this, "_id");
@@ -6162,6 +6164,7 @@ class op {
6162
6164
  l(this, "modelTypeName");
6163
6165
  l(this, "initialized");
6164
6166
  l(this, "loaded");
6167
+ l(this, "_isLoadExecuting");
6165
6168
  l(this, "offlineQueue");
6166
6169
  l(this, "subscriptionManager");
6167
6170
  l(this, "effectManager");
@@ -6174,9 +6177,9 @@ class op {
6174
6177
  l(this, "companionManager");
6175
6178
  l(this, "childResolver");
6176
6179
  l(this, "fsm");
6177
- this._id = typeof s < "u" ? `${s}` : e, this.modelTypeName = e, this.initialized = !1, this.loaded = !1, this.modelData = r, this._status = y.CREATED, this._activeStatus = y.INACTIVE, this._onlineStatus = y.OFFLINE;
6180
+ this._id = typeof s < "u" ? `${s}` : e, this.modelTypeName = e, this.initialized = !1, this.loaded = !1, this._isLoadExecuting = !1, this.modelData = r, this._status = y.CREATED, this._activeStatus = y.INACTIVE, this._onlineStatus = y.OFFLINE;
6178
6181
  const n = rp.createAll(this);
6179
- this.fsm = n.fsm, this.offlineQueue = n.offlineQueue, this.companionManager = n.companionManager, this.childResolver = n.childResolver, this.serviceResponses = n.serviceResponseStore, n.effectManager && (this.effectManager = n.effectManager), n.subscriptionManager && (this.subscriptionManager = n.subscriptionManager), n.httpRouteManager && (this.httpRouteManager = n.httpRouteManager), n.onlineLifecycleManager && (this.onlineLifecycleManager = n.onlineLifecycleManager), n.serviceRequestManager && (this.serviceRequestManager = n.serviceRequestManager), Pe(this, {
6182
+ this.fsm = n.fsm, this.offlineQueue = n.offlineQueue, this.companionManager = n.companionManager, this.childResolver = n.childResolver, this.serviceResponses = n.serviceResponseStore, n.effectManager && (this.effectManager = n.effectManager), n.subscriptionManager && (this.subscriptionManager = n.subscriptionManager), n.httpRouteManager && (this.httpRouteManager = n.httpRouteManager), n.onlineLifecycleManager && (this.onlineLifecycleManager = n.onlineLifecycleManager), n.serviceRequestManager && (this.serviceRequestManager = n.serviceRequestManager), Ae(this, {
6180
6183
  fsm: !1,
6181
6184
  effectManager: !1,
6182
6185
  subscriptionManager: !1,
@@ -6229,33 +6232,33 @@ class op {
6229
6232
  }
6230
6233
  async deactivate() {
6231
6234
  var e, s, r;
6232
- N.debug(
6235
+ F.debug(
6233
6236
  `deactivating model ${this.modelTypeName} with id ${this.modelId}`
6234
6237
  );
6235
6238
  try {
6236
6239
  const n = J.getContext(this.modelId);
6237
- await ((s = (e = this.modelData) == null ? void 0 : e.deactivate) == null ? void 0 : s.call(e, n)), N.debug(
6240
+ await ((s = (e = this.modelData) == null ? void 0 : e.deactivate) == null ? void 0 : s.call(e, n)), F.debug(
6238
6241
  `Model ${this.modelTypeName} with id ${this.modelId} deactivated`
6239
6242
  ), (r = this.subscriptionManager) == null || r.deactivate();
6240
6243
  } catch (n) {
6241
- throw N.debug(`Model ${this.modelId} failed to deactivated`), n;
6244
+ throw F.debug(`Model ${this.modelId} failed to deactivated`), n;
6242
6245
  }
6243
6246
  }
6244
6247
  async activate() {
6245
6248
  var e, s, r, n;
6246
- N.debug(`activating model ${this.modelTypeName} with id ${this.modelId}`), await Ks(this, x.ACTIVATE);
6249
+ F.debug(`activating model ${this.modelTypeName} with id ${this.modelId}`), await Ks(this, x.ACTIVATE);
6247
6250
  try {
6248
6251
  await ((e = this.serviceRequestManager) == null ? void 0 : e.executeForLifecycle(
6249
6252
  x.ACTIVATE
6250
6253
  ));
6251
6254
  const o = J.getContext(this.modelId);
6252
- await ((r = (s = this.modelData) == null ? void 0 : s.activate) == null ? void 0 : r.call(s, o)), this.initializeStateMachineForLifecycle(x.ACTIVATE), N.debug(
6255
+ await ((r = (s = this.modelData) == null ? void 0 : s.activate) == null ? void 0 : r.call(s, o)), this.initializeStateMachineForLifecycle(x.ACTIVATE), F.debug(
6253
6256
  `Model ${this.modelTypeName} with id ${this.modelId} subscribing to all topics`
6254
- ), (n = this.subscriptionManager) == null || n.registerAll(x.ACTIVATE), this.createLifecycleCompanions(x.ACTIVATE), N.debug(
6257
+ ), (n = this.subscriptionManager) == null || n.registerAll(x.ACTIVATE), this.createLifecycleCompanions(x.ACTIVATE), F.debug(
6255
6258
  `Model ${this.modelTypeName} with id ${this.modelId} activated`
6256
6259
  );
6257
6260
  } catch (o) {
6258
- throw N.debug(`Model ${this.modelId} failed to activate`), o;
6261
+ throw F.debug(`Model ${this.modelId} failed to activate`), o;
6259
6262
  }
6260
6263
  }
6261
6264
  async whenLoaded() {
@@ -6269,7 +6272,7 @@ class op {
6269
6272
  {
6270
6273
  condition: () => this.loaded,
6271
6274
  onMatch: () => {
6272
- N.debug(`Model ${this.modelId} is loaded`);
6275
+ F.debug(`Model ${this.modelId} is loaded`);
6273
6276
  }
6274
6277
  }
6275
6278
  ]);
@@ -6285,7 +6288,7 @@ class op {
6285
6288
  {
6286
6289
  condition: () => this.initialized,
6287
6290
  onMatch: () => {
6288
- N.debug(`Model ${this.modelId} is initialized`);
6291
+ F.debug(`Model ${this.modelId} is initialized`);
6289
6292
  }
6290
6293
  }
6291
6294
  ]);
@@ -6301,7 +6304,7 @@ class op {
6301
6304
  {
6302
6305
  condition: () => this.status === y.READY,
6303
6306
  onMatch: () => {
6304
- N.debug(`Model ${this.modelId} is ready`);
6307
+ F.debug(`Model ${this.modelId} is ready`);
6305
6308
  }
6306
6309
  }
6307
6310
  ]);
@@ -6309,13 +6312,13 @@ class op {
6309
6312
  async ready() {
6310
6313
  var e, s, r, n;
6311
6314
  if (this.fsm.current === y.READY) {
6312
- N.debug(
6315
+ F.debug(
6313
6316
  `already readying model ${this.modelTypeName} with id ${this.modelId} returning`
6314
6317
  );
6315
6318
  return;
6316
6319
  }
6317
6320
  try {
6318
- N.debug(`readying model ${this.modelTypeName} with id ${this.modelId}`), await Ks(this, x.READY), await Xh(
6321
+ F.debug(`readying model ${this.modelTypeName} with id ${this.modelId}`), await Ks(this, x.READY), await Xh(
6319
6322
  this,
6320
6323
  Wa.READY,
6321
6324
  x.READY
@@ -6323,7 +6326,7 @@ class op {
6323
6326
  x.READY
6324
6327
  ));
6325
6328
  const o = J.getContext(this.modelId);
6326
- await ((r = (s = this.modelData) == null ? void 0 : s.ready) == null ? void 0 : r.call(s, o)), this.offlineQueue.flush(), this.initializeStateMachineForLifecycle(x.READY), (n = this.subscriptionManager) == null || n.registerAll(x.READY), this.createLifecycleCompanions(x.READY), N.debug(`Model ${this.modelId} is ready`);
6329
+ await ((r = (s = this.modelData) == null ? void 0 : s.ready) == null ? void 0 : r.call(s, o)), this.offlineQueue.flush(), this.initializeStateMachineForLifecycle(x.READY), (n = this.subscriptionManager) == null || n.registerAll(x.READY), this.createLifecycleCompanions(x.READY), F.debug(`Model ${this.modelId} is ready`);
6327
6330
  const i = {
6328
6331
  modelId: this.modelId,
6329
6332
  modelType: this.modelTypeName
@@ -6333,7 +6336,7 @@ class op {
6333
6336
  i
6334
6337
  ), G(Hh(this.modelTypeName), i);
6335
6338
  } catch (o) {
6336
- throw N.error(o), Error(o);
6339
+ throw F.error(o), Error(o);
6337
6340
  }
6338
6341
  }
6339
6342
  async load() {
@@ -6341,34 +6344,41 @@ class op {
6341
6344
  const e = this[ht];
6342
6345
  e && await e.whenLoaded();
6343
6346
  const { modelTypeName: s, modelId: r } = this;
6344
- if (this.fsm.current === y.LOADED || this.fsm.current === y.LOADING) {
6345
- N.debug(
6346
- `Model ${s} with id ${r} already loaded or loading`
6347
+ if (this.fsm.current === y.LOADED) {
6348
+ F.debug(`Model ${s} with id ${r} already loaded`);
6349
+ return;
6350
+ }
6351
+ if (this._isLoadExecuting) {
6352
+ F.debug(
6353
+ `Model ${s} with id ${r} is currently executing load`
6347
6354
  );
6348
6355
  return;
6349
6356
  }
6350
- N.debug(`Loading model ${s} with id ${r}`), await Ks(this, x.LOAD);
6357
+ this._isLoadExecuting = !0;
6351
6358
  try {
6359
+ F.debug(`Loading model ${s} with id ${r}`), await Ks(this, x.LOAD);
6352
6360
  const d = J.getContext(r), h = `${np}.${s}`, f = await I.loader.executeLoader(
6353
6361
  h,
6354
6362
  {}
6355
6363
  );
6356
- f && (N.info(
6364
+ f && (F.info(
6357
6365
  `Setting loaded context for ${r}, type: ${s}`
6358
6366
  ), d == null || d.set(h, f)), await ((n = this.serviceRequestManager) == null ? void 0 : n.executeForLifecycle(
6359
6367
  x.LOAD
6360
6368
  )), await ((i = (o = this.modelData) == null ? void 0 : o.load) == null ? void 0 : i.call(o, d)), oe(() => {
6361
6369
  this.loaded = !0;
6362
- }), N.debug(
6370
+ }), F.debug(
6363
6371
  `Model ${s} with id ${r} successfully loaded`
6364
6372
  ), this.initializeStateMachineForLifecycle(x.LOAD), (a = this.subscriptionManager) == null || a.registerAll(x.LOAD), (c = this.httpRouteManager) == null || c.registerAll(), (u = this.effectManager) == null || u.setup(), this.createLifecycleCompanions(x.LOAD);
6365
6373
  } catch (d) {
6366
- throw N.error(`Model ${r} failed to load`, d), d;
6374
+ throw F.error(`Model ${r} failed to load`, d), d;
6375
+ } finally {
6376
+ this._isLoadExecuting = !1;
6367
6377
  }
6368
6378
  }
6369
6379
  async unload() {
6370
6380
  var e, s, r, n, o, i, a;
6371
- N.debug(`unloading model ${this.modelTypeName} with id ${this.modelId}`);
6381
+ F.debug(`unloading model ${this.modelTypeName} with id ${this.modelId}`);
6372
6382
  try {
6373
6383
  const c = this.getChildren().map((d) => {
6374
6384
  var h;
@@ -6384,9 +6394,9 @@ class op {
6384
6394
  }
6385
6395
  d.stateHistory && (d.stateHistory = []);
6386
6396
  }
6387
- N.debug(`Model ${this.modelTypeName} with id ${this.modelId} unloaded`), (o = this.effectManager) == null || o.disposeAll(), (i = this.subscriptionManager) == null || i.disposeAll(), (a = this.httpRouteManager) == null || a.dispose();
6397
+ F.debug(`Model ${this.modelTypeName} with id ${this.modelId} unloaded`), (o = this.effectManager) == null || o.disposeAll(), (i = this.subscriptionManager) == null || i.disposeAll(), (a = this.httpRouteManager) == null || a.dispose();
6388
6398
  } catch (c) {
6389
- throw N.debug(`Model ${this.modelId} failed to unload`), c;
6399
+ throw F.debug(`Model ${this.modelId} failed to unload`), c;
6390
6400
  }
6391
6401
  }
6392
6402
  async init() {
@@ -6394,18 +6404,18 @@ class op {
6394
6404
  const e = this[ht];
6395
6405
  e && await e.whenInitialized();
6396
6406
  const { modelId: s, modelTypeName: r } = this, n = J.getContext(s);
6397
- N.debug(`Initializing model ${r} with id ${s}`), await Ks(this, x.INIT);
6407
+ F.debug(`Initializing model ${r} with id ${s}`), await Ks(this, x.INIT);
6398
6408
  try {
6399
6409
  await ((o = this.serviceRequestManager) == null ? void 0 : o.executeForLifecycle(
6400
6410
  x.INIT
6401
- )), await ((a = (i = this.modelData) == null ? void 0 : i.init) == null ? void 0 : a.call(i, n)), this.initialized = !0, N.debug(`Model ${r} with id ${s} initialized`), (c = this.onlineLifecycleManager) == null || c.register(), this.initializeStateMachineForLifecycle(x.INIT), this.registerSubscribers(x.INIT), this.createLifecycleCompanions(x.INIT);
6411
+ )), await ((a = (i = this.modelData) == null ? void 0 : i.init) == null ? void 0 : a.call(i, n)), this.initialized = !0, F.debug(`Model ${r} with id ${s} initialized`), (c = this.onlineLifecycleManager) == null || c.register(), this.initializeStateMachineForLifecycle(x.INIT), this.registerSubscribers(x.INIT), this.createLifecycleCompanions(x.INIT);
6402
6412
  } catch (u) {
6403
- throw N.error(`Model ${s} failed to initialize`, u), u;
6413
+ throw F.error(`Model ${s} failed to initialize`, u), u;
6404
6414
  }
6405
6415
  }
6406
6416
  async registerSubscribers(e) {
6407
6417
  var s;
6408
- N.debug(
6418
+ F.debug(
6409
6419
  `registering subscribers in ${this.modelTypeName} with id ${this.modelId}`
6410
6420
  ), (s = this.subscriptionManager) == null || s.registerAll(e);
6411
6421
  }
@@ -6427,13 +6437,13 @@ class op {
6427
6437
  }
6428
6438
  async online() {
6429
6439
  var s, r;
6430
- N.debug(`online model ${this.modelTypeName} with id ${this.modelId}`), this.registerSubscribers();
6440
+ F.debug(`online model ${this.modelTypeName} with id ${this.modelId}`), this.registerSubscribers();
6431
6441
  const e = J.getContext(this.modelId);
6432
6442
  await ((r = (s = this.modelData) == null ? void 0 : s.online) == null ? void 0 : r.call(s, e)), this.createLifecycleCompanions(x.ONLINE);
6433
6443
  }
6434
6444
  async offline() {
6435
6445
  var s, r, n;
6436
- N.debug(`offline model ${this.modelTypeName} with id ${this.modelId}`), (s = this.subscriptionManager) == null || s.disposeAll();
6446
+ F.debug(`offline model ${this.modelTypeName} with id ${this.modelId}`), (s = this.subscriptionManager) == null || s.disposeAll();
6437
6447
  const e = J.getContext(this.modelId);
6438
6448
  await ((n = (r = this.modelData) == null ? void 0 : r.offline) == null ? void 0 : n.call(r, e));
6439
6449
  }
@@ -6911,7 +6921,7 @@ const up = (t) => {
6911
6921
  "initializing"
6912
6922
  /* INITIALIZING */
6913
6923
  )),
6914
- initializing: De(
6924
+ initializing: xe(
6915
6925
  () => t.init(),
6916
6926
  D(
6917
6927
  "done",
@@ -6923,7 +6933,7 @@ const up = (t) => {
6923
6933
  "loading"
6924
6934
  /* LOADING */
6925
6935
  )),
6926
- loading: De(
6936
+ loading: xe(
6927
6937
  () => t.load(),
6928
6938
  D(
6929
6939
  "done",
@@ -6942,7 +6952,7 @@ const up = (t) => {
6942
6952
  /* UNLOADING */
6943
6953
  )
6944
6954
  ),
6945
- readying: De(
6955
+ readying: xe(
6946
6956
  () => t.ready(),
6947
6957
  D(
6948
6958
  "done",
@@ -6954,7 +6964,7 @@ const up = (t) => {
6954
6964
  })
6955
6965
  )
6956
6966
  ),
6957
- reloading: De(
6967
+ reloading: xe(
6958
6968
  () => t.reload(),
6959
6969
  D(
6960
6970
  "done",
@@ -7001,10 +7011,10 @@ const up = (t) => {
7001
7011
  (o) => C.debug(o.machine.current)
7002
7012
  ), online: s };
7003
7013
  }, Q = g.createLogger({ name: "kos-core" }), dp = () => {
7004
- const t = Oe(), e = t == null ? void 0 : t.alias, s = process.env.KOS_CONNECTION_ALIAS;
7014
+ const t = Se(), e = t == null ? void 0 : t.alias, s = process.env.KOS_CONNECTION_ALIAS;
7005
7015
  return e || s || void 0;
7006
7016
  }, hp = () => {
7007
- const t = window.location.protocol, e = Oe(), s = e == null ? void 0 : e.host;
7017
+ const t = window.location.protocol, e = Se(), s = e == null ? void 0 : e.host;
7008
7018
  let r;
7009
7019
  try {
7010
7020
  r = new URL(s).protocol === "https:" ? "wss://" : "ws://";
@@ -7012,7 +7022,7 @@ const up = (t) => {
7012
7022
  }
7013
7023
  return r || (t === "https:" ? "wss://" : "ws://");
7014
7024
  }, fp = () => {
7015
- const t = window.location.hostname, e = process.env.KOS_HOST, s = Oe(), r = s == null ? void 0 : s.host;
7025
+ const t = window.location.hostname, e = process.env.KOS_HOST, s = Se(), r = s == null ? void 0 : s.host;
7016
7026
  let n;
7017
7027
  try {
7018
7028
  n = new URL(r).hostname;
@@ -7020,7 +7030,7 @@ const up = (t) => {
7020
7030
  }
7021
7031
  return n ?? e ?? t;
7022
7032
  }, pp = () => {
7023
- const t = window.location.port, e = process.env.KOS_PORT, s = Oe(), r = s == null ? void 0 : s.host;
7033
+ const t = window.location.port, e = process.env.KOS_PORT, s = Se(), r = s == null ? void 0 : s.host;
7024
7034
  let n;
7025
7035
  try {
7026
7036
  n = new URL(r).port;
@@ -7057,7 +7067,7 @@ class T {
7057
7067
  l(this, "_reloading");
7058
7068
  l(this, "_unloading");
7059
7069
  l(this, "connectionAlias");
7060
- this.initialized = !1, this.connectionAlias = e, this.loaded = !1, this.isOnline = !1, this.status = fr.CREATED, this.authState = "logged_out", this._reloading = !1, this._unloading = !1, Pe(this), O("token", (a) => {
7070
+ this.initialized = !1, this.connectionAlias = e, this.loaded = !1, this.isOnline = !1, this.status = fr.CREATED, this.authState = "logged_out", this._reloading = !1, this._unloading = !1, Ae(this), O("token", (a) => {
7061
7071
  a && (this.transport.token = a.body);
7062
7072
  }), O(hr.CONNECTED, async () => {
7063
7073
  await this.whenReady(), this.fsmService.service.send(St.GO_ONLINE);
@@ -7454,8 +7464,8 @@ const Ws = g.createLogger({ name: "kos-fetch" }), Tp = process.env.KOS_WS_TIMEOU
7454
7464
  if (k === "multipart/form-data" && typeof E == "string")
7455
7465
  try {
7456
7466
  const te = JSON.parse(E);
7457
- te.fields && Object.entries(te.fields).forEach(([We, Qe]) => {
7458
- j.append(We, Qe);
7467
+ te.fields && Object.entries(te.fields).forEach(([Ee, Qe]) => {
7468
+ j.append(Ee, Qe);
7459
7469
  }), te.files && Ws.warn(
7460
7470
  "File reconstruction in FormData not fully implemented"
7461
7471
  );
@@ -7491,10 +7501,10 @@ const Ws = g.createLogger({ name: "kos-fetch" }), Tp = process.env.KOS_WS_TIMEOU
7491
7501
  b == null || b.send(d);
7492
7502
  });
7493
7503
  };
7494
- let me = "kos:", Le = Op;
7504
+ let me = "kos:", Fe = Op;
7495
7505
  if (process.env.KOS_MOCK_FETCH === "true") {
7496
7506
  const t = process.env.KOS_PORT || "9999";
7497
- Le = fetch, me = `http://localhost:${t}`;
7507
+ Fe = fetch, me = `http://localhost:${t}`;
7498
7508
  }
7499
7509
  const Sp = g.createLogger({
7500
7510
  name: "kos-model-visitor",
@@ -7688,7 +7698,7 @@ const Pp = g.createLogger({ name: "kos-service-request" }), ye = (t) => ({ isMoc
7688
7698
  m = await f.json();
7689
7699
  } catch {
7690
7700
  }
7691
- throw new $e(
7701
+ throw new Ie(
7692
7702
  `There was a problem retrieving the model; returned status ${f.status}`,
7693
7703
  m
7694
7704
  );
@@ -7724,7 +7734,7 @@ const Pp = g.createLogger({ name: "kos-service-request" }), ye = (t) => ({ isMoc
7724
7734
  b = await p.json();
7725
7735
  } catch {
7726
7736
  }
7727
- throw new $e(
7737
+ throw new Ie(
7728
7738
  `There was a problem retrieving the model; returned status ${p.status}`,
7729
7739
  b
7730
7740
  );
@@ -7758,14 +7768,14 @@ const Pp = g.createLogger({ name: "kos-service-request" }), ye = (t) => ({ isMoc
7758
7768
  b = await p.json();
7759
7769
  } catch {
7760
7770
  }
7761
- throw new $e(
7771
+ throw new Ie(
7762
7772
  `There was a problem retrieving the model; returned status ${p.status}`,
7763
7773
  b
7764
7774
  );
7765
7775
  }
7766
7776
  return await p.json();
7767
7777
  };
7768
- class $e extends Error {
7778
+ class Ie extends Error {
7769
7779
  constructor(s, r) {
7770
7780
  super(s);
7771
7781
  l(this, "payload");
@@ -7802,7 +7812,7 @@ const pi = (t, e, s) => async ({
7802
7812
  b = await p.json();
7803
7813
  } catch {
7804
7814
  }
7805
- throw new $e(
7815
+ throw new Ie(
7806
7816
  `There was a problem sending the POST data; returned status ${p.status}`,
7807
7817
  b
7808
7818
  );
@@ -7838,7 +7848,7 @@ const pi = (t, e, s) => async ({
7838
7848
  v = await m.json();
7839
7849
  } catch {
7840
7850
  }
7841
- throw new $e(
7851
+ throw new Ie(
7842
7852
  `There was a problem modifying the model; returned status ${m.status}`,
7843
7853
  v
7844
7854
  );
@@ -7889,7 +7899,7 @@ const pi = (t, e, s) => async ({
7889
7899
  modifyModelPath: i,
7890
7900
  mock: a = !1
7891
7901
  }) => {
7892
- const c = a ? fetch : Le;
7902
+ const c = a ? fetch : Fe;
7893
7903
  return {
7894
7904
  /**
7895
7905
  * Retrieves a list of entities managed by the KOS Server.
@@ -8031,7 +8041,7 @@ class Up {
8031
8041
  l(this, "_context");
8032
8042
  l(this, "_parent");
8033
8043
  l(this, "_id");
8034
- this._id = e, this._context = new no({}), this._parent = "", Pe(this);
8044
+ this._id = e, this._context = new no({}), this._parent = "", Ae(this);
8035
8045
  }
8036
8046
  setParent(e) {
8037
8047
  oe(() => {
@@ -8047,10 +8057,10 @@ class Up {
8047
8057
  get parentModel() {
8048
8058
  var e;
8049
8059
  if (this._parent)
8050
- return (e = Be(this._parent)) == null ? void 0 : e.model;
8060
+ return (e = He(this._parent)) == null ? void 0 : e.model;
8051
8061
  }
8052
8062
  get companionModels() {
8053
- const e = Be(this._id);
8063
+ const e = He(this._id);
8054
8064
  return e != null && e.model ? ih(e.model) : [];
8055
8065
  }
8056
8066
  get(e) {
@@ -8123,7 +8133,7 @@ class rc {
8123
8133
  l(this, "_customEvictionFilter");
8124
8134
  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) || {};
8125
8135
  const s = e != null && e.indexMap ? Object.keys(e.indexMap).reduce((r, n) => (r[n] = void 0, r), {}) : {};
8126
- 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();
8136
+ this._index = se.map(s), this.idx = Be(), 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())), Ae(this, {}), this.init();
8127
8137
  }
8128
8138
  init() {
8129
8139
  Object.keys(this._optionsMap).forEach((e) => {
@@ -8287,7 +8297,7 @@ class rc {
8287
8297
  * @private
8288
8298
  */
8289
8299
  _logDataCapacityWarning(e) {
8290
- nt.warn(
8300
+ nt.info(
8291
8301
  `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.`
8292
8302
  );
8293
8303
  }
@@ -8346,7 +8356,7 @@ class rc {
8346
8356
  e.forEach((s) => {
8347
8357
  var n;
8348
8358
  const r = this._data.get(s);
8349
- nt.warn(`Evicting data item: ${s}`, {
8359
+ nt.info(`Evicting data item: ${s}`, {
8350
8360
  itemId: s,
8351
8361
  itemType: r ? (n = r.constructor) == null ? void 0 : n.name : "unknown",
8352
8362
  strategy: this._evictionStrategy
@@ -8407,7 +8417,7 @@ class YE {
8407
8417
  };
8408
8418
  }
8409
8419
  get predicate() {
8410
- return Ae(this.type);
8420
+ return Re(this.type);
8411
8421
  }
8412
8422
  }
8413
8423
  class WE {
@@ -8431,13 +8441,13 @@ class WE {
8431
8441
  };
8432
8442
  }
8433
8443
  get predicate() {
8434
- return Ae(this.type);
8444
+ return Re(this.type);
8435
8445
  }
8436
8446
  }
8437
8447
  class jp {
8438
8448
  constructor() {
8439
8449
  l(this, "_token");
8440
- Pe(this), O("token", (e) => {
8450
+ Ae(this), O("token", (e) => {
8441
8451
  this.token = e == null ? void 0 : e.body;
8442
8452
  });
8443
8453
  }
@@ -8593,7 +8603,7 @@ const nc = g.createLogger({ name: "intent-service" }), QE = (t) => {
8593
8603
  });
8594
8604
  } else
8595
8605
  nc.info(`No subscribers for intent ${t.type}. Intent not sent.`), e([null, { body: void 0, payload: void 0 }]);
8596
- }), Ne = g.createLogger({ name: "app-startup-service" });
8606
+ }), Ue = g.createLogger({ name: "app-startup-service" });
8597
8607
  async function Hp(t, e = {}) {
8598
8608
  const {
8599
8609
  timeout: s = 3e4,
@@ -8601,16 +8611,16 @@ async function Hp(t, e = {}) {
8601
8611
  requirePostStarted: n = !1
8602
8612
  } = e;
8603
8613
  if (t.length === 0)
8604
- return Ne.warn("No app IDs provided to waitForAppsToStart"), !0;
8605
- Ne.debug(`Waiting for apps to start: ${t.join(", ")}`);
8614
+ return Ue.warn("No app IDs provided to waitForAppsToStart"), !0;
8615
+ Ue.debug(`Waiting for apps to start: ${t.join(", ")}`);
8606
8616
  try {
8607
8617
  const o = t.map((c) => `/kos/app/started/${c}`), i = await ho(o, {
8608
8618
  getCurrentState: async () => {
8609
8619
  try {
8610
8620
  const { default: c } = await Promise.resolve().then(() => ec), [u, d] = await c.get("/api/kos/apps/started");
8611
- return u ? (Ne.error("Error fetching started apps:", u), []) : d;
8621
+ return u ? (Ue.error("Error fetching started apps:", u), []) : d;
8612
8622
  } catch (c) {
8613
- Ne.error("Failed to fetch app startup status:", c);
8623
+ Ue.error("Failed to fetch app startup status:", c);
8614
8624
  }
8615
8625
  return [];
8616
8626
  },
@@ -8625,14 +8635,14 @@ async function Hp(t, e = {}) {
8625
8635
  });
8626
8636
  if (a.length > 0) {
8627
8637
  const c = `Apps not started: ${a.join(", ")}`;
8628
- if (Ne.error(c), r)
8638
+ if (Ue.error(c), r)
8629
8639
  throw new Error(`App startup timeout: ${c}`);
8630
8640
  return !1;
8631
8641
  }
8632
- return Ne.info(`All apps started successfully: ${t.join(", ")}`), !0;
8642
+ return Ue.info(`All apps started successfully: ${t.join(", ")}`), !0;
8633
8643
  } catch (o) {
8634
8644
  const i = `Failed to wait for apps to start: ${t.join(", ")}`;
8635
- if (Ne.error(i, o), r)
8645
+ if (Ue.error(i, o), r)
8636
8646
  throw new Error(
8637
8647
  `${i} - ${o instanceof Error ? o.message : String(o)}`
8638
8648
  );
@@ -8645,7 +8655,7 @@ async function JE(t, e = {}) {
8645
8655
  async function XE(t, e = !1) {
8646
8656
  const s = {};
8647
8657
  try {
8648
- const r = await Le("kos:///api/kos/apps/started");
8658
+ const r = await Fe("kos:///api/kos/apps/started");
8649
8659
  if (!r.ok)
8650
8660
  return t.forEach((i) => s[i] = !1), s;
8651
8661
  const n = await r.json(), o = (n == null ? void 0 : n.data) ?? [];
@@ -8654,23 +8664,23 @@ async function XE(t, e = !1) {
8654
8664
  s[i] = (a == null ? void 0 : a.started) === !0 && (!e || (a == null ? void 0 : a.postStarted) === !0);
8655
8665
  });
8656
8666
  } catch (r) {
8657
- Ne.error("Failed to check app startup status:", r), t.forEach((n) => s[n] = !1);
8667
+ Ue.error("Failed to check app startup status:", r), t.forEach((n) => s[n] = !1);
8658
8668
  }
8659
8669
  return s;
8660
8670
  }
8661
8671
  async function e_() {
8662
8672
  try {
8663
- const t = await Le("kos:///api/kos/apps/started");
8673
+ const t = await Fe("kos:///api/kos/apps/started");
8664
8674
  if (!t.ok)
8665
8675
  return [];
8666
8676
  const e = await t.json();
8667
8677
  return (e == null ? void 0 : e.data) ?? [];
8668
8678
  } catch (t) {
8669
- return Ne.error("Failed to fetch started apps:", t), [];
8679
+ return Ue.error("Failed to fetch started apps:", t), [];
8670
8680
  }
8671
8681
  }
8672
8682
  const mi = Ps, oc = ea, oe = X, ee = Ds, zp = xs, ic = se, ac = "Not Assigned", t_ = "kos.trouble.added", s_ = "kos.trouble.removed";
8673
- var xe = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t))(xe || {}), pr = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))(pr || {});
8683
+ var Pe = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t))(Pe || {}), pr = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))(pr || {});
8674
8684
  const cc = g.createLogger({
8675
8685
  name: "config-bean-service",
8676
8686
  group: "Services"
@@ -8764,7 +8774,7 @@ let wr = class {
8764
8774
  modifyConfigBean: s = Gp,
8765
8775
  getConfigBean: r = Yp
8766
8776
  } = e;
8767
- this._modifyConfigBean = s, this._getConfigBean = r, this.props = je(), this.prevProps = je();
8777
+ this._modifyConfigBean = s, this._getConfigBean = r, this.props = Be(), this.prevProps = Be();
8768
8778
  }
8769
8779
  /**
8770
8780
  * Gets current configuration property values.
@@ -8885,11 +8895,11 @@ dc([
8885
8895
  wr = dc([
8886
8896
  R(Mo)
8887
8897
  ], wr);
8888
- const Mr = new Se({
8898
+ const Mr = new Ce({
8889
8899
  class: wr,
8890
8900
  type: Mo
8891
8901
  }), Eo = ({ path: t, lazy: e, serviceBasePath: s }) => (r, n) => {
8892
- r[F] = r[F] || {}, r[F][n] = {
8902
+ r[N] = r[N] || {}, r[N][n] = {
8893
8903
  modelType: Mr.type,
8894
8904
  id: `${Mr.type}-${t}`,
8895
8905
  options: {
@@ -9335,7 +9345,7 @@ const ue = {
9335
9345
  let r = { system: e, measure: s };
9336
9346
  return typeof t == "string" ? r = { ...r, unit: t } : r = { ...r, ...t }, r;
9337
9347
  }, mc = (t, e, s) => {
9338
- const { model: r } = Be(
9348
+ const { model: r } = He(
9339
9349
  ue.type
9340
9350
  );
9341
9351
  if (!r)
@@ -9364,7 +9374,7 @@ function yi(t, e, s) {
9364
9374
  }
9365
9375
  }
9366
9376
  const o_ = (t, e, s, r) => {
9367
- const n = mc(t, e, s), o = Er({ source: e }), { model: i } = Be(
9377
+ const n = mc(t, e, s), o = Er({ source: e }), { model: i } = He(
9368
9378
  ue.type
9369
9379
  );
9370
9380
  if (!i)
@@ -9912,7 +9922,7 @@ function i_(t) {
9912
9922
  serviceBasePath: a
9913
9923
  } = t, c = r;
9914
9924
  return c && (typeof c != "function" && typeof c.from == "string" && (c.from = { unit: c.from }), typeof c != "function" && typeof c.to == "string" && (c.to = { unit: c.to })), (u, d) => {
9915
- u[F] = u[F] || {}, u[F][d] = {
9925
+ u[N] = u[N] || {}, u[N][d] = {
9916
9926
  modelType: Zt.type,
9917
9927
  id: `${e}-${s}`,
9918
9928
  options: {
@@ -9996,7 +10006,7 @@ let _r = class {
9996
10006
  Object.assign(this, e), this.logger = s.logger, this.id = t, this.futureId = e.id, this.namespace = e.namespace || "kos", this._cancelFuture = Sg, mi(
9997
10007
  () => this.status === ft.Success || this.status === ft.Fail,
9998
10008
  () => {
9999
- On.info(`Future ${this.id} has completed with status ${this.status}`), Ue(this);
10009
+ On.info(`Future ${this.id} has completed with status ${this.status}`), je(this);
10000
10010
  }
10001
10011
  );
10002
10012
  }
@@ -10206,7 +10216,7 @@ Mc([
10206
10216
  Tr = Mc([
10207
10217
  R(Ec)
10208
10218
  ], Tr);
10209
- const _c = new Re({
10219
+ const _c = new ke({
10210
10220
  class: Tr,
10211
10221
  type: Ec
10212
10222
  }), Ng = "future-container-model", pt = Ls(Ng), Tc = (t) => vc(Fs)(t), Ug = (t) => {
@@ -10239,7 +10249,7 @@ let Es = class {
10239
10249
  l(this, "createModel");
10240
10250
  l(this, "deleteModel");
10241
10251
  const { deleteFuture: r = Ig, addFuture: n = Og } = e;
10242
- 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;
10252
+ this.logger = s.logger, this._deleteFuture = r, this._addFuture = n, this.id = t, this._futures = new Ye(), this.createModel = this.createFuture, this.deleteModel = this.removeFuture;
10243
10253
  }
10244
10254
  /**
10245
10255
  * @category Computed
@@ -10373,7 +10383,7 @@ let Es = class {
10373
10383
  }
10374
10384
  };
10375
10385
  $o([
10376
- Ve
10386
+ Ge
10377
10387
  ], Es.prototype, "_futures", 2);
10378
10388
  $o([
10379
10389
  H({
@@ -10437,7 +10447,7 @@ let _s = class {
10437
10447
  l(this, "logger");
10438
10448
  l(this, "namespace");
10439
10449
  l(this, "data");
10440
- this.id = t, this.logger = s.logger, this.data = je(), this.namespace = e.namespace || "studio";
10450
+ this.id = t, this.logger = s.logger, this.data = Be(), this.namespace = e.namespace || "studio";
10441
10451
  }
10442
10452
  /**
10443
10453
  * @internal
@@ -10493,11 +10503,11 @@ Io([
10493
10503
  _s = Io([
10494
10504
  R(Cc)
10495
10505
  ], _s);
10496
- const Dc = new Se({
10506
+ const Dc = new Ce({
10497
10507
  class: _s,
10498
10508
  type: Cc
10499
10509
  });
10500
- 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";
10510
+ var we = "INUMBER", Jt = "IOP1", Xt = "IOP2", es = "IOP3", ze = "IVAR", gt = "IVARNAME", Ut = "IFUNCALL", sn = "IFUNDEF", de = "IEXPR", Oo = "IEXPREVAL", bt = "IMEMBER", rn = "IENDSTATEMENT", jt = "IARRAY";
10501
10511
  function A(t, e) {
10502
10512
  this.type = t, this.value = e ?? 0;
10503
10513
  }
@@ -10507,7 +10517,7 @@ A.prototype.toString = function() {
10507
10517
  case Jt:
10508
10518
  case Xt:
10509
10519
  case es:
10510
- case He:
10520
+ case ze:
10511
10521
  case gt:
10512
10522
  case rn:
10513
10523
  return this.value;
@@ -10526,7 +10536,7 @@ A.prototype.toString = function() {
10526
10536
  function nn(t) {
10527
10537
  return new A(Jt, t);
10528
10538
  }
10529
- function Ye(t) {
10539
+ function We(t) {
10530
10540
  return new A(Xt, t);
10531
10541
  }
10532
10542
  function xc(t) {
@@ -10539,7 +10549,7 @@ function Bn(t, e, s, r, n) {
10539
10549
  Array.isArray(f.value) ? o.push.apply(o, Bn(f.value.map(function(m) {
10540
10550
  return new A(we, m);
10541
10551
  }).concat(new A(jt, f.value.length)), e, s, r, n)) : o.push(f);
10542
- else if (p === He && n.hasOwnProperty(f.value))
10552
+ else if (p === ze && n.hasOwnProperty(f.value))
10543
10553
  f = new A(we, n[f.value]), o.push(f);
10544
10554
  else if (p === Xt && o.length > 1)
10545
10555
  c = o.pop(), a = o.pop(), d = s[f.value], f = new A(we, d(a.value, c.value)), o.push(f);
@@ -10566,10 +10576,10 @@ function Bn(t, e, s, r, n) {
10566
10576
  function Pc(t, e, s) {
10567
10577
  for (var r = [], n = 0; n < t.length; n++) {
10568
10578
  var o = t[n], i = o.type;
10569
- if (i === He && o.value === e)
10579
+ if (i === ze && o.value === e)
10570
10580
  for (var a = 0; a < s.tokens.length; a++) {
10571
10581
  var c = s.tokens[a], u;
10572
- 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);
10582
+ c.type === Jt ? u = nn(c.value) : c.type === Xt ? u = We(c.value) : c.type === es ? u = xc(c.value) : u = new A(c.type, c.value), r.push(u);
10573
10583
  }
10574
10584
  else
10575
10585
  i === de ? r.push(new A(de, Pc(o.value, e, s))) : r.push(o);
@@ -10579,16 +10589,16 @@ function Pc(t, e, s) {
10579
10589
  function at(t, e, s) {
10580
10590
  var r = [], n, o, i, a, c, u;
10581
10591
  if (So(t))
10582
- return Fe(t, s);
10592
+ return Ne(t, s);
10583
10593
  for (var d = t.length, h = 0; h < d; h++) {
10584
10594
  var f = t[h], p = f.type;
10585
10595
  if (p === we || p === gt)
10586
10596
  r.push(f.value);
10587
10597
  else if (p === Xt)
10588
- 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))));
10598
+ 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(Ne(n, s), Ne(o, s))));
10589
10599
  else if (p === es)
10590
- 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))));
10591
- else if (p === He)
10600
+ 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(Ne(n, s), Ne(o, s), Ne(i, s))));
10601
+ else if (p === ze)
10592
10602
  if (f.value in e.functions)
10593
10603
  r.push(e.functions[f.value]);
10594
10604
  else if (f.value in e.unaryOps && e.parser.isOperatorEnabled(f.value))
@@ -10601,10 +10611,10 @@ function at(t, e, s) {
10601
10611
  throw new Error("undefined variable: " + f.value);
10602
10612
  }
10603
10613
  else if (p === Jt)
10604
- n = r.pop(), a = e.unaryOps[f.value], r.push(a(Fe(n, s)));
10614
+ n = r.pop(), a = e.unaryOps[f.value], r.push(a(Ne(n, s)));
10605
10615
  else if (p === Ut) {
10606
10616
  for (u = f.value, c = []; u-- > 0; )
10607
- c.unshift(Fe(r.pop(), s));
10617
+ c.unshift(Ne(r.pop(), s));
10608
10618
  if (a = r.pop(), a.apply && a.call)
10609
10619
  r.push(a.apply(void 0, c));
10610
10620
  else
@@ -10640,7 +10650,7 @@ function at(t, e, s) {
10640
10650
  }
10641
10651
  if (r.length > 1)
10642
10652
  throw new Error("invalid Expression (parity)");
10643
- return r[0] === 0 ? 0 : Fe(r[0], s);
10653
+ return r[0] === 0 ? 0 : Ne(r[0], s);
10644
10654
  }
10645
10655
  function Wg(t, e, s) {
10646
10656
  return So(t) ? t : {
@@ -10653,7 +10663,7 @@ function Wg(t, e, s) {
10653
10663
  function So(t) {
10654
10664
  return t && t.type === Oo;
10655
10665
  }
10656
- function Fe(t, e) {
10666
+ function Ne(t, e) {
10657
10667
  return So(t) ? t.value(e) : t;
10658
10668
  }
10659
10669
  function Co(t, e) {
@@ -10668,7 +10678,7 @@ function Co(t, e) {
10668
10678
  s.push("(" + r + " ? " + n + " : " + o + ")");
10669
10679
  else
10670
10680
  throw new Error("invalid Expression");
10671
- else if (h === He || h === gt)
10681
+ else if (h === ze || h === gt)
10672
10682
  s.push(d.value);
10673
10683
  else if (h === Jt)
10674
10684
  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 + ")");
@@ -10706,31 +10716,31 @@ function Do(t, e, s) {
10706
10716
  s = s || {};
10707
10717
  for (var r = !!s.withMembers, n = null, o = 0; o < t.length; o++) {
10708
10718
  var i = t[o];
10709
- 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);
10719
+ i.type === ze || 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);
10710
10720
  }
10711
10721
  n !== null && !xt(e, n) && e.push(n);
10712
10722
  }
10713
- function _e(t, e) {
10723
+ function Te(t, e) {
10714
10724
  this.tokens = t, this.parser = e, this.unaryOps = e.unaryOps, this.binaryOps = e.binaryOps, this.ternaryOps = e.ternaryOps, this.functions = e.functions;
10715
10725
  }
10716
- _e.prototype.simplify = function(t) {
10717
- return t = t || {}, new _e(Bn(this.tokens, this.unaryOps, this.binaryOps, this.ternaryOps, t), this.parser);
10726
+ Te.prototype.simplify = function(t) {
10727
+ return t = t || {}, new Te(Bn(this.tokens, this.unaryOps, this.binaryOps, this.ternaryOps, t), this.parser);
10718
10728
  };
10719
- _e.prototype.substitute = function(t, e) {
10720
- return e instanceof _e || (e = this.parser.parse(String(e))), new _e(Pc(this.tokens, t, e), this.parser);
10729
+ Te.prototype.substitute = function(t, e) {
10730
+ return e instanceof Te || (e = this.parser.parse(String(e))), new Te(Pc(this.tokens, t, e), this.parser);
10721
10731
  };
10722
- _e.prototype.evaluate = function(t) {
10732
+ Te.prototype.evaluate = function(t) {
10723
10733
  return t = t || {}, at(this.tokens, this, t);
10724
10734
  };
10725
- _e.prototype.toString = function() {
10735
+ Te.prototype.toString = function() {
10726
10736
  return Co(this.tokens, !1);
10727
10737
  };
10728
- _e.prototype.symbols = function(t) {
10738
+ Te.prototype.symbols = function(t) {
10729
10739
  t = t || {};
10730
10740
  var e = [];
10731
10741
  return Do(this.tokens, e, t), e;
10732
10742
  };
10733
- _e.prototype.variables = function(t) {
10743
+ Te.prototype.variables = function(t) {
10734
10744
  t = t || {};
10735
10745
  var e = [];
10736
10746
  Do(this.tokens, e, t);
@@ -10739,13 +10749,13 @@ _e.prototype.variables = function(t) {
10739
10749
  return !(r in s);
10740
10750
  });
10741
10751
  };
10742
- _e.prototype.toJSFunction = function(t, e) {
10752
+ Te.prototype.toJSFunction = function(t, e) {
10743
10753
  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) + "; }");
10744
10754
  return function() {
10745
10755
  return r.apply(s, arguments);
10746
10756
  };
10747
10757
  };
10748
- var Ts = "TEOF", B = "TOP", on = "TNUMBER", Ac = "TSTRING", ze = "TPAREN", Bt = "TBRACKET", an = "TCOMMA", xo = "TNAME", Po = "TSEMICOLON";
10758
+ var Ts = "TEOF", B = "TOP", on = "TNUMBER", Ac = "TSTRING", qe = "TPAREN", Bt = "TBRACKET", an = "TCOMMA", xo = "TNAME", Po = "TSEMICOLON";
10749
10759
  function Rc(t, e, s) {
10750
10760
  this.type = t, this.value = e, this.index = s;
10751
10761
  }
@@ -10788,7 +10798,7 @@ Y.prototype.isString = function() {
10788
10798
  };
10789
10799
  Y.prototype.isParen = function() {
10790
10800
  var t = this.expression.charAt(this.pos);
10791
- return t === "(" || t === ")" ? (this.current = this.newToken(ze, t), this.pos++, !0) : !1;
10801
+ return t === "(" || t === ")" ? (this.current = this.newToken(qe, t), this.pos++, !0) : !1;
10792
10802
  };
10793
10803
  Y.prototype.isBracket = function() {
10794
10804
  var t = this.expression.charAt(this.pos);
@@ -11015,13 +11025,13 @@ z.prototype.parseAtom = function(t) {
11015
11025
  return n.value in e;
11016
11026
  }
11017
11027
  if (this.accept(xo) || this.accept(B, s))
11018
- t.push(new A(He, this.current.value));
11028
+ t.push(new A(ze, this.current.value));
11019
11029
  else if (this.accept(on))
11020
11030
  t.push(new A(we, this.current.value));
11021
11031
  else if (this.accept(Ac))
11022
11032
  t.push(new A(we, this.current.value));
11023
- else if (this.accept(ze, "("))
11024
- this.parseExpression(t), this.expect(ze, ")");
11033
+ else if (this.accept(qe, "("))
11034
+ this.parseExpression(t), this.expect(qe, ")");
11025
11035
  else if (this.accept(Bt, "["))
11026
11036
  if (this.accept(Bt, "]"))
11027
11037
  t.push(new A(jt, 0));
@@ -11041,7 +11051,7 @@ z.prototype.pushExpression = function(t, e) {
11041
11051
  t.push(e[s]);
11042
11052
  };
11043
11053
  z.prototype.parseUntilEndStatement = function(t, e) {
11044
- 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;
11054
+ return this.accept(Po) ? (this.nextToken && this.nextToken.type !== Ts && !(this.nextToken.type === qe && this.nextToken.value === ")") && e.push(new A(rn)), this.nextToken.type !== Ts && this.parseExpression(e), t.push(new A(de, e)), !0) : !1;
11045
11055
  };
11046
11056
  z.prototype.parseArrayList = function(t) {
11047
11057
  for (var e = 0; !this.accept(Bt, "]"); )
@@ -11057,14 +11067,14 @@ z.prototype.parseVariableAssignmentExpression = function(t) {
11057
11067
  throw new Error("function definition is not permitted");
11058
11068
  for (var n = 0, o = e.value + 1; n < o; n++) {
11059
11069
  var i = r - n;
11060
- t[i].type === He && (t[i] = new A(gt, t[i].value));
11070
+ t[i].type === ze && (t[i] = new A(gt, t[i].value));
11061
11071
  }
11062
11072
  this.parseVariableAssignmentExpression(s), t.push(new A(de, s)), t.push(new A(sn, e.value));
11063
11073
  continue;
11064
11074
  }
11065
- if (e.type !== He && e.type !== bt)
11075
+ if (e.type !== ze && e.type !== bt)
11066
11076
  throw new Error("expected variable for assignment");
11067
- this.parseVariableAssignmentExpression(s), t.push(new A(gt, e.value)), t.push(new A(de, s)), t.push(Ye("="));
11077
+ this.parseVariableAssignmentExpression(s), t.push(new A(gt, e.value)), t.push(new A(de, s)), t.push(We("="));
11068
11078
  }
11069
11079
  };
11070
11080
  z.prototype.parseConditionalExpression = function(t) {
@@ -11076,34 +11086,34 @@ z.prototype.parseConditionalExpression = function(t) {
11076
11086
  z.prototype.parseOrExpression = function(t) {
11077
11087
  for (this.parseAndExpression(t); this.accept(B, "or"); ) {
11078
11088
  var e = [];
11079
- this.parseAndExpression(e), t.push(new A(de, e)), t.push(Ye("or"));
11089
+ this.parseAndExpression(e), t.push(new A(de, e)), t.push(We("or"));
11080
11090
  }
11081
11091
  };
11082
11092
  z.prototype.parseAndExpression = function(t) {
11083
11093
  for (this.parseComparison(t); this.accept(B, "and"); ) {
11084
11094
  var e = [];
11085
- this.parseComparison(e), t.push(new A(de, e)), t.push(Ye("and"));
11095
+ this.parseComparison(e), t.push(new A(de, e)), t.push(We("and"));
11086
11096
  }
11087
11097
  };
11088
11098
  var Zg = ["==", "!=", "<", "<=", ">=", ">", "in"];
11089
11099
  z.prototype.parseComparison = function(t) {
11090
11100
  for (this.parseAddSub(t); this.accept(B, Zg); ) {
11091
11101
  var e = this.current;
11092
- this.parseAddSub(t), t.push(Ye(e.value));
11102
+ this.parseAddSub(t), t.push(We(e.value));
11093
11103
  }
11094
11104
  };
11095
11105
  var Jg = ["+", "-", "||"];
11096
11106
  z.prototype.parseAddSub = function(t) {
11097
11107
  for (this.parseTerm(t); this.accept(B, Jg); ) {
11098
11108
  var e = this.current;
11099
- this.parseTerm(t), t.push(Ye(e.value));
11109
+ this.parseTerm(t), t.push(We(e.value));
11100
11110
  }
11101
11111
  };
11102
11112
  var Xg = ["*", "/", "%"];
11103
11113
  z.prototype.parseTerm = function(t) {
11104
11114
  for (this.parseFactor(t); this.accept(B, Xg); ) {
11105
11115
  var e = this.current;
11106
- this.parseFactor(t), t.push(Ye(e.value));
11116
+ this.parseFactor(t), t.push(We(e.value));
11107
11117
  }
11108
11118
  };
11109
11119
  z.prototype.parseFactor = function(t) {
@@ -11113,10 +11123,10 @@ z.prototype.parseFactor = function(t) {
11113
11123
  }
11114
11124
  if (this.save(), this.accept(B, s)) {
11115
11125
  if (this.current.value !== "-" && this.current.value !== "+") {
11116
- if (this.nextToken.type === ze && this.nextToken.value === "(") {
11126
+ if (this.nextToken.type === qe && this.nextToken.value === "(") {
11117
11127
  this.restore(), this.parseExponential(t);
11118
11128
  return;
11119
- } else if (this.nextToken.type === Po || this.nextToken.type === an || this.nextToken.type === Ts || this.nextToken.type === ze && this.nextToken.value === ")") {
11129
+ } else if (this.nextToken.type === Po || this.nextToken.type === an || this.nextToken.type === Ts || this.nextToken.type === qe && this.nextToken.value === ")") {
11120
11130
  this.restore(), this.parseAtom(t);
11121
11131
  return;
11122
11132
  }
@@ -11128,7 +11138,7 @@ z.prototype.parseFactor = function(t) {
11128
11138
  };
11129
11139
  z.prototype.parseExponential = function(t) {
11130
11140
  for (this.parsePostfixExpression(t); this.accept(B, "^"); )
11131
- this.parseFactor(t), t.push(Ye("^"));
11141
+ this.parseFactor(t), t.push(We("^"));
11132
11142
  };
11133
11143
  z.prototype.parsePostfixExpression = function(t) {
11134
11144
  for (this.parseFunctionCall(t); this.accept(B, "!"); )
@@ -11143,8 +11153,8 @@ z.prototype.parseFunctionCall = function(t) {
11143
11153
  var r = this.current;
11144
11154
  this.parseAtom(t), t.push(nn(r.value));
11145
11155
  } else
11146
- for (this.parseMemberExpression(t); this.accept(ze, "("); )
11147
- if (this.accept(ze, ")"))
11156
+ for (this.parseMemberExpression(t); this.accept(qe, "("); )
11157
+ if (this.accept(qe, ")"))
11148
11158
  t.push(new A(Ut, 0));
11149
11159
  else {
11150
11160
  var n = this.parseArgumentList(t);
@@ -11152,7 +11162,7 @@ z.prototype.parseFunctionCall = function(t) {
11152
11162
  }
11153
11163
  };
11154
11164
  z.prototype.parseArgumentList = function(t) {
11155
- for (var e = 0; !this.accept(ze, ")"); )
11165
+ for (var e = 0; !this.accept(qe, ")"); )
11156
11166
  for (this.parseExpression(t), ++e; this.accept(an); )
11157
11167
  this.parseExpression(t), ++e;
11158
11168
  return e;
@@ -11167,7 +11177,7 @@ z.prototype.parseMemberExpression = function(t) {
11167
11177
  } else if (e.value === "[") {
11168
11178
  if (!this.tokens.isOperatorEnabled("["))
11169
11179
  throw new Error('unexpected "[]", arrays are disabled');
11170
- this.parseExpression(t), this.expect(Bt, "]"), t.push(Ye("["));
11180
+ this.parseExpression(t), this.expect(Bt, "]"), t.push(We("["));
11171
11181
  } else
11172
11182
  throw new Error("unexpected symbol: " + e.value);
11173
11183
  }
@@ -11465,7 +11475,7 @@ vt.prototype.parse = function(t) {
11465
11475
  new Y(this, t),
11466
11476
  { allowMemberAccess: this.options.allowMemberAccess }
11467
11477
  );
11468
- return s.parseExpression(e), s.expect(Ts, "EOF"), new _e(e, this);
11478
+ return s.parseExpression(e), s.expect(Ts, "EOF"), new Te(e, this);
11469
11479
  };
11470
11480
  vt.prototype.evaluate = function(t, e) {
11471
11481
  return this.parse(t).evaluate(e);
@@ -11561,7 +11571,7 @@ let $r = class {
11561
11571
  // Use ObservableData for results to handle dynamic properties properly
11562
11572
  l(this, "_results");
11563
11573
  l(this, "_contextRevision", 0);
11564
- this.id = t, this.logger = s.logger, this._data = je(), this._results = je(), this.parser = new vt();
11574
+ this.id = t, this.logger = s.logger, this._data = Be(), this._results = Be(), this.parser = new vt();
11565
11575
  }
11566
11576
  /**
11567
11577
  * Get the current context data that expressions are evaluated against.
@@ -11798,7 +11808,7 @@ $r = Gm([
11798
11808
  const Zm = $r.Registration, Jm = g.createLogger({
11799
11809
  name: "kos-log-manager-service",
11800
11810
  group: "Services"
11801
- }), Xm = "/api/kos/logs/overrides", Lc = async () => (Jm.debug("sending GET for kos-log-manager"), await ke.get(Xm)), u_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11811
+ }), Xm = "/api/kos/logs/overrides", Lc = async () => (Jm.debug("sending GET for kos-log-manager"), await Le.get(Xm)), u_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11802
11812
  __proto__: null,
11803
11813
  getLogOverrides: Lc
11804
11814
  }, Symbol.toStringTag, { value: "Module" }));
@@ -11964,7 +11974,7 @@ cn([
11964
11974
  Ht = cn([
11965
11975
  R(Fc)
11966
11976
  ], Ht);
11967
- const oy = new Re({
11977
+ const oy = new ke({
11968
11978
  class: Ht,
11969
11979
  type: Fc
11970
11980
  }), { URL: js } = ye(), { postModel: Ro, getOne: iy } = he.build({
@@ -12098,7 +12108,7 @@ const Hn = {
12098
12108
  }
12099
12109
  },
12100
12110
  type: os,
12101
- predicate: Ae(os),
12111
+ predicate: Re(os),
12102
12112
  factory: ge.Singleton.create(os)
12103
12113
  };
12104
12114
  var hy = Object.defineProperty, fy = Object.getOwnPropertyDescriptor, Hc = (t, e, s, r) => {
@@ -12112,7 +12122,7 @@ let Ir = class {
12112
12122
  l(this, "id");
12113
12123
  l(this, "logger");
12114
12124
  l(this, "_models");
12115
- this.id = t, this.logger = s.logger, this._models = new Ge({
12125
+ this.id = t, this.logger = s.logger, this._models = new Ye({
12116
12126
  parentId: t,
12117
12127
  sortKey: "blockNum"
12118
12128
  });
@@ -12141,7 +12151,7 @@ let Ir = class {
12141
12151
  }
12142
12152
  };
12143
12153
  Hc([
12144
- Ve
12154
+ Ge
12145
12155
  ], Ir.prototype, "_models", 2);
12146
12156
  Ir = Hc([
12147
12157
  R(zc)
@@ -12151,9 +12161,9 @@ const py = g.createLogger({
12151
12161
  group: "Services"
12152
12162
  }), qc = () => {
12153
12163
  var r;
12154
- const t = Oe(), s = (t == null ? void 0 : t.connId) || ((r = window == null ? void 0 : window.kosBridge) == null ? void 0 : r.call(window, "connId"));
12164
+ const t = Se(), s = (t == null ? void 0 : t.connId) || ((r = window == null ? void 0 : window.kosBridge) == null ? void 0 : r.call(window, "connId"));
12155
12165
  return g.error(`getKosConnectionId: ${s}`), s;
12156
- }, ts = qc(), gy = "/api/kos/logs/node/{nodeId}/streams", Kc = async () => (py.debug("sending GET for log-stream-container"), await ke.get(
12166
+ }, ts = qc(), gy = "/api/kos/logs/node/{nodeId}/streams", Kc = async () => (py.debug("sending GET for log-stream-container"), await Le.get(
12157
12167
  gy,
12158
12168
  {
12159
12169
  path: {
@@ -12164,7 +12174,7 @@ const py = g.createLogger({
12164
12174
  destinationAddress: ts
12165
12175
  }
12166
12176
  )), Vc = async (t, e = "primary") => {
12167
- await ke.post(
12177
+ await Le.post(
12168
12178
  "/api/kos/logs/node/{nodeId}/{stream}/subscribe",
12169
12179
  {
12170
12180
  path: {
@@ -12178,7 +12188,7 @@ const py = g.createLogger({
12178
12188
  }
12179
12189
  );
12180
12190
  }, Gc = async (t) => {
12181
- await ke.post(
12191
+ await Le.post(
12182
12192
  "/api/kos/logs/node/{nodeId}/{stream}/unsubscribe",
12183
12193
  { path: { nodeId: "primary", stream: t } },
12184
12194
  void 0,
@@ -12187,7 +12197,7 @@ const py = g.createLogger({
12187
12197
  }
12188
12198
  );
12189
12199
  }, my = async () => {
12190
- await ke.post(
12200
+ await Le.post(
12191
12201
  "/api/kos/logs/overrides",
12192
12202
  {},
12193
12203
  {
@@ -12200,7 +12210,7 @@ const py = g.createLogger({
12200
12210
  destinationAddress: ts
12201
12211
  }
12202
12212
  );
12203
- }, Yc = async (t) => await ke.get(
12213
+ }, Yc = async (t) => await Le.get(
12204
12214
  "/api/kos/logs/node/{nodeId}/{stream}/blocks",
12205
12215
  {
12206
12216
  path: {
@@ -12211,7 +12221,7 @@ const py = g.createLogger({
12211
12221
  {
12212
12222
  destinationAddress: ts
12213
12223
  }
12214
- ), Wc = async (t, e) => await ke.get(
12224
+ ), Wc = async (t, e) => await Le.get(
12215
12225
  "/api/kos/logs/node/{nodeId}/{stream}/blocks/{blockId}",
12216
12226
  {
12217
12227
  path: {
@@ -12284,10 +12294,10 @@ let zn = class {
12284
12294
  zn = by([
12285
12295
  R(Qc)
12286
12296
  ], zn);
12287
- const Or = new Se({
12297
+ const Or = new Ce({
12288
12298
  class: zn,
12289
12299
  type: Qc
12290
- }), ko = new Se({
12300
+ }), ko = new Ce({
12291
12301
  class: Ir,
12292
12302
  type: zc
12293
12303
  });
@@ -12457,12 +12467,12 @@ let Sr = class {
12457
12467
  }
12458
12468
  };
12459
12469
  Zc([
12460
- Ve
12470
+ Ge
12461
12471
  ], Sr.prototype, "_blocks", 2);
12462
12472
  Sr = Zc([
12463
12473
  R(Jc)
12464
12474
  ], Sr);
12465
- const yr = new Se({
12475
+ const yr = new Ce({
12466
12476
  class: Sr,
12467
12477
  type: Jc
12468
12478
  });
@@ -12472,7 +12482,7 @@ var My = Object.defineProperty, Ey = Object.getOwnPropertyDescriptor, wt = (t, e
12472
12482
  return r && n && My(e, s, n), n;
12473
12483
  };
12474
12484
  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/*";
12475
- let qe = class {
12485
+ let Ke = class {
12476
12486
  constructor(t, e, s) {
12477
12487
  /** Unique identifier for the container model instance */
12478
12488
  l(this, "id");
@@ -12481,7 +12491,7 @@ let qe = class {
12481
12491
  /** Currently selected log stream for UI display purposes */
12482
12492
  l(this, "selectedStream");
12483
12493
  l(this, "_models");
12484
- this.id = t, this.logger = s.logger, this._models = new Ge({ parentId: t }), this.selectedStream = void 0;
12494
+ this.id = t, this.logger = s.logger, this._models = new Ye({ parentId: t }), this.selectedStream = void 0;
12485
12495
  }
12486
12496
  getModel(t) {
12487
12497
  return this._models.getModel(t);
@@ -12566,43 +12576,43 @@ let qe = class {
12566
12576
  }
12567
12577
  };
12568
12578
  wt([
12569
- Ve
12570
- ], qe.prototype, "_models", 2);
12579
+ Ge
12580
+ ], Ke.prototype, "_models", 2);
12571
12581
  wt([
12572
12582
  H({
12573
12583
  topic: [el],
12574
12584
  websocket: !0
12575
12585
  })
12576
- ], qe.prototype, "handleStreamAdded", 1);
12586
+ ], Ke.prototype, "handleStreamAdded", 1);
12577
12587
  wt([
12578
12588
  H({
12579
12589
  topic: [_y],
12580
12590
  websocket: !0
12581
12591
  })
12582
- ], qe.prototype, "handleAddBlock", 1);
12592
+ ], Ke.prototype, "handleAddBlock", 1);
12583
12593
  wt([
12584
12594
  H({
12585
12595
  topic: [$y],
12586
12596
  websocket: !0
12587
12597
  })
12588
- ], qe.prototype, "handleRemoveBlock", 1);
12598
+ ], Ke.prototype, "handleRemoveBlock", 1);
12589
12599
  wt([
12590
12600
  H({
12591
12601
  topic: [Ty],
12592
12602
  websocket: !0
12593
12603
  })
12594
- ], qe.prototype, "handleUpdateBlock", 1);
12604
+ ], Ke.prototype, "handleUpdateBlock", 1);
12595
12605
  wt([
12596
12606
  H({
12597
12607
  topic: [Iy],
12598
12608
  websocket: !0
12599
12609
  })
12600
- ], qe.prototype, "handleLogLine", 1);
12601
- qe = wt([
12610
+ ], Ke.prototype, "handleLogLine", 1);
12611
+ Ke = wt([
12602
12612
  R(Xc)
12603
- ], qe);
12604
- const un = new Re({
12605
- class: qe,
12613
+ ], Ke);
12614
+ const un = new ke({
12615
+ class: Ke,
12606
12616
  type: Xc
12607
12617
  });
12608
12618
  un.addRelatedModel(yr);
@@ -12878,7 +12888,7 @@ const Dr = {
12878
12888
  }
12879
12889
  },
12880
12890
  type: is,
12881
- predicate: Ae(is),
12891
+ predicate: Re(is),
12882
12892
  factory: ge.Factory.create(is)
12883
12893
  };
12884
12894
  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) => {
@@ -12888,32 +12898,32 @@ var ol = Object.defineProperty, By = Object.getOwnPropertyDescriptor, Hy = (t, e
12888
12898
  }, zy = (t, e, s) => (Hy(t, e + "", s), s);
12889
12899
  function Oi(t) {
12890
12900
  return I.propertyMapper.hasMapper(
12891
- xe.TroubleRank
12901
+ Pe.TroubleRank
12892
12902
  ) ? I.propertyMapper.executeMapper(
12893
- xe.TroubleRank,
12903
+ Pe.TroubleRank,
12894
12904
  t
12895
12905
  ) : Dy(t);
12896
12906
  }
12897
12907
  function Si(t) {
12898
12908
  return (I.propertyMapper.hasMapper(
12899
- xe.TroubleColor
12909
+ Pe.TroubleColor
12900
12910
  ) ? I.propertyMapper.executeMapper(
12901
- xe.TroubleColor,
12911
+ Pe.TroubleColor,
12902
12912
  t
12903
12913
  ) : xy(t)).toLowerCase();
12904
12914
  }
12905
12915
  function Ci(t) {
12906
12916
  return (I.propertyMapper.hasMapper(
12907
- xe.TroubleRole
12917
+ Pe.TroubleRole
12908
12918
  ) ? I.propertyMapper.executeMapper(
12909
- xe.TroubleRole,
12919
+ Pe.TroubleRole,
12910
12920
  t
12911
12921
  ) : Py(t)).toLowerCase();
12912
12922
  }
12913
12923
  const qy = "trouble-container-model";
12914
- class Ee {
12924
+ class _e {
12915
12925
  }
12916
- 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");
12926
+ l(_e, "INDEX_TROUBLES_BY_IFACE", "byIface"), l(_e, "INDEX_TROUBLES_BY_TYPE", "byType"), l(_e, "INDEX_TROUBLES_BY_GROUP", "byGroup"), l(_e, "INDEX_TROUBLES_BY_DEFERRED", "byDeferred"), l(_e, "SORT_KEY_RANK", "rank"), l(_e, "TROUBLES_DEFERRED", "true");
12917
12927
  let qt = class {
12918
12928
  constructor(t, e) {
12919
12929
  l(this, "id");
@@ -12942,7 +12952,7 @@ let qt = class {
12942
12952
  }
12943
12953
  handleTroubleRemoved(t) {
12944
12954
  const e = `trouble-${t}`, s = this.troubles.getModel(e);
12945
- this.troubles.removeModel(e), s && Ue(s);
12955
+ this.troubles.removeModel(e), s && je(s);
12946
12956
  }
12947
12957
  handleTroubleAdded(t) {
12948
12958
  const e = {
@@ -12977,12 +12987,12 @@ qt = Lo([
12977
12987
  containerProperty: "troubles",
12978
12988
  containerOptions: {
12979
12989
  indexMap: {
12980
- [Ee.INDEX_TROUBLES_BY_IFACE]: ky,
12981
- [Ee.INDEX_TROUBLES_BY_TYPE]: "type",
12982
- [Ee.INDEX_TROUBLES_BY_GROUP]: "group",
12983
- [Ee.INDEX_TROUBLES_BY_DEFERRED]: "deferred"
12990
+ [_e.INDEX_TROUBLES_BY_IFACE]: ky,
12991
+ [_e.INDEX_TROUBLES_BY_TYPE]: "type",
12992
+ [_e.INDEX_TROUBLES_BY_GROUP]: "group",
12993
+ [_e.INDEX_TROUBLES_BY_DEFERRED]: "deferred"
12984
12994
  },
12985
- sortKey: Ee.SORT_KEY_RANK
12995
+ sortKey: _e.SORT_KEY_RANK
12986
12996
  }
12987
12997
  })
12988
12998
  ], qt);
@@ -13156,7 +13166,7 @@ fn([
13156
13166
  Kt = fn([
13157
13167
  R(al)
13158
13168
  ], Kt);
13159
- const Kn = new Re({
13169
+ const Kn = new ke({
13160
13170
  class: Kt,
13161
13171
  type: al
13162
13172
  });
@@ -13184,7 +13194,7 @@ const Dn = g.createLogger({
13184
13194
  signal: t
13185
13195
  });
13186
13196
  if (!s)
13187
- 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"));
13197
+ throw t != null && t.aborted ? (Dn.debug("Request was aborted"), new Ie("Request was aborted")) : (Dn.error("Failed to fetch software-info", e), new Ie("Failed to fetch software-info"));
13188
13198
  return s;
13189
13199
  }, Zy = Qy(Fo), p_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13190
13200
  __proto__: null,
@@ -13242,7 +13252,7 @@ let Vn = class {
13242
13252
  this.nodes = r;
13243
13253
  });
13244
13254
  } catch (t) {
13245
- t instanceof $e && this.logger.error("Failed to fetch software-info", t);
13255
+ t instanceof Ie && this.logger.error("Failed to fetch software-info", t);
13246
13256
  }
13247
13257
  }
13248
13258
  };
@@ -13257,7 +13267,7 @@ const Gn = {
13257
13267
  }
13258
13268
  },
13259
13269
  type: as,
13260
- predicate: Ae(as),
13270
+ predicate: Re(as),
13261
13271
  factory: ge.Factory.create(
13262
13272
  as
13263
13273
  )
@@ -13346,7 +13356,7 @@ const Pr = {
13346
13356
  }
13347
13357
  },
13348
13358
  type: cs,
13349
- predicate: Ae(cs),
13359
+ predicate: Re(cs),
13350
13360
  factory: ge.Factory.create(cs)
13351
13361
  };
13352
13362
  var ob = Object.defineProperty, ib = Object.getOwnPropertyDescriptor, dl = (t, e, s, r) => {
@@ -13412,7 +13422,7 @@ const hl = {
13412
13422
  }
13413
13423
  },
13414
13424
  type: ls,
13415
- predicate: Ae(ls),
13425
+ predicate: Re(ls),
13416
13426
  factory: ge.Factory.create(ls)
13417
13427
  }, { URL: ab } = ye(), { getAll: cb } = he.build({
13418
13428
  basePath: `${ab}/api/state-prop`
@@ -13428,7 +13438,7 @@ const hl = {
13428
13438
  name: "translation-service",
13429
13439
  group: "Services"
13430
13440
  }), db = () => {
13431
- const t = window.location.origin, e = Oe();
13441
+ const t = window.location.origin, e = Se();
13432
13442
  return (e == null ? void 0 : e.host) || t;
13433
13443
  }, hb = async (t, e) => {
13434
13444
  gs.debug(`Loading translations from: ${t}`);
@@ -13665,7 +13675,7 @@ const Qn = {
13665
13675
  }
13666
13676
  },
13667
13677
  type: us,
13668
- predicate: Ae(us),
13678
+ predicate: Re(us),
13669
13679
  factory: ge.Factory.create(us)
13670
13680
  };
13671
13681
  var yb = Object.defineProperty, bb = Object.getOwnPropertyDescriptor, yl = (t, e, s, r) => {
@@ -13702,7 +13712,7 @@ let Rr = class {
13702
13712
  /** Array tracking registered namespace identifiers */
13703
13713
  l(this, "namespaces", []);
13704
13714
  l(this, "_models");
13705
- 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({
13715
+ 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 Ye({
13706
13716
  parentId: t
13707
13717
  });
13708
13718
  }
@@ -13783,7 +13793,7 @@ let Rr = class {
13783
13793
  }
13784
13794
  };
13785
13795
  yl([
13786
- Ve
13796
+ Ge
13787
13797
  ], Rr.prototype, "_models", 2);
13788
13798
  Rr = yl([
13789
13799
  R(ds)
@@ -13796,7 +13806,7 @@ const Je = {
13796
13806
  }
13797
13807
  },
13798
13808
  type: ds,
13799
- predicate: Ae(ds),
13809
+ predicate: Re(ds),
13800
13810
  factory: ge.Singleton.create(ds)
13801
13811
  }, b_ = {
13802
13812
  set(t, e) {
@@ -13878,9 +13888,9 @@ Uo([
13878
13888
  Is = Uo([
13879
13889
  R(bl.type)
13880
13890
  ], Is);
13881
- const Ai = Oe(), Ib = Ai.debug === "true" || Ai.debug === !0, Ob = "/api/system/canvas", vl = async (t, e) => {
13891
+ const Ai = Se(), Ib = Ai.debug === "true" || Ai.debug === !0, Ob = "/api/system/canvas", vl = async (t, e) => {
13882
13892
  const r = `${me}${e || Ob}`;
13883
- await Le(r, {
13893
+ await Fe(r, {
13884
13894
  method: "POST",
13885
13895
  headers: {
13886
13896
  hide: Ib ? "false" : "true"
@@ -14059,7 +14069,7 @@ wl([
14059
14069
  kr = wl([
14060
14070
  R(Ml)
14061
14071
  ], kr);
14062
- const El = new Se({
14072
+ const El = new Ce({
14063
14073
  class: kr,
14064
14074
  type: Ml
14065
14075
  });
@@ -15324,7 +15334,7 @@ let Xe = class {
15324
15334
  // Note: BrowserRouter is automatically injected when using HTTP decorators!
15325
15335
  l(this, "pattern");
15326
15336
  l(this, "data");
15327
- this.id = t, this.logger = s.logger, this._endpointRenderers = new Ge();
15337
+ this.id = t, this.logger = s.logger, this._endpointRenderers = new Ye();
15328
15338
  }
15329
15339
  addNamedEndpoint(t, e) {
15330
15340
  this._endpointRenderers.getModel(t) && this.logger.warn(`Endpoint "${t}" already exists. Overwriting.`);
@@ -15421,7 +15431,7 @@ let Xe = class {
15421
15431
  }
15422
15432
  };
15423
15433
  ss([
15424
- Ve
15434
+ Ge
15425
15435
  ], Xe.prototype, "_endpointRenderers", 2);
15426
15436
  ss([
15427
15437
  en("/api/ui/canvas/patterns")
@@ -15438,7 +15448,7 @@ ss([
15438
15448
  Xe = ss([
15439
15449
  R(Ol)
15440
15450
  ], Xe);
15441
- const Os = new Re({
15451
+ const Os = new ke({
15442
15452
  class: Xe,
15443
15453
  type: Ol
15444
15454
  }), { URL: Bo } = ye(), { getOne: Sl } = he.build({
@@ -15451,7 +15461,7 @@ const Os = new Re({
15451
15461
  });
15452
15462
  return [void 0, t == null ? void 0 : t.data.serialNumber];
15453
15463
  } catch (t) {
15454
- if (t instanceof $e)
15464
+ if (t instanceof Ie)
15455
15465
  return Nr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
15456
15466
  }
15457
15467
  return ["unknownError", void 0];
@@ -15463,7 +15473,7 @@ const Os = new Re({
15463
15473
  });
15464
15474
  return t ? [void 0, t.data] : ["unknownError", void 0];
15465
15475
  } catch (t) {
15466
- if (t instanceof $e)
15476
+ if (t instanceof Ie)
15467
15477
  return Nr.error(`Error fetching device serial number: ${t.payload.error}`), [t.payload.error, void 0];
15468
15478
  }
15469
15479
  return ["unknownError", void 0];
@@ -15684,7 +15694,7 @@ xl([
15684
15694
  Ur = xl([
15685
15695
  R(Pl)
15686
15696
  ], Ur);
15687
- const Zn = new Re({
15697
+ const Zn = new ke({
15688
15698
  class: Ur,
15689
15699
  type: Pl
15690
15700
  });
@@ -15741,7 +15751,7 @@ let Jn = class {
15741
15751
  Jn = ev([
15742
15752
  R(Al)
15743
15753
  ], Jn);
15744
- const Rl = new Se({
15754
+ const Rl = new Ce({
15745
15755
  class: Jn,
15746
15756
  type: Al
15747
15757
  }), { URL: tv } = ye(), { getAll: sv } = he.build({
@@ -15755,7 +15765,7 @@ const Rl = new Se({
15755
15765
  const t = await sv({});
15756
15766
  return [void 0, t == null ? void 0 : t.data];
15757
15767
  } catch (t) {
15758
- if (t instanceof $e)
15768
+ if (t instanceof Ie)
15759
15769
  return Li.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
15760
15770
  }
15761
15771
  return ["unknownError", void 0];
@@ -15776,7 +15786,7 @@ let jr = class {
15776
15786
  /** Context logger for debugging and network interface operations */
15777
15787
  l(this, "logger");
15778
15788
  l(this, "_models");
15779
- this.id = t, this.logger = s.logger, this._models = new Ge({
15789
+ this.id = t, this.logger = s.logger, this._models = new Ye({
15780
15790
  parentId: t,
15781
15791
  indexMap: {
15782
15792
  byCategory: "category"
@@ -15831,12 +15841,12 @@ let jr = class {
15831
15841
  }
15832
15842
  };
15833
15843
  Ll([
15834
- Ve
15844
+ Ge
15835
15845
  ], jr.prototype, "_models", 2);
15836
15846
  jr = Ll([
15837
15847
  R(Fl)
15838
15848
  ], jr);
15839
- const Br = new Re({
15849
+ const Br = new ke({
15840
15850
  class: jr,
15841
15851
  type: Fl
15842
15852
  });
@@ -15911,7 +15921,7 @@ Xn = cv([
15911
15921
  po(),
15912
15922
  R(Ul)
15913
15923
  ], Xn);
15914
- const eo = new Se({
15924
+ const eo = new Ce({
15915
15925
  class: Xn,
15916
15926
  type: Ul
15917
15927
  });
@@ -15926,7 +15936,7 @@ let Ss = class {
15926
15936
  l(this, "id");
15927
15937
  l(this, "logger");
15928
15938
  l(this, "_models");
15929
- this.id = t, this.logger = s.logger, this._models = new Ge({
15939
+ this.id = t, this.logger = s.logger, this._models = new Ye({
15930
15940
  parentId: t
15931
15941
  });
15932
15942
  }
@@ -15992,7 +16002,7 @@ let Ss = class {
15992
16002
  }
15993
16003
  };
15994
16004
  Ho([
15995
- Ve
16005
+ Ge
15996
16006
  ], Ss.prototype, "_models", 2);
15997
16007
  Ho([
15998
16008
  H({
@@ -16003,7 +16013,7 @@ Ho([
16003
16013
  Ss = Ho([
16004
16014
  R(jl)
16005
16015
  ], Ss);
16006
- const Cs = new Re({
16016
+ const Cs = new ke({
16007
16017
  class: Ss,
16008
16018
  type: jl
16009
16019
  });
@@ -16085,7 +16095,7 @@ zl([
16085
16095
  Hr = zl([
16086
16096
  R(ql)
16087
16097
  ], Hr);
16088
- const Kl = new Se({
16098
+ const Kl = new Ce({
16089
16099
  class: Hr,
16090
16100
  type: ql
16091
16101
  });
@@ -16103,7 +16113,7 @@ let Vt = class {
16103
16113
  l(this, "_activeUpdate");
16104
16114
  l(this, "logger");
16105
16115
  l(this, "_models");
16106
- this.id = t, this.logger = s.logger, this._models = new Ge({ parentId: t });
16116
+ this.id = t, this.logger = s.logger, this._models = new Ye({ parentId: t });
16107
16117
  }
16108
16118
  getModel(t) {
16109
16119
  return this._models.getModel(t);
@@ -16175,7 +16185,7 @@ pn([
16175
16185
  ks({ modelType: Cs.type })
16176
16186
  ], Vt.prototype, "storageService", 2);
16177
16187
  pn([
16178
- Ve
16188
+ Ge
16179
16189
  ], Vt.prototype, "_models", 2);
16180
16190
  pn([
16181
16191
  Wd({ dependencies: (t) => [t.isUsbInserted] })
@@ -16183,7 +16193,7 @@ pn([
16183
16193
  Vt = pn([
16184
16194
  R(Vl)
16185
16195
  ], Vt);
16186
- const zr = new Re({
16196
+ const zr = new ke({
16187
16197
  class: Vt,
16188
16198
  type: Vl
16189
16199
  });
@@ -16222,22 +16232,22 @@ const bv = () => ({ ...{
16222
16232
  companion: P.companion.register(t),
16223
16233
  legacy: P.model.registerLegacyModel(t)
16224
16234
  };
16225
- }, Ie = {};
16226
- Ie.core = {
16227
- models: vv(Ie)
16235
+ }, Oe = {};
16236
+ Oe.core = {
16237
+ models: vv(Oe)
16228
16238
  };
16229
- Ie.preload = P.model.preloadModel(Ie);
16230
- Ie.model = P.model.register(Ie);
16231
- Ie.companion = P.companion.register(Ie);
16232
- Ie.legacy = P.model.registerLegacyModel(Ie);
16233
- const ji = Ie;
16239
+ Oe.preload = P.model.preloadModel(Oe);
16240
+ Oe.model = P.model.register(Oe);
16241
+ Oe.companion = P.companion.register(Oe);
16242
+ Oe.legacy = P.model.registerLegacyModel(Oe);
16243
+ const ji = Oe;
16234
16244
  class I_ {
16235
16245
  /**
16236
16246
  * Maps the rank property of the trouble into the {@link TroubleModel}
16237
16247
  * */
16238
16248
  registerTroubleRankMapper(e) {
16239
16249
  return I.propertyMapper.registerPropertyMapper(
16240
- xe.TroubleRank,
16250
+ Pe.TroubleRank,
16241
16251
  e
16242
16252
  ), this;
16243
16253
  }
@@ -16246,7 +16256,7 @@ class I_ {
16246
16256
  * */
16247
16257
  registerTroubleRoleMapper(e) {
16248
16258
  return I.propertyMapper.registerPropertyMapper(
16249
- xe.TroubleRole,
16259
+ Pe.TroubleRole,
16250
16260
  e
16251
16261
  ), this;
16252
16262
  }
@@ -16255,7 +16265,7 @@ class I_ {
16255
16265
  * */
16256
16266
  registerTroubleColorMapper(e) {
16257
16267
  return I.propertyMapper.registerPropertyMapper(
16258
- xe.TroubleColor,
16268
+ Pe.TroubleColor,
16259
16269
  e
16260
16270
  ), this;
16261
16271
  }
@@ -16278,7 +16288,7 @@ const O_ = async (t, e) => {
16278
16288
  await s.updateState(`${r}${n}`, void 0);
16279
16289
  },
16280
16290
  unsubscribe: () => {
16281
- Ue(s);
16291
+ je(s);
16282
16292
  }
16283
16293
  };
16284
16294
  }, Yl = "kos:service:region", Wl = "regionId", wv = `${Yl}-${Wl}`, Mv = async (t) => {
@@ -16644,7 +16654,7 @@ function tu(t = {}) {
16644
16654
  };
16645
16655
  }
16646
16656
  const R_ = ({ path: t }) => (e, s) => {
16647
- e[F] = e[F] || {}, e[F][s] = {
16657
+ e[N] = e[N] || {}, e[N][s] = {
16648
16658
  modelType: Pr.type,
16649
16659
  id: `${Pr.type}-${t}`,
16650
16660
  options: {
@@ -16656,7 +16666,7 @@ const R_ = ({ path: t }) => (e, s) => {
16656
16666
  function k_(t) {
16657
16667
  const { path: e, attribute: s } = t;
16658
16668
  return (r, n) => {
16659
- r[F] = r[F] || {}, r[F][n] = {
16669
+ r[N] = r[N] || {}, r[N][n] = {
16660
16670
  modelType: hl.type,
16661
16671
  id: `${e}-${s}`,
16662
16672
  options: {
@@ -16668,7 +16678,7 @@ function k_(t) {
16668
16678
  };
16669
16679
  }
16670
16680
  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`) => {
16671
- const r = await Le(`${s}`, {
16681
+ const r = await Fe(`${s}`, {
16672
16682
  method: "POST",
16673
16683
  destinationAddress: "",
16674
16684
  body: JSON.stringify({
@@ -16682,7 +16692,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
16682
16692
  }
16683
16693
  return await r.json();
16684
16694
  }, F_ = async (t) => Rv(t, `${me}/api/server/startPasswordReset`, ""), Rv = async (t, e = `${me}/api/startPasswordReset`, s = "server") => {
16685
- const r = await Le(`${e}?email=${t}`, {
16695
+ const r = await Fe(`${e}?email=${t}`, {
16686
16696
  method: "POST",
16687
16697
  destinationAddress: s
16688
16698
  });
@@ -16698,7 +16708,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
16698
16708
  "*"
16699
16709
  )}`
16700
16710
  );
16701
- const r = await Le(`${s}`, {
16711
+ const r = await Fe(`${s}`, {
16702
16712
  method: "POST",
16703
16713
  destinationAddress: "",
16704
16714
  body: JSON.stringify({
@@ -16726,7 +16736,7 @@ const Lt = g.createLogger({ name: "services", group: "Services" }), L_ = async (
16726
16736
  "*"
16727
16737
  )}`
16728
16738
  );
16729
- const n = await Le(`${r}`, {
16739
+ const n = await Fe(`${r}`, {
16730
16740
  method: "POST",
16731
16741
  destinationAddress: "",
16732
16742
  body: JSON.stringify({
@@ -16951,7 +16961,7 @@ const zv = {
16951
16961
  );
16952
16962
  }, q_ = (t) => Yv({
16953
16963
  filter: (s) => {
16954
- const r = Be(s.id);
16964
+ const r = He(s.id);
16955
16965
  return (r == null ? void 0 : r.type) === t;
16956
16966
  }
16957
16967
  })[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) => {
@@ -17090,14 +17100,14 @@ const ne = (t) => {
17090
17100
  m == null || m.fsm.transitionTo(L.GO_INACTIVE, y.INACTIVE).then(() => {
17091
17101
  if (n) {
17092
17102
  const b = h.id;
17093
- Ue(h).then(() => {
17103
+ je(h).then(() => {
17094
17104
  ct.delete(b), p == null || p();
17095
17105
  });
17096
17106
  }
17097
17107
  });
17098
17108
  }
17099
17109
  } else
17100
- n && h && Ue(h).then(() => {
17110
+ n && h && je(h).then(() => {
17101
17111
  ct.delete(e), p == null || p();
17102
17112
  });
17103
17113
  };
@@ -17165,7 +17175,7 @@ function J_({ children: t }) {
17165
17175
  return /* @__PURE__ */ w(aw.Provider, { value: cu, children: t });
17166
17176
  }
17167
17177
  const lu = As(void 0), cw = () => {
17168
- const t = window.location.origin, e = Oe();
17178
+ const t = window.location.origin, e = Se();
17169
17179
  return (e == null ? void 0 : e.host) || t;
17170
17180
  }, X_ = ({
17171
17181
  children: t,
@@ -17186,8 +17196,8 @@ const lu = As(void 0), cw = () => {
17186
17196
  return V.value;
17187
17197
  }).filter((V) => !!V).reverse().reduce((V, j) => {
17188
17198
  const te = j.path;
17189
- return Object.keys(j.namespaces).forEach((We) => {
17190
- const Qe = j.namespaces[We];
17199
+ return Object.keys(j.namespaces).forEach((Ee) => {
17200
+ const Qe = j.namespaces[Ee];
17191
17201
  Qe.basePath = te;
17192
17202
  }), {
17193
17203
  ...V,
@@ -17803,14 +17813,14 @@ function wT({
17803
17813
  }).format(a);
17804
17814
  return o ? o == "MMDDYY" ? `${c} ${d} ${u}` : o === "DDMMYY" ? `${d} ${c} ${u}` : o === "YYMMDD" ? `${u} ${c} ${d}` : `${u} ${d} ${c}` : new Intl.DateTimeFormat(t, n).format(a);
17805
17815
  }
17806
- function Ce(t) {
17816
+ function De(t) {
17807
17817
  return t.toString().length === 2 ? new Date(Date.parse(`01 Jan 20${t}`)).getFullYear() : t;
17808
17818
  }
17809
17819
  function MT(t) {
17810
17820
  return typeof t == "string" ? new Date(Date.parse(`01 ${t.substring(0, 3)} 2023`)).getMonth() + 1 : t;
17811
17821
  }
17812
17822
  function jw(t, e, s) {
17813
- const r = Ce(e), n = new Date(r, t, 1).getDay(), o = new Date(r, t + 1, 0).getDate();
17823
+ const r = De(e), n = new Date(r, t, 1).getDay(), o = new Date(r, t + 1, 0).getDate();
17814
17824
  return [...Array(42).keys()].map((a) => a < n || a > o + n - 1 ? { label: "", value: 0, disabled: !0 } : s[a - n]);
17815
17825
  }
17816
17826
  function sr(t, e, s) {
@@ -17886,7 +17896,7 @@ function Kw(t, e = "en-US") {
17886
17896
  );
17887
17897
  }
17888
17898
  function fu(t, e) {
17889
- const s = Ce(t);
17899
+ const s = De(t);
17890
17900
  return W(
17891
17901
  () => Lw(s, e),
17892
17902
  [e, s]
@@ -17967,7 +17977,7 @@ function ET({
17967
17977
  daysArray: V,
17968
17978
  daysOptionsArray: j,
17969
17979
  calendarDayArray: te,
17970
- dayNamesArray: We
17980
+ dayNamesArray: Ee
17971
17981
  } = Hw({
17972
17982
  locale: t,
17973
17983
  year: d,
@@ -17992,7 +18002,7 @@ function ET({
17992
18002
  setMonth: b,
17993
18003
  setDay: M,
17994
18004
  nextMonth: () => {
17995
- const ie = m < 11 ? Ce(d) : Ce(d + 1), fe = m < 11 ? m + 1 : 0;
18005
+ const ie = m < 11 ? De(d) : De(d + 1), fe = m < 11 ? m + 1 : 0;
17996
18006
  if (!sr(ie, fe, v)) {
17997
18007
  const st = rr(ie, fe);
17998
18008
  M(st);
@@ -18000,7 +18010,7 @@ function ET({
18000
18010
  fe === 0 && h(ie), b(fe);
18001
18011
  },
18002
18012
  previousMonth: () => {
18003
- const ie = Ce(m === 0 ? d - 1 : d), fe = m === 0 ? 11 : m - 1;
18013
+ const ie = De(m === 0 ? d - 1 : d), fe = m === 0 ? 11 : m - 1;
18004
18014
  if (!sr(ie, fe, v)) {
18005
18015
  const st = rr(ie, fe);
18006
18016
  M(st);
@@ -18008,20 +18018,20 @@ function ET({
18008
18018
  fe === 11 && h(ie), b(fe);
18009
18019
  },
18010
18020
  nextYear: () => {
18011
- const ie = d < f[1] ? d + 1 : f[0], fe = Ce(ie);
18021
+ const ie = d < f[1] ? d + 1 : f[0], fe = De(ie);
18012
18022
  if (sr(fe, m, v))
18013
18023
  h(ie);
18014
18024
  else {
18015
- const st = rr(Ce(d + 1), m);
18025
+ const st = rr(De(d + 1), m);
18016
18026
  M(st), h(ie);
18017
18027
  }
18018
18028
  },
18019
18029
  previousYear: () => {
18020
- const ie = d > f[0] ? d - 1 : f[0], fe = Ce(ie);
18030
+ const ie = d > f[0] ? d - 1 : f[0], fe = De(ie);
18021
18031
  if (sr(fe, m, v))
18022
18032
  h(ie);
18023
18033
  else {
18024
- const st = rr(Ce(d - 1), m);
18034
+ const st = rr(De(d - 1), m);
18025
18035
  M(st), h(ie);
18026
18036
  }
18027
18037
  }
@@ -18037,7 +18047,7 @@ function ET({
18037
18047
  monthsOptionsArray: E,
18038
18048
  daysArray: V,
18039
18049
  daysOptionsArray: j,
18040
- calendarDayNames: We,
18050
+ calendarDayNames: Ee,
18041
18051
  calendarDayArray: te,
18042
18052
  formattedDate: Qe
18043
18053
  }
@@ -18508,7 +18518,7 @@ const Qi = g.createLogger({
18508
18518
  }), gM = "/api/kos/studio/properties", bu = async (t) => {
18509
18519
  if (Qi.debug("sending GET for studio-properties"), !t)
18510
18520
  throw Qi.error("connectionId is undefined"), new Error("connectionId is undefined");
18511
- return await ke.get(
18521
+ return await Le.get(
18512
18522
  gM,
18513
18523
  {},
18514
18524
  {
@@ -18540,7 +18550,7 @@ let to = class {
18540
18550
  l(this, "logger");
18541
18551
  /** Observable data store for Studio properties */
18542
18552
  l(this, "data");
18543
- this.id = t, this.logger = s.logger, this.data = je(), this.connectionId = e.connectionId;
18553
+ this.id = t, this.logger = s.logger, this.data = Be(), this.connectionId = e.connectionId;
18544
18554
  }
18545
18555
  // -------------------LIFECYCLE----------------------------
18546
18556
  /**
@@ -18609,7 +18619,7 @@ let to = class {
18609
18619
  to = yM([
18610
18620
  R(vu)
18611
18621
  ], to);
18612
- const RT = new Se({
18622
+ const RT = new Ce({
18613
18623
  class: to,
18614
18624
  type: vu
18615
18625
  });
@@ -18634,7 +18644,7 @@ export {
18634
18644
  Zw as DateDisplayFormat,
18635
18645
  GM as DateHelpers,
18636
18646
  x as DependencyLifecycle,
18637
- F as DependencyModels,
18647
+ N as DependencyModels,
18638
18648
  it as DependencyResolutionPolicy,
18639
18649
  Zn as Device,
18640
18650
  M_ as DeviceServices,
@@ -18655,7 +18665,7 @@ export {
18655
18665
  vg as FUTURE_MODEL_TYPE,
18656
18666
  ac as FUTURE_NOT_ASSIGNED,
18657
18667
  pd as FeatureFlagService,
18658
- $e as FetchError,
18668
+ Ie as FetchError,
18659
18669
  ar as FutureAliases,
18660
18670
  pt as FutureContainerFactory,
18661
18671
  zg as FutureContainerModel,
@@ -18673,7 +18683,7 @@ export {
18673
18683
  io as HEADER_METHOD,
18674
18684
  na as HEADER_ORDERED,
18675
18685
  Kr as HEADER_REQUEST_ID,
18676
- Ke as HEADER_REQUEST_TYPE,
18686
+ Ve as HEADER_REQUEST_TYPE,
18677
18687
  ao as HEADER_RESPONSE_ID,
18678
18688
  Pu as HEADER_SOURCE_ADDR,
18679
18689
  xu as HEADER_TOPIC,
@@ -18693,7 +18703,7 @@ export {
18693
18703
  Up as KosContextBean,
18694
18704
  J as KosContextManager,
18695
18705
  T as KosCore,
18696
- xe as KosCoreModelPropertyMapper,
18706
+ Pe as KosCoreModelPropertyMapper,
18697
18707
  rc as KosDataContainer,
18698
18708
  aE as KosDependencyTypes,
18699
18709
  Zm as KosExpressionEvaluator,
@@ -18708,7 +18718,7 @@ export {
18708
18718
  Nu as KosMockEvents,
18709
18719
  op as KosModel,
18710
18720
  z_ as KosModelCollectionProvider,
18711
- Ge as KosModelContainer,
18721
+ Ye as KosModelContainer,
18712
18722
  qo as KosModelContext,
18713
18723
  L as KosModelEvents,
18714
18724
  lr as KosModelFactory,
@@ -18716,7 +18726,7 @@ export {
18716
18726
  Jv as KosModelLoaderDisplay,
18717
18727
  lp as KosModelManager,
18718
18728
  Kv as KosModelProvider,
18719
- Se as KosModelRegistrationFactory,
18729
+ Ce as KosModelRegistrationFactory,
18720
18730
  ji as KosModelRegistry,
18721
18731
  y as KosModelState,
18722
18732
  La as KosModelSymbol,
@@ -18755,7 +18765,7 @@ export {
18755
18765
  Rl as NetworkInterface,
18756
18766
  Br as NetworkInterfaceContainer,
18757
18767
  E_ as NetworkInterfaceServices,
18758
- je as ObservableData,
18768
+ Be as ObservableData,
18759
18769
  Jr as OptionsRequired,
18760
18770
  Kn as Ota,
18761
18771
  aT as OutsideAlerter,
@@ -18778,7 +18788,7 @@ export {
18778
18788
  ra as STATUS,
18779
18789
  he as ServiceFactory,
18780
18790
  Rt as ServiceRequestHandlers,
18781
- Re as SingletonKosModelRegistrationFactory,
18791
+ ke as SingletonKosModelRegistrationFactory,
18782
18792
  Gn as SoftwareInfo,
18783
18793
  au as SoftwareInfoContext,
18784
18794
  Q_ as SoftwareInfoProvider,
@@ -18816,7 +18826,7 @@ export {
18816
18826
  Ua as TroubleAwareSetup,
18817
18827
  $s as TroubleContainer,
18818
18828
  f_ as TroubleServices,
18819
- Ee as Troubles,
18829
+ _e as Troubles,
18820
18830
  Kl as UsbUpdate,
18821
18831
  zr as UsbUpdateContainer,
18822
18832
  T_ as UsbUpdateServices,
@@ -18867,7 +18877,7 @@ export {
18867
18877
  Wu as debounce,
18868
18878
  Vd as del,
18869
18879
  Ig as deleteFuture,
18870
- Ue as destroyKosModel,
18880
+ je as destroyKosModel,
18871
18881
  Wp as evaluateScopes,
18872
18882
  Xh as executeChildrenModelLifecycle,
18873
18883
  Ks as executeDependentModelLifecycle,
@@ -18891,7 +18901,7 @@ export {
18891
18901
  wT as getFormattedDate,
18892
18902
  MT as getFormattedMonth,
18893
18903
  du as getFormattedMonthsArray,
18894
- Ce as getFormattedYear,
18904
+ De as getFormattedYear,
18895
18905
  Uw as getFormattedYearsArray,
18896
18906
  a_ as getFutures,
18897
18907
  Gd as getHttpRouteHandlers,
@@ -18899,7 +18909,7 @@ export {
18899
18909
  fb as getKosLocalizationDescriptor,
18900
18910
  ad as getKosMessageLogging,
18901
18911
  nh as getKosModel,
18902
- Be as getKosModelSync,
18912
+ He as getKosModelSync,
18903
18913
  vE as getKosModelType,
18904
18914
  Np as getKosSessionKey,
18905
18915
  rr as getLastDayOfMonth,
@@ -18909,7 +18919,7 @@ export {
18909
18919
  ii as getMessageBody,
18910
18920
  Fw as getMonthsArray,
18911
18921
  EE as getObservableCompanions,
18912
- Oe as getQueryParams,
18922
+ Se as getQueryParams,
18913
18923
  UE as getServiceResponse,
18914
18924
  e_ as getStartedApps,
18915
18925
  hb as getTranslations,
@@ -18929,7 +18939,7 @@ export {
18929
18939
  dr as isKosDataModel,
18930
18940
  Ha as isKosExecutionContext,
18931
18941
  JM as isKosLoggingEnabled,
18932
- Ae as isKosModel,
18942
+ Re as isKosModel,
18933
18943
  Za as isKosModelContainer,
18934
18944
  Fn as isKosModelReady,
18935
18945
  Ia as isLeapYear,
@@ -18940,7 +18950,7 @@ export {
18940
18950
  sr as isValidDate,
18941
18951
  oe as kosAction,
18942
18952
  ee as kosAutoEffect,
18943
- Ve as kosChild,
18953
+ Ge as kosChild,
18944
18954
  rE as kosCompanion,
18945
18955
  jT as kosComponent,
18946
18956
  oc as kosComputed,
@@ -18950,7 +18960,7 @@ export {
18950
18960
  nE as kosContext,
18951
18961
  ks as kosDependency,
18952
18962
  zp as kosEffect,
18953
- Le as kosFetch,
18963
+ Fe as kosFetch,
18954
18964
  tu as kosFuture,
18955
18965
  oE as kosFutureAware,
18956
18966
  uE as kosLogger,