@kvaser/canking-api 7.2.1 → 7.4.0

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.
Files changed (884) hide show
  1. package/dist/controls/CanChannelSelectControl.d.ts +4 -4
  2. package/dist/controls/CanIdentifierControl.d.ts +105 -55
  3. package/dist/controls/CanKingDataProvider.d.ts +27 -3
  4. package/dist/controls/CheckboxControl.d.ts +13 -4
  5. package/dist/controls/ColorControl.d.ts +26 -0
  6. package/dist/controls/ColumnItemControl.d.ts +1 -1
  7. package/dist/controls/ContextMenu.d.ts +2 -2
  8. package/dist/controls/DropdownButton.d.ts +3 -3
  9. package/dist/controls/DropdownPanel.d.ts +1 -1
  10. package/dist/controls/ExtensionWorkspaceViewProps.d.ts +8 -0
  11. package/dist/controls/FormControlRow.d.ts +1 -1
  12. package/dist/controls/InlineEditor.d.ts +4 -4
  13. package/dist/controls/LinChannelSelectControl.d.ts +3 -3
  14. package/dist/controls/LinIdentifierControl.d.ts +96 -53
  15. package/dist/controls/LocalizedStrings.d.ts +1 -0
  16. package/dist/controls/NumberRangeControl.d.ts +11 -11
  17. package/dist/controls/RadioControl.d.ts +1 -1
  18. package/dist/controls/RadioGroupControl.d.ts +2 -2
  19. package/dist/controls/SectionControl.d.ts +2 -2
  20. package/dist/controls/SelectControl.d.ts +2 -2
  21. package/dist/controls/SelectMessageDialog.d.ts +32 -3
  22. package/dist/controls/SelectSignalDialog.d.ts +103 -1
  23. package/dist/controls/SelectSignalsControl.d.ts +44 -0
  24. package/dist/controls/SizedBox.d.ts +1 -0
  25. package/dist/controls/TableControl.d.ts +3 -4
  26. package/dist/controls/TextControl.d.ts +16 -6
  27. package/dist/controls/ToolbarControl.d.ts +6 -4
  28. package/dist/controls/ValidateableTextControl.d.ts +6 -6
  29. package/dist/controls/index.d.ts +5 -2
  30. package/dist/controls.js +1 -1
  31. package/dist/controls.mjs +2581 -1936
  32. package/dist/grpc.js +1 -1
  33. package/dist/grpc.mjs +220 -178
  34. package/dist/hooks/index.d.ts +414 -17
  35. package/dist/hooks.js +1 -1
  36. package/dist/hooks.mjs +48 -24
  37. package/dist/icons/index.d.ts +39 -0
  38. package/dist/icons.js +1 -1
  39. package/dist/icons.mjs +947 -750
  40. package/dist/index.d.ts +0 -2
  41. package/dist/index.js +1 -1
  42. package/dist/index.mjs +1182 -437
  43. package/dist/ipc/index.d.ts +31 -3
  44. package/dist/ipc.js +1 -1
  45. package/dist/ipc.mjs +132 -104
  46. package/dist/models/DataBuffer.d.ts +18 -15
  47. package/dist/models/ElectronAPIFake.d.ts +2 -1
  48. package/dist/models/Point.d.ts +4 -0
  49. package/dist/models/deep_equal.d.ts +7 -0
  50. package/dist/models/index.d.ts +85 -12
  51. package/dist/models/json_utilities.d.ts +16 -0
  52. package/dist/models.js +1 -1
  53. package/dist/models.mjs +776 -297
  54. package/dist/protos/app_params.d.ts +109 -49
  55. package/dist/protos/app_service.d.ts +81 -50
  56. package/dist/protos/common_params.d.ts +4 -1
  57. package/dist/protos/device_params.d.ts +82 -27
  58. package/dist/protos/frame_params.d.ts +103 -4
  59. package/dist/protos/measurement_params.d.ts +244 -46
  60. package/dist/protos/measurement_service.d.ts +119 -65
  61. package/dist/protos/measurement_settings.d.ts +157 -6
  62. package/dist/protos/signal_params.d.ts +20 -0
  63. package/dist/protos/status_params.d.ts +30 -0
  64. package/dist/status_params.js +1 -1
  65. package/dist/status_params.mjs +8891 -1850
  66. package/doc/assets/hierarchy.js +1 -1
  67. package/doc/assets/main.js +5 -5
  68. package/doc/assets/navigation.js +1 -1
  69. package/doc/assets/search.js +1 -1
  70. package/doc/assets/style.css +254 -231
  71. package/doc/enums/models.AccessMode.html +11 -9
  72. package/doc/enums/models.CanChannelCap.html +44 -44
  73. package/doc/enums/models.CanConfigMode.html +16 -0
  74. package/doc/enums/models.CanFrameFlag.html +58 -27
  75. package/doc/enums/models.CanMessageFilterType.html +8 -6
  76. package/doc/enums/models.CanMode.html +12 -7
  77. package/doc/enums/models.DecimalChar.html +8 -5
  78. package/doc/enums/models.FileConflictAction.html +10 -7
  79. package/doc/enums/models.LinFrameFlag.html +21 -12
  80. package/doc/enums/models.LogFileFormat.html +48 -46
  81. package/doc/enums/models.LogLevel.html +17 -17
  82. package/doc/enums/models.LogReplayState.html +8 -6
  83. package/doc/enums/models.LoggerState.html +10 -7
  84. package/doc/enums/models.Separator.html +8 -5
  85. package/doc/enums/models.SignalEncoding.html +7 -5
  86. package/doc/enums/models.SignalType.html +12 -12
  87. package/doc/enums/models.SignalValueTriggerOperator.html +22 -13
  88. package/doc/enums/models.StatusLevel.html +10 -7
  89. package/doc/enums/models.TimeReference.html +8 -5
  90. package/doc/enums/models.TriggerOperator.html +8 -6
  91. package/doc/functions/controls.CanChannelSelectControl.html +2 -2
  92. package/doc/functions/controls.CanIdentifierControl.html +2 -2
  93. package/doc/functions/controls.CanIdentifierFrameControl.html +2 -2
  94. package/doc/functions/controls.CanIdentifierGeneratorControl.html +2 -2
  95. package/doc/functions/controls.CanIdentifierGeneratorSettingsControl.html +2 -2
  96. package/doc/functions/controls.CanKingDataProvider.html +5 -5
  97. package/doc/functions/controls.CheckboxControl.html +2 -2
  98. package/doc/functions/controls.ColorControl.html +4 -0
  99. package/doc/functions/controls.ColumnItemControl.html +2 -2
  100. package/doc/functions/controls.ContextMenu.html +2 -2
  101. package/doc/functions/controls.DropdownButton.html +2 -2
  102. package/doc/functions/controls.DropdownButtonTextItems.html +2 -2
  103. package/doc/functions/controls.DropdownPanel.html +2 -2
  104. package/doc/functions/controls.FormControlRow.html +2 -2
  105. package/doc/functions/controls.InlineEditor.html +2 -2
  106. package/doc/functions/controls.LinChannelSelectControl.html +2 -2
  107. package/doc/functions/controls.LinIdentifierControl.html +2 -2
  108. package/doc/functions/controls.LinIdentifierFrameControl.html +2 -2
  109. package/doc/functions/controls.LinIdentifierGeneratorControl.html +2 -2
  110. package/doc/functions/controls.LinIdentifierGeneratorSettingsControl.html +2 -2
  111. package/doc/functions/controls.NumberRangeControl.html +2 -2
  112. package/doc/functions/controls.RadioControl.html +2 -2
  113. package/doc/functions/controls.RadioGroupControl.html +2 -2
  114. package/doc/functions/controls.SectionControl.html +2 -2
  115. package/doc/functions/controls.SelectControl.html +2 -2
  116. package/doc/functions/controls.SelectMessageDialog.html +2 -2
  117. package/doc/functions/controls.SelectSignalDialog.html +2 -2
  118. package/doc/functions/controls.SelectSignalsControl.html +2 -0
  119. package/doc/functions/controls.TableControl.html +3 -3
  120. package/doc/functions/controls.TextControl.html +2 -2
  121. package/doc/functions/controls.ToolbarControl.html +2 -2
  122. package/doc/functions/controls.ValidateableTextControl.html +2 -2
  123. package/doc/functions/controls.useColumnItem.html +3 -3
  124. package/doc/functions/controls.useColumnItems.html +3 -3
  125. package/doc/functions/controls.useMessageDatabases.html +2 -2
  126. package/doc/functions/hooks.useAvailableProtocols.html +3 -0
  127. package/doc/functions/hooks.useDevices.html +3 -3
  128. package/doc/functions/hooks.useFixedPositionModeMeasurementData.html +4 -0
  129. package/doc/functions/hooks.useIsOnline.html +3 -3
  130. package/doc/functions/hooks.useLanguage.html +3 -3
  131. package/doc/functions/hooks.useLocalizedStrings.html +3 -3
  132. package/doc/functions/hooks.useLogMessages.html +3 -3
  133. package/doc/functions/hooks.useMaxDataBytes.html +2 -2
  134. package/doc/functions/hooks.useMeasurementSetup.html +3 -3
  135. package/doc/functions/hooks.useMeasurementStatus.html +3 -3
  136. package/doc/functions/hooks.useMessageData.html +8 -0
  137. package/doc/functions/hooks.useMessageLogFileFormats.html +4 -3
  138. package/doc/functions/hooks.useNewMeasurementData.html +4 -3
  139. package/doc/functions/hooks.useNodeStatus.html +3 -3
  140. package/doc/functions/hooks.useNumericRadix.html +3 -3
  141. package/doc/functions/hooks.useOnlineStatus.html +3 -3
  142. package/doc/functions/hooks.useOnlineStatusSync.html +7 -0
  143. package/doc/functions/hooks.useOverallStatusLevel.html +3 -3
  144. package/doc/functions/hooks.useProjectData.html +12 -5
  145. package/doc/functions/hooks.useProjectDataSlice.html +13 -0
  146. package/doc/functions/hooks.useRecentProjectFiles.html +2 -2
  147. package/doc/functions/hooks.useRunningPeriodicTransmissions.html +3 -3
  148. package/doc/functions/hooks.useScrollModeMeasurementData.html +4 -0
  149. package/doc/functions/hooks.useSessionData.html +14 -5
  150. package/doc/functions/hooks.useSessionDataSlice.html +14 -0
  151. package/doc/functions/hooks.useSignalData.html +8 -0
  152. package/doc/functions/hooks.useSignalDataEnvelopes.html +11 -0
  153. package/doc/functions/hooks.useSignalLogFileFormats.html +3 -2
  154. package/doc/functions/hooks.useUndo.html +7 -0
  155. package/doc/functions/hooks.useUndoRef.html +7 -0
  156. package/doc/functions/hooks.useUndoSessionDataSlice.html +9 -0
  157. package/doc/functions/hooks.useUserSettings.html +3 -3
  158. package/doc/functions/hooks.useWorkspacePaneWithId.html +2 -2
  159. package/doc/functions/ipc.addDataProcessor.html +3 -3
  160. package/doc/functions/ipc.addSource.html +3 -3
  161. package/doc/functions/ipc.addTarget.html +3 -3
  162. package/doc/functions/ipc.clearLinMessage.html +3 -3
  163. package/doc/functions/ipc.connectNodes.html +3 -3
  164. package/doc/functions/ipc.deleteDataProcessor.html +3 -3
  165. package/doc/functions/ipc.deleteSource.html +3 -3
  166. package/doc/functions/ipc.deleteTarget.html +3 -3
  167. package/doc/functions/ipc.disableNode.html +3 -3
  168. package/doc/functions/ipc.disconnectNodes.html +3 -3
  169. package/doc/functions/ipc.enableNode.html +3 -3
  170. package/doc/functions/ipc.getFirstAndLatestTimestamp.html +4 -0
  171. package/doc/functions/ipc.getFirstTimestamp.html +3 -0
  172. package/doc/functions/ipc.getFrameDefinitions.html +3 -3
  173. package/doc/functions/ipc.getLatestTimestamp.html +3 -0
  174. package/doc/functions/ipc.getLogger.html +3 -3
  175. package/doc/functions/ipc.getMessageDataBeforeTimestamp.html +7 -0
  176. package/doc/functions/ipc.getMessageLogFileFormats.html +3 -3
  177. package/doc/functions/ipc.getSignalLogFileFormats.html +3 -3
  178. package/doc/functions/ipc.requestLinMessage.html +3 -3
  179. package/doc/functions/ipc.sendCanMessage.html +3 -3
  180. package/doc/functions/ipc.sendMessage.html +3 -3
  181. package/doc/functions/ipc.showMessageBox.html +3 -3
  182. package/doc/functions/ipc.showQuestionBox.html +3 -3
  183. package/doc/functions/ipc.startLogReplay.html +3 -3
  184. package/doc/functions/ipc.startMeasurement.html +2 -2
  185. package/doc/functions/ipc.startPeriodicTransmission.html +3 -3
  186. package/doc/functions/ipc.stopLogReplay.html +3 -3
  187. package/doc/functions/ipc.stopMeasurement.html +2 -2
  188. package/doc/functions/ipc.stopPeriodicTransmission.html +3 -3
  189. package/doc/functions/ipc.updateDataProcessor.html +3 -3
  190. package/doc/functions/ipc.updateLinMessage.html +3 -3
  191. package/doc/functions/ipc.updatePeriodicTransmission.html +3 -3
  192. package/doc/functions/ipc.updateSource.html +3 -3
  193. package/doc/functions/ipc.updateTarget.html +3 -3
  194. package/doc/functions/models.decimalToFixed.html +5 -1
  195. package/doc/functions/models.decimalToHex.html +6 -1
  196. package/doc/functions/models.deep_equal.html +5 -0
  197. package/doc/functions/models.deserializeFrame.html +4 -0
  198. package/doc/functions/models.jsonReplacer.html +6 -0
  199. package/doc/functions/models.jsonReviver.html +6 -0
  200. package/doc/functions/models.longToNumber.html +4 -1
  201. package/doc/functions/models.serializeFrame.html +4 -0
  202. package/doc/hierarchy.html +1 -1
  203. package/doc/index.html +6 -6
  204. package/doc/interfaces/controls.ButtonGroupProps.html +10 -10
  205. package/doc/interfaces/controls.ButtonProps.html +22 -22
  206. package/doc/interfaces/controls.CanChannelSelectControlProps.html +20 -20
  207. package/doc/interfaces/controls.CanIdentifierControlProps.html +54 -37
  208. package/doc/interfaces/controls.CanIdentifierFrameControlProps.html +34 -33
  209. package/doc/interfaces/controls.CanIdentifierGeneratorControlProps.html +42 -33
  210. package/doc/interfaces/controls.CanIdentifierGeneratorSettingsControlProps.html +34 -25
  211. package/doc/interfaces/controls.CheckboxControlProps.html +22 -17
  212. package/doc/interfaces/controls.ContextMenuProps.html +9 -9
  213. package/doc/interfaces/controls.DropdownButtonChildrenProps.html +4 -4
  214. package/doc/interfaces/controls.DropdownButtonProps.html +20 -20
  215. package/doc/interfaces/controls.DropdownButtonTextItemsProps.html +9 -9
  216. package/doc/interfaces/controls.DropdownPanelProps.html +20 -20
  217. package/doc/interfaces/controls.FormControlRowProps.html +8 -8
  218. package/doc/interfaces/controls.IExtensionWorkspaceViewProps.html +2 -0
  219. package/doc/interfaces/controls.ILocalizedStrings.html +2 -3
  220. package/doc/interfaces/controls.IMessageDatabase.html +2 -4
  221. package/doc/interfaces/controls.InlineEditorProps.html +13 -13
  222. package/doc/interfaces/controls.LabelProps.html +6 -6
  223. package/doc/interfaces/controls.LinChannelSelectControlProps.html +20 -20
  224. package/doc/interfaces/controls.LinIdentifierControlProps.html +45 -35
  225. package/doc/interfaces/controls.LinIdentifierFrameControlProps.html +34 -33
  226. package/doc/interfaces/controls.LinIdentifierGeneratorControlProps.html +40 -31
  227. package/doc/interfaces/controls.LinIdentifierGeneratorSettingsControlProps.html +34 -25
  228. package/doc/interfaces/controls.NumberRangeControlProps.html +38 -38
  229. package/doc/interfaces/controls.RadioControlProps.html +14 -14
  230. package/doc/interfaces/controls.RadioGroupControlProps.html +9 -9
  231. package/doc/interfaces/controls.SectionControlProps.html +17 -17
  232. package/doc/interfaces/controls.SelectControlProps.html +31 -31
  233. package/doc/interfaces/controls.SelectMessageDialogProps.html +19 -8
  234. package/doc/interfaces/controls.SelectSignalDialogProps.html +71 -12
  235. package/doc/interfaces/controls.SelectSignalsControlProps.html +22 -0
  236. package/doc/interfaces/controls.SelectedSignalInfo.html +6 -0
  237. package/doc/interfaces/controls.SelectedSignalInfoChangeArgs.html +9 -0
  238. package/doc/interfaces/controls.TableColumn.html +12 -12
  239. package/doc/interfaces/controls.TableControlProps.html +30 -30
  240. package/doc/interfaces/controls.TextControlProps.html +41 -41
  241. package/doc/interfaces/controls.ToggleButtonGroupProps.html +17 -17
  242. package/doc/interfaces/controls.ToggleButtonProps.html +14 -14
  243. package/doc/interfaces/controls.ToolbarControlProps.html +18 -18
  244. package/doc/interfaces/controls.ValidateableTextControlProps.html +54 -54
  245. package/doc/interfaces/controls.toolbarItem.html +14 -12
  246. package/doc/interfaces/hooks.IEnvelopeView.html +12 -0
  247. package/doc/interfaces/hooks.ISignalData.html +19 -0
  248. package/doc/interfaces/hooks.ISignalDataEnvelope.html +14 -0
  249. package/doc/interfaces/hooks.IUndoObject.html +27 -0
  250. package/doc/interfaces/hooks.IUndoState.html +9 -0
  251. package/doc/interfaces/ipc.ILogger.html +2 -8
  252. package/doc/interfaces/models.BaseNodeProperties.html +14 -8
  253. package/doc/interfaces/models.BusStatus.html +32 -17
  254. package/doc/interfaces/models.CanBusParamLimits.html +12 -7
  255. package/doc/interfaces/models.CanBusParams.html +14 -8
  256. package/doc/interfaces/models.CanChannelCapacity.html +10 -7
  257. package/doc/interfaces/models.CanChannelConfiguration.html +46 -16
  258. package/doc/interfaces/models.CanFrameFlags.html +4 -3
  259. package/doc/interfaces/models.CanMessageFilterSettings.html +8 -5
  260. package/doc/interfaces/models.Channel.html +12 -7
  261. package/doc/interfaces/models.ChannelSettings.html +22 -20
  262. package/doc/interfaces/models.DataProcessingStatus.html +10 -6
  263. package/doc/interfaces/models.DataProcessorNodeProperties.html +14 -8
  264. package/doc/interfaces/models.DatabasesSettings.html +4 -3
  265. package/doc/interfaces/models.Device.html +16 -9
  266. package/doc/interfaces/models.Devices.html +4 -2
  267. package/doc/interfaces/models.Empty.html +2 -2
  268. package/doc/interfaces/models.ErrorStatus.html +4 -4
  269. package/doc/interfaces/models.FixedPosFrameIdentifier.html +14 -0
  270. package/doc/interfaces/models.Frame.html +41 -30
  271. package/doc/interfaces/models.FrameDefinition.html +16 -14
  272. package/doc/interfaces/models.FrameDefinitions.html +4 -2
  273. package/doc/interfaces/models.FramePropertyValue.html +6 -4
  274. package/doc/interfaces/models.FrameReceivedTrigger.html +8 -6
  275. package/doc/interfaces/models.Frames.html +4 -2
  276. package/doc/interfaces/models.IUserSettings.html +2 -17
  277. package/doc/interfaces/models.IWorkspaceComponentPaneData.html +2 -4
  278. package/doc/interfaces/models.IWorkspaceContainerPaneData.html +2 -5
  279. package/doc/interfaces/models.IWorkspacePaneData.html +2 -5
  280. package/doc/interfaces/models.InterpreterSettings.html +4 -4
  281. package/doc/interfaces/models.J1939InterpreterSettings.html +2 -2
  282. package/doc/interfaces/models.LinChannelConfiguration.html +14 -14
  283. package/doc/interfaces/models.LinFrameFlags.html +4 -3
  284. package/doc/interfaces/models.LogMessage.html +12 -12
  285. package/doc/interfaces/models.LogMessages.html +4 -4
  286. package/doc/interfaces/models.LogReplaySettings.html +26 -26
  287. package/doc/interfaces/models.LogReplayStatus.html +4 -3
  288. package/doc/interfaces/models.LoggerStatus.html +4 -3
  289. package/doc/interfaces/models.MeasurementSetup.html +10 -6
  290. package/doc/interfaces/models.MessageLoggerSettings.html +44 -44
  291. package/doc/interfaces/models.NodeStatus.html +18 -18
  292. package/doc/interfaces/models.NodeStatuses.html +4 -3
  293. package/doc/interfaces/models.OnlineStatus.html +6 -3
  294. package/doc/interfaces/models.PeriodicTransmissionSettings.html +36 -36
  295. package/doc/interfaces/models.ServiceExtensionSettings.html +6 -4
  296. package/doc/interfaces/models.SignalDefinition.html +34 -18
  297. package/doc/interfaces/models.SignalDefinitions.html +4 -2
  298. package/doc/interfaces/models.SignalFilterSettings.html +6 -4
  299. package/doc/interfaces/models.SignalLoggerSettings.html +56 -56
  300. package/doc/interfaces/models.SignalValue.html +12 -7
  301. package/doc/interfaces/models.SignalValueTrigger.html +18 -16
  302. package/doc/interfaces/models.SourceNodeProperties.html +12 -7
  303. package/doc/interfaces/models.TargetNodeProperties.html +12 -6
  304. package/doc/interfaces/models.TdcConfiguration.html +17 -0
  305. package/doc/interfaces/models.TriggerSettings.html +8 -8
  306. package/doc/interfaces/models.WriteFrame.html +10 -10
  307. package/doc/modules/controls.html +3 -3
  308. package/doc/modules/hooks.html +3 -3
  309. package/doc/modules/ipc.html +2 -2
  310. package/doc/modules/models.html +2 -2
  311. package/doc/modules.html +1 -1
  312. package/doc/types/controls.ContextMenuOption.html +10 -6
  313. package/doc/types/controls.SelectOption.html +6 -4
  314. package/doc/types/controls.StringsMap.html +2 -2
  315. package/doc/types/controls.canIdentifierGeneratorType.html +2 -2
  316. package/doc/types/controls.canIdentifierType.html +2 -2
  317. package/doc/types/controls.linIdentifierGeneratorType.html +2 -2
  318. package/doc/types/hooks.OnGoingOfflineCallback.html +6 -0
  319. package/doc/types/hooks.OnGoingOnlineCallback.html +6 -0
  320. package/doc/types/models.SerializableFrame.html +2 -0
  321. package/doc/variables/controls.FillBox.html +3 -0
  322. package/doc/variables/controls.OneLineButton.html +2 -0
  323. package/doc/variables/controls.SizedBox.html +3 -0
  324. package/doc/variables/controls.TabsPanel.html +2 -0
  325. package/doc/variables/models.defaultUserSettings.html +2 -2
  326. package/doc_md/README.md +189 -0
  327. package/doc_md/assets/favicon.png +0 -0
  328. package/doc_md/controls/README.md +162 -0
  329. package/doc_md/controls/functions/CanChannelSelectControl.md +25 -0
  330. package/doc_md/controls/functions/CanIdentifierControl.md +25 -0
  331. package/doc_md/controls/functions/CanIdentifierFrameControl.md +25 -0
  332. package/doc_md/controls/functions/CanIdentifierGeneratorControl.md +25 -0
  333. package/doc_md/controls/functions/CanIdentifierGeneratorSettingsControl.md +26 -0
  334. package/doc_md/controls/functions/CanKingDataProvider.md +47 -0
  335. package/doc_md/controls/functions/CheckboxControl.md +25 -0
  336. package/doc_md/controls/functions/ColorControl.md +25 -0
  337. package/doc_md/controls/functions/ColumnItemControl.md +21 -0
  338. package/doc_md/controls/functions/ContextMenu.md +25 -0
  339. package/doc_md/controls/functions/DropdownButton.md +25 -0
  340. package/doc_md/controls/functions/DropdownButtonTextItems.md +25 -0
  341. package/doc_md/controls/functions/DropdownPanel.md +25 -0
  342. package/doc_md/controls/functions/FormControlRow.md +25 -0
  343. package/doc_md/controls/functions/InlineEditor.md +25 -0
  344. package/doc_md/controls/functions/LinChannelSelectControl.md +25 -0
  345. package/doc_md/controls/functions/LinIdentifierControl.md +25 -0
  346. package/doc_md/controls/functions/LinIdentifierFrameControl.md +25 -0
  347. package/doc_md/controls/functions/LinIdentifierGeneratorControl.md +25 -0
  348. package/doc_md/controls/functions/LinIdentifierGeneratorSettingsControl.md +26 -0
  349. package/doc_md/controls/functions/NumberRangeControl.md +25 -0
  350. package/doc_md/controls/functions/RadioControl.md +25 -0
  351. package/doc_md/controls/functions/RadioGroupControl.md +25 -0
  352. package/doc_md/controls/functions/SectionControl.md +25 -0
  353. package/doc_md/controls/functions/SelectControl.md +25 -0
  354. package/doc_md/controls/functions/SelectMessageDialog.md +21 -0
  355. package/doc_md/controls/functions/SelectSignalDialog.md +21 -0
  356. package/doc_md/controls/functions/SelectSignalsControl.md +21 -0
  357. package/doc_md/controls/functions/TableControl.md +31 -0
  358. package/doc_md/controls/functions/TextControl.md +25 -0
  359. package/doc_md/controls/functions/ToolbarControl.md +25 -0
  360. package/doc_md/controls/functions/ValidateableTextControl.md +25 -0
  361. package/doc_md/controls/functions/useColumnItem.md +17 -0
  362. package/doc_md/controls/functions/useColumnItems.md +25 -0
  363. package/doc_md/controls/functions/useMessageDatabases.md +21 -0
  364. package/doc_md/controls/interfaces/ButtonGroupProps.md +41 -0
  365. package/doc_md/controls/interfaces/ButtonProps.md +93 -0
  366. package/doc_md/controls/interfaces/CanChannelSelectControlProps.md +103 -0
  367. package/doc_md/controls/interfaces/CanIdentifierControlProps.md +251 -0
  368. package/doc_md/controls/interfaces/CanIdentifierFrameControlProps.md +152 -0
  369. package/doc_md/controls/interfaces/CanIdentifierGeneratorControlProps.md +219 -0
  370. package/doc_md/controls/interfaces/CanIdentifierGeneratorSettingsControlProps.md +162 -0
  371. package/doc_md/controls/interfaces/CheckboxControlProps.md +94 -0
  372. package/doc_md/controls/interfaces/ContextMenuProps.md +45 -0
  373. package/doc_md/controls/interfaces/DropdownButtonChildrenProps.md +25 -0
  374. package/doc_md/controls/interfaces/DropdownButtonProps.md +81 -0
  375. package/doc_md/controls/interfaces/DropdownButtonTextItemsProps.md +70 -0
  376. package/doc_md/controls/interfaces/DropdownPanelProps.md +81 -0
  377. package/doc_md/controls/interfaces/FormControlRowProps.md +33 -0
  378. package/doc_md/controls/interfaces/IExtensionWorkspaceViewProps.md +9 -0
  379. package/doc_md/controls/interfaces/ILocalizedStrings.md +9 -0
  380. package/doc_md/controls/interfaces/IMessageDatabase.md +9 -0
  381. package/doc_md/controls/interfaces/InlineEditorProps.md +61 -0
  382. package/doc_md/controls/interfaces/LabelProps.md +25 -0
  383. package/doc_md/controls/interfaces/LinChannelSelectControlProps.md +97 -0
  384. package/doc_md/controls/interfaces/LinIdentifierControlProps.md +203 -0
  385. package/doc_md/controls/interfaces/LinIdentifierFrameControlProps.md +152 -0
  386. package/doc_md/controls/interfaces/LinIdentifierGeneratorControlProps.md +207 -0
  387. package/doc_md/controls/interfaces/LinIdentifierGeneratorSettingsControlProps.md +162 -0
  388. package/doc_md/controls/interfaces/NumberRangeControlProps.md +253 -0
  389. package/doc_md/controls/interfaces/RadioControlProps.md +57 -0
  390. package/doc_md/controls/interfaces/RadioGroupControlProps.md +45 -0
  391. package/doc_md/controls/interfaces/SectionControlProps.md +77 -0
  392. package/doc_md/controls/interfaces/SelectControlProps.md +134 -0
  393. package/doc_md/controls/interfaces/SelectMessageDialogProps.md +86 -0
  394. package/doc_md/controls/interfaces/SelectSignalDialogProps.md +232 -0
  395. package/doc_md/controls/interfaces/SelectSignalsControlProps.md +119 -0
  396. package/doc_md/controls/interfaces/SelectedSignalInfo.md +29 -0
  397. package/doc_md/controls/interfaces/SelectedSignalInfoChangeArgs.md +46 -0
  398. package/doc_md/controls/interfaces/TableColumn.md +65 -0
  399. package/doc_md/controls/interfaces/TableControlProps.md +157 -0
  400. package/doc_md/controls/interfaces/TextControlProps.md +177 -0
  401. package/doc_md/controls/interfaces/ToggleButtonGroupProps.md +77 -0
  402. package/doc_md/controls/interfaces/ToggleButtonProps.md +57 -0
  403. package/doc_md/controls/interfaces/ToolbarControlProps.md +73 -0
  404. package/doc_md/controls/interfaces/ValidateableTextControlProps.md +269 -0
  405. package/doc_md/controls/interfaces/toolbarItem.md +57 -0
  406. package/doc_md/controls/type-aliases/ContextMenuOption.md +43 -0
  407. package/doc_md/controls/type-aliases/SelectOption.md +27 -0
  408. package/doc_md/controls/type-aliases/StringsMap.md +15 -0
  409. package/doc_md/controls/type-aliases/canIdentifierGeneratorType.md +11 -0
  410. package/doc_md/controls/type-aliases/canIdentifierType.md +11 -0
  411. package/doc_md/controls/type-aliases/linIdentifierGeneratorType.md +11 -0
  412. package/doc_md/controls/variables/FillBox.md +12 -0
  413. package/doc_md/controls/variables/OneLineButton.md +11 -0
  414. package/doc_md/controls/variables/SizedBox.md +12 -0
  415. package/doc_md/controls/variables/TabsPanel.md +11 -0
  416. package/doc_md/hooks/README.md +70 -0
  417. package/doc_md/hooks/functions/useAvailableProtocols.md +17 -0
  418. package/doc_md/hooks/functions/useDevices.md +17 -0
  419. package/doc_md/hooks/functions/useFixedPositionModeMeasurementData.md +25 -0
  420. package/doc_md/hooks/functions/useIsOnline.md +17 -0
  421. package/doc_md/hooks/functions/useLanguage.md +17 -0
  422. package/doc_md/hooks/functions/useLocalizedStrings.md +17 -0
  423. package/doc_md/hooks/functions/useLogMessages.md +17 -0
  424. package/doc_md/hooks/functions/useMaxDataBytes.md +15 -0
  425. package/doc_md/hooks/functions/useMeasurementSetup.md +17 -0
  426. package/doc_md/hooks/functions/useMeasurementStatus.md +17 -0
  427. package/doc_md/hooks/functions/useMessageData.md +42 -0
  428. package/doc_md/hooks/functions/useMessageLogFileFormats.md +25 -0
  429. package/doc_md/hooks/functions/useNewMeasurementData.md +35 -0
  430. package/doc_md/hooks/functions/useNodeStatus.md +23 -0
  431. package/doc_md/hooks/functions/useNumericRadix.md +17 -0
  432. package/doc_md/hooks/functions/useOnlineStatus.md +17 -0
  433. package/doc_md/hooks/functions/useOnlineStatusSync.md +43 -0
  434. package/doc_md/hooks/functions/useOverallStatusLevel.md +17 -0
  435. package/doc_md/hooks/functions/useProjectData.md +59 -0
  436. package/doc_md/hooks/functions/useProjectDataSlice.md +58 -0
  437. package/doc_md/hooks/functions/useRecentProjectFiles.md +15 -0
  438. package/doc_md/hooks/functions/useRunningPeriodicTransmissions.md +17 -0
  439. package/doc_md/hooks/functions/useScrollModeMeasurementData.md +25 -0
  440. package/doc_md/hooks/functions/useSessionData.md +67 -0
  441. package/doc_md/hooks/functions/useSessionDataSlice.md +60 -0
  442. package/doc_md/hooks/functions/useSignalData.md +42 -0
  443. package/doc_md/hooks/functions/useSignalDataEnvelopes.md +50 -0
  444. package/doc_md/hooks/functions/useSignalLogFileFormats.md +17 -0
  445. package/doc_md/hooks/functions/useUndo.md +38 -0
  446. package/doc_md/hooks/functions/useUndoRef.md +38 -0
  447. package/doc_md/hooks/functions/useUndoSessionDataSlice.md +50 -0
  448. package/doc_md/hooks/functions/useUserSettings.md +17 -0
  449. package/doc_md/hooks/functions/useWorkspacePaneWithId.md +21 -0
  450. package/doc_md/hooks/interfaces/IEnvelopeView.md +49 -0
  451. package/doc_md/hooks/interfaces/ISignalData.md +77 -0
  452. package/doc_md/hooks/interfaces/ISignalDataEnvelope.md +51 -0
  453. package/doc_md/hooks/interfaces/IUndoObject.md +155 -0
  454. package/doc_md/hooks/interfaces/IUndoState.md +41 -0
  455. package/doc_md/hooks/type-aliases/OnGoingOfflineCallback.md +36 -0
  456. package/doc_md/hooks/type-aliases/OnGoingOnlineCallback.md +36 -0
  457. package/doc_md/ipc/README.md +51 -0
  458. package/doc_md/ipc/functions/addDataProcessor.md +35 -0
  459. package/doc_md/ipc/functions/addSource.md +23 -0
  460. package/doc_md/ipc/functions/addTarget.md +23 -0
  461. package/doc_md/ipc/functions/clearLinMessage.md +29 -0
  462. package/doc_md/ipc/functions/connectNodes.md +29 -0
  463. package/doc_md/ipc/functions/deleteDataProcessor.md +23 -0
  464. package/doc_md/ipc/functions/deleteSource.md +23 -0
  465. package/doc_md/ipc/functions/deleteTarget.md +23 -0
  466. package/doc_md/ipc/functions/disableNode.md +23 -0
  467. package/doc_md/ipc/functions/disconnectNodes.md +29 -0
  468. package/doc_md/ipc/functions/enableNode.md +23 -0
  469. package/doc_md/ipc/functions/getFirstAndLatestTimestamp.md +18 -0
  470. package/doc_md/ipc/functions/getFirstTimestamp.md +17 -0
  471. package/doc_md/ipc/functions/getFrameDefinitions.md +26 -0
  472. package/doc_md/ipc/functions/getLatestTimestamp.md +17 -0
  473. package/doc_md/ipc/functions/getLogger.md +25 -0
  474. package/doc_md/ipc/functions/getMessageDataBeforeTimestamp.md +38 -0
  475. package/doc_md/ipc/functions/getMessageLogFileFormats.md +17 -0
  476. package/doc_md/ipc/functions/getSignalLogFileFormats.md +17 -0
  477. package/doc_md/ipc/functions/requestLinMessage.md +30 -0
  478. package/doc_md/ipc/functions/sendCanMessage.md +41 -0
  479. package/doc_md/ipc/functions/sendMessage.md +29 -0
  480. package/doc_md/ipc/functions/showMessageBox.md +29 -0
  481. package/doc_md/ipc/functions/showQuestionBox.md +51 -0
  482. package/doc_md/ipc/functions/startLogReplay.md +23 -0
  483. package/doc_md/ipc/functions/startMeasurement.md +15 -0
  484. package/doc_md/ipc/functions/startPeriodicTransmission.md +25 -0
  485. package/doc_md/ipc/functions/stopLogReplay.md +23 -0
  486. package/doc_md/ipc/functions/stopMeasurement.md +15 -0
  487. package/doc_md/ipc/functions/stopPeriodicTransmission.md +23 -0
  488. package/doc_md/ipc/functions/updateDataProcessor.md +23 -0
  489. package/doc_md/ipc/functions/updateLinMessage.md +29 -0
  490. package/doc_md/ipc/functions/updatePeriodicTransmission.md +29 -0
  491. package/doc_md/ipc/functions/updateSource.md +23 -0
  492. package/doc_md/ipc/functions/updateTarget.md +23 -0
  493. package/doc_md/ipc/interfaces/ILogger.md +9 -0
  494. package/doc_md/models/README.md +109 -0
  495. package/doc_md/models/enumerations/AccessMode.md +52 -0
  496. package/doc_md/models/enumerations/CanChannelCap.md +181 -0
  497. package/doc_md/models/enumerations/CanConfigMode.md +69 -0
  498. package/doc_md/models/enumerations/CanFrameFlag.md +226 -0
  499. package/doc_md/models/enumerations/CanMessageFilterType.md +37 -0
  500. package/doc_md/models/enumerations/CanMode.md +53 -0
  501. package/doc_md/models/enumerations/DecimalChar.md +37 -0
  502. package/doc_md/models/enumerations/FileConflictAction.md +45 -0
  503. package/doc_md/models/enumerations/LinFrameFlag.md +87 -0
  504. package/doc_md/models/enumerations/LogFileFormat.md +199 -0
  505. package/doc_md/models/enumerations/LogLevel.md +76 -0
  506. package/doc_md/models/enumerations/LogReplayState.md +37 -0
  507. package/doc_md/models/enumerations/LoggerState.md +45 -0
  508. package/doc_md/models/enumerations/Separator.md +37 -0
  509. package/doc_md/models/enumerations/SignalEncoding.md +31 -0
  510. package/doc_md/models/enumerations/SignalType.md +53 -0
  511. package/doc_md/models/enumerations/SignalValueTriggerOperator.md +93 -0
  512. package/doc_md/models/enumerations/StatusLevel.md +45 -0
  513. package/doc_md/models/enumerations/TimeReference.md +37 -0
  514. package/doc_md/models/enumerations/TriggerOperator.md +37 -0
  515. package/doc_md/models/functions/decimalToFixed.md +31 -0
  516. package/doc_md/models/functions/decimalToHex.md +37 -0
  517. package/doc_md/models/functions/deep_equal.md +37 -0
  518. package/doc_md/models/functions/deserializeFrame.md +25 -0
  519. package/doc_md/models/functions/jsonReplacer.md +32 -0
  520. package/doc_md/models/functions/jsonReviver.md +32 -0
  521. package/doc_md/models/functions/longToNumber.md +25 -0
  522. package/doc_md/models/functions/serializeFrame.md +25 -0
  523. package/doc_md/models/interfaces/BaseNodeProperties.md +57 -0
  524. package/doc_md/models/interfaces/BusStatus.md +129 -0
  525. package/doc_md/models/interfaces/CanBusParamLimits.md +49 -0
  526. package/doc_md/models/interfaces/CanBusParams.md +78 -0
  527. package/doc_md/models/interfaces/CanChannelCapacity.md +41 -0
  528. package/doc_md/models/interfaces/CanChannelConfiguration.md +164 -0
  529. package/doc_md/models/interfaces/CanFrameFlags.md +18 -0
  530. package/doc_md/models/interfaces/CanMessageFilterSettings.md +33 -0
  531. package/doc_md/models/interfaces/Channel.md +49 -0
  532. package/doc_md/models/interfaces/ChannelSettings.md +89 -0
  533. package/doc_md/models/interfaces/DataProcessingStatus.md +41 -0
  534. package/doc_md/models/interfaces/DataProcessorNodeProperties.md +57 -0
  535. package/doc_md/models/interfaces/DatabasesSettings.md +17 -0
  536. package/doc_md/models/interfaces/Device.md +65 -0
  537. package/doc_md/models/interfaces/Devices.md +17 -0
  538. package/doc_md/models/interfaces/Empty.md +17 -0
  539. package/doc_md/models/interfaces/ErrorStatus.md +17 -0
  540. package/doc_md/models/interfaces/FixedPosFrameIdentifier.md +57 -0
  541. package/doc_md/models/interfaces/Frame.md +169 -0
  542. package/doc_md/models/interfaces/FrameDefinition.md +65 -0
  543. package/doc_md/models/interfaces/FrameDefinitions.md +17 -0
  544. package/doc_md/models/interfaces/FramePropertyValue.md +25 -0
  545. package/doc_md/models/interfaces/FrameReceivedTrigger.md +33 -0
  546. package/doc_md/models/interfaces/Frames.md +17 -0
  547. package/doc_md/models/interfaces/IUserSettings.md +9 -0
  548. package/doc_md/models/interfaces/IWorkspaceComponentPaneData.md +9 -0
  549. package/doc_md/models/interfaces/IWorkspaceContainerPaneData.md +9 -0
  550. package/doc_md/models/interfaces/IWorkspacePaneData.md +9 -0
  551. package/doc_md/models/interfaces/InterpreterSettings.md +17 -0
  552. package/doc_md/models/interfaces/J1939InterpreterSettings.md +9 -0
  553. package/doc_md/models/interfaces/LinChannelConfiguration.md +57 -0
  554. package/doc_md/models/interfaces/LinFrameFlags.md +18 -0
  555. package/doc_md/models/interfaces/LogMessage.md +49 -0
  556. package/doc_md/models/interfaces/LogMessages.md +17 -0
  557. package/doc_md/models/interfaces/LogReplaySettings.md +109 -0
  558. package/doc_md/models/interfaces/LogReplayStatus.md +17 -0
  559. package/doc_md/models/interfaces/LoggerStatus.md +17 -0
  560. package/doc_md/models/interfaces/MeasurementSetup.md +41 -0
  561. package/doc_md/models/interfaces/MessageLoggerSettings.md +177 -0
  562. package/doc_md/models/interfaces/NodeStatus.md +73 -0
  563. package/doc_md/models/interfaces/NodeStatuses.md +17 -0
  564. package/doc_md/models/interfaces/OnlineStatus.md +25 -0
  565. package/doc_md/models/interfaces/PeriodicTransmissionSettings.md +145 -0
  566. package/doc_md/models/interfaces/ServiceExtensionSettings.md +25 -0
  567. package/doc_md/models/interfaces/SignalDefinition.md +141 -0
  568. package/doc_md/models/interfaces/SignalDefinitions.md +17 -0
  569. package/doc_md/models/interfaces/SignalFilterSettings.md +25 -0
  570. package/doc_md/models/interfaces/SignalLoggerSettings.md +225 -0
  571. package/doc_md/models/interfaces/SignalValue.md +49 -0
  572. package/doc_md/models/interfaces/SignalValueTrigger.md +73 -0
  573. package/doc_md/models/interfaces/SourceNodeProperties.md +49 -0
  574. package/doc_md/models/interfaces/TargetNodeProperties.md +49 -0
  575. package/doc_md/models/interfaces/TdcConfiguration.md +33 -0
  576. package/doc_md/models/interfaces/TriggerSettings.md +33 -0
  577. package/doc_md/models/interfaces/WriteFrame.md +41 -0
  578. package/doc_md/models/type-aliases/SerializableFrame.md +33 -0
  579. package/doc_md/models/variables/defaultUserSettings.md +11 -0
  580. package/doc_md/modules.md +12 -0
  581. package/package.json +19 -6
  582. package/dist/ElectronAPIFake.js +0 -1
  583. package/dist/ElectronAPIFake.mjs +0 -272
  584. package/dist/controls/SelectSignalControl.d.ts +0 -11
  585. package/dist/measurement_settings.js +0 -1
  586. package/dist/measurement_settings.mjs +0 -6021
  587. package/doc/classes/controls.LocalizedStrings.html +0 -4
  588. package/doc/classes/models.DataBuffer.html +0 -32
  589. package/doc/classes/models.DataBufferView.html +0 -20
  590. package/doc/classes/models.Point.html +0 -14
  591. package/doc/enums/models.AppEvent.html +0 -6
  592. package/doc/enums/models.DeviceEvent.html +0 -6
  593. package/doc/enums/models.FileType.html +0 -7
  594. package/doc/enums/models.MeasurementEvent.html +0 -12
  595. package/doc/enums/models.Protocols.html +0 -9
  596. package/doc/functions/controls.FillBox.html +0 -33
  597. package/doc/functions/controls.OneLineButton.html +0 -32
  598. package/doc/functions/controls.SelectSignalControl.html +0 -1
  599. package/doc/functions/controls.SizedBox.html +0 -33
  600. package/doc/functions/controls.TabsPanel.html +0 -32
  601. package/doc/functions/icons.AddIcon.html +0 -4
  602. package/doc/functions/icons.ArrowDownIcon.html +0 -4
  603. package/doc/functions/icons.ArrowLeftIcon.html +0 -4
  604. package/doc/functions/icons.ArrowRightIcon.html +0 -4
  605. package/doc/functions/icons.ArrowUpIcon.html +0 -4
  606. package/doc/functions/icons.BusIsOffIcon.html +0 -4
  607. package/doc/functions/icons.BusIsOnIcon.html +0 -4
  608. package/doc/functions/icons.CloseIcon.html +0 -4
  609. package/doc/functions/icons.ColumnSettingsIcon.html +0 -4
  610. package/doc/functions/icons.CopyIcon.html +0 -4
  611. package/doc/functions/icons.DarkModeIcon.html +0 -4
  612. package/doc/functions/icons.DeleteIcon.html +0 -4
  613. package/doc/functions/icons.DisableIcon.html +0 -4
  614. package/doc/functions/icons.EditIcon.html +0 -4
  615. package/doc/functions/icons.EnableIcon.html +0 -4
  616. package/doc/functions/icons.FilterIcon.html +0 -4
  617. package/doc/functions/icons.FixedPositionIcon.html +0 -4
  618. package/doc/functions/icons.LeaveFullScreenIcon.html +0 -4
  619. package/doc/functions/icons.LightModeIcon.html +0 -4
  620. package/doc/functions/icons.LineArrowDownIcon.html +0 -4
  621. package/doc/functions/icons.LineArrowUpIcon.html +0 -4
  622. package/doc/functions/icons.MaximizeWindowIcon.html +0 -4
  623. package/doc/functions/icons.MeasurementSetupIcon.html +0 -4
  624. package/doc/functions/icons.MoreHorizIcon.html +0 -4
  625. package/doc/functions/icons.MoreVertIcon.html +0 -4
  626. package/doc/functions/icons.NewIcon.html +0 -4
  627. package/doc/functions/icons.OpenExternallyIcon.html +0 -4
  628. package/doc/functions/icons.OpenIcon.html +0 -4
  629. package/doc/functions/icons.PauseIcon.html +0 -4
  630. package/doc/functions/icons.PlayIcon.html +0 -4
  631. package/doc/functions/icons.PlaySolidIcon.html +0 -4
  632. package/doc/functions/icons.SaveIcon.html +0 -4
  633. package/doc/functions/icons.SelectAllIcon.html +0 -4
  634. package/doc/functions/icons.ServiceIconActive.html +0 -4
  635. package/doc/functions/icons.ServiceIconInactive.html +0 -4
  636. package/doc/functions/icons.SettingsIcon.html +0 -4
  637. package/doc/functions/icons.StopIcon.html +0 -4
  638. package/doc/functions/icons.StopSolidIcon.html +0 -4
  639. package/doc/functions/icons.ToolsPanelHiddenIcon.html +0 -4
  640. package/doc/functions/icons.ToolsPanelVisibleIcon.html +0 -4
  641. package/doc/functions/icons.UnmaximizeWindowIcon.html +0 -4
  642. package/doc/functions/icons.WorkspacesIcon.html +0 -4
  643. package/doc/functions/models.accessModeFromJSON.html +0 -1
  644. package/doc/functions/models.accessModeToJSON.html +0 -1
  645. package/doc/functions/models.appEventFromJSON.html +0 -1
  646. package/doc/functions/models.appEventToJSON.html +0 -1
  647. package/doc/functions/models.canChannelCapFromJSON.html +0 -1
  648. package/doc/functions/models.canChannelCapToJSON.html +0 -1
  649. package/doc/functions/models.canFrameFlagFromJSON.html +0 -1
  650. package/doc/functions/models.canFrameFlagToJSON.html +0 -1
  651. package/doc/functions/models.canMessageFilterTypeFromJSON.html +0 -1
  652. package/doc/functions/models.canMessageFilterTypeToJSON.html +0 -1
  653. package/doc/functions/models.canModeFromJSON.html +0 -1
  654. package/doc/functions/models.canModeToJSON.html +0 -1
  655. package/doc/functions/models.createElectronApiFake.html +0 -4
  656. package/doc/functions/models.decimalCharFromJSON.html +0 -1
  657. package/doc/functions/models.decimalCharToJSON.html +0 -1
  658. package/doc/functions/models.deviceEventFromJSON.html +0 -1
  659. package/doc/functions/models.deviceEventToJSON.html +0 -1
  660. package/doc/functions/models.fileConflictActionFromJSON.html +0 -1
  661. package/doc/functions/models.fileConflictActionToJSON.html +0 -1
  662. package/doc/functions/models.fileTypeFromJSON.html +0 -1
  663. package/doc/functions/models.fileTypeToJSON.html +0 -1
  664. package/doc/functions/models.linFrameFlagFromJSON.html +0 -1
  665. package/doc/functions/models.linFrameFlagToJSON.html +0 -1
  666. package/doc/functions/models.logFileFormatFromJSON.html +0 -1
  667. package/doc/functions/models.logFileFormatToJSON.html +0 -1
  668. package/doc/functions/models.logLevelFromJSON.html +0 -1
  669. package/doc/functions/models.logLevelToJSON.html +0 -1
  670. package/doc/functions/models.logReplayStateFromJSON.html +0 -1
  671. package/doc/functions/models.logReplayStateToJSON.html +0 -1
  672. package/doc/functions/models.loggerStateFromJSON.html +0 -1
  673. package/doc/functions/models.loggerStateToJSON.html +0 -1
  674. package/doc/functions/models.measurementEventFromJSON.html +0 -1
  675. package/doc/functions/models.measurementEventToJSON.html +0 -1
  676. package/doc/functions/models.protocolsFromJSON.html +0 -1
  677. package/doc/functions/models.protocolsToJSON.html +0 -1
  678. package/doc/functions/models.separatorFromJSON.html +0 -1
  679. package/doc/functions/models.separatorToJSON.html +0 -1
  680. package/doc/functions/models.signalEncodingFromJSON.html +0 -1
  681. package/doc/functions/models.signalEncodingToJSON.html +0 -1
  682. package/doc/functions/models.signalTypeFromJSON.html +0 -1
  683. package/doc/functions/models.signalTypeToJSON.html +0 -1
  684. package/doc/functions/models.signalValueTriggerOperatorFromJSON.html +0 -1
  685. package/doc/functions/models.signalValueTriggerOperatorToJSON.html +0 -1
  686. package/doc/functions/models.statusLevelFromJSON.html +0 -1
  687. package/doc/functions/models.statusLevelToJSON.html +0 -1
  688. package/doc/functions/models.timeReferenceFromJSON.html +0 -1
  689. package/doc/functions/models.timeReferenceToJSON.html +0 -1
  690. package/doc/functions/models.triggerOperatorFromJSON.html +0 -1
  691. package/doc/functions/models.triggerOperatorToJSON.html +0 -1
  692. package/doc/interfaces/controls.ColumnItem.html +0 -3
  693. package/doc/interfaces/controls.ColumnItemControlProps.html +0 -4
  694. package/doc/interfaces/models.AboutInformation.html +0 -8
  695. package/doc/interfaces/models.ActivateLicenseRequest.html +0 -8
  696. package/doc/interfaces/models.AddAllConnectedCanChannelsRequest.html +0 -4
  697. package/doc/interfaces/models.AddAllConnectedLinChannelsRequest.html +0 -4
  698. package/doc/interfaces/models.AddOrUpdateDataProcessorRequest.html +0 -12
  699. package/doc/interfaces/models.AddOrUpdateSourceRequest.html +0 -8
  700. package/doc/interfaces/models.AddOrUpdateTargetRequest.html +0 -8
  701. package/doc/interfaces/models.ApiPreferences.html +0 -10
  702. package/doc/interfaces/models.AppEventArgs.html +0 -6
  703. package/doc/interfaces/models.CanBusSpeedInfo.html +0 -14
  704. package/doc/interfaces/models.CanFDBusSpeedCombination.html +0 -4
  705. package/doc/interfaces/models.CanFDBusSpeedInfo.html +0 -10
  706. package/doc/interfaces/models.ClearLinMessageRequest.html +0 -7
  707. package/doc/interfaces/models.ConnectNodesRequest.html +0 -5
  708. package/doc/interfaces/models.DatabaseFiles.html +0 -6
  709. package/doc/interfaces/models.DeviceEventArgs.html +0 -4
  710. package/doc/interfaces/models.DisconnectNodesRequest.html +0 -5
  711. package/doc/interfaces/models.Frame_PropertiesEntry.html +0 -3
  712. package/doc/interfaces/models.GetCanChannelBusSpeedsRequest.html +0 -7
  713. package/doc/interfaces/models.GetCanChannelBusSpeedsResponse.html +0 -6
  714. package/doc/interfaces/models.GetCanFdBusSpeedsRequest.html +0 -6
  715. package/doc/interfaces/models.GetCanFdBusSpeedsResponse.html +0 -4
  716. package/doc/interfaces/models.GetChannelsFromLogFileRequest.html +0 -5
  717. package/doc/interfaces/models.GetChannelsFromLogFileResponse.html +0 -4
  718. package/doc/interfaces/models.GetClassicCanBusSpeedsRequest.html +0 -5
  719. package/doc/interfaces/models.GetClassicCanBusSpeedsResponse.html +0 -4
  720. package/doc/interfaces/models.GetDataProcessorResponse.html +0 -3
  721. package/doc/interfaces/models.GetDevicesRequest.html +0 -4
  722. package/doc/interfaces/models.GetDevicesResponse.html +0 -3
  723. package/doc/interfaces/models.GetFrameDefinitionsFromDatabaseFilesRequest.html +0 -5
  724. package/doc/interfaces/models.GetLicensesResponse.html +0 -4
  725. package/doc/interfaces/models.GetLogFileFormatsRequest.html +0 -9
  726. package/doc/interfaces/models.GetLogFileFormatsResponse.html +0 -10
  727. package/doc/interfaces/models.GetLogLevelResponse.html +0 -4
  728. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesRequest.html +0 -5
  729. package/doc/interfaces/models.GetScheduleTablesFromDatabaseFilesResponse.html +0 -4
  730. package/doc/interfaces/models.GetServiceExtensionInfoRequest.html +0 -8
  731. package/doc/interfaces/models.GetServiceExtensionInfoResponse.html +0 -14
  732. package/doc/interfaces/models.GetSignalDataFromMessageDataRequest.html +0 -7
  733. package/doc/interfaces/models.GetSignalDataFromMessageDataResponse.html +0 -4
  734. package/doc/interfaces/models.GetSourceResponse.html +0 -3
  735. package/doc/interfaces/models.GetTargetResponse.html +0 -3
  736. package/doc/interfaces/models.ILogFileFormat.html +0 -6
  737. package/doc/interfaces/models.IProject.html +0 -6
  738. package/doc/interfaces/models.IWorkspaceData.html +0 -5
  739. package/doc/interfaces/models.IdentifierRequest.html +0 -5
  740. package/doc/interfaces/models.IdentifiersRequest.html +0 -5
  741. package/doc/interfaces/models.InstallServiceExtensionRequest.html +0 -8
  742. package/doc/interfaces/models.LicenseInformation.html +0 -18
  743. package/doc/interfaces/models.Licenses.html +0 -4
  744. package/doc/interfaces/models.LogReplaySettings_ChannelIdentifiersEntry.html +0 -3
  745. package/doc/interfaces/models.MeasurementEventArgs.html +0 -6
  746. package/doc/interfaces/models.RequestLinMessageRequest.html +0 -7
  747. package/doc/interfaces/models.ScheduleTable.html +0 -8
  748. package/doc/interfaces/models.ScheduleTableEntry.html +0 -6
  749. package/doc/interfaces/models.SendLinWakeupFrameRequest.html +0 -9
  750. package/doc/interfaces/models.SendMessageRequest.html +0 -5
  751. package/doc/interfaces/models.SetLogLevelRequest.html +0 -6
  752. package/doc/interfaces/models.SetMeasurementSetupRequest.html +0 -4
  753. package/doc/interfaces/models.SetSignalDataToMessageDataRequest.html +0 -9
  754. package/doc/interfaces/models.SetSignalDataToMessageDataResponse.html +0 -7
  755. package/doc/interfaces/models.SignalDefinition_EnumValuesEntry.html +0 -3
  756. package/doc/interfaces/models.StartPeriodicTransmissionRequest.html +0 -5
  757. package/doc/interfaces/models.StartPeriodicTransmissionResponse.html +0 -3
  758. package/doc/interfaces/models.UninstallServiceExtensionRequest.html +0 -6
  759. package/doc/interfaces/models.UpdateLinMessageRequest.html +0 -8
  760. package/doc/interfaces/models.UpdatePeriodicTransmissionRequest.html +0 -7
  761. package/doc/modules/icons.html +0 -2
  762. package/doc/types/models.IReadOnlyDataBuffer.html +0 -1
  763. package/doc/types/models.themes.html +0 -1
  764. package/doc/variables/models.AboutInformation-1.html +0 -1
  765. package/doc/variables/models.ActivateLicenseRequest-1.html +0 -1
  766. package/doc/variables/models.AddAllConnectedCanChannelsRequest-1.html +0 -1
  767. package/doc/variables/models.AddAllConnectedLinChannelsRequest-1.html +0 -1
  768. package/doc/variables/models.AddOrUpdateDataProcessorRequest-1.html +0 -1
  769. package/doc/variables/models.AddOrUpdateSourceRequest-1.html +0 -1
  770. package/doc/variables/models.AddOrUpdateTargetRequest-1.html +0 -1
  771. package/doc/variables/models.ApiPreferences-1.html +0 -1
  772. package/doc/variables/models.AppEventArgs-1.html +0 -1
  773. package/doc/variables/models.BaseNodeProperties-1.html +0 -1
  774. package/doc/variables/models.BusStatus-1.html +0 -1
  775. package/doc/variables/models.CanBusParamLimits-1.html +0 -1
  776. package/doc/variables/models.CanBusParams-1.html +0 -1
  777. package/doc/variables/models.CanBusSpeedInfo-1.html +0 -1
  778. package/doc/variables/models.CanChannelCapacity-1.html +0 -1
  779. package/doc/variables/models.CanChannelConfiguration-1.html +0 -1
  780. package/doc/variables/models.CanFDBusSpeedCombination-1.html +0 -1
  781. package/doc/variables/models.CanFDBusSpeedInfo-1.html +0 -1
  782. package/doc/variables/models.CanFrameFlags-1.html +0 -1
  783. package/doc/variables/models.CanMessageFilterSettings-1.html +0 -1
  784. package/doc/variables/models.Channel-1.html +0 -1
  785. package/doc/variables/models.ChannelSettings-1.html +0 -1
  786. package/doc/variables/models.ClearLinMessageRequest-1.html +0 -1
  787. package/doc/variables/models.ConnectNodesRequest-1.html +0 -1
  788. package/doc/variables/models.DataProcessingStatus-1.html +0 -1
  789. package/doc/variables/models.DataProcessorNodeProperties-1.html +0 -1
  790. package/doc/variables/models.DatabaseFiles-1.html +0 -1
  791. package/doc/variables/models.DatabasesSettings-1.html +0 -1
  792. package/doc/variables/models.Device-1.html +0 -1
  793. package/doc/variables/models.DeviceEventArgs-1.html +0 -1
  794. package/doc/variables/models.Devices-1.html +0 -1
  795. package/doc/variables/models.DisconnectNodesRequest-1.html +0 -1
  796. package/doc/variables/models.Empty-1.html +0 -1
  797. package/doc/variables/models.ErrorStatus-1.html +0 -1
  798. package/doc/variables/models.Frame-1.html +0 -1
  799. package/doc/variables/models.FrameDefinition-1.html +0 -1
  800. package/doc/variables/models.FrameDefinitions-1.html +0 -1
  801. package/doc/variables/models.FramePropertyValue-1.html +0 -1
  802. package/doc/variables/models.FrameReceivedTrigger-1.html +0 -1
  803. package/doc/variables/models.Frame_PropertiesEntry-1.html +0 -1
  804. package/doc/variables/models.Frames-1.html +0 -1
  805. package/doc/variables/models.GetCanChannelBusSpeedsRequest-1.html +0 -1
  806. package/doc/variables/models.GetCanChannelBusSpeedsResponse-1.html +0 -1
  807. package/doc/variables/models.GetCanFdBusSpeedsRequest-1.html +0 -1
  808. package/doc/variables/models.GetCanFdBusSpeedsResponse-1.html +0 -1
  809. package/doc/variables/models.GetChannelsFromLogFileRequest-1.html +0 -1
  810. package/doc/variables/models.GetChannelsFromLogFileResponse-1.html +0 -1
  811. package/doc/variables/models.GetClassicCanBusSpeedsRequest-1.html +0 -1
  812. package/doc/variables/models.GetClassicCanBusSpeedsResponse-1.html +0 -1
  813. package/doc/variables/models.GetDataProcessorResponse-1.html +0 -1
  814. package/doc/variables/models.GetDevicesRequest-1.html +0 -1
  815. package/doc/variables/models.GetDevicesResponse-1.html +0 -1
  816. package/doc/variables/models.GetFrameDefinitionsFromDatabaseFilesRequest-1.html +0 -1
  817. package/doc/variables/models.GetLicensesResponse-1.html +0 -1
  818. package/doc/variables/models.GetLogFileFormatsRequest-1.html +0 -1
  819. package/doc/variables/models.GetLogFileFormatsResponse-1.html +0 -1
  820. package/doc/variables/models.GetLogLevelResponse-1.html +0 -1
  821. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesRequest-1.html +0 -1
  822. package/doc/variables/models.GetScheduleTablesFromDatabaseFilesResponse-1.html +0 -1
  823. package/doc/variables/models.GetServiceExtensionInfoRequest-1.html +0 -1
  824. package/doc/variables/models.GetServiceExtensionInfoResponse-1.html +0 -1
  825. package/doc/variables/models.GetSignalDataFromMessageDataRequest-1.html +0 -1
  826. package/doc/variables/models.GetSignalDataFromMessageDataResponse-1.html +0 -1
  827. package/doc/variables/models.GetSourceResponse-1.html +0 -1
  828. package/doc/variables/models.GetTargetResponse-1.html +0 -1
  829. package/doc/variables/models.IdentifierRequest-1.html +0 -1
  830. package/doc/variables/models.IdentifiersRequest-1.html +0 -1
  831. package/doc/variables/models.InstallServiceExtensionRequest-1.html +0 -1
  832. package/doc/variables/models.InterpreterSettings-1.html +0 -1
  833. package/doc/variables/models.J1939InterpreterSettings-1.html +0 -1
  834. package/doc/variables/models.LicenseInformation-1.html +0 -1
  835. package/doc/variables/models.Licenses-1.html +0 -1
  836. package/doc/variables/models.LinChannelConfiguration-1.html +0 -1
  837. package/doc/variables/models.LinFrameFlags-1.html +0 -1
  838. package/doc/variables/models.LogMessage-1.html +0 -1
  839. package/doc/variables/models.LogMessages-1.html +0 -1
  840. package/doc/variables/models.LogReplaySettings-1.html +0 -1
  841. package/doc/variables/models.LogReplaySettings_ChannelIdentifiersEntry-1.html +0 -1
  842. package/doc/variables/models.LogReplayStatus-1.html +0 -1
  843. package/doc/variables/models.LoggerStatus-1.html +0 -1
  844. package/doc/variables/models.MeasurementEventArgs-1.html +0 -1
  845. package/doc/variables/models.MeasurementSetup-1.html +0 -1
  846. package/doc/variables/models.MessageLoggerSettings-1.html +0 -1
  847. package/doc/variables/models.NodeStatus-1.html +0 -1
  848. package/doc/variables/models.NodeStatuses-1.html +0 -1
  849. package/doc/variables/models.OnlineStatus-1.html +0 -1
  850. package/doc/variables/models.PeriodicTransmissionSettings-1.html +0 -1
  851. package/doc/variables/models.RequestLinMessageRequest-1.html +0 -1
  852. package/doc/variables/models.ScheduleTable-1.html +0 -1
  853. package/doc/variables/models.ScheduleTableEntry-1.html +0 -1
  854. package/doc/variables/models.SendLinWakeupFrameRequest-1.html +0 -1
  855. package/doc/variables/models.SendMessageRequest-1.html +0 -1
  856. package/doc/variables/models.ServiceExtensionSettings-1.html +0 -1
  857. package/doc/variables/models.SetLogLevelRequest-1.html +0 -1
  858. package/doc/variables/models.SetMeasurementSetupRequest-1.html +0 -1
  859. package/doc/variables/models.SetSignalDataToMessageDataRequest-1.html +0 -1
  860. package/doc/variables/models.SetSignalDataToMessageDataResponse-1.html +0 -1
  861. package/doc/variables/models.SignalDefinition-1.html +0 -1
  862. package/doc/variables/models.SignalDefinition_EnumValuesEntry-1.html +0 -1
  863. package/doc/variables/models.SignalDefinitions-1.html +0 -1
  864. package/doc/variables/models.SignalFilterSettings-1.html +0 -1
  865. package/doc/variables/models.SignalLoggerSettings-1.html +0 -1
  866. package/doc/variables/models.SignalValue-1.html +0 -1
  867. package/doc/variables/models.SignalValueTrigger-1.html +0 -1
  868. package/doc/variables/models.SourceNodeProperties-1.html +0 -1
  869. package/doc/variables/models.StartPeriodicTransmissionRequest-1.html +0 -1
  870. package/doc/variables/models.StartPeriodicTransmissionResponse-1.html +0 -1
  871. package/doc/variables/models.TargetNodeProperties-1.html +0 -1
  872. package/doc/variables/models.TriggerSettings-1.html +0 -1
  873. package/doc/variables/models.UninstallServiceExtensionRequest-1.html +0 -1
  874. package/doc/variables/models.UpdateLinMessageRequest-1.html +0 -1
  875. package/doc/variables/models.UpdatePeriodicTransmissionRequest-1.html +0 -1
  876. package/doc/variables/models.WriteFrame-1.html +0 -1
  877. package/licenses/ELECTRON-TOOLKIT-PRELOAD_MIT.TXT +0 -21
  878. package/licenses/FAST-DEEP-EQUAL_MIT.TXT +0 -21
  879. package/licenses/GOOGLE-PROTOBUF_(BSD-3-CLAUSE AND APACHE-2.0).TXT +0 -29
  880. package/licenses/REACT-DOM_MIT.TXT +0 -21
  881. package/licenses/REACT_MIT.TXT +0 -21
  882. package/licenses/UUID_MIT.TXT +0 -9
  883. package/licenses/licenses.css +0 -22
  884. package/licenses/licenses.html +0 -67
@@ -1 +1 @@
1
- "use strict";const t=require("./measurement_settings.js"),f=require("long");function I(){return{}}const _e={encode(e,n=new t.BinaryWriter){return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=I();for(;r.pos<s;){const i=r.uint32();if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},create(e){return _e.fromPartial(e??{})},fromPartial(e){return I()}};var Le=(e=>(e[e.PROJECT_FILE=0]="PROJECT_FILE",e[e.LOG_FILE=1]="LOG_FILE",e[e.CAN_DATABASES=2]="CAN_DATABASES",e[e.LIN_DATABASES=3]="LIN_DATABASES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Le||{});function xn(e){switch(e){case 0:case"PROJECT_FILE":return 0;case 1:case"LOG_FILE":return 1;case 2:case"CAN_DATABASES":return 2;case 3:case"LIN_DATABASES":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Mn(e){switch(e){case 0:return"PROJECT_FILE";case 1:return"LOG_FILE";case 2:return"CAN_DATABASES";case 3:return"LIN_DATABASES";case-1:default:return"UNRECOGNIZED"}}var Je=(e=>(e[e.LOG_LEVEL_TRACE=0]="LOG_LEVEL_TRACE",e[e.LOG_LEVEL_DEBUG=1]="LOG_LEVEL_DEBUG",e[e.LOG_LEVEL_INFORMATION=2]="LOG_LEVEL_INFORMATION",e[e.LOG_LEVEL_WARNING=3]="LOG_LEVEL_WARNING",e[e.LOG_LEVEL_ERROR=4]="LOG_LEVEL_ERROR",e[e.LOG_LEVEL_CRITICAL=5]="LOG_LEVEL_CRITICAL",e[e.LOG_LEVEL_NONE=6]="LOG_LEVEL_NONE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Je||{});function h(e){switch(e){case 0:case"LOG_LEVEL_TRACE":return 0;case 1:case"LOG_LEVEL_DEBUG":return 1;case 2:case"LOG_LEVEL_INFORMATION":return 2;case 3:case"LOG_LEVEL_WARNING":return 3;case 4:case"LOG_LEVEL_ERROR":return 4;case 5:case"LOG_LEVEL_CRITICAL":return 5;case 6:case"LOG_LEVEL_NONE":return 6;case-1:case"UNRECOGNIZED":default:return-1}}function k(e){switch(e){case 0:return"LOG_LEVEL_TRACE";case 1:return"LOG_LEVEL_DEBUG";case 2:return"LOG_LEVEL_INFORMATION";case 3:return"LOG_LEVEL_WARNING";case 4:return"LOG_LEVEL_ERROR";case 5:return"LOG_LEVEL_CRITICAL";case 6:return"LOG_LEVEL_NONE";case-1:default:return"UNRECOGNIZED"}}var Be=(e=>(e[e.APP_EVENT_UNSPECIFIED=0]="APP_EVENT_UNSPECIFIED",e[e.APP_EVENT_LICENSE_INFO_CHANGED=1]="APP_EVENT_LICENSE_INFO_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Be||{});function Ce(e){switch(e){case 0:case"APP_EVENT_UNSPECIFIED":return 0;case 1:case"APP_EVENT_LICENSE_INFO_CHANGED":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function ve(e){switch(e){case 0:return"APP_EVENT_UNSPECIFIED";case 1:return"APP_EVENT_LICENSE_INFO_CHANGED";case-1:default:return"UNRECOGNIZED"}}function y(){return{preferences:void 0,logLevel:0}}const Ge={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=y();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==16)break;a.logLevel=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,logLevel:u(e.logLevel)?h(e.logLevel):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.logLevel!==0&&(n.logLevel=k(e.logLevel)),n},create(e){return Ge.fromPartial(e??{})},fromPartial(e){const n=y();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.logLevel=e.logLevel??0,n}};function _(){return{logLevel:0}}const Ve={encode(e,n=new t.BinaryWriter){return e.logLevel!==0&&n.uint32(8).int32(e.logLevel),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=_();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.logLevel=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{logLevel:u(e.logLevel)?h(e.logLevel):0}},toJSON(e){const n={};return e.logLevel!==0&&(n.logLevel=k(e.logLevel)),n},create(e){return Ve.fromPartial(e??{})},fromPartial(e){const n=_();return n.logLevel=e.logLevel??0,n}};function L(){return{time:f.ZERO,logLevel:0,eventId:0,categoryName:"",message:""}}const p={encode(e,n=new t.BinaryWriter){return e.time.equals(f.ZERO)||n.uint32(8).int64(e.time.toString()),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),e.eventId!==0&&n.uint32(24).int32(e.eventId),e.categoryName!==""&&n.uint32(34).string(e.categoryName),e.message!==""&&n.uint32(42).string(e.message),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=L();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.time=f.fromString(r.int64().toString());continue}case 2:{if(i!==16)break;a.logLevel=r.int32();continue}case 3:{if(i!==24)break;a.eventId=r.int32();continue}case 4:{if(i!==34)break;a.categoryName=r.string();continue}case 5:{if(i!==42)break;a.message=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{time:u(e.time)?f.fromValue(e.time):f.ZERO,logLevel:u(e.logLevel)?h(e.logLevel):0,eventId:u(e.eventId)?globalThis.Number(e.eventId):0,categoryName:u(e.categoryName)?globalThis.String(e.categoryName):"",message:u(e.message)?globalThis.String(e.message):""}},toJSON(e){const n={};return e.time.equals(f.ZERO)||(n.time=(e.time||f.ZERO).toString()),e.logLevel!==0&&(n.logLevel=k(e.logLevel)),e.eventId!==0&&(n.eventId=Math.round(e.eventId)),e.categoryName!==""&&(n.categoryName=e.categoryName),e.message!==""&&(n.message=e.message),n},create(e){return p.fromPartial(e??{})},fromPartial(e){const n=L();return n.time=e.time!==void 0&&e.time!==null?f.fromValue(e.time):f.ZERO,n.logLevel=e.logLevel??0,n.eventId=e.eventId??0,n.categoryName=e.categoryName??"",n.message=e.message??"",n}};function J(){return{items:[]}}const xe={encode(e,n=new t.BinaryWriter){for(const r of e.items)p.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=J();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.items.push(p.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>p.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>p.toJSON(s))),n},create(e){return xe.fromPartial(e??{})},fromPartial(e){var r;const n=J();return n.items=((r=e.items)==null?void 0:r.map(s=>p.fromPartial(s)))||[],n}};function B(){return{licenseKey:"",productId:"",productName:"",productVersion:"",instanceId:"",instanceName:"",expirationDate:f.ZERO,isValid:!1}}const l={encode(e,n=new t.BinaryWriter){return e.licenseKey!==""&&n.uint32(10).string(e.licenseKey),e.productId!==""&&n.uint32(18).string(e.productId),e.productName!==""&&n.uint32(26).string(e.productName),e.productVersion!==""&&n.uint32(34).string(e.productVersion),e.instanceId!==""&&n.uint32(42).string(e.instanceId),e.instanceName!==""&&n.uint32(50).string(e.instanceName),e.expirationDate.equals(f.ZERO)||n.uint32(56).int64(e.expirationDate.toString()),e.isValid!==!1&&n.uint32(64).bool(e.isValid),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=B();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.licenseKey=r.string();continue}case 2:{if(i!==18)break;a.productId=r.string();continue}case 3:{if(i!==26)break;a.productName=r.string();continue}case 4:{if(i!==34)break;a.productVersion=r.string();continue}case 5:{if(i!==42)break;a.instanceId=r.string();continue}case 6:{if(i!==50)break;a.instanceName=r.string();continue}case 7:{if(i!==56)break;a.expirationDate=f.fromString(r.int64().toString());continue}case 8:{if(i!==64)break;a.isValid=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{licenseKey:u(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:u(e.productId)?globalThis.String(e.productId):"",productName:u(e.productName)?globalThis.String(e.productName):"",productVersion:u(e.productVersion)?globalThis.String(e.productVersion):"",instanceId:u(e.instanceId)?globalThis.String(e.instanceId):"",instanceName:u(e.instanceName)?globalThis.String(e.instanceName):"",expirationDate:u(e.expirationDate)?f.fromValue(e.expirationDate):f.ZERO,isValid:u(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),e.productName!==""&&(n.productName=e.productName),e.productVersion!==""&&(n.productVersion=e.productVersion),e.instanceId!==""&&(n.instanceId=e.instanceId),e.instanceName!==""&&(n.instanceName=e.instanceName),e.expirationDate.equals(f.ZERO)||(n.expirationDate=(e.expirationDate||f.ZERO).toString()),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return l.fromPartial(e??{})},fromPartial(e){const n=B();return n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n.productName=e.productName??"",n.productVersion=e.productVersion??"",n.instanceId=e.instanceId??"",n.instanceName=e.instanceName??"",n.expirationDate=e.expirationDate!==void 0&&e.expirationDate!==null?f.fromValue(e.expirationDate):f.ZERO,n.isValid=e.isValid??!1,n}};function C(){return{items:[]}}const S={encode(e,n=new t.BinaryWriter){for(const r of e.items)l.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=C();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.items.push(l.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>l.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>l.toJSON(s))),n},create(e){return S.fromPartial(e??{})},fromPartial(e){var r;const n=C();return n.items=((r=e.items)==null?void 0:r.map(s=>l.fromPartial(s)))||[],n}};function v(){return{eventType:0,licenses:void 0}}const Me={encode(e,n=new t.BinaryWriter){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.licenses!==void 0&&S.encode(e.licenses,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=v();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.eventType=r.int32();continue}case 2:{if(i!==18)break;a.licenses=S.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{eventType:u(e.eventType)?Ce(e.eventType):0,licenses:u(e.licenses)?S.fromJSON(e.licenses):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=ve(e.eventType)),e.licenses!==void 0&&(n.licenses=S.toJSON(e.licenses)),n},create(e){return Me.fromPartial(e??{})},fromPartial(e){const n=v();return n.eventType=e.eventType??0,n.licenses=e.licenses!==void 0&&e.licenses!==null?S.fromPartial(e.licenses):void 0,n}};function G(){return{preferences:void 0,filePath:"",replaceExisting:void 0}}const De={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.filePath!==""&&n.uint32(18).string(e.filePath),e.replaceExisting!==void 0&&n.uint32(24).bool(e.replaceExisting),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=G();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.filePath=r.string();continue}case 3:{if(i!==24)break;a.replaceExisting=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,filePath:u(e.filePath)?globalThis.String(e.filePath):"",replaceExisting:u(e.replaceExisting)?globalThis.Boolean(e.replaceExisting):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.filePath!==""&&(n.filePath=e.filePath),e.replaceExisting!==void 0&&(n.replaceExisting=e.replaceExisting),n},create(e){return De.fromPartial(e??{})},fromPartial(e){const n=G();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.filePath=e.filePath??"",n.replaceExisting=e.replaceExisting??void 0,n}};function V(){return{preferences:void 0,name:""}}const Fe={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.name!==""&&n.uint32(18).string(e.name),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=V();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.name=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,name:u(e.name)?globalThis.String(e.name):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.name!==""&&(n.name=e.name),n},create(e){return Fe.fromPartial(e??{})},fromPartial(e){const n=V();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.name=e.name??"",n}};function x(){return{preferences:void 0,filePathOrName:""}}const Ue={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.filePathOrName!==""&&n.uint32(18).string(e.filePathOrName),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=x();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.filePathOrName=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,filePathOrName:u(e.filePathOrName)?globalThis.String(e.filePathOrName):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.filePathOrName!==""&&(n.filePathOrName=e.filePathOrName),n},create(e){return Ue.fromPartial(e??{})},fromPartial(e){const n=x();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.filePathOrName=e.filePathOrName??"",n}};function M(){return{name:"",displayName:"",description:"",version:"",author:"",defaultConfig:""}}const qe={encode(e,n=new t.BinaryWriter){return e.name!==""&&n.uint32(10).string(e.name),e.displayName!==""&&n.uint32(18).string(e.displayName),e.description!==""&&n.uint32(26).string(e.description),e.version!==""&&n.uint32(34).string(e.version),e.author!==""&&n.uint32(42).string(e.author),e.defaultConfig!==""&&n.uint32(50).string(e.defaultConfig),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=M();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.name=r.string();continue}case 2:{if(i!==18)break;a.displayName=r.string();continue}case 3:{if(i!==26)break;a.description=r.string();continue}case 4:{if(i!==34)break;a.version=r.string();continue}case 5:{if(i!==42)break;a.author=r.string();continue}case 6:{if(i!==50)break;a.defaultConfig=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{name:u(e.name)?globalThis.String(e.name):"",displayName:u(e.displayName)?globalThis.String(e.displayName):"",description:u(e.description)?globalThis.String(e.description):"",version:u(e.version)?globalThis.String(e.version):"",author:u(e.author)?globalThis.String(e.author):"",defaultConfig:u(e.defaultConfig)?globalThis.String(e.defaultConfig):""}},toJSON(e){const n={};return e.name!==""&&(n.name=e.name),e.displayName!==""&&(n.displayName=e.displayName),e.description!==""&&(n.description=e.description),e.version!==""&&(n.version=e.version),e.author!==""&&(n.author=e.author),e.defaultConfig!==""&&(n.defaultConfig=e.defaultConfig),n},create(e){return qe.fromPartial(e??{})},fromPartial(e){const n=M();return n.name=e.name??"",n.displayName=e.displayName??"",n.description=e.description??"",n.version=e.version??"",n.author=e.author??"",n.defaultConfig=e.defaultConfig??"",n}};function D(){return{licenses:[]}}const we={encode(e,n=new t.BinaryWriter){for(const r of e.licenses)l.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=D();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.licenses.push(l.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{licenses:globalThis.Array.isArray(e==null?void 0:e.licenses)?e.licenses.map(n=>l.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.licenses)!=null&&r.length&&(n.licenses=e.licenses.map(s=>l.toJSON(s))),n},create(e){return we.fromPartial(e??{})},fromPartial(e){var r;const n=D();return n.licenses=((r=e.licenses)==null?void 0:r.map(s=>l.fromPartial(s)))||[],n}};function F(){return{preferences:void 0,licenseKey:"",productId:""}}const We={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.licenseKey!==""&&n.uint32(18).string(e.licenseKey),e.productId!==""&&n.uint32(26).string(e.productId),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=F();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.licenseKey=r.string();continue}case 3:{if(i!==26)break;a.productId=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:u(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,licenseKey:u(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:u(e.productId)?globalThis.String(e.productId):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),n},create(e){return We.fromPartial(e??{})},fromPartial(e){const n=F();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n}};function U(){return{apiVersion:"",serviceVersion:"",canlibVersion:""}}const Ze={encode(e,n=new t.BinaryWriter){return e.apiVersion!==""&&n.uint32(10).string(e.apiVersion),e.serviceVersion!==""&&n.uint32(18).string(e.serviceVersion),e.canlibVersion!==""&&n.uint32(26).string(e.canlibVersion),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=U();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.apiVersion=r.string();continue}case 2:{if(i!==18)break;a.serviceVersion=r.string();continue}case 3:{if(i!==26)break;a.canlibVersion=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{apiVersion:u(e.apiVersion)?globalThis.String(e.apiVersion):"",serviceVersion:u(e.serviceVersion)?globalThis.String(e.serviceVersion):"",canlibVersion:u(e.canlibVersion)?globalThis.String(e.canlibVersion):""}},toJSON(e){const n={};return e.apiVersion!==""&&(n.apiVersion=e.apiVersion),e.serviceVersion!==""&&(n.serviceVersion=e.serviceVersion),e.canlibVersion!==""&&(n.canlibVersion=e.canlibVersion),n},create(e){return Ze.fromPartial(e??{})},fromPartial(e){const n=U();return n.apiVersion=e.apiVersion??"",n.serviceVersion=e.serviceVersion??"",n.canlibVersion=e.canlibVersion??"",n}};function u(e){return e!=null}var Ke=(e=>(e[e.MEASUREMENT_EVENT_UNSPECIFIED=0]="MEASUREMENT_EVENT_UNSPECIFIED",e[e.MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED=1]="MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED",e[e.MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED=2]="MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED",e[e.MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED=3]="MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED",e[e.MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED=4]="MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ke||{});function Qe(e){switch(e){case 0:case"MEASUREMENT_EVENT_UNSPECIFIED":return 0;case 1:case"MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED":return 1;case 2:case"MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED":return 2;case 3:case"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED":return 3;case 4:case"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED":return 4;case-1:case"UNRECOGNIZED":default:return-1}}function He(e){switch(e){case 0:return"MEASUREMENT_EVENT_UNSPECIFIED";case 1:return"MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED";case 2:return"MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED";case 3:return"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED";case 4:return"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED";case-1:default:return"UNRECOGNIZED"}}function q(){return{preferences:void 0,setup:void 0}}const Ye={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.setup!==void 0&&t.MeasurementSetup.encode(e.setup,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=q();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.setup=t.MeasurementSetup.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,setup:o(e.setup)?t.MeasurementSetup.fromJSON(e.setup):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.setup!==void 0&&(n.setup=t.MeasurementSetup.toJSON(e.setup)),n},create(e){return Ye.fromPartial(e??{})},fromPartial(e){const n=q();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.setup=e.setup!==void 0&&e.setup!==null?t.MeasurementSetup.fromPartial(e.setup):void 0,n}};function w(){return{preferences:void 0,configuration:void 0}}const $e={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&t.CanChannelConfiguration.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=w();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.configuration=t.CanChannelConfiguration.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,configuration:o(e.configuration)?t.CanChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=t.CanChannelConfiguration.toJSON(e.configuration)),n},create(e){return $e.fromPartial(e??{})},fromPartial(e){const n=w();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?t.CanChannelConfiguration.fromPartial(e.configuration):void 0,n}};function W(){return{preferences:void 0,configuration:void 0}}const ze={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&t.LinChannelConfiguration.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=W();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.configuration=t.LinChannelConfiguration.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,configuration:o(e.configuration)?t.LinChannelConfiguration.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=t.LinChannelConfiguration.toJSON(e.configuration)),n},create(e){return ze.fromPartial(e??{})},fromPartial(e){const n=W();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?t.LinChannelConfiguration.fromPartial(e.configuration):void 0,n}};function Z(){return{preferences:void 0,source:void 0,replaceAllProperties:!1}}const Xe={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.source!==void 0&&t.SourceNodeProperties.encode(e.source,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Z();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.source=t.SourceNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==24)break;a.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,source:o(e.source)?t.SourceNodeProperties.fromJSON(e.source):void 0,replaceAllProperties:o(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.source!==void 0&&(n.source=t.SourceNodeProperties.toJSON(e.source)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return Xe.fromPartial(e??{})},fromPartial(e){const n=Z();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.source=e.source!==void 0&&e.source!==null?t.SourceNodeProperties.fromPartial(e.source):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function K(){return{source:void 0}}const be={encode(e,n=new t.BinaryWriter){return e.source!==void 0&&t.SourceNodeProperties.encode(e.source,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=K();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.source=t.SourceNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{source:o(e.source)?t.SourceNodeProperties.fromJSON(e.source):void 0}},toJSON(e){const n={};return e.source!==void 0&&(n.source=t.SourceNodeProperties.toJSON(e.source)),n},create(e){return be.fromPartial(e??{})},fromPartial(e){const n=K();return n.source=e.source!==void 0&&e.source!==null?t.SourceNodeProperties.fromPartial(e.source):void 0,n}};function Q(){return{preferences:void 0,dataProcessor:void 0,previousNode:"",nextNode:"",replaceAllProperties:!1}}const je={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.dataProcessor!==void 0&&t.DataProcessorNodeProperties.encode(e.dataProcessor,n.uint32(18).fork()).join(),e.previousNode!==""&&n.uint32(26).string(e.previousNode),e.nextNode!==""&&n.uint32(34).string(e.nextNode),e.replaceAllProperties!==!1&&n.uint32(40).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Q();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.dataProcessor=t.DataProcessorNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==26)break;a.previousNode=r.string();continue}case 4:{if(i!==34)break;a.nextNode=r.string();continue}case 5:{if(i!==40)break;a.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,dataProcessor:o(e.dataProcessor)?t.DataProcessorNodeProperties.fromJSON(e.dataProcessor):void 0,previousNode:o(e.previousNode)?globalThis.String(e.previousNode):"",nextNode:o(e.nextNode)?globalThis.String(e.nextNode):"",replaceAllProperties:o(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.dataProcessor!==void 0&&(n.dataProcessor=t.DataProcessorNodeProperties.toJSON(e.dataProcessor)),e.previousNode!==""&&(n.previousNode=e.previousNode),e.nextNode!==""&&(n.nextNode=e.nextNode),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return je.fromPartial(e??{})},fromPartial(e){const n=Q();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?t.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,n.previousNode=e.previousNode??"",n.nextNode=e.nextNode??"",n.replaceAllProperties=e.replaceAllProperties??!1,n}};function H(){return{dataProcessor:void 0}}const en={encode(e,n=new t.BinaryWriter){return e.dataProcessor!==void 0&&t.DataProcessorNodeProperties.encode(e.dataProcessor,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=H();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.dataProcessor=t.DataProcessorNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{dataProcessor:o(e.dataProcessor)?t.DataProcessorNodeProperties.fromJSON(e.dataProcessor):void 0}},toJSON(e){const n={};return e.dataProcessor!==void 0&&(n.dataProcessor=t.DataProcessorNodeProperties.toJSON(e.dataProcessor)),n},create(e){return en.fromPartial(e??{})},fromPartial(e){const n=H();return n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?t.DataProcessorNodeProperties.fromPartial(e.dataProcessor):void 0,n}};function Y(){return{preferences:void 0,target:void 0,replaceAllProperties:!1}}const nn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.target!==void 0&&t.TargetNodeProperties.encode(e.target,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Y();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.target=t.TargetNodeProperties.decode(r,r.uint32());continue}case 3:{if(i!==24)break;a.replaceAllProperties=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,target:o(e.target)?t.TargetNodeProperties.fromJSON(e.target):void 0,replaceAllProperties:o(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.target!==void 0&&(n.target=t.TargetNodeProperties.toJSON(e.target)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return nn.fromPartial(e??{})},fromPartial(e){const n=Y();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.target=e.target!==void 0&&e.target!==null?t.TargetNodeProperties.fromPartial(e.target):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function $(){return{target:void 0}}const rn={encode(e,n=new t.BinaryWriter){return e.target!==void 0&&t.TargetNodeProperties.encode(e.target,n.uint32(10).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=$();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.target=t.TargetNodeProperties.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{target:o(e.target)?t.TargetNodeProperties.fromJSON(e.target):void 0}},toJSON(e){const n={};return e.target!==void 0&&(n.target=t.TargetNodeProperties.toJSON(e.target)),n},create(e){return rn.fromPartial(e??{})},fromPartial(e){const n=$();return n.target=e.target!==void 0&&e.target!==null?t.TargetNodeProperties.fromPartial(e.target):void 0,n}};function z(){return{preferences:void 0,startNode:"",endNode:""}}const tn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=z();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.startNode=r.string();continue}case 3:{if(i!==26)break;a.endNode=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,startNode:o(e.startNode)?globalThis.String(e.startNode):"",endNode:o(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return tn.fromPartial(e??{})},fromPartial(e){const n=z();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function X(){return{preferences:void 0,startNode:"",endNode:""}}const an={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=X();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.startNode=r.string();continue}case 3:{if(i!==26)break;a.endNode=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,startNode:o(e.startNode)?globalThis.String(e.startNode):"",endNode:o(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return an.fromPartial(e??{})},fromPartial(e){const n=X();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function b(){return{preferences:void 0,identifier:""}}const sn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.identifier!==""&&n.uint32(18).string(e.identifier),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=b();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.identifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,identifier:o(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return sn.fromPartial(e??{})},fromPartial(e){const n=b();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.identifier=e.identifier??"",n}};function j(){return{preferences:void 0,identifiers:[]}}const on={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.identifiers)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=j();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.identifiers.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,identifiers:globalThis.Array.isArray(e==null?void 0:e.identifiers)?e.identifiers.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),(r=e.identifiers)!=null&&r.length&&(n.identifiers=e.identifiers),n},create(e){return on.fromPartial(e??{})},fromPartial(e){var r;const n=j();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.identifiers=((r=e.identifiers)==null?void 0:r.map(s=>s))||[],n}};function ee(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const fn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&t.WriteFrame.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ee();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==26)break;a.frame=t.WriteFrame.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:o(e.frame)?t.WriteFrame.fromJSON(e.frame):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=t.WriteFrame.toJSON(e.frame)),n},create(e){return fn.fromPartial(e??{})},fromPartial(e){const n=ee();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?t.WriteFrame.fromPartial(e.frame):void 0,n}};function ne(){return{preferences:void 0,channelIdentifier:"",count:0,interval:0}}const un={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.count!==0&&n.uint32(24).int32(e.count),e.interval!==0&&n.uint32(32).int32(e.interval),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ne();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;a.count=r.int32();continue}case 4:{if(i!==32)break;a.interval=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",count:o(e.count)?globalThis.Number(e.count):0,interval:o(e.interval)?globalThis.Number(e.interval):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.count!==0&&(n.count=Math.round(e.count)),e.interval!==0&&(n.interval=Math.round(e.interval)),n},create(e){return un.fromPartial(e??{})},fromPartial(e){const n=ne();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.count=e.count??0,n.interval=e.interval??0,n}};function re(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const dn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=re();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;a.frameId=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:o(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return dn.fromPartial(e??{})},fromPartial(e){const n=re();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function ie(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const cn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&t.WriteFrame.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ie();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==26)break;a.frame=t.WriteFrame.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:o(e.frame)?t.WriteFrame.fromJSON(e.frame):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=t.WriteFrame.toJSON(e.frame)),n},create(e){return cn.fromPartial(e??{})},fromPartial(e){const n=ie();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?t.WriteFrame.fromPartial(e.frame):void 0,n}};function te(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const ln={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=te();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.channelIdentifier=r.string();continue}case 3:{if(i!==24)break;a.frameId=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,channelIdentifier:o(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:o(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return ln.fromPartial(e??{})},fromPartial(e){const n=te();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function ae(){return{preferences:void 0,settings:void 0}}const pn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&t.PeriodicTransmissionSettings.encode(e.settings,n.uint32(18).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ae();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.settings=t.PeriodicTransmissionSettings.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,settings:o(e.settings)?t.PeriodicTransmissionSettings.fromJSON(e.settings):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=t.PeriodicTransmissionSettings.toJSON(e.settings)),n},create(e){return pn.fromPartial(e??{})},fromPartial(e){const n=ae();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?t.PeriodicTransmissionSettings.fromPartial(e.settings):void 0,n}};function se(){return{preferences:void 0,settings:void 0,identifier:""}}const Sn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&t.PeriodicTransmissionSettings.encode(e.settings,n.uint32(18).fork()).join(),e.identifier!==""&&n.uint32(26).string(e.identifier),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=se();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.settings=t.PeriodicTransmissionSettings.decode(r,r.uint32());continue}case 3:{if(i!==26)break;a.identifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,settings:o(e.settings)?t.PeriodicTransmissionSettings.fromJSON(e.settings):void 0,identifier:o(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=t.PeriodicTransmissionSettings.toJSON(e.settings)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return Sn.fromPartial(e??{})},fromPartial(e){const n=se();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?t.PeriodicTransmissionSettings.fromPartial(e.settings):void 0,n.identifier=e.identifier??"",n}};function oe(){return{periodicTransmissionIdentifier:""}}const Nn={encode(e,n=new t.BinaryWriter){return e.periodicTransmissionIdentifier!==""&&n.uint32(10).string(e.periodicTransmissionIdentifier),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=oe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.periodicTransmissionIdentifier=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{periodicTransmissionIdentifier:o(e.periodicTransmissionIdentifier)?globalThis.String(e.periodicTransmissionIdentifier):""}},toJSON(e){const n={};return e.periodicTransmissionIdentifier!==""&&(n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier),n},create(e){return Nn.fromPartial(e??{})},fromPartial(e){const n=oe();return n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier??"",n}};function fe(){return{isOnline:!1}}const N={encode(e,n=new t.BinaryWriter){return e.isOnline!==!1&&n.uint32(8).bool(e.isOnline),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=fe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.isOnline=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{isOnline:o(e.isOnline)?globalThis.Boolean(e.isOnline):!1}},toJSON(e){const n={};return e.isOnline!==!1&&(n.isOnline=e.isOnline),n},create(e){return N.fromPartial(e??{})},fromPartial(e){const n=fe();return n.isOnline=e.isOnline??!1,n}};function ue(){return{eventType:0,identifier:void 0,measurementSetup:void 0,onlineStatus:void 0}}const En={encode(e,n=new t.BinaryWriter){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.identifier!==void 0&&n.uint32(18).string(e.identifier),e.measurementSetup!==void 0&&t.MeasurementSetup.encode(e.measurementSetup,n.uint32(26).fork()).join(),e.onlineStatus!==void 0&&N.encode(e.onlineStatus,n.uint32(34).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ue();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.eventType=r.int32();continue}case 2:{if(i!==18)break;a.identifier=r.string();continue}case 3:{if(i!==26)break;a.measurementSetup=t.MeasurementSetup.decode(r,r.uint32());continue}case 4:{if(i!==34)break;a.onlineStatus=N.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{eventType:o(e.eventType)?Qe(e.eventType):0,identifier:o(e.identifier)?globalThis.String(e.identifier):void 0,measurementSetup:o(e.measurementSetup)?t.MeasurementSetup.fromJSON(e.measurementSetup):void 0,onlineStatus:o(e.onlineStatus)?N.fromJSON(e.onlineStatus):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=He(e.eventType)),e.identifier!==void 0&&(n.identifier=e.identifier),e.measurementSetup!==void 0&&(n.measurementSetup=t.MeasurementSetup.toJSON(e.measurementSetup)),e.onlineStatus!==void 0&&(n.onlineStatus=N.toJSON(e.onlineStatus)),n},create(e){return En.fromPartial(e??{})},fromPartial(e){const n=ue();return n.eventType=e.eventType??0,n.identifier=e.identifier??void 0,n.measurementSetup=e.measurementSetup!==void 0&&e.measurementSetup!==null?t.MeasurementSetup.fromPartial(e.measurementSetup):void 0,n.onlineStatus=e.onlineStatus!==void 0&&e.onlineStatus!==null?N.fromPartial(e.onlineStatus):void 0,n}};function de(){return{preferences:void 0,messageLog:!1,signalLog:!1,readSupport:!1}}const Pn={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.messageLog!==!1&&n.uint32(16).bool(e.messageLog),e.signalLog!==!1&&n.uint32(24).bool(e.signalLog),e.readSupport!==!1&&n.uint32(32).bool(e.readSupport),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=de();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==16)break;a.messageLog=r.bool();continue}case 3:{if(i!==24)break;a.signalLog=r.bool();continue}case 4:{if(i!==32)break;a.readSupport=r.bool();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,messageLog:o(e.messageLog)?globalThis.Boolean(e.messageLog):!1,signalLog:o(e.signalLog)?globalThis.Boolean(e.signalLog):!1,readSupport:o(e.readSupport)?globalThis.Boolean(e.readSupport):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.messageLog!==!1&&(n.messageLog=e.messageLog),e.signalLog!==!1&&(n.signalLog=e.signalLog),e.readSupport!==!1&&(n.readSupport=e.readSupport),n},create(e){return Pn.fromPartial(e??{})},fromPartial(e){const n=de();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.messageLog=e.messageLog??!1,n.signalLog=e.signalLog??!1,n.readSupport=e.readSupport??!1,n}};function ce(){return{formats:[],names:[],extensions:[],descriptions:[]}}const mn={encode(e,n=new t.BinaryWriter){n.uint32(10).fork();for(const r of e.formats)n.int32(r);n.join();for(const r of e.names)n.uint32(18).string(r);for(const r of e.extensions)n.uint32(26).string(r);for(const r of e.descriptions)n.uint32(34).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ce();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i===8){a.formats.push(r.int32());continue}if(i===10){const c=r.uint32()+r.pos;for(;r.pos<c;)a.formats.push(r.int32());continue}break}case 2:{if(i!==18)break;a.names.push(r.string());continue}case 3:{if(i!==26)break;a.extensions.push(r.string());continue}case 4:{if(i!==34)break;a.descriptions.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{formats:globalThis.Array.isArray(e==null?void 0:e.formats)?e.formats.map(n=>t.logFileFormatFromJSON(n)):[],names:globalThis.Array.isArray(e==null?void 0:e.names)?e.names.map(n=>globalThis.String(n)):[],extensions:globalThis.Array.isArray(e==null?void 0:e.extensions)?e.extensions.map(n=>globalThis.String(n)):[],descriptions:globalThis.Array.isArray(e==null?void 0:e.descriptions)?e.descriptions.map(n=>globalThis.String(n)):[]}},toJSON(e){var r,s,a,i;const n={};return(r=e.formats)!=null&&r.length&&(n.formats=e.formats.map(c=>t.logFileFormatToJSON(c))),(s=e.names)!=null&&s.length&&(n.names=e.names),(a=e.extensions)!=null&&a.length&&(n.extensions=e.extensions),(i=e.descriptions)!=null&&i.length&&(n.descriptions=e.descriptions),n},create(e){return mn.fromPartial(e??{})},fromPartial(e){var r,s,a,i;const n=ce();return n.formats=((r=e.formats)==null?void 0:r.map(c=>c))||[],n.names=((s=e.names)==null?void 0:s.map(c=>c))||[],n.extensions=((a=e.extensions)==null?void 0:a.map(c=>c))||[],n.descriptions=((i=e.descriptions)==null?void 0:i.map(c=>c))||[],n}};function le(){return{preferences:void 0,logFile:""}}const On={encode(e,n=new t.BinaryWriter){return e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.logFile!==""&&n.uint32(18).string(e.logFile),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=le();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.logFile=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,logFile:o(e.logFile)?globalThis.String(e.logFile):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.logFile!==""&&(n.logFile=e.logFile),n},create(e){return On.fromPartial(e??{})},fromPartial(e){const n=le();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.logFile=e.logFile??"",n}};function pe(){return{channels:[]}}const Tn={encode(e,n=new t.BinaryWriter){n.uint32(10).fork();for(const r of e.channels)n.int32(r);return n.join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=pe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i===8){a.channels.push(r.int32());continue}if(i===10){const c=r.uint32()+r.pos;for(;r.pos<c;)a.channels.push(r.int32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r;const n={};return(r=e.channels)!=null&&r.length&&(n.channels=e.channels.map(s=>Math.round(s))),n},create(e){return Tn.fromPartial(e??{})},fromPartial(e){var r;const n=pe();return n.channels=((r=e.channels)==null?void 0:r.map(s=>s))||[],n}};function Se(){return{preferences:void 0,files:[]}}const Rn={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.files)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Se();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.files.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),(r=e.files)!=null&&r.length&&(n.files=e.files),n},create(e){return Rn.fromPartial(e??{})},fromPartial(e){var r;const n=Se();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.files=((r=e.files)==null?void 0:r.map(s=>s))||[],n}};function Ne(){return{preferences:void 0,files:[]}}const An={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join();for(const r of e.files)n.uint32(18).string(r);return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ne();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.files.push(r.string());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(n=>globalThis.String(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),(r=e.files)!=null&&r.length&&(n.files=e.files),n},create(e){return An.fromPartial(e??{})},fromPartial(e){var r;const n=Ne();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.files=((r=e.files)==null?void 0:r.map(s=>s))||[],n}};function Ee(){return{tables:[]}}const gn={encode(e,n=new t.BinaryWriter){for(const r of e.tables)t.ScheduleTable.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ee();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.tables.push(t.ScheduleTable.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{tables:globalThis.Array.isArray(e==null?void 0:e.tables)?e.tables.map(n=>t.ScheduleTable.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.tables)!=null&&r.length&&(n.tables=e.tables.map(s=>t.ScheduleTable.toJSON(s))),n},create(e){return gn.fromPartial(e??{})},fromPartial(e){var r;const n=Ee();return n.tables=((r=e.tables)==null?void 0:r.map(s=>t.ScheduleTable.fromPartial(s)))||[],n}};function Pe(){return{preferences:void 0,messageQualifiedName:"",data:[]}}const hn={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const r of e.data)n.uint32(r);return n.join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Pe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.messageQualifiedName=r.string();continue}case 3:{if(i===24){a.data.push(r.uint32());continue}if(i===26){const c=r.uint32()+r.pos;for(;r.pos<c;)a.data.push(r.uint32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,messageQualifiedName:o(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(r=e.data)!=null&&r.length&&(n.data=e.data.map(s=>Math.round(s))),n},create(e){return hn.fromPartial(e??{})},fromPartial(e){var r;const n=Pe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((r=e.data)==null?void 0:r.map(s=>s))||[],n}};function me(){return{signalValues:[]}}const kn={encode(e,n=new t.BinaryWriter){for(const r of e.signalValues)t.SignalValue.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=me();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.signalValues.push(t.SignalValue.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>t.SignalValue.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.signalValues)!=null&&r.length&&(n.signalValues=e.signalValues.map(s=>t.SignalValue.toJSON(s))),n},create(e){return kn.fromPartial(e??{})},fromPartial(e){var r;const n=me();return n.signalValues=((r=e.signalValues)==null?void 0:r.map(s=>t.SignalValue.fromPartial(s)))||[],n}};function Oe(){return{preferences:void 0,messageQualifiedName:"",data:[],signalValues:[]}}const In={encode(e,n=new t.BinaryWriter){e.preferences!==void 0&&t.ApiPreferences.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const r of e.data)n.uint32(r);n.join();for(const r of e.signalValues)t.SignalValue.encode(r,n.uint32(34).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Oe();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.preferences=t.ApiPreferences.decode(r,r.uint32());continue}case 2:{if(i!==18)break;a.messageQualifiedName=r.string();continue}case 3:{if(i===24){a.data.push(r.uint32());continue}if(i===26){const c=r.uint32()+r.pos;for(;r.pos<c;)a.data.push(r.uint32());continue}break}case 4:{if(i!==34)break;a.signalValues.push(t.SignalValue.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{preferences:o(e.preferences)?t.ApiPreferences.fromJSON(e.preferences):void 0,messageQualifiedName:o(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>t.SignalValue.fromJSON(n)):[]}},toJSON(e){var r,s;const n={};return e.preferences!==void 0&&(n.preferences=t.ApiPreferences.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(r=e.data)!=null&&r.length&&(n.data=e.data.map(a=>Math.round(a))),(s=e.signalValues)!=null&&s.length&&(n.signalValues=e.signalValues.map(a=>t.SignalValue.toJSON(a))),n},create(e){return In.fromPartial(e??{})},fromPartial(e){var r,s;const n=Oe();return n.preferences=e.preferences!==void 0&&e.preferences!==null?t.ApiPreferences.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((r=e.data)==null?void 0:r.map(a=>a))||[],n.signalValues=((s=e.signalValues)==null?void 0:s.map(a=>t.SignalValue.fromPartial(a)))||[],n}};function Te(){return{signalValues:[],data:[]}}const yn={encode(e,n=new t.BinaryWriter){for(const r of e.signalValues)t.SignalValue.encode(r,n.uint32(10).fork()).join();n.uint32(18).fork();for(const r of e.data)n.uint32(r);return n.join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Te();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.signalValues.push(t.SignalValue.decode(r,r.uint32()));continue}case 2:{if(i===16){a.data.push(r.uint32());continue}if(i===18){const c=r.uint32()+r.pos;for(;r.pos<c;)a.data.push(r.uint32());continue}break}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>t.SignalValue.fromJSON(n)):[],data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[]}},toJSON(e){var r,s;const n={};return(r=e.signalValues)!=null&&r.length&&(n.signalValues=e.signalValues.map(a=>t.SignalValue.toJSON(a))),(s=e.data)!=null&&s.length&&(n.data=e.data.map(a=>Math.round(a))),n},create(e){return yn.fromPartial(e??{})},fromPartial(e){var r,s;const n=Te();return n.signalValues=((r=e.signalValues)==null?void 0:r.map(a=>t.SignalValue.fromPartial(a)))||[],n.data=((s=e.data)==null?void 0:s.map(a=>a))||[],n}};function o(e){return e!=null}var _n=(e=>(e[e.STATUS_LEVEL_NONE=0]="STATUS_LEVEL_NONE",e[e.STATUS_LEVEL_OK=1]="STATUS_LEVEL_OK",e[e.STATUS_LEVEL_WARNING=2]="STATUS_LEVEL_WARNING",e[e.STATUS_LEVEL_ERROR=3]="STATUS_LEVEL_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(_n||{});function A(e){switch(e){case 0:case"STATUS_LEVEL_NONE":return 0;case 1:case"STATUS_LEVEL_OK":return 1;case 2:case"STATUS_LEVEL_WARNING":return 2;case 3:case"STATUS_LEVEL_ERROR":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function g(e){switch(e){case 0:return"STATUS_LEVEL_NONE";case 1:return"STATUS_LEVEL_OK";case 2:return"STATUS_LEVEL_WARNING";case 3:return"STATUS_LEVEL_ERROR";case-1:default:return"UNRECOGNIZED"}}var Ln=(e=>(e[e.LOG_REPLAY_STATE_UNSPECIFIED=0]="LOG_REPLAY_STATE_UNSPECIFIED",e[e.LOG_REPLAY_STATE_STARTED=1]="LOG_REPLAY_STATE_STARTED",e[e.LOG_REPLAY_STATE_STOPPED=2]="LOG_REPLAY_STATE_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ln||{});function Jn(e){switch(e){case 0:case"LOG_REPLAY_STATE_UNSPECIFIED":return 0;case 1:case"LOG_REPLAY_STATE_STARTED":return 1;case 2:case"LOG_REPLAY_STATE_STOPPED":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Bn(e){switch(e){case 0:return"LOG_REPLAY_STATE_UNSPECIFIED";case 1:return"LOG_REPLAY_STATE_STARTED";case 2:return"LOG_REPLAY_STATE_STOPPED";case-1:default:return"UNRECOGNIZED"}}var Cn=(e=>(e[e.MESSAGE_LOGGER_STATE_UNSPECIFIED=0]="MESSAGE_LOGGER_STATE_UNSPECIFIED",e[e.MESSAGE_LOGGER_STATE_PRESTART=1]="MESSAGE_LOGGER_STATE_PRESTART",e[e.MESSAGE_LOGGER_STATE_STARTED=2]="MESSAGE_LOGGER_STATE_STARTED",e[e.MESSAGE_LOGGER_STATE_STOPPED=3]="MESSAGE_LOGGER_STATE_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Cn||{});function vn(e){switch(e){case 0:case"MESSAGE_LOGGER_STATE_UNSPECIFIED":return 0;case 1:case"MESSAGE_LOGGER_STATE_PRESTART":return 1;case 2:case"MESSAGE_LOGGER_STATE_STARTED":return 2;case 3:case"MESSAGE_LOGGER_STATE_STOPPED":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Gn(e){switch(e){case 0:return"MESSAGE_LOGGER_STATE_UNSPECIFIED";case 1:return"MESSAGE_LOGGER_STATE_PRESTART";case 2:return"MESSAGE_LOGGER_STATE_STARTED";case 3:return"MESSAGE_LOGGER_STATE_STOPPED";case-1:default:return"UNRECOGNIZED"}}function Re(){return{rxMessageCounter:0,rxMessagesPerSecond:0,txMessageCounter:0,txMessagesPerSecond:0,errorFrameCounter:0,errorFramesPerSecond:0,overrunCounter:0,overrunsPerSecond:0,rxErrorCounter:0,txErrorCounter:0,overrunErrorCounter:0,busOnStatus:0,errorStatus:0,overrunStatus:0,busLoad:0}}const E={encode(e,n=new t.BinaryWriter){return e.rxMessageCounter!==0&&n.uint32(8).int32(e.rxMessageCounter),e.rxMessagesPerSecond!==0&&n.uint32(16).int32(e.rxMessagesPerSecond),e.txMessageCounter!==0&&n.uint32(24).int32(e.txMessageCounter),e.txMessagesPerSecond!==0&&n.uint32(32).int32(e.txMessagesPerSecond),e.errorFrameCounter!==0&&n.uint32(40).int32(e.errorFrameCounter),e.errorFramesPerSecond!==0&&n.uint32(48).int32(e.errorFramesPerSecond),e.overrunCounter!==0&&n.uint32(56).int32(e.overrunCounter),e.overrunsPerSecond!==0&&n.uint32(64).int32(e.overrunsPerSecond),e.rxErrorCounter!==0&&n.uint32(72).int32(e.rxErrorCounter),e.txErrorCounter!==0&&n.uint32(80).int32(e.txErrorCounter),e.overrunErrorCounter!==0&&n.uint32(88).int32(e.overrunErrorCounter),e.busOnStatus!==0&&n.uint32(96).int32(e.busOnStatus),e.errorStatus!==0&&n.uint32(104).int32(e.errorStatus),e.overrunStatus!==0&&n.uint32(112).int32(e.overrunStatus),e.busLoad!==0&&n.uint32(120).int32(e.busLoad),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Re();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.rxMessageCounter=r.int32();continue}case 2:{if(i!==16)break;a.rxMessagesPerSecond=r.int32();continue}case 3:{if(i!==24)break;a.txMessageCounter=r.int32();continue}case 4:{if(i!==32)break;a.txMessagesPerSecond=r.int32();continue}case 5:{if(i!==40)break;a.errorFrameCounter=r.int32();continue}case 6:{if(i!==48)break;a.errorFramesPerSecond=r.int32();continue}case 7:{if(i!==56)break;a.overrunCounter=r.int32();continue}case 8:{if(i!==64)break;a.overrunsPerSecond=r.int32();continue}case 9:{if(i!==72)break;a.rxErrorCounter=r.int32();continue}case 10:{if(i!==80)break;a.txErrorCounter=r.int32();continue}case 11:{if(i!==88)break;a.overrunErrorCounter=r.int32();continue}case 12:{if(i!==96)break;a.busOnStatus=r.int32();continue}case 13:{if(i!==104)break;a.errorStatus=r.int32();continue}case 14:{if(i!==112)break;a.overrunStatus=r.int32();continue}case 15:{if(i!==120)break;a.busLoad=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{rxMessageCounter:d(e.rxMessageCounter)?globalThis.Number(e.rxMessageCounter):0,rxMessagesPerSecond:d(e.rxMessagesPerSecond)?globalThis.Number(e.rxMessagesPerSecond):0,txMessageCounter:d(e.txMessageCounter)?globalThis.Number(e.txMessageCounter):0,txMessagesPerSecond:d(e.txMessagesPerSecond)?globalThis.Number(e.txMessagesPerSecond):0,errorFrameCounter:d(e.errorFrameCounter)?globalThis.Number(e.errorFrameCounter):0,errorFramesPerSecond:d(e.errorFramesPerSecond)?globalThis.Number(e.errorFramesPerSecond):0,overrunCounter:d(e.overrunCounter)?globalThis.Number(e.overrunCounter):0,overrunsPerSecond:d(e.overrunsPerSecond)?globalThis.Number(e.overrunsPerSecond):0,rxErrorCounter:d(e.rxErrorCounter)?globalThis.Number(e.rxErrorCounter):0,txErrorCounter:d(e.txErrorCounter)?globalThis.Number(e.txErrorCounter):0,overrunErrorCounter:d(e.overrunErrorCounter)?globalThis.Number(e.overrunErrorCounter):0,busOnStatus:d(e.busOnStatus)?A(e.busOnStatus):0,errorStatus:d(e.errorStatus)?A(e.errorStatus):0,overrunStatus:d(e.overrunStatus)?A(e.overrunStatus):0,busLoad:d(e.busLoad)?globalThis.Number(e.busLoad):0}},toJSON(e){const n={};return e.rxMessageCounter!==0&&(n.rxMessageCounter=Math.round(e.rxMessageCounter)),e.rxMessagesPerSecond!==0&&(n.rxMessagesPerSecond=Math.round(e.rxMessagesPerSecond)),e.txMessageCounter!==0&&(n.txMessageCounter=Math.round(e.txMessageCounter)),e.txMessagesPerSecond!==0&&(n.txMessagesPerSecond=Math.round(e.txMessagesPerSecond)),e.errorFrameCounter!==0&&(n.errorFrameCounter=Math.round(e.errorFrameCounter)),e.errorFramesPerSecond!==0&&(n.errorFramesPerSecond=Math.round(e.errorFramesPerSecond)),e.overrunCounter!==0&&(n.overrunCounter=Math.round(e.overrunCounter)),e.overrunsPerSecond!==0&&(n.overrunsPerSecond=Math.round(e.overrunsPerSecond)),e.rxErrorCounter!==0&&(n.rxErrorCounter=Math.round(e.rxErrorCounter)),e.txErrorCounter!==0&&(n.txErrorCounter=Math.round(e.txErrorCounter)),e.overrunErrorCounter!==0&&(n.overrunErrorCounter=Math.round(e.overrunErrorCounter)),e.busOnStatus!==0&&(n.busOnStatus=g(e.busOnStatus)),e.errorStatus!==0&&(n.errorStatus=g(e.errorStatus)),e.overrunStatus!==0&&(n.overrunStatus=g(e.overrunStatus)),e.busLoad!==0&&(n.busLoad=Math.round(e.busLoad)),n},create(e){return E.fromPartial(e??{})},fromPartial(e){const n=Re();return n.rxMessageCounter=e.rxMessageCounter??0,n.rxMessagesPerSecond=e.rxMessagesPerSecond??0,n.txMessageCounter=e.txMessageCounter??0,n.txMessagesPerSecond=e.txMessagesPerSecond??0,n.errorFrameCounter=e.errorFrameCounter??0,n.errorFramesPerSecond=e.errorFramesPerSecond??0,n.overrunCounter=e.overrunCounter??0,n.overrunsPerSecond=e.overrunsPerSecond??0,n.rxErrorCounter=e.rxErrorCounter??0,n.txErrorCounter=e.txErrorCounter??0,n.overrunErrorCounter=e.overrunErrorCounter??0,n.busOnStatus=e.busOnStatus??0,n.errorStatus=e.errorStatus??0,n.overrunStatus=e.overrunStatus??0,n.busLoad=e.busLoad??0,n}};function Ae(){return{errorCounter:0,lastExecutionTime:f.ZERO,minExecutionTime:f.ZERO,maxExecutionTime:f.ZERO}}const P={encode(e,n=new t.BinaryWriter){return e.errorCounter!==0&&n.uint32(8).int32(e.errorCounter),e.lastExecutionTime.equals(f.ZERO)||n.uint32(16).int64(e.lastExecutionTime.toString()),e.minExecutionTime.equals(f.ZERO)||n.uint32(24).int64(e.minExecutionTime.toString()),e.maxExecutionTime.equals(f.ZERO)||n.uint32(32).int64(e.maxExecutionTime.toString()),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ae();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.errorCounter=r.int32();continue}case 2:{if(i!==16)break;a.lastExecutionTime=f.fromString(r.int64().toString());continue}case 3:{if(i!==24)break;a.minExecutionTime=f.fromString(r.int64().toString());continue}case 4:{if(i!==32)break;a.maxExecutionTime=f.fromString(r.int64().toString());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{errorCounter:d(e.errorCounter)?globalThis.Number(e.errorCounter):0,lastExecutionTime:d(e.lastExecutionTime)?f.fromValue(e.lastExecutionTime):f.ZERO,minExecutionTime:d(e.minExecutionTime)?f.fromValue(e.minExecutionTime):f.ZERO,maxExecutionTime:d(e.maxExecutionTime)?f.fromValue(e.maxExecutionTime):f.ZERO}},toJSON(e){const n={};return e.errorCounter!==0&&(n.errorCounter=Math.round(e.errorCounter)),e.lastExecutionTime.equals(f.ZERO)||(n.lastExecutionTime=(e.lastExecutionTime||f.ZERO).toString()),e.minExecutionTime.equals(f.ZERO)||(n.minExecutionTime=(e.minExecutionTime||f.ZERO).toString()),e.maxExecutionTime.equals(f.ZERO)||(n.maxExecutionTime=(e.maxExecutionTime||f.ZERO).toString()),n},create(e){return P.fromPartial(e??{})},fromPartial(e){const n=Ae();return n.errorCounter=e.errorCounter??0,n.lastExecutionTime=e.lastExecutionTime!==void 0&&e.lastExecutionTime!==null?f.fromValue(e.lastExecutionTime):f.ZERO,n.minExecutionTime=e.minExecutionTime!==void 0&&e.minExecutionTime!==null?f.fromValue(e.minExecutionTime):f.ZERO,n.maxExecutionTime=e.maxExecutionTime!==void 0&&e.maxExecutionTime!==null?f.fromValue(e.maxExecutionTime):f.ZERO,n}};function ge(){return{state:0}}const m={encode(e,n=new t.BinaryWriter){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ge();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.state=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{state:d(e.state)?Jn(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=Bn(e.state)),n},create(e){return m.fromPartial(e??{})},fromPartial(e){const n=ge();return n.state=e.state??0,n}};function he(){return{state:0}}const O={encode(e,n=new t.BinaryWriter){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=he();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==8)break;a.state=r.int32();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{state:d(e.state)?vn(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=Gn(e.state)),n},create(e){return O.fromPartial(e??{})},fromPartial(e){const n=he();return n.state=e.state??0,n}};function ke(){return{errors:""}}const T={encode(e,n=new t.BinaryWriter){return e.errors!==""&&n.uint32(10).string(e.errors),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ke();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.errors=r.string();continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{errors:d(e.errors)?globalThis.String(e.errors):""}},toJSON(e){const n={};return e.errors!==""&&(n.errors=e.errors),n},create(e){return T.fromPartial(e??{})},fromPartial(e){const n=ke();return n.errors=e.errors??"",n}};function Ie(){return{nodeId:"",nodeName:"",streamId:"",busStatus:void 0,dataProcessingStatus:void 0,logReplayStatus:void 0,loggerStatus:void 0,errorStatus:void 0}}const R={encode(e,n=new t.BinaryWriter){return e.nodeId!==""&&n.uint32(10).string(e.nodeId),e.nodeName!==""&&n.uint32(18).string(e.nodeName),e.streamId!==""&&n.uint32(26).string(e.streamId),e.busStatus!==void 0&&E.encode(e.busStatus,n.uint32(34).fork()).join(),e.dataProcessingStatus!==void 0&&P.encode(e.dataProcessingStatus,n.uint32(42).fork()).join(),e.logReplayStatus!==void 0&&m.encode(e.logReplayStatus,n.uint32(50).fork()).join(),e.loggerStatus!==void 0&&O.encode(e.loggerStatus,n.uint32(58).fork()).join(),e.errorStatus!==void 0&&T.encode(e.errorStatus,n.uint32(66).fork()).join(),n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=Ie();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.nodeId=r.string();continue}case 2:{if(i!==18)break;a.nodeName=r.string();continue}case 3:{if(i!==26)break;a.streamId=r.string();continue}case 4:{if(i!==34)break;a.busStatus=E.decode(r,r.uint32());continue}case 5:{if(i!==42)break;a.dataProcessingStatus=P.decode(r,r.uint32());continue}case 6:{if(i!==50)break;a.logReplayStatus=m.decode(r,r.uint32());continue}case 7:{if(i!==58)break;a.loggerStatus=O.decode(r,r.uint32());continue}case 8:{if(i!==66)break;a.errorStatus=T.decode(r,r.uint32());continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{nodeId:d(e.nodeId)?globalThis.String(e.nodeId):"",nodeName:d(e.nodeName)?globalThis.String(e.nodeName):"",streamId:d(e.streamId)?globalThis.String(e.streamId):"",busStatus:d(e.busStatus)?E.fromJSON(e.busStatus):void 0,dataProcessingStatus:d(e.dataProcessingStatus)?P.fromJSON(e.dataProcessingStatus):void 0,logReplayStatus:d(e.logReplayStatus)?m.fromJSON(e.logReplayStatus):void 0,loggerStatus:d(e.loggerStatus)?O.fromJSON(e.loggerStatus):void 0,errorStatus:d(e.errorStatus)?T.fromJSON(e.errorStatus):void 0}},toJSON(e){const n={};return e.nodeId!==""&&(n.nodeId=e.nodeId),e.nodeName!==""&&(n.nodeName=e.nodeName),e.streamId!==""&&(n.streamId=e.streamId),e.busStatus!==void 0&&(n.busStatus=E.toJSON(e.busStatus)),e.dataProcessingStatus!==void 0&&(n.dataProcessingStatus=P.toJSON(e.dataProcessingStatus)),e.logReplayStatus!==void 0&&(n.logReplayStatus=m.toJSON(e.logReplayStatus)),e.loggerStatus!==void 0&&(n.loggerStatus=O.toJSON(e.loggerStatus)),e.errorStatus!==void 0&&(n.errorStatus=T.toJSON(e.errorStatus)),n},create(e){return R.fromPartial(e??{})},fromPartial(e){const n=Ie();return n.nodeId=e.nodeId??"",n.nodeName=e.nodeName??"",n.streamId=e.streamId??"",n.busStatus=e.busStatus!==void 0&&e.busStatus!==null?E.fromPartial(e.busStatus):void 0,n.dataProcessingStatus=e.dataProcessingStatus!==void 0&&e.dataProcessingStatus!==null?P.fromPartial(e.dataProcessingStatus):void 0,n.logReplayStatus=e.logReplayStatus!==void 0&&e.logReplayStatus!==null?m.fromPartial(e.logReplayStatus):void 0,n.loggerStatus=e.loggerStatus!==void 0&&e.loggerStatus!==null?O.fromPartial(e.loggerStatus):void 0,n.errorStatus=e.errorStatus!==void 0&&e.errorStatus!==null?T.fromPartial(e.errorStatus):void 0,n}};function ye(){return{items:[]}}const Vn={encode(e,n=new t.BinaryWriter){for(const r of e.items)R.encode(r,n.uint32(10).fork()).join();return n},decode(e,n){const r=e instanceof t.BinaryReader?e:new t.BinaryReader(e);let s=n===void 0?r.len:r.pos+n;const a=ye();for(;r.pos<s;){const i=r.uint32();switch(i>>>3){case 1:{if(i!==10)break;a.items.push(R.decode(r,r.uint32()));continue}}if((i&7)===4||i===0)break;r.skip(i&7)}return a},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>R.fromJSON(n)):[]}},toJSON(e){var r;const n={};return(r=e.items)!=null&&r.length&&(n.items=e.items.map(s=>R.toJSON(s))),n},create(e){return Vn.fromPartial(e??{})},fromPartial(e){var r;const n=ye();return n.items=((r=e.items)==null?void 0:r.map(s=>R.fromPartial(s)))||[],n}};function d(e){return e!=null}exports.AboutInformation=Ze;exports.ActivateLicenseRequest=We;exports.AddAllConnectedCanChannelsRequest=$e;exports.AddAllConnectedLinChannelsRequest=ze;exports.AddOrUpdateDataProcessorRequest=je;exports.AddOrUpdateSourceRequest=Xe;exports.AddOrUpdateTargetRequest=nn;exports.AppEvent=Be;exports.AppEventArgs=Me;exports.BusStatus=E;exports.ClearLinMessageRequest=ln;exports.ConnectNodesRequest=tn;exports.DataProcessingStatus=P;exports.DisconnectNodesRequest=an;exports.Empty=_e;exports.ErrorStatus=T;exports.FileType=Le;exports.GetChannelsFromLogFileRequest=On;exports.GetChannelsFromLogFileResponse=Tn;exports.GetDataProcessorResponse=en;exports.GetFrameDefinitionsFromDatabaseFilesRequest=Rn;exports.GetLicensesResponse=we;exports.GetLogFileFormatsRequest=Pn;exports.GetLogFileFormatsResponse=mn;exports.GetLogLevelResponse=Ve;exports.GetScheduleTablesFromDatabaseFilesRequest=An;exports.GetScheduleTablesFromDatabaseFilesResponse=gn;exports.GetServiceExtensionInfoRequest=Ue;exports.GetServiceExtensionInfoResponse=qe;exports.GetSignalDataFromMessageDataRequest=hn;exports.GetSignalDataFromMessageDataResponse=kn;exports.GetSourceResponse=be;exports.GetTargetResponse=rn;exports.IdentifierRequest=sn;exports.IdentifiersRequest=on;exports.InstallServiceExtensionRequest=De;exports.LicenseInformation=l;exports.Licenses=S;exports.LogLevel=Je;exports.LogMessage=p;exports.LogMessages=xe;exports.LogReplayState=Ln;exports.LogReplayStatus=m;exports.LoggerState=Cn;exports.LoggerStatus=O;exports.MeasurementEvent=Ke;exports.MeasurementEventArgs=En;exports.NodeStatus=R;exports.NodeStatuses=Vn;exports.OnlineStatus=N;exports.RequestLinMessageRequest=dn;exports.SendLinWakeupFrameRequest=un;exports.SendMessageRequest=fn;exports.SetLogLevelRequest=Ge;exports.SetMeasurementSetupRequest=Ye;exports.SetSignalDataToMessageDataRequest=In;exports.SetSignalDataToMessageDataResponse=yn;exports.StartPeriodicTransmissionRequest=pn;exports.StartPeriodicTransmissionResponse=Nn;exports.StatusLevel=_n;exports.UninstallServiceExtensionRequest=Fe;exports.UpdateLinMessageRequest=cn;exports.UpdatePeriodicTransmissionRequest=Sn;exports.appEventFromJSON=Ce;exports.appEventToJSON=ve;exports.fileTypeFromJSON=xn;exports.fileTypeToJSON=Mn;exports.logLevelFromJSON=h;exports.logLevelToJSON=k;exports.logReplayStateFromJSON=Jn;exports.logReplayStateToJSON=Bn;exports.loggerStateFromJSON=vn;exports.loggerStateToJSON=Gn;exports.measurementEventFromJSON=Qe;exports.measurementEventToJSON=He;exports.statusLevelFromJSON=A;exports.statusLevelToJSON=g;
1
+ "use strict";const c=require("long");function ga(){let e=0,n=0;for(let a=0;a<28;a+=7){let t=this.buf[this.pos++];if(e|=(t&127)<<a,!(t&128))return this.assertBounds(),[e,n]}let i=this.buf[this.pos++];if(e|=(i&15)<<28,n=(i&112)>>4,!(i&128))return this.assertBounds(),[e,n];for(let a=3;a<=31;a+=7){let t=this.buf[this.pos++];if(n|=(t&127)<<a,!(t&128))return this.assertBounds(),[e,n]}throw new Error("invalid varint")}function ye(e,n,i){for(let r=0;r<28;r=r+7){const l=e>>>r,A=!(!(l>>>7)&&n==0),M=(A?l|128:l)&255;if(i.push(M),!A)return}const a=e>>>28&15|(n&7)<<4,t=!!(n>>3);if(i.push((t?a|128:a)&255),!!t){for(let r=3;r<31;r=r+7){const l=n>>>r,A=!!(l>>>7),M=(A?l|128:l)&255;if(i.push(M),!A)return}i.push(n>>>31&1)}}const Fe=4294967296;function Ye(e){const n=e[0]==="-";n&&(e=e.slice(1));const i=1e6;let a=0,t=0;function r(l,A){const M=Number(e.slice(l,A));t*=i,a=a*i+M,a>=Fe&&(t=t+(a/Fe|0),a=a%Fe)}return r(-24,-18),r(-18,-12),r(-12,-6),r(-6),n?Or(a,t):Ue(a,t)}function Ma(e,n){let i=Ue(e,n);const a=i.hi&2147483648;a&&(i=Or(i.lo,i.hi));const t=Ar(i.lo,i.hi);return a?"-"+t:t}function Ar(e,n){if({lo:e,hi:n}=ka(e,n),n<=2097151)return String(Fe*n+e);const i=e&16777215,a=(e>>>24|n<<8)&16777215,t=n>>16&65535;let r=i+a*6777216+t*6710656,l=a+t*8147497,A=t*2;const M=1e7;return r>=M&&(l+=Math.floor(r/M),r%=M),l>=M&&(A+=Math.floor(l/M),l%=M),A.toString()+We(l)+We(r)}function ka(e,n){return{lo:e>>>0,hi:n>>>0}}function Ue(e,n){return{lo:e|0,hi:n|0}}function Or(e,n){return n=~n,e?e=~e+1:n+=1,Ue(e,n)}const We=e=>{const n=String(e);return"0000000".slice(n.length)+n};function $e(e,n){if(e>=0){for(;e>127;)n.push(e&127|128),e=e>>>7;n.push(e)}else{for(let i=0;i<9;i++)n.push(e&127|128),e=e>>7;n.push(1)}}function Ga(){let e=this.buf[this.pos++],n=e&127;if(!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<7,!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<14,!(e&128))return this.assertBounds(),n;if(e=this.buf[this.pos++],n|=(e&127)<<21,!(e&128))return this.assertBounds(),n;e=this.buf[this.pos++],n|=(e&15)<<28;for(let i=5;e&128&&i<10;i++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),n>>>0}const q=Da();function Da(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),t=BigInt("0"),r=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){const A=typeof l=="bigint"?l:BigInt(l);if(A>a||A<i)throw new Error(`invalid int64: ${l}`);return A},uParse(l){const A=typeof l=="bigint"?l:BigInt(l);if(A>r||A<t)throw new Error(`invalid uint64: ${l}`);return A},enc(l){return e.setBigInt64(0,this.parse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(l){return e.setBigInt64(0,this.uParse(l),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(l,A){return e.setInt32(0,l,!0),e.setInt32(4,A,!0),e.getBigInt64(0,!0)},uDec(l,A){return e.setInt32(0,l,!0),e.setInt32(4,A,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),je(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),en(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),je(i),Ye(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),en(i),Ye(i)},dec(i,a){return Ma(i,a)},uDec(i,a){return Ar(i,a)}}}function je(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function en(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}const Ve=Symbol.for("@bufbuild/protobuf/text-encoding");function vr(){if(globalThis[Ve]==null){const e=new globalThis.TextEncoder,n=new globalThis.TextDecoder;globalThis[Ve]={encodeUtf8(i){return e.encode(i)},decodeUtf8(i){return n.decode(i)},checkUtf8(i){try{return encodeURIComponent(i),!0}catch{return!1}}}}return globalThis[Ve]}var X;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(X||(X={}));const xa=34028234663852886e22,Ja=-34028234663852886e22,ba=4294967295,ya=2147483647,Va=-2147483648;class d{constructor(n=vr().encodeUtf8){this.encodeUtf8=n,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let n=0;for(let t=0;t<this.chunks.length;t++)n+=this.chunks[t].length;let i=new Uint8Array(n),a=0;for(let t=0;t<this.chunks.length;t++)i.set(this.chunks[t],a),a+=this.chunks[t].length;return this.chunks=[],i}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let n=this.finish(),i=this.stack.pop();if(!i)throw new Error("invalid state, fork stack empty");return this.chunks=i.chunks,this.buf=i.buf,this.uint32(n.byteLength),this.raw(n)}tag(n,i){return this.uint32((n<<3|i)>>>0)}raw(n){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(n),this}uint32(n){for(nn(n);n>127;)this.buf.push(n&127|128),n=n>>>7;return this.buf.push(n),this}int32(n){return Be(n),$e(n,this.buf),this}bool(n){return this.buf.push(n?1:0),this}bytes(n){return this.uint32(n.byteLength),this.raw(n)}string(n){let i=this.encodeUtf8(n);return this.uint32(i.byteLength),this.raw(i)}float(n){Ba(n);let i=new Uint8Array(4);return new DataView(i.buffer).setFloat32(0,n,!0),this.raw(i)}double(n){let i=new Uint8Array(8);return new DataView(i.buffer).setFloat64(0,n,!0),this.raw(i)}fixed32(n){nn(n);let i=new Uint8Array(4);return new DataView(i.buffer).setUint32(0,n,!0),this.raw(i)}sfixed32(n){Be(n);let i=new Uint8Array(4);return new DataView(i.buffer).setInt32(0,n,!0),this.raw(i)}sint32(n){return Be(n),n=(n<<1^n>>31)>>>0,$e(n,this.buf),this}sfixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),t=q.enc(n);return a.setInt32(0,t.lo,!0),a.setInt32(4,t.hi,!0),this.raw(i)}fixed64(n){let i=new Uint8Array(8),a=new DataView(i.buffer),t=q.uEnc(n);return a.setInt32(0,t.lo,!0),a.setInt32(4,t.hi,!0),this.raw(i)}int64(n){let i=q.enc(n);return ye(i.lo,i.hi,this.buf),this}sint64(n){let i=q.enc(n),a=i.hi>>31,t=i.lo<<1^a,r=(i.hi<<1|i.lo>>>31)^a;return ye(t,r,this.buf),this}uint64(n){let i=q.uEnc(n);return ye(i.lo,i.hi,this.buf),this}}class o{constructor(n,i=vr().decodeUtf8){this.decodeUtf8=i,this.varint64=ga,this.uint32=Ga,this.buf=n,this.len=n.length,this.pos=0,this.view=new DataView(n.buffer,n.byteOffset,n.byteLength)}tag(){let n=this.uint32(),i=n>>>3,a=n&7;if(i<=0||a<0||a>5)throw new Error("illegal tag: field no "+i+" wire type "+a);return[i,a]}skip(n,i){let a=this.pos;switch(n){case X.Varint:for(;this.buf[this.pos++]&128;);break;case X.Bit64:this.pos+=4;case X.Bit32:this.pos+=4;break;case X.LengthDelimited:let t=this.uint32();this.pos+=t;break;case X.StartGroup:for(;;){const[r,l]=this.tag();if(l===X.EndGroup){if(i!==void 0&&r!==i)throw new Error("invalid end group tag");break}this.skip(l,r)}break;default:throw new Error("cant skip wire type "+n)}return this.assertBounds(),this.buf.subarray(a,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let n=this.uint32();return n>>>1^-(n&1)}int64(){return q.dec(...this.varint64())}uint64(){return q.uDec(...this.varint64())}sint64(){let[n,i]=this.varint64(),a=-(n&1);return n=(n>>>1|(i&1)<<31)^a,i=i>>>1^a,q.dec(n,i)}bool(){let[n,i]=this.varint64();return n!==0||i!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return q.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return q.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let n=this.uint32(),i=this.pos;return this.pos+=n,this.assertBounds(),this.buf.subarray(i,i+n)}string(){return this.decodeUtf8(this.bytes())}}function Be(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>ya||e<Va)throw new Error("invalid int32: "+e)}function nn(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>ba||e<0)throw new Error("invalid uint32: "+e)}function Ba(e){if(typeof e=="string"){const n=e;if(e=Number(e),isNaN(e)&&n!=="NaN")throw new Error("invalid float32: "+n)}else if(typeof e!="number")throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>xa||e<Ja))throw new Error("invalid float32: "+e)}var Tr=(e=>(e[e.SIGNAL_ENCODING_INTEL=0]="SIGNAL_ENCODING_INTEL",e[e.SIGNAL_ENCODING_MOTOROLA=1]="SIGNAL_ENCODING_MOTOROLA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Tr||{});function Rr(e){switch(e){case 0:case"SIGNAL_ENCODING_INTEL":return 0;case 1:case"SIGNAL_ENCODING_MOTOROLA":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function hr(e){switch(e){case 0:return"SIGNAL_ENCODING_INTEL";case 1:return"SIGNAL_ENCODING_MOTOROLA";case-1:default:return"UNRECOGNIZED"}}var Ir=(e=>(e[e.SIGNAL_TYPE_INVALID=0]="SIGNAL_TYPE_INVALID",e[e.SIGNAL_TYPE_SIGNED=1]="SIGNAL_TYPE_SIGNED",e[e.SIGNAL_TYPE_UNSIGNED=2]="SIGNAL_TYPE_UNSIGNED",e[e.SIGNAL_TYPE_FLOAT=3]="SIGNAL_TYPE_FLOAT",e[e.SIGNAL_TYPE_DOUBLE=4]="SIGNAL_TYPE_DOUBLE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ir||{});function Pr(e){switch(e){case 0:case"SIGNAL_TYPE_INVALID":return 0;case 1:case"SIGNAL_TYPE_SIGNED":return 1;case 2:case"SIGNAL_TYPE_UNSIGNED":return 2;case 3:case"SIGNAL_TYPE_FLOAT":return 3;case 4:case"SIGNAL_TYPE_DOUBLE":return 4;case-1:case"UNRECOGNIZED":default:return-1}}function Cr(e){switch(e){case 0:return"SIGNAL_TYPE_INVALID";case 1:return"SIGNAL_TYPE_SIGNED";case 2:return"SIGNAL_TYPE_UNSIGNED";case 3:return"SIGNAL_TYPE_FLOAT";case 4:return"SIGNAL_TYPE_DOUBLE";case-1:default:return"UNRECOGNIZED"}}function rn(){return{name:"",qualifiedName:"",comment:"",encoding:0,dataType:0,startbit:0,length:0,unit:"",factor:0,offset:0,minValue:0,maxValue:0,enumValues:{},isMultiplexer:!1,isMultiplexed:!1,multiplexValue:void 0}}const D={encode(e,n=new d){return e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName),e.comment!==""&&n.uint32(26).string(e.comment),e.encoding!==0&&n.uint32(32).int32(e.encoding),e.dataType!==0&&n.uint32(40).int32(e.dataType),e.startbit!==0&&n.uint32(48).int32(e.startbit),e.length!==0&&n.uint32(56).int32(e.length),e.unit!==""&&n.uint32(66).string(e.unit),e.factor!==0&&n.uint32(73).double(e.factor),e.offset!==0&&n.uint32(81).double(e.offset),e.minValue!==0&&n.uint32(89).double(e.minValue),e.maxValue!==0&&n.uint32(97).double(e.maxValue),Object.entries(e.enumValues).forEach(([i,a])=>{Me.encode({key:i,value:a},n.uint32(106).fork()).join()}),e.isMultiplexer!==!1&&n.uint32(112).bool(e.isMultiplexer),e.isMultiplexed!==!1&&n.uint32(120).bool(e.isMultiplexed),e.multiplexValue!==void 0&&n.uint32(128).int32(e.multiplexValue),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=rn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.comment=i.string();continue}case 4:{if(r!==32)break;t.encoding=i.int32();continue}case 5:{if(r!==40)break;t.dataType=i.int32();continue}case 6:{if(r!==48)break;t.startbit=i.int32();continue}case 7:{if(r!==56)break;t.length=i.int32();continue}case 8:{if(r!==66)break;t.unit=i.string();continue}case 9:{if(r!==73)break;t.factor=i.double();continue}case 10:{if(r!==81)break;t.offset=i.double();continue}case 11:{if(r!==89)break;t.minValue=i.double();continue}case 12:{if(r!==97)break;t.maxValue=i.double();continue}case 13:{if(r!==106)break;const l=Me.decode(i,i.uint32());l.value!==void 0&&(t.enumValues[l.key]=l.value);continue}case 14:{if(r!==112)break;t.isMultiplexer=i.bool();continue}case 15:{if(r!==120)break;t.isMultiplexed=i.bool();continue}case 16:{if(r!==128)break;t.multiplexValue=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:h(e.name)?globalThis.String(e.name):"",qualifiedName:h(e.qualifiedName)?globalThis.String(e.qualifiedName):"",comment:h(e.comment)?globalThis.String(e.comment):"",encoding:h(e.encoding)?Rr(e.encoding):0,dataType:h(e.dataType)?Pr(e.dataType):0,startbit:h(e.startbit)?globalThis.Number(e.startbit):0,length:h(e.length)?globalThis.Number(e.length):0,unit:h(e.unit)?globalThis.String(e.unit):"",factor:h(e.factor)?globalThis.Number(e.factor):0,offset:h(e.offset)?globalThis.Number(e.offset):0,minValue:h(e.minValue)?globalThis.Number(e.minValue):0,maxValue:h(e.maxValue)?globalThis.Number(e.maxValue):0,enumValues:Ua(e.enumValues)?Object.entries(e.enumValues).reduce((n,[i,a])=>(n[globalThis.Number(i)]=String(a),n),{}):{},isMultiplexer:h(e.isMultiplexer)?globalThis.Boolean(e.isMultiplexer):!1,isMultiplexed:h(e.isMultiplexed)?globalThis.Boolean(e.isMultiplexed):!1,multiplexValue:h(e.multiplexValue)?globalThis.Number(e.multiplexValue):void 0}},toJSON(e){const n={};if(e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),e.comment!==""&&(n.comment=e.comment),e.encoding!==0&&(n.encoding=hr(e.encoding)),e.dataType!==0&&(n.dataType=Cr(e.dataType)),e.startbit!==0&&(n.startbit=Math.round(e.startbit)),e.length!==0&&(n.length=Math.round(e.length)),e.unit!==""&&(n.unit=e.unit),e.factor!==0&&(n.factor=e.factor),e.offset!==0&&(n.offset=e.offset),e.minValue!==0&&(n.minValue=e.minValue),e.maxValue!==0&&(n.maxValue=e.maxValue),e.enumValues){const i=Object.entries(e.enumValues);i.length>0&&(n.enumValues={},i.forEach(([a,t])=>{n.enumValues[a]=t}))}return e.isMultiplexer!==!1&&(n.isMultiplexer=e.isMultiplexer),e.isMultiplexed!==!1&&(n.isMultiplexed=e.isMultiplexed),e.multiplexValue!==void 0&&(n.multiplexValue=Math.round(e.multiplexValue)),n},create(e){return D.fromPartial(e??{})},fromPartial(e){const n=rn();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.comment=e.comment??"",n.encoding=e.encoding??0,n.dataType=e.dataType??0,n.startbit=e.startbit??0,n.length=e.length??0,n.unit=e.unit??"",n.factor=e.factor??0,n.offset=e.offset??0,n.minValue=e.minValue??0,n.maxValue=e.maxValue??0,n.enumValues=Object.entries(e.enumValues??{}).reduce((i,[a,t])=>(t!==void 0&&(i[globalThis.Number(a)]=globalThis.String(t)),i),{}),n.isMultiplexer=e.isMultiplexer??!1,n.isMultiplexed=e.isMultiplexed??!1,n.multiplexValue=e.multiplexValue??void 0,n}};function tn(){return{key:0,value:""}}const Me={encode(e,n=new d){return e.key!==0&&n.uint32(8).int32(e.key),e.value!==""&&n.uint32(18).string(e.value),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=tn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.key=i.int32();continue}case 2:{if(r!==18)break;t.value=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:h(e.key)?globalThis.Number(e.key):0,value:h(e.value)?globalThis.String(e.value):""}},toJSON(e){const n={};return e.key!==0&&(n.key=Math.round(e.key)),e.value!==""&&(n.value=e.value),n},create(e){return Me.fromPartial(e??{})},fromPartial(e){const n=tn();return n.key=e.key??0,n.value=e.value??"",n}};function an(){return{items:[]}}const Fr={encode(e,n=new d){for(const i of e.items)D.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=an();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(D.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>D.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>D.toJSON(a))),n},create(e){return Fr.fromPartial(e??{})},fromPartial(e){var i;const n=an();return n.items=((i=e.items)==null?void 0:i.map(a=>D.fromPartial(a)))||[],n}};function Ua(e){return typeof e=="object"&&e!==null}function h(e){return e!=null}var Lr=(e=>(e[e.CAN_FRAME_FLAG_UNSPECIFIED=0]="CAN_FRAME_FLAG_UNSPECIFIED",e[e.CAN_FRAME_FLAG_RTR=1]="CAN_FRAME_FLAG_RTR",e[e.CAN_FRAME_FLAG_STD=2]="CAN_FRAME_FLAG_STD",e[e.CAN_FRAME_FLAG_EXT=4]="CAN_FRAME_FLAG_EXT",e[e.CAN_FRAME_FLAG_WAKEUP=8]="CAN_FRAME_FLAG_WAKEUP",e[e.CAN_FRAME_FLAG_NERR=16]="CAN_FRAME_FLAG_NERR",e[e.CAN_FRAME_FLAG_ERROR_FRAME=32]="CAN_FRAME_FLAG_ERROR_FRAME",e[e.CAN_FRAME_FLAG_TXACK=64]="CAN_FRAME_FLAG_TXACK",e[e.CAN_FRAME_FLAG_TXRQ=128]="CAN_FRAME_FLAG_TXRQ",e[e.CAN_FRAME_FLAG_DELAY_MSG=256]="CAN_FRAME_FLAG_DELAY_MSG",e[e.CAN_FRAME_FLAG_LOCAL_TXACK=268435456]="CAN_FRAME_FLAG_LOCAL_TXACK",e[e.CAN_FRAME_FLAG_SINGLE_SHOT=16777216]="CAN_FRAME_FLAG_SINGLE_SHOT",e[e.CAN_FRAME_FLAG_TXNACK=33554432]="CAN_FRAME_FLAG_TXNACK",e[e.CAN_FRAME_FLAG_ABL=67108864]="CAN_FRAME_FLAG_ABL",e[e.CAN_FRAME_FLAG_FD_FDF=65536]="CAN_FRAME_FLAG_FD_FDF",e[e.CAN_FRAME_FLAG_FD_BRS=131072]="CAN_FRAME_FLAG_FD_BRS",e[e.CAN_FRAME_FLAG_FD_ESI=262144]="CAN_FRAME_FLAG_FD_ESI",e[e.CAN_FRAME_FLAG_ERR_HW_OVERRUN=512]="CAN_FRAME_FLAG_ERR_HW_OVERRUN",e[e.CAN_FRAME_FLAG_ERR_SW_OVERRUN=1024]="CAN_FRAME_FLAG_ERR_SW_OVERRUN",e[e.CAN_FRAME_FLAG_ERR_STUFF=2048]="CAN_FRAME_FLAG_ERR_STUFF",e[e.CAN_FRAME_FLAG_ERR_FORM=4096]="CAN_FRAME_FLAG_ERR_FORM",e[e.CAN_FRAME_FLAG_ERR_CRC=8192]="CAN_FRAME_FLAG_ERR_CRC",e[e.CAN_FRAME_FLAG_ERR_BIT0=16384]="CAN_FRAME_FLAG_ERR_BIT0",e[e.CAN_FRAME_FLAG_ERR_BIT1=32768]="CAN_FRAME_FLAG_ERR_BIT1",e[e.CAN_FRAME_FLAG_XL_XLF=1048576]="CAN_FRAME_FLAG_XL_XLF",e[e.CAN_FRAME_FLAG_XL_VCID=2097152]="CAN_FRAME_FLAG_XL_VCID",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Lr||{});function gr(e){switch(e){case 0:case"CAN_FRAME_FLAG_UNSPECIFIED":return 0;case 1:case"CAN_FRAME_FLAG_RTR":return 1;case 2:case"CAN_FRAME_FLAG_STD":return 2;case 4:case"CAN_FRAME_FLAG_EXT":return 4;case 8:case"CAN_FRAME_FLAG_WAKEUP":return 8;case 16:case"CAN_FRAME_FLAG_NERR":return 16;case 32:case"CAN_FRAME_FLAG_ERROR_FRAME":return 32;case 64:case"CAN_FRAME_FLAG_TXACK":return 64;case 128:case"CAN_FRAME_FLAG_TXRQ":return 128;case 256:case"CAN_FRAME_FLAG_DELAY_MSG":return 256;case 268435456:case"CAN_FRAME_FLAG_LOCAL_TXACK":return 268435456;case 16777216:case"CAN_FRAME_FLAG_SINGLE_SHOT":return 16777216;case 33554432:case"CAN_FRAME_FLAG_TXNACK":return 33554432;case 67108864:case"CAN_FRAME_FLAG_ABL":return 67108864;case 65536:case"CAN_FRAME_FLAG_FD_FDF":return 65536;case 131072:case"CAN_FRAME_FLAG_FD_BRS":return 131072;case 262144:case"CAN_FRAME_FLAG_FD_ESI":return 262144;case 512:case"CAN_FRAME_FLAG_ERR_HW_OVERRUN":return 512;case 1024:case"CAN_FRAME_FLAG_ERR_SW_OVERRUN":return 1024;case 2048:case"CAN_FRAME_FLAG_ERR_STUFF":return 2048;case 4096:case"CAN_FRAME_FLAG_ERR_FORM":return 4096;case 8192:case"CAN_FRAME_FLAG_ERR_CRC":return 8192;case 16384:case"CAN_FRAME_FLAG_ERR_BIT0":return 16384;case 32768:case"CAN_FRAME_FLAG_ERR_BIT1":return 32768;case 1048576:case"CAN_FRAME_FLAG_XL_XLF":return 1048576;case 2097152:case"CAN_FRAME_FLAG_XL_VCID":return 2097152;case-1:case"UNRECOGNIZED":default:return-1}}function Mr(e){switch(e){case 0:return"CAN_FRAME_FLAG_UNSPECIFIED";case 1:return"CAN_FRAME_FLAG_RTR";case 2:return"CAN_FRAME_FLAG_STD";case 4:return"CAN_FRAME_FLAG_EXT";case 8:return"CAN_FRAME_FLAG_WAKEUP";case 16:return"CAN_FRAME_FLAG_NERR";case 32:return"CAN_FRAME_FLAG_ERROR_FRAME";case 64:return"CAN_FRAME_FLAG_TXACK";case 128:return"CAN_FRAME_FLAG_TXRQ";case 256:return"CAN_FRAME_FLAG_DELAY_MSG";case 268435456:return"CAN_FRAME_FLAG_LOCAL_TXACK";case 16777216:return"CAN_FRAME_FLAG_SINGLE_SHOT";case 33554432:return"CAN_FRAME_FLAG_TXNACK";case 67108864:return"CAN_FRAME_FLAG_ABL";case 65536:return"CAN_FRAME_FLAG_FD_FDF";case 131072:return"CAN_FRAME_FLAG_FD_BRS";case 262144:return"CAN_FRAME_FLAG_FD_ESI";case 512:return"CAN_FRAME_FLAG_ERR_HW_OVERRUN";case 1024:return"CAN_FRAME_FLAG_ERR_SW_OVERRUN";case 2048:return"CAN_FRAME_FLAG_ERR_STUFF";case 4096:return"CAN_FRAME_FLAG_ERR_FORM";case 8192:return"CAN_FRAME_FLAG_ERR_CRC";case 16384:return"CAN_FRAME_FLAG_ERR_BIT0";case 32768:return"CAN_FRAME_FLAG_ERR_BIT1";case 1048576:return"CAN_FRAME_FLAG_XL_XLF";case 2097152:return"CAN_FRAME_FLAG_XL_VCID";case-1:default:return"UNRECOGNIZED"}}var kr=(e=>(e[e.LIN_FRAME_FLAG_UNSPECIFIED=0]="LIN_FRAME_FLAG_UNSPECIFIED",e[e.LIN_FRAME_FLAG_TX=1]="LIN_FRAME_FLAG_TX",e[e.LIN_FRAME_FLAG_RX=2]="LIN_FRAME_FLAG_RX",e[e.LIN_FRAME_FLAG_WAKEUP_FRAME=4]="LIN_FRAME_FLAG_WAKEUP_FRAME",e[e.LIN_FRAME_FLAG_NODATA=8]="LIN_FRAME_FLAG_NODATA",e[e.LIN_FRAME_FLAG_CSUM_ERROR=16]="LIN_FRAME_FLAG_CSUM_ERROR",e[e.LIN_FRAME_FLAG_PARITY_ERROR=32]="LIN_FRAME_FLAG_PARITY_ERROR",e[e.LIN_FRAME_FLAG_SYNCH_ERROR=64]="LIN_FRAME_FLAG_SYNCH_ERROR",e[e.LIN_FRAME_FLAG_BIT_ERROR=128]="LIN_FRAME_FLAG_BIT_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(kr||{});function Gr(e){switch(e){case 0:case"LIN_FRAME_FLAG_UNSPECIFIED":return 0;case 1:case"LIN_FRAME_FLAG_TX":return 1;case 2:case"LIN_FRAME_FLAG_RX":return 2;case 4:case"LIN_FRAME_FLAG_WAKEUP_FRAME":return 4;case 8:case"LIN_FRAME_FLAG_NODATA":return 8;case 16:case"LIN_FRAME_FLAG_CSUM_ERROR":return 16;case 32:case"LIN_FRAME_FLAG_PARITY_ERROR":return 32;case 64:case"LIN_FRAME_FLAG_SYNCH_ERROR":return 64;case 128:case"LIN_FRAME_FLAG_BIT_ERROR":return 128;case-1:case"UNRECOGNIZED":default:return-1}}function Dr(e){switch(e){case 0:return"LIN_FRAME_FLAG_UNSPECIFIED";case 1:return"LIN_FRAME_FLAG_TX";case 2:return"LIN_FRAME_FLAG_RX";case 4:return"LIN_FRAME_FLAG_WAKEUP_FRAME";case 8:return"LIN_FRAME_FLAG_NODATA";case 16:return"LIN_FRAME_FLAG_CSUM_ERROR";case 32:return"LIN_FRAME_FLAG_PARITY_ERROR";case 64:return"LIN_FRAME_FLAG_SYNCH_ERROR";case 128:return"LIN_FRAME_FLAG_BIT_ERROR";case-1:default:return"UNRECOGNIZED"}}function on(){return{flags:[]}}const v={encode(e,n=new d){n.uint32(10).fork();for(const i of e.flags)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=on();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r===8){t.flags.push(i.int32());continue}if(r===10){const l=i.uint32()+i.pos;for(;i.pos<l;)t.flags.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>gr(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>Mr(a))),n},create(e){return v.fromPartial(e??{})},fromPartial(e){var i;const n=on();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function sn(){return{flags:[]}}const I={encode(e,n=new d){n.uint32(10).fork();for(const i of e.flags)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=sn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r===8){t.flags.push(i.int32());continue}if(r===10){const l=i.uint32()+i.pos;for(;i.pos<l;)t.flags.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{flags:globalThis.Array.isArray(e==null?void 0:e.flags)?e.flags.map(n=>Gr(n)):[]}},toJSON(e){var i;const n={};return(i=e.flags)!=null&&i.length&&(n.flags=e.flags.map(a=>Dr(a))),n},create(e){return I.fromPartial(e??{})},fromPartial(e){var i;const n=sn();return n.flags=((i=e.flags)==null?void 0:i.map(a=>a))||[],n}};function un(){return{stringValue:void 0,doubleValue:void 0}}const Z={encode(e,n=new d){return e.stringValue!==void 0&&n.uint32(10).string(e.stringValue),e.doubleValue!==void 0&&n.uint32(17).double(e.doubleValue),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=un();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.stringValue=i.string();continue}case 2:{if(r!==17)break;t.doubleValue=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{stringValue:_(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:_(e.doubleValue)?globalThis.Number(e.doubleValue):void 0}},toJSON(e){const n={};return e.stringValue!==void 0&&(n.stringValue=e.stringValue),e.doubleValue!==void 0&&(n.doubleValue=e.doubleValue),n},create(e){return Z.fromPartial(e??{})},fromPartial(e){const n=un();return n.stringValue=e.stringValue??void 0,n.doubleValue=e.doubleValue??void 0,n}};function dn(){return{name:"",qualifiedName:"",unit:"",stringValue:void 0,doubleValue:0}}const T={encode(e,n=new d){return e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName),e.unit!==""&&n.uint32(26).string(e.unit),e.stringValue!==void 0&&n.uint32(34).string(e.stringValue),e.doubleValue!==0&&n.uint32(41).double(e.doubleValue),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=dn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.unit=i.string();continue}case 4:{if(r!==34)break;t.stringValue=i.string();continue}case 5:{if(r!==41)break;t.doubleValue=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:_(e.name)?globalThis.String(e.name):"",qualifiedName:_(e.qualifiedName)?globalThis.String(e.qualifiedName):"",unit:_(e.unit)?globalThis.String(e.unit):"",stringValue:_(e.stringValue)?globalThis.String(e.stringValue):void 0,doubleValue:_(e.doubleValue)?globalThis.Number(e.doubleValue):0}},toJSON(e){const n={};return e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),e.unit!==""&&(n.unit=e.unit),e.stringValue!==void 0&&(n.stringValue=e.stringValue),e.doubleValue!==0&&(n.doubleValue=e.doubleValue),n},create(e){return T.fromPartial(e??{})},fromPartial(e){const n=dn();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.unit=e.unit??"",n.stringValue=e.stringValue??void 0,n.doubleValue=e.doubleValue??0,n}};function ln(){return{sourceId:"",sourceName:"",streamId:"",id:0,messageName:"",data:[],time:0,tx:!1,dlc:0,hashCode:0,properties:{},signalValues:[],canFrameFlags:void 0,linFrameFlags:void 0,timeUs:c.UZERO,deltaTimeUs:void 0,fixedPosIdentifier:void 0,protocol:void 0,muxValue:void 0}}const Q={encode(e,n=new d){e.sourceId!==""&&n.uint32(10).string(e.sourceId),e.sourceName!==""&&n.uint32(18).string(e.sourceName),e.streamId!==""&&n.uint32(26).string(e.streamId),e.id!==0&&n.uint32(32).int32(e.id),e.messageName!==""&&n.uint32(42).string(e.messageName),n.uint32(50).fork();for(const i of e.data)n.uint32(i);n.join(),e.time!==0&&n.uint32(57).double(e.time),e.tx!==!1&&n.uint32(64).bool(e.tx),e.dlc!==0&&n.uint32(72).int32(e.dlc),e.hashCode!==0&&n.uint32(80).int32(e.hashCode),Object.entries(e.properties).forEach(([i,a])=>{ke.encode({key:i,value:a},n.uint32(90).fork()).join()});for(const i of e.signalValues)T.encode(i,n.uint32(98).fork()).join();return e.canFrameFlags!==void 0&&v.encode(e.canFrameFlags,n.uint32(106).fork()).join(),e.linFrameFlags!==void 0&&I.encode(e.linFrameFlags,n.uint32(114).fork()).join(),e.timeUs.equals(c.UZERO)||n.uint32(152).uint64(e.timeUs.toString()),e.deltaTimeUs!==void 0&&n.uint32(120).uint64(e.deltaTimeUs.toString()),e.fixedPosIdentifier!==void 0&&n.uint32(130).string(e.fixedPosIdentifier),e.protocol!==void 0&&n.uint32(138).string(e.protocol),e.muxValue!==void 0&&n.uint32(144).int32(e.muxValue),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ln();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.sourceId=i.string();continue}case 2:{if(r!==18)break;t.sourceName=i.string();continue}case 3:{if(r!==26)break;t.streamId=i.string();continue}case 4:{if(r!==32)break;t.id=i.int32();continue}case 5:{if(r!==42)break;t.messageName=i.string();continue}case 6:{if(r===48){t.data.push(i.uint32());continue}if(r===50){const l=i.uint32()+i.pos;for(;i.pos<l;)t.data.push(i.uint32());continue}break}case 7:{if(r!==57)break;t.time=i.double();continue}case 8:{if(r!==64)break;t.tx=i.bool();continue}case 9:{if(r!==72)break;t.dlc=i.int32();continue}case 10:{if(r!==80)break;t.hashCode=i.int32();continue}case 11:{if(r!==90)break;const l=ke.decode(i,i.uint32());l.value!==void 0&&(t.properties[l.key]=l.value);continue}case 12:{if(r!==98)break;t.signalValues.push(T.decode(i,i.uint32()));continue}case 13:{if(r!==106)break;t.canFrameFlags=v.decode(i,i.uint32());continue}case 14:{if(r!==114)break;t.linFrameFlags=I.decode(i,i.uint32());continue}case 19:{if(r!==152)break;t.timeUs=c.fromString(i.uint64().toString(),!0);continue}case 15:{if(r!==120)break;t.deltaTimeUs=c.fromString(i.uint64().toString(),!0);continue}case 16:{if(r!==130)break;t.fixedPosIdentifier=i.string();continue}case 17:{if(r!==138)break;t.protocol=i.string();continue}case 18:{if(r!==144)break;t.muxValue=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{sourceId:_(e.sourceId)?globalThis.String(e.sourceId):"",sourceName:_(e.sourceName)?globalThis.String(e.sourceName):"",streamId:_(e.streamId)?globalThis.String(e.streamId):"",id:_(e.id)?globalThis.Number(e.id):0,messageName:_(e.messageName)?globalThis.String(e.messageName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],time:_(e.time)?globalThis.Number(e.time):0,tx:_(e.tx)?globalThis.Boolean(e.tx):!1,dlc:_(e.dlc)?globalThis.Number(e.dlc):0,hashCode:_(e.hashCode)?globalThis.Number(e.hashCode):0,properties:wa(e.properties)?Object.entries(e.properties).reduce((n,[i,a])=>(n[i]=Z.fromJSON(a),n),{}):{},signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>T.fromJSON(n)):[],canFrameFlags:_(e.canFrameFlags)?v.fromJSON(e.canFrameFlags):void 0,linFrameFlags:_(e.linFrameFlags)?I.fromJSON(e.linFrameFlags):void 0,timeUs:_(e.timeUs)?c.fromValue(e.timeUs):c.UZERO,deltaTimeUs:_(e.deltaTimeUs)?c.fromValue(e.deltaTimeUs):void 0,fixedPosIdentifier:_(e.fixedPosIdentifier)?globalThis.String(e.fixedPosIdentifier):void 0,protocol:_(e.protocol)?globalThis.String(e.protocol):void 0,muxValue:_(e.muxValue)?globalThis.Number(e.muxValue):void 0}},toJSON(e){var i,a;const n={};if(e.sourceId!==""&&(n.sourceId=e.sourceId),e.sourceName!==""&&(n.sourceName=e.sourceName),e.streamId!==""&&(n.streamId=e.streamId),e.id!==0&&(n.id=Math.round(e.id)),e.messageName!==""&&(n.messageName=e.messageName),(i=e.data)!=null&&i.length&&(n.data=e.data.map(t=>Math.round(t))),e.time!==0&&(n.time=e.time),e.tx!==!1&&(n.tx=e.tx),e.dlc!==0&&(n.dlc=Math.round(e.dlc)),e.hashCode!==0&&(n.hashCode=Math.round(e.hashCode)),e.properties){const t=Object.entries(e.properties);t.length>0&&(n.properties={},t.forEach(([r,l])=>{n.properties[r]=Z.toJSON(l)}))}return(a=e.signalValues)!=null&&a.length&&(n.signalValues=e.signalValues.map(t=>T.toJSON(t))),e.canFrameFlags!==void 0&&(n.canFrameFlags=v.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=I.toJSON(e.linFrameFlags)),e.timeUs.equals(c.UZERO)||(n.timeUs=(e.timeUs||c.UZERO).toString()),e.deltaTimeUs!==void 0&&(n.deltaTimeUs=(e.deltaTimeUs||c.UZERO).toString()),e.fixedPosIdentifier!==void 0&&(n.fixedPosIdentifier=e.fixedPosIdentifier),e.protocol!==void 0&&(n.protocol=e.protocol),e.muxValue!==void 0&&(n.muxValue=Math.round(e.muxValue)),n},create(e){return Q.fromPartial(e??{})},fromPartial(e){var i,a;const n=ln();return n.sourceId=e.sourceId??"",n.sourceName=e.sourceName??"",n.streamId=e.streamId??"",n.id=e.id??0,n.messageName=e.messageName??"",n.data=((i=e.data)==null?void 0:i.map(t=>t))||[],n.time=e.time??0,n.tx=e.tx??!1,n.dlc=e.dlc??0,n.hashCode=e.hashCode??0,n.properties=Object.entries(e.properties??{}).reduce((t,[r,l])=>(l!==void 0&&(t[r]=Z.fromPartial(l)),t),{}),n.signalValues=((a=e.signalValues)==null?void 0:a.map(t=>T.fromPartial(t)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?v.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?I.fromPartial(e.linFrameFlags):void 0,n.timeUs=e.timeUs!==void 0&&e.timeUs!==null?c.fromValue(e.timeUs):c.UZERO,n.deltaTimeUs=e.deltaTimeUs!==void 0&&e.deltaTimeUs!==null?c.fromValue(e.deltaTimeUs):void 0,n.fixedPosIdentifier=e.fixedPosIdentifier??void 0,n.protocol=e.protocol??void 0,n.muxValue=e.muxValue??void 0,n}};function fn(){return{key:"",value:void 0}}const ke={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==void 0&&Z.encode(e.value,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=fn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.key=i.string();continue}case 2:{if(r!==18)break;t.value=Z.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:_(e.key)?globalThis.String(e.key):"",value:_(e.value)?Z.fromJSON(e.value):void 0}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==void 0&&(n.value=Z.toJSON(e.value)),n},create(e){return ke.fromPartial(e??{})},fromPartial(e){const n=fn();return n.key=e.key??"",n.value=e.value!==void 0&&e.value!==null?Z.fromPartial(e.value):void 0,n}};function cn(){return{items:[]}}const xr={encode(e,n=new d){for(const i of e.items)Q.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=cn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(Q.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>Q.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>Q.toJSON(a))),n},create(e){return xr.fromPartial(e??{})},fromPartial(e){var i;const n=cn();return n.items=((i=e.items)==null?void 0:i.map(a=>Q.fromPartial(a)))||[],n}};function Nn(){return{id:0,data:[],canFrameFlags:void 0,linFrameFlags:void 0}}const R={encode(e,n=new d){e.id!==0&&n.uint32(8).int32(e.id),n.uint32(18).fork();for(const i of e.data)n.uint32(i);return n.join(),e.canFrameFlags!==void 0&&v.encode(e.canFrameFlags,n.uint32(26).fork()).join(),e.linFrameFlags!==void 0&&I.encode(e.linFrameFlags,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Nn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.id=i.int32();continue}case 2:{if(r===16){t.data.push(i.uint32());continue}if(r===18){const l=i.uint32()+i.pos;for(;i.pos<l;)t.data.push(i.uint32());continue}break}case 3:{if(r!==26)break;t.canFrameFlags=v.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.linFrameFlags=I.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{id:_(e.id)?globalThis.Number(e.id):0,data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],canFrameFlags:_(e.canFrameFlags)?v.fromJSON(e.canFrameFlags):void 0,linFrameFlags:_(e.linFrameFlags)?I.fromJSON(e.linFrameFlags):void 0}},toJSON(e){var i;const n={};return e.id!==0&&(n.id=Math.round(e.id)),(i=e.data)!=null&&i.length&&(n.data=e.data.map(a=>Math.round(a))),e.canFrameFlags!==void 0&&(n.canFrameFlags=v.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=I.toJSON(e.linFrameFlags)),n},create(e){return R.fromPartial(e??{})},fromPartial(e){var i;const n=Nn();return n.id=e.id??0,n.data=((i=e.data)==null?void 0:i.map(a=>a))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?v.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?I.fromPartial(e.linFrameFlags):void 0,n}};function pn(){return{id:0,messageName:"",messageQualifiedName:"",dataLength:0,signals:[],canFrameFlags:void 0,sourceIdentifiers:[]}}const z={encode(e,n=new d){e.id!==0&&n.uint32(8).int32(e.id),e.messageName!==""&&n.uint32(18).string(e.messageName),e.messageQualifiedName!==""&&n.uint32(26).string(e.messageQualifiedName),e.dataLength!==0&&n.uint32(32).int32(e.dataLength);for(const i of e.signals)D.encode(i,n.uint32(42).fork()).join();e.canFrameFlags!==void 0&&v.encode(e.canFrameFlags,n.uint32(50).fork()).join();for(const i of e.sourceIdentifiers)n.uint32(58).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=pn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.id=i.int32();continue}case 2:{if(r!==18)break;t.messageName=i.string();continue}case 3:{if(r!==26)break;t.messageQualifiedName=i.string();continue}case 4:{if(r!==32)break;t.dataLength=i.int32();continue}case 5:{if(r!==42)break;t.signals.push(D.decode(i,i.uint32()));continue}case 6:{if(r!==50)break;t.canFrameFlags=v.decode(i,i.uint32());continue}case 7:{if(r!==58)break;t.sourceIdentifiers.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{id:_(e.id)?globalThis.Number(e.id):0,messageName:_(e.messageName)?globalThis.String(e.messageName):"",messageQualifiedName:_(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",dataLength:_(e.dataLength)?globalThis.Number(e.dataLength):0,signals:globalThis.Array.isArray(e==null?void 0:e.signals)?e.signals.map(n=>D.fromJSON(n)):[],canFrameFlags:_(e.canFrameFlags)?v.fromJSON(e.canFrameFlags):void 0,sourceIdentifiers:globalThis.Array.isArray(e==null?void 0:e.sourceIdentifiers)?e.sourceIdentifiers.map(n=>globalThis.String(n)):[]}},toJSON(e){var i,a;const n={};return e.id!==0&&(n.id=Math.round(e.id)),e.messageName!==""&&(n.messageName=e.messageName),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),e.dataLength!==0&&(n.dataLength=Math.round(e.dataLength)),(i=e.signals)!=null&&i.length&&(n.signals=e.signals.map(t=>D.toJSON(t))),e.canFrameFlags!==void 0&&(n.canFrameFlags=v.toJSON(e.canFrameFlags)),(a=e.sourceIdentifiers)!=null&&a.length&&(n.sourceIdentifiers=e.sourceIdentifiers),n},create(e){return z.fromPartial(e??{})},fromPartial(e){var i,a;const n=pn();return n.id=e.id??0,n.messageName=e.messageName??"",n.messageQualifiedName=e.messageQualifiedName??"",n.dataLength=e.dataLength??0,n.signals=((i=e.signals)==null?void 0:i.map(t=>D.fromPartial(t)))||[],n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?v.fromPartial(e.canFrameFlags):void 0,n.sourceIdentifiers=((a=e.sourceIdentifiers)==null?void 0:a.map(t=>t))||[],n}};function Sn(){return{items:[]}}const Jr={encode(e,n=new d){for(const i of e.items)z.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Sn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(z.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>z.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>z.toJSON(a))),n},create(e){return Jr.fromPartial(e??{})},fromPartial(e){var i;const n=Sn();return n.items=((i=e.items)==null?void 0:i.map(a=>z.fromPartial(a)))||[],n}};function _n(){return{dbcFiles:[],ldfFiles:[]}}const br={encode(e,n=new d){for(const i of e.dbcFiles)n.uint32(10).string(i);for(const i of e.ldfFiles)n.uint32(18).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=_n();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.dbcFiles.push(i.string());continue}case 2:{if(r!==18)break;t.ldfFiles.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{dbcFiles:globalThis.Array.isArray(e==null?void 0:e.dbcFiles)?e.dbcFiles.map(n=>globalThis.String(n)):[],ldfFiles:globalThis.Array.isArray(e==null?void 0:e.ldfFiles)?e.ldfFiles.map(n=>globalThis.String(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.dbcFiles)!=null&&i.length&&(n.dbcFiles=e.dbcFiles),(a=e.ldfFiles)!=null&&a.length&&(n.ldfFiles=e.ldfFiles),n},create(e){return br.fromPartial(e??{})},fromPartial(e){var i,a;const n=_n();return n.dbcFiles=((i=e.dbcFiles)==null?void 0:i.map(t=>t))||[],n.ldfFiles=((a=e.ldfFiles)==null?void 0:a.map(t=>t))||[],n}};function En(){return{messageQualifiedName:"",delay:0}}const K={encode(e,n=new d){return e.messageQualifiedName!==""&&n.uint32(10).string(e.messageQualifiedName),e.delay!==0&&n.uint32(17).double(e.delay),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=En();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.messageQualifiedName=i.string();continue}case 2:{if(r!==17)break;t.delay=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{messageQualifiedName:_(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",delay:_(e.delay)?globalThis.Number(e.delay):0}},toJSON(e){const n={};return e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),e.delay!==0&&(n.delay=e.delay),n},create(e){return K.fromPartial(e??{})},fromPartial(e){const n=En();return n.messageQualifiedName=e.messageQualifiedName??"",n.delay=e.delay??0,n}};function mn(){return{name:"",qualifiedName:"",entries:[]}}const Y={encode(e,n=new d){e.name!==""&&n.uint32(10).string(e.name),e.qualifiedName!==""&&n.uint32(18).string(e.qualifiedName);for(const i of e.entries)K.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=mn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.name=i.string();continue}case 2:{if(r!==18)break;t.qualifiedName=i.string();continue}case 3:{if(r!==26)break;t.entries.push(K.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{name:_(e.name)?globalThis.String(e.name):"",qualifiedName:_(e.qualifiedName)?globalThis.String(e.qualifiedName):"",entries:globalThis.Array.isArray(e==null?void 0:e.entries)?e.entries.map(n=>K.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.name!==""&&(n.name=e.name),e.qualifiedName!==""&&(n.qualifiedName=e.qualifiedName),(i=e.entries)!=null&&i.length&&(n.entries=e.entries.map(a=>K.toJSON(a))),n},create(e){return Y.fromPartial(e??{})},fromPartial(e){var i;const n=mn();return n.name=e.name??"",n.qualifiedName=e.qualifiedName??"",n.entries=((i=e.entries)==null?void 0:i.map(a=>K.fromPartial(a)))||[],n}};function An(){return{id:0,tx:void 0,mux:void 0,sourceId:void 0,canFrameFlags:void 0,linFrameFlags:void 0}}const m={encode(e,n=new d){return e.id!==0&&n.uint32(8).int32(e.id),e.tx!==void 0&&n.uint32(16).bool(e.tx),e.mux!==void 0&&n.uint32(24).int32(e.mux),e.sourceId!==void 0&&n.uint32(34).string(e.sourceId),e.canFrameFlags!==void 0&&v.encode(e.canFrameFlags,n.uint32(42).fork()).join(),e.linFrameFlags!==void 0&&I.encode(e.linFrameFlags,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=An();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.id=i.int32();continue}case 2:{if(r!==16)break;t.tx=i.bool();continue}case 3:{if(r!==24)break;t.mux=i.int32();continue}case 4:{if(r!==34)break;t.sourceId=i.string();continue}case 5:{if(r!==42)break;t.canFrameFlags=v.decode(i,i.uint32());continue}case 6:{if(r!==50)break;t.linFrameFlags=I.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{id:_(e.id)?globalThis.Number(e.id):0,tx:_(e.tx)?globalThis.Boolean(e.tx):void 0,mux:_(e.mux)?globalThis.Number(e.mux):void 0,sourceId:_(e.sourceId)?globalThis.String(e.sourceId):void 0,canFrameFlags:_(e.canFrameFlags)?v.fromJSON(e.canFrameFlags):void 0,linFrameFlags:_(e.linFrameFlags)?I.fromJSON(e.linFrameFlags):void 0}},toJSON(e){const n={};return e.id!==0&&(n.id=Math.round(e.id)),e.tx!==void 0&&(n.tx=e.tx),e.mux!==void 0&&(n.mux=Math.round(e.mux)),e.sourceId!==void 0&&(n.sourceId=e.sourceId),e.canFrameFlags!==void 0&&(n.canFrameFlags=v.toJSON(e.canFrameFlags)),e.linFrameFlags!==void 0&&(n.linFrameFlags=I.toJSON(e.linFrameFlags)),n},create(e){return m.fromPartial(e??{})},fromPartial(e){const n=An();return n.id=e.id??0,n.tx=e.tx??void 0,n.mux=e.mux??void 0,n.sourceId=e.sourceId??void 0,n.canFrameFlags=e.canFrameFlags!==void 0&&e.canFrameFlags!==null?v.fromPartial(e.canFrameFlags):void 0,n.linFrameFlags=e.linFrameFlags!==void 0&&e.linFrameFlags!==null?I.fromPartial(e.linFrameFlags):void 0,n}};function wa(e){return typeof e=="object"&&e!==null}function _(e){return e!=null}function On(){return{}}const yr={encode(e,n=new d){return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=On();for(;i.pos<a;){const r=i.uint32();if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{}},toJSON(e){return{}},create(e){return yr.fromPartial(e??{})},fromPartial(e){return On()}};function vn(){return{version:"",language:"",useHexNumericBase:!1,username:""}}const s={encode(e,n=new d){return e.version!==""&&n.uint32(10).string(e.version),e.language!==""&&n.uint32(18).string(e.language),e.useHexNumericBase!==!1&&n.uint32(24).bool(e.useHexNumericBase),e.username!==""&&n.uint32(34).string(e.username),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=vn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.version=i.string();continue}case 2:{if(r!==18)break;t.language=i.string();continue}case 3:{if(r!==24)break;t.useHexNumericBase=i.bool();continue}case 4:{if(r!==34)break;t.username=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{version:Ce(e.version)?globalThis.String(e.version):"",language:Ce(e.language)?globalThis.String(e.language):"",useHexNumericBase:Ce(e.useHexNumericBase)?globalThis.Boolean(e.useHexNumericBase):!1,username:Ce(e.username)?globalThis.String(e.username):""}},toJSON(e){const n={};return e.version!==""&&(n.version=e.version),e.language!==""&&(n.language=e.language),e.useHexNumericBase!==!1&&(n.useHexNumericBase=e.useHexNumericBase),e.username!==""&&(n.username=e.username),n},create(e){return s.fromPartial(e??{})},fromPartial(e){const n=vn();return n.version=e.version??"",n.language=e.language??"",n.useHexNumericBase=e.useHexNumericBase??!1,n.username=e.username??"",n}};function Ce(e){return e!=null}var Vr=(e=>(e[e.LOG_LEVEL_TRACE=0]="LOG_LEVEL_TRACE",e[e.LOG_LEVEL_DEBUG=1]="LOG_LEVEL_DEBUG",e[e.LOG_LEVEL_INFORMATION=2]="LOG_LEVEL_INFORMATION",e[e.LOG_LEVEL_WARNING=3]="LOG_LEVEL_WARNING",e[e.LOG_LEVEL_ERROR=4]="LOG_LEVEL_ERROR",e[e.LOG_LEVEL_CRITICAL=5]="LOG_LEVEL_CRITICAL",e[e.LOG_LEVEL_NONE=6]="LOG_LEVEL_NONE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Vr||{});function De(e){switch(e){case 0:case"LOG_LEVEL_TRACE":return 0;case 1:case"LOG_LEVEL_DEBUG":return 1;case 2:case"LOG_LEVEL_INFORMATION":return 2;case 3:case"LOG_LEVEL_WARNING":return 3;case 4:case"LOG_LEVEL_ERROR":return 4;case 5:case"LOG_LEVEL_CRITICAL":return 5;case 6:case"LOG_LEVEL_NONE":return 6;case-1:case"UNRECOGNIZED":default:return-1}}function xe(e){switch(e){case 0:return"LOG_LEVEL_TRACE";case 1:return"LOG_LEVEL_DEBUG";case 2:return"LOG_LEVEL_INFORMATION";case 3:return"LOG_LEVEL_WARNING";case 4:return"LOG_LEVEL_ERROR";case 5:return"LOG_LEVEL_CRITICAL";case 6:return"LOG_LEVEL_NONE";case-1:default:return"UNRECOGNIZED"}}var Br=(e=>(e[e.APP_EVENT_UNSPECIFIED=0]="APP_EVENT_UNSPECIFIED",e[e.APP_EVENT_LICENSE_INFO_CHANGED=1]="APP_EVENT_LICENSE_INFO_CHANGED",e[e.APP_EVENT_EXTENSION_CHANGED=2]="APP_EVENT_EXTENSION_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Br||{});function Ur(e){switch(e){case 0:case"APP_EVENT_UNSPECIFIED":return 0;case 1:case"APP_EVENT_LICENSE_INFO_CHANGED":return 1;case 2:case"APP_EVENT_EXTENSION_CHANGED":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function wr(e){switch(e){case 0:return"APP_EVENT_UNSPECIFIED";case 1:return"APP_EVENT_LICENSE_INFO_CHANGED";case 2:return"APP_EVENT_EXTENSION_CHANGED";case-1:default:return"UNRECOGNIZED"}}function Tn(){return{preferences:void 0,logLevel:0}}const Hr={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Tn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.logLevel=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:N(e.preferences)?s.fromJSON(e.preferences):void 0,logLevel:N(e.logLevel)?De(e.logLevel):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.logLevel!==0&&(n.logLevel=xe(e.logLevel)),n},create(e){return Hr.fromPartial(e??{})},fromPartial(e){const n=Tn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.logLevel=e.logLevel??0,n}};function Rn(){return{logLevel:0}}const qr={encode(e,n=new d){return e.logLevel!==0&&n.uint32(8).int32(e.logLevel),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Rn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.logLevel=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{logLevel:N(e.logLevel)?De(e.logLevel):0}},toJSON(e){const n={};return e.logLevel!==0&&(n.logLevel=xe(e.logLevel)),n},create(e){return qr.fromPartial(e??{})},fromPartial(e){const n=Rn();return n.logLevel=e.logLevel??0,n}};function hn(){return{time:c.ZERO,logLevel:0,eventId:0,categoryName:"",message:""}}const W={encode(e,n=new d){return e.time.equals(c.ZERO)||n.uint32(8).int64(e.time.toString()),e.logLevel!==0&&n.uint32(16).int32(e.logLevel),e.eventId!==0&&n.uint32(24).int32(e.eventId),e.categoryName!==""&&n.uint32(34).string(e.categoryName),e.message!==""&&n.uint32(42).string(e.message),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=hn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.time=c.fromString(i.int64().toString());continue}case 2:{if(r!==16)break;t.logLevel=i.int32();continue}case 3:{if(r!==24)break;t.eventId=i.int32();continue}case 4:{if(r!==34)break;t.categoryName=i.string();continue}case 5:{if(r!==42)break;t.message=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{time:N(e.time)?c.fromValue(e.time):c.ZERO,logLevel:N(e.logLevel)?De(e.logLevel):0,eventId:N(e.eventId)?globalThis.Number(e.eventId):0,categoryName:N(e.categoryName)?globalThis.String(e.categoryName):"",message:N(e.message)?globalThis.String(e.message):""}},toJSON(e){const n={};return e.time.equals(c.ZERO)||(n.time=(e.time||c.ZERO).toString()),e.logLevel!==0&&(n.logLevel=xe(e.logLevel)),e.eventId!==0&&(n.eventId=Math.round(e.eventId)),e.categoryName!==""&&(n.categoryName=e.categoryName),e.message!==""&&(n.message=e.message),n},create(e){return W.fromPartial(e??{})},fromPartial(e){const n=hn();return n.time=e.time!==void 0&&e.time!==null?c.fromValue(e.time):c.ZERO,n.logLevel=e.logLevel??0,n.eventId=e.eventId??0,n.categoryName=e.categoryName??"",n.message=e.message??"",n}};function In(){return{items:[]}}const Zr={encode(e,n=new d){for(const i of e.items)W.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=In();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(W.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>W.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>W.toJSON(a))),n},create(e){return Zr.fromPartial(e??{})},fromPartial(e){var i;const n=In();return n.items=((i=e.items)==null?void 0:i.map(a=>W.fromPartial(a)))||[],n}};function Pn(){return{licenseKey:"",productId:"",productName:"",productVersion:"",instanceId:"",instanceName:"",expirationDate:c.ZERO,isValid:!1}}const x={encode(e,n=new d){return e.licenseKey!==""&&n.uint32(10).string(e.licenseKey),e.productId!==""&&n.uint32(18).string(e.productId),e.productName!==""&&n.uint32(26).string(e.productName),e.productVersion!==""&&n.uint32(34).string(e.productVersion),e.instanceId!==""&&n.uint32(42).string(e.instanceId),e.instanceName!==""&&n.uint32(50).string(e.instanceName),e.expirationDate.equals(c.ZERO)||n.uint32(56).int64(e.expirationDate.toString()),e.isValid!==!1&&n.uint32(64).bool(e.isValid),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Pn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.licenseKey=i.string();continue}case 2:{if(r!==18)break;t.productId=i.string();continue}case 3:{if(r!==26)break;t.productName=i.string();continue}case 4:{if(r!==34)break;t.productVersion=i.string();continue}case 5:{if(r!==42)break;t.instanceId=i.string();continue}case 6:{if(r!==50)break;t.instanceName=i.string();continue}case 7:{if(r!==56)break;t.expirationDate=c.fromString(i.int64().toString());continue}case 8:{if(r!==64)break;t.isValid=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{licenseKey:N(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:N(e.productId)?globalThis.String(e.productId):"",productName:N(e.productName)?globalThis.String(e.productName):"",productVersion:N(e.productVersion)?globalThis.String(e.productVersion):"",instanceId:N(e.instanceId)?globalThis.String(e.instanceId):"",instanceName:N(e.instanceName)?globalThis.String(e.instanceName):"",expirationDate:N(e.expirationDate)?c.fromValue(e.expirationDate):c.ZERO,isValid:N(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),e.productName!==""&&(n.productName=e.productName),e.productVersion!==""&&(n.productVersion=e.productVersion),e.instanceId!==""&&(n.instanceId=e.instanceId),e.instanceName!==""&&(n.instanceName=e.instanceName),e.expirationDate.equals(c.ZERO)||(n.expirationDate=(e.expirationDate||c.ZERO).toString()),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return x.fromPartial(e??{})},fromPartial(e){const n=Pn();return n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n.productName=e.productName??"",n.productVersion=e.productVersion??"",n.instanceId=e.instanceId??"",n.instanceName=e.instanceName??"",n.expirationDate=e.expirationDate!==void 0&&e.expirationDate!==null?c.fromValue(e.expirationDate):c.ZERO,n.isValid=e.isValid??!1,n}};function Cn(){return{items:[]}}const $={encode(e,n=new d){for(const i of e.items)x.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Cn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(x.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>x.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>x.toJSON(a))),n},create(e){return $.fromPartial(e??{})},fromPartial(e){var i;const n=Cn();return n.items=((i=e.items)==null?void 0:i.map(a=>x.fromPartial(a)))||[],n}};function Fn(){return{eventType:0,licenses:void 0,extensions:void 0}}const Xr={encode(e,n=new d){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.licenses!==void 0&&$.encode(e.licenses,n.uint32(18).fork()).join(),e.extensions!==void 0&&ee.encode(e.extensions,n.uint32(26).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Fn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.eventType=i.int32();continue}case 2:{if(r!==18)break;t.licenses=$.decode(i,i.uint32());continue}case 3:{if(r!==26)break;t.extensions=ee.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{eventType:N(e.eventType)?Ur(e.eventType):0,licenses:N(e.licenses)?$.fromJSON(e.licenses):void 0,extensions:N(e.extensions)?ee.fromJSON(e.extensions):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=wr(e.eventType)),e.licenses!==void 0&&(n.licenses=$.toJSON(e.licenses)),e.extensions!==void 0&&(n.extensions=ee.toJSON(e.extensions)),n},create(e){return Xr.fromPartial(e??{})},fromPartial(e){const n=Fn();return n.eventType=e.eventType??0,n.licenses=e.licenses!==void 0&&e.licenses!==null?$.fromPartial(e.licenses):void 0,n.extensions=e.extensions!==void 0&&e.extensions!==null?ee.fromPartial(e.extensions):void 0,n}};function Ln(){return{createdDate:"",name:"",displayName:"",description:"",version:"",author:"",data:"",extensionType:void 0,productId:void 0,ean:void 0,licenseType:void 0,publisher:void 0,requiresActivation:void 0,copyrightNotice:void 0,eula:void 0,signedDate:void 0}}const j={encode(e,n=new d){return e.createdDate!==""&&n.uint32(10).string(e.createdDate),e.name!==""&&n.uint32(18).string(e.name),e.displayName!==""&&n.uint32(26).string(e.displayName),e.description!==""&&n.uint32(34).string(e.description),e.version!==""&&n.uint32(42).string(e.version),e.author!==""&&n.uint32(50).string(e.author),e.data!==""&&n.uint32(58).string(e.data),e.extensionType!==void 0&&n.uint32(66).string(e.extensionType),e.productId!==void 0&&n.uint32(74).string(e.productId),e.ean!==void 0&&n.uint32(82).string(e.ean),e.licenseType!==void 0&&n.uint32(90).string(e.licenseType),e.publisher!==void 0&&n.uint32(98).string(e.publisher),e.requiresActivation!==void 0&&n.uint32(104).bool(e.requiresActivation),e.copyrightNotice!==void 0&&n.uint32(114).string(e.copyrightNotice),e.eula!==void 0&&n.uint32(122).string(e.eula),e.signedDate!==void 0&&n.uint32(130).string(e.signedDate),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ln();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.createdDate=i.string();continue}case 2:{if(r!==18)break;t.name=i.string();continue}case 3:{if(r!==26)break;t.displayName=i.string();continue}case 4:{if(r!==34)break;t.description=i.string();continue}case 5:{if(r!==42)break;t.version=i.string();continue}case 6:{if(r!==50)break;t.author=i.string();continue}case 7:{if(r!==58)break;t.data=i.string();continue}case 8:{if(r!==66)break;t.extensionType=i.string();continue}case 9:{if(r!==74)break;t.productId=i.string();continue}case 10:{if(r!==82)break;t.ean=i.string();continue}case 11:{if(r!==90)break;t.licenseType=i.string();continue}case 12:{if(r!==98)break;t.publisher=i.string();continue}case 13:{if(r!==104)break;t.requiresActivation=i.bool();continue}case 14:{if(r!==114)break;t.copyrightNotice=i.string();continue}case 15:{if(r!==122)break;t.eula=i.string();continue}case 16:{if(r!==130)break;t.signedDate=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{createdDate:N(e.createdDate)?globalThis.String(e.createdDate):"",name:N(e.name)?globalThis.String(e.name):"",displayName:N(e.displayName)?globalThis.String(e.displayName):"",description:N(e.description)?globalThis.String(e.description):"",version:N(e.version)?globalThis.String(e.version):"",author:N(e.author)?globalThis.String(e.author):"",data:N(e.data)?globalThis.String(e.data):"",extensionType:N(e.extensionType)?globalThis.String(e.extensionType):void 0,productId:N(e.productId)?globalThis.String(e.productId):void 0,ean:N(e.ean)?globalThis.String(e.ean):void 0,licenseType:N(e.licenseType)?globalThis.String(e.licenseType):void 0,publisher:N(e.publisher)?globalThis.String(e.publisher):void 0,requiresActivation:N(e.requiresActivation)?globalThis.Boolean(e.requiresActivation):void 0,copyrightNotice:N(e.copyrightNotice)?globalThis.String(e.copyrightNotice):void 0,eula:N(e.eula)?globalThis.String(e.eula):void 0,signedDate:N(e.signedDate)?globalThis.String(e.signedDate):void 0}},toJSON(e){const n={};return e.createdDate!==""&&(n.createdDate=e.createdDate),e.name!==""&&(n.name=e.name),e.displayName!==""&&(n.displayName=e.displayName),e.description!==""&&(n.description=e.description),e.version!==""&&(n.version=e.version),e.author!==""&&(n.author=e.author),e.data!==""&&(n.data=e.data),e.extensionType!==void 0&&(n.extensionType=e.extensionType),e.productId!==void 0&&(n.productId=e.productId),e.ean!==void 0&&(n.ean=e.ean),e.licenseType!==void 0&&(n.licenseType=e.licenseType),e.publisher!==void 0&&(n.publisher=e.publisher),e.requiresActivation!==void 0&&(n.requiresActivation=e.requiresActivation),e.copyrightNotice!==void 0&&(n.copyrightNotice=e.copyrightNotice),e.eula!==void 0&&(n.eula=e.eula),e.signedDate!==void 0&&(n.signedDate=e.signedDate),n},create(e){return j.fromPartial(e??{})},fromPartial(e){const n=Ln();return n.createdDate=e.createdDate??"",n.name=e.name??"",n.displayName=e.displayName??"",n.description=e.description??"",n.version=e.version??"",n.author=e.author??"",n.data=e.data??"",n.extensionType=e.extensionType??void 0,n.productId=e.productId??void 0,n.ean=e.ean??void 0,n.licenseType=e.licenseType??void 0,n.publisher=e.publisher??void 0,n.requiresActivation=e.requiresActivation??void 0,n.copyrightNotice=e.copyrightNotice??void 0,n.eula=e.eula??void 0,n.signedDate=e.signedDate??void 0,n}};function gn(){return{items:[]}}const ee={encode(e,n=new d){for(const i of e.items)j.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=gn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(j.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>j.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>j.toJSON(a))),n},create(e){return ee.fromPartial(e??{})},fromPartial(e){var i;const n=gn();return n.items=((i=e.items)==null?void 0:i.map(a=>j.fromPartial(a)))||[],n}};function Mn(){return{preferences:void 0,filePath:"",replaceExisting:void 0}}const Qr={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.filePath!==""&&n.uint32(18).string(e.filePath),e.replaceExisting!==void 0&&n.uint32(24).bool(e.replaceExisting),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Mn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.filePath=i.string();continue}case 3:{if(r!==24)break;t.replaceExisting=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:N(e.preferences)?s.fromJSON(e.preferences):void 0,filePath:N(e.filePath)?globalThis.String(e.filePath):"",replaceExisting:N(e.replaceExisting)?globalThis.Boolean(e.replaceExisting):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.filePath!==""&&(n.filePath=e.filePath),e.replaceExisting!==void 0&&(n.replaceExisting=e.replaceExisting),n},create(e){return Qr.fromPartial(e??{})},fromPartial(e){const n=Mn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.filePath=e.filePath??"",n.replaceExisting=e.replaceExisting??void 0,n}};function kn(){return{preferences:void 0,name:""}}const zr={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.name!==""&&n.uint32(18).string(e.name),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=kn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.name=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:N(e.preferences)?s.fromJSON(e.preferences):void 0,name:N(e.name)?globalThis.String(e.name):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.name!==""&&(n.name=e.name),n},create(e){return zr.fromPartial(e??{})},fromPartial(e){const n=kn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.name=e.name??"",n}};function Gn(){return{preferences:void 0,filePathOrName:""}}const Kr={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.filePathOrName!==""&&n.uint32(18).string(e.filePathOrName),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Gn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.filePathOrName=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:N(e.preferences)?s.fromJSON(e.preferences):void 0,filePathOrName:N(e.filePathOrName)?globalThis.String(e.filePathOrName):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.filePathOrName!==""&&(n.filePathOrName=e.filePathOrName),n},create(e){return Kr.fromPartial(e??{})},fromPartial(e){const n=Gn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.filePathOrName=e.filePathOrName??"",n}};function Dn(){return{licenses:[]}}const Yr={encode(e,n=new d){for(const i of e.licenses)x.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Dn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.licenses.push(x.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{licenses:globalThis.Array.isArray(e==null?void 0:e.licenses)?e.licenses.map(n=>x.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.licenses)!=null&&i.length&&(n.licenses=e.licenses.map(a=>x.toJSON(a))),n},create(e){return Yr.fromPartial(e??{})},fromPartial(e){var i;const n=Dn();return n.licenses=((i=e.licenses)==null?void 0:i.map(a=>x.fromPartial(a)))||[],n}};function xn(){return{preferences:void 0,licenseKey:"",productId:""}}const Wr={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.licenseKey!==""&&n.uint32(18).string(e.licenseKey),e.productId!==""&&n.uint32(26).string(e.productId),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=xn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.licenseKey=i.string();continue}case 3:{if(r!==26)break;t.productId=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:N(e.preferences)?s.fromJSON(e.preferences):void 0,licenseKey:N(e.licenseKey)?globalThis.String(e.licenseKey):"",productId:N(e.productId)?globalThis.String(e.productId):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.licenseKey!==""&&(n.licenseKey=e.licenseKey),e.productId!==""&&(n.productId=e.productId),n},create(e){return Wr.fromPartial(e??{})},fromPartial(e){const n=xn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.licenseKey=e.licenseKey??"",n.productId=e.productId??"",n}};function Jn(){return{apiVersion:"",serviceVersion:"",canlibVersion:""}}const $r={encode(e,n=new d){return e.apiVersion!==""&&n.uint32(10).string(e.apiVersion),e.serviceVersion!==""&&n.uint32(18).string(e.serviceVersion),e.canlibVersion!==""&&n.uint32(26).string(e.canlibVersion),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Jn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.apiVersion=i.string();continue}case 2:{if(r!==18)break;t.serviceVersion=i.string();continue}case 3:{if(r!==26)break;t.canlibVersion=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{apiVersion:N(e.apiVersion)?globalThis.String(e.apiVersion):"",serviceVersion:N(e.serviceVersion)?globalThis.String(e.serviceVersion):"",canlibVersion:N(e.canlibVersion)?globalThis.String(e.canlibVersion):""}},toJSON(e){const n={};return e.apiVersion!==""&&(n.apiVersion=e.apiVersion),e.serviceVersion!==""&&(n.serviceVersion=e.serviceVersion),e.canlibVersion!==""&&(n.canlibVersion=e.canlibVersion),n},create(e){return $r.fromPartial(e??{})},fromPartial(e){const n=Jn();return n.apiVersion=e.apiVersion??"",n.serviceVersion=e.serviceVersion??"",n.canlibVersion=e.canlibVersion??"",n}};function N(e){return e!=null}var jr=(e=>(e[e.CAN_CHANNEL_CAP_UNSPECIFIED=0]="CAN_CHANNEL_CAP_UNSPECIFIED",e[e.CAN_CHANNEL_CAP_EXTENDED_CAN=1]="CAN_CHANNEL_CAP_EXTENDED_CAN",e[e.CAN_CHANNEL_CAP_BUS_STATISTICS=2]="CAN_CHANNEL_CAP_BUS_STATISTICS",e[e.CAN_CHANNEL_CAP_ERROR_COUNTERS=3]="CAN_CHANNEL_CAP_ERROR_COUNTERS",e[e.CAN_CHANNEL_CAP_GENERATE_ERROR=4]="CAN_CHANNEL_CAP_GENERATE_ERROR",e[e.CAN_CHANNEL_CAP_GENERATE_OVERLOAD=5]="CAN_CHANNEL_CAP_GENERATE_OVERLOAD",e[e.CAN_CHANNEL_CAP_TXREQUEST=6]="CAN_CHANNEL_CAP_TXREQUEST",e[e.CAN_CHANNEL_CAP_TXACKNOWLEDGE=7]="CAN_CHANNEL_CAP_TXACKNOWLEDGE",e[e.CAN_CHANNEL_CAP_VIRTUAL=8]="CAN_CHANNEL_CAP_VIRTUAL",e[e.CAN_CHANNEL_CAP_SIMULATED=9]="CAN_CHANNEL_CAP_SIMULATED",e[e.CAN_CHANNEL_CAP_CAN_FD=10]="CAN_CHANNEL_CAP_CAN_FD",e[e.CAN_CHANNEL_CAP_CAN_FD_NONISO=11]="CAN_CHANNEL_CAP_CAN_FD_NONISO",e[e.CAN_CHANNEL_CAP_SILENT_MODE=12]="CAN_CHANNEL_CAP_SILENT_MODE",e[e.CAN_CHANNEL_CAP_SINGLE_SHOT=13]="CAN_CHANNEL_CAP_SINGLE_SHOT",e[e.CAN_CHANNEL_CAP_LOGGER=14]="CAN_CHANNEL_CAP_LOGGER",e[e.CAN_CHANNEL_CAP_REMOTE_ACCESS=15]="CAN_CHANNEL_CAP_REMOTE_ACCESS",e[e.CAN_CHANNEL_CAP_SCRIPT=16]="CAN_CHANNEL_CAP_SCRIPT",e[e.CAN_CHANNEL_CAP_LIN_HYBRID=17]="CAN_CHANNEL_CAP_LIN_HYBRID",e[e.CAN_CHANNEL_CAP_IO_API=18]="CAN_CHANNEL_CAP_IO_API",e[e.CAN_CHANNEL_CAP_CANTEGRITY=19]="CAN_CHANNEL_CAP_CANTEGRITY",e[e.CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ=20]="CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(jr||{});function et(e){switch(e){case 0:case"CAN_CHANNEL_CAP_UNSPECIFIED":return 0;case 1:case"CAN_CHANNEL_CAP_EXTENDED_CAN":return 1;case 2:case"CAN_CHANNEL_CAP_BUS_STATISTICS":return 2;case 3:case"CAN_CHANNEL_CAP_ERROR_COUNTERS":return 3;case 4:case"CAN_CHANNEL_CAP_GENERATE_ERROR":return 4;case 5:case"CAN_CHANNEL_CAP_GENERATE_OVERLOAD":return 5;case 6:case"CAN_CHANNEL_CAP_TXREQUEST":return 6;case 7:case"CAN_CHANNEL_CAP_TXACKNOWLEDGE":return 7;case 8:case"CAN_CHANNEL_CAP_VIRTUAL":return 8;case 9:case"CAN_CHANNEL_CAP_SIMULATED":return 9;case 10:case"CAN_CHANNEL_CAP_CAN_FD":return 10;case 11:case"CAN_CHANNEL_CAP_CAN_FD_NONISO":return 11;case 12:case"CAN_CHANNEL_CAP_SILENT_MODE":return 12;case 13:case"CAN_CHANNEL_CAP_SINGLE_SHOT":return 13;case 14:case"CAN_CHANNEL_CAP_LOGGER":return 14;case 15:case"CAN_CHANNEL_CAP_REMOTE_ACCESS":return 15;case 16:case"CAN_CHANNEL_CAP_SCRIPT":return 16;case 17:case"CAN_CHANNEL_CAP_LIN_HYBRID":return 17;case 18:case"CAN_CHANNEL_CAP_IO_API":return 18;case 19:case"CAN_CHANNEL_CAP_CANTEGRITY":return 19;case 20:case"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ":return 20;case-1:case"UNRECOGNIZED":default:return-1}}function nt(e){switch(e){case 0:return"CAN_CHANNEL_CAP_UNSPECIFIED";case 1:return"CAN_CHANNEL_CAP_EXTENDED_CAN";case 2:return"CAN_CHANNEL_CAP_BUS_STATISTICS";case 3:return"CAN_CHANNEL_CAP_ERROR_COUNTERS";case 4:return"CAN_CHANNEL_CAP_GENERATE_ERROR";case 5:return"CAN_CHANNEL_CAP_GENERATE_OVERLOAD";case 6:return"CAN_CHANNEL_CAP_TXREQUEST";case 7:return"CAN_CHANNEL_CAP_TXACKNOWLEDGE";case 8:return"CAN_CHANNEL_CAP_VIRTUAL";case 9:return"CAN_CHANNEL_CAP_SIMULATED";case 10:return"CAN_CHANNEL_CAP_CAN_FD";case 11:return"CAN_CHANNEL_CAP_CAN_FD_NONISO";case 12:return"CAN_CHANNEL_CAP_SILENT_MODE";case 13:return"CAN_CHANNEL_CAP_SINGLE_SHOT";case 14:return"CAN_CHANNEL_CAP_LOGGER";case 15:return"CAN_CHANNEL_CAP_REMOTE_ACCESS";case 16:return"CAN_CHANNEL_CAP_SCRIPT";case 17:return"CAN_CHANNEL_CAP_LIN_HYBRID";case 18:return"CAN_CHANNEL_CAP_IO_API";case 19:return"CAN_CHANNEL_CAP_CANTEGRITY";case 20:return"CAN_CHANNEL_CAP_EX_BUSPARAMS_TQ";case-1:default:return"UNRECOGNIZED"}}var it=(e=>(e[e.DEVICE_EVENT_UNSPECIFIED=0]="DEVICE_EVENT_UNSPECIFIED",e[e.DEVICE_EVENT_DEVICES_CHANGED=1]="DEVICE_EVENT_DEVICES_CHANGED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(it||{});function rt(e){switch(e){case 0:case"DEVICE_EVENT_UNSPECIFIED":return 0;case 1:case"DEVICE_EVENT_DEVICES_CHANGED":return 1;case-1:case"UNRECOGNIZED":default:return-1}}function tt(e){switch(e){case 0:return"DEVICE_EVENT_UNSPECIFIED";case 1:return"DEVICE_EVENT_DEVICES_CHANGED";case-1:default:return"UNRECOGNIZED"}}function bn(){return{tq:0,phase1:0,phase2:0,sjw:0,prop:0,prescaler:0}}const p={encode(e,n=new d){return e.tq!==0&&n.uint32(8).int32(e.tq),e.phase1!==0&&n.uint32(16).int32(e.phase1),e.phase2!==0&&n.uint32(24).int32(e.phase2),e.sjw!==0&&n.uint32(32).int32(e.sjw),e.prop!==0&&n.uint32(40).int32(e.prop),e.prescaler!==0&&n.uint32(48).int32(e.prescaler),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=bn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.tq=i.int32();continue}case 2:{if(r!==16)break;t.phase1=i.int32();continue}case 3:{if(r!==24)break;t.phase2=i.int32();continue}case 4:{if(r!==32)break;t.sjw=i.int32();continue}case 5:{if(r!==40)break;t.prop=i.int32();continue}case 6:{if(r!==48)break;t.prescaler=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{tq:S(e.tq)?globalThis.Number(e.tq):0,phase1:S(e.phase1)?globalThis.Number(e.phase1):0,phase2:S(e.phase2)?globalThis.Number(e.phase2):0,sjw:S(e.sjw)?globalThis.Number(e.sjw):0,prop:S(e.prop)?globalThis.Number(e.prop):0,prescaler:S(e.prescaler)?globalThis.Number(e.prescaler):0}},toJSON(e){const n={};return e.tq!==0&&(n.tq=Math.round(e.tq)),e.phase1!==0&&(n.phase1=Math.round(e.phase1)),e.phase2!==0&&(n.phase2=Math.round(e.phase2)),e.sjw!==0&&(n.sjw=Math.round(e.sjw)),e.prop!==0&&(n.prop=Math.round(e.prop)),e.prescaler!==0&&(n.prescaler=Math.round(e.prescaler)),n},create(e){return p.fromPartial(e??{})},fromPartial(e){const n=bn();return n.tq=e.tq??0,n.phase1=e.phase1??0,n.phase2=e.phase2??0,n.sjw=e.sjw??0,n.prop=e.prop??0,n.prescaler=e.prescaler??0,n}};function yn(){return{arbitrationMin:void 0,arbitrationMax:void 0,dataMin:void 0,dataMax:void 0,isValid:!1}}const ne={encode(e,n=new d){return e.arbitrationMin!==void 0&&p.encode(e.arbitrationMin,n.uint32(10).fork()).join(),e.arbitrationMax!==void 0&&p.encode(e.arbitrationMax,n.uint32(18).fork()).join(),e.dataMin!==void 0&&p.encode(e.dataMin,n.uint32(26).fork()).join(),e.dataMax!==void 0&&p.encode(e.dataMax,n.uint32(34).fork()).join(),e.isValid!==!1&&n.uint32(40).bool(e.isValid),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=yn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.arbitrationMin=p.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.arbitrationMax=p.decode(i,i.uint32());continue}case 3:{if(r!==26)break;t.dataMin=p.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.dataMax=p.decode(i,i.uint32());continue}case 5:{if(r!==40)break;t.isValid=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{arbitrationMin:S(e.arbitrationMin)?p.fromJSON(e.arbitrationMin):void 0,arbitrationMax:S(e.arbitrationMax)?p.fromJSON(e.arbitrationMax):void 0,dataMin:S(e.dataMin)?p.fromJSON(e.dataMin):void 0,dataMax:S(e.dataMax)?p.fromJSON(e.dataMax):void 0,isValid:S(e.isValid)?globalThis.Boolean(e.isValid):!1}},toJSON(e){const n={};return e.arbitrationMin!==void 0&&(n.arbitrationMin=p.toJSON(e.arbitrationMin)),e.arbitrationMax!==void 0&&(n.arbitrationMax=p.toJSON(e.arbitrationMax)),e.dataMin!==void 0&&(n.dataMin=p.toJSON(e.dataMin)),e.dataMax!==void 0&&(n.dataMax=p.toJSON(e.dataMax)),e.isValid!==!1&&(n.isValid=e.isValid),n},create(e){return ne.fromPartial(e??{})},fromPartial(e){const n=yn();return n.arbitrationMin=e.arbitrationMin!==void 0&&e.arbitrationMin!==null?p.fromPartial(e.arbitrationMin):void 0,n.arbitrationMax=e.arbitrationMax!==void 0&&e.arbitrationMax!==null?p.fromPartial(e.arbitrationMax):void 0,n.dataMin=e.dataMin!==void 0&&e.dataMin!==null?p.fromPartial(e.dataMin):void 0,n.dataMax=e.dataMax!==void 0&&e.dataMax!==null?p.fromPartial(e.dataMax):void 0,n.isValid=e.isValid??!1,n}};function Vn(){return{bitRate:0,actualBitRate:0,bitRateError:0,samplePoint:0,description:"",busParams:void 0}}const J={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.actualBitRate!==0&&n.uint32(16).int32(e.actualBitRate),e.bitRateError!==0&&n.uint32(25).double(e.bitRateError),e.samplePoint!==0&&n.uint32(33).double(e.samplePoint),e.description!==""&&n.uint32(42).string(e.description),e.busParams!==void 0&&p.encode(e.busParams,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Vn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==16)break;t.actualBitRate=i.int32();continue}case 3:{if(r!==25)break;t.bitRateError=i.double();continue}case 4:{if(r!==33)break;t.samplePoint=i.double();continue}case 5:{if(r!==42)break;t.description=i.string();continue}case 6:{if(r!==50)break;t.busParams=p.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:S(e.bitRate)?globalThis.Number(e.bitRate):0,actualBitRate:S(e.actualBitRate)?globalThis.Number(e.actualBitRate):0,bitRateError:S(e.bitRateError)?globalThis.Number(e.bitRateError):0,samplePoint:S(e.samplePoint)?globalThis.Number(e.samplePoint):0,description:S(e.description)?globalThis.String(e.description):"",busParams:S(e.busParams)?p.fromJSON(e.busParams):void 0}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.actualBitRate!==0&&(n.actualBitRate=Math.round(e.actualBitRate)),e.bitRateError!==0&&(n.bitRateError=e.bitRateError),e.samplePoint!==0&&(n.samplePoint=e.samplePoint),e.description!==""&&(n.description=e.description),e.busParams!==void 0&&(n.busParams=p.toJSON(e.busParams)),n},create(e){return J.fromPartial(e??{})},fromPartial(e){const n=Vn();return n.bitRate=e.bitRate??0,n.actualBitRate=e.actualBitRate??0,n.bitRateError=e.bitRateError??0,n.samplePoint=e.samplePoint??0,n.description=e.description??"",n.busParams=e.busParams!==void 0&&e.busParams!==null?p.fromPartial(e.busParams):void 0,n}};function Bn(){return{bitRate:0,samplePoint:0,description:"",busParams:void 0}}const k={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.samplePoint!==0&&n.uint32(17).double(e.samplePoint),e.description!==""&&n.uint32(26).string(e.description),e.busParams!==void 0&&p.encode(e.busParams,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Bn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==17)break;t.samplePoint=i.double();continue}case 3:{if(r!==26)break;t.description=i.string();continue}case 4:{if(r!==34)break;t.busParams=p.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:S(e.bitRate)?globalThis.Number(e.bitRate):0,samplePoint:S(e.samplePoint)?globalThis.Number(e.samplePoint):0,description:S(e.description)?globalThis.String(e.description):"",busParams:S(e.busParams)?p.fromJSON(e.busParams):void 0}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.samplePoint!==0&&(n.samplePoint=e.samplePoint),e.description!==""&&(n.description=e.description),e.busParams!==void 0&&(n.busParams=p.toJSON(e.busParams)),n},create(e){return k.fromPartial(e??{})},fromPartial(e){const n=Bn();return n.bitRate=e.bitRate??0,n.samplePoint=e.samplePoint??0,n.description=e.description??"",n.busParams=e.busParams!==void 0&&e.busParams!==null?p.fromPartial(e.busParams):void 0,n}};function Un(){return{arbitrationBusSpeed:void 0,dataBusSpeeds:[]}}const b={encode(e,n=new d){e.arbitrationBusSpeed!==void 0&&k.encode(e.arbitrationBusSpeed,n.uint32(10).fork()).join();for(const i of e.dataBusSpeeds)k.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Un();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.arbitrationBusSpeed=k.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.dataBusSpeeds.push(k.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{arbitrationBusSpeed:S(e.arbitrationBusSpeed)?k.fromJSON(e.arbitrationBusSpeed):void 0,dataBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.dataBusSpeeds)?e.dataBusSpeeds.map(n=>k.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.arbitrationBusSpeed!==void 0&&(n.arbitrationBusSpeed=k.toJSON(e.arbitrationBusSpeed)),(i=e.dataBusSpeeds)!=null&&i.length&&(n.dataBusSpeeds=e.dataBusSpeeds.map(a=>k.toJSON(a))),n},create(e){return b.fromPartial(e??{})},fromPartial(e){var i;const n=Un();return n.arbitrationBusSpeed=e.arbitrationBusSpeed!==void 0&&e.arbitrationBusSpeed!==null?k.fromPartial(e.arbitrationBusSpeed):void 0,n.dataBusSpeeds=((i=e.dataBusSpeeds)==null?void 0:i.map(a=>k.fromPartial(a)))||[],n}};function wn(){return{busParamLimits:void 0,channelCaps:[],maxBitRate:0,clockFrequency:0}}const ie={encode(e,n=new d){e.busParamLimits!==void 0&&ne.encode(e.busParamLimits,n.uint32(10).fork()).join(),n.uint32(18).fork();for(const i of e.channelCaps)n.int32(i);return n.join(),e.maxBitRate!==0&&n.uint32(24).int32(e.maxBitRate),e.clockFrequency!==0&&n.uint32(33).double(e.clockFrequency),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=wn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.busParamLimits=ne.decode(i,i.uint32());continue}case 2:{if(r===16){t.channelCaps.push(i.int32());continue}if(r===18){const l=i.uint32()+i.pos;for(;i.pos<l;)t.channelCaps.push(i.int32());continue}break}case 3:{if(r!==24)break;t.maxBitRate=i.int32();continue}case 4:{if(r!==33)break;t.clockFrequency=i.double();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{busParamLimits:S(e.busParamLimits)?ne.fromJSON(e.busParamLimits):void 0,channelCaps:globalThis.Array.isArray(e==null?void 0:e.channelCaps)?e.channelCaps.map(n=>et(n)):[],maxBitRate:S(e.maxBitRate)?globalThis.Number(e.maxBitRate):0,clockFrequency:S(e.clockFrequency)?globalThis.Number(e.clockFrequency):0}},toJSON(e){var i;const n={};return e.busParamLimits!==void 0&&(n.busParamLimits=ne.toJSON(e.busParamLimits)),(i=e.channelCaps)!=null&&i.length&&(n.channelCaps=e.channelCaps.map(a=>nt(a))),e.maxBitRate!==0&&(n.maxBitRate=Math.round(e.maxBitRate)),e.clockFrequency!==0&&(n.clockFrequency=e.clockFrequency),n},create(e){return ie.fromPartial(e??{})},fromPartial(e){var i;const n=wn();return n.busParamLimits=e.busParamLimits!==void 0&&e.busParamLimits!==null?ne.fromPartial(e.busParamLimits):void 0,n.channelCaps=((i=e.channelCaps)==null?void 0:i.map(a=>a))||[],n.maxBitRate=e.maxBitRate??0,n.clockFrequency=e.clockFrequency??0,n}};function Hn(){return{channelNumber:0,channelNumberOnDevice:0,name:"",protocols:[],canChannelCapacity:void 0}}const re={encode(e,n=new d){e.channelNumber!==0&&n.uint32(8).int32(e.channelNumber),e.channelNumberOnDevice!==0&&n.uint32(16).int32(e.channelNumberOnDevice),e.name!==""&&n.uint32(26).string(e.name);for(const i of e.protocols)n.uint32(34).string(i);return e.canChannelCapacity!==void 0&&ie.encode(e.canChannelCapacity,n.uint32(42).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Hn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.channelNumber=i.int32();continue}case 2:{if(r!==16)break;t.channelNumberOnDevice=i.int32();continue}case 3:{if(r!==26)break;t.name=i.string();continue}case 4:{if(r!==34)break;t.protocols.push(i.string());continue}case 5:{if(r!==42)break;t.canChannelCapacity=ie.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelNumber:S(e.channelNumber)?globalThis.Number(e.channelNumber):0,channelNumberOnDevice:S(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,name:S(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>globalThis.String(n)):[],canChannelCapacity:S(e.canChannelCapacity)?ie.fromJSON(e.canChannelCapacity):void 0}},toJSON(e){var i;const n={};return e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.channelNumberOnDevice!==0&&(n.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.name!==""&&(n.name=e.name),(i=e.protocols)!=null&&i.length&&(n.protocols=e.protocols),e.canChannelCapacity!==void 0&&(n.canChannelCapacity=ie.toJSON(e.canChannelCapacity)),n},create(e){return re.fromPartial(e??{})},fromPartial(e){var i;const n=Hn();return n.channelNumber=e.channelNumber??0,n.channelNumberOnDevice=e.channelNumberOnDevice??0,n.name=e.name??"",n.protocols=((i=e.protocols)==null?void 0:i.map(a=>a))||[],n.canChannelCapacity=e.canChannelCapacity!==void 0&&e.canChannelCapacity!==null?ie.fromPartial(e.canChannelCapacity):void 0,n}};function qn(){return{cardType:0,cardNumber:0,productCode:"",serialNumber:"",name:"",protocols:[],channels:[]}}const y={encode(e,n=new d){e.cardType!==0&&n.uint32(8).int32(e.cardType),e.cardNumber!==0&&n.uint32(16).int32(e.cardNumber),e.productCode!==""&&n.uint32(26).string(e.productCode),e.serialNumber!==""&&n.uint32(34).string(e.serialNumber),e.name!==""&&n.uint32(42).string(e.name);for(const i of e.protocols)n.uint32(50).string(i);for(const i of e.channels)re.encode(i,n.uint32(58).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=qn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.cardType=i.int32();continue}case 2:{if(r!==16)break;t.cardNumber=i.int32();continue}case 3:{if(r!==26)break;t.productCode=i.string();continue}case 4:{if(r!==34)break;t.serialNumber=i.string();continue}case 5:{if(r!==42)break;t.name=i.string();continue}case 6:{if(r!==50)break;t.protocols.push(i.string());continue}case 7:{if(r!==58)break;t.channels.push(re.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{cardType:S(e.cardType)?globalThis.Number(e.cardType):0,cardNumber:S(e.cardNumber)?globalThis.Number(e.cardNumber):0,productCode:S(e.productCode)?globalThis.String(e.productCode):"",serialNumber:S(e.serialNumber)?globalThis.String(e.serialNumber):"",name:S(e.name)?globalThis.String(e.name):"",protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>globalThis.String(n)):[],channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>re.fromJSON(n)):[]}},toJSON(e){var i,a;const n={};return e.cardType!==0&&(n.cardType=Math.round(e.cardType)),e.cardNumber!==0&&(n.cardNumber=Math.round(e.cardNumber)),e.productCode!==""&&(n.productCode=e.productCode),e.serialNumber!==""&&(n.serialNumber=e.serialNumber),e.name!==""&&(n.name=e.name),(i=e.protocols)!=null&&i.length&&(n.protocols=e.protocols),(a=e.channels)!=null&&a.length&&(n.channels=e.channels.map(t=>re.toJSON(t))),n},create(e){return y.fromPartial(e??{})},fromPartial(e){var i,a;const n=qn();return n.cardType=e.cardType??0,n.cardNumber=e.cardNumber??0,n.productCode=e.productCode??"",n.serialNumber=e.serialNumber??"",n.name=e.name??"",n.protocols=((i=e.protocols)==null?void 0:i.map(t=>t))||[],n.channels=((a=e.channels)==null?void 0:a.map(t=>re.fromPartial(t)))||[],n}};function Zn(){return{items:[]}}const te={encode(e,n=new d){for(const i of e.items)y.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Zn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(y.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>y.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>y.toJSON(a))),n},create(e){return te.fromPartial(e??{})},fromPartial(e){var i;const n=Zn();return n.items=((i=e.items)==null?void 0:i.map(a=>y.fromPartial(a)))||[],n}};function Xn(){return{preferences:void 0,includeVirtual:!1}}const at={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.includeVirtual!==!1&&n.uint32(16).bool(e.includeVirtual),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Xn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.includeVirtual=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:S(e.preferences)?s.fromJSON(e.preferences):void 0,includeVirtual:S(e.includeVirtual)?globalThis.Boolean(e.includeVirtual):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.includeVirtual!==!1&&(n.includeVirtual=e.includeVirtual),n},create(e){return at.fromPartial(e??{})},fromPartial(e){const n=Xn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.includeVirtual=e.includeVirtual??!1,n}};function Qn(){return{devices:[]}}const ot={encode(e,n=new d){for(const i of e.devices)y.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Qn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.devices.push(y.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{devices:globalThis.Array.isArray(e==null?void 0:e.devices)?e.devices.map(n=>y.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.devices)!=null&&i.length&&(n.devices=e.devices.map(a=>y.toJSON(a))),n},create(e){return ot.fromPartial(e??{})},fromPartial(e){var i;const n=Qn();return n.devices=((i=e.devices)==null?void 0:i.map(a=>y.fromPartial(a)))||[],n}};function zn(){return{preferences:void 0,channelNumber:0,bitRate:void 0,bitRateArbitrationPhase:void 0,bitRateDataPhase:void 0}}const st={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),e.bitRate!==void 0&&n.uint32(24).int32(e.bitRate),e.bitRateArbitrationPhase!==void 0&&n.uint32(32).int32(e.bitRateArbitrationPhase),e.bitRateDataPhase!==void 0&&n.uint32(40).int32(e.bitRateDataPhase),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=zn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r!==24)break;t.bitRate=i.int32();continue}case 4:{if(r!==32)break;t.bitRateArbitrationPhase=i.int32();continue}case 5:{if(r!==40)break;t.bitRateDataPhase=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:S(e.preferences)?s.fromJSON(e.preferences):void 0,channelNumber:S(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRate:S(e.bitRate)?globalThis.Number(e.bitRate):void 0,bitRateArbitrationPhase:S(e.bitRateArbitrationPhase)?globalThis.Number(e.bitRateArbitrationPhase):void 0,bitRateDataPhase:S(e.bitRateDataPhase)?globalThis.Number(e.bitRateDataPhase):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.bitRate!==void 0&&(n.bitRate=Math.round(e.bitRate)),e.bitRateArbitrationPhase!==void 0&&(n.bitRateArbitrationPhase=Math.round(e.bitRateArbitrationPhase)),e.bitRateDataPhase!==void 0&&(n.bitRateDataPhase=Math.round(e.bitRateDataPhase)),n},create(e){return st.fromPartial(e??{})},fromPartial(e){const n=zn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRate=e.bitRate??void 0,n.bitRateArbitrationPhase=e.bitRateArbitrationPhase??void 0,n.bitRateDataPhase=e.bitRateDataPhase??void 0,n}};function Kn(){return{availableBusSpeeds:[],availableBusSpeedsFd:[]}}const ut={encode(e,n=new d){for(const i of e.availableBusSpeeds)J.encode(i,n.uint32(10).fork()).join();for(const i of e.availableBusSpeedsFd)b.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Kn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeeds.push(J.decode(i,i.uint32()));continue}case 2:{if(r!==18)break;t.availableBusSpeedsFd.push(b.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>J.fromJSON(n)):[],availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>b.fromJSON(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.availableBusSpeeds)!=null&&i.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(t=>J.toJSON(t))),(a=e.availableBusSpeedsFd)!=null&&a.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(t=>b.toJSON(t))),n},create(e){return ut.fromPartial(e??{})},fromPartial(e){var i,a;const n=Kn();return n.availableBusSpeeds=((i=e.availableBusSpeeds)==null?void 0:i.map(t=>J.fromPartial(t)))||[],n.availableBusSpeedsFd=((a=e.availableBusSpeedsFd)==null?void 0:a.map(t=>b.fromPartial(t)))||[],n}};function Yn(){return{preferences:void 0,channelNumber:0,bitRates:[]}}const dt={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const i of e.bitRates)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Yn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r===24){t.bitRates.push(i.int32());continue}if(r===26){const l=i.uint32()+i.pos;for(;i.pos<l;)t.bitRates.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:S(e.preferences)?s.fromJSON(e.preferences):void 0,channelNumber:S(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRates:globalThis.Array.isArray(e==null?void 0:e.bitRates)?e.bitRates.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(i=e.bitRates)!=null&&i.length&&(n.bitRates=e.bitRates.map(a=>Math.round(a))),n},create(e){return dt.fromPartial(e??{})},fromPartial(e){var i;const n=Yn();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRates=((i=e.bitRates)==null?void 0:i.map(a=>a))||[],n}};function Wn(){return{availableBusSpeeds:[]}}const lt={encode(e,n=new d){for(const i of e.availableBusSpeeds)J.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Wn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeeds.push(J.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeeds:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeeds)?e.availableBusSpeeds.map(n=>J.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.availableBusSpeeds)!=null&&i.length&&(n.availableBusSpeeds=e.availableBusSpeeds.map(a=>J.toJSON(a))),n},create(e){return lt.fromPartial(e??{})},fromPartial(e){var i;const n=Wn();return n.availableBusSpeeds=((i=e.availableBusSpeeds)==null?void 0:i.map(a=>J.fromPartial(a)))||[],n}};function $n(){return{preferences:void 0,channelNumber:0,bitRatesArbitrationPhase:[],bitRatesDataPhase:[]}}const ft={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelNumber!==0&&n.uint32(16).int32(e.channelNumber),n.uint32(26).fork();for(const i of e.bitRatesArbitrationPhase)n.int32(i);n.join(),n.uint32(34).fork();for(const i of e.bitRatesDataPhase)n.int32(i);return n.join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=$n();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.channelNumber=i.int32();continue}case 3:{if(r===24){t.bitRatesArbitrationPhase.push(i.int32());continue}if(r===26){const l=i.uint32()+i.pos;for(;i.pos<l;)t.bitRatesArbitrationPhase.push(i.int32());continue}break}case 4:{if(r===32){t.bitRatesDataPhase.push(i.int32());continue}if(r===34){const l=i.uint32()+i.pos;for(;i.pos<l;)t.bitRatesDataPhase.push(i.int32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:S(e.preferences)?s.fromJSON(e.preferences):void 0,channelNumber:S(e.channelNumber)?globalThis.Number(e.channelNumber):0,bitRatesArbitrationPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesArbitrationPhase)?e.bitRatesArbitrationPhase.map(n=>globalThis.Number(n)):[],bitRatesDataPhase:globalThis.Array.isArray(e==null?void 0:e.bitRatesDataPhase)?e.bitRatesDataPhase.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i,a;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),(i=e.bitRatesArbitrationPhase)!=null&&i.length&&(n.bitRatesArbitrationPhase=e.bitRatesArbitrationPhase.map(t=>Math.round(t))),(a=e.bitRatesDataPhase)!=null&&a.length&&(n.bitRatesDataPhase=e.bitRatesDataPhase.map(t=>Math.round(t))),n},create(e){return ft.fromPartial(e??{})},fromPartial(e){var i,a;const n=$n();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelNumber=e.channelNumber??0,n.bitRatesArbitrationPhase=((i=e.bitRatesArbitrationPhase)==null?void 0:i.map(t=>t))||[],n.bitRatesDataPhase=((a=e.bitRatesDataPhase)==null?void 0:a.map(t=>t))||[],n}};function jn(){return{availableBusSpeedsFd:[]}}const ct={encode(e,n=new d){for(const i of e.availableBusSpeedsFd)b.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=jn();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.availableBusSpeedsFd.push(b.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{availableBusSpeedsFd:globalThis.Array.isArray(e==null?void 0:e.availableBusSpeedsFd)?e.availableBusSpeedsFd.map(n=>b.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.availableBusSpeedsFd)!=null&&i.length&&(n.availableBusSpeedsFd=e.availableBusSpeedsFd.map(a=>b.toJSON(a))),n},create(e){return ct.fromPartial(e??{})},fromPartial(e){var i;const n=jn();return n.availableBusSpeedsFd=((i=e.availableBusSpeedsFd)==null?void 0:i.map(a=>b.fromPartial(a)))||[],n}};function ei(){return{eventType:0,devices:void 0}}const Nt={encode(e,n=new d){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.devices!==void 0&&te.encode(e.devices,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ei();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.eventType=i.int32();continue}case 2:{if(r!==18)break;t.devices=te.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{eventType:S(e.eventType)?rt(e.eventType):0,devices:S(e.devices)?te.fromJSON(e.devices):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=tt(e.eventType)),e.devices!==void 0&&(n.devices=te.toJSON(e.devices)),n},create(e){return Nt.fromPartial(e??{})},fromPartial(e){const n=ei();return n.eventType=e.eventType??0,n.devices=e.devices!==void 0&&e.devices!==null?te.fromPartial(e.devices):void 0,n}};function S(e){return e!=null}var pt=(e=>(e[e.CAN_MODE_UNSPECIFIED=0]="CAN_MODE_UNSPECIFIED",e[e.CAN_MODE_CAN=1]="CAN_MODE_CAN",e[e.CAN_MODE_CAN_FD=2]="CAN_MODE_CAN_FD",e[e.CAN_MODE_CAN_FD_NONISO=3]="CAN_MODE_CAN_FD_NONISO",e[e.CAN_MODE_CAN_XL=4]="CAN_MODE_CAN_XL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(pt||{});function St(e){switch(e){case 0:case"CAN_MODE_UNSPECIFIED":return 0;case 1:case"CAN_MODE_CAN":return 1;case 2:case"CAN_MODE_CAN_FD":return 2;case 3:case"CAN_MODE_CAN_FD_NONISO":return 3;case 4:case"CAN_MODE_CAN_XL":return 4;case-1:case"UNRECOGNIZED":default:return-1}}function _t(e){switch(e){case 0:return"CAN_MODE_UNSPECIFIED";case 1:return"CAN_MODE_CAN";case 2:return"CAN_MODE_CAN_FD";case 3:return"CAN_MODE_CAN_FD_NONISO";case 4:return"CAN_MODE_CAN_XL";case-1:default:return"UNRECOGNIZED"}}var Et=(e=>(e[e.ACCESS_MODE_UNSPECIFIED=0]="ACCESS_MODE_UNSPECIFIED",e[e.ACCESS_MODE_INIT_ACCESS=1]="ACCESS_MODE_INIT_ACCESS",e[e.ACCESS_MODE_NO_INIT_ACCESS=2]="ACCESS_MODE_NO_INIT_ACCESS",e[e.ACCESS_MODE_EXCLUSIVE_ACCESS=3]="ACCESS_MODE_EXCLUSIVE_ACCESS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Et||{});function mt(e){switch(e){case 0:case"ACCESS_MODE_UNSPECIFIED":return 0;case 1:case"ACCESS_MODE_INIT_ACCESS":return 1;case 2:case"ACCESS_MODE_NO_INIT_ACCESS":return 2;case 3:case"ACCESS_MODE_EXCLUSIVE_ACCESS":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function At(e){switch(e){case 0:return"ACCESS_MODE_UNSPECIFIED";case 1:return"ACCESS_MODE_INIT_ACCESS";case 2:return"ACCESS_MODE_NO_INIT_ACCESS";case 3:return"ACCESS_MODE_EXCLUSIVE_ACCESS";case-1:default:return"UNRECOGNIZED"}}var Ot=(e=>(e[e.CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED=0]="CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED",e[e.CAN_MESSAGE_FILTER_TYPE_PASS=1]="CAN_MESSAGE_FILTER_TYPE_PASS",e[e.CAN_MESSAGE_FILTER_TYPE_BLOCK=2]="CAN_MESSAGE_FILTER_TYPE_BLOCK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ot||{});function vt(e){switch(e){case 0:case"CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED":return 0;case 1:case"CAN_MESSAGE_FILTER_TYPE_PASS":return 1;case 2:case"CAN_MESSAGE_FILTER_TYPE_BLOCK":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Tt(e){switch(e){case 0:return"CAN_MESSAGE_FILTER_TYPE_UNSPECIFIED";case 1:return"CAN_MESSAGE_FILTER_TYPE_PASS";case 2:return"CAN_MESSAGE_FILTER_TYPE_BLOCK";case-1:default:return"UNRECOGNIZED"}}var Rt=(e=>(e[e.CAN_CONFIG_MODE_UNSPECIFIED=0]="CAN_CONFIG_MODE_UNSPECIFIED",e[e.CAN_CONFIG_MODE_3_SAMPLES=4]="CAN_CONFIG_MODE_3_SAMPLES",e[e.CAN_CONFIG_MODE_TDC_OFF=512]="CAN_CONFIG_MODE_TDC_OFF",e[e.CAN_CONFIG_MODE_TDC_MANUAL=1024]="CAN_CONFIG_MODE_TDC_MANUAL",e[e.CAN_CONFIG_MODE_TDC_ABS_SP=2048]="CAN_CONFIG_MODE_TDC_ABS_SP",e[e.CAN_CONFIG_MODE_XL_TMS=4096]="CAN_CONFIG_MODE_XL_TMS",e[e.CAN_CONFIG_MODE_ERR_SIGNAL_OFF=8192]="CAN_CONFIG_MODE_ERR_SIGNAL_OFF",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Rt||{});function ht(e){switch(e){case 0:case"CAN_CONFIG_MODE_UNSPECIFIED":return 0;case 4:case"CAN_CONFIG_MODE_3_SAMPLES":return 4;case 512:case"CAN_CONFIG_MODE_TDC_OFF":return 512;case 1024:case"CAN_CONFIG_MODE_TDC_MANUAL":return 1024;case 2048:case"CAN_CONFIG_MODE_TDC_ABS_SP":return 2048;case 4096:case"CAN_CONFIG_MODE_XL_TMS":return 4096;case 8192:case"CAN_CONFIG_MODE_ERR_SIGNAL_OFF":return 8192;case-1:case"UNRECOGNIZED":default:return-1}}function It(e){switch(e){case 0:return"CAN_CONFIG_MODE_UNSPECIFIED";case 4:return"CAN_CONFIG_MODE_3_SAMPLES";case 512:return"CAN_CONFIG_MODE_TDC_OFF";case 1024:return"CAN_CONFIG_MODE_TDC_MANUAL";case 2048:return"CAN_CONFIG_MODE_TDC_ABS_SP";case 4096:return"CAN_CONFIG_MODE_XL_TMS";case 8192:return"CAN_CONFIG_MODE_ERR_SIGNAL_OFF";case-1:default:return"UNRECOGNIZED"}}var Pt=(e=>(e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED=0]="SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO=1]="SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO=2]="SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN=3]="SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL=4]="SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL=5]="SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN=6]="SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO=7]="SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM=8]="SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM",e[e.SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE=9]="SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Pt||{});function Ct(e){switch(e){case 0:case"SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED":return 0;case 1:case"SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO":return 1;case 2:case"SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO":return 2;case 3:case"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN":return 3;case 4:case"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL":return 4;case 5:case"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL":return 5;case 6:case"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN":return 6;case 7:case"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO":return 7;case 8:case"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM":return 8;case 9:case"SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE":return 9;case-1:case"UNRECOGNIZED":default:return-1}}function Ft(e){switch(e){case 0:return"SIGNAL_VALUE_TRIGGER_OPERATOR_UNSPECIFIED";case 1:return"SIGNAL_VALUE_TRIGGER_OPERATOR_EQUAL_TO";case 2:return"SIGNAL_VALUE_TRIGGER_OPERATOR_NOT_EQUAL_TO";case 3:return"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN";case 4:return"SIGNAL_VALUE_TRIGGER_OPERATOR_LESS_THAN_OR_EQUAL";case 5:return"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN_OR_EQUAL";case 6:return"SIGNAL_VALUE_TRIGGER_OPERATOR_GREATER_THAN";case 7:return"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_TO";case 8:return"SIGNAL_VALUE_TRIGGER_OPERATOR_CHANGE_FROM";case 9:return"SIGNAL_VALUE_TRIGGER_OPERATOR_ON_CHANGE";case-1:default:return"UNRECOGNIZED"}}var Lt=(e=>(e[e.TRIGGER_OPERATOR_UNSPECIFIED=0]="TRIGGER_OPERATOR_UNSPECIFIED",e[e.TRIGGER_OPERATOR_AND=1]="TRIGGER_OPERATOR_AND",e[e.TRIGGER_OPERATOR_OR=2]="TRIGGER_OPERATOR_OR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Lt||{});function Ie(e){switch(e){case 0:case"TRIGGER_OPERATOR_UNSPECIFIED":return 0;case 1:case"TRIGGER_OPERATOR_AND":return 1;case 2:case"TRIGGER_OPERATOR_OR":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Pe(e){switch(e){case 0:return"TRIGGER_OPERATOR_UNSPECIFIED";case 1:return"TRIGGER_OPERATOR_AND";case 2:return"TRIGGER_OPERATOR_OR";case-1:default:return"UNRECOGNIZED"}}var gt=(e=>(e[e.LOG_FILE_FORMAT_UNSPECIFIED=0]="LOG_FILE_FORMAT_UNSPECIFIED",e[e.LOG_FILE_FORMAT_KME24=1]="LOG_FILE_FORMAT_KME24",e[e.LOG_FILE_FORMAT_KME25=2]="LOG_FILE_FORMAT_KME25",e[e.LOG_FILE_FORMAT_VECTOR_ASC=3]="LOG_FILE_FORMAT_VECTOR_ASC",e[e.LOG_FILE_FORMAT_CSV=4]="LOG_FILE_FORMAT_CSV",e[e.LOG_FILE_FORMAT_PLAIN_ASC=5]="LOG_FILE_FORMAT_PLAIN_ASC",e[e.LOG_FILE_FORMAT_MEMO_LOG=6]="LOG_FILE_FORMAT_MEMO_LOG",e[e.LOG_FILE_FORMAT_KME40=7]="LOG_FILE_FORMAT_KME40",e[e.LOG_FILE_FORMAT_VECTOR_BLF=8]="LOG_FILE_FORMAT_VECTOR_BLF",e[e.LOG_FILE_FORMAT_KME50=9]="LOG_FILE_FORMAT_KME50",e[e.LOG_FILE_FORMAT_KME60=10]="LOG_FILE_FORMAT_KME60",e[e.LOG_FILE_FORMAT_CSV_SIGNAL=100]="LOG_FILE_FORMAT_CSV_SIGNAL",e[e.LOG_FILE_FORMAT_MDF=101]="LOG_FILE_FORMAT_MDF",e[e.LOG_FILE_FORMAT_MATLAB=102]="LOG_FILE_FORMAT_MATLAB",e[e.LOG_FILE_FORMAT_J1587_ALT=104]="LOG_FILE_FORMAT_J1587_ALT",e[e.LOG_FILE_FORMAT_FAMOS=105]="LOG_FILE_FORMAT_FAMOS",e[e.LOG_FILE_FORMAT_MDF_SIGNAL=106]="LOG_FILE_FORMAT_MDF_SIGNAL",e[e.LOG_FILE_FORMAT_MDF_4X=107]="LOG_FILE_FORMAT_MDF_4X",e[e.LOG_FILE_FORMAT_MDF_4X_SIGNAL=108]="LOG_FILE_FORMAT_MDF_4X_SIGNAL",e[e.LOG_FILE_FORMAT_VECTOR_BLF_FD=109]="LOG_FILE_FORMAT_VECTOR_BLF_FD",e[e.LOG_FILE_FORMAT_XCP=200]="LOG_FILE_FORMAT_XCP",e[e.LOG_FILE_FORMAT_FAMOS_XCP=201]="LOG_FILE_FORMAT_FAMOS_XCP",e[e.LOG_FILE_FORMAT_DEBUG=1e3]="LOG_FILE_FORMAT_DEBUG",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(gt||{});function Je(e){switch(e){case 0:case"LOG_FILE_FORMAT_UNSPECIFIED":return 0;case 1:case"LOG_FILE_FORMAT_KME24":return 1;case 2:case"LOG_FILE_FORMAT_KME25":return 2;case 3:case"LOG_FILE_FORMAT_VECTOR_ASC":return 3;case 4:case"LOG_FILE_FORMAT_CSV":return 4;case 5:case"LOG_FILE_FORMAT_PLAIN_ASC":return 5;case 6:case"LOG_FILE_FORMAT_MEMO_LOG":return 6;case 7:case"LOG_FILE_FORMAT_KME40":return 7;case 8:case"LOG_FILE_FORMAT_VECTOR_BLF":return 8;case 9:case"LOG_FILE_FORMAT_KME50":return 9;case 10:case"LOG_FILE_FORMAT_KME60":return 10;case 100:case"LOG_FILE_FORMAT_CSV_SIGNAL":return 100;case 101:case"LOG_FILE_FORMAT_MDF":return 101;case 102:case"LOG_FILE_FORMAT_MATLAB":return 102;case 104:case"LOG_FILE_FORMAT_J1587_ALT":return 104;case 105:case"LOG_FILE_FORMAT_FAMOS":return 105;case 106:case"LOG_FILE_FORMAT_MDF_SIGNAL":return 106;case 107:case"LOG_FILE_FORMAT_MDF_4X":return 107;case 108:case"LOG_FILE_FORMAT_MDF_4X_SIGNAL":return 108;case 109:case"LOG_FILE_FORMAT_VECTOR_BLF_FD":return 109;case 200:case"LOG_FILE_FORMAT_XCP":return 200;case 201:case"LOG_FILE_FORMAT_FAMOS_XCP":return 201;case 1e3:case"LOG_FILE_FORMAT_DEBUG":return 1e3;case-1:case"UNRECOGNIZED":default:return-1}}function be(e){switch(e){case 0:return"LOG_FILE_FORMAT_UNSPECIFIED";case 1:return"LOG_FILE_FORMAT_KME24";case 2:return"LOG_FILE_FORMAT_KME25";case 3:return"LOG_FILE_FORMAT_VECTOR_ASC";case 4:return"LOG_FILE_FORMAT_CSV";case 5:return"LOG_FILE_FORMAT_PLAIN_ASC";case 6:return"LOG_FILE_FORMAT_MEMO_LOG";case 7:return"LOG_FILE_FORMAT_KME40";case 8:return"LOG_FILE_FORMAT_VECTOR_BLF";case 9:return"LOG_FILE_FORMAT_KME50";case 10:return"LOG_FILE_FORMAT_KME60";case 100:return"LOG_FILE_FORMAT_CSV_SIGNAL";case 101:return"LOG_FILE_FORMAT_MDF";case 102:return"LOG_FILE_FORMAT_MATLAB";case 104:return"LOG_FILE_FORMAT_J1587_ALT";case 105:return"LOG_FILE_FORMAT_FAMOS";case 106:return"LOG_FILE_FORMAT_MDF_SIGNAL";case 107:return"LOG_FILE_FORMAT_MDF_4X";case 108:return"LOG_FILE_FORMAT_MDF_4X_SIGNAL";case 109:return"LOG_FILE_FORMAT_VECTOR_BLF_FD";case 200:return"LOG_FILE_FORMAT_XCP";case 201:return"LOG_FILE_FORMAT_FAMOS_XCP";case 1e3:return"LOG_FILE_FORMAT_DEBUG";case-1:default:return"UNRECOGNIZED"}}var Mt=(e=>(e[e.FILE_CONFLICT_ACTION_UNSPECIFIED=0]="FILE_CONFLICT_ACTION_UNSPECIFIED",e[e.FILE_CONFLICT_ACTION_OVERWRITE=1]="FILE_CONFLICT_ACTION_OVERWRITE",e[e.FILE_CONFLICT_ACTION_APPEND_INDEX=2]="FILE_CONFLICT_ACTION_APPEND_INDEX",e[e.FILE_CONFLICT_ACTION_APPEND_TIMESTAMP=3]="FILE_CONFLICT_ACTION_APPEND_TIMESTAMP",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Mt||{});function we(e){switch(e){case 0:case"FILE_CONFLICT_ACTION_UNSPECIFIED":return 0;case 1:case"FILE_CONFLICT_ACTION_OVERWRITE":return 1;case 2:case"FILE_CONFLICT_ACTION_APPEND_INDEX":return 2;case 3:case"FILE_CONFLICT_ACTION_APPEND_TIMESTAMP":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function He(e){switch(e){case 0:return"FILE_CONFLICT_ACTION_UNSPECIFIED";case 1:return"FILE_CONFLICT_ACTION_OVERWRITE";case 2:return"FILE_CONFLICT_ACTION_APPEND_INDEX";case 3:return"FILE_CONFLICT_ACTION_APPEND_TIMESTAMP";case-1:default:return"UNRECOGNIZED"}}var kt=(e=>(e[e.DECIMAL_CHAR_UNSPECIFIED=0]="DECIMAL_CHAR_UNSPECIFIED",e[e.DECIMAL_CHAR_DEC_DOT=1]="DECIMAL_CHAR_DEC_DOT",e[e.DECIMAL_CHAR_DEC_COMMA=2]="DECIMAL_CHAR_DEC_COMMA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(kt||{});function qe(e){switch(e){case 0:case"DECIMAL_CHAR_UNSPECIFIED":return 0;case 1:case"DECIMAL_CHAR_DEC_DOT":return 1;case 2:case"DECIMAL_CHAR_DEC_COMMA":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Ze(e){switch(e){case 0:return"DECIMAL_CHAR_UNSPECIFIED";case 1:return"DECIMAL_CHAR_DEC_DOT";case 2:return"DECIMAL_CHAR_DEC_COMMA";case-1:default:return"UNRECOGNIZED"}}var Gt=(e=>(e[e.SEPARATOR_UNSPECIFIED=0]="SEPARATOR_UNSPECIFIED",e[e.SEPARATOR_COMMA=1]="SEPARATOR_COMMA",e[e.SEPARATOR_SEMICOLON=2]="SEPARATOR_SEMICOLON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Gt||{});function Xe(e){switch(e){case 0:case"SEPARATOR_UNSPECIFIED":return 0;case 1:case"SEPARATOR_COMMA":return 1;case 2:case"SEPARATOR_SEMICOLON":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Qe(e){switch(e){case 0:return"SEPARATOR_UNSPECIFIED";case 1:return"SEPARATOR_COMMA";case 2:return"SEPARATOR_SEMICOLON";case-1:default:return"UNRECOGNIZED"}}var Dt=(e=>(e[e.TIME_REFERENCE_UNSPECIFIED=0]="TIME_REFERENCE_UNSPECIFIED",e[e.TIME_REFERENCE_FIRST_TRIGGER=1]="TIME_REFERENCE_FIRST_TRIGGER",e[e.TIME_REFERENCE_START_OF_MEASUREMENT=2]="TIME_REFERENCE_START_OF_MEASUREMENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Dt||{});function ze(e){switch(e){case 0:case"TIME_REFERENCE_UNSPECIFIED":return 0;case 1:case"TIME_REFERENCE_FIRST_TRIGGER":return 1;case 2:case"TIME_REFERENCE_START_OF_MEASUREMENT":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Ke(e){switch(e){case 0:return"TIME_REFERENCE_UNSPECIFIED";case 1:return"TIME_REFERENCE_FIRST_TRIGGER";case 2:return"TIME_REFERENCE_START_OF_MEASUREMENT";case-1:default:return"UNRECOGNIZED"}}function ni(){return{offset:0}}const G={encode(e,n=new d){return e.offset!==0&&n.uint32(8).int32(e.offset),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ni();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.offset=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{offset:u(e.offset)?globalThis.Number(e.offset):0}},toJSON(e){const n={};return e.offset!==0&&(n.offset=Math.round(e.offset)),n},create(e){return G.fromPartial(e??{})},fromPartial(e){const n=ni();return n.offset=e.offset??0,n}};function ii(){return{canMode:0,accessMode:0,silentMode:!1,busParamsBitRate:0,busParams:void 0,busParamsBitRateFd:void 0,busParamsFd:void 0,busParamsBitRateXl:void 0,busParamsXl:void 0,busParamsSamplePoint:void 0,busParamsSamplePointFd:void 0,busParamsSamplePointXl:void 0,canConfigModes:[],fdTdc:void 0,xlTdc:void 0,pwms:void 0,pwml:void 0,pwmo:void 0}}const V={encode(e,n=new d){e.canMode!==0&&n.uint32(8).int32(e.canMode),e.accessMode!==0&&n.uint32(16).int32(e.accessMode),e.silentMode!==!1&&n.uint32(24).bool(e.silentMode),e.busParamsBitRate!==0&&n.uint32(32).int32(e.busParamsBitRate),e.busParams!==void 0&&p.encode(e.busParams,n.uint32(42).fork()).join(),e.busParamsBitRateFd!==void 0&&n.uint32(48).int32(e.busParamsBitRateFd),e.busParamsFd!==void 0&&p.encode(e.busParamsFd,n.uint32(58).fork()).join(),e.busParamsBitRateXl!==void 0&&n.uint32(64).int32(e.busParamsBitRateXl),e.busParamsXl!==void 0&&p.encode(e.busParamsXl,n.uint32(74).fork()).join(),e.busParamsSamplePoint!==void 0&&n.uint32(85).float(e.busParamsSamplePoint),e.busParamsSamplePointFd!==void 0&&n.uint32(93).float(e.busParamsSamplePointFd),e.busParamsSamplePointXl!==void 0&&n.uint32(101).float(e.busParamsSamplePointXl),n.uint32(106).fork();for(const i of e.canConfigModes)n.int32(i);return n.join(),e.fdTdc!==void 0&&G.encode(e.fdTdc,n.uint32(114).fork()).join(),e.xlTdc!==void 0&&G.encode(e.xlTdc,n.uint32(122).fork()).join(),e.pwms!==void 0&&n.uint32(128).uint32(e.pwms),e.pwml!==void 0&&n.uint32(136).uint32(e.pwml),e.pwmo!==void 0&&n.uint32(144).uint32(e.pwmo),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ii();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.canMode=i.int32();continue}case 2:{if(r!==16)break;t.accessMode=i.int32();continue}case 3:{if(r!==24)break;t.silentMode=i.bool();continue}case 4:{if(r!==32)break;t.busParamsBitRate=i.int32();continue}case 5:{if(r!==42)break;t.busParams=p.decode(i,i.uint32());continue}case 6:{if(r!==48)break;t.busParamsBitRateFd=i.int32();continue}case 7:{if(r!==58)break;t.busParamsFd=p.decode(i,i.uint32());continue}case 8:{if(r!==64)break;t.busParamsBitRateXl=i.int32();continue}case 9:{if(r!==74)break;t.busParamsXl=p.decode(i,i.uint32());continue}case 10:{if(r!==85)break;t.busParamsSamplePoint=i.float();continue}case 11:{if(r!==93)break;t.busParamsSamplePointFd=i.float();continue}case 12:{if(r!==101)break;t.busParamsSamplePointXl=i.float();continue}case 13:{if(r===104){t.canConfigModes.push(i.int32());continue}if(r===106){const l=i.uint32()+i.pos;for(;i.pos<l;)t.canConfigModes.push(i.int32());continue}break}case 14:{if(r!==114)break;t.fdTdc=G.decode(i,i.uint32());continue}case 15:{if(r!==122)break;t.xlTdc=G.decode(i,i.uint32());continue}case 16:{if(r!==128)break;t.pwms=i.uint32();continue}case 17:{if(r!==136)break;t.pwml=i.uint32();continue}case 18:{if(r!==144)break;t.pwmo=i.uint32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{canMode:u(e.canMode)?St(e.canMode):0,accessMode:u(e.accessMode)?mt(e.accessMode):0,silentMode:u(e.silentMode)?globalThis.Boolean(e.silentMode):!1,busParamsBitRate:u(e.busParamsBitRate)?globalThis.Number(e.busParamsBitRate):0,busParams:u(e.busParams)?p.fromJSON(e.busParams):void 0,busParamsBitRateFd:u(e.busParamsBitRateFd)?globalThis.Number(e.busParamsBitRateFd):void 0,busParamsFd:u(e.busParamsFd)?p.fromJSON(e.busParamsFd):void 0,busParamsBitRateXl:u(e.busParamsBitRateXl)?globalThis.Number(e.busParamsBitRateXl):void 0,busParamsXl:u(e.busParamsXl)?p.fromJSON(e.busParamsXl):void 0,busParamsSamplePoint:u(e.busParamsSamplePoint)?globalThis.Number(e.busParamsSamplePoint):void 0,busParamsSamplePointFd:u(e.busParamsSamplePointFd)?globalThis.Number(e.busParamsSamplePointFd):void 0,busParamsSamplePointXl:u(e.busParamsSamplePointXl)?globalThis.Number(e.busParamsSamplePointXl):void 0,canConfigModes:globalThis.Array.isArray(e==null?void 0:e.canConfigModes)?e.canConfigModes.map(n=>ht(n)):[],fdTdc:u(e.fdTdc)?G.fromJSON(e.fdTdc):void 0,xlTdc:u(e.xlTdc)?G.fromJSON(e.xlTdc):void 0,pwms:u(e.pwms)?globalThis.Number(e.pwms):void 0,pwml:u(e.pwml)?globalThis.Number(e.pwml):void 0,pwmo:u(e.pwmo)?globalThis.Number(e.pwmo):void 0}},toJSON(e){var i;const n={};return e.canMode!==0&&(n.canMode=_t(e.canMode)),e.accessMode!==0&&(n.accessMode=At(e.accessMode)),e.silentMode!==!1&&(n.silentMode=e.silentMode),e.busParamsBitRate!==0&&(n.busParamsBitRate=Math.round(e.busParamsBitRate)),e.busParams!==void 0&&(n.busParams=p.toJSON(e.busParams)),e.busParamsBitRateFd!==void 0&&(n.busParamsBitRateFd=Math.round(e.busParamsBitRateFd)),e.busParamsFd!==void 0&&(n.busParamsFd=p.toJSON(e.busParamsFd)),e.busParamsBitRateXl!==void 0&&(n.busParamsBitRateXl=Math.round(e.busParamsBitRateXl)),e.busParamsXl!==void 0&&(n.busParamsXl=p.toJSON(e.busParamsXl)),e.busParamsSamplePoint!==void 0&&(n.busParamsSamplePoint=e.busParamsSamplePoint),e.busParamsSamplePointFd!==void 0&&(n.busParamsSamplePointFd=e.busParamsSamplePointFd),e.busParamsSamplePointXl!==void 0&&(n.busParamsSamplePointXl=e.busParamsSamplePointXl),(i=e.canConfigModes)!=null&&i.length&&(n.canConfigModes=e.canConfigModes.map(a=>It(a))),e.fdTdc!==void 0&&(n.fdTdc=G.toJSON(e.fdTdc)),e.xlTdc!==void 0&&(n.xlTdc=G.toJSON(e.xlTdc)),e.pwms!==void 0&&(n.pwms=Math.round(e.pwms)),e.pwml!==void 0&&(n.pwml=Math.round(e.pwml)),e.pwmo!==void 0&&(n.pwmo=Math.round(e.pwmo)),n},create(e){return V.fromPartial(e??{})},fromPartial(e){var i;const n=ii();return n.canMode=e.canMode??0,n.accessMode=e.accessMode??0,n.silentMode=e.silentMode??!1,n.busParamsBitRate=e.busParamsBitRate??0,n.busParams=e.busParams!==void 0&&e.busParams!==null?p.fromPartial(e.busParams):void 0,n.busParamsBitRateFd=e.busParamsBitRateFd??void 0,n.busParamsFd=e.busParamsFd!==void 0&&e.busParamsFd!==null?p.fromPartial(e.busParamsFd):void 0,n.busParamsBitRateXl=e.busParamsBitRateXl??void 0,n.busParamsXl=e.busParamsXl!==void 0&&e.busParamsXl!==null?p.fromPartial(e.busParamsXl):void 0,n.busParamsSamplePoint=e.busParamsSamplePoint??void 0,n.busParamsSamplePointFd=e.busParamsSamplePointFd??void 0,n.busParamsSamplePointXl=e.busParamsSamplePointXl??void 0,n.canConfigModes=((i=e.canConfigModes)==null?void 0:i.map(a=>a))||[],n.fdTdc=e.fdTdc!==void 0&&e.fdTdc!==null?G.fromPartial(e.fdTdc):void 0,n.xlTdc=e.xlTdc!==void 0&&e.xlTdc!==null?G.fromPartial(e.xlTdc):void 0,n.pwms=e.pwms??void 0,n.pwml=e.pwml??void 0,n.pwmo=e.pwmo??void 0,n}};function ri(){return{bitRate:0,protocolVersion:"",masterMode:!1,databaseFile:void 0,scheduleTable:void 0,saveMessageInfo:!1}}const B={encode(e,n=new d){return e.bitRate!==0&&n.uint32(8).int32(e.bitRate),e.protocolVersion!==""&&n.uint32(18).string(e.protocolVersion),e.masterMode!==!1&&n.uint32(24).bool(e.masterMode),e.databaseFile!==void 0&&n.uint32(34).string(e.databaseFile),e.scheduleTable!==void 0&&n.uint32(42).string(e.scheduleTable),e.saveMessageInfo!==!1&&n.uint32(48).bool(e.saveMessageInfo),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ri();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.bitRate=i.int32();continue}case 2:{if(r!==18)break;t.protocolVersion=i.string();continue}case 3:{if(r!==24)break;t.masterMode=i.bool();continue}case 4:{if(r!==34)break;t.databaseFile=i.string();continue}case 5:{if(r!==42)break;t.scheduleTable=i.string();continue}case 6:{if(r!==48)break;t.saveMessageInfo=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{bitRate:u(e.bitRate)?globalThis.Number(e.bitRate):0,protocolVersion:u(e.protocolVersion)?globalThis.String(e.protocolVersion):"",masterMode:u(e.masterMode)?globalThis.Boolean(e.masterMode):!1,databaseFile:u(e.databaseFile)?globalThis.String(e.databaseFile):void 0,scheduleTable:u(e.scheduleTable)?globalThis.String(e.scheduleTable):void 0,saveMessageInfo:u(e.saveMessageInfo)?globalThis.Boolean(e.saveMessageInfo):!1}},toJSON(e){const n={};return e.bitRate!==0&&(n.bitRate=Math.round(e.bitRate)),e.protocolVersion!==""&&(n.protocolVersion=e.protocolVersion),e.masterMode!==!1&&(n.masterMode=e.masterMode),e.databaseFile!==void 0&&(n.databaseFile=e.databaseFile),e.scheduleTable!==void 0&&(n.scheduleTable=e.scheduleTable),e.saveMessageInfo!==!1&&(n.saveMessageInfo=e.saveMessageInfo),n},create(e){return B.fromPartial(e??{})},fromPartial(e){const n=ri();return n.bitRate=e.bitRate??0,n.protocolVersion=e.protocolVersion??"",n.masterMode=e.masterMode??!1,n.databaseFile=e.databaseFile??void 0,n.scheduleTable=e.scheduleTable??void 0,n.saveMessageInfo=e.saveMessageInfo??!1,n}};function ti(){return{channelNumber:0,lockedToSerialNumber:!1,deviceProductCode:"",deviceSerialNumber:"",channelNumberOnDevice:0,deviceCardType:0,deviceCardNumber:0,canConfiguration:void 0,linConfiguration:void 0,protocols:[]}}const ae={encode(e,n=new d){e.channelNumber!==0&&n.uint32(8).int32(e.channelNumber),e.lockedToSerialNumber!==!1&&n.uint32(16).bool(e.lockedToSerialNumber),e.deviceProductCode!==""&&n.uint32(26).string(e.deviceProductCode),e.deviceSerialNumber!==""&&n.uint32(34).string(e.deviceSerialNumber),e.channelNumberOnDevice!==0&&n.uint32(40).int32(e.channelNumberOnDevice),e.deviceCardType!==0&&n.uint32(48).int32(e.deviceCardType),e.deviceCardNumber!==0&&n.uint32(56).int32(e.deviceCardNumber),e.canConfiguration!==void 0&&V.encode(e.canConfiguration,n.uint32(66).fork()).join(),e.linConfiguration!==void 0&&B.encode(e.linConfiguration,n.uint32(74).fork()).join();for(const i of e.protocols)n.uint32(82).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ti();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.channelNumber=i.int32();continue}case 2:{if(r!==16)break;t.lockedToSerialNumber=i.bool();continue}case 3:{if(r!==26)break;t.deviceProductCode=i.string();continue}case 4:{if(r!==34)break;t.deviceSerialNumber=i.string();continue}case 5:{if(r!==40)break;t.channelNumberOnDevice=i.int32();continue}case 6:{if(r!==48)break;t.deviceCardType=i.int32();continue}case 7:{if(r!==56)break;t.deviceCardNumber=i.int32();continue}case 8:{if(r!==66)break;t.canConfiguration=V.decode(i,i.uint32());continue}case 9:{if(r!==74)break;t.linConfiguration=B.decode(i,i.uint32());continue}case 10:{if(r!==82)break;t.protocols.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelNumber:u(e.channelNumber)?globalThis.Number(e.channelNumber):0,lockedToSerialNumber:u(e.lockedToSerialNumber)?globalThis.Boolean(e.lockedToSerialNumber):!1,deviceProductCode:u(e.deviceProductCode)?globalThis.String(e.deviceProductCode):"",deviceSerialNumber:u(e.deviceSerialNumber)?globalThis.String(e.deviceSerialNumber):"",channelNumberOnDevice:u(e.channelNumberOnDevice)?globalThis.Number(e.channelNumberOnDevice):0,deviceCardType:u(e.deviceCardType)?globalThis.Number(e.deviceCardType):0,deviceCardNumber:u(e.deviceCardNumber)?globalThis.Number(e.deviceCardNumber):0,canConfiguration:u(e.canConfiguration)?V.fromJSON(e.canConfiguration):void 0,linConfiguration:u(e.linConfiguration)?B.fromJSON(e.linConfiguration):void 0,protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return e.channelNumber!==0&&(n.channelNumber=Math.round(e.channelNumber)),e.lockedToSerialNumber!==!1&&(n.lockedToSerialNumber=e.lockedToSerialNumber),e.deviceProductCode!==""&&(n.deviceProductCode=e.deviceProductCode),e.deviceSerialNumber!==""&&(n.deviceSerialNumber=e.deviceSerialNumber),e.channelNumberOnDevice!==0&&(n.channelNumberOnDevice=Math.round(e.channelNumberOnDevice)),e.deviceCardType!==0&&(n.deviceCardType=Math.round(e.deviceCardType)),e.deviceCardNumber!==0&&(n.deviceCardNumber=Math.round(e.deviceCardNumber)),e.canConfiguration!==void 0&&(n.canConfiguration=V.toJSON(e.canConfiguration)),e.linConfiguration!==void 0&&(n.linConfiguration=B.toJSON(e.linConfiguration)),(i=e.protocols)!=null&&i.length&&(n.protocols=e.protocols),n},create(e){return ae.fromPartial(e??{})},fromPartial(e){var i;const n=ti();return n.channelNumber=e.channelNumber??0,n.lockedToSerialNumber=e.lockedToSerialNumber??!1,n.deviceProductCode=e.deviceProductCode??"",n.deviceSerialNumber=e.deviceSerialNumber??"",n.channelNumberOnDevice=e.channelNumberOnDevice??0,n.deviceCardType=e.deviceCardType??0,n.deviceCardNumber=e.deviceCardNumber??0,n.canConfiguration=e.canConfiguration!==void 0&&e.canConfiguration!==null?V.fromPartial(e.canConfiguration):void 0,n.linConfiguration=e.linConfiguration!==void 0&&e.linConfiguration!==null?B.fromPartial(e.linConfiguration):void 0,n.protocols=((i=e.protocols)==null?void 0:i.map(a=>a))||[],n}};function ai(){return{channelIdentifiers:{},logFile:"",iterations:0,sampleRateMs:0,transceiverMode:0,includeErrorFrames:!1,sendFirstMessageMode:0,timeOffsetMs:void 0,timeFactor:void 0,lowerVariance:void 0,higherVariance:void 0,increaseSpeed:void 0}}const oe={encode(e,n=new d){return Object.entries(e.channelIdentifiers).forEach(([i,a])=>{Ge.encode({key:i,value:a},n.uint32(10).fork()).join()}),e.logFile!==""&&n.uint32(18).string(e.logFile),e.iterations!==0&&n.uint32(24).int32(e.iterations),e.sampleRateMs!==0&&n.uint32(32).int32(e.sampleRateMs),e.transceiverMode!==0&&n.uint32(40).int32(e.transceiverMode),e.includeErrorFrames!==!1&&n.uint32(48).bool(e.includeErrorFrames),e.sendFirstMessageMode!==0&&n.uint32(56).int32(e.sendFirstMessageMode),e.timeOffsetMs!==void 0&&n.uint32(64).int32(e.timeOffsetMs),e.timeFactor!==void 0&&n.uint32(73).double(e.timeFactor),e.lowerVariance!==void 0&&n.uint32(81).double(e.lowerVariance),e.higherVariance!==void 0&&n.uint32(89).double(e.higherVariance),e.increaseSpeed!==void 0&&n.uint32(96).bool(e.increaseSpeed),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ai();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;const l=Ge.decode(i,i.uint32());l.value!==void 0&&(t.channelIdentifiers[l.key]=l.value);continue}case 2:{if(r!==18)break;t.logFile=i.string();continue}case 3:{if(r!==24)break;t.iterations=i.int32();continue}case 4:{if(r!==32)break;t.sampleRateMs=i.int32();continue}case 5:{if(r!==40)break;t.transceiverMode=i.int32();continue}case 6:{if(r!==48)break;t.includeErrorFrames=i.bool();continue}case 7:{if(r!==56)break;t.sendFirstMessageMode=i.int32();continue}case 8:{if(r!==64)break;t.timeOffsetMs=i.int32();continue}case 9:{if(r!==73)break;t.timeFactor=i.double();continue}case 10:{if(r!==81)break;t.lowerVariance=i.double();continue}case 11:{if(r!==89)break;t.higherVariance=i.double();continue}case 12:{if(r!==96)break;t.increaseSpeed=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelIdentifiers:Ha(e.channelIdentifiers)?Object.entries(e.channelIdentifiers).reduce((n,[i,a])=>(n[i]=String(a),n),{}):{},logFile:u(e.logFile)?globalThis.String(e.logFile):"",iterations:u(e.iterations)?globalThis.Number(e.iterations):0,sampleRateMs:u(e.sampleRateMs)?globalThis.Number(e.sampleRateMs):0,transceiverMode:u(e.transceiverMode)?globalThis.Number(e.transceiverMode):0,includeErrorFrames:u(e.includeErrorFrames)?globalThis.Boolean(e.includeErrorFrames):!1,sendFirstMessageMode:u(e.sendFirstMessageMode)?globalThis.Number(e.sendFirstMessageMode):0,timeOffsetMs:u(e.timeOffsetMs)?globalThis.Number(e.timeOffsetMs):void 0,timeFactor:u(e.timeFactor)?globalThis.Number(e.timeFactor):void 0,lowerVariance:u(e.lowerVariance)?globalThis.Number(e.lowerVariance):void 0,higherVariance:u(e.higherVariance)?globalThis.Number(e.higherVariance):void 0,increaseSpeed:u(e.increaseSpeed)?globalThis.Boolean(e.increaseSpeed):void 0}},toJSON(e){const n={};if(e.channelIdentifiers){const i=Object.entries(e.channelIdentifiers);i.length>0&&(n.channelIdentifiers={},i.forEach(([a,t])=>{n.channelIdentifiers[a]=t}))}return e.logFile!==""&&(n.logFile=e.logFile),e.iterations!==0&&(n.iterations=Math.round(e.iterations)),e.sampleRateMs!==0&&(n.sampleRateMs=Math.round(e.sampleRateMs)),e.transceiverMode!==0&&(n.transceiverMode=Math.round(e.transceiverMode)),e.includeErrorFrames!==!1&&(n.includeErrorFrames=e.includeErrorFrames),e.sendFirstMessageMode!==0&&(n.sendFirstMessageMode=Math.round(e.sendFirstMessageMode)),e.timeOffsetMs!==void 0&&(n.timeOffsetMs=Math.round(e.timeOffsetMs)),e.timeFactor!==void 0&&(n.timeFactor=e.timeFactor),e.lowerVariance!==void 0&&(n.lowerVariance=e.lowerVariance),e.higherVariance!==void 0&&(n.higherVariance=e.higherVariance),e.increaseSpeed!==void 0&&(n.increaseSpeed=e.increaseSpeed),n},create(e){return oe.fromPartial(e??{})},fromPartial(e){const n=ai();return n.channelIdentifiers=Object.entries(e.channelIdentifiers??{}).reduce((i,[a,t])=>(t!==void 0&&(i[a]=globalThis.String(t)),i),{}),n.logFile=e.logFile??"",n.iterations=e.iterations??0,n.sampleRateMs=e.sampleRateMs??0,n.transceiverMode=e.transceiverMode??0,n.includeErrorFrames=e.includeErrorFrames??!1,n.sendFirstMessageMode=e.sendFirstMessageMode??0,n.timeOffsetMs=e.timeOffsetMs??void 0,n.timeFactor=e.timeFactor??void 0,n.lowerVariance=e.lowerVariance??void 0,n.higherVariance=e.higherVariance??void 0,n.increaseSpeed=e.increaseSpeed??void 0,n}};function oi(){return{key:"",value:""}}const Ge={encode(e,n=new d){return e.key!==""&&n.uint32(10).string(e.key),e.value!==""&&n.uint32(18).string(e.value),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=oi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.key=i.string();continue}case 2:{if(r!==18)break;t.value=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{key:u(e.key)?globalThis.String(e.key):"",value:u(e.value)?globalThis.String(e.value):""}},toJSON(e){const n={};return e.key!==""&&(n.key=e.key),e.value!==""&&(n.value=e.value),n},create(e){return Ge.fromPartial(e??{})},fromPartial(e){const n=oi();return n.key=e.key??"",n.value=e.value??"",n}};function si(){return{channelIdentifier:"",frame:void 0,randomInterval:!1,constantIntervalMs:0,randomIntervalMinMs:0,randomIntervalMaxMs:0,numberOfMessages:0,randomDataLength:!1,randomMessageData:!1,randomIdentifier:!1,scanIdentifier:!1,identifierMin:0,identifierMax:0,randomBurstSize:!1,constantBurstSize:0,randomBurstSizeMin:0,randomBurstSizeMax:0}}const P={encode(e,n=new d){return e.channelIdentifier!==""&&n.uint32(10).string(e.channelIdentifier),e.frame!==void 0&&R.encode(e.frame,n.uint32(18).fork()).join(),e.randomInterval!==!1&&n.uint32(24).bool(e.randomInterval),e.constantIntervalMs!==0&&n.uint32(33).double(e.constantIntervalMs),e.randomIntervalMinMs!==0&&n.uint32(40).int32(e.randomIntervalMinMs),e.randomIntervalMaxMs!==0&&n.uint32(48).int32(e.randomIntervalMaxMs),e.numberOfMessages!==0&&n.uint32(56).int32(e.numberOfMessages),e.randomDataLength!==!1&&n.uint32(64).bool(e.randomDataLength),e.randomMessageData!==!1&&n.uint32(72).bool(e.randomMessageData),e.randomIdentifier!==!1&&n.uint32(80).bool(e.randomIdentifier),e.scanIdentifier!==!1&&n.uint32(88).bool(e.scanIdentifier),e.identifierMin!==0&&n.uint32(96).int32(e.identifierMin),e.identifierMax!==0&&n.uint32(104).int32(e.identifierMax),e.randomBurstSize!==!1&&n.uint32(112).bool(e.randomBurstSize),e.constantBurstSize!==0&&n.uint32(120).int32(e.constantBurstSize),e.randomBurstSizeMin!==0&&n.uint32(128).int32(e.randomBurstSizeMin),e.randomBurstSizeMax!==0&&n.uint32(136).int32(e.randomBurstSizeMax),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=si();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.channelIdentifier=i.string();continue}case 2:{if(r!==18)break;t.frame=R.decode(i,i.uint32());continue}case 3:{if(r!==24)break;t.randomInterval=i.bool();continue}case 4:{if(r!==33)break;t.constantIntervalMs=i.double();continue}case 5:{if(r!==40)break;t.randomIntervalMinMs=i.int32();continue}case 6:{if(r!==48)break;t.randomIntervalMaxMs=i.int32();continue}case 7:{if(r!==56)break;t.numberOfMessages=i.int32();continue}case 8:{if(r!==64)break;t.randomDataLength=i.bool();continue}case 9:{if(r!==72)break;t.randomMessageData=i.bool();continue}case 10:{if(r!==80)break;t.randomIdentifier=i.bool();continue}case 11:{if(r!==88)break;t.scanIdentifier=i.bool();continue}case 12:{if(r!==96)break;t.identifierMin=i.int32();continue}case 13:{if(r!==104)break;t.identifierMax=i.int32();continue}case 14:{if(r!==112)break;t.randomBurstSize=i.bool();continue}case 15:{if(r!==120)break;t.constantBurstSize=i.int32();continue}case 16:{if(r!==128)break;t.randomBurstSizeMin=i.int32();continue}case 17:{if(r!==136)break;t.randomBurstSizeMax=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channelIdentifier:u(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:u(e.frame)?R.fromJSON(e.frame):void 0,randomInterval:u(e.randomInterval)?globalThis.Boolean(e.randomInterval):!1,constantIntervalMs:u(e.constantIntervalMs)?globalThis.Number(e.constantIntervalMs):0,randomIntervalMinMs:u(e.randomIntervalMinMs)?globalThis.Number(e.randomIntervalMinMs):0,randomIntervalMaxMs:u(e.randomIntervalMaxMs)?globalThis.Number(e.randomIntervalMaxMs):0,numberOfMessages:u(e.numberOfMessages)?globalThis.Number(e.numberOfMessages):0,randomDataLength:u(e.randomDataLength)?globalThis.Boolean(e.randomDataLength):!1,randomMessageData:u(e.randomMessageData)?globalThis.Boolean(e.randomMessageData):!1,randomIdentifier:u(e.randomIdentifier)?globalThis.Boolean(e.randomIdentifier):!1,scanIdentifier:u(e.scanIdentifier)?globalThis.Boolean(e.scanIdentifier):!1,identifierMin:u(e.identifierMin)?globalThis.Number(e.identifierMin):0,identifierMax:u(e.identifierMax)?globalThis.Number(e.identifierMax):0,randomBurstSize:u(e.randomBurstSize)?globalThis.Boolean(e.randomBurstSize):!1,constantBurstSize:u(e.constantBurstSize)?globalThis.Number(e.constantBurstSize):0,randomBurstSizeMin:u(e.randomBurstSizeMin)?globalThis.Number(e.randomBurstSizeMin):0,randomBurstSizeMax:u(e.randomBurstSizeMax)?globalThis.Number(e.randomBurstSizeMax):0}},toJSON(e){const n={};return e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=R.toJSON(e.frame)),e.randomInterval!==!1&&(n.randomInterval=e.randomInterval),e.constantIntervalMs!==0&&(n.constantIntervalMs=e.constantIntervalMs),e.randomIntervalMinMs!==0&&(n.randomIntervalMinMs=Math.round(e.randomIntervalMinMs)),e.randomIntervalMaxMs!==0&&(n.randomIntervalMaxMs=Math.round(e.randomIntervalMaxMs)),e.numberOfMessages!==0&&(n.numberOfMessages=Math.round(e.numberOfMessages)),e.randomDataLength!==!1&&(n.randomDataLength=e.randomDataLength),e.randomMessageData!==!1&&(n.randomMessageData=e.randomMessageData),e.randomIdentifier!==!1&&(n.randomIdentifier=e.randomIdentifier),e.scanIdentifier!==!1&&(n.scanIdentifier=e.scanIdentifier),e.identifierMin!==0&&(n.identifierMin=Math.round(e.identifierMin)),e.identifierMax!==0&&(n.identifierMax=Math.round(e.identifierMax)),e.randomBurstSize!==!1&&(n.randomBurstSize=e.randomBurstSize),e.constantBurstSize!==0&&(n.constantBurstSize=Math.round(e.constantBurstSize)),e.randomBurstSizeMin!==0&&(n.randomBurstSizeMin=Math.round(e.randomBurstSizeMin)),e.randomBurstSizeMax!==0&&(n.randomBurstSizeMax=Math.round(e.randomBurstSizeMax)),n},create(e){return P.fromPartial(e??{})},fromPartial(e){const n=si();return n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?R.fromPartial(e.frame):void 0,n.randomInterval=e.randomInterval??!1,n.constantIntervalMs=e.constantIntervalMs??0,n.randomIntervalMinMs=e.randomIntervalMinMs??0,n.randomIntervalMaxMs=e.randomIntervalMaxMs??0,n.numberOfMessages=e.numberOfMessages??0,n.randomDataLength=e.randomDataLength??!1,n.randomMessageData=e.randomMessageData??!1,n.randomIdentifier=e.randomIdentifier??!1,n.scanIdentifier=e.scanIdentifier??!1,n.identifierMin=e.identifierMin??0,n.identifierMax=e.identifierMax??0,n.randomBurstSize=e.randomBurstSize??!1,n.constantBurstSize=e.constantBurstSize??0,n.randomBurstSizeMin=e.randomBurstSizeMin??0,n.randomBurstSizeMax=e.randomBurstSizeMax??0,n}};function ui(){return{stdCanIds:"",extCanIds:"",filterType:0}}const U={encode(e,n=new d){return e.stdCanIds!==""&&n.uint32(10).string(e.stdCanIds),e.extCanIds!==""&&n.uint32(18).string(e.extCanIds),e.filterType!==0&&n.uint32(24).int32(e.filterType),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ui();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.stdCanIds=i.string();continue}case 2:{if(r!==18)break;t.extCanIds=i.string();continue}case 3:{if(r!==24)break;t.filterType=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{stdCanIds:u(e.stdCanIds)?globalThis.String(e.stdCanIds):"",extCanIds:u(e.extCanIds)?globalThis.String(e.extCanIds):"",filterType:u(e.filterType)?vt(e.filterType):0}},toJSON(e){const n={};return e.stdCanIds!==""&&(n.stdCanIds=e.stdCanIds),e.extCanIds!==""&&(n.extCanIds=e.extCanIds),e.filterType!==0&&(n.filterType=Tt(e.filterType)),n},create(e){return U.fromPartial(e??{})},fromPartial(e){const n=ui();return n.stdCanIds=e.stdCanIds??"",n.extCanIds=e.extCanIds??"",n.filterType=e.filterType??0,n}};function di(){return{selectedSignals:[],sourceIdentifiers:[]}}const se={encode(e,n=new d){for(const i of e.selectedSignals)n.uint32(10).string(i);for(const i of e.sourceIdentifiers)n.uint32(18).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=di();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.selectedSignals.push(i.string());continue}case 2:{if(r!==18)break;t.sourceIdentifiers.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{selectedSignals:globalThis.Array.isArray(e==null?void 0:e.selectedSignals)?e.selectedSignals.map(n=>globalThis.String(n)):[],sourceIdentifiers:globalThis.Array.isArray(e==null?void 0:e.sourceIdentifiers)?e.sourceIdentifiers.map(n=>globalThis.String(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.selectedSignals)!=null&&i.length&&(n.selectedSignals=e.selectedSignals),(a=e.sourceIdentifiers)!=null&&a.length&&(n.sourceIdentifiers=e.sourceIdentifiers),n},create(e){return se.fromPartial(e??{})},fromPartial(e){var i,a;const n=di();return n.selectedSignals=((i=e.selectedSignals)==null?void 0:i.map(t=>t))||[],n.sourceIdentifiers=((a=e.sourceIdentifiers)==null?void 0:a.map(t=>t))||[],n}};function li(){return{databaseFiles:[]}}const ue={encode(e,n=new d){for(const i of e.databaseFiles)n.uint32(10).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=li();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.databaseFiles.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{databaseFiles:globalThis.Array.isArray(e==null?void 0:e.databaseFiles)?e.databaseFiles.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return(i=e.databaseFiles)!=null&&i.length&&(n.databaseFiles=e.databaseFiles),n},create(e){return ue.fromPartial(e??{})},fromPartial(e){var i;const n=li();return n.databaseFiles=((i=e.databaseFiles)==null?void 0:i.map(a=>a))||[],n}};function fi(){return{j1939Settings:void 0}}const de={encode(e,n=new d){return e.j1939Settings!==void 0&&le.encode(e.j1939Settings,n.uint32(10).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=fi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.j1939Settings=le.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{j1939Settings:u(e.j1939Settings)?le.fromJSON(e.j1939Settings):void 0}},toJSON(e){const n={};return e.j1939Settings!==void 0&&(n.j1939Settings=le.toJSON(e.j1939Settings)),n},create(e){return de.fromPartial(e??{})},fromPartial(e){const n=fi();return n.j1939Settings=e.j1939Settings!==void 0&&e.j1939Settings!==null?le.fromPartial(e.j1939Settings):void 0,n}};function ci(){return{}}const le={encode(e,n=new d){return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ci();for(;i.pos<a;){const r=i.uint32();if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{}},toJSON(e){return{}},create(e){return le.fromPartial(e??{})},fromPartial(e){return ci()}};function Ni(){return{extensionName:"",configuration:void 0}}const w={encode(e,n=new d){return e.extensionName!==""&&n.uint32(10).string(e.extensionName),e.configuration!==void 0&&n.uint32(18).string(e.configuration),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ni();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.extensionName=i.string();continue}case 2:{if(r!==18)break;t.configuration=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{extensionName:u(e.extensionName)?globalThis.String(e.extensionName):"",configuration:u(e.configuration)?globalThis.String(e.configuration):void 0}},toJSON(e){const n={};return e.extensionName!==""&&(n.extensionName=e.extensionName),e.configuration!==void 0&&(n.configuration=e.configuration),n},create(e){return w.fromPartial(e??{})},fromPartial(e){const n=Ni();return n.extensionName=e.extensionName??"",n.configuration=e.configuration??void 0,n}};function pi(){return{frameId:"",frameIdType:"",sourceId:void 0}}const fe={encode(e,n=new d){return e.frameId!==""&&n.uint32(10).string(e.frameId),e.frameIdType!==""&&n.uint32(18).string(e.frameIdType),e.sourceId!==void 0&&n.uint32(26).string(e.sourceId),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=pi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.frameId=i.string();continue}case 2:{if(r!==18)break;t.frameIdType=i.string();continue}case 3:{if(r!==26)break;t.sourceId=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{frameId:u(e.frameId)?globalThis.String(e.frameId):"",frameIdType:u(e.frameIdType)?globalThis.String(e.frameIdType):"",sourceId:u(e.sourceId)?globalThis.String(e.sourceId):void 0}},toJSON(e){const n={};return e.frameId!==""&&(n.frameId=e.frameId),e.frameIdType!==""&&(n.frameIdType=e.frameIdType),e.sourceId!==void 0&&(n.sourceId=e.sourceId),n},create(e){return fe.fromPartial(e??{})},fromPartial(e){const n=pi();return n.frameId=e.frameId??"",n.frameIdType=e.frameIdType??"",n.sourceId=e.sourceId??void 0,n}};function Si(){return{frameId:"",signalQualifiedName:"",signalValue:0,signalMinValue:0,signalMaxValue:0,operator:0,frameIdType:"",sourceId:void 0}}const ce={encode(e,n=new d){return e.frameId!==""&&n.uint32(10).string(e.frameId),e.signalQualifiedName!==""&&n.uint32(18).string(e.signalQualifiedName),e.signalValue!==0&&n.uint32(25).double(e.signalValue),e.signalMinValue!==0&&n.uint32(33).double(e.signalMinValue),e.signalMaxValue!==0&&n.uint32(41).double(e.signalMaxValue),e.operator!==0&&n.uint32(48).int32(e.operator),e.frameIdType!==""&&n.uint32(58).string(e.frameIdType),e.sourceId!==void 0&&n.uint32(66).string(e.sourceId),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Si();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.frameId=i.string();continue}case 2:{if(r!==18)break;t.signalQualifiedName=i.string();continue}case 3:{if(r!==25)break;t.signalValue=i.double();continue}case 4:{if(r!==33)break;t.signalMinValue=i.double();continue}case 5:{if(r!==41)break;t.signalMaxValue=i.double();continue}case 6:{if(r!==48)break;t.operator=i.int32();continue}case 7:{if(r!==58)break;t.frameIdType=i.string();continue}case 8:{if(r!==66)break;t.sourceId=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{frameId:u(e.frameId)?globalThis.String(e.frameId):"",signalQualifiedName:u(e.signalQualifiedName)?globalThis.String(e.signalQualifiedName):"",signalValue:u(e.signalValue)?globalThis.Number(e.signalValue):0,signalMinValue:u(e.signalMinValue)?globalThis.Number(e.signalMinValue):0,signalMaxValue:u(e.signalMaxValue)?globalThis.Number(e.signalMaxValue):0,operator:u(e.operator)?Ct(e.operator):0,frameIdType:u(e.frameIdType)?globalThis.String(e.frameIdType):"",sourceId:u(e.sourceId)?globalThis.String(e.sourceId):void 0}},toJSON(e){const n={};return e.frameId!==""&&(n.frameId=e.frameId),e.signalQualifiedName!==""&&(n.signalQualifiedName=e.signalQualifiedName),e.signalValue!==0&&(n.signalValue=e.signalValue),e.signalMinValue!==0&&(n.signalMinValue=e.signalMinValue),e.signalMaxValue!==0&&(n.signalMaxValue=e.signalMaxValue),e.operator!==0&&(n.operator=Ft(e.operator)),e.frameIdType!==""&&(n.frameIdType=e.frameIdType),e.sourceId!==void 0&&(n.sourceId=e.sourceId),n},create(e){return ce.fromPartial(e??{})},fromPartial(e){const n=Si();return n.frameId=e.frameId??"",n.signalQualifiedName=e.signalQualifiedName??"",n.signalValue=e.signalValue??0,n.signalMinValue=e.signalMinValue??0,n.signalMaxValue=e.signalMaxValue??0,n.operator=e.operator??0,n.frameIdType=e.frameIdType??"",n.sourceId=e.sourceId??void 0,n}};function _i(){return{timeoutTrigger:void 0,frameReceivedTrigger:void 0,signalValueTrigger:void 0}}const O={encode(e,n=new d){return e.timeoutTrigger!==void 0&&n.uint32(17).double(e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&fe.encode(e.frameReceivedTrigger,n.uint32(26).fork()).join(),e.signalValueTrigger!==void 0&&ce.encode(e.signalValueTrigger,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=_i();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 2:{if(r!==17)break;t.timeoutTrigger=i.double();continue}case 3:{if(r!==26)break;t.frameReceivedTrigger=fe.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.signalValueTrigger=ce.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{timeoutTrigger:u(e.timeoutTrigger)?globalThis.Number(e.timeoutTrigger):void 0,frameReceivedTrigger:u(e.frameReceivedTrigger)?fe.fromJSON(e.frameReceivedTrigger):void 0,signalValueTrigger:u(e.signalValueTrigger)?ce.fromJSON(e.signalValueTrigger):void 0}},toJSON(e){const n={};return e.timeoutTrigger!==void 0&&(n.timeoutTrigger=e.timeoutTrigger),e.frameReceivedTrigger!==void 0&&(n.frameReceivedTrigger=fe.toJSON(e.frameReceivedTrigger)),e.signalValueTrigger!==void 0&&(n.signalValueTrigger=ce.toJSON(e.signalValueTrigger)),n},create(e){return O.fromPartial(e??{})},fromPartial(e){const n=_i();return n.timeoutTrigger=e.timeoutTrigger??void 0,n.frameReceivedTrigger=e.frameReceivedTrigger!==void 0&&e.frameReceivedTrigger!==null?fe.fromPartial(e.frameReceivedTrigger):void 0,n.signalValueTrigger=e.signalValueTrigger!==void 0&&e.signalValueTrigger!==null?ce.fromPartial(e.signalValueTrigger):void 0,n}};function Ei(){return{fileName:"",fileFormat:0,fileConflictAction:0,canMessageFilter:void 0,startTriggerSettings:[],startTriggersOperator:0,stopTriggerSettings:[],stopTriggersOperator:0,autoRestartAfterStop:!1,writeFileHeader:void 0,writeDataInHex:void 0,writeIdInHex:void 0,decimalSeparator:void 0,colSeparator:void 0,dataBytesConverterLimit:void 0,sizeLimit:void 0,timeLimit:void 0,numberOfTimeDecimals:void 0,timeReference:void 0,useCalendarTime:void 0,useUtcTime:void 0}}const Ne={encode(e,n=new d){e.fileName!==""&&n.uint32(10).string(e.fileName),e.fileFormat!==0&&n.uint32(16).int32(e.fileFormat),e.fileConflictAction!==0&&n.uint32(24).int32(e.fileConflictAction),e.canMessageFilter!==void 0&&U.encode(e.canMessageFilter,n.uint32(34).fork()).join();for(const i of e.startTriggerSettings)O.encode(i,n.uint32(42).fork()).join();e.startTriggersOperator!==0&&n.uint32(48).int32(e.startTriggersOperator);for(const i of e.stopTriggerSettings)O.encode(i,n.uint32(58).fork()).join();return e.stopTriggersOperator!==0&&n.uint32(64).int32(e.stopTriggersOperator),e.autoRestartAfterStop!==!1&&n.uint32(72).bool(e.autoRestartAfterStop),e.writeFileHeader!==void 0&&n.uint32(80).bool(e.writeFileHeader),e.writeDataInHex!==void 0&&n.uint32(88).bool(e.writeDataInHex),e.writeIdInHex!==void 0&&n.uint32(96).bool(e.writeIdInHex),e.decimalSeparator!==void 0&&n.uint32(104).int32(e.decimalSeparator),e.colSeparator!==void 0&&n.uint32(112).int32(e.colSeparator),e.dataBytesConverterLimit!==void 0&&n.uint32(120).int32(e.dataBytesConverterLimit),e.sizeLimit!==void 0&&n.uint32(128).int32(e.sizeLimit),e.timeLimit!==void 0&&n.uint32(136).int32(e.timeLimit),e.numberOfTimeDecimals!==void 0&&n.uint32(144).int32(e.numberOfTimeDecimals),e.timeReference!==void 0&&n.uint32(152).int32(e.timeReference),e.useCalendarTime!==void 0&&n.uint32(160).bool(e.useCalendarTime),e.useUtcTime!==void 0&&n.uint32(168).bool(e.useUtcTime),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ei();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.fileName=i.string();continue}case 2:{if(r!==16)break;t.fileFormat=i.int32();continue}case 3:{if(r!==24)break;t.fileConflictAction=i.int32();continue}case 4:{if(r!==34)break;t.canMessageFilter=U.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.startTriggerSettings.push(O.decode(i,i.uint32()));continue}case 6:{if(r!==48)break;t.startTriggersOperator=i.int32();continue}case 7:{if(r!==58)break;t.stopTriggerSettings.push(O.decode(i,i.uint32()));continue}case 8:{if(r!==64)break;t.stopTriggersOperator=i.int32();continue}case 9:{if(r!==72)break;t.autoRestartAfterStop=i.bool();continue}case 10:{if(r!==80)break;t.writeFileHeader=i.bool();continue}case 11:{if(r!==88)break;t.writeDataInHex=i.bool();continue}case 12:{if(r!==96)break;t.writeIdInHex=i.bool();continue}case 13:{if(r!==104)break;t.decimalSeparator=i.int32();continue}case 14:{if(r!==112)break;t.colSeparator=i.int32();continue}case 15:{if(r!==120)break;t.dataBytesConverterLimit=i.int32();continue}case 16:{if(r!==128)break;t.sizeLimit=i.int32();continue}case 17:{if(r!==136)break;t.timeLimit=i.int32();continue}case 18:{if(r!==144)break;t.numberOfTimeDecimals=i.int32();continue}case 19:{if(r!==152)break;t.timeReference=i.int32();continue}case 20:{if(r!==160)break;t.useCalendarTime=i.bool();continue}case 21:{if(r!==168)break;t.useUtcTime=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{fileName:u(e.fileName)?globalThis.String(e.fileName):"",fileFormat:u(e.fileFormat)?Je(e.fileFormat):0,fileConflictAction:u(e.fileConflictAction)?we(e.fileConflictAction):0,canMessageFilter:u(e.canMessageFilter)?U.fromJSON(e.canMessageFilter):void 0,startTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.startTriggerSettings)?e.startTriggerSettings.map(n=>O.fromJSON(n)):[],startTriggersOperator:u(e.startTriggersOperator)?Ie(e.startTriggersOperator):0,stopTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.stopTriggerSettings)?e.stopTriggerSettings.map(n=>O.fromJSON(n)):[],stopTriggersOperator:u(e.stopTriggersOperator)?Ie(e.stopTriggersOperator):0,autoRestartAfterStop:u(e.autoRestartAfterStop)?globalThis.Boolean(e.autoRestartAfterStop):!1,writeFileHeader:u(e.writeFileHeader)?globalThis.Boolean(e.writeFileHeader):void 0,writeDataInHex:u(e.writeDataInHex)?globalThis.Boolean(e.writeDataInHex):void 0,writeIdInHex:u(e.writeIdInHex)?globalThis.Boolean(e.writeIdInHex):void 0,decimalSeparator:u(e.decimalSeparator)?qe(e.decimalSeparator):void 0,colSeparator:u(e.colSeparator)?Xe(e.colSeparator):void 0,dataBytesConverterLimit:u(e.dataBytesConverterLimit)?globalThis.Number(e.dataBytesConverterLimit):void 0,sizeLimit:u(e.sizeLimit)?globalThis.Number(e.sizeLimit):void 0,timeLimit:u(e.timeLimit)?globalThis.Number(e.timeLimit):void 0,numberOfTimeDecimals:u(e.numberOfTimeDecimals)?globalThis.Number(e.numberOfTimeDecimals):void 0,timeReference:u(e.timeReference)?ze(e.timeReference):void 0,useCalendarTime:u(e.useCalendarTime)?globalThis.Boolean(e.useCalendarTime):void 0,useUtcTime:u(e.useUtcTime)?globalThis.Boolean(e.useUtcTime):void 0}},toJSON(e){var i,a;const n={};return e.fileName!==""&&(n.fileName=e.fileName),e.fileFormat!==0&&(n.fileFormat=be(e.fileFormat)),e.fileConflictAction!==0&&(n.fileConflictAction=He(e.fileConflictAction)),e.canMessageFilter!==void 0&&(n.canMessageFilter=U.toJSON(e.canMessageFilter)),(i=e.startTriggerSettings)!=null&&i.length&&(n.startTriggerSettings=e.startTriggerSettings.map(t=>O.toJSON(t))),e.startTriggersOperator!==0&&(n.startTriggersOperator=Pe(e.startTriggersOperator)),(a=e.stopTriggerSettings)!=null&&a.length&&(n.stopTriggerSettings=e.stopTriggerSettings.map(t=>O.toJSON(t))),e.stopTriggersOperator!==0&&(n.stopTriggersOperator=Pe(e.stopTriggersOperator)),e.autoRestartAfterStop!==!1&&(n.autoRestartAfterStop=e.autoRestartAfterStop),e.writeFileHeader!==void 0&&(n.writeFileHeader=e.writeFileHeader),e.writeDataInHex!==void 0&&(n.writeDataInHex=e.writeDataInHex),e.writeIdInHex!==void 0&&(n.writeIdInHex=e.writeIdInHex),e.decimalSeparator!==void 0&&(n.decimalSeparator=Ze(e.decimalSeparator)),e.colSeparator!==void 0&&(n.colSeparator=Qe(e.colSeparator)),e.dataBytesConverterLimit!==void 0&&(n.dataBytesConverterLimit=Math.round(e.dataBytesConverterLimit)),e.sizeLimit!==void 0&&(n.sizeLimit=Math.round(e.sizeLimit)),e.timeLimit!==void 0&&(n.timeLimit=Math.round(e.timeLimit)),e.numberOfTimeDecimals!==void 0&&(n.numberOfTimeDecimals=Math.round(e.numberOfTimeDecimals)),e.timeReference!==void 0&&(n.timeReference=Ke(e.timeReference)),e.useCalendarTime!==void 0&&(n.useCalendarTime=e.useCalendarTime),e.useUtcTime!==void 0&&(n.useUtcTime=e.useUtcTime),n},create(e){return Ne.fromPartial(e??{})},fromPartial(e){var i,a;const n=Ei();return n.fileName=e.fileName??"",n.fileFormat=e.fileFormat??0,n.fileConflictAction=e.fileConflictAction??0,n.canMessageFilter=e.canMessageFilter!==void 0&&e.canMessageFilter!==null?U.fromPartial(e.canMessageFilter):void 0,n.startTriggerSettings=((i=e.startTriggerSettings)==null?void 0:i.map(t=>O.fromPartial(t)))||[],n.startTriggersOperator=e.startTriggersOperator??0,n.stopTriggerSettings=((a=e.stopTriggerSettings)==null?void 0:a.map(t=>O.fromPartial(t)))||[],n.stopTriggersOperator=e.stopTriggersOperator??0,n.autoRestartAfterStop=e.autoRestartAfterStop??!1,n.writeFileHeader=e.writeFileHeader??void 0,n.writeDataInHex=e.writeDataInHex??void 0,n.writeIdInHex=e.writeIdInHex??void 0,n.decimalSeparator=e.decimalSeparator??void 0,n.colSeparator=e.colSeparator??void 0,n.dataBytesConverterLimit=e.dataBytesConverterLimit??void 0,n.sizeLimit=e.sizeLimit??void 0,n.timeLimit=e.timeLimit??void 0,n.numberOfTimeDecimals=e.numberOfTimeDecimals??void 0,n.timeReference=e.timeReference??void 0,n.useCalendarTime=e.useCalendarTime??void 0,n.useUtcTime=e.useUtcTime??void 0,n}};function mi(){return{fileName:"",fileFormat:0,fileConflictAction:0,signalFilter:void 0,startTriggerSettings:[],startTriggersOperator:0,stopTriggerSettings:[],stopTriggersOperator:0,autoRestartAfterStop:!1,writeFileHeader:void 0,writeDataInHex:void 0,writeIdInHex:void 0,decimalSeparator:void 0,colSeparator:void 0,dataBytesConverterLimit:void 0,sizeLimit:void 0,numberOfDataDecimals:void 0,timeLimit:void 0,numberOfTimeDecimals:void 0,timeReference:void 0,useCalendarTime:void 0,useUtcTime:void 0,useEnumValues:void 0,writeFullyQualifiedNames:void 0,writeCounter:void 0,writeUnitsOnOwnRow:void 0,writeOnlySignals:void 0}}const pe={encode(e,n=new d){e.fileName!==""&&n.uint32(10).string(e.fileName),e.fileFormat!==0&&n.uint32(16).int32(e.fileFormat),e.fileConflictAction!==0&&n.uint32(24).int32(e.fileConflictAction),e.signalFilter!==void 0&&se.encode(e.signalFilter,n.uint32(34).fork()).join();for(const i of e.startTriggerSettings)O.encode(i,n.uint32(42).fork()).join();e.startTriggersOperator!==0&&n.uint32(48).int32(e.startTriggersOperator);for(const i of e.stopTriggerSettings)O.encode(i,n.uint32(58).fork()).join();return e.stopTriggersOperator!==0&&n.uint32(64).int32(e.stopTriggersOperator),e.autoRestartAfterStop!==!1&&n.uint32(72).bool(e.autoRestartAfterStop),e.writeFileHeader!==void 0&&n.uint32(80).bool(e.writeFileHeader),e.writeDataInHex!==void 0&&n.uint32(88).bool(e.writeDataInHex),e.writeIdInHex!==void 0&&n.uint32(96).bool(e.writeIdInHex),e.decimalSeparator!==void 0&&n.uint32(104).int32(e.decimalSeparator),e.colSeparator!==void 0&&n.uint32(112).int32(e.colSeparator),e.dataBytesConverterLimit!==void 0&&n.uint32(120).int32(e.dataBytesConverterLimit),e.sizeLimit!==void 0&&n.uint32(128).int32(e.sizeLimit),e.numberOfDataDecimals!==void 0&&n.uint32(136).int32(e.numberOfDataDecimals),e.timeLimit!==void 0&&n.uint32(144).int32(e.timeLimit),e.numberOfTimeDecimals!==void 0&&n.uint32(152).int32(e.numberOfTimeDecimals),e.timeReference!==void 0&&n.uint32(160).int32(e.timeReference),e.useCalendarTime!==void 0&&n.uint32(168).bool(e.useCalendarTime),e.useUtcTime!==void 0&&n.uint32(176).bool(e.useUtcTime),e.useEnumValues!==void 0&&n.uint32(184).bool(e.useEnumValues),e.writeFullyQualifiedNames!==void 0&&n.uint32(192).bool(e.writeFullyQualifiedNames),e.writeCounter!==void 0&&n.uint32(200).bool(e.writeCounter),e.writeUnitsOnOwnRow!==void 0&&n.uint32(208).bool(e.writeUnitsOnOwnRow),e.writeOnlySignals!==void 0&&n.uint32(216).bool(e.writeOnlySignals),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=mi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.fileName=i.string();continue}case 2:{if(r!==16)break;t.fileFormat=i.int32();continue}case 3:{if(r!==24)break;t.fileConflictAction=i.int32();continue}case 4:{if(r!==34)break;t.signalFilter=se.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.startTriggerSettings.push(O.decode(i,i.uint32()));continue}case 6:{if(r!==48)break;t.startTriggersOperator=i.int32();continue}case 7:{if(r!==58)break;t.stopTriggerSettings.push(O.decode(i,i.uint32()));continue}case 8:{if(r!==64)break;t.stopTriggersOperator=i.int32();continue}case 9:{if(r!==72)break;t.autoRestartAfterStop=i.bool();continue}case 10:{if(r!==80)break;t.writeFileHeader=i.bool();continue}case 11:{if(r!==88)break;t.writeDataInHex=i.bool();continue}case 12:{if(r!==96)break;t.writeIdInHex=i.bool();continue}case 13:{if(r!==104)break;t.decimalSeparator=i.int32();continue}case 14:{if(r!==112)break;t.colSeparator=i.int32();continue}case 15:{if(r!==120)break;t.dataBytesConverterLimit=i.int32();continue}case 16:{if(r!==128)break;t.sizeLimit=i.int32();continue}case 17:{if(r!==136)break;t.numberOfDataDecimals=i.int32();continue}case 18:{if(r!==144)break;t.timeLimit=i.int32();continue}case 19:{if(r!==152)break;t.numberOfTimeDecimals=i.int32();continue}case 20:{if(r!==160)break;t.timeReference=i.int32();continue}case 21:{if(r!==168)break;t.useCalendarTime=i.bool();continue}case 22:{if(r!==176)break;t.useUtcTime=i.bool();continue}case 23:{if(r!==184)break;t.useEnumValues=i.bool();continue}case 24:{if(r!==192)break;t.writeFullyQualifiedNames=i.bool();continue}case 25:{if(r!==200)break;t.writeCounter=i.bool();continue}case 26:{if(r!==208)break;t.writeUnitsOnOwnRow=i.bool();continue}case 27:{if(r!==216)break;t.writeOnlySignals=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{fileName:u(e.fileName)?globalThis.String(e.fileName):"",fileFormat:u(e.fileFormat)?Je(e.fileFormat):0,fileConflictAction:u(e.fileConflictAction)?we(e.fileConflictAction):0,signalFilter:u(e.signalFilter)?se.fromJSON(e.signalFilter):void 0,startTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.startTriggerSettings)?e.startTriggerSettings.map(n=>O.fromJSON(n)):[],startTriggersOperator:u(e.startTriggersOperator)?Ie(e.startTriggersOperator):0,stopTriggerSettings:globalThis.Array.isArray(e==null?void 0:e.stopTriggerSettings)?e.stopTriggerSettings.map(n=>O.fromJSON(n)):[],stopTriggersOperator:u(e.stopTriggersOperator)?Ie(e.stopTriggersOperator):0,autoRestartAfterStop:u(e.autoRestartAfterStop)?globalThis.Boolean(e.autoRestartAfterStop):!1,writeFileHeader:u(e.writeFileHeader)?globalThis.Boolean(e.writeFileHeader):void 0,writeDataInHex:u(e.writeDataInHex)?globalThis.Boolean(e.writeDataInHex):void 0,writeIdInHex:u(e.writeIdInHex)?globalThis.Boolean(e.writeIdInHex):void 0,decimalSeparator:u(e.decimalSeparator)?qe(e.decimalSeparator):void 0,colSeparator:u(e.colSeparator)?Xe(e.colSeparator):void 0,dataBytesConverterLimit:u(e.dataBytesConverterLimit)?globalThis.Number(e.dataBytesConverterLimit):void 0,sizeLimit:u(e.sizeLimit)?globalThis.Number(e.sizeLimit):void 0,numberOfDataDecimals:u(e.numberOfDataDecimals)?globalThis.Number(e.numberOfDataDecimals):void 0,timeLimit:u(e.timeLimit)?globalThis.Number(e.timeLimit):void 0,numberOfTimeDecimals:u(e.numberOfTimeDecimals)?globalThis.Number(e.numberOfTimeDecimals):void 0,timeReference:u(e.timeReference)?ze(e.timeReference):void 0,useCalendarTime:u(e.useCalendarTime)?globalThis.Boolean(e.useCalendarTime):void 0,useUtcTime:u(e.useUtcTime)?globalThis.Boolean(e.useUtcTime):void 0,useEnumValues:u(e.useEnumValues)?globalThis.Boolean(e.useEnumValues):void 0,writeFullyQualifiedNames:u(e.writeFullyQualifiedNames)?globalThis.Boolean(e.writeFullyQualifiedNames):void 0,writeCounter:u(e.writeCounter)?globalThis.Boolean(e.writeCounter):void 0,writeUnitsOnOwnRow:u(e.writeUnitsOnOwnRow)?globalThis.Boolean(e.writeUnitsOnOwnRow):void 0,writeOnlySignals:u(e.writeOnlySignals)?globalThis.Boolean(e.writeOnlySignals):void 0}},toJSON(e){var i,a;const n={};return e.fileName!==""&&(n.fileName=e.fileName),e.fileFormat!==0&&(n.fileFormat=be(e.fileFormat)),e.fileConflictAction!==0&&(n.fileConflictAction=He(e.fileConflictAction)),e.signalFilter!==void 0&&(n.signalFilter=se.toJSON(e.signalFilter)),(i=e.startTriggerSettings)!=null&&i.length&&(n.startTriggerSettings=e.startTriggerSettings.map(t=>O.toJSON(t))),e.startTriggersOperator!==0&&(n.startTriggersOperator=Pe(e.startTriggersOperator)),(a=e.stopTriggerSettings)!=null&&a.length&&(n.stopTriggerSettings=e.stopTriggerSettings.map(t=>O.toJSON(t))),e.stopTriggersOperator!==0&&(n.stopTriggersOperator=Pe(e.stopTriggersOperator)),e.autoRestartAfterStop!==!1&&(n.autoRestartAfterStop=e.autoRestartAfterStop),e.writeFileHeader!==void 0&&(n.writeFileHeader=e.writeFileHeader),e.writeDataInHex!==void 0&&(n.writeDataInHex=e.writeDataInHex),e.writeIdInHex!==void 0&&(n.writeIdInHex=e.writeIdInHex),e.decimalSeparator!==void 0&&(n.decimalSeparator=Ze(e.decimalSeparator)),e.colSeparator!==void 0&&(n.colSeparator=Qe(e.colSeparator)),e.dataBytesConverterLimit!==void 0&&(n.dataBytesConverterLimit=Math.round(e.dataBytesConverterLimit)),e.sizeLimit!==void 0&&(n.sizeLimit=Math.round(e.sizeLimit)),e.numberOfDataDecimals!==void 0&&(n.numberOfDataDecimals=Math.round(e.numberOfDataDecimals)),e.timeLimit!==void 0&&(n.timeLimit=Math.round(e.timeLimit)),e.numberOfTimeDecimals!==void 0&&(n.numberOfTimeDecimals=Math.round(e.numberOfTimeDecimals)),e.timeReference!==void 0&&(n.timeReference=Ke(e.timeReference)),e.useCalendarTime!==void 0&&(n.useCalendarTime=e.useCalendarTime),e.useUtcTime!==void 0&&(n.useUtcTime=e.useUtcTime),e.useEnumValues!==void 0&&(n.useEnumValues=e.useEnumValues),e.writeFullyQualifiedNames!==void 0&&(n.writeFullyQualifiedNames=e.writeFullyQualifiedNames),e.writeCounter!==void 0&&(n.writeCounter=e.writeCounter),e.writeUnitsOnOwnRow!==void 0&&(n.writeUnitsOnOwnRow=e.writeUnitsOnOwnRow),e.writeOnlySignals!==void 0&&(n.writeOnlySignals=e.writeOnlySignals),n},create(e){return pe.fromPartial(e??{})},fromPartial(e){var i,a;const n=mi();return n.fileName=e.fileName??"",n.fileFormat=e.fileFormat??0,n.fileConflictAction=e.fileConflictAction??0,n.signalFilter=e.signalFilter!==void 0&&e.signalFilter!==null?se.fromPartial(e.signalFilter):void 0,n.startTriggerSettings=((i=e.startTriggerSettings)==null?void 0:i.map(t=>O.fromPartial(t)))||[],n.startTriggersOperator=e.startTriggersOperator??0,n.stopTriggerSettings=((a=e.stopTriggerSettings)==null?void 0:a.map(t=>O.fromPartial(t)))||[],n.stopTriggersOperator=e.stopTriggersOperator??0,n.autoRestartAfterStop=e.autoRestartAfterStop??!1,n.writeFileHeader=e.writeFileHeader??void 0,n.writeDataInHex=e.writeDataInHex??void 0,n.writeIdInHex=e.writeIdInHex??void 0,n.decimalSeparator=e.decimalSeparator??void 0,n.colSeparator=e.colSeparator??void 0,n.dataBytesConverterLimit=e.dataBytesConverterLimit??void 0,n.sizeLimit=e.sizeLimit??void 0,n.numberOfDataDecimals=e.numberOfDataDecimals??void 0,n.timeLimit=e.timeLimit??void 0,n.numberOfTimeDecimals=e.numberOfTimeDecimals??void 0,n.timeReference=e.timeReference??void 0,n.useCalendarTime=e.useCalendarTime??void 0,n.useUtcTime=e.useUtcTime??void 0,n.useEnumValues=e.useEnumValues??void 0,n.writeFullyQualifiedNames=e.writeFullyQualifiedNames??void 0,n.writeCounter=e.writeCounter??void 0,n.writeUnitsOnOwnRow=e.writeUnitsOnOwnRow??void 0,n.writeOnlySignals=e.writeOnlySignals??void 0,n}};function Ai(){return{identifier:"",name:"",description:[],readOnlyProperties:!1,readOnlyConnections:!1,disabled:!1}}const C={encode(e,n=new d){e.identifier!==""&&n.uint32(10).string(e.identifier),e.name!==""&&n.uint32(18).string(e.name);for(const i of e.description)n.uint32(26).string(i);return e.readOnlyProperties!==!1&&n.uint32(32).bool(e.readOnlyProperties),e.readOnlyConnections!==!1&&n.uint32(40).bool(e.readOnlyConnections),e.disabled!==!1&&n.uint32(48).bool(e.disabled),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ai();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.identifier=i.string();continue}case 2:{if(r!==18)break;t.name=i.string();continue}case 3:{if(r!==26)break;t.description.push(i.string());continue}case 4:{if(r!==32)break;t.readOnlyProperties=i.bool();continue}case 5:{if(r!==40)break;t.readOnlyConnections=i.bool();continue}case 6:{if(r!==48)break;t.disabled=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{identifier:u(e.identifier)?globalThis.String(e.identifier):"",name:u(e.name)?globalThis.String(e.name):"",description:globalThis.Array.isArray(e==null?void 0:e.description)?e.description.map(n=>globalThis.String(n)):[],readOnlyProperties:u(e.readOnlyProperties)?globalThis.Boolean(e.readOnlyProperties):!1,readOnlyConnections:u(e.readOnlyConnections)?globalThis.Boolean(e.readOnlyConnections):!1,disabled:u(e.disabled)?globalThis.Boolean(e.disabled):!1}},toJSON(e){var i;const n={};return e.identifier!==""&&(n.identifier=e.identifier),e.name!==""&&(n.name=e.name),(i=e.description)!=null&&i.length&&(n.description=e.description),e.readOnlyProperties!==!1&&(n.readOnlyProperties=e.readOnlyProperties),e.readOnlyConnections!==!1&&(n.readOnlyConnections=e.readOnlyConnections),e.disabled!==!1&&(n.disabled=e.disabled),n},create(e){return C.fromPartial(e??{})},fromPartial(e){var i;const n=Ai();return n.identifier=e.identifier??"",n.name=e.name??"",n.description=((i=e.description)==null?void 0:i.map(a=>a))||[],n.readOnlyProperties=e.readOnlyProperties??!1,n.readOnlyConnections=e.readOnlyConnections??!1,n.disabled=e.disabled??!1,n}};function Oi(){return{baseNode:void 0,isDataGenerator:!1,channelSettings:void 0,logReplaySettings:void 0,trafficGeneratorSettings:void 0}}const F={encode(e,n=new d){return e.baseNode!==void 0&&C.encode(e.baseNode,n.uint32(10).fork()).join(),e.isDataGenerator!==!1&&n.uint32(16).bool(e.isDataGenerator),e.channelSettings!==void 0&&ae.encode(e.channelSettings,n.uint32(26).fork()).join(),e.logReplaySettings!==void 0&&oe.encode(e.logReplaySettings,n.uint32(34).fork()).join(),e.trafficGeneratorSettings!==void 0&&P.encode(e.trafficGeneratorSettings,n.uint32(42).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Oi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=C.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.isDataGenerator=i.bool();continue}case 3:{if(r!==26)break;t.channelSettings=ae.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.logReplaySettings=oe.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.trafficGeneratorSettings=P.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?C.fromJSON(e.baseNode):void 0,isDataGenerator:u(e.isDataGenerator)?globalThis.Boolean(e.isDataGenerator):!1,channelSettings:u(e.channelSettings)?ae.fromJSON(e.channelSettings):void 0,logReplaySettings:u(e.logReplaySettings)?oe.fromJSON(e.logReplaySettings):void 0,trafficGeneratorSettings:u(e.trafficGeneratorSettings)?P.fromJSON(e.trafficGeneratorSettings):void 0}},toJSON(e){const n={};return e.baseNode!==void 0&&(n.baseNode=C.toJSON(e.baseNode)),e.isDataGenerator!==!1&&(n.isDataGenerator=e.isDataGenerator),e.channelSettings!==void 0&&(n.channelSettings=ae.toJSON(e.channelSettings)),e.logReplaySettings!==void 0&&(n.logReplaySettings=oe.toJSON(e.logReplaySettings)),e.trafficGeneratorSettings!==void 0&&(n.trafficGeneratorSettings=P.toJSON(e.trafficGeneratorSettings)),n},create(e){return F.fromPartial(e??{})},fromPartial(e){const n=Oi();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?C.fromPartial(e.baseNode):void 0,n.isDataGenerator=e.isDataGenerator??!1,n.channelSettings=e.channelSettings!==void 0&&e.channelSettings!==null?ae.fromPartial(e.channelSettings):void 0,n.logReplaySettings=e.logReplaySettings!==void 0&&e.logReplaySettings!==null?oe.fromPartial(e.logReplaySettings):void 0,n.trafficGeneratorSettings=e.trafficGeneratorSettings!==void 0&&e.trafficGeneratorSettings!==null?P.fromPartial(e.trafficGeneratorSettings):void 0,n}};function vi(){return{baseNode:void 0,connectedNodes:[],canMessageFilterSettings:void 0,databasesSettings:void 0,interpreterSettings:void 0,extensionSettings:void 0}}const L={encode(e,n=new d){e.baseNode!==void 0&&C.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.canMessageFilterSettings!==void 0&&U.encode(e.canMessageFilterSettings,n.uint32(26).fork()).join(),e.databasesSettings!==void 0&&ue.encode(e.databasesSettings,n.uint32(34).fork()).join(),e.interpreterSettings!==void 0&&de.encode(e.interpreterSettings,n.uint32(42).fork()).join(),e.extensionSettings!==void 0&&w.encode(e.extensionSettings,n.uint32(50).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=vi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=C.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.connectedNodes.push(i.string());continue}case 3:{if(r!==26)break;t.canMessageFilterSettings=U.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.databasesSettings=ue.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.interpreterSettings=de.decode(i,i.uint32());continue}case 6:{if(r!==50)break;t.extensionSettings=w.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?C.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],canMessageFilterSettings:u(e.canMessageFilterSettings)?U.fromJSON(e.canMessageFilterSettings):void 0,databasesSettings:u(e.databasesSettings)?ue.fromJSON(e.databasesSettings):void 0,interpreterSettings:u(e.interpreterSettings)?de.fromJSON(e.interpreterSettings):void 0,extensionSettings:u(e.extensionSettings)?w.fromJSON(e.extensionSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=C.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.canMessageFilterSettings!==void 0&&(n.canMessageFilterSettings=U.toJSON(e.canMessageFilterSettings)),e.databasesSettings!==void 0&&(n.databasesSettings=ue.toJSON(e.databasesSettings)),e.interpreterSettings!==void 0&&(n.interpreterSettings=de.toJSON(e.interpreterSettings)),e.extensionSettings!==void 0&&(n.extensionSettings=w.toJSON(e.extensionSettings)),n},create(e){return L.fromPartial(e??{})},fromPartial(e){var i;const n=vi();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?C.fromPartial(e.baseNode):void 0,n.connectedNodes=((i=e.connectedNodes)==null?void 0:i.map(a=>a))||[],n.canMessageFilterSettings=e.canMessageFilterSettings!==void 0&&e.canMessageFilterSettings!==null?U.fromPartial(e.canMessageFilterSettings):void 0,n.databasesSettings=e.databasesSettings!==void 0&&e.databasesSettings!==null?ue.fromPartial(e.databasesSettings):void 0,n.interpreterSettings=e.interpreterSettings!==void 0&&e.interpreterSettings!==null?de.fromPartial(e.interpreterSettings):void 0,n.extensionSettings=e.extensionSettings!==void 0&&e.extensionSettings!==null?w.fromPartial(e.extensionSettings):void 0,n}};function Ti(){return{baseNode:void 0,connectedNodes:[],messageLoggerSettings:void 0,signalLoggerSettings:void 0,extensionSettings:void 0}}const g={encode(e,n=new d){e.baseNode!==void 0&&C.encode(e.baseNode,n.uint32(10).fork()).join();for(const i of e.connectedNodes)n.uint32(18).string(i);return e.messageLoggerSettings!==void 0&&Ne.encode(e.messageLoggerSettings,n.uint32(26).fork()).join(),e.signalLoggerSettings!==void 0&&pe.encode(e.signalLoggerSettings,n.uint32(34).fork()).join(),e.extensionSettings!==void 0&&w.encode(e.extensionSettings,n.uint32(42).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ti();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.baseNode=C.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.connectedNodes.push(i.string());continue}case 3:{if(r!==26)break;t.messageLoggerSettings=Ne.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.signalLoggerSettings=pe.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.extensionSettings=w.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{baseNode:u(e.baseNode)?C.fromJSON(e.baseNode):void 0,connectedNodes:globalThis.Array.isArray(e==null?void 0:e.connectedNodes)?e.connectedNodes.map(n=>globalThis.String(n)):[],messageLoggerSettings:u(e.messageLoggerSettings)?Ne.fromJSON(e.messageLoggerSettings):void 0,signalLoggerSettings:u(e.signalLoggerSettings)?pe.fromJSON(e.signalLoggerSettings):void 0,extensionSettings:u(e.extensionSettings)?w.fromJSON(e.extensionSettings):void 0}},toJSON(e){var i;const n={};return e.baseNode!==void 0&&(n.baseNode=C.toJSON(e.baseNode)),(i=e.connectedNodes)!=null&&i.length&&(n.connectedNodes=e.connectedNodes),e.messageLoggerSettings!==void 0&&(n.messageLoggerSettings=Ne.toJSON(e.messageLoggerSettings)),e.signalLoggerSettings!==void 0&&(n.signalLoggerSettings=pe.toJSON(e.signalLoggerSettings)),e.extensionSettings!==void 0&&(n.extensionSettings=w.toJSON(e.extensionSettings)),n},create(e){return g.fromPartial(e??{})},fromPartial(e){var i;const n=Ti();return n.baseNode=e.baseNode!==void 0&&e.baseNode!==null?C.fromPartial(e.baseNode):void 0,n.connectedNodes=((i=e.connectedNodes)==null?void 0:i.map(a=>a))||[],n.messageLoggerSettings=e.messageLoggerSettings!==void 0&&e.messageLoggerSettings!==null?Ne.fromPartial(e.messageLoggerSettings):void 0,n.signalLoggerSettings=e.signalLoggerSettings!==void 0&&e.signalLoggerSettings!==null?pe.fromPartial(e.signalLoggerSettings):void 0,n.extensionSettings=e.extensionSettings!==void 0&&e.extensionSettings!==null?w.fromPartial(e.extensionSettings):void 0,n}};function Ri(){return{sources:[],dataProcessors:[],targets:[],language:""}}const H={encode(e,n=new d){for(const i of e.sources)F.encode(i,n.uint32(10).fork()).join();for(const i of e.dataProcessors)L.encode(i,n.uint32(18).fork()).join();for(const i of e.targets)g.encode(i,n.uint32(26).fork()).join();return e.language!==""&&n.uint32(34).string(e.language),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ri();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.sources.push(F.decode(i,i.uint32()));continue}case 2:{if(r!==18)break;t.dataProcessors.push(L.decode(i,i.uint32()));continue}case 3:{if(r!==26)break;t.targets.push(g.decode(i,i.uint32()));continue}case 4:{if(r!==34)break;t.language=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{sources:globalThis.Array.isArray(e==null?void 0:e.sources)?e.sources.map(n=>F.fromJSON(n)):[],dataProcessors:globalThis.Array.isArray(e==null?void 0:e.dataProcessors)?e.dataProcessors.map(n=>L.fromJSON(n)):[],targets:globalThis.Array.isArray(e==null?void 0:e.targets)?e.targets.map(n=>g.fromJSON(n)):[],language:u(e.language)?globalThis.String(e.language):""}},toJSON(e){var i,a,t;const n={};return(i=e.sources)!=null&&i.length&&(n.sources=e.sources.map(r=>F.toJSON(r))),(a=e.dataProcessors)!=null&&a.length&&(n.dataProcessors=e.dataProcessors.map(r=>L.toJSON(r))),(t=e.targets)!=null&&t.length&&(n.targets=e.targets.map(r=>g.toJSON(r))),e.language!==""&&(n.language=e.language),n},create(e){return H.fromPartial(e??{})},fromPartial(e){var i,a,t;const n=Ri();return n.sources=((i=e.sources)==null?void 0:i.map(r=>F.fromPartial(r)))||[],n.dataProcessors=((a=e.dataProcessors)==null?void 0:a.map(r=>L.fromPartial(r)))||[],n.targets=((t=e.targets)==null?void 0:t.map(r=>g.fromPartial(r)))||[],n.language=e.language??"",n}};function Ha(e){return typeof e=="object"&&e!==null}function u(e){return e!=null}var xt=(e=>(e[e.MEASUREMENT_EVENT_UNSPECIFIED=0]="MEASUREMENT_EVENT_UNSPECIFIED",e[e.MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED=1]="MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED",e[e.MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED=2]="MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED",e[e.MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED=3]="MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED",e[e.MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED=4]="MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(xt||{});function Jt(e){switch(e){case 0:case"MEASUREMENT_EVENT_UNSPECIFIED":return 0;case 1:case"MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED":return 1;case 2:case"MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED":return 2;case 3:case"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED":return 3;case 4:case"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED":return 4;case-1:case"UNRECOGNIZED":default:return-1}}function bt(e){switch(e){case 0:return"MEASUREMENT_EVENT_UNSPECIFIED";case 1:return"MEASUREMENT_EVENT_MEASUREMENT_SETUP_CHANGED";case 2:return"MEASUREMENT_EVENT_ONLINE_STATUS_CHANGED";case 3:return"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STARTED";case 4:return"MEASUREMENT_EVENT_PERIODIC_TRANSMISSION_STOPPED";case-1:default:return"UNRECOGNIZED"}}function hi(){return{preferences:void 0,setup:void 0}}const yt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.setup!==void 0&&H.encode(e.setup,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=hi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.setup=H.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,setup:f(e.setup)?H.fromJSON(e.setup):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.setup!==void 0&&(n.setup=H.toJSON(e.setup)),n},create(e){return yt.fromPartial(e??{})},fromPartial(e){const n=hi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.setup=e.setup!==void 0&&e.setup!==null?H.fromPartial(e.setup):void 0,n}};function Ii(){return{preferences:void 0,configuration:void 0}}const Vt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&V.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ii();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.configuration=V.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,configuration:f(e.configuration)?V.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=V.toJSON(e.configuration)),n},create(e){return Vt.fromPartial(e??{})},fromPartial(e){const n=Ii();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?V.fromPartial(e.configuration):void 0,n}};function Pi(){return{preferences:void 0,configuration:void 0}}const Bt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.configuration!==void 0&&B.encode(e.configuration,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Pi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.configuration=B.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,configuration:f(e.configuration)?B.fromJSON(e.configuration):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.configuration!==void 0&&(n.configuration=B.toJSON(e.configuration)),n},create(e){return Bt.fromPartial(e??{})},fromPartial(e){const n=Pi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.configuration=e.configuration!==void 0&&e.configuration!==null?B.fromPartial(e.configuration):void 0,n}};function Ci(){return{preferences:void 0,source:void 0,replaceAllProperties:!1}}const Ut={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.source!==void 0&&F.encode(e.source,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ci();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.source=F.decode(i,i.uint32());continue}case 3:{if(r!==24)break;t.replaceAllProperties=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,source:f(e.source)?F.fromJSON(e.source):void 0,replaceAllProperties:f(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.source!==void 0&&(n.source=F.toJSON(e.source)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return Ut.fromPartial(e??{})},fromPartial(e){const n=Ci();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.source=e.source!==void 0&&e.source!==null?F.fromPartial(e.source):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function Fi(){return{source:void 0}}const wt={encode(e,n=new d){return e.source!==void 0&&F.encode(e.source,n.uint32(10).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Fi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.source=F.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{source:f(e.source)?F.fromJSON(e.source):void 0}},toJSON(e){const n={};return e.source!==void 0&&(n.source=F.toJSON(e.source)),n},create(e){return wt.fromPartial(e??{})},fromPartial(e){const n=Fi();return n.source=e.source!==void 0&&e.source!==null?F.fromPartial(e.source):void 0,n}};function Li(){return{preferences:void 0,dataProcessor:void 0,previousNode:"",nextNode:"",replaceAllProperties:!1}}const Ht={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.dataProcessor!==void 0&&L.encode(e.dataProcessor,n.uint32(18).fork()).join(),e.previousNode!==""&&n.uint32(26).string(e.previousNode),e.nextNode!==""&&n.uint32(34).string(e.nextNode),e.replaceAllProperties!==!1&&n.uint32(40).bool(e.replaceAllProperties),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Li();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.dataProcessor=L.decode(i,i.uint32());continue}case 3:{if(r!==26)break;t.previousNode=i.string();continue}case 4:{if(r!==34)break;t.nextNode=i.string();continue}case 5:{if(r!==40)break;t.replaceAllProperties=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,dataProcessor:f(e.dataProcessor)?L.fromJSON(e.dataProcessor):void 0,previousNode:f(e.previousNode)?globalThis.String(e.previousNode):"",nextNode:f(e.nextNode)?globalThis.String(e.nextNode):"",replaceAllProperties:f(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.dataProcessor!==void 0&&(n.dataProcessor=L.toJSON(e.dataProcessor)),e.previousNode!==""&&(n.previousNode=e.previousNode),e.nextNode!==""&&(n.nextNode=e.nextNode),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return Ht.fromPartial(e??{})},fromPartial(e){const n=Li();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?L.fromPartial(e.dataProcessor):void 0,n.previousNode=e.previousNode??"",n.nextNode=e.nextNode??"",n.replaceAllProperties=e.replaceAllProperties??!1,n}};function gi(){return{dataProcessor:void 0}}const qt={encode(e,n=new d){return e.dataProcessor!==void 0&&L.encode(e.dataProcessor,n.uint32(10).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=gi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.dataProcessor=L.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{dataProcessor:f(e.dataProcessor)?L.fromJSON(e.dataProcessor):void 0}},toJSON(e){const n={};return e.dataProcessor!==void 0&&(n.dataProcessor=L.toJSON(e.dataProcessor)),n},create(e){return qt.fromPartial(e??{})},fromPartial(e){const n=gi();return n.dataProcessor=e.dataProcessor!==void 0&&e.dataProcessor!==null?L.fromPartial(e.dataProcessor):void 0,n}};function Mi(){return{preferences:void 0,target:void 0,replaceAllProperties:!1}}const Zt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.target!==void 0&&g.encode(e.target,n.uint32(18).fork()).join(),e.replaceAllProperties!==!1&&n.uint32(24).bool(e.replaceAllProperties),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Mi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.target=g.decode(i,i.uint32());continue}case 3:{if(r!==24)break;t.replaceAllProperties=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,target:f(e.target)?g.fromJSON(e.target):void 0,replaceAllProperties:f(e.replaceAllProperties)?globalThis.Boolean(e.replaceAllProperties):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.target!==void 0&&(n.target=g.toJSON(e.target)),e.replaceAllProperties!==!1&&(n.replaceAllProperties=e.replaceAllProperties),n},create(e){return Zt.fromPartial(e??{})},fromPartial(e){const n=Mi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.target=e.target!==void 0&&e.target!==null?g.fromPartial(e.target):void 0,n.replaceAllProperties=e.replaceAllProperties??!1,n}};function ki(){return{target:void 0}}const Xt={encode(e,n=new d){return e.target!==void 0&&g.encode(e.target,n.uint32(10).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ki();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.target=g.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{target:f(e.target)?g.fromJSON(e.target):void 0}},toJSON(e){const n={};return e.target!==void 0&&(n.target=g.toJSON(e.target)),n},create(e){return Xt.fromPartial(e??{})},fromPartial(e){const n=ki();return n.target=e.target!==void 0&&e.target!==null?g.fromPartial(e.target):void 0,n}};function Gi(){return{preferences:void 0,startNode:"",endNode:""}}const Qt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Gi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.startNode=i.string();continue}case 3:{if(r!==26)break;t.endNode=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,startNode:f(e.startNode)?globalThis.String(e.startNode):"",endNode:f(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return Qt.fromPartial(e??{})},fromPartial(e){const n=Gi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function Di(){return{preferences:void 0,startNode:"",endNode:""}}const zt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.startNode!==""&&n.uint32(18).string(e.startNode),e.endNode!==""&&n.uint32(26).string(e.endNode),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Di();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.startNode=i.string();continue}case 3:{if(r!==26)break;t.endNode=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,startNode:f(e.startNode)?globalThis.String(e.startNode):"",endNode:f(e.endNode)?globalThis.String(e.endNode):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.startNode!==""&&(n.startNode=e.startNode),e.endNode!==""&&(n.endNode=e.endNode),n},create(e){return zt.fromPartial(e??{})},fromPartial(e){const n=Di();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.startNode=e.startNode??"",n.endNode=e.endNode??"",n}};function xi(){return{preferences:void 0,identifier:""}}const Kt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.identifier!==""&&n.uint32(18).string(e.identifier),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=xi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.identifier=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,identifier:f(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return Kt.fromPartial(e??{})},fromPartial(e){const n=xi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.identifier=e.identifier??"",n}};function Ji(){return{preferences:void 0,identifiers:[]}}const Yt={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join();for(const i of e.identifiers)n.uint32(18).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ji();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.identifiers.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,identifiers:globalThis.Array.isArray(e==null?void 0:e.identifiers)?e.identifiers.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),(i=e.identifiers)!=null&&i.length&&(n.identifiers=e.identifiers),n},create(e){return Yt.fromPartial(e??{})},fromPartial(e){var i;const n=Ji();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.identifiers=((i=e.identifiers)==null?void 0:i.map(a=>a))||[],n}};function bi(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const Wt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&R.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=bi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.channelIdentifier=i.string();continue}case 3:{if(r!==26)break;t.frame=R.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:f(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:f(e.frame)?R.fromJSON(e.frame):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=R.toJSON(e.frame)),n},create(e){return Wt.fromPartial(e??{})},fromPartial(e){const n=bi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?R.fromPartial(e.frame):void 0,n}};function yi(){return{preferences:void 0,channelIdentifier:"",frames:[]}}const $t={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier);for(const i of e.frames)R.encode(i,n.uint32(26).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=yi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.channelIdentifier=i.string();continue}case 3:{if(r!==26)break;t.frames.push(R.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:f(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frames:globalThis.Array.isArray(e==null?void 0:e.frames)?e.frames.map(n=>R.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),(i=e.frames)!=null&&i.length&&(n.frames=e.frames.map(a=>R.toJSON(a))),n},create(e){return $t.fromPartial(e??{})},fromPartial(e){var i;const n=yi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frames=((i=e.frames)==null?void 0:i.map(a=>R.fromPartial(a)))||[],n}};function Vi(){return{preferences:void 0,channelIdentifier:"",count:0,interval:0}}const jt={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.count!==0&&n.uint32(24).int32(e.count),e.interval!==0&&n.uint32(32).int32(e.interval),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Vi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.channelIdentifier=i.string();continue}case 3:{if(r!==24)break;t.count=i.int32();continue}case 4:{if(r!==32)break;t.interval=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:f(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",count:f(e.count)?globalThis.Number(e.count):0,interval:f(e.interval)?globalThis.Number(e.interval):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.count!==0&&(n.count=Math.round(e.count)),e.interval!==0&&(n.interval=Math.round(e.interval)),n},create(e){return jt.fromPartial(e??{})},fromPartial(e){const n=Vi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.count=e.count??0,n.interval=e.interval??0,n}};function Bi(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const ea={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Bi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.channelIdentifier=i.string();continue}case 3:{if(r!==24)break;t.frameId=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:f(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:f(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return ea.fromPartial(e??{})},fromPartial(e){const n=Bi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function Ui(){return{preferences:void 0,channelIdentifier:"",frame:void 0}}const na={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frame!==void 0&&R.encode(e.frame,n.uint32(26).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ui();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.channelIdentifier=i.string();continue}case 3:{if(r!==26)break;t.frame=R.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:f(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frame:f(e.frame)?R.fromJSON(e.frame):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frame!==void 0&&(n.frame=R.toJSON(e.frame)),n},create(e){return na.fromPartial(e??{})},fromPartial(e){const n=Ui();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frame=e.frame!==void 0&&e.frame!==null?R.fromPartial(e.frame):void 0,n}};function wi(){return{preferences:void 0,channelIdentifier:"",frameId:0}}const ia={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.channelIdentifier!==""&&n.uint32(18).string(e.channelIdentifier),e.frameId!==0&&n.uint32(24).int32(e.frameId),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=wi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.channelIdentifier=i.string();continue}case 3:{if(r!==24)break;t.frameId=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,channelIdentifier:f(e.channelIdentifier)?globalThis.String(e.channelIdentifier):"",frameId:f(e.frameId)?globalThis.Number(e.frameId):0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.channelIdentifier!==""&&(n.channelIdentifier=e.channelIdentifier),e.frameId!==0&&(n.frameId=Math.round(e.frameId)),n},create(e){return ia.fromPartial(e??{})},fromPartial(e){const n=wi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.channelIdentifier=e.channelIdentifier??"",n.frameId=e.frameId??0,n}};function Hi(){return{preferences:void 0,settings:void 0}}const ra={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&P.encode(e.settings,n.uint32(18).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Hi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.settings=P.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,settings:f(e.settings)?P.fromJSON(e.settings):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=P.toJSON(e.settings)),n},create(e){return ra.fromPartial(e??{})},fromPartial(e){const n=Hi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?P.fromPartial(e.settings):void 0,n}};function qi(){return{preferences:void 0,settings:void 0,identifier:""}}const ta={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.settings!==void 0&&P.encode(e.settings,n.uint32(18).fork()).join(),e.identifier!==""&&n.uint32(26).string(e.identifier),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=qi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.settings=P.decode(i,i.uint32());continue}case 3:{if(r!==26)break;t.identifier=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,settings:f(e.settings)?P.fromJSON(e.settings):void 0,identifier:f(e.identifier)?globalThis.String(e.identifier):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.settings!==void 0&&(n.settings=P.toJSON(e.settings)),e.identifier!==""&&(n.identifier=e.identifier),n},create(e){return ta.fromPartial(e??{})},fromPartial(e){const n=qi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.settings=e.settings!==void 0&&e.settings!==null?P.fromPartial(e.settings):void 0,n.identifier=e.identifier??"",n}};function Zi(){return{periodicTransmissionIdentifier:""}}const aa={encode(e,n=new d){return e.periodicTransmissionIdentifier!==""&&n.uint32(10).string(e.periodicTransmissionIdentifier),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Zi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.periodicTransmissionIdentifier=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{periodicTransmissionIdentifier:f(e.periodicTransmissionIdentifier)?globalThis.String(e.periodicTransmissionIdentifier):""}},toJSON(e){const n={};return e.periodicTransmissionIdentifier!==""&&(n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier),n},create(e){return aa.fromPartial(e??{})},fromPartial(e){const n=Zi();return n.periodicTransmissionIdentifier=e.periodicTransmissionIdentifier??"",n}};function Xi(){return{isOnline:!1,onlineCounter:0}}const Se={encode(e,n=new d){return e.isOnline!==!1&&n.uint32(8).bool(e.isOnline),e.onlineCounter!==0&&n.uint32(16).uint32(e.onlineCounter),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Xi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.isOnline=i.bool();continue}case 2:{if(r!==16)break;t.onlineCounter=i.uint32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{isOnline:f(e.isOnline)?globalThis.Boolean(e.isOnline):!1,onlineCounter:f(e.onlineCounter)?globalThis.Number(e.onlineCounter):0}},toJSON(e){const n={};return e.isOnline!==!1&&(n.isOnline=e.isOnline),e.onlineCounter!==0&&(n.onlineCounter=Math.round(e.onlineCounter)),n},create(e){return Se.fromPartial(e??{})},fromPartial(e){const n=Xi();return n.isOnline=e.isOnline??!1,n.onlineCounter=e.onlineCounter??0,n}};function Qi(){return{eventType:0,identifier:void 0,measurementSetup:void 0,onlineStatus:void 0}}const oa={encode(e,n=new d){return e.eventType!==0&&n.uint32(8).int32(e.eventType),e.identifier!==void 0&&n.uint32(18).string(e.identifier),e.measurementSetup!==void 0&&H.encode(e.measurementSetup,n.uint32(26).fork()).join(),e.onlineStatus!==void 0&&Se.encode(e.onlineStatus,n.uint32(34).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Qi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.eventType=i.int32();continue}case 2:{if(r!==18)break;t.identifier=i.string();continue}case 3:{if(r!==26)break;t.measurementSetup=H.decode(i,i.uint32());continue}case 4:{if(r!==34)break;t.onlineStatus=Se.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{eventType:f(e.eventType)?Jt(e.eventType):0,identifier:f(e.identifier)?globalThis.String(e.identifier):void 0,measurementSetup:f(e.measurementSetup)?H.fromJSON(e.measurementSetup):void 0,onlineStatus:f(e.onlineStatus)?Se.fromJSON(e.onlineStatus):void 0}},toJSON(e){const n={};return e.eventType!==0&&(n.eventType=bt(e.eventType)),e.identifier!==void 0&&(n.identifier=e.identifier),e.measurementSetup!==void 0&&(n.measurementSetup=H.toJSON(e.measurementSetup)),e.onlineStatus!==void 0&&(n.onlineStatus=Se.toJSON(e.onlineStatus)),n},create(e){return oa.fromPartial(e??{})},fromPartial(e){const n=Qi();return n.eventType=e.eventType??0,n.identifier=e.identifier??void 0,n.measurementSetup=e.measurementSetup!==void 0&&e.measurementSetup!==null?H.fromPartial(e.measurementSetup):void 0,n.onlineStatus=e.onlineStatus!==void 0&&e.onlineStatus!==null?Se.fromPartial(e.onlineStatus):void 0,n}};function zi(){return{preferences:void 0,messageLog:!1,signalLog:!1,readSupport:!1}}const sa={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.messageLog!==!1&&n.uint32(16).bool(e.messageLog),e.signalLog!==!1&&n.uint32(24).bool(e.signalLog),e.readSupport!==!1&&n.uint32(32).bool(e.readSupport),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=zi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.messageLog=i.bool();continue}case 3:{if(r!==24)break;t.signalLog=i.bool();continue}case 4:{if(r!==32)break;t.readSupport=i.bool();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,messageLog:f(e.messageLog)?globalThis.Boolean(e.messageLog):!1,signalLog:f(e.signalLog)?globalThis.Boolean(e.signalLog):!1,readSupport:f(e.readSupport)?globalThis.Boolean(e.readSupport):!1}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.messageLog!==!1&&(n.messageLog=e.messageLog),e.signalLog!==!1&&(n.signalLog=e.signalLog),e.readSupport!==!1&&(n.readSupport=e.readSupport),n},create(e){return sa.fromPartial(e??{})},fromPartial(e){const n=zi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.messageLog=e.messageLog??!1,n.signalLog=e.signalLog??!1,n.readSupport=e.readSupport??!1,n}};function Ki(){return{format:0,name:"",extension:"",description:"",supportedProtocols:[]}}const _e={encode(e,n=new d){e.format!==0&&n.uint32(8).int32(e.format),e.name!==""&&n.uint32(18).string(e.name),e.extension!==""&&n.uint32(26).string(e.extension),e.description!==""&&n.uint32(34).string(e.description);for(const i of e.supportedProtocols)n.uint32(42).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Ki();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.format=i.int32();continue}case 2:{if(r!==18)break;t.name=i.string();continue}case 3:{if(r!==26)break;t.extension=i.string();continue}case 4:{if(r!==34)break;t.description=i.string();continue}case 5:{if(r!==42)break;t.supportedProtocols.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{format:f(e.format)?Je(e.format):0,name:f(e.name)?globalThis.String(e.name):"",extension:f(e.extension)?globalThis.String(e.extension):"",description:f(e.description)?globalThis.String(e.description):"",supportedProtocols:globalThis.Array.isArray(e==null?void 0:e.supportedProtocols)?e.supportedProtocols.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return e.format!==0&&(n.format=be(e.format)),e.name!==""&&(n.name=e.name),e.extension!==""&&(n.extension=e.extension),e.description!==""&&(n.description=e.description),(i=e.supportedProtocols)!=null&&i.length&&(n.supportedProtocols=e.supportedProtocols),n},create(e){return _e.fromPartial(e??{})},fromPartial(e){var i;const n=Ki();return n.format=e.format??0,n.name=e.name??"",n.extension=e.extension??"",n.description=e.description??"",n.supportedProtocols=((i=e.supportedProtocols)==null?void 0:i.map(a=>a))||[],n}};function Yi(){return{formats:[]}}const ua={encode(e,n=new d){for(const i of e.formats)_e.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Yi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.formats.push(_e.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{formats:globalThis.Array.isArray(e==null?void 0:e.formats)?e.formats.map(n=>_e.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.formats)!=null&&i.length&&(n.formats=e.formats.map(a=>_e.toJSON(a))),n},create(e){return ua.fromPartial(e??{})},fromPartial(e){var i;const n=Yi();return n.formats=((i=e.formats)==null?void 0:i.map(a=>_e.fromPartial(a)))||[],n}};function Wi(){return{preferences:void 0,logFile:""}}const da={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.logFile!==""&&n.uint32(18).string(e.logFile),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Wi();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.logFile=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,logFile:f(e.logFile)?globalThis.String(e.logFile):""}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.logFile!==""&&(n.logFile=e.logFile),n},create(e){return da.fromPartial(e??{})},fromPartial(e){const n=Wi();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.logFile=e.logFile??"",n}};function $i(){return{channels:[],protocols:[]}}const la={encode(e,n=new d){n.uint32(10).fork();for(const i of e.channels)n.int32(i);n.join();for(const i of e.protocols)n.uint32(18).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=$i();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r===8){t.channels.push(i.int32());continue}if(r===10){const l=i.uint32()+i.pos;for(;i.pos<l;)t.channels.push(i.int32());continue}break}case 2:{if(r!==18)break;t.protocols.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{channels:globalThis.Array.isArray(e==null?void 0:e.channels)?e.channels.map(n=>globalThis.Number(n)):[],protocols:globalThis.Array.isArray(e==null?void 0:e.protocols)?e.protocols.map(n=>globalThis.String(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.channels)!=null&&i.length&&(n.channels=e.channels.map(t=>Math.round(t))),(a=e.protocols)!=null&&a.length&&(n.protocols=e.protocols),n},create(e){return la.fromPartial(e??{})},fromPartial(e){var i,a;const n=$i();return n.channels=((i=e.channels)==null?void 0:i.map(t=>t))||[],n.protocols=((a=e.protocols)==null?void 0:a.map(t=>t))||[],n}};function ji(){return{preferences:void 0,files:[]}}const fa={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join();for(const i of e.files)n.uint32(18).string(i);return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ji();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.files.push(i.string());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,files:globalThis.Array.isArray(e==null?void 0:e.files)?e.files.map(n=>globalThis.String(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),(i=e.files)!=null&&i.length&&(n.files=e.files),n},create(e){return fa.fromPartial(e??{})},fromPartial(e){var i;const n=ji();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.files=((i=e.files)==null?void 0:i.map(a=>a))||[],n}};function er(){return{tables:[]}}const ca={encode(e,n=new d){for(const i of e.tables)Y.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=er();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.tables.push(Y.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{tables:globalThis.Array.isArray(e==null?void 0:e.tables)?e.tables.map(n=>Y.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.tables)!=null&&i.length&&(n.tables=e.tables.map(a=>Y.toJSON(a))),n},create(e){return ca.fromPartial(e??{})},fromPartial(e){var i;const n=er();return n.tables=((i=e.tables)==null?void 0:i.map(a=>Y.fromPartial(a)))||[],n}};function nr(){return{preferences:void 0,messageQualifiedName:"",data:[]}}const Na={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const i of e.data)n.uint32(i);return n.join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=nr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.messageQualifiedName=i.string();continue}case 3:{if(r===24){t.data.push(i.uint32());continue}if(r===26){const l=i.uint32()+i.pos;for(;i.pos<l;)t.data.push(i.uint32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,messageQualifiedName:f(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(i=e.data)!=null&&i.length&&(n.data=e.data.map(a=>Math.round(a))),n},create(e){return Na.fromPartial(e??{})},fromPartial(e){var i;const n=nr();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((i=e.data)==null?void 0:i.map(a=>a))||[],n}};function ir(){return{signalValues:[]}}const pa={encode(e,n=new d){for(const i of e.signalValues)T.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ir();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.signalValues.push(T.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>T.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.signalValues)!=null&&i.length&&(n.signalValues=e.signalValues.map(a=>T.toJSON(a))),n},create(e){return pa.fromPartial(e??{})},fromPartial(e){var i;const n=ir();return n.signalValues=((i=e.signalValues)==null?void 0:i.map(a=>T.fromPartial(a)))||[],n}};function rr(){return{preferences:void 0,messageQualifiedName:"",data:[],signalValues:[]}}const Sa={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.messageQualifiedName!==""&&n.uint32(18).string(e.messageQualifiedName),n.uint32(26).fork();for(const i of e.data)n.uint32(i);n.join();for(const i of e.signalValues)T.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=rr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.messageQualifiedName=i.string();continue}case 3:{if(r===24){t.data.push(i.uint32());continue}if(r===26){const l=i.uint32()+i.pos;for(;i.pos<l;)t.data.push(i.uint32());continue}break}case 4:{if(r!==34)break;t.signalValues.push(T.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,messageQualifiedName:f(e.messageQualifiedName)?globalThis.String(e.messageQualifiedName):"",data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[],signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>T.fromJSON(n)):[]}},toJSON(e){var i,a;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.messageQualifiedName!==""&&(n.messageQualifiedName=e.messageQualifiedName),(i=e.data)!=null&&i.length&&(n.data=e.data.map(t=>Math.round(t))),(a=e.signalValues)!=null&&a.length&&(n.signalValues=e.signalValues.map(t=>T.toJSON(t))),n},create(e){return Sa.fromPartial(e??{})},fromPartial(e){var i,a;const n=rr();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.messageQualifiedName=e.messageQualifiedName??"",n.data=((i=e.data)==null?void 0:i.map(t=>t))||[],n.signalValues=((a=e.signalValues)==null?void 0:a.map(t=>T.fromPartial(t)))||[],n}};function tr(){return{signalValues:[],data:[]}}const _a={encode(e,n=new d){for(const i of e.signalValues)T.encode(i,n.uint32(10).fork()).join();n.uint32(18).fork();for(const i of e.data)n.uint32(i);return n.join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=tr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.signalValues.push(T.decode(i,i.uint32()));continue}case 2:{if(r===16){t.data.push(i.uint32());continue}if(r===18){const l=i.uint32()+i.pos;for(;i.pos<l;)t.data.push(i.uint32());continue}break}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{signalValues:globalThis.Array.isArray(e==null?void 0:e.signalValues)?e.signalValues.map(n=>T.fromJSON(n)):[],data:globalThis.Array.isArray(e==null?void 0:e.data)?e.data.map(n=>globalThis.Number(n)):[]}},toJSON(e){var i,a;const n={};return(i=e.signalValues)!=null&&i.length&&(n.signalValues=e.signalValues.map(t=>T.toJSON(t))),(a=e.data)!=null&&a.length&&(n.data=e.data.map(t=>Math.round(t))),n},create(e){return _a.fromPartial(e??{})},fromPartial(e){var i,a;const n=tr();return n.signalValues=((i=e.signalValues)==null?void 0:i.map(t=>T.fromPartial(t)))||[],n.data=((a=e.data)==null?void 0:a.map(t=>t))||[],n}};function ar(){return{preferences:void 0,timestamp:0,maxCount:void 0}}const Ea={encode(e,n=new d){return e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.timestamp!==0&&n.uint32(17).double(e.timestamp),e.maxCount!==void 0&&n.uint32(24).uint32(e.maxCount),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ar();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==17)break;t.timestamp=i.double();continue}case 3:{if(r!==24)break;t.maxCount=i.uint32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,timestamp:f(e.timestamp)?globalThis.Number(e.timestamp):0,maxCount:f(e.maxCount)?globalThis.Number(e.maxCount):void 0}},toJSON(e){const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.timestamp!==0&&(n.timestamp=e.timestamp),e.maxCount!==void 0&&(n.maxCount=Math.round(e.maxCount)),n},create(e){return Ea.fromPartial(e??{})},fromPartial(e){const n=ar();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.timestamp=e.timestamp??0,n.maxCount=e.maxCount??void 0,n}};function or(){return{preferences:void 0,startTimestamp:0,endTimestamp:0,frameIds:[]}}const ma={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.startTimestamp!==0&&n.uint32(17).double(e.startTimestamp),e.endTimestamp!==0&&n.uint32(25).double(e.endTimestamp);for(const i of e.frameIds)m.encode(i,n.uint32(34).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=or();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==17)break;t.startTimestamp=i.double();continue}case 3:{if(r!==25)break;t.endTimestamp=i.double();continue}case 4:{if(r!==34)break;t.frameIds.push(m.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,startTimestamp:f(e.startTimestamp)?globalThis.Number(e.startTimestamp):0,endTimestamp:f(e.endTimestamp)?globalThis.Number(e.endTimestamp):0,frameIds:globalThis.Array.isArray(e==null?void 0:e.frameIds)?e.frameIds.map(n=>m.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.startTimestamp!==0&&(n.startTimestamp=e.startTimestamp),e.endTimestamp!==0&&(n.endTimestamp=e.endTimestamp),(i=e.frameIds)!=null&&i.length&&(n.frameIds=e.frameIds.map(a=>m.toJSON(a))),n},create(e){return ma.fromPartial(e??{})},fromPartial(e){var i;const n=or();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.startTimestamp=e.startTimestamp??0,n.endTimestamp=e.endTimestamp??0,n.frameIds=((i=e.frameIds)==null?void 0:i.map(a=>m.fromPartial(a)))||[],n}};function sr(){return{preferences:void 0,frameIds:[]}}const Aa={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join();for(const i of e.frameIds)m.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=sr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.frameIds.push(m.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,frameIds:globalThis.Array.isArray(e==null?void 0:e.frameIds)?e.frameIds.map(n=>m.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),(i=e.frameIds)!=null&&i.length&&(n.frameIds=e.frameIds.map(a=>m.toJSON(a))),n},create(e){return Aa.fromPartial(e??{})},fromPartial(e){var i;const n=sr();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.frameIds=((i=e.frameIds)==null?void 0:i.map(a=>m.fromPartial(a)))||[],n}};function ur(){return{preferences:void 0,startTimestampUs:c.UZERO,endTimestampUs:c.UZERO,viewWidthPx:0,frameIds:[]}}const Oa={encode(e,n=new d){e.preferences!==void 0&&s.encode(e.preferences,n.uint32(10).fork()).join(),e.startTimestampUs.equals(c.UZERO)||n.uint32(16).uint64(e.startTimestampUs.toString()),e.endTimestampUs.equals(c.UZERO)||n.uint32(24).uint64(e.endTimestampUs.toString()),e.viewWidthPx!==0&&n.uint32(32).uint32(e.viewWidthPx);for(const i of e.frameIds)m.encode(i,n.uint32(42).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=ur();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.preferences=s.decode(i,i.uint32());continue}case 2:{if(r!==16)break;t.startTimestampUs=c.fromString(i.uint64().toString(),!0);continue}case 3:{if(r!==24)break;t.endTimestampUs=c.fromString(i.uint64().toString(),!0);continue}case 4:{if(r!==32)break;t.viewWidthPx=i.uint32();continue}case 5:{if(r!==42)break;t.frameIds.push(m.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{preferences:f(e.preferences)?s.fromJSON(e.preferences):void 0,startTimestampUs:f(e.startTimestampUs)?c.fromValue(e.startTimestampUs):c.UZERO,endTimestampUs:f(e.endTimestampUs)?c.fromValue(e.endTimestampUs):c.UZERO,viewWidthPx:f(e.viewWidthPx)?globalThis.Number(e.viewWidthPx):0,frameIds:globalThis.Array.isArray(e==null?void 0:e.frameIds)?e.frameIds.map(n=>m.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.preferences!==void 0&&(n.preferences=s.toJSON(e.preferences)),e.startTimestampUs.equals(c.UZERO)||(n.startTimestampUs=(e.startTimestampUs||c.UZERO).toString()),e.endTimestampUs.equals(c.UZERO)||(n.endTimestampUs=(e.endTimestampUs||c.UZERO).toString()),e.viewWidthPx!==0&&(n.viewWidthPx=Math.round(e.viewWidthPx)),(i=e.frameIds)!=null&&i.length&&(n.frameIds=e.frameIds.map(a=>m.toJSON(a))),n},create(e){return Oa.fromPartial(e??{})},fromPartial(e){var i;const n=ur();return n.preferences=e.preferences!==void 0&&e.preferences!==null?s.fromPartial(e.preferences):void 0,n.startTimestampUs=e.startTimestampUs!==void 0&&e.startTimestampUs!==null?c.fromValue(e.startTimestampUs):c.UZERO,n.endTimestampUs=e.endTimestampUs!==void 0&&e.endTimestampUs!==null?c.fromValue(e.endTimestampUs):c.UZERO,n.viewWidthPx=e.viewWidthPx??0,n.frameIds=((i=e.frameIds)==null?void 0:i.map(a=>m.fromPartial(a)))||[],n}};function dr(){return{signalQualifiedName:"",timestampsUs:[],minValues:[],maxValues:[],frameIds:[]}}const Ee={encode(e,n=new d){e.signalQualifiedName!==""&&n.uint32(10).string(e.signalQualifiedName),n.uint32(18).fork();for(const i of e.timestampsUs)n.uint64(i.toString());n.join(),n.uint32(26).fork();for(const i of e.minValues)n.double(i);n.join(),n.uint32(34).fork();for(const i of e.maxValues)n.double(i);n.join();for(const i of e.frameIds)m.encode(i,n.uint32(42).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=dr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.signalQualifiedName=i.string();continue}case 2:{if(r===16){t.timestampsUs.push(c.fromString(i.uint64().toString(),!0));continue}if(r===18){const l=i.uint32()+i.pos;for(;i.pos<l;)t.timestampsUs.push(c.fromString(i.uint64().toString(),!0));continue}break}case 3:{if(r===25){t.minValues.push(i.double());continue}if(r===26){const l=i.uint32()+i.pos;for(;i.pos<l;)t.minValues.push(i.double());continue}break}case 4:{if(r===33){t.maxValues.push(i.double());continue}if(r===34){const l=i.uint32()+i.pos;for(;i.pos<l;)t.maxValues.push(i.double());continue}break}case 5:{if(r!==42)break;t.frameIds.push(m.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{signalQualifiedName:f(e.signalQualifiedName)?globalThis.String(e.signalQualifiedName):"",timestampsUs:globalThis.Array.isArray(e==null?void 0:e.timestampsUs)?e.timestampsUs.map(n=>c.fromValue(n)):[],minValues:globalThis.Array.isArray(e==null?void 0:e.minValues)?e.minValues.map(n=>globalThis.Number(n)):[],maxValues:globalThis.Array.isArray(e==null?void 0:e.maxValues)?e.maxValues.map(n=>globalThis.Number(n)):[],frameIds:globalThis.Array.isArray(e==null?void 0:e.frameIds)?e.frameIds.map(n=>m.fromJSON(n)):[]}},toJSON(e){var i,a,t,r;const n={};return e.signalQualifiedName!==""&&(n.signalQualifiedName=e.signalQualifiedName),(i=e.timestampsUs)!=null&&i.length&&(n.timestampsUs=e.timestampsUs.map(l=>(l||c.UZERO).toString())),(a=e.minValues)!=null&&a.length&&(n.minValues=e.minValues),(t=e.maxValues)!=null&&t.length&&(n.maxValues=e.maxValues),(r=e.frameIds)!=null&&r.length&&(n.frameIds=e.frameIds.map(l=>m.toJSON(l))),n},create(e){return Ee.fromPartial(e??{})},fromPartial(e){var i,a,t,r;const n=dr();return n.signalQualifiedName=e.signalQualifiedName??"",n.timestampsUs=((i=e.timestampsUs)==null?void 0:i.map(l=>c.fromValue(l)))||[],n.minValues=((a=e.minValues)==null?void 0:a.map(l=>l))||[],n.maxValues=((t=e.maxValues)==null?void 0:t.map(l=>l))||[],n.frameIds=((r=e.frameIds)==null?void 0:r.map(l=>m.fromPartial(l)))||[],n}};function lr(){return{frameId:void 0,signalEnvelopes:[]}}const me={encode(e,n=new d){e.frameId!==void 0&&m.encode(e.frameId,n.uint32(10).fork()).join();for(const i of e.signalEnvelopes)Ee.encode(i,n.uint32(18).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=lr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.frameId=m.decode(i,i.uint32());continue}case 2:{if(r!==18)break;t.signalEnvelopes.push(Ee.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{frameId:f(e.frameId)?m.fromJSON(e.frameId):void 0,signalEnvelopes:globalThis.Array.isArray(e==null?void 0:e.signalEnvelopes)?e.signalEnvelopes.map(n=>Ee.fromJSON(n)):[]}},toJSON(e){var i;const n={};return e.frameId!==void 0&&(n.frameId=m.toJSON(e.frameId)),(i=e.signalEnvelopes)!=null&&i.length&&(n.signalEnvelopes=e.signalEnvelopes.map(a=>Ee.toJSON(a))),n},create(e){return me.fromPartial(e??{})},fromPartial(e){var i;const n=lr();return n.frameId=e.frameId!==void 0&&e.frameId!==null?m.fromPartial(e.frameId):void 0,n.signalEnvelopes=((i=e.signalEnvelopes)==null?void 0:i.map(a=>Ee.fromPartial(a)))||[],n}};function fr(){return{envelopes:[]}}const va={encode(e,n=new d){for(const i of e.envelopes)me.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=fr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.envelopes.push(me.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{envelopes:globalThis.Array.isArray(e==null?void 0:e.envelopes)?e.envelopes.map(n=>me.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.envelopes)!=null&&i.length&&(n.envelopes=e.envelopes.map(a=>me.toJSON(a))),n},create(e){return va.fromPartial(e??{})},fromPartial(e){var i;const n=fr();return n.envelopes=((i=e.envelopes)==null?void 0:i.map(a=>me.fromPartial(a)))||[],n}};function f(e){return e!=null}var Ta=(e=>(e[e.STATUS_LEVEL_NONE=0]="STATUS_LEVEL_NONE",e[e.STATUS_LEVEL_OK=1]="STATUS_LEVEL_OK",e[e.STATUS_LEVEL_WARNING=2]="STATUS_LEVEL_WARNING",e[e.STATUS_LEVEL_ERROR=3]="STATUS_LEVEL_ERROR",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ta||{});function Le(e){switch(e){case 0:case"STATUS_LEVEL_NONE":return 0;case 1:case"STATUS_LEVEL_OK":return 1;case 2:case"STATUS_LEVEL_WARNING":return 2;case 3:case"STATUS_LEVEL_ERROR":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function ge(e){switch(e){case 0:return"STATUS_LEVEL_NONE";case 1:return"STATUS_LEVEL_OK";case 2:return"STATUS_LEVEL_WARNING";case 3:return"STATUS_LEVEL_ERROR";case-1:default:return"UNRECOGNIZED"}}var Ra=(e=>(e[e.LOG_REPLAY_STATE_UNSPECIFIED=0]="LOG_REPLAY_STATE_UNSPECIFIED",e[e.LOG_REPLAY_STATE_STARTED=1]="LOG_REPLAY_STATE_STARTED",e[e.LOG_REPLAY_STATE_STOPPED=2]="LOG_REPLAY_STATE_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Ra||{});function ha(e){switch(e){case 0:case"LOG_REPLAY_STATE_UNSPECIFIED":return 0;case 1:case"LOG_REPLAY_STATE_STARTED":return 1;case 2:case"LOG_REPLAY_STATE_STOPPED":return 2;case-1:case"UNRECOGNIZED":default:return-1}}function Ia(e){switch(e){case 0:return"LOG_REPLAY_STATE_UNSPECIFIED";case 1:return"LOG_REPLAY_STATE_STARTED";case 2:return"LOG_REPLAY_STATE_STOPPED";case-1:default:return"UNRECOGNIZED"}}var Pa=(e=>(e[e.MESSAGE_LOGGER_STATE_UNSPECIFIED=0]="MESSAGE_LOGGER_STATE_UNSPECIFIED",e[e.MESSAGE_LOGGER_STATE_PRESTART=1]="MESSAGE_LOGGER_STATE_PRESTART",e[e.MESSAGE_LOGGER_STATE_STARTED=2]="MESSAGE_LOGGER_STATE_STARTED",e[e.MESSAGE_LOGGER_STATE_STOPPED=3]="MESSAGE_LOGGER_STATE_STOPPED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED",e))(Pa||{});function Ca(e){switch(e){case 0:case"MESSAGE_LOGGER_STATE_UNSPECIFIED":return 0;case 1:case"MESSAGE_LOGGER_STATE_PRESTART":return 1;case 2:case"MESSAGE_LOGGER_STATE_STARTED":return 2;case 3:case"MESSAGE_LOGGER_STATE_STOPPED":return 3;case-1:case"UNRECOGNIZED":default:return-1}}function Fa(e){switch(e){case 0:return"MESSAGE_LOGGER_STATE_UNSPECIFIED";case 1:return"MESSAGE_LOGGER_STATE_PRESTART";case 2:return"MESSAGE_LOGGER_STATE_STARTED";case 3:return"MESSAGE_LOGGER_STATE_STOPPED";case-1:default:return"UNRECOGNIZED"}}function cr(){return{rxMessageCounter:0,rxMessagesPerSecond:0,txMessageCounter:0,txMessagesPerSecond:0,errorFrameCounter:0,errorFramesPerSecond:0,overrunCounter:0,overrunsPerSecond:0,rxErrorCounter:0,txErrorCounter:0,overrunErrorCounter:0,busOnStatus:0,errorStatus:0,overrunStatus:0,busLoad:0}}const Ae={encode(e,n=new d){return e.rxMessageCounter!==0&&n.uint32(8).int32(e.rxMessageCounter),e.rxMessagesPerSecond!==0&&n.uint32(16).int32(e.rxMessagesPerSecond),e.txMessageCounter!==0&&n.uint32(24).int32(e.txMessageCounter),e.txMessagesPerSecond!==0&&n.uint32(32).int32(e.txMessagesPerSecond),e.errorFrameCounter!==0&&n.uint32(40).int32(e.errorFrameCounter),e.errorFramesPerSecond!==0&&n.uint32(48).int32(e.errorFramesPerSecond),e.overrunCounter!==0&&n.uint32(56).int32(e.overrunCounter),e.overrunsPerSecond!==0&&n.uint32(64).int32(e.overrunsPerSecond),e.rxErrorCounter!==0&&n.uint32(72).int32(e.rxErrorCounter),e.txErrorCounter!==0&&n.uint32(80).int32(e.txErrorCounter),e.overrunErrorCounter!==0&&n.uint32(88).int32(e.overrunErrorCounter),e.busOnStatus!==0&&n.uint32(96).int32(e.busOnStatus),e.errorStatus!==0&&n.uint32(104).int32(e.errorStatus),e.overrunStatus!==0&&n.uint32(112).int32(e.overrunStatus),e.busLoad!==0&&n.uint32(120).int32(e.busLoad),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=cr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.rxMessageCounter=i.int32();continue}case 2:{if(r!==16)break;t.rxMessagesPerSecond=i.int32();continue}case 3:{if(r!==24)break;t.txMessageCounter=i.int32();continue}case 4:{if(r!==32)break;t.txMessagesPerSecond=i.int32();continue}case 5:{if(r!==40)break;t.errorFrameCounter=i.int32();continue}case 6:{if(r!==48)break;t.errorFramesPerSecond=i.int32();continue}case 7:{if(r!==56)break;t.overrunCounter=i.int32();continue}case 8:{if(r!==64)break;t.overrunsPerSecond=i.int32();continue}case 9:{if(r!==72)break;t.rxErrorCounter=i.int32();continue}case 10:{if(r!==80)break;t.txErrorCounter=i.int32();continue}case 11:{if(r!==88)break;t.overrunErrorCounter=i.int32();continue}case 12:{if(r!==96)break;t.busOnStatus=i.int32();continue}case 13:{if(r!==104)break;t.errorStatus=i.int32();continue}case 14:{if(r!==112)break;t.overrunStatus=i.int32();continue}case 15:{if(r!==120)break;t.busLoad=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{rxMessageCounter:E(e.rxMessageCounter)?globalThis.Number(e.rxMessageCounter):0,rxMessagesPerSecond:E(e.rxMessagesPerSecond)?globalThis.Number(e.rxMessagesPerSecond):0,txMessageCounter:E(e.txMessageCounter)?globalThis.Number(e.txMessageCounter):0,txMessagesPerSecond:E(e.txMessagesPerSecond)?globalThis.Number(e.txMessagesPerSecond):0,errorFrameCounter:E(e.errorFrameCounter)?globalThis.Number(e.errorFrameCounter):0,errorFramesPerSecond:E(e.errorFramesPerSecond)?globalThis.Number(e.errorFramesPerSecond):0,overrunCounter:E(e.overrunCounter)?globalThis.Number(e.overrunCounter):0,overrunsPerSecond:E(e.overrunsPerSecond)?globalThis.Number(e.overrunsPerSecond):0,rxErrorCounter:E(e.rxErrorCounter)?globalThis.Number(e.rxErrorCounter):0,txErrorCounter:E(e.txErrorCounter)?globalThis.Number(e.txErrorCounter):0,overrunErrorCounter:E(e.overrunErrorCounter)?globalThis.Number(e.overrunErrorCounter):0,busOnStatus:E(e.busOnStatus)?Le(e.busOnStatus):0,errorStatus:E(e.errorStatus)?Le(e.errorStatus):0,overrunStatus:E(e.overrunStatus)?Le(e.overrunStatus):0,busLoad:E(e.busLoad)?globalThis.Number(e.busLoad):0}},toJSON(e){const n={};return e.rxMessageCounter!==0&&(n.rxMessageCounter=Math.round(e.rxMessageCounter)),e.rxMessagesPerSecond!==0&&(n.rxMessagesPerSecond=Math.round(e.rxMessagesPerSecond)),e.txMessageCounter!==0&&(n.txMessageCounter=Math.round(e.txMessageCounter)),e.txMessagesPerSecond!==0&&(n.txMessagesPerSecond=Math.round(e.txMessagesPerSecond)),e.errorFrameCounter!==0&&(n.errorFrameCounter=Math.round(e.errorFrameCounter)),e.errorFramesPerSecond!==0&&(n.errorFramesPerSecond=Math.round(e.errorFramesPerSecond)),e.overrunCounter!==0&&(n.overrunCounter=Math.round(e.overrunCounter)),e.overrunsPerSecond!==0&&(n.overrunsPerSecond=Math.round(e.overrunsPerSecond)),e.rxErrorCounter!==0&&(n.rxErrorCounter=Math.round(e.rxErrorCounter)),e.txErrorCounter!==0&&(n.txErrorCounter=Math.round(e.txErrorCounter)),e.overrunErrorCounter!==0&&(n.overrunErrorCounter=Math.round(e.overrunErrorCounter)),e.busOnStatus!==0&&(n.busOnStatus=ge(e.busOnStatus)),e.errorStatus!==0&&(n.errorStatus=ge(e.errorStatus)),e.overrunStatus!==0&&(n.overrunStatus=ge(e.overrunStatus)),e.busLoad!==0&&(n.busLoad=Math.round(e.busLoad)),n},create(e){return Ae.fromPartial(e??{})},fromPartial(e){const n=cr();return n.rxMessageCounter=e.rxMessageCounter??0,n.rxMessagesPerSecond=e.rxMessagesPerSecond??0,n.txMessageCounter=e.txMessageCounter??0,n.txMessagesPerSecond=e.txMessagesPerSecond??0,n.errorFrameCounter=e.errorFrameCounter??0,n.errorFramesPerSecond=e.errorFramesPerSecond??0,n.overrunCounter=e.overrunCounter??0,n.overrunsPerSecond=e.overrunsPerSecond??0,n.rxErrorCounter=e.rxErrorCounter??0,n.txErrorCounter=e.txErrorCounter??0,n.overrunErrorCounter=e.overrunErrorCounter??0,n.busOnStatus=e.busOnStatus??0,n.errorStatus=e.errorStatus??0,n.overrunStatus=e.overrunStatus??0,n.busLoad=e.busLoad??0,n}};function Nr(){return{errorCounter:0,lastExecutionTime:c.ZERO,minExecutionTime:c.ZERO,maxExecutionTime:c.ZERO}}const Oe={encode(e,n=new d){return e.errorCounter!==0&&n.uint32(8).int32(e.errorCounter),e.lastExecutionTime.equals(c.ZERO)||n.uint32(16).int64(e.lastExecutionTime.toString()),e.minExecutionTime.equals(c.ZERO)||n.uint32(24).int64(e.minExecutionTime.toString()),e.maxExecutionTime.equals(c.ZERO)||n.uint32(32).int64(e.maxExecutionTime.toString()),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Nr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.errorCounter=i.int32();continue}case 2:{if(r!==16)break;t.lastExecutionTime=c.fromString(i.int64().toString());continue}case 3:{if(r!==24)break;t.minExecutionTime=c.fromString(i.int64().toString());continue}case 4:{if(r!==32)break;t.maxExecutionTime=c.fromString(i.int64().toString());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{errorCounter:E(e.errorCounter)?globalThis.Number(e.errorCounter):0,lastExecutionTime:E(e.lastExecutionTime)?c.fromValue(e.lastExecutionTime):c.ZERO,minExecutionTime:E(e.minExecutionTime)?c.fromValue(e.minExecutionTime):c.ZERO,maxExecutionTime:E(e.maxExecutionTime)?c.fromValue(e.maxExecutionTime):c.ZERO}},toJSON(e){const n={};return e.errorCounter!==0&&(n.errorCounter=Math.round(e.errorCounter)),e.lastExecutionTime.equals(c.ZERO)||(n.lastExecutionTime=(e.lastExecutionTime||c.ZERO).toString()),e.minExecutionTime.equals(c.ZERO)||(n.minExecutionTime=(e.minExecutionTime||c.ZERO).toString()),e.maxExecutionTime.equals(c.ZERO)||(n.maxExecutionTime=(e.maxExecutionTime||c.ZERO).toString()),n},create(e){return Oe.fromPartial(e??{})},fromPartial(e){const n=Nr();return n.errorCounter=e.errorCounter??0,n.lastExecutionTime=e.lastExecutionTime!==void 0&&e.lastExecutionTime!==null?c.fromValue(e.lastExecutionTime):c.ZERO,n.minExecutionTime=e.minExecutionTime!==void 0&&e.minExecutionTime!==null?c.fromValue(e.minExecutionTime):c.ZERO,n.maxExecutionTime=e.maxExecutionTime!==void 0&&e.maxExecutionTime!==null?c.fromValue(e.maxExecutionTime):c.ZERO,n}};function pr(){return{state:0}}const ve={encode(e,n=new d){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=pr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.state=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{state:E(e.state)?ha(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=Ia(e.state)),n},create(e){return ve.fromPartial(e??{})},fromPartial(e){const n=pr();return n.state=e.state??0,n}};function Sr(){return{state:0}}const Te={encode(e,n=new d){return e.state!==0&&n.uint32(8).int32(e.state),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Sr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==8)break;t.state=i.int32();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{state:E(e.state)?Ca(e.state):0}},toJSON(e){const n={};return e.state!==0&&(n.state=Fa(e.state)),n},create(e){return Te.fromPartial(e??{})},fromPartial(e){const n=Sr();return n.state=e.state??0,n}};function _r(){return{errors:""}}const Re={encode(e,n=new d){return e.errors!==""&&n.uint32(10).string(e.errors),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=_r();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.errors=i.string();continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{errors:E(e.errors)?globalThis.String(e.errors):""}},toJSON(e){const n={};return e.errors!==""&&(n.errors=e.errors),n},create(e){return Re.fromPartial(e??{})},fromPartial(e){const n=_r();return n.errors=e.errors??"",n}};function Er(){return{nodeId:"",nodeName:"",streamId:"",busStatus:void 0,dataProcessingStatus:void 0,logReplayStatus:void 0,loggerStatus:void 0,errorStatus:void 0}}const he={encode(e,n=new d){return e.nodeId!==""&&n.uint32(10).string(e.nodeId),e.nodeName!==""&&n.uint32(18).string(e.nodeName),e.streamId!==""&&n.uint32(26).string(e.streamId),e.busStatus!==void 0&&Ae.encode(e.busStatus,n.uint32(34).fork()).join(),e.dataProcessingStatus!==void 0&&Oe.encode(e.dataProcessingStatus,n.uint32(42).fork()).join(),e.logReplayStatus!==void 0&&ve.encode(e.logReplayStatus,n.uint32(50).fork()).join(),e.loggerStatus!==void 0&&Te.encode(e.loggerStatus,n.uint32(58).fork()).join(),e.errorStatus!==void 0&&Re.encode(e.errorStatus,n.uint32(66).fork()).join(),n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=Er();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.nodeId=i.string();continue}case 2:{if(r!==18)break;t.nodeName=i.string();continue}case 3:{if(r!==26)break;t.streamId=i.string();continue}case 4:{if(r!==34)break;t.busStatus=Ae.decode(i,i.uint32());continue}case 5:{if(r!==42)break;t.dataProcessingStatus=Oe.decode(i,i.uint32());continue}case 6:{if(r!==50)break;t.logReplayStatus=ve.decode(i,i.uint32());continue}case 7:{if(r!==58)break;t.loggerStatus=Te.decode(i,i.uint32());continue}case 8:{if(r!==66)break;t.errorStatus=Re.decode(i,i.uint32());continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{nodeId:E(e.nodeId)?globalThis.String(e.nodeId):"",nodeName:E(e.nodeName)?globalThis.String(e.nodeName):"",streamId:E(e.streamId)?globalThis.String(e.streamId):"",busStatus:E(e.busStatus)?Ae.fromJSON(e.busStatus):void 0,dataProcessingStatus:E(e.dataProcessingStatus)?Oe.fromJSON(e.dataProcessingStatus):void 0,logReplayStatus:E(e.logReplayStatus)?ve.fromJSON(e.logReplayStatus):void 0,loggerStatus:E(e.loggerStatus)?Te.fromJSON(e.loggerStatus):void 0,errorStatus:E(e.errorStatus)?Re.fromJSON(e.errorStatus):void 0}},toJSON(e){const n={};return e.nodeId!==""&&(n.nodeId=e.nodeId),e.nodeName!==""&&(n.nodeName=e.nodeName),e.streamId!==""&&(n.streamId=e.streamId),e.busStatus!==void 0&&(n.busStatus=Ae.toJSON(e.busStatus)),e.dataProcessingStatus!==void 0&&(n.dataProcessingStatus=Oe.toJSON(e.dataProcessingStatus)),e.logReplayStatus!==void 0&&(n.logReplayStatus=ve.toJSON(e.logReplayStatus)),e.loggerStatus!==void 0&&(n.loggerStatus=Te.toJSON(e.loggerStatus)),e.errorStatus!==void 0&&(n.errorStatus=Re.toJSON(e.errorStatus)),n},create(e){return he.fromPartial(e??{})},fromPartial(e){const n=Er();return n.nodeId=e.nodeId??"",n.nodeName=e.nodeName??"",n.streamId=e.streamId??"",n.busStatus=e.busStatus!==void 0&&e.busStatus!==null?Ae.fromPartial(e.busStatus):void 0,n.dataProcessingStatus=e.dataProcessingStatus!==void 0&&e.dataProcessingStatus!==null?Oe.fromPartial(e.dataProcessingStatus):void 0,n.logReplayStatus=e.logReplayStatus!==void 0&&e.logReplayStatus!==null?ve.fromPartial(e.logReplayStatus):void 0,n.loggerStatus=e.loggerStatus!==void 0&&e.loggerStatus!==null?Te.fromPartial(e.loggerStatus):void 0,n.errorStatus=e.errorStatus!==void 0&&e.errorStatus!==null?Re.fromPartial(e.errorStatus):void 0,n}};function mr(){return{items:[]}}const La={encode(e,n=new d){for(const i of e.items)he.encode(i,n.uint32(10).fork()).join();return n},decode(e,n){const i=e instanceof o?e:new o(e);let a=n===void 0?i.len:i.pos+n;const t=mr();for(;i.pos<a;){const r=i.uint32();switch(r>>>3){case 1:{if(r!==10)break;t.items.push(he.decode(i,i.uint32()));continue}}if((r&7)===4||r===0)break;i.skip(r&7)}return t},fromJSON(e){return{items:globalThis.Array.isArray(e==null?void 0:e.items)?e.items.map(n=>he.fromJSON(n)):[]}},toJSON(e){var i;const n={};return(i=e.items)!=null&&i.length&&(n.items=e.items.map(a=>he.toJSON(a))),n},create(e){return La.fromPartial(e??{})},fromPartial(e){var i;const n=mr();return n.items=((i=e.items)==null?void 0:i.map(a=>he.fromPartial(a)))||[],n}};function E(e){return e!=null}exports.AboutInformation=$r;exports.AccessMode=Et;exports.ActivateLicenseRequest=Wr;exports.AddAllConnectedCanChannelsRequest=Vt;exports.AddAllConnectedLinChannelsRequest=Bt;exports.AddOrUpdateDataProcessorRequest=Ht;exports.AddOrUpdateSourceRequest=Ut;exports.AddOrUpdateTargetRequest=Zt;exports.ApiPreferences=s;exports.AppEvent=Br;exports.AppEventArgs=Xr;exports.BaseNodeProperties=C;exports.BusStatus=Ae;exports.CanBusParamLimits=ne;exports.CanBusParams=p;exports.CanBusSpeedInfo=J;exports.CanChannelCap=jr;exports.CanChannelCapacity=ie;exports.CanChannelConfiguration=V;exports.CanConfigMode=Rt;exports.CanFDBusSpeedCombination=b;exports.CanFDBusSpeedInfo=k;exports.CanFrameFlag=Lr;exports.CanFrameFlags=v;exports.CanMessageFilterSettings=U;exports.CanMessageFilterType=Ot;exports.CanMode=pt;exports.Channel=re;exports.ChannelSettings=ae;exports.ClearLinMessageRequest=ia;exports.ConnectNodesRequest=Qt;exports.DataProcessingStatus=Oe;exports.DataProcessorNodeProperties=L;exports.DatabaseFiles=br;exports.DatabasesSettings=ue;exports.DecimalChar=kt;exports.Device=y;exports.DeviceEvent=it;exports.DeviceEventArgs=Nt;exports.Devices=te;exports.DisconnectNodesRequest=zt;exports.Empty=yr;exports.ErrorStatus=Re;exports.ExtensionInfo=j;exports.ExtensionInfos=ee;exports.FileConflictAction=Mt;exports.FixedPosFrameIdentifier=m;exports.Frame=Q;exports.FrameDataEnvelope=me;exports.FrameDefinition=z;exports.FrameDefinitions=Jr;exports.FramePropertyValue=Z;exports.FrameReceivedTrigger=fe;exports.Frame_PropertiesEntry=ke;exports.Frames=xr;exports.GetCanChannelBusSpeedsRequest=st;exports.GetCanChannelBusSpeedsResponse=ut;exports.GetCanFdBusSpeedsRequest=ft;exports.GetCanFdBusSpeedsResponse=ct;exports.GetChannelsFromLogFileRequest=da;exports.GetChannelsFromLogFileResponse=la;exports.GetClassicCanBusSpeedsRequest=dt;exports.GetClassicCanBusSpeedsResponse=lt;exports.GetDataFramesBeforeTimestampRequest=Ea;exports.GetDataFramesBetweenTimestampsRequest=ma;exports.GetDataProcessorResponse=qt;exports.GetDevicesRequest=at;exports.GetDevicesResponse=ot;exports.GetExtensionInfoRequest=Kr;exports.GetFrameEnvelopesRequest=Oa;exports.GetFrameEnvelopesResponse=va;exports.GetLicensesResponse=Yr;exports.GetLogFileFormatsRequest=sa;exports.GetLogFileFormatsResponse=ua;exports.GetLogLevelResponse=qr;exports.GetScheduleTablesFromDatabaseFilesRequest=fa;exports.GetScheduleTablesFromDatabaseFilesResponse=ca;exports.GetSignalDataFromMessageDataRequest=Na;exports.GetSignalDataFromMessageDataResponse=pa;exports.GetSourceResponse=wt;exports.GetTargetResponse=Xt;exports.IdentifierRequest=Kt;exports.IdentifiersRequest=Yt;exports.InstallExtensionRequest=Qr;exports.InterpreterSettings=de;exports.J1939InterpreterSettings=le;exports.LicenseInformation=x;exports.Licenses=$;exports.LinChannelConfiguration=B;exports.LinFrameFlag=kr;exports.LinFrameFlags=I;exports.LogFileFormat=gt;exports.LogFileFormatInfo=_e;exports.LogLevel=Vr;exports.LogMessage=W;exports.LogMessages=Zr;exports.LogReplaySettings=oe;exports.LogReplaySettings_ChannelIdentifiersEntry=Ge;exports.LogReplayState=Ra;exports.LogReplayStatus=ve;exports.LoggerState=Pa;exports.LoggerStatus=Te;exports.MeasurementEvent=xt;exports.MeasurementEventArgs=oa;exports.MeasurementSetup=H;exports.MessageLoggerSettings=Ne;exports.NodeStatus=he;exports.NodeStatuses=La;exports.OnlineStatus=Se;exports.PeriodicTransmissionSettings=P;exports.RequestLinMessageRequest=ea;exports.ScheduleTable=Y;exports.ScheduleTableEntry=K;exports.SendLinWakeupFrameRequest=jt;exports.SendMessageRequest=Wt;exports.SendMessagesRequest=$t;exports.Separator=Gt;exports.ServiceExtensionSettings=w;exports.SetLogLevelRequest=Hr;exports.SetMeasurementSetupRequest=yt;exports.SetSignalDataToMessageDataRequest=Sa;exports.SetSignalDataToMessageDataResponse=_a;exports.SignalDataEnvelope=Ee;exports.SignalDefinition=D;exports.SignalDefinition_EnumValuesEntry=Me;exports.SignalDefinitions=Fr;exports.SignalEncoding=Tr;exports.SignalFilterSettings=se;exports.SignalLoggerSettings=pe;exports.SignalType=Ir;exports.SignalValue=T;exports.SignalValueTrigger=ce;exports.SignalValueTriggerOperator=Pt;exports.SourceNodeProperties=F;exports.StartPeriodicTransmissionRequest=ra;exports.StartPeriodicTransmissionResponse=aa;exports.StatusLevel=Ta;exports.SubscribeForDataRequest=Aa;exports.TargetNodeProperties=g;exports.TdcConfiguration=G;exports.TimeReference=Dt;exports.TriggerOperator=Lt;exports.TriggerSettings=O;exports.UninstallExtensionRequest=zr;exports.UpdateLinMessageRequest=na;exports.UpdatePeriodicTransmissionRequest=ta;exports.WriteFrame=R;exports.accessModeFromJSON=mt;exports.accessModeToJSON=At;exports.appEventFromJSON=Ur;exports.appEventToJSON=wr;exports.canChannelCapFromJSON=et;exports.canChannelCapToJSON=nt;exports.canConfigModeFromJSON=ht;exports.canConfigModeToJSON=It;exports.canFrameFlagFromJSON=gr;exports.canFrameFlagToJSON=Mr;exports.canMessageFilterTypeFromJSON=vt;exports.canMessageFilterTypeToJSON=Tt;exports.canModeFromJSON=St;exports.canModeToJSON=_t;exports.decimalCharFromJSON=qe;exports.decimalCharToJSON=Ze;exports.deviceEventFromJSON=rt;exports.deviceEventToJSON=tt;exports.fileConflictActionFromJSON=we;exports.fileConflictActionToJSON=He;exports.linFrameFlagFromJSON=Gr;exports.linFrameFlagToJSON=Dr;exports.logFileFormatFromJSON=Je;exports.logFileFormatToJSON=be;exports.logLevelFromJSON=De;exports.logLevelToJSON=xe;exports.logReplayStateFromJSON=ha;exports.logReplayStateToJSON=Ia;exports.loggerStateFromJSON=Ca;exports.loggerStateToJSON=Fa;exports.measurementEventFromJSON=Jt;exports.measurementEventToJSON=bt;exports.separatorFromJSON=Xe;exports.separatorToJSON=Qe;exports.signalEncodingFromJSON=Rr;exports.signalEncodingToJSON=hr;exports.signalTypeFromJSON=Pr;exports.signalTypeToJSON=Cr;exports.signalValueTriggerOperatorFromJSON=Ct;exports.signalValueTriggerOperatorToJSON=Ft;exports.statusLevelFromJSON=Le;exports.statusLevelToJSON=ge;exports.timeReferenceFromJSON=ze;exports.timeReferenceToJSON=Ke;exports.triggerOperatorFromJSON=Ie;exports.triggerOperatorToJSON=Pe;