@ikonai/sdk-ui 1.0.16 → 1.0.17

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.
@@ -15,7 +15,7 @@ function et(t) {
15
15
  throw new Error("Protocol header exceeds payload length");
16
16
  const N = [];
17
17
  let h = 27;
18
- for (let w = 0; w < c; w++)
18
+ for (let C = 0; C < c; C++)
19
19
  N.push(e.getUint32(h, !0)), h += 4;
20
20
  return {
21
21
  length: r,
@@ -73,7 +73,7 @@ class L {
73
73
  throw new Error("Teleport payload too short");
74
74
  if (e[0] !== ne || e[e.length - 1] !== ie)
75
75
  throw new Error("Teleport object missing markers");
76
- const r = { offset: 1 }, n = C(e, r, "InvalidLength");
76
+ const r = { offset: 1 }, n = w(e, r, "InvalidLength");
77
77
  return new L(e, n, r.offset);
78
78
  }
79
79
  next() {
@@ -91,7 +91,7 @@ class L {
91
91
  if (n >= 0)
92
92
  d(this.buffer, this.offset, n), i = this.buffer.subarray(this.offset, this.offset + n), this.offset += n;
93
93
  else {
94
- const o = { offset: this.offset }, a = C(this.buffer, o, "InvalidLength");
94
+ const o = { offset: this.offset }, a = w(this.buffer, o, "InvalidLength");
95
95
  d(this.buffer, o.offset, a), i = this.buffer.subarray(o.offset, o.offset + a), this.offset = o.offset + a;
96
96
  }
97
97
  return new ae(s, r, i);
@@ -211,7 +211,7 @@ class st {
211
211
  if (this.elementType = e >> 4 & 15, (e & 15) !== 0)
212
212
  throw new Error("Array flags must be zero");
213
213
  const r = { offset: 1 };
214
- this.count = C(s, r, "ArrayMalformed"), this.offset = r.offset;
214
+ this.count = w(s, r, "ArrayMalformed"), this.offset = r.offset;
215
215
  }
216
216
  static create(s) {
217
217
  return new st(K(s));
@@ -242,13 +242,13 @@ class st {
242
242
  }
243
243
  case 12:
244
244
  case 13: {
245
- const s = { offset: this.offset }, e = C(this.payload, s, "ArrayMalformed");
245
+ const s = { offset: this.offset }, e = w(this.payload, s, "ArrayMalformed");
246
246
  d(this.payload, s.offset, e);
247
247
  const r = this.payload.subarray(s.offset, s.offset + e);
248
248
  return this.offset = s.offset + e, new M(this.elementType, r);
249
249
  }
250
250
  case 11: {
251
- const s = { offset: this.offset }, e = C(this.payload, s, "ArrayMalformed");
251
+ const s = { offset: this.offset }, e = w(this.payload, s, "ArrayMalformed");
252
252
  d(this.payload, s.offset, e);
253
253
  const r = this.payload.subarray(s.offset, s.offset + e);
254
254
  return this.offset = s.offset + e, new M(11, r);
@@ -285,7 +285,7 @@ class rt {
285
285
  throw new Error("Dictionary key/value flags must be zero");
286
286
  ct(this.keyType);
287
287
  const e = { offset: 2 };
288
- this.count = C(s, e, "DictMalformed"), this.offset = e.offset;
288
+ this.count = w(s, e, "DictMalformed"), this.offset = e.offset;
289
289
  }
290
290
  static create(s) {
291
291
  return new rt(K(s));
@@ -307,7 +307,7 @@ class rt {
307
307
  return this.offset += s, new U(this.keyType, e);
308
308
  }
309
309
  if (this.keyType === 12 || this.keyType === 13) {
310
- const e = { offset: this.offset }, r = C(this.payload, e, "DictMalformed");
310
+ const e = { offset: this.offset }, r = w(this.payload, e, "DictMalformed");
311
311
  d(this.payload, e.offset, r);
312
312
  const n = this.payload.subarray(e.offset, e.offset + r);
313
313
  return this.offset = e.offset + r, new U(this.keyType, n);
@@ -318,13 +318,13 @@ class rt {
318
318
  switch (this.valueType) {
319
319
  case 12:
320
320
  case 13: {
321
- const s = { offset: this.offset }, e = C(this.payload, s, "DictMalformed");
321
+ const s = { offset: this.offset }, e = w(this.payload, s, "DictMalformed");
322
322
  d(this.payload, s.offset, e);
323
323
  const r = this.payload.subarray(s.offset, s.offset + e);
324
324
  return this.offset = s.offset + e, new U(this.valueType, r);
325
325
  }
326
326
  case 11: {
327
- const s = { offset: this.offset }, e = C(this.payload, s, "DictMalformed");
327
+ const s = { offset: this.offset }, e = w(this.payload, s, "DictMalformed");
328
328
  d(this.payload, s.offset, e);
329
329
  const r = this.payload.subarray(s.offset, s.offset + e);
330
330
  return this.offset = s.offset + e, new U(11, r);
@@ -431,7 +431,7 @@ class T {
431
431
  return (s >>> 0).toString(16).padStart(e, "0");
432
432
  }
433
433
  }
434
- function C(t, s, e) {
434
+ function w(t, s, e) {
435
435
  if (s.offset >= t.length)
436
436
  throw new Error(e);
437
437
  let r = 0, n = 0, i = 0;
@@ -487,7 +487,7 @@ function nt(t, s) {
487
487
  const e = t[s], r = e >> 4 & 15;
488
488
  if ((e & 15) !== 0)
489
489
  throw new Error("Array flags must be zero");
490
- const n = { offset: s + 1 }, i = C(t, n, "ArrayMalformed"), o = p(r);
490
+ const n = { offset: s + 1 }, i = w(t, n, "ArrayMalformed"), o = p(r);
491
491
  if (o >= 0) {
492
492
  const c = o * i;
493
493
  return d(t, n.offset, c), n.offset + c - s;
@@ -504,7 +504,7 @@ function it(t, s) {
504
504
  if ((t[s] & 15) !== 0 || (t[s + 1] & 15) !== 0)
505
505
  throw new Error("Dictionary key/value flags must be zero");
506
506
  ct(e);
507
- const n = { offset: s + 2 }, i = C(t, n, "DictMalformed");
507
+ const n = { offset: s + 2 }, i = w(t, n, "DictMalformed");
508
508
  let o = n.offset;
509
509
  for (let a = 0; a < i; a++)
510
510
  o = q(e, t, o, "DictMalformed"), o = q(r, t, o, "DictMalformed");
@@ -517,11 +517,11 @@ function q(t, s, e, r) {
517
517
  switch (t) {
518
518
  case 12:
519
519
  case 13: {
520
- const i = { offset: e }, o = C(s, i, r);
520
+ const i = { offset: e }, o = w(s, i, r);
521
521
  return d(s, i.offset, o), i.offset + o;
522
522
  }
523
523
  case 11: {
524
- const i = { offset: e }, o = C(s, i, r);
524
+ const i = { offset: e }, o = w(s, i, r);
525
525
  return d(s, i.offset, o), i.offset + o;
526
526
  }
527
527
  case 9:
@@ -538,18 +538,18 @@ function at(t) {
538
538
  function K(t) {
539
539
  return t instanceof Uint8Array ? t : new Uint8Array(t);
540
540
  }
541
- var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(_t || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(ft || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), St = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(dt || {}), O = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(O || {});
541
+ var Et = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(Et || {}), _t = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MobileWeb = 1] = "MobileWeb", t[t.MobileApp = 2] = "MobileApp", t[t.DesktopWeb = 3] = "DesktopWeb", t[t.DesktopApp = 4] = "DesktopApp", t))(_t || {}), ft = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Backend = 2] = "Backend", t[t.Server = 4] = "Server", t[t.Plugin = 8] = "Plugin", t[t.Browser = 16] = "Browser", t))(ft || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.MessagePack = 1] = "MessagePack", t[t.MemoryPack = 2] = "MemoryPack", t[t.Json = 4] = "Json", t[t.Teleport = 8] = "Teleport", t[t.All = 15] = "All", t))(ht || {}), ut = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ut || {}), Tt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(Tt || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.H264 = 1] = "H264", t[t.Vp8 = 2] = "Vp8", t[t.Vp9 = 3] = "Vp9", t[t.Av1 = 4] = "Av1", t))(Nt || {}), At = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(At || {}), St = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(St || {}), dt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(dt || {}), O = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", t[t.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", t[t.GROUP_CORE = 65536] = "GROUP_CORE", t[t.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", t[t.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", t[t.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", t[t.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", t[t.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", t[t.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", t[t.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", t[t.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", t[t.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", t[t.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", t[t.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", t[t.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", t[t.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", t[t.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", t[t.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", t[t.CORE_SERVER_START = 65552] = "CORE_SERVER_START", t[t.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", t[t.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", t[t.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", t[t.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", t[t.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", t[t.CORE_UPDATE_CLIENT_CONTEXT = 65558] = "CORE_UPDATE_CLIENT_CONTEXT", t[t.CORE_WEBRTC_OFFER = 65566] = "CORE_WEBRTC_OFFER", t[t.CORE_WEBRTC_ANSWER = 65567] = "CORE_WEBRTC_ANSWER", t[t.CORE_WEBRTC_ICE_CANDIDATE = 65568] = "CORE_WEBRTC_ICE_CANDIDATE", t[t.CORE_WEBRTC_READY = 65569] = "CORE_WEBRTC_READY", t[t.CORE_WEBRTC_AUDIO_SEGMENT = 65570] = "CORE_WEBRTC_AUDIO_SEGMENT", t[t.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", t[t.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", t[t.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", t[t.GROUP_EVENTS = 262144] = "GROUP_EVENTS", t[t.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", t[t.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", t[t.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", t[t.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", t[t.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", t[t.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", t[t.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", t[t.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", t[t.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", t[t.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", t[t.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", t[t.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", t[t.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", t[t.ACTION_CALL = 1048577] = "ACTION_CALL", t[t.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", t[t.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", t[t.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", t[t.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", t[t.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", t[t.ACTION_TAP = 1048583] = "ACTION_TAP", t[t.ACTION_PAN = 1048584] = "ACTION_PAN", t[t.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", t[t.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", t[t.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", t[t.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", t[t.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", t[t.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", t[t.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", t[t.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", t[t.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", t[t.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", t[t.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", t[t.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", t[t.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", t[t.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", t[t.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", t[t.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", t[t.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", t[t.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", t[t.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", t[t.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", t[t.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", t[t.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", t[t.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", t[t.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", t[t.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", t[t.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", t[t.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", t[t.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", t[t.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", t[t.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", t[t.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", t[t.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", t[t.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", t[t.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", t[t.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", t[t.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", t[t.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", t[t.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", t[t.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", t[t.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", t[t.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", t[t.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", t[t.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", t[t.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", t[t.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", t[t.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", t[t.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", t[t.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", t[t.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", t[t.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", t[t.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", t[t.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", t[t.ACTION_CALL2 = 1048637] = "ACTION_CALL2", t[t.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", t[t.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", t[t.ACTION_FILE_UPLOAD_CALLBACK = 1048640] = "ACTION_FILE_UPLOAD_CALLBACK", t[t.ACTION_CUSTOM_USER_MESSAGE = 1048641] = "ACTION_CUSTOM_USER_MESSAGE", t[t.GROUP_UI = 2097152] = "GROUP_UI", t[t.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", t[t.UI_STREAM_END = 2097154] = "UI_STREAM_END", t[t.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", t[t.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", t[t.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", t[t.UI_SECTION_END = 2097158] = "UI_SECTION_END", t[t.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", t[t.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", t[t.UI_LIST_END = 2097161] = "UI_LIST_END", t[t.UI_TEXT = 2097162] = "UI_TEXT", t[t.UI_HEADER = 2097163] = "UI_HEADER", t[t.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", t[t.UI_BUTTON = 2097165] = "UI_BUTTON", t[t.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", t[t.UI_IMAGE = 2097167] = "UI_IMAGE", t[t.UI_FILE = 2097168] = "UI_FILE", t[t.UI_BADGE = 2097169] = "UI_BADGE", t[t.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", t[t.UI_MAP = 2097171] = "UI_MAP", t[t.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", t[t.UI_ICON = 2097173] = "UI_ICON", t[t.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", t[t.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", t[t.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", t[t.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", t[t.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", t[t.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", t[t.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", t[t.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", t[t.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", t[t.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", t[t.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", t[t.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", t[t.UI_QS = 2097186] = "UI_QS", t[t.UI_ELEMENT = 2097187] = "UI_ELEMENT", t[t.UI_STYLES = 2097188] = "UI_STYLES", t[t.UI_SVG = 2097189] = "UI_SVG", t[t.UI_UPDATE = 2097190] = "UI_UPDATE", t[t.UI_INIT = 2097191] = "UI_INIT", t[t.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", t[t.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", t[t.GROUP_COMMON = 4128768] = "GROUP_COMMON", t[t.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", t[t.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", t[t.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", t[t.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", t[t.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", t[t.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", t[t.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", t[t.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", t[t.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", t[t.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", t[t.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", t[t.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", t[t.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", t[t.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", t[t.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", t[t.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", t[t.GROUP_SCENE = 33554432] = "GROUP_SCENE", t[t.SCENE_MESH = 33554433] = "SCENE_MESH", t[t.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", t[t.GROUP_ALL = 67043328] = "GROUP_ALL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(O || {});
542
542
  const Ee = 161083277, _e = 265814330, fe = 1368629611, he = 2431514951, ue = 2745379226, Te = 3282782683, Ne = 3284746250, Ae = 4101844078;
543
543
  function yt(t) {
544
544
  const s = {};
545
- return wt(s), s;
545
+ return Ct(s), s;
546
546
  }
547
- function wt(t) {
547
+ function Ct(t) {
548
548
  return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Et.Unknown, t.CodecDetails = "", t.SampleRate = 0, t.Channels = 0, t.ShapeSets = void 0, t;
549
549
  }
550
550
  function Se(t, s) {
551
551
  const e = s ?? yt();
552
- return wt(e), de(t, e), e;
552
+ return Ct(e), de(t, e), e;
553
553
  }
554
554
  function de(t, s) {
555
555
  let e;
@@ -607,28 +607,28 @@ function ye(t) {
607
607
  s.push(Re(e.asObject()));
608
608
  return s;
609
609
  }
610
- const we = 1107713536, Ce = 1154362099, De = 1185721362;
610
+ const Ce = 1107713536, we = 1154362099, De = 1185721362;
611
611
  function Ue(t) {
612
612
  const s = {};
613
- return Ct(s), s;
613
+ return wt(s), s;
614
614
  }
615
- function Ct(t) {
615
+ function wt(t) {
616
616
  return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
617
617
  }
618
618
  function Re(t, s) {
619
619
  const e = s ?? Ue();
620
- return Ct(e), me(t, e), e;
620
+ return wt(e), me(t, e), e;
621
621
  }
622
622
  function me(t, s) {
623
623
  let e;
624
624
  for (; (e = t.next()) !== null; )
625
625
  switch (e.fieldId) {
626
- case we: {
626
+ case Ce: {
627
627
  if (e.isNull) throw new Error();
628
628
  s.Name = e.asString();
629
629
  break;
630
630
  }
631
- case Ce: {
631
+ case we: {
632
632
  if (e.isNull) throw new Error();
633
633
  s.SetId = e.asUInt32();
634
634
  break;
@@ -647,7 +647,7 @@ function Le(t) {
647
647
  s.push(e.asString());
648
648
  return s;
649
649
  }
650
- const Oe = 76337612, ge = 185396121, Pe = 250031587, be = 388632637, Fe = 417197284, pe = 469070965, ve = 470595159, Me = 781727218, ke = 834078886, Ve = 1043273762, Ge = 1236999138, Be = 1286979607, xe = 1368629611, He = 1715899485, Ye = 1942830531, $e = 1999510636, Ke = 2033288346, Xe = 2079864626, je = 2142346422, ze = 2232517119, We = 2598291686, Je = 2719718823, qe = 2810953526, Qe = 2840065720, Ze = 2885165957, ts = 3542818975, es = 3586157513, ss = 3717933110, rs = 4062655306;
650
+ const Oe = 76337612, ge = 185396121, Pe = 250031587, be = 388632637, Fe = 417197284, pe = 469070965, ve = 470595159, Me = 781727218, ke = 834078886, Ve = 1043273762, Ge = 1236999138, Be = 1286979607, xe = 1368629611, He = 1715899485, Ye = 1942830531, $e = 1999510636, Ke = 2033288346, Xe = 2079864626, je = 2142346422, We = 2232517119, ze = 2598291686, Je = 2719718823, qe = 2810953526, Qe = 2840065720, Ze = 2885165957, ts = 3542818975, es = 3586157513, ss = 3717933110, rs = 4062655306;
651
651
  function ns(t) {
652
652
  const s = {};
653
653
  return Dt(s), s;
@@ -758,12 +758,12 @@ function os(t, s) {
758
758
  s.PayloadType = e.asInt32();
759
759
  break;
760
760
  }
761
- case ze: {
761
+ case We: {
762
762
  if (e.isNull) throw new Error();
763
763
  s.IsTouchDevice = e.asBool();
764
764
  break;
765
765
  }
766
- case We: {
766
+ case ze: {
767
767
  if (e.isNull) throw new Error();
768
768
  s.VersionId = e.asString();
769
769
  break;
@@ -819,19 +819,19 @@ function as(t) {
819
819
  }
820
820
  return s;
821
821
  }
822
- const ls = 703025676, Is = 814454131, cs = 972460562, Es = 976255570, _s = 1368629611, fs = 1479280922, hs = 1533537016, us = 2274386296, Ts = 2603556958, Ns = 2885165957, As = 3568439632;
823
- function Ss(t) {
822
+ const ls = 703025676, Is = 814454131, cs = 972460562, Es = 976255570, _s = 1368629611, fs = 1479280922, hs = 1533537016, us = 1909301063, Ts = 2274386296, Ns = 2603556958, As = 2885165957, Ss = 3568439632;
823
+ function ds(t) {
824
824
  const s = {};
825
825
  return Ut(s), s;
826
826
  }
827
827
  function Ut(t) {
828
- return t.FunctionId = T.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t;
829
- }
830
- function ds(t, s) {
831
- const e = s ?? Ss();
832
- return Ut(e), ys(t, e), e;
828
+ return t.FunctionId = T.fromBytes(new Uint8Array(16)), t.FunctionName = "", t.Parameters = [], t.ResultTypeName = "", t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.IsCancellable = !1, t.Description = "", t.LlmInlineResult = !1, t.LlmCallOnlyOnce = !1, t.RequiresInstance = !1, t.Versions = [], t;
833
829
  }
834
830
  function ys(t, s) {
831
+ const e = s ?? ds();
832
+ return Ut(e), Cs(t, e), e;
833
+ }
834
+ function Cs(t, s) {
835
835
  let e;
836
836
  for (; (e = t.next()) !== null; )
837
837
  switch (e.fieldId) {
@@ -872,20 +872,25 @@ function ys(t, s) {
872
872
  }
873
873
  case us: {
874
874
  if (e.isNull) throw new Error();
875
- s.LlmInlineResult = e.asBool();
875
+ s.Versions = ws(e.asArray());
876
876
  break;
877
877
  }
878
878
  case Ts: {
879
879
  if (e.isNull) throw new Error();
880
- s.IsEnumerable = e.asBool();
880
+ s.LlmInlineResult = e.asBool();
881
881
  break;
882
882
  }
883
883
  case Ns: {
884
884
  if (e.isNull) throw new Error();
885
- s.Parameters = ws(e.asArray());
885
+ s.IsEnumerable = e.asBool();
886
886
  break;
887
887
  }
888
888
  case As: {
889
+ if (e.isNull) throw new Error();
890
+ s.Parameters = Ds(e.asArray());
891
+ break;
892
+ }
893
+ case Ss: {
889
894
  if (e.isNull) throw new Error();
890
895
  s.LlmCallOnlyOnce = e.asBool();
891
896
  break;
@@ -896,73 +901,80 @@ function ws(t) {
896
901
  const s = [];
897
902
  let e;
898
903
  for (; (e = t.next()) !== null; )
899
- s.push(Fs(e.asObject()));
904
+ s.push(e.asString());
905
+ return s;
906
+ }
907
+ function Ds(t) {
908
+ const s = [];
909
+ let e;
910
+ for (; (e = t.next()) !== null; )
911
+ s.push(vs(e.asObject()));
900
912
  return s;
901
913
  }
902
- const Cs = 607861992, Ds = 894485888, Us = 972460562, Rs = 1368629611, ms = 1883521406, Ls = 2603556958, Os = 3609695522, gs = 4075263697, Ps = 4257460908;
903
- function bs(t) {
914
+ const Us = 607861992, Rs = 894485888, ms = 972460562, Ls = 1368629611, Os = 1883521406, gs = 2603556958, Ps = 3609695522, bs = 4075263697, Fs = 4257460908;
915
+ function ps(t) {
904
916
  const s = {};
905
917
  return Rt(s), s;
906
918
  }
907
919
  function Rt(t) {
908
920
  return t.ParameterIndex = 0, t.ParameterName = "", t.TypeName = "", t.HasDefaultValue = !1, t.DefaultValueJson = "", t.DefaultValueData = new Uint8Array(0), t.IsEnumerable = !1, t.EnumerableItemTypeName = "", t.Description = "", t;
909
921
  }
910
- function Fs(t, s) {
911
- const e = s ?? bs();
912
- return Rt(e), ps(t, e), e;
922
+ function vs(t, s) {
923
+ const e = s ?? ps();
924
+ return Rt(e), Ms(t, e), e;
913
925
  }
914
- function ps(t, s) {
926
+ function Ms(t, s) {
915
927
  let e;
916
928
  for (; (e = t.next()) !== null; )
917
929
  switch (e.fieldId) {
918
- case Cs: {
930
+ case Us: {
919
931
  if (e.isNull) throw new Error();
920
932
  s.HasDefaultValue = e.asBool();
921
933
  break;
922
934
  }
923
- case Ds: {
935
+ case Rs: {
924
936
  if (e.isNull) throw new Error();
925
937
  s.DefaultValueJson = e.asString();
926
938
  break;
927
939
  }
928
- case Us: {
940
+ case ms: {
929
941
  if (e.isNull) throw new Error();
930
942
  s.EnumerableItemTypeName = e.asString();
931
943
  break;
932
944
  }
933
- case Rs: {
945
+ case Ls: {
934
946
  if (e.isNull) throw new Error();
935
947
  s.Description = e.asString();
936
948
  break;
937
949
  }
938
- case ms: {
950
+ case Os: {
939
951
  if (e.isNull) throw new Error();
940
952
  s.DefaultValueData = e.asBinary();
941
953
  break;
942
954
  }
943
- case Ls: {
955
+ case gs: {
944
956
  if (e.isNull) throw new Error();
945
957
  s.IsEnumerable = e.asBool();
946
958
  break;
947
959
  }
948
- case Os: {
960
+ case Ps: {
949
961
  if (e.isNull) throw new Error();
950
962
  s.TypeName = e.asString();
951
963
  break;
952
964
  }
953
- case gs: {
965
+ case bs: {
954
966
  if (e.isNull) throw new Error();
955
967
  s.ParameterName = e.asString();
956
968
  break;
957
969
  }
958
- case Ps: {
970
+ case Fs: {
959
971
  if (e.isNull) throw new Error();
960
972
  s.ParameterIndex = e.asInt32();
961
973
  break;
962
974
  }
963
975
  }
964
976
  }
965
- const vs = 3167053791, Ms = 3342364356, ks = 3612929027;
977
+ const ks = 3167053791, Vs = 3342364356, Gs = 3612929027;
966
978
  function mt(t) {
967
979
  const s = {};
968
980
  return Lt(s), s;
@@ -970,39 +982,39 @@ function mt(t) {
970
982
  function Lt(t) {
971
983
  return t.Category = "", t.Type = ut.Face, t.FaceBlendshapes = [], t;
972
984
  }
973
- function Vs(t, s) {
985
+ function Bs(t, s) {
974
986
  const e = s ?? mt();
975
- return Lt(e), Gs(t, e), e;
987
+ return Lt(e), xs(t, e), e;
976
988
  }
977
- function Gs(t, s) {
989
+ function xs(t, s) {
978
990
  let e;
979
991
  for (; (e = t.next()) !== null; )
980
992
  switch (e.fieldId) {
981
- case vs: {
993
+ case ks: {
982
994
  if (e.isNull) throw new Error();
983
995
  s.Type = e.asInt32();
984
996
  break;
985
997
  }
986
- case Ms: {
998
+ case Vs: {
987
999
  if (e.isNull) throw new Error();
988
- s.FaceBlendshapes = Bs(e.asArray());
1000
+ s.FaceBlendshapes = Hs(e.asArray());
989
1001
  break;
990
1002
  }
991
- case ks: {
1003
+ case Gs: {
992
1004
  if (e.isNull) throw new Error();
993
1005
  s.Category = e.asString();
994
1006
  break;
995
1007
  }
996
1008
  }
997
1009
  }
998
- function Bs(t) {
1010
+ function Hs(t) {
999
1011
  const s = [];
1000
1012
  let e;
1001
1013
  for (; (e = t.next()) !== null; )
1002
1014
  s.push(e.asString());
1003
1015
  return s;
1004
1016
  }
1005
- const xs = 3612929027;
1017
+ const Ys = 3612929027;
1006
1018
  function Ot(t) {
1007
1019
  const s = {};
1008
1020
  return gt(s), s;
@@ -1010,22 +1022,22 @@ function Ot(t) {
1010
1022
  function gt(t) {
1011
1023
  return t.Category = "", t;
1012
1024
  }
1013
- function Hs(t, s) {
1025
+ function $s(t, s) {
1014
1026
  const e = s ?? Ot();
1015
- return gt(e), Ys(t, e), e;
1027
+ return gt(e), Ks(t, e), e;
1016
1028
  }
1017
- function Ys(t, s) {
1029
+ function Ks(t, s) {
1018
1030
  let e;
1019
1031
  for (; (e = t.next()) !== null; )
1020
1032
  switch (e.fieldId) {
1021
- case xs: {
1033
+ case Ys: {
1022
1034
  if (e.isNull) throw new Error();
1023
1035
  s.Category = e.asString();
1024
1036
  break;
1025
1037
  }
1026
1038
  }
1027
1039
  }
1028
- const $s = 161083277, Ks = 164808083, Xs = 1368629611, js = 2745379226, zs = 2950031986, Ws = 3282782683, Js = 3284746250, qs = 4065070594;
1040
+ const Xs = 161083277, js = 164808083, Ws = 1368629611, zs = 2745379226, Js = 2950031986, qs = 3282782683, Qs = 3284746250, Zs = 4065070594;
1029
1041
  function Pt(t) {
1030
1042
  const s = {};
1031
1043
  return bt(s), s;
@@ -1033,183 +1045,183 @@ function Pt(t) {
1033
1045
  function bt(t) {
1034
1046
  return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Nt.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t;
1035
1047
  }
1036
- function Qs(t, s) {
1048
+ function tr(t, s) {
1037
1049
  const e = s ?? Pt();
1038
- return bt(e), Zs(t, e), e;
1050
+ return bt(e), er(t, e), e;
1039
1051
  }
1040
- function Zs(t, s) {
1052
+ function er(t, s) {
1041
1053
  let e;
1042
1054
  for (; (e = t.next()) !== null; )
1043
1055
  switch (e.fieldId) {
1044
- case $s: {
1056
+ case Xs: {
1045
1057
  if (e.isNull) throw new Error();
1046
1058
  s.StreamId = e.asString();
1047
1059
  break;
1048
1060
  }
1049
- case Ks: {
1061
+ case js: {
1050
1062
  if (e.isNull) throw new Error();
1051
1063
  s.Framerate = e.asFloat64();
1052
1064
  break;
1053
1065
  }
1054
- case Xs: {
1066
+ case Ws: {
1055
1067
  if (e.isNull) throw new Error();
1056
1068
  s.Description = e.asString();
1057
1069
  break;
1058
1070
  }
1059
- case js: {
1071
+ case zs: {
1060
1072
  if (e.isNull) throw new Error();
1061
1073
  s.CodecDetails = e.asString();
1062
1074
  break;
1063
1075
  }
1064
- case zs: {
1076
+ case Js: {
1065
1077
  if (e.isNull) throw new Error();
1066
1078
  s.Height = e.asInt32();
1067
1079
  break;
1068
1080
  }
1069
- case Ws: {
1081
+ case qs: {
1070
1082
  if (e.isNull) throw new Error();
1071
1083
  s.SourceType = e.asString();
1072
1084
  break;
1073
1085
  }
1074
- case Js: {
1086
+ case Qs: {
1075
1087
  if (e.isNull) throw new Error();
1076
1088
  s.Codec = e.asInt32();
1077
1089
  break;
1078
1090
  }
1079
- case qs: {
1091
+ case Zs: {
1080
1092
  if (e.isNull) throw new Error();
1081
1093
  s.Width = e.asInt32();
1082
1094
  break;
1083
1095
  }
1084
1096
  }
1085
1097
  }
1086
- const tr = 65539, er = 693643444, sr = 1144553441, rr = 1497620243, nr = 1559330978, ir = 1976546434, or = 1999510636, ar = 2271236852, lr = 2277643855, Ir = 2469008121, cr = 3042922213, Er = 3064612128, _r = 3219210453, fr = 3504054055, hr = 3678477544, ur = 3696445035, Tr = 3707543140, Nr = 3712281496, Ar = 3895362455, Sr = 3897397815, dr = 4225107827;
1087
- function yr(t) {
1098
+ const sr = 65539, rr = 693643444, nr = 1144553441, ir = 1497620243, or = 1559330978, ar = 1976546434, lr = 1999510636, Ir = 2271236852, cr = 2277643855, Er = 2469008121, _r = 3042922213, fr = 3064612128, hr = 3219210453, ur = 3504054055, Tr = 3678477544, Nr = 3696445035, Ar = 3707543140, Sr = 3712281496, dr = 3895362455, yr = 3897397815, Cr = 4225107827;
1099
+ function wr(t) {
1088
1100
  const s = {};
1089
1101
  return Ft(s), s;
1090
1102
  }
1091
1103
  function Ft(t) {
1092
1104
  return t.Clients = /* @__PURE__ */ Object.create(null), t.Functions = /* @__PURE__ */ Object.create(null), t.UIStreams = /* @__PURE__ */ Object.create(null), t.AudioStreams = /* @__PURE__ */ Object.create(null), t.VideoStreams = /* @__PURE__ */ Object.create(null), t.TrackingStreams = /* @__PURE__ */ Object.create(null), t.SpaceId = "", t.ChannelId = "", t.SessionId = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = St.Local, t.AppSourceType = dt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
1093
1105
  }
1094
- function wr(t, s) {
1106
+ function Dr(t, s) {
1095
1107
  const e = L.create(t);
1096
- return Cr(e, s);
1108
+ return Ur(e, s);
1097
1109
  }
1098
- function Cr(t, s) {
1099
- const e = s ?? yr();
1100
- return Ft(e), Dr(t, e), e;
1110
+ function Ur(t, s) {
1111
+ const e = s ?? wr();
1112
+ return Ft(e), Rr(t, e), e;
1101
1113
  }
1102
- function Dr(t, s) {
1114
+ function Rr(t, s) {
1103
1115
  let e;
1104
1116
  for (; (e = t.next()) !== null; )
1105
1117
  switch (e.fieldId) {
1106
- case er: {
1118
+ case rr: {
1107
1119
  if (e.isNull) throw new Error();
1108
1120
  s.FirstUserId = e.asString();
1109
1121
  break;
1110
1122
  }
1111
- case sr: {
1123
+ case nr: {
1112
1124
  if (e.isNull) throw new Error();
1113
- s.Clients = Rr(e.asDictionary());
1125
+ s.Clients = Lr(e.asDictionary());
1114
1126
  break;
1115
1127
  }
1116
- case rr: {
1128
+ case ir: {
1117
1129
  if (e.isNull) throw new Error();
1118
- s.TrackingStreams = mr(e.asDictionary());
1130
+ s.TrackingStreams = Or(e.asDictionary());
1119
1131
  break;
1120
1132
  }
1121
- case nr: {
1133
+ case or: {
1122
1134
  if (e.isNull) throw new Error();
1123
1135
  s.ChannelId = e.asString();
1124
1136
  break;
1125
1137
  }
1126
- case ir: {
1138
+ case ar: {
1127
1139
  if (e.isNull) throw new Error();
1128
1140
  s.AppSourceType = e.asInt32();
1129
1141
  break;
1130
1142
  }
1131
- case or: {
1143
+ case lr: {
1132
1144
  if (e.isNull) throw new Error();
1133
1145
  s.SessionId = e.asString();
1134
1146
  break;
1135
1147
  }
1136
- case ar: {
1148
+ case Ir: {
1137
1149
  if (e.isNull) throw new Error();
1138
1150
  s.SessionChannelUrl = e.asString();
1139
1151
  break;
1140
1152
  }
1141
- case lr: {
1153
+ case cr: {
1142
1154
  if (e.isNull) throw new Error();
1143
1155
  s.ChannelUrl = e.asString();
1144
1156
  break;
1145
1157
  }
1146
- case Ir: {
1158
+ case Er: {
1147
1159
  if (e.isNull) throw new Error();
1148
1160
  s.ChannelName = e.asString();
1149
1161
  break;
1150
1162
  }
1151
- case cr: {
1163
+ case _r: {
1152
1164
  if (e.isNull) throw new Error();
1153
1165
  s.PublicAccess = e.asBool();
1154
1166
  break;
1155
1167
  }
1156
- case Er: {
1168
+ case fr: {
1157
1169
  if (e.isNull) throw new Error();
1158
1170
  s.ServerRunType = e.asInt32();
1159
1171
  break;
1160
1172
  }
1161
- case _r: {
1173
+ case hr: {
1162
1174
  if (e.isNull) throw new Error();
1163
1175
  s.OrganisationName = e.asString();
1164
1176
  break;
1165
1177
  }
1166
- case fr: {
1178
+ case ur: {
1167
1179
  if (e.isNull) throw new Error();
1168
1180
  s.DebugMode = e.asBool();
1169
1181
  break;
1170
1182
  }
1171
- case hr: {
1183
+ case Tr: {
1172
1184
  if (e.isNull) throw new Error();
1173
- s.Functions = Lr(e.asDictionary());
1185
+ s.Functions = gr(e.asDictionary());
1174
1186
  break;
1175
1187
  }
1176
- case ur: {
1188
+ case Nr: {
1177
1189
  if (e.isNull) throw new Error();
1178
- s.UIStreams = Or(e.asDictionary());
1190
+ s.UIStreams = Pr(e.asDictionary());
1179
1191
  break;
1180
1192
  }
1181
- case Tr: {
1193
+ case Ar: {
1182
1194
  if (e.isNull) throw new Error();
1183
1195
  s.SpaceId = e.asString();
1184
1196
  break;
1185
1197
  }
1186
- case Nr: {
1198
+ case Sr: {
1187
1199
  if (e.isNull) throw new Error();
1188
1200
  s.PrimaryUserId = e.asString();
1189
1201
  break;
1190
1202
  }
1191
- case Ar: {
1203
+ case dr: {
1192
1204
  if (e.isNull) throw new Error();
1193
- s.AudioStreams = gr(e.asDictionary());
1205
+ s.AudioStreams = br(e.asDictionary());
1194
1206
  break;
1195
1207
  }
1196
- case Sr: {
1208
+ case yr: {
1197
1209
  if (e.isNull) throw new Error();
1198
- s.VideoStreams = Pr(e.asDictionary());
1210
+ s.VideoStreams = Fr(e.asDictionary());
1199
1211
  break;
1200
1212
  }
1201
- case dr: {
1213
+ case Cr: {
1202
1214
  if (e.isNull) throw new Error();
1203
1215
  s.SpaceName = e.asString();
1204
1216
  break;
1205
1217
  }
1206
1218
  }
1207
1219
  }
1208
- async function Ur(t, s) {
1209
- const e = await $(t, tr);
1210
- return wr(e, s);
1220
+ async function mr(t, s) {
1221
+ const e = await $(t, sr);
1222
+ return Dr(e, s);
1211
1223
  }
1212
- function Rr(t) {
1224
+ function Lr(t) {
1213
1225
  const s = /* @__PURE__ */ Object.create(null);
1214
1226
  let e;
1215
1227
  for (; (e = t.next()) !== null; ) {
@@ -1218,275 +1230,275 @@ function Rr(t) {
1218
1230
  }
1219
1231
  return s;
1220
1232
  }
1221
- function mr(t) {
1233
+ function Or(t) {
1222
1234
  const s = /* @__PURE__ */ Object.create(null);
1223
1235
  let e;
1224
1236
  for (; (e = t.next()) !== null; ) {
1225
1237
  const r = e.key.asString();
1226
- s[r] = on(e.value.asObject());
1238
+ s[r] = ln(e.value.asObject());
1227
1239
  }
1228
1240
  return s;
1229
1241
  }
1230
- function Lr(t) {
1242
+ function gr(t) {
1231
1243
  const s = /* @__PURE__ */ Object.create(null);
1232
1244
  let e;
1233
1245
  for (; (e = t.next()) !== null; ) {
1234
1246
  const r = e.key.asInt32();
1235
- s[r] = br(e.value.asArray());
1247
+ s[r] = pr(e.value.asArray());
1236
1248
  }
1237
1249
  return s;
1238
1250
  }
1239
- function Or(t) {
1251
+ function Pr(t) {
1240
1252
  const s = /* @__PURE__ */ Object.create(null);
1241
1253
  let e;
1242
1254
  for (; (e = t.next()) !== null; ) {
1243
1255
  const r = e.key.asString();
1244
- s[r] = Vr(e.value.asObject());
1256
+ s[r] = Br(e.value.asObject());
1245
1257
  }
1246
1258
  return s;
1247
1259
  }
1248
- function gr(t) {
1260
+ function br(t) {
1249
1261
  const s = /* @__PURE__ */ Object.create(null);
1250
1262
  let e;
1251
1263
  for (; (e = t.next()) !== null; ) {
1252
1264
  const r = e.key.asString();
1253
- s[r] = Kr(e.value.asObject());
1265
+ s[r] = jr(e.value.asObject());
1254
1266
  }
1255
1267
  return s;
1256
1268
  }
1257
- function Pr(t) {
1269
+ function Fr(t) {
1258
1270
  const s = /* @__PURE__ */ Object.create(null);
1259
1271
  let e;
1260
1272
  for (; (e = t.next()) !== null; ) {
1261
1273
  const r = e.key.asString();
1262
- s[r] = Qr(e.value.asObject());
1274
+ s[r] = tn(e.value.asObject());
1263
1275
  }
1264
1276
  return s;
1265
1277
  }
1266
- function br(t) {
1278
+ function pr(t) {
1267
1279
  const s = [];
1268
1280
  let e;
1269
1281
  for (; (e = t.next()) !== null; )
1270
- s.push(ds(e.asObject()));
1282
+ s.push(ys(e.asObject()));
1271
1283
  return s;
1272
1284
  }
1273
- const Fr = 161083277, pr = 325678206, vr = 3469892363, Mr = 3645544153;
1274
- function kr(t) {
1285
+ const vr = 161083277, Mr = 325678206, kr = 3469892363, Vr = 3645544153;
1286
+ function Gr(t) {
1275
1287
  const s = {};
1276
1288
  return pt(s), s;
1277
1289
  }
1278
1290
  function pt(t) {
1279
1291
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ot(), t;
1280
1292
  }
1281
- function Vr(t, s) {
1282
- const e = s ?? kr();
1283
- return pt(e), Gr(t, e), e;
1293
+ function Br(t, s) {
1294
+ const e = s ?? Gr();
1295
+ return pt(e), xr(t, e), e;
1284
1296
  }
1285
- function Gr(t, s) {
1297
+ function xr(t, s) {
1286
1298
  let e;
1287
1299
  for (; (e = t.next()) !== null; )
1288
1300
  switch (e.fieldId) {
1289
- case Fr: {
1301
+ case vr: {
1290
1302
  if (e.isNull) throw new Error();
1291
1303
  s.StreamId = e.asString();
1292
1304
  break;
1293
1305
  }
1294
- case pr: {
1306
+ case Mr: {
1295
1307
  if (e.isNull) throw new Error();
1296
1308
  s.ClientSessionId = e.asInt32();
1297
1309
  break;
1298
1310
  }
1299
- case vr: {
1311
+ case kr: {
1300
1312
  if (e.isNull) throw new Error();
1301
1313
  s.TrackId = e.asInt32();
1302
1314
  break;
1303
1315
  }
1304
- case Mr: {
1316
+ case Vr: {
1305
1317
  if (e.isNull) throw new Error();
1306
- s.Info = Hs(e.asObject());
1318
+ s.Info = $s(e.asObject());
1307
1319
  break;
1308
1320
  }
1309
1321
  }
1310
1322
  }
1311
- const Br = 161083277, xr = 325678206, Hr = 3469892363, Yr = 3645544153;
1312
- function $r(t) {
1323
+ const Hr = 161083277, Yr = 325678206, $r = 3469892363, Kr = 3645544153;
1324
+ function Xr(t) {
1313
1325
  const s = {};
1314
1326
  return vt(s), s;
1315
1327
  }
1316
1328
  function vt(t) {
1317
1329
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yt(), t;
1318
1330
  }
1319
- function Kr(t, s) {
1320
- const e = s ?? $r();
1321
- return vt(e), Xr(t, e), e;
1331
+ function jr(t, s) {
1332
+ const e = s ?? Xr();
1333
+ return vt(e), Wr(t, e), e;
1322
1334
  }
1323
- function Xr(t, s) {
1335
+ function Wr(t, s) {
1324
1336
  let e;
1325
1337
  for (; (e = t.next()) !== null; )
1326
1338
  switch (e.fieldId) {
1327
- case Br: {
1339
+ case Hr: {
1328
1340
  if (e.isNull) throw new Error();
1329
1341
  s.StreamId = e.asString();
1330
1342
  break;
1331
1343
  }
1332
- case xr: {
1344
+ case Yr: {
1333
1345
  if (e.isNull) throw new Error();
1334
1346
  s.ClientSessionId = e.asInt32();
1335
1347
  break;
1336
1348
  }
1337
- case Hr: {
1349
+ case $r: {
1338
1350
  if (e.isNull) throw new Error();
1339
1351
  s.TrackId = e.asInt32();
1340
1352
  break;
1341
1353
  }
1342
- case Yr: {
1354
+ case Kr: {
1343
1355
  if (e.isNull) throw new Error();
1344
1356
  s.Info = Se(e.asObject());
1345
1357
  break;
1346
1358
  }
1347
1359
  }
1348
1360
  }
1349
- const jr = 161083277, zr = 325678206, Wr = 3469892363, Jr = 3645544153;
1350
- function qr(t) {
1361
+ const zr = 161083277, Jr = 325678206, qr = 3469892363, Qr = 3645544153;
1362
+ function Zr(t) {
1351
1363
  const s = {};
1352
1364
  return Mt(s), s;
1353
1365
  }
1354
1366
  function Mt(t) {
1355
1367
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Pt(), t;
1356
1368
  }
1357
- function Qr(t, s) {
1358
- const e = s ?? qr();
1359
- return Mt(e), Zr(t, e), e;
1369
+ function tn(t, s) {
1370
+ const e = s ?? Zr();
1371
+ return Mt(e), en(t, e), e;
1360
1372
  }
1361
- function Zr(t, s) {
1373
+ function en(t, s) {
1362
1374
  let e;
1363
1375
  for (; (e = t.next()) !== null; )
1364
1376
  switch (e.fieldId) {
1365
- case jr: {
1377
+ case zr: {
1366
1378
  if (e.isNull) throw new Error();
1367
1379
  s.StreamId = e.asString();
1368
1380
  break;
1369
1381
  }
1370
- case zr: {
1382
+ case Jr: {
1371
1383
  if (e.isNull) throw new Error();
1372
1384
  s.ClientSessionId = e.asInt32();
1373
1385
  break;
1374
1386
  }
1375
- case Wr: {
1387
+ case qr: {
1376
1388
  if (e.isNull) throw new Error();
1377
1389
  s.TrackId = e.asInt32();
1378
1390
  break;
1379
1391
  }
1380
- case Jr: {
1392
+ case Qr: {
1381
1393
  if (e.isNull) throw new Error();
1382
- s.Info = Qs(e.asObject());
1394
+ s.Info = tr(e.asObject());
1383
1395
  break;
1384
1396
  }
1385
1397
  }
1386
1398
  }
1387
- const tn = 161083277, en = 325678206, sn = 3469892363, rn = 3645544153;
1388
- function nn(t) {
1399
+ const sn = 161083277, rn = 325678206, nn = 3469892363, on = 3645544153;
1400
+ function an(t) {
1389
1401
  const s = {};
1390
1402
  return kt(s), s;
1391
1403
  }
1392
1404
  function kt(t) {
1393
1405
  return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
1394
1406
  }
1395
- function on(t, s) {
1396
- const e = s ?? nn();
1397
- return kt(e), an(t, e), e;
1407
+ function ln(t, s) {
1408
+ const e = s ?? an();
1409
+ return kt(e), In(t, e), e;
1398
1410
  }
1399
- function an(t, s) {
1411
+ function In(t, s) {
1400
1412
  let e;
1401
1413
  for (; (e = t.next()) !== null; )
1402
1414
  switch (e.fieldId) {
1403
- case tn: {
1415
+ case sn: {
1404
1416
  if (e.isNull) throw new Error();
1405
1417
  s.StreamId = e.asString();
1406
1418
  break;
1407
1419
  }
1408
- case en: {
1420
+ case rn: {
1409
1421
  if (e.isNull) throw new Error();
1410
1422
  s.ClientSessionId = e.asInt32();
1411
1423
  break;
1412
1424
  }
1413
- case sn: {
1425
+ case nn: {
1414
1426
  if (e.isNull) throw new Error();
1415
1427
  s.TrackId = e.asInt32();
1416
1428
  break;
1417
1429
  }
1418
- case rn: {
1430
+ case on: {
1419
1431
  if (e.isNull) throw new Error();
1420
- s.Info = Vs(e.asObject());
1432
+ s.Info = Bs(e.asObject());
1421
1433
  break;
1422
1434
  }
1423
1435
  }
1424
1436
  }
1425
- const ln = 1405462580, In = 2968276160;
1426
- function cn(t) {
1437
+ const cn = 1405462580, En = 2968276160;
1438
+ function _n(t) {
1427
1439
  const s = {};
1428
1440
  return Vt(s), s;
1429
1441
  }
1430
1442
  function Vt(t) {
1431
1443
  return t.MimeType = "", t.Value = new Uint8Array(0), t;
1432
1444
  }
1433
- function En(t, s) {
1434
- const e = s ?? cn();
1435
- return Vt(e), _n(t, e), e;
1445
+ function fn(t, s) {
1446
+ const e = s ?? _n();
1447
+ return Vt(e), hn(t, e), e;
1436
1448
  }
1437
- function _n(t, s) {
1449
+ function hn(t, s) {
1438
1450
  let e;
1439
1451
  for (; (e = t.next()) !== null; )
1440
1452
  switch (e.fieldId) {
1441
- case ln: {
1453
+ case cn: {
1442
1454
  if (e.isNull) throw new Error();
1443
1455
  s.Value = e.asBinary();
1444
1456
  break;
1445
1457
  }
1446
- case In: {
1458
+ case En: {
1447
1459
  if (e.isNull) throw new Error();
1448
1460
  s.MimeType = e.asString();
1449
1461
  break;
1450
1462
  }
1451
1463
  }
1452
1464
  }
1453
- const fn = 2097188, hn = 979822885, un = 2374537704;
1454
- function Tn(t) {
1465
+ const un = 2097188, Tn = 979822885, Nn = 2374537704;
1466
+ function An(t) {
1455
1467
  const s = {};
1456
1468
  return Gt(s), s;
1457
1469
  }
1458
1470
  function Gt(t) {
1459
1471
  return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
1460
1472
  }
1461
- function Nn(t, s) {
1473
+ function Sn(t, s) {
1462
1474
  const e = L.create(t);
1463
- return An(e, s);
1475
+ return dn(e, s);
1464
1476
  }
1465
- function An(t, s) {
1466
- const e = s ?? Tn();
1467
- return Gt(e), Sn(t, e), e;
1477
+ function dn(t, s) {
1478
+ const e = s ?? An();
1479
+ return Gt(e), yn(t, e), e;
1468
1480
  }
1469
- function Sn(t, s) {
1481
+ function yn(t, s) {
1470
1482
  let e;
1471
1483
  for (; (e = t.next()) !== null; )
1472
1484
  switch (e.fieldId) {
1473
- case hn: {
1485
+ case Tn: {
1474
1486
  if (e.isNull) throw new Error();
1475
1487
  s.StyleId = e.asString();
1476
1488
  break;
1477
1489
  }
1478
- case un: {
1490
+ case Nn: {
1479
1491
  if (e.isNull) throw new Error();
1480
- s.Style = yn(e.asDictionary());
1492
+ s.Style = wn(e.asDictionary());
1481
1493
  break;
1482
1494
  }
1483
1495
  }
1484
1496
  }
1485
- async function dn(t, s) {
1486
- const e = await $(t, fn);
1487
- return Nn(e, s);
1497
+ async function Cn(t, s) {
1498
+ const e = await $(t, un);
1499
+ return Sn(e, s);
1488
1500
  }
1489
- function yn(t) {
1501
+ function wn(t) {
1490
1502
  const s = /* @__PURE__ */ Object.create(null);
1491
1503
  let e;
1492
1504
  for (; (e = t.next()) !== null; ) {
@@ -1495,73 +1507,73 @@ function yn(t) {
1495
1507
  }
1496
1508
  return s;
1497
1509
  }
1498
- const wn = 2097192, Cn = 2136687806;
1499
- function Dn(t) {
1510
+ const Dn = 2097192, Un = 2136687806;
1511
+ function Rn(t) {
1500
1512
  const s = {};
1501
1513
  return Bt(s), s;
1502
1514
  }
1503
1515
  function Bt(t) {
1504
1516
  return t.Styles = [], t;
1505
1517
  }
1506
- function Un(t, s) {
1518
+ function mn(t, s) {
1507
1519
  const e = L.create(t);
1508
- return Rn(e, s);
1520
+ return Ln(e, s);
1509
1521
  }
1510
- function Rn(t, s) {
1511
- const e = s ?? Dn();
1512
- return Bt(e), mn(t, e), e;
1522
+ function Ln(t, s) {
1523
+ const e = s ?? Rn();
1524
+ return Bt(e), On(t, e), e;
1513
1525
  }
1514
- function mn(t, s) {
1526
+ function On(t, s) {
1515
1527
  let e;
1516
1528
  for (; (e = t.next()) !== null; )
1517
1529
  switch (e.fieldId) {
1518
- case Cn: {
1530
+ case Un: {
1519
1531
  if (e.isNull) throw new Error();
1520
- s.Styles = On(e.asArray());
1532
+ s.Styles = Pn(e.asArray());
1521
1533
  break;
1522
1534
  }
1523
1535
  }
1524
1536
  }
1525
- async function Ln(t, s) {
1526
- const e = await $(t, wn);
1527
- return Un(e, s);
1537
+ async function gn(t, s) {
1538
+ const e = await $(t, Dn);
1539
+ return mn(e, s);
1528
1540
  }
1529
- function On(t) {
1541
+ function Pn(t) {
1530
1542
  const s = [];
1531
1543
  let e;
1532
1544
  for (; (e = t.next()) !== null; )
1533
- s.push(Fn(e.asObject()));
1545
+ s.push(vn(e.asObject()));
1534
1546
  return s;
1535
1547
  }
1536
- const gn = 979822885, Pn = 2374537704;
1537
- function bn(t) {
1548
+ const bn = 979822885, Fn = 2374537704;
1549
+ function pn(t) {
1538
1550
  const s = {};
1539
1551
  return xt(s), s;
1540
1552
  }
1541
1553
  function xt(t) {
1542
1554
  return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
1543
1555
  }
1544
- function Fn(t, s) {
1545
- const e = s ?? bn();
1546
- return xt(e), pn(t, e), e;
1556
+ function vn(t, s) {
1557
+ const e = s ?? pn();
1558
+ return xt(e), Mn(t, e), e;
1547
1559
  }
1548
- function pn(t, s) {
1560
+ function Mn(t, s) {
1549
1561
  let e;
1550
1562
  for (; (e = t.next()) !== null; )
1551
1563
  switch (e.fieldId) {
1552
- case gn: {
1564
+ case bn: {
1553
1565
  if (e.isNull) throw new Error();
1554
1566
  s.StyleId = e.asString();
1555
1567
  break;
1556
1568
  }
1557
- case Pn: {
1569
+ case Fn: {
1558
1570
  if (e.isNull) throw new Error();
1559
- s.Style = vn(e.asDictionary());
1571
+ s.Style = kn(e.asDictionary());
1560
1572
  break;
1561
1573
  }
1562
1574
  }
1563
1575
  }
1564
- function vn(t) {
1576
+ function kn(t) {
1565
1577
  const s = /* @__PURE__ */ Object.create(null);
1566
1578
  let e;
1567
1579
  for (; (e = t.next()) !== null; ) {
@@ -1570,86 +1582,86 @@ function vn(t) {
1570
1582
  }
1571
1583
  return s;
1572
1584
  }
1573
- const Mn = 2097193, kn = 1415642792;
1574
- function Vn(t) {
1585
+ const Vn = 2097193, Gn = 1415642792;
1586
+ function Bn(t) {
1575
1587
  const s = {};
1576
1588
  return Ht(s), s;
1577
1589
  }
1578
1590
  function Ht(t) {
1579
1591
  return t.StyleIds = [], t;
1580
1592
  }
1581
- function Gn(t, s) {
1593
+ function xn(t, s) {
1582
1594
  const e = L.create(t);
1583
- return Bn(e, s);
1595
+ return Hn(e, s);
1584
1596
  }
1585
- function Bn(t, s) {
1586
- const e = s ?? Vn();
1587
- return Ht(e), xn(t, e), e;
1597
+ function Hn(t, s) {
1598
+ const e = s ?? Bn();
1599
+ return Ht(e), Yn(t, e), e;
1588
1600
  }
1589
- function xn(t, s) {
1601
+ function Yn(t, s) {
1590
1602
  let e;
1591
1603
  for (; (e = t.next()) !== null; )
1592
1604
  switch (e.fieldId) {
1593
- case kn: {
1605
+ case Gn: {
1594
1606
  if (e.isNull) throw new Error();
1595
- s.StyleIds = Yn(e.asArray());
1607
+ s.StyleIds = Kn(e.asArray());
1596
1608
  break;
1597
1609
  }
1598
1610
  }
1599
1611
  }
1600
- async function Hn(t, s) {
1601
- const e = await $(t, Mn);
1602
- return Gn(e, s);
1612
+ async function $n(t, s) {
1613
+ const e = await $(t, Vn);
1614
+ return xn(e, s);
1603
1615
  }
1604
- function Yn(t) {
1616
+ function Kn(t) {
1605
1617
  const s = [];
1606
1618
  let e;
1607
1619
  for (; (e = t.next()) !== null; )
1608
1620
  s.push(e.asString());
1609
1621
  return s;
1610
1622
  }
1611
- const $n = 2097190, Kn = 425183262, Xn = 653781469;
1612
- function jn(t) {
1623
+ const Xn = 2097190, jn = 425183262, Wn = 653781469;
1624
+ function zn(t) {
1613
1625
  const s = {};
1614
1626
  return Yt(s), s;
1615
1627
  }
1616
1628
  function Yt(t) {
1617
1629
  return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
1618
1630
  }
1619
- function zn(t, s) {
1631
+ function Jn(t, s) {
1620
1632
  const e = L.create(t);
1621
- return Wn(e, s);
1633
+ return qn(e, s);
1622
1634
  }
1623
- function Wn(t, s) {
1624
- const e = s ?? jn();
1625
- return Yt(e), Jn(t, e), e;
1635
+ function qn(t, s) {
1636
+ const e = s ?? zn();
1637
+ return Yt(e), Qn(t, e), e;
1626
1638
  }
1627
- function Jn(t, s) {
1639
+ function Qn(t, s) {
1628
1640
  let e;
1629
1641
  for (; (e = t.next()) !== null; )
1630
1642
  switch (e.fieldId) {
1631
- case Kn: {
1643
+ case jn: {
1632
1644
  if (e.isNull) throw new Error();
1633
1645
  s.Json = e.asString();
1634
1646
  break;
1635
1647
  }
1636
- case Xn: {
1648
+ case Wn: {
1637
1649
  if (e.isNull) throw new Error();
1638
- s.Payloads = Qn(e.asDictionary());
1650
+ s.Payloads = ti(e.asDictionary());
1639
1651
  break;
1640
1652
  }
1641
1653
  }
1642
1654
  }
1643
- async function qn(t, s) {
1644
- const e = await $(t, $n);
1645
- return zn(e, s);
1655
+ async function Zn(t, s) {
1656
+ const e = await $(t, Xn);
1657
+ return Jn(e, s);
1646
1658
  }
1647
- function Qn(t) {
1659
+ function ti(t) {
1648
1660
  const s = /* @__PURE__ */ Object.create(null);
1649
1661
  let e;
1650
1662
  for (; (e = t.next()) !== null; ) {
1651
1663
  const r = e.key.asString();
1652
- s[r] = En(e.value.asObject());
1664
+ s[r] = fn(e.value.asObject());
1653
1665
  }
1654
1666
  return s;
1655
1667
  }
@@ -1709,7 +1721,7 @@ function ot(t, s) {
1709
1721
  styleIds: l ?? []
1710
1722
  };
1711
1723
  }
1712
- function Zn(t, s) {
1724
+ function ei(t, s) {
1713
1725
  if (!y(t))
1714
1726
  throw new Error(`Invalid text delta at ${s}`);
1715
1727
  const e = t.NodeId, r = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
@@ -1736,7 +1748,7 @@ function Zn(t, s) {
1736
1748
  insertedText: o
1737
1749
  };
1738
1750
  }
1739
- function ti(t, s) {
1751
+ function si(t, s) {
1740
1752
  if (!y(t))
1741
1753
  throw new Error(`Invalid child insert at ${s}`);
1742
1754
  const e = t.Index, r = t.Node;
@@ -1749,7 +1761,7 @@ function ti(t, s) {
1749
1761
  node: ot(r, `${s}.node`)
1750
1762
  };
1751
1763
  }
1752
- function ei(t, s) {
1764
+ function ri(t, s) {
1753
1765
  if (!y(t))
1754
1766
  throw new Error(`Invalid child move at ${s}`);
1755
1767
  const e = t.NodeId, r = t.FromIndex, n = t.ToIndex;
@@ -1765,7 +1777,7 @@ function ei(t, s) {
1765
1777
  toIndex: n
1766
1778
  };
1767
1779
  }
1768
- function si(t, s) {
1780
+ function ni(t, s) {
1769
1781
  if (!y(t))
1770
1782
  throw new Error(`Invalid child remove at ${s}`);
1771
1783
  const e = t.NodeId, r = t.Index;
@@ -1778,18 +1790,18 @@ function si(t, s) {
1778
1790
  index: r
1779
1791
  };
1780
1792
  }
1781
- function ri(t, s) {
1793
+ function ii(t, s) {
1782
1794
  if (!y(t))
1783
1795
  throw new Error(`Invalid node change at ${s}`);
1784
1796
  const e = t.nodeId;
1785
1797
  if (typeof e != "string" || e.length === 0)
1786
1798
  throw new Error(`Invalid node change nodeId at ${s}`);
1787
1799
  const r = Array.isArray(t.inserts) ? t.inserts.map(
1788
- (I, E) => ti(I ?? {}, `${s}.inserts[${E}]`)
1800
+ (I, E) => si(I ?? {}, `${s}.inserts[${E}]`)
1789
1801
  ) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
1790
- (I, E) => ei(I ?? {}, `${s}.moves[${E}]`)
1802
+ (I, E) => ri(I ?? {}, `${s}.moves[${E}]`)
1791
1803
  ) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
1792
- (I, E) => si(I ?? {}, `${s}.removals[${E}]`)
1804
+ (I, E) => ni(I ?? {}, `${s}.removals[${E}]`)
1793
1805
  ) : void 0;
1794
1806
  let o;
1795
1807
  if (y(t.changedProps)) {
@@ -1802,7 +1814,7 @@ function ri(t, s) {
1802
1814
  }
1803
1815
  }
1804
1816
  const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
1805
- (I, E) => Zn(I ?? {}, `${s}.textUpdates[${E}]`)
1817
+ (I, E) => ei(I ?? {}, `${s}.textUpdates[${E}]`)
1806
1818
  ) : void 0, c = t.styleIds, l = c !== void 0 ? Kt(c, s, e, !0) : void 0;
1807
1819
  return {
1808
1820
  nodeId: e,
@@ -1814,19 +1826,19 @@ function ri(t, s) {
1814
1826
  ...l !== void 0 ? { styleIds: l } : {}
1815
1827
  };
1816
1828
  }
1817
- function ni(t) {
1829
+ function oi(t) {
1818
1830
  const s = /* @__PURE__ */ new Map();
1819
1831
  for (const [e, r] of Object.entries(t))
1820
1832
  s.set(e, r);
1821
1833
  return s;
1822
1834
  }
1823
- function ii(t, s, e) {
1835
+ function ai(t, s, e) {
1824
1836
  if (!t || typeof t != "object")
1825
1837
  throw new D("UI update graph is missing");
1826
1838
  const r = ot(t, "graph");
1827
1839
  if (r.type !== "root")
1828
1840
  throw new D('UI update root element must have type "root"');
1829
- const n = ai(r.props, s);
1841
+ const n = Ii(r.props, s);
1830
1842
  return {
1831
1843
  type: "full",
1832
1844
  version: e,
@@ -1834,7 +1846,7 @@ function ii(t, s, e) {
1834
1846
  metadata: n
1835
1847
  };
1836
1848
  }
1837
- function oi(t, s, e) {
1849
+ function li(t, s, e) {
1838
1850
  if (!Array.isArray(t))
1839
1851
  throw new D("UI diff changes must be an array");
1840
1852
  if (!y(s))
@@ -1843,7 +1855,7 @@ function oi(t, s, e) {
1843
1855
  if (typeof r != "string" || r.length === 0)
1844
1856
  throw new D("UI diff metadata is missing viewId");
1845
1857
  const n = t.map(
1846
- (E, _) => ri(E ?? {}, `changes[${_}]`)
1858
+ (E, _) => ii(E ?? {}, `changes[${_}]`)
1847
1859
  ), i = s.optimisticActionId === null || typeof s.optimisticActionId == "string" ? s.optimisticActionId : void 0, o = typeof s.isOptimistic == "boolean" ? s.isOptimistic : void 0, a = typeof s.isUpdate == "boolean" ? s.isUpdate : void 0, c = Q(s.optimisticPatch), l = Z(s.optimisticReconcile), I = {
1848
1860
  viewId: r,
1849
1861
  ...i !== void 0 ? { optimisticActionId: i } : {},
@@ -1859,7 +1871,7 @@ function oi(t, s, e) {
1859
1871
  metadata: I
1860
1872
  };
1861
1873
  }
1862
- function ai(t, s) {
1874
+ function Ii(t, s) {
1863
1875
  const e = t.viewId;
1864
1876
  if (typeof e != "string" || e.length === 0)
1865
1877
  throw new D("UI update root is missing viewId");
@@ -1917,7 +1929,7 @@ class D extends Error {
1917
1929
  super(s), this.causeError = e, this.name = "UiUpdateParseError", e instanceof Error && (this.stack = e.stack);
1918
1930
  }
1919
1931
  }
1920
- function li(t) {
1932
+ function ci(t) {
1921
1933
  let s;
1922
1934
  try {
1923
1935
  s = JSON.parse(t.Json);
@@ -1931,13 +1943,13 @@ function li(t) {
1931
1943
  throw new D(`Unknown UI update type: ${String(e)}`);
1932
1944
  if (typeof r != "number")
1933
1945
  throw new D("UI update version must be a number");
1934
- const n = e === "full" ? ii(s.graph, s.metadata, r) : oi(s.changes, s.metadata, r), i = t.Payloads ? ni(t.Payloads) : /* @__PURE__ */ new Map();
1946
+ const n = e === "full" ? ai(s.graph, s.metadata, r) : li(s.changes, s.metadata, r), i = t.Payloads ? oi(t.Payloads) : /* @__PURE__ */ new Map();
1935
1947
  return {
1936
1948
  snapshot: n,
1937
1949
  payloads: i
1938
1950
  };
1939
1951
  }
1940
- class Ii {
1952
+ class Ei {
1941
1953
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1942
1954
  cache = /* @__PURE__ */ new Map();
1943
1955
  /**
@@ -2018,7 +2030,7 @@ class Ii {
2018
2030
  return this.cache.size;
2019
2031
  }
2020
2032
  }
2021
- class ci {
2033
+ class _i {
2022
2034
  views = /* @__PURE__ */ new Map();
2023
2035
  listeners = /* @__PURE__ */ new Set();
2024
2036
  payloads = /* @__PURE__ */ new Map();
@@ -2040,7 +2052,7 @@ class ci {
2040
2052
  patchesDirty = !0;
2041
2053
  payloadsDirty = !0;
2042
2054
  // Handler cache for stable event handlers
2043
- handlerCache = new Ii();
2055
+ handlerCache = new Ei();
2044
2056
  getSortedPatches(s) {
2045
2057
  const e = this.buildPatchCacheKey(s.patches);
2046
2058
  if (s.sortedPatchesCacheKey === e && s.sortedPatchesCache)
@@ -2111,8 +2123,8 @@ class ci {
2111
2123
  let _ = o.baseline ?? E;
2112
2124
  const N = this.getSortedPatches(o);
2113
2125
  for (const h of N) {
2114
- const w = J(_, h.changes);
2115
- w !== _ && (c = !0, this.viewsDirty = !0), _ = w, h.baseVersion = o.baselineVersion;
2126
+ const C = J(_, h.changes);
2127
+ C !== _ && (c = !0, this.viewsDirty = !0), _ = C, h.baseVersion = o.baselineVersion;
2116
2128
  }
2117
2129
  o.composite !== _ && (o.composite = _, c = !0, this.viewsDirty = !0), l && _ ? j(l, _, this.changedNodeIds) : _ && b(_, this.changedNodeIds), o.version = e.version;
2118
2130
  }
@@ -2142,8 +2154,8 @@ class ci {
2142
2154
  a().delete(_) && (r = !0, this.structureChanged = !0);
2143
2155
  if (s.upsertViews && s.upsertViews.length > 0)
2144
2156
  for (const [_, N] of s.upsertViews) {
2145
- const h = a(), w = h.get(_);
2146
- w !== N && (h.set(_, N), r = !0, w ? j(w, N, this.changedNodeIds) : (b(N, this.changedNodeIds), this.structureChanged = !0));
2157
+ const h = a(), C = h.get(_);
2158
+ C !== N && (h.set(_, N), r = !0, C ? j(C, N, this.changedNodeIds) : (b(N, this.changedNodeIds), this.structureChanged = !0));
2147
2159
  }
2148
2160
  if (s.deletePayloads && s.deletePayloads.length > 0)
2149
2161
  for (const _ of s.deletePayloads)
@@ -2158,8 +2170,8 @@ class ci {
2158
2170
  l().delete(_) && (r = !0);
2159
2171
  if (s.upsertOptimisticPatches && s.upsertOptimisticPatches.length > 0)
2160
2172
  for (const [_, N] of s.upsertOptimisticPatches) {
2161
- const h = l(), w = h.get(_);
2162
- hi(w, N) || (h.set(_, N), r = !0);
2173
+ const h = l(), C = h.get(_);
2174
+ Ti(C, N) || (h.set(_, N), r = !0);
2163
2175
  }
2164
2176
  const I = s.rootViewId ?? this.snapshot.rootViewId;
2165
2177
  I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
@@ -2215,7 +2227,7 @@ class ci {
2215
2227
  if (e)
2216
2228
  return e;
2217
2229
  for (const r of this.snapshot.views.values()) {
2218
- const n = zt(r, s);
2230
+ const n = Wt(r, s);
2219
2231
  if (n)
2220
2232
  return n;
2221
2233
  }
@@ -2286,7 +2298,7 @@ class ci {
2286
2298
  }
2287
2299
  }
2288
2300
  }
2289
- class Ei {
2301
+ class fi {
2290
2302
  streams = /* @__PURE__ */ new Map();
2291
2303
  listeners = /* @__PURE__ */ new Set();
2292
2304
  apply(s, e) {
@@ -2350,7 +2362,7 @@ class Ei {
2350
2362
  }
2351
2363
  getOrCreateStreamEntry(s) {
2352
2364
  let e = this.streams.get(s);
2353
- return e || (e = { store: new ci() }, this.streams.set(s, e)), e;
2365
+ return e || (e = { store: new _i() }, this.streams.set(s, e)), e;
2354
2366
  }
2355
2367
  notify(s) {
2356
2368
  for (const e of this.listeners)
@@ -2369,7 +2381,7 @@ function Xt(t, s, e) {
2369
2381
  const r = s.get(t.id);
2370
2382
  let n = t, i = !1;
2371
2383
  if (r?.textUpdates && r.textUpdates.length > 0) {
2372
- const f = Ti(t, r.textUpdates);
2384
+ const f = Ai(t, r.textUpdates);
2373
2385
  n = f.node, i = f.changed;
2374
2386
  }
2375
2387
  let o = !1, a = n.props;
@@ -2385,7 +2397,7 @@ function Xt(t, s, e) {
2385
2397
  v(S, u) || (o || (a = k(a), o = !0), a[f] = S);
2386
2398
  }
2387
2399
  let c = !1, l = n.styleIds;
2388
- r?.styleIds !== void 0 && (Wt(n.styleIds, r.styleIds) || (l = r.styleIds, c = !0));
2400
+ r?.styleIds !== void 0 && (zt(n.styleIds, r.styleIds) || (l = r.styleIds, c = !0));
2389
2401
  const I = n.children ?? [];
2390
2402
  let E = I, _ = !1;
2391
2403
  if (r?.removals && r.removals.length > 0 || r?.moves && r.moves.length > 0 || r?.inserts && r.inserts.length > 0) {
@@ -2399,14 +2411,14 @@ function Xt(t, s, e) {
2399
2411
  if (r?.moves && r.moves.length > 0) {
2400
2412
  const S = [...r.moves].sort((A, m) => A.toIndex - m.toIndex), u = /* @__PURE__ */ new Map();
2401
2413
  for (const A of S) {
2402
- const m = f.findIndex((W) => W.id === A.nodeId);
2414
+ const m = f.findIndex((z) => z.id === A.nodeId);
2403
2415
  m >= 0 && (u.set(A.nodeId, f[m]), f.splice(m, 1));
2404
2416
  }
2405
2417
  for (const A of S) {
2406
2418
  const m = u.get(A.nodeId);
2407
2419
  if (m) {
2408
- const W = Math.min(A.toIndex, f.length);
2409
- f.splice(W, 0, m);
2420
+ const z = Math.min(A.toIndex, f.length);
2421
+ f.splice(z, 0, m);
2410
2422
  }
2411
2423
  }
2412
2424
  _ = !0;
@@ -2440,7 +2452,7 @@ function b(t, s) {
2440
2452
  b(e, s);
2441
2453
  }
2442
2454
  const X = [];
2443
- function _i(t) {
2455
+ function hi(t) {
2444
2456
  for (; X.length <= t; )
2445
2457
  X.push(/* @__PURE__ */ new Map());
2446
2458
  return X[t].clear(), X[t];
@@ -2451,10 +2463,10 @@ function j(t, s, e) {
2451
2463
  function jt(t, s, e, r) {
2452
2464
  if (t === s)
2453
2465
  return;
2454
- (t.type !== s.type || !fi(t.props, s.props) || !Wt(t.styleIds, s.styleIds)) && e.add(s.id);
2466
+ (t.type !== s.type || !ui(t.props, s.props) || !zt(t.styleIds, s.styleIds)) && e.add(s.id);
2455
2467
  const i = t.children ?? [], o = s.children ?? [];
2456
2468
  if (i !== o) {
2457
- const a = _i(r);
2469
+ const a = hi(r);
2458
2470
  for (const l of i)
2459
2471
  a.set(l.id, l);
2460
2472
  let c = !1;
@@ -2465,23 +2477,23 @@ function jt(t, s, e, r) {
2465
2477
  (i.length !== o.length || c) && e.add(s.id);
2466
2478
  }
2467
2479
  }
2468
- function fi(t, s) {
2480
+ function ui(t, s) {
2469
2481
  return v(t, s);
2470
2482
  }
2471
- function zt(t, s) {
2483
+ function Wt(t, s) {
2472
2484
  if (t.id === s)
2473
2485
  return t;
2474
2486
  if (t.children)
2475
2487
  for (const e of t.children) {
2476
- const r = zt(e, s);
2488
+ const r = Wt(e, s);
2477
2489
  if (r)
2478
2490
  return r;
2479
2491
  }
2480
2492
  }
2481
- function Wt(t, s) {
2493
+ function zt(t, s) {
2482
2494
  return v(t, s);
2483
2495
  }
2484
- function hi(t, s) {
2496
+ function Ti(t, s) {
2485
2497
  if (t === s) return !0;
2486
2498
  if (!t || !s || t.length !== s.length) return !1;
2487
2499
  for (let e = 0; e < t.length; e++) {
@@ -2491,7 +2503,7 @@ function hi(t, s) {
2491
2503
  }
2492
2504
  return !0;
2493
2505
  }
2494
- function ui(t, s) {
2506
+ function Ni(t, s) {
2495
2507
  if (s.length === 0)
2496
2508
  return t;
2497
2509
  const e = [...s].sort((i, o) => i.start - o.start);
@@ -2499,7 +2511,7 @@ function ui(t, s) {
2499
2511
  for (const i of e) {
2500
2512
  const o = lt(i.start + n, 0, r.length);
2501
2513
  if (i.end == null) {
2502
- const I = r.slice(o), E = Ni(I, i.insertedText);
2514
+ const I = r.slice(o), E = Si(I, i.insertedText);
2503
2515
  r = r.slice(0, o) + i.insertedText + I.slice(E), n += i.insertedText.length - E;
2504
2516
  continue;
2505
2517
  }
@@ -2508,7 +2520,7 @@ function ui(t, s) {
2508
2520
  }
2509
2521
  return r;
2510
2522
  }
2511
- function Ti(t, s, e) {
2523
+ function Ai(t, s, e) {
2512
2524
  if (s.length === 0)
2513
2525
  return { node: t, changed: !1 };
2514
2526
  const r = /* @__PURE__ */ new Map();
@@ -2528,7 +2540,7 @@ function Jt(t, s, e) {
2528
2540
  E ? E.push(I) : l.set(I.propertyName, [I]);
2529
2541
  }
2530
2542
  for (const [I, E] of l.entries()) {
2531
- const _ = i[I], h = ui(typeof _ == "string" ? _ : "", E);
2543
+ const _ = i[I], h = Ni(typeof _ == "string" ? _ : "", E);
2532
2544
  n || (i = k(i), n = !0), i[I] = h;
2533
2545
  }
2534
2546
  }
@@ -2557,7 +2569,7 @@ function Jt(t, s, e) {
2557
2569
  function lt(t, s, e) {
2558
2570
  return Math.max(s, Math.min(e, t));
2559
2571
  }
2560
- function Ni(t, s) {
2572
+ function Si(t, s) {
2561
2573
  const e = Math.min(t.length, s.length);
2562
2574
  let r = 0;
2563
2575
  for (; r < e && t.charCodeAt(r) === s.charCodeAt(r); )
@@ -2597,20 +2609,20 @@ function v(t, s) {
2597
2609
  }
2598
2610
  return !1;
2599
2611
  }
2600
- const Ai = 16, Si = 50, g = new Ei(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
2601
- let qt = Ai, Qt = Si, V = [], G = null, B = null, R = 0, z = 0;
2612
+ const di = 16, yi = 50, g = new fi(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
2613
+ let qt = di, Qt = yi, V = [], G = null, B = null, R = 0, W = 0;
2602
2614
  const x = /* @__PURE__ */ new Map();
2603
- function di() {
2615
+ function Ci() {
2604
2616
  return typeof performance < "u" ? performance.now() : Date.now();
2605
2617
  }
2606
- function yi() {
2618
+ function wi() {
2607
2619
  try {
2608
2620
  return crypto.randomUUID();
2609
2621
  } catch {
2610
2622
  return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
2611
2623
  }
2612
2624
  }
2613
- function wi(t) {
2625
+ function Di(t) {
2614
2626
  const s = [];
2615
2627
  for (const n of t.views)
2616
2628
  s.push(n);
@@ -2630,7 +2642,7 @@ function wi(t) {
2630
2642
  optimisticPatches: r
2631
2643
  };
2632
2644
  }
2633
- function Ci(t, s) {
2645
+ function Ui(t, s) {
2634
2646
  if (t === s) return !0;
2635
2647
  if (!t || !s || t.length !== s.length) return !1;
2636
2648
  for (let e = 0; e < t.length; e++) {
@@ -2640,9 +2652,9 @@ function Ci(t, s) {
2640
2652
  }
2641
2653
  return !0;
2642
2654
  }
2643
- function Di(t, s, e) {
2655
+ function Ri(t, s, e) {
2644
2656
  if (!e || e.version === -1)
2645
- return { type: "ReplaceStreamSnapshot", snapshot: wi(s) };
2657
+ return { type: "ReplaceStreamSnapshot", snapshot: Di(s) };
2646
2658
  let r, n;
2647
2659
  for (const [l, I] of s.views)
2648
2660
  e.views.get(l) !== I && (r ??= []).push([l, I]);
@@ -2656,7 +2668,7 @@ function Di(t, s, e) {
2656
2668
  let a, c;
2657
2669
  for (const [l, I] of s.optimisticPatches) {
2658
2670
  const E = e.optimisticPatches.get(l);
2659
- Ci(E, I) || (a ??= []).push([l, I.slice()]);
2671
+ Ui(E, I) || (a ??= []).push([l, I.slice()]);
2660
2672
  }
2661
2673
  for (const l of e.optimisticPatches.keys())
2662
2674
  s.optimisticPatches.has(l) || (c ??= []).push(l);
@@ -2683,26 +2695,26 @@ function P(t) {
2683
2695
  }
2684
2696
  function It() {
2685
2697
  if (G && (clearTimeout(G), G = null), B && (clearTimeout(B), B = null), V.length === 0 && x.size === 0) {
2686
- R = 0, z = 0;
2698
+ R = 0, W = 0;
2687
2699
  return;
2688
2700
  }
2689
2701
  const t = [];
2690
2702
  for (const [e, r] of x)
2691
2703
  t.push({ trackId: e, version: r.version, senderId: r.senderId });
2692
2704
  const s = {
2693
- batchId: yi(),
2694
- createdAtMs: di(),
2705
+ batchId: wi(),
2706
+ createdAtMs: Ci(),
2695
2707
  ops: V,
2696
2708
  ...t.length > 0 ? { acks: t } : {},
2697
- stats: { uiMessagesConsumed: R, bytesConsumed: z }
2709
+ stats: { uiMessagesConsumed: R, bytesConsumed: W }
2698
2710
  };
2699
- V = [], R = 0, z = 0, x.clear(), self.postMessage(s);
2711
+ V = [], R = 0, W = 0, x.clear(), self.postMessage(s);
2700
2712
  }
2701
2713
  function te(t) {
2702
2714
  return `${t.senderId}_${t.trackId}`;
2703
2715
  }
2704
- async function Ui(t) {
2705
- const s = await Ur(t), e = /* @__PURE__ */ new Set();
2716
+ async function mi(t) {
2717
+ const s = await mr(t), e = /* @__PURE__ */ new Set();
2706
2718
  for (const r of Object.values(s.UIStreams ?? {})) {
2707
2719
  const n = r.StreamId;
2708
2720
  e.add(n);
@@ -2712,18 +2724,18 @@ async function Ui(t) {
2712
2724
  for (const r of g.getSnapshots())
2713
2725
  e.has(r.streamId) || (g.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
2714
2726
  }
2715
- async function Ri(t) {
2716
- const s = et(t), e = te(s), r = await qn(t), n = li(r), i = x.get(s.trackId);
2727
+ async function Li(t) {
2728
+ const s = et(t), e = te(s), r = await Zn(t), n = ci(r), i = x.get(s.trackId);
2717
2729
  if ((i === void 0 || n.snapshot.version > i.version) && (x.set(s.trackId, { version: n.snapshot.version, senderId: s.senderId }), Zt()), !g.apply(e, n))
2718
2730
  return;
2719
2731
  const a = g.getSnapshot(e);
2720
2732
  if (!a)
2721
2733
  return;
2722
2734
  const c = Y.get(e);
2723
- Y.set(e, a), P(Di(e, a, c));
2735
+ Y.set(e, a), P(Ri(e, a, c));
2724
2736
  }
2725
- async function mi(t) {
2726
- const s = await dn(t);
2737
+ async function Oi(t) {
2738
+ const s = await Cn(t);
2727
2739
  if (!s.StyleId)
2728
2740
  return;
2729
2741
  const e = {
@@ -2733,8 +2745,8 @@ async function mi(t) {
2733
2745
  }, r = H.get(e.styleId);
2734
2746
  r && r.css === e.css && r.common === e.common || (H.set(e.styleId, e), P({ type: "UpsertUiStyle", style: e }));
2735
2747
  }
2736
- async function Li(t) {
2737
- const s = await Ln(t);
2748
+ async function gi(t) {
2749
+ const s = await gn(t);
2738
2750
  if (s.Styles)
2739
2751
  for (const e of s.Styles) {
2740
2752
  if (!e.StyleId)
@@ -2747,27 +2759,27 @@ async function Li(t) {
2747
2759
  n && n.css === r.css && n.common === r.common || (H.set(r.styleId, r), P({ type: "UpsertUiStyle", style: r }));
2748
2760
  }
2749
2761
  }
2750
- function Oi(t) {
2762
+ function Pi(t) {
2751
2763
  const s = et(t), e = te(s);
2752
2764
  g.clear(e), Y.delete(e), P({ type: "ClearStream", streamId: e });
2753
2765
  }
2754
- async function gi(t) {
2755
- const s = await Hn(t);
2766
+ async function bi(t) {
2767
+ const s = await $n(t);
2756
2768
  if (!(!s.StyleIds || s.StyleIds.length === 0))
2757
2769
  for (const e of s.StyleIds)
2758
2770
  H.delete(e) && P({ type: "RemoveUiStyle", styleId: e });
2759
2771
  }
2760
- async function Pi(t) {
2772
+ async function Fi(t) {
2761
2773
  const s = new Uint8Array(t);
2762
- z += s.byteLength;
2774
+ W += s.byteLength;
2763
2775
  const e = s;
2764
2776
  switch (se(e)) {
2765
2777
  case O.CORE_GLOBAL_STATE:
2766
- await Ui(e), R++;
2778
+ await mi(e), R++;
2767
2779
  return;
2768
2780
  case O.UI_UPDATE:
2769
2781
  try {
2770
- await Ri(e);
2782
+ await Li(e);
2771
2783
  } catch (n) {
2772
2784
  return n instanceof D, void 0;
2773
2785
  } finally {
@@ -2775,16 +2787,16 @@ async function Pi(t) {
2775
2787
  }
2776
2788
  return;
2777
2789
  case O.UI_STYLES:
2778
- await mi(e), R++;
2790
+ await Oi(e), R++;
2779
2791
  return;
2780
2792
  case O.UI_STYLES_BATCH:
2781
- await Li(e), R++;
2793
+ await gi(e), R++;
2782
2794
  return;
2783
2795
  case O.UI_STYLES_DELETE:
2784
- await gi(e), R++;
2796
+ await bi(e), R++;
2785
2797
  return;
2786
2798
  case O.ACTION_UI_CLEAR_STREAM:
2787
- Oi(e), R++;
2799
+ Pi(e), R++;
2788
2800
  return;
2789
2801
  default:
2790
2802
  return;
@@ -2800,6 +2812,6 @@ self.addEventListener("message", (t) => {
2800
2812
  V = [], Y.clear();
2801
2813
  return;
2802
2814
  }
2803
- s.type === "protocol" && Pi(s.message).catch(() => {
2815
+ s.type === "protocol" && Fi(s.message).catch(() => {
2804
2816
  });
2805
2817
  });