ghost 5.16.2 → 5.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/components/tryghost-adapter-manager-5.17.1.tgz +0 -0
  2. package/components/tryghost-api-framework-5.17.1.tgz +0 -0
  3. package/components/tryghost-api-version-compatibility-service-5.17.1.tgz +0 -0
  4. package/components/tryghost-bootstrap-socket-5.17.1.tgz +0 -0
  5. package/components/tryghost-constants-5.17.1.tgz +0 -0
  6. package/components/{tryghost-custom-theme-settings-service-5.16.2.tgz → tryghost-custom-theme-settings-service-5.17.1.tgz} +0 -0
  7. package/components/tryghost-domain-events-5.17.1.tgz +0 -0
  8. package/components/tryghost-email-analytics-provider-mailgun-5.17.1.tgz +0 -0
  9. package/components/{tryghost-email-analytics-service-5.16.2.tgz → tryghost-email-analytics-service-5.17.1.tgz} +0 -0
  10. package/components/tryghost-email-content-generator-5.17.1.tgz +0 -0
  11. package/components/tryghost-express-dynamic-redirects-5.17.1.tgz +0 -0
  12. package/components/tryghost-extract-api-key-5.17.1.tgz +0 -0
  13. package/components/tryghost-html-to-plaintext-5.17.1.tgz +0 -0
  14. package/components/tryghost-job-manager-5.17.1.tgz +0 -0
  15. package/components/tryghost-link-redirects-5.17.1.tgz +0 -0
  16. package/components/{tryghost-link-replacer-5.16.2.tgz → tryghost-link-replacer-5.17.1.tgz} +0 -0
  17. package/components/tryghost-link-tracking-5.17.1.tgz +0 -0
  18. package/components/tryghost-magic-link-5.17.1.tgz +0 -0
  19. package/components/tryghost-mailgun-client-5.17.1.tgz +0 -0
  20. package/components/tryghost-member-analytics-service-5.17.1.tgz +0 -0
  21. package/components/tryghost-member-attribution-5.17.1.tgz +0 -0
  22. package/components/tryghost-member-events-5.17.1.tgz +0 -0
  23. package/components/{tryghost-members-analytics-ingress-5.16.2.tgz → tryghost-members-analytics-ingress-5.17.1.tgz} +0 -0
  24. package/components/tryghost-members-api-5.17.1.tgz +0 -0
  25. package/components/tryghost-members-csv-5.17.1.tgz +0 -0
  26. package/components/tryghost-members-events-service-5.17.1.tgz +0 -0
  27. package/components/tryghost-members-importer-5.17.1.tgz +0 -0
  28. package/components/{tryghost-members-offers-5.16.2.tgz → tryghost-members-offers-5.17.1.tgz} +0 -0
  29. package/components/{tryghost-members-payments-5.16.2.tgz → tryghost-members-payments-5.17.1.tgz} +0 -0
  30. package/components/tryghost-members-ssr-5.17.1.tgz +0 -0
  31. package/components/tryghost-members-stripe-service-5.17.1.tgz +0 -0
  32. package/components/tryghost-minifier-5.17.1.tgz +0 -0
  33. package/components/tryghost-mw-api-version-mismatch-5.17.1.tgz +0 -0
  34. package/components/tryghost-mw-cache-control-5.17.1.tgz +0 -0
  35. package/components/tryghost-mw-error-handler-5.17.1.tgz +0 -0
  36. package/components/tryghost-mw-session-from-token-5.17.1.tgz +0 -0
  37. package/components/{tryghost-mw-update-user-last-seen-5.16.2.tgz → tryghost-mw-update-user-last-seen-5.17.1.tgz} +0 -0
  38. package/components/{tryghost-mw-vhost-5.16.2.tgz → tryghost-mw-vhost-5.17.1.tgz} +0 -0
  39. package/components/{tryghost-oembed-service-5.16.2.tgz → tryghost-oembed-service-5.17.1.tgz} +0 -0
  40. package/components/{tryghost-package-json-5.16.2.tgz → tryghost-package-json-5.17.1.tgz} +0 -0
  41. package/components/tryghost-referrers-5.17.1.tgz +0 -0
  42. package/components/{tryghost-security-5.16.2.tgz → tryghost-security-5.17.1.tgz} +0 -0
  43. package/components/tryghost-session-service-5.17.1.tgz +0 -0
  44. package/components/tryghost-settings-path-manager-5.17.1.tgz +0 -0
  45. package/components/{tryghost-staff-service-5.16.2.tgz → tryghost-staff-service-5.17.1.tgz} +0 -0
  46. package/components/tryghost-stats-service-5.17.1.tgz +0 -0
  47. package/components/tryghost-update-check-service-5.17.1.tgz +0 -0
  48. package/components/{tryghost-verification-trigger-5.16.2.tgz → tryghost-verification-trigger-5.17.1.tgz} +0 -0
  49. package/components/{tryghost-version-notifications-data-service-5.16.2.tgz → tryghost-version-notifications-data-service-5.17.1.tgz} +0 -0
  50. package/core/built/admin/assets/{chunk.143.4e48bf4e6c3d13258bb1.js → chunk.143.a252ca5afc89e52c049a.js} +6 -6
  51. package/core/built/admin/assets/{chunk.174.e1e89637eab79fdd5c5d.js → chunk.174.37fefc669899f0fd0064.js} +153 -153
  52. package/core/built/admin/assets/{chunk.178.9c6e85adf674bd785cf1.js → chunk.178.23e9f243eba5320fe15b.js} +4 -4
  53. package/core/built/admin/assets/{chunk.579.d14c3688558f34afeb3e.js → chunk.579.a9bccec4d650a7be727a.js} +142 -88
  54. package/core/built/admin/assets/{chunk.579.d14c3688558f34afeb3e.js.LICENSE.txt → chunk.579.a9bccec4d650a7be727a.js.LICENSE.txt} +0 -0
  55. package/core/built/admin/assets/ghost-597fb8e8b1b91dd0ac4d9f2d75bd67fb.css +1 -0
  56. package/core/built/admin/assets/ghost-dark-e4ccecd9903d35d360d71fe859cbb3bf.css +1 -0
  57. package/core/built/admin/assets/{ghost-5064a384fad1061ca77a8604e479da90.js → ghost-fa7772f8aa2522b3935efed71fa75619.js} +390 -342
  58. package/core/built/admin/assets/vendor-325e038b8609f0979f6578cae7a87f9e.js +13270 -0
  59. package/core/built/admin/index.html +6 -6
  60. package/core/frontend/helpers/ghost_head.js +1 -1
  61. package/core/frontend/src/member-attribution/member-attribution.js +14 -14
  62. package/core/frontend/web/middleware/error-handler.js +3 -1
  63. package/core/frontend/web/site.js +9 -9
  64. package/core/server/api/endpoints/pages.js +1 -1
  65. package/core/server/api/endpoints/posts.js +1 -1
  66. package/core/server/api/endpoints/utils/serializers/input/pages.js +1 -1
  67. package/core/server/api/endpoints/utils/serializers/input/posts.js +2 -2
  68. package/core/server/api/endpoints/utils/serializers/output/mappers/activity-feed-events.js +23 -0
  69. package/core/server/api/endpoints/utils/serializers/output/mappers/posts.js +12 -0
  70. package/core/server/api/endpoints/utils/serializers/output/members.js +20 -3
  71. package/core/server/api/endpoints/utils/validators/input/pages.js +5 -1
  72. package/core/server/api/endpoints/utils/validators/input/posts.js +5 -1
  73. package/core/server/data/exporter/table-lists.js +2 -2
  74. package/core/server/data/migrations/utils/tables.js +1 -1
  75. package/core/server/data/migrations/versions/5.16/2022-09-19-09-04-add-link-redirects-table.js +9 -10
  76. package/core/server/data/migrations/versions/5.16/2022-09-19-09-05-add-members-link-click-events-table.js +9 -8
  77. package/core/server/data/migrations/versions/5.17/2022-09-27-13-53-remove-click-tracking-tables.js +28 -0
  78. package/core/server/data/migrations/versions/5.17/2022-09-27-13-55-add-redirects-table.js +10 -0
  79. package/core/server/data/migrations/versions/5.17/2022-09-27-13-56-add-members-click-events-table.js +8 -0
  80. package/core/server/data/migrations/versions/5.17/2022-09-27-16-49-set-track-clicks-based-on-opens.js +31 -0
  81. package/core/server/data/migrations/versions/5.17/2022-09-29-12-39-add-track-clicks-column-to-emails.js +7 -0
  82. package/core/server/data/schema/schema.js +4 -3
  83. package/core/server/models/email.js +1 -0
  84. package/core/server/models/{member-link-click-event.js → member-click-event.js} +6 -6
  85. package/core/server/models/member.js +22 -0
  86. package/core/server/models/post.js +6 -6
  87. package/core/server/models/{link-redirect.js → redirect.js} +7 -7
  88. package/core/server/services/api-version-compatibility/index.js +6 -1
  89. package/core/server/services/link-redirection/index.js +1 -1
  90. package/core/server/services/link-tracking/LinkClickRepository.js +2 -2
  91. package/core/server/services/link-tracking/index.js +4 -4
  92. package/core/server/services/mega/mega.js +1 -0
  93. package/core/server/services/mega/post-email-serializer.js +17 -28
  94. package/core/server/services/member-attribution/index.js +2 -1
  95. package/core/server/services/members/api.js +1 -1
  96. package/core/server/web/api/endpoints/content/app.js +5 -2
  97. package/core/server/web/well-known.js +5 -1
  98. package/core/shared/config/defaults.json +14 -2
  99. package/core/shared/labs.js +2 -2
  100. package/package.json +106 -105
  101. package/yarn.lock +311 -299
  102. package/components/tryghost-adapter-manager-5.16.2.tgz +0 -0
  103. package/components/tryghost-api-framework-5.16.2.tgz +0 -0
  104. package/components/tryghost-api-version-compatibility-service-5.16.2.tgz +0 -0
  105. package/components/tryghost-bootstrap-socket-5.16.2.tgz +0 -0
  106. package/components/tryghost-constants-5.16.2.tgz +0 -0
  107. package/components/tryghost-domain-events-5.16.2.tgz +0 -0
  108. package/components/tryghost-email-analytics-provider-mailgun-5.16.2.tgz +0 -0
  109. package/components/tryghost-email-content-generator-5.16.2.tgz +0 -0
  110. package/components/tryghost-express-dynamic-redirects-5.16.2.tgz +0 -0
  111. package/components/tryghost-extract-api-key-5.16.2.tgz +0 -0
  112. package/components/tryghost-html-to-plaintext-5.16.2.tgz +0 -0
  113. package/components/tryghost-job-manager-5.16.2.tgz +0 -0
  114. package/components/tryghost-link-redirects-5.16.2.tgz +0 -0
  115. package/components/tryghost-link-tracking-5.16.2.tgz +0 -0
  116. package/components/tryghost-magic-link-5.16.2.tgz +0 -0
  117. package/components/tryghost-mailgun-client-5.16.2.tgz +0 -0
  118. package/components/tryghost-member-analytics-service-5.16.2.tgz +0 -0
  119. package/components/tryghost-member-attribution-5.16.2.tgz +0 -0
  120. package/components/tryghost-member-events-5.16.2.tgz +0 -0
  121. package/components/tryghost-members-api-5.16.2.tgz +0 -0
  122. package/components/tryghost-members-csv-5.16.2.tgz +0 -0
  123. package/components/tryghost-members-events-service-5.16.2.tgz +0 -0
  124. package/components/tryghost-members-importer-5.16.2.tgz +0 -0
  125. package/components/tryghost-members-ssr-5.16.2.tgz +0 -0
  126. package/components/tryghost-members-stripe-service-5.16.2.tgz +0 -0
  127. package/components/tryghost-minifier-5.16.2.tgz +0 -0
  128. package/components/tryghost-mw-api-version-mismatch-5.16.2.tgz +0 -0
  129. package/components/tryghost-mw-cache-control-5.16.2.tgz +0 -0
  130. package/components/tryghost-mw-error-handler-5.16.2.tgz +0 -0
  131. package/components/tryghost-mw-session-from-token-5.16.2.tgz +0 -0
  132. package/components/tryghost-referrers-5.16.2.tgz +0 -0
  133. package/components/tryghost-session-service-5.16.2.tgz +0 -0
  134. package/components/tryghost-settings-path-manager-5.16.2.tgz +0 -0
  135. package/components/tryghost-stats-service-5.16.2.tgz +0 -0
  136. package/components/tryghost-update-check-service-5.16.2.tgz +0 -0
  137. package/core/built/admin/assets/ghost-6491d134c450ca676911ea17e16cd7d4.css +0 -1
  138. package/core/built/admin/assets/ghost-dark-297ab2fcf4cadd1c950b84089a38c5e2.css +0 -1
  139. package/core/built/admin/assets/vendor-b2375e2f383cbc3fd73340c4b656c993.js +0 -13654
