@ikonai/sdk 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/{audio-playback-worker-Cwm3GaAx.js → audio-playback-worker-CGBVb9zd.js} +140 -142
- package/assets/{protocol-worker-DKSTqFKg.js → protocol-worker-BnPqA34K.js} +117 -113
- package/assets/{video-capture-worker-BBs_62Fq.js → video-capture-worker-y4Nlx7f9.js} +15 -15
- package/assets/{video-playback-worker-Bfm3r5xW.js → video-playback-worker-Dylqg54c.js} +84 -86
- package/index.js +640 -640
- package/package.json +1 -1
|
@@ -30,8 +30,6 @@ function tt(t, e, r) {
|
|
|
30
30
|
const s = F(t), n = q(s);
|
|
31
31
|
if (e !== void 0 && n.opcode !== e)
|
|
32
32
|
throw new Error(`Unexpected opcode ${n.opcode}`);
|
|
33
|
-
if (n.payloadVersion !== r)
|
|
34
|
-
throw new Error(`Unexpected payload version ${n.payloadVersion}`);
|
|
35
33
|
if (n.payloadType !== 8)
|
|
36
34
|
throw new Error(`Unexpected payload type ${n.payloadType}`);
|
|
37
35
|
const a = 27 + n.targetIds.length * 4;
|
|
@@ -40,7 +38,7 @@ function tt(t, e, r) {
|
|
|
40
38
|
var D = /* @__PURE__ */ ((t) => (t[t.Null = 1] = "Null", t[t.Bool = 2] = "Bool", t[t.Int32 = 3] = "Int32", t[t.Int64 = 4] = "Int64", t[t.UInt32 = 5] = "UInt32", t[t.UInt64 = 6] = "UInt64", t[t.Float32 = 7] = "Float32", t[t.Float64 = 8] = "Float64", t[t.Array = 9] = "Array", t[t.Dict = 10] = "Dict", t[t.Object = 11] = "Object", t[t.String = 12] = "String", t[t.Binary = 13] = "Binary", t[t.Guid = 14] = "Guid", t))(D || {});
|
|
41
39
|
const ft = 161, At = 162;
|
|
42
40
|
new TextEncoder();
|
|
43
|
-
const
|
|
41
|
+
const Tt = new TextDecoder("utf-8", { fatal: !0 });
|
|
44
42
|
class M {
|
|
45
43
|
constructor(e, r, s) {
|
|
46
44
|
this.buffer = e, this.version = r, this.offset = s, this.end = e.length - 1;
|
|
@@ -74,7 +72,7 @@ class M {
|
|
|
74
72
|
const i = { offset: this.offset }, o = A(this.buffer, i, "InvalidLength");
|
|
75
73
|
f(this.buffer, i.offset, o), a = this.buffer.subarray(i.offset, i.offset + o), this.offset = i.offset + o;
|
|
76
74
|
}
|
|
77
|
-
return new
|
|
75
|
+
return new ct(e, s, a);
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
78
|
class S {
|
|
@@ -139,7 +137,7 @@ class S {
|
|
|
139
137
|
return this.ensureType(
|
|
140
138
|
12
|
|
141
139
|
/* String */
|
|
142
|
-
),
|
|
140
|
+
), Tt.decode(this.payload);
|
|
143
141
|
}
|
|
144
142
|
asGuid() {
|
|
145
143
|
return this.ensureType(
|
|
@@ -170,7 +168,7 @@ class S {
|
|
|
170
168
|
throw new Error(`Teleport value has type ${D[this.type]}, expected ${D[e]}`);
|
|
171
169
|
}
|
|
172
170
|
}
|
|
173
|
-
class
|
|
171
|
+
class ct extends S {
|
|
174
172
|
constructor(e, r, s) {
|
|
175
173
|
super(r, s), this.fieldId = e;
|
|
176
174
|
}
|
|
@@ -518,228 +516,228 @@ function z(t) {
|
|
|
518
516
|
function F(t) {
|
|
519
517
|
return t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
520
518
|
}
|
|
521
|
-
var c = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(c || {}), 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.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 || {});
|
|
522
|
-
const Rt =
|
|
523
|
-
function
|
|
519
|
+
var T = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Opus = 1] = "Opus", t[t.Mp3 = 2] = "Mp3", t[t.RawPcm16 = 3] = "RawPcm16", t))(T || {}), 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.ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT = 524297] = "ANALYTICS_DEVTOOLS_CONSOLE_OUTPUT", 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.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 || {});
|
|
520
|
+
const Rt = 4194309, Ut = 205938238, mt = 717315017, Lt = 1594075008, yt = 2026534360, Dt = 3409001585, dt = 3466650495, Pt = 4007456593, wt = 4017217601, Ot = 4065417427, gt = 4086360332;
|
|
521
|
+
function Mt(t) {
|
|
524
522
|
const e = {};
|
|
525
523
|
return rt(e), e;
|
|
526
524
|
}
|
|
527
525
|
function rt(t) {
|
|
528
526
|
return t.Samples = new Uint8Array(0), t.Epoch = 0, t.Sequence = 0, t.FrameSizeInInterleavedSamples = 0, t.TimeStampInInterleavedSamples = 0n, t.IsFirst = !1, t.IsLast = !1, t.AverageVolume = 0, t.AudioEventEstimatedDuration = 0, t.ShapeSetValues = void 0, t;
|
|
529
527
|
}
|
|
530
|
-
function
|
|
528
|
+
function Ft(t, e) {
|
|
531
529
|
const r = M.create(t);
|
|
532
|
-
return
|
|
530
|
+
return Bt(r, e);
|
|
533
531
|
}
|
|
534
|
-
function
|
|
535
|
-
const r = e ??
|
|
536
|
-
return rt(r),
|
|
532
|
+
function Bt(t, e) {
|
|
533
|
+
const r = e ?? Mt();
|
|
534
|
+
return rt(r), bt(t, r), r;
|
|
537
535
|
}
|
|
538
|
-
function
|
|
536
|
+
function bt(t, e) {
|
|
539
537
|
let r;
|
|
540
538
|
for (; (r = t.next()) !== null; )
|
|
541
539
|
switch (r.fieldId) {
|
|
542
|
-
case
|
|
540
|
+
case Ut: {
|
|
543
541
|
if (r.isNull) throw new Error();
|
|
544
542
|
e.AverageVolume = r.asFloat32();
|
|
545
543
|
break;
|
|
546
544
|
}
|
|
547
|
-
case
|
|
545
|
+
case mt: {
|
|
548
546
|
if (r.isNull) {
|
|
549
547
|
e.ShapeSetValues = void 0;
|
|
550
548
|
break;
|
|
551
549
|
}
|
|
552
|
-
e.ShapeSetValues =
|
|
550
|
+
e.ShapeSetValues = Vt(r.asArray());
|
|
553
551
|
break;
|
|
554
552
|
}
|
|
555
|
-
case
|
|
553
|
+
case Lt: {
|
|
556
554
|
if (r.isNull) throw new Error();
|
|
557
555
|
e.IsFirst = r.asBool();
|
|
558
556
|
break;
|
|
559
557
|
}
|
|
560
|
-
case
|
|
558
|
+
case yt: {
|
|
561
559
|
if (r.isNull) throw new Error();
|
|
562
560
|
e.TimeStampInInterleavedSamples = r.asUInt64();
|
|
563
561
|
break;
|
|
564
562
|
}
|
|
565
|
-
case
|
|
563
|
+
case Dt: {
|
|
566
564
|
if (r.isNull) throw new Error();
|
|
567
565
|
e.Samples = r.asBinary();
|
|
568
566
|
break;
|
|
569
567
|
}
|
|
570
|
-
case
|
|
568
|
+
case dt: {
|
|
571
569
|
if (r.isNull) throw new Error();
|
|
572
570
|
e.AudioEventEstimatedDuration = r.asFloat32();
|
|
573
571
|
break;
|
|
574
572
|
}
|
|
575
|
-
case
|
|
573
|
+
case Pt: {
|
|
576
574
|
if (r.isNull) throw new Error();
|
|
577
575
|
e.FrameSizeInInterleavedSamples = r.asUInt32();
|
|
578
576
|
break;
|
|
579
577
|
}
|
|
580
|
-
case
|
|
578
|
+
case wt: {
|
|
581
579
|
if (r.isNull) throw new Error();
|
|
582
580
|
e.IsLast = r.asBool();
|
|
583
581
|
break;
|
|
584
582
|
}
|
|
585
|
-
case
|
|
583
|
+
case Ot: {
|
|
586
584
|
if (r.isNull) throw new Error();
|
|
587
585
|
e.Sequence = r.asUInt32();
|
|
588
586
|
break;
|
|
589
587
|
}
|
|
590
|
-
case
|
|
588
|
+
case gt: {
|
|
591
589
|
if (r.isNull) throw new Error();
|
|
592
590
|
e.Epoch = r.asUInt32();
|
|
593
591
|
break;
|
|
594
592
|
}
|
|
595
593
|
}
|
|
596
594
|
}
|
|
597
|
-
function
|
|
598
|
-
const r = tt(t,
|
|
599
|
-
return
|
|
595
|
+
function Gt(t, e) {
|
|
596
|
+
const r = tt(t, Rt);
|
|
597
|
+
return Ft(r, e);
|
|
600
598
|
}
|
|
601
|
-
function
|
|
599
|
+
function Vt(t) {
|
|
602
600
|
const e = [];
|
|
603
601
|
let r;
|
|
604
602
|
for (; (r = t.next()) !== null; )
|
|
605
|
-
e.push(
|
|
603
|
+
e.push(xt(r.asObject()));
|
|
606
604
|
return e;
|
|
607
605
|
}
|
|
608
|
-
const
|
|
609
|
-
function
|
|
606
|
+
const vt = 1154362099, kt = 3974819915;
|
|
607
|
+
function pt(t) {
|
|
610
608
|
const e = {};
|
|
611
609
|
return st(e), e;
|
|
612
610
|
}
|
|
613
611
|
function st(t) {
|
|
614
612
|
return t.SetId = 0, t.Values = [], t;
|
|
615
613
|
}
|
|
616
|
-
function
|
|
617
|
-
const r = e ??
|
|
618
|
-
return st(r),
|
|
614
|
+
function xt(t, e) {
|
|
615
|
+
const r = e ?? pt();
|
|
616
|
+
return st(r), Ht(t, r), r;
|
|
619
617
|
}
|
|
620
|
-
function
|
|
618
|
+
function Ht(t, e) {
|
|
621
619
|
let r;
|
|
622
620
|
for (; (r = t.next()) !== null; )
|
|
623
621
|
switch (r.fieldId) {
|
|
624
|
-
case
|
|
622
|
+
case vt: {
|
|
625
623
|
if (r.isNull) throw new Error();
|
|
626
624
|
e.SetId = r.asUInt32();
|
|
627
625
|
break;
|
|
628
626
|
}
|
|
629
|
-
case
|
|
627
|
+
case kt: {
|
|
630
628
|
if (r.isNull) throw new Error();
|
|
631
|
-
e.Values =
|
|
629
|
+
e.Values = Yt(r.asArray());
|
|
632
630
|
break;
|
|
633
631
|
}
|
|
634
632
|
}
|
|
635
633
|
}
|
|
636
|
-
function
|
|
634
|
+
function Yt(t) {
|
|
637
635
|
const e = [];
|
|
638
636
|
let r;
|
|
639
637
|
for (; (r = t.next()) !== null; )
|
|
640
638
|
e.push(r.asFloat32());
|
|
641
639
|
return e;
|
|
642
640
|
}
|
|
643
|
-
const
|
|
644
|
-
function
|
|
641
|
+
const Kt = 4194305, Wt = 265814330, Xt = 1368629611, zt = 2431514951, jt = 2914494629, $t = 3284746250, Qt = 4101844078;
|
|
642
|
+
function Jt(t) {
|
|
645
643
|
const e = {};
|
|
646
644
|
return nt(e), e;
|
|
647
645
|
}
|
|
648
646
|
function nt(t) {
|
|
649
|
-
return t.Description = "", t.Codec =
|
|
647
|
+
return t.Description = "", t.Codec = T.Unknown, t.SampleRate = 0, t.Channels = 0, t.BitDepth = 0, t.ShapeSets = void 0, t;
|
|
650
648
|
}
|
|
651
|
-
function
|
|
649
|
+
function Zt(t, e) {
|
|
652
650
|
const r = M.create(t);
|
|
653
|
-
return
|
|
651
|
+
return qt(r, e);
|
|
654
652
|
}
|
|
655
|
-
function
|
|
656
|
-
const r = e ??
|
|
657
|
-
return nt(r),
|
|
653
|
+
function qt(t, e) {
|
|
654
|
+
const r = e ?? Jt();
|
|
655
|
+
return nt(r), te(t, r), r;
|
|
658
656
|
}
|
|
659
|
-
function
|
|
657
|
+
function te(t, e) {
|
|
660
658
|
let r;
|
|
661
659
|
for (; (r = t.next()) !== null; )
|
|
662
660
|
switch (r.fieldId) {
|
|
663
|
-
case
|
|
661
|
+
case Wt: {
|
|
664
662
|
if (r.isNull) {
|
|
665
663
|
e.ShapeSets = void 0;
|
|
666
664
|
break;
|
|
667
665
|
}
|
|
668
|
-
e.ShapeSets =
|
|
666
|
+
e.ShapeSets = re(r.asArray());
|
|
669
667
|
break;
|
|
670
668
|
}
|
|
671
|
-
case
|
|
669
|
+
case Xt: {
|
|
672
670
|
if (r.isNull) throw new Error();
|
|
673
671
|
e.Description = r.asString();
|
|
674
672
|
break;
|
|
675
673
|
}
|
|
676
|
-
case
|
|
674
|
+
case zt: {
|
|
677
675
|
if (r.isNull) throw new Error();
|
|
678
676
|
e.Channels = r.asInt32();
|
|
679
677
|
break;
|
|
680
678
|
}
|
|
681
|
-
case
|
|
679
|
+
case jt: {
|
|
682
680
|
if (r.isNull) throw new Error();
|
|
683
681
|
e.BitDepth = r.asInt32();
|
|
684
682
|
break;
|
|
685
683
|
}
|
|
686
|
-
case
|
|
684
|
+
case $t: {
|
|
687
685
|
if (r.isNull) throw new Error();
|
|
688
686
|
e.Codec = r.asInt32();
|
|
689
687
|
break;
|
|
690
688
|
}
|
|
691
|
-
case
|
|
689
|
+
case Qt: {
|
|
692
690
|
if (r.isNull) throw new Error();
|
|
693
691
|
e.SampleRate = r.asInt32();
|
|
694
692
|
break;
|
|
695
693
|
}
|
|
696
694
|
}
|
|
697
695
|
}
|
|
698
|
-
function
|
|
699
|
-
const r = tt(t,
|
|
700
|
-
return
|
|
696
|
+
function ee(t, e) {
|
|
697
|
+
const r = tt(t, Kt);
|
|
698
|
+
return Zt(r, e);
|
|
701
699
|
}
|
|
702
|
-
function
|
|
700
|
+
function re(t) {
|
|
703
701
|
const e = [];
|
|
704
702
|
let r;
|
|
705
703
|
for (; (r = t.next()) !== null; )
|
|
706
|
-
e.push(
|
|
704
|
+
e.push(oe(r.asObject()));
|
|
707
705
|
return e;
|
|
708
706
|
}
|
|
709
|
-
const
|
|
710
|
-
function
|
|
707
|
+
const se = 1107713536, ne = 1154362099, ie = 1185721362;
|
|
708
|
+
function ae(t) {
|
|
711
709
|
const e = {};
|
|
712
710
|
return it(e), e;
|
|
713
711
|
}
|
|
714
712
|
function it(t) {
|
|
715
713
|
return t.SetId = 0, t.Name = "", t.ShapeNames = [], t;
|
|
716
714
|
}
|
|
717
|
-
function
|
|
718
|
-
const r = e ??
|
|
719
|
-
return it(r),
|
|
715
|
+
function oe(t, e) {
|
|
716
|
+
const r = e ?? ae();
|
|
717
|
+
return it(r), _e(t, r), r;
|
|
720
718
|
}
|
|
721
|
-
function
|
|
719
|
+
function _e(t, e) {
|
|
722
720
|
let r;
|
|
723
721
|
for (; (r = t.next()) !== null; )
|
|
724
722
|
switch (r.fieldId) {
|
|
725
|
-
case
|
|
723
|
+
case se: {
|
|
726
724
|
if (r.isNull) throw new Error();
|
|
727
725
|
e.Name = r.asString();
|
|
728
726
|
break;
|
|
729
727
|
}
|
|
730
|
-
case
|
|
728
|
+
case ne: {
|
|
731
729
|
if (r.isNull) throw new Error();
|
|
732
730
|
e.SetId = r.asUInt32();
|
|
733
731
|
break;
|
|
734
732
|
}
|
|
735
|
-
case
|
|
733
|
+
case ie: {
|
|
736
734
|
if (r.isNull) throw new Error();
|
|
737
|
-
e.ShapeNames =
|
|
735
|
+
e.ShapeNames = Ee(r.asArray());
|
|
738
736
|
break;
|
|
739
737
|
}
|
|
740
738
|
}
|
|
741
739
|
}
|
|
742
|
-
function
|
|
740
|
+
function Ee(t) {
|
|
743
741
|
const e = [];
|
|
744
742
|
let r;
|
|
745
743
|
for (; (r = t.next()) !== null; )
|
|
@@ -800,9 +798,9 @@ class j {
|
|
|
800
798
|
return s = (s + r) % this.capacity, Atomics.store(this.readWrite, 0, s), r;
|
|
801
799
|
}
|
|
802
800
|
}
|
|
803
|
-
const
|
|
804
|
-
function
|
|
805
|
-
if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" ||
|
|
801
|
+
const le = globalThis;
|
|
802
|
+
function Ie() {
|
|
803
|
+
if (typeof SharedArrayBuffer > "u" || typeof Atomics > "u" || le.crossOriginIsolated === !1)
|
|
806
804
|
return !1;
|
|
807
805
|
try {
|
|
808
806
|
new SharedArrayBuffer(1);
|
|
@@ -811,13 +809,13 @@ function he() {
|
|
|
811
809
|
}
|
|
812
810
|
return !0;
|
|
813
811
|
}
|
|
814
|
-
let
|
|
815
|
-
function
|
|
812
|
+
let ue = 1;
|
|
813
|
+
function he(t, e) {
|
|
816
814
|
return `[${t}] ${e}`;
|
|
817
815
|
}
|
|
818
816
|
function b(t, e, r, s) {
|
|
819
|
-
if ((/* @__PURE__ */ new Date()).toISOString(),
|
|
820
|
-
const n =
|
|
817
|
+
if ((/* @__PURE__ */ new Date()).toISOString(), ue <= t) {
|
|
818
|
+
const n = he(e, r);
|
|
821
819
|
switch (t) {
|
|
822
820
|
case 0:
|
|
823
821
|
console.debug(n, ...s);
|
|
@@ -834,7 +832,7 @@ function b(t, e, r, s) {
|
|
|
834
832
|
}
|
|
835
833
|
}
|
|
836
834
|
}
|
|
837
|
-
function
|
|
835
|
+
function fe(t) {
|
|
838
836
|
return {
|
|
839
837
|
debug(e, ...r) {
|
|
840
838
|
b(0, t, e, r);
|
|
@@ -850,9 +848,9 @@ function ce(t) {
|
|
|
850
848
|
}
|
|
851
849
|
};
|
|
852
850
|
}
|
|
853
|
-
const at = 48e3, ot = 2,
|
|
851
|
+
const at = 48e3, ot = 2, Ae = 1500, Te = 10, $ = 80, ce = 50, Q = 64, Ne = fe("AudioPlaybackWorker"), P = (t, e) => {
|
|
854
852
|
self.postMessage(t, e ?? []);
|
|
855
|
-
},
|
|
853
|
+
}, Se = Ie();
|
|
856
854
|
let V = "pcm", _t = !0, R = at, C = ot, y = null;
|
|
857
855
|
function L(t, e) {
|
|
858
856
|
const r = t instanceof Error ? t : new Error(String(t));
|
|
@@ -862,7 +860,7 @@ function W(t) {
|
|
|
862
860
|
const e = q(t);
|
|
863
861
|
return `${e.senderId}_${e.trackId}`;
|
|
864
862
|
}
|
|
865
|
-
class
|
|
863
|
+
class Ce {
|
|
866
864
|
mode;
|
|
867
865
|
ring = null;
|
|
868
866
|
sab = void 0;
|
|
@@ -885,8 +883,8 @@ class Ue {
|
|
|
885
883
|
}
|
|
886
884
|
rebind(e) {
|
|
887
885
|
if (!this.closed) {
|
|
888
|
-
if (this.mode = e, e === "sab" &&
|
|
889
|
-
const r = Math.floor(
|
|
886
|
+
if (this.mode = e, e === "sab" && Se) {
|
|
887
|
+
const r = Math.floor(Ae * this.outputSampleRate * this.outputChannels / 1e3), s = j.getStorageForCapacity(r, Float32Array), n = new j(s, Float32Array);
|
|
890
888
|
n.flush(), this.sab = s, this.ring = n;
|
|
891
889
|
return;
|
|
892
890
|
}
|
|
@@ -897,7 +895,7 @@ class Ue {
|
|
|
897
895
|
if (this.closed || this.mode !== "pcm" || this.pcmBatchOffset <= 0)
|
|
898
896
|
return;
|
|
899
897
|
const r = performance.now(), s = Math.max(1, Math.round(this.outputSampleRate * this.outputChannels * $ / 1e3));
|
|
900
|
-
if (!(e || this.pcmBatchOffset >= s || this.lastPcmFlushTimeMs > 0 && r - this.lastPcmFlushTimeMs >=
|
|
898
|
+
if (!(e || this.pcmBatchOffset >= s || this.lastPcmFlushTimeMs > 0 && r - this.lastPcmFlushTimeMs >= ce))
|
|
901
899
|
return;
|
|
902
900
|
const a = new Float32Array(this.pcmBatchOffset);
|
|
903
901
|
a.set(this.pcmBatchBuffer.subarray(0, this.pcmBatchOffset)), this.pcmBatchOffset = 0, this.lastPcmFlushTimeMs = r, P({ type: "pcm", streamId: this.streamId, pcm: a }, [a.buffer]);
|
|
@@ -933,18 +931,18 @@ class Ue {
|
|
|
933
931
|
this.closed || (this.pcmBatchOffset = 0, this.lastPcmFlushTimeMs = 0, this.ring?.flush());
|
|
934
932
|
}
|
|
935
933
|
}
|
|
936
|
-
function
|
|
934
|
+
function Re(t) {
|
|
937
935
|
switch (t) {
|
|
938
|
-
case
|
|
936
|
+
case T.Opus:
|
|
939
937
|
return "opus";
|
|
940
|
-
case
|
|
938
|
+
case T.Mp3:
|
|
941
939
|
return "mp3";
|
|
942
940
|
default:
|
|
943
941
|
return null;
|
|
944
942
|
}
|
|
945
943
|
}
|
|
946
944
|
let g = null;
|
|
947
|
-
function
|
|
945
|
+
function Ue(t) {
|
|
948
946
|
const e = new DataView(t.buffer, t.byteOffset, t.byteLength), r = Math.floor(t.byteLength / 2);
|
|
949
947
|
(!g || g.length < r) && (g = new Float32Array(r));
|
|
950
948
|
for (let s = 0; s < r; s++)
|
|
@@ -984,7 +982,7 @@ class X {
|
|
|
984
982
|
const N = new Float32Array(r);
|
|
985
983
|
e.copyTo(N, { planeIndex: h, format: i }), E[h] = N;
|
|
986
984
|
}
|
|
987
|
-
return
|
|
985
|
+
return Be(E, r);
|
|
988
986
|
}, u = () => {
|
|
989
987
|
const E = new Float32Array(r * s);
|
|
990
988
|
return e.copyTo(E, { planeIndex: 0, format: o }), E;
|
|
@@ -994,7 +992,7 @@ class X {
|
|
|
994
992
|
try {
|
|
995
993
|
l = _();
|
|
996
994
|
} catch (E) {
|
|
997
|
-
|
|
995
|
+
Ne.debug(`Failed to read planar audio data, falling back to interleaved copy: ${E}`), l = u();
|
|
998
996
|
}
|
|
999
997
|
else
|
|
1000
998
|
l = u();
|
|
@@ -1006,25 +1004,25 @@ class X {
|
|
|
1006
1004
|
let n = e, a = e.length, i = r;
|
|
1007
1005
|
if (s !== R) {
|
|
1008
1006
|
const o = a / i, u = Math.max(1, Math.round(o * R / s)) * i, l = this.getResampleBuffer(u);
|
|
1009
|
-
a =
|
|
1007
|
+
a = Ge(n, l, i, s, R), n = l;
|
|
1010
1008
|
}
|
|
1011
1009
|
if (i !== C) {
|
|
1012
1010
|
const _ = a / i * C, u = this.getRemixBuffer(_);
|
|
1013
|
-
a =
|
|
1011
|
+
a = Ve(n.subarray(0, a), u, i, C), n = u, i = C;
|
|
1014
1012
|
}
|
|
1015
1013
|
return n.subarray(0, a);
|
|
1016
1014
|
}
|
|
1017
1015
|
}
|
|
1018
|
-
class
|
|
1016
|
+
class me extends X {
|
|
1019
1017
|
feedChunk(e) {
|
|
1020
1018
|
e.isFirst && this.reset();
|
|
1021
|
-
const r =
|
|
1019
|
+
const r = Ue(e.data);
|
|
1022
1020
|
this.writeConvertedPcm(r, this.inputChannels, this.inputSampleRate), e.isLast && this.reset();
|
|
1023
1021
|
}
|
|
1024
1022
|
close() {
|
|
1025
1023
|
}
|
|
1026
1024
|
}
|
|
1027
|
-
class
|
|
1025
|
+
class Le extends X {
|
|
1028
1026
|
decoder;
|
|
1029
1027
|
codec;
|
|
1030
1028
|
constructor(e) {
|
|
@@ -1083,7 +1081,7 @@ class De extends X {
|
|
|
1083
1081
|
}
|
|
1084
1082
|
}
|
|
1085
1083
|
}
|
|
1086
|
-
class
|
|
1084
|
+
class ye extends X {
|
|
1087
1085
|
decoder = null;
|
|
1088
1086
|
isReady = !1;
|
|
1089
1087
|
decoderSampleRate = 48e3;
|
|
@@ -1154,21 +1152,21 @@ class de extends X {
|
|
|
1154
1152
|
this.decoder = null, this.pendingChunks.length = 0;
|
|
1155
1153
|
}
|
|
1156
1154
|
}
|
|
1157
|
-
const
|
|
1158
|
-
async function
|
|
1155
|
+
const c = /* @__PURE__ */ new Map();
|
|
1156
|
+
async function De(t) {
|
|
1159
1157
|
if (t.closed || t.decoder)
|
|
1160
1158
|
return;
|
|
1161
|
-
if (t.codec ===
|
|
1162
|
-
t.decoder = new
|
|
1159
|
+
if (t.codec === T.RawPcm16) {
|
|
1160
|
+
t.decoder = new me({ inputChannels: t.inputChannels, inputSampleRate: t.inputSampleRate, sink: t.sink });
|
|
1163
1161
|
return;
|
|
1164
1162
|
}
|
|
1165
|
-
if (t.codec !==
|
|
1166
|
-
throw new Error(`Unsupported audio codec: ${
|
|
1167
|
-
const e =
|
|
1163
|
+
if (t.codec !== T.Opus && t.codec !== T.Mp3)
|
|
1164
|
+
throw new Error(`Unsupported audio codec: ${T[t.codec] ?? t.codec}`);
|
|
1165
|
+
const e = Re(t.codec);
|
|
1168
1166
|
if (_t && typeof AudioDecoder < "u" && e !== null)
|
|
1169
1167
|
try {
|
|
1170
1168
|
if ((await AudioDecoder.isConfigSupported({ codec: e, numberOfChannels: t.inputChannels, sampleRate: t.inputSampleRate })).supported) {
|
|
1171
|
-
const n = new
|
|
1169
|
+
const n = new Le({
|
|
1172
1170
|
codec: e,
|
|
1173
1171
|
inputChannels: t.inputChannels,
|
|
1174
1172
|
inputSampleRate: t.inputSampleRate,
|
|
@@ -1183,8 +1181,8 @@ async function Pe(t) {
|
|
|
1183
1181
|
}
|
|
1184
1182
|
} catch {
|
|
1185
1183
|
}
|
|
1186
|
-
if (t.codec ===
|
|
1187
|
-
const s = new
|
|
1184
|
+
if (t.codec === T.Opus) {
|
|
1185
|
+
const s = new ye({ inputChannels: t.inputChannels, inputSampleRate: t.inputSampleRate, sink: t.sink });
|
|
1188
1186
|
if (await s.initialise(t.inputChannels, t.inputSampleRate), t.closed) {
|
|
1189
1187
|
s.close();
|
|
1190
1188
|
return;
|
|
@@ -1192,9 +1190,9 @@ async function Pe(t) {
|
|
|
1192
1190
|
t.decoder = s;
|
|
1193
1191
|
return;
|
|
1194
1192
|
}
|
|
1195
|
-
throw new Error(`No available decoder for codec: ${
|
|
1193
|
+
throw new Error(`No available decoder for codec: ${T[t.codec] ?? t.codec}`);
|
|
1196
1194
|
}
|
|
1197
|
-
function
|
|
1195
|
+
function de(t) {
|
|
1198
1196
|
if (t.closed) {
|
|
1199
1197
|
t.pendingFrames.splice(0);
|
|
1200
1198
|
try {
|
|
@@ -1222,7 +1220,7 @@ function Et(t, e) {
|
|
|
1222
1220
|
const a = performance.now();
|
|
1223
1221
|
if (t.lastArrivalTimeMs > 0) {
|
|
1224
1222
|
const h = a - t.lastArrivalTimeMs, N = Math.abs(h - t.expectedIntervalMs);
|
|
1225
|
-
t.jitterMs = t.jitterMs + (N - t.jitterMs) /
|
|
1223
|
+
t.jitterMs = t.jitterMs + (N - t.jitterMs) / Te;
|
|
1226
1224
|
}
|
|
1227
1225
|
t.lastArrivalTimeMs = a;
|
|
1228
1226
|
const i = t.inputSampleRate * t.inputChannels, o = R * C, _ = Math.round(s * o / i), u = Math.round(n * o / i), l = Math.round(s * 1e6 / i), E = Math.round(n * 1e6 / i);
|
|
@@ -1244,8 +1242,8 @@ function Et(t, e) {
|
|
|
1244
1242
|
durationUs: E
|
|
1245
1243
|
});
|
|
1246
1244
|
}
|
|
1247
|
-
function
|
|
1248
|
-
const e = W(t), r =
|
|
1245
|
+
function Pe(t) {
|
|
1246
|
+
const e = W(t), r = ee(t), s = c.get(e);
|
|
1249
1247
|
if (s) {
|
|
1250
1248
|
s.closed = !0, s.pendingFrames.splice(0);
|
|
1251
1249
|
try {
|
|
@@ -1256,9 +1254,9 @@ function Oe(t) {
|
|
|
1256
1254
|
s.sink.drainPcm(), s.sink.close();
|
|
1257
1255
|
} catch {
|
|
1258
1256
|
}
|
|
1259
|
-
|
|
1257
|
+
c.delete(e);
|
|
1260
1258
|
}
|
|
1261
|
-
const n = new
|
|
1259
|
+
const n = new Ce(e), a = {
|
|
1262
1260
|
streamId: e,
|
|
1263
1261
|
codec: r.Codec,
|
|
1264
1262
|
inputSampleRate: r.SampleRate,
|
|
@@ -1275,15 +1273,15 @@ function Oe(t) {
|
|
|
1275
1273
|
expectedIntervalMs: 20,
|
|
1276
1274
|
shapeSets: r.ShapeSets
|
|
1277
1275
|
};
|
|
1278
|
-
|
|
1276
|
+
c.set(e, a), P({
|
|
1279
1277
|
type: "streamBegin",
|
|
1280
1278
|
streamId: e,
|
|
1281
1279
|
sharedArrayBuffer: n.getSharedArrayBuffer(),
|
|
1282
1280
|
shapeSets: r.ShapeSets
|
|
1283
1281
|
});
|
|
1284
1282
|
}
|
|
1285
|
-
function
|
|
1286
|
-
for (const t of
|
|
1283
|
+
function we() {
|
|
1284
|
+
for (const t of c.values())
|
|
1287
1285
|
P({
|
|
1288
1286
|
type: "streamBegin",
|
|
1289
1287
|
streamId: t.streamId,
|
|
@@ -1291,8 +1289,8 @@ function ge() {
|
|
|
1291
1289
|
shapeSets: t.shapeSets
|
|
1292
1290
|
});
|
|
1293
1291
|
}
|
|
1294
|
-
function
|
|
1295
|
-
const e = W(t), r =
|
|
1292
|
+
function Oe(t) {
|
|
1293
|
+
const e = W(t), r = c.get(e);
|
|
1296
1294
|
if (r) {
|
|
1297
1295
|
r.closed = !0, r.pendingFrames.splice(0);
|
|
1298
1296
|
try {
|
|
@@ -1303,32 +1301,32 @@ function Me(t) {
|
|
|
1303
1301
|
r.decoder?.close();
|
|
1304
1302
|
} catch {
|
|
1305
1303
|
}
|
|
1306
|
-
r.decoder = null,
|
|
1304
|
+
r.decoder = null, c.delete(e), P({ type: "streamEnd", streamId: e });
|
|
1307
1305
|
}
|
|
1308
1306
|
}
|
|
1309
|
-
function
|
|
1310
|
-
const e = W(t), r =
|
|
1307
|
+
function ge(t) {
|
|
1308
|
+
const e = W(t), r = c.get(e);
|
|
1311
1309
|
if (!r || r.closed)
|
|
1312
1310
|
return;
|
|
1313
|
-
const s =
|
|
1311
|
+
const s = Gt(t);
|
|
1314
1312
|
if (!r.decoder) {
|
|
1315
|
-
r.pendingFrames.length >= Q && r.pendingFrames.splice(0, r.pendingFrames.length - Q + 1), r.pendingFrames.push(s), r.initTask || (r.initTask =
|
|
1313
|
+
r.pendingFrames.length >= Q && r.pendingFrames.splice(0, r.pendingFrames.length - Q + 1), r.pendingFrames.push(s), r.initTask || (r.initTask = De(r).then(() => de(r)).catch((n) => {
|
|
1316
1314
|
r.closed || L(n, e);
|
|
1317
1315
|
}));
|
|
1318
1316
|
return;
|
|
1319
1317
|
}
|
|
1320
1318
|
Et(r, s);
|
|
1321
1319
|
}
|
|
1322
|
-
function
|
|
1320
|
+
function Me(t) {
|
|
1323
1321
|
switch (ht(t)) {
|
|
1324
1322
|
case G.AUDIO_STREAM_BEGIN:
|
|
1325
|
-
|
|
1323
|
+
Pe(t);
|
|
1326
1324
|
return;
|
|
1327
1325
|
case G.AUDIO_STREAM_END:
|
|
1328
|
-
|
|
1326
|
+
Oe(t);
|
|
1329
1327
|
return;
|
|
1330
1328
|
case G.AUDIO_FRAME2:
|
|
1331
|
-
|
|
1329
|
+
ge(t);
|
|
1332
1330
|
return;
|
|
1333
1331
|
default:
|
|
1334
1332
|
return;
|
|
@@ -1343,9 +1341,9 @@ function lt() {
|
|
|
1343
1341
|
y = null;
|
|
1344
1342
|
}
|
|
1345
1343
|
}
|
|
1346
|
-
function
|
|
1344
|
+
function Fe() {
|
|
1347
1345
|
lt();
|
|
1348
|
-
for (const t of
|
|
1346
|
+
for (const t of c.values()) {
|
|
1349
1347
|
try {
|
|
1350
1348
|
t.sink.drainPcm(), t.sink.close();
|
|
1351
1349
|
} catch {
|
|
@@ -1355,7 +1353,7 @@ function be() {
|
|
|
1355
1353
|
} catch {
|
|
1356
1354
|
}
|
|
1357
1355
|
}
|
|
1358
|
-
|
|
1356
|
+
c.clear();
|
|
1359
1357
|
}
|
|
1360
1358
|
self.addEventListener("message", (t) => {
|
|
1361
1359
|
const e = t.data;
|
|
@@ -1366,21 +1364,21 @@ self.addEventListener("message", (t) => {
|
|
|
1366
1364
|
if (e.type === "attachProtocolPort") {
|
|
1367
1365
|
lt(), y = e.port, y.addEventListener("message", (r) => {
|
|
1368
1366
|
const s = r.data;
|
|
1369
|
-
s?.type === "protocol" && s.message instanceof ArrayBuffer &&
|
|
1367
|
+
s?.type === "protocol" && s.message instanceof ArrayBuffer && Me(new Uint8Array(s.message));
|
|
1370
1368
|
}), y.start?.();
|
|
1371
1369
|
return;
|
|
1372
1370
|
}
|
|
1373
1371
|
if (e.type === "rebind") {
|
|
1374
1372
|
V = e.transport, typeof e.outputSampleRate == "number" && Number.isFinite(e.outputSampleRate) && e.outputSampleRate > 0 && (R = e.outputSampleRate), typeof e.outputChannels == "number" && Number.isFinite(e.outputChannels) && e.outputChannels > 0 && (C = e.outputChannels);
|
|
1375
|
-
for (const r of
|
|
1373
|
+
for (const r of c.values())
|
|
1376
1374
|
r.sink.setOutputFormat(R, C), r.sink.rebind(V);
|
|
1377
|
-
|
|
1375
|
+
we();
|
|
1378
1376
|
return;
|
|
1379
1377
|
}
|
|
1380
|
-
e.type === "dispose" &&
|
|
1378
|
+
e.type === "dispose" && Fe();
|
|
1381
1379
|
});
|
|
1382
1380
|
let U = null;
|
|
1383
|
-
function
|
|
1381
|
+
function Be(t, e) {
|
|
1384
1382
|
const r = t.length;
|
|
1385
1383
|
if (r === 1)
|
|
1386
1384
|
return t[0];
|
|
@@ -1404,10 +1402,10 @@ function Z(t) {
|
|
|
1404
1402
|
const e = Math.PI * t;
|
|
1405
1403
|
return Math.sin(e) / e;
|
|
1406
1404
|
}
|
|
1407
|
-
function
|
|
1405
|
+
function be(t, e) {
|
|
1408
1406
|
return t === 0 ? 1 : Math.abs(t) >= e ? 0 : Z(t) * Z(t / e);
|
|
1409
1407
|
}
|
|
1410
|
-
function
|
|
1408
|
+
function Ge(t, e, r, s, n) {
|
|
1411
1409
|
if (s === n)
|
|
1412
1410
|
return e.set(t), t.length;
|
|
1413
1411
|
const a = t.length / r, i = Math.max(1, Math.round(a * n / s)), o = s / n, _ = o > 1 ? o : 1, u = Math.ceil(J * _);
|
|
@@ -1419,7 +1417,7 @@ function ve(t, e, r, s, n) {
|
|
|
1419
1417
|
const B = N + v;
|
|
1420
1418
|
if (B < 0 || B >= a)
|
|
1421
1419
|
continue;
|
|
1422
|
-
const It = (h - B) / _, k =
|
|
1420
|
+
const It = (h - B) / _, k = be(It, J);
|
|
1423
1421
|
if (k !== 0) {
|
|
1424
1422
|
const ut = t[B * r + l] ?? 0;
|
|
1425
1423
|
w += ut * k, m += k;
|
|
@@ -1429,7 +1427,7 @@ function ve(t, e, r, s, n) {
|
|
|
1429
1427
|
}
|
|
1430
1428
|
return i * r;
|
|
1431
1429
|
}
|
|
1432
|
-
function
|
|
1430
|
+
function Ve(t, e, r, s) {
|
|
1433
1431
|
const n = t.length / r;
|
|
1434
1432
|
if (r === s)
|
|
1435
1433
|
return e.set(t), t.length;
|