@kosdev-code/kos-ui-sdk 0.1.0-next.911 → 0.1.0-next.937

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.
Files changed (55) hide show
  1. package/.kos.json +1 -1
  2. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
  3. package/core/core/decorators/kos-multiple-future-aware.d.ts +10 -46
  4. package/core/core/decorators/kos-multiple-future-aware.d.ts.map +1 -1
  5. package/core/core/decorators/kos-reload-aware.d.ts +6 -4
  6. package/core/core/decorators/kos-reload-aware.d.ts.map +1 -1
  7. package/core/core/decorators/kos-service-request-helpers.d.ts +3 -1
  8. package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -1
  9. package/core/core/decorators/kos-service-request.d.ts +13 -35
  10. package/core/core/decorators/kos-service-request.d.ts.map +1 -1
  11. package/core/core/decorators/kos-state-machine.d.ts +21 -10
  12. package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
  13. package/core/core/decorators/kos-topic-handler-flow-control.d.ts +28 -28
  14. package/core/core/decorators/kos-topic-handler-flow-control.d.ts.map +1 -1
  15. package/core/core/decorators/kos-view-model.d.ts.map +1 -1
  16. package/core/core/decorators/kosDependency.d.ts +4 -2
  17. package/core/core/decorators/kosDependency.d.ts.map +1 -1
  18. package/core/core/decorators/kosModel.d.ts.map +1 -1
  19. package/core/core/decorators/kosTopicHandler.d.ts +3 -12
  20. package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
  21. package/core/core/extension/extension-manager.d.ts.map +1 -1
  22. package/core/core/kosCore.d.ts +15 -0
  23. package/core/core/kosCore.d.ts.map +1 -1
  24. package/core/core/kosModel.d.ts +5 -0
  25. package/core/core/kosModel.d.ts.map +1 -1
  26. package/core/core/model/kos-model-component-factory.d.ts +1 -1
  27. package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
  28. package/core/core/model/kos-service-request-manager.d.ts +7 -2
  29. package/core/core/model/kos-service-request-manager.d.ts.map +1 -1
  30. package/core/core/model/kos-subscription-manager.d.ts +2 -2
  31. package/core/core/model/kos-subscription-manager.d.ts.map +1 -1
  32. package/core/core/model/service-response-store.d.ts +2 -1
  33. package/core/core/model/service-response-store.d.ts.map +1 -1
  34. package/core/types/kos-dependency.d.ts +13 -4
  35. package/core/types/kos-dependency.d.ts.map +1 -1
  36. package/core/types/service-response-store.d.ts +0 -4
  37. package/core/types/service-response-store.d.ts.map +1 -1
  38. package/core/util/model-utils.d.ts.map +1 -1
  39. package/{index-YzHb2lnB.js → index-Csq0zQtb.js} +358 -647
  40. package/index-Csq0zQtb.js.map +1 -0
  41. package/{index-CRb8ucfF.cjs → index-D52vEGXT.cjs} +287 -576
  42. package/index-D52vEGXT.cjs.map +1 -0
  43. package/index.cjs +310 -36
  44. package/index.cjs.map +1 -1
  45. package/index.js +375 -101
  46. package/index.js.map +1 -1
  47. package/models/utils/services/kos/daily/service.d.ts +1 -1
  48. package/models/utils/services/kos/daily/service.d.ts.map +1 -1
  49. package/models/utils/services/vfs/daily/service.d.ts +1 -1
  50. package/models/utils/services/vfs/daily/service.d.ts.map +1 -1
  51. package/package.json +3 -3
  52. package/testing.cjs +1 -1
  53. package/testing.js +1 -1
  54. package/index-CRb8ucfF.cjs.map +0 -1
  55. package/index-YzHb2lnB.js.map +0 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ChildModels, P as ParentModel, O as OptionsRequired, a as CompanionParentModel, b as ContainerAwareSetup, K as KosContextManager, F as FutureContainerSetup, M as MultipleFutureContainerSetup, L as LogConfig, c as LoggerSetup, d as KosLoggerFactory, e as KosModelSymbol, f as ModelEffects, R as ReferenceConfig, T as TroubleAwareSetup, D as DependencyModels, g as DependencyLifecycle, E as ExtensionManager, S as SubscriptionHandlers, h as KosViewModelSymbol, V as ViewModelConfig, i as StateMachineSetup, j as injectStateMachineSupport, k as KosModelVisitor, l as KosCore, s as sendKosMessageResponse, m as KosLog, u as uuid, p as publish, n as subscribe, I as INDEX_RECORD_SYMBOL, o as INDEX_COLLECTION_KEY, q as KosContainerIndexEvents, r as isIndexableItem, t as Kos, v as isKosModel, B as BASE_URL, w as ServiceFactory, x as KosModelRegistrationFactory, y as ObservableData, z as kosAction, A as kosTopicHandler, G as kosModel, H as resolveServiceUrl, J as getKosModelSync, N as isKosModelReady, Q as modelFactory, U as registerExtensionPoint, W as FutureService, X as FutureAliases, Y as whenReady, Z as kosAutoEffect, _ as isKosExecutionContext, $ as KOS_EXECUTION_CONTEXT, a0 as EXTENSION_FUTURE_LIFECYCLE_WRAPPER, a1 as kosObservable, a2 as sendKosHttpMessageResponse, a3 as SingletonKosModelRegistrationFactory, a4 as kosWhen, a5 as destroyKosModel, a6 as KOS_MODEL_ID, a7 as KosModelContainer, a8 as api$9, a9 as KosDataContainer, aa as get, ab as getQueryParams, ac as kosEffect, ad as FutureHandler, ae as resolveKosCompanion, af as createClient, ag as kosFetch, ah as EXTENSION_CANVAS_RENDERER, ai as post, aj as FetchError, ak as KosWsEvents, al as RegistrationManager, am as registerKosModel, an as registerLegacyModel, ao as kosServiceRequest$8, ap as WebSocketTransport, aq as kosComputed, ar as WebSocketEvents, as as modelHookCache, at as isUpdateable, au as KosModelState, av as KosModelEvents, aw as clearModelHookCacheEntry, ax as getKosModel$1 } from "./index-YzHb2lnB.js";
