@sentry/replay 8.0.0-alpha.5 → 10.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/LICENSE +18 -11
  2. package/README.md +8 -17
  3. package/build/npm/cjs/index.js +8390 -0
  4. package/build/npm/cjs/index.js.map +1 -0
  5. package/build/npm/cjs/worker-bundler.js +1 -0
  6. package/build/npm/esm/index.js +8387 -0
  7. package/build/npm/esm/index.js.map +1 -0
  8. package/build/npm/esm/package.json +1 -0
  9. package/build/npm/esm/worker-bundler.js +1 -0
  10. package/{types → build/npm/types}/constants.d.ts +3 -2
  11. package/build/npm/types/constants.d.ts.map +1 -0
  12. package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
  13. package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts.map +1 -1
  14. package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
  15. package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts.map +1 -1
  16. package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
  17. package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts.map +1 -1
  18. package/{types → build/npm/types}/coreHandlers/handleClick.d.ts +2 -2
  19. package/{types → build/npm/types}/coreHandlers/handleClick.d.ts.map +1 -1
  20. package/{types → build/npm/types}/coreHandlers/handleDom.d.ts +1 -1
  21. package/{types → build/npm/types}/coreHandlers/handleDom.d.ts.map +1 -1
  22. package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts +1 -1
  23. package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts.map +1 -1
  24. package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts +1 -1
  25. package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts.map +1 -1
  26. package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
  27. package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts.map +1 -1
  28. package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
  29. package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts.map +1 -1
  30. package/build/npm/types/coreHandlers/performanceObserver.d.ts.map +1 -0
  31. package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
  32. package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts.map +1 -1
  33. package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
  34. package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts.map +1 -1
  35. package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts.map +1 -1
  36. package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts +1 -1
  37. package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts.map +1 -1
  38. package/{types → build/npm/types}/coreHandlers/util/fetchUtils.d.ts +4 -3
  39. package/build/npm/types/coreHandlers/util/fetchUtils.d.ts.map +1 -0
  40. package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts.map +1 -1
  41. package/{types → build/npm/types}/coreHandlers/util/networkUtils.d.ts +2 -3
  42. package/build/npm/types/coreHandlers/util/networkUtils.d.ts.map +1 -0
  43. package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts.map +1 -1
  44. package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
  45. package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts.map +1 -1
  46. package/{types → build/npm/types}/coreHandlers/util/xhrUtils.d.ts +4 -3
  47. package/build/npm/types/coreHandlers/util/xhrUtils.d.ts.map +1 -0
  48. package/{types → build/npm/types}/eventBuffer/EventBufferArray.d.ts +2 -0
  49. package/build/npm/types/eventBuffer/EventBufferArray.d.ts.map +1 -0
  50. package/{types → build/npm/types}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
  51. package/build/npm/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +1 -0
  52. package/{types → build/npm/types}/eventBuffer/EventBufferProxy.d.ts +5 -1
  53. package/build/npm/types/eventBuffer/EventBufferProxy.d.ts.map +1 -0
  54. package/{types → build/npm/types}/eventBuffer/WorkerHandler.d.ts +3 -1
  55. package/build/npm/types/eventBuffer/WorkerHandler.d.ts.map +1 -0
  56. package/{types → build/npm/types}/eventBuffer/index.d.ts +2 -2
  57. package/build/npm/types/eventBuffer/index.d.ts.map +1 -0
  58. package/{types → build/npm/types}/integration.d.ts +26 -13
  59. package/build/npm/types/integration.d.ts.map +1 -0
  60. package/{types → build/npm/types}/replay.d.ts +32 -27
  61. package/build/npm/types/replay.d.ts.map +1 -0
  62. package/{types → build/npm/types}/session/Session.d.ts.map +1 -1
  63. package/build/npm/types/session/fetchSession.d.ts +6 -0
  64. package/build/npm/types/session/fetchSession.d.ts.map +1 -0
  65. package/{types → build/npm/types}/session/loadOrCreateSession.d.ts +1 -2
  66. package/build/npm/types/session/loadOrCreateSession.d.ts.map +1 -0
  67. package/{types → build/npm/types}/types/performance.d.ts +16 -4
  68. package/{types → build/npm/types}/types/performance.d.ts.map +1 -1
  69. package/{types → build/npm/types}/types/replay.d.ts +53 -42
  70. package/build/npm/types/types/replay.d.ts.map +1 -0
  71. package/{types → build/npm/types}/types/replayFrame.d.ts +14 -7
  72. package/build/npm/types/types/replayFrame.d.ts.map +1 -0
  73. package/{types → build/npm/types}/types/request.d.ts +1 -1
  74. package/build/npm/types/types/request.d.ts.map +1 -0
  75. package/{types-ts3.8 → build/npm/types}/types/rrweb.d.ts +64 -60
  76. package/{types → build/npm/types}/types/rrweb.d.ts.map +1 -1
  77. package/{types → build/npm/types}/util/addEvent.d.ts.map +1 -1
  78. package/{types → build/npm/types}/util/addGlobalListeners.d.ts.map +1 -1
  79. package/build/npm/types/util/createPerformanceEntries.d.ts +52 -0
  80. package/build/npm/types/util/createPerformanceEntries.d.ts.map +1 -0
  81. package/{types → build/npm/types}/util/createPerformanceSpans.d.ts.map +1 -1
  82. package/{types → build/npm/types}/util/createReplayEnvelope.d.ts +1 -1
  83. package/{types → build/npm/types}/util/createReplayEnvelope.d.ts.map +1 -1
  84. package/{types → build/npm/types}/util/debounce.d.ts.map +1 -1
  85. package/{types → build/npm/types}/util/eventUtils.d.ts +1 -1
  86. package/{types → build/npm/types}/util/eventUtils.d.ts.map +1 -1
  87. package/{types → build/npm/types}/util/getPrivacyOptions.d.ts +3 -3
  88. package/build/npm/types/util/getPrivacyOptions.d.ts.map +1 -0
  89. package/build/npm/types/util/getRecordingSamplingOptions.d.ts +10 -0
  90. package/build/npm/types/util/getRecordingSamplingOptions.d.ts.map +1 -0
  91. package/{types → build/npm/types}/util/handleRecordingEmit.d.ts +1 -0
  92. package/build/npm/types/util/handleRecordingEmit.d.ts.map +1 -0
  93. package/{types → build/npm/types}/util/isRrwebError.d.ts +1 -1
  94. package/{types → build/npm/types}/util/isRrwebError.d.ts.map +1 -1
  95. package/build/npm/types/util/logger.d.ts +24 -0
  96. package/build/npm/types/util/logger.d.ts.map +1 -0
  97. package/{types → build/npm/types}/util/maskAttribute.d.ts +2 -0
  98. package/{types → build/npm/types}/util/maskAttribute.d.ts.map +1 -1
  99. package/{types → build/npm/types}/util/prepareRecordingData.d.ts +1 -1
  100. package/{types → build/npm/types}/util/prepareRecordingData.d.ts.map +1 -1
  101. package/{types → build/npm/types}/util/prepareReplayEvent.d.ts +2 -5
  102. package/build/npm/types/util/prepareReplayEvent.d.ts.map +1 -0
  103. package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
  104. package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts.map +1 -0
  105. package/build/npm/types/util/rrweb.d.ts +7 -0
  106. package/build/npm/types/util/rrweb.d.ts.map +1 -0
  107. package/{types → build/npm/types}/util/sendReplay.d.ts.map +1 -1
  108. package/{types → build/npm/types}/util/sendReplayRequest.d.ts +8 -2
  109. package/build/npm/types/util/sendReplayRequest.d.ts.map +1 -0
  110. package/{types → build/npm/types}/util/shouldFilterRequest.d.ts.map +1 -1
  111. package/build/npm/types/worker-bundler.d.ts +2 -0
  112. package/build/npm/types/worker-bundler.d.ts.map +1 -0
  113. package/{types-ts3.8 → build/npm/types-ts3.8}/constants.d.ts +3 -2
  114. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
  115. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
  116. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
  117. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleClick.d.ts +2 -2
  118. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleDom.d.ts +1 -1
  119. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleGlobalEvent.d.ts +1 -1
  120. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleHistory.d.ts +1 -1
  121. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
  122. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
  123. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
  124. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
  125. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/domUtils.d.ts +1 -1
  126. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/fetchUtils.d.ts +4 -3
  127. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/networkUtils.d.ts +2 -6
  128. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
  129. package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/xhrUtils.d.ts +4 -3
  130. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferArray.d.ts +2 -0
  131. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
  132. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferProxy.d.ts +4 -1
  133. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/WorkerHandler.d.ts +3 -1
  134. package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/index.d.ts +2 -2
  135. package/{types-ts3.8 → build/npm/types-ts3.8}/integration.d.ts +26 -13
  136. package/{types-ts3.8 → build/npm/types-ts3.8}/replay.d.ts +32 -27
  137. package/{types-ts3.8 → build/npm/types-ts3.8}/session/fetchSession.d.ts +1 -1
  138. package/{types-ts3.8 → build/npm/types-ts3.8}/session/loadOrCreateSession.d.ts +1 -2
  139. package/{types-ts3.8 → build/npm/types-ts3.8}/types/performance.d.ts +16 -4
  140. package/{types-ts3.8 → build/npm/types-ts3.8}/types/replay.d.ts +53 -42
  141. package/{types-ts3.8 → build/npm/types-ts3.8}/types/replayFrame.d.ts +14 -7
  142. package/{types-ts3.8 → build/npm/types-ts3.8}/types/request.d.ts +1 -1
  143. package/{types → build/npm/types-ts3.8}/types/rrweb.d.ts +64 -60
  144. package/build/npm/types-ts3.8/util/createPerformanceEntries.d.ts +52 -0
  145. package/{types-ts3.8 → build/npm/types-ts3.8}/util/createReplayEnvelope.d.ts +1 -1
  146. package/{types-ts3.8 → build/npm/types-ts3.8}/util/eventUtils.d.ts +1 -1
  147. package/{types-ts3.8 → build/npm/types-ts3.8}/util/getPrivacyOptions.d.ts +3 -3
  148. package/build/npm/types-ts3.8/util/getRecordingSamplingOptions.d.ts +10 -0
  149. package/{types-ts3.8 → build/npm/types-ts3.8}/util/handleRecordingEmit.d.ts +1 -0
  150. package/{types-ts3.8 → build/npm/types-ts3.8}/util/isRrwebError.d.ts +1 -1
  151. package/build/npm/types-ts3.8/util/logger.d.ts +24 -0
  152. package/{types-ts3.8 → build/npm/types-ts3.8}/util/maskAttribute.d.ts +2 -0
  153. package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareRecordingData.d.ts +1 -1
  154. package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareReplayEvent.d.ts +2 -5
  155. package/build/npm/types-ts3.8/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
  156. package/build/npm/types-ts3.8/util/rrweb.d.ts +7 -0
  157. package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplayRequest.d.ts +8 -2
  158. package/build/npm/types-ts3.8/worker-bundler.d.ts +2 -0
  159. package/package.json +65 -27
  160. package/cjs/index.js +0 -9382
  161. package/cjs/index.js.map +0 -1
  162. package/esm/index.js +0 -9375
  163. package/esm/index.js.map +0 -1
  164. package/esm/package.json +0 -1
  165. package/types/constants.d.ts.map +0 -1
  166. package/types/coreHandlers/performanceObserver.d.ts.map +0 -1
  167. package/types/coreHandlers/util/fetchUtils.d.ts.map +0 -1
  168. package/types/coreHandlers/util/networkUtils.d.ts.map +0 -1
  169. package/types/coreHandlers/util/xhrUtils.d.ts.map +0 -1
  170. package/types/eventBuffer/EventBufferArray.d.ts.map +0 -1
  171. package/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +0 -1
  172. package/types/eventBuffer/EventBufferProxy.d.ts.map +0 -1
  173. package/types/eventBuffer/WorkerHandler.d.ts.map +0 -1
  174. package/types/eventBuffer/index.d.ts.map +0 -1
  175. package/types/integration.d.ts.map +0 -1
  176. package/types/replay.d.ts.map +0 -1
  177. package/types/session/fetchSession.d.ts +0 -6
  178. package/types/session/fetchSession.d.ts.map +0 -1
  179. package/types/session/index.d.ts +0 -2
  180. package/types/session/index.d.ts.map +0 -1
  181. package/types/session/loadOrCreateSession.d.ts.map +0 -1
  182. package/types/types/replay.d.ts.map +0 -1
  183. package/types/types/replayFrame.d.ts.map +0 -1
  184. package/types/types/request.d.ts.map +0 -1
  185. package/types/util/createPerformanceEntries.d.ts +0 -13
  186. package/types/util/createPerformanceEntries.d.ts.map +0 -1
  187. package/types/util/getPrivacyOptions.d.ts.map +0 -1
  188. package/types/util/handleRecordingEmit.d.ts.map +0 -1
  189. package/types/util/log.d.ts +0 -10
  190. package/types/util/log.d.ts.map +0 -1
  191. package/types/util/prepareReplayEvent.d.ts.map +0 -1
  192. package/types/util/sendReplayRequest.d.ts.map +0 -1
  193. package/types-ts3.8/session/index.d.ts +0 -2
  194. package/types-ts3.8/util/createPerformanceEntries.d.ts +0 -13
  195. package/types-ts3.8/util/log.d.ts +0 -10
  196. /package/{types → build/npm/types}/coreHandlers/performanceObserver.d.ts +0 -0
  197. /package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
  198. /package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
  199. /package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts +0 -0
  200. /package/{types → build/npm/types}/debug-build.d.ts +0 -0
  201. /package/{types → build/npm/types}/debug-build.d.ts.map +0 -0
  202. /package/{types → build/npm/types}/eventBuffer/error.d.ts +0 -0
  203. /package/{types → build/npm/types}/eventBuffer/error.d.ts.map +0 -0
  204. /package/{types → build/npm/types}/index.d.ts +0 -0
  205. /package/{types → build/npm/types}/index.d.ts.map +0 -0
  206. /package/{types → build/npm/types}/session/Session.d.ts +0 -0
  207. /package/{types → build/npm/types}/session/clearSession.d.ts +0 -0
  208. /package/{types → build/npm/types}/session/clearSession.d.ts.map +0 -0
  209. /package/{types → build/npm/types}/session/createSession.d.ts +0 -0
  210. /package/{types → build/npm/types}/session/createSession.d.ts.map +0 -0
  211. /package/{types → build/npm/types}/session/saveSession.d.ts +0 -0
  212. /package/{types → build/npm/types}/session/saveSession.d.ts.map +0 -0
  213. /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts +0 -0
  214. /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts.map +0 -0
  215. /package/{types → build/npm/types}/types/index.d.ts +0 -0
  216. /package/{types → build/npm/types}/types/index.d.ts.map +0 -0
  217. /package/{types → build/npm/types}/util/addEvent.d.ts +0 -0
  218. /package/{types → build/npm/types}/util/addGlobalListeners.d.ts +0 -0
  219. /package/{types → build/npm/types}/util/addMemoryEntry.d.ts +0 -0
  220. /package/{types → build/npm/types}/util/addMemoryEntry.d.ts.map +0 -0
  221. /package/{types → build/npm/types}/util/createBreadcrumb.d.ts +0 -0
  222. /package/{types → build/npm/types}/util/createBreadcrumb.d.ts.map +0 -0
  223. /package/{types → build/npm/types}/util/createPerformanceSpans.d.ts +0 -0
  224. /package/{types → build/npm/types}/util/debounce.d.ts +0 -0
  225. /package/{types → build/npm/types}/util/getReplay.d.ts +0 -0
  226. /package/{types → build/npm/types}/util/getReplay.d.ts.map +0 -0
  227. /package/{types → build/npm/types}/util/hasSessionStorage.d.ts +0 -0
  228. /package/{types → build/npm/types}/util/hasSessionStorage.d.ts.map +0 -0
  229. /package/{types → build/npm/types}/util/isExpired.d.ts +0 -0
  230. /package/{types → build/npm/types}/util/isExpired.d.ts.map +0 -0
  231. /package/{types → build/npm/types}/util/isSampled.d.ts +0 -0
  232. /package/{types → build/npm/types}/util/isSampled.d.ts.map +0 -0
  233. /package/{types → build/npm/types}/util/isSessionExpired.d.ts +0 -0
  234. /package/{types → build/npm/types}/util/isSessionExpired.d.ts.map +0 -0
  235. /package/{types → build/npm/types}/util/sendReplay.d.ts +0 -0
  236. /package/{types → build/npm/types}/util/shouldFilterRequest.d.ts +0 -0
  237. /package/{types → build/npm/types}/util/throttle.d.ts +0 -0
  238. /package/{types → build/npm/types}/util/throttle.d.ts.map +0 -0
  239. /package/{types → build/npm/types}/util/timestamp.d.ts +0 -0
  240. /package/{types → build/npm/types}/util/timestamp.d.ts.map +0 -0
  241. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/performanceObserver.d.ts +0 -0
  242. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
  243. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
  244. /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/onWindowOpen.d.ts +0 -0
  245. /package/{types-ts3.8 → build/npm/types-ts3.8}/debug-build.d.ts +0 -0
  246. /package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/error.d.ts +0 -0
  247. /package/{types-ts3.8 → build/npm/types-ts3.8}/index.d.ts +0 -0
  248. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/Session.d.ts +0 -0
  249. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/clearSession.d.ts +0 -0
  250. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/createSession.d.ts +0 -0
  251. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/saveSession.d.ts +0 -0
  252. /package/{types-ts3.8 → build/npm/types-ts3.8}/session/shouldRefreshSession.d.ts +0 -0
  253. /package/{types-ts3.8 → build/npm/types-ts3.8}/types/index.d.ts +0 -0
  254. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addEvent.d.ts +0 -0
  255. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addGlobalListeners.d.ts +0 -0
  256. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addMemoryEntry.d.ts +0 -0
  257. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createBreadcrumb.d.ts +0 -0
  258. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createPerformanceSpans.d.ts +0 -0
  259. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/debounce.d.ts +0 -0
  260. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/getReplay.d.ts +0 -0
  261. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/hasSessionStorage.d.ts +0 -0
  262. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isExpired.d.ts +0 -0
  263. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSampled.d.ts +0 -0
  264. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSessionExpired.d.ts +0 -0
  265. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplay.d.ts +0 -0
  266. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/shouldFilterRequest.d.ts +0 -0
  267. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/throttle.d.ts +0 -0
  268. /package/{types-ts3.8 → build/npm/types-ts3.8}/util/timestamp.d.ts +0 -0