@@ -1,211 +1,211 @@
1
- "use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[174],{38285:(t,e,n)=>{n.d(e,{ro:()=>g,lb:()=>m})
2
- var i=n(33867),a=n(88521),s=n(16140),r=n(30180),o=n(8142),c=n(48206)
1
+ "use strict";(globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[174],{38285:(t,e,i)=>{i.d(e,{ro:()=>g,lb:()=>m})
2
+ var n=i(33867),a=i(88521),s=i(16140),r=i(30180),o=i(8142),c=i(48206)
3
3
  function _(){var t=(0,c.x1)()
4
- if(t){var e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}var d=n(27448),p=n(21535)
4
+ if(t){var e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}var d=i(27448),p=i(21535)
5
5
  function l(){var t=this.getScope()
6
6
  if(t){var e=t.getSpan()
7
- if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function u(t,e,n){if(!(0,c.zu)(e))return t.sampled=!1,t
8
- if(void 0!==t.sampled)return t.setMetadata({transactionSampling:{method:"explicitly_set",rate:Number(t.sampled)}}),t
9
- let i
10
- return"function"==typeof e.tracesSampler?(i=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(i)}})):void 0!==n.parentSampled?(i=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(i=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(i)}})),r=i,((0,s.i2)(r)||"number"!=typeof r&&"boolean"!=typeof r?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),0):!(r<0||r>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),0))?i?(t.sampled=Math.random()<i,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)
11
- var r}function h(t,e){var n=this.getClient(),i=n&&n.getOptions()||{}
7
+ if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function u(t,e,i){if(!(0,c.zu)(e))return t.sampled=!1,t
8
+ if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t
9
+ let n
10
+ return"function"==typeof e.tracesSampler?(n=e.tracesSampler(i),t.setMetadata({sampleRate:Number(n)})):void 0!==i.parentSampled?n=i.parentSampled:(n=e.tracesSampleRate,t.setMetadata({sampleRate:Number(n)})),r=n,((0,s.i2)(r)||"number"!=typeof r&&"boolean"!=typeof r?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),0):!(r<0||r>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),0))?n?(t.sampled=Math.random()<n,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)
11
+ var r}function h(t,e){var i=this.getClient(),n=i&&i.getOptions()||{}
12
12
  let a=new p.Y(t,this)
13
- return a=u(a,i,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(i._experiments&&i._experiments.maxSpans),a}function m(t,e,n,i,a,s){var r=t.getClient(),o=r&&r.getOptions()||{}
14
- let c=new d.io(e,t,n,i,a)
15
- return c=u(c,o,{parentSampled:e.parentSampled,transactionContext:e,...s}),c.sampled&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),c}function g(){var e;(e=(0,i.cu)()).__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=h),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=l)),(0,r.KV)()&&function(){var e=(0,i.cu)()
16
- if(e.__SENTRY__){var n={mongodb:()=>new((0,r.l$)(t,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,r.l$)(t,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,r.l$)(t,"./integrations/node/mysql").Mysql),pg:()=>new((0,r.l$)(t,"./integrations/node/postgres").Postgres)},a=Object.keys(n).filter((t=>!!(0,r.$y)(t))).map((t=>{try{return n[t]()}catch(t){return}})).filter((t=>t))
17
- a.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...a])}}(),(0,o.o)("error",_),(0,o.o)("unhandledrejection",_)}t=n.hmd(t)},27448:(t,e,n)=>{n.d(e,{io:()=>d,mg:()=>c,nT:()=>o})
18
- var i=n(88468),a=n(88521),s=n(20484),r=n(21535),o=1e3,c=3e4
19
- class _ extends s.gB{constructor(t,e,n,i){super(i),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,i._I)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class d extends r.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
20
- super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=i,this._onScope=s,d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),d.prototype.__init4.call(this),s&&(p(e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i._I)()
13
+ return a=u(a,n,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(n._experiments&&n._experiments.maxSpans),a}function m(t,e,i,n,a,s){var r=t.getClient(),o=r&&r.getOptions()||{}
14
+ let c=new d.io(e,t,i,n,a)
15
+ return c=u(c,o,{parentSampled:e.parentSampled,transactionContext:e,...s}),c.sampled&&c.initSpanRecorder(o._experiments&&o._experiments.maxSpans),c}function g(){var e;(e=(0,n.cu)()).__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=h),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=l)),(0,r.KV)()&&function(){var e=(0,n.cu)()
16
+ if(e.__SENTRY__){var i={mongodb:()=>new((0,r.l$)(t,"./integrations/node/mongo").Mongo),mongoose:()=>new((0,r.l$)(t,"./integrations/node/mongo").Mongo)({mongoose:!0}),mysql:()=>new((0,r.l$)(t,"./integrations/node/mysql").Mysql),pg:()=>new((0,r.l$)(t,"./integrations/node/postgres").Postgres)},a=Object.keys(i).filter((t=>!!(0,r.$y)(t))).map((t=>{try{return i[t]()}catch(t){return}})).filter((t=>t))
17
+ a.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...a])}}(),(0,o.o)("error",_),(0,o.o)("unhandledrejection",_)}t=i.hmd(t)},27448:(t,e,i)=>{i.d(e,{io:()=>d,mg:()=>c,nT:()=>o})
18
+ var n=i(88468),a=i(88521),s=i(20484),r=i(21535),o=1e3,c=3e4
19
+ class _ extends s.gB{constructor(t,e,i,n){super(n),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=i}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,n._I)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class d extends r.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4]
20
+ super(t,e),this._idleHub=e,this._idleTimeout=i,this._finalTimeout=n,this._onScope=s,d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),d.prototype.__init4.call(this),s&&(p(e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n._I)()
21
21
  if(this._finished=!0,this.activities={},this.spanRecorder){for(var e of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op),this._beforeFinishCallbacks))e(this,t)
22
22
  this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0
23
23
  e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)))