2
- import { ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, cx, cy, cz, cA, cB, cC, cD, cE, cF, cG, cH, cI } from "./index-YzHb2lnB.js";
1
+ import { s as subscribe, p as publish, C as ChildModels, P as ParentModel, O as OptionsRequired, a as CompanionParentModel, b as ContainerAwareSetup, K as KosContextManager, F as FutureContainerSetup, M as MultipleFutureContainerSetup, L as LogConfig, c as LoggerSetup, d as KosLoggerFactory, e as KosViewModelSymbol, f as ModelEffects, R as ReferenceConfig, T as TroubleAwareSetup, D as DependencyModels, g as DependencyLifecycle, E as ExtensionManager, S as SubscriptionHandlers, V as ViewModelConfig, h as StateMachineSetup, i as injectStateMachineSupport, j as initializeStateMachine, k as KosModelVisitor, l as KosCore, m as sendKosMessageResponse, n as KosLog, u as uuid, I as INDEX_RECORD_SYMBOL, o as INDEX_COLLECTION_KEY, q as KosContainerIndexEvents, r as isIndexableItem, t as Kos, v as isKosModel, B as BASE_URL, w as ServiceFactory, x as KosModelRegistrationFactory, y as ObservableData, z as kosAction, A as kosTopicHandler, G as kosModel, H as resolveServiceUrl, J as getKosModelSync, N as isKosModelReady, Q as modelFactory, U as registerExtensionPoint, W as FutureService, X as FutureAliases, Y as whenReady, Z as kosAutoEffect, _ as isKosExecutionContext, $ as KOS_EXECUTION_CONTEXT, a0 as EXTENSION_FUTURE_LIFECYCLE_WRAPPER, a1 as kosObservable, a2 as sendKosHttpMessageResponse, a3 as SingletonKosModelRegistrationFactory, a4 as kosWhen, a5 as destroyKosModel, a6 as KOS_MODEL_ID, a7 as KosModelContainer, a8 as api$9, a9 as KosDataContainer, aa as get, ab as getQueryParams, ac as kosEffect, ad as FutureHandler, ae as resolveKosCompanion, af as createClient, ag as kosFetch, ah as EXTENSION_CANVAS_RENDERER, ai as post, aj as FetchError, ak as KosWsEvents, al as RegistrationManager, am as registerKosModel, an as registerLegacyModel, ao as kosServiceRequest$8, ap as WebSocketTransport, aq as kosComputed, ar as WebSocketEvents, as as modelHookCache, at as isUpdateable, au as KosModelState, av as KosModelEvents, aw as clearModelHookCacheEntry, ax as getKosModel$1 } from "./index-Csq0zQtb.js";
2
+ import { ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, cx, cy, cz, cA, cB, cC, cD, cE, cF, cG, cH } from "./index-Csq0zQtb.js";
3
3
  import { action, reaction, autorun, makeAutoObservable, runInAction, observable } from "mobx";
4
4
  import { makeAutoObservable as makeAutoObservable2, makeObservable } from "mobx";
5
5
  import log$s from "loglevel";
@@ -27,6 +27,279 @@ const _registry = {};
27
27
  function registerApiLevels(levels) {
28
28
  Object.assign(_registry, levels);
29
29
  }
