@ikonai/sdk-ui 1.0.2 → 1.0.4
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-aijZxF0a.js +2746 -0
- package/index.js +240 -242
- package/package.json +1 -1
- package/assets/ui-worker-CgUI78Qp.js +0 -2748
package/index.js
CHANGED
|
@@ -23,12 +23,10 @@ function qt(e) {
|
|
|
23
23
|
flags: c
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function M(e, t, s) {
|
|
27
27
|
const r = G(e), i = qt(r);
|
|
28
28
|
if (t !== void 0 && i.opcode !== t)
|
|
29
29
|
throw new Error(`Unexpected opcode ${i.opcode}`);
|
|
30
|
-
if (s !== void 0 && i.payloadVersion !== s)
|
|
31
|
-
throw new Error(`Unexpected payload version ${i.payloadVersion}`);
|
|
32
30
|
if (i.payloadType !== 8)
|
|
33
31
|
throw new Error(`Unexpected payload type ${i.payloadType}`);
|
|
34
32
|
const n = P + i.targetIds.length * 4;
|
|
@@ -44,7 +42,7 @@ function Qt(e, t, s, r, i) {
|
|
|
44
42
|
}
|
|
45
43
|
var C = /* @__PURE__ */ ((e) => (e[e.Null = 1] = "Null", e[e.Bool = 2] = "Bool", e[e.Int32 = 3] = "Int32", e[e.Int64 = 4] = "Int64", e[e.UInt32 = 5] = "UInt32", e[e.UInt64 = 6] = "UInt64", e[e.Float32 = 7] = "Float32", e[e.Float64 = 8] = "Float64", e[e.Array = 9] = "Array", e[e.Dict = 10] = "Dict", e[e.Object = 11] = "Object", e[e.String = 12] = "String", e[e.Binary = 13] = "Binary", e[e.Guid = 14] = "Guid", e))(C || {});
|
|
46
44
|
const lt = 161, It = 162, Y = new TextEncoder(), Zt = new TextDecoder("utf-8", { fatal: !0 });
|
|
47
|
-
class
|
|
45
|
+
class B {
|
|
48
46
|
constructor(t = 1) {
|
|
49
47
|
this.version = t, this.buffer.writeByte(lt), this.buffer.writeVarUInt(t >>> 0);
|
|
50
48
|
}
|
|
@@ -86,7 +84,7 @@ class M {
|
|
|
86
84
|
this.writeVariableField(t, 13, s);
|
|
87
85
|
}
|
|
88
86
|
writeObjectField(t, s, r) {
|
|
89
|
-
const i = new
|
|
87
|
+
const i = new B(s);
|
|
90
88
|
r(i);
|
|
91
89
|
const n = i.finish();
|
|
92
90
|
this.writeVariableField(t, 11, n);
|
|
@@ -193,7 +191,7 @@ class K {
|
|
|
193
191
|
11
|
|
194
192
|
/* Object */
|
|
195
193
|
), this.count++;
|
|
196
|
-
const r = new
|
|
194
|
+
const r = new B(t);
|
|
197
195
|
s(r);
|
|
198
196
|
const i = r.finish();
|
|
199
197
|
this.payload.writeVarUInt(i.length), this.payload.writeBytes(i);
|
|
@@ -398,7 +396,7 @@ class te {
|
|
|
398
396
|
11
|
|
399
397
|
/* Object */
|
|
400
398
|
);
|
|
401
|
-
const r = new
|
|
399
|
+
const r = new B(t);
|
|
402
400
|
s(r);
|
|
403
401
|
const i = r.finish();
|
|
404
402
|
this.payload.writeVarUInt(i.length), this.payload.writeBytes(i), this.valueWritten = !0;
|
|
@@ -976,7 +974,7 @@ function ot(e) {
|
|
|
976
974
|
function G(e) {
|
|
977
975
|
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
978
976
|
}
|
|
979
|
-
var ht = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Opus = 1] = "Opus", e[e.Mp3 = 2] = "Mp3", e[e.RawPcm16 = 3] = "RawPcm16", e))(ht || {}), ct = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MobileWeb = 1] = "MobileWeb", e[e.MobileApp = 2] = "MobileApp", e[e.DesktopWeb = 3] = "DesktopWeb", e[e.DesktopApp = 4] = "DesktopApp", e))(ct || {}), ut = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Backend = 2] = "Backend", e[e.Server = 4] = "Server", e[e.Plugin = 8] = "Plugin", e[e.Browser = 16] = "Browser", e))(ut || {}), Et = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MessagePack = 1] = "MessagePack", e[e.MemoryPack = 2] = "MemoryPack", e[e.Json = 4] = "Json", e[e.Teleport = 8] = "Teleport", e[e.All = 15] = "All", e))(Et || {}), _t = /* @__PURE__ */ ((e) => (e[e.Face = 0] = "Face", e[e.Hands = 1] = "Hands", e[e.Pose = 2] = "Pose", e[e.All = 3] = "All", e))(_t || {}), ft = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Machine = 1] = "Machine", e[e.Human = 2] = "Human", e))(ft || {}), dt = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.H264 = 1] = "H264", e[e.Vp8 = 2] = "Vp8", e[e.Vp9 = 3] = "Vp9", e[e.Av1 = 4] = "Av1", e))(dt || {}), Tt = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.DotNet = 1] = "DotNet", e[e.TypeScript = 2] = "TypeScript", e[e.Cpp = 3] = "Cpp", e))(Tt || {}), m = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", e[e.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", e[e.GROUP_CORE = 65536] = "GROUP_CORE", e[e.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", e[e.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", e[e.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", e[e.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", e[e.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", e[e.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", e[e.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", e[e.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", e[e.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", e[e.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", e[e.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", e[e.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", e[e.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", e[e.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", e[e.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", e[e.CORE_SERVER_START = 65552] = "CORE_SERVER_START", e[e.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", e[e.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", e[e.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", e[e.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", e[e.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", e[e.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", e[e.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", e[e.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", e[e.GROUP_EVENTS = 262144] = "GROUP_EVENTS", e[e.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", e[e.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", e[e.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", e[e.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", e[e.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", e[e.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", e[e.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", e[e.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", e[e.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", e[e.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", e[e.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", e[e.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", e[e.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", e[e.ACTION_CALL = 1048577] = "ACTION_CALL", e[e.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", e[e.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", e[e.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", e[e.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", e[e.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", e[e.ACTION_TAP = 1048583] = "ACTION_TAP", e[e.ACTION_PAN = 1048584] = "ACTION_PAN", e[e.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", e[e.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", e[e.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", e[e.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", e[e.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", e[e.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", e[e.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", e[e.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", e[e.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", e[e.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", e[e.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", e[e.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", e[e.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", e[e.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", e[e.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", e[e.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", e[e.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", e[e.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", e[e.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", e[e.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", e[e.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", e[e.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", e[e.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", e[e.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", e[e.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", e[e.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", e[e.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", e[e.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", e[e.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", e[e.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", e[e.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", e[e.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", e[e.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", e[e.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", e[e.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", e[e.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", e[e.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", e[e.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", e[e.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", e[e.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", e[e.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", e[e.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", e[e.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", e[e.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", e[e.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", e[e.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", e[e.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", e[e.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", e[e.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", e[e.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", e[e.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", e[e.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", e[e.ACTION_CALL2 = 1048637] = "ACTION_CALL2", e[e.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", e[e.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", e[e.GROUP_UI = 2097152] = "GROUP_UI", e[e.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", e[e.UI_STREAM_END = 2097154] = "UI_STREAM_END", e[e.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", e[e.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", e[e.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", e[e.UI_SECTION_END = 2097158] = "UI_SECTION_END", e[e.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", e[e.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", e[e.UI_LIST_END = 2097161] = "UI_LIST_END", e[e.UI_TEXT = 2097162] = "UI_TEXT", e[e.UI_HEADER = 2097163] = "UI_HEADER", e[e.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", e[e.UI_BUTTON = 2097165] = "UI_BUTTON", e[e.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", e[e.UI_IMAGE = 2097167] = "UI_IMAGE", e[e.UI_FILE = 2097168] = "UI_FILE", e[e.UI_BADGE = 2097169] = "UI_BADGE", e[e.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", e[e.UI_MAP = 2097171] = "UI_MAP", e[e.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", e[e.UI_ICON = 2097173] = "UI_ICON", e[e.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", e[e.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", e[e.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", e[e.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", e[e.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", e[e.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", e[e.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", e[e.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", e[e.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", e[e.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", e[e.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", e[e.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", e[e.UI_QS = 2097186] = "UI_QS", e[e.UI_ELEMENT = 2097187] = "UI_ELEMENT", e[e.UI_STYLES = 2097188] = "UI_STYLES", e[e.UI_SVG = 2097189] = "UI_SVG", e[e.UI_UPDATE = 2097190] = "UI_UPDATE", e[e.UI_INIT = 2097191] = "UI_INIT", e[e.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", e[e.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", e[e.GROUP_COMMON = 4128768] = "GROUP_COMMON", e[e.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", e[e.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", e[e.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", e[e.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", e[e.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", e[e.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", e[e.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", e[e.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", e[e.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", e[e.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", e[e.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", e[e.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", e[e.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", e[e.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", e[e.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", e[e.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", e[e.GROUP_SCENE = 33554432] = "GROUP_SCENE", e[e.SCENE_MESH = 33554433] = "SCENE_MESH", e[e.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", e[e.GROUP_ALL = 67043328] = "GROUP_ALL", e[e.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(m || {});
|
|
977
|
+
var ht = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Opus = 1] = "Opus", e[e.Mp3 = 2] = "Mp3", e[e.RawPcm16 = 3] = "RawPcm16", e))(ht || {}), ct = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MobileWeb = 1] = "MobileWeb", e[e.MobileApp = 2] = "MobileApp", e[e.DesktopWeb = 3] = "DesktopWeb", e[e.DesktopApp = 4] = "DesktopApp", e))(ct || {}), ut = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Backend = 2] = "Backend", e[e.Server = 4] = "Server", e[e.Plugin = 8] = "Plugin", e[e.Browser = 16] = "Browser", e))(ut || {}), Et = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.MessagePack = 1] = "MessagePack", e[e.MemoryPack = 2] = "MemoryPack", e[e.Json = 4] = "Json", e[e.Teleport = 8] = "Teleport", e[e.All = 15] = "All", e))(Et || {}), _t = /* @__PURE__ */ ((e) => (e[e.Face = 0] = "Face", e[e.Hands = 1] = "Hands", e[e.Pose = 2] = "Pose", e[e.All = 3] = "All", e))(_t || {}), ft = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Machine = 1] = "Machine", e[e.Human = 2] = "Human", e))(ft || {}), dt = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.H264 = 1] = "H264", e[e.Vp8 = 2] = "Vp8", e[e.Vp9 = 3] = "Vp9", e[e.Av1 = 4] = "Av1", e))(dt || {}), Tt = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.DotNet = 1] = "DotNet", e[e.TypeScript = 2] = "TypeScript", e[e.Cpp = 3] = "Cpp", e))(Tt || {}), m = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.CONSTANT_GROUP_BITS = 15] = "CONSTANT_GROUP_BITS", e[e.CONSTANT_GROUP_OFFSET = 16] = "CONSTANT_GROUP_OFFSET", e[e.GROUP_CORE = 65536] = "GROUP_CORE", e[e.CORE_AUTH_RESPONSE = 65537] = "CORE_AUTH_RESPONSE", e[e.CORE_AUTH_TICKET = 65538] = "CORE_AUTH_TICKET", e[e.CORE_GLOBAL_STATE = 65539] = "CORE_GLOBAL_STATE", e[e.CORE_ON_SERVER_STATUS_PING = 65540] = "CORE_ON_SERVER_STATUS_PING", e[e.CORE_ON_USER_JOINED = 65541] = "CORE_ON_USER_JOINED", e[e.CORE_ON_USER_LEFT = 65542] = "CORE_ON_USER_LEFT", e[e.CORE_ON_CLIENT_JOINED = 65543] = "CORE_ON_CLIENT_JOINED", e[e.CORE_ON_CLIENT_LEFT = 65544] = "CORE_ON_CLIENT_LEFT", e[e.CORE_ON_SERVER_STARTED = 65545] = "CORE_ON_SERVER_STARTED", e[e.CORE_ON_SERVER_STOPPED = 65546] = "CORE_ON_SERVER_STOPPED", e[e.CORE_ON_SERVER_STOPPING = 65547] = "CORE_ON_SERVER_STOPPING", e[e.CORE_ON_CLIENT_READY = 65548] = "CORE_ON_CLIENT_READY", e[e.CORE_CLIENT_READY = 65549] = "CORE_CLIENT_READY", e[e.CORE_SERVER_INIT = 65550] = "CORE_SERVER_INIT", e[e.CORE_ON_PLUGIN_RELOADED = 65551] = "CORE_ON_PLUGIN_RELOADED", e[e.CORE_SERVER_START = 65552] = "CORE_SERVER_START", e[e.CORE_SERVER_STOP = 65553] = "CORE_SERVER_STOP", e[e.CORE_ON_HOSTED_SERVER_EXIT = 65554] = "CORE_ON_HOSTED_SERVER_EXIT", e[e.CORE_DYNAMIC_CONFIG = 65555] = "CORE_DYNAMIC_CONFIG", e[e.CORE_PROXY_RPC_AUTH_TICKET = 65556] = "CORE_PROXY_RPC_AUTH_TICKET", e[e.CORE_SERVER_INIT2 = 65557] = "CORE_SERVER_INIT2", e[e.GROUP_KEEPALIVE = 131072] = "GROUP_KEEPALIVE", e[e.KEEPALIVE_REQUEST = 131073] = "KEEPALIVE_REQUEST", e[e.KEEPALIVE_RESPONSE = 131074] = "KEEPALIVE_RESPONSE", e[e.GROUP_EVENTS = 262144] = "GROUP_EVENTS", e[e.EVENTS_PROFILE_UPDATE = 262145] = "EVENTS_PROFILE_UPDATE", e[e.EVENTS_CHANNEL_COMPLETE = 262146] = "EVENTS_CHANNEL_COMPLETE", e[e.EVENTS_SPEECH_PLAYBACK_COMPLETE = 262147] = "EVENTS_SPEECH_PLAYBACK_COMPLETE", e[e.GROUP_ANALYTICS = 524288] = "GROUP_ANALYTICS", e[e.ANALYTICS_LOGS = 524289] = "ANALYTICS_LOGS", e[e.ANALYTICS_EVENTS = 524290] = "ANALYTICS_EVENTS", e[e.ANALYTICS_USAGES = 524291] = "ANALYTICS_USAGES", e[e.ANALYTICS_USAGE = 524292] = "ANALYTICS_USAGE", e[e.ANALYTICS_SPECIAL_LOG = 524293] = "ANALYTICS_SPECIAL_LOG", e[e.ANALYTICS_PROCESSING_UPDATE = 524294] = "ANALYTICS_PROCESSING_UPDATE", e[e.ANALYTICS_REACTIVE_PROCESSING_UPDATE = 524295] = "ANALYTICS_REACTIVE_PROCESSING_UPDATE", e[e.ANALYTICS_IKON_PROXY_SERVER_STATS = 524296] = "ANALYTICS_IKON_PROXY_SERVER_STATS", e[e.ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT = 524297] = "ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT", e[e.GROUP_ACTIONS = 1048576] = "GROUP_ACTIONS", e[e.ACTION_CALL = 1048577] = "ACTION_CALL", e[e.ACTION_ACTIVE = 1048578] = "ACTION_ACTIVE", e[e.ACTION_TEXT_OUTPUT = 1048579] = "ACTION_TEXT_OUTPUT", e[e.ACTION_TEXT_OUTPUT_DELTA = 1048580] = "ACTION_TEXT_OUTPUT_DELTA", e[e.ACTION_TEXT_OUTPUT_DELTA_FULL = 1048581] = "ACTION_TEXT_OUTPUT_DELTA_FULL", e[e.ACTION_SET_STATE = 1048582] = "ACTION_SET_STATE", e[e.ACTION_TAP = 1048583] = "ACTION_TAP", e[e.ACTION_PAN = 1048584] = "ACTION_PAN", e[e.ACTION_ZOOM = 1048585] = "ACTION_ZOOM", e[e.ACTION_FILE_UPLOAD_BEGIN = 1048586] = "ACTION_FILE_UPLOAD_BEGIN", e[e.ACTION_FILE_UPLOAD_DATA = 1048587] = "ACTION_FILE_UPLOAD_DATA", e[e.ACTION_FILE_UPLOAD_ACK = 1048588] = "ACTION_FILE_UPLOAD_ACK", e[e.ACTION_FILE_UPLOAD_END = 1048589] = "ACTION_FILE_UPLOAD_END", e[e.ACTION_FILE_UPLOAD_RESULT = 1048590] = "ACTION_FILE_UPLOAD_RESULT", e[e.ACTION_OPEN_CHANNEL = 1048591] = "ACTION_OPEN_CHANNEL", e[e.ACTION_OPEN_EXTERNAL_URL = 1048592] = "ACTION_OPEN_EXTERNAL_URL", e[e.ACTION_UI_OPEN_VIEW = 1048593] = "ACTION_UI_OPEN_VIEW", e[e.ACTION_UI_CLOSE_VIEW = 1048594] = "ACTION_UI_CLOSE_VIEW", e[e.ACTION_UI_BLOCKING_BEGIN = 1048595] = "ACTION_UI_BLOCKING_BEGIN", e[e.ACTION_UI_BLOCKING_END = 1048596] = "ACTION_UI_BLOCKING_END", e[e.ACTION_UI_UPDATE_TEXT_DELTA = 1048597] = "ACTION_UI_UPDATE_TEXT_DELTA", e[e.ACTION_UI_DELETE_CONTAINER = 1048598] = "ACTION_UI_DELETE_CONTAINER", e[e.ACTION_UPDATE_GFX_SHADER = 1048599] = "ACTION_UPDATE_GFX_SHADER", e[e.ACTION_FUNCTION_REGISTER = 1048600] = "ACTION_FUNCTION_REGISTER", e[e.ACTION_FUNCTION_CALL = 1048601] = "ACTION_FUNCTION_CALL", e[e.ACTION_FUNCTION_RESULT = 1048602] = "ACTION_FUNCTION_RESULT", e[e.ACTION_GENERATE_ANSWER = 1048603] = "ACTION_GENERATE_ANSWER", e[e.ACTION_REGENERATE_ANSWER = 1048604] = "ACTION_REGENERATE_ANSWER", e[e.ACTION_CLEAR_CHAT_MESSAGE_HISTORY = 1048605] = "ACTION_CLEAR_CHAT_MESSAGE_HISTORY", e[e.ACTION_CLEAR_STATE = 1048606] = "ACTION_CLEAR_STATE", e[e.ACTION_RELOAD_CHANNELS = 1048607] = "ACTION_RELOAD_CHANNELS", e[e.ACTION_RELOAD_PROFILE = 1048608] = "ACTION_RELOAD_PROFILE", e[e.ACTION_CLASSIFICATION_RESULT = 1048609] = "ACTION_CLASSIFICATION_RESULT", e[e.ACTION_AUDIO_STOP = 1048610] = "ACTION_AUDIO_STOP", e[e.ACTION_CALL_TEXT = 1048611] = "ACTION_CALL_TEXT", e[e.ACTION_RELOAD_APPLICATION = 1048612] = "ACTION_RELOAD_APPLICATION", e[e.ACTION_CANCEL_GENERATION = 1048613] = "ACTION_CANCEL_GENERATION", e[e.ACTION_UI_SET_CONTAINER_STABLE = 1048614] = "ACTION_UI_SET_CONTAINER_STABLE", e[e.ACTION_SPEECH_RECOGNIZED = 1048615] = "ACTION_SPEECH_RECOGNIZED", e[e.ACTION_CALL_RESULT = 1048616] = "ACTION_CALL_RESULT", e[e.ACTION_RELOAD_PROVIDER = 1048617] = "ACTION_RELOAD_PROVIDER", e[e.ACTION_DOWNLOAD = 1048618] = "ACTION_DOWNLOAD", e[e.ACTION_SCROLL_TO_CONTAINER = 1048619] = "ACTION_SCROLL_TO_CONTAINER", e[e.ACTION_UI_CLEAR_STREAM = 1048620] = "ACTION_UI_CLEAR_STREAM", e[e.ACTION_PLAY_SOUND = 1048621] = "ACTION_PLAY_SOUND", e[e.ACTION_ENTER_FULLSCREEN = 1048622] = "ACTION_ENTER_FULLSCREEN", e[e.ACTION_STOP_SOUND = 1048623] = "ACTION_STOP_SOUND", e[e.ACTION_START_RECORDING = 1048624] = "ACTION_START_RECORDING", e[e.ACTION_STOP_RECORDING = 1048625] = "ACTION_STOP_RECORDING", e[e.ACTION_OPTIMISTIC_CLIENT_CALLS = 1048626] = "ACTION_OPTIMISTIC_CLIENT_CALLS", e[e.ACTION_FUNCTION_ENUMERATION_ITEM = 1048627] = "ACTION_FUNCTION_ENUMERATION_ITEM", e[e.ACTION_FUNCTION_ENUMERATION_END = 1048628] = "ACTION_FUNCTION_ENUMERATION_END", e[e.ACTION_FUNCTION_CANCEL = 1048629] = "ACTION_FUNCTION_CANCEL", e[e.ACTION_FUNCTION_DISPOSE = 1048630] = "ACTION_FUNCTION_DISPOSE", e[e.ACTION_FUNCTION_ERROR = 1048631] = "ACTION_FUNCTION_ERROR", e[e.ACTION_FUNCTION_ACK = 1048632] = "ACTION_FUNCTION_ACK", e[e.ACTION_FUNCTION_AWAITING_APPROVAL = 1048633] = "ACTION_FUNCTION_AWAITING_APPROVAL", e[e.ACTION_FUNCTION_APPROVAL_REQUIRED = 1048634] = "ACTION_FUNCTION_APPROVAL_REQUIRED", e[e.ACTION_FUNCTION_APPROVAL_RESPONSE = 1048635] = "ACTION_FUNCTION_APPROVAL_RESPONSE", e[e.UI_UPDATE_ACK = 1048636] = "UI_UPDATE_ACK", e[e.ACTION_CALL2 = 1048637] = "ACTION_CALL2", e[e.ACTION_FUNCTION_REGISTER_BATCH = 1048638] = "ACTION_FUNCTION_REGISTER_BATCH", e[e.ACTION_TRIGGER_GIT_PULL = 1048639] = "ACTION_TRIGGER_GIT_PULL", e[e.GROUP_UI = 2097152] = "GROUP_UI", e[e.UI_STREAM_BEGIN = 2097153] = "UI_STREAM_BEGIN", e[e.UI_STREAM_END = 2097154] = "UI_STREAM_END", e[e.UI_CONTAINER_BEGIN = 2097155] = "UI_CONTAINER_BEGIN", e[e.UI_CONTAINER_END = 2097156] = "UI_CONTAINER_END", e[e.UI_SECTION_BEGIN = 2097157] = "UI_SECTION_BEGIN", e[e.UI_SECTION_END = 2097158] = "UI_SECTION_END", e[e.UI_LIST_BEGIN = 2097159] = "UI_LIST_BEGIN", e[e.UI_LIST_ITEM = 2097160] = "UI_LIST_ITEM", e[e.UI_LIST_END = 2097161] = "UI_LIST_END", e[e.UI_TEXT = 2097162] = "UI_TEXT", e[e.UI_HEADER = 2097163] = "UI_HEADER", e[e.UI_SEPARATOR = 2097164] = "UI_SEPARATOR", e[e.UI_BUTTON = 2097165] = "UI_BUTTON", e[e.UI_ICON_BUTTON = 2097166] = "UI_ICON_BUTTON", e[e.UI_IMAGE = 2097167] = "UI_IMAGE", e[e.UI_FILE = 2097168] = "UI_FILE", e[e.UI_BADGE = 2097169] = "UI_BADGE", e[e.UI_CONTENT_LINK = 2097170] = "UI_CONTENT_LINK", e[e.UI_MAP = 2097171] = "UI_MAP", e[e.UI_VEGA_CHART = 2097172] = "UI_VEGA_CHART", e[e.UI_ICON = 2097173] = "UI_ICON", e[e.UI_FILE_UPLOAD_SECTION_BEGIN = 2097174] = "UI_FILE_UPLOAD_SECTION_BEGIN", e[e.UI_FILE_UPLOAD_SECTION_END = 2097175] = "UI_FILE_UPLOAD_SECTION_END", e[e.UI_MATERIAL_SYMBOL = 2097176] = "UI_MATERIAL_SYMBOL", e[e.UI_BUTTON_BEGIN = 2097177] = "UI_BUTTON_BEGIN", e[e.UI_BUTTON_END = 2097178] = "UI_BUTTON_END", e[e.UI_CONTAINER_DELETE = 2097179] = "UI_CONTAINER_DELETE", e[e.UI_INPUT_TEXT = 2097180] = "UI_INPUT_TEXT", e[e.UI_PROGRESS_BAR = 2097181] = "UI_PROGRESS_BAR", e[e.UI_UPDATE_BEGIN = 2097182] = "UI_UPDATE_BEGIN", e[e.UI_UPDATE_END = 2097183] = "UI_UPDATE_END", e[e.UI_AUTOCOMPLETE = 2097184] = "UI_AUTOCOMPLETE", e[e.UI_CHECKBOX = 2097185] = "UI_CHECKBOX", e[e.UI_QS = 2097186] = "UI_QS", e[e.UI_ELEMENT = 2097187] = "UI_ELEMENT", e[e.UI_STYLES = 2097188] = "UI_STYLES", e[e.UI_SVG = 2097189] = "UI_SVG", e[e.UI_UPDATE = 2097190] = "UI_UPDATE", e[e.UI_INIT = 2097191] = "UI_INIT", e[e.UI_STYLES_BATCH = 2097192] = "UI_STYLES_BATCH", e[e.UI_STYLES_DELETE = 2097193] = "UI_STYLES_DELETE", e[e.GROUP_COMMON = 4128768] = "GROUP_COMMON", e[e.GROUP_AUDIO = 4194304] = "GROUP_AUDIO", e[e.AUDIO_STREAM_BEGIN = 4194305] = "AUDIO_STREAM_BEGIN", e[e.AUDIO_STREAM_END = 4194306] = "AUDIO_STREAM_END", e[e.AUDIO_FRAME = 4194307] = "AUDIO_FRAME", e[e.AUDIO_FRAME_VOLUME = 4194308] = "AUDIO_FRAME_VOLUME", e[e.AUDIO_FRAME2 = 4194309] = "AUDIO_FRAME2", e[e.GROUP_VIDEO = 8388608] = "GROUP_VIDEO", e[e.VIDEO_STREAM_BEGIN = 8388609] = "VIDEO_STREAM_BEGIN", e[e.VIDEO_STREAM_END = 8388610] = "VIDEO_STREAM_END", e[e.VIDEO_FRAME = 8388611] = "VIDEO_FRAME", e[e.VIDEO_REQUEST_IDR_FRAME = 8388612] = "VIDEO_REQUEST_IDR_FRAME", e[e.VIDEO_INVALIDATE_FRAME = 8388613] = "VIDEO_INVALIDATE_FRAME", e[e.GROUP_TRACKING = 16777216] = "GROUP_TRACKING", e[e.TRACKING_STREAM_BEGIN = 16777217] = "TRACKING_STREAM_BEGIN", e[e.TRACKING_STREAM_END = 16777218] = "TRACKING_STREAM_END", e[e.TRACKING_FRAME = 16777219] = "TRACKING_FRAME", e[e.GROUP_SCENE = 33554432] = "GROUP_SCENE", e[e.SCENE_MESH = 33554433] = "SCENE_MESH", e[e.SCENE_ARRAY = 33554434] = "SCENE_ARRAY", e[e.GROUP_ALL = 67043328] = "GROUP_ALL", e[e.CONSTANT_GROUP_MASK = 2147418112] = "CONSTANT_GROUP_MASK", e))(m || {});
|
|
980
978
|
const oe = 265814330, ae = 1368629611, le = 2431514951, Ie = 2914494629, he = 3284746250, ce = 4101844078;
|
|
981
979
|
function yt(e) {
|
|
982
980
|
const t = {};
|
|
@@ -1075,7 +1073,7 @@ function Ne(e) {
|
|
|
1075
1073
|
t.push(s.asString());
|
|
1076
1074
|
return t;
|
|
1077
1075
|
}
|
|
1078
|
-
const we = 76337612, Ue = 185396121, Ce = 388632637, De = 417197284, Re = 469070965, me = 470595159, Le = 781727218, ge = 834078886, pe = 1043273762, Oe = 1236999138, be = 1368629611, Pe = 1715899485, Fe = 1942830531, ke = 1999510636, ve = 2079864626, Ve = 2142346422,
|
|
1076
|
+
const we = 76337612, Ue = 185396121, Ce = 388632637, De = 417197284, Re = 469070965, me = 470595159, Le = 781727218, ge = 834078886, pe = 1043273762, Oe = 1236999138, be = 1368629611, Pe = 1715899485, Fe = 1942830531, ke = 1999510636, ve = 2079864626, Ve = 2142346422, Me = 2598291686, Be = 2719718823, Ge = 2810953526, xe = 2840065720, He = 2885165957, Ye = 3586157513, We = 3717933110, Ke = 4062655306;
|
|
1079
1077
|
function $e(e) {
|
|
1080
1078
|
const t = {};
|
|
1081
1079
|
return Nt(t), t;
|
|
@@ -1171,12 +1169,12 @@ function Xe(e, t) {
|
|
|
1171
1169
|
t.PayloadType = s.asInt32();
|
|
1172
1170
|
break;
|
|
1173
1171
|
}
|
|
1174
|
-
case
|
|
1172
|
+
case Me: {
|
|
1175
1173
|
if (s.isNull) throw new Error();
|
|
1176
1174
|
t.VersionId = s.asString();
|
|
1177
1175
|
break;
|
|
1178
1176
|
}
|
|
1179
|
-
case
|
|
1177
|
+
case Be: {
|
|
1180
1178
|
if (s.isNull) throw new Error();
|
|
1181
1179
|
t.UniqueSessionId = s.asString();
|
|
1182
1180
|
break;
|
|
@@ -1428,7 +1426,7 @@ function Os(e, t) {
|
|
|
1428
1426
|
}
|
|
1429
1427
|
}
|
|
1430
1428
|
}
|
|
1431
|
-
const bs = 164808083, Ps = 1368629611, Fs = 2739413426, ks = 2768375929, vs = 2950031986, Vs = 3284746250,
|
|
1429
|
+
const bs = 164808083, Ps = 1368629611, Fs = 2739413426, ks = 2768375929, vs = 2950031986, Vs = 3284746250, Ms = 4065070594;
|
|
1432
1430
|
function Lt(e) {
|
|
1433
1431
|
const t = {};
|
|
1434
1432
|
return gt(t), t;
|
|
@@ -1436,7 +1434,7 @@ function Lt(e) {
|
|
|
1436
1434
|
function gt(e) {
|
|
1437
1435
|
return e.Description = "", e.Codec = dt.H264, e.Width = 0, e.Height = 0, e.Framerate = 30, e.Bitrate = 0, e.IsHardwareAccelerated = !1, e;
|
|
1438
1436
|
}
|
|
1439
|
-
function
|
|
1437
|
+
function Bs(e, t) {
|
|
1440
1438
|
const s = t ?? Lt();
|
|
1441
1439
|
return gt(s), Gs(e, s), s;
|
|
1442
1440
|
}
|
|
@@ -1474,145 +1472,145 @@ function Gs(e, t) {
|
|
|
1474
1472
|
t.Codec = s.asInt32();
|
|
1475
1473
|
break;
|
|
1476
1474
|
}
|
|
1477
|
-
case
|
|
1475
|
+
case Ms: {
|
|
1478
1476
|
if (s.isNull) throw new Error();
|
|
1479
1477
|
t.Width = s.asInt32();
|
|
1480
1478
|
break;
|
|
1481
1479
|
}
|
|
1482
1480
|
}
|
|
1483
1481
|
}
|
|
1484
|
-
const xs =
|
|
1485
|
-
function
|
|
1482
|
+
const xs = 65539, Hs = 414670648, Ys = 693643444, Ws = 1144553441, Ks = 1497620243, $s = 1559330978, js = 1999510636, Xs = 2277643855, zs = 2469008121, Js = 3042922213, qs = 3219210453, Qs = 3504054055, Zs = 3642827795, tr = 3678477544, er = 3696445035, sr = 3707543140, rr = 3712281496, ir = 3748214980, nr = 3823842552, or = 3895362455, ar = 3897397815, lr = 4225107827;
|
|
1483
|
+
function Ir(e) {
|
|
1486
1484
|
const t = {};
|
|
1487
1485
|
return pt(t), t;
|
|
1488
1486
|
}
|
|
1489
1487
|
function pt(e) {
|
|
1490
1488
|
return e.Clients = /* @__PURE__ */ Object.create(null), e.UIStreams = /* @__PURE__ */ Object.create(null), e.AudioStreams = /* @__PURE__ */ Object.create(null), e.VideoStreams = /* @__PURE__ */ Object.create(null), e.TrackingStreams = /* @__PURE__ */ Object.create(null), e.SpaceId = "", e.ChannelInstanceId = "", e.FirstUserId = "", e.ChannelUrl = "", e.ChannelId = "", e.PrimaryUserId = "", e.OrganisationName = "", e.SpaceName = "", e.ChannelName = "", e.SessionId = "", e.RunnerType = "", e.BootType = "", e.PublicAccess = !1, e.DebugMode = !1, e.IsGitSource = !1, e.Functions = /* @__PURE__ */ Object.create(null), e;
|
|
1491
1489
|
}
|
|
1492
|
-
function
|
|
1490
|
+
function hr(e, t) {
|
|
1493
1491
|
const s = p.create(e);
|
|
1494
|
-
return
|
|
1492
|
+
return cr(s, t);
|
|
1495
1493
|
}
|
|
1496
|
-
function
|
|
1497
|
-
const s = t ??
|
|
1498
|
-
return pt(s),
|
|
1494
|
+
function cr(e, t) {
|
|
1495
|
+
const s = t ?? Ir();
|
|
1496
|
+
return pt(s), ur(e, s), s;
|
|
1499
1497
|
}
|
|
1500
|
-
function
|
|
1498
|
+
function ur(e, t) {
|
|
1501
1499
|
let s;
|
|
1502
1500
|
for (; (s = e.next()) !== null; )
|
|
1503
1501
|
switch (s.fieldId) {
|
|
1504
|
-
case
|
|
1502
|
+
case Hs: {
|
|
1505
1503
|
if (s.isNull) throw new Error();
|
|
1506
1504
|
t.IsGitSource = s.asBool();
|
|
1507
1505
|
break;
|
|
1508
1506
|
}
|
|
1509
|
-
case
|
|
1507
|
+
case Ys: {
|
|
1510
1508
|
if (s.isNull) throw new Error();
|
|
1511
1509
|
t.FirstUserId = s.asString();
|
|
1512
1510
|
break;
|
|
1513
1511
|
}
|
|
1512
|
+
case Ws: {
|
|
1513
|
+
if (s.isNull) throw new Error();
|
|
1514
|
+
t.Clients = _r(s.asDictionary());
|
|
1515
|
+
break;
|
|
1516
|
+
}
|
|
1514
1517
|
case Ks: {
|
|
1515
1518
|
if (s.isNull) throw new Error();
|
|
1516
|
-
t.
|
|
1519
|
+
t.TrackingStreams = fr(s.asDictionary());
|
|
1517
1520
|
break;
|
|
1518
1521
|
}
|
|
1519
1522
|
case $s: {
|
|
1520
1523
|
if (s.isNull) throw new Error();
|
|
1521
|
-
t.
|
|
1524
|
+
t.ChannelId = s.asString();
|
|
1522
1525
|
break;
|
|
1523
1526
|
}
|
|
1524
1527
|
case js: {
|
|
1525
1528
|
if (s.isNull) throw new Error();
|
|
1526
|
-
t.
|
|
1529
|
+
t.SessionId = s.asString();
|
|
1527
1530
|
break;
|
|
1528
1531
|
}
|
|
1529
1532
|
case Xs: {
|
|
1530
1533
|
if (s.isNull) throw new Error();
|
|
1531
|
-
t.
|
|
1534
|
+
t.ChannelUrl = s.asString();
|
|
1532
1535
|
break;
|
|
1533
1536
|
}
|
|
1534
1537
|
case zs: {
|
|
1535
1538
|
if (s.isNull) throw new Error();
|
|
1536
|
-
t.
|
|
1539
|
+
t.ChannelName = s.asString();
|
|
1537
1540
|
break;
|
|
1538
1541
|
}
|
|
1539
1542
|
case Js: {
|
|
1540
1543
|
if (s.isNull) throw new Error();
|
|
1541
|
-
t.
|
|
1544
|
+
t.PublicAccess = s.asBool();
|
|
1542
1545
|
break;
|
|
1543
1546
|
}
|
|
1544
1547
|
case qs: {
|
|
1545
1548
|
if (s.isNull) throw new Error();
|
|
1546
|
-
t.
|
|
1549
|
+
t.OrganisationName = s.asString();
|
|
1547
1550
|
break;
|
|
1548
1551
|
}
|
|
1549
1552
|
case Qs: {
|
|
1550
1553
|
if (s.isNull) throw new Error();
|
|
1551
|
-
t.
|
|
1554
|
+
t.DebugMode = s.asBool();
|
|
1552
1555
|
break;
|
|
1553
1556
|
}
|
|
1554
1557
|
case Zs: {
|
|
1555
1558
|
if (s.isNull) throw new Error();
|
|
1556
|
-
t.
|
|
1559
|
+
t.RunnerType = s.asString();
|
|
1557
1560
|
break;
|
|
1558
1561
|
}
|
|
1559
1562
|
case tr: {
|
|
1560
1563
|
if (s.isNull) throw new Error();
|
|
1561
|
-
t.
|
|
1564
|
+
t.Functions = dr(s.asDictionary());
|
|
1562
1565
|
break;
|
|
1563
1566
|
}
|
|
1564
1567
|
case er: {
|
|
1565
1568
|
if (s.isNull) throw new Error();
|
|
1566
|
-
t.
|
|
1569
|
+
t.UIStreams = Tr(s.asDictionary());
|
|
1567
1570
|
break;
|
|
1568
1571
|
}
|
|
1569
1572
|
case sr: {
|
|
1570
1573
|
if (s.isNull) throw new Error();
|
|
1571
|
-
t.
|
|
1574
|
+
t.SpaceId = s.asString();
|
|
1572
1575
|
break;
|
|
1573
1576
|
}
|
|
1574
1577
|
case rr: {
|
|
1575
1578
|
if (s.isNull) throw new Error();
|
|
1576
|
-
t.
|
|
1579
|
+
t.PrimaryUserId = s.asString();
|
|
1577
1580
|
break;
|
|
1578
1581
|
}
|
|
1579
1582
|
case ir: {
|
|
1580
1583
|
if (s.isNull) throw new Error();
|
|
1581
|
-
t.
|
|
1584
|
+
t.BootType = s.asString();
|
|
1582
1585
|
break;
|
|
1583
1586
|
}
|
|
1584
1587
|
case nr: {
|
|
1585
1588
|
if (s.isNull) throw new Error();
|
|
1586
|
-
t.
|
|
1589
|
+
t.ChannelInstanceId = s.asString();
|
|
1587
1590
|
break;
|
|
1588
1591
|
}
|
|
1589
1592
|
case or: {
|
|
1590
1593
|
if (s.isNull) throw new Error();
|
|
1591
|
-
t.
|
|
1594
|
+
t.AudioStreams = yr(s.asDictionary());
|
|
1592
1595
|
break;
|
|
1593
1596
|
}
|
|
1594
1597
|
case ar: {
|
|
1595
1598
|
if (s.isNull) throw new Error();
|
|
1596
|
-
t.
|
|
1599
|
+
t.VideoStreams = Sr(s.asDictionary());
|
|
1597
1600
|
break;
|
|
1598
1601
|
}
|
|
1599
1602
|
case lr: {
|
|
1600
|
-
if (s.isNull) throw new Error();
|
|
1601
|
-
t.VideoStreams = Ar(s.asDictionary());
|
|
1602
|
-
break;
|
|
1603
|
-
}
|
|
1604
|
-
case Ir: {
|
|
1605
1603
|
if (s.isNull) throw new Error();
|
|
1606
1604
|
t.SpaceName = s.asString();
|
|
1607
1605
|
break;
|
|
1608
1606
|
}
|
|
1609
1607
|
}
|
|
1610
1608
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const s =
|
|
1613
|
-
return
|
|
1609
|
+
function Er(e, t) {
|
|
1610
|
+
const s = M(e, xs);
|
|
1611
|
+
return hr(s, t);
|
|
1614
1612
|
}
|
|
1615
|
-
function
|
|
1613
|
+
function _r(e) {
|
|
1616
1614
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1617
1615
|
let s;
|
|
1618
1616
|
for (; (s = e.next()) !== null; ) {
|
|
@@ -1621,275 +1619,275 @@ function fr(e) {
|
|
|
1621
1619
|
}
|
|
1622
1620
|
return t;
|
|
1623
1621
|
}
|
|
1624
|
-
function
|
|
1622
|
+
function fr(e) {
|
|
1625
1623
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1626
1624
|
let s;
|
|
1627
1625
|
for (; (s = e.next()) !== null; ) {
|
|
1628
1626
|
const r = s.key.asString();
|
|
1629
|
-
t[r] =
|
|
1627
|
+
t[r] = jr(s.value.asObject());
|
|
1630
1628
|
}
|
|
1631
1629
|
return t;
|
|
1632
1630
|
}
|
|
1633
|
-
function
|
|
1631
|
+
function dr(e) {
|
|
1634
1632
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1635
1633
|
let s;
|
|
1636
1634
|
for (; (s = e.next()) !== null; ) {
|
|
1637
1635
|
const r = s.key.asInt32();
|
|
1638
|
-
t[r] =
|
|
1636
|
+
t[r] = Ar(s.value.asArray());
|
|
1639
1637
|
}
|
|
1640
1638
|
return t;
|
|
1641
1639
|
}
|
|
1642
|
-
function
|
|
1640
|
+
function Tr(e) {
|
|
1643
1641
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1644
1642
|
let s;
|
|
1645
1643
|
for (; (s = e.next()) !== null; ) {
|
|
1646
1644
|
const r = s.key.asString();
|
|
1647
|
-
t[r] =
|
|
1645
|
+
t[r] = Rr(s.value.asObject());
|
|
1648
1646
|
}
|
|
1649
1647
|
return t;
|
|
1650
1648
|
}
|
|
1651
|
-
function
|
|
1649
|
+
function yr(e) {
|
|
1652
1650
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1653
1651
|
let s;
|
|
1654
1652
|
for (; (s = e.next()) !== null; ) {
|
|
1655
1653
|
const r = s.key.asString();
|
|
1656
|
-
t[r] =
|
|
1654
|
+
t[r] = Pr(s.value.asObject());
|
|
1657
1655
|
}
|
|
1658
1656
|
return t;
|
|
1659
1657
|
}
|
|
1660
|
-
function
|
|
1658
|
+
function Sr(e) {
|
|
1661
1659
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1662
1660
|
let s;
|
|
1663
1661
|
for (; (s = e.next()) !== null; ) {
|
|
1664
1662
|
const r = s.key.asString();
|
|
1665
|
-
t[r] =
|
|
1663
|
+
t[r] = Gr(s.value.asObject());
|
|
1666
1664
|
}
|
|
1667
1665
|
return t;
|
|
1668
1666
|
}
|
|
1669
|
-
function
|
|
1667
|
+
function Ar(e) {
|
|
1670
1668
|
const t = [];
|
|
1671
1669
|
let s;
|
|
1672
1670
|
for (; (s = e.next()) !== null; )
|
|
1673
1671
|
t.push(ls(s.asObject()));
|
|
1674
1672
|
return t;
|
|
1675
1673
|
}
|
|
1676
|
-
const
|
|
1677
|
-
function
|
|
1674
|
+
const Nr = 161083277, wr = 325678206, Ur = 3469892363, Cr = 3645544153;
|
|
1675
|
+
function Dr(e) {
|
|
1678
1676
|
const t = {};
|
|
1679
1677
|
return Ot(t), t;
|
|
1680
1678
|
}
|
|
1681
1679
|
function Ot(e) {
|
|
1682
1680
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Rt(), e;
|
|
1683
1681
|
}
|
|
1684
|
-
function
|
|
1685
|
-
const s = t ??
|
|
1686
|
-
return Ot(s),
|
|
1682
|
+
function Rr(e, t) {
|
|
1683
|
+
const s = t ?? Dr();
|
|
1684
|
+
return Ot(s), mr(e, s), s;
|
|
1687
1685
|
}
|
|
1688
|
-
function
|
|
1686
|
+
function mr(e, t) {
|
|
1689
1687
|
let s;
|
|
1690
1688
|
for (; (s = e.next()) !== null; )
|
|
1691
1689
|
switch (s.fieldId) {
|
|
1692
|
-
case
|
|
1690
|
+
case Nr: {
|
|
1693
1691
|
if (s.isNull) throw new Error();
|
|
1694
1692
|
t.StreamId = s.asString();
|
|
1695
1693
|
break;
|
|
1696
1694
|
}
|
|
1697
|
-
case
|
|
1695
|
+
case wr: {
|
|
1698
1696
|
if (s.isNull) throw new Error();
|
|
1699
1697
|
t.ClientSessionId = s.asInt32();
|
|
1700
1698
|
break;
|
|
1701
1699
|
}
|
|
1702
|
-
case
|
|
1700
|
+
case Ur: {
|
|
1703
1701
|
if (s.isNull) throw new Error();
|
|
1704
1702
|
t.TrackId = s.asInt32();
|
|
1705
1703
|
break;
|
|
1706
1704
|
}
|
|
1707
|
-
case
|
|
1705
|
+
case Cr: {
|
|
1708
1706
|
if (s.isNull) throw new Error();
|
|
1709
1707
|
t.Info = ps(s.asObject());
|
|
1710
1708
|
break;
|
|
1711
1709
|
}
|
|
1712
1710
|
}
|
|
1713
1711
|
}
|
|
1714
|
-
const
|
|
1715
|
-
function
|
|
1712
|
+
const Lr = 161083277, gr = 325678206, pr = 3469892363, Or = 3645544153;
|
|
1713
|
+
function br(e) {
|
|
1716
1714
|
const t = {};
|
|
1717
1715
|
return bt(t), t;
|
|
1718
1716
|
}
|
|
1719
1717
|
function bt(e) {
|
|
1720
1718
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = yt(), e;
|
|
1721
1719
|
}
|
|
1722
|
-
function
|
|
1723
|
-
const s = t ??
|
|
1724
|
-
return bt(s),
|
|
1720
|
+
function Pr(e, t) {
|
|
1721
|
+
const s = t ?? br();
|
|
1722
|
+
return bt(s), Fr(e, s), s;
|
|
1725
1723
|
}
|
|
1726
|
-
function
|
|
1724
|
+
function Fr(e, t) {
|
|
1727
1725
|
let s;
|
|
1728
1726
|
for (; (s = e.next()) !== null; )
|
|
1729
1727
|
switch (s.fieldId) {
|
|
1730
|
-
case
|
|
1728
|
+
case Lr: {
|
|
1731
1729
|
if (s.isNull) throw new Error();
|
|
1732
1730
|
t.StreamId = s.asString();
|
|
1733
1731
|
break;
|
|
1734
1732
|
}
|
|
1735
|
-
case
|
|
1733
|
+
case gr: {
|
|
1736
1734
|
if (s.isNull) throw new Error();
|
|
1737
1735
|
t.ClientSessionId = s.asInt32();
|
|
1738
1736
|
break;
|
|
1739
1737
|
}
|
|
1740
|
-
case
|
|
1738
|
+
case pr: {
|
|
1741
1739
|
if (s.isNull) throw new Error();
|
|
1742
1740
|
t.TrackId = s.asInt32();
|
|
1743
1741
|
break;
|
|
1744
1742
|
}
|
|
1745
|
-
case
|
|
1743
|
+
case Or: {
|
|
1746
1744
|
if (s.isNull) throw new Error();
|
|
1747
1745
|
t.Info = ue(s.asObject());
|
|
1748
1746
|
break;
|
|
1749
1747
|
}
|
|
1750
1748
|
}
|
|
1751
1749
|
}
|
|
1752
|
-
const
|
|
1753
|
-
function
|
|
1750
|
+
const kr = 161083277, vr = 325678206, Vr = 3469892363, Mr = 3645544153;
|
|
1751
|
+
function Br(e) {
|
|
1754
1752
|
const t = {};
|
|
1755
1753
|
return Pt(t), t;
|
|
1756
1754
|
}
|
|
1757
1755
|
function Pt(e) {
|
|
1758
1756
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Lt(), e;
|
|
1759
1757
|
}
|
|
1760
|
-
function
|
|
1761
|
-
const s = t ??
|
|
1762
|
-
return Pt(s),
|
|
1758
|
+
function Gr(e, t) {
|
|
1759
|
+
const s = t ?? Br();
|
|
1760
|
+
return Pt(s), xr(e, s), s;
|
|
1763
1761
|
}
|
|
1764
|
-
function
|
|
1762
|
+
function xr(e, t) {
|
|
1765
1763
|
let s;
|
|
1766
1764
|
for (; (s = e.next()) !== null; )
|
|
1767
1765
|
switch (s.fieldId) {
|
|
1768
|
-
case
|
|
1766
|
+
case kr: {
|
|
1769
1767
|
if (s.isNull) throw new Error();
|
|
1770
1768
|
t.StreamId = s.asString();
|
|
1771
1769
|
break;
|
|
1772
1770
|
}
|
|
1773
|
-
case
|
|
1771
|
+
case vr: {
|
|
1774
1772
|
if (s.isNull) throw new Error();
|
|
1775
1773
|
t.ClientSessionId = s.asInt32();
|
|
1776
1774
|
break;
|
|
1777
1775
|
}
|
|
1778
|
-
case
|
|
1776
|
+
case Vr: {
|
|
1779
1777
|
if (s.isNull) throw new Error();
|
|
1780
1778
|
t.TrackId = s.asInt32();
|
|
1781
1779
|
break;
|
|
1782
1780
|
}
|
|
1783
1781
|
case Mr: {
|
|
1784
1782
|
if (s.isNull) throw new Error();
|
|
1785
|
-
t.Info =
|
|
1783
|
+
t.Info = Bs(s.asObject());
|
|
1786
1784
|
break;
|
|
1787
1785
|
}
|
|
1788
1786
|
}
|
|
1789
1787
|
}
|
|
1790
|
-
const
|
|
1791
|
-
function
|
|
1788
|
+
const Hr = 161083277, Yr = 325678206, Wr = 3469892363, Kr = 3645544153;
|
|
1789
|
+
function $r(e) {
|
|
1792
1790
|
const t = {};
|
|
1793
1791
|
return Ft(t), t;
|
|
1794
1792
|
}
|
|
1795
1793
|
function Ft(e) {
|
|
1796
1794
|
return e.StreamId = "", e.ClientSessionId = 0, e.TrackId = 0, e.Info = Ct(), e;
|
|
1797
1795
|
}
|
|
1798
|
-
function
|
|
1799
|
-
const s = t ??
|
|
1800
|
-
return Ft(s),
|
|
1796
|
+
function jr(e, t) {
|
|
1797
|
+
const s = t ?? $r();
|
|
1798
|
+
return Ft(s), Xr(e, s), s;
|
|
1801
1799
|
}
|
|
1802
|
-
function
|
|
1800
|
+
function Xr(e, t) {
|
|
1803
1801
|
let s;
|
|
1804
1802
|
for (; (s = e.next()) !== null; )
|
|
1805
1803
|
switch (s.fieldId) {
|
|
1806
|
-
case
|
|
1804
|
+
case Hr: {
|
|
1807
1805
|
if (s.isNull) throw new Error();
|
|
1808
1806
|
t.StreamId = s.asString();
|
|
1809
1807
|
break;
|
|
1810
1808
|
}
|
|
1811
|
-
case
|
|
1809
|
+
case Yr: {
|
|
1812
1810
|
if (s.isNull) throw new Error();
|
|
1813
1811
|
t.ClientSessionId = s.asInt32();
|
|
1814
1812
|
break;
|
|
1815
1813
|
}
|
|
1816
|
-
case
|
|
1814
|
+
case Wr: {
|
|
1817
1815
|
if (s.isNull) throw new Error();
|
|
1818
1816
|
t.TrackId = s.asInt32();
|
|
1819
1817
|
break;
|
|
1820
1818
|
}
|
|
1821
|
-
case
|
|
1819
|
+
case Kr: {
|
|
1822
1820
|
if (s.isNull) throw new Error();
|
|
1823
1821
|
t.Info = Rs(s.asObject());
|
|
1824
1822
|
break;
|
|
1825
1823
|
}
|
|
1826
1824
|
}
|
|
1827
1825
|
}
|
|
1828
|
-
const
|
|
1829
|
-
function
|
|
1826
|
+
const zr = 1405462580, Jr = 2968276160;
|
|
1827
|
+
function qr(e) {
|
|
1830
1828
|
const t = {};
|
|
1831
1829
|
return kt(t), t;
|
|
1832
1830
|
}
|
|
1833
1831
|
function kt(e) {
|
|
1834
1832
|
return e.MimeType = "", e.Value = new Uint8Array(0), e;
|
|
1835
1833
|
}
|
|
1836
|
-
function
|
|
1837
|
-
const s = t ??
|
|
1838
|
-
return kt(s),
|
|
1834
|
+
function Qr(e, t) {
|
|
1835
|
+
const s = t ?? qr();
|
|
1836
|
+
return kt(s), Zr(e, s), s;
|
|
1839
1837
|
}
|
|
1840
|
-
function
|
|
1838
|
+
function Zr(e, t) {
|
|
1841
1839
|
let s;
|
|
1842
1840
|
for (; (s = e.next()) !== null; )
|
|
1843
1841
|
switch (s.fieldId) {
|
|
1844
|
-
case
|
|
1842
|
+
case zr: {
|
|
1845
1843
|
if (s.isNull) throw new Error();
|
|
1846
1844
|
t.Value = s.asBinary();
|
|
1847
1845
|
break;
|
|
1848
1846
|
}
|
|
1849
|
-
case
|
|
1847
|
+
case Jr: {
|
|
1850
1848
|
if (s.isNull) throw new Error();
|
|
1851
1849
|
t.MimeType = s.asString();
|
|
1852
1850
|
break;
|
|
1853
1851
|
}
|
|
1854
1852
|
}
|
|
1855
1853
|
}
|
|
1856
|
-
const
|
|
1857
|
-
function
|
|
1854
|
+
const ti = 2097188, ei = 979822885, si = 2374537704;
|
|
1855
|
+
function ri(e) {
|
|
1858
1856
|
const t = {};
|
|
1859
1857
|
return vt(t), t;
|
|
1860
1858
|
}
|
|
1861
1859
|
function vt(e) {
|
|
1862
1860
|
return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
|
|
1863
1861
|
}
|
|
1864
|
-
function
|
|
1862
|
+
function ii(e, t) {
|
|
1865
1863
|
const s = p.create(e);
|
|
1866
|
-
return
|
|
1864
|
+
return ni(s, t);
|
|
1867
1865
|
}
|
|
1868
|
-
function
|
|
1869
|
-
const s = t ??
|
|
1870
|
-
return vt(s),
|
|
1866
|
+
function ni(e, t) {
|
|
1867
|
+
const s = t ?? ri();
|
|
1868
|
+
return vt(s), oi(e, s), s;
|
|
1871
1869
|
}
|
|
1872
|
-
function
|
|
1870
|
+
function oi(e, t) {
|
|
1873
1871
|
let s;
|
|
1874
1872
|
for (; (s = e.next()) !== null; )
|
|
1875
1873
|
switch (s.fieldId) {
|
|
1876
|
-
case
|
|
1874
|
+
case ei: {
|
|
1877
1875
|
if (s.isNull) throw new Error();
|
|
1878
1876
|
t.StyleId = s.asString();
|
|
1879
1877
|
break;
|
|
1880
1878
|
}
|
|
1881
|
-
case
|
|
1879
|
+
case si: {
|
|
1882
1880
|
if (s.isNull) throw new Error();
|
|
1883
|
-
t.Style =
|
|
1881
|
+
t.Style = li(s.asDictionary());
|
|
1884
1882
|
break;
|
|
1885
1883
|
}
|
|
1886
1884
|
}
|
|
1887
1885
|
}
|
|
1888
|
-
function
|
|
1889
|
-
const s =
|
|
1890
|
-
return
|
|
1886
|
+
function ai(e, t) {
|
|
1887
|
+
const s = M(e, ti);
|
|
1888
|
+
return ii(s, t);
|
|
1891
1889
|
}
|
|
1892
|
-
function
|
|
1890
|
+
function li(e) {
|
|
1893
1891
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1894
1892
|
let s;
|
|
1895
1893
|
for (; (s = e.next()) !== null; ) {
|
|
@@ -1898,73 +1896,73 @@ function hi(e) {
|
|
|
1898
1896
|
}
|
|
1899
1897
|
return t;
|
|
1900
1898
|
}
|
|
1901
|
-
const
|
|
1902
|
-
function
|
|
1899
|
+
const Ii = 2097192, hi = 2136687806;
|
|
1900
|
+
function ci(e) {
|
|
1903
1901
|
const t = {};
|
|
1904
1902
|
return Vt(t), t;
|
|
1905
1903
|
}
|
|
1906
1904
|
function Vt(e) {
|
|
1907
1905
|
return e.Styles = [], e;
|
|
1908
1906
|
}
|
|
1909
|
-
function
|
|
1907
|
+
function ui(e, t) {
|
|
1910
1908
|
const s = p.create(e);
|
|
1911
|
-
return
|
|
1909
|
+
return Ei(s, t);
|
|
1912
1910
|
}
|
|
1913
|
-
function
|
|
1914
|
-
const s = t ??
|
|
1915
|
-
return Vt(s),
|
|
1911
|
+
function Ei(e, t) {
|
|
1912
|
+
const s = t ?? ci();
|
|
1913
|
+
return Vt(s), _i(e, s), s;
|
|
1916
1914
|
}
|
|
1917
|
-
function
|
|
1915
|
+
function _i(e, t) {
|
|
1918
1916
|
let s;
|
|
1919
1917
|
for (; (s = e.next()) !== null; )
|
|
1920
1918
|
switch (s.fieldId) {
|
|
1921
|
-
case
|
|
1919
|
+
case hi: {
|
|
1922
1920
|
if (s.isNull) throw new Error();
|
|
1923
|
-
t.Styles =
|
|
1921
|
+
t.Styles = di(s.asArray());
|
|
1924
1922
|
break;
|
|
1925
1923
|
}
|
|
1926
1924
|
}
|
|
1927
1925
|
}
|
|
1928
|
-
function
|
|
1929
|
-
const s =
|
|
1930
|
-
return
|
|
1926
|
+
function fi(e, t) {
|
|
1927
|
+
const s = M(e, Ii);
|
|
1928
|
+
return ui(s, t);
|
|
1931
1929
|
}
|
|
1932
|
-
function
|
|
1930
|
+
function di(e) {
|
|
1933
1931
|
const t = [];
|
|
1934
1932
|
let s;
|
|
1935
1933
|
for (; (s = e.next()) !== null; )
|
|
1936
|
-
t.push(
|
|
1934
|
+
t.push(Ai(s.asObject()));
|
|
1937
1935
|
return t;
|
|
1938
1936
|
}
|
|
1939
|
-
const
|
|
1940
|
-
function
|
|
1937
|
+
const Ti = 979822885, yi = 2374537704;
|
|
1938
|
+
function Si(e) {
|
|
1941
1939
|
const t = {};
|
|
1942
|
-
return
|
|
1940
|
+
return Mt(t), t;
|
|
1943
1941
|
}
|
|
1944
|
-
function
|
|
1942
|
+
function Mt(e) {
|
|
1945
1943
|
return e.StyleId = "", e.Style = /* @__PURE__ */ Object.create(null), e;
|
|
1946
1944
|
}
|
|
1947
|
-
function
|
|
1948
|
-
const s = t ??
|
|
1949
|
-
return
|
|
1945
|
+
function Ai(e, t) {
|
|
1946
|
+
const s = t ?? Si();
|
|
1947
|
+
return Mt(s), Ni(e, s), s;
|
|
1950
1948
|
}
|
|
1951
|
-
function
|
|
1949
|
+
function Ni(e, t) {
|
|
1952
1950
|
let s;
|
|
1953
1951
|
for (; (s = e.next()) !== null; )
|
|
1954
1952
|
switch (s.fieldId) {
|
|
1955
|
-
case
|
|
1953
|
+
case Ti: {
|
|
1956
1954
|
if (s.isNull) throw new Error();
|
|
1957
1955
|
t.StyleId = s.asString();
|
|
1958
1956
|
break;
|
|
1959
1957
|
}
|
|
1960
|
-
case
|
|
1958
|
+
case yi: {
|
|
1961
1959
|
if (s.isNull) throw new Error();
|
|
1962
|
-
t.Style =
|
|
1960
|
+
t.Style = wi(s.asDictionary());
|
|
1963
1961
|
break;
|
|
1964
1962
|
}
|
|
1965
1963
|
}
|
|
1966
1964
|
}
|
|
1967
|
-
function
|
|
1965
|
+
function wi(e) {
|
|
1968
1966
|
const t = /* @__PURE__ */ Object.create(null);
|
|
1969
1967
|
let s;
|
|
1970
1968
|
for (; (s = e.next()) !== null; ) {
|
|
@@ -1973,100 +1971,100 @@ function Di(e) {
|
|
|
1973
1971
|
}
|
|
1974
1972
|
return t;
|
|
1975
1973
|
}
|
|
1976
|
-
const
|
|
1977
|
-
function
|
|
1974
|
+
const Ui = 2097193, Ci = 1415642792;
|
|
1975
|
+
function Di(e) {
|
|
1978
1976
|
const t = {};
|
|
1979
|
-
return
|
|
1977
|
+
return Bt(t), t;
|
|
1980
1978
|
}
|
|
1981
|
-
function
|
|
1979
|
+
function Bt(e) {
|
|
1982
1980
|
return e.StyleIds = [], e;
|
|
1983
1981
|
}
|
|
1984
|
-
function
|
|
1982
|
+
function Ri(e, t) {
|
|
1985
1983
|
const s = p.create(e);
|
|
1986
|
-
return
|
|
1984
|
+
return mi(s, t);
|
|
1987
1985
|
}
|
|
1988
|
-
function
|
|
1989
|
-
const s = t ??
|
|
1990
|
-
return
|
|
1986
|
+
function mi(e, t) {
|
|
1987
|
+
const s = t ?? Di();
|
|
1988
|
+
return Bt(s), Li(e, s), s;
|
|
1991
1989
|
}
|
|
1992
|
-
function
|
|
1990
|
+
function Li(e, t) {
|
|
1993
1991
|
let s;
|
|
1994
1992
|
for (; (s = e.next()) !== null; )
|
|
1995
1993
|
switch (s.fieldId) {
|
|
1996
|
-
case
|
|
1994
|
+
case Ci: {
|
|
1997
1995
|
if (s.isNull) throw new Error();
|
|
1998
|
-
t.StyleIds =
|
|
1996
|
+
t.StyleIds = pi(s.asArray());
|
|
1999
1997
|
break;
|
|
2000
1998
|
}
|
|
2001
1999
|
}
|
|
2002
2000
|
}
|
|
2003
|
-
function
|
|
2004
|
-
const s =
|
|
2005
|
-
return
|
|
2001
|
+
function gi(e, t) {
|
|
2002
|
+
const s = M(e, Ui);
|
|
2003
|
+
return Ri(s, t);
|
|
2006
2004
|
}
|
|
2007
|
-
function
|
|
2005
|
+
function pi(e) {
|
|
2008
2006
|
const t = [];
|
|
2009
2007
|
let s;
|
|
2010
2008
|
for (; (s = e.next()) !== null; )
|
|
2011
2009
|
t.push(s.asString());
|
|
2012
2010
|
return t;
|
|
2013
2011
|
}
|
|
2014
|
-
const
|
|
2015
|
-
function
|
|
2012
|
+
const Oi = 2097190, bi = 425183262, Pi = 653781469;
|
|
2013
|
+
function Fi(e) {
|
|
2016
2014
|
const t = {};
|
|
2017
2015
|
return Gt(t), t;
|
|
2018
2016
|
}
|
|
2019
2017
|
function Gt(e) {
|
|
2020
2018
|
return e.Json = "", e.Payloads = /* @__PURE__ */ Object.create(null), e;
|
|
2021
2019
|
}
|
|
2022
|
-
function
|
|
2020
|
+
function ki(e, t) {
|
|
2023
2021
|
const s = p.create(e);
|
|
2024
|
-
return
|
|
2022
|
+
return vi(s, t);
|
|
2025
2023
|
}
|
|
2026
|
-
function
|
|
2027
|
-
const s = t ??
|
|
2028
|
-
return Gt(s),
|
|
2024
|
+
function vi(e, t) {
|
|
2025
|
+
const s = t ?? Fi();
|
|
2026
|
+
return Gt(s), Vi(e, s), s;
|
|
2029
2027
|
}
|
|
2030
|
-
function
|
|
2028
|
+
function Vi(e, t) {
|
|
2031
2029
|
let s;
|
|
2032
2030
|
for (; (s = e.next()) !== null; )
|
|
2033
2031
|
switch (s.fieldId) {
|
|
2034
|
-
case
|
|
2032
|
+
case bi: {
|
|
2035
2033
|
if (s.isNull) throw new Error();
|
|
2036
2034
|
t.Json = s.asString();
|
|
2037
2035
|
break;
|
|
2038
2036
|
}
|
|
2039
|
-
case
|
|
2037
|
+
case Pi: {
|
|
2040
2038
|
if (s.isNull) throw new Error();
|
|
2041
|
-
t.Payloads =
|
|
2039
|
+
t.Payloads = Bi(s.asDictionary());
|
|
2042
2040
|
break;
|
|
2043
2041
|
}
|
|
2044
2042
|
}
|
|
2045
2043
|
}
|
|
2046
|
-
function
|
|
2047
|
-
const s =
|
|
2048
|
-
return
|
|
2044
|
+
function Mi(e, t) {
|
|
2045
|
+
const s = M(e, Oi);
|
|
2046
|
+
return ki(s, t);
|
|
2049
2047
|
}
|
|
2050
|
-
function
|
|
2048
|
+
function Bi(e) {
|
|
2051
2049
|
const t = /* @__PURE__ */ Object.create(null);
|
|
2052
2050
|
let s;
|
|
2053
2051
|
for (; (s = e.next()) !== null; ) {
|
|
2054
2052
|
const r = s.key.asString();
|
|
2055
|
-
t[r] =
|
|
2053
|
+
t[r] = Qr(s.value.asObject());
|
|
2056
2054
|
}
|
|
2057
2055
|
return t;
|
|
2058
2056
|
}
|
|
2059
|
-
const xt = 1,
|
|
2060
|
-
function
|
|
2061
|
-
const t = new
|
|
2062
|
-
return
|
|
2057
|
+
const xt = 1, Gi = 1048636, xi = 2610786289;
|
|
2058
|
+
function Hi(e) {
|
|
2059
|
+
const t = new B(xt);
|
|
2060
|
+
return Yi(e, t), t.finish();
|
|
2063
2061
|
}
|
|
2064
|
-
function
|
|
2065
|
-
t.writeUInt32Field(
|
|
2062
|
+
function Yi(e, t) {
|
|
2063
|
+
t.writeUInt32Field(xi, e.Version >>> 0);
|
|
2066
2064
|
}
|
|
2067
|
-
function
|
|
2068
|
-
const r =
|
|
2069
|
-
return Qt(
|
|
2065
|
+
function Wi(e, t, s) {
|
|
2066
|
+
const r = Hi(e);
|
|
2067
|
+
return Qt(Gi, r, xt, t, s);
|
|
2070
2068
|
}
|
|
2071
2069
|
function w(e) {
|
|
2072
2070
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
@@ -2124,7 +2122,7 @@ function it(e, t) {
|
|
|
2124
2122
|
styleIds: u ?? []
|
|
2125
2123
|
};
|
|
2126
2124
|
}
|
|
2127
|
-
function
|
|
2125
|
+
function Ki(e, t) {
|
|
2128
2126
|
if (!w(e))
|
|
2129
2127
|
throw new Error(`Invalid text delta at ${t}`);
|
|
2130
2128
|
const s = e.NodeId, r = e.PropertyName, i = e.Start, n = e.End, o = e.InsertedText;
|
|
@@ -2151,7 +2149,7 @@ function Ji(e, t) {
|
|
|
2151
2149
|
insertedText: o
|
|
2152
2150
|
};
|
|
2153
2151
|
}
|
|
2154
|
-
function
|
|
2152
|
+
function $i(e, t) {
|
|
2155
2153
|
if (!w(e))
|
|
2156
2154
|
throw new Error(`Invalid child insert at ${t}`);
|
|
2157
2155
|
const s = e.Index, r = e.Node;
|
|
@@ -2164,7 +2162,7 @@ function qi(e, t) {
|
|
|
2164
2162
|
node: it(r, `${t}.node`)
|
|
2165
2163
|
};
|
|
2166
2164
|
}
|
|
2167
|
-
function
|
|
2165
|
+
function ji(e, t) {
|
|
2168
2166
|
if (!w(e))
|
|
2169
2167
|
throw new Error(`Invalid child move at ${t}`);
|
|
2170
2168
|
const s = e.NodeId, r = e.FromIndex, i = e.ToIndex;
|
|
@@ -2180,7 +2178,7 @@ function Qi(e, t) {
|
|
|
2180
2178
|
toIndex: i
|
|
2181
2179
|
};
|
|
2182
2180
|
}
|
|
2183
|
-
function
|
|
2181
|
+
function Xi(e, t) {
|
|
2184
2182
|
if (!w(e))
|
|
2185
2183
|
throw new Error(`Invalid child remove at ${t}`);
|
|
2186
2184
|
const s = e.NodeId, r = e.Index;
|
|
@@ -2193,18 +2191,18 @@ function Zi(e, t) {
|
|
|
2193
2191
|
index: r
|
|
2194
2192
|
};
|
|
2195
2193
|
}
|
|
2196
|
-
function
|
|
2194
|
+
function zi(e, t) {
|
|
2197
2195
|
if (!w(e))
|
|
2198
2196
|
throw new Error(`Invalid node change at ${t}`);
|
|
2199
2197
|
const s = e.nodeId;
|
|
2200
2198
|
if (typeof s != "string" || s.length === 0)
|
|
2201
2199
|
throw new Error(`Invalid node change nodeId at ${t}`);
|
|
2202
2200
|
const r = Array.isArray(e.inserts) ? e.inserts.map(
|
|
2203
|
-
(I, c) =>
|
|
2201
|
+
(I, c) => $i(I ?? {}, `${t}.inserts[${c}]`)
|
|
2204
2202
|
) : void 0, i = Array.isArray(e.moves) ? e.moves.map(
|
|
2205
|
-
(I, c) =>
|
|
2203
|
+
(I, c) => ji(I ?? {}, `${t}.moves[${c}]`)
|
|
2206
2204
|
) : void 0, n = Array.isArray(e.removals) ? e.removals.map(
|
|
2207
|
-
(I, c) =>
|
|
2205
|
+
(I, c) => Xi(I ?? {}, `${t}.removals[${c}]`)
|
|
2208
2206
|
) : void 0;
|
|
2209
2207
|
let o;
|
|
2210
2208
|
if (w(e.changedProps)) {
|
|
@@ -2217,7 +2215,7 @@ function tn(e, t) {
|
|
|
2217
2215
|
}
|
|
2218
2216
|
}
|
|
2219
2217
|
const a = Array.isArray(e.textUpdates) ? e.textUpdates.map(
|
|
2220
|
-
(I, c) =>
|
|
2218
|
+
(I, c) => Ki(I ?? {}, `${t}.textUpdates[${c}]`)
|
|
2221
2219
|
) : void 0, l = e.styleIds, u = l !== void 0 ? Yt(l, t, s, !0) : void 0;
|
|
2222
2220
|
return {
|
|
2223
2221
|
nodeId: s,
|
|
@@ -2229,19 +2227,19 @@ function tn(e, t) {
|
|
|
2229
2227
|
...u !== void 0 ? { styleIds: u } : {}
|
|
2230
2228
|
};
|
|
2231
2229
|
}
|
|
2232
|
-
function
|
|
2230
|
+
function Ji(e) {
|
|
2233
2231
|
const t = /* @__PURE__ */ new Map();
|
|
2234
2232
|
for (const [s, r] of Object.entries(e))
|
|
2235
2233
|
t.set(s, r);
|
|
2236
2234
|
return t;
|
|
2237
2235
|
}
|
|
2238
|
-
function
|
|
2236
|
+
function qi(e, t, s) {
|
|
2239
2237
|
if (!e || typeof e != "object")
|
|
2240
2238
|
throw new D("UI update graph is missing");
|
|
2241
2239
|
const r = it(e, "graph");
|
|
2242
2240
|
if (r.type !== "root")
|
|
2243
2241
|
throw new D('UI update root element must have type "root"');
|
|
2244
|
-
const i =
|
|
2242
|
+
const i = Zi(r.props, t);
|
|
2245
2243
|
return {
|
|
2246
2244
|
type: "full",
|
|
2247
2245
|
version: s,
|
|
@@ -2249,7 +2247,7 @@ function sn(e, t, s) {
|
|
|
2249
2247
|
metadata: i
|
|
2250
2248
|
};
|
|
2251
2249
|
}
|
|
2252
|
-
function
|
|
2250
|
+
function Qi(e, t, s) {
|
|
2253
2251
|
if (!Array.isArray(e))
|
|
2254
2252
|
throw new D("UI diff changes must be an array");
|
|
2255
2253
|
if (!w(t))
|
|
@@ -2258,7 +2256,7 @@ function rn(e, t, s) {
|
|
|
2258
2256
|
if (typeof r != "string" || r.length === 0)
|
|
2259
2257
|
throw new D("UI diff metadata is missing viewId");
|
|
2260
2258
|
const i = e.map(
|
|
2261
|
-
(c, h) =>
|
|
2259
|
+
(c, h) => zi(c ?? {}, `changes[${h}]`)
|
|
2262
2260
|
), n = t.optimisticActionId === null || typeof t.optimisticActionId == "string" ? t.optimisticActionId : void 0, o = typeof t.isOptimistic == "boolean" ? t.isOptimistic : void 0, a = typeof t.isUpdate == "boolean" ? t.isUpdate : void 0, l = z(t.optimisticPatch), u = J(t.optimisticReconcile), I = {
|
|
2263
2261
|
viewId: r,
|
|
2264
2262
|
...n !== void 0 ? { optimisticActionId: n } : {},
|
|
@@ -2274,7 +2272,7 @@ function rn(e, t, s) {
|
|
|
2274
2272
|
metadata: I
|
|
2275
2273
|
};
|
|
2276
2274
|
}
|
|
2277
|
-
function
|
|
2275
|
+
function Zi(e, t) {
|
|
2278
2276
|
const s = e.viewId;
|
|
2279
2277
|
if (typeof s != "string" || s.length === 0)
|
|
2280
2278
|
throw new D("UI update root is missing viewId");
|
|
@@ -2332,7 +2330,7 @@ class D extends Error {
|
|
|
2332
2330
|
super(t), this.causeError = s, this.name = "UiUpdateParseError", s instanceof Error && (this.stack = s.stack);
|
|
2333
2331
|
}
|
|
2334
2332
|
}
|
|
2335
|
-
function
|
|
2333
|
+
function tn(e) {
|
|
2336
2334
|
let t;
|
|
2337
2335
|
try {
|
|
2338
2336
|
t = JSON.parse(e.Json);
|
|
@@ -2346,13 +2344,13 @@ function on(e) {
|
|
|
2346
2344
|
throw new D(`Unknown UI update type: ${String(s)}`);
|
|
2347
2345
|
if (typeof r != "number")
|
|
2348
2346
|
throw new D("UI update version must be a number");
|
|
2349
|
-
const i = s === "full" ?
|
|
2347
|
+
const i = s === "full" ? qi(t.graph, t.metadata, r) : Qi(t.changes, t.metadata, r), n = e.Payloads ? Ji(e.Payloads) : /* @__PURE__ */ new Map();
|
|
2350
2348
|
return {
|
|
2351
2349
|
snapshot: i,
|
|
2352
2350
|
payloads: n
|
|
2353
2351
|
};
|
|
2354
2352
|
}
|
|
2355
|
-
class
|
|
2353
|
+
class en {
|
|
2356
2354
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2357
2355
|
cache = /* @__PURE__ */ new Map();
|
|
2358
2356
|
/**
|
|
@@ -2433,7 +2431,7 @@ class an {
|
|
|
2433
2431
|
return this.cache.size;
|
|
2434
2432
|
}
|
|
2435
2433
|
}
|
|
2436
|
-
class
|
|
2434
|
+
class sn {
|
|
2437
2435
|
views = /* @__PURE__ */ new Map();
|
|
2438
2436
|
listeners = /* @__PURE__ */ new Set();
|
|
2439
2437
|
payloads = /* @__PURE__ */ new Map();
|
|
@@ -2455,7 +2453,7 @@ class ln {
|
|
|
2455
2453
|
patchesDirty = !0;
|
|
2456
2454
|
payloadsDirty = !0;
|
|
2457
2455
|
// Handler cache for stable event handlers
|
|
2458
|
-
handlerCache = new
|
|
2456
|
+
handlerCache = new en();
|
|
2459
2457
|
getSortedPatches(t) {
|
|
2460
2458
|
const s = this.buildPatchCacheKey(t.patches);
|
|
2461
2459
|
if (t.sortedPatchesCacheKey === s && t.sortedPatchesCache)
|
|
@@ -2574,7 +2572,7 @@ class ln {
|
|
|
2574
2572
|
if (t.upsertOptimisticPatches && t.upsertOptimisticPatches.length > 0)
|
|
2575
2573
|
for (const [h, E] of t.upsertOptimisticPatches) {
|
|
2576
2574
|
const _ = u(), y = _.get(h);
|
|
2577
|
-
|
|
2575
|
+
an(y, E) || (_.set(h, E), r = !0);
|
|
2578
2576
|
}
|
|
2579
2577
|
const I = t.rootViewId ?? this.snapshot.rootViewId;
|
|
2580
2578
|
I !== this.snapshot.rootViewId && (r = !0, this.structureChanged = !0);
|
|
@@ -2701,7 +2699,7 @@ class ln {
|
|
|
2701
2699
|
}
|
|
2702
2700
|
}
|
|
2703
2701
|
}
|
|
2704
|
-
class
|
|
2702
|
+
class rn {
|
|
2705
2703
|
streams = /* @__PURE__ */ new Map();
|
|
2706
2704
|
listeners = /* @__PURE__ */ new Set();
|
|
2707
2705
|
apply(t, s) {
|
|
@@ -2765,7 +2763,7 @@ class In {
|
|
|
2765
2763
|
}
|
|
2766
2764
|
getOrCreateStreamEntry(t) {
|
|
2767
2765
|
let s = this.streams.get(t);
|
|
2768
|
-
return s || (s = { store: new
|
|
2766
|
+
return s || (s = { store: new sn() }, this.streams.set(t, s)), s;
|
|
2769
2767
|
}
|
|
2770
2768
|
notify(t) {
|
|
2771
2769
|
for (const s of this.listeners)
|
|
@@ -2784,7 +2782,7 @@ function Wt(e, t, s) {
|
|
|
2784
2782
|
const r = t.get(e.id);
|
|
2785
2783
|
let i = e, n = !1;
|
|
2786
2784
|
if (r?.textUpdates && r.textUpdates.length > 0) {
|
|
2787
|
-
const f =
|
|
2785
|
+
const f = In(e, r.textUpdates);
|
|
2788
2786
|
i = f.node, n = f.changed;
|
|
2789
2787
|
}
|
|
2790
2788
|
let o = !1, a = i.props;
|
|
@@ -2855,7 +2853,7 @@ function b(e, t) {
|
|
|
2855
2853
|
b(s, t);
|
|
2856
2854
|
}
|
|
2857
2855
|
const x = [];
|
|
2858
|
-
function
|
|
2856
|
+
function nn(e) {
|
|
2859
2857
|
for (; x.length <= e; )
|
|
2860
2858
|
x.push(/* @__PURE__ */ new Map());
|
|
2861
2859
|
return x[e].clear(), x[e];
|
|
@@ -2866,10 +2864,10 @@ function H(e, t, s) {
|
|
|
2866
2864
|
function Kt(e, t, s, r) {
|
|
2867
2865
|
if (e === t)
|
|
2868
2866
|
return;
|
|
2869
|
-
(e.type !== t.type || !
|
|
2867
|
+
(e.type !== t.type || !on(e.props, t.props) || !jt(e.styleIds, t.styleIds)) && s.add(t.id);
|
|
2870
2868
|
const n = e.children ?? [], o = t.children ?? [];
|
|
2871
2869
|
if (n !== o) {
|
|
2872
|
-
const a =
|
|
2870
|
+
const a = nn(r);
|
|
2873
2871
|
for (const l of n)
|
|
2874
2872
|
a.set(l.id, l);
|
|
2875
2873
|
for (const l of o) {
|
|
@@ -2879,7 +2877,7 @@ function Kt(e, t, s, r) {
|
|
|
2879
2877
|
n.length !== o.length && s.add(t.id);
|
|
2880
2878
|
}
|
|
2881
2879
|
}
|
|
2882
|
-
function
|
|
2880
|
+
function on(e, t) {
|
|
2883
2881
|
return k(e, t);
|
|
2884
2882
|
}
|
|
2885
2883
|
function $t(e, t) {
|
|
@@ -2895,7 +2893,7 @@ function $t(e, t) {
|
|
|
2895
2893
|
function jt(e, t) {
|
|
2896
2894
|
return k(e, t);
|
|
2897
2895
|
}
|
|
2898
|
-
function
|
|
2896
|
+
function an(e, t) {
|
|
2899
2897
|
if (e === t) return !0;
|
|
2900
2898
|
if (!e || !t || e.length !== t.length) return !1;
|
|
2901
2899
|
for (let s = 0; s < e.length; s++) {
|
|
@@ -2905,7 +2903,7 @@ function un(e, t) {
|
|
|
2905
2903
|
}
|
|
2906
2904
|
return !0;
|
|
2907
2905
|
}
|
|
2908
|
-
function
|
|
2906
|
+
function ln(e, t) {
|
|
2909
2907
|
if (t.length === 0)
|
|
2910
2908
|
return e;
|
|
2911
2909
|
const s = [...t].sort((n, o) => n.start - o.start);
|
|
@@ -2913,7 +2911,7 @@ function En(e, t) {
|
|
|
2913
2911
|
for (const n of s) {
|
|
2914
2912
|
const o = at(n.start + i, 0, r.length);
|
|
2915
2913
|
if (n.end == null) {
|
|
2916
|
-
const I = r.slice(o), c =
|
|
2914
|
+
const I = r.slice(o), c = hn(I, n.insertedText);
|
|
2917
2915
|
r = r.slice(0, o) + n.insertedText + I.slice(c), i += n.insertedText.length - c;
|
|
2918
2916
|
continue;
|
|
2919
2917
|
}
|
|
@@ -2922,7 +2920,7 @@ function En(e, t) {
|
|
|
2922
2920
|
}
|
|
2923
2921
|
return r;
|
|
2924
2922
|
}
|
|
2925
|
-
function
|
|
2923
|
+
function In(e, t, s) {
|
|
2926
2924
|
if (t.length === 0)
|
|
2927
2925
|
return { node: e, changed: !1 };
|
|
2928
2926
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -2942,7 +2940,7 @@ function Xt(e, t, s) {
|
|
|
2942
2940
|
c ? c.push(I) : u.set(I.propertyName, [I]);
|
|
2943
2941
|
}
|
|
2944
2942
|
for (const [I, c] of u.entries()) {
|
|
2945
|
-
const h = n[I], _ =
|
|
2943
|
+
const h = n[I], _ = ln(typeof h == "string" ? h : "", c);
|
|
2946
2944
|
i || (n = V(n), i = !0), n[I] = _;
|
|
2947
2945
|
}
|
|
2948
2946
|
}
|
|
@@ -2971,7 +2969,7 @@ function Xt(e, t, s) {
|
|
|
2971
2969
|
function at(e, t, s) {
|
|
2972
2970
|
return Math.max(t, Math.min(s, e));
|
|
2973
2971
|
}
|
|
2974
|
-
function
|
|
2972
|
+
function hn(e, t) {
|
|
2975
2973
|
const s = Math.min(e.length, t.length);
|
|
2976
2974
|
let r = 0;
|
|
2977
2975
|
for (; r < s && e.charCodeAt(r) === t.charCodeAt(r); )
|
|
@@ -3011,9 +3009,9 @@ function k(e, t) {
|
|
|
3011
3009
|
}
|
|
3012
3010
|
return !1;
|
|
3013
3011
|
}
|
|
3014
|
-
function
|
|
3012
|
+
function cn(e) {
|
|
3015
3013
|
return new Worker(
|
|
3016
|
-
"" + new URL("assets/ui-worker-
|
|
3014
|
+
"" + new URL("assets/ui-worker-aijZxF0a.js", import.meta.url).href,
|
|
3017
3015
|
{
|
|
3018
3016
|
type: "module",
|
|
3019
3017
|
name: e?.name
|
|
@@ -3021,10 +3019,10 @@ function dn(e) {
|
|
|
3021
3019
|
);
|
|
3022
3020
|
}
|
|
3023
3021
|
const R = zt("IkonUICore");
|
|
3024
|
-
class
|
|
3022
|
+
class _n {
|
|
3025
3023
|
unsubscribeProtocolMessages;
|
|
3026
3024
|
client = null;
|
|
3027
|
-
uiStore = new
|
|
3025
|
+
uiStore = new rn();
|
|
3028
3026
|
uiWorker = null;
|
|
3029
3027
|
uiStyles = /* @__PURE__ */ new Map();
|
|
3030
3028
|
uiUpdateListeners = /* @__PURE__ */ new Set();
|
|
@@ -3077,7 +3075,7 @@ class Sn {
|
|
|
3077
3075
|
}
|
|
3078
3076
|
startUiWorker(t) {
|
|
3079
3077
|
try {
|
|
3080
|
-
this.uiWorker = new
|
|
3078
|
+
this.uiWorker = new cn();
|
|
3081
3079
|
} catch (i) {
|
|
3082
3080
|
R.warn("Failed to create UI worker, falling back to main thread", i), this.uiWorker = null;
|
|
3083
3081
|
return;
|
|
@@ -3194,7 +3192,7 @@ class Sn {
|
|
|
3194
3192
|
}
|
|
3195
3193
|
handleGlobalState(t) {
|
|
3196
3194
|
try {
|
|
3197
|
-
const s =
|
|
3195
|
+
const s = Er(t), r = /* @__PURE__ */ new Set();
|
|
3198
3196
|
for (const i of Object.values(s.UIStreams ?? {}))
|
|
3199
3197
|
r.add(i.StreamId), this.uiStore.setCategory(i.StreamId, i.Info?.Category);
|
|
3200
3198
|
for (const i of this.uiStore.getSnapshots())
|
|
@@ -3206,7 +3204,7 @@ class Sn {
|
|
|
3206
3204
|
handleUiUpdate(t) {
|
|
3207
3205
|
const s = nt(t), r = `${s.senderId}_${s.trackId}`;
|
|
3208
3206
|
try {
|
|
3209
|
-
const i =
|
|
3207
|
+
const i = Mi(t), n = tn(i);
|
|
3210
3208
|
this.notifyUiUpdate(r, n), this.uiStore.apply(r, n), this.sendUiUpdateAck(s.trackId, n.snapshot.version);
|
|
3211
3209
|
} catch (i) {
|
|
3212
3210
|
i instanceof D ? R.warn("Failed to parse UI update", i.causeError ?? i) : R.error("Failed to apply UI update", i);
|
|
@@ -3214,7 +3212,7 @@ class Sn {
|
|
|
3214
3212
|
}
|
|
3215
3213
|
handleUiStyles(t) {
|
|
3216
3214
|
try {
|
|
3217
|
-
const s =
|
|
3215
|
+
const s = ai(t);
|
|
3218
3216
|
if (!s.StyleId) return;
|
|
3219
3217
|
const r = {
|
|
3220
3218
|
styleId: s.StyleId,
|
|
@@ -3228,7 +3226,7 @@ class Sn {
|
|
|
3228
3226
|
}
|
|
3229
3227
|
handleUiStylesBatch(t) {
|
|
3230
3228
|
try {
|
|
3231
|
-
const s =
|
|
3229
|
+
const s = fi(t);
|
|
3232
3230
|
if (!s.Styles) return;
|
|
3233
3231
|
for (const r of s.Styles) {
|
|
3234
3232
|
if (!r.StyleId) continue;
|
|
@@ -3245,7 +3243,7 @@ class Sn {
|
|
|
3245
3243
|
}
|
|
3246
3244
|
handleUiStylesDelete(t) {
|
|
3247
3245
|
try {
|
|
3248
|
-
const s =
|
|
3246
|
+
const s = gi(t);
|
|
3249
3247
|
if (!s.StyleIds || s.StyleIds.length === 0) return;
|
|
3250
3248
|
for (const r of s.StyleIds)
|
|
3251
3249
|
this.uiStyles.delete(r);
|
|
@@ -3277,7 +3275,7 @@ class Sn {
|
|
|
3277
3275
|
sendUiUpdateAck(t, s) {
|
|
3278
3276
|
if (this.client && !(!Number.isFinite(s) || s < 0))
|
|
3279
3277
|
try {
|
|
3280
|
-
const r =
|
|
3278
|
+
const r = Wi({ Version: s }, this.client.sessionId ?? 0, { trackId: t });
|
|
3281
3279
|
this.client.sendProtocolMessage(r);
|
|
3282
3280
|
} catch (r) {
|
|
3283
3281
|
R.warn("Failed to send UI update ack", r);
|
|
@@ -3285,10 +3283,10 @@ class Sn {
|
|
|
3285
3283
|
}
|
|
3286
3284
|
}
|
|
3287
3285
|
export {
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3286
|
+
en as HandlerCache,
|
|
3287
|
+
_n as IkonUICore,
|
|
3288
|
+
rn as UiStore,
|
|
3289
|
+
sn as UiStreamStore,
|
|
3292
3290
|
D as UiUpdateParseError,
|
|
3293
|
-
|
|
3291
|
+
tn as parseUiUpdate
|
|
3294
3292
|
};
|