1!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"fc473480a586a9ab3bbe1b0f259581bf19649994"}}catch(t){}}();try{(e=(new(t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="ad1e765c-c3b4-42e0-a22e-40afc6d94159",t._sentryDebugIdIdentifier="sentry-dbid-ad1e765c-c3b4-42e0-a22e-40afc6d94159")}catch(t){}var t,e;import"./index-2AOqAp2t.js";import"./supabase-7WC-CgwK.js";import"./react-vendor-BGCnsQ7a.js";import"./tanstack-BJEXcfnR.js";import"./router-CYotHXIg.js";const s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,n=globalThis,i="10.34.0";function r(){return o(n),n}function o(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||i,e[i]=e[i]||{}}function a(t,e,s=n){const r=s.__SENTRY__=s.__SENTRY__||{},o=r[i]=r[i]||{};return o[t]||(o[t]=e())}const c={};function h(){return _().enabled}function u(t,...e){s&&h()&&function(t){if(!("console"in n))return t();const e=n.console,s={},i=Object.keys(c);i.forEach(t=>{const n=c[t];s[t]=e[t],e[t]=n});try{return t()}finally{i.forEach(t=>{e[t]=s[t]})}}(()=>{n.console[t](`Sentry Logger [${t}]:`,...e)})}function _(){return s?a("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const p=function(...t){u("log",...t)},d=function(...t){u("warn",...t)},l=Object.prototype.toString;let f,g,b;function m(t){if(void 0!==f)return f?f(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),s=n;return e in s&&"function"==typeof s[e]?(f=s[e],f(t)):(f=null,t())}function S(){return m(()=>Math.random())}function v(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function y(t=function(){const t=n;return t.crypto||t.msCrypto}()){try{if(null==t?void 0:t.randomUUID)return m(()=>t.randomUUID()).replace(/-/g,"")}catch{}return g||(g="10000000100040008000100000000000"),g.replace(/[018]/g,t=>(t^(16*S()&15)>>t/4).toString(16))}function x(){return m(()=>Date.now())/1e3}function E(t,e,s=2){if(!e||"object"!=typeof e||s<=0)return e;if(t&&0===Object.keys(e).length)return t;const n={...t};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=E(n[i],e[i],s-1));return n}function w(){return y()}const L="_sentrySpan";function k(t,e){e?function(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{s&&p(`Failed to add non-enumerable property "${e}" to object`,t)}}(t,L,e):delete t[L]}function I(t){return t[L]}class P{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:w(),sampleRand:S()}}clone(){const t=new P;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,k(t,I(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(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||(b??(b=function(){const{performance:t}=n;if(!(null==t?void 0:t.now)||!t.timeOrigin)return x;const e=t.timeOrigin;return()=>(e+m(()=>t.now()))/1e3}()))(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:y()),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)}(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this.setTags({[t]:e})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,e){return this.setAttributes({[t]:e})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],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}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,s=e instanceof P?e.getScopeData():function(t){return"[object Object]"===l.call(t)}(e)?t:void 0,{tags:n,attributes:i,extra:r,user:o,contexts:a,level:c,fingerprint:h=[],propagationContext:u}=s||{};return this._tags={...this._tags,...n},this._attributes={...this._attributes,...i},this._extra={...this._extra,...r},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),h.length&&(this._fingerprint=h),u&&(this._propagationContext=u),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,k(this,void 0),this._attachments=[],this.setPropagationContext({traceId:w(),sampleRand:S()}),this._notifyScopeListeners(),this}addBreadcrumb(t,e){var s;const n="number"==typeof e?e:100;if(n<=0)return this;const i={timestamp:x(),...t,message:t.message?v(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),null==(s=this._client)||s.recordDroppedEvent("buffer_overflow","log_item")),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}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:I(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=E(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=(null==e?void 0:e.event_id)||y();if(!this._client)return s&&d("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},this),n}captureMessage(t,e,n){const i=(null==n?void 0:n.event_id)||y();if(!this._client)return s&&d("No client configured on scope - will not capture message!"),i;const r=(null==n?void 0:n.syntheticException)??new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:i},this),i}captureEvent(t,e){const n=(null==e?void 0:e.event_id)||y();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(s&&d("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h(t=>{t(this)}),this._notifyingListeners=!1)}}class C{constructor(t,e){let s,n;s=t||new P,n=e||new P,this._stack=[{scope:s}],this._isolationScope=n}withScope(e){const s=this._pushScope();let n;try{n=e(s)}catch(t){throw this._popScope(),t}return i=n,Boolean((null==i?void 0:i.then)&&"function"==typeof i.then)?n.then(t=>(this._popScope(),t),t=>{throw this._popScope(),t}):(this._popScope(),n);var i}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function T(){const t=o(r());return t.stack=t.stack||new C(a("defaultCurrentScope",()=>new P),a("defaultIsolationScope",()=>new P))}function A(t){return T().withScope(t)}function D(t,e){const s=T();return s.withScope(()=>(s.getStackTop().scope=t,e(t)))}function N(t){return T().withScope(()=>t(T().getIsolationScope()))}function j(t){const e=o(t);return e.acs?e.acs:{withIsolationScope:N,withScope:A,withSetScope:D,withSetIsolationScope:(t,e)=>N(e),getCurrentScope:()=>T().getScope(),getIsolationScope:()=>T().getIsolationScope()}}function R(t){j(r()).getIsolationScope().setUser(t)}const M=()=>{},O=(t,e)=>{!function(...t){const e=j(r());if(2===t.length){const[s,n]=t;return s?e.withSetScope(s,n):e.withScope(n)}e.withScope(t[0])}(s=>{var n;e&&s.setExtras(e),n=t,j(r()).getCurrentScope().captureException(n,void 0)})},U=t=>{R({id:t.id,email:t.email,username:t.name})},Y=()=>{R(null)};export{O as captureError,Y as clearSentryUser,M as initializeSentry,U as setSentryUser}; 2//# sourceMappingURL=sentry-g1vpddNq.js.map
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.