@sentry/browser 6.18.2 → 6.19.0
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.
- package/bundles/bundle.debug.min.js +3 -0
- package/bundles/bundle.debug.min.js.map +1 -0
- package/bundles/bundle.es6.debug.min.js +3 -0
- package/bundles/bundle.es6.debug.min.js.map +1 -0
- package/{build → bundles}/bundle.es6.js +172 -181
- package/bundles/bundle.es6.js.map +1 -0
- package/bundles/bundle.es6.min.js +3 -0
- package/bundles/bundle.es6.min.js.map +1 -0
- package/{build → bundles}/bundle.js +198 -202
- package/bundles/bundle.js.map +1 -0
- package/bundles/bundle.min.js +3 -0
- package/bundles/bundle.min.js.map +1 -0
- package/dist/backend.d.ts.map +1 -1
- package/dist/backend.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +1 -1
- package/dist/eventbuilder.d.ts.map +1 -1
- package/dist/eventbuilder.js.map +1 -1
- package/dist/exports.d.ts.map +1 -1
- package/dist/exports.js.map +1 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +2 -6
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/breadcrumbs.d.ts.map +1 -1
- package/dist/integrations/breadcrumbs.js.map +1 -1
- package/dist/integrations/dedupe.d.ts.map +1 -1
- package/dist/integrations/dedupe.js +1 -1
- package/dist/integrations/dedupe.js.map +1 -1
- package/dist/integrations/globalhandlers.d.ts.map +1 -1
- package/dist/integrations/globalhandlers.js +1 -3
- package/dist/integrations/globalhandlers.js.map +1 -1
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/linkederrors.d.ts.map +1 -1
- package/dist/integrations/linkederrors.js.map +1 -1
- package/dist/integrations/trycatch.d.ts.map +1 -1
- package/dist/integrations/trycatch.js +26 -21
- package/dist/integrations/trycatch.js.map +1 -1
- package/dist/integrations/useragent.d.ts.map +1 -1
- package/dist/integrations/useragent.js.map +1 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +3 -9
- package/dist/sdk.js.map +1 -1
- package/dist/stack-parsers.d.ts.map +1 -1
- package/dist/stack-parsers.js.map +1 -1
- package/dist/transports/base.d.ts +6 -6
- package/dist/transports/base.d.ts.map +1 -1
- package/dist/transports/base.js +17 -68
- package/dist/transports/base.js.map +1 -1
- package/dist/transports/fetch.d.ts.map +1 -1
- package/dist/transports/fetch.js +2 -0
- package/dist/transports/fetch.js.map +1 -1
- package/dist/transports/index.d.ts.map +1 -1
- package/dist/transports/index.js.map +1 -1
- package/dist/transports/utils.d.ts.map +1 -1
- package/dist/transports/utils.js +1 -2
- package/dist/transports/utils.js.map +1 -1
- package/dist/transports/xhr.d.ts.map +1 -1
- package/dist/transports/xhr.js +2 -0
- package/dist/transports/xhr.js.map +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js.map +1 -1
- package/esm/backend.d.ts.map +1 -1
- package/esm/backend.js.map +1 -1
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +2 -2
- package/esm/client.js.map +1 -1
- package/esm/eventbuilder.d.ts.map +1 -1
- package/esm/eventbuilder.js.map +1 -1
- package/esm/exports.d.ts.map +1 -1
- package/esm/exports.js.map +1 -1
- package/esm/helpers.d.ts.map +1 -1
- package/esm/helpers.js +2 -6
- package/esm/helpers.js.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/integrations/breadcrumbs.d.ts.map +1 -1
- package/esm/integrations/breadcrumbs.js.map +1 -1
- package/esm/integrations/dedupe.d.ts.map +1 -1
- package/esm/integrations/dedupe.js +2 -2
- package/esm/integrations/dedupe.js.map +1 -1
- package/esm/integrations/globalhandlers.d.ts.map +1 -1
- package/esm/integrations/globalhandlers.js +1 -3
- package/esm/integrations/globalhandlers.js.map +1 -1
- package/esm/integrations/index.d.ts.map +1 -1
- package/esm/integrations/index.js.map +1 -1
- package/esm/integrations/linkederrors.d.ts.map +1 -1
- package/esm/integrations/linkederrors.js.map +1 -1
- package/esm/integrations/trycatch.d.ts.map +1 -1
- package/esm/integrations/trycatch.js +26 -21
- package/esm/integrations/trycatch.js.map +1 -1
- package/esm/integrations/useragent.d.ts.map +1 -1
- package/esm/integrations/useragent.js.map +1 -1
- package/esm/sdk.d.ts.map +1 -1
- package/esm/sdk.js +3 -9
- package/esm/sdk.js.map +1 -1
- package/esm/stack-parsers.d.ts.map +1 -1
- package/esm/stack-parsers.js.map +1 -1
- package/esm/transports/base.d.ts +6 -6
- package/esm/transports/base.d.ts.map +1 -1
- package/esm/transports/base.js +19 -70
- package/esm/transports/base.js.map +1 -1
- package/esm/transports/fetch.d.ts.map +1 -1
- package/esm/transports/fetch.js +2 -0
- package/esm/transports/fetch.js.map +1 -1
- package/esm/transports/index.d.ts.map +1 -1
- package/esm/transports/index.js.map +1 -1
- package/esm/transports/utils.d.ts.map +1 -1
- package/esm/transports/utils.js +1 -2
- package/esm/transports/utils.js.map +1 -1
- package/esm/transports/xhr.d.ts.map +1 -1
- package/esm/transports/xhr.js +2 -0
- package/esm/transports/xhr.js.map +1 -1
- package/esm/version.d.ts.map +1 -1
- package/esm/version.js.map +1 -1
- package/package.json +15 -13
- package/types/backend.d.ts +43 -0
- package/types/backend.d.ts.map +1 -0
- package/types/client.d.ts +33 -0
- package/types/client.d.ts.map +1 -0
- package/types/eventbuilder.d.ts +39 -0
- package/types/eventbuilder.d.ts.map +1 -0
- package/types/exports.d.ts +10 -0
- package/types/exports.d.ts.map +1 -0
- package/types/helpers.d.ts +52 -0
- package/types/helpers.d.ts.map +1 -0
- package/types/index.d.ts +16 -0
- package/types/index.d.ts.map +1 -0
- package/types/integrations/breadcrumbs.d.ts +47 -0
- package/types/integrations/breadcrumbs.d.ts.map +1 -0
- package/types/integrations/dedupe.d.ts +21 -0
- package/types/integrations/dedupe.d.ts.map +1 -0
- package/types/integrations/globalhandlers.d.ts +30 -0
- package/types/integrations/globalhandlers.d.ts.map +1 -0
- package/types/integrations/index.d.ts +7 -0
- package/types/integrations/index.d.ts.map +1 -0
- package/types/integrations/linkederrors.d.ts +42 -0
- package/types/integrations/linkederrors.d.ts.map +1 -0
- package/types/integrations/trycatch.d.ts +33 -0
- package/types/integrations/trycatch.d.ts.map +1 -0
- package/types/integrations/useragent.d.ts +17 -0
- package/types/integrations/useragent.d.ts.map +1 -0
- package/types/sdk.d.ts +112 -0
- package/types/sdk.d.ts.map +1 -0
- package/types/stack-parsers.d.ts +7 -0
- package/types/stack-parsers.d.ts.map +1 -0
- package/types/transports/base.d.ts +65 -0
- package/types/transports/base.d.ts.map +1 -0
- package/types/transports/fetch.d.ts +17 -0
- package/types/transports/fetch.d.ts.map +1 -0
- package/types/transports/index.d.ts +4 -0
- package/types/transports/index.d.ts.map +1 -0
- package/types/transports/utils.d.ts +48 -0
- package/types/transports/utils.d.ts.map +1 -0
- package/types/transports/xhr.d.ts +11 -0
- package/types/transports/xhr.d.ts.map +1 -0
- package/types/version.d.ts +2 -0
- package/types/version.d.ts.map +1 -0
- package/build/bundle.es6.js.map +0 -1
- package/build/bundle.es6.min.js +0 -3
- package/build/bundle.es6.min.js.map +0 -1
- package/build/bundle.js.map +0 -1
- package/build/bundle.min.js +0 -3
- package/build/bundle.min.js.map +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! @sentry/browser 6.19.0 (b93e8d4) | https://github.com/getsentry/sentry-javascript */
|
|
2
|
+
var Sentry=function(t){var e;t.Severity=void 0,(e=t.Severity||(t.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical";const n={};function r(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}const i=Object.prototype.toString;function s(t){switch(i.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(t,Error)}}function o(t,e){return i.call(t)===`[object ${e}]`}function c(t){return o(t,"ErrorEvent")}function u(t){return o(t,"DOMError")}function a(t){return o(t,"String")}function h(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function f(t){return o(t,"Object")}function l(t){return"undefined"!=typeof Event&&b(t,Event)}function d(t){return"undefined"!=typeof Element&&b(t,Element)}function p(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function b(t,e){try{return t instanceof e}catch(t){return!1}}function y(t,e){try{let n=t;const r=5,i=80,s=[];let o=0,c=0;const u=" > ",a=u.length;let h;for(;n&&o++<r&&(h=v(n,e),!("html"===h||o>1&&c+s.length*a+h.length>=i));)s.push(h),c+=h.length,n=n.parentNode;return s.reverse().join(u)}catch(t){return"<unknown>"}}function v(t,e){const n=t,r=[];let i,s,o,c,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const h=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(h&&h.length)h.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&a(i))for(s=i.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const f=["type","name","title","alt"];for(u=0;u<f.length;u++)o=f[u],c=n.getAttribute(o),c&&r.push(`[${o}="${c}"]`);return r.join("")}const m=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(const n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t});class O extends Error{constructor(t){super(t),this.message=t,this.name=new.target.prototype.constructor.name,m(this,new.target.prototype)}}const g=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function j(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:c,publicKey:u}=t;return`${c}://${u}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function w(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function x(t){return"string"==typeof t?function(t){const e=g.exec(t);if(!e)throw new O(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",s,o="",c]=e.slice(1);let u="",a=c;const h=a.split("/");if(h.length>1&&(u=h.slice(0,-1).join("/"),a=h.pop()),a){const t=a.match(/^\d+/);t&&(a=t[0])}return w({host:s,pass:i,path:u,projectId:a,port:o,protocol:n,publicKey:r})}(t):w(t)}const E=["fatal","error","warning","log","info","debug","critical"];r();const _=["debug","info","warn","error","log","assert"];function S(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[];for(const i of t.split("\n").slice(n))for(const t of e){const e=t(i);if(e){r.push(e);break}}return function(t){if(!t.length)return[];let e=t;const n=e[0].function||"",r=e[e.length-1].function||"";-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1));-1!==r.indexOf("sentryWrapped")&&(e=e.slice(0,-1));return e.slice(0,50).map((t=>Object.assign(Object.assign({},t),{filename:t.filename||e[0].filename,function:t.function||"?"}))).reverse()}(r)}}const $="<anonymous>";function k(t){try{return t&&"function"==typeof t&&t.name||$}catch(t){return $}}function T(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.substr(0,e)}...`}function D(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function R(t,e){return!!a(t)&&(o(e,"RegExp")?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}function M(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{N(i,r)}catch(t){}t[e]=i}function I(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function N(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,I(t,"__sentry_original__",e)}function q(t){return t.__sentry_original__}function U(t){if(s(t)){const e=t,n={message:e.message,name:e.name,stack:e.stack};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}if(l(t)){const e=t,n={};n.type=e.type;try{n.target=d(e.target)?y(e.target):Object.prototype.toString.call(e.target)}catch(t){n.target="<unknown>"}try{n.currentTarget=d(e.currentTarget)?y(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){n.currentTarget="<unknown>"}"undefined"!=typeof CustomEvent&&b(t,CustomEvent)&&(n.detail=e.detail);for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}return t}function A(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function C(t,e=3,n=102400){const r=B(t,e);return A(r)>n?C(t,e-1,n):r}function L(t,e){return"domain"===e&&t&&"object"==typeof t&&t.t?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":f(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${k(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:t;var n}function F(t,e,n=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[s,o]=i;if(0===n)return function(t){if("string"==typeof t)return t;const e=Object.prototype.toString.call(t);if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";const n=L(t);return h(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();const c=L(e,t);if(h(c))return c;const u=U(e),a=Array.isArray(e)?[]:{};if(s(e))return"[Circular ~]";let f=0;for(const t in u){if(!Object.prototype.hasOwnProperty.call(u,t))continue;if(f>=r){a[t]="[MaxProperties ~]";break}f+=1;const e=u[t];a[t]=F(t,e,n-1,r,i)}return o(e),a}function B(t,e=1/0,n=1/0){try{return F("",t,e,n)}catch(t){return"**non-serializable**"}}function P(t,e=40){const n=Object.keys(U(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return T(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:T(r,e)}return""}function H(t){if(f(t)){const e=t,n={};for(const t of Object.keys(e))void 0!==e[t]&&(n[t]=H(e[t]));return n}return Array.isArray(t)?t.map(H):t}function z(){if(!("fetch"in r()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function X(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function J(){if(!z())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}const W=r(),K={},G={};function V(t){if(!G[t])switch(G[t]=!0,t){case"console":!function(){if(!("console"in W))return;_.forEach((function(t){t in W.console&&M(W.console,t,(function(e){return function(...n){Y("console",{args:n,level:t}),e&&e.apply(W.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in W))return;const t=Y.bind(null,"dom"),e=it(t,!0);W.document.addEventListener("click",e,!1),W.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=W[e]&&W[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(M(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){const r=it(t);o.handler=r,e.call(this,n,r,i)}o.refCount+=1}catch(t){}return e.call(this,n,r,i)}})),M(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[e];s&&(s.refCount-=1,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in W))return;const t=XMLHttpRequest.prototype;M(t,"open",(function(t){return function(...e){const n=this,r=e[1],i=n.__sentry_xhr__={method:a(e[0])?e[0].toUpperCase():e[0],url:e[1]};a(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const s=function(){if(4===n.readyState){try{i.status_code=n.status}catch(t){}Y("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?M(n,"onreadystatechange",(function(t){return function(...e){return s(),t.apply(n,e)}})):n.addEventListener("readystatechange",s),t.apply(n,e)}})),M(t,"send",(function(t){return function(...e){return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),Y("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!function(){if(!z())return!1;const t=r();if(X(t.fetch))return!0;let e=!1;const n=t.document;if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(e=X(t.contentWindow.fetch)),n.head.removeChild(t)}catch(t){}return e}())return;M(W,"fetch",(function(t){return function(...e){const n={args:e,fetchData:{method:Z(e),url:tt(e)},startTimestamp:Date.now()};return Y("fetch",Object.assign({},n)),t.apply(W,e).then((t=>(Y("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),response:t})),t)),(t=>{throw Y("fetch",Object.assign(Object.assign({},n),{endTimestamp:Date.now(),error:t})),t}))}}))}();break;case"history":!function(){if(!function(){const t=r(),e=t.chrome,n=e&&e.app&&e.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!n&&i}())return;const t=W.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=et,e=String(n);et=e,Y("history",{from:t,to:e})}return t.apply(this,e)}}W.onpopstate=function(...e){const n=W.location.href,r=et;if(et=n,Y("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},M(W.history,"pushState",e),M(W.history,"replaceState",e)}();break;case"error":st=W.onerror,W.onerror=function(t,e,n,r,i){return Y("error",{column:r,error:i,line:n,msg:t,url:e}),!!st&&st.apply(this,arguments)};break;case"unhandledrejection":ot=W.onunhandledrejection,W.onunhandledrejection=function(t){return Y("unhandledrejection",t),!ot||ot.apply(this,arguments)};break;default:return}}function Q(t,e){K[t]=K[t]||[],K[t].push(e),V(t)}function Y(t,e){if(t&&K[t])for(const n of K[t]||[])try{n(e)}catch(t){}}function Z(t=[]){return"Request"in W&&b(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function tt(t=[]){return"string"==typeof t[0]?t[0]:"Request"in W&&b(t[0],Request)?t[0].url:String(t[0])}let et;let nt,rt;function it(t,e=!1){return n=>{if(!n||rt===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===nt||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(rt,n))&&(t({event:n,name:r,global:e}),rt=n),clearTimeout(nt),nt=W.setTimeout((()=>{nt=void 0}),1e3)}}let st=null;let ot=null;function ct(){const t=r(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){const t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=t=>{let e=t.toString(16);for(;e.length<4;)e=`0${e}`;return e};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function ut(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function at(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ht(t){const{message:e,event_id:n}=t;if(e)return e;const r=at(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ft(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function lt(t,e){const n=at(t);if(!n)return;const r=n.mechanism;if(n.mechanism=Object.assign(Object.assign(Object.assign({},{type:"generic",handled:!0}),r),e),e&&"data"in e){const t=Object.assign(Object.assign({},r&&r.data),e.data);n.mechanism.data=t}}function dt(t){if(t&&t.__sentry_captured__)return!0;try{I(t,"__sentry_captured__",!0)}catch(t){}return!1}function pt(t){return new yt((e=>{e(t)}))}function bt(t){return new yt(((e,n)=>{n(t)}))}class yt{constructor(t){this.i=0,this.o=[],this.u=t=>{this.h(1,t)},this.l=t=>{this.h(2,t)},this.h=(t,e)=>{0===this.i&&(p(e)?e.then(this.u,this.l):(this.i=t,this.p=e,this.v()))},this.v=()=>{if(0===this.i)return;const t=this.o.slice();this.o=[],t.forEach((t=>{t[0]||(1===this.i&&t[1](this.p),2===this.i&&t[2](this.p),t[0]=!0)}))};try{t(this.u,this.l)}catch(t){this.l(t)}}then(t,e){return new yt(((n,r)=>{this.o.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this.v()}))}catch(t){return this.then((t=>t),t)}finally(t){return new yt(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}}function vt(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return bt(new O("Not adding Promise due to buffer limit reached."));const i=r();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new yt(((n,r)=>{let i=e.length;if(!i)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{pt(t).then((()=>{--i||(clearTimeout(s),n(!0))}),r)}))}))}}}function mt(e){return"warn"===e?t.Severity.Warning:function(t){return-1!==E.indexOf(t)}(e)?e:t.Severity.Log}const Ot={nowSeconds:()=>Date.now()/1e3};const gt=function(){const{performance:t}=r();if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),jt=void 0===gt?Ot:{nowSeconds:()=>(gt.timeOrigin+gt.now())/1e3},wt=Ot.nowSeconds.bind(Ot),xt=jt.nowSeconds.bind(jt);function Et(t,e=[]){return[t,e]}function _t(t){const[e,n]=t,r=JSON.stringify(e);return n.reduce(((t,e)=>{const[n,r]=e,i=h(r)?String(r):JSON.stringify(r);return`${t}\n${JSON.stringify(n)}\n${i}`}),r)}(()=>{const{performance:t}=r();if(!t||!t.now)return;const e=36e5,n=t.now(),i=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-i):e,o=s<e,c=t.timing&&t.timing.navigationStart,u="number"==typeof c?Math.abs(c+n-i):e;(o||u<e)&&(s<=u&&t.timeOrigin)})();function St(t,e){return t[e]||t.all||0}function $t(t,e,n=Date.now()){const r=Object.assign({},t),i=e["x-sentry-rate-limits"],s=e["retry-after"];if(i)for(const t of i.trim().split(",")){const e=t.split(":",2),i=parseInt(e[0],10),s=1e3*(isNaN(i)?60:i);if(e[1])for(const t of e[1].split(";"))r[t]=n+s;else r.all=n+s}else s&&(r.all=n+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}(s,n));return r}class kt{constructor(){this.m=!1,this.O=[],this.g=[],this.j=[],this._={},this.S={},this.k={},this.T={},this.D={}}static clone(t){const e=new kt;return t&&(e.j=[...t.j],e.S=Object.assign({},t.S),e.k=Object.assign({},t.k),e.T=Object.assign({},t.T),e._=t._,e.R=t.R,e.M=t.M,e.I=t.I,e.N=t.N,e.q=t.q,e.g=[...t.g],e.U=t.U),e}addScopeListener(t){this.O.push(t)}addEventProcessor(t){return this.g.push(t),this}setUser(t){return this._=t||{},this.I&&this.I.update({user:t}),this.A(),this}getUser(){return this._}getRequestSession(){return this.U}setRequestSession(t){return this.U=t,this}setTags(t){return this.S=Object.assign(Object.assign({},this.S),t),this.A(),this}setTag(t,e){return this.S=Object.assign(Object.assign({},this.S),{[t]:e}),this.A(),this}setExtras(t){return this.k=Object.assign(Object.assign({},this.k),t),this.A(),this}setExtra(t,e){return this.k=Object.assign(Object.assign({},this.k),{[t]:e}),this.A(),this}setFingerprint(t){return this.q=t,this.A(),this}setLevel(t){return this.R=t,this.A(),this}setTransactionName(t){return this.N=t,this.A(),this}setTransaction(t){return this.setTransactionName(t)}setContext(t,e){return null===e?delete this.T[t]:this.T=Object.assign(Object.assign({},this.T),{[t]:e}),this.A(),this}setSpan(t){return this.M=t,this.A(),this}getSpan(){return this.M}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this.I=t:delete this.I,this.A(),this}getSession(){return this.I}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof kt?e:this}return t instanceof kt?(this.S=Object.assign(Object.assign({},this.S),t.S),this.k=Object.assign(Object.assign({},this.k),t.k),this.T=Object.assign(Object.assign({},this.T),t.T),t._&&Object.keys(t._).length&&(this._=t._),t.R&&(this.R=t.R),t.q&&(this.q=t.q),t.U&&(this.U=t.U)):f(t)&&(t=t,this.S=Object.assign(Object.assign({},this.S),t.tags),this.k=Object.assign(Object.assign({},this.k),t.extra),this.T=Object.assign(Object.assign({},this.T),t.contexts),t.user&&(this._=t.user),t.level&&(this.R=t.level),t.fingerprint&&(this.q=t.fingerprint),t.requestSession&&(this.U=t.requestSession)),this}clear(){return this.j=[],this.S={},this.k={},this._={},this.T={},this.R=void 0,this.N=void 0,this.q=void 0,this.U=void 0,this.M=void 0,this.I=void 0,this.A(),this}addBreadcrumb(t,e){const n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;const r=Object.assign({timestamp:wt()},t);return this.j=[...this.j,r].slice(-n),this.A(),this}clearBreadcrumbs(){return this.j=[],this.A(),this}applyToEvent(t,e){if(this.k&&Object.keys(this.k).length&&(t.extra=Object.assign(Object.assign({},this.k),t.extra)),this.S&&Object.keys(this.S).length&&(t.tags=Object.assign(Object.assign({},this.S),t.tags)),this._&&Object.keys(this._).length&&(t.user=Object.assign(Object.assign({},this._),t.user)),this.T&&Object.keys(this.T).length&&(t.contexts=Object.assign(Object.assign({},this.T),t.contexts)),this.R&&(t.level=this.R),this.N&&(t.transaction=this.N),this.M){t.contexts=Object.assign({trace:this.M.getTraceContext()},t.contexts);const e=this.M.transaction&&this.M.transaction.name;e&&(t.tags=Object.assign({transaction:e},t.tags))}return this.C(t),t.breadcrumbs=[...t.breadcrumbs||[],...this.j],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this.D,this.L([...Tt(),...this.g],t,e)}setSDKProcessingMetadata(t){return this.D=Object.assign(Object.assign({},this.D),t),this}L(t,e,n,r=0){return new yt(((i,s)=>{const o=t[r];if(null===e||"function"!=typeof o)i(e);else{const c=o(Object.assign({},e),n);p(c)?c.then((e=>this.L(t,e,n,r+1).then(i))).then(null,s):this.L(t,c,n,r+1).then(i).then(null,s)}}))}A(){this.m||(this.m=!0,this.O.forEach((t=>{t(this)})),this.m=!1)}C(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this.q&&(t.fingerprint=t.fingerprint.concat(this.q)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function Tt(){const t=r();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function Dt(t){Tt().push(t)}class Rt{constructor(t){this.errors=0,this.sid=ct(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;const e=xt();this.timestamp=e,this.started=e,t&&this.update(t)}update(t={}){if(t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||xt(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:ct()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=`${t.did}`),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{const t=this.timestamp-this.started;this.duration=t>=0?t:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)}close(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()}toJSON(){return H({sid:`${this.sid}`,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?`${this.did}`:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})}}const Mt=100;class It{constructor(t,e=new kt,n=4){this.F=n,this.B=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}isOlderThan(t){return this.F<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=kt.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this.B}getStackTop(){return this.B[this.B.length-1]}captureException(t,e){const n=this.P=e&&e.event_id?e.event_id:ct();let r=e;if(!e){let e;try{throw new Error("Sentry syntheticException")}catch(t){e=t}r={originalException:t,syntheticException:e}}return this.H("captureException",t,Object.assign(Object.assign({},r),{event_id:n})),n}captureMessage(t,e,n){const r=this.P=n&&n.event_id?n.event_id:ct();let i=n;if(!n){let e;try{throw new Error(t)}catch(t){e=t}i={originalException:t,syntheticException:e}}return this.H("captureMessage",t,e,Object.assign(Object.assign({},i),{event_id:r})),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:ct();return"transaction"!==t.type&&(this.P=n),this.H("captureEvent",t,Object.assign(Object.assign({},e),{event_id:n})),n}lastEventId(){return this.P}addBreadcrumb(t,e){const{scope:n,client:i}=this.getStackTop();if(!n||!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Mt}=i.getOptions&&i.getOptions()||{};if(o<=0)return;const c=wt(),u=Object.assign({timestamp:c},t),a=s?function(t){const e=r();if(!("console"in e))return t();const n=e.console,i={};_.forEach((t=>{t in e.console&&n[t].__sentry_original__&&(i[t]=n[t],n[t]=n[t].__sentry_original__)}));const s=t();return Object.keys(i).forEach((t=>{n[t]=i[t]})),s}((()=>s(u,e))):u;null!==a&&n.addBreadcrumb(a,o)}setUser(t){const e=this.getScope();e&&e.setUser(t)}setTags(t){const e=this.getScope();e&&e.setTags(t)}setExtras(t){const e=this.getScope();e&&e.setExtras(t)}setTag(t,e){const n=this.getScope();n&&n.setTag(t,e)}setExtra(t,e){const n=this.getScope();n&&n.setExtra(t,e)}setContext(t,e){const n=this.getScope();n&&n.setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();e&&n&&t(e)}run(t){const e=qt(this);try{t(this)}finally{qt(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(t){return null}}startSpan(t){return this.X("startSpan",t)}startTransaction(t,e){return this.X("startTransaction",t,e)}traceHeaders(){return this.X("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this.J()}endSession(){const t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this.J(),e&&e.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:i,environment:s}=n&&n.getOptions()||{},o=r(),{userAgent:c}=o.navigator||{},u=new Rt(Object.assign(Object.assign(Object.assign({release:i,environment:s},e&&{user:e.getUser()}),c&&{userAgent:c}),t));if(e){const t=e.getSession&&e.getSession();t&&"ok"===t.status&&t.update({status:"exited"}),this.endSession(),e.setSession(u)}return u}J(){const{scope:t,client:e}=this.getStackTop();if(!t)return;const n=t.getSession&&t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}H(t,...e){const{scope:n,client:r}=this.getStackTop();r&&r[t]&&r[t](...e,n)}X(t,...e){const n=Nt().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e)}}function Nt(){const t=r();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function qt(t){const e=Nt(),n=At(e);return Ct(e,t),n}function Ut(){const t=Nt();var e;return(e=t)&&e.__SENTRY__&&e.__SENTRY__.hub&&!At(t).isOlderThan(4)||Ct(t,new It),At(t)}function At(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new It),t.__SENTRY__.hub}function Ct(t,e){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=e,!0)}function Lt(t,...e){const n=Ut();if(n&&n[t])return n[t](...e);throw new Error(`No hub defined or ${t} was not found on the hub, please open a bug report.`)}function captureException(t,e){return Lt("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function Ft(t){Lt("withScope",t)}function Bt(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Pt(t,e){return`${Bt(t)}${t.projectId}/${e}/`}function Ht(t){return e={sentry_key:t.publicKey,sentry_version:"7"},Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&");var e}function zt(t){return`${function(t){return Pt(t,"store")}(t)}?${Ht(t)}`}function Xt(t,e){return e||`${function(t){return Pt(t,"envelope")}(t)}?${Ht(t)}`}const Jt=[];function Wt(t){return t.reduce(((t,e)=>(t.every((t=>e.name!==t.name))&&t.push(e),t)),[])}function Kt(t){const e={};return function(t){const e=t.defaultIntegrations&&[...t.defaultIntegrations]||[],n=t.integrations;let r=[...Wt(e)];Array.isArray(n)?r=[...r.filter((t=>n.every((e=>e.name!==t.name)))),...Wt(n)]:"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);const i=r.map((t=>t.name)),s="Debug";return-1!==i.indexOf(s)&&r.push(...r.splice(i.indexOf(s),1)),r}(t).forEach((t=>{e[t.name]=t,function(t){-1===Jt.indexOf(t.name)&&(t.setupOnce(Dt,Ut),Jt.push(t.name))}(t)})),I(e,"initialized",!0),e}class Gt{sendEvent(t){return pt({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})}close(t){return pt(!0)}}function Vt(t){if(!t.metadata||!t.metadata.sdk)return;const{name:e,version:n}=t.metadata.sdk;return{name:e,version:n}}const Qt="6.19.0";let Yt;class Zt{constructor(){this.name=Zt.id}setupOnce(){Yt=Function.prototype.toString,Function.prototype.toString=function(...t){const e=q(this)||this;return Yt.apply(e,t)}}}Zt.id="FunctionToString";const te=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class ee{constructor(t={}){this.W=t,this.name=ee.id}setupOnce(){Dt((t=>{const e=Ut();if(!e)return t;const n=e.getIntegration(ee);if(n){const r=e.getClient(),i=r?r.getOptions():{},s="function"==typeof n.K?n.K(i):{};return"function"!=typeof n.G?t:n.G(t,s)?null:t}return t}))}G(t,e){return!!this.V(t,e)||(!!this.Y(t,e)||(!!this.Z(t,e)||!this.tt(t,e)))}V(t,e){if(!e.ignoreInternal)return!1;try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}Y(t,e){return!(!e.ignoreErrors||!e.ignoreErrors.length)&&this.et(t).some((t=>e.ignoreErrors.some((e=>R(t,e)))))}Z(t,e){if(!e.denyUrls||!e.denyUrls.length)return!1;const n=this.nt(t);return!!n&&e.denyUrls.some((t=>R(n,t)))}tt(t,e){if(!e.allowUrls||!e.allowUrls.length)return!0;const n=this.nt(t);return!n||e.allowUrls.some((t=>R(n,t)))}K(t={}){return{allowUrls:[...this.W.whitelistUrls||[],...this.W.allowUrls||[],...t.whitelistUrls||[],...t.allowUrls||[]],denyUrls:[...this.W.blacklistUrls||[],...this.W.denyUrls||[],...t.blacklistUrls||[],...t.denyUrls||[]],ignoreErrors:[...this.W.ignoreErrors||[],...t.ignoreErrors||[],...te],ignoreInternal:void 0===this.W.ignoreInternal||this.W.ignoreInternal}}et(t){if(t.message)return[t.message];if(t.exception)try{const{type:e="",value:n=""}=t.exception.values&&t.exception.values[0]||{};return[`${n}`,`${e}: ${n}`]}catch(t){return[]}return[]}rt(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}nt(t){try{if(t.stacktrace)return this.rt(t.stacktrace.frames);let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?this.rt(e):null}catch(t){return null}}}ee.id="InboundFilters";var ne=Object.freeze({__proto__:null,FunctionToString:Zt,InboundFilters:ee});const re="?";function ie(t,e,n,r){const i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const se=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oe=/\((\S*)(?::(\d+))(?::(\d+))\)/,ce=[30,t=>{const e=se.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=oe.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=ve(e[1]||re,e[2]);return ie(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],ue=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ae=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,he=[50,t=>{const e=ue.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=ae.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||re;return[n,t]=ve(n,t),ie(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],fe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,le=[40,t=>{const e=fe.exec(t);return e?ie(e[2],e[1]||re,+e[3],e[4]?+e[4]:void 0):void 0}],de=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,pe=[10,t=>{const e=de.exec(t);return e?ie(e[2],e[3]||re,+e[1]):void 0}],be=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ye=[20,t=>{const e=be.exec(t);return e?ie(e[5],e[3]||e[4]||re,+e[1],+e[2]):void 0}],ve=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:re,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function me(t){const e=ge(t),n={type:t&&t.name,value:we(t)};return e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Oe(t){return{exception:{values:[me(t)]}}}function ge(t){const e=t.stacktrace||t.stack||"",n=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(je.test(t.message))return 1}return 0}(t);try{return S(pe,ye,ce,le,he)(e,n)}catch(t){}return[]}const je=/Minified React error #\d+;/i;function we(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function xe(e,n,r){const i=_e(e,n&&n.syntheticException||void 0,r);return lt(i),i.level=t.Severity.Error,n&&n.event_id&&(i.event_id=n.event_id),pt(i)}function Ee(e,n=t.Severity.Info,r,i){const s=Se(e,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),pt(s)}function _e(t,e,n,r){let i;if(c(t)&&t.error){return Oe(t.error)}if(u(t)||o(t,"DOMException")){const r=t;if("stack"in t)i=Oe(t);else{const t=r.name||(u(r)?"DOMError":"DOMException"),s=r.message?`${t}: ${r.message}`:t;i=Se(s,e,n),ft(i,s)}return"code"in r&&(i.tags=Object.assign(Object.assign({},i.tags),{"DOMException.code":`${r.code}`})),i}if(s(t))return Oe(t);if(f(t)||l(t)){return i=function(t,e,n){const r={exception:{values:[{type:l(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:`Non-Error ${n?"promise rejection":"exception"} captured with keys: ${P(t)}`}]},extra:{__serialized__:C(t)}};if(e){const t=ge(e);t.length&&(r.stacktrace={frames:t})}return r}(t,e,r),lt(i,{synthetic:!0}),i}return i=Se(t,e,n),ft(i,`${t}`,void 0),lt(i,{synthetic:!0}),i}function Se(t,e,n){const r={message:t};if(n&&e){const t=ge(e);t.length&&(r.stacktrace={frames:t})}return r}const $e=r();let ke;function Te(){if(ke)return ke;if(X($e.fetch))return ke=$e.fetch.bind($e);const t=$e.document;let e=$e.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){}return ke=e.bind($e)}function De(t,e){if("[object Navigator]"===Object.prototype.toString.call($e&&$e.navigator)&&"function"==typeof $e.navigator.sendBeacon){return $e.navigator.sendBeacon.bind($e.navigator)(t,e)}if(z()){const n=Te();n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,(t=>{console.error(t)}))}else;}function Re(t){return"event"===t?"error":t}const Me=r();class Ie{constructor(t){var e,n,r;this.options=t,this.it=vt(30),this.st={},this.ot={},this.ct=(e=t.dsn,n=t.ut,r=t.tunnel,{initDsn:e,metadata:n||{},dsn:x(e),tunnel:r}),this.url=zt(this.ct.dsn),this.options.sendClientReports&&Me.document&&Me.document.addEventListener("visibilitychange",(()=>{"hidden"===Me.document.visibilityState&&this.at()}))}sendEvent(t){return this.ht(function(t,e){const n=Vt(e),r=t.type||"event",i="transaction"===r||!!e.tunnel,{transactionSampling:s}=t.sdkProcessingMetadata||{},{method:o,rate:c}=s||{};let u;!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{u=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{u=JSON.stringify(B(t))}catch(t){const e=t;u=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:e.message,stack:e.stack}})}}const a={body:u,type:r,url:i?Xt(e.dsn,e.tunnel):zt(e.dsn)};if(i){const i=Et(Object.assign(Object.assign({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:j(e.dsn)}),[[{type:r,sample_rates:[{id:o,rate:c}]},a.body]]);a.body=_t(i)}return a}(t,this.ct),t)}sendSession(t){return this.ht(function(t,e){const n=Vt(e),r="aggregates"in t?"sessions":"session";return{body:_t(Et(Object.assign(Object.assign({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:j(e.dsn)}),[[{type:r},t]])),type:r,url:Xt(e.dsn,e.tunnel)}}(t,this.ct),t)}close(t){return this.it.drain(t)}recordLostEvent(t,e){var n;if(!this.options.sendClientReports)return;const r=`${Re(e)}:${t}`;this.ot[r]=(null!=(n=this.ot[r])?n:0)+1}at(){if(!this.options.sendClientReports)return;const t=this.ot;if(this.ot={},!Object.keys(t).length)return;const e=Xt(this.ct.dsn,this.ct.tunnel),n=Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:r,category:n,quantity:t[e]}})),r=(i=n,Et((s=this.ct.tunnel&&j(this.ct.dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:o||wt(),discarded_events:i}]]));var i,s,o;try{De(e,_t(r))}catch(t){}}ft({requestType:t,response:e,headers:n,resolve:r,reject:i}){const s=(o=e.status)>=200&&o<300?"success":429===o?"rate_limit":o>=400&&o<500?"invalid":o>=500?"failed":"unknown";var o;this.st=$t(this.st,n),this.lt(t),"success"!==s?i(e):r({status:s})}dt(t){const e=Re(t);return new Date(St(this.st,e))}lt(t){const e=Re(t);return function(t,e,n=Date.now()){return St(t,e)>n}(this.st,e)}}class Ne extends Ie{constructor(t,e=Te()){super(t),this.bt=e}ht(t,e){if(this.lt(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.dt(t.type)} due to too many requests.`,status:429});const n={body:t.body,method:"POST",referrerPolicy:J()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this.it.add((()=>new yt(((e,r)=>{this.bt(t.url,n).then((n=>{const i={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};this.ft({requestType:t.type,response:n,headers:i,resolve:e,reject:r})})).catch(r)})))).then(void 0,(e=>{throw e instanceof O?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),e}))}}class qe extends Ie{ht(t,e){return this.lt(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:`Transport for ${t.type} requests locked till ${this.dt(t.type)} due to too many requests.`,status:429})):this.it.add((()=>new yt(((e,n)=>{const r=new XMLHttpRequest;r.onreadystatechange=()=>{if(4===r.readyState){const i={"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")};this.ft({requestType:t.type,response:r,headers:i,resolve:e,reject:n})}},r.open("POST",t.url);for(const t in this.options.headers)Object.prototype.hasOwnProperty.call(this.options.headers,t)&&r.setRequestHeader(t,this.options.headers[t]);r.send(t.body)})))).then(void 0,(e=>{throw e instanceof O?this.recordLostEvent("queue_overflow",t.type):this.recordLostEvent("network_error",t.type),e}))}}var Ue=Object.freeze({__proto__:null,BaseTransport:Ie,FetchTransport:Ne,XHRTransport:qe});class Ae extends class{constructor(t){this.W=t,this.yt=this.vt()}eventFromException(t,e){throw new O("Backend has to implement `eventFromException` method")}eventFromMessage(t,e,n){throw new O("Backend has to implement `eventFromMessage` method")}sendEvent(t){this.yt.sendEvent(t).then(null,(t=>{}))}sendSession(t){this.yt.sendSession&&this.yt.sendSession(t).then(null,(t=>{}))}getTransport(){return this.yt}vt(){return new Gt}}{eventFromException(t,e){return xe(t,e,this.W.attachStacktrace)}eventFromMessage(e,n=t.Severity.Info,r){return Ee(e,n,r,this.W.attachStacktrace)}vt(){if(!this.W.dsn)return super.vt();const t=Object.assign(Object.assign({},this.W.transportOptions),{dsn:this.W.dsn,tunnel:this.W.tunnel,sendClientReports:this.W.sendClientReports,ut:this.W.ut});return this.W.transport?new this.W.transport(t):z()?new Ne(t):new qe(t)}}const Ce=r();let Le=0;function Fe(){return Le>0}function Be(){Le+=1,setTimeout((()=>{Le-=1}))}function Pe(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(q(t))return t}catch(e){return t}const sentryWrapped=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((t=>Pe(t,e)));return t.apply(this,i)}catch(t){throw Be(),Ft((n=>{n.addEventProcessor((t=>(e.mechanism&&(ft(t,void 0,void 0),lt(t,e.mechanism)),t.extra=Object.assign(Object.assign({},t.extra),{arguments:r}),t))),captureException(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(sentryWrapped[e]=t[e])}catch(t){}N(sentryWrapped,t),I(t,"__sentry_wrapped__",sentryWrapped);try{Object.getOwnPropertyDescriptor(sentryWrapped,"name").configurable&&Object.defineProperty(sentryWrapped,"name",{get:()=>t.name})}catch(t){}return sentryWrapped}function He(t={}){if(!Ce.document)return;if(!t.eventId)return;if(!t.dsn)return;const e=Ce.document.createElement("script");e.async=!0,e.src=function(t,e){const n=x(t),r=`${Bt(n)}embed/error-page/`;let i=`dsn=${j(n)}`;for(const t in e)if("dsn"!==t)if("user"===t){if(!e.user)continue;e.user.name&&(i+=`&name=${encodeURIComponent(e.user.name)}`),e.user.email&&(i+=`&email=${encodeURIComponent(e.user.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${i}`}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);const n=Ce.document.head||Ce.document.body;n&&n.appendChild(e)}class ze{constructor(t){this.name=ze.id,this.Ot={onerror:Xe,onunhandledrejection:Je},this.W=Object.assign({onerror:!0,onunhandledrejection:!0},t)}setupOnce(){Error.stackTraceLimit=50;const t=this.W;for(const e in t){const n=this.Ot[e];n&&t[e]&&(n(),this.Ot[e]=void 0)}}}function Xe(){Q("error",(e=>{const[n,r]=Ge();if(!n.getIntegration(ze))return;const{msg:i,url:s,line:o,column:u,error:h}=e;if(Fe()||h&&h.__sentry_own_request__)return;const f=void 0===h&&a(i)?function(t,e,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let s=c(t)?t.message:t,o="Error";const u=s.match(i);u&&(o=u[1],s=u[2]);return We({exception:{values:[{type:o,value:s}]}},e,n,r)}(i,s,o,u):We(_e(h||i,void 0,r,!1),s,o,u);f.level=t.Severity.Error,Ke(n,h,f,"onerror")}))}function Je(){Q("unhandledrejection",(e=>{const[n,r]=Ge();if(!n.getIntegration(ze))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(t){}if(Fe()||i&&i.__sentry_own_request__)return!0;const s=h(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:_e(i,void 0,r,!0);s.level=t.Severity.Error,Ke(n,i,s,"onunhandledrejection")}))}function We(t,e,n,i){const s=t.exception=t.exception||{},o=s.values=s.values||[],c=o[0]=o[0]||{},u=c.stacktrace=c.stacktrace||{},h=u.frames=u.frames||[],f=isNaN(parseInt(i,10))?void 0:i,l=isNaN(parseInt(n,10))?void 0:n,d=a(e)&&e.length>0?e:function(){const t=r();try{return t.document.location.href}catch(t){return""}}();return 0===h.length&&h.push({colno:f,filename:d,function:"?",in_app:!0,lineno:l}),t}function Ke(t,e,n,r){lt(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Ge(){const t=Ut(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}ze.id="GlobalHandlers";const Ve=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Qe{constructor(t){this.name=Qe.id,this.W=Object.assign({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}setupOnce(){const t=r();this.W.setTimeout&&M(t,"setTimeout",Ye),this.W.setInterval&&M(t,"setInterval",Ye),this.W.requestAnimationFrame&&M(t,"requestAnimationFrame",Ze),this.W.XMLHttpRequest&&"XMLHttpRequest"in t&&M(XMLHttpRequest.prototype,"send",tn);const e=this.W.eventTarget;if(e){(Array.isArray(e)?e:Ve).forEach(en)}}}function Ye(t){return function(...e){const n=e[0];return e[0]=Pe(n,{mechanism:{data:{function:k(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Ze(t){return function(e){return t.apply(this,[Pe(e,{mechanism:{data:{function:"requestAnimationFrame",handler:k(t)},handled:!0,type:"instrument"}})])}}function tn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&M(n,t,(function(e){const n={mechanism:{data:{function:t,handler:k(e)},handled:!0,type:"instrument"}},r=q(e);return r&&(n.mechanism.data.handler=k(r)),Pe(e,n)}))})),t.apply(this,e)}}function en(t){const e=r(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(M(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Pe(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:k(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.apply(this,[n,Pe(r,{mechanism:{data:{function:"addEventListener",handler:k(r),target:t},handled:!0,type:"instrument"}}),i])}})),M(n,"removeEventListener",(function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}})))}Qe.id="TryCatch";class nn{constructor(t){this.name=nn.id,this.W=Object.assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}addSentryBreadcrumb(t){this.W.sentry&&Ut().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ht(t)},{event:t})}setupOnce(){this.W.console&&Q("console",rn),this.W.dom&&Q("dom",function(t){function e(e){let n,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=e.event.target?y(e.event.target,r):y(e.event,r)}catch(t){n="<unknown>"}0!==n.length&&Ut().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})}return e}(this.W.dom)),this.W.xhr&&Q("xhr",sn),this.W.fetch&&Q("fetch",on),this.W.history&&Q("history",cn)}}function rn(t){const e={category:"console",data:{arguments:t.args,logger:"console"},level:mt(t.level),message:D(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${D(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}Ut().addBreadcrumb(e,{input:t.args,level:t.level})}function sn(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;const{method:e,url:n,status_code:r,body:i}=t.xhr.__sentry_xhr__||{};Ut().addBreadcrumb({category:"xhr",data:{method:e,url:n,status_code:r},type:"http"},{xhr:t.xhr,input:i})}else;}function on(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?Ut().addBreadcrumb({category:"fetch",data:e.fetchData,level:t.Severity.Error,type:"http"},{data:e.error,input:e.args}):Ut().addBreadcrumb({category:"fetch",data:Object.assign(Object.assign({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function cn(t){const e=r();let n=t.from,i=t.to;const s=ut(e.location.href);let o=ut(n);const c=ut(i);o.path||(o=s),s.protocol===c.protocol&&s.host===c.host&&(i=c.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),Ut().addBreadcrumb({category:"navigation",data:{from:n,to:i}})}nn.id="Breadcrumbs";class un{constructor(t={}){this.name=un.id,this.gt=t.key||"cause",this.jt=t.limit||5}setupOnce(){Dt(((t,e)=>{const n=Ut().getIntegration(un);return n?function(t,e,n,r){if(!(n.exception&&n.exception.values&&r&&b(r.originalException,Error)))return n;const i=an(e,r.originalException,t);return n.exception.values=[...i,...n.exception.values],n}(n.gt,n.jt,t,e):t}))}}function an(t,e,n,r=[]){if(!b(e[n],Error)||r.length+1>=t)return r;const i=me(e[n]);return an(t,e[n],n,[i,...r])}un.id="LinkedErrors";const hn=r();class fn{constructor(){this.name=fn.id}setupOnce(){Dt((t=>{if(Ut().getIntegration(fn)){if(!hn.navigator&&!hn.location&&!hn.document)return t;const e=t.request&&t.request.url||hn.location&&hn.location.href,{referrer:n}=hn.document||{},{userAgent:r}=hn.navigator||{},i=Object.assign(Object.assign(Object.assign({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=Object.assign(Object.assign({},e&&{url:e}),{headers:i});return Object.assign(Object.assign({},t),{request:s})}return t}))}}fn.id="UserAgent";class ln{constructor(){this.name=ln.id}setupOnce(t,e){t((t=>{const n=e().getIntegration(ln);if(n){try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!pn(t,e))return!1;if(!dn(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=bn(e),r=bn(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!pn(t,e))return!1;if(!dn(t,e))return!1;return!0}(t,e))return!0;return!1}(t,n.wt))return null}catch(e){return n.wt=t}return n.wt=t}return t}))}}function dn(t,e){let n=yn(t),r=yn(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function pn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function bn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function yn(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames}ln.id="Dedupe";var vn=Object.freeze({__proto__:null,GlobalHandlers:ze,TryCatch:Qe,Breadcrumbs:nn,LinkedErrors:un,UserAgent:fn,Dedupe:ln});class mn extends class{constructor(t,e){this.xt={},this.Et=0,this._t=new t(e),this.W=e,e.dsn&&(this.St=x(e.dsn))}captureException(t,e,n){if(dt(t))return;let r=e&&e.event_id;return this.$t(this.kt().eventFromException(t,e).then((t=>this.Tt(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const s=h(t)?this.kt().eventFromMessage(String(t),e,n):this.kt().eventFromException(t,n);return this.$t(s.then((t=>this.Tt(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&dt(e.originalException))return;let r=e&&e.event_id;return this.$t(this.Tt(t,e,n).then((t=>{r=t}))),r}captureSession(t){this.Dt()&&("string"!=typeof t.release||(this.Rt(t),t.update({init:!1})))}getDsn(){return this.St}getOptions(){return this.W}getTransport(){return this.kt().getTransport()}flush(t){return this.Mt(t).then((e=>this.getTransport().close(t).then((t=>e&&t))))}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this.Dt()&&!this.xt.initialized&&(this.xt=Kt(this.W))}getIntegration(t){try{return this.xt[t.id]||null}catch(t){return null}}It(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(t.update(Object.assign(Object.assign({},n&&{status:"crashed"}),{errors:t.errors||Number(r||n)})),this.captureSession(t))}Rt(t){this.kt().sendSession(t)}Mt(t){return new yt((e=>{let n=0;const r=setInterval((()=>{0==this.Et?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}kt(){return this._t}Dt(){return!1!==this.getOptions().enabled&&void 0!==this.St}Nt(t,e,n){const{normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=this.getOptions(),s=Object.assign(Object.assign({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:ct()),timestamp:t.timestamp||wt()});this.qt(s),this.Ut(s);let o=e;n&&n.captureContext&&(o=kt.clone(o).update(n.captureContext));let c=pt(s);return o&&(c=o.applyToEvent(s,n)),c.then((t=>(t&&(t.sdkProcessingMetadata=Object.assign(Object.assign({},t.sdkProcessingMetadata),{normalizeDepth:B(r)})),"number"==typeof r&&r>0?this.At(t,r,i):t)))}At(t,e,n){if(!t)return null;const r=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>Object.assign(Object.assign({},t),t.data&&{data:B(t.data,e,n)})))}),t.user&&{user:B(t.user,e,n)}),t.contexts&&{contexts:B(t.contexts,e,n)}),t.extra&&{extra:B(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),t.sdkProcessingMetadata=Object.assign(Object.assign({},t.sdkProcessingMetadata),{baseClientNormalized:!0}),r}qt(t){const e=this.getOptions(),{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=T(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=T(o.value,s));const c=t.request;c&&c.url&&(c.url=T(c.url,s))}Ut(t){const e=Object.keys(this.xt);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}Ct(t){this.kt().sendEvent(t)}Tt(t,e,n){return this.Lt(t,e,n).then((t=>t.event_id),(t=>{}))}Lt(t,e,n){const{beforeSend:r,sampleRate:i}=this.getOptions(),s=this.getTransport();function o(t,e){s.recordLostEvent&&s.recordLostEvent(t,e)}if(!this.Dt())return bt(new O("SDK not enabled, will not capture event."));const c="transaction"===t.type;return!c&&"number"==typeof i&&Math.random()>i?(o("sample_rate","event"),bt(new O(`Discarding event because it's not included in the random sample (sampling rate = ${i})`))):this.Nt(t,n,e).then((n=>{if(null===n)throw o("event_processor",t.type||"event"),new O("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||c||!r)return n;return function(t){const e="`beforeSend` method has to return `null` or a valid event.";if(p(t))return t.then((t=>{if(!f(t)&&null!==t)throw new O(e);return t}),(t=>{throw new O(`beforeSend rejected with ${t}`)}));if(!f(t)&&null!==t)throw new O(e);return t}(r(n,e))})).then((e=>{if(null===e)throw o("before_send",t.type||"event"),new O("`beforeSend` returned `null`, will not send event.");const r=n&&n.getSession&&n.getSession();return!c&&r&&this.It(r,e),this.Ct(e),e})).then(null,(t=>{if(t instanceof O)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new O(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}$t(t){this.Et+=1,t.then((t=>(this.Et-=1,t)),(t=>(this.Et-=1,t)))}}{constructor(t={}){t.ut=t.ut||{},t.ut.sdk=t.ut.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Qt}],version:Qt},super(Ae,t)}showReportDialog(t={}){r().document&&this.Dt()&&He(Object.assign(Object.assign({},t),{dsn:t.dsn||this.getDsn()}))}Nt(t,e,n){return t.platform=t.platform||"javascript",super.Nt(t,e,n)}Ct(t){const e=this.getIntegration(nn);e&&e.addSentryBreadcrumb(t),super.Ct(t)}}const On=[new ee,new Zt,new Qe,new nn,new ze,new un,new ln,new fn];function gn(t){t.startSession({ignoreDuration:!0}),t.captureSession()}let jn={};const wn=r();wn.Sentry&&wn.Sentry.Integrations&&(jn=wn.Sentry.Integrations);const xn=Object.assign(Object.assign(Object.assign({},jn),ne),vn);return t.BrowserClient=mn,t.Hub=It,t.Integrations=xn,t.SDK_NAME="sentry.javascript.browser",t.SDK_VERSION=Qt,t.Scope=kt,t.Session=Rt,t.Transports=Ue,t.addBreadcrumb=function(t){Lt("addBreadcrumb",t)},t.addGlobalEventProcessor=Dt,t.captureEvent=function(t){return Lt("captureEvent",t)},t.captureException=captureException,t.captureMessage=function(t,e){const n=new Error(t),r="string"!=typeof e?{captureContext:e}:void 0;return Lt("captureMessage",t,"string"==typeof e?e:void 0,Object.assign({originalException:t,syntheticException:n},r))},t.close=function(t){const e=Ut().getClient();return e?e.close(t):pt(!1)},t.configureScope=function(t){Lt("configureScope",t)},t.defaultIntegrations=On,t.eventFromException=xe,t.eventFromMessage=Ee,t.flush=function(t){const e=Ut().getClient();return e?e.flush(t):pt(!1)},t.forceLoad=function(){},t.getCurrentHub=Ut,t.getHubFromCarrier=At,t.init=function(t={}){if(void 0===t.defaultIntegrations&&(t.defaultIntegrations=On),void 0===t.release){const e=r();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,e){!0===e.debug&&console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.");const n=Ut(),r=n.getScope();r&&r.update(e.initialScope);const i=new t(e);n.bindClient(i)}(mn,t),t.autoSessionTracking&&function(){const t=r();if(void 0===t.document)return;const e=Ut();if(!e.captureSession)return;gn(e),Q("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&gn(Ut())}))}()},t.injectReportDialog=He,t.lastEventId=function(){return Ut().lastEventId()},t.makeMain=qt,t.onLoad=function(t){t()},t.setContext=function(t,e){Lt("setContext",t,e)},t.setExtra=function(t,e){Lt("setExtra",t,e)},t.setExtras=function(t){Lt("setExtras",t)},t.setTag=function(t,e){Lt("setTag",t,e)},t.setTags=function(t){Lt("setTags",t)},t.setUser=function(t){Lt("setUser",t)},t.showReportDialog=function(t={}){const e=Ut(),n=e.getScope();n&&(t.user=Object.assign(Object.assign({},n.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId());const r=e.getClient();r&&r.showReportDialog(t)},t.startTransaction=function(t,e){return Lt("startTransaction",Object.assign({},t),e)},t.withScope=Ft,t.wrap=function(t){return Pe(t)()},t}({});
|
|
3
|
+
//# sourceMappingURL=bundle.es6.min.js.map
|