@ikonai/sdk-ui 1.0.10 → 1.0.12
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-HM-CSTLx.js → ui-worker-DOCTPZkz.js} +416 -401
- package/index.js +388 -373
- package/package.json +1 -1
|
@@ -13,17 +13,17 @@ function et(t) {
|
|
|
13
13
|
const r = s.getUint32(0, !0), n = s.getUint32(4, !0), i = s.getUint32(8, !0), o = s.getUint32(12, !0), a = s.getUint32(16, !0), c = s.getUint32(20, !0), l = s.getUint8(24), I = s.getUint8(25), E = s.getUint8(26);
|
|
14
14
|
if (27 + c * 4 > e.length)
|
|
15
15
|
throw new Error("Protocol header exceeds payload length");
|
|
16
|
-
const
|
|
17
|
-
let
|
|
16
|
+
const N = [];
|
|
17
|
+
let u = 27;
|
|
18
18
|
for (let w = 0; w < c; w++)
|
|
19
|
-
|
|
19
|
+
N.push(s.getUint32(u, !0)), u += 4;
|
|
20
20
|
return {
|
|
21
21
|
length: r,
|
|
22
22
|
opcode: n,
|
|
23
23
|
senderId: i,
|
|
24
24
|
trackId: o,
|
|
25
25
|
sequenceId: a,
|
|
26
|
-
targetIds:
|
|
26
|
+
targetIds: N,
|
|
27
27
|
payloadVersion: l,
|
|
28
28
|
payloadType: I,
|
|
29
29
|
flags: E
|
|
@@ -538,244 +538,254 @@ 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 || {}), At = /* @__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))(At || {}), Nt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.DotNet = 1] = "DotNet", t[t.TypeScript = 2] = "TypeScript", t[t.Cpp = 3] = "Cpp", t))(Nt || {}), dt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(dt || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), g = /* @__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.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))(g || {});
|
|
542
|
-
const Ee =
|
|
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 || {}), ut = /* @__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))(ut || {}), ht = /* @__PURE__ */ ((t) => (t[t.Face = 0] = "Face", t[t.Hands = 1] = "Hands", t[t.Pose = 2] = "Pose", t[t.All = 3] = "All", t))(ht || {}), 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 || {}), dt = /* @__PURE__ */ ((t) => (t[t.Local = 0] = "Local", t[t.Cloud = 1] = "Cloud", t))(dt || {}), St = /* @__PURE__ */ ((t) => (t[t.Bundle = 0] = "Bundle", t[t.GitSource = 1] = "GitSource", t))(St || {}), g = /* @__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.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))(g || {});
|
|
542
|
+
const Ee = 161083277, _e = 265814330, fe = 1368629611, ue = 2431514951, he = 2745379226, Te = 3282782683, Ne = 3284746250, Ae = 4101844078;
|
|
543
543
|
function yt(t) {
|
|
544
544
|
const e = {};
|
|
545
545
|
return wt(e), e;
|
|
546
546
|
}
|
|
547
547
|
function wt(t) {
|
|
548
|
-
return t.Description = "", t.Codec = Et.Unknown, t.
|
|
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
|
-
function
|
|
550
|
+
function de(t, e) {
|
|
551
551
|
const s = e ?? yt();
|
|
552
|
-
return wt(s),
|
|
552
|
+
return wt(s), Se(t, s), s;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Se(t, e) {
|
|
555
555
|
let s;
|
|
556
556
|
for (; (s = t.next()) !== null; )
|
|
557
557
|
switch (s.fieldId) {
|
|
558
558
|
case Ee: {
|
|
559
|
+
if (s.isNull) throw new Error();
|
|
560
|
+
e.StreamId = s.asString();
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
case _e: {
|
|
559
564
|
if (s.isNull) {
|
|
560
565
|
e.ShapeSets = void 0;
|
|
561
566
|
break;
|
|
562
567
|
}
|
|
563
|
-
e.ShapeSets =
|
|
568
|
+
e.ShapeSets = ye(s.asArray());
|
|
564
569
|
break;
|
|
565
570
|
}
|
|
566
|
-
case
|
|
571
|
+
case fe: {
|
|
567
572
|
if (s.isNull) throw new Error();
|
|
568
573
|
e.Description = s.asString();
|
|
569
574
|
break;
|
|
570
575
|
}
|
|
571
|
-
case
|
|
576
|
+
case ue: {
|
|
572
577
|
if (s.isNull) throw new Error();
|
|
573
578
|
e.Channels = s.asInt32();
|
|
574
579
|
break;
|
|
575
580
|
}
|
|
576
581
|
case he: {
|
|
577
582
|
if (s.isNull) throw new Error();
|
|
578
|
-
e.
|
|
583
|
+
e.CodecDetails = s.asString();
|
|
579
584
|
break;
|
|
580
585
|
}
|
|
581
|
-
case
|
|
586
|
+
case Te: {
|
|
587
|
+
if (s.isNull) throw new Error();
|
|
588
|
+
e.SourceType = s.asString();
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
case Ne: {
|
|
582
592
|
if (s.isNull) throw new Error();
|
|
583
593
|
e.Codec = s.asInt32();
|
|
584
594
|
break;
|
|
585
595
|
}
|
|
586
|
-
case
|
|
596
|
+
case Ae: {
|
|
587
597
|
if (s.isNull) throw new Error();
|
|
588
598
|
e.SampleRate = s.asInt32();
|
|
589
599
|
break;
|
|
590
600
|
}
|
|
591
601
|
}
|
|
592
602
|
}
|
|
593
|
-
function
|
|
603
|
+
function ye(t) {
|
|
594
604
|
const e = [];
|
|
595
605
|
let s;
|
|
596
606
|
for (; (s = t.next()) !== null; )
|
|
597
|
-
e.push(
|
|
607
|
+
e.push(Re(s.asObject()));
|
|
598
608
|
return e;
|
|
599
609
|
}
|
|
600
|
-
const
|
|
601
|
-
function
|
|
610
|
+
const we = 1107713536, Ce = 1154362099, De = 1185721362;
|
|
611
|
+
function Ue(t) {
|
|
602
612
|
const e = {};
|
|
603
613
|
return Ct(e), e;
|
|
604
614
|
}
|
|
605
615
|
function Ct(t) {
|
|
606
616
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
607
617
|
}
|
|
608
|
-
function
|
|
609
|
-
const s = e ??
|
|
610
|
-
return Ct(s),
|
|
618
|
+
function Re(t, e) {
|
|
619
|
+
const s = e ?? Ue();
|
|
620
|
+
return Ct(s), me(t, s), s;
|
|
611
621
|
}
|
|
612
|
-
function
|
|
622
|
+
function me(t, e) {
|
|
613
623
|
let s;
|
|
614
624
|
for (; (s = t.next()) !== null; )
|
|
615
625
|
switch (s.fieldId) {
|
|
616
|
-
case
|
|
626
|
+
case we: {
|
|
617
627
|
if (s.isNull) throw new Error();
|
|
618
628
|
e.Name = s.asString();
|
|
619
629
|
break;
|
|
620
630
|
}
|
|
621
|
-
case
|
|
631
|
+
case Ce: {
|
|
622
632
|
if (s.isNull) throw new Error();
|
|
623
633
|
e.SetId = s.asUInt32();
|
|
624
634
|
break;
|
|
625
635
|
}
|
|
626
|
-
case
|
|
636
|
+
case De: {
|
|
627
637
|
if (s.isNull) throw new Error();
|
|
628
|
-
e.ShapeNames =
|
|
638
|
+
e.ShapeNames = Le(s.asArray());
|
|
629
639
|
break;
|
|
630
640
|
}
|
|
631
641
|
}
|
|
632
642
|
}
|
|
633
|
-
function
|
|
643
|
+
function Le(t) {
|
|
634
644
|
const e = [];
|
|
635
645
|
let s;
|
|
636
646
|
for (; (s = t.next()) !== null; )
|
|
637
647
|
e.push(s.asString());
|
|
638
648
|
return e;
|
|
639
649
|
}
|
|
640
|
-
const
|
|
641
|
-
function
|
|
650
|
+
const ge = 76337612, Oe = 185396121, Pe = 388632637, be = 417197284, Fe = 469070965, pe = 470595159, ve = 781727218, Me = 834078886, ke = 1043273762, Ve = 1236999138, Ge = 1368629611, Be = 1715899485, xe = 1942830531, He = 1999510636, Ye = 2079864626, $e = 2142346422, Ke = 2598291686, je = 2719718823, Xe = 2810953526, ze = 2840065720, We = 2885165957, Je = 3586157513, qe = 3717933110, Qe = 4062655306;
|
|
651
|
+
function Ze(t) {
|
|
642
652
|
const e = {};
|
|
643
653
|
return Dt(e), e;
|
|
644
654
|
}
|
|
645
655
|
function Dt(t) {
|
|
646
|
-
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType =
|
|
656
|
+
return t.ContextType = ft.Unknown, t.UserType = Tt.Unknown, t.PayloadType = ut.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 = At.Unknown, t;
|
|
647
657
|
}
|
|
648
|
-
function
|
|
649
|
-
const s = e ??
|
|
650
|
-
return Dt(s),
|
|
658
|
+
function ts(t, e) {
|
|
659
|
+
const s = e ?? Ze();
|
|
660
|
+
return Dt(s), es(t, s), s;
|
|
651
661
|
}
|
|
652
|
-
function
|
|
662
|
+
function es(t, e) {
|
|
653
663
|
let s;
|
|
654
664
|
for (; (s = t.next()) !== null; )
|
|
655
665
|
switch (s.fieldId) {
|
|
656
|
-
case
|
|
666
|
+
case ge: {
|
|
657
667
|
if (s.isNull) throw new Error();
|
|
658
668
|
e.DeviceId = s.asString();
|
|
659
669
|
break;
|
|
660
670
|
}
|
|
661
|
-
case
|
|
671
|
+
case Oe: {
|
|
662
672
|
if (s.isNull) throw new Error();
|
|
663
673
|
e.InstallId = s.asString();
|
|
664
674
|
break;
|
|
665
675
|
}
|
|
666
|
-
case
|
|
676
|
+
case Pe: {
|
|
667
677
|
if (s.isNull) throw new Error();
|
|
668
678
|
e.UserAgent = s.asString();
|
|
669
679
|
break;
|
|
670
680
|
}
|
|
671
|
-
case
|
|
681
|
+
case be: {
|
|
672
682
|
if (s.isNull) throw new Error();
|
|
673
683
|
e.ContextType = s.asInt32();
|
|
674
684
|
break;
|
|
675
685
|
}
|
|
676
|
-
case
|
|
686
|
+
case Fe: {
|
|
677
687
|
if (s.isNull) throw new Error();
|
|
678
688
|
e.HasInput = s.asBool();
|
|
679
689
|
break;
|
|
680
690
|
}
|
|
681
|
-
case
|
|
691
|
+
case pe: {
|
|
682
692
|
if (s.isNull) throw new Error();
|
|
683
693
|
e.UserType = s.asInt32();
|
|
684
694
|
break;
|
|
685
695
|
}
|
|
686
|
-
case
|
|
696
|
+
case ve: {
|
|
687
697
|
if (s.isNull) throw new Error();
|
|
688
698
|
e.UserId = s.asString();
|
|
689
699
|
break;
|
|
690
700
|
}
|
|
691
|
-
case
|
|
701
|
+
case Me: {
|
|
692
702
|
if (s.isNull) throw new Error();
|
|
693
703
|
e.ProductId = s.asString();
|
|
694
704
|
break;
|
|
695
705
|
}
|
|
696
|
-
case
|
|
706
|
+
case ke: {
|
|
697
707
|
if (s.isNull) throw new Error();
|
|
698
708
|
e.AuthSessionId = s.asString();
|
|
699
709
|
break;
|
|
700
710
|
}
|
|
701
|
-
case
|
|
711
|
+
case Ve: {
|
|
702
712
|
if (s.isNull) throw new Error();
|
|
703
713
|
e.ReceiveAllMessages = s.asBool();
|
|
704
714
|
break;
|
|
705
715
|
}
|
|
706
|
-
case
|
|
716
|
+
case Ge: {
|
|
707
717
|
if (s.isNull) throw new Error();
|
|
708
718
|
e.Description = s.asString();
|
|
709
719
|
break;
|
|
710
720
|
}
|
|
711
|
-
case
|
|
721
|
+
case Be: {
|
|
712
722
|
if (s.isNull) throw new Error();
|
|
713
723
|
e.Locale = s.asString();
|
|
714
724
|
break;
|
|
715
725
|
}
|
|
716
|
-
case
|
|
726
|
+
case xe: {
|
|
717
727
|
if (s.isNull) throw new Error();
|
|
718
728
|
e.SdkType = s.asInt32();
|
|
719
729
|
break;
|
|
720
730
|
}
|
|
721
|
-
case
|
|
731
|
+
case He: {
|
|
722
732
|
if (s.isNull) throw new Error();
|
|
723
733
|
e.SessionId = s.asInt32();
|
|
724
734
|
break;
|
|
725
735
|
}
|
|
726
|
-
case
|
|
736
|
+
case Ye: {
|
|
727
737
|
if (s.isNull) throw new Error();
|
|
728
738
|
e.PreciseJoinedAt = s.asUInt64();
|
|
729
739
|
break;
|
|
730
740
|
}
|
|
731
|
-
case
|
|
741
|
+
case $e: {
|
|
732
742
|
if (s.isNull) throw new Error();
|
|
733
743
|
e.PayloadType = s.asInt32();
|
|
734
744
|
break;
|
|
735
745
|
}
|
|
736
|
-
case
|
|
746
|
+
case Ke: {
|
|
737
747
|
if (s.isNull) throw new Error();
|
|
738
748
|
e.VersionId = s.asString();
|
|
739
749
|
break;
|
|
740
750
|
}
|
|
741
|
-
case
|
|
751
|
+
case je: {
|
|
742
752
|
if (s.isNull) throw new Error();
|
|
743
753
|
e.UniqueSessionId = s.asString();
|
|
744
754
|
break;
|
|
745
755
|
}
|
|
746
|
-
case
|
|
756
|
+
case Xe: {
|
|
747
757
|
if (s.isNull) throw new Error();
|
|
748
758
|
e.ClientType = s.asInt32();
|
|
749
759
|
break;
|
|
750
760
|
}
|
|
751
|
-
case
|
|
761
|
+
case ze: {
|
|
752
762
|
if (s.isNull) throw new Error();
|
|
753
763
|
e.IsReady = s.asBool();
|
|
754
764
|
break;
|
|
755
765
|
}
|
|
756
|
-
case
|
|
766
|
+
case We: {
|
|
757
767
|
if (s.isNull) throw new Error();
|
|
758
|
-
e.Parameters =
|
|
768
|
+
e.Parameters = ss(s.asDictionary());
|
|
759
769
|
break;
|
|
760
770
|
}
|
|
761
|
-
case
|
|
771
|
+
case Je: {
|
|
762
772
|
if (s.isNull) throw new Error();
|
|
763
773
|
e.IsInternal = s.asBool();
|
|
764
774
|
break;
|
|
765
775
|
}
|
|
766
|
-
case
|
|
776
|
+
case qe: {
|
|
767
777
|
if (s.isNull) throw new Error();
|
|
768
778
|
e.ChannelLocale = s.asString();
|
|
769
779
|
break;
|
|
770
780
|
}
|
|
771
|
-
case
|
|
781
|
+
case Qe: {
|
|
772
782
|
if (s.isNull) throw new Error();
|
|
773
783
|
e.EmbeddedSpaceId = s.asString();
|
|
774
784
|
break;
|
|
775
785
|
}
|
|
776
786
|
}
|
|
777
787
|
}
|
|
778
|
-
function
|
|
788
|
+
function ss(t) {
|
|
779
789
|
const e = /* @__PURE__ */ Object.create(null);
|
|
780
790
|
let s;
|
|
781
791
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -784,190 +794,190 @@ function ts(t) {
|
|
|
784
794
|
}
|
|
785
795
|
return e;
|
|
786
796
|
}
|
|
787
|
-
const
|
|
788
|
-
function
|
|
797
|
+
const rs = 703025676, ns = 814454131, is = 972460562, os = 976255570, as = 1368629611, ls = 1479280922, Is = 1533537016, cs = 2274386296, Es = 2603556958, _s = 2885165957, fs = 3568439632;
|
|
798
|
+
function us(t) {
|
|
789
799
|
const e = {};
|
|
790
800
|
return Ut(e), e;
|
|
791
801
|
}
|
|
792
802
|
function Ut(t) {
|
|
793
803
|
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;
|
|
794
804
|
}
|
|
795
|
-
function fs(t, e) {
|
|
796
|
-
const s = e ?? _s();
|
|
797
|
-
return Ut(s), hs(t, s), s;
|
|
798
|
-
}
|
|
799
805
|
function hs(t, e) {
|
|
806
|
+
const s = e ?? us();
|
|
807
|
+
return Ut(s), Ts(t, s), s;
|
|
808
|
+
}
|
|
809
|
+
function Ts(t, e) {
|
|
800
810
|
let s;
|
|
801
811
|
for (; (s = t.next()) !== null; )
|
|
802
812
|
switch (s.fieldId) {
|
|
803
|
-
case
|
|
813
|
+
case rs: {
|
|
804
814
|
if (s.isNull) throw new Error();
|
|
805
815
|
e.ResultTypeName = s.asString();
|
|
806
816
|
break;
|
|
807
817
|
}
|
|
808
|
-
case
|
|
818
|
+
case ns: {
|
|
809
819
|
if (s.isNull) throw new Error();
|
|
810
820
|
e.FunctionName = s.asString();
|
|
811
821
|
break;
|
|
812
822
|
}
|
|
813
|
-
case
|
|
823
|
+
case is: {
|
|
814
824
|
if (s.isNull) throw new Error();
|
|
815
825
|
e.EnumerableItemTypeName = s.asString();
|
|
816
826
|
break;
|
|
817
827
|
}
|
|
818
|
-
case
|
|
828
|
+
case os: {
|
|
819
829
|
if (s.isNull) throw new Error();
|
|
820
830
|
e.FunctionId = s.asGuid();
|
|
821
831
|
break;
|
|
822
832
|
}
|
|
823
|
-
case
|
|
833
|
+
case as: {
|
|
824
834
|
if (s.isNull) throw new Error();
|
|
825
835
|
e.Description = s.asString();
|
|
826
836
|
break;
|
|
827
837
|
}
|
|
828
|
-
case
|
|
838
|
+
case ls: {
|
|
829
839
|
if (s.isNull) throw new Error();
|
|
830
840
|
e.IsCancellable = s.asBool();
|
|
831
841
|
break;
|
|
832
842
|
}
|
|
833
|
-
case
|
|
843
|
+
case Is: {
|
|
834
844
|
if (s.isNull) throw new Error();
|
|
835
845
|
e.RequiresInstance = s.asBool();
|
|
836
846
|
break;
|
|
837
847
|
}
|
|
838
|
-
case
|
|
848
|
+
case cs: {
|
|
839
849
|
if (s.isNull) throw new Error();
|
|
840
850
|
e.LlmInlineResult = s.asBool();
|
|
841
851
|
break;
|
|
842
852
|
}
|
|
843
|
-
case
|
|
853
|
+
case Es: {
|
|
844
854
|
if (s.isNull) throw new Error();
|
|
845
855
|
e.IsEnumerable = s.asBool();
|
|
846
856
|
break;
|
|
847
857
|
}
|
|
848
|
-
case
|
|
858
|
+
case _s: {
|
|
849
859
|
if (s.isNull) throw new Error();
|
|
850
|
-
e.Parameters =
|
|
860
|
+
e.Parameters = Ns(s.asArray());
|
|
851
861
|
break;
|
|
852
862
|
}
|
|
853
|
-
case
|
|
863
|
+
case fs: {
|
|
854
864
|
if (s.isNull) throw new Error();
|
|
855
865
|
e.LlmCallOnlyOnce = s.asBool();
|
|
856
866
|
break;
|
|
857
867
|
}
|
|
858
868
|
}
|
|
859
869
|
}
|
|
860
|
-
function
|
|
870
|
+
function Ns(t) {
|
|
861
871
|
const e = [];
|
|
862
872
|
let s;
|
|
863
873
|
for (; (s = t.next()) !== null; )
|
|
864
|
-
e.push(
|
|
874
|
+
e.push(Ls(s.asObject()));
|
|
865
875
|
return e;
|
|
866
876
|
}
|
|
867
|
-
const
|
|
868
|
-
function
|
|
877
|
+
const As = 607861992, ds = 894485888, Ss = 972460562, ys = 1368629611, ws = 1883521406, Cs = 2603556958, Ds = 3609695522, Us = 4075263697, Rs = 4257460908;
|
|
878
|
+
function ms(t) {
|
|
869
879
|
const e = {};
|
|
870
880
|
return Rt(e), e;
|
|
871
881
|
}
|
|
872
882
|
function Rt(t) {
|
|
873
883
|
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;
|
|
874
884
|
}
|
|
875
|
-
function
|
|
876
|
-
const s = e ??
|
|
877
|
-
return Rt(s),
|
|
885
|
+
function Ls(t, e) {
|
|
886
|
+
const s = e ?? ms();
|
|
887
|
+
return Rt(s), gs(t, s), s;
|
|
878
888
|
}
|
|
879
|
-
function
|
|
889
|
+
function gs(t, e) {
|
|
880
890
|
let s;
|
|
881
891
|
for (; (s = t.next()) !== null; )
|
|
882
892
|
switch (s.fieldId) {
|
|
883
|
-
case
|
|
893
|
+
case As: {
|
|
884
894
|
if (s.isNull) throw new Error();
|
|
885
895
|
e.HasDefaultValue = s.asBool();
|
|
886
896
|
break;
|
|
887
897
|
}
|
|
888
|
-
case
|
|
898
|
+
case ds: {
|
|
889
899
|
if (s.isNull) throw new Error();
|
|
890
900
|
e.DefaultValueJson = s.asString();
|
|
891
901
|
break;
|
|
892
902
|
}
|
|
893
|
-
case
|
|
903
|
+
case Ss: {
|
|
894
904
|
if (s.isNull) throw new Error();
|
|
895
905
|
e.EnumerableItemTypeName = s.asString();
|
|
896
906
|
break;
|
|
897
907
|
}
|
|
898
|
-
case
|
|
908
|
+
case ys: {
|
|
899
909
|
if (s.isNull) throw new Error();
|
|
900
910
|
e.Description = s.asString();
|
|
901
911
|
break;
|
|
902
912
|
}
|
|
903
|
-
case
|
|
913
|
+
case ws: {
|
|
904
914
|
if (s.isNull) throw new Error();
|
|
905
915
|
e.DefaultValueData = s.asBinary();
|
|
906
916
|
break;
|
|
907
917
|
}
|
|
908
|
-
case
|
|
918
|
+
case Cs: {
|
|
909
919
|
if (s.isNull) throw new Error();
|
|
910
920
|
e.IsEnumerable = s.asBool();
|
|
911
921
|
break;
|
|
912
922
|
}
|
|
913
|
-
case
|
|
923
|
+
case Ds: {
|
|
914
924
|
if (s.isNull) throw new Error();
|
|
915
925
|
e.TypeName = s.asString();
|
|
916
926
|
break;
|
|
917
927
|
}
|
|
918
|
-
case
|
|
928
|
+
case Us: {
|
|
919
929
|
if (s.isNull) throw new Error();
|
|
920
930
|
e.ParameterName = s.asString();
|
|
921
931
|
break;
|
|
922
932
|
}
|
|
923
|
-
case
|
|
933
|
+
case Rs: {
|
|
924
934
|
if (s.isNull) throw new Error();
|
|
925
935
|
e.ParameterIndex = s.asInt32();
|
|
926
936
|
break;
|
|
927
937
|
}
|
|
928
938
|
}
|
|
929
939
|
}
|
|
930
|
-
const
|
|
940
|
+
const Os = 3167053791, Ps = 3342364356, bs = 3612929027;
|
|
931
941
|
function mt(t) {
|
|
932
942
|
const e = {};
|
|
933
943
|
return Lt(e), e;
|
|
934
944
|
}
|
|
935
945
|
function Lt(t) {
|
|
936
|
-
return t.Category = "", t.Type =
|
|
946
|
+
return t.Category = "", t.Type = ht.Face, t.FaceBlendshapes = [], t;
|
|
937
947
|
}
|
|
938
|
-
function
|
|
948
|
+
function Fs(t, e) {
|
|
939
949
|
const s = e ?? mt();
|
|
940
|
-
return Lt(s),
|
|
950
|
+
return Lt(s), ps(t, s), s;
|
|
941
951
|
}
|
|
942
|
-
function
|
|
952
|
+
function ps(t, e) {
|
|
943
953
|
let s;
|
|
944
954
|
for (; (s = t.next()) !== null; )
|
|
945
955
|
switch (s.fieldId) {
|
|
946
|
-
case
|
|
956
|
+
case Os: {
|
|
947
957
|
if (s.isNull) throw new Error();
|
|
948
958
|
e.Type = s.asInt32();
|
|
949
959
|
break;
|
|
950
960
|
}
|
|
951
|
-
case
|
|
961
|
+
case Ps: {
|
|
952
962
|
if (s.isNull) throw new Error();
|
|
953
|
-
e.FaceBlendshapes =
|
|
963
|
+
e.FaceBlendshapes = vs(s.asArray());
|
|
954
964
|
break;
|
|
955
965
|
}
|
|
956
|
-
case
|
|
966
|
+
case bs: {
|
|
957
967
|
if (s.isNull) throw new Error();
|
|
958
968
|
e.Category = s.asString();
|
|
959
969
|
break;
|
|
960
970
|
}
|
|
961
971
|
}
|
|
962
972
|
}
|
|
963
|
-
function
|
|
973
|
+
function vs(t) {
|
|
964
974
|
const e = [];
|
|
965
975
|
let s;
|
|
966
976
|
for (; (s = t.next()) !== null; )
|
|
967
977
|
e.push(s.asString());
|
|
968
978
|
return e;
|
|
969
979
|
}
|
|
970
|
-
const
|
|
980
|
+
const Ms = 3612929027;
|
|
971
981
|
function gt(t) {
|
|
972
982
|
const e = {};
|
|
973
983
|
return Ot(e), e;
|
|
@@ -975,473 +985,478 @@ function gt(t) {
|
|
|
975
985
|
function Ot(t) {
|
|
976
986
|
return t.Category = "", t;
|
|
977
987
|
}
|
|
978
|
-
function
|
|
988
|
+
function ks(t, e) {
|
|
979
989
|
const s = e ?? gt();
|
|
980
|
-
return Ot(s),
|
|
990
|
+
return Ot(s), Vs(t, s), s;
|
|
981
991
|
}
|
|
982
|
-
function
|
|
992
|
+
function Vs(t, e) {
|
|
983
993
|
let s;
|
|
984
994
|
for (; (s = t.next()) !== null; )
|
|
985
995
|
switch (s.fieldId) {
|
|
986
|
-
case
|
|
996
|
+
case Ms: {
|
|
987
997
|
if (s.isNull) throw new Error();
|
|
988
998
|
e.Category = s.asString();
|
|
989
999
|
break;
|
|
990
1000
|
}
|
|
991
1001
|
}
|
|
992
1002
|
}
|
|
993
|
-
const
|
|
1003
|
+
const Gs = 161083277, Bs = 164808083, xs = 1368629611, Hs = 2745379226, Ys = 2950031986, $s = 3282782683, Ks = 3284746250, js = 4065070594;
|
|
994
1004
|
function Pt(t) {
|
|
995
1005
|
const e = {};
|
|
996
1006
|
return bt(e), e;
|
|
997
1007
|
}
|
|
998
1008
|
function bt(t) {
|
|
999
|
-
return t.Description = "", t.
|
|
1009
|
+
return t.StreamId = "", t.Description = "", t.SourceType = "", t.Codec = Nt.H264, t.CodecDetails = "", t.Width = 0, t.Height = 0, t.Framerate = 30, t;
|
|
1000
1010
|
}
|
|
1001
|
-
function
|
|
1011
|
+
function Xs(t, e) {
|
|
1002
1012
|
const s = e ?? Pt();
|
|
1003
|
-
return bt(s),
|
|
1013
|
+
return bt(s), zs(t, s), s;
|
|
1004
1014
|
}
|
|
1005
|
-
function
|
|
1015
|
+
function zs(t, e) {
|
|
1006
1016
|
let s;
|
|
1007
1017
|
for (; (s = t.next()) !== null; )
|
|
1008
1018
|
switch (s.fieldId) {
|
|
1009
|
-
case
|
|
1019
|
+
case Gs: {
|
|
1010
1020
|
if (s.isNull) throw new Error();
|
|
1011
|
-
e.
|
|
1021
|
+
e.StreamId = s.asString();
|
|
1012
1022
|
break;
|
|
1013
1023
|
}
|
|
1014
|
-
case
|
|
1024
|
+
case Bs: {
|
|
1015
1025
|
if (s.isNull) throw new Error();
|
|
1016
|
-
e.
|
|
1026
|
+
e.Framerate = s.asFloat64();
|
|
1017
1027
|
break;
|
|
1018
1028
|
}
|
|
1019
|
-
case
|
|
1029
|
+
case xs: {
|
|
1020
1030
|
if (s.isNull) throw new Error();
|
|
1021
|
-
e.
|
|
1031
|
+
e.Description = s.asString();
|
|
1022
1032
|
break;
|
|
1023
1033
|
}
|
|
1024
|
-
case
|
|
1034
|
+
case Hs: {
|
|
1025
1035
|
if (s.isNull) throw new Error();
|
|
1026
|
-
e.
|
|
1036
|
+
e.CodecDetails = s.asString();
|
|
1027
1037
|
break;
|
|
1028
1038
|
}
|
|
1029
|
-
case
|
|
1039
|
+
case Ys: {
|
|
1030
1040
|
if (s.isNull) throw new Error();
|
|
1031
1041
|
e.Height = s.asInt32();
|
|
1032
1042
|
break;
|
|
1033
1043
|
}
|
|
1034
|
-
case
|
|
1044
|
+
case $s: {
|
|
1045
|
+
if (s.isNull) throw new Error();
|
|
1046
|
+
e.SourceType = s.asString();
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
case Ks: {
|
|
1035
1050
|
if (s.isNull) throw new Error();
|
|
1036
1051
|
e.Codec = s.asInt32();
|
|
1037
1052
|
break;
|
|
1038
1053
|
}
|
|
1039
|
-
case
|
|
1054
|
+
case js: {
|
|
1040
1055
|
if (s.isNull) throw new Error();
|
|
1041
1056
|
e.Width = s.asInt32();
|
|
1042
1057
|
break;
|
|
1043
1058
|
}
|
|
1044
1059
|
}
|
|
1045
1060
|
}
|
|
1046
|
-
const
|
|
1047
|
-
function
|
|
1061
|
+
const Ws = 65539, Js = 693643444, qs = 1144553441, Qs = 1497620243, Zs = 1559330978, tr = 1976546434, er = 1999510636, sr = 2277643855, rr = 2469008121, nr = 3042922213, ir = 3064612128, or = 3219210453, ar = 3504054055, lr = 3678477544, Ir = 3696445035, cr = 3707543140, Er = 3712281496, _r = 3895362455, fr = 3897397815, ur = 4225107827;
|
|
1062
|
+
function hr(t) {
|
|
1048
1063
|
const e = {};
|
|
1049
1064
|
return Ft(e), e;
|
|
1050
1065
|
}
|
|
1051
1066
|
function Ft(t) {
|
|
1052
1067
|
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.FirstUserId = "", t.PrimaryUserId = "", t.OrganisationName = "", t.SpaceName = "", t.ChannelName = "", t.ServerRunType = dt.Local, t.AppSourceType = St.Bundle, t.PublicAccess = !1, t.DebugMode = !1, t;
|
|
1053
1068
|
}
|
|
1054
|
-
function
|
|
1069
|
+
function Tr(t, e) {
|
|
1055
1070
|
const s = L.create(t);
|
|
1056
|
-
return
|
|
1071
|
+
return Nr(s, e);
|
|
1057
1072
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const s = e ??
|
|
1060
|
-
return Ft(s),
|
|
1073
|
+
function Nr(t, e) {
|
|
1074
|
+
const s = e ?? hr();
|
|
1075
|
+
return Ft(s), Ar(t, s), s;
|
|
1061
1076
|
}
|
|
1062
|
-
function
|
|
1077
|
+
function Ar(t, e) {
|
|
1063
1078
|
let s;
|
|
1064
1079
|
for (; (s = t.next()) !== null; )
|
|
1065
1080
|
switch (s.fieldId) {
|
|
1066
|
-
case
|
|
1081
|
+
case Js: {
|
|
1067
1082
|
if (s.isNull) throw new Error();
|
|
1068
1083
|
e.FirstUserId = s.asString();
|
|
1069
1084
|
break;
|
|
1070
1085
|
}
|
|
1071
|
-
case
|
|
1086
|
+
case qs: {
|
|
1072
1087
|
if (s.isNull) throw new Error();
|
|
1073
|
-
e.Clients =
|
|
1088
|
+
e.Clients = Sr(s.asDictionary());
|
|
1074
1089
|
break;
|
|
1075
1090
|
}
|
|
1076
|
-
case
|
|
1091
|
+
case Qs: {
|
|
1077
1092
|
if (s.isNull) throw new Error();
|
|
1078
|
-
e.TrackingStreams =
|
|
1093
|
+
e.TrackingStreams = yr(s.asDictionary());
|
|
1079
1094
|
break;
|
|
1080
1095
|
}
|
|
1081
|
-
case
|
|
1096
|
+
case Zs: {
|
|
1082
1097
|
if (s.isNull) throw new Error();
|
|
1083
1098
|
e.ChannelId = s.asString();
|
|
1084
1099
|
break;
|
|
1085
1100
|
}
|
|
1086
|
-
case
|
|
1101
|
+
case tr: {
|
|
1087
1102
|
if (s.isNull) throw new Error();
|
|
1088
1103
|
e.AppSourceType = s.asInt32();
|
|
1089
1104
|
break;
|
|
1090
1105
|
}
|
|
1091
|
-
case
|
|
1106
|
+
case er: {
|
|
1092
1107
|
if (s.isNull) throw new Error();
|
|
1093
1108
|
e.SessionId = s.asString();
|
|
1094
1109
|
break;
|
|
1095
1110
|
}
|
|
1096
|
-
case
|
|
1111
|
+
case sr: {
|
|
1097
1112
|
if (s.isNull) throw new Error();
|
|
1098
1113
|
e.ChannelUrl = s.asString();
|
|
1099
1114
|
break;
|
|
1100
1115
|
}
|
|
1101
|
-
case
|
|
1116
|
+
case rr: {
|
|
1102
1117
|
if (s.isNull) throw new Error();
|
|
1103
1118
|
e.ChannelName = s.asString();
|
|
1104
1119
|
break;
|
|
1105
1120
|
}
|
|
1106
|
-
case
|
|
1121
|
+
case nr: {
|
|
1107
1122
|
if (s.isNull) throw new Error();
|
|
1108
1123
|
e.PublicAccess = s.asBool();
|
|
1109
1124
|
break;
|
|
1110
1125
|
}
|
|
1111
|
-
case
|
|
1126
|
+
case ir: {
|
|
1112
1127
|
if (s.isNull) throw new Error();
|
|
1113
1128
|
e.ServerRunType = s.asInt32();
|
|
1114
1129
|
break;
|
|
1115
1130
|
}
|
|
1116
|
-
case
|
|
1131
|
+
case or: {
|
|
1117
1132
|
if (s.isNull) throw new Error();
|
|
1118
1133
|
e.OrganisationName = s.asString();
|
|
1119
1134
|
break;
|
|
1120
1135
|
}
|
|
1121
|
-
case
|
|
1136
|
+
case ar: {
|
|
1122
1137
|
if (s.isNull) throw new Error();
|
|
1123
1138
|
e.DebugMode = s.asBool();
|
|
1124
1139
|
break;
|
|
1125
1140
|
}
|
|
1126
|
-
case
|
|
1141
|
+
case lr: {
|
|
1127
1142
|
if (s.isNull) throw new Error();
|
|
1128
|
-
e.Functions =
|
|
1143
|
+
e.Functions = wr(s.asDictionary());
|
|
1129
1144
|
break;
|
|
1130
1145
|
}
|
|
1131
|
-
case
|
|
1146
|
+
case Ir: {
|
|
1132
1147
|
if (s.isNull) throw new Error();
|
|
1133
|
-
e.UIStreams =
|
|
1148
|
+
e.UIStreams = Cr(s.asDictionary());
|
|
1134
1149
|
break;
|
|
1135
1150
|
}
|
|
1136
|
-
case
|
|
1151
|
+
case cr: {
|
|
1137
1152
|
if (s.isNull) throw new Error();
|
|
1138
1153
|
e.SpaceId = s.asString();
|
|
1139
1154
|
break;
|
|
1140
1155
|
}
|
|
1141
|
-
case
|
|
1156
|
+
case Er: {
|
|
1142
1157
|
if (s.isNull) throw new Error();
|
|
1143
1158
|
e.PrimaryUserId = s.asString();
|
|
1144
1159
|
break;
|
|
1145
1160
|
}
|
|
1146
|
-
case
|
|
1161
|
+
case _r: {
|
|
1147
1162
|
if (s.isNull) throw new Error();
|
|
1148
|
-
e.AudioStreams =
|
|
1163
|
+
e.AudioStreams = Dr(s.asDictionary());
|
|
1149
1164
|
break;
|
|
1150
1165
|
}
|
|
1151
|
-
case
|
|
1166
|
+
case fr: {
|
|
1152
1167
|
if (s.isNull) throw new Error();
|
|
1153
|
-
e.VideoStreams =
|
|
1168
|
+
e.VideoStreams = Ur(s.asDictionary());
|
|
1154
1169
|
break;
|
|
1155
1170
|
}
|
|
1156
|
-
case
|
|
1171
|
+
case ur: {
|
|
1157
1172
|
if (s.isNull) throw new Error();
|
|
1158
1173
|
e.SpaceName = s.asString();
|
|
1159
1174
|
break;
|
|
1160
1175
|
}
|
|
1161
1176
|
}
|
|
1162
1177
|
}
|
|
1163
|
-
async function
|
|
1164
|
-
const s = await $(t,
|
|
1165
|
-
return
|
|
1178
|
+
async function dr(t, e) {
|
|
1179
|
+
const s = await $(t, Ws);
|
|
1180
|
+
return Tr(s, e);
|
|
1166
1181
|
}
|
|
1167
|
-
function
|
|
1182
|
+
function Sr(t) {
|
|
1168
1183
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1169
1184
|
let s;
|
|
1170
1185
|
for (; (s = t.next()) !== null; ) {
|
|
1171
1186
|
const r = s.key.asInt32();
|
|
1172
|
-
e[r] =
|
|
1187
|
+
e[r] = ts(s.value.asObject());
|
|
1173
1188
|
}
|
|
1174
1189
|
return e;
|
|
1175
1190
|
}
|
|
1176
|
-
function
|
|
1191
|
+
function yr(t) {
|
|
1177
1192
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1178
1193
|
let s;
|
|
1179
1194
|
for (; (s = t.next()) !== null; ) {
|
|
1180
1195
|
const r = s.key.asString();
|
|
1181
|
-
e[r] =
|
|
1196
|
+
e[r] = Zr(s.value.asObject());
|
|
1182
1197
|
}
|
|
1183
1198
|
return e;
|
|
1184
1199
|
}
|
|
1185
|
-
function
|
|
1200
|
+
function wr(t) {
|
|
1186
1201
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1187
1202
|
let s;
|
|
1188
1203
|
for (; (s = t.next()) !== null; ) {
|
|
1189
1204
|
const r = s.key.asInt32();
|
|
1190
|
-
e[r] =
|
|
1205
|
+
e[r] = Rr(s.value.asArray());
|
|
1191
1206
|
}
|
|
1192
1207
|
return e;
|
|
1193
1208
|
}
|
|
1194
|
-
function
|
|
1209
|
+
function Cr(t) {
|
|
1195
1210
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1196
1211
|
let s;
|
|
1197
1212
|
for (; (s = t.next()) !== null; ) {
|
|
1198
1213
|
const r = s.key.asString();
|
|
1199
|
-
e[r] =
|
|
1214
|
+
e[r] = br(s.value.asObject());
|
|
1200
1215
|
}
|
|
1201
1216
|
return e;
|
|
1202
1217
|
}
|
|
1203
|
-
function
|
|
1218
|
+
function Dr(t) {
|
|
1204
1219
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1205
1220
|
let s;
|
|
1206
1221
|
for (; (s = t.next()) !== null; ) {
|
|
1207
1222
|
const r = s.key.asString();
|
|
1208
|
-
e[r] =
|
|
1223
|
+
e[r] = Gr(s.value.asObject());
|
|
1209
1224
|
}
|
|
1210
1225
|
return e;
|
|
1211
1226
|
}
|
|
1212
|
-
function
|
|
1227
|
+
function Ur(t) {
|
|
1213
1228
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1214
1229
|
let s;
|
|
1215
1230
|
for (; (s = t.next()) !== null; ) {
|
|
1216
1231
|
const r = s.key.asString();
|
|
1217
|
-
e[r] =
|
|
1232
|
+
e[r] = jr(s.value.asObject());
|
|
1218
1233
|
}
|
|
1219
1234
|
return e;
|
|
1220
1235
|
}
|
|
1221
|
-
function
|
|
1236
|
+
function Rr(t) {
|
|
1222
1237
|
const e = [];
|
|
1223
1238
|
let s;
|
|
1224
1239
|
for (; (s = t.next()) !== null; )
|
|
1225
|
-
e.push(
|
|
1240
|
+
e.push(hs(s.asObject()));
|
|
1226
1241
|
return e;
|
|
1227
1242
|
}
|
|
1228
|
-
const
|
|
1229
|
-
function
|
|
1243
|
+
const mr = 161083277, Lr = 325678206, gr = 3469892363, Or = 3645544153;
|
|
1244
|
+
function Pr(t) {
|
|
1230
1245
|
const e = {};
|
|
1231
1246
|
return pt(e), e;
|
|
1232
1247
|
}
|
|
1233
1248
|
function pt(t) {
|
|
1234
1249
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = gt(), t;
|
|
1235
1250
|
}
|
|
1236
|
-
function
|
|
1237
|
-
const s = e ??
|
|
1238
|
-
return pt(s),
|
|
1251
|
+
function br(t, e) {
|
|
1252
|
+
const s = e ?? Pr();
|
|
1253
|
+
return pt(s), Fr(t, s), s;
|
|
1239
1254
|
}
|
|
1240
|
-
function
|
|
1255
|
+
function Fr(t, e) {
|
|
1241
1256
|
let s;
|
|
1242
1257
|
for (; (s = t.next()) !== null; )
|
|
1243
1258
|
switch (s.fieldId) {
|
|
1244
|
-
case
|
|
1259
|
+
case mr: {
|
|
1245
1260
|
if (s.isNull) throw new Error();
|
|
1246
1261
|
e.StreamId = s.asString();
|
|
1247
1262
|
break;
|
|
1248
1263
|
}
|
|
1249
|
-
case
|
|
1264
|
+
case Lr: {
|
|
1250
1265
|
if (s.isNull) throw new Error();
|
|
1251
1266
|
e.ClientSessionId = s.asInt32();
|
|
1252
1267
|
break;
|
|
1253
1268
|
}
|
|
1254
|
-
case
|
|
1269
|
+
case gr: {
|
|
1255
1270
|
if (s.isNull) throw new Error();
|
|
1256
1271
|
e.TrackId = s.asInt32();
|
|
1257
1272
|
break;
|
|
1258
1273
|
}
|
|
1259
|
-
case
|
|
1274
|
+
case Or: {
|
|
1260
1275
|
if (s.isNull) throw new Error();
|
|
1261
|
-
e.Info =
|
|
1276
|
+
e.Info = ks(s.asObject());
|
|
1262
1277
|
break;
|
|
1263
1278
|
}
|
|
1264
1279
|
}
|
|
1265
1280
|
}
|
|
1266
|
-
const
|
|
1267
|
-
function
|
|
1281
|
+
const pr = 161083277, vr = 325678206, Mr = 3469892363, kr = 3645544153;
|
|
1282
|
+
function Vr(t) {
|
|
1268
1283
|
const e = {};
|
|
1269
1284
|
return vt(e), e;
|
|
1270
1285
|
}
|
|
1271
1286
|
function vt(t) {
|
|
1272
1287
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = yt(), t;
|
|
1273
1288
|
}
|
|
1274
|
-
function
|
|
1275
|
-
const s = e ??
|
|
1276
|
-
return vt(s),
|
|
1289
|
+
function Gr(t, e) {
|
|
1290
|
+
const s = e ?? Vr();
|
|
1291
|
+
return vt(s), Br(t, s), s;
|
|
1277
1292
|
}
|
|
1278
|
-
function
|
|
1293
|
+
function Br(t, e) {
|
|
1279
1294
|
let s;
|
|
1280
1295
|
for (; (s = t.next()) !== null; )
|
|
1281
1296
|
switch (s.fieldId) {
|
|
1282
|
-
case
|
|
1297
|
+
case pr: {
|
|
1283
1298
|
if (s.isNull) throw new Error();
|
|
1284
1299
|
e.StreamId = s.asString();
|
|
1285
1300
|
break;
|
|
1286
1301
|
}
|
|
1287
|
-
case
|
|
1302
|
+
case vr: {
|
|
1288
1303
|
if (s.isNull) throw new Error();
|
|
1289
1304
|
e.ClientSessionId = s.asInt32();
|
|
1290
1305
|
break;
|
|
1291
1306
|
}
|
|
1292
|
-
case
|
|
1307
|
+
case Mr: {
|
|
1293
1308
|
if (s.isNull) throw new Error();
|
|
1294
1309
|
e.TrackId = s.asInt32();
|
|
1295
1310
|
break;
|
|
1296
1311
|
}
|
|
1297
|
-
case
|
|
1312
|
+
case kr: {
|
|
1298
1313
|
if (s.isNull) throw new Error();
|
|
1299
|
-
e.Info =
|
|
1314
|
+
e.Info = de(s.asObject());
|
|
1300
1315
|
break;
|
|
1301
1316
|
}
|
|
1302
1317
|
}
|
|
1303
1318
|
}
|
|
1304
|
-
const
|
|
1305
|
-
function
|
|
1319
|
+
const xr = 161083277, Hr = 325678206, Yr = 3469892363, $r = 3645544153;
|
|
1320
|
+
function Kr(t) {
|
|
1306
1321
|
const e = {};
|
|
1307
1322
|
return Mt(e), e;
|
|
1308
1323
|
}
|
|
1309
1324
|
function Mt(t) {
|
|
1310
1325
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = Pt(), t;
|
|
1311
1326
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const s = e ??
|
|
1314
|
-
return Mt(s),
|
|
1327
|
+
function jr(t, e) {
|
|
1328
|
+
const s = e ?? Kr();
|
|
1329
|
+
return Mt(s), Xr(t, s), s;
|
|
1315
1330
|
}
|
|
1316
|
-
function
|
|
1331
|
+
function Xr(t, e) {
|
|
1317
1332
|
let s;
|
|
1318
1333
|
for (; (s = t.next()) !== null; )
|
|
1319
1334
|
switch (s.fieldId) {
|
|
1320
|
-
case
|
|
1335
|
+
case xr: {
|
|
1321
1336
|
if (s.isNull) throw new Error();
|
|
1322
1337
|
e.StreamId = s.asString();
|
|
1323
1338
|
break;
|
|
1324
1339
|
}
|
|
1325
|
-
case
|
|
1340
|
+
case Hr: {
|
|
1326
1341
|
if (s.isNull) throw new Error();
|
|
1327
1342
|
e.ClientSessionId = s.asInt32();
|
|
1328
1343
|
break;
|
|
1329
1344
|
}
|
|
1330
|
-
case
|
|
1345
|
+
case Yr: {
|
|
1331
1346
|
if (s.isNull) throw new Error();
|
|
1332
1347
|
e.TrackId = s.asInt32();
|
|
1333
1348
|
break;
|
|
1334
1349
|
}
|
|
1335
|
-
case
|
|
1350
|
+
case $r: {
|
|
1336
1351
|
if (s.isNull) throw new Error();
|
|
1337
|
-
e.Info =
|
|
1352
|
+
e.Info = Xs(s.asObject());
|
|
1338
1353
|
break;
|
|
1339
1354
|
}
|
|
1340
1355
|
}
|
|
1341
1356
|
}
|
|
1342
|
-
const
|
|
1343
|
-
function
|
|
1357
|
+
const zr = 161083277, Wr = 325678206, Jr = 3469892363, qr = 3645544153;
|
|
1358
|
+
function Qr(t) {
|
|
1344
1359
|
const e = {};
|
|
1345
1360
|
return kt(e), e;
|
|
1346
1361
|
}
|
|
1347
1362
|
function kt(t) {
|
|
1348
1363
|
return t.StreamId = "", t.ClientSessionId = 0, t.TrackId = 0, t.Info = mt(), t;
|
|
1349
1364
|
}
|
|
1350
|
-
function
|
|
1351
|
-
const s = e ??
|
|
1352
|
-
return kt(s),
|
|
1365
|
+
function Zr(t, e) {
|
|
1366
|
+
const s = e ?? Qr();
|
|
1367
|
+
return kt(s), tn(t, s), s;
|
|
1353
1368
|
}
|
|
1354
|
-
function
|
|
1369
|
+
function tn(t, e) {
|
|
1355
1370
|
let s;
|
|
1356
1371
|
for (; (s = t.next()) !== null; )
|
|
1357
1372
|
switch (s.fieldId) {
|
|
1358
|
-
case
|
|
1373
|
+
case zr: {
|
|
1359
1374
|
if (s.isNull) throw new Error();
|
|
1360
1375
|
e.StreamId = s.asString();
|
|
1361
1376
|
break;
|
|
1362
1377
|
}
|
|
1363
|
-
case
|
|
1378
|
+
case Wr: {
|
|
1364
1379
|
if (s.isNull) throw new Error();
|
|
1365
1380
|
e.ClientSessionId = s.asInt32();
|
|
1366
1381
|
break;
|
|
1367
1382
|
}
|
|
1368
|
-
case
|
|
1383
|
+
case Jr: {
|
|
1369
1384
|
if (s.isNull) throw new Error();
|
|
1370
1385
|
e.TrackId = s.asInt32();
|
|
1371
1386
|
break;
|
|
1372
1387
|
}
|
|
1373
|
-
case
|
|
1388
|
+
case qr: {
|
|
1374
1389
|
if (s.isNull) throw new Error();
|
|
1375
|
-
e.Info =
|
|
1390
|
+
e.Info = Fs(s.asObject());
|
|
1376
1391
|
break;
|
|
1377
1392
|
}
|
|
1378
1393
|
}
|
|
1379
1394
|
}
|
|
1380
|
-
const
|
|
1381
|
-
function
|
|
1395
|
+
const en = 1405462580, sn = 2968276160;
|
|
1396
|
+
function rn(t) {
|
|
1382
1397
|
const e = {};
|
|
1383
1398
|
return Vt(e), e;
|
|
1384
1399
|
}
|
|
1385
1400
|
function Vt(t) {
|
|
1386
1401
|
return t.MimeType = "", t.Value = new Uint8Array(0), t;
|
|
1387
1402
|
}
|
|
1388
|
-
function
|
|
1389
|
-
const s = e ??
|
|
1390
|
-
return Vt(s),
|
|
1403
|
+
function nn(t, e) {
|
|
1404
|
+
const s = e ?? rn();
|
|
1405
|
+
return Vt(s), on(t, s), s;
|
|
1391
1406
|
}
|
|
1392
|
-
function
|
|
1407
|
+
function on(t, e) {
|
|
1393
1408
|
let s;
|
|
1394
1409
|
for (; (s = t.next()) !== null; )
|
|
1395
1410
|
switch (s.fieldId) {
|
|
1396
|
-
case
|
|
1411
|
+
case en: {
|
|
1397
1412
|
if (s.isNull) throw new Error();
|
|
1398
1413
|
e.Value = s.asBinary();
|
|
1399
1414
|
break;
|
|
1400
1415
|
}
|
|
1401
|
-
case
|
|
1416
|
+
case sn: {
|
|
1402
1417
|
if (s.isNull) throw new Error();
|
|
1403
1418
|
e.MimeType = s.asString();
|
|
1404
1419
|
break;
|
|
1405
1420
|
}
|
|
1406
1421
|
}
|
|
1407
1422
|
}
|
|
1408
|
-
const
|
|
1409
|
-
function
|
|
1423
|
+
const an = 2097188, ln = 979822885, In = 2374537704;
|
|
1424
|
+
function cn(t) {
|
|
1410
1425
|
const e = {};
|
|
1411
1426
|
return Gt(e), e;
|
|
1412
1427
|
}
|
|
1413
1428
|
function Gt(t) {
|
|
1414
1429
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1415
1430
|
}
|
|
1416
|
-
function
|
|
1431
|
+
function En(t, e) {
|
|
1417
1432
|
const s = L.create(t);
|
|
1418
|
-
return
|
|
1433
|
+
return _n(s, e);
|
|
1419
1434
|
}
|
|
1420
|
-
function
|
|
1421
|
-
const s = e ??
|
|
1422
|
-
return Gt(s),
|
|
1435
|
+
function _n(t, e) {
|
|
1436
|
+
const s = e ?? cn();
|
|
1437
|
+
return Gt(s), fn(t, s), s;
|
|
1423
1438
|
}
|
|
1424
|
-
function
|
|
1439
|
+
function fn(t, e) {
|
|
1425
1440
|
let s;
|
|
1426
1441
|
for (; (s = t.next()) !== null; )
|
|
1427
1442
|
switch (s.fieldId) {
|
|
1428
|
-
case
|
|
1443
|
+
case ln: {
|
|
1429
1444
|
if (s.isNull) throw new Error();
|
|
1430
1445
|
e.StyleId = s.asString();
|
|
1431
1446
|
break;
|
|
1432
1447
|
}
|
|
1433
|
-
case
|
|
1448
|
+
case In: {
|
|
1434
1449
|
if (s.isNull) throw new Error();
|
|
1435
|
-
e.Style =
|
|
1450
|
+
e.Style = hn(s.asDictionary());
|
|
1436
1451
|
break;
|
|
1437
1452
|
}
|
|
1438
1453
|
}
|
|
1439
1454
|
}
|
|
1440
|
-
async function
|
|
1441
|
-
const s = await $(t,
|
|
1442
|
-
return
|
|
1455
|
+
async function un(t, e) {
|
|
1456
|
+
const s = await $(t, an);
|
|
1457
|
+
return En(s, e);
|
|
1443
1458
|
}
|
|
1444
|
-
function
|
|
1459
|
+
function hn(t) {
|
|
1445
1460
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1446
1461
|
let s;
|
|
1447
1462
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1450,73 +1465,73 @@ function _n(t) {
|
|
|
1450
1465
|
}
|
|
1451
1466
|
return e;
|
|
1452
1467
|
}
|
|
1453
|
-
const
|
|
1454
|
-
function
|
|
1468
|
+
const Tn = 2097192, Nn = 2136687806;
|
|
1469
|
+
function An(t) {
|
|
1455
1470
|
const e = {};
|
|
1456
1471
|
return Bt(e), e;
|
|
1457
1472
|
}
|
|
1458
1473
|
function Bt(t) {
|
|
1459
1474
|
return t.Styles = [], t;
|
|
1460
1475
|
}
|
|
1461
|
-
function
|
|
1476
|
+
function dn(t, e) {
|
|
1462
1477
|
const s = L.create(t);
|
|
1463
|
-
return
|
|
1478
|
+
return Sn(s, e);
|
|
1464
1479
|
}
|
|
1465
|
-
function
|
|
1466
|
-
const s = e ??
|
|
1467
|
-
return Bt(s),
|
|
1480
|
+
function Sn(t, e) {
|
|
1481
|
+
const s = e ?? An();
|
|
1482
|
+
return Bt(s), yn(t, s), s;
|
|
1468
1483
|
}
|
|
1469
|
-
function
|
|
1484
|
+
function yn(t, e) {
|
|
1470
1485
|
let s;
|
|
1471
1486
|
for (; (s = t.next()) !== null; )
|
|
1472
1487
|
switch (s.fieldId) {
|
|
1473
|
-
case
|
|
1488
|
+
case Nn: {
|
|
1474
1489
|
if (s.isNull) throw new Error();
|
|
1475
|
-
e.Styles =
|
|
1490
|
+
e.Styles = Cn(s.asArray());
|
|
1476
1491
|
break;
|
|
1477
1492
|
}
|
|
1478
1493
|
}
|
|
1479
1494
|
}
|
|
1480
|
-
async function
|
|
1481
|
-
const s = await $(t,
|
|
1482
|
-
return
|
|
1495
|
+
async function wn(t, e) {
|
|
1496
|
+
const s = await $(t, Tn);
|
|
1497
|
+
return dn(s, e);
|
|
1483
1498
|
}
|
|
1484
|
-
function
|
|
1499
|
+
function Cn(t) {
|
|
1485
1500
|
const e = [];
|
|
1486
1501
|
let s;
|
|
1487
1502
|
for (; (s = t.next()) !== null; )
|
|
1488
|
-
e.push(
|
|
1503
|
+
e.push(mn(s.asObject()));
|
|
1489
1504
|
return e;
|
|
1490
1505
|
}
|
|
1491
|
-
const
|
|
1492
|
-
function
|
|
1506
|
+
const Dn = 979822885, Un = 2374537704;
|
|
1507
|
+
function Rn(t) {
|
|
1493
1508
|
const e = {};
|
|
1494
1509
|
return xt(e), e;
|
|
1495
1510
|
}
|
|
1496
1511
|
function xt(t) {
|
|
1497
1512
|
return t.StyleId = "", t.Style = /* @__PURE__ */ Object.create(null), t;
|
|
1498
1513
|
}
|
|
1499
|
-
function
|
|
1500
|
-
const s = e ??
|
|
1501
|
-
return xt(s),
|
|
1514
|
+
function mn(t, e) {
|
|
1515
|
+
const s = e ?? Rn();
|
|
1516
|
+
return xt(s), Ln(t, s), s;
|
|
1502
1517
|
}
|
|
1503
|
-
function
|
|
1518
|
+
function Ln(t, e) {
|
|
1504
1519
|
let s;
|
|
1505
1520
|
for (; (s = t.next()) !== null; )
|
|
1506
1521
|
switch (s.fieldId) {
|
|
1507
|
-
case
|
|
1522
|
+
case Dn: {
|
|
1508
1523
|
if (s.isNull) throw new Error();
|
|
1509
1524
|
e.StyleId = s.asString();
|
|
1510
1525
|
break;
|
|
1511
1526
|
}
|
|
1512
|
-
case
|
|
1527
|
+
case Un: {
|
|
1513
1528
|
if (s.isNull) throw new Error();
|
|
1514
|
-
e.Style =
|
|
1529
|
+
e.Style = gn(s.asDictionary());
|
|
1515
1530
|
break;
|
|
1516
1531
|
}
|
|
1517
1532
|
}
|
|
1518
1533
|
}
|
|
1519
|
-
function
|
|
1534
|
+
function gn(t) {
|
|
1520
1535
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1521
1536
|
let s;
|
|
1522
1537
|
for (; (s = t.next()) !== null; ) {
|
|
@@ -1525,86 +1540,86 @@ function Rn(t) {
|
|
|
1525
1540
|
}
|
|
1526
1541
|
return e;
|
|
1527
1542
|
}
|
|
1528
|
-
const
|
|
1529
|
-
function
|
|
1543
|
+
const On = 2097193, Pn = 1415642792;
|
|
1544
|
+
function bn(t) {
|
|
1530
1545
|
const e = {};
|
|
1531
1546
|
return Ht(e), e;
|
|
1532
1547
|
}
|
|
1533
1548
|
function Ht(t) {
|
|
1534
1549
|
return t.StyleIds = [], t;
|
|
1535
1550
|
}
|
|
1536
|
-
function
|
|
1551
|
+
function Fn(t, e) {
|
|
1537
1552
|
const s = L.create(t);
|
|
1538
|
-
return
|
|
1553
|
+
return pn(s, e);
|
|
1539
1554
|
}
|
|
1540
|
-
function
|
|
1541
|
-
const s = e ??
|
|
1542
|
-
return Ht(s),
|
|
1555
|
+
function pn(t, e) {
|
|
1556
|
+
const s = e ?? bn();
|
|
1557
|
+
return Ht(s), vn(t, s), s;
|
|
1543
1558
|
}
|
|
1544
|
-
function
|
|
1559
|
+
function vn(t, e) {
|
|
1545
1560
|
let s;
|
|
1546
1561
|
for (; (s = t.next()) !== null; )
|
|
1547
1562
|
switch (s.fieldId) {
|
|
1548
|
-
case
|
|
1563
|
+
case Pn: {
|
|
1549
1564
|
if (s.isNull) throw new Error();
|
|
1550
|
-
e.StyleIds =
|
|
1565
|
+
e.StyleIds = kn(s.asArray());
|
|
1551
1566
|
break;
|
|
1552
1567
|
}
|
|
1553
1568
|
}
|
|
1554
1569
|
}
|
|
1555
|
-
async function
|
|
1556
|
-
const s = await $(t,
|
|
1557
|
-
return
|
|
1570
|
+
async function Mn(t, e) {
|
|
1571
|
+
const s = await $(t, On);
|
|
1572
|
+
return Fn(s, e);
|
|
1558
1573
|
}
|
|
1559
|
-
function
|
|
1574
|
+
function kn(t) {
|
|
1560
1575
|
const e = [];
|
|
1561
1576
|
let s;
|
|
1562
1577
|
for (; (s = t.next()) !== null; )
|
|
1563
1578
|
e.push(s.asString());
|
|
1564
1579
|
return e;
|
|
1565
1580
|
}
|
|
1566
|
-
const
|
|
1567
|
-
function
|
|
1581
|
+
const Vn = 2097190, Gn = 425183262, Bn = 653781469;
|
|
1582
|
+
function xn(t) {
|
|
1568
1583
|
const e = {};
|
|
1569
1584
|
return Yt(e), e;
|
|
1570
1585
|
}
|
|
1571
1586
|
function Yt(t) {
|
|
1572
1587
|
return t.Json = "", t.Payloads = /* @__PURE__ */ Object.create(null), t;
|
|
1573
1588
|
}
|
|
1574
|
-
function
|
|
1589
|
+
function Hn(t, e) {
|
|
1575
1590
|
const s = L.create(t);
|
|
1576
|
-
return
|
|
1591
|
+
return Yn(s, e);
|
|
1577
1592
|
}
|
|
1578
|
-
function
|
|
1579
|
-
const s = e ??
|
|
1580
|
-
return Yt(s),
|
|
1593
|
+
function Yn(t, e) {
|
|
1594
|
+
const s = e ?? xn();
|
|
1595
|
+
return Yt(s), $n(t, s), s;
|
|
1581
1596
|
}
|
|
1582
|
-
function
|
|
1597
|
+
function $n(t, e) {
|
|
1583
1598
|
let s;
|
|
1584
1599
|
for (; (s = t.next()) !== null; )
|
|
1585
1600
|
switch (s.fieldId) {
|
|
1586
|
-
case
|
|
1601
|
+
case Gn: {
|
|
1587
1602
|
if (s.isNull) throw new Error();
|
|
1588
1603
|
e.Json = s.asString();
|
|
1589
1604
|
break;
|
|
1590
1605
|
}
|
|
1591
|
-
case
|
|
1606
|
+
case Bn: {
|
|
1592
1607
|
if (s.isNull) throw new Error();
|
|
1593
|
-
e.Payloads =
|
|
1608
|
+
e.Payloads = jn(s.asDictionary());
|
|
1594
1609
|
break;
|
|
1595
1610
|
}
|
|
1596
1611
|
}
|
|
1597
1612
|
}
|
|
1598
|
-
async function
|
|
1599
|
-
const s = await $(t,
|
|
1600
|
-
return
|
|
1613
|
+
async function Kn(t, e) {
|
|
1614
|
+
const s = await $(t, Vn);
|
|
1615
|
+
return Hn(s, e);
|
|
1601
1616
|
}
|
|
1602
|
-
function
|
|
1617
|
+
function jn(t) {
|
|
1603
1618
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1604
1619
|
let s;
|
|
1605
1620
|
for (; (s = t.next()) !== null; ) {
|
|
1606
1621
|
const r = s.key.asString();
|
|
1607
|
-
e[r] =
|
|
1622
|
+
e[r] = nn(s.value.asObject());
|
|
1608
1623
|
}
|
|
1609
1624
|
return e;
|
|
1610
1625
|
}
|
|
@@ -1664,7 +1679,7 @@ function ot(t, e) {
|
|
|
1664
1679
|
styleIds: l ?? []
|
|
1665
1680
|
};
|
|
1666
1681
|
}
|
|
1667
|
-
function
|
|
1682
|
+
function Xn(t, e) {
|
|
1668
1683
|
if (!y(t))
|
|
1669
1684
|
throw new Error(`Invalid text delta at ${e}`);
|
|
1670
1685
|
const s = t.NodeId, r = t.PropertyName, n = t.Start, i = t.End, o = t.InsertedText;
|
|
@@ -1691,7 +1706,7 @@ function $n(t, e) {
|
|
|
1691
1706
|
insertedText: o
|
|
1692
1707
|
};
|
|
1693
1708
|
}
|
|
1694
|
-
function
|
|
1709
|
+
function zn(t, e) {
|
|
1695
1710
|
if (!y(t))
|
|
1696
1711
|
throw new Error(`Invalid child insert at ${e}`);
|
|
1697
1712
|
const s = t.Index, r = t.Node;
|
|
@@ -1704,7 +1719,7 @@ function Kn(t, e) {
|
|
|
1704
1719
|
node: ot(r, `${e}.node`)
|
|
1705
1720
|
};
|
|
1706
1721
|
}
|
|
1707
|
-
function
|
|
1722
|
+
function Wn(t, e) {
|
|
1708
1723
|
if (!y(t))
|
|
1709
1724
|
throw new Error(`Invalid child move at ${e}`);
|
|
1710
1725
|
const s = t.NodeId, r = t.FromIndex, n = t.ToIndex;
|
|
@@ -1720,7 +1735,7 @@ function jn(t, e) {
|
|
|
1720
1735
|
toIndex: n
|
|
1721
1736
|
};
|
|
1722
1737
|
}
|
|
1723
|
-
function
|
|
1738
|
+
function Jn(t, e) {
|
|
1724
1739
|
if (!y(t))
|
|
1725
1740
|
throw new Error(`Invalid child remove at ${e}`);
|
|
1726
1741
|
const s = t.NodeId, r = t.Index;
|
|
@@ -1733,18 +1748,18 @@ function Xn(t, e) {
|
|
|
1733
1748
|
index: r
|
|
1734
1749
|
};
|
|
1735
1750
|
}
|
|
1736
|
-
function
|
|
1751
|
+
function qn(t, e) {
|
|
1737
1752
|
if (!y(t))
|
|
1738
1753
|
throw new Error(`Invalid node change at ${e}`);
|
|
1739
1754
|
const s = t.nodeId;
|
|
1740
1755
|
if (typeof s != "string" || s.length === 0)
|
|
1741
1756
|
throw new Error(`Invalid node change nodeId at ${e}`);
|
|
1742
1757
|
const r = Array.isArray(t.inserts) ? t.inserts.map(
|
|
1743
|
-
(I, E) =>
|
|
1758
|
+
(I, E) => zn(I ?? {}, `${e}.inserts[${E}]`)
|
|
1744
1759
|
) : void 0, n = Array.isArray(t.moves) ? t.moves.map(
|
|
1745
|
-
(I, E) =>
|
|
1760
|
+
(I, E) => Wn(I ?? {}, `${e}.moves[${E}]`)
|
|
1746
1761
|
) : void 0, i = Array.isArray(t.removals) ? t.removals.map(
|
|
1747
|
-
(I, E) =>
|
|
1762
|
+
(I, E) => Jn(I ?? {}, `${e}.removals[${E}]`)
|
|
1748
1763
|
) : void 0;
|
|
1749
1764
|
let o;
|
|
1750
1765
|
if (y(t.changedProps)) {
|
|
@@ -1757,7 +1772,7 @@ function zn(t, e) {
|
|
|
1757
1772
|
}
|
|
1758
1773
|
}
|
|
1759
1774
|
const a = Array.isArray(t.textUpdates) ? t.textUpdates.map(
|
|
1760
|
-
(I, E) =>
|
|
1775
|
+
(I, E) => Xn(I ?? {}, `${e}.textUpdates[${E}]`)
|
|
1761
1776
|
) : void 0, c = t.styleIds, l = c !== void 0 ? Kt(c, e, s, !0) : void 0;
|
|
1762
1777
|
return {
|
|
1763
1778
|
nodeId: s,
|
|
@@ -1769,19 +1784,19 @@ function zn(t, e) {
|
|
|
1769
1784
|
...l !== void 0 ? { styleIds: l } : {}
|
|
1770
1785
|
};
|
|
1771
1786
|
}
|
|
1772
|
-
function
|
|
1787
|
+
function Qn(t) {
|
|
1773
1788
|
const e = /* @__PURE__ */ new Map();
|
|
1774
1789
|
for (const [s, r] of Object.entries(t))
|
|
1775
1790
|
e.set(s, r);
|
|
1776
1791
|
return e;
|
|
1777
1792
|
}
|
|
1778
|
-
function
|
|
1793
|
+
function Zn(t, e, s) {
|
|
1779
1794
|
if (!t || typeof t != "object")
|
|
1780
1795
|
throw new D("UI update graph is missing");
|
|
1781
1796
|
const r = ot(t, "graph");
|
|
1782
1797
|
if (r.type !== "root")
|
|
1783
1798
|
throw new D('UI update root element must have type "root"');
|
|
1784
|
-
const n =
|
|
1799
|
+
const n = ei(r.props, e);
|
|
1785
1800
|
return {
|
|
1786
1801
|
type: "full",
|
|
1787
1802
|
version: s,
|
|
@@ -1789,7 +1804,7 @@ function Jn(t, e, s) {
|
|
|
1789
1804
|
metadata: n
|
|
1790
1805
|
};
|
|
1791
1806
|
}
|
|
1792
|
-
function
|
|
1807
|
+
function ti(t, e, s) {
|
|
1793
1808
|
if (!Array.isArray(t))
|
|
1794
1809
|
throw new D("UI diff changes must be an array");
|
|
1795
1810
|
if (!y(e))
|
|
@@ -1798,7 +1813,7 @@ function qn(t, e, s) {
|
|
|
1798
1813
|
if (typeof r != "string" || r.length === 0)
|
|
1799
1814
|
throw new D("UI diff metadata is missing viewId");
|
|
1800
1815
|
const n = t.map(
|
|
1801
|
-
(E, _) =>
|
|
1816
|
+
(E, _) => qn(E ?? {}, `changes[${_}]`)
|
|
1802
1817
|
), i = e.optimisticActionId === null || typeof e.optimisticActionId == "string" ? e.optimisticActionId : void 0, o = typeof e.isOptimistic == "boolean" ? e.isOptimistic : void 0, a = typeof e.isUpdate == "boolean" ? e.isUpdate : void 0, c = Q(e.optimisticPatch), l = Z(e.optimisticReconcile), I = {
|
|
1803
1818
|
viewId: r,
|
|
1804
1819
|
...i !== void 0 ? { optimisticActionId: i } : {},
|
|
@@ -1814,7 +1829,7 @@ function qn(t, e, s) {
|
|
|
1814
1829
|
metadata: I
|
|
1815
1830
|
};
|
|
1816
1831
|
}
|
|
1817
|
-
function
|
|
1832
|
+
function ei(t, e) {
|
|
1818
1833
|
const s = t.viewId;
|
|
1819
1834
|
if (typeof s != "string" || s.length === 0)
|
|
1820
1835
|
throw new D("UI update root is missing viewId");
|
|
@@ -1872,7 +1887,7 @@ class D extends Error {
|
|
|
1872
1887
|
super(e), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
|
|
1873
1888
|
}
|
|
1874
1889
|
}
|
|
1875
|
-
function
|
|
1890
|
+
function si(t) {
|
|
1876
1891
|
let e;
|
|
1877
1892
|
try {
|
|
1878
1893
|
e = JSON.parse(t.Json);
|
|
@@ -1886,13 +1901,13 @@ function Zn(t) {
|
|
|
1886
1901
|
throw new D(`Unknown UI update type: ${String(s)}`);
|
|
1887
1902
|
if (typeof r != "number")
|
|
1888
1903
|
throw new D("UI update version must be a number");
|
|
1889
|
-
const n = s === "full" ?
|
|
1904
|
+
const n = s === "full" ? Zn(e.graph, e.metadata, r) : ti(e.changes, e.metadata, r), i = t.Payloads ? Qn(t.Payloads) : /* @__PURE__ */ new Map();
|
|
1890
1905
|
return {
|
|
1891
1906
|
snapshot: n,
|
|
1892
1907
|
payloads: i
|
|
1893
1908
|
};
|
|
1894
1909
|
}
|
|
1895
|
-
class
|
|
1910
|
+
class ri {
|
|
1896
1911
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1897
1912
|
cache = /* @__PURE__ */ new Map();
|
|
1898
1913
|
/**
|
|
@@ -1973,7 +1988,7 @@ class ti {
|
|
|
1973
1988
|
return this.cache.size;
|
|
1974
1989
|
}
|
|
1975
1990
|
}
|
|
1976
|
-
class
|
|
1991
|
+
class ni {
|
|
1977
1992
|
views = /* @__PURE__ */ new Map();
|
|
1978
1993
|
listeners = /* @__PURE__ */ new Set();
|
|
1979
1994
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -1995,7 +2010,7 @@ class ei {
|
|
|
1995
2010
|
patchesDirty = !0;
|
|
1996
2011
|
payloadsDirty = !0;
|
|
1997
2012
|
// Handler cache for stable event handlers
|
|
1998
|
-
handlerCache = new
|
|
2013
|
+
handlerCache = new ri();
|
|
1999
2014
|
getSortedPatches(e) {
|
|
2000
2015
|
const s = this.buildPatchCacheKey(e.patches);
|
|
2001
2016
|
if (e.sortedPatchesCacheKey === s && e.sortedPatchesCache)
|
|
@@ -2064,10 +2079,10 @@ class ei {
|
|
|
2064
2079
|
const E = J(I, s.changes);
|
|
2065
2080
|
E !== I ? (o.baseline = E, c = !0, this.viewsDirty = !0) : o.baseline = E, o.baselineVersion = n.optimisticReconcile?.baseVersion ?? s.version;
|
|
2066
2081
|
let _ = o.baseline ?? E;
|
|
2067
|
-
const
|
|
2068
|
-
for (const
|
|
2069
|
-
const w = J(_,
|
|
2070
|
-
w !== _ && (c = !0, this.viewsDirty = !0), _ = w,
|
|
2082
|
+
const N = this.getSortedPatches(o);
|
|
2083
|
+
for (const u of N) {
|
|
2084
|
+
const w = J(_, u.changes);
|
|
2085
|
+
w !== _ && (c = !0, this.viewsDirty = !0), _ = w, u.baseVersion = o.baselineVersion;
|
|
2071
2086
|
}
|
|
2072
2087
|
o.composite !== _ && (o.composite = _, c = !0, this.viewsDirty = !0), l && _ ? X(l, _, this.changedNodeIds) : _ && b(_, this.changedNodeIds), o.version = s.version;
|
|
2073
2088
|
}
|
|
@@ -2096,25 +2111,25 @@ class ei {
|
|
|
2096
2111
|
for (const _ of e.deleteViews)
|
|
2097
2112
|
a().delete(_) && (r = !0, this.structureChanged = !0);
|
|
2098
2113
|
if (e.upsertViews && e.upsertViews.length > 0)
|
|
2099
|
-
for (const [_,
|
|
2100
|
-
const
|
|
2101
|
-
w !==
|
|
2114
|
+
for (const [_, N] of e.upsertViews) {
|
|
2115
|
+
const u = a(), w = u.get(_);
|
|
2116
|
+
w !== N && (u.set(_, N), r = !0, w ? X(w, N, this.changedNodeIds) : (b(N, this.changedNodeIds), this.structureChanged = !0));
|
|
2102
2117
|
}
|
|
2103
2118
|
if (e.deletePayloads && e.deletePayloads.length > 0)
|
|
2104
2119
|
for (const _ of e.deletePayloads)
|
|
2105
2120
|
c().delete(_) && (r = !0);
|
|
2106
2121
|
if (e.upsertPayloads && e.upsertPayloads.length > 0)
|
|
2107
|
-
for (const [_,
|
|
2108
|
-
const
|
|
2109
|
-
|
|
2122
|
+
for (const [_, N] of e.upsertPayloads) {
|
|
2123
|
+
const u = c();
|
|
2124
|
+
u.get(_) !== N && (u.set(_, N), r = !0);
|
|
2110
2125
|
}
|
|
2111
2126
|
if (e.deleteOptimisticPatchesForViews && e.deleteOptimisticPatchesForViews.length > 0)
|
|
2112
2127
|
for (const _ of e.deleteOptimisticPatchesForViews)
|
|
2113
2128
|
l().delete(_) && (r = !0);
|
|
2114
2129
|
if (e.upsertOptimisticPatches && e.upsertOptimisticPatches.length > 0)
|
|
2115
|
-
for (const [_,
|
|
2116
|
-
const
|
|
2117
|
-
|
|
2130
|
+
for (const [_, N] of e.upsertOptimisticPatches) {
|
|
2131
|
+
const u = l(), w = u.get(_);
|
|
2132
|
+
li(w, N) || (u.set(_, N), r = !0);
|
|
2118
2133
|
}
|
|
2119
2134
|
const I = e.rootViewId ?? this.snapshot.rootViewId;
|
|
2120
2135
|
I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -2241,7 +2256,7 @@ class ei {
|
|
|
2241
2256
|
}
|
|
2242
2257
|
}
|
|
2243
2258
|
}
|
|
2244
|
-
class
|
|
2259
|
+
class ii {
|
|
2245
2260
|
streams = /* @__PURE__ */ new Map();
|
|
2246
2261
|
listeners = /* @__PURE__ */ new Set();
|
|
2247
2262
|
apply(e, s) {
|
|
@@ -2305,7 +2320,7 @@ class si {
|
|
|
2305
2320
|
}
|
|
2306
2321
|
getOrCreateStreamEntry(e) {
|
|
2307
2322
|
let s = this.streams.get(e);
|
|
2308
|
-
return s || (s = { store: new
|
|
2323
|
+
return s || (s = { store: new ni() }, this.streams.set(e, s)), s;
|
|
2309
2324
|
}
|
|
2310
2325
|
notify(e) {
|
|
2311
2326
|
for (const s of this.listeners)
|
|
@@ -2324,20 +2339,20 @@ function jt(t, e, s) {
|
|
|
2324
2339
|
const r = e.get(t.id);
|
|
2325
2340
|
let n = t, i = !1;
|
|
2326
2341
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
2327
|
-
const f =
|
|
2342
|
+
const f = ci(t, r.textUpdates);
|
|
2328
2343
|
n = f.node, i = f.changed;
|
|
2329
2344
|
}
|
|
2330
2345
|
let o = !1, a = n.props;
|
|
2331
2346
|
if (r?.changedProps && r.changedProps.size > 0)
|
|
2332
2347
|
for (const [f, d] of r.changedProps.entries()) {
|
|
2333
|
-
const
|
|
2348
|
+
const h = a[f];
|
|
2334
2349
|
if (d === void 0)
|
|
2335
|
-
(
|
|
2350
|
+
(h !== void 0 || f in a) && (o || (a = k(a), o = !0), delete a[f]);
|
|
2336
2351
|
else if (tt(d)) {
|
|
2337
|
-
const
|
|
2338
|
-
v(
|
|
2352
|
+
const A = k(d);
|
|
2353
|
+
v(A, h) || (o || (a = k(a), o = !0), a[f] = A);
|
|
2339
2354
|
} else
|
|
2340
|
-
v(d,
|
|
2355
|
+
v(d, h) || (o || (a = k(a), o = !0), a[f] = d);
|
|
2341
2356
|
}
|
|
2342
2357
|
let c = !1, l = n.styleIds;
|
|
2343
2358
|
r?.styleIds !== void 0 && (Wt(n.styleIds, r.styleIds) || (l = r.styleIds, c = !0));
|
|
@@ -2346,42 +2361,42 @@ function jt(t, e, s) {
|
|
|
2346
2361
|
if (r?.removals && r.removals.length > 0 || r?.moves && r.moves.length > 0 || r?.inserts && r.inserts.length > 0) {
|
|
2347
2362
|
const f = E.slice();
|
|
2348
2363
|
if (r?.removals && r.removals.length > 0) {
|
|
2349
|
-
const d = [...r.removals].sort((
|
|
2350
|
-
for (const
|
|
2351
|
-
|
|
2364
|
+
const d = [...r.removals].sort((h, A) => A.index - h.index);
|
|
2365
|
+
for (const h of d)
|
|
2366
|
+
h.index >= 0 && h.index < f.length && f.splice(h.index, 1);
|
|
2352
2367
|
_ = !0;
|
|
2353
2368
|
}
|
|
2354
2369
|
if (r?.moves && r.moves.length > 0) {
|
|
2355
|
-
const d = [...r.moves].sort((
|
|
2356
|
-
for (const
|
|
2357
|
-
const m = f.findIndex((W) => W.id ===
|
|
2358
|
-
m >= 0 && (
|
|
2370
|
+
const d = [...r.moves].sort((A, m) => A.toIndex - m.toIndex), h = /* @__PURE__ */ new Map();
|
|
2371
|
+
for (const A of d) {
|
|
2372
|
+
const m = f.findIndex((W) => W.id === A.nodeId);
|
|
2373
|
+
m >= 0 && (h.set(A.nodeId, f[m]), f.splice(m, 1));
|
|
2359
2374
|
}
|
|
2360
|
-
for (const
|
|
2361
|
-
const m =
|
|
2375
|
+
for (const A of d) {
|
|
2376
|
+
const m = h.get(A.nodeId);
|
|
2362
2377
|
if (m) {
|
|
2363
|
-
const W = Math.min(
|
|
2378
|
+
const W = Math.min(A.toIndex, f.length);
|
|
2364
2379
|
f.splice(W, 0, m);
|
|
2365
2380
|
}
|
|
2366
2381
|
}
|
|
2367
2382
|
_ = !0;
|
|
2368
2383
|
}
|
|
2369
2384
|
if (r?.inserts && r.inserts.length > 0) {
|
|
2370
|
-
const d = [...r.inserts].sort((
|
|
2371
|
-
for (const
|
|
2372
|
-
const
|
|
2373
|
-
f.splice(
|
|
2385
|
+
const d = [...r.inserts].sort((h, A) => h.index - A.index);
|
|
2386
|
+
for (const h of d) {
|
|
2387
|
+
const A = Math.min(h.index, f.length);
|
|
2388
|
+
f.splice(A, 0, h.node);
|
|
2374
2389
|
}
|
|
2375
2390
|
_ = !0;
|
|
2376
2391
|
}
|
|
2377
2392
|
E = f;
|
|
2378
2393
|
}
|
|
2379
|
-
let
|
|
2394
|
+
let u;
|
|
2380
2395
|
for (let f = 0; f < E.length; f++) {
|
|
2381
|
-
const d = E[f],
|
|
2382
|
-
|
|
2396
|
+
const d = E[f], h = jt(d, e);
|
|
2397
|
+
h !== d && (u || (u = E.slice()), u[f] = h);
|
|
2383
2398
|
}
|
|
2384
|
-
return
|
|
2399
|
+
return u && (E = u, _ = !0), i || o || c || _ ? !o && !_ && !c ? n : {
|
|
2385
2400
|
id: t.id,
|
|
2386
2401
|
type: t.type,
|
|
2387
2402
|
props: o ? a : n.props,
|
|
@@ -2395,7 +2410,7 @@ function b(t, e) {
|
|
|
2395
2410
|
b(s, e);
|
|
2396
2411
|
}
|
|
2397
2412
|
const j = [];
|
|
2398
|
-
function
|
|
2413
|
+
function oi(t) {
|
|
2399
2414
|
for (; j.length <= t; )
|
|
2400
2415
|
j.push(/* @__PURE__ */ new Map());
|
|
2401
2416
|
return j[t].clear(), j[t];
|
|
@@ -2406,10 +2421,10 @@ function X(t, e, s) {
|
|
|
2406
2421
|
function Xt(t, e, s, r) {
|
|
2407
2422
|
if (t === e)
|
|
2408
2423
|
return;
|
|
2409
|
-
(t.type !== e.type || !
|
|
2424
|
+
(t.type !== e.type || !ai(t.props, e.props) || !Wt(t.styleIds, e.styleIds)) && s.add(e.id);
|
|
2410
2425
|
const i = t.children ?? [], o = e.children ?? [];
|
|
2411
2426
|
if (i !== o) {
|
|
2412
|
-
const a =
|
|
2427
|
+
const a = oi(r);
|
|
2413
2428
|
for (const l of i)
|
|
2414
2429
|
a.set(l.id, l);
|
|
2415
2430
|
let c = !1;
|
|
@@ -2420,7 +2435,7 @@ function Xt(t, e, s, r) {
|
|
|
2420
2435
|
(i.length !== o.length || c) && s.add(e.id);
|
|
2421
2436
|
}
|
|
2422
2437
|
}
|
|
2423
|
-
function
|
|
2438
|
+
function ai(t, e) {
|
|
2424
2439
|
return v(t, e);
|
|
2425
2440
|
}
|
|
2426
2441
|
function zt(t, e) {
|
|
@@ -2436,7 +2451,7 @@ function zt(t, e) {
|
|
|
2436
2451
|
function Wt(t, e) {
|
|
2437
2452
|
return v(t, e);
|
|
2438
2453
|
}
|
|
2439
|
-
function
|
|
2454
|
+
function li(t, e) {
|
|
2440
2455
|
if (t === e) return !0;
|
|
2441
2456
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2442
2457
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2446,7 +2461,7 @@ function ii(t, e) {
|
|
|
2446
2461
|
}
|
|
2447
2462
|
return !0;
|
|
2448
2463
|
}
|
|
2449
|
-
function
|
|
2464
|
+
function Ii(t, e) {
|
|
2450
2465
|
if (e.length === 0)
|
|
2451
2466
|
return t;
|
|
2452
2467
|
const s = [...e].sort((i, o) => i.start - o.start);
|
|
@@ -2454,7 +2469,7 @@ function oi(t, e) {
|
|
|
2454
2469
|
for (const i of s) {
|
|
2455
2470
|
const o = lt(i.start + n, 0, r.length);
|
|
2456
2471
|
if (i.end == null) {
|
|
2457
|
-
const I = r.slice(o), E =
|
|
2472
|
+
const I = r.slice(o), E = Ei(I, i.insertedText);
|
|
2458
2473
|
r = r.slice(0, o) + i.insertedText + I.slice(E), n += i.insertedText.length - E;
|
|
2459
2474
|
continue;
|
|
2460
2475
|
}
|
|
@@ -2463,7 +2478,7 @@ function oi(t, e) {
|
|
|
2463
2478
|
}
|
|
2464
2479
|
return r;
|
|
2465
2480
|
}
|
|
2466
|
-
function
|
|
2481
|
+
function ci(t, e, s) {
|
|
2467
2482
|
if (e.length === 0)
|
|
2468
2483
|
return { node: t, changed: !1 };
|
|
2469
2484
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2483,8 +2498,8 @@ function Jt(t, e, s) {
|
|
|
2483
2498
|
E ? E.push(I) : l.set(I.propertyName, [I]);
|
|
2484
2499
|
}
|
|
2485
2500
|
for (const [I, E] of l.entries()) {
|
|
2486
|
-
const _ = i[I],
|
|
2487
|
-
n || (i = k(i), n = !0), i[I] =
|
|
2501
|
+
const _ = i[I], u = Ii(typeof _ == "string" ? _ : "", E);
|
|
2502
|
+
n || (i = k(i), n = !0), i[I] = u;
|
|
2488
2503
|
}
|
|
2489
2504
|
}
|
|
2490
2505
|
let o = !1;
|
|
@@ -2512,7 +2527,7 @@ function Jt(t, e, s) {
|
|
|
2512
2527
|
function lt(t, e, s) {
|
|
2513
2528
|
return Math.max(e, Math.min(s, t));
|
|
2514
2529
|
}
|
|
2515
|
-
function
|
|
2530
|
+
function Ei(t, e) {
|
|
2516
2531
|
const s = Math.min(t.length, e.length);
|
|
2517
2532
|
let r = 0;
|
|
2518
2533
|
for (; r < s && t.charCodeAt(r) === e.charCodeAt(r); )
|
|
@@ -2552,20 +2567,20 @@ function v(t, e) {
|
|
|
2552
2567
|
}
|
|
2553
2568
|
return !1;
|
|
2554
2569
|
}
|
|
2555
|
-
const
|
|
2556
|
-
let qt =
|
|
2570
|
+
const _i = 16, fi = 50, O = new ii(), H = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
|
|
2571
|
+
let qt = _i, Qt = fi, V = [], G = null, B = null, R = 0, z = 0;
|
|
2557
2572
|
const x = /* @__PURE__ */ new Map();
|
|
2558
|
-
function
|
|
2573
|
+
function ui() {
|
|
2559
2574
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
2560
2575
|
}
|
|
2561
|
-
function
|
|
2576
|
+
function hi() {
|
|
2562
2577
|
try {
|
|
2563
2578
|
return crypto.randomUUID();
|
|
2564
2579
|
} catch {
|
|
2565
2580
|
return `${Date.now()}_${Math.random().toString(16).slice(2)}`;
|
|
2566
2581
|
}
|
|
2567
2582
|
}
|
|
2568
|
-
function
|
|
2583
|
+
function Ti(t) {
|
|
2569
2584
|
const e = [];
|
|
2570
2585
|
for (const n of t.views)
|
|
2571
2586
|
e.push(n);
|
|
@@ -2585,7 +2600,7 @@ function fi(t) {
|
|
|
2585
2600
|
optimisticPatches: r
|
|
2586
2601
|
};
|
|
2587
2602
|
}
|
|
2588
|
-
function
|
|
2603
|
+
function Ni(t, e) {
|
|
2589
2604
|
if (t === e) return !0;
|
|
2590
2605
|
if (!t || !e || t.length !== e.length) return !1;
|
|
2591
2606
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2595,9 +2610,9 @@ function hi(t, e) {
|
|
|
2595
2610
|
}
|
|
2596
2611
|
return !0;
|
|
2597
2612
|
}
|
|
2598
|
-
function
|
|
2613
|
+
function Ai(t, e, s) {
|
|
2599
2614
|
if (!s || s.version === -1)
|
|
2600
|
-
return { type: "ReplaceStreamSnapshot", snapshot:
|
|
2615
|
+
return { type: "ReplaceStreamSnapshot", snapshot: Ti(e) };
|
|
2601
2616
|
let r, n;
|
|
2602
2617
|
for (const [l, I] of e.views)
|
|
2603
2618
|
s.views.get(l) !== I && (r ??= []).push([l, I]);
|
|
@@ -2611,7 +2626,7 @@ function ui(t, e, s) {
|
|
|
2611
2626
|
let a, c;
|
|
2612
2627
|
for (const [l, I] of e.optimisticPatches) {
|
|
2613
2628
|
const E = s.optimisticPatches.get(l);
|
|
2614
|
-
|
|
2629
|
+
Ni(E, I) || (a ??= []).push([l, I.slice()]);
|
|
2615
2630
|
}
|
|
2616
2631
|
for (const l of s.optimisticPatches.keys())
|
|
2617
2632
|
e.optimisticPatches.has(l) || (c ??= []).push(l);
|
|
@@ -2645,8 +2660,8 @@ function It() {
|
|
|
2645
2660
|
for (const [s, r] of x)
|
|
2646
2661
|
t.push({ trackId: s, version: r.version, senderId: r.senderId });
|
|
2647
2662
|
const e = {
|
|
2648
|
-
batchId:
|
|
2649
|
-
createdAtMs:
|
|
2663
|
+
batchId: hi(),
|
|
2664
|
+
createdAtMs: ui(),
|
|
2650
2665
|
ops: V,
|
|
2651
2666
|
...t.length > 0 ? { acks: t } : {},
|
|
2652
2667
|
stats: { uiMessagesConsumed: R, bytesConsumed: z }
|
|
@@ -2656,8 +2671,8 @@ function It() {
|
|
|
2656
2671
|
function te(t) {
|
|
2657
2672
|
return `${t.senderId}_${t.trackId}`;
|
|
2658
2673
|
}
|
|
2659
|
-
async function
|
|
2660
|
-
const e = await
|
|
2674
|
+
async function di(t) {
|
|
2675
|
+
const e = await dr(t), s = /* @__PURE__ */ new Set();
|
|
2661
2676
|
for (const r of Object.values(e.UIStreams ?? {})) {
|
|
2662
2677
|
const n = r.StreamId;
|
|
2663
2678
|
s.add(n);
|
|
@@ -2667,18 +2682,18 @@ async function Ti(t) {
|
|
|
2667
2682
|
for (const r of O.getSnapshots())
|
|
2668
2683
|
s.has(r.streamId) || (O.remove(r.streamId), Y.delete(r.streamId), P({ type: "RemoveStream", streamId: r.streamId }));
|
|
2669
2684
|
}
|
|
2670
|
-
async function
|
|
2671
|
-
const e = et(t), s = te(e), r = await
|
|
2685
|
+
async function Si(t) {
|
|
2686
|
+
const e = et(t), s = te(e), r = await Kn(t), n = si(r), i = x.get(e.trackId);
|
|
2672
2687
|
if ((i === void 0 || n.snapshot.version > i.version) && (x.set(e.trackId, { version: n.snapshot.version, senderId: e.senderId }), Zt()), !O.apply(s, n))
|
|
2673
2688
|
return;
|
|
2674
2689
|
const a = O.getSnapshot(s);
|
|
2675
2690
|
if (!a)
|
|
2676
2691
|
return;
|
|
2677
2692
|
const c = Y.get(s);
|
|
2678
|
-
Y.set(s, a), P(
|
|
2693
|
+
Y.set(s, a), P(Ai(s, a, c));
|
|
2679
2694
|
}
|
|
2680
|
-
async function
|
|
2681
|
-
const e = await
|
|
2695
|
+
async function yi(t) {
|
|
2696
|
+
const e = await un(t);
|
|
2682
2697
|
if (!e.StyleId)
|
|
2683
2698
|
return;
|
|
2684
2699
|
const s = {
|
|
@@ -2688,8 +2703,8 @@ async function Ni(t) {
|
|
|
2688
2703
|
}, r = H.get(s.styleId);
|
|
2689
2704
|
r && r.css === s.css && r.common === s.common || (H.set(s.styleId, s), P({ type: "UpsertUiStyle", style: s }));
|
|
2690
2705
|
}
|
|
2691
|
-
async function
|
|
2692
|
-
const e = await
|
|
2706
|
+
async function wi(t) {
|
|
2707
|
+
const e = await wn(t);
|
|
2693
2708
|
if (e.Styles)
|
|
2694
2709
|
for (const s of e.Styles) {
|
|
2695
2710
|
if (!s.StyleId)
|
|
@@ -2702,27 +2717,27 @@ async function di(t) {
|
|
|
2702
2717
|
n && n.css === r.css && n.common === r.common || (H.set(r.styleId, r), P({ type: "UpsertUiStyle", style: r }));
|
|
2703
2718
|
}
|
|
2704
2719
|
}
|
|
2705
|
-
function
|
|
2720
|
+
function Ci(t) {
|
|
2706
2721
|
const e = et(t), s = te(e);
|
|
2707
2722
|
O.clear(s), Y.delete(s), P({ type: "ClearStream", streamId: s });
|
|
2708
2723
|
}
|
|
2709
|
-
async function
|
|
2710
|
-
const e = await
|
|
2724
|
+
async function Di(t) {
|
|
2725
|
+
const e = await Mn(t);
|
|
2711
2726
|
if (!(!e.StyleIds || e.StyleIds.length === 0))
|
|
2712
2727
|
for (const s of e.StyleIds)
|
|
2713
2728
|
H.delete(s) && P({ type: "RemoveUiStyle", styleId: s });
|
|
2714
2729
|
}
|
|
2715
|
-
async function
|
|
2730
|
+
async function Ui(t) {
|
|
2716
2731
|
const e = new Uint8Array(t);
|
|
2717
2732
|
z += e.byteLength;
|
|
2718
2733
|
const s = e;
|
|
2719
2734
|
switch (se(s)) {
|
|
2720
2735
|
case g.CORE_GLOBAL_STATE:
|
|
2721
|
-
await
|
|
2736
|
+
await di(s), R++;
|
|
2722
2737
|
return;
|
|
2723
2738
|
case g.UI_UPDATE:
|
|
2724
2739
|
try {
|
|
2725
|
-
await
|
|
2740
|
+
await Si(s);
|
|
2726
2741
|
} catch (n) {
|
|
2727
2742
|
return n instanceof D, void 0;
|
|
2728
2743
|
} finally {
|
|
@@ -2730,16 +2745,16 @@ async function wi(t) {
|
|
|
2730
2745
|
}
|
|
2731
2746
|
return;
|
|
2732
2747
|
case g.UI_STYLES:
|
|
2733
|
-
await
|
|
2748
|
+
await yi(s), R++;
|
|
2734
2749
|
return;
|
|
2735
2750
|
case g.UI_STYLES_BATCH:
|
|
2736
|
-
await
|
|
2751
|
+
await wi(s), R++;
|
|
2737
2752
|
return;
|
|
2738
2753
|
case g.UI_STYLES_DELETE:
|
|
2739
|
-
await
|
|
2754
|
+
await Di(s), R++;
|
|
2740
2755
|
return;
|
|
2741
2756
|
case g.ACTION_UI_CLEAR_STREAM:
|
|
2742
|
-
|
|
2757
|
+
Ci(s), R++;
|
|
2743
2758
|
return;
|
|
2744
2759
|
default:
|
|
2745
2760
|
return;
|
|
@@ -2755,6 +2770,6 @@ self.addEventListener("message", (t) => {
|
|
|
2755
2770
|
V = [], Y.clear();
|
|
2756
2771
|
return;
|
|
2757
2772
|
}
|
|
2758
|
-
e.type === "protocol" &&
|
|
2773
|
+
e.type === "protocol" && Ui(e.message).catch(() => {
|
|
2759
2774
|
});
|
|
2760
2775
|
});
|