@@ -0,0 +1 @@
1
+ var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return {b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1;}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l;}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return (t+7)/8|0},b=function(n,r,e){return (null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8;},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16;},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return {t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e;}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s;}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w);}g=e;}return {t:new t(p),l:g}},A=function(t,n,r){return -1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t;},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else {if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0);}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0);}for(;a--;)o(s);a=1,s=t[h];}return {c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12);}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et]);}else _(r,m,N[rt]),m+=P[rt];}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r;}return t}(),S=function(){var t=1,n=0;return {p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16);}t=e,n=i;},d:function(){return (255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length;}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return (s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0;}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt);}}}W+=(J=K)-(K=_[J])&32767;}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L;}else F[q++]=s[j],++I[s[j]];}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B);}else {for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at));}c.i=v;}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8;},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length;}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n);},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i;}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768;}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2);},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2;},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return {p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r;},d:function(){return ~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e);}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n);}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n);},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d());}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n);},t.prototype.flush=function(){j.prototype.flush.call(this);},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0});}catch(t){}var J=function(){function t(t){this.ondata=t;}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1);},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t;},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h;}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f));}return b(i,0,s)}const N=new class{constructor(){this._init();}clear(){this._init();}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0;}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length;}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t);},this.stream=new J((t,n)=>{this.deflate.push(t,n);}),this.stream.push("[");}},P={clear:()=>{N.clear();},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t});}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t);}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});