@readmagic/workmate 0.0.1

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 (552) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-BSLHrjbt.js +1 -0
  2. package/dist/chunks/App-DY5O6IKw.js +1 -0
  3. package/dist/chunks/ApproveApiKey-BEzfC6r3.js +1 -0
  4. package/dist/chunks/ApproveApiKey-DfAPwDix.js +1 -0
  5. package/dist/chunks/AssistantSessionChooser-Ce3PraaD.js +1 -0
  6. package/dist/chunks/BackgroundTasksDialog-Dvhcgahe.js +2 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-B68V1bCq.js +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-BV7HHcgL.js +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-CTWhpIm8.js +1 -0
  10. package/dist/chunks/ConsoleOAuthFlow-CU5fCPKq.js +1 -0
  11. package/dist/chunks/DesktopHandoff-BRbU4is4.js +1 -0
  12. package/dist/chunks/Dialog-vfLXEPed.js +1 -0
  13. package/dist/chunks/DiffDialog-CBluIK-x.js +6 -0
  14. package/dist/chunks/Doctor-B0CRtxi2.js +1 -0
  15. package/dist/chunks/Doctor-WxNv49HC.js +3 -0
  16. package/dist/chunks/ExitFlow-CRPgptCN.js +2 -0
  17. package/dist/chunks/Feedback-CEtzaLr3.js +2 -0
  18. package/dist/chunks/Grove--kttLxvs.js +11 -0
  19. package/dist/chunks/Grove-CelgLWH4.js +1 -0
  20. package/dist/chunks/HybridTransport-BgV5_7Az.js +4 -0
  21. package/dist/chunks/InvalidConfigDialog-DCGwXW_p.js +1 -0
  22. package/dist/chunks/InvalidSettingsDialog-jTwsdXWr.js +1 -0
  23. package/dist/chunks/ListItem-vfLXEPed.js +1 -0
  24. package/dist/chunks/MCPConnectionManager-BX0LMz9J.js +1 -0
  25. package/dist/chunks/McpParsingWarnings-WQrWJeWP.js +1 -0
  26. package/dist/chunks/MessageSelector-_UZB8cGb.js +3 -0
  27. package/dist/chunks/Messages-jCoW_1Rr.js +11 -0
  28. package/dist/chunks/Onboarding-BoIVNCgc.js +1 -0
  29. package/dist/chunks/OverageCreditUpsell-1FCN8bH3.js +1 -0
  30. package/dist/chunks/PermissionDialog-0ya1CU5k.js +1 -0
  31. package/dist/chunks/PluginSettings-BD9JLV9-.js +17 -0
  32. package/dist/chunks/PressEnterToContinue-Dl9Hg9Mf.js +1 -0
  33. package/dist/chunks/PromptInputFooterSuggestions-CrGST0Cq.js +1 -0
  34. package/dist/chunks/PromptInputHelpMenu-B2TDpbpw.js +1 -0
  35. package/dist/chunks/QueryEngine-D2HUnwmU.js +1 -0
  36. package/dist/chunks/REPL-BV4WyYMg.js +142 -0
  37. package/dist/chunks/REPL-DcpN3MRC.js +1 -0
  38. package/dist/chunks/RemoteCallout-DS_EV6Fh.js +1 -0
  39. package/dist/chunks/RemoteSessionManager-Tx1N2uVL.js +2 -0
  40. package/dist/chunks/ResumeConversation-Cw3vP4G8.js +1 -0
  41. package/dist/chunks/SSETransport-BXiEBMpb.js +4 -0
  42. package/dist/chunks/SearchBox-vfLXEPed.js +1 -0
  43. package/dist/chunks/SearchExtraToolsTool-D3VOFq9R.js +1 -0
  44. package/dist/chunks/Settings-ns6mRsDc.js +2 -0
  45. package/dist/chunks/TeleportProgress-CcDzMC5L.js +1 -0
  46. package/dist/chunks/TeleportRepoMismatchDialog-DZbxl4sD.js +1 -0
  47. package/dist/chunks/TeleportResumeWrapper-EowJO5nm.js +1 -0
  48. package/dist/chunks/ThemePicker-BYbChJpu.js +1 -0
  49. package/dist/chunks/TrustDialog-DA3YTk_k.js +1 -0
  50. package/dist/chunks/TungstenTool-Cb7gJvq4.js +1 -0
  51. package/dist/chunks/TungstenTool-CxMQVCuF.js +1 -0
  52. package/dist/chunks/ValidationErrorsList-Cx-hoRwG.js +2 -0
  53. package/dist/chunks/WelcomeV2-BTfttGcv.js +1 -0
  54. package/dist/chunks/add-dir-CWt69NAZ.js +1 -0
  55. package/dist/chunks/agentDisplay-CQ4mZWFH.js +1 -0
  56. package/dist/chunks/agents-C6jzKOit.js +2 -0
  57. package/dist/chunks/agents-D4clhuCl.js +103 -0
  58. package/dist/chunks/ajv-5vMo9UcX.js +8 -0
  59. package/dist/chunks/allErrors-HMPqE0jK.js +1 -0
  60. package/dist/chunks/analytics-BotDBGh0.js +1 -0
  61. package/dist/chunks/ant-9Z5bppVC.js +1 -0
  62. package/dist/chunks/api-L2IgleTV.js +1 -0
  63. package/dist/chunks/api-TgV7fl9V.js +1 -0
  64. package/dist/chunks/asciicast-DYbkzGCN.js +1 -0
  65. package/dist/chunks/asciicast-n-BBfgDq.js +4 -0
  66. package/dist/chunks/assistant-BA9_Mo9U.js +1 -0
  67. package/dist/chunks/assistant-BiNOSla3.js +1 -0
  68. package/dist/chunks/assistant-YvbVKjVh.js +1 -0
  69. package/dist/chunks/attributionHooks-CUAoGkU6.js +1 -0
  70. package/dist/chunks/attributionTrailer-oKKrF3z8.js +1 -0
  71. package/dist/chunks/auth-CEig4Gxp.js +1 -0
  72. package/dist/chunks/auth-CbGDlhyO.js +1 -0
  73. package/dist/chunks/auth-DHyCIxCk.js +15 -0
  74. package/dist/chunks/autoMode-Db4QrgFr.js +45 -0
  75. package/dist/chunks/autoModeDenials-BxNzGJdR.js +1 -0
  76. package/dist/chunks/autonomy-BkAMA7du.js +1 -0
  77. package/dist/chunks/autonomy-D4Vy-RPQ.js +15 -0
  78. package/dist/chunks/autonomyPanel-EjfO8jvg.js +1 -0
  79. package/dist/chunks/axios-BHBm_hhU.js +1 -0
  80. package/dist/chunks/axios-DaWTGg7G.js +16 -0
  81. package/dist/chunks/backgroundHousekeeping-BNEKWHhH.js +1 -0
  82. package/dist/chunks/backgroundHousekeeping-hDDE8mJC.js +17 -0
  83. package/dist/chunks/banner-hD6wZygx.js +2 -0
  84. package/dist/chunks/base64-js-0wLHn8zB.js +1 -0
  85. package/dist/chunks/bedrockClient-DxE_mHFI.js +15 -0
  86. package/dist/chunks/bg-BzG63WOm.js +1 -0
  87. package/dist/chunks/bg-DQ0Q3Qv-.js +9 -0
  88. package/dist/chunks/branch-CeQ9IyZk.js +3 -0
  89. package/dist/chunks/break-cache-Bd0clV2N.js +8 -0
  90. package/dist/chunks/bridge-yerAiaK2.js +2 -0
  91. package/dist/chunks/bridgeConfig-CCtXe8ak.js +1 -0
  92. package/dist/chunks/bridgeConfig-D5dB38xD.js +1 -0
  93. package/dist/chunks/bridgeEnabled--F-6TUi4.js +1 -0
  94. package/dist/chunks/bridgeEnabled-DKX8-T_H.js +1 -0
  95. package/dist/chunks/bridgeMain--R1HFbOv.js +68 -0
  96. package/dist/chunks/bridgeMain-d06JByZn.js +1 -0
  97. package/dist/chunks/bridgeMessaging-CqbLTDcx.js +1 -0
  98. package/dist/chunks/bridgePointer-W_jdQ8zf.js +1 -0
  99. package/dist/chunks/browser-Bd7GeBH1.js +1 -0
  100. package/dist/chunks/btw-CVGRmL9a.js +1 -0
  101. package/dist/chunks/bundledMode--fG1S62b.js +1 -0
  102. package/dist/chunks/caches-BtmAri4e.js +3 -0
  103. package/dist/chunks/caches-BuTIAOtY.js +1 -0
  104. package/dist/chunks/capacityWake-CV_x9H8j.js +1 -0
  105. package/dist/chunks/ccrClient-HqMi5Kfu.js +1 -0
  106. package/dist/chunks/checksum-DgbnMdM-.js +1 -0
  107. package/dist/chunks/classPrivateFieldSet2-D4U5K-I3.js +1 -0
  108. package/dist/chunks/classPrivateMethodInitSpec-BXQD0Vh4.js +1 -0
  109. package/dist/chunks/claudeDesktop-aUMx06RK.js +1 -0
  110. package/dist/chunks/clear-C6nRzIQE.js +1 -0
  111. package/dist/chunks/cliLaunch-2AUoMnqx.js +1 -0
  112. package/dist/chunks/client-BeET1hnC.js +1 -0
  113. package/dist/chunks/client-DchQnIJD.js +36 -0
  114. package/dist/chunks/client-DvAL7lY8.js +8 -0
  115. package/dist/chunks/color-DXI_4ibU.js +1 -0
  116. package/dist/chunks/color-convert-p91EwGT7.js +1 -0
  117. package/dist/chunks/commands-VjcG4qFq.js +1 -0
  118. package/dist/chunks/commitAttribution-Cm40fdNU.js +2 -0
  119. package/dist/chunks/commitAttribution-Lb3qUlAR.js +1 -0
  120. package/dist/chunks/compact-DPTVpJ4D.js +2 -0
  121. package/dist/chunks/completionCache-BQaLkB4d.js +4 -0
  122. package/dist/chunks/completionCache-CW8lKIgy.js +1 -0
  123. package/dist/chunks/config-0cRberzR.js +1 -0
  124. package/dist/chunks/config-BSXLgwpD.js +1 -0
  125. package/dist/chunks/config-BrxKpHpR.js +1 -0
  126. package/dist/chunks/config-C7YHKCPV.js +3 -0
  127. package/dist/chunks/config-CLmFk-5V.js +1 -0
  128. package/dist/chunks/connectHeadless-CqRoEtrg.js +1 -0
  129. package/dist/chunks/context-C_cKrBUn.js +1 -0
  130. package/dist/chunks/context-noninteractive-DnH6Q9Lu.js +54 -0
  131. package/dist/chunks/context-noninteractive-rUZ3ydmJ.js +1 -0
  132. package/dist/chunks/controlMessageCompat-IFu4Gc1y.js +1 -0
  133. package/dist/chunks/conversation-GJxfkr6M.js +1 -0
  134. package/dist/chunks/conversation-oK3aFzqO.js +1 -0
  135. package/dist/chunks/createSSHSession--bWmmIk9.js +6 -0
  136. package/dist/chunks/createSession-DIr4sUp6.js +1 -0
  137. package/dist/chunks/createSession-DM4acqaC.js +1 -0
  138. package/dist/chunks/cron-3LntnnhJ.js +1 -0
  139. package/dist/chunks/crossProjectResume-DKrtjTpm.js +40 -0
  140. package/dist/chunks/cwd-BuJhkTrc.js +1 -0
  141. package/dist/chunks/cwd-D-tY2NKc.js +1 -0
  142. package/dist/chunks/daemon-B9lBPdBJ.js +2 -0
  143. package/dist/chunks/dangerousBackend-DwcP0P08.js +1 -0
  144. package/dist/chunks/datadog-ByS7LGGa.js +1 -0
  145. package/dist/chunks/datadog-DNCsyfSO.js +1 -0
  146. package/dist/chunks/debug-DzZUT2Wv.js +1 -0
  147. package/dist/chunks/debug-IKW-jE7K.js +39 -0
  148. package/dist/chunks/debugUtils-D2981c0Z.js +1 -0
  149. package/dist/chunks/defineProperty-C-QyHrDq.js +1 -0
  150. package/dist/chunks/desktop-B5cvrcOQ.js +1 -0
  151. package/dist/chunks/detached-rfIUyc-B.js +5 -0
  152. package/dist/chunks/detect-libc-CxbBtWJu.js +1 -0
  153. package/dist/chunks/detectRepository-6nw-Aw3v.js +1 -0
  154. package/dist/chunks/detectRepository-ReZ0Fz8Z.js +1 -0
  155. package/dist/chunks/diff-cXAp9cNN.js +1 -0
  156. package/dist/chunks/directoryCompletion-DBM2o5kx.js +1 -0
  157. package/dist/chunks/dist-CXlEpGqr.js +20 -0
  158. package/dist/chunks/dist-DESLAofA.js +1 -0
  159. package/dist/chunks/dist-DIee4wq1.js +29 -0
  160. package/dist/chunks/dist-Dopnn8wS.js +5 -0
  161. package/dist/chunks/dist-es-5t7v8oaj.js +1 -0
  162. package/dist/chunks/dist-es-BF6bR-Ik.js +2 -0
  163. package/dist/chunks/dist-es-BIjDeceU.js +1 -0
  164. package/dist/chunks/dist-es-BOPBJQo3.js +1 -0
  165. package/dist/chunks/dist-es-Bfr4TzQe.js +3 -0
  166. package/dist/chunks/dist-es-Byxccz_-.js +1 -0
  167. package/dist/chunks/dist-es-C-OjW2Ao.js +1 -0
  168. package/dist/chunks/dist-es-C3reqy7X.js +1 -0
  169. package/dist/chunks/dist-es-C7vygWzp.js +1 -0
  170. package/dist/chunks/dist-es-CEk66gUu.js +1 -0
  171. package/dist/chunks/dist-es-CIULjvtA2.js +1 -0
  172. package/dist/chunks/dist-es-CMtO44xC.js +1 -0
  173. package/dist/chunks/dist-es-CQMt6zRM.js +1 -0
  174. package/dist/chunks/dist-es-CYPVg66r.js +9 -0
  175. package/dist/chunks/dist-es-Cd_AeqMK.js +6 -0
  176. package/dist/chunks/dist-es-Cgsa8pb82.js +1 -0
  177. package/dist/chunks/dist-es-Cwru7c2B2.js +1 -0
  178. package/dist/chunks/dist-es-D1Y8zSMI.js +1 -0
  179. package/dist/chunks/dist-es-D1wHe_zh.js +1 -0
  180. package/dist/chunks/dist-es-DKFm0FJ7.js +1 -0
  181. package/dist/chunks/dist-es-DKIwwJME.js +1 -0
  182. package/dist/chunks/dist-es-DNFTCbrP.js +1 -0
  183. package/dist/chunks/dist-es-DXIR5NLi2.js +1 -0
  184. package/dist/chunks/dist-es-DelBIxNM.js +1 -0
  185. package/dist/chunks/dist-es-DmdZmEJ-.js +1 -0
  186. package/dist/chunks/dist-es-Gt_DpXlP.js +1 -0
  187. package/dist/chunks/dist-es-gUzZ_7Vf.js +1 -0
  188. package/dist/chunks/dist-es-kj-F5A132.js +1 -0
  189. package/dist/chunks/dist-es-yHGBqhBe.js +1 -0
  190. package/dist/chunks/doctor-CTMHXZvQ.js +1 -0
  191. package/dist/chunks/earlyInput-BTC_Wucv.js +2 -0
  192. package/dist/chunks/earlyInput-xcoTbKQn.js +1 -0
  193. package/dist/chunks/effort-Br8KKHdx.js +9 -0
  194. package/dist/chunks/entry-4lIRMrLI.js +14 -0
  195. package/dist/chunks/envLessBridgeConfig-CGuIxFzJ.js +1 -0
  196. package/dist/chunks/envLessBridgeConfig-D_Jg4fJy.js +1 -0
  197. package/dist/chunks/envUtils-DSxRz_kt.js +1 -0
  198. package/dist/chunks/esm-BYnFh4pG.js +1 -0
  199. package/dist/chunks/esm-Bx6rTxIs.js +1 -0
  200. package/dist/chunks/esm-C367Cyo-.js +1 -0
  201. package/dist/chunks/esm-C8Zkk1Ux.js +1 -0
  202. package/dist/chunks/esm-CGx9qY3q.js +56 -0
  203. package/dist/chunks/esm-CXM9jqO_.js +1 -0
  204. package/dist/chunks/esm-CXczu_-W.js +1 -0
  205. package/dist/chunks/esm-CXt5K8Xt.js +1 -0
  206. package/dist/chunks/esm-Cb-L4oAk.js +1 -0
  207. package/dist/chunks/esm-D6ZZCdtk.js +1 -0
  208. package/dist/chunks/esm-DhRjocaU.js +1 -0
  209. package/dist/chunks/esm-DklLYEuz.js +1 -0
  210. package/dist/chunks/esm-IYgGg4wR.js +1 -0
  211. package/dist/chunks/esm-lWlUmoUA.js +1 -0
  212. package/dist/chunks/esm-lyfry1WB.js +10 -0
  213. package/dist/chunks/esm-wGnzjq4Z.js +1 -0
  214. package/dist/chunks/event-streams-C0Zy0Uqv.js +1 -0
  215. package/dist/chunks/event-streams-DoqJmjFN.js +1 -0
  216. package/dist/chunks/eventLoopStallDetector-Cg_RXU1q.js +1 -0
  217. package/dist/chunks/execAsync-Bv2yxuGe.js +1 -0
  218. package/dist/chunks/execFileNoThrow-COKYqVQj.js +34 -0
  219. package/dist/chunks/execSyncWrapper-DZJ3tNWF.js +1 -0
  220. package/dist/chunks/exit-BOhGfSlm.js +2 -0
  221. package/dist/chunks/exit-Z9oWrqE4.js +1 -0
  222. package/dist/chunks/extra-usage-BS4aVOt5.js +1 -0
  223. package/dist/chunks/extra-usage-DtAIhW74.js +1 -0
  224. package/dist/chunks/extra-usage-core-CdL1ltqq.js +1 -0
  225. package/dist/chunks/extra-usage-noninteractive-DxxRI0Yx.js +1 -0
  226. package/dist/chunks/extraUsage-BYZdi44Y.js +1 -0
  227. package/dist/chunks/extractMemories-C4f9JWuI.js +1 -0
  228. package/dist/chunks/fast-B0OB4x7K.js +1 -0
  229. package/dist/chunks/fast-DKqiojzf.js +1 -0
  230. package/dist/chunks/featureCheck-CrJeuheQ.js +1 -0
  231. package/dist/chunks/featureCheck-HslM03dr.js +1 -0
  232. package/dist/chunks/feedback-yB19xph5.js +1 -0
  233. package/dist/chunks/figures-5ThXQEtq.js +1 -0
  234. package/dist/chunks/file-D1cN3LMK.js +12 -0
  235. package/dist/chunks/fileStateCache-DDW5toIs.js +1 -0
  236. package/dist/chunks/files-DAzGtmzz.js +2 -0
  237. package/dist/chunks/firstPartyEventLogger-CdUpe6Lh.js +1 -0
  238. package/dist/chunks/firstPartyEventLogger-hU-LPkje.js +5 -0
  239. package/dist/chunks/flushGate-ZFr8yv7F.js +1 -0
  240. package/dist/chunks/foundry-sdk-BdeF2aBu.js +1 -0
  241. package/dist/chunks/fpsMetrics-Cf_hdtiJ.js +1 -0
  242. package/dist/chunks/from-CgDRRLiX.js +4 -0
  243. package/dist/chunks/gemini-DqAv8_GY.js +1 -0
  244. package/dist/chunks/generateRecap-lO2PDlx8.js +1 -0
  245. package/dist/chunks/generateSessionName-48veu5dv.js +1 -0
  246. package/dist/chunks/genericProcessUtils-F1Qcb1sO.js +23 -0
  247. package/dist/chunks/getMachineId-bsd-Cut1kHoA.js +1 -0
  248. package/dist/chunks/getMachineId-darwin-CsRhaP3y.js +2 -0
  249. package/dist/chunks/getMachineId-linux-Bd7UBNRQ.js +1 -0
  250. package/dist/chunks/getMachineId-unsupported-vFGP8E_8.js +1 -0
  251. package/dist/chunks/getMachineId-win-DamF2CH_.js +1 -0
  252. package/dist/chunks/git-BE_FiJZp.js +1 -0
  253. package/dist/chunks/git-tyaWOgRL.js +6 -0
  254. package/dist/chunks/githubRepoPathMapping-BlR0BphY.js +1 -0
  255. package/dist/chunks/goal-Bn8Kz2Dp.js +3 -0
  256. package/dist/chunks/graceful-fs-DDVg0cja.js +2 -0
  257. package/dist/chunks/grok-DhnO_KDC.js +1 -0
  258. package/dist/chunks/grove-DotW04-v.js +7 -0
  259. package/dist/chunks/hash-Tu-My5Vp.js +1 -0
  260. package/dist/chunks/heapdump-DkZSKNbp.js +5 -0
  261. package/dist/chunks/help-DU_BcZtU.js +1 -0
  262. package/dist/chunks/hooks-BTMWE5Qx.js +79 -0
  263. package/dist/chunks/hooks-DONAb_nq.js +1 -0
  264. package/dist/chunks/hostGuard-Dh296c6q.js +1 -0
  265. package/dist/chunks/inboundAttachments-BcEgi49j.js +1 -0
  266. package/dist/chunks/inboundAttachments-DVs3_m48.js +1 -0
  267. package/dist/chunks/index.min-D75yiGLN.js +1 -0
  268. package/dist/chunks/initReplBridge-D0Xec8S-.js +1 -0
  269. package/dist/chunks/install-BkfXeXpv.js +1 -0
  270. package/dist/chunks/instinctParser-Dt-lqnDe.js +1 -0
  271. package/dist/chunks/instrumentation-H0XRS1yG.js +21 -0
  272. package/dist/chunks/intl-cKc-V6Mq.js +1 -0
  273. package/dist/chunks/isObject-C6qM3WEW.js +1 -0
  274. package/dist/chunks/isSymbol-BO6cdPI7.js +1 -0
  275. package/dist/chunks/job-DKtLkF8V.js +2 -0
  276. package/dist/chunks/json-bigint-bonnP-Hz.js +8 -0
  277. package/dist/chunks/jsx-runtime-Bb4Xn-E0.js +1 -0
  278. package/dist/chunks/jws-BscXOT9I.js +3 -0
  279. package/dist/chunks/jwtUtils-C-ojmb8W.js +1 -0
  280. package/dist/chunks/keybindings-ez51eHHp.js +2 -0
  281. package/dist/chunks/language-BuRSO2sR.js +1 -0
  282. package/dist/chunks/language-Da4KNbjm.js +1 -0
  283. package/dist/chunks/launchAgentsPlatform-BQyPdrHp.js +1 -0
  284. package/dist/chunks/launchCommand-1qkTCKpf.js +1 -0
  285. package/dist/chunks/launchLocalMemory-CWHAj7CX.js +3 -0
  286. package/dist/chunks/launchLocalVault-D8iJdtsP.js +3 -0
  287. package/dist/chunks/launchMemoryStores-W7jWG2uH.js +1 -0
  288. package/dist/chunks/launchOnboarding-q__LaLy1.js +8 -0
  289. package/dist/chunks/launchSchedule-BWi9F5vh.js +1 -0
  290. package/dist/chunks/launchSkillStore-4wd4MQBc.js +1 -0
  291. package/dist/chunks/launchTeleport-BlCf2QM_.js +3 -0
  292. package/dist/chunks/launchVault-C7u7LZV7.js +1 -0
  293. package/dist/chunks/lazySchema-uxlVVNM1.js +1 -0
  294. package/dist/chunks/lib-BSzUGQb_.js +2 -0
  295. package/dist/chunks/lib-BlVGipXx.js +14 -0
  296. package/dist/chunks/lib-rQZENxQg.js +8 -0
  297. package/dist/chunks/loadAgentsDir-Dgd-fzNt.js +1 -0
  298. package/dist/chunks/loadAgentsDir-nzr38hai.js +3990 -0
  299. package/dist/chunks/loadPluginHooks-z1-zvBLw.js +1 -0
  300. package/dist/chunks/loadSso-DSxfVpgX.js +1 -0
  301. package/dist/chunks/localSearch-B-L_ldos.js +1 -0
  302. package/dist/chunks/localSearch-D-FprOMr.js +1 -0
  303. package/dist/chunks/lockfile-D5-j7HOZ.js +1 -0
  304. package/dist/chunks/log-B3eB4EFv.js +1 -0
  305. package/dist/chunks/logoV2Utils-RQ160dI2.js +1 -0
  306. package/dist/chunks/magicDocs-BqZ0GewA.js +57 -0
  307. package/dist/chunks/main-DeFMhaFE.js +31 -0
  308. package/dist/chunks/main-y7LJ5qUc.js +1243 -0
  309. package/dist/chunks/mappers-CWykjGfP.js +1 -0
  310. package/dist/chunks/mcp-CSFPAfaW.js +2 -0
  311. package/dist/chunks/mcp-DBwT4pa9.js +6 -0
  312. package/dist/chunks/mcp-DvZTaHZE.js +1 -0
  313. package/dist/chunks/memoize-BK3gG5ob.js +1 -0
  314. package/dist/chunks/memoize-BO31Ws9Q.js +1 -0
  315. package/dist/chunks/memory-DcpPpYN0.js +1 -0
  316. package/dist/chunks/metadata-BRLJvh61.js +1 -0
  317. package/dist/chunks/modalContext-DFjKLCB6.js +1 -0
  318. package/dist/chunks/mode-BkViT_0o.js +2 -0
  319. package/dist/chunks/model--z4Di9QO.js +1 -0
  320. package/dist/chunks/model-CZktWw6o.js +1 -0
  321. package/dist/chunks/model-DfFA3qMO.js +1 -0
  322. package/dist/chunks/multipart-parser-DDLYsngd.js +2 -0
  323. package/dist/chunks/nativeInstaller-GcIk7G2Y.js +1 -0
  324. package/dist/chunks/oauth-BqJqV-2M.js +1 -0
  325. package/dist/chunks/oauth-C8X_p8Gc.js +1 -0
  326. package/dist/chunks/observationStore-DzCdXq8U.js +4 -0
  327. package/dist/chunks/onChangeAppState-DwGVi-BC.js +1 -0
  328. package/dist/chunks/open-BtQHzzL9.js +1 -0
  329. package/dist/chunks/openai-B2wxZDQx.js +10 -0
  330. package/dist/chunks/openaiShared-G2-w4gJt.js +1 -0
  331. package/dist/chunks/output-style-BM3qAHLA.js +1 -0
  332. package/dist/chunks/overageCreditGrant-CjK49axw.js +1 -0
  333. package/dist/chunks/p-map-B1EeBuI8.js +1 -0
  334. package/dist/chunks/p-map-HKDr3iDo.js +1 -0
  335. package/dist/chunks/package-BC0bllK8.js +1 -0
  336. package/dist/chunks/panel-B-nrcHpm.js +1 -0
  337. package/dist/chunks/panel-R4ue6pSW.js +1 -0
  338. package/dist/chunks/panelCall-I_fbgub5.js +1 -0
  339. package/dist/chunks/parseConnectUrl-BiyKR5-x.js +1 -0
  340. package/dist/chunks/parser-BlM_Fk4J.js +1 -0
  341. package/dist/chunks/parser-CQrasoUB.js +1 -0
  342. package/dist/chunks/partition-CxRF7T-f.js +1 -0
  343. package/dist/chunks/passes-U_h-hNu-.js +1 -0
  344. package/dist/chunks/path-BCSE0S-c.js +1 -0
  345. package/dist/chunks/permissions-B8epy16o.js +3 -0
  346. package/dist/chunks/permissions-CeYKbtSC.js +1 -0
  347. package/dist/chunks/permissions-Cn_6f8CB.js +1 -0
  348. package/dist/chunks/pidLock-CBJDnBG_.js +3 -0
  349. package/dist/chunks/pipeTransport-D3Qx9v1V.js +1 -0
  350. package/dist/chunks/plan-BAhStVci.js +1 -0
  351. package/dist/chunks/platform-EtecGacO.js +2 -0
  352. package/dist/chunks/plist-Bzo2VMe9.js +6 -0
  353. package/dist/chunks/plugin-D9huNnv6.js +1 -0
  354. package/dist/chunks/pluginAutoupdate-BfmyxR5g.js +1 -0
  355. package/dist/chunks/pluginBlocklist-03sZaZa6.js +1 -0
  356. package/dist/chunks/pluginCliCommands-P2Ndi1r1.js +1 -0
  357. package/dist/chunks/pluginFlagging-BVy7Xv_0.js +1 -0
  358. package/dist/chunks/pluginOperations-Cz37qcjF.js +2 -0
  359. package/dist/chunks/pluginStartupCheck-BqUwHcMD.js +1 -0
  360. package/dist/chunks/pluginStartupCheck-w24D-wwk.js +1 -0
  361. package/dist/chunks/plugins-B0hiIN4q.js +4 -0
  362. package/dist/chunks/policyLimits-Dem-XJ_h.js +1 -0
  363. package/dist/chunks/pollConfig-C2Ac8WMU.js +1 -0
  364. package/dist/chunks/poller-CpLBoB-N.js +1 -0
  365. package/dist/chunks/poor-CfbMKZNJ.js +1 -0
  366. package/dist/chunks/poorMode-Bsw2V-V_.js +1 -0
  367. package/dist/chunks/poorMode-jvImnkty.js +1 -0
  368. package/dist/chunks/postCommitAttribution-DoSP9wZD.js +1 -0
  369. package/dist/chunks/print-ozjC0Mhg.js +23 -0
  370. package/dist/chunks/privacy-settings-DeGoBRrZ.js +1 -0
  371. package/dist/chunks/process-CNfq37LF.js +1 -0
  372. package/dist/chunks/process-gEbdy6uY.js +1 -0
  373. package/dist/chunks/processBashCommand-loWZ8MSE.js +1 -0
  374. package/dist/chunks/processSlashCommand-BdouajZb.js +5 -0
  375. package/dist/chunks/projectContext-BaDZBAoK.js +1 -0
  376. package/dist/chunks/projectContext-D9MDwJUF.js +1 -0
  377. package/dist/chunks/prompt-Bef63FhB.js +132 -0
  378. package/dist/chunks/prompt-C7wd1H_i.js +1 -0
  379. package/dist/chunks/prompt-DIoNqZvO.js +1 -0
  380. package/dist/chunks/promptEditor-foiayhdY.js +4 -0
  381. package/dist/chunks/protocolHandler-BsiB1oW_.js +13 -0
  382. package/dist/chunks/protocols-CCsohXid.js +18 -0
  383. package/dist/chunks/protocols-CnYQjBlj.js +2 -0
  384. package/dist/chunks/proxy-Cn2YwITp.js +99 -0
  385. package/dist/chunks/rate-limit-options-DTJPDcTr.js +1 -0
  386. package/dist/chunks/rcDebugLog-BUuD-X1D.js +11 -0
  387. package/dist/chunks/reconciler-DqXTmV3J.js +4 -0
  388. package/dist/chunks/referral-DP_GshTS.js +1 -0
  389. package/dist/chunks/refresh-CNzXPAFw.js +1 -0
  390. package/dist/chunks/registerProtocol-CjxlFsKw.js +36 -0
  391. package/dist/chunks/release-notes-BxgK8zWO.js +4 -0
  392. package/dist/chunks/releaseNotes-CbSktIJW.js +2 -0
  393. package/dist/chunks/reload-plugins-CDu6yU5-.js +1 -0
  394. package/dist/chunks/remote-env-B4HnhISc.js +1 -0
  395. package/dist/chunks/remoteBridgeCore-D-wG5jau.js +1 -0
  396. package/dist/chunks/remoteManagedSettings-B7gt0VAX.js +1 -0
  397. package/dist/chunks/rename-DlbMb24l.js +1 -0
  398. package/dist/chunks/renderOptions-5kWQpVr2.js +1 -0
  399. package/dist/chunks/resume-BB5iBogS.js +2 -0
  400. package/dist/chunks/rewind-D12hCfZD.js +1 -0
  401. package/dist/chunks/ripgrep-BQgJ02F9.js +1 -0
  402. package/dist/chunks/ripgrep-BvDwiKJ3.js +5 -0
  403. package/dist/chunks/rollback-BPWRKlIZ.js +11 -0
  404. package/dist/chunks/rolldown-runtime-DaDcL9Zw.js +1 -0
  405. package/dist/chunks/runtimeObserver-BNH2WGE3.js +1 -0
  406. package/dist/chunks/runtimeObserver-Ci-5gvYg.js +10 -0
  407. package/dist/chunks/sandbox-adapter-Coe1GDAE.js +1 -0
  408. package/dist/chunks/sandbox-toggle-B2Yk4y2V.js +1 -0
  409. package/dist/chunks/sanitization-DV-94a9Z.js +1 -0
  410. package/dist/chunks/satisfies-DQJHNtpQ.js +1 -0
  411. package/dist/chunks/sdkHeapDumpMonitor-WdXUV7DV.js +1 -0
  412. package/dist/chunks/searchExtraTools-BnWZ9roi.js +1 -0
  413. package/dist/chunks/semver-BMRJYn3q.js +1 -0
  414. package/dist/chunks/semver-DQo45qGo.js +1 -0
  415. package/dist/chunks/serde-f76bObzR.js +4 -0
  416. package/dist/chunks/server-LdbAb0sV.js +1 -0
  417. package/dist/chunks/serverBanner-BdExKFHT.js +1 -0
  418. package/dist/chunks/serverLog-BFmvyJ93.js +1 -0
  419. package/dist/chunks/session-Bmx7L3Mt.js +2 -0
  420. package/dist/chunks/sessionDataUploader-CaCjwsA2.js +1 -0
  421. package/dist/chunks/sessionDiscovery-DcEAr5vJ.js +1 -0
  422. package/dist/chunks/sessionFileAccessHooks-BhdOmW9o.js +1 -0
  423. package/dist/chunks/sessionManager-CPa049BO.js +1 -0
  424. package/dist/chunks/sessionMemory-Bsg2unYX.js +1 -0
  425. package/dist/chunks/sessionMemory-CIbCojm-.js +1 -0
  426. package/dist/chunks/sessionMemoryUtils-Cjb57wtC.js +1 -0
  427. package/dist/chunks/sessionObserver-CRU1qWnP.js +1 -0
  428. package/dist/chunks/sessionObserver-DQwHsDrM.js +20 -0
  429. package/dist/chunks/sessionStorage-BxDN8qRc.js +1 -0
  430. package/dist/chunks/sessionStoragePortable-Cx6JQ5Ye.js +3 -0
  431. package/dist/chunks/sessionTitle-B8jcexkQ.js +14 -0
  432. package/dist/chunks/sessionTracing-BuLsL6qA.js +11 -0
  433. package/dist/chunks/settings-5PQdphqC.js +19 -0
  434. package/dist/chunks/settingsSync-BDeuErb5.js +1 -0
  435. package/dist/chunks/setup-BKEnSLR9.js +3 -0
  436. package/dist/chunks/shadowedRuleDetection-7Z8ezTKF.js +1 -0
  437. package/dist/chunks/shellQuote-fB02N16J.js +4 -0
  438. package/dist/chunks/sideQuestion-CYdNATPW.js +20 -0
  439. package/dist/chunks/signin-CPaEtsnK.js +1 -0
  440. package/dist/chunks/sink-DjKoYMsA.js +1 -0
  441. package/dist/chunks/sink-iYxWapbU.js +1 -0
  442. package/dist/chunks/sinks-GryGVRT8.js +2 -0
  443. package/dist/chunks/sinks-jfaIjsRJ.js +1 -0
  444. package/dist/chunks/skill-learning-E8tQed-Q.js +5 -0
  445. package/dist/chunks/skillChangeDetector-A8SAuyo9.js +1 -0
  446. package/dist/chunks/skillGapStore-B5rl12bV.js +1 -0
  447. package/dist/chunks/skillGapStore-CjJrxxjk.js +5 -0
  448. package/dist/chunks/skillGenerator-BDR_z3-X.js +8 -0
  449. package/dist/chunks/skillLearning-BQtfFE0g.js +1 -0
  450. package/dist/chunks/skillLearning-C8ihdryM.js +1 -0
  451. package/dist/chunks/skillPanel-yR8Oi-mO.js +28 -0
  452. package/dist/chunks/skillSearchPanel-DUQQUCUS.js +21 -0
  453. package/dist/chunks/skills-NAZQ3j-t.js +1 -0
  454. package/dist/chunks/slashCommandParsing-RQb_7Xzt.js +1 -0
  455. package/dist/chunks/src-CDCSSo0U2.js +53 -0
  456. package/dist/chunks/src-CHw1lvBc.js +3 -0
  457. package/dist/chunks/src-CST_jFnT.js +1 -0
  458. package/dist/chunks/src-CgZmCiiH.js +2 -0
  459. package/dist/chunks/src-CiJCsqUl.js +9 -0
  460. package/dist/chunks/src-D06Xyj4g.js +2 -0
  461. package/dist/chunks/src-DCUgdrYl.js +5 -0
  462. package/dist/chunks/src-DLz3FZm1.js +1 -0
  463. package/dist/chunks/src-DPUAq5Ty.js +1 -0
  464. package/dist/chunks/src-DQOX_xI1.js +1 -0
  465. package/dist/chunks/src-Dt5IJd3C.js +1 -0
  466. package/dist/chunks/src-Dvp6-vB7.js +19 -0
  467. package/dist/chunks/src-PM8NIIu_.js +1 -0
  468. package/dist/chunks/src-l6_O0K-a.js +1 -0
  469. package/dist/chunks/src-xRRBgNzF.js +25 -0
  470. package/dist/chunks/sso-oidc-DFJ7SBvI.js +1 -0
  471. package/dist/chunks/startupProfiler-B0m6crkd.js +1 -0
  472. package/dist/chunks/startupProfiler-DxRQteII.js +3 -0
  473. package/dist/chunks/state-4KQ3kaqz.js +1 -0
  474. package/dist/chunks/state-53JDbNQM.js +1 -0
  475. package/dist/chunks/state-Cn_m2NOf.js +1 -0
  476. package/dist/chunks/staticRender-BIxpgNUq.js +1 -0
  477. package/dist/chunks/stats-h4yu84Q-.js +1 -0
  478. package/dist/chunks/status-BbdeubJG.js +1 -0
  479. package/dist/chunks/status-is_Bg_IB.js +2 -0
  480. package/dist/chunks/statusNoticeHelpers-CQ7CUugR.js +1 -0
  481. package/dist/chunks/stdio-4S7b8Uhx.js +1 -0
  482. package/dist/chunks/stdio-W_Kokrkh.js +3 -0
  483. package/dist/chunks/stickers-qJoNhPk4.js +1 -0
  484. package/dist/chunks/store-Z8rTjDHe.js +1 -0
  485. package/dist/chunks/stringUtils-CvXbHQRH.js +4 -0
  486. package/dist/chunks/sts-C2Gf2WYN.js +1 -0
  487. package/dist/chunks/subprocessEnv-BSQSomcK.js +1 -0
  488. package/dist/chunks/subprocessEnv-vrwzMgKn.js +1 -0
  489. package/dist/chunks/supports-color-uJ1LqA-P.js +1 -0
  490. package/dist/chunks/systemPromptSections-CgpggIYX.js +1 -0
  491. package/dist/chunks/systemPromptSections-IePG5K8r.js +1 -0
  492. package/dist/chunks/systemTheme-Ceakddth.js +1 -0
  493. package/dist/chunks/tag-i3HZ4lhj.js +11 -0
  494. package/dist/chunks/tasks-HzsYNTZ1.js +1 -0
  495. package/dist/chunks/teleport-hN3cAbYC.js +1 -0
  496. package/dist/chunks/templateJobs-CIv_ysje.js +12 -0
  497. package/dist/chunks/terminalSetup-C0PF87iu.js +33 -0
  498. package/dist/chunks/terminalSetup-CxniwSF-.js +1 -0
  499. package/dist/chunks/theme-BKIHX_Dx.js +1 -0
  500. package/dist/chunks/thinkback-BA4cMz4D.js +1 -0
  501. package/dist/chunks/thinkback-mT-8FIT-.js +1 -0
  502. package/dist/chunks/thinkback-play-Cfk49mvF.js +1 -0
  503. package/dist/chunks/tmux-CbsW-VDJ.js +1 -0
  504. package/dist/chunks/toolEventObserver-8FQtxeVv.js +1 -0
  505. package/dist/chunks/toolEventObserver-B1xvyKdE.js +1 -0
  506. package/dist/chunks/toolPool-CHVDZqh7.js +1 -0
  507. package/dist/chunks/trustedDevice-BYCh1ff7.js +1 -0
  508. package/dist/chunks/trustedDevice-DnIWErCt.js +1 -0
  509. package/dist/chunks/tui-fTa_pzdA.js +6 -0
  510. package/dist/chunks/types-BUyOCzUt.js +1 -0
  511. package/dist/chunks/types-Czs-_G1S.js +3 -0
  512. package/dist/chunks/types-a7X-tJpJ.js +17 -0
  513. package/dist/chunks/udsClient-Cg9bBD0p.js +1 -0
  514. package/dist/chunks/ultrareviewCommand-DCFRZsKp.js +3 -0
  515. package/dist/chunks/undercover-B-kKUWtK.js +1 -0
  516. package/dist/chunks/undercover-CsLPQb-a.js +31 -0
  517. package/dist/chunks/up-dO5BcPaq.js +12 -0
  518. package/dist/chunks/updateCCB-CfUnkOLT.js +11 -0
  519. package/dist/chunks/upgrade-CngUwvY4.js +1 -0
  520. package/dist/chunks/upgrade-kpttjebY.js +1 -0
  521. package/dist/chunks/upload-DDhQqV8n.js +1 -0
  522. package/dist/chunks/upstreamproxy-CvcjNY7J.js +11 -0
  523. package/dist/chunks/usage-CJ5w0907.js +1 -0
  524. package/dist/chunks/usage-eZRwLa77.js +1 -0
  525. package/dist/chunks/useExitOnCtrlCDWithKeybindings-yAroCqu4.js +1 -0
  526. package/dist/chunks/useMainLoopModel-BNFW-g8E.js +1 -0
  527. package/dist/chunks/useManagePlugins-CTtPaQRP.js +1 -0
  528. package/dist/chunks/useMergedTools-CZJffsmf.js +1 -0
  529. package/dist/chunks/useSearchInput-C-CqUK6w.js +1 -0
  530. package/dist/chunks/useSettingsErrors-BWlJCgYF.js +1 -0
  531. package/dist/chunks/util-DJV0joAW.js +1 -0
  532. package/dist/chunks/v4-jw6qOKwQ.js +65 -0
  533. package/dist/chunks/validatePlugin-CRmpIGLV.js +1 -0
  534. package/dist/chunks/vertex-sdk-DjXcZ2J7.js +9 -0
  535. package/dist/chunks/vim-n8-UT5w-.js +1 -0
  536. package/dist/chunks/which-BBCjXfI2.js +1 -0
  537. package/dist/chunks/windowsPaths-D6T_3XaU.js +1 -0
  538. package/dist/chunks/windowsPaths-DUKTzBck.js +1 -0
  539. package/dist/chunks/workSecret-C_lv0dRh.js +1 -0
  540. package/dist/chunks/workerRegistry-BdHi7_sN.js +1 -0
  541. package/dist/chunks/worktree-YDeHMlHZ.js +1 -0
  542. package/dist/chunks/worktreeModeEnabled-BFOYTTTr.js +1 -0
  543. package/dist/chunks/worktreeModeEnabled-D68iEHpC.js +1 -0
  544. package/dist/chunks/wrapper-K8ZapJVu.js +6 -0
  545. package/dist/chunks/xdg-DcF9ejUM.js +1 -0
  546. package/dist/chunks/zod-CuNujUwx.js +1 -0
  547. package/dist/cli-bun.js +2 -0
  548. package/dist/cli-node.js +2 -0
  549. package/dist/cli.js +2 -0
  550. package/dist/vendor/ripgrep/x64-linux/rg +0 -0
  551. package/package.json +218 -0
  552. package/scripts/postinstall.cjs +389 -0
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,g as n,n as r,p as i,w as a,y as o}from"./esm-CXt5K8Xt.js";e(),r(),n();var s=class extends a{constructor(e={}){super(o(t(e,`LOGS`,`v1/logs`,{"Content-Type":`application/x-protobuf`}),i))}};export{s as OTLPLogExporter};
@@ -0,0 +1 @@
1
+ import{C as e,_ as t,g as n,l as r,n as i,w as a,y as o}from"./esm-CXt5K8Xt.js";e(),i(),n();var s=class extends a{constructor(e={}){super(o(t(e,`TRACES`,`v1/traces`,{"Content-Type":`application/x-protobuf`}),r))}};export{s as OTLPTraceExporter};
@@ -0,0 +1 @@
1
+ import{n as e,o as t,r as n,t as r}from"./rolldown-runtime-DaDcL9Zw.js";import{n as i,t as a}from"./defineProperty-C-QyHrDq.js";import{n as o,s,w as c}from"./esm-lWlUmoUA.js";import{N as l,P as u,a as d,d as f,m as p,z as m}from"./esm-Cb-L4oAk.js";import{a as h,t as g}from"./esm-Bx6rTxIs.js";import{a as _,c as v,n as y}from"./esm-lyfry1WB.js";import*as b from"path";import{Readable as x}from"stream";import*as S from"fs";import*as C from"zlib";var w,T=e((()=>{i(),w=class{constructor(e){a(this,`_delegate`,void 0),this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}})),E,D=e((()=>{i(),E=class extends Error{constructor(e,t,n){super(e),a(this,`code`,void 0),a(this,`name`,`OTLPExporterError`),a(this,`data`,void 0),this.data=n,this.code=t}}}));function ee(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function te(e){if(e!=null)return async()=>e}function ne(e,t,n){return{timeoutMillis:ee(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function re(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:`none`}}var O=e((()=>{})),k,ie=e((()=>{(function(e){e.NONE=`none`,e.GZIP=`gzip`})(k||(k={}))}));function ae(e){return new oe(e.concurrencyLimit)}var oe,se=e((()=>{i(),oe=class{constructor(e){a(this,`_concurrencyLimit`,void 0),a(this,`_sendingPromises`,[]),this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error(`Concurrency Limit reached`);this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}}));function ce(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function le(){return{handleResponse(e){e==null||!ce(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||s.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}var ue=e((()=>{o()}));function de(e,t){return new fe(e.transport,e.serializer,le(),e.promiseHandler,t.timeout)}var fe,pe=e((()=>{d(),D(),ue(),o(),i(),fe=class{constructor(e,t,n,r,i){a(this,`_diagLogger`,void 0),a(this,`_transport`,void 0),a(this,`_serializer`,void 0),a(this,`_responseHandler`,void 0),a(this,`_promiseQueue`,void 0),a(this,`_timeout`,void 0),this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=i,this._diagLogger=s.createComponentLogger({namespace:`OTLPExportDelegate`})}export(e,t){if(this._diagLogger.debug(`items to be sent`,e),this._promiseQueue.hasReachedLimit()){t({code:f.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:f.FAILED,error:Error(`Nothing to send`)});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(e=>{if(e.status===`success`){if(e.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn(`Export succeeded but could not deserialize response - is the response specification compliant?`,t,e.data)}t({code:f.SUCCESS});return}else if(e.status===`failure`&&e.error){t({code:f.FAILED,error:e.error});return}else e.status===`retryable`?t({code:f.FAILED,error:e.error??new E(`Export failed with retryable status`)}):t({code:f.FAILED,error:new E(`Export failed with unknown error`)})},e=>t({code:f.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug(`shutdown started`),await this.forceFlush(),this._transport.shutdown()}}}));function me(e,t,n){return de({transport:n,serializer:t,promiseHandler:ae(e)},{timeout:e.timeoutMillis})}var he=e((()=>{se(),pe()})),ge=n({CompressionAlgorithm:()=>k,OTLPExporterBase:()=>w,OTLPExporterError:()=>E,createOtlpNetworkExportDelegate:()=>me,getSharedConfigurationDefaults:()=>re,mergeOtlpSharedConfigurationWithDefaults:()=>ne}),_e=e((()=>{T(),D(),O(),ie(),he()})),ve=r(((e,t)=>{(function(n,r){function i(e){return e.default||e}typeof define==`function`&&define.amd?define([],function(){var e={};return r(e),i(e)}):typeof e==`object`?(r(e),typeof t==`object`&&(t.exports=i(e))):(function(){var e={};r(e),n.Long=i(e)})()})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:e,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function n(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0});function r(e){return(e&&e.__isLong__)===!0}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}n.isLong=r;var a={},o={};function s(e,t){var n,r,i;return t?(e>>>=0,(i=0<=e&&e<256)&&(r=o[e],r)?r:(n=l(e,0,!0),i&&(o[e]=n),n)):(e|=0,(i=-128<=e&&e<128)&&(r=a[e],r)?r:(n=l(e,e<0?-1:0,!1),i&&(a[e]=n),n))}n.fromInt=s;function c(e,t){if(isNaN(e))return t?b:y;if(t){if(e<0)return b;if(e>=g)return T}else{if(e<=-_)return E;if(e+1>=_)return w}return e<0?c(-e,t).neg():l(e%h|0,e/h|0,t)}n.fromNumber=c;function l(e,t,r){return new n(e,t,r)}n.fromBits=l;var u=Math.pow;function d(e,t,n){if(e.length===0)throw Error(`empty string`);if(typeof t==`number`?(n=t,t=!1):t=!!t,e===`NaN`||e===`Infinity`||e===`+Infinity`||e===`-Infinity`)return t?b:y;if(n=n||10,n<2||36<n)throw RangeError(`radix`);var r;if((r=e.indexOf(`-`))>0)throw Error(`interior hyphen`);if(r===0)return d(e.substring(1),t,n).neg();for(var i=c(u(n,8)),a=y,o=0;o<e.length;o+=8){var s=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+s),n);if(s<8){var f=c(u(n,s));a=a.mul(f).add(c(l))}else a=a.mul(i),a=a.add(c(l))}return a.unsigned=t,a}n.fromString=d;function f(e,t){return typeof e==`number`?c(e,t):typeof e==`string`?d(e,t):l(e.low,e.high,typeof t==`boolean`?t:e.unsigned)}n.fromValue=f;var p=65536,m=1<<24,h=p*p,g=h*h,_=g/2,v=s(m),y=s(0);n.ZERO=y;var b=s(0,!0);n.UZERO=b;var x=s(1);n.ONE=x;var S=s(1,!0);n.UONE=S;var C=s(-1);n.NEG_ONE=C;var w=l(-1,2147483647,!1);n.MAX_VALUE=w;var T=l(-1,-1,!0);n.MAX_UNSIGNED_VALUE=T;var E=l(0,-2147483648,!1);n.MIN_VALUE=E;var D=n.prototype;D.toInt=function(){return this.unsigned?this.low>>>0:this.low},D.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},D.toString=function(e){if(e=e||10,e<2||36<e)throw RangeError(`radix`);if(this.isZero())return`0`;if(this.isNegative())if(this.eq(E)){var t=c(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}else return`-`+this.neg().toString(e);for(var i=c(u(e,6),this.unsigned),a=this,o=``;;){var s=a.div(i),l=(a.sub(s.mul(i)).toInt()>>>0).toString(e);if(a=s,a.isZero())return l+o;for(;l.length<6;)l=`0`+l;o=``+l+o}},D.getHighBits=function(){return this.high},D.getHighBitsUnsigned=function(){return this.high>>>0},D.getLowBits=function(){return this.low},D.getLowBitsUnsigned=function(){return this.low>>>0},D.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=this.high==0?this.low:this.high,t=31;t>0&&!(e&1<<t);t--);return this.high==0?t+1:t+33},D.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&e===-1&&!(this.low===0&&this.high===-2097152)},D.isZero=function(){return this.high===0&&this.low===0},D.eqz=D.isZero,D.isNegative=function(){return!this.unsigned&&this.high<0},D.isPositive=function(){return this.unsigned||this.high>=0},D.isOdd=function(){return(this.low&1)==1},D.isEven=function(){return(this.low&1)==0},D.equals=function(e){return r(e)||(e=f(e)),this.unsigned!==e.unsigned&&this.high>>>31==1&&e.high>>>31==1?!1:this.high===e.high&&this.low===e.low},D.eq=D.equals,D.notEquals=function(e){return!this.eq(e)},D.neq=D.notEquals,D.ne=D.notEquals,D.lessThan=function(e){return this.comp(e)<0},D.lt=D.lessThan,D.lessThanOrEqual=function(e){return this.comp(e)<=0},D.lte=D.lessThanOrEqual,D.le=D.lessThanOrEqual,D.greaterThan=function(e){return this.comp(e)>0},D.gt=D.greaterThan,D.greaterThanOrEqual=function(e){return this.comp(e)>=0},D.gte=D.greaterThanOrEqual,D.ge=D.greaterThanOrEqual,D.compare=function(e){if(r(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},D.comp=D.compare,D.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(x)},D.neg=D.negate,D.add=function(e){r(e)||(e=f(e));var t=this.high>>>16,n=this.high&65535,i=this.low>>>16,a=this.low&65535,o=e.high>>>16,s=e.high&65535,c=e.low>>>16,u=e.low&65535,d=0,p=0,m=0,h=0;return h+=a+u,m+=h>>>16,h&=65535,m+=i+c,p+=m>>>16,m&=65535,p+=n+s,d+=p>>>16,p&=65535,d+=t+o,d&=65535,l(m<<16|h,d<<16|p,this.unsigned)},D.subtract=function(e){return r(e)||(e=f(e)),this.add(e.neg())},D.sub=D.subtract,D.multiply=function(e){if(this.isZero())return this;if(r(e)||(e=f(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?b:y;if(this.eq(E))return e.isOdd()?E:y;if(e.eq(E))return this.isOdd()?E:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return c(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=this.high&65535,a=this.low>>>16,o=this.low&65535,s=e.high>>>16,u=e.high&65535,d=e.low>>>16,p=e.low&65535,m=0,h=0,g=0,_=0;return _+=o*p,g+=_>>>16,_&=65535,g+=a*p,h+=g>>>16,g&=65535,g+=o*d,h+=g>>>16,g&=65535,h+=i*p,m+=h>>>16,h&=65535,h+=a*d,m+=h>>>16,h&=65535,h+=o*u,m+=h>>>16,h&=65535,m+=n*p+i*d+a*u+o*s,m&=65535,l(g<<16|_,m<<16|h,this.unsigned)},D.mul=D.multiply,D.divide=function(e){if(r(e)||(e=f(e)),e.isZero())throw Error(`division by zero`);if(t)return!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1?this:l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(this.isZero())return this.unsigned?b:y;var n,i,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return S;a=b}else{if(this.eq(E))return e.eq(x)||e.eq(C)?E:e.eq(E)?x:(n=this.shr(1).div(e).shl(1),n.eq(y)?e.isNegative()?x:C:(i=this.sub(e.mul(n)),a=n.add(i.div(e)),a));if(e.eq(E))return this.unsigned?b:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=y}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),s=o<=48?1:u(2,o-48),d=c(n),p=d.mul(e);p.isNegative()||p.gt(i);)n-=s,d=c(n,this.unsigned),p=d.mul(e);d.isZero()&&(d=x),a=a.add(d),i=i.sub(p)}return a},D.div=D.divide,D.modulo=function(e){return r(e)||(e=f(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},D.mod=D.modulo,D.rem=D.modulo,D.not=function(){return l(~this.low,~this.high,this.unsigned)},D.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},D.clz=D.countLeadingZeros,D.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},D.ctz=D.countTrailingZeros,D.and=function(e){return r(e)||(e=f(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},D.or=function(e){return r(e)||(e=f(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},D.xor=function(e){return r(e)||(e=f(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},D.shiftLeft=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},D.shl=D.shiftLeft,D.shiftRight=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},D.shr=D.shiftRight,D.shiftRightUnsigned=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):l(e===32?this.high:this.high>>>e-32,0,this.unsigned)},D.shru=D.shiftRightUnsigned,D.shr_u=D.shiftRightUnsigned,D.rotateLeft=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(e-=32,t=32-e,l(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},D.rotl=D.rotateLeft,D.rotateRight=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(e-=32,t=32-e,l(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},D.rotr=D.rotateRight,D.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},D.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},D.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},D.toBytesLE=function(){var e=this.high,t=this.low;return[t&255,t>>>8&255,t>>>16&255,t>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]},D.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},typeof BigInt==`function`&&(n.fromBigInt=function(e,t){return l(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},n.fromValue=function(e,t){return typeof e==`bigint`?n.fromBigInt(e,t):f(e,t)},D.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e}),e.default=n})}));function ye(e){let t={};return Object.entries(e??{}).forEach(([e,n])=>{n===void 0?s.warn(`Header "${e}" has invalid value (${n}) and will be ignored`):t[e]=String(n)}),t}var be=e((()=>{o()}));function xe(e,t,n){return async()=>{let r={...await n()},i={};return t!=null&&Object.assign(i,await t()),e!=null&&Object.assign(i,ye(await e())),Object.assign(i,r)}}function Se(e){if(e!=null)try{let t=globalThis.location?.href;return new URL(e,t).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function Ce(e,t,n){return{...ne(e,t,n),headers:xe(e.headers,t.headers,n.headers),url:Se(e.url)??t.url??n.url}}function we(e,t){return{...re(),headers:async()=>e,url:`http://localhost:4318/`+t}}var Te=e((()=>{O(),be()}));function A(e){return async t=>{let n=t===`http:`,{Agent:r}=await(n?import(`http`):import(`https`));if(n){let{ca:t,cert:n,key:i,...a}=e;return new r(a)}return new r(e)}}function Ee(e,t,n){return{...Ce(e,t,n),agentFactory:e.agentFactory??t.agentFactory??n.agentFactory,userAgent:e.userAgent}}function De(e,t){return{...we(e,t),agentFactory:A({keepAlive:!0})}}var j=e((()=>{Te()}));function Oe(e){return e===429||e===502||e===503||e===504}function ke(e){if(e==null)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;let n=new Date(e).getTime()-Date.now();return n>=0?n:0}var Ae=e((()=>{})),je,Me=e((()=>{je=`0.215.0`}));function Ne(e,t,n,r,i,a,o,s){return new Promise(c=>{let l=new URL(t);i?n[`User-Agent`]=`${i} ${M}`:n[`User-Agent`]=M;let u=e({hostname:l.hostname,port:l.port,path:l.pathname,method:`POST`,headers:n,agent:a},e=>{let t=[],n=0;e.on(`data`,r=>{if(n+=r.length,n>4194304){c({status:`failure`,error:Error(`OTLP export response body exceeded size limit of ${Le} bytes`)}),e.destroy();return}t.push(r)}),e.on(`end`,()=>{e.statusCode&&e.statusCode<=299?c({status:`success`,data:Buffer.concat(t)}):e.statusCode&&Oe(e.statusCode)?c({status:`retryable`,retryInMillis:ke(e.headers[`retry-after`])}):c({status:`failure`,error:new E(e.statusMessage,e.statusCode,Buffer.concat(t).toString())})}),e.on(`error`,t=>{e.statusCode&&e.statusCode<=299?c({status:`success`}):e.statusCode&&Oe(e.statusCode)?c({status:`retryable`,error:t,retryInMillis:ke(e.headers[`retry-after`])}):c({status:`failure`,error:t})})});u.setTimeout(s,()=>{u.destroy(),c({status:`retryable`,error:Error(`Request timed out`)})}),u.on(`error`,e=>{Ie(e)?c({status:`retryable`,error:e}):c({status:`failure`,error:e})}),Pe(u,r,o,e=>{c({status:`failure`,error:e})})})}function Pe(e,t,n,r){let i=Fe(n);t===`gzip`&&(e.setHeader(`Content-Encoding`,`gzip`),i=i.on(`error`,r).pipe(C.createGzip()).on(`error`,r)),i.pipe(e).on(`error`,r)}function Fe(e){let t=new x;return t.push(e),t.push(null),t}function Ie(e){let t=new Set([`ECONNRESET`,`ECONNREFUSED`,`EPIPE`,`ETIMEDOUT`,`EAI_AGAIN`,`ENOTFOUND`,`ENETUNREACH`,`EHOSTUNREACH`]);return`code`in e&&typeof e.code==`string`&&t.has(e.code)}var M,Le,Re=e((()=>{Ae(),D(),Me(),M=`OTel-OTLP-Exporter-JavaScript/${je}`,Le=4*1024*1024}));async function ze(e){let{request:t}=await(e===`http:`?import(`http`):import(`https`));return t}function Be(e){return new Ve(e)}var Ve,He=e((()=>{Re(),i(),Ve=class{constructor(e){a(this,`_utils`,null),a(this,`_parameters`,void 0),this._parameters=e}async send(e,t){let{agent:n,request:r}=await this._loadUtils(),i=await this._parameters.headers();return Ne(r,this._parameters.url,i,this._parameters.compression,this._parameters.userAgent,n,e,t)}shutdown(){}async _loadUtils(){let e=this._utils;if(e===null){let t=new URL(this._parameters.url).protocol,[n,r]=await Promise.all([this._parameters.agentFactory(t),ze(t)]);e=this._utils={agent:n,request:r}}return e}}}));function Ue(){return 2*P*Math.random()-P}function We(e){return new Je(e.transport)}var N,Ge,Ke,qe,P,Je,Ye=e((()=>{o(),i(),N=5,Ge=1e3,Ke=5e3,qe=1.5,P=.2,Je=class{constructor(e){a(this,`_transport`,void 0),this._transport=e}retry(e,t,n){return new Promise((r,i)=>{setTimeout(()=>{this._transport.send(e,t).then(r,i)},n)})}async send(e,t){let n=N,r=Ge,i=Date.now()+t,a=await this._transport.send(e,t);for(;a.status===`retryable`&&n>0;){n--;let t=Math.max(Math.min(r*(1+Ue()),Ke),0);r*=qe;let o=a.retryInMillis??t,c=i-Date.now();if(o>c)return s.info(`Export retry time ${Math.round(o)}ms exceeds remaining timeout ${Math.round(c)}ms, not retrying further.`),a;s.verbose(`Scheduling export retry in ${Math.round(o)}ms`),a=await this.retry(e,c,o)}return a.status===`success`?s.verbose(`Export succeeded after ${N-n} retry attempts.`):a.status===`retryable`?s.info(`Export failed after maximum retry attempts (${N}).`):s.info(`Export failed with non-retryable error: ${a.error}`),a}shutdown(){return this._transport.shutdown()}}}));function Xe(e,t){return de({transport:We({transport:Be(e)}),serializer:t,promiseHandler:ae(e)},{timeout:e.timeoutMillis})}var Ze=e((()=>{pe(),He(),se(),Ye()}));function Qe(e){let t=l(e);if(t!=null){if(Number.isFinite(t)&&t>0)return t;s.warn(`Configuration: ${e} is invalid, expected number greater than 0 (actual: ${t})`)}}function $e(e){let t=Qe(`OTEL_EXPORTER_OTLP_${e}_TIMEOUT`),n=Qe(`OTEL_EXPORTER_OTLP_TIMEOUT`);return t??n}function et(e){let t=u(e)?.trim();if(t==null||t===`none`||t===`gzip`)return t;s.warn(`Configuration: ${e} is invalid, expected 'none' or 'gzip' (actual: '${t}')`)}function tt(e){let t=et(`OTEL_EXPORTER_OTLP_${e}_COMPRESSION`),n=et(`OTEL_EXPORTER_OTLP_COMPRESSION`);return t??n}function nt(e){return{timeoutMillis:$e(e),compression:tt(e)}}var rt=e((()=>{d(),o()}));function it(e){let t=u(`OTEL_EXPORTER_OTLP_${e}_HEADERS`),n=u(`OTEL_EXPORTER_OTLP_HEADERS`),r=m(t),i=m(n);if(!(Object.keys(r).length===0&&Object.keys(i).length===0))return Object.assign({},m(n),m(t))}function at(e){try{return new URL(e).toString()}catch{s.warn(`Configuration: Could not parse environment-provided export URL: '${e}', falling back to undefined`);return}}function ot(e,t){try{new URL(e)}catch{s.warn(`Configuration: Could not parse environment-provided export URL: '${e}', falling back to undefined`);return}e.endsWith(`/`)||(e+=`/`),e+=t;try{new URL(e)}catch{s.warn(`Configuration: Provided URL appended with '${t}' is not a valid URL, using 'undefined' instead of '${e}'`);return}return e}function st(e){let t=u(`OTEL_EXPORTER_OTLP_ENDPOINT`);if(t!==void 0)return ot(t,e)}function ct(e){let t=u(`OTEL_EXPORTER_OTLP_${e}_ENDPOINT`);if(t!==void 0)return at(t)}function F(e,t,n){let r=u(e),i=u(t),a=r??i;if(a!=null)try{return S.readFileSync(b.resolve(process.cwd(),a))}catch{s.warn(n);return}else return}function lt(e){return F(`OTEL_EXPORTER_OTLP_${e}_CLIENT_CERTIFICATE`,`OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE`,`Failed to read client certificate chain file`)}function ut(e){return F(`OTEL_EXPORTER_OTLP_${e}_CLIENT_KEY`,`OTEL_EXPORTER_OTLP_CLIENT_KEY`,`Failed to read client certificate private key file`)}function dt(e){return F(`OTEL_EXPORTER_OTLP_${e}_CERTIFICATE`,`OTEL_EXPORTER_OTLP_CERTIFICATE`,`Failed to read root certificate file`)}function ft(e,t){return{...nt(e),url:ct(e)??st(t),headers:te(it(e)),agentFactory:A({keepAlive:!0,ca:dt(e),cert:lt(e),key:ut(e)})}}var pt=e((()=>{d(),o(),rt(),O(),j()}));function mt(e){return typeof e.headers==`function`?e.headers:te(e.headers)}var ht=e((()=>{O()}));function gt(e){if(typeof e.httpAgentOptions==`function`)return e.httpAgentOptions;let t=e.httpAgentOptions;if(e.keepAlive!=null&&(t={keepAlive:e.keepAlive,...t}),t!=null)return A(t)}function _t(e,t,n,r){return e.metadata&&s.warn(`Metadata cannot be set when using http`),Ee({url:e.url,headers:mt(e),concurrencyLimit:e.concurrencyLimit,timeoutMillis:e.timeoutMillis,compression:e.compression,agentFactory:gt(e),userAgent:e.userAgent},ft(t,n),De(r,n))}var vt=e((()=>{o(),j(),bt(),pt(),ht()})),yt=n({convertLegacyHttpOptions:()=>_t,createOtlpHttpExportDelegate:()=>Xe,getSharedConfigurationFromEnvironment:()=>nt,httpAgentFactoryFromOptions:()=>A}),bt=e((()=>{j(),Ze(),rt(),vt()}));function I(e){return e<0?10:e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:9}var xt=e((()=>{})),St,L,Ct,wt=e((()=>{o(),xt(),i(),St=`ProtobufWriter: estimated size was too small, growing buffer.`,L=1,Ct=class{constructor(e=65536){a(this,`_buffer`,void 0),a(this,`_textEncoder`,void 0),a(this,`_dataView`,void 0),a(this,`pos`,0),this._buffer=new Uint8Array(e),this._textEncoder=new TextEncoder,this._dataView=new DataView(this._buffer.buffer,this._buffer.byteOffset)}_ensureCapacity(e){let t=this.pos+e;if(t<=this._buffer.length)return;s.debug(St);let n=this._buffer.length*2;for(;n<t;)n*=2;let r=new Uint8Array(n);r.set(this._buffer),this._buffer=r,this._dataView=new DataView(this._buffer.buffer,this._buffer.byteOffset)}finish(){return this._buffer.subarray(0,this.pos)}startLengthDelimited(){let e=this.pos;return this._ensureCapacity(L),this.pos+=L,e}finishLengthDelimited(e,t){let n=t>>>0,r=I(n);if(r>L){let t=r-L;this._ensureCapacity(t),this._buffer.copyWithin(e+r,e+L,this.pos),this.pos+=t}let i=e;n<128?this._buffer[i]=n:n<16384?(this._buffer[i++]=n&127|128,this._buffer[i]=n>>>7):n<2097152?(this._buffer[i++]=n&127|128,this._buffer[i++]=n>>>7&127|128,this._buffer[i]=n>>>14):n<268435456?(this._buffer[i++]=n&127|128,this._buffer[i++]=n>>>7&127|128,this._buffer[i++]=n>>>14&127|128,this._buffer[i]=n>>>21):(this._buffer[i++]=n&127|128,this._buffer[i++]=n>>>7&127|128,this._buffer[i++]=n>>>14&127|128,this._buffer[i++]=n>>>21&127|128,this._buffer[i]=n>>>28)}writeVarint(e){if(this._ensureCapacity(I(e)),e>=0&&e<=4294967295){let t=e>>>0;for(;t>127;)this._buffer[this.pos++]=t&127|128,t>>>=7;this._buffer[this.pos++]=t}else{let t,n;if(e>=0)t=e>>>0,n=e/4294967296>>>0;else{let r=Math.abs(e);t=r>>>0,n=r/4294967296>>>0,t=~t>>>0,n=~n>>>0,t=t+1>>>0,t===0&&(n=n+1>>>0)}for(;n>0||t>127;)this._buffer[this.pos++]=t&127|128,t=(t>>>7|n<<25)>>>0,n>>>=7;this._buffer[this.pos++]=t&127}}writeFixed32(e){this._ensureCapacity(4);let t=e>>>0;this._buffer[this.pos++]=t&255,this._buffer[this.pos++]=t>>>8&255,this._buffer[this.pos++]=t>>>16&255,this._buffer[this.pos++]=t>>>24&255}writeFixed64(e,t){this._ensureCapacity(8);let n=e>>>0,r=t>>>0;this._buffer[this.pos++]=n&255,this._buffer[this.pos++]=n>>>8&255,this._buffer[this.pos++]=n>>>16&255,this._buffer[this.pos++]=n>>>24&255,this._buffer[this.pos++]=r&255,this._buffer[this.pos++]=r>>>8&255,this._buffer[this.pos++]=r>>>16&255,this._buffer[this.pos++]=r>>>24&255}writeBytes(e){this.writeVarint(e.length),this._ensureCapacity(e.length),this._buffer.set(e,this.pos),this.pos+=e.length}writeTag(e,t){this.writeVarint(e<<3|t)}writeDouble(e){this._ensureCapacity(8),this._dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeString(e){let t=!0,n=e.length;for(let r=0;r<n;r++)if(e.charCodeAt(r)>127){t=!1;break}if(t){this.writeVarint(n),this._ensureCapacity(n);for(let t=0;t<n;t++)this._buffer[this.pos++]=e.charCodeAt(t)}else{let t=this._textEncoder.encode(e);this.writeBytes(t)}}}}));function Tt(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function R(e){let t=new Uint8Array(e.length/2),n=0;for(let r=0;r<e.length;r+=2){let i=Tt(e.charCodeAt(r)),a=Tt(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}var Et=e((()=>{}));function Dt(e,t){let n=t[0],r=t[1],i=1e9,a=n&65535,o=n/65536>>>0,s=a*i,c=o*i,l=s>>>0,u=Math.floor(s/4294967296),d=(c&65535)*65536>>>0,f=c/65536>>>0,p=l+d+r,m=p>>>0,h=Math.floor(p/4294967296),g=u+f+h>>>0;e.writeFixed64(m,g)}function Ot(e,t,n){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let i=t[r];e.writeTag(n,2);let a=e.startLengthDelimited(),o=e.pos;kt(e,r,i),e.finishLengthDelimited(a,e.pos-o)}}function kt(e,t,n){e.writeTag(1,2),e.writeString(t),e.writeTag(2,2);let r=e.startLengthDelimited(),i=e.pos;z(e,n),e.finishLengthDelimited(r,e.pos-i)}function z(e,t){let n=typeof t;if(n===`string`)e.writeTag(1,2),e.writeString(t);else if(n===`boolean`)e.writeTag(2,0),e.writeVarint(+!!t);else if(n===`number`){let n=t;Number.isInteger(n)&&n>=At&&n<jt?(e.writeTag(3,0),e.writeVarint(n)):(e.writeTag(4,1),e.writeDouble(n))}else if(t instanceof Uint8Array)e.writeTag(7,2),e.writeBytes(t);else if(Array.isArray(t)){e.writeTag(5,2);let n=e.startLengthDelimited(),r=e.pos;for(let n of t){e.writeTag(1,2);let t=e.startLengthDelimited(),r=e.pos;z(e,n),e.finishLengthDelimited(t,e.pos-r)}e.finishLengthDelimited(n,e.pos-r)}else if(n===`object`&&t!=null){e.writeTag(6,2);let n=e.startLengthDelimited(),r=e.pos,i=t;for(let t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;let n=i[t];e.writeTag(1,2);let r=e.startLengthDelimited(),a=e.pos;e.writeTag(1,2),e.writeString(t),e.writeTag(2,2);let o=e.startLengthDelimited(),s=e.pos;z(e,n),e.finishLengthDelimited(o,e.pos-s),e.finishLengthDelimited(r,e.pos-a)}e.finishLengthDelimited(n,e.pos-r)}}var At,jt,Mt=e((()=>{At=-(2**63),jt=2**63}));function Nt(e){let t=e.length,n=0;for(let r=0;r<t;r++){let t=e.charCodeAt(r);t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4)}return n}var Pt,Ft=e((()=>{xt(),i(),Pt=class{constructor(){a(this,`pos`,0)}startLengthDelimited(){return this.pos}finishLengthDelimited(e,t){this.pos+=I(t)}writeVarint(e){this.pos+=I(e)}writeFixed32(e){this.pos+=4}writeFixed64(e,t){this.pos+=8}writeBytes(e){this.pos+=I(e.length),this.pos+=e.length}writeTag(e,t){this.writeVarint(e<<3|t)}writeDouble(e){this.pos+=8}writeString(e){let t=Nt(e);this.pos+=I(t),this.pos+=t}}}));function It(e,t){let n=e.startLengthDelimited(),r=e.pos;if(e.writeTag(1,1),Dt(e,t.hrTime),t.severityNumber!==void 0&&t.severityNumber!==h.UNSPECIFIED&&(e.writeTag(2,0),e.writeVarint(t.severityNumber)),t.severityText&&(e.writeTag(3,2),e.writeString(t.severityText)),t.body!==void 0){e.writeTag(5,2);let n=e.startLengthDelimited(),r=e.pos;z(e,t.body),e.finishLengthDelimited(n,e.pos-r)}t.attributes&&Ot(e,t.attributes,6),e.writeTag(7,0),e.writeVarint(t.droppedAttributesCount),t.spanContext?.traceFlags&&(e.writeTag(8,5),e.writeFixed32(t.spanContext.traceFlags)),t.spanContext?.traceId&&(e.writeTag(9,2),e.writeBytes(R(t.spanContext.traceId))),t.spanContext?.spanId&&(e.writeTag(10,2),e.writeBytes(R(t.spanContext.spanId))),e.writeTag(11,1),Dt(e,t.hrTimeObserved),t.eventName&&(e.writeTag(12,2),e.writeString(t.eventName)),e.finishLengthDelimited(n,e.pos-r)}function Lt(e,t,n){let r=e.startLengthDelimited(),i=e.pos;e.writeTag(1,2);let a=e.startLengthDelimited(),o=e.pos;e.writeTag(1,2),e.writeString(t.name),t.version&&(e.writeTag(2,2),e.writeString(t.version)),e.finishLengthDelimited(a,e.pos-o);for(let t of n)e.writeTag(2,2),It(e,t);t.schemaUrl&&(e.writeTag(3,2),e.writeString(t.schemaUrl)),e.finishLengthDelimited(r,e.pos-i)}function Rt(e,t,n){e.writeTag(n,2);let r=e.startLengthDelimited(),i=e.pos;t.attributes&&Ot(e,t.attributes,1),e.writeTag(2,0),e.writeVarint(0),e.finishLengthDelimited(r,e.pos-i)}function zt(e,t,n){let r=e.startLengthDelimited(),i=e.pos;Rt(e,t,1);for(let t of n.values()){e.writeTag(2,2);let n=t[0].instrumentationScope;Lt(e,n,t)}t.schemaUrl&&(e.writeTag(3,2),e.writeString(t.schemaUrl)),e.finishLengthDelimited(r,e.pos-i)}function Bt(e){let t=new Map;for(let n of e){let e=n.resource,r=n.instrumentationScope,i=t.get(e);i||(i=new Map,t.set(e,i));let a=i.get(r);a||(a=[],i.set(r,a)),a.push(n)}return t}function Vt(e){let t=Bt(e),n=new Pt;for(let[e,r]of t)n.writeTag(1,2),zt(n,e,r);let r=new Ct(n.pos);for(let[e,n]of t)r.writeTag(1,2),zt(r,e,n);return r.finish()}var Ht=e((()=>{wt(),Et(),g(),Mt(),Ft()})),B,Ut=e((()=>{i(),B=class{constructor(e){a(this,`pos`,0),a(this,`_buf`,void 0),a(this,`_textDecoder`,void 0),this._buf=e,this._textDecoder=new TextDecoder}isAtEnd(){return this.pos>=this._buf.length}readTag(){let e=this.readVarint();return{fieldNumber:e>>>3,wireType:e&7}}readVarint(){let e=0,t=0;for(;this.pos<this._buf.length;){let n=this._buf[this.pos++];if(e+=(n&127)*2**t,t+=7,!(n&128))break}return e}readBytes(){let e=this.readVarint(),t=this._buf.subarray(this.pos,this.pos+e);return this.pos+=e,t}readString(){return this._textDecoder.decode(this.readBytes())}skip(e){switch(e){case 0:this.readVarint();break;case 1:this.pos+=8;break;case 2:this.readBytes();break;case 3:for(;!this.isAtEnd();){let{wireType:e}=this.readTag();if(e===4)break;this.skip(e)}break;case 4:break;case 5:this.pos+=4;break;default:throw Error(`Unknown wire type ${e}, cannot safely skip`)}}}}));function Wt(e){let t=new B(e),n={};for(;!t.isAtEnd();){let{fieldNumber:e,wireType:r}=t.readTag();switch(e){case 1:r===0?n.rejectedLogRecords=t.readVarint():t.skip(r);break;case 2:r===2?n.errorMessage=t.readString():t.skip(r);break;default:t.skip(r);break}}return n}function Gt(e){let t=new B(e),n={};for(;!t.isAtEnd();){let{fieldNumber:e,wireType:r}=t.readTag();switch(e){case 1:r===2?n.partialSuccess=Wt(t.readBytes()):t.skip(r);break;default:t.skip(r);break}}return n}var Kt=e((()=>{Ut()})),V,qt=e((()=>{Ht(),Kt(),V={serializeRequest:e=>Vt(e),deserializeResponse:e=>Gt(e)}})),Jt=e((()=>{qt()})),Yt=r(((e,t)=>{t.exports=n;function n(e,t){for(var n=Array(arguments.length-1),r=0,i=2,a=!0;i<arguments.length;)n[r++]=arguments[i++];return new Promise(function(i,o){n[r]=function(e){if(a)if(a=!1,e)o(e);else{for(var t=Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}};try{e.apply(t||null,n)}catch(e){a&&(a=!1,o(e))}})}})),Xt=r((e=>{var t=e;t.length=function(e){var t=e.length;if(!t)return 0;for(;t>0&&e.charAt(t-1)===`=`;)--t;return Math.floor(t*3/4)};for(var n=Array(64),r=Array(123),i=0;i<64;)r[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r[45]=62,r[95]=63,t.encode=function(e,t,r){for(var i=null,a=[],o=0,s=0,c;t<r;){var l=e[t++];switch(s){case 0:a[o++]=n[l>>2],c=(l&3)<<4,s=1;break;case 1:a[o++]=n[c|l>>4],c=(l&15)<<2,s=2;break;case 2:a[o++]=n[c|l>>6],a[o++]=n[l&63],s=0;break}o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),o=0)}return s&&(a[o++]=n[c],a[o++]=61,s===1&&(a[o++]=61)),i?(o&&i.push(String.fromCharCode.apply(String,a.slice(0,o))),i.join(``)):String.fromCharCode.apply(String,a.slice(0,o))};var a=`invalid encoding`;t.decode=function(e,t,n){for(var i=n,o=0,s,c=0;c<e.length;){var l=e.charCodeAt(c++);if(l===61&&o>1)break;if((l=r[l])===void 0)throw Error(a);switch(o){case 0:s=l,o=1;break;case 1:t[n++]=s<<2|(l&48)>>4,s=l,o=2;break;case 2:t[n++]=(s&15)<<4|(l&60)>>2,s=l,o=3;break;case 3:t[n++]=(s&3)<<6|l,o=0;break}}if(o===1)throw Error(a);return n-i};var o=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,s=/[-_]/,c=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;t.test=function(e){return o.test(e)||s.test(e)&&c.test(e)}})),Zt=r(((e,t)=>{t.exports=n;function n(){this._listeners=Object.create(null)}n.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners=Object.create(null);else if(t===void 0)this._listeners[e]=[];else{var n=this._listeners[e];if(!n)return this;for(var r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r}return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}})),Qt=r(((e,t)=>{t.exports=n(n);function n(e){return typeof Float32Array<`u`?(function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=n[3]===128;function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function a(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}e.writeFloatLE=r?i:a,e.writeFloatBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.readFloatLE=r?o:s,e.readFloatBE=r?s:o})():(function(){function t(e,t,n,r){var i=+(t<0);if(i&&(t=-t),t===0)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var a=Math.floor(Math.log(t)/Math.LN2),o=Math.round(t*2**-a*8388608)&8388607;e((i<<31|a+127<<23|o)>>>0,n,r)}}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i);function n(e,t,n){var r=e(t,n),i=(r>>31)*2+1,a=r>>>23&255,o=r&8388607;return a===255?o?NaN:i*(1/0):a===0?i*1401298464324817e-60*o:i*2**(a-150)*(o+8388608)}e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,o)})(),typeof Float64Array<`u`?(function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=n[7]===128;function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function a(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}e.writeDoubleLE=r?i:a,e.writeDoubleBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.readDoubleLE=r?o:s,e.readDoubleBE=r?s:o})():(function(){function t(e,t,n,r,i,a){var o=+(r<0);if(o&&(r=-r),r===0)e(0,i,a+t),e(1/r>0?0:2147483648,i,a+n);else if(isNaN(r))e(0,i,a+t),e(2146959360,i,a+n);else if(r>17976931348623157e292)e(0,i,a+t),e((o<<31|2146435072)>>>0,i,a+n);else{var s;if(r<22250738585072014e-324)s=r/5e-324,e(s>>>0,i,a+t),e((o<<31|s/4294967296)>>>0,i,a+n);else{var c=Math.floor(Math.log(r)/Math.LN2);c===1024&&(c=1023),s=r*2**-c,e(s*4503599627370496>>>0,i,a+t),e((o<<31|c+1023<<20|s*1048576&1048575)>>>0,i,a+n)}}}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0);function n(e,t,n,r,i){var a=e(r,i+t),o=e(r,i+n),s=(o>>31)*2+1,c=o>>>20&2047,l=4294967296*(o&1048575)+a;return c===2047?l?NaN:s*(1/0):c===0?s*5e-324*l:s*2**(c-1075)*(l+4503599627370496)}e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,o,4,0)})(),e}function r(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function i(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=e&255}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}})),$t=r((e=>{var t=e,n=`�`,r=new TextDecoder(`utf-8`,{ignoreBOM:!0}),i,a=64;try{i=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}catch{i=r}t.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)n=e.charCodeAt(r),n<128?t+=1:n<2048?t+=2:(n&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320?(++r,t+=4):t+=3;return t};function o(e,t,r,i){for(var a=t;a<r;){var o=e[a++];if(o<=127)i+=String.fromCharCode(o);else if(o>=192&&o<224){var s=(o&31)<<6|e[a++]&63;i+=s>=128?String.fromCharCode(s):n}else if(o>=224&&o<240){var c=(o&15)<<12|(e[a++]&63)<<6|e[a++]&63;i+=c>=2048?String.fromCharCode(c):n}else if(o>=240){var l=(o&7)<<18|(e[a++]&63)<<12|(e[a++]&63)<<6|e[a++]&63;l<65536||l>1114111?i+=n:(l-=65536,i+=String.fromCharCode(55296+(l>>10)),i+=String.fromCharCode(56320+(l&1023)))}}return i}function s(e,t,n,r){var i=n===0&&r===t.length?t:t.subarray(n,r);return e.decode(i)}t.read=function(e,t,n){if(n-t<1)return``;if(n-t>=a)return s(r,e,t,n);for(var i=``,c=t,l,u,d,f,p,m,h,g;c+7<n;c+=8){if(l=e[c],u=e[c+1],d=e[c+2],f=e[c+3],p=e[c+4],m=e[c+5],h=e[c+6],g=e[c+7],(l|u|d|f|p|m|h|g)&128)return o(e,c,n,i);i+=String.fromCharCode(l,u,d,f,p,m,h,g)}for(;c<n;++c){if(l=e[c],l&128)return o(e,c,n,i);i+=String.fromCharCode(l)}return i},t.readStrict=function(e,t,n){if(n-t<1)return``;if(n-t>=a)return s(i,e,t,n);for(var r=``,o=t,c,l,u,d,f,p,m,h;o+7<n;o+=8){if(c=e[o],l=e[o+1],u=e[o+2],d=e[o+3],f=e[o+4],p=e[o+5],m=e[o+6],h=e[o+7],(c|l|u|d|f|p|m|h)&128)return r+s(i,e,o,n);r+=String.fromCharCode(c,l,u,d,f,p,m,h)}for(;o<n;++o){if(c=e[o],c&128)return r+s(i,e,o,n);r+=String.fromCharCode(c)}return r},t.write=function(e,t,n){for(var r=n,i,a,o=0;o<e.length;++o)i=e.charCodeAt(o),i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&((a=e.charCodeAt(o+1))&64512)==56320?(i=65536+((i&1023)<<10)+(a&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-r}})),en=r(((e,t)=>{t.exports=n;function n(e,t,n){var r=n||8192,i=r>>>1,a=null,o=r;return function(n){if(n<1||n>i)return e(n);o+n>r&&(a=e(r),o=0);var s=t.call(a,o,o+=n);return o&7&&(o=(o|7)+1),s}}})),tn=r(((e,t)=>{t.exports=r;var n=H();function r(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=r.zero=new r(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=r.zeroHash=`\0\0\0\0\0\0\0\0`;r.fromNumber=function(e){if(e===0)return i;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new r(n,a)},r.from=function(e){if(typeof e==`number`)return r.fromNumber(e);if(n.isString(e))if(n.Long)e=n.Long.fromString(e);else return r.fromNumber(parseInt(e,10));return e.low||e.high?new r(e.low>>>0,e.high>>>0):i},r.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296},r.prototype.toLong=function(e){return n.Long?new n.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var o=String.prototype.charCodeAt;r.fromHash=function(e){return e===a?i:new r((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},r.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},r.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}})),H=r((e=>{var t=e;t.asPromise=Yt(),t.base64=Xt(),t.EventEmitter=Zt(),t.float=Qt(),t.utf8=$t(),t.pool=en(),t.LongBits=tn();function n(e){return e===`__proto__`||e===`prototype`||e===`constructor`}t.isUnsafeProperty=n,t.isNode=!!(typeof global<`u`&&global&&global.process&&global.process.versions&&global.process.versions.node),t.global=t.isNode&&global||typeof window<`u`&&window||typeof self<`u`&&self||typeof globalThis<`u`&&globalThis||e,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return typeof e==`string`||e instanceof String},t.isObject=function(e){return e&&typeof e==`object`},t.isset=t.isSet=function(e,t){var n=e[t];return n!=null&&Object.hasOwnProperty.call(e,t)?typeof n!=`object`||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1},t.Buffer=(function(){try{var e=t.global.Buffer;return e.prototype.utf8Write||t.isNode?e:null}catch{return null}})(),t.newBuffer=function(e){var n=t.Buffer;return typeof e==`number`?n?n.allocUnsafe(e):new Uint8Array(e):n?n.from(e):new Uint8Array(e)},t.rawField=function(e,n,r){var i=[],a=e<<3|n;for(a>>>=0;a>127;)i.push(a&127|128),a>>>=7;i.push(a);for(var o=0;o<r.length;++o)i.push(r[o]);return t.newBuffer(i)},t.Array=Uint8Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||(function(){try{var e=ve();return e&&e.isLong?e:null}catch{return null}})(),t.key2Re=/^(?:true|false|0|1)$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\x00-\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,n){var r=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(r.lo,r.hi,n):r.toNumber(!!n)},t.longFromKey=function(e,n){return t.key64Re.test(e)&&!t.key32Re.test(e)?t.longFromHash(e,n):e},t.boolFromKey=function(e){return e===`true`||e===`1`};function r(e){var t=typeof arguments[arguments.length-1]==`boolean`,r=t?arguments.length-1:arguments.length;t=t&&arguments[arguments.length-1];for(var i=1;i<r;++i){var a=arguments[i];if(a)for(var o=Object.keys(a),s=0;s<o.length;++s)!n(o[s])&&(!t||!Object.prototype.hasOwnProperty.call(e,o[s])||e[o[s]]===void 0)&&(e[o[s]]=a[o[s]])}return e}t.merge=r,t.nestingLimit=32,t.recursionLimit=100,t.makeProp=function(e,t,n){Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:n===void 0||n,configurable:!0,writable:!0})},t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function i(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||``}),n&&r(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+`: `+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}t.newError=i,t.ProtocolError=i(`ProtocolError`),t.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(t[e[n]]===1&&this[e[n]]!==void 0&&this[e[n]]!==null)return e[n]}},t.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0}})),nn=r(((e,t)=>{t.exports=s;var n=H(),r,i=n.LongBits,a=n.base64,o=n.utf8;function s(){this.pos=0,this.buf=this.constructor.alloc(64),this.view=null,this.states=null}Object.defineProperty(s.prototype,"len",{configurable:!0,enumerable:!0,get:function(){return this.pos}});var c=function(){return n.Buffer?function(){return(s.create=function(){return new r})()}:function(){return new s}};s.create=c(),s.alloc=function(e){return new Uint8Array(e)},s.alloc=n.pool(s.alloc,Uint8Array.prototype.subarray);function l(e){return e<128?1:e<16384?2:e<2097152?3:e<268435456?4:5}s.prototype._reserve=function(e){var t=this.pos+e;if(t>this.buf.length){var n=this.buf.length<<1;n<t&&(n=t);var r=this.constructor.alloc(n);r.set(this.buf.subarray(0,this.pos),0),this.buf=r,this.view=null}};function u(e,t,n){for(var r=0;r<e.length;)t[n++]=e.charCodeAt(r++)}function d(e,t,n){for(;e>127;)t[n++]=e&127|128,e>>>=7;return t[n]=e,n+1}s.prototype.uint32=function(e){e>>>=0,this._reserve(5);var t=this.pos;return this.pos=d(e,this.buf,t),this},s.prototype.int32=function(e){return(e|=0)<0?(this._reserve(10),f(i.fromNumber(e),this.buf,this.pos),this.pos+=10,this):this.uint32(e)},s.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function f(e,t,n){for(var r=e.lo,i=e.hi;i;)t[n++]=r&127|128,r=(r>>>7|i<<25)>>>0,i>>>=7;for(;r>127;)t[n++]=r&127|128,r>>>=7;return t[n]=r,n+1}s.prototype.uint64=function(e){var t=i.from(e);this._reserve(10);var n=this.pos;return this.pos=f(t,this.buf,n),this},s.prototype.int64=s.prototype.uint64,s.prototype.sint64=function(e){var t=i.from(e).zzEncode();this._reserve(10);var n=this.pos;return this.pos=f(t,this.buf,n),this},s.prototype.bool=function(e){return this._reserve(1),this.buf[this.pos++]=+!!e,this};function p(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}s.prototype.fixed32=function(e){return this._reserve(4),p(e>>>0,this.buf,this.pos),this.pos+=4,this},s.prototype.sfixed32=s.prototype.fixed32,s.prototype.fixed64=function(e){var t=i.from(e);return this._reserve(8),p(t.lo,this.buf,this.pos),p(t.hi,this.buf,this.pos+4),this.pos+=8,this},s.prototype.sfixed64=s.prototype.fixed64,s.prototype.float=function(e){return this._reserve(4),n.float.writeFloatLE(e,this.buf,this.pos),this.pos+=4,this},s.prototype.double=function(e){return this._reserve(8),n.float.writeDoubleLE(e,this.buf,this.pos),this.pos+=8,this},s.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._reserve(1),this.buf[this.pos++]=0,this;if(n.isString(e)){var r=s.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t),this._reserve(t),this.buf.set(e,this.pos),this.pos+=t,this},s.prototype.raw=function(e){var t=e.length>>>0;return t?(this._reserve(t),this.buf.set(e,this.pos),this.pos+=t,this):this},s.prototype._delim=function(e,t){var n=l(t);return n>1&&this.buf.copyWithin(e+n,e+1,e+1+t),d(t,this.buf,e),this.pos=e+n+t,this},s.prototype.string=function(e){var t=e.length;if(!t)return this._reserve(1),this.buf[this.pos++]=0,this;if(t<128){this._reserve(t*3+5);var n=this.pos;return this._delim(n,o.write(e,this.buf,n+1))}var r=o.length(e);return this.uint32(r),this._reserve(r),r===e.length?u(e,this.buf,this.pos):o.write(e,this.buf,this.pos),this.pos+=r,this},s.prototype.uint32s=function(e){var t=e.length;this._reserve(t*5+5);for(var n=this.buf,r=this.pos,i=r+1,a=0;a<t;++a)i=d(e[a]>>>0,n,i);return this._delim(r,i-r-1)},s.prototype.int32s=function(e){var t=e.length;this._reserve(t*10+5);for(var n=this.buf,r=this.pos,a=r+1,o,s=0;s<t;++s)a=(o=e[s]|0)<0?f(i.fromNumber(o),n,a):d(o,n,a);return this._delim(r,a-r-1)},s.prototype.sint32s=function(e){var t=e.length;this._reserve(t*5+5);for(var n=this.buf,r=this.pos,i=r+1,a=0;a<t;++a)i=d((e[a]<<1^e[a]>>31)>>>0,n,i);return this._delim(r,i-r-1)},s.prototype.uint64s=function(e){var t=e.length;this._reserve(t*10+5);for(var n=this.buf,r=this.pos,a=r+1,o=0;o<t;++o)a=f(i.from(e[o]),n,a);return this._delim(r,a-r-1)},s.prototype.int64s=s.prototype.uint64s,s.prototype.sint64s=function(e){var t=e.length;this._reserve(t*10+5);for(var n=this.buf,r=this.pos,a=r+1,o=0;o<t;++o)a=f(i.from(e[o]).zzEncode(),n,a);return this._delim(r,a-r-1)},s.prototype.bools=function(e){var t=e.length;this.uint32(t),this._reserve(t);for(var n=this.buf,r=this.pos,i=0;i<t;++i)n[r++]=+!!e[i];return this.pos+=t,this};var m=16,h=128;function g(e,t,n){var r=e.view;if(r||t<n)return r;var i=e.buf;return e.view=new DataView(i.buffer,i.byteOffset,i.byteLength)}s.prototype.fixed32s=function(e){var t=e.length,n=t*4;this.uint32(n),this._reserve(n);var r=this.pos,i,a=g(this,t,h);if(a)for(i=0;i<t;++i)a.setUint32(r,e[i]>>>0,!0),r+=4;else{var o=this.buf;for(i=0;i<t;++i)p(e[i]>>>0,o,r),r+=4}return this.pos+=n,this},s.prototype.sfixed32s=s.prototype.fixed32s,s.prototype.fixed64s=function(e){var t=e.length,n=t*8;this.uint32(n),this._reserve(n);var r=this.pos,a,o,s=g(this,t,h);if(s)for(a=0;a<t;++a)o=i.from(e[a]),s.setUint32(r,o.lo,!0),s.setUint32(r+4,o.hi,!0),r+=8;else{var c=this.buf;for(a=0;a<t;++a)o=i.from(e[a]),p(o.lo,c,r),p(o.hi,c,r+4),r+=8}return this.pos+=n,this},s.prototype.sfixed64s=s.prototype.fixed64s,s.prototype.floats=function(e){var t=e.length,r=t*4;this.uint32(r),this._reserve(r);var i=this.pos,a,o=g(this,t,m);if(o)for(a=0;a<t;++a)o.setFloat32(i,e[a],!0),i+=4;else{var s=this.buf;for(a=0;a<t;++a)n.float.writeFloatLE(e[a],s,i),i+=4}return this.pos+=r,this},s.prototype.doubles=function(e){var t=e.length,r=t*8;this.uint32(r),this._reserve(r);var i=this.pos,a,o=g(this,t,m);if(o)for(a=0;a<t;++a)o.setFloat64(i,e[a],!0),i+=8;else{var s=this.buf;for(a=0;a<t;++a)n.float.writeDoubleLE(e[a],s,i),i+=8}return this.pos+=r,this},s.prototype.fork=function(){return this._reserve(1),(this.states||(this.states=[])).push(this.pos),this.pos+=1,this},s.prototype.reset=function(){var e=this.states;return e&&e.length?this.pos=e.pop():this.pos=0,this},s.prototype.ldelim=function(){var e=this.states,t,n;if(e&&e.length){var r=e.pop();t=this.pos-r-1,n=l(t),n>1?(this._reserve(n-1),this.buf.copyWithin(r+n,r+1,r+1+t),this.pos+=n-1,d(t,this.buf,r)):this.buf[r]=t}else t=this.pos,n=l(t),this._reserve(n),this.buf.copyWithin(n,0,t),d(t,this.buf,0),this.pos+=n;return this},s.prototype.finish=function(e){if(e)return this.buf.subarray(0,this.pos);var t=this.constructor.alloc(this.pos);return t.set(this.buf.subarray(0,this.pos),0),t},s.prototype.finishInto=function(e,t){return t===void 0&&(t=0),e.set(this.buf.subarray(0,this.pos),t),e},s._configure=function(e){r=e,s.create=c(),r._configure()}})),rn=r(((e,t)=>{t.exports=i;var n=nn();i.prototype=Object.create(n.prototype,{constructor:{value:i,writable:!0,enumerable:!1,configurable:!0}});var r=H();function i(){n.call(this)}var a;i._configure=function(){i.alloc=r.Buffer&&r.Buffer.allocUnsafe,a=r.Buffer&&r.Buffer.prototype.utf8Write?function(e,t,n){return t.utf8Write(e,n)}:function(e,t,n){return t.write(e,n)}},i.prototype.bytes=function(e){r.isString(e)&&(e=r.Buffer.from(e,`base64`));var t=e.length>>>0;return this.uint32(t),t&&(this._reserve(t),this.buf.set(e,this.pos),this.pos+=t),this},i.prototype.string=function(e){var t=e.length;if(!t)return this._reserve(1),this.buf[this.pos++]=0,this;if(t<128){this._reserve(t*3+5);var n=this.pos,i=this.buf;return this._delim(n,t<40?r.utf8.write(e,i,n+1):a(e,i,n+1))}var o=r.Buffer.byteLength(e);return this.uint32(o),this._reserve(o),a(e,this.buf,this.pos),this.pos+=o,this},i._configure()})),an=r(((e,t)=>{t.exports=s;var n=H(),r,i=n.LongBits,a=n.utf8;function o(e,t){return RangeError(`index out of range: `+e.pos+` + `+(t||1)+` > `+e.len)}function s(e){this.buf=e,this.pos=0,this.len=e.length,this.view=null,this.discardUnknown=s.discardUnknown}function c(e){if(Array.isArray(e)&&(e=new Uint8Array(e)),e instanceof Uint8Array)return new s(e);throw Error(`illegal buffer`)}var l=function(){return n.Buffer?function(e){return(s.create=function(e){return n.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};s.create=l(),s.prototype.raw=function(e,t){return this.buf.subarray(e,t)},s.prototype.uint32=function(){var e=this.buf,t=this.pos,n=(e[t]&127)>>>0;if(e[t++]<128||(n=(n|(e[t]&127)<<7)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<14)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<21)>>>0,e[t++]<128)||(n=(n|(e[t]&15)<<28)>>>0,e[t++]<128))return this.pos=t,n;for(var r=0;r<5;++r){if(t>=this.len)throw this.pos=t,o(this);if(e[t++]<128)return this.pos=t,n}throw this.pos=t,Error(`invalid varint encoding`)},s.prototype.tag=function(){var e=this.buf,t=this.pos,n=(e[t]&127)>>>0;if(e[t++]<128||(n=(n|(e[t]&127)<<7)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<14)>>>0,e[t++]<128)||(n=(n|(e[t]&127)<<21)>>>0,e[t++]<128))return this.pos=t,n;if(n=(n|(e[t]&15)<<28)>>>0,e[t]<128&&!(e[t]&112))return this.pos=t+1,n;throw this.pos=t+1,Error(`invalid tag encoding`)},s.prototype.int32=function(){return this.uint32()|0},s.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function u(){var e=new i(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(this.buf[this.pos]&127)<<28)>>>0,e.hi=(e.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<4;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e}throw o(this)}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(`invalid varint encoding`)}s.prototype.bool=function(){for(var e=!1,t,n=0;n<10;++n){if(this.pos>=this.len)throw o(this);if(t=this.buf[this.pos++],t&127&&(e=!0),t<128)return e}throw Error(`invalid varint encoding`)};function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}s.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},s.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)|0};function f(){if(this.pos+8>this.len)throw o(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}s.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},s.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},s.prototype.uint32s=function(e){e===void 0&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.uint32());return e},s.prototype.int32s=function(e){e===void 0&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.int32());return e},s.prototype.sint32s=function(e){e===void 0&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.sint32());return e},s.prototype.bools=function(e){e===void 0&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.bool());return e};var p=8,m=128;function h(e,t,n){var r=e.view;if(r||t<n)return r;var i=e.buf;return e.view=new DataView(i.buffer,i.byteOffset,i.byteLength)}s.prototype.fixed32s=function(e){e===void 0&&(e=[]);var t=this.uint32(),n=this.pos+t;if(n>this.len)throw o(this,t);var r=t>>>2,i=e.length,a=this.pos;e.length=i+r;var s=h(this,r,m);if(s)for(var c=0;c<r;++c,a+=4)e[i++]=s.getUint32(a,!0);else for(var l=this.buf,u=0;u<r;++u,a+=4)e[i++]=d(l,a+4);if(this.pos=a,a!==n)throw o(this,4);return e},s.prototype.sfixed32s=function(e){e===void 0&&(e=[]);var t=this.uint32(),n=this.pos+t;if(n>this.len)throw o(this,t);var r=t>>>2,i=e.length,a=this.pos;e.length=i+r;var s=h(this,r,m);if(s)for(var c=0;c<r;++c,a+=4)e[i++]=s.getInt32(a,!0);else for(var l=this.buf,u=0;u<r;++u,a+=4)e[i++]=d(l,a+4)|0;if(this.pos=a,a!==n)throw o(this,4);return e},s.prototype.floats=function(e){e===void 0&&(e=[]);var t=this.uint32(),r=this.pos+t;if(r>this.len)throw o(this,t);var i=t>>>2,a=e.length,s=this.pos;e.length=a+i;var c=h(this,i,p);if(c)for(var l=0;l<i;++l,s+=4)e[a++]=c.getFloat32(s,!0);else for(var u=this.buf,d=0;d<i;++d,s+=4)e[a++]=n.float.readFloatLE(u,s);if(this.pos=s,s!==r)throw o(this,4);return e},s.prototype.doubles=function(e){e===void 0&&(e=[]);var t=this.uint32(),r=this.pos+t;if(r>this.len)throw o(this,t);var i=t>>>3,a=e.length,s=this.pos;e.length=a+i;var c=h(this,i,p);if(c)for(var l=0;l<i;++l,s+=8)e[a++]=c.getFloat64(s,!0);else for(var u=this.buf,d=0;d<i;++d,s+=8)e[a++]=n.float.readDoubleLE(u,s);if(this.pos=s,s!==r)throw o(this,8);return e},s.prototype.uint64s=function(e){e===void 0&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.uint64());return e},s.prototype.int64s=function(e){e===void 0&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.int64());return e},s.prototype.sint64s=function(e){e===void 0&&(e=[]);for(var t=this.uint32()+this.pos;this.pos<t;)e.push(this.sint64());return e},s.prototype.fixed64s=function(e){e===void 0&&(e=[]);var t=this.uint32(),n=this.pos+t,r=e.length;if(n>this.len)throw o(this,t);var i=t>>>3;e.length=r+i;for(var a=0;a<i;++a)e[r++]=this.fixed64();if(this.pos!==n)throw o(this,8);return e},s.prototype.sfixed64s=function(e){e===void 0&&(e=[]);var t=this.uint32(),n=this.pos+t,r=e.length;if(n>this.len)throw o(this,t);var i=t>>>3;e.length=r+i;for(var a=0;a<i;++a)e[r++]=this.sfixed64();if(this.pos!==n)throw o(this,8);return e},s.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,this.raw(t,n)},s.prototype.string=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,a.read(this.buf,t,n)},s.prototype.stringVerify=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos=n,a.readStrict(this.buf,t,n)},s.prototype.skip=function(e){if(typeof e==`number`){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},s.recursionLimit=n.recursionLimit,s.discardUnknown=!0,s.prototype.skipType=function(e,t,n){if(t===void 0&&(t=0),t>s.recursionLimit)throw Error(`max depth exceeded`);if(n===0)throw Error(`illegal tag: field number 0`);switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;;){var r=this.tag(),i=r>>>3;if(e=r&7,!i)throw Error(`illegal tag: field number 0`);if(e===4){if(n!==void 0&&i!==n)throw Error(`invalid end group tag`);break}this.skipType(e,t+1,i)}break;case 5:this.skip(4);break;default:throw Error(`invalid wire type `+e+` at offset `+this.pos)}return this},s._configure=function(e){r=e,s.create=l(),r._configure();var t=n.Long?`toLong`:`toNumber`;n.merge(s.prototype,{int64:function(){return u.call(this)[t](!1)},uint64:function(){return u.call(this)[t](!0)},sint64:function(){return u.call(this).zzDecode()[t](!1)},fixed64:function(){return f.call(this)[t](!0)},sfixed64:function(){return f.call(this)[t](!1)}})}})),on=r(((e,t)=>{t.exports=i;var n=an();i.prototype=Object.create(n.prototype,{constructor:{value:i,writable:!0,enumerable:!1,configurable:!0}});var r=H();function i(e){n.call(this,e)}i._configure=function(){r.Buffer&&(i.prototype._slice=r.Buffer.prototype.slice)},i.prototype.raw=function(e,t){return this._slice.call(this.buf,e,t)},i.prototype.string=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw RangeError(`index out of range: `+this.pos+` + `+e+` > `+this.len);return this.pos=n,this.buf.utf8Slice?this.buf.utf8Slice(t,n):this.buf.toString(`utf-8`,t,n)},i._configure()})),sn=r(((e,t)=>{t.exports=r;var n=H();r.prototype=Object.create(n.EventEmitter.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});function r(e,t,r){if(typeof e!=`function`)throw TypeError(`rpcImpl must be a function`);n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}r.prototype.rpcCall=function e(t,r,i,a,o){if(!a)throw TypeError(`request must be specified`);var s=this;if(!o)return n.asPromise(e,s,t,r,i,a);if(!s.rpcImpl){setTimeout(function(){o(Error(`already ended`))},0);return}try{return s.rpcImpl(t,r[s.requestDelimited?`encodeDelimited`:`encode`](a).finish(),function(e,n){if(e)return s.emit(`error`,e,t),o(e);if(n===null){s.end(!0);return}if(!(n instanceof i))try{n=i[s.responseDelimited?`decodeDelimited`:`decode`](n)}catch(e){return s.emit(`error`,e,t),o(e)}return s.emit(`data`,n,t),o(null,n)})}catch(e){s.emit(`error`,e,t),setTimeout(function(){o(e)},0);return}},r.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(`end`).off()),this}})),cn=r((e=>{var t=e;t.Service=sn()})),ln=r(((e,t)=>{t.exports=Object.create(null)})),un=r((e=>{e.build=`minimal`,e.Writer=nn(),e.BufferWriter=rn(),e.Reader=an(),e.BufferReader=on(),e.util=H(),e.rpc=cn(),e.roots=ln(),e.configure=t;function t(){e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}t()})),dn=r(((e,t)=>{t.exports=un()})),fn=r(((e,t)=>{var n=dn(),r=n.Reader,i=n.Writer,a=n.util,o=n.roots.default||(n.roots.default={});o.opentelemetry=(function(){var e={};return e.proto=(function(){var e={};return e.common=(function(){var e={};return e.v1=(function(){var e={};return e.AnyValue=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}e.prototype.stringValue=null,e.prototype.boolValue=null,e.prototype.intValue=null,e.prototype.doubleValue=null,e.prototype.arrayValue=null,e.prototype.kvlistValue=null,e.prototype.bytesValue=null;var t;return Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=[`stringValue`,`boolValue`,`intValue`,`doubleValue`,`arrayValue`,`kvlistValue`,`bytesValue`]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.stringValue!=null&&Object.hasOwnProperty.call(e,`stringValue`)&&t.uint32(10).string(e.stringValue),e.boolValue!=null&&Object.hasOwnProperty.call(e,`boolValue`)&&t.uint32(16).bool(e.boolValue),e.intValue!=null&&Object.hasOwnProperty.call(e,`intValue`)&&t.uint32(24).int64(e.intValue),e.doubleValue!=null&&Object.hasOwnProperty.call(e,`doubleValue`)&&t.uint32(33).double(e.doubleValue),e.arrayValue!=null&&Object.hasOwnProperty.call(e,`arrayValue`)&&o.opentelemetry.proto.common.v1.ArrayValue.encode(e.arrayValue,t.uint32(42).fork()).ldelim(),e.kvlistValue!=null&&Object.hasOwnProperty.call(e,`kvlistValue`)&&o.opentelemetry.proto.common.v1.KeyValueList.encode(e.kvlistValue,t.uint32(50).fork()).ldelim(),e.bytesValue!=null&&Object.hasOwnProperty.call(e,`bytesValue`)&&t.uint32(58).bytes(e.bytesValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.common.v1.AnyValue;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.stringValue=e.string();break;case 2:a.boolValue=e.bool();break;case 3:a.intValue=e.int64();break;case 4:a.doubleValue=e.double();break;case 5:a.arrayValue=o.opentelemetry.proto.common.v1.ArrayValue.decode(e,e.uint32());break;case 6:a.kvlistValue=o.opentelemetry.proto.common.v1.KeyValueList.decode(e,e.uint32());break;case 7:a.bytesValue=e.bytes();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;var t={};if(e.stringValue!=null&&e.hasOwnProperty(`stringValue`)&&(t.value=1,!a.isString(e.stringValue)))return`stringValue: string expected`;if(e.boolValue!=null&&e.hasOwnProperty(`boolValue`)){if(t.value===1)return`value: multiple values`;if(t.value=1,typeof e.boolValue!=`boolean`)return`boolValue: boolean expected`}if(e.intValue!=null&&e.hasOwnProperty(`intValue`)){if(t.value===1)return`value: multiple values`;if(t.value=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return`intValue: integer|Long expected`}if(e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)){if(t.value===1)return`value: multiple values`;if(t.value=1,typeof e.doubleValue!=`number`)return`doubleValue: number expected`}if(e.arrayValue!=null&&e.hasOwnProperty(`arrayValue`)){if(t.value===1)return`value: multiple values`;t.value=1;var n=o.opentelemetry.proto.common.v1.ArrayValue.verify(e.arrayValue);if(n)return`arrayValue.`+n}if(e.kvlistValue!=null&&e.hasOwnProperty(`kvlistValue`)){if(t.value===1)return`value: multiple values`;t.value=1;var n=o.opentelemetry.proto.common.v1.KeyValueList.verify(e.kvlistValue);if(n)return`kvlistValue.`+n}if(e.bytesValue!=null&&e.hasOwnProperty(`bytesValue`)){if(t.value===1)return`value: multiple values`;if(t.value=1,!(e.bytesValue&&typeof e.bytesValue.length==`number`||a.isString(e.bytesValue)))return`bytesValue: buffer expected`}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.common.v1.AnyValue)return e;var t=new o.opentelemetry.proto.common.v1.AnyValue;if(e.stringValue!=null&&(t.stringValue=String(e.stringValue)),e.boolValue!=null&&(t.boolValue=!!e.boolValue),e.intValue!=null&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:typeof e.intValue==`string`?t.intValue=parseInt(e.intValue,10):typeof e.intValue==`number`?t.intValue=e.intValue:typeof e.intValue==`object`&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),e.doubleValue!=null&&(t.doubleValue=Number(e.doubleValue)),e.arrayValue!=null){if(typeof e.arrayValue!=`object`)throw TypeError(`.opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected`);t.arrayValue=o.opentelemetry.proto.common.v1.ArrayValue.fromObject(e.arrayValue)}if(e.kvlistValue!=null){if(typeof e.kvlistValue!=`object`)throw TypeError(`.opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected`);t.kvlistValue=o.opentelemetry.proto.common.v1.KeyValueList.fromObject(e.kvlistValue)}return e.bytesValue!=null&&(typeof e.bytesValue==`string`?a.base64.decode(e.bytesValue,t.bytesValue=a.newBuffer(a.base64.length(e.bytesValue)),0):e.bytesValue.length>=0&&(t.bytesValue=e.bytesValue)),t},e.toObject=function(e,t){t||(t={});var n={};return e.stringValue!=null&&e.hasOwnProperty(`stringValue`)&&(n.stringValue=e.stringValue,t.oneofs&&(n.value=`stringValue`)),e.boolValue!=null&&e.hasOwnProperty(`boolValue`)&&(n.boolValue=e.boolValue,t.oneofs&&(n.value=`boolValue`)),e.intValue!=null&&e.hasOwnProperty(`intValue`)&&(typeof e.intValue==`number`?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value=`intValue`)),e.doubleValue!=null&&e.hasOwnProperty(`doubleValue`)&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value=`doubleValue`)),e.arrayValue!=null&&e.hasOwnProperty(`arrayValue`)&&(n.arrayValue=o.opentelemetry.proto.common.v1.ArrayValue.toObject(e.arrayValue,t),t.oneofs&&(n.value=`arrayValue`)),e.kvlistValue!=null&&e.hasOwnProperty(`kvlistValue`)&&(n.kvlistValue=o.opentelemetry.proto.common.v1.KeyValueList.toObject(e.kvlistValue,t),t.oneofs&&(n.value=`kvlistValue`)),e.bytesValue!=null&&e.hasOwnProperty(`bytesValue`)&&(n.bytesValue=t.bytes===String?a.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(n.value=`bytesValue`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.common.v1.AnyValue`},e})(),e.ArrayValue=(function(){function e(e){if(this.values=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.values=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.values!=null&&e.values.length)for(var n=0;n<e.values.length;++n)o.opentelemetry.proto.common.v1.AnyValue.encode(e.values[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.common.v1.ArrayValue;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.values&&a.values.length||(a.values=[]),a.values.push(o.opentelemetry.proto.common.v1.AnyValue.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.values!=null&&e.hasOwnProperty(`values`)){if(!Array.isArray(e.values))return`values: array expected`;for(var t=0;t<e.values.length;++t){var n=o.opentelemetry.proto.common.v1.AnyValue.verify(e.values[t]);if(n)return`values.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.common.v1.ArrayValue)return e;var t=new o.opentelemetry.proto.common.v1.ArrayValue;if(e.values){if(!Array.isArray(e.values))throw TypeError(`.opentelemetry.proto.common.v1.ArrayValue.values: array expected`);t.values=[];for(var n=0;n<e.values.length;++n){if(typeof e.values[n]!=`object`)throw TypeError(`.opentelemetry.proto.common.v1.ArrayValue.values: object expected`);t.values[n]=o.opentelemetry.proto.common.v1.AnyValue.fromObject(e.values[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.values=[]),e.values&&e.values.length){n.values=[];for(var r=0;r<e.values.length;++r)n.values[r]=o.opentelemetry.proto.common.v1.AnyValue.toObject(e.values[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.common.v1.ArrayValue`},e})(),e.KeyValueList=(function(){function e(e){if(this.values=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.values=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.values!=null&&e.values.length)for(var n=0;n<e.values.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.values[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.common.v1.KeyValueList;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.values&&a.values.length||(a.values=[]),a.values.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.values!=null&&e.hasOwnProperty(`values`)){if(!Array.isArray(e.values))return`values: array expected`;for(var t=0;t<e.values.length;++t){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.values[t]);if(n)return`values.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.common.v1.KeyValueList)return e;var t=new o.opentelemetry.proto.common.v1.KeyValueList;if(e.values){if(!Array.isArray(e.values))throw TypeError(`.opentelemetry.proto.common.v1.KeyValueList.values: array expected`);t.values=[];for(var n=0;n<e.values.length;++n){if(typeof e.values[n]!=`object`)throw TypeError(`.opentelemetry.proto.common.v1.KeyValueList.values: object expected`);t.values[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.values[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.values=[]),e.values&&e.values.length){n.values=[];for(var r=0;r<e.values.length;++r)n.values[r]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.values[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.common.v1.KeyValueList`},e})(),e.KeyValue=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.key=null,e.prototype.value=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.key!=null&&Object.hasOwnProperty.call(e,`key`)&&t.uint32(10).string(e.key),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&o.opentelemetry.proto.common.v1.AnyValue.encode(e.value,t.uint32(18).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.common.v1.KeyValue;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.key=e.string();break;case 2:a.value=o.opentelemetry.proto.common.v1.AnyValue.decode(e,e.uint32());break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.key!=null&&e.hasOwnProperty(`key`)&&!a.isString(e.key))return`key: string expected`;if(e.value!=null&&e.hasOwnProperty(`value`)){var t=o.opentelemetry.proto.common.v1.AnyValue.verify(e.value);if(t)return`value.`+t}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.common.v1.KeyValue)return e;var t=new o.opentelemetry.proto.common.v1.KeyValue;if(e.key!=null&&(t.key=String(e.key)),e.value!=null){if(typeof e.value!=`object`)throw TypeError(`.opentelemetry.proto.common.v1.KeyValue.value: object expected`);t.value=o.opentelemetry.proto.common.v1.AnyValue.fromObject(e.value)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key=``,n.value=null),e.key!=null&&e.hasOwnProperty(`key`)&&(n.key=e.key),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=o.opentelemetry.proto.common.v1.AnyValue.toObject(e.value,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.common.v1.KeyValue`},e})(),e.InstrumentationScope=(function(){function e(e){if(this.attributes=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.name=null,e.prototype.version=null,e.prototype.attributes=a.emptyArray,e.prototype.droppedAttributesCount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.version!=null&&Object.hasOwnProperty.call(e,`version`)&&t.uint32(18).string(e.version),e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,`droppedAttributesCount`)&&t.uint32(32).uint32(e.droppedAttributesCount),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.common.v1.InstrumentationScope;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.name=e.string();break;case 2:a.version=e.string();break;case 3:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 4:a.droppedAttributesCount=e.uint32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.name!=null&&e.hasOwnProperty(`name`)&&!a.isString(e.name))return`name: string expected`;if(e.version!=null&&e.hasOwnProperty(`version`)&&!a.isString(e.version))return`version: string expected`;if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var t=0;t<e.attributes.length;++t){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[t]);if(n)return`attributes.`+n}}return e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&!a.isInteger(e.droppedAttributesCount)?`droppedAttributesCount: integer expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.common.v1.InstrumentationScope)return e;var t=new o.opentelemetry.proto.common.v1.InstrumentationScope;if(e.name!=null&&(t.name=String(e.name)),e.version!=null&&(t.version=String(e.version)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}return e.droppedAttributesCount!=null&&(t.droppedAttributesCount=e.droppedAttributesCount>>>0),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.attributes=[]),t.defaults&&(n.name=``,n.version=``,n.droppedAttributesCount=0),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.version!=null&&e.hasOwnProperty(`version`)&&(n.version=e.version),e.attributes&&e.attributes.length){n.attributes=[];for(var r=0;r<e.attributes.length;++r)n.attributes[r]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[r],t)}return e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&(n.droppedAttributesCount=e.droppedAttributesCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.common.v1.InstrumentationScope`},e})(),e.EntityRef=(function(){function e(e){if(this.idKeys=[],this.descriptionKeys=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.schemaUrl=null,e.prototype.type=null,e.prototype.idKeys=a.emptyArray,e.prototype.descriptionKeys=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.schemaUrl!=null&&Object.hasOwnProperty.call(e,`schemaUrl`)&&t.uint32(10).string(e.schemaUrl),e.type!=null&&Object.hasOwnProperty.call(e,`type`)&&t.uint32(18).string(e.type),e.idKeys!=null&&e.idKeys.length)for(var n=0;n<e.idKeys.length;++n)t.uint32(26).string(e.idKeys[n]);if(e.descriptionKeys!=null&&e.descriptionKeys.length)for(var n=0;n<e.descriptionKeys.length;++n)t.uint32(34).string(e.descriptionKeys[n]);return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.common.v1.EntityRef;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.schemaUrl=e.string();break;case 2:a.type=e.string();break;case 3:a.idKeys&&a.idKeys.length||(a.idKeys=[]),a.idKeys.push(e.string());break;case 4:a.descriptionKeys&&a.descriptionKeys.length||(a.descriptionKeys=[]),a.descriptionKeys.push(e.string());break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&!a.isString(e.schemaUrl))return`schemaUrl: string expected`;if(e.type!=null&&e.hasOwnProperty(`type`)&&!a.isString(e.type))return`type: string expected`;if(e.idKeys!=null&&e.hasOwnProperty(`idKeys`)){if(!Array.isArray(e.idKeys))return`idKeys: array expected`;for(var t=0;t<e.idKeys.length;++t)if(!a.isString(e.idKeys[t]))return`idKeys: string[] expected`}if(e.descriptionKeys!=null&&e.hasOwnProperty(`descriptionKeys`)){if(!Array.isArray(e.descriptionKeys))return`descriptionKeys: array expected`;for(var t=0;t<e.descriptionKeys.length;++t)if(!a.isString(e.descriptionKeys[t]))return`descriptionKeys: string[] expected`}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.common.v1.EntityRef)return e;var t=new o.opentelemetry.proto.common.v1.EntityRef;if(e.schemaUrl!=null&&(t.schemaUrl=String(e.schemaUrl)),e.type!=null&&(t.type=String(e.type)),e.idKeys){if(!Array.isArray(e.idKeys))throw TypeError(`.opentelemetry.proto.common.v1.EntityRef.idKeys: array expected`);t.idKeys=[];for(var n=0;n<e.idKeys.length;++n)t.idKeys[n]=String(e.idKeys[n])}if(e.descriptionKeys){if(!Array.isArray(e.descriptionKeys))throw TypeError(`.opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected`);t.descriptionKeys=[];for(var n=0;n<e.descriptionKeys.length;++n)t.descriptionKeys[n]=String(e.descriptionKeys[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.idKeys=[],n.descriptionKeys=[]),t.defaults&&(n.schemaUrl=``,n.type=``),e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&(n.schemaUrl=e.schemaUrl),e.type!=null&&e.hasOwnProperty(`type`)&&(n.type=e.type),e.idKeys&&e.idKeys.length){n.idKeys=[];for(var r=0;r<e.idKeys.length;++r)n.idKeys[r]=e.idKeys[r]}if(e.descriptionKeys&&e.descriptionKeys.length){n.descriptionKeys=[];for(var r=0;r<e.descriptionKeys.length;++r)n.descriptionKeys[r]=e.descriptionKeys[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.common.v1.EntityRef`},e})(),e})(),e})(),e.resource=(function(){var e={};return e.v1=(function(){var e={};return e.Resource=(function(){function e(e){if(this.attributes=[],this.entityRefs=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.attributes=a.emptyArray,e.prototype.droppedAttributesCount=null,e.prototype.entityRefs=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(10).fork()).ldelim();if(e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,`droppedAttributesCount`)&&t.uint32(16).uint32(e.droppedAttributesCount),e.entityRefs!=null&&e.entityRefs.length)for(var n=0;n<e.entityRefs.length;++n)o.opentelemetry.proto.common.v1.EntityRef.encode(e.entityRefs[n],t.uint32(26).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.resource.v1.Resource;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 2:a.droppedAttributesCount=e.uint32();break;case 3:a.entityRefs&&a.entityRefs.length||(a.entityRefs=[]),a.entityRefs.push(o.opentelemetry.proto.common.v1.EntityRef.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var t=0;t<e.attributes.length;++t){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[t]);if(n)return`attributes.`+n}}if(e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&!a.isInteger(e.droppedAttributesCount))return`droppedAttributesCount: integer expected`;if(e.entityRefs!=null&&e.hasOwnProperty(`entityRefs`)){if(!Array.isArray(e.entityRefs))return`entityRefs: array expected`;for(var t=0;t<e.entityRefs.length;++t){var n=o.opentelemetry.proto.common.v1.EntityRef.verify(e.entityRefs[t]);if(n)return`entityRefs.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.resource.v1.Resource)return e;var t=new o.opentelemetry.proto.resource.v1.Resource;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.resource.v1.Resource.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.resource.v1.Resource.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}if(e.droppedAttributesCount!=null&&(t.droppedAttributesCount=e.droppedAttributesCount>>>0),e.entityRefs){if(!Array.isArray(e.entityRefs))throw TypeError(`.opentelemetry.proto.resource.v1.Resource.entityRefs: array expected`);t.entityRefs=[];for(var n=0;n<e.entityRefs.length;++n){if(typeof e.entityRefs[n]!=`object`)throw TypeError(`.opentelemetry.proto.resource.v1.Resource.entityRefs: object expected`);t.entityRefs[n]=o.opentelemetry.proto.common.v1.EntityRef.fromObject(e.entityRefs[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.attributes=[],n.entityRefs=[]),t.defaults&&(n.droppedAttributesCount=0),e.attributes&&e.attributes.length){n.attributes=[];for(var r=0;r<e.attributes.length;++r)n.attributes[r]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[r],t)}if(e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&(n.droppedAttributesCount=e.droppedAttributesCount),e.entityRefs&&e.entityRefs.length){n.entityRefs=[];for(var r=0;r<e.entityRefs.length;++r)n.entityRefs[r]=o.opentelemetry.proto.common.v1.EntityRef.toObject(e.entityRefs[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.resource.v1.Resource`},e})(),e})(),e})(),e.trace=(function(){var e={};return e.v1=(function(){var e={};return e.TracesData=(function(){function e(e){if(this.resourceSpans=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.resourceSpans=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.resourceSpans!=null&&e.resourceSpans.length)for(var n=0;n<e.resourceSpans.length;++n)o.opentelemetry.proto.trace.v1.ResourceSpans.encode(e.resourceSpans[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.trace.v1.TracesData;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.resourceSpans&&a.resourceSpans.length||(a.resourceSpans=[]),a.resourceSpans.push(o.opentelemetry.proto.trace.v1.ResourceSpans.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.resourceSpans!=null&&e.hasOwnProperty(`resourceSpans`)){if(!Array.isArray(e.resourceSpans))return`resourceSpans: array expected`;for(var t=0;t<e.resourceSpans.length;++t){var n=o.opentelemetry.proto.trace.v1.ResourceSpans.verify(e.resourceSpans[t]);if(n)return`resourceSpans.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.trace.v1.TracesData)return e;var t=new o.opentelemetry.proto.trace.v1.TracesData;if(e.resourceSpans){if(!Array.isArray(e.resourceSpans))throw TypeError(`.opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected`);t.resourceSpans=[];for(var n=0;n<e.resourceSpans.length;++n){if(typeof e.resourceSpans[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected`);t.resourceSpans[n]=o.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(e.resourceSpans[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.resourceSpans=[]),e.resourceSpans&&e.resourceSpans.length){n.resourceSpans=[];for(var r=0;r<e.resourceSpans.length;++r)n.resourceSpans[r]=o.opentelemetry.proto.trace.v1.ResourceSpans.toObject(e.resourceSpans[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.trace.v1.TracesData`},e})(),e.ResourceSpans=(function(){function e(e){if(this.scopeSpans=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.resource=null,e.prototype.scopeSpans=a.emptyArray,e.prototype.schemaUrl=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.resource!=null&&Object.hasOwnProperty.call(e,`resource`)&&o.opentelemetry.proto.resource.v1.Resource.encode(e.resource,t.uint32(10).fork()).ldelim(),e.scopeSpans!=null&&e.scopeSpans.length)for(var n=0;n<e.scopeSpans.length;++n)o.opentelemetry.proto.trace.v1.ScopeSpans.encode(e.scopeSpans[n],t.uint32(18).fork()).ldelim();return e.schemaUrl!=null&&Object.hasOwnProperty.call(e,`schemaUrl`)&&t.uint32(26).string(e.schemaUrl),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.trace.v1.ResourceSpans;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.resource=o.opentelemetry.proto.resource.v1.Resource.decode(e,e.uint32());break;case 2:a.scopeSpans&&a.scopeSpans.length||(a.scopeSpans=[]),a.scopeSpans.push(o.opentelemetry.proto.trace.v1.ScopeSpans.decode(e,e.uint32()));break;case 3:a.schemaUrl=e.string();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.resource!=null&&e.hasOwnProperty(`resource`)){var t=o.opentelemetry.proto.resource.v1.Resource.verify(e.resource);if(t)return`resource.`+t}if(e.scopeSpans!=null&&e.hasOwnProperty(`scopeSpans`)){if(!Array.isArray(e.scopeSpans))return`scopeSpans: array expected`;for(var n=0;n<e.scopeSpans.length;++n){var t=o.opentelemetry.proto.trace.v1.ScopeSpans.verify(e.scopeSpans[n]);if(t)return`scopeSpans.`+t}}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&!a.isString(e.schemaUrl)?`schemaUrl: string expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.trace.v1.ResourceSpans)return e;var t=new o.opentelemetry.proto.trace.v1.ResourceSpans;if(e.resource!=null){if(typeof e.resource!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected`);t.resource=o.opentelemetry.proto.resource.v1.Resource.fromObject(e.resource)}if(e.scopeSpans){if(!Array.isArray(e.scopeSpans))throw TypeError(`.opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected`);t.scopeSpans=[];for(var n=0;n<e.scopeSpans.length;++n){if(typeof e.scopeSpans[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected`);t.scopeSpans[n]=o.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(e.scopeSpans[n])}}return e.schemaUrl!=null&&(t.schemaUrl=String(e.schemaUrl)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.scopeSpans=[]),t.defaults&&(n.resource=null,n.schemaUrl=``),e.resource!=null&&e.hasOwnProperty(`resource`)&&(n.resource=o.opentelemetry.proto.resource.v1.Resource.toObject(e.resource,t)),e.scopeSpans&&e.scopeSpans.length){n.scopeSpans=[];for(var r=0;r<e.scopeSpans.length;++r)n.scopeSpans[r]=o.opentelemetry.proto.trace.v1.ScopeSpans.toObject(e.scopeSpans[r],t)}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&(n.schemaUrl=e.schemaUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.trace.v1.ResourceSpans`},e})(),e.ScopeSpans=(function(){function e(e){if(this.spans=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.scope=null,e.prototype.spans=a.emptyArray,e.prototype.schemaUrl=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.scope!=null&&Object.hasOwnProperty.call(e,`scope`)&&o.opentelemetry.proto.common.v1.InstrumentationScope.encode(e.scope,t.uint32(10).fork()).ldelim(),e.spans!=null&&e.spans.length)for(var n=0;n<e.spans.length;++n)o.opentelemetry.proto.trace.v1.Span.encode(e.spans[n],t.uint32(18).fork()).ldelim();return e.schemaUrl!=null&&Object.hasOwnProperty.call(e,`schemaUrl`)&&t.uint32(26).string(e.schemaUrl),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.trace.v1.ScopeSpans;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.scope=o.opentelemetry.proto.common.v1.InstrumentationScope.decode(e,e.uint32());break;case 2:a.spans&&a.spans.length||(a.spans=[]),a.spans.push(o.opentelemetry.proto.trace.v1.Span.decode(e,e.uint32()));break;case 3:a.schemaUrl=e.string();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.scope!=null&&e.hasOwnProperty(`scope`)){var t=o.opentelemetry.proto.common.v1.InstrumentationScope.verify(e.scope);if(t)return`scope.`+t}if(e.spans!=null&&e.hasOwnProperty(`spans`)){if(!Array.isArray(e.spans))return`spans: array expected`;for(var n=0;n<e.spans.length;++n){var t=o.opentelemetry.proto.trace.v1.Span.verify(e.spans[n]);if(t)return`spans.`+t}}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&!a.isString(e.schemaUrl)?`schemaUrl: string expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.trace.v1.ScopeSpans)return e;var t=new o.opentelemetry.proto.trace.v1.ScopeSpans;if(e.scope!=null){if(typeof e.scope!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected`);t.scope=o.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(e.scope)}if(e.spans){if(!Array.isArray(e.spans))throw TypeError(`.opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected`);t.spans=[];for(var n=0;n<e.spans.length;++n){if(typeof e.spans[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected`);t.spans[n]=o.opentelemetry.proto.trace.v1.Span.fromObject(e.spans[n])}}return e.schemaUrl!=null&&(t.schemaUrl=String(e.schemaUrl)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.spans=[]),t.defaults&&(n.scope=null,n.schemaUrl=``),e.scope!=null&&e.hasOwnProperty(`scope`)&&(n.scope=o.opentelemetry.proto.common.v1.InstrumentationScope.toObject(e.scope,t)),e.spans&&e.spans.length){n.spans=[];for(var r=0;r<e.spans.length;++r)n.spans[r]=o.opentelemetry.proto.trace.v1.Span.toObject(e.spans[r],t)}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&(n.schemaUrl=e.schemaUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.trace.v1.ScopeSpans`},e})(),e.Span=(function(){function e(e){if(this.attributes=[],this.events=[],this.links=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.traceId=null,e.prototype.spanId=null,e.prototype.traceState=null,e.prototype.parentSpanId=null,e.prototype.flags=null,e.prototype.name=null,e.prototype.kind=null,e.prototype.startTimeUnixNano=null,e.prototype.endTimeUnixNano=null,e.prototype.attributes=a.emptyArray,e.prototype.droppedAttributesCount=null,e.prototype.events=a.emptyArray,e.prototype.droppedEventsCount=null,e.prototype.links=a.emptyArray,e.prototype.droppedLinksCount=null,e.prototype.status=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.traceId!=null&&Object.hasOwnProperty.call(e,`traceId`)&&t.uint32(10).bytes(e.traceId),e.spanId!=null&&Object.hasOwnProperty.call(e,`spanId`)&&t.uint32(18).bytes(e.spanId),e.traceState!=null&&Object.hasOwnProperty.call(e,`traceState`)&&t.uint32(26).string(e.traceState),e.parentSpanId!=null&&Object.hasOwnProperty.call(e,`parentSpanId`)&&t.uint32(34).bytes(e.parentSpanId),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(42).string(e.name),e.kind!=null&&Object.hasOwnProperty.call(e,`kind`)&&t.uint32(48).int32(e.kind),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,`startTimeUnixNano`)&&t.uint32(57).fixed64(e.startTimeUnixNano),e.endTimeUnixNano!=null&&Object.hasOwnProperty.call(e,`endTimeUnixNano`)&&t.uint32(65).fixed64(e.endTimeUnixNano),e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(74).fork()).ldelim();if(e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,`droppedAttributesCount`)&&t.uint32(80).uint32(e.droppedAttributesCount),e.events!=null&&e.events.length)for(var n=0;n<e.events.length;++n)o.opentelemetry.proto.trace.v1.Span.Event.encode(e.events[n],t.uint32(90).fork()).ldelim();if(e.droppedEventsCount!=null&&Object.hasOwnProperty.call(e,`droppedEventsCount`)&&t.uint32(96).uint32(e.droppedEventsCount),e.links!=null&&e.links.length)for(var n=0;n<e.links.length;++n)o.opentelemetry.proto.trace.v1.Span.Link.encode(e.links[n],t.uint32(106).fork()).ldelim();return e.droppedLinksCount!=null&&Object.hasOwnProperty.call(e,`droppedLinksCount`)&&t.uint32(112).uint32(e.droppedLinksCount),e.status!=null&&Object.hasOwnProperty.call(e,`status`)&&o.opentelemetry.proto.trace.v1.Status.encode(e.status,t.uint32(122).fork()).ldelim(),e.flags!=null&&Object.hasOwnProperty.call(e,`flags`)&&t.uint32(133).fixed32(e.flags),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.trace.v1.Span;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.traceId=e.bytes();break;case 2:a.spanId=e.bytes();break;case 3:a.traceState=e.string();break;case 4:a.parentSpanId=e.bytes();break;case 16:a.flags=e.fixed32();break;case 5:a.name=e.string();break;case 6:a.kind=e.int32();break;case 7:a.startTimeUnixNano=e.fixed64();break;case 8:a.endTimeUnixNano=e.fixed64();break;case 9:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 10:a.droppedAttributesCount=e.uint32();break;case 11:a.events&&a.events.length||(a.events=[]),a.events.push(o.opentelemetry.proto.trace.v1.Span.Event.decode(e,e.uint32()));break;case 12:a.droppedEventsCount=e.uint32();break;case 13:a.links&&a.links.length||(a.links=[]),a.links.push(o.opentelemetry.proto.trace.v1.Span.Link.decode(e,e.uint32()));break;case 14:a.droppedLinksCount=e.uint32();break;case 15:a.status=o.opentelemetry.proto.trace.v1.Status.decode(e,e.uint32());break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.traceId!=null&&e.hasOwnProperty(`traceId`)&&!(e.traceId&&typeof e.traceId.length==`number`||a.isString(e.traceId)))return`traceId: buffer expected`;if(e.spanId!=null&&e.hasOwnProperty(`spanId`)&&!(e.spanId&&typeof e.spanId.length==`number`||a.isString(e.spanId)))return`spanId: buffer expected`;if(e.traceState!=null&&e.hasOwnProperty(`traceState`)&&!a.isString(e.traceState))return`traceState: string expected`;if(e.parentSpanId!=null&&e.hasOwnProperty(`parentSpanId`)&&!(e.parentSpanId&&typeof e.parentSpanId.length==`number`||a.isString(e.parentSpanId)))return`parentSpanId: buffer expected`;if(e.flags!=null&&e.hasOwnProperty(`flags`)&&!a.isInteger(e.flags))return`flags: integer expected`;if(e.name!=null&&e.hasOwnProperty(`name`)&&!a.isString(e.name))return`name: string expected`;if(e.kind!=null&&e.hasOwnProperty(`kind`))switch(e.kind){default:return`kind: enum value expected`;case 0:case 1:case 2:case 3:case 4:case 5:break}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&!a.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&a.isInteger(e.startTimeUnixNano.low)&&a.isInteger(e.startTimeUnixNano.high)))return`startTimeUnixNano: integer|Long expected`;if(e.endTimeUnixNano!=null&&e.hasOwnProperty(`endTimeUnixNano`)&&!a.isInteger(e.endTimeUnixNano)&&!(e.endTimeUnixNano&&a.isInteger(e.endTimeUnixNano.low)&&a.isInteger(e.endTimeUnixNano.high)))return`endTimeUnixNano: integer|Long expected`;if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var t=0;t<e.attributes.length;++t){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[t]);if(n)return`attributes.`+n}}if(e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&!a.isInteger(e.droppedAttributesCount))return`droppedAttributesCount: integer expected`;if(e.events!=null&&e.hasOwnProperty(`events`)){if(!Array.isArray(e.events))return`events: array expected`;for(var t=0;t<e.events.length;++t){var n=o.opentelemetry.proto.trace.v1.Span.Event.verify(e.events[t]);if(n)return`events.`+n}}if(e.droppedEventsCount!=null&&e.hasOwnProperty(`droppedEventsCount`)&&!a.isInteger(e.droppedEventsCount))return`droppedEventsCount: integer expected`;if(e.links!=null&&e.hasOwnProperty(`links`)){if(!Array.isArray(e.links))return`links: array expected`;for(var t=0;t<e.links.length;++t){var n=o.opentelemetry.proto.trace.v1.Span.Link.verify(e.links[t]);if(n)return`links.`+n}}if(e.droppedLinksCount!=null&&e.hasOwnProperty(`droppedLinksCount`)&&!a.isInteger(e.droppedLinksCount))return`droppedLinksCount: integer expected`;if(e.status!=null&&e.hasOwnProperty(`status`)){var n=o.opentelemetry.proto.trace.v1.Status.verify(e.status);if(n)return`status.`+n}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.trace.v1.Span)return e;var t=new o.opentelemetry.proto.trace.v1.Span;switch(e.traceId!=null&&(typeof e.traceId==`string`?a.base64.decode(e.traceId,t.traceId=a.newBuffer(a.base64.length(e.traceId)),0):e.traceId.length>=0&&(t.traceId=e.traceId)),e.spanId!=null&&(typeof e.spanId==`string`?a.base64.decode(e.spanId,t.spanId=a.newBuffer(a.base64.length(e.spanId)),0):e.spanId.length>=0&&(t.spanId=e.spanId)),e.traceState!=null&&(t.traceState=String(e.traceState)),e.parentSpanId!=null&&(typeof e.parentSpanId==`string`?a.base64.decode(e.parentSpanId,t.parentSpanId=a.newBuffer(a.base64.length(e.parentSpanId)),0):e.parentSpanId.length>=0&&(t.parentSpanId=e.parentSpanId)),e.flags!=null&&(t.flags=e.flags>>>0),e.name!=null&&(t.name=String(e.name)),e.kind){default:if(typeof e.kind==`number`){t.kind=e.kind;break}break;case`SPAN_KIND_UNSPECIFIED`:case 0:t.kind=0;break;case`SPAN_KIND_INTERNAL`:case 1:t.kind=1;break;case`SPAN_KIND_SERVER`:case 2:t.kind=2;break;case`SPAN_KIND_CLIENT`:case 3:t.kind=3;break;case`SPAN_KIND_PRODUCER`:case 4:t.kind=4;break;case`SPAN_KIND_CONSUMER`:case 5:t.kind=5;break}if(e.startTimeUnixNano!=null&&(a.Long?(t.startTimeUnixNano=a.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano==`string`?t.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano==`number`?t.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano==`object`&&(t.startTimeUnixNano=new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.endTimeUnixNano!=null&&(a.Long?(t.endTimeUnixNano=a.Long.fromValue(e.endTimeUnixNano)).unsigned=!1:typeof e.endTimeUnixNano==`string`?t.endTimeUnixNano=parseInt(e.endTimeUnixNano,10):typeof e.endTimeUnixNano==`number`?t.endTimeUnixNano=e.endTimeUnixNano:typeof e.endTimeUnixNano==`object`&&(t.endTimeUnixNano=new a.LongBits(e.endTimeUnixNano.low>>>0,e.endTimeUnixNano.high>>>0).toNumber())),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.trace.v1.Span.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.Span.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}if(e.droppedAttributesCount!=null&&(t.droppedAttributesCount=e.droppedAttributesCount>>>0),e.events){if(!Array.isArray(e.events))throw TypeError(`.opentelemetry.proto.trace.v1.Span.events: array expected`);t.events=[];for(var n=0;n<e.events.length;++n){if(typeof e.events[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.Span.events: object expected`);t.events[n]=o.opentelemetry.proto.trace.v1.Span.Event.fromObject(e.events[n])}}if(e.droppedEventsCount!=null&&(t.droppedEventsCount=e.droppedEventsCount>>>0),e.links){if(!Array.isArray(e.links))throw TypeError(`.opentelemetry.proto.trace.v1.Span.links: array expected`);t.links=[];for(var n=0;n<e.links.length;++n){if(typeof e.links[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.Span.links: object expected`);t.links[n]=o.opentelemetry.proto.trace.v1.Span.Link.fromObject(e.links[n])}}if(e.droppedLinksCount!=null&&(t.droppedLinksCount=e.droppedLinksCount>>>0),e.status!=null){if(typeof e.status!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.Span.status: object expected`);t.status=o.opentelemetry.proto.trace.v1.Status.fromObject(e.status)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.attributes=[],n.events=[],n.links=[]),t.defaults){if(t.bytes===String?n.traceId=``:(n.traceId=[],t.bytes!==Array&&(n.traceId=a.newBuffer(n.traceId))),t.bytes===String?n.spanId=``:(n.spanId=[],t.bytes!==Array&&(n.spanId=a.newBuffer(n.spanId))),n.traceState=``,t.bytes===String?n.parentSpanId=``:(n.parentSpanId=[],t.bytes!==Array&&(n.parentSpanId=a.newBuffer(n.parentSpanId))),n.name=``,n.kind=t.enums===String?`SPAN_KIND_UNSPECIFIED`:0,a.Long){var r=new a.Long(0,0,!1);n.startTimeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.startTimeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.endTimeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.endTimeUnixNano=t.longs===String?`0`:0;n.droppedAttributesCount=0,n.droppedEventsCount=0,n.droppedLinksCount=0,n.status=null,n.flags=0}if(e.traceId!=null&&e.hasOwnProperty(`traceId`)&&(n.traceId=t.bytes===String?a.base64.encode(e.traceId,0,e.traceId.length):t.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.spanId!=null&&e.hasOwnProperty(`spanId`)&&(n.spanId=t.bytes===String?a.base64.encode(e.spanId,0,e.spanId.length):t.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceState!=null&&e.hasOwnProperty(`traceState`)&&(n.traceState=e.traceState),e.parentSpanId!=null&&e.hasOwnProperty(`parentSpanId`)&&(n.parentSpanId=t.bytes===String?a.base64.encode(e.parentSpanId,0,e.parentSpanId.length):t.bytes===Array?Array.prototype.slice.call(e.parentSpanId):e.parentSpanId),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.kind!=null&&e.hasOwnProperty(`kind`)&&(n.kind=t.enums===String?o.opentelemetry.proto.trace.v1.Span.SpanKind[e.kind]===void 0?e.kind:o.opentelemetry.proto.trace.v1.Span.SpanKind[e.kind]:e.kind),e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&(typeof e.startTimeUnixNano==`number`?n.startTimeUnixNano=t.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:n.startTimeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.startTimeUnixNano):t.longs===Number?new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.endTimeUnixNano!=null&&e.hasOwnProperty(`endTimeUnixNano`)&&(typeof e.endTimeUnixNano==`number`?n.endTimeUnixNano=t.longs===String?String(e.endTimeUnixNano):e.endTimeUnixNano:n.endTimeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.endTimeUnixNano):t.longs===Number?new a.LongBits(e.endTimeUnixNano.low>>>0,e.endTimeUnixNano.high>>>0).toNumber():e.endTimeUnixNano),e.attributes&&e.attributes.length){n.attributes=[];for(var i=0;i<e.attributes.length;++i)n.attributes[i]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[i],t)}if(e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&(n.droppedAttributesCount=e.droppedAttributesCount),e.events&&e.events.length){n.events=[];for(var i=0;i<e.events.length;++i)n.events[i]=o.opentelemetry.proto.trace.v1.Span.Event.toObject(e.events[i],t)}if(e.droppedEventsCount!=null&&e.hasOwnProperty(`droppedEventsCount`)&&(n.droppedEventsCount=e.droppedEventsCount),e.links&&e.links.length){n.links=[];for(var i=0;i<e.links.length;++i)n.links[i]=o.opentelemetry.proto.trace.v1.Span.Link.toObject(e.links[i],t)}return e.droppedLinksCount!=null&&e.hasOwnProperty(`droppedLinksCount`)&&(n.droppedLinksCount=e.droppedLinksCount),e.status!=null&&e.hasOwnProperty(`status`)&&(n.status=o.opentelemetry.proto.trace.v1.Status.toObject(e.status,t)),e.flags!=null&&e.hasOwnProperty(`flags`)&&(n.flags=e.flags),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.trace.v1.Span`},e.SpanKind=(function(){var e={},t=Object.create(e);return t[e[0]=`SPAN_KIND_UNSPECIFIED`]=0,t[e[1]=`SPAN_KIND_INTERNAL`]=1,t[e[2]=`SPAN_KIND_SERVER`]=2,t[e[3]=`SPAN_KIND_CLIENT`]=3,t[e[4]=`SPAN_KIND_PRODUCER`]=4,t[e[5]=`SPAN_KIND_CONSUMER`]=5,t})(),e.Event=(function(){function e(e){if(this.attributes=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.timeUnixNano=null,e.prototype.name=null,e.prototype.attributes=a.emptyArray,e.prototype.droppedAttributesCount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,`timeUnixNano`)&&t.uint32(9).fixed64(e.timeUnixNano),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(18).string(e.name),e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,`droppedAttributesCount`)&&t.uint32(32).uint32(e.droppedAttributesCount),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.trace.v1.Span.Event;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.timeUnixNano=e.fixed64();break;case 2:a.name=e.string();break;case 3:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 4:a.droppedAttributesCount=e.uint32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&!a.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&a.isInteger(e.timeUnixNano.low)&&a.isInteger(e.timeUnixNano.high)))return`timeUnixNano: integer|Long expected`;if(e.name!=null&&e.hasOwnProperty(`name`)&&!a.isString(e.name))return`name: string expected`;if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var t=0;t<e.attributes.length;++t){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[t]);if(n)return`attributes.`+n}}return e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&!a.isInteger(e.droppedAttributesCount)?`droppedAttributesCount: integer expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.trace.v1.Span.Event)return e;var t=new o.opentelemetry.proto.trace.v1.Span.Event;if(e.timeUnixNano!=null&&(a.Long?(t.timeUnixNano=a.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano==`string`?t.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano==`number`?t.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano==`object`&&(t.timeUnixNano=new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.name!=null&&(t.name=String(e.name)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.trace.v1.Span.Event.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.Span.Event.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}return e.droppedAttributesCount!=null&&(t.droppedAttributesCount=e.droppedAttributesCount>>>0),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.attributes=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.timeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeUnixNano=t.longs===String?`0`:0;n.name=``,n.droppedAttributesCount=0}if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&(typeof e.timeUnixNano==`number`?n.timeUnixNano=t.longs===String?String(e.timeUnixNano):e.timeUnixNano:n.timeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.timeUnixNano):t.longs===Number?new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.attributes&&e.attributes.length){n.attributes=[];for(var i=0;i<e.attributes.length;++i)n.attributes[i]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[i],t)}return e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&(n.droppedAttributesCount=e.droppedAttributesCount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.trace.v1.Span.Event`},e})(),e.Link=(function(){function e(e){if(this.attributes=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.traceId=null,e.prototype.spanId=null,e.prototype.traceState=null,e.prototype.attributes=a.emptyArray,e.prototype.droppedAttributesCount=null,e.prototype.flags=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.traceId!=null&&Object.hasOwnProperty.call(e,`traceId`)&&t.uint32(10).bytes(e.traceId),e.spanId!=null&&Object.hasOwnProperty.call(e,`spanId`)&&t.uint32(18).bytes(e.spanId),e.traceState!=null&&Object.hasOwnProperty.call(e,`traceState`)&&t.uint32(26).string(e.traceState),e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(34).fork()).ldelim();return e.droppedAttributesCount!=null&&Object.hasOwnProperty.call(e,`droppedAttributesCount`)&&t.uint32(40).uint32(e.droppedAttributesCount),e.flags!=null&&Object.hasOwnProperty.call(e,`flags`)&&t.uint32(53).fixed32(e.flags),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.trace.v1.Span.Link;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.traceId=e.bytes();break;case 2:a.spanId=e.bytes();break;case 3:a.traceState=e.string();break;case 4:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 5:a.droppedAttributesCount=e.uint32();break;case 6:a.flags=e.fixed32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.traceId!=null&&e.hasOwnProperty(`traceId`)&&!(e.traceId&&typeof e.traceId.length==`number`||a.isString(e.traceId)))return`traceId: buffer expected`;if(e.spanId!=null&&e.hasOwnProperty(`spanId`)&&!(e.spanId&&typeof e.spanId.length==`number`||a.isString(e.spanId)))return`spanId: buffer expected`;if(e.traceState!=null&&e.hasOwnProperty(`traceState`)&&!a.isString(e.traceState))return`traceState: string expected`;if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var t=0;t<e.attributes.length;++t){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[t]);if(n)return`attributes.`+n}}return e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&!a.isInteger(e.droppedAttributesCount)?`droppedAttributesCount: integer expected`:e.flags!=null&&e.hasOwnProperty(`flags`)&&!a.isInteger(e.flags)?`flags: integer expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.trace.v1.Span.Link)return e;var t=new o.opentelemetry.proto.trace.v1.Span.Link;if(e.traceId!=null&&(typeof e.traceId==`string`?a.base64.decode(e.traceId,t.traceId=a.newBuffer(a.base64.length(e.traceId)),0):e.traceId.length>=0&&(t.traceId=e.traceId)),e.spanId!=null&&(typeof e.spanId==`string`?a.base64.decode(e.spanId,t.spanId=a.newBuffer(a.base64.length(e.spanId)),0):e.spanId.length>=0&&(t.spanId=e.spanId)),e.traceState!=null&&(t.traceState=String(e.traceState)),e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.trace.v1.Span.Link.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.trace.v1.Span.Link.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}return e.droppedAttributesCount!=null&&(t.droppedAttributesCount=e.droppedAttributesCount>>>0),e.flags!=null&&(t.flags=e.flags>>>0),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.attributes=[]),t.defaults&&(t.bytes===String?n.traceId=``:(n.traceId=[],t.bytes!==Array&&(n.traceId=a.newBuffer(n.traceId))),t.bytes===String?n.spanId=``:(n.spanId=[],t.bytes!==Array&&(n.spanId=a.newBuffer(n.spanId))),n.traceState=``,n.droppedAttributesCount=0,n.flags=0),e.traceId!=null&&e.hasOwnProperty(`traceId`)&&(n.traceId=t.bytes===String?a.base64.encode(e.traceId,0,e.traceId.length):t.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.spanId!=null&&e.hasOwnProperty(`spanId`)&&(n.spanId=t.bytes===String?a.base64.encode(e.spanId,0,e.spanId.length):t.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceState!=null&&e.hasOwnProperty(`traceState`)&&(n.traceState=e.traceState),e.attributes&&e.attributes.length){n.attributes=[];for(var r=0;r<e.attributes.length;++r)n.attributes[r]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[r],t)}return e.droppedAttributesCount!=null&&e.hasOwnProperty(`droppedAttributesCount`)&&(n.droppedAttributesCount=e.droppedAttributesCount),e.flags!=null&&e.hasOwnProperty(`flags`)&&(n.flags=e.flags),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.trace.v1.Span.Link`},e})(),e})(),e.Status=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.message=null,e.prototype.code=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.message!=null&&Object.hasOwnProperty.call(e,`message`)&&t.uint32(18).string(e.message),e.code!=null&&Object.hasOwnProperty.call(e,`code`)&&t.uint32(24).int32(e.code),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.trace.v1.Status;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 2:a.message=e.string();break;case 3:a.code=e.int32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.message!=null&&e.hasOwnProperty(`message`)&&!a.isString(e.message))return`message: string expected`;if(e.code!=null&&e.hasOwnProperty(`code`))switch(e.code){default:return`code: enum value expected`;case 0:case 1:case 2:break}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.trace.v1.Status)return e;var t=new o.opentelemetry.proto.trace.v1.Status;switch(e.message!=null&&(t.message=String(e.message)),e.code){default:if(typeof e.code==`number`){t.code=e.code;break}break;case`STATUS_CODE_UNSET`:case 0:t.code=0;break;case`STATUS_CODE_OK`:case 1:t.code=1;break;case`STATUS_CODE_ERROR`:case 2:t.code=2;break}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.message=``,n.code=t.enums===String?`STATUS_CODE_UNSET`:0),e.message!=null&&e.hasOwnProperty(`message`)&&(n.message=e.message),e.code!=null&&e.hasOwnProperty(`code`)&&(n.code=t.enums===String?o.opentelemetry.proto.trace.v1.Status.StatusCode[e.code]===void 0?e.code:o.opentelemetry.proto.trace.v1.Status.StatusCode[e.code]:e.code),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.trace.v1.Status`},e.StatusCode=(function(){var e={},t=Object.create(e);return t[e[0]=`STATUS_CODE_UNSET`]=0,t[e[1]=`STATUS_CODE_OK`]=1,t[e[2]=`STATUS_CODE_ERROR`]=2,t})(),e})(),e.SpanFlags=(function(){var e={},t=Object.create(e);return t[e[0]=`SPAN_FLAGS_DO_NOT_USE`]=0,t[e[255]=`SPAN_FLAGS_TRACE_FLAGS_MASK`]=255,t[e[256]=`SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK`]=256,t[e[512]=`SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK`]=512,t})(),e})(),e})(),e.collector=(function(){var e={};return e.trace=(function(){var e={};return e.v1=(function(){var e={};return e.TraceService=(function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.export=function e(t,n){return this.rpcCall(e,o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,t,n)},"name",{value:`Export`}),e})(),e.ExportTraceServiceRequest=(function(){function e(e){if(this.resourceSpans=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.resourceSpans=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.resourceSpans!=null&&e.resourceSpans.length)for(var n=0;n<e.resourceSpans.length;++n)o.opentelemetry.proto.trace.v1.ResourceSpans.encode(e.resourceSpans[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.resourceSpans&&a.resourceSpans.length||(a.resourceSpans=[]),a.resourceSpans.push(o.opentelemetry.proto.trace.v1.ResourceSpans.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.resourceSpans!=null&&e.hasOwnProperty(`resourceSpans`)){if(!Array.isArray(e.resourceSpans))return`resourceSpans: array expected`;for(var t=0;t<e.resourceSpans.length;++t){var n=o.opentelemetry.proto.trace.v1.ResourceSpans.verify(e.resourceSpans[t]);if(n)return`resourceSpans.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return e;var t=new o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(e.resourceSpans){if(!Array.isArray(e.resourceSpans))throw TypeError(`.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected`);t.resourceSpans=[];for(var n=0;n<e.resourceSpans.length;++n){if(typeof e.resourceSpans[n]!=`object`)throw TypeError(`.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected`);t.resourceSpans[n]=o.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(e.resourceSpans[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.resourceSpans=[]),e.resourceSpans&&e.resourceSpans.length){n.resourceSpans=[];for(var r=0;r<e.resourceSpans.length;++r)n.resourceSpans[r]=o.opentelemetry.proto.trace.v1.ResourceSpans.toObject(e.resourceSpans[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest`},e})(),e.ExportTraceServiceResponse=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.partialSuccess=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,`partialSuccess`)&&o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(e.partialSuccess,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.partialSuccess=o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(e,e.uint32());break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.partialSuccess!=null&&e.hasOwnProperty(`partialSuccess`)){var t=o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(e.partialSuccess);if(t)return`partialSuccess.`+t}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return e;var t=new o.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!=`object`)throw TypeError(`.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected`);t.partialSuccess=o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(e.partialSuccess)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty(`partialSuccess`)&&(n.partialSuccess=o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(e.partialSuccess,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse`},e})(),e.ExportTracePartialSuccess=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.rejectedSpans=null,e.prototype.errorMessage=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.rejectedSpans!=null&&Object.hasOwnProperty.call(e,`rejectedSpans`)&&t.uint32(8).int64(e.rejectedSpans),e.errorMessage!=null&&Object.hasOwnProperty.call(e,`errorMessage`)&&t.uint32(18).string(e.errorMessage),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.rejectedSpans=e.int64();break;case 2:a.errorMessage=e.string();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){return typeof e!=`object`||!e?`object expected`:e.rejectedSpans!=null&&e.hasOwnProperty(`rejectedSpans`)&&!a.isInteger(e.rejectedSpans)&&!(e.rejectedSpans&&a.isInteger(e.rejectedSpans.low)&&a.isInteger(e.rejectedSpans.high))?`rejectedSpans: integer|Long expected`:e.errorMessage!=null&&e.hasOwnProperty(`errorMessage`)&&!a.isString(e.errorMessage)?`errorMessage: string expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return e;var t=new o.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return e.rejectedSpans!=null&&(a.Long?(t.rejectedSpans=a.Long.fromValue(e.rejectedSpans)).unsigned=!1:typeof e.rejectedSpans==`string`?t.rejectedSpans=parseInt(e.rejectedSpans,10):typeof e.rejectedSpans==`number`?t.rejectedSpans=e.rejectedSpans:typeof e.rejectedSpans==`object`&&(t.rejectedSpans=new a.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber())),e.errorMessage!=null&&(t.errorMessage=String(e.errorMessage)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.rejectedSpans=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.rejectedSpans=t.longs===String?`0`:0;n.errorMessage=``}return e.rejectedSpans!=null&&e.hasOwnProperty(`rejectedSpans`)&&(typeof e.rejectedSpans==`number`?n.rejectedSpans=t.longs===String?String(e.rejectedSpans):e.rejectedSpans:n.rejectedSpans=t.longs===String?a.Long.prototype.toString.call(e.rejectedSpans):t.longs===Number?new a.LongBits(e.rejectedSpans.low>>>0,e.rejectedSpans.high>>>0).toNumber():e.rejectedSpans),e.errorMessage!=null&&e.hasOwnProperty(`errorMessage`)&&(n.errorMessage=e.errorMessage),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess`},e})(),e})(),e})(),e.metrics=(function(){var e={};return e.v1=(function(){var e={};return e.MetricsService=(function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.export=function e(t,n){return this.rpcCall(e,o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,t,n)},"name",{value:`Export`}),e})(),e.ExportMetricsServiceRequest=(function(){function e(e){if(this.resourceMetrics=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.resourceMetrics=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.resourceMetrics!=null&&e.resourceMetrics.length)for(var n=0;n<e.resourceMetrics.length;++n)o.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(e.resourceMetrics[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.resourceMetrics&&a.resourceMetrics.length||(a.resourceMetrics=[]),a.resourceMetrics.push(o.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.resourceMetrics!=null&&e.hasOwnProperty(`resourceMetrics`)){if(!Array.isArray(e.resourceMetrics))return`resourceMetrics: array expected`;for(var t=0;t<e.resourceMetrics.length;++t){var n=o.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(e.resourceMetrics[t]);if(n)return`resourceMetrics.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return e;var t=new o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(e.resourceMetrics){if(!Array.isArray(e.resourceMetrics))throw TypeError(`.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected`);t.resourceMetrics=[];for(var n=0;n<e.resourceMetrics.length;++n){if(typeof e.resourceMetrics[n]!=`object`)throw TypeError(`.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected`);t.resourceMetrics[n]=o.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(e.resourceMetrics[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.resourceMetrics=[]),e.resourceMetrics&&e.resourceMetrics.length){n.resourceMetrics=[];for(var r=0;r<e.resourceMetrics.length;++r)n.resourceMetrics[r]=o.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(e.resourceMetrics[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest`},e})(),e.ExportMetricsServiceResponse=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.partialSuccess=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.partialSuccess!=null&&Object.hasOwnProperty.call(e,`partialSuccess`)&&o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(e.partialSuccess,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.partialSuccess=o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(e,e.uint32());break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.partialSuccess!=null&&e.hasOwnProperty(`partialSuccess`)){var t=o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(e.partialSuccess);if(t)return`partialSuccess.`+t}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return e;var t=new o.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(e.partialSuccess!=null){if(typeof e.partialSuccess!=`object`)throw TypeError(`.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected`);t.partialSuccess=o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(e.partialSuccess)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.partialSuccess=null),e.partialSuccess!=null&&e.hasOwnProperty(`partialSuccess`)&&(n.partialSuccess=o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(e.partialSuccess,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse`},e})(),e.ExportMetricsPartialSuccess=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.rejectedDataPoints=null,e.prototype.errorMessage=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.rejectedDataPoints!=null&&Object.hasOwnProperty.call(e,`rejectedDataPoints`)&&t.uint32(8).int64(e.rejectedDataPoints),e.errorMessage!=null&&Object.hasOwnProperty.call(e,`errorMessage`)&&t.uint32(18).string(e.errorMessage),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.rejectedDataPoints=e.int64();break;case 2:a.errorMessage=e.string();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){return typeof e!=`object`||!e?`object expected`:e.rejectedDataPoints!=null&&e.hasOwnProperty(`rejectedDataPoints`)&&!a.isInteger(e.rejectedDataPoints)&&!(e.rejectedDataPoints&&a.isInteger(e.rejectedDataPoints.low)&&a.isInteger(e.rejectedDataPoints.high))?`rejectedDataPoints: integer|Long expected`:e.errorMessage!=null&&e.hasOwnProperty(`errorMessage`)&&!a.isString(e.errorMessage)?`errorMessage: string expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return e;var t=new o.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return e.rejectedDataPoints!=null&&(a.Long?(t.rejectedDataPoints=a.Long.fromValue(e.rejectedDataPoints)).unsigned=!1:typeof e.rejectedDataPoints==`string`?t.rejectedDataPoints=parseInt(e.rejectedDataPoints,10):typeof e.rejectedDataPoints==`number`?t.rejectedDataPoints=e.rejectedDataPoints:typeof e.rejectedDataPoints==`object`&&(t.rejectedDataPoints=new a.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber())),e.errorMessage!=null&&(t.errorMessage=String(e.errorMessage)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.rejectedDataPoints=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.rejectedDataPoints=t.longs===String?`0`:0;n.errorMessage=``}return e.rejectedDataPoints!=null&&e.hasOwnProperty(`rejectedDataPoints`)&&(typeof e.rejectedDataPoints==`number`?n.rejectedDataPoints=t.longs===String?String(e.rejectedDataPoints):e.rejectedDataPoints:n.rejectedDataPoints=t.longs===String?a.Long.prototype.toString.call(e.rejectedDataPoints):t.longs===Number?new a.LongBits(e.rejectedDataPoints.low>>>0,e.rejectedDataPoints.high>>>0).toNumber():e.rejectedDataPoints),e.errorMessage!=null&&e.hasOwnProperty(`errorMessage`)&&(n.errorMessage=e.errorMessage),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess`},e})(),e})(),e})(),e})(),e.metrics=(function(){var e={};return e.v1=(function(){var e={};return e.MetricsData=(function(){function e(e){if(this.resourceMetrics=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.resourceMetrics=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.resourceMetrics!=null&&e.resourceMetrics.length)for(var n=0;n<e.resourceMetrics.length;++n)o.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(e.resourceMetrics[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.MetricsData;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.resourceMetrics&&a.resourceMetrics.length||(a.resourceMetrics=[]),a.resourceMetrics.push(o.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.resourceMetrics!=null&&e.hasOwnProperty(`resourceMetrics`)){if(!Array.isArray(e.resourceMetrics))return`resourceMetrics: array expected`;for(var t=0;t<e.resourceMetrics.length;++t){var n=o.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(e.resourceMetrics[t]);if(n)return`resourceMetrics.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.MetricsData)return e;var t=new o.opentelemetry.proto.metrics.v1.MetricsData;if(e.resourceMetrics){if(!Array.isArray(e.resourceMetrics))throw TypeError(`.opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected`);t.resourceMetrics=[];for(var n=0;n<e.resourceMetrics.length;++n){if(typeof e.resourceMetrics[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected`);t.resourceMetrics[n]=o.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(e.resourceMetrics[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.resourceMetrics=[]),e.resourceMetrics&&e.resourceMetrics.length){n.resourceMetrics=[];for(var r=0;r<e.resourceMetrics.length;++r)n.resourceMetrics[r]=o.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(e.resourceMetrics[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.MetricsData`},e})(),e.ResourceMetrics=(function(){function e(e){if(this.scopeMetrics=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.resource=null,e.prototype.scopeMetrics=a.emptyArray,e.prototype.schemaUrl=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.resource!=null&&Object.hasOwnProperty.call(e,`resource`)&&o.opentelemetry.proto.resource.v1.Resource.encode(e.resource,t.uint32(10).fork()).ldelim(),e.scopeMetrics!=null&&e.scopeMetrics.length)for(var n=0;n<e.scopeMetrics.length;++n)o.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(e.scopeMetrics[n],t.uint32(18).fork()).ldelim();return e.schemaUrl!=null&&Object.hasOwnProperty.call(e,`schemaUrl`)&&t.uint32(26).string(e.schemaUrl),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.ResourceMetrics;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.resource=o.opentelemetry.proto.resource.v1.Resource.decode(e,e.uint32());break;case 2:a.scopeMetrics&&a.scopeMetrics.length||(a.scopeMetrics=[]),a.scopeMetrics.push(o.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(e,e.uint32()));break;case 3:a.schemaUrl=e.string();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.resource!=null&&e.hasOwnProperty(`resource`)){var t=o.opentelemetry.proto.resource.v1.Resource.verify(e.resource);if(t)return`resource.`+t}if(e.scopeMetrics!=null&&e.hasOwnProperty(`scopeMetrics`)){if(!Array.isArray(e.scopeMetrics))return`scopeMetrics: array expected`;for(var n=0;n<e.scopeMetrics.length;++n){var t=o.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(e.scopeMetrics[n]);if(t)return`scopeMetrics.`+t}}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&!a.isString(e.schemaUrl)?`schemaUrl: string expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.ResourceMetrics)return e;var t=new o.opentelemetry.proto.metrics.v1.ResourceMetrics;if(e.resource!=null){if(typeof e.resource!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected`);t.resource=o.opentelemetry.proto.resource.v1.Resource.fromObject(e.resource)}if(e.scopeMetrics){if(!Array.isArray(e.scopeMetrics))throw TypeError(`.opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected`);t.scopeMetrics=[];for(var n=0;n<e.scopeMetrics.length;++n){if(typeof e.scopeMetrics[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected`);t.scopeMetrics[n]=o.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(e.scopeMetrics[n])}}return e.schemaUrl!=null&&(t.schemaUrl=String(e.schemaUrl)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.scopeMetrics=[]),t.defaults&&(n.resource=null,n.schemaUrl=``),e.resource!=null&&e.hasOwnProperty(`resource`)&&(n.resource=o.opentelemetry.proto.resource.v1.Resource.toObject(e.resource,t)),e.scopeMetrics&&e.scopeMetrics.length){n.scopeMetrics=[];for(var r=0;r<e.scopeMetrics.length;++r)n.scopeMetrics[r]=o.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(e.scopeMetrics[r],t)}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&(n.schemaUrl=e.schemaUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.ResourceMetrics`},e})(),e.ScopeMetrics=(function(){function e(e){if(this.metrics=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.scope=null,e.prototype.metrics=a.emptyArray,e.prototype.schemaUrl=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.scope!=null&&Object.hasOwnProperty.call(e,`scope`)&&o.opentelemetry.proto.common.v1.InstrumentationScope.encode(e.scope,t.uint32(10).fork()).ldelim(),e.metrics!=null&&e.metrics.length)for(var n=0;n<e.metrics.length;++n)o.opentelemetry.proto.metrics.v1.Metric.encode(e.metrics[n],t.uint32(18).fork()).ldelim();return e.schemaUrl!=null&&Object.hasOwnProperty.call(e,`schemaUrl`)&&t.uint32(26).string(e.schemaUrl),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.ScopeMetrics;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.scope=o.opentelemetry.proto.common.v1.InstrumentationScope.decode(e,e.uint32());break;case 2:a.metrics&&a.metrics.length||(a.metrics=[]),a.metrics.push(o.opentelemetry.proto.metrics.v1.Metric.decode(e,e.uint32()));break;case 3:a.schemaUrl=e.string();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.scope!=null&&e.hasOwnProperty(`scope`)){var t=o.opentelemetry.proto.common.v1.InstrumentationScope.verify(e.scope);if(t)return`scope.`+t}if(e.metrics!=null&&e.hasOwnProperty(`metrics`)){if(!Array.isArray(e.metrics))return`metrics: array expected`;for(var n=0;n<e.metrics.length;++n){var t=o.opentelemetry.proto.metrics.v1.Metric.verify(e.metrics[n]);if(t)return`metrics.`+t}}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&!a.isString(e.schemaUrl)?`schemaUrl: string expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.ScopeMetrics)return e;var t=new o.opentelemetry.proto.metrics.v1.ScopeMetrics;if(e.scope!=null){if(typeof e.scope!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected`);t.scope=o.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(e.scope)}if(e.metrics){if(!Array.isArray(e.metrics))throw TypeError(`.opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected`);t.metrics=[];for(var n=0;n<e.metrics.length;++n){if(typeof e.metrics[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected`);t.metrics[n]=o.opentelemetry.proto.metrics.v1.Metric.fromObject(e.metrics[n])}}return e.schemaUrl!=null&&(t.schemaUrl=String(e.schemaUrl)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.metrics=[]),t.defaults&&(n.scope=null,n.schemaUrl=``),e.scope!=null&&e.hasOwnProperty(`scope`)&&(n.scope=o.opentelemetry.proto.common.v1.InstrumentationScope.toObject(e.scope,t)),e.metrics&&e.metrics.length){n.metrics=[];for(var r=0;r<e.metrics.length;++r)n.metrics[r]=o.opentelemetry.proto.metrics.v1.Metric.toObject(e.metrics[r],t)}return e.schemaUrl!=null&&e.hasOwnProperty(`schemaUrl`)&&(n.schemaUrl=e.schemaUrl),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.ScopeMetrics`},e})(),e.Metric=(function(){function e(e){if(this.metadata=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}e.prototype.name=null,e.prototype.description=null,e.prototype.unit=null,e.prototype.gauge=null,e.prototype.sum=null,e.prototype.histogram=null,e.prototype.exponentialHistogram=null,e.prototype.summary=null,e.prototype.metadata=a.emptyArray;var t;return Object.defineProperty(e.prototype,"data",{get:a.oneOfGetter(t=[`gauge`,`sum`,`histogram`,`exponentialHistogram`,`summary`]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.name!=null&&Object.hasOwnProperty.call(e,`name`)&&t.uint32(10).string(e.name),e.description!=null&&Object.hasOwnProperty.call(e,`description`)&&t.uint32(18).string(e.description),e.unit!=null&&Object.hasOwnProperty.call(e,`unit`)&&t.uint32(26).string(e.unit),e.gauge!=null&&Object.hasOwnProperty.call(e,`gauge`)&&o.opentelemetry.proto.metrics.v1.Gauge.encode(e.gauge,t.uint32(42).fork()).ldelim(),e.sum!=null&&Object.hasOwnProperty.call(e,`sum`)&&o.opentelemetry.proto.metrics.v1.Sum.encode(e.sum,t.uint32(58).fork()).ldelim(),e.histogram!=null&&Object.hasOwnProperty.call(e,`histogram`)&&o.opentelemetry.proto.metrics.v1.Histogram.encode(e.histogram,t.uint32(74).fork()).ldelim(),e.exponentialHistogram!=null&&Object.hasOwnProperty.call(e,`exponentialHistogram`)&&o.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(e.exponentialHistogram,t.uint32(82).fork()).ldelim(),e.summary!=null&&Object.hasOwnProperty.call(e,`summary`)&&o.opentelemetry.proto.metrics.v1.Summary.encode(e.summary,t.uint32(90).fork()).ldelim(),e.metadata!=null&&e.metadata.length)for(var n=0;n<e.metadata.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.metadata[n],t.uint32(98).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.Metric;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.name=e.string();break;case 2:a.description=e.string();break;case 3:a.unit=e.string();break;case 5:a.gauge=o.opentelemetry.proto.metrics.v1.Gauge.decode(e,e.uint32());break;case 7:a.sum=o.opentelemetry.proto.metrics.v1.Sum.decode(e,e.uint32());break;case 9:a.histogram=o.opentelemetry.proto.metrics.v1.Histogram.decode(e,e.uint32());break;case 10:a.exponentialHistogram=o.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(e,e.uint32());break;case 11:a.summary=o.opentelemetry.proto.metrics.v1.Summary.decode(e,e.uint32());break;case 12:a.metadata&&a.metadata.length||(a.metadata=[]),a.metadata.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;var t={};if(e.name!=null&&e.hasOwnProperty(`name`)&&!a.isString(e.name))return`name: string expected`;if(e.description!=null&&e.hasOwnProperty(`description`)&&!a.isString(e.description))return`description: string expected`;if(e.unit!=null&&e.hasOwnProperty(`unit`)&&!a.isString(e.unit))return`unit: string expected`;if(e.gauge!=null&&e.hasOwnProperty(`gauge`)){t.data=1;var n=o.opentelemetry.proto.metrics.v1.Gauge.verify(e.gauge);if(n)return`gauge.`+n}if(e.sum!=null&&e.hasOwnProperty(`sum`)){if(t.data===1)return`data: multiple values`;t.data=1;var n=o.opentelemetry.proto.metrics.v1.Sum.verify(e.sum);if(n)return`sum.`+n}if(e.histogram!=null&&e.hasOwnProperty(`histogram`)){if(t.data===1)return`data: multiple values`;t.data=1;var n=o.opentelemetry.proto.metrics.v1.Histogram.verify(e.histogram);if(n)return`histogram.`+n}if(e.exponentialHistogram!=null&&e.hasOwnProperty(`exponentialHistogram`)){if(t.data===1)return`data: multiple values`;t.data=1;var n=o.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(e.exponentialHistogram);if(n)return`exponentialHistogram.`+n}if(e.summary!=null&&e.hasOwnProperty(`summary`)){if(t.data===1)return`data: multiple values`;t.data=1;var n=o.opentelemetry.proto.metrics.v1.Summary.verify(e.summary);if(n)return`summary.`+n}if(e.metadata!=null&&e.hasOwnProperty(`metadata`)){if(!Array.isArray(e.metadata))return`metadata: array expected`;for(var r=0;r<e.metadata.length;++r){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.metadata[r]);if(n)return`metadata.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.Metric)return e;var t=new o.opentelemetry.proto.metrics.v1.Metric;if(e.name!=null&&(t.name=String(e.name)),e.description!=null&&(t.description=String(e.description)),e.unit!=null&&(t.unit=String(e.unit)),e.gauge!=null){if(typeof e.gauge!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Metric.gauge: object expected`);t.gauge=o.opentelemetry.proto.metrics.v1.Gauge.fromObject(e.gauge)}if(e.sum!=null){if(typeof e.sum!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Metric.sum: object expected`);t.sum=o.opentelemetry.proto.metrics.v1.Sum.fromObject(e.sum)}if(e.histogram!=null){if(typeof e.histogram!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Metric.histogram: object expected`);t.histogram=o.opentelemetry.proto.metrics.v1.Histogram.fromObject(e.histogram)}if(e.exponentialHistogram!=null){if(typeof e.exponentialHistogram!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected`);t.exponentialHistogram=o.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(e.exponentialHistogram)}if(e.summary!=null){if(typeof e.summary!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Metric.summary: object expected`);t.summary=o.opentelemetry.proto.metrics.v1.Summary.fromObject(e.summary)}if(e.metadata){if(!Array.isArray(e.metadata))throw TypeError(`.opentelemetry.proto.metrics.v1.Metric.metadata: array expected`);t.metadata=[];for(var n=0;n<e.metadata.length;++n){if(typeof e.metadata[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Metric.metadata: object expected`);t.metadata[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.metadata[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.metadata=[]),t.defaults&&(n.name=``,n.description=``,n.unit=``),e.name!=null&&e.hasOwnProperty(`name`)&&(n.name=e.name),e.description!=null&&e.hasOwnProperty(`description`)&&(n.description=e.description),e.unit!=null&&e.hasOwnProperty(`unit`)&&(n.unit=e.unit),e.gauge!=null&&e.hasOwnProperty(`gauge`)&&(n.gauge=o.opentelemetry.proto.metrics.v1.Gauge.toObject(e.gauge,t),t.oneofs&&(n.data=`gauge`)),e.sum!=null&&e.hasOwnProperty(`sum`)&&(n.sum=o.opentelemetry.proto.metrics.v1.Sum.toObject(e.sum,t),t.oneofs&&(n.data=`sum`)),e.histogram!=null&&e.hasOwnProperty(`histogram`)&&(n.histogram=o.opentelemetry.proto.metrics.v1.Histogram.toObject(e.histogram,t),t.oneofs&&(n.data=`histogram`)),e.exponentialHistogram!=null&&e.hasOwnProperty(`exponentialHistogram`)&&(n.exponentialHistogram=o.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(e.exponentialHistogram,t),t.oneofs&&(n.data=`exponentialHistogram`)),e.summary!=null&&e.hasOwnProperty(`summary`)&&(n.summary=o.opentelemetry.proto.metrics.v1.Summary.toObject(e.summary,t),t.oneofs&&(n.data=`summary`)),e.metadata&&e.metadata.length){n.metadata=[];for(var r=0;r<e.metadata.length;++r)n.metadata[r]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.metadata[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.Metric`},e})(),e.Gauge=(function(){function e(e){if(this.dataPoints=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.dataPoints=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.dataPoints!=null&&e.dataPoints.length)for(var n=0;n<e.dataPoints.length;++n)o.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(e.dataPoints[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.Gauge;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.dataPoints&&a.dataPoints.length||(a.dataPoints=[]),a.dataPoints.push(o.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.dataPoints!=null&&e.hasOwnProperty(`dataPoints`)){if(!Array.isArray(e.dataPoints))return`dataPoints: array expected`;for(var t=0;t<e.dataPoints.length;++t){var n=o.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(e.dataPoints[t]);if(n)return`dataPoints.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.Gauge)return e;var t=new o.opentelemetry.proto.metrics.v1.Gauge;if(e.dataPoints){if(!Array.isArray(e.dataPoints))throw TypeError(`.opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected`);t.dataPoints=[];for(var n=0;n<e.dataPoints.length;++n){if(typeof e.dataPoints[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected`);t.dataPoints[n]=o.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(e.dataPoints[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.dataPoints=[]),e.dataPoints&&e.dataPoints.length){n.dataPoints=[];for(var r=0;r<e.dataPoints.length;++r)n.dataPoints[r]=o.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(e.dataPoints[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.Gauge`},e})(),e.Sum=(function(){function e(e){if(this.dataPoints=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.dataPoints=a.emptyArray,e.prototype.aggregationTemporality=null,e.prototype.isMonotonic=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.dataPoints!=null&&e.dataPoints.length)for(var n=0;n<e.dataPoints.length;++n)o.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(e.dataPoints[n],t.uint32(10).fork()).ldelim();return e.aggregationTemporality!=null&&Object.hasOwnProperty.call(e,`aggregationTemporality`)&&t.uint32(16).int32(e.aggregationTemporality),e.isMonotonic!=null&&Object.hasOwnProperty.call(e,`isMonotonic`)&&t.uint32(24).bool(e.isMonotonic),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.Sum;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.dataPoints&&a.dataPoints.length||(a.dataPoints=[]),a.dataPoints.push(o.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(e,e.uint32()));break;case 2:a.aggregationTemporality=e.int32();break;case 3:a.isMonotonic=e.bool();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.dataPoints!=null&&e.hasOwnProperty(`dataPoints`)){if(!Array.isArray(e.dataPoints))return`dataPoints: array expected`;for(var t=0;t<e.dataPoints.length;++t){var n=o.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(e.dataPoints[t]);if(n)return`dataPoints.`+n}}if(e.aggregationTemporality!=null&&e.hasOwnProperty(`aggregationTemporality`))switch(e.aggregationTemporality){default:return`aggregationTemporality: enum value expected`;case 0:case 1:case 2:break}return e.isMonotonic!=null&&e.hasOwnProperty(`isMonotonic`)&&typeof e.isMonotonic!=`boolean`?`isMonotonic: boolean expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.Sum)return e;var t=new o.opentelemetry.proto.metrics.v1.Sum;if(e.dataPoints){if(!Array.isArray(e.dataPoints))throw TypeError(`.opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected`);t.dataPoints=[];for(var n=0;n<e.dataPoints.length;++n){if(typeof e.dataPoints[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected`);t.dataPoints[n]=o.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(e.dataPoints[n])}}switch(e.aggregationTemporality){default:if(typeof e.aggregationTemporality==`number`){t.aggregationTemporality=e.aggregationTemporality;break}break;case`AGGREGATION_TEMPORALITY_UNSPECIFIED`:case 0:t.aggregationTemporality=0;break;case`AGGREGATION_TEMPORALITY_DELTA`:case 1:t.aggregationTemporality=1;break;case`AGGREGATION_TEMPORALITY_CUMULATIVE`:case 2:t.aggregationTemporality=2;break}return e.isMonotonic!=null&&(t.isMonotonic=!!e.isMonotonic),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.dataPoints=[]),t.defaults&&(n.aggregationTemporality=t.enums===String?`AGGREGATION_TEMPORALITY_UNSPECIFIED`:0,n.isMonotonic=!1),e.dataPoints&&e.dataPoints.length){n.dataPoints=[];for(var r=0;r<e.dataPoints.length;++r)n.dataPoints[r]=o.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(e.dataPoints[r],t)}return e.aggregationTemporality!=null&&e.hasOwnProperty(`aggregationTemporality`)&&(n.aggregationTemporality=t.enums===String?o.opentelemetry.proto.metrics.v1.AggregationTemporality[e.aggregationTemporality]===void 0?e.aggregationTemporality:o.opentelemetry.proto.metrics.v1.AggregationTemporality[e.aggregationTemporality]:e.aggregationTemporality),e.isMonotonic!=null&&e.hasOwnProperty(`isMonotonic`)&&(n.isMonotonic=e.isMonotonic),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.Sum`},e})(),e.Histogram=(function(){function e(e){if(this.dataPoints=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.dataPoints=a.emptyArray,e.prototype.aggregationTemporality=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.dataPoints!=null&&e.dataPoints.length)for(var n=0;n<e.dataPoints.length;++n)o.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(e.dataPoints[n],t.uint32(10).fork()).ldelim();return e.aggregationTemporality!=null&&Object.hasOwnProperty.call(e,`aggregationTemporality`)&&t.uint32(16).int32(e.aggregationTemporality),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.Histogram;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.dataPoints&&a.dataPoints.length||(a.dataPoints=[]),a.dataPoints.push(o.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(e,e.uint32()));break;case 2:a.aggregationTemporality=e.int32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.dataPoints!=null&&e.hasOwnProperty(`dataPoints`)){if(!Array.isArray(e.dataPoints))return`dataPoints: array expected`;for(var t=0;t<e.dataPoints.length;++t){var n=o.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(e.dataPoints[t]);if(n)return`dataPoints.`+n}}if(e.aggregationTemporality!=null&&e.hasOwnProperty(`aggregationTemporality`))switch(e.aggregationTemporality){default:return`aggregationTemporality: enum value expected`;case 0:case 1:case 2:break}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.Histogram)return e;var t=new o.opentelemetry.proto.metrics.v1.Histogram;if(e.dataPoints){if(!Array.isArray(e.dataPoints))throw TypeError(`.opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected`);t.dataPoints=[];for(var n=0;n<e.dataPoints.length;++n){if(typeof e.dataPoints[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected`);t.dataPoints[n]=o.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(e.dataPoints[n])}}switch(e.aggregationTemporality){default:if(typeof e.aggregationTemporality==`number`){t.aggregationTemporality=e.aggregationTemporality;break}break;case`AGGREGATION_TEMPORALITY_UNSPECIFIED`:case 0:t.aggregationTemporality=0;break;case`AGGREGATION_TEMPORALITY_DELTA`:case 1:t.aggregationTemporality=1;break;case`AGGREGATION_TEMPORALITY_CUMULATIVE`:case 2:t.aggregationTemporality=2;break}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.dataPoints=[]),t.defaults&&(n.aggregationTemporality=t.enums===String?`AGGREGATION_TEMPORALITY_UNSPECIFIED`:0),e.dataPoints&&e.dataPoints.length){n.dataPoints=[];for(var r=0;r<e.dataPoints.length;++r)n.dataPoints[r]=o.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(e.dataPoints[r],t)}return e.aggregationTemporality!=null&&e.hasOwnProperty(`aggregationTemporality`)&&(n.aggregationTemporality=t.enums===String?o.opentelemetry.proto.metrics.v1.AggregationTemporality[e.aggregationTemporality]===void 0?e.aggregationTemporality:o.opentelemetry.proto.metrics.v1.AggregationTemporality[e.aggregationTemporality]:e.aggregationTemporality),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.Histogram`},e})(),e.ExponentialHistogram=(function(){function e(e){if(this.dataPoints=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.dataPoints=a.emptyArray,e.prototype.aggregationTemporality=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.dataPoints!=null&&e.dataPoints.length)for(var n=0;n<e.dataPoints.length;++n)o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(e.dataPoints[n],t.uint32(10).fork()).ldelim();return e.aggregationTemporality!=null&&Object.hasOwnProperty.call(e,`aggregationTemporality`)&&t.uint32(16).int32(e.aggregationTemporality),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.ExponentialHistogram;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.dataPoints&&a.dataPoints.length||(a.dataPoints=[]),a.dataPoints.push(o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(e,e.uint32()));break;case 2:a.aggregationTemporality=e.int32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.dataPoints!=null&&e.hasOwnProperty(`dataPoints`)){if(!Array.isArray(e.dataPoints))return`dataPoints: array expected`;for(var t=0;t<e.dataPoints.length;++t){var n=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(e.dataPoints[t]);if(n)return`dataPoints.`+n}}if(e.aggregationTemporality!=null&&e.hasOwnProperty(`aggregationTemporality`))switch(e.aggregationTemporality){default:return`aggregationTemporality: enum value expected`;case 0:case 1:case 2:break}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.ExponentialHistogram)return e;var t=new o.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(e.dataPoints){if(!Array.isArray(e.dataPoints))throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected`);t.dataPoints=[];for(var n=0;n<e.dataPoints.length;++n){if(typeof e.dataPoints[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected`);t.dataPoints[n]=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(e.dataPoints[n])}}switch(e.aggregationTemporality){default:if(typeof e.aggregationTemporality==`number`){t.aggregationTemporality=e.aggregationTemporality;break}break;case`AGGREGATION_TEMPORALITY_UNSPECIFIED`:case 0:t.aggregationTemporality=0;break;case`AGGREGATION_TEMPORALITY_DELTA`:case 1:t.aggregationTemporality=1;break;case`AGGREGATION_TEMPORALITY_CUMULATIVE`:case 2:t.aggregationTemporality=2;break}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.dataPoints=[]),t.defaults&&(n.aggregationTemporality=t.enums===String?`AGGREGATION_TEMPORALITY_UNSPECIFIED`:0),e.dataPoints&&e.dataPoints.length){n.dataPoints=[];for(var r=0;r<e.dataPoints.length;++r)n.dataPoints[r]=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(e.dataPoints[r],t)}return e.aggregationTemporality!=null&&e.hasOwnProperty(`aggregationTemporality`)&&(n.aggregationTemporality=t.enums===String?o.opentelemetry.proto.metrics.v1.AggregationTemporality[e.aggregationTemporality]===void 0?e.aggregationTemporality:o.opentelemetry.proto.metrics.v1.AggregationTemporality[e.aggregationTemporality]:e.aggregationTemporality),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.ExponentialHistogram`},e})(),e.Summary=(function(){function e(e){if(this.dataPoints=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.dataPoints=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.dataPoints!=null&&e.dataPoints.length)for(var n=0;n<e.dataPoints.length;++n)o.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(e.dataPoints[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.Summary;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.dataPoints&&a.dataPoints.length||(a.dataPoints=[]),a.dataPoints.push(o.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(e,e.uint32()));break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.dataPoints!=null&&e.hasOwnProperty(`dataPoints`)){if(!Array.isArray(e.dataPoints))return`dataPoints: array expected`;for(var t=0;t<e.dataPoints.length;++t){var n=o.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(e.dataPoints[t]);if(n)return`dataPoints.`+n}}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.Summary)return e;var t=new o.opentelemetry.proto.metrics.v1.Summary;if(e.dataPoints){if(!Array.isArray(e.dataPoints))throw TypeError(`.opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected`);t.dataPoints=[];for(var n=0;n<e.dataPoints.length;++n){if(typeof e.dataPoints[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected`);t.dataPoints[n]=o.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(e.dataPoints[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.dataPoints=[]),e.dataPoints&&e.dataPoints.length){n.dataPoints=[];for(var r=0;r<e.dataPoints.length;++r)n.dataPoints[r]=o.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(e.dataPoints[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.Summary`},e})(),e.AggregationTemporality=(function(){var e={},t=Object.create(e);return t[e[0]=`AGGREGATION_TEMPORALITY_UNSPECIFIED`]=0,t[e[1]=`AGGREGATION_TEMPORALITY_DELTA`]=1,t[e[2]=`AGGREGATION_TEMPORALITY_CUMULATIVE`]=2,t})(),e.DataPointFlags=(function(){var e={},t=Object.create(e);return t[e[0]=`DATA_POINT_FLAGS_DO_NOT_USE`]=0,t[e[1]=`DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK`]=1,t})(),e.NumberDataPoint=(function(){function e(e){if(this.attributes=[],this.exemplars=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}e.prototype.attributes=a.emptyArray,e.prototype.startTimeUnixNano=null,e.prototype.timeUnixNano=null,e.prototype.asDouble=null,e.prototype.asInt=null,e.prototype.exemplars=a.emptyArray,e.prototype.flags=null;var t;return Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=[`asDouble`,`asInt`]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,`startTimeUnixNano`)&&t.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,`timeUnixNano`)&&t.uint32(25).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,`asDouble`)&&t.uint32(33).double(e.asDouble),e.exemplars!=null&&e.exemplars.length)for(var n=0;n<e.exemplars.length;++n)o.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[n],t.uint32(42).fork()).ldelim();if(e.asInt!=null&&Object.hasOwnProperty.call(e,`asInt`)&&t.uint32(49).sfixed64(e.asInt),e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(58).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,`flags`)&&t.uint32(64).uint32(e.flags),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.NumberDataPoint;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 7:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 2:a.startTimeUnixNano=e.fixed64();break;case 3:a.timeUnixNano=e.fixed64();break;case 4:a.asDouble=e.double();break;case 6:a.asInt=e.sfixed64();break;case 5:a.exemplars&&a.exemplars.length||(a.exemplars=[]),a.exemplars.push(o.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break;case 8:a.flags=e.uint32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;var t={};if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var n=0;n<e.attributes.length;++n){var r=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(r)return`attributes.`+r}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&!a.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&a.isInteger(e.startTimeUnixNano.low)&&a.isInteger(e.startTimeUnixNano.high)))return`startTimeUnixNano: integer|Long expected`;if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&!a.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&a.isInteger(e.timeUnixNano.low)&&a.isInteger(e.timeUnixNano.high)))return`timeUnixNano: integer|Long expected`;if(e.asDouble!=null&&e.hasOwnProperty(`asDouble`)&&(t.value=1,typeof e.asDouble!=`number`))return`asDouble: number expected`;if(e.asInt!=null&&e.hasOwnProperty(`asInt`)){if(t.value===1)return`value: multiple values`;if(t.value=1,!a.isInteger(e.asInt)&&!(e.asInt&&a.isInteger(e.asInt.low)&&a.isInteger(e.asInt.high)))return`asInt: integer|Long expected`}if(e.exemplars!=null&&e.hasOwnProperty(`exemplars`)){if(!Array.isArray(e.exemplars))return`exemplars: array expected`;for(var n=0;n<e.exemplars.length;++n){var r=o.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[n]);if(r)return`exemplars.`+r}}return e.flags!=null&&e.hasOwnProperty(`flags`)&&!a.isInteger(e.flags)?`flags: integer expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.NumberDataPoint)return e;var t=new o.opentelemetry.proto.metrics.v1.NumberDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}if(e.startTimeUnixNano!=null&&(a.Long?(t.startTimeUnixNano=a.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano==`string`?t.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano==`number`?t.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano==`object`&&(t.startTimeUnixNano=new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(a.Long?(t.timeUnixNano=a.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano==`string`?t.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano==`number`?t.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano==`object`&&(t.timeUnixNano=new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(t.asDouble=Number(e.asDouble)),e.asInt!=null&&(a.Long?(t.asInt=a.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt==`string`?t.asInt=parseInt(e.asInt,10):typeof e.asInt==`number`?t.asInt=e.asInt:typeof e.asInt==`object`&&(t.asInt=new a.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(`.opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected`);t.exemplars=[];for(var n=0;n<e.exemplars.length;++n){if(typeof e.exemplars[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected`);t.exemplars[n]=o.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[n])}}return e.flags!=null&&(t.flags=e.flags>>>0),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.exemplars=[],n.attributes=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.startTimeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.startTimeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.timeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeUnixNano=t.longs===String?`0`:0;n.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&(typeof e.startTimeUnixNano==`number`?n.startTimeUnixNano=t.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:n.startTimeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.startTimeUnixNano):t.longs===Number?new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&(typeof e.timeUnixNano==`number`?n.timeUnixNano=t.longs===String?String(e.timeUnixNano):e.timeUnixNano:n.timeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.timeUnixNano):t.longs===Number?new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty(`asDouble`)&&(n.asDouble=t.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,t.oneofs&&(n.value=`asDouble`)),e.exemplars&&e.exemplars.length){n.exemplars=[];for(var i=0;i<e.exemplars.length;++i)n.exemplars[i]=o.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[i],t)}if(e.asInt!=null&&e.hasOwnProperty(`asInt`)&&(typeof e.asInt==`number`?n.asInt=t.longs===String?String(e.asInt):e.asInt:n.asInt=t.longs===String?a.Long.prototype.toString.call(e.asInt):t.longs===Number?new a.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,t.oneofs&&(n.value=`asInt`)),e.attributes&&e.attributes.length){n.attributes=[];for(var i=0;i<e.attributes.length;++i)n.attributes[i]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[i],t)}return e.flags!=null&&e.hasOwnProperty(`flags`)&&(n.flags=e.flags),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.NumberDataPoint`},e})(),e.HistogramDataPoint=(function(){function e(e){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}e.prototype.attributes=a.emptyArray,e.prototype.startTimeUnixNano=null,e.prototype.timeUnixNano=null,e.prototype.count=null,e.prototype.sum=null,e.prototype.bucketCounts=a.emptyArray,e.prototype.explicitBounds=a.emptyArray,e.prototype.exemplars=a.emptyArray,e.prototype.flags=null,e.prototype.min=null,e.prototype.max=null;var t;return Object.defineProperty(e.prototype,"_sum",{get:a.oneOfGetter(t=[`sum`]),set:a.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_min",{get:a.oneOfGetter(t=[`min`]),set:a.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_max",{get:a.oneOfGetter(t=[`max`]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,`startTimeUnixNano`)&&t.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,`timeUnixNano`)&&t.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,`count`)&&t.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,`sum`)&&t.uint32(41).double(e.sum),e.bucketCounts!=null&&e.bucketCounts.length){t.uint32(50).fork();for(var n=0;n<e.bucketCounts.length;++n)t.fixed64(e.bucketCounts[n]);t.ldelim()}if(e.explicitBounds!=null&&e.explicitBounds.length){t.uint32(58).fork();for(var n=0;n<e.explicitBounds.length;++n)t.double(e.explicitBounds[n]);t.ldelim()}if(e.exemplars!=null&&e.exemplars.length)for(var n=0;n<e.exemplars.length;++n)o.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[n],t.uint32(66).fork()).ldelim();if(e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(74).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,`flags`)&&t.uint32(80).uint32(e.flags),e.min!=null&&Object.hasOwnProperty.call(e,`min`)&&t.uint32(89).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,`max`)&&t.uint32(97).double(e.max),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.HistogramDataPoint;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 9:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 2:a.startTimeUnixNano=e.fixed64();break;case 3:a.timeUnixNano=e.fixed64();break;case 4:a.count=e.fixed64();break;case 5:a.sum=e.double();break;case 6:if(a.bucketCounts&&a.bucketCounts.length||(a.bucketCounts=[]),(s&7)==2)for(var c=e.uint32()+e.pos;e.pos<c;)a.bucketCounts.push(e.fixed64());else a.bucketCounts.push(e.fixed64());break;case 7:if(a.explicitBounds&&a.explicitBounds.length||(a.explicitBounds=[]),(s&7)==2)for(var c=e.uint32()+e.pos;e.pos<c;)a.explicitBounds.push(e.double());else a.explicitBounds.push(e.double());break;case 8:a.exemplars&&a.exemplars.length||(a.exemplars=[]),a.exemplars.push(o.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break;case 10:a.flags=e.uint32();break;case 11:a.min=e.double();break;case 12:a.max=e.double();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;var t={};if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var n=0;n<e.attributes.length;++n){var r=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(r)return`attributes.`+r}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&!a.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&a.isInteger(e.startTimeUnixNano.low)&&a.isInteger(e.startTimeUnixNano.high)))return`startTimeUnixNano: integer|Long expected`;if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&!a.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&a.isInteger(e.timeUnixNano.low)&&a.isInteger(e.timeUnixNano.high)))return`timeUnixNano: integer|Long expected`;if(e.count!=null&&e.hasOwnProperty(`count`)&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return`count: integer|Long expected`;if(e.sum!=null&&e.hasOwnProperty(`sum`)&&(t._sum=1,typeof e.sum!=`number`))return`sum: number expected`;if(e.bucketCounts!=null&&e.hasOwnProperty(`bucketCounts`)){if(!Array.isArray(e.bucketCounts))return`bucketCounts: array expected`;for(var n=0;n<e.bucketCounts.length;++n)if(!a.isInteger(e.bucketCounts[n])&&!(e.bucketCounts[n]&&a.isInteger(e.bucketCounts[n].low)&&a.isInteger(e.bucketCounts[n].high)))return`bucketCounts: integer|Long[] expected`}if(e.explicitBounds!=null&&e.hasOwnProperty(`explicitBounds`)){if(!Array.isArray(e.explicitBounds))return`explicitBounds: array expected`;for(var n=0;n<e.explicitBounds.length;++n)if(typeof e.explicitBounds[n]!=`number`)return`explicitBounds: number[] expected`}if(e.exemplars!=null&&e.hasOwnProperty(`exemplars`)){if(!Array.isArray(e.exemplars))return`exemplars: array expected`;for(var n=0;n<e.exemplars.length;++n){var r=o.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[n]);if(r)return`exemplars.`+r}}return e.flags!=null&&e.hasOwnProperty(`flags`)&&!a.isInteger(e.flags)?`flags: integer expected`:e.min!=null&&e.hasOwnProperty(`min`)&&(t._min=1,typeof e.min!=`number`)?`min: number expected`:e.max!=null&&e.hasOwnProperty(`max`)&&(t._max=1,typeof e.max!=`number`)?`max: number expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.HistogramDataPoint)return e;var t=new o.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}if(e.startTimeUnixNano!=null&&(a.Long?(t.startTimeUnixNano=a.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano==`string`?t.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano==`number`?t.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano==`object`&&(t.startTimeUnixNano=new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(a.Long?(t.timeUnixNano=a.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano==`string`?t.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano==`number`?t.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano==`object`&&(t.timeUnixNano=new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!1:typeof e.count==`string`?t.count=parseInt(e.count,10):typeof e.count==`number`?t.count=e.count:typeof e.count==`object`&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(t.sum=Number(e.sum)),e.bucketCounts){if(!Array.isArray(e.bucketCounts))throw TypeError(`.opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected`);t.bucketCounts=[];for(var n=0;n<e.bucketCounts.length;++n)a.Long?(t.bucketCounts[n]=a.Long.fromValue(e.bucketCounts[n])).unsigned=!1:typeof e.bucketCounts[n]==`string`?t.bucketCounts[n]=parseInt(e.bucketCounts[n],10):typeof e.bucketCounts[n]==`number`?t.bucketCounts[n]=e.bucketCounts[n]:typeof e.bucketCounts[n]==`object`&&(t.bucketCounts[n]=new a.LongBits(e.bucketCounts[n].low>>>0,e.bucketCounts[n].high>>>0).toNumber())}if(e.explicitBounds){if(!Array.isArray(e.explicitBounds))throw TypeError(`.opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected`);t.explicitBounds=[];for(var n=0;n<e.explicitBounds.length;++n)t.explicitBounds[n]=Number(e.explicitBounds[n])}if(e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(`.opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected`);t.exemplars=[];for(var n=0;n<e.exemplars.length;++n){if(typeof e.exemplars[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected`);t.exemplars[n]=o.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[n])}}return e.flags!=null&&(t.flags=e.flags>>>0),e.min!=null&&(t.min=Number(e.min)),e.max!=null&&(t.max=Number(e.max)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.bucketCounts=[],n.explicitBounds=[],n.exemplars=[],n.attributes=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.startTimeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.startTimeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.timeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.count=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.count=t.longs===String?`0`:0;n.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&(typeof e.startTimeUnixNano==`number`?n.startTimeUnixNano=t.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:n.startTimeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.startTimeUnixNano):t.longs===Number?new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&(typeof e.timeUnixNano==`number`?n.timeUnixNano=t.longs===String?String(e.timeUnixNano):e.timeUnixNano:n.timeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.timeUnixNano):t.longs===Number?new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty(`count`)&&(typeof e.count==`number`?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty(`sum`)&&(n.sum=t.json&&!isFinite(e.sum)?String(e.sum):e.sum,t.oneofs&&(n._sum=`sum`)),e.bucketCounts&&e.bucketCounts.length){n.bucketCounts=[];for(var i=0;i<e.bucketCounts.length;++i)typeof e.bucketCounts[i]==`number`?n.bucketCounts[i]=t.longs===String?String(e.bucketCounts[i]):e.bucketCounts[i]:n.bucketCounts[i]=t.longs===String?a.Long.prototype.toString.call(e.bucketCounts[i]):t.longs===Number?new a.LongBits(e.bucketCounts[i].low>>>0,e.bucketCounts[i].high>>>0).toNumber():e.bucketCounts[i]}if(e.explicitBounds&&e.explicitBounds.length){n.explicitBounds=[];for(var i=0;i<e.explicitBounds.length;++i)n.explicitBounds[i]=t.json&&!isFinite(e.explicitBounds[i])?String(e.explicitBounds[i]):e.explicitBounds[i]}if(e.exemplars&&e.exemplars.length){n.exemplars=[];for(var i=0;i<e.exemplars.length;++i)n.exemplars[i]=o.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[i],t)}if(e.attributes&&e.attributes.length){n.attributes=[];for(var i=0;i<e.attributes.length;++i)n.attributes[i]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[i],t)}return e.flags!=null&&e.hasOwnProperty(`flags`)&&(n.flags=e.flags),e.min!=null&&e.hasOwnProperty(`min`)&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min,t.oneofs&&(n._min=`min`)),e.max!=null&&e.hasOwnProperty(`max`)&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max,t.oneofs&&(n._max=`max`)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.HistogramDataPoint`},e})(),e.ExponentialHistogramDataPoint=(function(){function e(e){if(this.attributes=[],this.exemplars=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}e.prototype.attributes=a.emptyArray,e.prototype.startTimeUnixNano=null,e.prototype.timeUnixNano=null,e.prototype.count=null,e.prototype.sum=null,e.prototype.scale=null,e.prototype.zeroCount=null,e.prototype.positive=null,e.prototype.negative=null,e.prototype.flags=null,e.prototype.exemplars=a.emptyArray,e.prototype.min=null,e.prototype.max=null,e.prototype.zeroThreshold=null;var t;return Object.defineProperty(e.prototype,"_sum",{get:a.oneOfGetter(t=[`sum`]),set:a.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_min",{get:a.oneOfGetter(t=[`min`]),set:a.oneOfSetter(t)}),Object.defineProperty(e.prototype,"_max",{get:a.oneOfGetter(t=[`max`]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(10).fork()).ldelim();if(e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,`startTimeUnixNano`)&&t.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,`timeUnixNano`)&&t.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,`count`)&&t.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,`sum`)&&t.uint32(41).double(e.sum),e.scale!=null&&Object.hasOwnProperty.call(e,`scale`)&&t.uint32(48).sint32(e.scale),e.zeroCount!=null&&Object.hasOwnProperty.call(e,`zeroCount`)&&t.uint32(57).fixed64(e.zeroCount),e.positive!=null&&Object.hasOwnProperty.call(e,`positive`)&&o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.positive,t.uint32(66).fork()).ldelim(),e.negative!=null&&Object.hasOwnProperty.call(e,`negative`)&&o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(e.negative,t.uint32(74).fork()).ldelim(),e.flags!=null&&Object.hasOwnProperty.call(e,`flags`)&&t.uint32(80).uint32(e.flags),e.exemplars!=null&&e.exemplars.length)for(var n=0;n<e.exemplars.length;++n)o.opentelemetry.proto.metrics.v1.Exemplar.encode(e.exemplars[n],t.uint32(90).fork()).ldelim();return e.min!=null&&Object.hasOwnProperty.call(e,`min`)&&t.uint32(97).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,`max`)&&t.uint32(105).double(e.max),e.zeroThreshold!=null&&Object.hasOwnProperty.call(e,`zeroThreshold`)&&t.uint32(113).double(e.zeroThreshold),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 2:a.startTimeUnixNano=e.fixed64();break;case 3:a.timeUnixNano=e.fixed64();break;case 4:a.count=e.fixed64();break;case 5:a.sum=e.double();break;case 6:a.scale=e.sint32();break;case 7:a.zeroCount=e.fixed64();break;case 8:a.positive=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break;case 9:a.negative=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(e,e.uint32());break;case 10:a.flags=e.uint32();break;case 11:a.exemplars&&a.exemplars.length||(a.exemplars=[]),a.exemplars.push(o.opentelemetry.proto.metrics.v1.Exemplar.decode(e,e.uint32()));break;case 12:a.min=e.double();break;case 13:a.max=e.double();break;case 14:a.zeroThreshold=e.double();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;var t={};if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var n=0;n<e.attributes.length;++n){var r=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[n]);if(r)return`attributes.`+r}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&!a.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&a.isInteger(e.startTimeUnixNano.low)&&a.isInteger(e.startTimeUnixNano.high)))return`startTimeUnixNano: integer|Long expected`;if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&!a.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&a.isInteger(e.timeUnixNano.low)&&a.isInteger(e.timeUnixNano.high)))return`timeUnixNano: integer|Long expected`;if(e.count!=null&&e.hasOwnProperty(`count`)&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return`count: integer|Long expected`;if(e.sum!=null&&e.hasOwnProperty(`sum`)&&(t._sum=1,typeof e.sum!=`number`))return`sum: number expected`;if(e.scale!=null&&e.hasOwnProperty(`scale`)&&!a.isInteger(e.scale))return`scale: integer expected`;if(e.zeroCount!=null&&e.hasOwnProperty(`zeroCount`)&&!a.isInteger(e.zeroCount)&&!(e.zeroCount&&a.isInteger(e.zeroCount.low)&&a.isInteger(e.zeroCount.high)))return`zeroCount: integer|Long expected`;if(e.positive!=null&&e.hasOwnProperty(`positive`)){var r=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.positive);if(r)return`positive.`+r}if(e.negative!=null&&e.hasOwnProperty(`negative`)){var r=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(e.negative);if(r)return`negative.`+r}if(e.flags!=null&&e.hasOwnProperty(`flags`)&&!a.isInteger(e.flags))return`flags: integer expected`;if(e.exemplars!=null&&e.hasOwnProperty(`exemplars`)){if(!Array.isArray(e.exemplars))return`exemplars: array expected`;for(var n=0;n<e.exemplars.length;++n){var r=o.opentelemetry.proto.metrics.v1.Exemplar.verify(e.exemplars[n]);if(r)return`exemplars.`+r}}return e.min!=null&&e.hasOwnProperty(`min`)&&(t._min=1,typeof e.min!=`number`)?`min: number expected`:e.max!=null&&e.hasOwnProperty(`max`)&&(t._max=1,typeof e.max!=`number`)?`max: number expected`:e.zeroThreshold!=null&&e.hasOwnProperty(`zeroThreshold`)&&typeof e.zeroThreshold!=`number`?`zeroThreshold: number expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return e;var t=new o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}if(e.startTimeUnixNano!=null&&(a.Long?(t.startTimeUnixNano=a.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano==`string`?t.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano==`number`?t.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano==`object`&&(t.startTimeUnixNano=new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(a.Long?(t.timeUnixNano=a.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano==`string`?t.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano==`number`?t.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano==`object`&&(t.timeUnixNano=new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!1:typeof e.count==`string`?t.count=parseInt(e.count,10):typeof e.count==`number`?t.count=e.count:typeof e.count==`object`&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(t.sum=Number(e.sum)),e.scale!=null&&(t.scale=e.scale|0),e.zeroCount!=null&&(a.Long?(t.zeroCount=a.Long.fromValue(e.zeroCount)).unsigned=!1:typeof e.zeroCount==`string`?t.zeroCount=parseInt(e.zeroCount,10):typeof e.zeroCount==`number`?t.zeroCount=e.zeroCount:typeof e.zeroCount==`object`&&(t.zeroCount=new a.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber())),e.positive!=null){if(typeof e.positive!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected`);t.positive=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.positive)}if(e.negative!=null){if(typeof e.negative!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected`);t.negative=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(e.negative)}if(e.flags!=null&&(t.flags=e.flags>>>0),e.exemplars){if(!Array.isArray(e.exemplars))throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected`);t.exemplars=[];for(var n=0;n<e.exemplars.length;++n){if(typeof e.exemplars[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected`);t.exemplars[n]=o.opentelemetry.proto.metrics.v1.Exemplar.fromObject(e.exemplars[n])}}return e.min!=null&&(t.min=Number(e.min)),e.max!=null&&(t.max=Number(e.max)),e.zeroThreshold!=null&&(t.zeroThreshold=Number(e.zeroThreshold)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.attributes=[],n.exemplars=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.startTimeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.startTimeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.timeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.count=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.count=t.longs===String?`0`:0;if(n.scale=0,a.Long){var r=new a.Long(0,0,!1);n.zeroCount=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.zeroCount=t.longs===String?`0`:0;n.positive=null,n.negative=null,n.flags=0,n.zeroThreshold=0}if(e.attributes&&e.attributes.length){n.attributes=[];for(var i=0;i<e.attributes.length;++i)n.attributes[i]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[i],t)}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&(typeof e.startTimeUnixNano==`number`?n.startTimeUnixNano=t.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:n.startTimeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.startTimeUnixNano):t.longs===Number?new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&(typeof e.timeUnixNano==`number`?n.timeUnixNano=t.longs===String?String(e.timeUnixNano):e.timeUnixNano:n.timeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.timeUnixNano):t.longs===Number?new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty(`count`)&&(typeof e.count==`number`?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty(`sum`)&&(n.sum=t.json&&!isFinite(e.sum)?String(e.sum):e.sum,t.oneofs&&(n._sum=`sum`)),e.scale!=null&&e.hasOwnProperty(`scale`)&&(n.scale=e.scale),e.zeroCount!=null&&e.hasOwnProperty(`zeroCount`)&&(typeof e.zeroCount==`number`?n.zeroCount=t.longs===String?String(e.zeroCount):e.zeroCount:n.zeroCount=t.longs===String?a.Long.prototype.toString.call(e.zeroCount):t.longs===Number?new a.LongBits(e.zeroCount.low>>>0,e.zeroCount.high>>>0).toNumber():e.zeroCount),e.positive!=null&&e.hasOwnProperty(`positive`)&&(n.positive=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.positive,t)),e.negative!=null&&e.hasOwnProperty(`negative`)&&(n.negative=o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(e.negative,t)),e.flags!=null&&e.hasOwnProperty(`flags`)&&(n.flags=e.flags),e.exemplars&&e.exemplars.length){n.exemplars=[];for(var i=0;i<e.exemplars.length;++i)n.exemplars[i]=o.opentelemetry.proto.metrics.v1.Exemplar.toObject(e.exemplars[i],t)}return e.min!=null&&e.hasOwnProperty(`min`)&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min,t.oneofs&&(n._min=`min`)),e.max!=null&&e.hasOwnProperty(`max`)&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max,t.oneofs&&(n._max=`max`)),e.zeroThreshold!=null&&e.hasOwnProperty(`zeroThreshold`)&&(n.zeroThreshold=t.json&&!isFinite(e.zeroThreshold)?String(e.zeroThreshold):e.zeroThreshold),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint`},e.Buckets=(function(){function e(e){if(this.bucketCounts=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.offset=null,e.prototype.bucketCounts=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.offset!=null&&Object.hasOwnProperty.call(e,`offset`)&&t.uint32(8).sint32(e.offset),e.bucketCounts!=null&&e.bucketCounts.length){t.uint32(18).fork();for(var n=0;n<e.bucketCounts.length;++n)t.uint64(e.bucketCounts[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.offset=e.sint32();break;case 2:if(a.bucketCounts&&a.bucketCounts.length||(a.bucketCounts=[]),(s&7)==2)for(var c=e.uint32()+e.pos;e.pos<c;)a.bucketCounts.push(e.uint64());else a.bucketCounts.push(e.uint64());break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.offset!=null&&e.hasOwnProperty(`offset`)&&!a.isInteger(e.offset))return`offset: integer expected`;if(e.bucketCounts!=null&&e.hasOwnProperty(`bucketCounts`)){if(!Array.isArray(e.bucketCounts))return`bucketCounts: array expected`;for(var t=0;t<e.bucketCounts.length;++t)if(!a.isInteger(e.bucketCounts[t])&&!(e.bucketCounts[t]&&a.isInteger(e.bucketCounts[t].low)&&a.isInteger(e.bucketCounts[t].high)))return`bucketCounts: integer|Long[] expected`}return null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return e;var t=new o.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(e.offset!=null&&(t.offset=e.offset|0),e.bucketCounts){if(!Array.isArray(e.bucketCounts))throw TypeError(`.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected`);t.bucketCounts=[];for(var n=0;n<e.bucketCounts.length;++n)a.Long?(t.bucketCounts[n]=a.Long.fromValue(e.bucketCounts[n])).unsigned=!0:typeof e.bucketCounts[n]==`string`?t.bucketCounts[n]=parseInt(e.bucketCounts[n],10):typeof e.bucketCounts[n]==`number`?t.bucketCounts[n]=e.bucketCounts[n]:typeof e.bucketCounts[n]==`object`&&(t.bucketCounts[n]=new a.LongBits(e.bucketCounts[n].low>>>0,e.bucketCounts[n].high>>>0).toNumber(!0))}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.bucketCounts=[]),t.defaults&&(n.offset=0),e.offset!=null&&e.hasOwnProperty(`offset`)&&(n.offset=e.offset),e.bucketCounts&&e.bucketCounts.length){n.bucketCounts=[];for(var r=0;r<e.bucketCounts.length;++r)typeof e.bucketCounts[r]==`number`?n.bucketCounts[r]=t.longs===String?String(e.bucketCounts[r]):e.bucketCounts[r]:n.bucketCounts[r]=t.longs===String?a.Long.prototype.toString.call(e.bucketCounts[r]):t.longs===Number?new a.LongBits(e.bucketCounts[r].low>>>0,e.bucketCounts[r].high>>>0).toNumber(!0):e.bucketCounts[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets`},e})(),e})(),e.SummaryDataPoint=(function(){function e(e){if(this.attributes=[],this.quantileValues=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.attributes=a.emptyArray,e.prototype.startTimeUnixNano=null,e.prototype.timeUnixNano=null,e.prototype.count=null,e.prototype.sum=null,e.prototype.quantileValues=a.emptyArray,e.prototype.flags=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.startTimeUnixNano!=null&&Object.hasOwnProperty.call(e,`startTimeUnixNano`)&&t.uint32(17).fixed64(e.startTimeUnixNano),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,`timeUnixNano`)&&t.uint32(25).fixed64(e.timeUnixNano),e.count!=null&&Object.hasOwnProperty.call(e,`count`)&&t.uint32(33).fixed64(e.count),e.sum!=null&&Object.hasOwnProperty.call(e,`sum`)&&t.uint32(41).double(e.sum),e.quantileValues!=null&&e.quantileValues.length)for(var n=0;n<e.quantileValues.length;++n)o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(e.quantileValues[n],t.uint32(50).fork()).ldelim();if(e.attributes!=null&&e.attributes.length)for(var n=0;n<e.attributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.attributes[n],t.uint32(58).fork()).ldelim();return e.flags!=null&&Object.hasOwnProperty.call(e,`flags`)&&t.uint32(64).uint32(e.flags),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.SummaryDataPoint;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 7:a.attributes&&a.attributes.length||(a.attributes=[]),a.attributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 2:a.startTimeUnixNano=e.fixed64();break;case 3:a.timeUnixNano=e.fixed64();break;case 4:a.count=e.fixed64();break;case 5:a.sum=e.double();break;case 6:a.quantileValues&&a.quantileValues.length||(a.quantileValues=[]),a.quantileValues.push(o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(e,e.uint32()));break;case 8:a.flags=e.uint32();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;if(e.attributes!=null&&e.hasOwnProperty(`attributes`)){if(!Array.isArray(e.attributes))return`attributes: array expected`;for(var t=0;t<e.attributes.length;++t){var n=o.opentelemetry.proto.common.v1.KeyValue.verify(e.attributes[t]);if(n)return`attributes.`+n}}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&!a.isInteger(e.startTimeUnixNano)&&!(e.startTimeUnixNano&&a.isInteger(e.startTimeUnixNano.low)&&a.isInteger(e.startTimeUnixNano.high)))return`startTimeUnixNano: integer|Long expected`;if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&!a.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&a.isInteger(e.timeUnixNano.low)&&a.isInteger(e.timeUnixNano.high)))return`timeUnixNano: integer|Long expected`;if(e.count!=null&&e.hasOwnProperty(`count`)&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return`count: integer|Long expected`;if(e.sum!=null&&e.hasOwnProperty(`sum`)&&typeof e.sum!=`number`)return`sum: number expected`;if(e.quantileValues!=null&&e.hasOwnProperty(`quantileValues`)){if(!Array.isArray(e.quantileValues))return`quantileValues: array expected`;for(var t=0;t<e.quantileValues.length;++t){var n=o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(e.quantileValues[t]);if(n)return`quantileValues.`+n}}return e.flags!=null&&e.hasOwnProperty(`flags`)&&!a.isInteger(e.flags)?`flags: integer expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.SummaryDataPoint)return e;var t=new o.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(e.attributes){if(!Array.isArray(e.attributes))throw TypeError(`.opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected`);t.attributes=[];for(var n=0;n<e.attributes.length;++n){if(typeof e.attributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected`);t.attributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.attributes[n])}}if(e.startTimeUnixNano!=null&&(a.Long?(t.startTimeUnixNano=a.Long.fromValue(e.startTimeUnixNano)).unsigned=!1:typeof e.startTimeUnixNano==`string`?t.startTimeUnixNano=parseInt(e.startTimeUnixNano,10):typeof e.startTimeUnixNano==`number`?t.startTimeUnixNano=e.startTimeUnixNano:typeof e.startTimeUnixNano==`object`&&(t.startTimeUnixNano=new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber())),e.timeUnixNano!=null&&(a.Long?(t.timeUnixNano=a.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano==`string`?t.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano==`number`?t.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano==`object`&&(t.timeUnixNano=new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.count!=null&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!1:typeof e.count==`string`?t.count=parseInt(e.count,10):typeof e.count==`number`?t.count=e.count:typeof e.count==`object`&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber())),e.sum!=null&&(t.sum=Number(e.sum)),e.quantileValues){if(!Array.isArray(e.quantileValues))throw TypeError(`.opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected`);t.quantileValues=[];for(var n=0;n<e.quantileValues.length;++n){if(typeof e.quantileValues[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected`);t.quantileValues[n]=o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(e.quantileValues[n])}}return e.flags!=null&&(t.flags=e.flags>>>0),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.quantileValues=[],n.attributes=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.startTimeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.startTimeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.timeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeUnixNano=t.longs===String?`0`:0;if(a.Long){var r=new a.Long(0,0,!1);n.count=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.count=t.longs===String?`0`:0;n.sum=0,n.flags=0}if(e.startTimeUnixNano!=null&&e.hasOwnProperty(`startTimeUnixNano`)&&(typeof e.startTimeUnixNano==`number`?n.startTimeUnixNano=t.longs===String?String(e.startTimeUnixNano):e.startTimeUnixNano:n.startTimeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.startTimeUnixNano):t.longs===Number?new a.LongBits(e.startTimeUnixNano.low>>>0,e.startTimeUnixNano.high>>>0).toNumber():e.startTimeUnixNano),e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&(typeof e.timeUnixNano==`number`?n.timeUnixNano=t.longs===String?String(e.timeUnixNano):e.timeUnixNano:n.timeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.timeUnixNano):t.longs===Number?new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.count!=null&&e.hasOwnProperty(`count`)&&(typeof e.count==`number`?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber():e.count),e.sum!=null&&e.hasOwnProperty(`sum`)&&(n.sum=t.json&&!isFinite(e.sum)?String(e.sum):e.sum),e.quantileValues&&e.quantileValues.length){n.quantileValues=[];for(var i=0;i<e.quantileValues.length;++i)n.quantileValues[i]=o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(e.quantileValues[i],t)}if(e.attributes&&e.attributes.length){n.attributes=[];for(var i=0;i<e.attributes.length;++i)n.attributes[i]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.attributes[i],t)}return e.flags!=null&&e.hasOwnProperty(`flags`)&&(n.flags=e.flags),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.SummaryDataPoint`},e.ValueAtQuantile=(function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}return e.prototype.quantile=null,e.prototype.value=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),e.quantile!=null&&Object.hasOwnProperty.call(e,`quantile`)&&t.uint32(9).double(e.quantile),e.value!=null&&Object.hasOwnProperty.call(e,`value`)&&t.uint32(17).double(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 1:a.quantile=e.double();break;case 2:a.value=e.double();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){return typeof e!=`object`||!e?`object expected`:e.quantile!=null&&e.hasOwnProperty(`quantile`)&&typeof e.quantile!=`number`?`quantile: number expected`:e.value!=null&&e.hasOwnProperty(`value`)&&typeof e.value!=`number`?`value: number expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return e;var t=new o.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return e.quantile!=null&&(t.quantile=Number(e.quantile)),e.value!=null&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.quantile=0,n.value=0),e.quantile!=null&&e.hasOwnProperty(`quantile`)&&(n.quantile=t.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),e.value!=null&&e.hasOwnProperty(`value`)&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile`},e})(),e})(),e.Exemplar=(function(){function e(e){if(this.filteredAttributes=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)e[t[n]]!=null&&(this[t[n]]=e[t[n]])}e.prototype.filteredAttributes=a.emptyArray,e.prototype.timeUnixNano=null,e.prototype.asDouble=null,e.prototype.asInt=null,e.prototype.spanId=null,e.prototype.traceId=null;var t;return Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=[`asDouble`,`asInt`]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),e.timeUnixNano!=null&&Object.hasOwnProperty.call(e,`timeUnixNano`)&&t.uint32(17).fixed64(e.timeUnixNano),e.asDouble!=null&&Object.hasOwnProperty.call(e,`asDouble`)&&t.uint32(25).double(e.asDouble),e.spanId!=null&&Object.hasOwnProperty.call(e,`spanId`)&&t.uint32(34).bytes(e.spanId),e.traceId!=null&&Object.hasOwnProperty.call(e,`traceId`)&&t.uint32(42).bytes(e.traceId),e.asInt!=null&&Object.hasOwnProperty.call(e,`asInt`)&&t.uint32(49).sfixed64(e.asInt),e.filteredAttributes!=null&&e.filteredAttributes.length)for(var n=0;n<e.filteredAttributes.length;++n)o.opentelemetry.proto.common.v1.KeyValue.encode(e.filteredAttributes[n],t.uint32(58).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t,n){e instanceof r||(e=r.create(e));for(var i=t===void 0?e.len:e.pos+t,a=new o.opentelemetry.proto.metrics.v1.Exemplar;e.pos<i;){var s=e.uint32();if(s===n)break;switch(s>>>3){case 7:a.filteredAttributes&&a.filteredAttributes.length||(a.filteredAttributes=[]),a.filteredAttributes.push(o.opentelemetry.proto.common.v1.KeyValue.decode(e,e.uint32()));break;case 2:a.timeUnixNano=e.fixed64();break;case 3:a.asDouble=e.double();break;case 6:a.asInt=e.sfixed64();break;case 4:a.spanId=e.bytes();break;case 5:a.traceId=e.bytes();break;default:e.skipType(s&7);break}}return a},e.decodeDelimited=function(e){return e instanceof r||(e=new r(e)),this.decode(e,e.uint32())},e.verify=function(e){if(typeof e!=`object`||!e)return`object expected`;var t={};if(e.filteredAttributes!=null&&e.hasOwnProperty(`filteredAttributes`)){if(!Array.isArray(e.filteredAttributes))return`filteredAttributes: array expected`;for(var n=0;n<e.filteredAttributes.length;++n){var r=o.opentelemetry.proto.common.v1.KeyValue.verify(e.filteredAttributes[n]);if(r)return`filteredAttributes.`+r}}if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&!a.isInteger(e.timeUnixNano)&&!(e.timeUnixNano&&a.isInteger(e.timeUnixNano.low)&&a.isInteger(e.timeUnixNano.high)))return`timeUnixNano: integer|Long expected`;if(e.asDouble!=null&&e.hasOwnProperty(`asDouble`)&&(t.value=1,typeof e.asDouble!=`number`))return`asDouble: number expected`;if(e.asInt!=null&&e.hasOwnProperty(`asInt`)){if(t.value===1)return`value: multiple values`;if(t.value=1,!a.isInteger(e.asInt)&&!(e.asInt&&a.isInteger(e.asInt.low)&&a.isInteger(e.asInt.high)))return`asInt: integer|Long expected`}return e.spanId!=null&&e.hasOwnProperty(`spanId`)&&!(e.spanId&&typeof e.spanId.length==`number`||a.isString(e.spanId))?`spanId: buffer expected`:e.traceId!=null&&e.hasOwnProperty(`traceId`)&&!(e.traceId&&typeof e.traceId.length==`number`||a.isString(e.traceId))?`traceId: buffer expected`:null},e.fromObject=function(e){if(e instanceof o.opentelemetry.proto.metrics.v1.Exemplar)return e;var t=new o.opentelemetry.proto.metrics.v1.Exemplar;if(e.filteredAttributes){if(!Array.isArray(e.filteredAttributes))throw TypeError(`.opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected`);t.filteredAttributes=[];for(var n=0;n<e.filteredAttributes.length;++n){if(typeof e.filteredAttributes[n]!=`object`)throw TypeError(`.opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected`);t.filteredAttributes[n]=o.opentelemetry.proto.common.v1.KeyValue.fromObject(e.filteredAttributes[n])}}return e.timeUnixNano!=null&&(a.Long?(t.timeUnixNano=a.Long.fromValue(e.timeUnixNano)).unsigned=!1:typeof e.timeUnixNano==`string`?t.timeUnixNano=parseInt(e.timeUnixNano,10):typeof e.timeUnixNano==`number`?t.timeUnixNano=e.timeUnixNano:typeof e.timeUnixNano==`object`&&(t.timeUnixNano=new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber())),e.asDouble!=null&&(t.asDouble=Number(e.asDouble)),e.asInt!=null&&(a.Long?(t.asInt=a.Long.fromValue(e.asInt)).unsigned=!1:typeof e.asInt==`string`?t.asInt=parseInt(e.asInt,10):typeof e.asInt==`number`?t.asInt=e.asInt:typeof e.asInt==`object`&&(t.asInt=new a.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber())),e.spanId!=null&&(typeof e.spanId==`string`?a.base64.decode(e.spanId,t.spanId=a.newBuffer(a.base64.length(e.spanId)),0):e.spanId.length>=0&&(t.spanId=e.spanId)),e.traceId!=null&&(typeof e.traceId==`string`?a.base64.decode(e.traceId,t.traceId=a.newBuffer(a.base64.length(e.traceId)),0):e.traceId.length>=0&&(t.traceId=e.traceId)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.filteredAttributes=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.timeUnixNano=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeUnixNano=t.longs===String?`0`:0;t.bytes===String?n.spanId=``:(n.spanId=[],t.bytes!==Array&&(n.spanId=a.newBuffer(n.spanId))),t.bytes===String?n.traceId=``:(n.traceId=[],t.bytes!==Array&&(n.traceId=a.newBuffer(n.traceId)))}if(e.timeUnixNano!=null&&e.hasOwnProperty(`timeUnixNano`)&&(typeof e.timeUnixNano==`number`?n.timeUnixNano=t.longs===String?String(e.timeUnixNano):e.timeUnixNano:n.timeUnixNano=t.longs===String?a.Long.prototype.toString.call(e.timeUnixNano):t.longs===Number?new a.LongBits(e.timeUnixNano.low>>>0,e.timeUnixNano.high>>>0).toNumber():e.timeUnixNano),e.asDouble!=null&&e.hasOwnProperty(`asDouble`)&&(n.asDouble=t.json&&!isFinite(e.asDouble)?String(e.asDouble):e.asDouble,t.oneofs&&(n.value=`asDouble`)),e.spanId!=null&&e.hasOwnProperty(`spanId`)&&(n.spanId=t.bytes===String?a.base64.encode(e.spanId,0,e.spanId.length):t.bytes===Array?Array.prototype.slice.call(e.spanId):e.spanId),e.traceId!=null&&e.hasOwnProperty(`traceId`)&&(n.traceId=t.bytes===String?a.base64.encode(e.traceId,0,e.traceId.length):t.bytes===Array?Array.prototype.slice.call(e.traceId):e.traceId),e.asInt!=null&&e.hasOwnProperty(`asInt`)&&(typeof e.asInt==`number`?n.asInt=t.longs===String?String(e.asInt):e.asInt:n.asInt=t.longs===String?a.Long.prototype.toString.call(e.asInt):t.longs===Number?new a.LongBits(e.asInt.low>>>0,e.asInt.high>>>0).toNumber():e.asInt,t.oneofs&&(n.value=`asInt`)),e.filteredAttributes&&e.filteredAttributes.length){n.filteredAttributes=[];for(var i=0;i<e.filteredAttributes.length;++i)n.filteredAttributes[i]=o.opentelemetry.proto.common.v1.KeyValue.toObject(e.filteredAttributes[i],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.getTypeUrl=function(e){return e===void 0&&(e=`type.googleapis.com`),e+`/opentelemetry.proto.metrics.v1.Exemplar`},e})(),e})(),e})(),e})(),e})(),t.exports=o})),U,pn=e((()=>{(function(e){e[e.AGGREGATION_TEMPORALITY_UNSPECIFIED=0]=`AGGREGATION_TEMPORALITY_UNSPECIFIED`,e[e.AGGREGATION_TEMPORALITY_DELTA=1]=`AGGREGATION_TEMPORALITY_DELTA`,e[e.AGGREGATION_TEMPORALITY_CUMULATIVE=2]=`AGGREGATION_TEMPORALITY_CUMULATIVE`})(U||(U={}))}));function W(e,t){let n={attributes:K(e.attributes,t),droppedAttributesCount:0},r=e.schemaUrl;return r&&r!==``&&(n.schemaUrl=r),n}function G(e){return{name:e.name,version:e.version}}function K(e,t){return Object.keys(e).map(n=>mn(n,e[n],t))}function mn(e,t,n){return{key:e,value:q(t,n)}}function q(e,t){let n=typeof e;if(n===`string`)return{stringValue:e};if(n===`number`)return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(n===`boolean`)return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=q(e[r],t);return{arrayValue:{values:n}}}if(n===`object`&&e!=null){let n=Object.keys(e),r=Array(n.length);for(let i=0;i<n.length;i++)r[i]={key:n[i],value:q(e[n[i]],t)};return{kvlistValue:{values:r}}}return{}}var J=e((()=>{}));function hn(e,t){let n=W(e.resource,t);return{resource:n,schemaUrl:n.schemaUrl,scopeMetrics:gn(e.scopeMetrics,t)}}function gn(e,t){return Array.from(e.map(e=>({scope:G(e.scope),metrics:e.metrics.map(e=>_n(e,t)),schemaUrl:e.scope.schemaUrl})))}function _n(e,t){let n={name:e.descriptor.name,description:e.descriptor.description,unit:e.descriptor.unit},r=Sn(e.aggregationTemporality);switch(e.dataPointType){case _.SUM:n.sum={aggregationTemporality:r,isMonotonic:e.isMonotonic,dataPoints:yn(e,t)};break;case _.GAUGE:n.gauge={dataPoints:yn(e,t)};break;case _.HISTOGRAM:n.histogram={aggregationTemporality:r,dataPoints:bn(e,t)};break;case _.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:r,dataPoints:xn(e,t)};break}return n}function vn(e,t,n){let r={attributes:K(e.attributes,n),startTimeUnixNano:n.encodeHrTime(e.startTime),timeUnixNano:n.encodeHrTime(e.endTime)};switch(t){case c.INT:r.asInt=e.value;break;case c.DOUBLE:r.asDouble=e.value;break}return r}function yn(e,t){return e.dataPoints.map(n=>vn(n,e.descriptor.valueType,t))}function bn(e,t){return e.dataPoints.map(e=>{let n=e.value;return{attributes:K(e.attributes,t),bucketCounts:n.buckets.counts,explicitBounds:n.buckets.boundaries,count:n.count,sum:n.sum,min:n.min,max:n.max,startTimeUnixNano:t.encodeHrTime(e.startTime),timeUnixNano:t.encodeHrTime(e.endTime)}})}function xn(e,t){return e.dataPoints.map(e=>{let n=e.value;return{attributes:K(e.attributes,t),count:n.count,min:n.min,max:n.max,sum:n.sum,positive:{offset:n.positive.offset,bucketCounts:n.positive.bucketCounts},negative:{offset:n.negative.offset,bucketCounts:n.negative.bucketCounts},scale:n.scale,zeroCount:n.zeroCount,startTimeUnixNano:t.encodeHrTime(e.startTime),timeUnixNano:t.encodeHrTime(e.endTime)}})}function Sn(e){switch(e){case v.DELTA:return U.AGGREGATION_TEMPORALITY_DELTA;case v.CUMULATIVE:return U.AGGREGATION_TEMPORALITY_CUMULATIVE}}function Cn(e,t){return{resourceMetrics:e.map(e=>hn(e,t))}}var wn=e((()=>{o(),y(),pn(),J()}));function Tn(e){let t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function En(e){return{low:Number(BigInt.asUintN(32,e)),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}function Dn(e){return En(Tn(e))}function On(e){return Tn(e).toString()}function Y(e){return e}function kn(e){if(e!==void 0)return R(e)}var An,X,Z,Q=e((()=>{d(),Et(),An=typeof BigInt<`u`?On:p,X={encodeHrTime:Dn,encodeSpanContext:R,encodeOptionalSpanContext:kn,encodeUint8Array:Y},Z={encodeHrTime:An,encodeSpanContext:Y,encodeOptionalSpanContext:Y,encodeUint8Array:e=>{if(typeof Buffer<`u`)return Buffer.from(e).toString(`base64`);let t=Array(e.length);for(let n=0;n<e.length;n++)t[n]=String.fromCharCode(e[n]);return btoa(t.join(``))}}})),$,jn,Mn,Nn,Pn=e((()=>{$=t(fn()),wn(),Q(),jn=$.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,Mn=$.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,Nn={serializeRequest:e=>{let t=Cn([e],X);return Mn.encode(t).finish()},deserializeResponse:e=>jn.decode(e)}})),Fn=e((()=>{Pn()}));function In(e,t){let n=e&255|Un;return t&&(n|=Wn),n}function Ln(e,t){let n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:K(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>zn(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(e=>Rn(e,t)),droppedLinksCount:e.droppedLinksCount,flags:In(n.traceFlags,e.parentSpanContext?.isRemote)}}function Rn(e,t){return{attributes:e.attributes?K(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:In(e.context.traceFlags,e.context.isRemote)}}function zn(e,t){return{attributes:e.attributes?K(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Bn(e,t){return{resourceSpans:Hn(e,t)}}function Vn(e){let t=new Map;for(let n of e){let e=t.get(n.resource);e||(e=new Map,t.set(n.resource,e));let r=`${n.instrumentationScope.name}@${n.instrumentationScope.version||``}:${n.instrumentationScope.schemaUrl||``}`,i=e.get(r);i||(i=[],e.set(r,i)),i.push(n)}return t}function Hn(e,t){let n=Vn(e),r=[],i=n.entries(),a=i.next();for(;!a.done;){let[e,n]=a.value,o=[],s=n.values(),c=s.next();for(;!c.done;){let e=c.value;if(e.length>0){let n=e.map(e=>Ln(e,t));o.push({scope:G(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=W(e,t),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}var Un,Wn,Gn=e((()=>{J(),Un=256,Wn=512})),Kn,qn,Jn,Yn,Xn=e((()=>{Kn=t(fn()),Gn(),Q(),qn=Kn.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,Jn=Kn.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,Yn={serializeRequest:e=>{let t=Bn(e,X);return Jn.encode(t).finish()},deserializeResponse:e=>qn.decode(e)}})),Zn=e((()=>{Xn()}));function Qn(e,t){return{resourceLogs:er(e,t)}}function $n(e){let t=new Map;for(let n of e){let{resource:e,instrumentationScope:{name:r,version:i=``,schemaUrl:a=``}}=n,o=t.get(e);o||(o=new Map,t.set(e,o));let s=`${r}@${i}:${a}`,c=o.get(s);c||(c=[],o.set(s,c)),c.push(n)}return t}function er(e,t){let n=$n(e);return Array.from(n,([e,n])=>{let r=W(e,t);return{resource:r,scopeLogs:Array.from(n,([,e])=>({scope:G(e[0].instrumentationScope),logRecords:e.map(e=>tr(e,t)),schemaUrl:e[0].instrumentationScope.schemaUrl})),schemaUrl:r.schemaUrl}})}function tr(e,t){return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:nr(e.severityNumber),severityText:e.severityText,body:q(e.body,t),eventName:e.eventName,attributes:rr(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,flags:e.spanContext?.traceFlags,traceId:t.encodeOptionalSpanContext(e.spanContext?.traceId),spanId:t.encodeOptionalSpanContext(e.spanContext?.spanId)}}function nr(e){return e}function rr(e,t){return Object.keys(e).map(n=>mn(n,e[n],t))}var ir=e((()=>{J()})),ar,or=e((()=>{ir(),Q(),o(),ar={serializeRequest:e=>{let t=Qn(e,Z);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return s.warn(`Failed to parse logs export response: ${e.message}. Returning empty response`),{}}}}})),sr=e((()=>{or()})),cr,lr=e((()=>{wn(),Q(),o(),cr={serializeRequest:e=>{let t=Cn([e],Z);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return s.warn(`Failed to parse metrics export response: ${e.message}. Returning empty response`),{}}}}})),ur=e((()=>{lr()})),dr,fr=e((()=>{Gn(),Q(),o(),dr={serializeRequest:e=>{let t=Bn(e,Z);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};let t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(e){return s.warn(`Failed to parse trace export response: ${e.message}. Returning empty response`),{}}}}})),pr=e((()=>{fr()})),mr=n({JsonLogsSerializer:()=>ar,JsonMetricsSerializer:()=>cr,JsonTraceSerializer:()=>dr,ProtobufLogsSerializer:()=>V,ProtobufMetricsSerializer:()=>Nn,ProtobufTraceSerializer:()=>Yn}),hr=e((()=>{Jt(),Fn(),Zn(),sr(),ur(),pr()}));export{_e as C,ge as S,T,_t as _,cr as a,Ze as b,or as c,Nn as d,Pn as f,bt as g,yt as h,fr as i,Yn as l,qt as m,hr as n,lr as o,V as p,dr as r,ar as s,mr as t,Xn as u,vt as v,w,ve as x,Xe as y};