@vellumai/web 0.10.12-dev.202607281144.f3ff6c9 → 0.10.12-dev.202607281245.9ca3af2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-CSTkrUKQ.js → index-Crv5eKVj.js} +1 -1
- package/dist/assets/{open-workspace-file-DwiNKx9c.js → open-workspace-file-YPFhICf4.js} +2 -2
- package/dist/assets/{routes-Bpk42Bh4.js → routes-CN5d145X.js} +14 -14
- package/dist/assets/{skill-detail-page-OwX9KjzL.js → skill-detail-page-DtyXCfKn.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/build.umd-BztDmqHa.js","assets/chunk-jRWAZmH_.js","assets/esm-BBxAD5jL.js","assets/preload-helper-Cv2QeVDK.js","assets/dist-BwAT3VYQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{o as e,t}from"./chunk-jRWAZmH_.js";import{i as n,r,s as i}from"./device-settings-DXp9L4iB.js";import{$ as a,A as o,At as s,B as c,C as l,Ct as u,D as d,Dt as f,E as p,Et as m,F as h,Ft as g,G as _,H as v,I as y,It as b,J as x,K as ee,L as te,M as ne,Mt as re,N as ie,Nt as ae,O as oe,Ot as se,P as ce,Pt as le,Q as ue,R as S,S as C,St as de,T as fe,Tt as pe,U as me,V as w,X as T,Y as he,Z as ge,_ as _e,_t as ve,a as ye,at as be,b as xe,bt as Se,d as Ce,dt as we,et as Te,f as Ee,ft as De,g as Oe,gt as ke,h as Ae,ht as je,i as Me,it as Ne,j as Pe,jt as Fe,k as Ie,kt as Le,l as Re,lt as ze,mt as Be,nt as Ve,ot as He,p as Ue,pt as We,q as Ge,rt as Ke,s as qe,st as Je,t as Ye,tt as Xe,u as Ze,ut as Qe,v as $e,vt as et,w as tt,wt as nt,x as rt,xt as it,y as at,yt as ot,z as st}from"./capture-error-Bj8_eutd.js";import{c as ct,d as lt,l as ut,o as dt,r as ft,s as E,u as pt}from"./document-viewer-container-BIS1iPUz.js";import{s as mt}from"./doctor-handoff-store-vFe8-_ee.js";import{t as ht}from"./react-BFJW0bSv.js";import{F as gt,r as _t}from"./button-Dy5001j6.js";import{t as vt}from"./preload-helper-Cv2QeVDK.js";import{i as yt}from"./chunk-5KNZJZUH-Bsoom5--.js";import{A as bt,C as xt,D as St,N as Ct,S as wt,_ as Tt,b as Et,c as Dt,g as Ot,h as kt,s as At,t as jt,u as Mt,x as Nt}from"./QueryClientProvider-CMu7CkQU.js";import{f as Pt}from"./useQuery-Bz-fbQ-m.js";import{n as Ft}from"./useInfiniteQuery-Dk8q0n49.js";import{n as It}from"./useMutation-CXGTrp4W.js";import{t as Lt}from"./jsx-runtime-D3ZM-ToX.js";import{a as Rt,i as zt,o as Bt,r as Vt,s as Ht,t as Ut}from"./routes-Bpk42Bh4.js";import{t as Wt}from"./src-te3YTBG-.js";import{t as Gt}from"./toast-LgLp4obE.js";import{$ as Kt,et as qt,f as Jt,g as Yt,h as Xt,m as Zt,rt as Qt,st as $t}from"./local-mode-Ckii2tmN.js";import{t as en}from"./is-electron-m5eeGBnd.js";import{n as tn}from"./resolved-assistants-store-C-PdxK8f.js";import{Ur as nn}from"./sdk.gen-BVAVE6A_.js";import{i as rn,t as an}from"./api-errors-CFiCT7Ap.js";import{D as on,E as sn,F as cn,H as ln,M as un,N as dn,O as fn,T as pn,U as mn,_ as hn,a as gn,d as _n,m as vn,n as D,t as yn,w as bn}from"./auth-store-D5PppHY9.js";import{t as xn}from"./client.gen-CV05d-kw.js";import{c as Sn}from"./api-XwdNiVE9.js";import{E as Cn,M as wn,T as Tn,u as En,w as Dn}from"./native-biometric-N76no2Rd.js";import{i as On,t as O}from"./dist-BwAT3VYQ.js";import{u as kn}from"./routes-D9sNqB_o.js";import{t as An}from"./onboarding-store-bZ2qYISk.js";import{t as jn}from"./client-feature-flag-store-BDrcV52r.js";import{r as Mn}from"./prefs-bw85lYLp.js";import{n as Nn}from"./platform-detection-B4yEnmA8.js";import{n as Pn}from"./client-identity-BeBdVMsj.js";import{t as Fn}from"./hard-navigate-DyUrcxe0.js";import{C as In}from"./sdk.gen-B5ygTzyg.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function Ln(e,t,n){if(!(typeof window>`u`))try{localStorage.getItem(e)===t&&localStorage.setItem(e,n)}catch{}}function Rn(e){if(!(typeof window>`u`))try{localStorage.removeItem(e)}catch{}}function k(e,t){if(!(typeof window>`u`))try{let n=localStorage.getItem(e);if(n===null)return;localStorage.getItem(t)===null&&localStorage.setItem(t,n),localStorage.getItem(t)!==null&&localStorage.removeItem(e)}catch{}}function zn(e,t){if(!(typeof window>`u`))try{let n=[];for(let r=0;r<localStorage.length;r++){let i=localStorage.key(r);if(i&&i.startsWith(e)){let r=i.slice(e.length);n.push([i,t+r])}}for(let[e,t]of n)k(e,t)}catch{}}function Bn(e){let t=[];for(let n=0;n<localStorage.length;n++){let r=localStorage.key(n);r&&r.startsWith(e)&&t.push(r)}for(let e of t)localStorage.removeItem(e)}function Vn(){if(typeof window>`u`)return;let e=`vellum:selectedAssistantId`,t=`vellum:local:selectedAssistantId`,n=`vellum:currentAssistantId:`;try{if(localStorage.getItem(e)===null){let r=localStorage.getItem(t);if(r===null&&(r=Hn(n)),r===null){let e=null;for(let t=0;t<localStorage.length;t++){let r=localStorage.key(t);r&&r.startsWith(n)&&(e===null||r<e)&&(e=r)}e!==null&&(r=localStorage.getItem(e))}r&&localStorage.setItem(e,r)}localStorage.removeItem(t),Bn(n)}catch{}}function Hn(e){let t=null;try{t=sessionStorage.getItem(`vellum_active_organization_id`)}catch{return null}return t?localStorage.getItem(`${e}${t}`):null}function Un(){if(!(typeof window>`u`)){if(k(`assistantSidebarCollapsed`,`vellum:sidebar:collapsed`),k(`assistantSidebarWidth`,`vellum:sidebar:width`),k(`voice:permissionPrimerSeen`,`vellum:voice:permissionPrimerSeen`),k(`voice:ttsProvider`,`vellum:voice:ttsProvider`),k(`voice:sttProvider`,`vellum:voice:sttProvider`),k(`voice:activationKey`,`vellum:voice:activationKey`),k(`integrations.bannerDismissed`,`vellum:integrations:bannerDismissed`),k(`onboarding.tosAccepted`,`vellum:onboarding:tosAccepted`),k(`onboarding.aiDataConsent`,`vellum:onboarding:aiDataConsent`),Rn(`onboarding.completed`),Rn(`vellum:onboarding:completed`),k(`onboarding.selectedVersion`,`vellum:onboarding:selectedVersion`),k(`vellum:skillsTabTipDismissed`,`vellum:skills:tipDismissed`),k(`vellum_image_gen_mode`,`vellum:ai:imageGenMode`),k(`vellum_image_gen_model`,`vellum:ai:imageGenModel`),localStorage.getItem(`vellum:ai:imageGenProvider`)===null){let e=localStorage.getItem(`vellum:ai:imageGenMode`);e===`managed`?localStorage.setItem(`vellum:ai:imageGenProvider`,`vellum`):e===`your-own`&&localStorage.setItem(`vellum:ai:imageGenProvider`,`gemini`)}k(`vellum_web_search_mode`,`vellum:ai:webSearchMode`),k(`vellum_web_search_provider`,`vellum:ai:webSearchProvider`),k(`vellum_email_mode`,`vellum:ai:emailMode`),k(`vellum_email_byo_provider`,`vellum:ai:emailByoProvider`),k(`vellum_gemini_key`,`vellum:ai:geminiKey`),k(`vellum_perplexity_key`,`vellum:ai:perplexityKey`),k(`vellum_brave_key`,`vellum:ai:braveKey`),k(`vellum_tavily_key`,`vellum:ai:tavilyKey`),k(`vellumDebug.flags.impersonateAssistantVersion`,`vellum:debug:impersonateAssistantVersion`),k(`gw:token`,`vellum:gw:token`),k(`gw:expiresAt`,`vellum:gw:expiresAt`),k(`gw:tokenSource`,`vellum:gw:tokenSource`),k(`local:lockfile`,`vellum:local:lockfile`),k(`local:selectedAssistantId`,`vellum:local:selectedAssistantId`),zn(`voice:ttsApiKey:`,`vellum:voice:ttsApiKey:`),zn(`voice:ttsVoiceId:`,`vellum:voice:ttsVoiceId:`),zn(`voice:sttApiKey:`,`vellum:voice:sttApiKey:`),zn(`ff:client:`,`vellum:ff:`),zn(`disk-pressure-warning-dismissed-`,`vellum:diskPressureDismissed:`),zn(`vellum_current_assistant_id__`,`vellum:currentAssistantId:`),Vn(),Ln(`vellum:skills:tipDismissed`,`1`,`true`),Rn(`app.githubNudge.starred`),Rn(`app.githubNudge.bannerDismissed`),Rn(`app.githubNudge.bannerDismissedAt`),Rn(`app.discordNudge.joined`),Rn(`app.discordNudge.bannerDismissed`),Rn(`app.discordNudge.firstSeenAt`),Rn(`app.nudgeLegacy.cleaned`)}}n(),Un();var Wn={},Gn={};function Kn(e,t){return Wn[e]=Wn[e]||[],Wn[e].push(t),()=>{let n=Wn[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function qn(e,t){if(!Gn[e]){Gn[e]=!0;try{t()}catch(t){b&&s.error(`Error while instrumenting ${e}`,t)}}}function Jn(e,t){let n=e&&Wn[e];if(n)for(let r of n)try{r(t)}catch(t){b&&s.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${m(r)}\nError:`,t)}}var Yn=null;function Xn(e){let t=`error`;Kn(t,e),qn(t,Zn)}function Zn(){Yn=g.onerror,g.onerror=function(e,t,n,r,i){return Jn(`error`,{column:r,error:i,line:n,msg:e,url:t}),Yn?Yn.apply(this,arguments):!1},g.onerror.__SENTRY_INSTRUMENTED__=!0}var Qn=null;function $n(e){let t=`unhandledrejection`;Kn(t,e),qn(t,er)}function er(){Qn=g.onunhandledrejection,g.onunhandledrejection=function(e){return Jn(`unhandledrejection`,e),Qn?Qn.apply(this,arguments):!0},g.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function tr(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 nr(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 rr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var ir=[];function ar(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function or(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 ar(r)}function sr(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&lr(e,t,n)}),n}function cr(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function lr(e,t,n){if(n[t.name]){b&&s.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!ir.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),ir.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))}),b&&s.log(`Integration installed: ${t.name}`)}function ur(e){return e}function dr(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function fr(){return`npm`}function pr(){return!dr()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function mr(){return typeof window<`u`&&(!pr()||hr())}function hr(){return g.process?.type===`renderer`}function gr(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...mr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function _r(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),at(a,[gr(e,i)])}function vr(e,t){let n=t??yr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=_r(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);br().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function yr(e){return br().get(e)}function br(){return re(`clientToLogBufferMap`,()=>new WeakMap)}function xr(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,...mr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Sr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),at(a,[xr(e,i)])}function Cr(e,t){let n=t??wr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Sr(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Tr().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function wr(e){return Tr().get(e)}function Tr(){return re(`clientToMetricBufferMap`,()=>new WeakMap)}function Er(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Dr=Symbol.for(`SentryBufferFullError`);function Or(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Ee(Dr);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Ue(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Er(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var kr=60*1e3;function Ar(e,t=Ve()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?kr:r-t}function jr(e,t){return e[t]||e.all||0}function Mr(e,t,n=Ve()){return jr(e,t)>n}function Nr(e,{statusCode:t,headers:n},r=Ve()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Ar(o,r):t===429&&(i.all=r+60*1e3);return i}function Pr(e,t,n=Or(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(C(i,(t,n)=>{let i=rt(n);Mr(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=at(i[0],a),c=t=>{if(xe(o,[`client_report`])){b&&s.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}C(o,(n,r)=>{e.recordDroppedEvent(t,rt(r))})};return n.add(()=>t({body:l(o)}).then(e=>e.statusCode===413?(b&&s.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(b&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&s.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Nr(r,e),e),e=>{throw c(`network_error`),b&&s.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Dr)return b&&s.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Fr(e,t,n){let r=[{type:`client_report`},{timestamp:n||Ge(),discarded_events:e}];return at(t?{dsn:t}:{},[r])}function Ir(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 Lr(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[S],exclusive_time:o?.[te],measurements:e.measurements,is_segment:!0}}function Rr(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}}var zr=`Not capturing exception because it's already been captured.`,Br=`Discarded session because of missing or non-string release`,Vr=Symbol.for(`SentryInternalError`),Hr=Symbol.for(`SentryDoNotSendEventError`),Ur=5e3;function Wr(e){return{message:e,[Vr]:!0}}function Gr(e){return{message:e,[Hr]:!0}}function Kr(e){return!!e&&typeof e==`object`&&Vr in e}function qr(e){return!!e&&typeof e==`object`&&Hr in e}function Jr(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=Er(setTimeout(()=>{i(e)},Ur)))}),e.on(`flush`,()=>{i(e)})}var Yr=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Or(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=h(e.dsn):b&&s.warn(`No DSN provided, client will not send events.`),this._dsn){let t=lt(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})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Jr(this,`afterCaptureLog`,`flushLogs`,ni,vr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Jr(this,`afterCaptureMetric`,`flushMetrics`,ti,Cr)}captureException(e,t,n){let r=a();if(ge(e))return b&&s.log(zr),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:a(),...n},o=et(e)?e:String(e),s=Se(e),c=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>c.then(e=>this._captureEvent(e,i,r)),s?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=a();if(t?.originalException&&ge(t.originalException))return b&&s.log(zr),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},c=o.capturedSpanScope,l=o.capturedSpanIsolationScope,u=Xr(e.type);return this._process(()=>this._captureEvent(e,i,c||n,l),u),i.event_id}captureSession(e){this.sendSession(e),ee(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}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){vr(this);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()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),lr(this,e,this._integrations),t||cr(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Ae(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=_e(n,$e(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=oe}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){b&&s.warn(Br);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){b&&s.warn(Br);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Oe(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}`;b&&s.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),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{return await this._transport.send(e)}catch(e){return b&&s.error(`Error while sending envelope:`,e),{}}return b&&s.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=sr(this,e),cr(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ee(e,{...n&&{status:`crashed`},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=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Ce(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...me(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:d(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=c(),r=v()){return b&&$r(e)&&s.log(`Captured error event \`${Ir(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{b&&(qr(e)?s.log(e.message):Kr(e)?s.warn(e.message):s.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ei(e),s=$r(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:ie(a);if(s&&typeof l==`number`&&Ke()>l)return this.recordDroppedEvent(`sample_rate`,`error`),Ee(Gr(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=Xr(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Gr("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:Zr(Qr(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Gr(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw qr(e)||Kr(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Wr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Dr&&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(){b&&s.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){b&&s.log(`No outcomes to send`);return}if(!this._dsn){b&&s.log(`No dsn provided, will not send outcomes`);return}b&&s.log(`Sending outcomes:`,e);let t=Fr(e,this._options.tunnel&&ce(this._dsn));this.sendEnvelope(t)}};function Xr(e){return e===`replay_event`?`replay`:e||`error`}function Zr(e,t){let n=`${t} must return \`null\` or a valid event.`;if(u(e))return e.then(e=>{if(!ot(e)&&e!==null)throw Wr(n);return e},e=>{throw Wr(`${t} rejected with ${e}`)});if(!ot(e)&&e!==null)throw Wr(n);return e}function Qr(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:s}=t,c=!p(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if($r(l)&&i)return i(l,r);if(ei(l)){if(c||s){let t=Lr(l);if(s?.length&&o({description:t.description,op:t.op,attributes:t.data},s))return null;if(c){let e=c(t);e?l=_(n,Rr(e)):Pe()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(s?.length&&o({description:e.description,op:e.op,attributes:e.data},s)){Ie(n,e);continue}if(c){let n=c(e);n?t.push(n):(Pe(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}function $r(e){return e.type===void 0}function ei(e){return e.type===`transaction`}function ti(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+ri(e.attributes)}function ni(e){let t=0;return e.message&&(t+=e.message.length*2),t+ri(e.attributes)}function ri(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ii(e[0]):Se(e)?t+=ii(e):t+=100}),t}function ii(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function ai(e,t){return e(t.stack||``,1)}function oi(e){return Be(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function si(e){return oi(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function ci(e,t){let n={type:t.name||t.constructor.name,value:si(t)},r=ai(e,t);return r.length&&(n.stacktrace={frames:r}),n}function li(e,t){t.debug===!0&&(b?s.enable():Le(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),c().update(t.initialScope);let n=new e(t);return ui(n),n.init(),n}function ui(e){c().setClient(e)}function di(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 fi(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:le})),i.version=le)}var pi,mi=`FunctionToString`,hi=new WeakMap,gi=ur((()=>({name:mi,setupOnce(){pi=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Je(this),n=hi.has(st())&&t!==void 0?t:this;return pi.apply(n,e)}}catch{}},setup(e){hi.set(e,!0)}}))),_i=[/^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$/],vi=`EventFilters`,yi=ur((e={})=>{let t;return{name:vi,setup(n){t=xi(e,n.getOptions())},processEvent(n,r,i){return t||=xi(e,i.getOptions()),Si(n,t)?null:n}}}),bi=ur(((e={})=>({...yi(e),name:`InboundFilters`})));function xi(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_i],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Si(e,t){if(!e.type){if(Ci(e,t.ignoreErrors))return b&&s.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ue(e)}`),!0;if(ki(e))return b&&s.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ue(e)}`),!0;if(Ti(e,t.denyUrls))return b&&s.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Oi(e)}`),!0;if(!Ei(e,t.allowUrls))return b&&s.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Oi(e)}`),!0}else if(e.type===`transaction`&&wi(e,t.ignoreTransactions))return b&&s.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ue(e)}`),!0;return!1}function Ci(e,t){return t?.length?Ir(e).some(e=>Xe(e,t)):!1}function wi(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Xe(n,t):!1}function Ti(e,t){if(!t?.length)return!1;let n=Oi(e);return n?Xe(n,t):!1}function Ei(e,t){if(!t?.length)return!0;let n=Oi(e);return n?Xe(n,t):!0}function Di(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 Oi(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Di(t):null}catch{return b&&s.error(`Cannot extract url for event ${ue(e)}`),null}}function ki(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Ai(e,t,n,r,i,a){if(!i.exception?.values||!a||!ve(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=ji(e,t,r,a.originalException,n,i.exception.values,o,0))}function ji(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ve(r[i],Error)){Ni(o,s,r);let a=e(t,r[i]),l=c.length;Pi(a,i,l,s),c=ji(e,t,n,r[i],i,[a,...c],a,l)}return Mi(r)&&r.errors.forEach((a,l)=>{if(ve(a,Error)){Ni(o,s,r);let u=e(t,a),d=c.length;Pi(u,`errors[${l}]`,d,s),c=ji(e,t,n,a,i,[u,...c],u,d)}}),c}function Mi(e){return Array.isArray(e.errors)}function Ni(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Mi(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Pi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var Fi=`cause`,Ii=5,Li=`LinkedErrors`,Ri=ur(((e={})=>{let t=e.limit||Ii,n=e.key||Fi;return{name:Li,preprocessEvent(e,r,i){Ai(ci,i.getOptions().stackParser,n,t,e,r)}}}));function zi(e){let t=`console`,n=Kn(t,e);return qn(t,Bi),n}function Bi(){`console`in g&&se.forEach(function(e){e in g.console&&He(g.console,e,function(t){return Fe[e]=t,function(...t){Jn(`console`,{args:t,level:e}),Fe[e]?.apply(g.console,t)}})})}function Vi(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var A=`Dedupe`,j=ur((()=>{let e;return{name:A,processEvent(t){if(t.type)return t;try{if(Hi(t,e))return b&&s.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Hi(e,t){return t?!!(Ui(e,t)||Wi(e,t)):!1}function Ui(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ki(e,t)||!Gi(e,t))}function Wi(e,t){let n=qi(t),r=qi(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ki(e,t)||!Gi(e,t))}function Gi(e,t){let n=pe(e),r=pe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,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 Ki(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function qi(e){return e.exception?.values?.[0]}function Ji(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var Yi=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Xi(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Yi.exec(t);return n?n.slice(1):[]}function Zi(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=Ji(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function Qi(e){let t=0;for(;t<e.length&&e[t]===``;t++);let n=e.length-1;for(;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}function $i(e,t){e=Zi(e).slice(1),t=Zi(t).slice(1);let n=Qi(e.split(`/`)),r=Qi(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function ea(e,t){let n=Xi(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var ta=`RewriteFrames`,na=ur((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in g&&!!g.window,i=e.iteratee||ra({isBrowser:r,root:t,prefix:n});function a(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch{return e}}function o(e){return{...e,frames:e?.frames?.map(e=>i(e))}}return{name:ta,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=a(t)),t}}});function ra({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?$i(t,e):ea(e)}`}return r}}var ia=`ConversationId`,aa=ur((()=>({name:ia,setup(e){e.on(`spanStart`,e=>{let t=c().getScopeData(),n=v().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=ne(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(y,r)}})}})));function oa(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var sa=g;function ca(){return`history`in sa&&!!sa.history}function la(){if(!(`fetch`in sa))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ua(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function da(){if(typeof EdgeRuntime==`string`)return!0;if(!la())return!1;if(ua(sa.fetch))return!0;let e=!1,t=sa.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ua(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){b&&s.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function fa(e,t){let n=`fetch`,r=Kn(n,e);return qn(n,()=>pa(void 0,t)),r}function pa(e,t=!1){t&&!da()||He(g,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=ha(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:x()*1e3,virtualError:r,headers:ga(n)};return e||Jn(`fetch`,{...o}),t.apply(g,n).then(async t=>(e?e(t):Jn(`fetch`,{...o,endTimestamp:x()*1e3,response:t}),t),e=>{Jn(`fetch`,{...o,endTimestamp:x()*1e3,error:e}),Be(e)&&e.stack===void 0&&(e.stack=r.stack,Ne(e,`framesToPop`,1));let t=st()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Ne(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}function M(e,t){return!!e&&typeof e==`object`&&!!e[t]}function ma(e){return typeof e==`string`?e:e?M(e,`url`)?e.url:e.toString?e.toString():``:``}function ha(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:ma(t),method:M(n,`method`)?String(n.method).toUpperCase():it(t)&&M(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:ma(t),method:M(t,`method`)?String(t.method).toUpperCase():`GET`}}function ga(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(it(t))return new Headers(t.headers)}catch{}}function _a(e,t){let n=ba(e,t),r={type:Ta(t),value:Ea(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function va(e,t,n,r){let i=st()?.getOptions().normalizeDepth,a=Na(t),o={__serialized__:fe(t,i)};if(a)return{exception:{values:[_a(e,a)]},extra:o};let s={exception:{values:[{type:ke(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:ja(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=ba(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function ya(e,t){return{exception:{values:[_a(e,t)]}}}function ba(e,t){let n=t.stacktrace||t.stack||``,r=Sa(t),i=Ca(t);try{return e(n,r,i)}catch{}return[]}var xa=/Minified React error #\d+;/i;function Sa(e){return e&&xa.test(e.message)?1:0}function Ca(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function wa(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Ta(e){let t=e?.name;return!t&&wa(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ea(e){let t=e?.message;return wa(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?si(t.error):si(e):`No error message`}function Da(e,t,n,r){let i=ka(e,t,n?.syntheticException||void 0,r);return he(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Ue(i)}function Oa(e,t,n=`info`,r,i){let a=Aa(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Ue(a)}function ka(e,t,n,r,i){let a;if(je(t)&&t.error)return ya(e,t.error);if(De(t)||We(t)){let i=t;if(`stack`in t)a=ya(e,t);else{let t=i.name||(De(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Aa(e,o,n,r),T(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Be(t)?ya(e,t):ot(t)||ke(t)?(a=va(e,t,n,i),he(a,{synthetic:!0}),a):(a=Aa(e,t,n,r),T(a,`${t}`,void 0),he(a,{synthetic:!0}),a)}function Aa(e,t,n,r){let i={};if(r&&n){let r=ba(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),he(i,{synthetic:!0})}if(et(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 ja(e,{isUnhandledRejection:t}){let n=be(e),r=t?`promise rejection`:`exception`;return je(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ke(e)?`Event \`${Ma(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ma(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Na(e){return Object.values(e).find(e=>e instanceof Error)}var Pa=class extends Yr{constructor(e){let t=Fa(e);fi(t,`browser`,[`browser`],E.SENTRY_SDK_SOURCE||fr()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;E.document&&(r||i||s)&&E.document.addEventListener(`visibilitychange`,()=>{E.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&vr(this),s&&Cr(this))}),n&&this.on(`beforeSendSession`,di)}eventFromException(e,t){return Da(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Oa(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 Fa(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:E.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Ia=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,La=g,Ra=1e3,za,Ba,Va;function Ha(e){Kn(`dom`,e),qn(`dom`,Ua)}function Ua(){if(!La.document)return;let e=Jn.bind(null,`dom`),t=Ka(e,!0);La.document.addEventListener(`click`,t,!1),La.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=La[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(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=Ka(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),He(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 Wa(e){if(e.type!==Ba)return!1;try{if(!e.target||e.target._sentryId!==Va)return!1}catch{}return!0}function Ga(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function Ka(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=qa(n);if(Ga(n.type,r))return;Ne(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ne(r,`_sentryId`,a());let i=n.type===`keypress`?`input`:n.type;Wa(n)||(e({event:n,name:i,global:t}),Ba=n.type,Va=r?r._sentryId:void 0),clearTimeout(za),za=La.setTimeout(()=>{Va=void 0,Ba=void 0},Ra)}}function qa(e){try{return e.target}catch{return null}}var Ja;function Ya(e){let t=`history`;Kn(t,e),qn(t,Xa)}function Xa(){if(La.addEventListener(`popstate`,()=>{let e=La.location.href,t=Ja;Ja=e,t!==e&&Jn(`history`,{from:t,to:e})}),!ca())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Ja,i=Za(String(n));if(Ja=i,r===i)return e.apply(this,t);Jn(`history`,{from:r,to:i})}return e.apply(this,t)}}He(La.history,`pushState`,e),He(La.history,`replaceState`,e)}function Za(e){try{return new URL(e,La.location.origin).toString()}catch{return e}}var Qa={};function $a(e){let t=Qa[e];if(t)return t;let n=La[e];if(ua(n))return Qa[e]=n.bind(La);let r=La.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(t){Ia&&s.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Qa[e]=n.bind(La))}function eo(e){Qa[e]=void 0}var to=`__sentry_xhr_v3__`;function no(e){Kn(`xhr`,e),qn(`xhr`,ro)}function ro(){if(!La.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=x()*1e3,a=de(n[0])?n[0].toUpperCase():void 0,o=io(n[1]);if(!a||!o)return e.apply(t,n);t[to]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[to];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Jn(`xhr`,{endTimestamp:x()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};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[to];return a&&de(r)&&de(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[to];return r?(n[0]!==void 0&&(r.body=n[0]),Jn(`xhr`,{startTimestamp:x()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function io(e){if(de(e))return e;try{return e.toString()}catch{}}var ao=40;function oo(e,t=$a(`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 eo(`fetch`),e}finally{n-=a,r--}}return Pr(e,i,Or(e.bufferSize||ao))}var so=30,co=50;function lo(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}var uo=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,fo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,po=/\((\S*)(?::(\d+))(?::(\d+))\)/,mo=/at (.+?) ?\(data:(.+?),/,ho=[so,e=>{let t=e.match(mo);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=uo.exec(e);if(n){let[,e,t,r]=n;return lo(e,`?`,+t,+r)}let r=fo.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=po.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=vo(r[1]||`?`,r[2]);return lo(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],go=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,N=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_o=nt(ho,[co,e=>{let t=go.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=N.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]=vo(n,e),lo(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),vo=(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]},P=1024,F=`Breadcrumbs`,I=ur(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:F,setup(e){t.console&&zi(xo(e)),t.dom&&Ha(bo(e,t.dom)),t.xhr&&no(So(e)),t.fetch&&fa(Co(e)),t.history&&Ya(wo(e)),t.sentry&&e.on(`beforeSendEvent`,yo(e))}}}));function yo(e){return function(t){st()===e&&mt({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ue(t)},{event:t})}}function bo(e,t){return function(n){if(st()!==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>P&&(dt&&s.warn(`\`dom.maxStringLength\` cannot exceed ${P}, but a value of ${o} was configured. Sentry will use ${P} instead.`),o=P),typeof a==`string`&&(a=[a]);try{let e=n.event,t=To(e)?e.target:e;r=we(t,{keyAttrs:a,maxStringLength:o}),i=ze(t)}catch{r=`<unknown>`}if(r.length===0)return;let c={category:`ui.${n.name}`,message:r};i&&(c.data={"ui.component_name":i}),mt(c,{event:n.event,name:n.name,global:n.global})}}function xo(e){return function(t){if(st()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Vi(t.level),message:Te(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Te(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;mt(n,{input:t.args,level:t.level})}}function So(e){return function(t){if(st()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[to];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:oa(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),mt(d,u)}}function Co(e){return function(t){if(st()!==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),mt(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:oa(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),mt(s,o)}}}function wo(e){return function(t){if(st()!==e)return;let n=t.from,r=t.to,i=tr(E.location.href),a=n?tr(n):void 0,o=tr(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),mt({category:`navigation`,data:{from:n,to:r}})}}function To(e){return!!e&&!!e.target}var L=`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(`,`),Eo=`BrowserApiErrors`,Do=ur(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Eo,setupOnce(){t.setTimeout&&He(E,`setTimeout`,Oo),t.setInterval&&He(E,`setInterval`,Oo),t.requestAnimationFrame&&He(E,`requestAnimationFrame`,ko),t.XMLHttpRequest&&`XMLHttpRequest`in E&&He(XMLHttpRequest.prototype,`send`,Ao);let e=t.eventTarget;e&&(Array.isArray(e)?e:L).forEach(e=>jo(e,t))}}}));function Oo(e){return function(...t){let n=t[0];return t[0]=pt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${m(e)}`}}),e.apply(this,t)}}function ko(e){return function(t){return e.apply(this,[pt(t,{mechanism:{data:{handler:m(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Ao(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&He(n,e,function(t){let n={mechanism:{data:{handler:m(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Je(t);return r&&(n.mechanism.data.handler=m(r)),pt(t,n)})}),e.apply(this,t)}}function jo(e,t){let n=E[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(n,`addEventListener`,function(n){return function(r,i,a){try{Mo(i)&&(i.handleEvent=pt(i.handleEvent,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&No(this,r,i),n.apply(this,[r,pt(i,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),He(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Mo(e){return typeof e.handleEvent==`function`}function No(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Po=ur((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(E.document===void 0){dt&&s.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Ze({ignoreDuration:!0}),qe();let e=v(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(qe(),n=t)}),t===`route`&&Ya(({from:e,to:t})=>{e!==t&&(Ze({ignoreDuration:!0}),qe())})}}}),R=`CultureContext`,Fo=ur((()=>({name:R,preprocessEvent(e){let t=Io();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Io();t&&rr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Io(){try{let e=E.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Lo=`GlobalHandlers`,Ro=ur(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Lo,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(zo(e),Wo(`onerror`)),t.onunhandledrejection&&(Bo(e),Wo(`onunhandledrejection`))}}}));function zo(e){Xn(t=>{let{stackParser:n,attachStacktrace:r}=Go();if(st()!==e||ut())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Uo(ka(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Me(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Bo(e){$n(t=>{let{stackParser:n,attachStacktrace:r}=Go();if(st()!==e||ut())return;let i=Vo(t),a=Se(i)?Ho(i):ka(n,i,void 0,r,!0);a.level=`error`,Me(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Vo(e){if(Se(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 Ho(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Uo(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:Ko(t)??Qe(),function:`?`,in_app:!0}),e}function Wo(e){dt&&s.log(`Global Handler attached: ${e}`)}function Go(){return st()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Ko(e){if(!(!de(e)||e.length===0))return e.startsWith(`data:`)?`<${nr(e,!1)}>`:e}var qo=ur(()=>({name:`HttpContext`,preprocessEvent(e){if(!E.navigator&&!E.location&&!E.document)return;let t=ct(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!E.navigator&&!E.location&&!E.document)return;let t=ct();rr(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),Jo=`cause`,Yo=5,Xo=`LinkedErrors`,Zo=ur(((e={})=>{let t=e.limit||Yo,n=e.key||Jo;return{name:Xo,preprocessEvent(e,r,i){Ai(_a,i.getOptions().stackParser,n,t,e,r)}}}));function Qo(){return $o()?(dt&&Le(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function $o(){if(E.window===void 0)return!1;let e=E;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Qe();return!(E===E.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function es(e){return[bi(),gi(),aa(),Do(),I(),Ro(),Zo(),j(),qo(),Fo(),Po()]}function ts(e={}){let t=!e.skipBrowserExtensionCheck&&Qo(),n=e.defaultIntegrations==null?es():e.defaultIntegrations;return li(Pa,{...e,enabled:t?!1:e.enabled,stackParser:f(e.stackParser||_o),integrations:or({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||oo})}var ns=e(ht());function rs(e){let t={...e};return fi(t,`react`),Re(`react`,{version:ns.version}),ts(t)}var is=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<ne)}function ae(){if(g=!1,ee){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ne=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),as=t(((e,t)=>{t.exports=is()})),os=t((e=>{var t=as(),n=ht(),r=gt();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Symbol.for(`react.client.reference`);function le(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?le(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,S=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function w(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function T(e,t){pe++,fe[pe]=e.current,e.current=t}var he=me(null),ge=me(null),_e=me(null),ve=me(null);function ye(e,t){switch(T(_e,t),T(ge,e),T(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(he),T(he,e)}function be(){w(he),w(ge),w(_e)}function xe(e){e.memoizedState!==null&&T(ve,e);var t=he.current,n=Hd(t,e.type);t!==n&&(T(ge,e),T(he,n))}function Se(e){ge.current===e&&(w(he),w(ge)),ve.current===e&&(w(ve),Qf._currentValue=de)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
|
|
2
|
+
import{o as e,t}from"./chunk-jRWAZmH_.js";import{i as n,r,s as i}from"./device-settings-DXp9L4iB.js";import{$ as a,A as o,At as s,B as c,C as l,Ct as u,D as d,Dt as f,E as p,Et as m,F as h,Ft as g,G as _,H as v,I as y,It as b,J as x,K as ee,L as te,M as ne,Mt as re,N as ie,Nt as ae,O as oe,Ot as se,P as ce,Pt as le,Q as ue,R as S,S as C,St as de,T as fe,Tt as pe,U as me,V as w,X as T,Y as he,Z as ge,_ as _e,_t as ve,a as ye,at as be,b as xe,bt as Se,d as Ce,dt as we,et as Te,f as Ee,ft as De,g as Oe,gt as ke,h as Ae,ht as je,i as Me,it as Ne,j as Pe,jt as Fe,k as Ie,kt as Le,l as Re,lt as ze,mt as Be,nt as Ve,ot as He,p as Ue,pt as We,q as Ge,rt as Ke,s as qe,st as Je,t as Ye,tt as Xe,u as Ze,ut as Qe,v as $e,vt as et,w as tt,wt as nt,x as rt,xt as it,y as at,yt as ot,z as st}from"./capture-error-Bj8_eutd.js";import{c as ct,d as lt,l as ut,o as dt,r as ft,s as E,u as pt}from"./document-viewer-container-BIS1iPUz.js";import{s as mt}from"./doctor-handoff-store-vFe8-_ee.js";import{t as ht}from"./react-BFJW0bSv.js";import{F as gt,r as _t}from"./button-Dy5001j6.js";import{t as vt}from"./preload-helper-Cv2QeVDK.js";import{i as yt}from"./chunk-5KNZJZUH-Bsoom5--.js";import{A as bt,C as xt,D as St,N as Ct,S as wt,_ as Tt,b as Et,c as Dt,g as Ot,h as kt,s as At,t as jt,u as Mt,x as Nt}from"./QueryClientProvider-CMu7CkQU.js";import{f as Pt}from"./useQuery-Bz-fbQ-m.js";import{n as Ft}from"./useInfiniteQuery-Dk8q0n49.js";import{n as It}from"./useMutation-CXGTrp4W.js";import{t as Lt}from"./jsx-runtime-D3ZM-ToX.js";import{a as Rt,i as zt,o as Bt,r as Vt,s as Ht,t as Ut}from"./routes-CN5d145X.js";import{t as Wt}from"./src-te3YTBG-.js";import{t as Gt}from"./toast-LgLp4obE.js";import{$ as Kt,et as qt,f as Jt,g as Yt,h as Xt,m as Zt,rt as Qt,st as $t}from"./local-mode-Ckii2tmN.js";import{t as en}from"./is-electron-m5eeGBnd.js";import{n as tn}from"./resolved-assistants-store-C-PdxK8f.js";import{Ur as nn}from"./sdk.gen-BVAVE6A_.js";import{i as rn,t as an}from"./api-errors-CFiCT7Ap.js";import{D as on,E as sn,F as cn,H as ln,M as un,N as dn,O as fn,T as pn,U as mn,_ as hn,a as gn,d as _n,m as vn,n as D,t as yn,w as bn}from"./auth-store-D5PppHY9.js";import{t as xn}from"./client.gen-CV05d-kw.js";import{c as Sn}from"./api-XwdNiVE9.js";import{E as Cn,M as wn,T as Tn,u as En,w as Dn}from"./native-biometric-N76no2Rd.js";import{i as On,t as O}from"./dist-BwAT3VYQ.js";import{u as kn}from"./routes-D9sNqB_o.js";import{t as An}from"./onboarding-store-bZ2qYISk.js";import{t as jn}from"./client-feature-flag-store-BDrcV52r.js";import{r as Mn}from"./prefs-bw85lYLp.js";import{n as Nn}from"./platform-detection-B4yEnmA8.js";import{n as Pn}from"./client-identity-BeBdVMsj.js";import{t as Fn}from"./hard-navigate-DyUrcxe0.js";import{C as In}from"./sdk.gen-B5ygTzyg.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function Ln(e,t,n){if(!(typeof window>`u`))try{localStorage.getItem(e)===t&&localStorage.setItem(e,n)}catch{}}function Rn(e){if(!(typeof window>`u`))try{localStorage.removeItem(e)}catch{}}function k(e,t){if(!(typeof window>`u`))try{let n=localStorage.getItem(e);if(n===null)return;localStorage.getItem(t)===null&&localStorage.setItem(t,n),localStorage.getItem(t)!==null&&localStorage.removeItem(e)}catch{}}function zn(e,t){if(!(typeof window>`u`))try{let n=[];for(let r=0;r<localStorage.length;r++){let i=localStorage.key(r);if(i&&i.startsWith(e)){let r=i.slice(e.length);n.push([i,t+r])}}for(let[e,t]of n)k(e,t)}catch{}}function Bn(e){let t=[];for(let n=0;n<localStorage.length;n++){let r=localStorage.key(n);r&&r.startsWith(e)&&t.push(r)}for(let e of t)localStorage.removeItem(e)}function Vn(){if(typeof window>`u`)return;let e=`vellum:selectedAssistantId`,t=`vellum:local:selectedAssistantId`,n=`vellum:currentAssistantId:`;try{if(localStorage.getItem(e)===null){let r=localStorage.getItem(t);if(r===null&&(r=Hn(n)),r===null){let e=null;for(let t=0;t<localStorage.length;t++){let r=localStorage.key(t);r&&r.startsWith(n)&&(e===null||r<e)&&(e=r)}e!==null&&(r=localStorage.getItem(e))}r&&localStorage.setItem(e,r)}localStorage.removeItem(t),Bn(n)}catch{}}function Hn(e){let t=null;try{t=sessionStorage.getItem(`vellum_active_organization_id`)}catch{return null}return t?localStorage.getItem(`${e}${t}`):null}function Un(){if(!(typeof window>`u`)){if(k(`assistantSidebarCollapsed`,`vellum:sidebar:collapsed`),k(`assistantSidebarWidth`,`vellum:sidebar:width`),k(`voice:permissionPrimerSeen`,`vellum:voice:permissionPrimerSeen`),k(`voice:ttsProvider`,`vellum:voice:ttsProvider`),k(`voice:sttProvider`,`vellum:voice:sttProvider`),k(`voice:activationKey`,`vellum:voice:activationKey`),k(`integrations.bannerDismissed`,`vellum:integrations:bannerDismissed`),k(`onboarding.tosAccepted`,`vellum:onboarding:tosAccepted`),k(`onboarding.aiDataConsent`,`vellum:onboarding:aiDataConsent`),Rn(`onboarding.completed`),Rn(`vellum:onboarding:completed`),k(`onboarding.selectedVersion`,`vellum:onboarding:selectedVersion`),k(`vellum:skillsTabTipDismissed`,`vellum:skills:tipDismissed`),k(`vellum_image_gen_mode`,`vellum:ai:imageGenMode`),k(`vellum_image_gen_model`,`vellum:ai:imageGenModel`),localStorage.getItem(`vellum:ai:imageGenProvider`)===null){let e=localStorage.getItem(`vellum:ai:imageGenMode`);e===`managed`?localStorage.setItem(`vellum:ai:imageGenProvider`,`vellum`):e===`your-own`&&localStorage.setItem(`vellum:ai:imageGenProvider`,`gemini`)}k(`vellum_web_search_mode`,`vellum:ai:webSearchMode`),k(`vellum_web_search_provider`,`vellum:ai:webSearchProvider`),k(`vellum_email_mode`,`vellum:ai:emailMode`),k(`vellum_email_byo_provider`,`vellum:ai:emailByoProvider`),k(`vellum_gemini_key`,`vellum:ai:geminiKey`),k(`vellum_perplexity_key`,`vellum:ai:perplexityKey`),k(`vellum_brave_key`,`vellum:ai:braveKey`),k(`vellum_tavily_key`,`vellum:ai:tavilyKey`),k(`vellumDebug.flags.impersonateAssistantVersion`,`vellum:debug:impersonateAssistantVersion`),k(`gw:token`,`vellum:gw:token`),k(`gw:expiresAt`,`vellum:gw:expiresAt`),k(`gw:tokenSource`,`vellum:gw:tokenSource`),k(`local:lockfile`,`vellum:local:lockfile`),k(`local:selectedAssistantId`,`vellum:local:selectedAssistantId`),zn(`voice:ttsApiKey:`,`vellum:voice:ttsApiKey:`),zn(`voice:ttsVoiceId:`,`vellum:voice:ttsVoiceId:`),zn(`voice:sttApiKey:`,`vellum:voice:sttApiKey:`),zn(`ff:client:`,`vellum:ff:`),zn(`disk-pressure-warning-dismissed-`,`vellum:diskPressureDismissed:`),zn(`vellum_current_assistant_id__`,`vellum:currentAssistantId:`),Vn(),Ln(`vellum:skills:tipDismissed`,`1`,`true`),Rn(`app.githubNudge.starred`),Rn(`app.githubNudge.bannerDismissed`),Rn(`app.githubNudge.bannerDismissedAt`),Rn(`app.discordNudge.joined`),Rn(`app.discordNudge.bannerDismissed`),Rn(`app.discordNudge.firstSeenAt`),Rn(`app.nudgeLegacy.cleaned`)}}n(),Un();var Wn={},Gn={};function Kn(e,t){return Wn[e]=Wn[e]||[],Wn[e].push(t),()=>{let n=Wn[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function qn(e,t){if(!Gn[e]){Gn[e]=!0;try{t()}catch(t){b&&s.error(`Error while instrumenting ${e}`,t)}}}function Jn(e,t){let n=e&&Wn[e];if(n)for(let r of n)try{r(t)}catch(t){b&&s.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${m(r)}\nError:`,t)}}var Yn=null;function Xn(e){let t=`error`;Kn(t,e),qn(t,Zn)}function Zn(){Yn=g.onerror,g.onerror=function(e,t,n,r,i){return Jn(`error`,{column:r,error:i,line:n,msg:e,url:t}),Yn?Yn.apply(this,arguments):!1},g.onerror.__SENTRY_INSTRUMENTED__=!0}var Qn=null;function $n(e){let t=`unhandledrejection`;Kn(t,e),qn(t,er)}function er(){Qn=g.onunhandledrejection,g.onunhandledrejection=function(e){return Jn(`unhandledrejection`,e),Qn?Qn.apply(this,arguments):!0},g.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function tr(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 nr(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 rr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var ir=[];function ar(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function or(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 ar(r)}function sr(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&lr(e,t,n)}),n}function cr(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function lr(e,t,n){if(n[t.name]){b&&s.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!ir.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),ir.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))}),b&&s.log(`Integration installed: ${t.name}`)}function ur(e){return e}function dr(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function fr(){return`npm`}function pr(){return!dr()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function mr(){return typeof window<`u`&&(!pr()||hr())}function hr(){return g.process?.type===`renderer`}function gr(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...mr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function _r(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),at(a,[gr(e,i)])}function vr(e,t){let n=t??yr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=_r(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);br().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function yr(e){return br().get(e)}function br(){return re(`clientToLogBufferMap`,()=>new WeakMap)}function xr(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,...mr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Sr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),at(a,[xr(e,i)])}function Cr(e,t){let n=t??wr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Sr(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Tr().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function wr(e){return Tr().get(e)}function Tr(){return re(`clientToMetricBufferMap`,()=>new WeakMap)}function Er(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Dr=Symbol.for(`SentryBufferFullError`);function Or(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Ee(Dr);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return Ue(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Er(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var kr=60*1e3;function Ar(e,t=Ve()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?kr:r-t}function jr(e,t){return e[t]||e.all||0}function Mr(e,t,n=Ve()){return jr(e,t)>n}function Nr(e,{statusCode:t,headers:n},r=Ve()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Ar(o,r):t===429&&(i.all=r+60*1e3);return i}function Pr(e,t,n=Or(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(C(i,(t,n)=>{let i=rt(n);Mr(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=at(i[0],a),c=t=>{if(xe(o,[`client_report`])){b&&s.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}C(o,(n,r)=>{e.recordDroppedEvent(t,rt(r))})};return n.add(()=>t({body:l(o)}).then(e=>e.statusCode===413?(b&&s.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(b&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&s.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Nr(r,e),e),e=>{throw c(`network_error`),b&&s.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Dr)return b&&s.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function Fr(e,t,n){let r=[{type:`client_report`},{timestamp:n||Ge(),discarded_events:e}];return at(t?{dsn:t}:{},[r])}function Ir(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 Lr(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[S],exclusive_time:o?.[te],measurements:e.measurements,is_segment:!0}}function Rr(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}}var zr=`Not capturing exception because it's already been captured.`,Br=`Discarded session because of missing or non-string release`,Vr=Symbol.for(`SentryInternalError`),Hr=Symbol.for(`SentryDoNotSendEventError`),Ur=5e3;function Wr(e){return{message:e,[Vr]:!0}}function Gr(e){return{message:e,[Hr]:!0}}function Kr(e){return!!e&&typeof e==`object`&&Vr in e}function qr(e){return!!e&&typeof e==`object`&&Hr in e}function Jr(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=Er(setTimeout(()=>{i(e)},Ur)))}),e.on(`flush`,()=>{i(e)})}var Yr=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Or(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=h(e.dsn):b&&s.warn(`No DSN provided, client will not send events.`),this._dsn){let t=lt(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})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Jr(this,`afterCaptureLog`,`flushLogs`,ni,vr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Jr(this,`afterCaptureMetric`,`flushMetrics`,ti,Cr)}captureException(e,t,n){let r=a();if(ge(e))return b&&s.log(zr),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:a(),...n},o=et(e)?e:String(e),s=Se(e),c=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>c.then(e=>this._captureEvent(e,i,r)),s?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=a();if(t?.originalException&&ge(t.originalException))return b&&s.log(zr),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},c=o.capturedSpanScope,l=o.capturedSpanIsolationScope,u=Xr(e.type);return this._process(()=>this._captureEvent(e,i,c||n,l),u),i.event_id}captureSession(e){this.sendSession(e),ee(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}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){vr(this);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()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),lr(this,e,this._integrations),t||cr(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=Ae(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=_e(n,$e(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=oe}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){b&&s.warn(Br);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){b&&s.warn(Br);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=Oe(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}`;b&&s.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),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{return await this._transport.send(e)}catch(e){return b&&s.error(`Error while sending envelope:`,e),{}}return b&&s.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=sr(this,e),cr(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ee(e,{...n&&{status:`crashed`},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=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Ce(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...me(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:d(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=c(),r=v()){return b&&$r(e)&&s.log(`Captured error event \`${Ir(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{b&&(qr(e)?s.log(e.message):Kr(e)?s.warn(e.message):s.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ei(e),s=$r(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:ie(a);if(s&&typeof l==`number`&&Ke()>l)return this.recordDroppedEvent(`sample_rate`,`error`),Ee(Gr(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=Xr(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),Gr("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:Zr(Qr(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw Gr(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw qr(e)||Kr(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),Wr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Dr&&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(){b&&s.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){b&&s.log(`No outcomes to send`);return}if(!this._dsn){b&&s.log(`No dsn provided, will not send outcomes`);return}b&&s.log(`Sending outcomes:`,e);let t=Fr(e,this._options.tunnel&&ce(this._dsn));this.sendEnvelope(t)}};function Xr(e){return e===`replay_event`?`replay`:e||`error`}function Zr(e,t){let n=`${t} must return \`null\` or a valid event.`;if(u(e))return e.then(e=>{if(!ot(e)&&e!==null)throw Wr(n);return e},e=>{throw Wr(`${t} rejected with ${e}`)});if(!ot(e)&&e!==null)throw Wr(n);return e}function Qr(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:s}=t,c=!p(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if($r(l)&&i)return i(l,r);if(ei(l)){if(c||s){let t=Lr(l);if(s?.length&&o({description:t.description,op:t.op,attributes:t.data},s))return null;if(c){let e=c(t);e?l=_(n,Rr(e)):Pe()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(s?.length&&o({description:e.description,op:e.op,attributes:e.data},s)){Ie(n,e);continue}if(c){let n=c(e);n?t.push(n):(Pe(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}function $r(e){return e.type===void 0}function ei(e){return e.type===`transaction`}function ti(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+ri(e.attributes)}function ni(e){let t=0;return e.message&&(t+=e.message.length*2),t+ri(e.attributes)}function ri(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*ii(e[0]):Se(e)?t+=ii(e):t+=100}),t}function ii(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function ai(e,t){return e(t.stack||``,1)}function oi(e){return Be(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function si(e){return oi(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function ci(e,t){let n={type:t.name||t.constructor.name,value:si(t)},r=ai(e,t);return r.length&&(n.stacktrace={frames:r}),n}function li(e,t){t.debug===!0&&(b?s.enable():Le(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),c().update(t.initialScope);let n=new e(t);return ui(n),n.init(),n}function ui(e){c().setClient(e)}function di(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 fi(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:le})),i.version=le)}var pi,mi=`FunctionToString`,hi=new WeakMap,gi=ur((()=>({name:mi,setupOnce(){pi=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Je(this),n=hi.has(st())&&t!==void 0?t:this;return pi.apply(n,e)}}catch{}},setup(e){hi.set(e,!0)}}))),_i=[/^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$/],vi=`EventFilters`,yi=ur((e={})=>{let t;return{name:vi,setup(n){t=xi(e,n.getOptions())},processEvent(n,r,i){return t||=xi(e,i.getOptions()),Si(n,t)?null:n}}}),bi=ur(((e={})=>({...yi(e),name:`InboundFilters`})));function xi(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_i],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Si(e,t){if(!e.type){if(Ci(e,t.ignoreErrors))return b&&s.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ue(e)}`),!0;if(ki(e))return b&&s.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ue(e)}`),!0;if(Ti(e,t.denyUrls))return b&&s.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Oi(e)}`),!0;if(!Ei(e,t.allowUrls))return b&&s.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Oi(e)}`),!0}else if(e.type===`transaction`&&wi(e,t.ignoreTransactions))return b&&s.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ue(e)}`),!0;return!1}function Ci(e,t){return t?.length?Ir(e).some(e=>Xe(e,t)):!1}function wi(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Xe(n,t):!1}function Ti(e,t){if(!t?.length)return!1;let n=Oi(e);return n?Xe(n,t):!1}function Ei(e,t){if(!t?.length)return!0;let n=Oi(e);return n?Xe(n,t):!0}function Di(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 Oi(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Di(t):null}catch{return b&&s.error(`Cannot extract url for event ${ue(e)}`),null}}function ki(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Ai(e,t,n,r,i,a){if(!i.exception?.values||!a||!ve(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=ji(e,t,r,a.originalException,n,i.exception.values,o,0))}function ji(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ve(r[i],Error)){Ni(o,s,r);let a=e(t,r[i]),l=c.length;Pi(a,i,l,s),c=ji(e,t,n,r[i],i,[a,...c],a,l)}return Mi(r)&&r.errors.forEach((a,l)=>{if(ve(a,Error)){Ni(o,s,r);let u=e(t,a),d=c.length;Pi(u,`errors[${l}]`,d,s),c=ji(e,t,n,a,i,[u,...c],u,d)}}),c}function Mi(e){return Array.isArray(e.errors)}function Ni(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Mi(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Pi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var Fi=`cause`,Ii=5,Li=`LinkedErrors`,Ri=ur(((e={})=>{let t=e.limit||Ii,n=e.key||Fi;return{name:Li,preprocessEvent(e,r,i){Ai(ci,i.getOptions().stackParser,n,t,e,r)}}}));function zi(e){let t=`console`,n=Kn(t,e);return qn(t,Bi),n}function Bi(){`console`in g&&se.forEach(function(e){e in g.console&&He(g.console,e,function(t){return Fe[e]=t,function(...t){Jn(`console`,{args:t,level:e}),Fe[e]?.apply(g.console,t)}})})}function Vi(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var A=`Dedupe`,j=ur((()=>{let e;return{name:A,processEvent(t){if(t.type)return t;try{if(Hi(t,e))return b&&s.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Hi(e,t){return t?!!(Ui(e,t)||Wi(e,t)):!1}function Ui(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ki(e,t)||!Gi(e,t))}function Wi(e,t){let n=qi(t),r=qi(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ki(e,t)||!Gi(e,t))}function Gi(e,t){let n=pe(e),r=pe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,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 Ki(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function qi(e){return e.exception?.values?.[0]}function Ji(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var Yi=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Xi(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Yi.exec(t);return n?n.slice(1):[]}function Zi(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=Ji(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function Qi(e){let t=0;for(;t<e.length&&e[t]===``;t++);let n=e.length-1;for(;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}function $i(e,t){e=Zi(e).slice(1),t=Zi(t).slice(1);let n=Qi(e.split(`/`)),r=Qi(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function ea(e,t){let n=Xi(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var ta=`RewriteFrames`,na=ur((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in g&&!!g.window,i=e.iteratee||ra({isBrowser:r,root:t,prefix:n});function a(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch{return e}}function o(e){return{...e,frames:e?.frames?.map(e=>i(e))}}return{name:ta,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=a(t)),t}}});function ra({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?$i(t,e):ea(e)}`}return r}}var ia=`ConversationId`,aa=ur((()=>({name:ia,setup(e){e.on(`spanStart`,e=>{let t=c().getScopeData(),n=v().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=ne(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(y,r)}})}})));function oa(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var sa=g;function ca(){return`history`in sa&&!!sa.history}function la(){if(!(`fetch`in sa))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ua(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function da(){if(typeof EdgeRuntime==`string`)return!0;if(!la())return!1;if(ua(sa.fetch))return!0;let e=!1,t=sa.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ua(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){b&&s.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function fa(e,t){let n=`fetch`,r=Kn(n,e);return qn(n,()=>pa(void 0,t)),r}function pa(e,t=!1){t&&!da()||He(g,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=ha(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:x()*1e3,virtualError:r,headers:ga(n)};return e||Jn(`fetch`,{...o}),t.apply(g,n).then(async t=>(e?e(t):Jn(`fetch`,{...o,endTimestamp:x()*1e3,response:t}),t),e=>{Jn(`fetch`,{...o,endTimestamp:x()*1e3,error:e}),Be(e)&&e.stack===void 0&&(e.stack=r.stack,Ne(e,`framesToPop`,1));let t=st()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Ne(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}function M(e,t){return!!e&&typeof e==`object`&&!!e[t]}function ma(e){return typeof e==`string`?e:e?M(e,`url`)?e.url:e.toString?e.toString():``:``}function ha(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:ma(t),method:M(n,`method`)?String(n.method).toUpperCase():it(t)&&M(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:ma(t),method:M(t,`method`)?String(t.method).toUpperCase():`GET`}}function ga(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(it(t))return new Headers(t.headers)}catch{}}function _a(e,t){let n=ba(e,t),r={type:Ta(t),value:Ea(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function va(e,t,n,r){let i=st()?.getOptions().normalizeDepth,a=Na(t),o={__serialized__:fe(t,i)};if(a)return{exception:{values:[_a(e,a)]},extra:o};let s={exception:{values:[{type:ke(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:ja(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=ba(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function ya(e,t){return{exception:{values:[_a(e,t)]}}}function ba(e,t){let n=t.stacktrace||t.stack||``,r=Sa(t),i=Ca(t);try{return e(n,r,i)}catch{}return[]}var xa=/Minified React error #\d+;/i;function Sa(e){return e&&xa.test(e.message)?1:0}function Ca(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function wa(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Ta(e){let t=e?.name;return!t&&wa(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ea(e){let t=e?.message;return wa(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?si(t.error):si(e):`No error message`}function Da(e,t,n,r){let i=ka(e,t,n?.syntheticException||void 0,r);return he(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Ue(i)}function Oa(e,t,n=`info`,r,i){let a=Aa(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),Ue(a)}function ka(e,t,n,r,i){let a;if(je(t)&&t.error)return ya(e,t.error);if(De(t)||We(t)){let i=t;if(`stack`in t)a=ya(e,t);else{let t=i.name||(De(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Aa(e,o,n,r),T(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Be(t)?ya(e,t):ot(t)||ke(t)?(a=va(e,t,n,i),he(a,{synthetic:!0}),a):(a=Aa(e,t,n,r),T(a,`${t}`,void 0),he(a,{synthetic:!0}),a)}function Aa(e,t,n,r){let i={};if(r&&n){let r=ba(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),he(i,{synthetic:!0})}if(et(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 ja(e,{isUnhandledRejection:t}){let n=be(e),r=t?`promise rejection`:`exception`;return je(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ke(e)?`Event \`${Ma(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ma(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Na(e){return Object.values(e).find(e=>e instanceof Error)}var Pa=class extends Yr{constructor(e){let t=Fa(e);fi(t,`browser`,[`browser`],E.SENTRY_SDK_SOURCE||fr()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;E.document&&(r||i||s)&&E.document.addEventListener(`visibilitychange`,()=>{E.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&vr(this),s&&Cr(this))}),n&&this.on(`beforeSendSession`,di)}eventFromException(e,t){return Da(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Oa(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 Fa(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:E.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var Ia=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,La=g,Ra=1e3,za,Ba,Va;function Ha(e){Kn(`dom`,e),qn(`dom`,Ua)}function Ua(){if(!La.document)return;let e=Jn.bind(null,`dom`),t=Ka(e,!0);La.document.addEventListener(`click`,t,!1),La.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=La[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(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=Ka(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),He(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 Wa(e){if(e.type!==Ba)return!1;try{if(!e.target||e.target._sentryId!==Va)return!1}catch{}return!0}function Ga(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function Ka(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=qa(n);if(Ga(n.type,r))return;Ne(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ne(r,`_sentryId`,a());let i=n.type===`keypress`?`input`:n.type;Wa(n)||(e({event:n,name:i,global:t}),Ba=n.type,Va=r?r._sentryId:void 0),clearTimeout(za),za=La.setTimeout(()=>{Va=void 0,Ba=void 0},Ra)}}function qa(e){try{return e.target}catch{return null}}var Ja;function Ya(e){let t=`history`;Kn(t,e),qn(t,Xa)}function Xa(){if(La.addEventListener(`popstate`,()=>{let e=La.location.href,t=Ja;Ja=e,t!==e&&Jn(`history`,{from:t,to:e})}),!ca())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=Ja,i=Za(String(n));if(Ja=i,r===i)return e.apply(this,t);Jn(`history`,{from:r,to:i})}return e.apply(this,t)}}He(La.history,`pushState`,e),He(La.history,`replaceState`,e)}function Za(e){try{return new URL(e,La.location.origin).toString()}catch{return e}}var Qa={};function $a(e){let t=Qa[e];if(t)return t;let n=La[e];if(ua(n))return Qa[e]=n.bind(La);let r=La.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(t){Ia&&s.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(Qa[e]=n.bind(La))}function eo(e){Qa[e]=void 0}var to=`__sentry_xhr_v3__`;function no(e){Kn(`xhr`,e),qn(`xhr`,ro)}function ro(){if(!La.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=x()*1e3,a=de(n[0])?n[0].toUpperCase():void 0,o=io(n[1]);if(!a||!o)return e.apply(t,n);t[to]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[to];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}Jn(`xhr`,{endTimestamp:x()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};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[to];return a&&de(r)&&de(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[to];return r?(n[0]!==void 0&&(r.body=n[0]),Jn(`xhr`,{startTimestamp:x()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function io(e){if(de(e))return e;try{return e.toString()}catch{}}var ao=40;function oo(e,t=$a(`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 eo(`fetch`),e}finally{n-=a,r--}}return Pr(e,i,Or(e.bufferSize||ao))}var so=30,co=50;function lo(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}var uo=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,fo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,po=/\((\S*)(?::(\d+))(?::(\d+))\)/,mo=/at (.+?) ?\(data:(.+?),/,ho=[so,e=>{let t=e.match(mo);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=uo.exec(e);if(n){let[,e,t,r]=n;return lo(e,`?`,+t,+r)}let r=fo.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=po.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=vo(r[1]||`?`,r[2]);return lo(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],go=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,N=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_o=nt(ho,[co,e=>{let t=go.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=N.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]=vo(n,e),lo(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),vo=(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]},P=1024,F=`Breadcrumbs`,I=ur(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:F,setup(e){t.console&&zi(xo(e)),t.dom&&Ha(bo(e,t.dom)),t.xhr&&no(So(e)),t.fetch&&fa(Co(e)),t.history&&Ya(wo(e)),t.sentry&&e.on(`beforeSendEvent`,yo(e))}}}));function yo(e){return function(t){st()===e&&mt({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ue(t)},{event:t})}}function bo(e,t){return function(n){if(st()!==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>P&&(dt&&s.warn(`\`dom.maxStringLength\` cannot exceed ${P}, but a value of ${o} was configured. Sentry will use ${P} instead.`),o=P),typeof a==`string`&&(a=[a]);try{let e=n.event,t=To(e)?e.target:e;r=we(t,{keyAttrs:a,maxStringLength:o}),i=ze(t)}catch{r=`<unknown>`}if(r.length===0)return;let c={category:`ui.${n.name}`,message:r};i&&(c.data={"ui.component_name":i}),mt(c,{event:n.event,name:n.name,global:n.global})}}function xo(e){return function(t){if(st()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:Vi(t.level),message:Te(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Te(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;mt(n,{input:t.args,level:t.level})}}function So(e){return function(t){if(st()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[to];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:oa(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),mt(d,u)}}function Co(e){return function(t){if(st()!==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),mt(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:oa(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),mt(s,o)}}}function wo(e){return function(t){if(st()!==e)return;let n=t.from,r=t.to,i=tr(E.location.href),a=n?tr(n):void 0,o=tr(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),mt({category:`navigation`,data:{from:n,to:r}})}}function To(e){return!!e&&!!e.target}var L=`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(`,`),Eo=`BrowserApiErrors`,Do=ur(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Eo,setupOnce(){t.setTimeout&&He(E,`setTimeout`,Oo),t.setInterval&&He(E,`setInterval`,Oo),t.requestAnimationFrame&&He(E,`requestAnimationFrame`,ko),t.XMLHttpRequest&&`XMLHttpRequest`in E&&He(XMLHttpRequest.prototype,`send`,Ao);let e=t.eventTarget;e&&(Array.isArray(e)?e:L).forEach(e=>jo(e,t))}}}));function Oo(e){return function(...t){let n=t[0];return t[0]=pt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${m(e)}`}}),e.apply(this,t)}}function ko(e){return function(t){return e.apply(this,[pt(t,{mechanism:{data:{handler:m(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Ao(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&He(n,e,function(t){let n={mechanism:{data:{handler:m(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Je(t);return r&&(n.mechanism.data.handler=m(r)),pt(t,n)})}),e.apply(this,t)}}function jo(e,t){let n=E[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(n,`addEventListener`,function(n){return function(r,i,a){try{Mo(i)&&(i.handleEvent=pt(i.handleEvent,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&No(this,r,i),n.apply(this,[r,pt(i,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),He(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Mo(e){return typeof e.handleEvent==`function`}function No(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var Po=ur((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(E.document===void 0){dt&&s.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Ze({ignoreDuration:!0}),qe();let e=v(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(qe(),n=t)}),t===`route`&&Ya(({from:e,to:t})=>{e!==t&&(Ze({ignoreDuration:!0}),qe())})}}}),R=`CultureContext`,Fo=ur((()=>({name:R,preprocessEvent(e){let t=Io();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=Io();t&&rr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function Io(){try{let e=E.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var Lo=`GlobalHandlers`,Ro=ur(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:Lo,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(zo(e),Wo(`onerror`)),t.onunhandledrejection&&(Bo(e),Wo(`onunhandledrejection`))}}}));function zo(e){Xn(t=>{let{stackParser:n,attachStacktrace:r}=Go();if(st()!==e||ut())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=Uo(ka(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Me(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function Bo(e){$n(t=>{let{stackParser:n,attachStacktrace:r}=Go();if(st()!==e||ut())return;let i=Vo(t),a=Se(i)?Ho(i):ka(n,i,void 0,r,!0);a.level=`error`,Me(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function Vo(e){if(Se(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 Ho(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Uo(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:Ko(t)??Qe(),function:`?`,in_app:!0}),e}function Wo(e){dt&&s.log(`Global Handler attached: ${e}`)}function Go(){return st()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Ko(e){if(!(!de(e)||e.length===0))return e.startsWith(`data:`)?`<${nr(e,!1)}>`:e}var qo=ur(()=>({name:`HttpContext`,preprocessEvent(e){if(!E.navigator&&!E.location&&!E.document)return;let t=ct(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!E.navigator&&!E.location&&!E.document)return;let t=ct();rr(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),Jo=`cause`,Yo=5,Xo=`LinkedErrors`,Zo=ur(((e={})=>{let t=e.limit||Yo,n=e.key||Jo;return{name:Xo,preprocessEvent(e,r,i){Ai(_a,i.getOptions().stackParser,n,t,e,r)}}}));function Qo(){return $o()?(dt&&Le(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function $o(){if(E.window===void 0)return!1;let e=E;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Qe();return!(E===E.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function es(e){return[bi(),gi(),aa(),Do(),I(),Ro(),Zo(),j(),qo(),Fo(),Po()]}function ts(e={}){let t=!e.skipBrowserExtensionCheck&&Qo(),n=e.defaultIntegrations==null?es():e.defaultIntegrations;return li(Pa,{...e,enabled:t?!1:e.enabled,stackParser:f(e.stackParser||_o),integrations:or({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||oo})}var ns=e(ht());function rs(e){let t={...e};return fi(t,`react`),Re(`react`,{version:ns.version}),ts(t)}var is=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<ne)}function ae(){if(g=!1,ee){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ne=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),as=t(((e,t)=>{t.exports=is()})),os=t((e=>{var t=as(),n=ht(),r=gt();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Symbol.for(`react.client.reference`);function le(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?le(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,S=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function w(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function T(e,t){pe++,fe[pe]=e.current,e.current=t}var he=me(null),ge=me(null),_e=me(null),ve=me(null);function ye(e,t){switch(T(_e,t),T(ge,e),T(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(he),T(he,e)}function be(){w(he),w(ge),w(_e)}function xe(e){e.memoizedState!==null&&T(ve,e);var t=he.current,n=Hd(t,e.type);t!==n&&(T(ge,e),T(he,n))}function Se(e){ge.current===e&&(w(he),w(ge)),ve.current===e&&(w(ve),Qf._currentValue=de)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+Ce+e+we}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
5
|
`),l=s.split(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-
|
|
2
|
-
import{t as e}from"./preload-helper-Cv2QeVDK.js";import{u as t}from"./routes-D9sNqB_o.js";async function n(n){let{router:r}=await e(async()=>{let{router:e}=await import(`./routes-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-CN5d145X.js","assets/chunk-jRWAZmH_.js","assets/preload-helper-Cv2QeVDK.js","assets/api-CJFoPWHm.js","assets/local-mode-Ckii2tmN.js","assets/is-electron-m5eeGBnd.js","assets/create-selectors-Qo7kcikX.js","assets/react-BFJW0bSv.js","assets/local-settings-C-dW2vkq.js","assets/api-XwdNiVE9.js","assets/sdk.gen-BIu1DgTs.js","assets/client.gen-CV05d-kw.js","assets/sdk.gen-BVAVE6A_.js","assets/api-errors-CFiCT7Ap.js","assets/use-assistant-avatar-IcRIy2-c.js","assets/utils-CnB60ZJN.js","assets/assistant-identity-store-DIyVo8LV.js","assets/impersonate-version-flag-4Ki_3iKD.js","assets/semver-BpijV4FQ.js","assets/QueryClientProvider-CMu7CkQU.js","assets/jsx-runtime-D3ZM-ToX.js","assets/useQuery-Bz-fbQ-m.js","assets/use-ios-app-nudge-DL86T1iH.js","assets/funnel-events-tqGtMWDb.js","assets/prefs-bw85lYLp.js","assets/onboarding-store-bZ2qYISk.js","assets/device-settings-DXp9L4iB.js","assets/consent-hzYg-zbh.js","assets/ingest-D7fJraMM.js","assets/client-identity-BeBdVMsj.js","assets/platform-detection-B4yEnmA8.js","assets/native-biometric-N76no2Rd.js","assets/domains-DWRzNRJy.js","assets/routes-D9sNqB_o.js","assets/dist-BwAT3VYQ.js","assets/use-bus-subscription-nUrbz9Mu.js","assets/event-bus-DSxmBYhD.js","assets/client-feature-flag-store-BDrcV52r.js","assets/feature-flag-catalog-TjLF99gJ.js","assets/theme-preferences-Bb2pPRXa.js","assets/typed-storage-9Sn8tkE7.js","assets/button-Dy5001j6.js","assets/cn-CJf7MmLX.js","assets/bundle-mjs-BQxDdOEo.js","assets/src-te3YTBG-.js","assets/dist-oCfq2a_n.js","assets/dist-CaYJ736y.js","assets/dist-jXSU-ejH.js","assets/checkbox-CRmgkYah.js","assets/createLucideIcon-CAM1RhH8.js","assets/check-sC49_hjU.js","assets/typography-DEI9Ra9z.js","assets/list-row-B1wPb2Au.js","assets/chevron-right-HU6H84S0.js","assets/menu-BvjhxZo7.js","assets/Combination-CkAMwkbS.js","assets/popover-BRpYVASI.js","assets/toast-LgLp4obE.js","assets/circle-alert-DVCpoZrc.js","assets/circle-check-CjGnAahM.js","assets/info-vgPTIsGI.js","assets/x-JBAsSOmg.js","assets/panel-item-CrtoJCrd.js","assets/dist-DC9QooLF.js","assets/card-DRIctGVs.js","assets/confirm-dialog-UYFm4osC.js","assets/loader-circle-XREx3i4W.js","assets/triangle-alert-CQfiAg_t.js","assets/modal-BR4CUFBd.js","assets/dropdown-BCfnSdIZ.js","assets/chevron-down-B5A-0g8A.js","assets/input-hw3el2GJ.js","assets/notice-BMK7xqUw.js","assets/progress-bar-C_T5_pf2.js","assets/tag-NXcyiTkK.js","assets/toggle-lfnhEAcN.js","assets/src-CfUWwwYf.css","assets/use-sticky-profiles-CERrRC3k.js","assets/react-query.gen-r3I6j8-1.js","assets/useMutation-CXGTrp4W.js","assets/infiniteQueryOptions-CqLc14_4.js","assets/queryOptions-CMSBCFOf.js","assets/use-is-org-ready-ZgLpmPTd.js","assets/auth-store-D5PppHY9.js","assets/remote-gateway-session-BHjZ9gQ6.js","assets/capture-error-Bj8_eutd.js","assets/resolved-assistants-store-C-PdxK8f.js","assets/use-platform-gate-CuQFBbqE.js","assets/eye-bbox-DU39FEUp.js","assets/runtime-upgrade-banner-DfN8xyd3.js","assets/react-query.gen-BC3STDmV.js","assets/local-runtime-upgrade-DE6Lbrd6.js","assets/diagnostics-BYuejT0E.js","assets/misc-CuYswARt.js","assets/cloud-off-BCBGTmt0.js","assets/moon-BJzODLTY.js","assets/refresh-cw-DzPnoeCh.js","assets/wrench-0WW0zkkG.js","assets/chunk-5KNZJZUH-Bsoom5--.js","assets/retire-confirm-dialog-C3t4OYYT.js","assets/research-onboarding-persistence-51lJoYJ2.js","assets/build-state-84xlnVwu.js","assets/navigation-resolver-C-NQ4xR1.js","assets/use-command-palette-sections-y6zaET8-.js","assets/chat-CDFCY8f0.js","assets/haptics-IJqtoi4F.js","assets/settings-CfuLzwIw.js","assets/chevron-left-CytMddTB.js","assets/globe-CMtjL_s_.js","assets/layout-grid-DA_CfD6d.js","assets/message-square-CQGiY4zk.js","assets/monitor-B1y28fS1.js","assets/search-BVW-n8to.js","assets/zoom-in-CaLYwni-.js","assets/add-credential-modal-Sl80Cqxd.js","assets/use-active-assistant-id-BxLyVe7J.js","assets/key-round-0Zop_GsZ.js","assets/app-card-NFeIflRY.js","assets/edge-swipe-arbiter-store-CQnDi2yf.js","assets/viewer-store-Ct0SDE-n.js","assets/pointer-BbPfN86L.js","assets/sandbox-bridge-BxW8HZq_.js","assets/external-link-CS0aVYGt.js","assets/puzzle-BVC3TGko.js","assets/use-edit-app-B6zDx3j2.js","assets/use-is-mobile-BlQuzI5Z.js","assets/conversation-store-C--wWMNW.js","assets/edit-chat-session-D37Qx6ol.js","assets/chevron-up-2Qqarz0p.js","assets/minimize-2-CaXsUqSp.js","assets/pencil-D38YNe2r.js","assets/avatar-renderer-ClUVcQmf.js","assets/avatar-svg-compositor-Dl-ckXRE.js","assets/chat-avatar-DQx81apI.js","assets/animated-avatar-BcgncPkc.js","assets/use-reduced-motion-W1fCe3vS.js","assets/proxy-D7UPVac3.js","assets/sound-manager-DlaDOZ8r.js","assets/apple-logo--8ZT6Umn.js","assets/use-discord-nudge-C_QdHIeX.js","assets/middleware-HE0NLvPl.js","assets/integration-icon-dv-9Zzx3.js","assets/public-asset-BBVUuTT_.js","assets/chat-layout-slots-store-BJfYGnd7.js","assets/document-viewer-container-BIS1iPUz.js","assets/circle-check-big-DSsDH5_6.js","assets/download-CywcQLB2.js","assets/file-text-Br730Q4B.js","assets/message-square-text-D0Q7W58R.js","assets/send-Q71Exj3z.js","assets/trash-2-L5LNgw9o.js","assets/user-_zNqL48O.js","assets/not-found-OqaWNmdx.js","assets/arrow-left-C2ylPLHq.js","assets/sparkles-Ccrj7hxd.js","assets/platform-login-notice-DVf6IMnD.js","assets/use-onboarding-login-DoTjM28B.js","assets/login-flow-ahhOTafY.js","assets/log-in-CqVJRYe-.js","assets/slack-setup-wizard-DK2F8LXc.js","assets/use-copy-to-clipboard-cF7ZSilD.js","assets/clipboard-copy-JwIceweN.js","assets/voice-list-Ba20LBC9.js","assets/square-D_e8nR-F.js","assets/volume-2-CvT-JEIl.js","assets/voice-picker-modal-CpSY0RKr.js","assets/use-save-twilio-credentials-Bm-WW_5V.js","assets/sdk.gen-B5ygTzyg.js","assets/mail-CMdPNysl.js","assets/message-circle-BsH7vHtN.js","assets/acp-run-store-B_eDLRwl.js","assets/by-tool-use-id-index-M50wYE1f.js","assets/optimistic-lifecycle-BINTsVFx.js","assets/messages-DN_micfA.js","assets/prechat-CeL4a_1i.js","assets/effective-timezone-CmcoXrio.js","assets/browser-timezone-CGwaX5Uv.js","assets/background-task-store-DMP8ByUq.js","assets/risk-C-PHFxsO.js","assets/chat-markdown-message-DMg2Ja-z.js","assets/file-markdown-DaflJFk7.js","assets/workspace-tree-query-COH0vdQ-.js","assets/browser-BsSA2Ro1.js","assets/native-anchor-B-puI-ck.js","assets/eye-off-Jdx8qkOK.js","assets/eye-BMVGQXHT.js","assets/acp-run-actions-1b6uzV5a.js","assets/code-qafFA0_-.js","assets/background-task-actions-BOge41m7.js","assets/transcript-message-body-shared-CY9QnAsj.js","assets/site-favicon-Chg8eDTg.js","assets/three-dot-indicator-BMvKQ_On.js","assets/AnimatePresence-DPfyu3ET.js","assets/brain-BIzJCPA6.js","assets/user-plus-oiIr9ey8.js","assets/subagent-store-C6u-C8H2.js","assets/circle-x-17dBxF06.js","assets/file-plus-C3SBA8ll.js","assets/terminal-CdCI6wMV.js","assets/detail-shell-Cyqr5FXJ.js","assets/surface-parse-helpers-CEJ3tQ9Q.js","assets/conversation-navigation-BgZ5MQWn.js","assets/workflow-store-Br6axpRy.js","assets/workflow-status-HyIIhMBP.js","assets/conversation-selection-oJy8Oht3.js","assets/use-subagent-card-data-C8rLuRyd.js","assets/access-CxjDfqPg.js","assets/assistant-feature-flag-store-DV5Zr1c4.js","assets/research-results-view-C4sIw2gK.js","assets/research-facts-B7Ev1zv0.js","assets/ban-B__z3LwE.js","assets/utils-BCDvGOqU.js","assets/format-date-BGnM4mqL.js","assets/bell-Ct4a9v6Y.js","assets/clock-BYTc0Ds9.js","assets/list-DNbTcxAh.js","assets/rotate-ccw-BjzeX7qz.js","assets/shield-check-22NwY9JM.js","assets/invalidate-plugin-queries-DamxiwYv.js","assets/first-run-scope-JygHT-kt.js","assets/oauth-connection-utils-CWPUW4MK.js","assets/native-deep-link-DCBJ-Rw0.js","assets/oauth-popup-OhSYYlQF.js","assets/onboarding-layout-DLs1hfp_.js","assets/settings-navigation--3JBxx-Y.js","assets/hard-navigate-DyUrcxe0.js","assets/use-supports-bookmarks-C3J7FtDn.js","assets/bug-VUcJFHwN.js","assets/chart-column-BLKW3sjY.js","assets/sliders-horizontal-slneqAyY.js","assets/mic-xmDFUbCL.js","assets/users-iLvfYFOP.js","assets/workspace-theme-tokens-DNNwX-XS.js","assets/conversation-queries-CCvEOvcY.js","assets/conversation-list-fetchers-DLZho4T7.js","assets/use-app-theme-CGie3Dma.js","assets/use-assistant-capability-CcE7d_2a.js","assets/use-avatar-accent-var-vpakP1ce.js","assets/avatar-bundled-components-DPqbVXi9.js","assets/use-bookmarks-VTJEYrsx.js","assets/use-edge-swipe-CfYgo0H8.js","assets/use-swipe-engine-6PcZZMVD.js","assets/plugins-surface-B43Op43l.js","assets/installed-plugins-query-C29LGAEV.js","assets/doctor-handoff-store-vFe8-_ee.js","assets/threshold-presets-BdTTHCnm.js","assets/shield-fzs_emVe.js","assets/trust-rules-api-B5lfygCA.js","assets/dictation-overlay-pePw7mLd.js","assets/native-file-C9v0UyL_.js","assets/deploy-store-erlFsGZ9.js","assets/avatar-subagent-CRA2B82x.js","assets/avatar-tone-BKwvoDSj.js","assets/conversation-cache-DU44A0zv.js","assets/external-urls-_vjsdj2L.js","assets/use-bundled-avatar-components-Bbs4vCnX.js","assets/use-effective-timezone-Dqs8OaXJ.js","assets/useInfiniteQuery-Dk8q0n49.js","assets/arrow-down-to-line-Bh_5sIPp.js","assets/arrow-right-B-jRJNWP.js","assets/arrow-up-BNd4Gpy7.js","assets/upload-Bdbyo_ok.js","assets/circle-minus-DNfBAj4g.js","assets/cloud-RlApB3rO.js","assets/coins-Hrmb9tmj.js","assets/credit-card-C1RL73Rt.js","assets/dices-DcuIF52A.js","assets/ellipsis-DnoqTkj4.js","assets/file-code-BDHws4Dk.js","assets/folder-DF8nFp7N.js","assets/hard-drive-DWFPKcXI.js","assets/heart-789ajxtB.js","assets/video-BcgduiJ6.js","assets/inbox-B6TknLsk.js","assets/laptop-DSZhU52i.js","assets/paperclip-c8Xlrnx4.js","assets/link-BfUb7cwC.js","assets/log-out-B4hsBWnk.js","assets/play-B0-JEtcm.js","assets/plus-jH3kAliM.js","assets/smartphone-mDNwm_ss.js","assets/sun-Dw0t1n1O.js","assets/workflow-cWWiPi3K.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{t as e}from"./preload-helper-Cv2QeVDK.js";import{u as t}from"./routes-D9sNqB_o.js";async function n(n){let{router:r}=await e(async()=>{let{router:e}=await import(`./routes-CN5d145X.js`).then(e=>e.n);return{router:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,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,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282]));await r.navigate(`${t.workspace}?file=${encodeURIComponent(n)}`)}export{n as t};
|