@powerhousedao/connect 6.0.0-dev.53 → 6.0.0-dev.54

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 (226) hide show
  1. package/dist/assets/AddDriveModal-CUlc2LVq.js +2 -0
  2. package/dist/assets/AddDriveModal-CUlc2LVq.js.map +1 -0
  3. package/dist/assets/AnalyticsSubscriptionManager-B5G_L5RP.js +3 -0
  4. package/dist/assets/AnalyticsSubscriptionManager-B5G_L5RP.js.map +1 -0
  5. package/dist/assets/ClearStorageModal-xiZInXK_.js +2 -0
  6. package/dist/assets/ClearStorageModal-xiZInXK_.js.map +1 -0
  7. package/dist/assets/CookiesPolicyModal-DVXJp787.js +2 -0
  8. package/dist/assets/CookiesPolicyModal-DVXJp787.js.map +1 -0
  9. package/dist/assets/CreateDocumentModal-Cjpq1PBD.js +2 -0
  10. package/dist/assets/CreateDocumentModal-Cjpq1PBD.js.map +1 -0
  11. package/dist/assets/DebugSettingsModal-BvEPWw2E.js +7 -0
  12. package/dist/assets/DebugSettingsModal-BvEPWw2E.js.map +1 -0
  13. package/dist/assets/DeleteDriveModal-BEq8v3-E.js +2 -0
  14. package/dist/assets/DeleteDriveModal-BEq8v3-E.js.map +1 -0
  15. package/dist/assets/DeleteItemModal-B3ziER8J.js +2 -0
  16. package/dist/assets/DeleteItemModal-B3ziER8J.js.map +1 -0
  17. package/dist/assets/DisclaimerModal-CFnBcICu.js +2 -0
  18. package/dist/assets/DisclaimerModal-CFnBcICu.js.map +1 -0
  19. package/dist/assets/DriveSettingsModal-BOdnkWJn.js +2 -0
  20. package/dist/assets/DriveSettingsModal-BOdnkWJn.js.map +1 -0
  21. package/dist/assets/ExportDocumentWithErrorsModal--uHwELhU.js +2 -0
  22. package/dist/assets/ExportDocumentWithErrorsModal--uHwELhU.js.map +1 -0
  23. package/dist/assets/SettingsModal-BntFjuQb.js +2 -0
  24. package/dist/assets/SettingsModal-BntFjuQb.js.map +1 -0
  25. package/dist/assets/UpgradeDriveModal-DmbwNsbG.js +2 -0
  26. package/dist/assets/UpgradeDriveModal-DmbwNsbG.js.map +1 -0
  27. package/dist/assets/__vite-browser-external-D7Ct-6yo.js +2 -0
  28. package/dist/assets/__vite-browser-external-D7Ct-6yo.js.map +1 -0
  29. package/dist/assets/_virtual_ph_external-packages-CM1tCR4L.js +1 -0
  30. package/dist/assets/_virtual_ph_external-packages-CM1tCR4L.js.map +1 -0
  31. package/dist/assets/analytics-2CJbiDed.js +3 -0
  32. package/dist/assets/analytics-2CJbiDed.js.map +1 -0
  33. package/dist/assets/ccip-BEAjQRKG.js +2 -0
  34. package/dist/assets/ccip-BEAjQRKG.js.map +1 -0
  35. package/dist/assets/confirmation-modal-BOwR5ZQq.js +2 -0
  36. package/dist/assets/confirmation-modal-BOwR5ZQq.js.map +1 -0
  37. package/dist/assets/core-BmuZEe8D.js +2 -0
  38. package/dist/assets/core-BmuZEe8D.js.map +1 -0
  39. package/dist/assets/disclosure-BhnV_XS1.js +2 -0
  40. package/dist/assets/disclosure-BhnV_XS1.js.map +1 -0
  41. package/dist/assets/drive-by-id-DvdlB_kB.js +2 -0
  42. package/dist/assets/drive-by-id-DvdlB_kB.js.map +1 -0
  43. package/dist/assets/drives-DjHuIXXn.js +2 -0
  44. package/dist/assets/drives-DjHuIXXn.js.map +1 -0
  45. package/dist/assets/dropdown-menu-BzZBDp_E.js +2 -0
  46. package/dist/assets/dropdown-menu-BzZBDp_E.js.map +1 -0
  47. package/dist/assets/editor-DBekHIfI.js +2 -0
  48. package/dist/assets/editor-DBekHIfI.js.map +1 -0
  49. package/dist/assets/editor-DV2TvDV5.js +46 -0
  50. package/dist/assets/editor-DV2TvDV5.js.map +1 -0
  51. package/dist/assets/exports-CQVZRuji.js +3 -0
  52. package/dist/assets/exports-CQVZRuji.js.map +1 -0
  53. package/dist/assets/form-input-CPs_z-6y.js +2 -0
  54. package/dist/assets/form-input-CPs_z-6y.js.map +1 -0
  55. package/dist/assets/graphql-editor-CcDLLpoK.js +74 -0
  56. package/dist/assets/graphql-editor-CcDLLpoK.js.map +1 -0
  57. package/dist/assets/hmr-BfH10IPs.js +2 -0
  58. package/dist/assets/hmr-BfH10IPs.js.map +1 -0
  59. package/dist/assets/hmr-LMNkvzP7.js +1 -0
  60. package/dist/assets/hmr-LMNkvzP7.js.map +1 -0
  61. package/dist/assets/{hooks-53pCkdY-.js → hooks--iZen3H-.js} +13 -12
  62. package/dist/assets/hooks--iZen3H-.js.map +1 -0
  63. package/dist/assets/index-BDI8rK1R.js +2 -0
  64. package/dist/assets/index-BDI8rK1R.js.map +1 -0
  65. package/dist/assets/index-BWgPOeS2.js +500 -0
  66. package/dist/assets/index-BWgPOeS2.js.map +1 -0
  67. package/dist/assets/index-BeyYTlkr.js +2 -0
  68. package/dist/assets/index-BeyYTlkr.js.map +1 -0
  69. package/dist/assets/index-CUlo2oTb.js +199 -0
  70. package/dist/assets/index-CUlo2oTb.js.map +1 -0
  71. package/dist/assets/index-DN20Z-2K.js +222 -0
  72. package/dist/assets/index-DN20Z-2K.js.map +1 -0
  73. package/dist/assets/index-DPCEN2cB.js +2 -0
  74. package/dist/assets/index-DPCEN2cB.js.map +1 -0
  75. package/dist/assets/index-DcvFnjR9.css +1 -0
  76. package/dist/assets/index-RTtoSfzq.js +2 -0
  77. package/dist/assets/index-RTtoSfzq.js.map +1 -0
  78. package/dist/assets/index-WdPlK4TH.js +32 -0
  79. package/dist/assets/index-WdPlK4TH.js.map +1 -0
  80. package/dist/assets/index.esm-BeYGM8vk.js +2 -0
  81. package/dist/assets/index.esm-BeYGM8vk.js.map +1 -0
  82. package/dist/assets/index.modern-BKQ3hpRq.js +2 -0
  83. package/dist/assets/index.modern-BKQ3hpRq.js.map +1 -0
  84. package/dist/assets/json-editor-CfHUc1UK.js +2 -0
  85. package/dist/assets/json-editor-CfHUc1UK.js.map +1 -0
  86. package/dist/assets/load-D23NmM_n.js +4 -0
  87. package/dist/assets/load-D23NmM_n.js.map +1 -0
  88. package/dist/assets/location-info-N8RPWokW.js +2 -0
  89. package/dist/assets/location-info-N8RPWokW.js.map +1 -0
  90. package/dist/assets/message-list-0i5gk_8j.js +2 -0
  91. package/dist/assets/message-list-0i5gk_8j.js.map +1 -0
  92. package/dist/assets/migrator-CmQyl4ZK.js +78 -0
  93. package/dist/assets/migrator-CmQyl4ZK.js.map +1 -0
  94. package/dist/assets/node-input-DnUl9CxT.js +2 -0
  95. package/dist/assets/node-input-DnUl9CxT.js.map +1 -0
  96. package/dist/assets/nodefs-BP-sxN1O.js +2 -0
  97. package/dist/assets/nodefs-BP-sxN1O.js.map +1 -0
  98. package/dist/assets/nodefs-_NvywCGz.js +1 -0
  99. package/dist/assets/nodefs-_NvywCGz.js.map +1 -0
  100. package/dist/assets/opfs-ahp-DN9nZuJs.js +1 -0
  101. package/dist/assets/opfs-ahp-DN9nZuJs.js.map +1 -0
  102. package/dist/assets/opfs-ahp-DtmzPaVs.js +4 -0
  103. package/dist/assets/opfs-ahp-DtmzPaVs.js.map +1 -0
  104. package/dist/assets/options-CBc6-sTL.js +2 -0
  105. package/dist/assets/options-CBc6-sTL.js.map +1 -0
  106. package/dist/assets/pglite.db-B2bT8QML.js +133 -0
  107. package/dist/assets/pglite.db-B2bT8QML.js.map +1 -0
  108. package/dist/assets/pglite.worker-Ca6pWokV.js +1 -0
  109. package/dist/assets/pglite.worker-Ca6pWokV.js.map +1 -0
  110. package/dist/assets/processor-host-module-B89Dt9nZ.js +3 -0
  111. package/dist/assets/processor-host-module-B89Dt9nZ.js.map +1 -0
  112. package/dist/assets/queue-CxFgA-r3.js +2 -0
  113. package/dist/assets/queue-CxFgA-r3.js.map +1 -0
  114. package/dist/assets/reactor-7tK-WVaY.js +16 -0
  115. package/dist/assets/reactor-7tK-WVaY.js.map +1 -0
  116. package/dist/assets/reactor-Bsjwm88i.js +193 -0
  117. package/dist/assets/reactor-Bsjwm88i.js.map +1 -0
  118. package/dist/assets/reactor-CRqBKYEo.css +1 -0
  119. package/dist/assets/read-required-modal-BKEkfucI.js +2 -0
  120. package/dist/assets/read-required-modal-BKEkfucI.js.map +1 -0
  121. package/dist/assets/renown-CgfQ6oBU.js +2 -0
  122. package/dist/assets/renown-CgfQ6oBU.js.map +1 -0
  123. package/dist/assets/state-schemas-DK8TnzfC.js +3 -0
  124. package/dist/assets/state-schemas-DK8TnzfC.js.map +1 -0
  125. package/dist/assets/tabs-DY_DEdtI.js +2 -0
  126. package/dist/assets/tabs-DY_DEdtI.js.map +1 -0
  127. package/dist/assets/use-get-switchboard-link-B47eB8lt.js +12 -0
  128. package/dist/assets/use-get-switchboard-link-B47eB8lt.js.map +1 -0
  129. package/dist/assets/user-permissions-BJ8c2UOP.js +2 -0
  130. package/dist/assets/user-permissions-BJ8c2UOP.js.map +1 -0
  131. package/dist/assets/vetra-Bu3fuZWc.js +221 -0
  132. package/dist/assets/vetra-Bu3fuZWc.js.map +1 -0
  133. package/dist/index.html +2 -20
  134. package/lib/package.copy.json +3 -4
  135. package/lib/src/components/app-loader.d.ts.map +1 -1
  136. package/lib/src/components/app-loader.js +5 -16
  137. package/lib/src/components/app-loader.js.map +1 -1
  138. package/lib/src/components/index.d.ts +0 -1
  139. package/lib/src/components/index.d.ts.map +1 -1
  140. package/lib/src/components/index.js +0 -1
  141. package/lib/src/components/index.js.map +1 -1
  142. package/lib/src/components/load.d.ts +8 -0
  143. package/lib/src/components/load.d.ts.map +1 -0
  144. package/lib/src/components/load.js +17 -0
  145. package/lib/src/components/load.js.map +1 -0
  146. package/lib/src/components/modal/modals/InspectorModal/InspectorModal.d.ts.map +1 -1
  147. package/lib/src/components/modal/modals/InspectorModal/InspectorModal.js +2 -1
  148. package/lib/src/components/modal/modals/InspectorModal/InspectorModal.js.map +1 -1
  149. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts +1 -0
  150. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.d.ts.map +1 -1
  151. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.js +2 -0
  152. package/lib/src/components/modal/modals/InspectorModal/useRemotesInspector.js.map +1 -1
  153. package/lib/src/components/modal/modals/SettingsModal.d.ts.map +1 -1
  154. package/lib/src/components/modal/modals/SettingsModal.js +4 -1
  155. package/lib/src/components/modal/modals/SettingsModal.js.map +1 -1
  156. package/lib/src/components/modal/modals-container.d.ts +1 -1
  157. package/lib/src/components/modal/modals-container.d.ts.map +1 -1
  158. package/lib/src/components/modal/modals-container.js +12 -8
  159. package/lib/src/components/modal/modals-container.js.map +1 -1
  160. package/lib/src/main.js +3 -0
  161. package/lib/src/main.js.map +1 -1
  162. package/lib/src/services/storage/base-storage.d.ts.map +1 -1
  163. package/lib/src/services/storage/base-storage.js.map +1 -1
  164. package/lib/src/store/processor-host-module.d.ts.map +1 -1
  165. package/lib/src/store/processor-host-module.js +2 -2
  166. package/lib/src/store/processor-host-module.js.map +1 -1
  167. package/lib/src/store/reactor.d.ts.map +1 -1
  168. package/lib/src/store/reactor.js +1 -1
  169. package/lib/src/store/reactor.js.map +1 -1
  170. package/lib/style.css +15 -0
  171. package/lib/tsconfig.tsbuildinfo +1 -1
  172. package/lib/vite.config.d.ts.map +1 -1
  173. package/lib/vite.config.js +1 -29
  174. package/lib/vite.config.js.map +1 -1
  175. package/package.copy.json +3 -4
  176. package/package.json +12 -13
  177. package/dist/assets/AddDriveModal-BZ11MHBB.js +0 -1
  178. package/dist/assets/ClearStorageModal-BC3gq6BT.js +0 -1
  179. package/dist/assets/CookiesPolicyModal-Bdf-jIqf.js +0 -1
  180. package/dist/assets/CreateDocumentModal-CExWso4S.js +0 -1
  181. package/dist/assets/DebugSettingsModal-MIi3iDrt.js +0 -1
  182. package/dist/assets/DeleteDriveModal-Cj_y-Bmk.js +0 -1
  183. package/dist/assets/DeleteItemModal-DLPEfn21.js +0 -1
  184. package/dist/assets/DisclaimerModal-uqaE0dfB.js +0 -1
  185. package/dist/assets/DriveSettingsModal-0o6Em8ZV.js +0 -1
  186. package/dist/assets/ExportDocumentWithErrorsModal-BWd92B7i.js +0 -1
  187. package/dist/assets/SettingsModal-Ca4V2Rxs.js +0 -1
  188. package/dist/assets/UpgradeDriveModal-ByNuxxET.js +0 -1
  189. package/dist/assets/config-0mYxXHFp.js +0 -1
  190. package/dist/assets/design_system-Q9KmzSmh.js +0 -45
  191. package/dist/assets/design_system_connect-MVhUhmHT.js +0 -47
  192. package/dist/assets/design_system_ui-BQ-CYVFb.js +0 -1
  193. package/dist/assets/document_drive-DiwReQ7A.js +0 -154
  194. package/dist/assets/document_engineering-BMBT2RYA.js +0 -1
  195. package/dist/assets/document_model-ly1Z8uco.js +0 -241
  196. package/dist/assets/document_model_editor-D_cNq26d.js +0 -25
  197. package/dist/assets/drive_explorer-508O2XxT.js +0 -2
  198. package/dist/assets/editor-DAyyI5MD.js +0 -1
  199. package/dist/assets/graphql-BXSeDpaV.js +0 -75
  200. package/dist/assets/graphql-editor-Buhxp36K.js +0 -73
  201. package/dist/assets/graphql_request-BHyPFzlZ.js +0 -3
  202. package/dist/assets/index-B6A7sjLB.css +0 -1
  203. package/dist/assets/index-D0gnc_IY.js +0 -208
  204. package/dist/assets/index-DQyPoyxC.js +0 -149
  205. package/dist/assets/index-DnR9iRBe.js +0 -29
  206. package/dist/assets/json-editor-dXLfmMol.js +0 -1
  207. package/dist/assets/nodefs-2HQmaeC9.js +0 -1
  208. package/dist/assets/nodefs-DzAAA-1u.js +0 -1
  209. package/dist/assets/opfs-ahp-CwNbpJAw.js +0 -3
  210. package/dist/assets/opfs-ahp-xYZANhiQ.js +0 -3
  211. package/dist/assets/postgres-CkP7QCDB.data +0 -0
  212. package/dist/assets/postgres-CyuUVpXN.wasm +0 -0
  213. package/dist/assets/react/jsx-runtime-DldvXD6N.js +0 -1
  214. package/dist/assets/react-D_vzfE_e.js +0 -1
  215. package/dist/assets/react-dom/client-SoBEzBdt.js +0 -9
  216. package/dist/assets/react-dom-Cz_KAjfm.js +0 -1
  217. package/dist/assets/reactor_browser-D2taHyRs.js +0 -136
  218. package/dist/assets/sentry_browser-TIBDlywD.js +0 -498
  219. package/dist/assets/sentry_react-CVx4Qq7f.js +0 -3
  220. package/dist/assets/state-schemas-C876MuV7.js +0 -2
  221. package/dist/assets/tailwind_merge-CXl88Wxt.js +0 -1
  222. package/dist/assets/zod-Cc38s6JG.js +0 -39
  223. package/lib/src/components/modal/index.d.ts +0 -18
  224. package/lib/src/components/modal/index.d.ts.map +0 -1
  225. package/lib/src/components/modal/index.js +0 -18
  226. package/lib/src/components/modal/index.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ const S=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,g=globalThis,P="10.23.0";function O(){return it(g),g}function it(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||P,e[P]=e[P]||{}}function G(t,e,n=g){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[P]=r[P]||{};return s[t]||(s[t]=e())}const zn=["debug","info","warn","error","log","assert","trace"],ne="Sentry Logger ",dt={};function ot(t){if(!("console"in g))return t();const e=g.console,n={},r=Object.keys(dt);r.forEach(s=>{const i=dt[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function re(){ct().enabled=!0}function se(){ct().enabled=!1}function Mt(){return ct().enabled}function ie(...t){at("log",...t)}function oe(...t){at("warn",...t)}function ae(...t){at("error",...t)}function at(t,...e){S&&Mt()&&ot(()=>{g.console[t](`${ne}[${t}]:`,...e)})}function ct(){return S?G("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const _={enable:re,disable:se,isEnabled:Mt,log:ie,warn:oe,error:ae},Ot=50,ce="?",lt=/\(error: (.*)\)/,_t=/captureMessage|captureException/;function ue(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(`
2
+ `);for(let c=r;c<o.length;c++){let a=o[c];a.length>1024&&(a=a.slice(0,1024));const u=lt.test(a)?a.replace(lt,"$1"):a;if(!u.match(/\S*Error: /)){for(const f of e){const p=f(u);if(p){i.push(p);break}}if(i.length>=Ot+s)break}}return fe(i.slice(s))}}function Kn(t){return Array.isArray(t)?ue(...t):t}function fe(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(U(e).function||"")&&e.pop(),e.reverse(),_t.test(U(e).function||"")&&(e.pop(),_t.test(U(e).function||"")&&e.pop()),e.slice(0,Ot).map(n=>({...n,filename:n.filename||U(e).filename,function:n.function||ce}))}function U(t){return t[t.length-1]||{}}const X="<anonymous>";function pe(t){try{return!t||typeof t!="function"?X:t.name||X}catch{return X}}function Yn(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const kt=Object.prototype.toString;function de(t){switch(kt.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return F(t,Error)}}function k(t,e){return kt.call(t)===`[object ${e}]`}function Wn(t){return k(t,"ErrorEvent")}function Vn(t){return k(t,"DOMError")}function Xn(t){return k(t,"DOMException")}function v(t){return k(t,"String")}function le(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Jn(t){return t===null||le(t)||typeof t!="object"&&typeof t!="function"}function Pt(t){return k(t,"Object")}function _e(t){return typeof Event<"u"&&F(t,Event)}function ge(t){return typeof Element<"u"&&F(t,Element)}function he(t){return k(t,"RegExp")}function H(t){return!!(t?.then&&typeof t.then=="function")}function me(t){return Pt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function F(t,e){try{return t instanceof e}catch{return!1}}function wt(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function qn(t){return typeof Request<"u"&&F(t,Request)}const ut=g,Se=80;function ye(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const c=" > ",a=c.length;let u;const f=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||Se;for(;n&&i++<r&&(u=Ee(n,f),!(u==="html"||i>1&&o+s.length*a+u.length>=p));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(c)}catch{return"<unknown>"}}function Ee(t,e){const n=t,r=[];if(!n?.tagName)return"";if(ut.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e?.length?e.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&v(o)){const c=o.split(/\s+/);for(const a of c)r.push(`.${a}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const c=n.getAttribute(o);c&&r.push(`[${o}="${c}"]`)}return r.join("")}function Qn(){try{return ut.document.location.href}catch{return""}}function Zn(t){if(!ut.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function B(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function J(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let s=Math.max(e-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function tr(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{wt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function be(t,e,n=!1){return v(t)?he(e)?e.test(t):v(e)?n?t===e:t.includes(e):!1:!1}function er(t,e=[],n=!1){return e.some(r=>be(t,r,n))}function nr(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&Te(s,r);try{t[e]=s}catch{S&&_.log(`Failed to replace method "${e}" in object`,t)}}function C(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{S&&_.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Te(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,C(t,"__sentry_original__",e)}catch{}}function rr(t){return t.__sentry_original__}function Lt(t){if(de(t))return{message:t.message,name:t.name,stack:t.stack,...ht(t)};if(_e(t)){const e={type:t.type,target:gt(t.target),currentTarget:gt(t.currentTarget),...ht(t)};return typeof CustomEvent<"u"&&F(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function gt(t){try{return ge(t)?ye(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function ht(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function sr(t,e=40){const n=Object.keys(Lt(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return B(r,e);for(let s=n.length;s>0;s--){const i=n.slice(0,s).join(", ");if(!(i.length>e))return s===n.length?i:B(i,e)}return""}function Ie(){const t=g;return t.crypto||t.msCrypto}let q;function Ae(){return Math.random()*16}function A(t=Ie()){try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"")}catch{}return q||(q="10000000100040008000"+1e11),q.replace(/[018]/g,e=>(e^(Ae()&15)>>e/4).toString(16))}function Ft(t){return t.exception?.values?.[0]}function ir(t){const{message:e,event_id:n}=t;if(e)return e;const r=Ft(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function or(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Ce(t,e){const n=Ft(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const i={...s?.data,...e.data};n.mechanism.data=i}}function ar(t,e,n=5){if(e.lineno===void 0)return;const r=t.length,s=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,s-n),s).map(o=>J(o,0));const i=Math.min(r-1,s);e.context_line=J(t[i],e.colno||0),e.post_context=t.slice(Math.min(s+1,r),s+1+n).map(o=>J(o,0))}function cr(t){if(xe(t))return!0;try{C(t,"__sentry_captured__",!0)}catch{}return!1}function xe(t){try{return t.__sentry_captured__}catch{}}const $t=1e3;function ft(){return Date.now()/$t}function Ne(){const{performance:t}=g;if(!t?.now||!t.timeOrigin)return ft;const e=t.timeOrigin;return()=>(e+t.now())/$t}let mt;function pt(){return(mt??(mt=Ne()))()}let Q;function Re(){const{performance:t}=g;if(!t?.now)return[void 0,"none"];const e=3600*1e3,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,o=t.timing?.navigationStart,a=typeof o=="number"?Math.abs(o+n-r):e,u=a<e;return i||u?s<=a?[t.timeOrigin,"timeOrigin"]:[o,"navigationStart"]:[r,"dateNow"]}function ur(){return Q||(Q=Re()),Q[0]}function De(t){const e=pt(),n={sid:A(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Oe(n)};return t&&z(n,t),n}function z(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||pt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:A()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function Me(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),z(t,n)}function Oe(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function K(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=K(r[s],e[s],n-1));return r}function w(){return A()}function Y(){return A().substring(16)}const tt="_sentrySpan";function St(t,e){e?C(t,tt,e):delete t[tt]}function et(t){return t[tt]}const ke=100;class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:w(),sampleRand:Math.random()}}clone(){const e=new b;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,St(e,et(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&z(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof b?n.getScopeData():Pt(n)?e:void 0,{tags:s,extra:i,user:o,contexts:c,level:a,fingerprint:u=[],propagationContext:f}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},o&&Object.keys(o).length&&(this._user=o),a&&(this._level=a),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,St(this,void 0),this._attachments=[],this.setPropagationContext({traceId:w(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:ke;if(r<=0)return this;const s={timestamp:ft(),...e,message:e.message?B(e.message,2048):e.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:et(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=K(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||A();if(!this._client)return S&&_.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r?.event_id||A();if(!this._client)return S&&_.warn("No client configured on scope - will not capture message!"),s;const i=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){const r=n?.event_id||A();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(S&&_.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function Pe(){return G("defaultCurrentScope",()=>new b)}function we(){return G("defaultIsolationScope",()=>new b)}class Le{constructor(e,n){let r;e?r=e:r=new b;let s;n?s=n:s=new b,this._stack=[{scope:r}],this._isolationScope=s}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(s){throw this._popScope(),s}return H(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function M(){const t=O(),e=it(t);return e.stack=e.stack||new Le(Pe(),we())}function Fe(t){return M().withScope(t)}function $e(t,e){const n=M();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function yt(t){return M().withScope(()=>t(M().getIsolationScope()))}function Ue(){return{withIsolationScope:yt,withScope:Fe,withSetScope:$e,withSetIsolationScope:(t,e)=>yt(e),getCurrentScope:()=>M().getScope(),getIsolationScope:()=>M().getIsolationScope()}}function $(t){const e=it(t);return e.acs?e.acs:Ue()}function R(){const t=O();return $(t).getCurrentScope()}function y(){const t=O();return $(t).getIsolationScope()}function je(){return G("globalScope",()=>new b)}function fr(...t){const e=O(),n=$(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function pr(...t){const e=O(),n=$(e);if(t.length===2){const[r,s]=t;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(t[0])}function D(){return R().getClient()}function dr(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=e,i={trace_id:n,span_id:s||Y()};return r&&(i.parent_span_id=r),i}const Ut="sentry.source",ve="sentry.sample_rate",Be="sentry.previous_trace_sample_rate",Ge="sentry.op",He="sentry.origin",lr="sentry.idle_span_finish_reason",_r="sentry.measurement_unit",gr="sentry.measurement_value",ze="sentry.custom_span_name",hr="sentry.profile_id",mr="sentry.exclusive_time",Sr="http.request.method",yr="url.full",Er="sentry.link.type",Ke=0,jt=1,m=2;function Ye(t){if(t<400&&t>=100)return{code:jt};if(t>=400&&t<500)switch(t){case 401:return{code:m,message:"unauthenticated"};case 403:return{code:m,message:"permission_denied"};case 404:return{code:m,message:"not_found"};case 409:return{code:m,message:"already_exists"};case 413:return{code:m,message:"failed_precondition"};case 429:return{code:m,message:"resource_exhausted"};case 499:return{code:m,message:"cancelled"};default:return{code:m,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:m,message:"unimplemented"};case 503:return{code:m,message:"unavailable"};case 504:return{code:m,message:"deadline_exceeded"};default:return{code:m,message:"internal_error"}}return{code:m,message:"internal_error"}}function br(t,e){t.setAttribute("http.response.status_code",e);const n=Ye(e);n.message!=="unknown_error"&&t.setStatus(n)}const vt="_sentryScope",Bt="_sentryIsolationScope";function We(t){try{const e=g.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function Ve(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function Tr(t,e,n){t&&(C(t,Bt,We(n)),C(t,vt,e))}function Gt(t){const e=t;return{scope:e[vt],isolationScope:Ve(e[Bt])}}const Ht="sentry-",Xe=/^sentry-/,Je=8192;function zt(t){const e=Qe(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,i])=>{if(s.match(Xe)){const o=s.slice(Ht.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function qe(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${Ht}${r}`]=s),n),{});return Ze(e)}function Qe(t){if(!(!t||!v(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Et(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):Et(t)}function Et(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),s=e.slice(n+1);return[r,s].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function Ze(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${e},${i}`;return o.length>Je?(S&&_.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const tn=/^o(\d+)\./,en=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nn(t){return t==="http"||t==="https"}function Ir(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:c,publicKey:a}=t;return`${c}://${a}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function rn(t){const e=en.exec(t);if(!e){ot(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i="",o="",c=""]=e.slice(1);let a="",u=c;const f=u.split("/");if(f.length>1&&(a=f.slice(0,-1).join("/"),u=f.pop()),u){const p=u.match(/^\d+/);p&&(u=p[0])}return Kt({host:i,pass:s,path:a,projectId:u,port:o,protocol:n,publicKey:r})}function Kt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function sn(t){if(!S)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(_.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?nn(r)?e&&isNaN(parseInt(e,10))?(_.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(_.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(_.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function on(t){return t.match(tn)?.[1]}function Yt(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=on(n)),r}function Ar(t){const e=typeof t=="string"?rn(t):Kt(t);if(!(!e||!sn(e)))return e}function bt(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const an=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function cn(t){if(!t)return;const e=t.match(an);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function Cr(t,e){const n=cn(t),r=zt(e);if(!n?.traceId)return{traceId:w(),sampleRand:Math.random()};const s=pn(n,r);r&&(r.sample_rand=s.toString());const{traceId:i,parentSpanId:o,parentSampled:c}=n;return{traceId:i,parentSpanId:o,sampled:c,dsc:r||{},sampleRand:s}}function un(t=w(),e=Y(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function fn(t=w(),e=Y(),n){return`00-${t}-${e}-${n?"01":"00"}`}function pn(t,e){const n=bt(e?.sample_rand);if(n!==void 0)return n;const r=bt(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}function xr(t,e){const n=Yt(t);return e&&n&&e!==n?(_.log(`Won't continue trace because org IDs don't match (incoming baggage: ${e}, SDK options: ${n})`),!1):(t.getOptions().strictTraceContinuation||!1)&&(e&&!n||!e&&n)?(_.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${e}, Sentry client: ${n})`),!1):!0}const Nr=0,Wt=1;let Tt=!1;function Rr(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:c,links:a}=W(t);return{parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:c,links:a}}function dn(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:W(t).parent_span_id,i=Gt(t).scope,o=r?i?.getPropagationContext().propagationSpanId||Y():e;return{parent_span_id:s,span_id:o,trace_id:n}}function Dr(t){const{traceId:e,spanId:n}=t.spanContext(),r=V(t);return un(e,n,r)}function Mr(t){const{traceId:e,spanId:n}=t.spanContext(),r=V(t);return fn(e,n,r)}function ln(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...s},attributes:i})=>({span_id:e,trace_id:n,sampled:r===Wt,attributes:i,...s}))}function It(t){return typeof t=="number"?At(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?At(t.getTime()):pt()}function At(t){return t>9999999999?t/1e3:t}function W(t){if(gn(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(_n(t)){const{attributes:r,startTime:s,name:i,endTime:o,status:c,links:a}=t,u="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:i,parent_span_id:u,start_timestamp:It(s),timestamp:It(o)||void 0,status:hn(c),op:r[Ge],origin:r[He],links:ln(a)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function _n(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function gn(t){return typeof t.getSpanJSON=="function"}function V(t){const{traceFlags:e}=t.spanContext();return e===Wt}function hn(t){if(!(!t||t.code===Ke))return t.code===jt?"ok":t.message||"internal_error"}const N="_sentryChildSpans",nt="_sentryRootSpan";function Or(t,e){const n=t[nt]||t;C(e,nt,n),t[N]?t[N].add(e):C(t,N,new Set([e]))}function kr(t,e){t[N]&&t[N].delete(e)}function Pr(t){const e=new Set;function n(r){if(!e.has(r)&&V(r)){e.add(r);const s=r[N]?Array.from(r[N]):[];for(const i of s)n(i)}}return n(t),Array.from(e)}function Vt(t){return t[nt]||t}function wr(){const t=O(),e=$(t);return e.getActiveSpan?e.getActiveSpan():et(R())}function Lr(){Tt||(ot(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Tt=!0)}function Fr(t,e){t.updateName(e),t.setAttributes({[Ut]:"custom",[ze]:e})}function mn(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||D()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const Xt="production",Jt="_frozenDsc";function $r(t,e){C(t,Jt,e)}function qt(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s={environment:n.environment||Xt,release:n.release,public_key:r,trace_id:t,org_id:Yt(e)};return e.emit("createDsc",s),s}function Ur(t,e){const n=e.getPropagationContext();return n.dsc||qt(n.traceId,t)}function Qt(t){const e=D();if(!e)return{};const n=Vt(t),r=W(n),s=r.data,i=n.spanContext().traceState,o=i?.get("sentry.sample_rate")??s[ve]??s[Be];function c(h){return(typeof o=="number"||typeof o=="string")&&(h.sample_rate=`${o}`),h}const a=n[Jt];if(a)return c(a);const u=i?.get("sentry.dsc"),f=u&&zt(u);if(f)return c(f);const p=qt(t.spanContext().traceId,e),d=s[Ut],l=r.description;return d!=="url"&&l&&(p.transaction=l),mn()&&(p.sampled=String(V(n)),p.sample_rand=i?.get("sentry.sample_rand")??Gt(n).scope?.getPropagationContext().sampleRand.toString()),c(p),e.emit("createDsc",p,n),p}function jr(t){const e=Qt(t);return qe(e)}function I(t,e=100,n=1/0){try{return rt("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Sn(t,e=3,n=100*1024){const r=I(t,e);return Tn(r)>n?Sn(t,e-1,n):r}function rt(t,e,n=1/0,r=1/0,s=In()){const[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const c=yn(t,e);if(!c.startsWith("[object "))return c;if(e.__sentry_skip_normalization__)return e;const a=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(a===0)return c.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const l=u.toJSON();return rt("",l,a-1,r,s)}catch{}const f=Array.isArray(e)?[]:{};let p=0;const d=Lt(e);for(const l in d){if(!Object.prototype.hasOwnProperty.call(d,l))continue;if(p>=r){f[l]="[MaxProperties ~]";break}const h=d[l];f[l]=rt(l,h,a-1,r,s),p++}return o(e),f}function yn(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(wt(e))return"[VueViewModel]";if(me(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${pe(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=En(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function En(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function bn(t){return~-encodeURI(t).split(/%..|./).length}function Tn(t){return bn(JSON.stringify(t))}function In(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}const Z=0,Ct=1,xt=2;function An(t){return new L(e=>{e(t)})}function Cn(t){return new L((e,n)=>{n(t)})}class L{constructor(e){this._state=Z,this._handlers=[],this._runExecutor(e)}then(e,n){return new L((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new L((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Z)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Ct&&n[1](this._value),this._state===xt&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(i,o)=>{if(this._state===Z){if(H(o)){o.then(r,s);return}this._state=i,this._value=o,this._executeHandlers()}},r=i=>{n(Ct,i)},s=i=>{n(xt,i)};try{e(r,s)}catch(i){s(i)}}}function xn(t,e,n,r=0){try{const s=st(e,n,t,r);return H(s)?s:An(s)}catch(s){return Cn(s)}}function st(t,e,n,r){const s=n[r];if(!t||!s)return t;const i=s({...t},e);return S&&i===null&&_.log(`Event processor "${s.id||"?"}" dropped event`),H(i)?i.then(o=>st(o,e,n,r+1)):st(i,e,n,r+1)}function Nn(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;Rn(t,e),r&&On(t,r),kn(t,n),Dn(t,s),Mn(t,i)}function Nt(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:c,breadcrumbs:a,fingerprint:u,eventProcessors:f,attachments:p,propagationContext:d,transactionName:l,span:h}=e;j(t,"extra",n),j(t,"tags",r),j(t,"user",s),j(t,"contexts",i),t.sdkProcessingMetadata=K(t.sdkProcessingMetadata,c,2),o&&(t.level=o),l&&(t.transactionName=l),h&&(t.span=h),a.length&&(t.breadcrumbs=[...t.breadcrumbs,...a]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),f.length&&(t.eventProcessors=[...t.eventProcessors,...f]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext={...t.propagationContext,...d}}function j(t,e,n){t[e]=K(t[e],n,1)}function Rn(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:c}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(s).length&&(t.user={...s,...t.user}),Object.keys(i).length&&(t.contexts={...i,...t.contexts}),o&&(t.level=o),c&&t.type!=="transaction"&&(t.transaction=c)}function Dn(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Mn(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function On(t,e){t.contexts={trace:dn(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Qt(e),...t.sdkProcessingMetadata};const n=Vt(e),r=W(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function kn(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}let x,Rt,Dt,T;function Zt(t){const e=g._sentryDebugIds,n=g._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],s=n?Object.keys(n):[];if(T&&r.length===Rt&&s.length===Dt)return T;Rt=r.length,Dt=s.length,T={},x||(x={});const i=(o,c)=>{for(const a of o){const u=c[a],f=x?.[a];if(f&&T&&u)T[f[0]]=u,x&&(x[a]=[f[0],u]);else if(u){const p=t(a);for(let d=p.length-1;d>=0;d--){const h=p[d]?.filename;if(h&&T&&x){T[h]=u,x[a]=[h,u];break}}}}};return e&&i(r,e),n&&i(s,n),T}function vr(t,e){const n=Zt(t);if(!n)return[];const r=[];for(const s of e)s&&n[s]&&r.push({type:"sourcemap",code_file:s,debug_id:n[s]});return r}function Br(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:c=1e3}=t,a={...e,event_id:e.event_id||n.event_id||A(),timestamp:e.timestamp||ft()},u=n.integrations||t.integrations.map(E=>E.name);Pn(a,t),Fn(a,u),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&wn(a,t.stackParser);const f=Un(r,n.captureContext);n.mechanism&&Ce(a,n.mechanism);const p=s?s.getEventProcessors():[],d=je().getScopeData();if(i){const E=i.getScopeData();Nt(d,E)}if(f){const E=f.getScopeData();Nt(d,E)}const l=[...n.attachments||[],...d.attachments];l.length&&(n.attachments=l),Nn(a,d);const h=[...p,...d.eventProcessors];return xn(h,a,n).then(E=>(E&&Ln(E),typeof o=="number"&&o>0?$n(E,o,c):E))}function Pn(t,e){const{environment:n,release:r,dist:s,maxValueLength:i}=e;t.environment=t.environment||n||Xt,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s);const o=t.request;o?.url&&(o.url=i?B(o.url,i):o.url)}function wn(t,e){const n=Zt(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function Ln(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Fn(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function $n(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:I(s.data,e,n)}}))},...t.user&&{user:I(t.user,e,n)},...t.contexts&&{contexts:I(t.contexts,e,n)},...t.extra&&{extra:I(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=I(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:I(s.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=I(t.contexts.flags,3,n)),r}function Un(t,e){if(!e)return t;const n=t?t.clone():new b;return n.update(e),n}function jn(t){if(t)return vn(t)?{captureContext:t}:Gn(t)?{captureContext:t}:t}function vn(t){return t instanceof b||typeof t=="function"}const Bn=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Gn(t){return Object.keys(t).some(e=>Bn.includes(e))}function Gr(t,e){return R().captureException(t,jn(e))}function Hr(t,e){const n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return R().captureMessage(t,n,r)}function zr(t,e){return R().captureEvent(t,e)}function Kr(t,e){y().setContext(t,e)}function Yr(t){y().setExtras(t)}function Wr(t,e){y().setExtra(t,e)}function Vr(t){y().setTags(t)}function Xr(t,e){y().setTag(t,e)}function Jr(t){y().setUser(t)}function qr(){return y().lastEventId()}async function Qr(t){const e=D();return e?e.flush(t):(S&&_.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Zr(t){const e=D();return e?e.close(t):(S&&_.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function ts(){return!!D()}function es(){const t=D();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function ns(t){y().addEventProcessor(t)}function rs(t){const e=y(),n=R(),{userAgent:r}=g.navigator||{},s=De({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),i=e.getSession();return i?.status==="ok"&&z(i,{status:"exited"}),te(),e.setSession(s),s}function te(){const t=y(),n=R().getSession()||t.getSession();n&&Me(n),ee(),t.setSession()}function ee(){const t=y(),e=D(),n=t.getSession();n&&e&&e.captureSession(n)}function ss(t=!1){if(t){te();return}ee()}export{lr as $,hr as A,D as B,Gt as C,S as D,R as E,Pr as F,g as G,ze as H,Rr as I,H as J,mn as K,bt as L,O as M,$ as N,zt as O,xr as P,fr as Q,$r as R,m as S,Nr as T,y as U,Or as V,Tr as W,ve as X,St as Y,Cr as Z,et as _,wr as a,ce as a$,kr as a0,Ar as a1,dn as a2,dr as a3,Ur as a4,le as a5,ot as a6,je as a7,Nt as a8,G as a9,dt as aA,Ce as aB,tr as aC,Hr as aD,Gr as aE,Yn as aF,de as aG,C as aH,B as aI,jt as aJ,br as aK,qn as aL,Ht as aM,Qn as aN,Te as aO,or as aP,Wn as aQ,Vn as aR,Xn as aS,_e as aT,Sn as aU,sr as aV,ur as aW,ye as aX,Zn as aY,v as aZ,ue as a_,ft as aa,A as ab,cr as ac,Jn as ad,z as ae,Xt as af,Br as ag,Cn as ah,K as ai,Pt as aj,An as ak,rn as al,P as am,es as an,Dr as ao,qe as ap,an as aq,Mr as ar,un as as,fn as at,rr as au,ir as av,er as aw,F as ax,zn as ay,nr as az,Vt as b,rs as b0,ss as b1,zr as b2,Kn as b3,qr as b4,ar as b5,yr as b6,Sr as b7,ns as b8,Kr as b9,Be as ba,Er as bb,vr as bc,b as bd,Zr as be,te as bf,Qr as bg,Ye as bh,ts as bi,Wr as bj,Yr as bk,Xr as bl,Vr as bm,jr as bn,Fr as bo,pr as bp,w as c,_ as d,Y as e,Ir as f,pe as g,it as h,be as i,Qt as j,W as k,Lr as l,V as m,I as n,_r as o,gr as p,Ge as q,He as r,Jr as s,pt as t,Wt as u,It as v,Ut as w,ln as x,hn as y,mr as z};
3
+ //# sourceMappingURL=exports-CQVZRuji.js.map