@safaricom-mxl/web-sdk 0.0.18 → 0.0.19

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 (767) hide show
  1. package/DATA_EXPORT.md +14 -0
  2. package/REACT.md +6 -6
  3. package/TANSTACK.md +92 -0
  4. package/dist/api-logs/api/LogAPI/LogAPI.cjs.map +1 -1
  5. package/dist/api-logs/api/LogAPI/LogAPI.js.map +1 -1
  6. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.cjs.map +1 -1
  7. package/dist/api-logs/manager/ProxyLogManager/ProxyLogManager.js.map +1 -1
  8. package/dist/api-page/api/PageAPI/PageAPI.cjs.map +1 -1
  9. package/dist/api-page/api/PageAPI/PageAPI.js.map +1 -1
  10. package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.cjs.map +1 -1
  11. package/dist/api-page/manager/ProxyPageManager/ProxyPageManager.js.map +1 -1
  12. package/dist/api-sessions/api/SessionAPI/SessionAPI.cjs.map +1 -1
  13. package/dist/api-sessions/api/SessionAPI/SessionAPI.js.map +1 -1
  14. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.cjs.map +1 -1
  15. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.cts.map +1 -1
  16. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.d.ts.map +1 -1
  17. package/dist/api-sessions/manager/ProxyUserSessionManager/ProxyUserSessionManager.js.map +1 -1
  18. package/dist/api-traces/api/TraceAPI/TraceAPI.cjs.map +1 -1
  19. package/dist/api-traces/api/TraceAPI/TraceAPI.js.map +1 -1
  20. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.cjs.map +1 -1
  21. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.cts.map +1 -1
  22. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.d.ts.map +1 -1
  23. package/dist/api-traces/manager/NoOpTraceManager/NoOpTraceManager.js.map +1 -1
  24. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.cjs.map +1 -1
  25. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.cts.map +1 -1
  26. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.d.ts.map +1 -1
  27. package/dist/api-traces/manager/NoOpTraceManager/NonRecordingExtendedSpan.js.map +1 -1
  28. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.cjs.map +1 -1
  29. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.cts.map +1 -1
  30. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.d.ts.map +1 -1
  31. package/dist/api-traces/manager/ProxyTraceManager/ProxyTraceManager.js.map +1 -1
  32. package/dist/api-users/api/UserAPI/UserAPI.cjs.map +1 -1
  33. package/dist/api-users/api/UserAPI/UserAPI.js.map +1 -1
  34. package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.cjs.map +1 -1
  35. package/dist/api-users/manager/ProxyUserManager/ProxyUserManager.js.map +1 -1
  36. package/dist/constants/attributes.cjs.map +1 -1
  37. package/dist/constants/attributes.js.map +1 -1
  38. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs +2 -2
  39. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.cjs.map +1 -1
  40. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.cts +1 -1
  41. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.d.ts +1 -1
  42. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js +2 -2
  43. package/dist/exporters/MXLLogExporter/OTLPFetchLogExporter.js.map +1 -1
  44. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs +1 -1
  45. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.cjs.map +1 -1
  46. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js +1 -1
  47. package/dist/exporters/MXLTraceExporter/OTLPFetchTraceExporter.js.map +1 -1
  48. package/dist/exporters/otlpBrowserFetchExportDelegate.d.cts +1 -1
  49. package/dist/exporters/otlpBrowserFetchExportDelegate.d.ts +1 -1
  50. package/dist/index.cjs +5 -0
  51. package/dist/index.d.cts +2 -1
  52. package/dist/index.d.ts +2 -1
  53. package/dist/index.js +2 -1
  54. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.cjs.map +1 -1
  55. package/dist/instrumentations/MXLInstrumentationBase/MXLInstrumentationBase.js.map +1 -1
  56. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.cjs.map +1 -1
  57. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.cts.map +1 -1
  58. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.d.ts.map +1 -1
  59. package/dist/instrumentations/element-timing/ElementTimingInstrumentation/ElementTimingInstrumentation.js.map +1 -1
  60. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.cjs.map +1 -1
  61. package/dist/instrumentations/exceptions/react/MXLErrorBoundary/MXLErrorBoundary.js.map +1 -1
  62. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.cjs.map +1 -1
  63. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.cts.map +1 -1
  64. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.d.ts.map +1 -1
  65. package/dist/instrumentations/loaf/LoafInstrumentation/LoafInstrumentation.js.map +1 -1
  66. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.cjs.map +1 -1
  67. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.cts.map +1 -1
  68. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.d.ts.map +1 -1
  69. package/dist/instrumentations/navigation/NavigationInstrumentation/NavigationInstrumentation.js.map +1 -1
  70. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.cjs.map +1 -1
  71. package/dist/instrumentations/navigation/NavigationInstrumentation/react/createReactRouterNavigationInstrumentation.js.map +1 -1
  72. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.cjs +1 -1
  73. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV5/withMXLRoutingLegacy.js +1 -1
  74. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.cjs +1 -1
  75. package/dist/instrumentations/navigation/NavigationInstrumentation/react/reactRouterV6Declarative/withMXLRouting.js +1 -1
  76. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs +50 -207
  77. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.cjs.map +1 -1
  78. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts +12 -36
  79. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.cts.map +1 -1
  80. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts +12 -36
  81. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.d.ts.map +1 -1
  82. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js +51 -204
  83. package/dist/instrumentations/replay/ReplayInstrumentation/ReplayInstrumentation.js.map +1 -1
  84. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts +15 -2
  85. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.cts.map +1 -1
  86. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts +15 -2
  87. package/dist/instrumentations/replay/ReplayInstrumentation/types.d.ts.map +1 -1
  88. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs +1 -1
  89. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.cjs.map +1 -1
  90. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js +1 -1
  91. package/dist/instrumentations/replay/createSessionRecordingControlFromReplay.js.map +1 -1
  92. package/dist/instrumentations/replay/events/capture/console.cjs +48 -0
  93. package/dist/instrumentations/replay/events/capture/console.cjs.map +1 -0
  94. package/dist/instrumentations/replay/events/capture/console.d.cts +7 -0
  95. package/dist/instrumentations/replay/events/capture/console.d.cts.map +1 -0
  96. package/dist/instrumentations/replay/events/capture/console.d.ts +7 -0
  97. package/dist/instrumentations/replay/events/capture/console.d.ts.map +1 -0
  98. package/dist/instrumentations/replay/events/capture/console.js +47 -0
  99. package/dist/instrumentations/replay/events/capture/console.js.map +1 -0
  100. package/dist/instrumentations/replay/events/capture/errors.cjs +41 -0
  101. package/dist/instrumentations/replay/events/capture/errors.cjs.map +1 -0
  102. package/dist/instrumentations/replay/events/capture/errors.d.cts +7 -0
  103. package/dist/instrumentations/replay/events/capture/errors.d.cts.map +1 -0
  104. package/dist/instrumentations/replay/events/capture/errors.d.ts +7 -0
  105. package/dist/instrumentations/replay/events/capture/errors.d.ts.map +1 -0
  106. package/dist/instrumentations/replay/events/capture/errors.js +40 -0
  107. package/dist/instrumentations/replay/events/capture/errors.js.map +1 -0
  108. package/dist/instrumentations/replay/events/capture/interactions.cjs +41 -0
  109. package/dist/instrumentations/replay/events/capture/interactions.cjs.map +1 -0
  110. package/dist/instrumentations/replay/events/capture/interactions.d.cts +7 -0
  111. package/dist/instrumentations/replay/events/capture/interactions.d.cts.map +1 -0
  112. package/dist/instrumentations/replay/events/capture/interactions.d.ts +7 -0
  113. package/dist/instrumentations/replay/events/capture/interactions.d.ts.map +1 -0
  114. package/dist/instrumentations/replay/events/capture/interactions.js +40 -0
  115. package/dist/instrumentations/replay/events/capture/interactions.js.map +1 -0
  116. package/dist/instrumentations/replay/events/capture/navigation.cjs +40 -0
  117. package/dist/instrumentations/replay/events/capture/navigation.cjs.map +1 -0
  118. package/dist/instrumentations/replay/events/capture/navigation.d.cts +7 -0
  119. package/dist/instrumentations/replay/events/capture/navigation.d.cts.map +1 -0
  120. package/dist/instrumentations/replay/events/capture/navigation.d.ts +7 -0
  121. package/dist/instrumentations/replay/events/capture/navigation.d.ts.map +1 -0
  122. package/dist/instrumentations/replay/events/capture/navigation.js +39 -0
  123. package/dist/instrumentations/replay/events/capture/navigation.js.map +1 -0
  124. package/dist/instrumentations/replay/events/capture/network.cjs +75 -0
  125. package/dist/instrumentations/replay/events/capture/network.cjs.map +1 -0
  126. package/dist/instrumentations/replay/events/capture/network.d.cts +7 -0
  127. package/dist/instrumentations/replay/events/capture/network.d.cts.map +1 -0
  128. package/dist/instrumentations/replay/events/capture/network.d.ts +7 -0
  129. package/dist/instrumentations/replay/events/capture/network.d.ts.map +1 -0
  130. package/dist/instrumentations/replay/events/capture/network.js +74 -0
  131. package/dist/instrumentations/replay/events/capture/network.js.map +1 -0
  132. package/dist/instrumentations/replay/events/capture/shared.cjs +12 -0
  133. package/dist/instrumentations/replay/events/capture/shared.cjs.map +1 -0
  134. package/dist/instrumentations/replay/events/capture/shared.d.cts +10 -0
  135. package/dist/instrumentations/replay/events/capture/shared.d.cts.map +1 -0
  136. package/dist/instrumentations/replay/events/capture/shared.d.ts +10 -0
  137. package/dist/instrumentations/replay/events/capture/shared.d.ts.map +1 -0
  138. package/dist/instrumentations/replay/events/capture/shared.js +11 -0
  139. package/dist/instrumentations/replay/events/capture/shared.js.map +1 -0
  140. package/dist/instrumentations/replay/events/startEventCapture.cjs +88 -0
  141. package/dist/instrumentations/replay/events/startEventCapture.cjs.map +1 -0
  142. package/dist/instrumentations/replay/events/startEventCapture.d.cts +33 -0
  143. package/dist/instrumentations/replay/events/startEventCapture.d.cts.map +1 -0
  144. package/dist/instrumentations/replay/events/startEventCapture.d.ts +33 -0
  145. package/dist/instrumentations/replay/events/startEventCapture.d.ts.map +1 -0
  146. package/dist/instrumentations/replay/events/startEventCapture.js +86 -0
  147. package/dist/instrumentations/replay/events/startEventCapture.js.map +1 -0
  148. package/dist/instrumentations/replay/events/types.cjs +14 -0
  149. package/dist/instrumentations/replay/events/types.cjs.map +1 -0
  150. package/dist/instrumentations/replay/events/types.d.cts +28 -0
  151. package/dist/instrumentations/replay/events/types.d.cts.map +1 -0
  152. package/dist/instrumentations/replay/events/types.d.ts +28 -0
  153. package/dist/instrumentations/replay/events/types.d.ts.map +1 -0
  154. package/dist/instrumentations/replay/events/types.js +12 -0
  155. package/dist/instrumentations/replay/events/types.js.map +1 -0
  156. package/dist/instrumentations/replay/recorder/startRecording.cjs +75 -0
  157. package/dist/instrumentations/replay/recorder/startRecording.cjs.map +1 -0
  158. package/dist/instrumentations/replay/recorder/startRecording.d.cts +30 -0
  159. package/dist/instrumentations/replay/recorder/startRecording.d.cts.map +1 -0
  160. package/dist/instrumentations/replay/recorder/startRecording.d.ts +30 -0
  161. package/dist/instrumentations/replay/recorder/startRecording.d.ts.map +1 -0
  162. package/dist/instrumentations/replay/recorder/startRecording.js +74 -0
  163. package/dist/instrumentations/replay/recorder/startRecording.js.map +1 -0
  164. package/dist/instrumentations/replay/recorder/types.cjs +0 -0
  165. package/dist/instrumentations/replay/recorder/types.d.cts +11 -0
  166. package/dist/instrumentations/replay/recorder/types.d.cts.map +1 -0
  167. package/dist/instrumentations/replay/recorder/types.d.ts +11 -0
  168. package/dist/instrumentations/replay/recorder/types.d.ts.map +1 -0
  169. package/dist/instrumentations/replay/recorder/types.js +0 -0
  170. package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.iife.cjs.map +1 -1
  171. package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.iife.d.cts.map +1 -1
  172. package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.iife.d.ts.map +1 -1
  173. package/dist/instrumentations/replay/rrwebLoader/loadRrwebModule.iife.js.map +1 -1
  174. package/dist/instrumentations/replay/rrwebLoader/types.d.cts.map +1 -1
  175. package/dist/instrumentations/replay/rrwebLoader/types.d.ts.map +1 -1
  176. package/dist/instrumentations/replay/session-recording/SessionRecording.cjs +175 -0
  177. package/dist/instrumentations/replay/session-recording/SessionRecording.cjs.map +1 -0
  178. package/dist/instrumentations/replay/session-recording/SessionRecording.d.cts +54 -0
  179. package/dist/instrumentations/replay/session-recording/SessionRecording.d.cts.map +1 -0
  180. package/dist/instrumentations/replay/session-recording/SessionRecording.d.ts +54 -0
  181. package/dist/instrumentations/replay/session-recording/SessionRecording.d.ts.map +1 -0
  182. package/dist/instrumentations/replay/session-recording/SessionRecording.js +174 -0
  183. package/dist/instrumentations/replay/session-recording/SessionRecording.js.map +1 -0
  184. package/dist/instrumentations/replay/session-recording/chunkSeq.cjs +17 -0
  185. package/dist/instrumentations/replay/session-recording/chunkSeq.cjs.map +1 -0
  186. package/dist/instrumentations/replay/session-recording/chunkSeq.d.cts +10 -0
  187. package/dist/instrumentations/replay/session-recording/chunkSeq.d.cts.map +1 -0
  188. package/dist/instrumentations/replay/session-recording/chunkSeq.d.ts +10 -0
  189. package/dist/instrumentations/replay/session-recording/chunkSeq.d.ts.map +1 -0
  190. package/dist/instrumentations/replay/session-recording/chunkSeq.js +16 -0
  191. package/dist/instrumentations/replay/session-recording/chunkSeq.js.map +1 -0
  192. package/dist/instrumentations/replay/session-recording/config.cjs +23 -0
  193. package/dist/instrumentations/replay/session-recording/config.cjs.map +1 -0
  194. package/dist/instrumentations/replay/session-recording/config.d.cts +31 -0
  195. package/dist/instrumentations/replay/session-recording/config.d.cts.map +1 -0
  196. package/dist/instrumentations/replay/session-recording/config.d.ts +31 -0
  197. package/dist/instrumentations/replay/session-recording/config.d.ts.map +1 -0
  198. package/dist/instrumentations/replay/session-recording/config.js +22 -0
  199. package/dist/instrumentations/replay/session-recording/config.js.map +1 -0
  200. package/dist/instrumentations/replay/session-recording/format.cjs +26 -0
  201. package/dist/instrumentations/replay/session-recording/format.cjs.map +1 -0
  202. package/dist/instrumentations/replay/session-recording/format.d.cts +16 -0
  203. package/dist/instrumentations/replay/session-recording/format.d.cts.map +1 -0
  204. package/dist/instrumentations/replay/session-recording/format.d.ts +16 -0
  205. package/dist/instrumentations/replay/session-recording/format.d.ts.map +1 -0
  206. package/dist/instrumentations/replay/session-recording/format.js +24 -0
  207. package/dist/instrumentations/replay/session-recording/format.js.map +1 -0
  208. package/dist/instrumentations/replay/session-recording/lifecycle.cjs +72 -0
  209. package/dist/instrumentations/replay/session-recording/lifecycle.cjs.map +1 -0
  210. package/dist/instrumentations/replay/session-recording/lifecycle.d.cts +21 -0
  211. package/dist/instrumentations/replay/session-recording/lifecycle.d.cts.map +1 -0
  212. package/dist/instrumentations/replay/session-recording/lifecycle.d.ts +21 -0
  213. package/dist/instrumentations/replay/session-recording/lifecycle.d.ts.map +1 -0
  214. package/dist/instrumentations/replay/session-recording/lifecycle.js +69 -0
  215. package/dist/instrumentations/replay/session-recording/lifecycle.js.map +1 -0
  216. package/dist/instrumentations/replay/trace-sink/traceSink.cjs +42 -0
  217. package/dist/instrumentations/replay/trace-sink/traceSink.cjs.map +1 -0
  218. package/dist/instrumentations/replay/trace-sink/traceSink.d.cts +17 -0
  219. package/dist/instrumentations/replay/trace-sink/traceSink.d.cts.map +1 -0
  220. package/dist/instrumentations/replay/trace-sink/traceSink.d.ts +17 -0
  221. package/dist/instrumentations/replay/trace-sink/traceSink.d.ts.map +1 -0
  222. package/dist/instrumentations/replay/trace-sink/traceSink.js +36 -0
  223. package/dist/instrumentations/replay/trace-sink/traceSink.js.map +1 -0
  224. package/dist/instrumentations/replay/transport/gzip.cjs +16 -0
  225. package/dist/instrumentations/replay/transport/gzip.cjs.map +1 -0
  226. package/dist/instrumentations/replay/transport/gzip.d.cts +10 -0
  227. package/dist/instrumentations/replay/transport/gzip.d.cts.map +1 -0
  228. package/dist/instrumentations/replay/transport/gzip.d.ts +10 -0
  229. package/dist/instrumentations/replay/transport/gzip.d.ts.map +1 -0
  230. package/dist/instrumentations/replay/transport/gzip.js +15 -0
  231. package/dist/instrumentations/replay/transport/gzip.js.map +1 -0
  232. package/dist/instrumentations/replay/transport/replayTransport.cjs +92 -0
  233. package/dist/instrumentations/replay/transport/replayTransport.cjs.map +1 -0
  234. package/dist/instrumentations/replay/transport/replayTransport.d.cts +13 -0
  235. package/dist/instrumentations/replay/transport/replayTransport.d.cts.map +1 -0
  236. package/dist/instrumentations/replay/transport/replayTransport.d.ts +13 -0
  237. package/dist/instrumentations/replay/transport/replayTransport.d.ts.map +1 -0
  238. package/dist/instrumentations/replay/transport/replayTransport.js +89 -0
  239. package/dist/instrumentations/replay/transport/replayTransport.js.map +1 -0
  240. package/dist/instrumentations/replay/transport/types.cjs +0 -0
  241. package/dist/instrumentations/replay/transport/types.d.cts +22 -0
  242. package/dist/instrumentations/replay/transport/types.d.cts.map +1 -0
  243. package/dist/instrumentations/replay/transport/types.d.ts +22 -0
  244. package/dist/instrumentations/replay/transport/types.d.ts.map +1 -0
  245. package/dist/instrumentations/replay/transport/types.js +0 -0
  246. package/dist/instrumentations/replay/transport/util.cjs +18 -0
  247. package/dist/instrumentations/replay/transport/util.cjs.map +1 -0
  248. package/dist/instrumentations/replay/transport/util.d.cts +10 -0
  249. package/dist/instrumentations/replay/transport/util.d.cts.map +1 -0
  250. package/dist/instrumentations/replay/transport/util.d.ts +10 -0
  251. package/dist/instrumentations/replay/transport/util.d.ts.map +1 -0
  252. package/dist/instrumentations/replay/transport/util.js +17 -0
  253. package/dist/instrumentations/replay/transport/util.js.map +1 -0
  254. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.cjs.map +1 -1
  255. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.cts.map +1 -1
  256. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.d.ts.map +1 -1
  257. package/dist/instrumentations/user-timing/UserTimingInstrumentation/UserTimingInstrumentation.js.map +1 -1
  258. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.cjs.map +1 -1
  259. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.cts.map +1 -1
  260. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.d.ts.map +1 -1
  261. package/dist/instrumentations/web-vitals/WebVitalsInstrumentation/WebVitalsInstrumentation.js.map +1 -1
  262. package/dist/managers/MXLLogManager/MXLLogManager.cjs +1 -1
  263. package/dist/managers/MXLLogManager/MXLLogManager.cjs.map +1 -1
  264. package/dist/managers/MXLLogManager/MXLLogManager.d.cts.map +1 -1
  265. package/dist/managers/MXLLogManager/MXLLogManager.d.ts.map +1 -1
  266. package/dist/managers/MXLLogManager/MXLLogManager.js +1 -1
  267. package/dist/managers/MXLLogManager/MXLLogManager.js.map +1 -1
  268. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.cjs.map +1 -1
  269. package/dist/managers/MXLSDKFeaturesManager/MXLSDKFeaturesManager.js.map +1 -1
  270. package/dist/managers/MXLTraceManager/MXLExtendedSpan.cjs.map +1 -1
  271. package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.cts.map +1 -1
  272. package/dist/managers/MXLTraceManager/MXLExtendedSpan.d.ts.map +1 -1
  273. package/dist/managers/MXLTraceManager/MXLExtendedSpan.js.map +1 -1
  274. package/dist/managers/MXLTraceManager/MXLTraceManager.cjs.map +1 -1
  275. package/dist/managers/MXLTraceManager/MXLTraceManager.d.cts.map +1 -1
  276. package/dist/managers/MXLTraceManager/MXLTraceManager.d.ts.map +1 -1
  277. package/dist/managers/MXLTraceManager/MXLTraceManager.js.map +1 -1
  278. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs +1 -1
  279. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.cjs.map +1 -1
  280. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.cts.map +1 -1
  281. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.d.ts.map +1 -1
  282. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js +1 -1
  283. package/dist/managers/MXLUserSessionManager/MXLUserSessionManager.js.map +1 -1
  284. package/dist/managers/MXLUserSessionManager/utils/state.cjs +1 -1
  285. package/dist/managers/MXLUserSessionManager/utils/state.cjs.map +1 -1
  286. package/dist/managers/MXLUserSessionManager/utils/state.js +1 -1
  287. package/dist/managers/MXLUserSessionManager/utils/state.js.map +1 -1
  288. package/dist/managers/MXLUserSessionManager/utils/tabTracking.cjs +1 -1
  289. package/dist/managers/MXLUserSessionManager/utils/tabTracking.js +1 -1
  290. package/dist/mxl-web-sdk.js +2 -1
  291. package/dist/mxl-web-sdk.js.map +1 -1
  292. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/esm/common/internal.js +1 -1
  293. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js.map +1 -0
  294. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/esm/common/utils.js +1 -1
  295. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js.map +1 -0
  296. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/esm/logs/internal.js +1 -1
  297. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/esm/logs/internal.js.map +1 -0
  298. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/esm/logs/json/logs.js +1 -1
  299. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/esm/logs/json/logs.js.map +1 -0
  300. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/esm/trace/internal.js +1 -1
  301. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +1 -0
  302. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/esm/trace/json/trace.js +1 -1
  303. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js.map +1 -0
  304. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/hex-to-binary.cjs +2 -2
  305. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/hex-to-binary.cjs.map +1 -0
  306. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/internal.cjs +2 -2
  307. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/internal.cjs.map +1 -0
  308. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/protobuf/common-serializer.cjs +2 -2
  309. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/common-serializer.cjs.map +1 -0
  310. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/protobuf/protobuf-reader.cjs +2 -2
  311. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/protobuf-reader.cjs.map +1 -0
  312. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/protobuf/protobuf-size-estimator.cjs +2 -2
  313. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/protobuf-size-estimator.cjs.map +1 -0
  314. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/protobuf/protobuf-writer.cjs +2 -2
  315. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/protobuf-writer.cjs.map +1 -0
  316. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/protobuf/utils.cjs +2 -2
  317. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/utils.cjs.map +1 -0
  318. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/common/utils.cjs +2 -2
  319. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/common/utils.cjs.map +1 -0
  320. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/i-serializer.d.cts +1 -1
  321. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/i-serializer.d.cts.map +1 -0
  322. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/i-serializer.d.ts +1 -1
  323. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/i-serializer.d.ts.map +1 -0
  324. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/index.cjs +2 -2
  325. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/index.cjs.map +1 -0
  326. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/internal.cjs +2 -2
  327. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/logs/internal.cjs.map +1 -0
  328. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/json/index.cjs +2 -2
  329. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/logs/json/index.cjs.map +1 -0
  330. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/json/logs.cjs +2 -2
  331. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/logs/json/logs.cjs.map +1 -0
  332. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/index.cjs +2 -2
  333. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/index.cjs.map +1 -0
  334. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/logs-serializer.cjs +2 -2
  335. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/logs-serializer.cjs.map +1 -0
  336. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/logs.cjs +2 -2
  337. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/logs.cjs.map +1 -0
  338. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/response-deserializer.cjs +2 -2
  339. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/response-deserializer.cjs.map +1 -0
  340. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/internal-types.cjs +2 -2
  341. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/internal-types.cjs.map +1 -0
  342. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/internal.cjs +3 -3
  343. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/internal.cjs.map +1 -0
  344. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/json/index.cjs +2 -2
  345. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/json/index.cjs.map +1 -0
  346. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/json/metrics.cjs +2 -2
  347. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/json/metrics.cjs.map +1 -0
  348. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/index.cjs +2 -2
  349. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/index.cjs.map +1 -0
  350. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/metrics-serializer.cjs +3 -3
  351. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/metrics-serializer.cjs.map +1 -0
  352. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/metrics.cjs +2 -2
  353. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/metrics.cjs.map +1 -0
  354. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/response-deserializer.cjs +2 -2
  355. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/response-deserializer.cjs.map +1 -0
  356. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/internal.cjs +2 -2
  357. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.cjs.map +1 -0
  358. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/json/index.cjs +2 -2
  359. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/trace/json/index.cjs.map +1 -0
  360. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/json/trace.cjs +2 -2
  361. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/trace/json/trace.cjs.map +1 -0
  362. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/index.cjs +2 -2
  363. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/index.cjs.map +1 -0
  364. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/response-deserializer.cjs +2 -2
  365. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/response-deserializer.cjs.map +1 -0
  366. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/trace-serializer.cjs +2 -2
  367. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace-serializer.cjs.map +1 -0
  368. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/trace.cjs +2 -2
  369. package/dist/node_modules/.pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace.cjs.map +1 -0
  370. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/InstrumentDescriptor.cjs +2 -2
  371. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/InstrumentDescriptor.cjs.map +1 -0
  372. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/Instruments.cjs +2 -2
  373. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/Instruments.cjs.map +1 -0
  374. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/Meter.cjs +2 -2
  375. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/Meter.cjs.map +1 -0
  376. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/MeterProvider.cjs +2 -2
  377. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/MeterProvider.cjs.map +1 -0
  378. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/ObservableResult.cjs +2 -2
  379. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/ObservableResult.cjs.map +1 -0
  380. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Drop.cjs +2 -2
  381. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Drop.cjs.map +1 -0
  382. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/ExponentialHistogram.cjs +2 -2
  383. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/ExponentialHistogram.cjs.map +1 -0
  384. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Histogram.cjs +2 -2
  385. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Histogram.cjs.map +1 -0
  386. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/LastValue.cjs +2 -2
  387. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/LastValue.cjs.map +1 -0
  388. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Sum.cjs +2 -2
  389. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Sum.cjs.map +1 -0
  390. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/exponential-histogram/Buckets.cjs +2 -2
  391. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/Buckets.cjs.map +1 -0
  392. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ExponentMapping.cjs +2 -2
  393. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ExponentMapping.cjs.map +1 -0
  394. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/LogarithmMapping.cjs +2 -2
  395. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/LogarithmMapping.cjs.map +1 -0
  396. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/getMapping.cjs +2 -2
  397. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/getMapping.cjs.map +1 -0
  398. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ieee754.cjs +2 -2
  399. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ieee754.cjs.map +1 -0
  400. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.cjs +2 -2
  401. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.cjs.map +1 -0
  402. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/exponential-histogram/util.cjs +2 -2
  403. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/util.cjs.map +1 -0
  404. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/index.cjs +2 -2
  405. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/index.cjs.map +1 -0
  406. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/types.cjs +2 -2
  407. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/types.cjs.map +1 -0
  408. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/AggregationSelector.cjs +2 -2
  409. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/AggregationSelector.cjs.map +1 -0
  410. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/AggregationTemporality.cjs +2 -2
  411. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/AggregationTemporality.cjs.map +1 -0
  412. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/ConsoleMetricExporter.cjs +2 -2
  413. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/ConsoleMetricExporter.cjs.map +1 -0
  414. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/InMemoryMetricExporter.cjs +2 -2
  415. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/InMemoryMetricExporter.cjs.map +1 -0
  416. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricData.cjs +2 -2
  417. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricData.cjs.map +1 -0
  418. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricReader.cjs +2 -2
  419. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricReader.cjs.map +1 -0
  420. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/PeriodicExportingMetricReader.cjs +2 -2
  421. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.cjs.map +1 -0
  422. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/index.cjs +2 -2
  423. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/index.cjs.map +1 -0
  424. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/AsyncMetricStorage.cjs +2 -2
  425. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.cjs.map +1 -0
  426. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/DeltaMetricProcessor.cjs +2 -2
  427. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.cjs.map +1 -0
  428. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/HashMap.cjs +2 -2
  429. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/HashMap.cjs.map +1 -0
  430. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/MeterProviderSharedState.cjs +2 -2
  431. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterProviderSharedState.cjs.map +1 -0
  432. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/MeterSharedState.cjs +2 -2
  433. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterSharedState.cjs.map +1 -0
  434. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/MetricCollector.cjs +2 -2
  435. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricCollector.cjs.map +1 -0
  436. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/MetricStorage.cjs +2 -2
  437. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricStorage.cjs.map +1 -0
  438. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/MetricStorageRegistry.cjs +2 -2
  439. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricStorageRegistry.cjs.map +1 -0
  440. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/MultiWritableMetricStorage.cjs +2 -2
  441. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.cjs.map +1 -0
  442. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/ObservableRegistry.cjs +2 -2
  443. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/ObservableRegistry.cjs.map +1 -0
  444. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/SyncMetricStorage.cjs +2 -2
  445. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.cjs.map +1 -0
  446. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/state/TemporalMetricProcessor.cjs +2 -2
  447. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/state/TemporalMetricProcessor.cjs.map +1 -0
  448. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/utils.cjs +2 -2
  449. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/utils.cjs.map +1 -0
  450. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/Aggregation.cjs +2 -2
  451. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/Aggregation.cjs.map +1 -0
  452. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/AggregationOption.cjs +2 -2
  453. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/AggregationOption.cjs.map +1 -0
  454. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/AttributesProcessor.cjs +2 -2
  455. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/AttributesProcessor.cjs.map +1 -0
  456. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/InstrumentSelector.cjs +2 -2
  457. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/InstrumentSelector.cjs.map +1 -0
  458. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/MeterSelector.cjs +2 -2
  459. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/MeterSelector.cjs.map +1 -0
  460. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/Predicate.cjs +2 -2
  461. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/Predicate.cjs.map +1 -0
  462. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/RegistrationConflicts.cjs +2 -2
  463. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/RegistrationConflicts.cjs.map +1 -0
  464. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/View.cjs +2 -2
  465. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/View.cjs.map +1 -0
  466. package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/ViewRegistry.cjs +2 -2
  467. package/dist/node_modules/.pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry/sdk-metrics/build/src/view/ViewRegistry.cjs.map +1 -0
  468. package/dist/node_modules/{hoist-non-react-statics → .pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics}/dist/hoist-non-react-statics.cjs.cjs +3 -3
  469. package/dist/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.cjs.map +1 -0
  470. package/dist/node_modules/{hoist-non-react-statics → .pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics}/dist/hoist-non-react-statics.cjs.js +3 -3
  471. package/dist/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
  472. package/dist/node_modules/{react-is → .pnpm/react-is@16.13.1/node_modules/react-is}/cjs/react-is.development.cjs +2 -2
  473. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.cjs.map +1 -0
  474. package/dist/node_modules/{react-is → .pnpm/react-is@16.13.1/node_modules/react-is}/cjs/react-is.development.js +2 -2
  475. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  476. package/dist/node_modules/{react-is → .pnpm/react-is@16.13.1/node_modules/react-is}/cjs/react-is.production.min.cjs +2 -2
  477. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.cjs.map +1 -0
  478. package/dist/node_modules/{react-is → .pnpm/react-is@16.13.1/node_modules/react-is}/index.cjs +2 -2
  479. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.cjs.map +1 -0
  480. package/dist/node_modules/{react-is → .pnpm/react-is@16.13.1/node_modules/react-is}/index.js +2 -2
  481. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
  482. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs +2 -0
  483. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.cjs.map +1 -1
  484. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.d.cts.map +1 -1
  485. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.d.ts.map +1 -1
  486. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js +2 -0
  487. package/dist/processors/MXLNetworkSpanProcessor/MXLNetworkSpanProcessor.js.map +1 -1
  488. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.cjs.map +1 -1
  489. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.d.cts.map +1 -1
  490. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.d.ts.map +1 -1
  491. package/dist/processors/PageLogRecordProcessor/PageLogRecordProcessor.js.map +1 -1
  492. package/dist/processors/PageSpanProcessor/PageSpanProcessor.cjs.map +1 -1
  493. package/dist/processors/PageSpanProcessor/PageSpanProcessor.d.cts.map +1 -1
  494. package/dist/processors/PageSpanProcessor/PageSpanProcessor.d.ts.map +1 -1
  495. package/dist/processors/PageSpanProcessor/PageSpanProcessor.js.map +1 -1
  496. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.cjs.map +1 -1
  497. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.cts.map +1 -1
  498. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.d.ts.map +1 -1
  499. package/dist/processors/UserSessionLogRecordProcessor/UserSessionLogRecordProcessor.js.map +1 -1
  500. package/dist/resources/sdkConstants.cjs +1 -1
  501. package/dist/resources/sdkConstants.cjs.map +1 -1
  502. package/dist/resources/sdkConstants.d.cts +1 -1
  503. package/dist/resources/sdkConstants.d.ts +1 -1
  504. package/dist/resources/sdkConstants.js +1 -1
  505. package/dist/resources/sdkConstants.js.map +1 -1
  506. package/dist/resources/webSdkResource.cjs.map +1 -1
  507. package/dist/resources/webSdkResource.d.cts.map +1 -1
  508. package/dist/resources/webSdkResource.d.ts.map +1 -1
  509. package/dist/resources/webSdkResource.js.map +1 -1
  510. package/dist/sdk/initSDK.cjs +49 -6
  511. package/dist/sdk/initSDK.cjs.map +1 -1
  512. package/dist/sdk/initSDK.d.cts.map +1 -1
  513. package/dist/sdk/initSDK.d.ts.map +1 -1
  514. package/dist/sdk/initSDK.js +49 -6
  515. package/dist/sdk/initSDK.js.map +1 -1
  516. package/dist/sdk/networkInstrumentations.cjs +28 -0
  517. package/dist/sdk/networkInstrumentations.cjs.map +1 -0
  518. package/dist/sdk/networkInstrumentations.d.cts +12 -0
  519. package/dist/sdk/networkInstrumentations.d.cts.map +1 -0
  520. package/dist/sdk/networkInstrumentations.d.ts +12 -0
  521. package/dist/sdk/networkInstrumentations.d.ts.map +1 -0
  522. package/dist/sdk/networkInstrumentations.js +27 -0
  523. package/dist/sdk/networkInstrumentations.js.map +1 -0
  524. package/dist/sdk/setupDefaultInstrumentations.cjs +12 -17
  525. package/dist/sdk/setupDefaultInstrumentations.cjs.map +1 -1
  526. package/dist/sdk/setupDefaultInstrumentations.d.cts +3 -1
  527. package/dist/sdk/setupDefaultInstrumentations.d.cts.map +1 -1
  528. package/dist/sdk/setupDefaultInstrumentations.d.ts +3 -1
  529. package/dist/sdk/setupDefaultInstrumentations.d.ts.map +1 -1
  530. package/dist/sdk/setupDefaultInstrumentations.js +12 -16
  531. package/dist/sdk/setupDefaultInstrumentations.js.map +1 -1
  532. package/dist/sdk/types.d.cts +15 -2
  533. package/dist/sdk/types.d.cts.map +1 -1
  534. package/dist/sdk/types.d.ts +15 -2
  535. package/dist/sdk/types.d.ts.map +1 -1
  536. package/dist/transport/RetryingTransport/RetryingTransport.cjs.map +1 -1
  537. package/dist/transport/RetryingTransport/RetryingTransport.js.map +1 -1
  538. package/package.json +28 -27
  539. package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs +0 -15
  540. package/dist/instrumentations/replay/ReplayInstrumentation/constants.cjs.map +0 -1
  541. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts +0 -9
  542. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.cts.map +0 -1
  543. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts +0 -9
  544. package/dist/instrumentations/replay/ReplayInstrumentation/constants.d.ts.map +0 -1
  545. package/dist/instrumentations/replay/ReplayInstrumentation/constants.js +0 -10
  546. package/dist/instrumentations/replay/ReplayInstrumentation/constants.js.map +0 -1
  547. package/dist/instrumentations/replay/utils/session-recording-utils.cjs +0 -79
  548. package/dist/instrumentations/replay/utils/session-recording-utils.cjs.map +0 -1
  549. package/dist/instrumentations/replay/utils/session-recording-utils.d.cts +0 -32
  550. package/dist/instrumentations/replay/utils/session-recording-utils.d.cts.map +0 -1
  551. package/dist/instrumentations/replay/utils/session-recording-utils.d.ts +0 -32
  552. package/dist/instrumentations/replay/utils/session-recording-utils.d.ts.map +0 -1
  553. package/dist/instrumentations/replay/utils/session-recording-utils.js +0 -73
  554. package/dist/instrumentations/replay/utils/session-recording-utils.js.map +0 -1
  555. package/dist/node_modules/@opentelemetry/otlp-transformer/build/esm/common/internal.js.map +0 -1
  556. package/dist/node_modules/@opentelemetry/otlp-transformer/build/esm/common/utils.js.map +0 -1
  557. package/dist/node_modules/@opentelemetry/otlp-transformer/build/esm/logs/internal.js.map +0 -1
  558. package/dist/node_modules/@opentelemetry/otlp-transformer/build/esm/logs/json/logs.js.map +0 -1
  559. package/dist/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +0 -1
  560. package/dist/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/json/trace.js.map +0 -1
  561. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/hex-to-binary.cjs.map +0 -1
  562. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/internal.cjs.map +0 -1
  563. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/common-serializer.cjs.map +0 -1
  564. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/protobuf-reader.cjs.map +0 -1
  565. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/protobuf-size-estimator.cjs.map +0 -1
  566. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/protobuf-writer.cjs.map +0 -1
  567. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/protobuf/utils.cjs.map +0 -1
  568. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/common/utils.cjs.map +0 -1
  569. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/i-serializer.d.cts.map +0 -1
  570. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/i-serializer.d.ts.map +0 -1
  571. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/index.cjs.map +0 -1
  572. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/logs/internal.cjs.map +0 -1
  573. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/logs/json/index.cjs.map +0 -1
  574. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/logs/json/logs.cjs.map +0 -1
  575. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/index.cjs.map +0 -1
  576. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/logs-serializer.cjs.map +0 -1
  577. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/logs.cjs.map +0 -1
  578. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/response-deserializer.cjs.map +0 -1
  579. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/internal-types.cjs.map +0 -1
  580. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/internal.cjs.map +0 -1
  581. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/json/index.cjs.map +0 -1
  582. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/json/metrics.cjs.map +0 -1
  583. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/index.cjs.map +0 -1
  584. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/metrics-serializer.cjs.map +0 -1
  585. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/metrics.cjs.map +0 -1
  586. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/protobuf/response-deserializer.cjs.map +0 -1
  587. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.cjs.map +0 -1
  588. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/trace/json/index.cjs.map +0 -1
  589. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/trace/json/trace.cjs.map +0 -1
  590. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/index.cjs.map +0 -1
  591. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/response-deserializer.cjs.map +0 -1
  592. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace-serializer.cjs.map +0 -1
  593. package/dist/node_modules/@opentelemetry/otlp-transformer/build/src/trace/protobuf/trace.cjs.map +0 -1
  594. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/InstrumentDescriptor.cjs.map +0 -1
  595. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/Instruments.cjs.map +0 -1
  596. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/Meter.cjs.map +0 -1
  597. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/MeterProvider.cjs.map +0 -1
  598. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/ObservableResult.cjs.map +0 -1
  599. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Drop.cjs.map +0 -1
  600. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/ExponentialHistogram.cjs.map +0 -1
  601. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Histogram.cjs.map +0 -1
  602. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/LastValue.cjs.map +0 -1
  603. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/Sum.cjs.map +0 -1
  604. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/Buckets.cjs.map +0 -1
  605. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ExponentMapping.cjs.map +0 -1
  606. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/LogarithmMapping.cjs.map +0 -1
  607. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/getMapping.cjs.map +0 -1
  608. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ieee754.cjs.map +0 -1
  609. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.cjs.map +0 -1
  610. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/util.cjs.map +0 -1
  611. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/index.cjs.map +0 -1
  612. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/types.cjs.map +0 -1
  613. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/export/AggregationSelector.cjs.map +0 -1
  614. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/export/AggregationTemporality.cjs.map +0 -1
  615. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/export/ConsoleMetricExporter.cjs.map +0 -1
  616. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/export/InMemoryMetricExporter.cjs.map +0 -1
  617. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricData.cjs.map +0 -1
  618. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricReader.cjs.map +0 -1
  619. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.cjs.map +0 -1
  620. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/index.cjs.map +0 -1
  621. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/AsyncMetricStorage.cjs.map +0 -1
  622. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/DeltaMetricProcessor.cjs.map +0 -1
  623. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/HashMap.cjs.map +0 -1
  624. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterProviderSharedState.cjs.map +0 -1
  625. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/MeterSharedState.cjs.map +0 -1
  626. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricCollector.cjs.map +0 -1
  627. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricStorage.cjs.map +0 -1
  628. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/MetricStorageRegistry.cjs.map +0 -1
  629. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/MultiWritableMetricStorage.cjs.map +0 -1
  630. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/ObservableRegistry.cjs.map +0 -1
  631. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/SyncMetricStorage.cjs.map +0 -1
  632. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/state/TemporalMetricProcessor.cjs.map +0 -1
  633. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/utils.cjs.map +0 -1
  634. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/Aggregation.cjs.map +0 -1
  635. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/AggregationOption.cjs.map +0 -1
  636. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/AttributesProcessor.cjs.map +0 -1
  637. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/InstrumentSelector.cjs.map +0 -1
  638. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/MeterSelector.cjs.map +0 -1
  639. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/Predicate.cjs.map +0 -1
  640. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/RegistrationConflicts.cjs.map +0 -1
  641. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/View.cjs.map +0 -1
  642. package/dist/node_modules/@opentelemetry/sdk-metrics/build/src/view/ViewRegistry.cjs.map +0 -1
  643. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.cjs.map +0 -1
  644. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +0 -1
  645. package/dist/node_modules/react-is/cjs/react-is.development.cjs.map +0 -1
  646. package/dist/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  647. package/dist/node_modules/react-is/cjs/react-is.production.min.cjs.map +0 -1
  648. package/dist/node_modules/react-is/index.cjs.map +0 -1
  649. package/dist/node_modules/react-is/index.js.map +0 -1
  650. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/index.d.cts +0 -0
  651. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/index.d.ts +0 -0
  652. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/json/index.d.cts +0 -0
  653. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/json/index.d.ts +0 -0
  654. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/json/logs.d.cts +0 -0
  655. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/json/logs.d.ts +0 -0
  656. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/index.d.cts +0 -0
  657. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/index.d.ts +0 -0
  658. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/logs.d.cts +0 -0
  659. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/logs/protobuf/logs.d.ts +0 -0
  660. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/json/index.d.cts +0 -0
  661. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/json/index.d.ts +0 -0
  662. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/json/metrics.d.cts +0 -0
  663. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/json/metrics.d.ts +0 -0
  664. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/index.d.cts +0 -0
  665. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/index.d.ts +0 -0
  666. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/metrics.d.cts +0 -0
  667. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/metrics/protobuf/metrics.d.ts +0 -0
  668. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/json/index.d.cts +0 -0
  669. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/json/index.d.ts +0 -0
  670. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/json/trace.d.cts +0 -0
  671. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/json/trace.d.ts +0 -0
  672. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/index.d.cts +0 -0
  673. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/index.d.ts +0 -0
  674. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/trace.d.cts +0 -0
  675. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_otlp-transformer@0.218.0_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/otlp-transformer/build/src/trace/protobuf/trace.d.ts +0 -0
  676. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/InstrumentDescriptor.d.cts +0 -0
  677. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/InstrumentDescriptor.d.ts +0 -0
  678. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/MeterProvider.d.cts +0 -0
  679. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/MeterProvider.d.ts +0 -0
  680. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Drop.d.cts +0 -0
  681. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Drop.d.ts +0 -0
  682. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/ExponentialHistogram.d.cts +0 -0
  683. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/ExponentialHistogram.d.ts +0 -0
  684. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Histogram.d.cts +0 -0
  685. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Histogram.d.ts +0 -0
  686. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/LastValue.d.cts +0 -0
  687. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/LastValue.d.ts +0 -0
  688. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Sum.d.cts +0 -0
  689. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/Sum.d.ts +0 -0
  690. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/index.d.cts +0 -0
  691. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/index.d.ts +0 -0
  692. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/types.d.cts +0 -0
  693. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/aggregator/types.d.ts +0 -0
  694. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/AggregationSelector.d.cts +0 -0
  695. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/AggregationSelector.d.ts +0 -0
  696. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/CardinalitySelector.d.cts +0 -0
  697. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/CardinalitySelector.d.ts +0 -0
  698. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/ConsoleMetricExporter.d.cts +0 -0
  699. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/ConsoleMetricExporter.d.ts +0 -0
  700. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/InMemoryMetricExporter.d.cts +0 -0
  701. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/InMemoryMetricExporter.d.ts +0 -0
  702. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricData.d.cts +0 -0
  703. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricData.d.ts +0 -0
  704. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricExporter.d.cts +0 -0
  705. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricExporter.d.ts +0 -0
  706. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricProducer.d.cts +0 -0
  707. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricProducer.d.ts +0 -0
  708. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricReader.d.cts +0 -0
  709. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/MetricReader.d.ts +0 -0
  710. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/PeriodicExportingMetricReader.d.cts +0 -0
  711. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/export/PeriodicExportingMetricReader.d.ts +0 -0
  712. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/index.d.cts +0 -0
  713. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/index.d.ts +0 -0
  714. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/utils.d.cts +0 -0
  715. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/utils.d.ts +0 -0
  716. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/Aggregation.d.cts +0 -0
  717. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/Aggregation.d.ts +0 -0
  718. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/AggregationOption.d.cts +0 -0
  719. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/AggregationOption.d.ts +0 -0
  720. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/AttributesProcessor.d.cts +0 -0
  721. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/AttributesProcessor.d.ts +0 -0
  722. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/InstrumentSelector.d.cts +0 -0
  723. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/InstrumentSelector.d.ts +0 -0
  724. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/View.d.cts +0 -0
  725. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-metrics@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-metrics/build/src/view/View.d.ts +0 -0
  726. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/BasicTracerProvider.d.cts +0 -0
  727. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/BasicTracerProvider.d.ts +0 -0
  728. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/Sampler.d.cts +0 -0
  729. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/Sampler.d.ts +0 -0
  730. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/Span.d.cts +0 -0
  731. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/Span.d.ts +0 -0
  732. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/SpanProcessor.d.cts +0 -0
  733. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/SpanProcessor.d.ts +0 -0
  734. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/TimedEvent.d.cts +0 -0
  735. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/TimedEvent.d.ts +0 -0
  736. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/BatchSpanProcessorBase.d.cts +0 -0
  737. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/BatchSpanProcessorBase.d.ts +0 -0
  738. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/ConsoleSpanExporter.d.cts +0 -0
  739. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/ConsoleSpanExporter.d.ts +0 -0
  740. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/InMemorySpanExporter.d.cts +0 -0
  741. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/InMemorySpanExporter.d.ts +0 -0
  742. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/NoopSpanProcessor.d.cts +0 -0
  743. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/NoopSpanProcessor.d.ts +0 -0
  744. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/ReadableSpan.d.cts +0 -0
  745. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/ReadableSpan.d.ts +0 -0
  746. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/SimpleSpanProcessor.d.cts +0 -0
  747. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/SimpleSpanProcessor.d.ts +0 -0
  748. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/SpanExporter.d.cts +0 -0
  749. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/export/SpanExporter.d.ts +0 -0
  750. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/index.d.cts +0 -0
  751. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/index.d.ts +0 -0
  752. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/platform/index.d.cts +0 -0
  753. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/platform/index.d.ts +0 -0
  754. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/platform/node/export/BatchSpanProcessor.d.cts +0 -0
  755. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/platform/node/export/BatchSpanProcessor.d.ts +0 -0
  756. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/platform/node/index.d.cts +0 -0
  757. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/platform/node/index.d.ts +0 -0
  758. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/AlwaysOffSampler.d.cts +0 -0
  759. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/AlwaysOffSampler.d.ts +0 -0
  760. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/AlwaysOnSampler.d.cts +0 -0
  761. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/AlwaysOnSampler.d.ts +0 -0
  762. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/ParentBasedSampler.d.cts +0 -0
  763. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/ParentBasedSampler.d.ts +0 -0
  764. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/TraceIdRatioBasedSampler.d.cts +0 -0
  765. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/sampler/TraceIdRatioBasedSampler.d.ts +0 -0
  766. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/types.d.cts +0 -0
  767. /package/dist/node_modules/{@opentelemetry → .pnpm/@opentelemetry_sdk-trace-base@2.7.1_@opentelemetry_api@1.9.1/node_modules/@opentelemetry}/sdk-trace-base/build/src/types.d.ts +0 -0
@@ -1,2 +1,3 @@
1
- "use strict";window.MXLWebSdk=window.MXLWebSdk||(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let t=`1.9.1`,n=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function r(e){let t=new Set([e]),r=new Set,i=e.match(n);if(!i)return()=>!1;let a={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};if(a.prerelease!=null)return function(t){return t===e};function o(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let i=e.match(n);if(!i)return o(e);let c={major:+i[1],minor:+i[2],patch:+i[3],prerelease:i[4]};return c.prerelease!=null||a.major!==c.major?o(e):a.major===0?a.minor===c.minor&&a.patch<=c.patch?s(e):o(e):a.minor<=c.minor?s(e):o(e)}}let i=r(t),a=t.split(`.`)[0],o=Symbol.for(`opentelemetry.js.api.${a}`),s=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{};function c(e,n,r,i=!1){var a;let c=s[o]=(a=s[o])==null?{version:t}:a;if(!i&&c[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(c.version!==`1.9.1`){let n=Error(`@opentelemetry/api: Registration of version v${c.version} for ${e} does not match previously registered API v${t}`);return r.error(n.stack||n.message),!1}return c[e]=n,r.debug(`@opentelemetry/api: Registered a global for ${e} v${t}.`),!0}function l(e){var t,n;let r=(t=s[o])==null?void 0:t.version;if(!(!r||!i(r)))return(n=s[o])==null?void 0:n[e]}function u(e,n){n.debug(`@opentelemetry/api: Unregistering a global for ${e} v${t}.`);let r=s[o];r&&delete r[e]}var d=class{constructor(e){this._namespace=e.namespace||`DiagComponentLogger`}debug(...e){return f(`debug`,this._namespace,e)}error(...e){return f(`error`,this._namespace,e)}info(...e){return f(`info`,this._namespace,e)}warn(...e){return f(`warn`,this._namespace,e)}verbose(...e){return f(`verbose`,this._namespace,e)}};function f(e,t,n){let r=l(`diag`);if(r)return r[e](t,...n)}var p;(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(p||(p={}));function m(e,t){e<p.NONE?e=p.NONE:e>p.ALL&&(e=p.ALL),t=t||{};function n(n,r){let i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,p.ERROR),warn:n(`warn`,p.WARN),info:n(`info`,p.INFO),debug:n(`debug`,p.DEBUG),verbose:n(`verbose`,p.VERBOSE)}}var h=class e{static instance(){return this._instance||(this._instance=new e),this._instance}constructor(){function e(e){return function(...t){let n=l(`diag`);if(n)return n[e](...t)}}let t=this;t.setLogger=(e,n={logLevel:p.INFO})=>{var r,i,a;if(e===t){let e=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error((r=e.stack)==null?e.message:r),!1}typeof n==`number`&&(n={logLevel:n});let o=l(`diag`),s=m((i=n.logLevel)==null?p.INFO:i,e);if(o&&!n.suppressOverrideMessage){let e=(a=Error().stack)==null?`<failed to generate stacktrace>`:a;o.warn(`Current logger will be overwritten from ${e}`),s.warn(`Current logger will overwrite one already registered from ${e}`)}return c(`diag`,s,t,!0)},t.disable=()=>{u(`diag`,t)},t.createComponentLogger=e=>new d(e),t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}},ee=class e{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let e of t)n._entries.delete(e);return n}clear(){return new e}};let te=Symbol(`BaggageEntryMetadata`),g=h.instance();function _(e={}){return new ee(new Map(Object.entries(e)))}function ne(e){return typeof e!=`string`&&(g.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=``),{__TYPE__:te,toString(){return e}}}function v(e){return Symbol.for(e)}let y=new class e{constructor(t){let n=this;n._currentContext=t?new Map(t):new Map,n.getValue=e=>n._currentContext.get(e),n.setValue=(t,r)=>{let i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=t=>{let r=new e(n._currentContext);return r._currentContext.delete(t),r}}},re=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],ie={};if(typeof console<`u`)for(let e of[`error`,`warn`,`info`,`debug`,`trace`,`log`])typeof console[e]==`function`&&(ie[e]=console[e]);var ae=class{constructor(){function e(e){return function(...t){let n=ie[e];if(typeof n!=`function`&&(n=ie.log),typeof n!=`function`&&console&&(n=console[e],typeof n!=`function`&&(n=console.log)),typeof n==`function`)return n.apply(console,t)}}for(let t=0;t<re.length;t++)this[re[t].n]=e(re[t].c)}},oe=class{constructor(){}createGauge(e,t){return ve}createHistogram(e,t){return ye}createCounter(e,t){return _e}createUpDownCounter(e,t){return be}createObservableGauge(e,t){return Se}createObservableCounter(e,t){return xe}createObservableUpDownCounter(e,t){return Ce}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},se=class{},ce=class extends se{add(e,t){}},le=class extends se{add(e,t){}},ue=class extends se{record(e,t){}},de=class extends se{record(e,t){}},fe=class{addCallback(e){}removeCallback(e){}},pe=class extends fe{},me=class extends fe{},he=class extends fe{};let ge=new oe,_e=new ce,ve=new ue,ye=new de,be=new le,xe=new pe,Se=new me,Ce=new he;function we(){return ge}let Te={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},Ee={set(e,t,n){e!=null&&(e[t]=n)}};var De=class{active(){return y}with(e,t,n,...r){return t.call(n,...r)}bind(e,t){return t}enable(){return this}disable(){return this}};let Oe=`context`,b=new De;var ke=class e{constructor(){}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalContextManager(e){return c(Oe,e,h.instance())}active(){return this._getContextManager().active()}with(e,t,n,...r){return this._getContextManager().with(e,t,n,...r)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return l(Oe)||b}disable(){this._getContextManager().disable(),u(Oe,h.instance())}},x;(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(x||(x={}));let S={traceId:`00000000000000000000000000000000`,spanId:`0000000000000000`,traceFlags:x.NONE};var C=class{constructor(e=S){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}};let Ae=v(`OpenTelemetry Context Key SPAN`);function je(e){return e.getValue(Ae)||void 0}function Me(){return je(ke.getInstance().active())}function Ne(e,t){return e.setValue(Ae,t)}function Pe(e){return e.deleteValue(Ae)}function Fe(e,t){return Ne(e,new C(t))}function Ie(e){var t;return(t=je(e))==null?void 0:t.spanContext()}let w=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function Le(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(w[e.charCodeAt(t)]|0)+(w[e.charCodeAt(t+1)]|0)+(w[e.charCodeAt(t+2)]|0)+(w[e.charCodeAt(t+3)]|0);return n===t}function Re(e){return Le(e,32)&&e!==`00000000000000000000000000000000`}function ze(e){return Le(e,16)&&e!==`0000000000000000`}function T(e){return Re(e.traceId)&&ze(e.spanId)}function Be(e){return new C(e)}let Ve=ke.getInstance();var He=class{startSpan(e,t,n=Ve.active()){if(t!=null&&t.root)return new C;let r=n&&Ie(n);return Ue(r)&&T(r)?new C(r):new C}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a==null?Ve.active():a,c=this.startSpan(e,i,s),l=Ne(s,c);return Ve.with(l,o,void 0,c)}};function Ue(e){return typeof e==`object`&&!!e&&`spanId`in e&&typeof e.spanId==`string`&&`traceId`in e&&typeof e.traceId==`string`&&`traceFlags`in e&&typeof e.traceFlags==`number`}let We=new He;var Ge=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):We}};let Ke=new class{getTracer(e,t,n){return new He}};var qe=class{getTracer(e,t,n){var r;return(r=this.getDelegateTracer(e,t,n))==null?new Ge(this,e,t,n):r}getDelegate(){var e;return(e=this._delegate)==null?Ke:e}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){var r;return(r=this._delegate)==null?void 0:r.getTracer(e,t,n)}},Je;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(Je||(Je={}));var Ye;(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(Ye||(Ye={}));var E;(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(E||(E={}));let D=ke.getInstance(),O=h.instance(),Xe=new class{getMeter(e,t,n){return ge}},Ze=`metrics`,Qe=class e{constructor(){}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalMeterProvider(e){return c(Ze,e,h.instance())}getMeterProvider(){return l(Ze)||Xe}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){u(Ze,h.instance())}}.getInstance();var $e=class{inject(e,t){}extract(e,t){return e}fields(){return[]}};let et=v(`OpenTelemetry Baggage Key`);function tt(e){return e.getValue(et)||void 0}function nt(){return tt(ke.getInstance().active())}function rt(e,t){return e.setValue(et,t)}function it(e){return e.deleteValue(et)}let at=`propagation`,ot=new $e,k=class e{constructor(){this.createBaggage=_,this.getBaggage=tt,this.getActiveBaggage=nt,this.setBaggage=rt,this.deleteBaggage=it}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalPropagator(e){return c(at,e,h.instance())}inject(e,t,n=Ee){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=Te){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){u(at,h.instance())}_getGlobalPropagator(){return l(at)||ot}}.getInstance(),st=`trace`,A=class e{constructor(){this._proxyTracerProvider=new qe,this.wrapSpanContext=Be,this.isSpanContextValid=T,this.deleteSpan=Pe,this.getSpan=je,this.getActiveSpan=Me,this.getSpanContext=Ie,this.setSpan=Ne,this.setSpanContext=Fe}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalTracerProvider(e){let t=c(st,this._proxyTracerProvider,h.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return l(st)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){u(st,h.instance()),this._proxyTracerProvider=new qe}}.getInstance();function ct(e,t,n,r=new Set){return new Proxy(e,{get(e,i,a){let o=Reflect.get(e,i,a);return typeof o!=`function`||r.has(i)?o:(...r)=>{try{return o.apply(e,r)}catch(e){let a=e instanceof Error?e.message:`Unknown error`;n.error(`${String(i)}: ${a}`);let o=t[i];return typeof o==`function`?o.apply(t,r):void 0}}}})}var lt=class{logException(e,t){}message(e,t,n){}};function ut(e){"@babel/helpers - typeof";return ut=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ut(e)}function dt(e,t){if(ut(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ut(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ft(e){var t=dt(e,`string`);return ut(t)==`symbol`?t:t+``}function j(e,t,n){return(t=ft(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let pt=new lt;var mt=class{constructor(){j(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?pt:e}setDelegate(e){this._delegate=e}logException(e,t){this.getDelegate().logException(e,t)}message(e,t,n){this.getDelegate().message(e,t,n)}};let ht=new lt,gt=new Set([`setDelegate`,`getDelegate`]);var _t=class e{static getInstance(){if(!e._instance){let t=new mt,n=ct(t,ht,O.createComponentLogger({namespace:`LogAPI`}),gt);e._instance=Object.assign(n,{getLogManager(){return t},setGlobalLogManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};j(_t,`_instance`,void 0);let vt=_t.getInstance();var yt=class{setCurrentRoute(e){}getCurrentRoute(){return null}getCurrentPageId(){return``}setPageLabel(e){}getPageLabel(){return null}clearCurrentRoute(){}};let bt=new yt;var xt=class{constructor(){j(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?bt:e}setDelegate(e){this._delegate=e}setCurrentRoute(e){this.getDelegate().setCurrentRoute(e)}getCurrentRoute(){return this.getDelegate().getCurrentRoute()}getCurrentPageId(){return this.getDelegate().getCurrentPageId()}setPageLabel(e){this.getDelegate().setPageLabel(e)}getPageLabel(){return this.getDelegate().getPageLabel()}clearCurrentRoute(){this.getDelegate().clearCurrentRoute()}};let St=new yt,Ct=new Set([`setDelegate`,`getDelegate`]);var wt=class e{static getInstance(){if(!e._instance){let t=new xt,n=ct(t,St,O.createComponentLogger({namespace:`PageAPI`}),Ct);e._instance=Object.assign(n,{getPageManager(){return t},setGlobalPageManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};j(wt,`_instance`,void 0);let M=wt.getInstance();var Tt=class{addBreadcrumb(e){}addProperty(e,t,n){}removeProperty(e){}getUserSessionId(){return null}getPreviousUserSessionId(){return null}getUserSessionStartTime(){return null}endUserSession(){}getUserSessionAttributes(){return null}getSessionPartProperties(){return{}}getSessionPartId(){return null}getSessionPartSpan(){return null}startSessionPartInternal(e){}endSessionPartInternal(e,t){}incrSessionPartCountForKey(e){}incrNextSessionPartCountForKey(e){}addSessionPartStartedListener(e){return()=>{}}addSessionPartEndedListener(e){return()=>{}}setTracerProvider(){}recordSDKStartupDuration(e){}_clearMaxDurationTimer(){}_shutdown(){}};let Et=new Tt;var Dt=class{constructor(){j(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?Et:e}setDelegate(e){let t=this._delegate;t&&t!==e&&t._shutdown(),this._delegate=e}addBreadcrumb(e){this.getDelegate().addBreadcrumb(e)}addProperty(e,t,n){this.getDelegate().addProperty(e,t,n)}removeProperty(e){this.getDelegate().removeProperty(e)}getUserSessionId(){return this.getDelegate().getUserSessionId()}getPreviousUserSessionId(){return this.getDelegate().getPreviousUserSessionId()}getUserSessionStartTime(){return this.getDelegate().getUserSessionStartTime()}endUserSession(){this.getDelegate().endUserSession()}getUserSessionAttributes(){return this.getDelegate().getUserSessionAttributes()}getSessionPartProperties(){return this.getDelegate().getSessionPartProperties()}getSessionPartId(){return this.getDelegate().getSessionPartId()}getSessionPartSpan(){return this.getDelegate().getSessionPartSpan()}startSessionPartInternal(e){this.getDelegate().startSessionPartInternal(e)}endSessionPartInternal(e,t){this.getDelegate().endSessionPartInternal(e,t)}incrSessionPartCountForKey(e){this.getDelegate().incrSessionPartCountForKey(e)}incrNextSessionPartCountForKey(e){this.getDelegate().incrNextSessionPartCountForKey(e)}addSessionPartStartedListener(e){return this.getDelegate().addSessionPartStartedListener(e)}addSessionPartEndedListener(e){return this.getDelegate().addSessionPartEndedListener(e)}setTracerProvider(e){this.getDelegate().setTracerProvider(e)}recordSDKStartupDuration(e){this.getDelegate().recordSDKStartupDuration(e)}_clearMaxDurationTimer(){this.getDelegate()._clearMaxDurationTimer()}_shutdown(){this.getDelegate()._shutdown()}};let Ot=new Tt,kt=new Set([`setDelegate`,`getDelegate`]);var At=class e{static getInstance(){if(!e._instance){let t=new Dt,n=ct(t,Ot,O.createComponentLogger({namespace:`SessionAPI`}),kt);e._instance=Object.assign(n,{getUserSessionManager(){return t},setGlobalUserSessionManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};j(At,`_instance`,void 0);let jt=At.getInstance();var Mt=class{constructor(e=S){j(this,`_spanContext`,void 0),j(this,`attributes`,{}),this._spanContext=e}fail(e){}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}removeAttribute(e){return this}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}},Nt=class{startSpan(e,t){return new Mt}setSpan(e,t){return y}getSpan(e){}};let Pt=new Nt;var Ft=class{constructor(){j(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?Pt:e}setDelegate(e){this._delegate=e}startSpan(e,t,n){return this.getDelegate().startSpan(e,t,n)}setSpan(e,t){return this.getDelegate().setSpan(e,t)}getSpan(e){return this.getDelegate().getSpan(e)}};let It=new Nt,Lt=new Set([`setDelegate`,`getDelegate`]);var Rt=class e{static getInstance(){if(!e._instance){let t=new Ft,n=ct(t,It,O.createComponentLogger({namespace:`TraceAPI`}),Lt);e._instance=Object.assign(n,{getTraceManager(){return t},setGlobalTraceManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};j(Rt,`_instance`,void 0);let zt=Rt.getInstance();var Bt=class{getMXLUserId(){return``}getUserId(){return null}setUserId(){}clearUserId(){}};let Vt=new Bt;var Ht=class{constructor(){j(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?Vt:e}setDelegate(e){this._delegate=e}getMXLUserId(){return this.getDelegate().getMXLUserId()}getUserId(){return this.getDelegate().getUserId()}setUserId(e){this.getDelegate().setUserId(e)}clearUserId(){this.getDelegate().clearUserId()}};let Ut=new Bt,Wt=new Set([`setDelegate`,`getDelegate`]);var Gt=class e{static getInstance(){if(!e._instance){let t=new Ht,n=ct(t,Ut,O.createComponentLogger({namespace:`UserAPI`}),Wt);e._instance=Object.assign(n,{getUserManager(){return t},setGlobalUserManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};j(Gt,`_instance`,void 0);let Kt=Gt.getInstance(),N=`mxl.type`,qt=`mxl.state`,Jt=`react.component_stack`,Yt=`mxl.instrumentation`,Xt=`mxl.js_file_bundle_ids`,Zt=`browser.url.full`,Qt=`app.surface.name`,$t=`app.surface.id`,en=`app.surface.label`,tn=`mxl.session_part_id`,nn=`mxl.user_session_id`,rn=`mxl.user_session_previous_id`,an={pageLabel:en},on=v(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`);function sn(e){return e.setValue(on,!0)}function cn(e){return e.getValue(on)===!0}let ln=`baggage`;function un(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function dn(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function fn(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let i=n.substring(0,r).trim(),a=n.substring(r+1).trim();if(!i||!a)return;let o,s;try{o=decodeURIComponent(i),s=decodeURIComponent(a)}catch(e){return}let c;return t!==-1&&t<e.length-1&&(c=ne(e.substring(t+1))),{key:o,value:s,metadata:c}}var pn=class{inject(e,t,n){let r=k.getBaggage(e);if(!r||cn(e))return;let i=un(dn(r).filter(e=>e.length<=4096).slice(0,180));i.length>0&&n.set(t,ln,i)}extract(e,t,n){let r=n.get(t,ln),i=Array.isArray(r)?r.join(`,`):r;if(!i)return e;let a={};return i.length===0||(i.split(`,`).forEach(e=>{let t=fn(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),a[t.key]=e}}),Object.entries(a).length===0)?e:k.setBaggage(e,k.createBaggage(a))}fields(){return[ln]}};function mn(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!hn(n)){O.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!gn(r)){O.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function hn(e){return typeof e==`string`&&e!==``}function gn(e){return e==null?!0:Array.isArray(e)?_n(e):vn(typeof e)}function _n(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(vn(e)){t=e;continue}return!1}return!1}}return!0}function vn(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}function yn(){return e=>{O.error(bn(e))}}function bn(e){return typeof e==`string`?e:JSON.stringify(xn(e))}function xn(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}let Sn=yn();function P(e){try{Sn(e)}catch(e){}}let Cn=`http.url`,wn=`error.type`,Tn=`exception.message`,En=`exception.stacktrace`,Dn=`exception.type`,On=`http.request.method`,kn=`http.request.method_original`,An=`http.response.status_code`,jn=`server.address`,Mn=`server.port`,Nn=`service.name`,Pn=`telemetry.sdk.language`,Fn=`telemetry.sdk.name`,In=`telemetry.sdk.version`,F=`url.full`,Ln=`user_agent.original`,Rn={[Fn]:`opentelemetry`,"process.runtime.name":`browser`,[Pn]:`webjs`,[In]:`2.7.1`},I=performance,zn=Math.pow(10,6),Bn=Math.pow(10,9);function L(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*zn)]}function Vn(e){return qn(L(I.timeOrigin),L(typeof e==`number`?e:I.now()))}function Hn(e){if(Gn(e))return e;if(typeof e==`number`)return e<I.timeOrigin?Vn(e):L(e);if(e instanceof Date)return L(e.getTime());throw TypeError(`Invalid input type`)}function Un(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=Bn),[n,r]}function R(e){return e[0]*Bn+e[1]}function Wn(e){return e[0]*1e3+e[1]/1e6}function Gn(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function Kn(e){return Gn(e)||typeof e==`number`||e instanceof Date}function qn(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Bn&&(n[1]-=Bn,n[0]+=1),n}var z;(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(z||(z={}));var Jn=class{constructor(e={}){var t;j(this,`_propagators`,void 0),j(this,`_fields`,void 0),this._propagators=(t=e.propagators)==null?[]:t;let n=new Set;for(let e of this._propagators){let t=typeof e.fields==`function`?e.fields():[];for(let e of t)n.add(e)}this._fields=Array.from(n)}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){O.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){O.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}};let Yn=`[_0-9a-z-*/]`,Xn=`[a-z]${Yn}{0,255}`,Zn=`[a-z0-9]${Yn}{0,240}@[a-z]${Yn}{0,13}`,Qn=RegExp(`^(?:${Xn}|${Zn})$`),$n=/^[ -~]{0,255}[!-~]$/,er=/,|=/;function tr(e){return Qn.test(e)}function nr(e){return $n.test(e)&&!er.test(e)}var rr=class e{constructor(e){j(this,`_length`,void 0),j(this,`_rawTraceState`,void 0),j(this,`_internalState`,void 0),this._rawTraceState=typeof e==`string`?e:``,this._length=this._rawTraceState.length}set(e,t){if(!tr(e)||!nr(t))return this;let n=this._getState(),r=n.get(e),i=this._length;if(typeof r==`string`?i+=t.length-r.length:i+=e.length+t.length+(n.size>0?2:1),i>512)return this;let a=new Map(n);return a.delete(e),a.set(e,t),this._fromState(a,i)}unset(e){let t=this._getState(),n=t.get(e);if(typeof n!=`string`)return this;let r=this._length-(e.length+n.length+1);t.size>1&&--r;let i=new Map(t);return i.delete(e),this._fromState(i,r)}get(e){return this._getState().get(e)}serialize(){let e=``,t=0;for(let n of this._getState())t>0&&(e=`,`+e),e=`${n[0]}=${n[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(`,`),t=new Map,n=0;for(let r of e){let e=r.trim(),i=e.indexOf(`=`);if(i===-1)continue;let a=e.slice(0,i),o=e.slice(i+1);if(!tr(a)||!nr(o))continue;let s=n+e.length+ +(t.size>0);if(!(s>512)&&(t.set(a,o),n=s,t.size>=32))break}return this._length=n,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(t,n){let r=Object.create(e.prototype);return r._internalState=t,r._length=n,r}};let ir=`traceparent`,ar=`tracestate`,or=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`);function sr(e){let t=or.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var cr=class{inject(e,t,n){let r=A.getSpanContext(e);if(!r||cn(e)||!T(r))return;let i=`00-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||x.NONE).toString(16)}`;n.set(t,ir,i),r.traceState&&n.set(t,ar,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,ir);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=sr(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,ar);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new rr(typeof e==`string`?e:void 0)}return A.setSpanContext(e,a)}fields(){return[ir,ar]}};let lr=Function.prototype.toString,ur=lr.call(Object),dr=Object.getPrototypeOf,fr=Object.prototype,pr=fr.hasOwnProperty,mr=Symbol?Symbol.toStringTag:void 0,hr=fr.toString;function gr(e){if(!_r(e)||vr(e)!==`[object Object]`)return!1;let t=dr(e);if(t===null)return!0;let n=pr.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&lr.call(n)===ur}function _r(e){return typeof e==`object`&&!!e}function vr(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:mr&&mr in Object(e)?yr(e):br(e)}function yr(e){let t=pr.call(e,mr),n=e[mr],r=!1;try{e[mr]=void 0,r=!0}catch(e){}let i=hr.call(e);return r&&(t?e[mr]=n:delete e[mr]),i}function br(e){return hr.call(e)}function xr(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=Cr(t,e.shift(),0,n);return t}function Sr(e){return Tr(e)?e.slice():e}function Cr(e,t,n=0,r){let i;if(!(n>20)){if(n++,Or(e)||Or(t)||Er(t))i=Sr(t);else if(Tr(e)){if(i=e.slice(),Tr(t))for(let e=0,n=t.length;e<n;e++)i.push(Sr(t[e]));else if(Dr(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===`__proto__`||r===`constructor`||r===`prototype`||(i[r]=Sr(t[r]))}}}else if(Dr(e))if(Dr(t)){if(!kr(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if(Or(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(wr(e,s,r)||wr(t,s,r))delete i[s];else{if(Dr(a)&&Dr(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=Cr(i[s],c,n,r)}}}}else i=t;return i}}function wr(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function Tr(e){return Array.isArray(e)}function Er(e){return typeof e==`function`}function Dr(e){return!Or(e)&&!Tr(e)&&!Er(e)&&typeof e==`object`}function Or(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function kr(e,t){return!(!gr(e)||!gr(t))}var Ar=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};function jr(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new Ar(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}function Mr(e,t){return typeof t==`string`?e===t:!!e.match(t)}function Nr(e,t){if(!t)return!1;for(let n of t)if(Mr(e,n))return!0;return!1}var Pr=class{constructor(){j(this,`_promise`,void 0),j(this,`_resolve`,void 0),j(this,`_reject`,void 0),this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}},Fr=class{constructor(e,t){j(this,`_isCalled`,!1),j(this,`_deferred`,new Pr),j(this,`_callback`,void 0),j(this,`_that`,void 0),this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};function Ir(e,t){return new Promise(n=>{D.with(sn(D.active()),()=>{e.export(t,n)})})}let Lr={_export:Ir};var Rr=class{constructor(e=window.performance){j(this,`_clock`,void 0),j(this,`epochMillisFromOriginOffset`,e=>this._clock.timeOrigin+e),j(this,`getNowHRTime`,()=>L(this.getNowMillis())),j(this,`getNowMillis`,()=>this.epochMillisFromOriginOffset(this._clock.now())),j(this,`millisSinceHRTime`,e=>this.getNowMillis()-Wn(e)),j(this,`millisFromZeroTime`,e=>e),this._clock=e}},B;(function(e){e[e.UNSPECIFIED=0]=`UNSPECIFIED`,e[e.TRACE=1]=`TRACE`,e[e.TRACE2=2]=`TRACE2`,e[e.TRACE3=3]=`TRACE3`,e[e.TRACE4=4]=`TRACE4`,e[e.DEBUG=5]=`DEBUG`,e[e.DEBUG2=6]=`DEBUG2`,e[e.DEBUG3=7]=`DEBUG3`,e[e.DEBUG4=8]=`DEBUG4`,e[e.INFO=9]=`INFO`,e[e.INFO2=10]=`INFO2`,e[e.INFO3=11]=`INFO3`,e[e.INFO4=12]=`INFO4`,e[e.WARN=13]=`WARN`,e[e.WARN2=14]=`WARN2`,e[e.WARN3=15]=`WARN3`,e[e.WARN4=16]=`WARN4`,e[e.ERROR=17]=`ERROR`,e[e.ERROR2=18]=`ERROR2`,e[e.ERROR3=19]=`ERROR3`,e[e.ERROR4=20]=`ERROR4`,e[e.FATAL=21]=`FATAL`,e[e.FATAL2=22]=`FATAL2`,e[e.FATAL3=23]=`FATAL3`,e[e.FATAL4=24]=`FATAL4`})(B||(B={}));var zr=class{emit(e){}enabled(){return!1}};let Br=new zr,Vr=Symbol.for(`io.opentelemetry.js.api.logs`),Hr=globalThis;function Ur(e,t,n){return r=>r===e?t:n}let Wr=new class{getLogger(e,t,n){return new zr}};var Gr=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Br}},Kr=class{getLogger(e,t,n){var r;return(r=this._getDelegateLogger(e,t,n))==null?new Gr(this,e,t,n):r}_getDelegate(){var e;return(e=this._delegate)==null?Wr:e}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){var r;return(r=this._delegate)==null?void 0:r.getLogger(e,t,n)}};let qr=class e{constructor(){this._proxyLoggerProvider=new Kr}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalLoggerProvider(e){return Hr[Vr]?this.getLoggerProvider():(Hr[Vr]=Ur(1,e,Wr),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return(t=(e=Hr[Vr])==null?void 0:e.call(Hr,1))==null?this._proxyLoggerProvider:t}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete Hr[Vr],this._proxyLoggerProvider=new Kr}}.getInstance();function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Jr(Object(n),!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Yr=class{constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,j(this,`_config`,{}),j(this,`_diag`,void 0),j(this,`_tracer`,void 0),j(this,`_meter`,void 0),j(this,`_logger`,void 0),this.setConfig(n),this._diag=O.createComponentLogger({namespace:e}),this._tracer=A.getTracer(e,t),this._meter=Qe.getMeter(e,t),this._logger=qr.getLogger(e,t),this._updateMetricInstruments()}get tracer(){return this._tracer}get meter(){return this._meter}get logger(){return this._logger}getModuleDefinitions(){var e;let t=(e=this.init())==null?[]:e;return Array.isArray(t)?t:[t]}getConfig(){return this._config}setConfig(e){this._config=V({enabled:!0},e)}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}_updateMetricInstruments(){}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}},H=class extends Yr{constructor({instrumentationName:e,instrumentationVersion:t,config:n,diag:r,perf:i,limitManager:a}){super(e,t,n),j(this,`_userSessionManager`,void 0),j(this,`_logManager`,void 0),j(this,`_limitManager`,void 0),j(this,`_perf`,void 0),r&&(this._diag=r),this._perf=i==null?new Rr:i,this._userSessionManager=jt.getUserSessionManager(),this._logManager=vt.getLogManager(),this._limitManager=a}get limitManager(){return this._limitManager}get userSessionManager(){return this._userSessionManager}get logManager(){return this._logManager}get perf(){return this._perf}init(){}setLimitManager(e){this._limitManager=e}setLogManager(e){this._logManager=e}setUserSessionManager(e){this._userSessionManager=e}};let Xr=/\([^()]+\)/g;var Zr=class extends H{constructor({diag:e,shouldCleanupPathOptionsFromRouteName:t=!0}){super({config:{},diag:e,instrumentationName:`NavigationInstrumentation`,instrumentationVersion:`1.0.0`}),j(this,`_shouldCleanupPathOptionsFromRouteName`,!0),j(this,`_currentRouteSpan`,null),j(this,`_instrumentationType`,`manual`),j(this,`_removeSessionStartedFn`,null),j(this,`_removeSessionEndedFn`,null),j(this,`setInstrumentationType`,e=>{this._instrumentationType=e}),j(this,`setCurrentRoute`,e=>{if(!this._config.enabled)return;let t=M.getCurrentRoute();e.url!==(t==null?void 0:t.url)&&(M.setCurrentRoute(e),this._endRouteSpan(t),this._startRouteSpan(e))}),j(this,`_setupSessionListeners`,()=>{this._removeSessionStartedFn||(this._removeSessionStartedFn=this.userSessionManager.addSessionPartStartedListener(()=>{let e=M.getCurrentRoute();e&&!this._currentRouteSpan&&(this._diag.debug(`Session started, starting route span.`),this._startRouteSpan(e))})),this._removeSessionEndedFn||(this._removeSessionEndedFn=this.userSessionManager.addSessionPartEndedListener(()=>{this._currentRouteSpan&&(this._diag.debug(`Session ended, ending route span.`),this._endRouteSpan(M.getCurrentRoute()))}))}),j(this,`_cleanUpSessionListeners`,()=>{this._removeSessionStartedFn&&(this._removeSessionStartedFn(),this._removeSessionStartedFn=null),this._removeSessionEndedFn&&(this._removeSessionEndedFn(),this._removeSessionEndedFn=null)}),j(this,`_startRouteSpan`,e=>{this._diag.debug(`Starting route span for url: ${e.url}`),this._setupSessionListeners();let t=this._shouldCleanupPathOptionsFromRouteName?e.path.replace(Xr,``):e.path;return this._currentRouteSpan=this.tracer.startSpan(t,{attributes:{[N]:`ux.surface`,[Qt]:t,[$t]:M.getCurrentPageId()||void 0}}),this._currentRouteSpan.setAttribute(Yt,this._instrumentationType),this._currentRouteSpan}),j(this,`_endRouteSpan`,e=>{this._currentRouteSpan&&(e&&this._diag.debug(`Ending route span for url: ${e.url}`),this._currentRouteSpan.end(),this._currentRouteSpan=null)}),j(this,`enable`,()=>{this.setConfig({enabled:!0}),this._diag.debug(`NavigationInstrumentation enabled, listening for navigation events.`)}),j(this,`disable`,()=>{this._cleanUpSessionListeners(),this.setConfig({enabled:!1}),this._diag.debug(`NavigationInstrumentation disabled, stopped listening for navigation events.`)}),this._shouldCleanupPathOptionsFromRouteName=t,this._config.enabled&&this.enable()}};let Qr,$r=(e={})=>(Qr||(Qr=new Zr(e)),Qr);function ei(e){if(e.length>5e6){let t=e.matchAll(/data:([\w/\-.]+);(\w+),([^)"]*)/gim);for(let n of t)e=n[1].toLocaleLowerCase().slice(0,6)===`image/`?e.replace(n[0],`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==`):e.replace(n[0],``)}return e}var ti=class{constructor(e,t={}){var n,r;this.rrweb=e,this.options=t,j(this,`bucketSize`,100),j(this,`refillRate`,10),j(this,`mutationBuckets`,{}),j(this,`loggedTracker`,{}),j(this,`lastRefillMs`,0),j(this,`maybeRefillBuckets`,(e=Date.now())=>{e-this.lastRefillMs<1e3||(this.lastRefillMs=e,this.refillBuckets())}),j(this,`refillBuckets`,()=>{Object.keys(this.mutationBuckets).forEach(e=>{this.mutationBuckets[e]=this.mutationBuckets[e]+this.refillRate,this.mutationBuckets[e]>=this.bucketSize&&delete this.mutationBuckets[e]})}),j(this,`getNodeOrRelevantParent`,e=>{let t=this.rrweb.mirror.getNode(e);if((t==null?void 0:t.nodeName)!==`svg`&&t instanceof Element){let e=t.closest(`svg`);if(e)return[this.rrweb.mirror.getId(e),e]}return[e,t]}),j(this,`numberOfChanges`,e=>{var t,n,r,i,a,o,s,c;return((t=(n=e.removes)==null?void 0:n.length)==null?0:t)+((r=(i=e.attributes)==null?void 0:i.length)==null?0:r)+((a=(o=e.texts)==null?void 0:o.length)==null?0:a)+((s=(c=e.adds)==null?void 0:c.length)==null?0:s)}),j(this,`throttleMutations`,e=>{if(this.maybeRefillBuckets(),e.type!==3||typeof e.data!=`object`||e.data===null||!(`source`in e.data)||e.data.source!==0)return e;let t=e.data,n=this.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(e=>{var t;let[n,r]=this.getNodeOrRelevantParent(e.id);if(this.mutationBuckets[n]===0)return!1;if(this.mutationBuckets[n]=(t=this.mutationBuckets[n])==null?this.bucketSize:t,this.mutationBuckets[n]=Math.max(this.mutationBuckets[n]-1,0),this.mutationBuckets[n]===0&&!this.loggedTracker[n]){var i,a;this.loggedTracker[n]=!0,(i=(a=this.options).onBlockedNode)==null||i.call(a,n,r)}return e}));let r=this.numberOfChanges(t);if(!(r===0&&n!==r))return e}),this.refillRate=(n=this.options.refillRate)==null?this.refillRate:n,this.bucketSize=(r=this.options.bucketSize)==null?this.bucketSize:r}destroy(){}};function ni(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function U(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){ni(a,r,i,o,s,`next`,e)}function s(e){ni(a,r,i,o,s,`throw`,e)}o(void 0)})}}let ri;function ii(e){return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=e,r.async=!0,r.onload=()=>t(),r.onerror=n,document.head.appendChild(r)})}function ai(){return oi.apply(this,arguments)}function oi(){return oi=U(function*(){if(typeof window>`u`)throw Error(`no browser`);if(window.rrweb)return window.rrweb;if(yield ii(`https://unpkg.com/rrweb@2.0.0-alpha.20/dist/rrweb.umd.cjs`),!window.rrweb)throw Error(`no rrweb`);return window.rrweb}),oi.apply(this,arguments)}function si(){return ri===void 0&&(ri=ai()),ri}function ci(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function li(e,t){if(e==null)return{};var n,r,i=ci(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let ui=[`debug`];var di=class extends H{constructor({diag:e,perf:t,flushIntervalMs:n=3e3,maxBufferSize:r=50,recordUserSessions:i=!0,rrwebOptions:a}={}){var o;super({config:{},diag:e,instrumentationName:`ReplayInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),j(this,`_flushIntervalMs`,void 0),j(this,`_maxBufferSize`,void 0),j(this,`_recordUserSessions`,void 0),j(this,`_rrwebUserOptions`,void 0),j(this,`_debug`,void 0),j(this,`_eventBuffer`,[]),j(this,`_flushIntervalId`,void 0),j(this,`_removeSessionEndListener`,void 0),j(this,`_removeSessionStartedListener`,void 0),j(this,`_stopRecording`,void 0),j(this,`_rrwebModule`,void 0),j(this,`_mutationRateLimiter`,void 0),j(this,`_lastKnownSession`,``),j(this,`_sessionStartTime`,0),j(this,`_paused`,!1),j(this,`_enableRequested`,!1),j(this,`_startInProgress`,!1),j(this,`_queuedFullSnapshotTimeout`,void 0),j(this,`_destroyed`,!1),j(this,`_onEvent`,e=>{var t;if(this._paused)return;let n=(t=this.userSessionManager.getUserSessionId())==null?``:t;if(n!==this._lastKnownSession){var r;if(typeof document<`u`&&document.hidden)return;this._lastKnownSession=n,this._sessionStartTime=Date.now(),(r=this._rrwebModule)==null||r.record.takeFullSnapshot()}if(e.timestamp>this._sessionStartTime+1446e4)return;let i=this._mutationRateLimiter?this._mutationRateLimiter.throttleMutations(e):e;i&&(this._diag.debug(`event received`,i.type),this._eventBuffer.push(i),this._eventBuffer.length>=this._maxBufferSize&&this._flush())}),this._flushIntervalMs=n,this._maxBufferSize=r,this._recordUserSessions=i,this._debug=(o=a==null?void 0:a.debug)==null?!1:o,this._rrwebUserOptions=a,this._config.enabled||this._diag.debug(`disabled, not starting`)}setUserSessionManager(e){super.setUserSessionManager(e),this._registerSessionEndListener()}isRecording(){return!!this._stopRecording&&!this._paused}enable(e){if(!this._recordUserSessions&&!(e!=null&&e.force)){this._diag.debug(`recordUserSessions disabled, waiting for manual enable`);return}this._enableRequested=!0,this._paused=!1,this._tryStartRecording()}pause(){this._stopRecording&&(this._enableRequested=!1,this._paused=!0,clearTimeout(this._flushIntervalId),this._flushIntervalId=void 0)}resume(){if(!this._stopRecording){this.enable();return}let e=this._paused;if(this._enableRequested=!0,this._paused=!1,e){var t;this._scheduleFlush(),(t=this._rrwebModule)==null||t.record.takeFullSnapshot()}}_scheduleFlush(){this._destroyed||this._flushIntervalId||this._paused||!this._stopRecording||(this._flushIntervalId=setTimeout(()=>{this._flushIntervalId=void 0,!(this._destroyed||this._paused||!this._stopRecording)&&(this._flush(),this._scheduleFlush())},this._flushIntervalMs))}disable(){var e,t,n;this._destroyed=!0,this._enableRequested=!1,this._paused=!1,clearTimeout(this._flushIntervalId),this._flushIntervalId=void 0,(e=this._removeSessionEndListener)==null||e.call(this),this._removeSessionEndListener=void 0,(t=this._removeSessionStartedListener)==null||t.call(this),this._removeSessionStartedListener=void 0,clearTimeout(this._queuedFullSnapshotTimeout),this._queuedFullSnapshotTimeout=void 0,this._stopRecording&&(this._diag.debug(`stopping recording`),this._stopRecording(),this._stopRecording=void 0,this._flush()),(n=this._mutationRateLimiter)==null||n.destroy(),this._mutationRateLimiter=void 0}_registerSessionEndListener(){var e;this._stopRecording&&((e=this._removeSessionEndListener)==null||e.call(this),this._removeSessionEndListener=this.userSessionManager.addSessionPartEndedListener(()=>{try{this._flush()}catch(e){this._diag.error(`error flushing on session end`,e)}}))}_tryStartRecording(){var e=this;return U(function*(){if(!(!e._enableRequested||e._stopRecording||e._startInProgress)){if(typeof window>`u`){e._diag.warn(`session replay cannot run in non-browser environments`);return}if(e.userSessionManager.getUserSessionId()===null){e._removeSessionStartedListener||(e._removeSessionStartedListener=e.userSessionManager.addSessionPartStartedListener(()=>{var t;(t=e._removeSessionStartedListener)==null||t.call(e),e._removeSessionStartedListener=void 0,e._tryStartRecording()}));return}e._startInProgress=!0;try{var t,n,r;if(e._rrwebModule=yield si(),!e._enableRequested||e._stopRecording)return;e._lastKnownSession=(t=e.userSessionManager.getUserSessionId())==null?``:t,e._sessionStartTime=Date.now();let{record:i}=e._rrwebModule,a=(n=e._rrwebUserOptions)==null?{}:n,{debug:o}=a,s=li(a,ui);e._mutationRateLimiter=(r=e._mutationRateLimiter)==null?new ti(i,{onBlockedNode:(t,n)=>{let r=`MXL Session Replay: Rate limiting recording mutations on node ${t}. This can be due to excessive animations.`;e._debug&&console.warn(r,n),clearTimeout(e._queuedFullSnapshotTimeout),e._queuedFullSnapshotTimeout=setTimeout(()=>{i.takeFullSnapshot()},1e3)}}):r;let c=i(V(V({maskAllInputs:!0,maskTextSelector:`*`},s),{},{emit:e._onEvent}));if(!c){e._diag.warn(`record() returned undefined, did not start`);return}e._stopRecording=c,e._scheduleFlush(),e._registerSessionEndListener(),e._diag.debug(`recording started`)}catch(t){e._diag.error(`failed to start recording`,t)}finally{e._startInProgress=!1}}})()}_flush(){if(this._eventBuffer.length===0||this._paused)return;this._diag.debug(`flushing`,this._eventBuffer.length,`events`);let e=this._eventBuffer;this._eventBuffer=[];try{this._emitEventBatches(e)}catch(e){this._diag.error(`failed to save events`,e)}}_emitEventBatches(e){let t=0;for(;t<e.length;){let n=e.length;for(;n>t;){let r=e.slice(t,n),i=ei(JSON.stringify(r));if(i.length<=5e6){this._emitBatch(r,i),t=n;break}n--}if(n===t){let n=e.slice(t,t+1),r=ei(JSON.stringify(n));this._emitBatch(n,r),t++}}}_emitBatch(e,t){this._debug&&console.log(`replay batch`,e.length,t.length),this.logger.emit({attributes:{[N]:`ux.replay`,"replay.events":t,"replay.count":e.length},eventName:`replay`,severityNumber:B.INFO})}};function fi(e,t,n,r){for(let i=0,a=e.length;i<a;i++){let a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function pi(e){e.forEach(e=>e.disable())}function mi(e){var t,n;let r=e.tracerProvider||A.getTracerProvider(),i=e.meterProvider||Qe.getMeterProvider(),a=e.loggerProvider||qr.getLoggerProvider(),o=(t=(n=e.instrumentations)==null?void 0:n.flat())==null?[]:t;return fi(o,r,i,a),()=>{pi(o)}}let W=console.error.bind(console);function hi(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}let gi=(e,t,n)=>{if(!e||!e[t]){W(`no original function `+String(t)+` to wrap`);return}if(!n){W(`no wrapper function`),W(Error().stack);return}let r=e[t];if(typeof r!=`function`||typeof n!=`function`){W(`original object and wrapper must be functions`);return}let i=n(r,t);return hi(i,`__original`,r),hi(i,`__unwrap`,()=>{e[t]===i&&hi(e,t,r)}),hi(i,`__wrapped`,!0),hi(e,t,i),i},_i=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{W(`must provide one or more modules to patch`),W(Error().stack);return}if(!(t&&Array.isArray(t))){W(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{gi(e,t,n)})})},vi=(e,t)=>{if(!e||!e[t]){W(`no function to unwrap.`),W(Error().stack);return}let n=e[t];if(!n.__unwrap)W(`no original to unwrap to -- has `+String(t)+` already been unwrapped?`);else{n.__unwrap();return}},yi=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{W(`must provide one or more modules to patch`),W(Error().stack);return}if(!(t&&Array.isArray(t))){W(`must provide one or more functions to unwrap on modules`);return}e.forEach(e=>{t.forEach(t=>{vi(e,t)})})};function bi(e){e&&e.logger&&(typeof e.logger==`function`?W=e.logger:W(`new logger isn't a function, not replacing`))}bi.wrap=gi,bi.massWrap=_i,bi.unwrap=vi,bi.massUnwrap=yi;var xi=class{constructor(e,t,n){j(this,`_config`,{}),j(this,`_tracer`,void 0),j(this,`_meter`,void 0),j(this,`_logger`,void 0),j(this,`_diag`,void 0),j(this,`instrumentationName`,void 0),j(this,`instrumentationVersion`,void 0),j(this,`_wrap`,gi),j(this,`_unwrap`,vi),j(this,`_massWrap`,_i),j(this,`_massUnwrap`,yi),this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=O.createComponentLogger({namespace:e}),this._tracer=A.getTracer(e,t),this._meter=Qe.getMeter(e,t),this._logger=qr.getLogger(e,t),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let t=(e=this.init())==null?[]:e;return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=V({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}},Si=class extends xi{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}};function Ci(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}var G;(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(G||(G={}));function wi(e,t){let n=G.OLD,r=t==null?void 0:t.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let t of r==null?[]:r)if(t.toLowerCase()===e+`/dup`){n=G.DUPLICATE;break}else t.toLowerCase()===e&&(n=G.STABLE);return n}let Ti;function Ei(){if(Ti===void 0)try{let e=globalThis.process.argv0;Ti=e?`unknown_service:${e}`:`unknown_service`}catch(e){Ti=`unknown_service`}return Ti}let Di=e=>typeof e==`object`&&!!e&&typeof e.then==`function`;var Oi=class e{static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=Mi(t),r._asyncAttributesPending=t.filter(([e,t])=>Di(t)).length>0,r}constructor(e,t){var n;j(this,`_rawAttributes`,void 0),j(this,`_asyncAttributesPending`,!1),j(this,`_schemaUrl`,void 0),j(this,`_memoizedAttributes`,void 0);let r=(n=e.attributes)==null?{}:n;this._rawAttributes=Object.entries(r).map(([e,t])=>(Di(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=Mi(this._rawAttributes),this._schemaUrl=Ni(t==null?void 0:t.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}waitForAsyncAttributes(){var e=this;return U(function*(){if(e.asyncAttributesPending){for(let t=0;t<e._rawAttributes.length;t++){let[n,r]=e._rawAttributes[t];e._rawAttributes[t]=[n,Di(r)?yield r:r]}e._asyncAttributesPending=!1}})()}get attributes(){if(this.asyncAttributesPending&&O.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(Di(n)){O.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]!=null||(e[t]=n))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=Pi(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}};function ki(e,t){return Oi.FromAttributeList(Object.entries(e),t)}function Ai(){return ki({})}function ji(){return ki({[Nn]:Ei(),[Pn]:Rn[Pn],[Fn]:Rn[Fn],[In]:Rn[In]})}function Mi(e){return e.map(([e,t])=>Di(t)?[e,t.catch(t=>{O.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function Ni(e){if(typeof e==`string`||e===void 0)return e;O.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function Pi(e,t){let n=e==null?void 0:e.schemaUrl,r=t==null?void 0:t.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;O.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}function Fi(e){return Ii(e,new WeakSet)}function Ii(e,t){if(e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e instanceof Uint8Array)return!0;if(typeof e==`object`){if(t.has(e))return!1;if(t.add(e),Array.isArray(e))return e.every(e=>Ii(e,t));let n=e;return n.constructor!==Object&&n.constructor!==void 0?!1:Object.values(n).every(e=>Ii(e,t))}return!1}var Li=class{set severityText(e){this._isLogRecordReadonly()||(this._severityText=e)}get severityText(){return this._severityText}set severityNumber(e){this._isLogRecordReadonly()||(this._severityNumber=e)}get severityNumber(){return this._severityNumber}set body(e){this._isLogRecordReadonly()||(this._body=e)}get body(){return this._body}get eventName(){return this._eventName}set eventName(e){this._isLogRecordReadonly()||(this._eventName=e)}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(e,t,n){j(this,`hrTime`,void 0),j(this,`hrTimeObserved`,void 0),j(this,`spanContext`,void 0),j(this,`resource`,void 0),j(this,`instrumentationScope`,void 0),j(this,`attributes`,{}),j(this,`_severityText`,void 0),j(this,`_severityNumber`,void 0),j(this,`_body`,void 0),j(this,`_eventName`,void 0),j(this,`_attributesCount`,0),j(this,`_droppedAttributesCount`,0),j(this,`_isReadonly`,!1),j(this,`_logRecordLimits`,void 0);let{timestamp:r,observedTimestamp:i,eventName:a,severityNumber:o,severityText:s,body:c,attributes:l={},exception:u,context:d}=n,f=Date.now();if(this.hrTime=Hn(r==null?f:r),this.hrTimeObserved=Hn(i==null?f:i),d){let e=A.getSpanContext(d);e&&T(e)&&(this.spanContext=e)}this.severityNumber=o,this.severityText=s,this.body=c,this.resource=e.resource,this.instrumentationScope=t,this._logRecordLimits=e.logRecordLimits,this._eventName=a,this.setAttributes(l),u!=null&&this._setException(u)}setAttribute(e,t){if(this._isLogRecordReadonly())return this;if(e.length===0)return O.warn(`Invalid attribute key: ${e}`),this;if(!Fi(t))return O.warn(`Invalid attribute value set for key: ${e}`),this;let n=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n&&this._attributesCount>=this._logRecordLimits.attributeCountLimit?(this._droppedAttributesCount++,this._droppedAttributesCount===1&&O.warn(`Dropping extra attributes.`),this):(this.attributes[e]=this._truncateToSize(t),n&&this._attributesCount++,this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}setBody(e){return this.body=e,this}setEventName(e){return this.eventName=e,this}setSeverityNumber(e){return this.severityNumber=e,this}setSeverityText(e){return this.severityText=e,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(e){let t=this._logRecordLimits.attributeValueLengthLimit;if(t<=0)return O.warn(`Attribute value limit must be positive, got ${t}`),e;if(e==null)return e;if(typeof e==`string`)return this._truncateToLimitUtil(e,t);if(e instanceof Uint8Array)return e;if(Array.isArray(e))return e.map(e=>this._truncateToSize(e));if(typeof e==`object`){let t={};for(let[n,r]of Object.entries(e))t[n]=this._truncateToSize(r);return t}return e}_setException(e){let t=!1;if(typeof e==`string`||typeof e==`number`)Object.hasOwn(this.attributes,`exception.message`)||this.setAttribute(Tn,String(e)),t=!0;else if(e&&typeof e==`object`){let n=e;n.code?(Object.hasOwn(this.attributes,`exception.type`)||this.setAttribute(Dn,n.code.toString()),t=!0):n.name&&(Object.hasOwn(this.attributes,`exception.type`)||this.setAttribute(Dn,n.name),t=!0),n.message&&(Object.hasOwn(this.attributes,`exception.message`)||this.setAttribute(Tn,n.message),t=!0),n.stack&&(Object.hasOwn(this.attributes,`exception.stacktrace`)||this.setAttribute(En,n.stack),t=!0)}t||O.warn(`Failed to record an exception ${e}`)}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_isLogRecordReadonly(){return this._isReadonly&&O.warn(`Can not execute the operation on emitted log record`),this._isReadonly}},Ri=class{constructor(e,t){j(this,`instrumentationScope`,void 0),j(this,`_sharedState`,void 0),j(this,`_loggerConfig`,void 0),this.instrumentationScope=e,this._sharedState=t,this._loggerConfig=this._sharedState.getLoggerConfig(this.instrumentationScope)}emit(e){let t=e.context||D.active();if(!this.enabled(e))return;let n=new Li(this._sharedState,this.instrumentationScope,V({context:t},e));this._sharedState.loggerMetrics.emitLog(),this._sharedState.activeProcessor.onEmit(n,t),n._makeReadonly()}enabled(e){let t=this._loggerConfig;if(t.disabled)return!1;let n=e==null?void 0:e.severityNumber;if(typeof n==`number`&&n!==B.UNSPECIFIED&&n<t.minimumSeverity)return!1;let r=(e==null?void 0:e.context)||D.active();if(t.traceBased){let e=A.getSpanContext(r);if(e&&T(e)&&(e.traceFlags&x.SAMPLED)!==x.SAMPLED)return!1}let i={context:r,instrumentationScope:this.instrumentationScope,severityNumber:e==null?void 0:e.severityNumber,eventName:e==null?void 0:e.eventName};for(let e of this._sharedState.processors)if(!e.enabled||e.enabled(i))return!0;return!1}},zi=class{forceFlush(){return Promise.resolve()}onEmit(e,t){}shutdown(){return Promise.resolve()}enabled(e){return!1}},Bi=class{constructor(e,t){j(this,`processors`,void 0),j(this,`forceFlushTimeoutMillis`,void 0),this.processors=e,this.forceFlushTimeoutMillis=t}forceFlush(){var e=this;return U(function*(){let t=e.forceFlushTimeoutMillis;yield Promise.all(e.processors.map(e=>jr(e.forceFlush(),t)))})()}onEmit(e,t){this.processors.forEach(n=>n.onEmit(e,t))}shutdown(){var e=this;return U(function*(){yield Promise.all(e.processors.map(e=>e.shutdown()))})()}enabled(e){for(let t of this.processors)if(!t.enabled||t.enabled(e))return!0;return!1}};function Vi(e){return`${e.name}@${e.version||``}:${e.schemaUrl||``}`}var Hi=class{constructor(e){j(this,`createdLogs`,void 0),this.createdLogs=e.createCounter(`otel.sdk.log.created`,{unit:`{log_record}`,description:`The number of logs submitted to enabled SDK Loggers.`})}emitLog(){this.createdLogs.add(1)}};let Ui={disabled:!1,minimumSeverity:B.UNSPECIFIED,traceBased:!1},Wi=()=>V({},Ui);var Gi=class{constructor(e,t,n,r,i,a){j(this,`loggers`,new Map),j(this,`activeProcessor`,void 0),j(this,`registeredLogRecordProcessors`,[]),j(this,`resource`,void 0),j(this,`forceFlushTimeoutMillis`,void 0),j(this,`logRecordLimits`,void 0),j(this,`processors`,void 0),j(this,`loggerMetrics`,void 0),j(this,`_loggerConfigurator`,void 0),j(this,`_loggerConfigs`,new Map),this.resource=e,this.forceFlushTimeoutMillis=t,this.logRecordLimits=n,this.processors=r,r.length>0?(this.registeredLogRecordProcessors=r,this.activeProcessor=new Bi(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new zi,this._loggerConfigurator=i==null?Wi:i;let o=a?a.getMeter(`@opentelemetry/sdk-logs`,`0.218.0`):we();this.loggerMetrics=new Hi(o)}getLoggerConfig(e){let t=Vi(e),n=this._loggerConfigs.get(t);return n||(n=this._loggerConfigurator(e),this._loggerConfigs.set(t,n),n)}},Ki=class{constructor(e={}){var t,n,r,i,a,o,s,c;j(this,`_shutdownOnce`,void 0),j(this,`_sharedState`,void 0);let l={resource:(t=e.resource)==null?ji():t,forceFlushTimeoutMillis:(n=e.forceFlushTimeoutMillis)==null?3e4:n,logRecordLimits:{attributeCountLimit:(r=(i=e.logRecordLimits)==null?void 0:i.attributeCountLimit)==null?128:r,attributeValueLengthLimit:(a=(o=e.logRecordLimits)==null?void 0:o.attributeValueLengthLimit)==null?1/0:a},loggerConfigurator:(s=e.loggerConfigurator)==null?Wi:s,processors:(c=e.processors)==null?[]:c,meterProvider:e.meterProvider};this._sharedState=new Gi(l.resource,l.forceFlushTimeoutMillis,l.logRecordLimits,l.processors,l.loggerConfigurator,l.meterProvider),this._shutdownOnce=new Fr(this._shutdown,this)}getLogger(e,t,n){if(this._shutdownOnce.isCalled)return O.warn(`A shutdown LoggerProvider cannot provide a Logger`),Br;e||O.warn(`Logger requested without instrumentation scope name.`);let r=e||`unknown`,i=`${r}@${t||``}:${(n==null?void 0:n.schemaUrl)||``}`;return this._sharedState.loggers.has(i)||this._sharedState.loggers.set(i,new Ri({name:r,version:t,schemaUrl:n==null?void 0:n.schemaUrl},this._sharedState)),this._sharedState.loggers.get(i)}forceFlush(){return this._shutdownOnce.isCalled?(O.warn(`invalid attempt to force flush after LoggerProvider shutdown`),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(O.warn(`shutdown may only be called once per LoggerProvider`),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};function qi(e){return Ji.apply(this,arguments)}function Ji(){return Ji=U(function*(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r.resource.asyncAttributesPending&&r.resource.waitForAsyncAttributes&&t.push(r.resource.waitForAsyncAttributes())}t!=null&&t.length>0&&(yield Promise.all(t))}),Ji.apply(this,arguments)}var Yi=class{constructor(e,t,n){j(this,`_exportCompleted`,void 0),j(this,`_exportScheduledPromise`,void 0),j(this,`_exportScheduledResolve`,void 0),this._exportScheduledPromise=new Promise(e=>{this._exportScheduledResolve=e}),this._exportCompleted=this._executeExport(e,t,n)}get exportCompleted(){return this._exportCompleted}get exportScheduled(){return this._exportScheduledPromise}_executeExport(e,t,n){var r=this;return U(function*(){try{yield qi(t),yield D.with(sn(D.active()),U(function*(){return r._exportWithTimeout(e,t,n)}))}catch(e){P(e),r._exportScheduledResolve()}})()}_exportWithTimeout(e,t,n){var r=this;return U(function*(){return new Promise((i,a)=>{let o=setTimeout(()=>{a(Error(`Timeout`))},n);e.export(t,e=>{if(clearTimeout(o),e.code===z.SUCCESS)i();else{var t;a((t=e.error)==null?Error(`BatchLogRecordProcessor: log record export failed`):t)}}),r._exportScheduledResolve()})})()}},Xi=class{constructor(e,t){var n,r,i,a;j(this,`_maxExportBatchSize`,void 0),j(this,`_maxQueueSize`,void 0),j(this,`_scheduledDelayMillis`,void 0),j(this,`_exportTimeoutMillis`,void 0),j(this,`_exporter`,void 0),j(this,`_currentExport`,null),j(this,`_finishedLogRecords`,[]),j(this,`_timer`,void 0),j(this,`_shutdownOnce`,void 0),j(this,`_flushing`,!1),this._exporter=e,this._maxExportBatchSize=(n=t==null?void 0:t.maxExportBatchSize)==null?512:n,this._maxQueueSize=(r=t==null?void 0:t.maxQueueSize)==null?2048:r,this._scheduledDelayMillis=(i=t==null?void 0:t.scheduledDelayMillis)==null?5e3:i,this._exportTimeoutMillis=(a=t==null?void 0:t.exportTimeoutMillis)==null?3e4:a,this._shutdownOnce=new Fr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(O.warn(`BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize)}onEmit(e){this._shutdownOnce.isCalled||this._addToBuffer(e)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}_addToBuffer(e){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(e),this._maybeStartTimer())}shutdown(){return this._shutdownOnce.call()}_shutdown(){var e=this;return U(function*(){e.onShutdown(),yield e._flushAll(),yield e._exporter.shutdown()})()}_flushAll(){var e=this;return U(function*(){if(e._flushing)return;e._flushing=!0;let t=e._finishedLogRecords;for(e._finishedLogRecords=[],e._clearTimer(),e._currentExport!==null&&(yield e._exporter.forceFlush(),yield e._currentExport.exportCompleted,e._currentExport=null);t.length>0;){let n;t.length<=e._maxExportBatchSize?(n=t,t=[]):n=t.splice(0,e._maxExportBatchSize);let r=new Yi(e._exporter,n,e._exportTimeoutMillis);e._currentExport=r;try{yield r.exportScheduled,yield e._exporter.forceFlush(),yield r.exportCompleted}catch(e){P(e)}finally{e._currentExport=null}}e._flushing=!1,e._maybeStartTimer()})()}_extractBatch(){if(this._finishedLogRecords.length===0)return null;if(this._finishedLogRecords.length<=this._maxExportBatchSize){let e=this._finishedLogRecords;return this._finishedLogRecords=[],e}else return this._finishedLogRecords.splice(0,this._maxExportBatchSize)}_exportOneBatch(){this._clearTimer();let e=this._extractBatch();if(e===null)return;let t=new Yi(this._exporter,e,this._exportTimeoutMillis);this._currentExport=t,t.exportCompleted.then(()=>{this._currentExport=null,this._maybeStartTimer()}).catch(e=>{this._currentExport=null,P(e),this._maybeStartTimer()})}_maybeStartTimer(){if(!this._shutdownOnce.isCalled&&!this._flushing&&this._finishedLogRecords.length!==0&&this._currentExport===null){if(this._finishedLogRecords.length>=this._maxExportBatchSize){this._exportOneBatch();return}this._timer===void 0&&(this._timer=setTimeout(()=>{this._timer=void 0,this._exportOneBatch()},this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},Zi=class extends Xi{constructor(e,t){super(e,t),j(this,`_visibilityChangeListener`,void 0),j(this,`_pageHideListener`,void 0),this._onInit(t)}onShutdown(){typeof document>`u`||(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}_onInit(e){(e==null?void 0:e.disableAutoFlushOnDocumentHide)===!0||typeof document>`u`||(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush()},this._pageHideListener=()=>{this.forceFlush()},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}},Qi=class{constructor(e){var t,n;j(this,`_spanContext`,void 0),j(this,`kind`,void 0),j(this,`parentSpanContext`,void 0),j(this,`attributes`,{}),j(this,`links`,[]),j(this,`events`,[]),j(this,`startTime`,void 0),j(this,`resource`,void 0),j(this,`instrumentationScope`,void 0),j(this,`_droppedAttributesCount`,0),j(this,`_droppedEventsCount`,0),j(this,`_droppedLinksCount`,0),j(this,`_attributesCount`,0),j(this,`name`,void 0),j(this,`status`,{code:E.UNSET}),j(this,`endTime`,[0,0]),j(this,`_ended`,!1),j(this,`_duration`,[-1,-1]),j(this,`_spanProcessor`,void 0),j(this,`_spanLimits`,void 0),j(this,`_attributeValueLengthLimit`,void 0),j(this,`_recordEndMetrics`,void 0),j(this,`_performanceStartTime`,void 0),j(this,`_performanceOffset`,void 0),j(this,`_startTimeProvided`,void 0);let r=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=I.now(),this._performanceOffset=r-(this._performanceStartTime+I.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=(t=this._spanLimits.attributeValueLengthLimit)==null?0:t,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let t of e.links)this.addLink(t);this.startTime=this._getTime((n=e.startTime)==null?r:n),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(t==null||this._isSpanEnded())return this;if(e.length===0)return O.warn(`Invalid attribute key: ${e}`),this;if(!gn(t))return O.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n!==void 0&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(r===0)return O.warn(`No events allowed.`),this._droppedEventsCount++,this;r!==void 0&&this.events.length>=r&&(this._droppedEventsCount===0&&O.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),Kn(t)&&(Kn(n)||(n=t),t=void 0);let i=mn(t),{attributePerEventCountLimit:a}=this._spanLimits,o={},s=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(a!==void 0&&c>=a){s++;continue}o[e]=this._truncateToSize(t),c++}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:s}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(t===0)return this._droppedLinksCount++,this;t!==void 0&&this.links.length>=t&&(this._droppedLinksCount===0&&O.debug(`Dropping extra links.`),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:n}=this._spanLimits,r=mn(e.attributes),i={},a=0,o=0;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];if(n!==void 0&&o>=n){a++;continue}i[e]=this._truncateToSize(t),o++}let s={context:e.context};return o>0&&(s.attributes=i),a>0&&(s.droppedAttributesCount=a),this.links.push(s),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===E.UNSET||this.status.code===E.OK)return this;let t={code:e.code};return e.code===E.ERROR&&(typeof e.message==`string`?t.message=e.message:e.message!=null&&O.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){var t;if(this._isSpanEnded()){O.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(e),this._duration=Un(this.startTime,this.endTime),this._duration[0]<0&&(O.warn(`Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.`,this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&O.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&O.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),(t=this._recordEndMetrics)==null||t.call(this),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=I.now())return Vn(e+this._performanceOffset);if(typeof e==`number`)return L(e);if(e instanceof Date)return L(e.getTime());if(Gn(e))return e;if(this._startTimeProvided)return L(Date.now());let t=I.now()-this._performanceStartTime;return qn(this.startTime,L(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[Tn]=e:e&&(e.code?n[Dn]=e.code.toString():e.name&&(n[Dn]=e.name),e.message&&(n[Tn]=e.message),e.stack&&(n[En]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(`exception`,n,t):O.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);O.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(O.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}},K;(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(K||(K={}));var $i=class{shouldSample(){return{decision:K.NOT_RECORD}}toString(){return`AlwaysOffSampler`}},ea=class{shouldSample(){return{decision:K.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}},ta=class{constructor(e){var t,n,r,i;j(this,`_root`,void 0),j(this,`_remoteParentSampled`,void 0),j(this,`_remoteParentNotSampled`,void 0),j(this,`_localParentSampled`,void 0),j(this,`_localParentNotSampled`,void 0),this._root=e.root,this._root||(P(Error(`ParentBasedSampler must have a root sampler configured`)),this._root=new ea),this._remoteParentSampled=(t=e.remoteParentSampled)==null?new ea:t,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)==null?new $i:n,this._localParentSampled=(r=e.localParentSampled)==null?new ea:r,this._localParentNotSampled=(i=e.localParentNotSampled)==null?new $i:i}shouldSample(e,t,n,r,i,a){let o=A.getSpanContext(e);return!o||!T(o)?this._root.shouldSample(e,t,n,r,i,a):o.isRemote?o.traceFlags&x.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,a):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,a):o.traceFlags&x.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,a):this._localParentNotSampled.shouldSample(e,t,n,r,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}},na=class{constructor(e=0){j(this,`_ratio`,void 0),j(this,`_upperBound`,void 0),this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:Re(t)&&this._accumulate(t)<this._upperBound?K.RECORD_AND_SAMPLED:K.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<32;n+=8){let r=0;for(let t=0;t<8;t++){let i=e.charCodeAt(n+t),a=i<58?i-48:i<71?i-55:i-87;r=r<<4|a}t=(t^r)>>>0}return t}},q;(function(e){e.AlwaysOff=`always_off`,e.AlwaysOn=`always_on`,e.ParentBasedAlwaysOff=`parentbased_always_off`,e.ParentBasedAlwaysOn=`parentbased_always_on`,e.ParentBasedTraceIdRatio=`parentbased_traceidratio`,e.TraceIdRatio=`traceidratio`})(q||(q={}));function ra(){var e,t,n,r,i,a,o,s;return{sampler:ia(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(e=void 0)==null?1/0:e,attributeCountLimit:(t=void 0)==null?128:t},spanLimits:{attributeValueLengthLimit:(n=void 0)==null?1/0:n,attributeCountLimit:(r=void 0)==null?128:r,linkCountLimit:(i=void 0)==null?128:i,eventCountLimit:(a=void 0)==null?128:a,attributePerEventCountLimit:(o=void 0)==null?128:o,attributePerLinkCountLimit:(s=void 0)==null?128:s}}}function ia(){var e;let t=(e=void 0)==null?q.ParentBasedAlwaysOn:e;switch(t){case q.AlwaysOn:return new ea;case q.AlwaysOff:return new $i;case q.ParentBasedAlwaysOn:return new ta({root:new ea});case q.ParentBasedAlwaysOff:return new ta({root:new $i});case q.TraceIdRatio:return new na(aa());case q.ParentBasedTraceIdRatio:return new ta({root:new na(aa())});default:return O.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "${q.ParentBasedAlwaysOn}".`),new ta({root:new ea})}}function aa(){return O.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1.`),1}function oa(e){let t={sampler:ia()},n=ra(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function sa(e){var t,n,r,i,a,o,s,c,l,u,d,f;let p=Object.assign({},e.spanLimits);return p.attributeCountLimit=(t=(n=(r=(i=(a=e.spanLimits)==null?void 0:a.attributeCountLimit)==null?(o=e.generalLimits)==null?void 0:o.attributeCountLimit:i)==null?void 0:r)==null?void 0:n)==null?128:t,p.attributeValueLengthLimit=(s=(c=(l=(u=(d=e.spanLimits)==null?void 0:d.attributeValueLengthLimit)==null?(f=e.generalLimits)==null?void 0:f.attributeValueLengthLimit:u)==null?void 0:l)==null?void 0:c)==null?1/0:s,Object.assign({},e,{spanLimits:p})}var ca=class{constructor(e,t){var n,r,i,a;j(this,`_maxExportBatchSize`,void 0),j(this,`_maxQueueSize`,void 0),j(this,`_scheduledDelayMillis`,void 0),j(this,`_exportTimeoutMillis`,void 0),j(this,`_exporter`,void 0),j(this,`_isExporting`,!1),j(this,`_finishedSpans`,[]),j(this,`_timer`,void 0),j(this,`_shutdownOnce`,void 0),j(this,`_droppedSpansCount`,0),this._exporter=e,this._maxExportBatchSize=typeof(t==null?void 0:t.maxExportBatchSize)==`number`?t.maxExportBatchSize:(n=void 0)==null?512:n,this._maxQueueSize=typeof(t==null?void 0:t.maxQueueSize)==`number`?t.maxQueueSize:(r=void 0)==null?2048:r,this._scheduledDelayMillis=typeof(t==null?void 0:t.scheduledDelayMillis)==`number`?t.scheduledDelayMillis:(i=void 0)==null?5e3:i,this._exportTimeoutMillis=typeof(t==null?void 0:t.exportTimeoutMillis)==`number`?t.exportTimeoutMillis:(a=void 0)==null?3e4:a,this._shutdownOnce=new Fr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(O.warn(`BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&x.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&O.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(O.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);D.with(sn(D.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,r=>{if(clearTimeout(n),r.code===z.SUCCESS)e();else{var i;t((i=r.error)==null?Error(`BatchSpanProcessor: span export failed`):i)}}),a=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(a!=null||(a=[]),a.push(t.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,e=>{P(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,P(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}},la=class extends ca{constructor(e,t){super(e,t),j(this,`_visibilityChangeListener`,void 0),j(this,`_pageHideListener`,void 0),this.onInit(t)}onInit(e){(e==null?void 0:e.disableAutoFlushOnDocumentHide)!==!0&&typeof document<`u`&&(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush().catch(e=>{P(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{P(e)})},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}onShutdown(){typeof document<`u`&&(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}};let ua=new Uint8Array(16),da=new Uint8Array(8),fa=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`));function pa(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function ma(e){let t=``;for(let n=0;n<e.length;n++)t+=fa[e[n]];return t}var ha=class{generateTraceId(){return pa(ua),ma(ua)}generateSpanId(){return pa(da),ma(da)}};let ga=`otel.span.sampling_result`;var _a=class{constructor(e){j(this,`startedSpans`,void 0),j(this,`liveSpans`,void 0),this.startedSpans=e.createCounter(`otel.sdk.span.started`,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(`otel.sdk.span.live`,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=ya(t);if(this.startedSpans.add(1,{"otel.span.parent.origin":va(e),[ga]:n}),t===K.NOT_RECORD)return()=>{};let r={[ga]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}};function va(e){return e?e.isRemote?`remote`:`local`:`none`}function ya(e){switch(e){case K.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case K.RECORD:return`RECORD_ONLY`;case K.NOT_RECORD:return`DROP`}}var ba=class{constructor(e,t,n,r){j(this,`_sampler`,void 0),j(this,`_generalLimits`,void 0),j(this,`_spanLimits`,void 0),j(this,`_idGenerator`,void 0),j(this,`instrumentationScope`,void 0),j(this,`_resource`,void 0),j(this,`_spanProcessor`,void 0),j(this,`_tracerMetrics`,void 0);let i=oa(t);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=t.idGenerator||new ha,this._resource=n,this._spanProcessor=r,this.instrumentationScope=e;let a=i.meterProvider?i.meterProvider.getMeter(`@opentelemetry/sdk-trace`,`2.7.1`):we();this._tracerMetrics=new _a(a)}startSpan(e,t={},n=D.active()){var r,i,a;t.root&&(n=A.deleteSpan(n));let o=A.getSpan(n);if(cn(n))return O.debug(`Instrumentation suppressed, returning Noop Span`),A.wrapSpanContext(S);let s=o==null?void 0:o.spanContext(),c=this._idGenerator.generateSpanId(),l,u,d;!s||!A.isSpanContextValid(s)?u=this._idGenerator.generateTraceId():(u=s.traceId,d=s.traceState,l=s);let f=(r=t.kind)==null?Ye.INTERNAL:r,p=((i=t.links)==null?[]:i).map(e=>({context:e.context,attributes:mn(e.attributes)})),m=mn(t.attributes),h=this._sampler.shouldSample(n,u,e,f,m,p),ee=this._tracerMetrics.startSpan(s,h.decision);d=(a=h.traceState)==null?d:a;let te=h.decision===Je.RECORD_AND_SAMPLED?x.SAMPLED:x.NONE,g={traceId:u,spanId:c,traceFlags:te,traceState:d};if(h.decision===Je.NOT_RECORD)return O.debug(`Recording is off, propagating context in a non-recording span`),A.wrapSpanContext(g);let _=mn(Object.assign(m,h.attributes));return new Qi({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:g,name:e,kind:f,links:p,parentSpanContext:l,attributes:_,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:ee})}startActiveSpan(e,t,n,r){var i;let a,o,s;if(arguments.length<2)return;arguments.length===2?s=t:arguments.length===3?(a=t,s=n):(a=t,o=n,s=r);let c=(i=o)==null?D.active():i,l=this.startSpan(e,a,c),u=A.setSpan(c,l);return D.with(u,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}},xa=class{constructor(e){j(this,`_spanProcessors`,void 0),this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{P(e||Error(`MultiSpanProcessor: forceFlush failed`)),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}},Sa;(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(Sa||(Sa={}));var Ca=class{constructor(e={}){var t,n;j(this,`_config`,void 0),j(this,`_tracers`,new Map),j(this,`_resource`,void 0),j(this,`_activeSpanProcessor`,void 0);let r=xr({},ra(),sa(e));this._resource=(t=r.resource)==null?ji():t,this._config=Object.assign({},r,{resource:this._resource});let i=[];(n=e.spanProcessors)!=null&&n.length&&i.push(...e.spanProcessors),this._activeSpanProcessor=new xa(i)}getTracer(e,t,n){let r=`${e}@${t||``}:${(n==null?void 0:n.schemaUrl)||``}`;return this._tracers.has(r)||this._tracers.set(r,new ba({name:e,version:t,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(r)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=Sa.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==Sa.timeout&&(r=Sa.resolved,n(r))}).catch(e=>{clearTimeout(i),r=Sa.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==Sa.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}},wa=class{constructor(){j(this,`_enabled`,!1),j(this,`_currentContext`,y)}_bindFunction(e=y,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return e===void 0&&(e=this.active()),typeof t==`function`?this._bindFunction(e,t):t}disable(){return this._currentContext=y,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=y,this)}with(e,t,n,...r){let i=this._currentContext;this._currentContext=e||y;try{return t.call(n,...r)}finally{this._currentContext=i}}};function Ta(e){if(e!==null){if(e===void 0){let e=new wa;e.enable(),D.setGlobalContextManager(e);return}e.enable(),D.setGlobalContextManager(e)}}function Ea(e){if(e!==null){if(e===void 0){k.setGlobalPropagator(new Jn({propagators:[new cr,new pn]}));return}k.setGlobalPropagator(e)}}var Da=class extends Ca{constructor(e={}){super(e)}register(e={}){A.setGlobalTracerProvider(this),Ea(e.propagator),Ta(e.contextManager)}},J;(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(J||(J={}));let Oa;function ka(){return Oa||(Oa=document.createElement(`a`)),Oa}function Aa(e,t){return t in e}function Y(e,t,n,r=!0){if(Aa(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function ja(e,t,n=!1,r,i){if(r===void 0&&(r=t[J.START_TIME]!==0),n||(Y(e,J.FETCH_START,t,r),Y(e,J.DOMAIN_LOOKUP_START,t,r),Y(e,J.DOMAIN_LOOKUP_END,t,r),Y(e,J.CONNECT_START,t,r),Y(e,J.SECURE_CONNECTION_START,t,r),Y(e,J.CONNECT_END,t,r),Y(e,J.REQUEST_START,t,r),Y(e,J.RESPONSE_START,t,r),Y(e,J.RESPONSE_END,t,r)),!i){let n=t[J.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(`http.response_content_length`,n);let r=t[J.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(`http.response_content_length_uncompressed`,r)}}function Ma(e){return e.slice().sort((e,t)=>{let n=e[J.FETCH_START],r=t[J.FETCH_START];return n>r?1:n<r?-1:0})}function Na(){return typeof location<`u`?location.origin:void 0}function Pa(e,t,n,r,i=new WeakSet,a){let o=X(e);e=o.toString();let s=Ia(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};let c=Ma(s);if(o.origin!==Na()&&c.length>1){let e=c[0],t=Fa(c,e[J.RESPONSE_END],n),r=e[J.RESPONSE_END];return t[J.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}else return{mainRequest:s[0]}}function Fa(e,t,n){let r=R(n),i=R(Hn(t)),a=e[1],o,s=e.length;for(let t=1;t<s;t++){let n=e[t],s=R(Hn(n[J.FETCH_START])),c=r-R(Hn(n[J.RESPONSE_END]));s>=i&&(!o||c<o)&&(o=c,a=n)}return a}function Ia(e,t,n,r,i,a){let o=R(t),s=R(n),c=r.filter(t=>{let n=R(Hn(t[J.FETCH_START])),r=R(Hn(t[J.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||`xmlhttprequest`)&&t.name===e&&n>=o&&r<=s});return c.length>0&&(c=c.filter(e=>!i.has(e))),c}function X(e){if(typeof URL==`function`)return new URL(e,typeof document<`u`?document.baseURI:typeof location<`u`?location.href:void 0);let t=ka();return t.href=e,t}function La(e,t){let n=t||[];return(typeof n==`string`||n instanceof RegExp)&&(n=[n]),X(e).origin===Na()?!0:n.some(t=>Mr(e,t))}let Ra={compression:`gzip`,concurrencyLimit:5,keepalive:!0,timeoutMillis:30*1e3},za=(e,t)=>({"X-MXL-AID":e,"X-MXL-DID":t}),Ba=(e,t)=>t||`http://mxl-otelcol.service-availability.apps.ocpthikadev01.safaricom.net`;function Va(e,t){let n={attributes:Ua(e.attributes,t),droppedAttributesCount:0},r=e.schemaUrl;return r&&r!==``&&(n.schemaUrl=r),n}function Ha(e){return{name:e.name,version:e.version}}function Ua(e,t){return Object.keys(e).map(n=>Wa(n,e[n],t))}function Wa(e,t,n){return{key:e,value:Ga(t,n)}}function Ga(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]=Ga(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:Ga(e[n[i]],t)};return{kvlistValue:{values:r}}}return{}}function Ka(e,t){return{resourceLogs:Ja(e,t)}}function qa(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 Ja(e,t){let n=qa(e);return Array.from(n,([e,n])=>{let r=Va(e,t);return{resource:r,scopeLogs:Array.from(n,([,e])=>({scope:Ha(e[0].instrumentationScope),logRecords:e.map(e=>Ya(e,t)),schemaUrl:e[0].instrumentationScope.schemaUrl})),schemaUrl:r.schemaUrl}})}function Ya(e,t){var n,r,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:Xa(e.severityNumber),severityText:e.severityText,body:Ga(e.body,t),eventName:e.eventName,attributes:Za(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,flags:(n=e.spanContext)==null?void 0:n.traceFlags,traceId:t.encodeOptionalSpanContext((r=e.spanContext)==null?void 0:r.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)==null?void 0:i.spanId)}}function Xa(e){return e}function Za(e,t){return Object.keys(e).map(n=>Wa(n,e[n],t))}function Qa(e){let t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function $a(e){return Qa(e).toString()}let eo=typeof BigInt<`u`?$a:R;function to(e){return e}let no={encodeHrTime:eo,encodeSpanContext:to,encodeOptionalSpanContext:to,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(``))}},ro={serializeRequest:e=>{let t=Ka(e,no);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 O.warn(`Failed to parse logs export response: ${e.message}. Returning empty response`),{}}}};function io(e,t){let n=e&255|256;return t&&(n|=512),n}function ao(e,t){var n,r,i,a;let o=e.spanContext(),s=e.status,c=(n=e.parentSpanContext)!=null&&n.spanId?t.encodeSpanContext((r=e.parentSpanContext)==null?void 0:r.spanId):void 0;return{traceId:t.encodeSpanContext(o.traceId),spanId:t.encodeSpanContext(o.spanId),parentSpanId:c,traceState:(i=o.traceState)==null?void 0:i.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Ua(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>so(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:s.code,message:s.message},links:e.links.map(e=>oo(e,t)),droppedLinksCount:e.droppedLinksCount,flags:io(o.traceFlags,(a=e.parentSpanContext)==null?void 0:a.isRemote)}}function oo(e,t){var n;return{attributes:e.attributes?Ua(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(n=e.context.traceState)==null?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:io(e.context.traceFlags,e.context.isRemote)}}function so(e,t){return{attributes:e.attributes?Ua(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function co(e,t){return{resourceSpans:uo(e,t)}}function lo(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 uo(e,t){let n=lo(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=>ao(e,t));o.push({scope:Ha(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=Va(e,t),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}let fo={serializeRequest:e=>{let t=co(e,no);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 O.warn(`Failed to parse trace export response: ${e.message}. Returning empty response`),{}}}};var po=class{constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}},mo=class extends Error{constructor(e,t,n){super(e),j(this,`code`,void 0),j(this,`name`,`OTLPExporterError`),j(this,`data`,void 0),this.data=n,this.code=t}},ho=class{constructor(e){j(this,`_concurrencyLimit`,void 0),j(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}awaitAll(){var e=this;return U(function*(){yield Promise.all(e._sendingPromises)})()}};function go(e){return new ho(e.concurrencyLimit)}function _o(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function vo(){return{handleResponse(e){e==null||!_o(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||O.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}var yo=class{constructor(e,t,n,r,i){j(this,`_diagLogger`,void 0),j(this,`_transport`,void 0),j(this,`_serializer`,void 0),j(this,`_responseHandler`,void 0),j(this,`_promiseQueue`,void 0),j(this,`_timeout`,void 0),this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=i,this._diagLogger=O.createComponentLogger({namespace:`OTLPExportDelegate`})}export(e,t){if(this._diagLogger.debug(`items to be sent`,e),this._promiseQueue.hasReachedLimit()){t({code:z.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:z.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:z.SUCCESS});return}else if(e.status===`failure`&&e.error){t({code:z.FAILED,error:e.error});return}else if(e.status===`retryable`){var n;t({code:z.FAILED,error:(n=e.error)==null?new mo(`Export failed with retryable status`):n})}else t({code:z.FAILED,error:new mo(`Export failed with unknown error`)})},e=>t({code:z.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}shutdown(){var e=this;return U(function*(){e._diagLogger.debug(`shutdown started`),yield e.forceFlush(),e._transport.shutdown()})()}};function bo(e,t){return new yo(e.transport,e.serializer,vo(),e.promiseHandler,t.timeout)}function xo(e,t,n){return bo({transport:n,serializer:t,promiseHandler:go(e)},{timeout:e.timeoutMillis})}let So=49152,Co=0,wo=0;var To=class e{constructor(e){this._config=e}static _compressRequest(e){return U(function*(){let t=new CompressionStream(`gzip`),n=t.writable.getWriter();n.write(e),n.close();let r=[],i=t.readable.getReader(),a=!1;for(;!a;){let e=yield i.read();e.value&&r.push(e.value),{done:a}=e}let o=new Uint8Array(r.reduce((e,t)=>e+t.length,0)),s=0;for(let e of r)o.set(e,s),s+=e.length;return o})()}send(e,t){return this._asyncSend(e,t)}shutdown(){}_asyncSend(t,n){var r=this;return U(function*(){let i=t,a=V({"Content-Type":`application/json`},r._config.headers),o,s;if(`timeout`in AbortSignal)o=AbortSignal.timeout(n);else{let e=new AbortController;({signal:o}=e),s=setTimeout(()=>{e.abort(new DOMException(`TimeoutError`,`TimeoutError`))},n)}let c=!1;try{if(r._config.compression===`gzip`){try{i=yield e._compressRequest(t)}catch(e){let t=e instanceof Error?e:Error(String(e));return O.warn(`Fetch transport gzip compression failed: ${t.message}`),{error:t,status:`failure`}}a[`Content-Encoding`]=`gzip`,a[`Content-Length`]=i.length.toString()}let n=Co+i.byteLength>So;if(c=!n&&!(wo>=9),c)Co+=i.byteLength,wo++;else{let e=n?`inflight bytes (${Co} + ${i.byteLength}) would exceed ${So}B budget`:`concurrent count (${wo}) at limit of 9`;O.debug(`Sending without keepalive: ${e}`)}let s=yield fetch(r._config.url,{body:i,headers:a,keepalive:c,method:`POST`,signal:o});if(s.ok)return{status:`success`};let l=Error(`${s.status} Fetch request failed`),u=`Fetch transport received HTTP ${s.status} (keepalive=${c})`;return s.status>=500?(O.debug(u),{error:l,status:`retryable`}):(O.warn(u),{error:l,status:`failure`})}catch(e){let t=e instanceof Error?e:Error(String(e)),n=t instanceof TypeError||t instanceof DOMException&&t.name===`TimeoutError`,r=`Fetch transport failed (keepalive=${c}): ${t.message}`;return n?O.debug(r):O.warn(r),{error:t,status:n?`retryable`:`failure`}}finally{s!==void 0&&clearTimeout(s),c&&(Co-=i.byteLength,wo--)}})()}};let Eo=e=>new To(e),Do=()=>Math.random()*40-20;var Oo=class{constructor(e,t=new Rr){this._transport=e,this._perf=t}send(e,t){var n=this;return U(function*(){let r=n._perf.getNowMillis()+t,i=yield n._transport.send(e,t),a=5,o=1e3;for(;i.status===`retryable`&&a>0;){var s;a--;let t=Math.max(Math.min(o,5e3)+Do(),0);o*=1.5;let c=(s=i.retryInMillis)==null?t:s,l=r-n._perf.getNowMillis();if(c>l)return i;i=yield n._retry(e,l,c)}return i})()}shutdown(){this._transport.shutdown()}_retry(e,t,n){return new Promise((r,i)=>{setTimeout(()=>{this._transport.send(e,t).then(r,i)},n)})}};let ko=e=>{var t;return new Oo(e.transport,(t=e.perf)==null?new Rr:t)},Ao=(e,t)=>xo(e,t,ko({transport:Eo(e)}));var jo=class extends po{constructor(e){super(Ao(e,ro))}};let Mo=(e,t)=>`${Ba(e,t)}/v1/logs`;var No=class extends jo{constructor({appID:e,userID:t,mxlDataURL:n}){super(V(V({},Ra),{},{headers:za(e,t),url:Mo(e,n)}))}},Po=class extends po{constructor(e){super(Ao(V(V({},e),{},{compression:`gzip`}),fo))}};let Fo=(e,t)=>`${Ba(e,t)}/v1/traces`;var Io=class extends Po{constructor({appID:e,userID:t,mxlDataURL:n}){super(V(V({},Ra),{},{headers:za(e,t),url:Fo(e,n)}))}};function Lo(e){return{isRecording:()=>e.isRecording(),setEnabled:t=>{if(t){e.enable({force:!0});return}e.pause()}}}let Ro={maxAllowed:{breadcrumb:100,element_timing:500,error_log:500,exception:500,info_log:100,network_request:1e4,server_timing:500,session_property:100,span:1e3,user_timing_mark:500,user_timing_measure:500,warning_log:200},maxAttributes:{error_log:50,exception:50,info_log:50,warning_log:50},maxLength:{breadcrumb:256,error_log:128,exception:1024,exception_attribute_key:128,exception_attribute_value:256,info_log:128,log_attribute_key:128,log_attribute_value:256,session_property_key:128,session_property_value:256,warning_log:128}},zo=`mxl_user_session_state`,Bo=`mxl_permanent_properties`,Vo=`mxl_last_end_user_session_ts`,Ho=`mxl_tab`,Uo=`mxl_tab_activity`,Wo=720*60,Go=1800,Ko=[`keydown`,`mousedown`,`mousemove`,`scroll`],qo=new Uint8Array(16),Jo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`).toUpperCase()),Yo=()=>{crypto.getRandomValues(qo);let e=``;for(let t=0;t<16;t++)e+=Jo[qo[t]];return e},Xo=`0.0.18`,Zo=`mxl_app_instance_id`,Qo=(e,t)=>{let n=null;try{n=e.getItem(Zo)}catch(e){t.warn(`Failed to retrieve app instance ID from session storage`,e)}if(!n){t.debug(`No existing app instance ID found in session storage, creating a new one`),n=Yo();try{e.setItem(Zo,n)}catch(e){t.warn(`Failed to persist app instance ID to session storage`,e)}}return n},$o=`unknown_service`,es=({serviceName:e})=>ki({[Nn]:e}),ts=({diagLogger:e,appVersion:t,pageSessionStorage:n})=>ki({[Fn]:`mxl-web-sdk`,app_version:t,app_framework:1,sdk_version:Xo,[In]:Xo,sdk_simple_version:1,sdk_platform:`web`,[Pn]:`webjs`,"mxl.app_instance_id":Qo(n,e),[Ln]:window.navigator.userAgent,screen_resolution:`${window.screen.width}x${window.screen.height}`}),ns={networkSpansForwardingThreshold:0,samplingPct:100},rs=`mxl_remote_config`,is=(e,{osVersion:t,appVersion:n,deviceId:r},i)=>`${i||`https://mxl-basket.apps.ocpthikadev01.safaricom.net`}/config?appId=${e}&osVersion=${t}&appVersion=${n}&deviceId=${r}`,as=e=>{let t={samplingPct:e.threshold};return e.network_span_forwarding!==void 0&&(t.networkSpansForwardingThreshold=e.network_span_forwarding.pct_enabled),e.service_name!==void 0&&e.service_name!==``&&(t.serviceName=e.service_name),t};var os=class{constructor({appID:e,appVersion:t,deviceId:n,diag:r=O.createComponentLogger({namespace:`mxl-config-manager`}),storage:i=window.localStorage,defaultConfig:a={},mxlConfigURL:o}={}){j(this,`_remoteConfigURL`,null),j(this,`_diag`,void 0),j(this,`_storage`,void 0),j(this,`_baseConfig`,void 0),j(this,`_sdkConfig`,void 0),j(this,`_etag`,null),j(this,`_remoteSourceServiceName`,void 0),e&&t&&n&&(this._remoteConfigURL=is(e,{appVersion:t,deviceId:n,osVersion:`1`},o)),this._diag=r,this._storage=i;let s=this._getRemoteConfigFromStorage();s&&(this._etag=s.etag,this._captureRemoteServiceName(s.config)),this._baseConfig=V(V({},ns),a),this._sdkConfig=V(V({},this._baseConfig),s?as(s.config):{})}setConfig(e){this._sdkConfig=V(V({},this._sdkConfig),e)}getConfig(){return this._sdkConfig}resolveApplicationServiceName(e){var t,n;return((t=this._remoteSourceServiceName)==null?void 0:t.trim())||(e==null?void 0:e.trim())||((n=this._baseConfig.serviceName)==null?void 0:n.trim())||$o}_captureRemoteServiceName(e){if(e.service_name===void 0)return;let t=e.service_name.trim();this._remoteSourceServiceName=t.length>0?t:void 0}refreshRemoteConfig(){var e=this;return U(function*(){if(e._remoteConfigURL)try{let t=yield e._fetchRemoteConfig(e._remoteConfigURL);if(!t){e._diag.debug(`No changes in remote config, skipping update`);return}let[n,r]=t;e._captureRemoteServiceName(n),e._storage.setItem(rs,JSON.stringify({config:n,etag:r})),e._sdkConfig=V(V({},e._baseConfig),as(n)),e._etag=r}catch(t){e._diag.warn(`Failed to refresh remote config: ${t instanceof Error?t.message:String(t)}`)}})()}_getRemoteConfigFromStorage(){try{let e=this._storage.getItem(rs);return e?JSON.parse(e):null}catch(e){return this._diag.warn(`Failed to parse remote config from storage: ${e instanceof Error?e.message:String(e)}`),null}}_fetchRemoteConfig(e){var t=this;return U(function*(){let n=yield fetch(e,{headers:t._etag?{"If-None-Match":t._etag}:{}}),r=n.headers.get(`etag`);return n.status===304?null:n.ok?[yield n.json(),r]:(t._diag.warn(`Failed to fetch remote config from ${e}: ${n.statusText}`),null)})()}};let ss={error:`error_log`,info:`info_log`,warning:`warning_log`};var cs=class{constructor({diag:e,maxAllowed:t,maxLength:n,maxAttributes:r}){j(this,`_diag`,void 0),j(this,`_diagnosticCounts`,{}),j(this,`_currentCount`,{breadcrumb:0,element_timing:0,error_log:0,exception:0,info_log:0,network_request:0,server_timing:0,session_property:0,span:0,user_timing_mark:0,user_timing_measure:0,warning_log:0}),j(this,`_maxAllowed`,void 0),j(this,`_maxLength`,void 0),j(this,`_maxAttributes`,void 0),this._diag=e==null?O.createComponentLogger({namespace:`MXLLimitManager`}):e,this._maxAllowed=t,this._maxLength=n,this._maxAttributes=r}_dropIfMaxReached(e){return this._currentCount[e]>=this._maxAllowed[e]?(this._diag.warn(`disallowing ${e} because the maximum number of ${this._maxAllowed[e].toString()} has already been reached for this session`),this._incrDiagnosticCount(e,`drop`),!0):(this._currentCount[e]=(this._currentCount[e]||0)+1,!1)}truncateString(e,t){return t.length>this._maxLength[e]?(this._diag.warn(`truncating ${e} because it is longer than ${this._maxLength[e].toString()} characters: "${t}"`),this._incrDiagnosticCount(e,`truncate_string`),t.substring(0,this._maxLength[e])):t}_truncateAttributes(e,t,n,r){let i=Object.keys(t);i.length>this._maxAttributes[e]&&(this._diag.warn(`truncating ${e} attributes because there are more than ${this._maxAttributes[e].toString()} set`),this._incrDiagnosticCount(e,`truncate_attributes`));let a={};for(let s=0;s<Math.min(i.length,this._maxAttributes[e]);s++){var o;let e=this.truncateString(n,i[s]);a[e]=this.truncateString(r,((o=t[i[s]])==null?void 0:o.toString())||``)}return a}limitBreadcrumb(e){return this._dropIfMaxReached(`breadcrumb`)?`dropped`:{name:this.truncateString(`breadcrumb`,e)}}limitException(e,t){return this._dropIfMaxReached(`exception`)?`dropped`:{attributes:this._truncateAttributes(`exception`,t,`exception_attribute_key`,`exception_attribute_value`),message:this.truncateString(`exception`,e)}}limitLog(e,t,n){let r=ss[t];return this._dropIfMaxReached(r)?`dropped`:{attributes:this._truncateAttributes(r,n,`log_attribute_key`,`log_attribute_value`),message:this.truncateString(r,e)}}limitSessionProperty(e,t){return this._dropIfMaxReached(`session_property`)?`dropped`:{key:this.truncateString(`session_property_key`,e),value:this.truncateString(`session_property_value`,t)}}limitElementTimingEntry(){return this._dropIfMaxReached(`element_timing`)}limitServerTimingEntry(){return this._dropIfMaxReached(`server_timing`)}limitUserTimingEntry(e){return this._dropIfMaxReached(e===`mark`?`user_timing_mark`:`user_timing_measure`)}dropReadableSpan(e){let t=e.attributes[`mxl.type`]===`perf.network_request`?`network_request`:`span`;return this._dropIfMaxReached(t)}reset(){this._diagnosticCounts={},this._currentCount={breadcrumb:0,element_timing:0,error_log:0,exception:0,info_log:0,network_request:0,server_timing:0,session_property:0,span:0,user_timing_mark:0,user_timing_measure:0,warning_log:0}}_incrDiagnosticCount(e,t){let n=`mxl.app.applied_limit.${e}.${t}.count`;this._diagnosticCounts[n]=(this._diagnosticCounts[n]||0)+1}getDiagnosticCounts(){return this._diagnosticCounts}};let ls=globalThis,us=(e,t,n)=>{try{let r=e.getItem(t),i=r?parseInt(r,10):0;return Number.isNaN(i)&&(n.warn(`Non-numeric value stored at ${t} (${String(r)}); resetting counter.`),i=0),i++,e.setItem(t,i.toString()),i}catch(e){return n.warn(`Failed to retrieve ${t} from storage: `,e),1}},ds=e=>e.visibilityState===`hidden`?`background`:`foreground`,fs=()=>JSON.stringify(ls._MXLFileBundleIDs||{});var ps=class e{constructor({diag:e,perf:t,userSessionManager:n,limitManager:r,loggerProvider:i,visibilityDoc:a=window.document,storage:o=window.localStorage}){j(this,`_diag`,void 0),j(this,`_perf`,void 0),j(this,`_logger`,void 0),j(this,`_userSessionManager`,void 0),j(this,`_limitManager`,void 0),j(this,`_visibilityDoc`,void 0),j(this,`_storage`,void 0);let s=i==null?qr:i;this._diag=e==null?O.createComponentLogger({namespace:`MXLLogManager`}):e,this._perf=t==null?new Rr:t,this._logger=s.getLogger(`mxl-web-sdk-logs`),this._userSessionManager=n,this._limitManager=r,this._visibilityDoc=a,this._storage=o}_validateAttributes(e){return Object.prototype.toString.call(e)===`[object Object]`?e:(this._diag.warn(`attributes must be a plain object`,e),{})}static _logSeverityToSeverityNumber(e){switch(e){case`info`:return B.INFO;case`warning`:return B.WARN;default:return B.ERROR}}logException(t,{handled:n=!0,attributes:r={},timestamp:i=this._perf.getNowMillis(),handler:a=`manual`}={}){var o;let s=this._validateAttributes(r);n||this._userSessionManager.incrSessionPartCountForKey(`mxl.unhandled_exceptions_count`);let c=(t==null||(o=t.constructor)==null?void 0:o.name)||typeof t,l=``,u=c,d=``,f=``;if(t instanceof Error)l=String(t.message||``).trim(),u=t.name||``,d=t.stack||``,f=t.cause?`present`:``;else if(t&&typeof t==`object`)try{l=JSON.stringify(t)}catch(e){l=String(t).trim()}else l=String(t).trim();let{[Jt]:p}=s,m=li(s,[Jt].map(ft)),h=this._limitManager.limitException(l,m);h!==`dropped`&&this._logger.emit({attributes:V(V(V({},h.attributes),p===void 0?{}:{[Jt]:String(p)}),{},{[N]:`sys.exception`,"mxl.exception_handling":e._exceptionHandlingType(n,a),"mxl.exception_cause":f,[Dn]:c,"exception.name":u,[Tn]:h.message,[En]:d,[Xt]:fs(),[qt]:ds(this._visibilityDoc),"mxl.exception_number":us(this._storage,`mxl_exception_number`,this._diag)}),body:h.message,severityNumber:B.ERROR,severityText:`ERROR`,timestamp:i})}message(e,t,{attributes:n={},includeStacktrace:r=!0,stacktrace:i}={}){if(typeof e!=`string`||!e.trim()){this._diag.warn(`Message must be a non-empty string`);return}if(![`info`,`warning`,`error`].includes(t)){this._diag.warn(`Severity must be info, warning, or error`);return}let a=this._validateAttributes(n);t===`error`&&this._userSessionManager.incrSessionPartCountForKey(`mxl.error_log_count`);let o=``;t!==`info`&&(typeof i==`string`?o=i:r&&(o=Error().stack||``)),this._logMessage({attributes:a,message:e.trim(),severity:t,stack:o,timestamp:this._perf.getNowMillis()})}_logMessage({message:t,severity:n,timestamp:r,attributes:i={},stack:a}){let o=this._limitManager.limitLog(t,n,i);o!==`dropped`&&this._logger.emit({attributes:V(V(V({},o.attributes),{},{[N]:`sys.log`},a?{"mxl.stacktrace.js":a,[Xt]:fs()}:{}),{},{[qt]:ds(this._visibilityDoc)}),body:o.message,severityNumber:e._logSeverityToSeverityNumber(n),severityText:n.toUpperCase(),timestamp:r})}static _exceptionHandlingType(e,t){return e?`handled`:t===`global_exception`?`unhandled_error`:t===`promise_rejection`?`unhandled_rejection`:`unhandled`}},ms=class{constructor({useDocumentTitleAsPageLabel:e=!0,titleDocument:t=window.document}={}){j(this,`_currentRoute`,null),j(this,`_currentPageId`,null),j(this,`_pageLabel`,null),j(this,`_titleDocument`,void 0),j(this,`_useDocumentTitleAsPageLabel`,void 0),j(this,`getCurrentPageId`,()=>this._currentPageId),j(this,`getCurrentRoute`,()=>this._currentRoute),j(this,`setPageLabel`,e=>{this._pageLabel=e}),j(this,`getPageLabel`,()=>this._pageLabel||(!this._useDocumentTitleAsPageLabel||!this._titleDocument?null:this._titleDocument.title)),j(this,`setCurrentRoute`,e=>{(!this._currentRoute||this._currentRoute.url!==e.url)&&(this._currentPageId=Yo()),this._currentRoute=e,e.label?this._pageLabel=e.label:this._pageLabel=null}),j(this,`clearCurrentRoute`,()=>{this._currentRoute=null,this._currentPageId=null,this._pageLabel=null}),this._useDocumentTitleAsPageLabel=e,this._titleDocument=t}};let hs=(e,t)=>!t||t<=0||t>100?!1:t>=gs(e),gs=e=>{if(e.length<6)return 0;let t=e.slice(-6),n=Math.pow(16,6)-1;return parseInt(t,16)/n*100};var _s=class{constructor({dynamicConfigManager:e,deviceId:t,blockNetworkSpanForwarding:n}){j(this,`_dynamicConfigManager`,void 0),j(this,`_deviceId`,void 0),j(this,`_blockNetworkSpanForwarding`,void 0),this._dynamicConfigManager=e,this._deviceId=t,this._blockNetworkSpanForwarding=n}isSDKEnabled(){let e=this._dynamicConfigManager.getConfig();return hs(this._deviceId,e.samplingPct)}isNetworkSpanForwardingEnabled(){if(this._blockNetworkSpanForwarding)return!1;let e=this._dynamicConfigManager.getConfig();return hs(this._deviceId,e.networkSpansForwardingThreshold)}},vs=class{constructor(e){j(this,`_span`,void 0),this._span=e}get attributes(){return this._span.attributes}addEvent(e,t,n){return this._span.addEvent(e,t,n),this}addLink(e){return this._span.addLink(e),this}addLinks(e){return this._span.addLinks(e),this}end(e){this._span.end(e)}isRecording(){return this._span.isRecording()}recordException(e,t){this._span.recordException(e,t)}setAttribute(e,t){return this._span.setAttribute(e,t),this}setAttributes(e){return this._span.setAttributes(e),this}removeAttribute(e){let t=this._span.attributes,{[e]:n}=t,r=li(t,[e].map(ft));return this._span.attributes=r,this}setStatus(e){return this._span.setStatus(e),this}spanContext(){return this._span.spanContext()}updateName(e){return this._span.updateName(e),this}fail(e={code:`failure`}){e.code&&this._span.setAttribute(`mxl.error_code`,e.code.toUpperCase()),this._span.end(e.endTime)}},ys=class{constructor({tracerProvider:e}={}){j(this,`_tracer`,void 0),j(this,`setSpan`,A.setSpan);let t=e==null?A:e;this._tracer=t.getTracer(`mxl-web-sdk-traces`)}startSpan(e,t={},n){t.attributes=t.attributes?t.attributes:{},t.attributes[N]=`perf`;let r=t.parentSpan?A.setSpan(D.active(),t.parentSpan):n;return new vs(this._tracer.startSpan(e,t,r))}getSpan(e){let t=A.getSpan(e);if(t)return new vs(t)}};let bs=`mxl_user`,xs=`mxl_user_id`,Ss=`mxl_external_user_id`,Cs=e=>typeof e[`enduser.pseudo.id`]==`string`&&e[`enduser.pseudo.id`].length===32,ws=e=>typeof e==`string`&&e.length===32;var Ts=class{constructor({diag:e,storage:t=window.localStorage}={}){j(this,`_diag`,void 0),j(this,`_storage`,void 0),j(this,`_mxlUserId`,null),this._diag=e==null?O.createComponentLogger({namespace:`MXLUserManager`}):e,this._storage=t,this._migrateOldLocalStorageKey(),this._initialSetup()}getMXLUserId(){return this._mxlUserId||this._generateNewMXLUserId()}setMXLUserId(e){this._mxlUserId=e;try{this._storage.setItem(xs,e)}catch(e){this._diag.warn(`Failed to persist user object for storage, keeping it in-memory only`,e)}}clearMXLUserId(){this._mxlUserId=null;try{this._storage.removeItem(xs)}catch(e){this._diag.warn(`Failed to remove mxl user in storage`,e)}}_migrateOldLocalStorageKey(){try{let e=this._storage.getItem(bs);if(e){let t=JSON.parse(e);Cs(t)?(this._diag.debug(`Migrating old user data from storage`),this._storage.setItem(xs,t[`enduser.pseudo.id`]),this._storage.removeItem(bs)):(this._diag.warn(`Invalid user data found in storage, clearing old user data`),this._storage.removeItem(bs))}}catch(e){this._diag.warn(`Failed to get old user data from storage`,e)}}_initialSetup(){try{let e=this._storage.getItem(xs);e?ws(e)?this._mxlUserId=e:(this._diag.warn(`Invalid mxl user id, generating a new one`),this.clearMXLUserId()):this._diag.debug(`No existing user found in storage, creating a new one`)}catch(e){this._diag.warn(`Failed to get mxl user id from storage, defaulting to a new one`,e)}this._mxlUserId||(this._mxlUserId=this._generateNewMXLUserId())}_generateNewMXLUserId(){let e=Yo();return this.setMXLUserId(e),e}getUserId(){try{return this._storage.getItem(Ss)}catch(e){return this._diag.warn(`Failed to retrieve user id from storage`,e),null}}setUserId(e){try{this._storage.setItem(Ss,e)}catch(e){this._diag.warn(`Failed to store user id`,e)}}clearUserId(){try{this._storage.removeItem(Ss)}catch(e){this._diag.warn(`Failed to clear user id`,e)}}};let Es=`http.response.body.size`,Ds=`session.id`,Os=`session.previous_id`,ks=`user.id`,As=({diag:e,value:t,defaultValue:n,min:r,max:i})=>t===void 0?n:Number.isFinite(t)?t<r||t>i?(e==null||e.warn(`value (${t.toString()}) is outside the allowed range [${r.toString()}, ${i.toString()}]; falling back to default (${n.toString()}).`),n):t:(e==null||e.warn(`value is not a finite number; falling back to default (${n.toString()}).`),n),js=(e,t=1e3)=>{let n=!1,r=null,i=((...i)=>{n||(e(...i),n=!0,r=setTimeout(()=>{n=!1,r=null},t))});return i.cancel=()=>{r!==null&&(clearTimeout(r),r=null),n=!1},i},Ms=e=>e.visibilityState===`visible`&&e.hasFocus(),Ns=({target:e,visibilityDoc:t,activityEvents:n,onActivity:r,onVisibilityChange:i,onFocus:a,onBlur:o,onPageShow:s,onPageHide:c})=>{var l;for(let t of n)e.addEventListener(t,r);(l=t.addEventListener)==null||l.call(t,`visibilitychange`,i),e.addEventListener(`focus`,a),e.addEventListener(`blur`,o),e.addEventListener(`pageshow`,s),e.addEventListener(`pagehide`,c)},Ps=({target:e,visibilityDoc:t,activityEvents:n,onActivity:r,onVisibilityChange:i,onFocus:a,onBlur:o,onPageShow:s,onPageHide:c})=>{var l;for(let t of n)e.removeEventListener(t,r);(l=t.removeEventListener)==null||l.call(t,`visibilitychange`,i),e.removeEventListener(`focus`,a),e.removeEventListener(`blur`,o),e.removeEventListener(`pageshow`,s),e.removeEventListener(`pagehide`,c)},Fs=(e,t)=>t<e.userSessionStartTs||t>=e.userSessionMaxEndTs||e.inactivityDeadlineTs!==null&&t>=e.inactivityDeadlineTs,Is=({now:e,previousUserSessionId:t,maxUserSessionDurationSeconds:n,inactivityTimeoutSeconds:r,userSessionNumber:i})=>({inactivityDeadlineTs:null,inactivityTimeoutSeconds:r,maxUserSessionDurationSeconds:n,previousUserSessionId:t,schemaVersion:1,userSessionId:Yo(),userSessionMaxEndTs:e+n*1e3,userSessionNumber:i,userSessionPartIndex:0,userSessionProperties:{},userSessionStartTs:e}),Ls=e=>typeof e==`object`&&!!e&&e.schemaVersion===1,Rs=(e,t)=>{let n=e.getItem(zo);if(!n)return null;try{let e=JSON.parse(n);if(!Ls(e))throw Error(`stored user session state failed structural validation`);return e}catch(n){return t.error(`User session state in storage is corrupt; discarding it`,n),e.removeItem(zo),null}},zs=(e,t)=>{let n=e.getItem(Bo);if(!n)return{};try{let e=JSON.parse(n);if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`permanent properties blob is not a plain object`);let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t}catch(n){return t.error(`Permanent properties in storage are corrupt; discarding`,n),e.removeItem(Bo),{}}},Bs=(e,t)=>Object.keys(t).length===0?e.removeItem(Bo):e.setItem(Bo,JSON.stringify(t)),Vs=e=>{if(!e)return{isSameOrigin:!1,isValid:!1};try{let t=new URL(e),n=window.location.origin;return{isSameOrigin:t.origin===n,isValid:!0,scrubbedUrl:t.origin+t.pathname}}catch(e){return{isSameOrigin:!1,isValid:!1}}},Hs=(e,t,n)=>{try{let e=t.getEntriesByType(`navigation`);if(e.length>0&&e[0]){let t=e[0];if(t.type===`reload`)return`reload`;if(t.type===`back_forward`)return`back_forward`}}catch(e){n.warn(`Failed to get navigation type`,e)}return e.isValid?e.isSameOrigin?`same_origin`:`external`:`direct`},Us=(e,t)=>{try{let t=e.getItem(Uo);return t?JSON.parse(t):null}catch(e){return t.warn(`Failed to retrieve tab activity`,e),null}},Ws=(e,t,n,r)=>{let i=Qo(t,r),a,o;if(e===`same_origin`){let e=Us(n,r);e&&Date.now()-e.lastActivityMs<=1e4&&(a=e.tabId,{experienceId:o}=e)}return o===void 0&&(o=Yo()),{navigationSource:e,tab:{experienceId:o,sourceTabId:a,tabId:i}}},Gs=({sessionStorage:e,localStorage:t,referrer:n,navigationPerformance:r,diag:i})=>{let a=Vs(n),o=Hs(a,r,i);try{let t=e.getItem(Ho);if(t)return{navigationSource:o,referrerScrubbedUrl:a.isValid&&a.scrubbedUrl?a.scrubbedUrl:void 0,tab:JSON.parse(t)}}catch(e){i.warn(`Failed to retrieve tab data`,e)}let s=Ws(o,e,t,i);try{e.setItem(Ho,JSON.stringify(s.tab))}catch(e){i.warn(`Failed to store tab data`,e)}return{navigationSource:s.navigationSource,referrerScrubbedUrl:a.isValid&&a.scrubbedUrl?a.scrubbedUrl:void 0,tab:s.tab}},Ks=(e,t,n)=>{let r={experienceId:t.experienceId,lastActivityMs:Date.now(),tabId:t.tabId};try{e.setItem(Uo,JSON.stringify(r))}catch(e){n.warn(`Failed to save tab activity`,e)}},qs=(e,t,n)=>{let r=r=>{var i;if(r.button===1||r.ctrlKey||r.metaKey||r.shiftKey){Ks(t,e,n);return}(i=r.target)!=null&&i.closest(`a[target="_blank"], form[target="_blank"], a[rel*="noopener"], a[rel*="noreferrer"]`)&&Ks(t,e,n)},i={capture:!0,passive:!0};document.addEventListener(`auxclick`,r,i),document.addEventListener(`click`,r,i)};var Js=class e{static shutdownAllTestInstances(){for(let t of e._testInstances)t._shutdown();e._testInstances.clear()}constructor({config:t,diag:n,perf:r,visibilityDoc:i,storage:a,limitManager:o,target:s=window,activityThrottleMs:c=3e4,activityEvents:l=Ko,tabStorage:u,referrer:d=typeof document<`u`?document.referrer:``,navigationPerformance:f=typeof window<`u`?window.performance:{getEntriesByType:()=>[]}}){j(this,`_state`,null),j(this,`_previousUserSessionId`,null),j(this,`_maxUserSessionDurationSeconds`,void 0),j(this,`_inactivityTimeoutSeconds`,void 0),j(this,`_maxDurationTimeout`,null),j(this,`_isShutdown`,!1),j(this,`_permanentProperties`,{}),j(this,`_hasStoredState`,!1),j(this,`_activeSessionPartId`,null),j(this,`_currentSessionPartNumber`,null),j(this,`_sessionPartSpan`,null),j(this,`_activeSessionPartCounts`,null),j(this,`_coldStart`,!0),j(this,`_nextSessionPartCounts`,{}),j(this,`_sdkStartupDuration`,0),j(this,`_sessionPartStartedListeners`,[]),j(this,`_sessionPartEndedListeners`,[]),j(this,`_tracer`,void 0),j(this,`_diag`,void 0),j(this,`_perf`,void 0),j(this,`_storage`,void 0),j(this,`_visibilityDoc`,void 0),j(this,`_limitManager`,void 0),j(this,`_target`,void 0),j(this,`_activityEvents`,void 0),j(this,`_onActivityThrottled`,void 0),j(this,`_sessionPartInactivityTimer`,null),j(this,`_tab`,void 0),j(this,`_navigationSource`,void 0),j(this,`_referrerScrubbedUrl`,void 0),j(this,`_onActivity`,()=>{try{if(!Ms(this._visibilityDoc))return;if(this._activeSessionPartId===null){this.startSessionPartInternal(`web_activity`);return}this._startSessionPartInactivityTimer()}catch(e){this._diag.warn(`Error handling activity event`,e)}}),j(this,`_onVisibilityChange`,()=>{this._handleEngagementTransition(`visibilitychange`)}),j(this,`_onFocus`,()=>{this._handleEngagementTransition(`focus`)}),j(this,`_onBlur`,()=>{this._handleEngagementTransition(`blur`)}),j(this,`_onPageShow`,e=>{this._handleEngagementTransition(e.persisted?`pageshow-bfcache`:`pageshow-initial`)}),j(this,`_onPageHide`,e=>{try{if(this._activeSessionPartId===null)return;let t=e.persisted?`web_background`:`web_hard_navigation`;this._diag.debug(`page hiding (persisted=${e.persisted}); ending current part as ${t}`),this.endSessionPartInternal(t)}catch(t){this._diag.error(`Error ending session part on pagehide (persisted=${e.persisted})`,t)}}),j(this,`_onSessionPartInactivity`,()=>{this._sessionPartInactivityTimer=null;try{if(this._activeSessionPartId===null)return;this._diag.debug(`inactivity timer fired; ending current part and user session`),this.endSessionPartInternal(`inactivity`,`inactivity`)}catch(e){this._diag.warn(`Error handling inactivity timer`,e)}}),this._diag=n==null?O.createComponentLogger({namespace:`MXLUserSessionManager`}):n,this._perf=r,this._visibilityDoc=i,this._storage=a,this._limitManager=o,this._permanentProperties=zs(this._storage,this._diag),this._tracer=A.getTracer(`mxl-web-sdk-session-parts`),this._target=s,this._activityEvents=l,this._onActivityThrottled=js(this._onActivity,c);let p=As({defaultValue:Wo,diag:this._diag,max:86400,min:3600,value:t==null?void 0:t.maxUserSessionDurationSeconds}),m=As({defaultValue:Go,diag:this._diag,max:86400,min:30,value:t==null?void 0:t.inactivityTimeoutSeconds});this._maxUserSessionDurationSeconds=p,m<=p?this._inactivityTimeoutSeconds=m:(this._diag.warn(`inactivityTimeoutSeconds (${m.toString()}s) exceeds maxUserSessionDurationSeconds (${p.toString()}s); falling back to default inactivity timeout (1800s).`),this._inactivityTimeoutSeconds=Go);let h=Gs({diag:this._diag,localStorage:a,navigationPerformance:f,referrer:d,sessionStorage:u});this._tab=h.tab,this._navigationSource=h.navigationSource,this._referrerScrubbedUrl=h.referrerScrubbedUrl,qs(this._tab,a,this._diag),e._testInstances.add(this)}setTracerProvider(e){this._tracer=e.getTracer(`mxl-web-sdk-session-parts`),Ns({activityEvents:this._activityEvents,onActivity:this._onActivityThrottled,onBlur:this._onBlur,onFocus:this._onFocus,onPageHide:this._onPageHide,onPageShow:this._onPageShow,onVisibilityChange:this._onVisibilityChange,target:this._target,visibilityDoc:this._visibilityDoc});let{state:t,created:n}=this._loadOrCreateUserSessionState(this._perf.getNowMillis());this._state=t,n&&this._storeState()}recordSDKStartupDuration(e){this._sdkStartupDuration=Math.ceil(e)}getUserSessionId(){var e,t;return(e=(t=this._state)==null?void 0:t.userSessionId)==null?null:e}getPreviousUserSessionId(){var e,t;return(e=(t=this._state)==null?void 0:t.previousUserSessionId)==null?this._previousUserSessionId:e}getUserSessionStartTime(){var e,t;return(e=(t=this._state)==null?void 0:t.userSessionStartTs)==null?null:e}getUserSessionAttributes(){var e,t;if(!this._state)return null;let n=(e=this.getPreviousUserSessionId())==null?``:e;return{[nn]:this._state.userSessionId,[Ds]:this._state.userSessionId,[rn]:n,[Os]:n,"mxl.user_session_number":this._state.userSessionNumber,"mxl.user_session_part_index":this._state.userSessionPartIndex,"mxl.session_part_number":(t=this._currentSessionPartNumber)==null?0:t,"mxl.user_session_start_ts":this._state.userSessionStartTs,"mxl.user_session_max_duration_seconds":this._state.maxUserSessionDurationSeconds,"mxl.user_session_inactivity_timeout_seconds":this._state.inactivityTimeoutSeconds}}endUserSession(){if(!this._state){this._diag.debug(`Trying to end user session, but there is no active session. This is a no-op.`);return}let e=this._perf.getNowMillis(),t=this._storage.getItem(Vo),n=t===null?NaN:Number(t);if(Number.isFinite(n)&&e-n<5e3){this._diag.warn(`endUserSession called within cooldown period, ignoring.`);return}this._rolloverUserSession(`manual`),this._storage.setItem(Vo,String(e))}getSessionPartId(){return this._activeSessionPartId}getSessionPartSpan(){return this._sessionPartSpan}startSessionPartInternal(e){if(this._sessionPartSpan){this._diag.warn(`startSessionPartInternal called while a part is active (reason: ${e}); ignoring`);return}if(ds(this._visibilityDoc)===`background`||!this._visibilityDoc.hasFocus()){this._diag.debug(`skipping session part start (reason: ${e}) because the tab is not engaged`);return}let t=Yo(),n=this._nextSessionPartCounts;this._beginUserSessionForPartStart();let r=V(V({},this.getUserSessionAttributes()),{},{[N]:`ux.session_part`,[qt]:`foreground`,[tn]:t,"mxl.session_part_start_reason":e,"mxl.cold_start":this._coldStart,"mxl.experience_id":this._tab.experienceId,"mxl.tab_id":this._tab.tabId,"mxl.navigation_source":this._navigationSource},n);this._referrerScrubbedUrl&&(r[`mxl.referrer_url`]=this._referrerScrubbedUrl),this._tab.sourceTabId&&(r[`mxl.source_tab_id`]=this._tab.sourceTabId),this._activeSessionPartId=t;let i;try{i=new vs(this._tracer.startSpan(`mxl-session-part`,{attributes:r}))}catch(e){this._activeSessionPartId=null,this._diag.error(`Error starting session part span`,e);return}this._activeSessionPartCounts={},this._nextSessionPartCounts={},this._sessionPartSpan=i,this._coldStart=!1,this._startSessionPartInactivityTimer(),this._fireListeners(this._sessionPartStartedListeners,`started`)}endSessionPartInternal(e,t){if(!this._sessionPartSpan){this._diag.debug(`trying to end a session part, but there is no session part in progress. This is a no-op.`);return}this._clearSessionPartInactivityTimer();let n=e===`user_session_ended`||e===`inactivity`,r=this._perf.getNowMillis(),i=this._sessionPartSpan;try{let r=V(V(V({"mxl.session_part_end_reason":e},this._activeSessionPartCounts),this._limitManager.getDiagnosticCounts()),{},{"mxl.sdk_startup_duration":this._sdkStartupDuration});n&&(r[`mxl.is_final_session_part`]=1,t&&(r[`mxl.user_session_termination_reason`]=t));let a={};for(let[e,t]of Object.entries(this.getSessionPartProperties()))a[`mxl.properties.`+e]=t;try{i.setAttributes(V(V({},a),r))}catch(e){this._diag.warn(`Error setting end attributes on session part span; ending span without them`,e)}}finally{this._fireListeners(this._sessionPartEndedListeners,`ended`);try{i.end(r)}catch(e){this._diag.warn(`Error ending session part span`,e)}this._sessionPartSpan=null,this._activeSessionPartId=null,this._activeSessionPartCounts=null,this._currentSessionPartNumber=null,this._limitManager.reset()}if(n){var a,o;this._previousUserSessionId=(a=(o=this._state)==null?void 0:o.userSessionId)==null?null:a,this._state=null,this._storage.removeItem(zo),this._clearMaxDurationTimer()}else this._continueUserSessionAfterPartEnd(r)}addBreadcrumb(e){if(!this._sessionPartSpan){this._diag.debug(`trying to add breadcrumb, but there is no session part in progress. This is a no-op.`);return}let t=this._limitManager.limitBreadcrumb(e);t!==`dropped`&&this._sessionPartSpan.addEvent(`mxl-breadcrumb`,{message:t.name},this._perf.getNowMillis())}addProperty(e,t,n){let r=this._limitManager.limitSessionProperty(e,t);if(r===`dropped`)return;let i=r.key,a=r.value;if((n==null?void 0:n.lifespan)===`permanent`){let e=V(V({},this._permanentProperties),{},{[i]:a});if(!Bs(this._storage,e)){this._diag.warn(`Storage unavailable; rejecting permanent property write.`);return}this._permanentProperties=e,this._removeFromUserSessionProperties(i);return}let{state:o}=this._loadOrCreateUserSessionState(this._perf.getNowMillis());this._state=V(V({},o),{},{userSessionProperties:V(V({},o.userSessionProperties),{},{[i]:a})}),this._storeState()||(this._state=o,this._diag.warn(`Storage unavailable; rejecting user-session property write.`))}removeProperty(e){let t=this._limitManager.truncateString(`session_property_key`,e);this._removeFromPermanentProperties(t),this._removeFromUserSessionProperties(t)}getSessionPartProperties(){var e;return V(V({},this._permanentProperties),(e=this._state)==null?void 0:e.userSessionProperties)}incrSessionPartCountForKey(e){if(!this._sessionPartSpan||!this._activeSessionPartCounts){this._diag.debug(`trying to increment a count for the active session part, but there is no session part in progress. This is a no-op.`);return}this._activeSessionPartCounts[e]=(this._activeSessionPartCounts[e]||0)+1}incrNextSessionPartCountForKey(e){this._nextSessionPartCounts[e]=(this._nextSessionPartCounts[e]||0)+1}addSessionPartStartedListener(e){return this._addListener(this._sessionPartStartedListeners,e)}addSessionPartEndedListener(e){return this._addListener(this._sessionPartEndedListeners,e)}_loadOrCreateUserSessionState(e){let t=Rs(this._storage,this._diag),n=!1;if(!t||Fs(t,e)){t&&(this._previousUserSessionId=t.userSessionId);let r=us(this._storage,`mxl_user_session_number`,this._diag);t=Is({inactivityTimeoutSeconds:this._inactivityTimeoutSeconds,maxUserSessionDurationSeconds:this._maxUserSessionDurationSeconds,now:e,previousUserSessionId:this._previousUserSessionId,userSessionNumber:r}),n=!0}return(n||this._maxDurationTimeout===null)&&this._setupMaxDurationTimer(t,e),{created:n,state:t}}_beginUserSessionForPartStart(){let e=this._perf.getNowMillis(),{state:t}=this._loadOrCreateUserSessionState(e);this._currentSessionPartNumber=us(this._storage,`mxl_session_part_number`,this._diag),this._state=V(V({},t),{},{userSessionPartIndex:t.userSessionPartIndex+1,inactivityDeadlineTs:null}),this._storeState()}_continueUserSessionAfterPartEnd(e){if(!this._state){this._clearMaxDurationTimer();return}if(this._hasStoredState&&this._storage.getItem(`mxl_user_session_state`)===null){this._previousUserSessionId=this._state.userSessionId,this._state=null,this._clearMaxDurationTimer();return}this._state=V(V({},this._state),{},{inactivityDeadlineTs:e+this._state.inactivityTimeoutSeconds*1e3}),this._storeState()}_rolloverUserSession(e){var t,n;if(this._sessionPartSpan){this.endSessionPartInternal(`user_session_ended`,e),this.startSessionPartInternal(`user_session_rollover`);return}this._previousUserSessionId=(t=(n=this._state)==null?void 0:n.userSessionId)==null?null:t,this._state=null,this._storage.removeItem(zo),this._clearMaxDurationTimer()}_setupMaxDurationTimer(e,t){this._clearMaxDurationTimer();let n=e.userSessionMaxEndTs-t;n<=0||(this._maxDurationTimeout=setTimeout(()=>{this._maxDurationTimeout=null,this._rolloverUserSession(`max_duration_reached`)},n))}_clearMaxDurationTimer(){this._maxDurationTimeout!==null&&(clearTimeout(this._maxDurationTimeout),this._maxDurationTimeout=null)}_shutdown(){this._isShutdown||(this._isShutdown=!0,e._testInstances.delete(this),this._onActivityThrottled.cancel(),Ps({activityEvents:this._activityEvents,onActivity:this._onActivityThrottled,onBlur:this._onBlur,onFocus:this._onFocus,onPageHide:this._onPageHide,onPageShow:this._onPageShow,onVisibilityChange:this._onVisibilityChange,target:this._target,visibilityDoc:this._visibilityDoc}),this._clearSessionPartInactivityTimer(),this._clearMaxDurationTimer())}_handleEngagementTransition(e){try{let t=Ms(this._visibilityDoc),n=this._activeSessionPartId!==null;if(!t&&n){this._diag.debug(`tab disengaged via ${e}; ending current part`),this.endSessionPartInternal(`web_background`);return}if(t&&!n){this._diag.debug(`tab engaged via ${e}; starting new part`),this.startSessionPartInternal(`web_foreground`);return}t&&n&&this._startSessionPartInactivityTimer()}catch(e){this._diag.warn(`Error handling engagement change`,e)}}_startSessionPartInactivityTimer(){this._clearSessionPartInactivityTimer(),this._sessionPartInactivityTimer=setTimeout(this._onSessionPartInactivity,this._inactivityTimeoutSeconds*1e3)}_clearSessionPartInactivityTimer(){this._sessionPartInactivityTimer!==null&&(clearTimeout(this._sessionPartInactivityTimer),this._sessionPartInactivityTimer=null)}_addListener(e,t){return e.push(t),()=>{let n=e.indexOf(t);n!==-1&&e.splice(n,1)}}_fireListeners(e,t){for(let n of e)try{n()}catch(e){this._diag.warn(`Error while executing session part ${t} listener`,e)}}_storeState(){if(!this._state)return!1;let e=this._storage.setItem(zo,JSON.stringify(this._state));return e&&(this._hasStoredState=!0),e}_removeFromPermanentProperties(e){if(!(e in this._permanentProperties))return;let t=V({},this._permanentProperties);delete t[e],this._permanentProperties=t,Bs(this._storage,t)}_removeFromUserSessionProperties(e){if(!this._state||!(e in this._state.userSessionProperties))return;let t=V({},this._state.userSessionProperties);delete t[e],this._state=V(V({},this._state),{},{userSessionProperties:t}),this._storeState()}};j(Js,`_testInstances`,new Set);var Ys=class{constructor({urlDocument:e=window.document}={}){j(this,`_urlDocument`,void 0),this._urlDocument=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){e.attributes[`browser.url.full`]||e.setAttribute(Zt,this._urlDocument.URL)}shutdown(){return Promise.resolve(void 0)}},Xs=class{constructor({urlDocument:e=window.document}={}){j(this,`_urlDocument`,void 0),this._urlDocument=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){e.attributes[`browser.url.full`]||(e.attributes[Zt]=this._urlDocument.URL)}onStart(){}shutdown(){return Promise.resolve(void 0)}},Zs=class{constructor({attributeScrubbers:e}){j(this,`_attributeScrubbers`,void 0),this._attributeScrubbers=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){this._attributeScrubbers.forEach(t=>{let n=e.attributes[t.key];n&&typeof n==`string`&&e.setAttribute(t.key,t.scrub(n))})}shutdown(){return Promise.resolve(void 0)}},Qs=class{constructor({urlDocument:e=window.document}={}){j(this,`_urlDocument`,void 0),this._urlDocument=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){e.attributes[`mxl.type`]||e.setAttribute(N,`sys.log`),e.setAttribute(F,this._urlDocument.URL)}shutdown(){return Promise.resolve(void 0)}};let $s=e=>{if((e.attributes[`http.request.method`]||e.attributes[`http.method`])&&(typeof e.attributes[`http.response.status_code`]==`number`||typeof e.attributes[`http.status_code`]==`number`)){var t;let n=(t=e.attributes[`url.full`])==null?e.attributes[Cn]:t;return typeof n==`string`&&n.includes(`://`)}return!1};var ec=class{forceFlush(){return Promise.resolve(void 0)}onEnd(e){$s(e)&&(e.attributes[N]=`perf.network_request`,e.attributes[`url.full`]===void 0&&(e.attributes[F]=e.attributes[Cn]),e.attributes[`http.response.status_code`]===void 0&&(e.attributes[An]=e.attributes[`http.status_code`]),e.attributes[`http.request.method`]===void 0&&(e.attributes[On]=e.attributes[`http.method`]),e.attributes[`http.response.body.size`]===void 0&&(e.attributes[Es]=e.attributes[`http.response_content_length`]),e.attributes[`http.request.body.size`]===void 0&&(e.attributes[`http.request.body.size`]=e.attributes[`http.request_content_length`]))}onStart(){}shutdown(){return Promise.resolve(void 0)}};let tc=e=>e.attributes[N]===`ux.session_part`,nc=(e,t)=>`mxl.${t===`current`?`export_failed`:`previous_export_failed`}.${e}`;var rc=class{constructor({exporter:e,limitManager:t,userSessionManager:n,diag:r=O.createComponentLogger({namespace:`MXLSessionPartBatchedSpanProcessor`})}){j(this,`_shutdownOnce`,void 0),j(this,`_pendingSpans`,[]),j(this,`_exporter`,void 0),j(this,`_limitManager`,void 0),j(this,`_userSessionManager`,void 0),j(this,`_diag`,void 0),j(this,`_shutdown`,()=>this._exporter.shutdown()),this._diag=r,this._exporter=e,this._shutdownOnce=new Fr(this._shutdown,this),this._limitManager=t,this._userSessionManager=n}forceFlush(){return this._diag.debug(`forceFlush called for MXLSessionPartBatchedSpanProcessor. This is a no op`),Promise.resolve(void 0)}onEnd(e){if(this._shutdownOnce.isCalled){this._diag.debug(`span ended after processor shutdown. Ignoring span.`);return}if(tc(e))this._diag.debug(`session part span ended. Exporting all pending spans.`),this._exportSpans([e,...this._pendingSpans]),this._pendingSpans=[];else{if(this._diag.debug(`non-session-part span ended. Adding to pending spans queue.`),this._limitManager.dropReadableSpan(e))return;this._pendingSpans.push(e)}}_exportSpans(e){Lr._export(this._exporter,e).then(e=>{if(e.code===z.FAILED){var t;let n=((t=e.error)==null?void 0:t.message)||`unknown error`,r=`unknown`;n===`Concurrent export limit reached`?r=`concurrent_limit`:n===`Fetch request errored`&&(r=`fetch_error`),this._userSessionManager.incrSessionPartCountForKey(nc(r,`current`)),this._userSessionManager.incrNextSessionPartCountForKey(nc(r,`previous`)),this._diag.error(`spans failed to export: ${n}`)}}).catch(e=>{let t=`unknown error`;e&&e instanceof Error?t=e.message:typeof e==`string`&&(t=e),this._userSessionManager.incrSessionPartCountForKey(nc(`unknown`,`current`)),this._userSessionManager.incrNextSessionPartCountForKey(nc(`unknown`,`previous`)),this._diag.error(`spans failed to export: ${t}`)})}onStart(){}getPendingSpansCount(){return this._pendingSpans.length}shutdown(){return this._shutdownOnce.call()}},ic=class{constructor({pageManager:e}){j(this,`_pageManager`,void 0),this._pageManager=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){if(!e.attributes[`app.surface.name`]||!e.attributes[`app.surface.id`]){let t=this._pageManager.getCurrentRoute();t&&(e.setAttribute(Qt,t.path),e.setAttribute($t,this._pageManager.getCurrentPageId()))}let t=this._pageManager.getPageLabel();t&&!e.attributes[`app.surface.label`]&&e.setAttribute(en,t)}shutdown(){return Promise.resolve(void 0)}},ac=class{constructor({pageManager:e}){j(this,`_pageManager`,void 0),this._pageManager=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){if(!e.attributes[`app.surface.name`]||!e.attributes[`app.surface.id`]){let t=this._pageManager.getCurrentRoute(),n=this._pageManager.getCurrentPageId();t&&n&&(e.attributes[Qt]=t.path,e.attributes[$t]=n)}let t=this._pageManager.getPageLabel();t&&!e.attributes[`app.surface.label`]&&(e.attributes[en]=t)}onStart(){}shutdown(){return Promise.resolve(void 0)}},oc=class{constructor({attributeScrubbers:e}){j(this,`_attributeScrubbers`,void 0),this._attributeScrubbers=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){this._attributeScrubbers.forEach(t=>{let n=e.attributes[t.key];n&&typeof n==`string`&&(e.attributes[t.key]=t.scrub(n))})}onStart(){}shutdown(){return Promise.resolve(void 0)}},sc=class{constructor({userManager:e}){j(this,`_userManager`,void 0),this._userManager=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){this._userManager.getUserId()&&e.setAttributes({[ks]:this._userManager.getUserId()})}shutdown(){return Promise.resolve(void 0)}},cc=class{constructor({userSessionManager:e}){j(this,`_userSessionManager`,void 0),this._userSessionManager=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){var t,n,r;let i=(t=this._userSessionManager.getUserSessionId())==null?``:t,a=(n=this._userSessionManager.getPreviousUserSessionId())==null?``:n;e.setAttributes({"log.record.uid":Yo(),[Ds]:i,[Os]:a,[nn]:i,[rn]:a,[tn]:(r=this._userSessionManager.getSessionPartId())==null?``:r})}shutdown(){return Promise.resolve(void 0)}},lc=class{constructor({userManager:e}){j(this,`_userManager`,void 0),this._userManager=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){let t=this._userManager.getUserId();t&&(e.attributes[ks]=t)}onStart(){}shutdown(){return Promise.resolve(void 0)}},uc=class extends cr{inject(e,t,n){super.inject(e,t,n);let r=A.getSpan(e);if(r){let e=t instanceof Headers?t.get(`traceparent`):Te.get(t,`traceparent`);e&&r.setAttribute(`mxl.w3c_traceparent`,e)}}},dc=class{constructor({namespace:e,storage:t,diag:n}){j(this,`_diag`,void 0),j(this,`_keyPrefix`,void 0),j(this,`_storage`,void 0),j(this,`_writeDisabled`,!1),this._diag=n==null?O.createComponentLogger({namespace:`NamespacedStorage`}):n,this._keyPrefix=e?`${e}__`:``,this._storage=t}keys(){let e;try{({length:e}=this._storage)}catch(e){return this._diag.warn(`failed to read storage length`,String(e)),[]}let t=[];for(let n=0;n<e;n++)try{let e=this._storage.key(n);if(e===null)continue;this._keyPrefix?e.startsWith(this._keyPrefix)&&t.push(e.substring(this._keyPrefix.length)):t.push(e)}catch(e){this._diag.warn(`failed to read storage key at index ${n.toString()}`,String(e))}return t}get length(){return this.keys().length}clear(){let e=!0;for(let t of this.keys())this._safeRemove(this._keyName(t))||(e=!1);return e}getItem(e){try{return this._storage.getItem(this._keyName(e))}catch(t){return this._diag.warn(`failed to read ${e}`,String(t)),null}}key(e){var t;return(t=this.keys()[e])==null?null:t}removeItem(e){return this._safeRemove(this._keyName(e))}setItem(e,t){if(this._writeDisabled)return!1;try{return this._storage.setItem(this._keyName(e),t),!0}catch(e){return this._disableWrites(e),!1}}getStorageEventKey(e){return this._keyName(e)}_keyName(e){return`${this._keyPrefix}${e}`}_safeRemove(e){try{return this._storage.removeItem(e),!0}catch(t){return this._diag.warn(`failed to remove ${e}`,String(t)),!1}}_disableWrites(e){if(this._writeDisabled)return;this._writeDisabled=!0;let t=e instanceof Error?e.name:`UnknownError`;this._diag.error(`writes disabled after failure; continuing in-memory only`,t)}};let fc=({diag:e,featureManager:t,registerGlobally:n,propagator:r,defaultInstrumentationConfig:i})=>{var a;if(!t.isNetworkSpanForwardingEnabled())return!1;let o=[];return n||o.push("Network span forwarding cannot be used when `registerGlobally` is set to false. Turning off network span forwarding."),r&&o.push("Network span forwarding cannot be used alongside a custom `propagator`. Turning off network span forwarding."),!(i==null||(a=i.omit)==null)&&a.has(`@opentelemetry/instrumentation-xml-http-request`)&&i.omit.has(`@opentelemetry/instrumentation-fetch`)&&o.push(`Network span forwarding cannot be used when both '@opentelemetry/instrumentation-xml-http-request' and '@opentelemetry/instrumentation-fetch' are omitted. Turning off network span forwarding.`),o.forEach(t=>{e.warn(t)}),o.length===0},pc=/\/\/(.+):(.+)@(.+)\//,mc=[`AWSAccessKeyId`,`Signature`,`sig`,"`X-Goog-Signature",`password`,`auth`,`pw`,`token`],hc=({value:e,queryParamRegex:t,scrubPath:n,scrubQuery:r})=>{let i=e;return n&&(i=i.replace(pc,`//REDACTED:REDACTED@$3/`)),r&&(i=i.replaceAll(t,`$1$2=REDACTED`)),i},gc=e=>{let t=[...mc,...e||[]],n=RegExp(`(^|&|\\?)(${t.join(`|`)})=[^&]+`,`g`);return[{key:F,scrub:e=>hc({queryParamRegex:n,scrubPath:!0,scrubQuery:!0,value:e})},{key:Cn,scrub:e=>hc({queryParamRegex:n,scrubPath:!0,scrubQuery:!0,value:e})},{key:`url.path`,scrub:e=>hc({queryParamRegex:n,scrubPath:!0,scrubQuery:!1,value:e})},{key:`url.query`,scrub:e=>hc({queryParamRegex:n,scrubPath:!1,scrubQuery:!0,value:e})}]},_c={isRecording:()=>!1,setEnabled:()=>{}},vc=new class{constructor({diagLogger:e=O.createComponentLogger({namespace:`mxl-registry`})}={}){j(this,`_sdk`,null),j(this,`_diag`,void 0),j(this,`register`,e=>{this._sdk!==null&&this._diag.warn(`previously registered sdk will be overwritten`),this._sdk=e}),j(this,`clear`,()=>{this._sdk===null&&this._diag.warn(`sdk already cleared, this is a no-op`),this._sdk=null}),j(this,`registered`,()=>this._sdk),this._diag=e}};var yc;(function(e){e.COMPONENT=`component`,e.HTTP_STATUS_TEXT=`http.status_text`})(yc||(yc={}));let bc=O.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-fetch/utils`});function xc(...e){if(e[0]instanceof URL||typeof e[0]==`string`){let t=e[1];if(!(t!=null&&t.body))return Promise.resolve();if(t.body instanceof ReadableStream){let{body:e,length:n}=Sc(t.body);return t.body=e,n}else return Promise.resolve(wc(t.body))}else{let t=e[0];return t!=null&&t.body?t.clone().text().then(e=>Ec(e)):Promise.resolve()}}function Sc(e){if(!e.pipeThrough)return bc.warn(`Platform has ReadableStream but not pipeThrough!`),{body:e,length:Promise.resolve(void 0)};let t=0,n,r=new Promise(e=>{n=e}),i=new TransformStream({start(){},transform(e,n){return U(function*(){let r=yield e;t+=r.byteLength,n.enqueue(e)})()},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function Cc(e){return typeof Document<`u`&&e instanceof Document}function wc(e){if(Cc(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return Ec(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Dc(e);if(e instanceof URLSearchParams)return Ec(e.toString());if(e.byteLength!==void 0)return e.byteLength;bc.warn(`unknown body type`)}let Tc=new TextEncoder;function Ec(e){return Tc.encode(e).byteLength}function Dc(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function Oc(e){let t=jc(),n=e.toUpperCase();return n in t?n:`_OTHER`}let kc={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},Ac;function jc(){return Ac===void 0&&(Ac=kc),Ac}let Mc={"https:":`443`,"http:":`80`};function Nc(e){let t=Number(e.port||Mc[e.protocol]);if(t&&!isNaN(t))return t}let Pc=`0.218.0`,Fc=typeof PerformanceObserver<`u`;var Ic=class extends Si{constructor(e={}){super(`@opentelemetry/instrumentation-fetch`,Pc,e),j(this,`component`,`fetch`),j(this,`version`,Pc),j(this,`moduleName`,this.component),j(this,`_usedResources`,new WeakSet),j(this,`_tasksCount`,0),j(this,`_semconvStability`,void 0),this._semconvStability=wi(`http`,e==null?void 0:e.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let n=this.tracer.startSpan(`CORS Preflight`,{startTime:t[J.FETCH_START]},A.setSpan(D.active(),e)),r=!(this._semconvStability&G.OLD);ja(n,t,this.getConfig().ignoreNetworkEvents,void 0,r),n.end(t[J.RESPONSE_END])}_addFinalSpanAttributes(e,t){let n=X(t.url);if(this._semconvStability&G.OLD&&(e.setAttribute(`http.status_code`,t.status),t.statusText!=null&&e.setAttribute(yc.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(`http.host`,n.host),e.setAttribute(`http.scheme`,n.protocol.replace(`:`,``)),typeof navigator<`u`&&e.setAttribute(`http.user_agent`,navigator.userAgent)),this._semconvStability&G.STABLE){e.setAttribute(An,t.status),e.setAttribute(jn,n.hostname);let r=Nc(n);r&&e.setAttribute(Mn,r)}}_addHeaders(e,t){if(!La(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};k.inject(D.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}if(e instanceof Request)k.inject(D.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else{let t=new Headers(e.headers);k.inject(D.active(),t,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))}),e.headers=t}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(Nr(e,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let n=``,r={};if(this._semconvStability&G.OLD){let i=(t.method||`GET`).toUpperCase();n=`HTTP ${i}`,r[yc.COMPONENT]=this.moduleName,r[`http.method`]=i,r[`http.url`]=e}if(this._semconvStability&G.STABLE){let i=t.method,a=Oc(t.method||`GET`);n||(n=a),r[On]=a,a!==i&&(r[kn]=i),r[F]=e}return this.tracer.startSpan(n,{kind:Ye.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType(`resource`)}let i=Pa(t.spanUrl,t.startTime,n,r,this._usedResources,`fetch`);if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let n=i.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&G.OLD);ja(e,t,this.getConfig().ignoreNetworkEvents,void 0,r)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){let r=L(Date.now()),i=Vn();this._addFinalSpanAttributes(e,n),this._semconvStability&G.STABLE&&n.status>=400&&(e.setStatus({code:E.ERROR}),e.setAttribute(wn,String(n.status))),setTimeout(()=>{var n;(n=t.observer)==null||n.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(r)},300)}_patchConstructor(){return e=>{let t=this;return function(...n){if(!t._isEnabled)return e.apply(this,n);let r=this,i=X(n[0]instanceof Request?n[0].url:String(n[0])).href,a;a=n[0]instanceof Request?n[1]==null?n[0]:new Request(n[0],n[1]):n[1]||{};let o=t._createSpan(i,a);if(!o)return e.apply(this,n);let s=t._prepareSpanData(i);t.getConfig().measureRequestSize&&xc(...n).then(e=>{e&&(t._semconvStability&G.OLD&&o.setAttribute(`http.request_content_length_uncompressed`,e),t._semconvStability&G.STABLE&&o.setAttribute(`http.request.body.size`,e))}).catch(e=>{t._diag.warn(`getFetchBodyLength`,e)});function c(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,s,{status:n.status||0,statusText:n.message,url:i})}function l(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,s,n):t._endSpan(e,s,{status:n.status,statusText:n.statusText,url:i})}function u(e,n){try{let t=n.clone().body;if(t){let r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?l(e,n):i()},t=>{c(e,t)})};i()}else l(e,n)}catch(n){t._diag.error(`Failed to read fetch response body`,n),t._endSpan(e,s,{status:0,url:i})}return n}function d(e,n){try{c(e,n)}catch(r){t._diag.error(`Failed to end span on fetch error`,r),t._endSpan(e,s,{status:n.status||0,url:i})}throw n}return D.with(A.setSpan(D.active(),o),()=>(t._callRequestHook(o,a),t._addHeaders(a,i),t._tasksCount++,e.apply(r,a instanceof Request?[a]:[i,a]).then(u.bind(r,o),d.bind(r,o))))}}}_applyAttributesAfterFetch(e,t,n){let r=this.getConfig().applyCustomAttributesOnSpan;r&&Ci(()=>r(e,t,n),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_callRequestHook(e,t){let n=this.getConfig().requestHook;n&&Ci(()=>n(e,t),e=>{e&&this._diag.error(`requestHook`,e)},!0)}_prepareSpanData(e){let t=Vn(),n=[];if(typeof PerformanceObserver!=`function`)return{entries:n,startTime:t,spanUrl:e};let r=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{t.initiatorType===`fetch`&&t.name===e&&n.push(t)})});return r.observe({entryTypes:[`resource`]}),{entries:n,observer:r,startTime:t,spanUrl:e}}enable(){if(!Fc){this._diag.warn(`this instrumentation is intended for web usage only, it does not instrument server-side fetch()`);return}if(!this._isEnabled){if(this._isFetchPatched){this._diag.debug(`fetch constructor already patched`),this._isEnabled=!0;return}try{this._wrap(globalThis,`fetch`,this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(e){this._diag.warn(`Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.`,e)}}}disable(){Fc&&this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}},Z;(function(e){e.METHOD_OPEN=`open`,e.METHOD_SEND=`send`,e.EVENT_ABORT=`abort`,e.EVENT_ERROR=`error`,e.EVENT_LOAD=`loaded`,e.EVENT_TIMEOUT=`timeout`})(Z||(Z={}));let Lc=O.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils`});function Rc(e){return typeof Document<`u`&&e instanceof Document}function zc(e){if(Rc(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return Vc(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Hc(e);if(e instanceof URLSearchParams)return Vc(e.toString());if(e.byteLength!==void 0)return e.byteLength;Lc.warn(`unknown body type`)}let Bc=new TextEncoder;function Vc(e){return Bc.encode(e).byteLength}function Hc(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function Uc(e){let t=Kc(),n=e.toUpperCase();return n in t?n:`_OTHER`}let Wc={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},Gc;function Kc(){return Gc===void 0&&(Gc=Wc),Gc}let qc={"https:":`443`,"http:":`80`};function Jc(e){let t=Number(e.port||qc[e.protocol]);if(t&&!isNaN(t))return t}let Yc=`0.218.0`;var Xc;(function(e){e.HTTP_STATUS_TEXT=`http.status_text`})(Xc||(Xc={}));var Zc=class extends Si{constructor(e={}){super(`@opentelemetry/instrumentation-xml-http-request`,Yc,e),j(this,`component`,`xml-http-request`),j(this,`version`,Yc),j(this,`moduleName`,this.component),j(this,`_tasksCount`,0),j(this,`_xhrMem`,new WeakMap),j(this,`_usedResources`,new WeakSet),j(this,`_semconvStability`,void 0),this._semconvStability=wi(`http`,e==null?void 0:e.semconvStabilityOptIn)}init(){}_addHeaders(e,t){let n=X(t).href;if(!La(n,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};k.inject(D.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}let r={};k.inject(D.active(),r),Object.keys(r).forEach(t=>{e.setRequestHeader(t,String(r[t]))})}_addChildSpan(e,t){D.with(A.setSpan(D.active(),e),()=>{let e=this.tracer.startSpan(`CORS Preflight`,{startTime:t[J.FETCH_START]}),n=!(this._semconvStability&G.OLD);ja(e,t,this.getConfig().ignoreNetworkEvents,void 0,n),e.end(t[J.RESPONSE_END])})}_addFinalSpanAttributes(e,t,n){if(this._semconvStability&G.OLD){if(t.status!==void 0&&e.setAttribute(`http.status_code`,t.status),t.statusText!==void 0&&e.setAttribute(Xc.HTTP_STATUS_TEXT,t.statusText),typeof n==`string`){let t=X(n);e.setAttribute(`http.host`,t.host),e.setAttribute(`http.scheme`,t.protocol.replace(`:`,``))}e.setAttribute(`http.user_agent`,navigator.userAgent)}this._semconvStability&G.STABLE&&t.status&&e.setAttribute(An,t.status)}_applyAttributesAfterXHR(e,t){let n=this.getConfig().applyCustomAttributesOnSpan;typeof n==`function`&&Ci(()=>n(e,t),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_addResourceObserver(e,t){let n=this._xhrMem.get(e);!n||typeof PerformanceObserver!=`function`||typeof PerformanceResourceTiming!=`function`||(n.createdResources={observer:new PerformanceObserver(e=>{let r=e.getEntries(),i=X(t);r.forEach(e=>{e.initiatorType===`xmlhttprequest`&&e.name===i.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:[`resource`]}))}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(I.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,n,r,i){if(!n||!r||!i||!e.createdResources)return;let a=e.createdResources.entries;(!a||!a.length)&&(a=I.getEntriesByType(`resource`));let o=Pa(X(n).href,r,i,a,this._usedResources);if(o.mainRequest){let e=o.mainRequest;this._markResourceAsUsed(e);let n=o.corsPreFlightRequest;n&&(this._addChildSpan(t,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&G.OLD);ja(t,e,this.getConfig().ignoreNetworkEvents,void 0,r)}}_cleanPreviousSpanInformation(e){let t=this._xhrMem.get(e);if(t){let n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}}_createSpan(e,t,n){let r=X(t);if(Nr(r.href,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let i=``,a={};if(this._semconvStability&G.OLD&&(i=n.toUpperCase(),a[`http.method`]=n,a[`http.url`]=r.toString()),this._semconvStability&G.STABLE){let e=n,t=Uc(n);i||(i=t),a[On]=t,t!==e&&(a[kn]=e),a[F]=r.toString(),a[jn]=r.hostname;let o=Jc(r);o&&(a[Mn]=o)}let o=this.tracer.startSpan(i,{kind:Ye.CLIENT,attributes:a});return o.addEvent(Z.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:o,spanUrl:t}),o}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{let t=this;return function(...n){if(!t._isEnabled)return e.apply(this,n);let r=n[0],i=n[1];return t._createSpan(this,i,r),e.apply(this,n)}}}_patchSend(){let e=this;function t(t,n,r,i){let a=n.callbackToRemoveEvents;typeof a==`function`&&a();let{span:o,spanUrl:s,sendStartTime:c}=n;o&&(e._findResourceAndAddNetworkEvents(n,o,s,c,r),o.addEvent(t,i),e._addFinalSpanAttributes(o,n,s),o.end(i),e._tasksCount--),e._clearResources()}function n(n,r,i,a){let o=e._xhrMem.get(r);if(!o)return;if(o.status=r.status,o.statusText=r.statusText,e._xhrMem.delete(r),o.span){let t=o.span;e._applyAttributesAfterXHR(t,r),e._semconvStability&G.STABLE&&(i?a&&(t.setStatus({code:E.ERROR,message:a}),t.setAttribute(wn,a)):o.status&&o.status>=400&&(t.setStatus({code:E.ERROR}),t.setAttribute(wn,String(o.status))))}let s=Vn(),c=Date.now();setTimeout(()=>{t(n,o,s,c)},300)}function r(){n(Z.EVENT_ERROR,this,!0,`error`)}function i(){n(Z.EVENT_ABORT,this,!1)}function a(){n(Z.EVENT_TIMEOUT,this,!0,`timeout`)}function o(){this.status<299?n(Z.EVENT_LOAD,this,!1):n(Z.EVENT_ERROR,this,!1)}function s(t){t.removeEventListener(`abort`,i),t.removeEventListener(`error`,r),t.removeEventListener(`load`,o),t.removeEventListener(`timeout`,a);let n=e._xhrMem.get(t);n&&(n.callbackToRemoveEvents=void 0)}return t=>function(...n){if(!e._isEnabled)return t.apply(this,n);let c=e._xhrMem.get(this);if(!c)return t.apply(this,n);let l=c.span,u=c.spanUrl;if(l&&u){if(e.getConfig().measureRequestSize&&n!=null&&n[0]){let t=n[0],r=zc(t);r!==void 0&&(e._semconvStability&G.OLD&&l.setAttribute(`http.request_content_length_uncompressed`,r),e._semconvStability&G.STABLE&&l.setAttribute(`http.request.body.size`,r))}D.with(A.setSpan(D.active(),l),()=>{e._tasksCount++,c.sendStartTime=Vn(),l.addEvent(Z.METHOD_SEND),this.addEventListener(`abort`,i),this.addEventListener(`error`,r),this.addEventListener(`load`,o),this.addEventListener(`timeout`,a),c.callbackToRemoveEvents=()=>{s(this),c.createdResources&&c.createdResources.observer.disconnect()},e._addHeaders(this,u),e._addResourceObserver(this,u)})}return t.apply(this,n)}}enable(){if(!this._isEnabled){if(this._isXhrPatched){this._diag.debug(`reactivating existing patch on`,this.moduleName,this.version),this._isEnabled=!0;return}try{this._diag.debug(`applying patch to`,this.moduleName,this.version),this._wrap(XMLHttpRequest.prototype,`open`,this._patchOpen()),this._wrap(XMLHttpRequest.prototype,`send`,this._patchSend()),this._isXhrPatched=!0,this._isEnabled=!0}catch(e){this._unwrap(XMLHttpRequest.prototype,`open`),this._unwrap(XMLHttpRequest.prototype,`send`),this._diag.warn(`Failed to patch globalThis.XMLHttpRequest; instrumentation will not be enabled. Another script may have locked globalThis.XMLHttpRequest via Object.defineProperty.`,e)}}}disable(){this._isEnabled&&(this._isEnabled=!1,this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}};let Qc=(e,t)=>{let n=e.nodeName.toLowerCase(),r=t.substring(0,30),i=t.length>30?`...`:``;return`<${n}${e.className?` class="${e.className}"`:``}>${r}${i}</${n}>`};var $c=class extends H{constructor({diag:e,perf:t,shouldTrack:n,innerTextForElement:r}={}){super({config:{},diag:e,instrumentationName:`ClicksInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),j(this,`_onClickHandler`,void 0),this._onClickHandler=e=>{let t=e.target;if(t instanceof HTMLElement&&!t.hasAttribute(`disabled`)&&!(n&&!n(t)))try{let n=this.userSessionManager.getSessionPartSpan();n&&n.addEvent(`click`,{"mxl.type":`ux.tap`,"tap.coords":`${e.x.toString()},${e.y.toString()}`,"view.name":Qc(t,r?r(t):t.textContent)},this.perf.epochMillisFromOriginOffset(e.timeStamp))}catch(e){this._diag.error(`failed to create new user interaction span event`,e)}},this._config.enabled&&this.enable()}disable(){document.removeEventListener(`click`,this._onClickHandler)}enable(){document.addEventListener(`click`,this._onClickHandler)}};let el=()=>{let e={},t=window.performance.getEntriesByType(`navigation`)[0];return Object.values(J).forEach(n=>{if(Aa(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}}),e},tl={"first-contentful-paint":`firstContentfulPaint`,"first-paint":`firstPaint`},nl=e=>{window.performance.getEntriesByType(`paint`).forEach(({name:t,startTime:n})=>{Aa(tl,t)&&e.addEvent(tl[t],n)})};var rl=class extends H{constructor({diag:e,perf:t,enabled:n,applyCustomAttributesOnSpan:r,ignorePerformancePaintEvents:i=!1,ignoreNetworkEvents:a=!1}={}){super({config:{applyCustomAttributesOnSpan:r,enabled:n,ignoreNetworkEvents:a,ignorePerformancePaintEvents:i},diag:e,instrumentationName:`DocumentLoadInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),j(this,`_onDocumentLoaded`,void 0),j(this,`_performanceCollected`,!1),this._onDocumentLoaded=()=>{window.setTimeout(()=>{this._collectPerformance()},0)},this._config.enabled&&this.enable()}init(){this._diag.debug(`Initializing document load instrumentation`)}_addResourcesSpans(e){performance.getEntriesByType(`resource`).forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){if(this._performanceCollected)return;this._performanceCollected=!0;let e=[...document.getElementsByTagName(`meta`)].find(e=>e.getAttribute(`name`)===ir),t=el(),n=(e==null?void 0:e.content)||``;D.with(k.extract(y,{traceparent:n}),()=>{var e;let n=this._startSpan(`documentLoad`,J.FETCH_START,t);n&&(D.with(A.setSpan(D.active(),n),()=>{let e=this._startSpan(`documentFetch`,J.FETCH_START,t);e&&(e.setAttribute(F,location.href),D.with(A.setSpan(D.active(),e),()=>{var n;ja(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,(n=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:n.documentFetch),this._endSpan(e,J.RESPONSE_END,t)}))}),n.setAttribute(N,`ux.document_load`),n.setAttribute(F,location.href),n.setAttribute(Ln,navigator.userAgent),this._addResourcesSpans(n),this.getConfig().ignoreNetworkEvents||(Y(n,J.FETCH_START,t),Y(n,J.UNLOAD_EVENT_START,t),Y(n,J.UNLOAD_EVENT_END,t),Y(n,J.DOM_INTERACTIVE,t),Y(n,J.DOM_CONTENT_LOADED_EVENT_START,t),Y(n,J.DOM_CONTENT_LOADED_EVENT_END,t),Y(n,J.DOM_COMPLETE,t),Y(n,J.LOAD_EVENT_START,t),Y(n,J.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||nl(n),this._addCustomAttributesOnSpan(n,(e=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:e.documentLoad),this._endSpan(n,J.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&(Aa(n,t)&&typeof n[t]==`number`?e.end(n[t]):e.end())}_initResourceSpan(e,t){var n;let r=this._startSpan(`resourceFetch`,J.FETCH_START,e,t);r&&(r.setAttribute(N,`ux.resource_fetch`),r.setAttribute(F,e.name),ja(r,e,this.getConfig().ignoreNetworkEvents),e.deliveryType&&r.setAttribute(`http.response.delivery_type`,e.deliveryType),e.initiatorType&&r.setAttribute(`http.request.initiator_type`,e.initiatorType),e.renderBlockingStatus&&r.setAttribute(`http.request.render_blocking_status`,e.renderBlockingStatus),e.responseStatus&&r.setAttribute(An,e.responseStatus),typeof e.encodedBodySize==`number`&&e.encodedBodySize>=0&&r.setAttribute(Es,e.encodedBodySize),typeof e.transferSize==`number`&&e.transferSize>=0&&r.setAttribute(`http.response.size`,e.transferSize),typeof e.decodedBodySize==`number`&&e.decodedBodySize>=0&&r.setAttribute(`http.response.decoded_body_size`,e.decodedBodySize),this._addResourceDiagnosticAttributes(r,e),this._addCustomAttributesOnResourceSpan(r,e,(n=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:n.resourceFetch),this._endSpan(r,J.RESPONSE_END,e))}_startSpan(e,t,n,r){if(Aa(n,t)&&typeof n[t]==`number`)return this.tracer.startSpan(e,{startTime:n[t]},r?A.setSpan(D.active(),r):void 0)}_waitForPageLoad(){window.document.readyState===`complete`?this._onDocumentLoaded():window.addEventListener(`load`,this._onDocumentLoaded)}_addCustomAttributesOnSpan(e,t){t&&Ci(()=>{t(e)},e=>{e&&this._diag.error(`addCustomAttributesOnSpan`,e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&Ci(()=>{n(e,t)},e=>{e&&this._diag.error(`addCustomAttributesOnResourceSpan`,e)},!0)}_hasNoSizeData(e){let t=typeof e.transferSize==`number`?e.transferSize:0,n=typeof e.decodedBodySize==`number`?e.decodedBodySize:0,r=typeof e.encodedBodySize==`number`?e.encodedBodySize:0;return t===0&&n===0&&r===0}_hasTimingData(e){let t=typeof e.fetchStart==`number`?e.fetchStart:0,n=typeof e.responseEnd==`number`?e.responseEnd:0;return t>0&&n>0}_isCorsRestricted(e){return this._hasNoSizeData(e)&&this._hasTimingData(e)}_isFetchIncomplete(e){let t=typeof e.fetchStart==`number`?e.fetchStart:0,n=typeof e.responseEnd==`number`?e.responseEnd:0;return this._hasNoSizeData(e)&&t>0&&n===0}_isFetchPrevented(e){let t=typeof e.fetchStart==`number`?e.fetchStart:0;return this._hasNoSizeData(e)&&t===0}_isCacheValidated(e){let t=typeof e.transferSize==`number`?e.transferSize:0,n=typeof e.deliveryType==`string`?e.deliveryType:``;return t===300&&n!==`cache`}_addResourceDiagnosticAttributes(e,t){this._isCorsRestricted(t)?e.setAttribute(`http.response.cors_opaque`,!0):this._isFetchIncomplete(t)?e.setAttribute(`http.request.incomplete`,!0):this._isFetchPrevented(t)&&e.setAttribute(`http.request.prevented`,!0),this._isCacheValidated(t)&&e.setAttribute(`http.response.cache_revalidated`,!0)}enable(){window.removeEventListener(`load`,this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener(`load`,this._onDocumentLoaded)}};let il=[`diag`];function al(e){var t,n;return typeof PerformanceObserver<`u`&&((t=(n=PerformanceObserver.supportedEntryTypes)==null?void 0:n.includes(e))==null?!1:t)}function ol(e,t,n){let r=n==null?{}:n,{diag:i}=r,a=li(r,il);if(!al(e))return i==null||i.debug(`${e} not supported, skipping observer`),null;try{let n=new PerformanceObserver(n=>{for(let r of n.getEntries())try{t(r)}catch(t){i==null||i.error(`error processing ${e} entry`,t)}});return n.observe(V({buffered:!0,type:e},a)),n}catch(e){return null}}var sl=class extends H{constructor({diag:e,perf:t,limitManager:n}={}){super({config:{},diag:e,instrumentationName:`ElementTimingInstrumentation`,instrumentationVersion:`1.0.0`,limitManager:n,perf:t}),j(this,`_observer`,null),j(this,`_isEnabled`,!1),this._config.enabled&&this.enable()}enable(){if(!this._isEnabled){if(!al(`element`)){this._diag.debug(`element not supported, skipping`);return}if(this._isEnabled=!0,this._observer&&this._observer.disconnect(),this._observer=ol(`element`,e=>this._processEntry(e),{diag:this._diag}),!this._observer){this._isEnabled=!1,this._diag.error(`failed to enable`);return}}}disable(){this._isEnabled=!1,this._observer&&(this._observer.disconnect(),this._observer=null)}_processEntry(e){var t,n;if(!this._isEnabled||(t=this.limitManager)!=null&&t.limitElementTimingEntry())return;let r=this.tracer.startSpan(e.identifier,{attributes:{[N]:`ux.element_timing`,"mxl.element_timing.identifier":e.identifier,"mxl.element_timing.element":(n=e.element)==null||(n=n.tagName)==null?void 0:n.toLowerCase(),"mxl.element_timing.render_time":e.renderTime,"mxl.element_timing.load_time":e.loadTime,"mxl.element_timing.start_time":e.startTime,"mxl.element_timing.url":e.url,"mxl.element_timing.natural_width":e.naturalWidth,"mxl.element_timing.natural_height":e.naturalHeight},startTime:this.perf.epochMillisFromOriginOffset(0)});e.loadTime>0&&r.addEvent(`load`,this.perf.epochMillisFromOriginOffset(e.loadTime)),r.end(this.perf.epochMillisFromOriginOffset(e.startTime))}},cl=class extends H{constructor({diag:e,perf:t,rootNode:n,emptyCheckDelayMs:r=500}){super({config:{},diag:e,instrumentationName:`EmptyRootInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),j(this,`_observer`,void 0),j(this,`_emptyCheckDelayMs`,void 0),j(this,`_rootNode`,void 0),this._rootNode=n,this._emptyCheckDelayMs=r,this._observer=new MutationObserver((e,t)=>{this._observerCallback(e)}),this._config.enabled&&this._rootNode?this.enable():this._rootNode||this._diag.warn(`supplied root node was null, this instrumentation won't be enabled`)}disable(){this._observer.disconnect()}enable(){this._rootNode&&this._observer.observe(this._rootNode,{childList:!0})}_observerCallback(e){let t=!1,n=!1;for(let r of e)r.target===this._rootNode&&(r.removedNodes.length>0&&(t=!0),r.addedNodes.length>0&&(n=!0));t&&!n&&(this._diag.debug(`root node had child nodes removed without new ones being added, checking if it's empty in ${this._emptyCheckDelayMs}ms`),window.setTimeout(()=>{this._checkForEmptyRootNode()},this._emptyCheckDelayMs))}_checkForEmptyRootNode(){var e;if(((e=this._rootNode)==null?void 0:e.childNodes.length)===0){this._diag.debug(`root node was found to be empty`);let e=this.userSessionManager.getSessionPartSpan();e?e.addEvent(`empty-root-node`,{"mxl.type":`ux.empty_root_node`}):this._diag.debug(`no active session found to emit event on`)}}},ll=class extends H{constructor({diag:e,perf:t}={}){super({config:{},diag:e,instrumentationName:`GlobalExceptionInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),j(this,`_onErrorHandler`,void 0),j(this,`_onUnhandledRejectionHandler`,void 0),this._onErrorHandler=e=>{this.logManager.logException(e.error||e.message,{handled:!1,handler:`global_exception`,timestamp:this.perf.epochMillisFromOriginOffset(e.timeStamp)})},this._onUnhandledRejectionHandler=e=>{this.logManager.logException(e.reason,{handled:!1,handler:`promise_rejection`,timestamp:this.perf.epochMillisFromOriginOffset(e.timeStamp)})},this._config.enabled&&this.enable()}disable(){window.removeEventListener(`error`,this._onErrorHandler),window.removeEventListener(`unhandledrejection`,this._onUnhandledRejectionHandler)}enable(){window.addEventListener(`error`,this._onErrorHandler),window.addEventListener(`unhandledrejection`,this._onUnhandledRejectionHandler)}};let ul=()=>`mxlv2-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`;var dl=class extends H{constructor({diag:e,perf:t}={}){super({config:{},diag:e,instrumentationName:`LoafInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),j(this,`_observer`,null),j(this,`_isFirstEntry`,!0),j(this,`_removeSessionEndListener`,null),j(this,`_isEnabled`,!1),j(this,`_totalDuration`,0),j(this,`_workDuration`,0),j(this,`_styleLayoutDuration`,0),j(this,`_count`,0),j(this,`_longestDuration`,0),j(this,`_longestDurationExcludingFirst`,0),j(this,`_totalBlockingDuration`,0),j(this,`_scriptSummaries`,new Map),this._config.enabled&&this.enable()}enable(){if(!this._isEnabled){if(!al(`long-animation-frame`)){this._diag.debug(`long-animation-frame not supported, skipping`);return}if(this._isEnabled=!0,this._observer&&this._observer.disconnect(),this._observer=ol(`long-animation-frame`,e=>this._processEntry(e),{diag:this._diag}),!this._observer){this._isEnabled=!1,this._diag.error(`failed to enable`);return}this._registerSessionEndListener()}}_registerSessionEndListener(){this._isEnabled&&(this._removeSessionEndListener&&this._removeSessionEndListener(),this._removeSessionEndListener=this.userSessionManager.addSessionPartEndedListener(()=>{try{this._flushReport()}catch(e){this._diag.error(`error flushing report`,e)}}))}setUserSessionManager(e){super.setUserSessionManager(e),this._registerSessionEndListener()}disable(){this._isEnabled=!1,this._resetAccumulators(),this._observer&&(this._observer.disconnect(),this._observer=null),this._removeSessionEndListener&&(this._removeSessionEndListener(),this._removeSessionEndListener=null)}_processEntry(e){if(this._isEnabled){this._count++,this._totalDuration+=e.duration,this._workDuration+=e.renderStart?e.renderStart-e.startTime:e.duration,e.styleAndLayoutStart&&(this._styleLayoutDuration+=Math.max(0,e.startTime+e.duration-e.styleAndLayoutStart)),this._longestDuration=Math.max(this._longestDuration,e.duration),this._isFirstEntry&&this._count===1?this._isFirstEntry=!1:(this._longestDurationExcludingFirst=Math.max(this._longestDurationExcludingFirst,e.duration),e.firstUIEventTimestamp===0&&(this._totalBlockingDuration+=e.blockingDuration));try{for(let t of e.scripts){let e=t.sourceURL||`(inline)`;e.length>2048&&(e=`${e.substring(0,2048)}...`);let n=this._scriptSummaries.get(e);n?(n.totalDuration+=t.duration,n.styleAndLayoutDuration+=t.forcedStyleAndLayoutDuration,n.count++):this._scriptSummaries.set(e,{count:1,styleAndLayoutDuration:t.forcedStyleAndLayoutDuration,totalDuration:t.duration})}}catch(e){this._diag.error(`error processing scripts for entry`,e)}}}_flushReport(){if(this._count===0)return;let e;e=this._totalBlockingDuration<=200?`good`:this._totalBlockingDuration<=600?`needs-improvement`:`poor`;let t={[N]:`ux.web_vital`,"mxl.web_vital.id":ul(),"mxl.web_vital.name":`TBD`,"mxl.web_vital.value":Math.round(this._totalBlockingDuration),"mxl.web_vital.rating":e,"mxl.tbd.loaf_total_duration":Math.round(this._totalDuration),"mxl.tbd.loaf_work_duration":Math.round(this._workDuration),"mxl.tbd.loaf_style_and_layout_duration":Math.round(this._styleLayoutDuration),"mxl.tbd.loaf_count":this._count,"mxl.tbd.loaf_longest_duration":Math.round(this._longestDuration),"mxl.tbd.loaf_longest_duration_excluding_first":Math.round(this._longestDurationExcludingFirst)};try{this.logger.emit({attributes:t,eventName:`mxl-loaf-report`,severityNumber:B.INFO})}catch(e){this._diag.error(`error emitting loaf report`,e)}try{if(this._scriptSummaries.size>0){let e=[...this._scriptSummaries].sort((e,t)=>t[1].totalDuration-e[1].totalDuration).slice(0,250).map(([e,t])=>[e,{count:t.count,style_and_layout_duration:Math.round(t.styleAndLayoutDuration),total_duration:Math.round(t.totalDuration)}]);this.logger.emit({attributes:{[N]:`ux.loaf_scripts`},body:JSON.stringify(Object.fromEntries(e)),eventName:`mxl-loaf-scripts`,severityNumber:B.INFO})}}catch(e){this._diag.error(`error emitting loaf script summary`,e)}this._resetAccumulators()}_resetAccumulators(){this._totalDuration=0,this._workDuration=0,this._styleLayoutDuration=0,this._count=0,this._longestDuration=0,this._longestDurationExcludingFirst=0,this._totalBlockingDuration=0,this._scriptSummaries=new Map}},fl=class extends H{constructor({diag:e,perf:t,limitManager:n}={}){super({config:{},diag:e,instrumentationName:`ServerTimingInstrumentation`,instrumentationVersion:`1.0.0`,limitManager:n,perf:t}),j(this,`_onLoad`,void 0),j(this,`_performanceCollected`,!1),this._onLoad=()=>{this._readServerTiming()},this._config.enabled&&this.enable()}enable(){if(window.removeEventListener(`load`,this._onLoad),window.document.readyState===`complete`){this._readServerTiming();return}window.addEventListener(`load`,this._onLoad)}disable(){window.removeEventListener(`load`,this._onLoad)}_readServerTiming(){var e;if(this._performanceCollected)return;this._performanceCollected=!0;let t=(e=performance.getEntriesByType(`navigation`)[0])==null?void 0:e.serverTiming;if(t!=null&&t.length)for(let e of t){var n;if((n=this.limitManager)!=null&&n.limitServerTimingEntry())return;this.logger.emit({attributes:{[N]:`ux.server_timing`,"mxl.server_timing.name":e.name,"mxl.server_timing.duration":e.duration,"mxl.server_timing.description":e.description},eventName:`mxl-server-timing`,severityNumber:B.INFO})}}};let pl=`mxl.user_timing.start_time`,ml=`mxl.user_timing.duration`,hl=`mxl.user_timing.entry_type`;var gl=class extends H{constructor({diag:e,perf:t,limitManager:n,allowedEntries:r}={}){super({config:{},diag:e,instrumentationName:`UserTimingInstrumentation`,instrumentationVersion:`1.0.0`,limitManager:n,perf:t}),j(this,`_markObserver`,null),j(this,`_measureObserver`,null),j(this,`_seenEntries`,new Set),j(this,`_isEnabled`,!1),j(this,`_allowedEntries`,void 0),this._allowedEntries=r,this._config.enabled&&this.enable()}enable(){this._isEnabled||(this._isEnabled=!0,this._seenEntries=new Set,this._markObserver&&this._markObserver.disconnect(),this._measureObserver&&this._measureObserver.disconnect(),this._markObserver=ol(`mark`,this._processEntry.bind(this),{diag:this._diag}),this._markObserver||this._diag.error(`failed to enable mark observer`),this._measureObserver=ol(`measure`,e=>this._processEntry(e),{diag:this._diag}),this._measureObserver||this._diag.error(`failed to enable measure observer`),!this._markObserver&&!this._measureObserver&&(this._isEnabled=!1))}disable(){this._isEnabled=!1,this._markObserver&&(this._markObserver.disconnect(),this._markObserver=null),this._measureObserver&&(this._measureObserver.disconnect(),this._measureObserver=null),this._seenEntries=new Set}_processEntry(e){var t;if(!this._isEnabled||this._allowedEntries!==void 0&&!(Array.isArray(this._allowedEntries)?this._allowedEntries.includes(e.name):this._allowedEntries(e)))return;let n=`${location.href}::${e.name}`;if(this._seenEntries.has(n)||(this._seenEntries.add(n),(t=this.limitManager)!=null&&t.limitUserTimingEntry(e.entryType)))return;if(e.entryType===`measure`){let t=e.detail;this.tracer.startSpan(e.name,{attributes:V({[N]:`ux.user_timing`,[Yt]:`user_timing`,[hl]:e.entryType,[pl]:this.perf.millisFromZeroTime(e.startTime),[ml]:e.duration},t!=null&&{"mxl.user_timing.detail":JSON.stringify(t)}),startTime:this.perf.epochMillisFromOriginOffset(e.startTime)}).end(this.perf.epochMillisFromOriginOffset(e.startTime+e.duration));return}let{detail:r}=e,i=r==null?void 0:JSON.stringify(r);this.logger.emit({attributes:{[N]:`ux.user_timing`,"mxl.user_timing.name":e.name,[pl]:this.perf.millisFromZeroTime(e.startTime),[ml]:e.duration,[hl]:e.entryType},body:i,eventName:`mxl-user-timing`,severityNumber:B.INFO,timestamp:this.perf.epochMillisFromOriginOffset(e.startTime)})}};let _l=`mxl.web_vital.attribution.`;var vl=class{constructor(){j(this,`t`,void 0),j(this,`o`,0),j(this,`i`,[])}u(e){var t;if(e.hadRecentInput)return;let n=this.i[0],r=this.i.at(-1);this.o&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),(t=this.t)==null||t.call(this,e)}};let yl=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},bl=e=>{if(document.readyState===`loading`)return`loading`;let t=yl();if(t){if(e<t.domInteractive)return`loading`;if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return`dom-interactive`;if(t.domComplete===0||e<t.domComplete)return`dom-content-loaded`}return`complete`},xl=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,``)},Sl=e=>{let t=``;try{for(;(e==null?void 0:e.nodeType)!==9;){let n=e,r=n.id?`#`+n.id:[xl(n),...Array.from(n.classList).sort()].join(`.`);if(t.length+r.length>99)return t||r;if(t=t?r+`>`+t:r,n.id)break;e=n.parentNode}}catch(e){}return t},Cl=new WeakMap;function wl(e,t){return Cl.get(e)||Cl.set(e,new t),Cl.get(e)}let Tl=-1,El=()=>Tl,Dl=e=>{addEventListener(`pageshow`,t=>{t.persisted&&(Tl=t.timeStamp,e(t))},!0)},Q=(e,t,n,r)=>{let i,a;return o=>{var s;t.value>=0&&(o||r)&&(a=t.value-((s=i)==null?0:s),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`)(t.value,n),e(t)))}},Ol=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},kl=()=>{var e,t;return(e=(t=yl())==null?void 0:t.activationStart)==null?0:e},$=(e,t=-1)=>{let n=yl(),r=`navigate`;return El()>=0?r=`back-forward-cache`:n&&(document.prerendering||kl()>0?r=`prerender`:document.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+0xe8d4a51000}`,navigationType:r}},Al=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{queueMicrotask(()=>{t(e.getEntries())})});return r.observe(V({type:e,buffered:!0},n)),r}}catch(e){}},jl=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Ml=-1,Nl=new Set,Pl=()=>document.visibilityState!==`hidden`||document.prerendering?1/0:0,Fl=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of Nl)e();isFinite(Ml)||(Ml=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,Fl,!0))}},Il=()=>{if(Ml<0){var e;let t=kl(),n=document.prerendering||(e=globalThis.performance.getEntriesByType(`visibility-state`).find(e=>e.name===`hidden`&&e.startTime>=t))==null?void 0:e.startTime;Ml=n==null?Pl():n,addEventListener(`visibilitychange`,Fl,!0),addEventListener(`prerenderingchange`,Fl,!0),Dl(()=>{setTimeout(()=>{Ml=Pl()})})}return{get firstHiddenTime(){return Ml},onHidden(e){Nl.add(e)}}},Ll=e=>{document.prerendering?addEventListener(`prerenderingchange`,e,!0):e()},Rl=[1800,3e3],zl=(e,t={})=>{Ll(()=>{let n=Il(),r,i=$(`FCP`),a=Al(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-kl(),0),i.entries.push(t),r(!0)))});a&&(r=Q(e,i,Rl,t.reportAllChanges),Dl(n=>{i=$(`FCP`),r=Q(e,i,Rl,t.reportAllChanges),Ol(()=>{i.value=performance.now()-n.timeStamp,r(!0)})}))})},Bl=[.1,.25],Vl=e=>e.find(e=>{var t;return((t=e.node)==null?void 0:t.nodeType)===1})||e[0],Hl=(e,t={})=>{let n=wl(t=Object.assign({},t),vl),r=new WeakMap;n.t=e=>{var n;if(!(e==null||(n=e.sources)==null)&&n.length){let n=Vl(e.sources),o=n==null?void 0:n.node;if(o){var i,a;let e=(i=(a=t.generateTarget)==null?void 0:a.call(t,o))==null?Sl(o):i;r.set(n,e)}}},((e,t={})=>{let n=Il();zl(jl(()=>{let r,i=$(`CLS`,0),a=wl(t,vl),o=e=>{for(let t of e)a.u(t);a.o>i.value&&(i.value=a.o,i.entries=a.i,r())},s=Al(`layout-shift`,o);s&&(r=Q(e,i,Bl,t.reportAllChanges),n.onHidden(()=>{o(s.takeRecords()),r(!0)}),Dl(()=>{a.o=0,i=$(`CLS`,0),r=Q(e,i,Bl,t.reportAllChanges),Ol(r)}),setTimeout(r))}))})(t=>{e((e=>{let t={};if(e.entries.length){var n;let i=e.entries.reduce((e,t)=>e.value>t.value?e:t);if(!(i==null||(n=i.sources)==null)&&n.length){let e=Vl(i.sources);e&&(t={largestShiftTarget:r.get(e),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:e,largestShiftEntry:i,loadState:bl(i.startTime)})}}return Object.assign(e,{attribution:t})})(t))},t)},Ul=(e,t={})=>{zl(t=>{e((e=>{let t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:bl(El())};if(e.entries.length){let n=yl(),r=e.entries.at(-1);if(n){let i=n.activationStart||0,a=Math.max(0,n.responseStart-i);t={timeToFirstByte:a,firstByteToFCP:e.value-a,loadState:bl(e.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}return Object.assign(e,{attribution:t})})(t))},t)},Wl=0,Gl=1/0,Kl=0,ql=e=>{for(let t of e)t.interactionId&&(Gl=Math.min(Gl,t.interactionId),Kl=Math.max(Kl,t.interactionId),Wl=Kl?(Kl-Gl)/7+1:0)},Jl,Yl=()=>{var e;return Jl?Wl:(e=performance.interactionCount)==null?0:e},Xl=()=>{`interactionCount`in performance||Jl||(Jl=Al(`event`,ql,{durationThreshold:0}))},Zl=0;var Ql=class{constructor(){j(this,`l`,[]),j(this,`h`,new Map),j(this,`m`,void 0),j(this,`p`,void 0)}v(){Zl=Yl(),this.l.length=0,this.h.clear()}M(){let e=Math.min(this.l.length-1,Math.floor((Yl()-Zl)/50));return this.l[e]}u(e){var t;if((t=this.m)==null||t.call(this,e),!e.interactionId&&e.entryType!==`first-input`)return;let n=this.l.at(-1),r=this.h.get(e.interactionId);if(r||this.l.length<10||e.duration>n.T){var i;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.h.set(r.id,r),this.l.push(r)),this.l.sort((e,t)=>t.T-e.T),this.l.length>10){let e=this.l.splice(10);for(let t of e)this.h.delete(t.id)}(i=this.p)==null||i.call(this,r)}}};let $l=e=>{let t=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState===`hidden`)e();else{let r=jl(e),i=-1,a=()=>{n(i),r()};addEventListener(`visibilitychange`,a,{once:!0,capture:!0}),i=t(()=>{removeEventListener(`visibilitychange`,a,{capture:!0}),r()})}},eu=[200,500],tu=(e,t={})=>{let n=wl(t=Object.assign({},t),Ql),r=[],i=[],a=0,o=new WeakMap,s=new WeakMap,c=!1,l=()=>{c||($l(u),c=!0)},u=()=>{let e=new Set(n.l.map(e=>o.get(e.entries[0]))),t=i.length-10;i=i.filter((n,r)=>r>=t||e.has(n));let s=new Set;for(let e of i){let t=d(e.startTime,e.processingEnd);for(let e of t)s.add(e)}r=r.filter(e=>e.startTime>a||s.has(e)),c=!1};n.m=e=>{let n=e.startTime+e.duration,r;a=Math.max(a,e.processingEnd);for(let a=i.length-1;a>=0;a--){let o=i[a];if(Math.abs(n-o.renderTime)<=8){r=o,r.startTime=Math.min(e.startTime,r.startTime),r.processingStart=Math.min(e.processingStart,r.processingStart),r.processingEnd=Math.max(e.processingEnd,r.processingEnd),!1!==t.includeProcessedEventEntries&&r.entries.push(e);break}}r||(r={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:!1===t.includeProcessedEventEntries?[]:[e]},i.push(r)),(e.interactionId||e.entryType===`first-input`)&&o.set(e,r),l()},n.p=e=>{if(!s.get(e)){let i=e.entries[0].target;if(i){var n,r;let a=(n=(r=t.generateTarget)==null?void 0:r.call(t,i))==null?Sl(i):n;s.set(e,a)}}};let d=(e,t)=>{let n=[];for(let i of r)if(!(i.startTime+i.duration<e)){if(i.startTime>t)break;n.push(i)}return n},f=e=>{let t=e.entries[0],r=o.get(t),i=t.processingStart,a=Math.max(t.startTime+t.duration,i),c=Math.min(r.processingEnd,a),l=r.entries.sort((e,t)=>e.processingStart-t.processingStart),u=d(t.startTime,c),f=n.h.get(t.interactionId),p={interactionTarget:s.get(f),interactionType:t.name.startsWith(`key`)?`keyboard`:`pointer`,interactionTime:t.startTime,nextPaintTime:a,processedEventEntries:l,longAnimationFrameEntries:u,inputDelay:i-t.startTime,processingDuration:c-i,presentationDelay:a-c,loadState:bl(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(e=>{var t;if(!((t=e.longAnimationFrameEntries)!=null&&t.length))return;let n=e.interactionTime,r=e.inputDelay,i=e.processingDuration,a,o,s=0,c=0,l=0,u=0;for(let t of e.longAnimationFrameEntries){c=c+t.startTime+t.duration-t.styleAndLayoutStart;for(let e of t.scripts){let t=e.startTime+e.duration;if(t<n)continue;let l=t-Math.max(n,e.startTime),d=e.duration?l/e.duration*e.forcedStyleAndLayoutDuration:0;s+=l-d,c+=d,l>u&&(o=e.startTime<n+r?`input-delay`:e.startTime>=n+r+i?`presentation-delay`:`processing-duration`,a=e,u=l)}}let d=e.longAnimationFrameEntries.at(-1),f=d?d.startTime+d.duration:0;f>=n+r+i&&(l=e.nextPaintTime-f),a&&o&&(e.longestScript={entry:a,subpart:o,intersectingDuration:u}),e.totalScriptDuration=s,e.totalStyleAndLayoutDuration=c,e.totalPaintDuration=l,e.totalUnattributedDuration=e.nextPaintTime-n-s-c-l})(p),Object.assign(e,{attribution:p})};Al(`long-animation-frame`,e=>{r=r.concat(e),l()}),((e,t={})=>{if(!globalThis.PerformanceEventTiming||!(`interactionId`in PerformanceEventTiming.prototype))return;let n=Il();Ll(()=>{var r;Xl();let i,a=$(`INP`),o=wl(t,Ql),s=e=>{$l(()=>{for(let t of e)o.u(t);let t=o.M();t&&t.T!==a.value&&(a.value=t.T,a.entries=t.entries,i())})},c=Al(`event`,s,{durationThreshold:(r=t.durationThreshold)==null?40:r});i=Q(e,a,eu,t.reportAllChanges),c&&(c.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),i(!0)}),Dl(()=>{o.v(),a=$(`INP`),i=Q(e,a,eu,t.reportAllChanges)}))})})(t=>{e(f(t))},t)};var nu=class{constructor(){j(this,`m`,void 0)}u(e){var t;(t=this.m)==null||t.call(this,e)}};let ru=[2500,4e3],iu=(e,t={})=>{let n=wl(t=Object.assign({},t),nu),r=new WeakMap;n.m=e=>{let n=e.element;if(n){var i,a;let o=(i=(a=t.generateTarget)==null?void 0:a.call(t,n))==null?Sl(n):i;r.set(e,o)}else e.id&&r.set(e,`#${e.id}`)},((e,t={})=>{Ll(()=>{let n=Il(),r,i=$(`LCP`),a=wl(t,nu),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a.u(t),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-kl(),0),i.entries=[t],r())},s=Al(`largest-contentful-paint`,o);if(s){r=Q(e,i,ru,t.reportAllChanges);let n=jl(()=>{o(s.takeRecords()),s.disconnect(),r(!0)}),a=e=>{e.isTrusted&&($l(n),removeEventListener(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])addEventListener(e,a,{capture:!0});Dl(n=>{i=$(`LCP`),r=Q(e,i,ru,t.reportAllChanges),Ol(()=>{i.value=performance.now()-n.timeStamp,r(!0)})})}})})(t=>{e((e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){let n=e.entries.at(-1),i=n.url&&performance.getEntriesByType(`resource`).find(e=>e.name===n.url);t.target=r.get(n),t.lcpEntry=n,n.url&&(t.url=n.url),i&&(t.lcpResourceEntry=i);let a=yl();if(a){let n=a.activationStart||0,r=Math.max(0,a.responseStart-n),o=Math.max(r,i?(i.requestStart||i.startTime)-n:0),s=Math.min(e.value,Math.max(o,i?i.responseEnd-n:0));t=V(V({},t),{},{timeToFirstByte:r,resourceLoadDelay:o-r,resourceLoadDuration:s-o,elementRenderDelay:e.value-s,navigationEntry:a})}}return Object.assign(e,{attribution:t})})(t))},t)},au=[800,1800],ou=e=>{document.prerendering?Ll(()=>ou(e)):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>ou(e),!0)},su=(e,t={})=>{((e,t={})=>{let n=$(`TTFB`),r=Q(e,n,au,t.reportAllChanges);ou(()=>{let i=yl();i&&(n.value=Math.max(i.responseStart-kl(),0),n.entries=[i],r(!0),Dl(()=>{n=$(`TTFB`,0),r=Q(e,n,au,t.reportAllChanges),r(!0)}))})})(t=>{e((e=>{let t={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(e.entries.length){let n=e.entries[0],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),a=Math.max(n.domainLookupStart-r,0),o=Math.max(n.connectStart-r,0),s=Math.max(n.connectEnd-r,0);t={waitingDuration:i,cacheDuration:a-i,dnsDuration:o-a,connectionDuration:s-o,requestDuration:e.value-s,navigationEntry:n}}return Object.assign(e,{attribution:t})})(t))},t)},cu=[`CLS`,`INP`,`LCP`,`FCP`,`TTFB`],lu={CLS:Hl,FCP:Ul,LCP:iu,INP:tu,TTFB:su,FID:void 0},uu=e=>{let t=typeof e;return t===`number`||t===`string`||t===`boolean`},du=e=>Math.round(Math.max(0,e)),fu=e=>{let t={},{attribution:n}=e;if(!n||typeof n!=`object`)return t;for(let[e,r]of Object.entries(n))uu(r)&&(t[`${_l}${e}`]=r);return t},pu=(e,t)=>{let n={},r=e.attribution;try{if(r.longAnimationFrameEntries.length>0){let e=new Map;for(let t of r.longAnimationFrameEntries)for(let n of t.scripts){let t=n.sourceURL||`(inline)`;t.length>2048&&(t=`${t.substring(0,2048)}...`);let r=e.get(t);r?(r.totalDuration+=n.duration,r.styleAndLayoutDuration+=n.forcedStyleAndLayoutDuration,r.count++):e.set(t,{count:1,styleAndLayoutDuration:n.forcedStyleAndLayoutDuration,totalDuration:n.duration})}e.size>0&&(n[`${_l}loaf_scripts`]=JSON.stringify(Object.fromEntries([...e].sort((e,t)=>t[1].totalDuration-e[1].totalDuration).slice(0,250).map(([e,t])=>[e,{count:t.count,style_and_layout_duration:Math.round(t.styleAndLayoutDuration),total_duration:Math.round(t.totalDuration)}]))))}}catch(e){t.error(`error building loaf scripts for INP`,e)}return n},mu=(e,t)=>{let n={},r=e.attribution.navigationEntry;if(r)try{var i;let e=du(r.redirectEnd-r.redirectStart),t=du(r.domainLookupEnd-r.domainLookupStart),a=du(r.secureConnectionStart>0?r.secureConnectionStart-r.connectStart:r.connectEnd-r.connectStart),o=du(r.secureConnectionStart>0?r.connectEnd-r.secureConnectionStart:0),s=du(Math.max((i=r.finalResponseHeadersStart)==null?0:i,r.responseStart)-r.requestStart),c=du(Math.round(r.responseEnd-r.startTime)-e-t-a-o-s),l=_l;n[`${l}redirect`]=e,n[`${l}domainLookup`]=t,n[`${l}tcpConnection`]=a,n[`${l}tlsNegotiation`]=o,n[`${l}serverResponse`]=s,n[`${l}unattributed`]=c}catch(e){t.error(`error computing TTFB timing breakdown`,e)}else t.debug(`TTFB navigationEntry unavailable, skipping timing breakdown`);return n};var hu=class extends H{constructor({diag:e,perf:t,listeners:n=lu,urlDocument:r=window.document,urlAttribution:i=!0,pageManager:a}={}){super({config:{},diag:e,instrumentationName:`WebVitalsInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),j(this,`_listeners`,void 0),j(this,`_urlDocument`,void 0),j(this,`_urlAttribution`,void 0),j(this,`_pageManager`,void 0),j(this,`_attributedPage`,{CLS:void 0,FCP:void 0,INP:void 0,LCP:void 0,TTFB:void 0}),j(this,`_largestShiftTargetForCLS`,void 0),j(this,`_listenersRegistered`,!1),j(this,`_isEnabled`,!1),this._listeners=n,this._urlDocument=r,this._urlAttribution=i,this._pageManager=a==null?M.getPageManager():a,this._config.enabled&&this.enable()}disable(){this._isEnabled=!1,this._diag.debug(`WebVitalsInstrumentation disabled, pausing emission`)}enable(){if(this._isEnabled=!0,this._listenersRegistered){this._diag.debug(`WebVitalsInstrumentation listeners already registered, resuming emission`);return}if(this._listenersRegistered=!0,cu.forEach(e=>{var t,n;(t=(n=this._listeners)[e])==null||t.call(n,t=>{if(!this._isEnabled)return;let n=this.userSessionManager.getSessionPartSpan();if(!n)return;let r=this._getTimeForMetric(t),i=this._getAttributedPageForMetric(t),a=V(V(V({"mxl.type":`ux.web_vital`,"url.full":i.fullURL,"browser.url.full":i.fullURL,"mxl.web_vital.navigation_type":t.navigationType,"mxl.web_vital.name":t.name,"mxl.web_vital.rating":t.rating,"mxl.web_vital.id":t.id,"mxl.web_vital.delta":t.delta,"mxl.web_vital.value":t.value},fu(t)),e===`INP`?pu(t,this._diag):{}),e===`TTFB`?mu(t,this._diag):{});i.path&&i.pageID&&(a[`app.surface.name`]=i.path,a[`app.surface.id`]=i.pageID),i.label&&(a[`app.surface.label`]=i.label),n.addEvent(`mxl-web-vitals-report-${e}`,a,r)})}),this._urlAttribution){var e,t,n,r,i,a,o,s,c,l;(e=(t=this._listeners).TTFB)==null||e.call(t,()=>{this._attributedPage.TTFB=this._currentAttributedPage()},{reportAllChanges:!0}),(n=(r=this._listeners).FCP)==null||n.call(r,()=>{this._attributedPage.FCP=this._currentAttributedPage()},{reportAllChanges:!0}),(i=(a=this._listeners).INP)==null||i.call(a,()=>{this._attributedPage.INP=this._currentAttributedPage()},{reportAllChanges:!0}),(o=(s=this._listeners).LCP)==null||o.call(s,()=>{this._attributedPage.LCP=this._currentAttributedPage()},{reportAllChanges:!0}),(c=(l=this._listeners).CLS)==null||c.call(l,e=>{let t=e;this._largestShiftTargetForCLS!==t.attribution.largestShiftTarget&&(this._largestShiftTargetForCLS=t.attribution.largestShiftTarget,this._attributedPage.CLS=this._currentAttributedPage())},{reportAllChanges:!0})}}_getTimeForMetric(e){return e.name===`CLS`&&e.attribution.largestShiftTime?this.perf.epochMillisFromOriginOffset(e.attribution.largestShiftTime):e.name===`INP`&&e.attribution.interactionTime?this.perf.epochMillisFromOriginOffset(e.attribution.interactionTime):this.perf.getNowMillis()}_currentAttributedPage(){let e={fullURL:this._urlDocument.URL},t=this._pageManager.getCurrentRoute(),n=this._pageManager.getCurrentPageId();t&&n&&(e.path=t.path,e.pageID=n);let r=this._pageManager.getPageLabel();return r&&(e.label=r),e}_getAttributedPageForMetric(e){return e.name===`FCP`&&this._attributedPage.FCP?this._attributedPage.FCP:e.name===`TTFB`&&this._attributedPage.TTFB?this._attributedPage.TTFB:e.name===`INP`&&this._attributedPage.INP?this._attributedPage.INP:e.name===`LCP`&&this._attributedPage.LCP?this._attributedPage.LCP:e.name===`CLS`&&this._attributedPage.CLS&&e.attribution.largestShiftTarget===this._largestShiftTargetForCLS?this._attributedPage.CLS:this._currentAttributedPage()}};let gu=(e={},{logManager:t,userSessionManager:n,pageManager:r,limitManager:i,includeReplay:a=!1,recordUserSessions:o=!0,replayOptions:s})=>{var c,l,u,d,f,p,m,h,ee,te,g;let _=[];if((c=e.omit)!=null&&c.has(`exception`)||_.push(new ll(e.exception)),(l=e.omit)!=null&&l.has(`click`)||_.push(new $c(e.click)),(u=e.omit)!=null&&u.has(`web-vital`)||_.push(new hu(V(V({},e[`web-vital`]),{},{pageManager:r}))),(d=e.omit)!=null&&d.has(`loaf`)||_.push(new dl(V({},e.loaf))),(f=e.omit)!=null&&f.has(`user-timing`)||_.push(new gl(e[`user-timing`])),(p=e.omit)!=null&&p.has(`element-timing`)||_.push(new sl(V(V({},e[`element-timing`]),{},{limitManager:i}))),(m=e.omit)!=null&&m.has(`document-load`)||_.push(new rl(e[`document-load`])),(h=e.omit)!=null&&h.has(`server-timing`)||_.push(new fl(V(V({},e[`server-timing`]),{},{limitManager:i}))),!((ee=e.omit)!=null&&ee.has(`@opentelemetry/instrumentation-fetch`))){var ne,v,y,re;_.push(new Ic(V(V({},e[`@opentelemetry/instrumentation-fetch`]),{},{ignoreUrls:[...(ne=(v=e.network)==null?void 0:v.ignoreUrls)==null?[]:ne,...(y=(re=e[`@opentelemetry/instrumentation-fetch`])==null?void 0:re.ignoreUrls)==null?[]:y]})))}if(!((te=e.omit)!=null&&te.has(`@opentelemetry/instrumentation-xml-http-request`))){var ie,ae,oe,se;_.push(new Zc(V(V({},e[`@opentelemetry/instrumentation-xml-http-request`]),{},{ignoreUrls:[...(ie=(ae=e.network)==null?void 0:ae.ignoreUrls)==null?[]:ie,...(oe=(se=e[`@opentelemetry/instrumentation-xml-http-request`])==null?void 0:se.ignoreUrls)==null?[]:oe]})))}if(e[`empty-root`]&&_.push(new cl(V({},e[`empty-root`]))),a&&!((g=e.omit)!=null&&g.has(`replay`))){var ce;_.push(new di(V(V({},e.replay),{},{recordUserSessions:o,rrwebOptions:s==null?(ce=e.replay)==null?void 0:ce.rrwebOptions:s})))}for(let e of _)e instanceof H&&(n&&e.setUserSessionManager(n),t&&e.setLogManager(t),i&&e.setLimitManager(i));return _},_u=e=>{if(e!==void 0){if(typeof e!=`string`)throw Error(`appID must be a string, or omitted if not using MXL. Received ${String(e)}`);return e}},vu=e=>{if(e===void 0){let e=`MXLAppVersionX.X.X`;return e===``?`unspecified`:e}if(typeof e!=`string`)throw Error(`if appVersion is specified, it must be a string. Received ${String(e)}`);let t=e.trim();if(t===``)throw Error(`if appVersion is specified, it cannot be an empty string.`);return t},yu=({appID:e,appVersion:t,resource:n=Ai(),spanExporters:r=[],logExporters:i=[],spanProcessors:a=[],propagator:o=null,defaultInstrumentationConfig:s,instrumentations:c=[],contextManager:l=null,logProcessors:u=[],attributeScrubbers:d=[],enableDefaultAttributeScrubbing:f=!0,additionalQueryParamsToScrub:m=[],logLevel:h=p.ERROR,mxlDataURL:ee,mxlConfigURL:te,diagLogger:g=O.createComponentLogger({namespace:`mxl-sdk`}),dynamicSDKConfigManager:_,dynamicSDKConfig:ne,registerGlobally:v=!0,blockNetworkSpanForwarding:y=!1,restrictedProtocols:re=new Set([`file:`]),useDocumentTitleAsPageLabel:ie=!0,recordUserSessions:oe=!0,replay:se,serviceName:ce,maxUserSessionDurationSeconds:le=Wo,inactivityTimeoutSeconds:ue=Go}={})=>{try{var de,fe;if(v){let e=vc.registered();if(e!==null)return g.warn(`SDK has already been successfully initialized, skipping this invocation of initSDK`),e}if(O.setLogger(new ae,{logLevel:h}),typeof window>`u`)return g.warn(`browser not detected, skipping initialization`),!1;let p=new Rr,pe=p.getNowMillis(),me=_u(e),he=vu(t),ge=me!==void 0;if(!ge&&!i.length&&!r.length)throw Error(`when appID is omitted, at least one logExporter or spanExporter must be set`);if(re.has(window.location.protocol))throw Error(`not initializing due to restricted protocol: ${window.location.protocol}`);if(ge&&typeof CompressionStream>`u`)throw Error(`CompressionStream is not supported in this browser and required for data compression.`);let _e=v?void 0:me,ve=new dc({diag:g,namespace:_e,storage:window.localStorage}),ye=new dc({diag:g,namespace:_e,storage:window.sessionStorage}),be=bu({registerGlobally:v,sdkLocalStorage:ve}),xe=be.getMXLUserId();if(ge&&!xe)throw Error(`userID is required when using MXL exporter`);let Se=V({},ne),Ce=_==null?new os({appID:me,appVersion:he,defaultConfig:Se,deviceId:xe,mxlConfigURL:te,storage:ve}):_;Ce.refreshRemoteConfig();let we=es({serviceName:(de=(fe=Ce.resolveApplicationServiceName)==null?void 0:fe.call(Ce,ce))==null?(()=>{var e;return(ce==null?void 0:ce.trim())||((e=Ce.getConfig().serviceName)==null?void 0:e.trim())||$o})():de}).merge(n).merge(ts({appVersion:he,diagLogger:g,pageSessionStorage:ye})),Te=new _s({blockNetworkSpanForwarding:y,deviceId:xe,dynamicConfigManager:Ce});if(!Te.isSDKEnabled())return g.debug(`SDK is disabled, skipping initialization.`),!1;let Ee=fc({defaultInstrumentationConfig:s,diag:g,featureManager:Te,propagator:o,registerGlobally:v}),De=new cs(Ro),Oe=[...f?gc(m):[],...d],b=xu({limitManager:De,perf:p,registerGlobally:v,sdkLocalStorage:ve,sdkSessionStorage:ye,userSessionConfig:{inactivityTimeoutSeconds:ue,maxUserSessionDurationSeconds:le}}),ke,x;ge&&(ke=new rc({exporter:new Io({appID:me,mxlDataURL:ee,userID:xe}),limitManager:De,userSessionManager:b}),x=new Zi(new No({appID:me,mxlDataURL:ee,userID:xe})));let S=wu({registerGlobally:v,useDocumentTitleAsPageLabel:ie}),{tracerProvider:C,mxlTraceManager:Ae}=Su({attributeScrubbers:Oe,contextManager:l,mxlSpanProcessor:ke,pageManager:S,propagator:Ee?new uc:o,registerGlobally:v,resource:we,spanExporters:r,spanProcessors:a,userManager:be});b.setTracerProvider(C);let{loggerProvider:je,mxlLogManager:Me}=Cu({attributeScrubbers:Oe,limitManager:De,logExporters:i,logProcessors:u,mxlLogProcessor:x,pageManager:S,registerGlobally:v,resource:we,sdkLocalStorage:ve,userManager:be,userSessionManager:b,visibilityDoc:window.document});b.startSessionPartInternal(`init`);let Ne=typeof window<`u`&&window.__MXL_DISABLE_SESSION_RECORDER===!0,Pe=!!(ge&&me&&xe&&!Ne),Fe=se,Ie=()=>gu(s,{includeReplay:Pe,limitManager:De,logManager:Me,pageManager:S,recordUserSessions:oe,replayOptions:Fe,userSessionManager:b}),w,Le;if(v){let e=gu(s,{includeReplay:Pe,limitManager:De,pageManager:S,recordUserSessions:oe,replayOptions:Fe,userSessionManager:b});w=e.find(e=>e instanceof di),Le=mi({instrumentations:[...e,...c]})}else{let e=Ie();w=e.find(e=>e instanceof di),Le=mi({instrumentations:[...e,...c],loggerProvider:je,tracerProvider:C})}let Re=!1,ze=!1,T=()=>{ze||(ze=!0,w==null||w.disable(),Le==null||Le(),b._shutdown())},Be=w?Lo(w):_c;g.info(`successfully initialized the SDK`);let Ve={flush:function(){var e=U(function*(){yield C.forceFlush(),yield je.forceFlush()});return function(){return e.apply(this,arguments)}}(),log:Me,page:S,session:b,sessionRecording:Be,setDynamicConfig:e=>{Ce.setConfig(e)},shutdown:function(){var e=U(function*(){Re||(Re=!0,T(),yield C.shutdown(),yield je.shutdown())});return function(){return e.apply(this,arguments)}}(),stop:T,trace:Ae,user:be};return v&&vc.register(Ve),b.recordSDKStartupDuration(p.getNowMillis()-pe),Ve}catch(e){let t=e instanceof Error?e.message:`Unknown error.`;return g.error(`failed to initialize the SDK: ${t}`),!1}},bu=({registerGlobally:e,sdkLocalStorage:t})=>{let n=new Ts({storage:t});return e&&Kt.setGlobalUserManager(n),n},xu=({limitManager:e,perf:t,registerGlobally:n,sdkLocalStorage:r,sdkSessionStorage:i,userSessionConfig:a})=>{let o=new Js({config:a,limitManager:e,perf:t,storage:r,tabStorage:i,visibilityDoc:window.document});return n&&jt.setGlobalUserSessionManager(o),o},Su=({resource:e,userManager:t,spanExporters:n,spanProcessors:r=[],propagator:i=null,contextManager:a=null,attributeScrubbers:o,registerGlobally:s,mxlSpanProcessor:c,pageManager:l})=>{let u=[...r,new Xs,new ec,new lc({userManager:t}),new ac({pageManager:l}),new oc({attributeScrubbers:o})];n==null||n.forEach(e=>{u.push(new la(e))}),c&&u.push(c);let d=new Da({resource:e,spanLimits:{attributeCountLimit:Ro.maxAllowed.session_property*2,eventCountLimit:Ro.maxAllowed.breadcrumb*2},spanProcessors:u}),f=new ys({tracerProvider:s?void 0:d});return s&&(zt.setGlobalTraceManager(f),d.register({contextManager:a||new wa,propagator:i})),{mxlTraceManager:f,tracerProvider:d}},Cu=({resource:e,userManager:t,logExporters:n,logProcessors:r,userSessionManager:i,limitManager:a,attributeScrubbers:o,registerGlobally:s,mxlLogProcessor:c,sdkLocalStorage:l,pageManager:u,visibilityDoc:d=window.document})=>{let f=[...r,new cc({userSessionManager:i}),new Ys,new Qs,new sc({userManager:t}),new Zs({attributeScrubbers:o}),new ic({pageManager:u})];n==null||n.forEach(e=>{f.push(new Zi(e))}),c&&f.push(c);let p=new Ki({processors:f,resource:e}),m=new ps({limitManager:a,loggerProvider:s?void 0:p,storage:l,userSessionManager:i,visibilityDoc:d});return s&&(qr.setGlobalLoggerProvider(p),vt.setGlobalLogManager(m)),{loggerProvider:p,mxlLogManager:m}},wu=({useDocumentTitleAsPageLabel:e,registerGlobally:t})=>{let n=new ms({useDocumentTitleAsPageLabel:e});return t&&M.setGlobalPageManager(n),n};return Object.defineProperty(e,`DiagLogLevel`,{enumerable:!0,get:function(){return p}}),e.ReplayInstrumentation=di,e.attributes=an,e.getNavigationInstrumentation=$r,e.initSDK=yu,e.log=vt,e.page=M,e.session=jt,e.trace=zt,e.user=Kt,e})({});
1
+ "use strict";window.MXLWebSdk=window.MXLWebSdk||(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,t)=>()=>(e&&(t=e(e=0)),t),r=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},i,a=n((()=>{i=`1.9.1`}));function o(e){let t=new Set([e]),n=new Set,r=e.match(s);if(!r)return()=>!1;let i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;let r=e.match(s);if(!r)return a(e);let c={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return c.prerelease!=null||i.major!==c.major?a(e):i.major===0?i.minor===c.minor&&i.patch<=c.patch?o(e):a(e):i.minor<=c.minor?o(e):a(e)}}var s,c,l=n((()=>{a(),s=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,c=o(i)}));function u(e,t,n,r=!1){var a;let o=h[m]=(a=h[m])==null?{version:i}:a;if(!r&&o[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return n.error(t.stack||t.message),!1}if(o.version!==`1.9.1`){let t=Error(`@opentelemetry/api: Registration of version v${o.version} for ${e} does not match previously registered API v${i}`);return n.error(t.stack||t.message),!1}return o[e]=t,n.debug(`@opentelemetry/api: Registered a global for ${e} v${i}.`),!0}function d(e){var t,n;let r=(t=h[m])==null?void 0:t.version;if(!(!r||!c(r)))return(n=h[m])==null?void 0:n[e]}function f(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${i}.`);let n=h[m];n&&delete n[e]}var p,m,h,g=n((()=>{a(),l(),p=i.split(`.`)[0],m=Symbol.for(`opentelemetry.js.api.${p}`),h=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof window==`object`?window:typeof global==`object`?global:{}}));function _(e,t,n){let r=d(`diag`);if(r)return r[e](t,...n)}var v,y=n((()=>{g(),v=class{constructor(e){this._namespace=e.namespace||`DiagComponentLogger`}debug(...e){return _(`debug`,this._namespace,e)}error(...e){return _(`error`,this._namespace,e)}info(...e){return _(`info`,this._namespace,e)}warn(...e){return _(`warn`,this._namespace,e)}verbose(...e){return _(`verbose`,this._namespace,e)}}})),b,x=n((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(b||(b={}))}));function ee(e,t){e<b.NONE?e=b.NONE:e>b.ALL&&(e=b.ALL),t=t||{};function n(n,r){let i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,b.ERROR),warn:n(`warn`,b.WARN),info:n(`info`,b.INFO),debug:n(`debug`,b.DEBUG),verbose:n(`verbose`,b.VERBOSE)}}var te=n((()=>{x()})),ne,S,re=n((()=>{y(),te(),x(),g(),ne=`diag`,S=class e{static instance(){return this._instance||(this._instance=new e),this._instance}constructor(){function e(e){return function(...t){let n=d(`diag`);if(n)return n[e](...t)}}let t=this;t.setLogger=(e,n={logLevel:b.INFO})=>{var r,i,a;if(e===t){let e=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error((r=e.stack)==null?e.message:r),!1}typeof n==`number`&&(n={logLevel:n});let o=d(`diag`),s=ee((i=n.logLevel)==null?b.INFO:i,e);if(o&&!n.suppressOverrideMessage){let e=(a=Error().stack)==null?`<failed to generate stacktrace>`:a;o.warn(`Current logger will be overwritten from ${e}`),s.warn(`Current logger will overwrite one already registered from ${e}`)}return u(`diag`,s,t,!0)},t.disable=()=>{f(ne,t)},t.createComponentLogger=e=>new v(e),t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}}})),ie,ae=n((()=>{ie=class e{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,n){let r=new e(this._entries);return r._entries.set(t,n),r}removeEntry(t){let n=new e(this._entries);return n._entries.delete(t),n}removeEntries(...t){let n=new e(this._entries);for(let e of t)n._entries.delete(e);return n}clear(){return new e}}})),oe,se=n((()=>{oe=Symbol(`BaggageEntryMetadata`)}));function ce(e={}){return new ie(new Map(Object.entries(e)))}function le(e){return typeof e!=`string`&&(ue.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=``),{__TYPE__:oe,toString(){return e}}}var ue,C=n((()=>{re(),ae(),se(),ue=S.instance()}));function de(e){return Symbol.for(e)}var fe,w,pe=n((()=>{fe=class e{constructor(t){let n=this;n._currentContext=t?new Map(t):new Map,n.getValue=e=>n._currentContext.get(e),n.setValue=(t,r)=>{let i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=t=>{let r=new e(n._currentContext);return r._currentContext.delete(t),r}}},w=new fe})),me,he,ge,T=n((()=>{if(me=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],he={},typeof console<`u`)for(let e of[`error`,`warn`,`info`,`debug`,`trace`,`log`])typeof console[e]==`function`&&(he[e]=console[e]);ge=class{constructor(){function e(e){return function(...t){let n=he[e];if(typeof n!=`function`&&(n=he.log),typeof n!=`function`&&console&&(n=console[e],typeof n!=`function`&&(n=console.log)),typeof n==`function`)return n.apply(console,t)}}for(let t=0;t<me.length;t++)this[me[t].n]=e(me[t].c)}}}));function _e(){return De}var ve,ye,be,xe,Se,Ce,we,E,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe=n((()=>{ve=class{constructor(){}createGauge(e,t){return ke}createHistogram(e,t){return Ae}createCounter(e,t){return Oe}createUpDownCounter(e,t){return je}createObservableGauge(e,t){return Ne}createObservableCounter(e,t){return Me}createObservableUpDownCounter(e,t){return Pe}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}},ye=class{},be=class extends ye{add(e,t){}},xe=class extends ye{add(e,t){}},Se=class extends ye{record(e,t){}},Ce=class extends ye{record(e,t){}},we=class{addCallback(e){}removeCallback(e){}},E=class extends we{},Te=class extends we{},Ee=class extends we{},De=new ve,Oe=new be,ke=new Se,Ae=new Ce,je=new xe,Me=new E,Ne=new Te,Pe=new Ee})),Ie,Le,Re=n((()=>{Ie={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},Le={set(e,t,n){e!=null&&(e[t]=n)}}})),ze,Be=n((()=>{pe(),ze=class{active(){return w}with(e,t,n,...r){return t.call(n,...r)}bind(e,t){return t}enable(){return this}disable(){return this}}})),Ve,He,Ue,We=n((()=>{Be(),g(),re(),Ve=`context`,He=new ze,Ue=class e{constructor(){}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalContextManager(e){return u(Ve,e,S.instance())}active(){return this._getContextManager().active()}with(e,t,n,...r){return this._getContextManager().with(e,t,n,...r)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return d(Ve)||He}disable(){this._getContextManager().disable(),f(Ve,S.instance())}}})),D,Ge=n((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(D||(D={}))})),Ke,qe,Je,Ye=n((()=>{Ge(),Ke=`0000000000000000`,qe=`00000000000000000000000000000000`,Je={traceId:qe,spanId:Ke,traceFlags:D.NONE}})),Xe,Ze=n((()=>{Ye(),Xe=class{constructor(e=Je){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}}));function Qe(e){return e.getValue(it)||void 0}function $e(){return Qe(Ue.getInstance().active())}function et(e,t){return e.setValue(it,t)}function tt(e){return e.deleteValue(it)}function nt(e,t){return et(e,new Xe(t))}function rt(e){var t;return(t=Qe(e))==null?void 0:t.spanContext()}var it,at=n((()=>{pe(),Ze(),We(),it=de(`OpenTelemetry Context Key SPAN`)}));function ot(e,t){if(typeof e!=`string`||e.length!==t)return!1;let n=0;for(let t=0;t<e.length;t+=4)n+=(dt[e.charCodeAt(t)]|0)+(dt[e.charCodeAt(t+1)]|0)+(dt[e.charCodeAt(t+2)]|0)+(dt[e.charCodeAt(t+3)]|0);return n===t}function st(e){return ot(e,32)&&e!==`00000000000000000000000000000000`}function ct(e){return ot(e,16)&&e!==`0000000000000000`}function lt(e){return st(e.traceId)&&ct(e.spanId)}function ut(e){return new Xe(e)}var dt,ft=n((()=>{Ye(),Ze(),dt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1])}));function pt(e){return typeof e==`object`&&!!e&&`spanId`in e&&typeof e.spanId==`string`&&`traceId`in e&&typeof e.traceId==`string`&&`traceFlags`in e&&typeof e.traceFlags==`number`}var mt,ht,gt=n((()=>{We(),at(),Ze(),ft(),mt=Ue.getInstance(),ht=class{startSpan(e,t,n=mt.active()){if(t!=null&&t.root)return new Xe;let r=n&&rt(n);return pt(r)&&lt(r)?new Xe(r):new Xe}startActiveSpan(e,t,n,r){let i,a,o;if(arguments.length<2)return;arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);let s=a==null?mt.active():a,c=this.startSpan(e,i,s),l=et(s,c);return mt.with(l,o,void 0,c)}}})),_t,vt,yt=n((()=>{gt(),_t=new ht,vt=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}startSpan(e,t,n){return this._getTracer().startSpan(e,t,n)}startActiveSpan(e,t,n,r){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):_t}}})),bt,xt=n((()=>{gt(),bt=class{getTracer(e,t,n){return new ht}}})),St,Ct,wt=n((()=>{yt(),xt(),St=new bt,Ct=class{getTracer(e,t,n){var r;return(r=this.getDelegateTracer(e,t,n))==null?new vt(this,e,t,n):r}getDelegate(){var e;return(e=this._delegate)==null?St:e}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,n){var r;return(r=this._delegate)==null?void 0:r.getTracer(e,t,n)}}})),Tt,Et=n((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(Tt||(Tt={}))})),Dt,Ot=n((()=>{(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(Dt||(Dt={}))})),kt,At=n((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(kt||(kt={}))})),O,jt=n((()=>{We(),O=Ue.getInstance()})),k,Mt=n((()=>{re(),k=S.instance()})),Nt,Pt,Ft=n((()=>{Fe(),Nt=class{getMeter(e,t,n){return De}},Pt=new Nt})),It,Lt,Rt=n((()=>{Ft(),g(),re(),It=`metrics`,Lt=class e{constructor(){}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalMeterProvider(e){return u(It,e,S.instance())}getMeterProvider(){return d(It)||Pt}getMeter(e,t,n){return this.getMeterProvider().getMeter(e,t,n)}disable(){f(It,S.instance())}}})),zt,Bt=n((()=>{Rt(),zt=Lt.getInstance()})),Vt,Ht=n((()=>{Vt=class{inject(e,t){}extract(e,t){return e}fields(){return[]}}}));function Ut(e){return e.getValue(qt)||void 0}function Wt(){return Ut(Ue.getInstance().active())}function Gt(e,t){return e.setValue(qt,t)}function Kt(e){return e.deleteValue(qt)}var qt,Jt=n((()=>{We(),pe(),qt=de(`OpenTelemetry Baggage Key`)})),Yt,Xt,Zt,Qt=n((()=>{g(),Ht(),Re(),Jt(),C(),re(),Yt=`propagation`,Xt=new Vt,Zt=class e{constructor(){this.createBaggage=ce,this.getBaggage=Ut,this.getActiveBaggage=Wt,this.setBaggage=Gt,this.deleteBaggage=Kt}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalPropagator(e){return u(Yt,e,S.instance())}inject(e,t,n=Le){return this._getGlobalPropagator().inject(e,t,n)}extract(e,t,n=Ie){return this._getGlobalPropagator().extract(e,t,n)}fields(){return this._getGlobalPropagator().fields()}disable(){f(Yt,S.instance())}_getGlobalPropagator(){return d(Yt)||Xt}}})),A,$t=n((()=>{Qt(),A=Zt.getInstance()})),en,tn,nn=n((()=>{g(),wt(),ft(),at(),re(),en=`trace`,tn=class e{constructor(){this._proxyTracerProvider=new Ct,this.wrapSpanContext=ut,this.isSpanContextValid=lt,this.deleteSpan=tt,this.getSpan=Qe,this.getActiveSpan=$e,this.getSpanContext=rt,this.setSpan=et,this.setSpanContext=nt}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalTracerProvider(e){let t=u(en,this._proxyTracerProvider,S.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return d(en)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){f(en,S.instance()),this._proxyTracerProvider=new Ct}}})),j,rn=n((()=>{nn(),j=tn.getInstance()})),M=n((()=>{C(),pe(),T(),x(),Fe(),Re(),yt(),wt(),Et(),Ot(),At(),Ge(),ft(),Ye(),jt(),Mt(),Bt(),$t(),rn()}));M();function an(e,t,n,r=new Set){return new Proxy(e,{get(e,i,a){let o=Reflect.get(e,i,a);return typeof o!=`function`||r.has(i)?o:(...r)=>{try{return o.apply(e,r)}catch(e){let a=e instanceof Error?e.message:`Unknown error`;n.error(`${String(i)}: ${a}`);let o=t[i];return typeof o==`function`?o.apply(t,r):void 0}}}})}var on=class{logException(e,t){}message(e,t,n){}};function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},sn(e)}var cn=n((()=>{}));function ln(e,t){if(sn(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(sn(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var un=n((()=>{cn()}));function dn(e){var t=ln(e,`string`);return sn(t)==`symbol`?t:t+``}var fn=n((()=>{cn(),un()}));function N(e,t,n){return(t=dn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=n((()=>{fn()}));P();let pn=new on;var mn=class{constructor(){N(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?pn:e}setDelegate(e){this._delegate=e}logException(e,t){this.getDelegate().logException(e,t)}message(e,t,n){this.getDelegate().message(e,t,n)}};P();let hn=new on,gn=new Set([`setDelegate`,`getDelegate`]);var _n=class e{static getInstance(){if(!e._instance){let t=new mn,n=an(t,hn,k.createComponentLogger({namespace:`LogAPI`}),gn);e._instance=Object.assign(n,{getLogManager(){return t},setGlobalLogManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};N(_n,`_instance`,void 0);let vn=_n.getInstance();var yn=class{setCurrentRoute(e){}getCurrentRoute(){return null}getCurrentPageId(){return``}setPageLabel(e){}getPageLabel(){return null}clearCurrentRoute(){}};P();let bn=new yn;var xn=class{constructor(){N(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?bn:e}setDelegate(e){this._delegate=e}setCurrentRoute(e){this.getDelegate().setCurrentRoute(e)}getCurrentRoute(){return this.getDelegate().getCurrentRoute()}getCurrentPageId(){return this.getDelegate().getCurrentPageId()}setPageLabel(e){this.getDelegate().setPageLabel(e)}getPageLabel(){return this.getDelegate().getPageLabel()}clearCurrentRoute(){this.getDelegate().clearCurrentRoute()}};M(),P();let Sn=new yn,Cn=new Set([`setDelegate`,`getDelegate`]);var wn=class e{static getInstance(){if(!e._instance){let t=new xn,n=an(t,Sn,k.createComponentLogger({namespace:`PageAPI`}),Cn);e._instance=Object.assign(n,{getPageManager(){return t},setGlobalPageManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};N(wn,`_instance`,void 0);let Tn=wn.getInstance();var En=class{addBreadcrumb(e){}addProperty(e,t,n){}removeProperty(e){}getUserSessionId(){return null}getPreviousUserSessionId(){return null}getUserSessionStartTime(){return null}endUserSession(){}getUserSessionAttributes(){return null}getSessionPartProperties(){return{}}getSessionPartId(){return null}getSessionPartSpan(){return null}startSessionPartInternal(e){}endSessionPartInternal(e,t){}incrSessionPartCountForKey(e){}incrNextSessionPartCountForKey(e){}addSessionPartStartedListener(e){return()=>{}}addSessionPartEndedListener(e){return()=>{}}setTracerProvider(){}recordSDKStartupDuration(e){}_clearMaxDurationTimer(){}_shutdown(){}};P();let Dn=new En;var On=class{constructor(){N(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?Dn:e}setDelegate(e){let t=this._delegate;t&&t!==e&&t._shutdown(),this._delegate=e}addBreadcrumb(e){this.getDelegate().addBreadcrumb(e)}addProperty(e,t,n){this.getDelegate().addProperty(e,t,n)}removeProperty(e){this.getDelegate().removeProperty(e)}getUserSessionId(){return this.getDelegate().getUserSessionId()}getPreviousUserSessionId(){return this.getDelegate().getPreviousUserSessionId()}getUserSessionStartTime(){return this.getDelegate().getUserSessionStartTime()}endUserSession(){this.getDelegate().endUserSession()}getUserSessionAttributes(){return this.getDelegate().getUserSessionAttributes()}getSessionPartProperties(){return this.getDelegate().getSessionPartProperties()}getSessionPartId(){return this.getDelegate().getSessionPartId()}getSessionPartSpan(){return this.getDelegate().getSessionPartSpan()}startSessionPartInternal(e){this.getDelegate().startSessionPartInternal(e)}endSessionPartInternal(e,t){this.getDelegate().endSessionPartInternal(e,t)}incrSessionPartCountForKey(e){this.getDelegate().incrSessionPartCountForKey(e)}incrNextSessionPartCountForKey(e){this.getDelegate().incrNextSessionPartCountForKey(e)}addSessionPartStartedListener(e){return this.getDelegate().addSessionPartStartedListener(e)}addSessionPartEndedListener(e){return this.getDelegate().addSessionPartEndedListener(e)}setTracerProvider(e){this.getDelegate().setTracerProvider(e)}recordSDKStartupDuration(e){this.getDelegate().recordSDKStartupDuration(e)}_clearMaxDurationTimer(){this.getDelegate()._clearMaxDurationTimer()}_shutdown(){this.getDelegate()._shutdown()}};M(),P();let kn=new En,An=new Set([`setDelegate`,`getDelegate`]);var jn=class e{static getInstance(){if(!e._instance){let t=new On,n=an(t,kn,k.createComponentLogger({namespace:`SessionAPI`}),An);e._instance=Object.assign(n,{getUserSessionManager(){return t},setGlobalUserSessionManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};N(jn,`_instance`,void 0);let Mn=jn.getInstance();M(),P();var Nn=class{constructor(e=Je){N(this,`_spanContext`,void 0),N(this,`attributes`,{}),this._spanContext=e}fail(e){}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}removeAttribute(e){return this}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}};M();var Pn=class{startSpan(e,t){return new Nn}setSpan(e,t){return w}getSpan(e){}};P();let Fn=new Pn;var In=class{constructor(){N(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?Fn:e}setDelegate(e){this._delegate=e}startSpan(e,t,n){return this.getDelegate().startSpan(e,t,n)}setSpan(e,t){return this.getDelegate().setSpan(e,t)}getSpan(e){return this.getDelegate().getSpan(e)}};M(),P();let Ln=new Pn,Rn=new Set([`setDelegate`,`getDelegate`]);var zn=class e{static getInstance(){if(!e._instance){let t=new In,n=an(t,Ln,k.createComponentLogger({namespace:`TraceAPI`}),Rn);e._instance=Object.assign(n,{getTraceManager(){return t},setGlobalTraceManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};N(zn,`_instance`,void 0);let Bn=zn.getInstance();var Vn=class{getMXLUserId(){return``}getUserId(){return null}setUserId(){}clearUserId(){}};P();let Hn=new Vn;var Un=class{constructor(){N(this,`_delegate`,void 0)}getDelegate(){var e;return(e=this._delegate)==null?Hn:e}setDelegate(e){this._delegate=e}getMXLUserId(){return this.getDelegate().getMXLUserId()}getUserId(){return this.getDelegate().getUserId()}setUserId(e){this.getDelegate().setUserId(e)}clearUserId(){this.getDelegate().clearUserId()}};M(),P();let Wn=new Vn,Gn=new Set([`setDelegate`,`getDelegate`]);var Kn=class e{static getInstance(){if(!e._instance){let t=new Un,n=an(t,Wn,k.createComponentLogger({namespace:`UserAPI`}),Gn);e._instance=Object.assign(n,{getUserManager(){return t},setGlobalUserManager(e){t.setDelegate(e)}})}return e._instance}static resetInstance(){e._instance=void 0}};N(Kn,`_instance`,void 0);let qn=Kn.getInstance(),F=`mxl.type`,Jn=`mxl.state`,Yn=`react.component_stack`,Xn=`mxl.instrumentation`,Zn=`mxl.js_file_bundle_ids`,Qn=`browser.url.full`,$n=`app.surface.name`,er=`app.surface.id`,tr=`app.surface.label`,nr=`mxl.session_part_id`,rr=`mxl.user_session_id`,ir=`mxl.user_session_previous_id`,ar={pageLabel:tr};function or(e){return e.setValue(cr,!0)}function sr(e){return e.getValue(cr)===!0}var cr,lr=n((()=>{M(),cr=de(`OpenTelemetry SDK Context Key SUPPRESS_TRACING`)})),ur,dr,fr=n((()=>{ur=`baggage`,dr=4096}));function pr(e){return e.reduce((e,t)=>{let n=`${e}${e===``?``:`,`}${t}`;return n.length>8192?e:n},``)}function mr(e){return e.getAllEntries().map(([e,t])=>{let n=`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`;return t.metadata!==void 0&&(n+=`;`+t.metadata.toString()),n})}function hr(e){if(!e)return;let t=e.indexOf(`;`),n=t===-1?e:e.substring(0,t),r=n.indexOf(`=`);if(r<=0)return;let i=n.substring(0,r).trim(),a=n.substring(r+1).trim();if(!i||!a)return;let o,s;try{o=decodeURIComponent(i),s=decodeURIComponent(a)}catch(e){return}let c;return t!==-1&&t<e.length-1&&(c=le(e.substring(t+1))),{key:o,value:s,metadata:c}}function gr(e,t,n,r){let i=0;for(;i<e.length&&n<180;){let a=e.indexOf(`,`,i),o=a===-1?e.length:a,s=o-i;if(s<=4096){let a=hr(e.substring(i,o));if(a){let e=(n===0?0:1)+s;if(r+e>8192)break;t[a.key]=a.metadata?{value:a.value,metadata:a.metadata}:{value:a.value},n++,r+=e}}if(a===-1)break;i=a+1}return[n,r]}var _r=n((()=>{M(),fr()})),vr,yr=n((()=>{M(),lr(),fr(),_r(),vr=class{inject(e,t,n){let r=A.getBaggage(e);if(!r||sr(e))return;let i=pr(mr(r).filter(e=>e.length<=dr).slice(0,180));i.length>0&&n.set(t,ur,i)}extract(e,t,n){let r=n.get(t,ur);if(!r)return e;let i={},a=0,o=0;if(Array.isArray(r))for(let e=0;e<r.length;e++)[a,o]=gr(r[e],i,a,o);else [a]=gr(r,i,a,o);return a===0?e:A.setBaggage(e,A.createBaggage(i))}fields(){return[ur]}}}));function br(e){let t={};if(typeof e!=`object`||!e)return t;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(!xr(n)){k.warn(`Invalid attribute key: ${n}`);continue}let r=e[n];if(!Sr(r)){k.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function xr(e){return typeof e==`string`&&e!==``}function Sr(e){return e==null?!0:Array.isArray(e)?Cr(e):wr(typeof e)}function Cr(e){let t;for(let n of e){if(n==null)continue;let e=typeof n;if(e!==t){if(!t){if(wr(e)){t=e;continue}return!1}return!1}}return!0}function wr(e){switch(e){case`number`:case`boolean`:case`string`:return!0}return!1}var Tr=n((()=>{M()}));function Er(){return e=>{k.error(Dr(e))}}function Dr(e){return typeof e==`string`?e:JSON.stringify(Or(e))}function Or(e){let t={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))}),n=Object.getPrototypeOf(n);return t}var kr=n((()=>{M()}));function Ar(e){try{jr(e)}catch(e){}}var jr,Mr=n((()=>{kr(),jr=Er()})),Nr=n((()=>{})),Pr,Fr=n((()=>{Pr=`2.8.0`})),Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr=n((()=>{Ir=`http.method`,Lr=`http.url`,Rr=`http.status_code`,zr=`http.request_content_length`,Br=`http.response_content_length`,Vr=Ir,Hr=Lr,Ur=Rr,Wr=zr,Gr=Br})),qr=n((()=>{Kr()})),Jr=n((()=>{})),Yr=n((()=>{Jr()})),Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi=n((()=>{Xr=`error.type`,Zr=`exception.message`,Qr=`exception.stacktrace`,$r=`exception.type`,ei=`http.request.method`,ti=`http.request.method_original`,ni=`http.response.status_code`,ri=`server.address`,ii=`server.port`,ai=`service.name`,oi=`telemetry.sdk.language`,si=`webjs`,ci=`telemetry.sdk.name`,li=`telemetry.sdk.version`,ui=`url.full`,di=`url.path`,fi=`url.query`,pi=`user_agent.original`})),hi=n((()=>{})),gi=n((()=>{})),I=n((()=>{qr(),Yr(),mi(),hi(),gi()})),_i,vi=n((()=>{_i=`process.runtime.name`})),yi,bi=n((()=>{Fr(),I(),vi(),yi={[ci]:`opentelemetry`,[_i]:`browser`,[oi]:si,[li]:Pr}})),L,xi=n((()=>{Nr(),bi(),L=performance}));function R(e){let t=e/1e3;return[Math.trunc(t),Math.round(e%1e3*ji)]}function Si(e){return ki(R(L.timeOrigin),R(typeof e==`number`?e:L.now()))}function Ci(e){if(Di(e))return e;if(typeof e==`number`)return e<L.timeOrigin?Si(e):R(e);if(e instanceof Date)return R(e.getTime());throw TypeError(`Invalid input type`)}function wi(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(--n,r+=Mi),[n,r]}function Ti(e){return e[0]*Mi+e[1]}function Ei(e){return e[0]*1e3+e[1]/1e6}function Di(e){return Array.isArray(e)&&e.length===2&&typeof e[0]==`number`&&typeof e[1]==`number`}function Oi(e){return Di(e)||typeof e==`number`||e instanceof Date}function ki(e,t){let n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Mi&&(n[1]-=Mi,n[0]+=1),n}var Ai,ji,Mi,Ni=n((()=>{xi(),Ai=9,ji=Math.pow(10,6),Mi=Math.pow(10,Ai)})),z,Pi=n((()=>{(function(e){e[e.SUCCESS=0]=`SUCCESS`,e[e.FAILED=1]=`FAILED`})(z||(z={}))})),Fi,Ii=n((()=>{M(),P(),Fi=class{constructor(e={}){var t;N(this,`_propagators`,void 0),N(this,`_fields`,void 0),this._propagators=(t=e.propagators)==null?[]:t;let n=new Set;for(let e of this._propagators){let t=typeof e.fields==`function`?e.fields():[];for(let e of t)n.add(e)}this._fields=Array.from(n)}inject(e,t,n){for(let r of this._propagators)try{r.inject(e,t,n)}catch(e){k.warn(`Failed to inject with ${r.constructor.name}. Err: ${e.message}`)}}extract(e,t,n){return this._propagators.reduce((e,r)=>{try{return r.extract(e,t,n)}catch(e){k.warn(`Failed to extract with ${r.constructor.name}. Err: ${e.message}`)}return e},e)}fields(){return this._fields.slice()}}}));function Li(e){return Hi.test(e)}function Ri(e){return Ui.test(e)&&!Wi.test(e)}var zi,Bi,Vi,Hi,Ui,Wi,Gi=n((()=>{zi=`[_0-9a-z-*/]`,Bi=`[a-z]${zi}{0,255}`,Vi=`[a-z0-9]${zi}{0,240}@[a-z]${zi}{0,13}`,Hi=RegExp(`^(?:${Bi}|${Vi})$`),Ui=/^[ -~]{0,255}[!-~]$/,Wi=/,|=/})),Ki,qi,Ji,Yi,Xi,Zi=n((()=>{Gi(),P(),Ki=32,qi=512,Ji=`,`,Yi=`=`,Xi=class e{constructor(e){N(this,`_length`,void 0),N(this,`_rawTraceState`,void 0),N(this,`_internalState`,void 0),this._rawTraceState=typeof e==`string`?e:``,this._length=this._rawTraceState.length}set(e,t){if(!Li(e)||!Ri(t))return this;let n=this._getState(),r=n.get(e),i=this._length;if(typeof r==`string`?i+=t.length-r.length:i+=e.length+t.length+(n.size>0?2:1),i>qi)return this;let a=new Map(n);return a.delete(e),a.set(e,t),this._fromState(a,i)}unset(e){let t=this._getState(),n=t.get(e);if(typeof n!=`string`)return this;let r=this._length-(e.length+n.length+1);t.size>1&&--r;let i=new Map(t);return i.delete(e),this._fromState(i,r)}get(e){return this._getState().get(e)}serialize(){let e=``,t=0;for(let n of this._getState())t>0&&(e=Ji+e),e=`${n[0]}${Yi}${n[1]}`+e,t++;return e}_getState(){if(this._internalState)return this._internalState;let e=this._rawTraceState.split(Ji),t=new Map,n=0;for(let r of e){let e=r.trim(),i=e.indexOf(Yi);if(i===-1)continue;let a=e.slice(0,i),o=e.slice(i+1);if(!Li(a)||!Ri(o))continue;let s=n+e.length+ +(t.size>0);if(!(s>qi)&&(t.set(a,o),n=s,t.size>=Ki))break}return this._length=n,this._internalState=new Map(Array.from(t.entries()).reverse()),this._internalState}_fromState(t,n){let r=Object.create(e.prototype);return r._internalState=t,r._length=n,r}}}));function Qi(e){let t=na.exec(e);return!t||t[1]===`00`&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var $i,ea,ta,na,ra,ia=n((()=>{M(),lr(),Zi(),$i=`traceparent`,ea=`tracestate`,ta=`00`,na=RegExp(`^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$`),ra=class{inject(e,t,n){let r=j.getSpanContext(e);if(!r||sr(e)||!lt(r))return;let i=`${ta}-${r.traceId}-${r.spanId}-0${Number(r.traceFlags||D.NONE).toString(16)}`;n.set(t,$i,i),r.traceState&&n.set(t,ea,r.traceState.serialize())}extract(e,t,n){let r=n.get(t,$i);if(!r)return e;let i=Array.isArray(r)?r[0]:r;if(typeof i!=`string`)return e;let a=Qi(i);if(!a)return e;a.isRemote=!0;let o=n.get(t,ea);if(o){let e=Array.isArray(o)?o.join(`,`):o;a.traceState=new Xi(typeof e==`string`?e:void 0)}return j.setSpanContext(e,a)}fields(){return[$i,ea]}}}));function aa(e){if(!oa(e)||sa(e)!==ua)return!1;let t=ha(e);if(t===null)return!0;let n=_a.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&pa.call(n)===ma}function oa(e){return typeof e==`object`&&!!e}function sa(e){return e==null?e===void 0?fa:da:va&&va in Object(e)?ca(e):la(e)}function ca(e){let t=_a.call(e,va),n=e[va],r=!1;try{e[va]=void 0,r=!0}catch(e){}let i=ya.call(e);return r&&(t?e[va]=n:delete e[va]),i}function la(e){return ya.call(e)}var ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba=n((()=>{ua=`[object Object]`,da=`[object Null]`,fa=`[object Undefined]`,pa=Function.prototype.toString,ma=pa.call(Object),ha=Object.getPrototypeOf,ga=Object.prototype,_a=ga.hasOwnProperty,va=Symbol?Symbol.toStringTag:void 0,ya=ga.toString}));function xa(...e){let t=e.shift(),n=new WeakMap;for(;e.length>0;)t=Ca(t,e.shift(),0,n);return t}function Sa(e){return Ta(e)?e.slice():e}function Ca(e,t,n=0,r){let i;if(!(n>Aa)){if(n++,Oa(e)||Oa(t)||Ea(t))i=Sa(t);else if(Ta(e)){if(i=e.slice(),Ta(t))for(let e=0,n=t.length;e<n;e++)i.push(Sa(t[e]));else if(Da(t)){let e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){let r=e[n];r===`__proto__`||r===`constructor`||r===`prototype`||(i[r]=Sa(t[r]))}}}else if(Da(e))if(Da(t)){if(!ka(e,t))return t;i=Object.assign({},e);let a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){let s=a[o];if(s===`__proto__`||s===`constructor`||s===`prototype`)continue;let c=t[s];if(Oa(c))c===void 0?delete i[s]:i[s]=c;else{let a=i[s],o=c;if(wa(e,s,r)||wa(t,s,r))delete i[s];else{if(Da(a)&&Da(o)){let n=r.get(a)||[],i=r.get(o)||[];n.push({obj:e,key:s}),i.push({obj:t,key:s}),r.set(a,n),r.set(o,i)}i[s]=Ca(i[s],c,n,r)}}}}else i=t;return i}}function wa(e,t,n){let r=n.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i.key===t&&i.obj===e)return!0}return!1}function Ta(e){return Array.isArray(e)}function Ea(e){return typeof e==`function`}function Da(e){return!Oa(e)&&!Ta(e)&&!Ea(e)&&typeof e==`object`}function Oa(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e===void 0||e instanceof Date||e instanceof RegExp||e===null}function ka(e,t){return!(!aa(e)||!aa(t))}var Aa,ja=n((()=>{ba(),Aa=20}));function Ma(e,t){let n,r=new Promise(function(e,r){n=setTimeout(function(){r(new Na(`Operation timed out.`))},t)});return Promise.race([e,r]).then(e=>(clearTimeout(n),e),e=>{throw clearTimeout(n),e})}var Na,Pa=n((()=>{Na=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}}));function Fa(e,t){return typeof t==`string`?e===t:!!e.match(t)}function Ia(e,t){if(!t)return!1;for(let n of t)if(Fa(e,n))return!0;return!1}var La=n((()=>{})),Ra,za=n((()=>{P(),Ra=class{constructor(){N(this,`_promise`,void 0),N(this,`_resolve`,void 0),N(this,`_reject`,void 0),this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}})),Ba,Va=n((()=>{za(),P(),Ba=class{constructor(e,t){N(this,`_isCalled`,!1),N(this,`_deferred`,new Ra),N(this,`_callback`,void 0),N(this,`_that`,void 0),this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}}));function Ha(e,t){return new Promise(n=>{O.with(or(O.active()),()=>{e.export(t,n)})})}var Ua=n((()=>{M(),lr()})),Wa,B=n((()=>{yr(),P(),Tr(),Mr(),kr(),Ni(),Pi(),_r(),xi(),Ii(),ia(),M(),lr(),Zi(),ja(),Pa(),La(),Va(),Ua(),Wa={_export:Ha}}));B(),P();var Ga=class{constructor(e=window.performance){N(this,`_clock`,void 0),N(this,`epochMillisFromOriginOffset`,e=>this._clock.timeOrigin+e),N(this,`getNowHRTime`,()=>R(this.getNowMillis())),N(this,`getNowMillis`,()=>this.epochMillisFromOriginOffset(this._clock.now())),N(this,`millisSinceHRTime`,e=>this.getNowMillis()-Ei(e)),N(this,`millisFromZeroTime`,e=>e),this._clock=e}},V,Ka=n((()=>{(function(e){e[e.UNSPECIFIED=0]=`UNSPECIFIED`,e[e.TRACE=1]=`TRACE`,e[e.TRACE2=2]=`TRACE2`,e[e.TRACE3=3]=`TRACE3`,e[e.TRACE4=4]=`TRACE4`,e[e.DEBUG=5]=`DEBUG`,e[e.DEBUG2=6]=`DEBUG2`,e[e.DEBUG3=7]=`DEBUG3`,e[e.DEBUG4=8]=`DEBUG4`,e[e.INFO=9]=`INFO`,e[e.INFO2=10]=`INFO2`,e[e.INFO3=11]=`INFO3`,e[e.INFO4=12]=`INFO4`,e[e.WARN=13]=`WARN`,e[e.WARN2=14]=`WARN2`,e[e.WARN3=15]=`WARN3`,e[e.WARN4=16]=`WARN4`,e[e.ERROR=17]=`ERROR`,e[e.ERROR2=18]=`ERROR2`,e[e.ERROR3=19]=`ERROR3`,e[e.ERROR4=20]=`ERROR4`,e[e.FATAL=21]=`FATAL`,e[e.FATAL2=22]=`FATAL2`,e[e.FATAL3=23]=`FATAL3`,e[e.FATAL4=24]=`FATAL4`})(V||(V={}))}));function qa(){return Ya}var Ja,Ya,Xa=n((()=>{Ja=class{emit(e){}enabled(){return!1}},Ya=new Ja}));function Za(e,t,n){return r=>r===e?t:n}var Qa,$a,eo=n((()=>{Qa=Symbol.for(`io.opentelemetry.js.api.logs`),$a=globalThis})),to,no,ro=n((()=>{Xa(),to=class{getLogger(e,t,n){return new Ja}},no=new to})),io,ao=n((()=>{Xa(),io=class{constructor(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}emit(e){this._getLogger().emit(e)}enabled(e){return this._getLogger().enabled(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Ya}}})),oo,so=n((()=>{ro(),ao(),oo=class{getLogger(e,t,n){var r;return(r=this._getDelegateLogger(e,t,n))==null?new io(this,e,t,n):r}_getDelegate(){var e;return(e=this._delegate)==null?no:e}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,n){var r;return(r=this._delegate)==null?void 0:r.getLogger(e,t,n)}}})),co,lo=n((()=>{eo(),ro(),so(),co=class e{constructor(){this._proxyLoggerProvider=new oo}static getInstance(){return this._instance||(this._instance=new e),this._instance}setGlobalLoggerProvider(e){return $a[Qa]?this.getLoggerProvider():($a[Qa]=Za(1,e,no),this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return(t=(e=$a[Qa])==null?void 0:e.call($a,1))==null?this._proxyLoggerProvider:t}getLogger(e,t,n){return this.getLoggerProvider().getLogger(e,t,n)}disable(){delete $a[Qa],this._proxyLoggerProvider=new oo}}})),uo,H=n((()=>{Ka(),Xa(),lo(),uo=co.getInstance()}));function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fo(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var W=n((()=>{P()}));M(),H(),P(),W();var po=class{constructor(e,t,n){this.instrumentationName=e,this.instrumentationVersion=t,N(this,`_config`,{}),N(this,`_diag`,void 0),N(this,`_tracer`,void 0),N(this,`_meter`,void 0),N(this,`_logger`,void 0),this.setConfig(n),this._diag=k.createComponentLogger({namespace:e}),this._tracer=j.getTracer(e,t),this._meter=zt.getMeter(e,t),this._logger=uo.getLogger(e,t),this._updateMetricInstruments()}get tracer(){return this._tracer}get meter(){return this._meter}get logger(){return this._logger}getModuleDefinitions(){var e;let t=(e=this.init())==null?[]:e;return Array.isArray(t)?t:[t]}getConfig(){return this._config}setConfig(e){this._config=U({enabled:!0},e)}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}_updateMetricInstruments(){}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}};P();var G=class extends po{constructor({instrumentationName:e,instrumentationVersion:t,config:n,diag:r,perf:i,limitManager:a}){super(e,t,n),N(this,`_userSessionManager`,void 0),N(this,`_logManager`,void 0),N(this,`_limitManager`,void 0),N(this,`_perf`,void 0),r&&(this._diag=r),this._perf=i==null?new Ga:i,this._userSessionManager=Mn.getUserSessionManager(),this._logManager=vn.getLogManager(),this._limitManager=a}get limitManager(){return this._limitManager}get userSessionManager(){return this._userSessionManager}get logManager(){return this._logManager}get perf(){return this._perf}init(){}setLimitManager(e){this._limitManager=e}setLogManager(e){this._logManager=e}setUserSessionManager(e){this._userSessionManager=e}};P();let mo=/\([^()]+\)/g;var ho=class extends G{constructor({diag:e,shouldCleanupPathOptionsFromRouteName:t=!0}){super({config:{},diag:e,instrumentationName:`NavigationInstrumentation`,instrumentationVersion:`1.0.0`}),N(this,`_shouldCleanupPathOptionsFromRouteName`,!0),N(this,`_currentRouteSpan`,null),N(this,`_instrumentationType`,`manual`),N(this,`_removeSessionStartedFn`,null),N(this,`_removeSessionEndedFn`,null),N(this,`setInstrumentationType`,e=>{this._instrumentationType=e}),N(this,`setCurrentRoute`,e=>{if(!this._config.enabled)return;let t=Tn.getCurrentRoute();e.url!==(t==null?void 0:t.url)&&(Tn.setCurrentRoute(e),this._endRouteSpan(t),this._startRouteSpan(e))}),N(this,`_setupSessionListeners`,()=>{this._removeSessionStartedFn||(this._removeSessionStartedFn=this.userSessionManager.addSessionPartStartedListener(()=>{let e=Tn.getCurrentRoute();e&&!this._currentRouteSpan&&(this._diag.debug(`Session started, starting route span.`),this._startRouteSpan(e))})),this._removeSessionEndedFn||(this._removeSessionEndedFn=this.userSessionManager.addSessionPartEndedListener(()=>{this._currentRouteSpan&&(this._diag.debug(`Session ended, ending route span.`),this._endRouteSpan(Tn.getCurrentRoute()))}))}),N(this,`_cleanUpSessionListeners`,()=>{this._removeSessionStartedFn&&(this._removeSessionStartedFn(),this._removeSessionStartedFn=null),this._removeSessionEndedFn&&(this._removeSessionEndedFn(),this._removeSessionEndedFn=null)}),N(this,`_startRouteSpan`,e=>{this._diag.debug(`Starting route span for url: ${e.url}`),this._setupSessionListeners();let t=this._shouldCleanupPathOptionsFromRouteName?e.path.replace(mo,``):e.path;return this._currentRouteSpan=this.tracer.startSpan(t,{attributes:{[F]:`ux.surface`,[$n]:t,[er]:Tn.getCurrentPageId()||void 0}}),this._currentRouteSpan.setAttribute(Xn,this._instrumentationType),this._currentRouteSpan}),N(this,`_endRouteSpan`,e=>{this._currentRouteSpan&&(e&&this._diag.debug(`Ending route span for url: ${e.url}`),this._currentRouteSpan.end(),this._currentRouteSpan=null)}),N(this,`enable`,()=>{this.setConfig({enabled:!0}),this._diag.debug(`NavigationInstrumentation enabled, listening for navigation events.`)}),N(this,`disable`,()=>{this._cleanUpSessionListeners(),this.setConfig({enabled:!1}),this._diag.debug(`NavigationInstrumentation disabled, stopped listening for navigation events.`)}),this._shouldCleanupPathOptionsFromRouteName=t,this._config.enabled&&this.enable()}};let go,_o=(e={})=>(go||(go=new ho(e)),go);function vo(e){let t=(e,t=2)=>String(e).padStart(t,`0`);return`${e.getUTCFullYear()}-${t(e.getUTCMonth()+1)}-${t(e.getUTCDate())} ${t(e.getUTCHours())}:${t(e.getUTCMinutes())}:${t(e.getUTCSeconds())}.${t(e.getUTCMilliseconds(),3)}`}function yo(e){let t=/edg/i.test(e)?`Edge`:/opr|opera/i.test(e)?`Opera`:/chrome|crios/i.test(e)?`Chrome`:/firefox|fxios/i.test(e)?`Firefox`:/safari/i.test(e)?`Safari`:`Unknown`,n=/windows/i.test(e)?`Windows`:/mac os|macintosh/i.test(e)?`macOS`:/android/i.test(e)?`Android`:/iphone|ipad|ios/i.test(e)?`iOS`:/linux/i.test(e)?`Linux`:`Unknown`;return{browserName:t,deviceType:/mobile|iphone|android.*mobile/i.test(e)?`mobile`:/ipad|tablet/i.test(e)?`tablet`:`desktop`,osName:n}}function bo(e){try{return JSON.stringify(e).length}catch(e){return 64}}function xo(e,t){try{e(t)}catch(e){}}let So=[`log`,`info`,`warn`,`error`,`debug`],Co=2e3;function wo(e){let t={};for(let n of So){let r=console[n];t[n]=r,console[n]=(...t)=>{xo(e,{level:n,message:To(t),type:`console`}),r.apply(console,t)}}return()=>{for(let e of So){let n=t[e];n&&(console[e]=n)}}}function To(e){let t=e.map(e=>{if(typeof e==`string`)return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)}catch(t){return String(e)}}).join(` `);return t.length>Co?`${t.slice(0,Co)}…`:t}M();function Eo(){var e;let t=(e=j.getActiveSpan())==null?void 0:e.spanContext().traceId;return t&&t!==`00000000000000000000000000000000`?t:void 0}let Do=4e3;function Oo(e){let t=t=>{var n,r;xo(e,{errorStack:ko((n=t.error)==null?void 0:n.stack),level:`error`,message:t.message||String((r=t.error)==null?`Error`:r),traceId:Eo(),type:`error`})},n=t=>{var n;let r=t.reason,i=typeof r==`string`?r:(n=r==null?void 0:r.message)==null?`Unhandled promise rejection`:n;xo(e,{errorStack:ko(typeof r==`object`?r==null?void 0:r.stack:void 0),level:`error`,message:i,traceId:Eo(),type:`error`})};return window.addEventListener(`error`,t),window.addEventListener(`unhandledrejection`,n),()=>{window.removeEventListener(`error`,t),window.removeEventListener(`unhandledrejection`,n)}}function ko(e){if(e)return e.length>Do?`${e.slice(0,Do)}…`:e}function Ao(e,t){let n=n=>{let r=n.target;r instanceof Element&&xo(e,{targetSelector:jo(r),targetText:t?void 0:Mo(r),type:`click`})},r=t=>{let n=t.target;n instanceof Element&&xo(e,{targetSelector:jo(n),type:`input`})};return document.addEventListener(`click`,n,!0),document.addEventListener(`input`,r,!0),()=>{document.removeEventListener(`click`,n,!0),document.removeEventListener(`input`,r,!0)}}function jo(e){return`${e.tagName.toLowerCase()}${e.id?`#${e.id}`:``}${typeof e.className==`string`&&e.className.trim()?`.${e.className.trim().split(/\s+/)[0]}`:``}`}function Mo(e){var t;let n=((t=e.textContent)==null?``:t).trim().replace(/\s+/g,` `);if(n)return n.length>120?`${n.slice(0,120)}…`:n}function No(e){let t=``,n=()=>{let n=location.href;n!==t&&(t=n,xo(e,{type:`navigation`,url:n}))};n();let r=history.pushState,i=history.replaceState;return history.pushState=function(...e){let t=r.apply(this,e);return n(),t},history.replaceState=function(...e){let t=i.apply(this,e);return n(),t},window.addEventListener(`popstate`,n),window.addEventListener(`hashchange`,n),()=>{history.pushState=r,history.replaceState=i,window.removeEventListener(`popstate`,n),window.removeEventListener(`hashchange`,n)}}function Po(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function K(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){Po(a,r,i,o,s,`next`,e)}function s(e){Po(a,r,i,o,s,`throw`,e)}o(void 0)})}}var q=n((()=>{}));q(),W();function Fo(e,t){let n=typeof window<`u`?window.fetch.bind(window):void 0;n&&(window.fetch=function(){var e=K(function*(e,t){let i=Io(e),a=Lo(e,t),o=Eo(),s=performance.now();try{let c=yield n(e,t);return r(i,a,c.status,s,o),c}catch(e){throw r(i,a,0,s,o,String(e)),e}});return function(t,n){return e.apply(this,arguments)}}());let r=(n,r,i,a,o,s)=>{t(n)||xo(e,U({net:{durationMs:Math.round(performance.now()-a),method:r,status:i,url:n},traceId:o,type:`network`},s?{attrs:{error:s}}:{}))},i=typeof window<`u`?window.XMLHttpRequest:void 0,a=i==null?void 0:i.prototype.open,o=i==null?void 0:i.prototype.send;return i&&a&&o&&(i.prototype.open=function(e,t,...n){return this.__mxlMethod=String(e).toUpperCase(),this.__mxlUrl=typeof t==`string`?t:t.href,a.apply(this,[e,t,...n])},i.prototype.send=function(...e){let t=this,n=performance.now(),i=Eo();return this.addEventListener(`loadend`,()=>{var e,a;r((e=t.__mxlUrl)==null?``:e,(a=t.__mxlMethod)==null?`GET`:a,this.status,n,i)}),o.apply(this,e)}),()=>{n&&(window.fetch=n),i&&a&&(i.prototype.open=a),i&&o&&(i.prototype.send=o)}}function Io(e){return typeof e==`string`?e:e instanceof URL?e.href:e.url}function Lo(e,t){var n;let r=(n=t==null?void 0:t.method)==null?typeof e==`object`&&`method`in e?e.method:void 0:n;return(r==null?`GET`:r).toUpperCase()}q();function Ro({config:e,sessionId:t,transport:n,onActivity:r,flushIntervalMs:i=5e3,flushBytes:a=65536}){let o=[],s=0,c=0,l=!1,u=e=>{l||(o.push({ev:e,seq:c++}),s+=bo(e),s>=a&&d())},d=function(){var e=K(function*(e=!1){if(o.length===0||l)return;r==null||r();let i=o;o=[],s=0;let a=i.map(({ev:e,seq:n})=>zo(t,e,n));yield n.postSessionEvents(a,e)});return function(){return e.apply(this,arguments)}}(),f=[No(u),Ao(u,e.maskAllText),wo(u),Fo(u,e=>n.shouldIgnoreUrl(e)),Oo(u)],p=i>0?setInterval(()=>{d()},i):void 0;return{flush:d,pause:()=>{l=!0},resume:()=>{l=!1},stop:()=>{p&&clearInterval(p);for(let e of f)e()}}}function zo(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;return{attributes:(r=t.attrs)==null?{}:r,error_stack:(i=t.errorStack)==null?``:i,level:(a=t.level)==null?``:a,message:(o=t.message)==null?``:o,net_duration_ms:(s=(c=t.net)==null?void 0:c.durationMs)==null?0:s,net_method:(l=(u=t.net)==null?void 0:u.method)==null?``:l,net_status:(d=(f=t.net)==null?void 0:f.status)==null?0:d,net_url:(p=(m=t.net)==null?void 0:m.url)==null?``:p,seq:n,session_id:e,target_selector:(h=t.targetSelector)==null?``:h,target_text:(g=t.targetText)==null?``:g,timestamp:vo(new Date((_=t.timestamp)==null?Date.now():_)),trace_id:(v=(y=t.traceId)==null?Eo():y)==null?``:v,type:t.type,url:(b=t.url)==null?typeof location<`u`?location.href:``:b}}q();let Bo=`https://unpkg.com/rrweb@2.0.0-alpha.20/dist/rrweb.umd.cjs`,Vo,Ho,Uo=Bo;function Wo(e){Uo=e,Vo=void 0}function Go(e){return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=e,r.async=!0,r.onload=()=>t(),r.onerror=n,document.head.appendChild(r)})}function Ko(){return qo.apply(this,arguments)}function qo(){return qo=K(function*(){if(typeof window>`u`)throw Error(`no browser`);if(window.rrweb)return window.rrweb;if(yield Go(Uo),!window.rrweb)throw Error(`no rrweb`);return window.rrweb}),qo.apply(this,arguments)}function Jo(){return Ho?Ho():(Vo===void 0&&(Vo=Ko()),Vo)}function Yo(){Vo=void 0,Ho=void 0,Uo=Bo}function Xo(e){Ho=e,Vo=void 0}q();function Zo(e){return Qo.apply(this,arguments)}function Qo(){return Qo=K(function*(e){let t=new Blob([e]).stream().pipeThrough(new CompressionStream(`gzip`)),n=yield new Response(t).arrayBuffer();return new Uint8Array(n)}),Qo.apply(this,arguments)}q(),W();function $o({config:e,sessionId:t,transport:n,chunkSeqStore:r,rrwebModule:i,onActivity:a,flushIntervalMs:o=5e3,flushBytes:s=102400}){let c=[],l=0,u=!1,d=0,f=!1,p=function(){var e=K(function*(e=!1){if(c.length===0)return;a==null||a();let i=c,o=u,s=r.nextChunkSeq(t),d=i[0].timestamp,f=i[i.length-1].timestamp;c=[],l=0,u=!1;let p=yield Zo(new TextEncoder().encode(JSON.stringify(i)));yield n.postSessionBlob({chunkSeq:s,durationMs:Math.max(0,f-d),eventCount:i.length,isCheckpoint:o,sessionId:t},p,e)});return function(){return e.apply(this,arguments)}}(),{record:m}=i,h=m(U(U({checkoutEveryNms:3e4,emit:(e,t)=>{var n;if(f)return;let r=e;(t===!0||r.type===2)&&(u=!0),r.type===3&&((n=r.data)==null?void 0:n.source)===2&&r.data.type===2&&d++,c.push(r),l+=bo(r),l>=s&&p()},maskAllInputs:e.maskAllInputs},e.maskAllText?{maskTextSelector:`*`}:{}),e.rrwebOptions)),g=o>0?setInterval(()=>{p()},o):void 0;return{flush:p,getClickCount:()=>d,pause:()=>{f=!0},resume:()=>{f=!1},stop:()=>{g&&clearInterval(g),h==null||h()}}}let es=new Set;function ts(e){!e||e===`00000000000000000000000000000000`||es.add(e)}function ns(){return Array.from(es)}function rs(){es.clear()}let is=`__MXL_REPLAY_SESSION__`;function as(e){globalThis[is]={recordTraceId:ts,sessionId:e}}function os(){delete globalThis[is]}function ss(e){let t=e=>`replay.chunkSeq.${e}`;return{nextChunkSeq(n){let r=e.getItem(t(n)),i=r===null?0:Number.parseInt(r,10),a=Number.isFinite(i)?i:0;return e.setItem(t(n),String(a+1)),a}}}function cs(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function ls(e,t){if(e==null)return{};var n,r,i=cs(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}let us=[`debug`,`enabled`,`sampleRate`,`maskAllInputs`,`maskAllText`,`flushIntervalMs`,`omitRedundantInstrumentations`];function ds(e,t,n=!0){let r=t==null?{}:t,{debug:i=!1,enabled:a,sampleRate:o,maskAllInputs:s=!0,maskAllText:c=!0,flushIntervalMs:l=5e3,omitRedundantInstrumentations:u}=r,d=ls(r,us);return{appID:e.appID,appVersion:e.appVersion,debug:i,environment:void 0,flushIntervalMs:l,maskAllInputs:s,maskAllText:c,replayEnabled:a==null?n:a,replaySampleRate:o==null?1:o,rrwebOptions:d,serviceName:e.serviceName,userID:e.userID}}W();function fs(e){let t=!1,n=()=>{var n;t||(t=!0,e.recorder.flush(!0),e.events.flush(!0),e.transport.postSessionMeta(ps(e.config,e.sessionId,e.startedAt,2,`ended`,e.recorder.getClickCount()),!0),e.recorder.stop(),e.events.stop(),rs(),(n=e.onFinalize)==null||n.call(e))},r=()=>{document.visibilityState===`hidden`&&n()};return document.addEventListener(`visibilitychange`,r),window.addEventListener(`pagehide`,n),()=>{document.removeEventListener(`visibilitychange`,r),window.removeEventListener(`pagehide`,n)}}function ps(e,t,n,r,i,a){var o;let s=yo(navigator.userAgent),c=new Date,l={browser_name:s.browserName,device_type:s.deviceType,os_name:s.osName,resource_attributes:U(U({},e.environment?{"deployment.environment":e.environment,"deployment.environment.name":e.environment}:{}),e.appVersion?{"deployment.commit_sha":e.appVersion}:{}),service_name:(o=e.serviceName)==null?``:o,session_id:t,start_time:vo(n),status:i,url_initial:window.location.href,user_agent:navigator.userAgent,user_id:hs(),version:r};return i===`ended`&&(l.click_count=a==null?0:a,l.duration_ms=Math.max(0,c.getTime()-n.getTime()),l.end_time=vo(c),l.trace_ids=ns()),l}function ms(e){let t=e.getUserSessionStartTime();return new Date(t==null?Date.now():t)}function hs(){var e;return(e=qn.getUserId())==null?``:e}P(),q();var gs=class{constructor({context:e,userSessionManager:t,sessionStorage:n,rrwebOptions:r,recordUserSessions:i=!0,diag:a}){N(this,`_context`,void 0),N(this,`_userSessionManager`,void 0),N(this,`_chunkSeqStore`,void 0),N(this,`_config`,void 0),N(this,`_diag`,void 0),N(this,`_recordUserSessions`,void 0),N(this,`_active`,void 0),N(this,`_paused`,!1),N(this,`_enableRequested`,!1),N(this,`_startInProgress`,!1),N(this,`_stopInProgress`,!1),N(this,`_removeSessionStartedListener`,void 0),this._context=e,this._userSessionManager=t,this._chunkSeqStore=ss(n),this._recordUserSessions=i,this._config=ds(e,r,i),this._diag=a==null?{debug:()=>void 0,error:()=>void 0,info:()=>void 0,verbose:()=>void 0,warn:()=>void 0}:a}isRecording(){return!!this._active&&!this._paused}enable(e){if(!this._recordUserSessions&&!(e!=null&&e.force)){this._diag.debug(`recordUserSessions disabled, waiting for manual enable`);return}this._enableRequested=!0,this._paused=!1,this._tryStart()}pause(){this._active&&(this._enableRequested=!1,this._paused=!0,this._active.recorder.pause(),this._active.events.pause())}resume(){if(!this._active){this.enable();return}let e=this._paused;this._enableRequested=!0,this._paused=!1,this._active.recorder.resume(),this._active.events.resume(),e&&this._active.rrwebModule.record.takeFullSnapshot()}stop(){var e=this;return K(function*(){var t;if(e._enableRequested=!1,e._paused=!1,(t=e._removeSessionStartedListener)==null||t.call(e),e._removeSessionStartedListener=void 0,!e._active){os(),rs();return}if(e._stopInProgress)return;e._stopInProgress=!0;let n=e._active;e._active=void 0;try{var r;(r=n.removeSessionEndListener)==null||r.call(n),n.removeLifecycle(),yield n.recorder.flush(!0),yield n.events.flush(!0),n.recorder.stop(),n.events.stop()}finally{os(),rs(),e._stopInProgress=!1}})()}_tryStart(){var e=this;return K(function*(){if(!e._enableRequested||e._active||e._startInProgress||e._stopInProgress)return;if(typeof window>`u`){e._diag.warn(`session replay cannot run in non-browser environments`);return}let t=e._userSessionManager.getUserSessionId();if(t===null){e._removeSessionStartedListener||(e._removeSessionStartedListener=e._userSessionManager.addSessionPartStartedListener(()=>{var t;(t=e._removeSessionStartedListener)==null||t.call(e),e._removeSessionStartedListener=void 0,e._tryStart()}));return}if(e._config.replayEnabled){if(Math.random()>=e._config.replaySampleRate){e._diag.debug(`session replay skipped by sample rate`);return}e._startInProgress=!0;try{let n=yield Jo();if(!e._enableRequested||e._active)return;as(t),rs();let r=ms(e._userSessionManager),i=()=>{},a=$o({chunkSeqStore:e._chunkSeqStore,config:e._config,flushIntervalMs:e._config.flushIntervalMs,onActivity:i,rrwebModule:n,sessionId:t,transport:e._context.transport}),o=Ro({config:e._config,flushIntervalMs:e._config.flushIntervalMs,onActivity:i,sessionId:t,transport:e._context.transport});e._context.transport.postSessionMeta(ps(e._config,t,r,1,`active`,null)),e._active={events:o,recorder:a,removeLifecycle:globalThis.__MXL_TEST_SKIP_REPLAY_LIFECYCLE__===!0?()=>void 0:fs({config:e._config,events:o,onFinalize:()=>{e._active=void 0,os(),rs()},recorder:a,sessionId:t,startedAt:r,transport:e._context.transport}),removeSessionEndListener:e._userSessionManager.addSessionPartEndedListener(()=>{a.flush(!0),o.flush(!0)}),rrwebModule:n},e._diag.debug(`session recording started`)}catch(t){e._diag.error(`failed to start session recording`,t)}finally{e._startInProgress=!1}}})()}};P(),q();var _s=class extends G{constructor(e={}){super({config:{},diag:e.diag,instrumentationName:`ReplayInstrumentation`,instrumentationVersion:`2.0.0`,perf:e.perf}),N(this,`_args`,void 0),N(this,`_sessionRecording`,void 0),N(this,`_wasPaused`,!1),N(this,`_stopPromise`,void 0),this._args=e,(!e.replayContext||!e.sessionStorage)&&this._diag.warn(`replayContext and sessionStorage are required for session recording`),this._config.enabled||this._diag.debug(`disabled, not starting`)}setUserSessionManager(e){super.setUserSessionManager(e),this._ensureSessionRecording()}_ensureSessionRecording(){if(this._sessionRecording)return this._sessionRecording;let{replayContext:e,sessionStorage:t,recordUserSessions:n,rrwebOptions:r}=this._args;if(!(!e||!t))return this._sessionRecording=new gs({context:e,diag:this._diag,recordUserSessions:n,rrwebOptions:r,sessionStorage:t,userSessionManager:this.userSessionManager}),this._sessionRecording}isRecording(){var e,t;return(e=(t=this._sessionRecording)==null?void 0:t.isRecording())==null?!1:e}enable(e){this._wasPaused=!1,this._enableWhenReady(e)}pause(){var e;this._wasPaused=!0,(e=this._sessionRecording)==null||e.pause()}resume(){if(this._wasPaused){this._resumeWhenReady();return}this._enableWhenReady({force:!0})}_enableWhenReady(e){var t=this;return K(function*(){var n;yield t._stopPromise,(n=t._ensureSessionRecording())==null||n.enable(e)})()}_resumeWhenReady(){var e=this;return K(function*(){var t;yield e._stopPromise,(t=e._sessionRecording)==null||t.resume(),e._wasPaused=!1})()}disable(){let e=this._sessionRecording;e&&(this._stopPromise=e.stop().finally(()=>{this._sessionRecording===e&&(this._sessionRecording=void 0),this._stopPromise=void 0}))}waitForDisable(){var e=this;return K(function*(){yield e._stopPromise})()}};function vs(e,t,n,r){for(let i=0,a=e.length;i<a;i++){let a=e[i];t&&a.setTracerProvider(t),n&&a.setMeterProvider(n),r&&a.setLoggerProvider&&a.setLoggerProvider(r),a.getConfig().enabled||a.enable()}}function ys(e){e.forEach(e=>e.disable())}var bs=n((()=>{}));function xs(e){var t,n;let r=e.tracerProvider||j.getTracerProvider(),i=e.meterProvider||zt.getMeterProvider(),a=e.loggerProvider||uo.getLoggerProvider(),o=(t=(n=e.instrumentations)==null?void 0:n.flat())==null?[]:t;return vs(o,r,i,a),()=>{ys(o)}}var Ss=n((()=>{M(),H(),bs()}));function Cs(e,t,n){let r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function ws(e){e&&e.logger&&(typeof e.logger==`function`?J=e.logger:J(`new logger isn't a function, not replacing`))}var J,Ts,Es,Ds,Os,ks=n((()=>{J=console.error.bind(console),Ts=(e,t,n)=>{if(!e||!e[t]){J(`no original function `+String(t)+` to wrap`);return}if(!n){J(`no wrapper function`),J(Error().stack);return}let r=e[t];if(typeof r!=`function`||typeof n!=`function`){J(`original object and wrapper must be functions`);return}let i=n(r,t);return Cs(i,`__original`,r),Cs(i,`__unwrap`,()=>{e[t]===i&&Cs(e,t,r)}),Cs(i,`__wrapped`,!0),Cs(e,t,i),i},Es=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{J(`must provide one or more modules to patch`),J(Error().stack);return}if(!(t&&Array.isArray(t))){J(`must provide one or more functions to wrap on modules`);return}e.forEach(e=>{t.forEach(t=>{Ts(e,t,n)})})},Ds=(e,t)=>{if(!e||!e[t]){J(`no function to unwrap.`),J(Error().stack);return}let n=e[t];if(!n.__unwrap)J(`no original to unwrap to -- has `+String(t)+` already been unwrapped?`);else{n.__unwrap();return}},Os=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{J(`must provide one or more modules to patch`),J(Error().stack);return}if(!(t&&Array.isArray(t))){J(`must provide one or more functions to unwrap on modules`);return}e.forEach(e=>{t.forEach(t=>{Ds(e,t)})})},ws.wrap=Ts,ws.massWrap=Es,ws.unwrap=Ds,ws.massUnwrap=Os})),As,js=n((()=>{M(),H(),ks(),P(),W(),As=class{constructor(e,t,n){N(this,`_config`,{}),N(this,`_tracer`,void 0),N(this,`_meter`,void 0),N(this,`_logger`,void 0),N(this,`_diag`,void 0),N(this,`instrumentationName`,void 0),N(this,`instrumentationVersion`,void 0),N(this,`_wrap`,Ts),N(this,`_unwrap`,Ds),N(this,`_massWrap`,Es),N(this,`_massUnwrap`,Os),this.instrumentationName=e,this.instrumentationVersion=t,this.setConfig(n),this._diag=k.createComponentLogger({namespace:e}),this._tracer=j.getTracer(e,t),this._meter=zt.getMeter(e,t),this._logger=uo.getLogger(e,t),this._updateMetricInstruments()}get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){var e;let t=(e=this.init())==null?[]:e;return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config=U({enabled:!0},e)}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,t,n,r){if(e)try{e(n,r)}catch(e){this._diag.error(`Error running span customization hook due to exception in handler`,{triggerName:t},e)}}}})),Ms,Ns=n((()=>{js(),Ms=class extends As{constructor(e,t,n){super(e,t,n),this._config.enabled&&this.enable()}}})),Ps=n((()=>{Ns(),M()}));function Fs(e,t,n){let r,i;try{i=e()}catch(e){r=e}finally{if(t(r,i),r&&!n)throw r;return i}}var Is=n((()=>{}));function Ls(e,t){let n=Y.OLD,r=t==null?void 0:t.split(`,`).map(e=>e.trim()).filter(e=>e!==``);for(let t of r==null?[]:r)if(t.toLowerCase()===e+`/dup`){n=Y.DUPLICATE;break}else t.toLowerCase()===e&&(n=Y.STABLE);return n}var Y,Rs=n((()=>{(function(e){e[e.STABLE=1]=`STABLE`,e[e.OLD=2]=`OLD`,e[e.DUPLICATE=3]=`DUPLICATE`})(Y||(Y={}))})),zs=n((()=>{Ss(),Ps(),P(),Is(),Rs()}));function Bs(){if(Vs===void 0)try{let e=globalThis.process.argv0;Vs=e?`unknown_service:${e}`:`unknown_service`}catch(e){Vs=`unknown_service`}return Vs}var Vs,Hs=n((()=>{})),Us,Ws=n((()=>{Us=e=>typeof e==`object`&&!!e&&typeof e.then==`function`}));function Gs(e,t){return Zs.FromAttributeList(Object.entries(e),t)}function Ks(){return Gs({})}function qs(){return Gs({[ai]:Bs(),[oi]:yi[oi],[ci]:yi[ci],[li]:yi[li]})}function Js(e){return e.map(([e,t])=>Us(t)?[e,t.catch(t=>{k.debug(`promise rejection for resource attribute: %s - %s`,e,t)})]:[e,t])}function Ys(e){if(typeof e==`string`||e===void 0)return e;k.warn(`Schema URL must be string or undefined, got %s. Schema URL will be ignored.`,e)}function Xs(e,t){let n=e==null?void 0:e.schemaUrl,r=t==null?void 0:t.schemaUrl,i=n===void 0||n===``,a=r===void 0||r===``;if(i)return r;if(a||n===r)return n;k.warn(`Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.`,n,r)}var Zs,Qs=n((()=>{M(),B(),I(),Hs(),Ws(),P(),q(),Zs=class e{static FromAttributeList(t,n){let r=new e({},n);return r._rawAttributes=Js(t),r._asyncAttributesPending=t.filter(([e,t])=>Us(t)).length>0,r}constructor(e,t){var n;N(this,`_rawAttributes`,void 0),N(this,`_asyncAttributesPending`,!1),N(this,`_schemaUrl`,void 0),N(this,`_memoizedAttributes`,void 0);let r=(n=e.attributes)==null?{}:n;this._rawAttributes=Object.entries(r).map(([e,t])=>(Us(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=Js(this._rawAttributes),this._schemaUrl=Ys(t==null?void 0:t.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}waitForAsyncAttributes(){var e=this;return K(function*(){if(e.asyncAttributesPending){for(let t=0;t<e._rawAttributes.length;t++){let[n,r]=e._rawAttributes[t];e._rawAttributes[t]=[n,Us(r)?yield r:r]}e._asyncAttributesPending=!1}})()}get attributes(){if(this.asyncAttributesPending&&k.error(`Accessing resource attributes before async attributes settled`),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,n]of this._rawAttributes){if(Us(n)){k.debug(`Unsettled resource attribute ${t} skipped`);continue}n!=null&&(e[t]!=null||(e[t]=n))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let n=Xs(this,t),r=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}})),$s=n((()=>{M(),Qs(),I(),B(),P(),Hs()}));M();function ec(e){return tc(e,new WeakSet)}function tc(e,t){if(e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e instanceof Uint8Array)return!0;if(typeof e==`object`){if(t.has(e))return!1;if(t.add(e),Array.isArray(e)){for(let n of e)if(!tc(n,t))return!1;return!0}let n=e;if(n.constructor!==Object&&n.constructor!==void 0)return!1;for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&!tc(n[e],t))return!1;return!0}return!1}var X;(function(e){e[e.DROP_INVALID=0]=`DROP_INVALID`,e[e.DROP_LIMIT_REACHED=1]=`DROP_LIMIT_REACHED`,e[e.ADD_NEW=2]=`ADD_NEW`,e[e.ADD_OVERWRITE_EXISTING=3]=`ADD_OVERWRITE_EXISTING`})(X||(X={}));function nc(e,t,n,r,i){if(r.length===0)return k.warn(`Invalid attribute key: ${r}`),X.DROP_INVALID;if(!ec(i))return k.warn(`Invalid attribute value set for key: ${r}`),X.DROP_INVALID;let a=!Object.prototype.hasOwnProperty.call(e,r);return a&&n>=t.attributeCountLimit?X.DROP_LIMIT_REACHED:(e[r]=rc(i,t.attributeValueLengthLimit),a?X.ADD_NEW:X.ADD_OVERWRITE_EXISTING)}function rc(e,t){if(t<=0)return k.warn(`Attribute value limit must be positive, got ${t}`),e;if(e==null)return e;if(typeof e==`string`)return e.length<=t?e:e.substring(0,t);if(e instanceof Uint8Array)return e;if(Array.isArray(e))return e.map(e=>rc(e,t));if(typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=rc(i,t);return n}return e}function ic(e,t){if(t==null)return{};let n={},r=0,i=0;for(let[a,o]of Object.entries(t)){let t=nc(n,e,r,a,o);t===X.ADD_NEW?r+=1:(t===X.DROP_INVALID||t===X.DROP_LIMIT_REACHED)&&(i+=1)}return{attributes:r>0?n:void 0,droppedAttributesCount:i}}M(),B(),I(),P();var ac=class{set severityText(e){this._isLogRecordReadonly()||(this._severityText=e)}get severityText(){return this._severityText}set severityNumber(e){this._isLogRecordReadonly()||(this._severityNumber=e)}get severityNumber(){return this._severityNumber}set body(e){this._isLogRecordReadonly()||(this._body=e)}get body(){return this._body}get eventName(){return this._eventName}set eventName(e){this._isLogRecordReadonly()||(this._eventName=e)}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(e,t,n){N(this,`hrTime`,void 0),N(this,`hrTimeObserved`,void 0),N(this,`spanContext`,void 0),N(this,`resource`,void 0),N(this,`instrumentationScope`,void 0),N(this,`attributes`,{}),N(this,`_severityText`,void 0),N(this,`_severityNumber`,void 0),N(this,`_body`,void 0),N(this,`_eventName`,void 0),N(this,`_attributesCount`,0),N(this,`_droppedAttributesCount`,0),N(this,`_isReadonly`,!1),N(this,`_logRecordLimits`,void 0);let{timestamp:r,observedTimestamp:i,eventName:a,severityNumber:o,severityText:s,body:c,attributes:l={},exception:u,context:d}=n,f=Date.now();if(this.hrTime=Ci(r==null?f:r),this.hrTimeObserved=Ci(i==null?f:i),d){let e=j.getSpanContext(d);e&&lt(e)&&(this.spanContext=e)}this.severityNumber=o,this.severityText=s,this.body=c,this.resource=e.resource,this.instrumentationScope=t,this._logRecordLimits=e.logRecordLimits,this._eventName=a,this.setAttributes(l),u!=null&&this._setException(u)}setAttribute(e,t){if(this._isLogRecordReadonly())return this;let n=nc(this.attributes,this._logRecordLimits,this._attributesCount,e,t);return n===X.DROP_LIMIT_REACHED?(this._droppedAttributesCount++,this._droppedAttributesCount===1&&k.warn(`Dropping extra attributes.`)):n===X.ADD_NEW&&this._attributesCount++,this}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}setBody(e){return this.body=e,this}setEventName(e){return this.eventName=e,this}setSeverityNumber(e){return this.severityNumber=e,this}setSeverityText(e){return this.severityText=e,this}_makeReadonly(){this._isReadonly=!0}_setException(e){let t=!1;if(typeof e==`string`||typeof e==`number`)Object.hasOwn(this.attributes,`exception.message`)||this.setAttribute(Zr,String(e)),t=!0;else if(e&&typeof e==`object`){let n=e;n.code?(Object.hasOwn(this.attributes,`exception.type`)||this.setAttribute($r,n.code.toString()),t=!0):n.name&&(Object.hasOwn(this.attributes,`exception.type`)||this.setAttribute($r,n.name),t=!0),n.message&&(Object.hasOwn(this.attributes,`exception.message`)||this.setAttribute(Zr,n.message),t=!0),n.stack&&(Object.hasOwn(this.attributes,`exception.stacktrace`)||this.setAttribute(Qr,n.stack),t=!0)}t||k.warn(`Failed to record an exception ${e}`)}_isLogRecordReadonly(){return this._isReadonly&&k.warn(`Can not execute the operation on emitted log record`),this._isReadonly}};H(),M(),P(),W();var oc=class{constructor(e,t){N(this,`_instrumentationScope`,void 0),N(this,`_sharedState`,void 0),N(this,`_loggerConfig`,void 0),this._instrumentationScope=e,this._sharedState=t,this._loggerConfig=this._sharedState.getLoggerConfig(this._instrumentationScope)}emit(e){let t=e.context||O.active();if(!this.enabled(e))return;let n=new ac(this._sharedState,this._instrumentationScope,U({context:t},e));this._sharedState.loggerMetrics.emitLog(),this._sharedState.activeProcessor.onEmit(n,t),n._makeReadonly()}enabled(e){let t=this._loggerConfig;if(t.disabled)return!1;let n=e==null?void 0:e.severityNumber;if(typeof n==`number`&&n!==V.UNSPECIFIED&&n<t.minimumSeverity)return!1;let r=(e==null?void 0:e.context)||O.active();if(t.traceBased){let e=j.getSpanContext(r);if(e&&lt(e)&&(e.traceFlags&D.SAMPLED)!==D.SAMPLED)return!1}let i={context:r,instrumentationScope:this._instrumentationScope,severityNumber:e==null?void 0:e.severityNumber,eventName:e==null?void 0:e.eventName};for(let e of this._sharedState.processors)if(!e.enabled||e.enabled(i))return!0;return!1}},sc=class{forceFlush(){return Promise.resolve()}onEmit(e,t){}shutdown(){return Promise.resolve()}enabled(e){return!1}};B(),P(),q();var cc=class{constructor(e,t){N(this,`processors`,void 0),N(this,`forceFlushTimeoutMillis`,void 0),this.processors=e,this.forceFlushTimeoutMillis=t}forceFlush(){var e=this;return K(function*(){let t=e.forceFlushTimeoutMillis;yield Promise.all(e.processors.map(e=>Ma(e.forceFlush(),t)))})()}onEmit(e,t){this.processors.forEach(n=>n.onEmit(e,t))}shutdown(){var e=this;return K(function*(){yield Promise.all(e.processors.map(e=>e.shutdown()))})()}enabled(e){for(let t of this.processors)if(!t.enabled||t.enabled(e))return!0;return!1}};function lc(e){if(e===void 0)return[`u`,null];if(e===null)return[`n`,null];let t=typeof e;return t===`string`?[`s`,e]:t===`boolean`?[`b`,e]:t===`number`?Number.isNaN(e)?[`nan`,null]:e===1/0?[`inf`,null]:e===-1/0?[`-inf`,null]:Object.is(e,-0)?[`n0`,null]:[`d`,e]:e instanceof Uint8Array?[`bytes`,Array.from(e)]:Array.isArray(e)?[`arr`,e.map(lc)]:[`map`,Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>[e,lc(t)])]}function uc(e){var t;return JSON.stringify([e.name,e.version||``,e.schemaUrl||``,lc(e.attributes),(t=e.droppedAttributesCount)==null?0:t])}P();var dc=class{constructor(e){N(this,`createdLogs`,void 0),this.createdLogs=e.createCounter(`otel.sdk.log.created`,{unit:`{log_record}`,description:`The number of logs submitted to enabled SDK Loggers.`})}emitLog(){this.createdLogs.add(1)}};M(),H(),W(),P();let fc={disabled:!1,minimumSeverity:V.UNSPECIFIED,traceBased:!1},pc=()=>U({},fc);var mc=class{constructor(e,t,n,r,i,a){N(this,`loggers`,new Map),N(this,`activeProcessor`,void 0),N(this,`registeredLogRecordProcessors`,[]),N(this,`resource`,void 0),N(this,`forceFlushTimeoutMillis`,void 0),N(this,`logRecordLimits`,void 0),N(this,`processors`,void 0),N(this,`loggerMetrics`,void 0),N(this,`_loggerConfigurator`,void 0),N(this,`_loggerConfigs`,new Map),this.resource=e,this.forceFlushTimeoutMillis=t,this.logRecordLimits=n,this.processors=r,r.length>0?(this.registeredLogRecordProcessors=r,this.activeProcessor=new cc(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new sc,this._loggerConfigurator=i==null?pc:i;let o=a?a.getMeter(`@opentelemetry/sdk-logs`,`0.219.0`):_e();this.loggerMetrics=new dc(o)}getLoggerConfig(e){let t=uc(e),n=this._loggerConfigs.get(t);return n||(n=this._loggerConfigurator(e),this._loggerConfigs.set(t,n),n)}};M(),H(),$s(),B(),P(),W();var hc=class{constructor(e={}){var t,n,r,i,a,o,s,c;N(this,`_shutdownOnce`,void 0),N(this,`_sharedState`,void 0);let l={resource:(t=e.resource)==null?qs():t,forceFlushTimeoutMillis:(n=e.forceFlushTimeoutMillis)==null?3e4:n,logRecordLimits:{attributeCountLimit:(r=(i=e.logRecordLimits)==null?void 0:i.attributeCountLimit)==null?128:r,attributeValueLengthLimit:(a=(o=e.logRecordLimits)==null?void 0:o.attributeValueLengthLimit)==null?1/0:a},loggerConfigurator:(s=e.loggerConfigurator)==null?pc:s,processors:(c=e.processors)==null?[]:c,meterProvider:e.meterProvider};this._sharedState=new mc(l.resource,l.forceFlushTimeoutMillis,l.logRecordLimits,l.processors,l.loggerConfigurator,l.meterProvider),this._shutdownOnce=new Ba(this._shutdown,this)}getLogger(e,t,n){if(this._shutdownOnce.isCalled)return k.warn(`A shutdown LoggerProvider cannot provide a Logger`),qa();e||k.warn(`Logger requested without instrumentation scope name.`);let r=U({name:e||`unknown`,version:t,schemaUrl:n==null?void 0:n.schemaUrl},ic(this._sharedState.logRecordLimits,n==null?void 0:n.attributes)),i=uc(r);return this._sharedState.loggers.has(i)||this._sharedState.loggers.set(i,new oc(r,this._sharedState)),this._sharedState.loggers.get(i)}forceFlush(){return this._shutdownOnce.isCalled?(k.warn(`invalid attempt to force flush after LoggerProvider shutdown`),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(k.warn(`shutdown may only be called once per LoggerProvider`),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};M(),B(),q(),P();function gc(e){return _c.apply(this,arguments)}function _c(){return _c=K(function*(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r.resource.asyncAttributesPending&&r.resource.waitForAsyncAttributes&&t.push(r.resource.waitForAsyncAttributes())}t!=null&&t.length>0&&(yield Promise.all(t))}),_c.apply(this,arguments)}var vc=class{constructor(e,t,n){N(this,`_exportCompleted`,void 0),N(this,`_exportScheduledPromise`,void 0),N(this,`_exportScheduledResolve`,void 0),this._exportScheduledPromise=new Promise(e=>{this._exportScheduledResolve=e}),this._exportCompleted=this._executeExport(e,t,n)}get exportCompleted(){return this._exportCompleted}get exportScheduled(){return this._exportScheduledPromise}_executeExport(e,t,n){var r=this;return K(function*(){try{yield gc(t),yield O.with(or(O.active()),K(function*(){return r._exportWithTimeout(e,t,n)}))}catch(e){Ar(e),r._exportScheduledResolve()}})()}_exportWithTimeout(e,t,n){var r=this;return K(function*(){return new Promise((i,a)=>{let o=setTimeout(()=>{a(Error(`Timeout`))},n);e.export(t,e=>{if(clearTimeout(o),e.code===z.SUCCESS)i();else{var t;a((t=e.error)==null?Error(`BatchLogRecordProcessor: log record export failed`):t)}}),r._exportScheduledResolve()})})()}},yc=class{constructor(e,t){var n,r,i,a;N(this,`_maxExportBatchSize`,void 0),N(this,`_maxQueueSize`,void 0),N(this,`_scheduledDelayMillis`,void 0),N(this,`_exportTimeoutMillis`,void 0),N(this,`_exporter`,void 0),N(this,`_currentExport`,null),N(this,`_finishedLogRecords`,[]),N(this,`_timer`,void 0),N(this,`_shutdownOnce`,void 0),N(this,`_flushing`,!1),this._exporter=e,this._maxExportBatchSize=(n=t==null?void 0:t.maxExportBatchSize)==null?512:n,this._maxQueueSize=(r=t==null?void 0:t.maxQueueSize)==null?2048:r,this._scheduledDelayMillis=(i=t==null?void 0:t.scheduledDelayMillis)==null?5e3:i,this._exportTimeoutMillis=(a=t==null?void 0:t.exportTimeoutMillis)==null?3e4:a,this._shutdownOnce=new Ba(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(k.warn(`BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize)}onEmit(e){this._shutdownOnce.isCalled||this._addToBuffer(e)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}_addToBuffer(e){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(e),this._maybeStartTimer())}shutdown(){return this._shutdownOnce.call()}_shutdown(){var e=this;return K(function*(){e.onShutdown(),yield e._flushAll(),yield e._exporter.shutdown()})()}_flushAll(){var e=this;return K(function*(){if(e._flushing)return;e._flushing=!0;let t=e._finishedLogRecords;e._finishedLogRecords=[],e._clearTimer();let n=e._currentExport;for(n!==null&&(yield e._exporter.forceFlush(),yield n.exportCompleted,e._currentExport=null);t.length>0;){let n;t.length<=e._maxExportBatchSize?(n=t,t=[]):n=t.splice(0,e._maxExportBatchSize);let r=new vc(e._exporter,n,e._exportTimeoutMillis);e._currentExport=r;try{yield r.exportScheduled,yield e._exporter.forceFlush(),yield r.exportCompleted}catch(e){Ar(e)}finally{e._currentExport=null}}e._flushing=!1,e._maybeStartTimer()})()}_extractBatch(){if(this._finishedLogRecords.length===0)return null;if(this._finishedLogRecords.length<=this._maxExportBatchSize){let e=this._finishedLogRecords;return this._finishedLogRecords=[],e}else return this._finishedLogRecords.splice(0,this._maxExportBatchSize)}_exportOneBatch(){this._clearTimer();let e=this._extractBatch();if(e===null)return;let t=new vc(this._exporter,e,this._exportTimeoutMillis);this._currentExport=t,t.exportCompleted.then(()=>{this._currentExport=null,this._maybeStartTimer()}).catch(e=>{this._currentExport=null,Ar(e),this._maybeStartTimer()})}_maybeStartTimer(){if(!this._shutdownOnce.isCalled&&!this._flushing&&this._finishedLogRecords.length!==0&&this._currentExport===null){if(this._finishedLogRecords.length>=this._maxExportBatchSize){this._exportOneBatch();return}this._timer===void 0&&(this._timer=setTimeout(()=>{this._timer=void 0,this._exportOneBatch()},this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};P();var bc=class extends yc{constructor(e,t){super(e,t),N(this,`_visibilityChangeListener`,void 0),N(this,`_pageHideListener`,void 0),this._onInit(t)}onShutdown(){typeof document>`u`||(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}_onInit(e){(e==null?void 0:e.disableAutoFlushOnDocumentHide)===!0||typeof document>`u`||(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush()},this._pageHideListener=()=>{this.forceFlush()},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}},xc,Sc=n((()=>{xc=`exception`}));function Cc(e){let t={};for(let[n,r]of e.getRawAttributes())typeof(r==null?void 0:r.then)!=`function`&&r!=null&&(t[n]!=null||(t[n]=r));return t}function wc(e,t,n,r,i){if(typeof n==`number`&&n<0){let t=`[${e}]`;return r!=null&&r.stylize?r.stylize(t,`special`):t}return typeof i!=`function`||!r?t:`${e} ${i(t,U(U({},r),{},{depth:r.depth==null?r.depth:r.depth-1}))}`}var Tc,Ec=n((()=>{W(),Tc=Symbol.for(`nodejs.util.inspect.custom`)})),Dc,Oc=n((()=>{M(),B(),I(),Sc(),Ec(),P(),Dc=class{constructor(e){var t,n;N(this,`_spanContext`,void 0),N(this,`kind`,void 0),N(this,`parentSpanContext`,void 0),N(this,`attributes`,{}),N(this,`links`,[]),N(this,`events`,[]),N(this,`startTime`,void 0),N(this,`resource`,void 0),N(this,`instrumentationScope`,void 0),N(this,`_droppedAttributesCount`,0),N(this,`_droppedEventsCount`,0),N(this,`_droppedLinksCount`,0),N(this,`_attributesCount`,0),N(this,`name`,void 0),N(this,`status`,{code:kt.UNSET}),N(this,`endTime`,[0,0]),N(this,`_ended`,!1),N(this,`_duration`,[-1,-1]),N(this,`_spanProcessor`,void 0),N(this,`_spanLimits`,void 0),N(this,`_attributeValueLengthLimit`,void 0),N(this,`_recordEndMetrics`,void 0),N(this,`_performanceStartTime`,void 0),N(this,`_performanceOffset`,void 0),N(this,`_startTimeProvided`,void 0);let r=Date.now();if(this._spanContext=e.spanContext,this._performanceStartTime=L.now(),this._performanceOffset=r-(this._performanceStartTime+L.timeOrigin),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=(t=this._spanLimits.attributeValueLengthLimit)==null?0:t,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,e.links)for(let t of e.links)this.addLink(t);this.startTime=this._getTime((n=e.startTime)==null?r:n),this.resource=e.resource,this.instrumentationScope=e.scope,this._recordEndMetrics=e.recordEndMetrics,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,t){if(t==null||this._isSpanEnded())return this;if(e.length===0)return k.warn(`Invalid attribute key: ${e}`),this;if(!Sr(t))return k.warn(`Invalid attribute value set for key: ${e}`),this;let{attributeCountLimit:n}=this._spanLimits,r=!Object.prototype.hasOwnProperty.call(this.attributes,e);return n!==void 0&&this._attributesCount>=n&&r?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(t),r&&this._attributesCount++,this)}setAttributes(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setAttribute(t,e[t]);return this}addEvent(e,t,n){if(this._isSpanEnded())return this;let{eventCountLimit:r}=this._spanLimits;if(r===0)return k.warn(`No events allowed.`),this._droppedEventsCount++,this;r!==void 0&&this.events.length>=r&&(this._droppedEventsCount===0&&k.debug(`Dropping extra events.`),this.events.shift(),this._droppedEventsCount++),Oi(t)&&(Oi(n)||(n=t),t=void 0);let i=br(t),{attributePerEventCountLimit:a}=this._spanLimits,o={},s=0,c=0;for(let e in i){if(!Object.prototype.hasOwnProperty.call(i,e))continue;let t=i[e];if(a!==void 0&&c>=a){s++;continue}o[e]=this._truncateToSize(t),c++}return this.events.push({name:e,attributes:o,time:this._getTime(n),droppedAttributesCount:s}),this}addLink(e){if(this._isSpanEnded())return this;let{linkCountLimit:t}=this._spanLimits;if(t===0)return this._droppedLinksCount++,this;t!==void 0&&this.links.length>=t&&(this._droppedLinksCount===0&&k.debug(`Dropping extra links.`),this.links.shift(),this._droppedLinksCount++);let{attributePerLinkCountLimit:n}=this._spanLimits,r=br(e.attributes),i={},a=0,o=0;for(let e in r){if(!Object.prototype.hasOwnProperty.call(r,e))continue;let t=r[e];if(n!==void 0&&o>=n){a++;continue}i[e]=this._truncateToSize(t),o++}let s={context:e.context};return o>0&&(s.attributes=i),a>0&&(s.droppedAttributesCount=a),this.links.push(s),this}addLinks(e){for(let t of e)this.addLink(t);return this}setStatus(e){if(this._isSpanEnded()||e.code===kt.UNSET||this.status.code===kt.OK)return this;let t={code:e.code};return e.code===kt.ERROR&&(typeof e.message==`string`?t.message=e.message:e.message!=null&&k.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`)),this.status=t,this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e){var t;if(this._isSpanEnded()){k.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(e),this._duration=wi(this.startTime,this.endTime),this._duration[0]<0&&(k.warn(`Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.`,this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&k.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&k.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),(t=this._recordEndMetrics)==null||t.call(this),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e==`number`&&e<=L.now())return Si(e+this._performanceOffset);if(typeof e==`number`)return R(e);if(e instanceof Date)return R(e.getTime());if(Di(e))return e;if(this._startTimeProvided)return R(Date.now());let t=L.now()-this._performanceStartTime;return ki(this.startTime,R(t))}isRecording(){return this._ended===!1}recordException(e,t){let n={};typeof e==`string`?n[Zr]=e:e&&(e.code?n[$r]=e.code.toString():e.name&&(n[$r]=e.name),e.message&&(n[Zr]=e.message),e.stack&&(n[Qr]=e.stack)),n[`exception.type`]||n[`exception.message`]?this.addEvent(xc,n,t):k.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let e=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);k.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_truncateToSize(e){let t=this._attributeValueLengthLimit;return t<=0?(k.warn(`Attribute value limit must be positive, got ${t}`),e):typeof e==`string`?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>typeof e==`string`?this._truncateToLimitUtil(e,t):e):e}[Tc](e,t,n){return wc(`SpanImpl`,{name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Cc(this.resource)}},e,t,n)}}})),kc,Ac=n((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(kc||(kc={}))})),jc,Mc=n((()=>{Ac(),jc=class{shouldSample(){return{decision:kc.NOT_RECORD}}toString(){return`AlwaysOffSampler`}}})),Nc,Pc=n((()=>{Ac(),Nc=class{shouldSample(){return{decision:kc.RECORD_AND_SAMPLED}}toString(){return`AlwaysOnSampler`}}})),Fc,Ic=n((()=>{M(),B(),Mc(),Pc(),P(),Fc=class{constructor(e){var t,n,r,i;N(this,`_root`,void 0),N(this,`_remoteParentSampled`,void 0),N(this,`_remoteParentNotSampled`,void 0),N(this,`_localParentSampled`,void 0),N(this,`_localParentNotSampled`,void 0),this._root=e.root,this._root||(Ar(Error(`ParentBasedSampler must have a root sampler configured`)),this._root=new Nc),this._remoteParentSampled=(t=e.remoteParentSampled)==null?new Nc:t,this._remoteParentNotSampled=(n=e.remoteParentNotSampled)==null?new jc:n,this._localParentSampled=(r=e.localParentSampled)==null?new Nc:r,this._localParentNotSampled=(i=e.localParentNotSampled)==null?new jc:i}shouldSample(e,t,n,r,i,a){let o=j.getSpanContext(e);return!o||!lt(o)?this._root.shouldSample(e,t,n,r,i,a):o.isRemote?o.traceFlags&D.SAMPLED?this._remoteParentSampled.shouldSample(e,t,n,r,i,a):this._remoteParentNotSampled.shouldSample(e,t,n,r,i,a):o.traceFlags&D.SAMPLED?this._localParentSampled.shouldSample(e,t,n,r,i,a):this._localParentNotSampled.shouldSample(e,t,n,r,i,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),Lc,Rc=n((()=>{M(),Ac(),P(),Lc=class{constructor(e=0){N(this,`_ratio`,void 0),N(this,`_upperBound`,void 0),this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,t){return{decision:st(t)&&this._accumulate(t)<this._upperBound?kc.RECORD_AND_SAMPLED:kc.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!=`number`||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<32;n+=8){let r=0;for(let t=0;t<8;t++){let i=e.charCodeAt(n+t),a=i<58?i-48:i<71?i-55:i-87;r=r<<4|a}t=(t^r)>>>0}return t}}}));function zc(){var e,t,n,r,i,a,o,s;return{sampler:Bc(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(e=void 0)==null?1/0:e,attributeCountLimit:(t=void 0)==null?128:t},spanLimits:{attributeValueLengthLimit:(n=void 0)==null?1/0:n,attributeCountLimit:(r=void 0)==null?128:r,linkCountLimit:(i=void 0)==null?128:i,eventCountLimit:(a=void 0)==null?128:a,attributePerEventCountLimit:(o=void 0)==null?128:o,attributePerLinkCountLimit:(s=void 0)==null?128:s}}}function Bc(){var e;let t=(e=void 0)==null?Hc.ParentBasedAlwaysOn:e;switch(t){case Hc.AlwaysOn:return new Nc;case Hc.AlwaysOff:return new jc;case Hc.ParentBasedAlwaysOn:return new Fc({root:new Nc});case Hc.ParentBasedAlwaysOff:return new Fc({root:new jc});case Hc.TraceIdRatio:return new Lc(Vc());case Hc.ParentBasedTraceIdRatio:return new Fc({root:new Lc(Vc())});default:return k.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "${Hc.ParentBasedAlwaysOn}".`),new Fc({root:new Nc})}}function Vc(){return k.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Uc}.`),Uc}var Hc,Uc,Wc=n((()=>{M(),B(),Mc(),Pc(),Ic(),Rc(),(function(e){e.AlwaysOff=`always_off`,e.AlwaysOn=`always_on`,e.ParentBasedAlwaysOff=`parentbased_always_off`,e.ParentBasedAlwaysOn=`parentbased_always_on`,e.ParentBasedTraceIdRatio=`parentbased_traceidratio`,e.TraceIdRatio=`traceidratio`})(Hc||(Hc={})),Uc=1}));function Gc(e){let t={sampler:Bc()},n=zc(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function Kc(e){var t,n,r,i,a,o,s,c,l,u,d,f;let p=Object.assign({},e.spanLimits);return p.attributeCountLimit=(t=(n=(r=(i=(a=e.spanLimits)==null?void 0:a.attributeCountLimit)==null?(o=e.generalLimits)==null?void 0:o.attributeCountLimit:i)==null?void 0:r)==null?void 0:n)==null?128:t,p.attributeValueLengthLimit=(s=(c=(l=(u=(d=e.spanLimits)==null?void 0:d.attributeValueLengthLimit)==null?(f=e.generalLimits)==null?void 0:f.attributeValueLengthLimit:u)==null?void 0:l)==null?void 0:c)==null?qc:s,Object.assign({},e,{spanLimits:p})}var qc,Jc=n((()=>{Wc(),B(),qc=1/0})),Yc,Xc=n((()=>{M(),B(),P(),Yc=class{constructor(e,t){var n,r,i,a;N(this,`_maxExportBatchSize`,void 0),N(this,`_maxQueueSize`,void 0),N(this,`_scheduledDelayMillis`,void 0),N(this,`_exportTimeoutMillis`,void 0),N(this,`_exporter`,void 0),N(this,`_isExporting`,!1),N(this,`_finishedSpans`,[]),N(this,`_timer`,void 0),N(this,`_shutdownOnce`,void 0),N(this,`_droppedSpansCount`,0),this._exporter=e,this._maxExportBatchSize=typeof(t==null?void 0:t.maxExportBatchSize)==`number`?t.maxExportBatchSize:(n=void 0)==null?512:n,this._maxQueueSize=typeof(t==null?void 0:t.maxQueueSize)==`number`?t.maxQueueSize:(r=void 0)==null?2048:r,this._scheduledDelayMillis=typeof(t==null?void 0:t.scheduledDelayMillis)==`number`?t.scheduledDelayMillis:(i=void 0)==null?5e3:i,this._exportTimeoutMillis=typeof(t==null?void 0:t.exportTimeoutMillis)==`number`?t.exportTimeoutMillis:(a=void 0)==null?3e4:a,this._shutdownOnce=new Ba(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(k.warn(`BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize`),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,t){}onEnd(e){this._shutdownOnce.isCalled||(e.spanContext().traceFlags&D.SAMPLED)!==0&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&k.debug(`maxQueueSize reached, dropping spans`),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(k.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,t)=>{let n=[],r=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let e=0,t=r;e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{e()}).catch(t)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,t)=>{let n=setTimeout(()=>{t(Error(`Timeout`))},this._exportTimeoutMillis);O.with(or(O.active()),()=>{let r;this._finishedSpans.length<=this._maxExportBatchSize?(r=this._finishedSpans,this._finishedSpans=[]):r=this._finishedSpans.splice(0,this._maxExportBatchSize);let i=()=>this._exporter.export(r,r=>{if(clearTimeout(n),r.code===z.SUCCESS)e();else{var i;t((i=r.error)==null?Error(`BatchSpanProcessor: span export failed`):i)}}),a=null;for(let e=0,t=r.length;e<t;e++){let t=r[e];t.resource.asyncAttributesPending&&t.resource.waitForAsyncAttributes&&(a!=null||(a=[]),a.push(t.resource.waitForAsyncAttributes()))}a===null?i():Promise.all(a).then(i,e=>{Ar(e),t(e)})})})}_maybeStartTimer(){if(this._isExporting)return;let e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,Ar(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),typeof this._timer!=`number`&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}})),Zc,Qc=n((()=>{Xc(),B(),P(),Zc=class extends Yc{constructor(e,t){super(e,t),N(this,`_visibilityChangeListener`,void 0),N(this,`_pageHideListener`,void 0),this.onInit(t)}onInit(e){(e==null?void 0:e.disableAutoFlushOnDocumentHide)!==!0&&typeof document<`u`&&(this._visibilityChangeListener=()=>{document.visibilityState===`hidden`&&this.forceFlush().catch(e=>{Ar(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{Ar(e)})},document.addEventListener(`visibilitychange`,this._visibilityChangeListener),document.addEventListener(`pagehide`,this._pageHideListener))}onShutdown(){typeof document<`u`&&(this._visibilityChangeListener&&document.removeEventListener(`visibilitychange`,this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener(`pagehide`,this._pageHideListener))}}}));function $c(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function el(e){let t=``;for(let n=0;n<e.length;n++)t+=al[e[n]];return t}var tl,nl,rl,il,al,ol,sl=n((()=>{tl=16,nl=8,rl=new Uint8Array(tl),il=new Uint8Array(nl),al=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`)),ol=class{generateTraceId(){return $c(rl),el(rl)}generateSpanId(){return $c(il),el(il)}}})),cl=n((()=>{Qc(),sl()})),ll,ul,dl,fl,pl=n((()=>{ll=`otel.span.parent.origin`,ul=`otel.span.sampling_result`,dl=`otel.sdk.span.live`,fl=`otel.sdk.span.started`}));function ml(e){return e?e.isRemote?`remote`:`local`:`none`}function hl(e){switch(e){case kc.RECORD_AND_SAMPLED:return`RECORD_AND_SAMPLE`;case kc.RECORD:return`RECORD_ONLY`;case kc.NOT_RECORD:return`DROP`}}var gl,_l=n((()=>{Ac(),pl(),P(),gl=class{constructor(e){N(this,`startedSpans`,void 0),N(this,`liveSpans`,void 0),this.startedSpans=e.createCounter(fl,{unit:`{span}`,description:`The number of created spans.`}),this.liveSpans=e.createUpDownCounter(dl,{unit:`{span}`,description:`The number of currently live spans.`})}startSpan(e,t){let n=hl(t);if(this.startedSpans.add(1,{[ll]:ml(e),[ul]:n}),t===kc.NOT_RECORD)return()=>{};let r={[ul]:n};return this.liveSpans.add(1,r),()=>{this.liveSpans.add(-1,r)}}}})),vl,yl=n((()=>{vl=`2.8.0`})),bl,xl=n((()=>{M(),B(),Oc(),Jc(),cl(),_l(),yl(),Ec(),P(),bl=class{constructor(e,t,n,r){N(this,`_sampler`,void 0),N(this,`_generalLimits`,void 0),N(this,`_spanLimits`,void 0),N(this,`_idGenerator`,void 0),N(this,`instrumentationScope`,void 0),N(this,`_resource`,void 0),N(this,`_spanProcessor`,void 0),N(this,`_tracerMetrics`,void 0);let i=Gc(t);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=t.idGenerator||new ol,this._resource=n,this._spanProcessor=r,this.instrumentationScope=e;let a=i.meterProvider?i.meterProvider.getMeter(`@opentelemetry/sdk-trace`,vl):_e();this._tracerMetrics=new gl(a)}startSpan(e,t={},n=O.active()){var r,i,a;t.root&&(n=j.deleteSpan(n));let o=j.getSpan(n);if(sr(n))return k.debug(`Instrumentation suppressed, returning Noop Span`),j.wrapSpanContext(Je);let s=o==null?void 0:o.spanContext(),c=this._idGenerator.generateSpanId(),l,u,d;!s||!j.isSpanContextValid(s)?u=this._idGenerator.generateTraceId():(u=s.traceId,d=s.traceState,l=s);let f=(r=t.kind)==null?Dt.INTERNAL:r,p=((i=t.links)==null?[]:i).map(e=>({context:e.context,attributes:br(e.attributes)})),m=br(t.attributes),h=this._sampler.shouldSample(n,u,e,f,m,p),g=this._tracerMetrics.startSpan(s,h.decision);d=(a=h.traceState)==null?d:a;let _=h.decision===Tt.RECORD_AND_SAMPLED?D.SAMPLED:D.NONE,v={traceId:u,spanId:c,traceFlags:_,traceState:d};if(h.decision===Tt.NOT_RECORD)return k.debug(`Recording is off, propagating context in a non-recording span`),j.wrapSpanContext(v);let y=br(Object.assign(m,h.attributes));return new Dc({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:v,name:e,kind:f,links:p,parentSpanContext:l,attributes:y,startTime:t.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:g})}startActiveSpan(e,t,n,r){var i;let a,o,s;if(arguments.length<2)return;arguments.length===2?s=t:arguments.length===3?(a=t,s=n):(a=t,o=n,s=r);let c=(i=o)==null?O.active():i,l=this.startSpan(e,a,c),u=j.setSpan(c,l);return O.with(u,s,void 0,l)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}[Tc](e,t,n){return wc(`Tracer`,{instrumentationScope:this.instrumentationScope,resource:{attributes:Cc(this._resource)},spanLimits:this._spanLimits,generalLimits:this._generalLimits},e,t,n)}}})),Sl,Cl=n((()=>{B(),P(),Sl=class{constructor(e){N(this,`_spanProcessors`,void 0),this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise(t=>{Promise.all(e).then(()=>{t()}).catch(e=>{Ar(e||Error(`MultiSpanProcessor: forceFlush failed`)),t()})})}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnding(e){for(let t of this._spanProcessors)t.onEnding&&t.onEnding(e)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise((t,n)=>{Promise.all(e).then(()=>{t()},n)})}}})),wl,Tl,El=n((()=>{B(),$s(),xl(),Wc(),Cl(),Jc(),Ec(),P(),(function(e){e[e.resolved=0]=`resolved`,e[e.timeout=1]=`timeout`,e[e.error=2]=`error`,e[e.unresolved=3]=`unresolved`})(wl||(wl={})),Tl=class{constructor(e={}){var t,n;N(this,`_config`,void 0),N(this,`_tracers`,new Map),N(this,`_resource`,void 0),N(this,`_activeSpanProcessor`,void 0);let r=xa({},zc(),Kc(e));this._resource=(t=r.resource)==null?qs():t,this._config=Object.assign({},r,{resource:this._resource});let i=[];(n=e.spanProcessors)!=null&&n.length&&i.push(...e.spanProcessors),this._activeSpanProcessor=new Sl(i)}getTracer(e,t,n){let r=`${e}@${t||``}:${(n==null?void 0:n.schemaUrl)||``}`;return this._tracers.has(r)||this._tracers.set(r,new bl({name:e,version:t,schemaUrl:n==null?void 0:n.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(r)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,t=this._activeSpanProcessor._spanProcessors.map(t=>new Promise(n=>{let r,i=setTimeout(()=>{n(Error(`Span processor did not completed within timeout period of ${e} ms`)),r=wl.timeout},e);t.forceFlush().then(()=>{clearTimeout(i),r!==wl.timeout&&(r=wl.resolved,n(r))}).catch(e=>{clearTimeout(i),r=wl.error,n(e)})}));return new Promise((e,n)=>{Promise.all(t).then(t=>{let r=t.filter(e=>e!==wl.resolved);r.length>0?n(r):e()}).catch(e=>n([e]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Tc](e,t,n){let r=this._activeSpanProcessor._spanProcessors;return wc(`BasicTracerProvider`,{resource:{attributes:Cc(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:r.map(e=>{var t,n;return(t=(n=e.constructor)==null?void 0:n.name)==null?`SpanProcessor`:t})},e,t,n)}}})),Dl=n((()=>{El(),cl(),B(),P(),M(),q(),Mc(),Pc(),Ic(),Rc(),Ac()})),Ol,kl=n((()=>{M(),P(),Ol=class{constructor(){N(this,`_enabled`,!1),N(this,`_currentContext`,w)}_bindFunction(e=w,t){let n=this,r=function(...r){return n.with(e,()=>t.apply(this,r))};return Object.defineProperty(r,`length`,{enumerable:!1,configurable:!0,writable:!1,value:t.length}),r}active(){return this._currentContext}bind(e,t){return e===void 0&&(e=this.active()),typeof t==`function`?this._bindFunction(e,t):t}disable(){return this._currentContext=w,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=w,this)}with(e,t,n,...r){let i=this._currentContext;this._currentContext=e||w;try{return t.call(n,...r)}finally{this._currentContext=i}}}}));function Al(e){if(e!==null){if(e===void 0){let e=new Ol;e.enable(),O.setGlobalContextManager(e);return}e.enable(),O.setGlobalContextManager(e)}}function jl(e){if(e!==null){if(e===void 0){A.setGlobalPropagator(new Fi({propagators:[new ra,new vr]}));return}A.setGlobalPropagator(e)}}var Ml,Nl=n((()=>{Dl(),kl(),M(),B(),Ml=class extends Tl{constructor(e={}){super(e)}register(e={}){j.setGlobalTracerProvider(this),jl(e.propagator),Al(e.contextManager)}}})),Z,Pl=n((()=>{(function(e){e.CONNECT_END=`connectEnd`,e.CONNECT_START=`connectStart`,e.DECODED_BODY_SIZE=`decodedBodySize`,e.DOM_COMPLETE=`domComplete`,e.DOM_CONTENT_LOADED_EVENT_END=`domContentLoadedEventEnd`,e.DOM_CONTENT_LOADED_EVENT_START=`domContentLoadedEventStart`,e.DOM_INTERACTIVE=`domInteractive`,e.DOMAIN_LOOKUP_END=`domainLookupEnd`,e.DOMAIN_LOOKUP_START=`domainLookupStart`,e.ENCODED_BODY_SIZE=`encodedBodySize`,e.FETCH_START=`fetchStart`,e.LOAD_EVENT_END=`loadEventEnd`,e.LOAD_EVENT_START=`loadEventStart`,e.NAVIGATION_START=`navigationStart`,e.REDIRECT_END=`redirectEnd`,e.REDIRECT_START=`redirectStart`,e.REQUEST_START=`requestStart`,e.RESPONSE_END=`responseEnd`,e.RESPONSE_START=`responseStart`,e.SECURE_CONNECTION_START=`secureConnectionStart`,e.START_TIME=`startTime`,e.UNLOAD_EVENT_END=`unloadEventEnd`,e.UNLOAD_EVENT_START=`unloadEventStart`})(Z||(Z={}))})),Fl,Il,Ll=n((()=>{Fl=`http.response_content_length`,Il=`http.response_content_length_uncompressed`}));function Rl(){return Jl||(Jl=document.createElement(`a`)),Jl}function zl(e,t){return t in e}function Q(e,t,n,r=!0){if(zl(n,t)&&typeof n[t]==`number`&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function Bl(e,t,n=!1,r,i){if(r===void 0&&(r=t[Z.START_TIME]!==0),n||(Q(e,Z.FETCH_START,t,r),Q(e,Z.DOMAIN_LOOKUP_START,t,r),Q(e,Z.DOMAIN_LOOKUP_END,t,r),Q(e,Z.CONNECT_START,t,r),Q(e,Z.SECURE_CONNECTION_START,t,r),Q(e,Z.CONNECT_END,t,r),Q(e,Z.REQUEST_START,t,r),Q(e,Z.RESPONSE_START,t,r),Q(e,Z.RESPONSE_END,t,r)),!i){let n=t[Z.ENCODED_BODY_SIZE];n!==void 0&&e.setAttribute(Fl,n);let r=t[Z.DECODED_BODY_SIZE];r!==void 0&&n!==r&&e.setAttribute(Il,r)}}function Vl(e){return e.slice().sort((e,t)=>{let n=e[Z.FETCH_START],r=t[Z.FETCH_START];return n>r?1:n<r?-1:0})}function Hl(){return typeof location<`u`?location.origin:void 0}function Ul(e,t,n,r,i=new WeakSet,a){let o=Kl(e);e=o.toString();let s=Gl(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};let c=Vl(s);if(o.origin!==Hl()&&c.length>1){let e=c[0],t=Wl(c,e[Z.RESPONSE_END],n),r=e[Z.RESPONSE_END];return t[Z.FETCH_START]<r&&(t=e,e=void 0),{corsPreFlightRequest:e,mainRequest:t}}else return{mainRequest:s[0]}}function Wl(e,t,n){let r=Ti(n),i=Ti(Ci(t)),a=e[1],o,s=e.length;for(let t=1;t<s;t++){let n=e[t],s=Ti(Ci(n[Z.FETCH_START])),c=r-Ti(Ci(n[Z.RESPONSE_END]));s>=i&&(!o||c<o)&&(o=c,a=n)}return a}function Gl(e,t,n,r,i,a){let o=Ti(t),s=Ti(n),c=r.filter(t=>{let n=Ti(Ci(t[Z.FETCH_START])),r=Ti(Ci(t[Z.RESPONSE_END]));return t.initiatorType.toLowerCase()===(a||`xmlhttprequest`)&&t.name===e&&n>=o&&r<=s});return c.length>0&&(c=c.filter(e=>!i.has(e))),c}function Kl(e){if(typeof URL==`function`)return new URL(e,typeof document<`u`?document.baseURI:typeof location<`u`?location.href:void 0);let t=Rl();return t.href=e,t}function ql(e,t){let n=t||[];return(typeof n==`string`||n instanceof RegExp)&&(n=[n]),Kl(e).origin===Hl()?!0:n.some(t=>Fa(e,t))}var Jl,Yl=n((()=>{Pl(),B(),Ll()})),Xl=n((()=>{Nl(),kl(),Pl(),Yl(),Dl()}));zs(),Xl();let Zl={compression:`gzip`,concurrencyLimit:5,keepalive:!0,timeoutMillis:30*1e3},Ql=(e,t)=>({"X-MXL-AID":e,"X-MXL-DID":t}),$l=(e,t)=>t||`http://mxl-otelcol.service-availability.apps.ocpthikadev01.safaricom.net`,eu=Math.pow(10,9);function tu(e){return e[0]*eu+e[1]}function nu(e,t){let n={attributes:iu(e.attributes,t),droppedAttributesCount:0},r=e.schemaUrl;return r&&r!==``&&(n.schemaUrl=r),n}function ru(e){return{name:e.name,version:e.version}}function iu(e,t){return Object.keys(e).map(n=>au(n,e[n],t))}function au(e,t,n){return{key:e,value:ou(t,n)}}function ou(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]=ou(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:ou(e[n[i]],t)};return{kvlistValue:{values:r}}}return{}}function su(e,t){return{resourceLogs:lu(e,t)}}function cu(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 lu(e,t){let n=cu(e);return Array.from(n,([e,n])=>{let r=nu(e,t);return{resource:r,scopeLogs:Array.from(n,([,e])=>({scope:ru(e[0].instrumentationScope),logRecords:e.map(e=>uu(e,t)),schemaUrl:e[0].instrumentationScope.schemaUrl})),schemaUrl:r.schemaUrl}})}function uu(e,t){var n,r,i;return{timeUnixNano:t.encodeHrTime(e.hrTime),observedTimeUnixNano:t.encodeHrTime(e.hrTimeObserved),severityNumber:du(e.severityNumber),severityText:e.severityText,body:ou(e.body,t),eventName:e.eventName,attributes:fu(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,flags:(n=e.spanContext)==null?void 0:n.traceFlags,traceId:t.encodeOptionalSpanContext((r=e.spanContext)==null?void 0:r.traceId),spanId:t.encodeOptionalSpanContext((i=e.spanContext)==null?void 0:i.spanId)}}function du(e){return e}function fu(e,t){return Object.keys(e).map(n=>au(n,e[n],t))}function pu(e){let t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function mu(e){return pu(e).toString()}let hu=typeof BigInt<`u`?mu:tu;function gu(e){return e}let _u={encodeHrTime:hu,encodeSpanContext:gu,encodeOptionalSpanContext:gu,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(``))}};M();let vu={serializeRequest:e=>{let t=su(e,_u);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 k.warn(`Failed to parse logs export response: ${e.message}. Returning empty response`),{}}}};function yu(e,t){let n=e&255|256;return t&&(n|=512),n}function bu(e,t){var n,r,i,a;let o=e.spanContext(),s=e.status,c=(n=e.parentSpanContext)!=null&&n.spanId?t.encodeSpanContext((r=e.parentSpanContext)==null?void 0:r.spanId):void 0;return{traceId:t.encodeSpanContext(o.traceId),spanId:t.encodeSpanContext(o.spanId),parentSpanId:c,traceState:(i=o.traceState)==null?void 0:i.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:iu(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(e=>Su(e,t)),droppedEventsCount:e.droppedEventsCount,status:{code:s.code,message:s.message},links:e.links.map(e=>xu(e,t)),droppedLinksCount:e.droppedLinksCount,flags:yu(o.traceFlags,(a=e.parentSpanContext)==null?void 0:a.isRemote)}}function xu(e,t){var n;return{attributes:e.attributes?iu(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(n=e.context.traceState)==null?void 0:n.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:yu(e.context.traceFlags,e.context.isRemote)}}function Su(e,t){return{attributes:e.attributes?iu(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Cu(e,t){return{resourceSpans:Tu(e,t)}}function wu(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 Tu(e,t){let n=wu(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=>bu(e,t));o.push({scope:ru(e[0].instrumentationScope),spans:n,schemaUrl:e[0].instrumentationScope.schemaUrl})}c=s.next()}let l=nu(e,t),u={resource:l,scopeSpans:o,schemaUrl:l.schemaUrl};r.push(u),a=i.next()}return r}M();let Eu={serializeRequest:e=>{let t=Cu(e,_u);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 k.warn(`Failed to parse trace export response: ${e.message}. Returning empty response`),{}}}};var Du=class{constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}};P();var Ou=class extends Error{constructor(e,t,n){super(e),N(this,`code`,void 0),N(this,`name`,`OTLPExporterError`),N(this,`data`,void 0),this.data=n,this.code=t}};P(),q();var ku=class{constructor(e){N(this,`_concurrencyLimit`,void 0),N(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}awaitAll(){var e=this;return K(function*(){yield Promise.all(e._sendingPromises)})()}};function Au(e){return new ku(e.concurrencyLimit)}M();function ju(e){return Object.prototype.hasOwnProperty.call(e,`partialSuccess`)}function Mu(){return{handleResponse(e){e==null||!ju(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||k.warn(`Received Partial Success response:`,JSON.stringify(e.partialSuccess))}}}B(),M(),P(),q();var Nu=class{constructor(e,t,n,r,i){N(this,`_diagLogger`,void 0),N(this,`_transport`,void 0),N(this,`_serializer`,void 0),N(this,`_responseHandler`,void 0),N(this,`_promiseQueue`,void 0),N(this,`_timeout`,void 0),this._transport=e,this._serializer=t,this._responseHandler=n,this._promiseQueue=r,this._timeout=i,this._diagLogger=k.createComponentLogger({namespace:`OTLPExportDelegate`})}export(e,t){if(this._diagLogger.debug(`items to be sent`,e),this._promiseQueue.hasReachedLimit()){t({code:z.FAILED,error:Error(`Concurrent export limit reached`)});return}let n=this._serializer.serializeRequest(e);if(n==null){t({code:z.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:z.SUCCESS});return}else if(e.status===`failure`&&e.error){t({code:z.FAILED,error:e.error});return}else if(e.status===`retryable`){var n;t({code:z.FAILED,error:(n=e.error)==null?new Ou(`Export failed with retryable status`):n})}else t({code:z.FAILED,error:new Ou(`Export failed with unknown error`)})},e=>t({code:z.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}shutdown(){var e=this;return K(function*(){e._diagLogger.debug(`shutdown started`),yield e.forceFlush(),e._transport.shutdown()})()}};function Pu(e,t){return new Nu(e.transport,e.serializer,Mu(),e.promiseHandler,t.timeout)}function Fu(e,t,n){return Pu({transport:n,serializer:t,promiseHandler:Au(e)},{timeout:e.timeoutMillis})}M(),q(),W();let Iu=49152,Lu=0,Ru=0;var zu=class e{constructor(e){this._config=e}static _compressRequest(e){return K(function*(){let t=new CompressionStream(`gzip`),n=t.writable.getWriter();n.write(e),n.close();let r=[],i=t.readable.getReader(),a=!1;for(;!a;){let e=yield i.read();e.value&&r.push(e.value),{done:a}=e}let o=new Uint8Array(r.reduce((e,t)=>e+t.length,0)),s=0;for(let e of r)o.set(e,s),s+=e.length;return o})()}send(e,t){return this._asyncSend(e,t)}shutdown(){}_asyncSend(t,n){var r=this;return K(function*(){let i=t,a=U({"Content-Type":`application/json`},r._config.headers),o,s;if(`timeout`in AbortSignal)o=AbortSignal.timeout(n);else{let e=new AbortController;({signal:o}=e),s=setTimeout(()=>{e.abort(new DOMException(`TimeoutError`,`TimeoutError`))},n)}let c=!1;try{if(r._config.compression===`gzip`){try{i=yield e._compressRequest(t)}catch(e){let t=e instanceof Error?e:Error(String(e));return k.warn(`Fetch transport gzip compression failed: ${t.message}`),{error:t,status:`failure`}}a[`Content-Encoding`]=`gzip`,a[`Content-Length`]=i.length.toString()}let n=Lu+i.byteLength>Iu;if(c=!n&&!(Ru>=9),c)Lu+=i.byteLength,Ru++;else{let e=n?`inflight bytes (${Lu} + ${i.byteLength}) would exceed ${Iu}B budget`:`concurrent count (${Ru}) at limit of 9`;k.debug(`Sending without keepalive: ${e}`)}let s=yield fetch(r._config.url,{body:i,headers:a,keepalive:c,method:`POST`,signal:o});if(s.ok)return{status:`success`};let l=Error(`${s.status} Fetch request failed`),u=`Fetch transport received HTTP ${s.status} (keepalive=${c})`;return s.status>=500?(k.debug(u),{error:l,status:`retryable`}):(k.warn(u),{error:l,status:`failure`})}catch(e){let t=e instanceof Error?e:Error(String(e)),n=t instanceof TypeError||t instanceof DOMException&&t.name===`TimeoutError`,r=`Fetch transport failed (keepalive=${c}): ${t.message}`;return n?k.debug(r):k.warn(r),{error:t,status:n?`retryable`:`failure`}}finally{s!==void 0&&clearTimeout(s),c&&(Lu-=i.byteLength,Ru--)}})()}};let Bu=e=>new zu(e);q();let Vu=()=>Math.random()*40-20;var Hu=class{constructor(e,t=new Ga){this._transport=e,this._perf=t}send(e,t){var n=this;return K(function*(){let r=n._perf.getNowMillis()+t,i=yield n._transport.send(e,t),a=5,o=1e3;for(;i.status===`retryable`&&a>0;){var s;a--;let t=Math.max(Math.min(o,5e3)+Vu(),0);o*=1.5;let c=(s=i.retryInMillis)==null?t:s,l=r-n._perf.getNowMillis();if(c>l)return i;i=yield n._retry(e,l,c)}return i})()}shutdown(){this._transport.shutdown()}_retry(e,t,n){return new Promise((r,i)=>{setTimeout(()=>{this._transport.send(e,t).then(r,i)},n)})}};let Uu=e=>{var t;return new Hu(e.transport,(t=e.perf)==null?new Ga:t)},Wu=(e,t)=>Fu(e,t,Uu({transport:Bu(e)}));var Gu=class extends Du{constructor(e){super(Wu(e,vu))}};let Ku=(e,t)=>`${$l(e,t)}/v1/logs`;W();var qu=class extends Gu{constructor({appID:e,userID:t,mxlDataURL:n}){super(U(U({},Zl),{},{headers:Ql(e,t),url:Ku(e,n)}))}};W();var Ju=class extends Du{constructor(e){super(Wu(U(U({},e),{},{compression:`gzip`}),Eu))}};let Yu=(e,t)=>`${$l(e,t)}/v1/traces`;W();var Xu=class extends Ju{constructor({appID:e,userID:t,mxlDataURL:n}){super(U(U({},Zl),{},{headers:Ql(e,t),url:Yu(e,n)}))}};function Zu(e){return{isRecording:()=>e.isRecording(),setEnabled:t=>{if(t){e.resume();return}e.pause()}}}W(),q();let Qu=0;function $u(e,t){let n=Date.now();n-Qu<3e4||(Qu=n,console.warn(`[mxl] session replay ${e} failed (dropping; will retry on next chunk):`,t))}function ed(e){let t=Ql(e.appID,e.userID),n=e.baseUrl.replace(/\/$/,``),r=[`${n}/v1/sessionReplays/`,`${n}/v1/sessionEvents`,`${n}/v1/logs`,`${n}/v1/traces`],i=e=>r.some(t=>e.startsWith(t)),a=function(){var e=K(function*(e,r=!1){let i=`${JSON.stringify(e)}\n`;yield fetch(`${n}/v1/sessionReplays/meta`,{body:i,headers:U(U({},t),{},{"content-type":`application/x-ndjson`}),keepalive:r,method:`POST`}).catch(e=>{$u(`metadata POST`,e)})});return function(t){return e.apply(this,arguments)}}(),o=function(){var e=K(function*(e,r=!1){if(e.length===0)return;let i=`${e.map(e=>JSON.stringify(e)).join(`
2
+ `)}\n`;yield fetch(`${n}/v1/sessionEvents`,{body:i,headers:U(U({},t),{},{"content-type":`application/x-ndjson`}),keepalive:r,method:`POST`}).catch(e=>{$u(`events POST`,e)})});return function(t){return e.apply(this,arguments)}}();return{postSessionBlob:function(){var e=K(function*(e,r,i=!1){yield fetch(`${n}/v1/sessionReplays/blob`,{body:r,headers:U(U({},t),{},{"content-type":`application/octet-stream`,"x-mxl-chunk-seq":String(e.chunkSeq),"x-mxl-duration-ms":String(e.durationMs),"x-mxl-event-count":String(e.eventCount),"x-mxl-is-checkpoint":e.isCheckpoint?`1`:`0`,"x-mxl-session-id":e.sessionId}),keepalive:i,method:`POST`}).catch(e=>{$u(`blob POST`,e)})});return function(t,n){return e.apply(this,arguments)}}(),postSessionEvents:o,postSessionMeta:a,shouldIgnoreUrl:i}}function td(e){return ed({appID:e.appID,baseUrl:$l(e.appID,e.mxlDataURL),userID:e.userID})}let nd=new Uint8Array(16),rd=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,`0`).toUpperCase()),id=()=>{crypto.getRandomValues(nd);let e=``;for(let t=0;t<16;t++)e+=rd[nd[t]];return e},ad=`0.0.19`,od=`mxl_app_instance_id`,sd=(e,t)=>{let n=null;try{n=e.getItem(od)}catch(e){t.warn(`Failed to retrieve app instance ID from session storage`,e)}if(!n){t.debug(`No existing app instance ID found in session storage, creating a new one`),n=id();try{e.setItem(od,n)}catch(e){t.warn(`Failed to persist app instance ID to session storage`,e)}}return n};$s(),I();let cd=`unknown_service`,ld=({serviceName:e})=>Gs({[ai]:e}),ud=({diagLogger:e,appVersion:t,pageSessionStorage:n})=>Gs({[ci]:`mxl-web-sdk`,app_version:t,app_framework:1,sdk_version:ad,[li]:ad,sdk_simple_version:1,sdk_platform:`web`,[oi]:`webjs`,"mxl.app_instance_id":sd(n,e),[pi]:window.navigator.userAgent,screen_resolution:`${window.screen.width}x${window.screen.height}`}),dd={networkSpansForwardingThreshold:0,samplingPct:100},fd=`mxl_remote_config`,pd=(e,{osVersion:t,appVersion:n,deviceId:r},i)=>`${i||`https://mxl-basket.apps.ocpthikadev01.safaricom.net`}/config?appId=${e}&osVersion=${t}&appVersion=${n}&deviceId=${r}`;M(),P(),W(),q();let md=e=>{let t={samplingPct:e.threshold};return e.network_span_forwarding!==void 0&&(t.networkSpansForwardingThreshold=e.network_span_forwarding.pct_enabled),e.service_name!==void 0&&e.service_name!==``&&(t.serviceName=e.service_name),t};var hd=class{constructor({appID:e,appVersion:t,deviceId:n,diag:r=k.createComponentLogger({namespace:`mxl-config-manager`}),storage:i=window.localStorage,defaultConfig:a={},mxlConfigURL:o}={}){N(this,`_remoteConfigURL`,null),N(this,`_diag`,void 0),N(this,`_storage`,void 0),N(this,`_baseConfig`,void 0),N(this,`_sdkConfig`,void 0),N(this,`_etag`,null),N(this,`_remoteSourceServiceName`,void 0),e&&t&&n&&(this._remoteConfigURL=pd(e,{appVersion:t,deviceId:n,osVersion:`1`},o)),this._diag=r,this._storage=i;let s=this._getRemoteConfigFromStorage();s&&(this._etag=s.etag,this._captureRemoteServiceName(s.config)),this._baseConfig=U(U({},dd),a),this._sdkConfig=U(U({},this._baseConfig),s?md(s.config):{})}setConfig(e){this._sdkConfig=U(U({},this._sdkConfig),e)}getConfig(){return this._sdkConfig}resolveApplicationServiceName(e){var t,n;return((t=this._remoteSourceServiceName)==null?void 0:t.trim())||(e==null?void 0:e.trim())||((n=this._baseConfig.serviceName)==null?void 0:n.trim())||cd}_captureRemoteServiceName(e){if(e.service_name===void 0)return;let t=e.service_name.trim();this._remoteSourceServiceName=t.length>0?t:void 0}refreshRemoteConfig(){var e=this;return K(function*(){if(e._remoteConfigURL)try{let t=yield e._fetchRemoteConfig(e._remoteConfigURL);if(!t){e._diag.debug(`No changes in remote config, skipping update`);return}let[n,r]=t;e._captureRemoteServiceName(n),e._storage.setItem(fd,JSON.stringify({config:n,etag:r})),e._sdkConfig=U(U({},e._baseConfig),md(n)),e._etag=r}catch(t){e._diag.warn(`Failed to refresh remote config: ${t instanceof Error?t.message:String(t)}`)}})()}_getRemoteConfigFromStorage(){try{let e=this._storage.getItem(fd);return e?JSON.parse(e):null}catch(e){return this._diag.warn(`Failed to parse remote config from storage: ${e instanceof Error?e.message:String(e)}`),null}}_fetchRemoteConfig(e){var t=this;return K(function*(){let n=yield fetch(e,{headers:t._etag?{"If-None-Match":t._etag}:{}}),r=n.headers.get(`etag`);return n.status===304?null:n.ok?[yield n.json(),r]:(t._diag.warn(`Failed to fetch remote config from ${e}: ${n.statusText}`),null)})()}};let gd={maxAllowed:{breadcrumb:100,element_timing:500,error_log:500,exception:500,info_log:100,network_request:1e4,server_timing:500,session_property:100,span:1e3,user_timing_mark:500,user_timing_measure:500,warning_log:200},maxAttributes:{error_log:50,exception:50,info_log:50,warning_log:50},maxLength:{breadcrumb:256,error_log:128,exception:1024,exception_attribute_key:128,exception_attribute_value:256,info_log:128,log_attribute_key:128,log_attribute_value:256,session_property_key:128,session_property_value:256,warning_log:128}};M(),P();let _d={error:`error_log`,info:`info_log`,warning:`warning_log`};var vd=class{constructor({diag:e,maxAllowed:t,maxLength:n,maxAttributes:r}){N(this,`_diag`,void 0),N(this,`_diagnosticCounts`,{}),N(this,`_currentCount`,{breadcrumb:0,element_timing:0,error_log:0,exception:0,info_log:0,network_request:0,server_timing:0,session_property:0,span:0,user_timing_mark:0,user_timing_measure:0,warning_log:0}),N(this,`_maxAllowed`,void 0),N(this,`_maxLength`,void 0),N(this,`_maxAttributes`,void 0),this._diag=e==null?k.createComponentLogger({namespace:`MXLLimitManager`}):e,this._maxAllowed=t,this._maxLength=n,this._maxAttributes=r}_dropIfMaxReached(e){return this._currentCount[e]>=this._maxAllowed[e]?(this._diag.warn(`disallowing ${e} because the maximum number of ${this._maxAllowed[e].toString()} has already been reached for this session`),this._incrDiagnosticCount(e,`drop`),!0):(this._currentCount[e]=(this._currentCount[e]||0)+1,!1)}truncateString(e,t){return t.length>this._maxLength[e]?(this._diag.warn(`truncating ${e} because it is longer than ${this._maxLength[e].toString()} characters: "${t}"`),this._incrDiagnosticCount(e,`truncate_string`),t.substring(0,this._maxLength[e])):t}_truncateAttributes(e,t,n,r){let i=Object.keys(t);i.length>this._maxAttributes[e]&&(this._diag.warn(`truncating ${e} attributes because there are more than ${this._maxAttributes[e].toString()} set`),this._incrDiagnosticCount(e,`truncate_attributes`));let a={};for(let s=0;s<Math.min(i.length,this._maxAttributes[e]);s++){var o;let e=this.truncateString(n,i[s]);a[e]=this.truncateString(r,((o=t[i[s]])==null?void 0:o.toString())||``)}return a}limitBreadcrumb(e){return this._dropIfMaxReached(`breadcrumb`)?`dropped`:{name:this.truncateString(`breadcrumb`,e)}}limitException(e,t){return this._dropIfMaxReached(`exception`)?`dropped`:{attributes:this._truncateAttributes(`exception`,t,`exception_attribute_key`,`exception_attribute_value`),message:this.truncateString(`exception`,e)}}limitLog(e,t,n){let r=_d[t];return this._dropIfMaxReached(r)?`dropped`:{attributes:this._truncateAttributes(r,n,`log_attribute_key`,`log_attribute_value`),message:this.truncateString(r,e)}}limitSessionProperty(e,t){return this._dropIfMaxReached(`session_property`)?`dropped`:{key:this.truncateString(`session_property_key`,e),value:this.truncateString(`session_property_value`,t)}}limitElementTimingEntry(){return this._dropIfMaxReached(`element_timing`)}limitServerTimingEntry(){return this._dropIfMaxReached(`server_timing`)}limitUserTimingEntry(e){return this._dropIfMaxReached(e===`mark`?`user_timing_mark`:`user_timing_measure`)}dropReadableSpan(e){let t=e.attributes[`mxl.type`]===`perf.network_request`?`network_request`:`span`;return this._dropIfMaxReached(t)}reset(){this._diagnosticCounts={},this._currentCount={breadcrumb:0,element_timing:0,error_log:0,exception:0,info_log:0,network_request:0,server_timing:0,session_property:0,span:0,user_timing_mark:0,user_timing_measure:0,warning_log:0}}_incrDiagnosticCount(e,t){let n=`mxl.app.applied_limit.${e}.${t}.count`;this._diagnosticCounts[n]=(this._diagnosticCounts[n]||0)+1}getDiagnosticCounts(){return this._diagnosticCounts}};let yd=(e,t,n)=>{try{let r=e.getItem(t),i=r?parseInt(r,10):0;return Number.isNaN(i)&&(n.warn(`Non-numeric value stored at ${t} (${String(r)}); resetting counter.`),i=0),i++,e.setItem(t,i.toString()),i}catch(e){return n.warn(`Failed to retrieve ${t} from storage: `,e),1}},bd=e=>e.visibilityState===`hidden`?`background`:`foreground`,xd=globalThis;M(),H(),I(),P(),fn(),W();let Sd=()=>JSON.stringify(xd._MXLFileBundleIDs||{});var Cd=class e{constructor({diag:e,perf:t,userSessionManager:n,limitManager:r,loggerProvider:i,visibilityDoc:a=window.document,storage:o=window.localStorage}){N(this,`_diag`,void 0),N(this,`_perf`,void 0),N(this,`_logger`,void 0),N(this,`_userSessionManager`,void 0),N(this,`_limitManager`,void 0),N(this,`_visibilityDoc`,void 0),N(this,`_storage`,void 0);let s=i==null?uo:i;this._diag=e==null?k.createComponentLogger({namespace:`MXLLogManager`}):e,this._perf=t==null?new Ga:t,this._logger=s.getLogger(`mxl-web-sdk-logs`),this._userSessionManager=n,this._limitManager=r,this._visibilityDoc=a,this._storage=o}_validateAttributes(e){return Object.prototype.toString.call(e)===`[object Object]`?e:(this._diag.warn(`attributes must be a plain object`,e),{})}static _logSeverityToSeverityNumber(e){switch(e){case`info`:return V.INFO;case`warning`:return V.WARN;default:return V.ERROR}}logException(t,{handled:n=!0,attributes:r={},timestamp:i=this._perf.getNowMillis(),handler:a=`manual`}={}){var o;let s=this._validateAttributes(r);n||this._userSessionManager.incrSessionPartCountForKey(`mxl.unhandled_exceptions_count`);let c=(t==null||(o=t.constructor)==null?void 0:o.name)||typeof t,l=``,u=c,d=``,f=``;if(t instanceof Error)l=String(t.message||``).trim(),u=t.name||``,d=t.stack||``,f=t.cause?`present`:``;else if(t&&typeof t==`object`)try{l=JSON.stringify(t)}catch(e){l=String(t).trim()}else l=String(t).trim();let{[Yn]:p}=s,m=ls(s,[Yn].map(dn)),h=this._limitManager.limitException(l,m);h!==`dropped`&&this._logger.emit({attributes:U(U(U({},h.attributes),p===void 0?{}:{[Yn]:String(p)}),{},{[F]:`sys.exception`,"mxl.exception_handling":e._exceptionHandlingType(n,a),"mxl.exception_cause":f,[$r]:c,"exception.name":u,[Zr]:h.message,[Qr]:d,[Zn]:Sd(),[Jn]:bd(this._visibilityDoc),"mxl.exception_number":yd(this._storage,`mxl_exception_number`,this._diag)}),body:h.message,severityNumber:V.ERROR,severityText:`ERROR`,timestamp:i})}message(e,t,{attributes:n={},includeStacktrace:r=!0,stacktrace:i}={}){if(typeof e!=`string`||!e.trim()){this._diag.warn(`Message must be a non-empty string`);return}if(![`info`,`warning`,`error`].includes(t)){this._diag.warn(`Severity must be info, warning, or error`);return}let a=this._validateAttributes(n);t===`error`&&this._userSessionManager.incrSessionPartCountForKey(`mxl.error_log_count`);let o=``;t!==`info`&&(typeof i==`string`?o=i:r&&(o=Error().stack||``)),this._logMessage({attributes:a,message:e.trim(),severity:t,stack:o,timestamp:this._perf.getNowMillis()})}_logMessage({message:t,severity:n,timestamp:r,attributes:i={},stack:a}){let o=this._limitManager.limitLog(t,n,i);o!==`dropped`&&this._logger.emit({attributes:U(U(U({},o.attributes),{},{[F]:`sys.log`},a?{"mxl.stacktrace.js":a,[Zn]:Sd()}:{}),{},{[Jn]:bd(this._visibilityDoc)}),body:o.message,severityNumber:e._logSeverityToSeverityNumber(n),severityText:n.toUpperCase(),timestamp:r})}static _exceptionHandlingType(e,t){return e?`handled`:t===`global_exception`?`unhandled_error`:t===`promise_rejection`?`unhandled_rejection`:`unhandled`}};P();var wd=class{constructor({useDocumentTitleAsPageLabel:e=!0,titleDocument:t=window.document}={}){N(this,`_currentRoute`,null),N(this,`_currentPageId`,null),N(this,`_pageLabel`,null),N(this,`_titleDocument`,void 0),N(this,`_useDocumentTitleAsPageLabel`,void 0),N(this,`getCurrentPageId`,()=>this._currentPageId),N(this,`getCurrentRoute`,()=>this._currentRoute),N(this,`setPageLabel`,e=>{this._pageLabel=e}),N(this,`getPageLabel`,()=>this._pageLabel||(!this._useDocumentTitleAsPageLabel||!this._titleDocument?null:this._titleDocument.title)),N(this,`setCurrentRoute`,e=>{(!this._currentRoute||this._currentRoute.url!==e.url)&&(this._currentPageId=id()),this._currentRoute=e,e.label?this._pageLabel=e.label:this._pageLabel=null}),N(this,`clearCurrentRoute`,()=>{this._currentRoute=null,this._currentPageId=null,this._pageLabel=null}),this._useDocumentTitleAsPageLabel=e,this._titleDocument=t}};let Td=(e,t)=>!t||t<=0||t>100?!1:t>=Ed(e),Ed=e=>{if(e.length<6)return 0;let t=e.slice(-6),n=Math.pow(16,6)-1;return parseInt(t,16)/n*100};P();var Dd=class{constructor({dynamicConfigManager:e,deviceId:t,blockNetworkSpanForwarding:n}){N(this,`_dynamicConfigManager`,void 0),N(this,`_deviceId`,void 0),N(this,`_blockNetworkSpanForwarding`,void 0),this._dynamicConfigManager=e,this._deviceId=t,this._blockNetworkSpanForwarding=n}isSDKEnabled(){let e=this._dynamicConfigManager.getConfig();return Td(this._deviceId,e.samplingPct)}isNetworkSpanForwardingEnabled(){if(this._blockNetworkSpanForwarding)return!1;let e=this._dynamicConfigManager.getConfig();return Td(this._deviceId,e.networkSpansForwardingThreshold)}};P(),fn();var Od=class{constructor(e){N(this,`_span`,void 0),this._span=e}get attributes(){return this._span.attributes}addEvent(e,t,n){return this._span.addEvent(e,t,n),this}addLink(e){return this._span.addLink(e),this}addLinks(e){return this._span.addLinks(e),this}end(e){this._span.end(e)}isRecording(){return this._span.isRecording()}recordException(e,t){this._span.recordException(e,t)}setAttribute(e,t){return this._span.setAttribute(e,t),this}setAttributes(e){return this._span.setAttributes(e),this}removeAttribute(e){let t=this._span.attributes,{[e]:n}=t,r=ls(t,[e].map(dn));return this._span.attributes=r,this}setStatus(e){return this._span.setStatus(e),this}spanContext(){return this._span.spanContext()}updateName(e){return this._span.updateName(e),this}fail(e={code:`failure`}){e.code&&this._span.setAttribute(`mxl.error_code`,e.code.toUpperCase()),this._span.end(e.endTime)}};M(),P();var kd=class{constructor({tracerProvider:e}={}){N(this,`_tracer`,void 0),N(this,`setSpan`,j.setSpan);let t=e==null?j:e;this._tracer=t.getTracer(`mxl-web-sdk-traces`)}startSpan(e,t={},n){t.attributes=t.attributes?t.attributes:{},t.attributes[F]=`perf`;let r=t.parentSpan?j.setSpan(O.active(),t.parentSpan):n;return new Od(this._tracer.startSpan(e,t,r))}getSpan(e){let t=j.getSpan(e);if(t)return new Od(t)}};let Ad=`mxl_user`,jd=`mxl_user_id`,Md=`mxl_external_user_id`,Nd=e=>typeof e[`enduser.pseudo.id`]==`string`&&e[`enduser.pseudo.id`].length===32,Pd=e=>typeof e==`string`&&e.length===32;M(),P();var Fd=class{constructor({diag:e,storage:t=window.localStorage}={}){N(this,`_diag`,void 0),N(this,`_storage`,void 0),N(this,`_mxlUserId`,null),this._diag=e==null?k.createComponentLogger({namespace:`MXLUserManager`}):e,this._storage=t,this._migrateOldLocalStorageKey(),this._initialSetup()}getMXLUserId(){return this._mxlUserId||this._generateNewMXLUserId()}setMXLUserId(e){this._mxlUserId=e;try{this._storage.setItem(jd,e)}catch(e){this._diag.warn(`Failed to persist user object for storage, keeping it in-memory only`,e)}}clearMXLUserId(){this._mxlUserId=null;try{this._storage.removeItem(jd)}catch(e){this._diag.warn(`Failed to remove mxl user in storage`,e)}}_migrateOldLocalStorageKey(){try{let e=this._storage.getItem(Ad);if(e){let t=JSON.parse(e);Nd(t)?(this._diag.debug(`Migrating old user data from storage`),this._storage.setItem(jd,t[`enduser.pseudo.id`]),this._storage.removeItem(Ad)):(this._diag.warn(`Invalid user data found in storage, clearing old user data`),this._storage.removeItem(Ad))}}catch(e){this._diag.warn(`Failed to get old user data from storage`,e)}}_initialSetup(){try{let e=this._storage.getItem(jd);e?Pd(e)?this._mxlUserId=e:(this._diag.warn(`Invalid mxl user id, generating a new one`),this.clearMXLUserId()):this._diag.debug(`No existing user found in storage, creating a new one`)}catch(e){this._diag.warn(`Failed to get mxl user id from storage, defaulting to a new one`,e)}this._mxlUserId||(this._mxlUserId=this._generateNewMXLUserId())}_generateNewMXLUserId(){let e=id();return this.setMXLUserId(e),e}getUserId(){try{return this._storage.getItem(Md)}catch(e){return this._diag.warn(`Failed to retrieve user id from storage`,e),null}}setUserId(e){try{this._storage.setItem(Md,e)}catch(e){this._diag.warn(`Failed to store user id`,e)}}clearUserId(){try{this._storage.removeItem(Md)}catch(e){this._diag.warn(`Failed to clear user id`,e)}}};let Id=`mxl_user_session_state`,Ld=`mxl_permanent_properties`,Rd=`mxl_last_end_user_session_ts`,zd=`mxl_tab`,Bd=`mxl_tab_activity`,Vd=720*60,Hd=1800,Ud=[`keydown`,`mousedown`,`mousemove`,`scroll`],Wd=`http.response.body.size`,Gd=`session.id`,Kd=`session.previous_id`,qd=`user.id`,Jd=({diag:e,value:t,defaultValue:n,min:r,max:i})=>t===void 0?n:Number.isFinite(t)?t<r||t>i?(e==null||e.warn(`value (${t.toString()}) is outside the allowed range [${r.toString()}, ${i.toString()}]; falling back to default (${n.toString()}).`),n):t:(e==null||e.warn(`value is not a finite number; falling back to default (${n.toString()}).`),n),Yd=(e,t=1e3)=>{let n=!1,r=null,i=((...i)=>{n||(e(...i),n=!0,r=setTimeout(()=>{n=!1,r=null},t))});return i.cancel=()=>{r!==null&&(clearTimeout(r),r=null),n=!1},i},Xd=e=>e.visibilityState===`visible`&&e.hasFocus(),Zd=({target:e,visibilityDoc:t,activityEvents:n,onActivity:r,onVisibilityChange:i,onFocus:a,onBlur:o,onPageShow:s,onPageHide:c})=>{var l;for(let t of n)e.addEventListener(t,r);(l=t.addEventListener)==null||l.call(t,`visibilitychange`,i),e.addEventListener(`focus`,a),e.addEventListener(`blur`,o),e.addEventListener(`pageshow`,s),e.addEventListener(`pagehide`,c)},Qd=({target:e,visibilityDoc:t,activityEvents:n,onActivity:r,onVisibilityChange:i,onFocus:a,onBlur:o,onPageShow:s,onPageHide:c})=>{var l;for(let t of n)e.removeEventListener(t,r);(l=t.removeEventListener)==null||l.call(t,`visibilitychange`,i),e.removeEventListener(`focus`,a),e.removeEventListener(`blur`,o),e.removeEventListener(`pageshow`,s),e.removeEventListener(`pagehide`,c)},$d=(e,t)=>t<e.userSessionStartTs||t>=e.userSessionMaxEndTs||e.inactivityDeadlineTs!==null&&t>=e.inactivityDeadlineTs,ef=({now:e,previousUserSessionId:t,maxUserSessionDurationSeconds:n,inactivityTimeoutSeconds:r,userSessionNumber:i})=>({inactivityDeadlineTs:null,inactivityTimeoutSeconds:r,maxUserSessionDurationSeconds:n,previousUserSessionId:t,schemaVersion:1,userSessionId:id(),userSessionMaxEndTs:e+n*1e3,userSessionNumber:i,userSessionPartIndex:0,userSessionProperties:{},userSessionStartTs:e}),tf=e=>typeof e==`object`&&!!e&&e.schemaVersion===1,nf=(e,t)=>{let n=e.getItem(Id);if(!n)return null;try{let e=JSON.parse(n);if(!tf(e))throw Error(`stored user session state failed structural validation`);return e}catch(n){return t.error(`User session state in storage is corrupt; discarding it`,n),e.removeItem(Id),null}},rf=(e,t)=>{let n=e.getItem(Ld);if(!n)return{};try{let e=JSON.parse(n);if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`permanent properties blob is not a plain object`);let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t}catch(n){return t.error(`Permanent properties in storage are corrupt; discarding`,n),e.removeItem(Ld),{}}},af=(e,t)=>Object.keys(t).length===0?e.removeItem(Ld):e.setItem(Ld,JSON.stringify(t)),of=e=>{if(!e)return{isSameOrigin:!1,isValid:!1};try{let t=new URL(e),n=window.location.origin;return{isSameOrigin:t.origin===n,isValid:!0,scrubbedUrl:t.origin+t.pathname}}catch(e){return{isSameOrigin:!1,isValid:!1}}},sf=(e,t,n)=>{try{let e=t.getEntriesByType(`navigation`);if(e.length>0&&e[0]){let t=e[0];if(t.type===`reload`)return`reload`;if(t.type===`back_forward`)return`back_forward`}}catch(e){n.warn(`Failed to get navigation type`,e)}return e.isValid?e.isSameOrigin?`same_origin`:`external`:`direct`},cf=(e,t)=>{try{let t=e.getItem(Bd);return t?JSON.parse(t):null}catch(e){return t.warn(`Failed to retrieve tab activity`,e),null}},lf=(e,t,n,r)=>{let i=sd(t,r),a,o;if(e===`same_origin`){let e=cf(n,r);e&&Date.now()-e.lastActivityMs<=1e4&&(a=e.tabId,{experienceId:o}=e)}return o===void 0&&(o=id()),{navigationSource:e,tab:{experienceId:o,sourceTabId:a,tabId:i}}},uf=({sessionStorage:e,localStorage:t,referrer:n,navigationPerformance:r,diag:i})=>{let a=of(n),o=sf(a,r,i);try{let t=e.getItem(zd);if(t)return{navigationSource:o,referrerScrubbedUrl:a.isValid&&a.scrubbedUrl?a.scrubbedUrl:void 0,tab:JSON.parse(t)}}catch(e){i.warn(`Failed to retrieve tab data`,e)}let s=lf(o,e,t,i);try{e.setItem(zd,JSON.stringify(s.tab))}catch(e){i.warn(`Failed to store tab data`,e)}return{navigationSource:s.navigationSource,referrerScrubbedUrl:a.isValid&&a.scrubbedUrl?a.scrubbedUrl:void 0,tab:s.tab}},df=(e,t,n)=>{let r={experienceId:t.experienceId,lastActivityMs:Date.now(),tabId:t.tabId};try{e.setItem(Bd,JSON.stringify(r))}catch(e){n.warn(`Failed to save tab activity`,e)}},ff=(e,t,n)=>{let r=r=>{var i;if(r.button===1||r.ctrlKey||r.metaKey||r.shiftKey){df(t,e,n);return}(i=r.target)!=null&&i.closest(`a[target="_blank"], form[target="_blank"], a[rel*="noopener"], a[rel*="noreferrer"]`)&&df(t,e,n)},i={capture:!0,passive:!0};document.addEventListener(`auxclick`,r,i),document.addEventListener(`click`,r,i)};M(),P(),W();var pf=class e{static shutdownAllTestInstances(){for(let t of e._testInstances)t._shutdown();e._testInstances.clear()}constructor({config:t,diag:n,perf:r,visibilityDoc:i,storage:a,limitManager:o,target:s=window,activityThrottleMs:c=3e4,activityEvents:l=Ud,tabStorage:u,referrer:d=typeof document<`u`?document.referrer:``,navigationPerformance:f=typeof window<`u`?window.performance:{getEntriesByType:()=>[]}}){N(this,`_state`,null),N(this,`_previousUserSessionId`,null),N(this,`_maxUserSessionDurationSeconds`,void 0),N(this,`_inactivityTimeoutSeconds`,void 0),N(this,`_maxDurationTimeout`,null),N(this,`_isShutdown`,!1),N(this,`_permanentProperties`,{}),N(this,`_hasStoredState`,!1),N(this,`_activeSessionPartId`,null),N(this,`_currentSessionPartNumber`,null),N(this,`_sessionPartSpan`,null),N(this,`_activeSessionPartCounts`,null),N(this,`_coldStart`,!0),N(this,`_nextSessionPartCounts`,{}),N(this,`_sdkStartupDuration`,0),N(this,`_sessionPartStartedListeners`,[]),N(this,`_sessionPartEndedListeners`,[]),N(this,`_tracer`,void 0),N(this,`_diag`,void 0),N(this,`_perf`,void 0),N(this,`_storage`,void 0),N(this,`_visibilityDoc`,void 0),N(this,`_limitManager`,void 0),N(this,`_target`,void 0),N(this,`_activityEvents`,void 0),N(this,`_onActivityThrottled`,void 0),N(this,`_sessionPartInactivityTimer`,null),N(this,`_tab`,void 0),N(this,`_navigationSource`,void 0),N(this,`_referrerScrubbedUrl`,void 0),N(this,`_onActivity`,()=>{try{if(!Xd(this._visibilityDoc))return;if(this._activeSessionPartId===null){this.startSessionPartInternal(`web_activity`);return}this._startSessionPartInactivityTimer()}catch(e){this._diag.warn(`Error handling activity event`,e)}}),N(this,`_onVisibilityChange`,()=>{this._handleEngagementTransition(`visibilitychange`)}),N(this,`_onFocus`,()=>{this._handleEngagementTransition(`focus`)}),N(this,`_onBlur`,()=>{this._handleEngagementTransition(`blur`)}),N(this,`_onPageShow`,e=>{this._handleEngagementTransition(e.persisted?`pageshow-bfcache`:`pageshow-initial`)}),N(this,`_onPageHide`,e=>{try{if(this._activeSessionPartId===null)return;let t=e.persisted?`web_background`:`web_hard_navigation`;this._diag.debug(`page hiding (persisted=${e.persisted}); ending current part as ${t}`),this.endSessionPartInternal(t)}catch(t){this._diag.error(`Error ending session part on pagehide (persisted=${e.persisted})`,t)}}),N(this,`_onSessionPartInactivity`,()=>{this._sessionPartInactivityTimer=null;try{if(this._activeSessionPartId===null)return;this._diag.debug(`inactivity timer fired; ending current part and user session`),this.endSessionPartInternal(`inactivity`,`inactivity`)}catch(e){this._diag.warn(`Error handling inactivity timer`,e)}}),this._diag=n==null?k.createComponentLogger({namespace:`MXLUserSessionManager`}):n,this._perf=r,this._visibilityDoc=i,this._storage=a,this._limitManager=o,this._permanentProperties=rf(this._storage,this._diag),this._tracer=j.getTracer(`mxl-web-sdk-session-parts`),this._target=s,this._activityEvents=l,this._onActivityThrottled=Yd(this._onActivity,c);let p=Jd({defaultValue:Vd,diag:this._diag,max:86400,min:3600,value:t==null?void 0:t.maxUserSessionDurationSeconds}),m=Jd({defaultValue:Hd,diag:this._diag,max:86400,min:30,value:t==null?void 0:t.inactivityTimeoutSeconds});this._maxUserSessionDurationSeconds=p,m<=p?this._inactivityTimeoutSeconds=m:(this._diag.warn(`inactivityTimeoutSeconds (${m.toString()}s) exceeds maxUserSessionDurationSeconds (${p.toString()}s); falling back to default inactivity timeout (1800s).`),this._inactivityTimeoutSeconds=Hd);let h=uf({diag:this._diag,localStorage:a,navigationPerformance:f,referrer:d,sessionStorage:u});this._tab=h.tab,this._navigationSource=h.navigationSource,this._referrerScrubbedUrl=h.referrerScrubbedUrl,ff(this._tab,a,this._diag),e._testInstances.add(this)}setTracerProvider(e){this._tracer=e.getTracer(`mxl-web-sdk-session-parts`),Zd({activityEvents:this._activityEvents,onActivity:this._onActivityThrottled,onBlur:this._onBlur,onFocus:this._onFocus,onPageHide:this._onPageHide,onPageShow:this._onPageShow,onVisibilityChange:this._onVisibilityChange,target:this._target,visibilityDoc:this._visibilityDoc});let{state:t,created:n}=this._loadOrCreateUserSessionState(this._perf.getNowMillis());this._state=t,n&&this._storeState()}recordSDKStartupDuration(e){this._sdkStartupDuration=Math.ceil(e)}getUserSessionId(){var e,t;return(e=(t=this._state)==null?void 0:t.userSessionId)==null?null:e}getPreviousUserSessionId(){var e,t;return(e=(t=this._state)==null?void 0:t.previousUserSessionId)==null?this._previousUserSessionId:e}getUserSessionStartTime(){var e,t;return(e=(t=this._state)==null?void 0:t.userSessionStartTs)==null?null:e}getUserSessionAttributes(){var e,t;if(!this._state)return null;let n=(e=this.getPreviousUserSessionId())==null?``:e;return{[rr]:this._state.userSessionId,[Gd]:this._state.userSessionId,[ir]:n,[Kd]:n,"mxl.user_session_number":this._state.userSessionNumber,"mxl.user_session_part_index":this._state.userSessionPartIndex,"mxl.session_part_number":(t=this._currentSessionPartNumber)==null?0:t,"mxl.user_session_start_ts":this._state.userSessionStartTs,"mxl.user_session_max_duration_seconds":this._state.maxUserSessionDurationSeconds,"mxl.user_session_inactivity_timeout_seconds":this._state.inactivityTimeoutSeconds}}endUserSession(){if(!this._state){this._diag.debug(`Trying to end user session, but there is no active session. This is a no-op.`);return}let e=this._perf.getNowMillis(),t=this._storage.getItem(Rd),n=t===null?NaN:Number(t);if(Number.isFinite(n)&&e-n<5e3){this._diag.warn(`endUserSession called within cooldown period, ignoring.`);return}this._rolloverUserSession(`manual`),this._storage.setItem(Rd,String(e))}getSessionPartId(){return this._activeSessionPartId}getSessionPartSpan(){return this._sessionPartSpan}startSessionPartInternal(e){if(this._sessionPartSpan){this._diag.warn(`startSessionPartInternal called while a part is active (reason: ${e}); ignoring`);return}if(bd(this._visibilityDoc)===`background`||!this._visibilityDoc.hasFocus()){this._diag.debug(`skipping session part start (reason: ${e}) because the tab is not engaged`);return}let t=id(),n=this._nextSessionPartCounts;this._beginUserSessionForPartStart();let r=U(U({},this.getUserSessionAttributes()),{},{[F]:`ux.session_part`,[Jn]:`foreground`,[nr]:t,"mxl.session_part_start_reason":e,"mxl.cold_start":this._coldStart,"mxl.experience_id":this._tab.experienceId,"mxl.tab_id":this._tab.tabId,"mxl.navigation_source":this._navigationSource},n);this._referrerScrubbedUrl&&(r[`mxl.referrer_url`]=this._referrerScrubbedUrl),this._tab.sourceTabId&&(r[`mxl.source_tab_id`]=this._tab.sourceTabId),this._activeSessionPartId=t;let i;try{i=new Od(this._tracer.startSpan(`mxl-session-part`,{attributes:r}))}catch(e){this._activeSessionPartId=null,this._diag.error(`Error starting session part span`,e);return}this._activeSessionPartCounts={},this._nextSessionPartCounts={},this._sessionPartSpan=i,this._coldStart=!1,this._startSessionPartInactivityTimer(),this._fireListeners(this._sessionPartStartedListeners,`started`)}endSessionPartInternal(e,t){if(!this._sessionPartSpan){this._diag.debug(`trying to end a session part, but there is no session part in progress. This is a no-op.`);return}this._clearSessionPartInactivityTimer();let n=e===`user_session_ended`||e===`inactivity`,r=this._perf.getNowMillis(),i=this._sessionPartSpan;try{let r=U(U(U({"mxl.session_part_end_reason":e},this._activeSessionPartCounts),this._limitManager.getDiagnosticCounts()),{},{"mxl.sdk_startup_duration":this._sdkStartupDuration});n&&(r[`mxl.is_final_session_part`]=1,t&&(r[`mxl.user_session_termination_reason`]=t));let a={};for(let[e,t]of Object.entries(this.getSessionPartProperties()))a[`mxl.properties.`+e]=t;try{i.setAttributes(U(U({},a),r))}catch(e){this._diag.warn(`Error setting end attributes on session part span; ending span without them`,e)}}finally{this._fireListeners(this._sessionPartEndedListeners,`ended`);try{i.end(r)}catch(e){this._diag.warn(`Error ending session part span`,e)}this._sessionPartSpan=null,this._activeSessionPartId=null,this._activeSessionPartCounts=null,this._currentSessionPartNumber=null,this._limitManager.reset()}if(n){var a,o;this._previousUserSessionId=(a=(o=this._state)==null?void 0:o.userSessionId)==null?null:a,this._state=null,this._storage.removeItem(Id),this._clearMaxDurationTimer()}else this._continueUserSessionAfterPartEnd(r)}addBreadcrumb(e){if(!this._sessionPartSpan){this._diag.debug(`trying to add breadcrumb, but there is no session part in progress. This is a no-op.`);return}let t=this._limitManager.limitBreadcrumb(e);t!==`dropped`&&this._sessionPartSpan.addEvent(`mxl-breadcrumb`,{message:t.name},this._perf.getNowMillis())}addProperty(e,t,n){let r=this._limitManager.limitSessionProperty(e,t);if(r===`dropped`)return;let i=r.key,a=r.value;if((n==null?void 0:n.lifespan)===`permanent`){let e=U(U({},this._permanentProperties),{},{[i]:a});if(!af(this._storage,e)){this._diag.warn(`Storage unavailable; rejecting permanent property write.`);return}this._permanentProperties=e,this._removeFromUserSessionProperties(i);return}let{state:o}=this._loadOrCreateUserSessionState(this._perf.getNowMillis());this._state=U(U({},o),{},{userSessionProperties:U(U({},o.userSessionProperties),{},{[i]:a})}),this._storeState()||(this._state=o,this._diag.warn(`Storage unavailable; rejecting user-session property write.`))}removeProperty(e){let t=this._limitManager.truncateString(`session_property_key`,e);this._removeFromPermanentProperties(t),this._removeFromUserSessionProperties(t)}getSessionPartProperties(){var e;return U(U({},this._permanentProperties),(e=this._state)==null?void 0:e.userSessionProperties)}incrSessionPartCountForKey(e){if(!this._sessionPartSpan||!this._activeSessionPartCounts){this._diag.debug(`trying to increment a count for the active session part, but there is no session part in progress. This is a no-op.`);return}this._activeSessionPartCounts[e]=(this._activeSessionPartCounts[e]||0)+1}incrNextSessionPartCountForKey(e){this._nextSessionPartCounts[e]=(this._nextSessionPartCounts[e]||0)+1}addSessionPartStartedListener(e){return this._addListener(this._sessionPartStartedListeners,e)}addSessionPartEndedListener(e){return this._addListener(this._sessionPartEndedListeners,e)}_loadOrCreateUserSessionState(e){let t=nf(this._storage,this._diag),n=!1;if(!t||$d(t,e)){t&&(this._previousUserSessionId=t.userSessionId);let r=yd(this._storage,`mxl_user_session_number`,this._diag);t=ef({inactivityTimeoutSeconds:this._inactivityTimeoutSeconds,maxUserSessionDurationSeconds:this._maxUserSessionDurationSeconds,now:e,previousUserSessionId:this._previousUserSessionId,userSessionNumber:r}),n=!0}return(n||this._maxDurationTimeout===null)&&this._setupMaxDurationTimer(t,e),{created:n,state:t}}_beginUserSessionForPartStart(){let e=this._perf.getNowMillis(),{state:t}=this._loadOrCreateUserSessionState(e);this._currentSessionPartNumber=yd(this._storage,`mxl_session_part_number`,this._diag),this._state=U(U({},t),{},{userSessionPartIndex:t.userSessionPartIndex+1,inactivityDeadlineTs:null}),this._storeState()}_continueUserSessionAfterPartEnd(e){if(!this._state){this._clearMaxDurationTimer();return}if(this._hasStoredState&&this._storage.getItem(`mxl_user_session_state`)===null){this._previousUserSessionId=this._state.userSessionId,this._state=null,this._clearMaxDurationTimer();return}this._state=U(U({},this._state),{},{inactivityDeadlineTs:e+this._state.inactivityTimeoutSeconds*1e3}),this._storeState()}_rolloverUserSession(e){var t,n;if(this._sessionPartSpan){this.endSessionPartInternal(`user_session_ended`,e),this.startSessionPartInternal(`user_session_rollover`);return}this._previousUserSessionId=(t=(n=this._state)==null?void 0:n.userSessionId)==null?null:t,this._state=null,this._storage.removeItem(Id),this._clearMaxDurationTimer()}_setupMaxDurationTimer(e,t){this._clearMaxDurationTimer();let n=e.userSessionMaxEndTs-t;n<=0||(this._maxDurationTimeout=setTimeout(()=>{this._maxDurationTimeout=null,this._rolloverUserSession(`max_duration_reached`)},n))}_clearMaxDurationTimer(){this._maxDurationTimeout!==null&&(clearTimeout(this._maxDurationTimeout),this._maxDurationTimeout=null)}_shutdown(){this._isShutdown||(this._isShutdown=!0,e._testInstances.delete(this),this._onActivityThrottled.cancel(),Qd({activityEvents:this._activityEvents,onActivity:this._onActivityThrottled,onBlur:this._onBlur,onFocus:this._onFocus,onPageHide:this._onPageHide,onPageShow:this._onPageShow,onVisibilityChange:this._onVisibilityChange,target:this._target,visibilityDoc:this._visibilityDoc}),this._clearSessionPartInactivityTimer(),this._clearMaxDurationTimer())}_handleEngagementTransition(e){try{let t=Xd(this._visibilityDoc),n=this._activeSessionPartId!==null;if(!t&&n){this._diag.debug(`tab disengaged via ${e}; ending current part`),this.endSessionPartInternal(`web_background`);return}if(t&&!n){this._diag.debug(`tab engaged via ${e}; starting new part`),this.startSessionPartInternal(`web_foreground`);return}t&&n&&this._startSessionPartInactivityTimer()}catch(e){this._diag.warn(`Error handling engagement change`,e)}}_startSessionPartInactivityTimer(){this._clearSessionPartInactivityTimer(),this._sessionPartInactivityTimer=setTimeout(this._onSessionPartInactivity,this._inactivityTimeoutSeconds*1e3)}_clearSessionPartInactivityTimer(){this._sessionPartInactivityTimer!==null&&(clearTimeout(this._sessionPartInactivityTimer),this._sessionPartInactivityTimer=null)}_addListener(e,t){return e.push(t),()=>{let n=e.indexOf(t);n!==-1&&e.splice(n,1)}}_fireListeners(e,t){for(let n of e)try{n()}catch(e){this._diag.warn(`Error while executing session part ${t} listener`,e)}}_storeState(){if(!this._state)return!1;let e=this._storage.setItem(Id,JSON.stringify(this._state));return e&&(this._hasStoredState=!0),e}_removeFromPermanentProperties(e){if(!(e in this._permanentProperties))return;let t=U({},this._permanentProperties);delete t[e],this._permanentProperties=t,af(this._storage,t)}_removeFromUserSessionProperties(e){if(!this._state||!(e in this._state.userSessionProperties))return;let t=U({},this._state.userSessionProperties);delete t[e],this._state=U(U({},this._state),{},{userSessionProperties:t}),this._storeState()}};N(pf,`_testInstances`,new Set),P();var mf=class{constructor({urlDocument:e=window.document}={}){N(this,`_urlDocument`,void 0),this._urlDocument=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){e.attributes[`browser.url.full`]||e.setAttribute(Qn,this._urlDocument.URL)}shutdown(){return Promise.resolve(void 0)}};P();var hf=class{constructor({urlDocument:e=window.document}={}){N(this,`_urlDocument`,void 0),this._urlDocument=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){e.attributes[`browser.url.full`]||(e.attributes[Qn]=this._urlDocument.URL)}onStart(){}shutdown(){return Promise.resolve(void 0)}};P();var gf=class{constructor({attributeScrubbers:e}){N(this,`_attributeScrubbers`,void 0),this._attributeScrubbers=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){this._attributeScrubbers.forEach(t=>{let n=e.attributes[t.key];n&&typeof n==`string`&&e.setAttribute(t.key,t.scrub(n))})}shutdown(){return Promise.resolve(void 0)}};I(),P();var _f=class{constructor({urlDocument:e=window.document}={}){N(this,`_urlDocument`,void 0),this._urlDocument=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){e.attributes[`mxl.type`]||e.setAttribute(F,`sys.log`),e.setAttribute(ui,this._urlDocument.URL)}shutdown(){return Promise.resolve(void 0)}};I();let vf=e=>{if((e.attributes[`http.request.method`]||e.attributes[`http.method`])&&(typeof e.attributes[`http.response.status_code`]==`number`||typeof e.attributes[`http.status_code`]==`number`)){var t;let n=(t=e.attributes[`url.full`])==null?e.attributes[Hr]:t;return typeof n==`string`&&n.includes(`://`)}return!1};I();var yf=class{forceFlush(){return Promise.resolve(void 0)}onEnd(e){ts(e.spanContext().traceId),vf(e)&&(e.attributes[F]=`perf.network_request`,e.attributes[`url.full`]===void 0&&(e.attributes[ui]=e.attributes[Hr]),e.attributes[`http.response.status_code`]===void 0&&(e.attributes[ni]=e.attributes[Ur]),e.attributes[`http.request.method`]===void 0&&(e.attributes[ei]=e.attributes[Vr]),e.attributes[`http.response.body.size`]===void 0&&(e.attributes[Wd]=e.attributes[Gr]),e.attributes[`http.request.body.size`]===void 0&&(e.attributes[`http.request.body.size`]=e.attributes[Wr]))}onStart(){}shutdown(){return Promise.resolve(void 0)}};M(),B(),P();let bf=e=>e.attributes[F]===`ux.session_part`,xf=(e,t)=>`mxl.${t===`current`?`export_failed`:`previous_export_failed`}.${e}`;var Sf=class{constructor({exporter:e,limitManager:t,userSessionManager:n,diag:r=k.createComponentLogger({namespace:`MXLSessionPartBatchedSpanProcessor`})}){N(this,`_shutdownOnce`,void 0),N(this,`_pendingSpans`,[]),N(this,`_exporter`,void 0),N(this,`_limitManager`,void 0),N(this,`_userSessionManager`,void 0),N(this,`_diag`,void 0),N(this,`_shutdown`,()=>this._exporter.shutdown()),this._diag=r,this._exporter=e,this._shutdownOnce=new Ba(this._shutdown,this),this._limitManager=t,this._userSessionManager=n}forceFlush(){return this._diag.debug(`forceFlush called for MXLSessionPartBatchedSpanProcessor. This is a no op`),Promise.resolve(void 0)}onEnd(e){if(this._shutdownOnce.isCalled){this._diag.debug(`span ended after processor shutdown. Ignoring span.`);return}if(bf(e))this._diag.debug(`session part span ended. Exporting all pending spans.`),this._exportSpans([e,...this._pendingSpans]),this._pendingSpans=[];else{if(this._diag.debug(`non-session-part span ended. Adding to pending spans queue.`),this._limitManager.dropReadableSpan(e))return;this._pendingSpans.push(e)}}_exportSpans(e){Wa._export(this._exporter,e).then(e=>{if(e.code===z.FAILED){var t;let n=((t=e.error)==null?void 0:t.message)||`unknown error`,r=`unknown`;n===`Concurrent export limit reached`?r=`concurrent_limit`:n===`Fetch request errored`&&(r=`fetch_error`),this._userSessionManager.incrSessionPartCountForKey(xf(r,`current`)),this._userSessionManager.incrNextSessionPartCountForKey(xf(r,`previous`)),this._diag.error(`spans failed to export: ${n}`)}}).catch(e=>{let t=`unknown error`;e&&e instanceof Error?t=e.message:typeof e==`string`&&(t=e),this._userSessionManager.incrSessionPartCountForKey(xf(`unknown`,`current`)),this._userSessionManager.incrNextSessionPartCountForKey(xf(`unknown`,`previous`)),this._diag.error(`spans failed to export: ${t}`)})}onStart(){}getPendingSpansCount(){return this._pendingSpans.length}shutdown(){return this._shutdownOnce.call()}};P();var Cf=class{constructor({pageManager:e}){N(this,`_pageManager`,void 0),this._pageManager=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){if(!e.attributes[`app.surface.name`]||!e.attributes[`app.surface.id`]){let t=this._pageManager.getCurrentRoute();t&&(e.setAttribute($n,t.path),e.setAttribute(er,this._pageManager.getCurrentPageId()))}let t=this._pageManager.getPageLabel();t&&!e.attributes[`app.surface.label`]&&e.setAttribute(tr,t)}shutdown(){return Promise.resolve(void 0)}};P();var wf=class{constructor({pageManager:e}){N(this,`_pageManager`,void 0),this._pageManager=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){if(!e.attributes[`app.surface.name`]||!e.attributes[`app.surface.id`]){let t=this._pageManager.getCurrentRoute(),n=this._pageManager.getCurrentPageId();t&&n&&(e.attributes[$n]=t.path,e.attributes[er]=n)}let t=this._pageManager.getPageLabel();t&&!e.attributes[`app.surface.label`]&&(e.attributes[tr]=t)}onStart(){}shutdown(){return Promise.resolve(void 0)}};P();var Tf=class{constructor({attributeScrubbers:e}){N(this,`_attributeScrubbers`,void 0),this._attributeScrubbers=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){this._attributeScrubbers.forEach(t=>{let n=e.attributes[t.key];n&&typeof n==`string`&&(e.attributes[t.key]=t.scrub(n))})}onStart(){}shutdown(){return Promise.resolve(void 0)}};P();var Ef=class{constructor({userManager:e}){N(this,`_userManager`,void 0),this._userManager=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){this._userManager.getUserId()&&e.setAttributes({[qd]:this._userManager.getUserId()})}shutdown(){return Promise.resolve(void 0)}};P();var Df=class{constructor({userSessionManager:e}){N(this,`_userSessionManager`,void 0),this._userSessionManager=e}forceFlush(){return Promise.resolve(void 0)}onEmit(e){var t,n,r;let i=(t=this._userSessionManager.getUserSessionId())==null?``:t,a=(n=this._userSessionManager.getPreviousUserSessionId())==null?``:n;e.setAttributes({"log.record.uid":id(),[Gd]:i,[Kd]:a,[rr]:i,[ir]:a,[nr]:(r=this._userSessionManager.getSessionPartId())==null?``:r})}shutdown(){return Promise.resolve(void 0)}};P();var Of=class{constructor({userManager:e}){N(this,`_userManager`,void 0),this._userManager=e}forceFlush(){return Promise.resolve(void 0)}onEnd(e){let t=this._userManager.getUserId();t&&(e.attributes[qd]=t)}onStart(){}shutdown(){return Promise.resolve(void 0)}};M(),B();var kf=class extends ra{inject(e,t,n){super.inject(e,t,n);let r=j.getSpan(e);if(r){let e=t instanceof Headers?t.get(`traceparent`):Ie.get(t,`traceparent`);e&&r.setAttribute(`mxl.w3c_traceparent`,e)}}};M(),P();var Af=class{constructor({namespace:e,storage:t,diag:n}){N(this,`_diag`,void 0),N(this,`_keyPrefix`,void 0),N(this,`_storage`,void 0),N(this,`_writeDisabled`,!1),this._diag=n==null?k.createComponentLogger({namespace:`NamespacedStorage`}):n,this._keyPrefix=e?`${e}__`:``,this._storage=t}keys(){let e;try{({length:e}=this._storage)}catch(e){return this._diag.warn(`failed to read storage length`,String(e)),[]}let t=[];for(let n=0;n<e;n++)try{let e=this._storage.key(n);if(e===null)continue;this._keyPrefix?e.startsWith(this._keyPrefix)&&t.push(e.substring(this._keyPrefix.length)):t.push(e)}catch(e){this._diag.warn(`failed to read storage key at index ${n.toString()}`,String(e))}return t}get length(){return this.keys().length}clear(){let e=!0;for(let t of this.keys())this._safeRemove(this._keyName(t))||(e=!1);return e}getItem(e){try{return this._storage.getItem(this._keyName(e))}catch(t){return this._diag.warn(`failed to read ${e}`,String(t)),null}}key(e){var t;return(t=this.keys()[e])==null?null:t}removeItem(e){return this._safeRemove(this._keyName(e))}setItem(e,t){if(this._writeDisabled)return!1;try{return this._storage.setItem(this._keyName(e),t),!0}catch(e){return this._disableWrites(e),!1}}getStorageEventKey(e){return this._keyName(e)}_keyName(e){return`${this._keyPrefix}${e}`}_safeRemove(e){try{return this._storage.removeItem(e),!0}catch(t){return this._diag.warn(`failed to remove ${e}`,String(t)),!1}}_disableWrites(e){if(this._writeDisabled)return;this._writeDisabled=!0;let t=e instanceof Error?e.name:`UnknownError`;this._diag.error(`writes disabled after failure; continuing in-memory only`,t)}};let jf=({diag:e,featureManager:t,registerGlobally:n,propagator:r,defaultInstrumentationConfig:i})=>{var a;if(!t.isNetworkSpanForwardingEnabled())return!1;let o=[];return n||o.push("Network span forwarding cannot be used when `registerGlobally` is set to false. Turning off network span forwarding."),r&&o.push("Network span forwarding cannot be used alongside a custom `propagator`. Turning off network span forwarding."),!(i==null||(a=i.omit)==null)&&a.has(`@opentelemetry/instrumentation-xml-http-request`)&&i.omit.has(`@opentelemetry/instrumentation-fetch`)&&o.push(`Network span forwarding cannot be used when both '@opentelemetry/instrumentation-xml-http-request' and '@opentelemetry/instrumentation-fetch' are omitted. Turning off network span forwarding.`),o.forEach(t=>{e.warn(t)}),o.length===0};I();let Mf=/\/\/(.+):(.+)@(.+)\//,Nf=[`AWSAccessKeyId`,`Signature`,`sig`,"`X-Goog-Signature",`password`,`auth`,`pw`,`token`],Pf=({value:e,queryParamRegex:t,scrubPath:n,scrubQuery:r})=>{let i=e;return n&&(i=i.replace(Mf,`//REDACTED:REDACTED@$3/`)),r&&(i=i.replaceAll(t,`$1$2=REDACTED`)),i},Ff=e=>{let t=[...Nf,...e||[]],n=RegExp(`(^|&|\\?)(${t.join(`|`)})=[^&]+`,`g`);return[{key:ui,scrub:e=>Pf({queryParamRegex:n,scrubPath:!0,scrubQuery:!0,value:e})},{key:Hr,scrub:e=>Pf({queryParamRegex:n,scrubPath:!0,scrubQuery:!0,value:e})},{key:di,scrub:e=>Pf({queryParamRegex:n,scrubPath:!0,scrubQuery:!1,value:e})},{key:fi,scrub:e=>Pf({queryParamRegex:n,scrubPath:!1,scrubQuery:!0,value:e})}]};var If,Lf=n((()=>{(function(e){e.COMPONENT=`component`,e.HTTP_STATUS_TEXT=`http.status_text`})(If||(If={}))})),Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf=n((()=>{Rf=`http.host`,zf=`http.method`,Bf=`http.request.body.size`,Vf=`http.request_content_length_uncompressed`,Hf=`http.scheme`,Uf=`http.status_code`,Wf=`http.url`,Gf=`http.user_agent`}));function qf(...e){if(e[0]instanceof URL||typeof e[0]==`string`){let t=e[1];if(!(t!=null&&t.body))return Promise.resolve();if(t.body instanceof ReadableStream){let{body:e,length:n}=Jf(t.body);return t.body=e,n}else return Promise.resolve(Xf(t.body))}else{let t=e[0];return t!=null&&t.body?t.clone().text().then(e=>Zf(e)):Promise.resolve()}}function Jf(e){if(!e.pipeThrough)return np.warn(`Platform has ReadableStream but not pipeThrough!`),{body:e,length:Promise.resolve(void 0)};let t=0,n,r=new Promise(e=>{n=e}),i=new TransformStream({start(){},transform(e,n){return K(function*(){let r=yield e;t+=r.byteLength,n.enqueue(e)})()},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function Yf(e){return typeof Document<`u`&&e instanceof Document}function Xf(e){if(Yf(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return Zf(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Qf(e);if(e instanceof URLSearchParams)return Zf(e.toString());if(e.byteLength!==void 0)return e.byteLength;np.warn(`unknown body type`)}function Zf(e){return rp.encode(e).byteLength}function Qf(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function $f(e){let t=ep(),n=e.toUpperCase();return n in t?n:`_OTHER`}function ep(){return ap===void 0&&(ap=ip),ap}function tp(e){let t=Number(e.port||op[e.protocol]);if(t&&!isNaN(t))return t}var np,rp,ip,ap,op,sp=n((()=>{M(),B(),q(),np=k.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-fetch/utils`}),rp=new TextEncoder,ip={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},op={"https:":`443`,"http:":`80`}})),cp,lp=n((()=>{cp=`0.219.0`})),up,dp,fp,pp=n((()=>{M(),B(),Lf(),Kf(),I(),sp(),lp(),P(),up=300,dp=typeof PerformanceObserver<`u`,fp=class extends Ms{constructor(e={}){super(`@opentelemetry/instrumentation-fetch`,cp,e),N(this,`component`,`fetch`),N(this,`version`,cp),N(this,`moduleName`,this.component),N(this,`_usedResources`,new WeakSet),N(this,`_tasksCount`,0),N(this,`_semconvStability`,void 0),this._semconvStability=Ls(`http`,e==null?void 0:e.semconvStabilityOptIn)}init(){}_addChildSpan(e,t){let n=this.tracer.startSpan(`CORS Preflight`,{startTime:t[Z.FETCH_START]},j.setSpan(O.active(),e)),r=!(this._semconvStability&Y.OLD);Bl(n,t,this.getConfig().ignoreNetworkEvents,void 0,r),n.end(t[Z.RESPONSE_END])}_addFinalSpanAttributes(e,t){let n=Kl(t.url);if(this._semconvStability&Y.OLD&&(e.setAttribute(Uf,t.status),t.statusText!=null&&e.setAttribute(If.HTTP_STATUS_TEXT,t.statusText),e.setAttribute(Rf,n.host),e.setAttribute(Hf,n.protocol.replace(`:`,``)),typeof navigator<`u`&&e.setAttribute(Gf,navigator.userAgent)),this._semconvStability&Y.STABLE){e.setAttribute(ni,t.status),e.setAttribute(ri,n.hostname);let r=tp(n);r&&e.setAttribute(ii,r)}}_addHeaders(e,t){if(!ql(t,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};A.inject(O.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}if(e instanceof Request)A.inject(O.active(),e.headers,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))});else{let t=new Headers(e.headers);A.inject(O.active(),t,{set:(e,t,n)=>e.set(t,typeof n==`string`?n:String(n))}),e.headers=t}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(e,t={}){if(Ia(e,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let n=``,r={};if(this._semconvStability&Y.OLD){let i=(t.method||`GET`).toUpperCase();n=`HTTP ${i}`,r[If.COMPONENT]=this.moduleName,r[zf]=i,r[Wf]=e}if(this._semconvStability&Y.STABLE){let i=t.method,a=$f(t.method||`GET`);n||(n=a),r[ei]=a,a!==i&&(r[ti]=i),r[ui]=e}return this.tracer.startSpan(n,{kind:Dt.CLIENT,attributes:r})}_findResourceAndAddNetworkEvents(e,t,n){let r=t.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType(`resource`)}let i=Ul(t.spanUrl,t.startTime,n,r,this._usedResources,`fetch`);if(i.mainRequest){let t=i.mainRequest;this._markResourceAsUsed(t);let n=i.corsPreFlightRequest;n&&(this._addChildSpan(e,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&Y.OLD);Bl(e,t,this.getConfig().ignoreNetworkEvents,void 0,r)}}_markResourceAsUsed(e){this._usedResources.add(e)}_endSpan(e,t,n){let r=R(Date.now()),i=Si();this._addFinalSpanAttributes(e,n),this._semconvStability&Y.STABLE&&n.status>=400&&(e.setStatus({code:kt.ERROR}),e.setAttribute(Xr,String(n.status))),setTimeout(()=>{var n;(n=t.observer)==null||n.disconnect(),this._findResourceAndAddNetworkEvents(e,t,i),this._tasksCount--,this._clearResources(),e.end(r)},up)}_patchConstructor(){return e=>{let t=this;return function(...n){if(!t._isEnabled)return e.apply(this,n);let r=this,i=Kl(n[0]instanceof Request?n[0].url:String(n[0])).href,a;a=n[0]instanceof Request?n[1]==null?n[0]:new Request(n[0],n[1]):n[1]||{};let o=t._createSpan(i,a);if(!o)return e.apply(this,n);let s=t._prepareSpanData(i);t.getConfig().measureRequestSize&&qf(...n).then(e=>{e&&(t._semconvStability&Y.OLD&&o.setAttribute(Vf,e),t._semconvStability&Y.STABLE&&o.setAttribute(Bf,e))}).catch(e=>{t._diag.warn(`getFetchBodyLength`,e)});function c(e,n){t._applyAttributesAfterFetch(e,a,n),t._endSpan(e,s,{status:n.status||0,statusText:n.message,url:i})}function l(e,n){t._applyAttributesAfterFetch(e,a,n),n.status>=200&&n.status<400?t._endSpan(e,s,n):t._endSpan(e,s,{status:n.status,statusText:n.statusText,url:i})}function u(e,n){try{let t=n.clone().body;if(t){let r=t.getReader(),i=()=>{r.read().then(({done:t})=>{t?l(e,n):i()},t=>{c(e,t)})};i()}else l(e,n)}catch(n){t._diag.error(`Failed to read fetch response body`,n),t._endSpan(e,s,{status:0,url:i})}return n}function d(e,n){try{c(e,n)}catch(r){t._diag.error(`Failed to end span on fetch error`,r),t._endSpan(e,s,{status:n.status||0,url:i})}throw n}return O.with(j.setSpan(O.active(),o),()=>(t._callRequestHook(o,a),t._addHeaders(a,i),t._tasksCount++,e.apply(r,a instanceof Request?[a]:[i,a]).then(u.bind(r,o),d.bind(r,o))))}}}_applyAttributesAfterFetch(e,t,n){let r=this.getConfig().applyCustomAttributesOnSpan;r&&Fs(()=>r(e,t,n),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_callRequestHook(e,t){let n=this.getConfig().requestHook;n&&Fs(()=>n(e,t),e=>{e&&this._diag.error(`requestHook`,e)},!0)}_prepareSpanData(e){let t=Si(),n=[];if(typeof PerformanceObserver!=`function`)return{entries:n,startTime:t,spanUrl:e};let r=new PerformanceObserver(t=>{t.getEntries().forEach(t=>{t.initiatorType===`fetch`&&t.name===e&&n.push(t)})});return r.observe({entryTypes:[`resource`]}),{entries:n,observer:r,startTime:t,spanUrl:e}}enable(){if(!dp){this._diag.warn(`this instrumentation is intended for web usage only, it does not instrument server-side fetch()`);return}if(!this._isEnabled){if(this._isFetchPatched){this._diag.debug(`fetch constructor already patched`),this._isEnabled=!0;return}try{this._wrap(globalThis,`fetch`,this._patchConstructor()),this._isFetchPatched=!0,this._isEnabled=!0}catch(e){this._diag.warn(`Failed to patch globalThis.fetch; instrumentation will not be enabled. Another script may have locked globalThis.fetch via Object.defineProperty.`,e)}}}disable(){dp&&this._isEnabled&&(this._isEnabled=!1,this._usedResources=new WeakSet)}}})),mp=r({FetchInstrumentation:()=>fp}),hp=n((()=>{pp()})),gp,_p,vp,yp,bp,xp,Sp,Cp,wp=n((()=>{gp=`http.host`,_p=`http.method`,vp=`http.request.body.size`,yp=`http.request_content_length_uncompressed`,bp=`http.scheme`,xp=`http.status_code`,Sp=`http.url`,Cp=`http.user_agent`})),Tp,Ep=n((()=>{(function(e){e.METHOD_OPEN=`open`,e.METHOD_SEND=`send`,e.EVENT_ABORT=`abort`,e.EVENT_ERROR=`error`,e.EVENT_LOAD=`loaded`,e.EVENT_TIMEOUT=`timeout`})(Tp||(Tp={}))}));function Dp(e){return typeof Document<`u`&&e instanceof Document}function Op(e){if(Dp(e))return new XMLSerializer().serializeToString(document).length;if(typeof e==`string`)return kp(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return Ap(e);if(e instanceof URLSearchParams)return kp(e.toString());if(e.byteLength!==void 0)return e.byteLength;Pp.warn(`unknown body type`)}function kp(e){return Fp.encode(e).byteLength}function Ap(e){let t=0;for(let[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function jp(e){let t=Mp(),n=e.toUpperCase();return n in t?n:`_OTHER`}function Mp(){return Lp===void 0&&(Lp=Ip),Lp}function Np(e){let t=Number(e.port||Rp[e.protocol]);if(t&&!isNaN(t))return t}var Pp,Fp,Ip,Lp,Rp,zp=n((()=>{M(),B(),Pp=k.createComponentLogger({namespace:`@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils`}),Fp=new TextEncoder,Ip={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0,QUERY:!0},Rp={"https:":`443`,"http:":`80`}})),Bp,Vp=n((()=>{Bp=`0.219.0`})),Hp,Up=n((()=>{(function(e){e.HTTP_STATUS_TEXT=`http.status_text`})(Hp||(Hp={}))})),Wp,Gp,Kp=n((()=>{M(),zs(),B(),Xl(),I(),wp(),Ep(),zp(),Vp(),Up(),P(),Wp=300,Gp=class extends Ms{constructor(e={}){super(`@opentelemetry/instrumentation-xml-http-request`,Bp,e),N(this,`component`,`xml-http-request`),N(this,`version`,Bp),N(this,`moduleName`,this.component),N(this,`_tasksCount`,0),N(this,`_xhrMem`,new WeakMap),N(this,`_usedResources`,new WeakSet),N(this,`_semconvStability`,void 0),this._semconvStability=Ls(`http`,e==null?void 0:e.semconvStabilityOptIn)}init(){}_addHeaders(e,t){let n=Kl(t).href;if(!ql(n,this.getConfig().propagateTraceHeaderCorsUrls)){let e={};A.inject(O.active(),e),Object.keys(e).length>0&&this._diag.debug(`headers inject skipped due to CORS policy`);return}let r={};A.inject(O.active(),r),Object.keys(r).forEach(t=>{e.setRequestHeader(t,String(r[t]))})}_addChildSpan(e,t){O.with(j.setSpan(O.active(),e),()=>{let e=this.tracer.startSpan(`CORS Preflight`,{startTime:t[Z.FETCH_START]}),n=!(this._semconvStability&Y.OLD);Bl(e,t,this.getConfig().ignoreNetworkEvents,void 0,n),e.end(t[Z.RESPONSE_END])})}_addFinalSpanAttributes(e,t,n){if(this._semconvStability&Y.OLD){if(t.status!==void 0&&e.setAttribute(xp,t.status),t.statusText!==void 0&&e.setAttribute(Hp.HTTP_STATUS_TEXT,t.statusText),typeof n==`string`){let t=Kl(n);e.setAttribute(gp,t.host),e.setAttribute(bp,t.protocol.replace(`:`,``))}e.setAttribute(Cp,navigator.userAgent)}this._semconvStability&Y.STABLE&&t.status&&e.setAttribute(ni,t.status)}_applyAttributesAfterXHR(e,t){let n=this.getConfig().applyCustomAttributesOnSpan;typeof n==`function`&&Fs(()=>n(e,t),e=>{e&&this._diag.error(`applyCustomAttributesOnSpan`,e)},!0)}_addResourceObserver(e,t){let n=this._xhrMem.get(e);!n||typeof PerformanceObserver!=`function`||typeof PerformanceResourceTiming!=`function`||(n.createdResources={observer:new PerformanceObserver(e=>{let r=e.getEntries(),i=Kl(t);r.forEach(e=>{e.initiatorType===`xmlhttprequest`&&e.name===i.href&&n.createdResources&&n.createdResources.entries.push(e)})}),entries:[]},n.createdResources.observer.observe({entryTypes:[`resource`]}))}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(L.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(e,t,n,r,i){if(!n||!r||!i||!e.createdResources)return;let a=e.createdResources.entries;(!a||!a.length)&&(a=L.getEntriesByType(`resource`));let o=Ul(Kl(n).href,r,i,a,this._usedResources);if(o.mainRequest){let e=o.mainRequest;this._markResourceAsUsed(e);let n=o.corsPreFlightRequest;n&&(this._addChildSpan(t,n),this._markResourceAsUsed(n));let r=!(this._semconvStability&Y.OLD);Bl(t,e,this.getConfig().ignoreNetworkEvents,void 0,r)}}_cleanPreviousSpanInformation(e){let t=this._xhrMem.get(e);if(t){let n=t.callbackToRemoveEvents;n&&n(),this._xhrMem.delete(e)}}_createSpan(e,t,n){let r=Kl(t);if(Ia(r.href,this.getConfig().ignoreUrls)){this._diag.debug(`ignoring span as url matches ignored url`);return}let i=``,a={};if(this._semconvStability&Y.OLD&&(i=n.toUpperCase(),a[_p]=n,a[Sp]=r.toString()),this._semconvStability&Y.STABLE){let e=n,t=jp(n);i||(i=t),a[ei]=t,t!==e&&(a[ti]=e),a[ui]=r.toString(),a[ri]=r.hostname;let o=Np(r);o&&(a[ii]=o)}let o=this.tracer.startSpan(i,{kind:Dt.CLIENT,attributes:a});return o.addEvent(Tp.METHOD_OPEN),this._cleanPreviousSpanInformation(e),this._xhrMem.set(e,{span:o,spanUrl:t}),o}_markResourceAsUsed(e){this._usedResources.add(e)}_patchOpen(){return e=>{let t=this;return function(...n){if(!t._isEnabled)return e.apply(this,n);let r=n[0],i=n[1];return t._createSpan(this,i,r),e.apply(this,n)}}}_patchSend(){let e=this;function t(t,n,r,i){let a=n.callbackToRemoveEvents;typeof a==`function`&&a();let{span:o,spanUrl:s,sendStartTime:c}=n;o&&(e._findResourceAndAddNetworkEvents(n,o,s,c,r),o.addEvent(t,i),e._addFinalSpanAttributes(o,n,s),o.end(i),e._tasksCount--),e._clearResources()}function n(n,r,i,a){let o=e._xhrMem.get(r);if(!o)return;if(o.status=r.status,o.statusText=r.statusText,e._xhrMem.delete(r),o.span){let t=o.span;e._applyAttributesAfterXHR(t,r),e._semconvStability&Y.STABLE&&(i?a&&(t.setStatus({code:kt.ERROR,message:a}),t.setAttribute(Xr,a)):o.status&&o.status>=400&&(t.setStatus({code:kt.ERROR}),t.setAttribute(Xr,String(o.status))))}let s=Si(),c=Date.now();setTimeout(()=>{t(n,o,s,c)},Wp)}function r(){n(Tp.EVENT_ERROR,this,!0,`error`)}function i(){n(Tp.EVENT_ABORT,this,!1)}function a(){n(Tp.EVENT_TIMEOUT,this,!0,`timeout`)}function o(){this.status<299?n(Tp.EVENT_LOAD,this,!1):n(Tp.EVENT_ERROR,this,!1)}function s(t){t.removeEventListener(`abort`,i),t.removeEventListener(`error`,r),t.removeEventListener(`load`,o),t.removeEventListener(`timeout`,a);let n=e._xhrMem.get(t);n&&(n.callbackToRemoveEvents=void 0)}return t=>function(...n){if(!e._isEnabled)return t.apply(this,n);let c=e._xhrMem.get(this);if(!c)return t.apply(this,n);let l=c.span,u=c.spanUrl;if(l&&u){if(e.getConfig().measureRequestSize&&n!=null&&n[0]){let t=n[0],r=Op(t);r!==void 0&&(e._semconvStability&Y.OLD&&l.setAttribute(yp,r),e._semconvStability&Y.STABLE&&l.setAttribute(vp,r))}O.with(j.setSpan(O.active(),l),()=>{e._tasksCount++,c.sendStartTime=Si(),l.addEvent(Tp.METHOD_SEND),this.addEventListener(`abort`,i),this.addEventListener(`error`,r),this.addEventListener(`load`,o),this.addEventListener(`timeout`,a),c.callbackToRemoveEvents=()=>{s(this),c.createdResources&&c.createdResources.observer.disconnect()},e._addHeaders(this,u),e._addResourceObserver(this,u)})}return t.apply(this,n)}}enable(){if(!this._isEnabled){if(this._isXhrPatched){this._diag.debug(`reactivating existing patch on`,this.moduleName,this.version),this._isEnabled=!0;return}try{this._diag.debug(`applying patch to`,this.moduleName,this.version),this._wrap(XMLHttpRequest.prototype,`open`,this._patchOpen()),this._wrap(XMLHttpRequest.prototype,`send`,this._patchSend()),this._isXhrPatched=!0,this._isEnabled=!0}catch(e){this._unwrap(XMLHttpRequest.prototype,`open`),this._unwrap(XMLHttpRequest.prototype,`send`),this._diag.warn(`Failed to patch globalThis.XMLHttpRequest; instrumentation will not be enabled. Another script may have locked globalThis.XMLHttpRequest via Object.defineProperty.`,e)}}}disable(){this._isEnabled&&(this._isEnabled=!1,this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}}})),qp=r({XMLHttpRequestInstrumentation:()=>Gp}),Jp=n((()=>{Kp()}));W(),q();let Yp=function(){var e=K(function*(e={}){var t,n;let r=[];if(!((t=e.omit)!=null&&t.has(`@opentelemetry/instrumentation-fetch`))){var i,a,o,s;let{FetchInstrumentation:t}=yield Promise.resolve().then(()=>(hp(),mp));r.push(new t(U(U({},e[`@opentelemetry/instrumentation-fetch`]),{},{ignoreUrls:[...(i=(a=e.network)==null?void 0:a.ignoreUrls)==null?[]:i,...(o=(s=e[`@opentelemetry/instrumentation-fetch`])==null?void 0:s.ignoreUrls)==null?[]:o]})))}if(!((n=e.omit)!=null&&n.has(`@opentelemetry/instrumentation-xml-http-request`))){var c,l,u,d;let{XMLHttpRequestInstrumentation:t}=yield Promise.resolve().then(()=>(Jp(),qp));r.push(new t(U(U({},e[`@opentelemetry/instrumentation-xml-http-request`]),{},{ignoreUrls:[...(c=(l=e.network)==null?void 0:l.ignoreUrls)==null?[]:c,...(u=(d=e[`@opentelemetry/instrumentation-xml-http-request`])==null?void 0:d.ignoreUrls)==null?[]:u]})))}return r});return function(){return e.apply(this,arguments)}}(),Xp={isRecording:()=>!1,setEnabled:()=>{}};M(),P();let Zp=new class{constructor({diagLogger:e=k.createComponentLogger({namespace:`mxl-registry`})}={}){N(this,`_sdk`,null),N(this,`_diag`,void 0),N(this,`register`,e=>{this._sdk!==null&&this._diag.warn(`previously registered sdk will be overwritten`),this._sdk=e}),N(this,`clear`,()=>{this._sdk===null&&this._diag.warn(`sdk already cleared, this is a no-op`),this._sdk=null}),N(this,`registered`,()=>this._sdk),this._diag=e}},Qp=(e,t)=>{let n=e.nodeName.toLowerCase(),r=t.substring(0,30),i=t.length>30?`...`:``;return`<${n}${e.className?` class="${e.className}"`:``}>${r}${i}</${n}>`};P();var $p=class extends G{constructor({diag:e,perf:t,shouldTrack:n,innerTextForElement:r}={}){super({config:{},diag:e,instrumentationName:`ClicksInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),N(this,`_onClickHandler`,void 0),this._onClickHandler=e=>{let t=e.target;if(t instanceof HTMLElement&&!t.hasAttribute(`disabled`)&&!(n&&!n(t)))try{let n=this.userSessionManager.getSessionPartSpan();n&&n.addEvent(`click`,{"mxl.type":`ux.tap`,"tap.coords":`${e.x.toString()},${e.y.toString()}`,"view.name":Qp(t,r?r(t):t.textContent)},this.perf.epochMillisFromOriginOffset(e.timeStamp))}catch(e){this._diag.error(`failed to create new user interaction span event`,e)}},this._config.enabled&&this.enable()}disable(){document.removeEventListener(`click`,this._onClickHandler)}enable(){document.addEventListener(`click`,this._onClickHandler)}};Xl();let em=()=>{let e={},t=window.performance.getEntriesByType(`navigation`)[0];return Object.values(Z).forEach(n=>{if(zl(t,n)){let r=t[n];typeof r==`number`&&(e[n]=r)}}),e},tm={"first-contentful-paint":`firstContentfulPaint`,"first-paint":`firstPaint`},nm=e=>{window.performance.getEntriesByType(`paint`).forEach(({name:t,startTime:n})=>{zl(tm,t)&&e.addEvent(tm[t],n)})};M(),B(),zs(),Xl(),I(),P();var rm=class extends G{constructor({diag:e,perf:t,enabled:n,applyCustomAttributesOnSpan:r,ignorePerformancePaintEvents:i=!1,ignoreNetworkEvents:a=!1}={}){super({config:{applyCustomAttributesOnSpan:r,enabled:n,ignoreNetworkEvents:a,ignorePerformancePaintEvents:i},diag:e,instrumentationName:`DocumentLoadInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),N(this,`_onDocumentLoaded`,void 0),N(this,`_performanceCollected`,!1),this._onDocumentLoaded=()=>{window.setTimeout(()=>{this._collectPerformance()},0)},this._config.enabled&&this.enable()}init(){this._diag.debug(`Initializing document load instrumentation`)}_addResourcesSpans(e){performance.getEntriesByType(`resource`).forEach(t=>{this._initResourceSpan(t,e)})}_collectPerformance(){if(this._performanceCollected)return;this._performanceCollected=!0;let e=[...document.getElementsByTagName(`meta`)].find(e=>e.getAttribute(`name`)===$i),t=em(),n=(e==null?void 0:e.content)||``;O.with(A.extract(w,{traceparent:n}),()=>{var e;let n=this._startSpan(`documentLoad`,Z.FETCH_START,t);n&&(O.with(j.setSpan(O.active(),n),()=>{let e=this._startSpan(`documentFetch`,Z.FETCH_START,t);e&&(e.setAttribute(ui,location.href),O.with(j.setSpan(O.active(),e),()=>{var n;Bl(e,t,this.getConfig().ignoreNetworkEvents),this._addCustomAttributesOnSpan(e,(n=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:n.documentFetch),this._endSpan(e,Z.RESPONSE_END,t)}))}),n.setAttribute(F,`ux.document_load`),n.setAttribute(ui,location.href),n.setAttribute(pi,navigator.userAgent),this._addResourcesSpans(n),this.getConfig().ignoreNetworkEvents||(Q(n,Z.FETCH_START,t),Q(n,Z.UNLOAD_EVENT_START,t),Q(n,Z.UNLOAD_EVENT_END,t),Q(n,Z.DOM_INTERACTIVE,t),Q(n,Z.DOM_CONTENT_LOADED_EVENT_START,t),Q(n,Z.DOM_CONTENT_LOADED_EVENT_END,t),Q(n,Z.DOM_COMPLETE,t),Q(n,Z.LOAD_EVENT_START,t),Q(n,Z.LOAD_EVENT_END,t)),this.getConfig().ignorePerformancePaintEvents||nm(n),this._addCustomAttributesOnSpan(n,(e=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:e.documentLoad),this._endSpan(n,Z.LOAD_EVENT_END,t))})}_endSpan(e,t,n){e&&(zl(n,t)&&typeof n[t]==`number`?e.end(n[t]):e.end())}_initResourceSpan(e,t){var n;let r=this._startSpan(`resourceFetch`,Z.FETCH_START,e,t);r&&(r.setAttribute(F,`ux.resource_fetch`),r.setAttribute(ui,e.name),Bl(r,e,this.getConfig().ignoreNetworkEvents),e.deliveryType&&r.setAttribute(`http.response.delivery_type`,e.deliveryType),e.initiatorType&&r.setAttribute(`http.request.initiator_type`,e.initiatorType),e.renderBlockingStatus&&r.setAttribute(`http.request.render_blocking_status`,e.renderBlockingStatus),e.responseStatus&&r.setAttribute(ni,e.responseStatus),typeof e.encodedBodySize==`number`&&e.encodedBodySize>=0&&r.setAttribute(Wd,e.encodedBodySize),typeof e.transferSize==`number`&&e.transferSize>=0&&r.setAttribute(`http.response.size`,e.transferSize),typeof e.decodedBodySize==`number`&&e.decodedBodySize>=0&&r.setAttribute(`http.response.decoded_body_size`,e.decodedBodySize),this._addResourceDiagnosticAttributes(r,e),this._addCustomAttributesOnResourceSpan(r,e,(n=this.getConfig().applyCustomAttributesOnSpan)==null?void 0:n.resourceFetch),this._endSpan(r,Z.RESPONSE_END,e))}_startSpan(e,t,n,r){if(zl(n,t)&&typeof n[t]==`number`)return this.tracer.startSpan(e,{startTime:n[t]},r?j.setSpan(O.active(),r):void 0)}_waitForPageLoad(){window.document.readyState===`complete`?this._onDocumentLoaded():window.addEventListener(`load`,this._onDocumentLoaded)}_addCustomAttributesOnSpan(e,t){t&&Fs(()=>{t(e)},e=>{e&&this._diag.error(`addCustomAttributesOnSpan`,e)},!0)}_addCustomAttributesOnResourceSpan(e,t,n){n&&Fs(()=>{n(e,t)},e=>{e&&this._diag.error(`addCustomAttributesOnResourceSpan`,e)},!0)}_hasNoSizeData(e){let t=typeof e.transferSize==`number`?e.transferSize:0,n=typeof e.decodedBodySize==`number`?e.decodedBodySize:0,r=typeof e.encodedBodySize==`number`?e.encodedBodySize:0;return t===0&&n===0&&r===0}_hasTimingData(e){let t=typeof e.fetchStart==`number`?e.fetchStart:0,n=typeof e.responseEnd==`number`?e.responseEnd:0;return t>0&&n>0}_isCorsRestricted(e){return this._hasNoSizeData(e)&&this._hasTimingData(e)}_isFetchIncomplete(e){let t=typeof e.fetchStart==`number`?e.fetchStart:0,n=typeof e.responseEnd==`number`?e.responseEnd:0;return this._hasNoSizeData(e)&&t>0&&n===0}_isFetchPrevented(e){let t=typeof e.fetchStart==`number`?e.fetchStart:0;return this._hasNoSizeData(e)&&t===0}_isCacheValidated(e){let t=typeof e.transferSize==`number`?e.transferSize:0,n=typeof e.deliveryType==`string`?e.deliveryType:``;return t===300&&n!==`cache`}_addResourceDiagnosticAttributes(e,t){this._isCorsRestricted(t)?e.setAttribute(`http.response.cors_opaque`,!0):this._isFetchIncomplete(t)?e.setAttribute(`http.request.incomplete`,!0):this._isFetchPrevented(t)&&e.setAttribute(`http.request.prevented`,!0),this._isCacheValidated(t)&&e.setAttribute(`http.response.cache_revalidated`,!0)}enable(){window.removeEventListener(`load`,this._onDocumentLoaded),this._waitForPageLoad()}disable(){window.removeEventListener(`load`,this._onDocumentLoaded)}};W();let im=[`diag`];function am(e){var t,n;return typeof PerformanceObserver<`u`&&((t=(n=PerformanceObserver.supportedEntryTypes)==null?void 0:n.includes(e))==null?!1:t)}function om(e,t,n){let r=n==null?{}:n,{diag:i}=r,a=ls(r,im);if(!am(e))return i==null||i.debug(`${e} not supported, skipping observer`),null;try{let n=new PerformanceObserver(n=>{for(let r of n.getEntries())try{t(r)}catch(t){i==null||i.error(`error processing ${e} entry`,t)}});return n.observe(U({buffered:!0,type:e},a)),n}catch(e){return null}}P();var sm=class extends G{constructor({diag:e,perf:t,limitManager:n}={}){super({config:{},diag:e,instrumentationName:`ElementTimingInstrumentation`,instrumentationVersion:`1.0.0`,limitManager:n,perf:t}),N(this,`_observer`,null),N(this,`_isEnabled`,!1),this._config.enabled&&this.enable()}enable(){if(!this._isEnabled){if(!am(`element`)){this._diag.debug(`element not supported, skipping`);return}if(this._isEnabled=!0,this._observer&&this._observer.disconnect(),this._observer=om(`element`,e=>this._processEntry(e),{diag:this._diag}),!this._observer){this._isEnabled=!1,this._diag.error(`failed to enable`);return}}}disable(){this._isEnabled=!1,this._observer&&(this._observer.disconnect(),this._observer=null)}_processEntry(e){var t,n;if(!this._isEnabled||(t=this.limitManager)!=null&&t.limitElementTimingEntry())return;let r=this.tracer.startSpan(e.identifier,{attributes:{[F]:`ux.element_timing`,"mxl.element_timing.identifier":e.identifier,"mxl.element_timing.element":(n=e.element)==null||(n=n.tagName)==null?void 0:n.toLowerCase(),"mxl.element_timing.render_time":e.renderTime,"mxl.element_timing.load_time":e.loadTime,"mxl.element_timing.start_time":e.startTime,"mxl.element_timing.url":e.url,"mxl.element_timing.natural_width":e.naturalWidth,"mxl.element_timing.natural_height":e.naturalHeight},startTime:this.perf.epochMillisFromOriginOffset(0)});e.loadTime>0&&r.addEvent(`load`,this.perf.epochMillisFromOriginOffset(e.loadTime)),r.end(this.perf.epochMillisFromOriginOffset(e.startTime))}};P();var cm=class extends G{constructor({diag:e,perf:t,rootNode:n,emptyCheckDelayMs:r=500}){super({config:{},diag:e,instrumentationName:`EmptyRootInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),N(this,`_observer`,void 0),N(this,`_emptyCheckDelayMs`,void 0),N(this,`_rootNode`,void 0),this._rootNode=n,this._emptyCheckDelayMs=r,this._observer=new MutationObserver((e,t)=>{this._observerCallback(e)}),this._config.enabled&&this._rootNode?this.enable():this._rootNode||this._diag.warn(`supplied root node was null, this instrumentation won't be enabled`)}disable(){this._observer.disconnect()}enable(){this._rootNode&&this._observer.observe(this._rootNode,{childList:!0})}_observerCallback(e){let t=!1,n=!1;for(let r of e)r.target===this._rootNode&&(r.removedNodes.length>0&&(t=!0),r.addedNodes.length>0&&(n=!0));t&&!n&&(this._diag.debug(`root node had child nodes removed without new ones being added, checking if it's empty in ${this._emptyCheckDelayMs}ms`),window.setTimeout(()=>{this._checkForEmptyRootNode()},this._emptyCheckDelayMs))}_checkForEmptyRootNode(){var e;if(((e=this._rootNode)==null?void 0:e.childNodes.length)===0){this._diag.debug(`root node was found to be empty`);let e=this.userSessionManager.getSessionPartSpan();e?e.addEvent(`empty-root-node`,{"mxl.type":`ux.empty_root_node`}):this._diag.debug(`no active session found to emit event on`)}}};P();var lm=class extends G{constructor({diag:e,perf:t}={}){super({config:{},diag:e,instrumentationName:`GlobalExceptionInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),N(this,`_onErrorHandler`,void 0),N(this,`_onUnhandledRejectionHandler`,void 0),this._onErrorHandler=e=>{this.logManager.logException(e.error||e.message,{handled:!1,handler:`global_exception`,timestamp:this.perf.epochMillisFromOriginOffset(e.timeStamp)})},this._onUnhandledRejectionHandler=e=>{this.logManager.logException(e.reason,{handled:!1,handler:`promise_rejection`,timestamp:this.perf.epochMillisFromOriginOffset(e.timeStamp)})},this._config.enabled&&this.enable()}disable(){window.removeEventListener(`error`,this._onErrorHandler),window.removeEventListener(`unhandledrejection`,this._onUnhandledRejectionHandler)}enable(){window.addEventListener(`error`,this._onErrorHandler),window.addEventListener(`unhandledrejection`,this._onUnhandledRejectionHandler)}};let um=()=>`mxlv2-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`;H(),P();var dm=class extends G{constructor({diag:e,perf:t}={}){super({config:{},diag:e,instrumentationName:`LoafInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),N(this,`_observer`,null),N(this,`_isFirstEntry`,!0),N(this,`_removeSessionEndListener`,null),N(this,`_isEnabled`,!1),N(this,`_totalDuration`,0),N(this,`_workDuration`,0),N(this,`_styleLayoutDuration`,0),N(this,`_count`,0),N(this,`_longestDuration`,0),N(this,`_longestDurationExcludingFirst`,0),N(this,`_totalBlockingDuration`,0),N(this,`_scriptSummaries`,new Map),this._config.enabled&&this.enable()}enable(){if(!this._isEnabled){if(!am(`long-animation-frame`)){this._diag.debug(`long-animation-frame not supported, skipping`);return}if(this._isEnabled=!0,this._observer&&this._observer.disconnect(),this._observer=om(`long-animation-frame`,e=>this._processEntry(e),{diag:this._diag}),!this._observer){this._isEnabled=!1,this._diag.error(`failed to enable`);return}this._registerSessionEndListener()}}_registerSessionEndListener(){this._isEnabled&&(this._removeSessionEndListener&&this._removeSessionEndListener(),this._removeSessionEndListener=this.userSessionManager.addSessionPartEndedListener(()=>{try{this._flushReport()}catch(e){this._diag.error(`error flushing report`,e)}}))}setUserSessionManager(e){super.setUserSessionManager(e),this._registerSessionEndListener()}disable(){this._isEnabled=!1,this._resetAccumulators(),this._observer&&(this._observer.disconnect(),this._observer=null),this._removeSessionEndListener&&(this._removeSessionEndListener(),this._removeSessionEndListener=null)}_processEntry(e){if(this._isEnabled){this._count++,this._totalDuration+=e.duration,this._workDuration+=e.renderStart?e.renderStart-e.startTime:e.duration,e.styleAndLayoutStart&&(this._styleLayoutDuration+=Math.max(0,e.startTime+e.duration-e.styleAndLayoutStart)),this._longestDuration=Math.max(this._longestDuration,e.duration),this._isFirstEntry&&this._count===1?this._isFirstEntry=!1:(this._longestDurationExcludingFirst=Math.max(this._longestDurationExcludingFirst,e.duration),e.firstUIEventTimestamp===0&&(this._totalBlockingDuration+=e.blockingDuration));try{for(let t of e.scripts){let e=t.sourceURL||`(inline)`;e.length>2048&&(e=`${e.substring(0,2048)}...`);let n=this._scriptSummaries.get(e);n?(n.totalDuration+=t.duration,n.styleAndLayoutDuration+=t.forcedStyleAndLayoutDuration,n.count++):this._scriptSummaries.set(e,{count:1,styleAndLayoutDuration:t.forcedStyleAndLayoutDuration,totalDuration:t.duration})}}catch(e){this._diag.error(`error processing scripts for entry`,e)}}}_flushReport(){if(this._count===0)return;let e;e=this._totalBlockingDuration<=200?`good`:this._totalBlockingDuration<=600?`needs-improvement`:`poor`;let t={[F]:`ux.web_vital`,"mxl.web_vital.id":um(),"mxl.web_vital.name":`TBD`,"mxl.web_vital.value":Math.round(this._totalBlockingDuration),"mxl.web_vital.rating":e,"mxl.tbd.loaf_total_duration":Math.round(this._totalDuration),"mxl.tbd.loaf_work_duration":Math.round(this._workDuration),"mxl.tbd.loaf_style_and_layout_duration":Math.round(this._styleLayoutDuration),"mxl.tbd.loaf_count":this._count,"mxl.tbd.loaf_longest_duration":Math.round(this._longestDuration),"mxl.tbd.loaf_longest_duration_excluding_first":Math.round(this._longestDurationExcludingFirst)};try{this.logger.emit({attributes:t,eventName:`mxl-loaf-report`,severityNumber:V.INFO})}catch(e){this._diag.error(`error emitting loaf report`,e)}try{if(this._scriptSummaries.size>0){let e=[...this._scriptSummaries].sort((e,t)=>t[1].totalDuration-e[1].totalDuration).slice(0,250).map(([e,t])=>[e,{count:t.count,style_and_layout_duration:Math.round(t.styleAndLayoutDuration),total_duration:Math.round(t.totalDuration)}]);this.logger.emit({attributes:{[F]:`ux.loaf_scripts`},body:JSON.stringify(Object.fromEntries(e)),eventName:`mxl-loaf-scripts`,severityNumber:V.INFO})}}catch(e){this._diag.error(`error emitting loaf script summary`,e)}this._resetAccumulators()}_resetAccumulators(){this._totalDuration=0,this._workDuration=0,this._styleLayoutDuration=0,this._count=0,this._longestDuration=0,this._longestDurationExcludingFirst=0,this._totalBlockingDuration=0,this._scriptSummaries=new Map}};H(),P();var fm=class extends G{constructor({diag:e,perf:t,limitManager:n}={}){super({config:{},diag:e,instrumentationName:`ServerTimingInstrumentation`,instrumentationVersion:`1.0.0`,limitManager:n,perf:t}),N(this,`_onLoad`,void 0),N(this,`_performanceCollected`,!1),this._onLoad=()=>{this._readServerTiming()},this._config.enabled&&this.enable()}enable(){if(window.removeEventListener(`load`,this._onLoad),window.document.readyState===`complete`){this._readServerTiming();return}window.addEventListener(`load`,this._onLoad)}disable(){window.removeEventListener(`load`,this._onLoad)}_readServerTiming(){var e;if(this._performanceCollected)return;this._performanceCollected=!0;let t=(e=performance.getEntriesByType(`navigation`)[0])==null?void 0:e.serverTiming;if(t!=null&&t.length)for(let e of t){var n;if((n=this.limitManager)!=null&&n.limitServerTimingEntry())return;this.logger.emit({attributes:{[F]:`ux.server_timing`,"mxl.server_timing.name":e.name,"mxl.server_timing.duration":e.duration,"mxl.server_timing.description":e.description},eventName:`mxl-server-timing`,severityNumber:V.INFO})}}};let pm=`mxl.user_timing.start_time`,mm=`mxl.user_timing.duration`,hm=`mxl.user_timing.entry_type`;H(),P(),W();var gm=class extends G{constructor({diag:e,perf:t,limitManager:n,allowedEntries:r}={}){super({config:{},diag:e,instrumentationName:`UserTimingInstrumentation`,instrumentationVersion:`1.0.0`,limitManager:n,perf:t}),N(this,`_markObserver`,null),N(this,`_measureObserver`,null),N(this,`_seenEntries`,new Set),N(this,`_isEnabled`,!1),N(this,`_allowedEntries`,void 0),this._allowedEntries=r,this._config.enabled&&this.enable()}enable(){this._isEnabled||(this._isEnabled=!0,this._seenEntries=new Set,this._markObserver&&this._markObserver.disconnect(),this._measureObserver&&this._measureObserver.disconnect(),this._markObserver=om(`mark`,this._processEntry.bind(this),{diag:this._diag}),this._markObserver||this._diag.error(`failed to enable mark observer`),this._measureObserver=om(`measure`,e=>this._processEntry(e),{diag:this._diag}),this._measureObserver||this._diag.error(`failed to enable measure observer`),!this._markObserver&&!this._measureObserver&&(this._isEnabled=!1))}disable(){this._isEnabled=!1,this._markObserver&&(this._markObserver.disconnect(),this._markObserver=null),this._measureObserver&&(this._measureObserver.disconnect(),this._measureObserver=null),this._seenEntries=new Set}_processEntry(e){var t;if(!this._isEnabled||this._allowedEntries!==void 0&&!(Array.isArray(this._allowedEntries)?this._allowedEntries.includes(e.name):this._allowedEntries(e)))return;let n=`${location.href}::${e.name}`;if(this._seenEntries.has(n)||(this._seenEntries.add(n),(t=this.limitManager)!=null&&t.limitUserTimingEntry(e.entryType)))return;if(e.entryType===`measure`){let t=e.detail;this.tracer.startSpan(e.name,{attributes:U({[F]:`ux.user_timing`,[Xn]:`user_timing`,[hm]:e.entryType,[pm]:this.perf.millisFromZeroTime(e.startTime),[mm]:e.duration},t!=null&&{"mxl.user_timing.detail":JSON.stringify(t)}),startTime:this.perf.epochMillisFromOriginOffset(e.startTime)}).end(this.perf.epochMillisFromOriginOffset(e.startTime+e.duration));return}let{detail:r}=e,i=r==null?void 0:JSON.stringify(r);this.logger.emit({attributes:{[F]:`ux.user_timing`,"mxl.user_timing.name":e.name,[pm]:this.perf.millisFromZeroTime(e.startTime),[mm]:e.duration,[hm]:e.entryType},body:i,eventName:`mxl-user-timing`,severityNumber:V.INFO,timestamp:this.perf.epochMillisFromOriginOffset(e.startTime)})}};let _m=`mxl.web_vital.attribution.`;P(),W();var vm=class{constructor(){N(this,`t`,void 0),N(this,`o`,0),N(this,`i`,[])}u(e){var t;if(e.hadRecentInput)return;let n=this.i[0],r=this.i.at(-1);this.o&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this.o+=e.value,this.i.push(e)):(this.o=e.value,this.i=[e]),(t=this.t)==null||t.call(this,e)}};let ym=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},bm=e=>{if(document.readyState===`loading`)return`loading`;let t=ym();if(t){if(e<t.domInteractive)return`loading`;if(t.domContentLoadedEventStart===0||e<t.domContentLoadedEventStart)return`dom-interactive`;if(t.domComplete===0||e<t.domComplete)return`dom-content-loaded`}return`complete`},xm=e=>{let t=e.nodeName;return e.nodeType===1?t.toLowerCase():t.toUpperCase().replace(/^#/,``)},Sm=e=>{let t=``;try{for(;(e==null?void 0:e.nodeType)!==9;){let n=e,r=n.id?`#`+n.id:[xm(n),...Array.from(n.classList).sort()].join(`.`);if(t.length+r.length>99)return t||r;if(t=t?r+`>`+t:r,n.id)break;e=n.parentNode}}catch(e){}return t},Cm=new WeakMap;function wm(e,t){let n=Cm.get(t);return n||(n=new WeakMap,Cm.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}let Tm=-1,Em=()=>Tm,Dm=e=>{addEventListener(`pageshow`,t=>{t.persisted&&(Tm=t.timeStamp,e(t))},!0)},Om=(e,t,n,r)=>{let i,a;return o=>{var s;t.value>=0&&(o||r)&&(a=t.value-((s=i)==null?0:s),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`)(t.value,n),e(t)))}},km=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},Am=()=>{var e,t;return(e=(t=ym())==null?void 0:t.activationStart)==null?0:e},$=(e,t=-1)=>{let n=ym(),r=`navigate`;return Em()>=0?r=`back-forward-cache`:n&&(document.prerendering||Am()>0?r=`prerender`:document.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+0xe8d4a51000}`,navigationType:r}},jm=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{queueMicrotask(()=>{t(e.getEntries())})});return r.observe(U({type:e,buffered:!0},n)),r}}catch(e){}},Mm=e=>{let t=!1;return()=>{t||(e(),t=!0)}},Nm=-1,Pm=new Set,Fm=()=>document.visibilityState!==`hidden`||document.prerendering?1/0:0,Im=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of Pm)e();isFinite(Nm)||(Nm=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,Im,!0))}},Lm=()=>{if(Nm<0){var e;let t=Am(),n=document.prerendering||(e=globalThis.performance.getEntriesByType(`visibility-state`).find(e=>e.name===`hidden`&&e.startTime>=t))==null?void 0:e.startTime;Nm=n==null?Fm():n,addEventListener(`visibilitychange`,Im,!0),addEventListener(`prerenderingchange`,Im,!0),Dm(()=>{setTimeout(()=>{Nm=Fm()})})}return{get firstHiddenTime(){return Nm},onHidden(e){Pm.add(e)}}},Rm=e=>{document.prerendering?addEventListener(`prerenderingchange`,e,!0):e()},zm=[1800,3e3],Bm=(e,t={})=>{Rm(()=>{let n=Lm(),r,i=$(`FCP`),a=jm(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-Am(),0),i.entries.push(t),r(!0)))});a&&(r=Om(e,i,zm,t.reportAllChanges),Dm(n=>{i=$(`FCP`),r=Om(e,i,zm,t.reportAllChanges),km(()=>{i.value=performance.now()-n.timeStamp,r(!0)})}))})},Vm=[.1,.25],Hm=e=>e.find(e=>{var t;return((t=e.node)==null?void 0:t.nodeType)===1})||e[0],Um=(e,t={})=>{let n=wm(t=Object.assign({},t),vm),r=new WeakMap;n.t=e=>{var n;if(!(e==null||(n=e.sources)==null)&&n.length){let n=Hm(e.sources),o=n==null?void 0:n.node;if(o){var i,a;let e=(i=(a=t.generateTarget)==null?void 0:a.call(t,o))==null?Sm(o):i;r.set(n,e)}}},((e,t={})=>{let n=Lm();Bm(Mm(()=>{let r,i=$(`CLS`,0),a=wm(t,vm),o=e=>{for(let t of e)a.u(t);a.o>i.value&&(i.value=a.o,i.entries=a.i,r())},s=jm(`layout-shift`,o);s&&(r=Om(e,i,Vm,t.reportAllChanges),n.onHidden(()=>{o(s.takeRecords()),r(!0)}),Dm(()=>{a.o=0,i=$(`CLS`,0),r=Om(e,i,Vm,t.reportAllChanges),km(r)}),setTimeout(r))}))})(t=>{e((e=>{let t={};if(e.entries.length){var n;let i=e.entries.reduce((e,t)=>e.value>t.value?e:t);if(!(i==null||(n=i.sources)==null)&&n.length){let e=Hm(i.sources);e&&(t={largestShiftTarget:r.get(e),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:e,largestShiftEntry:i,loadState:bm(i.startTime)})}}return Object.assign(e,{attribution:t})})(t))},t)},Wm=(e,t={})=>{Bm(t=>{e((e=>{let t={timeToFirstByte:0,firstByteToFCP:e.value,loadState:bm(Em())};if(e.entries.length){let n=ym(),r=e.entries.at(-1);if(n){let i=n.activationStart||0,a=Math.max(0,n.responseStart-i);t={timeToFirstByte:a,firstByteToFCP:e.value-a,loadState:bm(e.entries[0].startTime),navigationEntry:n,fcpEntry:r}}}return Object.assign(e,{attribution:t})})(t))},t)},Gm=0,Km=1/0,qm=0,Jm=e=>{for(let t of e)t.interactionId&&(Km=Math.min(Km,t.interactionId),qm=Math.max(qm,t.interactionId),Gm=qm?(qm-Km)/7+1:0)},Ym,Xm=()=>{var e;return Ym?Gm:(e=performance.interactionCount)==null?0:e},Zm=()=>{`interactionCount`in performance||Ym||(Ym=jm(`event`,Jm,{durationThreshold:0}))},Qm=0;var $m=class{constructor(){N(this,`l`,[]),N(this,`h`,new Map),N(this,`m`,void 0),N(this,`p`,void 0)}v(){Qm=Xm(),this.l.length=0,this.h.clear()}M(){let e=Math.min(this.l.length-1,Math.floor((Xm()-Qm)/50));return this.l[e]}u(e){var t;if((t=this.m)==null||t.call(this,e),!e.interactionId&&e.entryType!==`first-input`)return;let n=this.l.at(-1),r=this.h.get(e.interactionId);if(r||this.l.length<10||e.duration>n.T){var i;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.h.set(r.id,r),this.l.push(r)),this.l.sort((e,t)=>t.T-e.T),this.l.length>10){let e=this.l.splice(10);for(let t of e)this.h.delete(t.id)}(i=this.p)==null||i.call(this,r)}}};let eh=e=>{let t=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState===`hidden`)e();else{let r=Mm(e),i=-1,a=()=>{n(i),r()};addEventListener(`visibilitychange`,a,{once:!0,capture:!0}),i=t(()=>{removeEventListener(`visibilitychange`,a,{capture:!0}),r()})}},th=[200,500],nh=(e,t={})=>{let n=wm(t=Object.assign({},t),$m),r=[],i=[],a=0,o=new WeakMap,s=new WeakMap,c=!1,l=()=>{c||(eh(u),c=!0)},u=()=>{let e=new Set(n.l.map(e=>o.get(e.entries[0]))),t=i.length-10;i=i.filter((n,r)=>r>=t||e.has(n));let s=new Set;for(let e of i){let t=d(e.startTime,e.processingEnd);for(let e of t)s.add(e)}r=r.filter(e=>e.startTime>a||s.has(e)),c=!1};n.m=e=>{let n=e.startTime+e.duration,r;a=Math.max(a,e.processingEnd);for(let a=i.length-1;a>=0;a--){let o=i[a];if(Math.abs(n-o.renderTime)<=8){r=o,r.startTime=Math.min(e.startTime,r.startTime),r.processingStart=Math.min(e.processingStart,r.processingStart),r.processingEnd=Math.max(e.processingEnd,r.processingEnd),!1!==t.includeProcessedEventEntries&&r.entries.push(e);break}}r||(r={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:!1===t.includeProcessedEventEntries?[]:[e]},i.push(r)),(e.interactionId||e.entryType===`first-input`)&&o.set(e,r),l()},n.p=e=>{if(!s.get(e)){var n;let o=(n=e.entries.find(e=>e.target))==null?void 0:n.target;if(o){var r,i;let n=(r=(i=t.generateTarget)==null?void 0:i.call(t,o))==null?Sm(o):r;s.set(e,n)}else{var a;let t=(a=e.entries.find(e=>e.targetSelector))==null?void 0:a.targetSelector;t&&s.set(e,t)}}};let d=(e,t)=>{let n=[];for(let i of r)if(!(i.startTime+i.duration<e)){if(i.startTime>t)break;n.push(i)}return n},f=e=>{let t=e.entries[0],r=o.get(t),i=t.processingStart,a=Math.max(t.startTime+t.duration,i),c=Math.min(r.processingEnd,a),l=r.entries.sort((e,t)=>e.processingStart-t.processingStart),u=d(t.startTime,c),f=n.h.get(t.interactionId),p={interactionTarget:s.get(f),interactionType:t.name.startsWith(`key`)?`keyboard`:`pointer`,interactionTime:t.startTime,nextPaintTime:a,processedEventEntries:l,longAnimationFrameEntries:u,inputDelay:i-t.startTime,processingDuration:c-i,presentationDelay:a-c,loadState:bm(t.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(e=>{var t;if(!((t=e.longAnimationFrameEntries)!=null&&t.length))return;let n=e.interactionTime,r=e.inputDelay,i=e.processingDuration,a,o,s=0,c=0,l=0,u=0;for(let t of e.longAnimationFrameEntries){c=c+t.startTime+t.duration-t.styleAndLayoutStart;for(let e of t.scripts){let t=e.startTime+e.duration;if(t<n)continue;let l=t-Math.max(n,e.startTime),d=e.duration?l/e.duration*e.forcedStyleAndLayoutDuration:0;s+=l-d,c+=d,l>u&&(o=e.startTime<n+r?`input-delay`:e.startTime>=n+r+i?`presentation-delay`:`processing-duration`,a=e,u=l)}}let d=e.longAnimationFrameEntries.at(-1),f=d?d.startTime+d.duration:0;f>=n+r+i&&(l=e.nextPaintTime-f),a&&o&&(e.longestScript={entry:a,subpart:o,intersectingDuration:u}),e.totalScriptDuration=s,e.totalStyleAndLayoutDuration=c,e.totalPaintDuration=l,e.totalUnattributedDuration=e.nextPaintTime-n-s-c-l})(p),Object.assign(e,{attribution:p})};jm(`long-animation-frame`,e=>{r=r.concat(e),l()}),((e,t={})=>{if(!globalThis.PerformanceEventTiming||!(`interactionId`in PerformanceEventTiming.prototype))return;let n=Lm();Rm(()=>{var r;Zm();let i,a=$(`INP`),o=wm(t,$m),s=e=>{eh(()=>{for(let t of e)o.u(t);let t=o.M();t&&t.T!==a.value&&(a.value=t.T,a.entries=t.entries,i())})},c=jm(`event`,s,{durationThreshold:(r=t.durationThreshold)==null?40:r});i=Om(e,a,th,t.reportAllChanges),c&&(c.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),i(!0)}),Dm(()=>{o.v(),a=$(`INP`),i=Om(e,a,th,t.reportAllChanges)}))})})(t=>{e(f(t))},t)};var rh=class{constructor(){N(this,`m`,void 0)}u(e){var t;(t=this.m)==null||t.call(this,e)}};let ih=[2500,4e3],ah=(e,t={})=>{let n=wm(t=Object.assign({},t),rh),r=new WeakMap;n.m=e=>{let n=e.element;if(n){var i,a;let o=(i=(a=t.generateTarget)==null?void 0:a.call(t,n))==null?Sm(n):i;r.set(e,o)}else e.id&&r.set(e,`#${e.id}`)},((e,t={})=>{Rm(()=>{let n=Lm(),r,i=$(`LCP`),a=wm(t,rh),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a.u(t),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-Am(),0),i.entries=[t],r())},s=jm(`largest-contentful-paint`,o);if(s){r=Om(e,i,ih,t.reportAllChanges);let n=Mm(()=>{o(s.takeRecords()),s.disconnect(),r(!0)}),a=e=>{e.isTrusted&&(eh(n),removeEventListener(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])addEventListener(e,a,{capture:!0});Dm(n=>{i=$(`LCP`),r=Om(e,i,ih,t.reportAllChanges),km(()=>{i.value=performance.now()-n.timeStamp,r(!0)})})}})})(t=>{e((e=>{let t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){let n=e.entries.at(-1),i=n.url&&performance.getEntriesByType(`resource`).find(e=>e.name===n.url);t.target=r.get(n),t.lcpEntry=n,n.url&&(t.url=n.url),i&&(t.lcpResourceEntry=i);let a=ym();if(a){let n=a.activationStart||0,r=Math.max(0,a.responseStart-n),o=Math.max(r,i?(i.requestStart||i.startTime)-n:0),s=Math.min(e.value,Math.max(o,i?i.responseEnd-n:0));t=U(U({},t),{},{timeToFirstByte:r,resourceLoadDelay:o-r,resourceLoadDuration:s-o,elementRenderDelay:e.value-s,navigationEntry:a})}}return Object.assign(e,{attribution:t})})(t))},t)},oh=[800,1800],sh=e=>{document.prerendering?Rm(()=>sh(e)):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>sh(e),!0)},ch=(e,t={})=>{((e,t={})=>{let n=$(`TTFB`),r=Om(e,n,oh,t.reportAllChanges);sh(()=>{let i=ym();i&&(n.value=Math.max(i.responseStart-Am(),0),n.entries=[i],r(!0),Dm(()=>{n=$(`TTFB`,0),r=Om(e,n,oh,t.reportAllChanges),r(!0)}))})})(t=>{e((e=>{let t={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(e.entries.length){let n=e.entries[0],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),a=Math.max(n.domainLookupStart-r,0),o=Math.max(n.connectStart-r,0),s=Math.max(n.connectEnd-r,0);t={waitingDuration:i,cacheDuration:a-i,dnsDuration:o-a,connectionDuration:s-o,requestDuration:e.value-s,navigationEntry:n}}return Object.assign(e,{attribution:t})})(t))},t)},lh=[`CLS`,`INP`,`LCP`,`FCP`,`TTFB`],uh={CLS:Um,FCP:Wm,LCP:ah,INP:nh,TTFB:ch,FID:void 0};I(),P(),W();let dh=e=>{let t=typeof e;return t===`number`||t===`string`||t===`boolean`},fh=e=>Math.round(Math.max(0,e)),ph=e=>{let t={},{attribution:n}=e;if(!n||typeof n!=`object`)return t;for(let[e,r]of Object.entries(n))dh(r)&&(t[`${_m}${e}`]=r);return t},mh=(e,t)=>{let n={},r=e.attribution;try{if(r.longAnimationFrameEntries.length>0){let e=new Map;for(let t of r.longAnimationFrameEntries)for(let n of t.scripts){let t=n.sourceURL||`(inline)`;t.length>2048&&(t=`${t.substring(0,2048)}...`);let r=e.get(t);r?(r.totalDuration+=n.duration,r.styleAndLayoutDuration+=n.forcedStyleAndLayoutDuration,r.count++):e.set(t,{count:1,styleAndLayoutDuration:n.forcedStyleAndLayoutDuration,totalDuration:n.duration})}e.size>0&&(n[`${_m}loaf_scripts`]=JSON.stringify(Object.fromEntries([...e].sort((e,t)=>t[1].totalDuration-e[1].totalDuration).slice(0,250).map(([e,t])=>[e,{count:t.count,style_and_layout_duration:Math.round(t.styleAndLayoutDuration),total_duration:Math.round(t.totalDuration)}]))))}}catch(e){t.error(`error building loaf scripts for INP`,e)}return n},hh=(e,t)=>{let n={},r=e.attribution.navigationEntry;if(r)try{var i;let e=fh(r.redirectEnd-r.redirectStart),t=fh(r.domainLookupEnd-r.domainLookupStart),a=fh(r.secureConnectionStart>0?r.secureConnectionStart-r.connectStart:r.connectEnd-r.connectStart),o=fh(r.secureConnectionStart>0?r.connectEnd-r.secureConnectionStart:0),s=fh(Math.max((i=r.finalResponseHeadersStart)==null?0:i,r.responseStart)-r.requestStart),c=fh(Math.round(r.responseEnd-r.startTime)-e-t-a-o-s),l=_m;n[`${l}redirect`]=e,n[`${l}domainLookup`]=t,n[`${l}tcpConnection`]=a,n[`${l}tlsNegotiation`]=o,n[`${l}serverResponse`]=s,n[`${l}unattributed`]=c}catch(e){t.error(`error computing TTFB timing breakdown`,e)}else t.debug(`TTFB navigationEntry unavailable, skipping timing breakdown`);return n};var gh=class extends G{constructor({diag:e,perf:t,listeners:n=uh,urlDocument:r=window.document,urlAttribution:i=!0,pageManager:a}={}){super({config:{},diag:e,instrumentationName:`WebVitalsInstrumentation`,instrumentationVersion:`1.0.0`,perf:t}),N(this,`_listeners`,void 0),N(this,`_urlDocument`,void 0),N(this,`_urlAttribution`,void 0),N(this,`_pageManager`,void 0),N(this,`_attributedPage`,{CLS:void 0,FCP:void 0,INP:void 0,LCP:void 0,TTFB:void 0}),N(this,`_largestShiftTargetForCLS`,void 0),N(this,`_listenersRegistered`,!1),N(this,`_isEnabled`,!1),this._listeners=n,this._urlDocument=r,this._urlAttribution=i,this._pageManager=a==null?Tn.getPageManager():a,this._config.enabled&&this.enable()}disable(){this._isEnabled=!1,this._diag.debug(`WebVitalsInstrumentation disabled, pausing emission`)}enable(){if(this._isEnabled=!0,this._listenersRegistered){this._diag.debug(`WebVitalsInstrumentation listeners already registered, resuming emission`);return}if(this._listenersRegistered=!0,lh.forEach(e=>{var t,n;(t=(n=this._listeners)[e])==null||t.call(n,t=>{if(!this._isEnabled)return;let n=this.userSessionManager.getSessionPartSpan();if(!n)return;let r=this._getTimeForMetric(t),i=this._getAttributedPageForMetric(t),a=U(U(U({"mxl.type":`ux.web_vital`,"url.full":i.fullURL,"browser.url.full":i.fullURL,"mxl.web_vital.navigation_type":t.navigationType,"mxl.web_vital.name":t.name,"mxl.web_vital.rating":t.rating,"mxl.web_vital.id":t.id,"mxl.web_vital.delta":t.delta,"mxl.web_vital.value":t.value},ph(t)),e===`INP`?mh(t,this._diag):{}),e===`TTFB`?hh(t,this._diag):{});i.path&&i.pageID&&(a[`app.surface.name`]=i.path,a[`app.surface.id`]=i.pageID),i.label&&(a[`app.surface.label`]=i.label),n.addEvent(`mxl-web-vitals-report-${e}`,a,r)})}),this._urlAttribution){var e,t,n,r,i,a,o,s,c,l;(e=(t=this._listeners).TTFB)==null||e.call(t,()=>{this._attributedPage.TTFB=this._currentAttributedPage()},{reportAllChanges:!0}),(n=(r=this._listeners).FCP)==null||n.call(r,()=>{this._attributedPage.FCP=this._currentAttributedPage()},{reportAllChanges:!0}),(i=(a=this._listeners).INP)==null||i.call(a,()=>{this._attributedPage.INP=this._currentAttributedPage()},{reportAllChanges:!0}),(o=(s=this._listeners).LCP)==null||o.call(s,()=>{this._attributedPage.LCP=this._currentAttributedPage()},{reportAllChanges:!0}),(c=(l=this._listeners).CLS)==null||c.call(l,e=>{let t=e;this._largestShiftTargetForCLS!==t.attribution.largestShiftTarget&&(this._largestShiftTargetForCLS=t.attribution.largestShiftTarget,this._attributedPage.CLS=this._currentAttributedPage())},{reportAllChanges:!0})}}_getTimeForMetric(e){return e.name===`CLS`&&e.attribution.largestShiftTime?this.perf.epochMillisFromOriginOffset(e.attribution.largestShiftTime):e.name===`INP`&&e.attribution.interactionTime?this.perf.epochMillisFromOriginOffset(e.attribution.interactionTime):this.perf.getNowMillis()}_currentAttributedPage(){let e={fullURL:this._urlDocument.URL},t=this._pageManager.getCurrentRoute(),n=this._pageManager.getCurrentPageId();t&&n&&(e.path=t.path,e.pageID=n);let r=this._pageManager.getPageLabel();return r&&(e.label=r),e}_getAttributedPageForMetric(e){return e.name===`FCP`&&this._attributedPage.FCP?this._attributedPage.FCP:e.name===`TTFB`&&this._attributedPage.TTFB?this._attributedPage.TTFB:e.name===`INP`&&this._attributedPage.INP?this._attributedPage.INP:e.name===`LCP`&&this._attributedPage.LCP?this._attributedPage.LCP:e.name===`CLS`&&this._attributedPage.CLS&&e.attribution.largestShiftTarget===this._largestShiftTargetForCLS?this._attributedPage.CLS:this._currentAttributedPage()}};W();let _h=(e={},{logManager:t,userSessionManager:n,pageManager:r,limitManager:i,includeReplay:a=!1,recordUserSessions:o=!0,replayOptions:s,replayContext:c,sessionStorage:l})=>{var u,d,f,p,m,h,g,_,v;let y=[];if((u=e.omit)!=null&&u.has(`exception`)||y.push(new lm(e.exception)),(d=e.omit)!=null&&d.has(`click`)||y.push(new $p(e.click)),(f=e.omit)!=null&&f.has(`web-vital`)||y.push(new gh(U(U({},e[`web-vital`]),{},{pageManager:r}))),(p=e.omit)!=null&&p.has(`loaf`)||y.push(new dm(U({},e.loaf))),(m=e.omit)!=null&&m.has(`user-timing`)||y.push(new gm(e[`user-timing`])),(h=e.omit)!=null&&h.has(`element-timing`)||y.push(new sm(U(U({},e[`element-timing`]),{},{limitManager:i}))),(g=e.omit)!=null&&g.has(`document-load`)||y.push(new rm(e[`document-load`])),(_=e.omit)!=null&&_.has(`server-timing`)||y.push(new fm(U(U({},e[`server-timing`]),{},{limitManager:i}))),e[`empty-root`]&&y.push(new cm(U({},e[`empty-root`]))),a&&!((v=e.omit)!=null&&v.has(`replay`))){var b;if(!c)throw Error(`replayContext is required when includeReplay is true`);if(!l)throw Error(`sessionStorage is required when includeReplay is true`);y.push(new _s(U(U({},e.replay),{},{recordUserSessions:o,replayContext:c,rrwebOptions:s==null?(b=e.replay)==null?void 0:b.rrwebOptions:s,sessionStorage:l})))}for(let e of y)e instanceof G&&(n&&e.setUserSessionManager(n),t&&e.setLogManager(t),i&&e.setLimitManager(i));return y},vh=e=>{if(e!==void 0){if(typeof e!=`string`)throw Error(`appID must be a string, or omitted if not using MXL. Received ${String(e)}`);return e}},yh=e=>{if(e===void 0){let e=`MXLAppVersionX.X.X`;return e===``?`unspecified`:e}if(typeof e!=`string`)throw Error(`if appVersion is specified, it must be a string. Received ${String(e)}`);let t=e.trim();if(t===``)throw Error(`if appVersion is specified, it cannot be an empty string.`);return t};M(),H(),zs(),$s(),Xl(),W(),q();let bh=({appID:e,appVersion:t,resource:n=Ks(),spanExporters:r=[],logExporters:i=[],spanProcessors:a=[],propagator:o=null,defaultInstrumentationConfig:s,instrumentations:c=[],contextManager:l=null,logProcessors:u=[],attributeScrubbers:d=[],enableDefaultAttributeScrubbing:f=!0,additionalQueryParamsToScrub:p=[],logLevel:m=b.ERROR,mxlDataURL:h,mxlConfigURL:g,diagLogger:_=k.createComponentLogger({namespace:`mxl-sdk`}),dynamicSDKConfigManager:v,dynamicSDKConfig:y,registerGlobally:x=!0,blockNetworkSpanForwarding:ee=!1,restrictedProtocols:te=new Set([`file:`]),useDocumentTitleAsPageLabel:ne=!0,recordUserSessions:S=!0,replay:re,serviceName:ie,maxUserSessionDurationSeconds:ae=Vd,inactivityTimeoutSeconds:oe=Hd}={})=>{try{var se,ce,le;if(x){let e=Zp.registered();if(e!==null)return _.warn(`SDK has already been successfully initialized, skipping this invocation of initSDK`),e}if(k.setLogger(new ge,{logLevel:m}),typeof window>`u`)return _.warn(`browser not detected, skipping initialization`),!1;let b=new Ga,ue=b.getNowMillis(),C=vh(e),de=yh(t),fe=C!==void 0;if(!fe&&!i.length&&!r.length)throw Error(`when appID is omitted, at least one logExporter or spanExporter must be set`);if(te.has(window.location.protocol))throw Error(`not initializing due to restricted protocol: ${window.location.protocol}`);if(fe&&typeof CompressionStream>`u`)throw Error(`CompressionStream is not supported in this browser and required for data compression.`);let w=x?void 0:C,pe=new Af({diag:_,namespace:w,storage:window.localStorage}),me=new Af({diag:_,namespace:w,storage:window.sessionStorage}),he=xh({registerGlobally:x,sdkLocalStorage:pe}),T=he.getMXLUserId();if(fe&&!T)throw Error(`userID is required when using MXL exporter`);let _e=U({},y),ve=v==null?new hd({appID:C,appVersion:de,defaultConfig:_e,deviceId:T,mxlConfigURL:g,storage:pe}):v;ve.refreshRemoteConfig();let ye=(se=(ce=ve.resolveApplicationServiceName)==null?void 0:ce.call(ve,ie))==null?(()=>{var e;return(ie==null?void 0:ie.trim())||((e=ve.getConfig().serviceName)==null?void 0:e.trim())||cd})():se,be=ld({serviceName:ye}).merge(n).merge(ud({appVersion:de,diagLogger:_,pageSessionStorage:me})),xe=new Dd({blockNetworkSpanForwarding:ee,deviceId:T,dynamicConfigManager:ve});if(!xe.isSDKEnabled())return _.debug(`SDK is disabled, skipping initialization.`),!1;let Se=jf({defaultInstrumentationConfig:s,diag:_,featureManager:xe,propagator:o,registerGlobally:x}),Ce=new vd(gd),we=[...f?Ff(p):[],...d],E=Sh({limitManager:Ce,perf:b,registerGlobally:x,sdkLocalStorage:pe,sdkSessionStorage:me,userSessionConfig:{inactivityTimeoutSeconds:oe,maxUserSessionDurationSeconds:ae}}),Te,Ee;fe&&(Te=new Sf({exporter:new Xu({appID:C,mxlDataURL:h,userID:T}),limitManager:Ce,userSessionManager:E}),Ee=new bc(new qu({appID:C,mxlDataURL:h,userID:T})));let De=Th({registerGlobally:x,useDocumentTitleAsPageLabel:ne}),{tracerProvider:Oe,mxlTraceManager:ke}=Ch({attributeScrubbers:we,contextManager:l,mxlSpanProcessor:Te,pageManager:De,propagator:Se?new kf:o,registerGlobally:x,resource:be,spanExporters:r,spanProcessors:a,userManager:he});E.setTracerProvider(Oe);let{loggerProvider:Ae,mxlLogManager:je}=wh({attributeScrubbers:we,limitManager:Ce,logExporters:i,logProcessors:u,mxlLogProcessor:Ee,pageManager:De,registerGlobally:x,resource:be,sdkLocalStorage:pe,userManager:he,userSessionManager:E,visibilityDoc:window.document});E.startSessionPartInternal(`init`);let Me=typeof window<`u`&&window.__MXL_DISABLE_SESSION_RECORDER===!0,Ne=!!(fe&&C&&T&&!Me),Pe=re,Fe=Ne&&S&&re!=null&&re.omitRedundantInstrumentations?[`click`,`exception`,`@opentelemetry/instrumentation-fetch`,`@opentelemetry/instrumentation-xml-http-request`]:void 0,Ie=Fe===void 0?s:U(U({},s),{},{omit:new Set([...(le=s==null?void 0:s.omit)==null?[]:le,...Fe])}),Le=Ne&&C&&T?{appID:C,appVersion:de,mxlDataURL:h,serviceName:ye,transport:td({appID:C,mxlDataURL:h,userID:T}),userID:T}:void 0,Re=()=>_h(Ie,{includeReplay:Ne,limitManager:Ce,logManager:je,pageManager:De,recordUserSessions:S,replayContext:Le,replayOptions:Pe,sessionStorage:me,userSessionManager:E}),ze,Be,Ve;if(x){let e=_h(Ie,{includeReplay:Ne,limitManager:Ce,pageManager:De,recordUserSessions:S,replayContext:Le,replayOptions:Pe,sessionStorage:me,userSessionManager:E});ze=e.find(e=>e instanceof _s),Be=xs({instrumentations:[...e,...c]}),Yp(Ie).then(e=>{e.length!==0&&(Ve=xs({instrumentations:e}))})}else{let e=Re();ze=e.find(e=>e instanceof _s),Be=xs({instrumentations:[...e,...c],loggerProvider:Ae,tracerProvider:Oe}),Yp(Ie).then(e=>{e.length!==0&&(Ve=xs({instrumentations:e,loggerProvider:Ae,tracerProvider:Oe}))})}let He=!1,Ue=!1,We=()=>{Ue||(Ue=!0,ze==null||ze.disable(),Be==null||Be(),Ve==null||Ve(),E._shutdown())},D=ze?Zu(ze):Xp;_.info(`successfully initialized the SDK`);let Ge={flush:function(){var e=K(function*(){yield Oe.forceFlush(),yield Ae.forceFlush()});return function(){return e.apply(this,arguments)}}(),log:je,page:De,session:E,sessionRecording:D,setDynamicConfig:e=>{ve.setConfig(e)},shutdown:function(){var e=K(function*(){He||(He=!0,We(),yield Oe.shutdown(),yield Ae.shutdown())});return function(){return e.apply(this,arguments)}}(),stop:We,trace:ke,user:he};return x&&Zp.register(Ge),E.recordSDKStartupDuration(b.getNowMillis()-ue),Ge}catch(e){let t=e instanceof Error?e.message:`Unknown error.`;return _.error(`failed to initialize the SDK: ${t}`),!1}},xh=({registerGlobally:e,sdkLocalStorage:t})=>{let n=new Fd({storage:t});return e&&qn.setGlobalUserManager(n),n},Sh=({limitManager:e,perf:t,registerGlobally:n,sdkLocalStorage:r,sdkSessionStorage:i,userSessionConfig:a})=>{let o=new pf({config:a,limitManager:e,perf:t,storage:r,tabStorage:i,visibilityDoc:window.document});return n&&Mn.setGlobalUserSessionManager(o),o},Ch=({resource:e,userManager:t,spanExporters:n,spanProcessors:r=[],propagator:i=null,contextManager:a=null,attributeScrubbers:o,registerGlobally:s,mxlSpanProcessor:c,pageManager:l})=>{let u=[...r,new hf,new yf,new Of({userManager:t}),new wf({pageManager:l}),new Tf({attributeScrubbers:o})];n==null||n.forEach(e=>{u.push(new Zc(e))}),c&&u.push(c);let d=new Ml({resource:e,spanLimits:{attributeCountLimit:gd.maxAllowed.session_property*2,eventCountLimit:gd.maxAllowed.breadcrumb*2},spanProcessors:u}),f=new kd({tracerProvider:s?void 0:d});return s&&(Bn.setGlobalTraceManager(f),d.register({contextManager:a||new Ol,propagator:i})),{mxlTraceManager:f,tracerProvider:d}},wh=({resource:e,userManager:t,logExporters:n,logProcessors:r,userSessionManager:i,limitManager:a,attributeScrubbers:o,registerGlobally:s,mxlLogProcessor:c,sdkLocalStorage:l,pageManager:u,visibilityDoc:d=window.document})=>{let f=[...r,new Df({userSessionManager:i}),new mf,new _f,new Ef({userManager:t}),new gf({attributeScrubbers:o}),new Cf({pageManager:u})];n==null||n.forEach(e=>{f.push(new bc(e))}),c&&f.push(c);let p=new hc({processors:f,resource:e}),m=new Cd({limitManager:a,loggerProvider:s?void 0:p,storage:l,userSessionManager:i,visibilityDoc:d});return s&&(uo.setGlobalLoggerProvider(p),vn.setGlobalLogManager(m)),{loggerProvider:p,mxlLogManager:m}},Th=({useDocumentTitleAsPageLabel:e,registerGlobally:t})=>{let n=new wd({useDocumentTitleAsPageLabel:e});return t&&Tn.setGlobalPageManager(n),n};return M(),Object.defineProperty(e,`DiagLogLevel`,{enumerable:!0,get:function(){return b}}),e.ReplayInstrumentation=_s,e.attributes=ar,e.getNavigationInstrumentation=_o,e.initSDK=bh,e.loadRrwebModule=Jo,e.log=vn,e.page=Tn,e.resetRrwebModuleCacheForTests=Yo,e.session=Mn,e.setRrwebModuleLoaderForTests=Xo,e.setRrwebScriptUrl=Wo,e.trace=Bn,e.user=qn,e})({});
2
3
  //# sourceMappingURL=mxl-web-sdk.js.map