@unbrained/pm-cli 2026.11.16 → 2026.11.18

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 (434) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/dist/cli/main.js +2 -2
  3. package/dist/cli/register-mutation.js +3 -2
  4. package/dist/cli/runtime/invocation-rewrites.js +2 -0
  5. package/dist/cli-bundle/bundle-manifest.json +1 -1
  6. package/dist/cli-bundle/chunks/chunk-2VH6COJE.js +125 -0
  7. package/dist/cli-bundle/chunks/{chunk-NHNM3GIP.js → chunk-5OFMWP3Q.js} +3 -3
  8. package/dist/cli-bundle/chunks/chunk-7ETRLLK3.js +31 -0
  9. package/dist/cli-bundle/chunks/chunk-7LCJA54R.js +2 -0
  10. package/dist/cli-bundle/chunks/chunk-7UUPLMCU.js +115 -0
  11. package/dist/cli-bundle/chunks/chunk-AGU7632B.js +3 -0
  12. package/dist/cli-bundle/chunks/{chunk-J257NZRD.js → chunk-CGTVDSAR.js} +11 -11
  13. package/dist/cli-bundle/chunks/chunk-CR5GC3VO.js +9 -0
  14. package/dist/cli-bundle/chunks/{chunk-KGOGLKL2.js → chunk-FJQCORYR.js} +2 -2
  15. package/dist/cli-bundle/chunks/chunk-H64BNM4A.js +8 -0
  16. package/dist/cli-bundle/chunks/{chunk-2D26HRXB.js → chunk-HQYIKAC6.js} +2 -2
  17. package/dist/cli-bundle/chunks/chunk-JBPXNG6P.js +2 -0
  18. package/dist/cli-bundle/chunks/{chunk-4I7YG3VZ.js → chunk-L2ZLH3LZ.js} +2 -2
  19. package/dist/cli-bundle/chunks/chunk-LGWP5D7V.js +2 -0
  20. package/dist/cli-bundle/chunks/{chunk-I3T2FVUA.js → chunk-MUGGRKK3.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-FZ4XWWLO.js → chunk-OD2I3SFQ.js} +43 -43
  22. package/dist/cli-bundle/chunks/chunk-QK7RAN7R.js +2 -0
  23. package/dist/cli-bundle/chunks/{chunk-2WNORBVN.js → chunk-S3RMFLEG.js} +83 -83
  24. package/dist/cli-bundle/chunks/chunk-SSZBVRIN.js +6 -0
  25. package/dist/cli-bundle/chunks/chunk-T3E3WNHO.js +2 -0
  26. package/dist/cli-bundle/chunks/{chunk-DZWRNL6R.js → chunk-TA5VN4ME.js} +2 -2
  27. package/dist/cli-bundle/chunks/chunk-TS2CZE3O.js +2 -0
  28. package/dist/cli-bundle/chunks/{chunk-F7P42FL5.js → chunk-VETSGCF4.js} +4 -4
  29. package/dist/cli-bundle/chunks/{chunk-VJLZHOTP.js → chunk-WKHS4QC6.js} +2 -2
  30. package/dist/cli-bundle/chunks/chunk-XDIJK6VW.js +8 -0
  31. package/dist/cli-bundle/chunks/{chunk-NYN5OR2T.js → chunk-Y4LXVPA5.js} +2 -2
  32. package/dist/cli-bundle/chunks/chunk-YJI2Y5N6.js +2 -0
  33. package/dist/cli-bundle/chunks/{indexed-receipt-blobs-HNLN6UXH.js → indexed-receipt-blobs-ELEMA7IW.js} +2 -2
  34. package/dist/cli-bundle/chunks/{item-revision-PSOL5I4H.js → item-revision-BV5BUBCR.js} +2 -2
  35. package/dist/cli-bundle/chunks/item-transaction-E2ST3A3X.js +2 -0
  36. package/dist/cli-bundle/chunks/{mutation-actor-BDBBH3ZS.js → mutation-actor-DDYJW5B4.js} +2 -2
  37. package/dist/cli-bundle/chunks/mutation-admission-5AWMXMCB.js +2 -0
  38. package/dist/cli-bundle/chunks/{register-list-query-AESCVO6H.js → register-list-query-RJT7YBRF.js} +2 -2
  39. package/dist/cli-bundle/chunks/register-mutation-6KTMJGYF.js +21 -0
  40. package/dist/cli-bundle/chunks/register-operations-W24TA3HZ.js +2 -0
  41. package/dist/cli-bundle/chunks/register-setup-QK67WUX6.js +2 -0
  42. package/dist/cli-bundle/chunks/{settlement-hook-MVVVUIVZ.js → settlement-hook-E5LHZ4RD.js} +2 -2
  43. package/dist/cli-bundle/chunks/{stage-RMU3JAWM.js → stage-XGWW3T64.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-3H3SVHAT.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-DFBHW7HP.js → chunk-5JVB42Z7.js} +3 -3
  46. package/dist/cli-bundle/focused-chunks/{chunk-ONM2R32I.js → chunk-6OZ7BKWJ.js} +54 -54
  47. package/dist/cli-bundle/focused-chunks/{chunk-HHMMIHZP.js → chunk-7RF2YPZ5.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/chunk-7Z2NYAK4.js +2 -0
  49. package/dist/cli-bundle/focused-chunks/chunk-A2CLYPDA.js +102 -0
  50. package/dist/cli-bundle/focused-chunks/{chunk-7SEPCQV2.js → chunk-DH4DHL6V.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-UBBTBNUY.js → chunk-DWCFZVT2.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-DZMP3VYQ.js → chunk-EO4XM3XJ.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-EZXLY6S4.js +2 -0
  54. package/dist/cli-bundle/focused-chunks/{chunk-KRNF3WTC.js → chunk-FPPYE6CY.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/chunk-HO2YUD4P.js +91 -0
  56. package/dist/cli-bundle/focused-chunks/{chunk-BEHIMEV2.js → chunk-ICEHI4SN.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-IGMFXB5W.js +2 -0
  58. package/dist/cli-bundle/focused-chunks/{chunk-PDXSMSO5.js → chunk-IXYBN6D2.js} +3 -3
  59. package/dist/cli-bundle/focused-chunks/{chunk-PEL4SQXV.js → chunk-LZR3JKYT.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/chunk-MTBC32ZR.js +8 -0
  61. package/dist/cli-bundle/focused-chunks/chunk-OAIAZHRG.js +2 -0
  62. package/dist/cli-bundle/focused-chunks/{chunk-SFATIM77.js → chunk-ONHUG7IL.js} +9 -9
  63. package/dist/cli-bundle/focused-chunks/chunk-OPY43DNJ.js +2 -0
  64. package/dist/cli-bundle/focused-chunks/chunk-PNCCTZKI.js +44 -0
  65. package/dist/cli-bundle/focused-chunks/chunk-T3NMYMW4.js +27 -0
  66. package/dist/cli-bundle/focused-chunks/chunk-XS2YZCT5.js +2 -0
  67. package/dist/cli-bundle/focused-chunks/chunk-ZFUZ4YYN.js +8 -0
  68. package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-ADMQXF3N.js → indexed-receipt-blobs-ZTRFCPH7.js} +2 -2
  69. package/dist/cli-bundle/focused-chunks/item-revision-NS2V4WON.js +2 -0
  70. package/dist/cli-bundle/focused-chunks/item-transaction-NENC4HYI.js +2 -0
  71. package/dist/cli-bundle/focused-chunks/mutation-actor-2SVBO324.js +2 -0
  72. package/dist/cli-bundle/focused-chunks/mutation-admission-DZIBDJAE.js +2 -0
  73. package/dist/cli-bundle/focused-chunks/{settlement-hook-5U2M75BY.js → settlement-hook-OUBUN45C.js} +2 -2
  74. package/dist/cli-bundle/focused-chunks/stage-LVAGKCEE.js +2 -0
  75. package/dist/cli-bundle/main.js +27 -27
  76. package/dist/cli-bundle/sdk-authoring.js +1 -1
  77. package/dist/cli-bundle/sdk-contracts.js +2 -2
  78. package/dist/cli-bundle/sdk-core.js +1 -1
  79. package/dist/cli-bundle/sdk-governance.js +1 -1
  80. package/dist/cli-bundle/sdk-graph.js +1 -1
  81. package/dist/cli-bundle/sdk-merge.js +58 -58
  82. package/dist/cli-bundle/sdk-query.js +1 -1
  83. package/dist/cli-bundle/sdk-runtime.js +1 -1
  84. package/dist/cli-bundle/sdk-testing.js +1 -1
  85. package/dist/cli-bundle/sdk.js +4 -4
  86. package/dist/core/extensions/extension-hook-runtime.d.ts +14 -2
  87. package/dist/core/extensions/extension-hook-runtime.js +1 -1
  88. package/dist/core/extensions/extension-types.d.ts +14 -0
  89. package/dist/core/extensions/extension-types.js +1 -1
  90. package/dist/core/extensions/index.d.ts +1 -1
  91. package/dist/core/extensions/index.js +1 -1
  92. package/dist/core/fs/file-glob.js +2 -0
  93. package/dist/core/policy/workflow-policy-store.js +1 -1
  94. package/dist/core/shared/secret-rules.d.ts +83 -4
  95. package/dist/core/shared/secret-rules.js +5 -4
  96. package/dist/core/store/item-mutation-precondition.d.ts +32 -1
  97. package/dist/core/store/item-mutation-precondition.js +1 -1
  98. package/dist/core/store/item-store.js +1 -1
  99. package/dist/core/store/transaction-coordinator-scope.js +2 -0
  100. package/dist/sdk/authoring.d.ts +1 -1
  101. package/dist/sdk/authoring.js +1 -1
  102. package/dist/sdk/cli-bootstrap.js +1 -1
  103. package/dist/sdk/item-transaction.js +1 -1
  104. package/dist/sdk/lifecycle/copy.js +1 -1
  105. package/dist/sdk/lifecycle/create.js +1 -1
  106. package/dist/sdk/lifecycle/restore.js +1 -1
  107. package/dist/sdk/linked-artifacts.js +2 -2
  108. package/dist/sdk/mutation-guard.d.ts +25 -4
  109. package/dist/sdk/mutation-guard.js +1 -1
  110. package/dist/sdk/package-import-adapters.d.ts +14 -1
  111. package/dist/sdk/package-import-adapters.js +1 -1
  112. package/dist/sdk/public-surface.json +1 -1
  113. package/dist/sdk/testing.d.ts +21 -3
  114. package/dist/sdk/testing.js +2 -2
  115. package/dist/sdk/workspace-transaction.js +2 -2
  116. package/docs/COMMANDS.md +33 -0
  117. package/docs/DEFECT_RECURRENCE.md +3 -2
  118. package/docs/EXTENSIONS.md +1 -1
  119. package/docs/MIGRATION_CLI_SIMPLIFICATION.md +1 -1
  120. package/docs/MUTATION_INTEGRITY.md +187 -7
  121. package/docs/SDK.md +40 -3
  122. package/docs/WORKFLOW_POLICIES.md +23 -0
  123. package/marketplace.json +1 -1
  124. package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
  125. package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
  126. package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
  127. package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
  128. package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
  129. package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
  130. package/node_modules/@opentelemetry/core/package.json +2 -2
  131. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  132. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js +1 -0
  133. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
  134. package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
  135. package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
  136. package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
  137. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  138. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/execAsync.js +1 -0
  139. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-bsd.js +3 -2
  140. package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/machine-id/getMachineId-darwin.js +3 -2
  141. package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
  142. package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
  143. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.d.ts +1 -0
  144. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js +2 -1
  145. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js +2 -1
  146. package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js +2 -1
  147. package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
  148. package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
  149. package/node_modules/@opentelemetry/resources/package.json +3 -3
  150. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +1 -1
  151. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
  152. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +1 -1
  153. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
  154. package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +1 -1
  155. package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
  156. package/node_modules/@opentelemetry/sdk-trace/package.json +5 -5
  157. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
  158. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
  159. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
  160. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
  161. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
  162. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
  163. package/node_modules/@opentelemetry/sdk-trace-base/package.json +7 -7
  164. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +18202 -0
  165. package/node_modules/@opentelemetry/semantic-conventions/{build/src/experimental_attributes.js → dist/experimental_attributes.d.cts} +3328 -1993
  166. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_attributes.js → dist/experimental_attributes.d.mts} +3328 -1935
  167. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +16385 -0
  168. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
  169. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_events.js → dist/experimental_events.d.cts} +37 -41
  170. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_events.js → dist/experimental_events.d.mts} +37 -41
  171. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
  172. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4929 -0
  173. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/experimental_metrics.js → dist/experimental_metrics.d.cts} +955 -597
  174. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/experimental_metrics.js → dist/experimental_metrics.d.mts} +955 -597
  175. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4419 -0
  176. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2619 -0
  177. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.cts +7 -0
  178. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.d.mts +7 -0
  179. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
  180. package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +670 -0
  181. package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.cts +6 -0
  182. package/node_modules/@opentelemetry/semantic-conventions/dist/index.d.mts +6 -0
  183. package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
  184. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
  185. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
  186. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
  187. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.cts} +600 -597
  188. package/node_modules/@opentelemetry/semantic-conventions/{build/src/resource/SemanticResourceAttributes.d.ts → dist/resource/SemanticResourceAttributes.d.mts} +600 -597
  189. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
  190. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +2038 -0
  191. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_attributes.js → dist/stable_attributes.d.cts} +327 -220
  192. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/stable_attributes.js → dist/stable_attributes.d.mts} +327 -220
  193. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1841 -0
  194. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
  195. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.cts +8 -0
  196. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.d.mts +8 -0
  197. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
  198. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +378 -0
  199. package/node_modules/@opentelemetry/semantic-conventions/{build/src/stable_metrics.js → dist/stable_metrics.d.cts} +69 -63
  200. package/node_modules/@opentelemetry/semantic-conventions/{build/esm/stable_metrics.js → dist/stable_metrics.d.mts} +69 -59
  201. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +326 -0
  202. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
  203. package/node_modules/@opentelemetry/semantic-conventions/{build/esnext/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.cts} +1097 -1094
  204. package/node_modules/@opentelemetry/semantic-conventions/{build/src/trace/SemanticAttributes.d.ts → dist/trace/SemanticAttributes.d.mts} +1097 -1094
  205. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
  206. package/node_modules/@opentelemetry/semantic-conventions/package.json +27 -42
  207. package/node_modules/@sentry/core/build/cjs/client.js +14 -5
  208. package/node_modules/@sentry/core/build/cjs/integrations/express/patch-layer.js +15 -1
  209. package/node_modules/@sentry/core/build/cjs/integrations/http/client-subscriptions.js +10 -1
  210. package/node_modules/@sentry/core/build/cjs/scope.js +0 -1
  211. package/node_modules/@sentry/core/build/cjs/tracing/openai/utils.js +1 -7
  212. package/node_modules/@sentry/core/build/cjs/tracing/sentrySpan.js +11 -0
  213. package/node_modules/@sentry/core/build/cjs/utils/envelope.js +1 -1
  214. package/node_modules/@sentry/core/build/cjs/utils/sql.js +1 -1
  215. package/node_modules/@sentry/core/build/cjs/utils/tunnel.js +9 -0
  216. package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
  217. package/node_modules/@sentry/core/build/esm/client.js +14 -5
  218. package/node_modules/@sentry/core/build/esm/integrations/express/patch-layer.js +15 -1
  219. package/node_modules/@sentry/core/build/esm/integrations/http/client-subscriptions.js +10 -1
  220. package/node_modules/@sentry/core/build/esm/package.json +1 -1
  221. package/node_modules/@sentry/core/build/esm/scope.js +0 -1
  222. package/node_modules/@sentry/core/build/esm/tracing/openai/utils.js +1 -7
  223. package/node_modules/@sentry/core/build/esm/tracing/sentrySpan.js +11 -0
  224. package/node_modules/@sentry/core/build/esm/utils/envelope.js +1 -1
  225. package/node_modules/@sentry/core/build/esm/utils/sql.js +1 -1
  226. package/node_modules/@sentry/core/build/esm/utils/tunnel.js +9 -1
  227. package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
  228. package/node_modules/@sentry/core/build/types/types/datacategory.d.ts +1 -1
  229. package/node_modules/@sentry/core/build/types/utils/tunnel.d.ts +1 -0
  230. package/node_modules/@sentry/core/build/types-ts3.8/types/datacategory.d.ts +1 -1
  231. package/node_modules/@sentry/core/build/types-ts3.8/utils/tunnel.d.ts +1 -0
  232. package/node_modules/@sentry/core/package.json +1 -1
  233. package/node_modules/@sentry/node/build/cjs/integrations/tracing/redis/index.js +1 -1
  234. package/node_modules/@sentry/node/build/esm/package.json +1 -1
  235. package/node_modules/@sentry/node/package.json +6 -6
  236. package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
  237. package/node_modules/@sentry/node-core/build/cjs/integrations/contextlines.js +6 -4
  238. package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  239. package/node_modules/@sentry/node-core/build/cjs/integrations/modules.js +21 -2
  240. package/node_modules/@sentry/node-core/build/cjs/integrations/node-fetch/undici-instrumentation.js +8 -0
  241. package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
  242. package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
  243. package/node_modules/@sentry/node-core/build/esm/integrations/contextlines.js +7 -5
  244. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  245. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
  246. package/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/undici-instrumentation.js +8 -0
  247. package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
  248. package/node_modules/@sentry/node-core/package.json +9 -9
  249. package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
  250. package/node_modules/@sentry/opentelemetry/package.json +6 -6
  251. package/node_modules/@sentry/server-utils/build/THIRD-PARTY-LICENSES.txt +32 -32
  252. package/node_modules/@sentry/server-utils/build/cjs/integrations/tracing-channel/express/instrumentation.js +12 -1
  253. package/node_modules/@sentry/server-utils/build/esm/integrations/tracing-channel/express/instrumentation.js +13 -2
  254. package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
  255. package/node_modules/@sentry/server-utils/build/types/integrations/tracing-channel/express/types.d.ts +1 -1
  256. package/node_modules/@sentry/server-utils/build/types-ts3.8/integrations/tracing-channel/express/types.d.ts +1 -1
  257. package/node_modules/@sentry/server-utils/package.json +2 -2
  258. package/node_modules/debug/package.json +1 -1
  259. package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -2
  260. package/node_modules/es-module-lexer/dist/lexer.cjs +1 -1
  261. package/node_modules/es-module-lexer/dist/lexer.js +2 -2
  262. package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -2
  263. package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -1
  264. package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -2
  265. package/node_modules/es-module-lexer/package.json +1 -1
  266. package/node_modules/import-in-the-middle/CHANGELOG.md +35 -0
  267. package/node_modules/import-in-the-middle/README.md +15 -1
  268. package/node_modules/import-in-the-middle/create-hook.mjs +370 -155
  269. package/node_modules/import-in-the-middle/index.d.ts +8 -2
  270. package/node_modules/import-in-the-middle/index.js +80 -53
  271. package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +37 -3
  272. package/node_modules/import-in-the-middle/lib/get-exports.mjs +33 -40
  273. package/node_modules/import-in-the-middle/lib/register.js +81 -16
  274. package/node_modules/import-in-the-middle/package.json +9 -5
  275. package/node_modules/supports-color/browser.js +21 -2
  276. package/node_modules/supports-color/index.js +41 -24
  277. package/node_modules/supports-color/license +1 -1
  278. package/node_modules/supports-color/package.json +11 -6
  279. package/node_modules/supports-color/readme.md +8 -7
  280. package/package.json +4 -6
  281. package/packages/pm-beads/package.json +1 -1
  282. package/packages/pm-calendar/package.json +1 -1
  283. package/packages/pm-command-kit/package.json +1 -1
  284. package/packages/pm-digital-twin/package.json +1 -1
  285. package/packages/pm-governance-audit/package.json +1 -1
  286. package/packages/pm-guide-shell/package.json +1 -1
  287. package/packages/pm-kanban/package.json +1 -1
  288. package/packages/pm-lifecycle-hooks/package.json +1 -1
  289. package/packages/pm-linked-test-adapters/package.json +1 -1
  290. package/packages/pm-search-advanced/package.json +1 -1
  291. package/packages/pm-templates/package.json +1 -1
  292. package/packages/pm-todos/package.json +1 -1
  293. package/packages/pm-vcs/package.json +1 -1
  294. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  295. package/plugins/pm-claude/package.json +1 -1
  296. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  297. package/plugins/pm-codex/package.json +1 -1
  298. package/plugins/pm-codex/plugin.json +1 -1
  299. package/runtime-dependencies.json +1 -1
  300. package/dist/cli-bundle/chunks/chunk-4WIVCOA7.js +0 -2
  301. package/dist/cli-bundle/chunks/chunk-A3WCP4TU.js +0 -6
  302. package/dist/cli-bundle/chunks/chunk-AB5S6TWE.js +0 -124
  303. package/dist/cli-bundle/chunks/chunk-BV7J3LRH.js +0 -114
  304. package/dist/cli-bundle/chunks/chunk-E4BQRZF2.js +0 -10
  305. package/dist/cli-bundle/chunks/chunk-ERD2RYWM.js +0 -31
  306. package/dist/cli-bundle/chunks/chunk-IGEBFNWE.js +0 -2
  307. package/dist/cli-bundle/chunks/chunk-IYICNCK2.js +0 -2
  308. package/dist/cli-bundle/chunks/chunk-JD3XWF66.js +0 -3
  309. package/dist/cli-bundle/chunks/chunk-JLHD7OQ2.js +0 -2
  310. package/dist/cli-bundle/chunks/chunk-LC4DJVXR.js +0 -2
  311. package/dist/cli-bundle/chunks/chunk-OFZQEQ6X.js +0 -2
  312. package/dist/cli-bundle/chunks/chunk-QGL5IAP4.js +0 -8
  313. package/dist/cli-bundle/chunks/chunk-R24NZ2TB.js +0 -8
  314. package/dist/cli-bundle/chunks/chunk-VO2HSB5F.js +0 -2
  315. package/dist/cli-bundle/chunks/item-transaction-55QTCU2M.js +0 -2
  316. package/dist/cli-bundle/chunks/mutation-admission-WUN7JYVJ.js +0 -2
  317. package/dist/cli-bundle/chunks/register-mutation-SKCEP5QU.js +0 -20
  318. package/dist/cli-bundle/chunks/register-operations-ZT4OYCF3.js +0 -2
  319. package/dist/cli-bundle/chunks/register-setup-JVWNS2TY.js +0 -2
  320. package/dist/cli-bundle/focused-chunks/chunk-3WVMEA2A.js +0 -6
  321. package/dist/cli-bundle/focused-chunks/chunk-5UVJOAUP.js +0 -91
  322. package/dist/cli-bundle/focused-chunks/chunk-5WQ3LNUK.js +0 -78
  323. package/dist/cli-bundle/focused-chunks/chunk-6E4X7MQA.js +0 -26
  324. package/dist/cli-bundle/focused-chunks/chunk-7XHE335U.js +0 -2
  325. package/dist/cli-bundle/focused-chunks/chunk-CZFZCSOX.js +0 -2
  326. package/dist/cli-bundle/focused-chunks/chunk-HPC2M6JD.js +0 -6
  327. package/dist/cli-bundle/focused-chunks/chunk-HR5FEUUL.js +0 -2
  328. package/dist/cli-bundle/focused-chunks/chunk-J7ESCE7M.js +0 -24
  329. package/dist/cli-bundle/focused-chunks/chunk-KWZLY35A.js +0 -2
  330. package/dist/cli-bundle/focused-chunks/chunk-M4IA4LC6.js +0 -8
  331. package/dist/cli-bundle/focused-chunks/chunk-NASE6JC2.js +0 -2
  332. package/dist/cli-bundle/focused-chunks/chunk-QJ647CQE.js +0 -2
  333. package/dist/cli-bundle/focused-chunks/chunk-ZCN35TCK.js +0 -2
  334. package/dist/cli-bundle/focused-chunks/chunk-ZSQ2FT22.js +0 -44
  335. package/dist/cli-bundle/focused-chunks/item-revision-GNKYO6GZ.js +0 -2
  336. package/dist/cli-bundle/focused-chunks/item-transaction-AUUQHR5Z.js +0 -2
  337. package/dist/cli-bundle/focused-chunks/mutation-actor-OBRD7HFZ.js +0 -2
  338. package/dist/cli-bundle/focused-chunks/mutation-admission-6TX3EOJX.js +0 -2
  339. package/dist/cli-bundle/focused-chunks/stage-LERF2YJU.js +0 -2
  340. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.d.ts +0 -14984
  341. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
  342. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.d.ts +0 -291
  343. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.d.ts +0 -4053
  344. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.d.ts +0 -7
  345. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
  346. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.d.ts +0 -6
  347. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
  348. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.d.ts +0 -7
  349. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
  350. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.d.ts +0 -1453
  351. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
  352. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.d.ts +0 -2
  353. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
  354. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.d.ts +0 -1726
  355. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.d.ts +0 -5
  356. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
  357. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.d.ts +0 -308
  358. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.d.ts +0 -2664
  359. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
  360. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.d.ts +0 -2
  361. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
  362. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.d.ts +0 -2
  363. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
  364. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.d.ts +0 -14984
  365. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.d.ts +0 -291
  366. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.d.ts +0 -4053
  367. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.d.ts +0 -7
  368. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
  369. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.d.ts +0 -6
  370. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
  371. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.d.ts +0 -7
  372. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
  373. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
  374. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.d.ts +0 -2
  375. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
  376. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.d.ts +0 -1726
  377. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.d.ts +0 -5
  378. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
  379. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.d.ts +0 -308
  380. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
  381. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
  382. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.d.ts +0 -2
  383. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
  384. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.d.ts +0 -2
  385. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
  386. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.d.ts +0 -14984
  387. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.d.ts +0 -291
  388. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
  389. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.d.ts +0 -4053
  390. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
  391. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.d.ts +0 -7
  392. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
  393. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.d.ts +0 -6
  394. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
  395. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.d.ts +0 -7
  396. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
  397. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
  398. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.d.ts +0 -2
  399. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
  400. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.d.ts +0 -1726
  401. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
  402. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.d.ts +0 -5
  403. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
  404. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.d.ts +0 -308
  405. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
  406. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.d.ts +0 -2
  407. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
  408. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.d.ts +0 -2
  409. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
  410. package/node_modules/fdir/LICENSE +0 -7
  411. package/node_modules/fdir/README.md +0 -91
  412. package/node_modules/fdir/dist/index.cjs +0 -588
  413. package/node_modules/fdir/dist/index.d.cts +0 -155
  414. package/node_modules/fdir/dist/index.d.mts +0 -155
  415. package/node_modules/fdir/dist/index.mjs +0 -570
  416. package/node_modules/fdir/package.json +0 -106
  417. package/node_modules/picomatch/LICENSE +0 -21
  418. package/node_modules/picomatch/README.md +0 -743
  419. package/node_modules/picomatch/index.js +0 -17
  420. package/node_modules/picomatch/lib/constants.js +0 -184
  421. package/node_modules/picomatch/lib/parse.js +0 -1425
  422. package/node_modules/picomatch/lib/picomatch.js +0 -361
  423. package/node_modules/picomatch/lib/scan.js +0 -403
  424. package/node_modules/picomatch/lib/utils.js +0 -72
  425. package/node_modules/picomatch/package.json +0 -83
  426. package/node_modules/picomatch/posix.js +0 -3
  427. package/node_modules/tinyglobby/LICENSE +0 -21
  428. package/node_modules/tinyglobby/README.md +0 -25
  429. package/node_modules/tinyglobby/dist/index.cjs +0 -335
  430. package/node_modules/tinyglobby/dist/index.d.cts +0 -148
  431. package/node_modules/tinyglobby/dist/index.d.mts +0 -148
  432. package/node_modules/tinyglobby/dist/index.mjs +0 -307
  433. package/node_modules/tinyglobby/package.json +0 -70
  434. /package/node_modules/import-in-the-middle/{register-hooks.d.ts → register-hooks.d.mts} +0 -0
