@ikonai/sdk-ui 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{ui-worker-Ci6o-6Bv.js → ui-worker-D4hZvsPd.js} +325 -320
- package/ikon-ui-core.d.ts +1 -0
- package/index.js +232 -219
- package/package.json +1 -1
|
@@ -10,13 +10,13 @@ function q(t) {
|
|
|
10
10
|
const r = K(t), e = new DataView(r.buffer, r.byteOffset, r.byteLength);
|
|
11
11
|
if (r.length < 27)
|
|
12
12
|
throw new Error("Protocol payload too short");
|
|
13
|
-
const s = e.getUint32(0, !0), n = e.getUint32(4, !0), i = e.getUint32(8, !0), o = e.getUint32(12, !0), a = e.getUint32(16, !0),
|
|
14
|
-
if (27 +
|
|
13
|
+
const s = e.getUint32(0, !0), n = e.getUint32(4, !0), i = e.getUint32(8, !0), o = e.getUint32(12, !0), a = e.getUint32(16, !0), _ = e.getUint32(20, !0), I = e.getUint8(24), E = e.getUint8(25), l = e.getUint8(26);
|
|
14
|
+
if (27 + _ * 4 > r.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
16
|
const w = [];
|
|
17
|
-
let
|
|
18
|
-
for (let j = 0; j <
|
|
19
|
-
w.push(e.getUint32(
|
|
17
|
+
let D = 27;
|
|
18
|
+
for (let j = 0; j < _; j++)
|
|
19
|
+
w.push(e.getUint32(D, !0)), D += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: s,
|
|
22
22
|
opcode: n,
|
|
@@ -24,9 +24,9 @@ function q(t) {
|
|
|
24
24
|
trackId: o,
|
|
25
25
|
sequenceId: a,
|
|
26
26
|
targetIds: w,
|
|
27
|
-
payloadVersion:
|
|
28
|
-
payloadType:
|
|
29
|
-
flags:
|
|
27
|
+
payloadVersion: I,
|
|
28
|
+
payloadType: E,
|
|
29
|
+
flags: l
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
async function p(t, r, e) {
|
|
@@ -47,14 +47,14 @@ async function ee(t) {
|
|
|
47
47
|
const n = r.readable.getReader(), i = [];
|
|
48
48
|
let o = 0;
|
|
49
49
|
for (; ; ) {
|
|
50
|
-
const { done:
|
|
51
|
-
if (
|
|
52
|
-
i.push(
|
|
50
|
+
const { done: I, value: E } = await n.read();
|
|
51
|
+
if (I) break;
|
|
52
|
+
i.push(E), o += E.length;
|
|
53
53
|
}
|
|
54
54
|
const a = new Uint8Array(o);
|
|
55
|
-
let
|
|
56
|
-
for (let
|
|
57
|
-
a.set(i[
|
|
55
|
+
let _ = 0;
|
|
56
|
+
for (let I = 0; I < i.length; I++)
|
|
57
|
+
a.set(i[I], _), _ += i[I].length;
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
60
|
var F = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(F || {});
|
|
@@ -81,7 +81,7 @@ class O {
|
|
|
81
81
|
return null;
|
|
82
82
|
if (this.offset + 5 > this.buffer.length)
|
|
83
83
|
throw new Error("Teleport object truncated");
|
|
84
|
-
const r =
|
|
84
|
+
const r = Ee(this.buffer, this.offset);
|
|
85
85
|
this.offset += 4;
|
|
86
86
|
const e = this.buffer[this.offset++], s = e >> 4 & 15;
|
|
87
87
|
if ((e & 15) !== 0)
|
|
@@ -478,7 +478,7 @@ function N(t, r, e) {
|
|
|
478
478
|
if (r < 0 || e < 0 || r + e > t.length)
|
|
479
479
|
throw new Error("Teleport payload exceeds bounds");
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Ee(t, r) {
|
|
482
482
|
return (t[r] | t[r + 1] << 8 | t[r + 2] << 16 | t[r + 3] << 24) >>> 0;
|
|
483
483
|
}
|
|
484
484
|
function et(t, r) {
|
|
@@ -489,11 +489,11 @@ function et(t, r) {
|
|
|
489
489
|
throw new Error("Array flags must be zero");
|
|
490
490
|
const n = { offset: r + 1 }, i = S(t, n, "ArrayMalformed"), o = b(s);
|
|
491
491
|
if (o >= 0) {
|
|
492
|
-
const
|
|
493
|
-
return N(t, n.offset,
|
|
492
|
+
const _ = o * i;
|
|
493
|
+
return N(t, n.offset, _), n.offset + _ - r;
|
|
494
494
|
}
|
|
495
495
|
let a = n.offset;
|
|
496
|
-
for (let
|
|
496
|
+
for (let _ = 0; _ < i; _++)
|
|
497
497
|
a = J(s, t, a, "ArrayMalformed");
|
|
498
498
|
return a - r;
|
|
499
499
|
}
|
|
@@ -538,14 +538,14 @@ function nt(t) {
|
|
|
538
538
|
function K(t) {
|
|
539
539
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
540
540
|
}
|
|
541
|
-
var lt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(lt || {}), It = /* @__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))(It || {}), Et = /* @__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))(Et || {}), _t = /* @__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))(_t || {}), ct = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), Tt = /* @__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))(Tt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(ht || {}), At = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(Nt || {}), m = /* @__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_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", 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.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", 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.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_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_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.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", 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.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", 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.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(m || {});
|
|
542
|
-
const
|
|
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 || {}), It = /* @__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))(It || {}), lt = /* @__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))(lt || {}), ct = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ct || {}), ft = /* @__PURE__ */ ((t) => (t[t.Css = 0] = "Css", t[t.Flutter = 1] = "Flutter", t))(ft || {}), ut = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Machine = 1] = "Machine", t[t.Human = 2] = "Human", t))(ut || {}), Tt = /* @__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))(Tt || {}), ht = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t[t.Dart = 4] = "Dart", t[t.Rust = 5] = "Rust", t))(ht || {}), At = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(Nt || {}), m = /* @__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_BACKGROUND_WORK_ACTIVE = 65559] = "CORE_BACKGROUND_WORK_ACTIVE", t[t.CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD = 65560] = "CORE_ON_CLIENT_LEFT_AFTER_GRACE_PERIOD", 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.CORE_WEBRTC_TRACK_MAP = 65571] = "CORE_WEBRTC_TRACK_MAP", t[t.CORE_WEBRTC_VIDEO_CAPTURE = 65572] = "CORE_WEBRTC_VIDEO_CAPTURE", t[t.CORE_RELAY_AGENT_AUTH = 65576] = "CORE_RELAY_AGENT_AUTH", t[t.CORE_RELAY_AGENT_AUTH_RESULT = 65577] = "CORE_RELAY_AGENT_AUTH_RESULT", t[t.CORE_RELAY_HEARTBEAT = 65578] = "CORE_RELAY_HEARTBEAT", t[t.CORE_RELAY_TCP_CONNECTION_OPENED = 65579] = "CORE_RELAY_TCP_CONNECTION_OPENED", t[t.CORE_RELAY_TCP_CONNECTION_CLOSED = 65580] = "CORE_RELAY_TCP_CONNECTION_CLOSED", t[t.CORE_RELAY_TCP_DATA = 65581] = "CORE_RELAY_TCP_DATA", t[t.CORE_RELAY_UDP_DATA = 65582] = "CORE_RELAY_UDP_DATA", t[t.CORE_RELAY_ADD_TUNNEL = 65583] = "CORE_RELAY_ADD_TUNNEL", t[t.CORE_RELAY_TUNNEL_ADDED = 65584] = "CORE_RELAY_TUNNEL_ADDED", t[t.CORE_RELAY_REMOVE_TUNNEL = 65585] = "CORE_RELAY_REMOVE_TUNNEL", t[t.CORE_IKON_SERVER_ENDPOINT_HOST_INFO = 65586] = "CORE_IKON_SERVER_ENDPOINT_HOST_INFO", 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.ANALYTICS_IKON_RELAY_SERVER_STATS = 524297] = "ANALYTICS_IKON_RELAY_SERVER_STATS", t[t.ANALYTICS_IKON_TURN_SERVER_STATS = 524298] = "ANALYTICS_IKON_TURN_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_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.ACTION_URL_CHANGED = 1048642] = "ACTION_URL_CHANGED", t[t.ACTION_FILE_UPLOAD_PRE_START2 = 1048643] = "ACTION_FILE_UPLOAD_PRE_START2", t[t.ACTION_FILE_UPLOAD_PRE_START_RESPONSE2 = 1048644] = "ACTION_FILE_UPLOAD_PRE_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_START2 = 1048645] = "ACTION_FILE_UPLOAD_START2", t[t.ACTION_FILE_UPLOAD_START_RESPONSE2 = 1048646] = "ACTION_FILE_UPLOAD_START_RESPONSE2", t[t.ACTION_FILE_UPLOAD_DATA2 = 1048647] = "ACTION_FILE_UPLOAD_DATA2", t[t.ACTION_FILE_UPLOAD_ACK2 = 1048648] = "ACTION_FILE_UPLOAD_ACK2", t[t.ACTION_FILE_UPLOAD_END2 = 1048649] = "ACTION_FILE_UPLOAD_END2", t[t.ACTION_FILE_UPLOAD_COMPLETE2 = 1048650] = "ACTION_FILE_UPLOAD_COMPLETE2", t[t.ACTION_FUNCTION_ENUMERATION_ITEM_BATCH = 1048651] = "ACTION_FUNCTION_ENUMERATION_ITEM_BATCH", t[t.ACTION_CALL_ACK = 1048652] = "ACTION_CALL_ACK", 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.AUDIO_SHAPE_FRAME = 4194310] = "AUDIO_SHAPE_FRAME", 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.GROUP_APP_LOCAL = 1073741824] = "GROUP_APP_LOCAL", t[t.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", t))(m || {});
|
|
542
|
+
const _e = 161083277, Ie = 265814330, le = 1368629611, ce = 2431514951, fe = 2514959030, ue = 2745379226, Te = 3282782683, he = 3284746250, Ae = 4101844078;
|
|
543
543
|
function St(t) {
|
|
544
544
|
const r = {};
|
|
545
545
|
return Ct(r), r;
|
|
546
546
|
}
|
|
547
547
|
function Ct(t) {
|
|
548
|
-
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec =
|
|
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.CorrelationId = void 0, t;
|
|
549
549
|
}
|
|
550
550
|
function Ne(t, r) {
|
|
551
551
|
const e = r ?? St();
|
|
@@ -555,12 +555,12 @@ function Se(t, r) {
|
|
|
555
555
|
let e;
|
|
556
556
|
for (; (e = t.next()) !== null; )
|
|
557
557
|
switch (e.fieldId) {
|
|
558
|
-
case
|
|
558
|
+
case _e: {
|
|
559
559
|
if (e.isNull) throw new Error();
|
|
560
560
|
r.StreamId = e.asString();
|
|
561
561
|
break;
|
|
562
562
|
}
|
|
563
|
-
case
|
|
563
|
+
case Ie: {
|
|
564
564
|
if (e.isNull) {
|
|
565
565
|
r.ShapeSets = void 0;
|
|
566
566
|
break;
|
|
@@ -568,7 +568,7 @@ function Se(t, r) {
|
|
|
568
568
|
r.ShapeSets = Ce(e.asArray());
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
case
|
|
571
|
+
case le: {
|
|
572
572
|
if (e.isNull) throw new Error();
|
|
573
573
|
r.Description = e.asString();
|
|
574
574
|
break;
|
|
@@ -615,33 +615,33 @@ function Ce(t) {
|
|
|
615
615
|
r.push(ye(e.asObject()));
|
|
616
616
|
return r;
|
|
617
617
|
}
|
|
618
|
-
const
|
|
618
|
+
const Re = 1107713536, De = 1154362099, de = 1185721362;
|
|
619
619
|
function we(t) {
|
|
620
620
|
const r = {};
|
|
621
|
-
return
|
|
621
|
+
return Rt(r), r;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Rt(t) {
|
|
624
624
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
625
625
|
}
|
|
626
626
|
function ye(t, r) {
|
|
627
627
|
const e = r ?? we();
|
|
628
|
-
return
|
|
628
|
+
return Rt(e), Ue(t, e), e;
|
|
629
629
|
}
|
|
630
630
|
function Ue(t, r) {
|
|
631
631
|
let e;
|
|
632
632
|
for (; (e = t.next()) !== null; )
|
|
633
633
|
switch (e.fieldId) {
|
|
634
|
-
case
|
|
634
|
+
case Re: {
|
|
635
635
|
if (e.isNull) throw new Error();
|
|
636
636
|
r.Name = e.asString();
|
|
637
637
|
break;
|
|
638
638
|
}
|
|
639
|
-
case
|
|
639
|
+
case De: {
|
|
640
640
|
if (e.isNull) throw new Error();
|
|
641
641
|
r.SetId = e.asUInt32();
|
|
642
642
|
break;
|
|
643
643
|
}
|
|
644
|
-
case
|
|
644
|
+
case de: {
|
|
645
645
|
if (e.isNull) throw new Error();
|
|
646
646
|
r.ShapeNames = Le(e.asArray());
|
|
647
647
|
break;
|
|
@@ -655,17 +655,17 @@ function Le(t) {
|
|
|
655
655
|
r.push(e.asString());
|
|
656
656
|
return r;
|
|
657
657
|
}
|
|
658
|
-
const Oe = 76337612, me = 185396121,
|
|
658
|
+
const Oe = 76337612, me = 185396121, Pe = 250031587, ge = 388632637, Fe = 417197284, be = 469070965, Me = 470595159, ve = 594855258, ke = 781727218, Ge = 834078886, Be = 1043273762, Ve = 1236999138, xe = 1286979607, He = 1368629611, Ye = 1715899485, pe = 1942830531, Ke = 1999510636, $e = 2033288346, Xe = 2079864626, je = 2142346422, We = 2228539873, ze = 2232517119, Je = 2598291686, Qe = 2719718823, qe = 2810953526, Ze = 2840065720, tr = 2885165957, er = 3542818975, rr = 3586157513, sr = 3717933110, nr = 4062655306;
|
|
659
659
|
function ir(t) {
|
|
660
660
|
const r = {};
|
|
661
|
-
return
|
|
661
|
+
return Dt(r), r;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
return t.ContextType =
|
|
663
|
+
function Dt(t) {
|
|
664
|
+
return t.ContextType = It.Unknown, t.UserType = ut.Unknown, t.PayloadType = lt.Unknown, t.Description = "", t.UserId = "", t.DeviceId = "", t.ProductId = "", t.VersionId = "", t.InstallId = "", t.Locale = "", t.SessionId = -1, t.IsInternal = !1, t.IsReady = !1, t.HasInput = !1, t.ChannelLocale = "", t.EmbeddedSpaceId = "", t.AuthSessionId = "", t.ReceiveAllMessages = !1, t.PreciseJoinedAt = 0n, t.UserAgent = "", t.ClientType = _t.Unknown, t.UniqueSessionId = "", t.Parameters = /* @__PURE__ */ Object.create(null), t.SdkType = ht.Unknown, t.ViewportWidth = 0, t.ViewportHeight = 0, t.Theme = "", t.Timezone = "", t.IsTouchDevice = !1, t.InitialPath = "", t.StyleFormat = ft.Css, t;
|
|
665
665
|
}
|
|
666
666
|
function or(t, r) {
|
|
667
667
|
const e = r ?? ir();
|
|
668
|
-
return
|
|
668
|
+
return Dt(e), ar(t, e), e;
|
|
669
669
|
}
|
|
670
670
|
function ar(t, r) {
|
|
671
671
|
let e;
|
|
@@ -681,12 +681,12 @@ function ar(t, r) {
|
|
|
681
681
|
r.InstallId = e.asString();
|
|
682
682
|
break;
|
|
683
683
|
}
|
|
684
|
-
case
|
|
684
|
+
case Pe: {
|
|
685
685
|
if (e.isNull) throw new Error();
|
|
686
686
|
r.Theme = e.asString();
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
|
-
case
|
|
689
|
+
case ge: {
|
|
690
690
|
if (e.isNull) throw new Error();
|
|
691
691
|
r.UserAgent = e.asString();
|
|
692
692
|
break;
|
|
@@ -803,7 +803,7 @@ function ar(t, r) {
|
|
|
803
803
|
}
|
|
804
804
|
case tr: {
|
|
805
805
|
if (e.isNull) throw new Error();
|
|
806
|
-
r.Parameters =
|
|
806
|
+
r.Parameters = Er(e.asDictionary());
|
|
807
807
|
break;
|
|
808
808
|
}
|
|
809
809
|
case er: {
|
|
@@ -828,7 +828,7 @@ function ar(t, r) {
|
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function Er(t) {
|
|
832
832
|
const r = /* @__PURE__ */ Object.create(null);
|
|
833
833
|
let e;
|
|
834
834
|
for (; (e = t.next()) !== null; ) {
|
|
@@ -837,33 +837,33 @@ function lr(t) {
|
|
|
837
837
|
}
|
|
838
838
|
return r;
|
|
839
839
|
}
|
|
840
|
-
const
|
|
841
|
-
function
|
|
840
|
+
const _r = 703025676, Ir = 814454131, lr = 972460562, cr = 976255570, fr = 1368629611, ur = 1479280922, Tr = 1533537016, hr = 1909301063, Ar = 2274386296, Nr = 2603556958, Sr = 2885165957, Cr = 3568439632;
|
|
841
|
+
function Rr(t) {
|
|
842
842
|
const r = {};
|
|
843
|
-
return
|
|
843
|
+
return dt(r), r;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function dt(t) {
|
|
846
846
|
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;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
849
|
-
const e = r ??
|
|
850
|
-
return
|
|
848
|
+
function Dr(t, r) {
|
|
849
|
+
const e = r ?? Rr();
|
|
850
|
+
return dt(e), dr(t, e), e;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function dr(t, r) {
|
|
853
853
|
let e;
|
|
854
854
|
for (; (e = t.next()) !== null; )
|
|
855
855
|
switch (e.fieldId) {
|
|
856
|
-
case
|
|
856
|
+
case _r: {
|
|
857
857
|
if (e.isNull) throw new Error();
|
|
858
858
|
r.ResultTypeName = e.asString();
|
|
859
859
|
break;
|
|
860
860
|
}
|
|
861
|
-
case
|
|
861
|
+
case Ir: {
|
|
862
862
|
if (e.isNull) throw new Error();
|
|
863
863
|
r.FunctionName = e.asString();
|
|
864
864
|
break;
|
|
865
865
|
}
|
|
866
|
-
case
|
|
866
|
+
case lr: {
|
|
867
867
|
if (e.isNull) throw new Error();
|
|
868
868
|
r.EnumerableItemTypeName = e.asString();
|
|
869
869
|
break;
|
|
@@ -929,7 +929,7 @@ function yr(t) {
|
|
|
929
929
|
r.push(kr(e.asObject()));
|
|
930
930
|
return r;
|
|
931
931
|
}
|
|
932
|
-
const Ur = 607861992, Lr = 894485888, Or = 972460562, mr = 1368629611,
|
|
932
|
+
const Ur = 607861992, Lr = 894485888, Or = 972460562, mr = 1368629611, Pr = 1883521406, gr = 2603556958, Fr = 3609695522, br = 4075263697, Mr = 4257460908;
|
|
933
933
|
function vr(t) {
|
|
934
934
|
const r = {};
|
|
935
935
|
return wt(r), r;
|
|
@@ -965,12 +965,12 @@ function Gr(t, r) {
|
|
|
965
965
|
r.Description = e.asString();
|
|
966
966
|
break;
|
|
967
967
|
}
|
|
968
|
-
case
|
|
968
|
+
case Pr: {
|
|
969
969
|
if (e.isNull) throw new Error();
|
|
970
970
|
r.DefaultValueData = e.asBinary();
|
|
971
971
|
break;
|
|
972
972
|
}
|
|
973
|
-
case
|
|
973
|
+
case gr: {
|
|
974
974
|
if (e.isNull) throw new Error();
|
|
975
975
|
r.IsEnumerable = e.asBool();
|
|
976
976
|
break;
|
|
@@ -1086,9 +1086,9 @@ function Qr(t, r) {
|
|
|
1086
1086
|
const qr = 2097188, Zr = 979822885, ts = 2374537704;
|
|
1087
1087
|
function es(t) {
|
|
1088
1088
|
const r = {};
|
|
1089
|
-
return
|
|
1089
|
+
return Pt(r), r;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function Pt(t) {
|
|
1092
1092
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1093
1093
|
}
|
|
1094
1094
|
function rs(t, r) {
|
|
@@ -1097,7 +1097,7 @@ function rs(t, r) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
function ss(t, r) {
|
|
1099
1099
|
const e = r ?? es();
|
|
1100
|
-
return
|
|
1100
|
+
return Pt(e), ns(t, e), e;
|
|
1101
1101
|
}
|
|
1102
1102
|
function ns(t, r) {
|
|
1103
1103
|
let e;
|
|
@@ -1128,27 +1128,27 @@ function os(t) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
return r;
|
|
1130
1130
|
}
|
|
1131
|
-
const as = 2097192,
|
|
1132
|
-
function
|
|
1131
|
+
const as = 2097192, Es = 2136687806;
|
|
1132
|
+
function _s(t) {
|
|
1133
1133
|
const r = {};
|
|
1134
|
-
return
|
|
1134
|
+
return gt(r), r;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function gt(t) {
|
|
1137
1137
|
return t.Styles = [], t;
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function Is(t, r) {
|
|
1140
1140
|
const e = O.create(t);
|
|
1141
|
-
return
|
|
1141
|
+
return ls(e, r);
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1144
|
-
const e = r ??
|
|
1145
|
-
return
|
|
1143
|
+
function ls(t, r) {
|
|
1144
|
+
const e = r ?? _s();
|
|
1145
|
+
return gt(e), cs(t, e), e;
|
|
1146
1146
|
}
|
|
1147
1147
|
function cs(t, r) {
|
|
1148
1148
|
let e;
|
|
1149
1149
|
for (; (e = t.next()) !== null; )
|
|
1150
1150
|
switch (e.fieldId) {
|
|
1151
|
-
case
|
|
1151
|
+
case Es: {
|
|
1152
1152
|
if (e.isNull) throw new Error();
|
|
1153
1153
|
r.Styles = us(e.asArray());
|
|
1154
1154
|
break;
|
|
@@ -1157,7 +1157,7 @@ function cs(t, r) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
async function fs(t, r) {
|
|
1159
1159
|
const e = await p(t, as);
|
|
1160
|
-
return
|
|
1160
|
+
return Is(e, r);
|
|
1161
1161
|
}
|
|
1162
1162
|
function us(t) {
|
|
1163
1163
|
const r = [];
|
|
@@ -1203,8 +1203,8 @@ function Cs(t) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
return r;
|
|
1205
1205
|
}
|
|
1206
|
-
const
|
|
1207
|
-
function
|
|
1206
|
+
const Rs = 2097193, Ds = 1415642792;
|
|
1207
|
+
function ds(t) {
|
|
1208
1208
|
const r = {};
|
|
1209
1209
|
return bt(r), r;
|
|
1210
1210
|
}
|
|
@@ -1216,14 +1216,14 @@ function ws(t, r) {
|
|
|
1216
1216
|
return ys(e, r);
|
|
1217
1217
|
}
|
|
1218
1218
|
function ys(t, r) {
|
|
1219
|
-
const e = r ??
|
|
1219
|
+
const e = r ?? ds();
|
|
1220
1220
|
return bt(e), Us(t, e), e;
|
|
1221
1221
|
}
|
|
1222
1222
|
function Us(t, r) {
|
|
1223
1223
|
let e;
|
|
1224
1224
|
for (; (e = t.next()) !== null; )
|
|
1225
1225
|
switch (e.fieldId) {
|
|
1226
|
-
case
|
|
1226
|
+
case Ds: {
|
|
1227
1227
|
if (e.isNull) throw new Error();
|
|
1228
1228
|
r.StyleIds = Os(e.asArray());
|
|
1229
1229
|
break;
|
|
@@ -1231,7 +1231,7 @@ function Us(t, r) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
async function Ls(t, r) {
|
|
1234
|
-
const e = await p(t,
|
|
1234
|
+
const e = await p(t, Rs);
|
|
1235
1235
|
return ws(e, r);
|
|
1236
1236
|
}
|
|
1237
1237
|
function Os(t) {
|
|
@@ -1241,7 +1241,7 @@ function Os(t) {
|
|
|
1241
1241
|
r.push(e.asString());
|
|
1242
1242
|
return r;
|
|
1243
1243
|
}
|
|
1244
|
-
const ms = 2097190,
|
|
1244
|
+
const ms = 2097190, Ps = 425183262, gs = 653781469;
|
|
1245
1245
|
function Fs(t) {
|
|
1246
1246
|
const r = {};
|
|
1247
1247
|
return Mt(r), r;
|
|
@@ -1261,12 +1261,12 @@ function vs(t, r) {
|
|
|
1261
1261
|
let e;
|
|
1262
1262
|
for (; (e = t.next()) !== null; )
|
|
1263
1263
|
switch (e.fieldId) {
|
|
1264
|
-
case
|
|
1264
|
+
case Ps: {
|
|
1265
1265
|
if (e.isNull) throw new Error();
|
|
1266
1266
|
r.Json = e.asString();
|
|
1267
1267
|
break;
|
|
1268
1268
|
}
|
|
1269
|
-
case
|
|
1269
|
+
case gs: {
|
|
1270
1270
|
if (e.isNull) throw new Error();
|
|
1271
1271
|
r.Payloads = Gs(e.asDictionary());
|
|
1272
1272
|
break;
|
|
@@ -1352,23 +1352,23 @@ function Ws(t, r) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
const zs = 65539, Js = 693643444, Qs =
|
|
1356
|
-
function
|
|
1355
|
+
const zs = 65539, Js = 693643444, Qs = 976837618, qs = 1144553441, Zs = 1497620243, tn = 1559330978, en = 1976546434, rn = 2271236852, sn = 2277643855, nn = 2469008121, on = 3042922213, an = 3064612128, En = 3219210453, _n = 3504054055, In = 3678477544, ln = 3696445035, cn = 3707543140, fn = 3712281496, un = 3895362455, Tn = 3897397815, hn = 3914217035, An = 4225107827;
|
|
1356
|
+
function Nn(t) {
|
|
1357
1357
|
const r = {};
|
|
1358
1358
|
return Gt(r), r;
|
|
1359
1359
|
}
|
|
1360
1360
|
function Gt(t) {
|
|
1361
|
-
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.
|
|
1362
|
-
}
|
|
1363
|
-
function Nn(t, r) {
|
|
1364
|
-
const e = O.create(t);
|
|
1365
|
-
return Sn(e, r);
|
|
1361
|
+
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.ServerSessionId = "", t.SessionHash = "", t.ChannelUrl = "", t.SessionChannelUrl = "", t.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = At.Local, t.AppSourceType = Nt.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1366
1362
|
}
|
|
1367
1363
|
function Sn(t, r) {
|
|
1368
|
-
const e =
|
|
1369
|
-
return
|
|
1364
|
+
const e = O.create(t);
|
|
1365
|
+
return Cn(e, r);
|
|
1370
1366
|
}
|
|
1371
1367
|
function Cn(t, r) {
|
|
1368
|
+
const e = r ?? Nn();
|
|
1369
|
+
return Gt(e), Rn(t, e), e;
|
|
1370
|
+
}
|
|
1371
|
+
function Rn(t, r) {
|
|
1372
1372
|
let e;
|
|
1373
1373
|
for (; (e = t.next()) !== null; )
|
|
1374
1374
|
switch (e.fieldId) {
|
|
@@ -1379,27 +1379,27 @@ function Cn(t, r) {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
case Qs: {
|
|
1381
1381
|
if (e.isNull) throw new Error();
|
|
1382
|
-
r.
|
|
1382
|
+
r.SessionHash = e.asString();
|
|
1383
1383
|
break;
|
|
1384
1384
|
}
|
|
1385
1385
|
case qs: {
|
|
1386
1386
|
if (e.isNull) throw new Error();
|
|
1387
|
-
r.
|
|
1387
|
+
r.Clients = dn(e.asDictionary());
|
|
1388
1388
|
break;
|
|
1389
1389
|
}
|
|
1390
1390
|
case Zs: {
|
|
1391
1391
|
if (e.isNull) throw new Error();
|
|
1392
|
-
r.
|
|
1392
|
+
r.TrackingStreams = wn(e.asDictionary());
|
|
1393
1393
|
break;
|
|
1394
1394
|
}
|
|
1395
1395
|
case tn: {
|
|
1396
1396
|
if (e.isNull) throw new Error();
|
|
1397
|
-
r.
|
|
1397
|
+
r.ChannelId = e.asString();
|
|
1398
1398
|
break;
|
|
1399
1399
|
}
|
|
1400
1400
|
case en: {
|
|
1401
1401
|
if (e.isNull) throw new Error();
|
|
1402
|
-
r.
|
|
1402
|
+
r.AppSourceType = e.asInt32();
|
|
1403
1403
|
break;
|
|
1404
1404
|
}
|
|
1405
1405
|
case rn: {
|
|
@@ -1427,24 +1427,24 @@ function Cn(t, r) {
|
|
|
1427
1427
|
r.ServerRunType = e.asInt32();
|
|
1428
1428
|
break;
|
|
1429
1429
|
}
|
|
1430
|
-
case
|
|
1430
|
+
case En: {
|
|
1431
1431
|
if (e.isNull) throw new Error();
|
|
1432
1432
|
r.OrganisationName = e.asString();
|
|
1433
1433
|
break;
|
|
1434
1434
|
}
|
|
1435
|
-
case
|
|
1435
|
+
case _n: {
|
|
1436
1436
|
if (e.isNull) throw new Error();
|
|
1437
1437
|
r.DebugMode = e.asBool();
|
|
1438
1438
|
break;
|
|
1439
1439
|
}
|
|
1440
|
-
case
|
|
1440
|
+
case In: {
|
|
1441
1441
|
if (e.isNull) throw new Error();
|
|
1442
|
-
r.Functions =
|
|
1442
|
+
r.Functions = yn(e.asDictionary());
|
|
1443
1443
|
break;
|
|
1444
1444
|
}
|
|
1445
|
-
case
|
|
1445
|
+
case ln: {
|
|
1446
1446
|
if (e.isNull) throw new Error();
|
|
1447
|
-
r.UIStreams =
|
|
1447
|
+
r.UIStreams = Un(e.asDictionary());
|
|
1448
1448
|
break;
|
|
1449
1449
|
}
|
|
1450
1450
|
case cn: {
|
|
@@ -1459,15 +1459,20 @@ function Cn(t, r) {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
case un: {
|
|
1461
1461
|
if (e.isNull) throw new Error();
|
|
1462
|
-
r.AudioStreams =
|
|
1462
|
+
r.AudioStreams = Ln(e.asDictionary());
|
|
1463
1463
|
break;
|
|
1464
1464
|
}
|
|
1465
1465
|
case Tn: {
|
|
1466
1466
|
if (e.isNull) throw new Error();
|
|
1467
|
-
r.VideoStreams =
|
|
1467
|
+
r.VideoStreams = On(e.asDictionary());
|
|
1468
1468
|
break;
|
|
1469
1469
|
}
|
|
1470
1470
|
case hn: {
|
|
1471
|
+
if (e.isNull) throw new Error();
|
|
1472
|
+
r.ServerSessionId = e.asString();
|
|
1473
|
+
break;
|
|
1474
|
+
}
|
|
1475
|
+
case An: {
|
|
1471
1476
|
if (e.isNull) throw new Error();
|
|
1472
1477
|
r.SpaceName = e.asString();
|
|
1473
1478
|
break;
|
|
@@ -1476,7 +1481,7 @@ function Cn(t, r) {
|
|
|
1476
1481
|
}
|
|
1477
1482
|
async function Dn(t, r) {
|
|
1478
1483
|
const e = await p(t, zs);
|
|
1479
|
-
return
|
|
1484
|
+
return Sn(e, r);
|
|
1480
1485
|
}
|
|
1481
1486
|
function dn(t) {
|
|
1482
1487
|
const r = /* @__PURE__ */ Object.create(null);
|
|
@@ -1487,75 +1492,75 @@ function dn(t) {
|
|
|
1487
1492
|
}
|
|
1488
1493
|
return r;
|
|
1489
1494
|
}
|
|
1490
|
-
function
|
|
1495
|
+
function wn(t) {
|
|
1491
1496
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1492
1497
|
let e;
|
|
1493
1498
|
for (; (e = t.next()) !== null; ) {
|
|
1494
1499
|
const s = e.key.asString();
|
|
1495
|
-
r[s] =
|
|
1500
|
+
r[s] = ri(e.value.asObject());
|
|
1496
1501
|
}
|
|
1497
1502
|
return r;
|
|
1498
1503
|
}
|
|
1499
|
-
function
|
|
1504
|
+
function yn(t) {
|
|
1500
1505
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1501
1506
|
let e;
|
|
1502
1507
|
for (; (e = t.next()) !== null; ) {
|
|
1503
1508
|
const s = e.key.asInt32();
|
|
1504
|
-
r[s] =
|
|
1509
|
+
r[s] = mn(e.value.asArray());
|
|
1505
1510
|
}
|
|
1506
1511
|
return r;
|
|
1507
1512
|
}
|
|
1508
|
-
function
|
|
1513
|
+
function Un(t) {
|
|
1509
1514
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1510
1515
|
let e;
|
|
1511
1516
|
for (; (e = t.next()) !== null; ) {
|
|
1512
1517
|
const s = e.key.asString();
|
|
1513
|
-
r[s] =
|
|
1518
|
+
r[s] = vn(e.value.asObject());
|
|
1514
1519
|
}
|
|
1515
1520
|
return r;
|
|
1516
1521
|
}
|
|
1517
|
-
function
|
|
1522
|
+
function Ln(t) {
|
|
1518
1523
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1519
1524
|
let e;
|
|
1520
1525
|
for (; (e = t.next()) !== null; ) {
|
|
1521
1526
|
const s = e.key.asString();
|
|
1522
|
-
r[s] =
|
|
1527
|
+
r[s] = Yn(e.value.asObject());
|
|
1523
1528
|
}
|
|
1524
1529
|
return r;
|
|
1525
1530
|
}
|
|
1526
|
-
function
|
|
1531
|
+
function On(t) {
|
|
1527
1532
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1528
1533
|
let e;
|
|
1529
1534
|
for (; (e = t.next()) !== null; ) {
|
|
1530
1535
|
const s = e.key.asString();
|
|
1531
|
-
r[s] =
|
|
1536
|
+
r[s] = zn(e.value.asObject());
|
|
1532
1537
|
}
|
|
1533
1538
|
return r;
|
|
1534
1539
|
}
|
|
1535
|
-
function
|
|
1540
|
+
function mn(t) {
|
|
1536
1541
|
const r = [];
|
|
1537
1542
|
let e;
|
|
1538
1543
|
for (; (e = t.next()) !== null; )
|
|
1539
|
-
r.push(
|
|
1544
|
+
r.push(Dr(e.asObject()));
|
|
1540
1545
|
return r;
|
|
1541
1546
|
}
|
|
1542
|
-
const
|
|
1543
|
-
function
|
|
1547
|
+
const Pn = 161083277, gn = 325678206, Fn = 3469892363, bn = 3645544153;
|
|
1548
|
+
function Mn(t) {
|
|
1544
1549
|
const r = {};
|
|
1545
1550
|
return Bt(r), r;
|
|
1546
1551
|
}
|
|
1547
1552
|
function Bt(t) {
|
|
1548
1553
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Ot(), t;
|
|
1549
1554
|
}
|
|
1550
|
-
function Mn(t, r) {
|
|
1551
|
-
const e = r ?? bn();
|
|
1552
|
-
return Bt(e), vn(t, e), e;
|
|
1553
|
-
}
|
|
1554
1555
|
function vn(t, r) {
|
|
1556
|
+
const e = r ?? Mn();
|
|
1557
|
+
return Bt(e), kn(t, e), e;
|
|
1558
|
+
}
|
|
1559
|
+
function kn(t, r) {
|
|
1555
1560
|
let e;
|
|
1556
1561
|
for (; (e = t.next()) !== null; )
|
|
1557
1562
|
switch (e.fieldId) {
|
|
1558
|
-
case
|
|
1563
|
+
case Pn: {
|
|
1559
1564
|
if (e.isNull) throw new Error();
|
|
1560
1565
|
r.StreamId = e.asString();
|
|
1561
1566
|
break;
|
|
@@ -1565,126 +1570,126 @@ function vn(t, r) {
|
|
|
1565
1570
|
r.ClientSessionId = e.asInt32();
|
|
1566
1571
|
break;
|
|
1567
1572
|
}
|
|
1568
|
-
case
|
|
1573
|
+
case Fn: {
|
|
1569
1574
|
if (e.isNull) throw new Error();
|
|
1570
1575
|
r.TrackId = e.asInt32();
|
|
1571
1576
|
break;
|
|
1572
1577
|
}
|
|
1573
|
-
case
|
|
1578
|
+
case bn: {
|
|
1574
1579
|
if (e.isNull) throw new Error();
|
|
1575
1580
|
r.Info = Jr(e.asObject());
|
|
1576
1581
|
break;
|
|
1577
1582
|
}
|
|
1578
1583
|
}
|
|
1579
1584
|
}
|
|
1580
|
-
const
|
|
1581
|
-
function
|
|
1585
|
+
const Gn = 161083277, Bn = 325678206, Vn = 3469892363, xn = 3645544153;
|
|
1586
|
+
function Hn(t) {
|
|
1582
1587
|
const r = {};
|
|
1583
1588
|
return Vt(r), r;
|
|
1584
1589
|
}
|
|
1585
1590
|
function Vt(t) {
|
|
1586
1591
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = St(), t;
|
|
1587
1592
|
}
|
|
1588
|
-
function Hn(t, r) {
|
|
1589
|
-
const e = r ?? xn();
|
|
1590
|
-
return Vt(e), Yn(t, e), e;
|
|
1591
|
-
}
|
|
1592
1593
|
function Yn(t, r) {
|
|
1594
|
+
const e = r ?? Hn();
|
|
1595
|
+
return Vt(e), pn(t, e), e;
|
|
1596
|
+
}
|
|
1597
|
+
function pn(t, r) {
|
|
1593
1598
|
let e;
|
|
1594
1599
|
for (; (e = t.next()) !== null; )
|
|
1595
1600
|
switch (e.fieldId) {
|
|
1596
|
-
case
|
|
1601
|
+
case Gn: {
|
|
1597
1602
|
if (e.isNull) throw new Error();
|
|
1598
1603
|
r.StreamId = e.asString();
|
|
1599
1604
|
break;
|
|
1600
1605
|
}
|
|
1601
|
-
case
|
|
1606
|
+
case Bn: {
|
|
1602
1607
|
if (e.isNull) throw new Error();
|
|
1603
1608
|
r.ClientSessionId = e.asInt32();
|
|
1604
1609
|
break;
|
|
1605
1610
|
}
|
|
1606
|
-
case
|
|
1611
|
+
case Vn: {
|
|
1607
1612
|
if (e.isNull) throw new Error();
|
|
1608
1613
|
r.TrackId = e.asInt32();
|
|
1609
1614
|
break;
|
|
1610
1615
|
}
|
|
1611
|
-
case
|
|
1616
|
+
case xn: {
|
|
1612
1617
|
if (e.isNull) throw new Error();
|
|
1613
1618
|
r.Info = Ne(e.asObject());
|
|
1614
1619
|
break;
|
|
1615
1620
|
}
|
|
1616
1621
|
}
|
|
1617
1622
|
}
|
|
1618
|
-
const
|
|
1619
|
-
function
|
|
1623
|
+
const Kn = 161083277, $n = 325678206, Xn = 3469892363, jn = 3645544153;
|
|
1624
|
+
function Wn(t) {
|
|
1620
1625
|
const r = {};
|
|
1621
1626
|
return xt(r), r;
|
|
1622
1627
|
}
|
|
1623
1628
|
function xt(t) {
|
|
1624
1629
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = vt(), t;
|
|
1625
1630
|
}
|
|
1626
|
-
function Wn(t, r) {
|
|
1627
|
-
const e = r ?? jn();
|
|
1628
|
-
return xt(e), zn(t, e), e;
|
|
1629
|
-
}
|
|
1630
1631
|
function zn(t, r) {
|
|
1632
|
+
const e = r ?? Wn();
|
|
1633
|
+
return xt(e), Jn(t, e), e;
|
|
1634
|
+
}
|
|
1635
|
+
function Jn(t, r) {
|
|
1631
1636
|
let e;
|
|
1632
1637
|
for (; (e = t.next()) !== null; )
|
|
1633
1638
|
switch (e.fieldId) {
|
|
1634
|
-
case
|
|
1639
|
+
case Kn: {
|
|
1635
1640
|
if (e.isNull) throw new Error();
|
|
1636
1641
|
r.StreamId = e.asString();
|
|
1637
1642
|
break;
|
|
1638
1643
|
}
|
|
1639
|
-
case
|
|
1644
|
+
case $n: {
|
|
1640
1645
|
if (e.isNull) throw new Error();
|
|
1641
1646
|
r.ClientSessionId = e.asInt32();
|
|
1642
1647
|
break;
|
|
1643
1648
|
}
|
|
1644
|
-
case
|
|
1649
|
+
case Xn: {
|
|
1645
1650
|
if (e.isNull) throw new Error();
|
|
1646
1651
|
r.TrackId = e.asInt32();
|
|
1647
1652
|
break;
|
|
1648
1653
|
}
|
|
1649
|
-
case
|
|
1654
|
+
case jn: {
|
|
1650
1655
|
if (e.isNull) throw new Error();
|
|
1651
1656
|
r.Info = js(e.asObject());
|
|
1652
1657
|
break;
|
|
1653
1658
|
}
|
|
1654
1659
|
}
|
|
1655
1660
|
}
|
|
1656
|
-
const
|
|
1657
|
-
function
|
|
1661
|
+
const Qn = 161083277, qn = 325678206, Zn = 3469892363, ti = 3645544153;
|
|
1662
|
+
function ei(t) {
|
|
1658
1663
|
const r = {};
|
|
1659
1664
|
return Ht(r), r;
|
|
1660
1665
|
}
|
|
1661
1666
|
function Ht(t) {
|
|
1662
1667
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yt(), t;
|
|
1663
1668
|
}
|
|
1664
|
-
function ei(t, r) {
|
|
1665
|
-
const e = r ?? ti();
|
|
1666
|
-
return Ht(e), ri(t, e), e;
|
|
1667
|
-
}
|
|
1668
1669
|
function ri(t, r) {
|
|
1670
|
+
const e = r ?? ei();
|
|
1671
|
+
return Ht(e), si(t, e), e;
|
|
1672
|
+
}
|
|
1673
|
+
function si(t, r) {
|
|
1669
1674
|
let e;
|
|
1670
1675
|
for (; (e = t.next()) !== null; )
|
|
1671
1676
|
switch (e.fieldId) {
|
|
1672
|
-
case
|
|
1677
|
+
case Qn: {
|
|
1673
1678
|
if (e.isNull) throw new Error();
|
|
1674
1679
|
r.StreamId = e.asString();
|
|
1675
1680
|
break;
|
|
1676
1681
|
}
|
|
1677
|
-
case
|
|
1682
|
+
case qn: {
|
|
1678
1683
|
if (e.isNull) throw new Error();
|
|
1679
1684
|
r.ClientSessionId = e.asInt32();
|
|
1680
1685
|
break;
|
|
1681
1686
|
}
|
|
1682
|
-
case
|
|
1687
|
+
case Zn: {
|
|
1683
1688
|
if (e.isNull) throw new Error();
|
|
1684
1689
|
r.TrackId = e.asInt32();
|
|
1685
1690
|
break;
|
|
1686
1691
|
}
|
|
1687
|
-
case
|
|
1692
|
+
case ti: {
|
|
1688
1693
|
if (e.isNull) throw new Error();
|
|
1689
1694
|
r.Info = Hr(e.asObject());
|
|
1690
1695
|
break;
|
|
@@ -1734,21 +1739,21 @@ function st(t, r) {
|
|
|
1734
1739
|
throw new Error(`Invalid props for node ${e}`);
|
|
1735
1740
|
a = Yt(n);
|
|
1736
1741
|
}
|
|
1737
|
-
let
|
|
1738
|
-
Array.isArray(i) && (
|
|
1739
|
-
(
|
|
1742
|
+
let _ = [];
|
|
1743
|
+
Array.isArray(i) && (_ = i.map(
|
|
1744
|
+
(l, c) => st(l ?? {}, `${r}.children[${c}]`)
|
|
1740
1745
|
));
|
|
1741
|
-
const
|
|
1746
|
+
const I = pt(o, r, e, !1), E = typeof t.SourceMarker == "string" ? t.SourceMarker : void 0;
|
|
1742
1747
|
return {
|
|
1743
1748
|
id: e,
|
|
1744
1749
|
type: s,
|
|
1745
1750
|
props: a,
|
|
1746
|
-
children:
|
|
1747
|
-
styleIds:
|
|
1748
|
-
...
|
|
1751
|
+
children: _,
|
|
1752
|
+
styleIds: I ?? [],
|
|
1753
|
+
...E ? { sourceMarker: E } : {}
|
|
1749
1754
|
};
|
|
1750
1755
|
}
|
|
1751
|
-
function
|
|
1756
|
+
function ni(t, r) {
|
|
1752
1757
|
if (!C(t))
|
|
1753
1758
|
throw new Error(`Invalid text delta at ${r}`);
|
|
1754
1759
|
const e = t.NodeId, s = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
@@ -1775,7 +1780,7 @@ function si(t, r) {
|
|
|
1775
1780
|
insertedText: o
|
|
1776
1781
|
};
|
|
1777
1782
|
}
|
|
1778
|
-
function
|
|
1783
|
+
function ii(t, r) {
|
|
1779
1784
|
if (!C(t))
|
|
1780
1785
|
throw new Error(`Invalid child insert at ${r}`);
|
|
1781
1786
|
const e = t.Index, s = t.Node;
|
|
@@ -1788,7 +1793,7 @@ function ni(t, r) {
|
|
|
1788
1793
|
node: st(s, `${r}.node`)
|
|
1789
1794
|
};
|
|
1790
1795
|
}
|
|
1791
|
-
function
|
|
1796
|
+
function oi(t, r) {
|
|
1792
1797
|
if (!C(t))
|
|
1793
1798
|
throw new Error(`Invalid child move at ${r}`);
|
|
1794
1799
|
const e = t.NodeId, s = t.FromIndex, n = t.ToIndex;
|
|
@@ -1804,7 +1809,7 @@ function ii(t, r) {
|
|
|
1804
1809
|
toIndex: n
|
|
1805
1810
|
};
|
|
1806
1811
|
}
|
|
1807
|
-
function
|
|
1812
|
+
function ai(t, r) {
|
|
1808
1813
|
if (!C(t))
|
|
1809
1814
|
throw new Error(`Invalid child remove at ${r}`);
|
|
1810
1815
|
const e = t.NodeId, s = t.Index;
|
|
@@ -1817,32 +1822,32 @@ function oi(t, r) {
|
|
|
1817
1822
|
index: s
|
|
1818
1823
|
};
|
|
1819
1824
|
}
|
|
1820
|
-
function
|
|
1825
|
+
function Ei(t, r) {
|
|
1821
1826
|
if (!C(t))
|
|
1822
1827
|
throw new Error(`Invalid node change at ${r}`);
|
|
1823
1828
|
const e = t.nodeId;
|
|
1824
1829
|
if (typeof e != "string" || e.length === 0)
|
|
1825
1830
|
throw new Error(`Invalid node change nodeId at ${r}`);
|
|
1826
1831
|
const s = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1827
|
-
(
|
|
1832
|
+
(E, l) => ii(E ?? {}, `${r}.inserts[${l}]`)
|
|
1828
1833
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1829
|
-
(
|
|
1834
|
+
(E, l) => oi(E ?? {}, `${r}.moves[${l}]`)
|
|
1830
1835
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1831
|
-
(
|
|
1836
|
+
(E, l) => ai(E ?? {}, `${r}.removals[${l}]`)
|
|
1832
1837
|
) : void 0;
|
|
1833
1838
|
let o;
|
|
1834
1839
|
if (C(t.changedProps)) {
|
|
1835
1840
|
o = /* @__PURE__ */ new Map();
|
|
1836
|
-
for (const [
|
|
1837
|
-
if (!C(
|
|
1841
|
+
for (const [E, l] of Object.entries(t.changedProps)) {
|
|
1842
|
+
if (!C(l))
|
|
1838
1843
|
continue;
|
|
1839
|
-
const c =
|
|
1840
|
-
c === void 0 ? o.set(
|
|
1844
|
+
const c = l.New;
|
|
1845
|
+
c === void 0 ? o.set(E, void 0) : C(c) ? o.set(E, Yt(c)) : o.set(E, c);
|
|
1841
1846
|
}
|
|
1842
1847
|
}
|
|
1843
1848
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1844
|
-
(
|
|
1845
|
-
) : void 0,
|
|
1849
|
+
(E, l) => ni(E ?? {}, `${r}.textUpdates[${l}]`)
|
|
1850
|
+
) : void 0, _ = t.styleIds, I = _ !== void 0 ? pt(_, r, e, !0) : void 0;
|
|
1846
1851
|
return {
|
|
1847
1852
|
nodeId: e,
|
|
1848
1853
|
...s && s.length > 0 ? { inserts: s } : {},
|
|
@@ -1850,10 +1855,10 @@ function ai(t, r) {
|
|
|
1850
1855
|
...i && i.length > 0 ? { removals: i } : {},
|
|
1851
1856
|
...o && o.size > 0 ? { changedProps: o } : {},
|
|
1852
1857
|
...a && a.length > 0 ? { textUpdates: a } : {},
|
|
1853
|
-
...
|
|
1858
|
+
...I !== void 0 ? { styleIds: I } : {}
|
|
1854
1859
|
};
|
|
1855
1860
|
}
|
|
1856
|
-
function
|
|
1861
|
+
function _i(t) {
|
|
1857
1862
|
const r = /* @__PURE__ */ new Map();
|
|
1858
1863
|
for (const [e, s] of Object.entries(t))
|
|
1859
1864
|
r.set(e, s);
|
|
@@ -1861,11 +1866,11 @@ function li(t) {
|
|
|
1861
1866
|
}
|
|
1862
1867
|
function Ii(t, r, e) {
|
|
1863
1868
|
if (!t || typeof t != "object")
|
|
1864
|
-
throw new
|
|
1869
|
+
throw new R("UI update graph is missing");
|
|
1865
1870
|
const s = st(t, "graph");
|
|
1866
1871
|
if (s.type !== "root")
|
|
1867
|
-
throw new
|
|
1868
|
-
const n =
|
|
1872
|
+
throw new R('UI update root element must have type "root"');
|
|
1873
|
+
const n = ci(s.props, r);
|
|
1869
1874
|
return {
|
|
1870
1875
|
type: "full",
|
|
1871
1876
|
version: e,
|
|
@@ -1873,16 +1878,16 @@ function Ii(t, r, e) {
|
|
|
1873
1878
|
metadata: n
|
|
1874
1879
|
};
|
|
1875
1880
|
}
|
|
1876
|
-
function
|
|
1881
|
+
function li(t, r, e) {
|
|
1877
1882
|
if (!Array.isArray(t))
|
|
1878
|
-
throw new
|
|
1883
|
+
throw new R("UI diff changes must be an array");
|
|
1879
1884
|
if (!C(r))
|
|
1880
|
-
throw new
|
|
1885
|
+
throw new R("UI diff metadata must be an object");
|
|
1881
1886
|
const s = r.viewId;
|
|
1882
1887
|
if (typeof s != "string" || s.length === 0)
|
|
1883
|
-
throw new
|
|
1888
|
+
throw new R("UI diff metadata is missing viewId");
|
|
1884
1889
|
const n = t.map(
|
|
1885
|
-
(a,
|
|
1890
|
+
(a, _) => Ei(a ?? {}, `changes[${_}]`)
|
|
1886
1891
|
), i = typeof r.isUpdate == "boolean" ? r.isUpdate : void 0, o = {
|
|
1887
1892
|
viewId: s,
|
|
1888
1893
|
...i !== void 0 ? { isUpdate: i } : {}
|
|
@@ -1894,42 +1899,42 @@ function Ei(t, r, e) {
|
|
|
1894
1899
|
metadata: o
|
|
1895
1900
|
};
|
|
1896
1901
|
}
|
|
1897
|
-
function
|
|
1902
|
+
function ci(t, r) {
|
|
1898
1903
|
const e = t.viewId;
|
|
1899
1904
|
if (typeof e != "string" || e.length === 0)
|
|
1900
|
-
throw new
|
|
1905
|
+
throw new R("UI update root is missing viewId");
|
|
1901
1906
|
let s = e, n = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0;
|
|
1902
1907
|
return C(r) && (typeof r.viewId == "string" && r.viewId.length > 0 && (s = r.viewId), typeof r.isUpdate == "boolean" && (n = r.isUpdate)), {
|
|
1903
1908
|
viewId: s,
|
|
1904
1909
|
...n !== void 0 ? { isUpdate: n } : {}
|
|
1905
1910
|
};
|
|
1906
1911
|
}
|
|
1907
|
-
class
|
|
1912
|
+
class R extends Error {
|
|
1908
1913
|
constructor(r, e) {
|
|
1909
1914
|
super(r), this.causeError = e, this.name = "UiUpdateParseError", e instanceof Error && (this.stack = e.stack);
|
|
1910
1915
|
}
|
|
1911
1916
|
}
|
|
1912
|
-
function
|
|
1917
|
+
function fi(t) {
|
|
1913
1918
|
let r;
|
|
1914
1919
|
try {
|
|
1915
1920
|
r = JSON.parse(t.Json);
|
|
1916
1921
|
} catch (o) {
|
|
1917
|
-
throw new
|
|
1922
|
+
throw new R("Failed to parse UIUpdate.Json payload", o);
|
|
1918
1923
|
}
|
|
1919
1924
|
if (!r || typeof r != "object")
|
|
1920
|
-
throw new
|
|
1925
|
+
throw new R("UI update snapshot must be an object");
|
|
1921
1926
|
const { type: e, version: s } = r;
|
|
1922
1927
|
if (e !== "full" && e !== "diff")
|
|
1923
|
-
throw new
|
|
1928
|
+
throw new R(`Unknown UI update type: ${String(e)}`);
|
|
1924
1929
|
if (typeof s != "number")
|
|
1925
|
-
throw new
|
|
1926
|
-
const n = e === "full" ? Ii(r.graph, r.metadata, s) :
|
|
1930
|
+
throw new R("UI update version must be a number");
|
|
1931
|
+
const n = e === "full" ? Ii(r.graph, r.metadata, s) : li(r.changes, r.metadata, s), i = t.Payloads ? _i(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1927
1932
|
return {
|
|
1928
1933
|
snapshot: n,
|
|
1929
1934
|
payloads: i
|
|
1930
1935
|
};
|
|
1931
1936
|
}
|
|
1932
|
-
class
|
|
1937
|
+
class ui {
|
|
1933
1938
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1934
1939
|
cache = /* @__PURE__ */ new Map();
|
|
1935
1940
|
/**
|
|
@@ -2010,7 +2015,7 @@ class fi {
|
|
|
2010
2015
|
return this.cache.size;
|
|
2011
2016
|
}
|
|
2012
2017
|
}
|
|
2013
|
-
class
|
|
2018
|
+
class Ti {
|
|
2014
2019
|
views = /* @__PURE__ */ new Map();
|
|
2015
2020
|
listeners = /* @__PURE__ */ new Set();
|
|
2016
2021
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2030,7 +2035,7 @@ class ui {
|
|
|
2030
2035
|
viewsDirty = !0;
|
|
2031
2036
|
payloadsDirty = !0;
|
|
2032
2037
|
// Handler cache for stable event handlers
|
|
2033
|
-
handlerCache = new
|
|
2038
|
+
handlerCache = new ui();
|
|
2034
2039
|
apply(r) {
|
|
2035
2040
|
if (this.snapshotMode) {
|
|
2036
2041
|
if (r.snapshot.type !== "full")
|
|
@@ -2049,20 +2054,20 @@ class ui {
|
|
|
2049
2054
|
const a = e.type === "diff" && n.isUpdate === !0;
|
|
2050
2055
|
if (e.version < o.version || e.version === o.version && !a)
|
|
2051
2056
|
return !1;
|
|
2052
|
-
let
|
|
2053
|
-
this.rootViewId || (this.rootViewId = i,
|
|
2054
|
-
const
|
|
2057
|
+
let _ = !1;
|
|
2058
|
+
this.rootViewId || (this.rootViewId = i, _ = !0, this.structureChanged = !0);
|
|
2059
|
+
const I = o.root;
|
|
2055
2060
|
if (e.type === "full")
|
|
2056
|
-
o.root = e.root, o.version = e.version,
|
|
2061
|
+
o.root = e.root, o.version = e.version, _ = !0, this.viewsDirty = !0, this.structureChanged = !0, e.root && B(e.root, this.changedNodeIds);
|
|
2057
2062
|
else {
|
|
2058
|
-
if (!
|
|
2063
|
+
if (!I)
|
|
2059
2064
|
return !1;
|
|
2060
|
-
const
|
|
2061
|
-
|
|
2065
|
+
const E = Ai(I, e.changes);
|
|
2066
|
+
E !== I ? (o.root = E, _ = !0, this.viewsDirty = !0, z(I, E, this.changedNodeIds)) : o.root = E, o.version = e.version;
|
|
2062
2067
|
}
|
|
2063
|
-
for (const [
|
|
2064
|
-
this.payloads.get(
|
|
2065
|
-
return
|
|
2068
|
+
for (const [E, l] of s)
|
|
2069
|
+
this.payloads.get(E) !== l && (this.payloads.set(E, l), _ = !0, this.payloadsDirty = !0);
|
|
2070
|
+
return _ ? (this.commitSnapshot(), this.notify(), !0) : (o.version = e.version, !1);
|
|
2066
2071
|
}
|
|
2067
2072
|
replaceFromWire(r) {
|
|
2068
2073
|
const e = {
|
|
@@ -2081,33 +2086,33 @@ class ui {
|
|
|
2081
2086
|
let s = !1, n = null, i = null;
|
|
2082
2087
|
const o = () => (n || (n = new Map(this.snapshot.views)), n), a = () => (i || (i = new Map(this.snapshot.payloads)), i);
|
|
2083
2088
|
if (r.deleteViews && r.deleteViews.length > 0)
|
|
2084
|
-
for (const
|
|
2085
|
-
o().delete(
|
|
2089
|
+
for (const E of r.deleteViews)
|
|
2090
|
+
o().delete(E) && (s = !0, this.structureChanged = !0);
|
|
2086
2091
|
if (r.upsertViews && r.upsertViews.length > 0)
|
|
2087
|
-
for (const [
|
|
2088
|
-
const c = o(), w = c.get(
|
|
2089
|
-
w !==
|
|
2092
|
+
for (const [E, l] of r.upsertViews) {
|
|
2093
|
+
const c = o(), w = c.get(E);
|
|
2094
|
+
w !== l && (c.set(E, l), s = !0, w ? z(w, l, this.changedNodeIds) : (B(l, this.changedNodeIds), this.structureChanged = !0));
|
|
2090
2095
|
}
|
|
2091
2096
|
if (r.deletePayloads && r.deletePayloads.length > 0)
|
|
2092
|
-
for (const
|
|
2093
|
-
a().delete(
|
|
2097
|
+
for (const E of r.deletePayloads)
|
|
2098
|
+
a().delete(E) && (s = !0);
|
|
2094
2099
|
if (r.upsertPayloads && r.upsertPayloads.length > 0)
|
|
2095
|
-
for (const [
|
|
2100
|
+
for (const [E, l] of r.upsertPayloads) {
|
|
2096
2101
|
const c = a();
|
|
2097
|
-
c.get(
|
|
2098
|
-
}
|
|
2099
|
-
const
|
|
2100
|
-
|
|
2101
|
-
const
|
|
2102
|
-
if (
|
|
2103
|
-
return this.snapshot = { ...this.snapshot, version:
|
|
2104
|
-
for (const
|
|
2105
|
-
this.nodeVersions.set(
|
|
2102
|
+
c.get(E) !== l && (c.set(E, l), s = !0);
|
|
2103
|
+
}
|
|
2104
|
+
const _ = r.rootViewId ?? this.snapshot.rootViewId;
|
|
2105
|
+
_ !== this.snapshot.rootViewId && (s = !0, this.structureChanged = !0);
|
|
2106
|
+
const I = r.nextVersion;
|
|
2107
|
+
if (I !== this.snapshot.version && (s = !0), !s)
|
|
2108
|
+
return this.snapshot = { ...this.snapshot, version: I }, !1;
|
|
2109
|
+
for (const E of this.changedNodeIds)
|
|
2110
|
+
this.nodeVersions.set(E, (this.nodeVersions.get(E) ?? 0) + 1);
|
|
2106
2111
|
return this.snapshot = {
|
|
2107
|
-
rootViewId:
|
|
2112
|
+
rootViewId: _,
|
|
2108
2113
|
views: n ?? new Map(this.snapshot.views),
|
|
2109
2114
|
payloads: i ?? new Map(this.snapshot.payloads),
|
|
2110
|
-
version:
|
|
2115
|
+
version: I
|
|
2111
2116
|
}, this.notify(), !0;
|
|
2112
2117
|
}
|
|
2113
2118
|
replaceSnapshot(r) {
|
|
@@ -2200,7 +2205,7 @@ class ui {
|
|
|
2200
2205
|
}
|
|
2201
2206
|
}
|
|
2202
2207
|
}
|
|
2203
|
-
class
|
|
2208
|
+
class hi {
|
|
2204
2209
|
streams = /* @__PURE__ */ new Map();
|
|
2205
2210
|
listeners = /* @__PURE__ */ new Set();
|
|
2206
2211
|
apply(r, e) {
|
|
@@ -2264,14 +2269,14 @@ class Ti {
|
|
|
2264
2269
|
}
|
|
2265
2270
|
getOrCreateStreamEntry(r) {
|
|
2266
2271
|
let e = this.streams.get(r);
|
|
2267
|
-
return e || (e = { store: new
|
|
2272
|
+
return e || (e = { store: new Ti() }, this.streams.set(r, e)), e;
|
|
2268
2273
|
}
|
|
2269
2274
|
notify(r) {
|
|
2270
2275
|
for (const e of this.listeners)
|
|
2271
2276
|
e(r);
|
|
2272
2277
|
}
|
|
2273
2278
|
}
|
|
2274
|
-
function
|
|
2279
|
+
function Ai(t, r, e) {
|
|
2275
2280
|
if (r.length === 0)
|
|
2276
2281
|
return t;
|
|
2277
2282
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2283,7 +2288,7 @@ function Kt(t, r, e) {
|
|
|
2283
2288
|
const s = r.get(t.id);
|
|
2284
2289
|
let n = t, i = !1;
|
|
2285
2290
|
if (s?.textUpdates && s.textUpdates.length > 0) {
|
|
2286
|
-
const f =
|
|
2291
|
+
const f = Ri(t, s.textUpdates);
|
|
2287
2292
|
n = f.node, i = f.changed;
|
|
2288
2293
|
}
|
|
2289
2294
|
let o = !1, a = n.props;
|
|
@@ -2298,34 +2303,34 @@ function Kt(t, r, e) {
|
|
|
2298
2303
|
} else
|
|
2299
2304
|
M(A, u) || (o || (a = G(a), o = !0), a[f] = A);
|
|
2300
2305
|
}
|
|
2301
|
-
let
|
|
2302
|
-
s?.styleIds !== void 0 && (jt(n.styleIds, s.styleIds) || (
|
|
2303
|
-
const
|
|
2304
|
-
let
|
|
2306
|
+
let _ = !1, I = n.styleIds;
|
|
2307
|
+
s?.styleIds !== void 0 && (jt(n.styleIds, s.styleIds) || (I = s.styleIds, _ = !0));
|
|
2308
|
+
const E = n.children ?? [];
|
|
2309
|
+
let l = E, c = !1;
|
|
2305
2310
|
if (s?.removals && s.removals.length > 0 || s?.moves && s.moves.length > 0 || s?.inserts && s.inserts.length > 0) {
|
|
2306
|
-
const f =
|
|
2311
|
+
const f = l.slice();
|
|
2307
2312
|
if (s?.removals && s.removals.length > 0) {
|
|
2308
2313
|
const A = [...s.removals].sort((u, h) => h.index - u.index);
|
|
2309
2314
|
for (const u of A)
|
|
2310
2315
|
if (u.index >= 0 && u.index < f.length && f[u.index].id === u.nodeId)
|
|
2311
2316
|
f.splice(u.index, 1);
|
|
2312
2317
|
else {
|
|
2313
|
-
const h = f.findIndex((
|
|
2318
|
+
const h = f.findIndex((d) => d.id === u.nodeId);
|
|
2314
2319
|
h >= 0 && f.splice(h, 1);
|
|
2315
2320
|
}
|
|
2316
2321
|
c = !0;
|
|
2317
2322
|
}
|
|
2318
2323
|
if (s?.moves && s.moves.length > 0) {
|
|
2319
|
-
const A = [...s.moves].sort((h,
|
|
2324
|
+
const A = [...s.moves].sort((h, d) => h.toIndex - d.toIndex), u = /* @__PURE__ */ new Map();
|
|
2320
2325
|
for (const h of A) {
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2326
|
+
const d = f.findIndex((W) => W.id === h.nodeId);
|
|
2327
|
+
d >= 0 && (u.set(h.nodeId, f[d]), f.splice(d, 1));
|
|
2323
2328
|
}
|
|
2324
2329
|
for (const h of A) {
|
|
2325
|
-
const
|
|
2326
|
-
if (
|
|
2330
|
+
const d = u.get(h.nodeId);
|
|
2331
|
+
if (d) {
|
|
2327
2332
|
const W = Math.min(h.toIndex, f.length);
|
|
2328
|
-
f.splice(W, 0,
|
|
2333
|
+
f.splice(W, 0, d);
|
|
2329
2334
|
}
|
|
2330
2335
|
}
|
|
2331
2336
|
c = !0;
|
|
@@ -2338,19 +2343,19 @@ function Kt(t, r, e) {
|
|
|
2338
2343
|
}
|
|
2339
2344
|
c = !0;
|
|
2340
2345
|
}
|
|
2341
|
-
|
|
2346
|
+
l = f;
|
|
2342
2347
|
}
|
|
2343
|
-
let
|
|
2344
|
-
for (let f = 0; f <
|
|
2345
|
-
const A =
|
|
2346
|
-
u !== A && (
|
|
2348
|
+
let D;
|
|
2349
|
+
for (let f = 0; f < l.length; f++) {
|
|
2350
|
+
const A = l[f], u = Kt(A, r);
|
|
2351
|
+
u !== A && (D || (D = l.slice()), D[f] = u);
|
|
2347
2352
|
}
|
|
2348
|
-
return
|
|
2353
|
+
return D && (l = D, c = !0), i || o || _ || c ? !o && !c && !_ ? n : {
|
|
2349
2354
|
id: t.id,
|
|
2350
2355
|
type: t.type,
|
|
2351
2356
|
props: o ? a : n.props,
|
|
2352
|
-
children: c ?
|
|
2353
|
-
styleIds:
|
|
2357
|
+
children: c ? l : E,
|
|
2358
|
+
styleIds: _ ? I : n.styleIds,
|
|
2354
2359
|
...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
|
|
2355
2360
|
} : t;
|
|
2356
2361
|
}
|
|
@@ -2360,7 +2365,7 @@ function B(t, r) {
|
|
|
2360
2365
|
B(e, r);
|
|
2361
2366
|
}
|
|
2362
2367
|
const $ = [];
|
|
2363
|
-
function
|
|
2368
|
+
function Ni(t) {
|
|
2364
2369
|
for (; $.length <= t; )
|
|
2365
2370
|
$.push(/* @__PURE__ */ new Map());
|
|
2366
2371
|
return $[t].clear(), $[t];
|
|
@@ -2371,21 +2376,21 @@ function z(t, r, e) {
|
|
|
2371
2376
|
function $t(t, r, e, s) {
|
|
2372
2377
|
if (t === r)
|
|
2373
2378
|
return;
|
|
2374
|
-
(t.type !== r.type || !
|
|
2379
|
+
(t.type !== r.type || !Si(t.props, r.props) || !jt(t.styleIds, r.styleIds)) && e.add(r.id);
|
|
2375
2380
|
const i = t.children ?? [], o = r.children ?? [];
|
|
2376
2381
|
if (i !== o) {
|
|
2377
|
-
const a =
|
|
2378
|
-
for (const
|
|
2379
|
-
a.set(
|
|
2380
|
-
let
|
|
2381
|
-
for (let
|
|
2382
|
-
const
|
|
2383
|
-
|
|
2382
|
+
const a = Ni(s);
|
|
2383
|
+
for (const I of i)
|
|
2384
|
+
a.set(I.id, I);
|
|
2385
|
+
let _ = !1;
|
|
2386
|
+
for (let I = 0; I < o.length; I++) {
|
|
2387
|
+
const E = o[I], l = a.get(E.id);
|
|
2388
|
+
l ? ($t(l, E, e, s + 1), !_ && I < i.length && i[I].id !== E.id && (_ = !0)) : (B(E, e), _ = !0);
|
|
2384
2389
|
}
|
|
2385
|
-
(i.length !== o.length ||
|
|
2390
|
+
(i.length !== o.length || _) && e.add(r.id);
|
|
2386
2391
|
}
|
|
2387
2392
|
}
|
|
2388
|
-
function
|
|
2393
|
+
function Si(t, r) {
|
|
2389
2394
|
return M(t, r);
|
|
2390
2395
|
}
|
|
2391
2396
|
function Xt(t, r) {
|
|
@@ -2401,7 +2406,7 @@ function Xt(t, r) {
|
|
|
2401
2406
|
function jt(t, r) {
|
|
2402
2407
|
return M(t, r);
|
|
2403
2408
|
}
|
|
2404
|
-
function
|
|
2409
|
+
function Ci(t, r) {
|
|
2405
2410
|
if (r.length === 0)
|
|
2406
2411
|
return t;
|
|
2407
2412
|
const e = [...r].sort((i, o) => i.start - o.start);
|
|
@@ -2409,16 +2414,16 @@ function Si(t, r) {
|
|
|
2409
2414
|
for (const i of e) {
|
|
2410
2415
|
const o = it(i.start + n, 0, s.length);
|
|
2411
2416
|
if (i.end == null) {
|
|
2412
|
-
const
|
|
2413
|
-
s = s.slice(0, o) + i.insertedText +
|
|
2417
|
+
const E = s.slice(o), l = Di(E, i.insertedText);
|
|
2418
|
+
s = s.slice(0, o) + i.insertedText + E.slice(l), n += i.insertedText.length - l;
|
|
2414
2419
|
continue;
|
|
2415
2420
|
}
|
|
2416
|
-
const a = i.end + n,
|
|
2417
|
-
s = s.slice(0, o) + i.insertedText + s.slice(
|
|
2421
|
+
const a = i.end + n, _ = it(a, o, s.length), I = _ - o;
|
|
2422
|
+
s = s.slice(0, o) + i.insertedText + s.slice(_), n += i.insertedText.length - I;
|
|
2418
2423
|
}
|
|
2419
2424
|
return s;
|
|
2420
2425
|
}
|
|
2421
|
-
function
|
|
2426
|
+
function Ri(t, r, e) {
|
|
2422
2427
|
if (r.length === 0)
|
|
2423
2428
|
return { node: t, changed: !1 };
|
|
2424
2429
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -2432,33 +2437,33 @@ function Wt(t, r, e) {
|
|
|
2432
2437
|
const s = r.get(t.id) ?? [];
|
|
2433
2438
|
let n = !1, i = t.props;
|
|
2434
2439
|
if (s.length > 0) {
|
|
2435
|
-
const
|
|
2436
|
-
for (const
|
|
2437
|
-
const
|
|
2438
|
-
|
|
2440
|
+
const I = /* @__PURE__ */ new Map();
|
|
2441
|
+
for (const E of s) {
|
|
2442
|
+
const l = I.get(E.propertyName);
|
|
2443
|
+
l ? l.push(E) : I.set(E.propertyName, [E]);
|
|
2439
2444
|
}
|
|
2440
|
-
for (const [
|
|
2441
|
-
const c = i[
|
|
2442
|
-
n || (i = G(i), n = !0), i[
|
|
2445
|
+
for (const [E, l] of I.entries()) {
|
|
2446
|
+
const c = i[E], D = Ci(typeof c == "string" ? c : "", l);
|
|
2447
|
+
n || (i = G(i), n = !0), i[E] = D;
|
|
2443
2448
|
}
|
|
2444
2449
|
}
|
|
2445
2450
|
let o = !1;
|
|
2446
2451
|
const a = t.children ?? [];
|
|
2447
|
-
let
|
|
2452
|
+
let _ = a;
|
|
2448
2453
|
if (a.length > 0) {
|
|
2449
|
-
let
|
|
2450
|
-
for (let
|
|
2451
|
-
const
|
|
2452
|
-
c.changed && (
|
|
2454
|
+
let I;
|
|
2455
|
+
for (let E = 0; E < a.length; E++) {
|
|
2456
|
+
const l = a[E], c = Wt(l, r);
|
|
2457
|
+
c.changed && (I || (I = [...a]), I[E] = c.node);
|
|
2453
2458
|
}
|
|
2454
|
-
|
|
2459
|
+
I && (_ = I, o = !0);
|
|
2455
2460
|
}
|
|
2456
2461
|
return !n && !o ? { node: t, changed: !1 } : {
|
|
2457
2462
|
node: {
|
|
2458
2463
|
id: t.id,
|
|
2459
2464
|
type: t.type,
|
|
2460
2465
|
props: n ? i : t.props,
|
|
2461
|
-
children: o ?
|
|
2466
|
+
children: o ? _ : a,
|
|
2462
2467
|
styleIds: t.styleIds,
|
|
2463
2468
|
...t.sourceMarker ? { sourceMarker: t.sourceMarker } : {}
|
|
2464
2469
|
},
|
|
@@ -2508,20 +2513,20 @@ function M(t, r) {
|
|
|
2508
2513
|
}
|
|
2509
2514
|
return !1;
|
|
2510
2515
|
}
|
|
2511
|
-
const di = 16,
|
|
2512
|
-
let zt = di, Jt =
|
|
2513
|
-
const
|
|
2514
|
-
function
|
|
2516
|
+
const di = 16, wi = 50, L = new hi(), v = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2517
|
+
let zt = di, Jt = wi, V = [], x = null, H = null, U = 0, X = 0;
|
|
2518
|
+
const g = /* @__PURE__ */ new Map();
|
|
2519
|
+
function yi() {
|
|
2515
2520
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2516
2521
|
}
|
|
2517
|
-
function
|
|
2522
|
+
function Ui() {
|
|
2518
2523
|
try {
|
|
2519
2524
|
return crypto.randomUUID();
|
|
2520
2525
|
} catch {
|
|
2521
2526
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2522
2527
|
}
|
|
2523
2528
|
}
|
|
2524
|
-
function
|
|
2529
|
+
function Li(t) {
|
|
2525
2530
|
const r = [];
|
|
2526
2531
|
for (const s of t.views)
|
|
2527
2532
|
r.push(s);
|
|
@@ -2537,17 +2542,17 @@ function Ui(t) {
|
|
|
2537
2542
|
payloads: e
|
|
2538
2543
|
};
|
|
2539
2544
|
}
|
|
2540
|
-
function
|
|
2545
|
+
function Oi(t, r, e) {
|
|
2541
2546
|
if (!e || e.version === -1)
|
|
2542
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2547
|
+
return { type: "ReplaceStreamSnapshot", snapshot: Li(r) };
|
|
2543
2548
|
let s, n;
|
|
2544
|
-
for (const [a,
|
|
2545
|
-
e.views.get(a) !==
|
|
2549
|
+
for (const [a, _] of r.views)
|
|
2550
|
+
e.views.get(a) !== _ && (s ??= []).push([a, _]);
|
|
2546
2551
|
for (const a of e.views.keys())
|
|
2547
2552
|
r.views.has(a) || (n ??= []).push(a);
|
|
2548
2553
|
let i, o;
|
|
2549
|
-
for (const [a,
|
|
2550
|
-
e.payloads.get(a) !==
|
|
2554
|
+
for (const [a, _] of r.payloads)
|
|
2555
|
+
e.payloads.get(a) !== _ && (i ??= []).push([a, _]);
|
|
2551
2556
|
for (const a of e.payloads.keys())
|
|
2552
2557
|
r.payloads.has(a) || (o ??= []).push(a);
|
|
2553
2558
|
return {
|
|
@@ -2566,49 +2571,49 @@ function Li(t, r, e) {
|
|
|
2566
2571
|
function Qt() {
|
|
2567
2572
|
x || (x = setTimeout(ot, zt)), H || (H = setTimeout(ot, Jt));
|
|
2568
2573
|
}
|
|
2569
|
-
function
|
|
2574
|
+
function P(t) {
|
|
2570
2575
|
V.push(t), Qt();
|
|
2571
2576
|
}
|
|
2572
2577
|
function ot() {
|
|
2573
|
-
if (x && (clearTimeout(x), x = null), H && (clearTimeout(H), H = null), V.length === 0 &&
|
|
2578
|
+
if (x && (clearTimeout(x), x = null), H && (clearTimeout(H), H = null), V.length === 0 && g.size === 0) {
|
|
2574
2579
|
U = 0, X = 0;
|
|
2575
2580
|
return;
|
|
2576
2581
|
}
|
|
2577
2582
|
const t = [];
|
|
2578
|
-
for (const [e, s] of
|
|
2583
|
+
for (const [e, s] of g)
|
|
2579
2584
|
t.push({ trackId: e, version: s.version, senderId: s.senderId });
|
|
2580
2585
|
const r = {
|
|
2581
|
-
batchId:
|
|
2582
|
-
createdAtMs:
|
|
2586
|
+
batchId: Ui(),
|
|
2587
|
+
createdAtMs: yi(),
|
|
2583
2588
|
ops: V,
|
|
2584
2589
|
...t.length > 0 ? { acks: t } : {},
|
|
2585
2590
|
stats: { uiMessagesConsumed: U, bytesConsumed: X }
|
|
2586
2591
|
};
|
|
2587
|
-
V = [], U = 0, X = 0,
|
|
2592
|
+
V = [], U = 0, X = 0, g.clear(), self.postMessage(r);
|
|
2588
2593
|
}
|
|
2589
2594
|
function qt(t) {
|
|
2590
2595
|
return `${t.senderId}_${t.trackId}`;
|
|
2591
2596
|
}
|
|
2592
|
-
async function
|
|
2597
|
+
async function mi(t) {
|
|
2593
2598
|
const r = await Dn(t), e = /* @__PURE__ */ new Set();
|
|
2594
2599
|
for (const s of Object.values(r.UIStreams ?? {})) {
|
|
2595
2600
|
const n = s.StreamId;
|
|
2596
2601
|
e.add(n);
|
|
2597
2602
|
const i = s.Info?.Category;
|
|
2598
|
-
L.getSnapshot(n)?.category !== i && (L.setCategory(n, i),
|
|
2603
|
+
L.getSnapshot(n)?.category !== i && (L.setCategory(n, i), P({ type: "SetStreamCategory", streamId: n, category: i }));
|
|
2599
2604
|
}
|
|
2600
2605
|
for (const s of L.getSnapshots())
|
|
2601
|
-
e.has(s.streamId) || (L.remove(s.streamId), Y.delete(s.streamId),
|
|
2606
|
+
e.has(s.streamId) || (L.remove(s.streamId), Y.delete(s.streamId), P({ type: "RemoveStream", streamId: s.streamId }));
|
|
2602
2607
|
}
|
|
2603
|
-
async function
|
|
2604
|
-
const r = q(t), e = qt(r), s = await ks(t), n =
|
|
2605
|
-
if ((i === void 0 || n.snapshot.version > i.version) && (
|
|
2608
|
+
async function Pi(t) {
|
|
2609
|
+
const r = q(t), e = qt(r), s = await ks(t), n = fi(s), i = g.get(r.trackId);
|
|
2610
|
+
if ((i === void 0 || n.snapshot.version > i.version) && (g.set(r.trackId, { version: n.snapshot.version, senderId: r.senderId }), Qt()), !L.apply(e, n))
|
|
2606
2611
|
return;
|
|
2607
2612
|
const a = L.getSnapshot(e);
|
|
2608
2613
|
if (!a)
|
|
2609
2614
|
return;
|
|
2610
|
-
const
|
|
2611
|
-
Y.set(e, a),
|
|
2615
|
+
const _ = Y.get(e);
|
|
2616
|
+
Y.set(e, a), P(Oi(e, a, _));
|
|
2612
2617
|
}
|
|
2613
2618
|
async function gi(t) {
|
|
2614
2619
|
const r = await is(t);
|
|
@@ -2619,9 +2624,9 @@ async function gi(t) {
|
|
|
2619
2624
|
css: r.Style?.css,
|
|
2620
2625
|
common: r.Style?.common
|
|
2621
2626
|
}, s = v.get(e.styleId);
|
|
2622
|
-
s && s.css === e.css && s.common === e.common || (v.set(e.styleId, e),
|
|
2627
|
+
s && s.css === e.css && s.common === e.common || (v.set(e.styleId, e), P({ type: "UpsertUiStyle", style: e }));
|
|
2623
2628
|
}
|
|
2624
|
-
async function
|
|
2629
|
+
async function Fi(t) {
|
|
2625
2630
|
const r = await fs(t);
|
|
2626
2631
|
if (r.Styles)
|
|
2627
2632
|
for (const e of r.Styles) {
|
|
@@ -2632,32 +2637,32 @@ async function Pi(t) {
|
|
|
2632
2637
|
css: e.Style?.css,
|
|
2633
2638
|
common: e.Style?.common
|
|
2634
2639
|
}, n = v.get(s.styleId);
|
|
2635
|
-
n && n.css === s.css && n.common === s.common || (v.set(s.styleId, s),
|
|
2640
|
+
n && n.css === s.css && n.common === s.common || (v.set(s.styleId, s), P({ type: "UpsertUiStyle", style: s }));
|
|
2636
2641
|
}
|
|
2637
2642
|
}
|
|
2638
|
-
function
|
|
2643
|
+
function bi(t) {
|
|
2639
2644
|
const r = q(t), e = qt(r);
|
|
2640
|
-
L.clear(e), Y.delete(e),
|
|
2645
|
+
L.clear(e), Y.delete(e), P({ type: "ClearStream", streamId: e });
|
|
2641
2646
|
}
|
|
2642
|
-
async function
|
|
2647
|
+
async function Mi(t) {
|
|
2643
2648
|
const r = await Ls(t);
|
|
2644
2649
|
if (!(!r.StyleIds || r.StyleIds.length === 0))
|
|
2645
2650
|
for (const e of r.StyleIds)
|
|
2646
|
-
v.delete(e) &&
|
|
2651
|
+
v.delete(e) && P({ type: "RemoveUiStyle", styleId: e });
|
|
2647
2652
|
}
|
|
2648
|
-
async function
|
|
2653
|
+
async function vi(t) {
|
|
2649
2654
|
const r = new Uint8Array(t);
|
|
2650
2655
|
X += r.byteLength;
|
|
2651
2656
|
const e = r;
|
|
2652
2657
|
switch (te(e)) {
|
|
2653
2658
|
case m.CORE_GLOBAL_STATE:
|
|
2654
|
-
await
|
|
2659
|
+
await mi(e), U++;
|
|
2655
2660
|
return;
|
|
2656
2661
|
case m.UI_UPDATE:
|
|
2657
2662
|
try {
|
|
2658
|
-
await
|
|
2663
|
+
await Pi(e);
|
|
2659
2664
|
} catch (n) {
|
|
2660
|
-
return n instanceof
|
|
2665
|
+
return n instanceof R, void 0;
|
|
2661
2666
|
} finally {
|
|
2662
2667
|
U++;
|
|
2663
2668
|
}
|
|
@@ -2666,13 +2671,13 @@ async function Mi(t) {
|
|
|
2666
2671
|
await gi(e), U++;
|
|
2667
2672
|
return;
|
|
2668
2673
|
case m.UI_STYLES_BATCH:
|
|
2669
|
-
await
|
|
2674
|
+
await Fi(e), U++;
|
|
2670
2675
|
return;
|
|
2671
2676
|
case m.UI_STYLES_DELETE:
|
|
2672
|
-
await
|
|
2677
|
+
await Mi(e), U++;
|
|
2673
2678
|
return;
|
|
2674
2679
|
case m.ACTION_UI_CLEAR_STREAM:
|
|
2675
|
-
|
|
2680
|
+
bi(e), U++;
|
|
2676
2681
|
return;
|
|
2677
2682
|
default:
|
|
2678
2683
|
return;
|
|
@@ -2685,11 +2690,11 @@ self.addEventListener("message", (t) => {
|
|
|
2685
2690
|
return;
|
|
2686
2691
|
}
|
|
2687
2692
|
if (r.type === "clear") {
|
|
2688
|
-
V = [], Y.clear(),
|
|
2693
|
+
V = [], Y.clear(), g.clear(), v.clear();
|
|
2689
2694
|
for (const e of L.getSnapshots())
|
|
2690
2695
|
L.remove(e.streamId);
|
|
2691
2696
|
return;
|
|
2692
2697
|
}
|
|
2693
|
-
r.type === "protocol" &&
|
|
2698
|
+
r.type === "protocol" && vi(r.message).catch(() => {
|
|
2694
2699
|
});
|
|
2695
2700
|
});
|