@kosdev-code/kos-ui-sdk 0.1.0-dev.5691 → 0.1.0-dev.5693

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,21 +2,21 @@ var Du = Object.defineProperty;
2
2
  var xu = (t, e, s) => e in t ? Du(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
3
  var l = (t, e, s) => (xu(t, typeof e != "symbol" ? e + "" : e, s), s);
4
4
  import C from "loglevel";
5
- import { makeAutoObservable as De, observable as te, makeObservable as co, action as lo, createAtom as Au, autorun as Xt, runInAction as Z, observe as ca, isComputedProp as Pu, reaction as Jt, when as Ns, ObservableMap as uo, computed as la, isObservable as Ru } from "mobx";
5
+ import { makeAutoObservable as De, observable as te, makeObservable as co, action as lo, createAtom as Au, autorun as Xt, runInAction as Z, observe as la, isComputedProp as Pu, reaction as Jt, when as Ns, ObservableMap as uo, computed as ua, isObservable as Ru } from "mobx";
6
6
  import { makeAutoObservable as g$, makeObservable as m$ } from "mobx";
7
7
  import { createMachine as _s, invoke as Le, state as X, transition as x, action as V, interpret as Ts, immediate as Nt } from "robot3";
8
8
  import { format as gt, parseISO as ku } from "date-fns";
9
9
  import { jsx as w, jsxs as $s, Fragment as Lu } from "@emotion/react/jsx-runtime";
10
10
  import ho from "@emotion/styled";
11
- import { createPortal as ua } from "react-dom";
11
+ import { createPortal as da } from "react-dom";
12
12
  import { keyframes as Fu, css as Rt } from "@emotion/react";
13
13
  import _t, { createContext as Us, useContext as bt, useState as E, useCallback as re, useMemo as Y, Suspense as Nu, useEffect as S, useRef as mt, useReducer as Uu } from "react";
14
- import { observer as da } from "mobx-react-lite";
14
+ import { observer as ha } from "mobx-react-lite";
15
15
  import { observer as b$ } from "mobx-react-lite";
16
16
  import { useGesture as ju } from "@use-gesture/react";
17
- const fo = "method", Bu = "topic", js = "url", Qr = "request-id", po = "response-id", ha = "status", nt = "dst-addr", Hu = "src-addr", We = "type", fa = "ordered", pa = "tracker", qu = "Content-Type", zu = "Cache-Control", Vu = "requestId", Ku = process.env.KOS_LOGIN_URL || "http://localhost", Gu = process.env.KOS_APP_PORT || "8080", uM = `${Ku}:${Gu}`, Bn = "{MODEL_ID}";
17
+ const fo = "method", Bu = "topic", js = "url", Qr = "request-id", po = "response-id", fa = "status", nt = "dst-addr", Hu = "src-addr", We = "type", pa = "ordered", ga = "tracker", qu = "Content-Type", zu = "Cache-Control", Vu = "requestId", Ku = process.env.KOS_LOGIN_URL || "http://localhost", Gu = process.env.KOS_APP_PORT || "8080", uM = `${Ku}:${Gu}`, Bn = "{MODEL_ID}";
18
18
  var Zr = /* @__PURE__ */ ((t) => (t.SEND = "/ws/log/msg/send", t.RECEIVED = "/ws/log/msg/receive", t))(Zr || {}), Yu = /* @__PURE__ */ ((t) => (t.MSG_RECEIVE = "/mock/msg/receive", t))(Yu || {});
19
- const ga = "/kos/model/ready/";
19
+ const ma = "/kos/model/ready/";
20
20
  C.info("Initializing event bus");
21
21
  globalThis.kos = globalThis.kos || {};
22
22
  globalThis.kos.subscriptions = globalThis.kos.subscriptions || {};
@@ -62,7 +62,7 @@ function H(t, e, s = {}) {
62
62
  function Qu() {
63
63
  C.warn("Resetting event bus"), Object.keys(K).forEach((t) => delete K[t]);
64
64
  }
65
- function ma(t, e) {
65
+ function ya(t, e) {
66
66
  const s = O(t, (r) => {
67
67
  s.unsubscribe(), e(r);
68
68
  });
@@ -71,7 +71,7 @@ function ma(t, e) {
71
71
  function mo(t, e) {
72
72
  return new Promise((s, r) => {
73
73
  let n = null;
74
- const o = ma(t, (i) => {
74
+ const o = ya(t, (i) => {
75
75
  n && clearTimeout(n), s(i);
76
76
  });
77
77
  e && (n = setTimeout(() => {
@@ -82,7 +82,7 @@ function mo(t, e) {
82
82
  const dM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83
83
  __proto__: null,
84
84
  hasEventSubscriptions: go,
85
- once: ma,
85
+ once: ya,
86
86
  publish: H,
87
87
  reset: Qu,
88
88
  subscribe: O,
@@ -105,13 +105,13 @@ function Jr(t, e) {
105
105
  }, e));
106
106
  });
107
107
  }
108
- function ya(t, e) {
108
+ function ba(t, e) {
109
109
  const s = t.map(
110
110
  (r) => Jr(r, e)
111
111
  );
112
112
  return Promise.all(s);
113
113
  }
114
- function ba(t, e) {
114
+ function va(t, e) {
115
115
  return new Promise((s, r) => {
116
116
  const n = [];
117
117
  let o = null, i = !1;
@@ -130,12 +130,12 @@ function ba(t, e) {
130
130
  }, e));
131
131
  });
132
132
  }
133
- function va(t, e, s) {
133
+ function wa(t, e, s) {
134
134
  return O(t, (n) => {
135
135
  n && e(n) && s(n);
136
136
  }).unsubscribe;
137
137
  }
138
- function wa(t, e, s) {
138
+ function Ea(t, e, s) {
139
139
  return O(t, (n) => {
140
140
  if (n) {
141
141
  const o = e(n);
@@ -143,7 +143,7 @@ function wa(t, e, s) {
143
143
  }
144
144
  }).unsubscribe;
145
145
  }
146
- function Ea(t, e, s) {
146
+ function Ma(t, e, s) {
147
147
  let r = null;
148
148
  const n = O(t, (o) => {
149
149
  r && clearTimeout(r), r = setTimeout(() => {
@@ -154,7 +154,7 @@ function Ea(t, e, s) {
154
154
  r && clearTimeout(r), n.unsubscribe();
155
155
  };
156
156
  }
157
- function Ma(t, e, s) {
157
+ function _a(t, e, s) {
158
158
  let r = 0, n = null;
159
159
  const o = O(t, (i) => {
160
160
  const a = Date.now(), c = a - r;
@@ -166,7 +166,7 @@ function Ma(t, e, s) {
166
166
  n && clearTimeout(n), o.unsubscribe();
167
167
  };
168
168
  }
169
- function _a(t, e, s) {
169
+ function Ta(t, e, s) {
170
170
  let r = [], n = null;
171
171
  const o = () => {
172
172
  r.length > 0 && (s([...r]), r = []);
@@ -187,7 +187,7 @@ function yo(t, e = 1) {
187
187
  subscribe: (r) => (s.forEach((n) => r(n)), O(t, r))
188
188
  };
189
189
  }
190
- function Ta(t, e) {
190
+ function $a(t, e) {
191
191
  const s = t.map(
192
192
  (r) => O(r, (n) => {
193
193
  n && e(r, n);
@@ -197,7 +197,7 @@ function Ta(t, e) {
197
197
  s.forEach((r) => r.unsubscribe());
198
198
  };
199
199
  }
200
- function $a(t, e) {
200
+ function Sa(t, e) {
201
201
  let s = t;
202
202
  const r = [], n = /* @__PURE__ */ new Set();
203
203
  return Object.values(e).forEach((o) => {
@@ -219,11 +219,11 @@ function $a(t, e) {
219
219
  }
220
220
  };
221
221
  }
222
- function Sa(t, e, s, r) {
222
+ function Oa(t, e, s, r) {
223
223
  const n = Jr(e, r);
224
224
  return H(t, s), n;
225
225
  }
226
- async function* Oa(t) {
226
+ async function* Ia(t) {
227
227
  const e = [], s = [], r = O(t, (n) => {
228
228
  n && (s.length > 0 ? s.shift()(n) : e.push(n));
229
229
  });
@@ -239,35 +239,35 @@ async function* Oa(t) {
239
239
  const Zu = {
240
240
  once: Xr,
241
241
  waitFor: Jr,
242
- waitForAll: ya,
243
- race: ba,
244
- filter: va,
245
- map: wa,
246
- debounce: Ea,
247
- throttle: Ma,
248
- buffer: _a,
242
+ waitForAll: ba,
243
+ race: va,
244
+ filter: wa,
245
+ map: Ea,
246
+ debounce: Ma,
247
+ throttle: _a,
248
+ buffer: Ta,
249
249
  replay: yo,
250
- merge: Ta,
251
- stateMachine: $a,
252
- request: Sa,
253
- eventIterator: Oa
250
+ merge: $a,
251
+ stateMachine: Sa,
252
+ request: Oa,
253
+ eventIterator: Ia
254
254
  }, hM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
255
255
  __proto__: null,
256
256
  EventBusFunctional: Zu,
257
- buffer: _a,
258
- debounce: Ea,
259
- eventIterator: Oa,
260
- filter: va,
261
- map: wa,
262
- merge: Ta,
257
+ buffer: Ta,
258
+ debounce: Ma,
259
+ eventIterator: Ia,
260
+ filter: wa,
261
+ map: Ea,
262
+ merge: $a,
263
263
  once: Xr,
264
- race: ba,
264
+ race: va,
265
265
  replay: yo,
266
- request: Sa,
267
- stateMachine: $a,
268
- throttle: Ma,
266
+ request: Oa,
267
+ stateMachine: Sa,
268
+ throttle: _a,
269
269
  waitFor: Jr,
270
- waitForAll: ya
270
+ waitForAll: ba
271
271
  }, Symbol.toStringTag, { value: "Module" }));
272
272
  async function en(t, e) {
273
273
  const { getCurrentState: s, transformState: r, shouldUseFetchedState: n, timeout: o } = e, i = mo(t, o), a = await s(), c = r ? r(a) : a;
@@ -279,7 +279,7 @@ async function en(t, e) {
279
279
  })
280
280
  ]);
281
281
  }
282
- function Ia(t, e, s) {
282
+ function Ca(t, e, s) {
283
283
  const { getCurrentState: r, transformState: n } = s;
284
284
  let o = !1;
285
285
  const i = O(t, (a) => {
@@ -292,7 +292,7 @@ function Ia(t, e, s) {
292
292
  console.error("Failed to fetch initial state:", a);
293
293
  }), i.unsubscribe;
294
294
  }
295
- function Ca(t, e) {
295
+ function Da(t, e) {
296
296
  let s;
297
297
  const r = /* @__PURE__ */ new Set(), n = async () => {
298
298
  try {
@@ -345,7 +345,7 @@ async function bo(t, e) {
345
345
  ), u = await Promise.all(c);
346
346
  return u[u.length - 1];
347
347
  }
348
- function Da(t, e, s) {
348
+ function xa(t, e, s) {
349
349
  const {
350
350
  fetchMissedEvents: r,
351
351
  checkInterval: n = 3e4,
@@ -377,7 +377,7 @@ function Da(t, e, s) {
377
377
  a.unsubscribe(), clearInterval(c);
378
378
  };
379
379
  }
380
- function xa(t) {
380
+ function Aa(t) {
381
381
  const {
382
382
  connectEvent: e,
383
383
  disconnectEvent: s,
@@ -431,18 +431,18 @@ function xa(t) {
431
431
  }
432
432
  const Xu = {
433
433
  waitForOrGetState: en,
434
- subscribeWithInitialState: Ia,
435
- createStatefulEventStream: Ca,
434
+ subscribeWithInitialState: Ca,
435
+ createStatefulEventStream: Da,
436
436
  waitForAllWithState: bo,
437
- createResilientEventHandler: Da,
438
- createConnectionStateManager: xa
437
+ createResilientEventHandler: xa,
438
+ createConnectionStateManager: Aa
439
439
  }, fM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
440
440
  __proto__: null,
441
441
  EventBusState: Xu,
442
- createConnectionStateManager: xa,
443
- createResilientEventHandler: Da,
444
- createStatefulEventStream: Ca,
445
- subscribeWithInitialState: Ia,
442
+ createConnectionStateManager: Aa,
443
+ createResilientEventHandler: xa,
444
+ createStatefulEventStream: Da,
445
+ subscribeWithInitialState: Ca,
446
446
  waitForAllWithState: bo,
447
447
  waitForOrGetState: en
448
448
  }, Symbol.toStringTag, { value: "Module" })), pM = (t, e = 0) => {
@@ -459,7 +459,7 @@ const Xu = {
459
459
  toString: () => `${i} ${a}`
460
460
  };
461
461
  };
462
- function Aa(t) {
462
+ function Pa(t) {
463
463
  let e = "pending", s;
464
464
  const r = t.then(
465
465
  (o) => {
@@ -486,16 +486,16 @@ const xe = (t = null) => (t || window.location.search.replace("?", "")).split("&
486
486
  }).reduce((e, [s, r]) => (e[s] = r, e), {}), gM = "studio.enable.releases", Ju = "studio.tools.preview", mM = "studio.relax.store.validation", ed = "studio.log.debug", td = "studio.log.info", sd = {
487
487
  profiles: [Ju]
488
488
  };
489
- var aa;
490
- const rd = ((aa = globalThis.getKosConfig) == null ? void 0 : aa.call(globalThis)) || JSON.stringify(sd), Pa = JSON.parse(rd);
491
- globalThis.kosConfig = Pa;
492
- const Ra = Pa, nd = () => Ra.profiles || [], si = (t) => nd().includes(t), yM = () => Ra.logging || !1, od = () => {
493
- const t = si(ed), e = si(td);
489
+ var ca;
490
+ const rd = ((ca = globalThis.getKosConfig) == null ? void 0 : ca.call(globalThis)) || JSON.stringify(sd), Ra = JSON.parse(rd);
491
+ globalThis.kosConfig = Ra;
492
+ const ka = Ra, nd = () => ka.profiles || [], ri = (t) => nd().includes(t), yM = () => ka.logging || !1, od = () => {
493
+ const t = ri(ed), e = ri(td);
494
494
  return t ? "DEBUG" : e ? "INFO" : void 0;
495
495
  }, id = () => {
496
496
  const t = xe(), e = od(), r = t.kosLogLevel ?? e ?? window.kosLogLevel ?? process.env.KOS_LOG_LEVEL;
497
497
  return r || "WARN";
498
- }, ad = () => window.kosMessageLogging || process.env.KOS_MESSAGE_LOGGING === "true", cd = () => window.kosMessageStudioLogging || process.env.KOS_MESSAGE_STUDIO_LOGGING === "true", ka = "ws-log", ld = C.methodFactory, La = ad(), ud = cd();
498
+ }, ad = () => window.kosMessageLogging || process.env.KOS_MESSAGE_LOGGING === "true", cd = () => window.kosMessageStudioLogging || process.env.KOS_MESSAGE_STUDIO_LOGGING === "true", La = "ws-log", ld = C.methodFactory, Fa = ad(), ud = cd();
499
499
  C.methodFactory = function(t, e, s) {
500
500
  const r = ld(t, e, s);
501
501
  return function(...n) {
@@ -503,22 +503,22 @@ C.methodFactory = function(t, e, s) {
503
503
  const o = s ? String(s) : "", i = o ? `[${String(o).substring(o.lastIndexOf(":") + 1)}] | ` : "[root] | ", a = n.map(
504
504
  (u) => typeof u == "object" ? JSON.stringify(u) : String(u)
505
505
  ).join(" ");
506
- r(`${i}${a}`), (c = globalThis == null ? void 0 : globalThis.kosConfig) != null && c.logging && globalThis.kosLog && (s !== ka || La && ud) && globalThis.kosLog(`UI: ${i}${a}`);
506
+ r(`${i}${a}`), (c = globalThis == null ? void 0 : globalThis.kosConfig) != null && c.logging && globalThis.kosLog && (s !== La || Fa && ud) && globalThis.kosLog(`UI: ${i}${a}`);
507
507
  };
508
508
  };
509
- let Fa = id();
510
- C.setLevel(Fa);
509
+ let Na = id();
510
+ C.setLevel(Na);
511
511
  window.setKosLogLevel = (t) => {
512
- Fa = t, C.setLevel(t);
512
+ Na = t, C.setLevel(t);
513
513
  };
514
- const $r = C.getLogger(ka);
514
+ const $r = C.getLogger(La);
515
515
  window.enableKosMessageLog = () => {
516
516
  $r.setLevel(C.levels.INFO);
517
517
  };
518
518
  window.disableKosMessageLog = () => {
519
519
  $r.setLevel(C.levels.ERROR);
520
520
  };
521
- La ? window.enableKosMessageLog() : window.disableKosMessageLog();
521
+ Fa ? window.enableKosMessageLog() : window.disableKosMessageLog();
522
522
  const dd = [
523
523
  "color: black",
524
524
  "display: block",
@@ -565,10 +565,10 @@ const dd = [
565
565
  const e = String(t).replace(/\n/g, "\\n");
566
566
  $r.info(`%c⬇ ${e}`, hd);
567
567
  }
568
- }, ne = Symbol("SubscriptionHandlers"), N = Symbol("DependencyModels"), dr = Symbol("FutureService"), yt = Symbol("ChildModels"), hr = Symbol("ParentModel"), fr = Symbol("LogConfig"), bn = Symbol("ReferenceConfig"), Na = Symbol("KosModelSymbol"), et = Symbol("ModelEffects"), vt = Symbol("CompanionParentModel"), Ua = Symbol("FutureContainerSetup"), ja = Symbol(
568
+ }, ne = Symbol("SubscriptionHandlers"), N = Symbol("DependencyModels"), dr = Symbol("FutureService"), yt = Symbol("ChildModels"), hr = Symbol("ParentModel"), fr = Symbol("LogConfig"), bn = Symbol("ReferenceConfig"), Ua = Symbol("KosModelSymbol"), et = Symbol("ModelEffects"), vt = Symbol("CompanionParentModel"), ja = Symbol("FutureContainerSetup"), Ba = Symbol(
569
569
  "MultipleFutureContainerSetup"
570
- ), pr = Symbol("FutureAliases"), Ba = Symbol("TroubleAwareSetup"), Ha = Symbol("LoggerSetup"), qa = Symbol("ContainerAwareSetup"), Bs = Symbol("StateMachineSetup"), Es = Symbol("StateEntryHandlers"), gr = Symbol("StateExitHandlers"), bM = Symbol("StateActionHandlers"), tn = Symbol("OptionsRequired"), fd = Symbol("KosViewModelSymbol"), za = Symbol("ViewModelConfig"), pd = Symbol("ReloadAwareSetup"), vo = g.createLogger({ group: "decorators", name: "fsm-injection" });
571
- function Va(t) {
570
+ ), pr = Symbol("FutureAliases"), Ha = Symbol("TroubleAwareSetup"), qa = Symbol("LoggerSetup"), za = Symbol("ContainerAwareSetup"), Bs = Symbol("StateMachineSetup"), Es = Symbol("StateEntryHandlers"), gr = Symbol("StateExitHandlers"), bM = Symbol("StateActionHandlers"), tn = Symbol("OptionsRequired"), fd = Symbol("KosViewModelSymbol"), Va = Symbol("ViewModelConfig"), pd = Symbol("ReloadAwareSetup"), vo = g.createLogger({ group: "decorators", name: "fsm-injection" });
571
+ function Ka(t) {
572
572
  const e = t[Bs];
573
573
  if (!e)
574
574
  return;
@@ -778,7 +778,7 @@ function wM(t) {
778
778
  function Nd(t) {
779
779
  return (e) => {
780
780
  const s = t != null && t.legacy ? "_models" : (t == null ? void 0 : t.containerProperty) || "container", r = (t == null ? void 0 : t.includeMethods) !== !1, n = (t == null ? void 0 : t.includeGetters) !== !1, o = (t == null ? void 0 : t.modelsProperty) || "models", i = (t == null ? void 0 : t.containerOptions) || {};
781
- return e.prototype[qa] = {
781
+ return e.prototype[za] = {
782
782
  containerProperty: s,
783
783
  includeMethods: r,
784
784
  includeGetters: n,
@@ -796,13 +796,13 @@ function EM(t, e, s) {
796
796
  };
797
797
  }
798
798
  const Eo = Symbol("KosExecutionContext");
799
- function Ka(t) {
799
+ function Ga(t) {
800
800
  return t && typeof t == "object" && Eo in t;
801
801
  }
802
802
  function MM(t) {
803
803
  return (e) => {
804
804
  const s = (t == null ? void 0 : t.mode) || "full", r = (t == null ? void 0 : t.handlerProperty) || "futureHandler";
805
- return e.prototype[Ua] = {
805
+ return e.prototype[ja] = {
806
806
  mode: s,
807
807
  handlerProperty: r
808
808
  }, e;
@@ -811,7 +811,7 @@ function MM(t) {
811
811
  function _M(t) {
812
812
  return (e) => {
813
813
  const s = (t == null ? void 0 : t.mode) || "full", r = (t == null ? void 0 : t.handlerProperty) || "futureHandler";
814
- return e.prototype[ja] = {
814
+ return e.prototype[Ba] = {
815
815
  mode: s,
816
816
  handlerProperty: r
817
817
  }, e;
@@ -822,7 +822,7 @@ const TM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
822
822
  __proto__: null,
823
823
  DependencyLifecycle: I,
824
824
  DependencyResolutionPolicy: ht
825
- }, Symbol.toStringTag, { value: "Module" })), tt = Symbol("HttpRouteHandlers"), ri = "__httpBrowserRouter";
825
+ }, Symbol.toStringTag, { value: "Module" })), tt = Symbol("HttpRouteHandlers"), ni = "__httpBrowserRouter";
826
826
  function sn(t) {
827
827
  return function(s) {
828
828
  return function(r, n, o) {
@@ -832,7 +832,7 @@ function sn(t) {
832
832
  path: s,
833
833
  handler: n
834
834
  };
835
- return r[tt].push(i), r[N] = r[N] || {}, r[N][ri] || (r[N][ri] = {
835
+ return r[tt].push(i), r[N] = r[N] || {}, r[N][ni] || (r[N][ni] = {
836
836
  modelType: "browser-router-model",
837
837
  // This is the MODEL_TYPE from BrowserRouter
838
838
  lifecycle: I.INIT
@@ -850,7 +850,7 @@ function Bd(t) {
850
850
  const OM = ({ group: t } = { group: "" }) => (e) => {
851
851
  e[fr] = e[fr] || {}, e[fr] = { group: t };
852
852
  };
853
- class Ga {
853
+ class Ya {
854
854
  static create({ modelId: e, modelTypeName: s, component: r }) {
855
855
  const n = [r ?? "kos", s, e].filter(Boolean).join(".");
856
856
  return g.createLogger({ name: n });
@@ -859,20 +859,20 @@ class Ga {
859
859
  function Hd(t) {
860
860
  return (e) => {
861
861
  const s = (t == null ? void 0 : t.loggerProperty) || "logger", r = t == null ? void 0 : t.loggerContext;
862
- e.prototype[Ha] = {
862
+ e.prototype[qa] = {
863
863
  loggerProperty: s,
864
864
  loggerContext: r
865
865
  };
866
866
  const n = () => {
867
867
  var i;
868
- return (i = e.prototype[Na]) == null ? void 0 : i.type;
868
+ return (i = e.prototype[Ua]) == null ? void 0 : i.type;
869
869
  };
870
870
  let o;
871
871
  return Object.defineProperty(e.prototype, s, {
872
872
  get() {
873
873
  if (!o) {
874
874
  const i = n();
875
- o = Ga.create({
875
+ o = Ya.create({
876
876
  modelTypeName: r || i,
877
877
  component: "kos-model"
878
878
  });
@@ -1000,7 +1000,7 @@ function Kd(t, e, s, r) {
1000
1000
  return [t, null];
1001
1001
  }
1002
1002
  }
1003
- const Ut = Symbol("ServiceRequestHandlers"), ni = /* @__PURE__ */ new WeakMap();
1003
+ const Ut = Symbol("ServiceRequestHandlers"), oi = /* @__PURE__ */ new WeakMap();
1004
1004
  function ts(t) {
1005
1005
  return (e, s, r) => {
1006
1006
  var a;
@@ -1015,7 +1015,7 @@ function ts(t) {
1015
1015
  if (e[Ut][i] = o, !t.lifecycle) {
1016
1016
  const c = function(...u) {
1017
1017
  const d = u[u.length - 1], h = async (f) => {
1018
- const p = ni.get(c);
1018
+ const p = oi.get(c);
1019
1019
  if (!p)
1020
1020
  throw new Error("Service request metadata not found for method");
1021
1021
  try {
@@ -1045,7 +1045,7 @@ function ts(t) {
1045
1045
  return [m.message || "Unknown error", null];
1046
1046
  }
1047
1047
  };
1048
- if (Ka(d))
1048
+ if (Ga(d))
1049
1049
  return d.$request = h, n.apply(this, u);
1050
1050
  {
1051
1051
  const f = {
@@ -1055,7 +1055,7 @@ function ts(t) {
1055
1055
  return n.apply(this, [...u, f]);
1056
1056
  }
1057
1057
  };
1058
- ni.set(c, o), r.value = c;
1058
+ oi.set(c, o), r.value = c;
1059
1059
  }
1060
1060
  return r;
1061
1061
  };
@@ -1113,7 +1113,7 @@ function AM(t) {
1113
1113
  function PM(t) {
1114
1114
  return (e) => {
1115
1115
  const s = (t == null ? void 0 : t.pathProperty) || "path";
1116
- return e.prototype[Ba] = {
1116
+ return e.prototype[Ha] = {
1117
1117
  pathProperty: s
1118
1118
  }, e.prototype[N] = e.prototype[N] || {}, e.prototype[N].troubleContainer = {
1119
1119
  modelType: "trouble-container-model",
@@ -1148,7 +1148,7 @@ class Wd {
1148
1148
  l(this, "context");
1149
1149
  l(this, "disposers", /* @__PURE__ */ new Map());
1150
1150
  l(this, "container");
1151
- this.futures = gc.map(/* @__PURE__ */ new Map()), this.context = "", this.defaultContext = s || "", this.container = e, De(this);
1151
+ this.futures = mc.map(/* @__PURE__ */ new Map()), this.context = "", this.defaultContext = s || "", this.container = e, De(this);
1152
1152
  }
1153
1153
  get allFutures() {
1154
1154
  return Array.from(this.futures.values());
@@ -1230,7 +1230,7 @@ const Qd = (t, e) => {
1230
1230
  return t[s] || (t[s] = []), t[s].push(e), t;
1231
1231
  }, Zd = Symbol("KosObservableData"), Je = Symbol("revision");
1232
1232
  var QE;
1233
- class Ya {
1233
+ class Wa {
1234
1234
  constructor() {
1235
1235
  l(this, "map");
1236
1236
  l(this, QE, 1);
@@ -1301,7 +1301,7 @@ class Ya {
1301
1301
  }
1302
1302
  }
1303
1303
  QE = Je;
1304
- Ya.prototype[Zd] = !0;
1304
+ Wa.prototype[Zd] = !0;
1305
1305
  function Xd(t, e) {
1306
1306
  return new Proxy(t, {
1307
1307
  construct: (s, r) => {
@@ -1311,7 +1311,7 @@ function Xd(t, e) {
1311
1311
  });
1312
1312
  }
1313
1313
  const ze = (t) => {
1314
- const e = Xd(Ya, t);
1314
+ const e = Xd(Wa, t);
1315
1315
  return new e(t);
1316
1316
  }, wn = {
1317
1317
  failurePolicy: "throw"
@@ -1327,9 +1327,9 @@ class En extends Error {
1327
1327
  this.name = "ExtensionException", this.extensionId = s, this.extensionType = r, this.cause = n;
1328
1328
  }
1329
1329
  }
1330
- const ue = "canvas-renderer", Jd = "kos.declarative.futureLifecycleWrapper", Mn = /* @__PURE__ */ new Map(), oi = /* @__PURE__ */ new Map(), _n = /* @__PURE__ */ new Map(), Tn = /* @__PURE__ */ new Map(), qs = (t, e) => {
1331
- Wa[t] = e;
1332
- }, Wa = {
1330
+ const ue = "canvas-renderer", Jd = "kos.declarative.futureLifecycleWrapper", Mn = /* @__PURE__ */ new Map(), ii = /* @__PURE__ */ new Map(), _n = /* @__PURE__ */ new Map(), Tn = /* @__PURE__ */ new Map(), qs = (t, e) => {
1331
+ Qa[t] = e;
1332
+ }, Qa = {
1333
1333
  indexExtension: {
1334
1334
  registerIndexExtension: (t, e) => {
1335
1335
  const s = Tn.get(t) || {};
@@ -1339,13 +1339,13 @@ const ue = "canvas-renderer", Jd = "kos.declarative.futureLifecycleWrapper", Mn
1339
1339
  },
1340
1340
  loader: {
1341
1341
  registerLoader: (t, e, s) => {
1342
- oi.set(t, {
1342
+ ii.set(t, {
1343
1343
  loader: e,
1344
1344
  options: { ...wn, ...s }
1345
1345
  });
1346
1346
  },
1347
1347
  executeLoader: async (t, e) => {
1348
- const s = oi.get(t);
1348
+ const s = ii.get(t);
1349
1349
  if (!s)
1350
1350
  return;
1351
1351
  const { loader: r, options: n } = s;
@@ -1420,7 +1420,7 @@ const ue = "canvas-renderer", Jd = "kos.declarative.futureLifecycleWrapper", Mn
1420
1420
  M[ue].register(t, e);
1421
1421
  }
1422
1422
  }
1423
- }, M = Wa, eh = async ({
1423
+ }, M = Qa, eh = async ({
1424
1424
  context: t,
1425
1425
  extension: e
1426
1426
  }) => {
@@ -1471,7 +1471,7 @@ class LM {
1471
1471
  function rh(t, e) {
1472
1472
  return t.length !== e.length ? !1 : t.every((s) => e.includes(s));
1473
1473
  }
1474
- class Qa {
1474
+ class Za {
1475
1475
  constructor({ container: e, key: s }) {
1476
1476
  l(this, "_container");
1477
1477
  l(this, "_map");
@@ -1571,7 +1571,7 @@ class Ze {
1571
1571
  }
1572
1572
  init() {
1573
1573
  Object.keys(this._optionsMap).forEach((e) => {
1574
- const s = this._optionsMap[e], r = new Qa({
1574
+ const s = this._optionsMap[e], r = new Za({
1575
1575
  container: this,
1576
1576
  key: s
1577
1577
  });
@@ -1734,7 +1734,7 @@ class Ze {
1734
1734
  e,
1735
1735
  i,
1736
1736
  n.filter((u) => typeof u == "string")
1737
- ), c = ca(e, i);
1737
+ ), c = la(e, i);
1738
1738
  this._disposerMap.set(
1739
1739
  e.id || "",
1740
1740
  () => [c, ...a].forEach((u) => u())
@@ -1975,7 +1975,7 @@ const Te = async (t) => {
1975
1975
  if (!e)
1976
1976
  throw new Error("Model not found");
1977
1977
  return e.companionModels.data;
1978
- }, ii = (t, e) => {
1978
+ }, ai = (t, e) => {
1979
1979
  const s = T.getInstance().modelManager.getModelById(t);
1980
1980
  if (!s) {
1981
1981
  g.info(`Model not found for id ${t}`);
@@ -2026,9 +2026,9 @@ window.KosRegistry = window.KosRegistry || {
2026
2026
  companionModels: /* @__PURE__ */ new Map(),
2027
2027
  models: /* @__PURE__ */ new Map()
2028
2028
  };
2029
- const ai = window.KosRegistry.coreModels, $n = window.KosRegistry.preloadModels, Sn = window.KosRegistry.companionModels, Qs = window.KosRegistry.models, A = {
2029
+ const ci = window.KosRegistry.coreModels, $n = window.KosRegistry.preloadModels, Sn = window.KosRegistry.companionModels, Qs = window.KosRegistry.models, A = {
2030
2030
  model: {
2031
- registerLegacyModel: (t) => (e, s) => (ai.set(e, s), {
2031
+ registerLegacyModel: (t) => (e, s) => (ci.set(e, s), {
2032
2032
  preload: A.model.preloadModel(t),
2033
2033
  model: A.model.register(t),
2034
2034
  companion: A.companion.register(t),
@@ -2061,7 +2061,7 @@ const ai = window.KosRegistry.coreModels, $n = window.KosRegistry.preloadModels,
2061
2061
  get: (t) => Qs.get(t),
2062
2062
  getAll: () => Array.from(Qs.entries()),
2063
2063
  getPreloadModels: () => $n,
2064
- getLegacyModels: () => Array.from(ai.entries()).reduce((t, [e, s]) => (t[e] = s, t), {})
2064
+ getLegacyModels: () => Array.from(ci.entries()).reduce((t, [e, s]) => (t[e] = s, t), {})
2065
2065
  },
2066
2066
  companion: {
2067
2067
  register: (t) => (e, s) => {
@@ -2077,7 +2077,7 @@ const ai = window.KosRegistry.coreModels, $n = window.KosRegistry.preloadModels,
2077
2077
  getAll: () => Array.from(Sn.entries())
2078
2078
  }
2079
2079
  }, lh = A.model.registerLegacyModel, uh = A.model.register, qM = A.companion.register, zM = A.model.preloadModel, _o = (t) => typeof t.updateModel == "function", On = (t) => t.registration !== void 0 && typeof t.registration == "function";
2080
- class Za {
2080
+ class Xa {
2081
2081
  constructor(e) {
2082
2082
  l(this, "singleton");
2083
2083
  l(this, "type");
@@ -2098,7 +2098,7 @@ class Za {
2098
2098
  A.model.register({})(this.registration()), this.registerRelatedModels();
2099
2099
  }
2100
2100
  }
2101
- class Ae extends Za {
2101
+ class Ae extends Xa {
2102
2102
  constructor(e) {
2103
2103
  super({
2104
2104
  ...e,
@@ -2158,7 +2158,7 @@ class Ae extends Za {
2158
2158
  };
2159
2159
  }
2160
2160
  }
2161
- class Ne extends Za {
2161
+ class Ne extends Xa {
2162
2162
  constructor(e) {
2163
2163
  super({
2164
2164
  ...e,
@@ -2272,7 +2272,7 @@ function fh(t, e) {
2272
2272
  });
2273
2273
  }
2274
2274
  function ph(t) {
2275
- const e = t[Ua];
2275
+ const e = t[ja];
2276
2276
  if (!e)
2277
2277
  return;
2278
2278
  const { mode: s, handlerProperty: r } = e, n = new Mo(t);
@@ -2315,7 +2315,7 @@ function ph(t) {
2315
2315
  });
2316
2316
  }
2317
2317
  function gh(t) {
2318
- const e = t[ja];
2318
+ const e = t[Ba];
2319
2319
  if (!e)
2320
2320
  return;
2321
2321
  const { mode: s, handlerProperty: r } = e, n = new Wd(t);
@@ -2400,7 +2400,7 @@ function gh(t) {
2400
2400
  });
2401
2401
  }
2402
2402
  function mh(t) {
2403
- const e = t[Ba];
2403
+ const e = t[Ha];
2404
2404
  if (!e)
2405
2405
  return;
2406
2406
  const { pathProperty: s } = e;
@@ -2430,7 +2430,7 @@ function mh(t) {
2430
2430
  });
2431
2431
  }
2432
2432
  function yh(t, e) {
2433
- const s = t[qa];
2433
+ const s = t[za];
2434
2434
  if (!s)
2435
2435
  return;
2436
2436
  const {
@@ -2571,21 +2571,21 @@ const Eh = {
2571
2571
  var c;
2572
2572
  const [s, r = {}] = e, n = J.createContext(s);
2573
2573
  dh(t, s, r);
2574
- const i = !!t.prototype[Ha] ? null : g.createLogger({
2574
+ const i = !!t.prototype[qa] ? null : g.createLogger({
2575
2575
  name: t.prototype.modelTypeId,
2576
2576
  group: ((c = t[fr]) == null ? void 0 : c.group) ?? "kos-model"
2577
2577
  }), a = new t(s, r, {
2578
2578
  logger: i,
2579
2579
  kosContext: n
2580
2580
  });
2581
- return bh(a, r), hh(a), ph(a), gh(a), mh(a), yh(a, s), Va(a), vh(a), fh(a, s), wh(a);
2581
+ return bh(a, r), hh(a), ph(a), gh(a), mh(a), yh(a, s), Ka(a), vh(a), fh(a, s), wh(a);
2582
2582
  }
2583
2583
  };
2584
2584
  function R(t) {
2585
2585
  return (e) => {
2586
2586
  var o, i;
2587
2587
  const s = e, r = typeof t == "string" ? { modelTypeId: t, autoRegister: !1 } : { autoRegister: !1, ...t };
2588
- s.prototype.modelTypeId = r.modelTypeId, s.prototype[Na] = !0, (o = s.prototype)[ne] ?? (o[ne] = {}), (i = s.prototype)[N] ?? (i[N] = {}), r.optionsRequired && (s.prototype[tn] = !0), g.ifDebug(() => {
2588
+ s.prototype.modelTypeId = r.modelTypeId, s.prototype[Ua] = !0, (o = s.prototype)[ne] ?? (o[ne] = {}), (i = s.prototype)[N] ?? (i[N] = {}), r.optionsRequired && (s.prototype[tn] = !0), g.ifDebug(() => {
2589
2589
  g.debug(`Registering model with id ${r.modelTypeId}`);
2590
2590
  });
2591
2591
  const n = new Proxy(s, Eh);
@@ -2843,7 +2843,7 @@ function qh(t, e) {
2843
2843
  const { config: r } = s;
2844
2844
  r.initializeAt && r.initializeAt !== I.INIT && console.warn(
2845
2845
  `[kosViewModel] ViewModel "${e}" has @kosStateMachine with initializeAt: ${r.initializeAt}. ViewModels do not have lifecycle phases, so the FSM will initialize immediately. Consider removing initializeAt or using @kosModel if lifecycle-aware FSM initialization is required.`
2846
- ), Va(t);
2846
+ ), Ka(t);
2847
2847
  }
2848
2848
  function zh(t) {
2849
2849
  try {
@@ -2855,7 +2855,7 @@ function zh(t) {
2855
2855
  const Vh = {
2856
2856
  construct(t, e) {
2857
2857
  var a;
2858
- const s = t.prototype[za] || {}, r = s.typeId || t.name, n = `${r}-${++Uh}`, o = new t(...e);
2858
+ const s = t.prototype[Va] || {}, r = s.typeId || t.name, n = `${r}-${++Uh}`, o = new t(...e);
2859
2859
  qh(o, r), Hh(o, r), Object.defineProperty(o, "__viewModelTypeId", {
2860
2860
  value: r,
2861
2861
  writable: !1,
@@ -2877,12 +2877,12 @@ const Vh = {
2877
2877
  function KM(t) {
2878
2878
  return (e) => {
2879
2879
  const s = t || {}, r = s.typeId || e.name;
2880
- e.prototype[fd] = { type: r }, e.prototype[za] = s;
2880
+ e.prototype[fd] = { type: r }, e.prototype[Va] = s;
2881
2881
  const n = new Proxy(e, Vh);
2882
2882
  return Object.defineProperty(n, "name", { value: e.name }), n;
2883
2883
  };
2884
2884
  }
2885
- const Cn = /* @__PURE__ */ new Map(), Xa = {
2885
+ const Cn = /* @__PURE__ */ new Map(), Ja = {
2886
2886
  addToDeletionQueue: (t, e) => {
2887
2887
  const s = Cn.get(t) || [];
2888
2888
  s.push(e), Cn.set(t, s);
@@ -2900,7 +2900,7 @@ class Gh {
2900
2900
  l(this, "_usesCache", /* @__PURE__ */ new Map());
2901
2901
  }
2902
2902
  add(e, s) {
2903
- Xa.cancelDeletion(s);
2903
+ Ja.cancelDeletion(s);
2904
2904
  const r = this._usedByCache.get(s) || [];
2905
2905
  r.includes(e) || r.push(e), this._usedByCache.set(s, r);
2906
2906
  const n = this._usesCache.get(e) || [];
@@ -2926,7 +2926,7 @@ class Gh {
2926
2926
  this._usedByCache.clear(), this._usesCache.clear();
2927
2927
  }
2928
2928
  }
2929
- const ci = g.createLogger({ name: "kos-model-cache" });
2929
+ const li = g.createLogger({ name: "kos-model-cache" });
2930
2930
  class Yh {
2931
2931
  constructor(e = []) {
2932
2932
  l(this, "_modelsById", te.map(/* @__PURE__ */ new Map()));
@@ -2962,7 +2962,7 @@ class Yh {
2962
2962
  this._modelsById.delete(e.modelId), this._toDelete.set(e.modelId, e);
2963
2963
  }
2964
2964
  preload(e) {
2965
- return this._isPreloaded ? (ci.debug("Returning cached preloaded models"), this._preloaded) : (this._preloaded = this.preloadKeys.map((s) => (ci.debug(
2965
+ return this._isPreloaded ? (li.debug("Returning cached preloaded models"), this._preloaded) : (this._preloaded = this.preloadKeys.map((s) => (li.debug(
2966
2966
  `Preloading model: ${typeof s == "string" ? s : s.modelType}`
2967
2967
  ), e(s))).filter((s) => !!s), this._isPreloaded = !0, this._preloaded);
2968
2968
  }
@@ -3012,7 +3012,7 @@ function Wh(t, e) {
3012
3012
  );
3013
3013
  }));
3014
3014
  }
3015
- function li(t, e) {
3015
+ function ui(t, e) {
3016
3016
  console.error("Model instantiation failed", {
3017
3017
  modelType: e.modelType,
3018
3018
  options: e.options,
@@ -3163,10 +3163,10 @@ class Zh {
3163
3163
  }
3164
3164
  }
3165
3165
  function Xh(t, e) {
3166
- return `${ga}${t}${e ? `/${e}` : `/${t}`}`;
3166
+ return `${ma}${t}${e ? `/${e}` : `/${t}`}`;
3167
3167
  }
3168
3168
  function Jh(t) {
3169
- return `${ga}${t}`;
3169
+ return `${ma}${t}`;
3170
3170
  }
3171
3171
  function Dn(t) {
3172
3172
  const e = [];
@@ -3184,8 +3184,8 @@ function Dn(t) {
3184
3184
  }
3185
3185
  });
3186
3186
  }
3187
- const Ja = 5e3, ef = (t) => t.fsm.transitionTo(k.GO_ACTIVE, b.ACTIVE), tf = (t) => t.whenReady(), sf = (t) => t.fsm.transitionTo(k.LOAD, b.LOADED), rf = (t) => t.fsm.transitionTo(k.UNLOAD, b.UNLOADED), nf = (t) => t.fsm.transitionTo(k.INITIALIZE, b.INITIALIZED);
3188
- var ec = /* @__PURE__ */ ((t) => (t.ACTIVE = "active", t.READY = "ready", t.LOAD = "load", t.UNLOAD = "unload", t.INIT = "init", t))(ec || {});
3187
+ const ec = 5e3, ef = (t) => t.fsm.transitionTo(k.GO_ACTIVE, b.ACTIVE), tf = (t) => t.whenReady(), sf = (t) => t.fsm.transitionTo(k.LOAD, b.LOADED), rf = (t) => t.fsm.transitionTo(k.UNLOAD, b.UNLOADED), nf = (t) => t.fsm.transitionTo(k.INITIALIZE, b.INITIALIZED);
3188
+ var tc = /* @__PURE__ */ ((t) => (t.ACTIVE = "active", t.READY = "ready", t.LOAD = "load", t.UNLOAD = "unload", t.INIT = "init", t))(tc || {});
3189
3189
  const xn = {
3190
3190
  active: ef,
3191
3191
  ready: tf,
@@ -3200,7 +3200,7 @@ class of extends Error {
3200
3200
  this.model = r;
3201
3201
  }
3202
3202
  }
3203
- const tc = (t, e, s) => {
3203
+ const sc = (t, e, s) => {
3204
3204
  let r;
3205
3205
  return { promise: new Promise((i, a) => {
3206
3206
  r = setTimeout(() => {
@@ -3216,11 +3216,11 @@ const tc = (t, e, s) => {
3216
3216
  }), cancel: () => {
3217
3217
  r && clearTimeout(r);
3218
3218
  } };
3219
- }, GM = (t) => typeof t.toJSON == "function", br = (t) => t[N] !== void 0, sc = (t) => t.revision !== void 0 && t.index !== void 0, af = (t) => {
3219
+ }, GM = (t) => typeof t.toJSON == "function", br = (t) => t[N] !== void 0, rc = (t) => t.revision !== void 0 && t.index !== void 0, af = (t) => {
3220
3220
  if (t) {
3221
3221
  if (br(t))
3222
3222
  return t;
3223
- if (sc(t))
3223
+ if (rc(t))
3224
3224
  return t.data;
3225
3225
  if (t instanceof Map || t instanceof uo || t instanceof Set)
3226
3226
  return Array.from(t.values()).filter(br);
@@ -3355,8 +3355,8 @@ const tc = (t, e, s) => {
3355
3355
  const d = async (p, m, y) => {
3356
3356
  var v;
3357
3357
  await ((v = p.whenReady) == null ? void 0 : v.call(p)), g.debug(`dependent model ${m} with id ${y} - READY`);
3358
- }, { promise: h, cancel: f } = tc(
3359
- Ja,
3358
+ }, { promise: h, cancel: f } = sc(
3359
+ ec,
3360
3360
  t,
3361
3361
  t.status
3362
3362
  );
@@ -3406,8 +3406,8 @@ const tc = (t, e, s) => {
3406
3406
  var d;
3407
3407
  if (!a.model || !a.status)
3408
3408
  return Promise.resolve();
3409
- const { promise: c, cancel: u } = tc(
3410
- Ja,
3409
+ const { promise: c, cancel: u } = sc(
3410
+ ec,
3411
3411
  a.model,
3412
3412
  a.status
3413
3413
  );
@@ -3599,7 +3599,7 @@ function ff(t, e, s, r) {
3599
3599
  if (!(o.startsWith("_") || typeof t[o] == "function"))
3600
3600
  try {
3601
3601
  const i = t[o];
3602
- br(i) ? n[`[KOS Model] ${o}`] = typeof i.toJSON == "function" ? i.toJSON() : { id: i.id, type: i.constructor.name } : sc(i) ? n[`[KOS Container] ${o}`] = typeof i.toJSON == "function" ? i.toJSON() : ["Container"] : Array.isArray(i) ? n[o] = `[Array(${i.length})]` : typeof i == "object" && i !== null ? n[o] = JSON.parse(JSON.stringify(i)) : n[o] = i;
3602
+ br(i) ? n[`[KOS Model] ${o}`] = typeof i.toJSON == "function" ? i.toJSON() : { id: i.id, type: i.constructor.name } : rc(i) ? n[`[KOS Container] ${o}`] = typeof i.toJSON == "function" ? i.toJSON() : ["Container"] : Array.isArray(i) ? n[o] = `[Array(${i.length})]` : typeof i == "object" && i !== null ? n[o] = JSON.parse(JSON.stringify(i)) : n[o] = i;
3603
3603
  } catch {
3604
3604
  n[o] = "[unreadable]";
3605
3605
  }
@@ -3741,7 +3741,7 @@ const yf = g.createLogger({ name: "model-active-machine" }), bf = (t) => {
3741
3741
  e,
3742
3742
  (r) => yf.debug(r.machine.current)
3743
3743
  ), machine: e };
3744
- }, ui = g.createLogger({ name: "model-online-machine" }), vf = (t) => {
3744
+ }, di = g.createLogger({ name: "model-online-machine" }), vf = (t) => {
3745
3745
  const e = _s(b.OFFLINE, {
3746
3746
  [b.ONLINE]: X(
3747
3747
  x(
@@ -3757,7 +3757,7 @@ const yf = g.createLogger({ name: "model-active-machine" }), bf = (t) => {
3757
3757
  k.GO_ONLINE,
3758
3758
  b.ONLINE,
3759
3759
  V(async () => {
3760
- ui.debug(`Going online with model ${t.modelId}`), await t.online(), t.onlineStatus = b.ONLINE, await t.fsm.transitionTo(
3760
+ di.debug(`Going online with model ${t.modelId}`), await t.online(), t.onlineStatus = b.ONLINE, await t.fsm.transitionTo(
3761
3761
  k.INITIALIZE,
3762
3762
  b.INITIALIZED
3763
3763
  );
@@ -3766,7 +3766,7 @@ const yf = g.createLogger({ name: "model-active-machine" }), bf = (t) => {
3766
3766
  )
3767
3767
  }), s = Ts(
3768
3768
  e,
3769
- (r) => ui.debug(r.machine.current)
3769
+ (r) => di.debug(r.machine.current)
3770
3770
  );
3771
3771
  return { machine: e, service: s };
3772
3772
  }, wf = (t) => {
@@ -3956,8 +3956,8 @@ class _f {
3956
3956
  return [b.ACTIVE, b.INACTIVE].includes(e) ? this.model.activeStatus : this.model.status;
3957
3957
  }
3958
3958
  }
3959
- const rc = "browser-router-model";
3960
- class nc {
3959
+ const nc = "browser-router-model";
3960
+ class oc {
3961
3961
  constructor(e, s) {
3962
3962
  l(this, "logger");
3963
3963
  l(this, "model");
@@ -3984,7 +3984,7 @@ class nc {
3984
3984
  }
3985
3985
  }
3986
3986
  if (e || (e = (s = Ve(
3987
- rc
3987
+ nc
3988
3988
  )) == null ? void 0 : s.model), !e)
3989
3989
  throw this.logger.error(
3990
3990
  "Cannot register HTTP routes: BrowserRouter not found. The HTTP decorators should have auto-injected it, but something went wrong."
@@ -4120,14 +4120,14 @@ class nc {
4120
4120
  function YM(t, e) {
4121
4121
  if (!Hn(t))
4122
4122
  return;
4123
- const s = Ve(rc);
4123
+ const s = Ve(nc);
4124
4124
  if (!(s != null && s.model))
4125
4125
  throw e.error(
4126
4126
  "Cannot register HTTP routes: BrowserRouter not found. Make sure to include BrowserRouter in your model dependencies or create an instance."
4127
4127
  ), new Error(
4128
4128
  "BrowserRouter is required for HTTP route decorators but was not found. Add it as a dependency using @kosDependency or ensure an instance exists."
4129
4129
  );
4130
- new nc(t, e).setRouter(s.model);
4130
+ new oc(t, e).setRouter(s.model);
4131
4131
  }
4132
4132
  class Tf {
4133
4133
  constructor(e) {
@@ -4390,8 +4390,8 @@ const Af = ({
4390
4390
  `, i += `${js}:${t}
4391
4391
  `, i += `${Vu}:${e}
4392
4392
  `, r && (i += `${nt}:${r}
4393
- `), n && (i += `${fa}:true
4394
- `), o && (i += `${pa}:${o}
4393
+ `), n && (i += `${pa}:true
4394
+ `), o && (i += `${ga}:${o}
4395
4395
  `), i += `${We}:fos.http.request
4396
4396
  `, i += `
4397
4397
  `, i;
@@ -4410,8 +4410,8 @@ const Af = ({
4410
4410
  return c += `${js}:${t}
4411
4411
  `, c += `${Qr}:${e}
4412
4412
  `, r && (c += `${nt}:${r}
4413
- `), n && (c += `${fa}:true
4414
- `), o && (c += `${pa}:${o}
4413
+ `), n && (c += `${pa}:true
4414
+ `), o && (c += `${ga}:${o}
4415
4415
  `), a && Object.keys(a).forEach((u) => {
4416
4416
  c += `${u}:${a[u]}
4417
4417
  `;
@@ -4519,7 +4519,7 @@ const Ff = ({
4519
4519
  `;
4520
4520
  return n += `${js}:${t}
4521
4521
  `, e && (n += `${po}:${e}
4522
- `), n += `${ha}:${s}
4522
+ `), n += `${fa}:${s}
4523
4523
  `, n += `${nt}:${r}
4524
4524
  `, n += `${We}:kos.studio.response
4525
4525
  `, n += `
@@ -4556,7 +4556,7 @@ const Ff = ({
4556
4556
  return o += `${nt}:${e}
4557
4557
  `, o += `${Hu}:${r}
4558
4558
  `, o += `${We}:${s ?? "kos.message.request"}
4559
- `, o += `${ha}:${n}
4559
+ `, o += `${fa}:${n}
4560
4560
  `, o += `${qu}:application/json
4561
4561
  `, o += `${zu}:no-cache
4562
4562
  `, o += `
@@ -4601,7 +4601,7 @@ const Ff = ({
4601
4601
  JSON.stringify(s)
4602
4602
  ), n = T.getInstance().transport.socket;
4603
4603
  n ? n.socket.send(r) : g.error("socket transport is not initialized");
4604
- }, di = (t, e) => {
4604
+ }, hi = (t, e) => {
4605
4605
  try {
4606
4606
  return e ? t.body ?? t : JSON.parse(t.body);
4607
4607
  } catch {
@@ -4699,8 +4699,8 @@ const Ff = ({
4699
4699
  if (L === "multipart/form-data" && typeof B == "string")
4700
4700
  try {
4701
4701
  const Pe = JSON.parse(B);
4702
- Pe.fields && Object.entries(Pe.fields).forEach(([ei, ti]) => {
4703
- ie.append(ei, ti);
4702
+ Pe.fields && Object.entries(Pe.fields).forEach(([ti, si]) => {
4703
+ ie.append(ti, si);
4704
4704
  }), Pe.files && at.warn(
4705
4705
  "File reconstruction in FormData not fully implemented"
4706
4706
  );
@@ -4741,7 +4741,7 @@ if (process.env.KOS_MOCK_FETCH === "true") {
4741
4741
  const t = process.env.KOS_PORT || "9999";
4742
4742
  Ue = fetch, we = `http://localhost:${t}`;
4743
4743
  }
4744
- const Zf = () => ({ isMock: !1, URL: we }), Js = g.createLogger({ name: "kos-service-request" }), hi = "errUnknown";
4744
+ const Zf = () => ({ isMock: !1, URL: we }), Js = g.createLogger({ name: "kos-service-request" }), fi = "errUnknown";
4745
4745
  async function er(t, e, s, r, n) {
4746
4746
  const o = r != null && r.path ? Object.keys(r.path).reduce(
4747
4747
  (u, d) => String(u).replace(`{${d}}`, r == null ? void 0 : r.path[d]),
@@ -4760,7 +4760,7 @@ async function er(t, e, s, r, n) {
4760
4760
  n && (c.body = JSON.stringify(n));
4761
4761
  try {
4762
4762
  const u = await Ue(a, c);
4763
- return u.status < 200 || u.status >= 400 ? [`${u.statusText || hi}`, null] : [null, (await u.json()).data];
4763
+ return u.status < 200 || u.status >= 400 ? [`${u.statusText || fi}`, null] : [null, (await u.json()).data];
4764
4764
  } catch (u) {
4765
4765
  if (u instanceof DOMException) {
4766
4766
  if (u.name === "TimeoutError")
@@ -4768,7 +4768,7 @@ async function er(t, e, s, r, n) {
4768
4768
  if (u.name === "AbortError")
4769
4769
  return Js.debug(`Request aborted: ${a}`), ["Request aborted", null];
4770
4770
  }
4771
- return Js.error(`Unexpected error during fetch: ${u}`), [u instanceof Error ? u.message : hi, null];
4771
+ return Js.error(`Unexpected error during fetch: ${u}`), [u instanceof Error ? u.message : fi, null];
4772
4772
  }
4773
4773
  }
4774
4774
  function ot() {
@@ -4836,16 +4836,16 @@ function np(t) {
4836
4836
  function tr(t, e) {
4837
4837
  return `${e.toUpperCase()}:${t}`;
4838
4838
  }
4839
- function oc(t) {
4839
+ function ic(t) {
4840
4840
  return t == null;
4841
4841
  }
4842
4842
  function op(t, e, s, r) {
4843
- r && oc(t) && ut.warn(
4843
+ r && ic(t) && ut.warn(
4844
4844
  `Required field '${e}' is missing in response for ${s}`
4845
4845
  );
4846
4846
  }
4847
4847
  function ip(t, e) {
4848
- return oc(t) && e !== void 0 ? e : t;
4848
+ return ic(t) && e !== void 0 ? e : t;
4849
4849
  }
4850
4850
  class ap {
4851
4851
  constructor(e, s) {
@@ -5199,7 +5199,7 @@ class cp {
5199
5199
  return this;
5200
5200
  }
5201
5201
  }
5202
- function fi(t) {
5202
+ function pi(t) {
5203
5203
  return new cp(t);
5204
5204
  }
5205
5205
  class lp {
@@ -5364,7 +5364,7 @@ class up extends WebSocket {
5364
5364
  }
5365
5365
  }
5366
5366
  var ke = /* @__PURE__ */ ((t) => (t.CONNECTED = "websocket.connected", t.DISCONNECTED = "websocket.disconnected", t.ERROR = "websocket.error", t.MAX_RETRIES_EXCEEDED = "websocket.max_retries_exceeded", t.RELOAD = "websocket.reload", t))(ke || {});
5367
- function pi(t) {
5367
+ function gi(t) {
5368
5368
  const e = `
5369
5369
 
5370
5370
  `, s = `
@@ -5432,7 +5432,7 @@ const Se = class Se {
5432
5432
  }
5433
5433
  processMessageEvent(e) {
5434
5434
  const { data: s } = e;
5435
- return pi(s);
5435
+ return gi(s);
5436
5436
  }
5437
5437
  onMessage(e) {
5438
5438
  try {
@@ -5554,7 +5554,7 @@ alias:${this.alias}
5554
5554
  send(e) {
5555
5555
  var s, r;
5556
5556
  if (g.wsSend(e), window.kosLogEvents) {
5557
- const { headers: n, body: o } = pi(String(e));
5557
+ const { headers: n, body: o } = gi(String(e));
5558
5558
  H(Zr.SEND, { headers: n, body: o });
5559
5559
  }
5560
5560
  if (window.kosTopicIntercept && window.kosEnableMocks) {
@@ -5679,7 +5679,7 @@ class gp extends Ss {
5679
5679
  }
5680
5680
  window.kosEnableMocks = process.env.KOS_MOCK_WS === "true";
5681
5681
  window.kosLogEvents = process.env.KOS_LOG_WS === "true";
5682
- class gi {
5682
+ class mi {
5683
5683
  static build({
5684
5684
  host: e,
5685
5685
  port: s,
@@ -5717,9 +5717,9 @@ class gi {
5717
5717
  }
5718
5718
  const mp = xe();
5719
5719
  mp.fos && (window.kosUseFos = !0);
5720
- const mi = process.env.KOS_FOS_PORT;
5720
+ const yi = process.env.KOS_FOS_PORT;
5721
5721
  window.kosUseFos = !!(window.kosUseFos || process.env.KOS_USE_FOS === "true");
5722
- window.kosFosPort = mi ? parseInt(mi) : 0;
5722
+ window.kosFosPort = yi ? parseInt(yi) : 0;
5723
5723
  const ct = C.getLogger("web-socket-transport");
5724
5724
  var yp = /* @__PURE__ */ ((t) => (t.NOT_INITIALIZED = "not_initialized", t.INITIALIZED = "initialized", t.OFFLINE = "OFFLINE", t.ONLINE = "ONLINE", t))(yp || {});
5725
5725
  class Os {
@@ -5750,7 +5750,7 @@ class Os {
5750
5750
  socket: te,
5751
5751
  fosSocket: te,
5752
5752
  init: lo,
5753
- connectionEstablished: la
5753
+ connectionEstablished: ua
5754
5754
  }), Jt(
5755
5755
  () => this.connectionEstablished,
5756
5756
  (u) => {
@@ -5766,12 +5766,12 @@ class Os {
5766
5766
  }
5767
5767
  init() {
5768
5768
  var e, s;
5769
- if (g.warn(`Initializing WebSocketTransport on ${this.host}:${this.port}`), this.useFosTransport && (this.fosSocket = gi.build({
5769
+ if (g.warn(`Initializing WebSocketTransport on ${this.host}:${this.port}`), this.useFosTransport && (this.fosSocket = mi.build({
5770
5770
  host: this.host,
5771
5771
  port: this.fosPort || 9854,
5772
5772
  protocol: this.protocol,
5773
5773
  fos: !0
5774
- })), this.socket = gi.build({
5774
+ })), this.socket = mi.build({
5775
5775
  host: this.host,
5776
5776
  port: this.port,
5777
5777
  protocol: this.protocol,
@@ -5987,7 +5987,7 @@ class bp {
5987
5987
  `Baseline not ready for ${e}. Queuing message.`
5988
5988
  );
5989
5989
  const d = () => {
5990
- const h = di(r, s.skipParse), f = s.transform(h);
5990
+ const h = hi(r, s.skipParse), f = s.transform(h);
5991
5991
  if (a && s.condition(f, this.modelData, r))
5992
5992
  return this.callHandlerWithWildcard(
5993
5993
  s,
@@ -5998,7 +5998,7 @@ class bp {
5998
5998
  };
5999
5999
  this.offlineQueue.enqueue(d, e, r);
6000
6000
  } else {
6001
- const d = di(r, s.skipParse), h = s.transform(d);
6001
+ const d = hi(r, s.skipParse), h = s.transform(d);
6002
6002
  if (a && s.condition(h, this.modelData, r))
6003
6003
  return this.callHandlerWithWildcard(
6004
6004
  s,
@@ -6081,9 +6081,9 @@ class bp {
6081
6081
  fos: e.fos,
6082
6082
  bridge: e.bridge,
6083
6083
  destinationAddress: a
6084
- }), i = fi(s);
6084
+ }), i = pi(s);
6085
6085
  } else
6086
- i = fi(s);
6086
+ i = pi(s);
6087
6087
  return (async () => {
6088
6088
  try {
6089
6089
  for await (const a of n.processEvents(
@@ -6265,7 +6265,7 @@ function Tp(t, e) {
6265
6265
  function $p(t) {
6266
6266
  return !t.expiresAt || Date.now() < t.expiresAt;
6267
6267
  }
6268
- function yi(t, e, s, r) {
6268
+ function bi(t, e, s, r) {
6269
6269
  const n = setTimeout(() => r(t), e);
6270
6270
  s.set(t, n);
6271
6271
  }
@@ -6394,7 +6394,7 @@ class Sp {
6394
6394
  * Zone 3: Reset cleanup timer for a cached response
6395
6395
  */
6396
6396
  resetCleanupTimer(e, s) {
6397
- this.clearTimerIfExists(e), yi(e, s, this.cleanupTimers, (r) => this.delete(r));
6397
+ this.clearTimerIfExists(e), bi(e, s, this.cleanupTimers, (r) => this.delete(r));
6398
6398
  }
6399
6399
  /**
6400
6400
  * Clear cleanup timer if it exists
@@ -6438,7 +6438,7 @@ class Sp {
6438
6438
  case he.IMMEDIATE:
6439
6439
  break;
6440
6440
  case he.TTL:
6441
- s.ttl && yi(
6441
+ s.ttl && bi(
6442
6442
  e,
6443
6443
  s.ttl,
6444
6444
  this.cleanupTimers,
@@ -6505,7 +6505,7 @@ class Sp {
6505
6505
  }
6506
6506
  class Op {
6507
6507
  static createAll(e) {
6508
- const { modelId: s, modelTypeName: r, modelData: n } = e, o = Ga.create({
6508
+ const { modelId: s, modelTypeName: r, modelData: n } = e, o = Ya.create({
6509
6509
  modelId: s,
6510
6510
  modelTypeName: r
6511
6511
  }), i = new _f(e, Ct(o, "fsm")), a = new Tf(
@@ -6537,7 +6537,7 @@ class Op {
6537
6537
  Ct(o, "online")
6538
6538
  );
6539
6539
  }
6540
- return Ep(n) && (h.httpRouteManager = new nc(
6540
+ return Ep(n) && (h.httpRouteManager = new oc(
6541
6541
  n,
6542
6542
  Ct(o, "http-routes")
6543
6543
  )), Mp(n) && (h.serviceRequestManager = new ap(
@@ -6713,7 +6713,7 @@ class Cp {
6713
6713
  try {
6714
6714
  F.debug(`readying model ${this.modelTypeName} with id ${this.modelId}`), await Xs(this, I.READY), await df(
6715
6715
  this,
6716
- ec.READY,
6716
+ tc.READY,
6717
6717
  I.READY
6718
6718
  ), await ((e = this.serviceRequestManager) == null ? void 0 : e.executeForLifecycle(
6719
6719
  I.READY
@@ -6891,7 +6891,7 @@ class Dp {
6891
6891
  const h = new Error(
6892
6892
  `Model ${e} requires options but none were provided`
6893
6893
  );
6894
- throw li(h, {
6894
+ throw ui(h, {
6895
6895
  modelType: e,
6896
6896
  options: r,
6897
6897
  registryId: this.registry.alias || "unknown"
@@ -6911,7 +6911,7 @@ class Dp {
6911
6911
  });
6912
6912
  this.cache.addModel(f), this._createCompanionModels(f, r);
6913
6913
  } catch (h) {
6914
- throw li(h, {
6914
+ throw ui(h, {
6915
6915
  modelType: e,
6916
6916
  options: r,
6917
6917
  registryId: this.registry.alias || "unknown"
@@ -6983,7 +6983,7 @@ let xp = class {
6983
6983
  return zs(e);
6984
6984
  }
6985
6985
  };
6986
- const Ap = 10, bi = g.createLogger({ name: "kos-model-manager" });
6986
+ const Ap = 10, vi = g.createLogger({ name: "kos-model-manager" });
6987
6987
  class Pp {
6988
6988
  constructor() {
6989
6989
  l(this, "cache");
@@ -7012,7 +7012,7 @@ class Pp {
7012
7012
  }
7013
7013
  static getInstance(e) {
7014
7014
  var s, r;
7015
- return (!((s = globalThis.kos) != null && s.modelManager) || e) && (bi.debug("Creating new instance of KosModelManager"), new this()), (r = globalThis.kos) == null ? void 0 : r.modelManager;
7015
+ return (!((s = globalThis.kos) != null && s.modelManager) || e) && (vi.debug("Creating new instance of KosModelManager"), new this()), (r = globalThis.kos) == null ? void 0 : r.modelManager;
7016
7016
  }
7017
7017
  get registry() {
7018
7018
  return this._registry.registry;
@@ -7030,7 +7030,7 @@ class Pp {
7030
7030
  * - Supports both string-based model keys and object-based model configurations.
7031
7031
  */
7032
7032
  get preloadedModels() {
7033
- return this.cache.preload((e) => (bi.debug(`preloading ${e}`), typeof e == "string" ? this.createModelInstance(e).model : this.createModelInstance(
7033
+ return this.cache.preload((e) => (vi.debug(`preloading ${e}`), typeof e == "string" ? this.createModelInstance(e).model : this.createModelInstance(
7034
7034
  e.modelType,
7035
7035
  e.modelId,
7036
7036
  e.options
@@ -7196,7 +7196,7 @@ class Pp {
7196
7196
  if (!this.dependencies.canDestroy(e.id))
7197
7197
  return;
7198
7198
  const s = this.getModelById(e.id);
7199
- s && (this.cache.markForDeletion(s), Xa.addToDeletionQueue(
7199
+ s && (this.cache.markForDeletion(s), Ja.addToDeletionQueue(
7200
7200
  e.id,
7201
7201
  setTimeout(() => this.destroyModel(s), Ap)
7202
7202
  ));
@@ -7445,7 +7445,7 @@ const Rp = (t) => {
7445
7445
  }), cancel: () => {
7446
7446
  s && clearTimeout(s);
7447
7447
  } };
7448
- }, vi = (t) => typeof t.reload == "function", jp = (t) => typeof t.unload == "function";
7448
+ }, wi = (t) => typeof t.reload == "function", jp = (t) => typeof t.unload == "function";
7449
7449
  var Bp = /* @__PURE__ */ ((t) => (t.LOGGED_IN = "logged_in", t.LOGGED_OUT = "logged_out", t))(Bp || {});
7450
7450
  class T {
7451
7451
  constructor(e) {
@@ -7499,9 +7499,9 @@ class T {
7499
7499
  this._reloading = !0, Q.warn("reloading KOS Core"), Q.warn("reloading preloaded models");
7500
7500
  const s = this.modelManager;
7501
7501
  for (const c of s.preloadedModels)
7502
- vi(c.modelData) && (Q.info(`reloading model ${c.modelId}`), (n = c.unload) == null || n.call(c), await c.modelData.reload(), (o = c.registerSubscribers) == null || o.call(c), Q.info(`reloading model ${c.modelId} complete`));
7502
+ wi(c.modelData) && (Q.info(`reloading model ${c.modelId}`), (n = c.unload) == null || n.call(c), await c.modelData.reload(), (o = c.registerSubscribers) == null || o.call(c), Q.info(`reloading model ${c.modelId} complete`));
7503
7503
  for (const c of s.models)
7504
- !s.preloadedModels.includes(c) && vi(c.modelData) && (Q.warn(`reloading model ${c.modelId}`), (i = c.unload) == null || i.call(c), await c.modelData.reload(), (a = c.registerSubscribers) == null || a.call(c));
7504
+ !s.preloadedModels.includes(c) && wi(c.modelData) && (Q.warn(`reloading model ${c.modelId}`), (i = c.unload) == null || i.call(c), await c.modelData.reload(), (a = c.registerSubscribers) == null || a.call(c));
7505
7505
  const r = Date.now() - e;
7506
7506
  setTimeout(() => {
7507
7507
  Z(() => {
@@ -7752,11 +7752,11 @@ function s_(t, e) {
7752
7752
  const $o = (t, e) => {
7753
7753
  const s = t.map((o) => o.id);
7754
7754
  return e.map((o) => o.id).filter((o) => !s.includes(o));
7755
- }, ic = (t) => t, So = (t) => t, r_ = ({
7755
+ }, ac = (t) => t, So = (t) => t, r_ = ({
7756
7756
  container: t,
7757
7757
  onAddItem: e,
7758
7758
  onUpdateItem: s,
7759
- onRemoveItem: r = ic,
7759
+ onRemoveItem: r = ac,
7760
7760
  idMapper: n = So
7761
7761
  }) => (o) => {
7762
7762
  const i = o.map(n), c = $o(i, t.data).map(r).filter(Boolean);
@@ -7769,7 +7769,7 @@ const $o = (t, e) => {
7769
7769
  }, n_ = ({
7770
7770
  container: t,
7771
7771
  onAddItem: e,
7772
- onRemoveItem: s = ic,
7772
+ onRemoveItem: s = ac,
7773
7773
  idMapper: r = So
7774
7774
  }) => (n) => {
7775
7775
  const o = n.map(r);
@@ -7785,9 +7785,9 @@ const $o = (t, e) => {
7785
7785
  }, i_ = (t, e = "parent-") => {
7786
7786
  let s = t;
7787
7787
  return s.startsWith(e) && (s = s.replace(e, "")), s;
7788
- }, wi = new Intl.RelativeTimeFormat(void 0, {
7788
+ }, Ei = new Intl.RelativeTimeFormat(void 0, {
7789
7789
  numeric: "auto"
7790
- }), Ei = [
7790
+ }), Mi = [
7791
7791
  { amount: 60, name: "seconds" },
7792
7792
  { amount: 60, name: "minutes" },
7793
7793
  { amount: 24, name: "hours" },
@@ -7798,21 +7798,21 @@ const $o = (t, e) => {
7798
7798
  ];
7799
7799
  function zp(t) {
7800
7800
  let e = (t.getTime() - Date.now()) / 1e3;
7801
- for (let s = 0; s <= Ei.length; s++) {
7802
- const r = Ei[s];
7801
+ for (let s = 0; s <= Mi.length; s++) {
7802
+ const r = Mi[s];
7803
7803
  if (Math.abs(e) < r.amount)
7804
- return wi.format(Math.round(e), r.name);
7804
+ return Ei.format(Math.round(e), r.name);
7805
7805
  e /= r.amount;
7806
7806
  }
7807
- return wi.format(Math.round(e), "years");
7807
+ return Ei.format(Math.round(e), "years");
7808
7808
  }
7809
- const ac = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, cc = (t, e) => [31, ac(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][e], Vp = (t, e) => {
7809
+ const cc = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, lc = (t, e) => [31, cc(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][e], Vp = (t, e) => {
7810
7810
  const s = new Date(t), r = t.getDate();
7811
- return s.setDate(1), s.setMonth(s.getMonth() + e), s.setDate(Math.min(r, cc(s.getFullYear(), s.getMonth()))), s;
7811
+ return s.setDate(1), s.setMonth(s.getMonth() + e), s.setDate(Math.min(r, lc(s.getFullYear(), s.getMonth()))), s;
7812
7812
  }, Kp = (t, e) => {
7813
7813
  const s = new Date(t);
7814
7814
  return s.setDate(s.getDate() + e), s;
7815
- }, Ht = "en-US", lc = {
7815
+ }, Ht = "en-US", uc = {
7816
7816
  short: { year: "numeric", month: "2-digit", day: "2-digit" },
7817
7817
  medium: { year: "numeric", month: "short", day: "2-digit" },
7818
7818
  long: { year: "numeric", month: "long", day: "numeric" },
@@ -7822,7 +7822,7 @@ const ac = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, cc = (t, e) =>
7822
7822
  day: "numeric",
7823
7823
  weekday: "long"
7824
7824
  }
7825
- }, uc = {
7825
+ }, dc = {
7826
7826
  short: { hour: "2-digit", minute: "2-digit", hour12: !0 },
7827
7827
  medium: {
7828
7828
  hour: "2-digit",
@@ -7847,13 +7847,13 @@ const ac = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, cc = (t, e) =>
7847
7847
  dateStyle: "short",
7848
7848
  locales: Ht
7849
7849
  }) => {
7850
- const r = e === "short" ? lc.short : { dateStyle: e };
7850
+ const r = e === "short" ? uc.short : { dateStyle: e };
7851
7851
  return new Intl.DateTimeFormat(s, r).format(t);
7852
7852
  }, Yp = (t, { locales: e = Ht, timeStyle: s = "short" } = {
7853
7853
  locales: Ht,
7854
7854
  timeStyle: "short"
7855
7855
  }) => {
7856
- const r = uc[s];
7856
+ const r = dc[s];
7857
7857
  return new Intl.DateTimeFormat(e, r).format(t);
7858
7858
  }, Wp = (t, {
7859
7859
  dateStyle: e = "short",
@@ -7865,8 +7865,8 @@ const ac = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, cc = (t, e) =>
7865
7865
  timeStyle: "short"
7866
7866
  }) => {
7867
7867
  const n = {
7868
- ...e && lc[e],
7869
- ...r && uc[r]
7868
+ ...e && uc[e],
7869
+ ...r && dc[r]
7870
7870
  };
7871
7871
  return new Intl.DateTimeFormat(s, n).format(t);
7872
7872
  }, a_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -7877,8 +7877,8 @@ const ac = (t) => t % 4 === 0 && t % 100 !== 0 || t % 400 === 0, cc = (t, e) =>
7877
7877
  formatDateSince: zp,
7878
7878
  formatDateTime: Wp,
7879
7879
  formatTime: Yp,
7880
- getDaysInMonth: cc,
7881
- isLeapYear: ac
7880
+ getDaysInMonth: lc,
7881
+ isLeapYear: cc
7882
7882
  }, Symbol.toStringTag, { value: "Module" })), Qp = "featureFlagResolver", sr = /* @__PURE__ */ new Map();
7883
7883
  qs(Qp, {
7884
7884
  register: (t, e) => {
@@ -7939,7 +7939,7 @@ const Xp = window.KosFeatureFlags, Jp = (t, e, s) => {
7939
7939
  }, tg = (t, e) => getComputedStyle(t).getPropertyValue(e), l_ = (t, e) => eg(tg(t, e)), sg = (t, e) => {
7940
7940
  const s = { ...t };
7941
7941
  return s.id && delete s.id, s;
7942
- }, Mi = (t, e, s = sg) => {
7942
+ }, _i = (t, e, s = sg) => {
7943
7943
  const r = s(t, e);
7944
7944
  Z(() => {
7945
7945
  Object.assign(e, r);
@@ -7983,7 +7983,7 @@ const u_ = async (t, e) => {
7983
7983
  t,
7984
7984
  e
7985
7985
  );
7986
- }, _i = "/kos/ui/internal/heartbeat/", f_ = ({
7986
+ }, Ti = "/kos/ui/internal/heartbeat/", f_ = ({
7987
7987
  relationshipId: t,
7988
7988
  destinationAddress: e,
7989
7989
  onAbort: s,
@@ -7993,7 +7993,7 @@ const u_ = async (t, e) => {
7993
7993
  const o = T.getInstance().transport, i = new AbortController();
7994
7994
  let a = performance.now();
7995
7995
  const c = o.subscribeTopic({
7996
- topic: `${_i}${t}`,
7996
+ topic: `${Ti}${t}`,
7997
7997
  callback: () => {
7998
7998
  a = performance.now();
7999
7999
  }
@@ -8004,7 +8004,7 @@ const u_ = async (t, e) => {
8004
8004
  qf({
8005
8005
  msg: {},
8006
8006
  options: {
8007
- topic: `${_i}${t}`,
8007
+ topic: `${Ti}${t}`,
8008
8008
  destinationAddress: e
8009
8009
  }
8010
8010
  });
@@ -8235,7 +8235,7 @@ class G extends Error {
8235
8235
  this.name = "FetchException", this.payload = r;
8236
8236
  }
8237
8237
  }
8238
- const Ti = (t, e, s) => async ({
8238
+ const $i = (t, e, s) => async ({
8239
8239
  model: r,
8240
8240
  urlOverride: n,
8241
8241
  ordered: o,
@@ -8283,7 +8283,7 @@ const Ti = (t, e, s) => async ({
8283
8283
  }
8284
8284
  throw m;
8285
8285
  }
8286
- }, $i = (t = "POST", e, s, r) => async ({
8286
+ }, Si = (t = "POST", e, s, r) => async ({
8287
8287
  // Reqeust should be Request = unknown...
8288
8288
  model: n,
8289
8289
  id: o,
@@ -8406,7 +8406,7 @@ const Ti = (t, e, s) => async ({
8406
8406
  * @param params - The parameters for the request, including common options and the new entity model.
8407
8407
  * @returns An empty response with status 200.
8408
8408
  */
8409
- addModel: Ti(t, o || e, c),
8409
+ addModel: $i(t, o || e, c),
8410
8410
  /**
8411
8411
  * Deletes an entity from the server based on its ID.
8412
8412
  *
@@ -8424,7 +8424,7 @@ const Ti = (t, e, s) => async ({
8424
8424
  * @param params - The parameters for the request, including common options and the entity model.
8425
8425
  * @returns An empty response with status 200.
8426
8426
  */
8427
- modifyModel: $i(
8427
+ modifyModel: Si(
8428
8428
  "POST",
8429
8429
  t,
8430
8430
  i || e,
@@ -8436,7 +8436,7 @@ const Ti = (t, e, s) => async ({
8436
8436
  * @param params - The parameters for the request, including common options and the entity model.
8437
8437
  * @returns An empty response with status 200.
8438
8438
  */
8439
- putModel: $i(
8439
+ putModel: Si(
8440
8440
  "PUT",
8441
8441
  t,
8442
8442
  i || e,
@@ -8448,7 +8448,7 @@ const Ti = (t, e, s) => async ({
8448
8448
  * @param params - The parameters for the request, including common options and the new entity model.
8449
8449
  * @returns An empty response with status 200.
8450
8450
  */
8451
- postModel: Ti(t, o || e, c)
8451
+ postModel: $i(t, o || e, c)
8452
8452
  };
8453
8453
  }
8454
8454
  };
@@ -8473,7 +8473,7 @@ function v_(t) {
8473
8473
  const e = t.serviceResponses;
8474
8474
  e && e.clear();
8475
8475
  }
8476
- const dg = ss(), hg = () => `kos-${dg}`, w_ = (t) => !!t && !t.includes("VM_SERVICE") && t.startsWith(hg()), dc = async (t, e = 6e4) => new Promise((s, r) => {
8476
+ const dg = ss(), hg = () => `kos-${dg}`, w_ = (t) => !!t && !t.includes("VM_SERVICE") && t.startsWith(hg()), hc = async (t, e = 6e4) => new Promise((s, r) => {
8477
8477
  const { unsubscribe: n } = O(t, (i) => {
8478
8478
  C.debug(`recieved response for refId ${t}: ${i}`), n(), clearTimeout(o);
8479
8479
  try {
@@ -8487,7 +8487,7 @@ const dg = ss(), hg = () => `kos-${dg}`, w_ = (t) => !!t && !t.includes("VM_SERV
8487
8487
  n(), r(Error(`Request with ID ${t} timed out. Cancelling.`));
8488
8488
  }, e);
8489
8489
  }), E_ = async (t, e, s) => {
8490
- const r = dc(s), n = await Promise.allSettled([t(e), r]);
8490
+ const r = hc(s), n = await Promise.allSettled([t(e), r]);
8491
8491
  if (n[0].status === "fulfilled") {
8492
8492
  if (n[1].status === "rejected")
8493
8493
  throw Error(n[1].reason);
@@ -8503,7 +8503,7 @@ const dg = ss(), hg = () => `kos-${dg}`, w_ = (t) => !!t && !t.includes("VM_SERV
8503
8503
  msg: e,
8504
8504
  requestId: s
8505
8505
  }) => {
8506
- const r = s ?? ss(), n = dc(r);
8506
+ const r = s ?? ss(), n = hc(r);
8507
8507
  H(t, e, { sync: r });
8508
8508
  const o = await n;
8509
8509
  if (o.error)
@@ -8587,7 +8587,7 @@ const J = {
8587
8587
  };
8588
8588
  J.createContext("root");
8589
8589
  const __ = (t) => J.getContext(t.id), lt = g.createLogger({ name: "kos-data-container" });
8590
- class hc {
8590
+ class fc {
8591
8591
  constructor(e) {
8592
8592
  l(this, "_data");
8593
8593
  l(this, "_sortKey");
@@ -8611,7 +8611,7 @@ class hc {
8611
8611
  }
8612
8612
  init() {
8613
8613
  Object.keys(this._optionsMap).forEach((e) => {
8614
- const s = this._optionsMap[e], r = new Qa({
8614
+ const s = this._optionsMap[e], r = new Za({
8615
8615
  container: this,
8616
8616
  key: s
8617
8617
  });
@@ -8711,7 +8711,7 @@ class hc {
8711
8711
  * @private
8712
8712
  */
8713
8713
  _configureDataMonitoring(e) {
8714
- const s = ca(e, (r) => {
8714
+ const s = la(e, (r) => {
8715
8715
  Object.values(this._optionsMap || {}).includes(r.name) && this.increment();
8716
8716
  });
8717
8717
  this._disposerMap.set(e.id || "", s);
@@ -9056,10 +9056,10 @@ class gg {
9056
9056
  }, {}) : {};
9057
9057
  }
9058
9058
  }
9059
- const fc = g.createLogger({ name: "intent-service" }), S_ = (t) => {
9059
+ const pc = g.createLogger({ name: "intent-service" }), S_ = (t) => {
9060
9060
  go(`/kos/intent/${t.type}`) ? H(`/kos/intent/${t.type}`, t.options, {
9061
9061
  "kos.intent.type": t.type
9062
- }) : fc.info(`No subscribers for intent ${t.type}. Intent not sent.`);
9062
+ }) : pc.info(`No subscribers for intent ${t.type}. Intent not sent.`);
9063
9063
  }, O_ = async (t) => new Promise((e) => {
9064
9064
  const { type: s, options: r } = t;
9065
9065
  if (go(`/kos/intent/${t.type}`)) {
@@ -9076,7 +9076,7 @@ const fc = g.createLogger({ name: "intent-service" }), S_ = (t) => {
9076
9076
  sync: n
9077
9077
  });
9078
9078
  } else
9079
- fc.info(`No subscribers for intent ${t.type}. Intent not sent.`), e([null, { body: void 0, payload: void 0 }]);
9079
+ pc.info(`No subscribers for intent ${t.type}. Intent not sent.`), e([null, { body: void 0, payload: void 0 }]);
9080
9080
  }), He = g.createLogger({ name: "app-startup-service" });
9081
9081
  async function mg(t, e = {}) {
9082
9082
  const {
@@ -9153,20 +9153,20 @@ async function D_() {
9153
9153
  return He.error("Failed to fetch started apps:", t), [];
9154
9154
  }
9155
9155
  }
9156
- const Si = Ns, pc = la, ae = Z, ee = Xt, yg = Jt, gc = te, mc = "Not Assigned", x_ = "kos.trouble.added", A_ = "kos.trouble.removed";
9156
+ const Oi = Ns, gc = ua, ae = Z, ee = Xt, yg = Jt, mc = te, yc = "Not Assigned", x_ = "kos.trouble.added", A_ = "kos.trouble.removed";
9157
9157
  var ce = /* @__PURE__ */ ((t) => (t.TroubleRank = "kos.trouble.rank.mapper", t.TroubleColor = "kos.trouble.color.mapper", t.TroubleRole = "kos.trouble.role.mapper", t.RegionServicePath = "kos.region.service_path.mapper", t.ConfigServicePath = "kos.config.service_path.mapper", t))(ce || {}), wr = /* @__PURE__ */ ((t) => (t.TIME_CHANGE = "/kos/internal/time/time", t.DAY_CHANGE = "/kos/internal/time/day", t.TIMEZONE_CHANGE = "/kos/internal/time/timezone", t))(wr || {});
9158
- const yc = g.createLogger({
9158
+ const bc = g.createLogger({
9159
9159
  name: "config-bean-service",
9160
9160
  group: "Services"
9161
9161
  }), Oo = we, bg = (t) => (t == null ? void 0 : t.decimals) !== void 0, { postModel: vg, getOne: wg } = ge.build({
9162
9162
  destinationAddress: "",
9163
9163
  basePath: `${Oo}/kos/config/`
9164
- }), Eg = async (t, e, s = "/api/kos/config") => (yc.debug(`sending modify request for ConfigBean: ${t}`), vg({
9164
+ }), Eg = async (t, e, s = "/api/kos/config") => (bc.debug(`sending modify request for ConfigBean: ${t}`), vg({
9165
9165
  model: e,
9166
9166
  urlOverride: `${Oo}${s}/${t}`
9167
- })), Mg = async (t, e = "/api/kos/config") => (yc.debug(`sending get request for ConfigBean: ${t}`), await wg({
9167
+ })), Mg = async (t, e = "/api/kos/config") => (bc.debug(`sending get request for ConfigBean: ${t}`), await wg({
9168
9168
  urlOverride: `${Oo}${e}/details/${t}/15`
9169
- })), bc = (t) => t.toLowerCase() === "true" || t.toLowerCase() === "false", Io = (t) => {
9169
+ })), vc = (t) => t.toLowerCase() === "true" || t.toLowerCase() === "false", Io = (t) => {
9170
9170
  try {
9171
9171
  const e = Number(t);
9172
9172
  return !isNaN(e);
@@ -9180,16 +9180,16 @@ function _g(t = []) {
9180
9180
  return r && (e = { ...e, ...r }), e;
9181
9181
  }, {});
9182
9182
  }
9183
- function vc(t, e = "", s = {}) {
9183
+ function wc(t, e = "", s = {}) {
9184
9184
  for (const r in t)
9185
9185
  if (Object.prototype.hasOwnProperty.call(t, r)) {
9186
9186
  const n = e ? `${e}.${r}` : r;
9187
- typeof t[r] == "object" && t[r] !== null && !Array.isArray(t[r]) ? vc(t[r], n, s) : s[n] = t[r];
9187
+ typeof t[r] == "object" && t[r] !== null && !Array.isArray(t[r]) ? wc(t[r], n, s) : s[n] = t[r];
9188
9188
  }
9189
9189
  return s;
9190
9190
  }
9191
9191
  const Tg = (t, e) => {
9192
- const s = t.details[0].bean || _g(t.details[0].scopes), r = vc(s);
9192
+ const s = t.details[0].bean || _g(t.details[0].scopes), r = wc(s);
9193
9193
  Z(() => {
9194
9194
  const n = {
9195
9195
  ...r
@@ -9211,11 +9211,11 @@ const Tg = (t, e) => {
9211
9211
  Object.values(r).forEach((o) => {
9212
9212
  const i = o.attr;
9213
9213
  let a = o.currentValue, c = o.previousValue;
9214
- typeof a == "string" && bc(a) && (a = a.toLowerCase() == "true", c = (c == null ? void 0 : c.toLowerCase()) == "true"), typeof a == "string" && Io(a) && (a = Number(a), c = Number(c)), e.props[i] = a, e.prevProps[i] = c;
9214
+ typeof a == "string" && vc(a) && (a = a.toLowerCase() == "true", c = (c == null ? void 0 : c.toLowerCase()) == "true"), typeof a == "string" && Io(a) && (a = Number(a), c = Number(c)), e.props[i] = a, e.prevProps[i] = c;
9215
9215
  });
9216
9216
  });
9217
9217
  }, Sg = (t) => Object.fromEntries(t.props.entries), P_ = (t) => (e) => (s) => t.build(e, s);
9218
- var Og = Object.defineProperty, Ig = Object.getOwnPropertyDescriptor, wc = (t, e, s, r) => {
9218
+ var Og = Object.defineProperty, Ig = Object.getOwnPropertyDescriptor, Ec = (t, e, s, r) => {
9219
9219
  for (var n = r > 1 ? void 0 : r ? Ig(e, s) : e, o = t.length - 1, i; o >= 0; o--)
9220
9220
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
9221
9221
  return r && n && Og(e, s, n), n;
@@ -9378,13 +9378,13 @@ let Sr = class {
9378
9378
  $g(t, this);
9379
9379
  }
9380
9380
  };
9381
- wc([
9381
+ Ec([
9382
9382
  q({
9383
9383
  topic: `/kos/config/${Dg}`,
9384
9384
  websocket: !0
9385
9385
  })
9386
9386
  ], Sr.prototype, "handleConfigBeanUpdated", 1);
9387
- Sr = wc([
9387
+ Sr = Ec([
9388
9388
  R(Co)
9389
9389
  ], Sr);
9390
9390
  const Or = new Ae({
@@ -9401,18 +9401,20 @@ const Or = new Ae({
9401
9401
  lifecycle: I.INIT,
9402
9402
  lazy: e
9403
9403
  };
9404
- }, { URL: Ec } = Ee(), { getOne: Ag, getAll: Pg } = ge.build({
9405
- basePath: `${Ec}/api/kos/regions/info`
9406
- }), Mc = async () => {
9404
+ }, { URL: xo } = Ee(), { getOne: Ag, getAll: Pg } = ge.build({
9405
+ basePath: `${xo}/api/kos/regions/info`
9406
+ }), Mc = async (t) => {
9407
9407
  try {
9408
- return await Ag({});
9408
+ return await Ag({
9409
+ urlOverride: `${xo}${t}/info`
9410
+ });
9409
9411
  } catch {
9410
9412
  return;
9411
9413
  }
9412
- }, _c = async () => {
9414
+ }, _c = async (t) => {
9413
9415
  try {
9414
9416
  return await Pg({
9415
- urlOverride: `${Ec}/api/kos/regions`
9417
+ urlOverride: `${xo}${t}`
9416
9418
  });
9417
9419
  } catch {
9418
9420
  return;
@@ -9514,7 +9516,7 @@ function Lg(t, e) {
9514
9516
  };
9515
9517
  }), t;
9516
9518
  }
9517
- var Fg = Object.defineProperty, Ng = Object.getOwnPropertyDescriptor, xo = (t, e, s, r) => {
9519
+ var Fg = Object.defineProperty, Ng = Object.getOwnPropertyDescriptor, Ao = (t, e, s, r) => {
9518
9520
  for (var n = r > 1 ? void 0 : r ? Ng(e, s) : e, o = t.length - 1, i; o >= 0; o--)
9519
9521
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
9520
9522
  return r && n && Fg(e, s, n), n;
@@ -9783,9 +9785,9 @@ let Is = class {
9783
9785
  */
9784
9786
  async load() {
9785
9787
  ds.debug("loading region info");
9786
- const t = await _c();
9788
+ const t = await _c(this.serviceBasePath);
9787
9789
  t && (this.regions = t.data.map((s) => s.id), this.timeZoneMap = t.data.reduce((s, r) => ({ ...s, [r.id]: r.timeZones }), this.timeZoneMap), this.regionMap = t.data.reduce((s, r) => ({ ...s, [r.id]: r }), {}));
9788
- const e = await Mc();
9790
+ const e = await Mc(this.serviceBasePath);
9789
9791
  e && (this.unitSystems = e.data.unitSystems.reduce((s, r) => {
9790
9792
  const n = {
9791
9793
  id: r.id,
@@ -9817,13 +9819,13 @@ let Is = class {
9817
9819
  await ((e = (t = this.regionSource).ready) == null ? void 0 : e.call(t));
9818
9820
  }
9819
9821
  };
9820
- xo([
9822
+ Ao([
9821
9823
  Do({ path: "kos:service:region:settings" })
9822
9824
  ], Is.prototype, "regionSource", 2);
9823
- xo([
9825
+ Ao([
9824
9826
  Do({ path: "kos:service:region" })
9825
9827
  ], Is.prototype, "region", 2);
9826
- Is = xo([
9828
+ Is = Ao([
9827
9829
  R(Er)
9828
9830
  ], Is);
9829
9831
  const fe = {
@@ -9856,7 +9858,7 @@ const fe = {
9856
9858
  });
9857
9859
  return r.convert(t, o, i);
9858
9860
  };
9859
- function Oi(t, e, s) {
9861
+ function Ii(t, e, s) {
9860
9862
  const r = e.toLowerCase().replace(/_/g, "-").replace(/s$/, ""), n = new Intl.NumberFormat().resolvedOptions().locale ?? "en-US";
9861
9863
  try {
9862
9864
  const o = (s == null ? void 0 : s.mode) || "long", i = (s == null ? void 0 : s.maxDecimals) ?? 2, a = (s == null ? void 0 : s.minDecimals) ?? 0;
@@ -9891,18 +9893,18 @@ const k_ = (t, e, s, r) => {
9891
9893
  return {
9892
9894
  value: n,
9893
9895
  unit: d || o.unit || "",
9894
- display: Oi(n, d || o.unit || "", {
9896
+ display: Ii(n, d || o.unit || "", {
9895
9897
  ...f,
9896
9898
  mode: "long"
9897
9899
  }),
9898
- shortDisplay: Oi(
9900
+ shortDisplay: Ii(
9899
9901
  n,
9900
9902
  d || o.unit || "",
9901
9903
  { ...f, mode: "short" }
9902
9904
  )
9903
9905
  };
9904
9906
  };
9905
- function Ii({
9907
+ function Ci({
9906
9908
  start: t,
9907
9909
  end: e,
9908
9910
  count: s,
@@ -9921,7 +9923,7 @@ function Ii({
9921
9923
  }
9922
9924
  return o;
9923
9925
  }
9924
- function Ci({
9926
+ function Di({
9925
9927
  start: t,
9926
9928
  end: e,
9927
9929
  interval: s,
@@ -9943,21 +9945,21 @@ const Dt = (t, e) => (s) => !t || !e ? s : Io(s) ? $c(Number(s), t, e) : s, jg =
9943
9945
  if ((t == null ? void 0 : t.type) === "enum" || !(t != null && t.options))
9944
9946
  return [];
9945
9947
  if (t.options.type === "rangeCount")
9946
- return Ii(t.options).map(
9948
+ return Ci(t.options).map(
9947
9949
  Dt(s, r)
9948
9950
  );
9949
9951
  if (t.options.type === "rangeInterval")
9950
- return Ci(t.options).map(Dt(s, r));
9952
+ return Di(t.options).map(Dt(s, r));
9951
9953
  if (t.options.type === "list") {
9952
9954
  const { list: n } = t.options;
9953
9955
  return n.map(Dt(s, r));
9954
9956
  } else {
9955
9957
  if (t.options.type === "unitSystemRangeCount" && e)
9956
- return Ii(
9958
+ return Ci(
9957
9959
  t.options.unitSystems[e]
9958
9960
  ).map(Dt(s, r));
9959
9961
  if (t.options.type === "unitSystemRangeInterval" && e)
9960
- return Ci(
9962
+ return Di(
9961
9963
  t.options.unitSystems[e]
9962
9964
  ).map(Dt(s, r));
9963
9965
  if (t.options.type === "unitSystemList" && e) {
@@ -9982,7 +9984,7 @@ const Dt = (t, e) => (s) => !t || !e ? s : Io(s) ? $c(Number(s), t, e) : s, jg =
9982
9984
  ...t.options.unitSystems[e]
9983
9985
  } : t.options;
9984
9986
  };
9985
- var Hg = Object.defineProperty, qg = Object.getOwnPropertyDescriptor, Ao = (t, e, s, r) => {
9987
+ var Hg = Object.defineProperty, qg = Object.getOwnPropertyDescriptor, Po = (t, e, s, r) => {
9986
9988
  for (var n = r > 1 ? void 0 : r ? qg(e, s) : e, o = t.length - 1, i; o >= 0; o--)
9987
9989
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
9988
9990
  return r && n && Hg(e, s, n), n;
@@ -10388,13 +10390,13 @@ let Cs = class {
10388
10390
  await this.bean.updateProperty(this.attribute, r);
10389
10391
  }
10390
10392
  };
10391
- Ao([
10393
+ Po([
10392
10394
  Hs({ modelType: fe.type })
10393
10395
  ], Cs.prototype, "regionInfo", 2);
10394
- Ao([
10396
+ Po([
10395
10397
  Do({ path: Gg, serviceBasePath: Yg })
10396
10398
  ], Cs.prototype, "bean", 2);
10397
- Cs = Ao([
10399
+ Cs = Po([
10398
10400
  R(Mr)
10399
10401
  ], Cs);
10400
10402
  const ns = {
@@ -10611,7 +10613,7 @@ let Dr = class {
10611
10613
  l(this, "logger");
10612
10614
  l(this, "_cancelFuture");
10613
10615
  l(this, "futureId");
10614
- Object.assign(this, e), this.logger = s.logger, this.id = t, this.futureId = e.id, this.namespace = e.namespace || "kos", this._cancelFuture = nm, Si(
10616
+ Object.assign(this, e), this.logger = s.logger, this.id = t, this.futureId = e.id, this.namespace = e.namespace || "kos", this._cancelFuture = nm, Oi(
10615
10617
  () => this.status === wt.Success || this.status === wt.Fail,
10616
10618
  () => {
10617
10619
  Pn.info(`Future ${this.id} has completed with status ${this.status}`), qe(this);
@@ -10649,7 +10651,7 @@ let Dr = class {
10649
10651
  */
10650
10652
  async cancelFuture() {
10651
10653
  const t = this.namespace === "studio" ? "/api/future" : `/api/${this.namespace}/future`;
10652
- await Si(() => this.futureId !== mc), await this._cancelFuture(this.futureId, t);
10654
+ await Oi(() => this.futureId !== yc), await this._cancelFuture(this.futureId, t);
10653
10655
  }
10654
10656
  /**
10655
10657
  * Gets the current status of the future operation.
@@ -10731,7 +10733,7 @@ const fm = Dr, pm = "future-container-model", Et = zs(pm), Pc = (t) => Ic(Ks)(t)
10731
10733
  initiateFuture: gm,
10732
10734
  getFuture: mm
10733
10735
  };
10734
- var ym = Object.defineProperty, bm = Object.getOwnPropertyDescriptor, Po = (t, e, s, r) => {
10736
+ var ym = Object.defineProperty, bm = Object.getOwnPropertyDescriptor, Ro = (t, e, s, r) => {
10735
10737
  for (var n = r > 1 ? void 0 : r ? bm(e, s) : e, o = t.length - 1, i; o >= 0; o--)
10736
10738
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
10737
10739
  return r && n && ym(e, s, n), n;
@@ -10880,15 +10882,15 @@ let Ds = class {
10880
10882
  this.logger.debug(`publishing future update to ${r}`), H(r, e.body, e.headers);
10881
10883
  }
10882
10884
  };
10883
- Po([
10885
+ Ro([
10884
10886
  Qe
10885
10887
  ], Ds.prototype, "_futures", 2);
10886
- Po([
10888
+ Ro([
10887
10889
  q({
10888
10890
  topic: "kos.future"
10889
10891
  })
10890
10892
  ], Ds.prototype, "handleFutureUpdated", 1);
10891
- Ds = Po([
10893
+ Ds = Ro([
10892
10894
  R(Et.type)
10893
10895
  ], Ds);
10894
10896
  const vm = Ds, { URL: Gs } = Ee(), { getOne: wm, postModel: Em, deleteModel: Rc } = ge.build({
@@ -10933,7 +10935,7 @@ const vm = Ds, { URL: Gs } = Ee(), { getOne: wm, postModel: Em, deleteModel: Rc
10933
10935
  getKeyValue: Fc,
10934
10936
  updateKeyValue: Lc
10935
10937
  }, Symbol.toStringTag, { value: "Module" }));
10936
- var _m = Object.defineProperty, Tm = Object.getOwnPropertyDescriptor, Ro = (t, e, s, r) => {
10938
+ var _m = Object.defineProperty, Tm = Object.getOwnPropertyDescriptor, ko = (t, e, s, r) => {
10937
10939
  for (var n = r > 1 ? void 0 : r ? Tm(e, s) : e, o = t.length - 1, i; o >= 0; o--)
10938
10940
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
10939
10941
  return r && n && _m(e, s, n), n;
@@ -10992,20 +10994,20 @@ let xs = class {
10992
10994
  t.namespace === this.namespace && (this.data[t.key] = void 0);
10993
10995
  }
10994
10996
  };
10995
- Ro([
10997
+ ko([
10996
10998
  q({ topic: "/keyVal/set" })
10997
10999
  ], xs.prototype, "handleStateUpdate", 1);
10998
- Ro([
11000
+ ko([
10999
11001
  q({ topic: "/keyVal/remove" })
11000
11002
  ], xs.prototype, "handleStateDelete", 1);
11001
- xs = Ro([
11003
+ xs = ko([
11002
11004
  R(Nc)
11003
11005
  ], xs);
11004
11006
  const Uc = new Ae({
11005
11007
  class: xs,
11006
11008
  type: Nc
11007
11009
  });
11008
- var _e = "INUMBER", os = "IOP1", is = "IOP2", as = "IOP3", Ke = "IVAR", Mt = "IVARNAME", zt = "IFUNCALL", on = "IFUNDEF", pe = "IEXPR", ko = "IEXPREVAL", $t = "IMEMBER", an = "IENDSTATEMENT", Vt = "IARRAY";
11010
+ var _e = "INUMBER", os = "IOP1", is = "IOP2", as = "IOP3", Ke = "IVAR", Mt = "IVARNAME", zt = "IFUNCALL", on = "IFUNDEF", pe = "IEXPR", Lo = "IEXPREVAL", $t = "IMEMBER", an = "IENDSTATEMENT", Vt = "IARRAY";
11009
11011
  function P(t, e) {
11010
11012
  this.type = t, this.value = e ?? 0;
11011
11013
  }
@@ -11086,7 +11088,7 @@ function Bc(t, e, s) {
11086
11088
  }
11087
11089
  function ft(t, e, s) {
11088
11090
  var r = [], n, o, i, a, c, u;
11089
- if (Lo(t))
11091
+ if (Fo(t))
11090
11092
  return Be(t, s);
11091
11093
  for (var d = t.length, h = 0; h < d; h++) {
11092
11094
  var f = t[h], p = f.type;
@@ -11133,7 +11135,7 @@ function ft(t, e, s) {
11133
11135
  }());
11134
11136
  else if (p === pe)
11135
11137
  r.push($m(f, e));
11136
- else if (p === ko)
11138
+ else if (p === Lo)
11137
11139
  r.push(f);
11138
11140
  else if (p === $t)
11139
11141
  n = r.pop(), r.push(n[f.value]);
@@ -11151,24 +11153,24 @@ function ft(t, e, s) {
11151
11153
  return r[0] === 0 ? 0 : Be(r[0], s);
11152
11154
  }
11153
11155
  function $m(t, e, s) {
11154
- return Lo(t) ? t : {
11155
- type: ko,
11156
+ return Fo(t) ? t : {
11157
+ type: Lo,
11156
11158
  value: function(r) {
11157
11159
  return ft(t.value, e, r);
11158
11160
  }
11159
11161
  };
11160
11162
  }
11161
- function Lo(t) {
11162
- return t && t.type === ko;
11163
+ function Fo(t) {
11164
+ return t && t.type === Lo;
11163
11165
  }
11164
11166
  function Be(t, e) {
11165
- return Lo(t) ? t.value(e) : t;
11167
+ return Fo(t) ? t.value(e) : t;
11166
11168
  }
11167
- function Fo(t, e) {
11169
+ function No(t, e) {
11168
11170
  for (var s = [], r, n, o, i, a, c, u = 0; u < t.length; u++) {
11169
11171
  var d = t[u], h = d.type;
11170
11172
  if (h === _e)
11171
- typeof d.value == "number" && d.value < 0 ? s.push("(" + d.value + ")") : Array.isArray(d.value) ? s.push("[" + d.value.map(Di).join(", ") + "]") : s.push(Di(d.value));
11173
+ typeof d.value == "number" && d.value < 0 ? s.push("(" + d.value + ")") : Array.isArray(d.value) ? s.push("[" + d.value.map(xi).join(", ") + "]") : s.push(xi(d.value));
11172
11174
  else if (h === is)
11173
11175
  n = s.pop(), r = s.pop(), i = d.value, e ? i === "^" ? s.push("Math.pow(" + r + ", " + n + ")") : i === "and" ? s.push("(!!" + r + " && !!" + n + ")") : i === "or" ? s.push("(!!" + r + " || !!" + n + ")") : i === "||" ? s.push("(function(a,b){ return Array.isArray(a) && Array.isArray(b) ? a.concat(b) : String(a) + String(b); }((" + r + "),(" + n + ")))") : i === "==" ? s.push("(" + r + " === " + n + ")") : i === "!=" ? s.push("(" + r + " !== " + n + ")") : i === "[" ? s.push(r + "[(" + n + ") | 0]") : s.push("(" + r + " " + i + " " + n + ")") : i === "[" ? s.push(r + "[" + n + "]") : s.push("(" + r + " " + i + " " + n + ")");
11174
11176
  else if (h === as)
@@ -11195,13 +11197,13 @@ function Fo(t, e) {
11195
11197
  a.unshift(s.pop());
11196
11198
  s.push("[" + a.join(", ") + "]");
11197
11199
  } else if (h === pe)
11198
- s.push("(" + Fo(d.value, e) + ")");
11200
+ s.push("(" + No(d.value, e) + ")");
11199
11201
  else if (h !== an)
11200
11202
  throw new Error("invalid Expression");
11201
11203
  }
11202
11204
  return s.length > 1 && (e ? s = [s.join(",")] : s = [s.join(";")]), String(s[0]);
11203
11205
  }
11204
- function Di(t) {
11206
+ function xi(t) {
11205
11207
  return typeof t == "string" ? JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") : t;
11206
11208
  }
11207
11209
  function Ft(t, e) {
@@ -11210,11 +11212,11 @@ function Ft(t, e) {
11210
11212
  return !0;
11211
11213
  return !1;
11212
11214
  }
11213
- function No(t, e, s) {
11215
+ function Uo(t, e, s) {
11214
11216
  s = s || {};
11215
11217
  for (var r = !!s.withMembers, n = null, o = 0; o < t.length; o++) {
11216
11218
  var i = t[o];
11217
- i.type === Ke || i.type === Mt ? !r && !Ft(e, i.value) ? e.push(i.value) : (n !== null && (Ft(e, n) || e.push(n)), n = i.value) : i.type === $t && r && n !== null ? n += "." + i.value : i.type === pe ? No(i.value, e, s) : n !== null && (Ft(e, n) || e.push(n), n = null);
11219
+ i.type === Ke || i.type === Mt ? !r && !Ft(e, i.value) ? e.push(i.value) : (n !== null && (Ft(e, n) || e.push(n)), n = i.value) : i.type === $t && r && n !== null ? n += "." + i.value : i.type === pe ? Uo(i.value, e, s) : n !== null && (Ft(e, n) || e.push(n), n = null);
11218
11220
  }
11219
11221
  n !== null && !Ft(e, n) && e.push(n);
11220
11222
  }
@@ -11231,29 +11233,29 @@ Ie.prototype.evaluate = function(t) {
11231
11233
  return t = t || {}, ft(this.tokens, this, t);
11232
11234
  };
11233
11235
  Ie.prototype.toString = function() {
11234
- return Fo(this.tokens, !1);
11236
+ return No(this.tokens, !1);
11235
11237
  };
11236
11238
  Ie.prototype.symbols = function(t) {
11237
11239
  t = t || {};
11238
11240
  var e = [];
11239
- return No(this.tokens, e, t), e;
11241
+ return Uo(this.tokens, e, t), e;
11240
11242
  };
11241
11243
  Ie.prototype.variables = function(t) {
11242
11244
  t = t || {};
11243
11245
  var e = [];
11244
- No(this.tokens, e, t);
11246
+ Uo(this.tokens, e, t);
11245
11247
  var s = this.functions;
11246
11248
  return e.filter(function(r) {
11247
11249
  return !(r in s);
11248
11250
  });
11249
11251
  };
11250
11252
  Ie.prototype.toJSFunction = function(t, e) {
11251
- var s = this, r = new Function(t, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " + Fo(this.simplify(e).tokens, !0) + "; }");
11253
+ var s = this, r = new Function(t, "with(this.functions) with (this.ternaryOps) with (this.binaryOps) with (this.unaryOps) { return " + No(this.simplify(e).tokens, !0) + "; }");
11252
11254
  return function() {
11253
11255
  return r.apply(s, arguments);
11254
11256
  };
11255
11257
  };
11256
- var As = "TEOF", j = "TOP", ln = "TNUMBER", Hc = "TSTRING", Ge = "TPAREN", Kt = "TBRACKET", un = "TCOMMA", Uo = "TNAME", jo = "TSEMICOLON";
11258
+ var As = "TEOF", j = "TOP", ln = "TNUMBER", Hc = "TSTRING", Ge = "TPAREN", Kt = "TBRACKET", un = "TCOMMA", jo = "TNAME", Bo = "TSEMICOLON";
11257
11259
  function qc(t, e, s) {
11258
11260
  this.type = t, this.value = e, this.index = s;
11259
11261
  }
@@ -11308,7 +11310,7 @@ W.prototype.isComma = function() {
11308
11310
  };
11309
11311
  W.prototype.isSemicolon = function() {
11310
11312
  var t = this.expression.charAt(this.pos);
11311
- return t === ";" ? (this.current = this.newToken(jo, ";"), this.pos++, !0) : !1;
11313
+ return t === ";" ? (this.current = this.newToken(Bo, ";"), this.pos++, !0) : !1;
11312
11314
  };
11313
11315
  W.prototype.isConst = function() {
11314
11316
  for (var t = this.pos, e = t; e < this.expression.length; e++) {
@@ -11350,7 +11352,7 @@ W.prototype.isName = function() {
11350
11352
  }
11351
11353
  if (s) {
11352
11354
  var n = this.expression.substring(t, e);
11353
- return this.current = this.newToken(Uo, n), this.pos += n.length, !0;
11355
+ return this.current = this.newToken(jo, n), this.pos += n.length, !0;
11354
11356
  }
11355
11357
  return !1;
11356
11358
  };
@@ -11522,7 +11524,7 @@ z.prototype.parseAtom = function(t) {
11522
11524
  function s(n) {
11523
11525
  return n.value in e;
11524
11526
  }
11525
- if (this.accept(Uo) || this.accept(j, s))
11527
+ if (this.accept(jo) || this.accept(j, s))
11526
11528
  t.push(new P(Ke, this.current.value));
11527
11529
  else if (this.accept(ln))
11528
11530
  t.push(new P(_e, this.current.value));
@@ -11549,7 +11551,7 @@ z.prototype.pushExpression = function(t, e) {
11549
11551
  t.push(e[s]);
11550
11552
  };
11551
11553
  z.prototype.parseUntilEndStatement = function(t, e) {
11552
- return this.accept(jo) ? (this.nextToken && this.nextToken.type !== As && !(this.nextToken.type === Ge && this.nextToken.value === ")") && e.push(new P(an)), this.nextToken.type !== As && this.parseExpression(e), t.push(new P(pe, e)), !0) : !1;
11554
+ return this.accept(Bo) ? (this.nextToken && this.nextToken.type !== As && !(this.nextToken.type === Ge && this.nextToken.value === ")") && e.push(new P(an)), this.nextToken.type !== As && this.parseExpression(e), t.push(new P(pe, e)), !0) : !1;
11553
11555
  };
11554
11556
  z.prototype.parseArrayList = function(t) {
11555
11557
  for (var e = 0; !this.accept(Kt, "]"); )
@@ -11624,7 +11626,7 @@ z.prototype.parseFactor = function(t) {
11624
11626
  if (this.nextToken.type === Ge && this.nextToken.value === "(") {
11625
11627
  this.restore(), this.parseExponential(t);
11626
11628
  return;
11627
- } else if (this.nextToken.type === jo || this.nextToken.type === un || this.nextToken.type === As || this.nextToken.type === Ge && this.nextToken.value === ")") {
11629
+ } else if (this.nextToken.type === Bo || this.nextToken.type === un || this.nextToken.type === As || this.nextToken.type === Ge && this.nextToken.value === ")") {
11628
11630
  this.restore(), this.parseAtom(t);
11629
11631
  return;
11630
11632
  }
@@ -11671,7 +11673,7 @@ z.prototype.parseMemberExpression = function(t) {
11671
11673
  if (e.value === ".") {
11672
11674
  if (!this.allowMemberAccess)
11673
11675
  throw new Error('unexpected ".", member access is not permitted');
11674
- this.expect(Uo), t.push(new P($t, this.current.value));
11676
+ this.expect(jo), t.push(new P($t, this.current.value));
11675
11677
  } else if (e.value === "[") {
11676
11678
  if (!this.tokens.isOperatorEnabled("["))
11677
11679
  throw new Error('unexpected "[]", arrays are disabled');
@@ -11743,7 +11745,7 @@ function Wm(t) {
11743
11745
  function Qm(t) {
11744
11746
  return Math.log((1 + t) / (1 - t)) / 2;
11745
11747
  }
11746
- function xi(t) {
11748
+ function Ai(t) {
11747
11749
  return Math.log(t) * Math.LOG10E;
11748
11750
  }
11749
11751
  function Zm(t) {
@@ -11758,8 +11760,8 @@ function Jm(t) {
11758
11760
  function ey(t) {
11759
11761
  return Math.random() * (t || 1);
11760
11762
  }
11761
- function Ai(t) {
11762
- return Bo(t + 1);
11763
+ function Pi(t) {
11764
+ return Ho(t + 1);
11763
11765
  }
11764
11766
  function ty(t) {
11765
11767
  return isFinite(t) && t === Math.round(t);
@@ -11781,7 +11783,7 @@ var sy = 4.7421875, Rn = [
11781
11783
  -26190838401581408e-21,
11782
11784
  36899182659531625e-22
11783
11785
  ];
11784
- function Bo(t) {
11786
+ function Ho(t) {
11785
11787
  var e, s;
11786
11788
  if (ty(t)) {
11787
11789
  if (t <= 0)
@@ -11793,7 +11795,7 @@ function Bo(t) {
11793
11795
  return n === 0 && (n = 1), n;
11794
11796
  }
11795
11797
  if (t < 0.5)
11796
- return Math.PI / (Math.sin(Math.PI * t) * Bo(1 - t));
11798
+ return Math.PI / (Math.sin(Math.PI * t) * Ho(1 - t));
11797
11799
  if (t >= 171.35)
11798
11800
  return 1 / 0;
11799
11801
  if (t > 85) {
@@ -11808,14 +11810,14 @@ function Bo(t) {
11808
11810
  function ry(t) {
11809
11811
  return Array.isArray(t) ? t.length : String(t).length;
11810
11812
  }
11811
- function Pi() {
11813
+ function Ri() {
11812
11814
  for (var t = 0, e = 0, s = 0; s < arguments.length; s++) {
11813
11815
  var r = Math.abs(arguments[s]), n;
11814
11816
  e < r ? (n = e / r, t = t * n * n + 1, e = r) : r > 0 ? (n = r / e, t += n * n) : t += r;
11815
11817
  }
11816
11818
  return e === 1 / 0 ? 1 / 0 : e * Math.sqrt(t);
11817
11819
  }
11818
- function Ri(t, e, s) {
11820
+ function ki(t, e, s) {
11819
11821
  return t ? e : s;
11820
11822
  }
11821
11823
  function ny(t, e) {
@@ -11873,9 +11875,9 @@ function fy(t, e) {
11873
11875
  function py(t) {
11874
11876
  return (t > 0) - (t < 0) || +t;
11875
11877
  }
11876
- var ki = 1 / 3;
11878
+ var Li = 1 / 3;
11877
11879
  function gy(t) {
11878
- return t < 0 ? -Math.pow(-t, ki) : Math.pow(t, ki);
11880
+ return t < 0 ? -Math.pow(-t, Li) : Math.pow(t, Li);
11879
11881
  }
11880
11882
  function my(t) {
11881
11883
  return Math.exp(t) - 1;
@@ -11905,8 +11907,8 @@ function St(t) {
11905
11907
  log: Math.log,
11906
11908
  log2: Math.log2 || by,
11907
11909
  ln: Math.log,
11908
- lg: Math.log10 || xi,
11909
- log10: Math.log10 || xi,
11910
+ lg: Math.log10 || Ai,
11911
+ log10: Math.log10 || Ai,
11910
11912
  expm1: Math.expm1 || my,
11911
11913
  log1p: Math.log1p || yy,
11912
11914
  abs: Math.abs,
@@ -11919,7 +11921,7 @@ function St(t) {
11919
11921
  exp: Math.exp,
11920
11922
  not: Xm,
11921
11923
  length: ry,
11922
- "!": Ai,
11924
+ "!": Pi,
11923
11925
  sign: Math.sign || py
11924
11926
  }, this.binaryOps = {
11925
11927
  "+": Dm,
@@ -11941,19 +11943,19 @@ function St(t) {
11941
11943
  "=": oy,
11942
11944
  "[": iy
11943
11945
  }, this.ternaryOps = {
11944
- "?": Ri
11946
+ "?": ki
11945
11947
  }, this.functions = {
11946
11948
  random: ey,
11947
- fac: Ai,
11949
+ fac: Pi,
11948
11950
  min: cy,
11949
11951
  max: ay,
11950
- hypot: Math.hypot || Pi,
11951
- pyt: Math.hypot || Pi,
11952
+ hypot: Math.hypot || Ri,
11953
+ pyt: Math.hypot || Ri,
11952
11954
  // backward compat
11953
11955
  pow: Math.pow,
11954
11956
  atan2: Math.atan2,
11955
- if: Ri,
11956
- gamma: Bo,
11957
+ if: ki,
11958
+ gamma: Ho,
11957
11959
  roundTo: ny,
11958
11960
  map: ly,
11959
11961
  fold: uy,
@@ -11985,7 +11987,7 @@ St.parse = function(t) {
11985
11987
  St.evaluate = function(t, e) {
11986
11988
  return zc.parse(t).evaluate(e);
11987
11989
  };
11988
- var Li = {
11990
+ var Fi = {
11989
11991
  "+": "add",
11990
11992
  "-": "subtract",
11991
11993
  "*": "multiply",
@@ -12010,7 +12012,7 @@ var Li = {
12010
12012
  "()=": "fndef"
12011
12013
  };
12012
12014
  function vy(t) {
12013
- return Li.hasOwnProperty(t) ? Li[t] : t;
12015
+ return Fi.hasOwnProperty(t) ? Fi[t] : t;
12014
12016
  }
12015
12017
  St.prototype.isOperatorEnabled = function(t) {
12016
12018
  var e = vy(t), s = this.options.operators || {};
@@ -12340,7 +12342,7 @@ let Gt = class {
12340
12342
  l(this, "id");
12341
12343
  l(this, "logger");
12342
12344
  l(this, "_overrides");
12343
- this.id = t, this.logger = s.logger, this._overrides = new hc();
12345
+ this.id = t, this.logger = s.logger, this._overrides = new fc();
12344
12346
  }
12345
12347
  updateModel(t) {
12346
12348
  }
@@ -12475,7 +12477,7 @@ Gt = dn([
12475
12477
  const ky = new Ne({
12476
12478
  class: Gt,
12477
12479
  type: Kc
12478
- }), { URL: Ys } = Ee(), { postModel: Ho, getOne: Ly } = ge.build({
12480
+ }), { URL: Ys } = Ee(), { postModel: qo, getOne: Ly } = ge.build({
12479
12481
  basePath: `${Ys}/api/kos-time`
12480
12482
  });
12481
12483
  g.createLogger({
@@ -12483,7 +12485,7 @@ g.createLogger({
12483
12485
  group: "Services"
12484
12486
  });
12485
12487
  const Gc = async (t) => {
12486
- const e = await Ho({
12488
+ const e = await qo({
12487
12489
  model: t,
12488
12490
  urlOverride: `${Ys}/api/kos/time/time`
12489
12491
  });
@@ -12491,7 +12493,7 @@ const Gc = async (t) => {
12491
12493
  throw Error("Failed to set time");
12492
12494
  return e.data;
12493
12495
  }, Yc = async (t) => {
12494
- const e = await Ho({
12496
+ const e = await qo({
12495
12497
  model: t,
12496
12498
  urlOverride: `${Ys}/api/kos/time/date`
12497
12499
  });
@@ -12499,7 +12501,7 @@ const Gc = async (t) => {
12499
12501
  throw Error("Failed to set time");
12500
12502
  return e.data;
12501
12503
  }, Wc = async (t) => {
12502
- const e = await Ho({
12504
+ const e = await qo({
12503
12505
  model: {},
12504
12506
  urlOverride: `${Ys}/api/kos/time/timezone?tz=${t}`
12505
12507
  });
@@ -12795,11 +12797,11 @@ Wn = Yy([
12795
12797
  const Pr = new Ae({
12796
12798
  class: Wn,
12797
12799
  type: ol
12798
- }), qo = new Ae({
12800
+ }), zo = new Ae({
12799
12801
  class: Ar,
12800
12802
  type: Xc
12801
12803
  });
12802
- qo.addRelatedModel(Pr);
12804
+ zo.addRelatedModel(Pr);
12803
12805
  var Wy = Object.defineProperty, Qy = Object.getOwnPropertyDescriptor, il = (t, e, s, r) => {
12804
12806
  for (var n = r > 1 ? void 0 : r ? Qy(e, s) : e, o = t.length - 1, i; o >= 0; o--)
12805
12807
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
@@ -12817,7 +12819,7 @@ let Rr = class {
12817
12819
  l(this, "isResetting");
12818
12820
  l(this, "generatorInstance");
12819
12821
  l(this, "shouldStop", !1);
12820
- this.id = t, this.logger = s.logger, this.currentBlockId = "", this.name = e.name, this.nodeId = e.nodeId, this.isResetting = !0, this._blocks = qo.instance(`${t}-blocks`).options({}).build();
12822
+ this.id = t, this.logger = s.logger, this.currentBlockId = "", this.name = e.name, this.nodeId = e.nodeId, this.isResetting = !0, this._blocks = zo.instance(`${t}-blocks`).options({}).build();
12821
12823
  }
12822
12824
  get firstLineNum() {
12823
12825
  const t = this.populated[0];
@@ -13114,7 +13116,7 @@ const fn = new Ne({
13114
13116
  type: cl
13115
13117
  });
13116
13118
  fn.addRelatedModel(_r);
13117
- fn.addRelatedModel(qo);
13119
+ fn.addRelatedModel(zo);
13118
13120
  fn.addRelatedModel(Pr);
13119
13121
  const rb = (t) => t.rank !== void 0, nb = (t) => t.visibleRole !== void 0, ob = (t) => t.color !== void 0, ib = (t) => {
13120
13122
  const e = t.info ?? {};
@@ -13337,7 +13339,7 @@ let kr = class {
13337
13339
  return await hb(this);
13338
13340
  }
13339
13341
  get deferredCompanion() {
13340
- const t = ii(this.id, (e) => ar(e));
13342
+ const t = ai(this.id, (e) => ar(e));
13341
13343
  if (t && ar(t.modelData))
13342
13344
  return t.modelData;
13343
13345
  }
@@ -13345,7 +13347,7 @@ let kr = class {
13345
13347
  return this.deferredCompanion ? this.deferredCompanion.deferred : !1;
13346
13348
  }
13347
13349
  get shouldDefer() {
13348
- const t = ii(this.id, (e) => ar(e));
13350
+ const t = ai(this.id, (e) => ar(e));
13349
13351
  return t && ar(t.modelData) ? t.modelData.shouldDefer : !1;
13350
13352
  }
13351
13353
  clearDefer() {
@@ -13389,12 +13391,12 @@ const Lr = {
13389
13391
  predicate: Fe(fs),
13390
13392
  factory: ve.Factory.create(fs)
13391
13393
  };
13392
- var pl = Object.defineProperty, yb = Object.getOwnPropertyDescriptor, bb = (t, e, s) => e in t ? pl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, zo = (t, e, s, r) => {
13394
+ var pl = Object.defineProperty, yb = Object.getOwnPropertyDescriptor, bb = (t, e, s) => e in t ? pl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Vo = (t, e, s, r) => {
13393
13395
  for (var n = r > 1 ? void 0 : r ? yb(e, s) : e, o = t.length - 1, i; o >= 0; o--)
13394
13396
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
13395
13397
  return r && n && pl(e, s, n), n;
13396
13398
  }, vb = (t, e, s) => (bb(t, e + "", s), s);
13397
- function Fi(t) {
13399
+ function Ni(t) {
13398
13400
  return M.propertyMapper.hasMapper(
13399
13401
  ce.TroubleRank
13400
13402
  ) ? M.propertyMapper.executeMapper(
@@ -13402,7 +13404,7 @@ function Fi(t) {
13402
13404
  t
13403
13405
  ) : ib(t);
13404
13406
  }
13405
- function Ni(t) {
13407
+ function Ui(t) {
13406
13408
  return (M.propertyMapper.hasMapper(
13407
13409
  ce.TroubleColor
13408
13410
  ) ? M.propertyMapper.executeMapper(
@@ -13410,7 +13412,7 @@ function Ni(t) {
13410
13412
  t
13411
13413
  ) : ab(t)).toLowerCase();
13412
13414
  }
13413
- function Ui(t) {
13415
+ function ji(t) {
13414
13416
  return (M.propertyMapper.hasMapper(
13415
13417
  ce.TroubleRole
13416
13418
  ) ? M.propertyMapper.executeMapper(
@@ -13437,9 +13439,9 @@ let Wt = class {
13437
13439
  const s = {
13438
13440
  ...e,
13439
13441
  servicePath: this.servicePath,
13440
- rank: Fi(e),
13441
- color: Ni(e),
13442
- role: Ui(e),
13442
+ rank: Ni(e),
13443
+ color: Ui(e),
13444
+ role: ji(e),
13443
13445
  id: String(e.id)
13444
13446
  }, r = Lr.factory(`trouble-${e.id}`)(s);
13445
13447
  this.troubles.addModel(r);
@@ -13456,9 +13458,9 @@ let Wt = class {
13456
13458
  const e = {
13457
13459
  ...t,
13458
13460
  servicePath: this.servicePath,
13459
- rank: Fi(t),
13460
- color: Ni(t),
13461
- role: Ui(t),
13461
+ rank: Ni(t),
13462
+ color: Ui(t),
13463
+ role: ji(t),
13462
13464
  id: String(t.id)
13463
13465
  };
13464
13466
  if (e.role === "NONE")
@@ -13468,17 +13470,17 @@ let Wt = class {
13468
13470
  }
13469
13471
  };
13470
13472
  vb(Wt, "Registration");
13471
- zo([
13473
+ Vo([
13472
13474
  q({
13473
13475
  topic: "/kos/trouble/remove",
13474
13476
  websocket: !0,
13475
13477
  lifecycle: I.INIT
13476
13478
  })
13477
13479
  ], Wt.prototype, "handleTroubleRemoved", 1);
13478
- zo([
13480
+ Vo([
13479
13481
  q({ topic: "/kos/trouble/add", websocket: !0 })
13480
13482
  ], Wt.prototype, "handleTroubleAdded", 1);
13481
- Wt = zo([
13483
+ Wt = Vo([
13482
13484
  R({ modelTypeId: wb, singleton: !0 }),
13483
13485
  Hd(),
13484
13486
  Nd({
@@ -13496,15 +13498,15 @@ Wt = zo([
13496
13498
  ], Wt);
13497
13499
  const Ps = Wt.Registration, { URL: gl } = Ee(), { getAll: Eb } = ge.build({
13498
13500
  basePath: `${gl}/api/kos/ota`
13499
- }), ji = g.createLogger({
13501
+ }), Bi = g.createLogger({
13500
13502
  name: "ota-service",
13501
13503
  group: "Services"
13502
13504
  }), Mb = async () => {
13503
- ji.debug("sending GET request to /api/kos/ota/artifacts");
13505
+ Bi.debug("sending GET request to /api/kos/ota/artifacts");
13504
13506
  const t = await Eb({
13505
13507
  urlOverride: `${gl}/api/kos/ota/artifacts`
13506
13508
  });
13507
- return ji.debug("getArtifacts - response:", t), t == null ? void 0 : t.data;
13509
+ return Bi.debug("getArtifacts - response:", t), t == null ? void 0 : t.data;
13508
13510
  };
13509
13511
  var _b = Object.defineProperty, Tb = Object.getOwnPropertyDescriptor, mn = (t, e, s, r) => {
13510
13512
  for (var n = r > 1 ? void 0 : r ? Tb(e, s) : e, o = t.length - 1, i; o >= 0; o--)
@@ -13555,7 +13557,7 @@ let Qt = class {
13555
13557
  l(this, "id");
13556
13558
  l(this, "logger");
13557
13559
  /** Internal data container holding all available update artifacts */
13558
- l(this, "data", new hc());
13560
+ l(this, "data", new fc());
13559
13561
  l(this, "troubleContainer");
13560
13562
  this.id = t, this.logger = s.logger;
13561
13563
  }
@@ -13686,7 +13688,7 @@ function Sb(t) {
13686
13688
  const Ln = g.createLogger({
13687
13689
  name: "software-info-service",
13688
13690
  group: "Services"
13689
- }), Vo = async (t) => {
13691
+ }), Ko = async (t) => {
13690
13692
  Ln.debug("sending GET for software-info");
13691
13693
  const [e, s] = await om.get("/api/kos/manifest/info", void 0, {
13692
13694
  signal: t
@@ -13694,9 +13696,9 @@ const Ln = g.createLogger({
13694
13696
  if (!s)
13695
13697
  throw t != null && t.aborted ? (Ln.debug("Request was aborted"), new G("Request was aborted")) : (Ln.error("Failed to fetch software-info", e), new G("Failed to fetch software-info"));
13696
13698
  return s;
13697
- }, Ob = Sb(Vo), z_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13699
+ }, Ob = Sb(Ko), z_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13698
13700
  __proto__: null,
13699
- getSoftwareInfos: Vo,
13701
+ getSoftwareInfos: Ko,
13700
13702
  getSoftwareInfosWithCancel: Ob
13701
13703
  }, Symbol.toStringTag, { value: "Module" }));
13702
13704
  var Ib = Object.getOwnPropertyDescriptor, Cb = (t, e, s, r) => {
@@ -13740,7 +13742,7 @@ let Xn = class {
13740
13742
  async load() {
13741
13743
  this.logger.debug(`loading software-info ${this.id}`);
13742
13744
  try {
13743
- const t = await Vo(), e = (t == null ? void 0 : t.nodes) || {};
13745
+ const t = await Ko(), e = (t == null ? void 0 : t.nodes) || {};
13744
13746
  ae(() => {
13745
13747
  const r = Object.keys(e).map((n) => e[n][0]).map((n) => ({
13746
13748
  nodeName: n.nodeType,
@@ -13796,19 +13798,19 @@ let Fr = class {
13796
13798
  l(this, "props");
13797
13799
  /** Context logger for debugging and diagnostics */
13798
13800
  l(this, "logger");
13799
- this.id = t, this.logger = s.logger, this.props = gc.map(/* @__PURE__ */ new Map()), Mi(e, this);
13801
+ this.id = t, this.logger = s.logger, this.props = mc.map(/* @__PURE__ */ new Map()), _i(e, this);
13800
13802
  }
13801
13803
  /**
13802
13804
  * Updates the model configuration with new options.
13803
13805
  * @param options New configuration options to apply
13804
13806
  */
13805
13807
  updateModel(t) {
13806
- Mi(t, this);
13808
+ _i(t, this);
13807
13809
  }
13808
13810
  handleConfigBeanUpdated(t) {
13809
13811
  Object.entries(t).forEach(([e, s]) => {
13810
13812
  let r = s;
13811
- typeof r == "string" && bc(r) && (r = r.toLowerCase() == "true"), typeof r == "string" && Io(r) && (r = Number(r)), this.props.set(e, r);
13813
+ typeof r == "string" && vc(r) && (r = r.toLowerCase() == "true"), typeof r == "string" && Io(r) && (r = Number(r)), this.props.set(e, r);
13812
13814
  });
13813
13815
  }
13814
13816
  // -------------------LIFECYCLE----------------------------
@@ -13862,7 +13864,7 @@ var kb = Object.defineProperty, Lb = Object.getOwnPropertyDescriptor, wl = (t, e
13862
13864
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
13863
13865
  return r && n && kb(e, s, n), n;
13864
13866
  };
13865
- const ms = "state-prop-model", Bi = es("path");
13867
+ const ms = "state-prop-model", Hi = es("path");
13866
13868
  let Ur = class {
13867
13869
  constructor(t, e, s) {
13868
13870
  /** Unique identifier for the model instance */
@@ -13905,8 +13907,8 @@ let Ur = class {
13905
13907
  wl([
13906
13908
  Hs({
13907
13909
  modelType: Nr.type,
13908
- id: `state-bean-${Bi}`,
13909
- options: { path: Bi }
13910
+ id: `state-bean-${Hi}`,
13911
+ options: { path: Hi }
13910
13912
  })
13911
13913
  ], Ur.prototype, "stateBean", 2);
13912
13914
  Ur = wl([
@@ -13930,8 +13932,8 @@ const El = {
13930
13932
  }), jb = async () => (Ub.debug("sending GET for state-prop"), await Nb({})), K_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13931
13933
  __proto__: null,
13932
13934
  getStateProps: jb
13933
- }, Symbol.toStringTag, { value: "Module" })), { URL: Ko } = Ee(), { getOne: Ml } = ge.build({
13934
- basePath: `${Ko}/api/translation`
13935
+ }, Symbol.toStringTag, { value: "Module" })), { URL: Go } = Ee(), { getOne: Ml } = ge.build({
13936
+ basePath: `${Go}/api/translation`
13935
13937
  }), Ms = g.createLogger({
13936
13938
  name: "translation-service",
13937
13939
  group: "Services"
@@ -13950,7 +13952,7 @@ const El = {
13950
13952
  }, G_ = async () => {
13951
13953
  Ms.debug("Getting system localization descriptor");
13952
13954
  const t = await Ml({
13953
- urlOverride: `${Ko}/api/system/kos/localization`
13955
+ urlOverride: `${Go}/api/system/kos/localization`
13954
13956
  });
13955
13957
  if ((t == null ? void 0 : t.status) !== 200)
13956
13958
  throw new Error(
@@ -13960,7 +13962,7 @@ const El = {
13960
13962
  }, qb = (t) => async () => {
13961
13963
  Ms.debug(`Getting KOS localization descriptor for context: ${t}`);
13962
13964
  const e = await Ml({
13963
- urlOverride: `${Ko}/api/kos/localization/contexts`
13965
+ urlOverride: `${Go}/api/kos/localization/contexts`
13964
13966
  });
13965
13967
  if ((e == null ? void 0 : e.status) !== 200)
13966
13968
  throw new Error(
@@ -14022,7 +14024,7 @@ const eo = (t, e) => {
14022
14024
  return a;
14023
14025
  });
14024
14026
  return eo(o, e);
14025
- }, Hi = (t, e) => {
14027
+ }, qi = (t, e) => {
14026
14028
  if (e.includes(":")) {
14027
14029
  const [s, r] = e.split(":");
14028
14030
  return { namespace: s, key: r };
@@ -14112,7 +14114,7 @@ let to = class {
14112
14114
  * @returns True if the key exists
14113
14115
  */
14114
14116
  exists(t) {
14115
- const { namespace: e, key: s } = Hi(this.namespace, t);
14117
+ const { namespace: e, key: s } = qi(this.namespace, t);
14116
14118
  if (e !== this.namespace) {
14117
14119
  const r = this.context.getModel(e);
14118
14120
  return r ? r.exists(s) : !1;
@@ -14128,7 +14130,7 @@ let to = class {
14128
14130
  resolveKey(t, e) {
14129
14131
  if (!t)
14130
14132
  return this.logger.debug("key is empty"), "";
14131
- const { defaultValue: s, context: r, data: n } = Kb(e), { namespace: o, key: i } = Hi(this.namespace, t), a = `${i}_${r}`;
14133
+ const { defaultValue: s, context: r, data: n } = Kb(e), { namespace: o, key: i } = qi(this.namespace, t), a = `${i}_${r}`;
14132
14134
  if (o !== this.namespace) {
14133
14135
  const c = this.context.getModel(o);
14134
14136
  return c ? c.resolveKey(i, e) : s ?? i;
@@ -14335,7 +14337,7 @@ function W_(t) {
14335
14337
  const Xb = "kos-ws-event", Ol = zs(
14336
14338
  Xb
14337
14339
  );
14338
- var Jb = Object.defineProperty, ev = Object.getOwnPropertyDescriptor, Go = (t, e, s, r) => {
14340
+ var Jb = Object.defineProperty, ev = Object.getOwnPropertyDescriptor, Yo = (t, e, s, r) => {
14339
14341
  for (var n = r > 1 ? void 0 : r ? ev(e, s) : e, o = t.length - 1, i; o >= 0; o--)
14340
14342
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
14341
14343
  return r && n && Jb(e, s, n), n;
@@ -14381,20 +14383,20 @@ let Rs = class {
14381
14383
  }
14382
14384
  }
14383
14385
  };
14384
- Go([
14386
+ Yo([
14385
14387
  q({
14386
14388
  topic: [Zr.SEND]
14387
14389
  })
14388
14390
  ], Rs.prototype, "handleSendEvent", 1);
14389
- Go([
14391
+ Yo([
14390
14392
  q({
14391
14393
  topic: [Zr.RECEIVED]
14392
14394
  })
14393
14395
  ], Rs.prototype, "handleReceiveEvent", 1);
14394
- Rs = Go([
14396
+ Rs = Yo([
14395
14397
  R(Ol.type)
14396
14398
  ], Rs);
14397
- const qi = xe(), sv = qi.debug === "true" || qi.debug === !0, rv = "/api/system/canvas", Il = async (t, e) => {
14399
+ const zi = xe(), sv = zi.debug === "true" || zi.debug === !0, rv = "/api/system/canvas", Il = async (t, e) => {
14398
14400
  const r = `${we}${e || rv}`;
14399
14401
  await Ue(r, {
14400
14402
  method: "POST",
@@ -14407,7 +14409,7 @@ const qi = xe(), sv = qi.debug === "true" || qi.debug === !0, rv = "/api/system/
14407
14409
  __proto__: null,
14408
14410
  sendCanvasData: Il
14409
14411
  }, Symbol.toStringTag, { value: "Module" }));
14410
- function zi(t, e, s) {
14412
+ function Vi(t, e, s) {
14411
14413
  {
14412
14414
  const r = t.filter((n, o) => o % 4 !== 3);
14413
14415
  return btoa(String.fromCharCode(...r));
@@ -14475,7 +14477,7 @@ let Br = class {
14475
14477
  }
14476
14478
  handleFrame(t) {
14477
14479
  var s;
14478
- const e = zi(t);
14480
+ const e = Vi(t);
14479
14481
  this.sendDataFrame(e, this.apiPath), (s = this._onFrame) == null || s.call(this, e);
14480
14482
  }
14481
14483
  stopStreaming(t = !0) {
@@ -14489,7 +14491,7 @@ let Br = class {
14489
14491
  const r = t * e * 4, n = new Uint8ClampedArray(r);
14490
14492
  for (let i = 3; i < r; i += 4)
14491
14493
  n[i] = 255;
14492
- const o = zi(n);
14494
+ const o = Vi(n);
14493
14495
  this.logger.debug(
14494
14496
  `Sending clear frame: ${t}x${e}, apiPath: ${this.apiPath}`
14495
14497
  ), this.sendDataFrame(o, this.apiPath), (s = this._onFrame) == null || s.call(this, o);
@@ -14872,7 +14874,7 @@ class It {
14872
14874
  return this.ctx.getImageData(0, 0, e, s).data;
14873
14875
  }
14874
14876
  }
14875
- function Yo(t) {
14877
+ function Wo(t) {
14876
14878
  class e extends t {
14877
14879
  constructor() {
14878
14880
  super(...arguments);
@@ -14898,7 +14900,7 @@ function Yo(t) {
14898
14900
  }
14899
14901
  return e;
14900
14902
  }
14901
- const cv = Yo(It);
14903
+ const cv = Wo(It);
14902
14904
  class lv extends cv {
14903
14905
  constructor({
14904
14906
  colors: s = ["red", "yellow", "green"],
@@ -14927,7 +14929,7 @@ class lv extends cv {
14927
14929
  }), this.ctx.fillStyle = i, this.ctx.fillRect(0, 0, s, r), !this.loop && !this.isOneShotDone && this.signalDoneIfNeeded();
14928
14930
  }
14929
14931
  }
14930
- const uv = Yo(It);
14932
+ const uv = Wo(It);
14931
14933
  class Pl extends uv {
14932
14934
  constructor({ src: s }) {
14933
14935
  super();
@@ -15657,7 +15659,7 @@ class mv {
15657
15659
  this.patternStore = e, this.patterns.length > 0 && this.loadCurrentPattern();
15658
15660
  }
15659
15661
  }
15660
- const yv = Yo(It);
15662
+ const yv = Wo(It);
15661
15663
  class bv extends yv {
15662
15664
  constructor(s = { r: 0, g: 0, b: 0 }) {
15663
15665
  super();
@@ -15741,13 +15743,13 @@ class vv extends It {
15741
15743
  this.ctx.putImageData(n, 0, 0);
15742
15744
  }
15743
15745
  }
15744
- const Vi = /* @__PURE__ */ new Map();
15746
+ const Ki = /* @__PURE__ */ new Map();
15745
15747
  qs(ue, {
15746
15748
  register(t, e) {
15747
- Vi.set(t, e);
15749
+ Ki.set(t, e);
15748
15750
  },
15749
15751
  execute(t, e) {
15750
- const s = Vi.get(t);
15752
+ const s = Ki.get(t);
15751
15753
  return s ? new s(e) : null;
15752
15754
  }
15753
15755
  });
@@ -15957,13 +15959,13 @@ rt = ls([
15957
15959
  const ks = new Ne({
15958
15960
  class: rt,
15959
15961
  type: Ll
15960
- }), { URL: Wo } = Ee(), { getOne: Fl } = ge.build({
15961
- basePath: `${Wo}/api/device`
15962
+ }), { URL: Qo } = Ee(), { getOne: Fl } = ge.build({
15963
+ basePath: `${Qo}/api/device`
15962
15964
  }), zr = g.createLogger({ name: "device-service", group: "Services" }), Nl = async () => {
15963
15965
  zr.debug("sending GET for device serial number");
15964
15966
  try {
15965
15967
  const t = await Fl({
15966
- urlOverride: `${Wo}/api/kos/device/serialNumber`
15968
+ urlOverride: `${Qo}/api/kos/device/serialNumber`
15967
15969
  });
15968
15970
  return [void 0, t == null ? void 0 : t.data.serialNumber];
15969
15971
  } catch (t) {
@@ -15975,7 +15977,7 @@ const ks = new Ne({
15975
15977
  zr.debug("sending GET for device details");
15976
15978
  try {
15977
15979
  const t = await Fl({
15978
- urlOverride: `${Wo}/api/kos/device`
15980
+ urlOverride: `${Qo}/api/kos/device`
15979
15981
  });
15980
15982
  return t ? [void 0, t.data] : ["unknownError", void 0];
15981
15983
  } catch (t) {
@@ -16262,17 +16264,17 @@ const ql = new Ae({
16262
16264
  type: Hl
16263
16265
  }), { URL: xv } = Ee(), { getAll: Av } = ge.build({
16264
16266
  basePath: `${xv}/api/kos/network/interfaces`
16265
- }), Ki = g.createLogger({
16267
+ }), Gi = g.createLogger({
16266
16268
  name: "network-interface-service",
16267
16269
  group: "Services"
16268
16270
  }), zl = async () => {
16269
- Ki.debug("sending GET for copy-logs");
16271
+ Gi.debug("sending GET for copy-logs");
16270
16272
  try {
16271
16273
  const t = await Av({});
16272
16274
  return [void 0, t == null ? void 0 : t.data];
16273
16275
  } catch (t) {
16274
16276
  if (t instanceof G)
16275
- return Ki.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
16277
+ return Gi.error(`Error fetching log file size: ${t.payload.error}`), [t.payload.error, void 0];
16276
16278
  }
16277
16279
  return ["unknownError", void 0];
16278
16280
  }, X_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -16359,13 +16361,13 @@ const Gr = new Ne({
16359
16361
  Gr.addRelatedModel(ql);
16360
16362
  const { URL: kv } = Ee(), { getAll: Lv } = ge.build({
16361
16363
  basePath: `${kv}/api/kos/storage/devices`
16362
- }), Gi = g.createLogger({
16364
+ }), Yi = g.createLogger({
16363
16365
  name: "storage-device-service",
16364
16366
  group: "Services"
16365
16367
  }), Gl = async () => {
16366
- Gi.debug("sending GET for storage-device");
16368
+ Yi.debug("sending GET for storage-device");
16367
16369
  const t = await Lv({});
16368
- return !(t != null && t.data) || t.status !== 200 ? (Gi.error("Failed to retrieve storage-device data", t), []) : t.data;
16370
+ return !(t != null && t.data) || t.status !== 200 ? (Yi.error("Failed to retrieve storage-device data", t), []) : t.data;
16369
16371
  }, J_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16370
16372
  __proto__: null,
16371
16373
  getStorageDevices: Gl
@@ -16431,7 +16433,7 @@ const io = new Ae({
16431
16433
  class: oo,
16432
16434
  type: Yl
16433
16435
  });
16434
- var Uv = Object.defineProperty, jv = Object.getOwnPropertyDescriptor, Qo = (t, e, s, r) => {
16436
+ var Uv = Object.defineProperty, jv = Object.getOwnPropertyDescriptor, Zo = (t, e, s, r) => {
16435
16437
  for (var n = r > 1 ? void 0 : r ? jv(e, s) : e, o = t.length - 1, i; o >= 0; o--)
16436
16438
  (i = t[o]) && (n = (r ? i(e, s, n) : i(n)) || n);
16437
16439
  return r && n && Uv(e, s, n), n;
@@ -16507,16 +16509,16 @@ let Ls = class {
16507
16509
  });
16508
16510
  }
16509
16511
  };
16510
- Qo([
16512
+ Zo([
16511
16513
  Qe
16512
16514
  ], Ls.prototype, "_models", 2);
16513
- Qo([
16515
+ Zo([
16514
16516
  q({
16515
16517
  topic: Bv,
16516
16518
  websocket: !0
16517
16519
  })
16518
16520
  ], Ls.prototype, "handleStorageAvailability", 1);
16519
- Ls = Qo([
16521
+ Ls = Zo([
16520
16522
  R(Wl)
16521
16523
  ], Ls);
16522
16524
  const Fs = new Ne({
@@ -16524,17 +16526,17 @@ const Fs = new Ne({
16524
16526
  type: Wl
16525
16527
  });
16526
16528
  Fs.addRelatedModel(io);
16527
- const { URL: Zo } = Ee(), { getAll: Hv, postModel: qv } = ge.build({
16528
- basePath: `${Zo}/api/kos/update/available`
16529
- }), Yi = g.createLogger({
16529
+ const { URL: Xo } = Ee(), { getAll: Hv, postModel: qv } = ge.build({
16530
+ basePath: `${Xo}/api/kos/update/available`
16531
+ }), Wi = g.createLogger({
16530
16532
  name: "usb-update-service",
16531
16533
  group: "Services"
16532
16534
  }), Ql = async () => {
16533
- Yi.debug("sending GET for usb-update");
16535
+ Wi.debug("sending GET for usb-update");
16534
16536
  const t = await Hv({
16535
- urlOverride: `${Zo}/api/kos/update/available`
16537
+ urlOverride: `${Xo}/api/kos/update/available`
16536
16538
  });
16537
- return !(t != null && t.data) || (t == null ? void 0 : t.status) !== 200 ? (Yi.error("Failed to retrieve usb-update data", t), []) : t.data;
16539
+ return !(t != null && t.data) || (t == null ? void 0 : t.status) !== 200 ? (Wi.error("Failed to retrieve usb-update data", t), []) : t.data;
16538
16540
  }, Zl = async (t, e, s) => {
16539
16541
  const r = await qv({
16540
16542
  model: {
@@ -16542,7 +16544,7 @@ const { URL: Zo } = Ee(), { getAll: Hv, postModel: qv } = ge.build({
16542
16544
  deviceId: e
16543
16545
  },
16544
16546
  tracker: s,
16545
- urlOverride: `${Zo}/api/kos/update/install`
16547
+ urlOverride: `${Xo}/api/kos/update/install`
16546
16548
  });
16547
16549
  if (!(r != null && r.data))
16548
16550
  throw new Error("No response from server");
@@ -16729,9 +16731,9 @@ const Yv = () => ({ ...{
16729
16731
  preloadModels: []
16730
16732
  }, Wv = !0, Qv = (t) => () => {
16731
16733
  const e = su;
16732
- return uh(Wi)(Lr).model(Ps).model(Fs).model(Wr).model(ro).model(Zn).model(Or).model(Jn).model(Uc).model(Gr).model(ks).model(xl).model(Oy).model(xc, Wv).model(fn).model(ky), Object.keys(e).forEach((s) => {
16734
+ return uh(Qi)(Lr).model(Ps).model(Fs).model(Wr).model(ro).model(Zn).model(Or).model(Jn).model(Uc).model(Gr).model(ks).model(xl).model(Oy).model(xc, Wv).model(fn).model(ky), Object.keys(e).forEach((s) => {
16733
16735
  const r = e[s];
16734
- lh(Wi)(s, r);
16736
+ lh(Qi)(s, r);
16735
16737
  }), {
16736
16738
  preload: A.model.preloadModel(t),
16737
16739
  model: A.model.register(t),
@@ -16746,7 +16748,7 @@ Ce.preload = A.model.preloadModel(Ce);
16746
16748
  Ce.model = A.model.register(Ce);
16747
16749
  Ce.companion = A.companion.register(Ce);
16748
16750
  Ce.legacy = A.model.registerLegacyModel(Ce);
16749
- const Wi = Ce;
16751
+ const Qi = Ce;
16750
16752
  class sT {
16751
16753
  /**
16752
16754
  * Maps the rank property of the trouble into the {@link TroubleModel}.
@@ -16809,6 +16811,12 @@ class sT {
16809
16811
  registerModelLoader(e, s, r) {
16810
16812
  M.loader.registerLoader(e, s, r);
16811
16813
  }
16814
+ registerRegionServicePathMapper(e) {
16815
+ return M.propertyMapper.registerPropertyMapper(
16816
+ ce.RegionServicePath,
16817
+ e
16818
+ ), this;
16819
+ }
16812
16820
  /**
16813
16821
  * Registers a data loader for the {@link CanvasDispatcher} pattern data.
16814
16822
  *
@@ -16830,12 +16838,6 @@ class sT {
16830
16838
  e
16831
16839
  ), this;
16832
16840
  }
16833
- registerRegionServicePathMapper(e) {
16834
- return M.propertyMapper.registerPropertyMapper(
16835
- ce.RegionServicePath,
16836
- e
16837
- ), this;
16838
- }
16839
16841
  }
16840
16842
  const rT = async (t, e) => {
16841
16843
  const s = Uc.instance(t).options({}).build(), r = e ? `${e}-` : "";
@@ -16866,55 +16868,55 @@ async function nT() {
16866
16868
  function Jv(t) {
16867
16869
  return ts(t);
16868
16870
  }
16869
- const Qi = ot(), oT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16871
+ const Zi = ot(), oT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16870
16872
  __proto__: null,
16871
- api: Qi,
16872
- default: Qi,
16873
+ api: Zi,
16874
+ default: Zi,
16873
16875
  kosServiceRequest: Jv
16874
16876
  }, Symbol.toStringTag, { value: "Module" }));
16875
16877
  function ew(t) {
16876
16878
  return ts(t);
16877
16879
  }
16878
- const Zi = ot(), iT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16880
+ const Xi = ot(), iT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16879
16881
  __proto__: null,
16880
- api: Zi,
16881
- default: Zi,
16882
+ api: Xi,
16883
+ default: Xi,
16882
16884
  kosServiceRequest: ew
16883
16885
  }, Symbol.toStringTag, { value: "Module" }));
16884
16886
  function tw(t) {
16885
16887
  return ts(t);
16886
16888
  }
16887
- const Xi = ot(), aT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16889
+ const Ji = ot(), aT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16888
16890
  __proto__: null,
16889
- api: Xi,
16890
- default: Xi,
16891
+ api: Ji,
16892
+ default: Ji,
16891
16893
  kosServiceRequest: tw
16892
16894
  }, Symbol.toStringTag, { value: "Module" }));
16893
16895
  function sw(t) {
16894
16896
  return ts(t);
16895
16897
  }
16896
- const Ji = ot(), cT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16898
+ const ea = ot(), cT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16897
16899
  __proto__: null,
16898
- api: Ji,
16899
- default: Ji,
16900
+ api: ea,
16901
+ default: ea,
16900
16902
  kosServiceRequest: sw
16901
16903
  }, Symbol.toStringTag, { value: "Module" }));
16902
16904
  function rw(t) {
16903
16905
  return ts(t);
16904
16906
  }
16905
- const ea = ot(), lT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16907
+ const ta = ot(), lT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16906
16908
  __proto__: null,
16907
- api: ea,
16908
- default: ea,
16909
+ api: ta,
16910
+ default: ta,
16909
16911
  kosServiceRequest: rw
16910
16912
  }, Symbol.toStringTag, { value: "Module" }));
16911
16913
  function nw(t) {
16912
16914
  return ts(t);
16913
16915
  }
16914
- const ta = ot(), uT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16916
+ const sa = ot(), uT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16915
16917
  __proto__: null,
16916
- api: ta,
16917
- default: ta,
16918
+ api: sa,
16919
+ default: sa,
16918
16920
  kosServiceRequest: nw
16919
16921
  }, Symbol.toStringTag, { value: "Module" })), ou = "/kos-timer-event", iu = "/kos-timer-event/tick", au = "defaultTimerEnd", vs = g.createLogger({ name: "timer-manager" }), ow = (t) => t.updateProperty !== void 0;
16920
16922
  class iw {
@@ -17127,7 +17129,7 @@ const ws = /* @__PURE__ */ new Map(), Pt = (t, e) => {
17127
17129
  startTimer(t) {
17128
17130
  Pt(t, (e) => e.start());
17129
17131
  }
17130
- }, cu = "kos:service:region:settings", lu = "timeZone", cw = `${cu}-${lu}`, sa = async (t) => {
17132
+ }, cu = "kos:service:region:settings", lu = "timeZone", cw = `${cu}-${lu}`, ra = async (t) => {
17131
17133
  const e = ns.factory(cw)({
17132
17134
  path: cu,
17133
17135
  attribute: lu
@@ -17150,7 +17152,7 @@ function uu(t, e, s = {}) {
17150
17152
  o && (u = new AbortController());
17151
17153
  const h = qt.initiateFuture({
17152
17154
  tracker: c,
17153
- id: mc
17155
+ id: yc
17154
17156
  });
17155
17157
  n && (h.namespace = n), g.debug(`waiting for future ${h.id} to be ready`), await Te(h), g.debug(`future ${h.id} is ready`), ae(() => {
17156
17158
  g.debug(`Adding future ${h.id} to futureHandler`), this.futureHandler.addFuture(h, r);
@@ -17183,7 +17185,7 @@ function uu(t, e, s = {}) {
17183
17185
  }
17184
17186
  if (i === "context") {
17185
17187
  const v = p[p.length - 1];
17186
- if (Ka(v))
17188
+ if (Ga(v))
17187
17189
  v.$tracker = c;
17188
17190
  else {
17189
17191
  const _ = {
@@ -17392,7 +17394,7 @@ const pw = Fu`
17392
17394
  position: relative;
17393
17395
  animation: ${pw} ease-in-out infinite alternate;
17394
17396
  animation-duration: 1.2s;
17395
- `, mw = ({ children: t }) => ua(t, document.body);
17397
+ `, mw = ({ children: t }) => da(t, document.body);
17396
17398
  function yw({
17397
17399
  message: t = "Wait a moment while we load your app.",
17398
17400
  theme: e = "light"
@@ -17496,8 +17498,8 @@ const ww = {
17496
17498
  ] });
17497
17499
  }, Ew = {
17498
17500
  setModel: () => !1
17499
- }, Xo = Us(Ew), vT = () => {
17500
- const t = bt(Xo);
17501
+ }, Jo = Us(Ew), vT = () => {
17502
+ const t = bt(Jo);
17501
17503
  if (t == null)
17502
17504
  throw new Error("useModels must be used within a KosModelProvider");
17503
17505
  return t.model;
@@ -17508,22 +17510,22 @@ const ww = {
17508
17510
  (n) => (s(n), !0),
17509
17511
  [s]
17510
17512
  );
17511
- return /* @__PURE__ */ w(Xo.Provider, { value: { model: e, setModel: r }, children: t });
17513
+ return /* @__PURE__ */ w(Jo.Provider, { value: { model: e, setModel: r }, children: t });
17512
17514
  }, hu = g.createLogger({ name: "kos-model-hierarchy-context" }), _w = {
17513
17515
  models: [],
17514
17516
  addModel: () => {
17515
17517
  hu.debug("Default implementation being used. Do Nothing.");
17516
17518
  }
17517
- }, Jo = Us(_w), wT = ({ children: t }) => {
17519
+ }, ei = Us(_w), wT = ({ children: t }) => {
17518
17520
  const [e, s] = E([]), r = re(
17519
17521
  (n) => {
17520
17522
  e.includes(n) || (hu.debug("adding to hierarchy context", n.id), s((o) => [...o, n]));
17521
17523
  },
17522
17524
  [e]
17523
17525
  );
17524
- return /* @__PURE__ */ w(Jo.Provider, { value: { models: e, addModel: r }, children: t });
17526
+ return /* @__PURE__ */ w(ei.Provider, { value: { models: e, addModel: r }, children: t });
17525
17527
  }, Tw = () => !0, $w = (t) => {
17526
- const e = bt(Jo);
17528
+ const e = bt(ei);
17527
17529
  if (!e)
17528
17530
  throw new Error(
17529
17531
  "useContextModelHierarchy must be used within a KosModelCollectionProvider"
@@ -17539,7 +17541,7 @@ const ww = {
17539
17541
  return (r == null ? void 0 : r.type) === t;
17540
17542
  }
17541
17543
  })[0], Sw = g.createLogger({ name: "kos-model-loader" }), Ow = () => /* @__PURE__ */ w("div", {}), Iw = ({ fallback: t, children: e, ...s }) => /* @__PURE__ */ w(Mw, { children: /* @__PURE__ */ w(vw, { fallback: t, children: /* @__PURE__ */ w(Nu, { children: /* @__PURE__ */ w(Cw, { ...s, children: e }) }) }) }), Cw = (t) => {
17542
- const [e, s] = E(), [r, n] = E(!1), { setModel: o } = bt(Xo), i = bt(Jo);
17544
+ const [e, s] = E(), [r, n] = E(!1), { setModel: o } = bt(Jo), i = bt(ei);
17543
17545
  if (S(() => {
17544
17546
  t.model && (s(t.model), o(t.model), n(!0), i && i.addModel(t.model));
17545
17547
  }, [i, t.model, o]), t.error)
@@ -17572,11 +17574,11 @@ const ww = {
17572
17574
  };
17573
17575
  function xw(t, e) {
17574
17576
  const s = T.create(t, !1, e), r = s.whenReady().then(() => s);
17575
- return Aa(r);
17577
+ return Pa(r);
17576
17578
  }
17577
17579
  const fu = _t.createContext(void 0), _T = (t = { models: {}, preloadModels: [] }, e) => {
17578
17580
  const s = xw(t, e);
17579
- return { KosCoreContextProvider: da(({ children: n }) => {
17581
+ return { KosCoreContextProvider: ha(({ children: n }) => {
17580
17582
  const o = s.read(), [i, a] = _t.useState(o.isOnline);
17581
17583
  return S(() => {
17582
17584
  const c = ee(() => {
@@ -17848,7 +17850,7 @@ function qw({
17848
17850
  }
17849
17851
  const zw = g.createLogger({ name: "canvas-streamer" });
17850
17852
  zw.debug("main-view component loaded");
17851
- const Nn = 10, Vw = da(
17853
+ const Nn = 10, Vw = ha(
17852
17854
  ({
17853
17855
  canvasDispatcher: t,
17854
17856
  height: e = 30,
@@ -17887,7 +17889,7 @@ const Nn = 10, Vw = da(
17887
17889
  );
17888
17890
  return S(() => {
17889
17891
  c && (c.onFrame = d, c.width = s, c.height = e, c.fps = r);
17890
- }, [c, d, s, e, r]), n && ua(
17892
+ }, [c, d, s, e, r]), n && da(
17891
17893
  /* @__PURE__ */ w(Kw, { children: /* @__PURE__ */ w(Gw, { children: /* @__PURE__ */ w(
17892
17894
  "canvas",
17893
17895
  {
@@ -17939,7 +17941,7 @@ function RT(t, e, s) {
17939
17941
  });
17940
17942
  });
17941
17943
  });
17942
- return Aa(r);
17944
+ return Pa(r);
17943
17945
  }
17944
17946
  function kT(t) {
17945
17947
  return (e) => {
@@ -18130,7 +18132,7 @@ function oE(t, e) {
18130
18132
  throw kt.set(t, r), s;
18131
18133
  }
18132
18134
  }
18133
- function ra(t, e) {
18135
+ function na(t, e) {
18134
18136
  return oE(t, e);
18135
18137
  }
18136
18138
  const iE = async () => {
@@ -18145,10 +18147,10 @@ const iE = async () => {
18145
18147
  }
18146
18148
  return r;
18147
18149
  }, qT = (t, e) => {
18148
- const s = [t].flat(), [r, ...n] = s, o = ra(
18150
+ const s = [t].flat(), [r, ...n] = s, o = na(
18149
18151
  st.type,
18150
18152
  iE
18151
- ), i = s.join("__"), a = ra(
18153
+ ), i = s.join("__"), a = na(
18152
18154
  i,
18153
18155
  () => aE(o, r, n)
18154
18156
  ), c = Y(() => ({
@@ -18775,7 +18777,7 @@ const xE = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18775
18777
  });
18776
18778
  S(() => {
18777
18779
  const u = ee(() => {
18778
- s((o == null ? void 0 : o.timeZones.map(t)) || []), o != null && o.timeZones.length && sa(o == null ? void 0 : o.timeZones[0]);
18780
+ s((o == null ? void 0 : o.timeZones.map(t)) || []), o != null && o.timeZones.length && ra(o == null ? void 0 : o.timeZones[0]);
18779
18781
  });
18780
18782
  return () => {
18781
18783
  u();
@@ -18791,7 +18793,7 @@ const xE = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18791
18793
  const c = re((u) => {
18792
18794
  var h;
18793
18795
  let d = "factory";
18794
- typeof u == "string" ? d = u : (h = u == null ? void 0 : u.target) != null && h.value && (d = u.target.value), d && sa(d);
18796
+ typeof u == "string" ? d = u : (h = u == null ? void 0 : u.target) != null && h.value && (d = u.target.value), d && ra(d);
18795
18797
  }, []);
18796
18798
  return {
18797
18799
  options: e,
@@ -18809,8 +18811,7 @@ const xE = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18809
18811
  }, Su = "kos:service:region", Ou = "regionId", RE = `${Su}-${Ou}`, kE = (t) => /* @__PURE__ */ w("option", { title: t, value: t, children: t }, t), LE = (t = kE) => {
18810
18812
  const [e, s] = E([]), [r, n] = E("factory"), { model: o, ready: i } = oe({
18811
18813
  modelType: fe.type,
18812
- modelId: fe.type,
18813
- options: {}
18814
+ modelId: fe.type
18814
18815
  }), a = ns.factory(
18815
18816
  RE
18816
18817
  )({
@@ -18893,7 +18894,7 @@ const xE = (t) => /* @__PURE__ */ w("option", { title: t.id, value: t.format, ch
18893
18894
  options: e
18894
18895
  }
18895
18896
  };
18896
- }, o$ = (t, e) => Y(() => pc(t), e), NE = {
18897
+ }, o$ = (t, e) => Y(() => gc(t), e), NE = {
18897
18898
  config: { attributes: !0, childList: !0, subtree: !0 }
18898
18899
  };
18899
18900
  function i$(t, e, s = NE) {
@@ -18986,7 +18987,7 @@ function BE(t = !1, e = "2-digit") {
18986
18987
  });
18987
18988
  }, [e, t]);
18988
18989
  }
18989
- function na(t, e = "2-digit", s = 0, r = 0) {
18990
+ function oa(t, e = "2-digit", s = 0, r = 0) {
18990
18991
  return Y(
18991
18992
  () => Array.from({ length: t }, (n, o) => {
18992
18993
  const i = String(o + s);
@@ -19019,7 +19020,7 @@ function qE({
19019
19020
  } = { hour12: !0, hour: "2-digit", minute: "2-digit", second: "2-digit" },
19020
19021
  locale: n = "en-US"
19021
19022
  }) {
19022
- const o = BE(t, e), i = na(60, s), a = na(60, r), c = HE(n);
19023
+ const o = BE(t, e), i = oa(60, s), a = oa(60, r), c = HE(n);
19023
19024
  return {
19024
19025
  hourOptions: o,
19025
19026
  minuteOptions: i,
@@ -19111,12 +19112,12 @@ function u$(t) {
19111
19112
  return s ? /* @__PURE__ */ w(yw, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ w(t, { ...e });
19112
19113
  };
19113
19114
  }
19114
- const oa = g.createLogger({
19115
+ const ia = g.createLogger({
19115
19116
  name: "studio-properties-service",
19116
19117
  group: "Services"
19117
19118
  }), KE = "/api/kos/studio/properties", Iu = async (t) => {
19118
- if (oa.debug("sending GET for studio-properties"), !t)
19119
- throw oa.error("connectionId is undefined"), new Error("connectionId is undefined");
19119
+ if (ia.debug("sending GET for studio-properties"), !t)
19120
+ throw ia.error("connectionId is undefined"), new Error("connectionId is undefined");
19120
19121
  return await je.get(
19121
19122
  KE,
19122
19123
  {},
@@ -19134,7 +19135,7 @@ var GE = Object.getOwnPropertyDescriptor, YE = (t, e, s, r) => {
19134
19135
  (i = t[o]) && (n = i(n) || n);
19135
19136
  return n;
19136
19137
  };
19137
- const Cu = "studio-properties-model", WE = "/kos/studio/properties", ia = {
19138
+ const Cu = "studio-properties-model", WE = "/kos/studio/properties", aa = {
19138
19139
  "kos.studio.tool.legacy": 1
19139
19140
  };
19140
19141
  let ao = class {
@@ -19188,12 +19189,12 @@ let ao = class {
19188
19189
  });
19189
19190
  const [t, e] = await Iu(this.connectionId);
19190
19191
  if (t) {
19191
- this.logger.error(`Error loading studio-properties: ${t}`), this.data.setValues(ia);
19192
+ this.logger.error(`Error loading studio-properties: ${t}`), this.data.setValues(aa);
19192
19193
  return;
19193
19194
  }
19194
19195
  if (e) {
19195
19196
  const s = Object.keys(e).reduce((r, n) => (r[n] = e[n] ?? n, r), {});
19196
- this.data.setValues(s ?? ia), g.ifDebug(
19197
+ this.data.setValues(s ?? aa), g.ifDebug(
19197
19198
  () => this.logger.debug(`studio-properties loaded: ${JSON.stringify(s)}`)
19198
19199
  );
19199
19200
  }
@@ -19212,7 +19213,7 @@ let ao = class {
19212
19213
  * @returns Observable that emits when the property changes
19213
19214
  */
19214
19215
  createObservableProperty(t) {
19215
- return pc(() => this.get(t));
19216
+ return gc(() => this.get(t));
19216
19217
  }
19217
19218
  };
19218
19219
  ao = YE([
@@ -19236,7 +19237,7 @@ export {
19236
19237
  yt as ChildModels,
19237
19238
  vt as CompanionParentModel,
19238
19239
  Or as ConfigBean,
19239
- qa as ContainerAwareSetup,
19240
+ za as ContainerAwareSetup,
19240
19241
  sT as CoreExtensionManager,
19241
19242
  su as CoreModels,
19242
19243
  Dw as CreateModelTranslationsContext,
@@ -19249,7 +19250,7 @@ export {
19249
19250
  ro as Device,
19250
19251
  Z_ as DeviceServices,
19251
19252
  UE as DomIntersectionStrategy,
19252
- ga as EVENT_KOS_MODEL_READY,
19253
+ ma as EVENT_KOS_MODEL_READY,
19253
19254
  x_ as EVENT_TROUBLE_ADDED,
19254
19255
  A_ as EVENT_TROUBLE_REMOVED,
19255
19256
  ue as EXTENSION_CANVAS_RENDERER,
@@ -19265,13 +19266,13 @@ export {
19265
19266
  M as ExtensionManager,
19266
19267
  pm as FUTURE_CONTAINER_MODEL_TYPE,
19267
19268
  um as FUTURE_MODEL_TYPE,
19268
- mc as FUTURE_NOT_ASSIGNED,
19269
+ yc as FUTURE_NOT_ASSIGNED,
19269
19270
  Zp as FeatureFlagService,
19270
19271
  G as FetchError,
19271
19272
  pr as FutureAliases,
19272
19273
  Et as FutureContainerFactory,
19273
19274
  vm as FutureContainerModel,
19274
- Ua as FutureContainerSetup,
19275
+ ja as FutureContainerSetup,
19275
19276
  wt as FutureEndState,
19276
19277
  Ks as FutureFactory,
19277
19278
  Mo as FutureHandler,
@@ -19283,14 +19284,14 @@ export {
19283
19284
  nt as HEADER_DESTINATION_ADDR,
19284
19285
  Vu as HEADER_FOS_REQUEST_ID,
19285
19286
  fo as HEADER_METHOD,
19286
- fa as HEADER_ORDERED,
19287
+ pa as HEADER_ORDERED,
19287
19288
  Qr as HEADER_REQUEST_ID,
19288
19289
  We as HEADER_REQUEST_TYPE,
19289
19290
  po as HEADER_RESPONSE_ID,
19290
19291
  Hu as HEADER_SOURCE_ADDR,
19291
19292
  Bu as HEADER_TOPIC,
19292
19293
  js as HEADER_URL,
19293
- pa as HEADER_WORK_TRACKER,
19294
+ ga as HEADER_WORK_TRACKER,
19294
19295
  tt as HttpRouteHandlers,
19295
19296
  Eo as KOS_EXECUTION_CONTEXT,
19296
19297
  Bn as KOS_MODEL_ID,
@@ -19301,28 +19302,28 @@ export {
19301
19302
  U_ as KeyValueServices,
19302
19303
  ve as Kos,
19303
19304
  ns as KosConfigPropertySpec,
19304
- Qa as KosContainerIndex,
19305
+ Za as KosContainerIndex,
19305
19306
  fg as KosContextBean,
19306
19307
  J as KosContextManager,
19307
19308
  T as KosCore,
19308
19309
  ce as KosCoreModelPropertyMapper,
19309
- hc as KosDataContainer,
19310
+ fc as KosDataContainer,
19310
19311
  TM as KosDependencyTypes,
19311
19312
  Oy as KosExpressionEvaluator,
19312
19313
  RM as KosExtensionUtils,
19313
19314
  Xp as KosFeatureFlags,
19314
19315
  Gd as KosFetchMethods,
19315
- Ra as KosGlobalConfig,
19316
- nc as KosHttpRouteManager,
19316
+ ka as KosGlobalConfig,
19317
+ oc as KosHttpRouteManager,
19317
19318
  g as KosLog,
19318
19319
  ky as KosLogManager,
19319
19320
  j_ as KosLogManagerServices,
19320
- Ga as KosLoggerFactory,
19321
+ Ya as KosLoggerFactory,
19321
19322
  Yu as KosMockEvents,
19322
19323
  Cp as KosModel,
19323
19324
  wT as KosModelCollectionProvider,
19324
19325
  Ze as KosModelContainer,
19325
- Xo as KosModelContext,
19326
+ Jo as KosModelContext,
19326
19327
  k as KosModelEvents,
19327
19328
  mr as KosModelFactory,
19328
19329
  Iw as KosModelLoader,
@@ -19330,9 +19331,9 @@ export {
19330
19331
  Pp as KosModelManager,
19331
19332
  Mw as KosModelProvider,
19332
19333
  Ae as KosModelRegistrationFactory,
19333
- Wi as KosModelRegistry,
19334
+ Qi as KosModelRegistry,
19334
19335
  b as KosModelState,
19335
- Na as KosModelSymbol,
19336
+ Ua as KosModelSymbol,
19336
19337
  qp as KosModelVisitor,
19337
19338
  Zd as KosObservableData,
19338
19339
  T_ as KosRegistration,
@@ -19353,19 +19354,19 @@ export {
19353
19354
  uM as LOGIN_URL,
19354
19355
  yw as LoadingMessage,
19355
19356
  Pr as LogBlock,
19356
- qo as LogBlockContainer,
19357
+ zo as LogBlockContainer,
19357
19358
  fr as LogConfig,
19358
19359
  _r as LogStream,
19359
19360
  fn as LogStreamContainer,
19360
19361
  H_ as LogStreamServices,
19361
- Ha as LoggerSetup,
19362
+ qa as LoggerSetup,
19362
19363
  Ap as MODEL_DELETION_DELAY,
19363
19364
  rg as MiddlewareChain,
19364
19365
  et as ModelEffects,
19365
19366
  of as ModelError,
19366
- ja as MultipleFutureContainerSetup,
19367
+ Ba as MultipleFutureContainerSetup,
19367
19368
  Wd as MultipleFutureHandler,
19368
- Jo as NestedModelContext,
19369
+ ei as NestedModelContext,
19369
19370
  ql as NetworkInterface,
19370
19371
  Gr as NetworkInterfaceContainer,
19371
19372
  X_ as NetworkInterfaceServices,
@@ -19391,7 +19392,7 @@ export {
19391
19392
  pd as ReloadAwareSetup,
19392
19393
  Lt as ReplayStrategy,
19393
19394
  he as ResponseRetention,
19394
- ha as STATUS,
19395
+ fa as STATUS,
19395
19396
  ge as ServiceFactory,
19396
19397
  Ut as ServiceRequestHandlers,
19397
19398
  Ne as SingletonKosModelRegistrationFactory,
@@ -19422,14 +19423,14 @@ export {
19422
19423
  wr as Topics,
19423
19424
  HT as Trans,
19424
19425
  xn as TransitionMap,
19425
- ec as Transitions,
19426
+ tc as Transitions,
19426
19427
  so as Translation,
19427
19428
  st as TranslationContainer,
19428
19429
  vu as TranslationContainerContext,
19429
19430
  Y_ as TranslationContext,
19430
- gi as TransportFactory,
19431
+ mi as TransportFactory,
19431
19432
  Lr as Trouble,
19432
- Ba as TroubleAwareSetup,
19433
+ Ha as TroubleAwareSetup,
19433
19434
  Ps as TroubleContainer,
19434
19435
  q_ as TroubleServices,
19435
19436
  Oe as Troubles,
@@ -19439,7 +19440,7 @@ export {
19439
19440
  uT as VFS_SERVICE,
19440
19441
  cT as VFS_SERVICE_1_6_5,
19441
19442
  lT as VFS_SERVICE_1_8_1,
19442
- za as ViewModelConfig,
19443
+ Va as ViewModelConfig,
19443
19444
  Xb as WS_EVENT_TYPE,
19444
19445
  ke as WebSocketEvents,
19445
19446
  Os as WebSocketTransport,
@@ -19505,7 +19506,7 @@ export {
19505
19506
  bE as getDayStrings,
19506
19507
  QT as getDays,
19507
19508
  fE as getDaysArray,
19508
- cc as getDaysInMonth,
19509
+ lc as getDaysInMonth,
19509
19510
  lf as getDependenciesByLifecycle,
19510
19511
  ZT as getFormattedDate,
19511
19512
  XT as getFormattedMonth,
@@ -19526,7 +19527,7 @@ export {
19526
19527
  G_ as getLocalizationDescriptor,
19527
19528
  id as getLogLevel,
19528
19529
  cd as getLogMessageToStudio,
19529
- di as getMessageBody,
19530
+ hi as getMessageBody,
19530
19531
  pE as getMonthsArray,
19531
19532
  HM as getObservableCompanions,
19532
19533
  xe as getQueryParams,
@@ -19538,24 +19539,24 @@ export {
19538
19539
  m_ as hasCachedResponse,
19539
19540
  bg as hasDecimals,
19540
19541
  Hn as hasHttpRouteHandlers,
19541
- si as hasKosProfile,
19542
+ ri as hasKosProfile,
19542
19543
  Nh as hasReadyHook,
19543
19544
  eg as hslStringToHex,
19544
19545
  Jp as hslToHex,
19545
19546
  SM as httpDelete,
19546
19547
  _T as initKosProvider,
19547
19548
  Pd as initializeStateMachine,
19548
- Va as injectStateMachineSupport,
19549
- bc as isBoolean,
19549
+ Ka as injectStateMachineSupport,
19550
+ vc as isBoolean,
19550
19551
  In as isDisposable,
19551
19552
  Qh as isKosCompanionTypeFactory,
19552
19553
  br as isKosDataModel,
19553
- Ka as isKosExecutionContext,
19554
+ Ga as isKosExecutionContext,
19554
19555
  yM as isKosLoggingEnabled,
19555
19556
  Fe as isKosModel,
19556
- sc as isKosModelContainer,
19557
+ rc as isKosModelContainer,
19557
19558
  qn as isKosModelReady,
19558
- ac as isLeapYear,
19559
+ cc as isLeapYear,
19559
19560
  w_ as isLocalRefId,
19560
19561
  Io as isNumber,
19561
19562
  GM as isPrintable,
@@ -19566,7 +19567,7 @@ export {
19566
19567
  Qe as kosChild,
19567
19568
  wM as kosCompanion,
19568
19569
  b$ as kosComponent,
19569
- pc as kosComputed,
19570
+ gc as kosComputed,
19570
19571
  Do as kosConfigBean,
19571
19572
  L_ as kosConfigProperty,
19572
19573
  Nd as kosContainerAware,
@@ -19581,7 +19582,7 @@ export {
19581
19582
  R as kosModel,
19582
19583
  qd as kosModelEffect,
19583
19584
  _M as kosMultipleFutureAware,
19584
- gc as kosObservable,
19585
+ mc as kosObservable,
19585
19586
  wo as kosParentAware,
19586
19587
  IM as kosReference,
19587
19588
  ts as kosServiceRequest,
@@ -19595,12 +19596,12 @@ export {
19595
19596
  q as kosTopicHandler,
19596
19597
  PM as kosTroubleAware,
19597
19598
  KM as kosViewModel,
19598
- Si as kosWhen,
19599
+ Oi as kosWhen,
19599
19600
  uw as login,
19600
19601
  g$ as makeAutoObservable,
19601
19602
  m$ as makeObservable,
19602
19603
  Sg as mapConfigBeanModelToDto,
19603
- Mi as mapDataToModel,
19604
+ _i as mapDataToModel,
19604
19605
  Tg as mapDtoToConfigBeanModel,
19605
19606
  Oc as mapDtoToFutureModel,
19606
19607
  Sc as mapDtoToFutureOptions,
@@ -19630,7 +19631,7 @@ export {
19630
19631
  af as resolveChild,
19631
19632
  r_ as resolveContainerDeltas,
19632
19633
  o_ as resolveItemListDeltas,
19633
- ii as resolveKosCompanion,
19634
+ ai as resolveKosCompanion,
19634
19635
  __ as resolveKosContext,
19635
19636
  nd as resolveKosProfiles,
19636
19637
  n_ as resolveListDeltas,
@@ -19661,7 +19662,7 @@ export {
19661
19662
  h_ as updateCompanionModelRegistration,
19662
19663
  d_ as updateModelRegistration,
19663
19664
  Xv as updateRegion,
19664
- sa as updateTimeZone,
19665
+ ra as updateTimeZone,
19665
19666
  HE as useAmPmValues,
19666
19667
  OE as useCalendarDayArray,
19667
19668
  WT as useConfigBean,
@@ -19705,10 +19706,10 @@ export {
19705
19706
  IT as useSoftwareInfoContext,
19706
19707
  UT as useStateProperty,
19707
19708
  Xw as useStorageDeviceContainer,
19708
- ra as useSuspenseData,
19709
+ na as useSuspenseData,
19709
19710
  qE as useTimeOptions,
19710
19711
  VE as useTimeProps,
19711
- na as useTimeValues,
19712
+ oa as useTimeValues,
19712
19713
  BT as useTimer,
19713
19714
  cE as useTranslationContainer,
19714
19715
  wu as useTroubleContainerModel,
@@ -19722,7 +19723,7 @@ export {
19722
19723
  l_ as variableToHex,
19723
19724
  I_ as waitForAppToStart,
19724
19725
  mg as waitForAppsToStart,
19725
- dc as waitForRequest,
19726
+ hc as waitForRequest,
19726
19727
  Te as whenReady,
19727
19728
  PT as withDevice,
19728
19729
  kT as withKosTime,
@@ -19734,7 +19735,7 @@ export {
19734
19735
  zT as withTranslationContainer,
19735
19736
  GT as withTroubleContainer,
19736
19737
  YT as withUsbUpdateContainer,
19737
- Aa as wrapPromise,
19738
+ Pa as wrapPromise,
19738
19739
  uu as wrapWithFutureLifecycle
19739
19740
  };
19740
19741
  //# sourceMappingURL=index.js.map