2 lines
90 KiB
JavaScript
2 lines
90 KiB
JavaScript
!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cf478a72-81eb-4065-8ba0-918eede64e98",t._sentryDebugIdIdentifier="sentry-dbid-cf478a72-81eb-4065-8ba0-918eede64e98")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"community-fe@7.22.0"},(self.webpackChunkcommunity_fe=self.webpackChunkcommunity_fe||[]).push([[897],{66259:function(t,e,n){n.d(e,{S1:function(){return ue}});var r=n(12343),i=n(62844),s=n(57321);const o=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],a=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class c{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=c.id,this._options=t}setupOnce(t,e){const n=t=>{const n=e();if(n){const e=n.getIntegration(c);if(e){const c=n.getClient(),d=c?c.getOptions():{},_=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:o],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:a],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e._options,d);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,i.jH)(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){const e=[];let n;t.message&&e.push(t.message);try{n=t.exception.values[t.exception.values.length-1]}catch(t){}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||0!==e.length||r.kg.error(`Could not extract message for event ${(0,i.jH)(t)}`),e}(t).some((t=>(0,s.U0)(t,e)))}(t,e.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,i.jH)(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,s.U0)(n,e)}(t,e.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,i.jH)(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=u(t);return!!n&&(0,s.U0)(n,e)}(t,e.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,i.jH)(t)}.\nUrl: ${u(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=u(t);return!n||(0,s.U0)(n,e)}(t,e.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,i.jH)(t)}.\nUrl: ${u(t)}`),!0)}(t,_)?null:t}}return t};n.id=this.name,t(n)}}function u(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(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}(e):null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`Cannot extract url for event ${(0,i.jH)(t)}`),null}}c.__initStatic();var d=n(20535);let _;class h{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=h.id}setupOnce(){_=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,d.HK)(this)||this;return _.apply(e,t)}}catch(t){}}}h.__initStatic();var p=n(71195),l=n(95659);const f=[];function g(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?(0,i.lE)(n(e)):e;const s=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(r),o=function(t,e){for(let e=0;e<t.length;e++)if(!0==("Debug"===t[e].name))return e;return-1}(s);if(-1!==o){const[t]=s.splice(o,1);s.push(t)}return s}function m(t,e,n){if(n[e.name]=e,-1===f.indexOf(e.name)&&(e.setupOnce(p.cc,l.Gd),f.push(e.name)),t.on&&"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if(t.addEventProcessor&&"function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`Integration installed: ${e.name}`)}var y=n(30360),E=n(8823),v=n(42533);const S=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function T(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r?`${r}/`:r}${o}`}function b(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}var R=n(67597),D=n(96893);function x(t,e=100,n=1/0){try{return N("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function k(t,e=3,n=102400){const r=x(t,e);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?k(t,e-1,n):r;var i}function N(t,e,r=1/0,i=1/0,s=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[o,a]=s;if(null==e||["number","boolean","string"].includes(typeof e)&&!(0,R.i2)(e))return e;const c=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,R.y1)(e))return"[VueViewModel]";if((0,R.Cy)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,y.$P)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!c.startsWith("[object "))return c;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:r;if(0===u)return c.replace("object ","");if(o(e))return"[Circular ~]";const _=e;if(_&&"function"==typeof _.toJSON)try{return N("",_.toJSON(),u-1,i,s)}catch(t){}const h=Array.isArray(e)?[]:{};let p=0;const l=(0,d.Sh)(e);for(const t in l){if(!Object.prototype.hasOwnProperty.call(l,t))continue;if(p>=i){h[t]="[MaxProperties ~]";break}const e=l[t];h[t]=N(t,e,u-1,i,s),p++}return a(e),h}function w(t,e=[]){return[t,e]}function U(t,e){const[n,r]=t;return[n,[...r,e]]}function G(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function $(t,e){return(e||new TextEncoder).encode(t)}function Y(t,e){const[n,r]=t;let i=JSON.stringify(n);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[$(i,e),t]:i.push("string"==typeof t?$(t,e):t)}for(const t of r){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(x(n))}s(t)}}return"string"==typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(i)}function I(t,e){const n="string"==typeof t.data?$(t.data,e):t.data;return[(0,d.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const O={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"};function B(t){return O[t]}function C(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}class j extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var P=n(9015),A=n(90454),M=n(21170),L=n(71235),H=n(51131),q=n(10350);const W=new WeakMap,J="Not capturing exception because it's already been captured.";class F{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(t){const e="string"==typeof t?function(t){const e=S.exec(t);if(!e)return void console.error(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",s,o="",a]=e.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return b({host:s,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}(t):b(t);if(e&&function(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:e,projectId:n,protocol:i}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(r.kg.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(i)?e&&isNaN(parseInt(e,10))&&(r.kg.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(r.kg.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(r.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}(t.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("No DSN provided, client will not do anything."),this._dsn){const e=function(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${function(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,d._j)({sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,r)}`}(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if((0,i.YO)(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(J));let s=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{s=t}))),s}captureMessage(t,e,n,r){let i=n&&n.event_id;const s=(0,R.pt)(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(s.then((t=>this._captureEvent(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,i.YO)(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(J));let s=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{s=t}))),s}captureSession(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,P.CT)(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):(0,D.WD)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t,e){const n={};return e.forEach((e=>{e&&m(t,e,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){m(this,t,this._integrations)}sendEvent(t,e={}){if(this.emit("beforeSendEvent",t,e),this._dsn){let n=function(t,e,n,r){const i=C(n),s=t.type&&"replay_event"!==t.type?t.type:"event";!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,n&&n.sdk);const o=function(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:T(r)},...i&&{trace:(0,d.Jr)({...i})}}}(t,i,r,e);return delete t.sdkProcessingMetadata,w(o,[[{type:s},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=U(n,I(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}}sendSession(t){if(this._dsn){const e=function(t,e,n,r){const i=C(n);return w({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:T(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_updateSessionFromEvent(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)&&((0,P.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new D.cW((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const r=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),function(t,e,n,r,o){const{normalizeDepth:a=3,normalizeMaxBreadth:c=1e3}=t,u={...e,event_id:e.event_id||n.event_id||(0,i.DM)(),timestamp:e.timestamp||(0,M.yW)()},d=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:H.J),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,s.$G)(t.message,o));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,s.$G)(a.value,o));const c=t.request;c&&c.url&&(c.url=(0,s.$G)(c.url,o))}(u,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(u,d),void 0===e.type&&function(t,e){const n=L.n2._sentryDebugIds;if(!n)return;let r;const i=W.get(e);i?r=i:(r=new Map,W.set(e,r));const s=Object.keys(n).reduce(((t,i)=>{let s;const o=r.get(i);o?s=o:(s=e(i),r.set(i,s));for(let e=s.length-1;e>=0;e--){const r=s[e];if(r.filename){t[r.filename]=n[i];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=s[t.filename])}))}))}catch(t){}}(u,t.stackParser);let _=r;n.captureContext&&(_=q.s.clone(_).update(n.captureContext));let h=(0,D.WD)(u);const l=o&&o.getEventProcessors?o.getEventProcessors():[];if(_){if(_.getAttachments){const t=[...n.attachments||[],..._.getAttachments()];t.length&&(n.attachments=t)}h=_.applyToEvent(u,n,l)}else h=(0,p.RP)([...l,...(0,p.fH)()],u,n);return h.then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof a&&a>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:x(t.data,e,n)}})))},...t.user&&{user:x(t.user,e,n)},...t.contexts&&{contexts:x(t.contexts,e,n)},...t.extra&&{extra:x(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=x(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=x(t.data,e,n)),t)))),r}(t,a,c):t)))}(r,t,e,n,this).then((t=>{if(null===t)return t;const{propagationContext:e}=t.sdkProcessingMetadata||{};if((!t.contexts||!t.contexts.trace)&&e){const{traceId:r,spanId:i,parentSpanId:s,dsc:o}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...t.contexts};const a=o||(0,A._)(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=t;"log"===e.logLevel?r.kg.log(e.message):r.kg.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return(0,D.$2)(new j("SDK not enabled, will not capture event.","log"));const s=z(t),o=K(t),a=t.type||"error",c=`before send for type \`${a}\``;if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,D.$2)(new j(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===a?"replay":a;return this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new j("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const i=function(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;return K(e)&&r?r(e,n):z(e)&&i?i(e,n):e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,R.J8)(t))return t.then((t=>{if(!(0,R.PO)(t)&&null!==t)throw new j(n);return t}),(t=>{throw new j(`${e} rejected with ${t}`)}));if(!(0,R.PO)(t)&&null!==t)throw new j(n);return t}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,t),new j(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!s&&i&&this._updateSessionFromEvent(i,r);const o=r.transaction_info;if(s&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof j)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new j(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Error while sending event:",t)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function K(t){return void 0===t.type}function z(t){return"transaction"===t.type}const V="7.71.0";var X=n(68518);function Q(t,e){const n=tt(t,e),r={type:e&&e.name,value:nt(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Z(t,e){return{exception:{values:[Q(t,e)]}}}function tt(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(et.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const et=/Minified React error #\d+;/i;function nt(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function rt(t,e,n,r,s){let o;if((0,R.VW)(e)&&e.error)return Z(t,e.error);if((0,R.TX)(e)||(0,R.fm)(e)){const s=e;if("stack"in e)o=Z(t,e);else{const e=s.name||((0,R.TX)(s)?"DOMError":"DOMException"),a=s.message?`${e}: ${s.message}`:e;o=it(t,a,n,r),(0,i.Db)(o,a)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return(0,R.VZ)(e)?Z(t,e):(0,R.PO)(e)||(0,R.cO)(e)?(o=function(t,e,n,r){const i=(0,l.Gd)().getClient(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:(0,R.cO)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:st(e,{isUnhandledRejection:r})}]},extra:{__serialized__:k(e,s)}};if(n){const e=tt(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,s),(0,i.EG)(o,{synthetic:!0}),o):(o=it(t,e,n,r),(0,i.Db)(o,`${e}`,void 0),(0,i.EG)(o,{synthetic:!0}),o)}function it(t,e,n,r){const i={message:e};if(r&&n){const r=tt(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}return i}function st(t,{isUnhandledRejection:e}){const n=(0,d.zf)(t),r=e?"promise rejection":"exception";return(0,R.VW)(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:(0,R.cO)(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var ot=n(64487);const at=L.n2;let ct=0;function ut(){return ct>0}function dt(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if((0,d.HK)(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((t=>dt(t,e)));return t.apply(this,i)}catch(t){throw ct++,setTimeout((()=>{ct--})),(0,ot.$e)((n=>{n.addEventProcessor((t=>(e.mechanism&&((0,i.Db)(t,void 0,void 0),(0,i.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),(0,ot.Tb)(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}(0,d.$Q)(r,t),(0,d.xp)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(t){}return r}class _t extends F{constructor(t){const e=at.SENTRY_SDK_SOURCE||(0,X.S)();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${e}:@sentry/browser`,version:V}],version:V},super(t),t.sendClientReports&&at.document&&at.document.addEventListener("visibilitychange",(()=>{"hidden"===at.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const s=rt(t,e,n&&n.syntheticException||void 0,r);return(0,i.EG)(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),(0,D.WD)(s)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){const s=it(t,e,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),(0,D.WD)(s)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:r}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:T(r)}},s=function(t){return[{type:"user_report"},t]}(t);return w(i,[s])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("Sending outcomes:",t);const e=(n=t,w((i=this._options.tunnel&&T(this._dsn))?{dsn:i}:{},[[{type:"client_report"},{timestamp:(0,M.yW)(),discarded_events:n}]]));var n,i;this._sendEnvelope(e)}}var ht=n(58464);class pt{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=pt.id,this._options={onerror:!0,onunhandledrejection:!0,...t},this._installFunc={onerror:lt,onunhandledrejection:ft}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const i=this._installFunc[n];i&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`Global Handler attached: ${e}`),i(),this._installFunc[n]=void 0)}var e}}function lt(){(0,v.oq)("error",(t=>{const[e,n,r]=yt();if(!e.getIntegration(pt))return;const{msg:i,url:s,line:o,column:a,error:c}=t;if(ut()||c&&c.__sentry_own_request__)return;const u=void 0===c&&(0,R.HD)(i)?function(t,e,n,r){let i=(0,R.VW)(t)?t.message:t,s="Error";const o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);o&&(s=o[1],i=o[2]);return gt({exception:{values:[{type:s,value:i}]}},e,n,r)}(i,s,o,a):gt(rt(n,c||i,void 0,r,!1),s,o,a);u.level="error",mt(e,c,u,"onerror")}))}function ft(){(0,v.oq)("unhandledrejection",(t=>{const[e,n,r]=yt();if(!e.getIntegration(pt))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(ut()||i&&i.__sentry_own_request__)return!0;const s=(0,R.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:rt(n,i,void 0,r,!0);s.level="error",mt(e,i,s,"onunhandledrejection")}))}function gt(t,e,n,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,_=(0,R.HD)(e)&&e.length>0?e:(0,ht.l4)();return 0===c.length&&c.push({colno:u,filename:_,function:"?",in_app:!0,lineno:d}),t}function mt(t,e,n,r){(0,i.EG)(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function yt(){const t=(0,l.Gd)(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}pt.__initStatic();const Et=["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"];class vt{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=vt.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&(0,d.hl)(at,"setTimeout",St),this._options.setInterval&&(0,d.hl)(at,"setInterval",St),this._options.requestAnimationFrame&&(0,d.hl)(at,"requestAnimationFrame",Tt),this._options.XMLHttpRequest&&"XMLHttpRequest"in at&&(0,d.hl)(XMLHttpRequest.prototype,"send",bt);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:Et).forEach(Rt)}}function St(t){return function(...e){const n=e[0];return e[0]=dt(n,{mechanism:{data:{function:(0,y.$P)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Tt(t){return function(e){return t.apply(this,[dt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,y.$P)(t)},handled:!1,type:"instrument"}})])}}function bt(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&(0,d.hl)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,y.$P)(e)},handled:!1,type:"instrument"}},r=(0,d.HK)(e);return r&&(n.mechanism.data.handler=(0,y.$P)(r)),dt(e,n)}))})),t.apply(this,e)}}function Rt(t){const e=at,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,d.hl)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=dt(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,y.$P)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,dt(r,{mechanism:{data:{function:"addEventListener",handler:(0,y.$P)(r),target:t},handled:!1,type:"instrument"}}),i])}})),(0,d.hl)(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)}})))}vt.__initStatic();const Dt=["fatal","error","warning","log","info","debug"];var xt=n(26956);class kt{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=kt.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){if(this.options.console&&(0,v.oq)("console",wt),this.options.dom&&(0,v.oq)("dom",(t=this.options.dom,function(e){let n,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof i&&(i=[i]);try{const t=e.event;n=function(t){return!!t&&!!t.target}(t)?(0,ht.Rt)(t.target,{keyAttrs:i,maxStringLength:s}):(0,ht.Rt)(t,{keyAttrs:i,maxStringLength:s})}catch(t){n="<unknown>"}0!==n.length&&(0,l.Gd)().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})})),this.options.xhr&&(0,v.oq)("xhr",Ut),this.options.fetch&&(0,v.oq)("fetch",Gt),this.options.history&&(0,v.oq)("history",$t),this.options.sentry){const t=(0,l.Gd)().getClient();t&&t.on&&t.on("beforeSendEvent",Nt)}var t}}function Nt(t){(0,l.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,i.jH)(t)},{event:t})}function wt(t){const e={category:"console",data:{arguments:t.args,logger:"console"},level:(n=t.level,"warn"===n?"warning":Dt.includes(n)?n:"log"),message:(0,s.nK)(t.args," ")};var n;if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${(0,s.nK)(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}(0,l.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})}function Ut(t){const{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[v.xU];if(!e||!n||!r)return;const{method:i,url:s,status_code:o,body:a}=r,c={method:i,url:s,status_code:o},u={xhr:t.xhr,input:a,startTimestamp:e,endTimestamp:n};(0,l.Gd)().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function Gt(t){const{startTimestamp:e,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};(0,l.Gd)().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};(0,l.Gd)().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function $t(t){let e=t.from,n=t.to;const r=(0,xt.en)(at.location.href);let i=(0,xt.en)(e);const s=(0,xt.en)(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),(0,l.Gd)().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function Yt(t,e,n=250,r,i,o,a){if(!(o.exception&&o.exception.values&&a&&(0,R.V9)(a.originalException,Error)))return;const c=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;var u,d;c&&(o.exception.values=(u=It(t,e,i,a.originalException,r,o.exception.values,c,0),d=n,u.map((t=>(t.value&&(t.value=(0,s.$G)(t.value,d)),t)))))}function It(t,e,n,r,i,s,o,a){if(s.length>=n+1)return s;let c=[...s];if((0,R.V9)(r[i],Error)){Ot(o,a);const s=t(e,r[i]),u=c.length;Bt(s,i,u,a),c=It(t,e,n,r[i],i,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if((0,R.V9)(r,Error)){Ot(o,a);const u=t(e,r),d=c.length;Bt(u,`errors[${s}]`,d,a),c=It(t,e,n,r,i,[u,...c],u,d)}})),c}function Ot(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function Bt(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}kt.__initStatic();class Ct{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=Ct.id,this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){}preprocessEvent(t,e,n){const r=n.getOptions();Yt(Q,r.stackParser,r.maxValueLength,this._key,this._limit,t,e)}}Ct.__initStatic();class jt{static __initStatic(){this.id="HttpContext"}constructor(){this.name=jt.id}setupOnce(){}preprocessEvent(t){if(!at.navigator&&!at.location&&!at.document)return;const e=t.request&&t.request.url||at.location&&at.location.href,{referrer:n}=at.document||{},{userAgent:r}=at.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:i};t.request=s}}jt.__initStatic();class Pt{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Pt.id}setupOnce(t,e){}processEvent(t){if(t.type)return t;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Mt(t,e)&&!!At(t,e))))}(t,e)||!!function(t,e){const n=Lt(e),r=Lt(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Mt(t,e)&&!!At(t,e)))}(t,e))}(t,this._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return this._previousEvent=t}}function At(t,e){let n=Ht(t),r=Ht(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(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 Mt(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Lt(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Ht(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}Pt.__initStatic();const qt="?";function Wt(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 Jt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ft=/\((\S*)(?::(\d+))(?::(\d+))\)/,Kt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,zt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Vt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Xt=[[30,t=>{const e=Jt.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=Ft.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=Zt(e[1]||qt,e[2]);return Wt(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=Kt.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=zt.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]||qt;return[n,t]=Zt(n,t),Wt(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=Vt.exec(t);return e?Wt(e[2],e[1]||qt,+e[3],e[4]?+e[4]:void 0):void 0}]],Qt=(0,y.pE)(...Xt),Zt=(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]:qt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};const te=6e4;const ee=30;function ne(t,e,n=function(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(0,D.$2)(new j("Not adding Promise because buffer limit was 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 D.cW(((n,r)=>{let i=e.length;if(!i)return n(!0);const s=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,D.WD)(t).then((()=>{--i||(clearTimeout(s),n(!0))}),r)}))}))}}}(t.bufferSize||ee)){let i={};function s(s){const o=[];if(G(s,((e,n)=>{const r=B(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(i,r)){const i=re(e,n);t.recordDroppedEvent("ratelimit_backoff",r,i)}else o.push(e)})),0===o.length)return(0,D.WD)();const a=w(s[0],o),c=e=>{G(a,((n,r)=>{const i=re(n,r);t.recordDroppedEvent(e,B(r),i)}))};return n.add((()=>e({body:Y(a,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),i=function(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n]=t.split(":",2),s=parseInt(e,10),o=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))i[t]=r+o;else i.all=r+o}else o?i.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?te:r-e}(o,r):429===e&&(i.all=r+6e4);return i}(i,t),t)),(t=>{throw c("network_error"),t})))).then((t=>t),(t=>{if(t instanceof j)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error("Skipped sending event because buffer is full."),c("queue_overflow"),(0,D.WD)();throw t}))}return s.__sentry__baseTransport__=!0,{send:s,flush:t=>n.drain(t)}}function re(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let ie;function se(t,e=function(){if(ie)return ie;if((0,E.Du)(at.fetch))return ie=at.fetch.bind(at);const t=at.document;let e=at.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){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return ie=e.bind(at)}()){let n=0,i=0;return ne(t,(function(r){const s=r.body.length;n+=s,i++;const o={body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&i<15,...t.fetchOptions};try{return e(t.url,o).then((t=>(n-=s,i--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return ie=void 0,n-=s,i--,(0,D.$2)(t)}}))}const oe=4;function ae(t){return ne(t,(function(e){return new D.cW(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===oe&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)}))}))}const ce=[new c,new h,new vt,new kt,new pt,new Ct,new Pt,new jt];function ue(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=ce),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),at.SENTRY_RELEASE&&at.SENTRY_RELEASE.id&&(t.release=at.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(0,y.Sq)(t.stackParser||Qt),integrations:g(t),transport:t.transport||((0,E.Ak)()?se:ae)};!function(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?r.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,l.Gd)();n.getScope().update(e.initialScope);const i=new t(e);n.bindClient(i)}(_t,e),t.autoSessionTracking&&function(){if(void 0===at.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const t=(0,l.Gd)();t.captureSession&&(de(t),(0,v.oq)("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&de((0,l.Gd)())})))}()}function de(t){t.startSession({ignoreDuration:!0}),t.captureSession()}},51131:function(t,e,n){n.d(e,{J:function(){return r}});const r="production"},71195:function(t,e,n){n.d(e,{RP:function(){return u},cc:function(){return c},fH:function(){return a}});var r=n(71235),i=n(96893),s=n(12343),o=n(67597);function a(){return(0,r.YO)("globalEventProcessors",(()=>[]))}function c(t){a().push(t)}function u(t,e,n,r=0){return new i.cW(((i,a)=>{const c=t[r];if(null===e||"function"!=typeof c)i(e);else{const d=c({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===d&&s.kg.log(`Event processor "${c.id}" dropped event`),(0,o.J8)(d)?d.then((e=>u(t,e,n,r+1).then(i))).then(null,a):u(t,d,n,r+1).then(i).then(null,a)}}))}},64487:function(t,e,n){n.d(e,{$e:function(){return o},Tb:function(){return i},e:function(){return s}});var r=n(95659);function i(t,e){return(0,r.Gd)().captureException(t,{captureContext:e})}function s(t){(0,r.Gd)().configureScope(t)}function o(t){(0,r.Gd)().withScope(t)}},95659:function(t,e,n){n.d(e,{Gd:function(){return f},cu:function(){return p}});var r=n(62844),i=n(21170),s=n(12343),o=n(71235),a=n(51131),c=n(10350),u=n(9015);const d=4,_=100;class h{constructor(t,e=new c.s,n=d){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=c.s.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._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:(0,r.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((r,s)=>{r.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},s)})),n}captureMessage(t,e,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),s=new Error(t);return this._withClient(((r,o)=>{r.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:i},o)})),i}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,r.DM)();return t.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=_}=r.getOptions&&r.getOptions()||{};if(a<=0)return;const c={timestamp:(0,i.yW)(),...t},u=o?(0,s.Cf)((()=>o(c,e))):c;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,e),n.addBreadcrumb(u,a))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=l(this);try{t(this)}finally{l(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||(this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&(0,u.RJ)(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=a.J}=n&&n.getOptions()||{},{userAgent:s}=o.n2.navigator||{},c=(0,u.Hv)({release:r,environment:i,user:e.getUser(),...s&&{userAgent:s},...t}),d=e.getSession&&e.getSession();return d&&"ok"===d.status&&(0,u.CT)(d,{status:"exited"}),this.endSession(),e.setSession(c),c}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=p().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function p(){return o.n2.__SENTRY__=o.n2.__SENTRY__||{extensions:{},hub:void 0},o.n2}function l(t){const e=p(),n=g(e);return m(e,t),n}function f(){const t=p();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=p()){return e=t,!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)&&!g(t).isOlderThan(d)||m(t,new h),g(t);var e}(t)}function g(t){return(0,o.YO)("hub",(()=>new h),t)}function m(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},10350:function(t,e,n){n.d(e,{s:function(){return c}});var r=n(67597),i=n(21170),s=n(62844),o=n(71195),a=n(9015);class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=u()}static clone(t){const e=new c;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata},e._propagationContext={...t._propagationContext}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&(0,a.CT)(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,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},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,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();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;if("function"==typeof t){const e=t(this);return e instanceof c?e:this}return t instanceof c?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):(0,r.PO)(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),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=u(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,i.yW)(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,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._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={},n){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}this._applyFingerprint(t);const r=this._getBreadcrumbs(),i=[...t.breadcrumbs||[],...r];return t.breadcrumbs=i.length>0?i:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},(0,o.RP)([...n||[],...(0,o.fH)(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?(0,s.lE)(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function u(){return{traceId:(0,s.DM)(),spanId:(0,s.DM)().substring(16)}}},9015:function(t,e,n){n.d(e,{CT:function(){return a},Hv:function(){return o},RJ:function(){return c}});var r=n(21170),i=n(62844),s=n(20535);function o(t){const e=(0,r.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,s.Jr)({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&a(n,t),n}function a(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,r.ph)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},90454:function(t,e,n){n.d(e,{_:function(){return s}});var r=n(20535),i=n(51131);function s(t,e,n){const s=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:a}=n&&n.getUser()||{},c=(0,r.Jr)({environment:s.environment||i.J,release:s.release,user_segment:a,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",c),c}},76890:function(t,e,n){n.d(e,{T:function(){return m},l:function(){return g}});var r=n(12343),i=n(67597),s=n(95659),o=n(47522),a=n(42533),c=n(9791);let u=!1;function d(){const t=(0,c.x1)();if(t){const e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}d.tag="sentry_tracingErrorCallback";var _=n(65544),h=n(78069);function p(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function l(t,e,n){if(!(0,o.z)(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let s;return"function"==typeof e.tracesSampler?(s=e.tracesSampler(n),t.setMetadata({sampleRate:Number(s)})):void 0!==n.parentSampled?s=n.parentSampled:void 0!==e.tracesSampleRate?(s=e.tracesSampleRate,t.setMetadata({sampleRate:Number(s)})):(s=1,t.setMetadata({sampleRate:s})),a=s,((0,i.i2)(a)||"number"!=typeof a&&"boolean"!=typeof a?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(a)} of type ${JSON.stringify(typeof a)}.`),0):!(a<0||a>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${a}.`),0))?s?(t.sampled=Math.random()<s,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t);var a}function f(t,e){const n=this.getClient(),i=n&&n.getOptions()||{},s=i.instrumenter||"sentry",o=t.instrumenter||"sentry";s!==o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),t.sampled=!1);let a=new h.Y(t,this);return a=l(a,i,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function g(t,e,n,r,i,s,o){const a=t.getClient(),c=a&&a.getOptions()||{};let u=new _.io(e,t,n,r,o,i);return u=l(u,c,{parentSampled:e.parentSampled,transactionContext:e,...s}),u.sampled&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),a&&a.emit&&a.emit("startTransaction",u),u}function m(){const t=(0,s.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=f),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=p),u||(u=!0,(0,a.oq)("error",d),(0,a.oq)("unhandledrejection",d)))}},65544:function(t,e,n){n.d(e,{AT:function(){return a},io:function(){return d}});var r=n(21170),i=n(12343),s=n(38903),o=n(78069);const a={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},c=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class u extends s.gB{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,r.ph)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class d extends o.Y{constructor(t,e,n=a.idleTimeout,r=a.finalTimeout,s=a.heartbeatInterval,o=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=s,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=c[4],o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=c[3],this.finish())}),this._finalTimeout)}finish(t=(0,r.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const n=e.startTimestamp<t,r=(this._finalTimeout+this._idleTimeout)/1e3,s=e.endTimestamp-this.startTimestamp<r;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=JSON.stringify(e,void 0,2);n?s||i.kg.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):i.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return n&&s})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new u(e,n,this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=c[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=c[1],this.finish(t))}),this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=(0,r.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=c[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=c[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},38903:function(t,e,n){n.d(e,{Dr:function(){return u},gB:function(){return c}});var r=n(62844),i=n(21170),s=n(12343),o=n(77638),a=n(20535);class c{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class u{constructor(t={}){this.traceId=t.traceId||(0,r.DM)(),this.spanId=t.spanId||(0,r.DM)().substring(16),this.startTimestamp=t.startTimestamp||(0,i.ph)(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}get name(){return this.description||""}set name(t){this.setName(t)}startChild(t){const e=new u({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){const n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},s.kg.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);const e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){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(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==e&&this.setStatus(e),this}setName(t){this.description=t}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&s.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:(0,i.ph)()}toTraceparent(){return(0,o.$p)(this.traceId,this.spanId,this.sampled)}toContext(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}},61250:function(t,e,n){n.d(e,{g4:function(){return o}});var r=n(67597),i=n(95659),s=n(47522);function o(t,e,n=(()=>{})){const o=function(t){const e={...t};return void 0!==e.name&&void 0===e.description&&(e.description=e.name),e}(t),a=(0,i.Gd)(),c=a.getScope(),u=c.getSpan(),d=function(t,e,n){if((0,s.z)())return e?e.startChild(n):t.startTransaction(n)}(a,u,o);function _(){d&&d.finish(),a.getScope().setSpan(u)}let h;c.setSpan(d);try{h=e(d)}catch(t){throw d&&d.setStatus("internal_error"),n(t),_(),t}return(0,r.J8)(h)?Promise.resolve(h).then((()=>{_()}),(t=>{d&&d.setStatus("internal_error"),n(t),_()})):_(),h}},78069:function(t,e,n){n.d(e,{Y:function(){return c}});var r=n(12343),i=n(20535),s=n(95659),o=n(90454),a=n(38903);class c extends a.Dr{constructor(t,e){super(t),delete this.description,this._measurements={},this._contexts={},this._hub=e||(0,s.Gd)(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new a.gB(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp);const i=this.metadata,s={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(s)}toContext(){const t=super.toContext();return(0,i.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||(0,s.Gd)(),e=t.getClient();if(!e)return{};const n=t.getScope(),r=(0,o._)(this.traceId,e,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);const a=this.metadata.source;return a&&"url"!==a&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(t){this._hub=t}}},9791:function(t,e,n){n.d(e,{x1:function(){return i}});var r=n(95659);function i(t){return(t||(0,r.Gd)()).getScope().getTransaction()}},47522:function(t,e,n){n.d(e,{z:function(){return i}});var r=n(95659);function i(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=(0,r.Gd)().getClient(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},97914:function(t,e,n){n.d(e,{jK:function(){return h}});var r=n(42718),i=n(22716),s=n(28737),o=n(21791),a=n(96169),c=n(20024),u=n(31370),d=n(89889),_=n(758);const h={BrowserTracing:r.gE,Apollo:i._,Express:s.N,GraphQL:o.k,Mongo:a._,Mysql:c.m,Postgres:u.E,Prisma:d.g};("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,_.r)()},99181:function(t,e,n){n.d(e,{EN:function(){return u},IQ:function(){return d},bU:function(){return s}});var r=n(67597),i=n(12343);const s="baggage",o="sentry-",a=/^sentry-/,c=8192;function u(t){if(!(0,r.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>({...t,..._(e)})),{});else{if(!t)return;e=_(t)}const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(a)&&(t[e.slice(o.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}function d(t){if(t)return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce(((t,[e,n],r)=>{const s=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,o=0===r?s:`${t},${s}`;return o.length>c?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):o}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${o}${e}`]=n),t)),{}))}function _(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}},58464:function(t,e,n){n.d(e,{Rt:function(){return o},l4:function(){return c},qT:function(){return u}});var r=n(67597);const i=(0,n(71235).Rf)(),s=80;function o(t,e={}){try{let n=t;const r=5,i=[];let o=0,c=0;const u=" > ",d=u.length;let _;const h=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||s;for(;n&&o++<r&&(_=a(n,h),!("html"===_||o>1&&c+i.length*d+_.length>=p));)i.push(_),c+=_.length,n=n.parentNode;return i.reverse().join(u)}catch(t){return"<unknown>"}}function a(t,e){const n=t,i=[];let s,o,a,c,u;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const d=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(d&&d.length)d.forEach((t=>{i.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),s=n.className,s&&(0,r.HD)(s))for(o=s.split(/\s+/),u=0;u<o.length;u++)i.push(`.${o[u]}`);const _=["aria-label","type","name","title","alt"];for(u=0;u<_.length;u++)a=_[u],c=n.getAttribute(a),c&&i.push(`[${a}="${c}"]`);return i.join("")}function c(){try{return i.document.location.href}catch(t){return""}}function u(t){return i.document&&i.document.querySelector?i.document.querySelector(t):null}},64307:function(t,e,n){function r(t){let e,n=t[0],r=1;for(;r<t.length;){const i=t[r],s=t[r+1];if(r+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=s(n)):"call"!==i&&"optionalCall"!==i||(n=s(((...t)=>n.call(e,...t))),e=void 0)}return n}n.d(e,{x:function(){return r}})},68518:function(t,e,n){function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:function(){return i},n:function(){return r}})},42533:function(t,e,n){n.d(e,{xU:function(){return _},oq:function(){return l}});var r=n(67597),i=n(12343),s=n(20535),o=n(30360),a=n(8823),c=n(71235);const u=(0,c.Rf)(),d=(0,c.Rf)(),_="__sentry_xhr_v2__",h={},p={};function l(t,e){h[t]=h[t]||[],h[t].push(e),function(t){if(!p[t])switch(p[t]=!0,t){case"console":"console"in c.n2&&i.RU.forEach((function(t){t in c.n2.console&&(0,s.hl)(c.n2.console,t,(function(e){return i.LD[t]=e,function(...e){f("console",{args:e,level:t});const n=i.LD[t];n&&n.apply(c.n2.console,e)}}))}));break;case"dom":!function(){if(!d.document)return;const t=f.bind(null,"dom"),e=T(t,!0);d.document.addEventListener("click",e,!1),d.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=d[e]&&d[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,s.hl)(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=T(t);o.handler=r,e.call(this,n,r,i)}o.refCount++}catch(t){}return e.call(this,n,r,i)}})),(0,s.hl)(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--,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(!d.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;(0,s.hl)(t,"open",(function(t){return function(...e){const n=e[1],i=this[_]={method:(0,r.HD)(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};(0,r.HD)(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const t=this[_];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}f("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,s.hl)(this,"onreadystatechange",(function(t){return function(...e){return o(),t.apply(this,e)}})):this.addEventListener("readystatechange",o),(0,s.hl)(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this[_];return i&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),(0,s.hl)(t,"send",(function(t){return function(...e){const n=this[_];return n&&void 0!==e[0]&&(n.body=e[0]),f("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":(0,a.t$)()&&(0,s.hl)(c.n2,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:m(e),method:g(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:m(e),method:g(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return f("fetch",{...i}),t.apply(c.n2,e).then((t=>(f("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw f("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}));break;case"history":!function(){if(!function(){const t=u.chrome,e=t&&t.app&&t.app.runtime,n="history"in u&&!!u.history.pushState&&!!u.history.replaceState;return!e&&n}())return;const t=d.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=y,e=String(n);y=e,f("history",{from:t,to:e})}return t.apply(this,e)}}d.onpopstate=function(...e){const n=d.location.href,r=y;if(y=n,f("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},(0,s.hl)(d.history,"pushState",e),(0,s.hl)(d.history,"replaceState",e)}();break;case"error":b=d.onerror,d.onerror=function(t,e,n,r,i){return f("error",{column:r,error:i,line:n,msg:t,url:e}),!(!b||b.__SENTRY_LOADER__)&&b.apply(this,arguments)},d.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":R=d.onunhandledrejection,d.onunhandledrejection=function(t){return f("unhandledrejection",t),!(R&&!R.__SENTRY_LOADER__)||R.apply(this,arguments)},d.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("unknown instrumentation type:",t)}}(t)}function f(t,e){if(t&&h[t])for(const n of h[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,o.$P)(n)}\nError:`,e)}}function g(t,e){return!!t&&"object"==typeof t&&!!t[e]}function m(t){return"string"==typeof t?t:t?g(t,"url")?t.url:t.toString?t.toString():"":""}let y;const E=1e3;let v,S;function T(t,e=!1){return n=>{if(!n||S===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===v||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}(S,n))&&(t({event:n,name:r,global:e}),S=n),clearTimeout(v),v=d.setTimeout((()=>{v=void 0}),E)}}let b=null,R=null},67597:function(t,e,n){n.d(e,{Cy:function(){return g},HD:function(){return u},J8:function(){return f},Kj:function(){return l},PO:function(){return _},TX:function(){return a},V9:function(){return y},VW:function(){return o},VZ:function(){return i},cO:function(){return h},fm:function(){return c},i2:function(){return m},kK:function(){return p},pt:function(){return d},y1:function(){return E}});const r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function s(t,e){return r.call(t)===`[object ${e}]`}function o(t){return s(t,"ErrorEvent")}function a(t){return s(t,"DOMError")}function c(t){return s(t,"DOMException")}function u(t){return s(t,"String")}function d(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function _(t){return s(t,"Object")}function h(t){return"undefined"!=typeof Event&&y(t,Event)}function p(t){return"undefined"!=typeof Element&&y(t,Element)}function l(t){return s(t,"RegExp")}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function g(t){return _(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function m(t){return"number"==typeof t&&t!=t}function y(t,e){try{return t instanceof e}catch(t){return!1}}function E(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}},12343:function(t,e,n){n.d(e,{Cf:function(){return o},LD:function(){return s},RU:function(){return i},kg:function(){return a}});var r=n(71235);const i=["debug","info","warn","error","log","assert","trace"],s={};function o(t){if(!("console"in r.n2))return t();const e=r.n2.console,n={},i=Object.keys(s);i.forEach((t=>{const r=s[t];n[t]=e[t],e[t]=r}));try{return t()}finally{i.forEach((t=>{e[t]=n[t]}))}}const a=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((n=>{e[n]=(...e)=>{t&&o((()=>{r.n2.console[n](`Sentry Logger [${n}]:`,...e)}))}})):i.forEach((t=>{e[t]=()=>{}})),e}()},62844:function(t,e,n){n.d(e,{DM:function(){return s},Db:function(){return c},EG:function(){return u},YO:function(){return d},jH:function(){return a},lE:function(){return _}});var r=n(20535),i=n(71235);function s(){const t=i.n2,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>e.getRandomValues(new Uint8Array(1))[0])}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function o(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function a(t){const{message:e,event_id:n}=t;if(e)return e;const r=o(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c(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 u(t,e){const n=o(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function d(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}function _(t){return Array.isArray(t)?t:[t]}},61422:function(t,e,n){n.d(e,{$y:function(){return o},KV:function(){return i},l$:function(){return s}});var r=n(68518);function i(){return!(0,r.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function s(t,e){return t.require(e)}function o(e){let n;try{n=s(t,e)}catch(t){}try{const{cwd:r}=s(t,"process");n=s(t,`${r()}/node_modules/${e}`)}catch(t){}return n}t=n.hmd(t)},20535:function(t,e,n){n.d(e,{$Q:function(){return u},HK:function(){return d},Jr:function(){return g},Sh:function(){return h},_j:function(){return _},hl:function(){return a},xp:function(){return c},zf:function(){return f}});var r=n(58464),i=n(67597),s=n(12343),o=n(57321);function a(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);"function"==typeof i&&u(i,r),t[e]=i}function c(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function u(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,c(t,"__sentry_original__",e)}catch(t){}}function d(t){return t.__sentry_original__}function _(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function h(t){if((0,i.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...l(t)};if((0,i.cO)(t)){const e={type:t.type,target:p(t.target),currentTarget:p(t.currentTarget),...l(t)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function p(t){try{return(0,i.kK)(t)?(0,r.Rt)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function l(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function f(t,e=40){const n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,o.$G)(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:(0,o.$G)(r,e)}return""}function g(t){return m(t,new Map)}function m(t,e){if((0,i.PO)(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=m(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(m(t,e))})),r}return t}},70442:function(t,e,n){n.d(e,{oA:function(){return i}});var r=n(26956);function i(t,e={}){const n=t.method&&t.method.toUpperCase();let i="",s="url";e.customRoute||t.route?(i=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,s="route"):(t.originalUrl||t.url)&&(i=(0,r.rt)(t.originalUrl||t.url||""));let o="";return e.method&&n&&(o+=n),e.method&&e.path&&(o+=" "),e.path&&i&&(o+=i),[o,s]}},30360:function(t,e,n){n.d(e,{$P:function(){return u},Sq:function(){return a},pE:function(){return o}});const r=50,i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function o(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const o=[],a=t.split("\n");for(let t=n;t<a.length;t++){const n=a[t];if(n.length>1024)continue;const s=i.test(n)?n.replace(i,"$1"):n;if(!s.match(/\S*Error: /)){for(const t of e){const e=t(s);if(e){o.push(e);break}}if(o.length>=r)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),s.test(e[e.length-1].function||"")&&(e.pop(),s.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,r).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(o)}}function a(t){return Array.isArray(t)?o(...t):t}const c="<anonymous>";function u(t){try{return t&&"function"==typeof t&&t.name||c}catch(t){return c}}},57321:function(t,e,n){n.d(e,{$G:function(){return i},U0:function(){return o},nK:function(){return s}});var r=n(67597);function i(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function s(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const i=t[e];try{(0,r.y1)(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function o(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!(0,r.HD)(t)&&((0,r.Kj)(e)?e.test(t):!!(0,r.HD)(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}},8823:function(t,e,n){n.d(e,{Ak:function(){return s},Du:function(){return o},t$:function(){return a}});var r=n(12343);const i=(0,n(71235).Rf)();function s(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function o(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function a(){if(!s())return!1;if(o(i.fetch))return!0;let t=!1;const e=i.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=o(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}},96893:function(t,e,n){n.d(e,{$2:function(){return o},WD:function(){return s},cW:function(){return a}});var r,i=n(67597);function s(t){return new a((e=>{e(t)}))}function o(t){return new a(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(r||(r={}));class a{constructor(t){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new a(((n,r)=>{this._handlers.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._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new a(((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)}))}))}__init(){this._resolve=t=>{this._setResult(r.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(r.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===r.PENDING&&((0,i.J8)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===r.RESOLVED&&t[1](this._value),this._state===r.REJECTED&&t[2](this._value),t[0]=!0)}))}}}},21170:function(t,e,n){n.d(e,{Z1:function(){return h},ph:function(){return d},yW:function(){return u}});var r=n(61422),i=n(71235);t=n.hmd(t);const s=(0,i.Rf)(),o={nowSeconds:()=>Date.now()/1e3},a=(0,r.KV)()?function(){try{return(0,r.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=s;if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),d=c.nowSeconds.bind(c);let _;const h=(()=>{const{performance:t}=s;if(!t||!t.now)return void(_="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=i<e,a=t.timing&&t.timing.navigationStart,c="number"==typeof a?Math.abs(a+n-r):e;return o||c<e?i<=c?(_="timeOrigin",t.timeOrigin):(_="navigationStart",a):(_="dateNow",r)})()},77638:function(t,e,n){n.d(e,{$p:function(){return a},KA:function(){return o}});var r=n(99181),i=n(62844);const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function o(t,e){const n=function(t){if(!t)return;const e=t.match(s);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),o=(0,r.EN)(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{},d={traceId:a||(0,i.DM)(),spanId:(0,i.DM)().substring(16),sampled:u};return c&&(d.parentSpanId=c),o&&(d.dsc=o),{traceparentData:n,dynamicSamplingContext:o,propagationContext:d}}function a(t=(0,i.DM)(),e=(0,i.DM)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},26956:function(t,e,n){function r(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],search:n,hash:r,relative:e[5]+n+r}}function i(t){return t.split(/[\?#]/,1)[0]}function s(t){return t.split(/\\?\//).filter((t=>t.length>0&&","!==t)).length}n.d(e,{$A:function(){return s},en:function(){return r},rt:function(){return i}})},71235:function(t,e,n){function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{Rf:function(){return s},YO:function(){return o},n2:function(){return i}});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function s(){return i}function o(t,e,n){const r=n||i,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}}}]);
|
|
//# sourceMappingURL=sentry.6aa6a8ca.js.map
|