@wix/cli-app 1.1.15 → 1.1.17

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 (70) hide show
  1. package/build/CreateVersionCommand-F7A6HDJI.js +4 -0
  2. package/build/CreateVersionCommand-F7A6HDJI.js.map +1 -0
  3. package/build/{DevCommand-F4JNOQD3.js → DevCommand-KHV22E2S.js} +2 -2
  4. package/build/{GenerateCommand-M5FK5NRX.js → GenerateCommand-46EMTVWN.js} +22 -22
  5. package/build/GenerateCommand-46EMTVWN.js.map +1 -0
  6. package/build/PreviewCommand-XX7TWOJR.js +4 -0
  7. package/build/{ServeCommand-SCDZSOGW.js → ServeCommand-Z5NQEEE5.js} +2 -2
  8. package/build/{build-QKFFY6BT.js → build-WOV3ZNZF.js} +2 -2
  9. package/build/{chunk-ZHOPW26J.js → chunk-3EQ4ZYU2.js} +2 -2
  10. package/build/{chunk-V4D26EXO.js → chunk-4NIGEF2O.js} +30 -30
  11. package/build/chunk-4NIGEF2O.js.map +1 -0
  12. package/build/{chunk-KOTYDSCW.js → chunk-7IB3ZF3I.js} +2 -2
  13. package/build/{chunk-N6MHPAL7.js → chunk-7TOOBLT6.js} +2 -2
  14. package/build/{chunk-C6CRDQAM.js → chunk-CUWQRNQL.js} +2 -2
  15. package/build/{chunk-RZD2Z3NM.js → chunk-EH27FYQH.js} +2 -2
  16. package/build/{chunk-J7GQKX36.js → chunk-G7NSXRI7.js} +2 -2
  17. package/build/{chunk-M6F3SNYP.js → chunk-GHVN7KTY.js} +2 -2
  18. package/build/{chunk-M6F3SNYP.js.map → chunk-GHVN7KTY.js.map} +1 -1
  19. package/build/{chunk-OQ2EIA5Y.js → chunk-JIUANWPO.js} +2 -2
  20. package/build/chunk-KK4X6NH5.js +4 -0
  21. package/build/{chunk-F3L55KWK.js.map → chunk-KK4X6NH5.js.map} +1 -1
  22. package/build/{chunk-VPVMEECP.js → chunk-LT3WXWI5.js} +2 -2
  23. package/build/{chunk-TXD4M2YS.js → chunk-LW6PZKOJ.js} +2 -2
  24. package/build/chunk-LW6PZKOJ.js.map +1 -0
  25. package/build/{chunk-KDEP6ACN.js → chunk-PSXIV7FJ.js} +2 -2
  26. package/build/{chunk-JRUKA4BX.js → chunk-QW5H4VGJ.js} +2 -2
  27. package/build/{chunk-PBVA37S6.js → chunk-RWN7XXN6.js} +2 -2
  28. package/build/{chunk-6VY5XPWN.js → chunk-RYS7G2PY.js} +2 -2
  29. package/build/{chunk-HFEDL4QC.js → chunk-YWJFUO7I.js} +2 -2
  30. package/build/{chunk-NCLWI32Y.js → chunk-ZIVYB6TM.js} +2 -2
  31. package/build/devtools-WFBFD7GB.js +10 -0
  32. package/build/devtools-WFBFD7GB.js.map +1 -0
  33. package/build/esm-CECOC7V2.js +365 -0
  34. package/build/esm-CECOC7V2.js.map +1 -0
  35. package/build/index.js +2 -2
  36. package/build/{preview-WCMD3SX5.js → preview-FV7ZP3YC.js} +2 -2
  37. package/build/{render-command-WAL3BAYK.js → render-command-JEBHYUZV.js} +2 -2
  38. package/package.json +6 -6
  39. package/templates/dashboard-modal/modal.tsx.ejs +17 -9
  40. package/build/CreateVersionCommand-EKTXL4HX.js +0 -4
  41. package/build/CreateVersionCommand-EKTXL4HX.js.map +0 -1
  42. package/build/GenerateCommand-M5FK5NRX.js.map +0 -1
  43. package/build/PreviewCommand-5SJI24RE.js +0 -4
  44. package/build/chunk-F3L55KWK.js +0 -4
  45. package/build/chunk-TXD4M2YS.js.map +0 -1
  46. package/build/chunk-V4D26EXO.js.map +0 -1
  47. package/build/devtools-SH22YG5Z.js +0 -10
  48. package/build/devtools-SH22YG5Z.js.map +0 -1
  49. package/build/esm-GVPPSDDL.js +0 -352
  50. package/build/esm-GVPPSDDL.js.map +0 -1
  51. /package/build/{DevCommand-F4JNOQD3.js.map → DevCommand-KHV22E2S.js.map} +0 -0
  52. /package/build/{PreviewCommand-5SJI24RE.js.map → PreviewCommand-XX7TWOJR.js.map} +0 -0
  53. /package/build/{ServeCommand-SCDZSOGW.js.map → ServeCommand-Z5NQEEE5.js.map} +0 -0
  54. /package/build/{build-QKFFY6BT.js.map → build-WOV3ZNZF.js.map} +0 -0
  55. /package/build/{chunk-ZHOPW26J.js.map → chunk-3EQ4ZYU2.js.map} +0 -0
  56. /package/build/{chunk-KOTYDSCW.js.map → chunk-7IB3ZF3I.js.map} +0 -0
  57. /package/build/{chunk-N6MHPAL7.js.map → chunk-7TOOBLT6.js.map} +0 -0
  58. /package/build/{chunk-C6CRDQAM.js.map → chunk-CUWQRNQL.js.map} +0 -0
  59. /package/build/{chunk-RZD2Z3NM.js.map → chunk-EH27FYQH.js.map} +0 -0
  60. /package/build/{chunk-J7GQKX36.js.map → chunk-G7NSXRI7.js.map} +0 -0
  61. /package/build/{chunk-OQ2EIA5Y.js.map → chunk-JIUANWPO.js.map} +0 -0
  62. /package/build/{chunk-VPVMEECP.js.map → chunk-LT3WXWI5.js.map} +0 -0
  63. /package/build/{chunk-KDEP6ACN.js.map → chunk-PSXIV7FJ.js.map} +0 -0
  64. /package/build/{chunk-JRUKA4BX.js.map → chunk-QW5H4VGJ.js.map} +0 -0
  65. /package/build/{chunk-PBVA37S6.js.map → chunk-RWN7XXN6.js.map} +0 -0
  66. /package/build/{chunk-6VY5XPWN.js.map → chunk-RYS7G2PY.js.map} +0 -0
  67. /package/build/{chunk-HFEDL4QC.js.map → chunk-YWJFUO7I.js.map} +0 -0
  68. /package/build/{chunk-NCLWI32Y.js.map → chunk-ZIVYB6TM.js.map} +0 -0
  69. /package/build/{preview-WCMD3SX5.js.map → preview-FV7ZP3YC.js.map} +0 -0
  70. /package/build/{render-command-WAL3BAYK.js.map → render-command-JEBHYUZV.js.map} +0 -0
