const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/3sxoiCdQ.js","assets/PcLad9uJ.js","assets/Bnx7EbX7.js","assets/CwfBoj5S.js","assets/CWFvRa2B.js","assets/B5qmwgz3.js","assets/DYI_32Qv.js","assets/B4F_civJ.js","assets/qZsDBCMU.js","assets/CV51Fkxj.js","assets/Rc6BkkOj.js","assets/CmtFVk-y.js"])))=>i.map(i=>d[i]);
var wi=Object.defineProperty,Ai=Object.defineProperties;var Ri=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var Un=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable;var Ft=(t,e,n)=>e in t?wi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,d=(t,e)=>{for(var n in e||(e={}))Un.call(e,n)&&Ft(t,n,e[n]);if(it)for(var n of it(e))jn.call(e,n)&&Ft(t,n,e[n]);return t},E=(t,e)=>Ai(t,Ri(e));var qn=(t,e)=>{var n={};for(var r in t)Un.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&it)for(var r of it(t))e.indexOf(r)<0&&jn.call(t,r)&&(n[r]=t[r]);return n};var Be=(t,e,n)=>Ft(t,typeof e!="symbol"?e+"":e,n);var Gn=(t,e,n)=>new Promise((r,s)=>{var i=c=>{try{a(n.next(c))}catch(u){s(u)}},o=c=>{try{a(n.throw(c))}catch(u){s(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,o);a((n=n.apply(t,e)).next())});import{f_ as Oi,g3 as Ci,g7 as Ni,g8 as xi,g9 as Di,ga as $i,gb as Li,b5 as Mi,aF as jr,a4 as qr,g6 as Fi,gc as Gr,i as zr,gd as Bi,bH as zn,ge as Hi,eL as _t,gf as Vt,gg as yt,gh as Ui,dV as ji,bV as qi,fv as Gi,fw as zi,gi as Wi,bk as ot,gj as Vi,j as Wr,bf as Yi,ca as Xi,gk as Ki,af as Ji,fN as Zi,d as yn,u as Qi,c as eo,o as ae,a as We,e as St,q as to,t as no,m as ce,A as ro,b as Vr,g as so,h as io,_ as Yr,bm as oo,w as Yt,F as Xr,C as ao,l as Xt,f as Kt,gl as co,an as uo,a3 as Kr,a0 as lo,a5 as fo,eU as po,ab as mo,fp as ho,D as go,bu as _o,gm as yo,gn as So,go as bo,gp as To,bp as Eo,gq as vo,gr as Io,ad as Po,bw as ko}from"./PcLad9uJ.js";import{R as wo,c as Ao}from"./CmtFVk-y.js";import{a as Ro}from"./CWFvRa2B.js";import{x as Oo}from"./B4F_civJ.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Pf={commit:"90ba6fc8",apiVersion:"dc8b7527f8d14a3bcdd75783aab34bd358a132a3"};var Jr={exports:{}};(function(t,e){(function(){function n(){var r=window,s=document;if("scrollBehavior"in s.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var i=r.HTMLElement||r.Element,o=468,a={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:i.prototype.scroll||p,scrollIntoView:i.prototype.scrollIntoView},c=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function u(_){var k=["MSIE ","Trident/","Edge/"];return new RegExp(k.join("|")).test(_)}var l=u(r.navigator.userAgent)?1:0;function p(_,k){this.scrollLeft=_,this.scrollTop=k}function h(_){return .5*(1-Math.cos(Math.PI*_))}function f(_){if(_===null||typeof _!="object"||_.behavior===void 0||_.behavior==="auto"||_.behavior==="instant")return!0;if(typeof _=="object"&&_.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+_.behavior+" is not a valid value for enumeration ScrollBehavior.")}function g(_,k){if(k==="Y")return _.clientHeight+l<_.scrollHeight;if(k==="X")return _.clientWidth+l<_.scrollWidth}function y(_,k){var N=r.getComputedStyle(_,null)["overflow"+k];return N==="auto"||N==="scroll"}function b(_){var k=g(_,"Y")&&y(_,"Y"),N=g(_,"X")&&y(_,"X");return k||N}function v(_){for(;_!==s.body&&b(_)===!1;)_=_.parentNode||_.host;return _}function I(_){var k=c(),N,H,W,j=(k-_.startTime)/o;j=j>1?1:j,N=h(j),H=_.startX+(_.x-_.startX)*N,W=_.startY+(_.y-_.startY)*N,_.method.call(_.scrollable,H,W),(H!==_.x||W!==_.y)&&r.requestAnimationFrame(I.bind(r,_))}function A(_,k,N){var H,W,j,be,st=c();_===s.body?(H=r,W=r.scrollX||r.pageXOffset,j=r.scrollY||r.pageYOffset,be=a.scroll):(H=_,W=_.scrollLeft,j=_.scrollTop,be=p),I({scrollable:H,method:be,startTime:st,startX:W,startY:j,x:k,y:N})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){a.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}A.call(r,s.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(f(arguments[0])){a.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}A.call(r,s.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},i.prototype.scroll=i.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var _=arguments[0].left,k=arguments[0].top;A.call(this,this,typeof _=="undefined"?this.scrollLeft:~~_,typeof k=="undefined"?this.scrollTop:~~k)}},i.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(f(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},i.prototype.scrollIntoView=function(){if(f(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var _=v(this),k=_.getBoundingClientRect(),N=this.getBoundingClientRect();_!==s.body?(A.call(this,_,_.scrollLeft+N.left-k.left,_.scrollTop+N.top-k.top),r.getComputedStyle(_).position!=="fixed"&&r.scrollBy({left:k.left,top:k.top,behavior:"smooth"})):r.scrollBy({left:N.left,top:N.top,behavior:"smooth"})}}t.exports={polyfill:n}})()})(Jr);var Co=Jr.exports;const kf=Oi(Co);function No(t,e){var s,i,o,a;const n=(i=e.authClient)!=null?i:new Ci({includeV1:!0,clientId:e.clientId,authority:(s=e.authority)!=null?s:"https://account.stock3.com"});t.provide(Ni,t),t.use(xi,{client:n});const r=(o=e.apiUrl)!=null?o:"https://api.stock3.com";t.use(Di,{clientId:e.clientId,apiUrl:r,authClient:n}),e.globalM&&(t.use($i,{m:e.globalM}),e.globalM.set("/dep/Vue",Li),e.globalM.set("/dep/auth",{bgAuth:n}),e.globalM.set("/locale",(a=e.locale)!=null?a:"de")),t.runWithContext(()=>{const c=Mi(),u=jr();if(!c||!u)return;const l=zr();u.beforeResolve((p,h)=>{if("api_url"in h.query&&!("api_url"in p.query)){const f=d({},p);return f.query.api_url=h.query.api_url,f}}),qr([()=>{var p;return(p=c.query)==null?void 0:p.api_url},l.apiUrl],([p,h],[f,g])=>{var y;f!==p&&p!==l.apiUrl.value&&typeof p=="string"?l.apiUrl.value=p||r:g!==h&&h!==((y=c.query)==null?void 0:y.api_url)&&(u.push({path:c.path,query:E(d({},c.query),{api_url:h||r})}),e.globalM&&(e.globalM.set("/cfg/api/1/url",l.apiUrl.value),e.globalM.set("/cfg/api/2/url",l.apiUrl.value)))})}),window&&(t.use(Fi,{ObserverType:IntersectionObserver}),t.runWithContext(()=>{window.koala={injectables:Gr().collection}}))}function xo(t){var i;let e="",n=location.search.slice(1);n||(n=(i=location.hash.split("?").pop())!=null?i:"");const r=n.split("&");let s;for(let o=0;o<r.length;o++)s=r[o].split("="),s[0]===t&&(e=decodeURIComponent(s[1]));return e}const Wn=["broker-testing","force-thementag","ga-debug","popup-testing","expose-error-pages","page-playground","debug-ads"];class Do{constructor(e){Be(this,"flagsAllowed");Be(this,"enabledFlags",{});this.flagsAllowed=e}isActive(e){return!!(e in this.enabledFlags&&this.enabledFlags[e])}setActiveFlags(e){if(Object.keys(e).length<1&&typeof window!="undefined"){const n=xo("features");n&&(e=n.split(",").reduce((r,s)=>{if(s[0]==="!"){const i=s.slice(1);Wn.indexOf(i)!==-1&&(r[i]=!1)}else Wn.indexOf(s)!==-1&&(r[s]=!0);return r},{}))}this.enabledFlags=d(d({},Bi),this.flagsAllowed?e:{})}getAllFlags(){return Object.keys(this.enabledFlags).filter(e=>!!this.enabledFlags[e])}}function $o(t){var n,r;const e=new Do((n=t==null?void 0:t.flagsAllowed)!=null?n:!1);return e.setActiveFlags((r=t==null?void 0:t.flags)!=null?r:{}),e}function Lo(){return[]}function Mo(){return[]}function Fo(){return[]}function Bo(){var e;const t=[{path:"/terminal",component:"SBare",redirect:{name:"PTerminalLandingpage"},children:[{path:"",name:"PTerminalLandingpage",component:"PTerminalLandingpage",meta:{forceTheme:"dark"}}]},{path:"/basic",component:"SBare",redirect:{name:"PLandingPageBasicUser"},children:[{path:"",name:"PLandingPageBasicUser",component:"PLandingPageBasicUser"}]},{path:"/academy",component:"SAcademy",redirect:{name:"PAcademyOverview"},children:[{path:"",name:"PAcademyOverview",component:"PAcademyOverview"},{path:"course/:slug-:academyRef(\\d+)",name:"PAcademyDetail",component:"PAcademyDetail",meta:{requiresAuth:!0,origin:"PAcademyOverview"}}]},{path:"/",component:"SDefault",redirect:{name:"PIndex"},children:[{path:"",name:"PIndex",component:"PIndex",meta:{static:!0}},{path:":pathMatch(.*)*",component:"PError",name:"PError",meta:{error:new zn(404,"Unknown page")}},{path:"playground",name:"PPlayground",component:"PPlayground",meta:{featureFlag:"page-playground"}},{path:"trading",name:"PTradingLandingpage",component:"PTradingLandingpage",meta:{origin:"PIndex",hideAnnouncements:!0,noAutoReload:!0}},{path:"broker-select",name:"PTradingBrokerSelect",component:"PTradingBrokerSelect",meta:{origin:"PIndex",hideAnnouncements:!0,noAutoReload:!0}},{path:"broker-info/:brokerName",name:"PTradingBrokerInfo",component:"PTradingBrokerInfo",meta:{origin:"PTradingBrokerSelect",hideAnnouncements:!0,noAutoReload:!0}},{path:"broker-select/sicherheit",name:"PTradingSecurity",component:"PTradingSecurity",meta:{origin:"PTradingBrokerSelect",hideAnnouncements:!0,noAutoReload:!0}},{path:"broker-login/:brokerName",name:"PTradingBrokerLogin",component:"PTradingBrokerLogin",meta:{origin:"PTradingBrokerInfo",hideAnnouncements:!0,noAutoReload:!0}},{path:"broker-auth/:brokerName",name:"PTradingBrokerAuth",component:"PTradingBrokerAuth",meta:{origin:"PIndex",hideAnnouncements:!0,noAutoReload:!0}},{path:"depot/:pxPortfolioId?",name:"PTradingDepot",component:"PTradingDepot",meta:{hideAnnouncements:!0,hideNewsletterBanner:!0}},{path:"order-detail/:orderId",name:"PTradingOrderDetails",component:"PTradingOrderDetails",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"depot/session-tan",name:"PTradingSessionTan",component:"PTradingSessionTan",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"depot/einstellungen",name:"PTradingDepotSettings",component:"PTradingDepotSettings",meta:{origin:"PTradingDepot",hideAnnouncements:!0}},{path:"order",name:"PTradingInstrumentSearch",component:"PTradingInstrumentSearch",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"order/:instrumentRef(\\d+)/:direction",name:"PTradingOrder",component:"PTradingOrder",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"order-edit/:orderId",name:"PTradingOrderEdit",component:"PTradingOrderEdit",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"order-edit-complete/:orderId",name:"PTradingOrderEditComplete",component:"PTradingOrderEditComplete",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"order-complete/:orderId",name:"PTradingOrderComplete",component:"PTradingOrderComplete",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"position-detail/:portfolioId/:positionId",name:"PTradingPositionDetail",component:"PTradingPositionDetail",meta:{origin:"PTradingDepot",hideAnnouncements:!0,noAutoReload:!0}},{path:"watchlist",name:"PMyWatchlists",component:"PWatchlist",props:{myWatchlists:!0},meta:{hideNewsletterBanner:!0}},{path:"watchlist/:watchlistRef",name:"PWatchlist",component:"PWatchlist",meta:{hideNewsletterBanner:!0}},{path:"watchlist/edit/:watchlistRef",name:"PWatchlistEdit",component:"PWatchlistEdit",meta:{origin:"PWatchlist"}},{path:"musterdepots",name:"PDemoPortfolio",component:"PDemoPortfolio"},{path:"services",name:"PServices",component:"PServices"},{path:"experten/:slug-:userRef(\\d+)",name:"PExpertDetail",component:"PExpertDetail",meta:{keepScrollPosition:!0}},{path:"devisen",name:"PCurrencies",component:"PCurrencies",meta:{static:!0}},{path:"devisen/news",name:"PCurrenciesNews",component:"PCurrenciesNews",meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"devisen/liste",name:"PCurrenciesDetail",component:"PCurrenciesDetail",meta:{static:!0}},{path:"kryptos",name:"PCrypto",component:"PCrypto",meta:{static:!0}},{path:"kryptos/news",name:"PCryptoNews",component:"PCryptoNews",meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"kryptos/liste",name:"PCryptoDetail",component:"PCryptoDetail",meta:{static:!0}},{path:"etfs",name:"PEtfs",component:"PEtfs",meta:{static:!0}},{path:"etfs/news",name:"PEtfsNews",component:"PEtfsNews",meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"fonds",name:"PFunds",component:"PFunds",meta:{static:!0}},{path:"fonds/news",name:"PFundsNews",component:"PFundsNews",meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"news",name:"PNewsAndAnalyses",component:"PNewsAndAnalyses",meta:{static:!0}},{path:"news/live",name:"PLiveNews",component:"PLiveNews",meta:{static:!0,keepScrollPosition:!1}},{path:"news/archiv",name:"PArticleArchive",component:"PArticleArchive",props:{defaultTimeframe:0,robotsIndex:!1,useInfScroll:!0},meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"boersenwissen",name:"PKnowledgeArchive",component:"PKnowledgeArchive",props:{title:"Börsenwissen Archiv",ogTitle:"Börsenwissen für Anfänger & Einsteiger",metaDescription:"Börse für Einsteiger & Anfänger ➥ Grundlagen der Börse kostenlos, kompakt, leicht und verständlich erklärt ✓ Jetzt informieren!",baseFilterAnd:[["type.id",19]],hideSearch:!0,footerText:["Lerne alles, was Du für den erfolgreichen Start an der Börse benötigst – von der Suche des richtigen Brokers über die Produktauswahl bis hin zur erfolgsversprechenden Handelsstrategie.","Unsere Profi-Trader von stock3 erklären Dir alles Wissenswerte zu Börse und Charttechnik, geben Tipps zur Fehlervermeidung, beleuchten die Grundlagen des Risiko- und Moneymanagements und zeigen die wichtigsten Schritte bei der Vorbereitung und Umsetzung von erfolgreichem Trading auf.","Im Wissensbereich von stock3 finden sowohl Einsteiger als auch Fortgeschrittene wertvolle Tipps und Tricks rund um börsenrelevante Themen."],footerTextTitle:"Infos zum Börsenwissen",omitFilterTypes:["article_types"],useInfScroll:!0},meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"aktien",name:"PShares",component:"PShares",meta:{static:!0}},{path:"aktien/news",name:"PSharesNews",component:"PSharesNews",meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"rohstoffe",name:"PCommodities",component:"PCommodities",meta:{static:!0}},{path:"rohstoffe/news",name:"PCommoditiesNews",component:"PCommoditiesNews",meta:{forceComponentRemount:!0,keepScrollPosition:!0,static:!0}},{path:"maerkte",name:"PMarkets",component:"PMarkets",meta:{static:!0}},{path:"indizes",name:"PIndices",component:"PIndices",meta:{static:!0}},{path:"indizes/news",name:"PIndicesNews",component:"PIndicesNews",meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"zertifikate",name:"PCertificates",component:"PCertificates",meta:{static:!0}},{path:"zertifikate/news",name:"PCertificatesNews",component:"PCertificatesNews",meta:{forceComponentRemount:!0,keepScrollPosition:!1,static:!0}},{path:"zertifikate/match-my-trade",name:"PMatchMyTrade",component:"PMatchMyTrade",meta:{static:!0}},{path:"store",name:"PStore",component:"PPremium",props:{title:"stock3 Services | Trading- & Analyse-Services, Coaching & Seminare - Jetzt entdecken",metaDescription:"Profitieren Sie von den Premium-Angeboten ✓exklusive Analysen ✓Trading-Ideen ✓vielen Features u.v.m.",mainTagFilters:[],robotsIndex:!0},meta:{keepScrollPosition:!0,static:!0,hideAnnouncements:!0}},{path:"store/vertragsbedingungen",name:"PStoreContractInfo",component:"PStoreContractInfo",props:{title:"Vertragsbedingungen",robotsIndex:!0},meta:{origin:"PStore",hideAnnouncements:!0}},{path:"store/crypto-aktion",name:"PStore_cryptoaktion",component:"PPremium",props:{mainTagFilters:[58]}},{path:"store/plus",name:"PStore_stock3",component:"PPremium",props:{title:"stock3 Plus - Exklusive Zusatzartikel buchen",metaDescription:"stock3 Plus ✓Zusatzartikel auf stock3.com ✓exklusive Artikel mit Zeitvorsprung ✓ Jetzt stock3 PLUS bei stock3.com buchen!",mainTagFilters:[45],robotsIndex:!0}},{path:"store/pro",name:"PStore_pro",component:"PPremium",props:{title:"Technik Pakete: mehr Features für Deinen Tradingerfolg",metaDescription:"Profitiere mit den Technik-Paketen von vielen Features auf allen Endgeräten. Speichere noch mehr Kursalarme, Charts & Desktops.",mainTagFilters:[6],robotsIndex:!0},meta:{static:!0}},{path:"store/analyse-services",name:"PStore_analyse",component:"PPremium",props:{title:"Analyse-Services - Jetzt entdecken",metaDescription:"Unsere Analyse-Services bieten ✓Analysen zu Aktien, Indizes uvm. ✓mehrmals pro Tag - Jetzt auf stock3.com entdecken!",mainTagFilters:[70],robotsIndex:!0},meta:{static:!0}},{path:"store/trading-services",name:"PStore_trading",component:"PPremium",props:{title:"Trading-Services - Jetzt entdecken",metaDescription:"Unsere Trading-Services bieten ✓verschiedene Trading-Ansätze ✓viele mit Musterdepot - Jetzt auf stock3.com entdecken!",mainTagFilters:[2],robotsIndex:!0},meta:{static:!0}},{path:"store/signal-services",name:"PStore_signal",component:"PPremium",props:{title:"Signal-Services - Jetzt entdecken",metaDescription:"Unsere Signal-Services bieten ✓Analysen zu Aktien, Indizes, Kryptosuvm. ✓mehrmals pro Tag - Jetzt entdecken!",mainTagFilters:[73],robotsIndex:!0},meta:{static:!0}},{path:"store/coaching",name:"PStore_coaching",component:"PPremium",props:{title:"Ausbildungs-Services: Trading-Tipps & Moneymanagement",metaDescription:"Traden lernen leicht gemacht: Mit den Coaching-Angeboten von stock3 ✓ Theorie, Praxis und Betreuung ✓ Lernen Sie von unseren Trading-Experten.",mainTagFilters:[3],robotsIndex:!0},meta:{static:!0}},{path:"store/seminare",name:"PStore_webinars",component:"PPremium",props:{title:"Live-/ Online-Seminare mit Finanzexperten & Tradern",metaDescription:"Treffen Sie Trader live oder auch im Online-Seminar. Verschiedene Themengebiete bieten ein breites Spektrum für den Einsteiger bis zum Profi.",mainTagFilters:[4,46],robotsIndex:!0},meta:{static:!0}},{path:"store/add-ons",name:"PStore_quotes",component:"PPremium",props:{title:"Realtime-Kurspakete und dpaFX PROFeed",metaDescription:"Zeitvorsprung durch die Realtime-Kurspakete von XETRA, STOXX Indices ✓ Mit dem dpaFX PROFeed schneller mehr wissen ",mainTagFilters:[74],robotsIndex:!0},meta:{static:!0}},{path:"store/partner-services",name:"PStore_parter_services",component:"PPremium",props:{title:"Partner Services",metaDescription:"Partner Services",mainTagFilters:[75],robotsIndex:!0},meta:{static:!0}},{path:"store/:slug-:storePageRef(\\d+)",name:"PStoreDetail",component:"PStoreDetail",props:{robotsIndex:!0},meta:{origin:"PStore"}},{path:"premium",name:"PPremium",component:"PPremium",props:{robotsIndex:!0,title:"stock3 Services | Exklusive Tradingideen & Analysen ✓ Jetzt entdecken",metaDescription:"Hochwertige Analysen von Börsenprofis ✓ Trading- und Investmentideen ✓ Muster-Depot- & Kursalarme verwalten ✓ Jetzt stock3 Services entdecken"},meta:{static:!0,hideAnnouncements:!0}},{path:"premium/tech",name:"PPremiumTech",component:"PPremium",props:{robotsIndex:!0,title:"stock3 Terminal Services | Exklusive Funktionen für Dein Trading",metaDescription:"Profitiere von exklusiven Features des stock3 Terminals ✓ Professionelles Charting ✓ Aktien-Screening ✓ Kursalarme, Muster-Depots u.v.m. Jetzt entdecken"},meta:{static:!0,hideAnnouncements:!0}},{path:"services/:slug-:groupRef(\\d+)",name:"PPremiumService",component:"PPremiumService",meta:{hideNewsletterBanner:!0,hideAnnouncements:!0}},{path:"services/:slug-:groupRef(\\d+)/artikel-archiv",name:"PPremiumServiceDetail",component:"PPremiumServiceDetail",meta:{keepScrollPosition:!0,hideNewsletterBanner:!0,hideAnnouncements:!0}},{path:"services/cashkurs-trends-29/archiv",name:"PArticleArchive_Cashkurs_Trends",component:"PArticleArchiveCashkursTrends",meta:{requiresAuth:!0,requiresGroup:[29],hideAnnouncements:!0,keepScrollPosition:!1}},{path:"wirtschaftskalender",name:"PAppointments",component:"PAppointments",meta:{static:!0}},{path:"events",name:"PEvents",component:"PEvents",meta:{static:!0}},{path:"events/:eventRef(\\d+)",name:"PEventDetail",component:"PEventDetail",meta:{origin:"PEvents"}},{path:"events/abmelden/:jwt",name:"PEventUnsubscribe",component:"PEventUnsubscribe",meta:{origin:"PEvents"}},{path:"produktsuche",name:"PProductSearch",component:"PProductSearch",props:{robotsIndex:!1},meta:{keepScrollPosition:!0,static:!0}},{path:"etfs/suche",name:"PProductSearchEtfs",component:"PProductSearchEtfs",meta:{keepScrollPosition:!0,static:!0}},{path:"fonds/suche",name:"PProductSearchFonds",component:"PProductSearchFonds",meta:{keepScrollPosition:!0,static:!0}},{path:"zertifikate/suche",name:"PProductSearchKnockOuts",component:"PProductSearchKnockOuts",meta:{keepScrollPosition:!0,static:!0}},{path:"experten",name:"PExperts",component:"PExperts",meta:{static:!0}},{path:"rechtliches",name:"PLegalOverview",component:"PLegalOverview"},{path:"rechtliches/agb",name:"PLegal-termsandconditions",component:"PLegal"},{path:"rechtliches/datenschutz",name:"PLegal-dataprivacy",component:"PLegal"},{path:"rechtliches/haftungsausschluss",name:"PLegal-disclaimer",component:"PLegal"},{path:"rechtliches/impressum",name:"PLegal-notice",component:"PLegal"},{path:"rechtliches/nutzungsgrundlagen",name:"PLegal-usagerules",component:"PLegal"},{path:"rechtliches/zeitverzoegerung",name:"PLegal-quotetimedelayinformation",component:"PLegal"},{path:"rechtliches/systemvoraussetzungen",name:"PLegal-systemrequirements",component:"PLegal"},{path:"rechtliches/widerrufsrecht",name:"PLegal-right-of-withdrawal",component:"PLegal"},{path:"rechtliches/datenschutz-social-media",name:"PLegal-dataprivacy-social-media",component:"PLegal"},{path:"sg/rechtliche-hinweise",name:"PSgLegal",component:"PLegal",props:{articleId:8468075}},{path:"aktien/aktien-screener",name:"PScreener",component:"PScreener"},{path:"dax-marktkapitalisierung",name:"PMarketCapDax",component:"PScreener"},{path:"sp500-marktkapitalisierung",name:"PMarketCapSp500",component:"PScreener"},{path:"aktien/aktien-screener/:slug-:screenerTemplateRef(\\d+)",name:"PScreenerDetail",component:"PScreenerDetail"},{path:"netiquette",name:"PNetiquette",component:"PNetiquette"},{path:"werbehinweise",name:"PAdInfo",component:"PAdInfo"},{path:"testumgebung/werbung",name:"PZombie",component:"PZombie"},{path:"newsletter",name:"PNewsletter",component:"PNewsletter",meta:{hideNewsletterBanner:!0,static:!0}},{path:"lesezeichen",name:"PBookmarks",component:"PBookmarks"},{path:"kursalarme",name:"PQuoteAlerts",component:"PQuoteAlerts",meta:{requiresAuth:!0}},{path:"stream",name:"PStream",component:"PStream",meta:{requiresAuth:!0}},...Fo(),...Mo(),...Lo(),...Hi.map(n=>({path:`${n}`,component:"PError",name:`PError${n}`,meta:{error:new zn(n),featureFlag:"expose-error-pages"}})),...[...Object.values(_t),...Object.values(Vt)].reduce((n,r)=>{if(r){const s=[{path:"",name:r.name,component:"PInstrumentOverview"}];["PInstrumentCrypto","PInstrumentStock","PInstrumentIndex","PInstrumentCurrency","PInstrumentCommodity"].includes(r.name)&&s.push({path:"news",name:`${r.name}News`,component:"PInstrumentArticleArchive",meta:{keepScrollPosition:!0}}),r.name==="PInstrumentStock"&&s.push({path:"kennzahlen",name:`${r.name}Fundamental`,component:"PInstrumentFundamental"}),n.push({path:`${r.path}/:slug-:instrumentRef(\\d+)/einzelwerte`,name:`${r.name}Components`,component:"PInstrumentComponents"}),n.push({path:`/${r.path}/:slug-:instrumentRef(\\d+)`,component:"PInstrument",redirect:{name:r.name},children:s})}return n},[]),...Object.values(yt).reduce((n,r)=>(r&&n.push({path:`${r.path}/:slug-:articleRef(\\d+)`,name:r.name,component:"PArticle",meta:{allowsPaywallSeoBypass:!0}}),n),[]),{path:"themen/:slug-:articleTopicRef(\\d+)",name:"PArticleTopic",component:"PArticleTopic"},{path:"thementag-kalender",name:"PThementagCalendar",component:"PThementagCalendar"}]}];for(const n of t)if(typeof n.strict!="undefined"&&(n.strict=!0),(e=n.children)!=null&&e.length)for(const r of n.children)r.strict=!0;return t}class Ho{constructor(){Be(this,"routeMapping",{article:"PArticle",user:"PExpertDetail",event:"PEventDetail",instrument:"PInstrument","store/page":"PStoreDetail",watchlist:"PWatchlist",group:"PPremiumService",academy:"PAcademyDetail","screener/template":"PScreenerDetail","article/topic":"PArticleTopic"});Be(this,"requiredAttributes",{article:["id","slug",{type:["id"]}],user:["id","displayName"],instrument:["id","slug",{assetClass:["id"],category:["id"]}],"store/page":["id","slug",{items:["isExternalItem","purchaseUrl"]}],watchlist:["id"],group:["id","slug"],academy:["id"],"screener/template":["id","name"],"article/topic":Ui,event:["id"]})}slugify(e){return e.toLowerCase().replace("ä","ae").replace("ö","oe").replace("ü","ue").replace("ß","ss").replace("é","e").replace(/([^a-z0-9]|-)+/g,"-")}resolve(e,n){var a,c,u,l,p,h;const r=e instanceof ji?e.getResourceName():e.toRef().getResourceName(),s=this.routeMapping[r];let i="slug"in e?e.slug:null,o=n!=null?n:s;switch(r){case"instrument":{if(!i)return null;const f=e,g=(a=f==null?void 0:f.assetClass)==null?void 0:a.getPrimaryKey(),y=(c=f==null?void 0:f.category)==null?void 0:c.getPrimaryKey();let b;typeof y!="undefined"&&y in Vt?b=Vt[y]:typeof g!="undefined"&&g in _t?b=_t[g]:b=_t.default,o=b.name,n==="PInstrumentComponents"&&(o+="Components");break}case"store/page":{const f=e,g=(u=f.items)==null?void 0:u[0];if(((l=f.items)==null?void 0:l.length)===1&&(g!=null&&g.isExternalItem)&&g.purchaseUrl)return g.purchaseUrl;break}case"user":{const f=e.getPrimaryKey();if(!(f in ot)||!ot[f].isLinkable)return null;const g=e;i=ot[e.getPrimaryKey()].slug?ot[e.getPrimaryKey()].slug:this.slugify((p=g.displayName)!=null?p:"unbekannt");break}case"article":{if(!i)return null;const f=e,g=(h=f==null?void 0:f.type)==null?void 0:h.id;let y;if(typeof g!="undefined"&&g!==null&&g in yt?y=yt[g]:y=yt.default,y===null)return null;o=y==null?void 0:y.name;break}case"group":{const f=qi[e.getPrimaryKey()];if(f){if(Gi(f))return f.terminalLink;if(zi(f)){if(f.visualOnly)return null;if(Wi(f.to))return f.to}f.slug&&(i=f.slug)}break}case"screener/template":{const f=e;f!=null&&f.name?i=this.slugify(f.name):i="unbekannt";break}case"academy":{const f=e;f!=null&&f.title?i=this.slugify(f.title):i="unbekannt";break}}return{name:o,params:{[`${Vi[r]}Ref`]:String(e.getPrimaryKey()),slug:i}}}}console.watch=()=>{};function at(t){if(!t)return null;const e=t.match(new RegExp("\\brelease-\\d{4}-\\d{2}-\\d{2}-(?<buildnum>\\d+)\\b"));return!e||!(e!=null&&e.groups)?null:{release:e[0],build:Number(e.groups.buildnum)}}function Uo(t){const e=jr(),n=new wo({namespace:"stock3.versionCheckReloads",router:e}),{application:r}=Wr();let s=!1;function i(u){var I,A,_,k,N,H,W,j,be,st,Bn,Hn;const l=(_=(A=at((I=window.stock3)==null?void 0:I.version.stock3))==null?void 0:A.build)!=null?_:null;if(!l){console.warn("[AutoUpdater] Unable to determine release version number. Probably a staging-release");return}const p=(N=(k=at(u==null?void 0:u.currentVersion))==null?void 0:k.build)!=null?N:0,h=(W=(H=at(u==null?void 0:u.warnBelowVersion))==null?void 0:H.build)!=null?W:0,f=(be=(j=at(u==null?void 0:u.cutoffBelowVersion))==null?void 0:j.build)!=null?be:0;let g=(st=u==null?void 0:u.rollbackActive)!=null?st:!1;g=typeof g=="string"?JSON.parse(g):g;const y=f>l,b=l>p&&g,v=h>l;console.log(`[AutoUpdater] ${y?"too old":""}${b?"too new":""}${v?"stale":""}${!y&&!b&&!v?"version ok":"attempting reload"}`),b&&console.log("[AutoUpdater] active rollback",u),y||b?(Hn=(Bn=e.currentRoute.value)==null?void 0:Bn.meta)!=null&&Hn.noAutoReload?s=!0:n.attemptReload():v&&(s=!0)}function o(){return Gn(this,null,function*(){var l;const u=yield r.getOne({ref:new Ki({id:6}),overwrite:!0,attributes:["currentVersion","cutoffBelowVersion","warnBelowVersion","rollbackActive"]});if(u instanceof Error)return null;u&&((l=window.stock3)!=null&&l.version)&&i(u)})}Yi().subscribe({event:"subscribe",data:{event:"version-update",data:{id:6}},history:0},(u,l)=>{u||l.data&&i(l.data)});const a=setInterval(o,1e3*60*60);o();const c=e.beforeResolve(()=>{s&&(n.attemptReload(),s=!1)});Xi(()=>{clearInterval(a),c()})}const Vn="ga-initialization";function Yn(){var n,r,s;if(document.getElementById(Vn)!==null)return;const t=(n=window==null?void 0:window.Cookiebot)==null?void 0:n.consent;if(!t||!(t!=null&&t.statistics)&&!(t!=null&&t.marketing))return;(r=window.dataLayer)!=null||(window.dataLayer=[]),(s=window.gtag)!=null||(window.gtag=function(){var i;(i=window.dataLayer)==null||i.push(arguments)});const e=document.createElement("script");e.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-0LS703RW3W"),e.async=!0,e.id=Vn,document.head.appendChild(e),window.gtag("js",new Date),window.gtag("config","G-0LS703RW3W",{send_page_view:!1})}function jo(){const t=Ji(Zi);if(t!=null&&t.isActive("ga-debug")){console.log("[MOCK GA] DEBUG MODE ENABLED Would load google scripts now, but setting up mock.");const e=(n,...r)=>{var s;if((s=window.dataLayer)!=null&&s.length&&(console.log("[MOCK GA] Captured Events before initialization",window.dataLayer),window.dataLayer=[]),(r==null?void 0:r.length)>=2){const[i,o]=r;console.log("[MOCK GA] Event %s]",i,JSON.stringify(o,null,4))}};window.gtag=e;return}Yn(),window.addEventListener("CookiebotOnConsentReady",Yn)}const qo=t=>(so("data-v-8789bc3b"),t=t(),io(),t),Go=qo(()=>St("span",{class:"colored-dot"},null,-1)),zo={class:"copy"},Wo={key:0,class:"title"},Vo={class:"toast-body"},Yo=yn({__name:"CToast",props:{toast:{}},setup(t){Qi(i=>({f6a6b6d0:s.value}));const e={info:"var(--brand-orange)",success:"var(--brand-green)",error:"var(--brand-red)"},n=t;function r(){return n.toast.render()}const s=eo(()=>e[n.toast.type]);return(i,o)=>(ae(),We("div",{class:"c-toast",onMouseenter:o[1]||(o[1]=a=>i.toast.pause()),onMouseleave:o[2]||(o[2]=a=>i.toast.play())},[Go,St("div",zo,[i.toast.title.value?(ae(),We("div",Wo,[to(no(i.toast.title.value)+" ",1),St("button",{class:"btn-close",onClick:o[0]||(o[0]=a=>i.toast.close())},[ce(ro,{icon:"x"})])])):Vr("",!0),St("div",Vo,[ce(r)])])],32))}}),Zr=Yr(Yo,[["__scopeId","data-v-8789bc3b"]]),wf=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),Xo={class:"c-toaster"},Ko=yn({__name:"MToaster",setup(t){const{toasts:e}=oo();return(n,r)=>(ae(),We("div",Xo,[ce(co,{name:"toast"},{default:Yt(()=>[(ae(!0),We(Xr,null,ao(Kt(e),s=>(ae(),Xt(Zr,{key:s.id,toast:s},null,8,["toast"]))),128))]),_:1})]))}}),Qr=Yr(Ko,[["__scopeId","data-v-6d79cae2"]]),Af=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),Jo=yn({__name:"Stock3Root",setup(t){const e=Oo(()=>_o(()=>import("./3sxoiCdQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])),{loadingComponent:null});Uo(),jo();const{isEmployee:n}=uo(),{employeeToolsOpen:r}=Kr();function s(i){i.repeat||n.value&&i.code==="KeyG"&&i.altKey&&(r.value=!r.value)}return lo(()=>window.addEventListener("keydown",s)),fo(()=>window.removeEventListener("keydown",s)),(i,o)=>{const a=po("router-view");return ae(),We(Xr,null,[ce(a),ce(go,{"hide-loader":""},{default:Yt(()=>[ce(Qr),(ae(),Xt(ho,{to:"#overlay-container"},[ce(mo,{name:"fade"},{default:Yt(()=>[Kt(r)?(ae(),Xt(Kt(e),{key:0,onClose:o[0]||(o[0]=c=>r.value=!1)})):Vr("",!0)]),_:1})]))]),_:1})],64)}}});function Rf(t){var f;const{s3AuthClient:e,initialState:n,ssr:r=!1,featureFlagsOptions:s={},globalM:i,apiUrl:o}=t,a=new yo;n&&a.deserialize(n);const c=$o(s!=null?s:{}),u=(f=t.router)!=null?f:Ao({ssr:r,featureFlags:c,routesSource:Bo}),l=(r?So:bo)(Jo);l.provide(To,l),l.provide(Eo,new Ho),l.use(vo,{featureFlagsInstance:c}),l.use(u),l.use(a),l.use(No,{authClient:e,apiUrl:o!=null?o:"https://api.stock3.com",clientId:"stock3",globalM:i});let p,h;return l.runWithContext(()=>{l.use(Io,{stateRegistry:a}),p=Gr().collection,a.register("time",Po()),a.register("layout",Kr()),a.register("product",Ro()),a.register("api",zr()),h=Wr()}),{app:l,router:u,stateRegistry:a,injectables:p,resources:h,featureFlagsInstance:c}}const es=Object.prototype.toString;function ts(t){switch(es.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return te(t,Error)}}function xe(t,e){return es.call(t)===`[object ${e}]`}function Sn(t){return xe(t,"ErrorEvent")}function Xn(t){return xe(t,"DOMError")}function Zo(t){return xe(t,"DOMException")}function K(t){return xe(t,"String")}function bn(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Tn(t){return t===null||bn(t)||typeof t!="object"&&typeof t!="function"}function we(t){return xe(t,"Object")}function Rt(t){return typeof Event!="undefined"&&te(t,Event)}function Qo(t){return typeof Element!="undefined"&&te(t,Element)}function ea(t){return xe(t,"RegExp")}function Ot(t){return!!(t&&t.then&&typeof t.then=="function")}function ta(t){return we(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function ns(t){return typeof t=="number"&&t!==t}function te(t,e){try{return t instanceof e}catch(n){return!1}}function rs(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Pe(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Kn(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{rs(s)?n.push("[VueViewModel]"):n.push(String(s))}catch(i){n.push("[value cannot be serialized]")}}return n.join(e)}function na(t,e,n=!1){return K(t)?ea(e)?e.test(t):K(e)?n?t===e:t.includes(e):!1:!1}function Je(t,e=[],n=!1){return e.some(r=>na(t,r,n))}function ra(t,e,n=250,r,s,i,o){if(!i.exception||!i.exception.values||!o||!te(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=sa(Jt(t,e,s,o.originalException,r,i.exception.values,a,0),n))}function Jt(t,e,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(te(r[s],Error)){Jn(o,a);const u=t(e,r[s]),l=c.length;Zn(u,s,l,a),c=Jt(t,e,n,r[s],s,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(te(u,Error)){Jn(o,a);const p=t(e,u),h=c.length;Zn(p,`errors[${l}]`,h,a),c=Jt(t,e,n,u,s,[p,...c],p,h)}}),c}function Jn(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=E(d(d({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function Zn(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=E(d({},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function sa(t,e){return t.map(n=>(n.value&&(n.value=Pe(n.value,e)),n))}function ct(t){return t&&t.Math==Math?t:void 0}const P=typeof globalThis=="object"&&ct(globalThis)||typeof window=="object"&&ct(window)||typeof self=="object"&&ct(self)||typeof global=="object"&&ct(global)||function(){return this}()||{};function En(){return P}function ss(t,e,n){const r=n||P,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}const ke=En(),ia=80;function Ae(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,p=!Array.isArray(e)&&e.maxStringLength||ia;for(;n&&i++<r&&(u=oa(n,l),!(u==="html"||i>1&&o+s.length*c+u.length>=p));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(n){return"<unknown>"}}function oa(t,e){const n=t,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(ke.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter(p=>n.getAttribute(p)).map(p=>[p,n.getAttribute(p)]):null;if(u&&u.length)u.forEach(p=>{r.push(`[${p[0]}="${p[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&K(s))for(i=s.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)o=l[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function aa(){try{return ke.document.location.href}catch(t){return""}}function ca(t){return ke.document&&ke.document.querySelector?ke.document.querySelector(t):null}function is(t){if(!ke.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement&&e.dataset.sentryComponent)return e.dataset.sentryComponent;e=e.parentNode}return null}const De=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,ua="Sentry Logger ",Zt=["debug","info","warn","error","log","assert","trace"],Et={};function pe(t){if(!("console"in P))return t();const e=P.console,n={},r=Object.keys(Et);r.forEach(s=>{const i=Et[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function la(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return De?Zt.forEach(n=>{e[n]=(...r)=>{t&&pe(()=>{P.console[n](`${ua}[${n}]:`,...r)})}}):Zt.forEach(n=>{e[n]=()=>{}}),e}const m=la(),da=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function fa(t){return t==="http"||t==="https"}function $e(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function pa(t){const e=da.exec(t);if(!e){pe(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i,o="",a]=e.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const p=u.match(/^\d+/);p&&(u=p[0])}return os({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function os(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ma(t){if(!De)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(m.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?fa(r)?e&&isNaN(parseInt(e,10))?(m.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ha(t){const e=typeof t=="string"?pa(t):os(t);if(!(!e||!ma(e)))return e}class X extends Error{constructor(e,n="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function L(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);typeof s=="function"&&as(s,r),t[e]=s}function le(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){De&&m.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function as(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,le(t,"__sentry_original__",e)}catch(n){}}function vn(t){return t.__sentry_original__}function ga(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function cs(t){if(ts(t))return d({message:t.message,name:t.name,stack:t.stack},er(t));if(Rt(t)){const e=d({type:t.type,target:Qn(t.target),currentTarget:Qn(t.currentTarget)},er(t));return typeof CustomEvent!="undefined"&&te(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Qn(t){try{return Qo(t)?Ae(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function er(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function _a(t,e=40){const n=Object.keys(cs(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Pe(n[0],e);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>e))return r===n.length?s:Pe(s,e)}return""}function B(t){return Qt(t,new Map)}function Qt(t,e){if(ya(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const s of Object.keys(t))typeof t[s]!="undefined"&&(r[s]=Qt(t[s],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(s=>{r.push(Qt(s,e))}),r}return t}function ya(t){if(!we(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch(e){return!0}}const us=50,tr=/\(error: (.*)\)/,nr=/captureMessage|captureException/;function ls(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],i=n.split(`
`);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const c=tr.test(a)?a.replace(tr,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of e){const l=u(c);if(l){s.push(l);break}}if(s.length>=us)break}}return ba(s)}}function Sa(t){return Array.isArray(t)?ls(...t):t}function ba(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),nr.test(e[e.length-1].function||"")&&(e.pop(),nr.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,us).map(n=>E(d({},n),{filename:n.filename||e[e.length-1].filename,function:n.function||"?"}))}const Bt="<anonymous>";function ne(t){try{return!t||typeof t!="function"?Bt:t.name||Bt}catch(e){return Bt}}const bt={},rr={};function me(t,e){bt[t]=bt[t]||[],bt[t].push(e)}function he(t,e){rr[t]||(e(),rr[t]=!0)}function q(t,e){const n=t&&bt[t];if(n)for(const r of n)try{r(e)}catch(s){De&&m.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${ne(r)}
Error:`,s)}}function Ta(t){const e="console";me(e,t),he(e,Ea)}function Ea(){"console"in P&&Zt.forEach(function(t){t in P.console&&L(P.console,t,function(e){return Et[t]=e,function(...n){q("console",{args:n,level:t});const s=Et[t];s&&s.apply(P.console,n)}})})}function C(){const t=P,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch(r){}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function ds(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ie(t){const{message:e,event_id:n}=t;if(e)return e;const r=ds(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function en(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Ve(t,e){const n=ds(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism=d(d(d({},r),s),e),e&&"data"in e){const i=d(d({},s&&s.data),e.data);n.mechanism.data=i}}function sr(t){if(t&&t.__sentry_captured__)return!0;try{le(t,"__sentry_captured__",!0)}catch(e){}return!1}function In(t){return Array.isArray(t)?t:[t]}const Ee=P,va=1e3;let ir,tn,nn;function Ia(t){const e="dom";me(e,t),he(e,Pa)}function Pa(){if(!Ee.document)return;const t=q.bind(null,"dom"),e=or(t,!0);Ee.document.addEventListener("click",e,!1),Ee.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const r=Ee[n]&&Ee[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(L(r,"addEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){const p=or(t);l.handler=p,s.call(this,i,p,a)}l.refCount++}catch(c){}return s.call(this,i,o,a)}}),L(r,"removeEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(s.call(this,i,l.handler,a),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch(c){}return s.call(this,i,o,a)}}))})}function ka(t){if(t.type!==tn)return!1;try{if(!t.target||t.target._sentryId!==nn)return!1}catch(e){}return!0}function wa(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function or(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Aa(n);if(wa(n.type,r))return;le(n,"_sentryCaptured",!0),r&&!r._sentryId&&le(r,"_sentryId",C());const s=n.type==="keypress"?"input":n.type;ka(n)||(t({event:n,name:s,global:e}),tn=n.type,nn=r?r._sentryId:void 0),clearTimeout(ir),ir=Ee.setTimeout(()=>{nn=void 0,tn=void 0},va)}}function Aa(t){try{return t.target}catch(e){return null}}const rn=En();function fs(){if(!("fetch"in rn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function sn(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Ra(){if(typeof EdgeRuntime=="string")return!0;if(!fs())return!1;if(sn(rn.fetch))return!0;let t=!1;const e=rn.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=sn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){De&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function ps(t){const e="fetch";me(e,t),he(e,Oa)}function Oa(){Ra()&&L(P,"fetch",function(t){return function(...e){const{method:n,url:r}=Ca(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return q("fetch",d({},s)),t.apply(P,e).then(i=>{const o=E(d({},s),{endTimestamp:Date.now(),response:i});return q("fetch",o),i},i=>{const o=E(d({},s),{endTimestamp:Date.now(),error:i});throw q("fetch",o),i})}})}function on(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ar(t){return typeof t=="string"?t:t?on(t,"url")?t.url:t.toString?t.toString():"":""}function Ca(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:ar(n),method:on(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:ar(e),method:on(e,"method")?String(e.method).toUpperCase():"GET"}}let ut=null;function ms(t){const e="error";me(e,t),he(e,Na)}function Na(){ut=P.onerror,P.onerror=function(t,e,n,r,s){return q("error",{column:r,error:s,line:n,msg:t,url:e}),ut&&!ut.__SENTRY_LOADER__?ut.apply(this,arguments):!1},P.onerror.__SENTRY_INSTRUMENTED__=!0}let lt=null;function hs(t){const e="unhandledrejection";me(e,t),he(e,xa)}function xa(){lt=P.onunhandledrejection,P.onunhandledrejection=function(t){return q("unhandledrejection",t),lt&&!lt.__SENTRY_LOADER__?lt.apply(this,arguments):!0},P.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const dt=En();function Da(){const t=dt.chrome,e=t&&t.app&&t.app.runtime,n="history"in dt&&!!dt.history.pushState&&!!dt.history.replaceState;return!e&&n}const He=P;let ft;function Pn(t){const e="history";me(e,t),he(e,$a)}function $a(){if(!Da())return;const t=He.onpopstate;He.onpopstate=function(...n){const r=He.location.href,s=ft;if(ft=r,q("history",{from:s,to:r}),t)try{return t.apply(this,n)}catch(o){}};function e(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const i=ft,o=String(s);ft=o,q("history",{from:i,to:o})}return n.apply(this,r)}}L(He.history,"pushState",e),L(He.history,"replaceState",e)}const La=P,ve="__sentry_xhr_v3__";function gs(t){const e="xhr";me(e,t),he(e,Ma)}function Ma(){if(!La.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;L(t,"open",function(e){return function(...n){const r=Date.now(),s=K(n[0])?n[0].toUpperCase():void 0,i=Fa(n[1]);if(!s||!i)return e.apply(this,n);this[ve]={method:s,url:i,request_headers:{}},s==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this[ve];if(a&&this.readyState===4){try{a.status_code=this.status}catch(u){}const c={args:[s,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};q("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?L(this,"onreadystatechange",function(a){return function(...c){return o(),a.apply(this,c)}}):this.addEventListener("readystatechange",o),L(this,"setRequestHeader",function(a){return function(...c){const[u,l]=c,p=this[ve];return p&&K(u)&&K(l)&&(p.request_headers[u.toLowerCase()]=l),a.apply(this,c)}}),e.apply(this,n)}}),L(t,"send",function(e){return function(...n){const r=this[ve];if(!r)return e.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const s={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return q("xhr",s),e.apply(this,n)}})}function Fa(t){if(K(t))return t;try{return t.toString()}catch(e){}}function Ba(){return"npm"}function Ha(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(s){if(t)return e.has(s)?!0:(e.add(s),!1);for(let i=0;i<e.length;i++)if(e[i]===s)return!0;return e.push(s),!1}function r(s){if(t)e.delete(s);else for(let i=0;i<e.length;i++)if(e[i]===s){e.splice(i,1);break}}return[n,r]}function se(t,e=100,n=1/0){try{return an("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function _s(t,e=3,n=100*1024){const r=se(t,e);return Ga(r)>n?_s(t,e-1,n):r}function an(t,e,n=1/0,r=1/0,s=Ha()){const[i,o]=s;if(e==null||["number","boolean","string"].includes(typeof e)&&!ns(e))return e;const a=Ua(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const f=u.toJSON();return an("",f,c-1,r,s)}catch(f){}const l=Array.isArray(e)?[]:{};let p=0;const h=cs(e);for(const f in h){if(!Object.prototype.hasOwnProperty.call(h,f))continue;if(p>=r){l[f]="[MaxProperties ~]";break}const g=h[f];l[f]=an(f,g,c-1,r,s),p++}return o(e),l}function Ua(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global!="undefined"&&e===global)return"[Global]";if(typeof window!="undefined"&&e===window)return"[Window]";if(typeof document!="undefined"&&e===document)return"[Document]";if(rs(e))return"[VueViewModel]";if(ta(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${ne(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=ja(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ja(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function qa(t){return~-encodeURI(t).split(/%..|./).length}function Ga(t){return qa(JSON.stringify(t))}var J;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(J||(J={}));function Re(t){return new F(e=>{e(t)})}function kn(t){return new F((e,n)=>{n(t)})}class F{constructor(e){F.prototype.__init.call(this),F.prototype.__init2.call(this),F.prototype.__init3.call(this),F.prototype.__init4.call(this),this._state=J.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new F((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new F((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=e=>{this._setResult(J.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(J.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===J.PENDING){if(Ot(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===J.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===J.RESOLVED&&n[1](this._value),this._state===J.REJECTED&&n[2](this._value),n[0]=!0)})}}}function za(t){const e=[];function n(){return t===void 0||e.length<t}function r(o){return e.splice(e.indexOf(o),1)[0]}function s(o){if(!n())return kn(new X("Not adding Promise because buffer limit was reached."));const a=o();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(o){return new F((a,c)=>{let u=e.length;if(!u)return a(!0);const l=setTimeout(()=>{o&&o>0&&a(!1)},o);e.forEach(p=>{Re(p).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:e,add:s,drain:i}}function ue(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const Wa=["fatal","error","warning","log","info","debug"];function Va(t){return t==="warn"?"warning":Wa.includes(t)?t:"log"}const ys=1e3;function Ze(){return Date.now()/ys}function Ya(){const{performance:t}=P;if(!t||!t.now)return Ze;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/ys}const Le=Ya(),U=(()=>{const{performance:t}=P;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,o=t.timing&&t.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):e,u=c<e;return i||u?s<=c?t.timeOrigin:o:r})(),cn="baggage",Ss="sentry-",Xa=/^sentry-/,Ka=8192;function Ja(t){if(!K(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((r,s)=>{const i=cr(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!t)return;e=cr(t)}const n=Object.entries(e).reduce((r,[s,i])=>{if(s.match(Xa)){const o=s.slice(Ss.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function bs(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${Ss}${r}`]=s),n),{});return Za(e)}function cr(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(e[n]=r,e),{})}function Za(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${e},${i}`;return o.length>Ka?(De&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const Qa=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ec(t){if(!t)return;const e=t.match(Qa);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function tc(t,e){const n=ec(t),r=Ja(e),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||C(),parentSpanId:i||C().substring(16),spanId:C().substring(16),sampled:o,dsc:r||{}}:{traceId:s||C(),spanId:C().substring(16)}}function wn(t=C(),e=C().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function ge(t,e=[]){return[t,e]}function nc(t,e){const[n,r]=t;return[n,[...r,e]]}function ur(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function un(t,e){return(e||new TextEncoder).encode(t)}function rc(t,e){const[n,r]=t;let s=JSON.stringify(n);function i(o){typeof s=="string"?s=typeof o=="string"?s+o:[un(s,e),o]:s.push(typeof o=="string"?un(o,e):o)}for(const o of r){const[a,c]=o;if(i(`
${JSON.stringify(a)}
`),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch(l){u=JSON.stringify(se(c))}i(u)}}return typeof s=="string"?s:sc(s)}function sc(t){const e=t.reduce((s,i)=>s+i.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function ic(t,e){const n=typeof t.data=="string"?un(t.data,e):t.data;return[B({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const oc={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function lr(t){return oc[t]}function Ts(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function ac(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return d(d(d({event_id:t.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:$e(r)}),s&&{trace:B(d({},s))})}function cc(t,e,n){const r=[{type:"client_report"},{timestamp:Ze(),discarded_events:t}];return ge(e?{dsn:e}:{},[r])}const uc=60*1e3;function lc(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?uc:r-e}function dc(t,e){return t[e]||t.all||0}function fc(t,e,n=Date.now()){return dc(t,e)>n}function pc(t,{statusCode:e,headers:n},r=Date.now()){const s=d({},t),i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,u,,,l]=a.split(":",5),p=parseInt(c,10),h=(isNaN(p)?60:p)*1e3;if(!u)s.all=r+h;else for(const f of u.split(";"))f==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(s[f]=r+h):s[f]=r+h}else o?s.all=r+lc(o,r):e===429&&(s.all=r+60*1e3);return s}const S=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,Ct="production";function An(){return ss("globalEventProcessors",()=>[])}function mc(t){An().push(t)}function vt(t,e,n,r=0){return new F((s,i)=>{const o=t[r];if(e===null||typeof o!="function")s(e);else{const a=o(d({},e),n);S&&o.id&&a===null&&m.log(`Event processor "${o.id}" dropped event`),Ot(a)?a.then(c=>vt(t,c,n,r+1).then(s)).then(null,i):vt(t,a,n,r+1).then(s).then(null,i)}})}function Es(t){const e=Le(),n={sid:C(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>hc(n)};return t&&de(n,t),n}function de(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Le(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:C()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function vs(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),de(t,n)}function hc(t){return B({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const gc=0,Is=1;function Rn(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=x(t);return B({data:r,op:s,parent_span_id:i,span_id:e,status:o,tags:a,trace_id:n,origin:c})}function Nt(t){const{traceId:e,spanId:n}=t.spanContext(),r=On(t);return wn(e,n,r)}function xt(t){return typeof t=="number"?dr(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?dr(t.getTime()):Le()}function dr(t){return t>9999999999?t/1e3:t}function x(t){return _c(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function _c(t){return typeof t.getSpanJSON=="function"}function On(t){const{traceFlags:e}=t.spanContext();return!!(e&Is)}function yc(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,c=E(d({},e),{event_id:e.event_id||n.event_id||C(),timestamp:e.timestamp||Ze()}),u=n.integrations||t.integrations.map(b=>b.name);Sc(c,t),Ec(c,u),e.type===void 0&&bc(c,t.stackParser);const l=Ic(r,n.captureContext);n.mechanism&&Ve(c,n.mechanism);const p=s&&s.getEventProcessors?s.getEventProcessors():[],h=Lc().getScopeData();if(i){const b=i.getScopeData();gr(h,b)}if(l){const b=l.getScopeData();gr(h,b)}const f=[...n.attachments||[],...h.attachments];f.length&&(n.attachments=f),As(c,h);const g=[...p,...An(),...h.eventProcessors];return vt(g,c,n).then(b=>(b&&Tc(b),typeof o=="number"&&o>0?vc(b,o,a):b))}function Sc(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:Ct),t.release===void 0&&r!==void 0&&(t.release=r),t.dist===void 0&&s!==void 0&&(t.dist=s),t.message&&(t.message=Pe(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=Pe(o.value,i));const a=t.request;a&&a.url&&(a.url=Pe(a.url,i))}const fr=new WeakMap;function bc(t,e){const n=P._sentryDebugIds;if(!n)return;let r;const s=fr.get(e);s?r=s:(r=new Map,fr.set(e,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=e(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){const p=c[l];if(p.filename){o[p.filename]=n[a];break}}return o},{});try{t.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch(o){}}function Tc(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})})}catch(r){}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:e[r]})})}function Ec(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function vc(t,e,n){if(!t)return null;const r=d(d(d(d(d({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>d(d({},s),s.data&&{data:se(s.data,e,n)}))}),t.user&&{user:se(t.user,e,n)}),t.contexts&&{contexts:se(t.contexts,e,n)}),t.extra&&{extra:se(t.extra,e,n)});return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=se(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(s=>{const i=x(s).data;return i&&(s.data=se(i,e,n)),s})),r}function Ic(t,e){if(!e)return t;const n=t?t.clone():new ee;return n.update(e),n}function Pc(t){if(t)return kc(t)?{captureContext:t}:Ac(t)?{captureContext:t}:t}function kc(t){return t instanceof ee||typeof t=="function"}const wc=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ac(t){return Object.keys(t).some(e=>wc.includes(e))}function Cn(t,e){return M().captureException(t,Pc(e))}function Ps(t,e){return M().captureEvent(t,e)}function fe(t,e){M().addBreadcrumb(t,e)}function pr(t,e){M().setTag(t,e)}function Rc(...t){const e=M();if(t.length===2){const[n,r]=t;return n?e.withScope(()=>(e.getStackTop().scope=n,r(n))):e.withScope(r)}return e.withScope(t[0])}function $(){return M().getClient()}function z(){return M().getScope()}function mr(t){const e=$(),n=_e(),r=z(),{release:s,environment:i=Ct}=e&&e.getOptions()||{},{userAgent:o}=P.navigator||{},a=Es(d(d({release:s,environment:i,user:r.getUser()||n.getUser()},o&&{userAgent:o}),t)),c=n.getSession();return c&&c.status==="ok"&&de(c,{status:"exited"}),ks(),n.setSession(a),r.setSession(a),a}function ks(){const t=_e(),e=z(),n=e.getSession()||t.getSession();n&&vs(n),ws(),t.setSession(),e.setSession()}function ws(){const t=_e(),e=z(),n=$(),r=e.getSession()||t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function hr(t=!1){if(t){ks();return}ws()}function It(t){return t.transaction}function Dt(t,e,n){const r=e.getOptions(),{publicKey:s}=e.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=B({environment:r.environment||Ct,release:r.release,user_segment:i,public_key:s,trace_id:t});return e.emit&&e.emit("createDsc",o),o}function Oe(t){const e=$();if(!e)return{};const n=Dt(x(t).trace_id||"",e,z()),r=It(t);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=x(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(On(r)),e.emit&&e.emit("createDsc",n),n}function As(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;Oc(t,e),r&&xc(t,r),Dc(t,n),Cc(t,s),Nc(t,i)}function gr(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:p,propagationContext:h,transactionName:f,span:g}=e;Ue(t,"extra",n),Ue(t,"tags",r),Ue(t,"user",s),Ue(t,"contexts",i),Ue(t,"sdkProcessingMetadata",a),o&&(t.level=o),f&&(t.transactionName=f),g&&(t.span=g),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),p.length&&(t.attachments=[...t.attachments,...p]),t.propagationContext=d(d({},t.propagationContext),h)}function Ue(t,e,n){if(n&&Object.keys(n).length){t[e]=d({},t[e]);for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function Oc(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e,c=B(n);c&&Object.keys(c).length&&(t.extra=d(d({},c),t.extra));const u=B(r);u&&Object.keys(u).length&&(t.tags=d(d({},u),t.tags));const l=B(s);l&&Object.keys(l).length&&(t.user=d(d({},l),t.user));const p=B(i);p&&Object.keys(p).length&&(t.contexts=d(d({},p),t.contexts)),o&&(t.level=o),a&&(t.transaction=a)}function Cc(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Nc(t,e){t.sdkProcessingMetadata=d(d({},t.sdkProcessingMetadata),e)}function xc(t,e){t.contexts=d({trace:Rn(e)},t.contexts);const n=It(e);if(n){t.sdkProcessingMetadata=d({dynamicSamplingContext:Oe(e)},t.sdkProcessingMetadata);const r=x(n).description;r&&(t.tags=d({transaction:r},t.tags))}}function Dc(t,e){t.fingerprint=t.fingerprint?In(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}const $c=100;let Ht;class ee{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=_r()}static clone(e){return e?e.clone():new ee}clone(){const e=new ee;return e._breadcrumbs=[...this._breadcrumbs],e._tags=d({},this._tags),e._extra=d({},this._extra),e._contexts=d({},this._contexts),e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata=d({},this._sdkProcessingMetadata),e._propagationContext=d({},this._propagationContext),e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&de(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=d(d({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,n){return this._tags=E(d({},this._tags),{[e]:n}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=d(d({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,n){return this._extra=E(d({},this._extra),{[e]:n}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e;if(n instanceof ee){const r=n.getScopeData();this._tags=d(d({},this._tags),r.tags),this._extra=d(d({},this._extra),r.extra),this._contexts=d(d({},this._contexts),r.contexts),r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(we(n)){const r=e;this._tags=d(d({},this._tags),r.tags),this._extra=d(d({},this._extra),r.extra),this._contexts=d(d({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=_r(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:$c;if(r<=0)return this;const s=d({timestamp:Ze()},e),i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:p,_transactionName:h,_span:f}=this;return{breadcrumbs:e,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:p,transactionName:h,span:f}}applyToEvent(e,n={},r=[]){As(e,this.getScopeData());const s=[...r,...An(),...this._eventProcessors];return vt(s,e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=d(d({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:C();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,E(d({originalException:e,syntheticException:s},n),{event_id:r}),this),r}captureMessage(e,n,r){const s=r&&r.event_id?r.event_id:C();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),s;const i=new Error(e);return this._client.captureMessage(e,n,E(d({originalException:e,syntheticException:i},r),{event_id:s}),this),s}captureEvent(e,n){const r=n&&n.event_id?n.event_id:C();return this._client?(this._client.captureEvent(e,E(d({},n),{event_id:r}),this),r):(m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function Lc(){return Ht||(Ht=new ee),Ht}function _r(){return{traceId:C(),spanId:C().substring(16)}}const Ye="7.119.2",Rs=parseFloat(Ye),Mc=100;class Os{constructor(e,n,r,s=Rs){this._version=s;let i;n?i=n:(i=new ee,i.setClient(e));let o;r?o=r:(o=new ee,o.setClient(e)),this._stack=[{scope:i}],e&&this.bindClient(e),this._isolationScope=o}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,n.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();let r;try{r=e(n)}catch(s){throw this.popScope(),s}return Ot(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:C(),s=new Error("Sentry syntheticException");return this.getScope().captureException(e,E(d({originalException:e,syntheticException:s},n),{event_id:r})),r}captureMessage(e,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:C(),i=new Error(e);return this.getScope().captureMessage(e,n,E(d({originalException:e,syntheticException:i},r),{event_id:s})),s}captureEvent(e,n){const r=n&&n.event_id?n.event_id:C();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,E(d({},n),{event_id:r})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=Mc}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const a=Ze(),c=d({timestamp:a},e),u=i?pe(()=>i(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n),this.getIsolationScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n),this.getIsolationScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n),this.getIsolationScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=yr(this);try{e(this)}finally{yr(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch(r){return S&&m.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);return S&&!r&&(this.getClient()?m.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):m.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&vs(r),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=Ct}=r&&r.getOptions()||{},{userAgent:o}=P.navigator||{},a=Es(d(d({release:s,environment:i,user:n.getUser()},o&&{userAgent:o}),e)),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&de(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(e,...n){const s=Qe().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[e]=="function")return s.extensions[e].apply(this,n);S&&m.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Qe(){return P.__SENTRY__=P.__SENTRY__||{extensions:{},hub:void 0},P}function yr(t){const e=Qe(),n=ln(e);return Cs(e,t),n}function M(){const t=Qe();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Fc(t)}function _e(){return M().getIsolationScope()}function Fc(t=Qe()){return(!Bc(t)||ln(t).isOlderThan(Rs))&&Cs(t,new Os),ln(t)}function Bc(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function ln(t){return ss("hub",()=>new Os,t)}function Cs(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}function ye(t){return M().getScope().getTransaction()}let Sr=!1;function Hc(){Sr||(Sr=!0,ms(dn),hs(dn))}function dn(){const t=ye();if(t){const e="internal_error";S&&m.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}dn.tag="sentry_tracingErrorCallback";var br;(function(t){const e="ok";t.Ok=e;const n="deadline_exceeded";t.DeadlineExceeded=n;const r="unauthenticated";t.Unauthenticated=r;const s="permission_denied";t.PermissionDenied=s;const i="not_found";t.NotFound=i;const o="resource_exhausted";t.ResourceExhausted=o;const a="invalid_argument";t.InvalidArgument=a;const c="unimplemented";t.Unimplemented=c;const u="unavailable";t.Unavailable=u;const l="internal_error";t.InternalError=l;const p="unknown_error";t.UnknownError=p;const h="cancelled";t.Cancelled=h;const f="already_exists";t.AlreadyExists=f;const g="failed_precondition";t.FailedPrecondition=g;const y="aborted";t.Aborted=y;const b="out_of_range";t.OutOfRange=b;const v="data_loss";t.DataLoss=v})(br||(br={}));function Uc(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Nn(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const n=Uc(e);n!=="unknown_error"&&t.setStatus(n)}function Se(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=$(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Pt(t){if(!Se())return;const e=qc(t),n=M(),r=t.scope?t.scope.getSpan():Xe();if(t.onlyIfParent&&!r)return;const o=(t.scope||z()).clone();return jc(n,{parentSpan:r,spanContext:e,forceTransaction:t.forceTransaction,scope:o})}function Xe(){return z().getSpan()}function jc(t,{parentSpan:e,spanContext:n,forceTransaction:r,scope:s}){if(!Se())return;const i=_e();let o;if(e&&!r)o=e.startChild(n);else if(e){const a=Oe(e),{traceId:c,spanId:u}=e.spanContext(),l=On(e);o=t.startTransaction(E(d({traceId:c,parentSpanId:u,parentSampled:l},n),{metadata:d({dynamicSamplingContext:a},n.metadata)}))}else{const{traceId:a,dsc:c,parentSpanId:u,sampled:l}=d(d({},i.getPropagationContext()),s.getPropagationContext());o=t.startTransaction(E(d({traceId:a,parentSpanId:u,parentSampled:l},n),{metadata:d({dynamicSamplingContext:c},n.metadata)}))}return s.setSpan(o),Gc(o,s,i),o}function qc(t){if(t.startTime){const e=d({},t);return e.startTimestamp=xt(t.startTime),delete e.startTime,e}return t}const Ns="_sentryScope",xs="_sentryIsolationScope";function Gc(t,e,n){t&&(le(t,xs,n),le(t,Ns,e))}function zc(t){return{scope:t[Ns],isolationScope:t[xs]}}const G="sentry.source",Ie="sentry.sample_rate",pt="sentry.op",oe="sentry.origin",Wc="profile_id";class Ds{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class $t{constructor(e={}){this._traceId=e.traceId||C(),this._spanId=e.spanId||C().substring(16),this._startTime=e.startTimestamp||Le(),this.tags=e.tags?d({},e.tags):{},this.data=e.data?d({},e.data):{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes(d({[oe]:e.origin||"manual",[pt]:e.op},e.attributes)),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime!==void 0&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?d({},e.measurements):{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[pt]}set op(e){this.setAttribute(pt,e)}get origin(){return this._attributes[oe]}set origin(e){this.setAttribute(oe,e)}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?Is:gc}}startChild(e){const n=new $t(E(d({},e),{parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId}));n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=It(this);if(n.transaction=r,S&&r){const s=e&&e.op||"< unknown op >",i=x(n).description||"< unknown name >",o=r.spanContext().spanId,a=`[Tracing] Starting '${s}' span on transaction '${i}' (${o}).`;m.log(a),this._logMessage=a}return n}setTag(e,n){return this.tags=E(d({},this.tags),{[e]:n}),this}setData(e,n){return this.data=E(d({},this.data),{[e]:n}),this}setAttribute(e,n){n===void 0?delete this._attributes[e]:this._attributes[e]=n}setAttributes(e){Object.keys(e).forEach(n=>this.setAttribute(n,e[n]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Nn(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;const n=It(this);if(S&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&m.log(r.replace("Starting","Finishing"))}this._endTime=xt(e)}toTraceparent(){return Nt(this)}toContext(){return B({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return Rn(this)}getSpanJSON(){return B({data:this._getData(),description:this._name,op:this._attributes[pt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[oe],_metrics_summary:void 0,profile_id:this._attributes[Wc],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:n}=this,r=Object.keys(e).length>0,s=Object.keys(n).length>0;if(!(!r&&!s))return r&&s?d(d({},e),n):r?e:n}}class $s extends $t{constructor(e,n){super(e),this._contexts={},this._hub=n||M(),this._name=e.name||"",this._metadata=d({},e.metadata),this._trimEnd=e.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext=d({},r))}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return d(d(d({source:"custom",spanMetadata:{}},this._metadata),this._attributes[G]&&{source:this._attributes[G]}),this._attributes[Ie]&&{sampleRate:this._attributes[Ie]})}set metadata(e){this._metadata=e}setName(e,n="custom"){this._name=e,this.setAttribute(G,n)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Ds(e)),this.spanRecorder.add(this)}setContext(e,n){n===null?delete this._contexts[e]:this._contexts[e]=n}setMeasurement(e,n,r=""){this._measurements[e]={value:n,unit:r}}setMetadata(e){this._metadata=d(d({},this._metadata),e)}end(e){const n=xt(e),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const e=super.toContext();return B(E(d({},e),{name:this._name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Oe(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||(S&&m.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){S&&m.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&x(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(p=>x(p).timestamp).filter(Boolean);this._endTime=l.reduce((p,h)=>p>h?p:h)}const{scope:s,isolationScope:i}=zc(this),{metadata:o}=this,{source:a}=o,c=d({contexts:E(d({},this._contexts),{trace:Rn(this)}),spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:d(E(d({},o),{capturedSpanScope:s,capturedSpanIsolationScope:i}),B({dynamicSamplingContext:Oe(this)})),_metrics_summary:void 0},a&&{transaction_info:{source:a}});return Object.keys(this._measurements).length>0&&(S&&m.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),S&&m.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Tt={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Vc="finishReason",Te=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Yc extends Ds{constructor(e,n,r,s){super(s),this._pushActivity=e,this._popActivity=n,this.transactionSpanId=r}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const n=e.end;e.end=(...r)=>(this._popActivity(e.spanContext().spanId),n.apply(e,r)),x(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Xc extends $s{constructor(e,n,r=Tt.idleTimeout,s=Tt.finalTimeout,i=Tt.heartbeatInterval,o=!1,a=!1){super(e,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=s,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Te[4],this._autoFinishAllowed=!a,o&&(S&&m.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Te[3],this.end())},this._finalTimeout)}end(e){const n=xt(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Vc,this._finishReason),this.spanRecorder){S&&m.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;x(r).timestamp||(r.setStatus("cancelled"),r.end(n),S&&m.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:s,timestamp:i}=x(r),o=s&&s<n,a=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&s&&i-s<a;if(S){const u=JSON.stringify(r,void 0,2);o?c||m.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):m.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return o&&c}),S&&m.log("[Tracing] flushing IdleTransaction")}else S&&m.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const n=s=>{this._finished||this._pushActivity(s)},r=s=>{this._finished||this._popActivity(s)};this.spanRecorder=new Yc(n,r,this.spanContext().spanId,e),S&&m.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Te[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(S&&m.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Te[1],this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),S&&m.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,S&&m.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(S&&m.log(`[Tracing] popActivity ${e}`),delete this.activities[e],S&&m.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Le();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Te[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(S&&m.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Te[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){S&&m.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Ls(t,e,n){if(!Se(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(Ie,Number(t.sampled)),t;let r;return typeof e.tracesSampler=="function"?(r=e.tracesSampler(n),t.setAttribute(Ie,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof e.tracesSampleRate!="undefined"?(r=e.tracesSampleRate,t.setAttribute(Ie,Number(r))):(r=1,t.setAttribute(Ie,r)),Ms(r)?r?(t.sampled=Math.random()<r,t.sampled?(S&&m.log(`[Tracing] starting ${t.op} transaction - ${x(t).description}`),t):(S&&m.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(S&&m.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),t.sampled=!1,t):(S&&m.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function Ms(t){return ns(t)||!(typeof t=="number"||typeof t=="boolean")?(S&&m.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t<0||t>1?(S&&m.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function Kc(){const e=this.getScope().getSpan();return e?{"sentry-trace":Nt(e)}:{}}function Jc(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},s=r.instrumenter||"sentry",i=t.instrumenter||"sentry";s!==i&&(S&&m.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${s}\` instrumenter.
The transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),t.sampled=!1);let o=new $s(t,this);return o=Ls(o,r,d({name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:d(d({},t.data),t.attributes)},e)),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function Fs(t,e,n,r,s,i,o,a=!1){const c=t.getClient(),u=c&&c.getOptions()||{};let l=new Xc(e,t,n,r,o,s,a);return l=Ls(l,u,d({name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:d(d({},e.data),e.attributes)},i)),l.isRecording()&&l.initSpanRecorder(u._experiments&&u._experiments.maxSpans),c&&c.emit&&c.emit("startTransaction",l),l}function Zc(){const t=Qe();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Jc),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Kc),Hc())}function Qc(t,e,n){const r=ye();r&&r.setMeasurement(t,e,n)}function eu(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function tu(t,e,n,r){const s=Ts(n),i=d(d({sent_at:new Date().toISOString()},s&&{sdk:s}),!!r&&e&&{dsn:$e(e)}),o="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ge(i,[o])}function nu(t,e,n,r){const s=Ts(n),i=t.type&&t.type!=="replay_event"?t.type:"event";eu(t,n&&n.sdk);const o=ac(t,s,r,e);return delete t.sdkProcessingMetadata,ge(o,[[{type:i},t]])}const ru="7";function su(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function iu(t){return`${su(t)}${t.projectId}/envelope/`}function ou(t,e){return ga(d({sentry_key:t.publicKey,sentry_version:ru},e&&{sentry_client:`${e.name}/${e.version}`}))}function au(t,e={}){const n=typeof e=="string"?e:e.tunnel,r=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return n||`${iu(t)}?${ou(t,r)}`}const Tr=[];function cu(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.keys(e).map(n=>e[n])}function uu(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...e,...n]:typeof n=="function"?r=In(n(e)):r=e;const s=cu(r),i=du(s,o=>o.name==="Debug");if(i!==-1){const[o]=s.splice(i,1);s.push(o)}return s}function lu(t,e){const n={};return e.forEach(r=>{r&&Bs(t,r,n)}),n}function Er(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function Bs(t,e,n){if(n[e.name]){S&&m.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,Tr.indexOf(e.name)===-1&&(e.setupOnce(mc,M),Tr.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),t.on&&typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,i)=>r(s,i,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((i,o)=>r(i,o,t),{id:e.name});t.addEventProcessor(s)}S&&m.log(`Integration installed: ${e.name}`)}function du(t,e){for(let n=0;n<t.length;n++)if(e(t[n])===!0)return n;return-1}function re(t,e){return Object.assign(function(...r){return e(...r)},{id:t})}function fu(t){let e="";for(const n of t){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([i,o])=>`${i}:${o}`).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp}
`}return e}function pu(t,e,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(s.dsn=$e(e));const i=mu(t);return ge(s,[i])}function mu(t){const e=fu(t);return[{type:"statsd",length:e.length},e]}const vr="Not capturing exception because it's already been captured.";class hu{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=ha(e.dsn):S&&m.warn("No DSN provided, client will not send events."),this._dsn){const n=au(this._dsn,e);this._transport=e.transport(E(d({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:n}))}}captureException(e,n,r){if(sr(e)){S&&m.log(vr);return}let s=n&&n.event_id;return this._process(this.eventFromException(e,n).then(i=>this._captureEvent(i,n,r)).then(i=>{s=i})),s}captureMessage(e,n,r,s){let i=r&&r.event_id;const o=bn(e)?e:String(e),a=Tn(e)?this.eventFromMessage(o,n,r):this.eventFromException(e,r);return this._process(a.then(c=>this._captureEvent(c,r,s)).then(c=>{i=c})),i}captureEvent(e,n,r){if(n&&n.originalException&&sr(n.originalException)){S&&m.log(vr);return}let s=n&&n.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,n,o||r).then(a=>{s=a})),s}captureSession(e){typeof e.release!="string"?S&&m.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),de(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(s=>r&&s))):Re(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(n){return S&&m.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const n=this._integrations[e.name];Bs(this,e,this._integrations),n||Er(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=nu(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=nc(r,ic(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){const n=tu(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,i=`${e}:${n}`;S&&m.log(`Recording outcome: "${i}"${s>1?` (${s} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+s}}captureAggregateMetrics(e){S&&m.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const n=pu(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(e,n){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(n)}emit(e,...n){this._hooks[e]&&this._hooks[e].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=lu(this,e),Er(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,n){let r=!1,s=!1;const i=n.exception&&n.exception.values;if(i){s=!0;for(const c of i){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const o=e.status==="ok";(o&&e.errors===0||o&&r)&&(de(e,E(d({},r&&{status:"crashed"}),{errors:e.errors||Number(s||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new F(n=>{let r=0;const s=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=s,e&&r>=e&&(clearInterval(i),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,s=_e()){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",e,n),yc(i,e,n,r,this,s).then(a=>{if(a===null)return a;const c=d(d({},s.getPropagationContext()),r?r.getPropagationContext():void 0);if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:l,spanId:p,parentSpanId:h,dsc:f}=c;a.contexts=d({trace:{trace_id:l,span_id:p,parent_span_id:h}},a.contexts);const g=f||Dt(l,this,r);a.sdkProcessingMetadata=d({dynamicSamplingContext:g},a.sdkProcessingMetadata)}return a})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(s=>s.event_id,s=>{if(S){const i=s;i.logLevel==="log"?m.log(i.message):m.warn(i)}})}_processEvent(e,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=Us(e),a=Hs(e),c=e.type||"error",u=`before send for type \`${c}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),kn(new X(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const l=c==="replay_event"?"replay":c,h=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,h).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",l,e),new X("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;const y=_u(s,f,n);return gu(y,u)}).then(f=>{if(f===null){if(this.recordDroppedEvent("before_send",l,e),o){const v=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",v)}throw new X(`${u} returned \`null\`, will not send event.`,"log")}const g=r&&r.getSession();if(!o&&g&&this._updateSessionFromEvent(g,f),o){const b=f.sdkProcessingMetadata&&f.sdkProcessingMetadata.spanCountBeforeProcessing||0,v=f.spans?f.spans.length:0,I=b-v;I>0&&this.recordDroppedEvent("before_send","span",I)}const y=f.transaction_info;if(o&&y&&f.transaction!==e.transaction){const b="custom";f.transaction_info=E(d({},y),{source:b})}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof X?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new X(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${f}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,n=>{S&&m.error("Error while sending event:",n)});S&&m.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(n=>{const[r,s]=n.split(":");return{reason:r,category:s,quantity:e[n]}})}}function gu(t,e){const n=`${e} must return \`null\` or a valid event.`;if(Ot(t))return t.then(r=>{if(!we(r)&&r!==null)throw new X(n);return r},r=>{throw new X(`${e} rejected with ${r}`)});if(!we(t)&&t!==null)throw new X(n);return t}function _u(t,e,n){const{beforeSend:r,beforeSendTransaction:s}=t;if(Hs(e)&&r)return r(e,n);if(Us(e)&&s){if(e.spans){const i=e.spans.length;e.sdkProcessingMetadata=E(d({},e.sdkProcessingMetadata),{spanCountBeforeProcessing:i})}return s(e,n)}return e}function Hs(t){return t.type===void 0}function Us(t){return t.type==="transaction"}function yu(t,e){e.debug===!0&&(S?m.enable():pe(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),z().update(e.initialScope);const r=new t(e);Su(r),bu(r)}function Su(t){const n=M().getStackTop();n.client=t,n.scope.setClient(t)}function bu(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}const Tu=30;function js(t,e,n=za(t.bufferSize||Tu)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(ur(o,(p,h)=>{const f=lr(h);if(fc(r,f)){const g=Ir(p,h);t.recordDroppedEvent("ratelimit_backoff",f,g)}else a.push(p)}),a.length===0)return Re();const c=ge(o[0],a),u=p=>{ur(c,(h,f)=>{const g=Ir(h,f);t.recordDroppedEvent(p,lr(f),g)})},l=()=>e({body:rc(c,t.textEncoder)}).then(p=>(p.statusCode!==void 0&&(p.statusCode<200||p.statusCode>=300)&&S&&m.warn(`Sentry responded with status code ${p.statusCode} to sent event.`),r=pc(r,p),p),p=>{throw u("network_error"),p});return n.add(l).then(p=>p,p=>{if(p instanceof X)return S&&m.error("Skipped sending event because buffer is full."),u("queue_overflow"),Re();throw p})}return i.__sentry__baseTransport__=!0,{send:i,flush:s}}function Ir(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function Eu(t,e){const n={sent_at:new Date().toISOString()};e&&(n.dsn=$e(e));const r=t.map(vu);return ge(n,r)}function vu(t){return[{type:"span"},t]}function Iu(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Ye})),version:Ye}),t._metadata=s}const Pu=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],ku=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],qs="InboundFilters",wu=(t={})=>({name:qs,setupOnce(){},processEvent(e,n,r){const s=r.getOptions(),i=Au(t,s);return Ru(e,i)?null:e}}),Gs=wu;re(qs,Gs);function Au(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Pu],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:ku],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function Ru(t,e){return e.ignoreInternal&&$u(t)?(S&&m.warn(`Event dropped due to being internal Sentry Error.
Event: ${ie(t)}`),!0):Ou(t,e.ignoreErrors)?(S&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${ie(t)}`),!0):Cu(t,e.ignoreTransactions)?(S&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${ie(t)}`),!0):Nu(t,e.denyUrls)?(S&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${ie(t)}.
Url: ${kt(t)}`),!0):xu(t,e.allowUrls)?!1:(S&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${ie(t)}.
Url: ${kt(t)}`),!0)}function Ou(t,e){return t.type||!e||!e.length?!1:Du(t).some(n=>Je(n,e))}function Cu(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?Je(n,e):!1}function Nu(t,e){if(!e||!e.length)return!1;const n=kt(t);return n?Je(n,e):!1}function xu(t,e){if(!e||!e.length)return!0;const n=kt(t);return n?Je(n,e):!0}function Du(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch(r){}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),S&&e.length===0&&m.error(`Could not extract message for event ${ie(t)}`),e}function $u(t){try{return t.exception.values[0].type==="SentryError"}catch(e){}return!1}function Lu(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function kt(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?Lu(e):null}catch(e){return S&&m.error(`Cannot extract url for event ${ie(t)}`),null}}let Pr;const zs="FunctionToString",kr=new WeakMap,Mu=()=>({name:zs,setupOnce(){Pr=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=vn(this),n=kr.has($())&&e!==void 0?e:this;return Pr.apply(n,t)}}catch(t){}},setup(t){kr.set(t,!0)}}),Ws=Mu;re(zs,Ws);const R=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,T=P;function Fu(){T.document?T.document.addEventListener("visibilitychange",()=>{const t=ye();if(T.document.hidden&&t){const e="cancelled",{op:n,status:r}=x(t);R&&m.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):R&&m.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const et=(t,e,n)=>{let r,s;return i=>{e.value>=0&&(i||n)&&(s=e.value-(r||0),(s||r===void 0)&&(r=e.value,e.delta=s,t(e)))}},Bu=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Hu=()=>{const t=T.performance.timing,e=T.performance.navigation.type,n={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const r in t)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(t[r]-t.navigationStart,0));return n},Lt=()=>T.__WEB_VITALS_POLYFILL__?T.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||Hu()):T.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],xn=()=>{const t=Lt();return t&&t.activationStart||0},tt=(t,e)=>{const n=Lt();let r="navigate";return n&&(T.document&&T.document.prerendering||xn()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:t,value:typeof e=="undefined"?-1:e,rating:"good",delta:0,entries:[],id:Bu(),navigationType:r}},Me=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(s=>{e(s.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(r){}},nt=(t,e)=>{const n=r=>{(r.type==="pagehide"||T.document.visibilityState==="hidden")&&(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};T.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},Uu=(t,e={})=>{const n=tt("CLS",0);let r,s=0,i=[];const o=c=>{c.forEach(u=>{if(!u.hadRecentInput){const l=i[0],p=i[i.length-1];s&&i.length!==0&&u.startTime-p.startTime<1e3&&u.startTime-l.startTime<5e3?(s+=u.value,i.push(u)):(s=u.value,i=[u]),s>n.value&&(n.value=s,n.entries=i,r&&r())}})},a=Me("layout-shift",o);if(a){r=et(t,n,e.reportAllChanges);const c=()=>{o(a.takeRecords()),r(!0)};return nt(c),c}};let wt=-1;const ju=()=>{T.document&&T.document.visibilityState&&(wt=T.document.visibilityState==="hidden"&&!T.document.prerendering?0:1/0)},qu=()=>{nt(({timeStamp:t})=>{wt=t},!0)},Dn=()=>(wt<0&&(ju(),qu()),{get firstHiddenTime(){return wt}}),Gu=t=>{const e=Dn(),n=tt("FID");let r;const s=a=>{a.startTime<e.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},i=a=>{a.forEach(s)},o=Me("first-input",i);r=et(t,n),o&&nt(()=>{i(o.takeRecords()),o.disconnect()},!0)};let Vs=0,Ut=1/0,mt=0;const zu=t=>{t.forEach(e=>{e.interactionId&&(Ut=Math.min(Ut,e.interactionId),mt=Math.max(mt,e.interactionId),Vs=mt?(mt-Ut)/7+1:0)})};let fn;const Wu=()=>fn?Vs:performance.interactionCount||0,Vu=()=>{"interactionCount"in performance||fn||(fn=Me("event",zu,{type:"event",buffered:!0,durationThreshold:0}))},Ys=()=>Wu(),wr=10,Z=[],jt={},Ar=t=>{const e=Z[Z.length-1],n=jt[t.interactionId];if(n||Z.length<wr||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const r={id:t.interactionId,latency:t.duration,entries:[t]};jt[r.id]=r,Z.push(r)}Z.sort((r,s)=>s.latency-r.latency),Z.splice(wr).forEach(r=>{delete jt[r.id]})}},Yu=()=>{const t=Math.min(Z.length-1,Math.floor(Ys()/50));return Z[t]},Xu=(t,e)=>{e=e||{},Vu();const n=tt("INP");let r;const s=o=>{o.forEach(c=>{c.interactionId&&Ar(c),c.entryType==="first-input"&&!Z.some(l=>l.entries.some(p=>c.duration===p.duration&&c.startTime===p.startTime))&&Ar(c)});const a=Yu();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},i=Me("event",s,{durationThreshold:e.durationThreshold||40});r=et(t,n,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),nt(()=>{s(i.takeRecords()),n.value<0&&Ys()>0&&(n.value=0,n.entries=[]),r(!0)}))},Rr={},Ku=t=>{const e=Dn(),n=tt("LCP");let r;const s=o=>{const a=o[o.length-1];if(a){const c=Math.max(a.startTime-xn(),0);c<e.firstHiddenTime&&(n.value=c,n.entries=[a],r())}},i=Me("largest-contentful-paint",s);if(i){r=et(t,n);const o=()=>{Rr[n.id]||(s(i.takeRecords()),i.disconnect(),Rr[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{T.document&&addEventListener(a,o,{once:!0,capture:!0})}),nt(o,!0),o}},pn=t=>{T.document&&(T.document.prerendering?addEventListener("prerenderingchange",()=>pn(t),!0):T.document.readyState!=="complete"?addEventListener("load",()=>pn(t),!0):setTimeout(t,0))},Ju=(t,e)=>{e=e||{};const n=tt("TTFB"),r=et(t,n,e.reportAllChanges);pn(()=>{const s=Lt();if(s){if(n.value=Math.max(s.responseStart-xn(),0),n.value<0||n.value>performance.now())return;n.entries=[s],r(!0)}})},qe={},At={};let Xs,Ks,Js,Zs,Qs;function Zu(t,e=!1){return rt("cls",t,rl,Xs,e)}function Qu(t,e=!1){return rt("lcp",t,il,Js,e)}function el(t){return rt("ttfb",t,ol,Zs)}function tl(t){return rt("fid",t,sl,Ks)}function nl(t){return rt("inp",t,al,Qs)}function Ke(t,e){return ei(t,e),At[t]||(cl(t),At[t]=!0),ti(t,e)}function Fe(t,e){const n=qe[t];if(!(!n||!n.length))for(const r of n)try{r(e)}catch(s){R&&m.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${ne(r)}
Error:`,s)}}function rl(){return Uu(t=>{Fe("cls",{metric:t}),Xs=t},{reportAllChanges:!0})}function sl(){return Gu(t=>{Fe("fid",{metric:t}),Ks=t})}function il(){return Ku(t=>{Fe("lcp",{metric:t}),Js=t})}function ol(){return Ju(t=>{Fe("ttfb",{metric:t}),Zs=t})}function al(){return Xu(t=>{Fe("inp",{metric:t}),Qs=t})}function rt(t,e,n,r,s=!1){ei(t,e);let i;return At[t]||(i=n(),At[t]=!0),r&&e({metric:r}),ti(t,e,s?i:void 0)}function cl(t){const e={};t==="event"&&(e.durationThreshold=0),Me(t,n=>{Fe(t,{entries:n})},e)}function ei(t,e){qe[t]=qe[t]||[],qe[t].push(e)}function ti(t,e,n){return()=>{n&&n();const r=qe[t];if(!r)return;const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}function qt(t){return typeof t=="number"&&isFinite(t)}function Ce(t,r){var s=r,{startTimestamp:e}=s,n=qn(s,["startTimestamp"]);return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild(d({startTimestamp:e},n))}const ul=2147483647;function D(t){return t/1e3}function $n(){return T&&T.addEventListener&&T.performance}let Or=0,O={},Y,Ge;function ll(){const t=$n();if(t&&U){t.mark&&T.performance.mark("sentry-tracing-init");const e=gl(),n=ml(),r=hl(),s=_l();return()=>{e(),n(),r(),s()}}return()=>{}}function dl(){Ke("longtask",({entries:t})=>{for(const e of t){const n=ye();if(!n)return;const r=D(U+e.startTime),s=D(e.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s})}})}function fl(){Ke("event",({entries:t})=>{for(const e of t){const n=ye();if(!n)return;if(e.name==="click"){const r=D(U+e.startTime),s=D(e.duration),i={description:Ae(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s},o=is(e.target);o&&(i.attributes={"ui.component_name":o}),n.startChild(i)}}})}function pl(t,e){if($n()&&U){const r=yl(t,e);return()=>{r()}}return()=>{}}function ml(){return Zu(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(R&&m.log("[Measurements] Adding CLS"),O.cls={value:t.value,unit:""},Ge=e)},!0)}function hl(){return Qu(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(R&&m.log("[Measurements] Adding LCP"),O.lcp={value:t.value,unit:"millisecond"},Y=e)},!0)}function gl(){return tl(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=D(U),r=D(e.startTime);R&&m.log("[Measurements] Adding FID"),O.fid={value:t.value,unit:"millisecond"},O["mark.fid"]={value:n+r,unit:"second"}})}function _l(){return el(({metric:t})=>{t.entries[t.entries.length-1]&&(R&&m.log("[Measurements] Adding TTFB"),O.ttfb={value:t.value,unit:"millisecond"})})}const Cr={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function yl(t,e){return nl(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(A=>A.duration===n.value&&Cr[A.name]!==void 0),s=$();if(!r||!s)return;const i=Cr[r.name],o=s.getOptions(),a=D(U+r.startTime),c=D(n.value),u=r.interactionId!==void 0?t[r.interactionId]:void 0;if(u===void 0)return;const{routeName:l,parentContext:p,activeTransaction:h,user:f,replayId:g}=u,y=f!==void 0?f.email||f.id||f.ip_address:void 0,b=h!==void 0?h.getProfileId():void 0,v=new $t({startTimestamp:a,endTimestamp:a+c,op:`ui.interaction.${i}`,name:Ae(r.target),attributes:d(d(d({release:o.release,environment:o.environment,transaction:l},y!==void 0&&y!==""?{user:y}:{}),b!==void 0?{profile_id:b}:{}),g!==void 0?{replay_id:g}:{}),exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),I=wl(p,o,e);if(I&&Math.random()<I){const A=v?Eu([v],s.getDsn()):void 0,_=s&&s.getTransport();_&&A&&_.send(A).then(null,k=>{R&&m.error("Error while sending interaction:",k)});return}})}function Sl(t){const e=$n();if(!e||!T.performance.getEntries||!U)return;R&&m.log("[Tracing] Adding & adjusting spans using Performance API");const n=D(U),r=e.getEntries(),{op:s,start_timestamp:i}=x(t);if(r.slice(Or).forEach(o=>{const a=D(o.startTime),c=D(o.duration);if(!(t.op==="navigation"&&i&&n+a<i))switch(o.entryType){case"navigation":{Tl(t,o,n);break}case"mark":case"paint":case"measure":{bl(t,o,a,c,n);const u=Dn(),l=o.startTime<u.firstHiddenTime;o.name==="first-paint"&&l&&(R&&m.log("[Measurements] Adding FP"),O.fp={value:o.startTime,unit:"millisecond"}),o.name==="first-contentful-paint"&&l&&(R&&m.log("[Measurements] Adding FCP"),O.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{vl(t,o,o.name,a,c,n);break}}}),Or=Math.max(r.length-1,0),Il(t),s==="pageload"){kl(O),["fcp","fp","lcp"].forEach(a=>{if(!O[a]||!i||n>=i)return;const c=O[a].value,u=n+D(c),l=Math.abs((u-i)*1e3),p=l-c;R&&m.log(`[Measurements] Normalized ${a} from ${c} to ${l} (${p})`),O[a].value=l});const o=O["mark.fid"];o&&O.fid&&(Ce(t,{description:"first input delay",endTimestamp:o.value+D(O.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:o.value}),delete O["mark.fid"]),"fcp"in O||delete O.cls,Object.keys(O).forEach(a=>{Qc(a,O[a].value,O[a].unit)}),Pl(t)}Y=void 0,Ge=void 0,O={}}function bl(t,e,n,r,s){const i=s+n,o=i+r;return Ce(t,{description:e.name,endTimestamp:o,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function Tl(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ht(t,e,r,n)}),ht(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),ht(t,e,"fetch",n,"cache","domainLookupStart"),ht(t,e,"domainLookup",n,"DNS"),El(t,e,n)}function ht(t,e,n,r,s,i){const o=i?e[i]:e[`${n}End`],a=e[`${n}Start`];!a||!o||Ce(t,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+D(a),endTimestamp:r+D(o)})}function El(t,e,n){e.responseEnd&&(Ce(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+D(e.requestStart),endTimestamp:n+D(e.responseEnd)}),Ce(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+D(e.responseStart),endTimestamp:n+D(e.responseEnd)}))}function vl(t,e,n,r,s,i){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const o=ue(n),a={};Gt(a,e,"transferSize","http.response_transfer_size"),Gt(a,e,"encodedBodySize","http.response_content_length"),Gt(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(T.location.origin);const c=i+r,u=c+s;Ce(t,{description:n.replace(T.location.origin,""),endTimestamp:u,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:c,data:a})}function Il(t){const e=T.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),qt(n.rtt)&&(O["connection.rtt"]={value:n.rtt,unit:"millisecond"})),qt(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),qt(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function Pl(t){Y&&(R&&m.log("[Measurements] Adding LCP Data"),Y.element&&t.setTag("lcp.element",Ae(Y.element)),Y.id&&t.setTag("lcp.id",Y.id),Y.url&&t.setTag("lcp.url",Y.url.trim().slice(0,200)),t.setTag("lcp.size",Y.size)),Ge&&Ge.sources&&(R&&m.log("[Measurements] Adding CLS Data"),Ge.sources.forEach((e,n)=>t.setTag(`cls.source.${n+1}`,Ae(e.node))))}function Gt(t,e,n,r){const s=e[n];s!=null&&s<ul&&(t[r]=s)}function kl(t){const e=Lt();if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(R&&m.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function wl(t,e,n){if(!Se(e))return!1;let r;return t!==void 0&&typeof e.tracesSampler=="function"?r=e.tracesSampler({transactionContext:t,name:t.name,parentSampled:t.parentSampled,attributes:d(d({},t.data),t.attributes),location:T.location}):t!==void 0&&t.sampled!==void 0?r=t.sampled:typeof e.tracesSampleRate!="undefined"?r=e.tracesSampleRate:r=1,Ms(r)?r===!0?n:r===!1?0:r*n:(R&&m.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function Al(t,e,n,r,s="auto.http.browser"){if(!Se()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const f=t.fetchData.__span;if(!f)return;const g=r[f];g&&(Cl(g,t),delete r[f]);return}const o=z(),a=$(),{method:c,url:u}=t.fetchData,l=Ol(u),p=l?ue(l).host:void 0,h=i?Pt({name:`${c} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":p,[oe]:s},op:"http.client"}):void 0;if(h&&(t.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h),n(t.fetchData.url)&&a){const f=t.args[0];t.args[1]=t.args[1]||{};const g=t.args[1];g.headers=Rl(f,a,o,g,h)}return h}function Rl(t,e,n,r,s){const i=s||n.getSpan(),o=_e(),{traceId:a,spanId:c,sampled:u,dsc:l}=d(d({},o.getPropagationContext()),n.getPropagationContext()),p=i?Nt(i):wn(a,c,u),h=bs(l||(i?Oe(i):Dt(a,e,n))),f=r.headers||(typeof Request!="undefined"&&te(t,Request)?t.headers:void 0);if(f)if(typeof Headers!="undefined"&&te(f,Headers)){const g=new Headers(f);return g.append("sentry-trace",p),h&&g.append(cn,h),g}else if(Array.isArray(f)){const g=[...f,["sentry-trace",p]];return h&&g.push([cn,h]),g}else{const g="baggage"in f?f.baggage:void 0,y=[];return Array.isArray(g)?y.push(...g):g&&y.push(g),h&&y.push(h),E(d({},f),{"sentry-trace":p,baggage:y.length>0?y.join(","):void 0})}else return{"sentry-trace":p,baggage:h}}function Ol(t){try{return new URL(t).href}catch(e){return}}function Cl(t,e){if(e.response){Nn(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus("internal_error");t.end()}const mn=["localhost",/^\/(?!\/)/],hn={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:mn,tracePropagationTargets:mn};function Nl(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o}=d({traceFetch:hn.traceFetch,traceXHR:hn.traceXHR},t),a=typeof i=="function"?i:l=>!0,c=l=>Ll(l,r||s),u={};e&&ps(l=>{const p=Al(l,a,c,u);if(p){const h=ni(l.fetchData.url),f=h?ue(h).host:void 0;p.setAttributes({"http.url":h,"server.address":f})}o&&p&&Nr(p)}),n&&gs(l=>{const p=Ml(l,a,c,u);o&&p&&Nr(p)})}function xl(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function Nr(t){const{url:e}=x(t).data||{};if(!e||typeof e!="string")return;const n=Ke("resource",({entries:r})=>{r.forEach(s=>{xl(s)&&s.name.endsWith(e)&&($l(s).forEach(o=>t.setAttribute(...o)),setTimeout(n))})})}function Dl(t){let e="unknown",n="unknown",r="";for(const s of t){if(s==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=s}return r===t&&(e=r),{name:e,version:n}}function V(t=0){return((U||performance.timeOrigin)+t)/1e3}function $l(t){const{name:e,version:n}=Dl(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),U?[...r,["http.request.redirect_start",V(t.redirectStart)],["http.request.fetch_start",V(t.fetchStart)],["http.request.domain_lookup_start",V(t.domainLookupStart)],["http.request.domain_lookup_end",V(t.domainLookupEnd)],["http.request.connect_start",V(t.connectStart)],["http.request.secure_connection_start",V(t.secureConnectionStart)],["http.request.connection_end",V(t.connectEnd)],["http.request.request_start",V(t.requestStart)],["http.request.response_start",V(t.responseStart)],["http.request.response_end",V(t.responseEnd)]]:r}function Ll(t,e){return Je(t,e||mn)}function Ml(t,e,n,r){const s=t.xhr,i=s&&s[ve];if(!Se()||!s||s.__sentry_own_request__||!i)return;const o=e(i.url);if(t.endTimestamp&&o){const f=s.__sentry_xhr_span_id__;if(!f)return;const g=r[f];g&&i.status_code!==void 0&&(Nn(g,i.status_code),g.end(),delete r[f]);return}const a=z(),c=_e(),u=ni(i.url),l=u?ue(u).host:void 0,p=o?Pt({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":u,url:i.url,"server.address":l,[oe]:"auto.http.browser"},op:"http.client"}):void 0;p&&(s.__sentry_xhr_span_id__=p.spanContext().spanId,r[s.__sentry_xhr_span_id__]=p);const h=$();if(s.setRequestHeader&&n(i.url)&&h){const{traceId:f,spanId:g,sampled:y,dsc:b}=d(d({},c.getPropagationContext()),a.getPropagationContext()),v=p?Nt(p):wn(f,g,y),I=bs(b||(p?Oe(p):Dt(f,h,a)));Fl(s,v,I)}return p}function Fl(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(cn,n)}catch(r){}}function ni(t){try{return new URL(t,T.location.origin).href}catch(e){return}}const Bl="BrowserTracing",Hl=d(E(d({},Tt),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{}}),hn),xr=(t={})=>{const e=R?!!(t.tracePropagationTargets||t.tracingOrigins):!1;Zc(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const n=d(d({},Hl),t),r=ll(),s={};n.enableInp&&pl(s,n.interactionsSampleRate),n.enableLongTask&&dl(),n._experiments.enableInteractions&&fl();const i={name:void 0,context:void 0};function o(a){const c=M(),{beforeStartSpan:u,idleTimeout:l,finalTimeout:p,heartbeatInterval:h}=n,f=a.op==="pageload";let g;if(f){const I=f?Dr("sentry-trace"):"",A=f?Dr("baggage"):void 0,{traceId:_,dsc:k,parentSpanId:N,sampled:H}=tc(I,A);g=E(d({traceId:_,parentSpanId:N,parentSampled:H},a),{metadata:E(d({},a.metadata),{dynamicSamplingContext:k}),trimEnd:!0})}else g=d({trimEnd:!0},a);const y=u?u(g):g;y.metadata=y.name!==g.name?E(d({},y.metadata),{source:"custom"}):y.metadata,i.name=y.name,i.context=y,y.sampled===!1&&R&&m.log(`[Tracing] Will not send ${y.op} transaction because of beforeNavigate.`),R&&m.log(`[Tracing] Starting ${y.op} transaction on scope`);const{location:b}=T,v=Fs(c,y,l,p,!0,{location:b},h,f);return f&&T.document&&(T.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(T.document.readyState)&&v.sendAutoFinishSignal()}),["interactive","complete"].includes(T.document.readyState)&&v.sendAutoFinishSignal()),v.registerBeforeFinishCallback(I=>{r(),Sl(I)}),v}return{name:Bl,setupOnce:()=>{},afterAllSetup(a){const c=a.getOptions(),{markBackgroundSpan:u,traceFetch:l,traceXHR:p,shouldCreateSpanForRequest:h,enableHTTPTimings:f,_experiments:g}=n,y=c&&c.tracePropagationTargets,b=y||n.tracePropagationTargets;R&&e&&y&&m.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let v,I=T.location&&T.location.href;if(a.on&&(a.on("startNavigationSpan",A=>{v&&(R&&m.log(`[Tracing] Finishing current transaction with op: ${x(v).op}`),v.end()),v=o(d({op:"navigation"},A))}),a.on("startPageLoadSpan",A=>{v&&(R&&m.log(`[Tracing] Finishing current transaction with op: ${x(v).op}`),v.end()),v=o(d({op:"pageload"},A))})),n.instrumentPageLoad&&a.emit&&T.location){const A={name:T.location.pathname,startTimestamp:U?U/1e3:void 0,origin:"auto.pageload.browser",attributes:{[G]:"url"}};Ul(a,A)}n.instrumentNavigation&&a.emit&&T.location&&Pn(({to:A,from:_})=>{if(_===void 0&&I&&I.indexOf(A)!==-1){I=void 0;return}if(_!==A){I=void 0;const k={name:T.location.pathname,origin:"auto.navigation.browser",attributes:{[G]:"url"}};ri(a,k)}}),u&&Fu(),g.enableInteractions&&jl(n,i),n.enableInp&&Gl(s,i),Nl({traceFetch:l,traceXHR:p,tracePropagationTargets:b,shouldCreateSpanForRequest:h,enableHTTPTimings:f})},options:n}};function Ul(t,e){if(!t.emit)return;t.emit("startPageLoadSpan",e);const n=Xe();return(n&&x(n).op)==="pageload"?n:void 0}function ri(t,e){if(!t.emit)return;t.emit("startNavigationSpan",e);const n=Xe();return(n&&x(n).op)==="navigation"?n:void 0}function Dr(t){const e=ca(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function jl(t,e){let n;const r=()=>{const{idleTimeout:s,finalTimeout:i,heartbeatInterval:o}=t,a="ui.action.click",c=ye();if(c&&c.op&&["navigation","pageload"].includes(c.op)){R&&m.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e.name){R&&m.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}const{location:u}=T,l={name:e.name,op:a,trimEnd:!0,data:{[G]:e.context?zl(e.context):"url"}};n=Fs(M(),l,s,i,!0,{location:u},o)};["click"].forEach(s=>{T.document&&addEventListener(s,r,{once:!1,capture:!0})})}function ql(t){return"duration"in t}const $r=10;function Gl(t,e){const n=({entries:r})=>{const s=$(),i=s!==void 0&&s.getIntegrationByName!==void 0?s.getIntegrationByName("Replay"):void 0,o=i!==void 0?i.getReplayId():void 0,a=ye(),c=z(),u=c!==void 0?c.getUser():void 0;r.forEach(l=>{if(ql(l)){const p=l.interactionId;if(p===void 0)return;const h=t[p],f=l.duration,g=l.startTime,y=Object.keys(t),b=y.length>0?y.reduce((v,I)=>t[v].duration<t[I].duration?v:I):void 0;if(l.entryType==="first-input"&&y.map(I=>t[I]).some(I=>I.duration===f&&I.startTime===g)||!p)return;if(h)h.duration=Math.max(h.duration,f);else if(y.length<$r||b===void 0||f>t[b].duration){const v=e.name,I=e.context;v&&I&&(b&&Object.keys(t).length>=$r&&delete t[b],t[p]={routeName:v,duration:f,parentContext:I,user:u,activeTransaction:a,replayId:o,startTime:g})}}})};Ke("event",n),Ke("first-input",n)}function zl(t){const e=t.attributes&&t.attributes[G],n=t.data&&t.data[G],r=t.metadata&&t.metadata.source;return e||n||r}const w=P;let gn=0;function si(){return gn>0}function Wl(){gn++,setTimeout(()=>{gn--})}function Ne(t,e={},n){if(typeof t!="function")return t;try{const s=t.__sentry_wrapped__;if(s)return typeof s=="function"?s:t;if(vn(t))return t}catch(s){return t}const r=function(){const s=Array.prototype.slice.call(arguments);try{const i=s.map(o=>Ne(o,e));return t.apply(this,i)}catch(i){throw Wl(),Rc(o=>{o.addEventProcessor(a=>(e.mechanism&&(en(a,void 0),Ve(a,e.mechanism)),a.extra=E(d({},a.extra),{arguments:s}),a)),Cn(i)}),i}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch(s){}as(r,t),le(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(s){}return r}const Q=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;function ii(t,e){const n=Ln(t,e),r={type:e&&e.name,value:Kl(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Vl(t,e,n,r){const s=$(),i=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:Rt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Ql(e,{isUnhandledRejection:r})}]},extra:{__serialized__:_s(e,i)}};if(n){const a=Ln(t,n);a.length&&(o.exception.values[0].stacktrace={frames:a})}return o}function zt(t,e){return{exception:{values:[ii(t,e)]}}}function Ln(t,e){const n=e.stacktrace||e.stack||"",r=Xl(e);try{return t(n,r)}catch(s){}return[]}const Yl=/Minified React error #\d+;/i;function Xl(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Yl.test(t.message))return 1}return 0}function Kl(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Jl(t,e,n,r){const s=n&&n.syntheticException||void 0,i=Mn(t,e,s,r);return Ve(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Re(i)}function Zl(t,e,n="info",r,s){const i=r&&r.syntheticException||void 0,o=_n(t,e,i,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Re(o)}function Mn(t,e,n,r,s){let i;if(Sn(e)&&e.error)return zt(t,e.error);if(Xn(e)||Zo(e)){const o=e;if("stack"in e)i=zt(t,e);else{const a=o.name||(Xn(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=_n(t,c,n,r),en(i,c)}return"code"in o&&(i.tags=E(d({},i.tags),{"DOMException.code":`${o.code}`})),i}return ts(e)?zt(t,e):we(e)||Rt(e)?(i=Vl(t,e,n,s),Ve(i,{synthetic:!0}),i):(i=_n(t,e,n,r),en(i,`${e}`),Ve(i,{synthetic:!0}),i)}function _n(t,e,n,r){const s={};if(r&&n){const i=Ln(t,n);i.length&&(s.exception={values:[{value:e,stacktrace:{frames:i}}]})}if(bn(e)){const{__sentry_template_string__:i,__sentry_template_values__:o}=e;return s.logentry={message:i,params:o},s}return s.message=e,s}function Ql(t,{isUnhandledRejection:e}){const n=_a(t),r=e?"promise rejection":"exception";return Sn(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Rt(t)?`Event \`${ed(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function ed(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}function td(t,{metadata:e,tunnel:n,dsn:r}){const s=d(d({event_id:t.event_id,sent_at:new Date().toISOString()},e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}}),!!n&&!!r&&{dsn:$e(r)}),i=nd(t);return ge(s,[i])}function nd(t){return[{type:"user_report"},t]}class rd extends hu{constructor(e){const n=w.SENTRY_SDK_SOURCE||Ba();Iu(e,"browser",["browser"],n),super(e),e.sendClientReports&&w.document&&w.document.addEventListener("visibilitychange",()=>{w.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Jl(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Zl(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){Q&&m.warn("SDK not enabled, will not capture user feedback.");return}const n=td(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){Q&&m.log("No outcomes to send");return}if(!this._dsn){Q&&m.log("No dsn provided, will not send outcomes");return}Q&&m.log("Sending outcomes:",e);const n=cc(e,this._options.tunnel&&$e(this._dsn));this._sendEnvelope(n)}}let je;function sd(){if(je)return je;if(sn(w.fetch))return je=w.fetch.bind(w);const t=w.document;let e=w.fetch;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(n){Q&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return je=e.bind(w)}function id(){je=void 0}function od(t,e=sd()){let n=0,r=0;function s(i){const o=i.body.length;n+=o,r++;const a=d({body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);try{return e(t.url,a).then(c=>(n-=o,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return id(),n-=o,r--,kn(c)}}return js(t,s)}const ad=4;function cd(t){function e(n){return new F((r,s)=>{const i=new XMLHttpRequest;i.onerror=s,i.onreadystatechange=()=>{i.readyState===ad&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const o in t.headers)Object.prototype.hasOwnProperty.call(t.headers,o)&&i.setRequestHeader(o,t.headers[o]);i.send(n.body)})}return js(t,e)}const Mt="?",ud=30,ld=40,dd=50;function Fn(t,e,n,r){const s={filename:t,function:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const fd=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pd=/\((\S*)(?::(\d+))(?::(\d+))\)/,md=t=>{const e=fd.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const i=pd.exec(e[2]);i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3])}const[r,s]=oi(e[1]||Mt,e[2]);return Fn(s,r,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},hd=[ud,md],gd=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,yd=t=>{const e=gd.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const i=_d.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let r=e[3],s=e[1]||Mt;return[s,r]=oi(s,r),Fn(r,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Sd=[dd,yd],bd=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Td=t=>{const e=bd.exec(t);return e?Fn(e[2],e[1]||Mt,+e[3],e[4]?+e[4]:void 0):void 0},Ed=[ld,Td],vd=[hd,Sd,Ed],Id=ls(...vd),oi=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Mt,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},gt=1024,ai="Breadcrumbs",Pd=(t={})=>{const e=d({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:ai,setupOnce(){},setup(n){e.console&&Ta(Ad(n)),e.dom&&Ia(wd(n,e.dom)),e.xhr&&gs(Rd(n)),e.fetch&&ps(Od(n)),e.history&&Pn(Cd(n)),e.sentry&&n.on&&n.on("beforeSendEvent",kd(n))}}},ci=Pd;re(ai,ci);function kd(t){return function(n){$()===t&&fe({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ie(n)},{event:n})}}function wd(t,e){return function(r){if($()!==t)return;let s,i,o=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>gt&&(Q&&m.warn(`\`dom.maxStringLength\` cannot exceed ${gt}, but a value of ${a} was configured. Sentry will use ${gt} instead.`),a=gt),typeof o=="string"&&(o=[o]);try{const u=r.event,l=Nd(u)?u.target:u;s=Ae(l,{keyAttrs:o,maxStringLength:a}),i=is(l)}catch(u){s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),fe(c,{event:r.event,name:r.name,global:r.global})}}function Ad(t){return function(n){if($()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Va(n.level),message:Kn(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Kn(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;fe(r,{input:n.args,level:n.level})}}function Rd(t){return function(n){if($()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[ve];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:u}=i,l={method:o,url:a,status_code:c},p={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s};fe({category:"xhr",data:l,type:"http"},p)}}function Od(t){return function(n){if($()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};fe({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=n.response,o=E(d({},n.fetchData),{status_code:i&&i.status}),a={input:n.args,response:i,startTimestamp:r,endTimestamp:s};fe({category:"fetch",data:o,type:"http"},a)}}}function Cd(t){return function(n){if($()!==t)return;let r=n.from,s=n.to;const i=ue(w.location.href);let o=r?ue(r):void 0;const a=ue(s);(!o||!o.path)&&(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),fe({category:"navigation",data:{from:r,to:s}})}}function Nd(t){return!!t&&!!t.target}const ui="Dedupe",xd=()=>{let t;return{name:ui,setupOnce(){},processEvent(e){if(e.type)return e;try{if(Dd(e,t))return Q&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}},li=xd;re(ui,li);function Dd(t,e){return e?!!($d(t,e)||Ld(t,e)):!1}function $d(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!fi(t,e)||!di(t,e))}function Ld(t,e){const n=Lr(e),r=Lr(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!fi(t,e)||!di(t,e))}function di(t,e){let n=Mr(t),r=Mr(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function fi(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch(s){return!1}}function Lr(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Mr(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}}const pi="GlobalHandlers",Md=(t={})=>{const e=d({onerror:!0,onunhandledrejection:!0},t);return{name:pi,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Fd(n),Fr("onerror")),e.onunhandledrejection&&(Bd(n),Fr("onunhandledrejection"))}}},mi=Md;re(pi,mi);function Fd(t){ms(e=>{const{stackParser:n,attachStacktrace:r}=gi();if($()!==t||si())return;const{msg:s,url:i,line:o,column:a,error:c}=e,u=c===void 0&&K(s)?jd(s,i,o,a):hi(Mn(n,c||s,void 0,r,!1),i,o,a);u.level="error",Ps(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Bd(t){hs(e=>{const{stackParser:n,attachStacktrace:r}=gi();if($()!==t||si())return;const s=Hd(e),i=Tn(s)?Ud(s):Mn(n,s,void 0,r,!0);i.level="error",Ps(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Hd(t){if(Tn(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(n){}return t}function Ud(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function jd(t,e,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Sn(t)?t.message:t,o="Error";const a=i.match(s);return a&&(o=a[1],i=a[2]),hi({exception:{values:[{type:o,value:i}]}},e,n,r)}function hi(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,p=K(e)&&e.length>0?e:aa();return c.length===0&&c.push({colno:u,filename:p,function:"?",in_app:!0,lineno:l}),t}function Fr(t){Q&&m.log(`Global Handler attached: ${t}`)}function gi(){const t=$();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const _i="HttpContext",qd=()=>({name:_i,setupOnce(){},preprocessEvent(t){if(!w.navigator&&!w.location&&!w.document)return;const e=t.request&&t.request.url||w.location&&w.location.href,{referrer:n}=w.document||{},{userAgent:r}=w.navigator||{},s=d(d(d({},t.request&&t.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),i=E(d(d({},t.request),e&&{url:e}),{headers:s});t.request=i}}),yi=qd;re(_i,yi);const Gd="cause",zd=5,Si="LinkedErrors",Wd=(t={})=>{const e=t.limit||zd,n=t.key||Gd;return{name:Si,setupOnce(){},preprocessEvent(r,s,i){const o=i.getOptions();ra(ii,o.stackParser,o.maxValueLength,n,e,r,s)}}},bi=Wd;re(Si,bi);const Vd=["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"],Ti="TryCatch",Yd=(t={})=>{const e=d({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t);return{name:Ti,setupOnce(){e.setTimeout&&L(w,"setTimeout",Br),e.setInterval&&L(w,"setInterval",Br),e.requestAnimationFrame&&L(w,"requestAnimationFrame",Xd),e.XMLHttpRequest&&"XMLHttpRequest"in w&&L(XMLHttpRequest.prototype,"send",Kd);const n=e.eventTarget;n&&(Array.isArray(n)?n:Vd).forEach(Jd)}}},Ei=Yd;re(Ti,Ei);function Br(t){return function(...e){const n=e[0];return e[0]=Ne(n,{mechanism:{data:{function:ne(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Xd(t){return function(e){return t.apply(this,[Ne(e,{mechanism:{data:{function:"requestAnimationFrame",handler:ne(t)},handled:!1,type:"instrument"}})])}}function Kd(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&L(n,s,function(i){const o={mechanism:{data:{function:s,handler:ne(i)},handled:!1,type:"instrument"}},a=vn(i);return a&&(o.mechanism.data.handler=ne(a)),Ne(i,o)})}),t.apply(this,e)}}function Jd(t){const e=w,n=e[t]&&e[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(L(n,"addEventListener",function(r){return function(s,i,o){try{typeof i.handleEvent=="function"&&(i.handleEvent=Ne(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ne(i),target:t},handled:!1,type:"instrument"}}))}catch(a){}return r.apply(this,[s,Ne(i,{mechanism:{data:{function:"addEventListener",handler:ne(i),target:t},handled:!1,type:"instrument"}}),o])}}),L(n,"removeEventListener",function(r){return function(s,i,o){const a=i;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,s,c,o)}catch(c){}return r.call(this,s,a,o)}}))}const Zd=[Gs(),Ws(),Ei(),ci(),mi(),bi(),li(),yi()];function vi(t){return[...Zd]}function Qd(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=vi()),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),w.SENTRY_RELEASE&&w.SENTRY_RELEASE.id&&(t.release=w.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e=E(d({},t),{stackParser:Sa(t.stackParser||Id),integrations:uu(t),transport:t.transport||(fs()?od:cd)});yu(rd,e),t.autoSessionTracking&&ef()}function ef(){if(typeof w.document=="undefined"){Q&&m.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}mr({ignoreDuration:!0}),hr(),Pn(({from:t,to:e})=>{t!==void 0&&t!==e&&(mr({ignoreDuration:!0}),hr())})}const Ii=["activate","mount","update"],tf=/(?:^|[-_])(\w)/g,nf=t=>t.replace(tf,e=>e.toUpperCase()).replace(/[-_]/g,""),rf="<Root>",Wt="<Anonymous>",sf=(t,e)=>t.repeat?t.repeat(e):t,ze=(t,e)=>{if(!t)return Wt;if(t.$root===t)return rf;if(!t.$options)return Wt;const n=t.$options;let r=n.name||n._componentTag;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${nf(r)}>`:Wt)+(s&&e!==!1?` at ${s}`:"")},of=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let n=0;for(;t;){if(e.length>0){const s=e[e.length-1];if(s.constructor===t.constructor){n++,t=t.$parent;continue}else n>0&&(e[e.length-1]=[s,n],n=0)}e.push(t),t=t.$parent}return`

found in

${e.map((s,i)=>`${(i===0?"---> ":sf(" ",5+i*2))+(Array.isArray(s)?`${ze(s[0])}... (${s[1]} recursive calls)`:ze(s))}`).join(`
`)}`}return`

(found in ${ze(t)})`},af=(t,e)=>{const{errorHandler:n,warnHandler:r,silent:s}=t.config;t.config.errorHandler=(i,o,a)=>{const c=ze(o,!1),u=o?of(o):"",l={componentName:c,lifecycleHook:a,trace:u};if(e.attachProps&&o&&(o.$options&&o.$options.propsData?l.propsData=o.$options.propsData:o.$props&&(l.propsData=o.$props)),setTimeout(()=>{Cn(i,{captureContext:{contexts:{vue:l}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(t,i,o,a),e.logErrors){const p=typeof console!="undefined",h=`Error in ${a}: "${i&&i.toString()}"`;r?r.call(null,h,o,u):p&&!s&&pe(()=>{console.error(`[Vue warn]: ${h}${u}`)})}}},cf=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__,Hr="ui.vue",uf={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function lf(){return z().getTransaction()}function df(t,e,n){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout(()=>{t.$root&&t.$root.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.end(e),t.$root.$_sentryRootSpan=void 0)},n)}const ff=t=>{const e=(t.hooks||[]).concat(Ii).filter((r,s,i)=>i.indexOf(r)===s),n={};for(const r of e){const s=uf[r];if(!s){cf&&m.warn(`Unknown hook: ${r}`);continue}for(const i of s)n[i]=function(){const o=this.$root===this;o&&Xe()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||Pt({name:"Application Render",op:`${Hr}.render`,origin:"auto.ui.vue"}));const a=ze(this,!1),c=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(a)>-1:t.trackComponents;if(!(!o&&!c))if(this.$_sentrySpans=this.$_sentrySpans||{},i==s[0]){if(this.$root&&this.$root.$_sentryRootSpan||Xe()){const l=this.$_sentrySpans[r];l&&l.end(),this.$_sentrySpans[r]=Pt({name:`Vue <${a}>`,op:`${Hr}.${r}`,origin:"auto.ui.vue"})}}else{const u=this.$_sentrySpans[r];if(!u)return;u.end(),df(this,Le(),t.timeout)}}}return n},pf=P,mf={Vue:pf.Vue,attachProps:!0,logErrors:!0,hooks:Ii,timeout:2e3,trackComponents:!1},Pi="Vue",hf=(t={})=>({name:Pi,setupOnce(){},setup(e){gf(e,t)}}),ki=hf;re(Pi,ki);function gf(t,e){const n=d(d(d({},mf),t.getOptions()),e);if(!n.Vue&&!n.app){pe(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?In(n.app).forEach(s=>Ur(s,n)):n.Vue&&Ur(n.Vue,n)}const Ur=(t,e)=>{const n=t;(n._instance&&n._instance.isMounted)===!0&&pe(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),af(t,e),Se(e)&&t.mixin(ff(d(d({},e),e.tracingOptions)))};function _f(t={}){const e=d({_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:Ye}],version:Ye}},defaultIntegrations:[...vi(),ki()]},t);Qd(e)}function yf(t,e,n){t.onError(r=>Cn(r,{mechanism:{handled:!1}})),t.beforeEach((r,s,i)=>{const o=s.name==null&&s.matched.length===0,a={[oe]:"auto.navigation.vue"};for(const l of Object.keys(r.params))a[`params.${l}`]=r.params[l];for(const l of Object.keys(r.query)){const p=r.query[l];p&&(a[`query.${l}`]=p)}let c=r.path,u="url";if(r.name&&e.routeLabel!=="path"?(c=r.name.toString(),u="custom"):r.matched[0]&&r.matched[0].path&&(c=r.matched[0].path,u="route"),e.instrumentPageLoad&&o){const l=lf();l&&((x(l).data||{})[G]!=="custom"&&(l.updateName(c),l.setAttribute(G,u)),l.setAttributes(E(d({},a),{[oe]:"auto.pageload.vue"})))}e.instrumentNavigation&&!o&&(a[G]=u,n({name:c,op:"navigation",attributes:a})),i&&i()})}function Sf(t={}){if(!t.router)return xr(t);const e=xr(E(d({},t),{instrumentNavigation:!1})),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=t;return E(d({},e),{afterAllSetup(o){e.afterAllSetup(o),yf(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},c=>{ri(o,c)})}})}function Of({app:t}){_f({app:t,dsn:"https://641f644a89c543188c76cdd461ae4d3f@sentry.stock3.com/43",release:"release-2024-10-29-18912",environment:"Client",autoSessionTracking:!1,logErrors:!0,integrations:[Sf()],tracesSampleRate:.25,ignoreErrors:["QuotaExceededError: The quota has been exceeded.","top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage"],denyUrls:[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i]}),t.runWithContext(()=>{const e=ko();let n=!1;qr(e.user,r=>{r&&+r.getPrimaryKey()==30?(pr("uid",r.getPrimaryKey()),n=!0):n&&pr("uid",void 0)},{immediate:!0})})}export{wf as C,Af as M,Uo as a,Rf as b,$o as c,Wn as f,Of as i,Pf as k,kf as s,jo as u};
//# sourceMappingURL=C_z4eAwg.js.map
