PageSourceSearch

https://whop.com/_web/assets/gha-35971278800-1/exports-CSkmXAhq.js

js whop.com collected 2026-09-24 08:32:51 UTC 47,912 bytes, 7 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4cfbf593-2463-59db-bddf-15c4867dad77")}catch(e){}}();
3var e=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,t=globalThis,n=`10.43.0`;function r(){return i(t),t}function i(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.43.0`,t[n]=t[`10.43.0`]||{}}function a(e,r,i=t){let a=i.__SENTRY__=i.__SENTRY__||{},o=a[n]=a[`10.43.0`]||{};return o[e]||(o[e]=r())}var o=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],s=`Sentry Logger `,c={};function l(e){if(!(`console`in t))return e();let n=t.console,r={},i=Object.keys(c);i.forEach(e=>{let t=c[e];r[e]=n[e],n[e]=t});try{return e()}finally{i.forEach(e=>{n[e]=r[e]})}}function u(){ne().enabled=!0}function d(){ne().enabled=!1}function f(){return ne().enabled}function p(...e){te(`log`,...e)}function m(...e){te(`warn`,...e)}function ee(...e){te(`error`,...e)}function te(n,...r){e&&f()&&l(()=>{t.console[n](`${s}[${n}]:`,...r)})}function ne(){return e?a(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var h={enable:u,disable:d,isEnabled:f,log:p,warn:m,error:ee},re=50,ie=/\(error: (.*)\)/,ae=/captureMessage|captureException/;function oe(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
4`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=ie.test(n)?n.replace(ie,`$1`):n;if(!o.match(/\S*Error: /)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=re+r)break}}return ce(i.slice(r))}}function se(e){return Array.isArray(e)?oe(...e):e}function ce(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(le(t).function||``)&&t.pop(),t.reverse(),ae.test(le(t).function||``)&&(t.pop(),ae.test(le(t).function||``)&&t.pop()),t.slice(0,re).map(e=>({...e,filename:e.filename||le(t).filename,function:e.function||`?`}))}function le(e){return e[e.length-1]||{}}var ue=`<anonymous>`;function de(e){try{return!e||typeof e!=`function`?ue:e.name||ue}catch{return ue}}function fe(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function pe(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}var me=Object.prototype.toString;function he(e){switch(me.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return y(e,Error)}}function g(e,t){return me.call(e)===`[object ${t}]`}function ge(e){return g(e,`ErrorEvent`)}function _e(e){return g(e,`DOMError`)}function ve(e){return g(e,`DOMException`)}function _(e){return g(e,`String`)}function ye(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function be(e){return e===null||ye(e)||typeof e!=`object`&&typeof e!=`function`}function xe(e){return g(e,`Object`)}function Se(e){return typeof Event<`u`&&y(e,Event)}function Ce(e){return typeof Element<`u`&&y(e,Element)}function we(e){return g(e,`RegExp`)}function v(e){return!!(e?.then&&typeof e.then==`function`)}function Te(e){return xe(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function y(e,t){try{return e instanceof t}catch{return!1}}function Ee(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function De(e){return typeof Request<`u`&&y(e,Request)}var Oe=t,ke=80;function Ae(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||ke;for(;n&&i++<5&&(o=je(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function je(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Oe.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
4if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&_(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Me(){try{return Oe.document.location.href}catch{return``}}function Ne(e){if(!Oe.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Pe(t,n,r){if(!(n in t))return;let i=t[n];if(typeof i!=`function`)return;let a=r(i);typeof a==`function`&&Fe(a,i);try{t[n]=a}catch{e&&h.log(`Failed to replace method "${n}" in object`,t)}}function b(t,n,r){try{Object.defineProperty(t,n,{value:r,writable:!0,configurable:!0})}catch{e&&h.log(`Failed to add non-enumerable property "${n}" to object`,t)}}function Fe(e,t){try{e.prototype=t.prototype=t.prototype||{},b(e,`__sentry_original__`,t)}catch{}}function Ie(e){return e.__sentry_original__}function Le(e){if(he(e))return{message:e.message,name:e.name,stack:e.stack,...ze(e)};if(Se(e)){let t={type:e.type,target:Re(e.target),currentTarget:Re(e.currentTarget),...ze(e)};return typeof CustomEvent<`u`&&y(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Re(e){try{return Ce(e)?Ae(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function ze(e){if(typeof e==`object`&&e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Be(e){let t=Object.keys(Le(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var x;function S(e){if(x!==void 0)return x?x(e):e();let n=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),r=t;return n in r&&typeof r[n]==`function`?(x=r[n],x(e)):(x=null,e())}function C(){return S(()=>Math.random())}function Ve(){return S(()=>Date.now())}function He(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ue(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Ee(r)?n.push(pe(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function w(e,t,n=!1){return _(e)?we(t)?t.test(e):_(t)?n?e===t:e.includes(t):!1:!1}function We(e,t=[],n=!1){return t.some(t=>w(e,t,n))}function Ge(){let e=t;return e.crypto||e.msCrypto}var Ke;function qe(){return C()*16}function T(e=Ge()){try{if(e?.randomUUID)return S(()=>e.randomUUID()).replace(/-/g,``)}catch{}return Ke||=`10000000100040008000100000000000`,Ke.replace(/[018]/g,e=>(e^(qe()&15)>>e/4).toString(16))}function Je(e){return e.exception?.values?.[0]}function Ye(e){let{message:t,event_id:n}=e;if(t)return t;let r=Je(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function Xe(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function Ze(e,t){let n=Je(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function Qe(e){if($e(e))return!0;try{b(e,`__sentry_captured__`,!0)}catch{}return!1}function $e(e){try{return e.__sentry_captured__}catch{}}var et=1e3;function E(){return Ve()/et}function tt(){let{performance:e}=t;if(!e?.now||!e.timeOrigin)return E;let n=e.timeOrigin;return()=>(n+S(()=>e.now()))/et}var nt;function D(){return(nt??=tt())()}var rt=null;function it(){let{performance:e}=t;if(!e?.now)return;let n=3e5,r=S(()=>e.now()),i=Ve(),a=e.timeOrigin;if(typeof a==`number`&&Math.abs(a+r-i)<n)return a;let o=e.timing?.navigationStart;return typeof o==`number`&&Math.abs(o+r-i)<n?o:i-r}function at(){return rt===null&&(rt=it()),rt}function ot(e){let t=D(),n={sid:T(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>ct(n)};return e&&O(n,e),n}function O(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||D(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:T()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
4ypeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function st(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),O(e,n)}function ct(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function k(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=k(r[e],t[e],n-1));return r}function A(){return T()}function j(){return T().substring(16)}var lt=`_sentrySpan`;function M(e,t){t?b(e,lt,t):delete e[lt]}function N(e){return e[lt]}var ut=100,P=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:A(),sampleRand:C()}}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,M(e,N(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&O(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e==`function`?e(this):e,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof t?n.getScopeData():xe(n)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,M(this,void 0),this._attachments=[],this.setPropagationContext({traceId:A(),sampleRand:C()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:ut;if(n<=0)return this;let r={timestamp:E(),...e,message:e.message?He(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:N(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=k(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=n?.event_id||T();if(!this._client)return e&&h.warn(`No client configured on scope - will not capture exception!`),r;let i=Error(`Sentry syntheticException`);return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){let i=r?.event_id||T();if(!this._client)return e&&h.warn(`No client configured on scope - will not capture message!`),i;let a=r?.syntheticException??Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){let r=t.event_id||n?.event_id||T();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(e&&h.warn(`No client configured on scope - will not capture event!`),r)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEac
4h(e=>{e(this)}),!1)}};function dt(){return a(`defaultCurrentScope`,()=>new P)}function ft(){return a(`defaultIsolationScope`,()=>new P)}var pt=class{constructor(e,t){let n;n=e||new P;let r;r=t||new P,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return v(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function F(){let e=i(r());return e.stack=e.stack||new pt(dt(),ft())}function mt(e){return F().withScope(e)}function ht(e,t){let n=F();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function gt(e){return F().withScope(()=>e(F().getIsolationScope()))}function _t(){return{withIsolationScope:gt,withScope:mt,withSetScope:ht,withSetIsolationScope:(e,t)=>gt(t),getCurrentScope:()=>F().getScope(),getIsolationScope:()=>F().getIsolationScope()}}function I(e){let t=i(e);return t.acs?t.acs:_t()}function L(){return I(r()).getCurrentScope()}function R(){return I(r()).getIsolationScope()}function vt(){return a(`globalScope`,()=>new P)}function z(...e){let t=I(r());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function B(){return L().getClient()}function yt(e){let{traceId:t,parentSpanId:n,propagationSpanId:r}=e.getPropagationContext(),i={trace_id:t,span_id:r||j()};return n&&(i.parent_span_id=n),i}var V=`sentry.source`,bt=`sentry.sample_rate`,xt=`sentry.previous_trace_sample_rate`,St=`sentry.op`,Ct=`sentry.origin`,wt=`sentry.idle_span_finish_reason`,Tt=`sentry.measurement_unit`,Et=`sentry.measurement_value`,Dt=`sentry.custom_span_name`,Ot=`sentry.profile_id`,kt=`sentry.exclusive_time`,At=`sentry.link.type`,jt=`gen_ai.conversation.id`;function Mt(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function Nt(e,t){e.setAttribute(`http.response.status_code`,t);let n=Mt(t);n.message!==`unknown_error`&&e.setStatus(n)}var Pt=`_sentryScope`,Ft=`_sentryIsolationScope`;function It(e){try{let n=t.WeakRef;if(typeof n==`function`)return new n(e)}catch{}return e}function Lt(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}function Rt(e,t,n){e&&(b(e,Ft,It(n)),b(e,Pt,t))}function zt(e){let t=e;return{scope:t[Pt],isolationScope:Lt(t[Ft])}}var Bt=`sentry-`,Vt=/^sentry-/;function Ht(e){let t=Wt(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.match(Vt)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function Ut(e){if(e)return Kt(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Bt}${t}`]=n),e),{}))}function Wt(e){if(!(!e||!_(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Gt(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Gt(e)}function Gt(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function Kt(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((t,[n,r],i)=>{let a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=i===0?a:`${t},${a}`;return o.length>8192?(e&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},``)}var qt=/^o(\d+)\./,Jt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Yt(e){return e===`http`||e===`https`}
4function Xt(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function Zt(e){let t=Jt.exec(e);if(!t){l(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,u=s,d=u.split(`/`);if(d.length>1&&(c=d.slice(0,-1).join(`/`),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return Qt({host:a,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Qt(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function $t(t){if(!e)return!0;let{port:n,projectId:r,protocol:i}=t;return[`protocol`,`publicKey`,`host`,`projectId`].find(e=>t[e]?!1:(h.error(`Invalid Sentry Dsn: ${e} missing`),!0))?!1:r.match(/^\d+$/)?Yt(i)?n&&isNaN(parseInt(n,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${n}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function en(e){return e.match(qt)?.[1]}function tn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=en(n)),r}function nn(e){let t=typeof e==`string`?Zt(e):Qt(e);if(!(!t||!$t(t)))return t}function H(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var rn=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function an(e){if(!e)return;let t=e.match(rn);if(!t)return;let n;return t[3]===`1`?n=!0:t[3]===`0`&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function on(e,t){let n=an(e),r=Ht(t);if(!n?.traceId)return{traceId:A(),sampleRand:C()};let i=ln(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function sn(e=A(),t=j(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function cn(e=A(),t=j(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function ln(e,t){let n=H(t?.sample_rand);if(n!==void 0)return n;let r=H(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?C()*r:r+C()*(1-r):C()}var un=!1;function dn(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=W(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function fn(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:W(e).parent_span_id,a=zt(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||j():t,trace_id:n}}function pn(e){let{traceId:t,spanId:n}=e.spanContext();return sn(t,n,G(e))}function mn(e){let{traceId:t,spanId:n}=e.spanContext();return cn(t,n,G(e))}function hn(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function U(e){return typeof e==`number`?gn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?gn(e.getTime()):D()}function gn(e){return e>9999999999?e/1e3:e}function W(e){if(vn(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(_n(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:U(i),timestamp:U(o)||void 0,status:yn(s),op:r[St],origin:r[Ct],links:hn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function _n(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function vn(e){return typeof e.getSpanJSON==`function`}function G(e){let{traceFlags:t}=e.spanContext();return t===1}function yn(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}var K=`_sentryChildSpans`,bn=`_sentryRootSpan`;function xn(e,t){b(t,bn,e[bn]||e),e[K]?e[K].add(t):b(e,K,new Set([t]))}function Sn(e,t){e[K]&&e[K].delete(t)}function Cn(e){let t=new Set;function n(e){if(!t.has(e)&&G(e)){t.add(e);let r=e[K]?Array.from(e[K]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}function q(e){return e[bn]||e}function wn(){let e=I(r());return e.getActiveSpan?e.getActiveSpan():N(L())}function Tn(){un||=(l(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function En(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||B()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Dn(e){h.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function On(t,n){if(!n?.length||!t.description)return!1;for(let r of n){if(An(r)){if(w(t.description,r))return e&&Dn(t),!0;continue}if(!r.name&&!r.op)continue;let n=r.name?w(t.description,r.name):!0,i=r.op?t.op&&w(t.op,r.op):!0;if(n&&i)return e&&Dn(t),!0}return!1}function kn(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function An(e){return typeof e==`string`||e instanceof RegExp}var jn=`production`,Mn=`_frozenDsc`;function Nn(e,t){b(e,Mn,t)}function Pn(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:tn(t)};return t.emit(`createDsc`,i),i}function Fn(e,t){let n=t.getPropagationContext();return n.dsc||Pn(n.traceId,e)}function J(e){let t=B();if(!t)return{};let n=q(e),r=W(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Mn];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Ht(l);if(u)return s(u);let d=Pn(e.spanContext().traceId,t),f=i[V],p=r.description;return f!==`url`&&p&&(d.transaction=p),En()&&(d.sampled=String(G(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??zt(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}var Y=class{constructor(e={}){this._traceId=e.traceId||A(),this._spanId=e.spanId||j()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}
4addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function X(e,t=100,n=1/0){try{return Ln(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function In(e,t=3,n=100*1024){let r=X(e,t);return Vn(r)>n?In(e,t-1,n):r}function Ln(e,t,n=1/0,r=1/0,i=Hn()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Rn(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Ln(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Le(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Ln(e,t,c-1,r,i),d++}return o(t),u}function Rn(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return`[Domain]`;if(e===`domainEmitter`)return`[DomainEmitter]`;if(typeof global<`u`&&t===global)return`[Global]`;if(typeof window<`u`&&t===window)return`[Window]`;if(typeof document<`u`&&t===document)return`[Document]`;if(Ee(t))return pe(t);if(Te(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${de(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=zn(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function zn(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Bn(e){return~-encodeURI(e).split(/%..|./).length}function Vn(e){return Bn(JSON.stringify(e))}function Hn(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function Un(e,t=[]){return[e,t]}function Wn(e,t){let[n,r]=e;return[n,[...r,t]]}function Gn(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function Kn(e,t){return Gn(e,(e,n)=>t.includes(n))}function qn(e){let n=i(t);return n.encodePolyfill?n.encodePolyfill(e):new TextEncoder().encode(e)}function Jn(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[qn(r),e]:r.push(typeof e==`string`?qn(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(X(n))}i(e)}}return typeof r==`string`?r:Yn(r)}function Yn(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function Xn(e){return[{type:`span`},e]}function Zn(e){let t=typeof e.data==`string`?qn(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Qn={session:`session`,sessions:`session`,attachment:`attachment`,transaction:`transaction`,event:`error`,client_report:`internal`,user_report:`default`,profile:`profile`,profile_chunk:`profile`,replay_event:`replay`,replay_recording:`replay`,check_in:`monitor`,feedback:`feedback`,span:`span`,raw_security:`security`,log:`log_item`,metric:`metric`,trace_metric:`metric`};function $n(e){return Qn[e]}function er(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function tr(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Xt(r)},...i&&{trace:i}}}function nr(e,t){if(!t)return e;let n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function rr(e,t,n,r){let i=er(n);return Un({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Xt(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function ir(e,t,n,r){let i=er(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;nr(e,n?.sdk);let o=tr(e,i,r,t);return delete e.sdkProcessingMetadata,Un(o,[[{type:a},e]])}function ar(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=J(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Xt(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!On(W(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=W(e);return s(t)||(Tn(),t)}:W,f=[];for(let e of l){let t=d(e);t&&f.push(Xn(t))}return Un(o,f)}function or(t){if(!e)return;let{description:n=`< unknown name >`,op:r=`< unknown op >`,parent_span_id:i}=W(t),{spanId:a}=t.spanContext(),o=G(t),s=q(t),c=s===t,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${r}`,`name: ${n}`,`ID: ${a}`];if(i&&u.push(`parent ID: ${i}`),!c){let{op:e,description:t}=W(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}h.log(`${l}
5  ${u.join(`
6  `)}`)}function sr(t){if(!e)return;let{description:n=`< unknown name >`,op:r=`< unknown op >`}=W(t),{spanId:i}=t.spanContext(),a=`[Tracing] Finishing "${r}" ${q(t)===t?`root `:``}span "${n}" with ID ${i}`;h.log(a)}function cr(t,n,r,i=wn()){let a=i&&q(i);a&&(e&&h.log(`[Measurement] Setting measurement on root span: ${t} = ${n} ${r}`),a.addEvent(t,{[Et]:n,[Tt]:r}))}function lr(e){if(!e||e.length===0)return;let t={};
6return e.forEach(e=>{let n=e.attributes||{},r=n[Tt],i=n[Et];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}var ur=1e3,dr=class{constructor(e={}){this._traceId=e.traceId||A(),this._spanId=e.spanId||j(),this._startTime=e.startTimestamp||D(),this._links=e.links,this._attributes={},this.setAttributes({[Ct]:`manual`,[St]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=U(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(V,`custom`),this}end(e){this._endTime||(this._endTime=U(e),sr(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[St],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:yn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ct],profile_id:this._attributes[Ot],exclusive_time:this._attributes[kt],measurements:lr(this._events),is_segment:this._isStandaloneSpan&&q(this)===this||void 0,segment_id:this._isStandaloneSpan?q(this).spanContext().spanId:void 0,links:hn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){e&&h.log(`[Tracing] Adding an event to span:`,t);let i=fr(n)?n:r||D(),a=fr(n)?{}:n||{},o={name:t,time:U(i),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let t=B();if(t&&t.emit(`spanEnd`,this),!(this._isStandaloneSpan||this===q(this)))return;if(this._isStandaloneSpan){this._sampled?hr(ar([this],t)):(e&&h.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),t&&t.recordDroppedEvent(`sample_rate`,`span`));return}let n=this._convertSpanToTransaction();n&&(zt(this).scope||L()).captureEvent(n)}_convertSpanToTransaction(){if(!pr(W(this)))return;this._name||=(e&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:t,isolationScope:n}=zt(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=Cn(this).filter(e=>e!==this&&!mr(e)).map(e=>W(e)).filter(pr),a=this._attributes[V];delete this._attributes[Dt],i.forEach(e=>{delete e.data[Dt]});let o={contexts:{trace:dn(this)},spans:i.length>ur?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,ur):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:J(this)},request:r,...a&&{transaction_info:{source:a}}},s=lr(this._events);return s&&Object.keys(s).length&&(e&&h.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(s,void 0,2)),o.measurements=s),o}};function fr(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function pr(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function mr(e){return e instanceof dr&&e.isStandaloneSpan()}function hr(e){let t=B();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function gr(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return _r(i,t,n,r)}function _r(e,t,n,r){return v(e)?e.then(e=>(n(),r(e),e),e=>{throw t(e),n(),e}):(n(),r(e),e)}function vr(t,n,r){if(!En(t))return[!1];let i,a;typeof t.tracesSampler==`function`?(a=t.tracesSampler({...n,inheritOrSampleWith:e=>typeof n.parentSampleRate==`number`?n.parentSampleRate:typeof n.parentSampled==`boolean`?Number(n.parentSampled):e}),i=!0):n.parentSampled===void 0?t.tracesSampleRate!==void 0&&(a=t.tracesSampleRate,i=!0):a=n.parentSampled;let o=H(a);if(o===void 0)return e&&h.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!o)return e&&h.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler==`function`?`tracesSampler returned 0 or false`:`a negative sampling decision was inherited or tracesSampleRate is set to 0`}`),[!1,o,i];let s=r<o;return s||e&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[s,o,i]}var yr=`__SENTRY_SUPPRESS_TRACING__`;function br(e,t){let n=Tr();if(n.startSpan)return n.startSpan(e,t);let r=wr(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return z(s,()=>kr(a)(()=>{let n=L(),o=Or(n,a),s=e.onlyIfParent&&!o?new Y:Cr({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return M(n,s),gr(()=>t(s),()=>{let{status:e}=W(s);s.isRecording()&&(!e||e===`ok`)&&s.setStatus({code:2,message:`internal_error`})},()=>{s.end()})}))}function xr(e){let t=Tr();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=wr(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>z(e.scope,t):i===void 0?e=>e():e=>Sr(i,e))(()=>{let t=L(),a=Or(t,i);return e.onlyIfParent&&!a?new Y:Cr({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function Sr(e,t){let n=Tr();return n.withActiveSpan?n.withActiveSpan(e,t):z(n=>(M(n,e||void 0),t(n)))}function Cr({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!En()){let r=new Y;return(n||!e)&&Nn(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...J(r)}),r}let i=R(),a;if(e&&!n)a=Dr(e,r,t),xn(e,a);else if(e){let n=J(e),{traceId:i,spanId:o}=e.spanContext(),s=G(e);a=Er({traceId:i,parentSpanId:o,...t},r,s),Nn(a,n)}else{let{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=Er({traceId:e,parentSpanId:o,...t},r,s),n&&Nn(a,n)}return or(a),Rt(a,r,i),a}function wr(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=U(e.startTime),delete n.startTime,n}return t}function Tr(){return I(r())}function Er(t,n,r){let i=B(),a=i?.getOptions()||{},{name:o=``}=t,s={spanAttributes:{...t.attributes},spanName:o,parentSampled:r};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??r,l=s.spanAttributes,u=n.getPropagationContext(),[d,f,p]=n.getScopeData().sdkProcessingMetadata[yr]?[!1]:vr(a,{name:o,parentSampled:c,attributes:l,parentSampleRate:H(u.dsc?.sample_rate)},u.sampleRand),m=new dr({...t,attributes:{[V]:`custom`,[bt]:f!==void 0&&p?f:void 0,...l},sampled:d});return!d&&i&&(e&&h.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,`transaction`)),i&&i.emit(`spanStart`,m),m}function Dr(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=t.getScopeData().sdkProcessingMetadata[yr]?!1:G(e),o=a?new dr({...n,parentSpanId:r,traceId:i,sampled:a}):new Y({traceId:i});xn(e,o);let s=B();return s&&(s.emit(`spanStart`,o),n.endTimestamp&&s.emit(`spanEnd`,o)),o}function Or(e,t){if(t)return t;if(t===null)return;let n=N(e);if(!n)return;let r=B();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?q(n):n}function kr(e){return e===void 0?e=>e():t=>Sr(e,t)}var Ar=0,jr=1,Mr=2;function Nr(e){return new Fr(t=>{t(e)})}function Pr(e){return new Fr((t,n)=>{n(e)})}var Fr=class e{constructor(e){this._state=Ar,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>
6{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===Ar)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===jr&&e[1](this._value),this._state===Mr&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===Ar){if(v(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(jr,e)},r=e=>{t(Mr,e)};try{e(n,r)}catch(e){r(e)}}};function Ir(e,t,n,r=0){try{let i=Lr(t,n,e,r);return v(i)?i:Nr(i)}catch(e){return Pr(e)}}function Lr(t,n,r,i){let a=r[i];if(!t||!a)return t;let o=a({...t},n);return e&&o===null&&h.log(`Event processor "${a.id||`?`}" dropped event`),v(o)?o.then(e=>Lr(e,n,r,i+1)):Lr(o,n,r,i+1)}var Z,Rr,zr,Q;function Br(e){let n=t._sentryDebugIds,r=t._debugIds;if(!n&&!r)return{};let i=n?Object.keys(n):[],a=r?Object.keys(r):[];if(Q&&i.length===Rr&&a.length===zr)return Q;Rr=i.length,zr=a.length,Q={},Z||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=Z?.[r];if(i&&Q&&t)Q[i[0]]=t,Z&&(Z[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Q&&Z){Q[i]=t,Z[r]=[i,t];break}}}}};return n&&o(i,n),r&&o(a,r),Q}function Vr(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Wr(e,t),r&&qr(e,r),Jr(e,n),Gr(e,i),Kr(e,a)}function Hr(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:ee}=t;$(e,`extra`,n),$(e,`tags`,r),$(e,`attributes`,i),$(e,`user`,a),$(e,`contexts`,o),e.sdkProcessingMetadata=k(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),ee&&(e.span=ee),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function $(e,t,n){e[t]=k(e[t],n,1)}function Ur(e,t){let n=vt().getScopeData();return e&&Hr(n,e.getScopeData()),t&&Hr(n,t.getScopeData()),n}function Wr(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function Gr(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Kr(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function qr(e,t){e.contexts={trace:fn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:J(t),...e.sdkProcessingMetadata};let n=W(q(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function Jr(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function Yr(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||T(),timestamp:t.timestamp||E()},l=n.integrations||e.integrations.map(e=>e.name);Xr(c,e),$r(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&Zr(c,e.stackParser);let u=ti(r,n.captureContext);n.mechanism&&Ze(c,n.mechanism);let d=i?i.getEventProcessors():[],f=Ur(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Vr(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Nr(c):Ir(m,c,n)).then(e=>(e&&Qr(e),typeof o==`number`&&o>0?ei(e,o,s):e))}function Xr(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=He(o.url,a)),a&&e.exception?.values?.forEach(e
6=>{e.value&&=He(e.value,a)})}function Zr(e,t){let n=Br(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Qr(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function $r(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ei(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:X(e.data,t,n)}}))},...e.user&&{user:X(e.user,t,n)},...e.contexts&&{contexts:X(e.contexts,t,n)},...e.extra&&{extra:X(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=X(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:X(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=X(e.contexts.flags,3,n)),r}function ti(e,t){if(!t)return e;let n=e?e.clone():new P;return n.update(t),n}function ni(e){if(e)return ri(e)||ai(e)?{captureContext:e}:e}function ri(e){return e instanceof P||typeof e==`function`}var ii=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function ai(e){return Object.keys(e).some(e=>ii.includes(e))}function oi(e,t){return L().captureException(e,ni(t))}function si(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return L().captureMessage(e,n,r)}function ci(e,t){return L().captureEvent(e,t)}function li(e,t){R().setContext(e,t)}function ui(e,t){R().setTag(e,t)}function di(e){R().setUser(e)}function fi(){let e=B();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function pi(e){R().addEventProcessor(e)}function mi(e){let n=R(),{user:r}=Ur(n,L()),{userAgent:i}=t.navigator||{},a=ot({user:r,...i&&{userAgent:i},...e}),o=n.getSession();return o?.status===`ok`&&O(o,{status:`exited`}),hi(),n.setSession(a),a}function hi(){let e=R(),t=L().getSession()||e.getSession();t&&st(t),gi(),e.setSession()}function gi(){let e=R(),t=B(),n=e.getSession();n&&t&&t.captureSession(n)}function _i(e=!1){if(e){hi();return}gi()}export{on as $,ge as $t,X as A,E as At,wn as B,Ve as Bt,Un as C,I as Ct,Gn as D,k as Dt,$n as E,A as Et,J as F,Ye as Ft,G,Ie as Gt,Cn as H,b as Ht,jn as I,T as It,pn as J,Me as Jt,U as K,Fe as Kt,kn as L,Ue as Lt,Y as M,Ze as Mt,Nn as N,Xe as Nt,er as O,O as Ot,Fn as P,Qe as Pt,cn as Q,he as Qt,On as R,We as Rt,Zn as S,z as St,Kn as T,j as Tt,Sn as U,Be as Ut,q as V,C as Vt,Tn as W,Pe as Wt,rn as X,_e as Xt,mn as Y,Ae as Yt,sn as Z,ve as Zt,dr as _,r as _n,At as _t,_i as a,De as an,Nt as at,rr as b,e as bn,R as bt,ui as c,oe as cn,Ot as ct,Yr as d,se as dn,Et as dt,Se as en,H as et,Pr as f,o as fn,St as ft,Sr as g,a as gn,V as gt,br as h,c as hn,bt as ht,si as i,be as in,Ut as it,In as j,D as jt,Jn as k,at as kt,di as l,fe as ln,wt as lt,xr as m,h as mn,xt as mt,ci as n,ye as nn,nn as nt,fi as o,_ as on,jt as ot,Nr as p,l as pn,Ct as pt,W as q,Ne as qt,oi as r,xe as rn,Bt as rt,li as s,v as sn,kt as st,pi as t,y as tn,Xt as tt,mi as u,de as un,Tt as ut,cr as v,n as vn,B as vt,tr as w,M as wt,Wn as x,yt as xt,ir as y,t as yn,L as yt,En as z,He as zt};
7//# debugId=4cfbf593-2463-59db-bddf-15c4867dad77

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.