@@ -1,352 +0,0 @@
1
- import { createRequire as _createRequire } from 'node:module';
2
- const require = _createRequire(import.meta.url);
3
- import{d as Zc,h as f}from"./chunk-HFDLXX7R.js";f();f();f();f();f();f();var Qc=Object.prototype.toString;function lt(e){switch(Qc.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Be(e,Error)}}function In(e,t){return Qc.call(e)===`[object ${t}]`}function vn(e){return In(e,"ErrorEvent")}function Eo(e){return In(e,"DOMError")}function ls(e){return In(e,"DOMException")}function ye(e){return In(e,"String")}function xn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Kt(e){return e===null||xn(e)||typeof e!="object"&&typeof e!="function"}function Fe(e){return In(e,"Object")}function Jt(e){return typeof Event<"u"&&Be(e,Event)}function ds(e){return typeof Element<"u"&&Be(e,Element)}function fs(e){return In(e,"RegExp")}function ze(e){return!!(e&&e.then&&typeof e.then=="function")}function ps(e){return Fe(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function cr(e){return typeof e=="number"&&e!==e}function Be(e,t){try{return e instanceof t}catch{return!1}}function ur(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}f();function dt(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function lr(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Xt(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{ur(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function eu(e,t,n=!1){return ye(e)?fs(t)?t.test(e):ye(t)?n?e===t:e.includes(t):!1:!1}function ft(e,t=[],n=!1){return t.some(r=>eu(e,r,n))}function dr(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!Be(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=am(ms(e,t,o,s.originalException,r,i.exception.values,a,0),n))}function ms(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(Be(r[o],Error)){tu(s,a);let u=e(t,r[o]),l=c.length;nu(u,o,l,a),c=ms(e,t,n,r[o],o,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(Be(u,Error)){tu(s,a);let d=e(t,u),p=c.length;nu(d,`errors[${l}]`,p,a),c=ms(e,t,n,u,o,[d,...c],d,p)}}),c}function tu(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function nu(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function am(e,t){return e.map(n=>(n.value&&(n.value=dt(n.value,t)),n))}f();f();function bo(e){return e&&e.Math==Math?e:void 0}var C=typeof globalThis=="object"&&bo(globalThis)||typeof window=="object"&&bo(window)||typeof self=="object"&&bo(self)||typeof global=="object"&&bo(global)||function(){return this}()||{};function Zt(){return C}function fr(e,t,n){let r=n||C,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}var wn=Zt(),cm=80;function He(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||cm;for(;n&&i++<r&&(u=um(n,l),!(u==="html"||i>1&&s+o.length*c+u.length>=d));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function um(e,t){let n=e,r=[],o,i,s,a,c;if(!n||!n.tagName)return"";if(wn.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());let u=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&ye(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);let l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)s=l[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function pr(){try{return wn.document.location.href}catch{return""}}function mr(e){return wn.document&&wn.document.querySelector?wn.document.querySelector(e):null}function hr(e){if(!wn.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}f();f();var je=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();var lm="Sentry Logger ",Qt=["debug","info","warn","error","log","assert","trace"],Cn={};function Re(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(Cn);r.forEach(o=>{let i=Cn[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function dm(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return je?Qt.forEach(n=>{t[n]=(...r)=>{e&&Re(()=>{C.console[n](`${lm}[${n}]:`,...r)})}}):Qt.forEach(n=>{t[n]=()=>{}}),t}var h=dm();var fm=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function pm(e){return e==="http"||e==="https"}function Te(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function To(e){let t=fm.exec(e);if(!t){Re(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i,s="",a]=t.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let d=u.match(/^\d+/);d&&(u=d[0])}return ru({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function ru(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function mm(e){if(!je)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(h.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?pm(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function gr(e){let t=typeof e=="string"?To(e):ru(e);if(!(!t||!mm(t)))return t}f();var Se=class extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};f();f();function Q(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);typeof o=="function"&&Io(o,r),e[t]=o}function ke(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{je&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Io(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ke(e,"__sentry_original__",t)}catch{}}function en(e){return e.__sentry_original__}function gs(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function vo(e){if(lt(e))return{message:e.message,name:e.name,stack:e.stack,...iu(e)};if(Jt(e)){let t={type:e.type,target:ou(e.target),currentTarget:ou(e.currentTarget),...iu(e)};return typeof CustomEvent<"u"&&Be(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ou(e){try{return ds(e)?He(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function iu(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function _s(e,t=40){let n=Object.keys(vo(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return dt(n[0],t);for(let r=n.length;r>0;r--){let o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:dt(o,t)}return""}function K(e){return hs(e,new Map)}function hs(e,t){if(hm(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let o of Object.keys(e))typeof e[o]<"u"&&(r[o]=hs(e[o],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(o=>{r.push(hs(o,t))}),r}return e}function hm(e){if(!Fe(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}f();f();var cu=50,su=/\(error: (.*)\)/,au=/captureMessage|captureException/;function xo(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{let o=[],i=n.split(`
4
- `);for(let s=r;s<i.length;s++){let a=i[s];if(a.length>1024)continue;let c=su.test(a)?a.replace(su,"$1"):a;if(!c.match(/\S*Error: /)){for(let u of t){let l=u(c);if(l){o.push(l);break}}if(o.length>=cu)break}}return uu(o)}}function Ss(e){return Array.isArray(e)?xo(...e):e}function uu(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),au.test(t[t.length-1].function||"")&&(t.pop(),au.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,cu).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}var ys="<anonymous>";function Ae(e){try{return!e||typeof e!="function"?ys:e.name||ys}catch{return ys}}var wo={},lu={};function Oe(e,t){wo[e]=wo[e]||[],wo[e].push(t)}function Me(e,t){lu[e]||(t(),lu[e]=!0)}function me(e,t){let n=e&&wo[e];if(n)for(let r of n)try{r(t)}catch(o){je&&h.error(`Error while triggering instrumentation handler.
5
- Type: ${e}
6
- Name: ${Ae(r)}
7
- Error:`,o)}}function _r(e){let t="console";Oe(t,e),Me(t,gm)}function gm(){"console"in C&&Qt.forEach(function(e){e in C.console&&Q(C.console,e,function(t){return Cn[e]=t,function(...n){me("console",{args:n,level:e});let o=Cn[e];o&&o.apply(C.console,n)}})})}f();f();function H(){let e=C,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function du(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function et(e){let{message:t,event_id:n}=e;if(t)return t;let r=du(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Rn(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Ue(e,t){let n=du(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){let i={...o&&o.data,...t.data};n.mechanism.data=i}}function Es(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(i=>lr(i,0)),t.context_line=lr(e[Math.min(r-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(i=>lr(i,0))}function Co(e){if(e&&e.__sentry_captured__)return!0;try{ke(e,"__sentry_captured__",!0)}catch{}return!1}function yr(e){return Array.isArray(e)?e:[e]}var kn=C,_m=1e3,fu,bs,Ts;function Sr(e){let t="dom";Oe(t,e),Me(t,ym)}function ym(){if(!kn.document)return;let e=me.bind(null,"dom"),t=pu(e,!0);kn.document.addEventListener("click",t,!1),kn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=kn[n]&&kn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Q(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){let d=pu(e);l.handler=d,o.call(this,i,d,a)}l.refCount++}catch{}return o.call(this,i,s,a)}}),Q(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(o.call(this,i,l.handler,a),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,a)}}))})}function Sm(e){if(e.type!==bs)return!1;try{if(!e.target||e.target._sentryId!==Ts)return!1}catch{}return!0}function Em(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function pu(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=bm(n);if(Em(n.type,r))return;ke(n,"_sentryCaptured",!0),r&&!r._sentryId&&ke(r,"_sentryId",H());let o=n.type==="keypress"?"input":n.type;Sm(n)||(e({event:n,name:o,global:t}),bs=n.type,Ts=r?r._sentryId:void 0),clearTimeout(fu),fu=kn.setTimeout(()=>{Ts=void 0,bs=void 0},_m)}}function bm(e){try{return e.target}catch{return null}}f();f();var Ro=Zt();function ko(){if(!("fetch"in Ro))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Er(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function br(){if(typeof EdgeRuntime=="string")return!0;if(!ko())return!1;if(Er(Ro.fetch))return!0;let e=!1,t=Ro.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Er(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){je&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Is(){return"ReportingObserver"in Ro}function Tt(e){let t="fetch";Oe(t,e),Me(t,Tm)}function Tm(){br()&&Q(C,"fetch",function(e){return function(...t){let{method:n,url:r}=Im(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return me("fetch",{...o}),e.apply(C,t).then(i=>{let s={...o,endTimestamp:Date.now(),response:i};return me("fetch",s),i},i=>{let s={...o,endTimestamp:Date.now(),error:i};throw me("fetch",s),i})}})}function vs(e,t){return!!e&&typeof e=="object"&&!!e[t]}function mu(e){return typeof e=="string"?e:e?vs(e,"url")?e.url:e.toString?e.toString():"":""}function Im(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:mu(n),method:vs(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:mu(t),method:vs(t,"method")?String(t.method).toUpperCase():"GET"}}f();var Ao=null;function Tr(e){let t="error";Oe(t,e),Me(t,vm)}function vm(){Ao=C.onerror,C.onerror=function(e,t,n,r,o){return me("error",{column:r,error:o,line:n,msg:e,url:t}),Ao&&!Ao.__SENTRY_LOADER__?Ao.apply(this,arguments):!1},C.onerror.__SENTRY_INSTRUMENTED__=!0}f();var Oo=null;function Ir(e){let t="unhandledrejection";Oe(t,e),Me(t,xm)}function xm(){Oo=C.onunhandledrejection,C.onunhandledrejection=function(e){return me("unhandledrejection",e),Oo&&!Oo.__SENTRY_LOADER__?Oo.apply(this,arguments):!0},C.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}f();f();var Mo=Zt();function hu(){let e=Mo.chrome,t=e&&e.app&&e.app.runtime,n="history"in Mo&&!!Mo.history.pushState&&!!Mo.history.replaceState;return!t&&n}var vr=C,No;function tt(e){let t="history";Oe(t,e),Me(t,wm)}function wm(){if(!hu())return;let e=vr.onpopstate;vr.onpopstate=function(...n){let r=vr.location.href,o=No;if(No=r,me("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let o=r.length>2?r[2]:void 0;if(o){let i=No,s=String(o);No=s,me("history",{from:i,to:s})}return n.apply(this,r)}}Q(vr.history,"pushState",t),Q(vr.history,"replaceState",t)}f();var Cm=C,Ne="__sentry_xhr_v3__";function It(e){let t="xhr";Oe(t,e),Me(t,Rm)}function Rm(){if(!Cm.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;Q(e,"open",function(t){return function(...n){let r=Date.now(),o=ye(n[0])?n[0].toUpperCase():void 0,i=km(n[1]);if(!o||!i)return t.apply(this,n);this[Ne]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[Ne];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let c={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};me("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Q(this,"onreadystatechange",function(a){return function(...c){return s(),a.apply(this,c)}}):this.addEventListener("readystatechange",s),Q(this,"setRequestHeader",function(a){return function(...c){let[u,l]=c,d=this[Ne];return d&&ye(u)&&ye(l)&&(d.request_headers[u.toLowerCase()]=l),a.apply(this,c)}}),t.apply(this,n)}}),Q(e,"send",function(t){return function(...n){let r=this[Ne];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return me("xhr",o),t.apply(this,n)}})}function km(e){if(ye(e))return e;try{return e.toString()}catch{}}f();f();f();function xs(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ws(){return"npm"}function gu(){return!xs()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function An(){return typeof window<"u"&&(!gu()||Am())}function Am(){return C.process!==void 0&&C.process.type==="renderer"}f();function _u(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}f();function Ee(e,t=100,n=1/0){try{return Do("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Lo(e,t=3,n=100*1024){let r=Ee(e,t);return Dm(r)>n?Lo(e,t-1,n):r}function Do(e,t,n=1/0,r=1/0,o=_u()){let[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!cr(t))return t;let a=Om(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let m=u.toJSON();return Do("",m,c-1,r,o)}catch{}let l=Array.isArray(t)?[]:{},d=0,p=vo(t);for(let m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(d>=r){l[m]="[MaxProperties ~]";break}let g=p[m];l[m]=Do(m,g,c-1,r,o),d++}return s(t),l}function Om(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ur(t))return"[VueViewModel]";if(ps(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Ae(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Mm(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Mm(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Nm(e){return~-encodeURI(e).split(/%..|./).length}function Dm(e){return Nm(JSON.stringify(e))}f();function Lm(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var Pm=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Fm(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Pm.exec(t);return n?n.slice(1):[]}function Cs(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=Lm(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function yu(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function Rs(e,t){e=Cs(e).slice(1),t=Cs(t).slice(1);let n=yu(e.split("/")),r=yu(t.split("/")),o=Math.min(n.length,r.length),i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}function ks(e,t){let n=Fm(e)[2];return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}f();f();var vt;(function(e){e[e.PENDING=0]="PENDING";let n=1;e[e.RESOLVED=n]="RESOLVED";let r=2;e[e.REJECTED=r]="REJECTED"})(vt||(vt={}));function nt(e){return new $e(t=>{t(e)})}function tn(e){return new $e((t,n)=>{n(e)})}var $e=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=vt.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(vt.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(vt.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===vt.PENDING){if(ze(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===vt.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===vt.RESOLVED&&n[1](this._value),this._state===vt.REJECTED&&n[2](this._value),n[0]=!0)})}}};function As(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function o(s){if(!n())return tn(new Se("Not adding Promise because buffer limit was reached."));let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new $e((a,c)=>{let u=t.length;if(!u)return a(!0);let l=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(d=>{nt(d).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:t,add:o,drain:i}}f();function qe(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Os(e){return e.split(/[\?#]/,1)[0]}f();var Su=["fatal","error","warning","log","info","debug"];function xr(e){return e==="warn"?"warning":Su.includes(e)?e:"log"}f();var Eu=1e3;function pt(){return Date.now()/Eu}function Bm(){let{performance:e}=C;if(!e||!e.now)return pt;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Eu}var Ie=Bm();var wr,re=(()=>{let{performance:e}=C;if(!e||!e.now){wr="none";return}let 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,u=c<t;return i||u?o<=c?(wr="timeOrigin",e.timeOrigin):(wr="navigationStart",s):(wr="dateNow",r)})();f();f();var On="baggage",Ms="sentry-",Tu=/^sentry-/,Iu=8192;function Po(e){if(!ye(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,o)=>{let i=bu(o);for(let s of Object.keys(i))r[s]=i[s];return r},{});else{if(!e)return;t=bu(e)}let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(Tu)){let s=o.slice(Ms.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Cr(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Ms}${r}`]=o),n),{});return Hm(t)}function bu(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Hm(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{let i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>Iu?(je&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}var vu=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Rr(e){if(!e)return;let t=e.match(vu);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Ns(e,t){let n=Rr(e),r=Po(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:o||H(),parentSpanId:i||H().substring(16),spanId:H().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||H(),spanId:H().substring(16)}}}function kr(e,t){let n=Rr(e),r=Po(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceId:o||H(),parentSpanId:i||H().substring(16),spanId:H().substring(16),sampled:s,dsc:r||{}}:{traceId:o||H(),spanId:H().substring(16)}}function nn(e=H(),t=H().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}f();function be(e,t=[]){return[e,t]}function Ls(e,t){let[n,r]=e;return[n,[...r,t]]}function rt(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function Ps(e,t){return rt(e,(n,r)=>t.includes(r))}function Ds(e,t){return(t||new TextEncoder).encode(e)}function Ar(e,t){let[n,r]=e,o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[Ds(o,t),s]:o.push(typeof s=="string"?Ds(s,t):s)}for(let s of r){let[a,c]=s;if(i(`
8
- ${JSON.stringify(a)}
9
- `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(Ee(c))}i(u)}}return typeof o=="string"?o:Um(o)}function Um(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function Fs(e,t,n){let r=typeof e=="string"?t.encode(e):e;function o(c){let u=r.subarray(0,c);return r=r.subarray(c+1),u}function i(){let c=r.indexOf(10);return c<0&&(c=r.length),JSON.parse(n.decode(o(c)))}let s=i(),a=[];for(;r.length;){let c=i(),u=typeof c.length=="number"?c.length:void 0;a.push([c,u?o(u):i()])}return[s,a]}function Bs(e,t){let n=typeof e.data=="string"?Ds(e.data,t):e.data;return[K({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var $m={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Fo(e){return $m[e]}function Mn(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Or(e,t,n,r){let o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Te(r)},...o&&{trace:K({...o})}}}f();function Hs(e,t,n){let r=[{type:"client_report"},{timestamp:n||pt(),discarded_events:e}];return be(t?{dsn:t}:{},[r])}f();function Bo(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function xu(e,t){return e[t]||e.all||0}function Mr(e,t,n=Date.now()){return xu(e,t)>n}function Nr(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u,,,l]=a.split(":",5),d=parseInt(c,10),p=(isNaN(d)?60:d)*1e3;if(!u)o.all=r+p;else for(let m of u.split(";"))m==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(o[m]=r+p):o[m]=r+p}else s?o.all=r+Bo(s,r):t===429&&(o.all=r+60*1e3);return o}f();function wu(e,t){return e(t.stack||"",1)}function Us(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=wu(e,t);return r.length&&(n.stacktrace={frames:r}),n}f();function $s(e,t){return e??t()}f();function rn(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}f();var I=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();f();var ot="production";f();f();function Dr(){return fr("globalEventProcessors",()=>[])}function Ho(e){Dr().push(e)}function on(e,t,n,r=0){return new $e((o,i)=>{let s=e[r];if(t===null||typeof s!="function")o(t);else{let a=s({...t},n);I&&s.id&&a===null&&h.log(`Event processor "${s.id}" dropped event`),ze(a)?a.then(c=>on(e,c,n,r+1).then(o)).then(null,i):on(e,a,n,r+1).then(o).then(null,i)}})}f();function Uo(e){let t=Ie(),n={sid:H(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Gm(n)};return e&&it(n,e),n}function it(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Ie(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:H()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{let n=e.timestamp-e.started;e.duration=n>=0?n:0}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)}function $o(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),it(e,n)}function Gm(e){return K({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}f();f();f();f();f();var Ru=0,Gs=1;function sn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:a,origin:c}=P(e);return K({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:a,trace_id:n,origin:c})}function xt(e){let{traceId:t,spanId:n}=e.spanContext(),r=Nn(e);return nn(t,n,r)}function Mt(e){return typeof e=="number"?Cu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Cu(e.getTime()):Ie()}function Cu(e){return e>9999999999?e/1e3:e}function P(e){return Wm(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Wm(e){return typeof e.getSpanJSON=="function"}function Nn(e){let{traceFlags:t}=e.spanContext();return!!(t&Gs)}function an(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||H(),timestamp:t.timestamp||pt()},u=n.integrations||e.integrations.map(T=>T.name);zm(c,e),Ym(c,u),t.type===void 0&&jm(c,e.stackParser);let l=Km(r,n.captureContext);n.mechanism&&Ue(c,n.mechanism);let d=o&&o.getEventProcessors?o.getEventProcessors():[],p=zs().getScopeData();if(i){let T=i.getScopeData();Ws(p,T)}if(l){let T=l.getScopeData();Ws(p,T)}let m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Go(c,p);let g=[...d,...Dr(),...p.eventProcessors];return on(g,c,n).then(T=>(T&&qm(T),typeof s=="number"&&s>0?Vm(T,s,a):T))}function zm(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:ot),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=dt(e.message,i));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=dt(s.value,i));let a=e.request;a&&a.url&&(a.url=dt(a.url,i))}var ku=new WeakMap;function jm(e,t){let n=C._sentryDebugIds;if(!n)return;let r,o=ku.get(t);o?r=o:(r=new Map,ku.set(t,r));let i=Object.keys(n).reduce((s,a)=>{let c,u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){let d=c[l];if(d.filename){s[d.filename]=n[a];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function qm(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Ym(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Vm(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Ee(o.data,t,n)}}))},...e.user&&{user:Ee(e.user,t,n)},...e.contexts&&{contexts:Ee(e.contexts,t,n)},...e.extra&&{extra:Ee(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ee(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>{let i=P(o).data;return i&&(o.data=Ee(i,t,n)),o})),r}function Km(e,t){if(!t)return e;let n=e?e.clone():new st;return n.update(t),n}function Au(e){if(e)return Jm(e)?{captureContext:e}:Zm(e)?{captureContext:e}:e}function Jm(e){return e instanceof st||typeof e=="function"}var Xm=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Zm(e){return Object.keys(e).some(t=>Xm.includes(t))}function wt(e,t){return z().captureException(e,Au(t))}function cn(e,t){let n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return z().captureMessage(e,n,r)}function Nt(e,t){return z().captureEvent(e,t)}function Ou(e){z().configureScope(e)}function Ye(e,t){z().addBreadcrumb(e,t)}function Wo(e,t){z().setContext(e,t)}function Mu(e){z().setExtras(e)}function Nu(e,t){z().setExtra(e,t)}function Du(e){z().setTags(e)}function Lu(e,t){z().setTag(e,t)}function Pu(e){z().setUser(e)}function De(...e){let t=z();if(e.length===2){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Fu(e){return un(()=>e(he()))}function Bu(e,t){return De(n=>(n.setSpan(e),t(n)))}function Hu(e,t){return z().startTransaction({...e},t)}async function Uu(e){let t=x();return t?t.flush(e):(I&&h.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function $u(e){let t=x();return t?t.close(e):(I&&h.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Gu(){return z().lastEventId()}function x(){return z().getClient()}function Wu(){return!!x()}function Y(){return z().getScope()}function Lr(e){let t=x(),n=he(),r=Y(),{release:o,environment:i=ot}=t&&t.getOptions()||{},{userAgent:s}=C.navigator||{},a=Uo({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&it(c,{status:"exited"}),zo(),n.setSession(a),r.setSession(a),a}function zo(){let e=he(),t=Y(),n=t.getSession()||e.getSession();n&&$o(n),zu(),e.setSession(),t.setSession()}function zu(){let e=he(),t=Y(),n=x(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Pr(e=!1){if(e){zo();return}zu()}f();function ln(e){return e.transaction}function Dt(e,t,n){let r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=K({environment:r.environment||ot,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Ve(e){let t=x();if(!t)return{};let n=Dt(P(e).trace_id||"",t,Y()),r=ln(e);if(!r)return n;let o=r&&r._frozenDynamicSamplingContext;if(o)return o;let{sampleRate:i,source:s}=r.metadata;i!=null&&(n.sample_rate=`${i}`);let a=P(r);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(Nn(r)),t.emit&&t.emit("createDsc",n),n}function Go(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Qm(e,t),r&&nh(e,r),rh(e,n),eh(e,o),th(e,i)}function Ws(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:m,span:g}=t;Fr(e,"extra",n),Fr(e,"tags",r),Fr(e,"user",o),Fr(e,"contexts",i),Fr(e,"sdkProcessingMetadata",a),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Fr(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Qm(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=K(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=K(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let l=K(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});let d=K(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function eh(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function th(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function nh(e,t){e.contexts={trace:sn(t),...e.contexts};let n=ln(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ve(t),...e.sdkProcessingMetadata};let r=P(n).description;r&&(e.tags={transaction:r,...e.tags})}}function rh(e,t){e.fingerprint=e.fingerprint?yr(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}var oh=100,js,st=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ju()}static clone(t){return t?t.clone():new e}clone(){let t=new e;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._span=this._span,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}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&it(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t=="function"?t(this):t;if(n instanceof e){let r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(Fe(n)){let r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return 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._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=ju(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:oh;if(r<=0)return this;let o={timestamp:pt(),...t},i=this._breadcrumbs;return i.push(o),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){let{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:s,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:p,_span:m}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:s,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:d,transactionName:p,span:m}}applyToEvent(t,n={},r=[]){Go(t,this.getScopeData());let o=[...r,...Dr(),...this._eventProcessors];return on(o,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n&&n.event_id?n.event_id:H();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){let o=r&&r.event_id?r.event_id:H();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),o;let i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:H();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function zs(){return js||(js=new st),js}function ju(){return{traceId:H(),spanId:H().substring(16)}}f();var dn="7.112.2";var qu=parseFloat(dn),ih=100,Dn=class{constructor(t,n,r,o=qu){this._version=o;let i;n?i=n:(i=new st,i.setClient(t));let s;r?s=r:(s=new st,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){let n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){let n=this.pushScope(),r;try{r=t(n)}catch(o){throw this.popScope(),o}return ze(r)?r.then(o=>(this.popScope(),o),o=>{throw this.popScope(),o}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:H(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){let o=this._lastEventId=r&&r.event_id?r.event_id:H(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:H();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){let{scope:r,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=ih}=o.getOptions&&o.getOptions()||{};if(s<=0)return;let c={timestamp:pt(),...t},u=i?Re(()=>i(c,n)):c;u!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){let{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){let n=jo(this);try{t(this)}finally{jo(n)}}getIntegration(t){let n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return I&&h.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){let r=this._callExtensionMethod("startTransaction",t,n);return I&&!r&&(this.getClient()?h.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
10
- Sentry.addTracingExtensions();
11
- Sentry.init({...});
12
- `):h.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){let n=this.getStackTop().scope,r=n.getSession();r&&$o(r),this._sendSessionUpdate(),n.setSession()}startSession(t){let{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=ot}=r&&r.getOptions()||{},{userAgent:s}=C.navigator||{},a=Uo({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&it(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){let t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){let o=Lt().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);I&&h.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function Lt(){return C.__SENTRY__=C.__SENTRY__||{extensions:{},hub:void 0},C}function jo(e){let t=Lt(),n=Br(t);return qs(t,e),n}function z(){let e=Lt();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return sh(e)}function he(){return z().getIsolationScope()}function sh(e=Lt()){return(!ah(e)||Br(e).isOlderThan(qu))&&qs(e,new Dn),Br(e)}function un(e,t={}){let n=Lt();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function ah(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Br(e){return fr("hub",()=>new Dn,e)}function qs(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}f();f();function _e(e){return(e||z()).getScope().getTransaction()}var Yu=Rr;var Vu=!1;function Ku(){Vu||(Vu=!0,Tr(Ys),Ir(Ys))}function Ys(){let e=_e();if(e){let t="internal_error";I&&h.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ys.tag="sentry_tracingErrorCallback";f();f();f();f();var Vs;(function(e){let t="ok";e.Ok=t;let n="deadline_exceeded";e.DeadlineExceeded=n;let r="unauthenticated";e.Unauthenticated=r;let o="permission_denied";e.PermissionDenied=o;let i="not_found";e.NotFound=i;let s="resource_exhausted";e.ResourceExhausted=s;let a="invalid_argument";e.InvalidArgument=a;let c="unimplemented";e.Unimplemented=c;let u="unavailable";e.Unavailable=u;let l="internal_error";e.InternalError=l;let d="unknown_error";e.UnknownError=d;let p="cancelled";e.Cancelled=p;let m="already_exists";e.AlreadyExists=m;let g="failed_precondition";e.FailedPrecondition=g;let E="aborted";e.Aborted=E;let T="out_of_range";e.OutOfRange=T;let S="data_loss";e.DataLoss=S})(Vs||(Vs={}));function qo(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var Ju=qo;function Pt(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);let n=qo(t);n!=="unknown_error"&&e.setStatus(n)}f();f();function Yo(e,t,n=()=>{}){let r;try{r=e()}catch(o){throw t(o),n(),o}return ch(r,t,n)}function ch(e,t,n){return ze(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}f();function Ke(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=x(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Xu(e,t,n=()=>{},r=()=>{}){let o=z(),i=Y(),s=i.getSpan(),a=Ko(e),c=Vo(o,{parentSpan:s,spanContext:a,forceTransaction:!1,scope:i});return i.setSpan(c),Yo(()=>t(c),u=>{c&&c.setStatus("internal_error"),n(u,c)},()=>{c&&c.end(),i.setSpan(s),r()})}function Zu(e,t){let n=Ko(e);return un(()=>De(e.scope,r=>{let o=z(),i=r.getSpan(),a=e.onlyIfParent&&!i?void 0:Vo(o,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return Yo(()=>t(a),()=>{if(a){let{status:c}=P(a);(!c||c==="ok")&&a.setStatus("internal_error")}},()=>a&&a.end())}))}function Qu(e,t){let n=Ko(e);return un(()=>De(e.scope,r=>{let o=z(),i=r.getSpan(),a=e.onlyIfParent&&!i?void 0:Vo(o,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function c(){a&&a.end()}return Yo(()=>t(a,c),()=>{if(a&&a.isRecording()){let{status:u}=P(a);(!u||u==="ok")&&a.setStatus("internal_error")}})}))}function Ln(e){if(!Ke())return;let t=Ko(e),n=z(),r=e.scope?e.scope.getSpan():Ft();if(e.onlyIfParent&&!r)return;let s=(e.scope||Y()).clone();return Vo(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function Ft(){return Y().getSpan()}var el=({sentryTrace:e,baggage:t},n)=>{let r=Y(),{traceparentData:o,dynamicSamplingContext:i,propagationContext:s}=Ns(e,t);r.setPropagationContext(s),I&&o&&h.log(`[Tracing] Continuing trace ${o.traceId}.`);let a={...o,metadata:K({dynamicSamplingContext:i})};return n?un(()=>n(a)):a};function Vo(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:o}){if(!Ke())return;let i=he(),s;if(t&&!r)s=t.startChild(n);else if(t){let a=Ve(t),{traceId:c,spanId:u}=t.spanContext(),l=Nn(t);s=e.startTransaction({traceId:c,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{let{traceId:a,dsc:c,parentSpanId:u,sampled:l}={...i.getPropagationContext(),...o.getPropagationContext()};s=e.startTransaction({traceId:a,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return o.setSpan(s),uh(s,o,i),s}function Ko(e){if(e.startTime){let t={...e};return t.startTimestamp=Mt(e.startTime),delete t.startTime,t}return e}var tl="_sentryScope",nl="_sentryIsolationScope";function uh(e,t,n){e&&(ke(e,nl,n),ke(e,tl,t))}function rl(e){return{scope:e[tl],isolationScope:e[nl]}}var Hr;function ol(e){return Hr?Hr.get(e):void 0}function Jo(e){let t=ol(e);if(!t)return;let n={};for(let[,[r,o]]of t)n[r]||(n[r]=[]),n[r].push(K(o));return n}function il(e,t,n,r,o,i){let s=Ft();if(s){let a=ol(s)||new Map,c=`${e}:${t}@${r}`,u=a.get(i);if(u){let[,l]=u;a.set(i,[c,{min:Math.min(l.min,n),max:Math.max(l.max,n),count:l.count+=1,sum:l.sum+=n,tags:l.tags}])}else a.set(i,[c,{min:n,max:n,count:1,sum:n,tags:o}]);Hr||(Hr=new WeakMap),Hr.set(s,a)}}f();var ge="sentry.source",mt="sentry.sample_rate",fn="sentry.op",at="sentry.origin",Ks="profile_id";var Pn=class{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}},pn=class e{constructor(t={}){this._traceId=t.traceId||H(),this._spanId=t.spanId||H().substring(16),this._startTime=t.startTimestamp||Ie(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[at]:t.origin||"manual",[fn]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[fn]}set op(t){this.setAttribute(fn,t)}get origin(){return this._attributes[at]}set origin(t){this.setAttribute(at,t)}spanContext(){let{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Gs:Ru}}startChild(t){let n=new e({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);let r=ln(this);if(n.transaction=r,I&&r){let o=t&&t.op||"< unknown op >",i=P(n).description||"< unknown name >",s=r.spanContext().spanId,a=`[Tracing] Starting '${o}' span on transaction '${i}' (${s}).`;h.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Pt(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;let n=ln(this);if(I&&n&&n.spanContext().spanId!==this._spanId){let r=this._logMessage;r&&h.log(r.replace("Starting","Finishing"))}this._endTime=Mt(t)}toTraceparent(){return xt(this)}toContext(){return K({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return sn(this)}getSpanJSON(){return K({data:this._getData(),description:this._name,op:this._attributes[fn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[at],_metrics_summary:Jo(this),profile_id:this._attributes[Ks],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:t,_attributes:n}=this,r=Object.keys(t).length>0,o=Object.keys(n).length>0;if(!(!r&&!o))return r&&o?{...t,...n}:r?t:n}};f();var Fn=class extends pn{constructor(t,n){super(t),this._contexts={},this._hub=n||z(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;let r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[ge]&&{source:this._attributes[ge]},...this._attributes[mt]&&{sampleRate:this._attributes[mt]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(ge,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Pn(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){let n=Mt(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){let t=super.toContext();return K({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Ve(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(I&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);let n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){I&&h.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}let r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&P(l).timestamp):[];if(this._trimEnd&&r.length>0){let l=r.map(d=>P(d).timestamp).filter(Boolean);this._endTime=l.reduce((d,p)=>d>p?d:p)}let{scope:o,isolationScope:i}=rl(this),{metadata:s}=this,{source:a}=s,c={contexts:{...this._contexts,trace:sn(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:o,capturedSpanIsolationScope:i,...K({dynamicSamplingContext:Ve(this)})},_metrics_summary:Jo(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(I&&h.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),I&&h.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}};var Bt={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},lh="finishReason",Bn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],Js=class extends Pn{constructor(t,n,r,o){super(o),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){let n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),P(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}},Ur=class extends Fn{constructor(t,n,r=Bt.idleTimeout,o=Bt.finalTimeout,i=Bt.heartbeatInterval,s=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Bn[4],this._autoFinishAllowed=!a,s&&(I&&h.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Bn[3],this.end())},this._finalTimeout)}end(t){let n=Mt(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(lh,this._finishReason),this.spanRecorder){I&&h.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(let r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;P(r).timestamp||(r.setStatus("cancelled"),r.end(n),I&&h.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));let{start_timestamp:o,timestamp:i}=P(r),s=o&&o<n,a=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&o&&i-o<a;if(I){let u=JSON.stringify(r,void 0,2);s?c||h.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):h.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return s&&c}),I&&h.log("[Tracing] flushing IdleTransaction")}else I&&h.log("[Tracing] No active IdleTransaction");if(this._onScope){let r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){let n=o=>{this._finished||this._pushActivity(o)},r=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new Js(n,r,this.spanContext().spanId,t),I&&h.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Bn[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(I&&h.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Bn[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),I&&h.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,I&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(I&&h.log(`[Tracing] popActivity ${t}`),delete this.activities[t],I&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let n=Ie();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Bn[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(I&&h.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Bn[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){I&&h.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};f();function Xs(e,t,n){if(!Ke(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(mt,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(mt,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(mt,Number(r))):(r=1,e.setAttribute(mt,r)),Xo(r)?r?(e.sampled=Math.random()<r,e.sampled?(I&&h.log(`[Tracing] starting ${e.op} transaction - ${P(e).description}`),e):(I&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(I&&h.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(I&&h.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Xo(e){return cr(e)||!(typeof e=="number"||typeof e=="boolean")?(I&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(I&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function dh(){let t=this.getScope().getSpan();return t?{"sentry-trace":xt(t)}:{}}function fh(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=e.instrumenter||"sentry";o!==i&&(I&&h.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
13
- The transaction will not be sampled. Please use the ${o} instrumentation to start transactions.`),e.sampled=!1);let s=new Fn(e,this);return s=Xs(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function mn(e,t,n,r,o,i,s,a=!1){let c=e.getClient(),u=c&&c.getOptions()||{},l=new Ur(t,e,n,r,s,o,a);return l=Xs(l,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...i}),l.isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function Hn(){let e=Lt();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=fh),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=dh),Ku())}f();function Zo(e,t,n){let r=_e();r&&r.setMeasurement(e,t,n)}f();function ph(e,t){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}function Zs(e,t,n,r){let o=Mn(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Te(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return be(i,[s])}function $r(e,t,n,r){let o=Mn(n),i=e.type&&e.type!=="replay_event"?e.type:"event";ph(e,n&&n.sdk);let s=Or(e,o,r,t);return delete e.sdkProcessingMetadata,be(s,[[{type:i},e]])}f();var mh="7";function sl(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function hh(e){return`${sl(e)}${e.projectId}/envelope/`}function gh(e,t){return gs({sentry_key:e.publicKey,sentry_version:mh,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Gr(e,t={}){let n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${hh(e)}?${gh(e,r)}`}function Qs(e,t){let n=gr(e);if(!n)return"";let r=`${sl(n)}embed/error-page/`,o=`dsn=${Te(n)}`;for(let i in t)if(i!=="dsn"&&i!=="onClose")if(i==="user"){let s=t.user;if(!s)continue;s.name&&(o+=`&name=${encodeURIComponent(s.name)}`),s.email&&(o+=`&email=${encodeURIComponent(s.email)}`)}else o+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${o}`}f();f();var al=[];function _h(e){let t={};return e.forEach(n=>{let{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function ea(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=yr(n(t)):r=t;let o=_h(r),i=yh(o,s=>s.name==="Debug");if(i!==-1){let[s]=o.splice(i,1);o.push(s)}return o}function cl(e,t){let n={};return t.forEach(r=>{r&&na(e,r,n)}),n}function ta(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function na(e,t,n){if(n[t.name]){I&&h.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,al.indexOf(t.name)===-1&&(t.setupOnce(Ho,z),al.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}I&&h.log(`Integration installed: ${t.name}`)}function ul(e){let t=x();if(!t||!t.addIntegration){I&&h.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function yh(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function D(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}f();f();function ll(e,t,n,r){let o=Object.entries(K(r)).sort((i,s)=>i[0].localeCompare(s[0]));return`${e}${t}${n}${o}`}function dl(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return t>>>0}function fl(e){let t="";for(let n of e){let r=Object.entries(n.tags),o=r.length>0?`|#${r.map(([i,s])=>`${i}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${o}|T${n.timestamp}
14
- `}return t}function pl(e){return e.replace(/[^\w]+/gi,"_")}function ml(e){return e.replace(/[^\w\-.]+/gi,"_")}function Sh(e){return e.replace(/[^\w\-./]+/gi,"")}var Eh=[[`
15
- `,"\\n"],["\r","\\r"],[" ","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function bh(e){for(let[t,n]of Eh)if(e===t)return n;return e}function Th(e){return[...e].reduce((t,n)=>t+bh(n),"")}function hl(e){let t={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=Sh(n);t[r]=Th(String(e[n]))}return t}function gl(e,t,n,r){let o={sent_at:new Date().toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=Te(t));let i=Ih(e);return be(o,[i])}function Ih(e){let t=fl(e);return[{type:"statsd",length:t.length},t]}var _l="Not capturing exception because it's already been captured.",Wr=class{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=gr(t.dsn):I&&h.warn("No DSN provided, client will not send events."),this._dsn){let n=Gr(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Co(t)){I&&h.log(_l);return}let o=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{o=i})),o}captureMessage(t,n,r,o){let i=r&&r.event_id,s=xn(t)?t:String(t),a=Kt(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(a.then(c=>this._captureEvent(c,r,o)).then(c=>{i=c})),i}captureEvent(t,n,r){if(n&&n.originalException&&Co(n.originalException)){I&&h.log(_l);return}let o=n&&n.event_id,s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(a=>{o=a})),o}captureSession(t){typeof t.release!="string"?I&&h.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),it(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):nt(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return I&&h.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){let n=this._integrations[t.name];na(this,t,this._integrations),n||ta(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=$r(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of n.attachments||[])r=Ls(r,Bs(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let o=this._sendEnvelope(r);o&&o.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){let n=Zs(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){let o=`${t}:${n}`;I&&h.log(`Adding outcome: "${o}"`),this._outcomes[o]=this._outcomes[o]+1||1}}captureAggregateMetrics(t){I&&h.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);let n=gl(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=cl(this,t),ta(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,o=!1,i=n.exception&&n.exception.values;if(i){o=!0;for(let c of i){let u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(it(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new $e(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=o,t&&r>=t&&(clearInterval(i),n(!1)))},o)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o=he()){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),an(i,t,n,r,this,o).then(a=>{if(a===null)return a;let c={...o.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){let{traceId:l,spanId:d,parentSpanId:p,dsc:m}=c;a.contexts={trace:{trace_id:l,span_id:d,parent_span_id:p},...a.contexts};let g=m||Dt(l,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(o=>o.event_id,o=>{if(I){let i=o;i.logLevel==="log"?h.log(i.message):h.warn(i)}})}_processEvent(t,n,r){let o=this.getOptions(),{sampleRate:i}=o,s=Sl(t),a=yl(t),c=t.type||"error",u=`before send for type \`${c}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),tn(new Se(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let l=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",l,t),new Se("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return m;let E=xh(o,m,n);return vh(E,u)}).then(m=>{if(m===null)throw this.recordDroppedEvent("before_send",l,t),new Se(`${u} returned \`null\`, will not send event.`,"log");let g=r&&r.getSession();!s&&g&&this._updateSessionFromEvent(g,m);let E=m.transaction_info;if(s&&E&&m.transaction!==t.transaction){let T="custom";m.transaction_info={...E,source:T}}return this.sendEvent(m,n),m}).then(null,m=>{throw m instanceof Se?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),new Se(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
16
- Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{I&&h.error("Error while sending event:",n)});I&&h.error("Transport disabled")}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{let[r,o]=n.split(":");return{reason:r,category:o,quantity:t[n]}})}};function vh(e,t){let n=`${t} must return \`null\` or a valid event.`;if(ze(e))return e.then(r=>{if(!Fe(r)&&r!==null)throw new Se(n);return r},r=>{throw new Se(`${t} rejected with ${r}`)});if(!Fe(e)&&e!==null)throw new Se(n);return e}function xh(e,t,n){let{beforeSend:r,beforeSendTransaction:o}=e;return yl(t)&&r?r(t,n):Sl(t)&&o?o(t,n):t}function yl(e){return e.type===void 0}function Sl(e){return e.type==="transaction"}function Qo(e){let t=x();!t||!t.addEventProcessor||t.addEventProcessor(e)}f();var ei="c",ti="g",Un="s",ni="d";f();var ra=class{constructor(t){this._value=t}get weight(){return 1}add(t){this._value+=t}toString(){return`${this._value}`}},oa=class{constructor(t){this._last=t,this._min=t,this._max=t,this._sum=t,this._count=1}get weight(){return 5}add(t){this._last=t,t<this._min&&(this._min=t),t>this._max&&(this._max=t),this._sum+=t,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},ia=class{constructor(t){this._value=[t]}get weight(){return this._value.length}add(t){this._value.push(t)}toString(){return this._value.join(":")}},sa=class{constructor(t){this.first=t,this._value=new Set([t])}get weight(){return this._value.size}add(t){this._value.add(t)}toString(){return Array.from(this._value).map(t=>typeof t=="string"?dl(t):t).join(":")}},El={[ei]:ra,[ti]:oa,[ni]:ia,[Un]:sa};f();function aa(e,t){t.debug===!0&&(I?h.enable():Re(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Y().update(t.initialScope);let r=new e(t);ca(r),wh(r)}function ca(e){let n=z().getStackTop();n.client=e,n.scope.setClient(e)}function wh(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}f();var Ch=30;function $n(e,t,n=As(e.bufferSize||Ch)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(rt(s,(d,p)=>{let m=Fo(p);if(Mr(r,m)){let g=bl(d,p);e.recordDroppedEvent("ratelimit_backoff",m,g)}else a.push(d)}),a.length===0)return nt();let c=be(s[0],a),u=d=>{rt(c,(p,m)=>{let g=bl(p,m);e.recordDroppedEvent(d,Fo(m),g)})},l=()=>t({body:Ar(c,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&I&&h.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Nr(r,d),d),d=>{throw u("network_error"),d});return n.add(l).then(d=>d,d=>{if(d instanceof Se)return I&&h.error("Skipped sending event because buffer is full."),u("queue_overflow"),nt();throw d})}return i.__sentry__baseTransport__=!0,{send:i,flush:o}}function bl(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}f();var Rh=100,Tl=5e3,kh=36e5;function ua(e,t){I&&h.info(`[Offline]: ${e}`,t)}function la(e){return t=>{let n=e(t),r=t.createStore?t.createStore(t):void 0,o=Tl,i;function s(l,d,p){return Ps(l,["replay_event","replay_recording","client_report"])?!1:t.shouldStore?t.shouldStore(l,d,p):!0}function a(l){r&&(i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;let d=await r.pop();d&&(ua("Attempting to send previously queued event"),u(d).catch(p=>{ua("Failed to retry sending",p)}))},l),typeof i!="number"&&i.unref&&i.unref())}function c(){i||(a(o),o=Math.min(o*2,kh))}async function u(l){try{let d=await n.send(l),p=Rh;if(d){if(d.headers&&d.headers["retry-after"])p=Bo(d.headers["retry-after"]);else if((d.statusCode||0)>=400)return d}return a(p),o=Tl,d}catch(d){if(r&&await s(l,d,o))return await r.insert(l),c(),ua("Error sending. Event queued",d),{};throw d}}return t.flushAtStartup&&c(),{send:u,flush:l=>n.flush(l)}}}f();function Il(e,t){let n;return rt(e,(r,o)=>(t.includes(o)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function Ah(e,t){return n=>{let r=e(n);return{send:async o=>{let i=Il(o,["event","transaction","profile","replay_event"]);return i&&(i.release=t),r.send(o)},flush:o=>r.flush(o)}}}function vl(e,t){return n=>{let r=e(n),o={};function i(c,u){let l=u?`${c}:${u}`:c;if(!o[l]){let d=To(c);if(!d)return;let p=Gr(d);o[l]=u?Ah(e,u)({...n,url:p}):e({...n,url:p})}return o[l]}async function s(c){function u(p){let m=p&&p.length?p:["event"];return Il(c,m)}let l=t({envelope:c,getEvent:u}).map(p=>typeof p=="string"?i(p,void 0):i(p.dsn,p.release)).filter(p=>!!p);return l.length===0&&l.push(r),(await Promise.all(l.map(p=>p.send(c))))[0]}async function a(c){let u=[...Object.keys(o).map(d=>o[d]),r];return(await Promise.all(u.map(d=>d.flush(c)))).every(d=>d)}return{send:s,flush:a}}}f();function da(e,t){let n={sent_at:new Date().toISOString()};t&&(n.dsn=Te(t));let r=e.map(Oh);return be(n,r)}function Oh(e){return[{type:"span"},e]}f();function zr(e,t){let n=t&&Dh(t)?t.getClient():t,r=n&&n.getDsn(),o=n&&n.getOptions().tunnel;return Nh(e,r)||Mh(e,o)}function Mh(e,t){return t?xl(e)===xl(t):!1}function Nh(e,t){return t?e.includes(t.host):!1}function xl(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function Dh(e){return e.getClient!==void 0}f();function wl(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}f();function fa(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:dn})),version:dn}),e._metadata=o}f();f();var Rl=new Map,Cl=new Set;function Lh(e){if(C._sentryModuleMetadata)for(let t of Object.keys(C._sentryModuleMetadata)){let n=C._sentryModuleMetadata[t];if(Cl.has(t))continue;Cl.add(t);let r=e(t);for(let o of r.reverse())if(o.filename){Rl.set(o.filename,n);break}}}function Ph(e,t){return Lh(e),Rl.get(t)}function kl(e,t){try{t.exception.values.forEach(n=>{if(n.stacktrace)for(let r of n.stacktrace.frames||[]){if(!r.filename)continue;let o=Ph(e,r.filename);o&&(r.module_metadata=o)}})}catch{}}function Al(e){try{e.exception.values.forEach(t=>{if(t.stacktrace)for(let n of t.stacktrace.frames||[])delete n.module_metadata})}catch{}}var Ol="ModuleMetadata",Fh=()=>({name:Ol,setupOnce(){},setup(e){typeof e.on=="function"&&e.on("beforeEnvelope",t=>{rt(t,(n,r)=>{if(r==="event"){let o=Array.isArray(n)?n[1]:void 0;o&&(Al(o),n[1]=o)}})})},processEvent(e,t,n){let r=n.getOptions().stackParser;return kl(r,e),e}}),pa=Fh,Ml=D(Ol,pa);f();var Bh=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Hh=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Nl="InboundFilters",Uh=(e={})=>({name:Nl,setupOnce(){},processEvent(t,n,r){let o=r.getOptions(),i=$h(e,o);return Gh(t,i)?null:t}}),jr=Uh,oi=D(Nl,jr);function $h(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Bh],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:Hh],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Gh(e,t){return t.ignoreInternal&&Vh(e)?(I&&h.warn(`Event dropped due to being internal Sentry Error.
17
- Event: ${et(e)}`),!0):Wh(e,t.ignoreErrors)?(I&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
18
- Event: ${et(e)}`),!0):zh(e,t.ignoreTransactions)?(I&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
19
- Event: ${et(e)}`),!0):jh(e,t.denyUrls)?(I&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.
20
- Event: ${et(e)}.
21
- Url: ${ri(e)}`),!0):qh(e,t.allowUrls)?!1:(I&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.
22
- Event: ${et(e)}.
23
- Url: ${ri(e)}`),!0)}function Wh(e,t){return e.type||!t||!t.length?!1:Yh(e).some(n=>ft(n,t))}function zh(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;let n=e.transaction;return n?ft(n,t):!1}function jh(e,t){if(!t||!t.length)return!1;let n=ri(e);return n?ft(n,t):!1}function qh(e,t){if(!t||!t.length)return!0;let n=ri(e);return n?ft(n,t):!0}function Yh(e){let t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),I&&t.length===0&&h.error(`Could not extract message for event ${et(e)}`),t}function Vh(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Kh(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function ri(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Kh(t):null}catch{return I&&h.error(`Cannot extract url for event ${et(e)}`),null}}f();var Dl,Pl="FunctionToString",Ll=new WeakMap,Jh=()=>({name:Pl,setupOnce(){Dl=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=en(this),n=Ll.has(x())&&t!==void 0?t:this;return Dl.apply(n,e)}}catch{}},setup(e){Ll.set(e,!0)}}),qr=Jh,ii=D(Pl,qr);f();var Xh="cause",Zh=5,Fl="LinkedErrors",Qh=(e={})=>{let t=e.limit||Zh,n=e.key||Xh;return{name:Fl,setupOnce(){},preprocessEvent(r,o,i){let s=i.getOptions();dr(Us,s.stackParser,s.maxValueLength,n,t,r,o)}}},eg=Qh,Bl=D(Fl,eg);var ma={};Zc(ma,{FunctionToString:()=>ii,InboundFilters:()=>oi,LinkedErrors:()=>Bl});f();f();f();f();var si=class{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),5e3)}add(t,n,r,o="none",i={},s=Ie()){let a=Math.floor(s),c=ml(n),u=hl(i),l=pl(o),d=ll(t,c,l,u),p=this._buckets.get(d),m=p&&t===Un?p.metric.weight:0;p?(p.metric.add(r),p.timestamp<a&&(p.timestamp=a)):(p={metric:new El[t](r),timestamp:a,metricType:t,name:c,unit:l,tags:u},this._buckets.set(d,p));let g=typeof r=="string"?p.metric.weight-m:r;il(t,c,g,l,i,d)}flush(){if(this._buckets.size!==0){if(this._client.captureAggregateMetrics){let t=Array.from(this._buckets).map(([,n])=>n);this._client.captureAggregateMetrics(t)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}};var Hl="MetricsAggregator",ng=()=>({name:Hl,setupOnce(){},setup(e){e.metricsAggregator=new si(e)}}),ha=ng,Ul=D(Hl,ha);function ai(e,t,n,r={}){let o=x(),i=Y();if(o){if(!o.metricsAggregator){I&&h.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs");return}let{unit:s,tags:a,timestamp:c}=r,{release:u,environment:l}=o.getOptions(),d=i.getTransaction(),p={};u&&(p.release=u),l&&(p.environment=l),d&&(p.transaction=P(d).description||""),I&&h.log(`Adding value of ${n} to ${e} metric ${t}`),o.metricsAggregator.add(e,t,n,s,{...p,...a},c)}}function rg(e,t=1,n){ai(ei,e,t,n)}function og(e,t,n){ai(ni,e,t,n)}function ig(e,t,n){ai(Un,e,t,n)}function sg(e,t,n){ai(ti,e,t,n)}var $l={increment:rg,distribution:og,set:ig,gauge:sg,MetricsAggregator:Ul,metricsAggregatorIntegration:ha};var Gl=ma;f();f();f();var U=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();f();f();var R=C;function ci(){R.document?R.document.addEventListener("visibilitychange",()=>{let e=_e();if(R.document.hidden&&e){let t="cancelled",{op:n,status:r}=P(e);U&&h.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):U&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")}f();f();f();var ht=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||r===void 0)&&(r=t.value,t.delta=o,e(t)))}};f();f();var Wl=()=>`v3-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;f();f();var ag=()=>{let e=R.performance.timing,t=R.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(let r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},Ht=()=>R.__WEB_VITALS_POLYFILL__?R.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||ag()):R.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];var Gn=()=>{let e=Ht();return e&&e.activationStart||0};var gt=(e,t)=>{let n=Ht(),r="navigate";return n&&(R.document&&R.document.prerendering||Gn()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Wl(),navigationType:r}};f();var Je=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(o=>{t(o.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}};f();var _t=(e,t)=>{let n=r=>{(r.type==="pagehide"||R.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};R.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))};var zl=e=>{let t=gt("CLS",0),n,r=0,o=[],i=a=>{a.forEach(c=>{if(!c.hadRecentInput){let u=o[0],l=o[o.length-1];r&&o.length!==0&&c.startTime-l.startTime<1e3&&c.startTime-u.startTime<5e3?(r+=c.value,o.push(c)):(r=c.value,o=[c]),r>t.value&&(t.value=r,t.entries=o,n&&n())}})},s=Je("layout-shift",i);if(s){n=ht(e,t);let a=()=>{i(s.takeRecords()),n(!0)};return _t(a),a}};f();f();var ui=-1,cg=()=>{R.document&&R.document.visibilityState&&(ui=R.document.visibilityState==="hidden"&&!R.document.prerendering?0:1/0)},ug=()=>{_t(({timeStamp:e})=>{ui=e},!0)},Wn=()=>(ui<0&&(cg(),ug()),{get firstHiddenTime(){return ui}});var jl=e=>{let t=Wn(),n=gt("FID"),r,o=a=>{a.startTime<t.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},i=a=>{a.forEach(o)},s=Je("first-input",i);r=ht(e,n),s&&_t(()=>{i(s.takeRecords()),s.disconnect()},!0)};f();f();var ql=0,ga=1/0,li=0,lg=e=>{e.forEach(t=>{t.interactionId&&(ga=Math.min(ga,t.interactionId),li=Math.max(li,t.interactionId),ql=li?(li-ga)/7+1:0)})},_a,Yl=()=>_a?ql:performance.interactionCount||0,Vl=()=>{"interactionCount"in performance||_a||(_a=Je("event",lg,{type:"event",buffered:!0,durationThreshold:0}))};var Xl=()=>Yl(),Kl=10,Ct=[],ya={},Jl=e=>{let t=Ct[Ct.length-1],n=ya[e.interactionId];if(n||Ct.length<Kl||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{let r={id:e.interactionId,latency:e.duration,entries:[e]};ya[r.id]=r,Ct.push(r)}Ct.sort((r,o)=>o.latency-r.latency),Ct.splice(Kl).forEach(r=>{delete ya[r.id]})}},dg=()=>{let e=Math.min(Ct.length-1,Math.floor(Xl()/50));return Ct[e]},Zl=(e,t)=>{t=t||{},Vl();let n=gt("INP"),r,o=s=>{s.forEach(c=>{c.interactionId&&Jl(c),c.entryType==="first-input"&&!Ct.some(l=>l.entries.some(d=>c.duration===d.duration&&c.startTime===d.startTime))&&Jl(c)});let a=dg();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},i=Je("event",o,{durationThreshold:t.durationThreshold||40});r=ht(e,n,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),_t(()=>{o(i.takeRecords()),n.value<0&&Xl()>0&&(n.value=0,n.entries=[]),r(!0)}))};f();var Ql={},ed=e=>{let t=Wn(),n=gt("LCP"),r,o=s=>{let a=s[s.length-1];if(a){let c=Math.max(a.startTime-Gn(),0);c<t.firstHiddenTime&&(n.value=c,n.entries=[a],r())}},i=Je("largest-contentful-paint",o);if(i){r=ht(e,n);let s=()=>{Ql[n.id]||(o(i.takeRecords()),i.disconnect(),Ql[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{R.document&&addEventListener(a,s,{once:!0,capture:!0})}),_t(s,!0),s}};f();var Sa=e=>{R.document&&(R.document.prerendering?addEventListener("prerenderingchange",()=>Sa(e),!0):R.document.readyState!=="complete"?addEventListener("load",()=>Sa(e),!0):setTimeout(e,0))},td=(e,t)=>{t=t||{};let n=gt("TTFB"),r=ht(e,n,t.reportAllChanges);Sa(()=>{let o=Ht();if(o){if(n.value=Math.max(o.responseStart-Gn(),0),n.value<0||n.value>performance.now())return;n.entries=[o],r(!0)}})};var Yr={},di={},nd,rd,od,id,sd;function Ea(e,t=!1){return Kr("cls",e,fg,nd,t)}function Vr(e,t=!1){return Kr("lcp",e,mg,od,t)}function ad(e){return Kr("ttfb",e,hg,id)}function ba(e){return Kr("fid",e,pg,rd)}function cd(e){return Kr("inp",e,gg,sd)}function Le(e,t){return ud(e,t),di[e]||(_g(e),di[e]=!0),ld(e,t)}function zn(e,t){let n=Yr[e];if(!(!n||!n.length))for(let r of n)try{r(t)}catch(o){U&&h.error(`Error while triggering instrumentation handler.
24
- Type: ${e}
25
- Name: ${Ae(r)}
26
- Error:`,o)}}function fg(){return zl(e=>{zn("cls",{metric:e}),nd=e})}function pg(){return jl(e=>{zn("fid",{metric:e}),rd=e})}function mg(){return ed(e=>{zn("lcp",{metric:e}),od=e})}function hg(){return td(e=>{zn("ttfb",{metric:e}),id=e})}function gg(){return Zl(e=>{zn("inp",{metric:e}),sd=e})}function Kr(e,t,n,r,o=!1){ud(e,t);let i;return di[e]||(i=n(),di[e]=!0),r&&t({metric:r}),ld(e,t,o?i:void 0)}function _g(e){let t={};e==="event"&&(t.durationThreshold=0),Je(e,n=>{zn(e,{entries:n})},t)}function ud(e,t){Yr[e]=Yr[e]||[],Yr[e].push(t)}function ld(e,t,n){return()=>{n&&n();let r=Yr[e];if(!r)return;let o=r.indexOf(t);o!==-1&&r.splice(o,1)}}f();f();function fi(e){return typeof e=="number"&&isFinite(e)}function hn(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}var yg=2147483647;function fe(e){return e/1e3}function Ia(){return R&&R.addEventListener&&R.performance}var dd=0,ae={},yt,Jr;function mi(){let e=Ia();if(e&&re){e.mark&&R.performance.mark("sentry-tracing-init");let t=bg(),n=Sg(),r=Eg(),o=Tg();return()=>{t(),n(),r(),o()}}return()=>{}}function hi(){Le("longtask",({entries:e})=>{for(let t of e){let n=_e();if(!n)return;let r=fe(re+t.startTime),o=fe(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o})}})}function gi(){Le("event",({entries:e})=>{for(let t of e){let n=_e();if(!n)return;if(t.name==="click"){let r=fe(re+t.startTime),o=fe(t.duration),i={description:He(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+o},s=hr(t.target);s&&(i.attributes={"ui.component_name":s}),n.startChild(i)}}})}function _i(e,t){if(Ia()&&re){let r=Ig(e,t);return()=>{r()}}return()=>{}}function Sg(){return Ea(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(U&&h.log("[Measurements] Adding CLS"),ae.cls={value:e.value,unit:""},Jr=t)},!0)}function Eg(){return Vr(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(U&&h.log("[Measurements] Adding LCP"),ae.lcp={value:e.value,unit:"millisecond"},yt=t)},!0)}function bg(){return ba(({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let n=fe(re),r=fe(t.startTime);U&&h.log("[Measurements] Adding FID"),ae.fid={value:e.value,unit:"millisecond"},ae["mark.fid"]={value:n+r,unit:"second"}})}function Tg(){return ad(({metric:e})=>{e.entries[e.entries.length-1]&&(U&&h.log("[Measurements] Adding TTFB"),ae.ttfb={value:e.value,unit:"millisecond"})})}var fd={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Ig(e,t){return cd(({metric:n})=>{if(n.value===void 0)return;let r=n.entries.find(v=>v.duration===n.value&&fd[v.name]!==void 0),o=x();if(!r||!o)return;let i=fd[r.name],s=o.getOptions(),a=fe(re+r.startTime),c=fe(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;let{routeName:l,parentContext:d,activeTransaction:p,user:m,replayId:g}=u,E=m!==void 0?m.email||m.id||m.ip_address:void 0,T=p!==void 0?p.getProfileId():void 0,S=new pn({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:He(r.target),attributes:{release:s.release,environment:s.environment,transaction:l,...E!==void 0&&E!==""?{user:E}:{},...T!==void 0?{profile_id:T}:{},...g!==void 0?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),b=Og(d,s,t);if(b&&Math.random()<b){let v=S?da([S],o.getDsn()):void 0,O=o&&o.getTransport();O&&v&&O.send(v).then(null,L=>{U&&h.error("Error while sending interaction:",L)});return}})}function yi(e){let t=Ia();if(!t||!R.performance.getEntries||!re)return;U&&h.log("[Tracing] Adding & adjusting spans using Performance API");let n=fe(re),r=t.getEntries(),{op:o,start_timestamp:i}=P(e);if(r.slice(dd).forEach(s=>{let a=fe(s.startTime),c=fe(s.duration);if(!(e.op==="navigation"&&i&&n+a<i))switch(s.entryType){case"navigation":{xg(e,s,n);break}case"mark":case"paint":case"measure":{vg(e,s,a,c,n);let u=Wn(),l=s.startTime<u.firstHiddenTime;s.name==="first-paint"&&l&&(U&&h.log("[Measurements] Adding FP"),ae.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&l&&(U&&h.log("[Measurements] Adding FCP"),ae.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{Cg(e,s,s.name,a,c,n);break}}}),dd=Math.max(r.length-1,0),Rg(e),o==="pageload"){Ag(ae),["fcp","fp","lcp"].forEach(a=>{if(!ae[a]||!i||n>=i)return;let c=ae[a].value,u=n+fe(c),l=Math.abs((u-i)*1e3),d=l-c;U&&h.log(`[Measurements] Normalized ${a} from ${c} to ${l} (${d})`),ae[a].value=l});let s=ae["mark.fid"];s&&ae.fid&&(hn(e,{description:"first input delay",endTimestamp:s.value+fe(ae.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete ae["mark.fid"]),"fcp"in ae||delete ae.cls,Object.keys(ae).forEach(a=>{Zo(a,ae[a].value,ae[a].unit)}),kg(e)}yt=void 0,Jr=void 0,ae={}}function vg(e,t,n,r,o){let i=o+n,s=i+r;return hn(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function xg(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{pi(e,t,r,n)}),pi(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),pi(e,t,"fetch",n,"cache","domainLookupStart"),pi(e,t,"domainLookup",n,"DNS"),wg(e,t,n)}function pi(e,t,n,r,o,i){let s=i?t[i]:t[`${n}End`],a=t[`${n}Start`];!a||!s||hn(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+fe(a),endTimestamp:r+fe(s)})}function wg(e,t,n){t.responseEnd&&(hn(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+fe(t.requestStart),endTimestamp:n+fe(t.responseEnd)}),hn(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+fe(t.responseStart),endTimestamp:n+fe(t.responseEnd)}))}function Cg(e,t,n,r,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;let s=qe(n),a={};Ta(a,t,"transferSize","http.response_transfer_size"),Ta(a,t,"encodedBodySize","http.response_content_length"),Ta(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(a["url.scheme"]=s.protocol.split(":").pop()),s.host&&(a["server.address"]=s.host),a["url.same_origin"]=n.includes(R.location.origin);let c=i+r,u=c+o;hn(e,{description:n.replace(R.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}function Rg(e){let t=R.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),fi(n.rtt)&&(ae["connection.rtt"]={value:n.rtt,unit:"millisecond"})),fi(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),fi(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function kg(e){yt&&(U&&h.log("[Measurements] Adding LCP Data"),yt.element&&e.setTag("lcp.element",He(yt.element)),yt.id&&e.setTag("lcp.id",yt.id),yt.url&&e.setTag("lcp.url",yt.url.trim().slice(0,200)),e.setTag("lcp.size",yt.size)),Jr&&Jr.sources&&(U&&h.log("[Measurements] Adding CLS Data"),Jr.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,He(t.node))))}function Ta(e,t,n,r){let o=t[n];o!=null&&o<yg&&(e[r]=o)}function Ag(e){let t=Ht();if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(U&&h.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Og(e,t,n){if(!Ke(t))return!1;let r;return e!==void 0&&typeof t.tracesSampler=="function"?r=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:R.location}):e!==void 0&&e.sampled!==void 0?r=e.sampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1,Xo(r)?r===!0?n:r===!1?0:r*n:(U&&h.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}f();f();function pd(e,t,n,r,o="auto.http.browser"){if(!Ke()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let m=e.fetchData.__span;if(!m)return;let g=r[m];g&&(Dg(g,e),delete r[m]);return}let s=Y(),a=x(),{method:c,url:u}=e.fetchData,l=Ng(u),d=l?qe(l).host:void 0,p=i?Ln({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[at]:o},op:"http.client"}):void 0;if(p&&(e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p),n(e.fetchData.url)&&a){let m=e.args[0];e.args[1]=e.args[1]||{};let g=e.args[1];g.headers=Mg(m,a,s,g,p)}return p}function Mg(e,t,n,r,o){let i=o||n.getSpan(),s=he(),{traceId:a,spanId:c,sampled:u,dsc:l}={...s.getPropagationContext(),...n.getPropagationContext()},d=i?xt(i):nn(a,c,u),p=Cr(l||(i?Ve(i):Dt(a,t,n))),m=r.headers||(typeof Request<"u"&&Be(e,Request)?e.headers:void 0);if(m)if(typeof Headers<"u"&&Be(m,Headers)){let g=new Headers(m);return g.append("sentry-trace",d),p&&g.append(On,p),g}else if(Array.isArray(m)){let g=[...m,["sentry-trace",d]];return p&&g.push([On,p]),g}else{let g="baggage"in m?m.baggage:void 0,E=[];return Array.isArray(g)?E.push(...g):g&&E.push(g),p&&E.push(p),{...m,"sentry-trace":d,baggage:E.length>0?E.join(","):void 0}}else return{"sentry-trace":d,baggage:p}}function Ng(e){try{return new URL(e).href}catch{return}}function Dg(e,t){if(t.response){Pt(e,t.response.status);let n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){let r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}var va=["localhost",/^\/(?!\/)/],Ut={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:va,tracePropagationTargets:va};function jn(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s}={traceFetch:Ut.traceFetch,traceXHR:Ut.traceXHR,...e},a=typeof i=="function"?i:l=>!0,c=l=>Bg(l,r||o),u={};t&&Tt(l=>{let d=pd(l,a,c,u);if(d){let p=hd(l.fetchData.url),m=p?qe(p).host:void 0;d.setAttributes({"http.url":p,"server.address":m})}s&&d&&md(d)}),n&&It(l=>{let d=Hg(l,a,c,u);s&&d&&md(d)})}function Lg(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function md(e){let{url:t}=P(e).data||{};if(!t||typeof t!="string")return;let n=Le("resource",({entries:r})=>{r.forEach(o=>{Lg(o)&&o.name.endsWith(t)&&(Fg(o).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function Pg(e){let t="unknown",n="unknown",r="";for(let o of e){if(o==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function St(e=0){return((re||performance.timeOrigin)+e)/1e3}function Fg(e){let{name:t,version:n}=Pg(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),re?[...r,["http.request.redirect_start",St(e.redirectStart)],["http.request.fetch_start",St(e.fetchStart)],["http.request.domain_lookup_start",St(e.domainLookupStart)],["http.request.domain_lookup_end",St(e.domainLookupEnd)],["http.request.connect_start",St(e.connectStart)],["http.request.secure_connection_start",St(e.secureConnectionStart)],["http.request.connection_end",St(e.connectEnd)],["http.request.request_start",St(e.requestStart)],["http.request.response_start",St(e.responseStart)],["http.request.response_end",St(e.responseEnd)]]:r}function Bg(e,t){return ft(e,t||va)}function Hg(e,t,n,r){let o=e.xhr,i=o&&o[Ne];if(!Ke()||!o||o.__sentry_own_request__||!i)return;let s=t(i.url);if(e.endTimestamp&&s){let m=o.__sentry_xhr_span_id__;if(!m)return;let g=r[m];g&&i.status_code!==void 0&&(Pt(g,i.status_code),g.end(),delete r[m]);return}let a=Y(),c=he(),u=hd(i.url),l=u?qe(u).host:void 0,d=s?Ln({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":u,url:i.url,"server.address":l,[at]:"auto.http.browser"},op:"http.client"}):void 0;d&&(o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d);let p=x();if(o.setRequestHeader&&n(i.url)&&p){let{traceId:m,spanId:g,sampled:E,dsc:T}={...c.getPropagationContext(),...a.getPropagationContext()},S=d?xt(d):nn(m,g,E),b=Cr(T||(d?Ve(d):Dt(m,p,a)));Ug(o,S,b)}return d}function Ug(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(On,n)}catch{}}function hd(e){try{return new URL(e,R.location.origin).href}catch{return}}f();function gd(e,t=!0,n=!0){if(!R||!R.location){U&&h.warn("Could not initialize routing instrumentation due to invalid location");return}let r=R.location.href,o;t&&(o=e({name:R.location.pathname,startTimestamp:re?re/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&tt(({to:i,from:s})=>{if(s===void 0&&r&&r.indexOf(i)!==-1){r=void 0;return}s!==i&&(r=void 0,o&&(U&&h.log(`[Tracing] Finishing current transaction with op: ${o.op}`),o.end()),o=e({name:R.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}var Sd="BrowserTracing",$g={...Bt,markBackgroundTransactions:!0,routingInstrumentation:gd,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Ut},_d=10,Si=class{constructor(t){this.name=Sd,this._hasSetTracePropagationTargets=!1,Hn(),U&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...$g,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=mi(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&_i(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&hi(),this.options._experiments.enableInteractions&&gi(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;let o=n().getClient(),i=o&&o.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:a,startTransactionOnPageLoad:c,markBackgroundTransactions:u,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:p,enableHTTPTimings:m,_experiments:g}=this.options,E=i&&i.tracePropagationTargets,T=E||this.options.tracePropagationTargets;U&&this._hasSetTracePropagationTargets&&E&&h.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(S=>{let b=this._createRouteTransaction(S);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(b,S,n),b},c,a),u&&ci(),g.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),jn({traceFetch:l,traceXHR:d,tracePropagationTargets:T,shouldCreateSpanForRequest:p,enableHTTPTimings:m})}_createRouteTransaction(t){if(!this._getCurrentHub){U&&h.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}let n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:o,finalTimeout:i,heartbeatInterval:s}=this.options,a=t.op==="pageload",c;if(a){let m=a?yd("sentry-trace"):"",g=a?yd("baggage"):void 0,{traceId:E,dsc:T,parentSpanId:S,sampled:b}=kr(m,g);c={traceId:E,parentSpanId:S,parentSampled:b,...t,metadata:{...t.metadata,dynamicSamplingContext:T},trimEnd:!0}}else c={trimEnd:!0,...t};let u=typeof r=="function"?r(c):c,l=u===void 0?{...c,sampled:!1}:u;l.metadata=l.name!==c.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRoute.name=l.name,this._latestRoute.context=l,l.sampled===!1&&U&&h.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),U&&h.log(`[Tracing] Starting ${l.op} transaction on scope`);let{location:d}=R,p=mn(n,l,o,i,!0,{location:d},s,a);return a&&R.document&&(R.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(R.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(R.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(m=>{this._collectWebVitals(),yi(m)}),p}_registerInteractionListener(){let t,n=()=>{let{idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,s="ui.action.click",a=_e();if(a&&a.op&&["navigation","pageload"].includes(a.op)){U&&h.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){U&&h.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){U&&h.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}let c=this._getCurrentHub(),{location:u}=R,l={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[ge]:this._latestRoute.context?Gg(this._latestRoute.context):"url"}};t=mn(c,l,r,o,!0,{location:u},i)};["click"].forEach(r=>{R.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){let t=({entries:n})=>{let r=x(),o=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,i=o!==void 0?o.getReplayId():void 0,s=_e(),a=Y(),c=a!==void 0?a.getUser():void 0;n.forEach(u=>{if(Wg(u)){let l=u.interactionId;if(l===void 0)return;let d=this._interactionIdToRouteNameMapping[l],p=u.duration,m=u.startTime,g=Object.keys(this._interactionIdToRouteNameMapping),E=g.length>0?g.reduce((T,S)=>this._interactionIdToRouteNameMapping[T].duration<this._interactionIdToRouteNameMapping[S].duration?T:S):void 0;if(u.entryType==="first-input"&&g.map(S=>this._interactionIdToRouteNameMapping[S]).some(S=>S.duration===p&&S.startTime===m)||!l)return;if(d)d.duration=Math.max(d.duration,p);else if(g.length<_d||E===void 0||p>this._interactionIdToRouteNameMapping[E].duration){let T=this._latestRoute.name,S=this._latestRoute.context;T&&S&&(E&&Object.keys(this._interactionIdToRouteNameMapping).length>=_d&&delete this._interactionIdToRouteNameMapping[E],this._interactionIdToRouteNameMapping[l]={routeName:T,duration:p,parentContext:S,user:c,activeTransaction:s,replayId:i,startTime:m})}}})};Le("event",t),Le("first-input",t)}};function yd(e){let t=mr(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function Gg(e){let t=e.attributes&&e.attributes[ge],n=e.data&&e.data[ge],r=e.metadata&&e.metadata.source;return t||n||r}function Wg(e){return"duration"in e}f();var zg="BrowserTracing",jg={...Bt,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...Ut},Td=(e={})=>{let t=U?!!(e.tracePropagationTargets||e.tracingOrigins):!1;Hn(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);let n={...jg,...e},r=mi(),o={};n.enableInp&&_i(o,n.interactionsSampleRate),n.enableLongTask&&hi(),n._experiments.enableInteractions&&gi();let i={name:void 0,context:void 0};function s(a){let c=z(),{beforeStartSpan:u,idleTimeout:l,finalTimeout:d,heartbeatInterval:p}=n,m=a.op==="pageload",g;if(m){let b=m?Ed("sentry-trace"):"",v=m?Ed("baggage"):void 0,{traceId:O,dsc:L,parentSpanId:M,sampled:w}=kr(b,v);g={traceId:O,parentSpanId:M,parentSampled:w,...a,metadata:{...a.metadata,dynamicSamplingContext:L},trimEnd:!0}}else g={trimEnd:!0,...a};let E=u?u(g):g;E.metadata=E.name!==g.name?{...E.metadata,source:"custom"}:E.metadata,i.name=E.name,i.context=E,E.sampled===!1&&U&&h.log(`[Tracing] Will not send ${E.op} transaction because of beforeNavigate.`),U&&h.log(`[Tracing] Starting ${E.op} transaction on scope`);let{location:T}=R,S=mn(c,E,l,d,!0,{location:T},p,m);return m&&R.document&&(R.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(R.document.readyState)&&S.sendAutoFinishSignal()}),["interactive","complete"].includes(R.document.readyState)&&S.sendAutoFinishSignal()),S.registerBeforeFinishCallback(b=>{r(),yi(b)}),S}return{name:zg,setupOnce:()=>{},afterAllSetup(a){let c=a.getOptions(),{markBackgroundSpan:u,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:p,enableHTTPTimings:m,_experiments:g}=n,E=c&&c.tracePropagationTargets,T=E||n.tracePropagationTargets;U&&t&&E&&h.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let S,b=R.location&&R.location.href;if(a.on&&(a.on("startNavigationSpan",v=>{S&&(U&&h.log(`[Tracing] Finishing current transaction with op: ${P(S).op}`),S.end()),S=s({op:"navigation",...v})}),a.on("startPageLoadSpan",v=>{S&&(U&&h.log(`[Tracing] Finishing current transaction with op: ${P(S).op}`),S.end()),S=s({op:"pageload",...v})})),n.instrumentPageLoad&&a.emit&&R.location){let v={name:R.location.pathname,startTimestamp:re?re/1e3:void 0,origin:"auto.pageload.browser",attributes:{[ge]:"url"}};xa(a,v)}n.instrumentNavigation&&a.emit&&R.location&&tt(({to:v,from:O})=>{if(O===void 0&&b&&b.indexOf(v)!==-1){b=void 0;return}if(O!==v){b=void 0;let L={name:R.location.pathname,origin:"auto.navigation.browser",attributes:{[ge]:"url"}};wa(a,L)}}),u&&ci(),g.enableInteractions&&qg(n,i),n.enableInp&&Vg(o,i),jn({traceFetch:l,traceXHR:d,tracePropagationTargets:T,shouldCreateSpanForRequest:p,enableHTTPTimings:m})},options:n}};function xa(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);let n=Ft();return(n&&P(n).op)==="pageload"?n:void 0}function wa(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);let n=Ft();return(n&&P(n).op)==="navigation"?n:void 0}function Ed(e){let t=mr(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function qg(e,t){let n,r=()=>{let{idleTimeout:o,finalTimeout:i,heartbeatInterval:s}=e,a="ui.action.click",c=_e();if(c&&c.op&&["navigation","pageload"].includes(c.op)){U&&h.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name){U&&h.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}let{location:u}=R,l={name:t.name,op:a,trimEnd:!0,data:{[ge]:t.context?Kg(t.context):"url"}};n=mn(z(),l,o,i,!0,{location:u},s)};["click"].forEach(o=>{R.document&&addEventListener(o,r,{once:!1,capture:!0})})}function Yg(e){return"duration"in e}var bd=10;function Vg(e,t){let n=({entries:r})=>{let o=x(),i=o!==void 0&&o.getIntegrationByName!==void 0?o.getIntegrationByName("Replay"):void 0,s=i!==void 0?i.getReplayId():void 0,a=_e(),c=Y(),u=c!==void 0?c.getUser():void 0;r.forEach(l=>{if(Yg(l)){let d=l.interactionId;if(d===void 0)return;let p=e[d],m=l.duration,g=l.startTime,E=Object.keys(e),T=E.length>0?E.reduce((S,b)=>e[S].duration<e[b].duration?S:b):void 0;if(l.entryType==="first-input"&&E.map(b=>e[b]).some(b=>b.duration===m&&b.startTime===g)||!d)return;if(p)p.duration=Math.max(p.duration,m);else if(E.length<bd||T===void 0||m>e[T].duration){let S=t.name,b=t.context;S&&b&&(T&&Object.keys(e).length>=bd&&delete e[T],e[d]={routeName:S,duration:m,parentContext:b,user:u,activeTransaction:a,replayId:s,startTime:g})}}})};Le("event",n),Le("first-input",n)}function Kg(e){let t=e.attributes&&e.attributes[ge],n=e.data&&e.data[ge],r=e.metadata&&e.metadata.source;return t||n||r}var A=C,Ca=0;function Ra(){return Ca>0}function Jg(){Ca++,setTimeout(()=>{Ca--})}function Rt(e,t={},n){if(typeof e!="function")return e;try{let o=e.__sentry_wrapped__;if(o)return o;if(en(e))return e}catch{return e}let r=function(){let o=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);let i=o.map(s=>Rt(s,t));return e.apply(this,i)}catch(i){throw Jg(),De(s=>{s.addEventProcessor(a=>(t.mechanism&&(Rn(a,void 0,void 0),Ue(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),wt(i)}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}Io(r,e),ke(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}f();f();var F=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();function Ei(e,t){let n=Oa(e,t),r={type:t&&t.name,value:e_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Xg(e,t,n,r){let o=x(),i=o&&o.getOptions().normalizeDepth,s={exception:{values:[{type:Jt(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:t_(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Lo(t,i)}};if(n){let a=Oa(e,n);a.length&&(s.exception.values[0].stacktrace={frames:a})}return s}function ka(e,t){return{exception:{values:[Ei(e,t)]}}}function Oa(e,t){let n=t.stacktrace||t.stack||"",r=Qg(t);try{return e(n,r)}catch{}return[]}var Zg=/Minified React error #\d+;/i;function Qg(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Zg.test(e.message))return 1}return 0}function e_(e){let t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Ma(e,t,n,r){let o=n&&n.syntheticException||void 0,i=bi(e,t,o,r);return Ue(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),nt(i)}function Na(e,t,n="info",r,o){let i=r&&r.syntheticException||void 0,s=Aa(e,t,i,o);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),nt(s)}function bi(e,t,n,r,o){let i;if(vn(t)&&t.error)return ka(e,t.error);if(Eo(t)||ls(t)){let s=t;if("stack"in t)i=ka(e,t);else{let a=s.name||(Eo(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=Aa(e,c,n,r),Rn(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return lt(t)?ka(e,t):Fe(t)||Jt(t)?(i=Xg(e,t,n,o),Ue(i,{synthetic:!0}),i):(i=Aa(e,t,n,r),Rn(i,`${t}`,void 0),Ue(i,{synthetic:!0}),i)}function Aa(e,t,n,r){let o={};if(r&&n){let i=Oa(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(xn(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function t_(e,{isUnhandledRejection:t}){let n=_s(e),r=t?"promise rejection":"exception";return vn(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Jt(e)?`Event \`${n_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function n_(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}f();function Da(e,{metadata:t,tunnel:n,dsn:r}){let o={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Te(r)}},i=r_(e);return be(o,[i])}function r_(e){return[{type:"user_report"},e]}var Xr=class extends Wr{constructor(t){let n=A.SENTRY_SDK_SOURCE||ws();fa(t,"browser",["browser"],n),super(t),t.sendClientReports&&A.document&&A.document.addEventListener("visibilitychange",()=>{A.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Ma(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Na(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){F&&h.warn("SDK not enabled, will not capture user feedback.");return}let n=Da(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){let t=this._clearOutcomes();if(t.length===0){F&&h.log("No outcomes to send");return}if(!this._dsn){F&&h.log("No dsn provided, will not send outcomes");return}F&&h.log("Sending outcomes:",t);let n=Hs(t,this._options.tunnel&&Te(this._dsn));this._sendEnvelope(n)}};f();f();var Zr;function Id(){if(Zr)return Zr;if(Er(A.fetch))return Zr=A.fetch.bind(A);let e=A.document,t=A.fetch;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){F&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Zr=t.bind(A)}function vd(){Zr=void 0}function La(e,t=Id()){let n=0,r=0;function o(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(c=>(n-=s,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return vd(),n-=s,r--,tn(c)}}return $n(e,o)}f();var o_=4;function Pa(e){function t(n){return new $e((r,o)=>{let i=new XMLHttpRequest;i.onerror=o,i.onreadystatechange=()=>{i.readyState===o_&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(let s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&i.setRequestHeader(s,e.headers[s]);i.send(n.body)})}return $n(e,t)}f();var qn="?",i_=10,s_=20,a_=30,c_=40,u_=50;function Qr(e,t,n,r){let o={filename:e,function:t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var l_=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,d_=/\((\S*)(?::(\d+))(?::(\d+))\)/,f_=e=>{let t=l_.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){let i=d_.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}let[r,o]=kd(t[1]||qn,t[2]);return Qr(o,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},xd=[a_,f_],p_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,m_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,h_=e=>{let t=p_.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=m_.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||qn;return[o,r]=kd(o,r),Qr(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},wd=[u_,h_],g_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,__=e=>{let t=g_.exec(e);return t?Qr(t[2],t[1]||qn,+t[3],t[4]?+t[4]:void 0):void 0},Cd=[c_,__],y_=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,S_=e=>{let t=y_.exec(e);return t?Qr(t[2],t[3]||qn,+t[1]):void 0},E_=[i_,S_],b_=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,T_=e=>{let t=b_.exec(e);return t?Qr(t[5],t[3]||t[4]||qn,+t[1],+t[2]):void 0},I_=[s_,T_],Rd=[xd,wd,Cd],Fa=xo(...Rd),kd=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:qn,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};f();f();var Ti=1024,Ad="Breadcrumbs",v_=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Ad,setupOnce(){},setup(n){t.console&&_r(C_(n)),t.dom&&Sr(w_(n,t.dom)),t.xhr&&It(R_(n)),t.fetch&&Tt(k_(n)),t.history&&tt(A_(n)),t.sentry&&n.on&&n.on("beforeSendEvent",x_(n))}}},Ii=v_,Ba=D(Ad,Ii);function x_(e){return function(n){x()===e&&Ye({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:et(n)},{event:n})}}function w_(e,t){return function(r){if(x()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ti&&(F&&h.warn(`\`dom.maxStringLength\` cannot exceed ${Ti}, but a value of ${a} was configured. Sentry will use ${Ti} instead.`),a=Ti),typeof s=="string"&&(s=[s]);try{let u=r.event,l=O_(u)?u.target:u;o=He(l,{keyAttrs:s,maxStringLength:a}),i=hr(l)}catch{o="<unknown>"}if(o.length===0)return;let c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),Ye(c,{event:r.event,name:r.name,global:r.global})}}function C_(e){return function(n){if(x()!==e)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:xr(n.level),message:Xt(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Xt(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ye(r,{input:n.args,level:n.level})}}function R_(e){return function(n){if(x()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[Ne];if(!r||!o||!i)return;let{method:s,url:a,status_code:c,body:u}=i,l={method:s,url:a,status_code:c},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o};Ye({category:"xhr",data:l,type:"http"},d)}}function k_(e){return function(n){if(x()!==e)return;let{startTimestamp:r,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){let i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o};Ye({category:"fetch",data:i,level:"error",type:"http"},s)}else{let i=n.response,s={...n.fetchData,status_code:i&&i.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:o};Ye({category:"fetch",data:s,type:"http"},a)}}}function A_(e){return function(n){if(x()!==e)return;let r=n.from,o=n.to,i=qe(A.location.href),s=r?qe(r):void 0,a=qe(o);(!s||!s.path)&&(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),Ye({category:"navigation",data:{from:r,to:o}})}}function O_(e){return!!e&&!!e.target}f();var Nd="Dedupe",M_=()=>{let e;return{name:Nd,setupOnce(){},processEvent(t){if(t.type)return t;try{if(N_(t,e))return F&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Ha=M_,Ua=D(Nd,Ha);function N_(e,t){return t?!!(D_(e,t)||L_(e,t)):!1}function D_(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ld(e,t)||!Dd(e,t))}function L_(e,t){let n=Od(t),r=Od(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ld(e,t)||!Dd(e,t))}function Dd(e,t){let n=Md(e),r=Md(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Ld(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Od(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Md(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}f();var Fd="GlobalHandlers",P_=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Fd,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(F_(n),Pd("onerror")),t.onunhandledrejection&&(B_(n),Pd("onunhandledrejection"))}}},vi=P_,$a=D(Fd,vi);function F_(e){Tr(t=>{let{stackParser:n,attachStacktrace:r}=Hd();if(x()!==e||Ra())return;let{msg:o,url:i,line:s,column:a,error:c}=t,u=c===void 0&&ye(o)?$_(o,i,s,a):Bd(bi(n,c||o,void 0,r,!1),i,s,a);u.level="error",Nt(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function B_(e){Ir(t=>{let{stackParser:n,attachStacktrace:r}=Hd();if(x()!==e||Ra())return;let o=H_(t),i=Kt(o)?U_(o):bi(n,o,void 0,r,!0);i.level="error",Nt(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function H_(e){if(Kt(e))return e;let t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function U_(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function $_(e,t,n,r){let o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=vn(e)?e.message:e,s="Error",a=i.match(o);return a&&(s=a[1],i=a[2]),Bd({exception:{values:[{type:s,value:i}]}},t,n,r)}function Bd(e,t,n,r){let 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||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=ye(t)&&t.length>0?t:pr();return c.length===0&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),e}function Pd(e){F&&h.log(`Global Handler attached: ${e}`)}function Hd(){let e=x();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}f();var Ud="HttpContext",G_=()=>({name:Ud,setupOnce(){},preprocessEvent(e){if(!A.navigator&&!A.location&&!A.document)return;let t=e.request&&e.request.url||A.location&&A.location.href,{referrer:n}=A.document||{},{userAgent:r}=A.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),xi=G_,Ga=D(Ud,xi);f();var W_="cause",z_=5,$d="LinkedErrors",j_=(e={})=>{let t=e.limit||z_,n=e.key||W_;return{name:$d,setupOnce(){},preprocessEvent(r,o,i){let s=i.getOptions();dr(Ei,s.stackParser,s.maxValueLength,n,t,r,o)}}},wi=j_,Wa=D($d,wi);f();var q_=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Wd="TryCatch",Y_=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Wd,setupOnce(){t.setTimeout&&Q(A,"setTimeout",Gd),t.setInterval&&Q(A,"setInterval",Gd),t.requestAnimationFrame&&Q(A,"requestAnimationFrame",V_),t.XMLHttpRequest&&"XMLHttpRequest"in A&&Q(XMLHttpRequest.prototype,"send",K_);let n=t.eventTarget;n&&(Array.isArray(n)?n:q_).forEach(J_)}}},Ci=Y_,za=D(Wd,Ci);function Gd(e){return function(...t){let n=t[0];return t[0]=Rt(n,{mechanism:{data:{function:Ae(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function V_(e){return function(t){return e.apply(this,[Rt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ae(e)},handled:!1,type:"instrument"}})])}}function K_(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&Q(n,o,function(i){let s={mechanism:{data:{function:o,handler:Ae(i)},handled:!1,type:"instrument"}},a=en(i);return a&&(s.mechanism.data.handler=Ae(a)),Rt(i,s)})}),e.apply(this,t)}}function J_(e){let t=A,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Q(n,"addEventListener",function(r){return function(o,i,s){try{typeof i.handleEvent=="function"&&(i.handleEvent=Rt(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ae(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[o,Rt(i,{mechanism:{data:{function:"addEventListener",handler:Ae(i),target:e},handled:!1,type:"instrument"}}),s])}}),Q(n,"removeEventListener",function(r){return function(o,i,s){let a=i;try{let c=a&&a.__sentry_wrapped__;c&&r.call(this,o,c,s)}catch{}return r.call(this,o,a,s)}}))}var zd=[jr(),qr(),Ci(),Ii(),vi(),wi(),Ha(),xi()];function jd(e){return[...zd]}function X_(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=jd()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),A.SENTRY_RELEASE&&A.SENTRY_RELEASE.id&&(e.release=A.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);let t={...e,stackParser:Ss(e.stackParser||Fa),integrations:ea(e),transport:e.transport||(ko()?La:Pa)};aa(Xr,t),e.autoSessionTracking&&ny()}var Z_=(e={},t=z())=>{if(!A.document){F&&h.error("Global document not defined in showReportDialog call");return}let{client:n,scope:r}=t.getStackTop(),o=e.dsn||n&&n.getDsn();if(!o){F&&h.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());let i=A.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=Qs(o,e),e.onLoad&&(i.onload=e.onLoad);let{onClose:s}=e;if(s){let c=u=>{if(u.data==="__sentry_reportdialog_closed__")try{s()}finally{A.removeEventListener("message",c)}};A.addEventListener("message",c)}let a=A.document.head||A.document.body;a?a.appendChild(i):F&&h.error("Not injecting report dialog. No injection point found in HTML")};function Q_(){}function ey(e){e()}function ty(e){return Rt(e)()}function ny(){if(typeof A.document>"u"){F&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Lr({ignoreDuration:!0}),Pr(),tt(({from:e,to:t})=>{e!==void 0&&e!==t&&(Lr({ignoreDuration:!0}),Pr())})}function ry(e){let t=x();t&&t.captureUserFeedback(e)}var ja={};Zc(ja,{Breadcrumbs:()=>Ba,Dedupe:()=>Ua,GlobalHandlers:()=>$a,HttpContext:()=>Ga,LinkedErrors:()=>Wa,TryCatch:()=>za});f();f();var te=C,_c="sentryReplaySession",oy="replay_event",yc="Unable to send Replay",iy=3e5,sy=9e5,ay=5e3,cy=5500,uy=6e4,ly=5e3,dy=3,qd=15e4,Ri=5e3,fy=3e3,py=300,Sc=2e7,my=4999,hy=15e3,Yd=36e5;function gy(e,t){return e??t()}function Oi(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var pe;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(pe||(pe={}));function _y(e){return e.nodeType===e.ELEMENT_NODE}function to(e){let t=Oi([e,"optionalAccess",n=>n.host]);return Oi([t,"optionalAccess",n=>n.shadowRoot])===e}function no(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function yy(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function Sy(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Mi(e){try{let t=e.rules||e.cssRules;return t?yy(Array.from(t,mf).join("")):null}catch{return null}}function mf(e){let t;if(by(e))try{t=Mi(e.styleSheet)||Sy(e)}catch{}else if(Ty(e)&&e.selectorText.includes(":"))return Ey(e.cssText);return t||e.cssText}function Ey(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function by(e){return"styleSheet"in e}function Ty(e){return"selectorText"in e}var Ni=class{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;let n=Oi([this,"access",r=>r.getMeta,"call",r=>r(t),"optionalAccess",r=>r.id]);return gy(n,()=>-1)}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Iy(){return new Ni}function qi({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function oo({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function er(e){return e.toLowerCase()}function Ja(e){return e.toUpperCase()}var Vd="__rrweb_original__";function vy(e){let t=e.getContext("2d");if(!t)return!0;let n=50;for(let r=0;r<e.width;r+=n)for(let o=0;o<e.height;o+=n){let i=t.getImageData,s=Vd in i?i[Vd]:i;if(new Uint32Array(s.call(t,r,o,Math.min(n,e.width-r),Math.min(n,e.height-o)).data.buffer).some(c=>c!==0))return!1}return!0}function Ec(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?er(t):null}function Di(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}var xy=1,wy=new RegExp("[^a-z0-9-_:]"),io=-2;function bc(){return xy++}function Cy(e){if(e instanceof HTMLFormElement)return"form";let t=er(e.tagName);return wy.test(t)?"div":t}function Ry(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Yn,Kd,ky=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Ay=/^(?:[a-z+]+:)?\/\//i,Oy=/^www\..*/i,My=/^(data:)([^,]*),(.*)/i;function Li(e,t){return(e||"").replace(ky,(n,r,o,i,s,a)=>{let c=o||s||a,u=r||i||"";if(!c)return n;if(Ay.test(c)||Oy.test(c))return`url(${u}${c}${u})`;if(My.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${Ry(t)+c}${u})`;let l=t.split("/"),d=c.split("/");l.pop();for(let p of d)p!=="."&&(p===".."?l.pop():l.push(p));return`url(${u}${l.join("/")}${u})`})}var Ny=/^[^ \t\n\r\u000c]+/,Dy=/^[, \t\n\r\u000c]+/;function Ly(e,t){if(t.trim()==="")return t;let n=0;function r(i){let s,a=i.exec(t.substring(n));return a?(s=a[0],n+=s.length,s):""}let o=[];for(;r(Dy),!(n>=t.length);){let i=r(Ny);if(i.slice(-1)===",")i=Kn(e,i.substring(0,i.length-1)),o.push(i);else{let s="";i=Kn(e,i);let a=!1;for(;;){let c=t.charAt(n);if(c===""){o.push((i+s).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,o.push((i+s).trim());break}else c==="("&&(a=!0);s+=c,n+=1}}}return o.join(", ")}function Kn(e,t){if(!t||t.trim()==="")return t;let n=e.createElement("a");return n.href=t,n.href}function Py(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Tc(){let e=document.createElement("a");return e.href="",e.href}function hf(e,t,n,r,o,i){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Kn(e,r):n==="srcset"?Ly(e,r):n==="style"?Li(r,Tc()):t==="object"&&n==="data"?Kn(e,r):typeof i=="function"?i(n,r,o):r)}function gf(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Fy(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let o=e.classList.length;o--;){let i=e.classList[o];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function By(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function gn(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:gn(e.parentNode,t,n,r+1)}function Jn(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(By(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function tr(e,t,n,r,o,i){try{let s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){let u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(i){if(c=gn(s,Jn(r,o)),c<0)return!0;a=gn(s,Jn(t,n),c>=0?c:1/0)}else{if(a=gn(s,Jn(t,n)),a<0)return!1;c=gn(s,Jn(r,o),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function Hy(e,t,n){let r=e.contentWindow;if(!r)return;let o=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){let a=setTimeout(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),o=!0,t()});return}let s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Uy(e,t,n){let r=!1,o;try{o=e.sheet}catch{return}if(o)return;let i=setTimeout(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{clearTimeout(i),r=!0,t()})}function $y(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:E,maskInputFn:T,dataURLOptions:S={},inlineImages:b,recordCanvas:v,keepIframeSrcFn:O,newlyAddedElement:L=!1}=t,M=Gy(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:pe.Document,childNodes:[],compatMode:e.compatMode}:{type:pe.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:pe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:return zy(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:g,maskInputFn:T,dataURLOptions:S,inlineImages:b,recordCanvas:v,keepIframeSrcFn:O,newlyAddedElement:L,rootId:M,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return Wy(e,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:E,maskInputOptions:g,maskInputFn:T,rootId:M});case e.CDATA_SECTION_NODE:return{type:pe.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:pe.Comment,textContent:e.textContent||"",rootId:M};default:return!1}}function Gy(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function Wy(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,m=d==="STYLE"?!0:void 0,g=d==="SCRIPT"?!0:void 0,E=d==="TEXTAREA"?!0:void 0;if(m&&p){try{e.nextSibling||e.previousSibling||Oi([e,"access",S=>S.parentNode,"access",S=>S.sheet,"optionalAccess",S=>S.cssRules])&&(p=Mi(e.parentNode.sheet))}catch(S){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`,e)}p=Li(p,Tc())}g&&(p="SCRIPT_PLACEHOLDER");let T=tr(e,r,i,o,s,n);if(!m&&!g&&!E&&p&&T&&(p=a?a(p):p.replace(/[\S]/g,"*")),E&&p&&(c.textarea||T)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),d==="OPTION"&&p){let S=qi({type:null,tagName:d,maskInputOptions:c});p=oo({isMasked:tr(e,r,i,o,s,S),element:e,value:p,maskInputFn:u})}return{type:pe.Text,textContent:p||"",isStyle:m,rootId:l}}function zy(e,t){let{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:g=!1,rootId:E,maskAllText:T,maskTextClass:S,unmaskTextClass:b,maskTextSelector:v,unmaskTextSelector:O}=t,L=Fy(e,r,o,i),M=Cy(e),w={},$=e.attributes.length;for(let k=0;k<$;k++){let N=e.attributes[k];N.name&&!gf(M,N.name,N.value)&&(w[N.name]=hf(n,M,er(N.name),N.value,e,c))}if(M==="link"&&s){let k=Array.from(n.styleSheets).find(V=>V.href===e.href),N=null;k&&(N=Mi(k)),N&&(delete w.rel,delete w.href,w._cssText=Li(N,k.href))}if(M==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let k=Mi(e.sheet);k&&(w._cssText=Li(k,Tc()))}if(M==="input"||M==="textarea"||M==="select"||M==="option"){let k=e,N=Ec(k),V=Di(k,Ja(M),N),ie=k.checked;if(N!=="submit"&&N!=="button"&&V){let de=tr(k,S,v,b,O,qi({type:N,tagName:Ja(M),maskInputOptions:a}));w.value=oo({isMasked:de,element:k,value:V,maskInputFn:u})}ie&&(w.checked=ie)}if(M==="option"&&(e.selected&&!a.select?w.selected=!0:delete w.selected),M==="canvas"&&p){if(e.__context==="2d")vy(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let k=e.toDataURL(l.type,l.quality),N=document.createElement("canvas");N.width=e.width,N.height=e.height;let V=N.toDataURL(l.type,l.quality);k!==V&&(w.rr_dataURL=k)}}if(M==="img"&&d){Yn||(Yn=n.createElement("canvas"),Kd=Yn.getContext("2d"));let k=e,N=k.crossOrigin;k.crossOrigin="anonymous";let V=()=>{k.removeEventListener("load",V);try{Yn.width=k.naturalWidth,Yn.height=k.naturalHeight,Kd.drawImage(k,0,0),w.rr_dataURL=Yn.toDataURL(l.type,l.quality)}catch(ie){console.warn(`Cannot inline img src=${k.currentSrc}! Error: ${ie}`)}N?w.crossOrigin=N:k.removeAttribute("crossorigin")};k.complete&&k.naturalWidth!==0?V():k.addEventListener("load",V)}if((M==="audio"||M==="video")&&(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime),g||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),L){let{width:k,height:N}=e.getBoundingClientRect();w={class:w.class,rr_width:`${k}px`,rr_height:`${N}px`}}M==="iframe"&&!m(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let ne;try{customElements.get(M)&&(ne=!0)}catch{}return{type:pe.Element,tagName:M,attributes:w,childNodes:[],isSVG:Py(e)||void 0,needBlock:L,rootId:E,isCustom:ne}}function ee(e){return e==null?"":e.toLowerCase()}function jy(e,t){if(t.comment&&e.type===pe.Comment)return!0;if(e.type===pe.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Xn(e,t){let{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:m=!0,maskInputOptions:g={},maskAttributeFn:E,maskTextFn:T,maskInputFn:S,slimDOMOptions:b,dataURLOptions:v={},inlineImages:O=!1,recordCanvas:L=!1,onSerialize:M,onIframeLoad:w,iframeLoadTimeout:$=5e3,onStylesheetLoad:ne,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:V=!1}=t,{preserveWhiteSpace:ie=!0}=t,de=$y(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:E,maskTextFn:T,maskInputFn:S,dataURLOptions:v,inlineImages:O,recordCanvas:L,keepIframeSrcFn:N,newlyAddedElement:V});if(!de)return console.warn(e,"not serialized"),null;let Pe;r.hasNode(e)?Pe=r.getId(e):jy(de,b)||!ie&&de.type===pe.Text&&!de.isStyle&&!de.textContent.replace(/^\s+|\s+$/gm,"").length?Pe=io:Pe=bc();let X=Object.assign(de,{id:Pe});if(r.add(e,X),Pe===io)return null;M&&M(e);let We=!p;if(X.type===pe.Element){We=We&&!X.needBlock,delete X.needBlock;let ce=e.shadowRoot;ce&&no(ce)&&(X.isShadowHost=!0)}if((X.type===pe.Document||X.type===pe.Element)&&We){b.headWhitespace&&X.type===pe.Element&&X.tagName==="head"&&(ie=!1);let ce={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:E,maskTextFn:T,maskInputFn:S,slimDOMOptions:b,dataURLOptions:v,inlineImages:O,recordCanvas:L,preserveWhiteSpace:ie,onSerialize:M,onIframeLoad:w,iframeLoadTimeout:$,onStylesheetLoad:ne,stylesheetLoadTimeout:k,keepIframeSrcFn:N};for(let Ce of Array.from(e.childNodes)){let Xe=Xn(Ce,ce);Xe&&X.childNodes.push(Xe)}if(_y(e)&&e.shadowRoot)for(let Ce of Array.from(e.shadowRoot.childNodes)){let Xe=Xn(Ce,ce);Xe&&(no(e.shadowRoot)&&(Xe.isShadow=!0),X.childNodes.push(Xe))}}return e.parentNode&&to(e.parentNode)&&no(e.parentNode)&&(X.isShadow=!0),X.type===pe.Element&&X.tagName==="iframe"&&Hy(e,()=>{let ce=e.contentDocument;if(ce&&w){let Ce=Xn(ce,{doc:ce,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:E,maskTextFn:T,maskInputFn:S,slimDOMOptions:b,dataURLOptions:v,inlineImages:O,recordCanvas:L,preserveWhiteSpace:ie,onSerialize:M,onIframeLoad:w,iframeLoadTimeout:$,onStylesheetLoad:ne,stylesheetLoadTimeout:k,keepIframeSrcFn:N});Ce&&w(e,Ce)}},$),X.type===pe.Element&&X.tagName==="link"&&X.attributes.rel==="stylesheet"&&Uy(e,()=>{if(ne){let ce=Xn(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:m,maskInputOptions:g,maskAttributeFn:E,maskTextFn:T,maskInputFn:S,slimDOMOptions:b,dataURLOptions:v,inlineImages:O,recordCanvas:L,preserveWhiteSpace:ie,onSerialize:M,onIframeLoad:w,iframeLoadTimeout:$,onStylesheetLoad:ne,stylesheetLoadTimeout:k,keepIframeSrcFn:N});ce&&ne(e,ce)}},k),X}function qy(e,t){let{mirror:n=new Ni,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:m=!1,maskAllInputs:g=!1,maskAttributeFn:E,maskTextFn:T,maskInputFn:S,slimDOM:b=!1,dataURLOptions:v,preserveWhiteSpace:O,onSerialize:L,onIframeLoad:M,iframeLoadTimeout:w,onStylesheetLoad:$,stylesheetLoadTimeout:ne,keepIframeSrcFn:k=()=>!1}=t||{};return Xn(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:g===!1?{}:g,maskAttributeFn:E,maskTextFn:T,maskInputFn:S,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:v,inlineImages:p,recordCanvas:m,preserveWhiteSpace:O,onSerialize:L,onIframeLoad:M,iframeLoadTimeout:w,onStylesheetLoad:$,stylesheetLoadTimeout:ne,keepIframeSrcFn:k,newlyAddedElement:!1})}function $t(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function we(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var Vn=`Please stop import mirror directly. Instead of that,\r
27
- now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
28
- or you can use record.mirror to access the mirror instance during recording.`,Jd={map:{},getId(){return console.error(Vn),-1},getNode(){return console.error(Vn),null},removeNodeFromMap(){console.error(Vn)},has(){return console.error(Vn),!1},reset(){console.error(Vn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Jd=new Proxy(Jd,{get(e,t,n){return t==="map"&&console.error(Vn),Reflect.get(e,t,n)}}));function so(e,t,n={}){let r=null,o=0;return function(...i){let s=Date.now();!o&&n.leading===!1&&(o=s);let a=t-(s-o),c=this;a<=0||a>t?(r&&(clearTimeout(r),r=null),o=s,e.apply(c,i)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function _f(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>_f(e,t,i||{},!0)}function Ic(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}var Pi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Pi=()=>new Date().getTime());function yf(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:$t([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||$t([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||$t([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:$t([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||$t([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||$t([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Sf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ef(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ut(e,t,n,r,o){if(!e)return!1;let i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;let s=Jn(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let a=gn(i,s),c=-1;return a<0?!1:(r&&(c=gn(i,Jn(null,r))),a>-1&&c<0?!0:a<c)}function Yy(e,t){return t.getId(e)!==-1}function qa(e,t){return t.getId(e)===io}function bf(e,t){if(to(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?bf(e.parentNode,t):!0:!0}function Xa(e){return!!e.changedTouches}function Vy(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Tf(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function If(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Za(e){return!!$t([e,"optionalAccess",t=>t.shadowRoot])}var Qa=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return $s(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function vf(e){let t=null;return $t([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ky(e){let t=e,n;for(;n=vf(t);)t=n;return t}function Jy(e){let t=e.ownerDocument;if(!t)return!1;let n=Ky(e);return t.contains(n)}function xf(e){let t=e.ownerDocument;return t?t.contains(e)||Jy(e):!1}var Ya;function Xy(){if(Ya)return Ya;let e=window.document,t=window.requestAnimationFrame;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.requestAnimationFrame&&(t=r.requestAnimationFrame),e.head.removeChild(n)}catch{}return Ya=t.bind(window)}function Zy(...e){return Xy()(...e)}var G=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(G||{}),W=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(W||{}),ve=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ve||{}),kt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(kt||{});function Qy(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function Xd(e){return"__ln"in e}var ec=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=Qy([n,"optionalAccess",o=>o.next])||null;return n}addNode(t){let n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Xd(t.previousSibling)){let r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Xd(t.nextSibling)&&t.nextSibling.__ln.previous){let r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){let n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Zd=(e,t)=>`${e}@${t}`,tc=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],n=new Set,r=new ec,o=c=>{let u=c,l=io;for(;l===io;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=c=>{if(!c.parentNode||!xf(c))return;let u=to(c.parentNode)?this.mirror.getId(vf(c)):this.mirror.getId(c.parentNode),l=o(c);if(u===-1||l===-1)return r.addNode(c);let d=Xn(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Tf(p,this.mirror)&&this.iframeManager.addIframe(p),If(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Za(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{this.iframeManager.attachIframe(p,m),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)}});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet)Qd(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(let c of this.addedSet)!ef(this.droppedSet,c)&&!Qd(this.removes,c,this.mirror)||ef(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){let u=this.mirror.getId(s.value.parentNode),l=o(s.value);u!==-1&&l!==-1&&(c=s)}if(!c){let u=r.tail;for(;u;){let l=u;if(u=u.previous,l){let d=this.mirror.getId(l.value.parentNode);if(o(l.value)===-1)continue;if(d!==-1){c=l;break}else{let m=l.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let g=m.parentNode.host;if(this.mirror.getId(g)!==-1){c=l;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),i(c.value)}let a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:u}=c;if(typeof u.style=="string"){let l=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(qa(t.target,this.mirror))return;let n;try{n=document.implementation.createHTMLDocument()}catch{n=this.doc}switch(t.type){case"characterData":{let r=t.target.textContent;!ut(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:tr(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,o=t.attributeName,i=t.target.getAttribute(o);if(o==="value"){let a=Ec(r),c=r.tagName;i=Di(r,c,a);let u=qi({maskInputOptions:this.maskInputOptions,tagName:c,type:a}),l=tr(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,u);i=oo({isMasked:l,element:r,value:i,maskInputFn:this.maskInputFn})}if(ut(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let s=this.attributes.find(a=>a.node===t.target);if(r.tagName==="IFRAME"&&o==="src"&&!this.keepIframeSrcFn(i))if(!r.contentDocument)o="rr_src";else return;if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s)),o==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!gf(r.tagName,o)&&(s.attributes[o]=hf(this.doc,er(r.tagName),er(o),i,r,this.maskAttributeFn),o==="style")){let a=n.createElement("span");t.oldValue&&a.setAttribute("style",t.oldValue);for(let c of Array.from(r.style)){let u=r.style.getPropertyValue(c),l=r.style.getPropertyPriority(c);u!==a.style.getPropertyValue(c)||l!==a.style.getPropertyPriority(c)?l===""?s.styleDiff[c]=u:s.styleDiff[c]=[u,l]:s._unchangedStyles[c]=[u,l]}for(let c of Array.from(a.style))r.style.getPropertyValue(c)===""&&(s.styleDiff[c]=!1)}break}case"childList":{if(ut(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let o=this.mirror.getId(r),i=to(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ut(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||qa(r,this.mirror)||!Yy(r,this.mirror)||(this.addedSet.has(r)?(nc(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&o===-1||bf(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Zd(o,i)]?nc(this.movedSet,r):this.removes.push({parentId:i,id:o,isShadow:to(t.target)&&no(t.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(qa(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Zd(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ut(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Za(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function nc(e,t){e.delete(t),t.childNodes.forEach(n=>nc(e,n))}function Qd(e,t,n){return e.length===0?!1:wf(e,t,n)}function wf(e,t,n){let{parentNode:r}=t;if(!r)return!1;let o=n.getId(r);return e.some(i=>i.id===o)?!0:wf(e,r,n)}function ef(e,t){return e.size===0?!1:Cf(e,t)}function Cf(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Cf(e,n):!1}var ro;function eS(e){ro=e}function tS(){ro=void 0}var j=e=>ro?(...n)=>{try{return e(...n)}catch(r){if(ro&&ro(r)===!0)return()=>{};throw r}}:e;function Et(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var Zn=[];function fo(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Rf(e,t){let n=new tc;Zn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,o=Et([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);o&&window[o]&&(r=window[o]);let i=new r(j(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function nS({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],a,c=so(j(d=>{let p=Date.now()-a;e(s.map(m=>(m.timeOffset-=p,m)),d),s=[],a=null}),i),u=j(so(j(d=>{let p=fo(d),{clientX:m,clientY:g}=Xa(d)?d.changedTouches[0]:d;a||(a=Pi()),s.push({x:m,y:g,id:r.getId(p),timeOffset:Pi()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?W.Drag:d instanceof MouseEvent?W.MouseMove:W.TouchMove)}),o,{trailing:!1})),l=[we("mousemove",u,n),we("touchmove",u,n),we("drag",u,n)];return j(()=>{l.forEach(d=>d())})}function rS({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[],u=null,l=d=>p=>{let m=fo(p);if(ut(m,r,o,i,!0))return;let g=null,E=d;if("pointerType"in p){switch(p.pointerType){case"mouse":g=kt.Mouse;break;case"touch":g=kt.Touch;break;case"pen":g=kt.Pen;break}g===kt.Touch?ve[d]===ve.MouseDown?E="TouchStart":ve[d]===ve.MouseUp&&(E="TouchEnd"):kt.Pen}else Xa(p)&&(g=kt.Touch);g!==null?(u=g,(E.startsWith("Touch")&&g===kt.Touch||E.startsWith("Mouse")&&g===kt.Mouse)&&(g=null)):ve[d]===ve.Click&&(g=u,u=null);let T=Xa(p)?p.changedTouches[0]:p;if(!T)return;let S=n.getId(m),{clientX:b,clientY:v}=T;j(e)({type:ve[E],id:S,x:b,y:v,...g!==null&&{pointerType:g}})};return Object.keys(ve).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEach(d=>{let p=er(d),m=l(d);if(window.PointerEvent)switch(ve[d]){case ve.MouseDown:case ve.MouseUp:p=p.replace("mouse","pointer");break;case ve.TouchStart:case ve.TouchEnd:return}c.push(we(p,m,t))}),j(()=>{c.forEach(d=>d())})}function kf({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){let a=j(so(j(c=>{let u=fo(c);if(!u||ut(u,r,o,i,!0))return;let l=n.getId(u);if(u===t&&t.defaultView){let d=yf(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return we("scroll",a,t)}function oS({viewportResizeCb:e},{win:t}){let n=-1,r=-1,o=j(so(j(()=>{let i=Sf(),s=Ef();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return we("resize",o,t)}var iS=["INPUT","TEXTAREA","SELECT"],tf=new WeakMap;function sS({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:E}){function T(w){let $=fo(w),ne=w.isTrusted,k=$&&Ja($.tagName);if(k==="OPTION"&&($=$.parentElement),!$||!k||iS.indexOf(k)<0||ut($,r,o,i,!0))return;let N=$;if(N.classList.contains(s)||a&&N.matches(a))return;let V=Ec($),ie=Di(N,k,V),de=!1,Pe=qi({maskInputOptions:c,tagName:k,type:V}),X=tr($,p,g,m,E,Pe);(V==="radio"||V==="checkbox")&&(de=$.checked),ie=oo({isMasked:X,element:$,value:ie,maskInputFn:u}),S($,d?{text:ie,isChecked:de,userTriggered:ne}:{text:ie,isChecked:de});let We=$.name;V==="radio"&&We&&de&&t.querySelectorAll(`input[type="radio"][name="${We}"]`).forEach(ce=>{if(ce!==$){let Ce=oo({isMasked:X,element:ce,value:Di(ce,k,V),maskInputFn:u});S(ce,d?{text:Ce,isChecked:!de,userTriggered:!1}:{text:Ce,isChecked:!de})}})}function S(w,$){let ne=tf.get(w);if(!ne||ne.text!==$.text||ne.isChecked!==$.isChecked){tf.set(w,$);let k=n.getId(w);j(e)({...$,id:k})}}let v=(l.input==="last"?["change"]:["input","change"]).map(w=>we(w,j(T),t)),O=t.defaultView;if(!O)return()=>{v.forEach(w=>w())};let L=O.Object.getOwnPropertyDescriptor(O.HTMLInputElement.prototype,"value"),M=[[O.HTMLInputElement.prototype,"value"],[O.HTMLInputElement.prototype,"checked"],[O.HTMLSelectElement.prototype,"value"],[O.HTMLTextAreaElement.prototype,"value"],[O.HTMLSelectElement.prototype,"selectedIndex"],[O.HTMLOptionElement.prototype,"selected"]];return L&&L.set&&v.push(...M.map(w=>_f(w[0],w[1],{set(){j(T)({target:this,isTrusted:!1})}},!1,O))),j(()=>{v.forEach(w=>w())})}function Fi(e){let t=[];function n(r,o){if(ki("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||ki("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||ki("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||ki("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){let s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function Gt(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function aS({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:j((l,d,p)=>{let[m,g]=p,{id:E,styleId:T}=Gt(d,t,n.styleMirror);return(E&&E!==-1||T&&T!==-1)&&e({id:E,styleId:T,adds:[{rule:m,index:g}]}),l.apply(d,p)})});let i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:j((l,d,p)=>{let[m]=p,{id:g,styleId:E}=Gt(d,t,n.styleMirror);return(g&&g!==-1||E&&E!==-1)&&e({id:g,styleId:E,removes:[{index:m}]}),l.apply(d,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:j((l,d,p)=>{let[m]=p,{id:g,styleId:E}=Gt(d,t,n.styleMirror);return(g&&g!==-1||E&&E!==-1)&&e({id:g,styleId:E,replace:m}),l.apply(d,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:j((l,d,p)=>{let[m]=p,{id:g,styleId:E}=Gt(d,t,n.styleMirror);return(g&&g!==-1||E&&E!==-1)&&e({id:g,styleId:E,replaceSync:m}),l.apply(d,p)})}));let c={};Ai("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Ai("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Ai("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Ai("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(c).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:j((p,m,g)=>{let[E,T]=g,{id:S,styleId:b}=Gt(m.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||b&&b!==-1)&&e({id:S,styleId:b,adds:[{rule:E,index:[...Fi(m),T||0]}]}),p.apply(m,g)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:j((p,m,g)=>{let[E]=g,{id:T,styleId:S}=Gt(m.parentStyleSheet,t,n.styleMirror);return(T&&T!==-1||S&&S!==-1)&&e({id:T,styleId:S,removes:[{index:[...Fi(m),E]}]}),p.apply(m,g)})})}),j(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function Af({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);let o=n.nodeName==="#document"?Et([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):Et([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),i=Et([o,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(Et([o,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Et([i,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){let a=Et([i,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,s)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return a}}),j(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function cS({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){let i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:j((a,c,u)=>{let[l,d,p]=u;if(n.has(l))return i.apply(c,[l,d,p]);let{id:m,styleId:g}=Gt(Et([c,"access",E=>E.parentRule,"optionalAccess",E=>E.parentStyleSheet]),t,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,set:{property:l,value:d,priority:p},index:Fi(c.parentRule)}),a.apply(c,u)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:j((a,c,u)=>{let[l]=u;if(n.has(l))return s.apply(c,[l]);let{id:d,styleId:p}=Gt(Et([c,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:l},index:Fi(c.parentRule)}),a.apply(c,u)})}),j(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function uS({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){let a=j(u=>so(j(l=>{let d=fo(l);if(!d||ut(d,t,n,r,!0))return;let{currentTime:p,volume:m,muted:g,playbackRate:E}=d;e({type:u,id:o.getId(d),currentTime:p,volume:m,muted:g,playbackRate:E})}),i.media||500)),c=[we("play",a(0),s),we("pause",a(1),s),we("seeked",a(2),s),we("volumechange",a(3),s),we("ratechange",a(4),s)];return j(()=>{c.forEach(u=>u())})}function lS({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,l){let d=new i(c,u,l);return o.set(d,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};let s=Ic(t.fonts,"add",function(a){return function(c){return setTimeout(j(()=>{let u=o.get(c);u&&(e(u),o.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(s),j(()=>{r.forEach(a=>a())})}function dS(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e,a=!0,c=j(()=>{let u=t.getSelection();if(!u||a&&Et([u,"optionalAccess",p=>p.isCollapsed]))return;a=u.isCollapsed||!1;let l=[],d=u.rangeCount||0;for(let p=0;p<d;p++){let m=u.getRangeAt(p),{startContainer:g,startOffset:E,endContainer:T,endOffset:S}=m;ut(g,r,o,i,!0)||ut(T,r,o,i,!0)||l.push({start:n.getId(g),startOffset:E,end:n.getId(T),endOffset:S})}s({ranges:l})});return c(),we("selectionchange",c)}function fS({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:Ic(n.customElements,"define",function(o){return function(i,s,a){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,a])}})}function pS(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r=Rf(e,e.doc),o=nS(e),i=rS(e),s=kf(e),a=oS(e,{win:n}),c=sS(e),u=uS(e),l=aS(e,{win:n}),d=Af(e,e.doc),p=cS(e,{win:n}),m=e.collectFonts?lS(e):()=>{},g=dS(e),E=fS(e),T=[];for(let S of e.plugins)T.push(S.observer(S.callback,n,S.options));return j(()=>{Zn.forEach(S=>S.reset()),r.disconnect(),o(),i(),s(),a(),c(),u(),l(),d(),p(),m(),g(),E(),T.forEach(S=>S())})}function ki(e){return typeof window[e]<"u"}function Ai(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var ao=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){let i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t),a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(t,n){let r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){let o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;let i=o.get(n);return i||-1}getRemoteIds(t,n){let r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}};function nf(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var rc=class{constructor(){this.crossOriginIframeMirror=new ao(bc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},oc=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ao(bc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ao(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),nf([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;let o=this.crossOriginIframeMap.get(t.source);if(!o)return;let i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case G.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);let r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:G.IncrementalSnapshot,data:{source:W.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case G.Meta:case G.Load:case G.DomContentLoaded:return!1;case G.Plugin:return n;case G.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case G.IncrementalSnapshot:switch(n.data.source){case W.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case W.Drag:case W.TouchMove:case W.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case W.ViewportResize:return!1;case W.MediaInteraction:case W.MouseInteraction:case W.Scroll:case W.CanvasMutation:case W.Input:return this.replaceIds(n.data,t,["id"]),n;case W.StyleSheetRule:case W.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case W.Font:return n;case W.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case W.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),nf([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(o=>{this.replaceStyleIds(o,t,["styleId"])})]),n}}return!1}replace(t,n,r,o){for(let i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==pe.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}},ic=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},sc=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!no(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let r=Rf({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(kf({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Af({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){let r=this;this.restoreHandlers.push(Ic(t.prototype,"attachShadow",function(o){return function(i){let s=o.call(this,i);return this.shadowRoot&&xf(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Bi=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}},ac=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Qa,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;let r={id:n,styleIds:[]},o=[];for(let i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:mf(a),index:c}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},cc=class{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){Zy(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){let r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}};function le(e){let t=e;return t.timestamp=Pi(),t}var Hi,ct=Iy();function zt(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:g=!0,maskAllInputs:E,maskInputOptions:T,slimDOMOptions:S,maskAttributeFn:b,maskInputFn:v,maskTextFn:O,maxCanvasSize:L=null,packFn:M,sampling:w={},dataURLOptions:$={},mousemoveWait:ne,recordCanvas:k=!1,recordCrossOriginIframes:N=!1,recordAfter:V=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:ie=!1,collectFonts:de=!1,inlineImages:Pe=!1,plugins:X,keepIframeSrcFn:We=()=>!1,ignoreCSSAttributes:ce=new Set([]),errorHandler:Ce,onMutation:Xe,getCanvasManager:is}=e;eS(Ce);let bn=N?window.parent===window:!0,Ot=!1;if(!bn)try{window.parent.document&&(Ot=!1)}catch{Ot=!0}if(bn&&!t)throw new Error("emit function is required");ne!==void 0&&w.mousemove===void 0&&(w.mousemove=ne),ct.reset();let Tn=E===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:T!==void 0?T:{},ar=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all"}:S||{};Vy();let ss,as=0,Kc=B=>{for(let Ze of X||[])Ze.eventProcessor&&(B=Ze.eventProcessor(B));return M&&!Ot&&(B=M(B)),B},ue=(B,Ze)=>{if(rn([Zn,"access",q=>q[0],"optionalAccess",q=>q.isFrozen,"call",q=>q()])&&B.type!==G.FullSnapshot&&!(B.type===G.IncrementalSnapshot&&B.data.source===W.Mutation)&&Zn.forEach(q=>q.unfreeze()),bn)rn([t,"optionalCall",q=>q(Kc(B),Ze)]);else if(Ot){let q={type:"rrweb",event:Kc(B),origin:window.location.origin,isCheckout:Ze};window.parent.postMessage(q,"*")}if(B.type===G.FullSnapshot)ss=B,as=0;else if(B.type===G.IncrementalSnapshot){if(B.data.source===W.Mutation&&B.data.isAttachIframe)return;as++;let q=r&&as>=r,Qe=n&&ss&&B.timestamp-ss.timestamp>n;(q||Qe)&&us(!0)}},yo=B=>{ue(le({type:G.IncrementalSnapshot,data:{source:W.Mutation,...B}}))},Jc=B=>ue(le({type:G.IncrementalSnapshot,data:{source:W.Scroll,...B}})),om=B=>ue(le({type:G.IncrementalSnapshot,data:{source:W.CanvasMutation,...B}})),im=B=>ue(le({type:G.IncrementalSnapshot,data:{source:W.AdoptedStyleSheet,...B}})),qt=new ac({mutationCb:yo,adoptedStyleSheetCb:im}),Yt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new rc:new oc({mirror:ct,mutationCb:yo,stylesheetManager:qt,recordCrossOriginIframes:N,wrappedEmit:ue});for(let B of X||[])B.getMirror&&B.getMirror({nodeMirror:ct,crossOriginIframeMirror:Yt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Yt.crossOriginIframeStyleMirror});let cs=new cc,Xc=hS(is,{mirror:ct,win:window,mutationCb:B=>ue(le({type:G.IncrementalSnapshot,data:{source:W.CanvasMutation,...B}})),recordCanvas:k,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:L,sampling:w.canvas,dataURLOptions:$,errorHandler:Ce}),So=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ic:new sc({mutationCb:yo,scrollCb:Jc,bypassOptions:{onMutation:Xe,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:g,maskInputOptions:Tn,dataURLOptions:$,maskAttributeFn:b,maskTextFn:O,maskInputFn:v,recordCanvas:k,inlineImages:Pe,sampling:w,slimDOMOptions:ar,iframeManager:Yt,stylesheetManager:qt,canvasManager:Xc,keepIframeSrcFn:We,processedNodeManager:cs},mirror:ct}),us=(B=!1)=>{ue(le({type:G.Meta,data:{href:window.location.href,width:Ef(),height:Sf()}}),B),qt.reset(),So.init(),Zn.forEach(q=>q.lock());let Ze=qy(document,{mirror:ct,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:g,maskAllInputs:Tn,maskAttributeFn:b,maskInputFn:v,maskTextFn:O,slimDOM:ar,dataURLOptions:$,recordCanvas:k,inlineImages:Pe,onSerialize:q=>{Tf(q,ct)&&Yt.addIframe(q),If(q,ct)&&qt.trackLinkElement(q),Za(q)&&So.addShadowRoot(q.shadowRoot,document)},onIframeLoad:(q,Qe)=>{Yt.attachIframe(q,Qe),So.observeAttachShadow(q)},onStylesheetLoad:(q,Qe)=>{qt.attachLinkElement(q,Qe)},keepIframeSrcFn:We});if(!Ze)return console.warn("Failed to snapshot the document");ue(le({type:G.FullSnapshot,data:{node:Ze,initialOffset:yf(window)}})),Zn.forEach(q=>q.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&qt.adoptStyleSheets(document.adoptedStyleSheets,ct.getId(document))};Hi=us;try{let B=[],Ze=Qe=>j(pS)({onMutation:Xe,mutationCb:yo,mousemoveCb:(J,Vt)=>ue(le({type:G.IncrementalSnapshot,data:{source:Vt,positions:J}})),mouseInteractionCb:J=>ue(le({type:G.IncrementalSnapshot,data:{source:W.MouseInteraction,...J}})),scrollCb:Jc,viewportResizeCb:J=>ue(le({type:G.IncrementalSnapshot,data:{source:W.ViewportResize,...J}})),inputCb:J=>ue(le({type:G.IncrementalSnapshot,data:{source:W.Input,...J}})),mediaInteractionCb:J=>ue(le({type:G.IncrementalSnapshot,data:{source:W.MediaInteraction,...J}})),styleSheetRuleCb:J=>ue(le({type:G.IncrementalSnapshot,data:{source:W.StyleSheetRule,...J}})),styleDeclarationCb:J=>ue(le({type:G.IncrementalSnapshot,data:{source:W.StyleDeclaration,...J}})),canvasMutationCb:om,fontCb:J=>ue(le({type:G.IncrementalSnapshot,data:{source:W.Font,...J}})),selectionCb:J=>{ue(le({type:G.IncrementalSnapshot,data:{source:W.Selection,...J}}))},customElementCb:J=>{ue(le({type:G.IncrementalSnapshot,data:{source:W.CustomElement,...J}}))},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:Tn,inlineStylesheet:g,sampling:w,recordCanvas:k,inlineImages:Pe,userTriggeredOnInput:ie,collectFonts:de,doc:Qe,maskAttributeFn:b,maskInputFn:v,maskTextFn:O,keepIframeSrcFn:We,blockSelector:i,unblockSelector:s,slimDOMOptions:ar,dataURLOptions:$,mirror:ct,iframeManager:Yt,stylesheetManager:qt,shadowDomManager:So,processedNodeManager:cs,canvasManager:Xc,ignoreCSSAttributes:ce,plugins:rn([X,"optionalAccess",J=>J.filter,"call",J=>J(Vt=>Vt.observer),"optionalAccess",J=>J.map,"call",J=>J(Vt=>({observer:Vt.observer,options:Vt.options,callback:sm=>ue(le({type:G.Plugin,data:{plugin:Vt.name,payload:sm}}))}))])||[]},{});Yt.addLoadListener(Qe=>{try{B.push(Ze(Qe.contentDocument))}catch(J){console.warn(J)}});let q=()=>{us(),B.push(Ze(document))};return document.readyState==="interactive"||document.readyState==="complete"?q():(B.push(we("DOMContentLoaded",()=>{ue(le({type:G.DomContentLoaded,data:{}})),V==="DOMContentLoaded"&&q()})),B.push(we("load",()=>{ue(le({type:G.Load,data:{}})),V==="load"&&q()},window))),()=>{B.forEach(Qe=>Qe()),cs.destroy(),Hi=void 0,tS()}}catch(B){console.warn(B)}}function mS(e){if(!Hi)throw new Error("please take full snapshot after start recording");Hi(e)}zt.mirror=ct;zt.takeFullSnapshot=mS;function hS(e,t){try{return e?e(t):new Bi}catch{return console.warn("Unable to initialize CanvasManager"),new Bi}}var gS=3,_S=5;function vc(e){return e>9999999999?e:e*1e3}function Va(e){return e>9999999999?e/1e3:e}function po(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:G.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ee(t,10,1e3)}}),t.category==="console")))}var yS="button,a";function Of(e){return e.closest(yS)||e}function Mf(e){let t=Nf(e);return!t||!(t instanceof Element)?t:Of(t)}function Nf(e){return SS(e)?e.target:e}function SS(e){return typeof e=="object"&&!!e&&"target"in e}var Wt;function ES(e){return Wt||(Wt=[],bS()),Wt.push(e),()=>{let t=Wt?Wt.indexOf(e):-1;t>-1&&Wt.splice(t,1)}}function bS(){Q(te,"open",function(e){return function(...t){if(Wt)try{Wt.forEach(n=>n())}catch{}return e.apply(te,t)}})}function TS(e,t,n){e.handleClick(t,n)}var uc=class{constructor(t,n,r=po){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){let t=ES(()=>{this._lastMutation=rf()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(vS(n,this._ignoreSelector)||!xS(t))return;let r={timestamp:Va(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Va(t)}registerScroll(t=Date.now()){this._lastScroll=Va(t)}registerClick(t){let n=Of(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){let t=[],n=rf();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(let r of t){let o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:a}=t;if(i){let c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:te.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,l);return}if(s>1){let c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:te.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}},IS=["A","BUTTON","INPUT"];function vS(e,t){return!!(!IS.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function xS(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function rf(){return Date.now()/1e3}function wS(e,t){try{if(!CS(t))return;let{source:n}=t.data;if(n===W.Mutation&&e.registerMutation(t.timestamp),n===W.Scroll&&e.registerScroll(t.timestamp),RS(t)){let{type:r,id:o}=t.data,i=zt.mirror.getNode(o);i instanceof HTMLElement&&r===ve.Click&&e.registerClick(i)}}catch{}}function CS(e){return e.type===gS}function RS(e){return e.data.source===W.MouseInteraction}function bt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ui;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Ui||(Ui={}));var kS=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function AS(e){let t={};for(let n in e)if(kS.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}var OS=e=>t=>{if(!e.isEnabled())return;let n=MS(t);if(!n)return;let r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&TS(e.clickDetector,n,Mf(t.event)),po(e,n)};function Df(e,t){let n=zt.mirror.getId(e),r=n&&zt.mirror.getNode(n),o=r&&zt.mirror.getMeta(r),i=o&&DS(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Ui.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:AS(i.attributes)}}:{}}}function MS(e){let{target:t,message:n}=NS(e);return bt({category:`ui.${e.name}`,...Df(t,n)})}function NS(e){let t=e.name==="click",n,r=null;try{r=t?Mf(e.event):Nf(e.event),n=He(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function DS(e){return e.type===Ui.Element}function LS(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=PS(t);n&&po(e,n)}function PS(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||FS(s)||!i)return null;let a=t||r||o,c=i.length===1;if(!a&&c)return null;let u=He(s,{maxStringLength:200})||"<unknown>",l=Df(s,u);return bt({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function FS(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}var of={resource:GS,paint:US,navigation:$S};function BS(e){return e.map(HS).filter(Boolean)}function HS(e){return of[e.entryType]?of[e.entryType](e):null}function nr(e){return((re||te.performance.timeOrigin)+e)/1e3}function US(e){let{duration:t,entryType:n,name:r,startTime:o}=e,i=nr(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function $S(e){let{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:m,transferSize:g,type:E}=e;return o===0?null:{type:`${t}.${E}`,start:nr(m),end:nr(i),name:n,data:{size:g,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}function GS(e){let{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:nr(i),end:nr(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}}function WS(e){let t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=nr(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?zt.mirror.getId(r):void 0}}}function zS(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(o=>{r.push(Le(o,n))}),r.push(Vr(({metric:o})=>{e.replayPerformanceEntries.push(WS(o))})),()=>{r.forEach(o=>o())}}var Z=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,jS='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function qS(){let e=new Blob([jS]);return URL.createObjectURL(e)}function xe(e,t){Z&&(h.info(e),t&&Lf(e))}function Qn(e,t){Z&&(h.info(e),t&&setTimeout(()=>{Lf(e)},0))}function Lf(e){Ye({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}var co=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Sc}.`)}},$i=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){let n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Sc)throw new co;this.events.push(t)}finish(){return new Promise(t=>{let n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=this.events.map(n=>n.timestamp).sort()[0];return t?vc(t):null}},lc=class{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){xe("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){let r=this._getAndIncrementId();return new Promise((o,i)=>{let s=({data:a})=>{let c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){Z&&h.error("[Replay]",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}},dc=class{constructor(t){this._worker=new lc(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let n=vc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);let r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Sc?Promise.reject(new co):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Z&&h.warn('[Replay] Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){let t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}},fc=class{constructor(t){this._fallback=new $i,this._compression=new dc(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{xe("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t,hasCheckout:n}=this._fallback,r=[];for(let o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){Z&&h.warn("[Replay] Failed to add events when switching buffers.",o)}}};function YS({useCompression:e,workerUrl:t}){if(e&&window.Worker){let n=VS(t);if(n)return n}return xe("[Replay] Using simple buffer"),new $i}function VS(e){try{let t=e||KS();if(!t)return;xe(`[Replay] Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new fc(n)}catch{xe("[Replay] Failed to create compression worker")}}function KS(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?qS():""}function xc(){try{return"sessionStorage"in te&&!!te.sessionStorage}catch{return!1}}function JS(e){XS(),e.session=void 0}function XS(){if(xc())try{te.sessionStorage.removeItem(_c)}catch{}}function Pf(e){return e===void 0?!1:Math.random()<e}function Ff(e){let t=Date.now(),n=e.id||H(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:a}}function wc(e){if(xc())try{te.sessionStorage.setItem(_c,JSON.stringify(e))}catch{}}function ZS(e,t){return Pf(e)?"session":t?"buffer":!1}function sf({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let o=ZS(e,t),i=Ff({sampled:o,previousSessionId:r});return n&&wc(i),i}function QS(e){if(!xc())return null;try{let t=te.sessionStorage.getItem(_c);if(!t)return null;let n=JSON.parse(t);return Qn("[Replay] Loading existing session",e),Ff(n)}catch{return null}}function pc(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Bf(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return pc(e.started,t,r)||pc(e.lastActivity,n,r)}function Hf(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Bf(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Ka({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){let i=o.stickySession&&QS(e);return i?Hf(i,{sessionIdleExpire:t,maxReplayDuration:n})?(Qn("[Replay] Session in sessionStorage is expired, creating new one..."),sf(o,{previousSessionId:i.id})):i:(Qn("[Replay] Creating new session",e),sf(o,{previousSessionId:r}))}function eE(e){return e.type===G.Custom}function Cc(e,t,n){return $f(e,t)?(Uf(e,t,n),!0):!1}function tE(e,t,n){return $f(e,t)?Uf(e,t,n):Promise.resolve(null)}async function Uf(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),o=nE(t,r.beforeAddRecordingEvent);return o?await e.eventBuffer.addEvent(o):void 0}catch(r){let o=r&&r instanceof co?"addEventSizeExceeded":"addEvent";Z&&h.error(r),await e.stop({reason:o});let i=x();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function $f(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=vc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(xe(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function nE(e,t){try{if(typeof t=="function"&&eE(e))return t(e)}catch(n){return Z&&h.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Rc(e){return!e.type}function mc(e){return e.type==="transaction"}function rE(e){return e.type==="replay_event"}function af(e){return e.type==="feedback"}function Gf(e){let t=sE();return(n,r)=>{if(!e.isEnabled()||!Rc(n)&&!mc(n))return;let o=r&&r.statusCode;if(!(t&&(!o||o<200||o>=300))){if(mc(n)){oE(e,n);return}iE(e,n)}}}function oE(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function iE(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function sE(){let e=x();if(!e)return!1;let t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function aE(e){return t=>{!e.isEnabled()||!Rc(t)||cE(e,t)}}function cE(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let r=bt({category:"replay.hydrate-error"});po(e,r)}}function uE(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function lE(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:G.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function dE(e,t){return e.recordingMode!=="buffer"||t.message===yc||!t.exception||t.type?!1:Pf(e.getOptions().errorSampleRate)}function fE(e,t=!1){let n=t?Gf(e):void 0;return Object.assign((r,o)=>e.isEnabled()?rE(r)?(delete r.breadcrumbs,r):!Rc(r)&&!mc(r)&&!af(r)||!e.checkAndHandleExpiredSession()?r:af(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),lE(e,r),r):uE(r,o)&&!e.getOptions()._experiments.captureExceptions?(Z&&h.log("[Replay] Ignoring error from rrweb internals",r),null):((dE(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function Yi(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{let a=e.throttledAddEvent({type:G.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function pE(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function mE(e){return t=>{if(!e.isEnabled())return;let n=pE(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Yi(e,[n]),!1)))}}function hE(e,t){return Z&&e.getOptions()._experiments.traceInternals?!1:zr(t,x())}function Vi(e,t){e.isEnabled()&&t!==null&&(hE(e,t.name)||e.addUpdate(()=>(Yi(e,[t]),!0)))}function gE(e){let{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;let{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}function _E(e){return t=>{if(!e.isEnabled())return;let n=gE(t);Vi(e,n)}}function yE(e){let{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[Ne];if(!t||!n||!o)return null;let{method:i,url:s,status_code:a}=o;return s===void 0?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:a}}}function SE(e){return t=>{if(!e.isEnabled())return;let n=yE(t);Vi(e,n)}}function Ki(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=qf(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Wf(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function zf(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[qf(e)];if(!e)return[void 0]}catch{return Z&&h.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Z&&h.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Gi(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function jf(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:K({method:i,statusCode:s,request:a,response:c})}}function uo(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function jt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:o,warnings:i}=EE(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function hc(e,t){return Object.keys(e).reduce((n,r)=>{let o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n},{})}function qf(e){return new URLSearchParams(e).toString()}function EE(e){if(!e||typeof e!="string")return{body:e};let t=e.length>qd,n=bE(e);if(t){let r=e.slice(0,qd);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function bE(e){let t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Wi(e,t){let n=TE(e);return ft(n,t)}function TE(e,t=te.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(te.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function IE(e,t,n){try{let r=await xE(e,t,n),o=jf("resource.fetch",r);Vi(n.replay,o)}catch(r){Z&&h.error("[Replay] Failed to capture fetch breadcrumb",r)}}function vE(e,t,n){let{input:r,response:o}=t,i=r?Yf(r):void 0,s=Ki(i,n.textEncoder),a=o?Wf(o.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),a!==void 0&&(e.data.response_body_size=a)}async function xE(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Wi(s,n.networkDetailAllowUrls)&&!Wi(s,n.networkDetailDenyUrls),p=d?wE(n,t.input,u):uo(u),m=await CE(d,n,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:m}}function wE({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let o=n?AE(n,t):{};if(!e)return jt(o,r,void 0);let i=Yf(n),[s,a]=zf(i),c=jt(o,r,s);return a?Gi(c,a):c}async function CE(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&i!==void 0)return uo(i);let s=o?Vf(o.headers,r):{};if(!o||!t&&i!==void 0)return jt(s,i,void 0);let[a,c]=await kE(o),u=RE(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:s});return c?Gi(u,c):u}function RE(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{let s=e&&e.length&&r===void 0?Ki(e,n):r;return o?t?jt(i,s,e):jt(i,s,void 0):uo(s)}catch(s){return Z&&h.warn("[Replay] Failed to serialize response body",s),jt(i,r,void 0)}}async function kE(e){let t=OE(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await ME(t)]}catch(n){return Z&&h.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function Yf(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Vf(e,t){let n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function AE(e,t){return e.length===1&&typeof e[0]!="string"?cf(e[0],t):e.length===2?cf(e[1],t):{}}function cf(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Vf(n,t):Array.isArray(n)?{}:hc(n,t):{}}function OE(e){try{return e.clone()}catch(t){Z&&h.warn("[Replay] Failed to clone response body",t)}}function ME(e){return new Promise((t,n)=>{let r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);NE(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function NE(e){return await e.text()}async function DE(e,t,n){try{let r=PE(e,t,n),o=jf("resource.xhr",r);Vi(n.replay,o)}catch(r){Z&&h.error("[Replay] Failed to capture xhr breadcrumb",r)}}function LE(e,t,n){let{xhr:r,input:o}=t;if(!r)return;let i=Ki(o,n.textEncoder),s=r.getResponseHeader("content-length")?Wf(r.getResponseHeader("content-length")):UE(r.response,r.responseType,n.textEncoder);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function PE(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!Wi(c,n.networkDetailAllowUrls)||Wi(c,n.networkDetailDenyUrls)){let M=uo(d),w=uo(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:M,response:w}}let m=a[Ne],g=m?hc(m.request_headers,n.networkRequestHeaders):{},E=hc(FE(a),n.networkResponseHeaders),[T,S]=n.networkCaptureBodies?zf(s):[void 0],[b,v]=n.networkCaptureBodies?BE(a):[void 0],O=jt(g,d,T),L=jt(E,p,b);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:S?Gi(O,S):O,response:v?Gi(L,v):L}}function FE(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
29
- `).reduce((n,r)=>{let[o,i]=r.split(": ");return n[o.toLowerCase()]=i,n},{}):{}}function BE(e){let t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return HE(e.response,e.responseType)}catch(n){t.push(n)}return Z&&h.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function HE(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return Z&&h.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Z&&h.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function UE(e,t,n){try{let r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ki(r,n)}catch{return}}function $E(e){let t=x();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",(u,l)=>GE(c,u,l)):(Tt(_E(e)),It(SE(e)))}catch{}}function GE(e,t,n){if(t.data)try{WE(t)&&jE(n)&&(LE(t,n,e),DE(t,n,e)),zE(t)&&qE(n)&&(vE(t,n,e),IE(t,n,e))}catch{Z&&h.warn("Error when enriching network breadcrumb")}}function WE(e){return e.category==="xhr"}function zE(e){return e.category==="fetch"}function jE(e){return e&&e.xhr}function qE(e){return e&&e.response}var uf=null;function YE(e){return!!e.category}var VE=e=>t=>{if(!e.isEnabled())return;let n=KE(t);n&&po(e,n)};function KE(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return uf===t||!t||(uf=t,!YE(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?JE(t):bt(t)}function JE(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return bt(e);let n=!1,r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Ri?(n=!0,`${o.slice(0,Ri)}\u2026`):o;if(typeof o=="object")try{let i=Ee(o,7);return JSON.stringify(i).length>Ri?(n=!0,`${JSON.stringify(i,null,2).slice(0,Ri)}\u2026`):i}catch{}return o});return bt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function XE(e){let t=Y(),n=x();t.addScopeListener(VE(e)),Sr(OS(e)),tt(mE(e)),$E(e);let r=fE(e,!lf(n));n&&n.addEventProcessor?n.addEventProcessor(r):Qo(r),lf(n)&&(n.on("beforeSendEvent",aE(e)),n.on("afterSendEvent",Gf(e)),n.on("createDsc",o=>{let i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(o.replay_id=i)}),n.on("startTransaction",o=>{e.lastTransaction=o}),n.on("finishTransaction",o=>{e.lastTransaction=o}),n.on("beforeSendFeedback",(o,i)=>{let s=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&s&&o.contexts&&o.contexts.feedback&&(o.contexts.feedback.replay_id=s)}))}function lf(e){return!!(e&&e.on)}async function ZE(e){try{return Promise.all(Yi(e,[QE(te.performance.memory)]))}catch{return[]}}function QE(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function eb(e,t,n){let r,o,i,s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function u(){return o!==void 0||i!==void 0?a():r}function l(){return o&&clearTimeout(o),o=setTimeout(a,t),s&&i===void 0&&(i=setTimeout(a,s)),r}return l.cancel=c,l.flush=u,l}function tb(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Z&&h.warn("[Replay] Received replay event after session expired.");return}let o=r||!t;t=!0,e.clickDetector&&wS(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!Cc(e,n,o))return!0;if(!o)return!1;if(rb(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){let i=e.eventBuffer.getEarliestTimestamp();i&&(xe(`[Replay] Updating session start time to earliest event in buffer to ${new Date(i)}`,e.getOptions()._experiments.traceInternals),e.session.started=i,e.getOptions().stickySession&&wc(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function nb(e){let t=e.getOptions();return{type:G.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function rb(e,t){!t||!e.session||e.session.segmentId!==0||Cc(e,nb(e),!1)}function ob(e,t,n,r){return be(Or(e,Mn(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function ib({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
30
- `;if(typeof e=="string")n=`${r}${e}`;else{let i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function sb({client:e,scope:t,replayId:n,event:r}){let o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit&&e.emit("preprocessEvent",r,i);let s=await an(e.getOptions(),r,i,t,e,he());if(!s)return null;s.platform=s.platform||"javascript";let a=e.getSdkMetadata&&e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function ab({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){let s=ib({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=x(),p=Y(),m=d&&d.getTransport(),g=d&&d.getDsn();if(!d||!m||!g||!i.sampled)return;let E={type:oy,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},T=await sb({scope:p,client:d,replayId:t,event:E});if(!T){d.recordDroppedEvent("event_processor","replay",E),xe("An event processor returned `null`, will not send event.");return}delete T.sdkProcessingMetadata;let S=ob(T,s,g,d.getOptions().tunnel),b;try{b=await m.send(S)}catch(O){let L=new Error(yc);try{L.cause=O}catch{}throw L}if(!b)return b;if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new zi(b.statusCode);let v=Nr({},b);if(Mr(v,"replay"))throw new ji(v);return b}var zi=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},ji=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}};async function Kf(e,t={count:0,interval:ly}){let{recordingData:n,options:r}=e;if(n.length)try{return await ab(e),!0}catch(o){if(o instanceof zi||o instanceof ji)throw o;if(Wo("Replays",{_retryCount:t.count}),Z&&r._experiments&&r._experiments.captureExceptions&&wt(o),t.count>=dy){let i=new Error(`${yc} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{setTimeout(async()=>{try{await Kf(e,t),i(!0)}catch(a){s(a)}},t.interval)})}}var Jf="__THROTTLED",cb="__SKIPPED";function ub(e,t,n){let r=new Map,o=a=>{let c=a-n;r.forEach((u,l)=>{l<c&&r.delete(l)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0),s=!1;return(...a)=>{let c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){let l=s;return s=!0,l?cb:Jf}s=!1;let u=r.get(c)||0;return r.set(c,u+1),e(...a)}}var gc=class e{constructor({options:t,recordingOptions:n}){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:iy,sessionIdleExpire:sy},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=eb(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ub((s,a)=>tE(this,s,a),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(fy,r),timeout:r,scrollTimeout:py,ignoreSelector:o?o.join(","):""}:void 0;i&&(this.clickDetector=new uc(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){let{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Qn(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Qn("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);let t=Ka({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Qn("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let t=Ka({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=zt({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:uy},emit:tb(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{xe(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,JS(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),xe("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),xe("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let n=Date.now();xe("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){let n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&pc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${te.location.pathname}${te.location.hash}${te.location.search}`,n=`${te.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){let r=this._throttledAddEvent(t,n);if(r===Jf){let o=bt({category:"replay.throttled"});this.addUpdate(()=>!Cc(this,{type:_S,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){let t=this.lastTransaction||Y().getTransaction(),r=(t&&P(t).data||{})[ge];if(!(!t||!r||!["route","custom"].includes(r)))return P(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=YS({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){Z&&h.error("[Replay]",t),Z&&this._options._experiments&&this._options._experiments.captureExceptions&&wt(t)}_initializeSessionForSampling(t){let n=this._options.errorSampleRate>0,r=Ka({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;let t=this.session;return Hf(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{te.document.addEventListener("visibilitychange",this._handleVisibilityChange),te.addEventListener("blur",this._handleWindowBlur),te.addEventListener("focus",this._handleWindowFocus),te.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(XE(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=zS(this)}_removeListeners(){try{te.document.removeEventListener("visibilitychange",this._handleVisibilityChange),te.removeEventListener("blur",this._handleWindowBlur),te.removeEventListener("focus",this._handleWindowFocus),te.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{te.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let t=bt({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{let t=bt({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{LS(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Bf(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){xe("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:G.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=BS(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Yi(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;let r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Z&&h.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await ZE(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");let r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await Kf({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});let r=x();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Z&&h.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;let n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();let i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){xe(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}let a=this.eventBuffer;if(a&&this.session.segmentId===0&&!a.hasCheckout&&xe("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){Z&&h.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&wc(this.session)}__init6(){this._onMutationHandler=t=>{let n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>o||i){let s=bt({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}};function eo(e,t,n,r){let o=typeof r=="string"?r.split(","):[],i=[...e,...o,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),Re(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function lb({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){let l=['base[href="/"]'],d=eo(e,[".sentry-mask","[data-sentry-mask]"],a,c),p=eo(t,[".sentry-unmask","[data-sentry-unmask]"]),m={maskTextSelector:d,unmaskTextSelector:p,blockSelector:eo(n,[".sentry-block","[data-sentry-block]",...l],i,s),unblockSelector:eo(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:eo(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return i instanceof RegExp&&(m.blockClass=i),a instanceof RegExp&&(m.maskTextClass=a),m}function db({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}var df='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',fb=["content-length","content-type","accept"],ff=!1,pb=e=>new lo(e),lo=class e{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=ay,flushMaxDelay:n=cy,minReplayDuration:r=my,maxReplayDuration:o=Yd,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},sessionSampleRate:u,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:p=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:g=750,mutationLimit:E=1e4,slowClickTimeout:T=7e3,slowClickIgnoreSelectors:S=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:v=[],networkCaptureBodies:O=!0,networkRequestHeaders:L=[],networkResponseHeaders:M=[],mask:w=[],maskAttributes:$=["title","placeholder"],unmask:ne=[],block:k=[],unblock:N=[],ignore:V=[],maskFn:ie,beforeAddRecordingEvent:de,beforeErrorSampling:Pe,blockClass:X,blockSelector:We,maskInputOptions:ce,maskTextClass:Ce,maskTextSelector:Xe,ignoreClass:is}={}){this.name=e.id;let bn=lb({mask:w,unmask:ne,block:k,unblock:N,ignore:V,blockClass:X,blockSelector:We,maskTextClass:Ce,maskTextSelector:Xe,ignoreClass:is});if(this._recordingOptions={maskAllInputs:p,maskAllText:d,maskInputOptions:{...ce||{},password:!0},maskTextFn:ie,maskInputFn:ie,maskAttributeFn:(Ot,Tn,ar)=>db({maskAttributes:$,maskAllText:d,privacyOptions:bn,key:Ot,value:Tn,el:ar}),...bn,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:Ot=>{try{Ot.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,hy),maxReplayDuration:Math.min(o,Yd),stickySession:i,sessionSampleRate:u,errorSampleRate:l,useCompression:s,workerUrl:a,blockAllMedia:m,maskAllInputs:p,maskAllText:d,mutationBreadcrumbLimit:g,mutationLimit:E,slowClickTimeout:T,slowClickIgnoreSelectors:S,networkDetailAllowUrls:b,networkDetailDenyUrls:v,networkCaptureBodies:O,networkRequestHeaders:pf(L),networkResponseHeaders:pf(M),beforeAddRecordingEvent:de,beforeErrorSampling:Pe,_experiments:c},typeof u=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
31
- This option is deprecated and will be removed soon.
32
- Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
33
- Sentry.init({ replaysSessionSampleRate: ${u} })`),this._initialOptions.sessionSampleRate=u),typeof l=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
34
- This option is deprecated and will be removed soon.
35
- Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
36
- Sentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${df}`:df),this._isInitialized&&An())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return ff}set _isInitialized(t){ff=t}setupOnce(){An()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(t)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){let t=mb(this._initialOptions);this._replay=new gc({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{let n=x().getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}};lo.__initStatic();function mb(e){let t=x(),n=t&&t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...K(e)};return n?(e.sessionSampleRate==null&&e.errorSampleRate==null&&n.replaysSessionSampleRate==null&&n.replaysOnErrorSampleRate==null&&Re(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof n.replaysSessionSampleRate=="number"&&(r.sessionSampleRate=n.replaysSessionSampleRate),typeof n.replaysOnErrorSampleRate=="number"&&(r.errorSampleRate=n.replaysOnErrorSampleRate),r):(Re(()=>{console.warn("SDK client is not available.")}),r)}function pf(e){return[...fb,...e.map(t=>t.toLowerCase())]}function hb(){let e=x();return e&&e.getIntegrationByName&&e.getIntegrationByName("Replay")}f();var Xf;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Xf||(Xf={}));function gb(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function Ac(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ac(e.parentNode,t,n,r+1)}function Zf(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(gb(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var rr=`Please stop import mirror directly. Instead of that,\r
37
- now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
38
- or you can use record.mirror to access the mirror instance during recording.`,Qf={map:{},getId(){return console.error(rr),-1},getNode(){return console.error(rr),null},removeNodeFromMap(){console.error(rr)},has(){return console.error(rr),!1},reset(){console.error(rr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Qf=new Proxy(Qf,{get(e,t,n){return t==="map"&&console.error(rr),Reflect.get(e,t,n)}}));function Mc(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){setTimeout(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>Mc(e,t,i||{},!0)}function Nc(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function Qi(e,t,n,r,o){if(!e)return!1;let i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!i)return!1;let s=Zf(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let a=Ac(i,s),c=-1;return a<0?!1:(r&&(c=Ac(i,Zf(null,r))),a>-1&&c<0?!0:a<c)}var kc;function _b(){if(kc)return kc;let e=window.document,t=window.requestAnimationFrame;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.requestAnimationFrame&&(t=r.requestAnimationFrame),e.head.removeChild(n)}catch{}return kc=t.bind(window)}function _n(...e){return _b()(...e)}var ir=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ir||{}),Xi;function yb(e){Xi=e}var ep=e=>Xi?(...n)=>{try{return e(...n)}catch(r){if(Xi&&Xi(r)===!0)return()=>{};throw r}}:e,or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sb=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(mo=0;mo<or.length;mo++)Sb[or.charCodeAt(mo)]=mo;var mo,Eb=function(e){var t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=or[t[n]>>2],o+=or[(t[n]&3)<<4|t[n+1]>>4],o+=or[(t[n+1]&15)<<2|t[n+2]>>6],o+=or[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},tp=new Map;function bb(e,t){let n=tp.get(e);return n||(n=new Map,tp.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var ip=(e,t,n)=>{if(!e||!(ap(e,t)||typeof e=="object"))return;let r=e.constructor.name,o=bb(n,r),i=o.indexOf(e);return i===-1&&(i=o.length,o.push(e)),i};function Zi(e,t,n){if(e instanceof Array)return e.map(r=>Zi(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let r=e.constructor.name,o=Eb(e);return{rr_type:r,base64:o}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Zi(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let r=e.constructor.name,{src:o}=e;return{rr_type:r,src:o}}else if(e instanceof HTMLCanvasElement){let r="HTMLImageElement",o=e.toDataURL();return{rr_type:r,src:o}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Zi(e.data,t,n),e.width,e.height]};if(ap(e,t)||typeof e=="object"){let r=e.constructor.name,o=ip(e,t,n);return{rr_type:r,index:o}}}}return e}var sp=(e,t,n)=>e.map(r=>Zi(r,t,n)),ap=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(o=>typeof t[o]=="function").find(o=>e instanceof t[o]);function Tb(e,t,n,r,o){let i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;let c=Nc(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...l){return Qi(this.canvas,n,r,o,!0)||setTimeout(()=>{let d=sp(l,t,this);e(this.canvas,{type:ir["2D"],property:a,args:d})},0),u.apply(this,l)}});i.push(c)}catch{let u=Mc(t.CanvasRenderingContext2D.prototype,a,{set(l){e(this.canvas,{type:ir["2D"],property:a,args:[l],setter:!0})}});i.push(u)}return()=>{i.forEach(a=>a())}}function Ib(e){return e==="experimental-webgl"?"webgl":e}function np(e,t,n,r,o){let i=[];try{let s=Nc(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!Qi(this,t,n,r,!0)){let l=Ib(c);if("__context"in this||(this.__context=l),o&&["webgl","webgl2"].includes(l))if(u[0]&&typeof u[0]=="object"){let d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(s=>s())}}function rp(e,t,n,r,o,i,s,a){let c=[],u=Object.getOwnPropertyNames(e);for(let l of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let d=Nc(e,l,function(p){return function(...m){let g=p.apply(this,m);if(ip(g,a,this),"tagName"in this.canvas&&!Qi(this.canvas,r,o,i,!0)){let E=sp(m,a,this),T={type:t,property:l,args:E};n(this.canvas,T)}return g}});c.push(d)}catch{let p=Mc(e,l,{set(m){n(this.canvas,{type:t,property:l,args:[m],setter:!0})}});c.push(p)}return c}function vb(e,t,n,r,o,i){let s=[];return s.push(...rp(t.WebGLRenderingContext.prototype,ir.WebGL,e,n,r,o,i,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...rp(t.WebGL2RenderingContext.prototype,ir.WebGL2,e,n,r,o,i,t)),()=>{s.forEach(a=>a())}}var xb='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function wb(){let e=new Blob([xb]);return URL.createObjectURL(e)}var Oc=class{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(d,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(d)||this.pendingCanvasMutations.set(d,[]),this.pendingCanvasMutations.get(d).push(p)};let{sampling:n="all",win:r,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:a,recordCanvas:c,dataURLOptions:u,errorHandler:l}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,l&&yb(l),!t.enableManualSnapshot&&ep(()=>{c&&n==="all"&&this.initCanvasMutationObserver(r,o,i,s),c&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,o,i,s,a,{dataURLOptions:u})})()}initCanvasFPSObserver(t,n,r,o,i,s,a){let c=np(n,r,o,i,!0),u=this.takeSnapshot(!1,t,n,r,o,i,s,a.dataURLOptions);this.resetObservers=()=>{c(),cancelAnimationFrame(u)}}initCanvasMutationObserver(t,n,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=np(t,n,r,o,!1),s=Tb(this.processMutation.bind(this),t,n,r,o),a=vb(this.processMutation.bind(this),t,n,r,o,this.mirror);this.resetObservers=()=>{i(),s(),a()}}snapshot(t){let{options:n}=this,r=this.takeSnapshot(!0,n.sampling==="all"?2:n.sampling||2,n.win,n.blockClass,n.blockSelector,n.unblockSelector,n.maxCanvasSize,n.dataURLOptions,t);this.resetObservers=()=>{cancelAnimationFrame(r)}}takeSnapshot(t,n,r,o,i,s,a,c,u){let l=new Map,d=new Worker(wb());d.onmessage=S=>{let b=S.data,{id:v}=b;if(l.set(v,!1),!("base64"in b))return;let{base64:O,type:L,width:M,height:w}=b;this.mutationCb({id:v,type:ir["2D"],commands:[{property:"clearRect",args:[0,0,M,w]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:O}],type:L}]},0,0,M,w]}]})};let p=1e3/n,m=0,g,E=S=>{if(S)return[S];let b=[];return r.document.querySelectorAll("canvas").forEach(v=>{Qi(v,o,i,s,!0)||b.push(v)}),b},T=S=>{if(m&&S-m<p){g=_n(T);return}m=S,E(u).forEach(b=>{let v=this.mirror.getId(b);if(!l.get(v)&&!(!b.width||!b.height)){if(l.set(v,!0),!t&&["webgl","webgl2"].includes(b.__context)){let O=b.getContext(b.__context);rn([O,"optionalAccess",L=>L.getContextAttributes,"call",L=>L(),"optionalAccess",L=>L.preserveDrawingBuffer])===!1&&O.clear(O.COLOR_BUFFER_BIT)}createImageBitmap(b).then(O=>{d.postMessage({id:v,bitmap:O,width:b.width,height:b.height,dataURLOptions:c,maxCanvasSize:a},[O])}).catch(O=>{ep(()=>{throw O})()})}}),g=_n(T)};return g=_n(T),g}startPendingCanvasMutationFlusher(){_n(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=n=>{this.rafStamps.latestId=n,_n(t)};_n(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{let r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),_n(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;let o=r.map(s=>{let{type:a,...c}=s;return c}),{type:i}=r[0];this.mutationCb({id:n,type:i,commands:o}),this.pendingCanvasMutations.delete(t)}},op={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},cp="ReplayCanvas",Ji=1280,Cb=(e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Ji):Ji,n?Math.min(n,Ji):Ji]},o,i=new Promise(s=>o=s);return{name:cp,setupOnce(){},getOptions(){let{quality:s,enableManualSnapshot:a,maxCanvasSize:c}=r;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:u=>{let l=new Oc({...u,enableManualSnapshot:a,maxCanvasSize:c,errorHandler:d=>{try{typeof d=="object"&&(d.__rrweb__=!0)}catch{}}});return o(l),l},...op[s||"medium"]||op.medium}},async snapshot(s){(await i).snapshot(s)}}},up=Cb,Rb=D(cp,up);f();var Sn=C,Dc="#ffffff",lp="inherit",Lc="rgba(108, 95, 199, 1)",dp={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:Dc,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"12px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:Lc,submitBorder:Lc,submitOutlineFocus:"#29232f",submitForeground:Dc,submitForegroundHover:Dc,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:lp,inputForeground:lp,inputBorder:"var(--border)",inputOutlineFocus:Lc,formBorderRadius:"20px",formContentBorderRadius:"6px"},fp={light:dp,dark:{...dp,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},kb="Report a Bug",Ab="Cancel",Ob="Send Bug Report",Mb="Report a Bug",Nb="your.email@example.org",Db="Email",Lb="What's the bug? What did you expect?",Pb="Description",Fb="Your Name",Bb="Name",Hb="(required)",Ub="Thank you for your report!",_p="widget",yp="api";async function $b({client:e,scope:t,event:n}){let r={};e.emit&&e.emit("preprocessEvent",n,r);let o=await an(e.getOptions(),n,r,t,e,he());return o===null?(e.recordDroppedEvent("event_processor","feedback",n),null):(o.platform=o.platform||"javascript",o)}async function Gb({feedback:{message:e,email:t,name:n,source:r,url:o}},{includeReplay:i=!0}={}){let s=x(),a=s&&s.getTransport(),c=s&&s.getDsn();if(!s||!a||!c)return;let u={contexts:{feedback:{contact_email:t,name:n,message:e,url:o,source:r}},type:"feedback"};return De(async l=>{l.clearBreadcrumbs(),[yp,_p].includes(String(r))&&l.setLevel("info");let d=await $b({scope:l,client:s,event:u});if(!d)return;s.emit&&s.emit("beforeSendFeedback",d,{includeReplay:!!i});let p=$r(d,c,s.getOptions()._metadata,s.getOptions().tunnel),m;try{m=await a.send(p)}catch(g){let E=new Error("Unable to send Feedback");try{E.cause=g}catch{}throw E}if(m){if(typeof m.statusCode=="number"&&(m.statusCode<200||m.statusCode>=300))throw new Error("Unable to send Feedback");return m}})}function Sp({name:e,email:t,message:n,source:r=yp,url:o=pr()},i={}){if(!n)throw new Error("Unable to submit feedback with empty message");return Gb({feedback:{name:e,email:t,message:n,url:o,source:r}},i)}var yn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function pp(e,t){return{...e,...t,themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Wb(e){let t=e.createElement("style");return t.textContent=`
39
- .widget__actor {
40
- line-height: 25px;
41
-
42
- display: flex;
43
- align-items: center;
44
- gap: 8px;
45
-
46
- border-radius: var(--border-radius);
47
- cursor: pointer;
48
- font-family: inherit;
49
- font-size: var(--font-size);
50
- font-weight: 600;
51
- padding: 12px 16px;
52
- text-decoration: none;
53
- z-index: 9000;
54
-
55
- color: var(--foreground);
56
- background-color: var(--background);
57
- border: var(--border);
58
- box-shadow: var(--box-shadow);
59
- opacity: 1;
60
- transition: opacity 0.1s ease-in-out;
61
- }
62
-
63
- .widget__actor:hover {
64
- background-color: var(--background-hover);
65
- }
66
-
67
- .widget__actor svg {
68
- width: 16px;
69
- height: 16px;
70
- }
71
-
72
- .widget__actor--hidden {
73
- opacity: 0;
74
- pointer-events: none;
75
- visibility: hidden;
76
- }
77
-
78
- .widget__actor__text {
79
- }
80
-
81
- .feedback-icon path {
82
- fill: var(--foreground);
83
- }
84
- `,t}function zb(e){let t=e.createElement("style");return t.textContent=`
85
- .dialog {
86
- line-height: 25px;
87
- background-color: rgba(0, 0, 0, 0.05);
88
- border: none;
89
- position: fixed;
90
- inset: 0;
91
- z-index: 10000;
92
- width: 100vw;
93
- height: 100vh;
94
- display: flex;
95
- align-items: center;
96
- justify-content: center;
97
- opacity: 1;
98
- transition: opacity 0.2s ease-in-out;
99
- }
100
-
101
- .dialog:not([open]) {
102
- opacity: 0;
103
- pointer-events: none;
104
- visibility: hidden;
105
- }
106
- .dialog:not([open]) .dialog__content {
107
- transform: translate(0, -16px) scale(0.98);
108
- }
109
-
110
- .dialog__content {
111
- position: fixed;
112
- left: var(--left);
113
- right: var(--right);
114
- bottom: var(--bottom);
115
- top: var(--top);
116
-
117
- border: var(--border);
118
- border-radius: var(--form-border-radius);
119
- background-color: var(--background);
120
- color: var(--foreground);
121
-
122
- width: 320px;
123
- max-width: 100%;
124
- max-height: calc(100% - 2rem);
125
- display: flex;
126
- flex-direction: column;
127
- box-shadow: var(--box-shadow);
128
- transition: transform 0.2s ease-in-out;
129
- transform: translate(0, 0) scale(1);
130
- }
131
-
132
- .dialog__header {
133
- display: flex;
134
- align-items: center;
135
- justify-content: space-between;
136
- font-size: 20px;
137
- font-weight: 600;
138
- padding: 24px 24px 0 24px;
139
- margin: 0;
140
- margin-bottom: 16px;
141
- }
142
-
143
- .brand-link {
144
- display: inline-flex;
145
- }
146
-
147
- .error {
148
- color: var(--error);
149
- margin-bottom: 16px;
150
- }
151
-
152
- .form {
153
- display: grid;
154
- overflow: auto;
155
- flex-direction: column;
156
- gap: 16px;
157
- padding: 0 24px 24px;
158
- }
159
-
160
- .form__error-container {
161
- color: var(--error);
162
- }
163
-
164
- .form__error-container--hidden {
165
- display: none;
166
- }
167
-
168
- .form__label {
169
- display: flex;
170
- flex-direction: column;
171
- gap: 4px;
172
- margin: 0px;
173
- }
174
-
175
- .form__label__text {
176
- display: grid;
177
- gap: 4px;
178
- align-items: center;
179
- grid-auto-flow: column;
180
- grid-auto-columns: max-content;
181
- }
182
-
183
- .form__label__text--required {
184
- font-size: 0.85em;
185
- }
186
-
187
- .form__input {
188
- line-height: inherit;
189
- background-color: var(--input-background);
190
- box-sizing: border-box;
191
- border: var(--input-border);
192
- border-radius: var(--form-content-border-radius);
193
- color: var(--input-foreground);
194
- font-family: inherit;
195
- font-size: var(--font-size);
196
- font-weight: 500;
197
- padding: 6px 12px;
198
- }
199
-
200
- .form__input::placeholder {
201
- color: var(--input-foreground);
202
- opacity: 0.65;
203
- }
204
-
205
- .form__input:focus-visible {
206
- outline: 1px auto var(--input-outline-focus);
207
- }
208
-
209
- .form__input--textarea {
210
- font-family: inherit;
211
- resize: vertical;
212
- }
213
-
214
- .btn-group {
215
- display: grid;
216
- gap: 8px;
217
- margin-top: 8px;
218
- }
219
-
220
- .btn {
221
- line-height: inherit;
222
- border: var(--cancel-border);
223
- border-radius: var(--form-content-border-radius);
224
- cursor: pointer;
225
- font-family: inherit;
226
- font-size: var(--font-size);
227
- font-weight: 600;
228
- padding: 6px 16px;
229
- }
230
- .btn[disabled] {
231
- opacity: 0.6;
232
- pointer-events: none;
233
- }
234
-
235
- .btn--primary {
236
- background-color: var(--submit-background);
237
- border-color: var(--submit-border);
238
- color: var(--submit-foreground);
239
- }
240
- .btn--primary:hover {
241
- background-color: var(--submit-background-hover);
242
- color: var(--submit-foreground-hover);
243
- }
244
- .btn--primary:focus-visible {
245
- outline: 1px auto var(--submit-outline-focus);
246
- }
247
-
248
- .btn--default {
249
- background-color: var(--cancel-background);
250
- color: var(--cancel-foreground);
251
- font-weight: 500;
252
- }
253
- .btn--default:hover {
254
- background-color: var(--cancel-background-hover);
255
- color: var(--cancel-foreground-hover);
256
- }
257
- .btn--default:focus-visible {
258
- outline: 1px auto var(--cancel-outline-focus);
259
- }
260
-
261
- .success-message {
262
- background-color: var(--background);
263
- border: var(--border);
264
- border-radius: var(--border-radius);
265
- box-shadow: var(--box-shadow);
266
- font-weight: 600;
267
- color: var(--success);
268
- padding: 12px 24px;
269
- line-height: 25px;
270
- display: grid;
271
- align-items: center;
272
- grid-auto-flow: column;
273
- gap: 6px;
274
- cursor: default;
275
- }
276
-
277
- .success-icon path {
278
- fill: var(--success);
279
- }
280
- `,t}function mp(e){return`
281
- --background: ${e.background};
282
- --background-hover: ${e.backgroundHover};
283
- --foreground: ${e.foreground};
284
- --error: ${e.error};
285
- --success: ${e.success};
286
- --border: ${e.border};
287
- --border-radius: ${e.borderRadius};
288
- --box-shadow: ${e.boxShadow};
289
-
290
- --submit-background: ${e.submitBackground};
291
- --submit-background-hover: ${e.submitBackgroundHover};
292
- --submit-border: ${e.submitBorder};
293
- --submit-outline-focus: ${e.submitOutlineFocus};
294
- --submit-foreground: ${e.submitForeground};
295
- --submit-foreground-hover: ${e.submitForegroundHover};
296
-
297
- --cancel-background: ${e.cancelBackground};
298
- --cancel-background-hover: ${e.cancelBackgroundHover};
299
- --cancel-border: ${e.cancelBorder};
300
- --cancel-outline-focus: ${e.cancelOutlineFocus};
301
- --cancel-foreground: ${e.cancelForeground};
302
- --cancel-foreground-hover: ${e.cancelForegroundHover};
303
-
304
- --input-background: ${e.inputBackground};
305
- --input-foreground: ${e.inputForeground};
306
- --input-border: ${e.inputBorder};
307
- --input-outline-focus: ${e.inputOutlineFocus};
308
-
309
- --form-border-radius: ${e.formBorderRadius};
310
- --form-content-border-radius: ${e.formContentBorderRadius};
311
- `}function jb(e,t,n){let r=e.createElement("style");return r.textContent=`
312
- :host {
313
- --bottom: 1rem;
314
- --right: 1rem;
315
- --top: auto;
316
- --left: auto;
317
- --z-index: 100000;
318
- --font-family: ${n.light.fontFamily};
319
- --font-size: ${n.light.fontSize};
320
-
321
- position: fixed;
322
- left: var(--left);
323
- right: var(--right);
324
- bottom: var(--bottom);
325
- top: var(--top);
326
- z-index: var(--z-index);
327
-
328
- font-family: var(--font-family);
329
- font-size: var(--font-size);
330
-
331
- ${mp(t==="dark"?n.dark:n.light)}
332
- }
333
-
334
- ${t==="system"?`
335
- @media (prefers-color-scheme: dark) {
336
- :host {
337
- ${mp(n.dark)}
338
- }
339
- }`:""}
340
- }`,r}function qb({id:e,colorScheme:t,themeDark:n,themeLight:r}){try{let o=Sn.document,i=o.createElement("div");i.id=e;let s=i.attachShadow({mode:"open"});return s.appendChild(jb(o,t,{dark:n,light:r})),s.appendChild(zb(o)),{shadow:s,host:i}}catch{throw h.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function Yb(e,t,n){if(!e)return;let r=()=>{e&&e.showError("There was a problem submitting feedback, please wait and try again.")};e.hideError();try{return await Sp({...t,source:_p},n)}catch(o){yn&&h.error(o),r()}}function Ge(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}var sr=20,Vb="http://www.w3.org/2000/svg";function Kb(){let e=a=>Sn.document.createElementNS(Vb,a),t=Ge(e("svg"),{class:"feedback-icon",width:`${sr}`,height:`${sr}`,viewBox:`0 0 ${sr} ${sr}`,fill:"none"}),n=Ge(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ge(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);let o=e("defs"),i=Ge(e("clipPath"),{id:"clip0_57_80"}),s=Ge(e("rect"),{width:`${sr}`,height:`${sr}`,fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),{get el(){return t}}}function oe(e,t,...n){let o=Sn.document.createElement(e);t&&Object.entries(t).forEach(([i,s])=>{i==="className"&&typeof s=="string"?o.setAttribute("class",s):typeof s=="boolean"&&s?o.setAttribute(i,""):typeof s=="string"?o.setAttribute(i,s):i.startsWith("on")&&typeof s=="function"&&o.addEventListener(i.substring(2).toLowerCase(),s)});for(let i of n)Ep(o,i);return o}function Ep(e,t){let n=Sn.document;if(!(typeof t>"u"||t===null))if(Array.isArray(t))for(let r of t)Ep(e,r);else t===!1||(typeof t=="string"?e.appendChild(n.createTextNode(t)):t instanceof Node?e.appendChild(t):e.appendChild(n.createTextNode(String(t))))}function Jb({buttonLabel:e,onClick:t}){function n(o){t&&t(o)}let r=oe("button",{type:"button",className:"widget__actor","aria-label":e,"aria-hidden":"false"},Kb().el,e?oe("span",{className:"widget__actor__text"},e):null);return r.addEventListener("click",n),{get el(){return r},show:()=>{r.classList.remove("widget__actor--hidden"),r.setAttribute("aria-hidden","false")},hide:()=>{r.classList.add("widget__actor--hidden"),r.setAttribute("aria-hidden","true")}}}function Xb({label:e}){return{el:oe("button",{type:"submit",className:"btn btn--primary","aria-label":e},e)}}function Pc(e,t){let n=e.get(t);return typeof n=="string"?n.trim():""}function Zb({nameLabel:e,namePlaceholder:t,emailLabel:n,emailPlaceholder:r,messageLabel:o,messagePlaceholder:i,isRequiredLabel:s,cancelButtonLabel:a,submitButtonLabel:c,showName:u,showEmail:l,isNameRequired:d,isEmailRequired:p,defaultName:m,defaultEmail:g,onCancel:E,onSubmit:T}){let{el:S}=Xb({label:c});function b(N){if(N.preventDefault(),N.target instanceof HTMLFormElement)try{if(T){let V=new FormData(N.target),ie={name:Pc(V,"name"),email:Pc(V,"email"),message:Pc(V,"message")};T(ie)}}catch{}}let v=oe("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function O(N){v.textContent=N,v.classList.remove("form__error-container--hidden"),v.setAttribute("aria-hidden","false")}function L(){v.textContent="",v.classList.add("form__error-container--hidden"),v.setAttribute("aria-hidden","true")}let M=oe("input",{id:"name",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"name",required:d,className:"form__input",placeholder:t,value:m}),w=oe("input",{id:"email",type:l?"text":"hidden","aria-hidden":l?"false":"true",name:"email",required:p,className:"form__input",placeholder:r,value:g}),$=oe("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:i}),ne=oe("button",{type:"button",className:"btn btn--default","aria-label":a,onClick:N=>{E&&E(N)}},a),k=oe("form",{className:"form",onSubmit:b},[v,u&&oe("label",{htmlFor:"name",className:"form__label"},[oe("span",{className:"form__label__text"},e,d&&oe("span",{className:"form__label__text--required"},` ${s}`)),M]),!u&&M,l&&oe("label",{htmlFor:"email",className:"form__label"},[oe("span",{className:"form__label__text"},n,p&&oe("span",{className:"form__label__text--required"},` ${s}`)),w]),!l&&w,oe("label",{htmlFor:"message",className:"form__label"},[oe("span",{className:"form__label__text"},o,oe("span",{className:"form__label__text--required"},` ${s}`)),$]),oe("div",{className:"btn-group"},[S,ne])]);return{get el(){return k},showError:O,hideError:L}}var Qb="http://www.w3.org/2000/svg";function eT({colorScheme:e}){let t=s=>Sn.document.createElementNS(Qb,s),n=Ge(t("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),r=Ge(t("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});n.append(r);let o=t("defs"),i=t("style");return i.textContent=`
341
- path {
342
- fill: ${e==="dark"?"#fff":"#362d59"};
343
- }`,e==="system"&&(i.textContent+=`
344
- @media (prefers-color-scheme: dark) {
345
- path: {
346
- fill: '#fff';
347
- }
348
- }
349
- `),o.append(i),n.append(o),{get el(){return n}}}function tT({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:o,isEmailRequired:i,colorScheme:s,defaultName:a,defaultEmail:c,onClosed:u,onCancel:l,onSubmit:d,...p}){let m=null;function g(){E(),u&&u()}function E(){m&&(m.open=!1)}function T(){m&&(m.open=!0)}function S(){return m&&m.open===!0||!1}let{el:b,showError:v,hideError:O}=Zb({showEmail:r,showName:n,isEmailRequired:i,isNameRequired:o,defaultName:a,defaultEmail:c,onSubmit:d,onCancel:l,...p});return m=oe("dialog",{className:"dialog",open:!0,onClick:g},oe("div",{className:"dialog__content",onClick:L=>{L.stopPropagation()}},oe("h2",{className:"dialog__header"},e,t&&oe("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},eT({colorScheme:s}).el)),b)),{get el(){return m},showError:v,hideError:O,open:T,close:E,checkIsOpen:S}}var es=16,hp=17,nT="http://www.w3.org/2000/svg";function rT(){let e=c=>Sn.document.createElementNS(nT,c),t=Ge(e("svg"),{class:"success-icon",width:`${es}`,height:`${hp}`,viewBox:`0 0 ${es} ${hp}`,fill:"none"}),n=Ge(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ge(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Ge(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);let i=e("defs"),s=Ge(e("clipPath"),{id:"clip0_57_156"}),a=Ge(e("rect"),{width:`${es}`,height:`${es}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),{get el(){return t}}}function oT({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}let r=oe("div",{className:"success-message",onClick:n},rT().el,e);return{el:r,remove:n}}function gp({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let o,i,s=!1;function a(){if(e)try{let S=oT({message:n.successMessageText,onRemove:()=>{b&&clearTimeout(b),l()}});if(!S.el)throw new Error("Unable to show success message");e.appendChild(S.el);let b=setTimeout(()=>{S&&S.remove()},5e3)}catch(S){h.error(S)}}async function c(S){if(!i)return;let b=[];if(n.isNameRequired&&!S.name&&b.push(n.nameLabel),n.isEmailRequired&&!S.email&&b.push(n.emailLabel),S.message||b.push(n.messageLabel),b.length>0){i.showError(`Please enter in the following required fields: ${b.join(", ")}`);return}if(!await Yb(i,S)){n.onSubmitError&&n.onSubmitError();return}E(),a(),n.onSubmitSuccess&&n.onSubmitSuccess()}function u(){let S=x(),b=S&&S.getIntegrationByName&&S.getIntegrationByName("Replay");b&&b.flush().catch(v=>{yn&&h.error(v)})}function l(){o&&o.show()}function d(){o&&o.hide()}function p(){o&&o.el&&o.el.remove()}function m(){try{if(i){i.open(),s=!0,n.onFormOpen&&n.onFormOpen(),u();return}let S=n.useSentryUser,b=Y(),v=b&&b.getUser();if(i=tT({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:S&&v&&v[S.name]||"",defaultEmail:S&&v&&v[S.email]||"",onClosed:()=>{l(),s=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{g(),l()},onSubmit:c}),!i.el)throw new Error("Unable to open Feedback dialog");e.appendChild(i.el),d(),n.onFormOpen&&n.onFormOpen(),u()}catch(S){h.error(S)}}function g(){i&&(i.close(),s=!1,n.onFormClose&&n.onFormClose())}function E(){if(i){g();let S=i.el;S&&S.remove(),i=void 0}}function T(){s||m(),d()}return r?r.addEventListener("click",T):t&&(o=Jb({buttonLabel:n.buttonLabel,onClick:T}),o.el&&e.appendChild(o.el)),{get actor(){return o},get dialog(){return i},showActor:l,hideActor:d,removeActor:p,openDialog:m,closeDialog:g,removeDialog:E}}var ts=Sn.document,iT=e=>new ho(e),ho=class e{static __initStatic(){this.id="Feedback"}constructor({autoInject:t=!0,id:n="sentry-feedback",isEmailRequired:r=!1,isNameRequired:o=!1,showBranding:i=!0,showEmail:s=!0,showName:a=!0,useSentryUser:c={email:"email",name:"username"},themeDark:u,themeLight:l,colorScheme:d="system",buttonLabel:p=kb,cancelButtonLabel:m=Ab,submitButtonLabel:g=Ob,formTitle:E=Mb,emailPlaceholder:T=Nb,emailLabel:S=Db,messagePlaceholder:b=Lb,messageLabel:v=Pb,namePlaceholder:O=Fb,nameLabel:L=Bb,isRequiredLabel:M=Hb,successMessageText:w=Ub,onFormClose:$,onFormOpen:ne,onSubmitError:k,onSubmitSuccess:N}={}){this.name=e.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:t,showBranding:i,id:n,isEmailRequired:r,isNameRequired:o,showEmail:s,showName:a,useSentryUser:c,colorScheme:d,themeDark:{...fp.dark,...u},themeLight:{...fp.light,...l},buttonLabel:p,cancelButtonLabel:m,submitButtonLabel:g,formTitle:E,emailLabel:S,emailPlaceholder:T,messageLabel:v,messagePlaceholder:b,nameLabel:L,namePlaceholder:O,isRequiredLabel:M,successMessageText:w,onFormClose:$,onFormOpen:ne,onSubmitError:k,onSubmitSuccess:N}}setupOnce(){if(An())try{this._cleanupWidgetIfExists();let{autoInject:t}=this.options;if(!t)return;this._createWidget(this.options)}catch(t){yn&&h.error(t)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(t,n){try{let r=pp(this.options,n||{});return this._ensureShadowHost(r,({shadow:o})=>{let i=typeof t=="string"?ts.querySelector(t):typeof t.addEventListener=="function"?t:null;if(!i)return yn&&h.error("[Feedback] Unable to attach to target element"),null;let s=gp({shadow:o,options:r,attachTo:i});return this._widgets.add(s),this._widget||(this._widget=s),s})}catch(r){return yn&&h.error(r),null}}createWidget(t){try{return this._createWidget(pp(this.options,t||{}))}catch(n){return yn&&h.error(n),null}}removeWidget(t){if(!t)return!1;try{if(this._widgets.has(t))return t.removeActor(),t.removeDialog(),this._widgets.delete(t),this._widget===t&&(this._widget=null),!0}catch(n){yn&&h.error(n)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();let t=ts.querySelector(`#${this.options.id}`);t&&t.remove()}_createWidget(t){return this._ensureShadowHost(t,({shadow:n})=>{let r=gp({shadow:n,options:t});return!this._hasInsertedActorStyles&&r.actor&&(n.appendChild(Wb(ts)),this._hasInsertedActorStyles=!0),this._widgets.add(r),this._widget||(this._widget=r),r})}_ensureShadowHost(t,n){let r=!1;if(!this._shadow||!this._host){let{id:i,colorScheme:s,themeLight:a,themeDark:c}=t,{shadow:u,host:l}=qb({id:i,colorScheme:s,themeLight:a,themeDark:c});this._shadow=u,this._host=l,r=!0}this._host.dataset.sentryFeedbackColorscheme=t.colorScheme;let o=n({shadow:this._shadow,host:this._host});return r&&ts.body.appendChild(this._host),o}};ho.__initStatic();f();f();var bp="CaptureConsole",sT=(e={})=>{let t=e.levels||Qt;return{name:bp,setupOnce(){},setup(n){"console"in C&&_r(({args:r,level:o})=>{x()!==n||!t.includes(o)||cT(r,o)})}}},Fc=sT,aT=D(bp,Fc);function cT(e,t){let n={level:xr(t),extra:{arguments:e}};De(r=>{if(r.addEventProcessor(s=>(s.logger="console",Ue(s,{handled:!1,type:"console"}),s)),t==="assert"&&e[0]===!1){let s=`Assertion failed: ${Xt(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),cn(s,n);return}let o=e.find(s=>s instanceof Error);if(t==="error"&&o){wt(o,n);return}let i=Xt(e," ");cn(i,n)})}f();var Tp="Debug",uT=(e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:Tp,setupOnce(){},setup(n){n.on&&n.on("beforeSendEvent",(r,o)=>{if(t.debugger)debugger;Re(()=>{t.stringify?(console.log(JSON.stringify(r,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(r),o&&Object.keys(o).length&&console.log(o))})})}}},Bc=uT,lT=D(Tp,Bc);f();f();var At=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var xp="Dedupe",dT=()=>{let e;return{name:xp,setupOnce(){},processEvent(t){if(t.type)return t;try{if(pT(t,e))return At&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Hc=dT,fT=D(xp,Hc);function pT(e,t){return t?!!(mT(e,t)||hT(e,t)):!1}function mT(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Cp(e,t)||!wp(e,t))}function hT(e,t){let n=Ip(t),r=Ip(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Cp(e,t)||!wp(e,t))}function wp(e,t){let n=vp(e),r=vp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Cp(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Ip(e){return e.exception&&e.exception.values&&e.exception.values[0]}function vp(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}f();var Rp="ExtraErrorData",gT=(e={})=>{let t=e.depth||3,n=e.captureErrorCause||!1;return{name:Rp,setupOnce(){},processEvent(r,o){return yT(r,o,t,n)}}},Uc=gT,_T=D(Rp,Uc);function yT(e,t={},n,r){if(!t.originalException||!lt(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,i=ST(t.originalException,r);if(i){let s={...e.contexts},a=Ee(i,n);return Fe(a)&&(ke(a,"__sentry_skip_normalization__",!0),s[o]=a),{...e,contexts:s}}return e}function ST(e,t){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(let o of Object.keys(e)){if(n.indexOf(o)!==-1)continue;let i=e[o];r[o]=lt(i)?i.toString():i}if(t&&e.cause!==void 0&&(r.cause=lt(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){let o=e.toJSON();for(let i of Object.keys(o)){let s=o[i];r[i]=lt(s)?s.toString():s}}return r}catch(n){At&&h.error("Unable to extract extra data from the Error object:",n)}return null}f();var ET=C,Ap="ReportingObserver",kp=new WeakMap,bT=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(r){if(kp.has(x()))for(let o of r)De(i=>{i.setExtra("url",o.url);let s=`ReportingObserver [${o.type}]`,a="No details available";if(o.body){let c={};for(let u in o.body)c[u]=o.body[u];if(i.setExtra("body",c),o.type==="crash"){let u=o.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=o.body.message||a}cn(`${s}: ${a}`)})}return{name:Ap,setupOnce(){if(!Is())return;new ET.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){kp.set(r,!0)}}},$c=bT,TT=D(Ap,$c);f();var Op="RewriteFrames",IT=(e={})=>{let t=e.root,n=e.prefix||"app:///",r=e.iteratee||(s=>{if(!s.filename)return s;let a=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),c=/^\//.test(s.filename);if(a||c){let u=a?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,l=t?Rs(t,u):ks(u);s.filename=`${n}${l}`}return s});function o(s){try{return{...s,exception:{...s.exception,values:s.exception.values.map(a=>({...a,...a.stacktrace&&{stacktrace:i(a.stacktrace)}}))}}}catch{return s}}function i(s){return{...s,frames:s&&s.frames&&s.frames.map(a=>r(a))}}return{name:Op,setupOnce(){},processEvent(s){let a=s;return s.exception&&Array.isArray(s.exception.values)&&(a=o(a)),a}}},Gc=IT,vT=D(Op,Gc);f();var Mp="SessionTiming",xT=()=>{let e=Date.now();return{name:Mp,setupOnce(){},processEvent(t){let n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}},Wc=xT,wT=D(Mp,Wc);f();var Np="HttpClient",CT=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Np,setupOnce(){},setup(n){PT(n,t),FT(n,t)}}},zc=CT,RT=D(Np,zc);function kT(e,t,n,r){if(Lp(e,n.status,n.url)){let o=BT(t,r),i,s,a,c;Fp()&&([{headers:i,cookies:a},{headers:s,cookies:c}]=[{cookieHeader:"Cookie",obj:o},{cookieHeader:"Set-Cookie",obj:n}].map(({cookieHeader:l,obj:d})=>{let p=MT(d.headers),m;try{let g=p[l]||p[l.toLowerCase()]||void 0;g&&(m=Dp(g))}catch{At&&h.log(`Could not extract cookies from header ${l}`)}return{headers:p,cookies:m}}));let u=Pp({url:o.url,method:o.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c});Nt(u)}}function AT(e,t,n,r){if(Lp(e,t.status,t.responseURL)){let o,i,s;if(Fp()){try{let c=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;c&&(i=Dp(c))}catch{At&&h.log("Could not extract cookies from response headers")}try{s=NT(t)}catch{At&&h.log("Could not extract headers from response")}o=r}let a=Pp({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:s,responseCookies:i});Nt(a)}}function OT(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Dp(e){return e.split("; ").reduce((t,n)=>{let[r,o]=n.split("=");return t[r]=o,t},{})}function MT(e){let t={};return e.forEach((n,r)=>{t[r]=n}),t}function NT(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
350
- `).reduce((n,r)=>{let[o,i]=r.split(": ");return n[o]=i,n},{}):{}}function DT(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function LT(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function PT(e,t){br()&&Tt(n=>{if(x()!==e)return;let{response:r,args:o}=n,[i,s]=o;r&&kT(t,i,r,s)})}function FT(e,t){"XMLHttpRequest"in C&&It(n=>{if(x()!==e)return;let r=n.xhr,o=r[Ne];if(!o)return;let{method:i,request_headers:s}=o;try{AT(t,r,i,s)}catch(a){At&&h.warn("Error while extracting response event form XHR response",a)}})}function Lp(e,t,n){return LT(e.failedRequestStatusCodes,t)&&DT(e.failedRequestTargets,n)&&!zr(n,x())}function Pp(e){let t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:OT(e.responseHeaders)}}};return Ue(n,{type:"http.client",handled:!1}),n}function BT(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function Fp(){let e=x();return e?!!e.getOptions().sendDefaultPii:!1}f();var jc=C,HT=7,Bp="ContextLines",UT=(e={})=>{let t=e.frameContextLines!=null?e.frameContextLines:HT;return{name:Bp,setupOnce(){},processEvent(n){return GT(n,t)}}},qc=UT,$T=D(Bp,qc);function GT(e,t){let n=jc.document,r=jc.location&&Os(jc.location.href);if(!n||!r)return e;let o=e.exception&&e.exception.values;if(!o||!o.length)return e;let i=n.documentElement.innerHTML;if(!i)return e;let s=["<!DOCTYPE html>","<html>",...i.split(`
351
- `),"</html>"];return o.forEach(a=>{let c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>WT(u,s,r,t)))}),e}function WT(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Es(t,e,r),e}f();function go(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function zT(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=go(n);return o=>r.then(i=>o(i.transaction(t,"readwrite").objectStore(t)))}function Hp(e){return go(e.getAllKeys())}function jT(e,t,n){return e(r=>Hp(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),go(r.transaction)}))}function qT(e){return e(t=>Hp(t).then(n=>{if(n.length!==0)return go(t.get(n[0])).then(r=>(t.delete(n[0]),go(t.transaction).then(()=>r)))}))}function YT(e){let t;function n(){return t==null&&(t=zT(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async r=>{try{let o=await Ar(r,e.textEncoder);await jT(n(),o,e.maxQueueSize||30)}catch{}},pop:async()=>{try{let r=await qT(n());if(r)return Fs(r,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch{}}}}function VT(e){return t=>e({...t,createStore:YT})}function KT(e){return VT(la(e))}f();f();var Up=1e6,ns=String(0),JT="main",Wp="",zp="",jp="",Yc=A.navigator&&A.navigator.userAgent||"",qp="",XT=A.navigator&&A.navigator.language||A.navigator&&A.navigator.languages&&A.navigator.languages[0]||"";function ZT(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}var $p=A.navigator&&A.navigator.userAgentData;ZT($p)&&$p.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Wp=e.platform||"",jp=e.architecture||"",qp=e.model||"",zp=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){let t=e.fullVersionList[e.fullVersionList.length-1];Yc=`${t.brand} ${t.version}`}}).catch(e=>{});function QT(e){return!("thread_metadata"in e)}function eI(e){return QT(e)?rI(e):e}function tI(e){let t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&F&&h.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function nI(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let o=tI(r),i=eI(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Date.now()),a=typeof r.timestamp=="number"?r.timestamp*1e3:Date.now();return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||ot,runtime:{name:"javascript",version:A.navigator.userAgent},os:{name:Wp,version:zp,build_number:Yc},device:{locale:XT,model:qp,manufacturer:Yc,architecture:jp,is_emulator:!1},debug_meta:{images:oI(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||H(),trace_id:o,active_thread_id:ns,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function rs(e){return e.op==="pageload"}function rI(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[ns]:{name:JT}}};if(!e.samples.length)return r;let o=e.samples[0].timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:re||0,s=i-(re||i);for(let a=0;a<e.samples.length;a++){let c=e.samples[a];if(c.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((c.timestamp+s-o)*Up).toFixed(0),stack_id:t,thread_id:ns};continue}let u=e.stacks[c.stackId],l=[];for(;u;){l.push(u.frameId);let p=e.frames[u.frameId];r.frames[u.frameId]===void 0&&(r.frames[u.frameId]={function:p.name,abs_path:typeof p.resourceId=="number"?e.resources[p.resourceId]:void 0,lineno:p.line,colno:p.column}),u=u.parentId===void 0?void 0:e.stacks[u.parentId]}let d={elapsed_since_start_ns:((c.timestamp+s-o)*Up).toFixed(0),stack_id:n,thread_id:ns};r.stacks[n]=l,r.samples[a]=d,n++}return r}function Yp(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:"profile"},n]);return e}function Vp(e){let t=[];return rt(e,(n,r)=>{if(r==="transaction")for(let o=1;o<n.length;o++){let i=n[o];i&&i.contexts&&i.contexts.profile&&i.contexts.profile.profile_id&&t.push(n[o])}}),t}var Gp=new WeakMap;function oI(e){let t=C._sentryDebugIds;if(!t)return[];let n=x(),r=n&&n.getOptions(),o=r&&r.stackParser;if(!o)return[];let i,s=Gp.get(o);s?i=s:(i=new Map,Gp.set(o,i));let a=Object.keys(t).reduce((u,l)=>{let d,p=i.get(l);p?d=p:(d=o(l),i.set(l,d));for(let m=d.length-1;m>=0;m--){let g=d[m],E=g&&g.filename;if(g&&E){u[E]=t[l];break}}return u},{}),c=[];for(let u of e)u&&a[u]&&c.push({type:"sourcemap",code_file:u,debug_id:a[u]});return c}function iI(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(F&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(F&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function sI(e){return e.samples.length<2?(F&&h.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(F&&h.log("[Profiling] Discarding profile because it contains no frames"),!1)}var Kp=!1,Vc=3e4;function aI(e){return typeof e=="function"}function Jp(){let e=A.Profiler;if(!aI(e)){F&&h.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=10,n=Math.floor(Vc/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{F&&(h.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),h.log("[Profiling] Disabling profiling for current user session.")),Kp=!0}}function _o(e){if(Kp)return F&&h.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return F&&h.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let t=x(),n=t&&t.getOptions();if(!n)return F&&h.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return iI(r)?r?(r===!0?!0:Math.random()<r)?!0:(F&&h.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(F&&h.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(F&&h.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function Xp(e,t,n,r){return sI(n)?nI(e,t,n,r):null}var En=new Map;function Zp(){return En.size}function Qp(e){let t=En.get(e);return t&&En.delete(e),t}function em(e,t){if(En.set(e,t),En.size>30){let n=En.keys().next().value;En.delete(n)}}function cI(e){return e?_o(e)?os(e):e:(F&&h.log("[Profiling] Transaction is undefined, skipping profiling"),e)}function os(e){let t;rs(e)&&(t=Ie()*1e3);let n=Jp();if(!n)return e;F&&h.log(`[Profiling] started profiling transaction: ${P(e).description}`);let r=H();async function o(){return!e||!n?null:n.stop().then(c=>(i&&(A.clearTimeout(i),i=void 0),F&&h.log(`[Profiling] stopped profiling of transaction: ${P(e).description}`),c?(em(r,c),null):(F&&h.log(`[Profiling] profiler returned null profile for: ${P(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(c=>(F&&h.log("[Profiling] error while stopping profiler:",c),null))}let i=A.setTimeout(()=>{F&&h.log("[Profiling] max profile duration elapsed, stopping profiling for:",P(e).description),o()},Vc),s=e.end.bind(e);function a(){return e?(o().then(()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),s()},()=>{s()}),e):s()}return e.end=a,e}f();var tm="BrowserProfiling",uI=()=>({name:tm,setupOnce(){},setup(e){let n=Y().getTransaction();if(n&&rs(n)&&_o(n)&&os(n),typeof e.on!="function"){h.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}e.on("startTransaction",r=>{_o(r)&&os(r)}),e.on("beforeEnvelope",r=>{if(!Zp())return;let o=Vp(r);if(!o.length)return;let i=[];for(let s of o){let a=s&&s.contexts,c=a&&a.profile&&a.profile.profile_id,u=a&&a.profile&&a.profile.start_timestamp;if(typeof c!="string"){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!c){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}a&&a.profile&&delete a.profile;let l=Qp(c);if(!l){F&&h.log(`[Profiling] Could not retrieve profile for transaction: ${c}`);continue}let d=Xp(c,u,l,s);d&&i.push(d)}Yp(r,i)})}}),nm=uI,lI=D(tm,nm);var rm={};A.Sentry&&A.Sentry.Integrations&&(rm=A.Sentry.Integrations);var kP={...rm,...Gl,...ja};export{Ba as Breadcrumbs,Xr as BrowserClient,lI as BrowserProfilingIntegration,Si as BrowserTracing,Ua as Dedupe,ho as Feedback,ii as FunctionToString,$a as GlobalHandlers,Ga as HttpContext,Dn as Hub,oi as InboundFilters,kP as Integrations,Wa as LinkedErrors,Ml as ModuleMetadata,lo as Replay,Rb as ReplayCanvas,dn as SDK_VERSION,fn as SEMANTIC_ATTRIBUTE_SENTRY_OP,at as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,mt as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,ge as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,st as Scope,za as TryCatch,A as WINDOW,Ye as addBreadcrumb,Qo as addEventProcessor,Ho as addGlobalEventProcessor,ul as addIntegration,Hn as addTracingExtensions,Ii as breadcrumbsIntegration,Ci as browserApiErrorsIntegration,nm as browserProfilingIntegration,Td as browserTracingIntegration,Fc as captureConsoleIntegration,Nt as captureEvent,wt as captureException,cn as captureMessage,Pr as captureSession,ry as captureUserFeedback,xd as chromeStackLineParser,$u as close,Ou as configureScope,qc as contextLinesIntegration,el as continueTrace,$n as createTransport,Da as createUserFeedbackEnvelope,Bc as debugIntegration,Hc as dedupeIntegration,zd as defaultIntegrations,Ut as defaultRequestInstrumentationOptions,Rd as defaultStackLineParsers,Fa as defaultStackParser,zo as endSession,Ma as eventFromException,Na as eventFromMessage,Ei as exceptionFromError,Uc as extraErrorDataIntegration,Yu as extractTraceparentData,iT as feedbackIntegration,Uu as flush,Q_ as forceLoad,qr as functionToStringIntegration,wd as geckoStackLineParser,Ft as getActiveSpan,_e as getActiveTransaction,x as getClient,z as getCurrentHub,Y as getCurrentScope,jd as getDefaultIntegrations,Br as getHubFromCarrier,hb as getReplay,qo as getSpanStatusFromHttpCode,vi as globalHandlersIntegration,zc as httpClientIntegration,xi as httpContextIntegration,jr as inboundFiltersIntegration,X_ as init,jn as instrumentOutgoingRequests,Wu as isInitialized,Gu as lastEventId,wi as linkedErrorsIntegration,KT as makeBrowserOfflineTransport,La as makeFetchTransport,jo as makeMain,vl as makeMultiplexedTransport,Pa as makeXHRTransport,$l as metrics,pa as moduleMetadataIntegration,ey as onLoad,cI as onProfilingStartRouteTransaction,E_ as opera10StackLineParser,I_ as opera11StackLineParser,wl as parameterize,up as replayCanvasIntegration,pb as replayIntegration,$c as reportingObserverIntegration,Gc as rewriteFramesIntegration,Sp as sendFeedback,Wc as sessionTimingIntegration,Wo as setContext,ca as setCurrentClient,Nu as setExtra,Mu as setExtras,Pt as setHttpStatus,Zo as setMeasurement,Lu as setTag,Du as setTags,Pu as setUser,Z_ as showReportDialog,Ju as spanStatusfromHttpCode,wa as startBrowserTracingNavigationSpan,xa as startBrowserTracingPageLoadSpan,Ln as startInactiveSpan,Lr as startSession,Zu as startSpan,Qu as startSpanManual,Hu as startTransaction,Xu as trace,Cd as winjsStackLineParser,Bu as withActiveSpan,Fu as withIsolationScope,De as withScope,ty as wrap};
352
- //# sourceMappingURL=esm-GVPPSDDL.js.map