1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/client-DCG07f-n.js","assets/client-CJqywbVX.js","assets/rolldown-runtime-DK3IebEf.js","assets/react-B6Ljj4Nj.js","assets/react-dom-wgScMCuD.js","assets/App-o-EqjgOn.js","assets/analytics-utils-CH_PDbes.js","assets/jsx-runtime-BPq7F7qV.js","assets/localization-1bRZVjpX.js","assets/sleepDuration-C5M4NJlE.js","assets/ControlCenterCard-C1tZXjPt.js","assets/ShotTrackerDialog-DW3AftgY.js","assets/date-picker-D-8ohc08.js","assets/dist-Bx2HnzYz.js","assets/button-DGgTozSx.js","assets/IconLoader3-DI8FNjYE.js","assets/dist-CjVfGi5k.js","assets/Combination-BjQb1iIR.js","assets/dist-CoiEjSZp.js","assets/tslib.es6-BTnanv_z.js","assets/dist-B4YTNV83.js","assets/dist-DUMfV0fQ.js","assets/dist-BWSGeb9A.js","assets/createLucideIcon-Cbl0coeS.js","assets/chevron-down-CBFf-C94.js","assets/chevron-right-CsLtnN52.js","assets/useQuery-DnGJnZNQ.js","assets/QueryClientProvider-BDK-kPF-.js","assets/useMutation-C0WFDZSS.js","assets/dialog-_8_XkHTH.js","assets/x-BBKyKlvu.js","assets/LocaleOverride-CN7R9iSX.js","assets/injection_close-COXIu-MQ.js","assets/injection_medication-BlSTo_hq.js","assets/injection_pick_color-CaLYZJ8E.js","assets/auth-client-BRgeKhh-.js","assets/IconRocket-DWKnESL-.js","assets/IconCheck-Cn9zagKq.js","assets/IconChevronLeft-Bmkn69iP.js","assets/IconChevronRight-BGrlvKjS.js","assets/plus-CD7hOK0z.js","assets/IconScale-QczlyGdH.js","assets/IconTarget-NduCQ2Fj.js","assets/IconX-B2z04Dty.js","assets/src-CLF5P0SX.js","assets/input-BzxIAtKe.js","assets/label-CzhxIlwN.js","assets/dist-BEDHMi64.js","assets/input-ext-D_aoB3O0.js","assets/use-form-6RZWtt7F.js","assets/form-control-C_Vmt2f5.js","assets/dist-CNRU3R2j.js","assets/check-U5gVScSj.js","assets/dropdown-menu-fOS2mYD2.js","assets/dist-PdtxY2r8.js","assets/loader-circle-BMUokUtW.js","assets/ThemeProvider-CtoW38wd.js","assets/usePreferences-Ds_MBqJX.js","assets/textarea-CHN7Ocpf.js","assets/action-sheet-dialog-BUcVxM25.js","assets/date-stamp-B29g39Oi.js","assets/toggle-group-CL0bNBdu.js","assets/WeightProgress-D0PgkJGP.js","assets/IconInfoCircle-BO_yMhPb.js","assets/skeleton-CDO5nGKK.js","assets/switch-CYiubLkV.js","assets/tooltip-BQp3fsaR.js","assets/report-requirements-D5Lyo3Ri.js","assets/useReferralFeatureFlag-DUDN-37v.js","assets/badge-BRUlRTyZ.js","assets/user-Ch9qOd7W.js","assets/registry-BaGKyPi-.js","assets/PaywallModal-B5QVt5wt.js","assets/billing_payment_method-3QN_VLzO.js","assets/award-Ct6UHjnQ.js","assets/crown-DAraKrO1.js","assets/star-DKavMRNj.js","assets/billing-iMYTlrCg.js","assets/exports-DQI2sdNe.js","assets/usePremiumGate-B8GEntzp.js","assets/useEntitlement-qH6kUYXj.js","assets/AppPageHeader-SjJ52i_n.js","assets/IconArrowLeft-wvrZEwiu.js","assets/sonner-heRBhHSM.js","assets/useLocalizationSync-DHZ2j3zo.js","assets/ReportBannerPresentation-upbUK0Vd.js","assets/IconShield-CyDlC9gr.js","assets/import_title-Io3Q1h3C.js","assets/health-data-privacy-content-L3nhJZ10.js","assets/privacy-content-DDMtM_Bs.js","assets/terms-content-C1LANPr7.js","assets/ColorModePicker-ChCHA4ob.js","assets/BodyphaseDiagram-D9_073Be.js","assets/IconRefresh-WqugvUF5.js","assets/IconMenu2-CR298eYA.js","assets/IconLogs-BMheMVmM.js","assets/arrow-right-D3-Oj4cP.js","assets/circle-check-jitrm-8O.js","assets/scale-CDBht5ah.js","assets/gift-BwVknAyB.js","assets/heart-pulse-M2gB4L7W.js","assets/map-pin-CZ8neo6I.js","assets/usePredictionsSettings-CZTCIOy1.js","assets/DefaultPageContainer-a8tE_wkF.js","assets/useDocumentLocale-SZxVemh8.js","assets/DocumentMarkdown-D22zP5cj.js","assets/dist-O0BCAaWL.js","assets/TrackButton-4Sg3sw9W.js"])))=>i.map(i=>d[i]); 2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`d041c2b4ffc9659cab41e442799b710224dac318`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b700f6c1-880b-46a7-aa26-d6fd6c599be1`,e._sentryDebugIdIdentifier=`sentry-dbid-b700f6c1-880b-46a7-aa26-d6fd6c599be1`)}catch{}})();import{r as e}from"./rolldown-runtime-DK3IebEf.js";import"./modulepreload-polyfill-K2z2stRP.js";import{a as t}from"./analytics-utils-CH_PDbes.js";/* empty css */import{t as n}from"./jsx-runtime-BPq7F7qV.js";import{$ as r,B as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,G as f,H as p,I as m,J as h,K as ee,L as te,M as ne,O as re,Ot as g,P as _,Q as ie,R as ae,S as oe,St as se,T as ce,Tt as le,U as v,V as ue,W as de,X as y,Y as fe,Z as pe,_ as me,_t as he,a as ge,at as _e,b as ve,bt as b,c as ye,ct as x,d as S,dt as be,et as xe,f as Se,ft as Ce,g as we,gt as C,h as Te,ht as Ee,i as De,it as Oe,k as ke,l as Ae,lt as je,m as Me,mt as w,n as Ne,nt as Pe,o as Fe,ot as Ie,p as Le,pt as T,q as E,r as Re,rt as D,s as ze,st as Be,t as Ve,tt as O,u as He,ut as Ue,v as We,vt as Ge,w as k,x as Ke,xt as qe,y as A,yt as Je,z as Ye}from"./exports-DQI2sdNe.js";import{t as Xe}from"./react-B6Ljj4Nj.js";import{E as Ze,T as Qe,a as $e,i as et,n as j,r as tt,t as nt,ui as rt}from"./localization-1bRZVjpX.js";import{t as it}from"./auth-client-BRgeKhh-.js";var M={},at={};function N(e,t){return M[e]=M[e]||[],M[e].push(t),()=>{let n=M[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function P(e,t){if(!at[e]){at[e]=!0;try{t()}catch{}}}function F(e,t){let n=e&&M[e];if(n)for(let e of n)try{e(t)}catch{}}var ot=null;function st(e){let t=`error`;N(t,e),P(t,ct)}function ct(){ot=g.onerror,g.onerror=function(e,t,n,r,i){return F(`error`,{column:r,error:i,line:n,msg:e,url:t}),ot?ot.apply(this,arguments):!1},g.onerror.__SENTRY_INSTRUMENTED__=!0}var lt=null;function ut(e){let t=`unhandledrejection`;N(t,e),P(t,dt)}function dt(){lt=g.onunhandledrejection,g.onunhandledrejection=function(e){return F(`unhandledrejection`,e),!lt||lt.apply(this,arguments)},g.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function ft(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}function pt(e,t){if(!t?.length)return!1;for(let n of t){if(gt(n)){if(e.description&&h(e.description,n))return!0;continue}let t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;let r=!n.name||e.description&&h(e.description,n.name),i=!n.op||e.op&&h(e.op,n.op),a=!n.attributes||Object.entries(n.attributes).every(([t,n])=>mt(e.attributes?.[t],n));if(r&&i&&a)return!0}return!1}function mt(e,t){return typeof e==`string`&&(typeof t==`string`||t instanceof RegExp)?h(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function ht(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 gt(e){return typeof e==`string`||e instanceof RegExp}var _t=[];function vt(e){let t={};
2return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function yt(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return vt(r)}function bt(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&St(e,t,n)}),n}function xt(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function St(e,t,n){if(!n[t.name]){if(n[t.name]=t,!_t.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),_t.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))})}}function I(e){return e}function Ct(e){return!!e&&typeof e==`function`&&`_static`in e&&!!e._static}var wt=!1;function Tt(e,t){return A(``,()=>t(e),()=>e)||(wt||=(o(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0),e)}function Et(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||``,start_timestamp:e.start_timestamp,end_timestamp:e.timestamp,status:!e.status||e.status===`ok`||e.status===`cancelled`?`ok`:`error`,is_segment:!1,attributes:{...e.data},links:e.links};return a(t)}function Dt(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}function Ot(e){return e.getOptions().traceLifecycle===`stream`}function kt(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}function At(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function jt(){return`npm`}function Mt(){return!At()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function L(){return typeof window<`u`&&(!Mt()||Nt())}function Nt(){return g.process?.type===`renderer`}function Pt(e,t){let n=t.getDataCollectionOptions().userInfo?`auto`:`never`;return[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{version:2,ingest_settings:L()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}function Ft(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 It(e,t,n,i){let a=me(n),o={sent_at:new Date(r()).toISOString(),...a&&{sdk:a},...!!i&&t&&{dsn:k(t)}},s=`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()];return S(o,[s])}function Lt(e,t,n,r){let i=me(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;Ft(e,n?.sdk);let o=Se(e,i,r,t);return delete e.sdkProcessingMetadata,S(o,[[{type:a},e]])}function Rt(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function zt(e){return`${Rt(e)}${e.projectId}/envelope/`}function Bt(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Vt(e,t,n){return t||`${zt(e)}?${Bt(e,n)}`}function Ht(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...L()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ut(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=k(r)),S(a,[Ht(e,i)])}function Wt(e,t){let n=t??Gt(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Ut(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Kt().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Gt(e){return Kt().get(e)}function Kt(){return u(`clientToLogBufferMap`,()=>new WeakMap)}function qt(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...L()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Jt(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=k(r)),S(a,[qt(e,i)])}function Yt(e,t){let n=t??Xt(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Jt(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);Zt().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Xt(e){return Zt().get(e)}function Zt(){return u(`clientToMetricBufferMap`,()=>new WeakMap)}function Qt(e,t){if(e.type!==`transaction`||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||Ot(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith(`gen_ai.`)?n.push(Et(t)):r.push(t);if(n.length!==0)return e.spans=r,Pt(n,t)}var $t=Symbol.for(`SentryBufferFullError`);function en(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return ze($t);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return ye(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>kt(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var tn=6e4;function nn(e,t=r()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let i=Date.parse(`${e}`);return isNaN(i)?tn:i-t}function rn(e,t){return e[t]||e.all||0}function an(e,t,n=r()){return rn(e,t)>n}function on(e,{statusCode:t,headers:n},i=r()){let a={...e},o=n?.[`x-sentry-rate-limits`],s=n?.[`retry-after`];if(o)for(let e of o.trim().split(`,`)){let[t,n,,,r]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)a.all=i+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!r||r.split(`;`).includes(`custom`))&&(a[e]=i+s):a[e]=i+s}else s?a.all=i+nn(s,i):t===429&&(a.all=i+6e4);return a}function sn(e,t,n=en(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(Te(i,(t,n)=>{let i=Me(n);an(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=S(i[0],a),s=t=>{Le(o,[`client_report`])||Te(o,(n,r)=>{e.recordDroppedEvent(t,Me(r))})};return n.add(()=>t({body:We(o)}).then(e=>e.statusCode===413?(s(`send_error`),e):(r=on(r,e),e),e=>{throw s(`network_error`),e})).then(e=>e,e=>
2{if(e===$t)return s(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function cn(e,t,n){let r=[{type:`client_report`},{timestamp:n||ue(),discarded_events:e}];return S(t?{dsn:t}:{},[r])}function ln(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function un(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:c}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i??`ok`,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[re],exclusive_time:o?.[s],measurements:e.measurements,is_segment:!0}}function dn(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}function fn(e){e.traceLifecycle===`stream`&&(e.beforeSendTransaction||e.ignoreTransactions?.length)&&o(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}var R={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:[`incomingRequest`,`outgoingRequest`,`incomingResponse`,`outgoingResponse`],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function pn(e){return typeof e==`boolean`||`allow`in e||`deny`in e}function mn(e){return e===void 0?{...R.httpHeaders}:pn(e)?{request:e,response:e}:{request:e.request??R.httpHeaders.request,response:e.response??R.httpHeaders.response}}function hn(e){let t=e.dataCollection??{};return{userInfo:t.userInfo??R.userInfo,cookies:t.cookies??R.cookies,httpHeaders:mn(t.httpHeaders),httpBodies:t.httpBodies??R.httpBodies,urlQueryParams:t.urlQueryParams??R.urlQueryParams,graphQL:{document:t.graphQL?.document??R.graphQL.document,variables:t.graphQL?.variables??R.graphQL.variables},genAI:{inputs:t.genAI?.inputs??R.genAI.inputs,outputs:t.genAI?.outputs??R.genAI.outputs},databaseQueryData:t.databaseQueryData??R.databaseQueryData,queues:t.queues??R.queues,stackFrameVariables:t.stackFrame
2Variables??R.stackFrameVariables,frameContextLines:t.frameContextLines??R.frameContextLines}}var gn=Symbol.for(`SentryInternalError`),_n=Symbol.for(`SentryDoNotSendEventError`),vn=5e3;function z(e){return{message:e,[gn]:!0}}function yn(e){return{message:e,[_n]:!0}}function bn(e){return be(e)&&gn in e}function xn(e){return be(e)&&_n in e}function Sn(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)i(e);else if(!s){let t=e.getOptions()._flushInterval??vn;t>0&&(s=!0,o=kt(setTimeout(()=>{i(e)},t)))}}),e.on(`flush`,()=>{i(e)})}var Cn=class{constructor(e){this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle===`static`?`static`:`stream`},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=en(e.transportOptions?.bufferSize??64),this._dataCollection=hn(e),this._unhandledSessionStatus=`crashed`,e.dsn&&(this._dsn=ce(e.dsn));let{beforeSendSpan:t,traceLifecycle:n}=this._options;if(this._dsn){let t=Vt(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}Sn(this,`afterCaptureLog`,`flushLogs`,kn,Wt),Sn(this,`afterCaptureMetric`,`flushMetrics`,On,Yt)}captureException(e,t,n){let r=E();if(f(e))return r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:E(),...n},a=Ce(e)?e:String(e),o=w(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=E();if(t?.originalException&&f(t.originalException))return r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,c=we(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),c),i.event_id}captureSession(e){this.sendSession(e),i(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&(this._setupIntegrations(),fn(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),St(this,e,this._integrations),t||xt(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Qt(e,this),r=Lt(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=Ae(r,He(e));n&&(r=Ae(r,n)),this.sendEnvelope(r).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=Ke}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t)return;r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return;e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=It(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{let t=await this._transport.send(e);
2return this.emit(`afterEnvelope`,e),t}catch{return{}}return{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=bt(this,e),xt(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,a=t.exception?.values;if(a){r=!0,n=!1;for(let e of a)if(e.mechanism?.handled===!1){n=!0;break}}let o=e.status===`ok`;(o&&e.errors===0||o&&n)&&(i(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Fe(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...te(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ve(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=d(),r=m()){return this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=Dn(e),s=En(e),c=`before send for type \`${e.type||`error`}\``,l=`before_send`,u=a===void 0?void 0:ft(a),d=we(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw yn("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:wn(Tn(this,i,e,t,()=>{l=`callback_error`}),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(l,d),o){let t=e.spans||[];this.recordDroppedEvent(l,`span`,1+t.length)}throw yn(`${c} ${l===`callback_error`?`threw an error`:"returned `null`"}, will not send event.`)}let f=n.getSession()||r.getSession();if(s&&f&&this._updateSessionFromEvent(f,i),s&&typeof u==`number`&&xe()>u)throw this.recordDroppedEvent(`sample_rate`,`error`),yn(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let p=i.transaction_info;return o&&p&&i.transaction!==e.transaction&&(i.transaction_info={...p,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw xn(e)||bn(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),z(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 3Reason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===$t&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){let e=this._clearOutcomes();if(e.length===0||!this._dsn)return;let t=cn(e,this._options.tunnel&&k(this._dsn));this.sendEnvelope(t)}};function wn(e,t){let n=`${t} must return \`null\` or a valid event.`;if(he(e))return e.then(e=>{if(!T(e)&&e!==null)throw z(n);return e},e=>{throw z(`${t} rejected with ${e}`)});if(!T(e)&&e!==null)throw z(n);return e}function Tn(e,t,n,r,i){let{beforeSend:a,ignoreSpans:o,beforeSendTransaction:s}=t,c=Ct(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(En(l)&&a){let e=l;return A(``,()=>a(e,r),()=>(i(),null))}if(Dn(l)){if(c||o){let t=un(l);if(o?.length&&pt({description:t.description,op:t.op,attributes:t.data},o))return null;if(c){let e=Tt(t,c);l=Ye(n,dn(e))}if(l.spans){let t=[],n=l.spans;for(let e of n){if(o?.length&&pt({description:e.description,op:e.op,attributes:e.data},o)){ht(n,e);continue}c?t.push(Tt(e,c)):t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),l.spans=t}}if(s){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return A(``,()=>s(l,r),()=>(i(),null))}}return l}function En(e){return e.type===void 0}function Dn(e){return e.type===`transaction`}function On(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+An(e.attributes)}function kn(e){let t=0;return e.message&&(t+=e.message.length*2),t+An(e.attributes)}function An(e){if(!e)return 0;let t=0;
3return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*jn(e[0]):w(e)?t+=jn(e):t+=100}),t}function jn(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Mn(e,t){t.debug===!0&&o(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}),d().update(t.initialScope);let n=new e(t);return Nn(n),n.init(),n}function Nn(e){d().setClient(e)}var Pn=`[Filtered]`,Fn=[`auth`,`token`,`secret`,`session`,`password`,`passwd`,`pwd`,`key`,`jwt`,`bearer`,`sso`,`saml`,`csrf`,`xsrf`,`credentials`,`sid`,`identity`,`set-cookie`,`cookie`];function In(e,t){return t.some(t=>e.includes(t))}function Ln(e,t,n){if(t===!1)return!0;let r=e.toLowerCase();if(In(r,n==null?Fn:[...Fn,...n]))return!0;if(t===!0)return!1;let i=(`deny`in t?t.deny:t.allow).some(e=>r.includes(e.toLowerCase()));return`deny`in t?i:!i}function Rn(e,t,n){if(t===!1)return{};let r={};for(let i of Object.keys(e))r[i]=Ln(i,t,n)?Pn:e[i];return r}function zn(e,t){if(e&&t!==!1)return e.split(`&`).map(e=>{let n=e.indexOf(`=`),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&Ln(i,t)?`${r}=${Pn}`:e}).join(`&`)}function Bn(e,t){let n=e.indexOf(`#`),r=n===-1?e.length:n,i=e.indexOf(`?`);if(i===-1||i>r)return e;let a=e.slice(0,i),o=e.slice(i+1,r),s=e.slice(r),c=zn(o,t);return c?`${a}?${c}${s}`:`${a}${s}`}function Vn(e){return(e??_())?.getDataCollectionOptions().urlQueryParams??!0}function Hn(e,t){return e===void 0?void 0:Bn(e,Vn(t))}function Un(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Wn(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function Gn(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Kn(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:c})),i.version=c)}var qn=100;function B(e,t){let n=_(),r=m();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=qn}=n.getOptions();if(a<=0)return;let s={timestamp:ue(),...e},c=i?A(``,()=>o(()=>i(s,t)),()=>null):s;c!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,c,t),r.addBreadcrumb(c,a))}var Jn=`FunctionToString`,Yn=new WeakMap,Xn=I((()=>({name:Jn,setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n=Oe(this),r;try{Yn.has(_())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){Yn.set(e,!0)}}))),Zn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],Qn=`EventFilters`,$n=I((e={})=>{let t;return{name:Qn,setup(n){t=er(e,n.getOptions())},processEvent(n,r,i){return t||=er(e,i.getOptions()),tr(n,t)?null:n}}});function er(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Zn],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function tr(e,t){if(!e.type){if(nr(e,t.ignoreErrors)||cr(e)||ir(e,t.denyUrls)||!ar(e,t.allowUrls))return!0}else if(e.type===`transaction`&&rr(e,t.ignoreTransactions))return!0;return!1}function nr(e,t){return t?.length?ln(e).some(e=>y(e,t)):!1}function rr(e,t){if(!t?.length)return!1;let n=e.transaction;return n?y(n,t):!1}function ir(e,t){if(!t?.length)return!1;let n=sr(e);return n?y(n,t):!1}function ar(e,t){if(!t?.length)return!0;let n=sr(e);return!n||y(n,t)}function or(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function sr(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?or(t):null}catch{return null}}function cr(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function lr(e,t,n,r,i,a){if(!i.exception?.values||!a||!x(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=ur(e,t,r,a.originalException,n,i.exception.values,o,0))}
3function ur(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(x(r[i])){fr(o,s,r);let a=e(t,r[i]),l=c.length;pr(a,i,l,s),c=ur(e,t,n,r[i],i,[a,...c],a,l)}return dr(r)&&r.errors.forEach((a,l)=>{if(x(a)){fr(o,s,r);let u=e(t,a),d=c.length;pr(u,`errors[${l}]`,d,s),c=ur(e,t,n,a,i,[u,...c],u,d)}}),c}function dr(e){return Array.isArray(e.errors)}function fr(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...dr(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function pr(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function mr(e){return x(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function hr(e){return mr(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var V=new Set([]);function gr(e){let t=`console`,n=N(t,e);return P(t,yr),n}function _r(e){for(let t of e)V.add(t);return()=>{for(let t of e)V.delete(t)}}var vr=new Set;function yr(){`console`in g&&se.forEach(function(e){!vr.has(e)&&e in g.console&&(vr.add(e),D(g.console,e,function(t){return le[e]=t,function(...t){let n=t[0],r=le[e],i=V.size&&typeof n==`string`&&y(n,V);i||F(`console`,{args:t,level:e}),i||r?.apply(g.console,t)}}))})}function br(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var xr=`Dedupe`,Sr=I((()=>{let e;return{name:xr,processEvent(t){if(t.type)return t;try{if(Cr(t,e))return null}catch{}return e=t}}}));function Cr(e,t){return t?!!(wr(e,t)||Tr(e,t)):!1}function wr(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Dr(e,t)||!Er(e,t))}function Tr(e,t){let n=Or(t),r=Or(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Dr(e,t)||!Er(e,t))}function Er(e,t){let n=Je(e),r=Je(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Dr(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n||!r)return!n&&!r;try{return n.join(``)===r.join(``)}catch{return!1}}function Or(e){return e.exception?.values?.[0]}var kr=`Console`,Ar=I((e={})=>{let t=new Set(e.levels||se);return{name:kr,setup(n){let r=gr(({args:e,level:r})=>{_()===n&&t.has(r)&&jr(r,e)});if(n.registerCleanup(r),e.filter){let t=_r(e.filter);n.registerCleanup(t)}}}});function jr(e,t){let n={category:`console`,data:{arguments:t,logger:`console`},level:br(e),message:Mr(t)};if(e===`assert`){if(t[0]===!1){let e=t.slice(1);n.message=e.length>0?`Assertion failed: ${Mr(e)}`:`Assertion failed`,n.data.arguments=e}else return}B(n,{input:t,level:e})}function Mr(e){return`util`in g&&typeof g.util.format==`function`?g.util.format(...e):fe(e,` `)}var Nr=`ConversationId`,Pr=I((()=>({name:Nr,setup(e){e.on(`spanStart`,e=>{let t=d().getScopeData(),n=m().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=oe(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(l,r)}})}}))),Fr=g;function Ir(){if(!(`fetch`in Fr))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Lr(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Rr(){if(typeof EdgeRuntime==`string`)return!0;if(!Ir())return!1;if(Lr(Fr.fetch))return!0;let e=!1,t=Fr.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Lr(n.contentWindow.fetch)),t.head.removeChild(n)}catch{}return e}function zr(e){let t=`fetch`,n=N(t,e);return P(t,()=>Br()),n}function Br(e){(!L()||Rr())&&D(g,`fetch`,function(t){return new Proxy(t,{apply(t,n,r){let i=Error(),{method:a,url:o}=Hr(r),s={args:r,fetchData:{method:a,url:o},startTimestamp:p()*1e3,virtualError:i,headers:Ur(r)};return e||F(`fetch`,{...s}),Reflect.apply(t,g,r).then(async t=>(e?e(t):F(`fetch`,{...s,endTimestamp:p()*1e3,response:t}),t),e=>{F(`fetch`,{...s,endTimestamp:p()*1e3,error:e}),x(e)&&e.stack===void 0&&(e.stack=i.stack,O(e,`framesToPop`,1));let t=_()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&x(e)&&e.name===`TypeError`&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(s.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:O(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})})}function H(e,t){return be(e)&&!!e[t]}function Vr(e){return typeof e==`string`?e:e?H(e,`url`)?e.url:e.toString?e.toString():``:``}function Hr(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Vr(t),method:H(n,`method`)?String(n.method).toUpperCase():Ee(t)&&H(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Vr(t),method:H(t,`method`)?String(t.method).toUpperCase():`GET`}}function Ur(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Ee(t))return new Headers(t.headers)}catch{}}function Wr(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var U=g,Gr=80,W={};try{typeof Node<`u`&&(W.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,`parentNode`).get),typeof Element<`u`&&(W.tagName=Object.getOwnPropertyDescriptor(Element.prototype,`tagName`).get,W.id=Object.getOwnPropertyDescriptor(Element.prototype,`id`).get,W.className=Object.getOwnPropertyDescriptor(Element.prototype,`className`).get,W.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<`u`&&(W.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,`dataset`).get)}catch{}function G(e,t,n){let r=W[t];if(r)try{return r.call(e,n)}catch{}let i=e[t];return typeof i==`function`?i.call(e,n):i}function Kr(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||Gr;for(;n&&i++<5&&(o=qr(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=G(n,`parentNode`);return r.reverse().join(` > `)}catch{return`<unknown>`}}function qr(e,t){let n=[],r=G(e,`tagName`);if(!r)return``;if(typeof HTMLElement<`u`&&e instanceof HTMLElement){let t=G(e,`dataset`);if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let i=t?.length?t.filter(t=>G(e,`getAttribute`,t)).map(t=>[t,G(e,`getAttribute`,t)]):null;
3if(i?.length)i.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=G(e,`id`);t&&n.push(`#${t}`);let r=G(e,`className`);if(r&&C(r)){let e=r.split(/\s+/);for(let t of e)n.push(`.${t}`)}}for(let t of[`aria-label`,`type`,`name`,`title`,`alt`]){let r=G(e,`getAttribute`,t);r&&n.push(`[${t}="${r}"]`)}return n.join(``)}function Jr(e,t,n){U.document&&U.addEventListener(e,t,n)}function Yr(e,t,n){U.document&&U.removeEventListener(e,t,n)}var Xr=e=>{let t=U.requestIdleCallback||U.setTimeout;if(U.document?.visibilityState===`hidden`)e();else{let n=!1,r=()=>{n||=(e(),!0)};Jr(`visibilitychange`,r,{once:!0,capture:!0}),t(()=>{r(),Yr(`visibilitychange`,r,{capture:!0})})}};function Zr(e,t=5){if(!g.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function Qr(){try{return U.document?.location.href??``}catch{return``}}var $r=1e3,ei,ti,ni;function ri(e){N(`dom`,e),P(`dom`,ii)}function ii(){if(!U.document)return;let e=F.bind(null,`dom`),t=si(e,!0);U.document.addEventListener(`click`,t,!1),U.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=U[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(D(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=si(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),D(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function ai(e){if(e.type!==ti)return!1;try{if(!e.target||e.target._sentryId!==ni)return!1}catch{}return!0}function oi(e,t){return e===`keypress`?!t?.tagName||!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!1}function si(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=ci(n);if(oi(n.type,r))return;O(n,`_sentryCaptured`,!0),r&&!r._sentryId&&O(r,`_sentryId`,E());let i=n.type===`keypress`?`input`:n.type;ai(n)||(e({event:n,name:i,global:t}),ti=n.type,ni=r?r._sentryId:void 0),clearTimeout(ei),ei=U.setTimeout(()=>{ni=void 0,ti=void 0},$r)}}function ci(e){try{return e.target}catch{return null}}var K;function li(){return`history`in U&&!!U.history}function ui(e){let t=`history`;N(t,e),P(t,di)}function di(){if(U.addEventListener(`popstate`,()=>{let e=U.location.href,t=K;K=e,t!==e&&F(`history`,{from:t,to:e})}),!li())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=K,i=fi(String(n));if(K=i,r===i)return e.apply(this,t);F(`history`,{from:r,to:i})}return e.apply(this,t)}}D(U.history,`pushState`,e),D(U.history,`replaceState`,e)}function fi(e){try{return new URL(e,U.location.origin).toString()}catch{return e}}var q={};function pi(e){let t=q[e];if(t)return t;let n=U[e];if(Lr(n))return q[e]=n.bind(U);let r=U.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch{}return n&&(q[e]=n.bind(U))}function mi(e){q[e]=void 0}var J=`__sentry_xhr_v3__`;function hi(e){N(`xhr`,e),P(`xhr`,gi)}function gi(){if(!U.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=p()*1e3,a=C(n[0])?n[0].toUpperCase():void 0,o=_i(n[1]);if(!a||!o)return e.apply(t,n);t[J]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[J];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}F(`xhr`,{endTimestamp:p()*1e3,startTimestamp:i,xhr:t,virtualError:r}),r=void 0,t.removeEventListener(`readystatechange`,s)}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[J];return a&&C(r)&&C(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[J];return r?(n[0]!==void 0&&(r.body=n[0]),F(`xhr`,{startTimestamp:p()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function _i(e){if(C(e))return e;try{return e.toString()}catch{}}function vi(e){if(typeof Element>`u`)return!1;try{return e instanceof Element}catch{return!1}}var Y=g,yi=0,bi=[];function xi(e){if(yi>0)return!0;let t=e?bi.findIndex(t=>Si(t,e)):-1;return t!==-1&&(bi.splice(t,1),!0)}function Si(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function Ci(){yi++,setTimeout(()=>{yi--})}function X(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,`__sentry_wrapped__`)){let t=e.__sentry_wrapped__;return typeof t==`function`?t:e}if(Oe(e))return e}catch{return e}let r=function(...n){g._sentryWrappedDepth=(g._sentryWrappedDepth||0)+1;try{let r=n.map(e=>X(e,t));return e.apply(this,r)}catch(e){throw Ci(),ae(r=>{r.addEventProcessor(e=>(t.mechanism&&(de(e,void 0,void 0),v(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),Ne(e)}),e}finally{g._sentryWrappedDepth=(g._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}_e(r,e),O(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function wi(){let e=Qr(),{referrer:t}=Y.document||{},{userAgent:n}=Y.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}function Ti(e,t){let n=Z(e,t),r={type:Mi(t),value:Ni(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ei(e,t,n,r){let i=_()?.getOptions().normalizeDepth,a=Bi(t),o={__serialized__:pe(t,i)};if(a)return{exception:{values:[Ti(e,a)]},extra:o};let s={exception:{values:[{type:Ue(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Ri(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Z(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function Di(e,t){return{exception:{values:[Ti(e,t)]}}}function Z(e,t){let n=t.stacktrace||t.stack||``,r=ki(t),i=Ai(t);try{return e(n,r,i)}catch{}return[]}var Oi=/Minified React error #\d+;/i;function ki(e){return e&&Oi.test(e.message)?1:0}function Ai(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function ji(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0&&e instanceof WebAssembly.Exception}function Mi(e){let t=e?.name;return!t&&ji(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ni(e){let t=e?.message;return ji(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?hr(t.error):hr(e):`No error message`}function Pi(e,t,n,r){let i=Ii(e,t,n?.syntheticException||void 0,r);
3return v(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),ye(i)}function Fi(e,t,n=`info`,r,i){let a=Li(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),ye(a)}function Ii(e,t,n,r,i){let a;if(je(t)&&t.error)return Di(e,t.error);if(Ie(t)||Be(t)){let i=t;if(`stack`in t){a=Di(e,t);let i=a.exception?.values?.[0];if(r&&n&&i&&!i.stacktrace){let t=Z(e,n);t.length&&(i.stacktrace={frames:t},v(a,{synthetic:!0}))}}else{let t=i.name||(Ie(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Li(e,o,n,r),de(a,o)}return a}if(x(t))return Di(e,t);if(T(t)||Ue(t))return a=Ei(e,t,n,i),v(a,{synthetic:!0}),a;let o=String(t);return a=Li(e,o,n,r),de(a,o,void 0),v(a,{synthetic:!0}),a}function Li(e,t,n,r){let i={};if(r&&n){let r=Z(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),v(i,{synthetic:!0})}if(Ce(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Ri(e,{isUnhandledRejection:t}){let n=Pe(e),r=t?`promise rejection`:`exception`;return je(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ue(e)?`Event \`${zi(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function zi(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Bi(e){return Object.values(e).find(x)}var Vi=class extends Cn{constructor(e){let t=Hi(e);Kn(t,`browser`,[`browser`],Y.SENTRY_SDK_SOURCE||jt()),super(t),this._unhandledSessionStatus=`unhandled`;let{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?`auto`:`never`,...t._metadata.sdk.settings});let{sendClientReports:r}=this._options;Y.document&&Y.document.addEventListener(`visibilitychange`,()=>{Y.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on(`beforeSendSession`,Gn)}eventFromException(e,t){return Pi(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Fi(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function Hi(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:Y.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Ui=40;function Wi(e,t=pi(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw mi(`fetch`),e}finally{n-=a,r--}}return sn(e,i,en(e.bufferSize||Ui))}var Gi=30,Ki=50;function qi(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}
3var Ji=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Yi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xi=/\((\S*)(?::(\d+))(?::(\d+))\)/,Zi=/at (.+?) ?\(data:(.+?),/,Qi=[Gi,e=>{let t=e.match(Zi);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Ji.exec(e);if(n){let[,e,t,r]=n;return qi(e,`?`,+t,+r)}let r=Yi.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=Xi.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=na(r[1]||`?`,r[2]);return qi(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],$i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ea=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ta=Ge(Qi,[Ki,e=>{let t=$i.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=ea.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=na(n,e),qi(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),na=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ra=1024,ia=`Breadcrumbs`,aa=I(((e={})=>{let t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ia,setup(e){t.dom&&ri(sa(e,t.dom)),t.xhr&&hi(ca(e)),t.fetch&&zr(la(e)),t.history&&ui(ua(e)),t.sentry&&e.on(`beforeSendEvent`,oa(e))}}}));function oa(e){return function(t){_()===e&&B({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ee(t)},{event:t})}}function sa(e,t){return function(n){if(_()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>ra&&(o=ra),typeof a==`string`&&(a=[a]);try{let e=n.event,t=da(e)?e.target:e;r=Kr(t,{keyAttrs:a,maxStringLength:o}),i=Zr(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),B(s,{event:n.event,name:n.name,global:n.global})}}function ca(e){return function(t){if(_()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[J];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Wr(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),B(d,u)}}function la(e){return function(t){if(_()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`)){if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),B(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Wr(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),B(s,o)}}}}function ua(e){return function(t){if(_()!==e)return;let n=t.from,r=t.to,i=Un(Y.location.href),a=n?Un(n):void 0,o=Un(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),B({category:`navigation`,data:{from:n,to:r}})}}function da(e){return!!e&&!!e.target}var fa=`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`.split(`,`),pa=`BrowserApiErrors`,ma=I(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:pa,setupOnce(){t.setTimeout&&D(Y,`setTimeout`,ha),t.setInterval&&D(Y,`setInterval`,ha),t.requestAnimationFrame&&D(Y,`requestAnimationFrame`,ga),t.XMLHttpRequest&&`XMLHttpRequest`in Y&&D(XMLHttpRequest.prototype,`send`,_a);let e=t.eventTarget;
3e&&(Array.isArray(e)?e:fa).forEach(e=>va(e,t))}}}));function ha(e){return function(...t){let n=t[0];return t[0]=X(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${b(e)}`}}),e.apply(this,t)}}function ga(e){return function(t){return e.apply(this,[X(t,{mechanism:{data:{handler:b(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function _a(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&D(n,e,function(t){let n={mechanism:{data:{handler:b(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Oe(t);return r&&(n.mechanism.data.handler=b(r)),X(t,n)})}),e.apply(this,t)}}function va(e,t){let n=Y[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(D(n,`addEventListener`,function(n){return function(r,i,a){try{ya(i)&&(i.handleEvent=X(i.handleEvent,{mechanism:{data:{handler:b(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&ba(this,r,i),n.apply(this,[r,X(i,{mechanism:{data:{handler:b(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),D(n,`removeEventListener`,function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,`__sentry_wrapped__`)){let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}}catch{}return e.call(this,t,n,r)}}))}function ya(e){return typeof e.handleEvent==`function`}function ba(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var xa=I((e={})=>{let t=e.lifecycle??`page`;return{name:`BrowserSession`,setupOnce(){if(Y.document===void 0)return;ge({ignoreDuration:!0});let e=!1;Xr(()=>{e||=(Re(),!0)});let n=m(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&Re())}),t===`route`&&ui(({from:t,to:n})=>{t!==n&&(ge({ignoreDuration:!0}),Re(),e=!0)})}}}),Sa=`CultureContext`,Ca=I((()=>({name:Sa,preprocessEvent(e){let t=wa();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=wa();t&&Dt(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function wa(){try{let e=Y.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Ta=`GlobalHandlers`,Ea=I(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Ta,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&Da(e),t.onunhandledrejection&&Oa(e)}}}));function Da(e){st(t=>{let{stackParser:n,attachStacktrace:r}=Ma();if(_()!==e||xi(t))return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=ja(Ii(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Ve(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Oa(e){ut(t=>{let{stackParser:n,attachStacktrace:r}=Ma();if(_()!==e||xi())return;let i=ka(t),a=w(i)?Aa(i):Ii(n,i,void 0,r,!0);a.level=`error`,Ve(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function ka(e){if(w(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function Aa(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function ja(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:Na(t)??Qr(),function:`?`,in_app:!0}),e}function Ma(){return _()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Na(e){if(C(e)&&e.length!==0)return e.startsWith(`data:`)?`<${Wn(e,!1)}>`:e}var Pa=I(()=>({name:`HttpContext`,preprocessEvent(e,t,n){if(!Y.navigator&&!Y.location&&!Y.document)return;let{url:r,headers:i}=wi(),a=n.getDataCollectionOptions().httpHeaders.request,o=Object.entries(e.request?.headers??{}).filter(([e])=>!(e in i)),s={...Rn(i,a),...Object.fromEntries(o)};e.request={url:r,...e.request,...Object.keys(s).length>0?{headers:s}:{headers:void 0}}},processSpan(e,t){if(!Y.navigator&&!Y.location&&!Y.document)return;let n=wi(),r=Rn(n.headers,t.getDataCollectionOptions().httpHeaders.request),i=r.Referer,{hostname:a,protocol:o}=Y.location||{};Dt(e,{[ke]:r[`User-Agent`],[ne]:o===`file:`||a===`localhost`||a===`127.0.0.1`||a===`[::1]`||!!a?.endsWith(`.localhost`),...e.is_segment&&{"url.full":e.attributes?.[`sentry.op`]===`http.client`?void 0:Hn(n.url),"http.request.header.referer":i?[i]:void 0}})}})),Fa=`cause`,Ia=5,La=`LinkedErrors`,Ra=I(((e={})=>{let t=e.limit||Ia,n=e.key||Fa;return{name:La,preprocessEvent(e,r,i){lr(Ti,i.getOptions().stackParser,n,t,e,r)}}})),za=/^HTML(\w*)Element$/;function Ba(e){if(typeof window<`u`&&e===window)return`[Window]`;if(typeof document<`u`&&e===document)return`[Document]`;if(vi(e)){let t=Va(e);if(za.test(t))return`[HTMLElement: ${Kr(e)}]`}}function Va(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Ha(){return!!Ua()}
3function Ua(){if(Y.window===void 0)return!1;let e=Y;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Qr();return!(Y===Y.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Wa(e){return[$n(),Xn(),Pr(),ma(),aa(),Ar(),Ea(),Ra(),Sr(),Pa(),Ca(),xa()]}function Ga(e={}){let t=!e.skipBrowserExtensionCheck&&Ha(),n=e.defaultIntegrations==null?Wa():e.defaultIntegrations,r=yt({integrations:e.integrations,defaultIntegrations:n}),i={...e,enabled:!t&&e.enabled,stackParser:qe(e.stackParser||ta),integrations:r,transport:e.transport||Wi};return ie(Ba),Mn(Vi,i)}function Ka(e){return T(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}var Q=e(Xe());function qa(e){let t={...e};Kn(t,`react`),De(`react`,{version:Q.version});let n=Ga(t);return ie(Ja),n}function Ja(e){return Ka(e)?`[SyntheticEvent]`:Ba(e)}var Ya=()=>`Contact Support`,Xa=()=>`СвÑзаÑÑÑÑ Ñ Ð¿Ð¾Ð´Ð´ÐµÑжкой`,Za=((e={},t={})=>(t.locale??j())===`ru`?Xa(e):Ya(e)),Qa=()=>`Error Message`,$a=()=>`СообÑение об оÑибке`,eo=((e={},t={})=>(t.locale??j())===`ru`?$a(e):Qa(e)),to=()=>`Go to Home Page`,no=()=>`ÐеÑейÑи на главнÑÑ ÑÑÑаниÑÑ`,ro=((e={},t={})=>(t.locale??j())===`ru`?no(e):to(e)),io=()=>`Hide technical details`,ao=()=>`СкÑÑÑÑ ÑеÑ
ниÑеÑкие подÑобноÑÑи`,oo=((e={},t={})=>(t.locale??j())===`ru`?ao(e):io(e)),so=()=>`Oops! Something unexpected happened`,co=()=>`Ðй! ÐÑоизоÑла непÑÐµÐ´Ð²Ð¸Ð´ÐµÐ½Ð½Ð°Ñ Ð¾Ñибка`,lo=((e={},t={})=>(t.locale??j())===`ru`?co(e):so(e)),uo=()=>`Reload Page`,fo=()=>`ÐеÑезагÑÑзиÑÑ ÑÑÑаниÑÑ`,po=((e={},t={})=>(t.locale??j())===`ru`?fo(e):uo(e)),mo=()=>`Show technical details`,ho=()=>`ÐоказаÑÑ ÑеÑ
ниÑеÑкие подÑобноÑÑи`,go=((e={},t={})=>(t.locale??j())===`ru`?ho(e):mo(e)),_o=()=>`Sign Out & Retry`,vo=()=>`ÐÑйÑи и повÑоÑиÑÑ`,yo=((e={},t={})=>(t.locale??j())===`ru`?vo(e):_o(e)),bo=()=>`Stack Trace`,xo=()=>`ТÑаÑÑиÑовка ÑÑека`,So=((e={},t={})=>(t.locale??j())===`ru`?xo(e):bo(e)),Co=()=>`This error has been automatically reported to our team. We'll investigate and fix it as soon as possible.`,wo=()=>`СообÑение об ÑÑой оÑибке авÑомаÑиÑеÑки оÑпÑавлено наÑей команде. ÐÑ Ð¸Ð·ÑÑим и иÑпÑавим ÐµÑ ÐºÐ°Ðº можно ÑкоÑее.`,To=((e={},t={})=>(t.locale??j())===`ru`?wo(e):Co(e)),Eo=()=>`We're sorry for the inconvenience. Don't worry â your data is safe. Please try one of the following solutions:`,Do=()=>`ÐÑиноÑим Ð¸Ð·Ð²Ð¸Ð½ÐµÐ½Ð¸Ñ Ð·Ð° неÑдобÑÑва. Ðе волнÑйÑеÑÑ â ваÑи даннÑе в безопаÑноÑÑи. ÐопÑобÑйÑе один из ÑледÑÑÑиÑ
ÑпоÑобов:`,Oo=((e={},t={})=>(t.locale??j())===`ru`?Do(e):Eo(e)),$=n();function ko({error:e}){nt();let[t,n]=(0,Q.useState)(!1),r=et.getQueryData($e.billing.getGateStatus.queryKey()),i=rt(r);async function a(){await it.signOut().catch(()=>{}),window.location.href=`/`}return(0,$.jsx)(`div`,{className:`from-background via-background to-muted/20 flex min-h-screen items-center justify-center bg-linear-to-br p-4`,children:(0,$.jsxs)(`div`,{className:`w-full max-w-2xl space-y-8 text-center`,children:[(0,$.jsx)(`div`,{className:`bg-destructive/10 text-destructive mx-auto flex size-16 items-center justify-center rounded-full`,children:(0,$.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`size-8`,children:(0,$.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z`})})}),(0,$.jsxs)(`div`,{className:`space-y-3`,children:[(0,$.jsx)(`h1`,{className:`text-foreground text-2xl font-bold tracking-tight`,children:lo()}),(0,$.jsx)(`p`,{className:`text-muted-foreground mx-auto max-w-md text-lg`,children:Oo()})]}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:justify-center`,children:[(0,$.jsxs)(`button`,{onClick:()=>window.location.reload(),className:`bg-primary-surface text-primary-foreground hover:bg-primary-surface/90 focus-visible:ring-ring/50 focus-visible:border-ring inline-flex h-10 items-center justify-center gap-2 rounded-lg px-6 py-2 text-sm font-medium whitespace-nowrap shadow-xs transition-all outline-none focus-visible:ring-[3px]`,children:[(0,$.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`size-4`,children:(0,$.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99`})}),po()]}),(0,$.jsxs)(`button`,{onClick:a,className:`bg-background hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring/50 focus-visible:border-ring inline-flex h-10 items-center justify-center gap-2 rounded-lg border px-6 py-2 text-sm font-medium whitespace-nowrap shadow-xs transition-all outline-none focus-visible:ring-[3px]`,children:[(0,$.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`size-4`,children:(0,$.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0-3-3m0 0 3-3m-3 3H15`})}),yo()]})]}),(0,$.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:justify-center`,children:[(0,$.jsxs)(`button`,{onClick:()=>window.location.href=`/`,className:`hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring/50 focus-visible:border-ring inline-flex h-9 items-center justify-center gap-2 rounded-lg px-4 py-2 text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px]`,children:[(0,$.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`size-4`,children:(0,$.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25`})}),ro()]}),(0,$.jsxs)(`a`,{href:i,className:`hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring/50 focus-visible:border-ring inline-flex h-9 items-center justify-center gap-2 rounded-lg px-4 py-2 text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px]`,children:[(0,$.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`size-4`,children:(0,$.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75`})}),Za()]})]}),(0,$.jsxs)(`div`,{className:`mx-auto max-w-lg pt-4`,children:[(0,$.jsx)(`button`,{onClick:()=>n(!t),className:`text-foreground hover:text-muted-foreground text-sm transition-colors`,children:t?oo():go()}),t&&(0,$.jsxs)(`div`,{className:`bg-muted/50 mt-4 rounded-lg border p-4 text-left`,children:[(0,$.jsx)(`p`,{className:`text-muted-foreground mb-2 text-xs font-semibold tracking-wide uppercase`,children:eo()}),(0,$.jsx)(`pre`,{className:`text-foreground overflow-x-auto font-mono text-sm`,children:e.message}),e.stack&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`p`,{className:`text-muted-foreground mt-4 mb-2 text-xs font-semibold tracking-wide uppercase`,children:So()}),(0,$.jsx)(`pre`,{className:`text-muted-foreground max-h-40 overflow-auto font-mono text-xs`,children:e.stack})]})]})]}),(0,$.jsx)(`p`,{className:`text-muted-foreground mx-auto max-w-sm text-sm`,children:To()})]})})}var Ao=(0,Q.createContext)(null);function jo({children:e,didCatch:t,error:n,resetErrorBoundary:r}){let i=(0,Q.useMemo)(()=>({didCatch:t,error:n,resetErrorBoundary:r}),[t,n,r]);return(0,Q.createElement)(Ao.Provider,{value:i},e)}var Mo={didCatch:!1,error:null},No=class extends Q.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Mo}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){let{didCatch:t}=this.state;t&&(this.props.onReset?.({args:e,reason:`imperative-api`}),this.setState(Mo))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&t.didCatch&&Po(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:`keys`}),this.setState(Mo))}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:a}=this.state,o=e;if(i){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof t==`function`)o=t(e);else if(n)o=(0,Q.createElement)(n,e);else if(`fallback`in this.props)o=r;else throw a}return(0,Q.createElement)(jo,{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary},o)}};function Po(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}function Fo(e,t){let n=(0,Q.forwardRef)((n,r)=>(0,Q.createElement)(No,t,(0,Q.createElement)(e,{...n,ref:r})));return n.displayName=`withErrorBoundary(${e.displayName||e.name||`Unknown`})`,n}console.log(`VITE_GLAPP_ENV`,`production`,`VERSION`,`d041c2b_1001162445`);var Io=!1;function Lo(){if(Io)return!1;let e=`glapp:stale-reload:d041c2b_1001162445`;try{if(sessionStorage.getItem(e)===`1`)return!1;sessionStorage.setItem(e,`1`)}catch{return!1}return Io=!0,!0}window.addEventListener(`vite:preloadError`,e=>{Lo()&&(e.preventDefault(),window.location.reload())}),qa({dsn:`https://b7b453e3d95d37bf13fb0279a55261b8@o4509910296231936.ingest.us.sentry.io/4509910966730755`,dataCollection:{userInfo:!1,cookies:!1,httpHeaders:{request:{deny:[`forwarded`,`-ip`,`remote-`,`via`,`-user`]},response:{deny:[`forwarded`,`-ip`,`remote-`,`via`,`-user`]}},httpBodies:[],urlQueryParams:{deny:[`forwarded`,`-ip`,`remote-`,`via`,`-user`]},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,queues:!1,graphQL:{document:!1,variables:!1}},beforeSend:Ze,beforeBreadcrumb:Qe,environment:`production`,release:`d041c2b_1001162445`,initialScope:{tags:{APP_VERSION:`d041c2b_1001162445`}},enabled:!0});var[Ro,zo]=await Promise.all([t(()=>import(`./client-DCG07f-n.js`).then(t=>e(t.default,1)),__vite__mapDeps([0,1,2,3,4])),t(()=>import(`./App-o-EqjgOn.js`),__vite__mapDeps([5,2,6,7,3,8,9,10,11,12,13,14,15,16,4,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107])),tt.initialize()]);if(!Ro||!zo)throw Error(`Failed to load application modules`);var{createRoot:Bo}=Ro,{App:Vo}=zo,Ho=Fo(Vo,{fallbackRender:({error:e})=>Io?null:(0,$.jsx)(ko,{error:e}),onError:(e,t)=>
3{Io||Ne(e,{contexts:{react:{componentStack:t.componentStack}}})}});Bo(document.getElementById(`root`)).render((0,$.jsx)(Ho,{})),setTimeout(()=>{document.getElementById(`app-footer-removable-style`)?.remove()},1e3);
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.