30
+ function once(eventType, callback) {
31
+ const subscription = subscribe(eventType, (msg) => {
32
+ subscription.unsubscribe();
33
+ callback(msg);
34
+ });
35
+ return subscription.unsubscribe;
36
+ }
37
+ function waitFor(eventType, timeout) {
38
+ return new Promise((resolve, reject) => {
39
+ let timeoutId = null;
40
+ const unsubscribe = once(eventType, (msg) => {
41
+ if (timeoutId) {
42
+ clearTimeout(timeoutId);
43
+ }
44
+ resolve(msg);
45
+ });
46
+ if (timeout) {
47
+ timeoutId = setTimeout(() => {
48
+ unsubscribe();
49
+ reject(new Error(`Timeout waiting for event: ${eventType}`));
50
+ }, timeout);
51
+ }
52
+ });
53
+ }
54
+ function waitForAll(eventTypes, timeout) {
55
+ const promises = eventTypes.map(
56
+ (eventType) => waitFor(eventType, timeout)
57
+ );
58
+ return Promise.all(promises);
59
+ }
60
+ function race(eventTypes, timeout) {
61
+ return new Promise((resolve, reject) => {
62
+ const unsubscribers = [];
63
+ let timeoutId = null;
64
+ let resolved = false;
65
+ const cleanup = () => {
66
+ unsubscribers.forEach((unsub) => unsub());
67
+ if (timeoutId) {
68
+ clearTimeout(timeoutId);
69
+ }
70
+ };
71
+ eventTypes.forEach((eventType) => {
72
+ const unsubscribe = once(eventType, (msg) => {
73
+ if (!resolved) {
74
+ resolved = true;
75
+ cleanup();
76
+ resolve({ eventType, data: msg });
77
+ }
78
+ });
79
+ unsubscribers.push(unsubscribe);
80
+ });
81
+ if (timeout) {
82
+ timeoutId = setTimeout(() => {
83
+ if (!resolved) {
84
+ resolved = true;
85
+ cleanup();
86
+ reject(
87
+ new Error(`Timeout waiting for any event: ${eventTypes.join(", ")}`)
88
+ );
89
+ }
90
+ }, timeout);
91
+ }
92
+ });
93
+ }
94
+ function filter(eventType, predicate, callback) {
95
+ const subscription = subscribe(eventType, (msg) => {
96
+ if (msg && predicate(msg)) {
97
+ callback(msg);
98
+ }
99
+ });
100
+ return subscription.unsubscribe;
101
+ }
102
+ function map(eventType, transform, callback) {
103
+ const subscription = subscribe(eventType, (msg) => {
104
+ if (msg) {
105
+ const transformed = transform(msg);
106
+ callback(transformed);
107
+ }
108
+ });
109
+ return subscription.unsubscribe;
110
+ }
111
+ function debounce$1(eventType, delay, callback) {
112
+ let timeoutId = null;
113
+ const subscription = subscribe(eventType, (msg) => {
114
+ if (timeoutId) {
115
+ clearTimeout(timeoutId);
116
+ }
117
+ timeoutId = setTimeout(() => {
118
+ callback(msg);
119
+ }, delay);
120
+ });
121
+ return () => {
122
+ if (timeoutId) {
123
+ clearTimeout(timeoutId);
124
+ }
125
+ subscription.unsubscribe();
126
+ };
127
+ }
128
+ function throttle(eventType, interval, callback) {
129
+ let lastEmit = 0;
130
+ let pendingTimeout = null;
131
+ const subscription = subscribe(eventType, (msg) => {
132
+ const now = Date.now();
133
+ const timeSinceLastEmit = now - lastEmit;
134
+ if (timeSinceLastEmit >= interval) {
135
+ lastEmit = now;
136
+ callback(msg);
137
+ } else if (!pendingTimeout) {
138
+ pendingTimeout = setTimeout(() => {
139
+ lastEmit = Date.now();
140
+ callback(msg);
141
+ pendingTimeout = null;
142
+ }, interval - timeSinceLastEmit);
143
+ }
144
+ });
145
+ return () => {
146
+ if (pendingTimeout) {
147
+ clearTimeout(pendingTimeout);
148
+ }
149
+ subscription.unsubscribe();
150
+ };
151
+ }
152
+ function buffer(eventType, bufferTime, callback) {
153
+ let buffer2 = [];
154
+ let timeoutId = null;
155
+ const flush = () => {
156
+ if (buffer2.length > 0) {
157
+ callback([...buffer2]);
158
+ buffer2 = [];
159
+ }
160
+ };
161
+ const subscription = subscribe(eventType, (msg) => {
162
+ if (msg) {
163
+ buffer2.push(msg);
164
+ if (!timeoutId) {
165
+ timeoutId = setTimeout(() => {
166
+ flush();
167
+ timeoutId = null;
168
+ }, bufferTime);
169
+ }
170
+ }
171
+ });
172
+ return () => {
173
+ if (timeoutId) {
174
+ clearTimeout(timeoutId);
175
+ flush();
176
+ }
177
+ subscription.unsubscribe();
178
+ };
179
+ }
180
+ function replay(eventType, bufferSize = 1) {
181
+ const buffer2 = [];
182
+ subscribe(eventType, (msg) => {
183
+ if (msg) {
184
+ buffer2.push(msg);
185
+ if (buffer2.length > bufferSize) {
186
+ buffer2.shift();
187
+ }
188
+ }
189
+ });
190
+ return {
191
+ subscribe: (callback) => {
192
+ buffer2.forEach((event) => callback(event));
193
+ return subscribe(eventType, callback);
194
+ }
195
+ };
196
+ }
197
+ function merge(eventTypes, callback) {
198
+ const subscriptions = eventTypes.map(
199
+ (eventType) => subscribe(eventType, (msg) => {
200
+ if (msg) {
201
+ callback(eventType, msg);
202
+ }
203
+ })
204
+ );
205
+ return () => {
206
+ subscriptions.forEach((sub2) => sub2.unsubscribe());
207
+ };
208
+ }
209
+ function stateMachine(initialState, transitions) {
210
+ let currentState = initialState;
211
+ const subscriptions = [];
212
+ const allEvents = /* @__PURE__ */ new Set();
213
+ Object.values(transitions).forEach((stateTransitions) => {
214
+ Object.keys(stateTransitions).forEach((event) => {
215
+ allEvents.add(event);
216
+ });
217
+ });
218
+ allEvents.forEach((eventType) => {
219
+ const { unsubscribe } = subscribe(eventType, (msg) => {
220
+ const stateTransitions = transitions[currentState];
221
+ if (stateTransitions && stateTransitions[eventType]) {
222
+ const nextState = stateTransitions[eventType](msg);
223
+ currentState = nextState;
224
+ }
225
+ });
226
+ subscriptions.push(unsubscribe);
227
+ });
228
+ return {
229
+ get state() {
230
+ return currentState;
231
+ },
232
+ unsubscribe: () => {
233
+ subscriptions.forEach((unsub) => unsub());
234
+ }
235
+ };
236
+ }
237
+ function request(requestEvent, responseEvent, request2, timeout) {
238
+ const responsePromise = waitFor(responseEvent, timeout);
239
+ publish(requestEvent, request2);
240
+ return responsePromise;
241
+ }
242
+ async function* eventIterator(eventType) {
243
+ const queue = [];
244
+ const waiters = [];
245
+ const subscription = subscribe(eventType, (msg) => {
246
+ if (msg) {
247
+ if (waiters.length > 0) {
248
+ const waiter = waiters.shift();
249
+ waiter(msg);
250
+ } else {
251
+ queue.push(msg);
252
+ }
253
+ }
254
+ });
255
+ try {
256
+ while (true) {
257
+ if (queue.length > 0) {
258
+ yield queue.shift();
259
+ } else {
260
+ yield await new Promise((resolve) => {
261
+ waiters.push(resolve);
262
+ });
263
+ }
264
+ }
265
+ } finally {
266
+ subscription.unsubscribe();
267
+ }
268
+ }
269
+ const EventBusFunctional = {
270
+ once,
271
+ waitFor,
272
+ waitForAll,
273
+ race,
274
+ filter,
275
+ map,
276
+ debounce: debounce$1,
277
+ throttle,
278
+ buffer,
279
+ replay,
280
+ merge,
281
+ stateMachine,
282
+ request,
283
+ eventIterator
284
+ };
285
+ const eventBus_functional = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
286
+ __proto__: null,
287
+ EventBusFunctional,
288
+ buffer,
289
+ debounce: debounce$1,
290
+ eventIterator,
291
+ filter,
292
+ map,
293
+ merge,
294
+ once,
295
+ race,
296
+ replay,
297
+ request,
298
+ stateMachine,
299
+ throttle,
300
+ waitFor,
301
+ waitForAll
302
+ }, Symbol.toStringTag, { value: "Module" }));
30
303
  const convertFileSizeRaw = (bytes, decimals = 0) => {
31
304
  if (!+bytes)
32
305
  return {
@@ -179,7 +452,7 @@ function kosLoggerAware(options) {
179
452
  loggerProperty,
180
453
  loggerContext
181
454
  };
182
- const getModelType = () => target.prototype[KosModelSymbol]?.type;
455
+ const getModelType = () => target.prototype.modelTypeId ?? target.prototype[KosViewModelSymbol]?.type;
183
456
  let sharedLogger;
184
457
  Object.defineProperty(target.prototype, loggerProperty, {
185
458
  get() {
@@ -411,13 +684,14 @@ function injectViewModelEffects(instance, typeId) {
411
684
  function injectViewModelStateMachine(instance, typeId) {
412
685
  const fsmSetup = instance[StateMachineSetup];
413
686
  if (!fsmSetup) return;
414
- const { config } = fsmSetup;
415
- if (config.initializeAt && config.initializeAt !== DependencyLifecycle.INIT) {
687
+ const { config, initializeAtExplicit } = fsmSetup;
688
+ if (initializeAtExplicit && config.initializeAt !== DependencyLifecycle.INIT) {
416
689
  console.warn(
417
690
  `[kosViewModel] ViewModel "${typeId}" has @kosStateMachine with initializeAt: ${config.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.`
418
691
  );
419
692
  }
420
693
  injectStateMachineSupport(instance);
694
+ initializeStateMachine(instance, config.initializeAt);
421
695
  }
422
696
  function makeSafeObservable(instance) {
423
697
  try {
@@ -1616,10 +1890,10 @@ let ConfigBeanModelImpl = class {
1616
1890
  * @see modifyConfigBeanService
1617
1891
  */
1618
1892
  async updateConfigBean() {
1619
- const request = mapConfigBeanModelToDto(this);
1893
+ const request2 = mapConfigBeanModelToDto(this);
1620
1894
  await this._modifyConfigBean(
1621
1895
  this.path,
1622
- request,
1896
+ request2,
1623
1897
  this.serviceBasePath,
1624
1898
  this.destinationAddress
1625
1899
  );
@@ -2745,7 +3019,7 @@ let KosConfigPropertyImpl = class {
2745
3019
  const result = this.regionInfo.convert(Number(_val), backend, display);
2746
3020
  return result;
2747
3021
  }
2748
- return _val || "";
3022
+ return _val ?? "";
2749
3023
  }
2750
3024
  /**
2751
3025
  * @internal
@@ -3495,7 +3769,7 @@ let StatePropModelImpl = class {
3495
3769
  __decorateClass$w([
3496
3770
  kosDependency({
3497
3771
  modelType: StateBean.type,
3498
- id: `state-bean-${PATH_PROP}`,
3772
+ id: `${StateBean.type}-${PATH_PROP}`,
3499
3773
  options: { path: PATH_PROP }
3500
3774
  })
3501
3775
  ], StatePropModelImpl.prototype, "stateBean", 2);
@@ -4826,43 +5100,43 @@ TokenStream.prototype.unescape = function(v) {
4826
5100
  if (index2 < 0) {
4827
5101
  return v;
4828
5102
  }
4829
- var buffer = v.substring(0, index2);
5103
+ var buffer2 = v.substring(0, index2);
4830
5104
  while (index2 >= 0) {
4831
5105
  var c = v.charAt(++index2);
4832
5106
  switch (c) {
4833
5107
  case "'":
4834
- buffer += "'";
5108
+ buffer2 += "'";
4835
5109
  break;
4836
5110
  case '"':
4837
- buffer += '"';
5111
+ buffer2 += '"';
4838
5112
  break;
4839
5113
  case "\\":
4840
- buffer += "\\";
5114
+ buffer2 += "\\";
4841
5115
  break;
4842
5116
  case "/":
4843
- buffer += "/";
5117
+ buffer2 += "/";
4844
5118
  break;
4845
5119
  case "b":
4846
- buffer += "\b";
5120
+ buffer2 += "\b";
4847
5121
  break;
4848
5122
  case "f":
4849
- buffer += "\f";
5123
+ buffer2 += "\f";
4850
5124
  break;
4851
5125
  case "n":
4852
- buffer += "\n";
5126
+ buffer2 += "\n";
4853
5127
  break;
4854
5128
  case "r":
4855
- buffer += "\r";
5129
+ buffer2 += "\r";
4856
5130
  break;
4857
5131
  case "t":
4858
- buffer += " ";
5132
+ buffer2 += " ";
4859
5133
  break;
4860
5134
  case "u":
4861
5135
  var codePoint = v.substring(index2 + 1, index2 + 5);
4862
5136
  if (!codePointPattern.test(codePoint)) {
4863
5137
  this.parseError("Illegal escape sequence: \\u" + codePoint);
4864
5138
  }
4865
- buffer += String.fromCharCode(parseInt(codePoint, 16));
5139
+ buffer2 += String.fromCharCode(parseInt(codePoint, 16));
4866
5140
  index2 += 4;
4867
5141
  break;
4868
5142
  default:
@@ -4870,10 +5144,10 @@ TokenStream.prototype.unescape = function(v) {
4870
5144
  }
4871
5145
  ++index2;
4872
5146
  var backslash = v.indexOf("\\", index2);
4873
- buffer += v.substring(index2, backslash < 0 ? v.length : backslash);
5147
+ buffer2 += v.substring(index2, backslash < 0 ? v.length : backslash);
4874
5148
  index2 = backslash;
4875
5149
  }
4876
- return buffer;
5150
+ return buffer2;
4877
5151
  };
4878
5152
  TokenStream.prototype.isComment = function() {
4879
5153
  var c = this.expression.charAt(this.pos);
@@ -9609,26 +9883,26 @@ class ScrollingImageRenderer extends Canvas2DRendererBase {
9609
9883
  break;
9610
9884
  }
9611
9885
  let isOffScreen = false;
9612
- const buffer = 1;
9886
+ const buffer2 = 1;
9613
9887
  switch (direction) {
9614
9888
  case "left": {
9615
9889
  const xPosLeft = width - this.position;
9616
- isOffScreen = xPosLeft < -drawWidth - buffer;
9890
+ isOffScreen = xPosLeft < -drawWidth - buffer2;
9617
9891
  break;
9618
9892
  }
9619
9893
  case "right": {
9620
9894
  const xPosRight = -drawWidth + this.position;
9621
- isOffScreen = xPosRight > width + buffer;
9895
+ isOffScreen = xPosRight > width + buffer2;
9622
9896
  break;
9623
9897
  }
9624
9898
  case "up": {
9625
9899
  const yPosUp = height - this.position;
9626
- isOffScreen = yPosUp < -drawHeight - buffer;
9900
+ isOffScreen = yPosUp < -drawHeight - buffer2;
9627
9901
  break;
9628
9902
  }
9629
9903
  case "down": {
9630
9904
  const yPosDown = -drawHeight + this.position;
9631
- isOffScreen = yPosDown > height + buffer;
9905
+ isOffScreen = yPosDown > height + buffer2;
9632
9906
  break;
9633
9907
  }
9634
9908
  }
@@ -9944,26 +10218,26 @@ class ScrollingTextRenderer extends Canvas2DRendererBase {
9944
10218
  checkScrollCompletion(width, height, direction) {
9945
10219
  if (!this.isPlaying) return;
9946
10220
  let isOffScreen = false;
9947
- const buffer = 1;
10221
+ const buffer2 = 1;
9948
10222
  switch (direction) {
9949
10223
  case "left": {
9950
10224
  const xPosLeft = width - this.position;
9951
- isOffScreen = xPosLeft < -this.textWidth - buffer;
10225
+ isOffScreen = xPosLeft < -this.textWidth - buffer2;
9952
10226
  break;
9953
10227
  }
9954
10228
  case "right": {
9955
10229
  const xPosRight = -this.textWidth + this.position;
9956
- isOffScreen = xPosRight > width + buffer;
10230
+ isOffScreen = xPosRight > width + buffer2;
9957
10231
  break;
9958
10232
  }
9959
10233
  case "up": {
9960
10234
  const yPosUp = height - this.position;
9961
- isOffScreen = yPosUp < -this.textHeight - buffer;
10235
+ isOffScreen = yPosUp < -this.textHeight - buffer2;
9962
10236
  break;
9963
10237
  }
9964
10238
  case "down": {
9965
10239
  const yPosDown = -this.textHeight + this.position;
9966
- isOffScreen = yPosDown > height + buffer;
10240
+ isOffScreen = yPosDown > height + buffer2;
9967
10241
  break;
9968
10242
  }
9969
10243
  }
@@ -12301,7 +12575,7 @@ const updateRegion = async (region) => {
12301
12575
  regionInfo.updateProperty(region);
12302
12576
  };
12303
12577
  async function getKosServiceApi() {
12304
- const { default: API } = await import("./index-YzHb2lnB.js").then((n) => n.cJ);
12578
+ const { default: API } = await import("./index-Csq0zQtb.js").then((n) => n.cI);
12305
12579
  return API;
12306
12580
  }
12307
12581
  function kosServiceRequest$7(params2) {
@@ -13522,10 +13796,10 @@ const useContextModelHierarchy = (props) => {
13522
13796
  `useContextModelHierarchy must be used within a KosModelCollectionProvider`
13523
13797
  );
13524
13798
  }
13525
- const filter = props?.filter || DEFAULT_FILTER;
13799
+ const filter2 = props?.filter || DEFAULT_FILTER;
13526
13800
  const filteredModels = useMemo(
13527
- () => context.models.filter(filter),
13528
- [context.models, filter]
13801
+ () => context.models.filter(filter2),
13802
+ [context.models, filter2]
13529
13803
  );
13530
13804
  return filteredModels;
13531
13805
  };
@@ -15955,14 +16229,14 @@ export {
15955
16229
  EXTENSION_TROUBLE_MAPPER,
15956
16230
  ErrorBoundary as ErrorBoundaryWithFallback,
15957
16231
  aD as EventBus,
15958
- aE as EventBusFunctional,
15959
- aF as EventBusState,
15960
- aG as ExtensionException,
16232
+ eventBus_functional as EventBusFunctional,
16233
+ aE as EventBusState,
16234
+ aF as ExtensionException,
15961
16235
  ExtensionManager,
15962
16236
  FUTURE_CONTAINER_MODEL_TYPE,
15963
16237
  FUTURE_MODEL_TYPE,
15964
16238
  FUTURE_NOT_ASSIGNED,
15965
- aH as FeatureFlagService,
16239
+ aG as FeatureFlagService,
15966
16240
  FetchError,
15967
16241
  FutureAliases,
15968
16242
  FutureCallError,
@@ -15980,20 +16254,20 @@ export {
15980
16254
  index$1 as GpioChipServices,
15981
16255
  GpioPin,
15982
16256
  GpioPinContainer,
15983
- aI as HEADER_CACHE_CONTROL,
15984
- aJ as HEADER_CONTENT_TYPE,
15985
- aK as HEADER_DESTINATION_ADDR,
15986
- aL as HEADER_FOS_REQUEST_ID,
15987
- aM as HEADER_METHOD,
15988
- aN as HEADER_ORDERED,
15989
- aO as HEADER_REQUEST_ID,
15990
- aP as HEADER_REQUEST_TYPE,
15991
- aQ as HEADER_RESPONSE_ID,
15992
- aR as HEADER_SOURCE_ADDR,
15993
- aS as HEADER_TOPIC,
15994
- aT as HEADER_URL,
15995
- aU as HEADER_WORK_TRACKER,
15996
- aV as HttpRouteHandlers,
16257
+ aH as HEADER_CACHE_CONTROL,
16258
+ aI as HEADER_CONTENT_TYPE,
16259
+ aJ as HEADER_DESTINATION_ADDR,
16260
+ aK as HEADER_FOS_REQUEST_ID,
16261
+ aL as HEADER_METHOD,
16262
+ aM as HEADER_ORDERED,
16263
+ aN as HEADER_REQUEST_ID,
16264
+ aO as HEADER_REQUEST_TYPE,
16265
+ aP as HEADER_RESPONSE_ID,
16266
+ aQ as HEADER_SOURCE_ADDR,
16267
+ aR as HEADER_TOPIC,
16268
+ aS as HEADER_URL,
16269
+ aT as HEADER_WORK_TRACKER,
16270
+ aU as HttpRouteHandlers,
15997
16271
  INDEX_COLLECTION_KEY,
15998
16272
  INDEX_RECORD_SYMBOL,
15999
16273
  KOS_EXECUTION_CONTEXT,
@@ -16007,39 +16281,39 @@ export {
16007
16281
  index$c as KeyValueServices,
16008
16282
  Kos,
16009
16283
  Registration as KosConfigPropertySpec,
16010
- aW as KosContainerIndex,
16284
+ aV as KosContainerIndex,
16011
16285
  KosContainerIndexEvents,
16012
- aX as KosContextBean,
16286
+ aW as KosContextBean,
16013
16287
  KosContextManager,
16014
16288
  KosCore,
16015
16289
  KosCoreModelPropertyMapper,
16016
16290
  KosDataContainer,
16017
- aY as KosDependencyTypes,
16291
+ aX as KosDependencyTypes,
16018
16292
  KosExpressionEvaluator,
16019
16293
  initializeExtension as KosExtensionUtils,
16020
- aZ as KosFeatureFlags,
16294
+ aY as KosFeatureFlags,
16021
16295
  KosFetchMethods,
16022
- a_ as KosGlobalConfig,
16023
- a$ as KosHttpRouteManager,
16296
+ aZ as KosGlobalConfig,
16297
+ a_ as KosHttpRouteManager,
16024
16298
  KosLog,
16025
16299
  KosLogManager,
16026
16300
  index$b as KosLogManagerServices,
16027
16301
  KosLoggerFactory,
16028
- b0 as KosMock,
16029
- b1 as KosModel,
16302
+ a$ as KosMock,
16303
+ b0 as KosModel,
16030
16304
  KosModelCollectionProvider,
16031
16305
  KosModelContainer,
16032
16306
  KosModelContext,
16033
16307
  KosModelEvents,
16034
- b2 as KosModelFactory,
16308
+ b1 as KosModelFactory,
16035
16309
  KosModelLoader,
16036
16310
  KosModelLoaderDisplay,
16037
- b3 as KosModelManager,
16311
+ b2 as KosModelManager,
16038
16312
  KosModelProvider,
16039
16313
  KosModelRegistrationFactory,
16040
16314
  KosModelRegistry,
16041
16315
  KosModelState,
16042
- KosModelSymbol,
16316
+ b3 as KosModelSymbol,
16043
16317
  KosModelVisitor,
16044
16318
  b4 as KosObservableData,
16045
16319
  KosRegistration,
@@ -16266,23 +16540,23 @@ export {
16266
16540
  hslToHex,
16267
16541
  c8 as httpDelete,
16268
16542
  initKosProvider,
16269
- c9 as initializeStateMachine,
16543
+ initializeStateMachine,
16270
16544
  injectStateMachineSupport,
16271
16545
  isBoolean,
16272
16546
  isDisposable,
16273
16547
  isIndexableItem,
16274
- ca as isKosCompanionTypeFactory,
16275
- cb as isKosDataModel,
16548
+ c9 as isKosCompanionTypeFactory,
16549
+ ca as isKosDataModel,
16276
16550
  isKosExecutionContext,
16277
- cc as isKosLoggingEnabled,
16551
+ cb as isKosLoggingEnabled,
16278
16552
  isKosModel,
16279
- cd as isKosModelContainer,
16553
+ cc as isKosModelContainer,
16280
16554
  isKosModelReady,
16281
16555
  isLeapYear,
16282
- ce as isLocalRefId,
16556
+ cd as isLocalRefId,
16283
16557
  isNumber,
16284
- cf as isPrintable,
16285
- cg as isTransportNotReadyError,
16558
+ ce as isPrintable,
16559
+ cf as isTransportNotReadyError,
16286
16560
  isTroubleAware,
16287
16561
  isValidDate,
16288
16562
  kosAction,
@@ -16310,13 +16584,13 @@ export {
16310
16584
  kosObservable,
16311
16585
  kosParentAware,
16312
16586
  kosReference,
16313
- ch as kosReloadAware,
16587
+ cg as kosReloadAware,
16314
16588
  kosServiceRequest$8 as kosServiceRequest,
16315
16589
  kosStateBean,
16316
- ci as kosStateEntry,
16317
- cj as kosStateExit,
16318
- ck as kosStateGuard,
16319
- cl as kosStateMachine,
16590
+ ch as kosStateEntry,
16591
+ ci as kosStateExit,
16592
+ cj as kosStateGuard,
16593
+ ck as kosStateMachine,
16320
16594
  kosStateProp,
16321
16595
  kosSubscribe,
16322
16596
  kosTopicHandler,
@@ -16334,50 +16608,50 @@ export {
16334
16608
  mapDtoToFutureOptions,
16335
16609
  mapUpdateDtoToConfigBeanModel,
16336
16610
  mergeLocalizationDescriptors,
16337
- cm as modelEventTopicFactory,
16611
+ cl as modelEventTopicFactory,
16338
16612
  modelFactory,
16339
16613
  modelHookCache,
16340
- cn as modelTypeEventTopicFactory,
16614
+ cm as modelTypeEventTopicFactory,
16341
16615
  modifyConfigBean,
16342
16616
  modifyFuture,
16343
16617
  pairedClientHeartbeat,
16344
- co as parseWildcardSegment,
16618
+ cn as parseWildcardSegment,
16345
16619
  pipe,
16346
16620
  post,
16347
- cp as preloadKosModel,
16621
+ co as preloadKosModel,
16348
16622
  processId,
16349
16623
  processMiddleware,
16350
- cq as put,
16624
+ cp as put,
16351
16625
  readModelHookEntry,
16352
- cr as registerCompanionModel,
16626
+ cq as registerCompanionModel,
16353
16627
  registerCoreModels,
16354
16628
  registerExtensionPoint,
16355
- cs as registerHttpRoutes,
16629
+ cr as registerHttpRoutes,
16356
16630
  registerKosModel,
16357
16631
  registerLegacyModel,
16358
- ct as resetKosModel,
16632
+ cs as resetKosModel,
16359
16633
  resetPassword,
16360
- cu as resolveBaseUrl,
16361
- cv as resolveChild,
16634
+ ct as resolveBaseUrl,
16635
+ cu as resolveChild,
16362
16636
  resolveContainerDeltas,
16363
16637
  resolveItemListDeltas,
16364
16638
  resolveKosCompanion,
16365
- cw as resolveKosContext,
16366
- cx as resolveKosProfiles,
16639
+ cv as resolveKosContext,
16640
+ cw as resolveKosProfiles,
16367
16641
  resolveListDeltas,
16368
- cy as resolveServiceRequestParameters,
16642
+ cx as resolveServiceRequestParameters,
16369
16643
  resolveServiceUrl,
16370
16644
  resolveVariable,
16371
16645
  retryWithExponentialBackoff,
16372
- cz as sendAsyncIntent,
16373
- cA as sendBroadcastMessage,
16374
- cB as sendIntent,
16646
+ cy as sendAsyncIntent,
16647
+ cz as sendBroadcastMessage,
16648
+ cA as sendIntent,
16375
16649
  sendKosHttpMessageResponse,
16376
- cC as sendKosMessage,
16650
+ cB as sendKosMessage,
16377
16651
  sendKosMessageResponse,
16378
16652
  sendRequest,
16379
- cD as sendStudioMessage,
16380
- cE as sendStudioMessageRequest,
16653
+ cC as sendStudioMessage,
16654
+ cD as sendStudioMessageRequest,
16381
16655
  startPasswordReset,
16382
16656
  stringComponentInsert,
16383
16657
  studioAcceptOrgInvitation,
@@ -16386,9 +16660,9 @@ export {
16386
16660
  studioStartPasswordReset,
16387
16661
  subscribeStore,
16388
16662
  syncPublish,
16389
- cF as troubleByTypeReducer,
16663
+ cE as troubleByTypeReducer,
16390
16664
  troubleDataFactory,
16391
- cG as unloadKosModel,
16665
+ cF as unloadKosModel,
16392
16666
  updateCompanionModelRegistration,
16393
16667
  updateModelRegistration,
16394
16668
  updateRegion,
@@ -16453,8 +16727,8 @@ export {
16453
16727
  useYearsOptions,
16454
16728
  uuid,
16455
16729
  variableToHex,
16456
- cH as waitForAppToStart,
16457
- cI as waitForAppsToStart,
16730
+ cG as waitForAppToStart,
16731
+ cH as waitForAppsToStart,
16458
16732
  waitForRequest,
16459
16733
  whenReady,
16460
16734
  withCancellation,