24
- var n=e.startTimestamp<t
25
- return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] No active IdleTransaction")
26
- return this._onScope&&p(this._idleHub),super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){this.spanRecorder||(this.spanRecorder=new _((t=>{this._finished||this._pushActivity(t)}),(t=>{this._finished||this._popActivity(t)}),this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(t){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(t)}),this._idleTimeout)}_pushActivity(t){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=(0,i._I)()+this._idleTimeout/1e3
24
+ var i=e.startTimestamp<t
25
+ return i||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),i})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] No active IdleTransaction")
26
+ return this._onScope&&p(this._idleHub),super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){this.spanRecorder||(this.spanRecorder=new _((t=>{this._finished||this._pushActivity(t)}),(t=>{this._finished||this._popActivity(t)}),this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(t){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(t)}),this._idleTimeout)}_pushActivity(t){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var e=(0,n._I)()+this._idleTimeout/1e3
27
27
  this._startIdleTimeout(e)}}_beat(){if(!this._finished){var t=Object.keys(this.activities).join("")
28
28
  t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),5e3)}}function p(t){var e=t.getScope()
29
- e&&e.getTransaction()&&e.setSpan(void 0)}},43174:(t,e,n)=>{n.r(e),n.d(e,{BROWSER_TRACING_INTEGRATION_ID:()=>st,BrowserTracing:()=>ot,IdleTransaction:()=>G.io,Integrations:()=>i,Span:()=>dt.Dr,SpanStatus:()=>_t,TRACEPARENT_REGEXP:()=>D.K,Transaction:()=>pt.Y,addExtensionMethods:()=>a.ro,defaultRequestInstrumentationOptions:()=>nt,extractTraceparentData:()=>D.q,getActiveTransaction:()=>Y.x1,hasTracingEnabled:()=>Y.zu,instrumentOutgoingRequests:()=>it,spanStatusfromHttpCode:()=>dt.Zd,startIdleTransaction:()=>a.lb,stripUrlQueryAndFragment:()=>o.rt})
30
- var i={}
31
- n.r(i),n.d(i,{Apollo:()=>x,BrowserTracing:()=>ot,Express:()=>d,GraphQL:()=>R,Mongo:()=>S,Mysql:()=>T,Postgres:()=>f,Prisma:()=>y})
32
- var a=n(38285),s=n(2796),r=n(88521),o=n(72702),c=n(14205),_=n(16140)
29
+ e&&e.getTransaction()&&e.setSpan(void 0)}},43174:(t,e,i)=>{i.r(e),i.d(e,{BROWSER_TRACING_INTEGRATION_ID:()=>st,BrowserTracing:()=>ot,IdleTransaction:()=>G.io,Integrations:()=>n,Span:()=>dt.Dr,SpanStatus:()=>_t,TRACEPARENT_REGEXP:()=>D.K,Transaction:()=>pt.Y,addExtensionMethods:()=>a.ro,defaultRequestInstrumentationOptions:()=>it,extractTraceparentData:()=>D.q,getActiveTransaction:()=>Y.x1,hasTracingEnabled:()=>Y.zu,instrumentOutgoingRequests:()=>nt,spanStatusfromHttpCode:()=>dt.Zd,startIdleTransaction:()=>a.lb,stripUrlQueryAndFragment:()=>o.rt})
30
+ var n={}
31
+ i.r(n),i.d(n,{Apollo:()=>x,BrowserTracing:()=>ot,Express:()=>d,GraphQL:()=>R,Mongo:()=>y,Mysql:()=>T,Postgres:()=>f,Prisma:()=>S})
32
+ var a=i(38285),s=i(2796),r=i(88521),o=i(72702),c=i(14205),_=i(16140)
33
33
  class d{static __initStatic(){this.id="Express"}__init(){this.name=d.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
34
34
  d.prototype.__init.call(this),this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(){this._router?(function(t){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((e=>u(t,e)))}(this._router,this._methods),function(t){var e="settings"in t
35
35
  e&&void 0===t._router&&t.lazyrouter&&t.lazyrouter()
36
- var n=e?t._router:t
37
- if(!n)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Routing instrumentation is currently only supported in Express 4."))
38
- var i=Object.getPrototypeOf(n),a=i.process_params
39
- i.process_params=function(t,e,n,i,r){n._reconstructedRoute||(n._reconstructedRoute="")
40
- const{layerRoutePath:d,isRegex:p,isArray:l,numExtraSegments:u}=function(t){var e=(0,s.x)([t,"access",t=>t.route,"optionalAccess",t=>t.path]),n=(0,_.Kj)(e),i=Array.isArray(e)
41
- if(!e)return{isRegex:n,isArray:i,numExtraSegments:0}
42
- var a=i?Math.max(e.reduce(((t,e)=>t+(0,o.$A)(e.toString())),0)-(0,o.$A)(t.path||""),0):0
43
- return{layerRoutePath:h(i,e),isRegex:n,isArray:i,numExtraSegments:a}}(t)
36
+ var i=e?t._router:t
37
+ if(!i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.debug("Routing instrumentation is currently only supported in Express 4."))
38
+ var n=Object.getPrototypeOf(i),a=n.process_params
39
+ n.process_params=function(t,e,i,n,r){i._reconstructedRoute||(i._reconstructedRoute="")
40
+ const{layerRoutePath:d,isRegex:p,isArray:l,numExtraSegments:u}=function(t){var e=(0,s.x)([t,"access",t=>t.route,"optionalAccess",t=>t.path]),i=(0,_.Kj)(e),n=Array.isArray(e)
41
+ if(!e)return{isRegex:i,isArray:n,numExtraSegments:0}
42
+ var a=n?Math.max(e.reduce(((t,e)=>t+(0,o.$A)(e.toString())),0)-(0,o.$A)(t.path||""),0):0
43
+ return{layerRoutePath:h(n,e),isRegex:i,isArray:n,numExtraSegments:a}}(t)
44
44
  var m=(d||t.path||"").split("/").filter((t=>t.length>0&&(p||l||!t.includes("*")))).join("/")
45
- if(m&&m.length>0&&(n._reconstructedRoute+=`/${m}${p?"/":""}`),(0,o.$A)(n.originalUrl||"")+u===(0,o.$A)(n._reconstructedRoute)){var g=i.__sentry_transaction
46
- if(g&&"custom"!==g.metadata.source){var f=n._reconstructedRoute||"/"
47
- g.setName(...(0,c.oA)(n,{path:!0,method:!0,customRoute:f}))}}return a.call(this,t,e,n,i,r)}}(this._router)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("ExpressIntegration is missing an Express instance")}}function p(t,e){var n=t.length
48
- switch(n){case 2:return function(n,i){var a=i.__sentry_transaction
45
+ if(m&&m.length>0&&(i._reconstructedRoute+=`/${m}${p?"/":""}`),(0,o.$A)(i.originalUrl||"")+u===(0,o.$A)(i._reconstructedRoute)){var g=n.__sentry_transaction
46
+ if(g&&"custom"!==g.metadata.source){var f=i._reconstructedRoute||"/"
47
+ g.setName(...(0,c.oA)(i,{path:!0,method:!0,customRoute:f}))}}return a.call(this,t,e,i,n,r)}}(this._router)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("ExpressIntegration is missing an Express instance")}}function p(t,e){var i=t.length
48
+ switch(i){case 2:return function(i,n){var a=n.__sentry_transaction
49
49
  if(a){var s=a.startChild({description:t.name,op:`express.middleware.${e}`})
50
- i.once("finish",(()=>{s.finish()}))}return t.call(this,n,i)}
51
- case 3:return function(n,i,a){var r=i.__sentry_transaction,o=(0,s.x)([r,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`express.middleware.${e}`})])
52
- t.call(this,n,i,(function(){(0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()])
53
- for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n]
50
+ n.once("finish",(()=>{s.finish()}))}return t.call(this,i,n)}
51
+ case 3:return function(i,n,a){var r=n.__sentry_transaction,o=(0,s.x)([r,"optionalAccess",t=>t.startChild,"call",i=>i({description:t.name,op:`express.middleware.${e}`})])
52
+ t.call(this,i,n,(function(){(0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()])
53
+ for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i]
54
54
  a.call(this,...e)}))}
55
- case 4:return function(n,i,a,r){var o=a.__sentry_transaction,c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`express.middleware.${e}`})])
56
- t.call(this,n,i,a,(function(){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()])
57
- for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n]
55
+ case 4:return function(i,n,a,r){var o=a.__sentry_transaction,c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",i=>i({description:t.name,op:`express.middleware.${e}`})])
56
+ t.call(this,i,n,a,(function(){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()])
57
+ for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i]
58
58
  r.call(this,...e)}))}