@@ -1,2 +1,2 @@
1
- /*! @sentry/node-core 10.76.2 (042e228) | https://github.com/getsentry/sentry-javascript */
2
- import{Session as t}from"node:inspector";import{workerData as n,parentPort as e}from"node:worker_threads";import{posix as r,sep as o}from"node:path";import*as i from"node:http";import*as s from"node:https";import{Readable as c}from"node:stream";import{createGzip as u}from"node:zlib";import*as a from"node:net";import*as f from"node:tls";const h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,p=globalThis,d="10.76.2";function l(){return g(p),p}function g(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||d,n[d]=n[d]||{}}function m(t,n,e=p){const r=e.__SENTRY__=e.__SENTRY__||{},o=r[d]=r[d]||{};return o[t]||(o[t]=n())}const y={};function b(t){if(!("console"in p))return t();const n=p.console,e={},r=Object.keys(y);r.forEach(t=>{const r=y[t];e[t]=n[t],n[t]=r});try{return t()}finally{r.forEach(t=>{n[t]=e[t]})}}function v(){return S().enabled}function _(t,...n){h&&v()&&b(()=>{p.console[t](`Sentry Logger [${t}]:`,...n)})}function S(){return h?m("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const w={enable:function(){S().enabled=!0},disable:function(){S().enabled=!1},isEnabled:v,log:function(...t){_("log",...t)},warn:function(...t){_("warn",...t)},error:function(...t){_("error",...t)}},$=/captureMessage|captureException/;function E(t){return t[t.length-1]||{}}const x="<anonymous>";const N=Object.prototype.toString;function C(t,n){return N.call(t)===`[object ${n}]`}function j(t){return Boolean(t?.then&&"function"==typeof t.then)}function R(t,n){try{return t instanceof n}catch{return!1}}function A(t){if(function(t){switch(N.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return R(t,Error)}}(t))return{message:t.message,name:t.name,stack:t.stack,...I(t)};if(n=t,"undefined"!=typeof Event&&R(n,Event)){const{type:n,target:e,currentTarget:r,detail:o}=t;return{type:n,target:e,currentTarget:r,...o?{detail:o}:{},...I(t)}}var n;return t}function I(t){return"object"==typeof(n=t)&&null!==n?Object.fromEntries(Object.entries(t)):{};var n}let O;function T(t){if(void 0!==O)return O?O(t):t();const n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),e=p;return n in e&&"function"==typeof e[n]?(O=e[n],O(t)):(O=null,t())}function k(){return T(()=>Math.random())}function P(){return T(()=>Date.now())}const D=Symbol.for("sentry.skipNormalization"),U=Symbol.for("sentry.overrideNormalizationDepth");function B(t,n=100,e=1/0){try{return L("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function L(t,n,e=1/0,r=1/0,o=function(){const t=new WeakSet;function n(n){return!!t.has(n)||(t.add(n),!1)}function e(n){t.delete(n)}return[n,e]}()){const[i,s]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(t,n){try{if("undefined"!=typeof global&&n===global)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${function(t){try{return t&&"function"==typeof t&&t.name||x}catch{return x}}(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const t=function(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}(n);return`[object ${t}]`}catch(t){return`**non-serializable** (${t})`}}(0,n);if(!c.startsWith("[object "))return c;if(function(t){return Boolean(t[D])}(n))return n;const u=function(t){const n=t[U];return"number"==typeof n?n:void 0}(n),a=void 0!==u?u:e;if(0===a)return c.replace("object ","");if(i(n))return"[Circular ~]";const f=n;if(f&&"function"==typeof f.toJSON)try{return L("",f.toJSON(),a-1,r,o)}catch{}const h=Array.isArray(n)?[]:{};let p=0;const d=A(n);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(p>=r){h[t]="[MaxProperties ~]";break}const n=d[t];h[t]=L(t,n,a-1,r,o),p++}return s(n),h}function M(t,n){const e=n.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=t;try{r=decodeURI(t)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${e}/*`,"ig"),"app:///")}function z(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}let F;function G(t=function(){const t=p;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return T(()=>t.randomUUID()).replace(/-/g,"")}catch{}return F||(F="10000000100040008000100000000000"),F.replace(/[018]/g,t=>(t^(16*k()&15)>>t/4).toString(16))}function J(){return P()/1e3}let W;function Y(){return(W??(W=function(){const{performance:t}=p;if(!t?.now||!t.timeOrigin)return J;const n=t.timeOrigin;return()=>(n+T(()=>t.now()))/1e3}()))()}function H(t){const n=Y(),e={sid:G(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(e)};return t&&K(e,t),e}function K(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||Y(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:G()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}function Z(t,n,e=2){if(!n||"object"!=typeof n||e<=0)return n;if(t&&0===Object.keys(n).length)return t;const r={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=Z(r[t],n[t],e-1));return r}function q(){return G()}function V(){return G().substring(16)}function Q(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}const X="_sentrySpan";function tt(t,n){n?function(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch{h&&w.log(`Failed to add non-enumerable property "${String(n)}" to object`,t)}}(t,X,function(t){try{const n=p.WeakRef;if("function"==typeof n)return new n(t)}catch{}return t}(n)):delete t[X]}function nt(t){return Q(t[X])}class et{constructor(){this.t=!1,this.o=[],this.i=[],this.u=[],this.h=[],this.p={},this.l={},this.m={},this.v={},this._={},this.S={},this.N={traceId:q(),sampleRand:k()}}clone(){const t=new et;return t.u=[...this.u],t.l={...this.l},t.m={...this.m},t.v={...this.v},t._={...this._},this._.flags&&(t._.flags={values:[...this._.flags.values]}),t.p=this.p,t.C=this.C,t.j=this.j,t.R=this.R,t.A=this.A,t.i=[...this.i],t.h=[...this.h],t.S={...this.S},t.N={...this.N},t.I=this.I,t.O=this.O,t.T=this.T,tt(t,nt(this)),t}setClient(t){this.I=t}setLastEventId(t){this.O=t}getClient(){return this.I}lastEventId(){return this.O}addScopeListener(t){this.o.push(t)}addEventProcessor(t){return this.i.push(t),this}setUser(t){return this.p=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.j&&K(this.j,{user:t}),this.k(),this}getUser(){return this.p}setConversationId(t){return this.T=t||void 0,this.k(),this}setTags(t){return this.l={...this.l,...t},this.k(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this.m={...this.m,...t},this.k(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this.m&&(delete this.m[t],this.k()),this}setExtras(t){return this.v={...this.v,...t},this.k(),this}setExtra(t,n){return this.v={...this.v,[t]:n},this.k(),this}setFingerprint(t){return this.A=t,this.k(),this}setLevel(t){return this.C=t,this.k(),this}setTransactionName(t){return this.R=t,this.k(),this}setContext(t,n){return null===n?delete this._[t]:this._[t]=n,this.k(),this}setSession(t){return t?this.j=t:delete this.j,this.k(),this}getSession(){return this.j}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,e=n instanceof et?n.getScopeData():C(n,"Object")?t:void 0;const{tags:r,attributes:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f,conversationId:h}=e||{};return this.l={...this.l,...r},this.m={...this.m,...o},this.v={...this.v,...i},this._={...this._,...c},s&&Object.keys(s).length&&(this.p=s),u&&(this.C=u),a.length&&(this.A=a),f&&(this.N=f),h&&(this.T=h),this}clear(){return this.u=[],this.l={},this.m={},this.v={},this.p={},this._={},this.C=void 0,this.R=void 0,this.A=void 0,this.j=void 0,this.T=void 0,tt(this,void 0),this.h=[],this.setPropagationContext({traceId:q(),sampleRand:k()}),this.k(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:J(),...t,message:t.message?z(t.message,2048):t.message};return this.u.push(r),this.u.length>e&&(this.u=this.u.slice(-e),this.I?.recordDroppedEvent("buffer_overflow","log_item")),this.k(),this}getLastBreadcrumb(){return this.u[this.u.length-1]}clearBreadcrumbs(){return this.u=[],this.k(),this}addAttachment(t){return this.h.push(t),this}clearAttachments(){return this.h=[],this}getScopeData(){return{breadcrumbs:this.u,attachments:this.h,contexts:this._,tags:this.l,attributes:this.m,extra:this.v,user:this.p,level:this.C,fingerprint:this.A||[],eventProcessors:this.i,propagationContext:this.N,sdkProcessingMetadata:this.S,transactionName:this.R,span:nt(this),conversationId:this.T}}setSDKProcessingMetadata(t){return this.S=Z(this.S,t,2),this}setPropagationContext(t){return this.N=t,this}getPropagationContext(){return this.N}captureException(t,n){const e=n?.event_id||G();if(!this.I)return h&&w.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.I.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e?.event_id||G();if(!this.I)return h&&w.warn("No client configured on scope - will not capture message!"),r;const o=e?.syntheticException??new Error(t);return this.I.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=t.event_id||n?.event_id||G();return this.I?(this.I.captureEvent(t,{...n,event_id:e},this),e):(h&&w.warn("No client configured on scope - will not capture event!"),e)}k(){this.t||(this.t=!0,this.o.forEach(t=>{t(this)}),this.t=!1)}}const rt=t=>t instanceof Promise&&!t[ot],ot=Symbol("chained PromiseLike"),it=(t,n)=>{if(!n)return t;let e=!1;for(const r in t){if(r in n)continue;e=!0;const o=t[r];"function"==typeof o?Object.defineProperty(n,r,{value:(...n)=>o.apply(t,n),enumerable:!0,configurable:!0,writable:!0}):n[r]=o}return e&&Object.assign(n,{[ot]:!0}),n};class st{constructor(t,n){let e,r;e=t||new et,r=n||new et,this.P=[{scope:e}],this.D=r}withScope(t){const n=this.U();let e;try{e=t(n)}catch(t){throw this.B(),t}return j(e)?((t,n,e)=>{const r=t.then(t=>(n(t),t),t=>{throw e(t),t});return rt(r)&&rt(t)?r:it(t,r)})(e,()=>this.B(),()=>this.B()):(this.B(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.D}getStackTop(){return this.P[this.P.length-1]}U(){const t=this.getScope().clone();return this.P.push({client:this.getClient(),scope:t}),t}B(){return!(this.P.length<=1)&&!!this.P.pop()}}function ct(){const t=g(l());return t.stack=t.stack||new st(m("defaultCurrentScope",()=>new et),m("defaultIsolationScope",()=>new et))}function ut(t){return ct().withScope(t)}function at(t,n){const e=ct();return e.withScope(()=>(e.getStackTop().scope=t,n(t)))}function ft(t){return ct().withScope(()=>t(ct().getIsolationScope()))}function ht(t){const n=g(t);return n.acs?n.acs:{withIsolationScope:ft,withScope:ut,withSetScope:at,withSetIsolationScope:(t,n)=>ft(n),getCurrentScope:()=>ct().getScope(),getIsolationScope:()=>ct().getIsolationScope()}}function pt(){return ht(l()).getCurrentScope().getClient()}function dt(t){const n=t;return{scope:n._sentryScope,isolationScope:Q(n._sentryIsolationScope)}}const lt="sentry-";function gt(t){const n=function(t){if(!t||(n=t,!C(n,"String")&&!Array.isArray(t)))return;var n;if(Array.isArray(t))return t.reduce((t,n)=>{const e=mt(n);return Object.entries(e).forEach(([n,e])=>{t[n]=e}),t},{});return mt(t)}(t);if(!n)return;const e=Object.entries(n).reduce((t,[n,e])=>{if(n.startsWith(lt)){t[n.slice(7)]=e}return t},{});return Object.keys(e).length>0?e:void 0}function mt(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,e])=>(n&&e&&(t[n]=e),t),{})}const yt=/^o(\d+)\./;function bt(t,n=!1){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&o?`:${o}`:""}@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function vt(t){const n=t.getOptions(),{host:e}=t.getDsn()||{};let r;return n.orgId?r=String(n.orgId):e&&(r=function(t){const n=t.match(yt);return n?.[1]}(e)),r}function _t(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext(),o=r?n:Et(t).parent_span_id,i=dt(t).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||V():n,trace_id:e}}function St(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:o})=>({span_id:t,trace_id:n,sampled:1===e,attributes:o,...r})):void 0}function wt(t){return"number"==typeof t?$t(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?$t(t.getTime()):Y()}function $t(t){return t>9999999999?t/1e3:t}function Et(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:n,traceId:e}=t.spanContext();if(function(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}(t)){const{attributes:r,startTime:o,name:i,endTime:s,status:c,links:u}=t;return{span_id:n,trace_id:e,data:r,description:i,parent_span_id:xt(t),start_timestamp:wt(o),timestamp:wt(s)||void 0,status:Nt(c),op:r["sentry.op"],origin:r["sentry.origin"],links:St(u)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function xt(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Nt(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const Ct=function(t){return t._sentryRootSpan||t};function jt(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=t||pt()?.getOptions();return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}const Rt=Symbol.for("sentry.nonRecordingSpan");function At(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o={environment:e.environment||"production",release:e.release,public_key:r,trace_id:t,org_id:vt(n)};return n.emit("createDsc",o),o}function It(t,n){const e=n.getPropagationContext();return e.dsc||At(e.traceId,t)}function Ot(t){const n=pt();if(!n)return{};const e=Ct(t),r=Et(e),o=r.data,i=e.spanContext().traceState,s=i?.get("sentry.sample_rate")??o["sentry.sample_rate"]??o["sentry.previous_trace_sample_rate"];function c(t){return"number"!=typeof s&&"string"!=typeof s||(t.sample_rate=`${s}`),t}const u=e._frozenDsc;if(u)return c(u);const a=function(t){return!!t&&!0===t[Rt]}(e),f=a&&"ignored"===e.dropReason;if(a&&(!jt(n.getOptions())||f)){const t=dt(e).scope;if(t){const e={...It(n,t)};return f&&(e.sampled="false"),c(e)}}const h=i?.get("sentry.dsc"),p=h&&gt(h);if(p)return c(p);const d=At(t.spanContext().traceId,n),l=o["sentry.source"]??o["sentry.segment.name.source"],g=r.description;return"url"!==l&&g&&(d.transaction=g),jt()&&(d.sampled=String(function(t){const{traceFlags:n}=t.spanContext();return 1===n}(e)),d.sample_rand=i?.get("sentry.sample_rand")??dt(e).scope?.getPropagationContext().sampleRand.toString()),c(d),n.emit("createDsc",d,e),d}function Tt(t,n=[]){return[t,n]}function kt(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function Pt(t){const n=g(p);return n.encodePolyfill?n.encodePolyfill(t):(new TextEncoder).encode(t)}function Dt(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[Pt(r),t]:r.push("string"==typeof t?Pt(t):t)}for(const t of e){const[n,e]=t;if(o(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch{t=JSON.stringify(B(e))}o(t)}}return"string"==typeof r?r:function(t){const n=t.reduce((t,n)=>t+n.length,0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(r)}const Ut={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Bt(t){return function(t){return t in Ut}(t)?Ut[t]:t}function Lt(t){if(!t?.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function Mt(t,n,e,r){const o=Lt(e),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){if(!n)return t;const e=t.sdk||{};t.sdk={...e,name:e.name||n.name,version:e.version||n.version,integrations:[...t.sdk?.integrations||[],...n.integrations||[]],packages:[...t.sdk?.packages||[],...n.packages||[]],settings:t.sdk?.settings||n.settings?{...t.sdk?.settings,...n.settings}:void 0}}(t,e?.sdk);const s=function(t,n,e,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(P()).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:bt(r)},...o&&{trace:o}}}(t,o,r,n);delete t.sdkProcessingMetadata;return Tt(s,[[{type:i},t]])}const zt="__SENTRY_SUPPRESS_TRACING__";function Ft(t){const n=ht(l());return n.suppressTracing?n.suppressTracing(t):function(...t){const n=ht(l());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}(n=>{n.setSDKProcessingMetadata({[zt]:!0});const e=t();return n.setSDKProcessingMetadata({[zt]:void 0}),e})}function Gt(t,n){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=n;!function(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=n;Object.keys(e).length&&(t.extra={...e,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(o).length&&(t.user={...o,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});s&&(t.level=s);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:_t(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ot(n),...t.sdkProcessingMetadata};const e=Ct(n),r=Et(e).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint.length||delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,o),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,i)}class Jt{constructor(t){this.L=0,this.M=[],this.F(t)}then(t,n){return new Jt((e,r)=>{this.M.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.G()})}catch(t){return this.then(t=>t,t)}finally(t){return new Jt((n,e)=>{let r,o;return this.then(n=>{o=!1,r=n,t&&t()},n=>{o=!0,r=n,t&&t()}).then(()=>{o?e(r):n(r)})})}G(){if(0===this.L)return;const t=this.M.slice();this.M=[],t.forEach(t=>{t[0]||(1===this.L&&t[1](this.J),2===this.L&&t[2](this.J),t[0]=!0)})}F(t){const n=(t,n)=>{0===this.L&&(j(n)?n.then(e,r):(this.L=t,this.J=n,this.G()))},e=t=>{n(1,t)},r=t=>{n(2,t)};try{t(e,r)}catch(t){r(t)}}}const Wt=Symbol.for("SentryBufferFullError");function Yt(t=100){const n=new Set;function e(t){n.delete(t)}return{get $(){return Array.from(n)},add:function(r){if(!(n.size<t))return o=Wt,new Jt((t,n)=>{n(o)});var o;const i=r();return n.add(i),i.then(()=>e(i),()=>e(i)),i},drain:function(t){if(!n.size)return e=!0,new Jt(t=>{t(e)});var e;const r=Promise.allSettled(Array.from(n)).then(()=>!0);if(!t)return r;const o=[r,new Promise(n=>{return"object"==typeof(e=setTimeout(()=>n(!1),t))&&"function"==typeof e.unref&&e.unref(),e;var e})];return Promise.race(o)}}}function Ht(t,{statusCode:n,headers:e},r=P()){const o={...t},i=e?.["x-sentry-rate-limits"],s=e?.["retry-after"];if(i)for(const t of i.trim().split(",")){const[n,e,,,i]=t.split(":",5),s=parseInt(n,10),c=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(o[t]=r+c);else o.all=r+c}else s?o.all=r+function(t,n=P()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-n}(s,r):429===n&&(o.all=r+6e4);return o}function Kt(t,n,e=Yt(t.bufferSize||64)){let r={};return{send:function(t){const o=[];if(kt(t,(t,n)=>{const e=Bt(n);(function(t,n,e=P()){return function(t,n){return t[n]||t.all||0}(t,n)>e})(r,e)||o.push(t)}),0===o.length)return Promise.resolve({});const i=Tt(t[0],o),s=t=>{!function(t,n){return kt(t,(t,e)=>n.includes(e))}(i,["client_report"])?kt(i,(t,n)=>{}):h&&w.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`)};return e.add(()=>n({body:Dt(i)}).then(t=>413===t.statusCode?(h&&w.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error"),t):(h&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&w.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Ht(r,t),t),t=>{throw s("network_error"),h&&w.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Wt)return h&&w.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw t})},flush:t=>e.drain(t)}}const Zt=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function qt(t){const n=function(t){const n=t.length>1024?`<truncated>${t.slice(-1024)}`:t,e=Zt.exec(n);return e?e.slice(1):[]}(t),e=n[0]||"";let r=n[1];return e||r?(r&&(r=r.slice(0,r.length-1)),e+r):"."}function Vt(t,n=!1){return!(n||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==t&&!t.includes("node_modules/")}var Qt;const Xt=Symbol("AgentBaseInternalState");class tn extends(Qt=i.Agent,Qt){constructor(t){super(t),this[Xt]={}}isSecureEndpoint(t){if(t){if("boolean"==typeof t.secureEndpoint)return t.secureEndpoint;if("string"==typeof t.protocol)return"https:"===t.protocol}const{stack:n}=new Error;return"string"==typeof n&&n.split("\n").some(t=>-1!==t.indexOf("(https.js:")||-1!==t.indexOf("node:https:"))}createSocket(t,n,e){const r={...n,secureEndpoint:this.isSecureEndpoint(n)};Promise.resolve().then(()=>this.connect(t,r)).then(o=>{if(o instanceof i.Agent)return o.addRequest(t,r);this[Xt].currentSocket=o,super.createSocket(t,n,e)},e)}createConnection(){const t=this[Xt].currentSocket;if(this[Xt].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return this[Xt].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(t){this[Xt]&&(this[Xt].defaultPort=t)}get protocol(){return this[Xt].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(t){this[Xt]&&(this[Xt].protocol=t)}}function nn(...t){w.log("[https-proxy-agent:parse-proxy-response]",...t)}function en(t){return new Promise((n,e)=>{let r=0;const o=[];function i(){const c=t.read();c?function(c){o.push(c),r+=c.length;const u=Buffer.concat(o,r),a=u.indexOf("\r\n\r\n");if(-1===a)return nn("have not received end of HTTP headers yet..."),void i();const f=u.subarray(0,a).toString("ascii").split("\r\n"),h=f.shift();if(!h)return t.destroy(),e(new Error("No header received from proxy CONNECT response"));const p=h.split(" "),d=+(p[1]||0),l=p.slice(2).join(" "),g={};for(const n of f){if(!n)continue;const r=n.indexOf(":");if(-1===r)return t.destroy(),e(new Error(`Invalid header from proxy CONNECT response: "${n}"`));const o=n.slice(0,r).toLowerCase(),i=n.slice(r+1).trimStart(),s=g[o];"string"==typeof s?g[o]=[s,i]:Array.isArray(s)?s.push(i):g[o]=i}nn("got proxy server response: %o %o",h,g),s(),n({connect:{statusCode:d,statusText:l,headers:g},buffered:u})}(c):t.once("readable",i)}function s(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",i)}function c(){s(),nn("onend"),e(new Error("Proxy connection ended before receiving CONNECT response"))}function u(t){s(),nn("onerror %o",t),e(t)}t.on("error",u),t.on("end",c),i()})}function rn(...t){w.log("[https-proxy-agent]",...t)}class on extends tn{constructor(t,n){super(n),this.options={},this.proxy="string"==typeof t?new URL(t):t,this.proxyHeaders=n?.headers??{},rn("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const e=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),r=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...n?cn(n,"headers"):null,host:e,port:r}}async connect(t,n){const{proxy:e}=this;if(!n.host)throw new TypeError('No "host" provided');let r;if("https:"===e.protocol){rn("Creating `tls.Socket`: %o",this.connectOpts);const t=this.connectOpts.servername||this.connectOpts.host;r=f.connect({...this.connectOpts,servername:t&&a.isIP(t)?void 0:t})}else rn("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts);const o="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},i=a.isIPv6(n.host)?`[${n.host}]`:n.host;let s=`CONNECT ${i}:${n.port} HTTP/1.1\r\n`;if(e.username||e.password){const t=`${decodeURIComponent(e.username)}:${decodeURIComponent(e.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(t).toString("base64")}`}o.Host=`${i}:${n.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const t of Object.keys(o))s+=`${t}: ${o[t]}\r\n`;const c=en(r);r.write(`${s}\r\n`);const{connect:u,buffered:h}=await c;if(t.emit("proxyConnect",u),this.emit("proxyConnect",u,t),200===u.statusCode){if(t.once("socket",sn),n.secureEndpoint){rn("Upgrading socket connection to TLS");const t=n.servername||n.host;return f.connect({...cn(n,"host","path","port"),socket:r,servername:a.isIP(t)?void 0:t})}return r}r.destroy();const p=new a.Socket({writable:!1});return p.readable=!0,t.once("socket",t=>{rn("Replaying proxy buffer for failed request"),t.push(h),t.push(null)}),p}}function sn(t){t.resume()}function cn(t,...n){const e={};let r;for(r in t)n.includes(r)||(e[r]=t[r]);return e}on.protocols=["http","https"];function un(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}const an=n;let fn,hn=0,pn={};function dn(t){an.debug&&console.log(`[ANR Worker] ${t}`)}var ln,gn,mn;const yn=function(t){let n;try{n=new URL(t.url)}catch(n){return b(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),Kt(t,()=>Promise.resolve({}))}const e="https:"===n.protocol,r=function(t,n){const{no_proxy:e}=process.env,r=e?.split(",").some(n=>t.host.endsWith(n)||t.hostname.endsWith(n));return r?void 0:n}(n,t.proxy||(e?process.env.https_proxy:void 0)||process.env.http_proxy),o=e?s:i,a=void 0!==t.keepAlive&&t.keepAlive,f=r?new on(r):new o.Agent({keepAlive:a,maxSockets:30,timeout:2e3}),h=function(t,n,e){const{hostname:r,pathname:o,port:i,protocol:s,search:a}=new URL(t.url);return function(f){return new Promise((h,p)=>{Ft(()=>{let d=function(t){return new c({read(){this.push(t),this.push(null)}})}(f.body);const l={...t.headers};f.body.length>32768&&(l["content-encoding"]="gzip",d=d.pipe(u()));const g=r.startsWith("["),m=n.request({method:"POST",agent:e,headers:l,hostname:g?r.slice(1,-1):r,path:`${o}${a}`,port:i,protocol:s,ca:t.caCerts},t=>{t.on("data",()=>{}),t.on("end",()=>{}),t.setEncoding("utf8");const n=t.headers["retry-after"]??null,e=t.headers["x-sentry-rate-limits"]??null;h({statusCode:t.statusCode,headers:{"retry-after":n,"x-sentry-rate-limits":Array.isArray(e)?e[0]||null:e}})});m.on("error",p),d.pipe(m)})})}}(t,t.httpModule??o,f);return Kt(t,h)}({url:(ln=an.dsn,gn=an.tunnel,mn=an.sdkMetadata.sdk,gn||`${function(t){return`${function(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(ln)}?${function(t,n){const e={sentry_version:"7"};return t.publicKey&&(e.sentry_key=t.publicKey),n&&(e.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(e).toString()}(ln,mn)}`)});async function bn(){if(fn){dn("Sending abnormal session"),K(fn,{status:"abnormal",abnormal_mechanism:"anr_foreground",release:an.release,environment:an.environment});const t=function(t,n,e,r){const o=Lt(e);return Tt({sent_at:new Date(P()).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:bt(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(fn,an.dsn,an.sdkMetadata,an.tunnel);dn(JSON.stringify(t)),await yn.send(t);try{e?.postMessage("session-ended")}catch{}}}function vn(t){if(!t)return;const n=function(t){if(!t.length)return[];const n=Array.from(t);return/sentryWrapped/.test(E(n).function||"")&&n.pop(),n.reverse(),$.test(E(n).function||"")&&(n.pop(),$.test(E(n).function||"")&&n.pop()),n.slice(0,50).map(t=>({...t,filename:t.filename||E(n).filename,function:t.function||"?"}))}(t);if(an.appRootPath)for(const t of n)t.filename&&(t.filename=M(t.filename,an.appRootPath));return n}async function _n(t,n){if(hn>=an.maxAnrEvents)return;hn+=1,await bn(),dn("Sending event");const e={event_id:G(),contexts:an.contexts,release:an.release,environment:an.environment,dist:an.dist,platform:"node",level:"error",exception:{values:[{type:"ApplicationNotResponding",value:`Application Not Responding for at least ${an.anrThreshold} ms`,stacktrace:{frames:vn(t)},mechanism:{type:"ANR"}}]},tags:an.staticTags};n&&function(t,n){if(Gt(t,n),!t.contexts?.trace){const{traceId:e,parentSpanId:r,propagationSpanId:o}=n.propagationContext;t.contexts={trace:{trace_id:e,span_id:o||V(),parent_span_id:r},...t.contexts}}}(e,n),function(t){if(0===Object.keys(pn).length)return;const n=an.appRootPath?{}:pn;if(an.appRootPath)for(const[t,e]of Object.entries(pn))n[M(t,an.appRootPath)]=e;const e=new Map;for(const r of t.exception?.values||[])for(const t of r.stacktrace?.frames||[]){const r=t.abs_path||t.filename;r&&n[r]&&e.set(r,n[r])}if(e.size>0){const n=[];for(const[t,r]of e.entries())n.push({type:"sourcemap",code_file:t,debug_id:r});t.debug_meta={images:n}}}(e);const r=Mt(e,an.dsn,an.sdkMetadata,an.tunnel);dn(JSON.stringify(r)),await yn.send(r),await yn.flush(2e3),hn>=an.maxAnrEvents&&setTimeout(()=>{process.exit(0)},5e3)}let Sn;if(dn("Started"),an.captureStackTrace){dn("Connecting to debugger");const n=new t;n.connectToMainThread(),dn("Connected to debugger");const e=new Map;n.on("Debugger.scriptParsed",t=>{e.set(t.params.scriptId,t.params.url)}),n.on("Debugger.paused",t=>{if("other"===t.params.reason)try{dn("Debugger paused");const i=[...t.params.callFrames],s=an.appRootPath?function(t=(process.argv[1]?qt(process.argv[1]):process.cwd()),n="\\"===o){const e=n?un(t):t;return t=>{if(!t)return;const o=n?un(t):t;let{dir:i,base:s,ext:c}=r.parse(o);".js"!==c&&".mjs"!==c&&".cjs"!==c||(s=s.slice(0,-1*c.length));const u=decodeURIComponent(s);i||(i=".");const a=i.lastIndexOf("/node_modules");if(a>-1)return`${i.slice(a+14).replace(/\//g,".")}:${u}`;if(i.startsWith(e)){const t=i.slice(e.length+1).replace(/\//g,".");return t?`${t}:${u}`:u}return u}}(an.appRootPath):()=>{},c=i.map(t=>function(t,n,e){const r=n?n.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,i=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:r,module:e(r),function:t.functionName||"?",colno:o,lineno:i,in_app:r?Vt(r):void 0}}(t,e.get(t.location.scriptId),s)),u=setTimeout(()=>{_n(c).then(null,()=>{dn("Sending ANR event failed.")})},5e3);n.post("Runtime.evaluate",{expression:"global.__SENTRY_GET_SCOPES__();",silent:!0,returnByValue:!0},(t,e)=>{t&&dn(`Error executing script: '${t.message}'`),clearTimeout(u);const r=e?.result?e.result.value:void 0;n.post("Debugger.resume"),n.post("Debugger.disable"),_n(c,r).then(null,()=>{dn("Sending ANR event failed.")})})}catch(t){throw n.post("Debugger.resume"),n.post("Debugger.disable"),t}}),Sn=()=>{try{n.post("Debugger.enable",()=>{n.post("Debugger.pause")})}catch{}}}const{poll:wn}=function(t,n,e,r){const o=t();let i=!1,s=!0;return setInterval(()=>{const t=o.getTimeMs();!1===i&&t>n+e&&(i=!0,s&&r()),t<n+e&&(i=!1)},20),{poll:()=>{o.reset()},enabled:t=>{s=t}}}(function(){let t=process.hrtime();return{getTimeMs:()=>{const[n,e]=process.hrtime(t);return Math.floor(1e3*n+e/1e6)},reset:()=>{t=process.hrtime()}}},an.pollInterval,an.anrThreshold,function(){dn("Watchdog timeout"),Sn?(dn("Pausing debugger to capture stack trace"),Sn()):(dn("Capturing event without a stack trace"),_n().then(null,()=>{dn("Sending ANR event failed on watchdog timeout.")}))});e?.on("message",t=>{t.session&&(fn=H(t.session)),t.debugImages&&(pn=t.debugImages),wn()});
1
+ /*! @sentry/node-core 10.78.0 (5f277de) | https://github.com/getsentry/sentry-javascript */
2
+ import{Session as t}from"node:inspector";import{workerData as n,parentPort as e}from"node:worker_threads";import{posix as r,sep as o}from"node:path";import*as i from"node:http";import*as s from"node:https";import{Readable as c}from"node:stream";import{createGzip as u}from"node:zlib";import*as a from"node:net";import*as f from"node:tls";const h="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,p=globalThis,d="10.78.0";function l(){return g(p),p}function g(t){const n=t.__SENTRY__=t.__SENTRY__||{};return n.version=n.version||d,n[d]=n[d]||{}}function m(t,n,e=p){const r=e.__SENTRY__=e.__SENTRY__||{},o=r[d]=r[d]||{};return o[t]||(o[t]=n())}const y={};function b(t){if(!("console"in p))return t();const n=p.console,e={},r=Object.keys(y);r.forEach(t=>{const r=y[t];e[t]=n[t],n[t]=r});try{return t()}finally{r.forEach(t=>{n[t]=e[t]})}}function v(){return S().enabled}function _(t,...n){h&&v()&&b(()=>{p.console[t](`Sentry Logger [${t}]:`,...n)})}function S(){return h?m("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const w={enable:function(){S().enabled=!0},disable:function(){S().enabled=!1},isEnabled:v,log:function(...t){_("log",...t)},warn:function(...t){_("warn",...t)},error:function(...t){_("error",...t)}},$=/captureMessage|captureException/;function E(t){return t[t.length-1]||{}}const x="<anonymous>";const N=Object.prototype.toString;function C(t,n){return N.call(t)===`[object ${n}]`}function j(t){return Boolean(t?.then&&"function"==typeof t.then)}function R(t,n){try{return t instanceof n}catch{return!1}}function A(t){if(function(t){switch(N.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return R(t,Error)}}(t))return{message:t.message,name:t.name,stack:t.stack,...I(t)};if(n=t,"undefined"!=typeof Event&&R(n,Event)){const{type:n,target:e,currentTarget:r,detail:o}=t;return{type:n,target:e,currentTarget:r,...o?{detail:o}:{},...I(t)}}var n;return t}function I(t){return"object"==typeof(n=t)&&null!==n?Object.fromEntries(Object.entries(t)):{};var n}let O;function T(t){if(void 0!==O)return O?O(t):t();const n=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),e=p;return n in e&&"function"==typeof e[n]?(O=e[n],O(t)):(O=null,t())}function k(){return T(()=>Math.random())}function P(){return T(()=>Date.now())}const D=Symbol.for("sentry.skipNormalization"),U=Symbol.for("sentry.overrideNormalizationDepth");function B(t,n=100,e=1/0){try{return L("",t,n,e)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function L(t,n,e=1/0,r=1/0,o=function(){const t=new WeakSet;function n(n){return!!t.has(n)||(t.add(n),!1)}function e(n){t.delete(n)}return[n,e]}()){const[i,s]=o;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const c=function(t,n){try{if("undefined"!=typeof global&&n===global)return"[Global]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${function(t){try{return t&&"function"==typeof t&&t.name||x}catch{return x}}(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const t=function(t){const n=Object.getPrototypeOf(t);return n?.constructor?n.constructor.name:"null prototype"}(n);return`[object ${t}]`}catch(t){return`**non-serializable** (${t})`}}(0,n);if(!c.startsWith("[object "))return c;if(function(t){return Boolean(t[D])}(n))return n;const u=function(t){const n=t[U];return"number"==typeof n?n:void 0}(n),a=void 0!==u?u:e;if(0===a)return c.replace("object ","");if(i(n))return"[Circular ~]";const f=n;if(f&&"function"==typeof f.toJSON)try{return L("",f.toJSON(),a-1,r,o)}catch{}const h=Array.isArray(n)?[]:{};let p=0;const d=A(n);for(const t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(p>=r){h[t]="[MaxProperties ~]";break}const n=d[t];h[t]=L(t,n,a-1,r,o),p++}return s(n),h}function M(t,n){const e=n.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=t;try{r=decodeURI(t)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${e}/*`,"ig"),"app:///")}function z(t,n=0){return"string"!=typeof t||0===n||t.length<=n?t:`${t.slice(0,n)}...`}let F;function G(t=function(){const t=p;return t.crypto||t.msCrypto}()){try{if(t?.randomUUID)return T(()=>t.randomUUID()).replace(/-/g,"")}catch{}return F||(F="10000000100040008000100000000000"),F.replace(/[018]/g,t=>(t^(16*k()&15)>>t/4).toString(16))}function J(){return P()/1e3}let W;function Y(){return(W??(W=function(){const{performance:t}=p;if(!t?.now||!t.timeOrigin)return J;const n=t.timeOrigin;return()=>(n+T(()=>t.now()))/1e3}()))()}function H(t){const n=Y(),e={sid:G(),init:!0,timestamp:n,started:n,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return{sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}(e)};return t&&K(e,t),e}function K(t,n={}){if(n.user&&(!t.ipAddress&&n.user.ip_address&&(t.ipAddress=n.user.ip_address),t.did||n.did||(t.did=n.user.id||n.user.email||n.user.username)),t.timestamp=n.timestamp||Y(),n.abnormal_mechanism&&(t.abnormal_mechanism=n.abnormal_mechanism),n.ignoreDuration&&(t.ignoreDuration=n.ignoreDuration),n.sid&&(t.sid=32===n.sid.length?n.sid:G()),void 0!==n.init&&(t.init=n.init),!t.did&&n.did&&(t.did=`${n.did}`),"number"==typeof n.started&&(t.started=n.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof n.duration)t.duration=n.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}n.release&&(t.release=n.release),n.environment&&(t.environment=n.environment),!t.ipAddress&&n.ipAddress&&(t.ipAddress=n.ipAddress),!t.userAgent&&n.userAgent&&(t.userAgent=n.userAgent),"number"==typeof n.errors&&(t.errors=n.errors),n.status&&(t.status=n.status)}function Z(t,n,e=2){if(!n||"object"!=typeof n||e<=0)return n;if(t&&0===Object.keys(n).length)return t;const r={...t};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=Z(r[t],n[t],e-1));return r}function q(){return G()}function V(){return G().substring(16)}function Q(t){if(t){if("object"==typeof t&&"deref"in t&&"function"==typeof t.deref)try{return t.deref()}catch{return}return t}}const X="_sentrySpan";function tt(t,n){n?function(t,n,e){try{Object.defineProperty(t,n,{value:e,writable:!0,configurable:!0})}catch{h&&w.log(`Failed to add non-enumerable property "${String(n)}" to object`,t)}}(t,X,function(t){try{const n=p.WeakRef;if("function"==typeof n)return new n(t)}catch{}return t}(n)):delete t[X]}function nt(t){return Q(t[X])}class et{constructor(){this.t=!1,this.o=[],this.i=[],this.u=[],this.h=[],this.p={},this.l={},this.m={},this.v={},this._={},this.S={},this.N={traceId:q(),sampleRand:k()}}clone(){const t=new et;return t.u=[...this.u],t.l={...this.l},t.m={...this.m},t.v={...this.v},t._={...this._},this._.flags&&(t._.flags={values:[...this._.flags.values]}),t.p=this.p,t.C=this.C,t.j=this.j,t.R=this.R,t.A=this.A,t.i=[...this.i],t.h=[...this.h],t.S={...this.S},t.N={...this.N},t.I=this.I,t.O=this.O,t.T=this.T,tt(t,nt(this)),t}setClient(t){this.I=t}setLastEventId(t){this.O=t}getClient(){return this.I}lastEventId(){return this.O}addScopeListener(t){this.o.push(t)}addEventProcessor(t){return this.i.push(t),this}setUser(t){return this.p=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this.j&&K(this.j,{user:t}),this.k(),this}getUser(){return this.p}setConversationId(t){return this.T=t||void 0,this.k(),this}setTags(t){return this.l={...this.l,...t},this.k(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this.m={...this.m,...t},this.k(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this.m&&(delete this.m[t],this.k()),this}setExtras(t){return this.v={...this.v,...t},this.k(),this}setExtra(t,n){return this.v={...this.v,[t]:n},this.k(),this}setFingerprint(t){return this.A=t,this.k(),this}setLevel(t){return this.C=t,this.k(),this}setTransactionName(t){return this.R=t,this.k(),this}setContext(t,n){return null===n?delete this._[t]:this._[t]=n,this.k(),this}setSession(t){return t?this.j=t:delete this.j,this.k(),this}getSession(){return this.j}update(t){if(!t)return this;const n="function"==typeof t?t(this):t,e=n instanceof et?n.getScopeData():C(n,"Object")?t:void 0;const{tags:r,attributes:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f,conversationId:h}=e||{};return this.l={...this.l,...r},this.m={...this.m,...o},this.v={...this.v,...i},this._={...this._,...c},s&&Object.keys(s).length&&(this.p=s),u&&(this.C=u),a.length&&(this.A=a),f&&(this.N=f),h&&(this.T=h),this}clear(){return this.u=[],this.l={},this.m={},this.v={},this.p={},this._={},this.C=void 0,this.R=void 0,this.A=void 0,this.j=void 0,this.T=void 0,tt(this,void 0),this.h=[],this.setPropagationContext({traceId:q(),sampleRand:k()}),this.k(),this}addBreadcrumb(t,n){const e="number"==typeof n?n:100;if(e<=0)return this;const r={timestamp:J(),...t,message:t.message?z(t.message,2048):t.message};return this.u.push(r),this.u.length>e&&(this.u=this.u.slice(-e)),this.k(),this}getLastBreadcrumb(){return this.u[this.u.length-1]}clearBreadcrumbs(){return this.u=[],this.k(),this}addAttachment(t){return this.h.push(t),this}clearAttachments(){return this.h=[],this}getScopeData(){return{breadcrumbs:this.u,attachments:this.h,contexts:this._,tags:this.l,attributes:this.m,extra:this.v,user:this.p,level:this.C,fingerprint:this.A||[],eventProcessors:this.i,propagationContext:this.N,sdkProcessingMetadata:this.S,transactionName:this.R,span:nt(this),conversationId:this.T}}setSDKProcessingMetadata(t){return this.S=Z(this.S,t,2),this}setPropagationContext(t){return this.N=t,this}getPropagationContext(){return this.N}captureException(t,n){const e=n?.event_id||G();if(!this.I)return h&&w.warn("No client configured on scope - will not capture exception!"),e;const r=new Error("Sentry syntheticException");return this.I.captureException(t,{originalException:t,syntheticException:r,...n,event_id:e},this),e}captureMessage(t,n,e){const r=e?.event_id||G();if(!this.I)return h&&w.warn("No client configured on scope - will not capture message!"),r;const o=e?.syntheticException??new Error(t);return this.I.captureMessage(t,n,{originalException:t,syntheticException:o,...e,event_id:r},this),r}captureEvent(t,n){const e=t.event_id||n?.event_id||G();return this.I?(this.I.captureEvent(t,{...n,event_id:e},this),e):(h&&w.warn("No client configured on scope - will not capture event!"),e)}k(){this.t||(this.t=!0,this.o.forEach(t=>{t(this)}),this.t=!1)}}const rt=t=>t instanceof Promise&&!t[ot],ot=Symbol("chained PromiseLike"),it=(t,n)=>{if(!n)return t;let e=!1;for(const r in t){if(r in n)continue;e=!0;const o=t[r];"function"==typeof o?Object.defineProperty(n,r,{value:(...n)=>o.apply(t,n),enumerable:!0,configurable:!0,writable:!0}):n[r]=o}return e&&Object.assign(n,{[ot]:!0}),n};class st{constructor(t,n){let e,r;e=t||new et,r=n||new et,this.P=[{scope:e}],this.D=r}withScope(t){const n=this.U();let e;try{e=t(n)}catch(t){throw this.B(),t}return j(e)?((t,n,e)=>{const r=t.then(t=>(n(t),t),t=>{throw e(t),t});return rt(r)&&rt(t)?r:it(t,r)})(e,()=>this.B(),()=>this.B()):(this.B(),e)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this.D}getStackTop(){return this.P[this.P.length-1]}U(){const t=this.getScope().clone();return this.P.push({client:this.getClient(),scope:t}),t}B(){return!(this.P.length<=1)&&!!this.P.pop()}}function ct(){const t=g(l());return t.stack=t.stack||new st(m("defaultCurrentScope",()=>new et),m("defaultIsolationScope",()=>new et))}function ut(t){return ct().withScope(t)}function at(t,n){const e=ct();return e.withScope(()=>(e.getStackTop().scope=t,n(t)))}function ft(t){return ct().withScope(()=>t(ct().getIsolationScope()))}function ht(t){const n=g(t);return n.acs?n.acs:{withIsolationScope:ft,withScope:ut,withSetScope:at,withSetIsolationScope:(t,n)=>ft(n),getCurrentScope:()=>ct().getScope(),getIsolationScope:()=>ct().getIsolationScope()}}function pt(){return ht(l()).getCurrentScope().getClient()}function dt(t){const n=t;return{scope:n._sentryScope,isolationScope:Q(n._sentryIsolationScope)}}const lt="sentry-";function gt(t){const n=function(t){if(!t||(n=t,!C(n,"String")&&!Array.isArray(t)))return;var n;if(Array.isArray(t))return t.reduce((t,n)=>{const e=mt(n);return Object.entries(e).forEach(([n,e])=>{t[n]=e}),t},{});return mt(t)}(t);if(!n)return;const e=Object.entries(n).reduce((t,[n,e])=>{if(n.startsWith(lt)){t[n.slice(7)]=e}return t},{});return Object.keys(e).length>0?e:void 0}function mt(t){return t.split(",").map(t=>{const n=t.indexOf("=");if(-1===n)return[];return[t.slice(0,n),t.slice(n+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[n,e])=>(n&&e&&(t[n]=e),t),{})}const yt=/^o(\d+)\./;function bt(t,n=!1){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=t;return`${c}://${u}${n&&o?`:${o}`:""}@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function vt(t){const n=t.getOptions(),{host:e}=t.getDsn()||{};let r;return n.orgId?r=String(n.orgId):e&&(r=function(t){const n=t.match(yt);return n?.[1]}(e)),r}function _t(t){const{spanId:n,traceId:e,isRemote:r}=t.spanContext(),o=r?n:Et(t).parent_span_id,i=dt(t).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||V():n,trace_id:e}}function St(t){return t&&t.length>0?t.map(({context:{spanId:t,traceId:n,traceFlags:e,...r},attributes:o})=>({span_id:t,trace_id:n,sampled:1===e,attributes:o,...r})):void 0}function wt(t){return"number"==typeof t?$t(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?$t(t.getTime()):Y()}function $t(t){return t>9999999999?t/1e3:t}function Et(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();const{spanId:n,traceId:e}=t.spanContext();if(function(t){const n=t;return!!(n.attributes&&n.startTime&&n.name&&n.endTime&&n.status)}(t)){const{attributes:r,startTime:o,name:i,endTime:s,status:c,links:u}=t;return{span_id:n,trace_id:e,data:r,description:i,parent_span_id:xt(t),start_timestamp:wt(o),timestamp:wt(s)||void 0,status:Nt(c),op:r["sentry.op"],origin:r["sentry.origin"],links:St(u)}}return{span_id:n,trace_id:e,start_timestamp:0,data:{}}}function xt(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function Nt(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}const Ct=function(t){return t._sentryRootSpan||t};function jt(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=t||pt()?.getOptions();return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}const Rt=Symbol.for("sentry.nonRecordingSpan");function At(t,n){const e=n.getOptions(),{publicKey:r}=n.getDsn()||{},o={environment:e.environment||"production",release:e.release,public_key:r,trace_id:t,org_id:vt(n)};return n.emit("createDsc",o),o}function It(t,n){const e=n.getPropagationContext();return e.dsc||At(e.traceId,t)}function Ot(t){const n=pt();if(!n)return{};const e=Ct(t),r=Et(e),o=r.data,i=e.spanContext().traceState,s=i?.get("sentry.sample_rate")??o["sentry.sample_rate"]??o["sentry.previous_trace_sample_rate"];function c(t){return"number"!=typeof s&&"string"!=typeof s||(t.sample_rate=`${s}`),t}const u=e._frozenDsc;if(u)return c(u);const a=function(t){return!!t&&!0===t[Rt]}(e),f=a&&"ignored"===e.dropReason;if(a&&(!jt(n.getOptions())||f)){const t=dt(e).scope;if(t){const e={...It(n,t)};return f&&(e.sampled="false"),c(e)}}const h=i?.get("sentry.dsc"),p=h&&gt(h);if(p)return c(p);const d=At(t.spanContext().traceId,n),l=o["sentry.source"]??o["sentry.segment.name.source"],g=r.description;return"url"!==l&&g&&(d.transaction=g),jt()&&(d.sampled=String(function(t){const{traceFlags:n}=t.spanContext();return 1===n}(e)),d.sample_rand=i?.get("sentry.sample_rand")??dt(e).scope?.getPropagationContext().sampleRand.toString()),c(d),n.emit("createDsc",d,e),d}function Tt(t,n=[]){return[t,n]}function kt(t,n){const e=t[1];for(const t of e){if(n(t,t[0].type))return!0}return!1}function Pt(t){const n=g(p);return n.encodePolyfill?n.encodePolyfill(t):(new TextEncoder).encode(t)}function Dt(t){const[n,e]=t;let r=JSON.stringify(n);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[Pt(r),t]:r.push("string"==typeof t?Pt(t):t)}for(const t of e){const[n,e]=t;if(o(`\n${JSON.stringify(n)}\n`),"string"==typeof e||e instanceof Uint8Array)o(e);else{let t;try{t=JSON.stringify(e)}catch{t=JSON.stringify(B(e))}o(t)}}return"string"==typeof r?r:function(t){const n=t.reduce((t,n)=>t+n.length,0),e=new Uint8Array(n);let r=0;for(const n of t)e.set(n,r),r+=n.length;return e}(r)}const Ut={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",metric:"trace_metric"};function Bt(t){return function(t){return t in Ut}(t)?Ut[t]:t}function Lt(t){if(!t?.sdk)return;const{name:n,version:e}=t.sdk;return{name:n,version:e}}function Mt(t,n,e,r){const o=Lt(e),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,n){if(!n)return t;const e=t.sdk||{};t.sdk={...e,name:e.name||n.name,version:e.version||n.version,integrations:[...t.sdk?.integrations||[],...n.integrations||[]],packages:[...t.sdk?.packages||[],...n.packages||[]],settings:t.sdk?.settings||n.settings?{...t.sdk?.settings,...n.settings}:void 0}}(t,e?.sdk);const s=function(t,n,e,r){const o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date(P()).toISOString(),...n&&{sdk:n},...!!e&&r&&{dsn:bt(r)},...o&&{trace:o}}}(t,o,r,n);delete t.sdkProcessingMetadata;return Tt(s,[[{type:i},t]])}const zt="__SENTRY_SUPPRESS_TRACING__";function Ft(t){const n=ht(l());return n.suppressTracing?n.suppressTracing(t):function(...t){const n=ht(l());if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}(n=>{n.setSDKProcessingMetadata({[zt]:!0});const e=t();return n.setSDKProcessingMetadata({[zt]:void 0}),e})}function Gt(t,n){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=n;!function(t,n){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=n;Object.keys(e).length&&(t.extra={...e,...t.extra});Object.keys(r).length&&(t.tags={...r,...t.tags});Object.keys(o).length&&(t.user={...o,...t.user});Object.keys(i).length&&(t.contexts={...i,...t.contexts});s&&(t.level=s);c&&"transaction"!==t.type&&(t.transaction=c)}(t,n),r&&function(t,n){t.contexts={trace:_t(n),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ot(n),...t.sdkProcessingMetadata};const e=Ct(n),r=Et(e).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,r),function(t,n){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],n&&(t.fingerprint=t.fingerprint.concat(n));t.fingerprint.length||delete t.fingerprint}(t,e),function(t,n){const e=[...t.breadcrumbs||[],...n];t.breadcrumbs=e.length?e:void 0}(t,o),function(t,n){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...n}}(t,i)}class Jt{constructor(t){this.L=0,this.M=[],this.F(t)}then(t,n){return new Jt((e,r)=>{this.M.push([!1,n=>{if(t)try{e(t(n))}catch(t){r(t)}else e(n)},t=>{if(n)try{e(n(t))}catch(t){r(t)}else r(t)}]),this.G()})}catch(t){return this.then(t=>t,t)}finally(t){return new Jt((n,e)=>{let r,o;return this.then(n=>{o=!1,r=n,t&&t()},n=>{o=!0,r=n,t&&t()}).then(()=>{o?e(r):n(r)})})}G(){if(0===this.L)return;const t=this.M.slice();this.M=[],t.forEach(t=>{t[0]||(1===this.L&&t[1](this.J),2===this.L&&t[2](this.J),t[0]=!0)})}F(t){const n=(t,n)=>{0===this.L&&(j(n)?n.then(e,r):(this.L=t,this.J=n,this.G()))},e=t=>{n(1,t)},r=t=>{n(2,t)};try{t(e,r)}catch(t){r(t)}}}const Wt=Symbol.for("SentryBufferFullError");function Yt(t=100){const n=new Set;function e(t){n.delete(t)}return{get $(){return Array.from(n)},add:function(r){if(!(n.size<t))return o=Wt,new Jt((t,n)=>{n(o)});var o;const i=r();return n.add(i),i.then(()=>e(i),()=>e(i)),i},drain:function(t){if(!n.size)return e=!0,new Jt(t=>{t(e)});var e;const r=Promise.allSettled(Array.from(n)).then(()=>!0);if(!t)return r;const o=[r,new Promise(n=>{return"object"==typeof(e=setTimeout(()=>n(!1),t))&&"function"==typeof e.unref&&e.unref(),e;var e})];return Promise.race(o)}}}function Ht(t,{statusCode:n,headers:e},r=P()){const o={...t},i=e?.["x-sentry-rate-limits"],s=e?.["retry-after"];if(i)for(const t of i.trim().split(",")){const[n,e,,,i]=t.split(":",5),s=parseInt(n,10),c=1e3*(isNaN(s)?60:s);if(e)for(const t of e.split(";"))"metric_bucket"===t&&i&&!i.split(";").includes("custom")||(o[t]=r+c);else o.all=r+c}else s?o.all=r+function(t,n=P()){const e=parseInt(`${t}`,10);if(!isNaN(e))return 1e3*e;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-n}(s,r):429===n&&(o.all=r+6e4);return o}function Kt(t,n,e=Yt(t.bufferSize||64)){let r={};return{send:function(t){const o=[];if(kt(t,(t,n)=>{const e=Bt(n);(function(t,n,e=P()){return function(t,n){return t[n]||t.all||0}(t,n)>e})(r,e)||o.push(t)}),0===o.length)return Promise.resolve({});const i=Tt(t[0],o),s=t=>{!function(t,n){return kt(t,(t,e)=>n.includes(e))}(i,["client_report"])?kt(i,(t,n)=>{}):h&&w.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`)};return e.add(()=>n({body:Dt(i)}).then(t=>413===t.statusCode?(h&&w.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error"),t):(h&&void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&w.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=Ht(r,t),t),t=>{throw s("network_error"),h&&w.error("Encountered error running transport request:",t),t})).then(t=>t,t=>{if(t===Wt)return h&&w.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw t})},flush:t=>e.drain(t)}}const Zt=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function qt(t){const n=function(t){const n=t.length>1024?`<truncated>${t.slice(-1024)}`:t,e=Zt.exec(n);return e?e.slice(1):[]}(t),e=n[0]||"";let r=n[1];return e||r?(r&&(r=r.slice(0,r.length-1)),e+r):"."}function Vt(t,n=!1){return!(n||t&&!t.startsWith("/")&&!t.match(/^[A-Z]:/)&&!t.startsWith(".")&&!t.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==t&&!t.includes("node_modules/")}var Qt;const Xt=Symbol("AgentBaseInternalState");class tn extends(Qt=i.Agent,Qt){constructor(t){super(t),this[Xt]={}}isSecureEndpoint(t){if(t){if("boolean"==typeof t.secureEndpoint)return t.secureEndpoint;if("string"==typeof t.protocol)return"https:"===t.protocol}const{stack:n}=new Error;return"string"==typeof n&&n.split("\n").some(t=>-1!==t.indexOf("(https.js:")||-1!==t.indexOf("node:https:"))}createSocket(t,n,e){const r={...n,secureEndpoint:this.isSecureEndpoint(n)};Promise.resolve().then(()=>this.connect(t,r)).then(o=>{if(o instanceof i.Agent)return o.addRequest(t,r);this[Xt].currentSocket=o,super.createSocket(t,n,e)},e)}createConnection(){const t=this[Xt].currentSocket;if(this[Xt].currentSocket=void 0,!t)throw new Error("No socket was returned in the `connect()` function");return t}get defaultPort(){return this[Xt].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(t){this[Xt]&&(this[Xt].defaultPort=t)}get protocol(){return this[Xt].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(t){this[Xt]&&(this[Xt].protocol=t)}}function nn(...t){w.log("[https-proxy-agent:parse-proxy-response]",...t)}function en(t){return new Promise((n,e)=>{let r=0;const o=[];function i(){const c=t.read();c?function(c){o.push(c),r+=c.length;const u=Buffer.concat(o,r),a=u.indexOf("\r\n\r\n");if(-1===a)return nn("have not received end of HTTP headers yet..."),void i();const f=u.subarray(0,a).toString("ascii").split("\r\n"),h=f.shift();if(!h)return t.destroy(),e(new Error("No header received from proxy CONNECT response"));const p=h.split(" "),d=+(p[1]||0),l=p.slice(2).join(" "),g={};for(const n of f){if(!n)continue;const r=n.indexOf(":");if(-1===r)return t.destroy(),e(new Error(`Invalid header from proxy CONNECT response: "${n}"`));const o=n.slice(0,r).toLowerCase(),i=n.slice(r+1).trimStart(),s=g[o];"string"==typeof s?g[o]=[s,i]:Array.isArray(s)?s.push(i):g[o]=i}nn("got proxy server response: %o %o",h,g),s(),n({connect:{statusCode:d,statusText:l,headers:g},buffered:u})}(c):t.once("readable",i)}function s(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",i)}function c(){s(),nn("onend"),e(new Error("Proxy connection ended before receiving CONNECT response"))}function u(t){s(),nn("onerror %o",t),e(t)}t.on("error",u),t.on("end",c),i()})}function rn(...t){w.log("[https-proxy-agent]",...t)}class on extends tn{constructor(t,n){super(n),this.options={},this.proxy="string"==typeof t?new URL(t):t,this.proxyHeaders=n?.headers??{},rn("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const e=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),r=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...n?cn(n,"headers"):null,host:e,port:r}}async connect(t,n){const{proxy:e}=this;if(!n.host)throw new TypeError('No "host" provided');let r;if("https:"===e.protocol){rn("Creating `tls.Socket`: %o",this.connectOpts);const t=this.connectOpts.servername||this.connectOpts.host;r=f.connect({...this.connectOpts,servername:t&&a.isIP(t)?void 0:t})}else rn("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts);const o="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},i=a.isIPv6(n.host)?`[${n.host}]`:n.host;let s=`CONNECT ${i}:${n.port} HTTP/1.1\r\n`;if(e.username||e.password){const t=`${decodeURIComponent(e.username)}:${decodeURIComponent(e.password)}`;o["Proxy-Authorization"]=`Basic ${Buffer.from(t).toString("base64")}`}o.Host=`${i}:${n.port}`,o["Proxy-Connection"]||(o["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const t of Object.keys(o))s+=`${t}: ${o[t]}\r\n`;const c=en(r);r.write(`${s}\r\n`);const{connect:u,buffered:h}=await c;if(t.emit("proxyConnect",u),this.emit("proxyConnect",u,t),200===u.statusCode){if(t.once("socket",sn),n.secureEndpoint){rn("Upgrading socket connection to TLS");const t=n.servername||n.host;return f.connect({...cn(n,"host","path","port"),socket:r,servername:a.isIP(t)?void 0:t})}return r}r.destroy();const p=new a.Socket({writable:!1});return p.readable=!0,t.once("socket",t=>{rn("Replaying proxy buffer for failed request"),t.push(h),t.push(null)}),p}}function sn(t){t.resume()}function cn(t,...n){const e={};let r;for(r in t)n.includes(r)||(e[r]=t[r]);return e}on.protocols=["http","https"];function un(t){return t.replace(/^[A-Z]:/,"").replace(/\\/g,"/")}const an=n;let fn,hn=0,pn={};function dn(t){an.debug&&console.log(`[ANR Worker] ${t}`)}var ln,gn,mn;const yn=function(t){let n;try{n=new URL(t.url)}catch(n){return b(()=>{console.warn("[@sentry/node]: Invalid dsn or tunnel option, will not send any events. The tunnel option must be a full URL when used.")}),Kt(t,()=>Promise.resolve({}))}const e="https:"===n.protocol,r=function(t,n){const{no_proxy:e}=process.env,r=e?.split(",").some(n=>t.host.endsWith(n)||t.hostname.endsWith(n));return r?void 0:n}(n,t.proxy||(e?process.env.https_proxy:void 0)||process.env.http_proxy),o=e?s:i,a=void 0!==t.keepAlive&&t.keepAlive,f=r?new on(r):new o.Agent({keepAlive:a,maxSockets:30,timeout:2e3}),h=function(t,n,e){const{hostname:r,pathname:o,port:i,protocol:s,search:a}=new URL(t.url);return function(f){return new Promise((h,p)=>{Ft(()=>{let d=function(t){return new c({read(){this.push(t),this.push(null)}})}(f.body);const l={...t.headers};f.body.length>32768&&(l["content-encoding"]="gzip",d=d.pipe(u()));const g=r.startsWith("["),m=n.request({method:"POST",agent:e,headers:l,hostname:g?r.slice(1,-1):r,path:`${o}${a}`,port:i,protocol:s,ca:t.caCerts},t=>{t.on("data",()=>{}),t.on("end",()=>{}),t.setEncoding("utf8");const n=t.headers["retry-after"]??null,e=t.headers["x-sentry-rate-limits"]??null;h({statusCode:t.statusCode,headers:{"retry-after":n,"x-sentry-rate-limits":Array.isArray(e)?e[0]||null:e}})});m.on("error",p),d.pipe(m)})})}}(t,t.httpModule??o,f);return Kt(t,h)}({url:(ln=an.dsn,gn=an.tunnel,mn=an.sdkMetadata.sdk,gn||`${function(t){return`${function(t){const n=t.protocol?`${t.protocol}:`:"",e=t.port?`:${t.port}`:"";return`${n}//${t.host}${e}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(ln)}?${function(t,n){const e={sentry_version:"7"};return t.publicKey&&(e.sentry_key=t.publicKey),n&&(e.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(e).toString()}(ln,mn)}`)});async function bn(){if(fn){dn("Sending abnormal session"),K(fn,{status:"abnormal",abnormal_mechanism:"anr_foreground",release:an.release,environment:an.environment});const t=function(t,n,e,r){const o=Lt(e);return Tt({sent_at:new Date(P()).toISOString(),...o&&{sdk:o},...!!r&&n&&{dsn:bt(n)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(fn,an.dsn,an.sdkMetadata,an.tunnel);dn(JSON.stringify(t)),await yn.send(t);try{e?.postMessage("session-ended")}catch{}}}function vn(t){if(!t)return;const n=function(t){if(!t.length)return[];const n=Array.from(t);return/sentryWrapped/.test(E(n).function||"")&&n.pop(),n.reverse(),$.test(E(n).function||"")&&(n.pop(),$.test(E(n).function||"")&&n.pop()),n.slice(0,50).map(t=>({...t,filename:t.filename||E(n).filename,function:t.function||"?"}))}(t);if(an.appRootPath)for(const t of n)t.filename&&(t.filename=M(t.filename,an.appRootPath));return n}async function _n(t,n){if(hn>=an.maxAnrEvents)return;hn+=1,await bn(),dn("Sending event");const e={event_id:G(),contexts:an.contexts,release:an.release,environment:an.environment,dist:an.dist,platform:"node",level:"error",exception:{values:[{type:"ApplicationNotResponding",value:`Application Not Responding for at least ${an.anrThreshold} ms`,stacktrace:{frames:vn(t)},mechanism:{type:"ANR"}}]},tags:an.staticTags};n&&function(t,n){if(Gt(t,n),!t.contexts?.trace){const{traceId:e,parentSpanId:r,propagationSpanId:o}=n.propagationContext;t.contexts={trace:{trace_id:e,span_id:o||V(),parent_span_id:r},...t.contexts}}}(e,n),function(t){if(0===Object.keys(pn).length)return;const n=an.appRootPath?{}:pn;if(an.appRootPath)for(const[t,e]of Object.entries(pn))n[M(t,an.appRootPath)]=e;const e=new Map;for(const r of t.exception?.values||[])for(const t of r.stacktrace?.frames||[]){const r=t.abs_path||t.filename;r&&n[r]&&e.set(r,n[r])}if(e.size>0){const n=[];for(const[t,r]of e.entries())n.push({type:"sourcemap",code_file:t,debug_id:r});t.debug_meta={images:n}}}(e);const r=Mt(e,an.dsn,an.sdkMetadata,an.tunnel);dn(JSON.stringify(r)),await yn.send(r),await yn.flush(2e3),hn>=an.maxAnrEvents&&setTimeout(()=>{process.exit(0)},5e3)}let Sn;if(dn("Started"),an.captureStackTrace){dn("Connecting to debugger");const n=new t;n.connectToMainThread(),dn("Connected to debugger");const e=new Map;n.on("Debugger.scriptParsed",t=>{e.set(t.params.scriptId,t.params.url)}),n.on("Debugger.paused",t=>{if("other"===t.params.reason)try{dn("Debugger paused");const i=[...t.params.callFrames],s=an.appRootPath?function(t=(process.argv[1]?qt(process.argv[1]):process.cwd()),n="\\"===o){const e=n?un(t):t;return t=>{if(!t)return;const o=n?un(t):t;let{dir:i,base:s,ext:c}=r.parse(o);".js"!==c&&".mjs"!==c&&".cjs"!==c||(s=s.slice(0,-1*c.length));const u=decodeURIComponent(s);i||(i=".");const a=i.lastIndexOf("/node_modules");if(a>-1)return`${i.slice(a+14).replace(/\//g,".")}:${u}`;if(i.startsWith(e)){const t=i.slice(e.length+1).replace(/\//g,".");return t?`${t}:${u}`:u}return u}}(an.appRootPath):()=>{},c=i.map(t=>function(t,n,e){const r=n?n.replace(/^file:\/\//,""):void 0,o=t.location.columnNumber?t.location.columnNumber+1:void 0,i=t.location.lineNumber?t.location.lineNumber+1:void 0;return{filename:r,module:e(r),function:t.functionName||"?",colno:o,lineno:i,in_app:r?Vt(r):void 0}}(t,e.get(t.location.scriptId),s)),u=setTimeout(()=>{_n(c).then(null,()=>{dn("Sending ANR event failed.")})},5e3);n.post("Runtime.evaluate",{expression:"global.__SENTRY_GET_SCOPES__();",silent:!0,returnByValue:!0},(t,e)=>{t&&dn(`Error executing script: '${t.message}'`),clearTimeout(u);const r=e?.result?e.result.value:void 0;n.post("Debugger.resume"),n.post("Debugger.disable"),_n(c,r).then(null,()=>{dn("Sending ANR event failed.")})})}catch(t){throw n.post("Debugger.resume"),n.post("Debugger.disable"),t}}),Sn=()=>{try{n.post("Debugger.enable",()=>{n.post("Debugger.pause")})}catch{}}}const{poll:wn}=function(t,n,e,r){const o=t();let i=!1,s=!0;return setInterval(()=>{const t=o.getTimeMs();!1===i&&t>n+e&&(i=!0,s&&r()),t<n+e&&(i=!1)},20),{poll:()=>{o.reset()},enabled:t=>{s=t}}}(function(){let t=process.hrtime();return{getTimeMs:()=>{const[n,e]=process.hrtime(t);return Math.floor(1e3*n+e/1e6)},reset:()=>{t=process.hrtime()}}},an.pollInterval,an.anrThreshold,function(){dn("Watchdog timeout"),Sn?(dn("Pausing debugger to capture stack trace"),Sn()):(dn("Capturing event without a stack trace"),_n().then(null,()=>{dn("Sending ANR event failed on watchdog timeout.")}))});e?.on("message",t=>{t.session&&(fn=H(t.session)),t.debugImages&&(pn=t.debugImages),wn()});
@@ -1,8 +1,9 @@
1
1
  import { createReadStream } from 'node:fs';
2
2
  import { createInterface } from 'node:readline';
3
- import { LRUMap, defineIntegration, debug, snipLine } from '@sentry/core';
3
+ import { LRUMap, defineIntegration, debug, stripUrlQueryAndFragment, snipLine } from '@sentry/core';
4
4
  import { DEBUG_BUILD } from '../debug-build.js';
5
5
 
6
+ const SOURCE_FILE_EXTENSION = /\.(?:[cm]?[jt]sx?|vue|svelte|astro|mdx)$/;
6
7
  const LRU_FILE_CONTENTS_CACHE = new LRUMap(10);
7
8
  const LRU_FILE_CONTENTS_FS_READ_FAILED = new LRUMap(20);
8
9
  const DEFAULT_LINES_OF_CONTEXT = 7;
@@ -19,11 +20,12 @@ function emplace(map, key, contents) {
19
20
  }
20
21
  function shouldSkipContextLinesForFile(path) {
21
22
  if (path.startsWith("node:")) return true;
22
- if (path.endsWith(".min.js")) return true;
23
- if (path.endsWith(".min.cjs")) return true;
24
- if (path.endsWith(".min.mjs")) return true;
25
23
  if (path.startsWith("data:")) return true;
26
- return false;
24
+ const pathname = stripUrlQueryAndFragment(path).toLowerCase();
25
+ if (pathname.endsWith(".min.js")) return true;
26
+ if (pathname.endsWith(".min.cjs")) return true;
27
+ if (pathname.endsWith(".min.mjs")) return true;
28
+ return !SOURCE_FILE_EXTENSION.test(pathname);
27
29
  }
28
30
  function shouldSkipContextLinesForFrame(frame) {
29
31
  if (frame.lineno !== void 0 && frame.lineno > MAX_CONTEXTLINES_LINENO) return true;
@@ -3,7 +3,7 @@ import { defineIntegration, debug, getClient } from '@sentry/core';
3
3
  import { isDebuggerEnabled } from '../../utils/debug.js';
4
4
  import { LOCAL_VARIABLES_KEY, functionNamesMatch, filterFrameVariables } from './common.js';
5
5
 
6
- const base64WorkerScript = "LyohIEBzZW50cnkvbm9kZS1jb3JlIDEwLjc2LjIgKDA0MmUyMjgpIHwgaHR0cHM6Ly9naXRodWIuY29tL2dldHNlbnRyeS9zZW50cnktamF2YXNjcmlwdCAqLwppbXBvcnR7U2Vzc2lvbiBhcyBlfWZyb20ibm9kZTppbnNwZWN0b3IvcHJvbWlzZXMiO2ltcG9ydHt3b3JrZXJEYXRhIGFzIHR9ZnJvbSJub2RlOndvcmtlcl90aHJlYWRzIjtjb25zdCBuPWdsb2JhbFRoaXMsaT17fTtjb25zdCBvPSJfX1NFTlRSWV9FUlJPUl9MT0NBTF9WQVJJQUJMRVNfXyI7Y29uc3QgYT10O2Z1bmN0aW9uIHMoLi4uZSl7YS5kZWJ1ZyYmZnVuY3Rpb24oZSl7aWYoISgiY29uc29sZSJpbiBuKSlyZXR1cm4gZSgpO2NvbnN0IHQ9bi5jb25zb2xlLG89e30sYT1PYmplY3Qua2V5cyhpKTthLmZvck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z0xfX0oZSxhc3luYygpPT57cygiUmF0ZS1saW1pdCBsaWZ0ZWQuIiksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5zZXRQYXVzZU9uRXhjZXB0aW9ucyIse3N0YXRlOiJhbGwifSl9LGFzeW5jIGU9PntzKGBSYXRlLWxpbWl0IGV4Y2VlZGVkLiBEaXNhYmxpbmcgY2FwdHVyaW5nIG9mIGNhdWdodCBleGNlcHRpb25zIGZvciAke2V9IHNlY29uZHMuYCksYXdhaXQgdC5wb3N0KCJEZWJ1Z2dlci5zZXRQYXVzZU9uRXhjZXB0aW9ucyIse3N0YXRlOiJ1bmNhdWdodCJ9KX0pfX0pKCkuY2F0Y2goZT0+e3MoIkZhaWxlZCB0byBzdGFydCBkZWJ1Z2dlciIsZSl9KSxzZXRJbnRlcnZhbCgoKT0+e30sMWU0KTs=";
7
7
  function log(...args) {
8
8
  debug.log("[LocalVariables]", ...args);
9
9
  }
@@ -1,2 +1,2 @@
1
- /*! @sentry/node-core 10.76.2 (042e228) | https://github.com/getsentry/sentry-javascript */
1
+ /*! @sentry/node-core 10.78.0 (5f277de) | https://github.com/getsentry/sentry-javascript */
2
2
  import{Session as e}from"node:inspector/promises";import{workerData as t}from"node:worker_threads";const n=globalThis,i={};const o="__SENTRY_ERROR_LOCAL_VARIABLES__";const a=t;function s(...e){a.debug&&function(e){if(!("console"in n))return e();const t=n.console,o={},a=Object.keys(i);a.forEach(e=>{const n=i[e];o[e]=t[e],t[e]=n});try{return e()}finally{a.forEach(e=>{t[e]=o[e]})}}(()=>console.log("[LocalVariables Worker]",...e))}async function c(e,t,n,i){const o=await e.post("Runtime.getProperties",{objectId:t,ownProperties:!0});i[n]=o.result.filter(e=>"length"!==e.name&&!isNaN(parseInt(e.name,10))).sort((e,t)=>parseInt(e.name,10)-parseInt(t.name,10)).map(e=>e.value?.value)}async function r(e,t,n,i){const o=await e.post("Runtime.getProperties",{objectId:t,ownProperties:!0});i[n]=o.result.map(e=>[e.name,e.value?.value]).reduce((e,[t,n])=>(e[t]=n,e),{})}function u(e,t){e.value&&("value"in e.value?void 0===e.value.value||null===e.value.value?t[e.name]=`<${e.value.value}>`:t[e.name]=e.value.value:"description"in e.value&&"function"!==e.value.type?t[e.name]=`<${e.value.description}>`:"undefined"===e.value.type&&(t[e.name]="<undefined>"))}async function l(e,t){const n=await e.post("Runtime.getProperties",{objectId:t,ownProperties:!0}),i={};for(const t of n.result)if(t.value?.objectId&&"Array"===t.value.className){const n=t.value.objectId;await c(e,n,t.name,i)}else if(t.value?.objectId&&"Object"===t.value.className){const n=t.value.objectId;await r(e,n,t.name,i)}else t.value&&u(t,i);return i}let f;(async function(){const t=new e;t.connectToMainThread(),s("Connected to main thread");let n=!1;t.on("Debugger.resumed",()=>{n=!1}),t.on("Debugger.paused",e=>{n=!0,async function(e,{reason:t,data:{objectId:n},callFrames:i}){if("exception"!==t&&"promiseRejection"!==t)return;if(f?.(),null==n)return;const a=[];for(let t=0;t<i.length;t++){const{scopeChain:n,functionName:o,this:s}=i[t],c=n.find(e=>"local"===e.type),r="global"!==s.className&&s.className?`${s.className}.${o}`:o;if(void 0===c?.object.objectId)a[t]={function:r};else{const n=await l(e,c.object.objectId);a[t]={function:r,vars:n}}}await e.post("Runtime.callFunctionOn",{functionDeclaration:`function() { this.${o} = this.${o} || ${JSON.stringify(a)}; }`,silent:!0,objectId:n}),await e.post("Runtime.releaseObject",{objectId:n})}(t,e.params).then(async()=>{n&&await t.post("Debugger.resume")},async e=>{n&&await t.post("Debugger.resume")})}),await t.post("Debugger.enable");const i=!1!==a.captureAllExceptions;if(await t.post("Debugger.setPauseOnExceptions",{state:i?"all":"uncaught"}),i){const e=a.maxExceptionsPerSecond||50;f=function(e,t,n){let i=0,o=5,a=0;return setInterval(()=>{0===a?i>e&&(o*=2,n(o),o>86400&&(o=86400),a=o):(a-=1,0===a&&t()),i=0},1e3).unref(),()=>{i+=1}}(e,async()=>{s("Rate-limit lifted."),await t.post("Debugger.setPauseOnExceptions",{state:"all"})},async e=>{s(`Rate-limit exceeded. Disabling capturing of caught exceptions for ${e} seconds.`),await t.post("Debugger.setPauseOnExceptions",{state:"uncaught"})})}})().catch(e=>{s("Failed to start debugger",e)}),setInterval(()=>{},1e4);
@@ -219,6 +219,14 @@ function onError({ request, error }) {
219
219
  if (!span) {
220
220
  return;
221
221
  }
222
+ const isAbort = error.name === "AbortError" || // `DOMException.code` is deprecated, but undici (>= 6.3.0) reports aborts as a `DOMException` with `ABORT_ERR`
223
+ // eslint-disable-next-line typescript/no-deprecated
224
+ typeof DOMException !== "undefined" && error instanceof DOMException && error.code === DOMException.ABORT_ERR;
225
+ if (isAbort) {
226
+ span.end();
227
+ spanFromReq.delete(request);
228
+ return;
229
+ }
222
230
  span.setStatus({
223
231
  code: SPAN_STATUS_ERROR,
224
232
  message: error.message
@@ -1 +1 @@
1
- {"type":"module","version":"10.76.2","sideEffects":false}
1
+ {"type":"module","version":"10.78.0","sideEffects":false}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node-core",
3
- "version": "10.76.2",
3
+ "version": "10.78.0",
4
4
  "description": "Sentry Node-Core SDK",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node-core",
@@ -78,11 +78,11 @@
78
78
  "tag": "v10"
79
79
  },
80
80
  "peerDependencies": {
81
- "@opentelemetry/api": "^1.9.0",
81
+ "@opentelemetry/api": ">=1.9.0 <1.10.0",
82
82
  "@opentelemetry/core": "^1.30.1 || ^2.1.0",
83
- "@opentelemetry/instrumentation": ">=0.57.1 <1",
83
+ "@opentelemetry/instrumentation": ">=0.57.1 <0.300.0",
84
84
  "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0",
85
- "@opentelemetry/exporter-trace-otlp-http": ">=0.57.0 <1"
85
+ "@opentelemetry/exporter-trace-otlp-http": ">=0.57.0 <0.300.0"
86
86
  },
87
87
  "peerDependenciesMeta": {
88
88
  "@opentelemetry/api": {
@@ -103,12 +103,12 @@
103
103
  },
104
104
  "dependencies": {
105
105
  "@sentry/conventions": "^0.16.0",
106
- "@sentry/core": "10.76.2",
107
- "@sentry/opentelemetry": "10.76.2",
106
+ "@sentry/core": "10.78.0",
107
+ "@sentry/opentelemetry": "10.78.0",
108
108
  "import-in-the-middle": "^3.0.0"
109
109
  },
110
110
  "devDependencies": {
111
- "@opentelemetry/api": "^1.9.1",
111
+ "@opentelemetry/api": ">=1.9.1 <1.10.0",
112
112
  "@opentelemetry/core": "^2.9.0",
113
113
  "@opentelemetry/exporter-trace-otlp-http": "^0.220.0",
114
114
  "@opentelemetry/instrumentation": "^0.220.0",
@@ -142,8 +142,8 @@
142
142
  "sideEffects": false,
143
143
  "optionalDependencies": {
144
144
  "@opentelemetry/api": "1.9.1",
145
- "@opentelemetry/core": "2.12.0",
145
+ "@opentelemetry/core": "2.12.1",
146
146
  "@opentelemetry/instrumentation": "0.220.0",
147
- "@opentelemetry/sdk-trace-base": "2.12.0"
147
+ "@opentelemetry/sdk-trace-base": "2.12.1"
148
148
  }
149
149
  }
@@ -1 +1 @@
1
- {"type":"module","version":"10.76.2","sideEffects":false}
1
+ {"type":"module","version":"10.78.0","sideEffects":false}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/opentelemetry",
3
- "version": "10.76.2",
3
+ "version": "10.78.0",
4
4
  "description": "Official Sentry utilities for OpenTelemetry",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/opentelemetry",
@@ -50,18 +50,18 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@sentry/conventions": "^0.16.0",
53
- "@sentry/core": "10.76.2",
53
+ "@sentry/core": "10.78.0",
54
54
  "@opentelemetry/api": "1.9.1",
55
- "@opentelemetry/core": "2.12.0",
56
- "@opentelemetry/sdk-trace-base": "2.12.0"
55
+ "@opentelemetry/core": "2.12.1",
56
+ "@opentelemetry/sdk-trace-base": "2.12.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@opentelemetry/api": "^1.9.0",
59
+ "@opentelemetry/api": ">=1.9.0 <1.10.0",
60
60
  "@opentelemetry/core": "^1.30.1 || ^2.1.0",
61
61
  "@opentelemetry/sdk-trace-base": "^1.30.1 || ^2.1.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@opentelemetry/api": "^1.9.1",
64
+ "@opentelemetry/api": ">=1.9.1 <1.10.0",
65
65
  "@opentelemetry/core": "^2.9.0",
66
66
  "@opentelemetry/sdk-trace-base": "^2.9.0"
67
67
  },
@@ -591,6 +591,38 @@ SOFTWARE.
591
591
 
592
592
  ---
593
593
 
594
+ Name: astring
595
+ Version: 1.9.0
596
+ License: MIT
597
+ Private: false
598
+ Description: JavaScript code generator from an ESTree-compliant AST.
599
+ Repository: https://github.com/davidbonnet/astring.git
600
+ Author: David Bonnet <david@bonnet.cc>
601
+ License Text:
602
+ ===
603
+
604
+ Copyright (c) 2015, David Bonnet <david@bonnet.cc>
605
+
606
+ Permission is hereby granted, free of charge, to any person obtaining a copy
607
+ of this software and associated documentation files (the "Software"), to deal
608
+ in the Software without restriction, including without limitation the rights
609
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
610
+ copies of the Software, and to permit persons to whom the Software is
611
+ furnished to do so, subject to the following conditions:
612
+
613
+ The above copyright notice and this permission notice shall be included in
614
+ all copies or substantial portions of the Software.
615
+
616
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
617
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
618
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
619
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
620
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
621
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
622
+ THE SOFTWARE.
623
+
624
+ ---
625
+
594
626
  Name: semifies
595
627
  Version: 1.0.0
596
628
  License: Apache-2.0
@@ -828,38 +860,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
828
860
 
829
861
  ---
830
862
 
831
- Name: astring
832
- Version: 1.9.0
833
- License: MIT
834
- Private: false
835
- Description: JavaScript code generator from an ESTree-compliant AST.
836
- Repository: https://github.com/davidbonnet/astring.git
837
- Author: David Bonnet <david@bonnet.cc>
838
- License Text:
839
- ===
840
-
841
- Copyright (c) 2015, David Bonnet <david@bonnet.cc>
842
-
843
- Permission is hereby granted, free of charge, to any person obtaining a copy
844
- of this software and associated documentation files (the "Software"), to deal
845
- in the Software without restriction, including without limitation the rights
846
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
847
- copies of the Software, and to permit persons to whom the Software is
848
- furnished to do so, subject to the following conditions:
849
-
850
- The above copyright notice and this permission notice shall be included in
851
- all copies or substantial portions of the Software.
852
-
853
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
854
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
855
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
856
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
857
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
858
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
859
- THE SOFTWARE.
860
-
861
- ---
862
-
863
863
  Name: source-map
864
864
  Version: 0.6.1
865
865
  License: BSD-3-Clause
@@ -121,11 +121,22 @@ function getSpanForLayer(data, options) {
121
121
  }
122
122
  });
123
123
  if (res && typeof res.once === "function") {
124
+ const cleanup = () => {
125
+ res.removeListener("finish", onFinish);
126
+ res.removeListener("close", onClose);
127
+ };
124
128
  const onFinish = () => {
129
+ cleanup();
130
+ span.end();
131
+ };
132
+ const onClose = () => {
133
+ cleanup();
134
+ span.setStatus({ code: core.SPAN_STATUS_ERROR, message: "cancelled" });
125
135
  span.end();
126
136
  };
127
137
  res.once("finish", onFinish);
128
- data._sentryCleanup = () => res.removeListener("finish", onFinish);
138
+ res.once("close", onClose);
139
+ data._sentryCleanup = cleanup;
129
140
  }
130
141
  return span;
131
142
  }
@@ -1,5 +1,5 @@
1
1
  import { HTTP_ROUTE } from '@sentry/conventions/attributes';
2
- import { debug, getActiveSpan, getIsolationScope, getDefaultIsolationScope, startInactiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getRootSpan, spanToJSON, stringMatchesSomePattern } from '@sentry/core';
2
+ import { debug, getActiveSpan, getIsolationScope, getDefaultIsolationScope, startInactiveSpan, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getRootSpan, spanToJSON, stringMatchesSomePattern, SPAN_STATUS_ERROR } from '@sentry/core';
3
3
  import { DEBUG_BUILD } from '../../../debug-build.js';
4
4
  import { CHANNELS } from '../../../orchestrion/channels.js';
5
5
  import { bindTracingChannelToSpan } from '../../../tracing-channel.js';
@@ -119,11 +119,22 @@ function getSpanForLayer(data, options) {
119
119
  }
120
120
  });
121
121
  if (res && typeof res.once === "function") {
122
+ const cleanup = () => {
123
+ res.removeListener("finish", onFinish);
124
+ res.removeListener("close", onClose);
125
+ };
122
126
  const onFinish = () => {
127
+ cleanup();
128
+ span.end();
129
+ };
130
+ const onClose = () => {
131
+ cleanup();
132
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: "cancelled" });
123
133
  span.end();
124
134
  };
125
135
  res.once("finish", onFinish);
126
- data._sentryCleanup = () => res.removeListener("finish", onFinish);
136
+ res.once("close", onClose);
137
+ data._sentryCleanup = cleanup;
127
138
  }
128
139
  return span;
129
140
  }
@@ -1 +1 @@
1
- {"type":"module","version":"10.76.2","sideEffects":false}
1
+ {"type":"module","version":"10.78.0","sideEffects":false}
@@ -31,7 +31,7 @@ export interface ExpressResponse {
31
31
  * object for `Layer.prototype.handle_request`/`handleRequest`: `self` is the
32
32
  * Layer the method was invoked on and `arguments` are `[req, res, next]`.
33
33
  *
34
- * `_sentryCleanup` is ours: a teardown for the `res.on('finish')` listener we
34
+ * `_sentryCleanup` is ours: a teardown for the `res` `finish`/`close` listeners we
35
35
  * register, invoked from `beforeSpanEnd` when the span ends via `next()`.
36
36
  * `_sentryStoredLayer` marks that this invocation pushed a layer path (so the
37
37
  * matching pop on `asyncStart` stays symmetric).
@@ -31,7 +31,7 @@ export interface ExpressResponse {
31
31
  * object for `Layer.prototype.handle_request`/`handleRequest`: `self` is the
32
32
  * Layer the method was invoked on and `arguments` are `[req, res, next]`.
33
33
  *
34
- * `_sentryCleanup` is ours: a teardown for the `res.on('finish')` listener we
34
+ * `_sentryCleanup` is ours: a teardown for the `res` `finish`/`close` listeners we
35
35
  * register, invoked from `beforeSpanEnd` when the span ends via `next()`.
36
36
  * `_sentryStoredLayer` marks that this invocation pushed a layer path (so the
37
37
  * matching pop on `asyncStart` stays symmetric).
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/server-utils",
3
- "version": "10.76.2",
3
+ "version": "10.78.0",
4
4
  "description": "Server Utilities for all Sentry JavaScript SDKs",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/server-utils",
@@ -125,7 +125,7 @@
125
125
  },
126
126
  "dependencies": {
127
127
  "@sentry/conventions": "^0.16.0",
128
- "@sentry/core": "10.76.2"
128
+ "@sentry/core": "10.78.0"
129
129
  },
130
130
  "devDependencies": {
131
131
  "@apm-js-collab/code-transformer-bundler-plugins": "^0.7.3",
@@ -62,6 +62,6 @@
62
62
  }
63
63
  },
64
64
  "optionalDependencies": {
65
- "supports-color": "7.2.0"
65
+ "supports-color": "8.1.1"
66
66
  }
67
67
  }