@nylas/react 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/abstract-provider-efe136bd-2041bdce.js +187 -0
  2. package/dist/abstract-provider-efe136bd-b4663c02.cjs +1 -0
  3. package/dist/add-circle-icon_2.entry-5204c48a.cjs +1 -0
  4. package/dist/add-circle-icon_2.entry-ea1692a4.js +26 -0
  5. package/dist/archive-icon.entry-0b585dff.js +16 -0
  6. package/dist/archive-icon.entry-c2c66bca.cjs +1 -0
  7. package/dist/{arrow-icon.entry-9414299f.js → arrow-icon.entry-2e61394e.js} +5 -5
  8. package/dist/arrow-icon.entry-9d471162.cjs +1 -0
  9. package/dist/{bold-icon.entry-c781e9c1.cjs → bold-icon.entry-5c37622f.cjs} +1 -1
  10. package/dist/{bold-icon.entry-b72aed9f.js → bold-icon.entry-8ef1b653.js} +2 -2
  11. package/dist/{button-component_2.entry-73f76545.cjs → button-component_2.entry-8335ee1e.cjs} +1 -1
  12. package/dist/{button-component_2.entry-36e49459.js → button-component_2.entry-c906230f.js} +9 -9
  13. package/dist/calendar-agenda-fill-icon_36.entry-59c0a997.cjs +6 -0
  14. package/dist/{calendar-agenda-fill-icon_36.entry-efa7ad26.js → calendar-agenda-fill-icon_36.entry-5f184433.js} +900 -881
  15. package/dist/{calendar-cancel-icon.entry-01c388eb.cjs → calendar-cancel-icon.entry-65a4a34e.cjs} +1 -1
  16. package/dist/{calendar-cancel-icon.entry-0f739a8a.js → calendar-cancel-icon.entry-dd6ac4db.js} +5 -5
  17. package/dist/{calendar-check-icon_2.entry-5febbadf.cjs → calendar-check-icon_2.entry-ded15038.cjs} +1 -1
  18. package/dist/{calendar-check-icon_2.entry-dfb0036d.js → calendar-check-icon_2.entry-f9b50bb8.js} +3 -3
  19. package/dist/{calendar-icon.entry-f197396d.js → calendar-icon.entry-a2a1ddbc.js} +2 -2
  20. package/dist/{calendar-icon.entry-9743e0b7.cjs → calendar-icon.entry-ca512dd6.cjs} +1 -1
  21. package/dist/checkbox-component_2.entry-d6128246.js +115 -0
  22. package/dist/checkbox-component_2.entry-d79b5d1d.cjs +1 -0
  23. package/dist/checkbox-group_4.entry-2946c7ef.cjs +28 -0
  24. package/dist/{nylas-event-calendar_3.entry-9abd46c2.js → checkbox-group_4.entry-e5145451.js} +1038 -923
  25. package/dist/{checkmark-icon_15.entry-5c09cff5.js → checkmark-icon_15.entry-6e92e93e.js} +19 -19
  26. package/dist/{checkmark-icon_15.entry-35dd97b7.cjs → checkmark-icon_15.entry-a75a1825.cjs} +2 -2
  27. package/dist/{chevron-icon_3.entry-4a72f211.js → chevron-icon_3.entry-6eaa3513.js} +16 -16
  28. package/dist/{chevron-icon_3.entry-e0608b7c.cjs → chevron-icon_3.entry-9193a885.cjs} +1 -1
  29. package/dist/{clock-icon_4.entry-0afe79c2.js → clock-icon_4.entry-2c93270e.js} +8 -8
  30. package/dist/{clock-icon_4.entry-202ce025.cjs → clock-icon_4.entry-ae2272f4.cjs} +1 -1
  31. package/dist/{customParseFormat-d1de5ed0-c0ef002d.js → customParseFormat-edc38d83-b3722499.js} +1 -1
  32. package/dist/{customParseFormat-d1de5ed0-65a0bba3.cjs → customParseFormat-edc38d83-fa9c77d9.cjs} +1 -1
  33. package/dist/{delete-icon.entry-580bfcc9.js → delete-icon.entry-6684eba6.js} +2 -2
  34. package/dist/{delete-icon.entry-762ac892.cjs → delete-icon.entry-b9e4f2c7.cjs} +1 -1
  35. package/dist/{document-refresh-icon.entry-4e0f0c61.cjs → document-refresh-icon.entry-7afe6163.cjs} +1 -1
  36. package/dist/document-refresh-icon.entry-fba9f60b.js +16 -0
  37. package/dist/{feedbackSync-172f942c-42124493.js → feedbackSync-e4378c0b-23289195.js} +811 -798
  38. package/dist/{feedbackSync-172f942c-62f72bd2.cjs → feedbackSync-e4378c0b-7876d067.cjs} +26 -26
  39. package/dist/{folder-icon.entry-54c3cc66.js → folder-icon.entry-430c6b47.js} +4 -4
  40. package/dist/{folder-icon.entry-2694e253.cjs → folder-icon.entry-b1632bf3.cjs} +1 -1
  41. package/dist/{forward-icon.entry-5e540f05.js → forward-icon.entry-5e53da76.js} +2 -2
  42. package/dist/{forward-icon.entry-f07102d8.cjs → forward-icon.entry-7626dcca.cjs} +1 -1
  43. package/dist/{globe-icon_2.entry-aaceb196.js → globe-icon_2.entry-646eae41.js} +20 -20
  44. package/dist/{globe-icon_2.entry-14a4c168.cjs → globe-icon_2.entry-bbb0a6ce.cjs} +1 -1
  45. package/dist/{google-logo-icon_6.entry-00d40db2.js → google-logo-icon_6.entry-5951a546.js} +682 -488
  46. package/dist/google-logo-icon_6.entry-e39dd9cb.cjs +2 -0
  47. package/dist/{google-meet-icon_5.entry-f1f05903.js → google-meet-icon_5.entry-a54c83da.js} +14 -14
  48. package/dist/{google-meet-icon_5.entry-6c20e149.cjs → google-meet-icon_5.entry-c13e0738.cjs} +1 -1
  49. package/dist/inbox-icon.entry-7bee82b3.js +16 -0
  50. package/dist/inbox-icon.entry-911b047a.cjs +1 -0
  51. package/dist/index-71f61ea9.js +24544 -0
  52. package/dist/index-f769bc2a.cjs +118 -0
  53. package/dist/index.d.ts +1 -4
  54. package/dist/index.es-6a9d55cf-122c27e0.js +2724 -0
  55. package/dist/index.es-6a9d55cf-458ba0e0.cjs +7 -0
  56. package/dist/{info-icon_2.entry-bbcefb9a.cjs → info-icon_2.entry-471b836b.cjs} +1 -1
  57. package/dist/{info-icon_2.entry-b3b313ab.js → info-icon_2.entry-6ff2f004.js} +3 -3
  58. package/dist/{input-component.entry-401b9ba5.js → input-component.entry-781b584c.js} +12 -12
  59. package/dist/{input-component.entry-ec8e8e7c.cjs → input-component.entry-b6a9b4cb.cjs} +1 -1
  60. package/dist/{input-dropdown_2.entry-c37f392c.js → input-dropdown_2.entry-1feebcba.js} +3 -3
  61. package/dist/{input-dropdown_2.entry-8cb11601.cjs → input-dropdown_2.entry-c71d14ff.cjs} +1 -1
  62. package/dist/{italic-icon.entry-6675558a.cjs → italic-icon.entry-16debde5.cjs} +1 -1
  63. package/dist/italic-icon.entry-9ef7f4a2.js +16 -0
  64. package/dist/{elements → lib/elements}/index.d.ts +1 -1
  65. package/dist/lib/index.d.ts +5 -0
  66. package/dist/lib/main.d.ts +0 -0
  67. package/dist/lib/notetaker/CalendarSync/CalendarSync.d.ts +37 -0
  68. package/dist/lib/notetaker/CalendarSync/CalendarSync.spec.d.ts +0 -0
  69. package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +31 -0
  70. package/dist/lib/notetaker/SendNotetaker/SendNotetaker.spec.d.ts +1 -0
  71. package/dist/lib/notetaker/Transcript/Transcript.d.ts +23 -0
  72. package/dist/lib/notetaker/Transcript/Transcript.spec.d.ts +0 -0
  73. package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +22 -0
  74. package/dist/lib/notetaker/VideoPlayer/VideoPlayer.spec.d.ts +1 -0
  75. package/dist/lib/notetaker/index.d.ts +9 -0
  76. package/dist/lib/notetaker/lib/constants.d.ts +12 -0
  77. package/dist/lib/notetaker/lib/http-client.d.ts +2 -0
  78. package/dist/lib/notetaker/lib/primitives.d.ts +66 -0
  79. package/dist/lib/notetaker/lib/store.d.ts +7 -0
  80. package/dist/lib/notetaker/types.d.ts +42 -0
  81. package/dist/multi-select-dropdown.entry-0a6f9417.cjs +1 -0
  82. package/dist/multi-select-dropdown.entry-1b27c746.js +121 -0
  83. package/dist/nylas-booked-event-card_11.entry-74fba802.cjs +1 -0
  84. package/dist/{nylas-booked-event-card_12.entry-e7464ae7.js → nylas-booked-event-card_11.entry-802671ee.js} +469 -534
  85. package/dist/{nylas-form-card.entry-cbb00fba.cjs → nylas-form-card.entry-59a837c9.cjs} +1 -1
  86. package/dist/{nylas-form-card.entry-a3186807.js → nylas-form-card.entry-7da9a312.js} +3 -3
  87. package/dist/nylas-notification_2.entry-8f8bad34.cjs +1 -0
  88. package/dist/nylas-notification_2.entry-b16bb805.js +85 -0
  89. package/dist/{nylas-scheduler-editor.entry-7b188a38.js → nylas-scheduler-editor.entry-cbe3e1e3.js} +160 -136
  90. package/dist/nylas-scheduler-editor.entry-e33e11fb.cjs +2 -0
  91. package/dist/nylas-scheduling.entry-4223e50b.cjs +1 -0
  92. package/dist/{nylas-scheduling.entry-e9929b03.js → nylas-scheduling.entry-6fb094a8.js} +295 -295
  93. package/dist/{person-icon.entry-d2856f08.js → person-icon.entry-6232e6fd.js} +7 -7
  94. package/dist/{person-icon.entry-8998fdb8.cjs → person-icon.entry-beb26b48.cjs} +1 -1
  95. package/dist/play-icon.entry-16a1c1ac.js +16 -0
  96. package/dist/{play-icon.entry-99eb969b.cjs → play-icon.entry-9060d0d8.cjs} +1 -1
  97. package/dist/{radio-button-group.entry-bc3b12fd.js → radio-button-group.entry-5a3728cd.js} +2 -2
  98. package/dist/{radio-button-group.entry-d66edd04.cjs → radio-button-group.entry-6935c39d.cjs} +1 -1
  99. package/dist/react.cjs +1 -1
  100. package/dist/react.js +135 -126
  101. package/dist/{refresh-icon.entry-99d1982d.cjs → refresh-icon.entry-2411b2e1.cjs} +1 -1
  102. package/dist/{refresh-icon.entry-d6df8b1c.js → refresh-icon.entry-4f56e72b.js} +2 -2
  103. package/dist/{register-component-62d792d4-448b6a43.js → register-component-a1c3d7b4-774feacc.js} +1 -1
  104. package/dist/{register-component-62d792d4-c6e7d129.cjs → register-component-a1c3d7b4-97d7a6f5.cjs} +1 -1
  105. package/dist/{reply-all-icon.entry-d7c44139.cjs → reply-all-icon.entry-b4b6926b.cjs} +1 -1
  106. package/dist/{reply-all-icon.entry-7ebf01a0.js → reply-all-icon.entry-b4b917ec.js} +2 -2
  107. package/dist/{reply-icon.entry-d1622d85.js → reply-icon.entry-24f6f4c6.js} +5 -5
  108. package/dist/{reply-icon.entry-058c00e8.cjs → reply-icon.entry-454545ed.cjs} +1 -1
  109. package/dist/sent-icon.entry-d9a79336.cjs +1 -0
  110. package/dist/sent-icon.entry-fa59ce85.js +16 -0
  111. package/dist/spam-icon.entry-da39987e.cjs +1 -0
  112. package/dist/spam-icon.entry-fb18a08b.js +16 -0
  113. package/dist/{star-icon.entry-98b80645.js → star-icon.entry-406472c1.js} +4 -4
  114. package/dist/{star-icon.entry-4db13fdb.cjs → star-icon.entry-833f35a7.cjs} +1 -1
  115. package/dist/{stop-icon.entry-0290fd30.js → stop-icon.entry-1b6ae838.js} +2 -2
  116. package/dist/{stop-icon.entry-9d7b53fd.cjs → stop-icon.entry-3258db59.cjs} +1 -1
  117. package/dist/style.css +1 -0
  118. package/dist/test/vitest.setup.d.ts +0 -0
  119. package/dist/{textarea-component.entry-9b474ab5.cjs → textarea-component.entry-0ae18897.cjs} +1 -1
  120. package/dist/{textarea-component.entry-a62c257b.js → textarea-component.entry-569a281e.js} +2 -2
  121. package/dist/{toggle-switch.entry-5dbfcd48.cjs → toggle-switch.entry-60d75f16.cjs} +1 -1
  122. package/dist/{toggle-switch.entry-e423b793.js → toggle-switch.entry-dc3f796b.js} +4 -4
  123. package/dist/{translate-icon.entry-60c55a2e.js → translate-icon.entry-297cf20f.js} +4 -4
  124. package/dist/{translate-icon.entry-f82fa6fc.cjs → translate-icon.entry-c183ecb5.cjs} +1 -1
  125. package/dist/trash-fill-icon.entry-3d8a2e5e.js +16 -0
  126. package/dist/trash-fill-icon.entry-94d4f66c.cjs +1 -0
  127. package/dist/{underline-icon.entry-40028bc6.js → underline-icon.entry-4a9105c7.js} +2 -2
  128. package/dist/{underline-icon.entry-0807a43d.cjs → underline-icon.entry-50d1e766.cjs} +1 -1
  129. package/package.json +41 -17
  130. package/dist/add-circle-icon_2.entry-8a1c55bc.cjs +0 -1
  131. package/dist/add-circle-icon_2.entry-b4bbcfee.js +0 -26
  132. package/dist/archive-icon.entry-a2492cf3.js +0 -16
  133. package/dist/archive-icon.entry-e48d2356.cjs +0 -1
  134. package/dist/arrow-icon.entry-b1ecb2aa.cjs +0 -1
  135. package/dist/calendar-agenda-fill-icon_36.entry-e9b92e0e.cjs +0 -6
  136. package/dist/checkbox-component.entry-1aa5782f.cjs +0 -1
  137. package/dist/checkbox-component.entry-72a6aa72.js +0 -43
  138. package/dist/document-refresh-icon.entry-e500b4e3.js +0 -16
  139. package/dist/google-logo-icon_6.entry-fa76ffe3.cjs +0 -2
  140. package/dist/inbox-icon.entry-9a4628f2.cjs +0 -1
  141. package/dist/inbox-icon.entry-aa78ba8c.js +0 -16
  142. package/dist/index-1e75512f.cjs +0 -57
  143. package/dist/index-e8380973.js +0 -18492
  144. package/dist/index.es-fc8588de-034ead51.cjs +0 -7
  145. package/dist/index.es-fc8588de-c943eef6.js +0 -2908
  146. package/dist/italic-icon.entry-0e85d0d9.js +0 -16
  147. package/dist/multi-select-dropdown_2.entry-3eecf18a.js +0 -193
  148. package/dist/multi-select-dropdown_2.entry-e37c501d.cjs +0 -1
  149. package/dist/nylas-booked-event-card_12.entry-fddc9ab8.cjs +0 -1
  150. package/dist/nylas-event-calendar_3.entry-e6669bbf.cjs +0 -11
  151. package/dist/nylas-scheduler-editor.entry-5c92901a.cjs +0 -2
  152. package/dist/nylas-scheduling.entry-970240f6.cjs +0 -1
  153. package/dist/play-icon.entry-f949a80f.js +0 -16
  154. package/dist/sent-icon.entry-6c604512.cjs +0 -1
  155. package/dist/sent-icon.entry-fe12bc2f.js +0 -16
  156. package/dist/spam-icon.entry-45e5292e.cjs +0 -1
  157. package/dist/spam-icon.entry-b97c7709.js +0 -16
  158. package/dist/trash-fill-icon.entry-095caae3.cjs +0 -1
  159. package/dist/trash-fill-icon.entry-825055fd.js +0 -16
  160. package/dist/warning-icon.entry-24e37759.js +0 -16
  161. package/dist/warning-icon.entry-fce7c14f.cjs +0 -1
  162. /package/dist/{elements → lib/elements}/react-component-lib/createComponent.d.ts +0 -0
  163. /package/dist/{elements → lib/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
  164. /package/dist/{elements → lib/elements}/react-component-lib/index.d.ts +0 -0
  165. /package/dist/{elements → lib/elements}/react-component-lib/interfaces.d.ts +0 -0
  166. /package/dist/{elements → lib/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
  167. /package/dist/{elements → lib/elements}/react-component-lib/utils/case.d.ts +0 -0
  168. /package/dist/{elements → lib/elements}/react-component-lib/utils/dev.d.ts +0 -0
  169. /package/dist/{elements → lib/elements}/react-component-lib/utils/index.d.ts +0 -0
@@ -1,7 +1,19 @@
1
- import { p as Fn, n as Pn } from "./index-e8380973.js";
2
- const Ur = Object.prototype.toString;
1
+ import { p as Fn, v as Pn } from "./index-71f61ea9.js";
2
+ var An;
3
+ (function(e) {
4
+ e.Error = "error", e.Warning = "warning", e.Info = "info", e.Success = "success";
5
+ })(An || (An = {}));
6
+ var Un;
7
+ (function(e) {
8
+ e.Component = "component", e.Api = "api", e.Auth = "auth";
9
+ })(Un || (Un = {}));
10
+ var Hn;
11
+ (function(e) {
12
+ e.endtime_not_in_future = "endtime_not_in_future", e.no_booking_info = "no_booking_info", e.no_timeslot_selected = "no_timeslot_selected", e.no_timezone_selected = "no_timezone_selected", e.no_booking_id = "no_booking_id", e.no_salt = "no_salt", e.invalid_start_time = "invalid_start_time", e.invalid_end_time = "invalid_end_time", e.invalid_timezone = "invalid_timezone", e.no_config_id = "no_config_id";
13
+ })(Hn || (Hn = {}));
14
+ const Br = Object.prototype.toString;
3
15
  function pn(e) {
4
- switch (Ur.call(e)) {
16
+ switch (Br.call(e)) {
5
17
  case "[object Error]":
6
18
  case "[object Exception]":
7
19
  case "[object DOMException]":
@@ -11,15 +23,15 @@ function pn(e) {
11
23
  }
12
24
  }
13
25
  function Xe(e, t) {
14
- return Ur.call(e) === `[object ${t}]`;
26
+ return Br.call(e) === `[object ${t}]`;
15
27
  }
16
- function Hr(e) {
28
+ function Yr(e) {
17
29
  return Xe(e, "ErrorEvent");
18
30
  }
19
- function An(e) {
31
+ function jn(e) {
20
32
  return Xe(e, "DOMError");
21
33
  }
22
- function Ro(e) {
34
+ function Oo(e) {
23
35
  return Xe(e, "DOMException");
24
36
  }
25
37
  function fe(e) {
@@ -37,16 +49,16 @@ function He(e) {
37
49
  function Lt(e) {
38
50
  return typeof Event < "u" && xe(e, Event);
39
51
  }
40
- function Lo(e) {
52
+ function $o(e) {
41
53
  return typeof Element < "u" && xe(e, Element);
42
54
  }
43
- function Mo(e) {
55
+ function Fo(e) {
44
56
  return Xe(e, "RegExp");
45
57
  }
46
58
  function Mt(e) {
47
59
  return !!(e && e.then && typeof e.then == "function");
48
60
  }
49
- function Oo(e) {
61
+ function Po(e) {
50
62
  return He(e) && "nativeEvent" in e && "preventDefault" in e && "stopPropagation" in e;
51
63
  }
52
64
  function xe(e, t) {
@@ -56,37 +68,37 @@ function xe(e, t) {
56
68
  return !1;
57
69
  }
58
70
  }
59
- function jr(e) {
71
+ function Gr(e) {
60
72
  return !!(typeof e == "object" && e !== null && (e.__isVue || e._isVue));
61
73
  }
62
74
  function Pe(e, t = 0) {
63
75
  return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`;
64
76
  }
65
- function Un(e, t) {
77
+ function Bn(e, t) {
66
78
  if (!Array.isArray(e))
67
79
  return "";
68
80
  const n = [];
69
81
  for (let r = 0; r < e.length; r++) {
70
82
  const o = e[r];
71
83
  try {
72
- jr(o) ? n.push("[VueViewModel]") : n.push(String(o));
84
+ Gr(o) ? n.push("[VueViewModel]") : n.push(String(o));
73
85
  } catch {
74
86
  n.push("[value cannot be serialized]");
75
87
  }
76
88
  }
77
89
  return n.join(t);
78
90
  }
79
- function $o(e, t, n = !1) {
80
- return fe(e) ? Mo(t) ? t.test(e) : fe(t) ? n ? e === t : e.includes(t) : !1 : !1;
91
+ function Ao(e, t, n = !1) {
92
+ return fe(e) ? Fo(t) ? t.test(e) : fe(t) ? n ? e === t : e.includes(t) : !1 : !1;
81
93
  }
82
94
  function Ot(e, t = [], n = !1) {
83
- return t.some((r) => $o(e, r, n));
95
+ return t.some((r) => Ao(e, r, n));
84
96
  }
85
- function Fo(e, t, n = 250, r, o, i, s) {
97
+ function Uo(e, t, n = 250, r, o, i, s) {
86
98
  if (!i.exception || !i.exception.values || !s || !xe(s.originalException, Error))
87
99
  return;
88
100
  const a = i.exception.values.length > 0 ? i.exception.values[i.exception.values.length - 1] : void 0;
89
- a && (i.exception.values = Po(
101
+ a && (i.exception.values = Ho(
90
102
  Wt(
91
103
  e,
92
104
  t,
@@ -105,9 +117,9 @@ function Wt(e, t, n, r, o, i, s, a) {
105
117
  return i;
106
118
  let c = [...i];
107
119
  if (xe(r[o], Error)) {
108
- Hn(s, a);
120
+ Yn(s, a);
109
121
  const l = e(t, r[o]), d = c.length;
110
- jn(l, o, d, a), c = Wt(
122
+ Gn(l, o, d, a), c = Wt(
111
123
  e,
112
124
  t,
113
125
  n,
@@ -120,9 +132,9 @@ function Wt(e, t, n, r, o, i, s, a) {
120
132
  }
121
133
  return Array.isArray(r.errors) && r.errors.forEach((l, d) => {
122
134
  if (xe(l, Error)) {
123
- Hn(s, a);
135
+ Yn(s, a);
124
136
  const u = e(t, l), _ = c.length;
125
- jn(u, `errors[${d}]`, _, a), c = Wt(
137
+ Gn(u, `errors[${d}]`, _, a), c = Wt(
126
138
  e,
127
139
  t,
128
140
  n,
@@ -135,14 +147,14 @@ function Wt(e, t, n, r, o, i, s, a) {
135
147
  }
136
148
  }), c;
137
149
  }
138
- function Hn(e, t) {
150
+ function Yn(e, t) {
139
151
  e.mechanism = e.mechanism || { type: "generic", handled: !0 }, e.mechanism = {
140
152
  ...e.mechanism,
141
153
  ...e.type === "AggregateError" && { is_exception_group: !0 },
142
154
  exception_id: t
143
155
  };
144
156
  }
145
- function jn(e, t, n, r) {
157
+ function Gn(e, t, n, r) {
146
158
  e.mechanism = e.mechanism || { type: "generic", handled: !0 }, e.mechanism = {
147
159
  ...e.mechanism,
148
160
  type: "chained",
@@ -151,16 +163,16 @@ function jn(e, t, n, r) {
151
163
  parent_id: r
152
164
  };
153
165
  }
154
- function Po(e, t) {
166
+ function Ho(e, t) {
155
167
  return e.map((n) => (n.value && (n.value = Pe(n.value, t)), n));
156
168
  }
157
- const Se = "8.28.0", w = globalThis;
169
+ const ve = "8.28.0", w = globalThis;
158
170
  function gn(e, t, n) {
159
- const r = n || w, o = r.__SENTRY__ = r.__SENTRY__ || {}, i = o[Se] = o[Se] || {};
171
+ const r = n || w, o = r.__SENTRY__ = r.__SENTRY__ || {}, i = o[ve] = o[ve] || {};
160
172
  return i[e] || (i[e] = t());
161
173
  }
162
- const yn = w, Ao = 80;
163
- function Br(e, t = {}) {
174
+ const yn = w, jo = 80;
175
+ function qr(e, t = {}) {
164
176
  if (!e)
165
177
  return "<unknown>";
166
178
  try {
@@ -169,15 +181,15 @@ function Br(e, t = {}) {
169
181
  let i = 0, s = 0;
170
182
  const a = " > ", c = a.length;
171
183
  let l;
172
- const d = Array.isArray(t) ? t : t.keyAttrs, u = !Array.isArray(t) && t.maxStringLength || Ao;
173
- for (; n && i++ < r && (l = Uo(n, d), !(l === "html" || i > 1 && s + o.length * c + l.length >= u)); )
184
+ const d = Array.isArray(t) ? t : t.keyAttrs, u = !Array.isArray(t) && t.maxStringLength || jo;
185
+ for (; n && i++ < r && (l = Bo(n, d), !(l === "html" || i > 1 && s + o.length * c + l.length >= u)); )
174
186
  o.push(l), s += l.length, n = n.parentNode;
175
187
  return o.reverse().join(a);
176
188
  } catch {
177
189
  return "<unknown>";
178
190
  }
179
191
  }
180
- function Uo(e, t) {
192
+ function Bo(e, t) {
181
193
  const n = e, r = [];
182
194
  if (!n || !n.tagName)
183
195
  return "";
@@ -209,14 +221,14 @@ function Uo(e, t) {
209
221
  }
210
222
  return r.join("");
211
223
  }
212
- function Yr() {
224
+ function Xr() {
213
225
  try {
214
226
  return yn.document.location.href;
215
227
  } catch {
216
228
  return "";
217
229
  }
218
230
  }
219
- function Ho(e) {
231
+ function Yo(e) {
220
232
  if (!yn.HTMLElement)
221
233
  return null;
222
234
  let t = e;
@@ -234,7 +246,7 @@ function Ho(e) {
234
246
  }
235
247
  return null;
236
248
  }
237
- const ot = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, jo = "Sentry Logger ", zt = [
249
+ const ot = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Go = "Sentry Logger ", zt = [
238
250
  "debug",
239
251
  "info",
240
252
  "warn",
@@ -259,7 +271,7 @@ function it(e) {
259
271
  });
260
272
  }
261
273
  }
262
- function Bo() {
274
+ function qo() {
263
275
  let e = !1;
264
276
  const t = {
265
277
  enable: () => {
@@ -273,7 +285,7 @@ function Bo() {
273
285
  return ot ? zt.forEach((n) => {
274
286
  t[n] = (...r) => {
275
287
  e && it(() => {
276
- w.console[n](`${jo}[${n}]:`, ...r);
288
+ w.console[n](`${Go}[${n}]:`, ...r);
277
289
  });
278
290
  };
279
291
  }) : zt.forEach((n) => {
@@ -281,16 +293,16 @@ function Bo() {
281
293
  };
282
294
  }), t;
283
295
  }
284
- const g = Bo(), Yo = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
285
- function Go(e) {
296
+ const g = qo(), Xo = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
297
+ function Wo(e) {
286
298
  return e === "http" || e === "https";
287
299
  }
288
300
  function $t(e, t = !1) {
289
301
  const { host: n, path: r, pass: o, port: i, projectId: s, protocol: a, publicKey: c } = e;
290
302
  return `${a}://${c}${t && o ? `:${o}` : ""}@${n}${i ? `:${i}` : ""}/${r && `${r}/`}${s}`;
291
303
  }
292
- function qo(e) {
293
- const t = Yo.exec(e);
304
+ function zo(e) {
305
+ const t = Xo.exec(e);
294
306
  if (!t) {
295
307
  it(() => {
296
308
  console.error(`Invalid Sentry Dsn: ${e}`);
@@ -304,9 +316,9 @@ function qo(e) {
304
316
  const u = l.match(/^\d+/);
305
317
  u && (l = u[0]);
306
318
  }
307
- return Gr({ host: i, pass: o, path: c, projectId: l, port: s, protocol: n, publicKey: r });
319
+ return Wr({ host: i, pass: o, path: c, projectId: l, port: s, protocol: n, publicKey: r });
308
320
  }
309
- function Gr(e) {
321
+ function Wr(e) {
310
322
  return {
311
323
  protocol: e.protocol,
312
324
  publicKey: e.publicKey || "",
@@ -317,15 +329,15 @@ function Gr(e) {
317
329
  projectId: e.projectId
318
330
  };
319
331
  }
320
- function Xo(e) {
332
+ function Vo(e) {
321
333
  if (!ot)
322
334
  return !0;
323
335
  const { port: t, projectId: n, protocol: r } = e;
324
- return ["protocol", "publicKey", "host", "projectId"].find((s) => e[s] ? !1 : (g.error(`Invalid Sentry Dsn: ${s} missing`), !0)) ? !1 : n.match(/^\d+$/) ? Go(r) ? t && isNaN(parseInt(t, 10)) ? (g.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (g.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (g.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
336
+ return ["protocol", "publicKey", "host", "projectId"].find((s) => e[s] ? !1 : (g.error(`Invalid Sentry Dsn: ${s} missing`), !0)) ? !1 : n.match(/^\d+$/) ? Wo(r) ? t && isNaN(parseInt(t, 10)) ? (g.error(`Invalid Sentry Dsn: Invalid port ${t}`), !1) : !0 : (g.error(`Invalid Sentry Dsn: Invalid protocol ${r}`), !1) : (g.error(`Invalid Sentry Dsn: Invalid projectId ${n}`), !1);
325
337
  }
326
- function Wo(e) {
327
- const t = typeof e == "string" ? qo(e) : Gr(e);
328
- if (!(!t || !Xo(t)))
338
+ function Ko(e) {
339
+ const t = typeof e == "string" ? zo(e) : Wr(e);
340
+ if (!(!t || !Vo(t)))
329
341
  return t;
330
342
  }
331
343
  class ae extends Error {
@@ -338,7 +350,7 @@ function W(e, t, n) {
338
350
  if (!(t in e))
339
351
  return;
340
352
  const r = e[t], o = n(r);
341
- typeof o == "function" && qr(o, r), e[t] = o;
353
+ typeof o == "function" && zr(o, r), e[t] = o;
342
354
  }
343
355
  function Ce(e, t, n) {
344
356
  try {
@@ -352,7 +364,7 @@ function Ce(e, t, n) {
352
364
  ot && g.log(`Failed to add non-enumerable property "${t}" to object`, e);
353
365
  }
354
366
  }
355
- function qr(e, t) {
367
+ function zr(e, t) {
356
368
  try {
357
369
  const n = t.prototype || {};
358
370
  e.prototype = t.prototype = n, Ce(e, "__sentry_original__", t);
@@ -362,36 +374,36 @@ function qr(e, t) {
362
374
  function bn(e) {
363
375
  return e.__sentry_original__;
364
376
  }
365
- function zo(e) {
377
+ function Jo(e) {
366
378
  return Object.keys(e).map((t) => `${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&");
367
379
  }
368
- function Xr(e) {
380
+ function Vr(e) {
369
381
  if (pn(e))
370
382
  return {
371
383
  message: e.message,
372
384
  name: e.name,
373
385
  stack: e.stack,
374
- ...Yn(e)
386
+ ...Xn(e)
375
387
  };
376
388
  if (Lt(e)) {
377
389
  const t = {
378
390
  type: e.type,
379
- target: Bn(e.target),
380
- currentTarget: Bn(e.currentTarget),
381
- ...Yn(e)
391
+ target: qn(e.target),
392
+ currentTarget: qn(e.currentTarget),
393
+ ...Xn(e)
382
394
  };
383
395
  return typeof CustomEvent < "u" && xe(e, CustomEvent) && (t.detail = e.detail), t;
384
396
  } else
385
397
  return e;
386
398
  }
387
- function Bn(e) {
399
+ function qn(e) {
388
400
  try {
389
- return Lo(e) ? Br(e) : Object.prototype.toString.call(e);
401
+ return $o(e) ? qr(e) : Object.prototype.toString.call(e);
390
402
  } catch {
391
403
  return "<unknown>";
392
404
  }
393
405
  }
394
- function Yn(e) {
406
+ function Xn(e) {
395
407
  if (typeof e == "object" && e !== null) {
396
408
  const t = {};
397
409
  for (const n in e)
@@ -400,8 +412,8 @@ function Yn(e) {
400
412
  } else
401
413
  return {};
402
414
  }
403
- function Vo(e, t = 40) {
404
- const n = Object.keys(Xr(e));
415
+ function Zo(e, t = 40) {
416
+ const n = Object.keys(Vr(e));
405
417
  n.sort();
406
418
  const r = n[0];
407
419
  if (!r)
@@ -419,7 +431,7 @@ function z(e) {
419
431
  return Vt(e, /* @__PURE__ */ new Map());
420
432
  }
421
433
  function Vt(e, t) {
422
- if (Ko(e)) {
434
+ if (Qo(e)) {
423
435
  const n = t.get(e);
424
436
  if (n !== void 0)
425
437
  return n;
@@ -440,7 +452,7 @@ function Vt(e, t) {
440
452
  }
441
453
  return e;
442
454
  }
443
- function Ko(e) {
455
+ function Qo(e) {
444
456
  if (!He(e))
445
457
  return !1;
446
458
  try {
@@ -450,8 +462,8 @@ function Ko(e) {
450
462
  return !0;
451
463
  }
452
464
  }
453
- const Wr = 50, Ne = "?", Gn = /\(error: (.*)\)/, qn = /captureMessage|captureException/;
454
- function zr(...e) {
465
+ const Kr = 50, Ne = "?", Wn = /\(error: (.*)\)/, zn = /captureMessage|captureException/;
466
+ function Jr(...e) {
455
467
  const t = e.sort((n, r) => n[0] - r[0]).map((n) => n[1]);
456
468
  return (n, r = 0, o = 0) => {
457
469
  const i = [], s = n.split(`
@@ -460,7 +472,7 @@ function zr(...e) {
460
472
  const c = s[a];
461
473
  if (c.length > 1024)
462
474
  continue;
463
- const l = Gn.test(c) ? c.replace(Gn, "$1") : c;
475
+ const l = Wn.test(c) ? c.replace(Wn, "$1") : c;
464
476
  if (!l.match(/\S*Error: /)) {
465
477
  for (const d of t) {
466
478
  const u = d(l);
@@ -469,21 +481,21 @@ function zr(...e) {
469
481
  break;
470
482
  }
471
483
  }
472
- if (i.length >= Wr + o)
484
+ if (i.length >= Kr + o)
473
485
  break;
474
486
  }
475
487
  }
476
- return Zo(i.slice(o));
488
+ return ti(i.slice(o));
477
489
  };
478
490
  }
479
- function Jo(e) {
480
- return Array.isArray(e) ? zr(...e) : e;
491
+ function ei(e) {
492
+ return Array.isArray(e) ? Jr(...e) : e;
481
493
  }
482
- function Zo(e) {
494
+ function ti(e) {
483
495
  if (!e.length)
484
496
  return [];
485
497
  const t = Array.from(e);
486
- return /sentryWrapped/.test(dt(t).function || "") && t.pop(), t.reverse(), qn.test(dt(t).function || "") && (t.pop(), qn.test(dt(t).function || "") && t.pop()), t.slice(0, Wr).map((n) => ({
498
+ return /sentryWrapped/.test(dt(t).function || "") && t.pop(), t.reverse(), zn.test(dt(t).function || "") && (t.pop(), zn.test(dt(t).function || "") && t.pop()), t.slice(0, Kr).map((n) => ({
487
499
  ...n,
488
500
  filename: n.filename || dt(t).filename,
489
501
  function: n.function || Ne
@@ -493,14 +505,14 @@ function dt(e) {
493
505
  return e[e.length - 1] || {};
494
506
  }
495
507
  const Ht = "<anonymous>";
496
- function ve(e) {
508
+ function Se(e) {
497
509
  try {
498
510
  return !e || typeof e != "function" ? Ht : e.name || Ht;
499
511
  } catch {
500
512
  return Ht;
501
513
  }
502
514
  }
503
- function Xn(e) {
515
+ function Vn(e) {
504
516
  const t = e.exception;
505
517
  if (t) {
506
518
  const n = [];
@@ -513,12 +525,12 @@ function Xn(e) {
513
525
  }
514
526
  }
515
527
  }
516
- const Et = {}, Wn = {};
528
+ const Et = {}, Kn = {};
517
529
  function De(e, t) {
518
530
  Et[e] = Et[e] || [], Et[e].push(t);
519
531
  }
520
532
  function Re(e, t) {
521
- Wn[e] || (t(), Wn[e] = !0);
533
+ Kn[e] || (t(), Kn[e] = !0);
522
534
  }
523
535
  function oe(e, t) {
524
536
  const n = e && Et[e];
@@ -530,17 +542,17 @@ function oe(e, t) {
530
542
  ot && g.error(
531
543
  `Error while triggering instrumentation handler.
532
544
  Type: ${e}
533
- Name: ${ve(r)}
545
+ Name: ${Se(r)}
534
546
  Error:`,
535
547
  o
536
548
  );
537
549
  }
538
550
  }
539
- function Qo(e) {
551
+ function ni(e) {
540
552
  const t = "console";
541
- De(t, e), Re(t, ei);
553
+ De(t, e), Re(t, ri);
542
554
  }
543
- function ei() {
555
+ function ri() {
544
556
  "console" in w && zt.forEach(function(e) {
545
557
  e in w.console && W(w.console, e, function(t) {
546
558
  return Nt[e] = t, function(...n) {
@@ -552,7 +564,7 @@ function ei() {
552
564
  });
553
565
  }
554
566
  const Kt = w;
555
- function Vr() {
567
+ function Zr() {
556
568
  if (!("fetch" in Kt))
557
569
  return !1;
558
570
  try {
@@ -564,10 +576,10 @@ function Vr() {
564
576
  function Jt(e) {
565
577
  return e && /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString());
566
578
  }
567
- function ti() {
579
+ function oi() {
568
580
  if (typeof EdgeRuntime == "string")
569
581
  return !0;
570
- if (!Vr())
582
+ if (!Zr())
571
583
  return !1;
572
584
  if (Jt(Kt.fetch))
573
585
  return !0;
@@ -582,18 +594,18 @@ function ti() {
582
594
  }
583
595
  return e;
584
596
  }
585
- const Kr = 1e3;
597
+ const Qr = 1e3;
586
598
  function st() {
587
- return Date.now() / Kr;
599
+ return Date.now() / Qr;
588
600
  }
589
- function ni() {
601
+ function ii() {
590
602
  const { performance: e } = w;
591
603
  if (!e || !e.now)
592
604
  return st;
593
605
  const t = Date.now() - e.now(), n = e.timeOrigin == null ? t : e.timeOrigin;
594
- return () => (n + e.now()) / Kr;
606
+ return () => (n + e.now()) / Qr;
595
607
  }
596
- const _e = ni();
608
+ const _e = ii();
597
609
  (() => {
598
610
  const { performance: e } = w;
599
611
  if (!e || !e.now)
@@ -601,14 +613,14 @@ const _e = ni();
601
613
  const t = 3600 * 1e3, n = e.now(), r = Date.now(), o = e.timeOrigin ? Math.abs(e.timeOrigin + n - r) : t, i = o < t, s = e.timing && e.timing.navigationStart, c = typeof s == "number" ? Math.abs(s + n - r) : t, l = c < t;
602
614
  return i || l ? o <= c ? e.timeOrigin : s : r;
603
615
  })();
604
- function ri(e, t) {
616
+ function si(e, t) {
605
617
  const n = "fetch";
606
- De(n, e), Re(n, () => oi(void 0, t));
618
+ De(n, e), Re(n, () => ai(void 0, t));
607
619
  }
608
- function oi(e, t = !1) {
609
- t && !ti() || W(w, "fetch", function(n) {
620
+ function ai(e, t = !1) {
621
+ t && !oi() || W(w, "fetch", function(n) {
610
622
  return function(...r) {
611
- const { method: o, url: i } = ii(r), s = {
623
+ const { method: o, url: i } = ci(r), s = {
612
624
  args: r,
613
625
  fetchData: {
614
626
  method: o,
@@ -640,31 +652,31 @@ function oi(e, t = !1) {
640
652
  function Zt(e, t) {
641
653
  return !!e && typeof e == "object" && !!e[t];
642
654
  }
643
- function zn(e) {
655
+ function Jn(e) {
644
656
  return typeof e == "string" ? e : e ? Zt(e, "url") ? e.url : e.toString ? e.toString() : "" : "";
645
657
  }
646
- function ii(e) {
658
+ function ci(e) {
647
659
  if (e.length === 0)
648
660
  return { method: "GET", url: "" };
649
661
  if (e.length === 2) {
650
662
  const [n, r] = e;
651
663
  return {
652
- url: zn(n),
664
+ url: Jn(n),
653
665
  method: Zt(r, "method") ? String(r.method).toUpperCase() : "GET"
654
666
  };
655
667
  }
656
668
  const t = e[0];
657
669
  return {
658
- url: zn(t),
670
+ url: Jn(t),
659
671
  method: Zt(t, "method") ? String(t.method).toUpperCase() : "GET"
660
672
  };
661
673
  }
662
674
  let ft = null;
663
- function si(e) {
675
+ function ui(e) {
664
676
  const t = "error";
665
- De(t, e), Re(t, ai);
677
+ De(t, e), Re(t, li);
666
678
  }
667
- function ai() {
679
+ function li() {
668
680
  ft = w.onerror, w.onerror = function(e, t, n, r, o) {
669
681
  return oe("error", {
670
682
  column: r,
@@ -676,34 +688,34 @@ function ai() {
676
688
  }, w.onerror.__SENTRY_INSTRUMENTED__ = !0;
677
689
  }
678
690
  let _t = null;
679
- function ci(e) {
691
+ function di(e) {
680
692
  const t = "unhandledrejection";
681
- De(t, e), Re(t, ui);
693
+ De(t, e), Re(t, fi);
682
694
  }
683
- function ui() {
695
+ function fi() {
684
696
  _t = w.onunhandledrejection, w.onunhandledrejection = function(e) {
685
697
  return oe("unhandledrejection", e), _t && !_t.__SENTRY_LOADER__ ? _t.apply(this, arguments) : !0;
686
698
  }, w.onunhandledrejection.__SENTRY_INSTRUMENTED__ = !0;
687
699
  }
688
- function li() {
700
+ function _i() {
689
701
  return typeof __SENTRY_BROWSER_BUNDLE__ < "u" && !!__SENTRY_BROWSER_BUNDLE__;
690
702
  }
691
- function di() {
703
+ function pi() {
692
704
  return "npm";
693
705
  }
694
- function fi() {
695
- return !li() && Object.prototype.toString.call(typeof Fn < "u" ? Fn : 0) === "[object process]";
706
+ function hi() {
707
+ return !_i() && Object.prototype.toString.call(typeof Fn < "u" ? Fn : 0) === "[object process]";
696
708
  }
697
- function _i() {
698
- return typeof window < "u" && (!fi() || pi());
709
+ function mi() {
710
+ return typeof window < "u" && (!hi() || gi());
699
711
  }
700
- function pi() {
712
+ function gi() {
701
713
  return (
702
714
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
703
715
  w.process !== void 0 && w.process.type === "renderer"
704
716
  );
705
717
  }
706
- function hi() {
718
+ function yi() {
707
719
  const e = typeof WeakSet == "function", t = e ? /* @__PURE__ */ new WeakSet() : [];
708
720
  function n(o) {
709
721
  if (e)
@@ -745,14 +757,14 @@ function ee() {
745
757
  )
746
758
  );
747
759
  }
748
- function Jr(e) {
760
+ function eo(e) {
749
761
  return e.exception && e.exception.values ? e.exception.values[0] : void 0;
750
762
  }
751
763
  function ye(e) {
752
764
  const { message: t, event_id: n } = e;
753
765
  if (t)
754
766
  return t;
755
- const r = Jr(e);
767
+ const r = eo(e);
756
768
  return r ? r.type && r.value ? `${r.type}: ${r.value}` : r.type || r.value || n || "<unknown>" : n || "<unknown>";
757
769
  }
758
770
  function Qt(e, t, n) {
@@ -760,7 +772,7 @@ function Qt(e, t, n) {
760
772
  i.value || (i.value = t || ""), i.type || (i.type = n || "Error");
761
773
  }
762
774
  function nt(e, t) {
763
- const n = Jr(e);
775
+ const n = eo(e);
764
776
  if (!n)
765
777
  return;
766
778
  const r = { type: "generic", handled: !0 }, o = n.mechanism;
@@ -769,7 +781,7 @@ function nt(e, t) {
769
781
  n.mechanism.data = i;
770
782
  }
771
783
  }
772
- function Vn(e) {
784
+ function Zn(e) {
773
785
  if (e && e.__sentry_captured__)
774
786
  return !0;
775
787
  try {
@@ -778,7 +790,7 @@ function Vn(e) {
778
790
  }
779
791
  return !1;
780
792
  }
781
- function Zr(e) {
793
+ function to(e) {
782
794
  return Array.isArray(e) ? e : [e];
783
795
  }
784
796
  function be(e, t = 100, n = 1 / 0) {
@@ -788,16 +800,16 @@ function be(e, t = 100, n = 1 / 0) {
788
800
  return { ERROR: `**non-serializable** (${r})` };
789
801
  }
790
802
  }
791
- function Qr(e, t = 3, n = 100 * 1024) {
803
+ function no(e, t = 3, n = 100 * 1024) {
792
804
  const r = be(e, t);
793
- return bi(r) > n ? Qr(e, t - 1, n) : r;
805
+ return Si(r) > n ? no(e, t - 1, n) : r;
794
806
  }
795
- function en(e, t, n = 1 / 0, r = 1 / 0, o = hi()) {
807
+ function en(e, t, n = 1 / 0, r = 1 / 0, o = yi()) {
796
808
  const [i, s] = o;
797
809
  if (t == null || // this matches null and undefined -> eqeq not eqeqeq
798
810
  ["number", "boolean", "string"].includes(typeof t) && !Number.isNaN(t))
799
811
  return t;
800
- const a = mi(e, t);
812
+ const a = bi(e, t);
801
813
  if (!a.startsWith("[object "))
802
814
  return a;
803
815
  if (t.__sentry_skip_normalization__)
@@ -816,7 +828,7 @@ function en(e, t, n = 1 / 0, r = 1 / 0, o = hi()) {
816
828
  }
817
829
  const d = Array.isArray(t) ? [] : {};
818
830
  let u = 0;
819
- const _ = Xr(t);
831
+ const _ = Vr(t);
820
832
  for (const f in _) {
821
833
  if (!Object.prototype.hasOwnProperty.call(_, f))
822
834
  continue;
@@ -829,7 +841,7 @@ function en(e, t, n = 1 / 0, r = 1 / 0, o = hi()) {
829
841
  }
830
842
  return s(t), d;
831
843
  }
832
- function mi(e, t) {
844
+ function bi(e, t) {
833
845
  try {
834
846
  if (e === "domain" && t && typeof t == "object" && t._events)
835
847
  return "[Domain]";
@@ -841,33 +853,33 @@ function mi(e, t) {
841
853
  return "[Window]";
842
854
  if (typeof document < "u" && t === document)
843
855
  return "[Document]";
844
- if (jr(t))
856
+ if (Gr(t))
845
857
  return "[VueViewModel]";
846
- if (Oo(t))
858
+ if (Po(t))
847
859
  return "[SyntheticEvent]";
848
860
  if (typeof t == "number" && t !== t)
849
861
  return "[NaN]";
850
862
  if (typeof t == "function")
851
- return `[Function: ${ve(t)}]`;
863
+ return `[Function: ${Se(t)}]`;
852
864
  if (typeof t == "symbol")
853
865
  return `[${String(t)}]`;
854
866
  if (typeof t == "bigint")
855
867
  return `[BigInt: ${String(t)}]`;
856
- const n = gi(t);
868
+ const n = Ei(t);
857
869
  return /^HTML(\w*)Element$/.test(n) ? `[HTMLElement: ${n}]` : `[object ${n}]`;
858
870
  } catch (n) {
859
871
  return `**non-serializable** (${n})`;
860
872
  }
861
873
  }
862
- function gi(e) {
874
+ function Ei(e) {
863
875
  const t = Object.getPrototypeOf(e);
864
876
  return t ? t.constructor.name : "null prototype";
865
877
  }
866
- function yi(e) {
878
+ function vi(e) {
867
879
  return ~-encodeURI(e).split(/%..|./).length;
868
880
  }
869
- function bi(e) {
870
- return yi(JSON.stringify(e));
881
+ function Si(e) {
882
+ return vi(JSON.stringify(e));
871
883
  }
872
884
  var de;
873
885
  (function(e) {
@@ -984,7 +996,7 @@ class Q {
984
996
  };
985
997
  }
986
998
  }
987
- function Ei(e) {
999
+ function wi(e) {
988
1000
  const t = [];
989
1001
  function n() {
990
1002
  return e === void 0 || t.length < e;
@@ -1040,18 +1052,18 @@ function jt(e) {
1040
1052
  // everything minus origin
1041
1053
  };
1042
1054
  }
1043
- const Si = ["fatal", "error", "warning", "log", "info", "debug"];
1044
- function vi(e) {
1045
- return e === "warn" ? "warning" : Si.includes(e) ? e : "log";
1046
- }
1047
- const wi = "sentry-", ki = /^sentry-/;
1055
+ const ki = ["fatal", "error", "warning", "log", "info", "debug"];
1048
1056
  function xi(e) {
1049
- const t = Ci(e);
1057
+ return e === "warn" ? "warning" : ki.includes(e) ? e : "log";
1058
+ }
1059
+ const Ci = "sentry-", Ni = /^sentry-/;
1060
+ function Ii(e) {
1061
+ const t = Ti(e);
1050
1062
  if (!t)
1051
1063
  return;
1052
1064
  const n = Object.entries(t).reduce((r, [o, i]) => {
1053
- if (o.match(ki)) {
1054
- const s = o.slice(wi.length);
1065
+ if (o.match(Ni)) {
1066
+ const s = o.slice(Ci.length);
1055
1067
  r[s] = i;
1056
1068
  }
1057
1069
  return r;
@@ -1059,26 +1071,26 @@ function xi(e) {
1059
1071
  if (Object.keys(n).length > 0)
1060
1072
  return n;
1061
1073
  }
1062
- function Ci(e) {
1074
+ function Ti(e) {
1063
1075
  if (!(!e || !fe(e) && !Array.isArray(e)))
1064
1076
  return Array.isArray(e) ? e.reduce((t, n) => {
1065
- const r = Kn(n);
1077
+ const r = Qn(n);
1066
1078
  return Object.entries(r).forEach(([o, i]) => {
1067
1079
  t[o] = i;
1068
1080
  }), t;
1069
- }, {}) : Kn(e);
1081
+ }, {}) : Qn(e);
1070
1082
  }
1071
- function Kn(e) {
1083
+ function Qn(e) {
1072
1084
  return e.split(",").map((t) => t.split("=").map((n) => decodeURIComponent(n.trim()))).reduce((t, [n, r]) => (n && r && (t[n] = r), t), {});
1073
1085
  }
1074
1086
  function at(e, t = []) {
1075
1087
  return [e, t];
1076
1088
  }
1077
- function Ni(e, t) {
1089
+ function Di(e, t) {
1078
1090
  const [n, r] = e;
1079
1091
  return [n, [...r, t]];
1080
1092
  }
1081
- function Jn(e, t) {
1093
+ function er(e, t) {
1082
1094
  const n = e[1];
1083
1095
  for (const r of n) {
1084
1096
  const o = r[0].type;
@@ -1090,7 +1102,7 @@ function Jn(e, t) {
1090
1102
  function tn(e) {
1091
1103
  return w.__SENTRY__ && w.__SENTRY__.encodePolyfill ? w.__SENTRY__.encodePolyfill(e) : new TextEncoder().encode(e);
1092
1104
  }
1093
- function Ii(e) {
1105
+ function Ri(e) {
1094
1106
  const [t, n] = e;
1095
1107
  let r = JSON.stringify(t);
1096
1108
  function o(i) {
@@ -1112,16 +1124,16 @@ ${JSON.stringify(s)}
1112
1124
  o(c);
1113
1125
  }
1114
1126
  }
1115
- return typeof r == "string" ? r : Ti(r);
1127
+ return typeof r == "string" ? r : Li(r);
1116
1128
  }
1117
- function Ti(e) {
1129
+ function Li(e) {
1118
1130
  const t = e.reduce((o, i) => o + i.length, 0), n = new Uint8Array(t);
1119
1131
  let r = 0;
1120
1132
  for (const o of e)
1121
1133
  n.set(o, r), r += o.length;
1122
1134
  return n;
1123
1135
  }
1124
- function Di(e) {
1136
+ function Mi(e) {
1125
1137
  const t = typeof e.data == "string" ? tn(e.data) : e.data;
1126
1138
  return [
1127
1139
  z({
@@ -1134,7 +1146,7 @@ function Di(e) {
1134
1146
  t
1135
1147
  ];
1136
1148
  }
1137
- const Ri = {
1149
+ const Oi = {
1138
1150
  session: "session",
1139
1151
  sessions: "session",
1140
1152
  attachment: "attachment",
@@ -1151,16 +1163,16 @@ const Ri = {
1151
1163
  span: "span",
1152
1164
  statsd: "metric_bucket"
1153
1165
  };
1154
- function Zn(e) {
1155
- return Ri[e];
1166
+ function tr(e) {
1167
+ return Oi[e];
1156
1168
  }
1157
- function eo(e) {
1169
+ function ro(e) {
1158
1170
  if (!e || !e.sdk)
1159
1171
  return;
1160
1172
  const { name: t, version: n } = e.sdk;
1161
1173
  return { name: t, version: n };
1162
1174
  }
1163
- function Li(e, t, n, r) {
1175
+ function $i(e, t, n, r) {
1164
1176
  const o = e.sdkProcessingMetadata && e.sdkProcessingMetadata.dynamicSamplingContext;
1165
1177
  return {
1166
1178
  event_id: e.event_id,
@@ -1172,7 +1184,7 @@ function Li(e, t, n, r) {
1172
1184
  }
1173
1185
  };
1174
1186
  }
1175
- function Mi(e, t, n) {
1187
+ function Fi(e, t, n) {
1176
1188
  const r = [
1177
1189
  { type: "client_report" },
1178
1190
  {
@@ -1182,21 +1194,21 @@ function Mi(e, t, n) {
1182
1194
  ];
1183
1195
  return at(t ? { dsn: t } : {}, [r]);
1184
1196
  }
1185
- const Oi = 60 * 1e3;
1186
- function $i(e, t = Date.now()) {
1197
+ const Pi = 60 * 1e3;
1198
+ function Ai(e, t = Date.now()) {
1187
1199
  const n = parseInt(`${e}`, 10);
1188
1200
  if (!isNaN(n))
1189
1201
  return n * 1e3;
1190
1202
  const r = Date.parse(`${e}`);
1191
- return isNaN(r) ? Oi : r - t;
1203
+ return isNaN(r) ? Pi : r - t;
1192
1204
  }
1193
- function Fi(e, t) {
1205
+ function Ui(e, t) {
1194
1206
  return e[t] || e.all || 0;
1195
1207
  }
1196
- function Pi(e, t, n = Date.now()) {
1197
- return Fi(e, t) > n;
1208
+ function Hi(e, t, n = Date.now()) {
1209
+ return Ui(e, t) > n;
1198
1210
  }
1199
- function Ai(e, { statusCode: t, headers: n }, r = Date.now()) {
1211
+ function ji(e, { statusCode: t, headers: n }, r = Date.now()) {
1200
1212
  const o = {
1201
1213
  ...e
1202
1214
  }, i = n && n["x-sentry-rate-limits"], s = n && n["retry-after"];
@@ -1210,17 +1222,17 @@ function Ai(e, { statusCode: t, headers: n }, r = Date.now()) {
1210
1222
  f === "metric_bucket" ? (!d || d.split(";").includes("custom")) && (o[f] = r + _) : o[f] = r + _;
1211
1223
  }
1212
1224
  else
1213
- s ? o.all = r + $i(s, r) : t === 429 && (o.all = r + 60 * 1e3);
1225
+ s ? o.all = r + Ai(s, r) : t === 429 && (o.all = r + 60 * 1e3);
1214
1226
  return o;
1215
1227
  }
1216
- function Qn() {
1228
+ function nr() {
1217
1229
  return {
1218
1230
  traceId: ee(),
1219
1231
  spanId: ee().substring(16)
1220
1232
  };
1221
1233
  }
1222
1234
  const pt = w;
1223
- function Ui() {
1235
+ function Bi() {
1224
1236
  const e = pt.chrome, t = e && e.app && e.app.runtime, n = "history" in pt && !!pt.history.pushState && !!pt.history.replaceState;
1225
1237
  return !t && n;
1226
1238
  }
@@ -1230,9 +1242,9 @@ function Ft() {
1230
1242
  }
1231
1243
  function En(e) {
1232
1244
  const t = e.__SENTRY__ = e.__SENTRY__ || {};
1233
- return t.version = t.version || Se, t[Se] = t[Se] || {};
1245
+ return t.version = t.version || ve, t[ve] = t[ve] || {};
1234
1246
  }
1235
- function Hi(e) {
1247
+ function Yi(e) {
1236
1248
  const t = _e(), n = {
1237
1249
  sid: ee(),
1238
1250
  init: !0,
@@ -1242,7 +1254,7 @@ function Hi(e) {
1242
1254
  status: "ok",
1243
1255
  errors: 0,
1244
1256
  ignoreDuration: !1,
1245
- toJSON: () => Bi(n)
1257
+ toJSON: () => qi(n)
1246
1258
  };
1247
1259
  return e && je(n, e), n;
1248
1260
  }
@@ -1257,11 +1269,11 @@ function je(e, t = {}) {
1257
1269
  }
1258
1270
  t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), typeof t.errors == "number" && (e.errors = t.errors), t.status && (e.status = t.status);
1259
1271
  }
1260
- function ji(e, t) {
1272
+ function Gi(e, t) {
1261
1273
  let n = {};
1262
1274
  t ? n = { status: t } : e.status === "ok" && (n = { status: "exited" }), je(e, n);
1263
1275
  }
1264
- function Bi(e) {
1276
+ function qi(e) {
1265
1277
  return z({
1266
1278
  sid: `${e.sid}`,
1267
1279
  init: e.init,
@@ -1282,14 +1294,14 @@ function Bi(e) {
1282
1294
  });
1283
1295
  }
1284
1296
  const nn = "_sentrySpan";
1285
- function er(e, t) {
1297
+ function rr(e, t) {
1286
1298
  t ? Ce(e, nn, t) : delete e[nn];
1287
1299
  }
1288
- function tr(e) {
1300
+ function or(e) {
1289
1301
  return e[nn];
1290
1302
  }
1291
- const Yi = 100;
1292
- class Sn {
1303
+ const Xi = 100;
1304
+ class vn {
1293
1305
  /** Flag if notifying is happening. */
1294
1306
  /** Callback for client to receive scope changes. */
1295
1307
  /** Callback list that will be called during event processing. */
@@ -1318,14 +1330,14 @@ class Sn {
1318
1330
  /** Contains the last event id of a captured event. */
1319
1331
  // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1320
1332
  constructor() {
1321
- this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = Qn();
1333
+ this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = nr();
1322
1334
  }
1323
1335
  /**
1324
1336
  * @inheritDoc
1325
1337
  */
1326
1338
  clone() {
1327
- const t = new Sn();
1328
- return t._breadcrumbs = [...this._breadcrumbs], t._tags = { ...this._tags }, t._extra = { ...this._extra }, t._contexts = { ...this._contexts }, t._user = this._user, t._level = this._level, t._session = this._session, t._transactionName = this._transactionName, t._fingerprint = this._fingerprint, t._eventProcessors = [...this._eventProcessors], t._requestSession = this._requestSession, t._attachments = [...this._attachments], t._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, t._propagationContext = { ...this._propagationContext }, t._client = this._client, t._lastEventId = this._lastEventId, er(t, tr(this)), t;
1339
+ const t = new vn();
1340
+ return t._breadcrumbs = [...this._breadcrumbs], t._tags = { ...this._tags }, t._extra = { ...this._extra }, t._contexts = { ...this._contexts }, t._user = this._user, t._level = this._level, t._session = this._session, t._transactionName = this._transactionName, t._fingerprint = this._fingerprint, t._eventProcessors = [...this._eventProcessors], t._requestSession = this._requestSession, t._attachments = [...this._attachments], t._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, t._propagationContext = { ...this._propagationContext }, t._client = this._client, t._lastEventId = this._lastEventId, rr(t, or(this)), t;
1329
1341
  }
1330
1342
  /**
1331
1343
  * @inheritDoc
@@ -1471,13 +1483,13 @@ class Sn {
1471
1483
  * @inheritDoc
1472
1484
  */
1473
1485
  clear() {
1474
- return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, er(this, void 0), this._attachments = [], this._propagationContext = Qn(), this._notifyScopeListeners(), this;
1486
+ return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._session = void 0, rr(this, void 0), this._attachments = [], this._propagationContext = nr(), this._notifyScopeListeners(), this;
1475
1487
  }
1476
1488
  /**
1477
1489
  * @inheritDoc
1478
1490
  */
1479
1491
  addBreadcrumb(t, n) {
1480
- const r = typeof n == "number" ? n : Yi;
1492
+ const r = typeof n == "number" ? n : Xi;
1481
1493
  if (r <= 0)
1482
1494
  return this;
1483
1495
  const o = {
@@ -1525,7 +1537,7 @@ class Sn {
1525
1537
  propagationContext: this._propagationContext,
1526
1538
  sdkProcessingMetadata: this._sdkProcessingMetadata,
1527
1539
  transactionName: this._transactionName,
1528
- span: tr(this)
1540
+ span: or(this)
1529
1541
  };
1530
1542
  }
1531
1543
  /**
@@ -1601,14 +1613,14 @@ class Sn {
1601
1613
  }), this._notifyingListeners = !1);
1602
1614
  }
1603
1615
  }
1604
- const we = Sn;
1605
- function Gi() {
1616
+ const we = vn;
1617
+ function Wi() {
1606
1618
  return gn("defaultCurrentScope", () => new we());
1607
1619
  }
1608
- function qi() {
1620
+ function zi() {
1609
1621
  return gn("defaultIsolationScope", () => new we());
1610
1622
  }
1611
- class Xi {
1623
+ class Vi {
1612
1624
  constructor(t, n) {
1613
1625
  let r;
1614
1626
  t ? r = t : r = new we();
@@ -1676,45 +1688,45 @@ class Xi {
1676
1688
  }
1677
1689
  function Be() {
1678
1690
  const e = Ft(), t = En(e);
1679
- return t.stack = t.stack || new Xi(Gi(), qi());
1691
+ return t.stack = t.stack || new Vi(Wi(), zi());
1680
1692
  }
1681
- function Wi(e) {
1693
+ function Ki(e) {
1682
1694
  return Be().withScope(e);
1683
1695
  }
1684
- function zi(e, t) {
1696
+ function Ji(e, t) {
1685
1697
  const n = Be();
1686
1698
  return n.withScope(() => (n.getStackTop().scope = e, t(e)));
1687
1699
  }
1688
- function nr(e) {
1700
+ function ir(e) {
1689
1701
  return Be().withScope(() => e(Be().getIsolationScope()));
1690
1702
  }
1691
- function Vi() {
1703
+ function Zi() {
1692
1704
  return {
1693
- withIsolationScope: nr,
1694
- withScope: Wi,
1695
- withSetScope: zi,
1696
- withSetIsolationScope: (e, t) => nr(t),
1705
+ withIsolationScope: ir,
1706
+ withScope: Ki,
1707
+ withSetScope: Ji,
1708
+ withSetIsolationScope: (e, t) => ir(t),
1697
1709
  getCurrentScope: () => Be().getScope(),
1698
1710
  getIsolationScope: () => Be().getIsolationScope()
1699
1711
  };
1700
1712
  }
1701
- function vn(e) {
1713
+ function Sn(e) {
1702
1714
  const t = En(e);
1703
- return t.acs ? t.acs : Vi();
1715
+ return t.acs ? t.acs : Zi();
1704
1716
  }
1705
1717
  function te() {
1706
1718
  const e = Ft();
1707
- return vn(e).getCurrentScope();
1719
+ return Sn(e).getCurrentScope();
1708
1720
  }
1709
1721
  function We() {
1710
1722
  const e = Ft();
1711
- return vn(e).getIsolationScope();
1723
+ return Sn(e).getIsolationScope();
1712
1724
  }
1713
- function to() {
1725
+ function oo() {
1714
1726
  return gn("globalScope", () => new we());
1715
1727
  }
1716
- function Ki(...e) {
1717
- const t = Ft(), n = vn(t);
1728
+ function Qi(...e) {
1729
+ const t = Ft(), n = Sn(t);
1718
1730
  if (e.length === 2) {
1719
1731
  const [r, o] = e;
1720
1732
  return r ? n.withSetScope(r, o) : n.withScope(o);
@@ -1724,9 +1736,9 @@ function Ki(...e) {
1724
1736
  function F() {
1725
1737
  return te().getClient();
1726
1738
  }
1727
- const Ji = "_sentryMetrics";
1728
- function Zi(e) {
1729
- const t = e[Ji];
1739
+ const es = "_sentryMetrics";
1740
+ function ts(e) {
1741
+ const t = e[es];
1730
1742
  if (!t)
1731
1743
  return;
1732
1744
  const n = {};
@@ -1734,23 +1746,23 @@ function Zi(e) {
1734
1746
  (n[r] || (n[r] = [])).push(z(o));
1735
1747
  return n;
1736
1748
  }
1737
- const Qi = "sentry.source", es = "sentry.sample_rate", ts = "sentry.op", ns = "sentry.origin", rs = 0, os = 1, is = 1;
1738
- function ss(e) {
1749
+ const ns = "sentry.source", rs = "sentry.sample_rate", os = "sentry.op", is = "sentry.origin", ss = 0, as = 1, cs = 1;
1750
+ function us(e) {
1739
1751
  const { spanId: t, traceId: n } = e.spanContext(), { parent_span_id: r } = Tt(e);
1740
1752
  return z({ parent_span_id: r, span_id: t, trace_id: n });
1741
1753
  }
1742
- function rr(e) {
1743
- return typeof e == "number" ? or(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? or(e.getTime()) : _e();
1754
+ function sr(e) {
1755
+ return typeof e == "number" ? ar(e) : Array.isArray(e) ? e[0] + e[1] / 1e9 : e instanceof Date ? ar(e.getTime()) : _e();
1744
1756
  }
1745
- function or(e) {
1757
+ function ar(e) {
1746
1758
  return e > 9999999999 ? e / 1e3 : e;
1747
1759
  }
1748
1760
  function Tt(e) {
1749
- if (cs(e))
1761
+ if (ds(e))
1750
1762
  return e.getSpanJSON();
1751
1763
  try {
1752
1764
  const { spanId: t, traceId: n } = e.spanContext();
1753
- if (as(e)) {
1765
+ if (ls(e)) {
1754
1766
  const { attributes: r, startTime: o, name: i, endTime: s, parentSpanId: a, status: c } = e;
1755
1767
  return z({
1756
1768
  span_id: t,
@@ -1758,13 +1770,13 @@ function Tt(e) {
1758
1770
  data: r,
1759
1771
  description: i,
1760
1772
  parent_span_id: a,
1761
- start_timestamp: rr(o),
1773
+ start_timestamp: sr(o),
1762
1774
  // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time
1763
- timestamp: rr(s) || void 0,
1764
- status: ls(c),
1765
- op: r[ts],
1766
- origin: r[ns],
1767
- _metrics_summary: Zi(e)
1775
+ timestamp: sr(s) || void 0,
1776
+ status: _s(c),
1777
+ op: r[os],
1778
+ origin: r[is],
1779
+ _metrics_summary: ts(e)
1768
1780
  });
1769
1781
  }
1770
1782
  return {
@@ -1775,27 +1787,27 @@ function Tt(e) {
1775
1787
  return {};
1776
1788
  }
1777
1789
  }
1778
- function as(e) {
1790
+ function ls(e) {
1779
1791
  const t = e;
1780
1792
  return !!t.attributes && !!t.startTime && !!t.name && !!t.endTime && !!t.status;
1781
1793
  }
1782
- function cs(e) {
1794
+ function ds(e) {
1783
1795
  return typeof e.getSpanJSON == "function";
1784
1796
  }
1785
- function us(e) {
1797
+ function fs(e) {
1786
1798
  const { traceFlags: t } = e.spanContext();
1787
- return t === is;
1799
+ return t === cs;
1788
1800
  }
1789
- function ls(e) {
1790
- if (!(!e || e.code === rs))
1791
- return e.code === os ? "ok" : e.message || "unknown_error";
1801
+ function _s(e) {
1802
+ if (!(!e || e.code === ss))
1803
+ return e.code === as ? "ok" : e.message || "unknown_error";
1792
1804
  }
1793
- const ds = "_sentryRootSpan";
1794
- function no(e) {
1795
- return e[ds] || e;
1805
+ const ps = "_sentryRootSpan";
1806
+ function io(e) {
1807
+ return e[ps] || e;
1796
1808
  }
1797
- const wn = "production", fs = "_frozenDsc";
1798
- function ro(e, t) {
1809
+ const wn = "production", hs = "_frozenDsc";
1810
+ function so(e, t) {
1799
1811
  const n = t.getOptions(), { publicKey: r } = t.getDsn() || {}, o = z({
1800
1812
  environment: n.environment || wn,
1801
1813
  release: n.release,
@@ -1804,22 +1816,22 @@ function ro(e, t) {
1804
1816
  });
1805
1817
  return t.emit("createDsc", o), o;
1806
1818
  }
1807
- function _s(e) {
1819
+ function ms(e) {
1808
1820
  const t = F();
1809
1821
  if (!t)
1810
1822
  return {};
1811
- const n = ro(Tt(e).trace_id || "", t), r = no(e), o = r[fs];
1823
+ const n = so(Tt(e).trace_id || "", t), r = io(e), o = r[hs];
1812
1824
  if (o)
1813
1825
  return o;
1814
- const i = r.spanContext().traceState, s = i && i.get("sentry.dsc"), a = s && xi(s);
1826
+ const i = r.spanContext().traceState, s = i && i.get("sentry.dsc"), a = s && Ii(s);
1815
1827
  if (a)
1816
1828
  return a;
1817
- const c = Tt(r), l = c.data || {}, d = l[es];
1829
+ const c = Tt(r), l = c.data || {}, d = l[rs];
1818
1830
  d != null && (n.sample_rate = `${d}`);
1819
- const u = l[Qi], _ = c.description;
1820
- return u !== "url" && _ && (n.transaction = _), n.sampled = String(us(r)), t.emit("createDsc", n, r), n;
1831
+ const u = l[ns], _ = c.description;
1832
+ return u !== "url" && _ && (n.transaction = _), n.sampled = String(fs(r)), t.emit("createDsc", n, r), n;
1821
1833
  }
1822
- function ps(e) {
1834
+ function gs(e) {
1823
1835
  if (typeof e == "boolean")
1824
1836
  return Number(e);
1825
1837
  const t = typeof e == "string" ? parseFloat(e) : e;
@@ -1833,21 +1845,21 @@ function ps(e) {
1833
1845
  }
1834
1846
  return t;
1835
1847
  }
1836
- function hs(e, t) {
1848
+ function ys(e, t) {
1837
1849
  return t && (e.sdk = e.sdk || {}, e.sdk.name = e.sdk.name || t.name, e.sdk.version = e.sdk.version || t.version, e.sdk.integrations = [...e.sdk.integrations || [], ...t.integrations || []], e.sdk.packages = [...e.sdk.packages || [], ...t.packages || []]), e;
1838
1850
  }
1839
- function ms(e, t, n, r) {
1840
- const o = eo(n), i = {
1851
+ function bs(e, t, n, r) {
1852
+ const o = ro(n), i = {
1841
1853
  sent_at: (/* @__PURE__ */ new Date()).toISOString(),
1842
1854
  ...o && { sdk: o },
1843
1855
  ...!!r && t && { dsn: $t(t) }
1844
1856
  }, s = "aggregates" in e ? [{ type: "sessions" }, e] : [{ type: "session" }, e.toJSON()];
1845
1857
  return at(i, [s]);
1846
1858
  }
1847
- function gs(e, t, n, r) {
1848
- const o = eo(n), i = e.type && e.type !== "replay_event" ? e.type : "event";
1849
- hs(e, n && n.sdk);
1850
- const s = Li(e, o, r, t);
1859
+ function Es(e, t, n, r) {
1860
+ const o = ro(n), i = e.type && e.type !== "replay_event" ? e.type : "event";
1861
+ ys(e, n && n.sdk);
1862
+ const s = $i(e, o, r, t);
1851
1863
  return delete e.sdkProcessingMetadata, at(s, [[{ type: i }, e]]);
1852
1864
  }
1853
1865
  function rn(e, t, n, r = 0) {
@@ -1861,11 +1873,11 @@ function rn(e, t, n, r = 0) {
1861
1873
  }
1862
1874
  });
1863
1875
  }
1864
- function ys(e, t) {
1876
+ function vs(e, t) {
1865
1877
  const { fingerprint: n, span: r, breadcrumbs: o, sdkProcessingMetadata: i } = t;
1866
- bs(e, t), r && vs(e, r), ws(e, n), Es(e, o), Ss(e, i);
1878
+ Ss(e, t), r && xs(e, r), Cs(e, n), ws(e, o), ks(e, i);
1867
1879
  }
1868
- function ir(e, t) {
1880
+ function cr(e, t) {
1869
1881
  const {
1870
1882
  extra: n,
1871
1883
  tags: r,
@@ -1890,7 +1902,7 @@ function Je(e, t, n) {
1890
1902
  Object.prototype.hasOwnProperty.call(n, r) && (e[t][r] = n[r]);
1891
1903
  }
1892
1904
  }
1893
- function bs(e, t) {
1905
+ function Ss(e, t) {
1894
1906
  const { extra: n, tags: r, user: o, contexts: i, level: s, transactionName: a } = t, c = z(n);
1895
1907
  c && Object.keys(c).length && (e.extra = { ...c, ...e.extra });
1896
1908
  const l = z(r);
@@ -1900,58 +1912,58 @@ function bs(e, t) {
1900
1912
  const u = z(i);
1901
1913
  u && Object.keys(u).length && (e.contexts = { ...u, ...e.contexts }), s && (e.level = s), a && e.type !== "transaction" && (e.transaction = a);
1902
1914
  }
1903
- function Es(e, t) {
1915
+ function ws(e, t) {
1904
1916
  const n = [...e.breadcrumbs || [], ...t];
1905
1917
  e.breadcrumbs = n.length ? n : void 0;
1906
1918
  }
1907
- function Ss(e, t) {
1919
+ function ks(e, t) {
1908
1920
  e.sdkProcessingMetadata = {
1909
1921
  ...e.sdkProcessingMetadata,
1910
1922
  ...t
1911
1923
  };
1912
1924
  }
1913
- function vs(e, t) {
1925
+ function xs(e, t) {
1914
1926
  e.contexts = {
1915
- trace: ss(t),
1927
+ trace: us(t),
1916
1928
  ...e.contexts
1917
1929
  }, e.sdkProcessingMetadata = {
1918
- dynamicSamplingContext: _s(t),
1930
+ dynamicSamplingContext: ms(t),
1919
1931
  ...e.sdkProcessingMetadata
1920
1932
  };
1921
- const n = no(t), r = Tt(n).description;
1933
+ const n = io(t), r = Tt(n).description;
1922
1934
  r && !e.transaction && e.type === "transaction" && (e.transaction = r);
1923
1935
  }
1924
- function ws(e, t) {
1925
- e.fingerprint = e.fingerprint ? Zr(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)), e.fingerprint && !e.fingerprint.length && delete e.fingerprint;
1936
+ function Cs(e, t) {
1937
+ e.fingerprint = e.fingerprint ? to(e.fingerprint) : [], t && (e.fingerprint = e.fingerprint.concat(t)), e.fingerprint && !e.fingerprint.length && delete e.fingerprint;
1926
1938
  }
1927
- function ks(e, t, n, r, o, i) {
1939
+ function Ns(e, t, n, r, o, i) {
1928
1940
  const { normalizeDepth: s = 3, normalizeMaxBreadth: a = 1e3 } = e, c = {
1929
1941
  ...t,
1930
1942
  event_id: t.event_id || n.event_id || ee(),
1931
1943
  timestamp: t.timestamp || st()
1932
1944
  }, l = n.integrations || e.integrations.map((y) => y.name);
1933
- xs(c, e), Is(c, l), o && o.emit("applyFrameMetadata", t), t.type === void 0 && Cs(c, e.stackParser);
1934
- const d = Ds(r, n.captureContext);
1945
+ Is(c, e), Rs(c, l), o && o.emit("applyFrameMetadata", t), t.type === void 0 && Ts(c, e.stackParser);
1946
+ const d = Ms(r, n.captureContext);
1935
1947
  n.mechanism && nt(c, n.mechanism);
1936
- const u = o ? o.getEventProcessors() : [], _ = to().getScopeData();
1948
+ const u = o ? o.getEventProcessors() : [], _ = oo().getScopeData();
1937
1949
  if (i) {
1938
1950
  const y = i.getScopeData();
1939
- ir(_, y);
1951
+ cr(_, y);
1940
1952
  }
1941
1953
  if (d) {
1942
1954
  const y = d.getScopeData();
1943
- ir(_, y);
1955
+ cr(_, y);
1944
1956
  }
1945
1957
  const f = [...n.attachments || [], ..._.attachments];
1946
- f.length && (n.attachments = f), ys(c, _);
1958
+ f.length && (n.attachments = f), vs(c, _);
1947
1959
  const p = [
1948
1960
  ...u,
1949
1961
  // Run scope event processors _after_ all other processors
1950
1962
  ..._.eventProcessors
1951
1963
  ];
1952
- return rn(p, c, n).then((y) => (y && Ns(y), typeof s == "number" && s > 0 ? Ts(y, s, a) : y));
1964
+ return rn(p, c, n).then((y) => (y && Ds(y), typeof s == "number" && s > 0 ? Ls(y, s, a) : y));
1953
1965
  }
1954
- function xs(e, t) {
1966
+ function Is(e, t) {
1955
1967
  const { environment: n, release: r, dist: o, maxValueLength: i = 250 } = t;
1956
1968
  "environment" in e || (e.environment = "environment" in t ? n : wn), e.release === void 0 && r !== void 0 && (e.release = r), e.dist === void 0 && o !== void 0 && (e.dist = o), e.message && (e.message = Pe(e.message, i));
1957
1969
  const s = e.exception && e.exception.values && e.exception.values[0];
@@ -1959,14 +1971,14 @@ function xs(e, t) {
1959
1971
  const a = e.request;
1960
1972
  a && a.url && (a.url = Pe(a.url, i));
1961
1973
  }
1962
- const sr = /* @__PURE__ */ new WeakMap();
1963
- function Cs(e, t) {
1974
+ const ur = /* @__PURE__ */ new WeakMap();
1975
+ function Ts(e, t) {
1964
1976
  const n = w._sentryDebugIds;
1965
1977
  if (!n)
1966
1978
  return;
1967
1979
  let r;
1968
- const o = sr.get(t);
1969
- o ? r = o : (r = /* @__PURE__ */ new Map(), sr.set(t, r));
1980
+ const o = ur.get(t);
1981
+ o ? r = o : (r = /* @__PURE__ */ new Map(), ur.set(t, r));
1970
1982
  const i = Object.entries(n).reduce(
1971
1983
  (s, [a, c]) => {
1972
1984
  let l;
@@ -1992,7 +2004,7 @@ function Cs(e, t) {
1992
2004
  } catch {
1993
2005
  }
1994
2006
  }
1995
- function Ns(e) {
2007
+ function Ds(e) {
1996
2008
  const t = {};
1997
2009
  try {
1998
2010
  e.exception.values.forEach((r) => {
@@ -2014,10 +2026,10 @@ function Ns(e) {
2014
2026
  });
2015
2027
  });
2016
2028
  }
2017
- function Is(e, t) {
2029
+ function Rs(e, t) {
2018
2030
  t.length > 0 && (e.sdk = e.sdk || {}, e.sdk.integrations = [...e.sdk.integrations || [], ...t]);
2019
2031
  }
2020
- function Ts(e, t, n) {
2032
+ function Ls(e, t, n) {
2021
2033
  if (!e)
2022
2034
  return null;
2023
2035
  const r = {
@@ -2047,22 +2059,22 @@ function Ts(e, t, n) {
2047
2059
  }
2048
2060
  }))), r;
2049
2061
  }
2050
- function Ds(e, t) {
2062
+ function Ms(e, t) {
2051
2063
  if (!t)
2052
2064
  return e;
2053
2065
  const n = e ? e.clone() : new we();
2054
2066
  return n.update(t), n;
2055
2067
  }
2056
- function Rs(e) {
2068
+ function Os(e) {
2057
2069
  if (e)
2058
- return Ls(e) ? { captureContext: e } : Os(e) ? {
2070
+ return $s(e) ? { captureContext: e } : Ps(e) ? {
2059
2071
  captureContext: e
2060
2072
  } : e;
2061
2073
  }
2062
- function Ls(e) {
2074
+ function $s(e) {
2063
2075
  return e instanceof we || typeof e == "function";
2064
2076
  }
2065
- const Ms = [
2077
+ const Fs = [
2066
2078
  "user",
2067
2079
  "level",
2068
2080
  "extra",
@@ -2072,105 +2084,105 @@ const Ms = [
2072
2084
  "requestSession",
2073
2085
  "propagationContext"
2074
2086
  ];
2075
- function Os(e) {
2076
- return Object.keys(e).some((t) => Ms.includes(t));
2087
+ function Ps(e) {
2088
+ return Object.keys(e).some((t) => Fs.includes(t));
2077
2089
  }
2078
- function $s(e, t) {
2079
- return te().captureException(e, Rs(t));
2090
+ function As(e, t) {
2091
+ return te().captureException(e, Os(t));
2080
2092
  }
2081
- function sl(e, t) {
2093
+ function ul(e, t) {
2082
2094
  const n = typeof t == "string" ? t : void 0, r = typeof t != "string" ? { captureContext: t } : void 0;
2083
2095
  return te().captureMessage(e, n, r);
2084
2096
  }
2085
- function oo(e, t) {
2097
+ function ao(e, t) {
2086
2098
  return te().captureEvent(e, t);
2087
2099
  }
2088
- function al() {
2100
+ function ll() {
2089
2101
  return !!F();
2090
2102
  }
2091
- function ar(e) {
2092
- const t = F(), n = We(), r = te(), { release: o, environment: i = wn } = t && t.getOptions() || {}, { userAgent: s } = w.navigator || {}, a = Hi({
2103
+ function lr(e) {
2104
+ const t = F(), n = We(), r = te(), { release: o, environment: i = wn } = t && t.getOptions() || {}, { userAgent: s } = w.navigator || {}, a = Yi({
2093
2105
  release: o,
2094
2106
  environment: i,
2095
2107
  user: r.getUser() || n.getUser(),
2096
2108
  ...s && { userAgent: s },
2097
2109
  ...e
2098
2110
  }), c = n.getSession();
2099
- return c && c.status === "ok" && je(c, { status: "exited" }), io(), n.setSession(a), r.setSession(a), a;
2111
+ return c && c.status === "ok" && je(c, { status: "exited" }), co(), n.setSession(a), r.setSession(a), a;
2100
2112
  }
2101
- function io() {
2113
+ function co() {
2102
2114
  const e = We(), t = te(), n = t.getSession() || e.getSession();
2103
- n && ji(n), so(), e.setSession(), t.setSession();
2115
+ n && Gi(n), uo(), e.setSession(), t.setSession();
2104
2116
  }
2105
- function so() {
2117
+ function uo() {
2106
2118
  const e = We(), t = te(), n = F(), r = t.getSession() || e.getSession();
2107
2119
  r && n && n.captureSession(r);
2108
2120
  }
2109
- function cr(e = !1) {
2121
+ function dr(e = !1) {
2110
2122
  if (e) {
2111
- io();
2123
+ co();
2112
2124
  return;
2113
2125
  }
2114
- so();
2126
+ uo();
2115
2127
  }
2116
- const Fs = "7";
2117
- function Ps(e) {
2128
+ const Us = "7";
2129
+ function Hs(e) {
2118
2130
  const t = e.protocol ? `${e.protocol}:` : "", n = e.port ? `:${e.port}` : "";
2119
2131
  return `${t}//${e.host}${n}${e.path ? `/${e.path}` : ""}/api/`;
2120
2132
  }
2121
- function As(e) {
2122
- return `${Ps(e)}${e.projectId}/envelope/`;
2133
+ function js(e) {
2134
+ return `${Hs(e)}${e.projectId}/envelope/`;
2123
2135
  }
2124
- function Us(e, t) {
2125
- return zo({
2136
+ function Bs(e, t) {
2137
+ return Jo({
2126
2138
  // We send only the minimum set of required information. See
2127
2139
  // https://github.com/getsentry/sentry-javascript/issues/2572.
2128
2140
  sentry_key: e.publicKey,
2129
- sentry_version: Fs,
2141
+ sentry_version: Us,
2130
2142
  ...t && { sentry_client: `${t.name}/${t.version}` }
2131
2143
  });
2132
2144
  }
2133
- function Hs(e, t, n) {
2134
- return t || `${As(e)}?${Us(e, n)}`;
2145
+ function Ys(e, t, n) {
2146
+ return t || `${js(e)}?${Bs(e, n)}`;
2135
2147
  }
2136
- const ur = [];
2137
- function js(e) {
2148
+ const fr = [];
2149
+ function Gs(e) {
2138
2150
  const t = {};
2139
2151
  return e.forEach((n) => {
2140
2152
  const { name: r } = n, o = t[r];
2141
2153
  o && !o.isDefaultInstance && n.isDefaultInstance || (t[r] = n);
2142
2154
  }), Object.values(t);
2143
2155
  }
2144
- function Bs(e) {
2156
+ function qs(e) {
2145
2157
  const t = e.defaultIntegrations || [], n = e.integrations;
2146
2158
  t.forEach((s) => {
2147
2159
  s.isDefaultInstance = !0;
2148
2160
  });
2149
2161
  let r;
2150
- Array.isArray(n) ? r = [...t, ...n] : typeof n == "function" ? r = Zr(n(t)) : r = t;
2151
- const o = js(r), i = o.findIndex((s) => s.name === "Debug");
2162
+ Array.isArray(n) ? r = [...t, ...n] : typeof n == "function" ? r = to(n(t)) : r = t;
2163
+ const o = Gs(r), i = o.findIndex((s) => s.name === "Debug");
2152
2164
  if (i > -1) {
2153
2165
  const [s] = o.splice(i, 1);
2154
2166
  o.push(s);
2155
2167
  }
2156
2168
  return o;
2157
2169
  }
2158
- function Ys(e, t) {
2170
+ function Xs(e, t) {
2159
2171
  const n = {};
2160
2172
  return t.forEach((r) => {
2161
- r && ao(e, r, n);
2173
+ r && lo(e, r, n);
2162
2174
  }), n;
2163
2175
  }
2164
- function lr(e, t) {
2176
+ function _r(e, t) {
2165
2177
  for (const n of t)
2166
2178
  n && n.afterAllSetup && n.afterAllSetup(e);
2167
2179
  }
2168
- function ao(e, t, n) {
2180
+ function lo(e, t, n) {
2169
2181
  if (n[t.name]) {
2170
2182
  N && g.log(`Integration skipped because it was already installed: ${t.name}`);
2171
2183
  return;
2172
2184
  }
2173
- if (n[t.name] = t, ur.indexOf(t.name) === -1 && typeof t.setupOnce == "function" && (t.setupOnce(), ur.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
2185
+ if (n[t.name] = t, fr.indexOf(t.name) === -1 && typeof t.setupOnce == "function" && (t.setupOnce(), fr.push(t.name)), t.setup && typeof t.setup == "function" && t.setup(e), typeof t.preprocessEvent == "function") {
2174
2186
  const r = t.preprocessEvent.bind(t);
2175
2187
  e.on("preprocessEvent", (o, i) => r(o, i, e));
2176
2188
  }
@@ -2182,8 +2194,8 @@ function ao(e, t, n) {
2182
2194
  }
2183
2195
  N && g.log(`Integration installed: ${t.name}`);
2184
2196
  }
2185
- const dr = "Not capturing exception because it's already been captured.";
2186
- class Gs {
2197
+ const pr = "Not capturing exception because it's already been captured.";
2198
+ class Ws {
2187
2199
  /** Options passed to the SDK. */
2188
2200
  /** The client Dsn, if specified in options. Without this Dsn, the SDK will be disabled. */
2189
2201
  /** Array of set up integrations. */
@@ -2196,8 +2208,8 @@ class Gs {
2196
2208
  * @param options Options for the client.
2197
2209
  */
2198
2210
  constructor(t) {
2199
- if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], t.dsn ? this._dsn = Wo(t.dsn) : N && g.warn("No DSN provided, client will not send events."), this._dsn) {
2200
- const n = Hs(
2211
+ if (this._options = t, this._integrations = {}, this._numProcessing = 0, this._outcomes = {}, this._hooks = {}, this._eventProcessors = [], t.dsn ? this._dsn = Ko(t.dsn) : N && g.warn("No DSN provided, client will not send events."), this._dsn) {
2212
+ const n = Ys(
2201
2213
  this._dsn,
2202
2214
  t.tunnel,
2203
2215
  t._metadata ? t._metadata.sdk : void 0
@@ -2216,8 +2228,8 @@ class Gs {
2216
2228
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2217
2229
  captureException(t, n, r) {
2218
2230
  const o = ee();
2219
- if (Vn(t))
2220
- return N && g.log(dr), o;
2231
+ if (Zn(t))
2232
+ return N && g.log(pr), o;
2221
2233
  const i = {
2222
2234
  event_id: o,
2223
2235
  ...n
@@ -2243,8 +2255,8 @@ class Gs {
2243
2255
  */
2244
2256
  captureEvent(t, n, r) {
2245
2257
  const o = ee();
2246
- if (n && n.originalException && Vn(n.originalException))
2247
- return N && g.log(dr), o;
2258
+ if (n && n.originalException && Zn(n.originalException))
2259
+ return N && g.log(pr), o;
2248
2260
  const i = {
2249
2261
  event_id: o,
2250
2262
  ...n
@@ -2326,16 +2338,16 @@ class Gs {
2326
2338
  */
2327
2339
  addIntegration(t) {
2328
2340
  const n = this._integrations[t.name];
2329
- ao(this, t, this._integrations), n || lr(this, [t]);
2341
+ lo(this, t, this._integrations), n || _r(this, [t]);
2330
2342
  }
2331
2343
  /**
2332
2344
  * @inheritDoc
2333
2345
  */
2334
2346
  sendEvent(t, n = {}) {
2335
2347
  this.emit("beforeSendEvent", t, n);
2336
- let r = gs(t, this._dsn, this._options._metadata, this._options.tunnel);
2348
+ let r = Es(t, this._dsn, this._options._metadata, this._options.tunnel);
2337
2349
  for (const i of n.attachments || [])
2338
- r = Ni(r, Di(i));
2350
+ r = Di(r, Mi(i));
2339
2351
  const o = this.sendEnvelope(r);
2340
2352
  o && o.then((i) => this.emit("afterSendEvent", t, i), null);
2341
2353
  }
@@ -2343,7 +2355,7 @@ class Gs {
2343
2355
  * @inheritDoc
2344
2356
  */
2345
2357
  sendSession(t) {
2346
- const n = ms(t, this._dsn, this._options._metadata, this._options.tunnel);
2358
+ const n = bs(t, this._dsn, this._options._metadata, this._options.tunnel);
2347
2359
  this.sendEnvelope(n);
2348
2360
  }
2349
2361
  /**
@@ -2382,7 +2394,7 @@ class Gs {
2382
2394
  /** Setup integrations for this client. */
2383
2395
  _setupIntegrations() {
2384
2396
  const { integrations: t } = this._options;
2385
- this._integrations = Ys(this, t), lr(this, t);
2397
+ this._integrations = Xs(this, t), _r(this, t);
2386
2398
  }
2387
2399
  /** Updates existing session based on the provided event */
2388
2400
  _updateSessionFromEvent(t, n) {
@@ -2442,7 +2454,7 @@ class Gs {
2442
2454
  */
2443
2455
  _prepareEvent(t, n, r, o = We()) {
2444
2456
  const i = this.getOptions(), s = Object.keys(this._integrations);
2445
- return !n.integrations && s.length > 0 && (n.integrations = s), this.emit("preprocessEvent", t, n), t.type || o.setLastEventId(t.event_id || n.event_id), ks(i, t, n, r, this, o).then((a) => {
2457
+ return !n.integrations && s.length > 0 && (n.integrations = s), this.emit("preprocessEvent", t, n), t.type || o.setLastEventId(t.event_id || n.event_id), Ns(i, t, n, r, this, o).then((a) => {
2446
2458
  if (a === null)
2447
2459
  return a;
2448
2460
  const c = {
@@ -2459,7 +2471,7 @@ class Gs {
2459
2471
  }),
2460
2472
  ...a.contexts
2461
2473
  };
2462
- const p = f || ro(d, this);
2474
+ const p = f || so(d, this);
2463
2475
  a.sdkProcessingMetadata = {
2464
2476
  dynamicSamplingContext: p,
2465
2477
  ...a.sdkProcessingMetadata
@@ -2499,7 +2511,7 @@ class Gs {
2499
2511
  * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.
2500
2512
  */
2501
2513
  _processEvent(t, n, r) {
2502
- const o = this.getOptions(), { sampleRate: i } = o, s = uo(t), a = co(t), c = t.type || "error", l = `before send for type \`${c}\``, d = typeof i > "u" ? void 0 : ps(i);
2514
+ const o = this.getOptions(), { sampleRate: i } = o, s = _o(t), a = fo(t), c = t.type || "error", l = `before send for type \`${c}\``, d = typeof i > "u" ? void 0 : gs(i);
2503
2515
  if (a && typeof d == "number" && Math.random() > d)
2504
2516
  return this.recordDroppedEvent("sample_rate", "error", t), It(
2505
2517
  new ae(
@@ -2513,8 +2525,8 @@ class Gs {
2513
2525
  throw this.recordDroppedEvent("event_processor", u, t), new ae("An event processor returned `null`, will not send event.", "log");
2514
2526
  if (n.data && n.data.__sentry__ === !0)
2515
2527
  return p;
2516
- const y = Xs(this, o, p, n);
2517
- return qs(y, l);
2528
+ const y = Vs(this, o, p, n);
2529
+ return zs(y, l);
2518
2530
  }).then((p) => {
2519
2531
  if (p === null) {
2520
2532
  if (this.recordDroppedEvent("before_send", u, t), s) {
@@ -2587,7 +2599,7 @@ Reason: ${p}`
2587
2599
  return;
2588
2600
  }
2589
2601
  N && g.log("Sending outcomes:", t);
2590
- const n = Mi(t, this._options.tunnel && $t(this._dsn));
2602
+ const n = Fi(t, this._options.tunnel && $t(this._dsn));
2591
2603
  this.sendEnvelope(n);
2592
2604
  }
2593
2605
  /**
@@ -2595,7 +2607,7 @@ Reason: ${p}`
2595
2607
  */
2596
2608
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2597
2609
  }
2598
- function qs(e, t) {
2610
+ function zs(e, t) {
2599
2611
  const n = `${t} must return \`null\` or a valid event.`;
2600
2612
  if (Mt(e))
2601
2613
  return e.then(
@@ -2612,11 +2624,11 @@ function qs(e, t) {
2612
2624
  throw new ae(n);
2613
2625
  return e;
2614
2626
  }
2615
- function Xs(e, t, n, r) {
2627
+ function Vs(e, t, n, r) {
2616
2628
  const { beforeSend: o, beforeSendTransaction: i, beforeSendSpan: s } = t;
2617
- if (co(n) && o)
2629
+ if (fo(n) && o)
2618
2630
  return o(n, r);
2619
- if (uo(n)) {
2631
+ if (_o(n)) {
2620
2632
  if (n.spans && s) {
2621
2633
  const a = [];
2622
2634
  for (const c of n.spans) {
@@ -2638,46 +2650,46 @@ function Xs(e, t, n, r) {
2638
2650
  }
2639
2651
  return n;
2640
2652
  }
2641
- function co(e) {
2653
+ function fo(e) {
2642
2654
  return e.type === void 0;
2643
2655
  }
2644
- function uo(e) {
2656
+ function _o(e) {
2645
2657
  return e.type === "transaction";
2646
2658
  }
2647
- function Ws(e, t) {
2659
+ function Ks(e, t) {
2648
2660
  t.debug === !0 && (N ? g.enable() : it(() => {
2649
2661
  console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");
2650
2662
  })), te().update(t.initialScope);
2651
2663
  const r = new e(t);
2652
- return zs(r), r.init(), r;
2664
+ return Js(r), r.init(), r;
2653
2665
  }
2654
- function zs(e) {
2666
+ function Js(e) {
2655
2667
  te().setClient(e);
2656
2668
  }
2657
- const Vs = 64;
2658
- function Ks(e, t, n = Ei(
2659
- e.bufferSize || Vs
2669
+ const Zs = 64;
2670
+ function Qs(e, t, n = wi(
2671
+ e.bufferSize || Zs
2660
2672
  )) {
2661
2673
  let r = {};
2662
2674
  const o = (s) => n.drain(s);
2663
2675
  function i(s) {
2664
2676
  const a = [];
2665
- if (Jn(s, (u, _) => {
2666
- const f = Zn(_);
2667
- if (Pi(r, f)) {
2668
- const p = fr(u, _);
2677
+ if (er(s, (u, _) => {
2678
+ const f = tr(_);
2679
+ if (Hi(r, f)) {
2680
+ const p = hr(u, _);
2669
2681
  e.recordDroppedEvent("ratelimit_backoff", f, p);
2670
2682
  } else
2671
2683
  a.push(u);
2672
2684
  }), a.length === 0)
2673
2685
  return Ie({});
2674
2686
  const c = at(s[0], a), l = (u) => {
2675
- Jn(c, (_, f) => {
2676
- const p = fr(_, f);
2677
- e.recordDroppedEvent(u, Zn(f), p);
2687
+ er(c, (_, f) => {
2688
+ const p = hr(_, f);
2689
+ e.recordDroppedEvent(u, tr(f), p);
2678
2690
  });
2679
- }, d = () => t({ body: Ii(c) }).then(
2680
- (u) => (u.statusCode !== void 0 && (u.statusCode < 200 || u.statusCode >= 300) && N && g.warn(`Sentry responded with status code ${u.statusCode} to sent event.`), r = Ai(r, u), u),
2691
+ }, d = () => t({ body: Ri(c) }).then(
2692
+ (u) => (u.statusCode !== void 0 && (u.statusCode < 200 || u.statusCode >= 300) && N && g.warn(`Sentry responded with status code ${u.statusCode} to sent event.`), r = ji(r, u), u),
2681
2693
  (u) => {
2682
2694
  throw l("network_error"), u;
2683
2695
  }
@@ -2696,49 +2708,49 @@ function Ks(e, t, n = Ei(
2696
2708
  flush: o
2697
2709
  };
2698
2710
  }
2699
- function fr(e, t) {
2711
+ function hr(e, t) {
2700
2712
  if (!(t !== "event" && t !== "transaction"))
2701
2713
  return Array.isArray(e) ? e[1] : void 0;
2702
2714
  }
2703
- function Js(e, t, n = [t], r = "npm") {
2715
+ function ea(e, t, n = [t], r = "npm") {
2704
2716
  const o = e._metadata || {};
2705
2717
  o.sdk || (o.sdk = {
2706
2718
  name: `sentry.javascript.${t}`,
2707
2719
  packages: n.map((i) => ({
2708
2720
  name: `${r}:@sentry/${i}`,
2709
- version: Se
2721
+ version: ve
2710
2722
  })),
2711
- version: Se
2723
+ version: ve
2712
2724
  }), e._metadata = o;
2713
2725
  }
2714
- const Zs = 100;
2726
+ const ta = 100;
2715
2727
  function Te(e, t) {
2716
2728
  const n = F(), r = We();
2717
2729
  if (!n)
2718
2730
  return;
2719
- const { beforeBreadcrumb: o = null, maxBreadcrumbs: i = Zs } = n.getOptions();
2731
+ const { beforeBreadcrumb: o = null, maxBreadcrumbs: i = ta } = n.getOptions();
2720
2732
  if (i <= 0)
2721
2733
  return;
2722
2734
  const a = { timestamp: st(), ...e }, c = o ? it(() => o(a, t)) : a;
2723
2735
  c !== null && (n.emit && n.emit("beforeAddBreadcrumb", c, t), r.addBreadcrumb(c, i));
2724
2736
  }
2725
- let _r;
2726
- const Qs = "FunctionToString", pr = /* @__PURE__ */ new WeakMap(), ea = () => ({
2727
- name: Qs,
2737
+ let mr;
2738
+ const na = "FunctionToString", gr = /* @__PURE__ */ new WeakMap(), ra = () => ({
2739
+ name: na,
2728
2740
  setupOnce() {
2729
- _r = Function.prototype.toString;
2741
+ mr = Function.prototype.toString;
2730
2742
  try {
2731
2743
  Function.prototype.toString = function(...e) {
2732
- const t = bn(this), n = pr.has(F()) && t !== void 0 ? t : this;
2733
- return _r.apply(n, e);
2744
+ const t = bn(this), n = gr.has(F()) && t !== void 0 ? t : this;
2745
+ return mr.apply(n, e);
2734
2746
  };
2735
2747
  } catch {
2736
2748
  }
2737
2749
  },
2738
2750
  setup(e) {
2739
- pr.set(e, !0);
2751
+ gr.set(e, !0);
2740
2752
  }
2741
- }), ta = ea, na = [
2753
+ }), oa = ra, ia = [
2742
2754
  /^Script error\.?$/,
2743
2755
  /^Javascript error: Script error\.? on line 0$/,
2744
2756
  /^ResizeObserver loop completed with undelivered notifications.$/,
@@ -2753,46 +2765,46 @@ const Qs = "FunctionToString", pr = /* @__PURE__ */ new WeakMap(), ea = () => ({
2753
2765
  // Error thrown by GTM, seemingly not affecting end-users
2754
2766
  "Can't find variable: _AutofillCallbackHandler"
2755
2767
  // Unactionable error in instagram webview https://developers.facebook.com/community/threads/320013549791141/
2756
- ], ra = "InboundFilters", oa = (e = {}) => ({
2757
- name: ra,
2768
+ ], sa = "InboundFilters", aa = (e = {}) => ({
2769
+ name: sa,
2758
2770
  processEvent(t, n, r) {
2759
- const o = r.getOptions(), i = sa(e, o);
2760
- return aa(t, i) ? null : t;
2771
+ const o = r.getOptions(), i = ua(e, o);
2772
+ return la(t, i) ? null : t;
2761
2773
  }
2762
- }), ia = oa;
2763
- function sa(e = {}, t = {}) {
2774
+ }), ca = aa;
2775
+ function ua(e = {}, t = {}) {
2764
2776
  return {
2765
2777
  allowUrls: [...e.allowUrls || [], ...t.allowUrls || []],
2766
2778
  denyUrls: [...e.denyUrls || [], ...t.denyUrls || []],
2767
2779
  ignoreErrors: [
2768
2780
  ...e.ignoreErrors || [],
2769
2781
  ...t.ignoreErrors || [],
2770
- ...e.disableErrorDefaults ? [] : na
2782
+ ...e.disableErrorDefaults ? [] : ia
2771
2783
  ],
2772
2784
  ignoreTransactions: [...e.ignoreTransactions || [], ...t.ignoreTransactions || []],
2773
2785
  ignoreInternal: e.ignoreInternal !== void 0 ? e.ignoreInternal : !0
2774
2786
  };
2775
2787
  }
2776
- function aa(e, t) {
2777
- return t.ignoreInternal && _a(e) ? (N && g.warn(`Event dropped due to being internal Sentry Error.
2778
- Event: ${ye(e)}`), !0) : ca(e, t.ignoreErrors) ? (N && g.warn(
2788
+ function la(e, t) {
2789
+ return t.ignoreInternal && ma(e) ? (N && g.warn(`Event dropped due to being internal Sentry Error.
2790
+ Event: ${ye(e)}`), !0) : da(e, t.ignoreErrors) ? (N && g.warn(
2779
2791
  `Event dropped due to being matched by \`ignoreErrors\` option.
2780
2792
  Event: ${ye(e)}`
2781
- ), !0) : ha(e) ? (N && g.warn(
2793
+ ), !0) : ya(e) ? (N && g.warn(
2782
2794
  `Event dropped due to not having an error message, error type or stacktrace.
2783
2795
  Event: ${ye(
2784
2796
  e
2785
2797
  )}`
2786
- ), !0) : ua(e, t.ignoreTransactions) ? (N && g.warn(
2798
+ ), !0) : fa(e, t.ignoreTransactions) ? (N && g.warn(
2787
2799
  `Event dropped due to being matched by \`ignoreTransactions\` option.
2788
2800
  Event: ${ye(e)}`
2789
- ), !0) : la(e, t.denyUrls) ? (N && g.warn(
2801
+ ), !0) : _a(e, t.denyUrls) ? (N && g.warn(
2790
2802
  `Event dropped due to being matched by \`denyUrls\` option.
2791
2803
  Event: ${ye(
2792
2804
  e
2793
2805
  )}.
2794
2806
  Url: ${Dt(e)}`
2795
- ), !0) : da(e, t.allowUrls) ? !1 : (N && g.warn(
2807
+ ), !0) : pa(e, t.allowUrls) ? !1 : (N && g.warn(
2796
2808
  `Event dropped due to not being matched by \`allowUrls\` option.
2797
2809
  Event: ${ye(
2798
2810
  e
@@ -2800,28 +2812,28 @@ Event: ${ye(
2800
2812
  Url: ${Dt(e)}`
2801
2813
  ), !0);
2802
2814
  }
2803
- function ca(e, t) {
2804
- return e.type || !t || !t.length ? !1 : fa(e).some((n) => Ot(n, t));
2815
+ function da(e, t) {
2816
+ return e.type || !t || !t.length ? !1 : ha(e).some((n) => Ot(n, t));
2805
2817
  }
2806
- function ua(e, t) {
2818
+ function fa(e, t) {
2807
2819
  if (e.type !== "transaction" || !t || !t.length)
2808
2820
  return !1;
2809
2821
  const n = e.transaction;
2810
2822
  return n ? Ot(n, t) : !1;
2811
2823
  }
2812
- function la(e, t) {
2824
+ function _a(e, t) {
2813
2825
  if (!t || !t.length)
2814
2826
  return !1;
2815
2827
  const n = Dt(e);
2816
2828
  return n ? Ot(n, t) : !1;
2817
2829
  }
2818
- function da(e, t) {
2830
+ function pa(e, t) {
2819
2831
  if (!t || !t.length)
2820
2832
  return !0;
2821
2833
  const n = Dt(e);
2822
2834
  return n ? Ot(n, t) : !0;
2823
2835
  }
2824
- function fa(e) {
2836
+ function ha(e) {
2825
2837
  const t = [];
2826
2838
  e.message && t.push(e.message);
2827
2839
  let n;
@@ -2831,14 +2843,14 @@ function fa(e) {
2831
2843
  }
2832
2844
  return n && n.value && (t.push(n.value), n.type && t.push(`${n.type}: ${n.value}`)), t;
2833
2845
  }
2834
- function _a(e) {
2846
+ function ma(e) {
2835
2847
  try {
2836
2848
  return e.exception.values[0].type === "SentryError";
2837
2849
  } catch {
2838
2850
  }
2839
2851
  return !1;
2840
2852
  }
2841
- function pa(e = []) {
2853
+ function ga(e = []) {
2842
2854
  for (let t = e.length - 1; t >= 0; t--) {
2843
2855
  const n = e[t];
2844
2856
  if (n && n.filename !== "<anonymous>" && n.filename !== "[native code]")
@@ -2853,47 +2865,47 @@ function Dt(e) {
2853
2865
  t = e.exception.values[0].stacktrace.frames;
2854
2866
  } catch {
2855
2867
  }
2856
- return t ? pa(t) : null;
2868
+ return t ? ga(t) : null;
2857
2869
  } catch {
2858
2870
  return N && g.error(`Cannot extract url for event ${ye(e)}`), null;
2859
2871
  }
2860
2872
  }
2861
- function ha(e) {
2873
+ function ya(e) {
2862
2874
  return e.type || !e.exception || !e.exception.values || e.exception.values.length === 0 ? !1 : (
2863
2875
  // No top-level message
2864
2876
  !e.message && // There are no exception values that have a stacktrace, a non-generic-Error type or value
2865
2877
  !e.exception.values.some((t) => t.stacktrace || t.type && t.type !== "Error" || t.value)
2866
2878
  );
2867
2879
  }
2868
- const ma = "Dedupe", ga = () => {
2880
+ const ba = "Dedupe", Ea = () => {
2869
2881
  let e;
2870
2882
  return {
2871
- name: ma,
2883
+ name: ba,
2872
2884
  processEvent(t) {
2873
2885
  if (t.type)
2874
2886
  return t;
2875
2887
  try {
2876
- if (ba(t, e))
2888
+ if (Sa(t, e))
2877
2889
  return N && g.warn("Event dropped due to being a duplicate of previously captured event."), null;
2878
2890
  } catch {
2879
2891
  }
2880
2892
  return e = t;
2881
2893
  }
2882
2894
  };
2883
- }, ya = ga;
2884
- function ba(e, t) {
2885
- return t ? !!(Ea(e, t) || Sa(e, t)) : !1;
2895
+ }, va = Ea;
2896
+ function Sa(e, t) {
2897
+ return t ? !!(wa(e, t) || ka(e, t)) : !1;
2886
2898
  }
2887
- function Ea(e, t) {
2899
+ function wa(e, t) {
2888
2900
  const n = e.message, r = t.message;
2889
- return !(!n && !r || n && !r || !n && r || n !== r || !fo(e, t) || !lo(e, t));
2901
+ return !(!n && !r || n && !r || !n && r || n !== r || !ho(e, t) || !po(e, t));
2890
2902
  }
2891
- function Sa(e, t) {
2892
- const n = hr(t), r = hr(e);
2893
- return !(!n || !r || n.type !== r.type || n.value !== r.value || !fo(e, t) || !lo(e, t));
2903
+ function ka(e, t) {
2904
+ const n = yr(t), r = yr(e);
2905
+ return !(!n || !r || n.type !== r.type || n.value !== r.value || !ho(e, t) || !po(e, t));
2894
2906
  }
2895
- function lo(e, t) {
2896
- let n = Xn(e), r = Xn(t);
2907
+ function po(e, t) {
2908
+ let n = Vn(e), r = Vn(t);
2897
2909
  if (!n && !r)
2898
2910
  return !0;
2899
2911
  if (n && !r || !n && r || (n = n, r = r, r.length !== n.length))
@@ -2905,7 +2917,7 @@ function lo(e, t) {
2905
2917
  }
2906
2918
  return !0;
2907
2919
  }
2908
- function fo(e, t) {
2920
+ function ho(e, t) {
2909
2921
  let n = e.fingerprint, r = t.fingerprint;
2910
2922
  if (!n && !r)
2911
2923
  return !0;
@@ -2918,10 +2930,10 @@ function fo(e, t) {
2918
2930
  return !1;
2919
2931
  }
2920
2932
  }
2921
- function hr(e) {
2933
+ function yr(e) {
2922
2934
  return e.exception && e.exception.values && e.exception.values[0];
2923
2935
  }
2924
- function va(e, t = {}, n = te()) {
2936
+ function xa(e, t = {}, n = te()) {
2925
2937
  const { message: r, name: o, email: i, url: s, source: a, associatedEventId: c, tags: l } = e, d = {
2926
2938
  contexts: {
2927
2939
  feedback: z({
@@ -2941,10 +2953,10 @@ function va(e, t = {}, n = te()) {
2941
2953
  }
2942
2954
  const x = w;
2943
2955
  let on = 0;
2944
- function _o() {
2956
+ function mo() {
2945
2957
  return on > 0;
2946
2958
  }
2947
- function wa() {
2959
+ function Ca() {
2948
2960
  on++, setTimeout(() => {
2949
2961
  on--;
2950
2962
  });
@@ -2968,11 +2980,11 @@ function Ye(e, t = {}, n) {
2968
2980
  const i = o.map((s) => Ye(s, t));
2969
2981
  return e.apply(this, i);
2970
2982
  } catch (i) {
2971
- throw wa(), Ki((s) => {
2983
+ throw Ca(), Qi((s) => {
2972
2984
  s.addEventProcessor((a) => (t.mechanism && (Qt(a, void 0, void 0), nt(a, t.mechanism)), a.extra = {
2973
2985
  ...a.extra,
2974
2986
  arguments: o
2975
- }, a)), $s(i);
2987
+ }, a)), As(i);
2976
2988
  }), i;
2977
2989
  }
2978
2990
  };
@@ -2981,7 +2993,7 @@ function Ye(e, t = {}, n) {
2981
2993
  Object.prototype.hasOwnProperty.call(e, o) && (r[o] = e[o]);
2982
2994
  } catch {
2983
2995
  }
2984
- qr(r, e), Ce(e, "__sentry_wrapped__", r);
2996
+ zr(r, e), Ce(e, "__sentry_wrapped__", r);
2985
2997
  try {
2986
2998
  Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", {
2987
2999
  get() {
@@ -2996,13 +3008,13 @@ const ct = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
2996
3008
  function kn(e, t) {
2997
3009
  const n = xn(e, t), r = {
2998
3010
  type: t && t.name,
2999
- value: Ia(t)
3011
+ value: Ra(t)
3000
3012
  };
3001
3013
  return n.length && (r.stacktrace = { frames: n }), r.type === void 0 && r.value === "" && (r.value = "Unrecoverable error caught"), r;
3002
3014
  }
3003
- function ka(e, t, n, r) {
3004
- const o = F(), i = o && o.getOptions().normalizeDepth, s = Ma(t), a = {
3005
- __serialized__: Qr(t, i)
3015
+ function Na(e, t, n, r) {
3016
+ const o = F(), i = o && o.getOptions().normalizeDepth, s = Fa(t), a = {
3017
+ __serialized__: no(t, i)
3006
3018
  };
3007
3019
  if (s)
3008
3020
  return {
@@ -3016,7 +3028,7 @@ function ka(e, t, n, r) {
3016
3028
  values: [
3017
3029
  {
3018
3030
  type: Lt(t) ? t.constructor.name : r ? "UnhandledRejection" : "Error",
3019
- value: Ra(t, { isUnhandledRejection: r })
3031
+ value: Oa(t, { isUnhandledRejection: r })
3020
3032
  }
3021
3033
  ]
3022
3034
  },
@@ -3036,47 +3048,47 @@ function Bt(e, t) {
3036
3048
  };
3037
3049
  }
3038
3050
  function xn(e, t) {
3039
- const n = t.stacktrace || t.stack || "", r = Ca(t), o = Na(t);
3051
+ const n = t.stacktrace || t.stack || "", r = Ta(t), o = Da(t);
3040
3052
  try {
3041
3053
  return e(n, r, o);
3042
3054
  } catch {
3043
3055
  }
3044
3056
  return [];
3045
3057
  }
3046
- const xa = /Minified React error #\d+;/i;
3047
- function Ca(e) {
3048
- return e && xa.test(e.message) ? 1 : 0;
3058
+ const Ia = /Minified React error #\d+;/i;
3059
+ function Ta(e) {
3060
+ return e && Ia.test(e.message) ? 1 : 0;
3049
3061
  }
3050
- function Na(e) {
3062
+ function Da(e) {
3051
3063
  return typeof e.framesToPop == "number" ? e.framesToPop : 0;
3052
3064
  }
3053
- function Ia(e) {
3065
+ function Ra(e) {
3054
3066
  const t = e && e.message;
3055
3067
  return t ? t.error && typeof t.error.message == "string" ? t.error.message : t : "No error message";
3056
3068
  }
3057
- function Ta(e, t, n, r) {
3069
+ function La(e, t, n, r) {
3058
3070
  const o = n && n.syntheticException || void 0, i = Cn(e, t, o, r);
3059
3071
  return nt(i), i.level = "error", n && n.event_id && (i.event_id = n.event_id), Ie(i);
3060
3072
  }
3061
- function Da(e, t, n = "info", r, o) {
3073
+ function Ma(e, t, n = "info", r, o) {
3062
3074
  const i = r && r.syntheticException || void 0, s = sn(e, t, i, o);
3063
3075
  return s.level = n, r && r.event_id && (s.event_id = r.event_id), Ie(s);
3064
3076
  }
3065
3077
  function Cn(e, t, n, r, o) {
3066
3078
  let i;
3067
- if (Hr(t) && t.error)
3079
+ if (Yr(t) && t.error)
3068
3080
  return Bt(e, t.error);
3069
- if (An(t) || Ro(t)) {
3081
+ if (jn(t) || Oo(t)) {
3070
3082
  const s = t;
3071
3083
  if ("stack" in t)
3072
3084
  i = Bt(e, t);
3073
3085
  else {
3074
- const a = s.name || (An(s) ? "DOMError" : "DOMException"), c = s.message ? `${a}: ${s.message}` : a;
3086
+ const a = s.name || (jn(s) ? "DOMError" : "DOMException"), c = s.message ? `${a}: ${s.message}` : a;
3075
3087
  i = sn(e, c, n, r), Qt(i, c);
3076
3088
  }
3077
3089
  return "code" in s && (i.tags = { ...i.tags, "DOMException.code": `${s.code}` }), i;
3078
3090
  }
3079
- return pn(t) ? Bt(e, t) : He(t) || Lt(t) ? (i = ka(e, t, n, o), nt(i, {
3091
+ return pn(t) ? Bt(e, t) : He(t) || Lt(t) ? (i = Na(e, t, n, o), nt(i, {
3080
3092
  synthetic: !0
3081
3093
  }), i) : (i = sn(e, t, n, r), Qt(i, `${t}`, void 0), nt(i, {
3082
3094
  synthetic: !0
@@ -3099,18 +3111,18 @@ function sn(e, t, n, r) {
3099
3111
  }
3100
3112
  return o.message = t, o;
3101
3113
  }
3102
- function Ra(e, { isUnhandledRejection: t }) {
3103
- const n = Vo(e), r = t ? "promise rejection" : "exception";
3104
- return Hr(e) ? `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\`` : Lt(e) ? `Event \`${La(e)}\` (type=${e.type}) captured as ${r}` : `Object captured as ${r} with keys: ${n}`;
3114
+ function Oa(e, { isUnhandledRejection: t }) {
3115
+ const n = Zo(e), r = t ? "promise rejection" : "exception";
3116
+ return Yr(e) ? `Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\`` : Lt(e) ? `Event \`${$a(e)}\` (type=${e.type}) captured as ${r}` : `Object captured as ${r} with keys: ${n}`;
3105
3117
  }
3106
- function La(e) {
3118
+ function $a(e) {
3107
3119
  try {
3108
3120
  const t = Object.getPrototypeOf(e);
3109
3121
  return t ? t.constructor.name : void 0;
3110
3122
  } catch {
3111
3123
  }
3112
3124
  }
3113
- function Ma(e) {
3125
+ function Fa(e) {
3114
3126
  for (const t in e)
3115
3127
  if (Object.prototype.hasOwnProperty.call(e, t)) {
3116
3128
  const n = e[t];
@@ -3118,7 +3130,7 @@ function Ma(e) {
3118
3130
  return n;
3119
3131
  }
3120
3132
  }
3121
- function Oa(e, {
3133
+ function Pa(e, {
3122
3134
  metadata: t,
3123
3135
  tunnel: n,
3124
3136
  dsn: r
@@ -3133,15 +3145,15 @@ function Oa(e, {
3133
3145
  }
3134
3146
  },
3135
3147
  ...!!n && !!r && { dsn: $t(r) }
3136
- }, i = $a(e);
3148
+ }, i = Aa(e);
3137
3149
  return at(o, [i]);
3138
3150
  }
3139
- function $a(e) {
3151
+ function Aa(e) {
3140
3152
  return [{
3141
3153
  type: "user_report"
3142
3154
  }, e];
3143
3155
  }
3144
- class Fa extends Gs {
3156
+ class Ua extends Ws {
3145
3157
  /**
3146
3158
  * Creates a new Browser SDK instance.
3147
3159
  *
@@ -3152,8 +3164,8 @@ class Fa extends Gs {
3152
3164
  // We default this to true, as it is the safer scenario
3153
3165
  parentSpanIsAlwaysRootSpan: !0,
3154
3166
  ...t
3155
- }, r = x.SENTRY_SDK_SOURCE || di();
3156
- Js(n, "browser", ["browser"], r), super(n), n.sendClientReports && x.document && x.document.addEventListener("visibilitychange", () => {
3167
+ }, r = x.SENTRY_SDK_SOURCE || pi();
3168
+ ea(n, "browser", ["browser"], r), super(n), n.sendClientReports && x.document && x.document.addEventListener("visibilitychange", () => {
3157
3169
  x.document.visibilityState === "hidden" && this._flushOutcomes();
3158
3170
  });
3159
3171
  }
@@ -3161,13 +3173,13 @@ class Fa extends Gs {
3161
3173
  * @inheritDoc
3162
3174
  */
3163
3175
  eventFromException(t, n) {
3164
- return Ta(this._options.stackParser, t, n, this._options.attachStacktrace);
3176
+ return La(this._options.stackParser, t, n, this._options.attachStacktrace);
3165
3177
  }
3166
3178
  /**
3167
3179
  * @inheritDoc
3168
3180
  */
3169
3181
  eventFromMessage(t, n = "info", r) {
3170
- return Da(this._options.stackParser, t, n, r, this._options.attachStacktrace);
3182
+ return Ma(this._options.stackParser, t, n, r, this._options.attachStacktrace);
3171
3183
  }
3172
3184
  /**
3173
3185
  * Sends user feedback to Sentry.
@@ -3179,7 +3191,7 @@ class Fa extends Gs {
3179
3191
  ct && g.warn("SDK not enabled, will not capture user feedback.");
3180
3192
  return;
3181
3193
  }
3182
- const n = Oa(t, {
3194
+ const n = Pa(t, {
3183
3195
  metadata: this.getSdkMetadata(),
3184
3196
  dsn: this.getDsn(),
3185
3197
  tunnel: this.getOptions().tunnel
@@ -3193,16 +3205,16 @@ class Fa extends Gs {
3193
3205
  return t.platform = t.platform || "javascript", super._prepareEvent(t, n, r);
3194
3206
  }
3195
3207
  }
3196
- const Pa = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, j = w, Aa = 1e3;
3197
- let mr, an, cn;
3198
- function Ua(e) {
3208
+ const Ha = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, j = w, ja = 1e3;
3209
+ let br, an, cn;
3210
+ function Ba(e) {
3199
3211
  const t = "dom";
3200
- De(t, e), Re(t, Ha);
3212
+ De(t, e), Re(t, Ya);
3201
3213
  }
3202
- function Ha() {
3214
+ function Ya() {
3203
3215
  if (!j.document)
3204
3216
  return;
3205
- const e = oe.bind(null, "dom"), t = gr(e, !0);
3217
+ const e = oe.bind(null, "dom"), t = Er(e, !0);
3206
3218
  j.document.addEventListener("click", t, !1), j.document.addEventListener("keypress", t, !1), ["EventTarget", "Node"].forEach((n) => {
3207
3219
  const r = j[n] && j[n].prototype;
3208
3220
  !r || !r.hasOwnProperty || !r.hasOwnProperty("addEventListener") || (W(r, "addEventListener", function(o) {
@@ -3211,7 +3223,7 @@ function Ha() {
3211
3223
  try {
3212
3224
  const c = this, l = c.__sentry_instrumentation_handlers__ = c.__sentry_instrumentation_handlers__ || {}, d = l[i] = l[i] || { refCount: 0 };
3213
3225
  if (!d.handler) {
3214
- const u = gr(e);
3226
+ const u = Er(e);
3215
3227
  d.handler = u, o.call(this, i, u, a);
3216
3228
  }
3217
3229
  d.refCount++;
@@ -3236,7 +3248,7 @@ function Ha() {
3236
3248
  ));
3237
3249
  });
3238
3250
  }
3239
- function ja(e) {
3251
+ function Ga(e) {
3240
3252
  if (e.type !== an)
3241
3253
  return !1;
3242
3254
  try {
@@ -3246,24 +3258,24 @@ function ja(e) {
3246
3258
  }
3247
3259
  return !0;
3248
3260
  }
3249
- function Ba(e, t) {
3261
+ function qa(e, t) {
3250
3262
  return e !== "keypress" ? !1 : !t || !t.tagName ? !0 : !(t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable);
3251
3263
  }
3252
- function gr(e, t = !1) {
3264
+ function Er(e, t = !1) {
3253
3265
  return (n) => {
3254
3266
  if (!n || n._sentryCaptured)
3255
3267
  return;
3256
- const r = Ya(n);
3257
- if (Ba(n.type, r))
3268
+ const r = Xa(n);
3269
+ if (qa(n.type, r))
3258
3270
  return;
3259
3271
  Ce(n, "_sentryCaptured", !0), r && !r._sentryId && Ce(r, "_sentryId", ee());
3260
3272
  const o = n.type === "keypress" ? "input" : n.type;
3261
- ja(n) || (e({ event: n, name: o, global: t }), an = n.type, cn = r ? r._sentryId : void 0), clearTimeout(mr), mr = j.setTimeout(() => {
3273
+ Ga(n) || (e({ event: n, name: o, global: t }), an = n.type, cn = r ? r._sentryId : void 0), clearTimeout(br), br = j.setTimeout(() => {
3262
3274
  cn = void 0, an = void 0;
3263
- }, Aa);
3275
+ }, ja);
3264
3276
  };
3265
3277
  }
3266
- function Ya(e) {
3278
+ function Xa(e) {
3267
3279
  try {
3268
3280
  return e.target;
3269
3281
  } catch {
@@ -3271,12 +3283,12 @@ function Ya(e) {
3271
3283
  }
3272
3284
  }
3273
3285
  let ht;
3274
- function po(e) {
3286
+ function go(e) {
3275
3287
  const t = "history";
3276
- De(t, e), Re(t, Ga);
3288
+ De(t, e), Re(t, Wa);
3277
3289
  }
3278
- function Ga() {
3279
- if (!Ui())
3290
+ function Wa() {
3291
+ if (!Bi())
3280
3292
  return;
3281
3293
  const e = j.onpopstate;
3282
3294
  j.onpopstate = function(...n) {
@@ -3299,14 +3311,14 @@ function Ga() {
3299
3311
  }
3300
3312
  W(j.history, "pushState", t), W(j.history, "replaceState", t);
3301
3313
  }
3302
- const St = {};
3303
- function qa(e) {
3304
- const t = St[e];
3314
+ const vt = {};
3315
+ function za(e) {
3316
+ const t = vt[e];
3305
3317
  if (t)
3306
3318
  return t;
3307
3319
  let n = j[e];
3308
3320
  if (Jt(n))
3309
- return St[e] = n.bind(j);
3321
+ return vt[e] = n.bind(j);
3310
3322
  const r = j.document;
3311
3323
  if (r && typeof r.createElement == "function")
3312
3324
  try {
@@ -3315,25 +3327,25 @@ function qa(e) {
3315
3327
  const i = o.contentWindow;
3316
3328
  i && i[e] && (n = i[e]), r.head.removeChild(o);
3317
3329
  } catch (o) {
3318
- Pa && g.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, o);
3330
+ Ha && g.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `, o);
3319
3331
  }
3320
- return n && (St[e] = n.bind(j));
3332
+ return n && (vt[e] = n.bind(j));
3321
3333
  }
3322
- function yr(e) {
3323
- St[e] = void 0;
3334
+ function vr(e) {
3335
+ vt[e] = void 0;
3324
3336
  }
3325
3337
  const Qe = "__sentry_xhr_v3__";
3326
- function Xa(e) {
3338
+ function Va(e) {
3327
3339
  const t = "xhr";
3328
- De(t, e), Re(t, Wa);
3340
+ De(t, e), Re(t, Ka);
3329
3341
  }
3330
- function Wa() {
3342
+ function Ka() {
3331
3343
  if (!j.XMLHttpRequest)
3332
3344
  return;
3333
3345
  const e = XMLHttpRequest.prototype;
3334
3346
  e.open = new Proxy(e.open, {
3335
3347
  apply(t, n, r) {
3336
- const o = _e() * 1e3, i = fe(r[0]) ? r[0].toUpperCase() : void 0, s = za(r[1]);
3348
+ const o = _e() * 1e3, i = fe(r[0]) ? r[0].toUpperCase() : void 0, s = Ja(r[1]);
3337
3349
  if (!i || !s)
3338
3350
  return t.apply(n, r);
3339
3351
  n[Qe] = {
@@ -3381,7 +3393,7 @@ function Wa() {
3381
3393
  }
3382
3394
  });
3383
3395
  }
3384
- function za(e) {
3396
+ function Ja(e) {
3385
3397
  if (fe(e))
3386
3398
  return e;
3387
3399
  try {
@@ -3389,7 +3401,7 @@ function za(e) {
3389
3401
  } catch {
3390
3402
  }
3391
3403
  }
3392
- function Va(e, t = qa("fetch")) {
3404
+ function Za(e, t = za("fetch")) {
3393
3405
  let n = 0, r = 0;
3394
3406
  function o(i) {
3395
3407
  const s = i.body.length;
@@ -3414,7 +3426,7 @@ function Va(e, t = qa("fetch")) {
3414
3426
  ...e.fetchOptions
3415
3427
  };
3416
3428
  if (!t)
3417
- return yr("fetch"), It("No fetch implementation available");
3429
+ return vr("fetch"), It("No fetch implementation available");
3418
3430
  try {
3419
3431
  return t(e.url, a).then((c) => (n -= s, r--, {
3420
3432
  statusCode: c.status,
@@ -3424,12 +3436,12 @@ function Va(e, t = qa("fetch")) {
3424
3436
  }
3425
3437
  }));
3426
3438
  } catch (c) {
3427
- return yr("fetch"), n -= s, r--, It(c);
3439
+ return vr("fetch"), n -= s, r--, It(c);
3428
3440
  }
3429
3441
  }
3430
- return Ks(e, o);
3442
+ return Qs(e, o);
3431
3443
  }
3432
- const Ka = 30, Ja = 50;
3444
+ const Qa = 30, ec = 50;
3433
3445
  function un(e, t, n, r) {
3434
3446
  const o = {
3435
3447
  filename: e,
@@ -3439,38 +3451,38 @@ function un(e, t, n, r) {
3439
3451
  };
3440
3452
  return n !== void 0 && (o.lineno = n), r !== void 0 && (o.colno = r), o;
3441
3453
  }
3442
- const Za = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Qa = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, ec = /\((\S*)(?::(\d+))(?::(\d+))\)/, tc = (e) => {
3443
- const t = Za.exec(e);
3454
+ const tc = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, nc = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, rc = /\((\S*)(?::(\d+))(?::(\d+))\)/, oc = (e) => {
3455
+ const t = tc.exec(e);
3444
3456
  if (t) {
3445
3457
  const [, r, o, i] = t;
3446
3458
  return un(r, Ne, +o, +i);
3447
3459
  }
3448
- const n = Qa.exec(e);
3460
+ const n = nc.exec(e);
3449
3461
  if (n) {
3450
3462
  if (n[2] && n[2].indexOf("eval") === 0) {
3451
- const s = ec.exec(n[2]);
3463
+ const s = rc.exec(n[2]);
3452
3464
  s && (n[2] = s[1], n[3] = s[2], n[4] = s[3]);
3453
3465
  }
3454
- const [o, i] = ho(n[1] || Ne, n[2]);
3466
+ const [o, i] = yo(n[1] || Ne, n[2]);
3455
3467
  return un(i, o, n[3] ? +n[3] : void 0, n[4] ? +n[4] : void 0);
3456
3468
  }
3457
- }, nc = [Ka, tc], rc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, oc = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, ic = (e) => {
3458
- const t = rc.exec(e);
3469
+ }, ic = [Qa, oc], sc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i, ac = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i, cc = (e) => {
3470
+ const t = sc.exec(e);
3459
3471
  if (t) {
3460
3472
  if (t[3] && t[3].indexOf(" > eval") > -1) {
3461
- const i = oc.exec(t[3]);
3473
+ const i = ac.exec(t[3]);
3462
3474
  i && (t[1] = t[1] || "eval", t[3] = i[1], t[4] = i[2], t[5] = "");
3463
3475
  }
3464
3476
  let r = t[3], o = t[1] || Ne;
3465
- return [o, r] = ho(o, r), un(r, o, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
3477
+ return [o, r] = yo(o, r), un(r, o, t[4] ? +t[4] : void 0, t[5] ? +t[5] : void 0);
3466
3478
  }
3467
- }, sc = [Ja, ic], ac = [nc, sc], cc = zr(...ac), ho = (e, t) => {
3479
+ }, uc = [ec, cc], lc = [ic, uc], dc = Jr(...lc), yo = (e, t) => {
3468
3480
  const n = e.indexOf("safari-extension") !== -1, r = e.indexOf("safari-web-extension") !== -1;
3469
3481
  return n || r ? [
3470
3482
  e.indexOf("@") !== -1 ? e.split("@")[0] : Ne,
3471
3483
  n ? `safari-extension:${t}` : `safari-web-extension:${t}`
3472
3484
  ] : [e, t];
3473
- }, mt = 1024, uc = "Breadcrumbs", lc = (e = {}) => {
3485
+ }, mt = 1024, fc = "Breadcrumbs", _c = (e = {}) => {
3474
3486
  const t = {
3475
3487
  console: !0,
3476
3488
  dom: !0,
@@ -3481,13 +3493,13 @@ const Za = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Qa = /^\s*at (?:(.+?\)(?: \
3481
3493
  ...e
3482
3494
  };
3483
3495
  return {
3484
- name: uc,
3496
+ name: fc,
3485
3497
  setup(n) {
3486
- t.console && Qo(pc(n)), t.dom && Ua(_c(n, t.dom)), t.xhr && Xa(hc(n)), t.fetch && ri(mc(n)), t.history && po(gc(n)), t.sentry && n.on("beforeSendEvent", fc(n));
3498
+ t.console && ni(gc(n)), t.dom && Ba(mc(n, t.dom)), t.xhr && Va(yc(n)), t.fetch && si(bc(n)), t.history && go(Ec(n)), t.sentry && n.on("beforeSendEvent", hc(n));
3487
3499
  }
3488
3500
  };
3489
- }, dc = lc;
3490
- function fc(e) {
3501
+ }, pc = _c;
3502
+ function hc(e) {
3491
3503
  return function(n) {
3492
3504
  F() === e && Te(
3493
3505
  {
@@ -3502,7 +3514,7 @@ function fc(e) {
3502
3514
  );
3503
3515
  };
3504
3516
  }
3505
- function _c(e, t) {
3517
+ function mc(e, t) {
3506
3518
  return function(r) {
3507
3519
  if (F() !== e)
3508
3520
  return;
@@ -3511,8 +3523,8 @@ function _c(e, t) {
3511
3523
  `\`dom.maxStringLength\` cannot exceed ${mt}, but a value of ${a} was configured. Sentry will use ${mt} instead.`
3512
3524
  ), a = mt), typeof s == "string" && (s = [s]);
3513
3525
  try {
3514
- const l = r.event, d = yc(l) ? l.target : l;
3515
- o = Br(d, { keyAttrs: s, maxStringLength: a }), i = Ho(d);
3526
+ const l = r.event, d = vc(l) ? l.target : l;
3527
+ o = qr(d, { keyAttrs: s, maxStringLength: a }), i = Yo(d);
3516
3528
  } catch {
3517
3529
  o = "<unknown>";
3518
3530
  }
@@ -3529,7 +3541,7 @@ function _c(e, t) {
3529
3541
  });
3530
3542
  };
3531
3543
  }
3532
- function pc(e) {
3544
+ function gc(e) {
3533
3545
  return function(n) {
3534
3546
  if (F() !== e)
3535
3547
  return;
@@ -3539,12 +3551,12 @@ function pc(e) {
3539
3551
  arguments: n.args,
3540
3552
  logger: "console"
3541
3553
  },
3542
- level: vi(n.level),
3543
- message: Un(n.args, " ")
3554
+ level: xi(n.level),
3555
+ message: Bn(n.args, " ")
3544
3556
  };
3545
3557
  if (n.level === "assert")
3546
3558
  if (n.args[0] === !1)
3547
- r.message = `Assertion failed: ${Un(n.args.slice(1), " ") || "console.assert"}`, r.data.arguments = n.args.slice(1);
3559
+ r.message = `Assertion failed: ${Bn(n.args.slice(1), " ") || "console.assert"}`, r.data.arguments = n.args.slice(1);
3548
3560
  else
3549
3561
  return;
3550
3562
  Te(r, {
@@ -3553,7 +3565,7 @@ function pc(e) {
3553
3565
  });
3554
3566
  };
3555
3567
  }
3556
- function hc(e) {
3568
+ function yc(e) {
3557
3569
  return function(n) {
3558
3570
  if (F() !== e)
3559
3571
  return;
@@ -3580,7 +3592,7 @@ function hc(e) {
3580
3592
  );
3581
3593
  };
3582
3594
  }
3583
- function mc(e) {
3595
+ function bc(e) {
3584
3596
  return function(n) {
3585
3597
  if (F() !== e)
3586
3598
  return;
@@ -3623,7 +3635,7 @@ function mc(e) {
3623
3635
  }
3624
3636
  };
3625
3637
  }
3626
- function gc(e) {
3638
+ function Ec(e) {
3627
3639
  return function(n) {
3628
3640
  if (F() !== e)
3629
3641
  return;
@@ -3640,10 +3652,10 @@ function gc(e) {
3640
3652
  });
3641
3653
  };
3642
3654
  }
3643
- function yc(e) {
3655
+ function vc(e) {
3644
3656
  return !!e && !!e.target;
3645
3657
  }
3646
- const bc = [
3658
+ const Sc = [
3647
3659
  "EventTarget",
3648
3660
  "Window",
3649
3661
  "Node",
@@ -3675,7 +3687,7 @@ const bc = [
3675
3687
  "XMLHttpRequest",
3676
3688
  "XMLHttpRequestEventTarget",
3677
3689
  "XMLHttpRequestUpload"
3678
- ], Ec = "BrowserApiErrors", Sc = (e = {}) => {
3690
+ ], wc = "BrowserApiErrors", kc = (e = {}) => {
3679
3691
  const t = {
3680
3692
  XMLHttpRequest: !0,
3681
3693
  eventTarget: !0,
@@ -3685,36 +3697,36 @@ const bc = [
3685
3697
  ...e
3686
3698
  };
3687
3699
  return {
3688
- name: Ec,
3700
+ name: wc,
3689
3701
  // TODO: This currently only works for the first client this is setup
3690
3702
  // We may want to adjust this to check for client etc.
3691
3703
  setupOnce() {
3692
- t.setTimeout && W(x, "setTimeout", br), t.setInterval && W(x, "setInterval", br), t.requestAnimationFrame && W(x, "requestAnimationFrame", wc), t.XMLHttpRequest && "XMLHttpRequest" in x && W(XMLHttpRequest.prototype, "send", kc);
3704
+ t.setTimeout && W(x, "setTimeout", Sr), t.setInterval && W(x, "setInterval", Sr), t.requestAnimationFrame && W(x, "requestAnimationFrame", Cc), t.XMLHttpRequest && "XMLHttpRequest" in x && W(XMLHttpRequest.prototype, "send", Nc);
3693
3705
  const n = t.eventTarget;
3694
- n && (Array.isArray(n) ? n : bc).forEach(xc);
3706
+ n && (Array.isArray(n) ? n : Sc).forEach(Ic);
3695
3707
  }
3696
3708
  };
3697
- }, vc = Sc;
3698
- function br(e) {
3709
+ }, xc = kc;
3710
+ function Sr(e) {
3699
3711
  return function(...t) {
3700
3712
  const n = t[0];
3701
3713
  return t[0] = Ye(n, {
3702
3714
  mechanism: {
3703
- data: { function: ve(e) },
3715
+ data: { function: Se(e) },
3704
3716
  handled: !1,
3705
3717
  type: "instrument"
3706
3718
  }
3707
3719
  }), e.apply(this, t);
3708
3720
  };
3709
3721
  }
3710
- function wc(e) {
3722
+ function Cc(e) {
3711
3723
  return function(t) {
3712
3724
  return e.apply(this, [
3713
3725
  Ye(t, {
3714
3726
  mechanism: {
3715
3727
  data: {
3716
3728
  function: "requestAnimationFrame",
3717
- handler: ve(e)
3729
+ handler: Se(e)
3718
3730
  },
3719
3731
  handled: !1,
3720
3732
  type: "instrument"
@@ -3723,7 +3735,7 @@ function wc(e) {
3723
3735
  ]);
3724
3736
  };
3725
3737
  }
3726
- function kc(e) {
3738
+ function Nc(e) {
3727
3739
  return function(...t) {
3728
3740
  const n = this;
3729
3741
  return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((o) => {
@@ -3732,18 +3744,18 @@ function kc(e) {
3732
3744
  mechanism: {
3733
3745
  data: {
3734
3746
  function: o,
3735
- handler: ve(i)
3747
+ handler: Se(i)
3736
3748
  },
3737
3749
  handled: !1,
3738
3750
  type: "instrument"
3739
3751
  }
3740
3752
  }, a = bn(i);
3741
- return a && (s.mechanism.data.handler = ve(a)), Ye(i, s);
3753
+ return a && (s.mechanism.data.handler = Se(a)), Ye(i, s);
3742
3754
  });
3743
3755
  }), e.apply(this, t);
3744
3756
  };
3745
3757
  }
3746
- function xc(e) {
3758
+ function Ic(e) {
3747
3759
  const t = x, n = t[e] && t[e].prototype;
3748
3760
  !n || !n.hasOwnProperty || !n.hasOwnProperty("addEventListener") || (W(n, "addEventListener", function(r) {
3749
3761
  return function(o, i, s) {
@@ -3752,7 +3764,7 @@ function xc(e) {
3752
3764
  mechanism: {
3753
3765
  data: {
3754
3766
  function: "handleEvent",
3755
- handler: ve(i),
3767
+ handler: Se(i),
3756
3768
  target: e
3757
3769
  },
3758
3770
  handled: !1,
@@ -3768,7 +3780,7 @@ function xc(e) {
3768
3780
  mechanism: {
3769
3781
  data: {
3770
3782
  function: "addEventListener",
3771
- handler: ve(i),
3783
+ handler: Se(i),
3772
3784
  target: e
3773
3785
  },
3774
3786
  handled: !1,
@@ -3794,34 +3806,34 @@ function xc(e) {
3794
3806
  }
3795
3807
  ));
3796
3808
  }
3797
- const Cc = "GlobalHandlers", Nc = (e = {}) => {
3809
+ const Tc = "GlobalHandlers", Dc = (e = {}) => {
3798
3810
  const t = {
3799
3811
  onerror: !0,
3800
3812
  onunhandledrejection: !0,
3801
3813
  ...e
3802
3814
  };
3803
3815
  return {
3804
- name: Cc,
3816
+ name: Tc,
3805
3817
  setupOnce() {
3806
3818
  Error.stackTraceLimit = 50;
3807
3819
  },
3808
3820
  setup(n) {
3809
- t.onerror && (Tc(n), Er("onerror")), t.onunhandledrejection && (Dc(n), Er("onunhandledrejection"));
3821
+ t.onerror && (Lc(n), wr("onerror")), t.onunhandledrejection && (Mc(n), wr("onunhandledrejection"));
3810
3822
  }
3811
3823
  };
3812
- }, Ic = Nc;
3813
- function Tc(e) {
3814
- si((t) => {
3815
- const { stackParser: n, attachStacktrace: r } = mo();
3816
- if (F() !== e || _o())
3824
+ }, Rc = Dc;
3825
+ function Lc(e) {
3826
+ ui((t) => {
3827
+ const { stackParser: n, attachStacktrace: r } = bo();
3828
+ if (F() !== e || mo())
3817
3829
  return;
3818
- const { msg: o, url: i, line: s, column: a, error: c } = t, l = Mc(
3830
+ const { msg: o, url: i, line: s, column: a, error: c } = t, l = Fc(
3819
3831
  Cn(n, c || o, void 0, r, !1),
3820
3832
  i,
3821
3833
  s,
3822
3834
  a
3823
3835
  );
3824
- l.level = "error", oo(l, {
3836
+ l.level = "error", ao(l, {
3825
3837
  originalException: c,
3826
3838
  mechanism: {
3827
3839
  handled: !1,
@@ -3830,13 +3842,13 @@ function Tc(e) {
3830
3842
  });
3831
3843
  });
3832
3844
  }
3833
- function Dc(e) {
3834
- ci((t) => {
3835
- const { stackParser: n, attachStacktrace: r } = mo();
3836
- if (F() !== e || _o())
3845
+ function Mc(e) {
3846
+ di((t) => {
3847
+ const { stackParser: n, attachStacktrace: r } = bo();
3848
+ if (F() !== e || mo())
3837
3849
  return;
3838
- const o = Rc(t), i = mn(o) ? Lc(o) : Cn(n, o, void 0, r, !0);
3839
- i.level = "error", oo(i, {
3850
+ const o = Oc(t), i = mn(o) ? $c(o) : Cn(n, o, void 0, r, !0);
3851
+ i.level = "error", ao(i, {
3840
3852
  originalException: o,
3841
3853
  mechanism: {
3842
3854
  handled: !1,
@@ -3845,7 +3857,7 @@ function Dc(e) {
3845
3857
  });
3846
3858
  });
3847
3859
  }
3848
- function Rc(e) {
3860
+ function Oc(e) {
3849
3861
  if (mn(e))
3850
3862
  return e;
3851
3863
  try {
@@ -3857,7 +3869,7 @@ function Rc(e) {
3857
3869
  }
3858
3870
  return e;
3859
3871
  }
3860
- function Lc(e) {
3872
+ function $c(e) {
3861
3873
  return {
3862
3874
  exception: {
3863
3875
  values: [
@@ -3870,8 +3882,8 @@ function Lc(e) {
3870
3882
  }
3871
3883
  };
3872
3884
  }
3873
- function Mc(e, t, n, r) {
3874
- const o = e.exception = e.exception || {}, i = o.values = o.values || [], s = i[0] = i[0] || {}, a = s.stacktrace = s.stacktrace || {}, c = a.frames = a.frames || [], l = isNaN(parseInt(r, 10)) ? void 0 : r, d = isNaN(parseInt(n, 10)) ? void 0 : n, u = fe(t) && t.length > 0 ? t : Yr();
3885
+ function Fc(e, t, n, r) {
3886
+ const o = e.exception = e.exception || {}, i = o.values = o.values || [], s = i[0] = i[0] || {}, a = s.stacktrace = s.stacktrace || {}, c = a.frames = a.frames || [], l = isNaN(parseInt(r, 10)) ? void 0 : r, d = isNaN(parseInt(n, 10)) ? void 0 : n, u = fe(t) && t.length > 0 ? t : Xr();
3875
3887
  return c.length === 0 && c.push({
3876
3888
  colno: l,
3877
3889
  filename: u,
@@ -3880,17 +3892,17 @@ function Mc(e, t, n, r) {
3880
3892
  lineno: d
3881
3893
  }), e;
3882
3894
  }
3883
- function Er(e) {
3895
+ function wr(e) {
3884
3896
  ct && g.log(`Global Handler attached: ${e}`);
3885
3897
  }
3886
- function mo() {
3898
+ function bo() {
3887
3899
  const e = F();
3888
3900
  return e && e.getOptions() || {
3889
3901
  stackParser: () => [],
3890
3902
  attachStacktrace: !1
3891
3903
  };
3892
3904
  }
3893
- const Oc = () => ({
3905
+ const Pc = () => ({
3894
3906
  name: "HttpContext",
3895
3907
  preprocessEvent(e) {
3896
3908
  if (!x.navigator && !x.location && !x.document)
@@ -3902,13 +3914,13 @@ const Oc = () => ({
3902
3914
  }, i = { ...e.request, ...t && { url: t }, headers: o };
3903
3915
  e.request = i;
3904
3916
  }
3905
- }), $c = "cause", Fc = 5, Pc = "LinkedErrors", Ac = (e = {}) => {
3906
- const t = e.limit || Fc, n = e.key || $c;
3917
+ }), Ac = "cause", Uc = 5, Hc = "LinkedErrors", jc = (e = {}) => {
3918
+ const t = e.limit || Uc, n = e.key || Ac;
3907
3919
  return {
3908
- name: Pc,
3920
+ name: Hc,
3909
3921
  preprocessEvent(r, o, i) {
3910
3922
  const s = i.getOptions();
3911
- Fo(
3923
+ Uo(
3912
3924
  // This differs from the LinkedErrors integration in core by using a different exceptionFromError function
3913
3925
  kn,
3914
3926
  s.stackParser,
@@ -3920,38 +3932,38 @@ const Oc = () => ({
3920
3932
  );
3921
3933
  }
3922
3934
  };
3923
- }, Uc = Ac;
3924
- function Hc(e) {
3935
+ }, Bc = jc;
3936
+ function Yc(e) {
3925
3937
  return [
3926
- ia(),
3927
- ta(),
3928
- vc(),
3929
- dc(),
3930
- Ic(),
3931
- Uc(),
3932
- ya(),
3933
- Oc()
3938
+ ca(),
3939
+ oa(),
3940
+ xc(),
3941
+ pc(),
3942
+ Rc(),
3943
+ Bc(),
3944
+ va(),
3945
+ Pc()
3934
3946
  ];
3935
3947
  }
3936
- function jc(e = {}) {
3948
+ function Gc(e = {}) {
3937
3949
  const t = {
3938
- defaultIntegrations: Hc(),
3950
+ defaultIntegrations: Yc(),
3939
3951
  release: typeof __SENTRY_RELEASE__ == "string" ? __SENTRY_RELEASE__ : x.SENTRY_RELEASE && x.SENTRY_RELEASE.id ? x.SENTRY_RELEASE.id : void 0,
3940
3952
  autoSessionTracking: !0,
3941
3953
  sendClientReports: !0
3942
3954
  };
3943
3955
  return e.defaultIntegrations == null && delete e.defaultIntegrations, { ...t, ...e };
3944
3956
  }
3945
- function Bc() {
3957
+ function qc() {
3946
3958
  const e = typeof x.window < "u" && x;
3947
3959
  if (!e)
3948
3960
  return !1;
3949
3961
  const t = e.chrome ? "chrome" : "browser", n = e[t], r = n && n.runtime && n.runtime.id, o = x.location && x.location.href || "", i = ["chrome-extension:", "moz-extension:", "ms-browser-extension:", "safari-web-extension:"], s = !!r && x === x.top && i.some((c) => o.startsWith(`${c}//`)), a = typeof e.nw < "u";
3950
3962
  return !!r && !s && !a;
3951
3963
  }
3952
- function cl(e = {}) {
3953
- const t = jc(e);
3954
- if (Bc()) {
3964
+ function dl(e = {}) {
3965
+ const t = Gc(e);
3966
+ if (qc()) {
3955
3967
  it(() => {
3956
3968
  console.error(
3957
3969
  "[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/"
@@ -3959,27 +3971,27 @@ function cl(e = {}) {
3959
3971
  });
3960
3972
  return;
3961
3973
  }
3962
- ct && (Vr() || g.warn(
3974
+ ct && (Zr() || g.warn(
3963
3975
  "No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."
3964
3976
  ));
3965
3977
  const n = {
3966
3978
  ...t,
3967
- stackParser: Jo(t.stackParser || cc),
3968
- integrations: Bs(t),
3969
- transport: t.transport || Va
3970
- }, r = Ws(Fa, n);
3971
- return t.autoSessionTracking && Yc(), r;
3979
+ stackParser: ei(t.stackParser || dc),
3980
+ integrations: qs(t),
3981
+ transport: t.transport || Za
3982
+ }, r = Ks(Ua, n);
3983
+ return t.autoSessionTracking && Xc(), r;
3972
3984
  }
3973
- function Yc() {
3985
+ function Xc() {
3974
3986
  if (typeof x.document > "u") {
3975
3987
  ct && g.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");
3976
3988
  return;
3977
3989
  }
3978
- ar({ ignoreDuration: !0 }), cr(), po(({ from: e, to: t }) => {
3979
- e !== void 0 && e !== t && (ar({ ignoreDuration: !0 }), cr());
3990
+ lr({ ignoreDuration: !0 }), dr(), go(({ from: e, to: t }) => {
3991
+ e !== void 0 && e !== t && (lr({ ignoreDuration: !0 }), dr());
3980
3992
  });
3981
3993
  }
3982
- const Gc = {
3994
+ const Wc = {
3983
3995
  replayIntegration: "replay",
3984
3996
  replayCanvasIntegration: "replay-canvas",
3985
3997
  feedbackIntegration: "feedback",
@@ -3996,15 +4008,15 @@ const Gc = {
3996
4008
  rewriteFramesIntegration: "rewriteframes",
3997
4009
  sessionTimingIntegration: "sessiontiming",
3998
4010
  browserProfilingIntegration: "browserprofiling"
3999
- }, Sr = x;
4000
- async function qc(e, t) {
4001
- const n = Gc[e], r = Sr.Sentry = Sr.Sentry || {};
4011
+ }, kr = x;
4012
+ async function zc(e, t) {
4013
+ const n = Wc[e], r = kr.Sentry = kr.Sentry || {};
4002
4014
  if (!n)
4003
4015
  throw new Error(`Cannot lazy load integration: ${e}`);
4004
4016
  const o = r[e];
4005
4017
  if (typeof o == "function" && !("_isShim" in o))
4006
4018
  return o;
4007
- const i = Xc(n), s = x.document.createElement("script");
4019
+ const i = Vc(n), s = x.document.createElement("script");
4008
4020
  s.src = i, s.crossOrigin = "anonymous", s.referrerPolicy = "origin", t && s.setAttribute("nonce", t);
4009
4021
  const a = new Promise((l, d) => {
4010
4022
  s.addEventListener("load", () => l()), s.addEventListener("error", d);
@@ -4020,21 +4032,21 @@ async function qc(e, t) {
4020
4032
  throw new Error(`Could not load integration: ${e}`);
4021
4033
  return c;
4022
4034
  }
4023
- function Xc(e) {
4035
+ function Vc(e) {
4024
4036
  const t = F(), n = t && t.getOptions(), r = n && n.cdnBaseUrl || "https://browser.sentry-cdn.com";
4025
- return new URL(`/${Se}/${e}.min.js`, r).toString();
4037
+ return new URL(`/${ve}/${e}.min.js`, r).toString();
4026
4038
  }
4027
- const ce = w, C = ce.document, et = ce.navigator, go = "Report a Bug", Wc = "Cancel", zc = "Send Bug Report", Vc = "Confirm", Kc = "Report a Bug", Jc = "your.email@example.org", Zc = "Email", Qc = "What's the bug? What did you expect?", eu = "Description", tu = "Your Name", nu = "Name", ru = "Thank you for your report!", ou = "(required)", iu = "Add a screenshot", su = "Remove screenshot", au = "widget", cu = "api", uu = 5e3, lu = (e, t = { includeReplay: !0 }) => {
4039
+ const ce = w, C = ce.document, et = ce.navigator, Eo = "Report a Bug", Kc = "Cancel", Jc = "Send Bug Report", Zc = "Confirm", Qc = "Report a Bug", eu = "your.email@example.org", tu = "Email", nu = "What's the bug? What did you expect?", ru = "Description", ou = "Your Name", iu = "Name", su = "Thank you for your report!", au = "(required)", cu = "Add a screenshot", uu = "Remove screenshot", lu = "widget", du = "api", fu = 5e3, _u = (e, t = { includeReplay: !0 }) => {
4028
4040
  if (!e.message)
4029
4041
  throw new Error("Unable to submit feedback with empty message");
4030
4042
  const n = F();
4031
4043
  if (!n)
4032
4044
  throw new Error("No client setup, cannot send feedback.");
4033
4045
  e.tags && Object.keys(e.tags).length && te().setTags(e.tags);
4034
- const r = va(
4046
+ const r = xa(
4035
4047
  {
4036
- source: cu,
4037
- url: Yr(),
4048
+ source: du,
4049
+ url: Xr(),
4038
4050
  ...e
4039
4051
  },
4040
4052
  t
@@ -4051,8 +4063,8 @@ const ce = w, C = ce.document, et = ce.navigator, go = "Report a Bug", Wc = "Can
4051
4063
  );
4052
4064
  });
4053
4065
  });
4054
- }, vt = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
4055
- function du() {
4066
+ }, St = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__;
4067
+ function pu() {
4056
4068
  return !(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(et.userAgent) || /Macintosh/i.test(et.userAgent) && et.maxTouchPoints && et.maxTouchPoints > 1 || !isSecureContext);
4057
4069
  }
4058
4070
  function gt(e, t) {
@@ -4088,7 +4100,7 @@ function gt(e, t) {
4088
4100
  }
4089
4101
  };
4090
4102
  }
4091
- function fu(e) {
4103
+ function hu(e) {
4092
4104
  const t = C.createElement("style");
4093
4105
  return t.textContent = `
4094
4106
  .widget__actor {
@@ -4148,9 +4160,9 @@ function X(e, t) {
4148
4160
  e.setAttributeNS(null, n, r);
4149
4161
  }), e;
4150
4162
  }
4151
- const Fe = 20, _u = "http://www.w3.org/2000/svg";
4152
- function pu() {
4153
- const e = (a) => ce.document.createElementNS(_u, a), t = X(e("svg"), {
4163
+ const Fe = 20, mu = "http://www.w3.org/2000/svg";
4164
+ function gu() {
4165
+ const e = (a) => ce.document.createElementNS(mu, a), t = X(e("svg"), {
4154
4166
  width: `${Fe}`,
4155
4167
  height: `${Fe}`,
4156
4168
  viewBox: `0 0 ${Fe} ${Fe}`,
@@ -4172,13 +4184,13 @@ function pu() {
4172
4184
  });
4173
4185
  return i.appendChild(s), o.appendChild(i), t.appendChild(o).appendChild(i).appendChild(s), t;
4174
4186
  }
4175
- function hu({ triggerLabel: e, triggerAriaLabel: t, shadow: n, styleNonce: r }) {
4187
+ function yu({ triggerLabel: e, triggerAriaLabel: t, shadow: n, styleNonce: r }) {
4176
4188
  const o = C.createElement("button");
4177
- if (o.type = "button", o.className = "widget__actor", o.ariaHidden = "false", o.ariaLabel = t || e || go, o.appendChild(pu()), e) {
4189
+ if (o.type = "button", o.className = "widget__actor", o.ariaHidden = "false", o.ariaLabel = t || e || Eo, o.appendChild(gu()), e) {
4178
4190
  const s = C.createElement("span");
4179
4191
  s.appendChild(C.createTextNode(e)), o.appendChild(s);
4180
4192
  }
4181
- const i = fu(r);
4193
+ const i = hu(r);
4182
4194
  return {
4183
4195
  el: o,
4184
4196
  appendToDom() {
@@ -4195,22 +4207,22 @@ function hu({ triggerLabel: e, triggerAriaLabel: t, shadow: n, styleNonce: r })
4195
4207
  }
4196
4208
  };
4197
4209
  }
4198
- const yo = "rgba(88, 74, 192, 1)", mu = {
4210
+ const vo = "rgba(88, 74, 192, 1)", bu = {
4199
4211
  foreground: "#2b2233",
4200
4212
  background: "#ffffff",
4201
4213
  accentForeground: "white",
4202
- accentBackground: yo,
4214
+ accentBackground: vo,
4203
4215
  successColor: "#268d75",
4204
4216
  errorColor: "#df3338",
4205
4217
  border: "1.5px solid rgba(41, 35, 47, 0.13)",
4206
4218
  boxShadow: "0px 4px 24px 0px rgba(43, 34, 51, 0.12)",
4207
4219
  outline: "1px auto var(--accent-background)",
4208
4220
  interactiveFilter: "brightness(95%)"
4209
- }, vr = {
4221
+ }, xr = {
4210
4222
  foreground: "#ebe6ef",
4211
4223
  background: "#29232f",
4212
4224
  accentForeground: "white",
4213
- accentBackground: yo,
4225
+ accentBackground: vo,
4214
4226
  successColor: "#2da98c",
4215
4227
  errorColor: "#f55459",
4216
4228
  border: "1.5px solid rgba(235, 230, 239, 0.15)",
@@ -4218,7 +4230,7 @@ const yo = "rgba(88, 74, 192, 1)", mu = {
4218
4230
  outline: "1px auto var(--accent-background)",
4219
4231
  interactiveFilter: "brightness(150%)"
4220
4232
  };
4221
- function wr(e) {
4233
+ function Cr(e) {
4222
4234
  return `
4223
4235
  --foreground: ${e.foreground};
4224
4236
  --background: ${e.background};
@@ -4232,7 +4244,7 @@ function wr(e) {
4232
4244
  --interactive-filter: ${e.interactiveFilter};
4233
4245
  `;
4234
4246
  }
4235
- function gu({
4247
+ function Eu({
4236
4248
  colorScheme: e,
4237
4249
  themeDark: t,
4238
4250
  themeLight: n,
@@ -4254,21 +4266,21 @@ function gu({
4254
4266
 
4255
4267
  ${e !== "system" ? "color-scheme: only light;" : ""}
4256
4268
 
4257
- ${wr(
4258
- e === "dark" ? { ...vr, ...t } : { ...mu, ...n }
4269
+ ${Cr(
4270
+ e === "dark" ? { ...xr, ...t } : { ...bu, ...n }
4259
4271
  )}
4260
4272
  }
4261
4273
 
4262
4274
  ${e === "system" ? `
4263
4275
  @media (prefers-color-scheme: dark) {
4264
4276
  :host {
4265
- ${wr({ ...vr, ...t })}
4277
+ ${Cr({ ...xr, ...t })}
4266
4278
  }
4267
4279
  }` : ""}
4268
4280
  }
4269
4281
  `, r && o.setAttribute("nonce", r), o;
4270
4282
  }
4271
- const yu = ({
4283
+ const vu = ({
4272
4284
  lazyLoadIntegration: e,
4273
4285
  getModalIntegration: t,
4274
4286
  getScreenshotIntegration: n
@@ -4294,28 +4306,28 @@ const yu = ({
4294
4306
  themeLight: E = {},
4295
4307
  themeDark: k = {},
4296
4308
  // FeedbackTextConfiguration
4297
- addScreenshotButtonLabel: P = iu,
4298
- cancelButtonLabel: B = Wc,
4299
- confirmButtonLabel: ne = Vc,
4300
- emailLabel: V = Zc,
4301
- emailPlaceholder: K = Jc,
4302
- formTitle: ie = Kc,
4303
- isRequiredLabel: h = ou,
4304
- messageLabel: m = eu,
4305
- messagePlaceholder: v = Qc,
4306
- nameLabel: S = nu,
4307
- namePlaceholder: U = tu,
4308
- removeScreenshotButtonLabel: re = su,
4309
- submitButtonLabel: O = zc,
4310
- successMessageText: Y = ru,
4311
- triggerLabel: Me = go,
4309
+ addScreenshotButtonLabel: P = cu,
4310
+ cancelButtonLabel: B = Kc,
4311
+ confirmButtonLabel: ne = Zc,
4312
+ emailLabel: V = tu,
4313
+ emailPlaceholder: K = eu,
4314
+ formTitle: ie = Qc,
4315
+ isRequiredLabel: h = au,
4316
+ messageLabel: m = ru,
4317
+ messagePlaceholder: S = nu,
4318
+ nameLabel: v = iu,
4319
+ namePlaceholder: U = ou,
4320
+ removeScreenshotButtonLabel: re = uu,
4321
+ submitButtonLabel: O = Jc,
4322
+ successMessageText: Y = su,
4323
+ triggerLabel: Me = Eo,
4312
4324
  triggerAriaLabel: G = "",
4313
4325
  // FeedbackCallbacks
4314
4326
  onFormOpen: J,
4315
4327
  onFormClose: Oe,
4316
4328
  onSubmitSuccess: he,
4317
4329
  onSubmitError: ze,
4318
- onFormSubmitted: To
4330
+ onFormSubmitted: Lo
4319
4331
  } = {}) => {
4320
4332
  const Ve = {
4321
4333
  id: o,
@@ -4342,8 +4354,8 @@ const yu = ({
4342
4354
  emailLabel: V,
4343
4355
  emailPlaceholder: K,
4344
4356
  messageLabel: m,
4345
- messagePlaceholder: v,
4346
- nameLabel: S,
4357
+ messagePlaceholder: S,
4358
+ nameLabel: v,
4347
4359
  namePlaceholder: U,
4348
4360
  successMessageText: Y,
4349
4361
  isRequiredLabel: h,
@@ -4353,13 +4365,13 @@ const yu = ({
4353
4365
  onFormOpen: J,
4354
4366
  onSubmitError: ze,
4355
4367
  onSubmitSuccess: he,
4356
- onFormSubmitted: To
4368
+ onFormSubmitted: Lo
4357
4369
  };
4358
4370
  let me = null, Ke = [];
4359
4371
  const Ln = (D) => {
4360
4372
  if (!me) {
4361
4373
  const $ = C.createElement("div");
4362
- $.id = String(D.id), C.body.appendChild($), me = $.attachShadow({ mode: "open" }), me.appendChild(gu(D));
4374
+ $.id = String(D.id), C.body.appendChild($), me = $.attachShadow({ mode: "open" }), me.appendChild(Eu(D));
4363
4375
  }
4364
4376
  return me;
4365
4377
  }, Mn = async (D, $, se) => {
@@ -4369,7 +4381,7 @@ const yu = ({
4369
4381
  const $e = ($ && $() || await e(se, R))();
4370
4382
  return H && H.addIntegration($e), $e;
4371
4383
  }, On = async (D) => {
4372
- const $ = D.enableScreenshot && du(), [se, H] = await Promise.all([
4384
+ const $ = D.enableScreenshot && pu(), [se, H] = await Promise.all([
4373
4385
  Mn("FeedbackModal", t, "feedbackModalIntegration"),
4374
4386
  $ ? Mn(
4375
4387
  "FeedbackScreenshot",
@@ -4378,10 +4390,10 @@ const yu = ({
4378
4390
  ) : void 0
4379
4391
  ]);
4380
4392
  if (!se)
4381
- throw vt && g.error(
4393
+ throw St && g.error(
4382
4394
  "[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."
4383
4395
  ), new Error("[Feedback] Missing feedback modal integration!");
4384
- $ && !H && vt && g.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.");
4396
+ $ && !H && St && g.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.");
4385
4397
  const A = se.createDialog({
4386
4398
  options: {
4387
4399
  ...D,
@@ -4393,14 +4405,14 @@ const yu = ({
4393
4405
  }
4394
4406
  },
4395
4407
  screenshotIntegration: $ ? H : void 0,
4396
- sendFeedback: lu,
4408
+ sendFeedback: _u,
4397
4409
  shadow: Ln(D)
4398
4410
  });
4399
4411
  return A;
4400
4412
  }, $n = (D, $ = {}) => {
4401
4413
  const se = gt(Ve, $), H = typeof D == "string" ? C.querySelector(D) : typeof D.addEventListener == "function" ? D : null;
4402
4414
  if (!H)
4403
- throw vt && g.error("[Feedback] Unable to attach to target element"), new Error("Unable to attach to target element");
4415
+ throw St && g.error("[Feedback] Unable to attach to target element"), new Error("Unable to attach to target element");
4404
4416
  let A = null;
4405
4417
  const Ut = async () => {
4406
4418
  A || (A = await On({
@@ -4412,11 +4424,11 @@ const yu = ({
4412
4424
  };
4413
4425
  H.addEventListener("click", Ut);
4414
4426
  const $e = () => {
4415
- Ke = Ke.filter((Do) => Do !== $e), A && A.removeFromDom(), A = null, H.removeEventListener("click", Ut);
4427
+ Ke = Ke.filter((Mo) => Mo !== $e), A && A.removeFromDom(), A = null, H.removeEventListener("click", Ut);
4416
4428
  };
4417
4429
  return Ke.push($e), $e;
4418
4430
  }, At = (D = {}) => {
4419
- const $ = gt(Ve, D), se = Ln($), H = hu({
4431
+ const $ = gt(Ve, D), se = Ln($), H = yu({
4420
4432
  triggerLabel: $.triggerLabel,
4421
4433
  triggerAriaLabel: $.triggerAriaLabel,
4422
4434
  shadow: se,
@@ -4438,7 +4450,7 @@ const yu = ({
4438
4450
  return {
4439
4451
  name: "Feedback",
4440
4452
  setupOnce() {
4441
- !_i() || !Ve.autoInject || (C.readyState === "loading" ? C.addEventListener("DOMContentLoaded", () => At().appendToDom()) : At().appendToDom());
4453
+ !mi() || !Ve.autoInject || (C.readyState === "loading" ? C.addEventListener("DOMContentLoaded", () => At().appendToDom()) : At().appendToDom());
4442
4454
  },
4443
4455
  /**
4444
4456
  * Adds click listener to the element to open a feedback dialog
@@ -4469,13 +4481,13 @@ const yu = ({
4469
4481
  }
4470
4482
  };
4471
4483
  };
4472
- var Pt, T, bo, ke, kr, Eo, ln, rt = {}, Nn = [], bu = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, In = Array.isArray;
4484
+ var Pt, T, So, ke, Nr, wo, ln, rt = {}, Nn = [], Su = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, In = Array.isArray;
4473
4485
  function Ee(e, t) {
4474
4486
  for (var n in t)
4475
4487
  e[n] = t[n];
4476
4488
  return e;
4477
4489
  }
4478
- function So(e) {
4490
+ function ko(e) {
4479
4491
  var t = e.parentNode;
4480
4492
  t && t.removeChild(e);
4481
4493
  }
@@ -4489,7 +4501,7 @@ function b(e, t, n) {
4489
4501
  return wt(e, s, r, o, null);
4490
4502
  }
4491
4503
  function wt(e, t, n, r, o) {
4492
- var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++bo, __i: -1, __u: 0 };
4504
+ var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++So, __i: -1, __u: 0 };
4493
4505
  return o == null && T.vnode != null && T.vnode(i), i;
4494
4506
  }
4495
4507
  function ut(e) {
@@ -4506,12 +4518,12 @@ function Ge(e, t) {
4506
4518
  return n.__e;
4507
4519
  return typeof e.type == "function" ? Ge(e) : null;
4508
4520
  }
4509
- function Eu(e, t, n) {
4521
+ function wu(e, t, n) {
4510
4522
  var r, o = e.__v, i = o.__e, s = e.__P;
4511
4523
  if (s)
4512
- return (r = Ee({}, o)).__v = o.__v + 1, T.vnode && T.vnode(r), Tn(s, r, o, e.__n, s.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, t, i ?? Ge(o), !!(32 & o.__u), n), r.__.__k[r.__i] = r, r.__d = void 0, r.__e != i && vo(r), r;
4524
+ return (r = Ee({}, o)).__v = o.__v + 1, T.vnode && T.vnode(r), Tn(s, r, o, e.__n, s.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, t, i ?? Ge(o), !!(32 & o.__u), n), r.__.__k[r.__i] = r, r.__d = void 0, r.__e != i && xo(r), r;
4513
4525
  }
4514
- function vo(e) {
4526
+ function xo(e) {
4515
4527
  var t, n;
4516
4528
  if ((e = e.__) != null && e.__c != null) {
4517
4529
  for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++)
@@ -4519,37 +4531,37 @@ function vo(e) {
4519
4531
  e.__e = e.__c.base = n.__e;
4520
4532
  break;
4521
4533
  }
4522
- return vo(e);
4534
+ return xo(e);
4523
4535
  }
4524
4536
  }
4525
- function xr(e) {
4526
- (!e.__d && (e.__d = !0) && ke.push(e) && !Rt.__r++ || kr !== T.debounceRendering) && ((kr = T.debounceRendering) || Eo)(Rt);
4537
+ function Ir(e) {
4538
+ (!e.__d && (e.__d = !0) && ke.push(e) && !Rt.__r++ || Nr !== T.debounceRendering) && ((Nr = T.debounceRendering) || wo)(Rt);
4527
4539
  }
4528
4540
  function Rt() {
4529
4541
  var e, t, n, r = [], o = [];
4530
4542
  for (ke.sort(ln); e = ke.shift(); )
4531
- e.__d && (n = ke.length, t = Eu(e, r, o) || t, n === 0 || ke.length > n ? (dn(r, t, o), o.length = r.length = 0, t = void 0, ke.sort(ln)) : t && T.__c && T.__c(t, Nn));
4543
+ e.__d && (n = ke.length, t = wu(e, r, o) || t, n === 0 || ke.length > n ? (dn(r, t, o), o.length = r.length = 0, t = void 0, ke.sort(ln)) : t && T.__c && T.__c(t, Nn));
4532
4544
  t && dn(r, t, o), Rt.__r = 0;
4533
4545
  }
4534
- function wo(e, t, n, r, o, i, s, a, c, l, d) {
4546
+ function Co(e, t, n, r, o, i, s, a, c, l, d) {
4535
4547
  var u, _, f, p, R, y = r && r.__k || Nn, E = t.length;
4536
- for (n.__d = c, Su(n, t, y), c = n.__d, u = 0; u < E; u++)
4537
- (f = n.__k[u]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? rt : y[f.__i] || rt, f.__i = u, Tn(e, f, _, o, i, s, a, c, l, d), p = f.__e, f.ref && _.ref != f.ref && (_.ref && Dn(_.ref, null, f), d.push(f.ref, f.__c || p, f)), R == null && p != null && (R = p), 65536 & f.__u || _.__k === f.__k ? c = ko(f, c, e) : typeof f.type == "function" && f.__d !== void 0 ? c = f.__d : p && (c = p.nextSibling), f.__d = void 0, f.__u &= -196609);
4548
+ for (n.__d = c, ku(n, t, y), c = n.__d, u = 0; u < E; u++)
4549
+ (f = n.__k[u]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? rt : y[f.__i] || rt, f.__i = u, Tn(e, f, _, o, i, s, a, c, l, d), p = f.__e, f.ref && _.ref != f.ref && (_.ref && Dn(_.ref, null, f), d.push(f.ref, f.__c || p, f)), R == null && p != null && (R = p), 65536 & f.__u || _.__k === f.__k ? c = No(f, c, e) : typeof f.type == "function" && f.__d !== void 0 ? c = f.__d : p && (c = p.nextSibling), f.__d = void 0, f.__u &= -196609);
4538
4550
  n.__d = c, n.__e = R;
4539
4551
  }
4540
- function Su(e, t, n) {
4552
+ function ku(e, t, n) {
4541
4553
  var r, o, i, s, a, c = t.length, l = n.length, d = l, u = 0;
4542
4554
  for (e.__k = [], r = 0; r < c; r++)
4543
- (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? wt(null, o, null, null, o) : In(o) ? wt(ut, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? wt(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, a = vu(o, n, s = r + u, d), o.__i = a, i = null, a !== -1 && (d--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && u--, typeof o.type != "function" && (o.__u |= 65536)) : a !== s && (a === s + 1 ? u++ : a > s ? d > c - s ? u += a - s : u-- : u = a < s && a == s - 1 ? a - s : 0, a !== r + u && (o.__u |= 65536))) : (i = n[r]) && i.key == null && i.__e && (i.__e == e.__d && (e.__d = Ge(i)), fn(i, i, !1), n[r] = null, d--);
4555
+ (o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? wt(null, o, null, null, o) : In(o) ? wt(ut, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? wt(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, a = xu(o, n, s = r + u, d), o.__i = a, i = null, a !== -1 && (d--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && u--, typeof o.type != "function" && (o.__u |= 65536)) : a !== s && (a === s + 1 ? u++ : a > s ? d > c - s ? u += a - s : u-- : u = a < s && a == s - 1 ? a - s : 0, a !== r + u && (o.__u |= 65536))) : (i = n[r]) && i.key == null && i.__e && (i.__e == e.__d && (e.__d = Ge(i)), fn(i, i, !1), n[r] = null, d--);
4544
4556
  if (d)
4545
4557
  for (r = 0; r < l; r++)
4546
4558
  (i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Ge(i)), fn(i, i));
4547
4559
  }
4548
- function ko(e, t, n) {
4560
+ function No(e, t, n) {
4549
4561
  var r, o;
4550
4562
  if (typeof e.type == "function") {
4551
4563
  for (r = e.__k, o = 0; r && o < r.length; o++)
4552
- r[o] && (r[o].__ = e, t = ko(r[o], t, n));
4564
+ r[o] && (r[o].__ = e, t = No(r[o], t, n));
4553
4565
  return t;
4554
4566
  }
4555
4567
  e.__e != t && (n.insertBefore(e.__e, t || null), t = e.__e);
@@ -4558,7 +4570,7 @@ function ko(e, t, n) {
4558
4570
  while (t != null && t.nodeType === 8);
4559
4571
  return t;
4560
4572
  }
4561
- function vu(e, t, n, r) {
4573
+ function xu(e, t, n, r) {
4562
4574
  var o = e.key, i = e.type, s = n - 1, a = n + 1, c = t[n];
4563
4575
  if (c === null || c && o == c.key && i === c.type)
4564
4576
  return n;
@@ -4577,8 +4589,8 @@ function vu(e, t, n, r) {
4577
4589
  }
4578
4590
  return -1;
4579
4591
  }
4580
- function Cr(e, t, n) {
4581
- t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || bu.test(t) ? n : n + "px";
4592
+ function Tr(e, t, n) {
4593
+ t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Su.test(t) ? n : n + "px";
4582
4594
  }
4583
4595
  function yt(e, t, n, r, o) {
4584
4596
  var i;
@@ -4589,13 +4601,13 @@ function yt(e, t, n, r, o) {
4589
4601
  else {
4590
4602
  if (typeof r == "string" && (e.style.cssText = r = ""), r)
4591
4603
  for (t in r)
4592
- n && t in n || Cr(e.style, t, "");
4604
+ n && t in n || Tr(e.style, t, "");
4593
4605
  if (n)
4594
4606
  for (t in n)
4595
- r && n[t] === r[t] || Cr(e.style, t, n[t]);
4607
+ r && n[t] === r[t] || Tr(e.style, t, n[t]);
4596
4608
  }
4597
4609
  else if (t[0] === "o" && t[1] === "n")
4598
- i = t !== (t = t.replace(/(PointerCapture)$|Capture$/i, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ? Ir : Nr, i)) : e.removeEventListener(t, i ? Ir : Nr, i);
4610
+ i = t !== (t = t.replace(/(PointerCapture)$|Capture$/i, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ? Rr : Dr, i)) : e.removeEventListener(t, i ? Rr : Dr, i);
4599
4611
  else {
4600
4612
  if (o)
4601
4613
  t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
@@ -4608,7 +4620,7 @@ function yt(e, t, n, r, o) {
4608
4620
  typeof n == "function" || (n == null || n === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, n));
4609
4621
  }
4610
4622
  }
4611
- function Nr(e) {
4623
+ function Dr(e) {
4612
4624
  if (this.l) {
4613
4625
  var t = this.l[e.type + !1];
4614
4626
  if (e.t) {
@@ -4619,7 +4631,7 @@ function Nr(e) {
4619
4631
  return t(T.event ? T.event(e) : e);
4620
4632
  }
4621
4633
  }
4622
- function Ir(e) {
4634
+ function Rr(e) {
4623
4635
  if (this.l)
4624
4636
  return this.l[e.type + !0](T.event ? T.event(e) : e);
4625
4637
  }
@@ -4631,7 +4643,7 @@ function Tn(e, t, n, r, o, i, s, a, c, l) {
4631
4643
  e:
4632
4644
  if (typeof h == "function")
4633
4645
  try {
4634
- if (E = t.props, k = (d = h.contextType) && r[d.__c], P = d ? k ? k.props.value : d.__ : r, n.__c ? y = (u = t.__c = n.__c).__ = u.__E : ("prototype" in h && h.prototype.render ? t.__c = u = new h(E, P) : (t.__c = u = new kt(E, P), u.constructor = h, u.render = ku), k && k.sub(u), u.props = E, u.state || (u.state = {}), u.context = P, u.__n = r, _ = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), h.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = Ee({}, u.__s)), Ee(u.__s, h.getDerivedStateFromProps(E, u.__s))), f = u.props, p = u.state, u.__v = t, _)
4646
+ if (E = t.props, k = (d = h.contextType) && r[d.__c], P = d ? k ? k.props.value : d.__ : r, n.__c ? y = (u = t.__c = n.__c).__ = u.__E : ("prototype" in h && h.prototype.render ? t.__c = u = new h(E, P) : (t.__c = u = new kt(E, P), u.constructor = h, u.render = Nu), k && k.sub(u), u.props = E, u.state || (u.state = {}), u.context = P, u.__n = r, _ = u.__d = !0, u.__h = [], u._sb = []), u.__s == null && (u.__s = u.state), h.getDerivedStateFromProps != null && (u.__s == u.state && (u.__s = Ee({}, u.__s)), Ee(u.__s, h.getDerivedStateFromProps(E, u.__s))), f = u.props, p = u.state, u.__v = t, _)
4635
4647
  h.getDerivedStateFromProps == null && u.componentWillMount != null && u.componentWillMount(), u.componentDidMount != null && u.__h.push(u.componentDidMount);
4636
4648
  else {
4637
4649
  if (h.getDerivedStateFromProps == null && E !== f && u.componentWillReceiveProps != null && u.componentWillReceiveProps(E, P), !u.__e && (u.shouldComponentUpdate != null && u.shouldComponentUpdate(E, u.__s, P) === !1 || t.__v === n.__v)) {
@@ -4654,12 +4666,12 @@ function Tn(e, t, n, r, o, i, s, a, c, l) {
4654
4666
  do
4655
4667
  u.__d = !1, ne && ne(t), d = u.render(u.props, u.state, u.context), u.state = u.__s;
4656
4668
  while (u.__d && ++V < 25);
4657
- u.state = u.__s, u.getChildContext != null && (r = Ee(Ee({}, r), u.getChildContext())), _ || u.getSnapshotBeforeUpdate == null || (R = u.getSnapshotBeforeUpdate(f, p)), wo(e, In(ie = d != null && d.type === ut && d.key == null ? d.props.children : d) ? ie : [ie], t, n, r, o, i, s, a, c, l), u.base = t.__e, t.__u &= -161, u.__h.length && s.push(u), y && (u.__E = u.__ = null);
4669
+ u.state = u.__s, u.getChildContext != null && (r = Ee(Ee({}, r), u.getChildContext())), _ || u.getSnapshotBeforeUpdate == null || (R = u.getSnapshotBeforeUpdate(f, p)), Co(e, In(ie = d != null && d.type === ut && d.key == null ? d.props.children : d) ? ie : [ie], t, n, r, o, i, s, a, c, l), u.base = t.__e, t.__u &= -161, u.__h.length && s.push(u), y && (u.__E = u.__ = null);
4658
4670
  } catch (m) {
4659
4671
  t.__v = null, c || i != null ? (t.__e = a, t.__u |= c ? 160 : 32, i[i.indexOf(a)] = null) : (t.__e = n.__e, t.__k = n.__k), T.__e(m, t, n);
4660
4672
  }
4661
4673
  else
4662
- i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = wu(n.__e, t, n, r, o, i, s, c, l);
4674
+ i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Cu(n.__e, t, n, r, o, i, s, c, l);
4663
4675
  (d = T.diffed) && d(t);
4664
4676
  }
4665
4677
  function dn(e, t, n) {
@@ -4675,7 +4687,7 @@ function dn(e, t, n) {
4675
4687
  }
4676
4688
  });
4677
4689
  }
4678
- function wu(e, t, n, r, o, i, s, a, c) {
4690
+ function Cu(e, t, n, r, o, i, s, a, c) {
4679
4691
  var l, d, u, _, f, p, R, y = n.props, E = t.props, k = t.type;
4680
4692
  if (k === "svg" && (o = !0), i != null) {
4681
4693
  for (l = 0; l < i.length; l++)
@@ -4701,9 +4713,9 @@ function wu(e, t, n, r, o, i, s, a, c) {
4701
4713
  f = E[l], l == "children" ? _ = f : l == "dangerouslySetInnerHTML" ? d = f : l == "value" ? p = f : l == "checked" ? R = f : l === "key" || a && typeof f != "function" || y[l] === f || yt(e, l, f, y[l], o);
4702
4714
  if (d)
4703
4715
  a || u && (d.__html === u.__html || d.__html === e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
4704
- else if (u && (e.innerHTML = ""), wo(e, In(_) ? _ : [_], t, n, r, o && k !== "foreignObject", i, s, i ? i[0] : n.__k && Ge(n, 0), a, c), i != null)
4716
+ else if (u && (e.innerHTML = ""), Co(e, In(_) ? _ : [_], t, n, r, o && k !== "foreignObject", i, s, i ? i[0] : n.__k && Ge(n, 0), a, c), i != null)
4705
4717
  for (l = i.length; l--; )
4706
- i[l] != null && So(i[l]);
4718
+ i[l] != null && ko(i[l]);
4707
4719
  a || (l = "value", p !== void 0 && (p !== e[l] || k === "progress" && !p || k === "option" && p !== y[l]) && yt(e, l, p, y[l], !1), l = "checked", R !== void 0 && R !== e[l] && yt(e, l, R, y[l], !1));
4708
4720
  }
4709
4721
  return e;
@@ -4729,12 +4741,12 @@ function fn(e, t, n) {
4729
4741
  if (r = e.__k)
4730
4742
  for (o = 0; o < r.length; o++)
4731
4743
  r[o] && fn(r[o], t, n || typeof e.type != "function");
4732
- n || e.__e == null || So(e.__e), e.__ = e.__e = e.__d = void 0;
4744
+ n || e.__e == null || ko(e.__e), e.__ = e.__e = e.__d = void 0;
4733
4745
  }
4734
- function ku(e, t, n) {
4746
+ function Nu(e, t, n) {
4735
4747
  return this.constructor(e, n);
4736
4748
  }
4737
- function xu(e, t, n) {
4749
+ function Iu(e, t, n) {
4738
4750
  var r, o, i, s;
4739
4751
  T.__ && T.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], Tn(t, e = (!r && n || t).__k = b(ut, null, [e]), o || rt, rt, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? Pt.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), e.__d = void 0, dn(i, e, s);
4740
4752
  }
@@ -4748,26 +4760,26 @@ Pt = Nn.slice, T = { __e: function(e, t, n, r) {
4748
4760
  e = a;
4749
4761
  }
4750
4762
  throw e;
4751
- } }, bo = 0, kt.prototype.setState = function(e, t) {
4763
+ } }, So = 0, kt.prototype.setState = function(e, t) {
4752
4764
  var n;
4753
- n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Ee({}, this.state), typeof e == "function" && (e = e(Ee({}, n), this.props)), e && Ee(n, e), e != null && this.__v && (t && this._sb.push(t), xr(this));
4765
+ n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Ee({}, this.state), typeof e == "function" && (e = e(Ee({}, n), this.props)), e && Ee(n, e), e != null && this.__v && (t && this._sb.push(t), Ir(this));
4754
4766
  }, kt.prototype.forceUpdate = function(e) {
4755
- this.__v && (this.__e = !0, e && this.__h.push(e), xr(this));
4756
- }, kt.prototype.render = ut, ke = [], Eo = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ln = function(e, t) {
4767
+ this.__v && (this.__e = !0, e && this.__h.push(e), Ir(this));
4768
+ }, kt.prototype.render = ut, ke = [], wo = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ln = function(e, t) {
4757
4769
  return e.__v.__b - t.__v.__b;
4758
4770
  }, Rt.__r = 0;
4759
- var pe, I, Yt, Tr, qe = 0, xo = [], xt = [], M = T, Dr = M.__b, Rr = M.__r, Lr = M.diffed, Mr = M.__c, Or = M.unmount, $r = M.__;
4771
+ var pe, I, Yt, Lr, qe = 0, Io = [], xt = [], M = T, Mr = M.__b, Or = M.__r, $r = M.diffed, Fr = M.__c, Pr = M.unmount, Ar = M.__;
4760
4772
  function Le(e, t) {
4761
4773
  M.__h && M.__h(I, e, qe || t), qe = 0;
4762
4774
  var n = I.__H || (I.__H = { __: [], __h: [] });
4763
4775
  return e >= n.__.length && n.__.push({ __V: xt }), n.__[e];
4764
4776
  }
4765
4777
  function Ae(e) {
4766
- return qe = 1, Co(Io, e);
4778
+ return qe = 1, To(Ro, e);
4767
4779
  }
4768
- function Co(e, t, n) {
4780
+ function To(e, t, n) {
4769
4781
  var r = Le(pe++, 2);
4770
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Io(void 0, t), function(a) {
4782
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Ro(void 0, t), function(a) {
4771
4783
  var c = r.__N ? r.__N[0] : r.__[0], l = r.t(c, a);
4772
4784
  c !== l && (r.__N = [l, r.__[1]], r.__c.setState({}));
4773
4785
  }], r.__c = I, !I.u)) {
@@ -4801,21 +4813,21 @@ function Co(e, t, n) {
4801
4813
  }
4802
4814
  return r.__N || r.__;
4803
4815
  }
4804
- function Cu(e, t) {
4816
+ function Tu(e, t) {
4805
4817
  var n = Le(pe++, 3);
4806
4818
  !M.__s && Rn(n.__H, t) && (n.__ = e, n.i = t, I.__H.__h.push(n));
4807
4819
  }
4808
- function No(e, t) {
4820
+ function Do(e, t) {
4809
4821
  var n = Le(pe++, 4);
4810
4822
  !M.__s && Rn(n.__H, t) && (n.__ = e, n.i = t, I.__h.push(n));
4811
4823
  }
4812
- function Nu(e) {
4824
+ function Du(e) {
4813
4825
  return qe = 5, lt(function() {
4814
4826
  return { current: e };
4815
4827
  }, []);
4816
4828
  }
4817
- function Iu(e, t, n) {
4818
- qe = 6, No(function() {
4829
+ function Ru(e, t, n) {
4830
+ qe = 6, Do(function() {
4819
4831
  return typeof e == "function" ? (e(t()), function() {
4820
4832
  return e(null);
4821
4833
  }) : e ? (e.current = t(), function() {
@@ -4832,14 +4844,14 @@ function Ue(e, t) {
4832
4844
  return e;
4833
4845
  }, t);
4834
4846
  }
4835
- function Tu(e) {
4847
+ function Lu(e) {
4836
4848
  var t = I.context[e.__c], n = Le(pe++, 9);
4837
4849
  return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(I)), t.props.value) : e.__;
4838
4850
  }
4839
- function Du(e, t) {
4851
+ function Mu(e, t) {
4840
4852
  M.useDebugValue && M.useDebugValue(t ? t(e) : e);
4841
4853
  }
4842
- function Ru(e) {
4854
+ function Ou(e) {
4843
4855
  var t = Le(pe++, 10), n = Ae();
4844
4856
  return t.__ = e, I.componentDidCatch || (I.componentDidCatch = function(r, o) {
4845
4857
  t.__ && t.__(r, o), n[1](r);
@@ -4847,7 +4859,7 @@ function Ru(e) {
4847
4859
  n[1](void 0);
4848
4860
  }];
4849
4861
  }
4850
- function Lu() {
4862
+ function $u() {
4851
4863
  var e = Le(pe++, 11);
4852
4864
  if (!e.__) {
4853
4865
  for (var t = I.__v; t !== null && !t.__m && t.__ !== null; )
@@ -4857,8 +4869,8 @@ function Lu() {
4857
4869
  }
4858
4870
  return e.__;
4859
4871
  }
4860
- function Mu() {
4861
- for (var e; e = xo.shift(); )
4872
+ function Fu() {
4873
+ for (var e; e = Io.shift(); )
4862
4874
  if (e.__P && e.__H)
4863
4875
  try {
4864
4876
  e.__H.__h.forEach(Ct), e.__H.__h.forEach(_n), e.__H.__h = [];
@@ -4867,19 +4879,19 @@ function Mu() {
4867
4879
  }
4868
4880
  }
4869
4881
  M.__b = function(e) {
4870
- I = null, Dr && Dr(e);
4882
+ I = null, Mr && Mr(e);
4871
4883
  }, M.__ = function(e, t) {
4872
- t.__k && t.__k.__m && (e.__m = t.__k.__m), $r && $r(e, t);
4884
+ t.__k && t.__k.__m && (e.__m = t.__k.__m), Ar && Ar(e, t);
4873
4885
  }, M.__r = function(e) {
4874
- Rr && Rr(e), pe = 0;
4886
+ Or && Or(e), pe = 0;
4875
4887
  var t = (I = e.__c).__H;
4876
4888
  t && (Yt === I ? (t.__h = [], I.__h = [], t.__.forEach(function(n) {
4877
4889
  n.__N && (n.__ = n.__N), n.__V = xt, n.__N = n.i = void 0;
4878
4890
  })) : (t.__h.forEach(Ct), t.__h.forEach(_n), t.__h = [], pe = 0)), Yt = I;
4879
4891
  }, M.diffed = function(e) {
4880
- Lr && Lr(e);
4892
+ $r && $r(e);
4881
4893
  var t = e.__c;
4882
- t && t.__H && (t.__H.__h.length && (xo.push(t) !== 1 && Tr === M.requestAnimationFrame || ((Tr = M.requestAnimationFrame) || Ou)(Mu)), t.__H.__.forEach(function(n) {
4894
+ t && t.__H && (t.__H.__h.length && (Io.push(t) !== 1 && Lr === M.requestAnimationFrame || ((Lr = M.requestAnimationFrame) || Pu)(Fu)), t.__H.__.forEach(function(n) {
4883
4895
  n.i && (n.__H = n.i), n.__V !== xt && (n.__ = n.__V), n.i = void 0, n.__V = xt;
4884
4896
  })), Yt = I = null;
4885
4897
  }, M.__c = function(e, t) {
@@ -4893,9 +4905,9 @@ M.__b = function(e) {
4893
4905
  o.__h && (o.__h = []);
4894
4906
  }), t = [], M.__e(r, n.__v);
4895
4907
  }
4896
- }), Mr && Mr(e, t);
4908
+ }), Fr && Fr(e, t);
4897
4909
  }, M.unmount = function(e) {
4898
- Or && Or(e);
4910
+ Pr && Pr(e);
4899
4911
  var t, n = e.__c;
4900
4912
  n && n.__H && (n.__H.__.forEach(function(r) {
4901
4913
  try {
@@ -4905,12 +4917,12 @@ M.__b = function(e) {
4905
4917
  }
4906
4918
  }), n.__H = void 0, t && M.__e(t, n.__v));
4907
4919
  };
4908
- var Fr = typeof requestAnimationFrame == "function";
4909
- function Ou(e) {
4920
+ var Ur = typeof requestAnimationFrame == "function";
4921
+ function Pu(e) {
4910
4922
  var t, n = function() {
4911
- clearTimeout(r), Fr && cancelAnimationFrame(t), setTimeout(e);
4923
+ clearTimeout(r), Ur && cancelAnimationFrame(t), setTimeout(e);
4912
4924
  }, r = setTimeout(n, 100);
4913
- Fr && (t = requestAnimationFrame(n));
4925
+ Ur && (t = requestAnimationFrame(n));
4914
4926
  }
4915
4927
  function Ct(e) {
4916
4928
  var t = I, n = e.__c;
@@ -4925,26 +4937,26 @@ function Rn(e, t) {
4925
4937
  return n !== e[r];
4926
4938
  });
4927
4939
  }
4928
- function Io(e, t) {
4940
+ function Ro(e, t) {
4929
4941
  return typeof t == "function" ? t(e) : t;
4930
4942
  }
4931
- const $u = {
4943
+ const Au = {
4932
4944
  __proto__: null,
4933
4945
  useCallback: Ue,
4934
- useContext: Tu,
4935
- useDebugValue: Du,
4936
- useEffect: Cu,
4937
- useErrorBoundary: Ru,
4938
- useId: Lu,
4939
- useImperativeHandle: Iu,
4940
- useLayoutEffect: No,
4946
+ useContext: Lu,
4947
+ useDebugValue: Mu,
4948
+ useEffect: Tu,
4949
+ useErrorBoundary: Ou,
4950
+ useId: $u,
4951
+ useImperativeHandle: Ru,
4952
+ useLayoutEffect: Do,
4941
4953
  useMemo: lt,
4942
- useReducer: Co,
4943
- useRef: Nu,
4954
+ useReducer: To,
4955
+ useRef: Du,
4944
4956
  useState: Ae
4945
- }, Fu = "http://www.w3.org/2000/svg";
4946
- function Pu() {
4947
- const e = (r) => C.createElementNS(Fu, r), t = X(e("svg"), {
4957
+ }, Uu = "http://www.w3.org/2000/svg";
4958
+ function Hu() {
4959
+ const e = (r) => C.createElementNS(Uu, r), t = X(e("svg"), {
4948
4960
  width: "32",
4949
4961
  height: "30",
4950
4962
  viewBox: "0 0 72 66",
@@ -4955,12 +4967,12 @@ function Pu() {
4955
4967
  });
4956
4968
  return t.appendChild(n), t;
4957
4969
  }
4958
- const Pr = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";
4959
- function Au({ options: e }) {
4960
- const t = lt(() => ({ __html: Pu().outerHTML }), []);
4970
+ const Hr = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";
4971
+ function ju({ options: e }) {
4972
+ const t = lt(() => ({ __html: Hu().outerHTML }), []);
4961
4973
  return b(
4962
4974
  "h2",
4963
- { class: "dialog__header", __self: this, __source: { fileName: Pr, lineNumber: 16 } },
4975
+ { class: "dialog__header", __self: this, __source: { fileName: Hr, lineNumber: 16 } },
4964
4976
  e.formTitle,
4965
4977
  e.showBranding ? b(
4966
4978
  "a",
@@ -4972,12 +4984,12 @@ function Au({ options: e }) {
4972
4984
  rel: "noopener noreferrer",
4973
4985
  dangerouslySetInnerHTML: t,
4974
4986
  __self: this,
4975
- __source: { fileName: Pr, lineNumber: 19 }
4987
+ __source: { fileName: Hr, lineNumber: 19 }
4976
4988
  }
4977
4989
  ) : null
4978
4990
  );
4979
4991
  }
4980
- function Uu(e, t) {
4992
+ function Bu(e, t) {
4981
4993
  const n = [];
4982
4994
  return t.isNameRequired && !e.name && n.push(t.nameLabel), t.isEmailRequired && !e.email && n.push(t.emailLabel), e.message || n.push(t.messageLabel), n;
4983
4995
  }
@@ -4986,7 +4998,7 @@ function Gt(e, t) {
4986
4998
  const n = e.get(t);
4987
4999
  return typeof n == "string" ? n.trim() : "";
4988
5000
  }
4989
- function Hu({
5001
+ function Yu({
4990
5002
  options: e,
4991
5003
  defaultEmail: t,
4992
5004
  defaultName: n,
@@ -5013,11 +5025,11 @@ function Hu({
5013
5025
  namePlaceholder: ne,
5014
5026
  submitButtonLabel: V,
5015
5027
  isRequiredLabel: K
5016
- } = e, [ie, h] = Ae(null), [m, v] = Ae(!1), S = l && l.input, [U, re] = Ae(null), O = Ue((G) => {
5017
- re(G), v(!1);
5028
+ } = e, [ie, h] = Ae(null), [m, S] = Ae(!1), v = l && l.input, [U, re] = Ae(null), O = Ue((G) => {
5029
+ re(G), S(!1);
5018
5030
  }, []), Y = Ue(
5019
5031
  (G) => {
5020
- const J = Uu(G, {
5032
+ const J = Bu(G, {
5021
5033
  emailLabel: p,
5022
5034
  isEmailRequired: y,
5023
5035
  isNameRequired: E,
@@ -5046,13 +5058,13 @@ function Hu({
5046
5058
  name: he.name,
5047
5059
  email: he.email,
5048
5060
  message: he.message,
5049
- source: au,
5061
+ source: lu,
5050
5062
  tags: d
5051
5063
  },
5052
5064
  { attachments: he.attachments }
5053
5065
  ), i(he);
5054
5066
  } catch (ze) {
5055
- vt && g.error(ze), h(ze), s(ze);
5067
+ St && g.error(ze), h(ze), s(ze);
5056
5068
  }
5057
5069
  } catch {
5058
5070
  }
@@ -5062,7 +5074,7 @@ function Hu({
5062
5074
  return b(
5063
5075
  "form",
5064
5076
  { class: "form", onSubmit: Me, __self: this, __source: { fileName: L, lineNumber: 144 } },
5065
- S && m ? b(S, { onError: O, __self: this, __source: { fileName: L, lineNumber: 146 } }) : null,
5077
+ v && m ? b(v, { onError: O, __self: this, __source: { fileName: L, lineNumber: 146 } }) : null,
5066
5078
  b(
5067
5079
  "div",
5068
5080
  { class: "form__right", "data-sentry-feedback": !0, __self: this, __source: { fileName: L, lineNumber: 149 } },
@@ -5127,7 +5139,7 @@ function Hu({
5127
5139
  }
5128
5140
  )
5129
5141
  ),
5130
- S ? b(
5142
+ v ? b(
5131
5143
  "label",
5132
5144
  { for: "screenshot", class: "form__label", __self: this, __source: { fileName: L, lineNumber: 201 } },
5133
5145
  b(
@@ -5136,7 +5148,7 @@ function Hu({
5136
5148
  class: "btn btn--default",
5137
5149
  type: "button",
5138
5150
  onClick: () => {
5139
- re(null), v((G) => !G);
5151
+ re(null), S((G) => !G);
5140
5152
  },
5141
5153
  __self: this,
5142
5154
  __source: { fileName: L, lineNumber: 202 }
@@ -5175,12 +5187,12 @@ function qt({
5175
5187
  t && b("span", { class: "form__label__text--required", __self: this, __source: { fileName: L, lineNumber: 241 } }, n)
5176
5188
  );
5177
5189
  }
5178
- const bt = 16, Ar = 17, ju = "http://www.w3.org/2000/svg";
5179
- function Bu() {
5180
- const e = (c) => ce.document.createElementNS(ju, c), t = X(e("svg"), {
5190
+ const bt = 16, jr = 17, Gu = "http://www.w3.org/2000/svg";
5191
+ function qu() {
5192
+ const e = (c) => ce.document.createElementNS(Gu, c), t = X(e("svg"), {
5181
5193
  width: `${bt}`,
5182
- height: `${Ar}`,
5183
- viewBox: `0 0 ${bt} ${Ar}`,
5194
+ height: `${jr}`,
5195
+ viewBox: `0 0 ${bt} ${jr}`,
5184
5196
  fill: "inherit"
5185
5197
  }), n = X(e("g"), {
5186
5198
  clipPath: "url(#clip0_57_156)"
@@ -5203,15 +5215,15 @@ function Bu() {
5203
5215
  return s.appendChild(a), i.appendChild(s), t.appendChild(i).appendChild(s).appendChild(a), t;
5204
5216
  }
5205
5217
  const ue = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";
5206
- function Yu({ open: e, onFormSubmitted: t, ...n }) {
5207
- const r = n.options, o = lt(() => ({ __html: Bu().outerHTML }), []), [i, s] = Ae(null), a = Ue(() => {
5218
+ function Xu({ open: e, onFormSubmitted: t, ...n }) {
5219
+ const r = n.options, o = lt(() => ({ __html: qu().outerHTML }), []), [i, s] = Ae(null), a = Ue(() => {
5208
5220
  i && (clearTimeout(i), s(null)), t();
5209
5221
  }, [i]), c = Ue(
5210
5222
  (l) => {
5211
5223
  n.onSubmitSuccess(l), s(
5212
5224
  setTimeout(() => {
5213
5225
  t(), s(null);
5214
- }, uu)
5226
+ }, fu)
5215
5227
  );
5216
5228
  },
5217
5229
  [t]
@@ -5244,14 +5256,14 @@ function Yu({ open: e, onFormSubmitted: t, ...n }) {
5244
5256
  __self: this,
5245
5257
  __source: { fileName: ue, lineNumber: 59 }
5246
5258
  },
5247
- b(Au, { options: r, __self: this, __source: { fileName: ue, lineNumber: 66 } }),
5248
- b(Hu, { ...n, onSubmitSuccess: c, __self: this, __source: { fileName: ue, lineNumber: 67 } })
5259
+ b(ju, { options: r, __self: this, __source: { fileName: ue, lineNumber: 66 } }),
5260
+ b(Yu, { ...n, onSubmitSuccess: c, __self: this, __source: { fileName: ue, lineNumber: 67 } })
5249
5261
  )
5250
5262
  )
5251
5263
  )
5252
5264
  );
5253
5265
  }
5254
- const Gu = `
5266
+ const Wu = `
5255
5267
  .dialog {
5256
5268
  position: fixed;
5257
5269
  z-index: var(--z-index);
@@ -5322,7 +5334,7 @@ const Gu = `
5322
5334
  transform: translate(0, 0) scale(1);
5323
5335
  transition: transform 0.2s ease-in-out;
5324
5336
  }
5325
- `, qu = `
5337
+ `, zu = `
5326
5338
  .dialog__header {
5327
5339
  display: flex;
5328
5340
  align-items: center;
@@ -5337,7 +5349,7 @@ const Gu = `
5337
5349
  .brand-link:focus-visible {
5338
5350
  outline: var(--outline);
5339
5351
  }
5340
- `, Xu = `
5352
+ `, Vu = `
5341
5353
  .form {
5342
5354
  display: flex;
5343
5355
  overflow: auto;
@@ -5423,7 +5435,7 @@ const Gu = `
5423
5435
  color: var(--error-color);
5424
5436
  fill: var(--error-color);
5425
5437
  }
5426
- `, Wu = `
5438
+ `, Ku = `
5427
5439
  .btn-group {
5428
5440
  display: grid;
5429
5441
  gap: 8px;
@@ -5483,7 +5495,7 @@ const Gu = `
5483
5495
  filter: var(--interactive-filter);
5484
5496
  outline: var(--button-focus-outline, var(--outline));
5485
5497
  }
5486
- `, zu = `
5498
+ `, Ju = `
5487
5499
  .success__position {
5488
5500
  position: fixed;
5489
5501
  inset: var(--dialog-inset);
@@ -5512,32 +5524,32 @@ const Gu = `
5512
5524
  display: flex;
5513
5525
  }
5514
5526
  `;
5515
- function Vu(e) {
5527
+ function Zu(e) {
5516
5528
  const t = C.createElement("style");
5517
5529
  return t.textContent = `
5518
5530
  :host {
5519
5531
  --dialog-inset: var(--inset);
5520
5532
  }
5521
5533
 
5522
- ${Gu}
5523
- ${qu}
5524
- ${Xu}
5525
5534
  ${Wu}
5526
5535
  ${zu}
5536
+ ${Vu}
5537
+ ${Ku}
5538
+ ${Ju}
5527
5539
  `, e && t.setAttribute("nonce", e), t;
5528
5540
  }
5529
- const Ku = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx";
5530
- function Ju() {
5531
- const e = te().getUser(), t = We().getUser(), n = to().getUser();
5541
+ const Qu = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx";
5542
+ function el() {
5543
+ const e = te().getUser(), t = We().getUser(), n = oo().getUser();
5532
5544
  return e && Object.keys(e).length ? e : t && Object.keys(t).length ? t : n;
5533
5545
  }
5534
- const Zu = () => ({
5546
+ const tl = () => ({
5535
5547
  name: "FeedbackModal",
5536
5548
  // eslint-disable-next-line @typescript-eslint/no-empty-function
5537
5549
  setupOnce() {
5538
5550
  },
5539
5551
  createDialog: ({ options: e, screenshotIntegration: t, sendFeedback: n, shadow: r }) => {
5540
- const o = r, i = e.useSentryUser, s = Ju(), a = C.createElement("div"), c = Vu(e.styleNonce);
5552
+ const o = r, i = e.useSentryUser, s = el(), a = C.createElement("div"), c = Zu(e.styleNonce);
5541
5553
  let l = "";
5542
5554
  const d = {
5543
5555
  get el() {
@@ -5555,10 +5567,10 @@ const Zu = () => ({
5555
5567
  close() {
5556
5568
  _(!1), C.body.style.overflow = l;
5557
5569
  }
5558
- }, u = t && t.createInput({ h: b, hooks: $u, dialog: d, options: e }), _ = (f) => {
5559
- xu(
5570
+ }, u = t && t.createInput({ h: b, hooks: Au, dialog: d, options: e }), _ = (f) => {
5571
+ Iu(
5560
5572
  b(
5561
- Yu,
5573
+ Xu,
5562
5574
  {
5563
5575
  options: e,
5564
5576
  screenshotInput: u,
@@ -5581,7 +5593,7 @@ const Zu = () => ({
5581
5593
  },
5582
5594
  open: f,
5583
5595
  __self: void 0,
5584
- __source: { fileName: Ku, lineNumber: 67 }
5596
+ __source: { fileName: Qu, lineNumber: 67 }
5585
5597
  }
5586
5598
  ),
5587
5599
  a
@@ -5589,8 +5601,8 @@ const Zu = () => ({
5589
5601
  };
5590
5602
  return d;
5591
5603
  }
5592
- }), Qu = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";
5593
- function el({
5604
+ }), nl = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";
5605
+ function rl({
5594
5606
  h: e
5595
5607
  // eslint-disable-line @typescript-eslint/no-unused-vars
5596
5608
  }) {
@@ -5615,12 +5627,12 @@ function el({
5615
5627
  s.preventDefault();
5616
5628
  },
5617
5629
  __self: this,
5618
- __source: { fileName: Qu, lineNumber: 22 }
5630
+ __source: { fileName: nl, lineNumber: 22 }
5619
5631
  }
5620
5632
  );
5621
5633
  };
5622
5634
  }
5623
- function tl(e) {
5635
+ function ol(e) {
5624
5636
  const t = C.createElement("style"), n = "#1A141F", r = "#302735";
5625
5637
  return t.textContent = `
5626
5638
  .editor {
@@ -5699,7 +5711,7 @@ function tl(e) {
5699
5711
  }
5700
5712
  `, e && t.setAttribute("nonce", e), t;
5701
5713
  }
5702
- function nl({ hooks: e }) {
5714
+ function il({ hooks: e }) {
5703
5715
  return function({ onBeforeScreenshot: n, onScreenshot: r, onAfterScreenshot: o, onError: i }) {
5704
5716
  e.useEffect(() => {
5705
5717
  (async () => {
@@ -5737,16 +5749,16 @@ const Z = "/home/runner/work/sentry-javascript/sentry-javascript/packages/feedba
5737
5749
  const s = (n - o) / 2, a = (t - i) / 2;
5738
5750
  return { startX: s, startY: a, endX: o + s, endY: i + a };
5739
5751
  };
5740
- function rl({
5752
+ function sl({
5741
5753
  h: e,
5742
5754
  hooks: t,
5743
5755
  imageBuffer: n,
5744
5756
  dialog: r,
5745
5757
  options: o
5746
5758
  }) {
5747
- const i = nl({ hooks: t });
5759
+ const i = il({ hooks: t });
5748
5760
  return function({ onError: a }) {
5749
- const c = t.useMemo(() => ({ __html: tl(o.styleNonce).innerText }), []), l = el({ h: e }), d = t.useRef(null), u = t.useRef(null), _ = t.useRef(null), [f, p] = t.useState({ startX: 0, startY: 0, endX: 0, endY: 0 }), [R, y] = t.useState(!1), [E, k] = t.useState(!1);
5761
+ const c = t.useMemo(() => ({ __html: ol(o.styleNonce).innerText }), []), l = rl({ h: e }), d = t.useRef(null), u = t.useRef(null), _ = t.useRef(null), [f, p] = t.useState({ startX: 0, startY: 0, endX: 0, endY: 0 }), [R, y] = t.useState(!1), [E, k] = t.useState(!1);
5750
5762
  t.useEffect(() => {
5751
5763
  ce.addEventListener("resize", P, !1);
5752
5764
  }, []);
@@ -5754,11 +5766,11 @@ function rl({
5754
5766
  const h = _.current, m = Ze(Xt(n));
5755
5767
  if (h) {
5756
5768
  h.width = m.width * q, h.height = m.height * q, h.style.width = `${m.width}px`, h.style.height = `${m.height}px`;
5757
- const S = h.getContext("2d");
5758
- S && S.scale(q, q);
5769
+ const v = h.getContext("2d");
5770
+ v && v.scale(q, q);
5759
5771
  }
5760
- const v = u.current;
5761
- v && (v.style.width = `${m.width}px`, v.style.height = `${m.height}px`), p({ startX: 0, startY: 0, endX: m.width, endY: m.height });
5772
+ const S = u.current;
5773
+ S && (S.style.width = `${m.width}px`, S.style.height = `${m.height}px`), p({ startX: 0, startY: 0, endX: m.width, endY: m.height });
5762
5774
  }
5763
5775
  t.useEffect(() => {
5764
5776
  const h = _.current;
@@ -5767,20 +5779,20 @@ function rl({
5767
5779
  const m = h.getContext("2d");
5768
5780
  if (!m)
5769
5781
  return;
5770
- const v = Ze(Xt(n)), S = Ze(f);
5771
- m.clearRect(0, 0, v.width, v.height), m.fillStyle = "rgba(0, 0, 0, 0.5)", m.fillRect(0, 0, v.width, v.height), m.clearRect(S.x, S.y, S.width, S.height), m.strokeStyle = "#ffffff", m.lineWidth = 3, m.strokeRect(S.x + 1, S.y + 1, S.width - 2, S.height - 2), m.strokeStyle = "#000000", m.lineWidth = 1, m.strokeRect(S.x + 3, S.y + 3, S.width - 6, S.height - 6);
5782
+ const S = Ze(Xt(n)), v = Ze(f);
5783
+ m.clearRect(0, 0, S.width, S.height), m.fillStyle = "rgba(0, 0, 0, 0.5)", m.fillRect(0, 0, S.width, S.height), m.clearRect(v.x, v.y, v.width, v.height), m.strokeStyle = "#ffffff", m.lineWidth = 3, m.strokeRect(v.x + 1, v.y + 1, v.width - 2, v.height - 2), m.strokeStyle = "#000000", m.lineWidth = 1, m.strokeRect(v.x + 3, v.y + 3, v.width - 6, v.height - 6);
5772
5784
  }, [f]);
5773
5785
  function B(h, m) {
5774
5786
  y(!1), k(!0);
5775
- const v = ne(m), S = () => {
5776
- C.removeEventListener("mousemove", v), C.removeEventListener("mouseup", S), y(!0), k(!1);
5787
+ const S = ne(m), v = () => {
5788
+ C.removeEventListener("mousemove", S), C.removeEventListener("mouseup", v), y(!0), k(!1);
5777
5789
  };
5778
- C.addEventListener("mouseup", S), C.addEventListener("mousemove", v);
5790
+ C.addEventListener("mouseup", v), C.addEventListener("mousemove", S);
5779
5791
  }
5780
5792
  const ne = t.useCallback((h) => function(m) {
5781
5793
  if (!_.current)
5782
5794
  return;
5783
- const v = _.current, S = v.getBoundingClientRect(), U = m.clientX - S.x, re = m.clientY - S.y;
5795
+ const S = _.current, v = S.getBoundingClientRect(), U = m.clientX - v.x, re = m.clientY - v.y;
5784
5796
  switch (h) {
5785
5797
  case "top-left":
5786
5798
  p((O) => ({
@@ -5792,7 +5804,7 @@ function rl({
5792
5804
  case "top-right":
5793
5805
  p((O) => ({
5794
5806
  ...O,
5795
- endX: Math.max(Math.min(U, v.width / q), O.startX + ge),
5807
+ endX: Math.max(Math.min(U, S.width / q), O.startX + ge),
5796
5808
  startY: Math.min(Math.max(0, re), O.endY - ge)
5797
5809
  }));
5798
5810
  break;
@@ -5800,14 +5812,14 @@ function rl({
5800
5812
  p((O) => ({
5801
5813
  ...O,
5802
5814
  startX: Math.min(Math.max(0, U), O.endX - ge),
5803
- endY: Math.max(Math.min(re, v.height / q), O.startY + ge)
5815
+ endY: Math.max(Math.min(re, S.height / q), O.startY + ge)
5804
5816
  }));
5805
5817
  break;
5806
5818
  case "bottom-right":
5807
5819
  p((O) => ({
5808
5820
  ...O,
5809
- endX: Math.max(Math.min(U, v.width / q), O.startX + ge),
5810
- endY: Math.max(Math.min(re, v.height / q), O.startY + ge)
5821
+ endX: Math.max(Math.min(U, S.width / q), O.startX + ge),
5822
+ endY: Math.max(Math.min(re, S.height / q), O.startY + ge)
5811
5823
  }));
5812
5824
  break;
5813
5825
  }
@@ -5816,11 +5828,11 @@ function rl({
5816
5828
  if (E)
5817
5829
  return;
5818
5830
  V.current = { initialX: h.clientX, initialY: h.clientY };
5819
- const m = (S) => {
5831
+ const m = (v) => {
5820
5832
  const U = _.current;
5821
5833
  if (!U)
5822
5834
  return;
5823
- const re = S.clientX - V.current.initialX, O = S.clientY - V.current.initialY;
5835
+ const re = v.clientX - V.current.initialX, O = v.clientY - V.current.initialY;
5824
5836
  p((Y) => {
5825
5837
  const Me = Math.max(
5826
5838
  0,
@@ -5829,35 +5841,35 @@ function rl({
5829
5841
  0,
5830
5842
  Math.min(Y.startY + O, U.height / q - (Y.endY - Y.startY))
5831
5843
  ), J = Me + (Y.endX - Y.startX), Oe = G + (Y.endY - Y.startY);
5832
- return V.current.initialX = S.clientX, V.current.initialY = S.clientY, {
5844
+ return V.current.initialX = v.clientX, V.current.initialY = v.clientY, {
5833
5845
  startX: Me,
5834
5846
  startY: G,
5835
5847
  endX: J,
5836
5848
  endY: Oe
5837
5849
  };
5838
5850
  });
5839
- }, v = () => {
5840
- C.removeEventListener("mousemove", m), C.removeEventListener("mouseup", v);
5851
+ }, S = () => {
5852
+ C.removeEventListener("mousemove", m), C.removeEventListener("mouseup", S);
5841
5853
  };
5842
- C.addEventListener("mousemove", m), C.addEventListener("mouseup", v);
5854
+ C.addEventListener("mousemove", m), C.addEventListener("mouseup", S);
5843
5855
  }
5844
5856
  function ie() {
5845
- const h = C.createElement("canvas"), m = Ze(Xt(n)), v = Ze(f);
5846
- h.width = v.width * q, h.height = v.height * q;
5847
- const S = h.getContext("2d");
5848
- S && n && S.drawImage(
5857
+ const h = C.createElement("canvas"), m = Ze(Xt(n)), S = Ze(f);
5858
+ h.width = S.width * q, h.height = S.height * q;
5859
+ const v = h.getContext("2d");
5860
+ v && n && v.drawImage(
5849
5861
  n,
5850
- v.x / m.width * n.width,
5851
- v.y / m.height * n.height,
5852
- v.width / m.width * n.width,
5853
- v.height / m.height * n.height,
5862
+ S.x / m.width * n.width,
5863
+ S.y / m.height * n.height,
5864
+ S.width / m.width * n.width,
5865
+ S.height / m.height * n.height,
5854
5866
  0,
5855
5867
  0,
5856
5868
  h.width,
5857
5869
  h.height
5858
5870
  );
5859
5871
  const U = n.getContext("2d");
5860
- U && (U.clearRect(0, 0, n.width, n.height), n.width = h.width, n.height = h.height, n.style.width = `${v.width}px`, n.style.height = `${v.height}px`, U.drawImage(h, 0, 0), P());
5872
+ U && (U.clearRect(0, 0, n.width, n.height), n.width = h.width, n.height = h.height, n.style.width = `${S.width}px`, n.style.height = `${S.height}px`, U.drawImage(h, 0, 0), P());
5861
5873
  }
5862
5874
  return i({
5863
5875
  onBeforeScreenshot: t.useCallback(() => {
@@ -5991,7 +6003,7 @@ function rl({
5991
6003
  );
5992
6004
  };
5993
6005
  }
5994
- const ol = () => ({
6006
+ const al = () => ({
5995
6007
  name: "FeedbackScreenshot",
5996
6008
  // eslint-disable-next-line @typescript-eslint/no-empty-function
5997
6009
  setupOnce() {
@@ -5999,7 +6011,7 @@ const ol = () => ({
5999
6011
  createInput: ({ h: e, hooks: t, dialog: n, options: r }) => {
6000
6012
  const o = C.createElement("canvas");
6001
6013
  return {
6002
- input: rl({
6014
+ input: sl({
6003
6015
  h: e,
6004
6016
  hooks: t,
6005
6017
  imageBuffer: o,
@@ -6021,15 +6033,16 @@ const ol = () => ({
6021
6033
  }
6022
6034
  };
6023
6035
  }
6024
- }), ul = yu({
6025
- lazyLoadIntegration: qc,
6026
- getModalIntegration: () => Zu,
6027
- getScreenshotIntegration: () => ol
6036
+ }), fl = vu({
6037
+ lazyLoadIntegration: zc,
6038
+ getModalIntegration: () => tl,
6039
+ getScreenshotIntegration: () => al
6028
6040
  });
6029
6041
  export {
6030
- cl as a,
6031
- va as b,
6032
- sl as c,
6033
- ul as f,
6034
- al as i
6042
+ Un as E,
6043
+ dl as a,
6044
+ xa as b,
6045
+ ul as c,
6046
+ fl as f,
6047
+ ll as i
6035
6048
  };