59
- default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}function l(t,e){return t.map((t=>"function"==typeof t?p(t,e):Array.isArray(t)?t.map((t=>"function"==typeof t?p(t,e):t)):t))}function u(t,e){var n=t[e]
60
- return t[e]=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a]
61
- return n.call(this,...l(i,e))},t}function h(t,e){return t?e.map((t=>t.toString())).join(","):e&&e.toString()}d.__initStatic()
62
- var m=n(30180),g=n(15834)
59
+ default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${i}`)}}function l(t,e){return t.map((t=>"function"==typeof t?p(t,e):Array.isArray(t)?t.map((t=>"function"==typeof t?p(t,e):t)):t))}function u(t,e){var i=t[e]
60
+ return t[e]=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a]
61
+ return i.call(this,...l(n,e))},t}function h(t,e){return t?e.map((t=>t.toString())).join(","):e&&e.toString()}d.__initStatic()
62
+ var m=i(30180),g=i(15834)
63
63
  class f{static __initStatic(){this.id="Postgres"}__init(){this.name=f.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
64
- f.prototype.__init.call(this),this._usePgNative=!!t.usePgNative}setupOnce(t,e){var n=(0,m.$y)("pg")
65
- if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to require `pg` package."))
66
- if(this._usePgNative&&!(0,s.x)([n,"access",t=>t.native,"optionalAccess",t=>t.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to access 'pg-native' bindings."))
67
- const{Client:i}=this._usePgNative?n.native:n;(0,g.hl)(i.prototype,"query",(function(t){return function(n,i,a){var r=e().getScope(),o=(0,s.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.text,op:"db"})])
68
- if("function"==typeof a)return t.call(this,n,i,(function(t,e){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),a(t,e)}))
69
- if("function"==typeof i)return t.call(this,n,(function(t,e){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e)}))
70
- var d=void 0!==i?t.call(this,n,i):t.call(this,n)
64
+ f.prototype.__init.call(this),this._usePgNative=!!t.usePgNative}setupOnce(t,e){var i=(0,m.$y)("pg")
65
+ if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to require `pg` package."))
66
+ if(this._usePgNative&&!(0,s.x)([i,"access",t=>t.native,"optionalAccess",t=>t.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Postgres Integration was unable to access 'pg-native' bindings."))
67
+ const{Client:n}=this._usePgNative?i.native:i;(0,g.hl)(n.prototype,"query",(function(t){return function(i,n,a){var r=e().getScope(),o=(0,s.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof i?i:i.text,op:"db"})])
68
+ if("function"==typeof a)return t.call(this,i,n,(function(t,e){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),a(t,e)}))
69
+ if("function"==typeof n)return t.call(this,i,(function(t,e){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),n(t,e)}))
70
+ var d=void 0!==n?t.call(this,i,n):t.call(this,i)
71
71
  return(0,_.J8)(d)?d.then((t=>((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)}}))}}f.__initStatic()
72
- class T{constructor(){T.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=T.id}setupOnce(t,e){var n=(0,m.$y)("mysql/lib/Connection.js")
73
- n?(0,g.hl)(n,"createQuery",(function(t){return function(n,i,a){var r=e().getScope(),o=(0,s.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.sql,op:"db"})])
74
- return"function"==typeof a?t.call(this,n,i,(function(t,e,n){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),a(t,e,n)})):"function"==typeof i?t.call(this,n,(function(t,e,n){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e,n)})):t.call(this,n,i,a)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Mysql Integration was unable to require `mysql` package.")}}T.__initStatic()
72
+ class T{constructor(){T.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=T.id}setupOnce(t,e){var i=(0,m.$y)("mysql/lib/Connection.js")
73
+ i?(0,g.hl)(i,"createQuery",(function(t){return function(i,n,a){var r=e().getScope(),o=(0,s.x)([r,"optionalAccess",t=>t.getSpan,"call",t=>t()]),c=(0,s.x)([o,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof i?i:i.sql,op:"db"})])
74
+ return"function"==typeof a?t.call(this,i,n,(function(t,e,i){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),a(t,e,i)})):"function"==typeof n?t.call(this,i,(function(t,e,i){(0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),n(t,e,i)})):t.call(this,i,n,a)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Mysql Integration was unable to require `mysql` package.")}}T.__initStatic()
75
75
  var v=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],E={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]}
76
- class S{static __initStatic(){this.id="Mongo"}__init(){this.name=S.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
77
- S.prototype.__init.call(this),this._operations=Array.isArray(t.operations)?t.operations:v,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}setupOnce(t,e){var n=this._useMongoose?"mongoose":"mongodb",i=(0,m.$y)(n)
78
- i?this._instrumentOperations(i.Collection,this._operations,e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`Mongo Integration was unable to require \`${n}\` package.`)}_instrumentOperations(t,e,n){e.forEach((e=>this._patchOperation(t,e,n)))}_patchOperation(t,e,n){if(e in t.prototype){var i=this._getSpanContextFromOperationArguments.bind(this);(0,g.hl)(t.prototype,e,(function(t){return function(){for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o]
79
- var c=r[r.length-1],d=n().getScope(),p=(0,s.x)([d,"optionalAccess",t=>t.getSpan,"call",t=>t()])
80
- if("function"!=typeof c||"mapReduce"===e&&2===r.length){var l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(i(this,e,r))]),u=t.call(this,...r)
81
- return(0,_.J8)(u)?u.then((t=>((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),u)}return l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(i(this,e,r.slice(0,-1)))]),t.call(this,...r.slice(0,-1),(function(t,e){(0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),c(t,e)}))}}))}}_getSpanContextFromOperationArguments(t,e,n){var i={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},a={op:"db",description:e,data:i},s=E[e],r=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations
76
+ class y{static __initStatic(){this.id="Mongo"}__init(){this.name=y.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
77
+ y.prototype.__init.call(this),this._operations=Array.isArray(t.operations)?t.operations:v,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}setupOnce(t,e){var i=this._useMongoose?"mongoose":"mongodb",n=(0,m.$y)(i)
78
+ n?this._instrumentOperations(n.Collection,this._operations,e):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`Mongo Integration was unable to require \`${i}\` package.`)}_instrumentOperations(t,e,i){e.forEach((e=>this._patchOperation(t,e,i)))}_patchOperation(t,e,i){if(e in t.prototype){var n=this._getSpanContextFromOperationArguments.bind(this);(0,g.hl)(t.prototype,e,(function(t){return function(){for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o]
79
+ var c=r[r.length-1],d=i().getScope(),p=(0,s.x)([d,"optionalAccess",t=>t.getSpan,"call",t=>t()])
80
+ if("function"!=typeof c||"mapReduce"===e&&2===r.length){var l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(n(this,e,r))]),u=t.call(this,...r)
81
+ return(0,_.J8)(u)?u.then((t=>((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),u)}return l=(0,s.x)([p,"optionalAccess",t=>t.startChild,"call",t=>t(n(this,e,r.slice(0,-1)))]),t.call(this,...r.slice(0,-1),(function(t,e){(0,s.x)([l,"optionalAccess",t=>t.finish,"call",t=>t()]),c(t,e)}))}}))}}_getSpanContextFromOperationArguments(t,e,i){var n={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},a={op:"db",description:e,data:n},s=E[e],r=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations
82
82
  if(!s||!r)return a
83
- try{if("mapReduce"===e){const[t,e]=n
84
- i[s[0]]="string"==typeof t?t:t.name||"<anonymous>",i[s[1]]="string"==typeof e?e:e.name||"<anonymous>"}else for(let t=0;t<s.length;t++)i[s[t]]=JSON.stringify(n[t])}catch(t){}return a}}S.__initStatic()
85
- class y{static __initStatic(){this.id="Prisma"}__init(){this.name=y.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
83
+ try{if("mapReduce"===e){const[t,e]=i
84
+ n[s[0]]="string"==typeof t?t:t.name||"<anonymous>",n[s[1]]="string"==typeof e?e:e.name||"<anonymous>"}else for(let t=0;t<s.length;t++)n[s[t]]=JSON.stringify(i[t])}catch(t){}return a}}y.__initStatic()
85
+ class S{static __initStatic(){this.id="Prisma"}__init(){this.name=S.id}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
86
86
  var e
87
- y.prototype.__init.call(this),(e=t.client)&&e.$use?this._client=t.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(t.client)}`)}setupOnce(t,e){this._client?this._client.$use(((t,n)=>{var i=e().getScope(),a=(0,s.x)([i,"optionalAccess",t=>t.getSpan,"call",t=>t()]),r=t.action,o=t.model,c=(0,s.x)([a,"optionalAccess",t=>t.startChild,"call",t=>t({description:o?`${o} ${r}`:r,op:"db.prisma"})]),d=n(t)
88
- return(0,_.J8)(d)?d.then((t=>((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}y.__initStatic()
89
- class R{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=R.id}setupOnce(t,e){var n=(0,m.$y)("graphql/execution/execute.js")
90
- n?(0,g.hl)(n,"execute",(function(t){return function(){var n=e().getScope(),i=(0,s.x)([n,"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=(0,s.x)([i,"optionalAccess",t=>t.startChild,"call",t=>t({description:"execute",op:"db.graphql"})]);(0,s.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(a)])
87
+ S.prototype.__init.call(this),(e=t.client)&&e.$use?this._client=t.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(t.client)}`)}setupOnce(t,e){this._client?this._client.$use(((t,i)=>{var n=e().getScope(),a=(0,s.x)([n,"optionalAccess",t=>t.getSpan,"call",t=>t()]),r=t.action,o=t.model,c=(0,s.x)([a,"optionalAccess",t=>t.startChild,"call",t=>t({description:o?`${o} ${r}`:r,op:"db.prisma"})]),d=i(t)
88
+ return(0,_.J8)(d)?d.then((t=>((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([c,"optionalAccess",t=>t.finish,"call",t=>t()]),d)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}S.__initStatic()
89
+ class R{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=R.id}setupOnce(t,e){var i=(0,m.$y)("graphql/execution/execute.js")
90
+ i?(0,g.hl)(i,"execute",(function(t){return function(){var i=e().getScope(),n=(0,s.x)([i,"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=(0,s.x)([n,"optionalAccess",t=>t.startChild,"call",t=>t({description:"execute",op:"db.graphql"})]);(0,s.x)([i,"optionalAccess",t=>t.setSpan,"call",t=>t(a)])
91
91
  for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c]
92
92
  var d=t.call(this,...o)
93
- return(0,_.J8)(d)?d.then((t=>((0,s.x)([a,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,s.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),t))):((0,s.x)([a,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,s.x)([n,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),d)}})):r.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}R.__initStatic()
94
- var b=n(7209)
95
- class x{constructor(){x.prototype.__init.call(this)}static __initStatic(){this.id="Apollo"}__init(){this.name=x.id}setupOnce(t,e){var n=(0,m.$y)("apollo-server-core")
96
- n?(0,g.hl)(n.ApolloServerBase.prototype,"constructSchema",(function(t){return function(){var n=(0,b.lE)(this.config.resolvers)
97
- return this.config.resolvers=n.map((t=>(Object.keys(t).forEach((n=>{Object.keys(t[n]).forEach((i=>{"function"==typeof t[n][i]&&function(t,e,n,i){(0,g.hl)(t[e],n,(function(t){return function(){for(var a=i().getScope(),r=(0,s.x)([a,"optionalAccess",t=>t.getSpan,"call",t=>t()]),o=(0,s.x)([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:`${e}.${n}`,op:"db.graphql.apollo"})]),c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p]
93
+ return(0,_.J8)(d)?d.then((t=>((0,s.x)([a,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,s.x)([i,"optionalAccess",t=>t.setSpan,"call",t=>t(n)]),t))):((0,s.x)([a,"optionalAccess",t=>t.finish,"call",t=>t()]),(0,s.x)([i,"optionalAccess",t=>t.setSpan,"call",t=>t(n)]),d)}})):r.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}R.__initStatic()
94
+ var b=i(7209)
95
+ class x{constructor(){x.prototype.__init.call(this)}static __initStatic(){this.id="Apollo"}__init(){this.name=x.id}setupOnce(t,e){var i=(0,m.$y)("apollo-server-core")
96
+ i?(0,g.hl)(i.ApolloServerBase.prototype,"constructSchema",(function(t){return function(){var i=(0,b.lE)(this.config.resolvers)
97
+ return this.config.resolvers=i.map((t=>(Object.keys(t).forEach((i=>{Object.keys(t[i]).forEach((n=>{"function"==typeof t[i][n]&&function(t,e,i,n){(0,g.hl)(t[e],i,(function(t){return function(){for(var a=n().getScope(),r=(0,s.x)([a,"optionalAccess",t=>t.getSpan,"call",t=>t()]),o=(0,s.x)([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:`${e}.${i}`,op:"db.graphql.apollo"})]),c=arguments.length,d=new Array(c),p=0;p<c;p++)d[p]=arguments[p]
98
98
  var l=t.call(this,...d)
99
- return(0,_.J8)(l)?l.then((t=>((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),l)}}))}(t,n,i,e)}))})),t))),t.call(this)}})):r.kg.error("Apollo Integration was unable to require apollo-server-core package.")}}x.__initStatic()
100
- var D=n(75492),N=n(22850),k=n(66627),B=n(68256),G=n(27448),Y=n(48206),U=(0,k.R)(),A=n(4549),I=n(88468),C=(t,e,n)=>{let i
101
- return a=>{e.value>=0&&(a||n)&&(e.delta=e.value-(i||0),(e.delta||void 0===i)&&(i=e.value,t(e)))}},O=(t,e)=>({name:t,value:(0,A.h)(e,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),w=(t,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return
102
- var n=new PerformanceObserver((t=>t.getEntries().map(e)))
103
- return n.observe({type:t,buffered:!0}),n}}catch(t){}},$=(t,e)=>{var n=i=>{"pagehide"!==i.type&&"hidden"!==(0,k.R)().document.visibilityState||(t(i),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))}
104
- addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)}
99
+ return(0,_.J8)(l)?l.then((t=>((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):((0,s.x)([o,"optionalAccess",t=>t.finish,"call",t=>t()]),l)}}))}(t,i,n,e)}))})),t))),t.call(this)}})):r.kg.error("Apollo Integration was unable to require apollo-server-core package.")}}x.__initStatic()
100
+ var D=i(75492),N=i(22850),B=i(66627),k=i(68256),G=i(27448),Y=i(48206),U=(0,B.R)(),A=i(4549),I=i(88468),C=(t,e,i)=>{let n
101
+ return a=>{e.value>=0&&(a||i)&&(e.delta=e.value-(n||0),(e.delta||void 0===n)&&(n=e.value,t(e)))}},O=(t,e)=>({name:t,value:(0,A.h)(e,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),w=(t,e)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return
102
+ var i=new PerformanceObserver((t=>t.getEntries().map(e)))
103
+ return i.observe({type:t,buffered:!0}),i}}catch(t){}},$=(t,e)=>{var i=n=>{"pagehide"!==n.type&&"hidden"!==(0,B.R)().document.visibilityState||(t(n),e&&(removeEventListener("visibilitychange",i,!0),removeEventListener("pagehide",i,!0)))}
104
+ addEventListener("visibilitychange",i,!0),addEventListener("pagehide",i,!0)}
105
105
  let M=-1
106
- var L=()=>(M<0&&(M="hidden"===(0,k.R)().document.visibilityState?0:1/0,$((t=>{let{timeStamp:e}=t
106
+ var L=()=>(M<0&&(M="hidden"===(0,B.R)().document.visibilityState?0:1/0,$((t=>{let{timeStamp:e}=t
107
107
  M=e}),!0)),{get firstHiddenTime(){return M}}),q={}
108
- function P(t){return"number"==typeof t&&isFinite(t)}function H(t,e){let{startTimestamp:n,...i}=e
109
- return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild({startTimestamp:n,...i})}var z=(0,k.R)()
108
+ function P(t){return"number"==typeof t&&isFinite(t)}function H(t,e){let{startTimestamp:i,...n}=e
109
+ return i&&t.startTimestamp>i&&(t.startTimestamp=i),t.startChild({startTimestamp:i,...n})}var z=(0,B.R)()
110
110
  function F(){return z&&z.addEventListener&&z.performance}let j,X,J=0,W={}
111
- function Q(){((t,e)=>{var n=O("CLS",0)
112
- let i,a=0,s=[]
111
+ function Q(){((t,e)=>{var i=O("CLS",0)
112
+ let n,a=0,s=[]
113
113
  var o=t=>{if(t&&!t.hadRecentInput){var e=s[0],r=s[s.length-1]
114
- a&&0!==s.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(a+=t.value,s.push(t)):(a=t.value,s=[t]),a>n.value&&(n.value=a,n.entries=s,i&&i())}},c=w("layout-shift",o)
115
- c&&(i=C((t=>{var e=t.entries.pop()
116
- e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS"),W.cls={value:t.value,unit:""},X=e)}),n,void 0),$((()=>{c.takeRecords().map(o),i(!0)})))})()}function Z(t){((t,e)=>{var n=L(),i=O("LCP")
114
+ a&&0!==s.length&&t.startTime-r.startTime<1e3&&t.startTime-e.startTime<5e3?(a+=t.value,s.push(t)):(a=t.value,s=[t]),a>i.value&&(i.value=a,i.entries=s,n&&n())}},c=w("layout-shift",o)
115
+ c&&(n=C((t=>{var e=t.entries.pop()
116
+ e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS"),W.cls={value:t.value,unit:""},X=e)}),i,void 0),$((()=>{c.takeRecords().map(o),n(!0)})))})()}function Z(t){((t,e)=>{var i=L(),n=O("LCP")
117
117
  let a
118
118
  var s=t=>{var e=t.startTime
119
- e<n.firstHiddenTime&&(i.value=e,i.entries.push(t)),a&&a()},o=w("largest-contentful-paint",s)
119
+ e<i.firstHiddenTime&&(n.value=e,n.entries.push(t)),a&&a()},o=w("largest-contentful-paint",s)
120
120
  if(o){a=C((t=>{var e=t.entries.pop()
121
- e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP"),W.lcp={value:t.value,unit:"millisecond"},j=e)}),i,e)
122
- var c=()=>{q[i.id]||(o.takeRecords().map(s),o.disconnect(),q[i.id]=!0,a(!0))};["keydown","click"].forEach((t=>{addEventListener(t,c,{once:!0,capture:!0})})),$(c,!0)}})(0,t)}function K(){((t,e)=>{var n=L(),i=O("FID")
121
+ e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP"),W.lcp={value:t.value,unit:"millisecond"},j=e)}),n,e)
122
+ var c=()=>{q[n.id]||(o.takeRecords().map(s),o.disconnect(),q[n.id]=!0,a(!0))};["keydown","click"].forEach((t=>{addEventListener(t,c,{once:!0,capture:!0})})),$(c,!0)}})(0,t)}function K(){((t,e)=>{var i=L(),n=O("FID")
123
123
  let a
124
- var s=t=>{a&&t.startTime<n.firstHiddenTime&&(i.value=t.processingStart-t.startTime,i.entries.push(t),a(!0))},o=w("first-input",s)
124
+ var s=t=>{a&&t.startTime<i.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entries.push(t),a(!0))},o=w("first-input",s)
125
125
  o&&(a=C((t=>{var e=t.entries.pop()
126
- if(e){var n=(0,Y.XL)(I.Z1),i=(0,Y.XL)(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FID"),W.fid={value:t.value,unit:"millisecond"},W["mark.fid"]={value:n+i,unit:"second"}}}),i,void 0),$((()=>{o.takeRecords().map(s),o.disconnect()}),!0))})()}function V(t,e,n,i,a,s){var r=s?e[s]:e[`${n}End`],o=e[`${n}Start`]
127
- o&&r&&H(t,{op:"browser",description:(0,A.h)(a,(()=>n)),startTimestamp:i+(0,Y.XL)(o),endTimestamp:i+(0,Y.XL)(r)})}var tt=n(98902),et=n(8142),nt={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]}
128
- function it(t){const{traceFetch:e,traceXHR:n,tracingOrigins:i,shouldCreateSpanForRequest:a}={...nt,...t}
126
+ if(e){var i=(0,Y.XL)(I.Z1),n=(0,Y.XL)(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FID"),W.fid={value:t.value,unit:"millisecond"},W["mark.fid"]={value:i+n,unit:"second"}}}),n,void 0),$((()=>{o.takeRecords().map(s),o.disconnect()}),!0))})()}function V(t,e,i,n,a,s){var r=s?e[s]:e[`${i}End`],o=e[`${i}Start`]
127
+ o&&r&&H(t,{op:"browser",description:(0,A.h)(a,(()=>i)),startTimestamp:n+(0,Y.XL)(o),endTimestamp:n+(0,Y.XL)(r)})}var tt=i(98902),et=i(8142),it={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]}
128
+ function nt(t){const{traceFetch:e,traceXHR:i,tracingOrigins:n,shouldCreateSpanForRequest:a}={...it,...t}
129
129
  var s={},r=t=>{if(s[t])return s[t]
130
- var e=i
130
+ var e=n
131
131
  return s[t]=e.some((e=>(0,tt.zC)(t,e)))&&!(0,tt.zC)(t,"sentry_key"),s[t]}
132
132
  let o=r
133
133
  "function"==typeof a&&(o=t=>r(t)&&a(t))
134
134
  var c={}
135
- e&&(0,et.o)("fetch",(t=>{!function(t,e,n){if((0,Y.zu)()&&t.fetchData&&e(t.fetchData.url))if(t.endTimestamp){var i=t.fetchData.__span
136
- if(!i)return;(s=n[i])&&(t.response?s.setHttpStatus(t.response.status):t.error&&s.setStatus("internal_error"),s.finish(),delete n[i])}else{var a=(0,Y.x1)()
135
+ e&&(0,et.o)("fetch",(t=>{!function(t,e,i){if((0,Y.zu)()&&t.fetchData&&e(t.fetchData.url))if(t.endTimestamp){var n=t.fetchData.__span
136
+ if(!n)return;(s=i[n])&&(t.response?s.setHttpStatus(t.response.status):t.error&&s.setStatus("internal_error"),s.finish(),delete i[n])}else{var a=(0,Y.x1)()
137
137
  if(a){var s=a.startChild({data:{...t.fetchData,type:"fetch"},description:`${t.fetchData.method} ${t.fetchData.url}`,op:"http.client"})
138
- t.fetchData.__span=s.spanId,n[s.spanId]=s
138
+ t.fetchData.__span=s.spanId,i[s.spanId]=s
139
139
  var r=t.args[0]
140
140
  t.args[1]=t.args[1]||{}
141
141
  var o=t.args[1]
142
- o.headers=function(t,e,n,i){var a=(0,N.IQ)(e),s=n.toTraceparent(),r="undefined"!=typeof Request&&(0,_.V9)(t,Request)?t.headers:i.headers
142
+ o.headers=function(t,e,i,n){var a=(0,N.IQ)(e),s=i.toTraceparent(),r="undefined"!=typeof Request&&(0,_.V9)(t,Request)?t.headers:n.headers
143
143
  if(r){if("undefined"!=typeof Headers&&(0,_.V9)(r,Headers))return(o=new Headers(r)).append("sentry-trace",s),a&&o.append(N.bU,a),o
144
144
  if(Array.isArray(r)){var o=[...r,["sentry-trace",s]]
145
145
  return a&&o.push([N.bU,a]),o}var c="baggage"in r?r.baggage:void 0,d=[]
146
- return Array.isArray(c)?d.push(...c):c&&d.push(c),a&&d.push(a),{...r,"sentry-trace":s,baggage:d.length>0?d.join(","):void 0}}return{"sentry-trace":s,baggage:a}}(r,a.getDynamicSamplingContext(),s,o),a.metadata.propagations+=1}}}(t,o,c)})),n&&(0,et.o)("xhr",(t=>{!function(t,e,n){if(!(!(0,Y.zu)()||t.xhr&&t.xhr.__sentry_own_request__)&&t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)){var i=t.xhr.__sentry_xhr__
146
+ return Array.isArray(c)?d.push(...c):c&&d.push(c),a&&d.push(a),{...r,"sentry-trace":s,baggage:d.length>0?d.join(","):void 0}}return{"sentry-trace":s,baggage:a}}(r,a.getDynamicSamplingContext(),s,o),a.metadata.propagations+=1}}}(t,o,c)})),i&&(0,et.o)("xhr",(t=>{!function(t,e,i){if(!(!(0,Y.zu)()||t.xhr&&t.xhr.__sentry_own_request__)&&t.xhr&&t.xhr.__sentry_xhr__&&e(t.xhr.__sentry_xhr__.url)){var n=t.xhr.__sentry_xhr__
147
147
  if(t.endTimestamp){var a=t.xhr.__sentry_xhr_span_id__
148
- if(!a)return;(r=n[a])&&(r.setHttpStatus(i.status_code),r.finish(),delete n[a])}else{var s=(0,Y.x1)()
149
- if(s){var r=s.startChild({data:{...i.data,type:"xhr",method:i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client"})
150
- if(t.xhr.__sentry_xhr_span_id__=r.spanId,n[t.xhr.__sentry_xhr_span_id__]=r,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",r.toTraceparent())
148
+ if(!a)return;(r=i[a])&&(r.setHttpStatus(n.status_code),r.finish(),delete i[a])}else{var s=(0,Y.x1)()
149
+ if(s){var r=s.startChild({data:{...n.data,type:"xhr",method:n.method,url:n.url},description:`${n.method} ${n.url}`,op:"http.client"})
150
+ if(t.xhr.__sentry_xhr_span_id__=r.spanId,i[t.xhr.__sentry_xhr_span_id__]=r,t.xhr.setRequestHeader)try{t.xhr.setRequestHeader("sentry-trace",r.toTraceparent())
151
151
  var o=s.getDynamicSamplingContext(),c=(0,N.IQ)(o)
152
- c&&t.xhr.setRequestHeader(N.bU,c),s.metadata.propagations+=1}catch(t){}}}}}(t,o,c)}))}var at=(0,k.R)(),st="BrowserTracing",rt={idleTimeout:G.nT,finalTimeout:G.mg,markBackgroundTransactions:!0,routingInstrumentation:function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]
152
+ c&&t.xhr.setRequestHeader(N.bU,c),s.metadata.propagations+=1}catch(t){}}}}}(t,o,c)}))}var at=(0,B.R)(),st="BrowserTracing",rt={idleTimeout:G.nT,finalTimeout:G.mg,markBackgroundTransactions:!0,routingInstrumentation:function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]
153
153
  if(!at||!at.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not initialize routing instrumentation due to invalid location"))
154
- let i,a=at.location.href
155
- e&&(i=t({name:at.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,et.o)("history",(e=>{let{to:n,from:s}=e
156
- void 0===s&&a&&-1!==a.indexOf(n)?a=void 0:s!==n&&(a=void 0,i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=t({name:at.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0},...nt}
154
+ let n,a=at.location.href
155
+ e&&(n=t({name:at.location.pathname,op:"pageload",metadata:{source:"url"}})),i&&(0,et.o)("history",(e=>{let{to:i,from:s}=e
156
+ void 0===s&&a&&-1!==a.indexOf(i)?a=void 0:s!==i&&(a=void 0,n&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing current transaction with op: ${n.op}`),n.finish()),n=t({name:at.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0},...it}
157
157
  class ot{__init(){this.name=st}constructor(t){ot.prototype.__init.call(this)
158
- let e=nt.tracingOrigins
158
+ let e=it.tracingOrigins
159
159
  t&&(t.tracingOrigins&&Array.isArray(t.tracingOrigins)?e=t.tracingOrigins:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...rt,...t,tracingOrigins:e}
160
- const{_metricOptions:n}=this.options
160
+ const{_metricOptions:i}=this.options
161
161
  !function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
162
162
  var e=F()
163
- e&&I.Z1&&(e.mark&&z.performance.mark("sentry-tracing-init"),Q(),Z(t),K())}(n&&n._reportAllChanges),(0,s.x)([this,"access",t=>t.options,"access",t=>t._experiments,"optionalAccess",t=>t.enableLongTask])&&w("longtask",(t=>{var e=(0,Y.x1)()
164
- if(e){var n=(0,Y.XL)(I.Z1+t.startTime),i=(0,Y.XL)(t.duration)
165
- e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+i})}}))}setupOnce(t,e){this._getCurrentHub=e,this._emitOptionsWarning&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] We added a reasonable default for you: ${nt.tracingOrigins}`))
166
- const{routingInstrumentation:n,startTransactionOnLocationChange:i,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:o,traceXHR:c,tracingOrigins:_,shouldCreateSpanForRequest:d}=this.options
167
- n((t=>this._createRouteTransaction(t)),a,i),s&&(U&&U.document?U.document.addEventListener("visibilitychange",(()=>{var t=(0,Y.x1)()
168
- U.document.hidden&&t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Transaction: cancelled -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus("cancelled"),t.setTag("visibilitychange","document.hidden"),t.finish())})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),it({traceFetch:o,traceXHR:c,tracingOrigins:_,shouldCreateSpanForRequest:d})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`))
169
- const{beforeNavigate:e,idleTimeout:n,finalTimeout:i}=this.options
163
+ e&&I.Z1&&(e.mark&&z.performance.mark("sentry-tracing-init"),Q(),Z(t),K())}(i&&i._reportAllChanges),(0,s.x)([this,"access",t=>t.options,"access",t=>t._experiments,"optionalAccess",t=>t.enableLongTask])&&w("longtask",(t=>{var e=(0,Y.x1)()
164
+ if(e){var i=(0,Y.XL)(I.Z1+t.startTime),n=(0,Y.XL)(t.duration)
165
+ e.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:i,endTimestamp:i+n})}}))}setupOnce(t,e){this._getCurrentHub=e,this._emitOptionsWarning&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] We added a reasonable default for you: ${it.tracingOrigins}`))
166
+ const{routingInstrumentation:i,startTransactionOnLocationChange:n,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:o,traceXHR:c,tracingOrigins:_,shouldCreateSpanForRequest:d}=this.options
167
+ i((t=>this._createRouteTransaction(t)),a,n),s&&(U&&U.document?U.document.addEventListener("visibilitychange",(()=>{var t=(0,Y.x1)()
168
+ U.document.hidden&&t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Transaction: cancelled -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus("cancelled"),t.setTag("visibilitychange","document.hidden"),t.finish())})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),nt({traceFetch:o,traceXHR:c,tracingOrigins:_,shouldCreateSpanForRequest:d})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`))
169
+ const{beforeNavigate:e,idleTimeout:i,finalTimeout:n}=this.options
170
170
  var s="pageload"===t.op,o=s?ct("sentry-trace"):null,c=s?ct("baggage"):null,_=o?(0,D.q)(o):void 0,d=c?(0,N.EN)(c):void 0,p={...t,..._,metadata:{...t.metadata,dynamicSamplingContext:_&&!d?{}:d},trimEnd:!0},l="function"==typeof e?e(p):p,u=void 0===l?{...p,sampled:!1}:l
171
171
  u.metadata=u.name!==p.name?{...u.metadata,source:"custom"}:u.metadata,!1===u.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Starting ${u.op} transaction on scope`)
172
172
  var h=this._getCurrentHub()
173
- const{location:m}=(0,k.R)()
174
- var g=(0,a.lb)(h,u,n,i,!0,{location:m})
173
+ const{location:m}=(0,B.R)()
174
+ var g=(0,a.lb)(h,u,i,n,!0,{location:m})
175
175
  return g.registerBeforeFinishCallback((t=>{(function(t){var e=F()
176
176
  if(!e||!z.performance.getEntries||!I.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Adding & adjusting spans using Performance API")
177
- var n=(0,Y.XL)(I.Z1),i=e.getEntries()
177
+ var i=(0,Y.XL)(I.Z1),n=e.getEntries()
178
178
  let a,s
179
- if(i.slice(J).forEach((e=>{var i=(0,Y.XL)(e.startTime),o=(0,Y.XL)(e.duration)
180
- if(!("navigation"===t.op&&n+i<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((i=>{V(t,e,i,n)})),V(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),V(t,e,"fetch",n,"cache","domainLookupStart"),V(t,e,"domainLookup",n,"DNS"),function(t,e,n){H(t,{op:"browser",description:"request",startTimestamp:n+(0,Y.XL)(e.requestStart),endTimestamp:n+(0,Y.XL)(e.responseEnd)}),H(t,{op:"browser",description:"response",startTimestamp:n+(0,Y.XL)(e.responseStart),endTimestamp:n+(0,Y.XL)(e.responseEnd)})}(t,e,n)}(t,e,n),a=n+(0,Y.XL)(e.responseStart),s=n+(0,Y.XL)(e.requestStart)
179
+ if(n.slice(J).forEach((e=>{var n=(0,Y.XL)(e.startTime),o=(0,Y.XL)(e.duration)
180
+ if(!("navigation"===t.op&&i+n<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,i){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((n=>{V(t,e,n,i)})),V(t,e,"secureConnection",i,"TLS/SSL","connectEnd"),V(t,e,"fetch",i,"cache","domainLookupStart"),V(t,e,"domainLookup",i,"DNS"),function(t,e,i){H(t,{op:"browser",description:"request",startTimestamp:i+(0,Y.XL)(e.requestStart),endTimestamp:i+(0,Y.XL)(e.responseEnd)}),H(t,{op:"browser",description:"response",startTimestamp:i+(0,Y.XL)(e.responseStart),endTimestamp:i+(0,Y.XL)(e.responseEnd)})}(t,e,i)}(t,e,i),a=i+(0,Y.XL)(e.responseStart),s=i+(0,Y.XL)(e.requestStart)
181
181
  break
182
- case"mark":case"paint":case"measure":!function(t,e,n,i,a){var s=a+n,r=s+i
183
- H(t,{description:e.name,endTimestamp:r,op:e.entryType,startTimestamp:s})}(t,e,i,o,n)
182
+ case"mark":case"paint":case"measure":!function(t,e,i,n,a){var s=a+i,r=s+n
183
+ H(t,{description:e.name,endTimestamp:r,op:e.entryType,startTimestamp:s})}(t,e,n,o,i)
184
184
  var c=L(),_=e.startTime<c.firstHiddenTime
185
185
  "first-paint"===e.name&&_&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FP"),W.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&_&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding FCP"),W.fcp={value:e.startTime,unit:"millisecond"})
186
186
  break
187
187
  case"resource":var d=e.name.replace(z.location.origin,"")
188
- !function(t,e,n,i,a,s){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var r={}
188
+ !function(t,e,i,n,a,s){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var r={}
189
189
  "transferSize"in e&&(r["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(r["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(r["Decoded Body Size"]=e.decodedBodySize)
190
- var o=s+i
191
- H(t,{description:n,endTimestamp:o+a,op:e.initiatorType?`resource.${e.initiatorType}`:"resource",startTimestamp:o,data:r})}}(t,e,d,i,o,n)}})),J=Math.max(i.length-1,0),function(t){var e=z.navigator
192
- if(e){var n=e.connection
193
- n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),P(n.rtt)&&(W["connection.rtt"]={value:n.rtt,unit:"millisecond"}),P(n.downlink)&&(W["connection.downlink"]={value:n.downlink,unit:""})),P(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),P(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}}(t),"pageload"===t.op){"number"==typeof a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding TTFB"),W.ttfb={value:1e3*(a-t.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=a&&(W["ttfb.requestTime"]={value:1e3*(a-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(W[e]&&!(n>=t.startTimestamp)){var i=W[e].value,a=n+(0,Y.XL)(i),s=Math.abs(1e3*(a-t.startTimestamp)),o=s-i;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Measurements] Normalized ${e} from ${i} to ${s} (${o})`),W[e].value=s}}))
190
+ var o=s+n
191
+ H(t,{description:i,endTimestamp:o+a,op:e.initiatorType?`resource.${e.initiatorType}`:"resource",startTimestamp:o,data:r})}}(t,e,d,n,o,i)}})),J=Math.max(n.length-1,0),function(t){var e=z.navigator
192
+ if(e){var i=e.connection
193
+ i&&(i.effectiveType&&t.setTag("effectiveConnectionType",i.effectiveType),i.type&&t.setTag("connectionType",i.type),P(i.rtt)&&(W["connection.rtt"]={value:i.rtt,unit:"millisecond"})),P(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),P(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}}(t),"pageload"===t.op){"number"==typeof a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding TTFB"),W.ttfb={value:1e3*(a-t.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=a&&(W["ttfb.requestTime"]={value:1e3*(a-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(W[e]&&!(i>=t.startTimestamp)){var n=W[e].value,a=i+(0,Y.XL)(n),s=Math.abs(1e3*(a-t.startTimestamp)),o=s-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Measurements] Normalized ${e} from ${n} to ${s} (${o})`),W[e].value=s}}))
194
194
  var o=W["mark.fid"]
195
- o&&W.fid&&(H(t,{description:"first input delay",endTimestamp:o.value+(0,Y.XL)(W.fid.value),op:"web.vitals",startTimestamp:o.value}),delete W["mark.fid"]),"fcp"in W||delete W.cls,Object.keys(W).forEach((e=>{t.setMeasurement(e,W[e].value,W[e].unit)})),function(t){j&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP Data"),j.element&&t.setTag("lcp.element",(0,B.Rt)(j.element)),j.id&&t.setTag("lcp.id",j.id),j.url&&t.setTag("lcp.url",j.url.trim().slice(0,200)),t.setTag("lcp.size",j.size)),X&&X.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS Data"),X.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,(0,B.Rt)(e.node)))))}(t)}j=void 0,X=void 0,W={}})(t),t.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),g}}function ct(t){var e=(0,B.qT)(`meta[name=${t}]`)
196
- return e?e.getAttribute("content"):null}var _t,dt=n(20484)
195
+ o&&W.fid&&(H(t,{description:"first input delay",endTimestamp:o.value+(0,Y.XL)(W.fid.value),op:"web.vitals",startTimestamp:o.value}),delete W["mark.fid"]),"fcp"in W||delete W.cls,Object.keys(W).forEach((e=>{t.setMeasurement(e,W[e].value,W[e].unit)})),function(t){j&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding LCP Data"),j.element&&t.setTag("lcp.element",(0,k.Rt)(j.element)),j.id&&t.setTag("lcp.id",j.id),j.url&&t.setTag("lcp.url",j.url.trim().slice(0,200)),t.setTag("lcp.size",j.size)),X&&X.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding CLS Data"),X.sources.forEach(((e,i)=>t.setTag(`cls.source.${i+1}`,(0,k.Rt)(e.node)))))}(t)}j=void 0,X=void 0,W={}})(t),t.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),g}}function ct(t){var e=(0,k.qT)(`meta[name=${t}]`)
196
+ return e?e.getAttribute("content"):null}var _t,dt=i(20484)
197
197
  !function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(_t||(_t={}))
198
- var pt=n(21535);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,a.ro)()},20484:(t,e,n)=>{n.d(e,{Dr:()=>_,Zd:()=>d,gB:()=>c})
199
- var i=n(4549),a=n(7209),s=n(88468),r=n(88521),o=n(15834)
198
+ var pt=i(21535);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,a.ro)()},20484:(t,e,i)=>{i.d(e,{Dr:()=>_,Zd:()=>d,gB:()=>c})
199
+ var n=i(4549),a=i(7209),s=i(88468),r=i(88521),o=i(15834)
200
200
  class c{__init(){this.spans=[]}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3
201
201
  c.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class _{__init2(){this.traceId=(0,a.DM)()}__init3(){this.spanId=(0,a.DM)().substring(16)}__init4(){this.startTimestamp=(0,s._I)()}__init5(){this.tags={}}__init6(){this.data={}}constructor(t){if(_.prototype.__init2.call(this),_.prototype.__init3.call(this),_.prototype.__init4.call(this),_.prototype.__init5.call(this),_.prototype.__init6.call(this),!t)return this
202
202
  t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}startChild(t){var e=new _({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId})
203
- if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){var n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`
204
- e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},r.kg.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t))
203
+ if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){var i=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`
204
+ e.transaction.metadata.spanMetadata[e.spanId]={logMessage:i},r.kg.log(i)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t))
205
205
  var e=d(t)
206
206
  return"unknown_error"!==e&&this.setStatus(e),this}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId]
207
207
  t&&r.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:(0,s._I)()}toTraceparent(){let t=""
208
- return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,o.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=(0,i.h)(t.data,(()=>({}))),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=(0,i.h)(t.spanId,(()=>this.spanId)),this.startTimestamp=(0,i.h)(t.startTimestamp,(()=>this.startTimestamp)),this.status=t.status,this.tags=(0,i.h)(t.tags,(()=>({}))),this.traceId=(0,i.h)(t.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function d(t){if(t<400&&t>=100)return"ok"
208
+ return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,o.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=(0,n.h)(t.data,(()=>({}))),this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=(0,n.h)(t.spanId,(()=>this.spanId)),this.startTimestamp=(0,n.h)(t.startTimestamp,(()=>this.startTimestamp)),this.status=t.status,this.tags=(0,n.h)(t.tags,(()=>({}))),this.traceId=(0,n.h)(t.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,o.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function d(t){if(t<400&&t>=100)return"ok"
209
209
  if(t>=400&&t<500)switch(t){case 401:return"unauthenticated"
210
210
  case 403:return"permission_denied"
211
211
  case 404:return"not_found"
@@ -215,30 +215,30 @@ case 429:return"resource_exhausted"
215
215
  default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented"
216
216
  case 503:return"unavailable"
217
217
  case 504:return"deadline_exceeded"
218
- default:return"internal_error"}return"unknown_error"}},21535:(t,e,n)=>{n.d(e,{Y:()=>_})
219
- var i=n(4549),a=n(33867),s=n(88468),r=n(88521),o=n(15834),c=n(20484)
218
+ default:return"internal_error"}return"unknown_error"}},21535:(t,e,i)=>{i.d(e,{Y:()=>_})
219
+ var n=i(4549),a=i(33867),s=i(88468),r=i(88521),o=i(15834),c=i(20484)
220
220
  class _ extends c.Dr{__init(){this._measurements={}}__init2(){this._frozenDynamicSamplingContext=void 0}constructor(t,e){super(t),_.prototype.__init.call(this),_.prototype.__init2.call(this),this._hub=e||(0,a.Gd)(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{},changes:[],propagations:0},this._trimEnd=t.trimEnd,this.transaction=this
221
- var n=this.metadata.dynamicSamplingContext
222
- n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom"
221
+ var i=this.metadata.dynamicSamplingContext
222
+ i&&(this._frozenDynamicSamplingContext={...i})}get name(){return this._name}set name(t){this.setName(t)}setName(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom"
223
223
  t===this.name&&e===this.metadata.source||this.metadata.changes.push({source:this.metadata.source,timestamp:(0,s.ph)(),propagations:this.metadata.propagations}),this._name=t,this.metadata.source=e}initSpanRecorder(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3
224
- this.spanRecorder||(this.spanRecorder=new c.gB(t)),this.spanRecorder.add(this)}setMeasurement(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
225
- this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t),!0===this.sampled){var e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[]
224
+ this.spanRecorder||(this.spanRecorder=new c.gB(t)),this.spanRecorder.add(this)}setMeasurement(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:""
225
+ this._measurements[t]={value:e,unit:i}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t),!0===this.sampled){var e=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[]
226
226
  this._trimEnd&&e.length>0&&(this.endTimestamp=e.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp)
227
- var n=this.metadata,i={contexts:{trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,dynamicSamplingContext:this.getDynamicSamplingContext()},...n.source&&{transaction_info:{source:n.source,changes:n.changes,propagations:n.propagations}}}
228
- return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")
227
+ var i=this.metadata,n={contexts:{trace:this.getTraceContext()},spans:e,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source,changes:i.changes,propagations:i.propagations}}}
228
+ return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),n.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(n)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.")
229
229
  var a=this._hub.getClient()
230
230
  a&&a.recordDroppedEvent("sample_rate","transaction")}}toContext(){var t=super.toContext()
231
- return(0,o.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=(0,i.h)(t.name,(()=>"")),this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext
231
+ return(0,o.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=(0,n.h)(t.name,(()=>"")),this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext
232
232
  var t=this._hub||(0,a.Gd)(),e=t&&t.getClient()
233
233
  if(!e)return{}
234
- const{environment:n,release:i}=e.getOptions()||{},{publicKey:s}=e.getDsn()||{}
235
- var r=(this.metadata.transactionSampling||{}).rate,c=void 0!==r?r.toString():void 0,_=t.getScope()
234
+ const{environment:i,release:n}=e.getOptions()||{},{publicKey:s}=e.getDsn()||{}
235
+ var r=this.metadata.sampleRate,c=void 0!==r?r.toString():void 0,_=t.getScope()
236
236
  const{segment:d}=_&&_.getUser()||{}
237
237
  var p=this.metadata.source,l=p&&"url"!==p?this.name:void 0
238
- return(0,o.Jr)({environment:n,release:i,transaction:l,user_segment:d,public_key:s,trace_id:this.traceId,sample_rate:c})}}},48206:(t,e,n)=>{n.d(e,{XL:()=>r,x1:()=>s,zu:()=>a})
239
- var i=n(33867)
240
- function a(t){var e=(0,i.Gd)().getClient(),n=t||e&&e.getOptions()
241
- return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function s(t){var e=(t||(0,i.Gd)()).getScope()
242
- return e&&e.getTransaction()}function r(t){return t/1e3}},4549:(t,e,n)=>{function i(t,e){return null!=t?t:e()}n.d(e,{h:()=>i})}}])
238
+ return(0,o.Jr)({environment:i,release:n,transaction:l,user_segment:d,public_key:s,trace_id:this.traceId,sample_rate:c})}}},48206:(t,e,i)=>{i.d(e,{XL:()=>r,x1:()=>s,zu:()=>a})
239
+ var n=i(33867)
240
+ function a(t){var e=(0,n.Gd)().getClient(),i=t||e&&e.getOptions()
241
+ return!!i&&("tracesSampleRate"in i||"tracesSampler"in i)}function s(t){var e=(t||(0,n.Gd)()).getScope()
242
+ return e&&e.getTransaction()}function r(t){return t/1e3}},4549:(t,e,i)=>{function n(t,e){return null!=t?t:e()}i.d(e,{h:()=>n})}}])
243
243
 
244
- //# sourceMappingURL=chunk.174.e1e89637eab79fdd5c5d.map
244
+ //# sourceMappingURL=chunk.174.37fefc669899f0fd0064.map
@@ -1,11 +1,11 @@
1
- var __ember_auto_import__;(()=>{var r={52051:function(r,e){window._eai_r=require,window._eai_d=define},11520:r=>{r.exports=function(){_eai_d
1
+ var __ember_auto_import__;(()=>{var r={41851:function(r,e){window._eai_r=require,window._eai_d=define},82797:r=>{r.exports=function(){_eai_d
2
2
  var r=_eai_r
3
3
  window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))}}()}},e={}
4
4
  function t(_){var o=e[_]
5
5
  if(void 0!==o)return o.exports
6
6
  var i=e[_]={exports:{}}
7
- return r[_].call(i.exports,i,i.exports,t),i.exports}t(52051)
8
- var _=t(11520)
7
+ return r[_].call(i.exports,i,i.exports,t),i.exports}t(41851)
8
+ var _=t(82797)
9
9
  __ember_auto_import__=_})()
10
10
 
11
- //# sourceMappingURL=chunk.178.9c6e85adf674bd785cf1.map
11
+ //# sourceMappingURL=chunk.178.23e9f243eba5320fe15b.map