PageSourceSearch

https://demo-webapp.trendemon.com/main-PYKVHPE2.js

js trendemon.com collected 2026-09-25 21:02:25 UTC 234,983 bytes, 29 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="de66f4f6-f519-589d-843d-b82a495b4d3f")}catch(e){}}();
3import{a as $u}from"./chunk-B3CDUZI3.js";import{a as kr,b as qu,c as Vu,d as Zu,e as el,f as tl,h as Yi,i as $,j as lt,m as pl,n as zs,p as bn,q as Ji,r as Lr}from"./chunk-EJZV5IBZ.js";import{$ as qn,$a as Oi,$c as Uu,A as j,Aa as jt,Af as sl,Ba as qt,C as Ge,Ca as Vt,Cb as Kn,Cc as Bi,D as En,Da as ne,Db as Yn,Dc as xt,Ea as C,F as bt,Fa as x,G as k,Ga as Ee,J as vt,K as It,Ka as bu,La as vu,N as gu,Na as Kt,Ob as Cu,Oh as ll,P as hu,Pa as Te,Q as _u,R as Su,Ra as V,Sb as Ru,Sc as ku,Tc as Hi,Va as Pi,W as Fs,Wa as Mr,Wc as Lu,Xa as Pr,Xc as $i,Xe as nl,Y as Us,Yc as Gi,Yd as zu,Zc as Fu,Zd as ju,_a as an,_c as H,a as lu,ab as At,ad as Bu,af as rl,ag as al,b as pu,bb as Or,bd as Jn,be as Ku,bf as il,bg as cl,c as du,cb as B,ce as ji,cf as ol,db as Ct,dd as Hu,ea as b,eb as Rt,ee as qi,f as ks,fb as Iu,fe as Vi,ga as yu,ge as Xn,hb as Hs,hd as Wi,he as Yu,hg as ul,ib as $s,id as zi,ie as Ki,jb as Gs,jc as Nu,jd as Gu,ka as Eu,kc as xu,ke as Ju,la as sn,lc as Di,m as jn,ma as Tn,mc as wu,na as Bs,nb as Vn,nc as ki,nd as Wu,o as mu,ob as Dr,oc as Yt,pc as Mu,pe as Xu,qc as Pu,ra as Tu,rb as Au,rc as Ou,s as fu,sc as Li,tc as Du,uc as Ke,vc as Fi,wc as Ui,we as Qu,xa as Z,xc as Ws,y as Mi,ya as ee,yc as Nt,z as Ls,zc as cn}from"./chunk-6O3VEJHR.js";import"./chunk-RMBSKU4Q.js";import{a as p,b as E,d as zn,h as te}from"./chunk-OO2NDPJI.js";var S=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var w=globalThis;var wt="10.46.0";function We(){return vn(w),w}function vn(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||wt,e[wt]=e[wt]||{}}function pt(t,e,n=w){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[wt]=r[wt]||{};return i[t]||(i[t]=e())}var js=["debug","info","warn","error","log","assert","trace"],bf="Sentry Logger ",Qn={};function Pe(t){if(!("console"in w))return t();let e=w.console,n={},r=Object.keys(Qn);r.forEach(i=>{let o=Qn[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function vf(){Vs().enabled=!0}function If(){Vs().enabled=!1}function dl(){return Vs().enabled}function Af(...t){qs("log",...t)}function Cf(...t){qs("warn",...t)}function Rf(...t){qs("error",...t)}function qs(t,...e){S&&dl()&&Pe(()=>{w.console[t](`${bf}[${t}]:`,...e)})}function Vs(){return S?pt("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:vf,disable:If,isEnabled:dl,log:Af,warn:Cf,error:Rf};var ml=/\(error: (.*)\)/,fl=/captureMessage|captureException/;function Qi(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
4`);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));let u=ml.test(c)?c.replace(ml,"$1"):c;if(!u.match(/\S*Error: /)){for(let l of e){let d=l(u);if(d){o.push(d);break}}if(o.length>=50+i)break}}return gl(o.slice(i))}}function Ys(t){return Array.isArray(t)?Qi(...t):t}function gl(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(Xi(e).function||"")&&e.pop(),e.reverse(),fl.test(Xi(e).function||"")&&(e.pop(),fl.test(Xi(e).function||"")&&e.pop()),e.slice(0,50).map(n=>E(p({},n),{filename:n.filename||Xi(e).filename,function:n.function||"?"}))}function Xi(t){return t[t.length-1]||{}}var Ks="<anonymous>";function Oe(t){try{return!t||typeof t!="function"?Ks:t.name||Ks}catch(e){return Ks}}function Zi(t){let e=t.exception;if(e){let n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch(r){return}}}function eo(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}var to={},hl={};function be(t,e){to[t]=to[t]||[],to[t].push(e)}function ve(t,e){if(!hl[t]){hl[t]=!0;try{e()}catch(n){S&&h.error(`Error while instrumenting ${t}`,n)}}}function pe(t,e){let n=t&&to[t];if(n)for(let r of n)try{r(e)}catch(i){S&&h.error(`Error while triggering instrumentation handler.
5Type: ${t}
6Name: ${Oe(r)}
7Error:`,i)}}var Js=null;function Fr(t){let e="error";be(e,t),ve(e,Nf)}function Nf(){Js=w.onerror,w.onerror=function(t,e,n,r,i){return pe("error",{column:r,error:i,line:n,msg:t,url:e}),Js?Js.apply(this,arguments):!1},w.onerror.__SENTRY_INSTRUMENTED__=!0}var Xs=null;function Ur(t){let e="unhandledrejection";be(e,t),ve(e,xf)}function xf(){Xs=w.onunhandledrejection,w.onunhandledrejection=function(t){return pe("unhandledrejection",t),Xs?Xs.apply(this,arguments):!0},w.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var _l=Object.prototype.toString;function Jt(t){switch(_l.call(t)){case"[object Error]":case"[object E
7xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ze(t,Error)}}function Zn(t,e){return _l.call(t)===`[object ${e}]`}function Br(t){return Zn(t,"ErrorEvent")}function no(t){return Zn(t,"DOMError")}function Qs(t){return Zn(t,"DOMException")}function me(t){return Zn(t,"String")}function In(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function dt(t){return t===null||In(t)||typeof t!="object"&&typeof t!="function"}function Mt(t){return Zn(t,"Object")}function An(t){return typeof Event<"u"&&ze(t,Event)}function Zs(t){return typeof Element<"u"&&ze(t,Element)}function ea(t){return Zn(t,"RegExp")}function Ye(t){return!!(t?.then&&typeof t.then=="function")}function ta(t){return Mt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function ze(t,e){try{return t instanceof e}catch(n){return!1}}function Hr(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function $r(t){return typeof Request<"u"&&ze(t,Request)}var na=w,wf=80;function fe(t,e={}){if(!t)return"<unknown>";try{let n=t,r=5,i=[],o=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||wf;for(;n&&o++<r&&(u=Mf(n,l),!(u==="html"||o>1&&s+i.length*c+u.length>=d));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(a)}catch(n){return"<unknown>"}}function Mf(t,e){let n=t,r=[];if(!n?.tagName)return"";if(na.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=e?.length?e.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(i?.length)i.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let o=n.className;if(o&&me(o)){let s=o.split(/\s+/);for(let a of s)r.push(`.${a}`)}}for(let o of["aria-label","type","name","title","alt"]){let s=n.getAttribute(o);s&&r.push(`[${o}="${s}"]`)}return r.join("")}function mt(){try{return na.document.location.href}catch(t){return""}}function Gr(t){if(!na.HTMLElement)return null;let e=t,n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function ge(t,e,n){if(!(e in t))return;let r=t[e];if(typeof r!="function")return;let i=n(r);typeof i=="function"&&ro(i,r);try{t[e]=i}catch(o){S&&h.log(`Failed to replace method "${e}" in object`,t)}}function re(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(r){S&&h.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function ro(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,re(t,"__sentry_original__",e)}catch(n){}}function Cn(t){return t.__sentry_original__}function io(t){if(Jt(t))return p({message:t.message,name:t.name,stack:t.stack},yl(t));if(An(t)){let e=p({type:t.type,target:Sl(t.target),currentTarget:Sl(t.currentTarget)},yl(t));return typeof CustomEvent<"u"&&ze(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Sl(t){try{return Zs(t)?fe(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function yl(t){return typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t)):{}}function ra(t){let e=Object.keys(io(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}var er;function Rn(t){if(er!==void 0)return er?er(t):t();let e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=w;return e in n&&typeof n[e]=="function"?(er=n[e],er(t)):(er=null,t())}function Je(){return Rn(()=>Math.random())}function Nn(){return Rn(()=>Date.now())}function tr(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function oo(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let i=t[r];try{Hr(i)?n.push(eo(i)):n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function nr(t,e,n=!1){return me(t)?ea(e)?e.test(t):me(e)?n?t===e:t.includes(e):!1:!1}function Xe(t,e=[],n=!1){return e.some(r=>nr(t,r,n))}function Pf(){let t=w;return t.crypto||t.msCrypto}var ia;function Of(){return Je()*16}function he(t=Pf()){try{if(t?.randomUUID)return Rn(()=>t.randomUUID()).replace(/-/g,"")}catch(e){}return ia||(ia="10000000100040008000"+1e11),ia.replace(/[018]/g,e=>(e^(Of()&15)>>e/4).toString(16))}function El(t){return t.exception?.values?.[0]}function Pt(t){let{message:e,event_id:n}=t;if(e)return e;let r=El(t);return r?r.type&&r.value?`${r.type}: ${r.value}
7`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function rr(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function Ot(t,e){let n=El(t);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=p(p(p({},r),i),e),e&&"data"in e){let o=p(p({},i?.data),e.data);n.mechanism.data=o}}function so(t){if(Tl(t))return!0;try{re(t,"__sentry_captured__",!0)}catch(e){}return!1}function Tl(t){try{return t.__sentry_captured__}catch(e){}}var vl=1e3;function je(){return Nn()/vl}function Df(){let{performance:t}=w;if(!t?.now||!t.timeOrigin)return je;let e=t.timeOrigin;return()=>(e+Rn(()=>t.now()))/vl}var bl;function J(){return(bl??(bl=Df()))()}var oa=null;function kf(){let{performance:t}=w;if(!t?.now)return;let e=3e5,n=Rn(()=>t.now()),r=Nn(),i=t.timeOrigin;if(typeof i=="number"&&Math.abs(i+n-r)<e)return i;let o=t.timing?.navigationStart;return typeof o=="number"&&Math.abs(o+n-r)<e?o:r-n}function ce(){return oa===null&&(oa=kf()),oa}function Il(t){let e=J(),n={sid:he(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Lf(n)};return t&&Xt(n,t),n}function Xt(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||J(),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:he()),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{let 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 Al(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),Xt(t,n)}function Lf(t){return{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}}}function un(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;let r=p({},t);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=un(r[i],e[i],n-1));return r}function Ne(){return he()}function Ie(){return he().substring(16)}var sa="_sentrySpan";function Qt(t,e){e?re(t,sa,e):delete t[sa]}function xn(t){return t[sa]}var Ff=100,De=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ne(),sampleRand:Je()}}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags=p({},this._tags),e._attributes=p({},this._attributes),e._extra=p({},this._extra),e._contexts=p({},this._contexts),this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata=p({},this._sdkProcessingMetadata),e._propagationContext=p({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,Qt(e,xn(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Xt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags=p(p({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes=p(p({},this._attributes),e),this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra=p(p({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,n){return this._extra=E(p({},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}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,r=n instanceof t?n.getScopeData():Mt(n)?e:void 0,{tags:i,attributes:o,extra:s,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:d,conversationId:g}=r||{};return this._tags=p(p({},this._tags),i),this._attributes=p(p({},this._attributes),o),this._extra=p(p({},this._extra),s),this._contexts=p(p({},this._contexts),c),a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),d&&(this._propagationContext=d),g&&(this._conversationId=g),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Qt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ne(),sampleRand:Je()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Ff;if(r<=0)return this;let i=E(p({timestamp:je()},e),{message:e.message?tr(e.message,2048):e.message});return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:xn(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=un(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n?.event_id||he();if(!this._client)return S&&h.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(e,E(p({originalException:e,syntheticException:i},n),{event_id:r}),this),r}captureMessage(e,n,r){let i=r?.event_id||he();if(!this._client)return S&&h.warn("No client configured on scope - will not capture message!"),i;let o=r?.syntheticException??new Error(e);return this._client.captureMessage(e,n,E(p({originalException:e,syntheticException:o},r),{event_id:i}),this),i}captureEvent(e,n){let r=e.event_id||n?.event_id||he();return this._client?(this._client.captureEvent(e,E(p({},n),{event_id:r}),this),r):(S&&h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
7h(e=>{e(this)}),this._notifyingListeners=!1)}};function Cl(){return pt("defaultCurrentScope",()=>new De)}function Rl(){return pt("defaultIsolationScope",()=>new De)}var Nl=t=>t instanceof Promise&&!t[xl],xl=Symbol("chained PromiseLike"),ao=(t,e,n)=>{let r=t.then(i=>(e(i),i),i=>{throw n(i),i});return Nl(r)&&Nl(t)?r:Uf(t,r)},Uf=(t,e)=>{let n=!1;for(let r in t){if(r in e)continue;n=!0;let i=t[r];typeof i=="function"?Object.defineProperty(e,r,{value:(...o)=>i.apply(t,o),enumerable:!0,configurable:!0,writable:!0}):e[r]=i}return n&&Object.assign(e,{[xl]:!0}),e};var aa=class{constructor(e,n){let r;e?r=e:r=new De;let i;n?i=n:i=new De,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){let n=this._pushScope(),r;try{r=e(n)}catch(i){throw this._popScope(),i}return Ye(r)?ao(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function ir(){let t=We(),e=vn(t);return e.stack=e.stack||new aa(Cl(),Rl())}function Bf(t){return ir().withScope(t)}function Hf(t,e){let n=ir();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function wl(t){return ir().withScope(()=>t(ir().getIsolationScope()))}function Ml(){return{withIsolationScope:wl,withScope:Bf,withSetScope:Hf,withSetIsolationScope:(t,e)=>wl(e),getCurrentScope:()=>ir().getScope(),getIsolationScope:()=>ir().getIsolationScope()}}function Dt(t){let e=vn(t);return e.acs?e.acs:Ml()}function O(){let t=We();return Dt(t).getCurrentScope()}function se(){let t=We();return Dt(t).getIsolationScope()}function co(){return pt("globalScope",()=>new De)}function ln(...t){let e=We(),n=Dt(e);if(t.length===2){let[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function N(){return O().getClient()}function ca(t){let e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,o={trace_id:n,span_id:i||Ie()};return r&&(o.parent_span_id=r),o}var ie="sentry.source",pn="sentry.sample_rate",Wr="sentry.previous_trace_sample_rate",_e="sentry.op",W="sentry.origin",dn="sentry.idle_span_finish_reason",kt="sentry.measurement_unit",Lt="sentry.measurement_value",zr="sentry.custom_span_name",or="sentry.profile_id",Qe="sentry.exclusive_time";var ua="sentry.link.type",la="gen_ai.conversation.id";function pa(t){if(t<400&&t>=100)return{code:1};if(t>=400&&t<500)switch(t){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"};default:return{code:2,message:"internal_error"}}return{code:2,message:"internal_error"}}function sr(t,e){t.setAttribute("http.response.status_code",e);let n=pa(e);n.message!=="unknown_error"&&t.setStatus(n)}var Pl="_sentryScope",Ol="_sentryIsolationScope";function $f(t){try{let e=w.WeakRef;if(typeof e=="function")return new e(t)}catch(e){}return t}function Gf(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch(e){return}return t}}function Dl(t,e,n){t&&(re(t,Ol,$f(n)),re(t,Pl,e))}function wn(t){let e=t;return{scope:e[Pl],isolationScope:Gf(e[Ol])}}var jr="sentry-";var Wf=8192;function uo(t){let e=zf(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.startsWith(jr)){let s=i.slice(jr.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function da(t){if(!t)return;let e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${jr}${r}`]=i),n),{});return jf(e)}function zf(t){if(!(!t||!me(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=kl(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):kl(t)}function kl(t){return t.split(",").map(e=>{let n=e.indexOf("=");if(n===-1)return[];let r=e.slice(0,n),i=e.slice(n+1);return[r,i].map(o=>{try{return decodeURIComponent(o.trim())}catch(s){return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function jf(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{let o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${e},${o}`;return s.length>Wf?(S&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}var qf=/^o(\d+)\./,Vf=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Kf(t){return t==="http"||t==="https"}function qe(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function Yf(t){let e=Vf.exec(t);if(!e){Pe(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o="",s="",a=""]=e.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let d=u.match(/^\d+/);
7d&&(u=d[0])}return Ll({host:o,pass:i,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function Ll(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Jf(t){if(!S)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(h.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Kf(r)?e&&isNaN(parseInt(e,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Xf(t){return t.match(qf)?.[1]}function Fl(t){let e=t.getOptions(),{host:n}=t.getDsn()||{},r;return e.orgId?r=String(e.orgId):n&&(r=Xf(n)),r}function lo(t){let e=typeof t=="string"?Yf(t):Ll(t);if(!(!e||!Jf(e)))return e}function Zt(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}var po=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Ul(t){if(!t)return;let e=t.match(po);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 ma(t,e){let n=Ul(t),r=uo(e);if(!n?.traceId)return{traceId:Ne(),sampleRand:Je()};let i=Qf(n,r);r&&(r.sample_rand=i.toString());let{traceId:o,parentSpanId:s,parentSampled:a}=n;return{traceId:o,parentSpanId:s,sampled:a,dsc:r||{},sampleRand:i}}function qr(t=Ne(),e=Ie(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function Vr(t=Ne(),e=Ie(),n){return`00-${t}-${e}-${n?"01":"00"}`}function Qf(t,e){let n=Zt(e?.sample_rand);if(n!==void 0)return n;let r=Zt(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?Je()*r:r+Je()*(1-r):Je()}var mo=0,fo=1,Bl=!1;function Gl(t){let{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:o,status:s,origin:a,links:c}=M(t);return{parent_span_id:o,span_id:e,trace_id:n,data:r,op:i,status:s,origin:a,links:c}}function ga(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:M(t).parent_span_id,o=wn(t).scope,s=r?o?.getPropagationContext().propagationSpanId||Ie():e;return{parent_span_id:i,span_id:s,trace_id:n}}function go(t){let{traceId:e,spanId:n}=t.spanContext(),r=Ve(t);return qr(e,n,r)}function Wl(t){let{traceId:e,spanId:n}=t.spanContext(),r=Ve(t);return Vr(e,n,r)}function ho(t){if(t&&t.length>0)return t.map(s=>{var a=s,{context:c}=a,u=c,{spanId:e,traceId:n,traceFlags:r}=u,i=zn(u,["spanId","traceId","traceFlags"]),{attributes:o}=a;return p({span_id:e,trace_id:n,sampled:r===fo,attributes:o},i)})}function ft(t){return typeof t=="number"?Hl(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Hl(t.getTime()):J()}function Hl(t){return t>9999999999?t/1e3:t}function M(t){if(tg(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(eg(t)){let{attributes:r,startTime:i,name:o,endTime:s,status:a,links:c}=t,u="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:u,start_timestamp:ft(i),timestamp:ft(s)||void 0,status:_o(a),op:r[_e],origin:r[W],links:ho(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function eg(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function tg(t){return typeof t.getSpanJSON=="function"}function Ve(t){let{traceFlags:e}=t.spanContext();return e===fo}function _o(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"internal_error"}var Mn="_sentryChildSpans",fa="_sentryRootSpan";function So(t,e){let n=t[fa]||t;re(e,fa,n),t[Mn]?t[Mn].add(e):re(t,Mn,new Set([e]))}function zl(t,e){t[Mn]&&t[Mn].delete(e)}function mn(t){let e=new Set;function n(r){if(!e.has(r)&&Ve(r)){e.add(r);let i=r[Mn]?Array.from(r[Mn]):[];for(let o of i)n(o)}}return n(t),Array.from(e)}function K(t){return t[fa]||t}function X(){let t=We(),e=Dt(t);return e.getActiveSpan?e.getActiveSpan():xn(O())}function Kr(){Bl||(Pe(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Bl=!0)}var jl=!1;
7function yo(){if(jl)return;function t(){let e=X(),n=e&&K(e);if(n){let r="internal_error";S&&h.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:2,message:r})}}t.tag="sentry_tracingErrorCallback",jl=!0,Fr(t),Ur(t)}function Se(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=t||N()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function ql(t){h.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function Pn(t,e){if(!e?.length||!t.description)return!1;for(let n of e){if(ng(n)){if(nr(t.description,n))return S&&ql(t),!0;continue}if(!n.name&&!n.op)continue;let r=n.name?nr(t.description,n.name):!0,i=n.op?t.op&&nr(t.op,n.op):!0;if(r&&i)return S&&ql(t),!0}return!1}function Vl(t,e){let n=e.parent_span_id,r=e.span_id;if(n)for(let i of t)i.parent_span_id===r&&(i.parent_span_id=n)}function ng(t){return typeof t=="string"||t instanceof RegExp}var ar="production";var Kl="_frozenDsc";function cr(t,e){re(t,Kl,e)}function ha(t,e){let n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||ar,release:n.release,public_key:r,trace_id:t,org_id:Fl(e)};return e.emit("createDsc",i),i}function Yr(t,e){let n=e.getPropagationContext();return n.dsc||ha(n.traceId,t)}function Ae(t){let e=N();if(!e)return{};let n=K(t),r=M(n),i=r.data,o=n.spanContext().traceState,s=o?.get("sentry.sample_rate")??i[pn]??i[Wr];function a(f){return(typeof s=="number"||typeof s=="string")&&(f.sample_rate=`${s}`),f}let c=n[Kl];if(c)return a(c);let u=o?.get("sentry.dsc"),l=u&&uo(u);if(l)return a(l);let d=ha(t.spanContext().traceId,e),g=i[ie],m=r.description;return g!=="url"&&m&&(d.transaction=m),Se()&&(d.sampled=String(Ve(n)),d.sample_rand=o?.get("sentry.sample_rand")??wn(n).scope?.getPropagationContext().sampleRand.toString()),a(d),e.emit("createDsc",d,n),d}var xe=class{constructor(e={}){this._traceId=e.traceId||Ne(),this._spanId=e.spanId||Ie()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:mo}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}};function Ze(t,e=100,n=1/0){try{return _a("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Eo(t,e=3,n=100*1024){let r=Ze(t,e);return sg(r)>n?Eo(t,e-1,n):r}function _a(t,e,n=1/0,r=1/0,i=ag()){let[o,s]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=rg(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(e))return"[Circular ~]";let u=e;if(u&&typeof u.toJSON=="function")try{let m=u.toJSON();return _a("",m,c-1,r,i)}catch(m){}let l=Array.isArray(e)?[]:{},d=0,g=io(e);for(let m in g){if(!Object.prototype.hasOwnProperty.call(g,m))continue;if(d>=r){l[m]="[MaxProperties ~]";break}let f=g[m];l[m]=_a(m,f,c-1,r,i),d++}return s(e),l}function rg(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Hr(e))return eo(e);if(ta(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Oe(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=ig(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ig(t){let e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function og(t){return~-encodeURI(t).split(/%..|./).length}function sg(t){return og(JSON.stringify(t))}function ag(){let t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function et(t,e=[]){return[t,e]}function Yl(t,e){let[n,r]=t;return[n,[...r,e]]}function To(t,e){let n=t[1];for(let r of n){let i=r[0].type;if(e(r,i))return!0}return!1}function Jl(t,e){return To(t,(n,r)=>e.includes(r))}function Sa(t){let e=vn(w);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function Xl(t){let[e,n]=t,r=JSON.stringify(e);
7function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[Sa(r),o]:r.push(typeof o=="string"?Sa(o):o)}for(let o of n){let[s,a]=o;if(i(`
8${JSON.stringify(s)}
9`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let c;try{c=JSON.stringify(a)}catch(u){c=JSON.stringify(Ze(a))}i(c)}}return typeof r=="string"?r:cg(r)}function cg(t){let e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e),r=0;for(let i of t)n.set(i,r),r+=i.length;return n}function Ql(t){return[{type:"span"},t]}function Zl(t){let e=typeof t.data=="string"?Sa(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var ep={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function ug(t){return t in ep}function ya(t){return ug(t)?ep[t]:t}function Ea(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function tp(t,e,n,r){let i=t.sdkProcessingMetadata?.dynamicSamplingContext;return p(p(p({event_id:t.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:qe(r)}),i&&{trace:i})}function lg(t,e){if(!e)return t;let n=t.sdk||{};return t.sdk=E(p({},n),{name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?p(p({},t.sdk?.settings),e.settings):void 0}),t}function np(t,e,n,r){let i=Ea(n),o=p(p({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:qe(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return et(o,[s])}function rp(t,e,n,r){let i=Ea(n),o=t.type&&t.type!=="replay_event"?t.type:"event";lg(t,n?.sdk);let s=tp(t,i,r,e);return delete t.sdkProcessingMetadata,et(s,[[{type:o},t]])}function ip(t,e){function n(m){return!!m.trace_id&&!!m.public_key}let r=Ae(t[0]),i=e?.getDsn(),o=e?.getOptions().tunnel,s=p(p({sent_at:new Date().toISOString()},n(r)&&{trace:r}),!!o&&i&&{dsn:qe(i)}),{beforeSendSpan:a,ignoreSpans:c}=e?.getOptions()||{},u=c?.length?t.filter(m=>!Pn(M(m),c)):t,l=t.length-u.length;l&&e?.recordDroppedEvent("before_send","span",l);let d=a?m=>{let f=M(m),_=a(f);return _||(Kr(),f)}:M,g=[];for(let m of u){let f=d(m);f&&g.push(Ql(f))}return et(s,g)}function op(t){if(!S)return;let{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=M(t),{spanId:i}=t.spanContext(),o=Ve(t),s=K(t),a=s===t,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!a){let{op:l,description:d}=M(s);u.push(`root ID: ${s.spanContext().spanId}`),l&&u.push(`root op: ${l}`),d&&u.push(`root description: ${d}`)}h.log(`${c}
10  ${u.join(`
11  `)}`)}function sp(t){if(!S)return;let{description:e="< unknown name >",op:n="< unknown op >"}=M(t),{spanId:r}=t.spanContext(),o=K(t)===t,s=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${e}" with ID ${r}`;h.log(s)}function bo(t,e,n,r=X()){let i=r&&K(r);i&&(S&&h.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[Lt]:e,[kt]:n}))}function vo(t){if(!t||t.length===0)return;let e={};return t.forEach(n=>{let r=n.attributes||{},i=r[kt],o=r[Lt];typeof i=="string"&&typeof o=="number"&&(e[n.name]={value:o,unit:i})}),e}var ap=1e3,gn=class{constructor(e={}){this._traceId=e.traceId||Ne(),this._spanId=e.spanId||Ie(),this._startTime=e.startTimestamp||J(),this._links=e.links,this._attributes={},this.setAttributes(p({[W]:"manual",[_e]:e.op},e.attributes)),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,n){}spanContext(){let{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?fo:mo}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=ft(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(ie,"custom"),this}end(e){this._endTime||(this._endTime=ft(e),sp(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[_e],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:_o(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[W],profile_id:this._attributes[or],exclusive_time:this._attributes[Qe],measurements:vo(this._events),is_segment:this._isStandaloneSpan&&K(this)===this||void 0,segment_id:this._isStandaloneSpan?K(this).spanContext().spanId:void 0,links:ho(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){S&&h.log("[Tracing] Adding an event to span:",e);let i=cp(n)?n:r||J(),o=cp(n)?{}:n||{}
11,s={name:e,time:ft(i),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=N();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===K(this)))return;if(this._isStandaloneSpan){this._sampled?dg(ip([this],e)):(S&&h.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let r=this._convertSpanToTransaction();r&&(wn(this).scope||O()).captureEvent(r)}_convertSpanToTransaction(){if(!up(M(this)))return;this._name||(S&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:n}=wn(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let o=mn(this).filter(l=>l!==this&&!pg(l)).map(l=>M(l)).filter(up),s=this._attributes[ie];delete this._attributes[zr],o.forEach(l=>{delete l.data[zr]});let a=p({contexts:{trace:Gl(this)},spans:o.length>ap?o.sort((l,d)=>
11l.start_timestamp-d.start_timestamp).slice(0,ap):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:Ae(this)},request:r},s&&{transaction_info:{source:s}}),c=vo(this._events);return c&&Object.keys(c).length&&(S&&h.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}};function cp(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function up(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function pg(t){return t instanceof gn&&t.isStandaloneSpan()}function dg(t){let e=N();if(!e)return;let n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}function lp(t,e,n=()=>{},r=()=>{}){let i;try{i=t()}catch(o){throw e(o),n(),o}return mg(i,e,n,r)}function mg(t,e,n,r){return Ye(t)?ao(t,i=>{n(),r(i)},i=>{e(i),n()}):(n(),r(t),t)}function pp(t,e,n){if(!Se(t))return[!1];let r,i;typeof t.tracesSampler=="function"?(i=t.tracesSampler(E(p({},e),{inheritOrSampleWith:a=>typeof e.parentSampleRate=="number"?e.parentSampleRate:typeof e.parentSampled=="boolean"?Number(e.parentSampled):a})),r=!0):e.parentSampled!==void 0?i=e.parentSampled:typeof t.tracesSampleRate<"u"&&(i=t.tracesSampleRate,r=!0);let o=Zt(i);if(o===void 0)return S&&h.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return S&&h.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];let s=n<o;return s||S&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,o,r]}var mp="__SENTRY_SUPPRESS_TRACING__";function Io(t,e){let n=Ta();if(n.startSpan)return n.startSpan(t,e);let r=gp(t),{forceTransaction:i,parentSpan:o,scope:s}=t,a=s?.clone();return ln(a,()=>gg(o)(()=>{let u=O(),l=hp(u,o),g=t.onlyIfParent&&!l?new xe:fp({parentSpan:l,spanArguments:r,forceTransaction:i,scope:u});return Qt(u,g),lp(()=>e(g),()=>{let{status:m}=M(g);g.isRecording()&&(!m||m==="ok")&&g.setStatus({code:2,message:"internal_error"})},()=>{g.end()})}))}function we(t){let e=Ta();if(e.startInactiveSpan)return e.startInactiveSpan(t);let n=gp(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?s=>ln(t.scope,s):i!==void 0?s=>ur(i,s):s=>s())(()=>{let s=O(),a=hp(s,i);return t.onlyIfParent&&!a?new xe:fp({parentSpan:a,spanArguments:n,forceTransaction:r,scope:s})})}function ur(t,e){let n=Ta();return n.withActiveSpan?n.withActiveSpan(t,e):ln(r=>(Qt(r,t||void 0),e(r)))}function fp({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!Se()){let s=new xe;if(n||!t){let a=p({sampled:"false",sample_rate:"0",transaction:e.name},Ae(s));cr(s,a)}return s}let i=se(),o;if(t&&!n)o=fg(t,r,e),So(t,o);else if(t){let s=Ae(t),{traceId:a,spanId:c}=t.spanContext(),u=Ve(t);o=dp(p({traceId:a,parentSpanId:c},e),r,u),cr(o,s)}else{let{traceId:s,dsc:a,parentSpanId:c,sampled:u}=p(p({},i.getPropagationContext()),r.getPropagationContext());o=dp(p({traceId:s,parentSpanId:c},e),r,u),a&&cr(o,a)}return op(o),Dl(o,r,i),o}function gp(t){let e=t.experimental||{},n=p({isStandalone:e.standalone},t);if(t.startTime){let r=p({},n);return r.startTimestamp=ft(t.startTime),delete r.startTime,r}return n}function Ta(){let t=We();return Dt(t)}function dp(t,e,n){let r=N(),i=r?.getOptions()||{},{name:o=""}=t,s={spanAttributes:p({},t.attributes),spanName:o,parentSampled:n};r?.emit("beforeSampling",s,{decision:!1});let a=s.parentSampled??n,c=s.spanAttributes,u=e.getPropagationContext(),[l,d,g]=e.getScopeData().sdkProcessingMetadata[mp]?[!1]:pp(i,{name:o,parentSampled:a,attributes:c,parentSampleRate:Zt(u.dsc?.sample_rate)},u.sampleRand),m=new gn(E(p({},t),{attributes:p({[ie]:"custom",[pn]:d!==void 0&&g?d:void 0},c),sampled:l}));return!l&&r&&(S&&h.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",m),m}function fg(t,e,n){let{spanId:r,traceId:i}=t.spanContext(),o=e.getScopeData().sdkProcessingMetadata[mp]?!1:Ve(t),s=o?new gn(E(p({},n),{parentSpanId:r,traceId:i,sampled:o})):new xe({traceId:i});So(t,s);let a=N();return a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s)),s}function hp(t,e){if(e)return e;if(e===null)return;let n=xn(t);if(!n)return;let r=N();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?K(n):n}function gg(t){return t!==void 0?e=>ur(t,e):e=>e()}var lr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},hg="heartbeatFailed",_g="idleTimeout",Sg="finalTimeout",yg="externalFinish";function Ao(t,e={}){let n=new Map,r=!1,i,o=yg,s=!e.disableAutoFinish,a=[],{idleTimeout:c=lr.idleTimeout,finalTimeout:u=lr.finalTimeout,childSpanTimeout:l=lr.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:g=!0}=e,m=N();if(!m||!Se()){let D=new xe,z=p({sample_rate:"0",sampled:"false"},Ae(D));return cr(D,z),D}let f=O(),_=X(),T=Eg(t);T.end=new Proxy(T.end,{apply(D,z,Me){if(d&&d(T),z instanceof xe)return;let[ct,...Ue]=Me,Be=ct||J(),He=ft(Be),le=mn(T).filter(F=>F!==T),zt=M(T);
11if(!le.length||!g)return Ce(He),Reflect.apply(D,z,[He,...Ue]);let y=m.getOptions().ignoreSpans,v=le?.reduce((F,U)=>{let Y=M(U);return!Y.timestamp||y&&Pn(Y,y)?F:F?Math.max(F,Y.timestamp):Y.timestamp},void 0),A=zt.start_timestamp,I=Math.min(A?A+u/1e3:1/0,Math.max(A||-1/0,Math.min(He,v||1/0)));return Ce(I),Reflect.apply(D,z,[I,...Ue])}});function L(){i&&(clearTimeout(i),i=void 0)}function q(D){L(),i=setTimeout(()=>{!r&&n.size===0&&s&&(o=_g,T.end(D))},c)}function ue(D){i=setTimeout(()=>{!r&&s&&(o=hg,T.end(D))},l)}function ae(D){L(),n.set(D,!0);let z=J();ue(z+l/1e3)}function Et(D){if(n.has(D)&&n.delete(D),n.size===0){let z=J();q(z+c/1e3)}}function Ce(D){r=!0,n.clear(),a.forEach(le=>le()),Qt(f,_);let z=M(T),{start_timestamp:Me}=z;if(!Me)return;z.data[dn]||T.setAttribute(dn,o);let Ue=z.status;(!Ue||Ue==="unknown")&&T.setStatus({code:1}),h.log(`[Tracing] Idle span "${z.op}" finished`);let Be=mn(T).filter(le=>le!==T),He=0;Be.forEach(le=>{le.isRecording()&&(le.setStatus({code:2,message:"cancelled"}),le.end(D),S&&h.log("[Tracing] Cancelling span since span ended early",JSON.stringify(le,void 0,2)));let zt=M(le),{timestamp:y=0,start_timestamp:v=0}=zt,A=v<=D,I=(u+c)/1e3,F=y-v<=I;if(S){let U=JSON.stringify(le,void 0,2);A?F||h.log("[Tracing] Discarding span since it finished after idle span final timeout",U):h.log("[Tracing] Discarding span since it happened after idle span was finished",U)}(!F||!A)&&(zl(T,le),He++)}),He>0&&T.setAttribute("sentry.idle_span_discarded_spans",He)}return a.push(m.on("spanStart",D=>{if(r||D===T||M(D).timestamp||D instanceof gn&&D.isStandaloneSpan())return;mn(T).includes(D)&&ae(D.spanContext().spanId)})),a.push(m.on("spanEnd",D=>{r||Et(D.spanContext().spanId)})),a.push(m.on("idleSpanEnableAutoFinish",D=>{D===T&&(s=!0,q(),n.size&&ue())})),e.disableAutoFinish||q(),setTimeout(()=>{r||(T.setStatus({code:2,message:"deadline_exceeded"}),o=Sg,T.end())},u),T}function Eg(t){let e=we(t);return Qt(O(),e),S&&h.log("[Tracing] Started span is an idle span"),e}var ba=0,_p=1,Sp=2;function Ft(t){return new Jr(e=>{e(t)})}function On(t){return new Jr((e,n)=>{n(t)})}var Jr=class t{constructor(e){this._state=ba,this._handlers=[],this._runExecutor(e)}then(e,n){return new t((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new t((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}_executeHandlers(){if(this._state===ba)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===_p&&n[1](this._value),this._state===Sp&&n[2](this._value),n[0]=!0)})}_runExecutor(e){let n=(o,s)=>{if(this._state===ba){if(Ye(s)){s.then(r,i);return}this._state=o,this._value=s,this._executeHandlers()}},r=o=>{n(_p,o)},i=o=>{n(Sp,o)};try{e(r,i)}catch(o){i(o)}}};function yp(t,e,n,r=0){try{let i=va(e,n,t,r);return Ye(i)?i:Ft(i)}catch(i){return On(i)}}function va(t,e,n,r){let i=n[r];if(!t||!i)return t;let o=i(p({},t),e);return S&&o===null&&h.log(`Event processor "${i.id||"?"}" dropped event`),Ye(o)?o.then(s=>va(s,e,n,r+1)):va(o,e,n,r+1)}var Dn,Ep,Tp,hn;function bp(t){let e=w._sentryDebugIds,n=w._debugIds;if(!e&&!n)return{};let r=e?Object.keys(e):[],i=n?Object.keys(n):[];if(hn&&r.length===Ep&&i.length===Tp)return hn;Ep=r.length,Tp=i.length,hn={},Dn||(Dn={});let o=(s,a)=>{for(let c of s){let u=a[c],l=Dn?.[c];if(l&&hn&&u)hn[l[0]]=u,Dn&&(Dn[c]=[l[0],u]);else if(u){let d=t(c);for(let g=d.length-1;g>=0;g--){let f=d[g]?.filename;if(f&&hn&&Dn){hn[f]=u,Dn[c]=[f,u];break}}}}};return e&&o(r,e),n&&o(i,n),hn}function Ip(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;Tg(t,e),r&&Ig(t,r),Ag(t,n),bg(t,i),vg(t,o)}function vp(t,e){let{extra:n,tags:r,attributes:i,user:o,contexts:s,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:g,propagationContext:m,transactionName:f,span:_}=e;Xr(t,"extra",n),Xr(t,"tags",r),Xr(t,"attributes",i),Xr(t,"user",o),Xr(t,"contexts",s),t.sdkProcessingMetadata=un(t.sdkProcessingMetadata,c,2),a&&(t.level=a),f&&(t.transactionName=f),_&&(t.span=_),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),l.length&&(t.fingerprint=[...t.fingerprint,...l]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),g.length&&(t.attachments=[...t.attachments,...g]),t.propagationContext=p(p({},t.propagationContext),m)}function Xr(t,e,n){t[e]=un(t[e],n,1)}function Co(t,e){let n=co().getScopeData();return t&&vp(n,t.getScopeData()),e&&vp(n,e.getScopeData()),n}function Tg(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e;Object.keys(n).length&&(t.extra=p(p({},n),t.extra)),Object.keys(r).length&&(t.tags=p(p({},r),t.tags)),Object.keys(i).length&&(t.user=p(p({},i),t.user)),Object.keys(o).length&&(t.contexts=p(p({},o),t.contexts)),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function bg(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function vg(t,e){t.sdkProcessingMetadata=p(p({},t.sdkProcessingMetadata),e)}function Ig(t,e){t.contexts=p({trace:ga(e)},t.contexts),t.sdkProcessingMetadata=p({dynamicSamplingContext:Ae(e)},t.sdkProcessingMetadata);let n=K(e),r=M(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Ag(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function Ap(t,e,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,c=E(p({},e),{event_id:e.event_id||n.event_id||he(),timestamp:e.timestamp||je()}),u=n.integrations||t.integrations.map(L=>L.name);Cg(c,t),xg(c,u),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&Rg(c,t.stackParser);
11let l=Mg(r,n.captureContext);n.mechanism&&Ot(c,n.mechanism);let d=i?i.getEventProcessors():[],g=Co(o,l),m=[...n.attachments||[],...g.attachments];m.length&&(n.attachments=m),Ip(c,g);let f=[...d,...g.eventProcessors];return(n.data&&n.data.__sentry__===!0?Ft(c):yp(f,c,n)).then(L=>(L&&Ng(L),typeof s=="number"&&s>0?wg(L,s,a):L))}function Cg(t,e){let{environment:n,release:r,dist:i,maxValueLength:o}=e;t.environment=t.environment||n||ar,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let s=t.request;s?.url&&o&&(s.url=tr(s.url,o)),o&&t.exception?.values?.forEach(a=>{a.value&&(a.value=tr(a.value,o))})}function Rg(t,e){let n=bp(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function Ng(t){let e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function xg(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function wg(t,e,n){if(!t)return null;let r=p(p(p(p(p({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>p(p({},i),i.data&&{data:Ze(i.data,e,n)}))}),t.user&&{user:Ze(t.user,e,n)}),t.contexts&&{contexts:Ze(t.contexts,e,n)}),t.extra&&{extra:Ze(t.extra,e,n)});return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Ze(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>p(p({},i),i.data&&{data:Ze(i.data,e,n)}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=Ze(t.contexts.flags,3,n)),r}function Mg(t,e){if(!e)return t;let n=t?t.clone():new De;return n.update(e),n}function Cp(t){if(t)return Pg(t)?{captureContext:t}:Dg(t)?{captureContext:t}:t}function Pg(t){return t instanceof De||typeof t=="function"}var Og=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Dg(t){return Object.keys(t).some(e=>Og.includes(e))}function pr(t,e){return O().captureException(t,Cp(e))}function Qr(t,e){return O().captureEvent(t,e)}function dr(t,e){se().setContext(t,e)}function Ro(t,e){se().setTag(t,e)}function No(t){se().setUser(t)}function xo(){return se().lastEventId()}function wo(){let t=N();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function Zr(t){let e=se(),{user:n}=Co(e,O()),{userAgent:r}=w.navigator||{},i=Il(p(p({user:n},r&&{userAgent:r}),t)),o=e.getSession();return o?.status==="ok"&&Xt(o,{status:"exited"}),Mo(),e.setSession(i),i}function Mo(){let t=se(),n=O().getSession()||t.getSession();n&&Al(n),Np(),t.setSession()}function Np(){let t=se(),e=N(),n=t.getSession();n&&e&&e.captureSession(n)}function mr(t=!1){if(t){Mo();return}Np()}var kg="7";function xp(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Lg(t){return`${xp(t)}${t.projectId}/envelope/`}function Fg(t,e){let n={sentry_version:kg};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function Ia(t,e,n){return e||`${Lg(t)}?${Fg(t,n)}`}function Aa(t,e){let n=lo(t);if(!n)return"";let r=`${xp(n)}embed/error-page/`,i=`dsn=${qe(n)}`;for(let o in e)if(o!=="dsn"&&o!=="onClose")if(o==="user"){let s=e.user;if(!s)continue;s.name&&(i+=`&name=${encodeURIComponent(s.name)}`),s.email&&(i+=`&email=${encodeURIComponent(s.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(e[o])}`;return`${r}?${i}`}var Ca=[];function Ug(t){let e={};return t.forEach(n=>{let{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function Ra(t){let e=t.defaultIntegrations||[],n=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){let i=n(e);r=Array.isArray(i)?i:[i]}else r=e;return Ug(r)}function wp(t,e){let n={};return e.forEach(r=>{r&&xa(t,r,n)}),n}function Na(t,e){for(let n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function xa(t,e,n){if(n[e.name]){S&&h.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!Ca.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),Ca.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,o)=>r(i,o,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),i=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(i)}S&&h.log(`Integration installed: ${e.name}`)}function Bg(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function Mp(t,e,n,r){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=qe(r)),et(i,[Bg(t)])}function fr(t,e){let n=e??Hg(t)??[];if(n.length===0)return;let r=t.getOptions(),i=Mp(n,r._metadata,r.tunnel,t.getDsn());Pp().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function Hg(t){return Pp().get(t)}function Pp(){return pt("clientToLogBufferMap",()=>new WeakMap)}function $g(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function Op(t,e,n,r){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=qe(r)),et(i,[$g(t)])}function ei(t,e){let n=e??Gg(t)??[];if(n.length===0)return;let r=t.getOptions(),i=Op(n,r._metadata,r.tunnel,t.getDsn());Dp().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(i)}function Gg(t){return Dp().get(t)}function Dp(){return pt("clientToMetricBufferMap",()=>new WeakMap)}function Po(t){return typeof t=="object"&&typeof t.unref=="function"&&t.unref(),t}var gr=Symbol.for("SentryBufferFullError");function kn(t=100){let e=new Set;function n(){return e.size<t}function r(s){e.delete(s)}
11function i(s){if(!n())return On(gr);let a=s();return e.add(a),a.then(()=>r(a),()=>r(a)),a}function o(s){if(!e.size)return Ft(!0);let a=Promise.allSettled(Array.from(e)).then(()=>!0);if(!s)return a;let c=[a,new Promise(u=>Po(setTimeout(()=>u(!1),s)))];return Promise.race(c)}return{get $(){return Array.from(e)},add:i,drain:o}}var Wg=60*1e3;function zg(t,e=Nn()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?Wg:r-e}function jg(t,e){return t[e]||t.all||0}function kp(t,e,n=Nn()){return jg(t,e)>n}function Lp(t,{statusCode:e,headers:n},r=Nn()){let i=p({},t),o=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(o)for(let a of o.trim().split(",")){let[c,u,,,l]=a.split(":",5),d=parseInt(c,10),g=(isNaN(d)?60:d)*1e3;if(!u)i.all=r+g;else for(let m of u.split(";"))m==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(i[m]=r+g):i[m]=r+g}else s?i.all=r+zg(s,r):e===429&&(i.all=r+60*1e3);return i}var wa=64;function Oo(t,e,n=kn(t.bufferSize||wa)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(To(s,(d,g)=>{let m=ya(g);kp(r,m)?t.recordDroppedEvent("ratelimit_backoff",m):a.push(d)}),a.length===0)return Promise.resolve({});let c=et(s[0],a),u=d=>{if(Jl(c,["client_report"])){S&&h.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}To(c,(g,m)=>{t.recordDroppedEvent(d,ya(m))})},l=()=>e({body:Xl(c)}).then(d=>d.statusCode===413?(S&&h.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),d):(S&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&h.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=Lp(r,d),d),d=>{throw u("network_error"),S&&h.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===gr)return S&&h.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:o,flush:i}}function Fp(t,e,n){let r=[{type:"client_report"},{timestamp:n||je(),discarded_events:t}];return et(e?{dsn:e}:{},[r])}function Do(t){let e=[];t.message&&e.push(t.message);try{let n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch(n){}return e}function Up(t){let{trace_id:e,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:a}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:s?.[or],exclusive_time:s?.[Qe],measurements:t.measurements,is_segment:!0}}function Bp(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:p(p(p({},t.data),t.profile_id&&{[or]:t.profile_id}),t.exclusive_time&&{[Qe]:t.exclusive_time})}},measurements:t.measurements}}var Hp="Not capturing exception because it's already been captured.",$p="Discarded session because of missing or non-string release",Vp=Symbol.for("SentryInternalError"),Kp=Symbol.for("SentryDoNotSendEventError"),qg=5e3;function ko(t){return{message:t,[Vp]:!0}}function Ma(t){return{message:t,[Kp]:!0}}function Gp(t){return!!t&&typeof t=="object"&&Vp in t}function Wp(t){return!!t&&typeof t=="object"&&Kp in t}function zp(t,e,n,r,i){let o=0,s,a=!1;t.on(n,()=>{o=0,clearTimeout(s),a=!1}),t.on(e,c=>{o+=r(c),o>=8e5?i(t):a||(a=!0,s=Po(setTimeout(()=>{i(t)},qg)))}),t.on("flush",()=>{i(t)})}var ti=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=kn(e.transportOptions?.bufferSize??wa),e.dsn?this._dsn=lo(e.dsn):S&&h.warn("No DSN provided, client will not send events."),this._dsn){let r=Ia(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(E(p({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:r}))}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&zp(this,"afterCaptureLog","flushLogs",Jg,fr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&zp(this,"afterCaptureMetric","flushMetrics",Yg,ei)}captureException(e,n,r){let i=he();if(so(e))return S&&h.log(Hp),i;let o=p({event_id:i},n);return this._process(()=>this.eventFromException(e,o).then(s=>this._captureEvent(s,o,r)).then(s=>s),"error"),o.event_id}captureMessage(e,n,r,i){let o=p({event_id:he()},r),s=In(e)?e:String(e),a=dt(e),c=a?this.eventFromMessage(s,n,o):this.eventFromException(e,o);return this._process(()=>c.then(u=>this._captureEvent(u,o,i)),a?"unknown":"error"),o.event_id}captureEvent(e,n,r){let i=he();if(n?.originalException&&so(n.originalException))return S&&h.log(Hp),i;let o=p({event_id:i},n),s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope,u=jp(e.type);return this._process(()=>this._captureEvent(e,o,a||r,c),u),o.event_id}captureSession(e){this.sendSession(e),Xt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){return te(this,null,function*(){let n=this._transport;if(!n)return!0;
11this.emit("flush");let r=yield this._isClientDoneProcessing(e),i=yield n.flush(e);return r&&i})}close(e){return te(this,null,function*(){fr(this);let n=yield this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n})}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let n=this._integrations[e.name];xa(this,e,this._integrations),n||Na(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=rp(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of n.attachments||[])r=Yl(r,Zl(i));this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",e,i))}sendSession(e){let{release:n,environment:r=ar}=this._options;if("aggregates"in e){let o=e.attrs||{};if(!o.release&&!n){S&&h.warn($p);return}o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n){S&&h.warn($p);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);let i=np(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){let i=`${e}:${n}`;S&&h.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,n){let r=this._hooks[e]=this._hooks[e]||new Set,i=(...o)=>n(...o);return r.add(i),()=>{r.delete(i)}}emit(e,...n){let r=this._hooks[e];r&&r.forEach(i=>i(...n))}sendEnvelope(e){return te(this,null,function*(){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return yield this._transport.send(e)}catch(n){return S&&h.error("Error while sending envelope:",n),{}}return S&&h.error("Transport disabled"),{}})}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=wp(this,e),Na(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",i=!1,o=n.exception?.values;if(o){i=!0,r=!1;for(let c of o)if(c.mechanism?.handled===!1){r=!0;break}}let s=e.status==="ok";(s&&e.errors===0||s&&r)&&(Xt(e,E(p({},r&&{status:"crashed"}),{errors:e.errors||Number(i||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return te(this,null,function*(){let n=0;for(;!e||n<e;){if(yield new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i){let o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),Ap(o,e,n,r,this,i).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts=p({trace:p(p({},a.contexts?.trace),ca(r))},a.contexts);let c=Yr(this,r);return a.sdkProcessingMetadata=p({dynamicSamplingContext:c},a.sdkProcessingMetadata),a})}_captureEvent(e,n={},r=O(),i=se()){return S&&Pa(e)&&h.log(`Captured error event \`${Do(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(o=>o.event_id,o=>{S&&(Wp(o)?h.log(o.message):Gp(o)?h.warn(o.message):h.warn(o))})}_processEvent(e,n,r,i){let o=this.getOptions(),{sampleRate:s}=o,a=Yp(e),c=Pa(e),l=`before send for type \`${e.type||"error"}\``,d=typeof s>"u"?void 0:Zt(s);if(c&&typeof d=="number"&&Je()>d)return this.recordDroppedEvent("sample_rate","error"),On(Ma(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let g=jp(e.type);return this._prepareEvent(e,n,r,i).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",g),Ma("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return m;let _=Kg(this,o,m,n);return Vg(_,l)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",g),a){let L=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",L)}throw Ma(`${l} returned \`null\`, will not send event.`)}let f=r.getSession()||i.getSession();if(c&&f&&this._updateSessionFromEvent(f,m),a){let T=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,L=m.spans?m.spans.length:0,q=T-L;q>0&&this.recordDroppedEvent("before_send","span",q)}let _=m.transaction_info;if(a&&_&&m.transaction!==e.transaction){let T="custom";m.transaction_info=E(p({},_),{source:T})}return this.sendEvent(m,n),m}).then(null,m=>{throw Wp(m)||Gp(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),ko(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
12Reason: ${m}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===gr&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{let[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){S&&h.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){S&&h.log("No outcomes to send");return}if(!this._dsn){S&&h.log("No dsn provided, will not send outcomes");return}S&&h.log("Sending outcomes:",e);let n=Fp(e,this._options.tunnel&&qe(this._dsn));this.sendEnvelope(n)}};function jp(t){return t==="replay_event"?"replay":t||"error"}function Vg(t,e){let n=`${e} must return \`null\` or a valid event.`;if(Ye(t))return t.then(r=>{if(!Mt(r)&&r!==null)throw ko(n);return r},r=>{throw ko(`${e} rejected with ${r}`)});if(!Mt(t)&&t!==null)throw ko(n);return t}function Kg(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s,ignoreSpans:a}=e,c=n;if(Pa(c)&&i)return i(c,r);
12if(Yp(c)){if(s||a){let u=Up(c);if(a?.length&&Pn(u,a))return null;if(s){let l=s(u);l?c=un(n,Bp(l)):Kr()}if(c.spans){let l=[],d=c.spans;for(let m of d){if(a?.length&&Pn(m,a)){Vl(d,m);continue}if(s){let f=s(m);f?l.push(f):(Kr(),l.push(m))}else l.push(m)}let g=c.spans.length-l.length;g&&t.recordDroppedEvent("before_send","span",g),c.spans=l}}if(o){if(c.spans){let u=c.spans.length;c.sdkProcessingMetadata=E(p({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:u})}return o(c,r)}}return c}function Pa(t){return t.type===void 0}function Yp(t){return t.type==="transaction"}function Yg(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+Jp(t.attributes)}function Jg(t){let e=0;return t.message&&(e+=t.message.length*2),e+Jp(t.attributes)}function Jp(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*qp(n[0]):dt(n)?e+=qp(n):e+=100}),e}function qp(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function Xg(t){return Jt(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function Lo(t){return Xg(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function Oa(t,e){e.debug===!0&&(S?h.enable():Pe(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),O().update(e.initialScope);let r=new t(e);return Da(r),r.init(),r}function Da(t){O().setClient(t)}var Qg="thismessage:/";function Fo(t){return"isRelative"in t}function ni(t,e){let n=t.indexOf("://")<=0&&t.indexOf("//")!==0,r=e??(n?Qg:void 0);try{if("canParse"in URL&&!URL.canParse(t,r))return;let i=new URL(t,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch(i){}}function ka(t){if(Fo(t))return t.pathname;let e=new URL(t);return e.search="",e.hash="",["80","443"].includes(e.port)&&(e.port=""),e.password&&(e.password="%filtered%"),e.username&&(e.username="%filtered%"),e.toString()}function gt(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let 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}}function ri(t){return t.split(/[?#]/,1)[0]}function tt(t,e=!0){if(t.startsWith("data:")){let n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=t.includes(";base64,"),o=t.indexOf(","),s="";if(e&&o!==-1){let a=t.slice(o+1);s=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${i?",base64":""}${s?`,${s}`:""}`}return t}function La(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs=E(p({},t.attrs),{ip_address:"{{auto}}"})):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function ii(t,e,n=[e],r="npm"){let i=(t._metadata=t._metadata||{}).sdk=t._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${e}`,i.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:wt})),i.version=wt)}function hr(t={}){let e=t.client||N();if(!wo()||!e)return{};let n=We(),r=Dt(n);if(r.getTraceData)return r.getTraceData(t);let i=t.scope||O(),o=t.span||X(),s=o?go(o):Zg(i),a=o?Ae(o):Yr(e,i),c=da(a);if(!po.test(s))return h.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let l={"sentry-trace":s,baggage:c};return t.propagateTraceparent&&(l.traceparent=o?Wl(o):eh(i)),l}function Zg(t){let{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return qr(e,r,n)}function eh(t){let{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return Vr(e,r,n)}var th=100;function Ut(t,e){let n=N(),r=se();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=th}=n.getOptions();if(o<=0)return;let s=je(),a=p({timestamp:s},t),c=i?Pe(()=>i(a,e)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,o))}var Xp,nh="FunctionToString",Qp=new WeakMap,rh=()=>({name:nh,setupOnce(){Xp=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Cn(this),n=Qp.has(N())&&e!==void 0?e:this;return Xp.apply(n,t)}}catch(t){}},setup(t){Qp.set(t,!0)}}),_r=rh;var ih=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],oh="EventFilters",Fa=(t={})=>{let e;return{name:oh,setup(n){let r=n.getOptions();e=Zp(t,r)},processEvent(n,r,i){if(!e){let o=i.getOptions();e=Zp(t,o)}return sh(n,e)?null:n}}},Sr=(t={})=>E(p({},Fa(t)),{name:"InboundFilters"});function Zp(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:ih],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function sh(t,e){if(t.type){if(t.type==="transaction"&&ch(t,e.ignoreTransactions))return S&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
13Event: ${Pt(t)}`),!0}else{if(ah(t,e.ignoreErrors))return S&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
14Event: ${Pt(t)}`),!0;if(dh(t))return S&&h.warn(`Event dropped due to not having an error message, error type or stacktrace.
15Event: ${Pt(t)}`),!0;if(uh(t,e.denyUrls))return S&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.
16Event: ${Pt(t)}.
17Url: ${Uo(t)}`),!0;if(!lh(t,e.allowUrls))return S&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.
18Event: ${Pt(t)}.
19Url: ${Uo(t)}`),!0}return!1}function ah(t,e){return e?.length?Do(t).some(n=>Xe(n,e)):!1}function ch(t,e){if(!e?.length)return!1;let n=t.transaction;return n?Xe(n,e):!1}function uh(t,e){if(!e?.length)return!1;let n=Uo(t);return n?Xe(n,e):!1}function lh(t,e){if(!e?.length)return!0;let n=Uo(t);return n?Xe(n,e):!0}function ph(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Uo(t){try{let n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ph(n):null}catch(e){return S&&h.error(`Cannot extract url for event ${Pt(t)}`),null}}function dh(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function Ba(t,e,n,r,i,o){if(!i.exception?.values||!o||!ze(o.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=Ua(t,e,r,o.originalException,n,i.exception.values,s,0))}function Ua(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let c=[...o];if(ze(r[i],Error)){ed(s,a,r);let u=t(e,r[i]),l=c.length;td(u,i,l,a),c=Ua(t,e,n,r[i],i,[u,...c],u,l)}
19return nd(r)&&r.errors.forEach((u,l)=>{if(ze(u,Error)){ed(s,a,r);let d=t(e,u),g=c.length;td(d,`errors[${l}]`,g,a),c=Ua(t,e,n,u,i,[d,...c],d,g)}}),c}function nd(t){return Array.isArray(t.errors)}function ed(t,e,n){t.mechanism=E(p(p({handled:!0,type:"auto.core.linked_errors"},nd(n)&&{is_exception_group:!0}),t.mechanism),{exception_id:e})}function td(t,e,n,r){t.mechanism=E(p({handled:!0},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function Ha(t){let e="console";be(e,t),ve(e,mh)}function mh(){"console"in w&&js.forEach(function(t){t in w.console&&ge(w.console,t,function(e){return Qn[t]=e,function(...n){pe("console",{args:n,level:t}),Qn[t]?.apply(w.console,n)}})})}function $a(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}var fh="Dedupe",gh=()=>{let t;return{name:fh,processEvent(e){if(e.type)return e;try{if(hh(e,t))return S&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return t=e}}},yr=gh;function hh(t,e){return e?!!(_h(t,e)||Sh(t,e)):!1}function _h(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!od(t,e)||!id(t,e))}function Sh(t,e){let n=rd(e),r=rd(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!od(t,e)||!id(t,e))}function id(t,e){let n=Zi(t),r=Zi(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function od(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(i){return!1}}function rd(t){return t.exception?.values?.[0]}var yh="ConversationId",Eh=()=>({name:yh,setup(t){t.on("spanStart",e=>{let n=O().getScopeData(),r=se().getScopeData(),i=n.conversationId||r.conversationId;i&&e.setAttribute(la,i)})}}),oi=Eh;function Ga(t,e,n,r,i){if(!t.fetchData)return;let{method:o,url:s}=t.fetchData,a=Se()&&e(s);if(t.endTimestamp){let m=t.fetchData.__span;if(!m)return;let f=r[m];f&&(a&&(vh(f,t),Th(f,t,i)),delete r[m]);return}let{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof i=="object"?i:{spanOrigin:i},l=!!X(),d=a&&l?we(Ah(s,o,c)):new xe;if(t.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(t.fetchData.url)){let m=t.args[0],f=p({},t.args[1]||{}),_=bh(m,f,Se()&&l?d:void 0,u);_&&(t.args[1]=f,f.headers=_)}let g=N();if(g){let m={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};g.emit("beforeOutgoingRequestSpan",d,m)}return d}function Th(t,e,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(t,{headers:e.response?.headers,error:e.error})}function bh(t,e,n,r){let i=hr({span:n,propagateTraceparent:r}),o=i["sentry-trace"],s=i.baggage,a=i.traceparent;if(!o)return;let c=e.headers||($r(t)?t.headers:void 0);if(c)if(Ih(c)){let u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",o),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),s){let l=u.get("baggage");l?Bo(l)||u.set("baggage",`${l},${s}`):u.set("baggage",s)}return u}else if(Array.isArray(c)){let u=[...c];c.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",o]),r&&a&&!c.find(d=>d[0]==="traceparent")&&u.push(["traceparent",a]);let l=c.find(d=>d[0]==="baggage"&&Bo(d[1]));return s&&!l&&u.push(["baggage",s]),u}else{let u="sentry-trace"in c?c["sentry-trace"]:void 0,l="traceparent"in c?c.traceparent:void 0,d="baggage"in c?c.baggage:void 0,g=d?Array.isArray(d)?[...d]:[d]:[],m=d&&(Array.isArray(d)?d.find(_=>Bo(_)):Bo(d));s&&!m&&g.push(s);let f=E(p({},c),{"sentry-trace":u??o,baggage:g.length>0?g.join(","):void 0});return r&&a&&!l&&(f.traceparent=a),f}else return p({},i)}function vh(t,e){if(e.response){sr(t,e.response.status);let n=e.response?.headers?.get("content-length");if(n){let r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus({code:2,message:"internal_error"});t.end()}function Bo(t){return t.split(",").some(e=>e.trim().startsWith(jr))}function Ih(t){return typeof Headers<"u"&&ze(t,Headers)}function Ah(t,e,n){if(t.startsWith("data:")){let o=tt(t);return{name:`${e} ${o}`,attributes:sd(t,void 0,e,n)}}let r=ni(t),i=r?ka(r):t;return{name:`${e} ${i}`,attributes:sd(t,r,e,n)}}
19function sd(t,e,n,r){let i={url:tt(t),type:"fetch","http.method":n,[W]:r,[_e]:"http.client"};return e&&(Fo(e)||(i["http.url"]=tt(e.href),i["server.address"]=e.host),e.search&&(i["http.query"]=e.search),e.hash&&(i["http.fragment"]=e.hash)),i}function Ho(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}var si=w;function Wa(){return"history"in si&&!!si.history}function Ch(){if(!("fetch"in si))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch(t){return!1}}function ai(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function za(){if(typeof EdgeRuntime=="string")return!0;if(!Ch())return!1;if(ai(si.fetch))return!0;let t=!1,e=si.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=ai(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){S&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function ci(t,e){let n="fetch";be(n,t),ve(n,()=>cd(void 0,e))}function ja(t){let e="fetch-body-resolved";be(e,t),ve(e,()=>cd(Nh))}function cd(t,e=!1){e&&!za()||ge(w,"fetch",function(n){return function(...r){let i=new Error,{method:o,url:s}=xh(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:J()*1e3,virtualError:i,headers:wh(r)};return t||pe("fetch",p({},a)),n.apply(w,r).then(c=>te(null,null,function*(){return t?t(c):pe("fetch",E(p({},a),{endTimestamp:J()*1e3,response:c})),c}),c=>{pe("fetch",E(p({},a),{endTimestamp:J()*1e3,error:c})),Jt(c)&&c.stack===void 0&&(c.stack=i.stack,re(c,"framesToPop",1));let l=N()?.getOptions().enhanceFetchErrorMessages??"always";if(l!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{let m=new URL(a.fetchData.url).host;l==="always"?c.message=`${c.message} (${m})`:re(c,"__sentry_fetch_url_host__",m)}catch(g){}throw c})}})}function Rh(t,e){return te(this,null,function*(){if(t?.body){let n=t.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),o=!0;for(;o;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:a}=yield r.read();clearTimeout(s),a&&(e(),o=!1)}catch(a){o=!1}finally{clearTimeout(s)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}})}function Nh(t){let e;try{e=t.clone()}catch(n){return}Rh(e,()=>{pe("fetch-body-resolved",{endTimestamp:J()*1e3,response:t})})}function $o(t,e){return!!t&&typeof t=="object"&&!!t[e]}function ad(t){return typeof t=="string"?t:t?$o(t,"url")?t.url:t.toString?t.toString():"":""}function xh(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:ad(n),method:$o(r,"method")?String(r.method).toUpperCase():$r(n)&&$o(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:ad(e),method:$o(e,"method")?String(e.method).toUpperCase():"GET"}}function wh(t){let[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if($r(e))return new Headers(e.headers)}catch(r){}}function qa(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Va(){return"npm"}function ud(){return!qa()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ka(){return typeof window<"u"&&(!ud()||Mh())}function Mh(){return w.process?.type==="renderer"}var P=w,Ya=0;function Ja(){return Ya>0}function Kh(){Ya++,setTimeout(()=>{Ya--})}function Ln(t,e={}){function n(i){return typeof i=="function"}if(!n(t))return t;try{let i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(Cn(t))return t}catch(i){return t}let r=function(...i){try{let o=i.map(s=>Ln(s,e));return t.apply(this,o)}catch(o){throw Kh(),ln(s=>{s.addEventProcessor(a=>(e.mechanism&&(rr(a,void 0,void 0),Ot(a,e.mechanism)),a.extra=E(p({},a.extra),{arguments:i}),a)),pr(o)}),o}};try{for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch(i){}ro(r,t),re(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(i){}return r}function li(){let t=mt(),{referrer:e}=P.document||{},{userAgent:n}=P.navigator||{},r=p(p({},e&&{Referer:e}),n&&{"User-Agent":n});return{url:t,headers:r}}function Go(t,e){let n=Za(t,e),r={type:Zh(e),value:e_(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Yh(t,e,n,r){let o=N()?.getOptions().normalizeDepth,s=r_(e),a={__serialized__:Eo(e,o)};if(s)return{exception:{values:[Go(t,s)]},extra:a};let c={exception:{values:[{type:An(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:t_(e,{isUnhandledRejection:r})}]},extra:a};if(n){let u=Za(t,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Xa(t,e){return{exception:{values:[Go(t,e)]}}}function Za(t,e){let n=e.stacktrace||e.stack||"",r=Xh(e),i=Qh(e);try{return t(n,r,i)}catch(o){}return[]}var Jh=/Minified React error #\d+;/i;function Xh(t){return t&&Jh.test(t.message)?1:0}function Qh(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function ld(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Zh(t){let e=t?.name;return!e&&ld(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function e_(t){let e=t?.message;return ld(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?Lo(e.error):Lo(t):"No error message"}function pd(t,e,n,r){let i=n?.syntheticException||void 0,o=Wo(t,e,i,r);return Ot(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),Ft(o)}function dd(t,e,n="info",r,i){let o=r?.syntheticException||void 0,s=Qa(t,e,o,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Ft(s)}function Wo(t,e,n,r,i){let o;if(Br(e)&&e.error)return Xa(t,e.error);if(no(e)||Qs(e)){let s=e;if("stack"in e)o=Xa(t,e);else{let a=s.name||(no(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;o=Qa(t,c,n,r),rr(o,c)}return"code"in s&&(o.tags=E(p({},o.tags),{"DOMException.code":`${s.code}`})),o}return Jt(e)?Xa(t,e):Mt(e)||An(e)?(o=Yh(t,e,n,i),Ot(o,{synthetic:!0}),o):(o=Qa(t,e,n,r),rr(o,`${e}`,void 0),Ot(o,{synthetic:!0}),o)}function Qa(t,e,n,r){let i={};if(r&&n){let o=Za(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]}),Ot(i,{synthetic:!0})}
19if(In(e)){let{__sentry_template_string__:o,__sentry_template_values__:s}=e;return i.logentry={message:o,params:s},i}return i.message=e,i}function t_(t,{isUnhandledRejection:e}){let n=ra(t),r=e?"promise rejection":"exception";return Br(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:An(t)?`Event \`${n_(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function n_(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(e){}}function r_(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}var zo=class extends ti{constructor(e){let n=i_(e),r=P.SENTRY_SDK_SOURCE||Va();ii(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings=p({infer_ip:n.sendDefaultPii?"auto":"never"},n._metadata.sdk.settings)),super(n);let{sendDefaultPii:i,sendClientReports:o,enableLogs:s,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;P.document&&(o||s||u)&&P.document.addEventListener("visibilitychange",()=>{P.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),s&&fr(this),u&&ei(this))}),i&&this.on("beforeSendSession",La)}eventFromException(e,n){return pd(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return dd(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,i)}};function i_(t){return p({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:P.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},t)}var Bt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var R=w;var o_=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",Ht=(t,e,n,r)=>{let i,o;return s=>{e.value>=0&&(s||r)&&(o=e.value-(i??0),(o||i===void 0)&&(i=e.value,e.delta=o,e.rating=o_(e.value,n),t(e)))}};var en=(t=!0)=>{let e=R.performance?.getEntriesByType?.("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e};var nt=()=>en()?.activationStart??0;function rt(t,e,n){R.document&&R.addEventListener(t,e,n)}function Fn(t,e,n){R.document&&R.removeEventListener(t,e,n)}var Er=-1,md=new Set,s_=()=>R.document?.visibilityState==="hidden"&&!R.document?.prerendering?0:1/0,jo=t=>{if(a_(t)&&Er>-1){if(t.type==="visibilitychange"||t.type==="pagehide")for(let e of md)e();isFinite(Er)||(Er=t.type==="visibilitychange"?t.timeStamp:0,Fn("prerenderingchange",jo,!0))}},$t=()=>{if(R.document&&Er<0){let t=nt();Er=(R.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>t)[0]?.startTime)??s_(),rt("visibilitychange",jo,!0),rt("pagehide",jo,!0),rt("prerenderingchange",jo,!0)}return{get firstHiddenTime(){return Er},onHidden(t){md.add(t)}}};function a_(t){return t.type==="pagehide"||R.document?.visibilityState==="hidden"}var fd=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`;var Gt=(t,e=-1)=>{let n=en(),r="navigate";return n&&(R.document?.prerendering||nt()>0?r="prerender":R.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:fd(),navigationType:r}};var ec=new WeakMap;function Tr(t,e){try{return ec.get(t)||ec.set(t,new e),ec.get(t)}catch(n){return new e}}var qo=class t{constructor(){t.prototype.__init.call(this),t.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}};var it=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){let r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{e(i.getEntries())})});return r.observe(p({type:t,buffered:!0},n)),r}}catch(r){}};var br=t=>{let e=!1;return()=>{e||(t(),e=!0)}};var Sn=t=>{R.document?.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()};
19var c_=[1800,3e3],gd=(t,e={})=>{Sn(()=>{let n=$t(),r=Gt("FCP"),i,s=it("paint",a=>{for(let c of a)c.name==="first-contentful-paint"&&(s.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-nt(),0),r.entries.push(c),i(!0)))});s&&(i=Ht(t,r,c_,e.reportAllChanges))})};var u_=[.1,.25],hd=(t,e={})=>{gd(br(()=>{let n=Gt("CLS",0),r,i=$t(),o=Tr(e,qo),s=c=>{for(let u of c)o._processEntry(u);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=it("layout-shift",s);a&&(r=Ht(t,n,u_,e.reportAllChanges),i.onHidden(()=>{s(a.takeRecords()),r(!0)}),R?.setTimeout?.(r))}))};var _d=0,tc=1/0,Vo=0,l_=t=>{t.forEach(e=>{e.interactionId&&(tc=Math.min(tc,e.interactionId),Vo=Math.max(Vo,e.interactionId),_d=Vo?(Vo-tc)/7+1:0)})},nc,rc=()=>nc?_d:performance.interactionCount||0,Sd=()=>{"interactionCount"in performance||nc||(nc=it("event",l_,{type:"event",buffered:!0,durationThreshold:0}))};var ic=10,yd=0,p_=()=>rc()-yd,Ko=class t{constructor(){t.prototype.__init.call(this),t.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){yd=rc(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(p_()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType==="first-input"))return;let n=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<ic||e.duration>n._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,o)=>o._latency-i._latency),this._longestInteractionList.length>ic){let i=this._longestInteractionList.splice(ic);for(let o of i)this._longestInteractionMap.delete(o.id)}this._onAfterProcessingINPCandidate?.(r)}}};var Yo=t=>{let e=R.requestIdleCallback||R.setTimeout;R.document?.visibilityState==="hidden"?t():(t=br(t),rt("visibilitychange",t,{once:!0,capture:!0}),rt("pagehide",t,{once:!0,capture:!0}),e(()=>{t(),Fn("visibilitychange",t,{capture:!0}),Fn("pagehide",t,{capture:!0})}))};var d_=[200,500],m_=40,Ed=(t,e={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=$t();Sn(()=>{Sd();let r=Gt("INP"),i,o=Tr(e,Ko),s=c=>{Yo(()=>{for(let l of c)o._processEntry(l);let u=o._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,i())})},a=it("event",s,{durationThreshold:e.durationThreshold??m_});i=Ht(t,r,d_,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(a.takeRecords()),i(!0)}))})};var Jo=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}};var f_=[2500,4e3],Td=(t,e={})=>{Sn(()=>{let n=$t(),r=Gt("LCP"),i,o=Tr(e,Jo),s=c=>{e.reportAllChanges||(c=c.slice(-1));for(let u of c)o._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-nt(),0),r.entries=[u],i())},a=it("largest-contentful-paint",s);if(a){i=Ht(t,r,f_,e.reportAllChanges);let c=br(()=>{s(a.takeRecords()),a.disconnect(),i(!0)}),u=l=>{l.isTrusted&&(Yo(c),Fn(l.type,u,{capture:!0}))};for(let l of["keydown","click","visibilitychange"])rt(l,u,{capture:!0})}})};var g_=[800,1800],oc=t=>{R.document?.prerendering?Sn(()=>oc(t)):R.document?.readyState!=="complete"?addEventListener("load",()=>oc(t),!0):setTimeout(t)},bd=(t,e={})=>{let n=Gt("TTFB"),r=Ht(t,n,g_,e.reportAllChanges);oc(()=>{let i=en();i&&(n.value=Math.max(i.responseStart-nt(),0),n.entries=[i],r(!0))})};var pi={},Xo={},vd,Id,Ad,Cd;function di(t,e=!1){return Qo("cls",t,h_,vd,e)}function mi(t,e=!1){return Qo("lcp",t,__,Id,e)}function sc(t){return Qo("ttfb",t,S_,Ad)}function ac(t){return Qo("inp",t,y_,Cd)}function ht(t,e){return Rd(t,e),Xo[t]||(E_(t),Xo[t]=!0),Nd(t,e)}function fi(t,e){let n=pi[t];if(n?.length)for(let r of n)try{r(e)}catch(i){Bt&&h.error(`Error while triggering instrumentation handler.
20Type: ${t}
21Name: ${Oe(r)}
22Error:`,i)}}function h_(){return hd(t=>{fi("cls",{metric:t}),vd=t},{reportAllChanges:!0})}function __(){return Td(t=>{fi("lcp",{metric:t}),Id=t},{reportAllChanges:!0})}function S_(){return bd(t=>{fi("ttfb",{metric:t}),Ad=t})}function y_(){return Ed(t=>{fi("inp",{metric:t}),Cd=t})}function Qo(t,e,n,r,i=!1){Rd(t,e);let o;return Xo[t]||(o=n(),Xo[t]=!0),r&&e({metric:r}),Nd(t,e,i?o:void 0)}function E_(t){let e={};t==="event"&&(e.durationThreshold=0),it(t,n=>
22{fi(t,{entries:n})},e)}function Rd(t,e){pi[t]=pi[t]||[],pi[t].push(e)}function Nd(t,e,n){return()=>{n&&n();let r=pi[t];if(!r)return;let i=r.indexOf(e);i!==-1&&r.splice(i,1)}}function xd(t){return"duration"in t}var wd=t=>{let e=n=>{(n.type==="pagehide"||R.document?.visibilityState==="hidden")&&t(n)};rt("visibilitychange",e,{capture:!0,once:!0}),rt("pagehide",e,{capture:!0,once:!0})};function Zo(t){return typeof t=="number"&&isFinite(t)}function tn(t,e,n,i){var r=zn(i,[]);let o=M(t).start_timestamp;return o&&o>e&&typeof t.updateStartTime=="function"&&t.updateStartTime(e),ur(t,()=>{let s=we(p({startTime:e},r));return s&&s.end(n),s})}function vr(t){let e=N();if(!e)return;let{name:n,transaction:r,attributes:i,startTime:o}=t,{release:s,environment:a,sendDefaultPii:c}=e.getOptions(),l=e.getIntegrationByName("Replay")?.getReplayId(),d=O(),g=d.getUser(),m=g!==void 0?g.email||g.id||g.ip_address:void 0,f;try{f=d.getScopeData().contexts.profile.profile_id}catch(T){}let _=p({release:s,environment:a,user:m||void 0,profile_id:f||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":R.navigator?.userAgent,"client.address":c?"{{auto}}":void 0},i);return we({name:n,attributes:_,startTime:o,experimental:{standalone:!0}})}function nn(){return R.addEventListener&&R.performance}function Q(t){return t/1e3}function Md(t){let e="unknown",n="unknown",r="";for(let i of t){if(i==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}function es(t){try{return PerformanceObserver.supportedEntryTypes.includes(t)}catch(e){return!1}}function ts(t,e){let n,r=!1;function i(a){!r&&n&&e(a,n),r=!0}wd(()=>{i("pagehide")});let o=t.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(i("navigation"),o(),s())}),s=t.on("afterStartPageLoadSpan",a=>{n=a.spanContext().spanId,s()})}function Pd(t){let e=0,n;if(!es("layout-shift"))return;let r=di(({metric:i})=>{let o=i.entries[i.entries.length-1];o&&(e=i.value,n=o)},!0);ts(t,(i,o)=>{T_(e,n,o,i),r()})}function T_(t,e,n,r){Bt&&h.log(`Sending CLS span (${t})`);let i=e?Q((ce()||0)+e.startTime):J(),o=O().getScopeData().transactionName,s=e?fe(e.sources[0]?.node):"Layout shift",a={[W]:"auto.http.browser.cls",[_e]:"ui.webvital.cls",[Qe]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};e?.sources&&e.sources.forEach((u,l)=>{a[`cls.source.${l+1}`]=fe(u.node)});let c=vr({name:s,transaction:o,attributes:a,startTime:i});c&&(c.addEvent("cls",{[kt]:"",[Lt]:t}),c.end(i))}function Od(t){let e=0,n;if(!es("largest-contentful-paint"))return;let r=mi(({metric:i})=>{let o=i.entries[i.entries.length-1];o&&(e=i.value,n=o)},!0);ts(t,(i,o)=>{b_(e,n,o,i),r()})}function b_(t,e,n,r){Bt&&h.log(`Sending LCP span (${t})`);let i=Q((ce()||0)+(e?.startTime||0)),o=O().getScopeData().transactionName,s=e?fe(e.element):"Largest contentful paint",a={[W]:"auto.http.browser.lcp",[_e]:"ui.webvital.lcp",[Qe]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};e&&(e.element&&(a["lcp.element"]=fe(e.element)),e.id&&(a["lcp.id"]=e.id),e.url&&(a["lcp.url"]=e.url),e.loadTime!=null&&(a["lcp.loadTime"]=e.loadTime),e.renderTime!=null&&(a["lcp.renderTime"]=e.renderTime),e.size!=null&&(a["lcp.size"]=e.size));let c=vr({name:s,transaction:o,attributes:a,startTime:i});c&&(c.addEvent("lcp",{[kt]:"millisecond",[Lt]:t}),c.end(i))}function ot(t){return t&&((ce()||performance.timeOrigin)+t)/1e3}function gi(t){let e={};if(t.nextHopProtocol!=null){let{name:n,version:r}=Md(t.nextHopProtocol);e["network.protocol.version"]=r,e["network.protocol.name"]=n}return ce()||nn()?.timeOrigin?v_(E(p({},e),{"http.request.redirect_start":ot(t.redirectStart),"http.request.redirect_end":ot(t.redirectEnd),"http.request.worker_start":ot(t.workerStart),"http.request.fetch_start":ot(t.fetchStart),"http.request.domain_lookup_start":ot(t.domainLookupStart),"http.request.domain_lookup_end":ot(t.domainLookupEnd),"http.request.connect_start":ot(t.connectStart),"http.request.secure_connection_start":ot(t.secureConnectionStart),"http.request.connection_end":ot(t.connectEnd),"http.request.request_start":ot(t.requestStart),"http.request.response_start":ot(t.responseStart),"http.request.response_end":ot(t.responseEnd),"http.request.time_to_first_byte":t.responseStart!=null?t.responseStart/1e3:void 0})):e}function v_(t){return Object.fromEntries(Object.entries(t).filter(([,e])=>e!=null))}var I_=2147483647,Dd=0,_t={},ke,rs;function cc({recordClsStandaloneSpans:t,recordLcpStandaloneSpans:e,client:n}){let r=nn();if(r&&ce()){r.mark&&R.performance.mark("sentry-tracing-init");let i=e?Od(n):C_(),o=R_(),s=t?Pd(n):A_();return()=>{i?.(),o(),s?.()}}return()=>{}}function uc(){ht("longtask",({entries:t})=>{let e=X();if(!e)return;let{op:n,start_timestamp:r}=M(e);for(let i of t){let o=Q(ce()+i.startTime),s=Q(i.duration);n==="navigation"&&r&&o<r||tn(e,o,o+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[W]:"auto.ui.browser.metrics"}})}})}function lc(){new PerformanceObserver(e=>{let n=X();if(n)for(let r of e.getEntries()){if(!r.scripts[0])continue;let i=Q(ce()+r.startTime),{start_timestamp:o,op:s}=M(n);if(s==="navigation"&&o&&i<o)continue;let a=Q(r.duration),c={[W]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:l,invokerType:d,sourceURL:g,sourceFunctionName:m,sourceCharPosition:f}=u;c["browser.script.invoker"]=l,c["browser.script.invoker_type"]=d,g&&(c["code.filepath"]=g),m&&(c["code.function"]=m),f!==-1&&(c["browser.script.source_char_position"]=f),tn(n,i,i+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function pc(){ht("event",({entries:t})=>{let e=X();if(e){for(let n of t)if(n.name==="click"){let r=Q(ce()+n.startTime),i=Q(n.duration),o={name:fe(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[W]:"auto.ui.browser.metrics"}},s=Gr(n.target);s&&(o.attributes["ui.component_name"]=s),tn(e,r,r+i,o)}}})}
22function A_(){return di(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(_t.cls={value:t.value,unit:""},rs=e)},!0)}function C_(){return mi(({metric:t})=>{let e=t.entries[t.entries.length-1];e&&(_t.lcp={value:t.value,unit:"millisecond"},ke=e)},!0)}function R_(){return sc(({metric:t})=>{t.entries[t.entries.length-1]&&(_t.ttfb={value:t.value,unit:"millisecond"})})}function dc(t,e){let n=nn(),r=ce();if(!n?.getEntries||!r)return;let i=Q(r),o=n.getEntries(),{op:s,start_timestamp:a}=M(t);o.slice(Dd).forEach(c=>{let u=Q(c.startTime),l=Q(Math.max(0,c.duration));if(!(s==="navigation"&&a&&i+u<a))switch(c.entryType){case"navigation":{M_(t,c,i);break}case"mark":case"paint":case"measure":{x_(t,c,u,l,i,e.ignorePerformanceApiSpans);let d=$t(),g=c.startTime<d.firstHiddenTime;c.name==="first-paint"&&g&&(_t.fp={value:c.startTime,unit:"millisecond"}),c.name==="first-contentful-paint"&&g&&(_t.fcp={value:c.startTime,unit:"millisecond"});break}case"resource":{D_(t,c,c.name,u,l,i,e.ignoreResourceSpans);break}}}),Dd=Math.max(o.length-1,0),k_(t),s==="pageload"&&(U_(_t),e.recordClsOnPageloadSpan||delete _t.cls,e.recordLcpOnPageloadSpan||delete _t.lcp,Object.entries(_t).forEach(([c,u])=>{bo(c,u.value,u.unit)}),t.setAttribute("performance.timeOrigin",i),t.setAttribute("performance.activationStart",nt()),L_(t,e)),ke=void 0,rs=void 0,_t={}}function N_(t){if(t?.entryType==="measure")try{return t.detail.devtools.track==="Components \u269B"}catch(e){return}}function x_(t,e,n,r,i,o){if(N_(e)||["mark","measure"].includes(e.entryType)&&Xe(e.name,o))return;let s=en(!1),a=Q(s?s.requestStart:0),c=i+Math.max(n,a),u=i+n,l=u+r,d={[W]:"auto.resource.browser.metrics"};c!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c),w_(d,e),c<=l&&tn(t,c,l,{name:e.name,op:e.entryType,attributes:d})}function w_(t,e){try{let n=e.detail;if(!n)return;if(typeof n=="object"){for(let[r,i]of Object.entries(n))if(i&&dt(i))t[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{t[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch(o){}return}if(dt(n)){t["sentry.browser.measure.detail"]=n;return}try{t["sentry.browser.measure.detail"]=JSON.stringify(n)}catch(r){}}catch(n){}}function M_(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ns(t,e,r,n)}),ns(t,e,"secureConnection",n,"TLS/SSL"),ns(t,e,"fetch",n,"cache"),ns(t,e,"domainLookup",n,"DNS"),O_(t,e,n)}function ns(t,e,n,r,i=n){let o=P_(n),s=e[o],a=e[`${n}Start`];!a||!s||tn(t,r+Q(a),r+Q(s),{op:`browser.${i}`,name:e.name,attributes:p({[W]:"auto.ui.browser.metrics"},n==="redirect"&&e.redirectCount!=null?{"http.redirect_count":e.redirectCount}:{})})}function P_(t){return t==="secureConnection"?"connectEnd":t==="fetch"?"domainLookupStart":`${t}End`}function O_(t,e,n){let r=n+Q(e.requestStart),i=n+Q(e.responseEnd),o=n+Q(e.responseStart);e.responseEnd&&(tn(t,r,i,{op:"browser.request",name:e.name,attributes:{[W]:"auto.ui.browser.metrics"}}),tn(t,o,i,{op:"browser.response",name:e.name,attributes:{[W]:"auto.ui.browser.metrics"}}))}function D_(t,e,n,r,i,o,s){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;let a=e.initiatorType?`resource.${e.initiatorType}`:"resource.other";if(s?.includes(a))return;let c={[W]:"auto.resource.browser.metrics"},u=gt(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(R.location.origin),F_(e,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);let l=p(p({},c),gi(e)),d=o+r,g=d+i;tn(t,d,g,{name:n.replace(R.location.origin,""),op:a,attributes:l})}function k_(t){let e=R.navigator;if(!e)return;let n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),Zo(n.rtt)&&(_t["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Zo(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),Zo(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}function L_(t,e){ke&&e.recordLcpOnPageloadSpan&&(ke.element&&t.setAttribute("lcp.element",fe(ke.element)),ke.id&&t.setAttribute("lcp.id",ke.id),ke.url&&t.setAttribute("lcp.url",ke.url.trim().slice(0,200)),ke.loadTime!=null&&t.setAttribute("lcp.loadTime",ke.loadTime),ke.renderTime!=null&&t.setAttribute("lcp.renderTime",ke.renderTime),t.setAttribute("lcp.size",ke.size)),rs?.sources&&e.recordClsOnPageloadSpan&&rs.sources.forEac
22h((n,r)=>t.setAttribute(`cls.source.${r+1}`,fe(n.node)))}function F_(t,e,n){n.forEach(([r,i])=>{let o=t[r];o!=null&&(typeof o=="number"&&o<I_||typeof o=="string")&&(e[i]=o)})}function U_(t){let e=en(!1);if(!e)return;let{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function mc(){return nn()&&ce()?ht("element",B_):()=>{}}var B_=({entries:t})=>{let e=X(),n=e?K(e):void 0,r=n?M(n).description:O().getScopeData().transactionName;t.forEach(i=>{let o=i;if(!o.identifier)return;let s=o.name,a=o.renderTime,c=o.loadTime,[u,l]=c?[Q(c),"load-time"]:a?[Q(a),"render-time"]:[J(),"entry-emission"],d=s==="image-paint"?Q(Math.max(0,(a??0)-(c??0))):0,g={[W]:"auto.ui.browser.elementtiming",[_e]:"ui.elementtiming",[ie]:"component","sentry.span_start_time_source":l,"sentry.transaction_name":r,"element.id":o.id,"element.type":o.element?.tagName?.toLowerCase()||"unknown","element.size":o.naturalWidth&&o.naturalHeight?`${o.naturalWidth}x${o.naturalHeight}`:void 0,"element.render_time":a,"element.load_time":c,"element.url":o.url||void 0,"element.identifier":o.identifier,"element.paint_type":s};Io({name:`element[${o.identifier}]`,attributes:g,startTime:u,onlyIfParent:!0},m=>{m.end(u+d)})})};var H_=1e3,kd,fc,gc;function hc(t){be("dom",t),ve("dom",$_)}function $_(){if(!R.document)return;let t=pe.bind(null,"dom"),e=Ld(t,!0);R.document.addEventListener("click",e,!1),R.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let i=R[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(ge(i,"addEventListener",function(o){return function(s,a,c){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=u[s]=u[s]||{refCount:0};if(!l.handler){let d=Ld(t);l.handler=d,o.call(this,s,d,c)}l.refCount++}catch(u){}return o.call(this,s,a,c)}}),ge(i,"removeEventListener",function(o){return function(s,a,c){if(s==="click"||s=="keypress")try{let u=this.__sentry_instrumentation_handlers__||{},l=u[s];l&&(l.refCount--,l.refCount<=0&&(o.call(this,s,l.handler,c),l.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch(u){}return o.call(this,s,a,c)}}))})}function G_(t){if(t.type!==fc)return!1;try{if(!t.target||t.target._sentryId!==gc)return!1}catch(e){}return!0}function W_(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Ld(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=z_(n);if(W_(n.type,r))return;re(n,"_sentryCaptured",!0),r&&!r._sentryId&&re(r,"_sentryId",he());
22let i=n.type==="keypress"?"input":n.type;G_(n)||(t({event:n,name:i,global:e}),fc=n.type,gc=r?r._sentryId:void 0),clearTimeout(kd),kd=R.setTimeout(()=>{gc=void 0,fc=void 0},H_)}}function z_(t){try{return t.target}catch(e){return null}}var is;function Un(t){let e="history";be(e,t),ve(e,j_)}function j_(){if(R.addEventListener("popstate",()=>{let e=R.location.href,n=is;if(is=e,n===e)return;pe("history",{from:n,to:e})}),!Wa())return;function t(e){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let i=is,o=q_(String(r));if(is=o,i===o)return e.apply(this,n);pe("history",{from:i,to:o})}return e.apply(this,n)}}ge(R.history,"pushState",t),ge(R.history,"replaceState",t)}function q_(t){try{return new URL(t,R.location.origin).toString()}catch(e){return t}}var os={};function _c(t){let e=os[t];if(e)return e;let n=R[t];if(ai(n))return os[t]=n.bind(R);let r=R.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o?.[t]&&(n=o[t]),r.head.removeChild(i)}catch(i){Bt&&h.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(os[t]=n.bind(R))}function Sc(t){os[t]=void 0}var rn="__sentry_xhr_v3__";function hi(t){be("xhr",t),ve("xhr",V_)}function V_(){if(!R.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let i=new Error,o=J()*1e3,s=me(r[0])?r[0].toUpperCase():void 0,a=K_(r[1]);if(!s||!a)return e.apply(n,r);n[rn]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let c=()=>{let u=n[rn];if(u&&n.readyState===4){try{u.status_code=n.status}catch(d){}let l={endTimestamp:J()*1e3,startTimestamp:o,xhr:n,virtualError:i};pe("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,d){return c(),u.apply(l,d)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,d){let[g,m]=d,f=l[rn];return f&&me(g)&&me(m)&&(f.request_headers[g.toLowerCase()]=m),u.apply(l,d)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){let i=n[rn];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);let o={startTimestamp:J()*1e3,xhr:n};return pe("xhr",o),e.apply(n,r)}})}function K_(t){if(me(t))return t;try{return t.toString()}catch(e){}}function yc(t){let e;try{e=t.getAllResponseHeaders()}catch(n){return Bt&&h.error(n,"Failed to get xhr response headers",t),{}}return e?e.split(`\r
23`).reduce((n,r)=>{let[i,o]=r.split(": ");return o&&(n[i.toLowerCase()]=o),n},{}):{}}var Ec=[],ss=new Map,Ir=new Map,Y_=60;function bc(){if(nn()&&ce()){let e=J_();return()=>{e()}}return()=>{}}var Tc={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 J_(){return ac(X_)}var X_=({metric:t})=>{if(t.value==null)return;let e=Q(t.value);if(e>Y_)return;let n=t.entries.find(f=>f.duration===t.value&&Tc[f.name]);if(!n)return;let{interactionId:r}=n,i=Tc[n.name],o=Q(ce()+n.startTime),s=X(),a=s?K(s):void 0,c=r!=null?ss.get(r):void 0,u=c?.span||a,l=u?M(u).description:O().getScopeData().transactionName,d=c?.elementName||fe(n.target),g={[W]:"auto.http.browser.inp",[_e]:`ui.interaction.${i}`,[Qe]:n.duration},m=vr({name:d,transaction:l,attributes:g,startTime:o});m&&(m.addEvent("inp",{[kt]:"millisecond",[Lt]:t.value}),m.end(o+e))};function vc(){let t=Object.keys(Tc);Ka()&&t.forEach(i=>{R.addEventListener(i,e,{capture:!0,passive:!0})});function e(i){let o=i.target;if(!o)return;let s=fe(o),a=Math.round(i.timeStamp);if(Ir.set(a,s),Ir.size>50){let c=Ir.keys().next().value;c!==void 0&&Ir.delete(c)}}function n(i){let o=Math.round(i.startTime),s=Ir.get(o);if(!s)for(let a=-5;a<=5;a++){let c=Ir.get(o+a);if(c){s=c;break}}return s||"<unknown>"}let r=({entries:i})=>{let o=X(),s=o&&K(o);
23i.forEach(a=>{if(!xd(a))return;let c=a.interactionId;if(c==null||ss.has(c))return;let u=a.target?fe(a.target):n(a);if(Ec.length>10){let l=Ec.shift();ss.delete(l)}Ec.push(c),ss.set(c,{span:s,elementName:u})})};ht("event",r),ht("first-input",r)}var Q_=40;function Fd(t,e=_c("fetch")){let n=0,r=0;function i(o){return te(this,null,function*(){let s=o.body.length;n+=s,r++;let a=p({body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);try{let c=yield e(t.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Sc("fetch"),c}finally{n-=s,r--}})}return Oo(t,i,kn(t.bufferSize||Q_))}var oe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Z_=30;var eS=50;function Ic(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?"?":e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var tS=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nS=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rS=/\((\S*)(?::(\d+))(?::(\d+))\)/,iS=/at (.+?) ?\(data:(.+?),/,oS=t=>{let e=t.match(iS);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};let n=tS.exec(t);if(n){let[,i,o,s]=n;return Ic(i,"?",+o,+s)}let r=nS.exec(t);if(r){if(r[2]?.indexOf("eval")===0){let a=rS.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}let[o,s]=Bd(r[1]||"?",r[2]);return Ic(s,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},sS=[Z_,oS],aS=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,uS=t=>{let e=aS.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let o=cS.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],i=e[1]||"?";return[i,r]=Bd(i,r),Ic(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},lS=[eS,uS];var pS=[sS,lS],Ud=Qi(...pS),Bd=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:"?",n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var as=1024,dS="Breadcrumbs",mS=(t={})=>{let e=p({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:dS,setup(n){e.console&&Ha(hS(n)),e.dom&&hc(gS(n,e.dom)),e.xhr&&hi(_S(n)),e.fetch&&ci(SS(n)),e.history&&Un(yS(n)),e.sentry&&n.on("beforeSendEvent",fS(n))}}},_i=mS;function fS(t){return function(n){N()===t&&Ut({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Pt(n)},{event:n})}}function gS(t,e){return function(r){if(N()!==t)return;let i,o,s=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>as&&(oe&&h.warn(`\`dom.maxStringLength\` cannot exceed ${as}, but a value of ${a} was configured. Sentry will use ${as} instead.`),a=as),typeof s=="string"&&(s=[s]);try{let u=r.event,l=ES(u)?u.target:u;i=fe(l,{keyAttrs:s,maxStringLength:a}),o=Gr(l)}catch(u){i="<unknown>"}if(i.length===0)return;let c={category:`ui.${r.name}`,message:i};o&&(c.data={"ui.component_name":o}),Ut(c,{event:r.event,name:r.name,global:r.global})}}function hS(t){return function(n){if(N()!==t)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:$a(n.level),message:oo(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${oo(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ut(r,{input:n.args,level:n.level})}}function _S(t){return function(n){if(N()!==t)return;let{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[rn];if(!r||!i||!o)return;let{method:s,url:a,status_code:c,body:u}=o,l={method:s,url:a,status_code:c},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},g={category:"xhr",data:l,type:"http",level:Ho(c)};t.emit("beforeOutgoingRequestBreadcrumb",g,d),Ut(g,d)}}function SS(t){return function(n){if(N()!==t)return;let{startTimestamp:r,endTimestamp:i}=n;
23if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){let o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",a,s),Ut(a,s)}else{let o=n.response,s=E(p({},n.fetchData),{status_code:o?.status});n.fetchData.request_body_size,n.fetchData.response_body_size,o?.status;let a={input:n.args,response:o,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:s,type:"http",level:Ho(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",c,a),Ut(c,a)}}}function yS(t){return function(n){if(N()!==t)return;let r=n.from,i=n.to,o=gt(P.location.href),s=r?gt(r):void 0,a=gt(i);s?.path||(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),Ut({category:"navigation",data:{from:r,to:i}})}}function ES(t){return!!t&&!!t.target}var TS=["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"],bS="BrowserApiErrors",vS=(t={})=>{let e=p({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},t);return{name:bS,setupOnce(){e.setTimeout&&ge(P,"setTimeout",Hd),e.setInterval&&ge(P,"setInterval",Hd),e.requestAnimationFrame&&ge(P,"requestAnimationFrame",IS),e.XMLHttpRequest&&"XMLHttpRequest"in P&&ge(XMLHttpRequest.prototype,"send",AS);let n=e.eventTarget;n&&(Array.isArray(n)?n:TS).forEach(i=>CS(i,e))}}},$d=vS;function Hd(t){return function(...e){let n=e[0];return e[0]=Ln(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Oe(t)}`}}),t.apply(this,e)}}function IS(t){return function(e){return t.apply(this,[Ln(e,{mechanism:{data:{handler:Oe(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function AS(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&ge(n,i,function(o){let s={mechanism:{data:{handler:Oe(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},a=Cn(o);return a&&(s.mechanism.data.handler=Oe(a)),Ln(o,s)})}),t.apply(this,e)}}function CS(t,e){let r=P[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ge(r,"addEventListener",function(i){return function(o,s,a){try{RS(s)&&(s.handleEvent=Ln(s.handleEvent,{mechanism:{data:{handler:Oe(s),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch(c){}return e.unregisterOriginalCallbacks&&NS(this,o,s),i.apply(this,[o,Ln(s,{mechanism:{data:{handler:Oe(s),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),ge(r,"removeEventListener",function(i){return function(o,s,a){try{let c=s.__sentry_wrapped__;c&&i.call(this,o,c,a)}catch(c){}return i.call(this,o,s,a)}}))}function RS(t){return typeof t.handleEvent=="function"}function NS(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}var Si=(t={})=>{let e=t.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof P.document>"u"){oe&&h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Zr({ignoreDuration:!0}),mr();let n=se(),r=n.getUser();n.addScopeListener(i=>{let o=i.getUser();(r?.id!==o?.id||r?.ip_address!==o?.ip_address)&&(mr(),r=o)}),e==="route"&&Un(({from:i,to:o})=>{i!==o&&(Zr({ignoreDuration:!0}),mr())})}}};var xS="CultureContext",wS=()=>({name:xS,preprocessEvent(t){let e=MS();e&&(t.contexts=E(p({},t.contexts),{culture:p(p({},e),t.contexts?.culture)}))}}),yi=wS;function MS(){try{let t=P.Intl;if(!t)return;let e=t.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch(t){return}}var PS="GlobalHandlers",OS=(t={})=>{let e=p({onerror:!0,onunhandledrejection:!0}
23,t);return{name:PS,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(DS(n),Gd("onerror")),e.onunhandledrejection&&(kS(n),Gd("onunhandledrejection"))}}},Ei=OS;function DS(t){Fr(e=>{let{stackParser:n,attachStacktrace:r}=Wd();if(N()!==t||Ja())return;let{msg:i,url:o,line:s,column:a,error:c}=e,u=US(Wo(n,c||i,void 0,r,!1),o,s,a);u.level="error",Qr(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function kS(t){Ur(e=>{let{stackParser:n,attachStacktrace:r}=Wd();if(N()!==t||Ja())return;let i=LS(e),o=dt(i)?FS(i):Wo(n,i,void 0,r,!0);o.level="error",Qr(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function LS(t){if(dt(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(e){}return t}function FS(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function US(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=BS(e)??mt();return c.length===0&&c.push({colno:u,filename:d,function:"?",in_app:!0,lineno:l}),t}function Gd(t){oe&&h.log(`Global Handler attached: ${t}`)}function Wd(){return N()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function BS(t){if(!(!me(t)||t.length===0))return t.startsWith("data:")?`<${tt(t,!1)}>`:t}var Ti=()=>({name:"HttpContext",preprocessEvent(t){if(!P.navigator&&!P.location&&!P.document)return;let e=li(),n=p(p({},e.headers),t.request?.headers);t.request=E(p(p({},e),t.request),{headers:n})}});var HS="cause",$S=5,GS="LinkedErrors",WS=(t={})=>{let e=t.limit||$S,n=t.key||HS;return{name:GS,preprocessEvent(r,i,o){let s=o.getOptions();Ba(Go,s.stackParser,n,e,r,i)}}},bi=WS;function zd(){return zS()?(oe&&Pe(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function zS(){if(typeof P.window>"u")return!1;let t=P;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;let n=mt(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(P===P.top&&r.some(o=>n.startsWith(`${o}://`)))}function jd(t){return[Sr(),_r(),oi(),$d(),_i(),Ei(),bi(),yr(),Ti(),yi(),Si()]}function Ac(t={}){let e=!t.skipBrowserExtensionCheck&&zd(),n=t.defaultIntegrations==null?jd():t.defaultIntegrations,r=E(p({},t),{enabled:e?!1:t.enabled,stackParser:Ys(t.stackParser||Ud),integrations:Ra({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||Fd});return Oa(zo,r)}function cs(t={}){let e=P.document,n=e?.head||e?.body;if(!n){oe&&h.error("[showReportDialog] Global document not defined");return}let r=O(),o=N()?.getDsn();if(!o){oe&&h.error("[showReportDialog] DSN not configured");return}let s=E(p({},t),{user:p(p({},r.getUser()),t.user),eventId:t.eventId||xo()}),a=P.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=Aa(o,s);let{onLoad:c,onClose:u}=s;if(c&&(a.onload=c),u){let l=d=>{if(d.data==="__sentry_reportdialog_closed__")try{u()}finally{P.removeEventListener("message",l)}};P.addEventListener("message",l)}n.appendChild(a)}function qd(t){return t.split(",").some(e=>e.trim().startsWith("sentry-"))}function Cc(t){try{return new URL(t,P.location.origin).href}catch(e){return}}function Vd(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function Rc(t){try{return new Headers(t)}catch(e){return}}var Kd=new WeakMap,Nc=new Map,xc={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Jd(t,e){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}=p(p({},xc),e),l=typeof o=="function"?o:f=>!0,d=f=>jS(f,a),g={},m=t.getOptions().propagateTraceparent;n&&(t.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(_=>{if(_.op==="http.client"){let T=Nc.get(_.span_id);T&&(_.timestamp=T/1e3,Nc.delete(_.span_id))}}),f)),i&&ja(f=>{if(f.response){let _=Kd.get(f.response);_&&f.endTimestamp&&Nc.set(_,f.endTimestamp)}}),ci(f=>{let _=Ga(f,l,d,g,{propagateTraceparent:m,onRequestSpanEnd:u});if(f.response&&f.fetchData.__span&&Kd.set(f.response,f.fetchData.__span),_){let T=Cc(f.fetchData.url),L=T?gt(T).host:void 0;_.setAttributes({"http.url":T?tt(T):void 0,"server.address":L}),s&&Yd(_),c?.(_,{headers:f.headers})}})),r&&hi(f=>{let _=qS(f,l,d,g,m,u);_&&(s&&Yd(_),c?.(_,{headers:Rc(f.xhr.__sentry_xhr_v3__?.request_headers)}))})}function Yd(t){let{url:e}=M(t).data;if(!e||typeof e!="string")return;let n=ht("resource",({entries:r})=>{r.forEach(i=>
23{Vd(i)&&i.name.endsWith(e)&&(t.setAttributes(gi(i)),setTimeout(n))})})}function jS(t,e){let n=mt();if(n){let r,i;try{r=new URL(t,n),i=new URL(n).origin}catch(s){return!1}let o=r.origin===i;return e?Xe(r.toString(),e)||o&&Xe(r.pathname,e):o}else{let r=!!t.match(/^\/(?!\/)/);return e?Xe(t,e):r}}function qS(t,e,n,r,i,o){let s=t.xhr,a=s?.[rn];if(!s||s.__sentry_own_request__||!a)return;let{url:c,method:u}=a,l=Se()&&e(c);if(t.endTimestamp){let L=s.__sentry_xhr_span_id__;if(!L)return;let q=r[L];q&&(l&&a.status_code!==void 0&&(sr(q,a.status_code),q.end(),o?.(q,{headers:Rc(yc(s)),error:t.error})),delete r[L]);return}let d=Cc(c),g=d?gt(d):gt(c),m=tt(ri(c)),f=!!X(),_=l&&f?we({name:`${u} ${m}`,attributes:p(p({url:tt(c),type:"xhr","http.method":u,"http.url":d?tt(d):void 0,"server.address":g?.host,[W]:"auto.http.browser",[_e]:"http.client"},g?.search&&{"http.query":g?.search}),g?.hash&&{"http.fragment":g?.hash})}):new xe;s.__sentry_xhr_span_id__=_.spanContext().spanId,r[s.__sentry_xhr_span_id__]=_,n(c)&&VS(s,Se()&&f?_:void 0,i);let T=N();return T&&T.emit("beforeOutgoingRequestSpan",_,t),_}function VS(t,e,n){let{"sentry-trace":r,baggage:i,traceparent:o}=hr({span:e,propagateTraceparent:n});r&&KS(t,r,i,o)}function KS(t,e,n,r){let i=t.__sentry_xhr_v3__?.request_headers;if(!(i?.["sentry-trace"]||!t.setRequestHeader))try{if(t.setRequestHeader("sentry-trace",e),r&&!i?.traceparent&&t.setRequestHeader("traceparent",r),n){let o=i?.baggage;(!o||!qd(o))&&t.setRequestHeader("baggage",n)}}catch(o){}}function Xd(){P.document?P.document.addEventListener("visibilitychange",()=>{let t=X();if(!t)return;let e=K(t);if(P.document.hidden&&e){let n="cancelled",{op:r,status:i}=M(e);oe&&h.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||e.setStatus({code:2,message:n}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):oe&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var YS=3600,Qd="sentry_previous_trace",JS="sentry.previous_trace";function Zd(t,{linkPreviousTrace:e,consistentTraceSampling:n}){let r=e==="session-storage",i=r?ZS():void 0;t.on("spanStart",s=>{if(K(s)!==s)return;let a=O().getPropagationContext();i=XS(i,s,a),r&&QS(i)});let o=!0;n&&t.on("beforeSampling",s=>{if(!i)return;let a=O(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext(E(p({},c),{dsc:E(p({},c.dsc),{sample_rate:String(i.sampleRate),sampled:String(wc(i.spanContext))}),sampleRand:i.sampleRand})),s.parentSampled=wc(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes=E(p({},s.spanAttributes),{[Wr]:i.sampleRate})})}function XS(t,e,n){let r=M(e);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[pn])}catch(a){return 0}}let o={spanContext:e.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!t)return o;let s=t.spanContext;return s.traceId===r.trace_id?t:(Date.now()/1e3-t.startTimestamp<=YS&&(oe&&h.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify(p({op:r.op},e.spanContext()))}\``),e.addLink({context:s,attributes:{[ua]:"previous_trace"}}),e.setAttribute(JS,`${s.traceId}-${s.spanId}-${wc(s)?1:0}`)),o)}function QS(t){try{P.sessionStorage.setItem(Qd,JSON.stringify(t))}catch(e){oe&&h.warn("Could not store previous trace in sessionStorage",e)}}function ZS(){try{let t=P.sessionStorage?.getItem(Qd);return JSON.parse(t)}catch(t){return}}function wc(t){return t.traceFlags===1}var ey="BrowserTracing",ty=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function ny(){let t=P.navigator;return t?.userAgent?ty.test(t.userAgent):!1}var ry=p(E(p({},lr),{instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{}}
23),xc),Mc=(t={})=>{let e={name:void 0,source:void 0},n=P.document,{enableInp:r,enableElementTiming:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:l,idleTimeout:d,finalTimeout:g,childSpanTimeout:m,markBackgroundSpan:f,traceFetch:_,traceXHR:T,trackFetchStreamPerformance:L,shouldCreateSpanForRequest:q,enableHTTPTimings:ue,ignoreResourceSpans:ae,ignorePerformanceApiSpans:Et,instrumentPageLoad:Ce,instrumentNavigation:D,detectRedirects:z,linkPreviousTrace:Me,consistentTraceSampling:ct,enableReportPageLoaded:Ue,onRequestSpanStart:Be,onRequestSpanEnd:He}=p(p({},ry),t),le=ny(),zt,y,v;function A(I,F,U=!0){let Y=F.op==="pageload",ye=F.name,G=l?l(F):F,Tt=G.attributes||{};if(ye!==G.name&&(Tt[ie]="custom",G.attributes=Tt),!U){let $e=je();we(E(p({},G),{startTime:$e})).end($e);return}e.name=G.name,e.source=Tt[ie];let ut=Ao(G,{idleTimeout:d,finalTimeout:g,childSpanTimeout:m,disableAutoFinish:Y,beforeSpanEnd:$e=>{zt?.(),dc($e,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:ae,ignorePerformanceApiSpans:Et}),nm(I,void 0);let Re=O(),Wn=Re.getPropagationContext();Re.setPropagationContext(E(p({},Wn),{traceId:ut.spanContext().traceId,sampled:Ve(ut),dsc:Ae($e)})),Y&&(v=void 0)},trimIdleSpanEndTimestamp:!Ue});Y&&Ue&&(v=ut),nm(I,ut);function de(){n&&["interactive","complete"].includes(n.readyState)&&I.emit("idleSpanEnableAutoFinish",ut)}Y&&!Ue&&n&&(n.addEventListener("readystatechange",()=>{de()}),de())}return{name:ey,setup(I){if(le){oe&&h.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(yo(),zt=cc({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:I}),r&&bc(),i&&mc(),s&&w.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?lc():o&&uc(),a&&pc(),z&&n){let U=()=>{y=J()};addEventListener("click",U,{capture:!0}),addEventListener("keydown",U,{capture:!0,passive:!0})}function F(){let U=vi(I);U&&!M(U).timestamp&&(oe&&h.log(`[Tracing] Finishing current active span with op: ${M(U).op}`),U.setAttribute(dn,"cancelled"),U.end())}I.on("startNavigationSpan",(U,Y)=>{if(N()!==I)return;if(Y?.isRedirect){oe&&h.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),A(I,p({op:"navigation.redirect"},U),!1);return}y=void 0,F(),se().setPropagationContext({traceId:Ne(),sampleRand:Math.random(),propagationSpanId:Se()?void 0:Ie()});let ye=O();ye.setPropagationContext({traceId:Ne(),sampleRand:Math.random(),propagationSpanId:Se()?void 0:Ie()}),ye.setSDKProcessingMetadata({normalizedRequest:void 0}),A(I,E(p({op:"navigation"},U),{parentSpan:null,forceTransaction:!0}))}),I.on("startPageLoadSpan",(U,Y={})=>{if(N()!==I)return;F();let ye=Y.sentryTrace||em("sentry-trace")||tm("sentry-trace"),G=Y.baggage||em("baggage")||tm("baggage"),Tt=ma(ye,G),ut=O();ut.setPropagationContext(Tt),Se()||(ut.getPropagationContext().propagationSpanId=Ie()),ut.setSDKProcessingMetadata({normalizedRequest:li()}),A(I,p({op:"pageload"},U))}),I.on("endPageloadSpan",()=>{Ue&&v&&(v.setAttribute(dn,"reportPageLoaded"),v.end())})},afterAllSetup(I){if(le)return;let F=mt();if(Me!=="off"&&Zd(I,{linkPreviousTrace:Me,consistentTraceSampling:ct}),P.location){if(Ce){let U=ce();im(I,{name:P.location.pathname,startTime:U?U/1e3:void 0,attributes:{[ie]:"url",[W]:"auto.pageload.browser"}})}D&&Un(({to:U,from:Y})=>{if(Y===void 0&&F?.indexOf(U)!==-1){F=void 0;return}F=void 0;let ye=ni(U),G=vi(I),Tt=G&&z&&oy(G,y);us(I,{name:ye?.pathname||P.location.pathname,attributes:{[ie]:"url",[W]:"auto.navigation.browser"}},{url:U,isRedirect:Tt})})}f&&Xd(),a&&iy(I,d,g,m,e),r&&vc(),Jd(I,{traceFetch:_,traceXHR:T,trackFetchStreamPerformance:L,tracePropagationTargets:I.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:q,enableHTTPTimings:ue,onRequestSpanStart:Be,onRequestSpanEnd:He})}}};function im(t,e,n){t.emit("startPageLoadSpan",e,n),O().setTransactionName(e.name);let r=vi(t);return r&&t.emit("afterStartPageLoadSpan",r),r}function us(t,e,n){let{url:r,isRedirect:i}=n||{};t.emit("beforeStartNavigationSpan",e,{isRedirect:i}),t.emit("startNavigationSpan",e,{isRedirect:i});let o=O();return o.setTransactionName(e.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:E(p({},li()),{url:r})}),vi(t)}function em(t){return P.document?.querySelector(`meta[name=${t}]`)?.getAttribute("content")||void 0}function tm(t){return P.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===t)?.description}function iy(t,e,n,r,i){let o=P.document,s,a=()=>{let c="ui.action.click",u=vi(t);if(u){let l=M(u).op;
23if(["navigation","pageload"].includes(l)){oe&&h.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(dn,"interactionInterrupted"),s.end(),s=void 0),!i.name){oe&&h.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}s=Ao({name:i.name,op:c,attributes:{[ie]:i.source||"url"}},{idleTimeout:e,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}var om="_sentry_idleSpan";function vi(t){return t[om]}function nm(t,e){re(t,om,e)}var rm=1.5;function oy(t,e){let n=M(t),r=je(),i=n.start_timestamp;return!(r-i>rm||e&&r-e<=rm)}var am=typeof __SENTRY_DEBUG__>"u"?!0:__SENTRY_DEBUG__;function ay(t={}){return[Sr(),_r(),oi(),_i(),Ei(),bi(),yr(),Ti(),yi(),Si()]}function cm(t){let e=p({defaultIntegrations:ay()},t);return ii(e,"angular"),cy(),Ac(e)}function cy(){let e=Ls?.major&&parseInt(Ls.major,10);e&&(e<14&&am&&h.warn(`This Sentry SDK does not officially support Angular ${e}.`,"This SDK only supports Angular 14 and above.","If you're using lower Angular versions, check the Angular Version Compatibility table in our docs: https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility.","Otherwise, please consider upgrading your Angular version."),dr("angular",{version:e}))}var uy=typeof Zone<"u"&&Zone.root?.run;function Ar(t){return uy?Zone.root.run(t):t()}function ly(t){return t?.ngOriginalError?t.ngOriginalError:t}function py(t){return um(t.error)?t.error:typeof ErrorEvent<"u"&&t.error instanceof ErrorEvent&&t.error.message?t.error.message:typeof t.error=="string"?`Server returned code ${t.status} with body "${t.error}"`:t.message}function um(t){if(t instanceof Error)return!0;if(t===null||typeof t!="object")return!1;let e=t;return me(e.name)&&me(e.message)&&(e.stack===void 0||me(e.stack))}var dy=(()=>{class t{constructor(n){this._options=p({logErrors:!0},n)}ngOnDestroy(){this._removeAfterSendEventListener&&this._removeAfterSendEventListener()}handleError(n){let r=this._extractError(n)||"Handled unknown error",i=Ar(()=>pr(r,{mechanism:{type:"auto.function.angular.error_handler",handled:!1}}));if(this._options.logErrors&&Pe(()=>console.error(r)),this._options.showDialog){let o=N();o&&!this._removeAfterSendEventListener?this._removeAfterSendEventListener=o.on("afterSendEvent",s=>{!s.type&&s.event_id&&Ar(()=>{cs(E(p({},this._options.dialogOptions),{eventId:s.event_id}))})}):o||Ar(()=>{cs(E(p({},this._options.dialogOptions),{eventId:i}))})}}_extractError(n){if(this._options.extractor){let r=this._defaultExtractor.bind(this);return this._options.extractor(n,r)}return this._defaultExtractor(n)}_defaultExtractor(n){let r=ly(n);return r instanceof Ru?py(r):typeof r=="string"||um(r)?r:null}}return t.\u0275fac=function(n){return new(n||t)(bt("errorHandlerOptions"))},t.\u0275prov=Ge({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lm(t){return new dy(t)}var my="ui.angular.routing";var pm;function dm(t={}){return t.instrumentNavigation!==!1&&(pm=!0),Mc(E(p({},t),{instrumentNavigation:!1}))}function fy(t,e){let n=e&&M(e).data||{};e&&n[ie]==="url"&&(e.updateName(t),e.setAttribute(ie,"route"),e.setAttribute(W,`auto.${M(e).op}.angular`))}var Pc=(()=>{class t{constructor(n){this._router=n,this.navStart$=this._router.events.pipe(jn(r=>r instanceof ki),Mi(r=>{if(!pm){am&&h.error("Angular integration has tracing enabled, but Tracing integration is not configured");return}this._routingSpan&&(this._routingSpan.end(),this._routingSpan=null);let i=N(),o=ri(r.url);if(i){this._isPageloadOngoing()?this._pageloadOngoing=!1:Ar(()=>{us(i,{name:o,attributes:{[W]:"auto.navigation.angular",[ie]:"url"}})}),this._routingSpan=Ar(()=>we({name:`${r.url}`,op:my,attributes:p({[W]:"auto.ui.angular",[ie]:"url",url:o},r.navigationTrigger&&{navigationTrigger:r.navigationTrigger})}))||null;return}})),this.resEnd$=this._router.events.pipe(jn(r=>r instanceof Ou),Mi(r=>{let i=gy(r.state.root);i&&O().setTransactionName(i);let o=X(),s=o&&K(o);fy(i,s)})),this.navEnd$=this._router.events.pipe(jn(r=>r instanceof Yt||r instanceof Mu||r instanceof Pu),Mi(()=>{this._routingSpan&&(Ar(()=>{this._routingSpan.end()}),this._routingSpan=null)})),this._routingSpan=null,this._pageloadOngoing=!0,this._subscription=new lu,this._subscription.add(this.navStart$.subscribe()),this._subscription.add(this.resEnd$.subscribe()),this._subscription.add(this.navEnd$.subscribe())}ngOnDestroy(){this._subscription.unsubscribe()}_isPageloadOngoing(){if(!this._pageloadOngoing)return!1;let n=X();if(!n)return this._pageloadOngoing=!1,!1;let r=K(n);return this._pageloadOngoing=M(r).op==="pageload",this._pageloadOngoing}}return t.\u0275fac=function(n){return new(n||t)(bt(Ke))},t.\u0275prov=Ge({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function gy(t){let e=[],n=t?.firstChild;for(;n;
23){let i=n?.routeConfig&&n.routeConfig.path;if(i==null)break;e.push(i),n=n.firstChild}let r=e.filter(i=>i).join("/");return r?`/${r}/`:"/"}var mm=(()=>{class t{constructor(){this.authService=k(cn),this.selectionService=k(xt),this.router=k(Ke),this.modals=k(Hu)}ngOnInit(){return te(this,null,function*(){let n=yield this.authService.handleRedirectCallback();if(n.error){(yield this.modals.Confirm(`${n.error.error}${n.error.error_description?`:${n.error.error_description}`:""}`,"Failed to login","Logout","primary","Close"))?yield this.authService.logout():this.router.navigateByUrl("/");return}yield this.authService.getIsAuthenticated(!0),yield this.selectionService.waitForInit();let r=n.target,i=r===""||r==="/",o=yield this.authService.isSysAdmin(),s=!!this.selectionService.accountId;(i||!i&&o&&!s)&&(r=yield this.authService.userDefaultRoute()),s||(yield this.selectionService.setDefaultContext()),this.router.navigateByUrl(r)})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=sn({type:t,selectors:[["app-auth-callback"]],standalone:!1,decls:0,vars:0,template:function(r,i){},encapsulation:2})}}return t})();var ls=(t,e)=>te(null,null,function*(){let n=k(cn);return(yield n.getIsAuthenticated(!0))?!0:(yield n.login(e.url),!1)});var fm=()=>te(null,null,function*(){let t=k(cn),e=k(xt);return(yield t.getIsAuthenticated())&&(yield e.routeToDefaultByRole()),!1});var ps=(()=>{class t{constructor(){this.translateService=k(Lu),this.LANGUAGE_KEY="lang",this.language$=new du(null),this.languages=[{langCode:"en",flagCode:"us",title:"English"},{langCode:"ja",flagCode:"jp",title:"\u65E5\u672C\u8A9E"}],this.initLanguage()}setLanguage(n){let r=this.languages.find(i=>i.langCode===n);r&&(this.translateService.use(n),localStorage.setItem(this.LANGUAGE_KEY,n),this.language$.next(r))}initLanguage(){let n=localStorage.getItem(this.LANGUAGE_KEY)||"en";this.setLanguage(n)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=Ge({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dc=[{label:H("Dashboard"),iconImage:"/assets/menu/top-menu-dashboard.png",route:["/cm/dashboard"]},{label:H("Explore"),iconImage:"/assets/menu/top-menu-explore.png",route:["/cm/explore"],childs:[{label:H("Companies"),route:["/cm/abm"],iconImage:"/assets/menu/menu-abm.png",feature:"abm",description:H("See from which companies people are visiting your site, learn from which channels they come and how they engage with your assets")},{label:H("Audiences"),route:["/cm/explore/audience"],iconImage:"/assets/menu/menu-audience.png",description:H("Learn how different groups of people behave and compare them")},{label:H("Assets"),route:["/cm/explore/content"],iconImage:"/assets/menu/menu-assets.png",description:H("Learn how different pages, areas or creative assets perform in relation to to goals")},{label:H("Journeys"),route:["/cm/journeys"],iconImage:"/assets/menu/menu-journeys.png",description:H("Explore your individual customer journeys & filter them by source, goal, device, geo & more")},{label:H("Goals"),route:["/cm/explore/goals"],iconImage:"/assets/menu/menu-goals.png",description:H("Learn how different goals perform in relation to each other")},{label:H("Acquisition"),route:["/cm/explore/sources"],iconImage:"/assets/menu/menu-acquisition.png",description:H("Learn how different channels, sources or campaigns perform in relation to goals")}]},{label:H("Activate"),iconImage:"/assets/menu/top-menu-activate.png",route:["/cm/experience"],childs:[{label:H("Page-level"),route:["/cm/experience/page"],iconImage:"/assets/menu/activate-page.png",feature:["aceSupport","contexTiles"],description:H("Create personalized page-level experiences and experiments.")},{label:H("Journey-level"),route:["/cm/experience/journey"],iconImage:"/assets/menu/activate-journey.png",description:H("Create and measure  personalized experiences at the journey level which guide audiences to business goals.")},{label:H("Sales Engagement "),route:["/cm/experience/sales-eng"],iconImage:"/assets/menu/activate-sales.png",feature:"showOneToWon",description:H("Create curated content streams or hyper-personalized One-to-Won pages that keep your prospects on the road to revenue.")},{label:H("Analyze"),route:["/cm/experience/analyze"],iconImage:"/assets/menu/analyze_campaigns.png",description:H("Measure the performance of experiences")}]},{label:H("Configure"),iconImage:"/assets/menu/top-menu-configure.png",route:["/cm/configure"],permission:"account:editor",childs:[{label:H("Account Setup"),route:["/cm/settings"],iconName:"settings",iconOutline:!0,description:H("Configure general account settings")},{label:H("Agentic Settings"),route:["/cm/configure/agentic"],iconImage:"/assets/menu/ai_questions.svg",feature:["contexTiles","auto
23pilot"],description:H("Define conversation rules, AI content pools, and manage Q&As")},{label:H("Audiences & Companies"),route:["/cm/configure/audience"],iconImage:"/assets/menu/menu-audience.png",description:H("Define audiences and company target lists you would like to follow and activate")},{label:H("Goals"),route:["/cm/configure/goals"],iconImage:"/assets/menu/menu-goals.png",description:H("Set goals you would like to follow and optimize")},{label:H("Website Settings"),route:["/cm/configure/website"],iconName:"dynamic_feed",description:H("Configure website areas, content pools and manage page scan results")},{label:H("Reports"),route:["/cm/reports"],iconImage:"/assets/menu/menu-reports.png",description:H("Create, schedule and run reports")}]}];var Cr=(()=>{class t{get isMenuDisabled(){return this.privateIsMenuDisabled}constructor(){this.router=k(Ke),this.menuDisabledRoute=["/cm/self-start"],this.privateIsMenuDisabled=!1,this.router.events.subscribe(n=>{n instanceof Yt&&(this.privateIsMenuDisabled=this.menuDisabledRoute.includes(n.urlAfterRedirects))})}isMenuActive(n){return n.childs?n.childs.filter(r=>this.isRouteActive(r.route)).length>0:this.isRouteActive(n.route)}isRouteActive(n){let r={matrixParams:"ignored",queryParams:"ignored",paths:"subset",fragment:"ignored"};return Array.isArray(n)?n.filter(i=>this.router.isActive(i,r)).length>0:this.router.isActive(n,r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=Ge({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gm=(()=>{class t{constructor(){this.isLoaded=!1}setEmail(n){this.load()&&n&&n!==this.lastEmail&&(window.heap.identify(n,"email"),this.lastEmail=n)}setUserProperties(n){this.load()&&window.heap.addUserProperties(n)}setEventProperties(n){this.load()&&window.heap.addEventProperties(n)}load(){return this.isLoaded||Nt.heapAppId&&(window.heap.load(Nt.heapAppId),this.isLoaded=!0),this.isLoaded}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=Ge({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hy=["menuTrigger"];function _y(t,e){if(t&1&&(C(0,"mat-icon"),B(1),x()),t&2){let n=V(2).$implicit;b(),Ct(n.iconName)}}function Sy(t,e){if(t&1&&Ee(0,"img",5),t&2){let n=V(2).$implicit;ne("src",Vn(n.iconImage),qn)}}function yy(t,e){if(t&1&&(C(0,"mat-icon",11),B(1),x()),t&2){let n=V().$implicit;ne("fontSet",n.iconOutline?"material-icons-outlined":"material-icons"),b(),Rt(" ",n.iconName)}}function Ey(t,e){if(t&1&&Ee(0,"img",5),t&2){let n=V().$implicit;ne("src",Vn(n.iconImage),qn)}}function Ty(t,e){if(t&1&&(C(0,"span")(1,"span",3),Kn(2,"translate"),C(3,"button",8)(4,"div",9)(5,"div",10),Z(6,yy,2,2,"mat-icon",11),Z(7,Ey,1,2,"img",5),x(),C(8,"div",12)(9,"div",13),B(10),x(),C(11,"div",14),B(12),x()()()()()()),t&2){let n=e.$implicit,r=V(3);b(),ne("matTooltipDisabled",!r.isSubMenuDisabled(n))("matTooltip",Yn(2,12,"To enable, please contact our customer success")),b(2),ne("routerLink",n.route)("permission",n.permission)("action",n.actionFeatureOff)("disabled",r.isSubMenuDisabled(n)),b(2),Oi("visibility",n.iconName||n.iconImage?"visible":"hidden"),b(),ee(n.iconName?6:-1),b(),ee(n.iconImage?7:-1),b(3),Ct(n.label),b(2),Ct(n.description)}}function by(t,e){if(t&1){let n=Kt();C(0,"span",3),Kn(1,"translate"),C(2,"button",4,0),Te("mousedown",function(){vt(n);let i=V(2);return It(i.clientClicked())}),Z(4,_y,2,1,"mat-icon"),Z(5,Sy,1,2,"img",5),C(6,"span",6),B(7),x()(),C(8,"mat-menu",7,1),qt(10,Ty,13,14,"span",null,jt),x()()}if(t&2){let n=an(9),r=V().$implicit,i=V();ne("matTooltipDisabled",!i.isDisabledFeature(r.feature))("matTooltip",Yn(1,13,"To enable, please contact our customer success")),b(2),ne("matMenuTriggerFor",i.isAccountInitialized?n:null)("appActiveMenuItem",r)("disabled",r.disabled)("action",r.actionFeatureOff)("permission",r.permission)("disabled",i.isDisabledMenu(r.feature)),b(2),ee(r.iconName?4:-1),b(),ee(r.iconImage?5:-1),b(2),Ct(r.label),b(),ne("overlapTrigger",!1)("hasBackdrop",!1),b(2),Vt(r.childs)}}function vy(t,e){if(t&1&&(C(0,"mat-icon"),B(1),x()),t&2){let n=V(2).$implicit;b(),Ct(n.iconName)}}function Iy(t,e){if(t&1&&Ee(0,"img",5),t&2){let n=V(2).$implicit;ne("src",Vn(n.iconImage),qn)}}function Ay(t,e){if(t&1&&(C(0,"span",3),Kn(1,"translate"),C(2,"button",15),Z(3,vy,2,1,"mat-icon"),Z(4,Iy,1,2,"img",5),C(5,"span",6),B(6),x()()()),t&2){let n=V().$implicit,r=V();ne("matTooltipDisabled",!r.isDisabledFeature(n.feature))("matTooltip",Yn(1,9,"To enable, please contact our customer success")),b(2),ne("routerLink",n.route)("permission",
23n.permission)("action",n.actionFeatureOff)("disabled",r.isDisabledMenu(n.feature)),b(),ee(n.iconName?3:-1),b(),ee(n.iconImage?4:-1),b(2),Ct(n.label)}}function Cy(t,e){if(t&1&&(C(0,"span",2),Z(1,by,12,15,"span",3),Z(2,Ay,7,11,"span",3),x()),t&2){let n=e.$implicit;b(),ee(n.childs&&n.childs.length>0?1:-1),b(),ee(!n.childs||n.childs.length===0?2:-1)}}var ds=(()=>{class t{constructor(){this.languages=k(ps),this.menuService=k(Cr),this.accountContext=k(xt),this.isWideButtons=!1,document.addEventListener("mouseup",n=>{this.menusTriggers.forEach(r=>{r.closeMenu()})}),document.addEventListener("keyup",n=>{n.key==="Escape"&&this.menusTriggers.forEach(r=>{r.closeMenu()})})}ngOnInit(){this.languages.language$.subscribe(n=>this.isWideButtons=n.langCode==="ja")}clientClicked(){this.menusTriggers.forEach(n=>{n.closeMenu()})}isDisabledFeature(n){return this.isAccountInitialized&&n?!this.accountContext.supports(n):!1}isDisabledMenu(n){return this.menuService.isMenuDisabled||this.isDisabledFeature(n)}isSubMenuDisabled(n){return this.isDisabledFeature(n.feature)}get isAccountInitialized(){return this.accountContext.initialized$.value}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=sn({type:t,selectors:[["app-top-menu"]],viewQuery:function(r,i){if(r&1&&Pi(hy,5),r&2){let o;Mr(o=Pr())&&(i.menusTriggers=o)}},inputs:{modulesList:"modulesList"},standalone:!1,decls:3,vars:2,consts:[["menuTrigger","matMenuTrigger"],["menu","matMenu"],[1,"top-menu-item"],[3,"matTooltipDisabled","matTooltip"],["mat-button","","appPermission","",1,"top-menu-button",2,"z-index","1050",3,"mousedown","matMenuTriggerFor","appActiveMenuItem","disabled","action","permission"],[3,"src"],["translate","",1,"menu-label"],[1,"top-menu-dropdown",3,"overlapTrigger","hasBackdrop"],["mat-menu-item","","routerLinkActive","active","appPermission","",1,"btn-child-menu",3,"routerLink","permission","action","disabled"],[1,"child-menu"],[1,"child-menu-icon"],[3,"fontSet"],[1,"child-menu-text"],["color","accent","translate","",1,"child-menu-label"],["translate","",1,"child-menu-desc"],["mat-button","","routerLinkActive","active","appPermission","",1,"top-menu-button",3,"routerLink","permission","action","disabled"]],template:function(r,i){r&1&&(C(0,"mat-toolbar"),qt(1,Cy,3,2,"span",2,jt),x()),r&2&&(At("wide-buttons",i.isWideButtons),b(),Vt(i.modulesList))},styles:[`.mat-toolbar[_ngcontent-%COMP%]{padding:0;height:auto;background-color:#fff}.menu[_ngcontent-%COMP%]{display:flex}.top-menu-button[_ngcontent-%COMP%]{font-size:16px;min-height:54px;width:140px;border-radius:10px;border:none;margin-left:10px;background-color:#fff;transition:.5s ease}.top-menu-button[_ngcontent-%COMP%]:hover:enabled{background-color:#f0f0f0}.wide-buttons[_ngcontent-%COMP%]   .top-menu-button[_ngcontent-%COMP%]{width:160px;font-size:15px}.top-menu-item[_ngcontent-%COMP%]:first-child   .top-menu-button[_ngcontent-%COMP%]{margin-left:0}.top-menu-button.active[_ngcontent-%COMP%]{background-color:#1d91ff!important;color:#fff}.top-menu-button.active[_ngcontent-%COMP%]:hover{opacity:.7}.top-menu-button[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:10px}.top-menu-button.active[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.top-menu-button[_ngcontent-%COMP%]:disabled   img[_ngcontent-%COMP%]{opacity:.3}.btn-child-menu[_ngcontent-%COMP%]{min-height:48px;height:auto;padding:10px 20px}.btn-child-menu[_ngcontent-%COMP%]:disabled{opacity:.3}.child-menu[_ngcontent-%COMP%]{display:flex;white-space:normal}.menu-arrow[_ngcontent-%COMP%]{transition:linear .2s;transform-origin:50% 50%;width:5px;display:inline-block;transform:rotate(180deg);padding-top:6px}.top-menu-item[aria-expanded=true][_ngcontent-%COMP%]   .menu-arrow[_ngcontent-%COMP%]{transform:rotate(0)}.menu-label[_ngcontent-%COMP%]{padding-right:5px;padding-left:5px;letter-spacing:0}.child-menu-icon[_ngcontent-%COMP%]{height:44px;width:44px;min-width:44px;border-radius:50%;background-color:#d2e9ff;text-align:center;line-height:44px;margin-right:16px}.child-menu-icon[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin:10px 0 0;color:#1c91ff}.child-menu-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:26px}.child-menu-text[_ngcontent-%COMP%]{align-self:center}.child-menu-label[_ngcontent-%COMP%]{font-weight:700;font-size:18px;color:#2f3e4f;margin-bottom:5px}.mat-mdc-menu-item[_ngcontent-%COMP%]{line-height:18px}.child-menu-desc[_ngcontent-%COMP%]{color:#6e7f92;line-height:18px;font-size:14px}.active[_ngcontent-%COMP%]   .child-menu-label[_ngcontent-%COMP%]{font-weight:bolder}@media(max-width:1200px){.top-menu-button[_ngcontent-%COMP%]{width:auto;line-height:normal;white-space:normal}}
24/*# sourceMappingURL=top-menu.component-WPUYXYVK.css.map */`]})}}return t})();function xy(t,e){t&1&&(C(0,"mat-icon",6),B(1,"history"),x())}function wy(t,e){if(t&1){let n=Kt();C(0,"div"),Z(1,xy,2,0,"mat-icon",6),Ee(2,"span",7),C(3,"a",8),Te("click",function(){let i=vt(n).$implicit,o=V();return It(o.selectAccount(i))}),B(4),x()()}if(t&2){let n=e.$implicit,r=V();Or(Dr("account-row account-row-",n.status.toLowerCase())),b(),ee(r.isRecent(n.id)?1:-1),b(),Or(Dr("account-status-",n.status.toLowerCase())),ne("matTooltip",n.status),b(2),Rt("",n.name," ")}}var Sm=(()=>{class t{constructor(){this.accountContext=k(xt),this.accountsService=k(Bi),this.activatedRoute=k(Li),this.searchTermChanged=new pu,this.active=!0,this.accountSelected=new hu}get status(){return this.active?"active":""}ngOnDestroy(){this.subscription?.unsubscribe()}ngOnInit(){this.accountContext.recentAccounts$.subscribe(n=>{n&&n.length&&(!this.accounts||this.accounts.length===0)&&(this.accounts=n)}),this.subscription=this.searchTermChanged.pipe(mu(1e3),fu()).subscribe(n=>{this.reload()})}isRecent(n){return!!this.accountContext?.recentAccounts$?.value?.find(r=>r.id===n)}reload(){this.accountsService.getAccountsList({orderBy:"user_id",direction:"desc",offset:0,limit:20,search:this.searchTerm,status:this.status,accountType:null}).subscribe(n=>{this.accounts=n.items})}selectAccount(n){return te(this,null,function*(){let r=yield this.accountContext.changeAccount(n.id,this.activatedRoute.snapshot);this.accountSelected.emit(r)})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=sn({type:t,selectors:[["app-account-select"]],outputs:{accountSelected:"accountSelected"},standalone:!1,decls:14,vars:4,consts:[[1,"container"],["matInput","","type","text","placeholder","Account name..",3,"ngModelChange","ngModel"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matSuffix",""],[3,"ngModelChange","ngModel"],[3,"class"],[1,"icon_recent"],[3,"matTooltip"],["mat-button","",3,"click"]],template:function(r,i){r&1&&(bu(0),C(1,"div",0)(2,"mat-form-field")(3,"input",1),Gs("ngModelChange",function(s){return $s(i.searchTerm,s)||(i.searchTerm=s),s}),Te("ngModelChange",function(s){return i.searchTermChanged.next(s)}),x(),C(4,"button",2),Te("click",function(){return i.searchTerm=""}),C(5,"mat-icon"),B(6,"close"),x()(),C(7,"mat-icon",3),B(8,"search"),x()(),C(9,"div")(10,"mat-checkbox",4),Gs("ngModelChange",function(s){return $s(i.active,s)||(i.active=s),s}),Te("ngModelChange",function(s){return i.searchTermChanged.next(s)}),B(11,"Active "),x()(),qt(12,wy,5,9,"div",5,jt),x(),vu()),r&2&&(b(3),Hs("ngModel",i.searchTerm),b(),Oi("visibility",i.searchTerm?"visible":"hidden"),b(6),Hs("ngModel",i.active),b(2),Vt(i.accounts))},dependencies:[Ju,Xu,Qu,Hi,ku,nl,il,rl,Jn,ol,Xn],styles:[`.container[_ngcontent-%COMP%]{padding:5px}.account-row[_ngcontent-%COMP%]{display:flex;align-items:center}.icon[_ngcontent-%COMP%], .icon_recent[_ngcontent-%COMP%]{padding-top:0}.icon_recent[_ngcontent-%COMP%]{opacity:.5}.account-row-archived[_ngcontent-%COMP%]{opacity:.3}.account-row-archived[_ngcontent-%COMP%]:hover{opacity:1}.account-status-paused[_ngcontent-%COMP%]{opacity:.6}.account-status-paused[_ngcontent-%COMP%]:hover{opacity:1}
25/*# sourceMappingURL=account-select.component-AL5ZL5FJ.css.map */`]})}}return t})();function ky(t,e){t&1&&(C(0,"a",15),B(1," Request Demo"),x())}function Ly(t,e){if(t&1&&(C(0,"div",16),B(1),x()),t&2){let n=V();b(),Ct(n.selectedAccount==null?null:n.selectedAccount.name)}}function Fy(t,e){if(t&1&&(C(0,"a",17),B(1),x()),t&2){let n=V();b(),Rt(" ",n.selectedAccount==null?null:n.selectedAccount.name)}}function Uy(t,e){if(t&1&&(C(0,"div",19),Ee(1,"img",41),C(2,"mat-icon",42),B(3,"arrow_drop_down"),x()()),t&2){let n=V(),r=an(26);ne("matMenuTriggerFor",r),b(),ne("alt",Vn(n.user==null?null:n.user.name))("src",n.user.picture,qn)}}function By(t,e){if(t&1){let n=Kt();C(0,"img",43),Te("click",function(){vt(n);let i=V();return It(i.isSailOpen=!i.isSailOpen)}),x()}}function Hy(t,e){if(t&1&&(C(0,"button",25),B(1,"Switch Accounts"),x()),t&2){V();let n=an(46);ne("matMenuTriggerFor",n)}}function $y(t,e){if(t&1&&(C(0,"button",27),B(1,"Language"),x()),t&2){V();let n=an(42);ne("matMenuTriggerFor",n)}}function Gy(t,e){if(t&1){let n=Kt();C(0,"button",44),Te("click",function(){let i=vt(n).$implicit,o=V();return It(o.setLanguage(i.langCode))}),Ee(1,"div"),B(2),x()}if(t&2){let n=e.$implicit;b(),Or(Dr("app-flag app-flag-",n.flagCode)),b(),Rt(" ",n.title," ")}}function Wy(t,e){if(t&1){let n=Kt();C(0,"button",44),Te("click",function(){let i=vt(n).$implicit,o=V(2);return It(o.selectAccount(i.id))}),B(1),x()}if(t&2){let n=e.$implicit;b(),Ct(n.name)}}function zy(t,e){if(t&1&&qt(0,Wy,2,1,"button",31,jt),t&2){let n=V();Vt(n.allowedAccounts)}}function jy(t,e){if(t&1&&Ee(0,"app-top-menu",33),t&2){let n=V();ne("modulesList",n.modules)}}function qy(t,e){t&1&&(C(0,"div",34)(1,"span"),B(2,"Admin Dashboard"),x()())}function Vy(t,e){if(t&1&&(C(0,"a",45),B(1),x()),t&2){let n=V().$implicit;ne("routerLink",n.route),b(),Rt(" ",n.label," ")}}function Ky(t,e){if(t&1&&(C(0,"a",46),Kn(1,"translate"),B(2),x()),t&2){let n=V().$implicit;ne("matTooltip",Yn(1,2,"To enable, please contact our customer success")),b(2),Rt(" ",n.label," ")}}function Yy(t,e){if(t&1&&(Z(0,Vy,2,2,"a",45),Z(1,Ky,3,4,"a",46)),t&2){let n=e.$implicit,r=V(2);ee(r.isSubMenuDisabled(n)?-1:0),b(),ee(r.isSubMenuDisabled(n)?1:-1)}}function Jy(t,e){if(t&1&&(C(0,"div",37),qt(1,Yy,2,2,null,null,jt),x()),t&2){let n=V();b(),Vt(n.activeMenu.childs)}}function Xy(t,e){t&1&&Ee(0,"app-loader")}var ms=(()=>{class t{constructor(){this.vcRef=k(Eu),this.appService=k(qu),this.router=k(Ke),this.authService=k(cn),this.accountContext=k(xt),this.accountsService=k(Bi),this.accountWarnings=k(Vu),this.heapService=k(gm),this.integrationsService=k(ju),this.menuService=k(Cr),this.languagesService=k(ps),this.activatedRoute=k(Li),this.IsLoadingAuth=!0,this.isAdmin=!1,this.isAdminDashboard=!1,this.language=null,this.selectedAccount=null,this.modules=Dc,this.isWarningDismissed=!1,this.isSailOpen=!1,this.isDemo=!1;let n=this.router;this.isWarningDismissed=window.sessionStorage.getItem("warning_dismissed")==="true",n.events.subscribe(r=>{r instanceof Yt&&(this.isAdminDashboard=r.url.startsWith("/admin"))}),this.authService.profile.subscribe(r=>this.heapService.setEmail(r?.email)),this.accountContext.selectedAccount$.subscribe(r=>te(this,null,function*(){if(r){let i=yield this.authService.getUser();!(yield this.authService.isSysAdmin())&&i.accountIds.length>1&&(this.allowedAccounts=yield ks(this.accountsService.getAccountsFeatures(i.accountIds))),this.setHeapData(i,r),this.setSentryData(i,r),this.setBeamerData(i)}}))}ngOnInit(){this.appService.appScrollElement=this.sideNavContent.getElementRef(),this.isDemo=zu.isDemo(),this.authService.profile.subscribe(n=>te(this,null,function*(){n!=null&&this.IsLoadingAuth&&(this.user=n,this.IsLoadingAuth=!1,this.isAdmin=yield this.authService.isSysAdmin())})),this.router.events.subscribe(n=>{n instanceof ki?this.sideNav.close():n instanceof Yt&&(this.activeMenu=Dc.find(r=>this.menuService.isMenuActive(r)))}),this.accountContext.selectedAccount$.subscribe(n=>{this.selectedAccount=n}),this.languagesService.language$.subscribe(n=>this.language=n)}selectAccount(n){this.accountContext.changeAccount(n,this.activatedRoute.snapshot)}setLanguage(n){this.languagesService.setLanguage(n)}showAdminDashboard(){this.router.navigate(["admin"])}showAccountDashboard(n){this.accountContext.setAccount(n)}logout(){return te(this,null,function*(){yield this.authService.logout()})}isSubMenuDisabled(n){return this.isPageLevelRoute(n.route)?!this.accountContext.supports(["aceSupport","contexTiles"]):this.isDisabledFeature(n.feature)}isDisabledFeature(n){return n?!this.accountContext.supports(n):!1}isPageLevelRoute(n){return(Array.isArray(n)?n:[n]).some(i=>typeof i=="string"&&i.startsWith("/cm/experience/page"))}routeToInstallationSettings(){this.router.navigateByUrl("/cm/settings/installation")}dismissDashboardWarning(){this.isWarningDismissed=!0,window.sessionStorage.setItem("warning_dism
25issed","true")}get dashboardWarning(){return this.isWarningDismissed?null:this.accountWarnings.dashboardWarning}setHeapData(n,r){return te(this,null,function*(){let i={AccountName:r.name,Currency:r.currency},o={Role:n.role},s=null;if([kr.AccountAdmin,kr.AccountEditor,kr.AccountViewer].map(c=>kr[c]).includes(n.role)){let u=(yield ks(this.integrationsService.getActiveIntegrations())).map(l=>Wu.find(d=>d.id===l.integrationId).name).join(",");o=E(p(p({},o),i),{Features:r.features.join(","),Integrations:u})}else s=i;this.heapService.setUserProperties(o),s&&this.heapService.setEventProperties(s)})}setSentryData(n,r){Nt.sentryEnv&&(No({email:n.email}),Ro("account",r.name),dr("userExtra",{role:n.role}))}setBeamerData(n){window.beamer_config={product_id:"EDHwcewM27483",selector:"beamer-trigger",user_email:n.email};let r=document.createElement("script");r.setAttribute("src","https://app.getbeamer.com/js/beamer-embed.js"),document.body.appendChild(r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=sn({type:t,selectors:[["app-root"]],viewQuery:function(r,i){if(r&1&&Pi(zi,7)(Wi,7),r&2){let o;Mr(o=Pr())&&(i.sideNav=o.first),Mr(o=Pr())&&(i.sideNavContent=o.first)}},standalone:!1,decls:62,vars:40,consts:[["menu","matMenu"],["languageMenu","matMenu"],["accountsMenu","matMenu"],["accountsSideMenu",""],[3,"color","includeSpinner"],[1,"dashboard-message"],[1,"warning-icon"],[2,"width","30px"],["type","button",3,"routerLink"],["type","button",3,"click"],[1,"app-container"],[1,"app-header"],["routerLink","/cm",2,"display","block"],[1,"logo"],[1,"fill-space"],["href","https://trendemon.com/sign-up-for-a-demo/","target","_blank",1,"request-demo"],[1,"account-name"],["routerLink","/cm",1,"account-name"],["mat-button","","routerLink","cm/settings","appPermission","","permission","account:editor",1,"settings-button"],[1,"user-menu-button",3,"matMenuTriggerFor"],["id","beamer-trigger",1,"settings-button"],["src","assets/ai-sail.png",1,"sail-button"],["xPosition","before",1,"nested-menu-arrows-left"],["appPermission","","permission","system:admin"],["mat-menu-item","","translate","",3,"click"],["mat-menu-item","","translate","",1,"no-selected-outline",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/cm/settings","appPermission","","permission","account:editor","translate","",1,"no-selected-outline"],["mat-menu-item","","translate","",3,"matMenuTriggerFor"],["mat-menu-item","","href","http://support.trendemon.com/","target","_blank","translate","",1,"no-selected-outline"],["mat-menu-item","","translate","",1,"no-selected-outline",3,"click"],["xPosition","before"],["mat-menu-item","",1,"app-language-flag"],[1,"top-menu"],[3,"modulesList"],[1,"top-title"],["mode","over","position","end"],[3,"accountSelected"],[1,"sub-menu","justify-center"],[1,"app-page"],[1,"app-page-content"],[3,"closed"],["mat-button","",1,"avatar",3,"alt","src"],[1,"v-align-middle"],["src","assets/ai-sail.png",1,"sail-button",3,"click"],["mat-menu-item","",1,"app-language-flag",3,"click"],["routerLinkActive","active","translate","",1,"sub-menu-item",3,"routerLink"],["translate","",1,"sub-menu-item","menu-link-disabled",3,"matTooltip"]],template:function(r,i){if(r&1){let o=Kt();Ee(0,"ngx-loading-bar",4),C(1,"div",5)(2,"mat-icon",6),B(3,"warning_amber"),x(),C(4,"div"),B(5),x(),Ee(6,"div",7),C(7,"button",8),B(8),x(),C(9,"button",9),Te("click",function(){return i.dismissDashboardWarning()}),B(10,"dismiss"),x()(),C(11,"div",10)(12,"div",11)(13,"a",12),Ee(14,"span",13),x(),Ee(15,"span",14),Z(16,ky,2,0,"a",15),Z(17,Ly,2,1,"div",16),Z(18,Fy,2,1,"a",17),C(19,"mat-icon",18),B(20," settings "),x(),Z(21,Uy,4,4,"div",19),C(22,"mat-icon",20),B(23," notifications_none "),x(),Z(24,By,1,0,"img",21),C(25,"mat-menu",22,0)(27,"div",23)(28,"button",24),Te("click",function(){return i.showAdminDashboard()}),B(29,"Admin Dashboard"),x(),C(30,"button",24),Te("click",function(){vt(o);let a=an(53);return It(a.toggle())}),B(31,"Switch Accounts"),x(),Ee(32,"mat-divider"),x(),Z(33,Hy,2,1,"button",25),C(34,"button",26),B(35,"Account Settings"),x(),Z(36,$y,2,1,"button",27),C(37,"a",28),B(38,"Support"),x(),C(39,"button",29),Te("click",function(){return i.logout()}),B(40,"Logout"),x()(),C(41,"mat-menu",30,1),qt(43,Gy,3,4,"button",31,jt),x(),C(45,"mat-menu",30,2),Z(47,zy,2,0),x()(),C(48,"div",32),Z(49,jy,1,1,"app-top-menu",33),Z(50,qy,3,0,"div",34),x(),C(51,"mat-sidenav-container")(52,"mat-sidenav",35,3)(54,"app-account-select",36),Te("accountSelected",function(){vt(o);let a=an(53);return It(a.close())}),x()(),C(55,"mat-sidenav-content"),Z(56,Jy,3,0,"div",37),C(57,"div",38)(58,"div",39),Ee(59,"router-outlet"),x()()()()(),C(60,"app-sail-assistant",40),Te("closed",function(){return i.isSailOpen=!1}),x(),Z(61,Xy,1,0,"app-loader")}r&2&&(ne("color","#ee2f65")("includeSpinner",!1),b(),At("dashboard-message-show",i.dashboardWarning),b(4),Iu(" ",i.dashboardWarning==null?null:i.dashboardWarning.description," ",i.dashboardWarning==null?null:i.dashboardWarning.instructions," "),b(2),ne("routerLink",i.dashboardWarning==null?null:i.dashboardWarning.actionButtonRoute),b(),Rt(" ",i.dashboardWarning==null?null:i.dashboardWarning.actionButtonText," "),b(3),At("wide-menu",i.language.langCode==="ja")("with-message",i.dashboardWarning)("sail-open",i.isSailOpen),b(),At("app-header-with-message",i.dashboardWarning)("sail-open",i.isSailOpen),b(4),ee(i.isDemo?16:-1),b(),ee(!i.isAdminDashboard&&!i.isDemo?17:-1),b(),ee(i.isAdminDashboard&&i.selectedAccount?18:-1),b(3),ee(i.user?21:-1),b(3),ee(i.isSailOpen?-1:24),b(9),ee(i.allowedAccounts?33:-1),b(3),ee(i.language?36:-1),b(7),Vt(i.languagesService.languages),b(4),ee(i.allowedAccounts?47:-1),b(),At("top-menu-with-message",i.dashboardWarning)("sail-open",i.isSailOpen),b(),ee(i.isAdminDashboard?-1:49),b(),ee(i.isAdminDashboard?50:-1),b(5),At("sidenav-content-with-message",i.dashboardWarning),b(),ee(i.activeMenu!=null&&i.activeMenu.childs?56:-1),b(2),At("app-page-content-no-sub-menu",!(i.activeMenu!=null&&i.activeMenu.childs)),b(2),At("sail-open",i.isSailOpen),b(),ee(i.IsLoadingAuth?61:-1))},dependencies:[Ku,Jn,qi,ji,Vi,zi,Gu,Wi,Xn,$i,Yu,Ki,Uu,Du,Fi,Ui,Yi,ds,Sm,Gi],styles:[`[_nghost-%COMP%]{--sail-width: 350px}@media(min-width:1500px){[_nghost-%COMP%]{--sail-width: 500px}}.app-container[_ngcontent-%COMP%]{position:relative;width:100%;height:calc(100vh - 70px);overflow:auto;margin-top:70px;transition:.5s ease}.app-container.with-message[_ngcontent-%COMP%]{margin-top:112px}.app-container.sail-open[_ngcontent-%COMP%]{width:calc(100vw - var(--sail-width))}.mat-sidenav-container[_ngcontent-%COMP%]{background-color:#fff}.app-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:2;display:flex;height:70px;background-color:#1f1c2f;color:#fff;padding:0 20px;width:100%;transition:.5s ease}.app-header.app-header-with-message[_ngcontent-%COMP%]{top:42px}.app-header.sail-open[_ngcontent-%COMP%]{width:calc(100vw - var(--sail-width))}.app-header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{align-self:center}.app-header[_ngcontent-%COMP%]   .fill-space[_ngcontent-%COMP%]{flex:1 1 auto}.app-header[_ngcontent-%COMP%]   .settings-button[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;transition:opacity .5s ease}.app-header[_ngcontent-%COMP%]   .settings-button[_ngcontent-%COMP%]:hover{opacity:.8}
25.app-header[_ngcontent-%COMP%]   .account-name[_ngcontent-%COMP%]{display:inline-block;font-size:14px;font-weight:400;color:#aaa;margin-right:15px}.user-menu-button[_ngcontent-%COMP%]{cursor:pointer;transition:opacity .5s ease}.user-menu-button[_ngcontent-%COMP%]:hover{opacity:.8;zoom:1}.avatar[_ngcontent-%COMP%]{width:35px;border-radius:20px;cursor:pointer}.user-menu-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.logo[_ngcontent-%COMP%]{display:inline-block}.top-menu[_ngcontent-%COMP%]{position:fixed;top:32px;left:50%;transform:translate(-50%);padding:10px;background-color:#fff;font-size:14px;border-radius:10px;-webkit-box-shadow:0px 0px 25px 0px rgba(0,0,0,.27);-moz-box-shadow:0px 0px 25px 0px rgba(0,0,0,.27);box-shadow:0 0 25px #00000045;z-index:2;transition:.5s ease}.top-menu.top-menu-with-message[_ngcontent-%COMP%]{top:76px}.top-menu.sail-open[_ngcontent-%COMP%]{left:calc(50% - var(--sail-width) / 2);transform:translate(-50%)}.top-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:54px;min-width:400px;font-family:Proxima Nova Bold;font-size:26px;color:#666}app-loader[_ngcontent-%COMP%]{margin:45px auto;max-width:1000px}@media(min-width:1200px)and (max-width:1350px){.wide-menu[_ngcontent-%COMP%]   .top-menu[_ngcontent-%COMP%]{top:50px}.wide-menu.app-container[_ngcontent-%COMP%]   mat-sidenav-content[_ngcontent-%COMP%]{margin-top:65px}}.app-page[_ngcontent-%COMP%]{background-color:#f8f7ff}.app-page-content[_ngcontent-%COMP%]{padding:45px 15px;max-width:1600px;margin-right:auto;margin-left:auto}.dashboard-message[_ngcontent-%COMP%]{max-width:100%;display:block;background-color:#ffe1be;color:#000;align-items:center;justify-content:center;gap:15px;font-size:14px;height:0;transition:.5s ease}.dashboard-message.dashboard-message-show[_ngcontent-%COMP%]{display:flex;height:42px;position:fixed;left:0;right:0;top:0;z-index:2}.dashboard-message[_ngcontent-%COMP%]   .warning-icon[_ngcontent-%COMP%]{color:#e78b8b;min-width:24px}.dashboard-message[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:#ffffffa1;border:1px solid #a7a1a1;border-radius:5px;font-weight:700;font-size:10px;padding:4px 10px}a.mat-menu-item[_ngcontent-%COMP%]{text-decoration:none}app-sail-assistant[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:calc(-1 * var(--sail-width));width:var(--sail-width);background-color:#fff;z-index:4;transition:right .5s ease}app-sail-assistant.sail-open[_ngcontent-%COMP%]{right:0}app-sail-assistant.sail-embedded[_ngcontent-%COMP%]{position:static;right:auto;width:100%;background-color:transparent;transition:none;z-index:auto}@media(max-width:900px){.logo[_ngcontent-%COMP%]{background-image:url(https://d1i53wbavueq74.cloudfront.net/logo/logo_ico.png);width:40px;height:64px;background-repeat:no-repeat}.open-apps-btn[_ngcontent-%COMP%]{display:block}}@media(min-width:900px){.logo[_ngcontent-%COMP%]{background-image:url(/assets/TrenDemon_logo_on_dark.png);width:220px;height:30px;background-size:contain;background-repeat:no-repeat}.open-apps-btn[_ngcontent-%COMP%]{display:none}}@media(max-width:1200px){.app-header[_ngcontent-%COMP%]{z-index:3}.app-page-content-no-sub-menu[_ngcontent-%COMP%]{padding-top:80px}.top-menu[_ngcontent-%COMP%]{position:relative;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;overflow-x:auto;justify-content:flex-start;padding-top:50px}.sub-menu[_ngcontent-%COMP%]{justify-content:flex-start;padding-top:35px}}@media(min-width:1200px){.app-container[_ngcontent-%COMP%]   mat-sidenav-content[_ngcontent-%COMP%]{padding-top:65px;transition:.5s ease}.app-container[_ngcontent-%COMP%]   mat-sidenav-content.sidenav-content-with-message[_ngcontent-%COMP%]{padding-top:107px}}.app-container[_ngcontent-%COMP%]   mat-sidenav-content[_ngcontent-%COMP%]{background-color:#f8f7ff;transition:.5s ease}.menu-link-disabled[_ngcontent-%COMP%]{cursor:default;opacity:.3}.menu-link-disabled[_ngcontent-%COMP%]:hover{text-decoration:none}#beamer-trigger[_ngcontent-%COMP%], .sail-button[_ngcontent-%COMP%]{color:#fff;margin-right:10px;padding-left:15px;border-left:1px solid grey;margin-left:10px;cursor:pointer;overflow:visible;height:28px}.request-demo[_ngcontent-%COMP%]{line-height:20px;letter-spacing:0;display:inline-block;border:1px solid white;border-radius:25px;margin:0 15px 0 0;padding:5px 15px;background-color:#db4676;white-space:nowrap;color:#fff;font-weight:700;text-decoration:none}.request-demo[_ngcontent-%COMP%]:hover{background-color:#fff;color:#db4676}
26/*# sourceMappingURL=app.component-YKLRKJXZ.css.map */`]})}}return t})();var Qy=[{path:"",component:ms,canActivate:[ls,fm]},{path:"admin",loadChildren:()=>import("./chunk-KCZ2CI3J.js").then(t=>t.AdminModule),canActivate:[$u]},{path:"cm",loadChildren:()=>import("./chunk-3SBFTDRN.js").then(t=>
vendor: 57,328 bytes, line 26
26t.AccountModule),canActivate:[ls]},{path:"callback",component:mm},{path:"login",canActivate:[ls],children:[]}],ym=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=Tn({type:t})}static{this.\u0275inj=En({imports:[Ws.forRoot(Qy),Ws]})}}return t})();function Em(t){return new j(3e3,!1)}function Zy(){return new j(3100,!1)}function eE(){return new j(3101,!1)}function tE(t){return new j(3001,!1)}function nE(t){return new j(3003,!1)}function rE(t){return new j(3004,!1)}function bm(t,e){return new j(3005,!1)}function vm(){return new j(3006,!1)}function Im(){return new j(3007,!1)}function Am(t,e){return new j(3008,!1)}function Cm(t){return new j(3002,!1)}function Rm(t,e,n,r,i){return new j(3010,!1)}function Nm(){return new j(3011,!1)}function xm(){return new j(3012,!1)}function wm(){return new j(3200,!1)}function Mm(){return new j(3202,!1)}function Pm(){return new j(3013,!1)}function Om(t){return new j(3014,!1)}function Dm(t){return new j(3015,!1)}function km(t){return new j(3016,!1)}function Lm(t,e){return new j(3404,!1)}function iE(t){return new j(3502,!1)}function Fm(t){return new j(3503,!1)}function Um(){return new j(3300,!1)}function Bm(t){return new j(3504,!1)}function Hm(t){return new j(3301,!1)}function $m(t,e){return new j(3302,!1)}function Gm(t){return new j(3303,!1)}function Wm(t,e){return new j(3400,!1)}function zm(t){return new j(3401,!1)}function jm(t){return new j(3402,!1)}function qm(t,e){return new j(3505,!1)}function on(t){switch(t.length){case 0:return new bn;case 1:return t[0];default:return new Ji(t)}}function Uc(t,e,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(e.forEach(c=>{let u=c.get("offset"),l=u==s,d=l&&a||new Map;c.forEach((g,m)=>{let f=m,_=g;if(m!=="offset")switch(f=t.normalizePropertyName(f,i),_){case Lr:_=n.get(m);break;case lt:_=r.get(m);break;default:_=t.normalizeStyleValue(m,f,_,i);break}d.set(f,_)}),l||o.push(d),a=d,s=u}),i.length)throw iE(i);return o}function fs(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&kc(n,"start",t)));break;case"done":t.onDone(()=>r(n&&kc(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&kc(n,"destroy",t)));break}}function kc(t,e,n){let r=n.totalTime,i=!!n.disabled,o=gs(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,r??t.totalTime,i),s=t._data;return s!=null&&(o._data=s),o}function gs(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Le(t,e,n){let r=t.get(e);return r||t.set(e,r=n),r}function Bc(t){let e=t.indexOf(":"),n=t.substring(1,e),r=t.slice(e+1);return[n,r]}var oE=typeof document>"u"?null:document.documentElement;function hs(t){let e=t.parentNode||t.host||null;return e===oE?null:e}function sE(t){return t.substring(1,6)=="ebkit"}var Bn=null,Tm=!1;function Vm(t){Bn||(Bn=aE()||{},Tm=Bn.style?"WebkitAppearance"in Bn.style:!1);let e=!0;return Bn.style&&!sE(t)&&(e=t in Bn.style,!e&&Tm&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Bn.style)),e}function aE(){return typeof document<"u"?document.body:null}function Hc(t,e){for(;e;){if(e===t)return!0;e=hs(e)}return!1}function $c(t,e,n){if(n)return Array.from(t.querySelectorAll(e));let r=t.querySelector(e);return r?[r]:[]}var cE=1e3,Gc="{{",uE="}}",Wc="ng-enter",_s="ng-leave",Ii="ng-trigger",Ai=".ng-trigger",zc="ng-animating",Ss=".ng-animating";function Wt(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Lc(parseFloat(e[1]),e[2])}function Lc(t,e){return e==="s"?t*cE:t}function Ci(t,e,n){return t.hasOwnProperty("duration")?t:pE(t,e,n)}var lE=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function pE(t,e,n){let r,i=0,o="";if(typeof t=="string"){let s=t.match(lE);if(s===null)return e.push(Em(t)),{duration:0,delay:0,easing:""};r=Lc(parseFloat(s[1]),s[2]);let a=s[3];a!=null&&(i=Lc(parseFloat(a),s[4]));let c=s[5];c&&(o=c)}else r=t;if(!n){let s=!1,a=e.length;r<0&&(e.push(Zy()),s=!0),i<0&&(e.push(eE()),s=!0),s&&e.splice(a,0,Em(t))}return{duration:r,delay:i,easing:o}}function Km(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function St(t,e,n){e.forEach((r,i)=>{let o=ys(i);n&&!n.has(i)&&n.set(i,t.style[o]),t.style[o]=r})}function yn(t,e){e.forEach((n,r)=>{let i=ys(r);t.style[i]=""})}function Rr(t){return Array.isArray(t)?t.length==1?t[0]:pl(t):t}function Ym(t,e,n){let r=e.params||{},i=jc(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(tE(o))})}var Fc=new RegExp(`${Gc}\\s*(.+?)\\s*${uE}`,"g");function jc(t){let e=[];if(typeof t=="string"){let n;for(;n=Fc.exec(t);)e.push(n[1]);Fc.lastIndex=0}return e}function Nr(t,e,n){let r=`${t}`,i=r.replace(Fc,(o,s)=>{let a=e[s];return a==null&&(n.push(nE(s)),a=""),a.toString()});return i==r?t:i}var dE=/-+([a-z0-9])/g;function ys(t){return t.replace(dE,(...e)=>e[1].toUpperCase())}function Jm(t,e){return t===0||e===0}function Xm(t,e,n){if(n.size&&e.length){let r=e[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;o<e.length;o++){let s=e[o];i.forEach(a=>s.set(a,Es(t,a)))}}return e}function Fe(t,e,n){switch(e.type){case $.Trigger:return t.visitTrigger(e,n);case $.State:return t.visitState(e,n);case $.Transition:return t.visitTransition(e,n);case $.Sequence:return t.visitSequence(e,n);case $.Group:return t.visitGroup(e,n);case $.Animate:return t.visitAnimate(e,n);case $.Keyframes:return t.visitKeyframes(e,n);case $.Style:return t.visitStyle(e,n);case $.Reference:return t.visitReference(e,n);case $.AnimateChild:return t.visitAnimateChild(e,n);case $.AnimateRef:return t.visitAnimateRef(e,n);case $.Query:return t.visitQuery(e,n);case $.Stagger:return t.visitStagger(e,n);default:throw rE(e.type)}}function Es(t,e){return window.getComputedStyle(t)[e]}var cu=(()=>{class t{validateStyleProperty(n){return Vm(n)}containsElement(n,r){return Hc(n,r)}getParentElement(n){return hs(n)}query(n,r,i){return $c(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,s,a=[],c){return new bn(i,o)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ge({token:t,factory:t.\u0275fac})}return t})(),$n=class{static NOOP=new cu},Gn=class{};var mE=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),As=class extends Gn{normalizePropertyName(e,n){return ys(e)}normalizeStyleValue(e,n,r,i){let o="",s=r.toString().trim();if(mE.has(n)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(bm(e,r))}return s+o}};var Cs="*";function fE(t,e){let n=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(r=>gE(r,n,e)):n.push(t),n}function gE(t,e,n){if(t[0]==":"){let c=hE(t,n);if(typeof c=="function"){e.push(c);return}t=c}let r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(Dm(t)),e;let i=r[1],o=r[2],s=r[3];e.push(Qm(i,s));let a=i==Cs&&s==Cs;o[0]=="<"&&!a&&e.push(Qm(s,i))}function hE(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(km(t)),"* => *"}}var Ts=new Set(["true","1"]),bs=new Set(["false","0"]);function Qm(t,e){let n=Ts.has(t)||bs.has(t),r=Ts.has(e)||bs.has(e);return(i,o)=>{let s=t==Cs||t==i,a=e==Cs||e==o;return!s&&n&&typeof i=="boolean"&&(s=i?Ts.has(t):bs.has(t)),!a&&r&&typeof o=="boolean"&&(a=o?Ts.has(e):bs.has(e)),s&&a}}var uf=":self",_E=new RegExp(`s*${uf}s*,?`,"g");function lf(t,e,n,r){return new Xc(t).build(e,n,r)}var Zm="",Xc=class{_driver;constructor(e){this._driver=e}build(e,n,r){let i=new Qc(n);return this._resetContextStyleTimingState(i),Fe(this,Rr(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zm,e.collectedStyles=new Map,e.collectedStyles.set(Zm,new Map),e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&n.errors.push(vm()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==$.State){let c=a,u=c.name;u.toString().split(/\s*,\s*/).forEach(l=>{c.name=l,o.push(this.visitState(c,n))}),c.name=u}else if(a.type==$.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(Im())}),{type:$.Trigger,name:e.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(e,n){let r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{jc(c).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&n.errors.push(Am(e.name,[...o.values()]))}return{type:$.State,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;let r=Fe(this,Rr(e.animation),n),i=fE(e.expr,n.errors);return{type:$.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Hn(e.options)}}visitSequence(e,n){return{type:$.Sequence,steps:e.steps.map(r=>Fe(this,r,n)),options:Hn(e.options)}}visitGroup(e,n){let r=n.currentTime,i=0,o=e.steps.map(s=>{n.currentTime=r;let a=Fe(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:$.Group,steps:o,options:Hn(e.options)}}visitAnimate(e,n){let r=TE(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:zs({});if(o.type==$.Keyframes)i=this.visitKeyframes(o,n);else{let s=e.styles,a=!1;if(!s){a=!0;let u={};r.easing&&(u.easing=r.easing),s=zs(u)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:$.Animate,timings:r,style:i,options:null}}visitStyle(e,n){let r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){let r=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===lt?r.push(a):n.errors.push(Cm(a)):r.push(new Map(Object.entries(a)));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(Gc)>=0){o=!0;break}}}),{type:$.Style,styles:r,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let u=n.collectedStyles.get(n.currentQuerySelector),l=u.get(c),d=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(n.errors.push(Rm(c,l.startTime,l.endTime,o,i)),d=!1),o=l.startTime),d&&u.set(c,{startTime:o,endTime:i}),n.options&&Ym(a,n.options,n.errors)})})}visitKeyframes(e,n){let r={type:$.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(Nm()),r;let i=1,o=0,s=[],a=!1,c=!1,u=0,l=e.steps.map(L=>{let q=this._makeStyleAst(L,n),ue=q.offset!=null?q.offset:EE(q.styles),ae=0;return ue!=null&&(o++,ae=q.offset=ue),c=c||ae<0||ae>1,a=a||ae<u,u=ae,s.push(ae),q});c&&n.errors.push(xm()),a&&n.errors.push(wm());let d=e.steps.length,g=0;o>0&&o<d?n.errors.push(Mm()):o==0&&(g=i/(d-1));let m=d-1,f=n.currentTime,_=n.currentAnimateTimings,T=_.duration;return l.forEach((L,q)=>{let ue=g>0?q==m?1:g*q:s[q],ae=ue*T;n.currentTime=f+_.delay+ae,_.duration=ae,this._validateStyleAst(L,n),L.offset=ue,r.styles.push(L)}),r}visitReference(e,n){return{type:$.Reference,animation:Fe(this,Rr(e.animation),n),options:Hn(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:$.AnimateChild,options:Hn(e.options)}}visitAnimateRef(e,n){return{type:$.AnimateRef,animation:this.visitReference(e.animation,n),options:Hn(e.options)}}visitQuery(e,n){let r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;let[o,s]=SE(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Le(n.collectedStyles,n.currentQuerySelector,new Map);let a=Fe(this,Rr(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:$.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Hn(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(Pm());let r=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ci(e.timings,n.errors,!0);return{type:$.Stagger,animation:Fe(this,Rr(e.animation),n),timings:r,options:null}}};function SE(t){let e=!!t.split(/\s*,\s*/).find(n=>n==uf);return e&&(t=t.replace(_E,"")),t=t.replace(/@\*/g,Ai).replace(/@\w+/g,n=>Ai+"-"+n.slice(1)).replace(/:animating/g,Ss),[t,e]}function yE(t){return t?p({},t):null}var Qc=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function EE(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;e=parseFloat(r.get("offset")),r.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}return e}function TE(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Ci(t,e).duration;return qc(o,0,"")}let n=t;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=qc(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=Ci(n,e);return qc(i.duration,i.delay,i.easing)}function Hn(t){return t?(t=p({},t),t.params&&(t.params=yE(t.params))):t={},t}function qc(t,e,n){return{duration:t,delay:e,easing:n}}function uu(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Ni=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}},bE=1,vE=":enter",IE=new RegExp(vE,"g"),AE=":leave",CE=new RegExp(AE,"g");function pf(t,e,n,r,i,o=new Map,s=new Map,a,c,u=[]){return new Zc().buildKeyframes(t,e,n,r,i,o,s,a,c,u)}var Zc=class{buildKeyframes(e,n,r,i,o,s,a,c,u,l=[]){u=u||new Ni;let d=new eu(e,n,u,i,o,l,[]);d.options=c;let g=c.delay?Wt(c.delay):0;d.currentTimeline.delayNextStep(g),d.currentTimeline.setStyles([s],null,d.errors,c),Fe(this,r,d);let m=d.timelines.filter(f=>f.containsAnimation());if(m.length&&a.size){let f;for(let _=m.length-1;_>=0;_--){let T=m[_];if(T.element===n){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,c)}return m.length?m.map(f=>f.buildKeyframes()):[uu(n,[],[],[],0,g,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=e}visitAnimateRef(e,n){let r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],n,r),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_applyAnimationRefDelays(e,n,r){for(let i of e){let o=i?.delay;if(o){let s=typeof o=="number"?o:Wt(Nr(o,i?.params??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?Wt(r.duration):null,a=r.delay!=null?Wt(r.delay):null;return s!==0&&e.forEach(c=>{let u=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Fe(this,e.animation,n),n.previousNode=e}visitSequence(e,n){let r=n.subContextCount,i=n,o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==$.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Rs);let s=Wt(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Fe(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){let r=[],i=n.currentTimeline.currentTime,o=e.options&&e.options.delay?Wt(e.options.delay):0;e.steps.forEach(s=>{let a=n.createSubContext(e.options);o&&a.delayNextStep(o),Fe(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){let r=e.strValue,i=n.params?Nr(r,n.params,n.errors):r;return Ci(i,n.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){let r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=e.style;o.type==$.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(c=>{let u=c.offset||0;a.forwardTime(u*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){let r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?Wt(i.delay):0;o&&(n.previousNode.type===$.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Rs);let s=r,a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((u,l)=>{n.currentQueryIndex=l;let d=n.createSubContext(e.options,u);o&&d.delayNextStep(o),u===n.element&&(c=d.currentTimeline),Fe(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let g=d.currentTimeline.currentTime;s=Math.max(s,g)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){let r=n.parentContext,i=n.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let l=n.currentTimeline;c&&l.delayNextStep(c);let d=l.currentTime;Fe(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},Rs={},eu=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Rs;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,n,r,i,o,s,a,c){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.currentTimeline=c||new Ns(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;let r=e,i=this.options;r.duration!=null&&(i.duration=Wt(r.duration)),r.delay!=null&&(i.delay=Wt(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=Nr(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let n=this.options.params;if(n){let r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){let i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Rs,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){let i={duration:n??e.duration,delay:this.currentTimeline.currentTime+(r??0)+e.delay,easing:""},o=new tu(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,s){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(IE,"."+this._enterClassName),e=e.replace(CE,"."+this._leaveClassName);let c=r!=1,u=this._driver.query(this.element,e,c);r!==0&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&a.length==0&&s.push(Om(n)),a}},Ns=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=bE,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles.set(e,n),this._globalTimelineStyles.set(e,n),this._styleSummary.set(e,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||lt),this._currentKeyframe.set(n,lt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=RE(e,this._globalTimelineStyles);for(let[a,c]of s){let u=Nr(c,o,r);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??lt),this._updateStyle(a,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,n)=>{this._currentKeyframe.set(n,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,e)}))}snapshotCurrentStyles(){for(let[e,n]of this._localTimelineStyles)this._pendingStyles.set(e,n),this._updateStyle(e,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let u=new Map([...this._backFill,...a]);u.forEach((l,d)=>{l===Lr?e.add(d):l===lt&&n.add(d)}),r||u.set("offset",c/this.duration),i.push(u)});let o=[...e.values()],s=[...n.values()];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return uu(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},tu=class extends Ns{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,n,r,i,o,s,a=!1){super(e,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,c=new Map(e[0]);c.set("offset",0),o.push(c);let u=new Map(e[0]);u.set("offset",ef(a)),o.push(u);let l=e.length-1;for(let d=1;d<=l;d++){let g=new Map(e[d]),m=g.get("offset"),f=n+m*r;g.set("offset",ef(f/s)),o.push(g)}r=s,n=0,i="",e=o}return uu(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function ef(t,e=3){let n=Math.pow(10,e-1);return Math.round(t*n)/n}function RE(t,e){let n=new Map,r;return t.forEach(i=>{if(i==="*"){r??=e.keys();for(let o of r)n.set(o,lt)}else for(let[o,s]of i)n.set(o,s)}),n}function tf(t,e,n,r,i,o,s,a,c,u,l,d,g){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:d,errors:g}}var Vc={},xs=class{_triggerName;ast;_stateStyles;constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return NE(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(n,r):new Map}build(e,n,r,i,o,s,a,c,u,l){let d=[],g=this.ast.options&&this.ast.options.params||Vc,m=a&&a.params||Vc,f=this.buildStyles(r,m,d),_=c&&c.params||Vc,T=this.buildStyles(i,_,d),L=new Set,q=new Map,ue=new Map,ae=i==="void",Et={params:df(_,g),delay:this.ast.options?.delay},Ce=l?[]:pf(e,n,this.ast.animation,o,s,f,T,Et,u,d),D=0;return Ce.forEach(z=>{D=Math.max(z.duration+z.delay,D)}),d.length?tf(n,this._triggerName,r,i,ae,f,T,[],[],q,ue,D,d):(Ce.forEach(z=>{let Me=z.element,ct=Le(q,Me,new Set);z.preStyleProps.forEach(Be=>ct.add(Be));let Ue=Le(ue,Me,new Set);z.postStyleProps.forEach(Be=>Ue.add(Be)),Me!==n&&L.add(Me)}),tf(n,this._triggerName,r,i,ae,f,T,Ce,[...L.values()],q,ue,D))}};function NE(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}function df(t,e){let n=p({},e);return Object.entries(t).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var nu=class{styles;defaultParams;normalizer;constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){let r=new Map,i=df(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Nr(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function xE(t,e,n){return new ru(t,e,n)}var ru=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new nu(i.style,o,r))}),nf(this.states,"true","1"),nf(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new xs(e,i,this.states))}),this.fallbackTransition=wE(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(s=>s.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}};function wE(t,e,n){let r=[(s,a)=>!0],i={type:$.Sequence,steps:[],options:null},o={type:$.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new xs(t,o,e)}function nf(t,e,n){t.has(e)?t.has(n)||t.set(n,t.get(e)):t.has(n)&&t.set(e,t.get(n))}var ME=new Ni,iu=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r}register(e,n){let r=[],i=[],o=lf(this._driver,n,r,i);if(r.length)throw Fm(r);this._animations.set(e,o)}_buildPlayer(e,n,r){let i=e.element,o=Uc(this._normalizer,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){let i=[],o=this._animations.get(e),s,a=new Map;if(o?(s=pf(this._driver,n,o,Wc,_s,new Map,new Map,r,ME,i),s.forEach(l=>{let d=Le(a,l.element,new Map);l.postStyleProps.forEach(g=>d.set(g,null))})):(i.push(Um()),s=[]),i.length)throw Bm(i);a.forEach((l,d)=>{l.forEach((g,m)=>{l.set(m,this._driver.computeStyle(d,m,lt))})});let c=s.map(l=>{let d=a.get(l.element);return this._buildPlayer(l,new Map,d)}),u=on(c);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let n=this._getPlayer(e);n.destroy(),this._playersById.delete(e);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){let n=this._playersById.get(e);if(!n)throw Hm(e);return n}listen(e,n,r,i){let o=gs(n,"","","");return fs(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if(r=="register"){this.register(e,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(e,n,s);return}let o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},rf="ng-animate-queued",PE=".ng-animate-queued",Kc="ng-animate-disabled",OE=".ng-animate-disabled",DE="ng-star-inserted",kE=".ng-star-inserted",LE=[],mf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FE={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yt="__ng_removed",xi=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,n=""){this.namespaceId=n;let r=e&&e.hasOwnProperty("value"),i=r?e.value:e;if(this.value=BE(i),r){let o=e,{value:s}=o,a=zn(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let n=e.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},Ri="void",Yc=new xi(Ri),ou=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this._hostClassName="ng-tns-"+e,at(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.has(n))throw $m(r,n);if(r==null||r.length==0)throw Gm(n);if(!HE(r))throw Wm(r,n);let o=Le(this._elementListeners,e,[]),s={name:n,phase:r,callback:i};o.push(s);let a=Le(this._engine.statesByElement,e,new Map);return a.has(n)||(at(e,Ii),at(e,Ii+"-"+n),a.set(n,Yc)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(e,n){return this._triggers.has(e)?!1:(this._triggers.set(e,n),!0)}_getTrigger(e){let n=this._triggers.get(e);if(!n)throw zm(e);return n}trigger(e,n,r,i=!0){let o=this._getTrigger(n),s=new wi(this.id,n,e),a=this._engine.statesByElement.get(e);a||(at(e,Ii),at(e,Ii+"-"+n),this._engine.statesByElement.set(e,a=new Map));let c=a.get(n),u=new xi(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),a.set(n,u),c||(c=Yc),!(u.value===Ri)&&c.value===u.value){if(!WE(c.params,u.params)){let _=[],T=o.matchStyles(c.value,c.params,_),L=o.matchStyles(u.value,u.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{yn(e,T),St(e,L)})}return}let g=Le(this._engine.playersByElement,e,[]);g.forEach(_=>{_.namespaceId==this.id&&_.triggerName==n&&_.queued&&_.destroy()});let m=o.matchTransition(c.value,u.value,e,u.params),f=!1;if(!m){if(!i)return;m=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:m,fromState:c,toState:u,player:s,isFallbackTransition:f}),f||(at(e,rf),s.onStart(()=>{xr(e,rf)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let T=this._engine.playersByElement.get(e);if(T){let L=T.indexOf(s);L>=0&&T.splice(L,1)}}),this.players.push(s),g.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(n=>n.delete(e)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){let r=this._engine.driver.query(e,Ai,!0);r.forEach(i=>{if(i[yt])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((c,u)=>{if(s.set(u,c.value),this._triggers.has(u)){let l=this.trigger(e,u,Ri,i);l&&a.push(l)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,s),r&&on(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let c=this._triggers.get(s).fallbackTransition,u=r.get(s)||Yc,l=new xi(Ri),d=new wi(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:u,toState:l,player:d,isFallbackTransition:!0})})}}removeNode(e,n){let r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let s=e;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{let o=e[yt];(!o||o===mf)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){at(e,this._hostClassName)}drainQueuedTransitions(e){let n=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=gs(o,r.triggerName,r.fromState.value,r.toState.value);c._data=e,fs(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},su=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,n)=>{};_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r}get queuedPlayers(){let e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){let r=new ou(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=i.get(a);if(c){let u=r.indexOf(c);r.splice(u+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(e);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let n=new Set,r=this.statesByElement.get(e);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(e,n,r,i){if(vs(n)){let o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!vs(n))return;let o=n[yt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),at(e,Kc)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xr(e,Kc))}removeNode(e,n,r){if(vs(n)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(n,r):this.markElementAsRemoved(e,n,!1,r);let o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[yt]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return vs(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,Ai,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(e,Ss,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){let n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){let n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return on(this.players).onDone(()=>e());e()})}processLeaveNode(e){let n=e[yt];if(n&&n.setForRemoval){if(e[yt]=mf,n.namespaceId){this.destroyInnerAnimations(e);let r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}e.classList?.contains(Kc)&&this.markElementAsDisabled(e,!1),this.driver.query(e,OE,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++){let i=this.collectedEnterElements[r];at(i,DE)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++){let i=this.collectedLeaveElements[r];this.processLeaveNode(i)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?on(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw jm(e)}_flushAnimations(e,n){let r=new Ni,i=[],o=new Map,s=[],a=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(y=>{l.add(y);let v=this.driver.query(y,PE,!0);for(let A=0;A<v.length;A++)l.add(v[A])});let d=this.bodyNode,g=Array.from(this.statesByElement.keys()),m=af(g,this.collectedEnterElements),f=new Map,_=0;m.forEach((y,v)=>{let A=Wc+_++;f.set(v,A),y.forEach(I=>at(I,A))});let T=[],L=new Set,q=new Set;for(let y=0;y<this.collectedLeaveElements.length;y++){let v=this.collectedLeaveElements[y],A=v[yt];A&&A.setForRemoval&&(T.push(v),L.add(v),A.hasAnimation?this.driver.query(v,kE,!0).forEach(I=>L.add(I)):q.add(v))}let ue=new Map,ae=af(g,Array.from(L));ae.forEach((y,v)=>{let A=_s+_++;ue.set(v,A),y.forEach(I=>at(I,A))}),e.push(()=>{m.forEach((y,v)=>{let A=f.get(v);y.forEach(I=>xr(I,A))}),ae.forEach((y,v)=>{let A=ue.get(v);y.forEach(I=>xr(I,A))}),T.forEach(y=>{this.processLeaveNode(y)})});let Et=[],Ce=[];for(let y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(A=>{let I=A.player,F=A.element;if(Et.push(I),this.collectedEnterElements.length){let de=F[yt];if(de&&de.setForMove){if(de.previousTriggersValues&&de.previousTriggersValues.has(A.triggerName)){let $e=de.previousTriggersValues.get(A.triggerName),Re=this.statesByElement.get(A.element);if(Re&&Re.has(A.triggerName)){let Wn=Re.get(A.triggerName);Wn.value=$e,Re.set(A.triggerName,Wn)}}I.destroy();return}}let U=!d||!this.driver.containsElement(d,F),Y=ue.get(F),ye=f.get(F),G=this._buildInstruction(A,r,ye,Y,U);if(G.errors&&G.errors.length){Ce.push(G);return}if(U){I.onStart(()=>yn(F,G.fromStyles)),I.onDestroy(()=>St(F,G.toStyles)),i.push(I);return}if(A.isFallbackTransition){I.onStart(()=>yn(F,G.fromStyles)),I.onDestroy(()=>St(F,G.toStyles)),i.push(I);return}let Tt=[];G.timelines.forEach(de=>{de.stretchStartingKeyframe=!0,this.disabledNodes.has(de.element)||Tt.push(de)}),G.timelines=Tt,r.append(F,G.timelines);let ut={instruction:G,player:I,element:F};s.push(ut),G.queriedElements.forEach(de=>Le(a,de,[]).push(I)),G.preStyleProps.forEach((de,$e)=>{if(de.size){let Re=c.get($e);Re||c.set($e,Re=new Set),de.forEach((Wn,Ds)=>Re.add(Ds))}}),G.postStyleProps.forEach((de,$e)=>{let Re=u.get($e);Re||u.set($e,Re=new Set),de.forEach((Wn,Ds)=>Re.add(Ds))})});if(Ce.length){let y=[];Ce.forEach(v=>{y.push(qm(v.triggerName,v.errors))}),Et.forEach(v=>v.destroy()),this.reportError(y)}let D=new Map,z=new Map;s.forEach(y=>{let v=y.element;r.has(v)&&(z.set(v,v),this._beforeAnimationBuild(y.player.namespaceId,y.instruction,D))}),i.forEach(y=>{let v=y.element;this._getPreviousPlayers(v,!1,y.namespaceId,y.triggerName,null).forEach(I=>{Le(D,v,[]).push(I),I.destroy()})});let Me=T.filter(y=>cf(y,c,u)),ct=new Map;sf(ct,this.driver,q,u,lt).forEach(y=>{cf(y,c,u)&&Me.push(y)});let Be=new Map;m.forEach((y,v)=>{sf(Be,this.driver,new Set(y),c,Lr)}),Me.forEach(y=>{let v=ct.get(y),A=Be.get(y);ct.set(y,new Map([...v?.entries()??[],...A?.entries()??[]]))});let He=[],le=[],zt={};s.forEach(y=>{let{element:v,player:A,instruction:I}=y;if(r.has(v)){if(l.has(v)){A.onDestroy(()=>St(v,I.toStyles)),A.disabled=!0,A.overrideTotalTime(I.totalTime),i.push(A);return}let F=zt;if(z.size>1){let Y=v,ye=[];for(;Y=Y.parentNode;){let G=z.get(Y);if(G){F=G;break}ye.push(Y)}ye.forEach(G=>z.set(G,F))}let U=this._buildAnimation(A.namespaceId,I,D,o,Be,ct);if(A.setRealPlayer(U),F===zt)He.push(A);else{let Y=this.playersByElement.get(F);Y&&Y.length&&(A.parentPlayer=on(Y)),i.push(A)}}else yn(v,I.fromStyles),A.onDestroy(()=>St(v,I.toStyles)),le.push(A),l.has(v)&&i.push(A)}),le.forEach(y=>{let v=o.get(y.element);if(v&&v.length){let A=on(v);y.setRealPlayer(A)}}),i.forEach(y=>{y.parentPlayer?y.syncPlayerEvents(y.parentPlayer):y.destroy()});for(let y=0;y<T.length;y++){let v=T[y],A=v[yt];if(xr(v,_s),A&&A.hasAnimation)continue;let I=[];if(a.size){let U=a.get(v);U&&U.length&&I.push(...U);let Y=this.driver.query(v,Ss,!0);for(let ye=0;ye<Y.length;ye++){let G=a.get(Y[ye]);G&&G.length&&I.push(...G)}}let F=I.filter(U=>!U.destroyed);F.length?$E(this,v,F):this.processLeaveNode(v)}return T.length=0,He.forEach(y=>{this.players.push(y),y.onDone(()=>{y.destroy();let v=this.players.indexOf(y);this.players.splice(v,1)}),y.play()}),He}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!o||o==Ri;a.forEach(u=>{u.queued||!c&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(e,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:i;for(let c of n.timelines){let u=c.element,l=u!==o,d=Le(r,u,[]);this._getPreviousPlayers(u,l,s,a,n.toState).forEach(m=>{let f=m.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),m.destroy(),d.push(m)})}yn(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,s){let a=n.triggerName,c=n.element,u=[],l=new Set,d=new Set,g=n.timelines.map(f=>{let _=f.element;l.add(_);let T=_[yt];if(T&&T.removedBeforeQueried)return new bn(f.duration,f.delay);let L=_!==c,q=GE((r.get(_)||LE).map(D=>D.getRealPlayer())).filter(D=>{let z=D;return z.element?z.element===_:!1}),ue=o.get(_),ae=s.get(_),Et=Uc(this._normalizer,f.keyframes,ue,ae),Ce=this._buildPlayer(f,Et,q);if(f.subTimeline&&i&&d.add(_),L){let D=new wi(e,a,_);D.setRealPlayer(Ce),u.push(D)}return Ce});u.forEach(f=>{Le(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>UE(this.playersByQueriedElement,f.element,f))}),l.forEach(f=>at(f,zc));let m=on(g);return m.onDestroy(()=>{l.forEach(f=>xr(f,zc)),St(c,n.toStyles)}),d.forEach(f=>{Le(i,f,[]).push(m)}),m}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new bn(e.duration,e.delay)}},wi=class{namespaceId;triggerName;element;_player=new bn;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>fs(e,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Le(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let n=this._player;n.triggerCallback&&n.triggerCallback(e)}};function UE(t,e,n){let r=t.get(e);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&t.delete(e)}return r}function BE(t){return t??null}function vs(t){return t&&t.nodeType===1}function HE(t){return t=="start"||t=="done"}function of(t,e){let n=t.style.display;return t.style.display=e??"none",n}function sf(t,e,n,r,i){let o=[];n.forEach(c=>o.push(of(c)));let s=[];r.forEach((c,u)=>{let l=new Map;c.forEach(d=>{let g=e.computeStyle(u,d,i);l.set(d,g),(!g||g.length==0)&&(u[yt]=FE,s.push(u))}),t.set(u,l)});let a=0;return n.forEach(c=>of(c,o[a++])),s}function af(t,e){let n=new Map;if(t.forEach(a=>n.set(a,[])),e.length==0)return n;let r=1,i=new Set(e),o=new Map;function s(a){if(!a)return r;let c=o.get(a);if(c)return c;let u=a.parentNode;return n.has(u)?c=u:i.has(u)?c=r:c=s(u),o.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function at(t,e){t.classList?.add(e)}function xr(t,e){t.classList?.remove(e)}function $E(t,e,n){on(n).onDone(()=>t.processLeaveNode(e))}function GE(t){let e=[];return ff(t,e),e}function ff(t,e){for(let n=0;n<t.length;n++){let r=t[n];r instanceof Ji?ff(r.players,e):e.push(r)}}function WE(t,e){let n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){let o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}function cf(t,e,n){let r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}var wr=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,n)=>{};constructor(e,n,r){this._driver=n,this._normalizer=r,this._transitionEngine=new su(e.body,n,r),this._timelineEngine=new iu(e.body,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){let s=e+"-"+i,a=this._triggerCache[s];if(!a){let c=[],u=[],l=lf(this._driver,o,c,u);if(c.length)throw Lm(i,c);a=xE(i,l,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r){this._transitionEngine.removeNode(e,n,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if(r.charAt(0)=="@"){let[o,s]=Bc(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=Bc(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function zE(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Jc(e[0]),e.length>1&&(r=Jc(e[e.length-1]))):e instanceof Map&&(n=Jc(e)),n||r?new jE(t,n,r):null}var jE=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&St(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(St(this._element,this._initialStyles),this._endStyles&&(St(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(yn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yn(this._element,this._endStyles),this._endStyles=null),St(this._element,this._initialStyles),this._state=3)}}return t})();function Jc(t){let e=null;return t.forEach((n,r)=>{qE(r)&&(e=e||new Map,e.set(r,n))}),e}function qE(t){return t==="display"||t==="position"}var ws=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let e=this.keyframes,n=this._triggerWebAnimation(this.element,e,this.options);if(!n)return this._onFinish(),null;this.domPlayer=n,this._finalKeyframe=e.length?e[e.length-1]:new Map;let r=()=>this._onFinish();return n.addEventListener("finish",r),this.onDestroy(()=>{n.removeEventListener("finish",r)}),n}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(e){let n=[];return e.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(e,n,r){let i=this._convertKeyframesToObject(n);try{return e.animate(i,r)}catch(o){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),e.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&e.set(i,this._finished?r:Es(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let n=e==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Ms=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,n){return Hc(e,n)}getParentElement(e){return hs(e)}query(e,n,r){return $c(e,n,r)}computeStyle(e,n,r){return Es(e,n)}animate(e,n,r,i,o,s=[]){let a=i==0?"both":"forwards",c={duration:r,delay:i,fill:a};o&&(c.easing=o);let u=new Map,l=s.filter(m=>m instanceof ws);Jm(r,i)&&l.forEach(m=>{m.currentSnapshot.forEach((f,_)=>u.set(_,f))});let d=Km(n).map(m=>new Map(m));d=Xm(e,d,u);let g=zE(e,d);return new ws(e,d,c,g)}};var Is="@",gf="@.disabled",Ps=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,n,r,i){this.namespaceId=e,this.delegate=n,this.engine=r,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r,i){if(i){this.delegate.removeChild(e,n,r,i);return}this.parentNode(n)&&this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){n.charAt(0)==Is&&n==gf?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r,i){return this.delegate.listen(e,n,r,i)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}
26,au=class extends Ps{factory;constructor(e,n,r,i,o){super(n,r,i,o),this.factory=e,this.namespaceId=n}setProperty(e,n,r){n.charAt(0)==Is?n.charAt(1)=="."&&n==gf?(r=r===void 0?!0:!!r,this.disableAnimations(e,r)):this.engine.process(this.namespaceId,e,n.slice(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r,i){if(n.charAt(0)==Is){let o=VE(e),s=n.slice(1),a="";return s.charAt(0)!=Is&&([s,a]=KE(s)),this.engine.listen(this.namespaceId,o,s,a,c=>{let u=c._data||-1;this.factory.scheduleListenerCallback(u,r,c)})}return this.delegate.listen(e,n,r,i)}};function VE(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function KE(t){let e=t.indexOf("."),n=t.substring(0,e),r=t.slice(e+1);return[n,r]}var Os=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,n,r){this.delegate=e,this.engine=n,this._zone=r,n.onRemovalComplete=(i,o)=>{o?.removeChild(null,i)}}createRenderer(e,n){let i=this.delegate.createRenderer(e,n);if(!e||!n?.data?.animation){let u=this._rendererCache,l=u.get(i);if(!l){let d=()=>u.delete(i);l=new Ps("",i,this.engine,d),u.set(i,l)}return l}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(o,s,e,u.name,u)};return n.data.animation.forEach(a),new au(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,r){if(e>=0&&e<this._microtaskId){this._zone.run(()=>n(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};var JE=(()=>{class t extends wr{constructor(n,r,i){super(n,r,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(r){return new(r||t)(bt(gu),bt($n),bt(Gn))};static \u0275prov=Ge({token:t,factory:t.\u0275fac})}return t})();function XE(){return new As}function QE(){return new Os(k(Nu),k(wr),k(_u))}var _f=[{provide:Gn,useFactory:XE},{provide:wr,useClass:JE},{provide:yu,useFactory:QE}],ZE=[{provide:$n,useClass:cu},{provide:Us,useValue:"NoopAnimations"},..._f],hf=[{provide:$n,useFactory:()=>new Ms},{provide:Us,useFactory:()=>"BrowserAnimations"},..._f],Sf=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?ZE:hf}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Tn({type:t});static \u0275inj=En({providers:hf,imports:[Di]})}return t})();var yf=(()=>{class t{constructor(){this.el=k(Fs),this.router=k(Ke),this.menuService=k(Cr),this.activeClass="active"}ngOnInit(){this.router.events.pipe(jn(n=>n instanceof Yt)).subscribe(n=>{this.menuService.isMenuActive(this.menuItem)?this.el.nativeElement.classList.add(this.activeClass):this.el.nativeElement.classList.remove(this.activeClass)})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275dir=Bs({type:t,selectors:[["","appActiveMenuItem",""]],inputs:{menuItem:[0,"appActiveMenuItem","menuItem"]},standalone:!1})}}return t})();var eT=[{name:"panel-collapsed",path:"assets/autopilot/panel-collapsed.svg"},{name:"panel-expanded",path:"assets/autopilot/panel-expanded.svg"},{name:"ai-collapsed",path:"assets/journeys/ai-collapsed.svg"},{name:"ai-expanded",path:"assets/journeys/ai-expanded.svg"},{name:"ai-star",path:"assets/ai-star.svg"},{name:"support",path:"assets/icons/support.svg"}],Ef=(t,e)=>{eT.forEach(n=>{t.addSvgIcon(n.name,e.bypassSecurityTrustResourceUrl(n.path))})};var Tf=(()=>{class t{constructor(n,r){Ef(n,r)}static{this.\u0275fac=function(r){return new(r||t)(bt(Bu),bt(wu))}}static{this.\u0275mod=Tn({type:t,bootstrap:[ms]})}static{this.\u0275inj=En({providers:[el({mermaidOptions:{provide:Zu,useValue:tl}}),{provide:Su,useValue:lm()},{provide:Pc,deps:[Ke]},{provide:Tu,useFactory:()=>()=>{},deps:[Pc],multi:!0}],imports:[Di,ll,Sf,ym,ul,al,Yi,Fu.forRoot({loader:cl({prefix:"/assets/i18n/",suffix:".json"})})]})}}return t})();Au(ds,function(){return[Hi,Jn,qi,ji,Vi,sl,Xn,$i,Ki,Fi,Ui,yf]},function(){return[Gi]});Nt.sentryEnv&&cm({dsn:"https://[email protected]/5450131",environment:Nt.sentryEnv,release:Nt.sentryRelease,integrations:[dm()],tracePropagationTargets:["localhost",/^https:\/\/(?!((stage-)?login\.))[a-z0-9-.]+\.trendemon\.com\//],maxValueLength:1e3,tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,ignoreErrors:["Non-Error exception captured","Cannot read properties of null (reading 'close')"]});Nt.production&&void 0;xu().bootstrapModule(Tf,{applicationProviders:[Cu()]}).catch(t=>console.error(t));
27//# sourceMappingURL=main-PYKVHPE2.js.map
28
29//# debugId=de66f4f6-f519-589d-843d-b82a495b4d3f

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